From 8e077d2c6f7ad613292e7cdb949435a4eefc496c Mon Sep 17 00:00:00 2001 From: DrMint Date: Sun, 2 Jan 2022 05:39:54 +0100 Subject: [PATCH] Simplified the GraphQL Query system --- .../Chronology/ChronologyItemComponent.tsx | 147 +- .../Chronology/ChronologyYearComponent.tsx | 6 +- .../Library/LibraryItemComponent.tsx | 10 +- src/graphql/operation.graphql | 102 + src/graphql/operations-types.ts | 4048 ++--------------- src/graphql/operations.ts | 24 +- src/pages/chronology/overview.tsx | 74 +- src/pages/library/[...slug].tsx | 130 +- src/pages/library/index.tsx | 19 +- src/queries/helpers.ts | 64 +- src/queries/library/[...slug].ts | 183 - src/queries/library/index.ts | 86 - 12 files changed, 588 insertions(+), 4305 deletions(-) delete mode 100644 src/queries/library/[...slug].ts delete mode 100644 src/queries/library/index.ts diff --git a/src/components/Chronology/ChronologyItemComponent.tsx b/src/components/Chronology/ChronologyItemComponent.tsx index f773368..0cda8c4 100644 --- a/src/components/Chronology/ChronologyItemComponent.tsx +++ b/src/components/Chronology/ChronologyItemComponent.tsx @@ -1,8 +1,8 @@ -import { ChronologyItemEntity, Maybe } from "graphql/operations-types"; +import { GetChronologyItemsQuery } from "graphql/operations-types"; import styles from "styles/Chronology/ChronologyItemComponent.module.css"; export type ChronologyItemComponentProps = { - item: ChronologyItemEntity; + item: GetChronologyItemsQuery['chronologyItems']['data'][number]; displayYear: boolean; }; @@ -11,8 +11,9 @@ export default function ChronologyItemComponent( ): JSX.Element { function generateAnchor( year: number, - month: Maybe | undefined, - day: Maybe | undefined + month: number, + day: number, + event?: number ): string { let result: string = ""; result += year; @@ -21,10 +22,7 @@ export default function ChronologyItemComponent( return result; } - function generateYear( - displayed_date: Maybe | undefined, - year: number - ): string { + function generateYear(displayed_date: string, year: number): string { if (displayed_date) { return displayed_date; } else { @@ -32,10 +30,7 @@ export default function ChronologyItemComponent( } } - function generateDate( - month: Maybe | undefined, - day: Maybe | undefined - ): string { + function generateDate(month: number, day: number): string { let lut = [ "Jan", "Feb", @@ -62,84 +57,64 @@ export default function ChronologyItemComponent( return result; } - if (props.item && props.item.attributes) { - return ( -
- {props.displayYear ? ( -

- {generateYear( - props.item.attributes.displayed_date, - props.item.attributes.year - )} -

- ) : ( - "" - )} - -

- {generateDate(props.item.attributes.month, props.item.attributes.day)} + return ( +

+ {props.displayYear ? ( +

+ {generateYear( + props.item.attributes.displayed_date, + props.item.attributes.year + )}

+ ) : ( + "" + )} -
- {props.item.attributes.events?.map((event) => { - if (event) { - return ( -
- {event.translations?.map((translation) => { - if (translation) - return ( - <> - {translation.title ? ( -

{translation.title}

- ) : ( - "" - )} +

+ {generateDate(props.item.attributes.month, props.item.attributes.day)} +

- {translation.description ? ( -

1 - ? styles.bulletItem - : "" - } - > - {translation.description} -

- ) : ( - "" - )} - {translation.note ? ( - {"Notes: " + translation.note} - ) : ( - "" - )} - - ); - })} +
+ {props.item.attributes.events.map((event) => ( +
+ {event.translations.map((translation) => ( + <> + {translation.title ?

{translation.title}

: ""} -

- {event.source && - event.source.data && - event.source.data.attributes - ? "(" + event.source.data.attributes.name + ")" - : "(WARNING: NO SOURCE!)"} + {translation.description ? ( +

1 ? styles.bulletItem : "" + } + > + {translation.description}

-
- ); - } - })} -
+ ) : ( + "" + )} + {translation.note ? ( + {"Notes: " + translation.note} + ) : ( + "" + )} + + ))} + +

+ {event.source.data + ? "(" + event.source.data.attributes.name + ")" + : "(WARNING: NO SOURCE!)"} +

+
+ ))}
- ); - } else { - return <>; - } +
+ ); } diff --git a/src/components/Chronology/ChronologyYearComponent.tsx b/src/components/Chronology/ChronologyYearComponent.tsx index 725f381..cdcf3c5 100644 --- a/src/components/Chronology/ChronologyYearComponent.tsx +++ b/src/components/Chronology/ChronologyYearComponent.tsx @@ -1,10 +1,10 @@ import styles from "styles/Chronology/ChronologyYearComponent.module.css"; import ChronologyItemComponent from "components/Chronology/ChronologyItemComponent"; -import { ChronologyItemEntity } from "graphql/operations-types"; +import { GetChronologyItemsQuery } from "graphql/operations-types"; type ChronologyYearComponentProps = { year: number; - items: ChronologyItemEntity[]; + items: GetChronologyItemsQuery["chronologyItems"]["data"][number][]; }; export default function ChronologyYearComponent( @@ -15,7 +15,7 @@ export default function ChronologyYearComponent( className={styles.chronologyYear} id={props.items.length > 1 ? props.year.toString() : undefined} > - {props.items.map((item: ChronologyItemEntity, index: number) => ( + {props.items.map((item, index) => ( = T | null; -export type InputMaybe = Maybe; -export type Exact = { - [K in keyof T]: T[K]; +export type GetErasQueryVariables = { + language_code: string; }; -export type MakeOptional = Omit & { - [SubKey in K]?: Maybe; -}; -export type MakeMaybe = Omit & { - [SubKey in K]: Maybe; -}; -/** All built-in and custom scalars, mapped to their actual values */ -export type Scalars = { - ID: string; - String: string; - Boolean: boolean; - Int: number; - Float: number; - JSON: any; - DateTime: any; - Time: any; - Upload: any; - LibraryContentRangeDynamicZoneInput: any; - LibraryItemMetadataDynamicZoneInput: any; - SourceSourceDynamicZoneInput: any; -}; - -export type Error = { - __typename?: "Error"; - code: Scalars["String"]; - message?: Maybe; -}; - -export type Pagination = { - __typename?: "Pagination"; - total: Scalars["Int"]; - page: Scalars["Int"]; - pageSize: Scalars["Int"]; - pageCount: Scalars["Int"]; -}; - -export type ResponseCollectionMeta = { - __typename?: "ResponseCollectionMeta"; - pagination: Pagination; -}; - -export enum PublicationState { - Live = "LIVE", - Preview = "PREVIEW", -} - -export type IdFilterInput = { - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; - eq?: InputMaybe; - ne?: InputMaybe; - startsWith?: InputMaybe; - endsWith?: InputMaybe; - contains?: InputMaybe; - notContains?: InputMaybe; - containsi?: InputMaybe; - notContainsi?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; - null?: InputMaybe; - notNull?: InputMaybe; - in?: InputMaybe>>; - notIn?: InputMaybe>>; - between?: InputMaybe>>; -}; - -export type BooleanFilterInput = { - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; - eq?: InputMaybe; - ne?: InputMaybe; - startsWith?: InputMaybe; - endsWith?: InputMaybe; - contains?: InputMaybe; - notContains?: InputMaybe; - containsi?: InputMaybe; - notContainsi?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; - null?: InputMaybe; - notNull?: InputMaybe; - in?: InputMaybe>>; - notIn?: InputMaybe>>; - between?: InputMaybe>>; -}; - -export type StringFilterInput = { - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; - eq?: InputMaybe; - ne?: InputMaybe; - startsWith?: InputMaybe; - endsWith?: InputMaybe; - contains?: InputMaybe; - notContains?: InputMaybe; - containsi?: InputMaybe; - notContainsi?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; - null?: InputMaybe; - notNull?: InputMaybe; - in?: InputMaybe>>; - notIn?: InputMaybe>>; - between?: InputMaybe>>; -}; - -export type IntFilterInput = { - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; - eq?: InputMaybe; - ne?: InputMaybe; - startsWith?: InputMaybe; - endsWith?: InputMaybe; - contains?: InputMaybe; - notContains?: InputMaybe; - containsi?: InputMaybe; - notContainsi?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; - null?: InputMaybe; - notNull?: InputMaybe; - in?: InputMaybe>>; - notIn?: InputMaybe>>; - between?: InputMaybe>>; -}; - -export type FloatFilterInput = { - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; - eq?: InputMaybe; - ne?: InputMaybe; - startsWith?: InputMaybe; - endsWith?: InputMaybe; - contains?: InputMaybe; - notContains?: InputMaybe; - containsi?: InputMaybe; - notContainsi?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; - null?: InputMaybe; - notNull?: InputMaybe; - in?: InputMaybe>>; - notIn?: InputMaybe>>; - between?: InputMaybe>>; -}; - -export type DateTimeFilterInput = { - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; - eq?: InputMaybe; - ne?: InputMaybe; - startsWith?: InputMaybe; - endsWith?: InputMaybe; - contains?: InputMaybe; - notContains?: InputMaybe; - containsi?: InputMaybe; - notContainsi?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; - null?: InputMaybe; - notNull?: InputMaybe; - in?: InputMaybe>>; - notIn?: InputMaybe>>; - between?: InputMaybe>>; -}; - -export type JsonFilterInput = { - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; - eq?: InputMaybe; - ne?: InputMaybe; - startsWith?: InputMaybe; - endsWith?: InputMaybe; - contains?: InputMaybe; - notContains?: InputMaybe; - containsi?: InputMaybe; - notContainsi?: InputMaybe; - gt?: InputMaybe; - gte?: InputMaybe; - lt?: InputMaybe; - lte?: InputMaybe; - null?: InputMaybe; - notNull?: InputMaybe; - in?: InputMaybe>>; - notIn?: InputMaybe>>; - between?: InputMaybe>>; -}; - -export type ComponentBasicsCreditsInput = { - id?: InputMaybe; - source_language?: InputMaybe; - transcribers?: InputMaybe>>; - translators?: InputMaybe>>; - proofreaders?: InputMaybe>>; - scanners?: InputMaybe>>; - cleaners?: InputMaybe>>; - typesetters?: InputMaybe>>; - subbers?: InputMaybe>>; - footnotes?: InputMaybe; -}; - -export type ComponentBasicsCredits = { - __typename?: "ComponentBasicsCredits"; - id: Scalars["ID"]; - source_language?: Maybe; - transcribers?: Maybe; - translators?: Maybe; - proofreaders?: Maybe; - scanners?: Maybe; - cleaners?: Maybe; - typesetters?: Maybe; - subbers?: Maybe; - footnotes?: Maybe; -}; - -export type ComponentBasicsCreditsTranscribersArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentBasicsCreditsTranslatorsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentBasicsCreditsProofreadersArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentBasicsCreditsScannersArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentBasicsCreditsCleanersArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentBasicsCreditsTypesettersArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentBasicsCreditsSubbersArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentBasicsDatepickerInput = { - id?: InputMaybe; - year?: InputMaybe; - month?: InputMaybe; - day?: InputMaybe; -}; - -export type ComponentBasicsDatepicker = { - __typename?: "ComponentBasicsDatepicker"; - id: Scalars["ID"]; - year?: Maybe; - month?: Maybe; - day?: Maybe; -}; - -export type ComponentBasicsPriceInput = { - id?: InputMaybe; - amount?: InputMaybe; - currency?: InputMaybe; -}; - -export type ComponentBasicsPrice = { - __typename?: "ComponentBasicsPrice"; - id: Scalars["ID"]; - amount?: Maybe; - currency?: Maybe; -}; - -export type ComponentBasicsSizeInput = { - id?: InputMaybe; - width?: InputMaybe; - height?: InputMaybe; - thickness?: InputMaybe; -}; - -export type ComponentBasicsSize = { - __typename?: "ComponentBasicsSize"; - id: Scalars["ID"]; - width?: Maybe; - height?: Maybe; - thickness?: Maybe; -}; - -export type ComponentCollectionsComponentEventFiltersInput = { - source?: InputMaybe; - and?: InputMaybe< - Array> - >; - or?: InputMaybe< - Array> - >; - not?: InputMaybe; -}; - -export type ComponentCollectionsComponentEventInput = { - id?: InputMaybe; - translations?: InputMaybe< - Array> - >; - source?: InputMaybe; -}; - -export type ComponentCollectionsComponentEvent = { - __typename?: "ComponentCollectionsComponentEvent"; - id: Scalars["ID"]; - translations?: Maybe>>; - source?: Maybe; -}; - -export type ComponentCollectionsComponentEventTranslationsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentCollectionsComponentGlossaryDefinitionFiltersInput = { - source?: InputMaybe; - categories?: InputMaybe; - and?: InputMaybe< - Array< - InputMaybe - > - >; - or?: InputMaybe< - Array< - InputMaybe - > - >; - not?: InputMaybe; -}; - -export type ComponentCollectionsComponentGlossaryDefinitionInput = { - id?: InputMaybe; - translations?: InputMaybe< - Array> - >; - source?: InputMaybe; - categories?: InputMaybe>>; -}; - -export type ComponentCollectionsComponentGlossaryDefinition = { - __typename?: "ComponentCollectionsComponentGlossaryDefinition"; - id: Scalars["ID"]; - translations?: Maybe>>; - source?: Maybe; - categories?: Maybe; -}; - -export type ComponentCollectionsComponentGlossaryDefinitionTranslationsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentCollectionsComponentGlossaryDefinitionCategoriesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentCollectionsComponentWeaponStoryFiltersInput = { - source?: InputMaybe; - categories?: InputMaybe; - and?: InputMaybe< - Array> - >; - or?: InputMaybe< - Array> - >; - not?: InputMaybe; -}; - -export type ComponentCollectionsComponentWeaponStoryInput = { - id?: InputMaybe; - translations?: InputMaybe< - Array> - >; - source?: InputMaybe; - categories?: InputMaybe>>; -}; - -export type ComponentCollectionsComponentWeaponStory = { - __typename?: "ComponentCollectionsComponentWeaponStory"; - id: Scalars["ID"]; - translations?: Maybe>>; - source?: Maybe; - categories?: Maybe; -}; - -export type ComponentCollectionsComponentWeaponStoryTranslationsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentCollectionsComponentWeaponStoryCategoriesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentMetadataAudio = { - __typename?: "ComponentMetadataAudio"; - id: Scalars["ID"]; - languages?: Maybe; - subtype?: Maybe; -}; - -export type ComponentMetadataAudioLanguagesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentMetadataBooks = { - __typename?: "ComponentMetadataBooks"; - id: Scalars["ID"]; - binding_type?: Maybe; - page_count?: Maybe; - languages?: Maybe; - page_order: Scalars["String"]; - subtype?: Maybe; -}; - -export type ComponentMetadataBooksLanguagesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentMetadataGame = { - __typename?: "ComponentMetadataGame"; - id: Scalars["ID"]; - platform?: Maybe; - demo: Scalars["Boolean"]; - audio_languages?: Maybe; - sub_languages?: Maybe; - interface_languages?: Maybe; -}; - -export type ComponentMetadataGameAudio_LanguagesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentMetadataGameSub_LanguagesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentMetadataGameInterface_LanguagesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentMetadataVideo = { - __typename?: "ComponentMetadataVideo"; - id: Scalars["ID"]; - resolution?: Maybe; - audio_languages?: Maybe; - sub_languages?: Maybe; -}; - -export type ComponentMetadataVideoAudio_LanguagesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentPageBuilderComponentPaneFiltersInput = { - text?: InputMaybe; - and?: InputMaybe< - Array> - >; - or?: InputMaybe< - Array> - >; - not?: InputMaybe; -}; - -export type ComponentPageBuilderComponentPane = { - __typename?: "ComponentPageBuilderComponentPane"; - id: Scalars["ID"]; - text?: Maybe; -}; - -export type ComponentPageBuilderComponentTabFiltersInput = { - text?: InputMaybe; - and?: InputMaybe< - Array> - >; - or?: InputMaybe< - Array> - >; - not?: InputMaybe; -}; - -export type ComponentPageBuilderComponentTab = { - __typename?: "ComponentPageBuilderComponentTab"; - id: Scalars["ID"]; - text?: Maybe; -}; - -export type ComponentPageBuilderGallery = { - __typename?: "ComponentPageBuilderGallery"; - id: Scalars["ID"]; - gallery?: Maybe; -}; - -export type ComponentPageBuilderGalleryGalleryArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentPageBuilderGrid = { - __typename?: "ComponentPageBuilderGrid"; - id: Scalars["ID"]; - column_count: Scalars["Int"]; - panes?: Maybe>>; -}; - -export type ComponentPageBuilderGridPanesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentPageBuilderTabs = { - __typename?: "ComponentPageBuilderTabs"; - id: Scalars["ID"]; - tabs?: Maybe>>; -}; - -export type ComponentPageBuilderTabsTabsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentPageBuilderText = { - __typename?: "ComponentPageBuilderText"; - id: Scalars["ID"]; - text?: Maybe; -}; - -export type ComponentRangeGameAspect = { - __typename?: "ComponentRangeGameAspect"; - id: Scalars["ID"]; - note?: Maybe; -}; - -export type ComponentRangeOther = { - __typename?: "ComponentRangeOther"; - id: Scalars["ID"]; - note?: Maybe; -}; - -export type ComponentRangePageRange = { - __typename?: "ComponentRangePageRange"; - id: Scalars["ID"]; - starting_page?: Maybe; - ending_page?: Maybe; -}; - -export type ComponentRangeTimeRange = { - __typename?: "ComponentRangeTimeRange"; - id: Scalars["ID"]; - starting_time?: Maybe; - ending_time?: Maybe; -}; - -export type ComponentSourceLibraryText = { - __typename?: "ComponentSourceLibraryText"; - id: Scalars["ID"]; - text_set?: Maybe; -}; - -export type ComponentSourceUrlSource = { - __typename?: "ComponentSourceUrlSource"; - id: Scalars["ID"]; - title?: Maybe; - url?: Maybe; - note?: Maybe; - credits: ComponentBasicsCredits; -}; - -export type ComponentTranslationsAudioSetsFiltersInput = { - language?: InputMaybe; - status?: InputMaybe; - and?: InputMaybe< - Array> - >; - or?: InputMaybe< - Array> - >; - not?: InputMaybe; -}; - -export type ComponentTranslationsAudioSetsInput = { - id?: InputMaybe; - language?: InputMaybe; - audiofile?: InputMaybe; - status?: InputMaybe; - credits?: InputMaybe; -}; - -export type ComponentTranslationsAudioSets = { - __typename?: "ComponentTranslationsAudioSets"; - id: Scalars["ID"]; - language?: Maybe; - audiofile: UploadFileEntityResponse; - status: Scalars["String"]; - credits: ComponentBasicsCredits; -}; - -export type ComponentTranslationsChronologyEraFiltersInput = { - title?: InputMaybe; - language?: InputMaybe; - and?: InputMaybe< - Array> - >; - or?: InputMaybe< - Array> - >; - not?: InputMaybe; -}; - -export type ComponentTranslationsChronologyEraInput = { - id?: InputMaybe; - title?: InputMaybe; - language?: InputMaybe; -}; - -export type ComponentTranslationsChronologyEra = { - __typename?: "ComponentTranslationsChronologyEra"; - id: Scalars["ID"]; - title?: Maybe; - language?: Maybe; -}; - -export type ComponentTranslationsChronologyItemFiltersInput = { - language?: InputMaybe; - title?: InputMaybe; - description?: InputMaybe; - note?: InputMaybe; - status?: InputMaybe; - and?: InputMaybe< - Array> - >; - or?: InputMaybe< - Array> - >; - not?: InputMaybe; -}; - -export type ComponentTranslationsChronologyItemInput = { - id?: InputMaybe; - language?: InputMaybe; - title?: InputMaybe; - description?: InputMaybe; - note?: InputMaybe; - status?: InputMaybe; -}; - -export type ComponentTranslationsChronologyItem = { - __typename?: "ComponentTranslationsChronologyItem"; - id: Scalars["ID"]; - language?: Maybe; - title?: Maybe; - description?: Maybe; - note?: Maybe; - status: Scalars["String"]; -}; - -export type ComponentTranslationsGlossaryDefinitionFiltersInput = { - definition?: InputMaybe; - language?: InputMaybe; - status?: InputMaybe; - and?: InputMaybe< - Array> - >; - or?: InputMaybe< - Array> - >; - not?: InputMaybe; -}; - -export type ComponentTranslationsGlossaryDefinitionInput = { - id?: InputMaybe; - definition?: InputMaybe; - language?: InputMaybe; - status?: InputMaybe; -}; - -export type ComponentTranslationsGlossaryDefinition = { - __typename?: "ComponentTranslationsGlossaryDefinition"; - id: Scalars["ID"]; - definition?: Maybe; - language?: Maybe; - status: Scalars["String"]; -}; - -export type ComponentTranslationsGlossaryItemFiltersInput = { - title?: InputMaybe; - language?: InputMaybe; - and?: InputMaybe< - Array> - >; - or?: InputMaybe< - Array> - >; - not?: InputMaybe; -}; - -export type ComponentTranslationsGlossaryItemInput = { - id?: InputMaybe; - title?: InputMaybe; - language?: InputMaybe; -}; - -export type ComponentTranslationsGlossaryItem = { - __typename?: "ComponentTranslationsGlossaryItem"; - id: Scalars["ID"]; - title?: Maybe; - language?: Maybe; -}; - -export type ComponentTranslationsLibraryContentFiltersInput = { - title?: InputMaybe; - language?: InputMaybe; - and?: InputMaybe< - Array> - >; - or?: InputMaybe< - Array> - >; - not?: InputMaybe; -}; - -export type ComponentTranslationsLibraryContentInput = { - id?: InputMaybe; - title?: InputMaybe; - language?: InputMaybe; -}; - -export type ComponentTranslationsLibraryContent = { - __typename?: "ComponentTranslationsLibraryContent"; - id: Scalars["ID"]; - title?: Maybe; - language?: Maybe; -}; - -export type ComponentTranslationsLibraryItemsFiltersInput = { - description?: InputMaybe; - language?: InputMaybe; - and?: InputMaybe< - Array> - >; - or?: InputMaybe< - Array> - >; - not?: InputMaybe; -}; - -export type ComponentTranslationsLibraryItemsInput = { - id?: InputMaybe; - description?: InputMaybe; - language?: InputMaybe; -}; - -export type ComponentTranslationsLibraryItems = { - __typename?: "ComponentTranslationsLibraryItems"; - id: Scalars["ID"]; - description: Scalars["String"]; - language?: Maybe; -}; - -export type ComponentTranslationsPostsFiltersInput = { - Status?: InputMaybe; - title?: InputMaybe; - excerpt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type ComponentTranslationsPostsInput = { - id?: InputMaybe; - Status?: InputMaybe; - title?: InputMaybe; - excerpt?: InputMaybe; - thumbnail?: InputMaybe; -}; - -export type ComponentTranslationsPosts = { - __typename?: "ComponentTranslationsPosts"; - id: Scalars["ID"]; - Status: Scalars["String"]; - title: Scalars["String"]; - excerpt?: Maybe; - thumbnail?: Maybe; -}; - -export type ComponentTranslationsScanSetFiltersInput = { - language?: InputMaybe; - status?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type ComponentTranslationsScanSetInput = { - id?: InputMaybe; - language?: InputMaybe; - pages?: InputMaybe>>; - status?: InputMaybe; - credits?: InputMaybe; -}; - -export type ComponentTranslationsScanSet = { - __typename?: "ComponentTranslationsScanSet"; - id: Scalars["ID"]; - language?: Maybe; - pages: UploadFileRelationResponseCollection; - status: Scalars["String"]; - credits: ComponentBasicsCredits; -}; - -export type ComponentTranslationsScanSetPagesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ComponentTranslationsTextSetFiltersInput = { - text?: InputMaybe; - language?: InputMaybe; - status?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type ComponentTranslationsTextSetInput = { - id?: InputMaybe; - text?: InputMaybe; - language?: InputMaybe; - status?: InputMaybe; - credits?: InputMaybe; -}; - -export type ComponentTranslationsTextSet = { - __typename?: "ComponentTranslationsTextSet"; - id: Scalars["ID"]; - text?: Maybe; - language?: Maybe; - status: Scalars["String"]; - credits: ComponentBasicsCredits; -}; - -export type ComponentTranslationsVideoSetsFiltersInput = { - language?: InputMaybe; - video_url?: InputMaybe; - video_embed?: InputMaybe; - status?: InputMaybe; - and?: InputMaybe< - Array> - >; - or?: InputMaybe< - Array> - >; - not?: InputMaybe; -}; - -export type ComponentTranslationsVideoSetsInput = { - id?: InputMaybe; - language?: InputMaybe; - video_url?: InputMaybe; - video_embed?: InputMaybe; - subfile?: InputMaybe; - status?: InputMaybe; - credits?: InputMaybe; -}; - -export type ComponentTranslationsVideoSets = { - __typename?: "ComponentTranslationsVideoSets"; - id: Scalars["ID"]; - language?: Maybe; - video_url: Scalars["String"]; - video_embed?: Maybe; - subfile?: Maybe; - status: Scalars["String"]; - credits: ComponentBasicsCredits; -}; - -export type ComponentTranslationsWeaponStoryStoryFiltersInput = { - description?: InputMaybe; - level_1?: InputMaybe; - level_2?: InputMaybe; - level_3?: InputMaybe; - level_4?: InputMaybe; - language?: InputMaybe; - status?: InputMaybe; - and?: InputMaybe< - Array> - >; - or?: InputMaybe< - Array> - >; - not?: InputMaybe; -}; - -export type ComponentTranslationsWeaponStoryStoryInput = { - id?: InputMaybe; - description?: InputMaybe; - level_1?: InputMaybe; - level_2?: InputMaybe; - level_3?: InputMaybe; - level_4?: InputMaybe; - language?: InputMaybe; - status?: InputMaybe; -}; - -export type ComponentTranslationsWeaponStoryStory = { - __typename?: "ComponentTranslationsWeaponStoryStory"; - id: Scalars["ID"]; - description?: Maybe; - level_1?: Maybe; - level_2?: Maybe; - level_3?: Maybe; - level_4?: Maybe; - language?: Maybe; - status: Scalars["String"]; -}; - -export type ComponentTranslationsWeaponStoryTypeFiltersInput = { - name?: InputMaybe; - language?: InputMaybe; - and?: InputMaybe< - Array> - >; - or?: InputMaybe< - Array> - >; - not?: InputMaybe; -}; - -export type ComponentTranslationsWeaponStoryTypeInput = { - id?: InputMaybe; - name?: InputMaybe; - language?: InputMaybe; -}; - -export type ComponentTranslationsWeaponStoryType = { - __typename?: "ComponentTranslationsWeaponStoryType"; - id: Scalars["ID"]; - name?: Maybe; - language?: Maybe; -}; - -export type ComponentTranslationsWeaponStoryFiltersInput = { - name?: InputMaybe; - language?: InputMaybe; - and?: InputMaybe< - Array> - >; - or?: InputMaybe< - Array> - >; - not?: InputMaybe; -}; - -export type ComponentTranslationsWeaponStoryInput = { - id?: InputMaybe; - name?: InputMaybe; - language?: InputMaybe; -}; - -export type ComponentTranslationsWeaponStory = { - __typename?: "ComponentTranslationsWeaponStory"; - id: Scalars["ID"]; - name?: Maybe; - language?: Maybe; -}; - -export type UploadFileFiltersInput = { - id?: InputMaybe; - name?: InputMaybe; - alternativeText?: InputMaybe; - caption?: InputMaybe; - width?: InputMaybe; - height?: InputMaybe; - formats?: InputMaybe; - hash?: InputMaybe; - ext?: InputMaybe; - mime?: InputMaybe; - size?: InputMaybe; - url?: InputMaybe; - previewUrl?: InputMaybe; - provider?: InputMaybe; - provider_metadata?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type UploadFileInput = { - name?: InputMaybe; - alternativeText?: InputMaybe; - caption?: InputMaybe; - width?: InputMaybe; - height?: InputMaybe; - formats?: InputMaybe; - hash?: InputMaybe; - ext?: InputMaybe; - mime?: InputMaybe; - size?: InputMaybe; - url?: InputMaybe; - previewUrl?: InputMaybe; - provider?: InputMaybe; - provider_metadata?: InputMaybe; -}; - -export type UploadFile = { - __typename?: "UploadFile"; - name: Scalars["String"]; - alternativeText?: Maybe; - caption?: Maybe; - width?: Maybe; - height?: Maybe; - formats?: Maybe; - hash: Scalars["String"]; - ext?: Maybe; - mime: Scalars["String"]; - size: Scalars["Float"]; - url: Scalars["String"]; - previewUrl?: Maybe; - provider: Scalars["String"]; - provider_metadata?: Maybe; - related?: Maybe>>; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type UploadFileEntity = { - __typename?: "UploadFileEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type UploadFileEntityResponse = { - __typename?: "UploadFileEntityResponse"; - data?: Maybe; -}; - -export type UploadFileEntityResponseCollection = { - __typename?: "UploadFileEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type UploadFileRelationResponseCollection = { - __typename?: "UploadFileRelationResponseCollection"; - data: Array; -}; - -export type I18NLocaleFiltersInput = { - id?: InputMaybe; - name?: InputMaybe; - code?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type I18NLocale = { - __typename?: "I18NLocale"; - name?: Maybe; - code?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type I18NLocaleEntity = { - __typename?: "I18NLocaleEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type I18NLocaleEntityResponse = { - __typename?: "I18NLocaleEntityResponse"; - data?: Maybe; -}; - -export type I18NLocaleEntityResponseCollection = { - __typename?: "I18NLocaleEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type UsersPermissionsPermissionFiltersInput = { - id?: InputMaybe; - action?: InputMaybe; - role?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type UsersPermissionsPermission = { - __typename?: "UsersPermissionsPermission"; - action: Scalars["String"]; - role?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type UsersPermissionsPermissionEntity = { - __typename?: "UsersPermissionsPermissionEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type UsersPermissionsPermissionRelationResponseCollection = { - __typename?: "UsersPermissionsPermissionRelationResponseCollection"; - data: Array; -}; - -export type UsersPermissionsRoleFiltersInput = { - id?: InputMaybe; - name?: InputMaybe; - description?: InputMaybe; - type?: InputMaybe; - permissions?: InputMaybe; - users?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type UsersPermissionsRoleInput = { - name?: InputMaybe; - description?: InputMaybe; - type?: InputMaybe; - permissions?: InputMaybe>>; - users?: InputMaybe>>; -}; - -export type UsersPermissionsRole = { - __typename?: "UsersPermissionsRole"; - name: Scalars["String"]; - description?: Maybe; - type?: Maybe; - permissions?: Maybe; - users?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type UsersPermissionsRolePermissionsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type UsersPermissionsRoleUsersArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type UsersPermissionsRoleEntity = { - __typename?: "UsersPermissionsRoleEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type UsersPermissionsRoleEntityResponse = { - __typename?: "UsersPermissionsRoleEntityResponse"; - data?: Maybe; -}; - -export type UsersPermissionsRoleEntityResponseCollection = { - __typename?: "UsersPermissionsRoleEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type UsersPermissionsUserFiltersInput = { - id?: InputMaybe; - username?: InputMaybe; - email?: InputMaybe; - provider?: InputMaybe; - password?: InputMaybe; - resetPasswordToken?: InputMaybe; - confirmationToken?: InputMaybe; - confirmed?: InputMaybe; - blocked?: InputMaybe; - role?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type UsersPermissionsUserInput = { - username?: InputMaybe; - email?: InputMaybe; - provider?: InputMaybe; - password?: InputMaybe; - resetPasswordToken?: InputMaybe; - confirmationToken?: InputMaybe; - confirmed?: InputMaybe; - blocked?: InputMaybe; - role?: InputMaybe; -}; - -export type UsersPermissionsUser = { - __typename?: "UsersPermissionsUser"; - username: Scalars["String"]; - email: Scalars["String"]; - provider?: Maybe; - confirmed?: Maybe; - blocked?: Maybe; - role?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type UsersPermissionsUserEntity = { - __typename?: "UsersPermissionsUserEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type UsersPermissionsUserEntityResponse = { - __typename?: "UsersPermissionsUserEntityResponse"; - data?: Maybe; -}; - -export type UsersPermissionsUserEntityResponseCollection = { - __typename?: "UsersPermissionsUserEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type UsersPermissionsUserRelationResponseCollection = { - __typename?: "UsersPermissionsUserRelationResponseCollection"; - data: Array; -}; - -export type AudioSetFiltersInput = { - id?: InputMaybe; - slug?: InputMaybe; - library_contents?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type AudioSetInput = { - slug?: InputMaybe; - translations?: InputMaybe< - Array> - >; - library_contents?: InputMaybe>>; -}; - -export type AudioSet = { - __typename?: "AudioSet"; - slug: Scalars["String"]; - translations?: Maybe>>; - library_contents?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type AudioSetTranslationsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type AudioSetLibrary_ContentsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type AudioSetEntity = { - __typename?: "AudioSetEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type AudioSetEntityResponse = { - __typename?: "AudioSetEntityResponse"; - data?: Maybe; -}; - -export type AudioSetEntityResponseCollection = { - __typename?: "AudioSetEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type AudioSubtypeFiltersInput = { - id?: InputMaybe; - slug?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type AudioSubtypeInput = { - slug?: InputMaybe; -}; - -export type AudioSubtype = { - __typename?: "AudioSubtype"; - slug: Scalars["String"]; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type AudioSubtypeEntity = { - __typename?: "AudioSubtypeEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type AudioSubtypeEntityResponse = { - __typename?: "AudioSubtypeEntityResponse"; - data?: Maybe; -}; - -export type AudioSubtypeEntityResponseCollection = { - __typename?: "AudioSubtypeEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type CategoryFiltersInput = { - id?: InputMaybe; - name?: InputMaybe; - short?: InputMaybe; - series?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type CategoryInput = { - name?: InputMaybe; - short?: InputMaybe; - series?: InputMaybe; -}; - -export type Category = { - __typename?: "Category"; - name: Scalars["String"]; - short: Scalars["String"]; - series?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type CategoryEntity = { - __typename?: "CategoryEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type CategoryEntityResponse = { - __typename?: "CategoryEntityResponse"; - data?: Maybe; -}; - -export type CategoryEntityResponseCollection = { - __typename?: "CategoryEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type CategoryRelationResponseCollection = { - __typename?: "CategoryRelationResponseCollection"; - data: Array; -}; - -export type ChronologyEraFiltersInput = { - id?: InputMaybe; - starting_year?: InputMaybe; - ending_year?: InputMaybe; - slug?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type ChronologyEraInput = { - starting_year?: InputMaybe; - ending_year?: InputMaybe; - slug?: InputMaybe; - title?: InputMaybe< - Array> - >; -}; - -export type ChronologyEra = { - __typename?: "ChronologyEra"; - starting_year: Scalars["Int"]; - ending_year: Scalars["Int"]; - slug: Scalars["String"]; - title?: Maybe>>; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type ChronologyEraTitleArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ChronologyEraEntity = { - __typename?: "ChronologyEraEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type ChronologyEraEntityResponse = { - __typename?: "ChronologyEraEntityResponse"; - data?: Maybe; -}; - -export type ChronologyEraEntityResponseCollection = { - __typename?: "ChronologyEraEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type ChronologyItemFiltersInput = { - id?: InputMaybe; - year?: InputMaybe; - month?: InputMaybe; - day?: InputMaybe; - displayed_date?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type ChronologyItemInput = { - year?: InputMaybe; - month?: InputMaybe; - day?: InputMaybe; - displayed_date?: InputMaybe; - events?: InputMaybe< - Array> - >; -}; - -export type ChronologyItem = { - __typename?: "ChronologyItem"; - year: Scalars["Int"]; - month?: Maybe; - day?: Maybe; - displayed_date?: Maybe; - events?: Maybe>>; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type ChronologyItemEventsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ChronologyItemEntity = { - __typename?: "ChronologyItemEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type ChronologyItemEntityResponse = { - __typename?: "ChronologyItemEntityResponse"; - data?: Maybe; -}; - -export type ChronologyItemEntityResponseCollection = { - __typename?: "ChronologyItemEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type ContentTypeFiltersInput = { - id?: InputMaybe; - slug?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type ContentTypeInput = { - slug?: InputMaybe; -}; - -export type ContentType = { - __typename?: "ContentType"; - slug: Scalars["String"]; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type ContentTypeEntity = { - __typename?: "ContentTypeEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type ContentTypeEntityResponse = { - __typename?: "ContentTypeEntityResponse"; - data?: Maybe; -}; - -export type ContentTypeEntityResponseCollection = { - __typename?: "ContentTypeEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type CurrencyFiltersInput = { - id?: InputMaybe; - symbol?: InputMaybe; - code?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type CurrencyInput = { - symbol?: InputMaybe; - code?: InputMaybe; -}; - -export type Currency = { - __typename?: "Currency"; - symbol: Scalars["String"]; - code: Scalars["String"]; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type CurrencyEntity = { - __typename?: "CurrencyEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type CurrencyEntityResponse = { - __typename?: "CurrencyEntityResponse"; - data?: Maybe; -}; - -export type CurrencyEntityResponseCollection = { - __typename?: "CurrencyEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type GamePlatformFiltersInput = { - id?: InputMaybe; - name?: InputMaybe; - short?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type GamePlatformInput = { - name?: InputMaybe; - short?: InputMaybe; -}; - -export type GamePlatform = { - __typename?: "GamePlatform"; - name: Scalars["String"]; - short: Scalars["String"]; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type GamePlatformEntity = { - __typename?: "GamePlatformEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type GamePlatformEntityResponse = { - __typename?: "GamePlatformEntityResponse"; - data?: Maybe; -}; - -export type GamePlatformEntityResponseCollection = { - __typename?: "GamePlatformEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type GlossaryItemFiltersInput = { - id?: InputMaybe; - slug?: InputMaybe; - type?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type GlossaryItemInput = { - title?: InputMaybe>>; - definitions?: InputMaybe< - Array> - >; - slug?: InputMaybe; - type?: InputMaybe; - thumbnail?: InputMaybe; -}; - -export type GlossaryItem = { - __typename?: "GlossaryItem"; - title?: Maybe>>; - definitions?: Maybe< - Array> - >; - slug: Scalars["String"]; - type?: Maybe; - thumbnail?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type GlossaryItemTitleArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type GlossaryItemDefinitionsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type GlossaryItemEntity = { - __typename?: "GlossaryItemEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type GlossaryItemEntityResponse = { - __typename?: "GlossaryItemEntityResponse"; - data?: Maybe; -}; - -export type GlossaryItemEntityResponseCollection = { - __typename?: "GlossaryItemEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type GlossaryItemTypeFiltersInput = { - id?: InputMaybe; - type?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type GlossaryItemTypeInput = { - type?: InputMaybe; -}; - -export type GlossaryItemType = { - __typename?: "GlossaryItemType"; - type: Scalars["String"]; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type GlossaryItemTypeEntity = { - __typename?: "GlossaryItemTypeEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type GlossaryItemTypeEntityResponse = { - __typename?: "GlossaryItemTypeEntityResponse"; - data?: Maybe; -}; - -export type GlossaryItemTypeEntityResponseCollection = { - __typename?: "GlossaryItemTypeEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type LanguageFiltersInput = { - id?: InputMaybe; - name?: InputMaybe; - code?: InputMaybe; - localized_name?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type LanguageInput = { - name?: InputMaybe; - code?: InputMaybe; - localized_name?: InputMaybe; -}; - -export type Language = { - __typename?: "Language"; - name: Scalars["String"]; - code: Scalars["String"]; - localized_name: Scalars["String"]; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type LanguageEntity = { - __typename?: "LanguageEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type LanguageEntityResponse = { - __typename?: "LanguageEntityResponse"; - data?: Maybe; -}; - -export type LanguageEntityResponseCollection = { - __typename?: "LanguageEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type LanguageRelationResponseCollection = { - __typename?: "LanguageRelationResponseCollection"; - data: Array; -}; - -export type LibraryContentRangeDynamicZone = - | ComponentRangePageRange - | ComponentRangeTimeRange - | ComponentRangeGameAspect - | ComponentRangeOther - | Error; - -export type LibraryContentFiltersInput = { - id?: InputMaybe; - slug?: InputMaybe; - library_item?: InputMaybe; - scan_set?: InputMaybe; - text_set?: InputMaybe; - audio_set?: InputMaybe; - video_set?: InputMaybe; - type?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type LibraryContentInput = { - slug?: InputMaybe; - title?: InputMaybe< - Array> - >; - library_item?: InputMaybe; - scan_set?: InputMaybe; - text_set?: InputMaybe; - range?: InputMaybe>; - audio_set?: InputMaybe; - video_set?: InputMaybe; - type?: InputMaybe; -}; - -export type LibraryContent = { - __typename?: "LibraryContent"; - slug: Scalars["String"]; - title?: Maybe>>; - library_item?: Maybe; - scan_set?: Maybe; - text_set?: Maybe; - range: Array>; - audio_set?: Maybe; - video_set?: Maybe; - type?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type LibraryContentTitleArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type LibraryContentEntity = { - __typename?: "LibraryContentEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type LibraryContentEntityResponse = { - __typename?: "LibraryContentEntityResponse"; - data?: Maybe; -}; - -export type LibraryContentEntityResponseCollection = { - __typename?: "LibraryContentEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type LibraryContentRelationResponseCollection = { - __typename?: "LibraryContentRelationResponseCollection"; - data: Array; -}; - -export type LibraryItemMetadataDynamicZone = - | ComponentMetadataBooks - | ComponentMetadataVideo - | ComponentMetadataGame - | ComponentMetadataAudio - | Error; - -export type LibraryItemFiltersInput = { - id?: InputMaybe; - title?: InputMaybe; - subtitle?: InputMaybe; - slug?: InputMaybe; - subitems?: InputMaybe; - subitem_of?: InputMaybe; - root_item?: InputMaybe; - variants?: InputMaybe; - contents?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type LibraryItemInput = { - title?: InputMaybe; - subtitle?: InputMaybe; - slug?: InputMaybe; - thumbnail?: InputMaybe; - subitems?: InputMaybe>>; - subitem_of?: InputMaybe>>; - root_item?: InputMaybe; - price?: InputMaybe; - variants?: InputMaybe; - metadata?: InputMaybe>; - size?: InputMaybe; - contents?: InputMaybe>>; - release_date?: InputMaybe; - descriptions?: InputMaybe< - Array> - >; -}; - -export type LibraryItem = { - __typename?: "LibraryItem"; - title: Scalars["String"]; - subtitle?: Maybe; - slug: Scalars["String"]; - thumbnail?: Maybe; - subitems?: Maybe; - subitem_of?: Maybe; - root_item: Scalars["Boolean"]; - price?: Maybe; - variants?: Maybe; - metadata?: Maybe>>; - size?: Maybe; - contents?: Maybe; - release_date?: Maybe; - descriptions?: Maybe>>; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type LibraryItemSubitemsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type LibraryItemSubitem_OfArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type LibraryItemContentsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type LibraryItemDescriptionsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type LibraryItemEntity = { - __typename?: "LibraryItemEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type LibraryItemEntityResponse = { - __typename?: "LibraryItemEntityResponse"; - data?: Maybe; -}; - -export type LibraryItemEntityResponseCollection = { - __typename?: "LibraryItemEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type LibraryItemRelationResponseCollection = { - __typename?: "LibraryItemRelationResponseCollection"; - data: Array; -}; - -export type LibraryVariantFiltersInput = { - id?: InputMaybe; - items?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type LibraryVariantInput = { - items?: InputMaybe>>; -}; - -export type LibraryVariant = { - __typename?: "LibraryVariant"; - items?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type LibraryVariantItemsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type LibraryVariantEntity = { - __typename?: "LibraryVariantEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type LibraryVariantEntityResponse = { - __typename?: "LibraryVariantEntityResponse"; - data?: Maybe; -}; - -export type LibraryVariantEntityResponseCollection = { - __typename?: "LibraryVariantEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type PostFiltersInput = { - id?: InputMaybe; - authors?: InputMaybe; - slug?: InputMaybe; - categories?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - publishedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type PostInput = { - authors?: InputMaybe>>; - slug?: InputMaybe; - categories?: InputMaybe>>; - translations?: InputMaybe>>; - publishedAt?: InputMaybe; -}; - -export type Post = { - __typename?: "Post"; - authors?: Maybe; - slug: Scalars["String"]; - categories?: Maybe; - translations?: Maybe>>; - createdAt?: Maybe; - updatedAt?: Maybe; - publishedAt?: Maybe; -}; - -export type PostAuthorsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type PostCategoriesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type PostTranslationsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type PostEntity = { - __typename?: "PostEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type PostEntityResponse = { - __typename?: "PostEntityResponse"; - data?: Maybe; -}; - -export type PostEntityResponseCollection = { - __typename?: "PostEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type RecorderFiltersInput = { - id?: InputMaybe; - username?: InputMaybe; - anonymize?: InputMaybe; - anonymous_code?: InputMaybe; - languages?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type RecorderInput = { - username?: InputMaybe; - anonymize?: InputMaybe; - anonymous_code?: InputMaybe; - avatar?: InputMaybe; - languages?: InputMaybe>>; -}; - -export type Recorder = { - __typename?: "Recorder"; - username: Scalars["String"]; - anonymize: Scalars["Boolean"]; - anonymous_code: Scalars["String"]; - avatar?: Maybe; - languages?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type RecorderLanguagesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type RecorderEntity = { - __typename?: "RecorderEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type RecorderEntityResponse = { - __typename?: "RecorderEntityResponse"; - data?: Maybe; -}; - -export type RecorderEntityResponseCollection = { - __typename?: "RecorderEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type RecorderRelationResponseCollection = { - __typename?: "RecorderRelationResponseCollection"; - data: Array; -}; - -export type ScanSetFiltersInput = { - id?: InputMaybe; - slug?: InputMaybe; - library_content?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type ScanSetInput = { - slug?: InputMaybe; - translations?: InputMaybe< - Array> - >; - library_content?: InputMaybe; -}; - -export type ScanSet = { - __typename?: "ScanSet"; - slug: Scalars["String"]; - translations?: Maybe>>; - library_content?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type ScanSetTranslationsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type ScanSetEntity = { - __typename?: "ScanSetEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type ScanSetEntityResponse = { - __typename?: "ScanSetEntityResponse"; - data?: Maybe; -}; - -export type ScanSetEntityResponseCollection = { - __typename?: "ScanSetEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type SourceSourceDynamicZone = - | ComponentSourceUrlSource - | ComponentSourceLibraryText - | Error; - -export type SourceFiltersInput = { - id?: InputMaybe; - name?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type SourceInput = { - source?: InputMaybe>; - name?: InputMaybe; -}; - -export type Source = { - __typename?: "Source"; - source: Array>; - name: Scalars["String"]; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type SourceEntity = { - __typename?: "SourceEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type SourceEntityResponse = { - __typename?: "SourceEntityResponse"; - data?: Maybe; -}; - -export type SourceEntityResponseCollection = { - __typename?: "SourceEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type TextSetFiltersInput = { - id?: InputMaybe; - slug?: InputMaybe; - library_contents?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type TextSetInput = { - slug?: InputMaybe; - translations?: InputMaybe< - Array> - >; - library_contents?: InputMaybe>>; -}; - -export type TextSet = { - __typename?: "TextSet"; - slug: Scalars["String"]; - translations?: Maybe>>; - library_contents?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type TextSetTranslationsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type TextSetLibrary_ContentsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type TextSetEntity = { - __typename?: "TextSetEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type TextSetEntityResponse = { - __typename?: "TextSetEntityResponse"; - data?: Maybe; -}; - -export type TextSetEntityResponseCollection = { - __typename?: "TextSetEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type TextualSubtypeFiltersInput = { - id?: InputMaybe; - slug?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type TextualSubtypeInput = { - slug?: InputMaybe; -}; - -export type TextualSubtype = { - __typename?: "TextualSubtype"; - slug: Scalars["String"]; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type TextualSubtypeEntity = { - __typename?: "TextualSubtypeEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type TextualSubtypeEntityResponse = { - __typename?: "TextualSubtypeEntityResponse"; - data?: Maybe; -}; - -export type TextualSubtypeEntityResponseCollection = { - __typename?: "TextualSubtypeEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type VideoSetFiltersInput = { - id?: InputMaybe; - slug?: InputMaybe; - library_contents?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type VideoSetInput = { - slug?: InputMaybe; - translations?: InputMaybe< - Array> - >; - library_contents?: InputMaybe>>; -}; - -export type VideoSet = { - __typename?: "VideoSet"; - slug: Scalars["String"]; - translations?: Maybe>>; - library_contents?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type VideoSetTranslationsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type VideoSetLibrary_ContentsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type VideoSetEntity = { - __typename?: "VideoSetEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type VideoSetEntityResponse = { - __typename?: "VideoSetEntityResponse"; - data?: Maybe; -}; - -export type VideoSetEntityResponseCollection = { - __typename?: "VideoSetEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type WeaponStoryFiltersInput = { - id?: InputMaybe; - slug?: InputMaybe; - type?: InputMaybe; - weapon_group?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type WeaponStoryInput = { - name?: InputMaybe>>; - slug?: InputMaybe; - stories?: InputMaybe< - Array> - >; - type?: InputMaybe; - thumbnail?: InputMaybe; - weapon_group?: InputMaybe; -}; - -export type WeaponStory = { - __typename?: "WeaponStory"; - name?: Maybe>>; - slug?: Maybe; - stories?: Maybe>>; - type?: Maybe; - thumbnail?: Maybe; - weapon_group?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type WeaponStoryNameArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type WeaponStoryStoriesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type WeaponStoryEntity = { - __typename?: "WeaponStoryEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type WeaponStoryEntityResponse = { - __typename?: "WeaponStoryEntityResponse"; - data?: Maybe; -}; - -export type WeaponStoryEntityResponseCollection = { - __typename?: "WeaponStoryEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type WeaponStoryRelationResponseCollection = { - __typename?: "WeaponStoryRelationResponseCollection"; - data: Array; -}; - -export type WeaponStoryGroupFiltersInput = { - id?: InputMaybe; - weapons?: InputMaybe; - slug?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type WeaponStoryGroupInput = { - weapons?: InputMaybe>>; - slug?: InputMaybe; -}; - -export type WeaponStoryGroup = { - __typename?: "WeaponStoryGroup"; - weapons?: Maybe; - slug: Scalars["String"]; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type WeaponStoryGroupWeaponsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type WeaponStoryGroupEntity = { - __typename?: "WeaponStoryGroupEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type WeaponStoryGroupEntityResponse = { - __typename?: "WeaponStoryGroupEntityResponse"; - data?: Maybe; -}; - -export type WeaponStoryGroupEntityResponseCollection = { - __typename?: "WeaponStoryGroupEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type WeaponStoryTypeFiltersInput = { - id?: InputMaybe; - slug?: InputMaybe; - createdAt?: InputMaybe; - updatedAt?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; - not?: InputMaybe; -}; - -export type WeaponStoryTypeInput = { - slug?: InputMaybe; - translations?: InputMaybe< - Array> - >; -}; - -export type WeaponStoryType = { - __typename?: "WeaponStoryType"; - slug: Scalars["String"]; - translations?: Maybe>>; - createdAt?: Maybe; - updatedAt?: Maybe; -}; - -export type WeaponStoryTypeTranslationsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type WeaponStoryTypeEntity = { - __typename?: "WeaponStoryTypeEntity"; - id?: Maybe; - attributes?: Maybe; -}; - -export type WeaponStoryTypeEntityResponse = { - __typename?: "WeaponStoryTypeEntityResponse"; - data?: Maybe; -}; - -export type WeaponStoryTypeEntityResponseCollection = { - __typename?: "WeaponStoryTypeEntityResponseCollection"; - data: Array; - meta: ResponseCollectionMeta; -}; - -export type GenericMorph = - | ComponentBasicsCredits - | ComponentBasicsDatepicker - | ComponentBasicsPrice - | ComponentBasicsSize - | ComponentCollectionsComponentEvent - | ComponentCollectionsComponentGlossaryDefinition - | ComponentCollectionsComponentWeaponStory - | ComponentMetadataAudio - | ComponentMetadataBooks - | ComponentMetadataGame - | ComponentMetadataVideo - | ComponentPageBuilderComponentPane - | ComponentPageBuilderComponentTab - | ComponentPageBuilderGallery - | ComponentPageBuilderGrid - | ComponentPageBuilderTabs - | ComponentPageBuilderText - | ComponentRangeGameAspect - | ComponentRangeOther - | ComponentRangePageRange - | ComponentRangeTimeRange - | ComponentSourceLibraryText - | ComponentSourceUrlSource - | ComponentTranslationsAudioSets - | ComponentTranslationsChronologyEra - | ComponentTranslationsChronologyItem - | ComponentTranslationsGlossaryDefinition - | ComponentTranslationsGlossaryItem - | ComponentTranslationsLibraryContent - | ComponentTranslationsLibraryItems - | ComponentTranslationsPosts - | ComponentTranslationsScanSet - | ComponentTranslationsTextSet - | ComponentTranslationsVideoSets - | ComponentTranslationsWeaponStoryStory - | ComponentTranslationsWeaponStoryType - | ComponentTranslationsWeaponStory - | UploadFile - | I18NLocale - | UsersPermissionsPermission - | UsersPermissionsRole - | UsersPermissionsUser - | AudioSet - | AudioSubtype - | Category - | ChronologyEra - | ChronologyItem - | ContentType - | Currency - | GamePlatform - | GlossaryItem - | GlossaryItemType - | Language - | LibraryContent - | LibraryItem - | LibraryVariant - | Post - | Recorder - | ScanSet - | Source - | TextSet - | TextualSubtype - | VideoSet - | WeaponStory - | WeaponStoryGroup - | WeaponStoryType; - -export type FileInfoInput = { - name?: InputMaybe; - alternativeText?: InputMaybe; - caption?: InputMaybe; -}; - -export type UsersPermissionsMe = { - __typename?: "UsersPermissionsMe"; - id: Scalars["ID"]; - username: Scalars["String"]; - email?: Maybe; - confirmed?: Maybe; - blocked?: Maybe; - role?: Maybe; -}; - -export type UsersPermissionsMeRole = { - __typename?: "UsersPermissionsMeRole"; - id: Scalars["ID"]; - name: Scalars["String"]; - description?: Maybe; - type?: Maybe; -}; - -export type UsersPermissionsRegisterInput = { - username: Scalars["String"]; - email: Scalars["String"]; - password: Scalars["String"]; -}; - -export type UsersPermissionsLoginInput = { - identifier: Scalars["String"]; - password: Scalars["String"]; - provider?: Scalars["String"]; -}; - -export type UsersPermissionsPasswordPayload = { - __typename?: "UsersPermissionsPasswordPayload"; - ok: Scalars["Boolean"]; -}; - -export type UsersPermissionsLoginPayload = { - __typename?: "UsersPermissionsLoginPayload"; - jwt?: Maybe; - user: UsersPermissionsMe; -}; - -export type UsersPermissionsCreateRolePayload = { - __typename?: "UsersPermissionsCreateRolePayload"; - ok: Scalars["Boolean"]; -}; - -export type UsersPermissionsUpdateRolePayload = { - __typename?: "UsersPermissionsUpdateRolePayload"; - ok: Scalars["Boolean"]; -}; - -export type UsersPermissionsDeleteRolePayload = { - __typename?: "UsersPermissionsDeleteRolePayload"; - ok: Scalars["Boolean"]; -}; - -export type PaginationArg = { - page?: InputMaybe; - pageSize?: InputMaybe; - start?: InputMaybe; - limit?: InputMaybe; -}; - -export type Query = { - __typename?: "Query"; - uploadFile?: Maybe; - uploadFiles?: Maybe; - i18NLocale?: Maybe; - i18NLocales?: Maybe; - usersPermissionsRole?: Maybe; - usersPermissionsRoles?: Maybe; - usersPermissionsUser?: Maybe; - usersPermissionsUsers?: Maybe; - audioSet?: Maybe; - audioSets?: Maybe; - audioSubtype?: Maybe; - audioSubtypes?: Maybe; - category?: Maybe; - categories?: Maybe; - chronologyEra?: Maybe; - chronologyEras?: Maybe; - chronologyItem?: Maybe; - chronologyItems?: Maybe; - contentType?: Maybe; - contentTypes?: Maybe; - currency?: Maybe; - currencies?: Maybe; - gamePlatform?: Maybe; - gamePlatforms?: Maybe; - glossaryItem?: Maybe; - glossaryItems?: Maybe; - glossaryItemType?: Maybe; - glossaryItemTypes?: Maybe; - language?: Maybe; - languages?: Maybe; - libraryContent?: Maybe; - libraryContents?: Maybe; - libraryItem?: Maybe; - libraryItems?: Maybe; - libraryVariant?: Maybe; - libraryVariants?: Maybe; - post?: Maybe; - posts?: Maybe; - recorder?: Maybe; - recorders?: Maybe; - scanSet?: Maybe; - scanSets?: Maybe; - source?: Maybe; - sources?: Maybe; - textSet?: Maybe; - textSets?: Maybe; - textualSubtype?: Maybe; - textualSubtypes?: Maybe; - videoSet?: Maybe; - videoSets?: Maybe; - weaponStory?: Maybe; - weaponStories?: Maybe; - weaponStoryGroup?: Maybe; - weaponStoryGroups?: Maybe; - weaponStoryType?: Maybe; - weaponStoryTypes?: Maybe; - me?: Maybe; -}; - -export type QueryUploadFileArgs = { - id?: InputMaybe; -}; - -export type QueryUploadFilesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryI18NLocaleArgs = { - id?: InputMaybe; -}; - -export type QueryI18NLocalesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryUsersPermissionsRoleArgs = { - id?: InputMaybe; -}; - -export type QueryUsersPermissionsRolesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryUsersPermissionsUserArgs = { - id?: InputMaybe; -}; - -export type QueryUsersPermissionsUsersArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryAudioSetArgs = { - id?: InputMaybe; -}; - -export type QueryAudioSetsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryAudioSubtypeArgs = { - id?: InputMaybe; -}; - -export type QueryAudioSubtypesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryCategoryArgs = { - id?: InputMaybe; -}; - -export type QueryCategoriesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryChronologyEraArgs = { - id?: InputMaybe; -}; - -export type QueryChronologyErasArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryChronologyItemArgs = { - id?: InputMaybe; -}; - -export type QueryChronologyItemsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryContentTypeArgs = { - id?: InputMaybe; -}; - -export type QueryContentTypesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryCurrencyArgs = { - id?: InputMaybe; -}; - -export type QueryCurrenciesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryGamePlatformArgs = { - id?: InputMaybe; -}; - -export type QueryGamePlatformsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryGlossaryItemArgs = { - id?: InputMaybe; -}; - -export type QueryGlossaryItemsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryGlossaryItemTypeArgs = { - id?: InputMaybe; -}; - -export type QueryGlossaryItemTypesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryLanguageArgs = { - id?: InputMaybe; -}; - -export type QueryLanguagesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryLibraryContentArgs = { - id?: InputMaybe; -}; - -export type QueryLibraryContentsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryLibraryItemArgs = { - id?: InputMaybe; -}; - -export type QueryLibraryItemsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryLibraryVariantArgs = { - id?: InputMaybe; -}; - -export type QueryLibraryVariantsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryPostArgs = { - id?: InputMaybe; -}; - -export type QueryPostsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; - publicationState?: InputMaybe; -}; - -export type QueryRecorderArgs = { - id?: InputMaybe; -}; - -export type QueryRecordersArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryScanSetArgs = { - id?: InputMaybe; -}; - -export type QueryScanSetsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QuerySourceArgs = { - id?: InputMaybe; -}; - -export type QuerySourcesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryTextSetArgs = { - id?: InputMaybe; -}; - -export type QueryTextSetsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryTextualSubtypeArgs = { - id?: InputMaybe; -}; - -export type QueryTextualSubtypesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryVideoSetArgs = { - id?: InputMaybe; -}; - -export type QueryVideoSetsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryWeaponStoryArgs = { - id?: InputMaybe; -}; - -export type QueryWeaponStoriesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryWeaponStoryGroupArgs = { - id?: InputMaybe; -}; - -export type QueryWeaponStoryGroupsArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type QueryWeaponStoryTypeArgs = { - id?: InputMaybe; -}; - -export type QueryWeaponStoryTypesArgs = { - filters?: InputMaybe; - pagination?: InputMaybe; - sort?: InputMaybe>>; -}; - -export type Mutation = { - __typename?: "Mutation"; - createUploadFile?: Maybe; - updateUploadFile?: Maybe; - deleteUploadFile?: Maybe; - createAudioSet?: Maybe; - updateAudioSet?: Maybe; - deleteAudioSet?: Maybe; - createAudioSubtype?: Maybe; - updateAudioSubtype?: Maybe; - deleteAudioSubtype?: Maybe; - createCategory?: Maybe; - updateCategory?: Maybe; - deleteCategory?: Maybe; - createChronologyEra?: Maybe; - updateChronologyEra?: Maybe; - deleteChronologyEra?: Maybe; - createChronologyItem?: Maybe; - updateChronologyItem?: Maybe; - deleteChronologyItem?: Maybe; - createContentType?: Maybe; - updateContentType?: Maybe; - deleteContentType?: Maybe; - createCurrency?: Maybe; - updateCurrency?: Maybe; - deleteCurrency?: Maybe; - createGamePlatform?: Maybe; - updateGamePlatform?: Maybe; - deleteGamePlatform?: Maybe; - createGlossaryItem?: Maybe; - updateGlossaryItem?: Maybe; - deleteGlossaryItem?: Maybe; - createGlossaryItemType?: Maybe; - updateGlossaryItemType?: Maybe; - deleteGlossaryItemType?: Maybe; - createLanguage?: Maybe; - updateLanguage?: Maybe; - deleteLanguage?: Maybe; - createLibraryContent?: Maybe; - updateLibraryContent?: Maybe; - deleteLibraryContent?: Maybe; - createLibraryItem?: Maybe; - updateLibraryItem?: Maybe; - deleteLibraryItem?: Maybe; - createLibraryVariant?: Maybe; - updateLibraryVariant?: Maybe; - deleteLibraryVariant?: Maybe; - createPost?: Maybe; - updatePost?: Maybe; - deletePost?: Maybe; - createRecorder?: Maybe; - updateRecorder?: Maybe; - deleteRecorder?: Maybe; - createScanSet?: Maybe; - updateScanSet?: Maybe; - deleteScanSet?: Maybe; - createSource?: Maybe; - updateSource?: Maybe; - deleteSource?: Maybe; - createTextSet?: Maybe; - updateTextSet?: Maybe; - deleteTextSet?: Maybe; - createTextualSubtype?: Maybe; - updateTextualSubtype?: Maybe; - deleteTextualSubtype?: Maybe; - createVideoSet?: Maybe; - updateVideoSet?: Maybe; - deleteVideoSet?: Maybe; - createWeaponStory?: Maybe; - updateWeaponStory?: Maybe; - deleteWeaponStory?: Maybe; - createWeaponStoryGroup?: Maybe; - updateWeaponStoryGroup?: Maybe; - deleteWeaponStoryGroup?: Maybe; - createWeaponStoryType?: Maybe; - updateWeaponStoryType?: Maybe; - deleteWeaponStoryType?: Maybe; - upload: UploadFileEntityResponse; - multipleUpload: Array>; - updateFileInfo: UploadFileEntityResponse; - removeFile?: Maybe; - createUsersPermissionsRole?: Maybe; - updateUsersPermissionsRole?: Maybe; - deleteUsersPermissionsRole?: Maybe; - createUsersPermissionsUser: UsersPermissionsUserEntityResponse; - updateUsersPermissionsUser: UsersPermissionsUserEntityResponse; - deleteUsersPermissionsUser: UsersPermissionsUserEntityResponse; - login: UsersPermissionsLoginPayload; - register: UsersPermissionsLoginPayload; - forgotPassword?: Maybe; - resetPassword?: Maybe; - emailConfirmation?: Maybe; -}; - -export type MutationCreateUploadFileArgs = { - data: UploadFileInput; -}; - -export type MutationUpdateUploadFileArgs = { - id: Scalars["ID"]; - data: UploadFileInput; -}; - -export type MutationDeleteUploadFileArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateAudioSetArgs = { - data: AudioSetInput; -}; - -export type MutationUpdateAudioSetArgs = { - id: Scalars["ID"]; - data: AudioSetInput; -}; - -export type MutationDeleteAudioSetArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateAudioSubtypeArgs = { - data: AudioSubtypeInput; -}; - -export type MutationUpdateAudioSubtypeArgs = { - id: Scalars["ID"]; - data: AudioSubtypeInput; -}; - -export type MutationDeleteAudioSubtypeArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateCategoryArgs = { - data: CategoryInput; -}; - -export type MutationUpdateCategoryArgs = { - id: Scalars["ID"]; - data: CategoryInput; -}; - -export type MutationDeleteCategoryArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateChronologyEraArgs = { - data: ChronologyEraInput; -}; - -export type MutationUpdateChronologyEraArgs = { - id: Scalars["ID"]; - data: ChronologyEraInput; -}; - -export type MutationDeleteChronologyEraArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateChronologyItemArgs = { - data: ChronologyItemInput; -}; - -export type MutationUpdateChronologyItemArgs = { - id: Scalars["ID"]; - data: ChronologyItemInput; -}; - -export type MutationDeleteChronologyItemArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateContentTypeArgs = { - data: ContentTypeInput; -}; - -export type MutationUpdateContentTypeArgs = { - id: Scalars["ID"]; - data: ContentTypeInput; -}; - -export type MutationDeleteContentTypeArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateCurrencyArgs = { - data: CurrencyInput; -}; - -export type MutationUpdateCurrencyArgs = { - id: Scalars["ID"]; - data: CurrencyInput; -}; - -export type MutationDeleteCurrencyArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateGamePlatformArgs = { - data: GamePlatformInput; -}; - -export type MutationUpdateGamePlatformArgs = { - id: Scalars["ID"]; - data: GamePlatformInput; -}; - -export type MutationDeleteGamePlatformArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateGlossaryItemArgs = { - data: GlossaryItemInput; -}; - -export type MutationUpdateGlossaryItemArgs = { - id: Scalars["ID"]; - data: GlossaryItemInput; -}; - -export type MutationDeleteGlossaryItemArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateGlossaryItemTypeArgs = { - data: GlossaryItemTypeInput; -}; - -export type MutationUpdateGlossaryItemTypeArgs = { - id: Scalars["ID"]; - data: GlossaryItemTypeInput; -}; - -export type MutationDeleteGlossaryItemTypeArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateLanguageArgs = { - data: LanguageInput; -}; - -export type MutationUpdateLanguageArgs = { - id: Scalars["ID"]; - data: LanguageInput; -}; - -export type MutationDeleteLanguageArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateLibraryContentArgs = { - data: LibraryContentInput; -}; - -export type MutationUpdateLibraryContentArgs = { - id: Scalars["ID"]; - data: LibraryContentInput; -}; - -export type MutationDeleteLibraryContentArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateLibraryItemArgs = { - data: LibraryItemInput; -}; - -export type MutationUpdateLibraryItemArgs = { - id: Scalars["ID"]; - data: LibraryItemInput; -}; - -export type MutationDeleteLibraryItemArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateLibraryVariantArgs = { - data: LibraryVariantInput; -}; - -export type MutationUpdateLibraryVariantArgs = { - id: Scalars["ID"]; - data: LibraryVariantInput; -}; - -export type MutationDeleteLibraryVariantArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreatePostArgs = { - data: PostInput; -}; - -export type MutationUpdatePostArgs = { - id: Scalars["ID"]; - data: PostInput; -}; - -export type MutationDeletePostArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateRecorderArgs = { - data: RecorderInput; -}; - -export type MutationUpdateRecorderArgs = { - id: Scalars["ID"]; - data: RecorderInput; -}; - -export type MutationDeleteRecorderArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateScanSetArgs = { - data: ScanSetInput; -}; - -export type MutationUpdateScanSetArgs = { - id: Scalars["ID"]; - data: ScanSetInput; -}; - -export type MutationDeleteScanSetArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateSourceArgs = { - data: SourceInput; -}; - -export type MutationUpdateSourceArgs = { - id: Scalars["ID"]; - data: SourceInput; -}; - -export type MutationDeleteSourceArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateTextSetArgs = { - data: TextSetInput; -}; - -export type MutationUpdateTextSetArgs = { - id: Scalars["ID"]; - data: TextSetInput; -}; - -export type MutationDeleteTextSetArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateTextualSubtypeArgs = { - data: TextualSubtypeInput; -}; - -export type MutationUpdateTextualSubtypeArgs = { - id: Scalars["ID"]; - data: TextualSubtypeInput; -}; - -export type MutationDeleteTextualSubtypeArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateVideoSetArgs = { - data: VideoSetInput; -}; - -export type MutationUpdateVideoSetArgs = { - id: Scalars["ID"]; - data: VideoSetInput; -}; - -export type MutationDeleteVideoSetArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateWeaponStoryArgs = { - data: WeaponStoryInput; -}; - -export type MutationUpdateWeaponStoryArgs = { - id: Scalars["ID"]; - data: WeaponStoryInput; -}; - -export type MutationDeleteWeaponStoryArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateWeaponStoryGroupArgs = { - data: WeaponStoryGroupInput; -}; - -export type MutationUpdateWeaponStoryGroupArgs = { - id: Scalars["ID"]; - data: WeaponStoryGroupInput; -}; - -export type MutationDeleteWeaponStoryGroupArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateWeaponStoryTypeArgs = { - data: WeaponStoryTypeInput; -}; - -export type MutationUpdateWeaponStoryTypeArgs = { - id: Scalars["ID"]; - data: WeaponStoryTypeInput; -}; - -export type MutationDeleteWeaponStoryTypeArgs = { - id: Scalars["ID"]; -}; - -export type MutationUploadArgs = { - refId?: InputMaybe; - ref?: InputMaybe; - field?: InputMaybe; - info?: InputMaybe; - file: Scalars["Upload"]; -}; - -export type MutationMultipleUploadArgs = { - refId?: InputMaybe; - ref?: InputMaybe; - field?: InputMaybe; - files: Array>; -}; - -export type MutationUpdateFileInfoArgs = { - id: Scalars["ID"]; - info?: InputMaybe; -}; - -export type MutationRemoveFileArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateUsersPermissionsRoleArgs = { - data: UsersPermissionsRoleInput; -}; - -export type MutationUpdateUsersPermissionsRoleArgs = { - id: Scalars["ID"]; - data: UsersPermissionsRoleInput; -}; - -export type MutationDeleteUsersPermissionsRoleArgs = { - id: Scalars["ID"]; -}; - -export type MutationCreateUsersPermissionsUserArgs = { - data: UsersPermissionsUserInput; -}; - -export type MutationUpdateUsersPermissionsUserArgs = { - id: Scalars["ID"]; - data: UsersPermissionsUserInput; -}; - -export type MutationDeleteUsersPermissionsUserArgs = { - id: Scalars["ID"]; -}; - -export type MutationLoginArgs = { - input: UsersPermissionsLoginInput; -}; - -export type MutationRegisterArgs = { - input: UsersPermissionsRegisterInput; -}; - -export type MutationForgotPasswordArgs = { - email: Scalars["String"]; -}; - -export type MutationResetPasswordArgs = { - password: Scalars["String"]; - passwordConfirmation: Scalars["String"]; - code: Scalars["String"]; -}; - -export type MutationEmailConfirmationArgs = { - confirmation: Scalars["String"]; -}; - -export type GetErasQueryVariables = Exact<{ - language_code?: InputMaybe; -}>; export type GetErasQuery = { - __typename?: "Query"; - chronologyEras?: - | { - __typename?: "ChronologyEraEntityResponseCollection"; - data: Array<{ - __typename?: "ChronologyEraEntity"; - id?: string | null | undefined; - attributes?: - | { - __typename?: "ChronologyEra"; - slug: string; - starting_year: number; - ending_year: number; - title?: - | Array< - | { - __typename?: "ComponentTranslationsChronologyEra"; - title?: string | null | undefined; - } - | null - | undefined - > - | null - | undefined; - } - | null - | undefined; + __typename: "Query"; + chronologyEras: { + __typename: "ChronologyEraEntityResponseCollection"; + data: Array<{ + __typename: "ChronologyEraEntity"; + id: string; + attributes: { + __typename: "ChronologyEra"; + slug: string; + starting_year: number; + ending_year: number; + title: Array<{ + __typename: "ComponentTranslationsChronologyEra"; + title: string; }>; - } - | null - | undefined; + }; + }>; + }; }; -export type GetChronologyItemsQueryVariables = Exact<{ - language_code?: InputMaybe; -}>; +export type GetChronologyItemsQueryVariables = { + language_code: string; +}; export type GetChronologyItemsQuery = { - __typename?: "Query"; - chronologyItems?: - | { - __typename?: "ChronologyItemEntityResponseCollection"; - data: Array<{ - __typename?: "ChronologyItemEntity"; - id?: string | null | undefined; - attributes?: - | { - __typename?: "ChronologyItem"; - year: number; - month?: number | null | undefined; - day?: number | null | undefined; - displayed_date?: string | null | undefined; - events?: - | Array< - | { - __typename?: "ComponentCollectionsComponentEvent"; - id: string; - source?: - | { - __typename?: "SourceEntityResponse"; - data?: - | { - __typename?: "SourceEntity"; - attributes?: - | { - __typename?: "Source"; - name: string; - } - | null - | undefined; - } - | null - | undefined; - } - | null - | undefined; - translations?: - | Array< - | { - __typename?: "ComponentTranslationsChronologyItem"; - title?: string | null | undefined; - description?: string | null | undefined; - note?: string | null | undefined; - status: string; - } - | null - | undefined - > - | null - | undefined; - } - | null - | undefined - > - | null - | undefined; - } - | null - | undefined; + __typename: "Query"; + chronologyItems: { + __typename: "ChronologyItemEntityResponseCollection"; + data: Array<{ + __typename: "ChronologyItemEntity"; + id: string; + attributes: { + __typename: "ChronologyItem"; + year: number; + month: number; + day: number; + displayed_date: string; + events: Array<{ + __typename: "ComponentCollectionsComponentEvent"; + id: string; + source: { + __typename: "SourceEntityResponse"; + data: { + __typename: "SourceEntity"; + attributes: { + __typename: "Source"; + name: string; + }; + }; + }; + translations: Array<{ + __typename: "ComponentTranslationsChronologyItem"; + title: string; + description: string; + note: string; + status: string; + }>; }>; - } - | null - | undefined; + }; + }>; + }; }; -export type GetLibraryItemsPreviewQueryVariables = Exact<{ - language_code?: InputMaybe; -}>; +export type GetLibraryItemsPreviewQueryVariables = { + language_code: string; +}; export type GetLibraryItemsPreviewQuery = { - __typename?: "Query"; - libraryItems?: - | { - __typename?: "LibraryItemEntityResponseCollection"; - data: Array<{ - __typename?: "LibraryItemEntity"; - id?: string | null | undefined; - attributes?: - | { - __typename?: "LibraryItem"; - title: string; - subtitle?: string | null | undefined; - slug: string; - thumbnail?: - | { - __typename?: "UploadFileEntityResponse"; - data?: - | { - __typename?: "UploadFileEntity"; - attributes?: - | { - __typename?: "UploadFile"; - name: string; - alternativeText?: string | null | undefined; - caption?: string | null | undefined; - width?: number | null | undefined; - height?: number | null | undefined; - url: string; - } - | null - | undefined; - } - | null - | undefined; - } - | null - | undefined; - release_date?: - | { - __typename?: "ComponentBasicsDatepicker"; - year?: number | null | undefined; - month?: number | null | undefined; - day?: number | null | undefined; - } - | null - | undefined; - price?: - | { - __typename?: "ComponentBasicsPrice"; - amount?: number | null | undefined; - currency?: - | { - __typename?: "CurrencyEntityResponse"; - data?: - | { - __typename?: "CurrencyEntity"; - attributes?: - | { - __typename?: "Currency"; - symbol: string; - code: string; - } - | null - | undefined; - } - | null - | undefined; - } - | null - | undefined; - } - | null - | undefined; - size?: - | { - __typename?: "ComponentBasicsSize"; - width?: number | null | undefined; - height?: number | null | undefined; - thickness?: number | null | undefined; - } - | null - | undefined; - descriptions?: - | Array< - | { - __typename?: "ComponentTranslationsLibraryItems"; - description: string; - } - | null - | undefined - > - | null - | undefined; - } - | null - | undefined; + __typename: "Query"; + libraryItems: { + __typename: "LibraryItemEntityResponseCollection"; + data: Array<{ + __typename: "LibraryItemEntity"; + id: string; + attributes: { + __typename: "LibraryItem"; + title: string; + subtitle: string; + slug: string; + thumbnail: { + __typename: "UploadFileEntityResponse"; + data: { + __typename: "UploadFileEntity"; + attributes: { + __typename: "UploadFile"; + name: string; + alternativeText: string; + caption: string; + width: number; + height: number; + url: string; + }; + }; + }; + release_date: { + __typename: "ComponentBasicsDatepicker"; + year: number; + month: number; + day: number; + }; + price: { + __typename: "ComponentBasicsPrice"; + amount: number; + currency: { + __typename: "CurrencyEntityResponse"; + data: { + __typename: "CurrencyEntity"; + attributes: { + __typename: "Currency"; + symbol: string; + code: string; + }; + }; + }; + }; + size: { + __typename: "ComponentBasicsSize"; + width: number; + height: number; + thickness: number; + }; + descriptions: Array<{ + __typename: "ComponentTranslationsLibraryItems"; + description: string; }>; - } - | null - | undefined; + }; + }>; + }; +}; + +export type GetLibraryItemsSkeletonQueryVariables = { + [key: string]: never; +}; + +export type GetLibraryItemsSkeletonQuery = { + __typename: "Query"; + libraryItems: { + __typename: "LibraryItemEntityResponseCollection"; + data: Array<{ + __typename: "LibraryItemEntity"; + attributes: { + __typename: "LibraryItem"; + slug: string; + subitems: { + __typename: "LibraryItemRelationResponseCollection"; + data: Array<{ + __typename: "LibraryItemEntity"; + attributes: { + __typename: "LibraryItem"; + slug: string; + subitems: { + __typename: "LibraryItemRelationResponseCollection"; + data: Array<{ + __typename: "LibraryItemEntity"; + attributes: { + __typename: "LibraryItem"; + slug: string; + subitems: { + __typename: "LibraryItemRelationResponseCollection"; + data: Array<{ + __typename: "LibraryItemEntity"; + attributes: { + __typename: "LibraryItem"; + slug: string; + }; + }>; + }; + }; + }>; + }; + }; + }>; + }; + }; + }>; + }; +}; + +export type GetLibraryItemQueryVariables = { + slug: string; + language_code: string; +}; + +export type GetLibraryItemQuery = { + __typename: "Query"; + libraryItems: { + __typename: "LibraryItemEntityResponseCollection"; + data: Array<{ + __typename: "LibraryItemEntity"; + id: string; + attributes: { + __typename: "LibraryItem"; + title: string; + subtitle: string; + slug: string; + thumbnail: { + __typename: "UploadFileEntityResponse"; + data: { + __typename: "UploadFileEntity"; + attributes: { + __typename: "UploadFile"; + name: string; + alternativeText: string; + caption: string; + width: number; + height: number; + url: string; + }; + }; + }; + + release_date: { + __typename: "ComponentBasicsDatepicker"; + year: number; + month: number; + day: number; + }; + + price: { + __typename: "ComponentBasicsPrice"; + amount: number; + currency: { + __typename: "CurrencyEntityResponse"; + data: { + __typename: "CurrencyEntity"; + attributes: { + __typename: "Currency"; + symbol: string; + code: string; + }; + }; + }; + }; + + size: { + __typename: "ComponentBasicsSize"; + width: number; + height: number; + thickness: number; + }; + + descriptions: Array< + | { + __typename: "ComponentTranslationsLibraryItems"; + description: string; + } + | undefined + >; + + subitems: { + __typename: "LibraryItemRelationResponseCollection"; + data: Array<{ + __typename: "LibraryItemEntity"; + id: string; + attributes: { + __typename: "LibraryItem"; + slug: string; + title: string; + subtitle: string; + thumbnail: { + __typename: "UploadFileEntityResponse"; + data: { + __typename: "UploadFileEntity"; + attributes: { + __typename: "UploadFile"; + name: string; + alternativeText: string; + + caption: string; + + width: number; + + height: number; + + url: string; + }; + }; + }; + }; + }>; + }; + }; + }>; + }; }; diff --git a/src/graphql/operations.ts b/src/graphql/operations.ts index 810bdfc..ebeff8a 100644 --- a/src/graphql/operations.ts +++ b/src/graphql/operations.ts @@ -3,12 +3,16 @@ import { GetChronologyItemsQueryVariables, GetErasQuery, GetErasQueryVariables, + GetLibraryItemQuery, + GetLibraryItemQueryVariables, GetLibraryItemsPreviewQuery, GetLibraryItemsPreviewQueryVariables, + GetLibraryItemsSkeletonQuery, + GetLibraryItemsSkeletonQueryVariables, } from "graphql/operations-types"; const graphQL = async (query: string, variables?: string) => { - const res = await fetch(process.env.URL_GRAPHQL, { + const res = await fetch(`${process.env.URL_GRAPHQL}`, { method: "POST", body: JSON.stringify({ query: query, @@ -33,7 +37,8 @@ function getQueryFromOperations(queryName: string): string { const lines = operations.split("\n"); lines.map((line, index) => { if (startingIndex === -1) { - if (line.startsWith(`query ${queryName}`)) startingIndex = index; + if (line.startsWith(`query ${queryName}(`)) startingIndex = index; + if (line.startsWith(`query ${queryName} {`)) startingIndex = index; } else if (endingIndex === -1) { if (line.startsWith("query")) endingIndex = index; } @@ -61,3 +66,18 @@ export async function getLibraryItemsPreview( const query = getQueryFromOperations("getLibraryItemsPreview"); return await graphQL(query, JSON.stringify(variables)); } + +export async function getLibraryItemsSkeleton( + variables: GetLibraryItemsSkeletonQueryVariables +): Promise { + const query = getQueryFromOperations("getLibraryItemsSkeleton"); + return await graphQL(query, JSON.stringify(variables)); +} + +export async function getLibraryItem( + variables: GetLibraryItemQueryVariables +): Promise { + const query = getQueryFromOperations("getLibraryItem"); + return await graphQL(query, JSON.stringify(variables)); +} + diff --git a/src/pages/chronology/overview.tsx b/src/pages/chronology/overview.tsx index df79440..2cb4c75 100644 --- a/src/pages/chronology/overview.tsx +++ b/src/pages/chronology/overview.tsx @@ -6,7 +6,6 @@ import NavOption from "components/Panels/NavOption"; import ChronologyYearComponent from "components/Chronology/ChronologyYearComponent"; import { applyCustomAppProps } from "pages/_app"; import { - ChronologyItemEntity, GetChronologyItemsQuery, GetErasQuery, } from "graphql/operations-types"; @@ -25,16 +24,15 @@ applyCustomAppProps(ChronologyOverview, { export default function ChronologyOverview(props: Props): JSX.Element { // Group by year the Chronology items - let chronologyItemYearGroups: ChronologyItemEntity[][] = []; + let chronologyItemYearGroups: GetChronologyItemsQuery["chronologyItems"]["data"][number][][] = + []; if (props.chronologyItems.chronologyItems) { props.chronologyItems.chronologyItems.data.map((item) => { - if (item && item.attributes) { - if (!chronologyItemYearGroups.hasOwnProperty(item.attributes.year)) { - chronologyItemYearGroups[item.attributes.year] = [item]; - } else { - chronologyItemYearGroups[item.attributes.year].push(item); - } + if (!chronologyItemYearGroups.hasOwnProperty(item.attributes.year)) { + chronologyItemYearGroups[item.attributes.year] = [item]; + } else { + chronologyItemYearGroups[item.attributes.year].push(item); } }); } @@ -45,40 +43,26 @@ export default function ChronologyOverview(props: Props): JSX.Element {
- {props.chronologyEras.chronologyEras - ? props.chronologyEras.chronologyEras.data.map((era) => ( - <> - {era.attributes && era.attributes.title ? ( - - ) : ( - "" - )} - - )) - : ""} + {props.chronologyEras.chronologyEras.data.map((era) => ( + + ))} {chronologyItemYearGroups.map((items, index: number) => { - if (items && items[0].attributes?.year) { + if (items && items[0].attributes.year) { return ( ); @@ -90,12 +74,16 @@ export default function ChronologyOverview(props: Props): JSX.Element { } export const getStaticProps: GetStaticProps = async (context) => { - return { - props: { - chronologyItems: await getChronologyItems({ - language_code: context.locale, - }), - chronologyEras: await getEras({ language_code: context.locale }), - }, - }; + if (context.locale) + return { + props: { + chronologyItems: await getChronologyItems({ + language_code: context.locale, + }), + chronologyEras: await getEras({ language_code: context.locale }), + }, + }; + else { + return { props: {} }; + } }; diff --git a/src/pages/library/[...slug].tsx b/src/pages/library/[...slug].tsx index fc791dd..8e0c957 100644 --- a/src/pages/library/[...slug].tsx +++ b/src/pages/library/[...slug].tsx @@ -1,20 +1,18 @@ import { useRouter } from "next/router"; import ContentPanel from "components/Panels/ContentPanel"; -import { getAssetURL } from "queries/helpers"; -import { - getLibraryItem, - getBreadcrumbs, - getLibraryItemsSkeleton, - LibraryItem, - LibrarySubItem, -} from "queries/library/[...slug]"; import Image from "next/image"; import Link from "next/link"; -import { GetStaticProps } from "next"; +import { GetStaticPaths, GetStaticProps } from "next"; import { applyCustomAppProps } from "pages/_app"; +import { + getLibraryItem, + getLibraryItemsSkeleton, +} from "graphql/operations"; +import { GetLibraryItemQuery } from "graphql/operations-types"; +import { getAssetURL } from "queries/helpers"; type Props = { - libraryItem: LibraryItem; + libraryItem: GetLibraryItemQuery; }; applyCustomAppProps(Library, { @@ -24,67 +22,69 @@ applyCustomAppProps(Library, { export default function Library(props: Props): JSX.Element { const router = useRouter(); + const libraryItem = props.libraryItem.libraryItems.data[0]; return ( <> -

{props.libraryItem.attributes.title}

-

{props.libraryItem.attributes.subtitle}

+

{libraryItem.attributes.title}

+

{libraryItem.attributes.subtitle}

{ - {props.libraryItem.attributes.subitems.data.map( - (subitem: LibrarySubItem) => ( - -
- {subitem.attributes.thumbnail.data ? ( - { - ) : ( - "" - )} -
- - ) - )} + {libraryItem.attributes.subitems.data.map((subitem) => ( + +
+ {subitem.attributes.thumbnail.data ? ( + { + ) : ( + "" + )} +
+ + ))}
); } export const getStaticProps: GetStaticProps = async (context) => { - if (context.params && Array.isArray(context.params.slug) && context.locale) { - return { - props: { - libraryItem: await getLibraryItem(context.params.slug, context.locale), - }, - }; + if (context.params && Array.isArray(context.params.slug)) { + const slug = context.params.slug.pop(); + if (slug && context.locale) { + return { + props: { + libraryItem: await getLibraryItem({ + slug: slug, + language_code: context.locale, + }), + }, + }; + } } + return { props: {} }; }; -export async function getStaticPaths() { +export const getStaticPaths: GetStaticPaths = async () => { const paths = await getAllSlugs(); return { paths, @@ -99,9 +99,10 @@ async function getAllSlugs() { }; }; - const data = await getLibraryItemsSkeleton(); + const data = await getLibraryItemsSkeleton({}); + console.log(data); const paths: Path[] = []; - data.map((item) => { + data.libraryItems.data.map((item) => { const breadcrumbs = getBreadcrumbs([], item); breadcrumbs.map((breadcrumb) => { paths.push({ params: { slug: breadcrumb } }); @@ -109,3 +110,22 @@ async function getAllSlugs() { }); return paths; } + +export type LibraryItemSkeleton = { + attributes: { + slug: string; + subitems: { + data: LibraryItemSkeleton[]; + }; + }; +}; + +function getBreadcrumbs(parentBreadcrumb: string[], data: LibraryItemSkeleton) { + const result: string[][] = []; + const itemBreadcrumb = [...parentBreadcrumb, data.attributes.slug]; + result.push(itemBreadcrumb); + data.attributes.subitems.data.map((subitem) => { + result.push(...getBreadcrumbs(itemBreadcrumb, subitem)); + }); + return result; +} diff --git a/src/pages/library/index.tsx b/src/pages/library/index.tsx index 2d3acab..ae282bf 100644 --- a/src/pages/library/index.tsx +++ b/src/pages/library/index.tsx @@ -16,7 +16,6 @@ applyCustomAppProps(Library, { }); export default function Library(props: Props): JSX.Element { - console.log(props); return ( <> @@ -32,7 +31,7 @@ export default function Library(props: Props): JSX.Element { - {props.libraryItems.libraryItems?.data.map((item) => ( + {props.libraryItems.libraryItems.data.map((item) => ( ))} @@ -41,9 +40,15 @@ export default function Library(props: Props): JSX.Element { } export const getStaticProps: GetStaticProps = async (context) => { - return { - props: { - libraryItems: await getLibraryItemsPreview({language_code: context.locale}), - }, - }; + if (context.locale) + return { + props: { + libraryItems: await getLibraryItemsPreview({ + language_code: context.locale, + }), + }, + }; + else { + return { props: {} }; + } }; diff --git a/src/queries/helpers.ts b/src/queries/helpers.ts index 12ae290..712a1e1 100644 --- a/src/queries/helpers.ts +++ b/src/queries/helpers.ts @@ -1,65 +1,3 @@ -export const queryGraphQL = async (query: string, variables?: string) => { - const res = await fetch(process.env.URL_GRAPHQL, { - method: "POST", - body: JSON.stringify({ - query: query, - variables: variables - }), - headers: { - "content-type": "application/json", - Authorization: "Bearer " + process.env.ACCESS_TOKEN, - }, - }); - return (await res.json()).data; -}; - export function getAssetURL(url: string): string { return process.env.NEXT_PUBLIC_URL_CMS + url; -} - -export type Source = { - data: { - attributes: { - name: string; - }; - }; -}; - -export type UploadImage = { - data: { - attributes: { - name: string; - alternativeText: string; - caption: string; - width: number; - height: number; - url: string; - }; - }; -}; - -export type BasicPrice = { - amount: number; - currency: BasicCurrency; -}; - -export type BasicCurrency = { - data: { - attributes: { - symbol: string; - code: string; - }; - }; -}; - -export type BasicSize = { - width: number; - height: number; - thickness: number; -}; - -export type BasicDate = { - year: number; - month: number; - day: number; -}; +} \ No newline at end of file diff --git a/src/queries/library/[...slug].ts b/src/queries/library/[...slug].ts deleted file mode 100644 index 6e7c56a..0000000 --- a/src/queries/library/[...slug].ts +++ /dev/null @@ -1,183 +0,0 @@ -import { - BasicDate, - BasicPrice, - BasicSize, - queryGraphQL, - UploadImage, -} from "queries/helpers"; - -export type LibraryItemSkeleton = { - attributes: { - slug: string; - subitems: { - data: LibraryItemSkeleton[]; - }; - }; -}; - -export async function getLibraryItemsSkeleton(): Promise< - LibraryItemSkeleton[] -> { - return ( - await queryGraphQL( - ` - { - libraryItems(filters: { root_item: { eq: true } }) { - data { - attributes { - slug - subitems { - data { - attributes { - slug - subitems { - data { - attributes { - slug - subitems { - data { - attributes { - slug - } - } - } - } - } - } - } - } - } - } - } - } - } - ` - ) - ).libraryItems.data; -} - -export function getBreadcrumbs( - parentBreadcrumb: string[], - data: LibraryItemSkeleton -) { - const result: string[][] = []; - const itemBreadcrumb = [...parentBreadcrumb, data.attributes.slug]; - result.push(itemBreadcrumb); - data.attributes.subitems.data.map((subitem) => { - result.push(...getBreadcrumbs(itemBreadcrumb, subitem)); - }); - return result; -} - -export type LibraryItem = { - id: string; - attributes: { - title: string; - subtitle: string; - slug: string; - thumbnail: UploadImage; - release_date: BasicDate; - price: BasicPrice; - size: BasicSize; - description: { - description: string; - }; - subitems: { - data: LibrarySubItem[]; - }; - }; -}; - -export type LibrarySubItem = { - id: string; - attributes: { - title: string; - subtitle: string; - slug: string; - thumbnail: UploadImage; - }; -}; - -export async function getLibraryItem( - slug: string[], - language_code: string | undefined -): Promise { - return ( - await queryGraphQL( - ` - { - libraryItems( - filters: {slug: {eq: "${slug.pop()}"}} - ) { - data { - id - attributes { - title - subtitle - slug - thumbnail { - data { - attributes { - name - alternativeText - caption - width - height - url - } - } - } - release_date { - year - month - day - } - price { - amount - currency { - data { - attributes { - symbol - code - } - } - } - } - size { - width - height - thickness - } - descriptions(filters: { language: { code: { eq: "${language_code}" } } }) { - description - } - subitems { - data { - id - attributes { - slug - title - subtitle - thumbnail { - data { - attributes { - name - alternativeText - caption - width - height - url - } - } - } - } - } - } - } - } - } - } - ` - ) - ).libraryItems.data[0]; -} diff --git a/src/queries/library/index.ts b/src/queries/library/index.ts deleted file mode 100644 index 6d1162b..0000000 --- a/src/queries/library/index.ts +++ /dev/null @@ -1,86 +0,0 @@ -import { - UploadImage, - queryGraphQL, - BasicPrice, - BasicDate, - BasicSize, -} from "queries/helpers"; - -export type LibraryItem = { - id: string; - attributes: { - title: string; - subtitle: string; - slug: string; - thumbnail: UploadImage; - release_date: BasicDate; - price: BasicPrice; - size: BasicSize; - description: { - description: string; - }; - }; -}; - -export async function getLibraryItems( - language_code: string | undefined -): Promise { - return ( - await queryGraphQL( - ` - { - libraryItems( - filters: { root_item: { eq: true } } - pagination: { limit: -1 } - sort: ["slug:asc"] - ) { - data { - id - attributes { - title - subtitle - slug - thumbnail { - data { - attributes { - name - alternativeText - caption - width - height - url - } - } - } - release_date { - year - month - day - } - price { - amount - currency { - data { - attributes { - symbol - code - } - } - } - } - size { - width - height - thickness - } - descriptions(filters: { language: { code: { eq: "${language_code}" } } }) { - description - } - } - } - } - } - ` - ) - ).libraryItems.data; -}