Changed dto for categories and types

This commit is contained in:
DrMint 2023-06-05 23:34:51 +02:00
parent 20008d7c2d
commit b7eef516fd
12 changed files with 274 additions and 506 deletions

183
package-lock.json generated
View File

@ -7,11 +7,10 @@
"name": "search.accords-library.com", "name": "search.accords-library.com",
"dependencies": { "dependencies": {
"@digitak/esrun": "3.2.24", "@digitak/esrun": "3.2.24",
"dompurify": "^3.0.3", "dotenv": "^16.1.3",
"dotenv": "^16.0.3",
"html-to-text": "^9.0.5", "html-to-text": "^9.0.5",
"isomorphic-dompurify": "^1.5.0", "isomorphic-dompurify": "^1.6.0",
"marked": "^5.0.2", "marked": "^5.0.4",
"meilisearch": "^0.32.3" "meilisearch": "^0.32.3"
}, },
"devDependencies": { "devDependencies": {
@ -19,12 +18,12 @@
"@graphql-codegen/typescript": "3.0.4", "@graphql-codegen/typescript": "3.0.4",
"@graphql-codegen/typescript-graphql-request": "^4.5.9", "@graphql-codegen/typescript-graphql-request": "^4.5.9",
"@graphql-codegen/typescript-operations": "^3.0.4", "@graphql-codegen/typescript-operations": "^3.0.4",
"@types/html-to-text": "^9.0.0", "@types/html-to-text": "^9.0.1",
"@types/marked": "^5.0.0", "@types/marked": "^5.0.0",
"@types/node": "^18.14.6", "@types/node": "^18.14.6",
"@typescript-eslint/eslint-plugin": "^5.59.5", "@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.5", "@typescript-eslint/parser": "^5.59.8",
"eslint": "^8.40.0", "eslint": "^8.42.0",
"graphql": "^16.6.0", "graphql": "^16.6.0",
"graphql-request": "5.1.0" "graphql-request": "5.1.0"
} }
@ -1469,9 +1468,9 @@
} }
}, },
"node_modules/@eslint/js": { "node_modules/@eslint/js": {
"version": "8.40.0", "version": "8.42.0",
"resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.40.0.tgz", "resolved": "https://registry.npmjs.org/@eslint/js/-/js-8.42.0.tgz",
"integrity": "sha512-ElyB54bJIhXQYVKjDSvCkPO1iU1tSAeVQJbllWJq1XQSmmA4dgFk8CbiBGpiOPxleE48vDogxCtmMYku4HSVLA==", "integrity": "sha512-6SWlXpWU5AvId8Ac7zjzmIOqMOba/JWY8XZ4A7q7Gn1Vlfg/SFFIlrtHXt9nPn4op9ZPAkl91Jao+QQv3r/ukw==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0" "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
@ -2597,9 +2596,9 @@
} }
}, },
"node_modules/@humanwhocodes/config-array": { "node_modules/@humanwhocodes/config-array": {
"version": "0.11.8", "version": "0.11.10",
"resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.8.tgz", "resolved": "https://registry.npmjs.org/@humanwhocodes/config-array/-/config-array-0.11.10.tgz",
"integrity": "sha512-UybHIJzJnR5Qc/MsD9Kr+RpO2h+/P1GhOwdiLPXK5TWk5sgTdu88bTD9UP+CKbPPh5Rni1u0GjAdYQLemG8g+g==", "integrity": "sha512-KVVjQmNUepDVGXNuoRRdmmEjruj0KfiGSbS8LVc12LMsWDQzRXJ0qdhN8L8uUigKpfEHRhlaQFY0ib1tnUbNeQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@humanwhocodes/object-schema": "^1.2.1", "@humanwhocodes/object-schema": "^1.2.1",
@ -2806,9 +2805,9 @@
} }
}, },
"node_modules/@types/html-to-text": { "node_modules/@types/html-to-text": {
"version": "9.0.0", "version": "9.0.1",
"resolved": "https://registry.npmjs.org/@types/html-to-text/-/html-to-text-9.0.0.tgz", "resolved": "https://registry.npmjs.org/@types/html-to-text/-/html-to-text-9.0.1.tgz",
"integrity": "sha512-FnF3p2FJZ1kJT/0C/lmBzw7HSlH3RhtACVYyrwUsJoCmFNuiLpusWT2FWWB7P9A48CaYpvD6Q2fprn7sZeffpw==", "integrity": "sha512-sHu702QGb0SP2F0Zt+CxdCmGZIZ0gEaaCjqOh/V4iba1wTxPVntEPOM/vHm5bel08TILhB3+OxUTkDJWnr/zHQ==",
"dev": true "dev": true
}, },
"node_modules/@types/js-yaml": { "node_modules/@types/js-yaml": {
@ -2818,9 +2817,9 @@
"dev": true "dev": true
}, },
"node_modules/@types/json-schema": { "node_modules/@types/json-schema": {
"version": "7.0.11", "version": "7.0.12",
"resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.11.tgz", "resolved": "https://registry.npmjs.org/@types/json-schema/-/json-schema-7.0.12.tgz",
"integrity": "sha512-wOuvG1SN4Us4rez+tylwwwCV1psiNVOkJeM3AUWUNWg/jDQY2+HE/444y5gc+jBmRqASOm2Oeh5c1axHobwRKQ==", "integrity": "sha512-Hr5Jfhc9eYOQNPYO5WLDq/n4jqijdHNlDXjuAQkkt+mWdQR+XJToOHrsD4cPaMXpn6KO7y2+wM8AZEs8VpBLVA==",
"dev": true "dev": true
}, },
"node_modules/@types/json-stable-stringify": { "node_modules/@types/json-stable-stringify": {
@ -2877,15 +2876,15 @@
} }
}, },
"node_modules/@typescript-eslint/eslint-plugin": { "node_modules/@typescript-eslint/eslint-plugin": {
"version": "5.59.5", "version": "5.59.8",
"resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.5.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/eslint-plugin/-/eslint-plugin-5.59.8.tgz",
"integrity": "sha512-feA9xbVRWJZor+AnLNAr7A8JRWeZqHUf4T9tlP+TN04b05pFVhO5eN7/O93Y/1OUlLMHKbnJisgDURs/qvtqdg==", "integrity": "sha512-JDMOmhXteJ4WVKOiHXGCoB96ADWg9q7efPWHRViT/f09bA8XOMLAVHHju3l0MkZnG1izaWXYmgvQcUjTRcpShQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@eslint-community/regexpp": "^4.4.0", "@eslint-community/regexpp": "^4.4.0",
"@typescript-eslint/scope-manager": "5.59.5", "@typescript-eslint/scope-manager": "5.59.8",
"@typescript-eslint/type-utils": "5.59.5", "@typescript-eslint/type-utils": "5.59.8",
"@typescript-eslint/utils": "5.59.5", "@typescript-eslint/utils": "5.59.8",
"debug": "^4.3.4", "debug": "^4.3.4",
"grapheme-splitter": "^1.0.4", "grapheme-splitter": "^1.0.4",
"ignore": "^5.2.0", "ignore": "^5.2.0",
@ -2926,14 +2925,14 @@
} }
}, },
"node_modules/@typescript-eslint/parser": { "node_modules/@typescript-eslint/parser": {
"version": "5.59.5", "version": "5.59.8",
"resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.5.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/parser/-/parser-5.59.8.tgz",
"integrity": "sha512-NJXQC4MRnF9N9yWqQE2/KLRSOLvrrlZb48NGVfBa+RuPMN6B7ZcK5jZOvhuygv4D64fRKnZI4L4p8+M+rfeQuw==", "integrity": "sha512-AnR19RjJcpjoeGojmwZtCwBX/RidqDZtzcbG3xHrmz0aHHoOcbWnpDllenRDmDvsV0RQ6+tbb09/kyc+UT9Orw==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@typescript-eslint/scope-manager": "5.59.5", "@typescript-eslint/scope-manager": "5.59.8",
"@typescript-eslint/types": "5.59.5", "@typescript-eslint/types": "5.59.8",
"@typescript-eslint/typescript-estree": "5.59.5", "@typescript-eslint/typescript-estree": "5.59.8",
"debug": "^4.3.4" "debug": "^4.3.4"
}, },
"engines": { "engines": {
@ -2953,13 +2952,13 @@
} }
}, },
"node_modules/@typescript-eslint/scope-manager": { "node_modules/@typescript-eslint/scope-manager": {
"version": "5.59.5", "version": "5.59.8",
"resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.5.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/scope-manager/-/scope-manager-5.59.8.tgz",
"integrity": "sha512-jVecWwnkX6ZgutF+DovbBJirZcAxgxC0EOHYt/niMROf8p4PwxxG32Qdhj/iIQQIuOflLjNkxoXyArkcIP7C3A==", "integrity": "sha512-/w08ndCYI8gxGf+9zKf1vtx/16y8MHrZs5/tnjHhMLNSixuNcJavSX4wAiPf4aS5x41Es9YPCn44MIe4cxIlig==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@typescript-eslint/types": "5.59.5", "@typescript-eslint/types": "5.59.8",
"@typescript-eslint/visitor-keys": "5.59.5" "@typescript-eslint/visitor-keys": "5.59.8"
}, },
"engines": { "engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0" "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
@ -2970,13 +2969,13 @@
} }
}, },
"node_modules/@typescript-eslint/type-utils": { "node_modules/@typescript-eslint/type-utils": {
"version": "5.59.5", "version": "5.59.8",
"resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.5.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/type-utils/-/type-utils-5.59.8.tgz",
"integrity": "sha512-4eyhS7oGym67/pSxA2mmNq7X164oqDYNnZCUayBwJZIRVvKpBCMBzFnFxjeoDeShjtO6RQBHBuwybuX3POnDqg==", "integrity": "sha512-+5M518uEIHFBy3FnyqZUF3BMP+AXnYn4oyH8RF012+e7/msMY98FhGL5SrN29NQ9xDgvqCgYnsOiKp1VjZ/fpA==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@typescript-eslint/typescript-estree": "5.59.5", "@typescript-eslint/typescript-estree": "5.59.8",
"@typescript-eslint/utils": "5.59.5", "@typescript-eslint/utils": "5.59.8",
"debug": "^4.3.4", "debug": "^4.3.4",
"tsutils": "^3.21.0" "tsutils": "^3.21.0"
}, },
@ -2997,9 +2996,9 @@
} }
}, },
"node_modules/@typescript-eslint/types": { "node_modules/@typescript-eslint/types": {
"version": "5.59.5", "version": "5.59.8",
"resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.5.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/types/-/types-5.59.8.tgz",
"integrity": "sha512-xkfRPHbqSH4Ggx4eHRIO/eGL8XL4Ysb4woL8c87YuAo8Md7AUjyWKa9YMwTL519SyDPrfEgKdewjkxNCVeJW7w==", "integrity": "sha512-+uWuOhBTj/L6awoWIg0BlWy0u9TyFpCHrAuQ5bNfxDaZ1Ppb3mx6tUigc74LHcbHpOHuOTOJrBoAnhdHdaea1w==",
"dev": true, "dev": true,
"engines": { "engines": {
"node": "^12.22.0 || ^14.17.0 || >=16.0.0" "node": "^12.22.0 || ^14.17.0 || >=16.0.0"
@ -3010,13 +3009,13 @@
} }
}, },
"node_modules/@typescript-eslint/typescript-estree": { "node_modules/@typescript-eslint/typescript-estree": {
"version": "5.59.5", "version": "5.59.8",
"resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.5.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/typescript-estree/-/typescript-estree-5.59.8.tgz",
"integrity": "sha512-+XXdLN2CZLZcD/mO7mQtJMvCkzRfmODbeSKuMY/yXbGkzvA9rJyDY5qDYNoiz2kP/dmyAxXquL2BvLQLJFPQIg==", "integrity": "sha512-Jy/lPSDJGNow14vYu6IrW790p7HIf/SOV1Bb6lZ7NUkLc2iB2Z9elESmsaUtLw8kVqogSbtLH9tut5GCX1RLDg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@typescript-eslint/types": "5.59.5", "@typescript-eslint/types": "5.59.8",
"@typescript-eslint/visitor-keys": "5.59.5", "@typescript-eslint/visitor-keys": "5.59.8",
"debug": "^4.3.4", "debug": "^4.3.4",
"globby": "^11.1.0", "globby": "^11.1.0",
"is-glob": "^4.0.3", "is-glob": "^4.0.3",
@ -3052,17 +3051,17 @@
} }
}, },
"node_modules/@typescript-eslint/utils": { "node_modules/@typescript-eslint/utils": {
"version": "5.59.5", "version": "5.59.8",
"resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.5.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/utils/-/utils-5.59.8.tgz",
"integrity": "sha512-sCEHOiw+RbyTii9c3/qN74hYDPNORb8yWCoPLmB7BIflhplJ65u2PBpdRla12e3SSTJ2erRkPjz7ngLHhUegxA==", "integrity": "sha512-Tr65630KysnNn9f9G7ROF3w1b5/7f6QVCJ+WK9nhIocWmx9F+TmCAcglF26Vm7z8KCTwoKcNEBZrhlklla3CKg==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/eslint-utils": "^4.2.0",
"@types/json-schema": "^7.0.9", "@types/json-schema": "^7.0.9",
"@types/semver": "^7.3.12", "@types/semver": "^7.3.12",
"@typescript-eslint/scope-manager": "5.59.5", "@typescript-eslint/scope-manager": "5.59.8",
"@typescript-eslint/types": "5.59.5", "@typescript-eslint/types": "5.59.8",
"@typescript-eslint/typescript-estree": "5.59.5", "@typescript-eslint/typescript-estree": "5.59.8",
"eslint-scope": "^5.1.1", "eslint-scope": "^5.1.1",
"semver": "^7.3.7" "semver": "^7.3.7"
}, },
@ -3093,12 +3092,12 @@
} }
}, },
"node_modules/@typescript-eslint/visitor-keys": { "node_modules/@typescript-eslint/visitor-keys": {
"version": "5.59.5", "version": "5.59.8",
"resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.5.tgz", "resolved": "https://registry.npmjs.org/@typescript-eslint/visitor-keys/-/visitor-keys-5.59.8.tgz",
"integrity": "sha512-qL+Oz+dbeBRTeyJTIy0eniD3uvqU7x+y1QceBismZ41hd4aBSRh8UAw4pZP0+XzLuPZmx4raNMq/I+59W2lXKA==", "integrity": "sha512-pJhi2ms0x0xgloT7xYabil3SGGlojNNKjK/q6dB3Ey0uJLMjK2UDGJvHieiyJVW/7C3KI+Z4Q3pEHkm4ejA+xQ==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@typescript-eslint/types": "5.59.5", "@typescript-eslint/types": "5.59.8",
"eslint-visitor-keys": "^3.3.0" "eslint-visitor-keys": "^3.3.0"
}, },
"engines": { "engines": {
@ -4112,11 +4111,14 @@
} }
}, },
"node_modules/dotenv": { "node_modules/dotenv": {
"version": "16.0.3", "version": "16.1.3",
"resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.0.3.tgz", "resolved": "https://registry.npmjs.org/dotenv/-/dotenv-16.1.3.tgz",
"integrity": "sha512-7GO6HghkA5fYG9TYnNxi14/7K9f5occMlp3zXAuSxn7CKCxt9xbNWG7yF8hTCSUchlfWSe3uLmlPfigevRItzQ==", "integrity": "sha512-FYssxsmCTtKL72fGBSvb1K9dRz0/VZeWqFme/vSb7r7323x4CRaHu4LvQ5JG3+s6yt2YPbBrkpiEODktfyjI9A==",
"engines": { "engines": {
"node": ">=12" "node": ">=12"
},
"funding": {
"url": "https://github.com/motdotla/dotenv?sponsor=1"
} }
}, },
"node_modules/dset": { "node_modules/dset": {
@ -4224,16 +4226,16 @@
} }
}, },
"node_modules/eslint": { "node_modules/eslint": {
"version": "8.40.0", "version": "8.42.0",
"resolved": "https://registry.npmjs.org/eslint/-/eslint-8.40.0.tgz", "resolved": "https://registry.npmjs.org/eslint/-/eslint-8.42.0.tgz",
"integrity": "sha512-bvR+TsP9EHL3TqNtj9sCNJVAFK3fBN8Q7g5waghxyRsPLIMwL73XSKnZFK0hk/O2ANC+iAoq6PWMQ+IfBAJIiQ==", "integrity": "sha512-ulg9Ms6E1WPf67PHaEY4/6E2tEn5/f7FXGzr3t9cBMugOmf1INYvuUwwh1aXQN4MfJ6a5K2iNwP3w4AColvI9A==",
"dev": true, "dev": true,
"dependencies": { "dependencies": {
"@eslint-community/eslint-utils": "^4.2.0", "@eslint-community/eslint-utils": "^4.2.0",
"@eslint-community/regexpp": "^4.4.0", "@eslint-community/regexpp": "^4.4.0",
"@eslint/eslintrc": "^2.0.3", "@eslint/eslintrc": "^2.0.3",
"@eslint/js": "8.40.0", "@eslint/js": "8.42.0",
"@humanwhocodes/config-array": "^0.11.8", "@humanwhocodes/config-array": "^0.11.10",
"@humanwhocodes/module-importer": "^1.0.1", "@humanwhocodes/module-importer": "^1.0.1",
"@nodelib/fs.walk": "^1.2.8", "@nodelib/fs.walk": "^1.2.8",
"ajv": "^6.10.0", "ajv": "^6.10.0",
@ -4252,13 +4254,12 @@
"find-up": "^5.0.0", "find-up": "^5.0.0",
"glob-parent": "^6.0.2", "glob-parent": "^6.0.2",
"globals": "^13.19.0", "globals": "^13.19.0",
"grapheme-splitter": "^1.0.4", "graphemer": "^1.4.0",
"ignore": "^5.2.0", "ignore": "^5.2.0",
"import-fresh": "^3.0.0", "import-fresh": "^3.0.0",
"imurmurhash": "^0.1.4", "imurmurhash": "^0.1.4",
"is-glob": "^4.0.0", "is-glob": "^4.0.0",
"is-path-inside": "^3.0.3", "is-path-inside": "^3.0.3",
"js-sdsl": "^4.1.4",
"js-yaml": "^4.1.0", "js-yaml": "^4.1.0",
"json-stable-stringify-without-jsonify": "^1.0.1", "json-stable-stringify-without-jsonify": "^1.0.1",
"levn": "^0.4.1", "levn": "^0.4.1",
@ -4857,6 +4858,12 @@
"integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==", "integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==",
"dev": true "dev": true
}, },
"node_modules/graphemer": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/graphemer/-/graphemer-1.4.0.tgz",
"integrity": "sha512-EtKwoO6kxCL9WO5xipiHTZlSzBm7WLT627TqC/uVRd0HKmq8NXyebnNYxDoBi7wt8eTWrUrKXCOVaFq9x1kgag==",
"dev": true
},
"node_modules/graphql": { "node_modules/graphql": {
"version": "16.6.0", "version": "16.6.0",
"resolved": "https://registry.npmjs.org/graphql/-/graphql-16.6.0.tgz", "resolved": "https://registry.npmjs.org/graphql/-/graphql-16.6.0.tgz",
@ -5403,13 +5410,13 @@
"dev": true "dev": true
}, },
"node_modules/isomorphic-dompurify": { "node_modules/isomorphic-dompurify": {
"version": "1.5.0", "version": "1.6.0",
"resolved": "https://registry.npmjs.org/isomorphic-dompurify/-/isomorphic-dompurify-1.5.0.tgz", "resolved": "https://registry.npmjs.org/isomorphic-dompurify/-/isomorphic-dompurify-1.6.0.tgz",
"integrity": "sha512-1fK9Uoo/OWdl7qOAW+/+msUgja8pQy82wW8bmywO39+suOPU3tZL6kCgJRezITCHirPvICqBVG8AmlJ1lw96Qw==", "integrity": "sha512-ghd7K3FKk+/gLlK7UBJ6xmCho+NggmDwucEa9MZ/qERMigaLbkaARZ5srw1ZSksEIp9MnNIZFnkxe2+lgNgIrA==",
"dependencies": { "dependencies": {
"@types/dompurify": "^3.0.2", "@types/dompurify": "^3.0.2",
"dompurify": "^3.0.3", "dompurify": "^3.0.3",
"jsdom": "^22.0.0" "jsdom": "^22.1.0"
} }
}, },
"node_modules/isomorphic-fetch": { "node_modules/isomorphic-fetch": {
@ -5440,16 +5447,6 @@
"jiti": "bin/jiti.js" "jiti": "bin/jiti.js"
} }
}, },
"node_modules/js-sdsl": {
"version": "4.3.0",
"resolved": "https://registry.npmjs.org/js-sdsl/-/js-sdsl-4.3.0.tgz",
"integrity": "sha512-mifzlm2+5nZ+lEcLJMoBK0/IH/bDg8XnJfd/Wq6IP+xoCjLZsTOnV2QpxlVbX9bMnkl5PdEjNtBJ9Cj1NjifhQ==",
"dev": true,
"funding": {
"type": "opencollective",
"url": "https://opencollective.com/js-sdsl"
}
},
"node_modules/js-tokens": { "node_modules/js-tokens": {
"version": "4.0.0", "version": "4.0.0",
"resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz", "resolved": "https://registry.npmjs.org/js-tokens/-/js-tokens-4.0.0.tgz",
@ -5469,9 +5466,9 @@
} }
}, },
"node_modules/jsdom": { "node_modules/jsdom": {
"version": "22.0.0", "version": "22.1.0",
"resolved": "https://registry.npmjs.org/jsdom/-/jsdom-22.0.0.tgz", "resolved": "https://registry.npmjs.org/jsdom/-/jsdom-22.1.0.tgz",
"integrity": "sha512-p5ZTEb5h+O+iU02t0GfEjAnkdYPrQSkfuTSMkMYyIoMvUNEHsbG0bHHbfXIcfTqD2UfvjQX7mmgiFsyRwGscVw==", "integrity": "sha512-/9AVW7xNbsBv6GfWho4TTNjEo9fe6Zhf9O7s0Fhhr3u+awPwAJMKwAMXnkk5vBxflqLW9hTHX/0cs+P3gW+cQw==",
"dependencies": { "dependencies": {
"abab": "^2.0.6", "abab": "^2.0.6",
"cssstyle": "^3.0.0", "cssstyle": "^3.0.0",
@ -5896,9 +5893,9 @@
} }
}, },
"node_modules/marked": { "node_modules/marked": {
"version": "5.0.2", "version": "5.0.4",
"resolved": "https://registry.npmjs.org/marked/-/marked-5.0.2.tgz", "resolved": "https://registry.npmjs.org/marked/-/marked-5.0.4.tgz",
"integrity": "sha512-TXksm9GwqXCRNbFUZmMtqNLvy3K2cQHuWmyBDLOrY1e6i9UvZpOTJXoz7fBjYkJkaUFzV9hBFxMuZSyQt8R6KQ==", "integrity": "sha512-r0W8/DK56fAkV0qfUCO9cEt/VlFWUzoJOqEigvijmsVkTuPOHckh7ZutNJepRO1AxHhK96/9txonHg4bWd/aLA==",
"bin": { "bin": {
"marked": "bin/marked.js" "marked": "bin/marked.js"
}, },
@ -6108,9 +6105,9 @@
"dev": true "dev": true
}, },
"node_modules/nwsapi": { "node_modules/nwsapi": {
"version": "2.2.4", "version": "2.2.5",
"resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.4.tgz", "resolved": "https://registry.npmjs.org/nwsapi/-/nwsapi-2.2.5.tgz",
"integrity": "sha512-NHj4rzRo0tQdijE9ZqAx6kYDcoRwYwSYzCA8MY3JzfxlrvEU0jhnhJT9BhqhJs7I/dKcrDm6TyulaRqZPIhN5g==" "integrity": "sha512-6xpotnECFy/og7tKSBVmUNft7J3jyXAka4XvG6AUhFWRz+Q/Ljus7znJAA3bxColfQLdS+XsjoodtJfCgeTEFQ=="
}, },
"node_modules/object-assign": { "node_modules/object-assign": {
"version": "4.1.1", "version": "4.1.1",

View File

@ -11,10 +11,10 @@
}, },
"dependencies": { "dependencies": {
"@digitak/esrun": "3.2.24", "@digitak/esrun": "3.2.24",
"dotenv": "^16.0.3", "dotenv": "^16.1.3",
"html-to-text": "^9.0.5", "html-to-text": "^9.0.5",
"isomorphic-dompurify": "^1.5.0", "isomorphic-dompurify": "^1.6.0",
"marked": "^5.0.2", "marked": "^5.0.4",
"meilisearch": "^0.32.3" "meilisearch": "^0.32.3"
}, },
"devDependencies": { "devDependencies": {
@ -22,12 +22,12 @@
"@graphql-codegen/typescript": "3.0.4", "@graphql-codegen/typescript": "3.0.4",
"@graphql-codegen/typescript-graphql-request": "^4.5.9", "@graphql-codegen/typescript-graphql-request": "^4.5.9",
"@graphql-codegen/typescript-operations": "^3.0.4", "@graphql-codegen/typescript-operations": "^3.0.4",
"@types/html-to-text": "^9.0.0", "@types/html-to-text": "^9.0.1",
"@types/marked": "^5.0.0", "@types/marked": "^5.0.0",
"@types/node": "^18.14.6", "@types/node": "^18.14.6",
"@typescript-eslint/eslint-plugin": "^5.59.5", "@typescript-eslint/eslint-plugin": "^5.59.8",
"@typescript-eslint/parser": "^5.59.5", "@typescript-eslint/parser": "^5.59.8",
"eslint": "^8.40.0", "eslint": "^8.42.0",
"graphql": "^16.6.0", "graphql": "^16.6.0",
"graphql-request": "5.1.0" "graphql-request": "5.1.0"
} }

