From 7a322d89747427a617b663b8cd7f40ac5095c7ee Mon Sep 17 00:00:00 2001 From: Jason Kuhrt Date: Mon, 21 Oct 2024 14:57:50 -0400 Subject: [PATCH] refactor(generator): kind map clean up (#1207) --- src/extensions/SchemaErrors/generator.ts | 2 +- .../tests/fixture/graffle/modules/Global.ts | 2 +- .../fixture/graffle/modules/MethodsSelect.ts | 2 +- .../tests/fixture/graffle/modules/Schema.ts | 274 +-- .../graffle/modules/SchemaDrivenDataMap.ts | 76 +- .../tests/fixture/graffle/modules/Select.ts | 4 +- .../fixture/graffle/modules/SelectionSets.ts | 572 +++--- src/generator/config/config.ts | 2 +- .../__snapshots__/generate.test.ts.snap | 1788 ++++++++--------- src/generator/generators/MethodsRoot.ts | 4 +- src/generator/generators/MethodsSelect.ts | 25 +- src/generator/generators/Scalar.ts | 6 +- src/generator/generators/Schema.ts | 42 +- .../generators/SchemaDrivenDataMap.ts | 72 +- src/generator/generators/Select.ts | 11 +- src/generator/generators/SelectionSets.ts | 63 +- src/generator/generators/global.ts | 4 +- src/generator/helpers/identifiers.ts | 2 +- src/generator/helpers/render.ts | 19 +- src/generator/helpers/types.ts | 3 + src/lib/grafaid/graphql.ts | 64 +- .../schema/{kindMap.ts => KindMap/_.ts} | 74 +- src/lib/grafaid/schema/KindMap/__.ts | 21 + src/lib/grafaid/schema/customScalars.ts | 10 +- src/lib/grafaid/schema/schema.ts | 16 +- src/types/Schema/nodes/OutputField.ts | 6 +- src/types/Schema/nodes/OutputObject.ts | 4 +- src/types/SchemaDrivenDataMap/InlineType.ts | 13 + .../SchemaDrivenDataMap.ts | 17 +- .../kitchen-sink/graffle/modules/Global.ts | 2 +- .../graffle/modules/MethodsSelect.ts | 2 +- .../kitchen-sink/graffle/modules/Schema.ts | 274 +-- .../graffle/modules/SchemaDrivenDataMap.ts | 76 +- .../kitchen-sink/graffle/modules/Select.ts | 4 +- .../graffle/modules/SelectionSets.ts | 572 +++--- .../graffle/modules/MethodsSelect.ts | 48 + .../mutation-only/graffle/modules/Schema.ts | 10 +- .../graffle/modules/SchemaDrivenDataMap.ts | 34 +- .../mutation-only/graffle/modules/Select.ts | 4 +- .../graffle/modules/SelectionSets.ts | 8 +- .../pokemon/graffle/modules/MethodsSelect.ts | 2 +- .../schemas/pokemon/graffle/modules/Schema.ts | 184 +- .../graffle/modules/SchemaDrivenDataMap.ts | 58 +- .../schemas/pokemon/graffle/modules/Select.ts | 4 +- .../pokemon/graffle/modules/SelectionSets.ts | 308 +-- .../graffle/modules/MethodsSelect.ts | 48 + .../query-only/graffle/modules/Schema.ts | 10 +- .../graffle/modules/SchemaDrivenDataMap.ts | 34 +- .../query-only/graffle/modules/Select.ts | 4 +- .../graffle/modules/SelectionSets.ts | 8 +- website/graffle/modules/MethodsSelect.ts | 34 +- website/graffle/modules/Schema.ts | 118 +- .../graffle/modules/SchemaDrivenDataMap.ts | 48 +- website/graffle/modules/Select.ts | 4 +- website/graffle/modules/SelectionSets.ts | 86 +- website/pokemon/modules/MethodsSelect.ts | 2 +- website/pokemon/modules/Schema.ts | 188 +- .../pokemon/modules/SchemaDrivenDataMap.ts | 58 +- website/pokemon/modules/Select.ts | 4 +- website/pokemon/modules/SelectionSets.ts | 308 +-- 60 files changed, 2922 insertions(+), 2820 deletions(-) create mode 100644 src/generator/helpers/types.ts rename src/lib/grafaid/schema/{kindMap.ts => KindMap/_.ts} (51%) create mode 100644 src/lib/grafaid/schema/KindMap/__.ts create mode 100644 src/types/SchemaDrivenDataMap/InlineType.ts diff --git a/src/extensions/SchemaErrors/generator.ts b/src/extensions/SchemaErrors/generator.ts index 7b152db05..fb285b26b 100644 --- a/src/extensions/SchemaErrors/generator.ts +++ b/src/extensions/SchemaErrors/generator.ts @@ -57,5 +57,5 @@ export const SchemaErrors = (input?: Input) => { // todo memoize const getErrorObjects = (config: Config, genConfig: GeneratorConfig) => { - return Object.values(genConfig.schema.kindMap.GraphQLObjectType).filter(config.isErrorType) + return Object.values(genConfig.schema.kindMap.OutputObject).filter(config.isErrorType) } diff --git a/src/extensions/SchemaErrors/tests/fixture/graffle/modules/Global.ts b/src/extensions/SchemaErrors/tests/fixture/graffle/modules/Global.ts index 2659a6fcf..f1c810e02 100644 --- a/src/extensions/SchemaErrors/tests/fixture/graffle/modules/Global.ts +++ b/src/extensions/SchemaErrors/tests/fixture/graffle/modules/Global.ts @@ -2,7 +2,7 @@ import type * as Data from './Data.js' import type * as MethodsDocument from './MethodsDocument.js' import type * as MethodsRoot from './MethodsRoot.js' import type * as MethodsSelect from './MethodsSelect.js' -import type * as Scalar from './Scalar.js' +import type * as $Scalar from './Scalar.js' import type { Schema } from './Schema.js' declare global { diff --git a/src/extensions/SchemaErrors/tests/fixture/graffle/modules/MethodsSelect.ts b/src/extensions/SchemaErrors/tests/fixture/graffle/modules/MethodsSelect.ts index 1944a1a06..41c7532a2 100644 --- a/src/extensions/SchemaErrors/tests/fixture/graffle/modules/MethodsSelect.ts +++ b/src/extensions/SchemaErrors/tests/fixture/graffle/modules/MethodsSelect.ts @@ -73,7 +73,7 @@ export interface Query { // // // ================================================================================================== -// Object +// OutputObject // ================================================================================================== // // diff --git a/src/extensions/SchemaErrors/tests/fixture/graffle/modules/Schema.ts b/src/extensions/SchemaErrors/tests/fixture/graffle/modules/Schema.ts index 4a1ff7f26..ae0c26345 100644 --- a/src/extensions/SchemaErrors/tests/fixture/graffle/modules/Schema.ts +++ b/src/extensions/SchemaErrors/tests/fixture/graffle/modules/Schema.ts @@ -21,19 +21,19 @@ export namespace Schema { // export type Mutation = $.StandardTypes.Mutation<{ - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - idNonNull: $.Field<'idNonNull', $Scalar.ID, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + idNonNull: $.OutputField<'idNonNull', $Scalar.ID, null> }> export type Query = $.StandardTypes.Query<{ - InputObjectNested: $.Field< + InputObjectNested: $.OutputField< 'InputObjectNested', $.Nullable<$Scalar.ID>, $.Args<{ input: $.InputField<$.Nullable> }, true> > - InputObjectNestedNonNull: $.Field< + InputObjectNestedNonNull: $.OutputField< 'InputObjectNestedNonNull', $.Nullable<$Scalar.ID>, $.Args<{ @@ -43,93 +43,93 @@ export namespace Schema { /** * Query enum field documentation. */ - abcEnum: $.Field<'abcEnum', $.Nullable, null> - argInputObjectCircular: $.Field< + abcEnum: $.OutputField<'abcEnum', $.Nullable, null> + argInputObjectCircular: $.OutputField< 'argInputObjectCircular', $.Nullable<$Scalar.String>, $.Args<{ input: $.InputField<$.Nullable> }, true> > - date: $.Field<'date', $.Nullable<$Scalar.Date>, null> - dateArg: $.Field< + date: $.OutputField<'date', $.Nullable<$Scalar.Date>, null> + dateArg: $.OutputField< 'dateArg', $.Nullable<$Scalar.Date>, $.Args<{ date: $.InputField<$.Nullable<$Scalar.Date>> }, true> > - dateArgInputObject: $.Field< + dateArgInputObject: $.OutputField< 'dateArgInputObject', $.Nullable<$Scalar.Date>, $.Args<{ input: $.InputField<$.Nullable> }, true> > - dateArgList: $.Field< + dateArgList: $.OutputField< 'dateArgList', $.Nullable<$Scalar.Date>, $.Args<{ date: $.InputField<$.Nullable<$.List<$Scalar.Date>>> }, true> > - dateArgNonNull: $.Field< + dateArgNonNull: $.OutputField< 'dateArgNonNull', $.Nullable<$Scalar.Date>, $.Args<{ date: $.InputField<$Scalar.Date> }, false> > - dateArgNonNullList: $.Field< + dateArgNonNullList: $.OutputField< 'dateArgNonNullList', $.Nullable<$Scalar.Date>, $.Args<{ date: $.InputField<$.List<$.Nullable<$Scalar.Date>>> }, false> > - dateArgNonNullListNonNull: $.Field< + dateArgNonNullListNonNull: $.OutputField< 'dateArgNonNullListNonNull', $.Nullable<$Scalar.Date>, $.Args<{ date: $.InputField<$.List<$Scalar.Date>> }, false> > - dateInterface1: $.Field<'dateInterface1', $.Nullable, null> - dateList: $.Field<'dateList', $.Nullable<$.List<$Scalar.Date>>, null> - dateListList: $.Field<'dateListList', $.Nullable<$.List<$.List<$Scalar.Date>>>, null> - dateListNonNull: $.Field<'dateListNonNull', $.List<$Scalar.Date>, null> - dateNonNull: $.Field<'dateNonNull', $Scalar.Date, null> - dateObject1: $.Field<'dateObject1', $.Nullable, null> - dateUnion: $.Field<'dateUnion', $.Nullable, null> - error: $.Field< + dateInterface1: $.OutputField<'dateInterface1', $.Nullable, null> + dateList: $.OutputField<'dateList', $.Nullable<$.List<$Scalar.Date>>, null> + dateListList: $.OutputField<'dateListList', $.Nullable<$.List<$.List<$Scalar.Date>>>, null> + dateListNonNull: $.OutputField<'dateListNonNull', $.List<$Scalar.Date>, null> + dateNonNull: $.OutputField<'dateNonNull', $Scalar.Date, null> + dateObject1: $.OutputField<'dateObject1', $.Nullable, null> + dateUnion: $.OutputField<'dateUnion', $.Nullable, null> + error: $.OutputField< 'error', $.Nullable<$Scalar.String>, $.Args<{ case: $.InputField<$.Nullable<$Scalar.String>> }, true> > - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - idNonNull: $.Field<'idNonNull', $Scalar.ID, null> - interface: $.Field<'interface', $.Nullable, null> - interfaceNonNull: $.Field<'interfaceNonNull', Interface, null> - interfaceWithArgs: $.Field< + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + idNonNull: $.OutputField<'idNonNull', $Scalar.ID, null> + interface: $.OutputField<'interface', $.Nullable, null> + interfaceNonNull: $.OutputField<'interfaceNonNull', Interface, null> + interfaceWithArgs: $.OutputField< 'interfaceWithArgs', $.Nullable, $.Args<{ id: $.InputField<$Scalar.ID> }, false> > - listInt: $.Field<'listInt', $.Nullable<$.List<$.Nullable<$Scalar.Int>>>, null> - listIntNonNull: $.Field<'listIntNonNull', $.List<$Scalar.Int>, null> - listListInt: $.Field<'listListInt', $.Nullable<$.List<$.Nullable<$.List<$.Nullable<$Scalar.Int>>>>>, null> - listListIntNonNull: $.Field<'listListIntNonNull', $.List<$.List<$Scalar.Int>>, null> - lowerCaseUnion: $.Field<'lowerCaseUnion', $.Nullable, null> - object: $.Field<'object', $.Nullable, null> - objectList: $.Field<'objectList', $.Nullable<$.List>, null> - objectListNonNull: $.Field<'objectListNonNull', $.List, null> - objectNested: $.Field<'objectNested', $.Nullable, null> - objectNonNull: $.Field<'objectNonNull', Object1, null> - objectWithArgs: $.Field< + listInt: $.OutputField<'listInt', $.Nullable<$.List<$.Nullable<$Scalar.Int>>>, null> + listIntNonNull: $.OutputField<'listIntNonNull', $.List<$Scalar.Int>, null> + listListInt: $.OutputField<'listListInt', $.Nullable<$.List<$.Nullable<$.List<$.Nullable<$Scalar.Int>>>>>, null> + listListIntNonNull: $.OutputField<'listListIntNonNull', $.List<$.List<$Scalar.Int>>, null> + lowerCaseUnion: $.OutputField<'lowerCaseUnion', $.Nullable, null> + object: $.OutputField<'object', $.Nullable, null> + objectList: $.OutputField<'objectList', $.Nullable<$.List>, null> + objectListNonNull: $.OutputField<'objectListNonNull', $.List, null> + objectNested: $.OutputField<'objectNested', $.Nullable, null> + objectNonNull: $.OutputField<'objectNonNull', Object1, null> + objectWithArgs: $.OutputField< 'objectWithArgs', $.Nullable, $.Args<{ @@ -140,36 +140,36 @@ export namespace Schema { string: $.InputField<$.Nullable<$Scalar.String>> }, true> > - result: $.Field< + result: $.OutputField< 'result', $.Nullable, $.Args<{ case: $.InputField }, false> > - resultNonNull: $.Field< + resultNonNull: $.OutputField< 'resultNonNull', Result, $.Args<{ case: $.InputField<$.Nullable> }, true> > - string: $.Field<'string', $.Nullable<$Scalar.String>, null> - stringWithArgEnum: $.Field< + string: $.OutputField<'string', $.Nullable<$Scalar.String>, null> + stringWithArgEnum: $.OutputField< 'stringWithArgEnum', $.Nullable<$Scalar.String>, $.Args<{ ABCEnum: $.InputField<$.Nullable> }, true> > - stringWithArgInputObject: $.Field< + stringWithArgInputObject: $.OutputField< 'stringWithArgInputObject', $.Nullable<$Scalar.String>, $.Args<{ input: $.InputField<$.Nullable> }, true> > - stringWithArgInputObjectRequired: $.Field< + stringWithArgInputObjectRequired: $.OutputField< 'stringWithArgInputObjectRequired', $.Nullable<$Scalar.String>, $.Args<{ @@ -179,7 +179,7 @@ export namespace Schema { /** * The given arguments are reflected back as a JSON string. */ - stringWithArgs: $.Field< + stringWithArgs: $.OutputField< 'stringWithArgs', $.Nullable<$Scalar.String>, $.Args<{ @@ -190,38 +190,38 @@ export namespace Schema { string: $.InputField<$.Nullable<$Scalar.String>> }, true> > - stringWithListArg: $.Field< + stringWithListArg: $.OutputField< 'stringWithListArg', $.Nullable<$Scalar.String>, $.Args<{ ints: $.InputField<$.Nullable<$.List<$.Nullable<$Scalar.Int>>>> }, true> > - stringWithListArgRequired: $.Field< + stringWithListArgRequired: $.OutputField< 'stringWithListArgRequired', $.Nullable<$Scalar.String>, $.Args<{ ints: $.InputField<$.List<$Scalar.Int>> }, false> > - stringWithRequiredArg: $.Field< + stringWithRequiredArg: $.OutputField< 'stringWithRequiredArg', $.Nullable<$Scalar.String>, $.Args<{ string: $.InputField<$Scalar.String> }, false> > - unionFooBar: $.Field<'unionFooBar', $.Nullable, null> - unionFooBarNonNull: $.Field<'unionFooBarNonNull', FooBarUnion, null> - unionFooBarWithArgs: $.Field< + unionFooBar: $.OutputField<'unionFooBar', $.Nullable, null> + unionFooBarNonNull: $.OutputField<'unionFooBarNonNull', FooBarUnion, null> + unionFooBarWithArgs: $.OutputField< 'unionFooBarWithArgs', $.Nullable, $.Args<{ id: $.InputField<$.Nullable<$Scalar.ID>> }, true> > - unionObject: $.Field<'unionObject', $.Nullable, null> - unionObjectNonNull: $.Field<'unionObjectNonNull', ObjectUnion, null> + unionObject: $.OutputField<'unionObject', $.Nullable, null> + unionObjectNonNull: $.OutputField<'unionObjectNonNull', ObjectUnion, null> }> // @@ -231,7 +231,7 @@ export namespace Schema { // // // ================================================================================================== - // Enum + // OutputObject // ================================================================================================== // // @@ -240,17 +240,75 @@ export namespace Schema { // // + export type Bar = $.OutputObject<'Bar', { + int: $.OutputField<'int', $.Nullable<$Scalar.Int>, null> + }> + + export type DateObject1 = $.OutputObject<'DateObject1', { + date1: $.OutputField<'date1', $.Nullable<$Scalar.Date>, null> + }> + + export type DateObject2 = $.OutputObject<'DateObject2', { + date2: $.OutputField<'date2', $.Nullable<$Scalar.Date>, null> + }> + + export type ErrorOne = $.OutputObject<'ErrorOne', { + infoId: $.OutputField<'infoId', $.Nullable<$Scalar.ID>, null> + message: $.OutputField<'message', $Scalar.String, null> + }> + + export type ErrorTwo = $.OutputObject<'ErrorTwo', { + infoInt: $.OutputField<'infoInt', $.Nullable<$Scalar.Int>, null> + message: $.OutputField<'message', $Scalar.String, null> + }> + /** - * Enum documentation. - * - * Members - * "A" - (DEPRECATED: Enum value A is deprecated.) - * "B" - Enum B member documentation. - * "C" - (DEPRECATED: Enum value C is deprecated.) + * Object documentation. */ - export type ABCEnum = $.Enum<'ABCEnum', ['A', 'B', 'C']> + export type Foo = $.OutputObject<'Foo', { + /** + * Field documentation. + * + * @deprecated Field a is deprecated. + */ + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + }> - export type Case = $.Enum<'Case', ['ErrorOne', 'ErrorTwo', 'Object1']> + export type Object1 = $.OutputObject<'Object1', { + ABCEnum: $.OutputField<'ABCEnum', $.Nullable, null> + boolean: $.OutputField<'boolean', $.Nullable<$Scalar.Boolean>, null> + float: $.OutputField<'float', $.Nullable<$Scalar.Float>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + int: $.OutputField<'int', $.Nullable<$Scalar.Int>, null> + string: $.OutputField<'string', $.Nullable<$Scalar.String>, null> + }> + + export type Object1ImplementingInterface = $.OutputObject<'Object1ImplementingInterface', { + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + int: $.OutputField<'int', $.Nullable<$Scalar.Int>, null> + }> + + export type Object2ImplementingInterface = $.OutputObject<'Object2ImplementingInterface', { + boolean: $.OutputField<'boolean', $.Nullable<$Scalar.Boolean>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + }> + + export type ObjectNested = $.OutputObject<'ObjectNested', { + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + object: $.OutputField<'object', $.Nullable, null> + }> + + export type ObjectUnion = $.OutputObject<'ObjectUnion', { + fooBarUnion: $.OutputField<'fooBarUnion', $.Nullable, null> + }> + + export type lowerCaseObject = $.OutputObject<'lowerCaseObject', { + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + }> + + export type lowerCaseObject2 = $.OutputObject<'lowerCaseObject2', { + int: $.OutputField<'int', $.Nullable<$Scalar.Int>, null> + }> // // @@ -305,15 +363,15 @@ export namespace Schema { // export type DateInterface1 = $.Interface<'DateInterface1', { - date1: $.Field<'date1', $.Nullable<$Scalar.Date>, null> + date1: $.OutputField<'date1', $.Nullable<$Scalar.Date>, null> }, [DateObject1]> export type Error = $.Interface<'Error', { - message: $.Field<'message', $Scalar.String, null> + message: $.OutputField<'message', $Scalar.String, null> }, [ErrorOne, ErrorTwo]> export type Interface = $.Interface<'Interface', { - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> }, [Object1ImplementingInterface, Object2ImplementingInterface]> // @@ -323,7 +381,7 @@ export namespace Schema { // // // ================================================================================================== - // Object + // Union // ================================================================================================== // // @@ -332,75 +390,16 @@ export namespace Schema { // // - export type Bar = $.OutputObject<'Bar', { - int: $.Field<'int', $.Nullable<$Scalar.Int>, null> - }> - - export type DateObject1 = $.OutputObject<'DateObject1', { - date1: $.Field<'date1', $.Nullable<$Scalar.Date>, null> - }> - - export type DateObject2 = $.OutputObject<'DateObject2', { - date2: $.Field<'date2', $.Nullable<$Scalar.Date>, null> - }> - - export type ErrorOne = $.OutputObject<'ErrorOne', { - infoId: $.Field<'infoId', $.Nullable<$Scalar.ID>, null> - message: $.Field<'message', $Scalar.String, null> - }> - - export type ErrorTwo = $.OutputObject<'ErrorTwo', { - infoInt: $.Field<'infoInt', $.Nullable<$Scalar.Int>, null> - message: $.Field<'message', $Scalar.String, null> - }> + export type DateUnion = $.Union<'DateUnion', [DateObject1, DateObject2]> /** - * Object documentation. + * Union documentation. */ - export type Foo = $.OutputObject<'Foo', { - /** - * Field documentation. - * - * @deprecated Field a is deprecated. - */ - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - }> - - export type Object1 = $.OutputObject<'Object1', { - ABCEnum: $.Field<'ABCEnum', $.Nullable, null> - boolean: $.Field<'boolean', $.Nullable<$Scalar.Boolean>, null> - float: $.Field<'float', $.Nullable<$Scalar.Float>, null> - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - int: $.Field<'int', $.Nullable<$Scalar.Int>, null> - string: $.Field<'string', $.Nullable<$Scalar.String>, null> - }> - - export type Object1ImplementingInterface = $.OutputObject<'Object1ImplementingInterface', { - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - int: $.Field<'int', $.Nullable<$Scalar.Int>, null> - }> - - export type Object2ImplementingInterface = $.OutputObject<'Object2ImplementingInterface', { - boolean: $.Field<'boolean', $.Nullable<$Scalar.Boolean>, null> - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - }> - - export type ObjectNested = $.OutputObject<'ObjectNested', { - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - object: $.Field<'object', $.Nullable, null> - }> - - export type ObjectUnion = $.OutputObject<'ObjectUnion', { - fooBarUnion: $.Field<'fooBarUnion', $.Nullable, null> - }> + export type FooBarUnion = $.Union<'FooBarUnion', [Bar, Foo]> - export type lowerCaseObject = $.OutputObject<'lowerCaseObject', { - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - }> + export type Result = $.Union<'Result', [ErrorOne, ErrorTwo, Object1]> - export type lowerCaseObject2 = $.OutputObject<'lowerCaseObject2', { - int: $.Field<'int', $.Nullable<$Scalar.Int>, null> - }> + export type lowerCaseUnion = $.Union<'lowerCaseUnion', [lowerCaseObject, lowerCaseObject2]> // // @@ -409,7 +408,7 @@ export namespace Schema { // // // ================================================================================================== - // Union + // Enum // ================================================================================================== // // @@ -418,16 +417,17 @@ export namespace Schema { // // - export type DateUnion = $.Union<'DateUnion', [DateObject1, DateObject2]> - /** - * Union documentation. + * Enum documentation. + * + * Members + * "A" - (DEPRECATED: Enum value A is deprecated.) + * "B" - Enum B member documentation. + * "C" - (DEPRECATED: Enum value C is deprecated.) */ - export type FooBarUnion = $.Union<'FooBarUnion', [Bar, Foo]> - - export type Result = $.Union<'Result', [ErrorOne, ErrorTwo, Object1]> + export type ABCEnum = $.Enum<'ABCEnum', ['A', 'B', 'C']> - export type lowerCaseUnion = $.Union<'lowerCaseUnion', [lowerCaseObject, lowerCaseObject2]> + export type Case = $.Enum<'Case', ['ErrorOne', 'ErrorTwo', 'Object1']> } // diff --git a/src/extensions/SchemaErrors/tests/fixture/graffle/modules/SchemaDrivenDataMap.ts b/src/extensions/SchemaErrors/tests/fixture/graffle/modules/SchemaDrivenDataMap.ts index a08e59e1f..3a66b5744 100644 --- a/src/extensions/SchemaErrors/tests/fixture/graffle/modules/SchemaDrivenDataMap.ts +++ b/src/extensions/SchemaErrors/tests/fixture/graffle/modules/SchemaDrivenDataMap.ts @@ -1,4 +1,4 @@ -import type * as $Utilities from '../../../../../../entrypoints/utilities-for-generated.js' +import type * as $$Utilities from '../../../../../../entrypoints/utilities-for-generated.js' import * as $Scalar from './Scalar.js' // // @@ -7,7 +7,7 @@ import * as $Scalar from './Scalar.js' // // // ================================================================================================== -// GraphQLScalarTypeStandard +// ScalarStandard // ================================================================================================== // // @@ -33,7 +33,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLScalarTypeCustom +// ScalarCustom // ================================================================================================== // // @@ -51,7 +51,7 @@ const Date = 'Date' // // // ================================================================================================== -// GraphQLEnumType +// Enum // ================================================================================================== // // @@ -60,12 +60,12 @@ const Date = 'Date' // // -const ABCEnum: $Utilities.SchemaDrivenDataMap.Enum = { +const ABCEnum: $$Utilities.SchemaDrivenDataMap.Enum = { k: 'enum', n: 'ABCEnum', } -const Case: $Utilities.SchemaDrivenDataMap.Enum = { +const Case: $$Utilities.SchemaDrivenDataMap.Enum = { k: 'enum', n: 'Case', } @@ -77,7 +77,7 @@ const Case: $Utilities.SchemaDrivenDataMap.Enum = { // // // ================================================================================================== -// GraphQLInputObjectType +// InputObject // ================================================================================================== // // @@ -86,7 +86,7 @@ const Case: $Utilities.SchemaDrivenDataMap.Enum = { // // -const InputObject: $Utilities.SchemaDrivenDataMap.InputObject = { +const InputObject: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'InputObject', fcs: ['date', 'dateRequired'], f: { @@ -101,7 +101,7 @@ const InputObject: $Utilities.SchemaDrivenDataMap.InputObject = { }, } -const InputObjectCircular: $Utilities.SchemaDrivenDataMap.InputObject = { +const InputObjectCircular: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'InputObjectCircular', fcs: ['circular', 'date'], f: { @@ -114,7 +114,7 @@ const InputObjectCircular: $Utilities.SchemaDrivenDataMap.InputObject = { }, } -const InputObjectNested: $Utilities.SchemaDrivenDataMap.InputObject = { +const InputObjectNested: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'InputObjectNested', fcs: ['InputObject'], f: { @@ -124,7 +124,7 @@ const InputObjectNested: $Utilities.SchemaDrivenDataMap.InputObject = { }, } -const InputObjectNestedNonNull: $Utilities.SchemaDrivenDataMap.InputObject = { +const InputObjectNestedNonNull: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'InputObjectNestedNonNull', fcs: ['InputObject'], f: { @@ -141,7 +141,7 @@ const InputObjectNestedNonNull: $Utilities.SchemaDrivenDataMap.InputObject = { // // // ================================================================================================== -// GraphQLObjectType +// OutputObject // ================================================================================================== // // @@ -150,13 +150,13 @@ const InputObjectNestedNonNull: $Utilities.SchemaDrivenDataMap.InputObject = { // // -const Bar: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Bar: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { int: {}, }, } -const DateObject1: $Utilities.SchemaDrivenDataMap.OutputObject = { +const DateObject1: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { date1: { nt: Date, @@ -164,7 +164,7 @@ const DateObject1: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const DateObject2: $Utilities.SchemaDrivenDataMap.OutputObject = { +const DateObject2: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { date2: { nt: Date, @@ -172,7 +172,7 @@ const DateObject2: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const ErrorOne: $Utilities.SchemaDrivenDataMap.OutputObject = { +const ErrorOne: $$Utilities.SchemaDrivenDataMap.OutputObject = { e: 1, f: { infoId: {}, @@ -180,7 +180,7 @@ const ErrorOne: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const ErrorTwo: $Utilities.SchemaDrivenDataMap.OutputObject = { +const ErrorTwo: $$Utilities.SchemaDrivenDataMap.OutputObject = { e: 1, f: { infoInt: {}, @@ -188,13 +188,13 @@ const ErrorTwo: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const Foo: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Foo: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, }, } -const Object1: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Object1: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { ABCEnum: {}, boolean: {}, @@ -205,21 +205,21 @@ const Object1: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const Object1ImplementingInterface: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Object1ImplementingInterface: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, int: {}, }, } -const Object2ImplementingInterface: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Object2ImplementingInterface: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { boolean: {}, id: {}, }, } -const ObjectNested: $Utilities.SchemaDrivenDataMap.OutputObject = { +const ObjectNested: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, object: { @@ -228,7 +228,7 @@ const ObjectNested: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const ObjectUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { +const ObjectUnion: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { fooBarUnion: { // nt: FooBarUnion, <-- Assigned later to avoid potential circular dependency. @@ -236,13 +236,13 @@ const ObjectUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const lowerCaseObject: $Utilities.SchemaDrivenDataMap.OutputObject = { +const lowerCaseObject: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, }, } -const lowerCaseObject2: $Utilities.SchemaDrivenDataMap.OutputObject = { +const lowerCaseObject2: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { int: {}, }, @@ -255,7 +255,7 @@ const lowerCaseObject2: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLInterfaceType +// Interface // ================================================================================================== // // @@ -264,17 +264,17 @@ const lowerCaseObject2: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const DateInterface1: $Utilities.SchemaDrivenDataMap.OutputObject = { +const DateInterface1: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { ...DateObject1.f, }, } -const Error: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Error: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } -const Interface: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Interface: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } @@ -285,7 +285,7 @@ const Interface: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLUnionType +// Union // ================================================================================================== // // @@ -294,22 +294,22 @@ const Interface: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const DateUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { +const DateUnion: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { ...DateObject1.f, ...DateObject2.f, }, } -const FooBarUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { +const FooBarUnion: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } -const Result: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Result: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } -const lowerCaseUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { +const lowerCaseUnion: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } @@ -320,7 +320,7 @@ const lowerCaseUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLRootType +// Root // ================================================================================================== // // @@ -329,14 +329,14 @@ const lowerCaseUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const Mutation: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Mutation: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, idNonNull: {}, }, } -const Query: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Query: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { InputObjectNested: { a: { @@ -689,7 +689,7 @@ Query.f[`unionObjectNonNull`]!.nt = ObjectUnion // // -const $schemaDrivenDataMap: $Utilities.SchemaDrivenDataMap = { +const $schemaDrivenDataMap: $$Utilities.SchemaDrivenDataMap = { roots: { Mutation, Query, diff --git a/src/extensions/SchemaErrors/tests/fixture/graffle/modules/Select.ts b/src/extensions/SchemaErrors/tests/fixture/graffle/modules/Select.ts index 03b38ab5f..d4fe27f4e 100644 --- a/src/extensions/SchemaErrors/tests/fixture/graffle/modules/Select.ts +++ b/src/extensions/SchemaErrors/tests/fixture/graffle/modules/Select.ts @@ -46,8 +46,8 @@ export namespace Select { 'Mutation' > export type Query<$SelectionSet extends SelectionSets.Query> = InferResult.Root<$SelectionSet, Schema, 'Query'> - // Object Types - // ------------ + // OutputObject Types + // ------------------ export type Bar<$SelectionSet extends SelectionSets.Bar> = InferResult.Object< $SelectionSet, Schema, diff --git a/src/extensions/SchemaErrors/tests/fixture/graffle/modules/SelectionSets.ts b/src/extensions/SchemaErrors/tests/fixture/graffle/modules/SelectionSets.ts index 969f87a9f..2efcbc73b 100644 --- a/src/extensions/SchemaErrors/tests/fixture/graffle/modules/SelectionSets.ts +++ b/src/extensions/SchemaErrors/tests/fixture/graffle/modules/SelectionSets.ts @@ -31,7 +31,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap // // // ================================================================================================== -// GraphQLObjectType Types +// Root // ================================================================================================== // // @@ -45,7 +45,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap // // // GRAPHQL SELECTION SET -// OBJECT +// ROOT // -------------------------------------------------------------------------------------------------- // Mutation // -------------------------------------------------------------------------------------------------- @@ -56,11 +56,11 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap export interface Mutation<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `id` field on the `Mutation` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Mutation` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Mutation.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `idNonNull` field on the `Mutation` object. Its type is `ID` (a `Scalar`). + * Select the `idNonNull` field on the `Mutation` object. Its type is `ID` (a `ScalarStandard` kind of type). */ idNonNull?: Mutation.idNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -141,7 +141,7 @@ export namespace Mutation { // // // GRAPHQL SELECTION SET -// OBJECT +// ROOT // -------------------------------------------------------------------------------------------------- // Query // -------------------------------------------------------------------------------------------------- @@ -152,255 +152,255 @@ export namespace Mutation { export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `InputObjectNested` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `InputObjectNested` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ InputObjectNested?: | Query.InputObjectNested$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `InputObjectNestedNonNull` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `InputObjectNestedNonNull` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ InputObjectNestedNonNull?: | Query.InputObjectNestedNonNull<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `abcEnum` field on the `Query` object. Its type is Enum. + * Select the `abcEnum` field on the `Query` object. Its type is `ABCEnum` (a `Enum` kind of type). */ abcEnum?: Query.abcEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `argInputObjectCircular` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `argInputObjectCircular` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ argInputObjectCircular?: | Query.argInputObjectCircular$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `date` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `date` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ date?: Query.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArg` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArg` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArg?: Query.dateArg$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgInputObject` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgInputObject` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgInputObject?: | Query.dateArgInputObject$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgList` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgList` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgList?: Query.dateArgList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgNonNull` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgNonNull` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgNonNull?: Query.dateArgNonNull<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgNonNullList` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgNonNullList` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgNonNullList?: | Query.dateArgNonNullList<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgNonNullListNonNull` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgNonNullListNonNull` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgNonNullListNonNull?: | Query.dateArgNonNullListNonNull<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateInterface1` field on the `Query` object. Its type is Interface. + * Select the `dateInterface1` field on the `Query` object. Its type is `DateInterface1` (a `Interface` kind of type). */ dateInterface1?: | Query.dateInterface1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateList` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateList` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateList?: Query.dateList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateListList` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateListList` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateListList?: Query.dateListList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateListNonNull` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateListNonNull` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateListNonNull?: | Query.dateListNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateNonNull` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateNonNull` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateNonNull?: Query.dateNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateObject1` field on the `Query` object. Its type is Object. + * Select the `dateObject1` field on the `Query` object. Its type is `DateObject1` (a `OutputObject` kind of type). */ dateObject1?: Query.dateObject1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateUnion` field on the `Query` object. Its type is Union. + * Select the `dateUnion` field on the `Query` object. Its type is `DateUnion` (a `Union` kind of type). */ dateUnion?: Query.dateUnion$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `error` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `error` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ error?: Query.error$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Query.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `idNonNull` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `idNonNull` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ idNonNull?: Query.idNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `interface` field on the `Query` object. Its type is Interface. + * Select the `interface` field on the `Query` object. Its type is `Interface` (a `Interface` kind of type). */ interface?: Query.$interface$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `interfaceNonNull` field on the `Query` object. Its type is Interface. + * Select the `interfaceNonNull` field on the `Query` object. Its type is `Interface` (a `Interface` kind of type). */ interfaceNonNull?: | Query.interfaceNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `interfaceWithArgs` field on the `Query` object. Its type is Interface. + * Select the `interfaceWithArgs` field on the `Query` object. Its type is `Interface` (a `Interface` kind of type). */ interfaceWithArgs?: | Query.interfaceWithArgs<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `listInt` field on the `Query` object. Its type is `Int` (a `Scalar`). + * Select the `listInt` field on the `Query` object. Its type is `Int` (a `ScalarStandard` kind of type). */ listInt?: Query.listInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `listIntNonNull` field on the `Query` object. Its type is `Int` (a `Scalar`). + * Select the `listIntNonNull` field on the `Query` object. Its type is `Int` (a `ScalarStandard` kind of type). */ listIntNonNull?: | Query.listIntNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `listListInt` field on the `Query` object. Its type is `Int` (a `Scalar`). + * Select the `listListInt` field on the `Query` object. Its type is `Int` (a `ScalarStandard` kind of type). */ listListInt?: Query.listListInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `listListIntNonNull` field on the `Query` object. Its type is `Int` (a `Scalar`). + * Select the `listListIntNonNull` field on the `Query` object. Its type is `Int` (a `ScalarStandard` kind of type). */ listListIntNonNull?: | Query.listListIntNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `lowerCaseUnion` field on the `Query` object. Its type is Union. + * Select the `lowerCaseUnion` field on the `Query` object. Its type is `lowerCaseUnion` (a `Union` kind of type). */ lowerCaseUnion?: | Query.lowerCaseUnion$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `object` field on the `Query` object. Its type is Object. + * Select the `object` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ object?: Query.$object$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectList` field on the `Query` object. Its type is Object. + * Select the `objectList` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ objectList?: Query.objectList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectListNonNull` field on the `Query` object. Its type is Object. + * Select the `objectListNonNull` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ objectListNonNull?: | Query.objectListNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectNested` field on the `Query` object. Its type is Object. + * Select the `objectNested` field on the `Query` object. Its type is `ObjectNested` (a `OutputObject` kind of type). */ objectNested?: Query.objectNested$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectNonNull` field on the `Query` object. Its type is Object. + * Select the `objectNonNull` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ objectNonNull?: | Query.objectNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectWithArgs` field on the `Query` object. Its type is Object. + * Select the `objectWithArgs` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ objectWithArgs?: | Query.objectWithArgs$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `result` field on the `Query` object. Its type is Union. + * Select the `result` field on the `Query` object. Its type is `Result` (a `Union` kind of type). */ result?: Query.result<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `resultNonNull` field on the `Query` object. Its type is Union. + * Select the `resultNonNull` field on the `Query` object. Its type is `Result` (a `Union` kind of type). */ resultNonNull?: | Query.resultNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `string` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `string` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ string?: Query.$string$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithArgEnum` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithArgEnum` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithArgEnum?: | Query.stringWithArgEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithArgInputObject` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithArgInputObject` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithArgInputObject?: | Query.stringWithArgInputObject$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithArgInputObjectRequired` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithArgInputObjectRequired` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithArgInputObjectRequired?: | Query.stringWithArgInputObjectRequired<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithArgs` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithArgs` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithArgs?: | Query.stringWithArgs$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithListArg` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithListArg` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithListArg?: | Query.stringWithListArg$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithListArgRequired` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithListArgRequired` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithListArgRequired?: | Query.stringWithListArgRequired<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithRequiredArg` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithRequiredArg` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithRequiredArg?: | Query.stringWithRequiredArg<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionFooBar` field on the `Query` object. Its type is Union. + * Select the `unionFooBar` field on the `Query` object. Its type is `FooBarUnion` (a `Union` kind of type). */ unionFooBar?: Query.unionFooBar$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionFooBarNonNull` field on the `Query` object. Its type is Union. + * Select the `unionFooBarNonNull` field on the `Query` object. Its type is `FooBarUnion` (a `Union` kind of type). */ unionFooBarNonNull?: | Query.unionFooBarNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionFooBarWithArgs` field on the `Query` object. Its type is Union. + * Select the `unionFooBarWithArgs` field on the `Query` object. Its type is `FooBarUnion` (a `Union` kind of type). */ unionFooBarWithArgs?: | Query.unionFooBarWithArgs$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionObject` field on the `Query` object. Its type is Object. + * Select the `unionObject` field on the `Query` object. Its type is `ObjectUnion` (a `OutputObject` kind of type). */ unionObject?: Query.unionObject$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionObjectNonNull` field on the `Query` object. Its type is Object. + * Select the `unionObjectNonNull` field on the `Query` object. Its type is `ObjectUnion` (a `OutputObject` kind of type). */ unionObjectNonNull?: | Query.unionObjectNonNull$Expanded<$Scalars> @@ -1748,7 +1748,7 @@ export namespace Query { // // // ================================================================================================== -// GraphQLEnumType Types +// Enum // ================================================================================================== // // @@ -1776,7 +1776,7 @@ export type Case = 'ErrorOne' | 'ErrorTwo' | 'Object1' // // // ================================================================================================== -// GraphQLInputObjectType Types +// InputObject // ================================================================================================== // // @@ -1824,195 +1824,7 @@ export interface InputObjectNestedNonNull<$Scalars extends $$Utilities.Schema.Sc // // // ================================================================================================== -// GraphQLInterfaceType Types -// ================================================================================================== -// -// -// -// -// -// - -// Interface Type: DateInterface1 -// -------------------------------------------------------------------------------------------------- - -export interface DateInterface1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends $Select.Bases.ObjectLike -{ - date1?: DateInterface1.date1<$Scalars> - ___on_DateObject1?: DateObject1<$Scalars> - - /** - * Inline fragments for field groups. - * - * Generally a niche feature. This can be useful for example to apply an `@include` directive to a subset of the - * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. - * - * @see https://spec.graphql.org/draft/#sec-Inline-Fragments - */ - ___?: - | DateInterface1$FragmentInline<$Scalars> - | DateInterface1$FragmentInline<$Scalars>[] - - /** - * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, - * the name is one of the implementor type names, whichever is ultimately returned at runtime. - * - * @see https://graphql.org/learn/queries/#meta-fields - */ - __typename?: - | $Select.Indicator.NoArgsIndicator$Expanded - | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> -} - -export interface DateInterface1$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends DateInterface1<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields -{} - -export namespace DateInterface1 { - export type date1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = - | $Select.Indicator.NoArgsIndicator - | date1$SelectionSet<$Scalars> - - export interface date1$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends $Select.Bases.Base - {} - - // --- expanded --- - - /** - * This is the "expanded" version of the `date1` type. It is identical except for the fact - * that IDEs will display its contents (a union type) directly, rather than the name of this type. - * In some cases, this is a preferable DX, making the types easier to read for users. - */ - export type date1$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< - | $Select.Indicator.NoArgsIndicator - | date1$SelectionSet<$Scalars> - > -} - -// Interface Type: Error -// -------------------------------------------------------------------------------------------------- - -export interface Error<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { - message?: Error.message<$Scalars> - ___on_ErrorOne?: ErrorOne<$Scalars> - ___on_ErrorTwo?: ErrorTwo<$Scalars> - - /** - * Inline fragments for field groups. - * - * Generally a niche feature. This can be useful for example to apply an `@include` directive to a subset of the - * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. - * - * @see https://spec.graphql.org/draft/#sec-Inline-Fragments - */ - ___?: - | Error$FragmentInline<$Scalars> - | Error$FragmentInline<$Scalars>[] - - /** - * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, - * the name is one of the implementor type names, whichever is ultimately returned at runtime. - * - * @see https://graphql.org/learn/queries/#meta-fields - */ - __typename?: - | $Select.Indicator.NoArgsIndicator$Expanded - | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> -} - -export interface Error$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends Error<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields -{} - -export namespace Error { - export type message<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = - | $Select.Indicator.NoArgsIndicator - | message$SelectionSet<$Scalars> - - export interface message$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends $Select.Bases.Base - {} - - // --- expanded --- - - /** - * This is the "expanded" version of the `message` type. It is identical except for the fact - * that IDEs will display its contents (a union type) directly, rather than the name of this type. - * In some cases, this is a preferable DX, making the types easier to read for users. - */ - export type message$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< - | $Select.Indicator.NoArgsIndicator - | message$SelectionSet<$Scalars> - > -} - -// Interface Type: Interface -// -------------------------------------------------------------------------------------------------- - -export interface Interface<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { - id?: Interface.id<$Scalars> - ___on_Object1ImplementingInterface?: Object1ImplementingInterface<$Scalars> - ___on_Object2ImplementingInterface?: Object2ImplementingInterface<$Scalars> - - /** - * Inline fragments for field groups. - * - * Generally a niche feature. This can be useful for example to apply an `@include` directive to a subset of the - * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. - * - * @see https://spec.graphql.org/draft/#sec-Inline-Fragments - */ - ___?: - | Interface$FragmentInline<$Scalars> - | Interface$FragmentInline<$Scalars>[] - - /** - * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, - * the name is one of the implementor type names, whichever is ultimately returned at runtime. - * - * @see https://graphql.org/learn/queries/#meta-fields - */ - __typename?: - | $Select.Indicator.NoArgsIndicator$Expanded - | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> -} - -export interface Interface$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends Interface<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields -{} - -export namespace Interface { - export type id<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = - | $Select.Indicator.NoArgsIndicator - | id$SelectionSet<$Scalars> - - export interface id$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends $Select.Bases.Base - {} - - // --- expanded --- - - /** - * This is the "expanded" version of the `id` type. It is identical except for the fact - * that IDEs will display its contents (a union type) directly, rather than the name of this type. - * In some cases, this is a preferable DX, making the types easier to read for users. - */ - export type id$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< - | $Select.Indicator.NoArgsIndicator - | id$SelectionSet<$Scalars> - > -} - -// -// -// -// -// -// -// ================================================================================================== -// GraphQLObjectType Types +// OutputObject // ================================================================================================== // // @@ -2026,7 +1838,7 @@ export namespace Interface { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Bar // -------------------------------------------------------------------------------------------------- @@ -2037,7 +1849,7 @@ export namespace Interface { export interface Bar<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `int` field on the `Bar` object. Its type is `Int` (a `Scalar`). + * Select the `int` field on the `Bar` object. Its type is `Int` (a `ScalarStandard` kind of type). */ int?: Bar.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2096,7 +1908,7 @@ export namespace Bar { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // DateObject1 // -------------------------------------------------------------------------------------------------- @@ -2109,7 +1921,7 @@ export interface DateObject1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMa extends $Select.Bases.ObjectLike { /** - * Select the `date1` field on the `DateObject1` object. Its type is `Date` (a `Scalar`). + * Select the `date1` field on the `DateObject1` object. Its type is `Date` (a `ScalarCustom` kind of type). */ date1?: DateObject1.date1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2168,7 +1980,7 @@ export namespace DateObject1 { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // DateObject2 // -------------------------------------------------------------------------------------------------- @@ -2181,7 +1993,7 @@ export interface DateObject2<$Scalars extends $$Utilities.Schema.Scalar.ScalarMa extends $Select.Bases.ObjectLike { /** - * Select the `date2` field on the `DateObject2` object. Its type is `Date` (a `Scalar`). + * Select the `date2` field on the `DateObject2` object. Its type is `Date` (a `ScalarCustom` kind of type). */ date2?: DateObject2.date2$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2240,7 +2052,7 @@ export namespace DateObject2 { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // ErrorOne // -------------------------------------------------------------------------------------------------- @@ -2251,11 +2063,11 @@ export namespace DateObject2 { export interface ErrorOne<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `infoId` field on the `ErrorOne` object. Its type is `ID` (a `Scalar`). + * Select the `infoId` field on the `ErrorOne` object. Its type is `ID` (a `ScalarStandard` kind of type). */ infoId?: ErrorOne.infoId$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `message` field on the `ErrorOne` object. Its type is `String` (a `Scalar`). + * Select the `message` field on the `ErrorOne` object. Its type is `String` (a `ScalarStandard` kind of type). */ message?: ErrorOne.message$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2336,7 +2148,7 @@ export namespace ErrorOne { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // ErrorTwo // -------------------------------------------------------------------------------------------------- @@ -2347,11 +2159,11 @@ export namespace ErrorOne { export interface ErrorTwo<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `infoInt` field on the `ErrorTwo` object. Its type is `Int` (a `Scalar`). + * Select the `infoInt` field on the `ErrorTwo` object. Its type is `Int` (a `ScalarStandard` kind of type). */ infoInt?: ErrorTwo.infoInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `message` field on the `ErrorTwo` object. Its type is `String` (a `Scalar`). + * Select the `message` field on the `ErrorTwo` object. Its type is `String` (a `ScalarStandard` kind of type). */ message?: ErrorTwo.message$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2432,7 +2244,7 @@ export namespace ErrorTwo { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Foo // -------------------------------------------------------------------------------------------------- @@ -2446,7 +2258,7 @@ export namespace ErrorTwo { */ export interface Foo<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `Foo` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Foo` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Foo.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2505,7 +2317,7 @@ export namespace Foo { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Object1 // -------------------------------------------------------------------------------------------------- @@ -2516,27 +2328,27 @@ export namespace Foo { export interface Object1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `ABCEnum` field on the `Object1` object. Its type is Enum. + * Select the `ABCEnum` field on the `Object1` object. Its type is `ABCEnum` (a `Enum` kind of type). */ ABCEnum?: Object1.ABCEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `boolean` field on the `Object1` object. Its type is `Boolean` (a `Scalar`). + * Select the `boolean` field on the `Object1` object. Its type is `Boolean` (a `ScalarStandard` kind of type). */ boolean?: Object1.$boolean$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `float` field on the `Object1` object. Its type is `Float` (a `Scalar`). + * Select the `float` field on the `Object1` object. Its type is `Float` (a `ScalarStandard` kind of type). */ float?: Object1.float$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Object1` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Object1` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Object1.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `int` field on the `Object1` object. Its type is `Int` (a `Scalar`). + * Select the `int` field on the `Object1` object. Its type is `Int` (a `ScalarStandard` kind of type). */ int?: Object1.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `string` field on the `Object1` object. Its type is `String` (a `Scalar`). + * Select the `string` field on the `Object1` object. Its type is `String` (a `ScalarStandard` kind of type). */ string?: Object1.$string$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2705,7 +2517,7 @@ export namespace Object1 { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Object1ImplementingInterface // -------------------------------------------------------------------------------------------------- @@ -2718,13 +2530,13 @@ export interface Object1ImplementingInterface<$Scalars extends $$Utilities.Schem extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `Object1ImplementingInterface` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Object1ImplementingInterface` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: | Object1ImplementingInterface.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `int` field on the `Object1ImplementingInterface` object. Its type is `Int` (a `Scalar`). + * Select the `int` field on the `Object1ImplementingInterface` object. Its type is `Int` (a `ScalarStandard` kind of type). */ int?: | Object1ImplementingInterface.int$Expanded<$Scalars> @@ -2807,7 +2619,7 @@ export namespace Object1ImplementingInterface { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Object2ImplementingInterface // -------------------------------------------------------------------------------------------------- @@ -2820,13 +2632,13 @@ export interface Object2ImplementingInterface<$Scalars extends $$Utilities.Schem extends $Select.Bases.ObjectLike { /** - * Select the `boolean` field on the `Object2ImplementingInterface` object. Its type is `Boolean` (a `Scalar`). + * Select the `boolean` field on the `Object2ImplementingInterface` object. Its type is `Boolean` (a `ScalarStandard` kind of type). */ boolean?: | Object2ImplementingInterface.$boolean$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Object2ImplementingInterface` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Object2ImplementingInterface` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: | Object2ImplementingInterface.id$Expanded<$Scalars> @@ -2909,7 +2721,7 @@ export namespace Object2ImplementingInterface { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // ObjectNested // -------------------------------------------------------------------------------------------------- @@ -2922,11 +2734,11 @@ export interface ObjectNested<$Scalars extends $$Utilities.Schema.Scalar.ScalarM extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `ObjectNested` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `ObjectNested` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: ObjectNested.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `object` field on the `ObjectNested` object. Its type is Object. + * Select the `object` field on the `ObjectNested` object. Its type is `Object1` (a `OutputObject` kind of type). */ object?: ObjectNested.$object$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -3004,7 +2816,7 @@ export namespace ObjectNested { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // ObjectUnion // -------------------------------------------------------------------------------------------------- @@ -3017,7 +2829,7 @@ export interface ObjectUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMa extends $Select.Bases.ObjectLike { /** - * Select the `fooBarUnion` field on the `ObjectUnion` object. Its type is Union. + * Select the `fooBarUnion` field on the `ObjectUnion` object. Its type is `FooBarUnion` (a `Union` kind of type). */ fooBarUnion?: | ObjectUnion.fooBarUnion$Expanded<$Scalars> @@ -3077,7 +2889,7 @@ export namespace ObjectUnion { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // lowerCaseObject // -------------------------------------------------------------------------------------------------- @@ -3090,7 +2902,7 @@ export interface lowerCaseObject<$Scalars extends $$Utilities.Schema.Scalar.Scal extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `lowerCaseObject` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `lowerCaseObject` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: lowerCaseObject.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -3149,7 +2961,7 @@ export namespace lowerCaseObject { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // lowerCaseObject2 // -------------------------------------------------------------------------------------------------- @@ -3162,7 +2974,7 @@ export interface lowerCaseObject2<$Scalars extends $$Utilities.Schema.Scalar.Sca extends $Select.Bases.ObjectLike { /** - * Select the `int` field on the `lowerCaseObject2` object. Its type is `Int` (a `Scalar`). + * Select the `int` field on the `lowerCaseObject2` object. Its type is `Int` (a `ScalarStandard` kind of type). */ int?: lowerCaseObject2.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -3223,7 +3035,7 @@ export namespace lowerCaseObject2 { // // // ================================================================================================== -// GraphQLUnionType Types +// Union // ================================================================================================== // // @@ -3356,6 +3168,194 @@ export interface lowerCaseUnion$FragmentInline<$Scalars extends $$Utilities.Sche extends lowerCaseUnion<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} +// +// +// +// +// +// +// ================================================================================================== +// Interface +// ================================================================================================== +// +// +// +// +// +// + +// Interface Type: DateInterface1 +// -------------------------------------------------------------------------------------------------- + +export interface DateInterface1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends $Select.Bases.ObjectLike +{ + date1?: DateInterface1.date1<$Scalars> + ___on_DateObject1?: DateObject1<$Scalars> + + /** + * Inline fragments for field groups. + * + * Generally a niche feature. This can be useful for example to apply an `@include` directive to a subset of the + * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. + * + * @see https://spec.graphql.org/draft/#sec-Inline-Fragments + */ + ___?: + | DateInterface1$FragmentInline<$Scalars> + | DateInterface1$FragmentInline<$Scalars>[] + + /** + * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, + * the name is one of the implementor type names, whichever is ultimately returned at runtime. + * + * @see https://graphql.org/learn/queries/#meta-fields + */ + __typename?: + | $Select.Indicator.NoArgsIndicator$Expanded + | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> +} + +export interface DateInterface1$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends DateInterface1<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields +{} + +export namespace DateInterface1 { + export type date1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = + | $Select.Indicator.NoArgsIndicator + | date1$SelectionSet<$Scalars> + + export interface date1$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends $Select.Bases.Base + {} + + // --- expanded --- + + /** + * This is the "expanded" version of the `date1` type. It is identical except for the fact + * that IDEs will display its contents (a union type) directly, rather than the name of this type. + * In some cases, this is a preferable DX, making the types easier to read for users. + */ + export type date1$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + | $Select.Indicator.NoArgsIndicator + | date1$SelectionSet<$Scalars> + > +} + +// Interface Type: Error +// -------------------------------------------------------------------------------------------------- + +export interface Error<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { + message?: Error.message<$Scalars> + ___on_ErrorOne?: ErrorOne<$Scalars> + ___on_ErrorTwo?: ErrorTwo<$Scalars> + + /** + * Inline fragments for field groups. + * + * Generally a niche feature. This can be useful for example to apply an `@include` directive to a subset of the + * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. + * + * @see https://spec.graphql.org/draft/#sec-Inline-Fragments + */ + ___?: + | Error$FragmentInline<$Scalars> + | Error$FragmentInline<$Scalars>[] + + /** + * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, + * the name is one of the implementor type names, whichever is ultimately returned at runtime. + * + * @see https://graphql.org/learn/queries/#meta-fields + */ + __typename?: + | $Select.Indicator.NoArgsIndicator$Expanded + | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> +} + +export interface Error$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends Error<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields +{} + +export namespace Error { + export type message<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = + | $Select.Indicator.NoArgsIndicator + | message$SelectionSet<$Scalars> + + export interface message$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends $Select.Bases.Base + {} + + // --- expanded --- + + /** + * This is the "expanded" version of the `message` type. It is identical except for the fact + * that IDEs will display its contents (a union type) directly, rather than the name of this type. + * In some cases, this is a preferable DX, making the types easier to read for users. + */ + export type message$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + | $Select.Indicator.NoArgsIndicator + | message$SelectionSet<$Scalars> + > +} + +// Interface Type: Interface +// -------------------------------------------------------------------------------------------------- + +export interface Interface<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { + id?: Interface.id<$Scalars> + ___on_Object1ImplementingInterface?: Object1ImplementingInterface<$Scalars> + ___on_Object2ImplementingInterface?: Object2ImplementingInterface<$Scalars> + + /** + * Inline fragments for field groups. + * + * Generally a niche feature. This can be useful for example to apply an `@include` directive to a subset of the + * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. + * + * @see https://spec.graphql.org/draft/#sec-Inline-Fragments + */ + ___?: + | Interface$FragmentInline<$Scalars> + | Interface$FragmentInline<$Scalars>[] + + /** + * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, + * the name is one of the implementor type names, whichever is ultimately returned at runtime. + * + * @see https://graphql.org/learn/queries/#meta-fields + */ + __typename?: + | $Select.Indicator.NoArgsIndicator$Expanded + | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> +} + +export interface Interface$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends Interface<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields +{} + +export namespace Interface { + export type id<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = + | $Select.Indicator.NoArgsIndicator + | id$SelectionSet<$Scalars> + + export interface id$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends $Select.Bases.Base + {} + + // --- expanded --- + + /** + * This is the "expanded" version of the `id` type. It is identical except for the fact + * that IDEs will display its contents (a union type) directly, rather than the name of this type. + * In some cases, this is a preferable DX, making the types easier to read for users. + */ + export type id$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + | $Select.Indicator.NoArgsIndicator + | id$SelectionSet<$Scalars> + > +} + /** * [1] These definitions serve to allow field selection interfaces to extend their respective object type without * name clashing between the field name and the object name. @@ -3377,9 +3377,6 @@ export namespace $NamedTypes { > export type $InputObjectNestedNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = InputObjectNestedNonNull<$Scalars> - export type $DateInterface1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = DateInterface1<$Scalars> - export type $Error<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Error<$Scalars> - export type $Interface<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Interface<$Scalars> export type $Bar<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Bar<$Scalars> export type $DateObject1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = DateObject1<$Scalars> export type $DateObject2<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = DateObject2<$Scalars> @@ -3399,4 +3396,7 @@ export namespace $NamedTypes { export type $FooBarUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = FooBarUnion<$Scalars> export type $Result<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Result<$Scalars> export type $lowerCaseUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = lowerCaseUnion<$Scalars> + export type $DateInterface1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = DateInterface1<$Scalars> + export type $Error<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Error<$Scalars> + export type $Interface<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Interface<$Scalars> } diff --git a/src/generator/config/config.ts b/src/generator/config/config.ts index 1c93fb3ed..ca8060c5f 100644 --- a/src/generator/config/config.ts +++ b/src/generator/config/config.ts @@ -63,7 +63,7 @@ interface ConfigSchema { sdl: string sdlFilePath: null | string instance: Grafaid.Schema.Schema - kindMap: Grafaid.Schema.KindMap.KindMap + kindMap: Grafaid.Schema.KindMap } export const createConfig = async (input: Input): Promise => { diff --git a/src/generator/generator/__snapshots__/generate.test.ts.snap b/src/generator/generator/__snapshots__/generate.test.ts.snap index 616c5e34c..14d6476df 100644 --- a/src/generator/generator/__snapshots__/generate.test.ts.snap +++ b/src/generator/generator/__snapshots__/generate.test.ts.snap @@ -42,7 +42,7 @@ exports[`kitchen-sink generated modules > modules/Global.ts 1`] = ` import type * as MethodsDocument from './MethodsDocument.js' import type * as MethodsRoot from './MethodsRoot.js' import type * as MethodsSelect from './MethodsSelect.js' -import type * as Scalar from './Scalar.js' +import type * as $Scalar from './Scalar.js' import type { Schema } from './Schema.js' declare global { @@ -808,7 +808,7 @@ export interface Query { // // // ================================================================================================== -// Object +// OutputObject // ================================================================================================== // // @@ -938,7 +938,7 @@ export interface Interface { exports[`kitchen-sink generated modules > modules/Scalar.ts 1`] = ` "import type * as $$Utilities from '../../../../../../src/entrypoints/utilities-for-generated.js' -export * from '../../../../../../src/types/Schema/types/Scalar/scalars.js' +export * from '../../../../../../src/types/Schema/StandardTypes/scalar.js' // // @@ -952,12 +952,12 @@ export * from '../../../../../../src/types/Schema/types/Scalar/scalars.js' // // -export type Date = $$Utilities.SchemaKit.Scalar.ScalarCodecless<'Date'> +export type Date = $$Utilities.Schema.Scalar.ScalarCodecless<'Date'> " `; exports[`kitchen-sink generated modules > modules/Schema.ts 1`] = ` -"import type { SchemaKit as $ } from '../../../../../../src/entrypoints/utilities-for-generated.js' +"import type { Schema as $ } from '../../../../../../src/entrypoints/utilities-for-generated.js' import type * as $$Utilities from '../../../../../../src/entrypoints/utilities-for-generated.js' import type * as Data from './Data.js' import type * as MethodsRoot from './MethodsRoot.js' @@ -979,20 +979,20 @@ export namespace Schema { // // - export type Mutation = $.ObjectMutation<{ - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - idNonNull: $.Field<'idNonNull', $Scalar.ID, null> + export type Mutation = $.StandardTypes.Mutation<{ + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + idNonNull: $.OutputField<'idNonNull', $Scalar.ID, null> }> - export type Query = $.ObjectQuery<{ - InputObjectNested: $.Field< + export type Query = $.StandardTypes.Query<{ + InputObjectNested: $.OutputField< 'InputObjectNested', $.Nullable<$Scalar.ID>, $.Args<{ input: $.InputField<$.Nullable> }, true> > - InputObjectNestedNonNull: $.Field< + InputObjectNestedNonNull: $.OutputField< 'InputObjectNestedNonNull', $.Nullable<$Scalar.ID>, $.Args<{ @@ -1002,93 +1002,93 @@ export namespace Schema { /** * Query enum field documentation. */ - abcEnum: $.Field<'abcEnum', $.Nullable, null> - argInputObjectCircular: $.Field< + abcEnum: $.OutputField<'abcEnum', $.Nullable, null> + argInputObjectCircular: $.OutputField< 'argInputObjectCircular', $.Nullable<$Scalar.String>, $.Args<{ input: $.InputField<$.Nullable> }, true> > - date: $.Field<'date', $.Nullable<$Scalar.Date>, null> - dateArg: $.Field< + date: $.OutputField<'date', $.Nullable<$Scalar.Date>, null> + dateArg: $.OutputField< 'dateArg', $.Nullable<$Scalar.Date>, $.Args<{ date: $.InputField<$.Nullable<$Scalar.Date>> }, true> > - dateArgInputObject: $.Field< + dateArgInputObject: $.OutputField< 'dateArgInputObject', $.Nullable<$Scalar.Date>, $.Args<{ input: $.InputField<$.Nullable> }, true> > - dateArgList: $.Field< + dateArgList: $.OutputField< 'dateArgList', $.Nullable<$Scalar.Date>, $.Args<{ date: $.InputField<$.Nullable<$.List<$Scalar.Date>>> }, true> > - dateArgNonNull: $.Field< + dateArgNonNull: $.OutputField< 'dateArgNonNull', $.Nullable<$Scalar.Date>, $.Args<{ date: $.InputField<$Scalar.Date> }, false> > - dateArgNonNullList: $.Field< + dateArgNonNullList: $.OutputField< 'dateArgNonNullList', $.Nullable<$Scalar.Date>, $.Args<{ date: $.InputField<$.List<$.Nullable<$Scalar.Date>>> }, false> > - dateArgNonNullListNonNull: $.Field< + dateArgNonNullListNonNull: $.OutputField< 'dateArgNonNullListNonNull', $.Nullable<$Scalar.Date>, $.Args<{ date: $.InputField<$.List<$Scalar.Date>> }, false> > - dateInterface1: $.Field<'dateInterface1', $.Nullable, null> - dateList: $.Field<'dateList', $.Nullable<$.List<$Scalar.Date>>, null> - dateListList: $.Field<'dateListList', $.Nullable<$.List<$.List<$Scalar.Date>>>, null> - dateListNonNull: $.Field<'dateListNonNull', $.List<$Scalar.Date>, null> - dateNonNull: $.Field<'dateNonNull', $Scalar.Date, null> - dateObject1: $.Field<'dateObject1', $.Nullable, null> - dateUnion: $.Field<'dateUnion', $.Nullable, null> - error: $.Field< + dateInterface1: $.OutputField<'dateInterface1', $.Nullable, null> + dateList: $.OutputField<'dateList', $.Nullable<$.List<$Scalar.Date>>, null> + dateListList: $.OutputField<'dateListList', $.Nullable<$.List<$.List<$Scalar.Date>>>, null> + dateListNonNull: $.OutputField<'dateListNonNull', $.List<$Scalar.Date>, null> + dateNonNull: $.OutputField<'dateNonNull', $Scalar.Date, null> + dateObject1: $.OutputField<'dateObject1', $.Nullable, null> + dateUnion: $.OutputField<'dateUnion', $.Nullable, null> + error: $.OutputField< 'error', $.Nullable<$Scalar.String>, $.Args<{ case: $.InputField<$.Nullable<$Scalar.String>> }, true> > - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - idNonNull: $.Field<'idNonNull', $Scalar.ID, null> - interface: $.Field<'interface', $.Nullable, null> - interfaceNonNull: $.Field<'interfaceNonNull', Interface, null> - interfaceWithArgs: $.Field< + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + idNonNull: $.OutputField<'idNonNull', $Scalar.ID, null> + interface: $.OutputField<'interface', $.Nullable, null> + interfaceNonNull: $.OutputField<'interfaceNonNull', Interface, null> + interfaceWithArgs: $.OutputField< 'interfaceWithArgs', $.Nullable, $.Args<{ id: $.InputField<$Scalar.ID> }, false> > - listInt: $.Field<'listInt', $.Nullable<$.List<$.Nullable<$Scalar.Int>>>, null> - listIntNonNull: $.Field<'listIntNonNull', $.List<$Scalar.Int>, null> - listListInt: $.Field<'listListInt', $.Nullable<$.List<$.Nullable<$.List<$.Nullable<$Scalar.Int>>>>>, null> - listListIntNonNull: $.Field<'listListIntNonNull', $.List<$.List<$Scalar.Int>>, null> - lowerCaseUnion: $.Field<'lowerCaseUnion', $.Nullable, null> - object: $.Field<'object', $.Nullable, null> - objectList: $.Field<'objectList', $.Nullable<$.List>, null> - objectListNonNull: $.Field<'objectListNonNull', $.List, null> - objectNested: $.Field<'objectNested', $.Nullable, null> - objectNonNull: $.Field<'objectNonNull', Object1, null> - objectWithArgs: $.Field< + listInt: $.OutputField<'listInt', $.Nullable<$.List<$.Nullable<$Scalar.Int>>>, null> + listIntNonNull: $.OutputField<'listIntNonNull', $.List<$Scalar.Int>, null> + listListInt: $.OutputField<'listListInt', $.Nullable<$.List<$.Nullable<$.List<$.Nullable<$Scalar.Int>>>>>, null> + listListIntNonNull: $.OutputField<'listListIntNonNull', $.List<$.List<$Scalar.Int>>, null> + lowerCaseUnion: $.OutputField<'lowerCaseUnion', $.Nullable, null> + object: $.OutputField<'object', $.Nullable, null> + objectList: $.OutputField<'objectList', $.Nullable<$.List>, null> + objectListNonNull: $.OutputField<'objectListNonNull', $.List, null> + objectNested: $.OutputField<'objectNested', $.Nullable, null> + objectNonNull: $.OutputField<'objectNonNull', Object1, null> + objectWithArgs: $.OutputField< 'objectWithArgs', $.Nullable, $.Args<{ @@ -1099,36 +1099,36 @@ export namespace Schema { string: $.InputField<$.Nullable<$Scalar.String>> }, true> > - result: $.Field< + result: $.OutputField< 'result', $.Nullable, $.Args<{ case: $.InputField }, false> > - resultNonNull: $.Field< + resultNonNull: $.OutputField< 'resultNonNull', Result, $.Args<{ case: $.InputField<$.Nullable> }, true> > - string: $.Field<'string', $.Nullable<$Scalar.String>, null> - stringWithArgEnum: $.Field< + string: $.OutputField<'string', $.Nullable<$Scalar.String>, null> + stringWithArgEnum: $.OutputField< 'stringWithArgEnum', $.Nullable<$Scalar.String>, $.Args<{ ABCEnum: $.InputField<$.Nullable> }, true> > - stringWithArgInputObject: $.Field< + stringWithArgInputObject: $.OutputField< 'stringWithArgInputObject', $.Nullable<$Scalar.String>, $.Args<{ input: $.InputField<$.Nullable> }, true> > - stringWithArgInputObjectRequired: $.Field< + stringWithArgInputObjectRequired: $.OutputField< 'stringWithArgInputObjectRequired', $.Nullable<$Scalar.String>, $.Args<{ @@ -1138,7 +1138,7 @@ export namespace Schema { /** * The given arguments are reflected back as a JSON string. */ - stringWithArgs: $.Field< + stringWithArgs: $.OutputField< 'stringWithArgs', $.Nullable<$Scalar.String>, $.Args<{ @@ -1149,38 +1149,38 @@ export namespace Schema { string: $.InputField<$.Nullable<$Scalar.String>> }, true> > - stringWithListArg: $.Field< + stringWithListArg: $.OutputField< 'stringWithListArg', $.Nullable<$Scalar.String>, $.Args<{ ints: $.InputField<$.Nullable<$.List<$.Nullable<$Scalar.Int>>>> }, true> > - stringWithListArgRequired: $.Field< + stringWithListArgRequired: $.OutputField< 'stringWithListArgRequired', $.Nullable<$Scalar.String>, $.Args<{ ints: $.InputField<$.List<$Scalar.Int>> }, false> > - stringWithRequiredArg: $.Field< + stringWithRequiredArg: $.OutputField< 'stringWithRequiredArg', $.Nullable<$Scalar.String>, $.Args<{ string: $.InputField<$Scalar.String> }, false> > - unionFooBar: $.Field<'unionFooBar', $.Nullable, null> - unionFooBarNonNull: $.Field<'unionFooBarNonNull', FooBarUnion, null> - unionFooBarWithArgs: $.Field< + unionFooBar: $.OutputField<'unionFooBar', $.Nullable, null> + unionFooBarNonNull: $.OutputField<'unionFooBarNonNull', FooBarUnion, null> + unionFooBarWithArgs: $.OutputField< 'unionFooBarWithArgs', $.Nullable, $.Args<{ id: $.InputField<$.Nullable<$Scalar.ID>> }, true> > - unionObject: $.Field<'unionObject', $.Nullable, null> - unionObjectNonNull: $.Field<'unionObjectNonNull', ObjectUnion, null> + unionObject: $.OutputField<'unionObject', $.Nullable, null> + unionObjectNonNull: $.OutputField<'unionObjectNonNull', ObjectUnion, null> }> // @@ -1190,7 +1190,7 @@ export namespace Schema { // // // ================================================================================================== - // Enum + // OutputObject // ================================================================================================== // // @@ -1199,17 +1199,75 @@ export namespace Schema { // // + export type Bar = $.OutputObject<'Bar', { + int: $.OutputField<'int', $.Nullable<$Scalar.Int>, null> + }> + + export type DateObject1 = $.OutputObject<'DateObject1', { + date1: $.OutputField<'date1', $.Nullable<$Scalar.Date>, null> + }> + + export type DateObject2 = $.OutputObject<'DateObject2', { + date2: $.OutputField<'date2', $.Nullable<$Scalar.Date>, null> + }> + + export type ErrorOne = $.OutputObject<'ErrorOne', { + infoId: $.OutputField<'infoId', $.Nullable<$Scalar.ID>, null> + message: $.OutputField<'message', $Scalar.String, null> + }> + + export type ErrorTwo = $.OutputObject<'ErrorTwo', { + infoInt: $.OutputField<'infoInt', $.Nullable<$Scalar.Int>, null> + message: $.OutputField<'message', $Scalar.String, null> + }> + /** - * Enum documentation. - * - * Members - * "A" - (DEPRECATED: Enum value A is deprecated.) - * "B" - Enum B member documentation. - * "C" - (DEPRECATED: Enum value C is deprecated.) + * Object documentation. */ - export type ABCEnum = $.Enum<'ABCEnum', ['A', 'B', 'C']> + export type Foo = $.OutputObject<'Foo', { + /** + * Field documentation. + * + * @deprecated Field a is deprecated. + */ + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + }> - export type Case = $.Enum<'Case', ['ErrorOne', 'ErrorTwo', 'Object1']> + export type Object1 = $.OutputObject<'Object1', { + ABCEnum: $.OutputField<'ABCEnum', $.Nullable, null> + boolean: $.OutputField<'boolean', $.Nullable<$Scalar.Boolean>, null> + float: $.OutputField<'float', $.Nullable<$Scalar.Float>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + int: $.OutputField<'int', $.Nullable<$Scalar.Int>, null> + string: $.OutputField<'string', $.Nullable<$Scalar.String>, null> + }> + + export type Object1ImplementingInterface = $.OutputObject<'Object1ImplementingInterface', { + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + int: $.OutputField<'int', $.Nullable<$Scalar.Int>, null> + }> + + export type Object2ImplementingInterface = $.OutputObject<'Object2ImplementingInterface', { + boolean: $.OutputField<'boolean', $.Nullable<$Scalar.Boolean>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + }> + + export type ObjectNested = $.OutputObject<'ObjectNested', { + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + object: $.OutputField<'object', $.Nullable, null> + }> + + export type ObjectUnion = $.OutputObject<'ObjectUnion', { + fooBarUnion: $.OutputField<'fooBarUnion', $.Nullable, null> + }> + + export type lowerCaseObject = $.OutputObject<'lowerCaseObject', { + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + }> + + export type lowerCaseObject2 = $.OutputObject<'lowerCaseObject2', { + int: $.OutputField<'int', $.Nullable<$Scalar.Int>, null> + }> // // @@ -1264,15 +1322,15 @@ export namespace Schema { // export type DateInterface1 = $.Interface<'DateInterface1', { - date1: $.Field<'date1', $.Nullable<$Scalar.Date>, null> + date1: $.OutputField<'date1', $.Nullable<$Scalar.Date>, null> }, [DateObject1]> export type Error = $.Interface<'Error', { - message: $.Field<'message', $Scalar.String, null> + message: $.OutputField<'message', $Scalar.String, null> }, [ErrorOne, ErrorTwo]> export type Interface = $.Interface<'Interface', { - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> }, [Object1ImplementingInterface, Object2ImplementingInterface]> // @@ -1282,7 +1340,7 @@ export namespace Schema { // // // ================================================================================================== - // Object + // Union // ================================================================================================== // // @@ -1291,75 +1349,16 @@ export namespace Schema { // // - export type Bar = $.OutputObject<'Bar', { - int: $.Field<'int', $.Nullable<$Scalar.Int>, null> - }> - - export type DateObject1 = $.OutputObject<'DateObject1', { - date1: $.Field<'date1', $.Nullable<$Scalar.Date>, null> - }> - - export type DateObject2 = $.OutputObject<'DateObject2', { - date2: $.Field<'date2', $.Nullable<$Scalar.Date>, null> - }> - - export type ErrorOne = $.OutputObject<'ErrorOne', { - infoId: $.Field<'infoId', $.Nullable<$Scalar.ID>, null> - message: $.Field<'message', $Scalar.String, null> - }> - - export type ErrorTwo = $.OutputObject<'ErrorTwo', { - infoInt: $.Field<'infoInt', $.Nullable<$Scalar.Int>, null> - message: $.Field<'message', $Scalar.String, null> - }> + export type DateUnion = $.Union<'DateUnion', [DateObject1, DateObject2]> /** - * Object documentation. + * Union documentation. */ - export type Foo = $.OutputObject<'Foo', { - /** - * Field documentation. - * - * @deprecated Field a is deprecated. - */ - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - }> - - export type Object1 = $.OutputObject<'Object1', { - ABCEnum: $.Field<'ABCEnum', $.Nullable, null> - boolean: $.Field<'boolean', $.Nullable<$Scalar.Boolean>, null> - float: $.Field<'float', $.Nullable<$Scalar.Float>, null> - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - int: $.Field<'int', $.Nullable<$Scalar.Int>, null> - string: $.Field<'string', $.Nullable<$Scalar.String>, null> - }> - - export type Object1ImplementingInterface = $.OutputObject<'Object1ImplementingInterface', { - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - int: $.Field<'int', $.Nullable<$Scalar.Int>, null> - }> - - export type Object2ImplementingInterface = $.OutputObject<'Object2ImplementingInterface', { - boolean: $.Field<'boolean', $.Nullable<$Scalar.Boolean>, null> - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - }> - - export type ObjectNested = $.OutputObject<'ObjectNested', { - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - object: $.Field<'object', $.Nullable, null> - }> - - export type ObjectUnion = $.OutputObject<'ObjectUnion', { - fooBarUnion: $.Field<'fooBarUnion', $.Nullable, null> - }> + export type FooBarUnion = $.Union<'FooBarUnion', [Bar, Foo]> - export type lowerCaseObject = $.OutputObject<'lowerCaseObject', { - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - }> + export type Result = $.Union<'Result', [ErrorOne, ErrorTwo, Object1]> - export type lowerCaseObject2 = $.OutputObject<'lowerCaseObject2', { - int: $.Field<'int', $.Nullable<$Scalar.Int>, null> - }> + export type lowerCaseUnion = $.Union<'lowerCaseUnion', [lowerCaseObject, lowerCaseObject2]> // // @@ -1368,7 +1367,7 @@ export namespace Schema { // // // ================================================================================================== - // Union + // Enum // ================================================================================================== // // @@ -1377,16 +1376,17 @@ export namespace Schema { // // - export type DateUnion = $.Union<'DateUnion', [DateObject1, DateObject2]> - /** - * Union documentation. + * Enum documentation. + * + * Members + * "A" - (DEPRECATED: Enum value A is deprecated.) + * "B" - Enum B member documentation. + * "C" - (DEPRECATED: Enum value C is deprecated.) */ - export type FooBarUnion = $.Union<'FooBarUnion', [Bar, Foo]> - - export type Result = $.Union<'Result', [ErrorOne, ErrorTwo, Object1]> + export type ABCEnum = $.Enum<'ABCEnum', ['A', 'B', 'C']> - export type lowerCaseUnion = $.Union<'lowerCaseUnion', [lowerCaseObject, lowerCaseObject2]> + export type Case = $.Enum<'Case', ['ErrorOne', 'ErrorTwo', 'Object1']> } // @@ -1404,9 +1404,7 @@ export namespace Schema { // // // -export interface Schema<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> - extends $$Utilities.SchemaIndexBase -{ +export interface Schema<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $$Utilities.Schema { name: Data.Name RootTypesPresent: ['Mutation', 'Query'] RootUnion: Schema.Mutation | Schema.Query @@ -1474,7 +1472,7 @@ export interface Schema<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap `; exports[`kitchen-sink generated modules > modules/SchemaDrivenDataMap.ts 1`] = ` -"import type * as $Utilities from '../../../../../../src/entrypoints/utilities-for-generated.js' +"import type * as $$Utilities from '../../../../../../src/entrypoints/utilities-for-generated.js' import * as $Scalar from './Scalar.js' // // @@ -1483,7 +1481,7 @@ import * as $Scalar from './Scalar.js' // // // ================================================================================================== -// GraphQLScalarTypeStandard +// ScalarStandard // ================================================================================================== // // @@ -1509,7 +1507,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLScalarTypeCustom +// ScalarCustom // ================================================================================================== // // @@ -1527,7 +1525,7 @@ const Date = 'Date' // // // ================================================================================================== -// GraphQLEnumType +// Enum // ================================================================================================== // // @@ -1536,12 +1534,12 @@ const Date = 'Date' // // -const ABCEnum: $Utilities.SchemaDrivenDataMap.Enum = { +const ABCEnum: $$Utilities.SchemaDrivenDataMap.Enum = { k: 'enum', n: 'ABCEnum', } -const Case: $Utilities.SchemaDrivenDataMap.Enum = { +const Case: $$Utilities.SchemaDrivenDataMap.Enum = { k: 'enum', n: 'Case', } @@ -1553,7 +1551,7 @@ const Case: $Utilities.SchemaDrivenDataMap.Enum = { // // // ================================================================================================== -// GraphQLInputObjectType +// InputObject // ================================================================================================== // // @@ -1562,7 +1560,7 @@ const Case: $Utilities.SchemaDrivenDataMap.Enum = { // // -const InputObject: $Utilities.SchemaDrivenDataMap.InputObject = { +const InputObject: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'InputObject', fcs: ['date', 'dateRequired'], f: { @@ -1577,7 +1575,7 @@ const InputObject: $Utilities.SchemaDrivenDataMap.InputObject = { }, } -const InputObjectCircular: $Utilities.SchemaDrivenDataMap.InputObject = { +const InputObjectCircular: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'InputObjectCircular', fcs: ['circular', 'date'], f: { @@ -1590,7 +1588,7 @@ const InputObjectCircular: $Utilities.SchemaDrivenDataMap.InputObject = { }, } -const InputObjectNested: $Utilities.SchemaDrivenDataMap.InputObject = { +const InputObjectNested: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'InputObjectNested', fcs: ['InputObject'], f: { @@ -1600,7 +1598,7 @@ const InputObjectNested: $Utilities.SchemaDrivenDataMap.InputObject = { }, } -const InputObjectNestedNonNull: $Utilities.SchemaDrivenDataMap.InputObject = { +const InputObjectNestedNonNull: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'InputObjectNestedNonNull', fcs: ['InputObject'], f: { @@ -1617,7 +1615,7 @@ const InputObjectNestedNonNull: $Utilities.SchemaDrivenDataMap.InputObject = { // // // ================================================================================================== -// GraphQLObjectType +// OutputObject // ================================================================================================== // // @@ -1626,13 +1624,13 @@ const InputObjectNestedNonNull: $Utilities.SchemaDrivenDataMap.InputObject = { // // -const Bar: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Bar: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { int: {}, }, } -const DateObject1: $Utilities.SchemaDrivenDataMap.OutputObject = { +const DateObject1: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { date1: { nt: Date, @@ -1640,7 +1638,7 @@ const DateObject1: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const DateObject2: $Utilities.SchemaDrivenDataMap.OutputObject = { +const DateObject2: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { date2: { nt: Date, @@ -1648,27 +1646,27 @@ const DateObject2: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const ErrorOne: $Utilities.SchemaDrivenDataMap.OutputObject = { +const ErrorOne: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { infoId: {}, message: {}, }, } -const ErrorTwo: $Utilities.SchemaDrivenDataMap.OutputObject = { +const ErrorTwo: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { infoInt: {}, message: {}, }, } -const Foo: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Foo: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, }, } -const Object1: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Object1: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { ABCEnum: {}, boolean: {}, @@ -1679,21 +1677,21 @@ const Object1: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const Object1ImplementingInterface: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Object1ImplementingInterface: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, int: {}, }, } -const Object2ImplementingInterface: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Object2ImplementingInterface: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { boolean: {}, id: {}, }, } -const ObjectNested: $Utilities.SchemaDrivenDataMap.OutputObject = { +const ObjectNested: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, object: { @@ -1702,7 +1700,7 @@ const ObjectNested: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const ObjectUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { +const ObjectUnion: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { fooBarUnion: { // nt: FooBarUnion, <-- Assigned later to avoid potential circular dependency. @@ -1710,13 +1708,13 @@ const ObjectUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const lowerCaseObject: $Utilities.SchemaDrivenDataMap.OutputObject = { +const lowerCaseObject: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, }, } -const lowerCaseObject2: $Utilities.SchemaDrivenDataMap.OutputObject = { +const lowerCaseObject2: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { int: {}, }, @@ -1729,7 +1727,7 @@ const lowerCaseObject2: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLInterfaceType +// Interface // ================================================================================================== // // @@ -1738,17 +1736,17 @@ const lowerCaseObject2: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const DateInterface1: $Utilities.SchemaDrivenDataMap.OutputObject = { +const DateInterface1: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { ...DateObject1.f, }, } -const Error: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Error: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } -const Interface: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Interface: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } @@ -1759,7 +1757,7 @@ const Interface: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLUnionType +// Union // ================================================================================================== // // @@ -1768,22 +1766,22 @@ const Interface: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const DateUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { +const DateUnion: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { ...DateObject1.f, ...DateObject2.f, }, } -const FooBarUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { +const FooBarUnion: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } -const Result: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Result: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } -const lowerCaseUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { +const lowerCaseUnion: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } @@ -1794,7 +1792,7 @@ const lowerCaseUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLRootType +// Root // ================================================================================================== // // @@ -1803,14 +1801,14 @@ const lowerCaseUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const Mutation: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Mutation: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, idNonNull: {}, }, } -const Query: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Query: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { InputObjectNested: { a: { @@ -2161,7 +2159,7 @@ Query.f[\`unionObjectNonNull\`]!.nt = ObjectUnion // // -const $schemaDrivenDataMap: $Utilities.SchemaDrivenDataMap = { +const $schemaDrivenDataMap: $$Utilities.SchemaDrivenDataMap = { roots: { Mutation, Query, @@ -2258,8 +2256,8 @@ export namespace Select { 'Mutation' > export type Query<$SelectionSet extends SelectionSets.Query> = InferResult.Root<$SelectionSet, Schema, 'Query'> - // Object Types - // ------------ + // OutputObject Types + // ------------------ export type Bar<$SelectionSet extends SelectionSets.Bar> = InferResult.Object< $SelectionSet, Schema, @@ -2384,7 +2382,7 @@ import type * as $Scalar from './Scalar.js' // // Prefix with $ because this is not a schema type. A user could have a schema type named "Document" that this would conflict with. -export interface $Document<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { +export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { query?: Record> mutation?: Record> } @@ -2396,7 +2394,7 @@ export interface $Document<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarM // // // ================================================================================================== -// GraphQLObjectType Types +// Root // ================================================================================================== // // @@ -2410,7 +2408,7 @@ export interface $Document<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarM // // // GRAPHQL SELECTION SET -// OBJECT +// ROOT // -------------------------------------------------------------------------------------------------- // Mutation // -------------------------------------------------------------------------------------------------- @@ -2419,13 +2417,13 @@ export interface $Document<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarM // ----------------------------------------| Entrypoint Interface | -export interface Mutation<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { +export interface Mutation<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the \`id\` field on the \`Mutation\` object. Its type is \`ID\` (a \`Scalar\`). + * Select the \`id\` field on the \`Mutation\` object. Its type is \`ID\` (a \`ScalarStandard\` kind of type). */ id?: Mutation.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`idNonNull\` field on the \`Mutation\` object. Its type is \`ID\` (a \`Scalar\`). + * Select the \`idNonNull\` field on the \`Mutation\` object. Its type is \`ID\` (a \`ScalarStandard\` kind of type). */ idNonNull?: Mutation.idNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2451,18 +2449,18 @@ export interface Mutation<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMa | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface Mutation$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface Mutation$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends Mutation<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} // ----------------------------------------| Fields | export namespace Mutation { - export type id<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type id<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | id$SelectionSet<$Scalars> - export interface id$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface id$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -2473,18 +2471,18 @@ export namespace Mutation { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type id$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type id$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | id$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type idNonNull<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type idNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | idNonNull$SelectionSet<$Scalars> - export interface idNonNull$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface idNonNull$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -2495,7 +2493,7 @@ export namespace Mutation { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type idNonNull$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type idNonNull$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | idNonNull$SelectionSet<$Scalars> > @@ -2506,7 +2504,7 @@ export namespace Mutation { // // // GRAPHQL SELECTION SET -// OBJECT +// ROOT // -------------------------------------------------------------------------------------------------- // Query // -------------------------------------------------------------------------------------------------- @@ -2515,257 +2513,257 @@ export namespace Mutation { // ----------------------------------------| Entrypoint Interface | -export interface Query<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { +export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the \`InputObjectNested\` field on the \`Query\` object. Its type is \`ID\` (a \`Scalar\`). + * Select the \`InputObjectNested\` field on the \`Query\` object. Its type is \`ID\` (a \`ScalarStandard\` kind of type). */ InputObjectNested?: | Query.InputObjectNested$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`InputObjectNestedNonNull\` field on the \`Query\` object. Its type is \`ID\` (a \`Scalar\`). + * Select the \`InputObjectNestedNonNull\` field on the \`Query\` object. Its type is \`ID\` (a \`ScalarStandard\` kind of type). */ InputObjectNestedNonNull?: | Query.InputObjectNestedNonNull<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`abcEnum\` field on the \`Query\` object. Its type is Enum. + * Select the \`abcEnum\` field on the \`Query\` object. Its type is \`ABCEnum\` (a \`Enum\` kind of type). */ abcEnum?: Query.abcEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`argInputObjectCircular\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). + * Select the \`argInputObjectCircular\` field on the \`Query\` object. Its type is \`String\` (a \`ScalarStandard\` kind of type). */ argInputObjectCircular?: | Query.argInputObjectCircular$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`date\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). + * Select the \`date\` field on the \`Query\` object. Its type is \`Date\` (a \`ScalarCustom\` kind of type). */ date?: Query.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateArg\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). + * Select the \`dateArg\` field on the \`Query\` object. Its type is \`Date\` (a \`ScalarCustom\` kind of type). */ dateArg?: Query.dateArg$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateArgInputObject\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). + * Select the \`dateArgInputObject\` field on the \`Query\` object. Its type is \`Date\` (a \`ScalarCustom\` kind of type). */ dateArgInputObject?: | Query.dateArgInputObject$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateArgList\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). + * Select the \`dateArgList\` field on the \`Query\` object. Its type is \`Date\` (a \`ScalarCustom\` kind of type). */ dateArgList?: Query.dateArgList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateArgNonNull\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). + * Select the \`dateArgNonNull\` field on the \`Query\` object. Its type is \`Date\` (a \`ScalarCustom\` kind of type). */ dateArgNonNull?: Query.dateArgNonNull<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateArgNonNullList\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). + * Select the \`dateArgNonNullList\` field on the \`Query\` object. Its type is \`Date\` (a \`ScalarCustom\` kind of type). */ dateArgNonNullList?: | Query.dateArgNonNullList<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateArgNonNullListNonNull\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). + * Select the \`dateArgNonNullListNonNull\` field on the \`Query\` object. Its type is \`Date\` (a \`ScalarCustom\` kind of type). */ dateArgNonNullListNonNull?: | Query.dateArgNonNullListNonNull<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateInterface1\` field on the \`Query\` object. Its type is Interface. + * Select the \`dateInterface1\` field on the \`Query\` object. Its type is \`DateInterface1\` (a \`Interface\` kind of type). */ dateInterface1?: | Query.dateInterface1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateList\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). + * Select the \`dateList\` field on the \`Query\` object. Its type is \`Date\` (a \`ScalarCustom\` kind of type). */ dateList?: Query.dateList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateListList\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). + * Select the \`dateListList\` field on the \`Query\` object. Its type is \`Date\` (a \`ScalarCustom\` kind of type). */ dateListList?: Query.dateListList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateListNonNull\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). + * Select the \`dateListNonNull\` field on the \`Query\` object. Its type is \`Date\` (a \`ScalarCustom\` kind of type). */ dateListNonNull?: | Query.dateListNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateNonNull\` field on the \`Query\` object. Its type is \`Date\` (a \`Scalar\`). + * Select the \`dateNonNull\` field on the \`Query\` object. Its type is \`Date\` (a \`ScalarCustom\` kind of type). */ dateNonNull?: Query.dateNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateObject1\` field on the \`Query\` object. Its type is Object. + * Select the \`dateObject1\` field on the \`Query\` object. Its type is \`DateObject1\` (a \`OutputObject\` kind of type). */ dateObject1?: Query.dateObject1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`dateUnion\` field on the \`Query\` object. Its type is Union. + * Select the \`dateUnion\` field on the \`Query\` object. Its type is \`DateUnion\` (a \`Union\` kind of type). */ dateUnion?: Query.dateUnion$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`error\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). + * Select the \`error\` field on the \`Query\` object. Its type is \`String\` (a \`ScalarStandard\` kind of type). */ error?: Query.error$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`id\` field on the \`Query\` object. Its type is \`ID\` (a \`Scalar\`). + * Select the \`id\` field on the \`Query\` object. Its type is \`ID\` (a \`ScalarStandard\` kind of type). */ id?: Query.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`idNonNull\` field on the \`Query\` object. Its type is \`ID\` (a \`Scalar\`). + * Select the \`idNonNull\` field on the \`Query\` object. Its type is \`ID\` (a \`ScalarStandard\` kind of type). */ idNonNull?: Query.idNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`interface\` field on the \`Query\` object. Its type is Interface. + * Select the \`interface\` field on the \`Query\` object. Its type is \`Interface\` (a \`Interface\` kind of type). */ interface?: Query.$interface$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`interfaceNonNull\` field on the \`Query\` object. Its type is Interface. + * Select the \`interfaceNonNull\` field on the \`Query\` object. Its type is \`Interface\` (a \`Interface\` kind of type). */ interfaceNonNull?: | Query.interfaceNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`interfaceWithArgs\` field on the \`Query\` object. Its type is Interface. + * Select the \`interfaceWithArgs\` field on the \`Query\` object. Its type is \`Interface\` (a \`Interface\` kind of type). */ interfaceWithArgs?: | Query.interfaceWithArgs<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`listInt\` field on the \`Query\` object. Its type is \`Int\` (a \`Scalar\`). + * Select the \`listInt\` field on the \`Query\` object. Its type is \`Int\` (a \`ScalarStandard\` kind of type). */ listInt?: Query.listInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`listIntNonNull\` field on the \`Query\` object. Its type is \`Int\` (a \`Scalar\`). + * Select the \`listIntNonNull\` field on the \`Query\` object. Its type is \`Int\` (a \`ScalarStandard\` kind of type). */ listIntNonNull?: | Query.listIntNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`listListInt\` field on the \`Query\` object. Its type is \`Int\` (a \`Scalar\`). + * Select the \`listListInt\` field on the \`Query\` object. Its type is \`Int\` (a \`ScalarStandard\` kind of type). */ listListInt?: Query.listListInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`listListIntNonNull\` field on the \`Query\` object. Its type is \`Int\` (a \`Scalar\`). + * Select the \`listListIntNonNull\` field on the \`Query\` object. Its type is \`Int\` (a \`ScalarStandard\` kind of type). */ listListIntNonNull?: | Query.listListIntNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`lowerCaseUnion\` field on the \`Query\` object. Its type is Union. + * Select the \`lowerCaseUnion\` field on the \`Query\` object. Its type is \`lowerCaseUnion\` (a \`Union\` kind of type). */ lowerCaseUnion?: | Query.lowerCaseUnion$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`object\` field on the \`Query\` object. Its type is Object. + * Select the \`object\` field on the \`Query\` object. Its type is \`Object1\` (a \`OutputObject\` kind of type). */ object?: Query.$object$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`objectList\` field on the \`Query\` object. Its type is Object. + * Select the \`objectList\` field on the \`Query\` object. Its type is \`Object1\` (a \`OutputObject\` kind of type). */ objectList?: Query.objectList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`objectListNonNull\` field on the \`Query\` object. Its type is Object. + * Select the \`objectListNonNull\` field on the \`Query\` object. Its type is \`Object1\` (a \`OutputObject\` kind of type). */ objectListNonNull?: | Query.objectListNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`objectNested\` field on the \`Query\` object. Its type is Object. + * Select the \`objectNested\` field on the \`Query\` object. Its type is \`ObjectNested\` (a \`OutputObject\` kind of type). */ objectNested?: Query.objectNested$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`objectNonNull\` field on the \`Query\` object. Its type is Object. + * Select the \`objectNonNull\` field on the \`Query\` object. Its type is \`Object1\` (a \`OutputObject\` kind of type). */ objectNonNull?: | Query.objectNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`objectWithArgs\` field on the \`Query\` object. Its type is Object. + * Select the \`objectWithArgs\` field on the \`Query\` object. Its type is \`Object1\` (a \`OutputObject\` kind of type). */ objectWithArgs?: | Query.objectWithArgs$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`result\` field on the \`Query\` object. Its type is Union. + * Select the \`result\` field on the \`Query\` object. Its type is \`Result\` (a \`Union\` kind of type). */ result?: Query.result<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`resultNonNull\` field on the \`Query\` object. Its type is Union. + * Select the \`resultNonNull\` field on the \`Query\` object. Its type is \`Result\` (a \`Union\` kind of type). */ resultNonNull?: | Query.resultNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`string\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). + * Select the \`string\` field on the \`Query\` object. Its type is \`String\` (a \`ScalarStandard\` kind of type). */ string?: Query.$string$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`stringWithArgEnum\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). + * Select the \`stringWithArgEnum\` field on the \`Query\` object. Its type is \`String\` (a \`ScalarStandard\` kind of type). */ stringWithArgEnum?: | Query.stringWithArgEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`stringWithArgInputObject\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). + * Select the \`stringWithArgInputObject\` field on the \`Query\` object. Its type is \`String\` (a \`ScalarStandard\` kind of type). */ stringWithArgInputObject?: | Query.stringWithArgInputObject$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`stringWithArgInputObjectRequired\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). + * Select the \`stringWithArgInputObjectRequired\` field on the \`Query\` object. Its type is \`String\` (a \`ScalarStandard\` kind of type). */ stringWithArgInputObjectRequired?: | Query.stringWithArgInputObjectRequired<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`stringWithArgs\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). + * Select the \`stringWithArgs\` field on the \`Query\` object. Its type is \`String\` (a \`ScalarStandard\` kind of type). */ stringWithArgs?: | Query.stringWithArgs$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`stringWithListArg\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). + * Select the \`stringWithListArg\` field on the \`Query\` object. Its type is \`String\` (a \`ScalarStandard\` kind of type). */ stringWithListArg?: | Query.stringWithListArg$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`stringWithListArgRequired\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). + * Select the \`stringWithListArgRequired\` field on the \`Query\` object. Its type is \`String\` (a \`ScalarStandard\` kind of type). */ stringWithListArgRequired?: | Query.stringWithListArgRequired<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`stringWithRequiredArg\` field on the \`Query\` object. Its type is \`String\` (a \`Scalar\`). + * Select the \`stringWithRequiredArg\` field on the \`Query\` object. Its type is \`String\` (a \`ScalarStandard\` kind of type). */ stringWithRequiredArg?: | Query.stringWithRequiredArg<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`unionFooBar\` field on the \`Query\` object. Its type is Union. + * Select the \`unionFooBar\` field on the \`Query\` object. Its type is \`FooBarUnion\` (a \`Union\` kind of type). */ unionFooBar?: Query.unionFooBar$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`unionFooBarNonNull\` field on the \`Query\` object. Its type is Union. + * Select the \`unionFooBarNonNull\` field on the \`Query\` object. Its type is \`FooBarUnion\` (a \`Union\` kind of type). */ unionFooBarNonNull?: | Query.unionFooBarNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`unionFooBarWithArgs\` field on the \`Query\` object. Its type is Union. + * Select the \`unionFooBarWithArgs\` field on the \`Query\` object. Its type is \`FooBarUnion\` (a \`Union\` kind of type). */ unionFooBarWithArgs?: | Query.unionFooBarWithArgs$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`unionObject\` field on the \`Query\` object. Its type is Object. + * Select the \`unionObject\` field on the \`Query\` object. Its type is \`ObjectUnion\` (a \`OutputObject\` kind of type). */ unionObject?: Query.unionObject$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`unionObjectNonNull\` field on the \`Query\` object. Its type is Object. + * Select the \`unionObjectNonNull\` field on the \`Query\` object. Its type is \`ObjectUnion\` (a \`OutputObject\` kind of type). */ unionObjectNonNull?: | Query.unionObjectNonNull$Expanded<$Scalars> @@ -2793,18 +2791,18 @@ export interface Query<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface Query$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface Query$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends Query<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} // ----------------------------------------| Fields | export namespace Query { - export type InputObjectNested<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type InputObjectNested<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | InputObjectNested$SelectionSet<$Scalars> - export interface InputObjectNested$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface InputObjectNested$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base { /** @@ -2813,7 +2811,7 @@ export namespace Query { $?: InputObjectNested$Arguments<$Scalars> } - export interface InputObjectNested$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface InputObjectNested$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { input?: $NamedTypes.$InputObjectNested<$Scalars> | undefined | null } @@ -2824,7 +2822,7 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type InputObjectNested$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type InputObjectNested$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | InputObjectNested$SelectionSet<$Scalars> @@ -2832,10 +2830,10 @@ export namespace Query { // -------------------------------------------------------------------------------------------------- - export type InputObjectNestedNonNull<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type InputObjectNestedNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = InputObjectNestedNonNull$SelectionSet<$Scalars> - export interface InputObjectNestedNonNull$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface InputObjectNestedNonNull$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base { /** @@ -2844,7 +2842,7 @@ export namespace Query { $: InputObjectNestedNonNull$Arguments<$Scalars> } - export interface InputObjectNestedNonNull$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface InputObjectNestedNonNull$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { input: $NamedTypes.$InputObjectNestedNonNull<$Scalars> } @@ -2855,18 +2853,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type InputObjectNestedNonNull$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type InputObjectNestedNonNull$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< InputObjectNestedNonNull$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type abcEnum<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type abcEnum<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | abcEnum$SelectionSet<$Scalars> - export interface abcEnum$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface abcEnum$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -2877,18 +2875,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type abcEnum$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type abcEnum$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | abcEnum$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type argInputObjectCircular<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type argInputObjectCircular<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | argInputObjectCircular$SelectionSet<$Scalars> - export interface argInputObjectCircular$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface argInputObjectCircular$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base { /** @@ -2897,7 +2895,7 @@ export namespace Query { $?: argInputObjectCircular$Arguments<$Scalars> } - export interface argInputObjectCircular$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface argInputObjectCircular$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { input?: $NamedTypes.$InputObjectCircular<$Scalars> | undefined | null } @@ -2908,7 +2906,7 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type argInputObjectCircular$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type argInputObjectCircular$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | argInputObjectCircular$SelectionSet<$Scalars> @@ -2916,11 +2914,11 @@ export namespace Query { // -------------------------------------------------------------------------------------------------- - export type date<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type date<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | date$SelectionSet<$Scalars> - export interface date$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface date$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -2931,18 +2929,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type date$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type date$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | date$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type dateArg<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type dateArg<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | dateArg$SelectionSet<$Scalars> - export interface dateArg$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface dateArg$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base { /** @@ -2951,10 +2949,10 @@ export namespace Query { $?: dateArg$Arguments<$Scalars> } - export interface dateArg$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface dateArg$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { date?: - | $$Utilities.SchemaKit.Scalar.GetDecoded< - $$Utilities.SchemaKit.Scalar.LookupCustomScalarOrFallbackToString<'Date', $Scalars> + | $$Utilities.Schema.Scalar.GetDecoded< + $$Utilities.Schema.Scalar.LookupCustomScalarOrFallbackToString<'Date', $Scalars> > | undefined | null @@ -2967,18 +2965,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type dateArg$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type dateArg$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | dateArg$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type dateArgInputObject<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type dateArgInputObject<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | dateArgInputObject$SelectionSet<$Scalars> - export interface dateArgInputObject$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface dateArgInputObject$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base { /** @@ -2987,7 +2985,7 @@ export namespace Query { $?: dateArgInputObject$Arguments<$Scalars> } - export interface dateArgInputObject$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface dateArgInputObject$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { input?: $NamedTypes.$InputObject<$Scalars> | undefined | null } @@ -2998,7 +2996,7 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type dateArgInputObject$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type dateArgInputObject$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | dateArgInputObject$SelectionSet<$Scalars> @@ -3006,11 +3004,11 @@ export namespace Query { // -------------------------------------------------------------------------------------------------- - export type dateArgList<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type dateArgList<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | dateArgList$SelectionSet<$Scalars> - export interface dateArgList$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface dateArgList$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base { /** @@ -3019,11 +3017,11 @@ export namespace Query { $?: dateArgList$Arguments<$Scalars> } - export interface dateArgList$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface dateArgList$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { date?: | Array< - | $$Utilities.SchemaKit.Scalar.GetDecoded< - $$Utilities.SchemaKit.Scalar.LookupCustomScalarOrFallbackToString<'Date', $Scalars> + | $$Utilities.Schema.Scalar.GetDecoded< + $$Utilities.Schema.Scalar.LookupCustomScalarOrFallbackToString<'Date', $Scalars> > | undefined | null @@ -3039,17 +3037,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type dateArgList$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type dateArgList$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | dateArgList$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type dateArgNonNull<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = - dateArgNonNull$SelectionSet<$Scalars> + export type dateArgNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = dateArgNonNull$SelectionSet< + $Scalars + > - export interface dateArgNonNull$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface dateArgNonNull$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base { /** @@ -3058,9 +3057,9 @@ export namespace Query { $: dateArgNonNull$Arguments<$Scalars> } - export interface dateArgNonNull$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { - date: $$Utilities.SchemaKit.Scalar.GetDecoded< - $$Utilities.SchemaKit.Scalar.LookupCustomScalarOrFallbackToString<'Date', $Scalars> + export interface dateArgNonNull$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { + date: $$Utilities.Schema.Scalar.GetDecoded< + $$Utilities.Schema.Scalar.LookupCustomScalarOrFallbackToString<'Date', $Scalars> > } @@ -3071,17 +3070,16 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type dateArgNonNull$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = - $$Utilities.Simplify< - dateArgNonNull$SelectionSet<$Scalars> - > + export type dateArgNonNull$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + dateArgNonNull$SelectionSet<$Scalars> + > // -------------------------------------------------------------------------------------------------- - export type dateArgNonNullList<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type dateArgNonNullList<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = dateArgNonNullList$SelectionSet<$Scalars> - export interface dateArgNonNullList$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface dateArgNonNullList$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base { /** @@ -3090,10 +3088,10 @@ export namespace Query { $: dateArgNonNullList$Arguments<$Scalars> } - export interface dateArgNonNullList$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface dateArgNonNullList$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { date: Array< - | $$Utilities.SchemaKit.Scalar.GetDecoded< - $$Utilities.SchemaKit.Scalar.LookupCustomScalarOrFallbackToString<'Date', $Scalars> + | $$Utilities.Schema.Scalar.GetDecoded< + $$Utilities.Schema.Scalar.LookupCustomScalarOrFallbackToString<'Date', $Scalars> > | undefined | null @@ -3107,17 +3105,17 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type dateArgNonNullList$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type dateArgNonNullList$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< dateArgNonNullList$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type dateArgNonNullListNonNull<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type dateArgNonNullListNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = dateArgNonNullListNonNull$SelectionSet<$Scalars> - export interface dateArgNonNullListNonNull$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface dateArgNonNullListNonNull$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base { /** @@ -3126,10 +3124,10 @@ export namespace Query { $: dateArgNonNullListNonNull$Arguments<$Scalars> } - export interface dateArgNonNullListNonNull$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface dateArgNonNullListNonNull$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { date: Array< - | $$Utilities.SchemaKit.Scalar.GetDecoded< - $$Utilities.SchemaKit.Scalar.LookupCustomScalarOrFallbackToString<'Date', $Scalars> + | $$Utilities.Schema.Scalar.GetDecoded< + $$Utilities.Schema.Scalar.LookupCustomScalarOrFallbackToString<'Date', $Scalars> > | undefined | null @@ -3143,17 +3141,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type dateArgNonNullListNonNull$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type dateArgNonNullListNonNull$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< dateArgNonNullListNonNull$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type dateInterface1<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = - dateInterface1$SelectionSet<$Scalars> + export type dateInterface1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = dateInterface1$SelectionSet< + $Scalars + > - export interface dateInterface1$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface dateInterface1$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$DateInterface1<$Scalars> {} @@ -3164,18 +3163,17 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type dateInterface1$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = - $$Utilities.Simplify< - dateInterface1$SelectionSet<$Scalars> - > + export type dateInterface1$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + dateInterface1$SelectionSet<$Scalars> + > // -------------------------------------------------------------------------------------------------- - export type dateList<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type dateList<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | dateList$SelectionSet<$Scalars> - export interface dateList$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface dateList$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -3186,18 +3184,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type dateList$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type dateList$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | dateList$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type dateListList<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type dateListList<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | dateListList$SelectionSet<$Scalars> - export interface dateListList$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface dateListList$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -3208,19 +3206,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type dateListList$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = - $$Utilities.Simplify< - | $Select.Indicator.NoArgsIndicator - | dateListList$SelectionSet<$Scalars> - > + export type dateListList$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + | $Select.Indicator.NoArgsIndicator + | dateListList$SelectionSet<$Scalars> + > // -------------------------------------------------------------------------------------------------- - export type dateListNonNull<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type dateListNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | dateListNonNull$SelectionSet<$Scalars> - export interface dateListNonNull$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface dateListNonNull$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -3231,7 +3228,7 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type dateListNonNull$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type dateListNonNull$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | dateListNonNull$SelectionSet<$Scalars> @@ -3239,11 +3236,11 @@ export namespace Query { // -------------------------------------------------------------------------------------------------- - export type dateNonNull<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type dateNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | dateNonNull$SelectionSet<$Scalars> - export interface dateNonNull$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface dateNonNull$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -3254,18 +3251,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type dateNonNull$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type dateNonNull$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | dateNonNull$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type dateObject1<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = dateObject1$SelectionSet< + export type dateObject1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = dateObject1$SelectionSet< $Scalars > - export interface dateObject1$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface dateObject1$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$DateObject1<$Scalars> {} @@ -3276,15 +3273,15 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type dateObject1$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type dateObject1$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< dateObject1$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type dateUnion<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = dateUnion$SelectionSet<$Scalars> + export type dateUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = dateUnion$SelectionSet<$Scalars> - export interface dateUnion$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface dateUnion$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$DateUnion<$Scalars> {} @@ -3295,17 +3292,17 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type dateUnion$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type dateUnion$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< dateUnion$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type error<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type error<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | error$SelectionSet<$Scalars> - export interface error$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface error$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base { /** @@ -3314,7 +3311,7 @@ export namespace Query { $?: error$Arguments<$Scalars> } - export interface error$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface error$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { case?: string | undefined | null } @@ -3325,18 +3322,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type error$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type error$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | error$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type id<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type id<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | id$SelectionSet<$Scalars> - export interface id$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface id$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -3347,18 +3344,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type id$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type id$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | id$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type idNonNull<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type idNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | idNonNull$SelectionSet<$Scalars> - export interface idNonNull$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface idNonNull$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -3369,18 +3366,16 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type idNonNull$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type idNonNull$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | idNonNull$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type $interface<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $interface$SelectionSet< - $Scalars - > + export type $interface<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $interface$SelectionSet<$Scalars> - export interface $interface$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface $interface$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$Interface<$Scalars> {} @@ -3391,16 +3386,16 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type $interface$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type $interface$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< $interface$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type interfaceNonNull<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type interfaceNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = interfaceNonNull$SelectionSet<$Scalars> - export interface interfaceNonNull$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface interfaceNonNull$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$Interface<$Scalars> {} @@ -3411,17 +3406,17 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type interfaceNonNull$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type interfaceNonNull$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< interfaceNonNull$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type interfaceWithArgs<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type interfaceWithArgs<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = interfaceWithArgs$SelectionSet<$Scalars> - export interface interfaceWithArgs$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface interfaceWithArgs$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$Interface<$Scalars> { /** @@ -3430,7 +3425,7 @@ export namespace Query { $: interfaceWithArgs$Arguments<$Scalars> } - export interface interfaceWithArgs$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface interfaceWithArgs$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { id: string } @@ -3441,18 +3436,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type interfaceWithArgs$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type interfaceWithArgs$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< interfaceWithArgs$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type listInt<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type listInt<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | listInt$SelectionSet<$Scalars> - export interface listInt$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface listInt$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -3463,18 +3458,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type listInt$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type listInt$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | listInt$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type listIntNonNull<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type listIntNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | listIntNonNull$SelectionSet<$Scalars> - export interface listIntNonNull$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface listIntNonNull$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -3485,19 +3480,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type listIntNonNull$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = - $$Utilities.Simplify< - | $Select.Indicator.NoArgsIndicator - | listIntNonNull$SelectionSet<$Scalars> - > + export type listIntNonNull$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + | $Select.Indicator.NoArgsIndicator + | listIntNonNull$SelectionSet<$Scalars> + > // -------------------------------------------------------------------------------------------------- - export type listListInt<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type listListInt<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | listListInt$SelectionSet<$Scalars> - export interface listListInt$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface listListInt$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -3508,18 +3502,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type listListInt$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type listListInt$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | listListInt$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type listListIntNonNull<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type listListIntNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | listListIntNonNull$SelectionSet<$Scalars> - export interface listListIntNonNull$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface listListIntNonNull$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -3530,7 +3524,7 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type listListIntNonNull$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type listListIntNonNull$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | listListIntNonNull$SelectionSet<$Scalars> @@ -3538,10 +3532,11 @@ export namespace Query { // -------------------------------------------------------------------------------------------------- - export type lowerCaseUnion<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = - lowerCaseUnion$SelectionSet<$Scalars> + export type lowerCaseUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = lowerCaseUnion$SelectionSet< + $Scalars + > - export interface lowerCaseUnion$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface lowerCaseUnion$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$lowerCaseUnion<$Scalars> {} @@ -3552,16 +3547,15 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type lowerCaseUnion$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = - $$Utilities.Simplify< - lowerCaseUnion$SelectionSet<$Scalars> - > + export type lowerCaseUnion$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + lowerCaseUnion$SelectionSet<$Scalars> + > // -------------------------------------------------------------------------------------------------- - export type $object<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $object$SelectionSet<$Scalars> + export type $object<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $object$SelectionSet<$Scalars> - export interface $object$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface $object$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$Object1<$Scalars> {} @@ -3572,17 +3566,15 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type $object$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type $object$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< $object$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type objectList<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = objectList$SelectionSet< - $Scalars - > + export type objectList<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = objectList$SelectionSet<$Scalars> - export interface objectList$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface objectList$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$Object1<$Scalars> {} @@ -3593,16 +3585,16 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type objectList$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type objectList$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< objectList$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type objectListNonNull<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type objectListNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = objectListNonNull$SelectionSet<$Scalars> - export interface objectListNonNull$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface objectListNonNull$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$Object1<$Scalars> {} @@ -3613,18 +3605,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type objectListNonNull$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type objectListNonNull$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< objectListNonNull$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type objectNested<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = objectNested$SelectionSet< + export type objectNested<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = objectNested$SelectionSet< $Scalars > - export interface objectNested$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface objectNested$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$ObjectNested<$Scalars> {} @@ -3635,18 +3627,17 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type objectNested$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = - $$Utilities.Simplify< - objectNested$SelectionSet<$Scalars> - > + export type objectNested$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + objectNested$SelectionSet<$Scalars> + > // -------------------------------------------------------------------------------------------------- - export type objectNonNull<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = objectNonNull$SelectionSet< + export type objectNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = objectNonNull$SelectionSet< $Scalars > - export interface objectNonNull$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface objectNonNull$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$Object1<$Scalars> {} @@ -3657,17 +3648,17 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type objectNonNull$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = - $$Utilities.Simplify< - objectNonNull$SelectionSet<$Scalars> - > + export type objectNonNull$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + objectNonNull$SelectionSet<$Scalars> + > // -------------------------------------------------------------------------------------------------- - export type objectWithArgs<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = - objectWithArgs$SelectionSet<$Scalars> + export type objectWithArgs<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = objectWithArgs$SelectionSet< + $Scalars + > - export interface objectWithArgs$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface objectWithArgs$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$Object1<$Scalars> { /** @@ -3676,7 +3667,7 @@ export namespace Query { $?: objectWithArgs$Arguments<$Scalars> } - export interface objectWithArgs$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface objectWithArgs$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { boolean?: boolean | undefined | null float?: number | undefined | null id?: string | undefined | null @@ -3691,16 +3682,15 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type objectWithArgs$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = - $$Utilities.Simplify< - objectWithArgs$SelectionSet<$Scalars> - > + export type objectWithArgs$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + objectWithArgs$SelectionSet<$Scalars> + > // -------------------------------------------------------------------------------------------------- - export type result<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = result$SelectionSet<$Scalars> + export type result<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = result$SelectionSet<$Scalars> - export interface result$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface result$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$Result<$Scalars> { /** @@ -3709,7 +3699,7 @@ export namespace Query { $: result$Arguments<$Scalars> } - export interface result$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface result$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { $case: $NamedTypes.$Case } @@ -3720,17 +3710,17 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type result$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type result$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< result$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type resultNonNull<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = resultNonNull$SelectionSet< + export type resultNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = resultNonNull$SelectionSet< $Scalars > - export interface resultNonNull$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface resultNonNull$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$Result<$Scalars> { /** @@ -3739,7 +3729,7 @@ export namespace Query { $?: resultNonNull$Arguments<$Scalars> } - export interface resultNonNull$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface resultNonNull$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { $case?: $NamedTypes.$Case | undefined | null } @@ -3750,18 +3740,17 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type resultNonNull$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = - $$Utilities.Simplify< - resultNonNull$SelectionSet<$Scalars> - > + export type resultNonNull$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + resultNonNull$SelectionSet<$Scalars> + > // -------------------------------------------------------------------------------------------------- - export type $string<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type $string<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | $string$SelectionSet<$Scalars> - export interface $string$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface $string$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -3772,18 +3761,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type $string$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type $string$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | $string$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type stringWithArgEnum<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type stringWithArgEnum<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | stringWithArgEnum$SelectionSet<$Scalars> - export interface stringWithArgEnum$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface stringWithArgEnum$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base { /** @@ -3792,7 +3781,7 @@ export namespace Query { $?: stringWithArgEnum$Arguments<$Scalars> } - export interface stringWithArgEnum$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface stringWithArgEnum$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { $ABCEnum?: $NamedTypes.$ABCEnum | undefined | null } @@ -3803,7 +3792,7 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type stringWithArgEnum$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type stringWithArgEnum$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | stringWithArgEnum$SelectionSet<$Scalars> @@ -3811,11 +3800,11 @@ export namespace Query { // -------------------------------------------------------------------------------------------------- - export type stringWithArgInputObject<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type stringWithArgInputObject<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | stringWithArgInputObject$SelectionSet<$Scalars> - export interface stringWithArgInputObject$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface stringWithArgInputObject$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base { /** @@ -3824,7 +3813,7 @@ export namespace Query { $?: stringWithArgInputObject$Arguments<$Scalars> } - export interface stringWithArgInputObject$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface stringWithArgInputObject$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { input?: $NamedTypes.$InputObject<$Scalars> | undefined | null } @@ -3835,7 +3824,7 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type stringWithArgInputObject$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type stringWithArgInputObject$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | stringWithArgInputObject$SelectionSet<$Scalars> @@ -3843,11 +3832,11 @@ export namespace Query { // -------------------------------------------------------------------------------------------------- - export type stringWithArgInputObjectRequired<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type stringWithArgInputObjectRequired<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = stringWithArgInputObjectRequired$SelectionSet<$Scalars> export interface stringWithArgInputObjectRequired$SelectionSet< - $Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}, + $Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}, > extends $Select.Bases.Base { /** * Arguments for \`stringWithArgInputObjectRequired\` field. All arguments are required so you must include this. @@ -3856,7 +3845,7 @@ export namespace Query { } export interface stringWithArgInputObjectRequired$Arguments< - $Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}, + $Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}, > { input: $NamedTypes.$InputObject<$Scalars> } @@ -3868,18 +3857,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type stringWithArgInputObjectRequired$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type stringWithArgInputObjectRequired$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< stringWithArgInputObjectRequired$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type stringWithArgs<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type stringWithArgs<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | stringWithArgs$SelectionSet<$Scalars> - export interface stringWithArgs$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface stringWithArgs$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base { /** @@ -3888,7 +3877,7 @@ export namespace Query { $?: stringWithArgs$Arguments<$Scalars> } - export interface stringWithArgs$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface stringWithArgs$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { boolean?: boolean | undefined | null float?: number | undefined | null id?: string | undefined | null @@ -3903,19 +3892,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type stringWithArgs$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = - $$Utilities.Simplify< - | $Select.Indicator.NoArgsIndicator - | stringWithArgs$SelectionSet<$Scalars> - > + export type stringWithArgs$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + | $Select.Indicator.NoArgsIndicator + | stringWithArgs$SelectionSet<$Scalars> + > // -------------------------------------------------------------------------------------------------- - export type stringWithListArg<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type stringWithListArg<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | stringWithListArg$SelectionSet<$Scalars> - export interface stringWithListArg$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface stringWithListArg$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base { /** @@ -3924,7 +3912,7 @@ export namespace Query { $?: stringWithListArg$Arguments<$Scalars> } - export interface stringWithListArg$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface stringWithListArg$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { ints?: Array | undefined | null } @@ -3935,7 +3923,7 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type stringWithListArg$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type stringWithListArg$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | stringWithListArg$SelectionSet<$Scalars> @@ -3943,10 +3931,10 @@ export namespace Query { // -------------------------------------------------------------------------------------------------- - export type stringWithListArgRequired<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type stringWithListArgRequired<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = stringWithListArgRequired$SelectionSet<$Scalars> - export interface stringWithListArgRequired$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface stringWithListArgRequired$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base { /** @@ -3955,7 +3943,7 @@ export namespace Query { $: stringWithListArgRequired$Arguments<$Scalars> } - export interface stringWithListArgRequired$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface stringWithListArgRequired$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { ints: Array } @@ -3966,17 +3954,17 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type stringWithListArgRequired$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type stringWithListArgRequired$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< stringWithListArgRequired$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type stringWithRequiredArg<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type stringWithRequiredArg<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = stringWithRequiredArg$SelectionSet<$Scalars> - export interface stringWithRequiredArg$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface stringWithRequiredArg$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base { /** @@ -3985,7 +3973,7 @@ export namespace Query { $: stringWithRequiredArg$Arguments<$Scalars> } - export interface stringWithRequiredArg$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface stringWithRequiredArg$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { string: string } @@ -3996,18 +3984,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type stringWithRequiredArg$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type stringWithRequiredArg$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< stringWithRequiredArg$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type unionFooBar<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = unionFooBar$SelectionSet< + export type unionFooBar<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = unionFooBar$SelectionSet< $Scalars > - export interface unionFooBar$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface unionFooBar$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$FooBarUnion<$Scalars> {} @@ -4018,16 +4006,16 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type unionFooBar$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type unionFooBar$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< unionFooBar$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type unionFooBarNonNull<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type unionFooBarNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = unionFooBarNonNull$SelectionSet<$Scalars> - export interface unionFooBarNonNull$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface unionFooBarNonNull$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$FooBarUnion<$Scalars> {} @@ -4038,17 +4026,17 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type unionFooBarNonNull$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type unionFooBarNonNull$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< unionFooBarNonNull$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type unionFooBarWithArgs<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type unionFooBarWithArgs<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = unionFooBarWithArgs$SelectionSet<$Scalars> - export interface unionFooBarWithArgs$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface unionFooBarWithArgs$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$FooBarUnion<$Scalars> { /** @@ -4057,7 +4045,7 @@ export namespace Query { $?: unionFooBarWithArgs$Arguments<$Scalars> } - export interface unionFooBarWithArgs$Arguments<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { + export interface unionFooBarWithArgs$Arguments<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { id?: string | undefined | null } @@ -4068,18 +4056,18 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type unionFooBarWithArgs$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type unionFooBarWithArgs$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< unionFooBarWithArgs$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type unionObject<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = unionObject$SelectionSet< + export type unionObject<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = unionObject$SelectionSet< $Scalars > - export interface unionObject$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface unionObject$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$ObjectUnion<$Scalars> {} @@ -4090,16 +4078,16 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type unionObject$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type unionObject$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< unionObject$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type unionObjectNonNull<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type unionObjectNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = unionObjectNonNull$SelectionSet<$Scalars> - export interface unionObjectNonNull$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface unionObjectNonNull$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$ObjectUnion<$Scalars> {} @@ -4110,7 +4098,7 @@ export namespace Query { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type unionObjectNonNull$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type unionObjectNonNull$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< unionObjectNonNull$SelectionSet<$Scalars> > @@ -4123,7 +4111,7 @@ export namespace Query { // // // ================================================================================================== -// GraphQLEnumType Types +// Enum // ================================================================================================== // // @@ -4151,7 +4139,7 @@ export type Case = 'ErrorOne' | 'ErrorTwo' | 'Object1' // // // ================================================================================================== -// GraphQLInputObjectType Types +// InputObject // ================================================================================================== // // @@ -4160,35 +4148,35 @@ export type Case = 'ErrorOne' | 'ErrorTwo' | 'Object1' // // -export interface InputObject<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { +export interface InputObject<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { date?: - | $$Utilities.SchemaKit.Scalar.GetDecoded< - $$Utilities.SchemaKit.Scalar.LookupCustomScalarOrFallbackToString<'Date', $Scalars> + | $$Utilities.Schema.Scalar.GetDecoded< + $$Utilities.Schema.Scalar.LookupCustomScalarOrFallbackToString<'Date', $Scalars> > | undefined | null - dateRequired: $$Utilities.SchemaKit.Scalar.GetDecoded< - $$Utilities.SchemaKit.Scalar.LookupCustomScalarOrFallbackToString<'Date', $Scalars> + dateRequired: $$Utilities.Schema.Scalar.GetDecoded< + $$Utilities.Schema.Scalar.LookupCustomScalarOrFallbackToString<'Date', $Scalars> > id?: string | undefined | null idRequired: string } -export interface InputObjectCircular<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { +export interface InputObjectCircular<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { circular?: $NamedTypes.$InputObjectCircular<$Scalars> | undefined | null date?: - | $$Utilities.SchemaKit.Scalar.GetDecoded< - $$Utilities.SchemaKit.Scalar.LookupCustomScalarOrFallbackToString<'Date', $Scalars> + | $$Utilities.Schema.Scalar.GetDecoded< + $$Utilities.Schema.Scalar.LookupCustomScalarOrFallbackToString<'Date', $Scalars> > | undefined | null } -export interface InputObjectNested<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { +export interface InputObjectNested<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { InputObject?: $NamedTypes.$InputObject<$Scalars> | undefined | null } -export interface InputObjectNestedNonNull<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { +export interface InputObjectNestedNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { InputObject: $NamedTypes.$InputObject<$Scalars> } @@ -4199,7 +4187,7 @@ export interface InputObjectNestedNonNull<$Scalars extends $$Utilities.SchemaKit // // // ================================================================================================== -// GraphQLInterfaceType Types +// OutputObject // ================================================================================================== // // @@ -4208,14 +4196,25 @@ export interface InputObjectNestedNonNull<$Scalars extends $$Utilities.SchemaKit // // -// Interface Type: DateInterface1 +// +// +// +// +// GRAPHQL SELECTION SET +// OUTPUTOBJECT +// -------------------------------------------------------------------------------------------------- +// Bar // -------------------------------------------------------------------------------------------------- +// +// -export interface DateInterface1<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> - extends $Select.Bases.ObjectLike -{ - date1?: DateInterface1.date1<$Scalars> - ___on_DateObject1?: DateObject1<$Scalars> +// ----------------------------------------| Entrypoint Interface | + +export interface Bar<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { + /** + * Select the \`int\` field on the \`Bar\` object. Its type is \`Int\` (a \`ScalarStandard\` kind of type). + */ + int?: Bar.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** * Inline fragments for field groups. @@ -4226,12 +4225,11 @@ export interface DateInterface1<$Scalars extends $$Utilities.SchemaKit.Scalar.Sc * @see https://spec.graphql.org/draft/#sec-Inline-Fragments */ ___?: - | DateInterface1$FragmentInline<$Scalars> - | DateInterface1$FragmentInline<$Scalars>[] + | Bar$FragmentInline<$Scalars> + | Bar$FragmentInline<$Scalars>[] /** - * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, - * the name is one of the implementor type names, whichever is ultimately returned at runtime. + * A meta field. Is the name of the type being selected. * * @see https://graphql.org/learn/queries/#meta-fields */ @@ -4240,39 +4238,55 @@ export interface DateInterface1<$Scalars extends $$Utilities.SchemaKit.Scalar.Sc | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface DateInterface1$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> - extends DateInterface1<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields +export interface Bar$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends Bar<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} -export namespace DateInterface1 { - export type date1<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = +// ----------------------------------------| Fields | + +export namespace Bar { + export type int<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator - | date1$SelectionSet<$Scalars> + | int$SelectionSet<$Scalars> - export interface date1$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface int$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} // --- expanded --- /** - * This is the "expanded" version of the \`date1\` type. It is identical except for the fact + * This is the "expanded" version of the \`int\` type. It is identical except for the fact * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type date1$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type int$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator - | date1$SelectionSet<$Scalars> + | int$SelectionSet<$Scalars> > } -// Interface Type: Error +// +// +// +// +// GRAPHQL SELECTION SET +// OUTPUTOBJECT +// -------------------------------------------------------------------------------------------------- +// DateObject1 // -------------------------------------------------------------------------------------------------- +// +// -export interface Error<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { - message?: Error.message<$Scalars> - ___on_ErrorOne?: ErrorOne<$Scalars> - ___on_ErrorTwo?: ErrorTwo<$Scalars> +// ----------------------------------------| Entrypoint Interface | + +export interface DateObject1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends $Select.Bases.ObjectLike +{ + /** + * Select the \`date1\` field on the \`DateObject1\` object. Its type is \`Date\` (a \`ScalarCustom\` kind of type). + */ + date1?: DateObject1.date1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** * Inline fragments for field groups. @@ -4283,12 +4297,11 @@ export interface Error<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = * @see https://spec.graphql.org/draft/#sec-Inline-Fragments */ ___?: - | Error$FragmentInline<$Scalars> - | Error$FragmentInline<$Scalars>[] + | DateObject1$FragmentInline<$Scalars> + | DateObject1$FragmentInline<$Scalars>[] /** - * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, - * the name is one of the implementor type names, whichever is ultimately returned at runtime. + * A meta field. Is the name of the type being selected. * * @see https://graphql.org/learn/queries/#meta-fields */ @@ -4297,233 +4310,18 @@ export interface Error<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface Error$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> - extends Error<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields +export interface DateObject1$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends DateObject1<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} -export namespace Error { - export type message<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = +// ----------------------------------------| Fields | + +export namespace DateObject1 { + export type date1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator - | message$SelectionSet<$Scalars> + | date1$SelectionSet<$Scalars> - export interface message$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> - extends $Select.Bases.Base - {} - - // --- expanded --- - - /** - * This is the "expanded" version of the \`message\` type. It is identical except for the fact - * that IDEs will display its contents (a union type) directly, rather than the name of this type. - * In some cases, this is a preferable DX, making the types easier to read for users. - */ - export type message$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< - | $Select.Indicator.NoArgsIndicator - | message$SelectionSet<$Scalars> - > -} - -// Interface Type: Interface -// -------------------------------------------------------------------------------------------------- - -export interface Interface<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> - extends $Select.Bases.ObjectLike -{ - id?: Interface.id<$Scalars> - ___on_Object1ImplementingInterface?: Object1ImplementingInterface<$Scalars> - ___on_Object2ImplementingInterface?: Object2ImplementingInterface<$Scalars> - - /** - * Inline fragments for field groups. - * - * Generally a niche feature. This can be useful for example to apply an \`@include\` directive to a subset of the - * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. - * - * @see https://spec.graphql.org/draft/#sec-Inline-Fragments - */ - ___?: - | Interface$FragmentInline<$Scalars> - | Interface$FragmentInline<$Scalars>[] - - /** - * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, - * the name is one of the implementor type names, whichever is ultimately returned at runtime. - * - * @see https://graphql.org/learn/queries/#meta-fields - */ - __typename?: - | $Select.Indicator.NoArgsIndicator$Expanded - | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> -} - -export interface Interface$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> - extends Interface<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields -{} - -export namespace Interface { - export type id<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = - | $Select.Indicator.NoArgsIndicator - | id$SelectionSet<$Scalars> - - export interface id$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> - extends $Select.Bases.Base - {} - - // --- expanded --- - - /** - * This is the "expanded" version of the \`id\` type. It is identical except for the fact - * that IDEs will display its contents (a union type) directly, rather than the name of this type. - * In some cases, this is a preferable DX, making the types easier to read for users. - */ - export type id$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< - | $Select.Indicator.NoArgsIndicator - | id$SelectionSet<$Scalars> - > -} - -// -// -// -// -// -// -// ================================================================================================== -// GraphQLObjectType Types -// ================================================================================================== -// -// -// -// -// -// - -// -// -// -// -// GRAPHQL SELECTION SET -// OBJECT -// -------------------------------------------------------------------------------------------------- -// Bar -// -------------------------------------------------------------------------------------------------- -// -// - -// ----------------------------------------| Entrypoint Interface | - -export interface Bar<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { - /** - * Select the \`int\` field on the \`Bar\` object. Its type is \`Int\` (a \`Scalar\`). - */ - int?: Bar.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> - - /** - * Inline fragments for field groups. - * - * Generally a niche feature. This can be useful for example to apply an \`@include\` directive to a subset of the - * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. - * - * @see https://spec.graphql.org/draft/#sec-Inline-Fragments - */ - ___?: - | Bar$FragmentInline<$Scalars> - | Bar$FragmentInline<$Scalars>[] - - /** - * A meta field. Is the name of the type being selected. - * - * @see https://graphql.org/learn/queries/#meta-fields - */ - __typename?: - | $Select.Indicator.NoArgsIndicator$Expanded - | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> -} - -export interface Bar$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> - extends Bar<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields -{} - -// ----------------------------------------| Fields | - -export namespace Bar { - export type int<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = - | $Select.Indicator.NoArgsIndicator - | int$SelectionSet<$Scalars> - - export interface int$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> - extends $Select.Bases.Base - {} - - // --- expanded --- - - /** - * This is the "expanded" version of the \`int\` type. It is identical except for the fact - * that IDEs will display its contents (a union type) directly, rather than the name of this type. - * In some cases, this is a preferable DX, making the types easier to read for users. - */ - export type int$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< - | $Select.Indicator.NoArgsIndicator - | int$SelectionSet<$Scalars> - > -} - -// -// -// -// -// GRAPHQL SELECTION SET -// OBJECT -// -------------------------------------------------------------------------------------------------- -// DateObject1 -// -------------------------------------------------------------------------------------------------- -// -// - -// ----------------------------------------| Entrypoint Interface | - -export interface DateObject1<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> - extends $Select.Bases.ObjectLike -{ - /** - * Select the \`date1\` field on the \`DateObject1\` object. Its type is \`Date\` (a \`Scalar\`). - */ - date1?: DateObject1.date1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> - - /** - * Inline fragments for field groups. - * - * Generally a niche feature. This can be useful for example to apply an \`@include\` directive to a subset of the - * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. - * - * @see https://spec.graphql.org/draft/#sec-Inline-Fragments - */ - ___?: - | DateObject1$FragmentInline<$Scalars> - | DateObject1$FragmentInline<$Scalars>[] - - /** - * A meta field. Is the name of the type being selected. - * - * @see https://graphql.org/learn/queries/#meta-fields - */ - __typename?: - | $Select.Indicator.NoArgsIndicator$Expanded - | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> -} - -export interface DateObject1$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> - extends DateObject1<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields -{} - -// ----------------------------------------| Fields | - -export namespace DateObject1 { - export type date1<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = - | $Select.Indicator.NoArgsIndicator - | date1$SelectionSet<$Scalars> - - export interface date1$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface date1$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -4534,7 +4332,7 @@ export namespace DateObject1 { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type date1$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type date1$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | date1$SelectionSet<$Scalars> > @@ -4545,7 +4343,7 @@ export namespace DateObject1 { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // DateObject2 // -------------------------------------------------------------------------------------------------- @@ -4554,11 +4352,11 @@ export namespace DateObject1 { // ----------------------------------------| Entrypoint Interface | -export interface DateObject2<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface DateObject2<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the \`date2\` field on the \`DateObject2\` object. Its type is \`Date\` (a \`Scalar\`). + * Select the \`date2\` field on the \`DateObject2\` object. Its type is \`Date\` (a \`ScalarCustom\` kind of type). */ date2?: DateObject2.date2$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -4584,18 +4382,18 @@ export interface DateObject2<$Scalars extends $$Utilities.SchemaKit.Scalar.Scala | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface DateObject2$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface DateObject2$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends DateObject2<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} // ----------------------------------------| Fields | export namespace DateObject2 { - export type date2<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type date2<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | date2$SelectionSet<$Scalars> - export interface date2$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface date2$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -4606,7 +4404,7 @@ export namespace DateObject2 { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type date2$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type date2$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | date2$SelectionSet<$Scalars> > @@ -4617,7 +4415,7 @@ export namespace DateObject2 { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // ErrorOne // -------------------------------------------------------------------------------------------------- @@ -4626,15 +4424,13 @@ export namespace DateObject2 { // ----------------------------------------| Entrypoint Interface | -export interface ErrorOne<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> - extends $Select.Bases.ObjectLike -{ +export interface ErrorOne<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the \`infoId\` field on the \`ErrorOne\` object. Its type is \`ID\` (a \`Scalar\`). + * Select the \`infoId\` field on the \`ErrorOne\` object. Its type is \`ID\` (a \`ScalarStandard\` kind of type). */ infoId?: ErrorOne.infoId$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`message\` field on the \`ErrorOne\` object. Its type is \`String\` (a \`Scalar\`). + * Select the \`message\` field on the \`ErrorOne\` object. Its type is \`String\` (a \`ScalarStandard\` kind of type). */ message?: ErrorOne.message$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -4660,18 +4456,18 @@ export interface ErrorOne<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMa | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface ErrorOne$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface ErrorOne$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends ErrorOne<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} // ----------------------------------------| Fields | export namespace ErrorOne { - export type infoId<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type infoId<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | infoId$SelectionSet<$Scalars> - export interface infoId$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface infoId$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -4682,18 +4478,18 @@ export namespace ErrorOne { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type infoId$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type infoId$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | infoId$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type message<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type message<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | message$SelectionSet<$Scalars> - export interface message$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface message$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -4704,7 +4500,7 @@ export namespace ErrorOne { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type message$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type message$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | message$SelectionSet<$Scalars> > @@ -4715,7 +4511,7 @@ export namespace ErrorOne { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // ErrorTwo // -------------------------------------------------------------------------------------------------- @@ -4724,15 +4520,13 @@ export namespace ErrorOne { // ----------------------------------------| Entrypoint Interface | -export interface ErrorTwo<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> - extends $Select.Bases.ObjectLike -{ +export interface ErrorTwo<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the \`infoInt\` field on the \`ErrorTwo\` object. Its type is \`Int\` (a \`Scalar\`). + * Select the \`infoInt\` field on the \`ErrorTwo\` object. Its type is \`Int\` (a \`ScalarStandard\` kind of type). */ infoInt?: ErrorTwo.infoInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`message\` field on the \`ErrorTwo\` object. Its type is \`String\` (a \`Scalar\`). + * Select the \`message\` field on the \`ErrorTwo\` object. Its type is \`String\` (a \`ScalarStandard\` kind of type). */ message?: ErrorTwo.message$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -4758,18 +4552,18 @@ export interface ErrorTwo<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMa | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface ErrorTwo$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface ErrorTwo$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends ErrorTwo<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} // ----------------------------------------| Fields | export namespace ErrorTwo { - export type infoInt<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type infoInt<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | infoInt$SelectionSet<$Scalars> - export interface infoInt$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface infoInt$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -4780,18 +4574,18 @@ export namespace ErrorTwo { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type infoInt$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type infoInt$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | infoInt$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type message<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type message<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | message$SelectionSet<$Scalars> - export interface message$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface message$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -4802,7 +4596,7 @@ export namespace ErrorTwo { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type message$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type message$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | message$SelectionSet<$Scalars> > @@ -4813,7 +4607,7 @@ export namespace ErrorTwo { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Foo // -------------------------------------------------------------------------------------------------- @@ -4825,9 +4619,9 @@ export namespace ErrorTwo { /** * Object documentation. */ -export interface Foo<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { +export interface Foo<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the \`id\` field on the \`Foo\` object. Its type is \`ID\` (a \`Scalar\`). + * Select the \`id\` field on the \`Foo\` object. Its type is \`ID\` (a \`ScalarStandard\` kind of type). */ id?: Foo.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -4853,18 +4647,18 @@ export interface Foo<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = { | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface Foo$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface Foo$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends Foo<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} // ----------------------------------------| Fields | export namespace Foo { - export type id<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type id<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | id$SelectionSet<$Scalars> - export interface id$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface id$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -4875,7 +4669,7 @@ export namespace Foo { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type id$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type id$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | id$SelectionSet<$Scalars> > @@ -4886,7 +4680,7 @@ export namespace Foo { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Object1 // -------------------------------------------------------------------------------------------------- @@ -4895,31 +4689,29 @@ export namespace Foo { // ----------------------------------------| Entrypoint Interface | -export interface Object1<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> - extends $Select.Bases.ObjectLike -{ +export interface Object1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the \`ABCEnum\` field on the \`Object1\` object. Its type is Enum. + * Select the \`ABCEnum\` field on the \`Object1\` object. Its type is \`ABCEnum\` (a \`Enum\` kind of type). */ ABCEnum?: Object1.ABCEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`boolean\` field on the \`Object1\` object. Its type is \`Boolean\` (a \`Scalar\`). + * Select the \`boolean\` field on the \`Object1\` object. Its type is \`Boolean\` (a \`ScalarStandard\` kind of type). */ boolean?: Object1.$boolean$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`float\` field on the \`Object1\` object. Its type is \`Float\` (a \`Scalar\`). + * Select the \`float\` field on the \`Object1\` object. Its type is \`Float\` (a \`ScalarStandard\` kind of type). */ float?: Object1.float$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`id\` field on the \`Object1\` object. Its type is \`ID\` (a \`Scalar\`). + * Select the \`id\` field on the \`Object1\` object. Its type is \`ID\` (a \`ScalarStandard\` kind of type). */ id?: Object1.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`int\` field on the \`Object1\` object. Its type is \`Int\` (a \`Scalar\`). + * Select the \`int\` field on the \`Object1\` object. Its type is \`Int\` (a \`ScalarStandard\` kind of type). */ int?: Object1.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`string\` field on the \`Object1\` object. Its type is \`String\` (a \`Scalar\`). + * Select the \`string\` field on the \`Object1\` object. Its type is \`String\` (a \`ScalarStandard\` kind of type). */ string?: Object1.$string$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -4945,18 +4737,18 @@ export interface Object1<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface Object1$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface Object1$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends Object1<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} // ----------------------------------------| Fields | export namespace Object1 { - export type ABCEnum<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type ABCEnum<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | ABCEnum$SelectionSet<$Scalars> - export interface ABCEnum$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface ABCEnum$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -4967,18 +4759,18 @@ export namespace Object1 { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type ABCEnum$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type ABCEnum$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | ABCEnum$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type $boolean<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type $boolean<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | $boolean$SelectionSet<$Scalars> - export interface $boolean$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface $boolean$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -4989,18 +4781,18 @@ export namespace Object1 { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type $boolean$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type $boolean$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | $boolean$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type float<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type float<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | float$SelectionSet<$Scalars> - export interface float$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface float$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -5011,18 +4803,18 @@ export namespace Object1 { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type float$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type float$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | float$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type id<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type id<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | id$SelectionSet<$Scalars> - export interface id$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface id$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -5033,18 +4825,18 @@ export namespace Object1 { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type id$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type id$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | id$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type int<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type int<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | int$SelectionSet<$Scalars> - export interface int$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface int$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -5055,18 +4847,18 @@ export namespace Object1 { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type int$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type int$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | int$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type $string<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type $string<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | $string$SelectionSet<$Scalars> - export interface $string$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface $string$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -5077,7 +4869,7 @@ export namespace Object1 { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type $string$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type $string$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | $string$SelectionSet<$Scalars> > @@ -5088,7 +4880,7 @@ export namespace Object1 { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Object1ImplementingInterface // -------------------------------------------------------------------------------------------------- @@ -5097,17 +4889,17 @@ export namespace Object1 { // ----------------------------------------| Entrypoint Interface | -export interface Object1ImplementingInterface<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface Object1ImplementingInterface<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the \`id\` field on the \`Object1ImplementingInterface\` object. Its type is \`ID\` (a \`Scalar\`). + * Select the \`id\` field on the \`Object1ImplementingInterface\` object. Its type is \`ID\` (a \`ScalarStandard\` kind of type). */ id?: | Object1ImplementingInterface.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`int\` field on the \`Object1ImplementingInterface\` object. Its type is \`Int\` (a \`Scalar\`). + * Select the \`int\` field on the \`Object1ImplementingInterface\` object. Its type is \`Int\` (a \`ScalarStandard\` kind of type). */ int?: | Object1ImplementingInterface.int$Expanded<$Scalars> @@ -5135,18 +4927,18 @@ export interface Object1ImplementingInterface<$Scalars extends $$Utilities.Schem | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface Object1ImplementingInterface$FragmentInline< - $Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}, -> extends Object1ImplementingInterface<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} +export interface Object1ImplementingInterface$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends Object1ImplementingInterface<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields +{} // ----------------------------------------| Fields | export namespace Object1ImplementingInterface { - export type id<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type id<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | id$SelectionSet<$Scalars> - export interface id$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface id$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -5157,18 +4949,18 @@ export namespace Object1ImplementingInterface { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type id$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type id$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | id$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type int<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type int<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | int$SelectionSet<$Scalars> - export interface int$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface int$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -5179,7 +4971,7 @@ export namespace Object1ImplementingInterface { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type int$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type int$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | int$SelectionSet<$Scalars> > @@ -5190,7 +4982,7 @@ export namespace Object1ImplementingInterface { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Object2ImplementingInterface // -------------------------------------------------------------------------------------------------- @@ -5199,17 +4991,17 @@ export namespace Object1ImplementingInterface { // ----------------------------------------| Entrypoint Interface | -export interface Object2ImplementingInterface<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface Object2ImplementingInterface<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the \`boolean\` field on the \`Object2ImplementingInterface\` object. Its type is \`Boolean\` (a \`Scalar\`). + * Select the \`boolean\` field on the \`Object2ImplementingInterface\` object. Its type is \`Boolean\` (a \`ScalarStandard\` kind of type). */ boolean?: | Object2ImplementingInterface.$boolean$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`id\` field on the \`Object2ImplementingInterface\` object. Its type is \`ID\` (a \`Scalar\`). + * Select the \`id\` field on the \`Object2ImplementingInterface\` object. Its type is \`ID\` (a \`ScalarStandard\` kind of type). */ id?: | Object2ImplementingInterface.id$Expanded<$Scalars> @@ -5237,18 +5029,18 @@ export interface Object2ImplementingInterface<$Scalars extends $$Utilities.Schem | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface Object2ImplementingInterface$FragmentInline< - $Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}, -> extends Object2ImplementingInterface<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} +export interface Object2ImplementingInterface$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends Object2ImplementingInterface<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields +{} // ----------------------------------------| Fields | export namespace Object2ImplementingInterface { - export type $boolean<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type $boolean<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | $boolean$SelectionSet<$Scalars> - export interface $boolean$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface $boolean$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -5259,18 +5051,18 @@ export namespace Object2ImplementingInterface { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type $boolean$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type $boolean$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | $boolean$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type id<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type id<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | id$SelectionSet<$Scalars> - export interface id$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface id$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -5281,7 +5073,7 @@ export namespace Object2ImplementingInterface { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type id$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type id$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | id$SelectionSet<$Scalars> > @@ -5292,7 +5084,7 @@ export namespace Object2ImplementingInterface { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // ObjectNested // -------------------------------------------------------------------------------------------------- @@ -5301,15 +5093,15 @@ export namespace Object2ImplementingInterface { // ----------------------------------------| Entrypoint Interface | -export interface ObjectNested<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface ObjectNested<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the \`id\` field on the \`ObjectNested\` object. Its type is \`ID\` (a \`Scalar\`). + * Select the \`id\` field on the \`ObjectNested\` object. Its type is \`ID\` (a \`ScalarStandard\` kind of type). */ id?: ObjectNested.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the \`object\` field on the \`ObjectNested\` object. Its type is Object. + * Select the \`object\` field on the \`ObjectNested\` object. Its type is \`Object1\` (a \`OutputObject\` kind of type). */ object?: ObjectNested.$object$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -5335,18 +5127,18 @@ export interface ObjectNested<$Scalars extends $$Utilities.SchemaKit.Scalar.Scal | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface ObjectNested$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface ObjectNested$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends ObjectNested<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} // ----------------------------------------| Fields | export namespace ObjectNested { - export type id<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type id<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | id$SelectionSet<$Scalars> - export interface id$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface id$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -5357,16 +5149,16 @@ export namespace ObjectNested { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type id$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type id$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | id$SelectionSet<$Scalars> > // -------------------------------------------------------------------------------------------------- - export type $object<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $object$SelectionSet<$Scalars> + export type $object<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $object$SelectionSet<$Scalars> - export interface $object$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface $object$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$Object1<$Scalars> {} @@ -5377,7 +5169,7 @@ export namespace ObjectNested { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type $object$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type $object$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< $object$SelectionSet<$Scalars> > } @@ -5387,7 +5179,7 @@ export namespace ObjectNested { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // ObjectUnion // -------------------------------------------------------------------------------------------------- @@ -5396,11 +5188,11 @@ export namespace ObjectNested { // ----------------------------------------| Entrypoint Interface | -export interface ObjectUnion<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface ObjectUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the \`fooBarUnion\` field on the \`ObjectUnion\` object. Its type is Union. + * Select the \`fooBarUnion\` field on the \`ObjectUnion\` object. Its type is \`FooBarUnion\` (a \`Union\` kind of type). */ fooBarUnion?: | ObjectUnion.fooBarUnion$Expanded<$Scalars> @@ -5428,18 +5220,18 @@ export interface ObjectUnion<$Scalars extends $$Utilities.SchemaKit.Scalar.Scala | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface ObjectUnion$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface ObjectUnion$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends ObjectUnion<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} // ----------------------------------------| Fields | export namespace ObjectUnion { - export type fooBarUnion<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = fooBarUnion$SelectionSet< + export type fooBarUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = fooBarUnion$SelectionSet< $Scalars > - export interface fooBarUnion$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface fooBarUnion$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base, $NamedTypes.$FooBarUnion<$Scalars> {} @@ -5450,7 +5242,7 @@ export namespace ObjectUnion { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type fooBarUnion$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type fooBarUnion$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< fooBarUnion$SelectionSet<$Scalars> > } @@ -5460,7 +5252,7 @@ export namespace ObjectUnion { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // lowerCaseObject // -------------------------------------------------------------------------------------------------- @@ -5469,11 +5261,11 @@ export namespace ObjectUnion { // ----------------------------------------| Entrypoint Interface | -export interface lowerCaseObject<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface lowerCaseObject<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the \`id\` field on the \`lowerCaseObject\` object. Its type is \`ID\` (a \`Scalar\`). + * Select the \`id\` field on the \`lowerCaseObject\` object. Its type is \`ID\` (a \`ScalarStandard\` kind of type). */ id?: lowerCaseObject.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -5499,18 +5291,18 @@ export interface lowerCaseObject<$Scalars extends $$Utilities.SchemaKit.Scalar.S | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface lowerCaseObject$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface lowerCaseObject$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends lowerCaseObject<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} // ----------------------------------------| Fields | export namespace lowerCaseObject { - export type id<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type id<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | id$SelectionSet<$Scalars> - export interface id$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface id$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -5521,7 +5313,7 @@ export namespace lowerCaseObject { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type id$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type id$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | id$SelectionSet<$Scalars> > @@ -5532,7 +5324,7 @@ export namespace lowerCaseObject { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // lowerCaseObject2 // -------------------------------------------------------------------------------------------------- @@ -5541,11 +5333,11 @@ export namespace lowerCaseObject { // ----------------------------------------| Entrypoint Interface | -export interface lowerCaseObject2<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface lowerCaseObject2<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the \`int\` field on the \`lowerCaseObject2\` object. Its type is \`Int\` (a \`Scalar\`). + * Select the \`int\` field on the \`lowerCaseObject2\` object. Its type is \`Int\` (a \`ScalarStandard\` kind of type). */ int?: lowerCaseObject2.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -5571,18 +5363,18 @@ export interface lowerCaseObject2<$Scalars extends $$Utilities.SchemaKit.Scalar. | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface lowerCaseObject2$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface lowerCaseObject2$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends lowerCaseObject2<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} // ----------------------------------------| Fields | export namespace lowerCaseObject2 { - export type int<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type int<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = | $Select.Indicator.NoArgsIndicator | int$SelectionSet<$Scalars> - export interface int$SelectionSet<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> + export interface int$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.Base {} @@ -5593,7 +5385,7 @@ export namespace lowerCaseObject2 { * that IDEs will display its contents (a union type) directly, rather than the name of this type. * In some cases, this is a preferable DX, making the types easier to read for users. */ - export type int$Expanded<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + export type int$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< | $Select.Indicator.NoArgsIndicator | int$SelectionSet<$Scalars> > @@ -5606,7 +5398,7 @@ export namespace lowerCaseObject2 { // // // ================================================================================================== -// GraphQLUnionType Types +// Union // ================================================================================================== // // @@ -5615,7 +5407,7 @@ export namespace lowerCaseObject2 { // // -export interface DateUnion<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { +export interface DateUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { ___on_DateObject1?: DateObject1<$Scalars> ___on_DateObject2?: DateObject2<$Scalars> @@ -5641,14 +5433,14 @@ export interface DateUnion<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarM | $Select.Indicator.NoArgsIndicator$Expanded | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface DateUnion$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface DateUnion$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends DateUnion<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} /** * Union documentation. */ -export interface FooBarUnion<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { +export interface FooBarUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { ___on_Bar?: Bar<$Scalars> ___on_Foo?: Foo<$Scalars> @@ -5674,11 +5466,11 @@ export interface FooBarUnion<$Scalars extends $$Utilities.SchemaKit.Scalar.Scala | $Select.Indicator.NoArgsIndicator$Expanded | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface FooBarUnion$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface FooBarUnion$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends FooBarUnion<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} -export interface Result<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { +export interface Result<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { ___on_ErrorOne?: ErrorOne<$Scalars> ___on_ErrorTwo?: ErrorTwo<$Scalars> ___on_Object1?: Object1<$Scalars> @@ -5705,11 +5497,11 @@ export interface Result<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap | $Select.Indicator.NoArgsIndicator$Expanded | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface Result$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface Result$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends Result<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} -export interface lowerCaseUnion<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> { +export interface lowerCaseUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { ___on_lowerCaseObject?: lowerCaseObject<$Scalars> ___on_lowerCaseObject2?: lowerCaseObject2<$Scalars> @@ -5735,10 +5527,198 @@ export interface lowerCaseUnion<$Scalars extends $$Utilities.SchemaKit.Scalar.Sc | $Select.Indicator.NoArgsIndicator$Expanded | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> } -export interface lowerCaseUnion$FragmentInline<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> +export interface lowerCaseUnion$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends lowerCaseUnion<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} +// +// +// +// +// +// +// ================================================================================================== +// Interface +// ================================================================================================== +// +// +// +// +// +// + +// Interface Type: DateInterface1 +// -------------------------------------------------------------------------------------------------- + +export interface DateInterface1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends $Select.Bases.ObjectLike +{ + date1?: DateInterface1.date1<$Scalars> + ___on_DateObject1?: DateObject1<$Scalars> + + /** + * Inline fragments for field groups. + * + * Generally a niche feature. This can be useful for example to apply an \`@include\` directive to a subset of the + * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. + * + * @see https://spec.graphql.org/draft/#sec-Inline-Fragments + */ + ___?: + | DateInterface1$FragmentInline<$Scalars> + | DateInterface1$FragmentInline<$Scalars>[] + + /** + * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, + * the name is one of the implementor type names, whichever is ultimately returned at runtime. + * + * @see https://graphql.org/learn/queries/#meta-fields + */ + __typename?: + | $Select.Indicator.NoArgsIndicator$Expanded + | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> +} + +export interface DateInterface1$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends DateInterface1<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields +{} + +export namespace DateInterface1 { + export type date1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = + | $Select.Indicator.NoArgsIndicator + | date1$SelectionSet<$Scalars> + + export interface date1$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends $Select.Bases.Base + {} + + // --- expanded --- + + /** + * This is the "expanded" version of the \`date1\` type. It is identical except for the fact + * that IDEs will display its contents (a union type) directly, rather than the name of this type. + * In some cases, this is a preferable DX, making the types easier to read for users. + */ + export type date1$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + | $Select.Indicator.NoArgsIndicator + | date1$SelectionSet<$Scalars> + > +} + +// Interface Type: Error +// -------------------------------------------------------------------------------------------------- + +export interface Error<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { + message?: Error.message<$Scalars> + ___on_ErrorOne?: ErrorOne<$Scalars> + ___on_ErrorTwo?: ErrorTwo<$Scalars> + + /** + * Inline fragments for field groups. + * + * Generally a niche feature. This can be useful for example to apply an \`@include\` directive to a subset of the + * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. + * + * @see https://spec.graphql.org/draft/#sec-Inline-Fragments + */ + ___?: + | Error$FragmentInline<$Scalars> + | Error$FragmentInline<$Scalars>[] + + /** + * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, + * the name is one of the implementor type names, whichever is ultimately returned at runtime. + * + * @see https://graphql.org/learn/queries/#meta-fields + */ + __typename?: + | $Select.Indicator.NoArgsIndicator$Expanded + | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> +} + +export interface Error$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends Error<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields +{} + +export namespace Error { + export type message<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = + | $Select.Indicator.NoArgsIndicator + | message$SelectionSet<$Scalars> + + export interface message$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends $Select.Bases.Base + {} + + // --- expanded --- + + /** + * This is the "expanded" version of the \`message\` type. It is identical except for the fact + * that IDEs will display its contents (a union type) directly, rather than the name of this type. + * In some cases, this is a preferable DX, making the types easier to read for users. + */ + export type message$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + | $Select.Indicator.NoArgsIndicator + | message$SelectionSet<$Scalars> + > +} + +// Interface Type: Interface +// -------------------------------------------------------------------------------------------------- + +export interface Interface<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { + id?: Interface.id<$Scalars> + ___on_Object1ImplementingInterface?: Object1ImplementingInterface<$Scalars> + ___on_Object2ImplementingInterface?: Object2ImplementingInterface<$Scalars> + + /** + * Inline fragments for field groups. + * + * Generally a niche feature. This can be useful for example to apply an \`@include\` directive to a subset of the + * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. + * + * @see https://spec.graphql.org/draft/#sec-Inline-Fragments + */ + ___?: + | Interface$FragmentInline<$Scalars> + | Interface$FragmentInline<$Scalars>[] + + /** + * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, + * the name is one of the implementor type names, whichever is ultimately returned at runtime. + * + * @see https://graphql.org/learn/queries/#meta-fields + */ + __typename?: + | $Select.Indicator.NoArgsIndicator$Expanded + | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> +} + +export interface Interface$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends Interface<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields +{} + +export namespace Interface { + export type id<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = + | $Select.Indicator.NoArgsIndicator + | id$SelectionSet<$Scalars> + + export interface id$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends $Select.Bases.Base + {} + + // --- expanded --- + + /** + * This is the "expanded" version of the \`id\` type. It is identical except for the fact + * that IDEs will display its contents (a union type) directly, rather than the name of this type. + * In some cases, this is a preferable DX, making the types easier to read for users. + */ + export type id$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + | $Select.Indicator.NoArgsIndicator + | id$SelectionSet<$Scalars> + > +} + /** * [1] These definitions serve to allow field selection interfaces to extend their respective object type without * name clashing between the field name and the object name. @@ -5747,43 +5727,41 @@ export interface lowerCaseUnion$FragmentInline<$Scalars extends $$Utilities.Sche * would end up with an error of \`export interface Foo extends Foo ...\` */ export namespace $NamedTypes { - export type $Mutation<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = Mutation<$Scalars> - export type $Query<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = Query<$Scalars> + export type $Mutation<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Mutation<$Scalars> + export type $Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Query<$Scalars> export type $ABCEnum = ABCEnum export type $Case = Case - export type $InputObject<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = InputObject<$Scalars> - export type $InputObjectCircular<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = InputObjectCircular< + export type $InputObject<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = InputObject<$Scalars> + export type $InputObjectCircular<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = InputObjectCircular< $Scalars > - export type $InputObjectNested<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = InputObjectNested< + export type $InputObjectNested<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = InputObjectNested< $Scalars > - export type $InputObjectNestedNonNull<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type $InputObjectNestedNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = InputObjectNestedNonNull<$Scalars> - export type $DateInterface1<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = DateInterface1<$Scalars> - export type $Error<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = Error<$Scalars> - export type $Interface<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = Interface<$Scalars> - export type $Bar<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = Bar<$Scalars> - export type $DateObject1<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = DateObject1<$Scalars> - export type $DateObject2<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = DateObject2<$Scalars> - export type $ErrorOne<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = ErrorOne<$Scalars> - export type $ErrorTwo<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = ErrorTwo<$Scalars> - export type $Foo<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = Foo<$Scalars> - export type $Object1<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = Object1<$Scalars> - export type $Object1ImplementingInterface<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type $Bar<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Bar<$Scalars> + export type $DateObject1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = DateObject1<$Scalars> + export type $DateObject2<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = DateObject2<$Scalars> + export type $ErrorOne<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = ErrorOne<$Scalars> + export type $ErrorTwo<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = ErrorTwo<$Scalars> + export type $Foo<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Foo<$Scalars> + export type $Object1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Object1<$Scalars> + export type $Object1ImplementingInterface<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Object1ImplementingInterface<$Scalars> - export type $Object2ImplementingInterface<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = + export type $Object2ImplementingInterface<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Object2ImplementingInterface<$Scalars> - export type $ObjectNested<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = ObjectNested<$Scalars> - export type $ObjectUnion<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = ObjectUnion<$Scalars> - export type $lowerCaseObject<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = lowerCaseObject<$Scalars> - export type $lowerCaseObject2<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = lowerCaseObject2< - $Scalars - > - export type $DateUnion<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = DateUnion<$Scalars> - export type $FooBarUnion<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = FooBarUnion<$Scalars> - export type $Result<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = Result<$Scalars> - export type $lowerCaseUnion<$Scalars extends $$Utilities.SchemaKit.Scalar.ScalarMap = {}> = lowerCaseUnion<$Scalars> + export type $ObjectNested<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = ObjectNested<$Scalars> + export type $ObjectUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = ObjectUnion<$Scalars> + export type $lowerCaseObject<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = lowerCaseObject<$Scalars> + export type $lowerCaseObject2<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = lowerCaseObject2<$Scalars> + export type $DateUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = DateUnion<$Scalars> + export type $FooBarUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = FooBarUnion<$Scalars> + export type $Result<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Result<$Scalars> + export type $lowerCaseUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = lowerCaseUnion<$Scalars> + export type $DateInterface1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = DateInterface1<$Scalars> + export type $Error<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Error<$Scalars> + export type $Interface<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Interface<$Scalars> } " `; diff --git a/src/generator/generators/MethodsRoot.ts b/src/generator/generators/MethodsRoot.ts index b8bb81c0a..c29cc1733 100644 --- a/src/generator/generators/MethodsRoot.ts +++ b/src/generator/generators/MethodsRoot.ts @@ -21,7 +21,7 @@ export const ModuleGeneratorMethodsRoot = createModuleGenerator( code() - config.schema.kindMap.GraphQLRootType.forEach(node => { + config.schema.kindMap.Root.forEach(node => { code(renderRootType({ config, node })) code() }) @@ -29,7 +29,7 @@ export const ModuleGeneratorMethodsRoot = createModuleGenerator( code(` export interface BuilderMethodsRoot<$Context extends ${identifiers.$$Utilities}.ClientContext> { ${ - config.schema.kindMap.GraphQLRootType.map(node => { + config.schema.kindMap.Root.map(node => { const operationName = Grafaid.RootTypeNameToOperationName[node.name as keyof typeof Grafaid.RootTypeNameToOperationName] return `${operationName}: ${node.name}Methods<$Context>` diff --git a/src/generator/generators/MethodsSelect.ts b/src/generator/generators/MethodsSelect.ts index c133990ac..3890e8f64 100644 --- a/src/generator/generators/MethodsSelect.ts +++ b/src/generator/generators/MethodsSelect.ts @@ -1,5 +1,7 @@ // todo jsdoc +import { pick } from 'es-toolkit' import { Grafaid } from '../../lib/grafaid/__.js' +import { entries } from '../../lib/prelude.js' import { createModuleGenerator } from '../helpers/moduleGenerator.js' import { renderName, title1 } from '../helpers/render.js' import { ModuleGeneratorSelectionSets } from './SelectionSets.js' @@ -7,37 +9,32 @@ import { ModuleGeneratorSelectionSets } from './SelectionSets.js' export const ModuleGeneratorMethodsSelect = createModuleGenerator( `MethodsSelect`, ({ config, code }) => { + const kindMap = pick(config.schema.kindMap, [`Root`, `OutputObject`, `Union`, `Interface`]) + const kinds = entries(kindMap) + code(`import type * as $SelectionSets from './${ModuleGeneratorSelectionSets.name}.js'`) code(`import type * as $Utilities from '${config.paths.imports.grafflePackage.utilitiesForGenerated}'`) code() - const graphqlTypeGroups = [ - config.schema.kindMap.GraphQLRootType, - config.schema.kindMap.GraphQLObjectType, - config.schema.kindMap.GraphQLUnionType, - config.schema.kindMap.GraphQLInterfaceType, - ].filter(_ => _.length > 0) - code(title1(`Select Methods Interface`)) code() code(`export interface $MethodsSelect {`) - for (const graphqlTypeGroup of graphqlTypeGroups) { - for (const graphqlType of graphqlTypeGroup) { + for (const [_, kind] of kinds) { + for (const type of kind) { // dprint-ignore - code(`${graphqlType.name}: ${renderName(graphqlType)}`) + code(`${type.name}: ${renderName(type)}`) } } code(`}`) code() - for (const graphqlTypeGroup of graphqlTypeGroups) { - const { kind } = Grafaid.getTypeNameAndKind(graphqlTypeGroup[0]!) - const titleText = Grafaid.Schema.isRootType(graphqlTypeGroup[0]!) ? `Root` : kind + for (const [name, kind] of kinds) { + const titleText = Grafaid.Schema.isRootType(kind[0]!) ? `Root` : name code(title1(titleText)) code() - for (const graphqlType of graphqlTypeGroup) { + for (const graphqlType of kind) { // dprint-ignore code(` export interface ${renderName(graphqlType)} { diff --git a/src/generator/generators/Scalar.ts b/src/generator/generators/Scalar.ts index 43be923fb..ab57c0fcb 100644 --- a/src/generator/generators/Scalar.ts +++ b/src/generator/generators/Scalar.ts @@ -19,9 +19,9 @@ export const ModuleGeneratorScalar = createModuleGenerator( code(`import * as ${identifiers.CustomScalars} from '${config.paths.imports.customScalarCodecs}'`) code() code(`export * from '${config.paths.imports.customScalarCodecs}'`) - const names = config.schema.kindMap.GraphQLScalarTypeCustom.map((scalar) => scalar.name).join(`, `) + const names = config.schema.kindMap.ScalarCustom.map((scalar) => scalar.name).join(`, `) code(`export { ${names} } from '${config.paths.imports.customScalarCodecs}'`) - for (const scalar of config.schema.kindMap.GraphQLScalarTypeCustom) { + for (const scalar of config.schema.kindMap.ScalarCustom) { code(typeTitle2(`custom scalar type`)(scalar)) code() code(`export type ${scalar.name} = typeof ${identifiers.CustomScalars}.${scalar.name}`) @@ -50,7 +50,7 @@ export const ModuleGeneratorScalar = createModuleGenerator( ) } - for (const scalar of config.schema.kindMap.GraphQLScalarTypeCustom) { + for (const scalar of config.schema.kindMap.ScalarCustom) { code(typeTitle2(`custom scalar type`)(scalar)) code() code(`export type ${scalar.name} = ${identifiers.$$Utilities}.Schema.Scalar.ScalarCodecless<'Date'>`) diff --git a/src/generator/generators/Schema.ts b/src/generator/generators/Schema.ts index 6ff2b7400..1666d4d74 100644 --- a/src/generator/generators/Schema.ts +++ b/src/generator/generators/Schema.ts @@ -1,3 +1,4 @@ +import { omit } from 'es-toolkit' import { Code } from '../../lib/Code.js' import { Grafaid } from '../../lib/grafaid/__.js' import { entries, isObjectEmpty, values } from '../../lib/prelude.js' @@ -13,6 +14,9 @@ import { ModuleGeneratorScalar } from './Scalar.js' export const ModuleGeneratorSchema = createModuleGenerator( `Schema`, ({ config, code }) => { + const kindMap = omit(config.schema.kindMap, [`ScalarCustom`, `ScalarStandard`]) + const kinds = entries(kindMap) + // todo methods root is unused code(` import type * as Data from './${ModuleGeneratorData.name}.js' @@ -23,14 +27,9 @@ export const ModuleGeneratorSchema = createModuleGenerator( `) code(`export namespace ${identifiers.Schema} {`) - for (const [name, types] of entries(config.schema.kindMap)) { - if (name === `GraphQLScalarType`) continue - if (name === `GraphQLScalarTypeCustom`) continue - if (name === `GraphQLScalarTypeStandard`) continue - - const namespaceName = name === `GraphQLRootType` ? `Root` : namespaceNames[name] + for (const [name, types] of kinds) { code() - code(title1(namespaceName)) + code(title1(name)) code() code( types.length === 0 @@ -57,23 +56,21 @@ export const SchemaGenerator = createCodeGenerator( Subscription: Grafaid.Schema.KindMap.hasSubscription(config.schema.kindMap), } - const root = config.schema.kindMap.GraphQLRootType.map(_ => [_.name, `${identifiers.Schema}.${_.name}`] as const) + const root = config.schema.kindMap.Root.map(_ => [_.name, `${identifiers.Schema}.${_.name}`] as const) - const objects = config.schema.kindMap.GraphQLObjectType.map(_ => - [_.name, `${identifiers.Schema}.${_.name}`] as const - ) - const unions = config.schema.kindMap.GraphQLUnionType.map(_ => [_.name, `${identifiers.Schema}.${_.name}`] as const) - const interfaces = config.schema.kindMap.GraphQLInterfaceType.map( + const objects = config.schema.kindMap.OutputObject.map(_ => [_.name, `${identifiers.Schema}.${_.name}`] as const) + const unions = config.schema.kindMap.Union.map(_ => [_.name, `${identifiers.Schema}.${_.name}`] as const) + const interfaces = config.schema.kindMap.Interface.map( _ => [_.name, `${identifiers.Schema}.${_.name}`] as const, ) - const enums = config.schema.kindMap.GraphQLEnumType.map( + const enums = config.schema.kindMap.Enum.map( _ => [_.name, `${identifiers.Schema}.${_.name}`] as const, ) const schema: Code.TermObject = { name: `Data.Name`, - RootTypesPresent: `[${config.schema.kindMap.GraphQLRootType.map((_) => Code.string(_.name)).join(`, `)}]`, - RootUnion: config.schema.kindMap.GraphQLRootType.map(_ => `${identifiers.Schema}.${_.name}`) + RootTypesPresent: `[${config.schema.kindMap.Root.map((_) => Code.string(_.name)).join(`, `)}]`, + RootUnion: config.schema.kindMap.Root.map(_ => `${identifiers.Schema}.${_.name}`) .join(`|`), Root: { Query: rootTypesPresence.Query ? `${identifiers.Schema}.Query` : null, @@ -116,15 +113,6 @@ export const SchemaGenerator = createCodeGenerator( }, ) -const namespaceNames = { - GraphQLEnumType: `Enum`, - GraphQLInputObjectType: `InputObject`, - GraphQLInterfaceType: `Interface`, - GraphQLObjectType: `Object`, - GraphQLScalarType: `Scalar`, - GraphQLUnionType: `Union`, -} satisfies Record - type AnyGraphQLFieldsType = | Grafaid.Schema.ObjectType | Grafaid.Schema.InterfaceType @@ -292,11 +280,11 @@ const renderInputFields = (config: Config, node: AnyGraphQLFieldsType): string = const renderOutputField = (config: Config, field: Grafaid.Schema.InputOrOutputField): string => { const type = buildType(config, field.type) - const args = Grafaid.Schema.isGraphQLOutputField(field) && field.args.length > 0 + const args = Grafaid.Schema.isOutputField(field) && field.args.length > 0 ? renderArgs(config, field.args) : null - return `$.Field<'${field.name}', ${type}${args ? `, ${args}` : `, null`}>` + return `$.OutputField<'${field.name}', ${type}${args ? `, ${args}` : `, null`}>` } const renderInputField = (config: Config, field: Grafaid.Schema.InputOrOutputField): string => { diff --git a/src/generator/generators/SchemaDrivenDataMap.ts b/src/generator/generators/SchemaDrivenDataMap.ts index 76a7222fc..4617e324a 100644 --- a/src/generator/generators/SchemaDrivenDataMap.ts +++ b/src/generator/generators/SchemaDrivenDataMap.ts @@ -3,15 +3,13 @@ import { Grafaid } from '../../lib/grafaid/__.js' import { entries } from '../../lib/prelude.js' import { nullabilityFlags, propertyNames } from '../../types/SchemaDrivenDataMap/SchemaDrivenDataMap.js' import type { Config } from '../config/config.js' +import { identifiers } from '../helpers/identifiers.js' import { createModuleGenerator } from '../helpers/moduleGenerator.js' import { createCodeGenerator } from '../helpers/moduleGeneratorRunner.js' import { title1 } from '../helpers/render.js' +import type { KindRenderers } from '../helpers/types.js' import { ModuleGeneratorScalar } from './Scalar.js' -const identifiers = { - $Scalar: `$Scalar`, -} - type ReferenceAssignments = string[] export const ModuleGeneratorSchemaDrivenDataMap = createModuleGenerator( @@ -19,15 +17,15 @@ export const ModuleGeneratorSchemaDrivenDataMap = createModuleGenerator( ({ config, code }) => { code(` import * as ${identifiers.$Scalar} from './${ModuleGeneratorScalar.name}.js' - import type * as $Utilities from '${config.paths.imports.grafflePackage.utilitiesForGenerated}' + import type * as ${identifiers.$$Utilities} from '${config.paths.imports.grafflePackage.utilitiesForGenerated}' `) - const kinds = getKinds(config) - const kindsList = entries(kinds) + const kindMap: Grafaid.Schema.KindMap = getKindMap(config) + const kinds = entries(kindMap) const referenceAssignments: ReferenceAssignments = [] - for (const [kindName, nodes] of kindsList) { + for (const [kindName, nodes] of kinds) { code(title1(kindName)) code() if (nodes.length === 0) { @@ -53,15 +51,15 @@ export const ModuleGeneratorSchemaDrivenDataMap = createModuleGenerator( code(title1(`Index`)) code() - code(`const $schemaDrivenDataMap: $Utilities.SchemaDrivenDataMap =`) + code(`const $schemaDrivenDataMap: ${identifiers.$$Utilities}.SchemaDrivenDataMap =`) code(Code.termObject({ roots: Code.directiveTermObject({ - $literal: kinds.GraphQLRootType.map(type => type.name + `,`).join(`\n`), + $literal: kindMap.Root.map(type => type.name + `,`).join(`\n`), }), directives: `{}`, types: Code.directiveTermObject({ $literal: [ - ...kindsList.map(([, _]) => _).flat().map((_) => _.name), + ...kinds.map(([, _]) => _).flat().map((_) => _.name), // We also include the custom scalars here to facilitate encoding. Encoding has names of variables and // that need to be looked up to determine which are/have custom scalars. // ...config.schema.typeMapByKind.GraphQLScalarTypeCustom.map(_ => { @@ -91,21 +89,19 @@ export const ModuleGeneratorSchemaDrivenDataMap = createModuleGenerator( * If feature customScalars is enabled then we need to emit all paths to customs scalar inputs AND outputs. * If both are enabled the merged requirement is: all paths to inputs AND custom scalar outputs. */ -const getKinds = (config: Config) => { +const getKindMap = (config: Config) => { const { schema: { kindMap } } = config const condition = typeCondition(config) return { // When "variables" enabled, we need to know all named types to be able to write them out. - GraphQLScalarTypeStandard: kindMap.GraphQLScalarTypeStandard.filter(() => - config.runtimeFeatures.operationVariables - ), - GraphQLScalarTypeCustom: kindMap.GraphQLScalarTypeCustom.filter(() => config.runtimeFeatures.customScalars), - GraphQLEnumType: kindMap.GraphQLEnumType.filter(() => config.runtimeFeatures.operationVariables), - GraphQLInputObjectType: kindMap.GraphQLInputObjectType.filter(condition), - GraphQLObjectType: kindMap.GraphQLObjectType.filter(condition), - GraphQLInterfaceType: kindMap.GraphQLInterfaceType.filter(condition), - GraphQLUnionType: kindMap.GraphQLUnionType.filter(condition), - GraphQLRootType: kindMap.GraphQLRootType.filter(condition), + ScalarStandard: kindMap.ScalarStandard.filter(() => config.runtimeFeatures.operationVariables), + ScalarCustom: kindMap.ScalarCustom.filter(() => config.runtimeFeatures.customScalars), + Enum: kindMap.Enum.filter(() => config.runtimeFeatures.operationVariables), + InputObject: kindMap.InputObject.filter(condition), + OutputObject: kindMap.OutputObject.filter(condition), + Interface: kindMap.Interface.filter(condition), + Union: kindMap.Union.filter(condition), + Root: kindMap.Root.filter(condition), } } @@ -182,7 +178,7 @@ const UnionType = createCodeGenerator< // that they could never conflict. code(Code.termConstTyped( type.name, - `$Utilities.SchemaDrivenDataMap.OutputObject`, + `${identifiers.$$Utilities}.SchemaDrivenDataMap.OutputObject`, Code.termObject({ [propertyNames.f]: Code.directiveTermObject({ $spread: type.getTypes().filter(Grafaid.Schema.CustomScalars.isHasCustomScalars).map(memberType => @@ -201,7 +197,7 @@ const InterfaceType = createCodeGenerator< const implementorTypes = Grafaid.Schema.KindMap.getInterfaceImplementors(config.schema.kindMap, type) code(Code.termConstTyped( type.name, - `$Utilities.SchemaDrivenDataMap.OutputObject`, + `${identifiers.$$Utilities}.SchemaDrivenDataMap.OutputObject`, Code.termObject({ [propertyNames.f]: Code.directiveTermObject({ $spread: implementorTypes.filter(Grafaid.Schema.CustomScalars.isHasCustomScalars).map(memberType => @@ -299,7 +295,9 @@ const ObjectType = createCodeGenerator< } } - code(Code.termConstTyped(type.name, `$Utilities.SchemaDrivenDataMap.OutputObject`, Code.termObject(o))) + code( + Code.termConstTyped(type.name, `${identifiers.$$Utilities}.SchemaDrivenDataMap.OutputObject`, Code.termObject(o)), + ) }, ) @@ -309,7 +307,7 @@ const EnumType = createCodeGenerator< ({ code, type }) => { code(Code.termConstTyped( type.name, - `$Utilities.SchemaDrivenDataMap.Enum`, + `${identifiers.$$Utilities}.SchemaDrivenDataMap.Enum`, Code.termObject({ [propertyNames.k]: Code.string(`enum`), [propertyNames.n]: Code.string(type.name), @@ -370,20 +368,22 @@ const InputObjectType = createCodeGenerator< } } - code(Code.termConstTyped(type.name, `$Utilities.SchemaDrivenDataMap.InputObject`, Code.termObject(o))) + code( + Code.termConstTyped(type.name, `${identifiers.$$Utilities}.SchemaDrivenDataMap.InputObject`, Code.termObject(o)), + ) }, ) const kindRenders = { - GraphQLScalarTypeStandard: ScalarType, - GraphQLScalarTypeCustom: ScalarTypeCustom, - GraphQLEnumType: EnumType, - GraphQLUnionType: UnionType, - GraphQLInterfaceType: InterfaceType, - GraphQLInputObjectType: InputObjectType, - GraphQLObjectType: ObjectType, - GraphQLRootType: ObjectType, -} + ScalarStandard: ScalarType, + ScalarCustom: ScalarTypeCustom, + Enum: EnumType, + Union: UnionType, + Interface: InterfaceType, + InputObject: InputObjectType, + OutputObject: ObjectType, + Root: ObjectType, +} satisfies KindRenderers const inlineType = (type: Grafaid.Schema.InputTypes): string => { const [ofType, nonNull] = Grafaid.Schema.isNonNullType(type) diff --git a/src/generator/generators/Select.ts b/src/generator/generators/Select.ts index 64048feb9..540da1ff2 100644 --- a/src/generator/generators/Select.ts +++ b/src/generator/generators/Select.ts @@ -27,16 +27,15 @@ export const ModuleGeneratorSelect = createModuleGenerator( code(typeTitle(config, `Root`)) - code(...config.schema.kindMap.GraphQLRootType.map((type) => { + code(...config.schema.kindMap.Root.map((type) => { return `export type ${type.name}<$SelectionSet extends SelectionSets.${ renderName(type) }> = InferResult.Root<$SelectionSet, ${identifiers.Schema}, '${type.name}'>` })) - code(typeTitle(config, `Object`)) + code(typeTitle(config, `OutputObject`)) - // TODO propagate descriptions to JSDoc - code(...config.schema.kindMap.GraphQLObjectType.map((type) => { + code(...config.schema.kindMap.OutputObject.map((type) => { return `export type ${type.name}<$SelectionSet extends SelectionSets.${ renderName(type) }> = InferResult.Object<$SelectionSet, ${identifiers.Schema}, ${identifiers.Schema}['allTypes']['${type.name}']>` @@ -44,7 +43,7 @@ export const ModuleGeneratorSelect = createModuleGenerator( code(typeTitle(config, `Union`)) - code(...config.schema.kindMap.GraphQLUnionType.map((type) => { + code(...config.schema.kindMap.Union.map((type) => { return `export type ${type.name}<$SelectionSet extends SelectionSets.${ renderName(type) }> = InferResult.Union<$SelectionSet, ${identifiers.Schema}, ${identifiers.Schema}['allTypes']['${type.name}']>` @@ -52,7 +51,7 @@ export const ModuleGeneratorSelect = createModuleGenerator( code(typeTitle(config, `Interface`)) - code(...config.schema.kindMap.GraphQLInterfaceType.map((type) => { + code(...config.schema.kindMap.Interface.map((type) => { return `export type ${type.name}<$SelectionSet extends SelectionSets.${ renderName(type) }> = InferResult.Interface<$SelectionSet, ${identifiers.Schema}, ${identifiers.Schema}['allTypes']['${type.name}']>` diff --git a/src/generator/generators/SelectionSets.ts b/src/generator/generators/SelectionSets.ts index e77647f8d..68526b578 100644 --- a/src/generator/generators/SelectionSets.ts +++ b/src/generator/generators/SelectionSets.ts @@ -1,42 +1,42 @@ // todo: generate in JSDoc how the feature maps to GQL syntax. // todo: on union fields, JSDoc that mentions the syntax `on*` +import { pick } from 'es-toolkit' import { Select } from '../../layers/2_Select/__.js' import { Code } from '../../lib/Code.js' import { Grafaid } from '../../lib/grafaid/__.js' import { analyzeArgsNullability } from '../../lib/grafaid/schema/args.js' import { RootTypeName } from '../../lib/grafaid/schema/schema.js' -import { isString } from '../../lib/prelude.js' +import { entries, isString } from '../../lib/prelude.js' import { borderThinFullWidth } from '../../lib/text.js' import { identifiers } from '../helpers/identifiers.js' import { createModuleGenerator } from '../helpers/moduleGenerator.js' import { createCodeGenerator } from '../helpers/moduleGeneratorRunner.js' import { getDocumentation, renderDocumentation, renderName, title1, typeTitle2SelectionSet } from '../helpers/render.js' +import type { KindRenderers } from '../helpers/types.js' import { ModuleGeneratorScalar } from './Scalar.js' const $ScalarsTypeParameter = `$Scalars extends ${identifiers.$$Utilities}.Schema.Scalar.ScalarMap = {}` -// `$Scalars extends ${identifiers.$$Utilities}.Schema.Scalar.ScalarMap` export const ModuleGeneratorSelectionSets = createModuleGenerator( `SelectionSets`, ({ config, code }) => { - code() + const kindMap = pick(config.schema.kindMap, [`Root`, `Enum`, `InputObject`, `OutputObject`, `Union`, `Interface`]) + const kindEntries = entries(kindMap).filter(_ => _[1].length > 0) + const kinds = kindEntries.map(_ => _[1]) - code(`import type { Select as $Select } from '${config.paths.imports.grafflePackage.schema}'`) code( + `import type { Select as $Select } from '${config.paths.imports.grafflePackage.schema}'`, `import type * as ${identifiers.$$Utilities} from '${config.paths.imports.grafflePackage.utilitiesForGenerated}'`, ) if (Grafaid.Schema.KindMap.hasCustomScalars(config.schema.kindMap)) { code(`import type * as $Scalar from './${ModuleGeneratorScalar.name}.js'`) } code() - code(title1(`Document`)) code() code( `// Prefix with $ because this is not a schema type. A user could have a schema type named "Document" that this would conflict with.`, - ) - code( `export interface $Document<${$ScalarsTypeParameter}> {`, Grafaid.Schema.KindMap.hasQuery(config.schema.kindMap) ? `query?: Record>` : null, Grafaid.Schema.KindMap.hasMutation(config.schema.kindMap) @@ -46,23 +46,11 @@ export const ModuleGeneratorSelectionSets = createModuleGenerator( ) code() - const typesToRender = [ - config.schema.kindMap.GraphQLRootType, - config.schema.kindMap.GraphQLEnumType, - config.schema.kindMap.GraphQLInputObjectType, - config.schema.kindMap.GraphQLInterfaceType, - config.schema.kindMap.GraphQLObjectType, - config.schema.kindMap.GraphQLUnionType, - ].filter(_ => _.length > 0) - - typesToRender.forEach((types) => { - const kind = Grafaid.Schema.getTypeKind(types[0]!) - - code(title1(`${kind} Types`)) + kindEntries.forEach(([name, kind]) => { + code(title1(name)) code() - - types.forEach(type => { - code(GraphQLKindRenderMap[kind]({ config, type: type as never })) + kind.forEach(type => { + code(kindRenderMap[name]({ config, type: type as never })) code() }) }) @@ -76,7 +64,7 @@ export const ModuleGeneratorSelectionSets = createModuleGenerator( * would end up with an error of \`export interface Foo extends Foo ...\` */ `) - code(renderNamedTypesIndex({ config, types: typesToRender.flat() })) + code(renderNamedTypesIndex({ config, types: kinds.flat() })) }, ) @@ -172,7 +160,7 @@ const renderKindInterface = createCodeGenerator<{ type: Grafaid.Schema.Interface }, ) -const renderKindObject = createCodeGenerator<{ type: Grafaid.Schema.ObjectType }>( +const renderKindOutputObject = createCodeGenerator<{ type: Grafaid.Schema.ObjectType }>( ({ config, type, code }) => { const fields = Object.values(type.getFields()) @@ -183,12 +171,9 @@ const renderKindObject = createCodeGenerator<{ type: Grafaid.Schema.ObjectType } code() const fieldKeys = fields.map(field => { - const fieldTypeInfo = Grafaid.getTypeNameAndKind(Grafaid.Schema.getNamedType(field.type)) - const fieldKindOrScalarType = fieldTypeInfo.kind === `Scalar` - ? `\`${fieldTypeInfo.name}\` (a \`Scalar\`)` - : fieldTypeInfo.kind + const typeKind = Grafaid.getTypeAndKind(Grafaid.Schema.getNamedType(field.type)) const doc = Code.TSDoc(` - Select the \`${field.name}\` field on the \`${type.name}\` object. Its type is ${fieldKindOrScalarType}. + Select the \`${field.name}\` field on the \`${type.name}\` object. Its type is \`${typeKind.typeName}\` (a \`${typeKind.kindName}\` kind of type). `) const key = H.outputFieldKey( field.name, @@ -231,14 +216,16 @@ const renderKindObject = createCodeGenerator<{ type: Grafaid.Schema.ObjectType } }, ) -const GraphQLKindRenderMap = { - GraphQLInputObjectType: renderKindInputObject, - GraphQLRootType: renderKindObject, - GraphQLObjectType: renderKindObject, - GraphQLEnumType: renderKindEnum, - GraphQLInterfaceType: renderKindInterface, - GraphQLUnionType: renderKindUnion, -} +const kindRenderMap = { + OutputObject: renderKindOutputObject, + InputObject: renderKindInputObject, + Enum: renderKindEnum, + Root: renderKindOutputObject, + Interface: renderKindInterface, + Union: renderKindUnion, + ScalarCustom: null, + ScalarStandard: null, +} satisfies KindRenderers const renderOutputField = createCodeGenerator<{ field: Grafaid.Schema.Field }>( ({ config, field, code }) => { diff --git a/src/generator/generators/global.ts b/src/generator/generators/global.ts index 5d264ca9b..bbc06d665 100644 --- a/src/generator/generators/global.ts +++ b/src/generator/generators/global.ts @@ -19,8 +19,8 @@ export const ModuleGeneratorGlobal = createModuleGenerator( `import type { ${identifiers.Schema} } from './${ModuleGeneratorSchema.name}.js'`, ) - if (config.schema.kindMap.GraphQLScalarTypeCustom.length > 0) { - code(`import type * as ${identifiers.Scalar} from './${ModuleGeneratorScalar.name}.js'`) + if (config.schema.kindMap.ScalarCustom.length > 0) { + code(`import type * as ${identifiers.$Scalar} from './${ModuleGeneratorScalar.name}.js'`) } code() diff --git a/src/generator/helpers/identifiers.ts b/src/generator/helpers/identifiers.ts index 86055164c..b9d364b7a 100644 --- a/src/generator/helpers/identifiers.ts +++ b/src/generator/helpers/identifiers.ts @@ -3,7 +3,7 @@ export const identifiers = { $Schema: `$Schema`, $$Utilities: `$$Utilities`, MethodsRoot: `MethodsRoot`, - Scalar: `Scalar`, + $Scalar: `$Scalar`, CustomScalars: `CustomScalars`, StandardScalar: `StandardScalar`, } diff --git a/src/generator/helpers/render.ts b/src/generator/helpers/render.ts index a5fc67368..13217279a 100644 --- a/src/generator/helpers/render.ts +++ b/src/generator/helpers/render.ts @@ -1,6 +1,5 @@ import { Code } from '../../lib/Code.js' import { Grafaid } from '../../lib/grafaid/__.js' -import { getNodeDisplayName } from '../../lib/grafaid/graphql.js' import { borderThickFullWidth, borderThinFullWidth, centerTo } from '../../lib/text.js' import type { Config } from '../config/config.js' @@ -26,8 +25,10 @@ export const title1 = (title: string, subTitle?: string) => { } export const typeTitle2 = (category: string) => (type: Grafaid.Schema.NamedTypes) => { - const typeKind = Grafaid.getTypeNameAndKind(type) - const nameOrKind = typeKind.kind === `Scalar` ? typeKind.name : typeKind.kind + const typeKind = Grafaid.getTypeAndKind(type) + const nameOrKind = typeKind.kindName === `ScalarCustom` || typeKind.kindName === `ScalarStandard` + ? typeKind.typeName + : typeKind.kindName const typeLabel = nameOrKind const title = ` // @@ -48,9 +49,9 @@ export const typeTitle2 = (category: string) => (type: Grafaid.Schema.NamedTypes export const typeTitle2SelectionSet = typeTitle2(`GRAPHQL SELECTION SET`) -export const typeTitle = (config: Config, typeKind: Grafaid.Schema.NamedTypeKind) => { - const hasItems = config.schema.kindMap[`GraphQL${typeKind}Type`].length > 0 - const title = `${typeKind} Types` +export const typeTitle = (config: Config, kindName: Grafaid.Schema.KindMap.KindName) => { + const hasItems = config.schema.kindMap[kindName].length > 0 + const title = `${kindName} Types` const titleDecorated = `// ${title}\n// ${`-`.repeat(title.length)}\n` if (hasItems) { return titleDecorated @@ -59,8 +60,10 @@ export const typeTitle = (config: Config, typeKind: Grafaid.Schema.NamedTypeKind } } -const defaultDescription = (node: Grafaid.Schema.DescribableTypes) => - `There is no documentation for this ${getNodeDisplayName(node)}.` +const defaultDescription = (node: Grafaid.Schema.DescribableTypes) => { + const entity = Grafaid.Schema.isField(node) ? `Field` : Grafaid.getTypeAndKind(node).kindName + return `There is no documentation for this ${entity}.` +} export const renderDocumentation = (config: Config, node: Grafaid.Schema.DescribableTypes) => { return Code.TSDoc(getDocumentation(config, node)) diff --git a/src/generator/helpers/types.ts b/src/generator/helpers/types.ts new file mode 100644 index 000000000..aa55c15d9 --- /dev/null +++ b/src/generator/helpers/types.ts @@ -0,0 +1,3 @@ +import type { Grafaid } from '../../lib/grafaid/__.js' + +export type KindRenderers = Record diff --git a/src/lib/grafaid/graphql.ts b/src/lib/grafaid/graphql.ts index e2613d10b..6a4d2c63b 100644 --- a/src/lib/grafaid/graphql.ts +++ b/src/lib/grafaid/graphql.ts @@ -8,7 +8,9 @@ import { isUnionType, OperationTypeNode, } from 'graphql' -import type { DescribableTypes, NodeNamePlus } from './schema/schema.js' +import { casesExhausted } from '../prelude.js' +import type { KindMap } from './schema/schema.js' +import { isRootType, isScalarTypeCustom } from './schema/schema.js' export * from './_Nodes.js' export * from './request.js' @@ -63,42 +65,32 @@ export const isStandardScalarType = (type: GraphQLScalarType) => { * Groups */ -export const getTypeNameAndKind = ( +export const getTypeAndKind = ( node: GraphQLNamedType, -): { name: string; kind: 'Object' | 'Interface' | 'Union' | 'Enum' | 'Scalar' } => { - const name = node.name - const kind = getNodeKindOld(node).replace(`GraphQL`, ``).replace(`Type`, ``) as - | 'Object' - | 'Interface' - | 'Union' - | 'Enum' - | 'Scalar' - return { name, kind } -} - -export const getNodeKindOld = (node: DescribableTypes): NodeNamePlus => { - switch (true) { - case isObjectType(node): - return `GraphQLObjectType` - case isInputObjectType(node): - return `GraphQLInputObjectType` - case isUnionType(node): - return `GraphQLUnionType` - case isInterfaceType(node): - return `GraphQLInterfaceType` - case isEnumType(node): - return `GraphQLEnumType` - case isScalarType(node): - return `GraphQLScalarType` - default: - return `GraphQLField` - } -} +): { + typeName: string + kindName: KindMap.KindName +} => { + const typeName = node.name -export const getNodeDisplayName = (node: DescribableTypes) => { - return toDisplayName(getNodeKindOld(node)) -} + let kindName: KindMap.KindName -const toDisplayName = (nodeName: NodeNamePlus) => { - return nodeName.replace(/^GraphQL/, ``).replace(/Type$/, ``) + if (isRootType(node)) { + kindName = `Root` + } else if (isScalarType(node)) { + kindName = isScalarTypeCustom(node) ? `ScalarCustom` : `ScalarStandard` + } else if (isUnionType(node)) { + kindName = `Union` + } else if (isInterfaceType(node)) { + kindName = `Interface` + } else if (isObjectType(node)) { + kindName = `OutputObject` + } else if (isInputObjectType(node)) { + kindName = `InputObject` + } else if (isEnumType(node)) { + kindName = `Enum` + } else { + throw casesExhausted(node) + } + return { typeName, kindName } } diff --git a/src/lib/grafaid/schema/kindMap.ts b/src/lib/grafaid/schema/KindMap/_.ts similarity index 51% rename from src/lib/grafaid/schema/kindMap.ts rename to src/lib/grafaid/schema/KindMap/_.ts index bf0dc53c6..62dc1b478 100644 --- a/src/lib/grafaid/schema/kindMap.ts +++ b/src/lib/grafaid/schema/KindMap/_.ts @@ -7,59 +7,64 @@ import { type GraphQLSchema, GraphQLUnionType, } from 'graphql' -import { isScalarTypeAndCustom, type NameToClassNamedType } from './schema.js' +import { isScalarTypeAndCustom } from '../schema.js' -export type KindMap = - & { - [Name in keyof NameToClassNamedType]: InstanceType[] - } - & { GraphQLRootType: GraphQLObjectType[] } - & { GraphQLScalarTypeCustom: GraphQLScalarType[] } - & { GraphQLScalarTypeStandard: GraphQLScalarType[] } +import type { KindMap } from './__.js' + +export const Name = { + Root: `Root`, + ScalarCustom: `ScalarCustom`, + ScalarStandard: `ScalarStandard`, + Enum: `Enum`, + InputObject: `InputObject`, + OutputObject: `OutputObject`, + Interface: `Interface`, + Union: `Union`, +} satisfies Record + +export type KindName = keyof KindMap export const getKindMap = (schema: GraphQLSchema): KindMap => { const typeMap = schema.getTypeMap() const typeMapValues = Object.values(typeMap) const kindMap: KindMap = { - GraphQLRootType: [], - GraphQLScalarType: [], - GraphQLScalarTypeCustom: [], - GraphQLScalarTypeStandard: [], - GraphQLEnumType: [], - GraphQLInputObjectType: [], - GraphQLInterfaceType: [], - GraphQLObjectType: [], - GraphQLUnionType: [], + Root: [], + OutputObject: [], + InputObject: [], + Interface: [], + Union: [], + Enum: [], + ScalarCustom: [], + ScalarStandard: [], } for (const type of typeMapValues) { if (type.name.startsWith(`__`)) continue switch (true) { case type instanceof GraphQLScalarType: - kindMap.GraphQLScalarType.push(type) if (isScalarTypeAndCustom(type)) { - kindMap.GraphQLScalarTypeCustom.push(type) + kindMap.ScalarCustom.push(type) } else { - kindMap.GraphQLScalarTypeStandard.push(type) + kindMap.ScalarStandard.push(type) } break case type instanceof GraphQLEnumType: - kindMap.GraphQLEnumType.push(type) + kindMap.Enum.push(type) break case type instanceof GraphQLInputObjectType: - kindMap.GraphQLInputObjectType.push(type) + kindMap.InputObject.push(type) break case type instanceof GraphQLInterfaceType: - kindMap.GraphQLInterfaceType.push(type) + kindMap.Interface.push(type) break case type instanceof GraphQLObjectType: if (type.name === `Query` || type.name === `Mutation` || type.name === `Subscription`) { - kindMap.GraphQLRootType.push(type) + kindMap.Root.push(type) } else { - kindMap.GraphQLObjectType.push(type) + kindMap.OutputObject.push(type) } break case type instanceof GraphQLUnionType: - kindMap.GraphQLUnionType.push(type) + kindMap.Union.push(type) break default: // skip @@ -69,19 +74,18 @@ export const getKindMap = (schema: GraphQLSchema): KindMap => { return kindMap } -export const hasMutation = (typeMapByKind: KindMap) => typeMapByKind.GraphQLRootType.find((_) => _.name === `Mutation`) +export const hasMutation = (typeMapByKind: KindMap) => typeMapByKind.Root.some((_) => _.name === `Mutation`) -export const hasSubscription = (typeMapByKind: KindMap) => - typeMapByKind.GraphQLRootType.find((_) => _.name === `Subscription`) +export const hasSubscription = (typeMapByKind: KindMap) => typeMapByKind.Root.some((_) => _.name === `Subscription`) -export const hasQuery = (typeMapByKind: KindMap) => typeMapByKind.GraphQLRootType.find((_) => _.name === `Query`) +export const hasQuery = (typeMapByKind: KindMap) => typeMapByKind.Root.some((_) => _.name === `Query`) + +export const hasCustomScalars = (typeMapByKind: KindMap) => { + return typeMapByKind.ScalarCustom.length > 0 +} export const getInterfaceImplementors = (typeMap: KindMap, interfaceTypeSearch: GraphQLInterfaceType) => { - return typeMap.GraphQLObjectType.filter(objectType => + return typeMap.OutputObject.filter(objectType => objectType.getInterfaces().filter(interfaceType => interfaceType.name === interfaceTypeSearch.name).length > 0 ) } - -export const hasCustomScalars = (typeMapByKind: KindMap) => { - return typeMapByKind.GraphQLScalarTypeCustom.length > 0 -} diff --git a/src/lib/grafaid/schema/KindMap/__.ts b/src/lib/grafaid/schema/KindMap/__.ts new file mode 100644 index 000000000..cf67d3df5 --- /dev/null +++ b/src/lib/grafaid/schema/KindMap/__.ts @@ -0,0 +1,21 @@ +import type { + GraphQLEnumType, + GraphQLInputObjectType, + GraphQLInterfaceType, + GraphQLObjectType, + GraphQLScalarType, + GraphQLUnionType, +} from 'graphql' + +export * as KindMap from './_.js' + +export interface KindMap { + Root: GraphQLObjectType[] + OutputObject: GraphQLObjectType[] + InputObject: GraphQLInputObjectType[] + Interface: GraphQLInterfaceType[] + Union: GraphQLUnionType[] + Enum: GraphQLEnumType[] + ScalarCustom: GraphQLScalarType[] + ScalarStandard: GraphQLScalarType[] +} diff --git a/src/lib/grafaid/schema/customScalars.ts b/src/lib/grafaid/schema/customScalars.ts index a2c51e91a..ae056dbad 100644 --- a/src/lib/grafaid/schema/customScalars.ts +++ b/src/lib/grafaid/schema/customScalars.ts @@ -12,12 +12,12 @@ import { } from 'graphql' import type { GraphQLInputObjectType, GraphQLNamedOutputType } from 'graphql' import { casesExhausted } from '../../prelude.js' -import { isGraphQLArgumentOrInputField, isGraphQLField, isScalarTypeAndCustom } from './schema.js' +import { isInputFieldLike, isOutputField, isScalarTypeAndCustom } from './schema.js' export const isHasCustomScalars = ( node: GraphQLNamedOutputType | GraphQLField | GraphQLInputObjectType | GraphQLInputField | GraphQLArgument, ): boolean => { - if (isInputObjectType(node) || isGraphQLArgumentOrInputField(node)) { + if (isInputObjectType(node) || isInputFieldLike(node)) { return isHasCustomScalarInputs(node) } @@ -36,7 +36,7 @@ const isHasCustomScalarOutputs_ = ( node: GraphQLNamedOutputType | GraphQLField, typePath: string[], ): boolean => { - if (isGraphQLField(node)) { + if (isOutputField(node)) { const fieldType = getNamedType(node.type) return isHasCustomScalarOutputs_(fieldType, typePath) } @@ -82,11 +82,11 @@ const isHasCustomScalarInputs_ = ( node: GraphQLInputObjectType | GraphQLNamedOutputType | GraphQLArgument | GraphQLField, typePath: string[], ): boolean => { - if (isGraphQLArgumentOrInputField(node)) { + if (isInputFieldLike(node)) { return isHasCustomScalarInputs_(getNamedType(node.type), typePath) } - if (isGraphQLField(node)) { + if (isOutputField(node)) { const fieldType = getNamedType(node.type) return node.args.some(arg => isHasCustomScalarInputs_(arg, typePath)) || (isObjectType(fieldType) && isHasCustomScalarInputs_(fieldType, typePath)) diff --git a/src/lib/grafaid/schema/schema.ts b/src/lib/grafaid/schema/schema.ts index dc32bab60..fcccfb9b3 100644 --- a/src/lib/grafaid/schema/schema.ts +++ b/src/lib/grafaid/schema/schema.ts @@ -58,7 +58,7 @@ export { export * as Args from './args.js' export * as CustomScalars from './customScalars.js' -export * as KindMap from './kindMap.js' +export * from './KindMap/__.js' export type DeprecatableNodes = GraphQLEnumValue | InputOrOutputField @@ -93,15 +93,17 @@ export type DescribableTypes = | GraphQLNamedType | InputOrOutputField -export const isGraphQLOutputField = (object: object): object is GraphQLField => { - return `args` in object -} +type InputFieldLikeTypes = GraphQLArgument | GraphQLInputField -export const isGraphQLArgumentOrInputField = (value: object): value is GraphQLArgument | GraphQLInputField => { +export const isInputFieldLike = (value: object): value is InputFieldLikeTypes => { return `defaultValue` in value } -export const isGraphQLField = (value: object): value is GraphQLField => { +export const isField = (value: object): value is GraphQLField | InputFieldLikeTypes => { + return isOutputField(value) || isInputFieldLike(value) +} + +export const isOutputField = (value: object): value is GraphQLField => { return `args` in value } @@ -166,8 +168,6 @@ export const isRootType = (value: unknown): value is GraphQLObjectType => { export type NodeName = keyof NameToClass -export type NodeNamePlus = NodeName | 'GraphQLField' - // export type AnyClass = InstanceType // dprint-ignore diff --git a/src/types/Schema/nodes/OutputField.ts b/src/types/Schema/nodes/OutputField.ts index 899921b93..9bc3c23cd 100644 --- a/src/types/Schema/nodes/OutputField.ts +++ b/src/types/Schema/nodes/OutputField.ts @@ -9,7 +9,7 @@ import type { OutputObject } from './OutputObject.js' import type { ScalarCodecless } from './Scalar/_.js' import type { Union } from './Union.js' -export type Field< +export type OutputField< $Name extends string, $Type extends OutputTypes, $Args extends Args | null, @@ -29,10 +29,10 @@ type FieldType = | Nullable | OutputObject | Union - | Interface | null>>, [any, ...any[]]> + | Interface | null>>, [any, ...any[]]> // todo test non null interface fields -export type SomeField = Field | null> +export type SomeField = OutputField | null> export type SomeFields<$Keys extends SomeKey = SomeKey> = Record<$Keys, SomeField> diff --git a/src/types/Schema/nodes/OutputObject.ts b/src/types/Schema/nodes/OutputObject.ts index 8d9789965..f2eb417e0 100644 --- a/src/types/Schema/nodes/OutputObject.ts +++ b/src/types/Schema/nodes/OutputObject.ts @@ -1,5 +1,5 @@ import type { __typename } from './__typename.js' -import type { Field, SomeFields } from './OutputField.js' +import type { OutputField, SomeFields } from './OutputField.js' export interface OutputObject< $Name extends string = string, @@ -7,6 +7,6 @@ export interface OutputObject< > { kind: 'Object' fields: { - __typename: Field<'__typename', __typename<$Name>, null> + __typename: OutputField<'__typename', __typename<$Name>, null> } & $Fields } diff --git a/src/types/SchemaDrivenDataMap/InlineType.ts b/src/types/SchemaDrivenDataMap/InlineType.ts new file mode 100644 index 000000000..18527a85e --- /dev/null +++ b/src/types/SchemaDrivenDataMap/InlineType.ts @@ -0,0 +1,13 @@ +/** + * Inline types for a field-like (directive argument, field argument, input/output field) type. + * + * Recursive tuple. Each nesting represents a list. First tuple member represents nullability of the list. + * + * The outer most tuple DOES NOT represent a list, but the nullability of the named type itself. E.g. `[0]` would indicate + * that a scalar field is nullable while `[1]` would indicate that it is non-nullable. + */ +export type InlineType = [Nullable | NonNull, InlineType?] + +export type Nullable = 0 + +export type NonNull = 1 diff --git a/src/types/SchemaDrivenDataMap/SchemaDrivenDataMap.ts b/src/types/SchemaDrivenDataMap/SchemaDrivenDataMap.ts index 390c2de28..9c3ecf9f3 100644 --- a/src/types/SchemaDrivenDataMap/SchemaDrivenDataMap.ts +++ b/src/types/SchemaDrivenDataMap/SchemaDrivenDataMap.ts @@ -1,6 +1,9 @@ import type { Grafaid } from '../../lib/grafaid/__.js' import { isString } from '../../lib/prelude.js' import { Schema } from '../Schema/__.js' +import type { InlineType } from './InlineType.js' + +export * from './InlineType.js' declare global { namespace GraffleGlobal { @@ -114,20 +117,6 @@ export const propertyNames = { nt: `nt`, } as const -/** - * Inline types for a field-like (directive argument, field argument, input/output field) type. - * - * Nested tuple. Each nesting represents a list. First tuple member represents nullability of the list. - * - * The outer most tuple represents not a list but the nullability for the named type itself. E.g. `[0]` would indicate - * that a scalar field is nullable while `[1]` would indicate that it is non-nullable. - */ -export type InlineType = [Nullable | NonNull, InlineType?] - -export type Nullable = 0 - -export type NonNull = 1 - export const isEnum = ( node?: Node, ): node is Enum => { diff --git a/tests/_/schemas/kitchen-sink/graffle/modules/Global.ts b/tests/_/schemas/kitchen-sink/graffle/modules/Global.ts index 0089c3a62..429d77e68 100644 --- a/tests/_/schemas/kitchen-sink/graffle/modules/Global.ts +++ b/tests/_/schemas/kitchen-sink/graffle/modules/Global.ts @@ -2,7 +2,7 @@ import type * as Data from './Data.js' import type * as MethodsDocument from './MethodsDocument.js' import type * as MethodsRoot from './MethodsRoot.js' import type * as MethodsSelect from './MethodsSelect.js' -import type * as Scalar from './Scalar.js' +import type * as $Scalar from './Scalar.js' import type { Schema } from './Schema.js' declare global { diff --git a/tests/_/schemas/kitchen-sink/graffle/modules/MethodsSelect.ts b/tests/_/schemas/kitchen-sink/graffle/modules/MethodsSelect.ts index 8f12ae488..8c26b9ecb 100644 --- a/tests/_/schemas/kitchen-sink/graffle/modules/MethodsSelect.ts +++ b/tests/_/schemas/kitchen-sink/graffle/modules/MethodsSelect.ts @@ -73,7 +73,7 @@ export interface Query { // // // ================================================================================================== -// Object +// OutputObject // ================================================================================================== // // diff --git a/tests/_/schemas/kitchen-sink/graffle/modules/Schema.ts b/tests/_/schemas/kitchen-sink/graffle/modules/Schema.ts index 489914d2c..c0e669a3d 100644 --- a/tests/_/schemas/kitchen-sink/graffle/modules/Schema.ts +++ b/tests/_/schemas/kitchen-sink/graffle/modules/Schema.ts @@ -21,19 +21,19 @@ export namespace Schema { // export type Mutation = $.StandardTypes.Mutation<{ - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - idNonNull: $.Field<'idNonNull', $Scalar.ID, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + idNonNull: $.OutputField<'idNonNull', $Scalar.ID, null> }> export type Query = $.StandardTypes.Query<{ - InputObjectNested: $.Field< + InputObjectNested: $.OutputField< 'InputObjectNested', $.Nullable<$Scalar.ID>, $.Args<{ input: $.InputField<$.Nullable> }, true> > - InputObjectNestedNonNull: $.Field< + InputObjectNestedNonNull: $.OutputField< 'InputObjectNestedNonNull', $.Nullable<$Scalar.ID>, $.Args<{ @@ -43,93 +43,93 @@ export namespace Schema { /** * Query enum field documentation. */ - abcEnum: $.Field<'abcEnum', $.Nullable, null> - argInputObjectCircular: $.Field< + abcEnum: $.OutputField<'abcEnum', $.Nullable, null> + argInputObjectCircular: $.OutputField< 'argInputObjectCircular', $.Nullable<$Scalar.String>, $.Args<{ input: $.InputField<$.Nullable> }, true> > - date: $.Field<'date', $.Nullable<$Scalar.Date>, null> - dateArg: $.Field< + date: $.OutputField<'date', $.Nullable<$Scalar.Date>, null> + dateArg: $.OutputField< 'dateArg', $.Nullable<$Scalar.Date>, $.Args<{ date: $.InputField<$.Nullable<$Scalar.Date>> }, true> > - dateArgInputObject: $.Field< + dateArgInputObject: $.OutputField< 'dateArgInputObject', $.Nullable<$Scalar.Date>, $.Args<{ input: $.InputField<$.Nullable> }, true> > - dateArgList: $.Field< + dateArgList: $.OutputField< 'dateArgList', $.Nullable<$Scalar.Date>, $.Args<{ date: $.InputField<$.Nullable<$.List<$Scalar.Date>>> }, true> > - dateArgNonNull: $.Field< + dateArgNonNull: $.OutputField< 'dateArgNonNull', $.Nullable<$Scalar.Date>, $.Args<{ date: $.InputField<$Scalar.Date> }, false> > - dateArgNonNullList: $.Field< + dateArgNonNullList: $.OutputField< 'dateArgNonNullList', $.Nullable<$Scalar.Date>, $.Args<{ date: $.InputField<$.List<$.Nullable<$Scalar.Date>>> }, false> > - dateArgNonNullListNonNull: $.Field< + dateArgNonNullListNonNull: $.OutputField< 'dateArgNonNullListNonNull', $.Nullable<$Scalar.Date>, $.Args<{ date: $.InputField<$.List<$Scalar.Date>> }, false> > - dateInterface1: $.Field<'dateInterface1', $.Nullable, null> - dateList: $.Field<'dateList', $.Nullable<$.List<$Scalar.Date>>, null> - dateListList: $.Field<'dateListList', $.Nullable<$.List<$.List<$Scalar.Date>>>, null> - dateListNonNull: $.Field<'dateListNonNull', $.List<$Scalar.Date>, null> - dateNonNull: $.Field<'dateNonNull', $Scalar.Date, null> - dateObject1: $.Field<'dateObject1', $.Nullable, null> - dateUnion: $.Field<'dateUnion', $.Nullable, null> - error: $.Field< + dateInterface1: $.OutputField<'dateInterface1', $.Nullable, null> + dateList: $.OutputField<'dateList', $.Nullable<$.List<$Scalar.Date>>, null> + dateListList: $.OutputField<'dateListList', $.Nullable<$.List<$.List<$Scalar.Date>>>, null> + dateListNonNull: $.OutputField<'dateListNonNull', $.List<$Scalar.Date>, null> + dateNonNull: $.OutputField<'dateNonNull', $Scalar.Date, null> + dateObject1: $.OutputField<'dateObject1', $.Nullable, null> + dateUnion: $.OutputField<'dateUnion', $.Nullable, null> + error: $.OutputField< 'error', $.Nullable<$Scalar.String>, $.Args<{ case: $.InputField<$.Nullable<$Scalar.String>> }, true> > - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - idNonNull: $.Field<'idNonNull', $Scalar.ID, null> - interface: $.Field<'interface', $.Nullable, null> - interfaceNonNull: $.Field<'interfaceNonNull', Interface, null> - interfaceWithArgs: $.Field< + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + idNonNull: $.OutputField<'idNonNull', $Scalar.ID, null> + interface: $.OutputField<'interface', $.Nullable, null> + interfaceNonNull: $.OutputField<'interfaceNonNull', Interface, null> + interfaceWithArgs: $.OutputField< 'interfaceWithArgs', $.Nullable, $.Args<{ id: $.InputField<$Scalar.ID> }, false> > - listInt: $.Field<'listInt', $.Nullable<$.List<$.Nullable<$Scalar.Int>>>, null> - listIntNonNull: $.Field<'listIntNonNull', $.List<$Scalar.Int>, null> - listListInt: $.Field<'listListInt', $.Nullable<$.List<$.Nullable<$.List<$.Nullable<$Scalar.Int>>>>>, null> - listListIntNonNull: $.Field<'listListIntNonNull', $.List<$.List<$Scalar.Int>>, null> - lowerCaseUnion: $.Field<'lowerCaseUnion', $.Nullable, null> - object: $.Field<'object', $.Nullable, null> - objectList: $.Field<'objectList', $.Nullable<$.List>, null> - objectListNonNull: $.Field<'objectListNonNull', $.List, null> - objectNested: $.Field<'objectNested', $.Nullable, null> - objectNonNull: $.Field<'objectNonNull', Object1, null> - objectWithArgs: $.Field< + listInt: $.OutputField<'listInt', $.Nullable<$.List<$.Nullable<$Scalar.Int>>>, null> + listIntNonNull: $.OutputField<'listIntNonNull', $.List<$Scalar.Int>, null> + listListInt: $.OutputField<'listListInt', $.Nullable<$.List<$.Nullable<$.List<$.Nullable<$Scalar.Int>>>>>, null> + listListIntNonNull: $.OutputField<'listListIntNonNull', $.List<$.List<$Scalar.Int>>, null> + lowerCaseUnion: $.OutputField<'lowerCaseUnion', $.Nullable, null> + object: $.OutputField<'object', $.Nullable, null> + objectList: $.OutputField<'objectList', $.Nullable<$.List>, null> + objectListNonNull: $.OutputField<'objectListNonNull', $.List, null> + objectNested: $.OutputField<'objectNested', $.Nullable, null> + objectNonNull: $.OutputField<'objectNonNull', Object1, null> + objectWithArgs: $.OutputField< 'objectWithArgs', $.Nullable, $.Args<{ @@ -140,36 +140,36 @@ export namespace Schema { string: $.InputField<$.Nullable<$Scalar.String>> }, true> > - result: $.Field< + result: $.OutputField< 'result', $.Nullable, $.Args<{ case: $.InputField }, false> > - resultNonNull: $.Field< + resultNonNull: $.OutputField< 'resultNonNull', Result, $.Args<{ case: $.InputField<$.Nullable> }, true> > - string: $.Field<'string', $.Nullable<$Scalar.String>, null> - stringWithArgEnum: $.Field< + string: $.OutputField<'string', $.Nullable<$Scalar.String>, null> + stringWithArgEnum: $.OutputField< 'stringWithArgEnum', $.Nullable<$Scalar.String>, $.Args<{ ABCEnum: $.InputField<$.Nullable> }, true> > - stringWithArgInputObject: $.Field< + stringWithArgInputObject: $.OutputField< 'stringWithArgInputObject', $.Nullable<$Scalar.String>, $.Args<{ input: $.InputField<$.Nullable> }, true> > - stringWithArgInputObjectRequired: $.Field< + stringWithArgInputObjectRequired: $.OutputField< 'stringWithArgInputObjectRequired', $.Nullable<$Scalar.String>, $.Args<{ @@ -179,7 +179,7 @@ export namespace Schema { /** * The given arguments are reflected back as a JSON string. */ - stringWithArgs: $.Field< + stringWithArgs: $.OutputField< 'stringWithArgs', $.Nullable<$Scalar.String>, $.Args<{ @@ -190,38 +190,38 @@ export namespace Schema { string: $.InputField<$.Nullable<$Scalar.String>> }, true> > - stringWithListArg: $.Field< + stringWithListArg: $.OutputField< 'stringWithListArg', $.Nullable<$Scalar.String>, $.Args<{ ints: $.InputField<$.Nullable<$.List<$.Nullable<$Scalar.Int>>>> }, true> > - stringWithListArgRequired: $.Field< + stringWithListArgRequired: $.OutputField< 'stringWithListArgRequired', $.Nullable<$Scalar.String>, $.Args<{ ints: $.InputField<$.List<$Scalar.Int>> }, false> > - stringWithRequiredArg: $.Field< + stringWithRequiredArg: $.OutputField< 'stringWithRequiredArg', $.Nullable<$Scalar.String>, $.Args<{ string: $.InputField<$Scalar.String> }, false> > - unionFooBar: $.Field<'unionFooBar', $.Nullable, null> - unionFooBarNonNull: $.Field<'unionFooBarNonNull', FooBarUnion, null> - unionFooBarWithArgs: $.Field< + unionFooBar: $.OutputField<'unionFooBar', $.Nullable, null> + unionFooBarNonNull: $.OutputField<'unionFooBarNonNull', FooBarUnion, null> + unionFooBarWithArgs: $.OutputField< 'unionFooBarWithArgs', $.Nullable, $.Args<{ id: $.InputField<$.Nullable<$Scalar.ID>> }, true> > - unionObject: $.Field<'unionObject', $.Nullable, null> - unionObjectNonNull: $.Field<'unionObjectNonNull', ObjectUnion, null> + unionObject: $.OutputField<'unionObject', $.Nullable, null> + unionObjectNonNull: $.OutputField<'unionObjectNonNull', ObjectUnion, null> }> // @@ -231,7 +231,7 @@ export namespace Schema { // // // ================================================================================================== - // Enum + // OutputObject // ================================================================================================== // // @@ -240,17 +240,75 @@ export namespace Schema { // // + export type Bar = $.OutputObject<'Bar', { + int: $.OutputField<'int', $.Nullable<$Scalar.Int>, null> + }> + + export type DateObject1 = $.OutputObject<'DateObject1', { + date1: $.OutputField<'date1', $.Nullable<$Scalar.Date>, null> + }> + + export type DateObject2 = $.OutputObject<'DateObject2', { + date2: $.OutputField<'date2', $.Nullable<$Scalar.Date>, null> + }> + + export type ErrorOne = $.OutputObject<'ErrorOne', { + infoId: $.OutputField<'infoId', $.Nullable<$Scalar.ID>, null> + message: $.OutputField<'message', $Scalar.String, null> + }> + + export type ErrorTwo = $.OutputObject<'ErrorTwo', { + infoInt: $.OutputField<'infoInt', $.Nullable<$Scalar.Int>, null> + message: $.OutputField<'message', $Scalar.String, null> + }> + /** - * Enum documentation. - * - * Members - * "A" - (DEPRECATED: Enum value A is deprecated.) - * "B" - Enum B member documentation. - * "C" - (DEPRECATED: Enum value C is deprecated.) + * Object documentation. */ - export type ABCEnum = $.Enum<'ABCEnum', ['A', 'B', 'C']> + export type Foo = $.OutputObject<'Foo', { + /** + * Field documentation. + * + * @deprecated Field a is deprecated. + */ + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + }> - export type Case = $.Enum<'Case', ['ErrorOne', 'ErrorTwo', 'Object1']> + export type Object1 = $.OutputObject<'Object1', { + ABCEnum: $.OutputField<'ABCEnum', $.Nullable, null> + boolean: $.OutputField<'boolean', $.Nullable<$Scalar.Boolean>, null> + float: $.OutputField<'float', $.Nullable<$Scalar.Float>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + int: $.OutputField<'int', $.Nullable<$Scalar.Int>, null> + string: $.OutputField<'string', $.Nullable<$Scalar.String>, null> + }> + + export type Object1ImplementingInterface = $.OutputObject<'Object1ImplementingInterface', { + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + int: $.OutputField<'int', $.Nullable<$Scalar.Int>, null> + }> + + export type Object2ImplementingInterface = $.OutputObject<'Object2ImplementingInterface', { + boolean: $.OutputField<'boolean', $.Nullable<$Scalar.Boolean>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + }> + + export type ObjectNested = $.OutputObject<'ObjectNested', { + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + object: $.OutputField<'object', $.Nullable, null> + }> + + export type ObjectUnion = $.OutputObject<'ObjectUnion', { + fooBarUnion: $.OutputField<'fooBarUnion', $.Nullable, null> + }> + + export type lowerCaseObject = $.OutputObject<'lowerCaseObject', { + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + }> + + export type lowerCaseObject2 = $.OutputObject<'lowerCaseObject2', { + int: $.OutputField<'int', $.Nullable<$Scalar.Int>, null> + }> // // @@ -305,15 +363,15 @@ export namespace Schema { // export type DateInterface1 = $.Interface<'DateInterface1', { - date1: $.Field<'date1', $.Nullable<$Scalar.Date>, null> + date1: $.OutputField<'date1', $.Nullable<$Scalar.Date>, null> }, [DateObject1]> export type Error = $.Interface<'Error', { - message: $.Field<'message', $Scalar.String, null> + message: $.OutputField<'message', $Scalar.String, null> }, [ErrorOne, ErrorTwo]> export type Interface = $.Interface<'Interface', { - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> }, [Object1ImplementingInterface, Object2ImplementingInterface]> // @@ -323,7 +381,7 @@ export namespace Schema { // // // ================================================================================================== - // Object + // Union // ================================================================================================== // // @@ -332,75 +390,16 @@ export namespace Schema { // // - export type Bar = $.OutputObject<'Bar', { - int: $.Field<'int', $.Nullable<$Scalar.Int>, null> - }> - - export type DateObject1 = $.OutputObject<'DateObject1', { - date1: $.Field<'date1', $.Nullable<$Scalar.Date>, null> - }> - - export type DateObject2 = $.OutputObject<'DateObject2', { - date2: $.Field<'date2', $.Nullable<$Scalar.Date>, null> - }> - - export type ErrorOne = $.OutputObject<'ErrorOne', { - infoId: $.Field<'infoId', $.Nullable<$Scalar.ID>, null> - message: $.Field<'message', $Scalar.String, null> - }> - - export type ErrorTwo = $.OutputObject<'ErrorTwo', { - infoInt: $.Field<'infoInt', $.Nullable<$Scalar.Int>, null> - message: $.Field<'message', $Scalar.String, null> - }> + export type DateUnion = $.Union<'DateUnion', [DateObject1, DateObject2]> /** - * Object documentation. + * Union documentation. */ - export type Foo = $.OutputObject<'Foo', { - /** - * Field documentation. - * - * @deprecated Field a is deprecated. - */ - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - }> - - export type Object1 = $.OutputObject<'Object1', { - ABCEnum: $.Field<'ABCEnum', $.Nullable, null> - boolean: $.Field<'boolean', $.Nullable<$Scalar.Boolean>, null> - float: $.Field<'float', $.Nullable<$Scalar.Float>, null> - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - int: $.Field<'int', $.Nullable<$Scalar.Int>, null> - string: $.Field<'string', $.Nullable<$Scalar.String>, null> - }> - - export type Object1ImplementingInterface = $.OutputObject<'Object1ImplementingInterface', { - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - int: $.Field<'int', $.Nullable<$Scalar.Int>, null> - }> - - export type Object2ImplementingInterface = $.OutputObject<'Object2ImplementingInterface', { - boolean: $.Field<'boolean', $.Nullable<$Scalar.Boolean>, null> - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - }> - - export type ObjectNested = $.OutputObject<'ObjectNested', { - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - object: $.Field<'object', $.Nullable, null> - }> - - export type ObjectUnion = $.OutputObject<'ObjectUnion', { - fooBarUnion: $.Field<'fooBarUnion', $.Nullable, null> - }> + export type FooBarUnion = $.Union<'FooBarUnion', [Bar, Foo]> - export type lowerCaseObject = $.OutputObject<'lowerCaseObject', { - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - }> + export type Result = $.Union<'Result', [ErrorOne, ErrorTwo, Object1]> - export type lowerCaseObject2 = $.OutputObject<'lowerCaseObject2', { - int: $.Field<'int', $.Nullable<$Scalar.Int>, null> - }> + export type lowerCaseUnion = $.Union<'lowerCaseUnion', [lowerCaseObject, lowerCaseObject2]> // // @@ -409,7 +408,7 @@ export namespace Schema { // // // ================================================================================================== - // Union + // Enum // ================================================================================================== // // @@ -418,16 +417,17 @@ export namespace Schema { // // - export type DateUnion = $.Union<'DateUnion', [DateObject1, DateObject2]> - /** - * Union documentation. + * Enum documentation. + * + * Members + * "A" - (DEPRECATED: Enum value A is deprecated.) + * "B" - Enum B member documentation. + * "C" - (DEPRECATED: Enum value C is deprecated.) */ - export type FooBarUnion = $.Union<'FooBarUnion', [Bar, Foo]> - - export type Result = $.Union<'Result', [ErrorOne, ErrorTwo, Object1]> + export type ABCEnum = $.Enum<'ABCEnum', ['A', 'B', 'C']> - export type lowerCaseUnion = $.Union<'lowerCaseUnion', [lowerCaseObject, lowerCaseObject2]> + export type Case = $.Enum<'Case', ['ErrorOne', 'ErrorTwo', 'Object1']> } // diff --git a/tests/_/schemas/kitchen-sink/graffle/modules/SchemaDrivenDataMap.ts b/tests/_/schemas/kitchen-sink/graffle/modules/SchemaDrivenDataMap.ts index f780d455b..0d9497821 100644 --- a/tests/_/schemas/kitchen-sink/graffle/modules/SchemaDrivenDataMap.ts +++ b/tests/_/schemas/kitchen-sink/graffle/modules/SchemaDrivenDataMap.ts @@ -1,4 +1,4 @@ -import type * as $Utilities from '../../../../../../src/entrypoints/utilities-for-generated.js' +import type * as $$Utilities from '../../../../../../src/entrypoints/utilities-for-generated.js' import * as $Scalar from './Scalar.js' // // @@ -7,7 +7,7 @@ import * as $Scalar from './Scalar.js' // // // ================================================================================================== -// GraphQLScalarTypeStandard +// ScalarStandard // ================================================================================================== // // @@ -33,7 +33,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLScalarTypeCustom +// ScalarCustom // ================================================================================================== // // @@ -51,7 +51,7 @@ const Date = 'Date' // // // ================================================================================================== -// GraphQLEnumType +// Enum // ================================================================================================== // // @@ -60,12 +60,12 @@ const Date = 'Date' // // -const ABCEnum: $Utilities.SchemaDrivenDataMap.Enum = { +const ABCEnum: $$Utilities.SchemaDrivenDataMap.Enum = { k: 'enum', n: 'ABCEnum', } -const Case: $Utilities.SchemaDrivenDataMap.Enum = { +const Case: $$Utilities.SchemaDrivenDataMap.Enum = { k: 'enum', n: 'Case', } @@ -77,7 +77,7 @@ const Case: $Utilities.SchemaDrivenDataMap.Enum = { // // // ================================================================================================== -// GraphQLInputObjectType +// InputObject // ================================================================================================== // // @@ -86,7 +86,7 @@ const Case: $Utilities.SchemaDrivenDataMap.Enum = { // // -const InputObject: $Utilities.SchemaDrivenDataMap.InputObject = { +const InputObject: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'InputObject', fcs: ['date', 'dateRequired'], f: { @@ -101,7 +101,7 @@ const InputObject: $Utilities.SchemaDrivenDataMap.InputObject = { }, } -const InputObjectCircular: $Utilities.SchemaDrivenDataMap.InputObject = { +const InputObjectCircular: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'InputObjectCircular', fcs: ['circular', 'date'], f: { @@ -114,7 +114,7 @@ const InputObjectCircular: $Utilities.SchemaDrivenDataMap.InputObject = { }, } -const InputObjectNested: $Utilities.SchemaDrivenDataMap.InputObject = { +const InputObjectNested: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'InputObjectNested', fcs: ['InputObject'], f: { @@ -124,7 +124,7 @@ const InputObjectNested: $Utilities.SchemaDrivenDataMap.InputObject = { }, } -const InputObjectNestedNonNull: $Utilities.SchemaDrivenDataMap.InputObject = { +const InputObjectNestedNonNull: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'InputObjectNestedNonNull', fcs: ['InputObject'], f: { @@ -141,7 +141,7 @@ const InputObjectNestedNonNull: $Utilities.SchemaDrivenDataMap.InputObject = { // // // ================================================================================================== -// GraphQLObjectType +// OutputObject // ================================================================================================== // // @@ -150,13 +150,13 @@ const InputObjectNestedNonNull: $Utilities.SchemaDrivenDataMap.InputObject = { // // -const Bar: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Bar: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { int: {}, }, } -const DateObject1: $Utilities.SchemaDrivenDataMap.OutputObject = { +const DateObject1: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { date1: { nt: Date, @@ -164,7 +164,7 @@ const DateObject1: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const DateObject2: $Utilities.SchemaDrivenDataMap.OutputObject = { +const DateObject2: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { date2: { nt: Date, @@ -172,27 +172,27 @@ const DateObject2: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const ErrorOne: $Utilities.SchemaDrivenDataMap.OutputObject = { +const ErrorOne: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { infoId: {}, message: {}, }, } -const ErrorTwo: $Utilities.SchemaDrivenDataMap.OutputObject = { +const ErrorTwo: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { infoInt: {}, message: {}, }, } -const Foo: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Foo: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, }, } -const Object1: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Object1: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { ABCEnum: {}, boolean: {}, @@ -203,21 +203,21 @@ const Object1: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const Object1ImplementingInterface: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Object1ImplementingInterface: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, int: {}, }, } -const Object2ImplementingInterface: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Object2ImplementingInterface: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { boolean: {}, id: {}, }, } -const ObjectNested: $Utilities.SchemaDrivenDataMap.OutputObject = { +const ObjectNested: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, object: { @@ -226,7 +226,7 @@ const ObjectNested: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const ObjectUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { +const ObjectUnion: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { fooBarUnion: { // nt: FooBarUnion, <-- Assigned later to avoid potential circular dependency. @@ -234,13 +234,13 @@ const ObjectUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const lowerCaseObject: $Utilities.SchemaDrivenDataMap.OutputObject = { +const lowerCaseObject: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, }, } -const lowerCaseObject2: $Utilities.SchemaDrivenDataMap.OutputObject = { +const lowerCaseObject2: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { int: {}, }, @@ -253,7 +253,7 @@ const lowerCaseObject2: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLInterfaceType +// Interface // ================================================================================================== // // @@ -262,17 +262,17 @@ const lowerCaseObject2: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const DateInterface1: $Utilities.SchemaDrivenDataMap.OutputObject = { +const DateInterface1: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { ...DateObject1.f, }, } -const Error: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Error: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } -const Interface: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Interface: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } @@ -283,7 +283,7 @@ const Interface: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLUnionType +// Union // ================================================================================================== // // @@ -292,22 +292,22 @@ const Interface: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const DateUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { +const DateUnion: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { ...DateObject1.f, ...DateObject2.f, }, } -const FooBarUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { +const FooBarUnion: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } -const Result: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Result: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } -const lowerCaseUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { +const lowerCaseUnion: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } @@ -318,7 +318,7 @@ const lowerCaseUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLRootType +// Root // ================================================================================================== // // @@ -327,14 +327,14 @@ const lowerCaseUnion: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const Mutation: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Mutation: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, idNonNull: {}, }, } -const Query: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Query: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { InputObjectNested: { a: { @@ -685,7 +685,7 @@ Query.f[`unionObjectNonNull`]!.nt = ObjectUnion // // -const $schemaDrivenDataMap: $Utilities.SchemaDrivenDataMap = { +const $schemaDrivenDataMap: $$Utilities.SchemaDrivenDataMap = { roots: { Mutation, Query, diff --git a/tests/_/schemas/kitchen-sink/graffle/modules/Select.ts b/tests/_/schemas/kitchen-sink/graffle/modules/Select.ts index 86107abad..fc1fdb314 100644 --- a/tests/_/schemas/kitchen-sink/graffle/modules/Select.ts +++ b/tests/_/schemas/kitchen-sink/graffle/modules/Select.ts @@ -46,8 +46,8 @@ export namespace Select { 'Mutation' > export type Query<$SelectionSet extends SelectionSets.Query> = InferResult.Root<$SelectionSet, Schema, 'Query'> - // Object Types - // ------------ + // OutputObject Types + // ------------------ export type Bar<$SelectionSet extends SelectionSets.Bar> = InferResult.Object< $SelectionSet, Schema, diff --git a/tests/_/schemas/kitchen-sink/graffle/modules/SelectionSets.ts b/tests/_/schemas/kitchen-sink/graffle/modules/SelectionSets.ts index c670f146d..da9388386 100644 --- a/tests/_/schemas/kitchen-sink/graffle/modules/SelectionSets.ts +++ b/tests/_/schemas/kitchen-sink/graffle/modules/SelectionSets.ts @@ -31,7 +31,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap // // // ================================================================================================== -// GraphQLObjectType Types +// Root // ================================================================================================== // // @@ -45,7 +45,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap // // // GRAPHQL SELECTION SET -// OBJECT +// ROOT // -------------------------------------------------------------------------------------------------- // Mutation // -------------------------------------------------------------------------------------------------- @@ -56,11 +56,11 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap export interface Mutation<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `id` field on the `Mutation` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Mutation` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Mutation.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `idNonNull` field on the `Mutation` object. Its type is `ID` (a `Scalar`). + * Select the `idNonNull` field on the `Mutation` object. Its type is `ID` (a `ScalarStandard` kind of type). */ idNonNull?: Mutation.idNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -141,7 +141,7 @@ export namespace Mutation { // // // GRAPHQL SELECTION SET -// OBJECT +// ROOT // -------------------------------------------------------------------------------------------------- // Query // -------------------------------------------------------------------------------------------------- @@ -152,255 +152,255 @@ export namespace Mutation { export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `InputObjectNested` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `InputObjectNested` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ InputObjectNested?: | Query.InputObjectNested$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `InputObjectNestedNonNull` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `InputObjectNestedNonNull` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ InputObjectNestedNonNull?: | Query.InputObjectNestedNonNull<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `abcEnum` field on the `Query` object. Its type is Enum. + * Select the `abcEnum` field on the `Query` object. Its type is `ABCEnum` (a `Enum` kind of type). */ abcEnum?: Query.abcEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `argInputObjectCircular` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `argInputObjectCircular` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ argInputObjectCircular?: | Query.argInputObjectCircular$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `date` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `date` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ date?: Query.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArg` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArg` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArg?: Query.dateArg$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgInputObject` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgInputObject` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgInputObject?: | Query.dateArgInputObject$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgList` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgList` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgList?: Query.dateArgList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgNonNull` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgNonNull` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgNonNull?: Query.dateArgNonNull<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgNonNullList` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgNonNullList` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgNonNullList?: | Query.dateArgNonNullList<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateArgNonNullListNonNull` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateArgNonNullListNonNull` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateArgNonNullListNonNull?: | Query.dateArgNonNullListNonNull<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateInterface1` field on the `Query` object. Its type is Interface. + * Select the `dateInterface1` field on the `Query` object. Its type is `DateInterface1` (a `Interface` kind of type). */ dateInterface1?: | Query.dateInterface1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateList` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateList` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateList?: Query.dateList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateListList` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateListList` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateListList?: Query.dateListList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateListNonNull` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateListNonNull` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateListNonNull?: | Query.dateListNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateNonNull` field on the `Query` object. Its type is `Date` (a `Scalar`). + * Select the `dateNonNull` field on the `Query` object. Its type is `Date` (a `ScalarCustom` kind of type). */ dateNonNull?: Query.dateNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateObject1` field on the `Query` object. Its type is Object. + * Select the `dateObject1` field on the `Query` object. Its type is `DateObject1` (a `OutputObject` kind of type). */ dateObject1?: Query.dateObject1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `dateUnion` field on the `Query` object. Its type is Union. + * Select the `dateUnion` field on the `Query` object. Its type is `DateUnion` (a `Union` kind of type). */ dateUnion?: Query.dateUnion$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `error` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `error` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ error?: Query.error$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Query.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `idNonNull` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `idNonNull` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ idNonNull?: Query.idNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `interface` field on the `Query` object. Its type is Interface. + * Select the `interface` field on the `Query` object. Its type is `Interface` (a `Interface` kind of type). */ interface?: Query.$interface$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `interfaceNonNull` field on the `Query` object. Its type is Interface. + * Select the `interfaceNonNull` field on the `Query` object. Its type is `Interface` (a `Interface` kind of type). */ interfaceNonNull?: | Query.interfaceNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `interfaceWithArgs` field on the `Query` object. Its type is Interface. + * Select the `interfaceWithArgs` field on the `Query` object. Its type is `Interface` (a `Interface` kind of type). */ interfaceWithArgs?: | Query.interfaceWithArgs<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `listInt` field on the `Query` object. Its type is `Int` (a `Scalar`). + * Select the `listInt` field on the `Query` object. Its type is `Int` (a `ScalarStandard` kind of type). */ listInt?: Query.listInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `listIntNonNull` field on the `Query` object. Its type is `Int` (a `Scalar`). + * Select the `listIntNonNull` field on the `Query` object. Its type is `Int` (a `ScalarStandard` kind of type). */ listIntNonNull?: | Query.listIntNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `listListInt` field on the `Query` object. Its type is `Int` (a `Scalar`). + * Select the `listListInt` field on the `Query` object. Its type is `Int` (a `ScalarStandard` kind of type). */ listListInt?: Query.listListInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `listListIntNonNull` field on the `Query` object. Its type is `Int` (a `Scalar`). + * Select the `listListIntNonNull` field on the `Query` object. Its type is `Int` (a `ScalarStandard` kind of type). */ listListIntNonNull?: | Query.listListIntNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `lowerCaseUnion` field on the `Query` object. Its type is Union. + * Select the `lowerCaseUnion` field on the `Query` object. Its type is `lowerCaseUnion` (a `Union` kind of type). */ lowerCaseUnion?: | Query.lowerCaseUnion$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `object` field on the `Query` object. Its type is Object. + * Select the `object` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ object?: Query.$object$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectList` field on the `Query` object. Its type is Object. + * Select the `objectList` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ objectList?: Query.objectList$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectListNonNull` field on the `Query` object. Its type is Object. + * Select the `objectListNonNull` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ objectListNonNull?: | Query.objectListNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectNested` field on the `Query` object. Its type is Object. + * Select the `objectNested` field on the `Query` object. Its type is `ObjectNested` (a `OutputObject` kind of type). */ objectNested?: Query.objectNested$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectNonNull` field on the `Query` object. Its type is Object. + * Select the `objectNonNull` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ objectNonNull?: | Query.objectNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `objectWithArgs` field on the `Query` object. Its type is Object. + * Select the `objectWithArgs` field on the `Query` object. Its type is `Object1` (a `OutputObject` kind of type). */ objectWithArgs?: | Query.objectWithArgs$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `result` field on the `Query` object. Its type is Union. + * Select the `result` field on the `Query` object. Its type is `Result` (a `Union` kind of type). */ result?: Query.result<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `resultNonNull` field on the `Query` object. Its type is Union. + * Select the `resultNonNull` field on the `Query` object. Its type is `Result` (a `Union` kind of type). */ resultNonNull?: | Query.resultNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `string` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `string` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ string?: Query.$string$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithArgEnum` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithArgEnum` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithArgEnum?: | Query.stringWithArgEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithArgInputObject` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithArgInputObject` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithArgInputObject?: | Query.stringWithArgInputObject$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithArgInputObjectRequired` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithArgInputObjectRequired` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithArgInputObjectRequired?: | Query.stringWithArgInputObjectRequired<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithArgs` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithArgs` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithArgs?: | Query.stringWithArgs$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithListArg` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithListArg` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithListArg?: | Query.stringWithListArg$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithListArgRequired` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithListArgRequired` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithListArgRequired?: | Query.stringWithListArgRequired<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `stringWithRequiredArg` field on the `Query` object. Its type is `String` (a `Scalar`). + * Select the `stringWithRequiredArg` field on the `Query` object. Its type is `String` (a `ScalarStandard` kind of type). */ stringWithRequiredArg?: | Query.stringWithRequiredArg<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionFooBar` field on the `Query` object. Its type is Union. + * Select the `unionFooBar` field on the `Query` object. Its type is `FooBarUnion` (a `Union` kind of type). */ unionFooBar?: Query.unionFooBar$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionFooBarNonNull` field on the `Query` object. Its type is Union. + * Select the `unionFooBarNonNull` field on the `Query` object. Its type is `FooBarUnion` (a `Union` kind of type). */ unionFooBarNonNull?: | Query.unionFooBarNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionFooBarWithArgs` field on the `Query` object. Its type is Union. + * Select the `unionFooBarWithArgs` field on the `Query` object. Its type is `FooBarUnion` (a `Union` kind of type). */ unionFooBarWithArgs?: | Query.unionFooBarWithArgs$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionObject` field on the `Query` object. Its type is Object. + * Select the `unionObject` field on the `Query` object. Its type is `ObjectUnion` (a `OutputObject` kind of type). */ unionObject?: Query.unionObject$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `unionObjectNonNull` field on the `Query` object. Its type is Object. + * Select the `unionObjectNonNull` field on the `Query` object. Its type is `ObjectUnion` (a `OutputObject` kind of type). */ unionObjectNonNull?: | Query.unionObjectNonNull$Expanded<$Scalars> @@ -1748,7 +1748,7 @@ export namespace Query { // // // ================================================================================================== -// GraphQLEnumType Types +// Enum // ================================================================================================== // // @@ -1776,7 +1776,7 @@ export type Case = 'ErrorOne' | 'ErrorTwo' | 'Object1' // // // ================================================================================================== -// GraphQLInputObjectType Types +// InputObject // ================================================================================================== // // @@ -1824,195 +1824,7 @@ export interface InputObjectNestedNonNull<$Scalars extends $$Utilities.Schema.Sc // // // ================================================================================================== -// GraphQLInterfaceType Types -// ================================================================================================== -// -// -// -// -// -// - -// Interface Type: DateInterface1 -// -------------------------------------------------------------------------------------------------- - -export interface DateInterface1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends $Select.Bases.ObjectLike -{ - date1?: DateInterface1.date1<$Scalars> - ___on_DateObject1?: DateObject1<$Scalars> - - /** - * Inline fragments for field groups. - * - * Generally a niche feature. This can be useful for example to apply an `@include` directive to a subset of the - * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. - * - * @see https://spec.graphql.org/draft/#sec-Inline-Fragments - */ - ___?: - | DateInterface1$FragmentInline<$Scalars> - | DateInterface1$FragmentInline<$Scalars>[] - - /** - * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, - * the name is one of the implementor type names, whichever is ultimately returned at runtime. - * - * @see https://graphql.org/learn/queries/#meta-fields - */ - __typename?: - | $Select.Indicator.NoArgsIndicator$Expanded - | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> -} - -export interface DateInterface1$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends DateInterface1<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields -{} - -export namespace DateInterface1 { - export type date1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = - | $Select.Indicator.NoArgsIndicator - | date1$SelectionSet<$Scalars> - - export interface date1$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends $Select.Bases.Base - {} - - // --- expanded --- - - /** - * This is the "expanded" version of the `date1` type. It is identical except for the fact - * that IDEs will display its contents (a union type) directly, rather than the name of this type. - * In some cases, this is a preferable DX, making the types easier to read for users. - */ - export type date1$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< - | $Select.Indicator.NoArgsIndicator - | date1$SelectionSet<$Scalars> - > -} - -// Interface Type: Error -// -------------------------------------------------------------------------------------------------- - -export interface Error<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { - message?: Error.message<$Scalars> - ___on_ErrorOne?: ErrorOne<$Scalars> - ___on_ErrorTwo?: ErrorTwo<$Scalars> - - /** - * Inline fragments for field groups. - * - * Generally a niche feature. This can be useful for example to apply an `@include` directive to a subset of the - * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. - * - * @see https://spec.graphql.org/draft/#sec-Inline-Fragments - */ - ___?: - | Error$FragmentInline<$Scalars> - | Error$FragmentInline<$Scalars>[] - - /** - * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, - * the name is one of the implementor type names, whichever is ultimately returned at runtime. - * - * @see https://graphql.org/learn/queries/#meta-fields - */ - __typename?: - | $Select.Indicator.NoArgsIndicator$Expanded - | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> -} - -export interface Error$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends Error<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields -{} - -export namespace Error { - export type message<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = - | $Select.Indicator.NoArgsIndicator - | message$SelectionSet<$Scalars> - - export interface message$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends $Select.Bases.Base - {} - - // --- expanded --- - - /** - * This is the "expanded" version of the `message` type. It is identical except for the fact - * that IDEs will display its contents (a union type) directly, rather than the name of this type. - * In some cases, this is a preferable DX, making the types easier to read for users. - */ - export type message$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< - | $Select.Indicator.NoArgsIndicator - | message$SelectionSet<$Scalars> - > -} - -// Interface Type: Interface -// -------------------------------------------------------------------------------------------------- - -export interface Interface<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { - id?: Interface.id<$Scalars> - ___on_Object1ImplementingInterface?: Object1ImplementingInterface<$Scalars> - ___on_Object2ImplementingInterface?: Object2ImplementingInterface<$Scalars> - - /** - * Inline fragments for field groups. - * - * Generally a niche feature. This can be useful for example to apply an `@include` directive to a subset of the - * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. - * - * @see https://spec.graphql.org/draft/#sec-Inline-Fragments - */ - ___?: - | Interface$FragmentInline<$Scalars> - | Interface$FragmentInline<$Scalars>[] - - /** - * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, - * the name is one of the implementor type names, whichever is ultimately returned at runtime. - * - * @see https://graphql.org/learn/queries/#meta-fields - */ - __typename?: - | $Select.Indicator.NoArgsIndicator$Expanded - | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> -} - -export interface Interface$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends Interface<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields -{} - -export namespace Interface { - export type id<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = - | $Select.Indicator.NoArgsIndicator - | id$SelectionSet<$Scalars> - - export interface id$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends $Select.Bases.Base - {} - - // --- expanded --- - - /** - * This is the "expanded" version of the `id` type. It is identical except for the fact - * that IDEs will display its contents (a union type) directly, rather than the name of this type. - * In some cases, this is a preferable DX, making the types easier to read for users. - */ - export type id$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< - | $Select.Indicator.NoArgsIndicator - | id$SelectionSet<$Scalars> - > -} - -// -// -// -// -// -// -// ================================================================================================== -// GraphQLObjectType Types +// OutputObject // ================================================================================================== // // @@ -2026,7 +1838,7 @@ export namespace Interface { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Bar // -------------------------------------------------------------------------------------------------- @@ -2037,7 +1849,7 @@ export namespace Interface { export interface Bar<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `int` field on the `Bar` object. Its type is `Int` (a `Scalar`). + * Select the `int` field on the `Bar` object. Its type is `Int` (a `ScalarStandard` kind of type). */ int?: Bar.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2096,7 +1908,7 @@ export namespace Bar { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // DateObject1 // -------------------------------------------------------------------------------------------------- @@ -2109,7 +1921,7 @@ export interface DateObject1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMa extends $Select.Bases.ObjectLike { /** - * Select the `date1` field on the `DateObject1` object. Its type is `Date` (a `Scalar`). + * Select the `date1` field on the `DateObject1` object. Its type is `Date` (a `ScalarCustom` kind of type). */ date1?: DateObject1.date1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2168,7 +1980,7 @@ export namespace DateObject1 { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // DateObject2 // -------------------------------------------------------------------------------------------------- @@ -2181,7 +1993,7 @@ export interface DateObject2<$Scalars extends $$Utilities.Schema.Scalar.ScalarMa extends $Select.Bases.ObjectLike { /** - * Select the `date2` field on the `DateObject2` object. Its type is `Date` (a `Scalar`). + * Select the `date2` field on the `DateObject2` object. Its type is `Date` (a `ScalarCustom` kind of type). */ date2?: DateObject2.date2$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2240,7 +2052,7 @@ export namespace DateObject2 { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // ErrorOne // -------------------------------------------------------------------------------------------------- @@ -2251,11 +2063,11 @@ export namespace DateObject2 { export interface ErrorOne<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `infoId` field on the `ErrorOne` object. Its type is `ID` (a `Scalar`). + * Select the `infoId` field on the `ErrorOne` object. Its type is `ID` (a `ScalarStandard` kind of type). */ infoId?: ErrorOne.infoId$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `message` field on the `ErrorOne` object. Its type is `String` (a `Scalar`). + * Select the `message` field on the `ErrorOne` object. Its type is `String` (a `ScalarStandard` kind of type). */ message?: ErrorOne.message$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2336,7 +2148,7 @@ export namespace ErrorOne { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // ErrorTwo // -------------------------------------------------------------------------------------------------- @@ -2347,11 +2159,11 @@ export namespace ErrorOne { export interface ErrorTwo<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `infoInt` field on the `ErrorTwo` object. Its type is `Int` (a `Scalar`). + * Select the `infoInt` field on the `ErrorTwo` object. Its type is `Int` (a `ScalarStandard` kind of type). */ infoInt?: ErrorTwo.infoInt$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `message` field on the `ErrorTwo` object. Its type is `String` (a `Scalar`). + * Select the `message` field on the `ErrorTwo` object. Its type is `String` (a `ScalarStandard` kind of type). */ message?: ErrorTwo.message$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2432,7 +2244,7 @@ export namespace ErrorTwo { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Foo // -------------------------------------------------------------------------------------------------- @@ -2446,7 +2258,7 @@ export namespace ErrorTwo { */ export interface Foo<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `Foo` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Foo` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Foo.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2505,7 +2317,7 @@ export namespace Foo { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Object1 // -------------------------------------------------------------------------------------------------- @@ -2516,27 +2328,27 @@ export namespace Foo { export interface Object1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `ABCEnum` field on the `Object1` object. Its type is Enum. + * Select the `ABCEnum` field on the `Object1` object. Its type is `ABCEnum` (a `Enum` kind of type). */ ABCEnum?: Object1.ABCEnum$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `boolean` field on the `Object1` object. Its type is `Boolean` (a `Scalar`). + * Select the `boolean` field on the `Object1` object. Its type is `Boolean` (a `ScalarStandard` kind of type). */ boolean?: Object1.$boolean$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `float` field on the `Object1` object. Its type is `Float` (a `Scalar`). + * Select the `float` field on the `Object1` object. Its type is `Float` (a `ScalarStandard` kind of type). */ float?: Object1.float$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Object1` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Object1` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Object1.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `int` field on the `Object1` object. Its type is `Int` (a `Scalar`). + * Select the `int` field on the `Object1` object. Its type is `Int` (a `ScalarStandard` kind of type). */ int?: Object1.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `string` field on the `Object1` object. Its type is `String` (a `Scalar`). + * Select the `string` field on the `Object1` object. Its type is `String` (a `ScalarStandard` kind of type). */ string?: Object1.$string$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -2705,7 +2517,7 @@ export namespace Object1 { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Object1ImplementingInterface // -------------------------------------------------------------------------------------------------- @@ -2718,13 +2530,13 @@ export interface Object1ImplementingInterface<$Scalars extends $$Utilities.Schem extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `Object1ImplementingInterface` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Object1ImplementingInterface` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: | Object1ImplementingInterface.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `int` field on the `Object1ImplementingInterface` object. Its type is `Int` (a `Scalar`). + * Select the `int` field on the `Object1ImplementingInterface` object. Its type is `Int` (a `ScalarStandard` kind of type). */ int?: | Object1ImplementingInterface.int$Expanded<$Scalars> @@ -2807,7 +2619,7 @@ export namespace Object1ImplementingInterface { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Object2ImplementingInterface // -------------------------------------------------------------------------------------------------- @@ -2820,13 +2632,13 @@ export interface Object2ImplementingInterface<$Scalars extends $$Utilities.Schem extends $Select.Bases.ObjectLike { /** - * Select the `boolean` field on the `Object2ImplementingInterface` object. Its type is `Boolean` (a `Scalar`). + * Select the `boolean` field on the `Object2ImplementingInterface` object. Its type is `Boolean` (a `ScalarStandard` kind of type). */ boolean?: | Object2ImplementingInterface.$boolean$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Object2ImplementingInterface` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Object2ImplementingInterface` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: | Object2ImplementingInterface.id$Expanded<$Scalars> @@ -2909,7 +2721,7 @@ export namespace Object2ImplementingInterface { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // ObjectNested // -------------------------------------------------------------------------------------------------- @@ -2922,11 +2734,11 @@ export interface ObjectNested<$Scalars extends $$Utilities.Schema.Scalar.ScalarM extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `ObjectNested` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `ObjectNested` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: ObjectNested.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `object` field on the `ObjectNested` object. Its type is Object. + * Select the `object` field on the `ObjectNested` object. Its type is `Object1` (a `OutputObject` kind of type). */ object?: ObjectNested.$object$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -3004,7 +2816,7 @@ export namespace ObjectNested { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // ObjectUnion // -------------------------------------------------------------------------------------------------- @@ -3017,7 +2829,7 @@ export interface ObjectUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMa extends $Select.Bases.ObjectLike { /** - * Select the `fooBarUnion` field on the `ObjectUnion` object. Its type is Union. + * Select the `fooBarUnion` field on the `ObjectUnion` object. Its type is `FooBarUnion` (a `Union` kind of type). */ fooBarUnion?: | ObjectUnion.fooBarUnion$Expanded<$Scalars> @@ -3077,7 +2889,7 @@ export namespace ObjectUnion { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // lowerCaseObject // -------------------------------------------------------------------------------------------------- @@ -3090,7 +2902,7 @@ export interface lowerCaseObject<$Scalars extends $$Utilities.Schema.Scalar.Scal extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `lowerCaseObject` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `lowerCaseObject` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: lowerCaseObject.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -3149,7 +2961,7 @@ export namespace lowerCaseObject { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // lowerCaseObject2 // -------------------------------------------------------------------------------------------------- @@ -3162,7 +2974,7 @@ export interface lowerCaseObject2<$Scalars extends $$Utilities.Schema.Scalar.Sca extends $Select.Bases.ObjectLike { /** - * Select the `int` field on the `lowerCaseObject2` object. Its type is `Int` (a `Scalar`). + * Select the `int` field on the `lowerCaseObject2` object. Its type is `Int` (a `ScalarStandard` kind of type). */ int?: lowerCaseObject2.int$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -3223,7 +3035,7 @@ export namespace lowerCaseObject2 { // // // ================================================================================================== -// GraphQLUnionType Types +// Union // ================================================================================================== // // @@ -3356,6 +3168,194 @@ export interface lowerCaseUnion$FragmentInline<$Scalars extends $$Utilities.Sche extends lowerCaseUnion<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} +// +// +// +// +// +// +// ================================================================================================== +// Interface +// ================================================================================================== +// +// +// +// +// +// + +// Interface Type: DateInterface1 +// -------------------------------------------------------------------------------------------------- + +export interface DateInterface1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends $Select.Bases.ObjectLike +{ + date1?: DateInterface1.date1<$Scalars> + ___on_DateObject1?: DateObject1<$Scalars> + + /** + * Inline fragments for field groups. + * + * Generally a niche feature. This can be useful for example to apply an `@include` directive to a subset of the + * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. + * + * @see https://spec.graphql.org/draft/#sec-Inline-Fragments + */ + ___?: + | DateInterface1$FragmentInline<$Scalars> + | DateInterface1$FragmentInline<$Scalars>[] + + /** + * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, + * the name is one of the implementor type names, whichever is ultimately returned at runtime. + * + * @see https://graphql.org/learn/queries/#meta-fields + */ + __typename?: + | $Select.Indicator.NoArgsIndicator$Expanded + | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> +} + +export interface DateInterface1$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends DateInterface1<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields +{} + +export namespace DateInterface1 { + export type date1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = + | $Select.Indicator.NoArgsIndicator + | date1$SelectionSet<$Scalars> + + export interface date1$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends $Select.Bases.Base + {} + + // --- expanded --- + + /** + * This is the "expanded" version of the `date1` type. It is identical except for the fact + * that IDEs will display its contents (a union type) directly, rather than the name of this type. + * In some cases, this is a preferable DX, making the types easier to read for users. + */ + export type date1$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + | $Select.Indicator.NoArgsIndicator + | date1$SelectionSet<$Scalars> + > +} + +// Interface Type: Error +// -------------------------------------------------------------------------------------------------- + +export interface Error<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { + message?: Error.message<$Scalars> + ___on_ErrorOne?: ErrorOne<$Scalars> + ___on_ErrorTwo?: ErrorTwo<$Scalars> + + /** + * Inline fragments for field groups. + * + * Generally a niche feature. This can be useful for example to apply an `@include` directive to a subset of the + * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. + * + * @see https://spec.graphql.org/draft/#sec-Inline-Fragments + */ + ___?: + | Error$FragmentInline<$Scalars> + | Error$FragmentInline<$Scalars>[] + + /** + * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, + * the name is one of the implementor type names, whichever is ultimately returned at runtime. + * + * @see https://graphql.org/learn/queries/#meta-fields + */ + __typename?: + | $Select.Indicator.NoArgsIndicator$Expanded + | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> +} + +export interface Error$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends Error<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields +{} + +export namespace Error { + export type message<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = + | $Select.Indicator.NoArgsIndicator + | message$SelectionSet<$Scalars> + + export interface message$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends $Select.Bases.Base + {} + + // --- expanded --- + + /** + * This is the "expanded" version of the `message` type. It is identical except for the fact + * that IDEs will display its contents (a union type) directly, rather than the name of this type. + * In some cases, this is a preferable DX, making the types easier to read for users. + */ + export type message$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + | $Select.Indicator.NoArgsIndicator + | message$SelectionSet<$Scalars> + > +} + +// Interface Type: Interface +// -------------------------------------------------------------------------------------------------- + +export interface Interface<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { + id?: Interface.id<$Scalars> + ___on_Object1ImplementingInterface?: Object1ImplementingInterface<$Scalars> + ___on_Object2ImplementingInterface?: Object2ImplementingInterface<$Scalars> + + /** + * Inline fragments for field groups. + * + * Generally a niche feature. This can be useful for example to apply an `@include` directive to a subset of the + * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. + * + * @see https://spec.graphql.org/draft/#sec-Inline-Fragments + */ + ___?: + | Interface$FragmentInline<$Scalars> + | Interface$FragmentInline<$Scalars>[] + + /** + * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, + * the name is one of the implementor type names, whichever is ultimately returned at runtime. + * + * @see https://graphql.org/learn/queries/#meta-fields + */ + __typename?: + | $Select.Indicator.NoArgsIndicator$Expanded + | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> +} + +export interface Interface$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends Interface<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields +{} + +export namespace Interface { + export type id<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = + | $Select.Indicator.NoArgsIndicator + | id$SelectionSet<$Scalars> + + export interface id$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends $Select.Bases.Base + {} + + // --- expanded --- + + /** + * This is the "expanded" version of the `id` type. It is identical except for the fact + * that IDEs will display its contents (a union type) directly, rather than the name of this type. + * In some cases, this is a preferable DX, making the types easier to read for users. + */ + export type id$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + | $Select.Indicator.NoArgsIndicator + | id$SelectionSet<$Scalars> + > +} + /** * [1] These definitions serve to allow field selection interfaces to extend their respective object type without * name clashing between the field name and the object name. @@ -3377,9 +3377,6 @@ export namespace $NamedTypes { > export type $InputObjectNestedNonNull<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = InputObjectNestedNonNull<$Scalars> - export type $DateInterface1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = DateInterface1<$Scalars> - export type $Error<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Error<$Scalars> - export type $Interface<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Interface<$Scalars> export type $Bar<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Bar<$Scalars> export type $DateObject1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = DateObject1<$Scalars> export type $DateObject2<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = DateObject2<$Scalars> @@ -3399,4 +3396,7 @@ export namespace $NamedTypes { export type $FooBarUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = FooBarUnion<$Scalars> export type $Result<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Result<$Scalars> export type $lowerCaseUnion<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = lowerCaseUnion<$Scalars> + export type $DateInterface1<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = DateInterface1<$Scalars> + export type $Error<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Error<$Scalars> + export type $Interface<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Interface<$Scalars> } diff --git a/tests/_/schemas/mutation-only/graffle/modules/MethodsSelect.ts b/tests/_/schemas/mutation-only/graffle/modules/MethodsSelect.ts index 24587dab8..f8fc9c2b1 100644 --- a/tests/_/schemas/mutation-only/graffle/modules/MethodsSelect.ts +++ b/tests/_/schemas/mutation-only/graffle/modules/MethodsSelect.ts @@ -40,3 +40,51 @@ export interface $MethodsSelect { export interface Mutation { <$SelectionSet>(selectionSet: $Utilities.Exact<$SelectionSet, $SelectionSets.Mutation>): $SelectionSet } + +// +// +// +// +// +// +// ================================================================================================== +// OutputObject +// ================================================================================================== +// +// +// +// +// +// + +// +// +// +// +// +// +// ================================================================================================== +// Union +// ================================================================================================== +// +// +// +// +// +// + +// +// +// +// +// +// +// ================================================================================================== +// Interface +// ================================================================================================== +// +// +// +// +// +// diff --git a/tests/_/schemas/mutation-only/graffle/modules/Schema.ts b/tests/_/schemas/mutation-only/graffle/modules/Schema.ts index b8a8f3f0f..d911b95f1 100644 --- a/tests/_/schemas/mutation-only/graffle/modules/Schema.ts +++ b/tests/_/schemas/mutation-only/graffle/modules/Schema.ts @@ -21,8 +21,8 @@ export namespace Schema { // export type Mutation = $.StandardTypes.Mutation<{ - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - idNonNull: $.Field<'idNonNull', $Scalar.ID, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + idNonNull: $.OutputField<'idNonNull', $Scalar.ID, null> }> // @@ -32,7 +32,7 @@ export namespace Schema { // // // ================================================================================================== - // Enum + // OutputObject // ================================================================================================== // // @@ -86,7 +86,7 @@ export namespace Schema { // // // ================================================================================================== - // Object + // Union // ================================================================================================== // // @@ -104,7 +104,7 @@ export namespace Schema { // // // ================================================================================================== - // Union + // Enum // ================================================================================================== // // diff --git a/tests/_/schemas/mutation-only/graffle/modules/SchemaDrivenDataMap.ts b/tests/_/schemas/mutation-only/graffle/modules/SchemaDrivenDataMap.ts index 498788118..cff96ae6c 100644 --- a/tests/_/schemas/mutation-only/graffle/modules/SchemaDrivenDataMap.ts +++ b/tests/_/schemas/mutation-only/graffle/modules/SchemaDrivenDataMap.ts @@ -1,4 +1,4 @@ -import type * as $Utilities from '../../../../../../src/entrypoints/utilities-for-generated.js' +import type * as $$Utilities from '../../../../../../src/entrypoints/utilities-for-generated.js' import * as $Scalar from './Scalar.js' // // @@ -7,7 +7,7 @@ import * as $Scalar from './Scalar.js' // // // ================================================================================================== -// GraphQLScalarTypeStandard +// ScalarStandard // ================================================================================================== // // @@ -33,7 +33,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLScalarTypeCustom +// ScalarCustom // ================================================================================================== // // @@ -42,7 +42,7 @@ const String = $Scalar.String // // -// None of your GraphQLScalarTypeCustoms have custom scalars. +// None of your ScalarCustoms have custom scalars. // // @@ -51,7 +51,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLEnumType +// Enum // ================================================================================================== // // @@ -60,7 +60,7 @@ const String = $Scalar.String // // -// None of your GraphQLEnumTypes have custom scalars. +// None of your Enums have custom scalars. // // @@ -69,7 +69,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLInputObjectType +// InputObject // ================================================================================================== // // @@ -78,7 +78,7 @@ const String = $Scalar.String // // -// None of your GraphQLInputObjectTypes have custom scalars. +// None of your InputObjects have custom scalars. // // @@ -87,7 +87,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLObjectType +// OutputObject // ================================================================================================== // // @@ -96,7 +96,7 @@ const String = $Scalar.String // // -// None of your GraphQLObjectTypes have custom scalars. +// None of your OutputObjects have custom scalars. // // @@ -105,7 +105,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLInterfaceType +// Interface // ================================================================================================== // // @@ -114,7 +114,7 @@ const String = $Scalar.String // // -// None of your GraphQLInterfaceTypes have custom scalars. +// None of your Interfaces have custom scalars. // // @@ -123,7 +123,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLUnionType +// Union // ================================================================================================== // // @@ -132,7 +132,7 @@ const String = $Scalar.String // // -// None of your GraphQLUnionTypes have custom scalars. +// None of your Unions have custom scalars. // // @@ -141,7 +141,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLRootType +// Root // ================================================================================================== // // @@ -150,7 +150,7 @@ const String = $Scalar.String // // -const Mutation: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Mutation: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, idNonNull: {}, @@ -192,7 +192,7 @@ const Mutation: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const $schemaDrivenDataMap: $Utilities.SchemaDrivenDataMap = { +const $schemaDrivenDataMap: $$Utilities.SchemaDrivenDataMap = { roots: { Mutation, }, diff --git a/tests/_/schemas/mutation-only/graffle/modules/Select.ts b/tests/_/schemas/mutation-only/graffle/modules/Select.ts index 72d06ef3f..d1945bb22 100644 --- a/tests/_/schemas/mutation-only/graffle/modules/Select.ts +++ b/tests/_/schemas/mutation-only/graffle/modules/Select.ts @@ -45,8 +45,8 @@ export namespace Select { Schema, 'Mutation' > - // Object Types - // ------------ + // OutputObject Types + // ------------------ // -- None -- diff --git a/tests/_/schemas/mutation-only/graffle/modules/SelectionSets.ts b/tests/_/schemas/mutation-only/graffle/modules/SelectionSets.ts index 8c0f2f13e..664b1f064 100644 --- a/tests/_/schemas/mutation-only/graffle/modules/SelectionSets.ts +++ b/tests/_/schemas/mutation-only/graffle/modules/SelectionSets.ts @@ -29,7 +29,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap // // // ================================================================================================== -// GraphQLObjectType Types +// Root // ================================================================================================== // // @@ -43,7 +43,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap // // // GRAPHQL SELECTION SET -// OBJECT +// ROOT // -------------------------------------------------------------------------------------------------- // Mutation // -------------------------------------------------------------------------------------------------- @@ -54,11 +54,11 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap export interface Mutation<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `id` field on the `Mutation` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Mutation` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Mutation.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `idNonNull` field on the `Mutation` object. Its type is `ID` (a `Scalar`). + * Select the `idNonNull` field on the `Mutation` object. Its type is `ID` (a `ScalarStandard` kind of type). */ idNonNull?: Mutation.idNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> diff --git a/tests/_/schemas/pokemon/graffle/modules/MethodsSelect.ts b/tests/_/schemas/pokemon/graffle/modules/MethodsSelect.ts index aa9f12c3b..f6147989d 100644 --- a/tests/_/schemas/pokemon/graffle/modules/MethodsSelect.ts +++ b/tests/_/schemas/pokemon/graffle/modules/MethodsSelect.ts @@ -63,7 +63,7 @@ export interface Query { // // // ================================================================================================== -// Object +// OutputObject // ================================================================================================== // // diff --git a/tests/_/schemas/pokemon/graffle/modules/Schema.ts b/tests/_/schemas/pokemon/graffle/modules/Schema.ts index 4dd97e4bf..fccbce32f 100644 --- a/tests/_/schemas/pokemon/graffle/modules/Schema.ts +++ b/tests/_/schemas/pokemon/graffle/modules/Schema.ts @@ -21,7 +21,7 @@ export namespace Schema { // export type Mutation = $.StandardTypes.Mutation<{ - addPokemon: $.Field< + addPokemon: $.OutputField< 'addPokemon', $.Nullable, $.Args<{ @@ -35,31 +35,31 @@ export namespace Schema { }> export type Query = $.StandardTypes.Query<{ - battles: $.Field<'battles', $.List, null> - beings: $.Field<'beings', $.List, null> - pokemon: $.Field<'pokemon', $.Nullable<$.List>, null> - pokemonByName: $.Field< + battles: $.OutputField<'battles', $.List, null> + beings: $.OutputField<'beings', $.List, null> + pokemon: $.OutputField<'pokemon', $.Nullable<$.List>, null> + pokemonByName: $.OutputField< 'pokemonByName', $.Nullable<$.List>, $.Args<{ name: $.InputField<$Scalar.String> }, false> > - pokemons: $.Field< + pokemons: $.OutputField< 'pokemons', $.Nullable<$.List>, $.Args<{ filter: $.InputField<$.Nullable> }, true> > - trainerByName: $.Field< + trainerByName: $.OutputField< 'trainerByName', $.Nullable, $.Args<{ name: $.InputField<$Scalar.String> }, false> > - trainers: $.Field<'trainers', $.Nullable<$.List>, null> + trainers: $.OutputField<'trainers', $.Nullable<$.List>, null> }> // @@ -69,7 +69,7 @@ export namespace Schema { // // // ================================================================================================== - // Enum + // OutputObject // ================================================================================================== // // @@ -78,28 +78,64 @@ export namespace Schema { // // - export type BattleWildResult = $.Enum<'BattleWildResult', ['pokemonsCaptured', 'pokemonsDefeated', 'trainerDefeated']> + export type BattleRoyale = $.OutputObject<'BattleRoyale', { + combatants: $.OutputField<'combatants', $.Nullable<$.List>, null> + date: $.OutputField<'date', $.Nullable<$Scalar.Float>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + winner: $.OutputField<'winner', $.Nullable, null> + }> - export type PokemonType = $.Enum<'PokemonType', ['bug', 'electric', 'fire', 'grass', 'water']> + export type BattleTrainer = $.OutputObject<'BattleTrainer', { + combatant1: $.OutputField<'combatant1', $.Nullable, null> + combatant2: $.OutputField<'combatant2', $.Nullable, null> + date: $.OutputField<'date', $.Nullable<$Scalar.Float>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + winner: $.OutputField<'winner', $.Nullable, null> + }> - export type TrainerClass = $.Enum< - 'TrainerClass', - [ - 'bugCatcher', - 'camper', - 'picnicker', - 'psychic', - 'psychicMedium', - 'psychicYoungster', - 'sailor', - 'superNerd', - 'tamer', - 'teamRocketGrunt', - 'triathlete', - 'youngster', - 'youth', - ] - > + export type BattleWild = $.OutputObject<'BattleWild', { + date: $.OutputField<'date', $.Nullable<$Scalar.Float>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + pokemon: $.OutputField<'pokemon', $.Nullable, null> + result: $.OutputField<'result', $.Nullable, null> + trainer: $.OutputField<'trainer', $.Nullable, null> + wildPokemons: $.OutputField<'wildPokemons', $.Nullable<$.List>, null> + }> + + export type CombatantMultiPokemon = $.OutputObject<'CombatantMultiPokemon', { + pokemons: $.OutputField<'pokemons', $.Nullable<$.List>, null> + trainer: $.OutputField<'trainer', $.Nullable, null> + }> + + export type CombatantSinglePokemon = $.OutputObject<'CombatantSinglePokemon', { + pokemon: $.OutputField<'pokemon', $.Nullable, null> + trainer: $.OutputField<'trainer', $.Nullable, null> + }> + + export type Patron = $.OutputObject<'Patron', { + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + money: $.OutputField<'money', $.Nullable<$Scalar.Int>, null> + name: $.OutputField<'name', $.Nullable<$Scalar.String>, null> + }> + + export type Pokemon = $.OutputObject<'Pokemon', { + attack: $.OutputField<'attack', $.Nullable<$Scalar.Int>, null> + birthday: $.OutputField<'birthday', $.Nullable<$Scalar.Int>, null> + defense: $.OutputField<'defense', $.Nullable<$Scalar.Int>, null> + hp: $.OutputField<'hp', $.Nullable<$Scalar.Int>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + name: $.OutputField<'name', $.Nullable<$Scalar.String>, null> + trainer: $.OutputField<'trainer', $.Nullable, null> + type: $.OutputField<'type', $.Nullable, null> + }> + + export type Trainer = $.OutputObject<'Trainer', { + class: $.OutputField<'class', $.Nullable, null> + fans: $.OutputField<'fans', $.Nullable<$.List>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + name: $.OutputField<'name', $.Nullable<$Scalar.String>, null> + pokemon: $.OutputField<'pokemon', $.Nullable<$.List>, null> + }> // // @@ -149,8 +185,8 @@ export namespace Schema { // export type Being = $.Interface<'Being', { - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - name: $.Field<'name', $.Nullable<$Scalar.String>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + name: $.OutputField<'name', $.Nullable<$Scalar.String>, null> }, [Patron, Pokemon, Trainer]> // @@ -160,7 +196,7 @@ export namespace Schema { // // // ================================================================================================== - // Object + // Union // ================================================================================================== // // @@ -169,64 +205,7 @@ export namespace Schema { // // - export type BattleRoyale = $.OutputObject<'BattleRoyale', { - combatants: $.Field<'combatants', $.Nullable<$.List>, null> - date: $.Field<'date', $.Nullable<$Scalar.Float>, null> - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - winner: $.Field<'winner', $.Nullable, null> - }> - - export type BattleTrainer = $.OutputObject<'BattleTrainer', { - combatant1: $.Field<'combatant1', $.Nullable, null> - combatant2: $.Field<'combatant2', $.Nullable, null> - date: $.Field<'date', $.Nullable<$Scalar.Float>, null> - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - winner: $.Field<'winner', $.Nullable, null> - }> - - export type BattleWild = $.OutputObject<'BattleWild', { - date: $.Field<'date', $.Nullable<$Scalar.Float>, null> - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - pokemon: $.Field<'pokemon', $.Nullable, null> - result: $.Field<'result', $.Nullable, null> - trainer: $.Field<'trainer', $.Nullable, null> - wildPokemons: $.Field<'wildPokemons', $.Nullable<$.List>, null> - }> - - export type CombatantMultiPokemon = $.OutputObject<'CombatantMultiPokemon', { - pokemons: $.Field<'pokemons', $.Nullable<$.List>, null> - trainer: $.Field<'trainer', $.Nullable, null> - }> - - export type CombatantSinglePokemon = $.OutputObject<'CombatantSinglePokemon', { - pokemon: $.Field<'pokemon', $.Nullable, null> - trainer: $.Field<'trainer', $.Nullable, null> - }> - - export type Patron = $.OutputObject<'Patron', { - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - money: $.Field<'money', $.Nullable<$Scalar.Int>, null> - name: $.Field<'name', $.Nullable<$Scalar.String>, null> - }> - - export type Pokemon = $.OutputObject<'Pokemon', { - attack: $.Field<'attack', $.Nullable<$Scalar.Int>, null> - birthday: $.Field<'birthday', $.Nullable<$Scalar.Int>, null> - defense: $.Field<'defense', $.Nullable<$Scalar.Int>, null> - hp: $.Field<'hp', $.Nullable<$Scalar.Int>, null> - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - name: $.Field<'name', $.Nullable<$Scalar.String>, null> - trainer: $.Field<'trainer', $.Nullable, null> - type: $.Field<'type', $.Nullable, null> - }> - - export type Trainer = $.OutputObject<'Trainer', { - class: $.Field<'class', $.Nullable, null> - fans: $.Field<'fans', $.Nullable<$.List>, null> - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - name: $.Field<'name', $.Nullable<$Scalar.String>, null> - pokemon: $.Field<'pokemon', $.Nullable<$.List>, null> - }> + export type Battle = $.Union<'Battle', [BattleRoyale, BattleTrainer, BattleWild]> // // @@ -235,7 +214,7 @@ export namespace Schema { // // // ================================================================================================== - // Union + // Enum // ================================================================================================== // // @@ -244,7 +223,28 @@ export namespace Schema { // // - export type Battle = $.Union<'Battle', [BattleRoyale, BattleTrainer, BattleWild]> + export type BattleWildResult = $.Enum<'BattleWildResult', ['pokemonsCaptured', 'pokemonsDefeated', 'trainerDefeated']> + + export type PokemonType = $.Enum<'PokemonType', ['bug', 'electric', 'fire', 'grass', 'water']> + + export type TrainerClass = $.Enum< + 'TrainerClass', + [ + 'bugCatcher', + 'camper', + 'picnicker', + 'psychic', + 'psychicMedium', + 'psychicYoungster', + 'sailor', + 'superNerd', + 'tamer', + 'teamRocketGrunt', + 'triathlete', + 'youngster', + 'youth', + ] + > } // diff --git a/tests/_/schemas/pokemon/graffle/modules/SchemaDrivenDataMap.ts b/tests/_/schemas/pokemon/graffle/modules/SchemaDrivenDataMap.ts index f630ce24c..15dfec0c6 100644 --- a/tests/_/schemas/pokemon/graffle/modules/SchemaDrivenDataMap.ts +++ b/tests/_/schemas/pokemon/graffle/modules/SchemaDrivenDataMap.ts @@ -1,4 +1,4 @@ -import type * as $Utilities from '../../../../../../src/entrypoints/utilities-for-generated.js' +import type * as $$Utilities from '../../../../../../src/entrypoints/utilities-for-generated.js' import * as $Scalar from './Scalar.js' // // @@ -7,7 +7,7 @@ import * as $Scalar from './Scalar.js' // // // ================================================================================================== -// GraphQLScalarTypeStandard +// ScalarStandard // ================================================================================================== // // @@ -33,7 +33,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLScalarTypeCustom +// ScalarCustom // ================================================================================================== // // @@ -42,7 +42,7 @@ const String = $Scalar.String // // -// None of your GraphQLScalarTypeCustoms have custom scalars. +// None of your ScalarCustoms have custom scalars. // // @@ -51,7 +51,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLEnumType +// Enum // ================================================================================================== // // @@ -60,17 +60,17 @@ const String = $Scalar.String // // -const BattleWildResult: $Utilities.SchemaDrivenDataMap.Enum = { +const BattleWildResult: $$Utilities.SchemaDrivenDataMap.Enum = { k: 'enum', n: 'BattleWildResult', } -const PokemonType: $Utilities.SchemaDrivenDataMap.Enum = { +const PokemonType: $$Utilities.SchemaDrivenDataMap.Enum = { k: 'enum', n: 'PokemonType', } -const TrainerClass: $Utilities.SchemaDrivenDataMap.Enum = { +const TrainerClass: $$Utilities.SchemaDrivenDataMap.Enum = { k: 'enum', n: 'TrainerClass', } @@ -82,7 +82,7 @@ const TrainerClass: $Utilities.SchemaDrivenDataMap.Enum = { // // // ================================================================================================== -// GraphQLInputObjectType +// InputObject // ================================================================================================== // // @@ -91,7 +91,7 @@ const TrainerClass: $Utilities.SchemaDrivenDataMap.Enum = { // // -const DateFilter: $Utilities.SchemaDrivenDataMap.InputObject = { +const DateFilter: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'DateFilter', f: { gte: {}, @@ -99,7 +99,7 @@ const DateFilter: $Utilities.SchemaDrivenDataMap.InputObject = { }, } -const PokemonFilter: $Utilities.SchemaDrivenDataMap.InputObject = { +const PokemonFilter: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'PokemonFilter', f: { birthday: {}, @@ -107,7 +107,7 @@ const PokemonFilter: $Utilities.SchemaDrivenDataMap.InputObject = { }, } -const StringFilter: $Utilities.SchemaDrivenDataMap.InputObject = { +const StringFilter: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'StringFilter', f: { contains: {}, @@ -122,7 +122,7 @@ const StringFilter: $Utilities.SchemaDrivenDataMap.InputObject = { // // // ================================================================================================== -// GraphQLObjectType +// OutputObject // ================================================================================================== // // @@ -131,7 +131,7 @@ const StringFilter: $Utilities.SchemaDrivenDataMap.InputObject = { // // -const BattleRoyale: $Utilities.SchemaDrivenDataMap.OutputObject = { +const BattleRoyale: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { combatants: { // nt: CombatantMultiPokemon, <-- Assigned later to avoid potential circular dependency. @@ -144,7 +144,7 @@ const BattleRoyale: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const BattleTrainer: $Utilities.SchemaDrivenDataMap.OutputObject = { +const BattleTrainer: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { combatant1: { // nt: CombatantSinglePokemon, <-- Assigned later to avoid potential circular dependency. @@ -160,7 +160,7 @@ const BattleTrainer: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const BattleWild: $Utilities.SchemaDrivenDataMap.OutputObject = { +const BattleWild: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { date: {}, id: {}, @@ -177,7 +177,7 @@ const BattleWild: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const CombatantMultiPokemon: $Utilities.SchemaDrivenDataMap.OutputObject = { +const CombatantMultiPokemon: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { pokemons: { // nt: Pokemon, <-- Assigned later to avoid potential circular dependency. @@ -188,7 +188,7 @@ const CombatantMultiPokemon: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const CombatantSinglePokemon: $Utilities.SchemaDrivenDataMap.OutputObject = { +const CombatantSinglePokemon: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { pokemon: { // nt: Pokemon, <-- Assigned later to avoid potential circular dependency. @@ -199,7 +199,7 @@ const CombatantSinglePokemon: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const Patron: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Patron: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, money: {}, @@ -207,7 +207,7 @@ const Patron: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const Pokemon: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Pokemon: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { attack: {}, birthday: {}, @@ -222,7 +222,7 @@ const Pokemon: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const Trainer: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Trainer: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { class: {}, fans: { @@ -243,7 +243,7 @@ const Trainer: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLInterfaceType +// Interface // ================================================================================================== // // @@ -252,7 +252,7 @@ const Trainer: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const Being: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Being: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } @@ -263,7 +263,7 @@ const Being: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLUnionType +// Union // ================================================================================================== // // @@ -272,7 +272,7 @@ const Being: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const Battle: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Battle: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } @@ -283,7 +283,7 @@ const Battle: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLRootType +// Root // ================================================================================================== // // @@ -292,7 +292,7 @@ const Battle: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const Mutation: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Mutation: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { addPokemon: { a: { @@ -322,7 +322,7 @@ const Mutation: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const Query: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Query: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { battles: { // nt: Battle, <-- Assigned later to avoid potential circular dependency. @@ -423,7 +423,7 @@ Query.f[`trainers`]!.nt = Trainer // // -const $schemaDrivenDataMap: $Utilities.SchemaDrivenDataMap = { +const $schemaDrivenDataMap: $$Utilities.SchemaDrivenDataMap = { roots: { Mutation, Query, diff --git a/tests/_/schemas/pokemon/graffle/modules/Select.ts b/tests/_/schemas/pokemon/graffle/modules/Select.ts index a1f5a3f42..f8835b596 100644 --- a/tests/_/schemas/pokemon/graffle/modules/Select.ts +++ b/tests/_/schemas/pokemon/graffle/modules/Select.ts @@ -46,8 +46,8 @@ export namespace Select { 'Mutation' > export type Query<$SelectionSet extends SelectionSets.Query> = InferResult.Root<$SelectionSet, Schema, 'Query'> - // Object Types - // ------------ + // OutputObject Types + // ------------------ export type BattleRoyale<$SelectionSet extends SelectionSets.BattleRoyale> = InferResult.Object< $SelectionSet, Schema, diff --git a/tests/_/schemas/pokemon/graffle/modules/SelectionSets.ts b/tests/_/schemas/pokemon/graffle/modules/SelectionSets.ts index 8a808daf6..6af56c0a6 100644 --- a/tests/_/schemas/pokemon/graffle/modules/SelectionSets.ts +++ b/tests/_/schemas/pokemon/graffle/modules/SelectionSets.ts @@ -30,7 +30,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap // // // ================================================================================================== -// GraphQLObjectType Types +// Root // ================================================================================================== // // @@ -44,7 +44,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap // // // GRAPHQL SELECTION SET -// OBJECT +// ROOT // -------------------------------------------------------------------------------------------------- // Mutation // -------------------------------------------------------------------------------------------------- @@ -55,7 +55,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap export interface Mutation<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `addPokemon` field on the `Mutation` object. Its type is Object. + * Select the `addPokemon` field on the `Mutation` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ addPokemon?: Mutation.addPokemon<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -124,7 +124,7 @@ export namespace Mutation { // // // GRAPHQL SELECTION SET -// OBJECT +// ROOT // -------------------------------------------------------------------------------------------------- // Query // -------------------------------------------------------------------------------------------------- @@ -135,31 +135,31 @@ export namespace Mutation { export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `battles` field on the `Query` object. Its type is Union. + * Select the `battles` field on the `Query` object. Its type is `Battle` (a `Union` kind of type). */ battles?: Query.battles$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `beings` field on the `Query` object. Its type is Interface. + * Select the `beings` field on the `Query` object. Its type is `Being` (a `Interface` kind of type). */ beings?: Query.beings$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemon` field on the `Query` object. Its type is Object. + * Select the `pokemon` field on the `Query` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemon?: Query.pokemon$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemonByName` field on the `Query` object. Its type is Object. + * Select the `pokemonByName` field on the `Query` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemonByName?: Query.pokemonByName<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemons` field on the `Query` object. Its type is Object. + * Select the `pokemons` field on the `Query` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemons?: Query.pokemons$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainerByName` field on the `Query` object. Its type is Object. + * Select the `trainerByName` field on the `Query` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainerByName?: Query.trainerByName<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainers` field on the `Query` object. Its type is Object. + * Select the `trainers` field on the `Query` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainers?: Query.trainers$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -362,7 +362,7 @@ export namespace Query { // // // ================================================================================================== -// GraphQLEnumType Types +// Enum // ================================================================================================== // // @@ -397,7 +397,7 @@ export type TrainerClass = // // // ================================================================================================== -// GraphQLInputObjectType Types +// InputObject // ================================================================================================== // // @@ -428,102 +428,7 @@ export interface StringFilter<$Scalars extends $$Utilities.Schema.Scalar.ScalarM // // // ================================================================================================== -// GraphQLInterfaceType Types -// ================================================================================================== -// -// -// -// -// -// - -// Interface Type: Being -// -------------------------------------------------------------------------------------------------- - -export interface Being<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { - id?: Being.id<$Scalars> - name?: Being.name<$Scalars> - ___on_Patron?: Patron<$Scalars> - ___on_Pokemon?: Pokemon<$Scalars> - ___on_Trainer?: Trainer<$Scalars> - - /** - * Inline fragments for field groups. - * - * Generally a niche feature. This can be useful for example to apply an `@include` directive to a subset of the - * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. - * - * @see https://spec.graphql.org/draft/#sec-Inline-Fragments - */ - ___?: - | Being$FragmentInline<$Scalars> - | Being$FragmentInline<$Scalars>[] - - /** - * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, - * the name is one of the implementor type names, whichever is ultimately returned at runtime. - * - * @see https://graphql.org/learn/queries/#meta-fields - */ - __typename?: - | $Select.Indicator.NoArgsIndicator$Expanded - | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> -} - -export interface Being$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends Being<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields -{} - -export namespace Being { - export type id<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = - | $Select.Indicator.NoArgsIndicator - | id$SelectionSet<$Scalars> - - export interface id$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends $Select.Bases.Base - {} - - // --- expanded --- - - /** - * This is the "expanded" version of the `id` type. It is identical except for the fact - * that IDEs will display its contents (a union type) directly, rather than the name of this type. - * In some cases, this is a preferable DX, making the types easier to read for users. - */ - export type id$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< - | $Select.Indicator.NoArgsIndicator - | id$SelectionSet<$Scalars> - > - - export type name<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = - | $Select.Indicator.NoArgsIndicator - | name$SelectionSet<$Scalars> - - export interface name$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends $Select.Bases.Base - {} - - // --- expanded --- - - /** - * This is the "expanded" version of the `name` type. It is identical except for the fact - * that IDEs will display its contents (a union type) directly, rather than the name of this type. - * In some cases, this is a preferable DX, making the types easier to read for users. - */ - export type name$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< - | $Select.Indicator.NoArgsIndicator - | name$SelectionSet<$Scalars> - > -} - -// -// -// -// -// -// -// ================================================================================================== -// GraphQLObjectType Types +// OutputObject // ================================================================================================== // // @@ -537,7 +442,7 @@ export namespace Being { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // BattleRoyale // -------------------------------------------------------------------------------------------------- @@ -550,21 +455,21 @@ export interface BattleRoyale<$Scalars extends $$Utilities.Schema.Scalar.ScalarM extends $Select.Bases.ObjectLike { /** - * Select the `combatants` field on the `BattleRoyale` object. Its type is Object. + * Select the `combatants` field on the `BattleRoyale` object. Its type is `CombatantMultiPokemon` (a `OutputObject` kind of type). */ combatants?: | BattleRoyale.combatants$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `date` field on the `BattleRoyale` object. Its type is `Float` (a `Scalar`). + * Select the `date` field on the `BattleRoyale` object. Its type is `Float` (a `ScalarStandard` kind of type). */ date?: BattleRoyale.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `BattleRoyale` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `BattleRoyale` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: BattleRoyale.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `winner` field on the `BattleRoyale` object. Its type is Object. + * Select the `winner` field on the `BattleRoyale` object. Its type is `Trainer` (a `OutputObject` kind of type). */ winner?: BattleRoyale.winner$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -683,7 +588,7 @@ export namespace BattleRoyale { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // BattleTrainer // -------------------------------------------------------------------------------------------------- @@ -696,27 +601,27 @@ export interface BattleTrainer<$Scalars extends $$Utilities.Schema.Scalar.Scalar extends $Select.Bases.ObjectLike { /** - * Select the `combatant1` field on the `BattleTrainer` object. Its type is Object. + * Select the `combatant1` field on the `BattleTrainer` object. Its type is `CombatantSinglePokemon` (a `OutputObject` kind of type). */ combatant1?: | BattleTrainer.combatant1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `combatant2` field on the `BattleTrainer` object. Its type is Object. + * Select the `combatant2` field on the `BattleTrainer` object. Its type is `CombatantSinglePokemon` (a `OutputObject` kind of type). */ combatant2?: | BattleTrainer.combatant2$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `date` field on the `BattleTrainer` object. Its type is `Float` (a `Scalar`). + * Select the `date` field on the `BattleTrainer` object. Its type is `Float` (a `ScalarStandard` kind of type). */ date?: BattleTrainer.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `BattleTrainer` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `BattleTrainer` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: BattleTrainer.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `winner` field on the `BattleTrainer` object. Its type is Object. + * Select the `winner` field on the `BattleTrainer` object. Its type is `Trainer` (a `OutputObject` kind of type). */ winner?: BattleTrainer.winner$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -854,7 +759,7 @@ export namespace BattleTrainer { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // BattleWild // -------------------------------------------------------------------------------------------------- @@ -867,27 +772,27 @@ export interface BattleWild<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap extends $Select.Bases.ObjectLike { /** - * Select the `date` field on the `BattleWild` object. Its type is `Float` (a `Scalar`). + * Select the `date` field on the `BattleWild` object. Its type is `Float` (a `ScalarStandard` kind of type). */ date?: BattleWild.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `BattleWild` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `BattleWild` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: BattleWild.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemon` field on the `BattleWild` object. Its type is Object. + * Select the `pokemon` field on the `BattleWild` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemon?: BattleWild.pokemon$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `result` field on the `BattleWild` object. Its type is Enum. + * Select the `result` field on the `BattleWild` object. Its type is `BattleWildResult` (a `Enum` kind of type). */ result?: BattleWild.result$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainer` field on the `BattleWild` object. Its type is Object. + * Select the `trainer` field on the `BattleWild` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainer?: BattleWild.trainer$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `wildPokemons` field on the `BattleWild` object. Its type is Object. + * Select the `wildPokemons` field on the `BattleWild` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ wildPokemons?: | BattleWild.wildPokemons$Expanded<$Scalars> @@ -1051,7 +956,7 @@ export namespace BattleWild { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // CombatantMultiPokemon // -------------------------------------------------------------------------------------------------- @@ -1064,13 +969,13 @@ export interface CombatantMultiPokemon<$Scalars extends $$Utilities.Schema.Scala extends $Select.Bases.ObjectLike { /** - * Select the `pokemons` field on the `CombatantMultiPokemon` object. Its type is Object. + * Select the `pokemons` field on the `CombatantMultiPokemon` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemons?: | CombatantMultiPokemon.pokemons$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainer` field on the `CombatantMultiPokemon` object. Its type is Object. + * Select the `trainer` field on the `CombatantMultiPokemon` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainer?: | CombatantMultiPokemon.trainer$Expanded<$Scalars> @@ -1147,7 +1052,7 @@ export namespace CombatantMultiPokemon { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // CombatantSinglePokemon // -------------------------------------------------------------------------------------------------- @@ -1160,13 +1065,13 @@ export interface CombatantSinglePokemon<$Scalars extends $$Utilities.Schema.Scal extends $Select.Bases.ObjectLike { /** - * Select the `pokemon` field on the `CombatantSinglePokemon` object. Its type is Object. + * Select the `pokemon` field on the `CombatantSinglePokemon` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemon?: | CombatantSinglePokemon.pokemon$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainer` field on the `CombatantSinglePokemon` object. Its type is Object. + * Select the `trainer` field on the `CombatantSinglePokemon` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainer?: | CombatantSinglePokemon.trainer$Expanded<$Scalars> @@ -1243,7 +1148,7 @@ export namespace CombatantSinglePokemon { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Patron // -------------------------------------------------------------------------------------------------- @@ -1254,15 +1159,15 @@ export namespace CombatantSinglePokemon { export interface Patron<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `Patron` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Patron` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Patron.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `money` field on the `Patron` object. Its type is `Int` (a `Scalar`). + * Select the `money` field on the `Patron` object. Its type is `Int` (a `ScalarStandard` kind of type). */ money?: Patron.money$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Patron` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Patron` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Patron.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1365,7 +1270,7 @@ export namespace Patron { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Pokemon // -------------------------------------------------------------------------------------------------- @@ -1376,35 +1281,35 @@ export namespace Patron { export interface Pokemon<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `attack` field on the `Pokemon` object. Its type is `Int` (a `Scalar`). + * Select the `attack` field on the `Pokemon` object. Its type is `Int` (a `ScalarStandard` kind of type). */ attack?: Pokemon.attack$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `birthday` field on the `Pokemon` object. Its type is `Int` (a `Scalar`). + * Select the `birthday` field on the `Pokemon` object. Its type is `Int` (a `ScalarStandard` kind of type). */ birthday?: Pokemon.birthday$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `defense` field on the `Pokemon` object. Its type is `Int` (a `Scalar`). + * Select the `defense` field on the `Pokemon` object. Its type is `Int` (a `ScalarStandard` kind of type). */ defense?: Pokemon.defense$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `hp` field on the `Pokemon` object. Its type is `Int` (a `Scalar`). + * Select the `hp` field on the `Pokemon` object. Its type is `Int` (a `ScalarStandard` kind of type). */ hp?: Pokemon.hp$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Pokemon` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Pokemon` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Pokemon.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Pokemon` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Pokemon` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Pokemon.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainer` field on the `Pokemon` object. Its type is Object. + * Select the `trainer` field on the `Pokemon` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainer?: Pokemon.trainer$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `type` field on the `Pokemon` object. Its type is Enum. + * Select the `type` field on the `Pokemon` object. Its type is `PokemonType` (a `Enum` kind of type). */ type?: Pokemon.type$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1614,7 +1519,7 @@ export namespace Pokemon { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Trainer // -------------------------------------------------------------------------------------------------- @@ -1625,23 +1530,23 @@ export namespace Pokemon { export interface Trainer<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `class` field on the `Trainer` object. Its type is Enum. + * Select the `class` field on the `Trainer` object. Its type is `TrainerClass` (a `Enum` kind of type). */ class?: Trainer.$class$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `fans` field on the `Trainer` object. Its type is Object. + * Select the `fans` field on the `Trainer` object. Its type is `Patron` (a `OutputObject` kind of type). */ fans?: Trainer.fans$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Trainer` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Trainer` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Trainer.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Trainer` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Trainer` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Trainer.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemon` field on the `Trainer` object. Its type is Object. + * Select the `pokemon` field on the `Trainer` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemon?: Trainer.pokemon$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1784,7 +1689,7 @@ export namespace Trainer { // // // ================================================================================================== -// GraphQLUnionType Types +// Union // ================================================================================================== // // @@ -1824,6 +1729,101 @@ export interface Battle$FragmentInline<$Scalars extends $$Utilities.Schema.Scala extends Battle<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} +// +// +// +// +// +// +// ================================================================================================== +// Interface +// ================================================================================================== +// +// +// +// +// +// + +// Interface Type: Being +// -------------------------------------------------------------------------------------------------- + +export interface Being<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { + id?: Being.id<$Scalars> + name?: Being.name<$Scalars> + ___on_Patron?: Patron<$Scalars> + ___on_Pokemon?: Pokemon<$Scalars> + ___on_Trainer?: Trainer<$Scalars> + + /** + * Inline fragments for field groups. + * + * Generally a niche feature. This can be useful for example to apply an `@include` directive to a subset of the + * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. + * + * @see https://spec.graphql.org/draft/#sec-Inline-Fragments + */ + ___?: + | Being$FragmentInline<$Scalars> + | Being$FragmentInline<$Scalars>[] + + /** + * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, + * the name is one of the implementor type names, whichever is ultimately returned at runtime. + * + * @see https://graphql.org/learn/queries/#meta-fields + */ + __typename?: + | $Select.Indicator.NoArgsIndicator$Expanded + | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> +} + +export interface Being$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends Being<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields +{} + +export namespace Being { + export type id<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = + | $Select.Indicator.NoArgsIndicator + | id$SelectionSet<$Scalars> + + export interface id$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends $Select.Bases.Base + {} + + // --- expanded --- + + /** + * This is the "expanded" version of the `id` type. It is identical except for the fact + * that IDEs will display its contents (a union type) directly, rather than the name of this type. + * In some cases, this is a preferable DX, making the types easier to read for users. + */ + export type id$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + | $Select.Indicator.NoArgsIndicator + | id$SelectionSet<$Scalars> + > + + export type name<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = + | $Select.Indicator.NoArgsIndicator + | name$SelectionSet<$Scalars> + + export interface name$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends $Select.Bases.Base + {} + + // --- expanded --- + + /** + * This is the "expanded" version of the `name` type. It is identical except for the fact + * that IDEs will display its contents (a union type) directly, rather than the name of this type. + * In some cases, this is a preferable DX, making the types easier to read for users. + */ + export type name$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + | $Select.Indicator.NoArgsIndicator + | name$SelectionSet<$Scalars> + > +} + /** * [1] These definitions serve to allow field selection interfaces to extend their respective object type without * name clashing between the field name and the object name. @@ -1840,7 +1840,6 @@ export namespace $NamedTypes { export type $DateFilter<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = DateFilter<$Scalars> export type $PokemonFilter<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = PokemonFilter<$Scalars> export type $StringFilter<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = StringFilter<$Scalars> - export type $Being<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Being<$Scalars> export type $BattleRoyale<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = BattleRoyale<$Scalars> export type $BattleTrainer<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = BattleTrainer<$Scalars> export type $BattleWild<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = BattleWild<$Scalars> @@ -1853,4 +1852,5 @@ export namespace $NamedTypes { export type $Pokemon<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Pokemon<$Scalars> export type $Trainer<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Trainer<$Scalars> export type $Battle<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Battle<$Scalars> + export type $Being<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Being<$Scalars> } diff --git a/tests/_/schemas/query-only/graffle/modules/MethodsSelect.ts b/tests/_/schemas/query-only/graffle/modules/MethodsSelect.ts index 02343247d..150d1f4c3 100644 --- a/tests/_/schemas/query-only/graffle/modules/MethodsSelect.ts +++ b/tests/_/schemas/query-only/graffle/modules/MethodsSelect.ts @@ -40,3 +40,51 @@ export interface $MethodsSelect { export interface Query { <$SelectionSet>(selectionSet: $Utilities.Exact<$SelectionSet, $SelectionSets.Query>): $SelectionSet } + +// +// +// +// +// +// +// ================================================================================================== +// OutputObject +// ================================================================================================== +// +// +// +// +// +// + +// +// +// +// +// +// +// ================================================================================================== +// Union +// ================================================================================================== +// +// +// +// +// +// + +// +// +// +// +// +// +// ================================================================================================== +// Interface +// ================================================================================================== +// +// +// +// +// +// diff --git a/tests/_/schemas/query-only/graffle/modules/Schema.ts b/tests/_/schemas/query-only/graffle/modules/Schema.ts index 2cfff9e4c..6383aa11f 100644 --- a/tests/_/schemas/query-only/graffle/modules/Schema.ts +++ b/tests/_/schemas/query-only/graffle/modules/Schema.ts @@ -21,8 +21,8 @@ export namespace Schema { // export type Query = $.StandardTypes.Query<{ - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - idNonNull: $.Field<'idNonNull', $Scalar.ID, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + idNonNull: $.OutputField<'idNonNull', $Scalar.ID, null> }> // @@ -32,7 +32,7 @@ export namespace Schema { // // // ================================================================================================== - // Enum + // OutputObject // ================================================================================================== // // @@ -86,7 +86,7 @@ export namespace Schema { // // // ================================================================================================== - // Object + // Union // ================================================================================================== // // @@ -104,7 +104,7 @@ export namespace Schema { // // // ================================================================================================== - // Union + // Enum // ================================================================================================== // // diff --git a/tests/_/schemas/query-only/graffle/modules/SchemaDrivenDataMap.ts b/tests/_/schemas/query-only/graffle/modules/SchemaDrivenDataMap.ts index e4677d2d6..6beade569 100644 --- a/tests/_/schemas/query-only/graffle/modules/SchemaDrivenDataMap.ts +++ b/tests/_/schemas/query-only/graffle/modules/SchemaDrivenDataMap.ts @@ -1,4 +1,4 @@ -import type * as $Utilities from '../../../../../../src/entrypoints/utilities-for-generated.js' +import type * as $$Utilities from '../../../../../../src/entrypoints/utilities-for-generated.js' import * as $Scalar from './Scalar.js' // // @@ -7,7 +7,7 @@ import * as $Scalar from './Scalar.js' // // // ================================================================================================== -// GraphQLScalarTypeStandard +// ScalarStandard // ================================================================================================== // // @@ -33,7 +33,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLScalarTypeCustom +// ScalarCustom // ================================================================================================== // // @@ -42,7 +42,7 @@ const String = $Scalar.String // // -// None of your GraphQLScalarTypeCustoms have custom scalars. +// None of your ScalarCustoms have custom scalars. // // @@ -51,7 +51,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLEnumType +// Enum // ================================================================================================== // // @@ -60,7 +60,7 @@ const String = $Scalar.String // // -// None of your GraphQLEnumTypes have custom scalars. +// None of your Enums have custom scalars. // // @@ -69,7 +69,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLInputObjectType +// InputObject // ================================================================================================== // // @@ -78,7 +78,7 @@ const String = $Scalar.String // // -// None of your GraphQLInputObjectTypes have custom scalars. +// None of your InputObjects have custom scalars. // // @@ -87,7 +87,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLObjectType +// OutputObject // ================================================================================================== // // @@ -96,7 +96,7 @@ const String = $Scalar.String // // -// None of your GraphQLObjectTypes have custom scalars. +// None of your OutputObjects have custom scalars. // // @@ -105,7 +105,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLInterfaceType +// Interface // ================================================================================================== // // @@ -114,7 +114,7 @@ const String = $Scalar.String // // -// None of your GraphQLInterfaceTypes have custom scalars. +// None of your Interfaces have custom scalars. // // @@ -123,7 +123,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLUnionType +// Union // ================================================================================================== // // @@ -132,7 +132,7 @@ const String = $Scalar.String // // -// None of your GraphQLUnionTypes have custom scalars. +// None of your Unions have custom scalars. // // @@ -141,7 +141,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLRootType +// Root // ================================================================================================== // // @@ -150,7 +150,7 @@ const String = $Scalar.String // // -const Query: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Query: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, idNonNull: {}, @@ -192,7 +192,7 @@ const Query: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const $schemaDrivenDataMap: $Utilities.SchemaDrivenDataMap = { +const $schemaDrivenDataMap: $$Utilities.SchemaDrivenDataMap = { roots: { Query, }, diff --git a/tests/_/schemas/query-only/graffle/modules/Select.ts b/tests/_/schemas/query-only/graffle/modules/Select.ts index 4a011cb7b..879b049fa 100644 --- a/tests/_/schemas/query-only/graffle/modules/Select.ts +++ b/tests/_/schemas/query-only/graffle/modules/Select.ts @@ -41,8 +41,8 @@ export namespace Select { // Root Types // ---------- export type Query<$SelectionSet extends SelectionSets.Query> = InferResult.Root<$SelectionSet, Schema, 'Query'> - // Object Types - // ------------ + // OutputObject Types + // ------------------ // -- None -- diff --git a/tests/_/schemas/query-only/graffle/modules/SelectionSets.ts b/tests/_/schemas/query-only/graffle/modules/SelectionSets.ts index b72d94573..4d82b987b 100644 --- a/tests/_/schemas/query-only/graffle/modules/SelectionSets.ts +++ b/tests/_/schemas/query-only/graffle/modules/SelectionSets.ts @@ -29,7 +29,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap // // // ================================================================================================== -// GraphQLObjectType Types +// Root // ================================================================================================== // // @@ -43,7 +43,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap // // // GRAPHQL SELECTION SET -// OBJECT +// ROOT // -------------------------------------------------------------------------------------------------- // Query // -------------------------------------------------------------------------------------------------- @@ -54,11 +54,11 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `id` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Query.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `idNonNull` field on the `Query` object. Its type is `ID` (a `Scalar`). + * Select the `idNonNull` field on the `Query` object. Its type is `ID` (a `ScalarStandard` kind of type). */ idNonNull?: Query.idNonNull$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> diff --git a/website/graffle/modules/MethodsSelect.ts b/website/graffle/modules/MethodsSelect.ts index d58ceccba..35ba5869e 100644 --- a/website/graffle/modules/MethodsSelect.ts +++ b/website/graffle/modules/MethodsSelect.ts @@ -53,7 +53,7 @@ export interface Query { // // // ================================================================================================== -// Object +// OutputObject // ================================================================================================== // // @@ -81,3 +81,35 @@ export interface State { export interface Subdivision { <$SelectionSet>(selectionSet: $Utilities.Exact<$SelectionSet, $SelectionSets.Subdivision>): $SelectionSet } + +// +// +// +// +// +// +// ================================================================================================== +// Union +// ================================================================================================== +// +// +// +// +// +// + +// +// +// +// +// +// +// ================================================================================================== +// Interface +// ================================================================================================== +// +// +// +// +// +// diff --git a/website/graffle/modules/Schema.ts b/website/graffle/modules/Schema.ts index d543a9b0b..4ca689c19 100644 --- a/website/graffle/modules/Schema.ts +++ b/website/graffle/modules/Schema.ts @@ -20,43 +20,43 @@ export namespace Schema { // // - export type Query = $.ObjectQuery<{ - continent: $.Field< + export type Query = $.StandardTypes.Query<{ + continent: $.OutputField< 'continent', $.Nullable, $.Args<{ code: $.InputField<$Scalar.ID> }, false> > - continents: $.Field< + continents: $.OutputField< 'continents', $.List, $.Args<{ filter: $.InputField<$.Nullable> }, true> > - countries: $.Field< + countries: $.OutputField< 'countries', $.List, $.Args<{ filter: $.InputField<$.Nullable> }, true> > - country: $.Field< + country: $.OutputField< 'country', $.Nullable, $.Args<{ code: $.InputField<$Scalar.ID> }, false> > - language: $.Field< + language: $.OutputField< 'language', $.Nullable, $.Args<{ code: $.InputField<$Scalar.ID> }, false> > - languages: $.Field< + languages: $.OutputField< 'languages', $.List, $.Args<{ @@ -72,7 +72,7 @@ export namespace Schema { // // // ================================================================================================== - // Enum + // OutputObject // ================================================================================================== // // @@ -81,7 +81,54 @@ export namespace Schema { // // - // -- no types -- + export type Continent = $.OutputObject<'Continent', { + code: $.OutputField<'code', $Scalar.ID, null> + countries: $.OutputField<'countries', $.List, null> + name: $.OutputField<'name', $Scalar.String, null> + }> + + export type Country = $.OutputObject<'Country', { + awsRegion: $.OutputField<'awsRegion', $Scalar.String, null> + capital: $.OutputField<'capital', $.Nullable<$Scalar.String>, null> + code: $.OutputField<'code', $Scalar.ID, null> + continent: $.OutputField<'continent', Continent, null> + currencies: $.OutputField<'currencies', $.List<$Scalar.String>, null> + currency: $.OutputField<'currency', $.Nullable<$Scalar.String>, null> + emoji: $.OutputField<'emoji', $Scalar.String, null> + emojiU: $.OutputField<'emojiU', $Scalar.String, null> + languages: $.OutputField<'languages', $.List, null> + name: $.OutputField< + 'name', + $Scalar.String, + $.Args<{ + lang: $.InputField<$.Nullable<$Scalar.String>> + }, true> + > + native: $.OutputField<'native', $Scalar.String, null> + phone: $.OutputField<'phone', $Scalar.String, null> + phones: $.OutputField<'phones', $.List<$Scalar.String>, null> + states: $.OutputField<'states', $.List, null> + subdivisions: $.OutputField<'subdivisions', $.List, null> + }> + + export type Language = $.OutputObject<'Language', { + code: $.OutputField<'code', $Scalar.ID, null> + name: $.OutputField<'name', $Scalar.String, null> + native: $.OutputField<'native', $Scalar.String, null> + rtl: $.OutputField<'rtl', $Scalar.Boolean, null> + }> + + export type State = $.OutputObject<'State', { + code: $.OutputField<'code', $.Nullable<$Scalar.String>, null> + country: $.OutputField<'country', Country, null> + name: $.OutputField<'name', $Scalar.String, null> + }> + + export type Subdivision = $.OutputObject<'Subdivision', { + code: $.OutputField<'code', $Scalar.ID, null> + emoji: $.OutputField<'emoji', $.Nullable<$Scalar.String>, null> + name: $.OutputField<'name', $Scalar.String, null> + }> // // @@ -147,7 +194,7 @@ export namespace Schema { // // // ================================================================================================== - // Object + // Union // ================================================================================================== // // @@ -156,54 +203,7 @@ export namespace Schema { // // - export type Continent = $.OutputObject<'Continent', { - code: $.Field<'code', $Scalar.ID, null> - countries: $.Field<'countries', $.List, null> - name: $.Field<'name', $Scalar.String, null> - }> - - export type Country = $.OutputObject<'Country', { - awsRegion: $.Field<'awsRegion', $Scalar.String, null> - capital: $.Field<'capital', $.Nullable<$Scalar.String>, null> - code: $.Field<'code', $Scalar.ID, null> - continent: $.Field<'continent', Continent, null> - currencies: $.Field<'currencies', $.List<$Scalar.String>, null> - currency: $.Field<'currency', $.Nullable<$Scalar.String>, null> - emoji: $.Field<'emoji', $Scalar.String, null> - emojiU: $.Field<'emojiU', $Scalar.String, null> - languages: $.Field<'languages', $.List, null> - name: $.Field< - 'name', - $Scalar.String, - $.Args<{ - lang: $.InputField<$.Nullable<$Scalar.String>> - }, true> - > - native: $.Field<'native', $Scalar.String, null> - phone: $.Field<'phone', $Scalar.String, null> - phones: $.Field<'phones', $.List<$Scalar.String>, null> - states: $.Field<'states', $.List, null> - subdivisions: $.Field<'subdivisions', $.List, null> - }> - - export type Language = $.OutputObject<'Language', { - code: $.Field<'code', $Scalar.ID, null> - name: $.Field<'name', $Scalar.String, null> - native: $.Field<'native', $Scalar.String, null> - rtl: $.Field<'rtl', $Scalar.Boolean, null> - }> - - export type State = $.OutputObject<'State', { - code: $.Field<'code', $.Nullable<$Scalar.String>, null> - country: $.Field<'country', Country, null> - name: $.Field<'name', $Scalar.String, null> - }> - - export type Subdivision = $.OutputObject<'Subdivision', { - code: $.Field<'code', $Scalar.ID, null> - emoji: $.Field<'emoji', $.Nullable<$Scalar.String>, null> - name: $.Field<'name', $Scalar.String, null> - }> + // -- no types -- // // @@ -212,7 +212,7 @@ export namespace Schema { // // // ================================================================================================== - // Union + // Enum // ================================================================================================== // // diff --git a/website/graffle/modules/SchemaDrivenDataMap.ts b/website/graffle/modules/SchemaDrivenDataMap.ts index 510e94d9c..3596deb27 100644 --- a/website/graffle/modules/SchemaDrivenDataMap.ts +++ b/website/graffle/modules/SchemaDrivenDataMap.ts @@ -1,4 +1,4 @@ -import type * as $Utilities from 'graffle/utilities-for-generated' +import type * as $$Utilities from 'graffle/utilities-for-generated' import * as $Scalar from './Scalar.js' // // @@ -7,7 +7,7 @@ import * as $Scalar from './Scalar.js' // // // ================================================================================================== -// GraphQLScalarTypeStandard +// ScalarStandard // ================================================================================================== // // @@ -33,7 +33,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLScalarTypeCustom +// ScalarCustom // ================================================================================================== // // @@ -42,7 +42,7 @@ const String = $Scalar.String // // -// None of your GraphQLScalarTypeCustoms have custom scalars. +// None of your ScalarCustoms have custom scalars. // // @@ -51,7 +51,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLEnumType +// Enum // ================================================================================================== // // @@ -60,7 +60,7 @@ const String = $Scalar.String // // -// None of your GraphQLEnumTypes have custom scalars. +// None of your Enums have custom scalars. // // @@ -69,7 +69,7 @@ const String = $Scalar.String // // // ================================================================================================== -// GraphQLInputObjectType +// InputObject // ================================================================================================== // // @@ -78,14 +78,14 @@ const String = $Scalar.String // // -const ContinentFilterInput: $Utilities.SchemaDrivenDataMap.InputObject = { +const ContinentFilterInput: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'ContinentFilterInput', f: { code: {}, }, } -const CountryFilterInput: $Utilities.SchemaDrivenDataMap.InputObject = { +const CountryFilterInput: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'CountryFilterInput', f: { code: {}, @@ -95,14 +95,14 @@ const CountryFilterInput: $Utilities.SchemaDrivenDataMap.InputObject = { }, } -const LanguageFilterInput: $Utilities.SchemaDrivenDataMap.InputObject = { +const LanguageFilterInput: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'LanguageFilterInput', f: { code: {}, }, } -const StringQueryOperatorInput: $Utilities.SchemaDrivenDataMap.InputObject = { +const StringQueryOperatorInput: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'StringQueryOperatorInput', f: { eq: {}, @@ -120,7 +120,7 @@ const StringQueryOperatorInput: $Utilities.SchemaDrivenDataMap.InputObject = { // // // ================================================================================================== -// GraphQLObjectType +// OutputObject // ================================================================================================== // // @@ -129,7 +129,7 @@ const StringQueryOperatorInput: $Utilities.SchemaDrivenDataMap.InputObject = { // // -const Continent: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Continent: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { code: {}, countries: { @@ -139,7 +139,7 @@ const Continent: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const Country: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Country: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { awsRegion: {}, capital: {}, @@ -174,7 +174,7 @@ const Country: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const Language: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Language: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { code: {}, name: {}, @@ -183,7 +183,7 @@ const Language: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const State: $Utilities.SchemaDrivenDataMap.OutputObject = { +const State: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { code: {}, country: { @@ -193,7 +193,7 @@ const State: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const Subdivision: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Subdivision: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { code: {}, emoji: {}, @@ -208,7 +208,7 @@ const Subdivision: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLInterfaceType +// Interface // ================================================================================================== // // @@ -217,7 +217,7 @@ const Subdivision: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -// None of your GraphQLInterfaceTypes have custom scalars. +// None of your Interfaces have custom scalars. // // @@ -226,7 +226,7 @@ const Subdivision: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLUnionType +// Union // ================================================================================================== // // @@ -235,7 +235,7 @@ const Subdivision: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -// None of your GraphQLUnionTypes have custom scalars. +// None of your Unions have custom scalars. // // @@ -244,7 +244,7 @@ const Subdivision: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLRootType +// Root // ================================================================================================== // // @@ -253,7 +253,7 @@ const Subdivision: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const Query: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Query: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { continent: { a: { @@ -358,7 +358,7 @@ Query.f[`languages`]!.nt = Language // // -const $schemaDrivenDataMap: $Utilities.SchemaDrivenDataMap = { +const $schemaDrivenDataMap: $$Utilities.SchemaDrivenDataMap = { roots: { Query, }, diff --git a/website/graffle/modules/Select.ts b/website/graffle/modules/Select.ts index d0f35e51f..5ea001514 100644 --- a/website/graffle/modules/Select.ts +++ b/website/graffle/modules/Select.ts @@ -41,8 +41,8 @@ export namespace Select { // Root Types // ---------- export type Query<$SelectionSet extends SelectionSets.Query> = InferResult.Root<$SelectionSet, Schema, 'Query'> - // Object Types - // ------------ + // OutputObject Types + // ------------------ export type Continent<$SelectionSet extends SelectionSets.Continent> = InferResult.Object< $SelectionSet, Schema, diff --git a/website/graffle/modules/SelectionSets.ts b/website/graffle/modules/SelectionSets.ts index af553c68e..0e9dd9e19 100644 --- a/website/graffle/modules/SelectionSets.ts +++ b/website/graffle/modules/SelectionSets.ts @@ -29,7 +29,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap // // // ================================================================================================== -// GraphQLObjectType Types +// Root // ================================================================================================== // // @@ -43,7 +43,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap // // // GRAPHQL SELECTION SET -// OBJECT +// ROOT // -------------------------------------------------------------------------------------------------- // Query // -------------------------------------------------------------------------------------------------- @@ -54,27 +54,27 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `continent` field on the `Query` object. Its type is Object. + * Select the `continent` field on the `Query` object. Its type is `Continent` (a `OutputObject` kind of type). */ continent?: Query.continent<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `continents` field on the `Query` object. Its type is Object. + * Select the `continents` field on the `Query` object. Its type is `Continent` (a `OutputObject` kind of type). */ continents?: Query.continents$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `countries` field on the `Query` object. Its type is Object. + * Select the `countries` field on the `Query` object. Its type is `Country` (a `OutputObject` kind of type). */ countries?: Query.countries$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `country` field on the `Query` object. Its type is Object. + * Select the `country` field on the `Query` object. Its type is `Country` (a `OutputObject` kind of type). */ country?: Query.country<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `language` field on the `Query` object. Its type is Object. + * Select the `language` field on the `Query` object. Its type is `Language` (a `OutputObject` kind of type). */ language?: Query.language<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `languages` field on the `Query` object. Its type is Object. + * Select the `languages` field on the `Query` object. Its type is `Language` (a `OutputObject` kind of type). */ languages?: Query.languages$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -281,7 +281,7 @@ export namespace Query { // // // ================================================================================================== -// GraphQLInputObjectType Types +// InputObject // ================================================================================================== // // @@ -320,7 +320,7 @@ export interface StringQueryOperatorInput<$Scalars extends $$Utilities.Schema.Sc // // // ================================================================================================== -// GraphQLObjectType Types +// OutputObject // ================================================================================================== // // @@ -334,7 +334,7 @@ export interface StringQueryOperatorInput<$Scalars extends $$Utilities.Schema.Sc // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Continent // -------------------------------------------------------------------------------------------------- @@ -345,15 +345,15 @@ export interface StringQueryOperatorInput<$Scalars extends $$Utilities.Schema.Sc export interface Continent<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `code` field on the `Continent` object. Its type is `ID` (a `Scalar`). + * Select the `code` field on the `Continent` object. Its type is `ID` (a `ScalarStandard` kind of type). */ code?: Continent.code$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `countries` field on the `Continent` object. Its type is Object. + * Select the `countries` field on the `Continent` object. Its type is `Country` (a `OutputObject` kind of type). */ countries?: Continent.countries$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Continent` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Continent` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Continent.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -453,7 +453,7 @@ export namespace Continent { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Country // -------------------------------------------------------------------------------------------------- @@ -464,63 +464,63 @@ export namespace Continent { export interface Country<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `awsRegion` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `awsRegion` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ awsRegion?: Country.awsRegion$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `capital` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `capital` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ capital?: Country.capital$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `code` field on the `Country` object. Its type is `ID` (a `Scalar`). + * Select the `code` field on the `Country` object. Its type is `ID` (a `ScalarStandard` kind of type). */ code?: Country.code$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `continent` field on the `Country` object. Its type is Object. + * Select the `continent` field on the `Country` object. Its type is `Continent` (a `OutputObject` kind of type). */ continent?: Country.continent$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `currencies` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `currencies` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ currencies?: Country.currencies$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `currency` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `currency` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ currency?: Country.currency$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `emoji` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `emoji` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ emoji?: Country.emoji$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `emojiU` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `emojiU` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ emojiU?: Country.emojiU$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `languages` field on the `Country` object. Its type is Object. + * Select the `languages` field on the `Country` object. Its type is `Language` (a `OutputObject` kind of type). */ languages?: Country.languages$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Country.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `native` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `native` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ native?: Country.native$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `phone` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `phone` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ phone?: Country.phone$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `phones` field on the `Country` object. Its type is `String` (a `Scalar`). + * Select the `phones` field on the `Country` object. Its type is `String` (a `ScalarStandard` kind of type). */ phones?: Country.phones$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `states` field on the `Country` object. Its type is Object. + * Select the `states` field on the `Country` object. Its type is `State` (a `OutputObject` kind of type). */ states?: Country.states$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `subdivisions` field on the `Country` object. Its type is Object. + * Select the `subdivisions` field on the `Country` object. Its type is `Subdivision` (a `OutputObject` kind of type). */ subdivisions?: | Country.subdivisions$Expanded<$Scalars> @@ -888,7 +888,7 @@ export namespace Country { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Language // -------------------------------------------------------------------------------------------------- @@ -899,19 +899,19 @@ export namespace Country { export interface Language<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `code` field on the `Language` object. Its type is `ID` (a `Scalar`). + * Select the `code` field on the `Language` object. Its type is `ID` (a `ScalarStandard` kind of type). */ code?: Language.code$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Language` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Language` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Language.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `native` field on the `Language` object. Its type is `String` (a `Scalar`). + * Select the `native` field on the `Language` object. Its type is `String` (a `ScalarStandard` kind of type). */ native?: Language.native$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `rtl` field on the `Language` object. Its type is `Boolean` (a `Scalar`). + * Select the `rtl` field on the `Language` object. Its type is `Boolean` (a `ScalarStandard` kind of type). */ rtl?: Language.rtl$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1036,7 +1036,7 @@ export namespace Language { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // State // -------------------------------------------------------------------------------------------------- @@ -1047,15 +1047,15 @@ export namespace Language { export interface State<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `code` field on the `State` object. Its type is `String` (a `Scalar`). + * Select the `code` field on the `State` object. Its type is `String` (a `ScalarStandard` kind of type). */ code?: State.code$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `country` field on the `State` object. Its type is Object. + * Select the `country` field on the `State` object. Its type is `Country` (a `OutputObject` kind of type). */ country?: State.country$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `State` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `State` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: State.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1155,7 +1155,7 @@ export namespace State { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Subdivision // -------------------------------------------------------------------------------------------------- @@ -1168,15 +1168,15 @@ export interface Subdivision<$Scalars extends $$Utilities.Schema.Scalar.ScalarMa extends $Select.Bases.ObjectLike { /** - * Select the `code` field on the `Subdivision` object. Its type is `ID` (a `Scalar`). + * Select the `code` field on the `Subdivision` object. Its type is `ID` (a `ScalarStandard` kind of type). */ code?: Subdivision.code$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `emoji` field on the `Subdivision` object. Its type is `String` (a `Scalar`). + * Select the `emoji` field on the `Subdivision` object. Its type is `String` (a `ScalarStandard` kind of type). */ emoji?: Subdivision.emoji$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Subdivision` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Subdivision` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Subdivision.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> diff --git a/website/pokemon/modules/MethodsSelect.ts b/website/pokemon/modules/MethodsSelect.ts index 304caea05..cb3e13b7d 100644 --- a/website/pokemon/modules/MethodsSelect.ts +++ b/website/pokemon/modules/MethodsSelect.ts @@ -63,7 +63,7 @@ export interface Query { // // // ================================================================================================== -// Object +// OutputObject // ================================================================================================== // // diff --git a/website/pokemon/modules/Schema.ts b/website/pokemon/modules/Schema.ts index cb950cfa1..7cfa353b0 100644 --- a/website/pokemon/modules/Schema.ts +++ b/website/pokemon/modules/Schema.ts @@ -20,8 +20,8 @@ export namespace Schema { // // - export type Mutation = $.ObjectMutation<{ - addPokemon: $.Field< + export type Mutation = $.StandardTypes.Mutation<{ + addPokemon: $.OutputField< 'addPokemon', $.Nullable, $.Args<{ @@ -34,32 +34,32 @@ export namespace Schema { > }> - export type Query = $.ObjectQuery<{ - battles: $.Field<'battles', $.List, null> - beings: $.Field<'beings', $.List, null> - pokemon: $.Field<'pokemon', $.Nullable<$.List>, null> - pokemonByName: $.Field< + export type Query = $.StandardTypes.Query<{ + battles: $.OutputField<'battles', $.List, null> + beings: $.OutputField<'beings', $.List, null> + pokemon: $.OutputField<'pokemon', $.Nullable<$.List>, null> + pokemonByName: $.OutputField< 'pokemonByName', $.Nullable<$.List>, $.Args<{ name: $.InputField<$Scalar.String> }, false> > - pokemons: $.Field< + pokemons: $.OutputField< 'pokemons', $.Nullable<$.List>, $.Args<{ filter: $.InputField<$.Nullable> }, true> > - trainerByName: $.Field< + trainerByName: $.OutputField< 'trainerByName', $.Nullable, $.Args<{ name: $.InputField<$Scalar.String> }, false> > - trainers: $.Field<'trainers', $.Nullable<$.List>, null> + trainers: $.OutputField<'trainers', $.Nullable<$.List>, null> }> // @@ -69,7 +69,7 @@ export namespace Schema { // // // ================================================================================================== - // Enum + // OutputObject // ================================================================================================== // // @@ -78,28 +78,64 @@ export namespace Schema { // // - export type BattleWildResult = $.Enum<'BattleWildResult', ['pokemonsCaptured', 'pokemonsDefeated', 'trainerDefeated']> + export type BattleRoyale = $.OutputObject<'BattleRoyale', { + combatants: $.OutputField<'combatants', $.Nullable<$.List>, null> + date: $.OutputField<'date', $.Nullable<$Scalar.Float>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + winner: $.OutputField<'winner', $.Nullable, null> + }> - export type PokemonType = $.Enum<'PokemonType', ['bug', 'electric', 'fire', 'grass', 'water']> + export type BattleTrainer = $.OutputObject<'BattleTrainer', { + combatant1: $.OutputField<'combatant1', $.Nullable, null> + combatant2: $.OutputField<'combatant2', $.Nullable, null> + date: $.OutputField<'date', $.Nullable<$Scalar.Float>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + winner: $.OutputField<'winner', $.Nullable, null> + }> - export type TrainerClass = $.Enum< - 'TrainerClass', - [ - 'bugCatcher', - 'camper', - 'picnicker', - 'psychic', - 'psychicMedium', - 'psychicYoungster', - 'sailor', - 'superNerd', - 'tamer', - 'teamRocketGrunt', - 'triathlete', - 'youngster', - 'youth', - ] - > + export type BattleWild = $.OutputObject<'BattleWild', { + date: $.OutputField<'date', $.Nullable<$Scalar.Float>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + pokemon: $.OutputField<'pokemon', $.Nullable, null> + result: $.OutputField<'result', $.Nullable, null> + trainer: $.OutputField<'trainer', $.Nullable, null> + wildPokemons: $.OutputField<'wildPokemons', $.Nullable<$.List>, null> + }> + + export type CombatantMultiPokemon = $.OutputObject<'CombatantMultiPokemon', { + pokemons: $.OutputField<'pokemons', $.Nullable<$.List>, null> + trainer: $.OutputField<'trainer', $.Nullable, null> + }> + + export type CombatantSinglePokemon = $.OutputObject<'CombatantSinglePokemon', { + pokemon: $.OutputField<'pokemon', $.Nullable, null> + trainer: $.OutputField<'trainer', $.Nullable, null> + }> + + export type Patron = $.OutputObject<'Patron', { + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + money: $.OutputField<'money', $.Nullable<$Scalar.Int>, null> + name: $.OutputField<'name', $.Nullable<$Scalar.String>, null> + }> + + export type Pokemon = $.OutputObject<'Pokemon', { + attack: $.OutputField<'attack', $.Nullable<$Scalar.Int>, null> + birthday: $.OutputField<'birthday', $.Nullable<$Scalar.Int>, null> + defense: $.OutputField<'defense', $.Nullable<$Scalar.Int>, null> + hp: $.OutputField<'hp', $.Nullable<$Scalar.Int>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + name: $.OutputField<'name', $.Nullable<$Scalar.String>, null> + trainer: $.OutputField<'trainer', $.Nullable, null> + type: $.OutputField<'type', $.Nullable, null> + }> + + export type Trainer = $.OutputObject<'Trainer', { + class: $.OutputField<'class', $.Nullable, null> + fans: $.OutputField<'fans', $.Nullable<$.List>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + name: $.OutputField<'name', $.Nullable<$Scalar.String>, null> + pokemon: $.OutputField<'pokemon', $.Nullable<$.List>, null> + }> // // @@ -149,8 +185,8 @@ export namespace Schema { // export type Being = $.Interface<'Being', { - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - name: $.Field<'name', $.Nullable<$Scalar.String>, null> + id: $.OutputField<'id', $.Nullable<$Scalar.ID>, null> + name: $.OutputField<'name', $.Nullable<$Scalar.String>, null> }, [Patron, Pokemon, Trainer]> // @@ -160,7 +196,7 @@ export namespace Schema { // // // ================================================================================================== - // Object + // Union // ================================================================================================== // // @@ -169,64 +205,7 @@ export namespace Schema { // // - export type BattleRoyale = $.OutputObject<'BattleRoyale', { - combatants: $.Field<'combatants', $.Nullable<$.List>, null> - date: $.Field<'date', $.Nullable<$Scalar.Float>, null> - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - winner: $.Field<'winner', $.Nullable, null> - }> - - export type BattleTrainer = $.OutputObject<'BattleTrainer', { - combatant1: $.Field<'combatant1', $.Nullable, null> - combatant2: $.Field<'combatant2', $.Nullable, null> - date: $.Field<'date', $.Nullable<$Scalar.Float>, null> - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - winner: $.Field<'winner', $.Nullable, null> - }> - - export type BattleWild = $.OutputObject<'BattleWild', { - date: $.Field<'date', $.Nullable<$Scalar.Float>, null> - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - pokemon: $.Field<'pokemon', $.Nullable, null> - result: $.Field<'result', $.Nullable, null> - trainer: $.Field<'trainer', $.Nullable, null> - wildPokemons: $.Field<'wildPokemons', $.Nullable<$.List>, null> - }> - - export type CombatantMultiPokemon = $.OutputObject<'CombatantMultiPokemon', { - pokemons: $.Field<'pokemons', $.Nullable<$.List>, null> - trainer: $.Field<'trainer', $.Nullable, null> - }> - - export type CombatantSinglePokemon = $.OutputObject<'CombatantSinglePokemon', { - pokemon: $.Field<'pokemon', $.Nullable, null> - trainer: $.Field<'trainer', $.Nullable, null> - }> - - export type Patron = $.OutputObject<'Patron', { - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - money: $.Field<'money', $.Nullable<$Scalar.Int>, null> - name: $.Field<'name', $.Nullable<$Scalar.String>, null> - }> - - export type Pokemon = $.OutputObject<'Pokemon', { - attack: $.Field<'attack', $.Nullable<$Scalar.Int>, null> - birthday: $.Field<'birthday', $.Nullable<$Scalar.Int>, null> - defense: $.Field<'defense', $.Nullable<$Scalar.Int>, null> - hp: $.Field<'hp', $.Nullable<$Scalar.Int>, null> - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - name: $.Field<'name', $.Nullable<$Scalar.String>, null> - trainer: $.Field<'trainer', $.Nullable, null> - type: $.Field<'type', $.Nullable, null> - }> - - export type Trainer = $.OutputObject<'Trainer', { - class: $.Field<'class', $.Nullable, null> - fans: $.Field<'fans', $.Nullable<$.List>, null> - id: $.Field<'id', $.Nullable<$Scalar.ID>, null> - name: $.Field<'name', $.Nullable<$Scalar.String>, null> - pokemon: $.Field<'pokemon', $.Nullable<$.List>, null> - }> + export type Battle = $.Union<'Battle', [BattleRoyale, BattleTrainer, BattleWild]> // // @@ -235,7 +214,7 @@ export namespace Schema { // // // ================================================================================================== - // Union + // Enum // ================================================================================================== // // @@ -244,7 +223,28 @@ export namespace Schema { // // - export type Battle = $.Union<'Battle', [BattleRoyale, BattleTrainer, BattleWild]> + export type BattleWildResult = $.Enum<'BattleWildResult', ['pokemonsCaptured', 'pokemonsDefeated', 'trainerDefeated']> + + export type PokemonType = $.Enum<'PokemonType', ['bug', 'electric', 'fire', 'grass', 'water']> + + export type TrainerClass = $.Enum< + 'TrainerClass', + [ + 'bugCatcher', + 'camper', + 'picnicker', + 'psychic', + 'psychicMedium', + 'psychicYoungster', + 'sailor', + 'superNerd', + 'tamer', + 'teamRocketGrunt', + 'triathlete', + 'youngster', + 'youth', + ] + > } // diff --git a/website/pokemon/modules/SchemaDrivenDataMap.ts b/website/pokemon/modules/SchemaDrivenDataMap.ts index 497855dea..86e3ac136 100644 --- a/website/pokemon/modules/SchemaDrivenDataMap.ts +++ b/website/pokemon/modules/SchemaDrivenDataMap.ts @@ -1,4 +1,4 @@ -import type * as $Utilities from 'graffle/utilities-for-generated' +import type * as $$Utilities from 'graffle/utilities-for-generated' import * as $Scalar from './Scalar.js' // // @@ -7,7 +7,7 @@ import * as $Scalar from './Scalar.js' // // // ================================================================================================== -// GraphQLScalarTypeStandard +// ScalarStandard // ================================================================================================== // // @@ -33,7 +33,7 @@ const Boolean = $Scalar.Boolean // // // ================================================================================================== -// GraphQLScalarTypeCustom +// ScalarCustom // ================================================================================================== // // @@ -42,7 +42,7 @@ const Boolean = $Scalar.Boolean // // -// None of your GraphQLScalarTypeCustoms have custom scalars. +// None of your ScalarCustoms have custom scalars. // // @@ -51,7 +51,7 @@ const Boolean = $Scalar.Boolean // // // ================================================================================================== -// GraphQLEnumType +// Enum // ================================================================================================== // // @@ -60,17 +60,17 @@ const Boolean = $Scalar.Boolean // // -const BattleWildResult: $Utilities.SchemaDrivenDataMap.Enum = { +const BattleWildResult: $$Utilities.SchemaDrivenDataMap.Enum = { k: 'enum', n: 'BattleWildResult', } -const PokemonType: $Utilities.SchemaDrivenDataMap.Enum = { +const PokemonType: $$Utilities.SchemaDrivenDataMap.Enum = { k: 'enum', n: 'PokemonType', } -const TrainerClass: $Utilities.SchemaDrivenDataMap.Enum = { +const TrainerClass: $$Utilities.SchemaDrivenDataMap.Enum = { k: 'enum', n: 'TrainerClass', } @@ -82,7 +82,7 @@ const TrainerClass: $Utilities.SchemaDrivenDataMap.Enum = { // // // ================================================================================================== -// GraphQLInputObjectType +// InputObject // ================================================================================================== // // @@ -91,7 +91,7 @@ const TrainerClass: $Utilities.SchemaDrivenDataMap.Enum = { // // -const DateFilter: $Utilities.SchemaDrivenDataMap.InputObject = { +const DateFilter: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'DateFilter', f: { gte: {}, @@ -99,7 +99,7 @@ const DateFilter: $Utilities.SchemaDrivenDataMap.InputObject = { }, } -const PokemonFilter: $Utilities.SchemaDrivenDataMap.InputObject = { +const PokemonFilter: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'PokemonFilter', f: { birthday: {}, @@ -107,7 +107,7 @@ const PokemonFilter: $Utilities.SchemaDrivenDataMap.InputObject = { }, } -const StringFilter: $Utilities.SchemaDrivenDataMap.InputObject = { +const StringFilter: $$Utilities.SchemaDrivenDataMap.InputObject = { n: 'StringFilter', f: { contains: {}, @@ -122,7 +122,7 @@ const StringFilter: $Utilities.SchemaDrivenDataMap.InputObject = { // // // ================================================================================================== -// GraphQLObjectType +// OutputObject // ================================================================================================== // // @@ -131,7 +131,7 @@ const StringFilter: $Utilities.SchemaDrivenDataMap.InputObject = { // // -const BattleRoyale: $Utilities.SchemaDrivenDataMap.OutputObject = { +const BattleRoyale: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { combatants: { // nt: CombatantMultiPokemon, <-- Assigned later to avoid potential circular dependency. @@ -144,7 +144,7 @@ const BattleRoyale: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const BattleTrainer: $Utilities.SchemaDrivenDataMap.OutputObject = { +const BattleTrainer: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { combatant1: { // nt: CombatantSinglePokemon, <-- Assigned later to avoid potential circular dependency. @@ -160,7 +160,7 @@ const BattleTrainer: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const BattleWild: $Utilities.SchemaDrivenDataMap.OutputObject = { +const BattleWild: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { date: {}, id: {}, @@ -177,7 +177,7 @@ const BattleWild: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const CombatantMultiPokemon: $Utilities.SchemaDrivenDataMap.OutputObject = { +const CombatantMultiPokemon: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { pokemons: { // nt: Pokemon, <-- Assigned later to avoid potential circular dependency. @@ -188,7 +188,7 @@ const CombatantMultiPokemon: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const CombatantSinglePokemon: $Utilities.SchemaDrivenDataMap.OutputObject = { +const CombatantSinglePokemon: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { pokemon: { // nt: Pokemon, <-- Assigned later to avoid potential circular dependency. @@ -199,7 +199,7 @@ const CombatantSinglePokemon: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const Patron: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Patron: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { id: {}, money: {}, @@ -207,7 +207,7 @@ const Patron: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const Pokemon: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Pokemon: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { attack: {}, birthday: {}, @@ -222,7 +222,7 @@ const Pokemon: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const Trainer: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Trainer: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { class: {}, fans: { @@ -243,7 +243,7 @@ const Trainer: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLInterfaceType +// Interface // ================================================================================================== // // @@ -252,7 +252,7 @@ const Trainer: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const Being: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Being: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } @@ -263,7 +263,7 @@ const Being: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLUnionType +// Union // ================================================================================================== // // @@ -272,7 +272,7 @@ const Being: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const Battle: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Battle: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: {}, } @@ -283,7 +283,7 @@ const Battle: $Utilities.SchemaDrivenDataMap.OutputObject = { // // // ================================================================================================== -// GraphQLRootType +// Root // ================================================================================================== // // @@ -292,7 +292,7 @@ const Battle: $Utilities.SchemaDrivenDataMap.OutputObject = { // // -const Mutation: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Mutation: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { addPokemon: { a: { @@ -322,7 +322,7 @@ const Mutation: $Utilities.SchemaDrivenDataMap.OutputObject = { }, } -const Query: $Utilities.SchemaDrivenDataMap.OutputObject = { +const Query: $$Utilities.SchemaDrivenDataMap.OutputObject = { f: { battles: { // nt: Battle, <-- Assigned later to avoid potential circular dependency. @@ -423,7 +423,7 @@ Query.f[`trainers`]!.nt = Trainer // // -const $schemaDrivenDataMap: $Utilities.SchemaDrivenDataMap = { +const $schemaDrivenDataMap: $$Utilities.SchemaDrivenDataMap = { roots: { Mutation, Query, diff --git a/website/pokemon/modules/Select.ts b/website/pokemon/modules/Select.ts index 44ec36822..78578a1b4 100644 --- a/website/pokemon/modules/Select.ts +++ b/website/pokemon/modules/Select.ts @@ -46,8 +46,8 @@ export namespace Select { 'Mutation' > export type Query<$SelectionSet extends SelectionSets.Query> = InferResult.Root<$SelectionSet, Schema, 'Query'> - // Object Types - // ------------ + // OutputObject Types + // ------------------ export type BattleRoyale<$SelectionSet extends SelectionSets.BattleRoyale> = InferResult.Object< $SelectionSet, Schema, diff --git a/website/pokemon/modules/SelectionSets.ts b/website/pokemon/modules/SelectionSets.ts index f6c1b4572..6cd92acc9 100644 --- a/website/pokemon/modules/SelectionSets.ts +++ b/website/pokemon/modules/SelectionSets.ts @@ -30,7 +30,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap // // // ================================================================================================== -// GraphQLObjectType Types +// Root // ================================================================================================== // // @@ -44,7 +44,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap // // // GRAPHQL SELECTION SET -// OBJECT +// ROOT // -------------------------------------------------------------------------------------------------- // Mutation // -------------------------------------------------------------------------------------------------- @@ -55,7 +55,7 @@ export interface $Document<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap export interface Mutation<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `addPokemon` field on the `Mutation` object. Its type is Object. + * Select the `addPokemon` field on the `Mutation` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ addPokemon?: Mutation.addPokemon<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -124,7 +124,7 @@ export namespace Mutation { // // // GRAPHQL SELECTION SET -// OBJECT +// ROOT // -------------------------------------------------------------------------------------------------- // Query // -------------------------------------------------------------------------------------------------- @@ -135,31 +135,31 @@ export namespace Mutation { export interface Query<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> { /** - * Select the `battles` field on the `Query` object. Its type is Union. + * Select the `battles` field on the `Query` object. Its type is `Battle` (a `Union` kind of type). */ battles?: Query.battles$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `beings` field on the `Query` object. Its type is Interface. + * Select the `beings` field on the `Query` object. Its type is `Being` (a `Interface` kind of type). */ beings?: Query.beings$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemon` field on the `Query` object. Its type is Object. + * Select the `pokemon` field on the `Query` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemon?: Query.pokemon$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemonByName` field on the `Query` object. Its type is Object. + * Select the `pokemonByName` field on the `Query` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemonByName?: Query.pokemonByName<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemons` field on the `Query` object. Its type is Object. + * Select the `pokemons` field on the `Query` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemons?: Query.pokemons$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainerByName` field on the `Query` object. Its type is Object. + * Select the `trainerByName` field on the `Query` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainerByName?: Query.trainerByName<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainers` field on the `Query` object. Its type is Object. + * Select the `trainers` field on the `Query` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainers?: Query.trainers$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -362,7 +362,7 @@ export namespace Query { // // // ================================================================================================== -// GraphQLEnumType Types +// Enum // ================================================================================================== // // @@ -397,7 +397,7 @@ export type TrainerClass = // // // ================================================================================================== -// GraphQLInputObjectType Types +// InputObject // ================================================================================================== // // @@ -428,102 +428,7 @@ export interface StringFilter<$Scalars extends $$Utilities.Schema.Scalar.ScalarM // // // ================================================================================================== -// GraphQLInterfaceType Types -// ================================================================================================== -// -// -// -// -// -// - -// Interface Type: Being -// -------------------------------------------------------------------------------------------------- - -export interface Being<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { - id?: Being.id<$Scalars> - name?: Being.name<$Scalars> - ___on_Patron?: Patron<$Scalars> - ___on_Pokemon?: Pokemon<$Scalars> - ___on_Trainer?: Trainer<$Scalars> - - /** - * Inline fragments for field groups. - * - * Generally a niche feature. This can be useful for example to apply an `@include` directive to a subset of the - * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. - * - * @see https://spec.graphql.org/draft/#sec-Inline-Fragments - */ - ___?: - | Being$FragmentInline<$Scalars> - | Being$FragmentInline<$Scalars>[] - - /** - * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, - * the name is one of the implementor type names, whichever is ultimately returned at runtime. - * - * @see https://graphql.org/learn/queries/#meta-fields - */ - __typename?: - | $Select.Indicator.NoArgsIndicator$Expanded - | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> -} - -export interface Being$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends Being<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields -{} - -export namespace Being { - export type id<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = - | $Select.Indicator.NoArgsIndicator - | id$SelectionSet<$Scalars> - - export interface id$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends $Select.Bases.Base - {} - - // --- expanded --- - - /** - * This is the "expanded" version of the `id` type. It is identical except for the fact - * that IDEs will display its contents (a union type) directly, rather than the name of this type. - * In some cases, this is a preferable DX, making the types easier to read for users. - */ - export type id$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< - | $Select.Indicator.NoArgsIndicator - | id$SelectionSet<$Scalars> - > - - export type name<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = - | $Select.Indicator.NoArgsIndicator - | name$SelectionSet<$Scalars> - - export interface name$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> - extends $Select.Bases.Base - {} - - // --- expanded --- - - /** - * This is the "expanded" version of the `name` type. It is identical except for the fact - * that IDEs will display its contents (a union type) directly, rather than the name of this type. - * In some cases, this is a preferable DX, making the types easier to read for users. - */ - export type name$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< - | $Select.Indicator.NoArgsIndicator - | name$SelectionSet<$Scalars> - > -} - -// -// -// -// -// -// -// ================================================================================================== -// GraphQLObjectType Types +// OutputObject // ================================================================================================== // // @@ -537,7 +442,7 @@ export namespace Being { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // BattleRoyale // -------------------------------------------------------------------------------------------------- @@ -550,21 +455,21 @@ export interface BattleRoyale<$Scalars extends $$Utilities.Schema.Scalar.ScalarM extends $Select.Bases.ObjectLike { /** - * Select the `combatants` field on the `BattleRoyale` object. Its type is Object. + * Select the `combatants` field on the `BattleRoyale` object. Its type is `CombatantMultiPokemon` (a `OutputObject` kind of type). */ combatants?: | BattleRoyale.combatants$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `date` field on the `BattleRoyale` object. Its type is `Float` (a `Scalar`). + * Select the `date` field on the `BattleRoyale` object. Its type is `Float` (a `ScalarStandard` kind of type). */ date?: BattleRoyale.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `BattleRoyale` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `BattleRoyale` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: BattleRoyale.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `winner` field on the `BattleRoyale` object. Its type is Object. + * Select the `winner` field on the `BattleRoyale` object. Its type is `Trainer` (a `OutputObject` kind of type). */ winner?: BattleRoyale.winner$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -683,7 +588,7 @@ export namespace BattleRoyale { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // BattleTrainer // -------------------------------------------------------------------------------------------------- @@ -696,27 +601,27 @@ export interface BattleTrainer<$Scalars extends $$Utilities.Schema.Scalar.Scalar extends $Select.Bases.ObjectLike { /** - * Select the `combatant1` field on the `BattleTrainer` object. Its type is Object. + * Select the `combatant1` field on the `BattleTrainer` object. Its type is `CombatantSinglePokemon` (a `OutputObject` kind of type). */ combatant1?: | BattleTrainer.combatant1$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `combatant2` field on the `BattleTrainer` object. Its type is Object. + * Select the `combatant2` field on the `BattleTrainer` object. Its type is `CombatantSinglePokemon` (a `OutputObject` kind of type). */ combatant2?: | BattleTrainer.combatant2$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `date` field on the `BattleTrainer` object. Its type is `Float` (a `Scalar`). + * Select the `date` field on the `BattleTrainer` object. Its type is `Float` (a `ScalarStandard` kind of type). */ date?: BattleTrainer.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `BattleTrainer` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `BattleTrainer` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: BattleTrainer.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `winner` field on the `BattleTrainer` object. Its type is Object. + * Select the `winner` field on the `BattleTrainer` object. Its type is `Trainer` (a `OutputObject` kind of type). */ winner?: BattleTrainer.winner$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -854,7 +759,7 @@ export namespace BattleTrainer { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // BattleWild // -------------------------------------------------------------------------------------------------- @@ -867,27 +772,27 @@ export interface BattleWild<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap extends $Select.Bases.ObjectLike { /** - * Select the `date` field on the `BattleWild` object. Its type is `Float` (a `Scalar`). + * Select the `date` field on the `BattleWild` object. Its type is `Float` (a `ScalarStandard` kind of type). */ date?: BattleWild.date$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `BattleWild` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `BattleWild` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: BattleWild.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemon` field on the `BattleWild` object. Its type is Object. + * Select the `pokemon` field on the `BattleWild` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemon?: BattleWild.pokemon$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `result` field on the `BattleWild` object. Its type is Enum. + * Select the `result` field on the `BattleWild` object. Its type is `BattleWildResult` (a `Enum` kind of type). */ result?: BattleWild.result$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainer` field on the `BattleWild` object. Its type is Object. + * Select the `trainer` field on the `BattleWild` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainer?: BattleWild.trainer$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `wildPokemons` field on the `BattleWild` object. Its type is Object. + * Select the `wildPokemons` field on the `BattleWild` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ wildPokemons?: | BattleWild.wildPokemons$Expanded<$Scalars> @@ -1051,7 +956,7 @@ export namespace BattleWild { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // CombatantMultiPokemon // -------------------------------------------------------------------------------------------------- @@ -1064,13 +969,13 @@ export interface CombatantMultiPokemon<$Scalars extends $$Utilities.Schema.Scala extends $Select.Bases.ObjectLike { /** - * Select the `pokemons` field on the `CombatantMultiPokemon` object. Its type is Object. + * Select the `pokemons` field on the `CombatantMultiPokemon` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemons?: | CombatantMultiPokemon.pokemons$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainer` field on the `CombatantMultiPokemon` object. Its type is Object. + * Select the `trainer` field on the `CombatantMultiPokemon` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainer?: | CombatantMultiPokemon.trainer$Expanded<$Scalars> @@ -1147,7 +1052,7 @@ export namespace CombatantMultiPokemon { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // CombatantSinglePokemon // -------------------------------------------------------------------------------------------------- @@ -1160,13 +1065,13 @@ export interface CombatantSinglePokemon<$Scalars extends $$Utilities.Schema.Scal extends $Select.Bases.ObjectLike { /** - * Select the `pokemon` field on the `CombatantSinglePokemon` object. Its type is Object. + * Select the `pokemon` field on the `CombatantSinglePokemon` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemon?: | CombatantSinglePokemon.pokemon$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainer` field on the `CombatantSinglePokemon` object. Its type is Object. + * Select the `trainer` field on the `CombatantSinglePokemon` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainer?: | CombatantSinglePokemon.trainer$Expanded<$Scalars> @@ -1243,7 +1148,7 @@ export namespace CombatantSinglePokemon { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Patron // -------------------------------------------------------------------------------------------------- @@ -1254,15 +1159,15 @@ export namespace CombatantSinglePokemon { export interface Patron<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `id` field on the `Patron` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Patron` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Patron.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `money` field on the `Patron` object. Its type is `Int` (a `Scalar`). + * Select the `money` field on the `Patron` object. Its type is `Int` (a `ScalarStandard` kind of type). */ money?: Patron.money$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Patron` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Patron` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Patron.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1365,7 +1270,7 @@ export namespace Patron { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Pokemon // -------------------------------------------------------------------------------------------------- @@ -1376,35 +1281,35 @@ export namespace Patron { export interface Pokemon<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `attack` field on the `Pokemon` object. Its type is `Int` (a `Scalar`). + * Select the `attack` field on the `Pokemon` object. Its type is `Int` (a `ScalarStandard` kind of type). */ attack?: Pokemon.attack$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `birthday` field on the `Pokemon` object. Its type is `Int` (a `Scalar`). + * Select the `birthday` field on the `Pokemon` object. Its type is `Int` (a `ScalarStandard` kind of type). */ birthday?: Pokemon.birthday$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `defense` field on the `Pokemon` object. Its type is `Int` (a `Scalar`). + * Select the `defense` field on the `Pokemon` object. Its type is `Int` (a `ScalarStandard` kind of type). */ defense?: Pokemon.defense$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `hp` field on the `Pokemon` object. Its type is `Int` (a `Scalar`). + * Select the `hp` field on the `Pokemon` object. Its type is `Int` (a `ScalarStandard` kind of type). */ hp?: Pokemon.hp$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Pokemon` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Pokemon` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Pokemon.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Pokemon` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Pokemon` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Pokemon.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `trainer` field on the `Pokemon` object. Its type is Object. + * Select the `trainer` field on the `Pokemon` object. Its type is `Trainer` (a `OutputObject` kind of type). */ trainer?: Pokemon.trainer$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `type` field on the `Pokemon` object. Its type is Enum. + * Select the `type` field on the `Pokemon` object. Its type is `PokemonType` (a `Enum` kind of type). */ type?: Pokemon.type$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1614,7 +1519,7 @@ export namespace Pokemon { // // // GRAPHQL SELECTION SET -// OBJECT +// OUTPUTOBJECT // -------------------------------------------------------------------------------------------------- // Trainer // -------------------------------------------------------------------------------------------------- @@ -1625,23 +1530,23 @@ export namespace Pokemon { export interface Trainer<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { /** - * Select the `class` field on the `Trainer` object. Its type is Enum. + * Select the `class` field on the `Trainer` object. Its type is `TrainerClass` (a `Enum` kind of type). */ class?: Trainer.$class$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `fans` field on the `Trainer` object. Its type is Object. + * Select the `fans` field on the `Trainer` object. Its type is `Patron` (a `OutputObject` kind of type). */ fans?: Trainer.fans$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `id` field on the `Trainer` object. Its type is `ID` (a `Scalar`). + * Select the `id` field on the `Trainer` object. Its type is `ID` (a `ScalarStandard` kind of type). */ id?: Trainer.id$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `name` field on the `Trainer` object. Its type is `String` (a `Scalar`). + * Select the `name` field on the `Trainer` object. Its type is `String` (a `ScalarStandard` kind of type). */ name?: Trainer.name$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> /** - * Select the `pokemon` field on the `Trainer` object. Its type is Object. + * Select the `pokemon` field on the `Trainer` object. Its type is `Pokemon` (a `OutputObject` kind of type). */ pokemon?: Trainer.pokemon$Expanded<$Scalars> | $Select.SelectAlias.SelectAlias> @@ -1784,7 +1689,7 @@ export namespace Trainer { // // // ================================================================================================== -// GraphQLUnionType Types +// Union // ================================================================================================== // // @@ -1824,6 +1729,101 @@ export interface Battle$FragmentInline<$Scalars extends $$Utilities.Schema.Scala extends Battle<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields {} +// +// +// +// +// +// +// ================================================================================================== +// Interface +// ================================================================================================== +// +// +// +// +// +// + +// Interface Type: Being +// -------------------------------------------------------------------------------------------------- + +export interface Being<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> extends $Select.Bases.ObjectLike { + id?: Being.id<$Scalars> + name?: Being.name<$Scalars> + ___on_Patron?: Patron<$Scalars> + ___on_Pokemon?: Pokemon<$Scalars> + ___on_Trainer?: Trainer<$Scalars> + + /** + * Inline fragments for field groups. + * + * Generally a niche feature. This can be useful for example to apply an `@include` directive to a subset of the + * selection set in turn allowing you to pass a variable to opt in/out of that selection during execution on the server. + * + * @see https://spec.graphql.org/draft/#sec-Inline-Fragments + */ + ___?: + | Being$FragmentInline<$Scalars> + | Being$FragmentInline<$Scalars>[] + + /** + * A meta field. Is the name of the type being selected. Since this is a interface type and thus polymorphic, + * the name is one of the implementor type names, whichever is ultimately returned at runtime. + * + * @see https://graphql.org/learn/queries/#meta-fields + */ + __typename?: + | $Select.Indicator.NoArgsIndicator$Expanded + | $Select.SelectAlias.SelectAlias<$Select.Indicator.NoArgsIndicator> +} + +export interface Being$FragmentInline<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends Being<$Scalars>, $Select.Directive.$Groups.InlineFragment.Fields +{} + +export namespace Being { + export type id<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = + | $Select.Indicator.NoArgsIndicator + | id$SelectionSet<$Scalars> + + export interface id$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends $Select.Bases.Base + {} + + // --- expanded --- + + /** + * This is the "expanded" version of the `id` type. It is identical except for the fact + * that IDEs will display its contents (a union type) directly, rather than the name of this type. + * In some cases, this is a preferable DX, making the types easier to read for users. + */ + export type id$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + | $Select.Indicator.NoArgsIndicator + | id$SelectionSet<$Scalars> + > + + export type name<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = + | $Select.Indicator.NoArgsIndicator + | name$SelectionSet<$Scalars> + + export interface name$SelectionSet<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> + extends $Select.Bases.Base + {} + + // --- expanded --- + + /** + * This is the "expanded" version of the `name` type. It is identical except for the fact + * that IDEs will display its contents (a union type) directly, rather than the name of this type. + * In some cases, this is a preferable DX, making the types easier to read for users. + */ + export type name$Expanded<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = $$Utilities.Simplify< + | $Select.Indicator.NoArgsIndicator + | name$SelectionSet<$Scalars> + > +} + /** * [1] These definitions serve to allow field selection interfaces to extend their respective object type without * name clashing between the field name and the object name. @@ -1840,7 +1840,6 @@ export namespace $NamedTypes { export type $DateFilter<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = DateFilter<$Scalars> export type $PokemonFilter<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = PokemonFilter<$Scalars> export type $StringFilter<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = StringFilter<$Scalars> - export type $Being<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Being<$Scalars> export type $BattleRoyale<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = BattleRoyale<$Scalars> export type $BattleTrainer<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = BattleTrainer<$Scalars> export type $BattleWild<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = BattleWild<$Scalars> @@ -1853,4 +1852,5 @@ export namespace $NamedTypes { export type $Pokemon<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Pokemon<$Scalars> export type $Trainer<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Trainer<$Scalars> export type $Battle<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Battle<$Scalars> + export type $Being<$Scalars extends $$Utilities.Schema.Scalar.ScalarMap = {}> = Being<$Scalars> }