From 702dc74ab690b07f0cf6f919275f565eada7bd4f Mon Sep 17 00:00:00 2001 From: DrMint Date: Sun, 2 Jan 2022 03:59:54 +0100 Subject: [PATCH] Using GraphQL SDL to generate the TypeScript Types --- .../Chronology/ChronologyItemComponent.tsx | 150 +- .../Chronology/ChronologyYearComponent.tsx | 13 +- .../Library/LibraryItemComponent.tsx | 4 +- src/components/Panels/NavOption.tsx | 2 +- src/graphql/operation.graphql | 103 + .../types.ts => graphql/operations-types.ts} | 2587 ++++++++-------- src/graphql/operations.ts | 63 + src/graphql/schema.graphql | 2713 +++++++++++++++++ src/pages/chronology/overview.tsx | 127 +- src/pages/library/index.tsx | 11 +- src/queries/chronology/overview.ts | 109 - src/queries/helpers.ts | 14 +- 12 files changed, 4441 insertions(+), 1455 deletions(-) create mode 100644 src/graphql/operation.graphql rename src/{queries/types.ts => graphql/operations-types.ts} (54%) create mode 100644 src/graphql/operations.ts create mode 100644 src/graphql/schema.graphql delete mode 100644 src/queries/chronology/overview.ts diff --git a/src/components/Chronology/ChronologyItemComponent.tsx b/src/components/Chronology/ChronologyItemComponent.tsx index d725d23..f773368 100644 --- a/src/components/Chronology/ChronologyItemComponent.tsx +++ b/src/components/Chronology/ChronologyItemComponent.tsx @@ -1,11 +1,8 @@ +import { ChronologyItemEntity, Maybe } from "graphql/operations-types"; import styles from "styles/Chronology/ChronologyItemComponent.module.css"; -import { - ChronologyItem, - ChronologyItemsEvent, -} from "queries/chronology/overview"; export type ChronologyItemComponentProps = { - item: ChronologyItem; + item: ChronologyItemEntity; displayYear: boolean; }; @@ -14,9 +11,8 @@ export default function ChronologyItemComponent( ): JSX.Element { function generateAnchor( year: number, - month: number, - day: number, - event?: number + month: Maybe | undefined, + day: Maybe | undefined ): string { let result: string = ""; result += year; @@ -25,7 +21,10 @@ export default function ChronologyItemComponent( return result; } - function generateYear(displayed_date: string, year: number): string { + function generateYear( + displayed_date: Maybe | undefined, + year: number + ): string { if (displayed_date) { return displayed_date; } else { @@ -33,7 +32,10 @@ export default function ChronologyItemComponent( } } - function generateDate(month: number, day: number): string { + function generateDate( + month: Maybe | undefined, + day: Maybe | undefined + ): string { let lut = [ "Jan", "Feb", @@ -60,64 +62,84 @@ export default function ChronologyItemComponent( return result; } - return ( -
- {props.displayYear ? ( -

- {generateYear( - props.item.attributes.displayed_date, - props.item.attributes.year - )} + 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)}

- ) : ( - "" - )} -

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

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

{translation.title}

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

{translation.title}

: ""} + {translation.description ? ( +

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

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

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

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

- ) : ( - "" - )} - {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 5dd0954..725f381 100644 --- a/src/components/Chronology/ChronologyYearComponent.tsx +++ b/src/components/Chronology/ChronologyYearComponent.tsx @@ -1,9 +1,10 @@ import styles from "styles/Chronology/ChronologyYearComponent.module.css"; -import { ChronologyItem } from "queries/chronology/overview"; import ChronologyItemComponent from "components/Chronology/ChronologyItemComponent"; +import { ChronologyItemEntity } from "graphql/operations-types"; type ChronologyYearComponentProps = { - items: ChronologyItem[]; + year: number; + items: ChronologyItemEntity[]; }; export default function ChronologyYearComponent( @@ -12,13 +13,9 @@ export default function ChronologyYearComponent( return (
1 - ? props.items[0].attributes.year.toString() - : undefined - } + id={props.items.length > 1 ? props.year.toString() : undefined} > - {props.items.map((item: ChronologyItem, index: number) => ( + {props.items.map((item: ChronologyItemEntity, index: number) => ( = T | null; export type InputMaybe = Maybe; -export type Exact = { [K in keyof T]: T[K] }; -export type MakeOptional = Omit & { [SubKey in K]?: Maybe }; -export type MakeMaybe = Omit & { [SubKey in K]: Maybe }; +export type Exact = { + [K in keyof T]: T[K]; +}; +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; @@ -20,206 +26,206 @@ export type Scalars = { }; export type Error = { - __typename?: 'Error'; - code: Scalars['String']; - message?: Maybe; + __typename?: "Error"; + code: Scalars["String"]; + message?: Maybe; }; export type Pagination = { - __typename?: 'Pagination'; - total: Scalars['Int']; - page: Scalars['Int']; - pageSize: Scalars['Int']; - pageCount: Scalars['Int']; + __typename?: "Pagination"; + total: Scalars["Int"]; + page: Scalars["Int"]; + pageSize: Scalars["Int"]; + pageCount: Scalars["Int"]; }; export type ResponseCollectionMeta = { - __typename?: 'ResponseCollectionMeta'; + __typename?: "ResponseCollectionMeta"; pagination: Pagination; }; export enum PublicationState { - Live = 'LIVE', - Preview = 'PREVIEW' + Live = "LIVE", + Preview = "PREVIEW", } export type IdFilterInput = { - and?: InputMaybe>>; - or?: InputMaybe>>; + 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>>; + 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>>; + 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>>; + 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>>; + 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>>; + 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>>; + 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>>; + 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>>; + 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>>; + 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>>; + 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>>; + 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>>; + 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>>; + 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; + 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']; + __typename?: "ComponentBasicsCredits"; + id: Scalars["ID"]; source_language?: Maybe; transcribers?: Maybe; translators?: Maybe; @@ -228,435 +234,452 @@ export type ComponentBasicsCredits = { cleaners?: Maybe; typesetters?: Maybe; subbers?: Maybe; - footnotes?: Maybe; + footnotes?: Maybe; }; - export type ComponentBasicsCreditsTranscribersArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type ComponentBasicsCreditsTranslatorsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type ComponentBasicsCreditsProofreadersArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type ComponentBasicsCreditsScannersArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type ComponentBasicsCreditsCleanersArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type ComponentBasicsCreditsTypesettersArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type ComponentBasicsCreditsSubbersArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type ComponentBasicsDatepickerInput = { - id?: InputMaybe; - year?: InputMaybe; - month?: InputMaybe; - day?: InputMaybe; + id?: InputMaybe; + year?: InputMaybe; + month?: InputMaybe; + day?: InputMaybe; }; export type ComponentBasicsDatepicker = { - __typename?: 'ComponentBasicsDatepicker'; - id: Scalars['ID']; - year?: Maybe; - month?: Maybe; - day?: Maybe; + __typename?: "ComponentBasicsDatepicker"; + id: Scalars["ID"]; + year?: Maybe; + month?: Maybe; + day?: Maybe; }; export type ComponentBasicsPriceInput = { - id?: InputMaybe; - amount?: InputMaybe; - currency?: InputMaybe; + id?: InputMaybe; + amount?: InputMaybe; + currency?: InputMaybe; }; export type ComponentBasicsPrice = { - __typename?: 'ComponentBasicsPrice'; - id: Scalars['ID']; - amount?: Maybe; + __typename?: "ComponentBasicsPrice"; + id: Scalars["ID"]; + amount?: Maybe; currency?: Maybe; }; export type ComponentBasicsSizeInput = { - id?: InputMaybe; - width?: InputMaybe; - height?: InputMaybe; - thickness?: InputMaybe; + id?: InputMaybe; + width?: InputMaybe; + height?: InputMaybe; + thickness?: InputMaybe; }; export type ComponentBasicsSize = { - __typename?: 'ComponentBasicsSize'; - id: Scalars['ID']; - width?: Maybe; - height?: Maybe; - thickness?: Maybe; + __typename?: "ComponentBasicsSize"; + id: Scalars["ID"]; + width?: Maybe; + height?: Maybe; + thickness?: Maybe; }; export type ComponentCollectionsComponentEventFiltersInput = { source?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; + and?: InputMaybe< + Array> + >; + or?: InputMaybe< + Array> + >; not?: InputMaybe; }; export type ComponentCollectionsComponentEventInput = { - id?: InputMaybe; - translations?: InputMaybe>>; - source?: InputMaybe; + id?: InputMaybe; + translations?: InputMaybe< + Array> + >; + source?: InputMaybe; }; export type ComponentCollectionsComponentEvent = { - __typename?: 'ComponentCollectionsComponentEvent'; - id: Scalars['ID']; + __typename?: "ComponentCollectionsComponentEvent"; + id: Scalars["ID"]; translations?: Maybe>>; source?: Maybe; }; - export type ComponentCollectionsComponentEventTranslationsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type ComponentCollectionsComponentGlossaryDefinitionFiltersInput = { source?: InputMaybe; categories?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; + and?: InputMaybe< + Array< + InputMaybe + > + >; + or?: InputMaybe< + Array< + InputMaybe + > + >; not?: InputMaybe; }; export type ComponentCollectionsComponentGlossaryDefinitionInput = { - id?: InputMaybe; - translations?: InputMaybe>>; - source?: InputMaybe; - categories?: InputMaybe>>; + id?: InputMaybe; + translations?: InputMaybe< + Array> + >; + source?: InputMaybe; + categories?: InputMaybe>>; }; export type ComponentCollectionsComponentGlossaryDefinition = { - __typename?: 'ComponentCollectionsComponentGlossaryDefinition'; - id: Scalars['ID']; + __typename?: "ComponentCollectionsComponentGlossaryDefinition"; + id: Scalars["ID"]; translations?: Maybe>>; source?: Maybe; categories?: Maybe; }; - export type ComponentCollectionsComponentGlossaryDefinitionTranslationsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type ComponentCollectionsComponentGlossaryDefinitionCategoriesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type ComponentCollectionsComponentWeaponStoryFiltersInput = { source?: InputMaybe; categories?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; + and?: InputMaybe< + Array> + >; + or?: InputMaybe< + Array> + >; not?: InputMaybe; }; export type ComponentCollectionsComponentWeaponStoryInput = { - id?: InputMaybe; - translations?: InputMaybe>>; - source?: InputMaybe; - categories?: InputMaybe>>; + id?: InputMaybe; + translations?: InputMaybe< + Array> + >; + source?: InputMaybe; + categories?: InputMaybe>>; }; export type ComponentCollectionsComponentWeaponStory = { - __typename?: 'ComponentCollectionsComponentWeaponStory'; - id: Scalars['ID']; + __typename?: "ComponentCollectionsComponentWeaponStory"; + id: Scalars["ID"]; translations?: Maybe>>; source?: Maybe; categories?: Maybe; }; - export type ComponentCollectionsComponentWeaponStoryTranslationsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type ComponentCollectionsComponentWeaponStoryCategoriesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type ComponentMetadataAudio = { - __typename?: 'ComponentMetadataAudio'; - id: Scalars['ID']; + __typename?: "ComponentMetadataAudio"; + id: Scalars["ID"]; languages?: Maybe; subtype?: Maybe; }; - export type ComponentMetadataAudioLanguagesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type ComponentMetadataBooks = { - __typename?: 'ComponentMetadataBooks'; - id: Scalars['ID']; - binding_type?: Maybe; - page_count?: Maybe; + __typename?: "ComponentMetadataBooks"; + id: Scalars["ID"]; + binding_type?: Maybe; + page_count?: Maybe; languages?: Maybe; - page_order: Scalars['String']; + page_order: Scalars["String"]; subtype?: Maybe; }; - export type ComponentMetadataBooksLanguagesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type ComponentMetadataGame = { - __typename?: 'ComponentMetadataGame'; - id: Scalars['ID']; + __typename?: "ComponentMetadataGame"; + id: Scalars["ID"]; platform?: Maybe; - demo: Scalars['Boolean']; + demo: Scalars["Boolean"]; audio_languages?: Maybe; sub_languages?: Maybe; interface_languages?: Maybe; }; - export type ComponentMetadataGameAudio_LanguagesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type ComponentMetadataGameSub_LanguagesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type ComponentMetadataGameInterface_LanguagesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type ComponentMetadataVideo = { - __typename?: 'ComponentMetadataVideo'; - id: Scalars['ID']; - resolution?: Maybe; + __typename?: "ComponentMetadataVideo"; + id: Scalars["ID"]; + resolution?: Maybe; audio_languages?: Maybe; sub_languages?: Maybe; }; - export type ComponentMetadataVideoAudio_LanguagesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type ComponentPageBuilderComponentPaneFiltersInput = { text?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; + and?: InputMaybe< + Array> + >; + or?: InputMaybe< + Array> + >; not?: InputMaybe; }; export type ComponentPageBuilderComponentPane = { - __typename?: 'ComponentPageBuilderComponentPane'; - id: Scalars['ID']; - text?: Maybe; + __typename?: "ComponentPageBuilderComponentPane"; + id: Scalars["ID"]; + text?: Maybe; }; export type ComponentPageBuilderComponentTabFiltersInput = { text?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; + and?: InputMaybe< + Array> + >; + or?: InputMaybe< + Array> + >; not?: InputMaybe; }; export type ComponentPageBuilderComponentTab = { - __typename?: 'ComponentPageBuilderComponentTab'; - id: Scalars['ID']; - text?: Maybe; + __typename?: "ComponentPageBuilderComponentTab"; + id: Scalars["ID"]; + text?: Maybe; }; export type ComponentPageBuilderGallery = { - __typename?: 'ComponentPageBuilderGallery'; - id: Scalars['ID']; + __typename?: "ComponentPageBuilderGallery"; + id: Scalars["ID"]; gallery?: Maybe; }; - export type ComponentPageBuilderGalleryGalleryArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type ComponentPageBuilderGrid = { - __typename?: 'ComponentPageBuilderGrid'; - id: Scalars['ID']; - column_count: Scalars['Int']; + __typename?: "ComponentPageBuilderGrid"; + id: Scalars["ID"]; + column_count: Scalars["Int"]; panes?: Maybe>>; }; - export type ComponentPageBuilderGridPanesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type ComponentPageBuilderTabs = { - __typename?: 'ComponentPageBuilderTabs'; - id: Scalars['ID']; + __typename?: "ComponentPageBuilderTabs"; + id: Scalars["ID"]; tabs?: Maybe>>; }; - export type ComponentPageBuilderTabsTabsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type ComponentPageBuilderText = { - __typename?: 'ComponentPageBuilderText'; - id: Scalars['ID']; - text?: Maybe; + __typename?: "ComponentPageBuilderText"; + id: Scalars["ID"]; + text?: Maybe; }; export type ComponentRangeGameAspect = { - __typename?: 'ComponentRangeGameAspect'; - id: Scalars['ID']; - note?: Maybe; + __typename?: "ComponentRangeGameAspect"; + id: Scalars["ID"]; + note?: Maybe; }; export type ComponentRangeOther = { - __typename?: 'ComponentRangeOther'; - id: Scalars['ID']; - note?: Maybe; + __typename?: "ComponentRangeOther"; + id: Scalars["ID"]; + note?: Maybe; }; export type ComponentRangePageRange = { - __typename?: 'ComponentRangePageRange'; - id: Scalars['ID']; - starting_page?: Maybe; - ending_page?: Maybe; + __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; + __typename?: "ComponentRangeTimeRange"; + id: Scalars["ID"]; + starting_time?: Maybe; + ending_time?: Maybe; }; export type ComponentSourceLibraryText = { - __typename?: 'ComponentSourceLibraryText'; - id: Scalars['ID']; + __typename?: "ComponentSourceLibraryText"; + id: Scalars["ID"]; text_set?: Maybe; }; export type ComponentSourceUrlSource = { - __typename?: 'ComponentSourceUrlSource'; - id: Scalars['ID']; - title?: Maybe; - url?: Maybe; - note?: Maybe; + __typename?: "ComponentSourceUrlSource"; + id: Scalars["ID"]; + title?: Maybe; + url?: Maybe; + note?: Maybe; credits: ComponentBasicsCredits; }; export type ComponentTranslationsAudioSetsFiltersInput = { language?: InputMaybe; status?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; + and?: InputMaybe< + Array> + >; + or?: InputMaybe< + Array> + >; not?: InputMaybe; }; export type ComponentTranslationsAudioSetsInput = { - id?: InputMaybe; - language?: InputMaybe; - audiofile?: InputMaybe; - status?: InputMaybe; + id?: InputMaybe; + language?: InputMaybe; + audiofile?: InputMaybe; + status?: InputMaybe; credits?: InputMaybe; }; export type ComponentTranslationsAudioSets = { - __typename?: 'ComponentTranslationsAudioSets'; - id: Scalars['ID']; + __typename?: "ComponentTranslationsAudioSets"; + id: Scalars["ID"]; language?: Maybe; audiofile: UploadFileEntityResponse; - status: Scalars['String']; + status: Scalars["String"]; credits: ComponentBasicsCredits; }; export type ComponentTranslationsChronologyEraFiltersInput = { title?: InputMaybe; language?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; + and?: InputMaybe< + Array> + >; + or?: InputMaybe< + Array> + >; not?: InputMaybe; }; export type ComponentTranslationsChronologyEraInput = { - id?: InputMaybe; - title?: InputMaybe; - language?: InputMaybe; + id?: InputMaybe; + title?: InputMaybe; + language?: InputMaybe; }; export type ComponentTranslationsChronologyEra = { - __typename?: 'ComponentTranslationsChronologyEra'; - id: Scalars['ID']; - title?: Maybe; + __typename?: "ComponentTranslationsChronologyEra"; + id: Scalars["ID"]; + title?: Maybe; language?: Maybe; }; @@ -666,114 +689,134 @@ export type ComponentTranslationsChronologyItemFiltersInput = { description?: InputMaybe; note?: InputMaybe; status?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; + and?: InputMaybe< + Array> + >; + or?: InputMaybe< + Array> + >; not?: InputMaybe; }; export type ComponentTranslationsChronologyItemInput = { - id?: InputMaybe; - language?: InputMaybe; - title?: InputMaybe; - description?: InputMaybe; - note?: InputMaybe; - status?: InputMaybe; + id?: InputMaybe; + language?: InputMaybe; + title?: InputMaybe; + description?: InputMaybe; + note?: InputMaybe; + status?: InputMaybe; }; export type ComponentTranslationsChronologyItem = { - __typename?: 'ComponentTranslationsChronologyItem'; - id: Scalars['ID']; + __typename?: "ComponentTranslationsChronologyItem"; + id: Scalars["ID"]; language?: Maybe; - title?: Maybe; - description?: Maybe; - note?: Maybe; - status: Scalars['String']; + title?: Maybe; + description?: Maybe; + note?: Maybe; + status: Scalars["String"]; }; export type ComponentTranslationsGlossaryDefinitionFiltersInput = { definition?: InputMaybe; language?: InputMaybe; status?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; + and?: InputMaybe< + Array> + >; + or?: InputMaybe< + Array> + >; not?: InputMaybe; }; export type ComponentTranslationsGlossaryDefinitionInput = { - id?: InputMaybe; - definition?: InputMaybe; - language?: InputMaybe; - status?: InputMaybe; + id?: InputMaybe; + definition?: InputMaybe; + language?: InputMaybe; + status?: InputMaybe; }; export type ComponentTranslationsGlossaryDefinition = { - __typename?: 'ComponentTranslationsGlossaryDefinition'; - id: Scalars['ID']; - definition?: Maybe; + __typename?: "ComponentTranslationsGlossaryDefinition"; + id: Scalars["ID"]; + definition?: Maybe; language?: Maybe; - status: Scalars['String']; + status: Scalars["String"]; }; export type ComponentTranslationsGlossaryItemFiltersInput = { title?: InputMaybe; language?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; + and?: InputMaybe< + Array> + >; + or?: InputMaybe< + Array> + >; not?: InputMaybe; }; export type ComponentTranslationsGlossaryItemInput = { - id?: InputMaybe; - title?: InputMaybe; - language?: InputMaybe; + id?: InputMaybe; + title?: InputMaybe; + language?: InputMaybe; }; export type ComponentTranslationsGlossaryItem = { - __typename?: 'ComponentTranslationsGlossaryItem'; - id: Scalars['ID']; - title?: Maybe; + __typename?: "ComponentTranslationsGlossaryItem"; + id: Scalars["ID"]; + title?: Maybe; language?: Maybe; }; export type ComponentTranslationsLibraryContentFiltersInput = { title?: InputMaybe; language?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; + and?: InputMaybe< + Array> + >; + or?: InputMaybe< + Array> + >; not?: InputMaybe; }; export type ComponentTranslationsLibraryContentInput = { - id?: InputMaybe; - title?: InputMaybe; - language?: InputMaybe; + id?: InputMaybe; + title?: InputMaybe; + language?: InputMaybe; }; export type ComponentTranslationsLibraryContent = { - __typename?: 'ComponentTranslationsLibraryContent'; - id: Scalars['ID']; - title?: Maybe; + __typename?: "ComponentTranslationsLibraryContent"; + id: Scalars["ID"]; + title?: Maybe; language?: Maybe; }; export type ComponentTranslationsLibraryItemsFiltersInput = { description?: InputMaybe; language?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; + and?: InputMaybe< + Array> + >; + or?: InputMaybe< + Array> + >; not?: InputMaybe; }; export type ComponentTranslationsLibraryItemsInput = { - id?: InputMaybe; - description?: InputMaybe; - language?: InputMaybe; + id?: InputMaybe; + description?: InputMaybe; + language?: InputMaybe; }; export type ComponentTranslationsLibraryItems = { - __typename?: 'ComponentTranslationsLibraryItems'; - id: Scalars['ID']; - description: Scalars['String']; + __typename?: "ComponentTranslationsLibraryItems"; + id: Scalars["ID"]; + description: Scalars["String"]; language?: Maybe; }; @@ -787,19 +830,19 @@ export type ComponentTranslationsPostsFiltersInput = { }; export type ComponentTranslationsPostsInput = { - id?: InputMaybe; - Status?: InputMaybe; - title?: InputMaybe; - excerpt?: InputMaybe; - thumbnail?: InputMaybe; + 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; + __typename?: "ComponentTranslationsPosts"; + id: Scalars["ID"]; + Status: Scalars["String"]; + title: Scalars["String"]; + excerpt?: Maybe; thumbnail?: Maybe; }; @@ -812,27 +855,26 @@ export type ComponentTranslationsScanSetFiltersInput = { }; export type ComponentTranslationsScanSetInput = { - id?: InputMaybe; - language?: InputMaybe; - pages?: InputMaybe>>; - status?: InputMaybe; + id?: InputMaybe; + language?: InputMaybe; + pages?: InputMaybe>>; + status?: InputMaybe; credits?: InputMaybe; }; export type ComponentTranslationsScanSet = { - __typename?: 'ComponentTranslationsScanSet'; - id: Scalars['ID']; + __typename?: "ComponentTranslationsScanSet"; + id: Scalars["ID"]; language?: Maybe; pages: UploadFileRelationResponseCollection; - status: Scalars['String']; + status: Scalars["String"]; credits: ComponentBasicsCredits; }; - export type ComponentTranslationsScanSetPagesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type ComponentTranslationsTextSetFiltersInput = { @@ -845,19 +887,19 @@ export type ComponentTranslationsTextSetFiltersInput = { }; export type ComponentTranslationsTextSetInput = { - id?: InputMaybe; - text?: InputMaybe; - language?: InputMaybe; - status?: InputMaybe; + id?: InputMaybe; + text?: InputMaybe; + language?: InputMaybe; + status?: InputMaybe; credits?: InputMaybe; }; export type ComponentTranslationsTextSet = { - __typename?: 'ComponentTranslationsTextSet'; - id: Scalars['ID']; - text?: Maybe; + __typename?: "ComponentTranslationsTextSet"; + id: Scalars["ID"]; + text?: Maybe; language?: Maybe; - status: Scalars['String']; + status: Scalars["String"]; credits: ComponentBasicsCredits; }; @@ -866,29 +908,33 @@ export type ComponentTranslationsVideoSetsFiltersInput = { video_url?: InputMaybe; video_embed?: InputMaybe; status?: InputMaybe; - and?: InputMaybe>>; - or?: 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; + id?: InputMaybe; + language?: InputMaybe; + video_url?: InputMaybe; + video_embed?: InputMaybe; + subfile?: InputMaybe; + status?: InputMaybe; credits?: InputMaybe; }; export type ComponentTranslationsVideoSets = { - __typename?: 'ComponentTranslationsVideoSets'; - id: Scalars['ID']; + __typename?: "ComponentTranslationsVideoSets"; + id: Scalars["ID"]; language?: Maybe; - video_url: Scalars['String']; - video_embed?: Maybe; + video_url: Scalars["String"]; + video_embed?: Maybe; subfile?: Maybe; - status: Scalars['String']; + status: Scalars["String"]; credits: ComponentBasicsCredits; }; @@ -900,73 +946,85 @@ export type ComponentTranslationsWeaponStoryStoryFiltersInput = { level_4?: InputMaybe; language?: InputMaybe; status?: InputMaybe; - and?: InputMaybe>>; - or?: 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; + 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; + __typename?: "ComponentTranslationsWeaponStoryStory"; + id: Scalars["ID"]; + description?: Maybe; + level_1?: Maybe; + level_2?: Maybe; + level_3?: Maybe; + level_4?: Maybe; language?: Maybe; - status: Scalars['String']; + status: Scalars["String"]; }; export type ComponentTranslationsWeaponStoryTypeFiltersInput = { name?: InputMaybe; language?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; + and?: InputMaybe< + Array> + >; + or?: InputMaybe< + Array> + >; not?: InputMaybe; }; export type ComponentTranslationsWeaponStoryTypeInput = { - id?: InputMaybe; - name?: InputMaybe; - language?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + language?: InputMaybe; }; export type ComponentTranslationsWeaponStoryType = { - __typename?: 'ComponentTranslationsWeaponStoryType'; - id: Scalars['ID']; - name?: Maybe; + __typename?: "ComponentTranslationsWeaponStoryType"; + id: Scalars["ID"]; + name?: Maybe; language?: Maybe; }; export type ComponentTranslationsWeaponStoryFiltersInput = { name?: InputMaybe; language?: InputMaybe; - and?: InputMaybe>>; - or?: InputMaybe>>; + and?: InputMaybe< + Array> + >; + or?: InputMaybe< + Array> + >; not?: InputMaybe; }; export type ComponentTranslationsWeaponStoryInput = { - id?: InputMaybe; - name?: InputMaybe; - language?: InputMaybe; + id?: InputMaybe; + name?: InputMaybe; + language?: InputMaybe; }; export type ComponentTranslationsWeaponStory = { - __typename?: 'ComponentTranslationsWeaponStory'; - id: Scalars['ID']; - name?: Maybe; + __typename?: "ComponentTranslationsWeaponStory"; + id: Scalars["ID"]; + name?: Maybe; language?: Maybe; }; @@ -994,62 +1052,62 @@ export type UploadFileFiltersInput = { }; 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; + 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; + __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; + createdAt?: Maybe; + updatedAt?: Maybe; }; export type UploadFileEntity = { - __typename?: 'UploadFileEntity'; - id?: Maybe; + __typename?: "UploadFileEntity"; + id?: Maybe; attributes?: Maybe; }; export type UploadFileEntityResponse = { - __typename?: 'UploadFileEntityResponse'; + __typename?: "UploadFileEntityResponse"; data?: Maybe; }; export type UploadFileEntityResponseCollection = { - __typename?: 'UploadFileEntityResponseCollection'; + __typename?: "UploadFileEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; export type UploadFileRelationResponseCollection = { - __typename?: 'UploadFileRelationResponseCollection'; + __typename?: "UploadFileRelationResponseCollection"; data: Array; }; @@ -1065,26 +1123,26 @@ export type I18NLocaleFiltersInput = { }; export type I18NLocale = { - __typename?: 'I18NLocale'; - name?: Maybe; - code?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; + __typename?: "I18NLocale"; + name?: Maybe; + code?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; export type I18NLocaleEntity = { - __typename?: 'I18NLocaleEntity'; - id?: Maybe; + __typename?: "I18NLocaleEntity"; + id?: Maybe; attributes?: Maybe; }; export type I18NLocaleEntityResponse = { - __typename?: 'I18NLocaleEntityResponse'; + __typename?: "I18NLocaleEntityResponse"; data?: Maybe; }; export type I18NLocaleEntityResponseCollection = { - __typename?: 'I18NLocaleEntityResponseCollection'; + __typename?: "I18NLocaleEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -1101,21 +1159,21 @@ export type UsersPermissionsPermissionFiltersInput = { }; export type UsersPermissionsPermission = { - __typename?: 'UsersPermissionsPermission'; - action: Scalars['String']; + __typename?: "UsersPermissionsPermission"; + action: Scalars["String"]; role?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; export type UsersPermissionsPermissionEntity = { - __typename?: 'UsersPermissionsPermissionEntity'; - id?: Maybe; + __typename?: "UsersPermissionsPermissionEntity"; + id?: Maybe; attributes?: Maybe; }; export type UsersPermissionsPermissionRelationResponseCollection = { - __typename?: 'UsersPermissionsPermissionRelationResponseCollection'; + __typename?: "UsersPermissionsPermissionRelationResponseCollection"; data: Array; }; @@ -1134,51 +1192,49 @@ export type UsersPermissionsRoleFiltersInput = { }; export type UsersPermissionsRoleInput = { - name?: InputMaybe; - description?: InputMaybe; - type?: InputMaybe; - permissions?: InputMaybe>>; - users?: InputMaybe>>; + name?: InputMaybe; + description?: InputMaybe; + type?: InputMaybe; + permissions?: InputMaybe>>; + users?: InputMaybe>>; }; export type UsersPermissionsRole = { - __typename?: 'UsersPermissionsRole'; - name: Scalars['String']; - description?: Maybe; - type?: Maybe; + __typename?: "UsersPermissionsRole"; + name: Scalars["String"]; + description?: Maybe; + type?: Maybe; permissions?: Maybe; users?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; - export type UsersPermissionsRolePermissionsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type UsersPermissionsRoleUsersArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type UsersPermissionsRoleEntity = { - __typename?: 'UsersPermissionsRoleEntity'; - id?: Maybe; + __typename?: "UsersPermissionsRoleEntity"; + id?: Maybe; attributes?: Maybe; }; export type UsersPermissionsRoleEntityResponse = { - __typename?: 'UsersPermissionsRoleEntityResponse'; + __typename?: "UsersPermissionsRoleEntityResponse"; data?: Maybe; }; export type UsersPermissionsRoleEntityResponseCollection = { - __typename?: 'UsersPermissionsRoleEntityResponseCollection'; + __typename?: "UsersPermissionsRoleEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -1202,48 +1258,48 @@ export type UsersPermissionsUserFiltersInput = { }; export type UsersPermissionsUserInput = { - username?: InputMaybe; - email?: InputMaybe; - provider?: InputMaybe; - password?: InputMaybe; - resetPasswordToken?: InputMaybe; - confirmationToken?: InputMaybe; - confirmed?: InputMaybe; - blocked?: InputMaybe; - role?: InputMaybe; + 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; + __typename?: "UsersPermissionsUser"; + username: Scalars["String"]; + email: Scalars["String"]; + provider?: Maybe; + confirmed?: Maybe; + blocked?: Maybe; role?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; export type UsersPermissionsUserEntity = { - __typename?: 'UsersPermissionsUserEntity'; - id?: Maybe; + __typename?: "UsersPermissionsUserEntity"; + id?: Maybe; attributes?: Maybe; }; export type UsersPermissionsUserEntityResponse = { - __typename?: 'UsersPermissionsUserEntityResponse'; + __typename?: "UsersPermissionsUserEntityResponse"; data?: Maybe; }; export type UsersPermissionsUserEntityResponseCollection = { - __typename?: 'UsersPermissionsUserEntityResponseCollection'; + __typename?: "UsersPermissionsUserEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; export type UsersPermissionsUserRelationResponseCollection = { - __typename?: 'UsersPermissionsUserRelationResponseCollection'; + __typename?: "UsersPermissionsUserRelationResponseCollection"; data: Array; }; @@ -1259,47 +1315,47 @@ export type AudioSetFiltersInput = { }; export type AudioSetInput = { - slug?: InputMaybe; - translations?: InputMaybe>>; - library_contents?: InputMaybe>>; + slug?: InputMaybe; + translations?: InputMaybe< + Array> + >; + library_contents?: InputMaybe>>; }; export type AudioSet = { - __typename?: 'AudioSet'; - slug: Scalars['String']; + __typename?: "AudioSet"; + slug: Scalars["String"]; translations?: Maybe>>; library_contents?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; - export type AudioSetTranslationsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type AudioSetLibrary_ContentsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type AudioSetEntity = { - __typename?: 'AudioSetEntity'; - id?: Maybe; + __typename?: "AudioSetEntity"; + id?: Maybe; attributes?: Maybe; }; export type AudioSetEntityResponse = { - __typename?: 'AudioSetEntityResponse'; + __typename?: "AudioSetEntityResponse"; data?: Maybe; }; export type AudioSetEntityResponseCollection = { - __typename?: 'AudioSetEntityResponseCollection'; + __typename?: "AudioSetEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -1315,29 +1371,29 @@ export type AudioSubtypeFiltersInput = { }; export type AudioSubtypeInput = { - slug?: InputMaybe; + slug?: InputMaybe; }; export type AudioSubtype = { - __typename?: 'AudioSubtype'; - slug: Scalars['String']; - createdAt?: Maybe; - updatedAt?: Maybe; + __typename?: "AudioSubtype"; + slug: Scalars["String"]; + createdAt?: Maybe; + updatedAt?: Maybe; }; export type AudioSubtypeEntity = { - __typename?: 'AudioSubtypeEntity'; - id?: Maybe; + __typename?: "AudioSubtypeEntity"; + id?: Maybe; attributes?: Maybe; }; export type AudioSubtypeEntityResponse = { - __typename?: 'AudioSubtypeEntityResponse'; + __typename?: "AudioSubtypeEntityResponse"; data?: Maybe; }; export type AudioSubtypeEntityResponseCollection = { - __typename?: 'AudioSubtypeEntityResponseCollection'; + __typename?: "AudioSubtypeEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -1355,39 +1411,39 @@ export type CategoryFiltersInput = { }; export type CategoryInput = { - name?: InputMaybe; - short?: InputMaybe; - series?: InputMaybe; + name?: InputMaybe; + short?: InputMaybe; + series?: InputMaybe; }; export type Category = { - __typename?: 'Category'; - name: Scalars['String']; - short: Scalars['String']; - series?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; + __typename?: "Category"; + name: Scalars["String"]; + short: Scalars["String"]; + series?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; export type CategoryEntity = { - __typename?: 'CategoryEntity'; - id?: Maybe; + __typename?: "CategoryEntity"; + id?: Maybe; attributes?: Maybe; }; export type CategoryEntityResponse = { - __typename?: 'CategoryEntityResponse'; + __typename?: "CategoryEntityResponse"; data?: Maybe; }; export type CategoryEntityResponseCollection = { - __typename?: 'CategoryEntityResponseCollection'; + __typename?: "CategoryEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; export type CategoryRelationResponseCollection = { - __typename?: 'CategoryRelationResponseCollection'; + __typename?: "CategoryRelationResponseCollection"; data: Array; }; @@ -1404,42 +1460,43 @@ export type ChronologyEraFiltersInput = { }; export type ChronologyEraInput = { - starting_year?: InputMaybe; - ending_year?: InputMaybe; - slug?: InputMaybe; - title?: InputMaybe>>; + 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']; + __typename?: "ChronologyEra"; + starting_year: Scalars["Int"]; + ending_year: Scalars["Int"]; + slug: Scalars["String"]; title?: Maybe>>; - createdAt?: Maybe; - updatedAt?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; - export type ChronologyEraTitleArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type ChronologyEraEntity = { - __typename?: 'ChronologyEraEntity'; - id?: Maybe; + __typename?: "ChronologyEraEntity"; + id?: Maybe; attributes?: Maybe; }; export type ChronologyEraEntityResponse = { - __typename?: 'ChronologyEraEntityResponse'; + __typename?: "ChronologyEraEntityResponse"; data?: Maybe; }; export type ChronologyEraEntityResponseCollection = { - __typename?: 'ChronologyEraEntityResponseCollection'; + __typename?: "ChronologyEraEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -1458,44 +1515,45 @@ export type ChronologyItemFiltersInput = { }; export type ChronologyItemInput = { - year?: InputMaybe; - month?: InputMaybe; - day?: InputMaybe; - displayed_date?: InputMaybe; - events?: InputMaybe>>; + 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; + __typename?: "ChronologyItem"; + year: Scalars["Int"]; + month?: Maybe; + day?: Maybe; + displayed_date?: Maybe; events?: Maybe>>; - createdAt?: Maybe; - updatedAt?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; - export type ChronologyItemEventsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type ChronologyItemEntity = { - __typename?: 'ChronologyItemEntity'; - id?: Maybe; + __typename?: "ChronologyItemEntity"; + id?: Maybe; attributes?: Maybe; }; export type ChronologyItemEntityResponse = { - __typename?: 'ChronologyItemEntityResponse'; + __typename?: "ChronologyItemEntityResponse"; data?: Maybe; }; export type ChronologyItemEntityResponseCollection = { - __typename?: 'ChronologyItemEntityResponseCollection'; + __typename?: "ChronologyItemEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -1511,29 +1569,29 @@ export type ContentTypeFiltersInput = { }; export type ContentTypeInput = { - slug?: InputMaybe; + slug?: InputMaybe; }; export type ContentType = { - __typename?: 'ContentType'; - slug: Scalars['String']; - createdAt?: Maybe; - updatedAt?: Maybe; + __typename?: "ContentType"; + slug: Scalars["String"]; + createdAt?: Maybe; + updatedAt?: Maybe; }; export type ContentTypeEntity = { - __typename?: 'ContentTypeEntity'; - id?: Maybe; + __typename?: "ContentTypeEntity"; + id?: Maybe; attributes?: Maybe; }; export type ContentTypeEntityResponse = { - __typename?: 'ContentTypeEntityResponse'; + __typename?: "ContentTypeEntityResponse"; data?: Maybe; }; export type ContentTypeEntityResponseCollection = { - __typename?: 'ContentTypeEntityResponseCollection'; + __typename?: "ContentTypeEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -1550,31 +1608,31 @@ export type CurrencyFiltersInput = { }; export type CurrencyInput = { - symbol?: InputMaybe; - code?: InputMaybe; + symbol?: InputMaybe; + code?: InputMaybe; }; export type Currency = { - __typename?: 'Currency'; - symbol: Scalars['String']; - code: Scalars['String']; - createdAt?: Maybe; - updatedAt?: Maybe; + __typename?: "Currency"; + symbol: Scalars["String"]; + code: Scalars["String"]; + createdAt?: Maybe; + updatedAt?: Maybe; }; export type CurrencyEntity = { - __typename?: 'CurrencyEntity'; - id?: Maybe; + __typename?: "CurrencyEntity"; + id?: Maybe; attributes?: Maybe; }; export type CurrencyEntityResponse = { - __typename?: 'CurrencyEntityResponse'; + __typename?: "CurrencyEntityResponse"; data?: Maybe; }; export type CurrencyEntityResponseCollection = { - __typename?: 'CurrencyEntityResponseCollection'; + __typename?: "CurrencyEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -1591,31 +1649,31 @@ export type GamePlatformFiltersInput = { }; export type GamePlatformInput = { - name?: InputMaybe; - short?: InputMaybe; + name?: InputMaybe; + short?: InputMaybe; }; export type GamePlatform = { - __typename?: 'GamePlatform'; - name: Scalars['String']; - short: Scalars['String']; - createdAt?: Maybe; - updatedAt?: Maybe; + __typename?: "GamePlatform"; + name: Scalars["String"]; + short: Scalars["String"]; + createdAt?: Maybe; + updatedAt?: Maybe; }; export type GamePlatformEntity = { - __typename?: 'GamePlatformEntity'; - id?: Maybe; + __typename?: "GamePlatformEntity"; + id?: Maybe; attributes?: Maybe; }; export type GamePlatformEntityResponse = { - __typename?: 'GamePlatformEntityResponse'; + __typename?: "GamePlatformEntityResponse"; data?: Maybe; }; export type GamePlatformEntityResponseCollection = { - __typename?: 'GamePlatformEntityResponseCollection'; + __typename?: "GamePlatformEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -1633,50 +1691,52 @@ export type GlossaryItemFiltersInput = { export type GlossaryItemInput = { title?: InputMaybe>>; - definitions?: InputMaybe>>; - slug?: InputMaybe; - type?: InputMaybe; - thumbnail?: InputMaybe; + definitions?: InputMaybe< + Array> + >; + slug?: InputMaybe; + type?: InputMaybe; + thumbnail?: InputMaybe; }; export type GlossaryItem = { - __typename?: 'GlossaryItem'; + __typename?: "GlossaryItem"; title?: Maybe>>; - definitions?: Maybe>>; - slug: Scalars['String']; + definitions?: Maybe< + Array> + >; + slug: Scalars["String"]; type?: Maybe; thumbnail?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; - export type GlossaryItemTitleArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type GlossaryItemDefinitionsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type GlossaryItemEntity = { - __typename?: 'GlossaryItemEntity'; - id?: Maybe; + __typename?: "GlossaryItemEntity"; + id?: Maybe; attributes?: Maybe; }; export type GlossaryItemEntityResponse = { - __typename?: 'GlossaryItemEntityResponse'; + __typename?: "GlossaryItemEntityResponse"; data?: Maybe; }; export type GlossaryItemEntityResponseCollection = { - __typename?: 'GlossaryItemEntityResponseCollection'; + __typename?: "GlossaryItemEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -1692,29 +1752,29 @@ export type GlossaryItemTypeFiltersInput = { }; export type GlossaryItemTypeInput = { - type?: InputMaybe; + type?: InputMaybe; }; export type GlossaryItemType = { - __typename?: 'GlossaryItemType'; - type: Scalars['String']; - createdAt?: Maybe; - updatedAt?: Maybe; + __typename?: "GlossaryItemType"; + type: Scalars["String"]; + createdAt?: Maybe; + updatedAt?: Maybe; }; export type GlossaryItemTypeEntity = { - __typename?: 'GlossaryItemTypeEntity'; - id?: Maybe; + __typename?: "GlossaryItemTypeEntity"; + id?: Maybe; attributes?: Maybe; }; export type GlossaryItemTypeEntityResponse = { - __typename?: 'GlossaryItemTypeEntityResponse'; + __typename?: "GlossaryItemTypeEntityResponse"; data?: Maybe; }; export type GlossaryItemTypeEntityResponseCollection = { - __typename?: 'GlossaryItemTypeEntityResponseCollection'; + __typename?: "GlossaryItemTypeEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -1732,43 +1792,48 @@ export type LanguageFiltersInput = { }; export type LanguageInput = { - name?: InputMaybe; - code?: InputMaybe; - localized_name?: InputMaybe; + 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; + __typename?: "Language"; + name: Scalars["String"]; + code: Scalars["String"]; + localized_name: Scalars["String"]; + createdAt?: Maybe; + updatedAt?: Maybe; }; export type LanguageEntity = { - __typename?: 'LanguageEntity'; - id?: Maybe; + __typename?: "LanguageEntity"; + id?: Maybe; attributes?: Maybe; }; export type LanguageEntityResponse = { - __typename?: 'LanguageEntityResponse'; + __typename?: "LanguageEntityResponse"; data?: Maybe; }; export type LanguageEntityResponseCollection = { - __typename?: 'LanguageEntityResponseCollection'; + __typename?: "LanguageEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; export type LanguageRelationResponseCollection = { - __typename?: 'LanguageRelationResponseCollection'; + __typename?: "LanguageRelationResponseCollection"; data: Array; }; -export type LibraryContentRangeDynamicZone = ComponentRangePageRange | ComponentRangeTimeRange | ComponentRangeGameAspect | ComponentRangeOther | Error; +export type LibraryContentRangeDynamicZone = + | ComponentRangePageRange + | ComponentRangeTimeRange + | ComponentRangeGameAspect + | ComponentRangeOther + | Error; export type LibraryContentFiltersInput = { id?: InputMaybe; @@ -1787,20 +1852,22 @@ export type LibraryContentFiltersInput = { }; export type LibraryContentInput = { - slug?: InputMaybe; - title?: InputMaybe>>; - library_item?: InputMaybe; - scan_set?: InputMaybe; - text_set?: InputMaybe; - range?: InputMaybe>; - audio_set?: InputMaybe; - video_set?: InputMaybe; - type?: InputMaybe; + 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']; + __typename?: "LibraryContent"; + slug: Scalars["String"]; title?: Maybe>>; library_item?: Maybe; scan_set?: Maybe; @@ -1809,40 +1876,44 @@ export type LibraryContent = { audio_set?: Maybe; video_set?: Maybe; type?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; - export type LibraryContentTitleArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type LibraryContentEntity = { - __typename?: 'LibraryContentEntity'; - id?: Maybe; + __typename?: "LibraryContentEntity"; + id?: Maybe; attributes?: Maybe; }; export type LibraryContentEntityResponse = { - __typename?: 'LibraryContentEntityResponse'; + __typename?: "LibraryContentEntityResponse"; data?: Maybe; }; export type LibraryContentEntityResponseCollection = { - __typename?: 'LibraryContentEntityResponseCollection'; + __typename?: "LibraryContentEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; export type LibraryContentRelationResponseCollection = { - __typename?: 'LibraryContentRelationResponseCollection'; + __typename?: "LibraryContentRelationResponseCollection"; data: Array; }; -export type LibraryItemMetadataDynamicZone = ComponentMetadataBooks | ComponentMetadataVideo | ComponentMetadataGame | ComponentMetadataAudio | Error; +export type LibraryItemMetadataDynamicZone = + | ComponentMetadataBooks + | ComponentMetadataVideo + | ComponentMetadataGame + | ComponentMetadataAudio + | Error; export type LibraryItemFiltersInput = { id?: InputMaybe; @@ -1862,31 +1933,33 @@ export type LibraryItemFiltersInput = { }; export type LibraryItemInput = { - title?: InputMaybe; - subtitle?: InputMaybe; - slug?: InputMaybe; - thumbnail?: InputMaybe; - subitems?: InputMaybe>>; - subitem_of?: InputMaybe>>; - root_item?: InputMaybe; + title?: InputMaybe; + subtitle?: InputMaybe; + slug?: InputMaybe; + thumbnail?: InputMaybe; + subitems?: InputMaybe>>; + subitem_of?: InputMaybe>>; + root_item?: InputMaybe; price?: InputMaybe; - variants?: InputMaybe; - metadata?: InputMaybe>; + variants?: InputMaybe; + metadata?: InputMaybe>; size?: InputMaybe; - contents?: InputMaybe>>; + contents?: InputMaybe>>; release_date?: InputMaybe; - descriptions?: InputMaybe>>; + descriptions?: InputMaybe< + Array> + >; }; export type LibraryItem = { - __typename?: 'LibraryItem'; - title: Scalars['String']; - subtitle?: Maybe; - slug: Scalars['String']; + __typename?: "LibraryItem"; + title: Scalars["String"]; + subtitle?: Maybe; + slug: Scalars["String"]; thumbnail?: Maybe; subitems?: Maybe; subitem_of?: Maybe; - root_item: Scalars['Boolean']; + root_item: Scalars["Boolean"]; price?: Maybe; variants?: Maybe; metadata?: Maybe>>; @@ -1894,57 +1967,53 @@ export type LibraryItem = { contents?: Maybe; release_date?: Maybe; descriptions?: Maybe>>; - createdAt?: Maybe; - updatedAt?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; - export type LibraryItemSubitemsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type LibraryItemSubitem_OfArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type LibraryItemContentsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type LibraryItemDescriptionsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type LibraryItemEntity = { - __typename?: 'LibraryItemEntity'; - id?: Maybe; + __typename?: "LibraryItemEntity"; + id?: Maybe; attributes?: Maybe; }; export type LibraryItemEntityResponse = { - __typename?: 'LibraryItemEntityResponse'; + __typename?: "LibraryItemEntityResponse"; data?: Maybe; }; export type LibraryItemEntityResponseCollection = { - __typename?: 'LibraryItemEntityResponseCollection'; + __typename?: "LibraryItemEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; export type LibraryItemRelationResponseCollection = { - __typename?: 'LibraryItemRelationResponseCollection'; + __typename?: "LibraryItemRelationResponseCollection"; data: Array; }; @@ -1959,36 +2028,35 @@ export type LibraryVariantFiltersInput = { }; export type LibraryVariantInput = { - items?: InputMaybe>>; + items?: InputMaybe>>; }; export type LibraryVariant = { - __typename?: 'LibraryVariant'; + __typename?: "LibraryVariant"; items?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; - export type LibraryVariantItemsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type LibraryVariantEntity = { - __typename?: 'LibraryVariantEntity'; - id?: Maybe; + __typename?: "LibraryVariantEntity"; + id?: Maybe; attributes?: Maybe; }; export type LibraryVariantEntityResponse = { - __typename?: 'LibraryVariantEntityResponse'; + __typename?: "LibraryVariantEntityResponse"; data?: Maybe; }; export type LibraryVariantEntityResponseCollection = { - __typename?: 'LibraryVariantEntityResponseCollection'; + __typename?: "LibraryVariantEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -2007,58 +2075,55 @@ export type PostFiltersInput = { }; export type PostInput = { - authors?: InputMaybe>>; - slug?: InputMaybe; - categories?: InputMaybe>>; + authors?: InputMaybe>>; + slug?: InputMaybe; + categories?: InputMaybe>>; translations?: InputMaybe>>; - publishedAt?: InputMaybe; + publishedAt?: InputMaybe; }; export type Post = { - __typename?: 'Post'; + __typename?: "Post"; authors?: Maybe; - slug: Scalars['String']; + slug: Scalars["String"]; categories?: Maybe; translations?: Maybe>>; - createdAt?: Maybe; - updatedAt?: Maybe; - publishedAt?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; + publishedAt?: Maybe; }; - export type PostAuthorsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type PostCategoriesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type PostTranslationsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type PostEntity = { - __typename?: 'PostEntity'; - id?: Maybe; + __typename?: "PostEntity"; + id?: Maybe; attributes?: Maybe; }; export type PostEntityResponse = { - __typename?: 'PostEntityResponse'; + __typename?: "PostEntityResponse"; data?: Maybe; }; export type PostEntityResponseCollection = { - __typename?: 'PostEntityResponseCollection'; + __typename?: "PostEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -2077,50 +2142,49 @@ export type RecorderFiltersInput = { }; export type RecorderInput = { - username?: InputMaybe; - anonymize?: InputMaybe; - anonymous_code?: InputMaybe; - avatar?: InputMaybe; - languages?: InputMaybe>>; + 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']; + __typename?: "Recorder"; + username: Scalars["String"]; + anonymize: Scalars["Boolean"]; + anonymous_code: Scalars["String"]; avatar?: Maybe; languages?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; - export type RecorderLanguagesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type RecorderEntity = { - __typename?: 'RecorderEntity'; - id?: Maybe; + __typename?: "RecorderEntity"; + id?: Maybe; attributes?: Maybe; }; export type RecorderEntityResponse = { - __typename?: 'RecorderEntityResponse'; + __typename?: "RecorderEntityResponse"; data?: Maybe; }; export type RecorderEntityResponseCollection = { - __typename?: 'RecorderEntityResponseCollection'; + __typename?: "RecorderEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; export type RecorderRelationResponseCollection = { - __typename?: 'RecorderRelationResponseCollection'; + __typename?: "RecorderRelationResponseCollection"; data: Array; }; @@ -2136,45 +2200,49 @@ export type ScanSetFiltersInput = { }; export type ScanSetInput = { - slug?: InputMaybe; - translations?: InputMaybe>>; - library_content?: InputMaybe; + slug?: InputMaybe; + translations?: InputMaybe< + Array> + >; + library_content?: InputMaybe; }; export type ScanSet = { - __typename?: 'ScanSet'; - slug: Scalars['String']; + __typename?: "ScanSet"; + slug: Scalars["String"]; translations?: Maybe>>; library_content?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; - export type ScanSetTranslationsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type ScanSetEntity = { - __typename?: 'ScanSetEntity'; - id?: Maybe; + __typename?: "ScanSetEntity"; + id?: Maybe; attributes?: Maybe; }; export type ScanSetEntityResponse = { - __typename?: 'ScanSetEntityResponse'; + __typename?: "ScanSetEntityResponse"; data?: Maybe; }; export type ScanSetEntityResponseCollection = { - __typename?: 'ScanSetEntityResponseCollection'; + __typename?: "ScanSetEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; -export type SourceSourceDynamicZone = ComponentSourceUrlSource | ComponentSourceLibraryText | Error; +export type SourceSourceDynamicZone = + | ComponentSourceUrlSource + | ComponentSourceLibraryText + | Error; export type SourceFiltersInput = { id?: InputMaybe; @@ -2187,31 +2255,31 @@ export type SourceFiltersInput = { }; export type SourceInput = { - source?: InputMaybe>; - name?: InputMaybe; + source?: InputMaybe>; + name?: InputMaybe; }; export type Source = { - __typename?: 'Source'; + __typename?: "Source"; source: Array>; - name: Scalars['String']; - createdAt?: Maybe; - updatedAt?: Maybe; + name: Scalars["String"]; + createdAt?: Maybe; + updatedAt?: Maybe; }; export type SourceEntity = { - __typename?: 'SourceEntity'; - id?: Maybe; + __typename?: "SourceEntity"; + id?: Maybe; attributes?: Maybe; }; export type SourceEntityResponse = { - __typename?: 'SourceEntityResponse'; + __typename?: "SourceEntityResponse"; data?: Maybe; }; export type SourceEntityResponseCollection = { - __typename?: 'SourceEntityResponseCollection'; + __typename?: "SourceEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -2228,47 +2296,47 @@ export type TextSetFiltersInput = { }; export type TextSetInput = { - slug?: InputMaybe; - translations?: InputMaybe>>; - library_contents?: InputMaybe>>; + slug?: InputMaybe; + translations?: InputMaybe< + Array> + >; + library_contents?: InputMaybe>>; }; export type TextSet = { - __typename?: 'TextSet'; - slug: Scalars['String']; + __typename?: "TextSet"; + slug: Scalars["String"]; translations?: Maybe>>; library_contents?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; - export type TextSetTranslationsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type TextSetLibrary_ContentsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type TextSetEntity = { - __typename?: 'TextSetEntity'; - id?: Maybe; + __typename?: "TextSetEntity"; + id?: Maybe; attributes?: Maybe; }; export type TextSetEntityResponse = { - __typename?: 'TextSetEntityResponse'; + __typename?: "TextSetEntityResponse"; data?: Maybe; }; export type TextSetEntityResponseCollection = { - __typename?: 'TextSetEntityResponseCollection'; + __typename?: "TextSetEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -2284,29 +2352,29 @@ export type TextualSubtypeFiltersInput = { }; export type TextualSubtypeInput = { - slug?: InputMaybe; + slug?: InputMaybe; }; export type TextualSubtype = { - __typename?: 'TextualSubtype'; - slug: Scalars['String']; - createdAt?: Maybe; - updatedAt?: Maybe; + __typename?: "TextualSubtype"; + slug: Scalars["String"]; + createdAt?: Maybe; + updatedAt?: Maybe; }; export type TextualSubtypeEntity = { - __typename?: 'TextualSubtypeEntity'; - id?: Maybe; + __typename?: "TextualSubtypeEntity"; + id?: Maybe; attributes?: Maybe; }; export type TextualSubtypeEntityResponse = { - __typename?: 'TextualSubtypeEntityResponse'; + __typename?: "TextualSubtypeEntityResponse"; data?: Maybe; }; export type TextualSubtypeEntityResponseCollection = { - __typename?: 'TextualSubtypeEntityResponseCollection'; + __typename?: "TextualSubtypeEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -2323,47 +2391,47 @@ export type VideoSetFiltersInput = { }; export type VideoSetInput = { - slug?: InputMaybe; - translations?: InputMaybe>>; - library_contents?: InputMaybe>>; + slug?: InputMaybe; + translations?: InputMaybe< + Array> + >; + library_contents?: InputMaybe>>; }; export type VideoSet = { - __typename?: 'VideoSet'; - slug: Scalars['String']; + __typename?: "VideoSet"; + slug: Scalars["String"]; translations?: Maybe>>; library_contents?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; - export type VideoSetTranslationsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type VideoSetLibrary_ContentsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type VideoSetEntity = { - __typename?: 'VideoSetEntity'; - id?: Maybe; + __typename?: "VideoSetEntity"; + id?: Maybe; attributes?: Maybe; }; export type VideoSetEntityResponse = { - __typename?: 'VideoSetEntityResponse'; + __typename?: "VideoSetEntityResponse"; data?: Maybe; }; export type VideoSetEntityResponseCollection = { - __typename?: 'VideoSetEntityResponseCollection'; + __typename?: "VideoSetEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -2382,58 +2450,58 @@ export type WeaponStoryFiltersInput = { export type WeaponStoryInput = { name?: InputMaybe>>; - slug?: InputMaybe; - stories?: InputMaybe>>; - type?: InputMaybe; - thumbnail?: InputMaybe; - weapon_group?: InputMaybe; + slug?: InputMaybe; + stories?: InputMaybe< + Array> + >; + type?: InputMaybe; + thumbnail?: InputMaybe; + weapon_group?: InputMaybe; }; export type WeaponStory = { - __typename?: 'WeaponStory'; + __typename?: "WeaponStory"; name?: Maybe>>; - slug?: Maybe; + slug?: Maybe; stories?: Maybe>>; type?: Maybe; thumbnail?: Maybe; weapon_group?: Maybe; - createdAt?: Maybe; - updatedAt?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; - export type WeaponStoryNameArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type WeaponStoryStoriesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type WeaponStoryEntity = { - __typename?: 'WeaponStoryEntity'; - id?: Maybe; + __typename?: "WeaponStoryEntity"; + id?: Maybe; attributes?: Maybe; }; export type WeaponStoryEntityResponse = { - __typename?: 'WeaponStoryEntityResponse'; + __typename?: "WeaponStoryEntityResponse"; data?: Maybe; }; export type WeaponStoryEntityResponseCollection = { - __typename?: 'WeaponStoryEntityResponseCollection'; + __typename?: "WeaponStoryEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; export type WeaponStoryRelationResponseCollection = { - __typename?: 'WeaponStoryRelationResponseCollection'; + __typename?: "WeaponStoryRelationResponseCollection"; data: Array; }; @@ -2449,38 +2517,37 @@ export type WeaponStoryGroupFiltersInput = { }; export type WeaponStoryGroupInput = { - weapons?: InputMaybe>>; - slug?: InputMaybe; + weapons?: InputMaybe>>; + slug?: InputMaybe; }; export type WeaponStoryGroup = { - __typename?: 'WeaponStoryGroup'; + __typename?: "WeaponStoryGroup"; weapons?: Maybe; - slug: Scalars['String']; - createdAt?: Maybe; - updatedAt?: Maybe; + slug: Scalars["String"]; + createdAt?: Maybe; + updatedAt?: Maybe; }; - export type WeaponStoryGroupWeaponsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type WeaponStoryGroupEntity = { - __typename?: 'WeaponStoryGroupEntity'; - id?: Maybe; + __typename?: "WeaponStoryGroupEntity"; + id?: Maybe; attributes?: Maybe; }; export type WeaponStoryGroupEntityResponse = { - __typename?: 'WeaponStoryGroupEntityResponse'; + __typename?: "WeaponStoryGroupEntityResponse"; data?: Maybe; }; export type WeaponStoryGroupEntityResponseCollection = { - __typename?: 'WeaponStoryGroupEntityResponseCollection'; + __typename?: "WeaponStoryGroupEntityResponseCollection"; data: Array; meta: ResponseCollectionMeta; }; @@ -2496,115 +2563,182 @@ export type WeaponStoryTypeFiltersInput = { }; export type WeaponStoryTypeInput = { - slug?: InputMaybe; - translations?: InputMaybe>>; + slug?: InputMaybe; + translations?: InputMaybe< + Array> + >; }; export type WeaponStoryType = { - __typename?: 'WeaponStoryType'; - slug: Scalars['String']; + __typename?: "WeaponStoryType"; + slug: Scalars["String"]; translations?: Maybe>>; - createdAt?: Maybe; - updatedAt?: Maybe; + createdAt?: Maybe; + updatedAt?: Maybe; }; - export type WeaponStoryTypeTranslationsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type WeaponStoryTypeEntity = { - __typename?: 'WeaponStoryTypeEntity'; - id?: Maybe; + __typename?: "WeaponStoryTypeEntity"; + id?: Maybe; attributes?: Maybe; }; export type WeaponStoryTypeEntityResponse = { - __typename?: 'WeaponStoryTypeEntityResponse'; + __typename?: "WeaponStoryTypeEntityResponse"; data?: Maybe; }; export type WeaponStoryTypeEntityResponseCollection = { - __typename?: '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 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; + name?: InputMaybe; + alternativeText?: InputMaybe; + caption?: InputMaybe; }; export type UsersPermissionsMe = { - __typename?: 'UsersPermissionsMe'; - id: Scalars['ID']; - username: Scalars['String']; - email?: Maybe; - confirmed?: Maybe; - blocked?: Maybe; + __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; + __typename?: "UsersPermissionsMeRole"; + id: Scalars["ID"]; + name: Scalars["String"]; + description?: Maybe; + type?: Maybe; }; export type UsersPermissionsRegisterInput = { - username: Scalars['String']; - email: Scalars['String']; - password: Scalars['String']; + username: Scalars["String"]; + email: Scalars["String"]; + password: Scalars["String"]; }; export type UsersPermissionsLoginInput = { - identifier: Scalars['String']; - password: Scalars['String']; - provider?: Scalars['String']; + identifier: Scalars["String"]; + password: Scalars["String"]; + provider?: Scalars["String"]; }; export type UsersPermissionsPasswordPayload = { - __typename?: 'UsersPermissionsPasswordPayload'; - ok: Scalars['Boolean']; + __typename?: "UsersPermissionsPasswordPayload"; + ok: Scalars["Boolean"]; }; export type UsersPermissionsLoginPayload = { - __typename?: 'UsersPermissionsLoginPayload'; - jwt?: Maybe; + __typename?: "UsersPermissionsLoginPayload"; + jwt?: Maybe; user: UsersPermissionsMe; }; export type UsersPermissionsCreateRolePayload = { - __typename?: 'UsersPermissionsCreateRolePayload'; - ok: Scalars['Boolean']; + __typename?: "UsersPermissionsCreateRolePayload"; + ok: Scalars["Boolean"]; }; export type UsersPermissionsUpdateRolePayload = { - __typename?: 'UsersPermissionsUpdateRolePayload'; - ok: Scalars['Boolean']; + __typename?: "UsersPermissionsUpdateRolePayload"; + ok: Scalars["Boolean"]; }; export type UsersPermissionsDeleteRolePayload = { - __typename?: 'UsersPermissionsDeleteRolePayload'; - ok: Scalars['Boolean']; + __typename?: "UsersPermissionsDeleteRolePayload"; + ok: Scalars["Boolean"]; }; export type PaginationArg = { - page?: InputMaybe; - pageSize?: InputMaybe; - start?: InputMaybe; - limit?: InputMaybe; + page?: InputMaybe; + pageSize?: InputMaybe; + start?: InputMaybe; + limit?: InputMaybe; }; export type Query = { - __typename?: 'Query'; + __typename?: "Query"; uploadFile?: Maybe; uploadFiles?: Maybe; i18NLocale?: Maybe; @@ -2664,345 +2798,289 @@ export type Query = { me?: Maybe; }; - export type QueryUploadFileArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryUploadFilesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryI18NLocaleArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryI18NLocalesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryUsersPermissionsRoleArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryUsersPermissionsRolesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryUsersPermissionsUserArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryUsersPermissionsUsersArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryAudioSetArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryAudioSetsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryAudioSubtypeArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryAudioSubtypesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryCategoryArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryCategoriesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryChronologyEraArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryChronologyErasArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryChronologyItemArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryChronologyItemsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryContentTypeArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryContentTypesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryCurrencyArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryCurrenciesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryGamePlatformArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryGamePlatformsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryGlossaryItemArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryGlossaryItemsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryGlossaryItemTypeArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryGlossaryItemTypesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryLanguageArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryLanguagesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryLibraryContentArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryLibraryContentsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryLibraryItemArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryLibraryItemsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryLibraryVariantArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryLibraryVariantsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryPostArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryPostsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; publicationState?: InputMaybe; }; - export type QueryRecorderArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryRecordersArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryScanSetArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryScanSetsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QuerySourceArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QuerySourcesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryTextSetArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryTextSetsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryTextualSubtypeArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryTextualSubtypesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryVideoSetArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryVideoSetsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryWeaponStoryArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryWeaponStoriesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryWeaponStoryGroupArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryWeaponStoryGroupsArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; - export type QueryWeaponStoryTypeArgs = { - id?: InputMaybe; + id?: InputMaybe; }; - export type QueryWeaponStoryTypesArgs = { filters?: InputMaybe; pagination?: InputMaybe; - sort?: InputMaybe>>; + sort?: InputMaybe>>; }; export type Mutation = { - __typename?: 'Mutation'; + __typename?: "Mutation"; createUploadFile?: Maybe; updateUploadFile?: Maybe; deleteUploadFile?: Maybe; @@ -3095,489 +3173,616 @@ export type Mutation = { emailConfirmation?: Maybe; }; - export type MutationCreateUploadFileArgs = { data: UploadFileInput; }; - export type MutationUpdateUploadFileArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: UploadFileInput; }; - export type MutationDeleteUploadFileArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateAudioSetArgs = { data: AudioSetInput; }; - export type MutationUpdateAudioSetArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: AudioSetInput; }; - export type MutationDeleteAudioSetArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateAudioSubtypeArgs = { data: AudioSubtypeInput; }; - export type MutationUpdateAudioSubtypeArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: AudioSubtypeInput; }; - export type MutationDeleteAudioSubtypeArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateCategoryArgs = { data: CategoryInput; }; - export type MutationUpdateCategoryArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: CategoryInput; }; - export type MutationDeleteCategoryArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateChronologyEraArgs = { data: ChronologyEraInput; }; - export type MutationUpdateChronologyEraArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: ChronologyEraInput; }; - export type MutationDeleteChronologyEraArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateChronologyItemArgs = { data: ChronologyItemInput; }; - export type MutationUpdateChronologyItemArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: ChronologyItemInput; }; - export type MutationDeleteChronologyItemArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateContentTypeArgs = { data: ContentTypeInput; }; - export type MutationUpdateContentTypeArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: ContentTypeInput; }; - export type MutationDeleteContentTypeArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateCurrencyArgs = { data: CurrencyInput; }; - export type MutationUpdateCurrencyArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: CurrencyInput; }; - export type MutationDeleteCurrencyArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateGamePlatformArgs = { data: GamePlatformInput; }; - export type MutationUpdateGamePlatformArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: GamePlatformInput; }; - export type MutationDeleteGamePlatformArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateGlossaryItemArgs = { data: GlossaryItemInput; }; - export type MutationUpdateGlossaryItemArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: GlossaryItemInput; }; - export type MutationDeleteGlossaryItemArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateGlossaryItemTypeArgs = { data: GlossaryItemTypeInput; }; - export type MutationUpdateGlossaryItemTypeArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: GlossaryItemTypeInput; }; - export type MutationDeleteGlossaryItemTypeArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateLanguageArgs = { data: LanguageInput; }; - export type MutationUpdateLanguageArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: LanguageInput; }; - export type MutationDeleteLanguageArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateLibraryContentArgs = { data: LibraryContentInput; }; - export type MutationUpdateLibraryContentArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: LibraryContentInput; }; - export type MutationDeleteLibraryContentArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateLibraryItemArgs = { data: LibraryItemInput; }; - export type MutationUpdateLibraryItemArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: LibraryItemInput; }; - export type MutationDeleteLibraryItemArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateLibraryVariantArgs = { data: LibraryVariantInput; }; - export type MutationUpdateLibraryVariantArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: LibraryVariantInput; }; - export type MutationDeleteLibraryVariantArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreatePostArgs = { data: PostInput; }; - export type MutationUpdatePostArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: PostInput; }; - export type MutationDeletePostArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateRecorderArgs = { data: RecorderInput; }; - export type MutationUpdateRecorderArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: RecorderInput; }; - export type MutationDeleteRecorderArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateScanSetArgs = { data: ScanSetInput; }; - export type MutationUpdateScanSetArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: ScanSetInput; }; - export type MutationDeleteScanSetArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateSourceArgs = { data: SourceInput; }; - export type MutationUpdateSourceArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: SourceInput; }; - export type MutationDeleteSourceArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateTextSetArgs = { data: TextSetInput; }; - export type MutationUpdateTextSetArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: TextSetInput; }; - export type MutationDeleteTextSetArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateTextualSubtypeArgs = { data: TextualSubtypeInput; }; - export type MutationUpdateTextualSubtypeArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: TextualSubtypeInput; }; - export type MutationDeleteTextualSubtypeArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateVideoSetArgs = { data: VideoSetInput; }; - export type MutationUpdateVideoSetArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: VideoSetInput; }; - export type MutationDeleteVideoSetArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateWeaponStoryArgs = { data: WeaponStoryInput; }; - export type MutationUpdateWeaponStoryArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: WeaponStoryInput; }; - export type MutationDeleteWeaponStoryArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateWeaponStoryGroupArgs = { data: WeaponStoryGroupInput; }; - export type MutationUpdateWeaponStoryGroupArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: WeaponStoryGroupInput; }; - export type MutationDeleteWeaponStoryGroupArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateWeaponStoryTypeArgs = { data: WeaponStoryTypeInput; }; - export type MutationUpdateWeaponStoryTypeArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: WeaponStoryTypeInput; }; - export type MutationDeleteWeaponStoryTypeArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationUploadArgs = { - refId?: InputMaybe; - ref?: InputMaybe; - field?: InputMaybe; + refId?: InputMaybe; + ref?: InputMaybe; + field?: InputMaybe; info?: InputMaybe; - file: Scalars['Upload']; + file: Scalars["Upload"]; }; - export type MutationMultipleUploadArgs = { - refId?: InputMaybe; - ref?: InputMaybe; - field?: InputMaybe; - files: Array>; + refId?: InputMaybe; + ref?: InputMaybe; + field?: InputMaybe; + files: Array>; }; - export type MutationUpdateFileInfoArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; info?: InputMaybe; }; - export type MutationRemoveFileArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateUsersPermissionsRoleArgs = { data: UsersPermissionsRoleInput; }; - export type MutationUpdateUsersPermissionsRoleArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: UsersPermissionsRoleInput; }; - export type MutationDeleteUsersPermissionsRoleArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationCreateUsersPermissionsUserArgs = { data: UsersPermissionsUserInput; }; - export type MutationUpdateUsersPermissionsUserArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; data: UsersPermissionsUserInput; }; - export type MutationDeleteUsersPermissionsUserArgs = { - id: Scalars['ID']; + id: Scalars["ID"]; }; - export type MutationLoginArgs = { input: UsersPermissionsLoginInput; }; - export type MutationRegisterArgs = { input: UsersPermissionsRegisterInput; }; - export type MutationForgotPasswordArgs = { - email: Scalars['String']; + email: Scalars["String"]; }; - export type MutationResetPasswordArgs = { - password: Scalars['String']; - passwordConfirmation: Scalars['String']; - code: Scalars['String']; + password: Scalars["String"]; + passwordConfirmation: Scalars["String"]; + code: Scalars["String"]; }; - export type MutationEmailConfirmationArgs = { - confirmation: Scalars['String']; + 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; + }>; + } + | null + | undefined; +}; + +export type GetChronologyItemsQueryVariables = Exact<{ + language_code?: InputMaybe; +}>; + +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; + }>; + } + | null + | undefined; +}; + +export type GetLibraryItemsPreviewQueryVariables = Exact<{ + language_code?: InputMaybe; +}>; + +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; + }>; + } + | null + | undefined; }; diff --git a/src/graphql/operations.ts b/src/graphql/operations.ts new file mode 100644 index 0000000..810bdfc --- /dev/null +++ b/src/graphql/operations.ts @@ -0,0 +1,63 @@ +import { + GetChronologyItemsQuery, + GetChronologyItemsQueryVariables, + GetErasQuery, + GetErasQueryVariables, + GetLibraryItemsPreviewQuery, + GetLibraryItemsPreviewQueryVariables, +} from "graphql/operations-types"; + +const graphQL = 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; +}; + +function getQueryFromOperations(queryName: string): string { + const fs = require("fs"); + const operations: string = fs.readFileSync( + "./src/graphql/operation.graphql", + "utf8" + ); + let startingIndex = -1; + let endingIndex = -1; + const lines = operations.split("\n"); + lines.map((line, index) => { + if (startingIndex === -1) { + if (line.startsWith(`query ${queryName}`)) startingIndex = index; + } else if (endingIndex === -1) { + if (line.startsWith("query")) endingIndex = index; + } + }); + return lines.slice(startingIndex, endingIndex).join("\n"); +} + +export async function getEras( + variables: GetErasQueryVariables +): Promise { + const query = getQueryFromOperations("getEras"); + return await graphQL(query, JSON.stringify(variables)); +} + +export async function getChronologyItems( + variables: GetChronologyItemsQueryVariables +): Promise { + const query = getQueryFromOperations("getChronologyItems"); + return await graphQL(query, JSON.stringify(variables)); +} + +export async function getLibraryItemsPreview( + variables: GetLibraryItemsPreviewQueryVariables +): Promise { + const query = getQueryFromOperations("getLibraryItemsPreview"); + return await graphQL(query, JSON.stringify(variables)); +} diff --git a/src/graphql/schema.graphql b/src/graphql/schema.graphql new file mode 100644 index 0000000..3d2c72c --- /dev/null +++ b/src/graphql/schema.graphql @@ -0,0 +1,2713 @@ +# The `JSON` scalar type represents JSON values as specified by [ECMA-404](http://www.ecma-international.org/publications/files/ECMA-ST/ECMA-404.pdf). +scalar JSON + +# A date-time string at UTC, such as 2007-12-03T10:15:30Z, compliant with the `date-time` format outlined in section 5.6 of the RFC 3339 profile of the ISO 8601 standard for representation of dates and times using the Gregorian calendar. +scalar DateTime + +# A time string with format HH:mm:ss.SSS +scalar Time + +# The `Upload` scalar type represents a file upload. +scalar Upload + +type Error { + code: String! + message: String +} + +type Pagination { + total: Int! + page: Int! + pageSize: Int! + pageCount: Int! +} + +type ResponseCollectionMeta { + pagination: Pagination! +} + +enum PublicationState { + LIVE + PREVIEW +} + +input IDFilterInput { + and: [ID] + or: [ID] + not: IDFilterInput + eq: ID + ne: ID + startsWith: ID + endsWith: ID + contains: ID + notContains: ID + containsi: ID + notContainsi: ID + gt: ID + gte: ID + lt: ID + lte: ID + null: Boolean + notNull: Boolean + in: [ID] + notIn: [ID] + between: [ID] +} + +input BooleanFilterInput { + and: [Boolean] + or: [Boolean] + not: BooleanFilterInput + eq: Boolean + ne: Boolean + startsWith: Boolean + endsWith: Boolean + contains: Boolean + notContains: Boolean + containsi: Boolean + notContainsi: Boolean + gt: Boolean + gte: Boolean + lt: Boolean + lte: Boolean + null: Boolean + notNull: Boolean + in: [Boolean] + notIn: [Boolean] + between: [Boolean] +} + +input StringFilterInput { + and: [String] + or: [String] + not: StringFilterInput + eq: String + ne: String + startsWith: String + endsWith: String + contains: String + notContains: String + containsi: String + notContainsi: String + gt: String + gte: String + lt: String + lte: String + null: Boolean + notNull: Boolean + in: [String] + notIn: [String] + between: [String] +} + +input IntFilterInput { + and: [Int] + or: [Int] + not: IntFilterInput + eq: Int + ne: Int + startsWith: Int + endsWith: Int + contains: Int + notContains: Int + containsi: Int + notContainsi: Int + gt: Int + gte: Int + lt: Int + lte: Int + null: Boolean + notNull: Boolean + in: [Int] + notIn: [Int] + between: [Int] +} + +input FloatFilterInput { + and: [Float] + or: [Float] + not: FloatFilterInput + eq: Float + ne: Float + startsWith: Float + endsWith: Float + contains: Float + notContains: Float + containsi: Float + notContainsi: Float + gt: Float + gte: Float + lt: Float + lte: Float + null: Boolean + notNull: Boolean + in: [Float] + notIn: [Float] + between: [Float] +} + +input DateTimeFilterInput { + and: [DateTime] + or: [DateTime] + not: DateTimeFilterInput + eq: DateTime + ne: DateTime + startsWith: DateTime + endsWith: DateTime + contains: DateTime + notContains: DateTime + containsi: DateTime + notContainsi: DateTime + gt: DateTime + gte: DateTime + lt: DateTime + lte: DateTime + null: Boolean + notNull: Boolean + in: [DateTime] + notIn: [DateTime] + between: [DateTime] +} + +input JSONFilterInput { + and: [JSON] + or: [JSON] + not: JSONFilterInput + eq: JSON + ne: JSON + startsWith: JSON + endsWith: JSON + contains: JSON + notContains: JSON + containsi: JSON + notContainsi: JSON + gt: JSON + gte: JSON + lt: JSON + lte: JSON + null: Boolean + notNull: Boolean + in: [JSON] + notIn: [JSON] + between: [JSON] +} + +input ComponentBasicsCreditsInput { + id: ID + source_language: ID + transcribers: [ID] + translators: [ID] + proofreaders: [ID] + scanners: [ID] + cleaners: [ID] + typesetters: [ID] + subbers: [ID] + footnotes: String +} + +type ComponentBasicsCredits { + id: ID! + source_language: LanguageEntityResponse + transcribers( + filters: RecorderFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): RecorderRelationResponseCollection + translators( + filters: RecorderFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): RecorderRelationResponseCollection + proofreaders( + filters: RecorderFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): RecorderRelationResponseCollection + scanners( + filters: RecorderFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): RecorderRelationResponseCollection + cleaners( + filters: RecorderFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): RecorderRelationResponseCollection + typesetters( + filters: RecorderFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): RecorderRelationResponseCollection + subbers( + filters: RecorderFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): RecorderRelationResponseCollection + footnotes: String +} + +input ComponentBasicsDatepickerInput { + id: ID + year: Int + month: Int + day: Int +} + +type ComponentBasicsDatepicker { + id: ID! + year: Int + month: Int + day: Int +} + +input ComponentBasicsPriceInput { + id: ID + amount: Float + currency: ID +} + +type ComponentBasicsPrice { + id: ID! + amount: Float + currency: CurrencyEntityResponse +} + +input ComponentBasicsSizeInput { + id: ID + width: Int + height: Int + thickness: Int +} + +type ComponentBasicsSize { + id: ID! + width: Int + height: Int + thickness: Int +} + +input ComponentCollectionsComponentEventFiltersInput { + source: SourceFiltersInput + and: [ComponentCollectionsComponentEventFiltersInput] + or: [ComponentCollectionsComponentEventFiltersInput] + not: ComponentCollectionsComponentEventFiltersInput +} + +input ComponentCollectionsComponentEventInput { + id: ID + translations: [ComponentTranslationsChronologyItemInput] + source: ID +} + +type ComponentCollectionsComponentEvent { + id: ID! + translations( + filters: ComponentTranslationsChronologyItemFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentTranslationsChronologyItem] + source: SourceEntityResponse +} + +input ComponentCollectionsComponentGlossaryDefinitionFiltersInput { + source: SourceFiltersInput + categories: CategoryFiltersInput + and: [ComponentCollectionsComponentGlossaryDefinitionFiltersInput] + or: [ComponentCollectionsComponentGlossaryDefinitionFiltersInput] + not: ComponentCollectionsComponentGlossaryDefinitionFiltersInput +} + +input ComponentCollectionsComponentGlossaryDefinitionInput { + id: ID + translations: [ComponentTranslationsGlossaryDefinitionInput] + source: ID + categories: [ID] +} + +type ComponentCollectionsComponentGlossaryDefinition { + id: ID! + translations( + filters: ComponentTranslationsGlossaryDefinitionFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentTranslationsGlossaryDefinition] + source: SourceEntityResponse + categories( + filters: CategoryFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): CategoryRelationResponseCollection +} + +input ComponentCollectionsComponentWeaponStoryFiltersInput { + source: SourceFiltersInput + categories: CategoryFiltersInput + and: [ComponentCollectionsComponentWeaponStoryFiltersInput] + or: [ComponentCollectionsComponentWeaponStoryFiltersInput] + not: ComponentCollectionsComponentWeaponStoryFiltersInput +} + +input ComponentCollectionsComponentWeaponStoryInput { + id: ID + translations: [ComponentTranslationsWeaponStoryStoryInput] + source: ID + categories: [ID] +} + +type ComponentCollectionsComponentWeaponStory { + id: ID! + translations( + filters: ComponentTranslationsWeaponStoryStoryFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentTranslationsWeaponStoryStory] + source: SourceEntityResponse + categories( + filters: CategoryFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): CategoryRelationResponseCollection +} + +type ComponentMetadataAudio { + id: ID! + languages( + filters: LanguageFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LanguageRelationResponseCollection + subtype: AudioSubtypeEntityResponse +} + +type ComponentMetadataBooks { + id: ID! + binding_type: String + page_count: Int + languages( + filters: LanguageFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LanguageRelationResponseCollection + page_order: String! + subtype: TextualSubtypeEntityResponse +} + +type ComponentMetadataGame { + id: ID! + platform: GamePlatformEntityResponse + demo: Boolean! + audio_languages( + filters: LanguageFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LanguageRelationResponseCollection + sub_languages( + filters: LanguageFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LanguageRelationResponseCollection + interface_languages( + filters: LanguageFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LanguageRelationResponseCollection +} + +type ComponentMetadataVideo { + id: ID! + resolution: String + audio_languages( + filters: LanguageFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LanguageRelationResponseCollection + sub_languages: LanguageEntityResponse +} + +input ComponentPageBuilderComponentPaneFiltersInput { + text: StringFilterInput + and: [ComponentPageBuilderComponentPaneFiltersInput] + or: [ComponentPageBuilderComponentPaneFiltersInput] + not: ComponentPageBuilderComponentPaneFiltersInput +} + +type ComponentPageBuilderComponentPane { + id: ID! + text: String +} + +input ComponentPageBuilderComponentTabFiltersInput { + text: StringFilterInput + and: [ComponentPageBuilderComponentTabFiltersInput] + or: [ComponentPageBuilderComponentTabFiltersInput] + not: ComponentPageBuilderComponentTabFiltersInput +} + +type ComponentPageBuilderComponentTab { + id: ID! + text: String +} + +type ComponentPageBuilderGallery { + id: ID! + gallery( + filters: UploadFileFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): UploadFileRelationResponseCollection +} + +type ComponentPageBuilderGrid { + id: ID! + column_count: Int! + panes( + filters: ComponentPageBuilderComponentPaneFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentPageBuilderComponentPane] +} + +type ComponentPageBuilderTabs { + id: ID! + tabs( + filters: ComponentPageBuilderComponentTabFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentPageBuilderComponentTab] +} + +type ComponentPageBuilderText { + id: ID! + text: String +} + +type ComponentRangeGameAspect { + id: ID! + note: String +} + +type ComponentRangeOther { + id: ID! + note: String +} + +type ComponentRangePageRange { + id: ID! + starting_page: Int + ending_page: Int +} + +type ComponentRangeTimeRange { + id: ID! + starting_time: Time + ending_time: Time +} + +type ComponentSourceLibraryText { + id: ID! + text_set: TextSetEntityResponse +} + +type ComponentSourceUrlSource { + id: ID! + title: String + url: String + note: String + credits: ComponentBasicsCredits! +} + +input ComponentTranslationsAudioSetsFiltersInput { + language: LanguageFiltersInput + status: StringFilterInput + and: [ComponentTranslationsAudioSetsFiltersInput] + or: [ComponentTranslationsAudioSetsFiltersInput] + not: ComponentTranslationsAudioSetsFiltersInput +} + +input ComponentTranslationsAudioSetsInput { + id: ID + language: ID + audiofile: ID + status: String + credits: ComponentBasicsCreditsInput +} + +type ComponentTranslationsAudioSets { + id: ID! + language: LanguageEntityResponse + audiofile: UploadFileEntityResponse! + status: String! + credits: ComponentBasicsCredits! +} + +input ComponentTranslationsChronologyEraFiltersInput { + title: StringFilterInput + language: LanguageFiltersInput + and: [ComponentTranslationsChronologyEraFiltersInput] + or: [ComponentTranslationsChronologyEraFiltersInput] + not: ComponentTranslationsChronologyEraFiltersInput +} + +input ComponentTranslationsChronologyEraInput { + id: ID + title: String + language: ID +} + +type ComponentTranslationsChronologyEra { + id: ID! + title: String + language: LanguageEntityResponse +} + +input ComponentTranslationsChronologyItemFiltersInput { + language: LanguageFiltersInput + title: StringFilterInput + description: StringFilterInput + note: StringFilterInput + status: StringFilterInput + and: [ComponentTranslationsChronologyItemFiltersInput] + or: [ComponentTranslationsChronologyItemFiltersInput] + not: ComponentTranslationsChronologyItemFiltersInput +} + +input ComponentTranslationsChronologyItemInput { + id: ID + language: ID + title: String + description: String + note: String + status: String +} + +type ComponentTranslationsChronologyItem { + id: ID! + language: LanguageEntityResponse + title: String + description: String + note: String + status: String! +} + +input ComponentTranslationsGlossaryDefinitionFiltersInput { + definition: StringFilterInput + language: LanguageFiltersInput + status: StringFilterInput + and: [ComponentTranslationsGlossaryDefinitionFiltersInput] + or: [ComponentTranslationsGlossaryDefinitionFiltersInput] + not: ComponentTranslationsGlossaryDefinitionFiltersInput +} + +input ComponentTranslationsGlossaryDefinitionInput { + id: ID + definition: String + language: ID + status: String +} + +type ComponentTranslationsGlossaryDefinition { + id: ID! + definition: String + language: LanguageEntityResponse + status: String! +} + +input ComponentTranslationsGlossaryItemFiltersInput { + title: StringFilterInput + language: LanguageFiltersInput + and: [ComponentTranslationsGlossaryItemFiltersInput] + or: [ComponentTranslationsGlossaryItemFiltersInput] + not: ComponentTranslationsGlossaryItemFiltersInput +} + +input ComponentTranslationsGlossaryItemInput { + id: ID + title: String + language: ID +} + +type ComponentTranslationsGlossaryItem { + id: ID! + title: String + language: LanguageEntityResponse +} + +input ComponentTranslationsLibraryContentFiltersInput { + title: StringFilterInput + language: LanguageFiltersInput + and: [ComponentTranslationsLibraryContentFiltersInput] + or: [ComponentTranslationsLibraryContentFiltersInput] + not: ComponentTranslationsLibraryContentFiltersInput +} + +input ComponentTranslationsLibraryContentInput { + id: ID + title: String + language: ID +} + +type ComponentTranslationsLibraryContent { + id: ID! + title: String + language: LanguageEntityResponse +} + +input ComponentTranslationsLibraryItemsFiltersInput { + description: StringFilterInput + language: LanguageFiltersInput + and: [ComponentTranslationsLibraryItemsFiltersInput] + or: [ComponentTranslationsLibraryItemsFiltersInput] + not: ComponentTranslationsLibraryItemsFiltersInput +} + +input ComponentTranslationsLibraryItemsInput { + id: ID + description: String + language: ID +} + +type ComponentTranslationsLibraryItems { + id: ID! + description: String! + language: LanguageEntityResponse +} + +input ComponentTranslationsPostsFiltersInput { + Status: StringFilterInput + title: StringFilterInput + excerpt: StringFilterInput + and: [ComponentTranslationsPostsFiltersInput] + or: [ComponentTranslationsPostsFiltersInput] + not: ComponentTranslationsPostsFiltersInput +} + +input ComponentTranslationsPostsInput { + id: ID + Status: String + title: String + excerpt: String + thumbnail: ID +} + +type ComponentTranslationsPosts { + id: ID! + Status: String! + title: String! + excerpt: String + thumbnail: UploadFileEntityResponse +} + +input ComponentTranslationsScanSetFiltersInput { + language: LanguageFiltersInput + status: StringFilterInput + and: [ComponentTranslationsScanSetFiltersInput] + or: [ComponentTranslationsScanSetFiltersInput] + not: ComponentTranslationsScanSetFiltersInput +} + +input ComponentTranslationsScanSetInput { + id: ID + language: ID + pages: [ID] + status: String + credits: ComponentBasicsCreditsInput +} + +type ComponentTranslationsScanSet { + id: ID! + language: LanguageEntityResponse + pages( + filters: UploadFileFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): UploadFileRelationResponseCollection! + status: String! + credits: ComponentBasicsCredits! +} + +input ComponentTranslationsTextSetFiltersInput { + text: StringFilterInput + language: LanguageFiltersInput + status: StringFilterInput + and: [ComponentTranslationsTextSetFiltersInput] + or: [ComponentTranslationsTextSetFiltersInput] + not: ComponentTranslationsTextSetFiltersInput +} + +input ComponentTranslationsTextSetInput { + id: ID + text: String + language: ID + status: String + credits: ComponentBasicsCreditsInput +} + +type ComponentTranslationsTextSet { + id: ID! + text: String + language: LanguageEntityResponse + status: String! + credits: ComponentBasicsCredits! +} + +input ComponentTranslationsVideoSetsFiltersInput { + language: LanguageFiltersInput + video_url: StringFilterInput + video_embed: StringFilterInput + status: StringFilterInput + and: [ComponentTranslationsVideoSetsFiltersInput] + or: [ComponentTranslationsVideoSetsFiltersInput] + not: ComponentTranslationsVideoSetsFiltersInput +} + +input ComponentTranslationsVideoSetsInput { + id: ID + language: ID + video_url: String + video_embed: String + subfile: ID + status: String + credits: ComponentBasicsCreditsInput +} + +type ComponentTranslationsVideoSets { + id: ID! + language: LanguageEntityResponse + video_url: String! + video_embed: String + subfile: UploadFileEntityResponse + status: String! + credits: ComponentBasicsCredits! +} + +input ComponentTranslationsWeaponStoryStoryFiltersInput { + description: StringFilterInput + level_1: StringFilterInput + level_2: StringFilterInput + level_3: StringFilterInput + level_4: StringFilterInput + language: LanguageFiltersInput + status: StringFilterInput + and: [ComponentTranslationsWeaponStoryStoryFiltersInput] + or: [ComponentTranslationsWeaponStoryStoryFiltersInput] + not: ComponentTranslationsWeaponStoryStoryFiltersInput +} + +input ComponentTranslationsWeaponStoryStoryInput { + id: ID + description: String + level_1: String + level_2: String + level_3: String + level_4: String + language: ID + status: String +} + +type ComponentTranslationsWeaponStoryStory { + id: ID! + description: String + level_1: String + level_2: String + level_3: String + level_4: String + language: LanguageEntityResponse + status: String! +} + +input ComponentTranslationsWeaponStoryTypeFiltersInput { + name: StringFilterInput + language: LanguageFiltersInput + and: [ComponentTranslationsWeaponStoryTypeFiltersInput] + or: [ComponentTranslationsWeaponStoryTypeFiltersInput] + not: ComponentTranslationsWeaponStoryTypeFiltersInput +} + +input ComponentTranslationsWeaponStoryTypeInput { + id: ID + name: String + language: ID +} + +type ComponentTranslationsWeaponStoryType { + id: ID! + name: String + language: LanguageEntityResponse +} + +input ComponentTranslationsWeaponStoryFiltersInput { + name: StringFilterInput + language: LanguageFiltersInput + and: [ComponentTranslationsWeaponStoryFiltersInput] + or: [ComponentTranslationsWeaponStoryFiltersInput] + not: ComponentTranslationsWeaponStoryFiltersInput +} + +input ComponentTranslationsWeaponStoryInput { + id: ID + name: String + language: ID +} + +type ComponentTranslationsWeaponStory { + id: ID! + name: String + language: LanguageEntityResponse +} + +input UploadFileFiltersInput { + id: IDFilterInput + name: StringFilterInput + alternativeText: StringFilterInput + caption: StringFilterInput + width: IntFilterInput + height: IntFilterInput + formats: JSONFilterInput + hash: StringFilterInput + ext: StringFilterInput + mime: StringFilterInput + size: FloatFilterInput + url: StringFilterInput + previewUrl: StringFilterInput + provider: StringFilterInput + provider_metadata: JSONFilterInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [UploadFileFiltersInput] + or: [UploadFileFiltersInput] + not: UploadFileFiltersInput +} + +input UploadFileInput { + name: String + alternativeText: String + caption: String + width: Int + height: Int + formats: JSON + hash: String + ext: String + mime: String + size: Float + url: String + previewUrl: String + provider: String + provider_metadata: JSON +} + +type UploadFile { + name: String! + alternativeText: String + caption: String + width: Int + height: Int + formats: JSON + hash: String! + ext: String + mime: String! + size: Float! + url: String! + previewUrl: String + provider: String! + provider_metadata: JSON + related: [GenericMorph] + createdAt: DateTime + updatedAt: DateTime +} + +type UploadFileEntity { + id: ID + attributes: UploadFile +} + +type UploadFileEntityResponse { + data: UploadFileEntity +} + +type UploadFileEntityResponseCollection { + data: [UploadFileEntity!]! + meta: ResponseCollectionMeta! +} + +type UploadFileRelationResponseCollection { + data: [UploadFileEntity!]! +} + +input I18NLocaleFiltersInput { + id: IDFilterInput + name: StringFilterInput + code: StringFilterInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [I18NLocaleFiltersInput] + or: [I18NLocaleFiltersInput] + not: I18NLocaleFiltersInput +} + +type I18NLocale { + name: String + code: String + createdAt: DateTime + updatedAt: DateTime +} + +type I18NLocaleEntity { + id: ID + attributes: I18NLocale +} + +type I18NLocaleEntityResponse { + data: I18NLocaleEntity +} + +type I18NLocaleEntityResponseCollection { + data: [I18NLocaleEntity!]! + meta: ResponseCollectionMeta! +} + +input UsersPermissionsPermissionFiltersInput { + id: IDFilterInput + action: StringFilterInput + role: UsersPermissionsRoleFiltersInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [UsersPermissionsPermissionFiltersInput] + or: [UsersPermissionsPermissionFiltersInput] + not: UsersPermissionsPermissionFiltersInput +} + +type UsersPermissionsPermission { + action: String! + role: UsersPermissionsRoleEntityResponse + createdAt: DateTime + updatedAt: DateTime +} + +type UsersPermissionsPermissionEntity { + id: ID + attributes: UsersPermissionsPermission +} + +type UsersPermissionsPermissionRelationResponseCollection { + data: [UsersPermissionsPermissionEntity!]! +} + +input UsersPermissionsRoleFiltersInput { + id: IDFilterInput + name: StringFilterInput + description: StringFilterInput + type: StringFilterInput + permissions: UsersPermissionsPermissionFiltersInput + users: UsersPermissionsUserFiltersInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [UsersPermissionsRoleFiltersInput] + or: [UsersPermissionsRoleFiltersInput] + not: UsersPermissionsRoleFiltersInput +} + +input UsersPermissionsRoleInput { + name: String + description: String + type: String + permissions: [ID] + users: [ID] +} + +type UsersPermissionsRole { + name: String! + description: String + type: String + permissions( + filters: UsersPermissionsPermissionFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): UsersPermissionsPermissionRelationResponseCollection + users( + filters: UsersPermissionsUserFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): UsersPermissionsUserRelationResponseCollection + createdAt: DateTime + updatedAt: DateTime +} + +type UsersPermissionsRoleEntity { + id: ID + attributes: UsersPermissionsRole +} + +type UsersPermissionsRoleEntityResponse { + data: UsersPermissionsRoleEntity +} + +type UsersPermissionsRoleEntityResponseCollection { + data: [UsersPermissionsRoleEntity!]! + meta: ResponseCollectionMeta! +} + +input UsersPermissionsUserFiltersInput { + id: IDFilterInput + username: StringFilterInput + email: StringFilterInput + provider: StringFilterInput + password: StringFilterInput + resetPasswordToken: StringFilterInput + confirmationToken: StringFilterInput + confirmed: BooleanFilterInput + blocked: BooleanFilterInput + role: UsersPermissionsRoleFiltersInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [UsersPermissionsUserFiltersInput] + or: [UsersPermissionsUserFiltersInput] + not: UsersPermissionsUserFiltersInput +} + +input UsersPermissionsUserInput { + username: String + email: String + provider: String + password: String + resetPasswordToken: String + confirmationToken: String + confirmed: Boolean + blocked: Boolean + role: ID +} + +type UsersPermissionsUser { + username: String! + email: String! + provider: String + confirmed: Boolean + blocked: Boolean + role: UsersPermissionsRoleEntityResponse + createdAt: DateTime + updatedAt: DateTime +} + +type UsersPermissionsUserEntity { + id: ID + attributes: UsersPermissionsUser +} + +type UsersPermissionsUserEntityResponse { + data: UsersPermissionsUserEntity +} + +type UsersPermissionsUserEntityResponseCollection { + data: [UsersPermissionsUserEntity!]! + meta: ResponseCollectionMeta! +} + +type UsersPermissionsUserRelationResponseCollection { + data: [UsersPermissionsUserEntity!]! +} + +input AudioSetFiltersInput { + id: IDFilterInput + slug: StringFilterInput + library_contents: LibraryContentFiltersInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [AudioSetFiltersInput] + or: [AudioSetFiltersInput] + not: AudioSetFiltersInput +} + +input AudioSetInput { + slug: String + translations: [ComponentTranslationsAudioSetsInput] + library_contents: [ID] +} + +type AudioSet { + slug: String! + translations( + filters: ComponentTranslationsAudioSetsFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentTranslationsAudioSets] + library_contents( + filters: LibraryContentFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LibraryContentRelationResponseCollection + createdAt: DateTime + updatedAt: DateTime +} + +type AudioSetEntity { + id: ID + attributes: AudioSet +} + +type AudioSetEntityResponse { + data: AudioSetEntity +} + +type AudioSetEntityResponseCollection { + data: [AudioSetEntity!]! + meta: ResponseCollectionMeta! +} + +input AudioSubtypeFiltersInput { + id: IDFilterInput + slug: StringFilterInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [AudioSubtypeFiltersInput] + or: [AudioSubtypeFiltersInput] + not: AudioSubtypeFiltersInput +} + +input AudioSubtypeInput { + slug: String +} + +type AudioSubtype { + slug: String! + createdAt: DateTime + updatedAt: DateTime +} + +type AudioSubtypeEntity { + id: ID + attributes: AudioSubtype +} + +type AudioSubtypeEntityResponse { + data: AudioSubtypeEntity +} + +type AudioSubtypeEntityResponseCollection { + data: [AudioSubtypeEntity!]! + meta: ResponseCollectionMeta! +} + +input CategoryFiltersInput { + id: IDFilterInput + name: StringFilterInput + short: StringFilterInput + series: StringFilterInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [CategoryFiltersInput] + or: [CategoryFiltersInput] + not: CategoryFiltersInput +} + +input CategoryInput { + name: String + short: String + series: String +} + +type Category { + name: String! + short: String! + series: String + createdAt: DateTime + updatedAt: DateTime +} + +type CategoryEntity { + id: ID + attributes: Category +} + +type CategoryEntityResponse { + data: CategoryEntity +} + +type CategoryEntityResponseCollection { + data: [CategoryEntity!]! + meta: ResponseCollectionMeta! +} + +type CategoryRelationResponseCollection { + data: [CategoryEntity!]! +} + +input ChronologyEraFiltersInput { + id: IDFilterInput + starting_year: IntFilterInput + ending_year: IntFilterInput + slug: StringFilterInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [ChronologyEraFiltersInput] + or: [ChronologyEraFiltersInput] + not: ChronologyEraFiltersInput +} + +input ChronologyEraInput { + starting_year: Int + ending_year: Int + slug: String + title: [ComponentTranslationsChronologyEraInput] +} + +type ChronologyEra { + starting_year: Int! + ending_year: Int! + slug: String! + title( + filters: ComponentTranslationsChronologyEraFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentTranslationsChronologyEra] + createdAt: DateTime + updatedAt: DateTime +} + +type ChronologyEraEntity { + id: ID + attributes: ChronologyEra +} + +type ChronologyEraEntityResponse { + data: ChronologyEraEntity +} + +type ChronologyEraEntityResponseCollection { + data: [ChronologyEraEntity!]! + meta: ResponseCollectionMeta! +} + +input ChronologyItemFiltersInput { + id: IDFilterInput + year: IntFilterInput + month: IntFilterInput + day: IntFilterInput + displayed_date: StringFilterInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [ChronologyItemFiltersInput] + or: [ChronologyItemFiltersInput] + not: ChronologyItemFiltersInput +} + +input ChronologyItemInput { + year: Int + month: Int + day: Int + displayed_date: String + events: [ComponentCollectionsComponentEventInput] +} + +type ChronologyItem { + year: Int! + month: Int + day: Int + displayed_date: String + events( + filters: ComponentCollectionsComponentEventFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentCollectionsComponentEvent] + createdAt: DateTime + updatedAt: DateTime +} + +type ChronologyItemEntity { + id: ID + attributes: ChronologyItem +} + +type ChronologyItemEntityResponse { + data: ChronologyItemEntity +} + +type ChronologyItemEntityResponseCollection { + data: [ChronologyItemEntity!]! + meta: ResponseCollectionMeta! +} + +input ContentTypeFiltersInput { + id: IDFilterInput + slug: StringFilterInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [ContentTypeFiltersInput] + or: [ContentTypeFiltersInput] + not: ContentTypeFiltersInput +} + +input ContentTypeInput { + slug: String +} + +type ContentType { + slug: String! + createdAt: DateTime + updatedAt: DateTime +} + +type ContentTypeEntity { + id: ID + attributes: ContentType +} + +type ContentTypeEntityResponse { + data: ContentTypeEntity +} + +type ContentTypeEntityResponseCollection { + data: [ContentTypeEntity!]! + meta: ResponseCollectionMeta! +} + +input CurrencyFiltersInput { + id: IDFilterInput + symbol: StringFilterInput + code: StringFilterInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [CurrencyFiltersInput] + or: [CurrencyFiltersInput] + not: CurrencyFiltersInput +} + +input CurrencyInput { + symbol: String + code: String +} + +type Currency { + symbol: String! + code: String! + createdAt: DateTime + updatedAt: DateTime +} + +type CurrencyEntity { + id: ID + attributes: Currency +} + +type CurrencyEntityResponse { + data: CurrencyEntity +} + +type CurrencyEntityResponseCollection { + data: [CurrencyEntity!]! + meta: ResponseCollectionMeta! +} + +input GamePlatformFiltersInput { + id: IDFilterInput + name: StringFilterInput + short: StringFilterInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [GamePlatformFiltersInput] + or: [GamePlatformFiltersInput] + not: GamePlatformFiltersInput +} + +input GamePlatformInput { + name: String + short: String +} + +type GamePlatform { + name: String! + short: String! + createdAt: DateTime + updatedAt: DateTime +} + +type GamePlatformEntity { + id: ID + attributes: GamePlatform +} + +type GamePlatformEntityResponse { + data: GamePlatformEntity +} + +type GamePlatformEntityResponseCollection { + data: [GamePlatformEntity!]! + meta: ResponseCollectionMeta! +} + +input GlossaryItemFiltersInput { + id: IDFilterInput + slug: StringFilterInput + type: GlossaryItemTypeFiltersInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [GlossaryItemFiltersInput] + or: [GlossaryItemFiltersInput] + not: GlossaryItemFiltersInput +} + +input GlossaryItemInput { + title: [ComponentTranslationsGlossaryItemInput] + definitions: [ComponentCollectionsComponentGlossaryDefinitionInput] + slug: String + type: ID + thumbnail: ID +} + +type GlossaryItem { + title( + filters: ComponentTranslationsGlossaryItemFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentTranslationsGlossaryItem] + definitions( + filters: ComponentCollectionsComponentGlossaryDefinitionFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentCollectionsComponentGlossaryDefinition] + slug: String! + type: GlossaryItemTypeEntityResponse + thumbnail: UploadFileEntityResponse + createdAt: DateTime + updatedAt: DateTime +} + +type GlossaryItemEntity { + id: ID + attributes: GlossaryItem +} + +type GlossaryItemEntityResponse { + data: GlossaryItemEntity +} + +type GlossaryItemEntityResponseCollection { + data: [GlossaryItemEntity!]! + meta: ResponseCollectionMeta! +} + +input GlossaryItemTypeFiltersInput { + id: IDFilterInput + type: StringFilterInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [GlossaryItemTypeFiltersInput] + or: [GlossaryItemTypeFiltersInput] + not: GlossaryItemTypeFiltersInput +} + +input GlossaryItemTypeInput { + type: String +} + +type GlossaryItemType { + type: String! + createdAt: DateTime + updatedAt: DateTime +} + +type GlossaryItemTypeEntity { + id: ID + attributes: GlossaryItemType +} + +type GlossaryItemTypeEntityResponse { + data: GlossaryItemTypeEntity +} + +type GlossaryItemTypeEntityResponseCollection { + data: [GlossaryItemTypeEntity!]! + meta: ResponseCollectionMeta! +} + +input LanguageFiltersInput { + id: IDFilterInput + name: StringFilterInput + code: StringFilterInput + localized_name: StringFilterInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [LanguageFiltersInput] + or: [LanguageFiltersInput] + not: LanguageFiltersInput +} + +input LanguageInput { + name: String + code: String + localized_name: String +} + +type Language { + name: String! + code: String! + localized_name: String! + createdAt: DateTime + updatedAt: DateTime +} + +type LanguageEntity { + id: ID + attributes: Language +} + +type LanguageEntityResponse { + data: LanguageEntity +} + +type LanguageEntityResponseCollection { + data: [LanguageEntity!]! + meta: ResponseCollectionMeta! +} + +type LanguageRelationResponseCollection { + data: [LanguageEntity!]! +} + +union LibraryContentRangeDynamicZone = + ComponentRangePageRange + | ComponentRangeTimeRange + | ComponentRangeGameAspect + | ComponentRangeOther + | Error + +scalar LibraryContentRangeDynamicZoneInput + +input LibraryContentFiltersInput { + id: IDFilterInput + slug: StringFilterInput + library_item: LibraryItemFiltersInput + scan_set: ScanSetFiltersInput + text_set: TextSetFiltersInput + audio_set: AudioSetFiltersInput + video_set: VideoSetFiltersInput + type: ContentTypeFiltersInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [LibraryContentFiltersInput] + or: [LibraryContentFiltersInput] + not: LibraryContentFiltersInput +} + +input LibraryContentInput { + slug: String + title: [ComponentTranslationsLibraryContentInput] + library_item: ID + scan_set: ID + text_set: ID + range: [LibraryContentRangeDynamicZoneInput!] + audio_set: ID + video_set: ID + type: ID +} + +type LibraryContent { + slug: String! + title( + filters: ComponentTranslationsLibraryContentFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentTranslationsLibraryContent] + library_item: LibraryItemEntityResponse + scan_set: ScanSetEntityResponse + text_set: TextSetEntityResponse + range: [LibraryContentRangeDynamicZone]! + audio_set: AudioSetEntityResponse + video_set: VideoSetEntityResponse + type: ContentTypeEntityResponse + createdAt: DateTime + updatedAt: DateTime +} + +type LibraryContentEntity { + id: ID + attributes: LibraryContent +} + +type LibraryContentEntityResponse { + data: LibraryContentEntity +} + +type LibraryContentEntityResponseCollection { + data: [LibraryContentEntity!]! + meta: ResponseCollectionMeta! +} + +type LibraryContentRelationResponseCollection { + data: [LibraryContentEntity!]! +} + +union LibraryItemMetadataDynamicZone = + ComponentMetadataBooks + | ComponentMetadataVideo + | ComponentMetadataGame + | ComponentMetadataAudio + | Error + +scalar LibraryItemMetadataDynamicZoneInput + +input LibraryItemFiltersInput { + id: IDFilterInput + title: StringFilterInput + subtitle: StringFilterInput + slug: StringFilterInput + subitems: LibraryItemFiltersInput + subitem_of: LibraryItemFiltersInput + root_item: BooleanFilterInput + variants: LibraryVariantFiltersInput + contents: LibraryContentFiltersInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [LibraryItemFiltersInput] + or: [LibraryItemFiltersInput] + not: LibraryItemFiltersInput +} + +input LibraryItemInput { + title: String + subtitle: String + slug: String + thumbnail: ID + subitems: [ID] + subitem_of: [ID] + root_item: Boolean + price: ComponentBasicsPriceInput + variants: ID + metadata: [LibraryItemMetadataDynamicZoneInput!] + size: ComponentBasicsSizeInput + contents: [ID] + release_date: ComponentBasicsDatepickerInput + descriptions: [ComponentTranslationsLibraryItemsInput] +} + +type LibraryItem { + title: String! + subtitle: String + slug: String! + thumbnail: UploadFileEntityResponse + subitems( + filters: LibraryItemFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LibraryItemRelationResponseCollection + subitem_of( + filters: LibraryItemFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LibraryItemRelationResponseCollection + root_item: Boolean! + price: ComponentBasicsPrice + variants: LibraryVariantEntityResponse + metadata: [LibraryItemMetadataDynamicZone] + size: ComponentBasicsSize + contents( + filters: LibraryContentFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LibraryContentRelationResponseCollection + release_date: ComponentBasicsDatepicker + descriptions( + filters: ComponentTranslationsLibraryItemsFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentTranslationsLibraryItems] + createdAt: DateTime + updatedAt: DateTime +} + +type LibraryItemEntity { + id: ID + attributes: LibraryItem +} + +type LibraryItemEntityResponse { + data: LibraryItemEntity +} + +type LibraryItemEntityResponseCollection { + data: [LibraryItemEntity!]! + meta: ResponseCollectionMeta! +} + +type LibraryItemRelationResponseCollection { + data: [LibraryItemEntity!]! +} + +input LibraryVariantFiltersInput { + id: IDFilterInput + items: LibraryItemFiltersInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [LibraryVariantFiltersInput] + or: [LibraryVariantFiltersInput] + not: LibraryVariantFiltersInput +} + +input LibraryVariantInput { + items: [ID] +} + +type LibraryVariant { + items( + filters: LibraryItemFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LibraryItemRelationResponseCollection + createdAt: DateTime + updatedAt: DateTime +} + +type LibraryVariantEntity { + id: ID + attributes: LibraryVariant +} + +type LibraryVariantEntityResponse { + data: LibraryVariantEntity +} + +type LibraryVariantEntityResponseCollection { + data: [LibraryVariantEntity!]! + meta: ResponseCollectionMeta! +} + +input PostFiltersInput { + id: IDFilterInput + authors: RecorderFiltersInput + slug: StringFilterInput + categories: CategoryFiltersInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + publishedAt: DateTimeFilterInput + and: [PostFiltersInput] + or: [PostFiltersInput] + not: PostFiltersInput +} + +input PostInput { + authors: [ID] + slug: String + categories: [ID] + translations: [ComponentTranslationsPostsInput] + publishedAt: DateTime +} + +type Post { + authors( + filters: RecorderFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): RecorderRelationResponseCollection + slug: String! + categories( + filters: CategoryFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): CategoryRelationResponseCollection + translations( + filters: ComponentTranslationsPostsFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentTranslationsPosts] + createdAt: DateTime + updatedAt: DateTime + publishedAt: DateTime +} + +type PostEntity { + id: ID + attributes: Post +} + +type PostEntityResponse { + data: PostEntity +} + +type PostEntityResponseCollection { + data: [PostEntity!]! + meta: ResponseCollectionMeta! +} + +input RecorderFiltersInput { + id: IDFilterInput + username: StringFilterInput + anonymize: BooleanFilterInput + anonymous_code: StringFilterInput + languages: LanguageFiltersInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [RecorderFiltersInput] + or: [RecorderFiltersInput] + not: RecorderFiltersInput +} + +input RecorderInput { + username: String + anonymize: Boolean + anonymous_code: String + avatar: ID + languages: [ID] +} + +type Recorder { + username: String! + anonymize: Boolean! + anonymous_code: String! + avatar: UploadFileEntityResponse + languages( + filters: LanguageFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LanguageRelationResponseCollection + createdAt: DateTime + updatedAt: DateTime +} + +type RecorderEntity { + id: ID + attributes: Recorder +} + +type RecorderEntityResponse { + data: RecorderEntity +} + +type RecorderEntityResponseCollection { + data: [RecorderEntity!]! + meta: ResponseCollectionMeta! +} + +type RecorderRelationResponseCollection { + data: [RecorderEntity!]! +} + +input ScanSetFiltersInput { + id: IDFilterInput + slug: StringFilterInput + library_content: LibraryContentFiltersInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [ScanSetFiltersInput] + or: [ScanSetFiltersInput] + not: ScanSetFiltersInput +} + +input ScanSetInput { + slug: String + translations: [ComponentTranslationsScanSetInput] + library_content: ID +} + +type ScanSet { + slug: String! + translations( + filters: ComponentTranslationsScanSetFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentTranslationsScanSet] + library_content: LibraryContentEntityResponse + createdAt: DateTime + updatedAt: DateTime +} + +type ScanSetEntity { + id: ID + attributes: ScanSet +} + +type ScanSetEntityResponse { + data: ScanSetEntity +} + +type ScanSetEntityResponseCollection { + data: [ScanSetEntity!]! + meta: ResponseCollectionMeta! +} + +union SourceSourceDynamicZone = + ComponentSourceUrlSource + | ComponentSourceLibraryText + | Error + +scalar SourceSourceDynamicZoneInput + +input SourceFiltersInput { + id: IDFilterInput + name: StringFilterInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [SourceFiltersInput] + or: [SourceFiltersInput] + not: SourceFiltersInput +} + +input SourceInput { + source: [SourceSourceDynamicZoneInput!] + name: String +} + +type Source { + source: [SourceSourceDynamicZone]! + name: String! + createdAt: DateTime + updatedAt: DateTime +} + +type SourceEntity { + id: ID + attributes: Source +} + +type SourceEntityResponse { + data: SourceEntity +} + +type SourceEntityResponseCollection { + data: [SourceEntity!]! + meta: ResponseCollectionMeta! +} + +input TextSetFiltersInput { + id: IDFilterInput + slug: StringFilterInput + library_contents: LibraryContentFiltersInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [TextSetFiltersInput] + or: [TextSetFiltersInput] + not: TextSetFiltersInput +} + +input TextSetInput { + slug: String + translations: [ComponentTranslationsTextSetInput] + library_contents: [ID] +} + +type TextSet { + slug: String! + translations( + filters: ComponentTranslationsTextSetFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentTranslationsTextSet] + library_contents( + filters: LibraryContentFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LibraryContentRelationResponseCollection + createdAt: DateTime + updatedAt: DateTime +} + +type TextSetEntity { + id: ID + attributes: TextSet +} + +type TextSetEntityResponse { + data: TextSetEntity +} + +type TextSetEntityResponseCollection { + data: [TextSetEntity!]! + meta: ResponseCollectionMeta! +} + +input TextualSubtypeFiltersInput { + id: IDFilterInput + slug: StringFilterInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [TextualSubtypeFiltersInput] + or: [TextualSubtypeFiltersInput] + not: TextualSubtypeFiltersInput +} + +input TextualSubtypeInput { + slug: String +} + +type TextualSubtype { + slug: String! + createdAt: DateTime + updatedAt: DateTime +} + +type TextualSubtypeEntity { + id: ID + attributes: TextualSubtype +} + +type TextualSubtypeEntityResponse { + data: TextualSubtypeEntity +} + +type TextualSubtypeEntityResponseCollection { + data: [TextualSubtypeEntity!]! + meta: ResponseCollectionMeta! +} + +input VideoSetFiltersInput { + id: IDFilterInput + slug: StringFilterInput + library_contents: LibraryContentFiltersInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [VideoSetFiltersInput] + or: [VideoSetFiltersInput] + not: VideoSetFiltersInput +} + +input VideoSetInput { + slug: String + translations: [ComponentTranslationsVideoSetsInput] + library_contents: [ID] +} + +type VideoSet { + slug: String! + translations( + filters: ComponentTranslationsVideoSetsFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentTranslationsVideoSets] + library_contents( + filters: LibraryContentFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LibraryContentRelationResponseCollection + createdAt: DateTime + updatedAt: DateTime +} + +type VideoSetEntity { + id: ID + attributes: VideoSet +} + +type VideoSetEntityResponse { + data: VideoSetEntity +} + +type VideoSetEntityResponseCollection { + data: [VideoSetEntity!]! + meta: ResponseCollectionMeta! +} + +input WeaponStoryFiltersInput { + id: IDFilterInput + slug: StringFilterInput + type: WeaponStoryTypeFiltersInput + weapon_group: WeaponStoryGroupFiltersInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [WeaponStoryFiltersInput] + or: [WeaponStoryFiltersInput] + not: WeaponStoryFiltersInput +} + +input WeaponStoryInput { + name: [ComponentTranslationsWeaponStoryInput] + slug: String + stories: [ComponentCollectionsComponentWeaponStoryInput] + type: ID + thumbnail: ID + weapon_group: ID +} + +type WeaponStory { + name( + filters: ComponentTranslationsWeaponStoryFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentTranslationsWeaponStory] + slug: String + stories( + filters: ComponentCollectionsComponentWeaponStoryFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentCollectionsComponentWeaponStory] + type: WeaponStoryTypeEntityResponse + thumbnail: UploadFileEntityResponse + weapon_group: WeaponStoryGroupEntityResponse + createdAt: DateTime + updatedAt: DateTime +} + +type WeaponStoryEntity { + id: ID + attributes: WeaponStory +} + +type WeaponStoryEntityResponse { + data: WeaponStoryEntity +} + +type WeaponStoryEntityResponseCollection { + data: [WeaponStoryEntity!]! + meta: ResponseCollectionMeta! +} + +type WeaponStoryRelationResponseCollection { + data: [WeaponStoryEntity!]! +} + +input WeaponStoryGroupFiltersInput { + id: IDFilterInput + weapons: WeaponStoryFiltersInput + slug: StringFilterInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [WeaponStoryGroupFiltersInput] + or: [WeaponStoryGroupFiltersInput] + not: WeaponStoryGroupFiltersInput +} + +input WeaponStoryGroupInput { + weapons: [ID] + slug: String +} + +type WeaponStoryGroup { + weapons( + filters: WeaponStoryFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): WeaponStoryRelationResponseCollection + slug: String! + createdAt: DateTime + updatedAt: DateTime +} + +type WeaponStoryGroupEntity { + id: ID + attributes: WeaponStoryGroup +} + +type WeaponStoryGroupEntityResponse { + data: WeaponStoryGroupEntity +} + +type WeaponStoryGroupEntityResponseCollection { + data: [WeaponStoryGroupEntity!]! + meta: ResponseCollectionMeta! +} + +input WeaponStoryTypeFiltersInput { + id: IDFilterInput + slug: StringFilterInput + createdAt: DateTimeFilterInput + updatedAt: DateTimeFilterInput + and: [WeaponStoryTypeFiltersInput] + or: [WeaponStoryTypeFiltersInput] + not: WeaponStoryTypeFiltersInput +} + +input WeaponStoryTypeInput { + slug: String + translations: [ComponentTranslationsWeaponStoryTypeInput] +} + +type WeaponStoryType { + slug: String! + translations( + filters: ComponentTranslationsWeaponStoryTypeFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): [ComponentTranslationsWeaponStoryType] + createdAt: DateTime + updatedAt: DateTime +} + +type WeaponStoryTypeEntity { + id: ID + attributes: WeaponStoryType +} + +type WeaponStoryTypeEntityResponse { + data: WeaponStoryTypeEntity +} + +type WeaponStoryTypeEntityResponseCollection { + data: [WeaponStoryTypeEntity!]! + meta: ResponseCollectionMeta! +} + +union 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 + +input FileInfoInput { + name: String + alternativeText: String + caption: String +} + +type UsersPermissionsMe { + id: ID! + username: String! + email: String + confirmed: Boolean + blocked: Boolean + role: UsersPermissionsMeRole +} + +type UsersPermissionsMeRole { + id: ID! + name: String! + description: String + type: String +} + +input UsersPermissionsRegisterInput { + username: String! + email: String! + password: String! +} + +input UsersPermissionsLoginInput { + identifier: String! + password: String! + provider: String! = "local" +} + +type UsersPermissionsPasswordPayload { + ok: Boolean! +} + +type UsersPermissionsLoginPayload { + jwt: String + user: UsersPermissionsMe! +} + +type UsersPermissionsCreateRolePayload { + ok: Boolean! +} + +type UsersPermissionsUpdateRolePayload { + ok: Boolean! +} + +type UsersPermissionsDeleteRolePayload { + ok: Boolean! +} + +input PaginationArg { + page: Int + pageSize: Int + start: Int + limit: Int +} + +type Query { + uploadFile(id: ID): UploadFileEntityResponse + uploadFiles( + filters: UploadFileFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): UploadFileEntityResponseCollection + i18NLocale(id: ID): I18NLocaleEntityResponse + i18NLocales( + filters: I18NLocaleFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): I18NLocaleEntityResponseCollection + usersPermissionsRole(id: ID): UsersPermissionsRoleEntityResponse + usersPermissionsRoles( + filters: UsersPermissionsRoleFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): UsersPermissionsRoleEntityResponseCollection + usersPermissionsUser(id: ID): UsersPermissionsUserEntityResponse + usersPermissionsUsers( + filters: UsersPermissionsUserFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): UsersPermissionsUserEntityResponseCollection + audioSet(id: ID): AudioSetEntityResponse + audioSets( + filters: AudioSetFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): AudioSetEntityResponseCollection + audioSubtype(id: ID): AudioSubtypeEntityResponse + audioSubtypes( + filters: AudioSubtypeFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): AudioSubtypeEntityResponseCollection + category(id: ID): CategoryEntityResponse + categories( + filters: CategoryFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): CategoryEntityResponseCollection + chronologyEra(id: ID): ChronologyEraEntityResponse + chronologyEras( + filters: ChronologyEraFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): ChronologyEraEntityResponseCollection + chronologyItem(id: ID): ChronologyItemEntityResponse + chronologyItems( + filters: ChronologyItemFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): ChronologyItemEntityResponseCollection + contentType(id: ID): ContentTypeEntityResponse + contentTypes( + filters: ContentTypeFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): ContentTypeEntityResponseCollection + currency(id: ID): CurrencyEntityResponse + currencies( + filters: CurrencyFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): CurrencyEntityResponseCollection + gamePlatform(id: ID): GamePlatformEntityResponse + gamePlatforms( + filters: GamePlatformFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): GamePlatformEntityResponseCollection + glossaryItem(id: ID): GlossaryItemEntityResponse + glossaryItems( + filters: GlossaryItemFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): GlossaryItemEntityResponseCollection + glossaryItemType(id: ID): GlossaryItemTypeEntityResponse + glossaryItemTypes( + filters: GlossaryItemTypeFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): GlossaryItemTypeEntityResponseCollection + language(id: ID): LanguageEntityResponse + languages( + filters: LanguageFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LanguageEntityResponseCollection + libraryContent(id: ID): LibraryContentEntityResponse + libraryContents( + filters: LibraryContentFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LibraryContentEntityResponseCollection + libraryItem(id: ID): LibraryItemEntityResponse + libraryItems( + filters: LibraryItemFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LibraryItemEntityResponseCollection + libraryVariant(id: ID): LibraryVariantEntityResponse + libraryVariants( + filters: LibraryVariantFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): LibraryVariantEntityResponseCollection + post(id: ID): PostEntityResponse + posts( + filters: PostFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + publicationState: PublicationState = LIVE + ): PostEntityResponseCollection + recorder(id: ID): RecorderEntityResponse + recorders( + filters: RecorderFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): RecorderEntityResponseCollection + scanSet(id: ID): ScanSetEntityResponse + scanSets( + filters: ScanSetFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): ScanSetEntityResponseCollection + source(id: ID): SourceEntityResponse + sources( + filters: SourceFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): SourceEntityResponseCollection + textSet(id: ID): TextSetEntityResponse + textSets( + filters: TextSetFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): TextSetEntityResponseCollection + textualSubtype(id: ID): TextualSubtypeEntityResponse + textualSubtypes( + filters: TextualSubtypeFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): TextualSubtypeEntityResponseCollection + videoSet(id: ID): VideoSetEntityResponse + videoSets( + filters: VideoSetFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): VideoSetEntityResponseCollection + weaponStory(id: ID): WeaponStoryEntityResponse + weaponStories( + filters: WeaponStoryFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): WeaponStoryEntityResponseCollection + weaponStoryGroup(id: ID): WeaponStoryGroupEntityResponse + weaponStoryGroups( + filters: WeaponStoryGroupFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): WeaponStoryGroupEntityResponseCollection + weaponStoryType(id: ID): WeaponStoryTypeEntityResponse + weaponStoryTypes( + filters: WeaponStoryTypeFiltersInput + pagination: PaginationArg = {} + sort: [String] = [] + ): WeaponStoryTypeEntityResponseCollection + me: UsersPermissionsMe +} + +type Mutation { + createUploadFile(data: UploadFileInput!): UploadFileEntityResponse + updateUploadFile(id: ID!, data: UploadFileInput!): UploadFileEntityResponse + deleteUploadFile(id: ID!): UploadFileEntityResponse + createAudioSet(data: AudioSetInput!): AudioSetEntityResponse + updateAudioSet(id: ID!, data: AudioSetInput!): AudioSetEntityResponse + deleteAudioSet(id: ID!): AudioSetEntityResponse + createAudioSubtype(data: AudioSubtypeInput!): AudioSubtypeEntityResponse + updateAudioSubtype( + id: ID! + data: AudioSubtypeInput! + ): AudioSubtypeEntityResponse + deleteAudioSubtype(id: ID!): AudioSubtypeEntityResponse + createCategory(data: CategoryInput!): CategoryEntityResponse + updateCategory(id: ID!, data: CategoryInput!): CategoryEntityResponse + deleteCategory(id: ID!): CategoryEntityResponse + createChronologyEra(data: ChronologyEraInput!): ChronologyEraEntityResponse + updateChronologyEra( + id: ID! + data: ChronologyEraInput! + ): ChronologyEraEntityResponse + deleteChronologyEra(id: ID!): ChronologyEraEntityResponse + createChronologyItem(data: ChronologyItemInput!): ChronologyItemEntityResponse + updateChronologyItem( + id: ID! + data: ChronologyItemInput! + ): ChronologyItemEntityResponse + deleteChronologyItem(id: ID!): ChronologyItemEntityResponse + createContentType(data: ContentTypeInput!): ContentTypeEntityResponse + updateContentType(id: ID!, data: ContentTypeInput!): ContentTypeEntityResponse + deleteContentType(id: ID!): ContentTypeEntityResponse + createCurrency(data: CurrencyInput!): CurrencyEntityResponse + updateCurrency(id: ID!, data: CurrencyInput!): CurrencyEntityResponse + deleteCurrency(id: ID!): CurrencyEntityResponse + createGamePlatform(data: GamePlatformInput!): GamePlatformEntityResponse + updateGamePlatform( + id: ID! + data: GamePlatformInput! + ): GamePlatformEntityResponse + deleteGamePlatform(id: ID!): GamePlatformEntityResponse + createGlossaryItem(data: GlossaryItemInput!): GlossaryItemEntityResponse + updateGlossaryItem( + id: ID! + data: GlossaryItemInput! + ): GlossaryItemEntityResponse + deleteGlossaryItem(id: ID!): GlossaryItemEntityResponse + createGlossaryItemType( + data: GlossaryItemTypeInput! + ): GlossaryItemTypeEntityResponse + updateGlossaryItemType( + id: ID! + data: GlossaryItemTypeInput! + ): GlossaryItemTypeEntityResponse + deleteGlossaryItemType(id: ID!): GlossaryItemTypeEntityResponse + createLanguage(data: LanguageInput!): LanguageEntityResponse + updateLanguage(id: ID!, data: LanguageInput!): LanguageEntityResponse + deleteLanguage(id: ID!): LanguageEntityResponse + createLibraryContent(data: LibraryContentInput!): LibraryContentEntityResponse + updateLibraryContent( + id: ID! + data: LibraryContentInput! + ): LibraryContentEntityResponse + deleteLibraryContent(id: ID!): LibraryContentEntityResponse + createLibraryItem(data: LibraryItemInput!): LibraryItemEntityResponse + updateLibraryItem(id: ID!, data: LibraryItemInput!): LibraryItemEntityResponse + deleteLibraryItem(id: ID!): LibraryItemEntityResponse + createLibraryVariant(data: LibraryVariantInput!): LibraryVariantEntityResponse + updateLibraryVariant( + id: ID! + data: LibraryVariantInput! + ): LibraryVariantEntityResponse + deleteLibraryVariant(id: ID!): LibraryVariantEntityResponse + createPost(data: PostInput!): PostEntityResponse + updatePost(id: ID!, data: PostInput!): PostEntityResponse + deletePost(id: ID!): PostEntityResponse + createRecorder(data: RecorderInput!): RecorderEntityResponse + updateRecorder(id: ID!, data: RecorderInput!): RecorderEntityResponse + deleteRecorder(id: ID!): RecorderEntityResponse + createScanSet(data: ScanSetInput!): ScanSetEntityResponse + updateScanSet(id: ID!, data: ScanSetInput!): ScanSetEntityResponse + deleteScanSet(id: ID!): ScanSetEntityResponse + createSource(data: SourceInput!): SourceEntityResponse + updateSource(id: ID!, data: SourceInput!): SourceEntityResponse + deleteSource(id: ID!): SourceEntityResponse + createTextSet(data: TextSetInput!): TextSetEntityResponse + updateTextSet(id: ID!, data: TextSetInput!): TextSetEntityResponse + deleteTextSet(id: ID!): TextSetEntityResponse + createTextualSubtype(data: TextualSubtypeInput!): TextualSubtypeEntityResponse + updateTextualSubtype( + id: ID! + data: TextualSubtypeInput! + ): TextualSubtypeEntityResponse + deleteTextualSubtype(id: ID!): TextualSubtypeEntityResponse + createVideoSet(data: VideoSetInput!): VideoSetEntityResponse + updateVideoSet(id: ID!, data: VideoSetInput!): VideoSetEntityResponse + deleteVideoSet(id: ID!): VideoSetEntityResponse + createWeaponStory(data: WeaponStoryInput!): WeaponStoryEntityResponse + updateWeaponStory(id: ID!, data: WeaponStoryInput!): WeaponStoryEntityResponse + deleteWeaponStory(id: ID!): WeaponStoryEntityResponse + createWeaponStoryGroup( + data: WeaponStoryGroupInput! + ): WeaponStoryGroupEntityResponse + updateWeaponStoryGroup( + id: ID! + data: WeaponStoryGroupInput! + ): WeaponStoryGroupEntityResponse + deleteWeaponStoryGroup(id: ID!): WeaponStoryGroupEntityResponse + createWeaponStoryType( + data: WeaponStoryTypeInput! + ): WeaponStoryTypeEntityResponse + updateWeaponStoryType( + id: ID! + data: WeaponStoryTypeInput! + ): WeaponStoryTypeEntityResponse + deleteWeaponStoryType(id: ID!): WeaponStoryTypeEntityResponse + upload( + refId: ID + ref: String + field: String + info: FileInfoInput + file: Upload! + ): UploadFileEntityResponse! + multipleUpload( + refId: ID + ref: String + field: String + files: [Upload]! + ): [UploadFileEntityResponse]! + updateFileInfo(id: ID!, info: FileInfoInput): UploadFileEntityResponse! + removeFile(id: ID!): UploadFileEntityResponse + + # Create a new role + createUsersPermissionsRole( + data: UsersPermissionsRoleInput! + ): UsersPermissionsCreateRolePayload + + # Update an existing role + updateUsersPermissionsRole( + id: ID! + data: UsersPermissionsRoleInput! + ): UsersPermissionsUpdateRolePayload + + # Delete an existing role + deleteUsersPermissionsRole(id: ID!): UsersPermissionsDeleteRolePayload + + # Create a new user + createUsersPermissionsUser( + data: UsersPermissionsUserInput! + ): UsersPermissionsUserEntityResponse! + + # Update an existing user + updateUsersPermissionsUser( + id: ID! + data: UsersPermissionsUserInput! + ): UsersPermissionsUserEntityResponse! + + # Update an existing user + deleteUsersPermissionsUser(id: ID!): UsersPermissionsUserEntityResponse! + login(input: UsersPermissionsLoginInput!): UsersPermissionsLoginPayload! + + # Register a user + register(input: UsersPermissionsRegisterInput!): UsersPermissionsLoginPayload! + + # Request a reset password token + forgotPassword(email: String!): UsersPermissionsPasswordPayload + + # Reset user password. Confirm with a code (resetToken from forgotPassword) + resetPassword( + password: String! + passwordConfirmation: String! + code: String! + ): UsersPermissionsLoginPayload + + # Confirm an email users email address + emailConfirmation(confirmation: String!): UsersPermissionsLoginPayload +} diff --git a/src/pages/chronology/overview.tsx b/src/pages/chronology/overview.tsx index 6b31931..df79440 100644 --- a/src/pages/chronology/overview.tsx +++ b/src/pages/chronology/overview.tsx @@ -4,19 +4,18 @@ import SubPanel from "components/Panels/SubPanel"; import ReturnButton from "components/Panels/ReturnButton"; import NavOption from "components/Panels/NavOption"; import ChronologyYearComponent from "components/Chronology/ChronologyYearComponent"; -import { - getChronologyItems, - getChronologyEras, - ChronologyItem, - ChronologyItemsEvent, -} from "queries/chronology/overview"; import { applyCustomAppProps } from "pages/_app"; -import { ChronologyEraEntityResponseCollection } from "queries/types"; +import { + ChronologyItemEntity, + GetChronologyItemsQuery, + GetErasQuery, +} from "graphql/operations-types"; +import { getEras, getChronologyItems } from "graphql/operations"; -type Props = { - chronologyItems: ChronologyItem[]; - chronologyEras: ChronologyEraEntityResponseCollection; -}; +interface Props { + chronologyItems: GetChronologyItemsQuery; + chronologyEras: GetErasQuery; +} applyCustomAppProps(ChronologyOverview, { useSubPanel: true, @@ -25,68 +24,66 @@ applyCustomAppProps(ChronologyOverview, { export default function ChronologyOverview(props: Props): JSX.Element { // Group by year the Chronology items - let chronologyItemYearGroups: ChronologyItem[][] = []; - props.chronologyItems.map((item: ChronologyItem) => { - if (!chronologyItemYearGroups.hasOwnProperty(item.attributes.year)) { - chronologyItemYearGroups[item.attributes.year] = [item]; - } else { - chronologyItemYearGroups[item.attributes.year].push(item); - } - }); + + let chronologyItemYearGroups: ChronologyItemEntity[][] = []; + + 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); + } + } + }); + } return ( <> -
- {props.chronologyEras.data.map((era) => ( - - ))} + {props.chronologyEras.chronologyEras + ? props.chronologyEras.chronologyEras.data.map((era) => ( + <> + {era.attributes && era.attributes.title ? ( + + ) : ( + "" + )} + + )) + : ""}
- {props.chronologyItems.map((item: ChronologyItem) => { - if (!item.attributes.year) - console.warn("Missing year on ChronologyItem (" + item.id + ")"); - item.attributes.events.map((event: ChronologyItemsEvent) => { - if (!event.source.data) { - console.warn( - "Missing Source on ChronologyItem (" + - item.id + - "), Event (" + - event.id + - ")" - ); - } - if (event.translations.length < 1) { - console.warn( - "Missing Translation on ChronologyItem (" + - item.id + - "), Event (" + - event.id + - ")" - ); - } - }); - })} - - {chronologyItemYearGroups.map( - (items: ChronologyItem[], index: number) => { - return ; + {chronologyItemYearGroups.map((items, index: number) => { + if (items && items[0].attributes?.year) { + return ( + + ); } - )} + })} ); @@ -95,8 +92,10 @@ export default function ChronologyOverview(props: Props): JSX.Element { export const getStaticProps: GetStaticProps = async (context) => { return { props: { - chronologyItems: await getChronologyItems(context.locale), - chronologyEras: await getChronologyEras(context.locale), + chronologyItems: await getChronologyItems({ + language_code: context.locale, + }), + chronologyEras: await getEras({ language_code: context.locale }), }, }; }; diff --git a/src/pages/library/index.tsx b/src/pages/library/index.tsx index 29fd910..2d3acab 100644 --- a/src/pages/library/index.tsx +++ b/src/pages/library/index.tsx @@ -1,12 +1,13 @@ import { GetStaticProps } from "next"; import SubPanel from "components/Panels/SubPanel"; import ContentPanel from "components/Panels/ContentPanel"; -import { LibraryItem, getLibraryItems } from "queries/library/index"; import LibraryItemComponent from "components/Library/LibraryItemComponent"; import { applyCustomAppProps } from "pages/_app"; +import { GetLibraryItemsPreviewQuery } from "graphql/operations-types"; +import { getLibraryItemsPreview } from "graphql/operations"; type Props = { - libraryItems: LibraryItem[]; + libraryItems: GetLibraryItemsPreviewQuery; }; applyCustomAppProps(Library, { @@ -15,6 +16,8 @@ applyCustomAppProps(Library, { }); export default function Library(props: Props): JSX.Element { + + console.log(props); return ( <> @@ -29,7 +32,7 @@ export default function Library(props: Props): JSX.Element { - {props.libraryItems.map((item: LibraryItem) => ( + {props.libraryItems.libraryItems?.data.map((item) => ( ))} @@ -40,7 +43,7 @@ export default function Library(props: Props): JSX.Element { export const getStaticProps: GetStaticProps = async (context) => { return { props: { - libraryItems: await getLibraryItems(context.locale), + libraryItems: await getLibraryItemsPreview({language_code: context.locale}), }, }; }; diff --git a/src/queries/chronology/overview.ts b/src/queries/chronology/overview.ts deleted file mode 100644 index 184eb47..0000000 --- a/src/queries/chronology/overview.ts +++ /dev/null @@ -1,109 +0,0 @@ -import { queryGraphQL } from "queries/helpers"; -import { Source } from "queries/helpers"; -import { ChronologyEraEntityResponseCollection } from "queries/types"; - -export type ChronologyItem = { - id: string; - attributes: { - year: number; - month: number; - day: number; - displayed_date: string; - events: ChronologyItemsEvent[]; - }; -}; - -export type ChronologyItemsEvent = { - id: string; - source: Source; - translations: { - title: string; - description: string; - note: string; - status: string; - }[]; -}; - -export async function getChronologyItems( - language_code: string | undefined -): Promise { - return ( - await queryGraphQL( - ` - { - chronologyItems (pagination: {limit: -1}, sort: ["year:asc", "month:asc", "day:asc"]) { - data { - id - attributes { - year - month - day - displayed_date - events { - id - source { - data { - attributes { - name - } - } - } - translations(filters: { language: { code: { eq: "${language_code}" } } }) { - title - description - note - status - } - } - } - } - } - } - ` - ) - ).chronologyItems.data; -} - -/* -export type ChronologyEra = { - id: string; - attributes: ChronologyEraAttributes; -}; - -export type ChronologyEraAttributes = { - slug: string; - starting_year: number; - ending_year: number; - title: ChronologyEraTranslation[]; -}; - -export type ChronologyEraTranslation = { - title: string; -}; -*/ - -export async function getChronologyEras( - language_code: string | undefined -): Promise { - return ( - await queryGraphQL( - ` - { - chronologyEras { - data { - id - attributes { - slug - starting_year - ending_year - title (filters: {language: {code: {eq: "${language_code}"}}}){ - title - } - } - } - } - } - ` - ) - ).chronologyEras; -} diff --git a/src/queries/helpers.ts b/src/queries/helpers.ts index cb528ef..12ae290 100644 --- a/src/queries/helpers.ts +++ b/src/queries/helpers.ts @@ -1,8 +1,9 @@ -export const queryGraphQL = async (query: String) => { +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", @@ -12,17 +13,6 @@ export const queryGraphQL = async (query: String) => { return (await res.json()).data; }; -export const queryGraphQLSystem = async (query: string) => { - const res = await fetch( - process.env.URL_GRAPHQL_SYSTEM + - "?access_token=" + - process.env.ACCESS_TOKEN + - "&query=" + - query - ); - return (await res.json()).data; -}; - export function getAssetURL(url: string): string { return process.env.NEXT_PUBLIC_URL_CMS + url; }