View File

@ -19,10 +19,8 @@ fragment contentAttributes on Content {
} }
categories(pagination: { limit: -1 }) { categories(pagination: { limit: -1 }) {
data { data {
id
attributes { attributes {
name slug
short
} }
} }
} }
@ -30,9 +28,6 @@ fragment contentAttributes on Content {
data { data {
attributes { attributes {
slug slug
titles(filters: { language: { code: { eq: "en" } } }) {
title
}
} }
} }
} }

View File

@ -29,10 +29,8 @@ fragment libraryItemAttributes on LibraryItem {
} }
categories(pagination: { limit: -1 }) { categories(pagination: { limit: -1 }) {
data { data {
id
attributes { attributes {
name slug
short
} }
} }
} }
@ -43,19 +41,15 @@ fragment libraryItemAttributes on LibraryItem {
data { data {
attributes { attributes {
slug slug
titles(filters: { language: { code: { eq: "en" } } }) {
title
}
} }
} }
} }
} }
... on ComponentMetadataGame { ... on ComponentMetadataGame {
platforms(pagination: { limit: -1 }) { platform {
data { data {
id
attributes { attributes {
short slug
} }
} }
} }
@ -65,9 +59,6 @@ fragment libraryItemAttributes on LibraryItem {
data { data {
attributes { attributes {
slug slug
titles(filters: { language: { code: { eq: "en" } } }) {
title
}
} }
} }
} }
@ -77,9 +68,6 @@ fragment libraryItemAttributes on LibraryItem {
data { data {
attributes { attributes {
slug slug
titles(filters: { language: { code: { eq: "en" } } }) {
title
}
} }
} }
} }
@ -89,9 +77,6 @@ fragment libraryItemAttributes on LibraryItem {
data { data {
attributes { attributes {
slug slug
titles(filters: { language: { code: { eq: "en" } } }) {
title
}
} }
} }
} }
@ -99,9 +84,6 @@ fragment libraryItemAttributes on LibraryItem {
data { data {
attributes { attributes {
slug slug
titles(filters: { language: { code: { eq: "en" } } }) {
title
}
} }
} }
} }

View File

@ -6,9 +6,8 @@ fragment postAttributes on Post {
} }
categories(pagination: { limit: -1 }) { categories(pagination: { limit: -1 }) {
data { data {
id
attributes { attributes {
short slug
} }
} }
} }

View File

@ -8,19 +8,8 @@ fragment weaponAttributes on WeaponStory {
} }
type { type {
data { data {
id
attributes { attributes {
slug slug
translations(filters: { language: { code: { eq: "en" } } }) {
name
language {
data {
attributes {
code
}
}
}
}
} }
} }
} }
@ -40,9 +29,8 @@ fragment weaponAttributes on WeaponStory {
id id
categories(pagination: { limit: -1 }) { categories(pagination: { limit: -1 }) {
data { data {
id
attributes { attributes {
short slug
} }
} }
} }

View File

@ -9,10 +9,8 @@ fragment wikiPageAttributes on WikiPage {
} }
categories(pagination: { limit: -1 }) { categories(pagination: { limit: -1 }) {
data { data {
id
attributes { attributes {
name slug
short
} }
} }
} }
@ -30,19 +28,8 @@ fragment wikiPageAttributes on WikiPage {
} }
tags(pagination: { limit: -1 }) { tags(pagination: { limit: -1 }) {
data { data {
id
attributes { attributes {
slug slug
titles(filters: { language: { code: { eq: "en" } } }) {
language {
data {
attributes {
code
}
}
}
title
}
} }
} }
} }

View File

@ -99,9 +99,18 @@ export type Category = {
name: Scalars['String']; name: Scalars['String'];
series?: Maybe<Enum_Category_Series>; series?: Maybe<Enum_Category_Series>;
short: Scalars['String']; short: Scalars['String'];
slug: Scalars['String'];
titles?: Maybe<Array<Maybe<ComponentTranslationsCategoriesTitle>>>;
updatedAt?: Maybe<Scalars['DateTime']>; updatedAt?: Maybe<Scalars['DateTime']>;
}; };
export type CategoryTitlesArgs = {
filters?: InputMaybe<ComponentTranslationsCategoriesTitleFiltersInput>;
pagination?: InputMaybe<PaginationArg>;
sort?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
};
export type CategoryEntity = { export type CategoryEntity = {
__typename?: 'CategoryEntity'; __typename?: 'CategoryEntity';
attributes?: Maybe<Category>; attributes?: Maybe<Category>;
@ -128,6 +137,8 @@ export type CategoryFiltersInput = {
or?: InputMaybe<Array<InputMaybe<CategoryFiltersInput>>>; or?: InputMaybe<Array<InputMaybe<CategoryFiltersInput>>>;
series?: InputMaybe<StringFilterInput>; series?: InputMaybe<StringFilterInput>;
short?: InputMaybe<StringFilterInput>; short?: InputMaybe<StringFilterInput>;
slug?: InputMaybe<StringFilterInput>;
titles?: InputMaybe<ComponentTranslationsCategoriesTitleFiltersInput>;
updatedAt?: InputMaybe<DateTimeFilterInput>; updatedAt?: InputMaybe<DateTimeFilterInput>;
}; };
@ -135,6 +146,8 @@ export type CategoryInput = {
name?: InputMaybe<Scalars['String']>; name?: InputMaybe<Scalars['String']>;
series?: InputMaybe<Enum_Category_Series>; series?: InputMaybe<Enum_Category_Series>;
short?: InputMaybe<Scalars['String']>; short?: InputMaybe<Scalars['String']>;
slug?: InputMaybe<Scalars['String']>;
titles?: InputMaybe<Array<InputMaybe<ComponentTranslationsCategoriesTitleInput>>>;
}; };
export type CategoryRelationResponseCollection = { export type CategoryRelationResponseCollection = {
@ -936,6 +949,14 @@ export type ComponentMetadataAudio = {
__typename?: 'ComponentMetadataAudio'; __typename?: 'ComponentMetadataAudio';
id: Scalars['ID']; id: Scalars['ID'];
subtype?: Maybe<AudioSubtypeEntityResponse>; subtype?: Maybe<AudioSubtypeEntityResponse>;
tracks?: Maybe<Array<Maybe<ComponentSetsTrackSet>>>;
};
export type ComponentMetadataAudioTracksArgs = {
filters?: InputMaybe<ComponentSetsTrackSetFiltersInput>;
pagination?: InputMaybe<PaginationArg>;
sort?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
}; };
export type ComponentMetadataBooks = { export type ComponentMetadataBooks = {
@ -961,6 +982,7 @@ export type ComponentMetadataGame = {
demo: Scalars['Boolean']; demo: Scalars['Boolean'];
id: Scalars['ID']; id: Scalars['ID'];
interface_languages?: Maybe<LanguageRelationResponseCollection>; interface_languages?: Maybe<LanguageRelationResponseCollection>;
platform?: Maybe<GamePlatformEntityResponse>;
platforms?: Maybe<GamePlatformRelationResponseCollection>; platforms?: Maybe<GamePlatformRelationResponseCollection>;
sub_languages?: Maybe<LanguageRelationResponseCollection>; sub_languages?: Maybe<LanguageRelationResponseCollection>;
}; };
@ -1069,8 +1091,7 @@ export type ComponentRangeTimeRange = {
export type ComponentSetsAudioSet = { export type ComponentSetsAudioSet = {
__typename?: 'ComponentSetsAudioSet'; __typename?: 'ComponentSetsAudioSet';
audiofile?: Maybe<UploadFileRelationResponseCollection>; dubbers?: Maybe<RecorderRelationResponseCollection>;
dubbers?: Maybe<RecorderEntityResponse>;
id: Scalars['ID']; id: Scalars['ID'];
notes?: Maybe<Scalars['String']>; notes?: Maybe<Scalars['String']>;
source_language?: Maybe<LanguageEntityResponse>; source_language?: Maybe<LanguageEntityResponse>;
@ -1078,8 +1099,8 @@ export type ComponentSetsAudioSet = {
}; };
export type ComponentSetsAudioSetAudiofileArgs = { export type ComponentSetsAudioSetDubbersArgs = {
filters?: InputMaybe<UploadFileFiltersInput>; filters?: InputMaybe<RecorderFiltersInput>;
pagination?: InputMaybe<PaginationArg>; pagination?: InputMaybe<PaginationArg>;
sort?: InputMaybe<Array<InputMaybe<Scalars['String']>>>; sort?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
}; };
@ -1095,8 +1116,7 @@ export type ComponentSetsAudioSetFiltersInput = {
}; };
export type ComponentSetsAudioSetInput = { export type ComponentSetsAudioSetInput = {
audiofile?: InputMaybe<Array<InputMaybe<Scalars['ID']>>>; dubbers?: InputMaybe<Array<InputMaybe<Scalars['ID']>>>;
dubbers?: InputMaybe<Scalars['ID']>;
id?: InputMaybe<Scalars['ID']>; id?: InputMaybe<Scalars['ID']>;
notes?: InputMaybe<Scalars['String']>; notes?: InputMaybe<Scalars['String']>;
source_language?: InputMaybe<Scalars['ID']>; source_language?: InputMaybe<Scalars['ID']>;
@ -1226,36 +1246,56 @@ export type ComponentSetsTextSetInput = {
translators?: InputMaybe<Array<InputMaybe<Scalars['ID']>>>; translators?: InputMaybe<Array<InputMaybe<Scalars['ID']>>>;
}; };
export type ComponentSetsTrackSet = {
__typename?: 'ComponentSetsTrackSet';
id: Scalars['ID'];
slug: Scalars['String'];
title: Scalars['String'];
};
export type ComponentSetsTrackSetFiltersInput = {
and?: InputMaybe<Array<InputMaybe<ComponentSetsTrackSetFiltersInput>>>;
not?: InputMaybe<ComponentSetsTrackSetFiltersInput>;
or?: InputMaybe<Array<InputMaybe<ComponentSetsTrackSetFiltersInput>>>;
slug?: InputMaybe<StringFilterInput>;
title?: InputMaybe<StringFilterInput>;
};
export type ComponentSetsVideoSet = { export type ComponentSetsVideoSet = {
__typename?: 'ComponentSetsVideoSet'; __typename?: 'ComponentSetsVideoSet';
has_subfile: Scalars['Boolean'];
id: Scalars['ID']; id: Scalars['ID'];
notes?: Maybe<Scalars['String']>; notes?: Maybe<Scalars['String']>;
source_language?: Maybe<LanguageEntityResponse>; source_language?: Maybe<LanguageEntityResponse>;
status: Enum_Componentsetsvideoset_Status; status: Enum_Componentsetsvideoset_Status;
subbers?: Maybe<RecorderEntityResponse>; subbers?: Maybe<RecorderRelationResponseCollection>;
subfile?: Maybe<UploadFileEntityResponse>; };
video_url?: Maybe<Scalars['String']>;
export type ComponentSetsVideoSetSubbersArgs = {
filters?: InputMaybe<RecorderFiltersInput>;
pagination?: InputMaybe<PaginationArg>;
sort?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
}; };
export type ComponentSetsVideoSetFiltersInput = { export type ComponentSetsVideoSetFiltersInput = {
and?: InputMaybe<Array<InputMaybe<ComponentSetsVideoSetFiltersInput>>>; and?: InputMaybe<Array<InputMaybe<ComponentSetsVideoSetFiltersInput>>>;
has_subfile?: InputMaybe<BooleanFilterInput>;
not?: InputMaybe<ComponentSetsVideoSetFiltersInput>; not?: InputMaybe<ComponentSetsVideoSetFiltersInput>;
notes?: InputMaybe<StringFilterInput>; notes?: InputMaybe<StringFilterInput>;
or?: InputMaybe<Array<InputMaybe<ComponentSetsVideoSetFiltersInput>>>; or?: InputMaybe<Array<InputMaybe<ComponentSetsVideoSetFiltersInput>>>;
source_language?: InputMaybe<LanguageFiltersInput>; source_language?: InputMaybe<LanguageFiltersInput>;
status?: InputMaybe<StringFilterInput>; status?: InputMaybe<StringFilterInput>;
subbers?: InputMaybe<RecorderFiltersInput>; subbers?: InputMaybe<RecorderFiltersInput>;
video_url?: InputMaybe<StringFilterInput>;
}; };
export type ComponentSetsVideoSetInput = { export type ComponentSetsVideoSetInput = {
has_subfile?: InputMaybe<Scalars['Boolean']>;
id?: InputMaybe<Scalars['ID']>; id?: InputMaybe<Scalars['ID']>;
notes?: InputMaybe<Scalars['String']>; notes?: InputMaybe<Scalars['String']>;
source_language?: InputMaybe<Scalars['ID']>; source_language?: InputMaybe<Scalars['ID']>;
status?: InputMaybe<Enum_Componentsetsvideoset_Status>; status?: InputMaybe<Enum_Componentsetsvideoset_Status>;
subbers?: InputMaybe<Scalars['ID']>; subbers?: InputMaybe<Array<InputMaybe<Scalars['ID']>>>;
subfile?: InputMaybe<Scalars['ID']>;
video_url?: InputMaybe<Scalars['String']>;
}; };
export type ComponentSetsWikiSet = { export type ComponentSetsWikiSet = {
@ -1331,6 +1371,30 @@ export type ComponentTranslationsBioInput = {
language?: InputMaybe<Scalars['ID']>; language?: InputMaybe<Scalars['ID']>;
}; };
export type ComponentTranslationsCategoriesTitle = {
__typename?: 'ComponentTranslationsCategoriesTitle';
id: Scalars['ID'];
language?: Maybe<LanguageEntityResponse>;
short?: Maybe<Scalars['String']>;
title?: Maybe<Scalars['String']>;
};
export type ComponentTranslationsCategoriesTitleFiltersInput = {
and?: InputMaybe<Array<InputMaybe<ComponentTranslationsCategoriesTitleFiltersInput>>>;
language?: InputMaybe<LanguageFiltersInput>;
not?: InputMaybe<ComponentTranslationsCategoriesTitleFiltersInput>;
or?: InputMaybe<Array<InputMaybe<ComponentTranslationsCategoriesTitleFiltersInput>>>;
short?: InputMaybe<StringFilterInput>;
title?: InputMaybe<StringFilterInput>;
};
export type ComponentTranslationsCategoriesTitleInput = {
id?: InputMaybe<Scalars['ID']>;
language?: InputMaybe<Scalars['ID']>;
short?: InputMaybe<Scalars['String']>;
title?: InputMaybe<Scalars['String']>;
};
export type ComponentTranslationsChronicles = { export type ComponentTranslationsChronicles = {
__typename?: 'ComponentTranslationsChronicles'; __typename?: 'ComponentTranslationsChronicles';
body?: Maybe<ComponentCollectionsComponentBody>; body?: Maybe<ComponentCollectionsComponentBody>;
@ -1412,6 +1476,30 @@ export type ComponentTranslationsChronologyItemInput = {
title?: InputMaybe<Scalars['String']>; title?: InputMaybe<Scalars['String']>;
}; };
export type ComponentTranslationsGamePlatformsTranslations = {
__typename?: 'ComponentTranslationsGamePlatformsTranslations';
id: Scalars['ID'];
language?: Maybe<LanguageEntityResponse>;
short?: Maybe<Scalars['String']>;
title?: Maybe<Scalars['String']>;
};
export type ComponentTranslationsGamePlatformsTranslationsFiltersInput = {
and?: InputMaybe<Array<InputMaybe<ComponentTranslationsGamePlatformsTranslationsFiltersInput>>>;
language?: InputMaybe<LanguageFiltersInput>;
not?: InputMaybe<ComponentTranslationsGamePlatformsTranslationsFiltersInput>;
or?: InputMaybe<Array<InputMaybe<ComponentTranslationsGamePlatformsTranslationsFiltersInput>>>;
short?: InputMaybe<StringFilterInput>;
title?: InputMaybe<StringFilterInput>;
};
export type ComponentTranslationsGamePlatformsTranslationsInput = {
id?: InputMaybe<Scalars['ID']>;
language?: InputMaybe<Scalars['ID']>;
short?: InputMaybe<Scalars['String']>;
title?: InputMaybe<Scalars['String']>;
};
export type ComponentTranslationsGlossaryDefinition = { export type ComponentTranslationsGlossaryDefinition = {
__typename?: 'ComponentTranslationsGlossaryDefinition'; __typename?: 'ComponentTranslationsGlossaryDefinition';
definition?: Maybe<Scalars['String']>; definition?: Maybe<Scalars['String']>;
@ -2470,9 +2558,18 @@ export type GamePlatform = {
createdAt?: Maybe<Scalars['DateTime']>; createdAt?: Maybe<Scalars['DateTime']>;
name: Scalars['String']; name: Scalars['String'];
short: Scalars['String']; short: Scalars['String'];
slug: Scalars['String'];
titles?: Maybe<Array<Maybe<ComponentTranslationsGamePlatformsTranslations>>>;
updatedAt?: Maybe<Scalars['DateTime']>; updatedAt?: Maybe<Scalars['DateTime']>;
}; };
export type GamePlatformTitlesArgs = {
filters?: InputMaybe<ComponentTranslationsGamePlatformsTranslationsFiltersInput>;
pagination?: InputMaybe<PaginationArg>;
sort?: InputMaybe<Array<InputMaybe<Scalars['String']>>>;
};
export type GamePlatformEntity = { export type GamePlatformEntity = {
__typename?: 'GamePlatformEntity'; __typename?: 'GamePlatformEntity';
attributes?: Maybe<GamePlatform>; attributes?: Maybe<GamePlatform>;
@ -2498,12 +2595,16 @@ export type GamePlatformFiltersInput = {
not?: InputMaybe<GamePlatformFiltersInput>; not?: InputMaybe<GamePlatformFiltersInput>;
or?: InputMaybe<Array<InputMaybe<GamePlatformFiltersInput>>>; or?: InputMaybe<Array<InputMaybe<GamePlatformFiltersInput>>>;
short?: InputMaybe<StringFilterInput>; short?: InputMaybe<StringFilterInput>;
slug?: InputMaybe<StringFilterInput>;
titles?: InputMaybe<ComponentTranslationsGamePlatformsTranslationsFiltersInput>;
updatedAt?: InputMaybe<DateTimeFilterInput>; updatedAt?: InputMaybe<DateTimeFilterInput>;
}; };
export type GamePlatformInput = { export type GamePlatformInput = {
name?: InputMaybe<Scalars['String']>; name?: InputMaybe<Scalars['String']>;
short?: InputMaybe<Scalars['String']>; short?: InputMaybe<Scalars['String']>;
slug?: InputMaybe<Scalars['String']>;
titles?: InputMaybe<Array<InputMaybe<ComponentTranslationsGamePlatformsTranslationsInput>>>;
}; };
export type GamePlatformRelationResponseCollection = { export type GamePlatformRelationResponseCollection = {
@ -2511,7 +2612,7 @@ export type GamePlatformRelationResponseCollection = {
data: Array<GamePlatformEntity>; data: Array<GamePlatformEntity>;
}; };
export type GenericMorph = AudioSubtype | Category | Chronicle | ChroniclesChapter | ChronologyEra | ChronologyItem | ComponentBasicsCredits | ComponentBasicsDatepicker | ComponentBasicsFileSize | ComponentBasicsPrice | ComponentBasicsSize | ComponentBasicsUrl | ComponentCollectionsComponentAliases | ComponentCollectionsComponentBody | ComponentCollectionsComponentDefinition | ComponentCollectionsComponentEvent | ComponentCollectionsComponentGlossaryDefinition | ComponentCollectionsComponentLibraryCover | ComponentCollectionsComponentLibraryDustJacket | ComponentCollectionsComponentLibraryImages | ComponentCollectionsComponentLibraryObiBelt | ComponentCollectionsComponentTitles | ComponentCollectionsComponentWeaponStory | ComponentCollectionsComponentWikiDefinition | ComponentMetadataAudio | ComponentMetadataBooks | ComponentMetadataGame | ComponentMetadataGroup | ComponentMetadataMerch | ComponentMetadataOther | ComponentMetadataVideo | ComponentPageBuilderGallery | ComponentPageBuilderGrid | ComponentPageBuilderTabs | ComponentRangeGameAspect | ComponentRangeOther | ComponentRangePageRange | ComponentRangeTimeRange | ComponentSetsAudioSet | ComponentSetsScanSet | ComponentSetsTextSet | ComponentSetsVideoSet | ComponentSetsWikiSet | ComponentSourceUrlSource | ComponentTranslationsAudioSets | ComponentTranslationsBio | ComponentTranslationsChronicles | ComponentTranslationsChronologyEra | ComponentTranslationsChronologyItem | ComponentTranslationsGlossaryDefinition | ComponentTranslationsGlossaryItem | ComponentTranslationsLibraryContent | ComponentTranslationsLibraryItems | ComponentTranslationsPosts | ComponentTranslationsReinCostumes | ComponentTranslationsReinEmblems | ComponentTranslationsScanSet | ComponentTranslationsSimpleTitle | ComponentTranslationsTextSet | ComponentTranslationsTitle | ComponentTranslationsVideoSets | ComponentTranslationsWeaponStory | ComponentTranslationsWeaponStoryStory | ComponentTranslationsWeaponStoryType | ComponentTranslationsWebArchives | ComponentTranslationsWiki | ComponentTranslationsWikiPost | ComponentWikiSpecializationChronology | ComponentWikiSpecializationGlossaryItem | ComponentWikiSpecializationPost | ComponentWikiSpecializationWeapon | Content | ContentType | ContentsFolder | Currency | GamePlatform | GlossaryItem | GlossaryItemType | GroupSubtype | Language | LibraryItem | MerchItem | MetadataType | Post | RangedContent | Recorder | ReinCostume | ReinEmblem | Source | TextualSubtype | UploadFile | UploadFolder | Video | VideoChannel | VideoSubtype | WeaponStory | WeaponStoryGroup | WeaponStoryType | WebArchive | WebsiteInterface | WikiPage | WikiPagesTag; export type GenericMorph = AudioSubtype | Category | Chronicle | ChroniclesChapter | ChronologyEra | ChronologyItem | ComponentBasicsCredits | ComponentBasicsDatepicker | ComponentBasicsFileSize | ComponentBasicsPrice | ComponentBasicsSize | ComponentBasicsUrl | ComponentCollectionsComponentAliases | ComponentCollectionsComponentBody | ComponentCollectionsComponentDefinition | ComponentCollectionsComponentEvent | ComponentCollectionsComponentGlossaryDefinition | ComponentCollectionsComponentLibraryCover | ComponentCollectionsComponentLibraryDustJacket | ComponentCollectionsComponentLibraryImages | ComponentCollectionsComponentLibraryObiBelt | ComponentCollectionsComponentTitles | ComponentCollectionsComponentWeaponStory | ComponentCollectionsComponentWikiDefinition | ComponentMetadataAudio | ComponentMetadataBooks | ComponentMetadataGame | ComponentMetadataGroup | ComponentMetadataMerch | ComponentMetadataOther | ComponentMetadataVideo | ComponentPageBuilderGallery | ComponentPageBuilderGrid | ComponentPageBuilderTabs | ComponentRangeGameAspect | ComponentRangeOther | ComponentRangePageRange | ComponentRangeTimeRange | ComponentSetsAudioSet | ComponentSetsScanSet | ComponentSetsTextSet | ComponentSetsTrackSet | ComponentSetsVideoSet | ComponentSetsWikiSet | ComponentSourceUrlSource | ComponentTranslationsAudioSets | ComponentTranslationsBio | ComponentTranslationsCategoriesTitle | ComponentTranslationsChronicles | ComponentTranslationsChronologyEra | ComponentTranslationsChronologyItem | ComponentTranslationsGamePlatformsTranslations | ComponentTranslationsGlossaryDefinition | ComponentTranslationsGlossaryItem | ComponentTranslationsLibraryContent | ComponentTranslationsLibraryItems | ComponentTranslationsPosts | ComponentTranslationsReinCostumes | ComponentTranslationsReinEmblems | ComponentTranslationsScanSet | ComponentTranslationsSimpleTitle | ComponentTranslationsTextSet | ComponentTranslationsTitle | ComponentTranslationsVideoSets | ComponentTranslationsWeaponStory | ComponentTranslationsWeaponStoryStory | ComponentTranslationsWeaponStoryType | ComponentTranslationsWebArchives | ComponentTranslationsWiki | ComponentTranslationsWikiPost | ComponentWikiSpecializationChronology | ComponentWikiSpecializationGlossaryItem | ComponentWikiSpecializationPost | ComponentWikiSpecializationWeapon | Content | ContentType | ContentsFolder | Currency | GamePlatform | GlossaryItem | GlossaryItemType | GroupSubtype | Language | LibraryItem | MerchItem | MetadataType | Post | RangedContent | Recorder | ReinCostume | ReinEmblem | Source | TextualSubtype | UploadFile | UploadFolder | Video | VideoChannel | VideoSubtype | WeaponStory | WeaponStoryGroup | WeaponStoryType | WebArchive | WebsiteInterface | WikiPage | WikiPagesTag;
export type GlossaryItem = { export type GlossaryItem = {
__typename?: 'GlossaryItem'; __typename?: 'GlossaryItem';
@ -5421,21 +5522,21 @@ export type WebsiteInterface = {
archives?: Maybe<Scalars['String']>; archives?: Maybe<Scalars['String']>;
archives_description?: Maybe<Scalars['String']>; archives_description?: Maybe<Scalars['String']>;
audio?: Maybe<Scalars['String']>; audio?: Maybe<Scalars['String']>;
author?: Maybe<Scalars['String']>;
auto?: Maybe<Scalars['String']>; auto?: Maybe<Scalars['String']>;
available_at?: Maybe<Scalars['String']>; available_at?: Maybe<Scalars['String']>;
available_at_x?: Maybe<Scalars['String']>;
back_matter?: Maybe<Scalars['String']>; back_matter?: Maybe<Scalars['String']>;
binding?: Maybe<Scalars['String']>; binding?: Maybe<Scalars['String']>;
book_fold?: Maybe<Scalars['String']>; book_fold?: Maybe<Scalars['String']>;
calculated?: Maybe<Scalars['String']>; calculated?: Maybe<Scalars['String']>;
category?: Maybe<Scalars['String']>; category?: Maybe<Scalars['String']>;
change_language?: Maybe<Scalars['String']>;
channel?: Maybe<Scalars['String']>; channel?: Maybe<Scalars['String']>;
chronicles?: Maybe<Scalars['String']>; chronicles?: Maybe<Scalars['String']>;
chronicles_description?: Maybe<Scalars['String']>; chronicles_description?: Maybe<Scalars['String']>;
chronicles_short_description?: Maybe<Scalars['String']>; chronicles_short_description?: Maybe<Scalars['String']>;
chronology?: Maybe<Scalars['String']>; chronology?: Maybe<Scalars['String']>;
cleaners?: Maybe<Scalars['String']>; cleaners?: Maybe<Scalars['String']>;
combine_related_contents?: Maybe<Scalars['String']>;
contact_us?: Maybe<Scalars['String']>; contact_us?: Maybe<Scalars['String']>;
content?: Maybe<Scalars['String']>; content?: Maybe<Scalars['String']>;
content_is_not_available?: Maybe<Scalars['String']>; content_is_not_available?: Maybe<Scalars['String']>;
@ -5453,11 +5554,11 @@ export type WebsiteInterface = {
definition_x?: Maybe<Scalars['String']>; definition_x?: Maybe<Scalars['String']>;
description?: Maybe<Scalars['String']>; description?: Maybe<Scalars['String']>;
details?: Maybe<Scalars['String']>; details?: Maybe<Scalars['String']>;
display_all_items?: Maybe<Scalars['String']>;
done?: Maybe<Scalars['String']>; done?: Maybe<Scalars['String']>;
double_page_view?: Maybe<Scalars['String']>; double_page_view?: Maybe<Scalars['String']>;
download_scans?: Maybe<Scalars['String']>; download_archive?: Maybe<Scalars['String']>;
draft?: Maybe<Scalars['String']>; draft?: Maybe<Scalars['String']>;
dubber?: Maybe<Scalars['String']>;
email?: Maybe<Scalars['String']>; email?: Maybe<Scalars['String']>;
email_gdpr_notice?: Maybe<Scalars['String']>; email_gdpr_notice?: Maybe<Scalars['String']>;
empty_folder_message?: Maybe<Scalars['String']>; empty_folder_message?: Maybe<Scalars['String']>;
@ -5522,7 +5623,7 @@ export type WebsiteInterface = {
price?: Maybe<Scalars['String']>; price?: Maybe<Scalars['String']>;
primary_language?: Maybe<Scalars['String']>; primary_language?: Maybe<Scalars['String']>;
pronouns?: Maybe<Scalars['String']>; pronouns?: Maybe<Scalars['String']>;
proofreaders?: Maybe<Scalars['String']>; proofreader?: Maybe<Scalars['String']>;
quality?: Maybe<Scalars['String']>; quality?: Maybe<Scalars['String']>;
read_content?: Maybe<Scalars['String']>; read_content?: Maybe<Scalars['String']>;
reading_layout?: Maybe<Scalars['String']>; reading_layout?: Maybe<Scalars['String']>;
@ -5541,9 +5642,7 @@ export type WebsiteInterface = {
scanners?: Maybe<Scalars['String']>; scanners?: Maybe<Scalars['String']>;
search?: Maybe<Scalars['String']>; search?: Maybe<Scalars['String']>;
search_placeholder?: Maybe<Scalars['String']>; search_placeholder?: Maybe<Scalars['String']>;
search_title?: Maybe<Scalars['String']>;
secondary_language?: Maybe<Scalars['String']>; secondary_language?: Maybe<Scalars['String']>;
select_language?: Maybe<Scalars['String']>;
select_option_sidebar?: Maybe<Scalars['String']>; select_option_sidebar?: Maybe<Scalars['String']>;
send?: Maybe<Scalars['String']>; send?: Maybe<Scalars['String']>;
settings?: Maybe<Scalars['String']>; settings?: Maybe<Scalars['String']>;
@ -5566,6 +5665,7 @@ export type WebsiteInterface = {
status_incomplete?: Maybe<Scalars['String']>; status_incomplete?: Maybe<Scalars['String']>;
status_review?: Maybe<Scalars['String']>; status_review?: Maybe<Scalars['String']>;
story_x?: Maybe<Scalars['String']>; story_x?: Maybe<Scalars['String']>;
subber?: Maybe<Scalars['String']>;
subitem?: Maybe<Scalars['String']>; subitem?: Maybe<Scalars['String']>;
subitem_of_x?: Maybe<Scalars['String']>; subitem_of_x?: Maybe<Scalars['String']>;
subscribers?: Maybe<Scalars['String']>; subscribers?: Maybe<Scalars['String']>;
@ -5577,10 +5677,10 @@ export type WebsiteInterface = {
textual?: Maybe<Scalars['String']>; textual?: Maybe<Scalars['String']>;
theme?: Maybe<Scalars['String']>; theme?: Maybe<Scalars['String']>;
thickness?: Maybe<Scalars['String']>; thickness?: Maybe<Scalars['String']>;
transcribers?: Maybe<Scalars['String']>; transcriber?: Maybe<Scalars['String']>;
transcript_notice?: Maybe<Scalars['String']>; transcript_notice?: Maybe<Scalars['String']>;
translation_notice?: Maybe<Scalars['String']>; translation_notice?: Maybe<Scalars['String']>;
translators?: Maybe<Scalars['String']>; translator?: Maybe<Scalars['String']>;
type?: Maybe<Scalars['String']>; type?: Maybe<Scalars['String']>;
type_information?: Maybe<Scalars['String']>; type_information?: Maybe<Scalars['String']>;
typesetters?: Maybe<Scalars['String']>; typesetters?: Maybe<Scalars['String']>;
@ -5591,6 +5691,7 @@ export type WebsiteInterface = {
video?: Maybe<Scalars['String']>; video?: Maybe<Scalars['String']>;
videos?: Maybe<Scalars['String']>; videos?: Maybe<Scalars['String']>;
view_on?: Maybe<Scalars['String']>; view_on?: Maybe<Scalars['String']>;
view_on_x?: Maybe<Scalars['String']>;
view_scans?: Maybe<Scalars['String']>; view_scans?: Maybe<Scalars['String']>;
want_it?: Maybe<Scalars['String']>; want_it?: Maybe<Scalars['String']>;
watch_content?: Maybe<Scalars['String']>; watch_content?: Maybe<Scalars['String']>;
@ -5631,21 +5732,21 @@ export type WebsiteInterfaceFiltersInput = {
archives?: InputMaybe<StringFilterInput>; archives?: InputMaybe<StringFilterInput>;
archives_description?: InputMaybe<StringFilterInput>; archives_description?: InputMaybe<StringFilterInput>;
audio?: InputMaybe<StringFilterInput>; audio?: InputMaybe<StringFilterInput>;
author?: InputMaybe<StringFilterInput>;
auto?: InputMaybe<StringFilterInput>; auto?: InputMaybe<StringFilterInput>;
available_at?: InputMaybe<StringFilterInput>; available_at?: InputMaybe<StringFilterInput>;
available_at_x?: InputMaybe<StringFilterInput>;
back_matter?: InputMaybe<StringFilterInput>; back_matter?: InputMaybe<StringFilterInput>;
binding?: InputMaybe<StringFilterInput>; binding?: InputMaybe<StringFilterInput>;
book_fold?: InputMaybe<StringFilterInput>; book_fold?: InputMaybe<StringFilterInput>;
calculated?: InputMaybe<StringFilterInput>; calculated?: InputMaybe<StringFilterInput>;
category?: InputMaybe<StringFilterInput>; category?: InputMaybe<StringFilterInput>;
change_language?: InputMaybe<StringFilterInput>;
channel?: InputMaybe<StringFilterInput>; channel?: InputMaybe<StringFilterInput>;
chronicles?: InputMaybe<StringFilterInput>; chronicles?: InputMaybe<StringFilterInput>;
chronicles_description?: InputMaybe<StringFilterInput>; chronicles_description?: InputMaybe<StringFilterInput>;
chronicles_short_description?: InputMaybe<StringFilterInput>; chronicles_short_description?: InputMaybe<StringFilterInput>;
chronology?: InputMaybe<StringFilterInput>; chronology?: InputMaybe<StringFilterInput>;
cleaners?: InputMaybe<StringFilterInput>; cleaners?: InputMaybe<StringFilterInput>;
combine_related_contents?: InputMaybe<StringFilterInput>;
contact_us?: InputMaybe<StringFilterInput>; contact_us?: InputMaybe<StringFilterInput>;
content?: InputMaybe<StringFilterInput>; content?: InputMaybe<StringFilterInput>;
content_is_not_available?: InputMaybe<StringFilterInput>; content_is_not_available?: InputMaybe<StringFilterInput>;
@ -5663,11 +5764,11 @@ export type WebsiteInterfaceFiltersInput = {
definition_x?: InputMaybe<StringFilterInput>; definition_x?: InputMaybe<StringFilterInput>;
description?: InputMaybe<StringFilterInput>; description?: InputMaybe<StringFilterInput>;
details?: InputMaybe<StringFilterInput>; details?: InputMaybe<StringFilterInput>;
display_all_items?: InputMaybe<StringFilterInput>;
done?: InputMaybe<StringFilterInput>; done?: InputMaybe<StringFilterInput>;
double_page_view?: InputMaybe<StringFilterInput>; double_page_view?: InputMaybe<StringFilterInput>;
download_scans?: InputMaybe<StringFilterInput>; download_archive?: InputMaybe<StringFilterInput>;
draft?: InputMaybe<StringFilterInput>; draft?: InputMaybe<StringFilterInput>;
dubber?: InputMaybe<StringFilterInput>;
email?: InputMaybe<StringFilterInput>; email?: InputMaybe<StringFilterInput>;
email_gdpr_notice?: InputMaybe<StringFilterInput>; email_gdpr_notice?: InputMaybe<StringFilterInput>;
empty_folder_message?: InputMaybe<StringFilterInput>; empty_folder_message?: InputMaybe<StringFilterInput>;
@ -5735,7 +5836,7 @@ export type WebsiteInterfaceFiltersInput = {
price?: InputMaybe<StringFilterInput>; price?: InputMaybe<StringFilterInput>;
primary_language?: InputMaybe<StringFilterInput>; primary_language?: InputMaybe<StringFilterInput>;
pronouns?: InputMaybe<StringFilterInput>; pronouns?: InputMaybe<StringFilterInput>;
proofreaders?: InputMaybe<StringFilterInput>; proofreader?: InputMaybe<StringFilterInput>;
quality?: InputMaybe<StringFilterInput>; quality?: InputMaybe<StringFilterInput>;
read_content?: InputMaybe<StringFilterInput>; read_content?: InputMaybe<StringFilterInput>;
reading_layout?: InputMaybe<StringFilterInput>; reading_layout?: InputMaybe<StringFilterInput>;
@ -5754,9 +5855,7 @@ export type WebsiteInterfaceFiltersInput = {
scanners?: InputMaybe<StringFilterInput>; scanners?: InputMaybe<StringFilterInput>;
search?: InputMaybe<StringFilterInput>; search?: InputMaybe<StringFilterInput>;
search_placeholder?: InputMaybe<StringFilterInput>; search_placeholder?: InputMaybe<StringFilterInput>;
search_title?: InputMaybe<StringFilterInput>;
secondary_language?: InputMaybe<StringFilterInput>; secondary_language?: InputMaybe<StringFilterInput>;
select_language?: InputMaybe<StringFilterInput>;
select_option_sidebar?: InputMaybe<StringFilterInput>; select_option_sidebar?: InputMaybe<StringFilterInput>;
send?: InputMaybe<StringFilterInput>; send?: InputMaybe<StringFilterInput>;
settings?: InputMaybe<StringFilterInput>; settings?: InputMaybe<StringFilterInput>;
@ -5779,6 +5878,7 @@ export type WebsiteInterfaceFiltersInput = {
status_incomplete?: InputMaybe<StringFilterInput>; status_incomplete?: InputMaybe<StringFilterInput>;
status_review?: InputMaybe<StringFilterInput>; status_review?: InputMaybe<StringFilterInput>;
story_x?: InputMaybe<StringFilterInput>; story_x?: InputMaybe<StringFilterInput>;
subber?: InputMaybe<StringFilterInput>;
subitem?: InputMaybe<StringFilterInput>; subitem?: InputMaybe<StringFilterInput>;
subitem_of_x?: InputMaybe<StringFilterInput>; subitem_of_x?: InputMaybe<StringFilterInput>;
subscribers?: InputMaybe<StringFilterInput>; subscribers?: InputMaybe<StringFilterInput>;
@ -5790,10 +5890,10 @@ export type WebsiteInterfaceFiltersInput = {
textual?: InputMaybe<StringFilterInput>; textual?: InputMaybe<StringFilterInput>;
theme?: InputMaybe<StringFilterInput>; theme?: InputMaybe<StringFilterInput>;
thickness?: InputMaybe<StringFilterInput>; thickness?: InputMaybe<StringFilterInput>;
transcribers?: InputMaybe<StringFilterInput>; transcriber?: InputMaybe<StringFilterInput>;
transcript_notice?: InputMaybe<StringFilterInput>; transcript_notice?: InputMaybe<StringFilterInput>;
translation_notice?: InputMaybe<StringFilterInput>; translation_notice?: InputMaybe<StringFilterInput>;
translators?: InputMaybe<StringFilterInput>; translator?: InputMaybe<StringFilterInput>;
type?: InputMaybe<StringFilterInput>; type?: InputMaybe<StringFilterInput>;
type_information?: InputMaybe<StringFilterInput>; type_information?: InputMaybe<StringFilterInput>;
typesetters?: InputMaybe<StringFilterInput>; typesetters?: InputMaybe<StringFilterInput>;
@ -5804,6 +5904,7 @@ export type WebsiteInterfaceFiltersInput = {
video?: InputMaybe<StringFilterInput>; video?: InputMaybe<StringFilterInput>;
videos?: InputMaybe<StringFilterInput>; videos?: InputMaybe<StringFilterInput>;
view_on?: InputMaybe<StringFilterInput>; view_on?: InputMaybe<StringFilterInput>;
view_on_x?: InputMaybe<StringFilterInput>;
view_scans?: InputMaybe<StringFilterInput>; view_scans?: InputMaybe<StringFilterInput>;
want_it?: InputMaybe<StringFilterInput>; want_it?: InputMaybe<StringFilterInput>;
watch_content?: InputMaybe<StringFilterInput>; watch_content?: InputMaybe<StringFilterInput>;
@ -5826,21 +5927,21 @@ export type WebsiteInterfaceInput = {
archives?: InputMaybe<Scalars['String']>; archives?: InputMaybe<Scalars['String']>;
archives_description?: InputMaybe<Scalars['String']>; archives_description?: InputMaybe<Scalars['String']>;
audio?: InputMaybe<Scalars['String']>; audio?: InputMaybe<Scalars['String']>;
author?: InputMaybe<Scalars['String']>;
auto?: InputMaybe<Scalars['String']>; auto?: InputMaybe<Scalars['String']>;
available_at?: InputMaybe<Scalars['String']>; available_at?: InputMaybe<Scalars['String']>;
available_at_x?: InputMaybe<Scalars['String']>;
back_matter?: InputMaybe<Scalars['String']>; back_matter?: InputMaybe<Scalars['String']>;
binding?: InputMaybe<Scalars['String']>; binding?: InputMaybe<Scalars['String']>;
book_fold?: InputMaybe<Scalars['String']>; book_fold?: InputMaybe<Scalars['String']>;
calculated?: InputMaybe<Scalars['String']>; calculated?: InputMaybe<Scalars['String']>;
category?: InputMaybe<Scalars['String']>; category?: InputMaybe<Scalars['String']>;
change_language?: InputMaybe<Scalars['String']>;
channel?: InputMaybe<Scalars['String']>; channel?: InputMaybe<Scalars['String']>;
chronicles?: InputMaybe<Scalars['String']>; chronicles?: InputMaybe<Scalars['String']>;
chronicles_description?: InputMaybe<Scalars['String']>; chronicles_description?: InputMaybe<Scalars['String']>;
chronicles_short_description?: InputMaybe<Scalars['String']>; chronicles_short_description?: InputMaybe<Scalars['String']>;
chronology?: InputMaybe<Scalars['String']>; chronology?: InputMaybe<Scalars['String']>;
cleaners?: InputMaybe<Scalars['String']>; cleaners?: InputMaybe<Scalars['String']>;
combine_related_contents?: InputMaybe<Scalars['String']>;
contact_us?: InputMaybe<Scalars['String']>; contact_us?: InputMaybe<Scalars['String']>;
content?: InputMaybe<Scalars['String']>; content?: InputMaybe<Scalars['String']>;
content_is_not_available?: InputMaybe<Scalars['String']>; content_is_not_available?: InputMaybe<Scalars['String']>;
@ -5857,11 +5958,11 @@ export type WebsiteInterfaceInput = {
definition_x?: InputMaybe<Scalars['String']>; definition_x?: InputMaybe<Scalars['String']>;
description?: InputMaybe<Scalars['String']>; description?: InputMaybe<Scalars['String']>;
details?: InputMaybe<Scalars['String']>; details?: InputMaybe<Scalars['String']>;
display_all_items?: InputMaybe<Scalars['String']>;
done?: InputMaybe<Scalars['String']>; done?: InputMaybe<Scalars['String']>;
double_page_view?: InputMaybe<Scalars['String']>; double_page_view?: InputMaybe<Scalars['String']>;
download_scans?: InputMaybe<Scalars['String']>; download_archive?: InputMaybe<Scalars['String']>;
draft?: InputMaybe<Scalars['String']>; draft?: InputMaybe<Scalars['String']>;
dubber?: InputMaybe<Scalars['String']>;
email?: InputMaybe<Scalars['String']>; email?: InputMaybe<Scalars['String']>;
email_gdpr_notice?: InputMaybe<Scalars['String']>; email_gdpr_notice?: InputMaybe<Scalars['String']>;
empty_folder_message?: InputMaybe<Scalars['String']>; empty_folder_message?: InputMaybe<Scalars['String']>;
@ -5926,7 +6027,7 @@ export type WebsiteInterfaceInput = {
price?: InputMaybe<Scalars['String']>; price?: InputMaybe<Scalars['String']>;
primary_language?: InputMaybe<Scalars['String']>; primary_language?: InputMaybe<Scalars['String']>;
pronouns?: InputMaybe<Scalars['String']>; pronouns?: InputMaybe<Scalars['String']>;
proofreaders?: InputMaybe<Scalars['String']>; proofreader?: InputMaybe<Scalars['String']>;
quality?: InputMaybe<Scalars['String']>; quality?: InputMaybe<Scalars['String']>;
read_content?: InputMaybe<Scalars['String']>; read_content?: InputMaybe<Scalars['String']>;
reading_layout?: InputMaybe<Scalars['String']>; reading_layout?: InputMaybe<Scalars['String']>;
@ -5945,9 +6046,7 @@ export type WebsiteInterfaceInput = {
scanners?: InputMaybe<Scalars['String']>; scanners?: InputMaybe<Scalars['String']>;
search?: InputMaybe<Scalars['String']>; search?: InputMaybe<Scalars['String']>;
search_placeholder?: InputMaybe<Scalars['String']>; search_placeholder?: InputMaybe<Scalars['String']>;
search_title?: InputMaybe<Scalars['String']>;
secondary_language?: InputMaybe<Scalars['String']>; secondary_language?: InputMaybe<Scalars['String']>;
select_language?: InputMaybe<Scalars['String']>;
select_option_sidebar?: InputMaybe<Scalars['String']>; select_option_sidebar?: InputMaybe<Scalars['String']>;
send?: InputMaybe<Scalars['String']>; send?: InputMaybe<Scalars['String']>;
settings?: InputMaybe<Scalars['String']>; settings?: InputMaybe<Scalars['String']>;
@ -5970,6 +6069,7 @@ export type WebsiteInterfaceInput = {
status_incomplete?: InputMaybe<Scalars['String']>; status_incomplete?: InputMaybe<Scalars['String']>;
status_review?: InputMaybe<Scalars['String']>; status_review?: InputMaybe<Scalars['String']>;
story_x?: InputMaybe<Scalars['String']>; story_x?: InputMaybe<Scalars['String']>;
subber?: InputMaybe<Scalars['String']>;
subitem?: InputMaybe<Scalars['String']>; subitem?: InputMaybe<Scalars['String']>;
subitem_of_x?: InputMaybe<Scalars['String']>; subitem_of_x?: InputMaybe<Scalars['String']>;
subscribers?: InputMaybe<Scalars['String']>; subscribers?: InputMaybe<Scalars['String']>;
@ -5981,10 +6081,10 @@ export type WebsiteInterfaceInput = {
textual?: InputMaybe<Scalars['String']>; textual?: InputMaybe<Scalars['String']>;
theme?: InputMaybe<Scalars['String']>; theme?: InputMaybe<Scalars['String']>;
thickness?: InputMaybe<Scalars['String']>; thickness?: InputMaybe<Scalars['String']>;
transcribers?: InputMaybe<Scalars['String']>; transcriber?: InputMaybe<Scalars['String']>;
transcript_notice?: InputMaybe<Scalars['String']>; transcript_notice?: InputMaybe<Scalars['String']>;
translation_notice?: InputMaybe<Scalars['String']>; translation_notice?: InputMaybe<Scalars['String']>;
translators?: InputMaybe<Scalars['String']>; translator?: InputMaybe<Scalars['String']>;
type?: InputMaybe<Scalars['String']>; type?: InputMaybe<Scalars['String']>;
type_information?: InputMaybe<Scalars['String']>; type_information?: InputMaybe<Scalars['String']>;
typesetters?: InputMaybe<Scalars['String']>; typesetters?: InputMaybe<Scalars['String']>;
@ -5994,6 +6094,7 @@ export type WebsiteInterfaceInput = {
video?: InputMaybe<Scalars['String']>; video?: InputMaybe<Scalars['String']>;
videos?: InputMaybe<Scalars['String']>; videos?: InputMaybe<Scalars['String']>;
view_on?: InputMaybe<Scalars['String']>; view_on?: InputMaybe<Scalars['String']>;
view_on_x?: InputMaybe<Scalars['String']>;
view_scans?: InputMaybe<Scalars['String']>; view_scans?: InputMaybe<Scalars['String']>;
want_it?: InputMaybe<Scalars['String']>; want_it?: InputMaybe<Scalars['String']>;
watch_content?: InputMaybe<Scalars['String']>; watch_content?: InputMaybe<Scalars['String']>;
@ -6157,53 +6258,53 @@ export type WikiPagesTagRelationResponseCollection = {
data: Array<WikiPagesTagEntity>; data: Array<WikiPagesTagEntity>;
}; };
export type ContentAttributesFragment = { __typename?: 'Content', slug: string, updatedAt?: any | null, translations?: Array<{ __typename?: 'ComponentTranslationsTitle', pre_title?: string | null, title: string, subtitle?: string | null, description?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null, text_set?: { __typename?: 'ComponentSetsTextSet', text?: string | null } | null } | null> | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', id?: string | null, attributes?: { __typename?: 'Category', name: string, short: string } | null }> } | null, type?: { __typename?: 'ContentTypeEntityResponse', data?: { __typename?: 'ContentTypeEntity', attributes?: { __typename?: 'ContentType', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null }; export type ContentAttributesFragment = { __typename?: 'Content', slug: string, updatedAt?: any | null, translations?: Array<{ __typename?: 'ComponentTranslationsTitle', pre_title?: string | null, title: string, subtitle?: string | null, description?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null, text_set?: { __typename?: 'ComponentSetsTextSet', text?: string | null } | null } | null> | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', attributes?: { __typename?: 'Category', slug: string } | null }> } | null, type?: { __typename?: 'ContentTypeEntityResponse', data?: { __typename?: 'ContentTypeEntity', attributes?: { __typename?: 'ContentType', slug: string } | null } | null } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null };
export type LibraryItemAttributesFragment = { __typename?: 'LibraryItem', title: string, subtitle?: string | null, slug: string, root_item: boolean, primary: boolean, descriptions?: Array<{ __typename?: 'ComponentTranslationsLibraryItems', description: string, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, release_date?: { __typename?: 'ComponentBasicsDatepicker', year?: number | null, month?: number | null, day?: number | null } | null, price?: { __typename?: 'ComponentBasicsPrice', amount?: number | null, currency?: { __typename?: 'CurrencyEntityResponse', data?: { __typename?: 'CurrencyEntity', attributes?: { __typename?: 'Currency', symbol: string, code: string, rate_to_usd: number } | null } | null } | null } | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', id?: string | null, attributes?: { __typename?: 'Category', name: string, short: string } | null }> } | null, metadata?: Array<{ __typename: 'ComponentMetadataAudio', subtype?: { __typename?: 'AudioSubtypeEntityResponse', data?: { __typename?: 'AudioSubtypeEntity', attributes?: { __typename?: 'AudioSubtype', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null } | { __typename: 'ComponentMetadataBooks', subtype?: { __typename?: 'TextualSubtypeEntityResponse', data?: { __typename?: 'TextualSubtypeEntity', attributes?: { __typename?: 'TextualSubtype', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null } | { __typename: 'ComponentMetadataGame', platforms?: { __typename?: 'GamePlatformRelationResponseCollection', data: Array<{ __typename?: 'GamePlatformEntity', id?: string | null, attributes?: { __typename?: 'GamePlatform', short: string } | null }> } | null } | { __typename: 'ComponentMetadataGroup', subtype?: { __typename?: 'GroupSubtypeEntityResponse', data?: { __typename?: 'GroupSubtypeEntity', attributes?: { __typename?: 'GroupSubtype', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null, subitems_type?: { __typename?: 'MetadataTypeEntityResponse', data?: { __typename?: 'MetadataTypeEntity', attributes?: { __typename?: 'MetadataType', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null } | { __typename: 'ComponentMetadataOther' } | { __typename: 'ComponentMetadataVideo', subtype?: { __typename?: 'VideoSubtypeEntityResponse', data?: { __typename?: 'VideoSubtypeEntity', attributes?: { __typename?: 'VideoSubtype', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null } | { __typename: 'Error' } | null> | null }; export type LibraryItemAttributesFragment = { __typename?: 'LibraryItem', title: string, subtitle?: string | null, slug: string, root_item: boolean, primary: boolean, descriptions?: Array<{ __typename?: 'ComponentTranslationsLibraryItems', description: string, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, release_date?: { __typename?: 'ComponentBasicsDatepicker', year?: number | null, month?: number | null, day?: number | null } | null, price?: { __typename?: 'ComponentBasicsPrice', amount?: number | null, currency?: { __typename?: 'CurrencyEntityResponse', data?: { __typename?: 'CurrencyEntity', attributes?: { __typename?: 'Currency', symbol: string, code: string, rate_to_usd: number } | null } | null } | null } | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', attributes?: { __typename?: 'Category', slug: string } | null }> } | null, metadata?: Array<{ __typename: 'ComponentMetadataAudio', subtype?: { __typename?: 'AudioSubtypeEntityResponse', data?: { __typename?: 'AudioSubtypeEntity', attributes?: { __typename?: 'AudioSubtype', slug: string } | null } | null } | null } | { __typename: 'ComponentMetadataBooks', subtype?: { __typename?: 'TextualSubtypeEntityResponse', data?: { __typename?: 'TextualSubtypeEntity', attributes?: { __typename?: 'TextualSubtype', slug: string } | null } | null } | null } | { __typename: 'ComponentMetadataGame', platform?: { __typename?: 'GamePlatformEntityResponse', data?: { __typename?: 'GamePlatformEntity', attributes?: { __typename?: 'GamePlatform', slug: string } | null } | null } | null } | { __typename: 'ComponentMetadataGroup', subtype?: { __typename?: 'GroupSubtypeEntityResponse', data?: { __typename?: 'GroupSubtypeEntity', attributes?: { __typename?: 'GroupSubtype', slug: string } | null } | null } | null, subitems_type?: { __typename?: 'MetadataTypeEntityResponse', data?: { __typename?: 'MetadataTypeEntity', attributes?: { __typename?: 'MetadataType', slug: string } | null } | null } | null } | { __typename: 'ComponentMetadataOther' } | { __typename: 'ComponentMetadataVideo', subtype?: { __typename?: 'VideoSubtypeEntityResponse', data?: { __typename?: 'VideoSubtypeEntity', attributes?: { __typename?: 'VideoSubtype', slug: string } | null } | null } | null } | { __typename: 'Error' } | null> | null };
export type PostAttributesFragment = { __typename?: 'Post', slug: string, hidden: boolean, date: { __typename?: 'ComponentBasicsDatepicker', year?: number | null, month?: number | null, day?: number | null }, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', id?: string | null, attributes?: { __typename?: 'Category', short: string } | null }> } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, translations?: Array<{ __typename?: 'ComponentTranslationsPosts', title: string, excerpt?: string | null, body?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null } | null> | null }; export type PostAttributesFragment = { __typename?: 'Post', slug: string, hidden: boolean, date: { __typename?: 'ComponentBasicsDatepicker', year?: number | null, month?: number | null, day?: number | null }, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', attributes?: { __typename?: 'Category', slug: string } | null }> } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, translations?: Array<{ __typename?: 'ComponentTranslationsPosts', title: string, excerpt?: string | null, body?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null } | null> | null };
export type VideoAttributesFragment = { __typename?: 'Video', uid: string, title: string, description: string, views: number, gone: boolean, duration: number, published_date: { __typename?: 'ComponentBasicsDatepicker', year?: number | null, month?: number | null, day?: number | null }, channel?: { __typename?: 'VideoChannelEntityResponse', data?: { __typename?: 'VideoChannelEntity', attributes?: { __typename?: 'VideoChannel', title: string, uid: string } | null } | null } | null }; export type VideoAttributesFragment = { __typename?: 'Video', uid: string, title: string, description: string, views: number, gone: boolean, duration: number, published_date: { __typename?: 'ComponentBasicsDatepicker', year?: number | null, month?: number | null, day?: number | null }, channel?: { __typename?: 'VideoChannelEntityResponse', data?: { __typename?: 'VideoChannelEntity', attributes?: { __typename?: 'VideoChannel', title: string, uid: string } | null } | null } | null };
export type WeaponAttributesFragment = { __typename?: 'WeaponStory', slug: string, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, type?: { __typename?: 'WeaponStoryTypeEntityResponse', data?: { __typename?: 'WeaponStoryTypeEntity', id?: string | null, attributes?: { __typename?: 'WeaponStoryType', slug: string, translations?: Array<{ __typename?: 'ComponentTranslationsWeaponStoryType', name?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null } | null } | null, name?: Array<{ __typename?: 'ComponentTranslationsWeaponStory', id: string, name?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null, stories?: Array<{ __typename?: 'ComponentCollectionsComponentWeaponStory', id: string, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', id?: string | null, attributes?: { __typename?: 'Category', short: string } | null }> } | null, translations?: Array<{ __typename?: 'ComponentTranslationsWeaponStoryStory', description?: string | null, level_1?: string | null, level_2?: string | null, level_3?: string | null, level_4?: string | null, status: Enum_Componenttranslationsweaponstorystory_Status, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null> | null }; export type WeaponAttributesFragment = { __typename?: 'WeaponStory', slug: string, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, type?: { __typename?: 'WeaponStoryTypeEntityResponse', data?: { __typename?: 'WeaponStoryTypeEntity', attributes?: { __typename?: 'WeaponStoryType', slug: string } | null } | null } | null, name?: Array<{ __typename?: 'ComponentTranslationsWeaponStory', id: string, name?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null, stories?: Array<{ __typename?: 'ComponentCollectionsComponentWeaponStory', id: string, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', attributes?: { __typename?: 'Category', slug: string } | null }> } | null, translations?: Array<{ __typename?: 'ComponentTranslationsWeaponStoryStory', description?: string | null, level_1?: string | null, level_2?: string | null, level_3?: string | null, level_4?: string | null, status: Enum_Componenttranslationsweaponstorystory_Status, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null> | null };
export type WikiPageAttributesFragment = { __typename?: 'WikiPage', slug: string, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', id?: string | null, attributes?: { __typename?: 'Category', name: string, short: string } | null }> } | null, definitions?: Array<{ __typename?: 'ComponentWikiSpecializationGlossaryItem', translations?: Array<{ __typename?: 'ComponentTranslationsGlossaryDefinition', definition?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null> | null, tags?: { __typename?: 'WikiPagesTagRelationResponseCollection', data: Array<{ __typename?: 'WikiPagesTagEntity', id?: string | null, attributes?: { __typename?: 'WikiPagesTag', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null }> } | null, translations?: Array<{ __typename?: 'ComponentTranslationsWiki', title: string, summary?: string | null, aliases?: Array<{ __typename?: 'ComponentCollectionsComponentAliases', alias: string } | null> | null, body?: { __typename?: 'ComponentCollectionsComponentBody', body: string } | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null }; export type WikiPageAttributesFragment = { __typename?: 'WikiPage', slug: string, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', attributes?: { __typename?: 'Category', slug: string } | null }> } | null, definitions?: Array<{ __typename?: 'ComponentWikiSpecializationGlossaryItem', translations?: Array<{ __typename?: 'ComponentTranslationsGlossaryDefinition', definition?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null> | null, tags?: { __typename?: 'WikiPagesTagRelationResponseCollection', data: Array<{ __typename?: 'WikiPagesTagEntity', attributes?: { __typename?: 'WikiPagesTag', slug: string } | null }> } | null, translations?: Array<{ __typename?: 'ComponentTranslationsWiki', title: string, summary?: string | null, aliases?: Array<{ __typename?: 'ComponentCollectionsComponentAliases', alias: string } | null> | null, body?: { __typename?: 'ComponentCollectionsComponentBody', body: string } | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null };
export type GetContentQueryVariables = Exact<{ export type GetContentQueryVariables = Exact<{
id?: InputMaybe<Scalars['ID']>; id?: InputMaybe<Scalars['ID']>;
}>; }>;
export type GetContentQuery = { __typename?: 'Query', content?: { __typename?: 'ContentEntityResponse', data?: { __typename?: 'ContentEntity', id?: string | null, attributes?: { __typename?: 'Content', slug: string, updatedAt?: any | null, translations?: Array<{ __typename?: 'ComponentTranslationsTitle', pre_title?: string | null, title: string, subtitle?: string | null, description?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null, text_set?: { __typename?: 'ComponentSetsTextSet', text?: string | null } | null } | null> | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', id?: string | null, attributes?: { __typename?: 'Category', name: string, short: string } | null }> } | null, type?: { __typename?: 'ContentTypeEntityResponse', data?: { __typename?: 'ContentTypeEntity', attributes?: { __typename?: 'ContentType', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null } | null } | null } | null }; export type GetContentQuery = { __typename?: 'Query', content?: { __typename?: 'ContentEntityResponse', data?: { __typename?: 'ContentEntity', id?: string | null, attributes?: { __typename?: 'Content', slug: string, updatedAt?: any | null, translations?: Array<{ __typename?: 'ComponentTranslationsTitle', pre_title?: string | null, title: string, subtitle?: string | null, description?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null, text_set?: { __typename?: 'ComponentSetsTextSet', text?: string | null } | null } | null> | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', attributes?: { __typename?: 'Category', slug: string } | null }> } | null, type?: { __typename?: 'ContentTypeEntityResponse', data?: { __typename?: 'ContentTypeEntity', attributes?: { __typename?: 'ContentType', slug: string } | null } | null } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null } | null } | null } | null };
export type GetContentsQueryVariables = Exact<{ [key: string]: never; }>; export type GetContentsQueryVariables = Exact<{ [key: string]: never; }>;
export type GetContentsQuery = { __typename?: 'Query', contents?: { __typename?: 'ContentEntityResponseCollection', data: Array<{ __typename?: 'ContentEntity', id?: string | null, attributes?: { __typename?: 'Content', slug: string, updatedAt?: any | null, translations?: Array<{ __typename?: 'ComponentTranslationsTitle', pre_title?: string | null, title: string, subtitle?: string | null, description?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null, text_set?: { __typename?: 'ComponentSetsTextSet', text?: string | null } | null } | null> | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', id?: string | null, attributes?: { __typename?: 'Category', name: string, short: string } | null }> } | null, type?: { __typename?: 'ContentTypeEntityResponse', data?: { __typename?: 'ContentTypeEntity', attributes?: { __typename?: 'ContentType', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null } | null }> } | null }; export type GetContentsQuery = { __typename?: 'Query', contents?: { __typename?: 'ContentEntityResponseCollection', data: Array<{ __typename?: 'ContentEntity', id?: string | null, attributes?: { __typename?: 'Content', slug: string, updatedAt?: any | null, translations?: Array<{ __typename?: 'ComponentTranslationsTitle', pre_title?: string | null, title: string, subtitle?: string | null, description?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null, text_set?: { __typename?: 'ComponentSetsTextSet', text?: string | null } | null } | null> | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', attributes?: { __typename?: 'Category', slug: string } | null }> } | null, type?: { __typename?: 'ContentTypeEntityResponse', data?: { __typename?: 'ContentTypeEntity', attributes?: { __typename?: 'ContentType', slug: string } | null } | null } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null } | null }> } | null };
export type GetLibraryItemQueryVariables = Exact<{ export type GetLibraryItemQueryVariables = Exact<{
id?: InputMaybe<Scalars['ID']>; id?: InputMaybe<Scalars['ID']>;
}>; }>;
export type GetLibraryItemQuery = { __typename?: 'Query', libraryItem?: { __typename?: 'LibraryItemEntityResponse', data?: { __typename?: 'LibraryItemEntity', id?: string | null, attributes?: { __typename?: 'LibraryItem', title: string, subtitle?: string | null, slug: string, root_item: boolean, primary: boolean, descriptions?: Array<{ __typename?: 'ComponentTranslationsLibraryItems', description: string, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, release_date?: { __typename?: 'ComponentBasicsDatepicker', year?: number | null, month?: number | null, day?: number | null } | null, price?: { __typename?: 'ComponentBasicsPrice', amount?: number | null, currency?: { __typename?: 'CurrencyEntityResponse', data?: { __typename?: 'CurrencyEntity', attributes?: { __typename?: 'Currency', symbol: string, code: string, rate_to_usd: number } | null } | null } | null } | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', id?: string | null, attributes?: { __typename?: 'Category', name: string, short: string } | null }> } | null, metadata?: Array<{ __typename: 'ComponentMetadataAudio', subtype?: { __typename?: 'AudioSubtypeEntityResponse', data?: { __typename?: 'AudioSubtypeEntity', attributes?: { __typename?: 'AudioSubtype', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null } | { __typename: 'ComponentMetadataBooks', subtype?: { __typename?: 'TextualSubtypeEntityResponse', data?: { __typename?: 'TextualSubtypeEntity', attributes?: { __typename?: 'TextualSubtype', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null } | { __typename: 'ComponentMetadataGame', platforms?: { __typename?: 'GamePlatformRelationResponseCollection', data: Array<{ __typename?: 'GamePlatformEntity', id?: string | null, attributes?: { __typename?: 'GamePlatform', short: string } | null }> } | null } | { __typename: 'ComponentMetadataGroup', subtype?: { __typename?: 'GroupSubtypeEntityResponse', data?: { __typename?: 'GroupSubtypeEntity', attributes?: { __typename?: 'GroupSubtype', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null, subitems_type?: { __typename?: 'MetadataTypeEntityResponse', data?: { __typename?: 'MetadataTypeEntity', attributes?: { __typename?: 'MetadataType', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null } | { __typename: 'ComponentMetadataOther' } | { __typename: 'ComponentMetadataVideo', subtype?: { __typename?: 'VideoSubtypeEntityResponse', data?: { __typename?: 'VideoSubtypeEntity', attributes?: { __typename?: 'VideoSubtype', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null } | { __typename: 'Error' } | null> | null } | null } | null } | null }; export type GetLibraryItemQuery = { __typename?: 'Query', libraryItem?: { __typename?: 'LibraryItemEntityResponse', data?: { __typename?: 'LibraryItemEntity', id?: string | null, attributes?: { __typename?: 'LibraryItem', title: string, subtitle?: string | null, slug: string, root_item: boolean, primary: boolean, descriptions?: Array<{ __typename?: 'ComponentTranslationsLibraryItems', description: string, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, release_date?: { __typename?: 'ComponentBasicsDatepicker', year?: number | null, month?: number | null, day?: number | null } | null, price?: { __typename?: 'ComponentBasicsPrice', amount?: number | null, currency?: { __typename?: 'CurrencyEntityResponse', data?: { __typename?: 'CurrencyEntity', attributes?: { __typename?: 'Currency', symbol: string, code: string, rate_to_usd: number } | null } | null } | null } | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', attributes?: { __typename?: 'Category', slug: string } | null }> } | null, metadata?: Array<{ __typename: 'ComponentMetadataAudio', subtype?: { __typename?: 'AudioSubtypeEntityResponse', data?: { __typename?: 'AudioSubtypeEntity', attributes?: { __typename?: 'AudioSubtype', slug: string } | null } | null } | null } | { __typename: 'ComponentMetadataBooks', subtype?: { __typename?: 'TextualSubtypeEntityResponse', data?: { __typename?: 'TextualSubtypeEntity', attributes?: { __typename?: 'TextualSubtype', slug: string } | null } | null } | null } | { __typename: 'ComponentMetadataGame', platform?: { __typename?: 'GamePlatformEntityResponse', data?: { __typename?: 'GamePlatformEntity', attributes?: { __typename?: 'GamePlatform', slug: string } | null } | null } | null } | { __typename: 'ComponentMetadataGroup', subtype?: { __typename?: 'GroupSubtypeEntityResponse', data?: { __typename?: 'GroupSubtypeEntity', attributes?: { __typename?: 'GroupSubtype', slug: string } | null } | null } | null, subitems_type?: { __typename?: 'MetadataTypeEntityResponse', data?: { __typename?: 'MetadataTypeEntity', attributes?: { __typename?: 'MetadataType', slug: string } | null } | null } | null } | { __typename: 'ComponentMetadataOther' } | { __typename: 'ComponentMetadataVideo', subtype?: { __typename?: 'VideoSubtypeEntityResponse', data?: { __typename?: 'VideoSubtypeEntity', attributes?: { __typename?: 'VideoSubtype', slug: string } | null } | null } | null } | { __typename: 'Error' } | null> | null } | null } | null } | null };
export type GetLibraryItemsQueryVariables = Exact<{ [key: string]: never; }>; export type GetLibraryItemsQueryVariables = Exact<{ [key: string]: never; }>;
export type GetLibraryItemsQuery = { __typename?: 'Query', libraryItems?: { __typename?: 'LibraryItemEntityResponseCollection', data: Array<{ __typename?: 'LibraryItemEntity', id?: string | null, attributes?: { __typename?: 'LibraryItem', title: string, subtitle?: string | null, slug: string, root_item: boolean, primary: boolean, descriptions?: Array<{ __typename?: 'ComponentTranslationsLibraryItems', description: string, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, release_date?: { __typename?: 'ComponentBasicsDatepicker', year?: number | null, month?: number | null, day?: number | null } | null, price?: { __typename?: 'ComponentBasicsPrice', amount?: number | null, currency?: { __typename?: 'CurrencyEntityResponse', data?: { __typename?: 'CurrencyEntity', attributes?: { __typename?: 'Currency', symbol: string, code: string, rate_to_usd: number } | null } | null } | null } | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', id?: string | null, attributes?: { __typename?: 'Category', name: string, short: string } | null }> } | null, metadata?: Array<{ __typename: 'ComponentMetadataAudio', subtype?: { __typename?: 'AudioSubtypeEntityResponse', data?: { __typename?: 'AudioSubtypeEntity', attributes?: { __typename?: 'AudioSubtype', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null } | { __typename: 'ComponentMetadataBooks', subtype?: { __typename?: 'TextualSubtypeEntityResponse', data?: { __typename?: 'TextualSubtypeEntity', attributes?: { __typename?: 'TextualSubtype', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null } | { __typename: 'ComponentMetadataGame', platforms?: { __typename?: 'GamePlatformRelationResponseCollection', data: Array<{ __typename?: 'GamePlatformEntity', id?: string | null, attributes?: { __typename?: 'GamePlatform', short: string } | null }> } | null } | { __typename: 'ComponentMetadataGroup', subtype?: { __typename?: 'GroupSubtypeEntityResponse', data?: { __typename?: 'GroupSubtypeEntity', attributes?: { __typename?: 'GroupSubtype', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null, subitems_type?: { __typename?: 'MetadataTypeEntityResponse', data?: { __typename?: 'MetadataTypeEntity', attributes?: { __typename?: 'MetadataType', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null } | { __typename: 'ComponentMetadataOther' } | { __typename: 'ComponentMetadataVideo', subtype?: { __typename?: 'VideoSubtypeEntityResponse', data?: { __typename?: 'VideoSubtypeEntity', attributes?: { __typename?: 'VideoSubtype', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string } | null> | null } | null } | null } | null } | { __typename: 'Error' } | null> | null } | null }> } | null }; export type GetLibraryItemsQuery = { __typename?: 'Query', libraryItems?: { __typename?: 'LibraryItemEntityResponseCollection', data: Array<{ __typename?: 'LibraryItemEntity', id?: string | null, attributes?: { __typename?: 'LibraryItem', title: string, subtitle?: string | null, slug: string, root_item: boolean, primary: boolean, descriptions?: Array<{ __typename?: 'ComponentTranslationsLibraryItems', description: string, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, release_date?: { __typename?: 'ComponentBasicsDatepicker', year?: number | null, month?: number | null, day?: number | null } | null, price?: { __typename?: 'ComponentBasicsPrice', amount?: number | null, currency?: { __typename?: 'CurrencyEntityResponse', data?: { __typename?: 'CurrencyEntity', attributes?: { __typename?: 'Currency', symbol: string, code: string, rate_to_usd: number } | null } | null } | null } | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', attributes?: { __typename?: 'Category', slug: string } | null }> } | null, metadata?: Array<{ __typename: 'ComponentMetadataAudio', subtype?: { __typename?: 'AudioSubtypeEntityResponse', data?: { __typename?: 'AudioSubtypeEntity', attributes?: { __typename?: 'AudioSubtype', slug: string } | null } | null } | null } | { __typename: 'ComponentMetadataBooks', subtype?: { __typename?: 'TextualSubtypeEntityResponse', data?: { __typename?: 'TextualSubtypeEntity', attributes?: { __typename?: 'TextualSubtype', slug: string } | null } | null } | null } | { __typename: 'ComponentMetadataGame', platform?: { __typename?: 'GamePlatformEntityResponse', data?: { __typename?: 'GamePlatformEntity', attributes?: { __typename?: 'GamePlatform', slug: string } | null } | null } | null } | { __typename: 'ComponentMetadataGroup', subtype?: { __typename?: 'GroupSubtypeEntityResponse', data?: { __typename?: 'GroupSubtypeEntity', attributes?: { __typename?: 'GroupSubtype', slug: string } | null } | null } | null, subitems_type?: { __typename?: 'MetadataTypeEntityResponse', data?: { __typename?: 'MetadataTypeEntity', attributes?: { __typename?: 'MetadataType', slug: string } | null } | null } | null } | { __typename: 'ComponentMetadataOther' } | { __typename: 'ComponentMetadataVideo', subtype?: { __typename?: 'VideoSubtypeEntityResponse', data?: { __typename?: 'VideoSubtypeEntity', attributes?: { __typename?: 'VideoSubtype', slug: string } | null } | null } | null } | { __typename: 'Error' } | null> | null } | null }> } | null };
export type GetPostQueryVariables = Exact<{ export type GetPostQueryVariables = Exact<{
id?: InputMaybe<Scalars['ID']>; id?: InputMaybe<Scalars['ID']>;
}>; }>;
export type GetPostQuery = { __typename?: 'Query', post?: { __typename?: 'PostEntityResponse', data?: { __typename?: 'PostEntity', id?: string | null, attributes?: { __typename?: 'Post', slug: string, hidden: boolean, date: { __typename?: 'ComponentBasicsDatepicker', year?: number | null, month?: number | null, day?: number | null }, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', id?: string | null, attributes?: { __typename?: 'Category', short: string } | null }> } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, translations?: Array<{ __typename?: 'ComponentTranslationsPosts', title: string, excerpt?: string | null, body?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null } | null> | null } | null } | null } | null }; export type GetPostQuery = { __typename?: 'Query', post?: { __typename?: 'PostEntityResponse', data?: { __typename?: 'PostEntity', id?: string | null, attributes?: { __typename?: 'Post', slug: string, hidden: boolean, date: { __typename?: 'ComponentBasicsDatepicker', year?: number | null, month?: number | null, day?: number | null }, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', attributes?: { __typename?: 'Category', slug: string } | null }> } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, translations?: Array<{ __typename?: 'ComponentTranslationsPosts', title: string, excerpt?: string | null, body?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null } | null> | null } | null } | null } | null };
export type GetPostsQueryVariables = Exact<{ [key: string]: never; }>; export type GetPostsQueryVariables = Exact<{ [key: string]: never; }>;
export type GetPostsQuery = { __typename?: 'Query', posts?: { __typename?: 'PostEntityResponseCollection', data: Array<{ __typename?: 'PostEntity', id?: string | null, attributes?: { __typename?: 'Post', slug: string, hidden: boolean, date: { __typename?: 'ComponentBasicsDatepicker', year?: number | null, month?: number | null, day?: number | null }, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', id?: string | null, attributes?: { __typename?: 'Category', short: string } | null }> } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, translations?: Array<{ __typename?: 'ComponentTranslationsPosts', title: string, excerpt?: string | null, body?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null } | null> | null } | null }> } | null }; export type GetPostsQuery = { __typename?: 'Query', posts?: { __typename?: 'PostEntityResponseCollection', data: Array<{ __typename?: 'PostEntity', id?: string | null, attributes?: { __typename?: 'Post', slug: string, hidden: boolean, date: { __typename?: 'ComponentBasicsDatepicker', year?: number | null, month?: number | null, day?: number | null }, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', attributes?: { __typename?: 'Category', slug: string } | null }> } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, translations?: Array<{ __typename?: 'ComponentTranslationsPosts', title: string, excerpt?: string | null, body?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null } | null> | null } | null }> } | null };
export type GetVideoQueryVariables = Exact<{ export type GetVideoQueryVariables = Exact<{
id?: InputMaybe<Scalars['ID']>; id?: InputMaybe<Scalars['ID']>;
@ -6222,24 +6323,24 @@ export type GetWeaponQueryVariables = Exact<{
}>; }>;
export type GetWeaponQuery = { __typename?: 'Query', weaponStory?: { __typename?: 'WeaponStoryEntityResponse', data?: { __typename?: 'WeaponStoryEntity', id?: string | null, attributes?: { __typename?: 'WeaponStory', slug: string, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, type?: { __typename?: 'WeaponStoryTypeEntityResponse', data?: { __typename?: 'WeaponStoryTypeEntity', id?: string | null, attributes?: { __typename?: 'WeaponStoryType', slug: string, translations?: Array<{ __typename?: 'ComponentTranslationsWeaponStoryType', name?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null } | null } | null, name?: Array<{ __typename?: 'ComponentTranslationsWeaponStory', id: string, name?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null, stories?: Array<{ __typename?: 'ComponentCollectionsComponentWeaponStory', id: string, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', id?: string | null, attributes?: { __typename?: 'Category', short: string } | null }> } | null, translations?: Array<{ __typename?: 'ComponentTranslationsWeaponStoryStory', description?: string | null, level_1?: string | null, level_2?: string | null, level_3?: string | null, level_4?: string | null, status: Enum_Componenttranslationsweaponstorystory_Status, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null> | null } | null } | null } | null }; export type GetWeaponQuery = { __typename?: 'Query', weaponStory?: { __typename?: 'WeaponStoryEntityResponse', data?: { __typename?: 'WeaponStoryEntity', id?: string | null, attributes?: { __typename?: 'WeaponStory', slug: string, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, type?: { __typename?: 'WeaponStoryTypeEntityResponse', data?: { __typename?: 'WeaponStoryTypeEntity', attributes?: { __typename?: 'WeaponStoryType', slug: string } | null } | null } | null, name?: Array<{ __typename?: 'ComponentTranslationsWeaponStory', id: string, name?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null, stories?: Array<{ __typename?: 'ComponentCollectionsComponentWeaponStory', id: string, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', attributes?: { __typename?: 'Category', slug: string } | null }> } | null, translations?: Array<{ __typename?: 'ComponentTranslationsWeaponStoryStory', description?: string | null, level_1?: string | null, level_2?: string | null, level_3?: string | null, level_4?: string | null, status: Enum_Componenttranslationsweaponstorystory_Status, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null> | null } | null } | null } | null };
export type GetWeaponsQueryVariables = Exact<{ [key: string]: never; }>; export type GetWeaponsQueryVariables = Exact<{ [key: string]: never; }>;
export type GetWeaponsQuery = { __typename?: 'Query', weaponStories?: { __typename?: 'WeaponStoryEntityResponseCollection', data: Array<{ __typename?: 'WeaponStoryEntity', id?: string | null, attributes?: { __typename?: 'WeaponStory', slug: string, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, type?: { __typename?: 'WeaponStoryTypeEntityResponse', data?: { __typename?: 'WeaponStoryTypeEntity', id?: string | null, attributes?: { __typename?: 'WeaponStoryType', slug: string, translations?: Array<{ __typename?: 'ComponentTranslationsWeaponStoryType', name?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null } | null } | null, name?: Array<{ __typename?: 'ComponentTranslationsWeaponStory', id: string, name?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null, stories?: Array<{ __typename?: 'ComponentCollectionsComponentWeaponStory', id: string, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', id?: string | null, attributes?: { __typename?: 'Category', short: string } | null }> } | null, translations?: Array<{ __typename?: 'ComponentTranslationsWeaponStoryStory', description?: string | null, level_1?: string | null, level_2?: string | null, level_3?: string | null, level_4?: string | null, status: Enum_Componenttranslationsweaponstorystory_Status, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null> | null } | null }> } | null }; export type GetWeaponsQuery = { __typename?: 'Query', weaponStories?: { __typename?: 'WeaponStoryEntityResponseCollection', data: Array<{ __typename?: 'WeaponStoryEntity', id?: string | null, attributes?: { __typename?: 'WeaponStory', slug: string, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, type?: { __typename?: 'WeaponStoryTypeEntityResponse', data?: { __typename?: 'WeaponStoryTypeEntity', attributes?: { __typename?: 'WeaponStoryType', slug: string } | null } | null } | null, name?: Array<{ __typename?: 'ComponentTranslationsWeaponStory', id: string, name?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null, stories?: Array<{ __typename?: 'ComponentCollectionsComponentWeaponStory', id: string, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', attributes?: { __typename?: 'Category', slug: string } | null }> } | null, translations?: Array<{ __typename?: 'ComponentTranslationsWeaponStoryStory', description?: string | null, level_1?: string | null, level_2?: string | null, level_3?: string | null, level_4?: string | null, status: Enum_Componenttranslationsweaponstorystory_Status, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null> | null } | null }> } | null };
export type GetWikiPageQueryVariables = Exact<{ export type GetWikiPageQueryVariables = Exact<{
id?: InputMaybe<Scalars['ID']>; id?: InputMaybe<Scalars['ID']>;
}>; }>;
export type GetWikiPageQuery = { __typename?: 'Query', wikiPage?: { __typename?: 'WikiPageEntityResponse', data?: { __typename?: 'WikiPageEntity', id?: string | null, attributes?: { __typename?: 'WikiPage', slug: string, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', id?: string | null, attributes?: { __typename?: 'Category', name: string, short: string } | null }> } | null, definitions?: Array<{ __typename?: 'ComponentWikiSpecializationGlossaryItem', translations?: Array<{ __typename?: 'ComponentTranslationsGlossaryDefinition', definition?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null> | null, tags?: { __typename?: 'WikiPagesTagRelationResponseCollection', data: Array<{ __typename?: 'WikiPagesTagEntity', id?: string | null, attributes?: { __typename?: 'WikiPagesTag', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null }> } | null, translations?: Array<{ __typename?: 'ComponentTranslationsWiki', title: string, summary?: string | null, aliases?: Array<{ __typename?: 'ComponentCollectionsComponentAliases', alias: string } | null> | null, body?: { __typename?: 'ComponentCollectionsComponentBody', body: string } | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null } | null } | null }; export type GetWikiPageQuery = { __typename?: 'Query', wikiPage?: { __typename?: 'WikiPageEntityResponse', data?: { __typename?: 'WikiPageEntity', id?: string | null, attributes?: { __typename?: 'WikiPage', slug: string, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', attributes?: { __typename?: 'Category', slug: string } | null }> } | null, definitions?: Array<{ __typename?: 'ComponentWikiSpecializationGlossaryItem', translations?: Array<{ __typename?: 'ComponentTranslationsGlossaryDefinition', definition?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null> | null, tags?: { __typename?: 'WikiPagesTagRelationResponseCollection', data: Array<{ __typename?: 'WikiPagesTagEntity', attributes?: { __typename?: 'WikiPagesTag', slug: string } | null }> } | null, translations?: Array<{ __typename?: 'ComponentTranslationsWiki', title: string, summary?: string | null, aliases?: Array<{ __typename?: 'ComponentCollectionsComponentAliases', alias: string } | null> | null, body?: { __typename?: 'ComponentCollectionsComponentBody', body: string } | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null } | null } | null };
export type GetWikiPagesQueryVariables = Exact<{ [key: string]: never; }>; export type GetWikiPagesQueryVariables = Exact<{ [key: string]: never; }>;
export type GetWikiPagesQuery = { __typename?: 'Query', wikiPages?: { __typename?: 'WikiPageEntityResponseCollection', data: Array<{ __typename?: 'WikiPageEntity', id?: string | null, attributes?: { __typename?: 'WikiPage', slug: string, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', id?: string | null, attributes?: { __typename?: 'Category', name: string, short: string } | null }> } | null, definitions?: Array<{ __typename?: 'ComponentWikiSpecializationGlossaryItem', translations?: Array<{ __typename?: 'ComponentTranslationsGlossaryDefinition', definition?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null> | null, tags?: { __typename?: 'WikiPagesTagRelationResponseCollection', data: Array<{ __typename?: 'WikiPagesTagEntity', id?: string | null, attributes?: { __typename?: 'WikiPagesTag', slug: string, titles?: Array<{ __typename?: 'ComponentTranslationsSimpleTitle', title: string, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null }> } | null, translations?: Array<{ __typename?: 'ComponentTranslationsWiki', title: string, summary?: string | null, aliases?: Array<{ __typename?: 'ComponentCollectionsComponentAliases', alias: string } | null> | null, body?: { __typename?: 'ComponentCollectionsComponentBody', body: string } | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null }> } | null }; export type GetWikiPagesQuery = { __typename?: 'Query', wikiPages?: { __typename?: 'WikiPageEntityResponseCollection', data: Array<{ __typename?: 'WikiPageEntity', id?: string | null, attributes?: { __typename?: 'WikiPage', slug: string, thumbnail?: { __typename?: 'UploadFileEntityResponse', data?: { __typename?: 'UploadFileEntity', attributes?: { __typename?: 'UploadFile', name: string, alternativeText?: string | null, caption?: string | null, width?: number | null, height?: number | null, url: string } | null } | null } | null, categories?: { __typename?: 'CategoryRelationResponseCollection', data: Array<{ __typename?: 'CategoryEntity', attributes?: { __typename?: 'Category', slug: string } | null }> } | null, definitions?: Array<{ __typename?: 'ComponentWikiSpecializationGlossaryItem', translations?: Array<{ __typename?: 'ComponentTranslationsGlossaryDefinition', definition?: string | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null> | null, tags?: { __typename?: 'WikiPagesTagRelationResponseCollection', data: Array<{ __typename?: 'WikiPagesTagEntity', attributes?: { __typename?: 'WikiPagesTag', slug: string } | null }> } | null, translations?: Array<{ __typename?: 'ComponentTranslationsWiki', title: string, summary?: string | null, aliases?: Array<{ __typename?: 'ComponentCollectionsComponentAliases', alias: string } | null> | null, body?: { __typename?: 'ComponentCollectionsComponentBody', body: string } | null, language?: { __typename?: 'LanguageEntityResponse', data?: { __typename?: 'LanguageEntity', attributes?: { __typename?: 'Language', code: string } | null } | null } | null } | null> | null } | null }> } | null };
export type DatePickerFragment = { __typename?: 'ComponentBasicsDatepicker', year?: number | null, month?: number | null, day?: number | null }; export type DatePickerFragment = { __typename?: 'ComponentBasicsDatepicker', year?: number | null, month?: number | null, day?: number | null };
@ -6279,10 +6380,8 @@ export const ContentAttributesFragmentDoc = gql`
} }
categories(pagination: {limit: -1}) { categories(pagination: {limit: -1}) {
data { data {
id
attributes { attributes {
name slug
short
} }
} }
} }
@ -6290,9 +6389,6 @@ export const ContentAttributesFragmentDoc = gql`
data { data {
attributes { attributes {
slug slug
titles(filters: {language: {code: {eq: "en"}}}) {
title
}
} }
} }
} }
@ -6358,10 +6454,8 @@ export const LibraryItemAttributesFragmentDoc = gql`
} }
categories(pagination: {limit: -1}) { categories(pagination: {limit: -1}) {
data { data {
id
attributes { attributes {
name slug
short
} }
} }
} }
@ -6372,19 +6466,15 @@ export const LibraryItemAttributesFragmentDoc = gql`
data { data {
attributes { attributes {
slug slug
titles(filters: {language: {code: {eq: "en"}}}) {
title
}
} }
} }
} }
} }
... on ComponentMetadataGame { ... on ComponentMetadataGame {
platforms(pagination: {limit: -1}) { platform {
data { data {
id
attributes { attributes {
short slug
} }
} }
} }
@ -6394,9 +6484,6 @@ export const LibraryItemAttributesFragmentDoc = gql`
data { data {
attributes { attributes {
slug slug
titles(filters: {language: {code: {eq: "en"}}}) {
title
}
} }
} }
} }
@ -6406,9 +6493,6 @@ export const LibraryItemAttributesFragmentDoc = gql`
data { data {
attributes { attributes {
slug slug
titles(filters: {language: {code: {eq: "en"}}}) {
title
}
} }
} }
} }
@ -6418,9 +6502,6 @@ export const LibraryItemAttributesFragmentDoc = gql`
data { data {
attributes { attributes {
slug slug
titles(filters: {language: {code: {eq: "en"}}}) {
title
}
} }
} }
} }
@ -6428,9 +6509,6 @@ export const LibraryItemAttributesFragmentDoc = gql`
data { data {
attributes { attributes {
slug slug
titles(filters: {language: {code: {eq: "en"}}}) {
title
}
} }
} }
} }
@ -6449,9 +6527,8 @@ export const PostAttributesFragmentDoc = gql`
} }
categories(pagination: {limit: -1}) { categories(pagination: {limit: -1}) {
data { data {
id
attributes { attributes {
short slug
} }
} }
} }
@ -6518,19 +6595,8 @@ export const WeaponAttributesFragmentDoc = gql`
} }
type { type {
data { data {
id
attributes { attributes {
slug slug
translations(filters: {language: {code: {eq: "en"}}}) {
name
language {
data {
attributes {
code
}
}
}
}
} }
} }
} }
@ -6550,9 +6616,8 @@ export const WeaponAttributesFragmentDoc = gql`
id id
categories(pagination: {limit: -1}) { categories(pagination: {limit: -1}) {
data { data {
id
attributes { attributes {
short slug
} }
} }
} }
@ -6586,10 +6651,8 @@ export const WikiPageAttributesFragmentDoc = gql`
} }
categories(pagination: {limit: -1}) { categories(pagination: {limit: -1}) {
data { data {
id
attributes { attributes {
name slug
short
} }
} }
} }
@ -6607,19 +6670,8 @@ export const WikiPageAttributesFragmentDoc = gql`
} }
tags(pagination: {limit: -1}) { tags(pagination: {limit: -1}) {
data { data {
id
attributes { attributes {
slug slug
titles(filters: {language: {code: {eq: "en"}}}) {
language {
data {
attributes {
code
}
}
}
title
}
} }
} }
} }

View File

@ -1,19 +1,7 @@
import { convert } from "html-to-text"; import { convert } from "html-to-text";
import { marked } from "marked"; import { marked } from "marked";
import { isDefinedAndNotEmpty } from "./asserts";
import DOMPurify from "isomorphic-dompurify"; import DOMPurify from "isomorphic-dompurify";
export const prettySlug = (slug?: string, parentSlug?: string): string => {
let newSlug = slug;
if (newSlug) {
if (isDefinedAndNotEmpty(parentSlug) && newSlug.startsWith(parentSlug))
newSlug = newSlug.substring(parentSlug.length + 1);
newSlug = newSlug.replaceAll("-", " ");
return capitalizeString(newSlug);
}
return "";
};
export const prettyInlineTitle = ( export const prettyInlineTitle = (
pretitle: string | null | undefined, pretitle: string | null | undefined,
title: string | null | undefined, title: string | null | undefined,
@ -26,202 +14,6 @@ export const prettyInlineTitle = (
return result; return result;
}; };
export const prettyItemSubType = (
metadata:
| {
__typename: "ComponentMetadataAudio";
subtype?: {
data?: {
attributes?: {
slug: string;
titles?:
| ({
title: string;
} | null)[]
| null;
} | null;
} | null;
} | null;
}
| {
__typename: "ComponentMetadataBooks";
subtype?: {
data?: {
attributes?: {
slug: string;
titles?:
| ({
title: string;
} | null)[]
| null;
} | null;
} | null;
} | null;
}
| {
__typename: "ComponentMetadataGame";
platforms?: {
data: {
id?: string | null;
attributes?: {
short: string;
} | null;
}[];
} | null;
}
| {
__typename: "ComponentMetadataGroup";
subtype?: {
data?: {
attributes?: {
slug: string;
titles?:
| ({
title: string;
} | null)[]
| null;
} | null;
} | null;
} | null;
subitems_type?: {
data?: {
attributes?: {
slug: string;
titles?:
| ({
title: string;
} | null)[]
| null;
} | null;
} | null;
} | null;
}
| {
__typename: "ComponentMetadataVideo";
subtype?: {
data?: {
attributes?: {
slug: string;
titles?:
| ({
title: string;
} | null)[]
| null;
} | null;
} | null;
} | null;
}
| { __typename: "ComponentMetadataOther" }
| { __typename: "Error" }
| null
): string => {
if (metadata) {
switch (metadata.__typename) {
case "ComponentMetadataAudio":
case "ComponentMetadataBooks":
case "ComponentMetadataVideo":
return metadata.subtype?.data?.attributes?.titles &&
metadata.subtype.data.attributes.titles.length > 0 &&
metadata.subtype.data.attributes.titles[0]
? metadata.subtype.data.attributes.titles[0].title
: prettySlug(metadata.subtype?.data?.attributes?.slug);
case "ComponentMetadataGame":
return metadata.platforms?.data &&
metadata.platforms.data.length > 0 &&
metadata.platforms.data[0]?.attributes
? metadata.platforms.data[0].attributes.short
: "";
case "ComponentMetadataGroup": {
const firstPart =
metadata.subtype?.data?.attributes?.titles &&
metadata.subtype.data.attributes.titles.length > 0 &&
metadata.subtype.data.attributes.titles[0]
? metadata.subtype.data.attributes.titles[0].title
: prettySlug(metadata.subtype?.data?.attributes?.slug);
const secondPart =
metadata.subitems_type?.data?.attributes?.titles &&
metadata.subitems_type.data.attributes.titles.length > 0 &&
metadata.subitems_type.data.attributes.titles[0]
? metadata.subitems_type.data.attributes.titles[0].title
: prettySlug(metadata.subitems_type?.data?.attributes?.slug);
return `${secondPart} ${firstPart}`;
}
default:
return "";
}
}
return "";
};
/* eslint-enable id-denylist */
export const prettyShortenNumber = (number: number): string => {
if (number > 1_000_000) {
return `${(number / 1_000_000).toLocaleString(undefined, {
maximumSignificantDigits: 3,
})}M`;
} else if (number > 1_000) {
return `${(number / 1_000).toLocaleString(undefined, {
maximumSignificantDigits: 2,
})}K`;
}
return number.toLocaleString();
};
export const prettyDuration = (seconds: number): string => {
let hours = 0;
let minutes = 0;
let remainingSeconds = seconds;
while (remainingSeconds > 60) {
minutes++;
remainingSeconds -= 60;
}
while (minutes > 60) {
hours++;
minutes -= 60;
}
let result = "";
if (hours) result += `${hours.toString().padStart(2, "0")}:`;
result += `${minutes.toString().padStart(2, "0")}:`;
result += remainingSeconds.toString().padStart(2, "0");
return result;
};
export const prettyURL = (url: string): string => {
const domain = new URL(url);
return domain.hostname.replace("www.", "");
};
const capitalizeString = (string: string): string => {
const capitalizeWord = (word: string): string => word.charAt(0).toUpperCase() + word.substring(1);
let words = string.split(" ");
words = words.map((word) => capitalizeWord(word));
return words.join(" ");
};
export const slugify = (string: string | undefined): string => {
if (!string) {
return "";
}
return string
.replace(/[ÀÁÂÃÄÅàáâãäåæÆ]/gu, "a")
.replace(/[çÇ]/gu, "c")
.replace(/[ðÐ]/gu, "d")
.replace(/[ÈÉÊËéèêë]/gu, "e")
.replace(/[ÏïÎîÍíÌì]/gu, "i")
.replace(/[Ññ]/gu, "n")
.replace(/[øØœŒÕõÔôÓóÒò]/gu, "o")
.replace(/[ÜüÛûÚúÙù]/gu, "u")
.replace(/[ŸÿÝý]/gu, "y")
.toLowerCase()
.replace(/[^a-z0-9- ]/gu, "")
.trim()
.replace(/ /gu, "-");
};
export const sJoin = (...args: (string | null | undefined)[]): string => args.join("");
export const prettyMarkdown = (markdown: string): string => { export const prettyMarkdown = (markdown: string): string => {
const block = (text: string) => `${text}\n\n`; const block = (text: string) => `${text}\n\n`;
const escapeBlock = (text: string) => `${escape(text)}\n\n`; const escapeBlock = (text: string) => `${escape(text)}\n\n`;

View File

@ -1,24 +0,0 @@
import { PricePickerFragment } from "core/graphql/generated";
export const convertPrice = (
pricePicker: PricePickerFragment,
targetCurrency: NonNullable<NonNullable<PricePickerFragment["currency"]>["data"]>
): number => {
if (pricePicker.amount && pricePicker.currency?.data?.attributes && targetCurrency.attributes)
return (
(pricePicker.amount * pricePicker.currency.data.attributes.rate_to_usd) /
targetCurrency.attributes.rate_to_usd
);
return 0;
};
export const convertMmToInch = (mm: number | null | undefined): string =>
mm ? (mm * 0.03937008).toPrecision(3) : "";
export const randomInt = (min: number, max: number): number =>
Math.floor(Math.random() * (max - min)) + min;
export const isInteger = (value: string): boolean => /^[+-]?[0-9]+$/u.test(value);
export const clamp = (value: number, min: number, max: number): number =>
Math.min(Math.max(value, min), max);

View File

@ -76,9 +76,9 @@ const transformLibraryItem: TransformFunction<MeiliIndices.LIBRARY_ITEM> = (data
attributes.price?.currency?.data?.attributes && isDefined(attributes.price.amount) attributes.price?.currency?.data?.attributes && isDefined(attributes.price.amount)
? attributes.price.amount * attributes.price.currency.data.attributes.rate_to_usd ? attributes.price.amount * attributes.price.currency.data.attributes.rate_to_usd
: undefined, : undefined,
filterable_categories: filterHasAttributes(attributes.categories?.data, [ filterable_categories: filterHasAttributes(attributes.categories?.data, ["attributes"]).map(
"attributes.short", (category) => category.attributes.slug
] as const).map((category) => category.attributes.short), ),
untangible_group_item: isUntangibleGroupItem(attributes.metadata?.[0]), untangible_group_item: isUntangibleGroupItem(attributes.metadata?.[0]),
...attributes, ...attributes,
}; };
@ -158,8 +158,8 @@ const transformWeapon: TransformFunction<MeiliIndices.WEAPON> = (data) => {
const categories = new Map<string, MeiliWeapon["categories"][number]>(); const categories = new Map<string, MeiliWeapon["categories"][number]>();
stories?.forEach((story) => { stories?.forEach((story) => {
filterHasAttributes(story?.categories?.data, ["id"] as const).forEach((category) => { filterHasAttributes(story?.categories?.data, ["attributes"]).forEach((category) => {
categories.set(category.id, category); categories.set(category.attributes.slug, category);
}); });
}); });

File diff suppressed because one or more lines are too long