From ab4b627acb1ad007a3fa67648d76a4c33f46fb83 Mon Sep 17 00:00:00 2001 From: Tim Griesser Date: Sat, 21 Nov 2020 17:02:58 -0500 Subject: [PATCH] chore: Restore integration codegen removed in #629 and #630 (#654) --- jest.config.js | 1 + package.json | 4 +- tests/__helpers/sequencer.js | 16 + tests/__helpers/testApp.ts | 12 +- .../__typegen.ts | 143 + .../isTypeOfsImplemented/__typegen.ts | 141 + .../missingIsTypeOf/__typegen.ts | 141 + .../missingResolveType/__typegen.ts | 141 + .../missingResolveTypeOrIsTypeOf/__typegen.ts | 131 + .../missingTypenameDiscriminant/__typegen.ts | 143 + .../resolveTypeImplemented/__typegen.ts | 141 + tests/integrations/kitchenSink/__typegen.ts | 255 + .../unionTooComplexToRepresent/__typegen.ts | 4721 +++++++++++++++++ tests/typegen/schema.gen.graphql | 75 + tests/typegen/types.gen.ts | 10 +- tests/typegenPrinter.spec.ts | 22 +- 16 files changed, 6078 insertions(+), 19 deletions(-) create mode 100644 tests/__helpers/sequencer.js create mode 100644 tests/typegen/schema.gen.graphql diff --git a/jest.config.js b/jest.config.js index db3aeadd..23a0c440 100644 --- a/jest.config.js +++ b/jest.config.js @@ -20,4 +20,5 @@ module.exports = { }, }, collectCoverageFrom: ['src/**/*'], + testSequencer: '/tests/__helpers/sequencer.js', } diff --git a/package.json b/package.json index de760aae..988cafde 100644 --- a/package.json +++ b/package.json @@ -45,8 +45,8 @@ "release:pr": "dripip pr", "release:preview": "dripip preview", "release:stable": "dripip stable", - "test": "yarn test:types && jest integrations && jest --testPathIgnorePatterns integrations docs", - "test:ci": "yarn test:types && jest integrations --coverage && jest --testPathIgnorePatterns integrations docs --coverage", + "test": "yarn test:types && jest", + "test:ci": "yarn test:types && jest --maxWorkers 2 --coverage", "test:debug": "node --inspect-brk $(yarn bin)/jest -i --watch", "test:types": "tsc -p tsconfig.spec.types.json", "ts-ast-reader": "cd examples/ts-ast-reader && yarn start", diff --git a/tests/__helpers/sequencer.js b/tests/__helpers/sequencer.js new file mode 100644 index 00000000..9380d844 --- /dev/null +++ b/tests/__helpers/sequencer.js @@ -0,0 +1,16 @@ +// testSequencer.js +const path = require('path') +const Sequencer = require('@jest/test-sequencer').default + +class NexusSequencer extends Sequencer { + sort(tests) { + // Test structure information + // https://github.com/facebook/jest/blob/6b8b1404a1d9254e7d5d90a8934087a9c9899dab/packages/jest-runner/src/types.ts#L17-L21 + const copyTests = Array.from(tests) + return copyTests.sort((testA, testB) => + testA.path.includes(path.join('tests', 'integrations')) ? 1 : -1 + ) + } +} + +module.exports = NexusSequencer diff --git a/tests/__helpers/testApp.ts b/tests/__helpers/testApp.ts index fe1db74f..8fee40c4 100644 --- a/tests/__helpers/testApp.ts +++ b/tests/__helpers/testApp.ts @@ -1,5 +1,4 @@ /// -import { writeFileSync } from 'fs' import { join, relative } from 'path' import { core } from '../../src' import { BuilderConfigInput } from '../../src/core' @@ -47,16 +46,7 @@ export async function generateTypegen(settings: HookSettings) { } export function installGenerateTypegenHook(settings: HookSettings) { - let typegenPath: string | null = null - beforeAll(async () => { - const { typegenModulePath } = await generateTypegen(settings) - - typegenPath = typegenModulePath - }) - - afterAll(() => { - writeFileSync(typegenPath!, '') - }) + beforeAll(() => generateTypegen(settings)) } type Settings = { diff --git a/tests/integrations/abstractTypes/allStrategiesOptionalWhenTypeNameEnabled/__typegen.ts b/tests/integrations/abstractTypes/allStrategiesOptionalWhenTypeNameEnabled/__typegen.ts index e69de29b..3a655f79 100644 --- a/tests/integrations/abstractTypes/allStrategiesOptionalWhenTypeNameEnabled/__typegen.ts +++ b/tests/integrations/abstractTypes/allStrategiesOptionalWhenTypeNameEnabled/__typegen.ts @@ -0,0 +1,143 @@ +/** + * This file was generated by Nexus Schema + * Do not make changes to this file directly + */ + +import { core } from '../../../../src' + +declare global { + interface NexusGen extends NexusGenTypes {} +} + +export interface NexusGenInputs {} + +export interface NexusGenEnums {} + +export interface NexusGenScalars { + String: string + Int: number + Float: number + Boolean: boolean + ID: string +} + +export interface NexusGenObjects { + A: { + // root type + name?: string | null // String + } + B: { + // root type + age?: number | null // Int + } + Query: {} +} + +export interface NexusGenInterfaces {} + +export interface NexusGenUnions { + Union: core.Discriminate<'A', 'required'> | core.Discriminate<'B', 'required'> +} + +export type NexusGenRootTypes = NexusGenObjects & NexusGenUnions + +export type NexusGenAllTypes = NexusGenRootTypes & NexusGenScalars + +export interface NexusGenFieldTypes { + A: { + // field return type + name: string | null // String + } + B: { + // field return type + age: number | null // Int + } + Query: { + // field return type + union: NexusGenRootTypes['Union'] | null // Union + } +} + +export interface NexusGenFieldTypeNames { + A: { + // field return type name + name: 'String' + } + B: { + // field return type name + age: 'Int' + } + Query: { + // field return type name + union: 'Union' + } +} + +export interface NexusGenArgTypes {} + +export interface NexusGenAbstractTypeMembers { + Union: 'A' | 'B' +} + +export interface NexusGenTypeInterfaces {} + +export type NexusGenObjectNames = keyof NexusGenObjects + +export type NexusGenInputNames = never + +export type NexusGenEnumNames = never + +export type NexusGenInterfaceNames = never + +export type NexusGenScalarNames = keyof NexusGenScalars + +export type NexusGenUnionNames = keyof NexusGenUnions + +export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = never + +export type NexusGenAbstractsUsingStrategyResolveType = never + +export type NexusGenFeaturesConfig = { + abstractTypeStrategies: { + resolveType: true + isTypeOf: true + __typename: true + } +} + +export interface NexusGenTypes { + context: any + inputTypes: NexusGenInputs + rootTypes: NexusGenRootTypes + argTypes: NexusGenArgTypes + fieldTypes: NexusGenFieldTypes + fieldTypeNames: NexusGenFieldTypeNames + allTypes: NexusGenAllTypes + typeInterfaces: NexusGenTypeInterfaces + objectNames: NexusGenObjectNames + inputNames: NexusGenInputNames + enumNames: NexusGenEnumNames + interfaceNames: NexusGenInterfaceNames + scalarNames: NexusGenScalarNames + unionNames: NexusGenUnionNames + allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames'] + allOutputTypes: + | NexusGenTypes['objectNames'] + | NexusGenTypes['enumNames'] + | NexusGenTypes['unionNames'] + | NexusGenTypes['interfaceNames'] + | NexusGenTypes['scalarNames'] + allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes'] + abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames'] + abstractTypeMembers: NexusGenAbstractTypeMembers + objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf + abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType + features: NexusGenFeaturesConfig +} + +declare global { + interface NexusGenPluginTypeConfig {} + interface NexusGenPluginFieldConfig {} + interface NexusGenPluginSchemaConfig {} + interface NexusGenPluginArgConfig {} +} diff --git a/tests/integrations/abstractTypes/isTypeOfsImplemented/__typegen.ts b/tests/integrations/abstractTypes/isTypeOfsImplemented/__typegen.ts index e69de29b..512bf640 100644 --- a/tests/integrations/abstractTypes/isTypeOfsImplemented/__typegen.ts +++ b/tests/integrations/abstractTypes/isTypeOfsImplemented/__typegen.ts @@ -0,0 +1,141 @@ +/** + * This file was generated by Nexus Schema + * Do not make changes to this file directly + */ + +declare global { + interface NexusGen extends NexusGenTypes {} +} + +export interface NexusGenInputs {} + +export interface NexusGenEnums {} + +export interface NexusGenScalars { + String: string + Int: number + Float: number + Boolean: boolean + ID: string +} + +export interface NexusGenObjects { + A: { + // root type + name?: string | null // String + } + B: { + // root type + age?: number | null // Int + } + Query: {} +} + +export interface NexusGenInterfaces {} + +export interface NexusGenUnions { + Union: NexusGenRootTypes['A'] | NexusGenRootTypes['B'] +} + +export type NexusGenRootTypes = NexusGenObjects & NexusGenUnions + +export type NexusGenAllTypes = NexusGenRootTypes & NexusGenScalars + +export interface NexusGenFieldTypes { + A: { + // field return type + name: string | null // String + } + B: { + // field return type + age: number | null // Int + } + Query: { + // field return type + union: NexusGenRootTypes['Union'] | null // Union + } +} + +export interface NexusGenFieldTypeNames { + A: { + // field return type name + name: 'String' + } + B: { + // field return type name + age: 'Int' + } + Query: { + // field return type name + union: 'Union' + } +} + +export interface NexusGenArgTypes {} + +export interface NexusGenAbstractTypeMembers { + Union: 'A' | 'B' +} + +export interface NexusGenTypeInterfaces {} + +export type NexusGenObjectNames = keyof NexusGenObjects + +export type NexusGenInputNames = never + +export type NexusGenEnumNames = never + +export type NexusGenInterfaceNames = never + +export type NexusGenScalarNames = keyof NexusGenScalars + +export type NexusGenUnionNames = keyof NexusGenUnions + +export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = 'A' | 'B' + +export type NexusGenAbstractsUsingStrategyResolveType = never + +export type NexusGenFeaturesConfig = { + abstractTypeStrategies: { + resolveType: true + isTypeOf: true + __typename: false + } +} + +export interface NexusGenTypes { + context: any + inputTypes: NexusGenInputs + rootTypes: NexusGenRootTypes + argTypes: NexusGenArgTypes + fieldTypes: NexusGenFieldTypes + fieldTypeNames: NexusGenFieldTypeNames + allTypes: NexusGenAllTypes + typeInterfaces: NexusGenTypeInterfaces + objectNames: NexusGenObjectNames + inputNames: NexusGenInputNames + enumNames: NexusGenEnumNames + interfaceNames: NexusGenInterfaceNames + scalarNames: NexusGenScalarNames + unionNames: NexusGenUnionNames + allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames'] + allOutputTypes: + | NexusGenTypes['objectNames'] + | NexusGenTypes['enumNames'] + | NexusGenTypes['unionNames'] + | NexusGenTypes['interfaceNames'] + | NexusGenTypes['scalarNames'] + allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes'] + abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames'] + abstractTypeMembers: NexusGenAbstractTypeMembers + objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf + abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType + features: NexusGenFeaturesConfig +} + +declare global { + interface NexusGenPluginTypeConfig {} + interface NexusGenPluginFieldConfig {} + interface NexusGenPluginSchemaConfig {} + interface NexusGenPluginArgConfig {} +} diff --git a/tests/integrations/abstractTypes/missingIsTypeOf/__typegen.ts b/tests/integrations/abstractTypes/missingIsTypeOf/__typegen.ts index e69de29b..02605e05 100644 --- a/tests/integrations/abstractTypes/missingIsTypeOf/__typegen.ts +++ b/tests/integrations/abstractTypes/missingIsTypeOf/__typegen.ts @@ -0,0 +1,141 @@ +/** + * This file was generated by Nexus Schema + * Do not make changes to this file directly + */ + +declare global { + interface NexusGen extends NexusGenTypes {} +} + +export interface NexusGenInputs {} + +export interface NexusGenEnums {} + +export interface NexusGenScalars { + String: string + Int: number + Float: number + Boolean: boolean + ID: string +} + +export interface NexusGenObjects { + A: { + // root type + name?: string | null // String + } + B: { + // root type + age?: number | null // Int + } + Query: {} +} + +export interface NexusGenInterfaces {} + +export interface NexusGenUnions { + Union: NexusGenRootTypes['A'] | NexusGenRootTypes['B'] +} + +export type NexusGenRootTypes = NexusGenObjects & NexusGenUnions + +export type NexusGenAllTypes = NexusGenRootTypes & NexusGenScalars + +export interface NexusGenFieldTypes { + A: { + // field return type + name: string | null // String + } + B: { + // field return type + age: number | null // Int + } + Query: { + // field return type + union: NexusGenRootTypes['Union'] | null // Union + } +} + +export interface NexusGenFieldTypeNames { + A: { + // field return type name + name: 'String' + } + B: { + // field return type name + age: 'Int' + } + Query: { + // field return type name + union: 'Union' + } +} + +export interface NexusGenArgTypes {} + +export interface NexusGenAbstractTypeMembers { + Union: 'A' | 'B' +} + +export interface NexusGenTypeInterfaces {} + +export type NexusGenObjectNames = keyof NexusGenObjects + +export type NexusGenInputNames = never + +export type NexusGenEnumNames = never + +export type NexusGenInterfaceNames = never + +export type NexusGenScalarNames = keyof NexusGenScalars + +export type NexusGenUnionNames = keyof NexusGenUnions + +export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = 'A' + +export type NexusGenAbstractsUsingStrategyResolveType = never + +export type NexusGenFeaturesConfig = { + abstractTypeStrategies: { + isTypeOf: true + __typename: false + resolveType: false + } +} + +export interface NexusGenTypes { + context: any + inputTypes: NexusGenInputs + rootTypes: NexusGenRootTypes + argTypes: NexusGenArgTypes + fieldTypes: NexusGenFieldTypes + fieldTypeNames: NexusGenFieldTypeNames + allTypes: NexusGenAllTypes + typeInterfaces: NexusGenTypeInterfaces + objectNames: NexusGenObjectNames + inputNames: NexusGenInputNames + enumNames: NexusGenEnumNames + interfaceNames: NexusGenInterfaceNames + scalarNames: NexusGenScalarNames + unionNames: NexusGenUnionNames + allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames'] + allOutputTypes: + | NexusGenTypes['objectNames'] + | NexusGenTypes['enumNames'] + | NexusGenTypes['unionNames'] + | NexusGenTypes['interfaceNames'] + | NexusGenTypes['scalarNames'] + allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes'] + abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames'] + abstractTypeMembers: NexusGenAbstractTypeMembers + objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf + abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType + features: NexusGenFeaturesConfig +} + +declare global { + interface NexusGenPluginTypeConfig {} + interface NexusGenPluginFieldConfig {} + interface NexusGenPluginSchemaConfig {} + interface NexusGenPluginArgConfig {} +} diff --git a/tests/integrations/abstractTypes/missingResolveType/__typegen.ts b/tests/integrations/abstractTypes/missingResolveType/__typegen.ts index e69de29b..daed6d21 100644 --- a/tests/integrations/abstractTypes/missingResolveType/__typegen.ts +++ b/tests/integrations/abstractTypes/missingResolveType/__typegen.ts @@ -0,0 +1,141 @@ +/** + * This file was generated by Nexus Schema + * Do not make changes to this file directly + */ + +declare global { + interface NexusGen extends NexusGenTypes {} +} + +export interface NexusGenInputs {} + +export interface NexusGenEnums {} + +export interface NexusGenScalars { + String: string + Int: number + Float: number + Boolean: boolean + ID: string +} + +export interface NexusGenObjects { + A: { + // root type + name?: string | null // String + } + B: { + // root type + age?: number | null // Int + } + Query: {} +} + +export interface NexusGenInterfaces {} + +export interface NexusGenUnions { + Union: NexusGenRootTypes['A'] | NexusGenRootTypes['B'] +} + +export type NexusGenRootTypes = NexusGenObjects & NexusGenUnions + +export type NexusGenAllTypes = NexusGenRootTypes & NexusGenScalars + +export interface NexusGenFieldTypes { + A: { + // field return type + name: string | null // String + } + B: { + // field return type + age: number | null // Int + } + Query: { + // field return type + union: NexusGenRootTypes['Union'] | null // Union + } +} + +export interface NexusGenFieldTypeNames { + A: { + // field return type name + name: 'String' + } + B: { + // field return type name + age: 'Int' + } + Query: { + // field return type name + union: 'Union' + } +} + +export interface NexusGenArgTypes {} + +export interface NexusGenAbstractTypeMembers { + Union: 'A' | 'B' +} + +export interface NexusGenTypeInterfaces {} + +export type NexusGenObjectNames = keyof NexusGenObjects + +export type NexusGenInputNames = never + +export type NexusGenEnumNames = never + +export type NexusGenInterfaceNames = never + +export type NexusGenScalarNames = keyof NexusGenScalars + +export type NexusGenUnionNames = keyof NexusGenUnions + +export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = never + +export type NexusGenAbstractsUsingStrategyResolveType = never + +export type NexusGenFeaturesConfig = { + abstractTypeStrategies: { + resolveType: true + __typename: false + isTypeOf: false + } +} + +export interface NexusGenTypes { + context: any + inputTypes: NexusGenInputs + rootTypes: NexusGenRootTypes + argTypes: NexusGenArgTypes + fieldTypes: NexusGenFieldTypes + fieldTypeNames: NexusGenFieldTypeNames + allTypes: NexusGenAllTypes + typeInterfaces: NexusGenTypeInterfaces + objectNames: NexusGenObjectNames + inputNames: NexusGenInputNames + enumNames: NexusGenEnumNames + interfaceNames: NexusGenInterfaceNames + scalarNames: NexusGenScalarNames + unionNames: NexusGenUnionNames + allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames'] + allOutputTypes: + | NexusGenTypes['objectNames'] + | NexusGenTypes['enumNames'] + | NexusGenTypes['unionNames'] + | NexusGenTypes['interfaceNames'] + | NexusGenTypes['scalarNames'] + allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes'] + abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames'] + abstractTypeMembers: NexusGenAbstractTypeMembers + objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf + abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType + features: NexusGenFeaturesConfig +} + +declare global { + interface NexusGenPluginTypeConfig {} + interface NexusGenPluginFieldConfig {} + interface NexusGenPluginSchemaConfig {} + interface NexusGenPluginArgConfig {} +} diff --git a/tests/integrations/abstractTypes/missingResolveTypeOrIsTypeOf/__typegen.ts b/tests/integrations/abstractTypes/missingResolveTypeOrIsTypeOf/__typegen.ts index e69de29b..218e918f 100644 --- a/tests/integrations/abstractTypes/missingResolveTypeOrIsTypeOf/__typegen.ts +++ b/tests/integrations/abstractTypes/missingResolveTypeOrIsTypeOf/__typegen.ts @@ -0,0 +1,131 @@ +/** + * This file was generated by Nexus Schema + * Do not make changes to this file directly + */ + +declare global { + interface NexusGen extends NexusGenTypes {} +} + +export interface NexusGenInputs {} + +export interface NexusGenEnums {} + +export interface NexusGenScalars { + String: string + Int: number + Float: number + Boolean: boolean + ID: string +} + +export interface NexusGenObjects { + A: { + // root type + name?: string | null // String + } + Query: {} +} + +export interface NexusGenInterfaces {} + +export interface NexusGenUnions { + U1: NexusGenRootTypes['A'] + U2: NexusGenRootTypes['A'] +} + +export type NexusGenRootTypes = NexusGenObjects & NexusGenUnions + +export type NexusGenAllTypes = NexusGenRootTypes & NexusGenScalars + +export interface NexusGenFieldTypes { + A: { + // field return type + name: string | null // String + } + Query: { + // field return type + ok: boolean // Boolean! + } +} + +export interface NexusGenFieldTypeNames { + A: { + // field return type name + name: 'String' + } + Query: { + // field return type name + ok: 'Boolean' + } +} + +export interface NexusGenArgTypes {} + +export interface NexusGenAbstractTypeMembers { + U1: 'A' + U2: 'A' +} + +export interface NexusGenTypeInterfaces {} + +export type NexusGenObjectNames = keyof NexusGenObjects + +export type NexusGenInputNames = never + +export type NexusGenEnumNames = never + +export type NexusGenInterfaceNames = never + +export type NexusGenScalarNames = keyof NexusGenScalars + +export type NexusGenUnionNames = keyof NexusGenUnions + +export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = never + +export type NexusGenAbstractsUsingStrategyResolveType = 'U1' + +export type NexusGenFeaturesConfig = { + abstractTypeStrategies: { + resolveType: true + isTypeOf: true + __typename: false + } +} + +export interface NexusGenTypes { + context: any + inputTypes: NexusGenInputs + rootTypes: NexusGenRootTypes + argTypes: NexusGenArgTypes + fieldTypes: NexusGenFieldTypes + fieldTypeNames: NexusGenFieldTypeNames + allTypes: NexusGenAllTypes + typeInterfaces: NexusGenTypeInterfaces + objectNames: NexusGenObjectNames + inputNames: NexusGenInputNames + enumNames: NexusGenEnumNames + interfaceNames: NexusGenInterfaceNames + scalarNames: NexusGenScalarNames + unionNames: NexusGenUnionNames + allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames'] + allOutputTypes: + | NexusGenTypes['objectNames'] + | NexusGenTypes['enumNames'] + | NexusGenTypes['unionNames'] + | NexusGenTypes['interfaceNames'] + | NexusGenTypes['scalarNames'] + allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes'] + abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames'] + abstractTypeMembers: NexusGenAbstractTypeMembers + objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf + abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType + features: NexusGenFeaturesConfig +} + +declare global { + interface NexusGenPluginTypeConfig {} + interface NexusGenPluginFieldConfig {} + interface NexusGenPluginSchemaConfig {} + interface NexusGenPluginArgConfig {} +} diff --git a/tests/integrations/abstractTypes/missingTypenameDiscriminant/__typegen.ts b/tests/integrations/abstractTypes/missingTypenameDiscriminant/__typegen.ts index e69de29b..f6a46979 100644 --- a/tests/integrations/abstractTypes/missingTypenameDiscriminant/__typegen.ts +++ b/tests/integrations/abstractTypes/missingTypenameDiscriminant/__typegen.ts @@ -0,0 +1,143 @@ +/** + * This file was generated by Nexus Schema + * Do not make changes to this file directly + */ + +import { core } from '../../../../src' + +declare global { + interface NexusGen extends NexusGenTypes {} +} + +export interface NexusGenInputs {} + +export interface NexusGenEnums {} + +export interface NexusGenScalars { + String: string + Int: number + Float: number + Boolean: boolean + ID: string +} + +export interface NexusGenObjects { + A: { + // root type + name?: string | null // String + } + B: { + // root type + age?: number | null // Int + } + Query: {} +} + +export interface NexusGenInterfaces {} + +export interface NexusGenUnions { + Union: core.Discriminate<'A', 'required'> | core.Discriminate<'B', 'required'> +} + +export type NexusGenRootTypes = NexusGenObjects & NexusGenUnions + +export type NexusGenAllTypes = NexusGenRootTypes & NexusGenScalars + +export interface NexusGenFieldTypes { + A: { + // field return type + name: string | null // String + } + B: { + // field return type + age: number | null // Int + } + Query: { + // field return type + union: NexusGenRootTypes['Union'] | null // Union + } +} + +export interface NexusGenFieldTypeNames { + A: { + // field return type name + name: 'String' + } + B: { + // field return type name + age: 'Int' + } + Query: { + // field return type name + union: 'Union' + } +} + +export interface NexusGenArgTypes {} + +export interface NexusGenAbstractTypeMembers { + Union: 'A' | 'B' +} + +export interface NexusGenTypeInterfaces {} + +export type NexusGenObjectNames = keyof NexusGenObjects + +export type NexusGenInputNames = never + +export type NexusGenEnumNames = never + +export type NexusGenInterfaceNames = never + +export type NexusGenScalarNames = keyof NexusGenScalars + +export type NexusGenUnionNames = keyof NexusGenUnions + +export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = never + +export type NexusGenAbstractsUsingStrategyResolveType = never + +export type NexusGenFeaturesConfig = { + abstractTypeStrategies: { + __typename: true + isTypeOf: false + resolveType: false + } +} + +export interface NexusGenTypes { + context: any + inputTypes: NexusGenInputs + rootTypes: NexusGenRootTypes + argTypes: NexusGenArgTypes + fieldTypes: NexusGenFieldTypes + fieldTypeNames: NexusGenFieldTypeNames + allTypes: NexusGenAllTypes + typeInterfaces: NexusGenTypeInterfaces + objectNames: NexusGenObjectNames + inputNames: NexusGenInputNames + enumNames: NexusGenEnumNames + interfaceNames: NexusGenInterfaceNames + scalarNames: NexusGenScalarNames + unionNames: NexusGenUnionNames + allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames'] + allOutputTypes: + | NexusGenTypes['objectNames'] + | NexusGenTypes['enumNames'] + | NexusGenTypes['unionNames'] + | NexusGenTypes['interfaceNames'] + | NexusGenTypes['scalarNames'] + allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes'] + abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames'] + abstractTypeMembers: NexusGenAbstractTypeMembers + objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf + abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType + features: NexusGenFeaturesConfig +} + +declare global { + interface NexusGenPluginTypeConfig {} + interface NexusGenPluginFieldConfig {} + interface NexusGenPluginSchemaConfig {} + interface NexusGenPluginArgConfig {} +} diff --git a/tests/integrations/abstractTypes/resolveTypeImplemented/__typegen.ts b/tests/integrations/abstractTypes/resolveTypeImplemented/__typegen.ts index e69de29b..1fd81cc1 100644 --- a/tests/integrations/abstractTypes/resolveTypeImplemented/__typegen.ts +++ b/tests/integrations/abstractTypes/resolveTypeImplemented/__typegen.ts @@ -0,0 +1,141 @@ +/** + * This file was generated by Nexus Schema + * Do not make changes to this file directly + */ + +declare global { + interface NexusGen extends NexusGenTypes {} +} + +export interface NexusGenInputs {} + +export interface NexusGenEnums {} + +export interface NexusGenScalars { + String: string + Int: number + Float: number + Boolean: boolean + ID: string +} + +export interface NexusGenObjects { + A: { + // root type + name?: string | null // String + } + B: { + // root type + age?: number | null // Int + } + Query: {} +} + +export interface NexusGenInterfaces {} + +export interface NexusGenUnions { + Union: NexusGenRootTypes['A'] | NexusGenRootTypes['B'] +} + +export type NexusGenRootTypes = NexusGenObjects & NexusGenUnions + +export type NexusGenAllTypes = NexusGenRootTypes & NexusGenScalars + +export interface NexusGenFieldTypes { + A: { + // field return type + name: string | null // String + } + B: { + // field return type + age: number | null // Int + } + Query: { + // field return type + union: NexusGenRootTypes['Union'] | null // Union + } +} + +export interface NexusGenFieldTypeNames { + A: { + // field return type name + name: 'String' + } + B: { + // field return type name + age: 'Int' + } + Query: { + // field return type name + union: 'Union' + } +} + +export interface NexusGenArgTypes {} + +export interface NexusGenAbstractTypeMembers { + Union: 'A' | 'B' +} + +export interface NexusGenTypeInterfaces {} + +export type NexusGenObjectNames = keyof NexusGenObjects + +export type NexusGenInputNames = never + +export type NexusGenEnumNames = never + +export type NexusGenInterfaceNames = never + +export type NexusGenScalarNames = keyof NexusGenScalars + +export type NexusGenUnionNames = keyof NexusGenUnions + +export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = never + +export type NexusGenAbstractsUsingStrategyResolveType = 'Union' + +export type NexusGenFeaturesConfig = { + abstractTypeStrategies: { + resolveType: true + isTypeOf: true + __typename: false + } +} + +export interface NexusGenTypes { + context: any + inputTypes: NexusGenInputs + rootTypes: NexusGenRootTypes + argTypes: NexusGenArgTypes + fieldTypes: NexusGenFieldTypes + fieldTypeNames: NexusGenFieldTypeNames + allTypes: NexusGenAllTypes + typeInterfaces: NexusGenTypeInterfaces + objectNames: NexusGenObjectNames + inputNames: NexusGenInputNames + enumNames: NexusGenEnumNames + interfaceNames: NexusGenInterfaceNames + scalarNames: NexusGenScalarNames + unionNames: NexusGenUnionNames + allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames'] + allOutputTypes: + | NexusGenTypes['objectNames'] + | NexusGenTypes['enumNames'] + | NexusGenTypes['unionNames'] + | NexusGenTypes['interfaceNames'] + | NexusGenTypes['scalarNames'] + allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes'] + abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames'] + abstractTypeMembers: NexusGenAbstractTypeMembers + objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf + abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType + features: NexusGenFeaturesConfig +} + +declare global { + interface NexusGenPluginTypeConfig {} + interface NexusGenPluginFieldConfig {} + interface NexusGenPluginSchemaConfig {} + interface NexusGenPluginArgConfig {} +} diff --git a/tests/integrations/kitchenSink/__typegen.ts b/tests/integrations/kitchenSink/__typegen.ts index e69de29b..5fc0f24f 100644 --- a/tests/integrations/kitchenSink/__typegen.ts +++ b/tests/integrations/kitchenSink/__typegen.ts @@ -0,0 +1,255 @@ +/** + * This file was generated by Nexus Schema + * Do not make changes to this file directly + */ + +import { core } from '../../../src' +declare global { + interface NexusGenCustomInputMethods { + title(...args: any): void + } +} +declare global { + interface NexusGenCustomOutputMethods { + title(options: { escape: boolean }): void + } +} +declare global { + interface NexusGenCustomOutputProperties { + body: any + } +} + +declare global { + interface NexusGen extends NexusGenTypes {} +} + +export interface NexusGenInputs { + PostSearchInput: { + // input type + body?: string | null // String + title?: string | null // String + } +} + +export interface NexusGenEnums {} + +export interface NexusGenScalars { + String: string + Int: number + Float: number + Boolean: boolean + ID: string +} + +export interface NexusGenObjects { + Mutation: {} + OfI: { + // root type + hello?: string | null // String + } + OfI2: { + // root type + hello?: string | null // String + } + Post: { + // root type + body?: string | null // String + title?: string | null // String + } + Query: {} + Subscription: {} + User: { firstName: string; lastName: string } +} + +export interface NexusGenInterfaces { + I: NexusGenRootTypes['OfI'] | NexusGenRootTypes['OfI2'] +} + +export interface NexusGenUnions {} + +export type NexusGenRootTypes = NexusGenInterfaces & NexusGenObjects + +export type NexusGenAllTypes = NexusGenRootTypes & NexusGenScalars + +export interface NexusGenFieldTypes { + Mutation: { + // field return type + createUser: NexusGenRootTypes['User'] | null // User + } + OfI: { + // field return type + hello: string | null // String + } + OfI2: { + // field return type + hello: string | null // String + } + Post: { + // field return type + body: string | null // String + title: string | null // String + } + Query: { + // field return type + foo: string | null // String + searchPosts: Array | null // [Post] + user: NexusGenRootTypes['User'] | null // User + } + Subscription: { + // field return type + someBoolean: boolean | null // Boolean + someField: number | null // Int + someFields: Array | null // [Int] + someFloat: number | null // Float + someID: string | null // ID + someInt: number | null // Int + someInts: Array | null // [Int] + someString: string | null // String + } + User: { + // field return type + firstName: string | null // String + lastName: string | null // String + } + I: { + // field return type + hello: string | null // String + } +} + +export interface NexusGenFieldTypeNames { + Mutation: { + // field return type name + createUser: 'User' + } + OfI: { + // field return type name + hello: 'String' + } + OfI2: { + // field return type name + hello: 'String' + } + Post: { + // field return type name + body: 'String' + title: 'String' + } + Query: { + // field return type name + foo: 'String' + searchPosts: 'Post' + user: 'User' + } + Subscription: { + // field return type name + someBoolean: 'Boolean' + someField: 'Int' + someFields: 'Int' + someFloat: 'Float' + someID: 'ID' + someInt: 'Int' + someInts: 'Int' + someString: 'String' + } + User: { + // field return type name + firstName: 'String' + lastName: 'String' + } + I: { + // field return type name + hello: 'String' + } +} + +export interface NexusGenArgTypes { + Mutation: { + createUser: { + // args + firstName?: string | null // String + lastName?: string | null // String + } + } + Query: { + searchPosts: { + // args + input?: NexusGenInputs['PostSearchInput'] | null // PostSearchInput + } + user: { + // args + id?: string | null // ID + } + } +} + +export interface NexusGenAbstractTypeMembers { + I: 'OfI' | 'OfI2' +} + +export interface NexusGenTypeInterfaces { + OfI: 'I' + OfI2: 'I' +} + +export type NexusGenObjectNames = keyof NexusGenObjects + +export type NexusGenInputNames = keyof NexusGenInputs + +export type NexusGenEnumNames = never + +export type NexusGenInterfaceNames = keyof NexusGenInterfaces + +export type NexusGenScalarNames = keyof NexusGenScalars + +export type NexusGenUnionNames = never + +export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = never + +export type NexusGenAbstractsUsingStrategyResolveType = 'I' + +export type NexusGenFeaturesConfig = { + abstractTypeStrategies: { + resolveType: true + __typename: false + isTypeOf: false + } +} + +export interface NexusGenTypes { + context: any + inputTypes: NexusGenInputs + rootTypes: NexusGenRootTypes + argTypes: NexusGenArgTypes + fieldTypes: NexusGenFieldTypes + fieldTypeNames: NexusGenFieldTypeNames + allTypes: NexusGenAllTypes + typeInterfaces: NexusGenTypeInterfaces + objectNames: NexusGenObjectNames + inputNames: NexusGenInputNames + enumNames: NexusGenEnumNames + interfaceNames: NexusGenInterfaceNames + scalarNames: NexusGenScalarNames + unionNames: NexusGenUnionNames + allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames'] + allOutputTypes: + | NexusGenTypes['objectNames'] + | NexusGenTypes['enumNames'] + | NexusGenTypes['unionNames'] + | NexusGenTypes['interfaceNames'] + | NexusGenTypes['scalarNames'] + allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes'] + abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames'] + abstractTypeMembers: NexusGenAbstractTypeMembers + objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf + abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType + features: NexusGenFeaturesConfig +} + +declare global { + interface NexusGenPluginTypeConfig {} + interface NexusGenPluginFieldConfig {} + interface NexusGenPluginSchemaConfig {} + interface NexusGenPluginArgConfig {} +} diff --git a/tests/integrations/unionTooComplexToRepresent/__typegen.ts b/tests/integrations/unionTooComplexToRepresent/__typegen.ts index e69de29b..712dab5e 100644 --- a/tests/integrations/unionTooComplexToRepresent/__typegen.ts +++ b/tests/integrations/unionTooComplexToRepresent/__typegen.ts @@ -0,0 +1,4721 @@ +/** + * This file was generated by Nexus Schema + * Do not make changes to this file directly + */ + +declare global { + interface NexusGen extends NexusGenTypes {} +} + +export interface NexusGenInputs {} + +export interface NexusGenEnums {} + +export interface NexusGenScalars { + String: string + Int: number + Float: number + Boolean: boolean + ID: string +} + +export interface NexusGenObjects { + ALXAXBKq: { + // root type + id41?: string | null // ID + } + AOogKhAD: { + // root type + id53?: string | null // ID + } + AQDzZPsI: { + // root type + id193?: string | null // ID + } + ApAniugk: { + // root type + id51?: string | null // ID + } + AuMxHAoX: { + // root type + id146?: string | null // ID + } + BAzfAeMR: { + // root type + id191?: string | null // ID + } + BFohGIGQ: { + // root type + id286?: string | null // ID + } + BTIsXTrL: { + // root type + id250?: string | null // ID + } + BWwxnXpM: { + // root type + id294?: string | null // ID + } + BXowGvwZ: { + // root type + id63?: string | null // ID + } + BYPWzETJ: { + // root type + id266?: string | null // ID + } + BiZjyuaY: { + // root type + id25?: string | null // ID + } + Bjgguvhd: { + // root type + id170?: string | null // ID + } + CCXSFsMn: { + // root type + id268?: string | null // ID + } + CXumheDD: { + // root type + id172?: string | null // ID + } + CgAQHanX: { + // root type + id96?: string | null // ID + } + DBZLsxpr: { + // root type + id137?: string | null // ID + } + DGxuhtpo: { + // root type + id219?: string | null // ID + } + DKEJFUiy: { + // root type + id295?: string | null // ID + } + DMggicLd: { + // root type + id239?: string | null // ID + } + DNohRdIN: { + // root type + id203?: string | null // ID + } + DbgPTfDo: { + // root type + id254?: string | null // ID + } + DkoAlvGn: { + // root type + id282?: string | null // ID + } + DpnWHIJW: { + // root type + id7?: string | null // ID + } + ECChhDfK: { + // root type + id79?: string | null // ID + } + ETUiuOHD: { + // root type + id35?: string | null // ID + } + EhpNnQJw: { + // root type + id121?: string | null // ID + } + EjIQIfmv: { + // root type + id126?: string | null // ID + } + EqEZXLCy: { + // root type + id30?: string | null // ID + } + EtPHwkkm: { + // root type + id57?: string | null // ID + } + EzcWBhIv: { + // root type + id214?: string | null // ID + } + FDouQoXO: { + // root type + id173?: string | null // ID + } + FHLtgKoA: { + // root type + id258?: string | null // ID + } + FaJAYKqm: { + // root type + id93?: string | null // ID + } + FcFlCNAk: { + // root type + id228?: string | null // ID + } + FvftqquW: { + // root type + id281?: string | null // ID + } + GDATeumz: { + // root type + id256?: string | null // ID + } + GYbaqoRT: { + // root type + id105?: string | null // ID + } + GcpbGXTn: { + // root type + id218?: string | null // ID + } + GdxXCAak: { + // root type + id13?: string | null // ID + } + GhHKLcZe: { + // root type + id199?: string | null // ID + } + GsbHZkLK: { + // root type + id34?: string | null // ID + } + GwkBnXKj: { + // root type + id207?: string | null // ID + } + GzglazdH: { + // root type + id95?: string | null // ID + } + HENcJewx: { + // root type + id185?: string | null // ID + } + HIPZQFdS: { + // root type + id251?: string | null // ID + } + HJmsvtgX: { + // root type + id151?: string | null // ID + } + HLRWzsTU: { + // root type + id182?: string | null // ID + } + HNLQTErw: { + // root type + id155?: string | null // ID + } + HWMyawvm: { + // root type + id187?: string | null // ID + } + HXZUTyvG: { + // root type + id46?: string | null // ID + } + HZbsVdoX: { + // root type + id68?: string | null // ID + } + HdiyXGxs: { + // root type + id178?: string | null // ID + } + HgYVPDgm: { + // root type + id87?: string | null // ID + } + HjRDJhnX: { + // root type + id133?: string | null // ID + } + HwkXtjRP: { + // root type + id84?: string | null // ID + } + HxCkBUxv: { + // root type + id192?: string | null // ID + } + IAOEaBfb: { + // root type + id120?: string | null // ID + } + IBZxPcZb: { + // root type + id205?: string | null // ID + } + ICrkovFe: { + // root type + id73?: string | null // ID + } + IGibGxHO: { + // root type + id204?: string | null // ID + } + ISayJMYD: { + // root type + id129?: string | null // ID + } + IWhegzTM: { + // root type + id43?: string | null // ID + } + IZERvBgk: { + // root type + id32?: string | null // ID + } + IhSGxaNc: { + // root type + id103?: string | null // ID + } + IhtaZNUi: { + // root type + id238?: string | null // ID + } + IqZAiUKE: { + // root type + id223?: string | null // ID + } + IuVQPFJN: { + // root type + id152?: string | null // ID + } + Iypygftg: { + // root type + id77?: string | null // ID + } + JXAbemqC: { + // root type + id153?: string | null // ID + } + JZMQpjQv: { + // root type + id125?: string | null // ID + } + JbsCxxcE: { + // root type + id8?: string | null // ID + } + JjkgZKrV: { + // root type + id202?: string | null // ID + } + JsAPYbRs: { + // root type + id156?: string | null // ID + } + JuaucwDY: { + // root type + id134?: string | null // ID + } + KGbJMfhO: { + // root type + id159?: string | null // ID + } + KVIgujkc: { + // root type + id157?: string | null // ID + } + KbTYPbTr: { + // root type + id92?: string | null // ID + } + KoKtAqbt: { + // root type + id213?: string | null // ID + } + KsPfaUFr: { + // root type + id86?: string | null // ID + } + KvHHVcPa: { + // root type + id147?: string | null // ID + } + LBePcCkW: { + // root type + id112?: string | null // ID + } + LHxWkxKq: { + // root type + id64?: string | null // ID + } + LMnZbpCI: { + // root type + id106?: string | null // ID + } + LtvKCzwe: { + // root type + id19?: string | null // ID + } + MPQLFUho: { + // root type + id31?: string | null // ID + } + MvpRfuhb: { + // root type + id198?: string | null // ID + } + NETQHyFQ: { + // root type + id55?: string | null // ID + } + NbTtwcUU: { + // root type + id0?: string | null // ID + } + NczZcGdE: { + // root type + id209?: string | null // ID + } + NefQmhqG: { + // root type + id149?: string | null // ID + } + NlMnyCgu: { + // root type + id162?: string | null // ID + } + NrrBYDim: { + // root type + id163?: string | null // ID + } + NwPaWUGr: { + // root type + id292?: string | null // ID + } + OBnGIgyZ: { + // root type + id242?: string | null // ID + } + OZfGULVa: { + // root type + id195?: string | null // ID + } + OehdOjXt: { + // root type + id278?: string | null // ID + } + OfyEZrPd: { + // root type + id21?: string | null // ID + } + OjwpvBGH: { + // root type + id227?: string | null // ID + } + OwZeKGSU: { + // root type + id128?: string | null // ID + } + PBGQfXYx: { + // root type + id83?: string | null // ID + } + PGcwRfdb: { + // root type + id62?: string | null // ID + } + PHltFHbS: { + // root type + id226?: string | null // ID + } + PNeiVzWR: { + // root type + id113?: string | null // ID + } + PNgZWWwo: { + // root type + id148?: string | null // ID + } + PTtcHGFZ: { + // root type + id114?: string | null // ID + } + PVCfSccj: { + // root type + id224?: string | null // ID + } + PWOXDRzE: { + // root type + id56?: string | null // ID + } + PYCDIQQc: { + // root type + id24?: string | null // ID + } + PpTuFbFz: { + // root type + id6?: string | null // ID + } + PwzFJfRE: { + // root type + id90?: string | null // ID + } + QKdnhgbW: { + // root type + id3?: string | null // ID + } + QMkOOMdT: { + // root type + id122?: string | null // ID + } + QXSXwpMN: { + // root type + id211?: string | null // ID + } + QelISHAj: { + // root type + id58?: string | null // ID + } + QmPQoOZh: { + // root type + id220?: string | null // ID + } + Query: {} + QxHzTNGy: { + // root type + id265?: string | null // ID + } + RCZmHSOp: { + // root type + id10?: string | null // ID + } + RMBiaCdu: { + // root type + id75?: string | null // ID + } + RNSfiIOi: { + // root type + id61?: string | null // ID + } + RTcWEgoC: { + // root type + id44?: string | null // ID + } + RVbkKVjJ: { + // root type + id231?: string | null // ID + } + RydRYmBj: { + // root type + id255?: string | null // ID + } + SBNNVkRr: { + // root type + id257?: string | null // ID + } + ShqdAPLQ: { + // root type + id297?: string | null // ID + } + SsKBGyvg: { + // root type + id50?: string | null // ID + } + Stydvxig: { + // root type + id245?: string | null // ID + } + TDURJGny: { + // root type + id2?: string | null // ID + } + TDztrYLm: { + // root type + id20?: string | null // ID + } + TKzetlpb: { + // root type + id171?: string | null // ID + } + TWLZYGzk: { + // root type + id59?: string | null // ID + } + TZHgNTAO: { + // root type + id215?: string | null // ID + } + TbgzaUgu: { + // root type + id123?: string | null // ID + } + TeZWMTzw: { + // root type + id175?: string | null // ID + } + TppFHtyg: { + // root type + id82?: string | null // ID + } + UGJqdGDT: { + // root type + id54?: string | null // ID + } + UuNFAnQg: { + // root type + id263?: string | null // ID + } + VAvPoGEb: { + // root type + id217?: string | null // ID + } + VynhbqCL: { + // root type + id26?: string | null // ID + } + WMsrUAGp: { + // root type + id181?: string | null // ID + } + WaVLDFqC: { + // root type + id136?: string | null // ID + } + WhUVndTD: { + // root type + id145?: string | null // ID + } + WoCNZkWp: { + // root type + id144?: string | null // ID + } + WsNuPHEi: { + // root type + id225?: string | null // ID + } + WsneBHrs: { + // root type + id101?: string | null // ID + } + WurxotQy: { + // root type + id72?: string | null // ID + } + XFYbFCkA: { + // root type + id69?: string | null // ID + } + XHvdKJbC: { + // root type + id285?: string | null // ID + } + XdzKjpVP: { + // root type + id4?: string | null // ID + } + Xqkpjqni: { + // root type + id15?: string | null // ID + } + XvyULguR: { + // root type + id104?: string | null // ID + } + XwweqpQZ: { + // root type + id275?: string | null // ID + } + YBZmfmWn: { + // root type + id88?: string | null // ID + } + YNnosqXJ: { + // root type + id244?: string | null // ID + } + YZpErVkH: { + // root type + id264?: string | null // ID + } + YwFARARB: { + // root type + id216?: string | null // ID + } + YxNVEAVR: { + // root type + id221?: string | null // ID + } + ZElcDXRS: { + // root type + id165?: string | null // ID + } + ZEyINaeG: { + // root type + id85?: string | null // ID + } + ZVaYkAdb: { + // root type + id279?: string | null // ID + } + ZbrxBPat: { + // root type + id232?: string | null // ID + } + ZeyczKBv: { + // root type + id12?: string | null // ID + } + ZrPlFevQ: { + // root type + id248?: string | null // ID + } + ZzRSmAyf: { + // root type + id161?: string | null // ID + } + aEOOAAKG: { + // root type + id166?: string | null // ID + } + aKYfIihK: { + // root type + id212?: string | null // ID + } + ahctkrlN: { + // root type + id222?: string | null // ID + } + arOfyZvi: { + // root type + id194?: string | null // ID + } + awDoUlrM: { + // root type + id119?: string | null // ID + } + bGRbQdGF: { + // root type + id143?: string | null // ID + } + bLcHZPpX: { + // root type + id230?: string | null // ID + } + bNaHPVhI: { + // root type + id234?: string | null // ID + } + bdmjhrZP: { + // root type + id36?: string | null // ID + } + bndWrLAg: { + // root type + id180?: string | null // ID + } + bpcReAKs: { + // root type + id48?: string | null // ID + } + bsuhpkhX: { + // root type + id67?: string | null // ID + } + cEORMlXC: { + // root type + id169?: string | null // ID + } + cGxDWUGD: { + // root type + id247?: string | null // ID + } + cMxjKIfV: { + // root type + id132?: string | null // ID + } + cXAmxvqv: { + // root type + id81?: string | null // ID + } + ctfzshTJ: { + // root type + id197?: string | null // ID + } + dAmPEeQn: { + // root type + id98?: string | null // ID + } + dHKrfYNo: { + // root type + id29?: string | null // ID + } + dOWdqEud: { + // root type + id66?: string | null // ID + } + dbFplbat: { + // root type + id184?: string | null // ID + } + deqJYjdv: { + // root type + id107?: string | null // ID + } + dnjGpfIS: { + // root type + id118?: string | null // ID + } + dnutiEie: { + // root type + id60?: string | null // ID + } + eJSSQaaC: { + // root type + id140?: string | null // ID + } + eROeesVg: { + // root type + id38?: string | null // ID + } + eWlLfMzi: { + // root type + id270?: string | null // ID + } + eemljdwg: { + // root type + id1?: string | null // ID + } + eggnlUYr: { + // root type + id109?: string | null // ID + } + euCWAGET: { + // root type + id158?: string | null // ID + } + fDAloqko: { + // root type + id16?: string | null // ID + } + fFyvwcxZ: { + // root type + id274?: string | null // ID + } + fPXYtcbT: { + // root type + id276?: string | null // ID + } + fXnweaVk: { + // root type + id52?: string | null // ID + } + faKaQEBn: { + // root type + id284?: string | null // ID + } + fvXQFkRb: { + // root type + id115?: string | null // ID + } + gQDQWruj: { + // root type + id22?: string | null // ID + } + gfyuMPLk: { + // root type + id189?: string | null // ID + } + gqhvwsiF: { + // root type + id23?: string | null // ID + } + gvxFkejN: { + // root type + id290?: string | null // ID + } + hAfKmdaD: { + // root type + id168?: string | null // ID + } + hBCadJbD: { + // root type + id138?: string | null // ID + } + hDsbddpo: { + // root type + id237?: string | null // ID + } + hEyyqHvv: { + // root type + id252?: string | null // ID + } + hIjYlIps: { + // root type + id210?: string | null // ID + } + hLptFSis: { + // root type + id91?: string | null // ID + } + hOqSbuBE: { + // root type + id27?: string | null // ID + } + hQiYNmDV: { + // root type + id127?: string | null // ID + } + hTNuohNQ: { + // root type + id271?: string | null // ID + } + hgsVEiUk: { + // root type + id240?: string | null // ID + } + hqweSGgf: { + // root type + id65?: string | null // ID + } + iVjcPoMw: { + // root type + id100?: string | null // ID + } + iWpPsvNV: { + // root type + id259?: string | null // ID + } + iZJAoMWm: { + // root type + id141?: string | null // ID + } + iqXgPwiC: { + // root type + id293?: string | null // ID + } + ixwjWVvf: { + // root type + id97?: string | null // ID + } + jAUaKDuu: { + // root type + id260?: string | null // ID + } + jCnSiJOq: { + // root type + id188?: string | null // ID + } + jciWswYD: { + // root type + id208?: string | null // ID + } + jkcwiNhe: { + // root type + id74?: string | null // ID + } + jmnxoYAy: { + // root type + id287?: string | null // ID + } + jnFMLyxL: { + // root type + id277?: string | null // ID + } + jrmLpsfT: { + // root type + id201?: string | null // ID + } + kAFbqgpE: { + // root type + id102?: string | null // ID + } + kAqRlGFR: { + // root type + id299?: string | null // ID + } + kEhnOaCH: { + // root type + id111?: string | null // ID + } + kHLLmfcE: { + // root type + id164?: string | null // ID + } + kKQNulhi: { + // root type + id5?: string | null // ID + } + kQUqAggO: { + // root type + id17?: string | null // ID + } + kXMItaoE: { + // root type + id154?: string | null // ID + } + kkQiMyOg: { + // root type + id33?: string | null // ID + } + klkPkaYU: { + // root type + id272?: string | null // ID + } + lFbOnWGE: { + // root type + id280?: string | null // ID + } + lPtHeBuR: { + // root type + id160?: string | null // ID + } + lVumUBIa: { + // root type + id174?: string | null // ID + } + laqqtHJN: { + // root type + id206?: string | null // ID + } + ldqzvWyd: { + // root type + id235?: string | null // ID + } + lhdysNNV: { + // root type + id71?: string | null // ID + } + lifwEmKz: { + // root type + id246?: string | null // ID + } + lsDifAmH: { + // root type + id298?: string | null // ID + } + mFSUfTPi: { + // root type + id116?: string | null // ID + } + mKbKQhyO: { + // root type + id167?: string | null // ID + } + mQIYoGzu: { + // root type + id28?: string | null // ID + } + mZmlDoBs: { + // root type + id273?: string | null // ID + } + mooFGlVS: { + // root type + id14?: string | null // ID + } + mtikMWMb: { + // root type + id261?: string | null // ID + } + muuoinyp: { + // root type + id70?: string | null // ID + } + newdlmuf: { + // root type + id39?: string | null // ID + } + oLLKSNvK: { + // root type + id176?: string | null // ID + } + ogOIrhgb: { + // root type + id47?: string | null // ID + } + phBMkPER: { + // root type + id236?: string | null // ID + } + pnfpWCgc: { + // root type + id99?: string | null // ID + } + ptQOpnjR: { + // root type + id190?: string | null // ID + } + qBIjdcrW: { + // root type + id142?: string | null // ID + } + qCzvlwRD: { + // root type + id80?: string | null // ID + } + qXlhbRwq: { + // root type + id78?: string | null // ID + } + rDLkvRXw: { + // root type + id296?: string | null // ID + } + rKZaCTrp: { + // root type + id89?: string | null // ID + } + rsrjXXbp: { + // root type + id267?: string | null // ID + } + sOPJOCHV: { + // root type + id108?: string | null // ID + } + sYmZSZhS: { + // root type + id45?: string | null // ID + } + tBRvILTt: { + // root type + id177?: string | null // ID + } + tHuINsQQ: { + // root type + id117?: string | null // ID + } + tWYLhGmP: { + // root type + id253?: string | null // ID + } + tfdcstkI: { + // root type + id262?: string | null // ID + } + tgBSTWuP: { + // root type + id40?: string | null // ID + } + tndtDdZP: { + // root type + id18?: string | null // ID + } + uaVbWYYy: { + // root type + id94?: string | null // ID + } + ubXmVvgH: { + // root type + id139?: string | null // ID + } + unjJMyow: { + // root type + id249?: string | null // ID + } + uqAoXisC: { + // root type + id9?: string | null // ID + } + uxqOEIwV: { + // root type + id49?: string | null // ID + } + vKNwRocJ: { + // root type + id229?: string | null // ID + } + vWCRSMfI: { + // root type + id37?: string | null // ID + } + vmWUXlxn: { + // root type + id233?: string | null // ID + } + vveXjotS: { + // root type + id11?: string | null // ID + } + wYUTmKCU: { + // root type + id291?: string | null // ID + } + wtjYwstX: { + // root type + id110?: string | null // ID + } + wvbxCjzQ: { + // root type + id131?: string | null // ID + } + xHmRwgeG: { + // root type + id42?: string | null // ID + } + xUqWuwDO: { + // root type + id288?: string | null // ID + } + xnxcQfWx: { + // root type + id76?: string | null // ID + } + yJNnsHEj: { + // root type + id135?: string | null // ID + } + yJubHpPP: { + // root type + id243?: string | null // ID + } + yMjEoECr: { + // root type + id196?: string | null // ID + } + yNNQUmqa: { + // root type + id150?: string | null // ID + } + yNumRBxd: { + // root type + id200?: string | null // ID + } + yPDuKVOh: { + // root type + id241?: string | null // ID + } + yrGYxJeE: { + // root type + id130?: string | null // ID + } + yvlysvTB: { + // root type + id269?: string | null // ID + } + zLwooCNa: { + // root type + id179?: string | null // ID + } + zUQFahzk: { + // root type + id283?: string | null // ID + } + zjnLruIQ: { + // root type + id289?: string | null // ID + } + zlPOFwWi: { + // root type + id183?: string | null // ID + } + zpZvbHAk: { + // root type + id124?: string | null // ID + } + zvGUhtyF: { + // root type + id186?: string | null // ID + } +} + +export interface NexusGenInterfaces {} + +export interface NexusGenUnions { + BigUnion: + | NexusGenRootTypes['aEOOAAKG'] + | NexusGenRootTypes['ahctkrlN'] + | NexusGenRootTypes['aKYfIihK'] + | NexusGenRootTypes['ALXAXBKq'] + | NexusGenRootTypes['AOogKhAD'] + | NexusGenRootTypes['ApAniugk'] + | NexusGenRootTypes['AQDzZPsI'] + | NexusGenRootTypes['arOfyZvi'] + | NexusGenRootTypes['AuMxHAoX'] + | NexusGenRootTypes['awDoUlrM'] + | NexusGenRootTypes['BAzfAeMR'] + | NexusGenRootTypes['bdmjhrZP'] + | NexusGenRootTypes['BFohGIGQ'] + | NexusGenRootTypes['bGRbQdGF'] + | NexusGenRootTypes['BiZjyuaY'] + | NexusGenRootTypes['Bjgguvhd'] + | NexusGenRootTypes['bLcHZPpX'] + | NexusGenRootTypes['bNaHPVhI'] + | NexusGenRootTypes['bndWrLAg'] + | NexusGenRootTypes['bpcReAKs'] + | NexusGenRootTypes['bsuhpkhX'] + | NexusGenRootTypes['BTIsXTrL'] + | NexusGenRootTypes['BWwxnXpM'] + | NexusGenRootTypes['BXowGvwZ'] + | NexusGenRootTypes['BYPWzETJ'] + | NexusGenRootTypes['CCXSFsMn'] + | NexusGenRootTypes['cEORMlXC'] + | NexusGenRootTypes['CgAQHanX'] + | NexusGenRootTypes['cGxDWUGD'] + | NexusGenRootTypes['cMxjKIfV'] + | NexusGenRootTypes['ctfzshTJ'] + | NexusGenRootTypes['cXAmxvqv'] + | NexusGenRootTypes['CXumheDD'] + | NexusGenRootTypes['dAmPEeQn'] + | NexusGenRootTypes['dbFplbat'] + | NexusGenRootTypes['DbgPTfDo'] + | NexusGenRootTypes['DBZLsxpr'] + | NexusGenRootTypes['deqJYjdv'] + | NexusGenRootTypes['DGxuhtpo'] + | NexusGenRootTypes['dHKrfYNo'] + | NexusGenRootTypes['DKEJFUiy'] + | NexusGenRootTypes['DkoAlvGn'] + | NexusGenRootTypes['DMggicLd'] + | NexusGenRootTypes['dnjGpfIS'] + | NexusGenRootTypes['DNohRdIN'] + | NexusGenRootTypes['dnutiEie'] + | NexusGenRootTypes['dOWdqEud'] + | NexusGenRootTypes['DpnWHIJW'] + | NexusGenRootTypes['ECChhDfK'] + | NexusGenRootTypes['eemljdwg'] + | NexusGenRootTypes['eggnlUYr'] + | NexusGenRootTypes['EhpNnQJw'] + | NexusGenRootTypes['EjIQIfmv'] + | NexusGenRootTypes['eJSSQaaC'] + | NexusGenRootTypes['EqEZXLCy'] + | NexusGenRootTypes['eROeesVg'] + | NexusGenRootTypes['EtPHwkkm'] + | NexusGenRootTypes['ETUiuOHD'] + | NexusGenRootTypes['euCWAGET'] + | NexusGenRootTypes['eWlLfMzi'] + | NexusGenRootTypes['EzcWBhIv'] + | NexusGenRootTypes['FaJAYKqm'] + | NexusGenRootTypes['faKaQEBn'] + | NexusGenRootTypes['FcFlCNAk'] + | NexusGenRootTypes['fDAloqko'] + | NexusGenRootTypes['FDouQoXO'] + | NexusGenRootTypes['fFyvwcxZ'] + | NexusGenRootTypes['FHLtgKoA'] + | NexusGenRootTypes['fPXYtcbT'] + | NexusGenRootTypes['FvftqquW'] + | NexusGenRootTypes['fvXQFkRb'] + | NexusGenRootTypes['fXnweaVk'] + | NexusGenRootTypes['GcpbGXTn'] + | NexusGenRootTypes['GDATeumz'] + | NexusGenRootTypes['GdxXCAak'] + | NexusGenRootTypes['gfyuMPLk'] + | NexusGenRootTypes['GhHKLcZe'] + | NexusGenRootTypes['gQDQWruj'] + | NexusGenRootTypes['gqhvwsiF'] + | NexusGenRootTypes['GsbHZkLK'] + | NexusGenRootTypes['gvxFkejN'] + | NexusGenRootTypes['GwkBnXKj'] + | NexusGenRootTypes['GYbaqoRT'] + | NexusGenRootTypes['GzglazdH'] + | NexusGenRootTypes['hAfKmdaD'] + | NexusGenRootTypes['hBCadJbD'] + | NexusGenRootTypes['HdiyXGxs'] + | NexusGenRootTypes['hDsbddpo'] + | NexusGenRootTypes['HENcJewx'] + | NexusGenRootTypes['hEyyqHvv'] + | NexusGenRootTypes['hgsVEiUk'] + | NexusGenRootTypes['HgYVPDgm'] + | NexusGenRootTypes['hIjYlIps'] + | NexusGenRootTypes['HIPZQFdS'] + | NexusGenRootTypes['HJmsvtgX'] + | NexusGenRootTypes['HjRDJhnX'] + | NexusGenRootTypes['hLptFSis'] + | NexusGenRootTypes['HLRWzsTU'] + | NexusGenRootTypes['HNLQTErw'] + | NexusGenRootTypes['hOqSbuBE'] + | NexusGenRootTypes['hQiYNmDV'] + | NexusGenRootTypes['hqweSGgf'] + | NexusGenRootTypes['hTNuohNQ'] + | NexusGenRootTypes['HwkXtjRP'] + | NexusGenRootTypes['HWMyawvm'] + | NexusGenRootTypes['HxCkBUxv'] + | NexusGenRootTypes['HXZUTyvG'] + | NexusGenRootTypes['HZbsVdoX'] + | NexusGenRootTypes['IAOEaBfb'] + | NexusGenRootTypes['IBZxPcZb'] + | NexusGenRootTypes['ICrkovFe'] + | NexusGenRootTypes['IGibGxHO'] + | NexusGenRootTypes['IhSGxaNc'] + | NexusGenRootTypes['IhtaZNUi'] + | NexusGenRootTypes['iqXgPwiC'] + | NexusGenRootTypes['IqZAiUKE'] + | NexusGenRootTypes['ISayJMYD'] + | NexusGenRootTypes['IuVQPFJN'] + | NexusGenRootTypes['iVjcPoMw'] + | NexusGenRootTypes['IWhegzTM'] + | NexusGenRootTypes['iWpPsvNV'] + | NexusGenRootTypes['ixwjWVvf'] + | NexusGenRootTypes['Iypygftg'] + | NexusGenRootTypes['IZERvBgk'] + | NexusGenRootTypes['iZJAoMWm'] + | NexusGenRootTypes['jAUaKDuu'] + | NexusGenRootTypes['JbsCxxcE'] + | NexusGenRootTypes['jciWswYD'] + | NexusGenRootTypes['jCnSiJOq'] + | NexusGenRootTypes['JjkgZKrV'] + | NexusGenRootTypes['jkcwiNhe'] + | NexusGenRootTypes['jmnxoYAy'] + | NexusGenRootTypes['jnFMLyxL'] + | NexusGenRootTypes['jrmLpsfT'] + | NexusGenRootTypes['JsAPYbRs'] + | NexusGenRootTypes['JuaucwDY'] + | NexusGenRootTypes['JXAbemqC'] + | NexusGenRootTypes['JZMQpjQv'] + | NexusGenRootTypes['kAFbqgpE'] + | NexusGenRootTypes['kAqRlGFR'] + | NexusGenRootTypes['KbTYPbTr'] + | NexusGenRootTypes['kEhnOaCH'] + | NexusGenRootTypes['KGbJMfhO'] + | NexusGenRootTypes['kHLLmfcE'] + | NexusGenRootTypes['kkQiMyOg'] + | NexusGenRootTypes['kKQNulhi'] + | NexusGenRootTypes['klkPkaYU'] + | NexusGenRootTypes['KoKtAqbt'] + | NexusGenRootTypes['kQUqAggO'] + | NexusGenRootTypes['KsPfaUFr'] + | NexusGenRootTypes['KvHHVcPa'] + | NexusGenRootTypes['KVIgujkc'] + | NexusGenRootTypes['kXMItaoE'] + | NexusGenRootTypes['laqqtHJN'] + | NexusGenRootTypes['LBePcCkW'] + | NexusGenRootTypes['ldqzvWyd'] + | NexusGenRootTypes['lFbOnWGE'] + | NexusGenRootTypes['lhdysNNV'] + | NexusGenRootTypes['LHxWkxKq'] + | NexusGenRootTypes['lifwEmKz'] + | NexusGenRootTypes['LMnZbpCI'] + | NexusGenRootTypes['lPtHeBuR'] + | NexusGenRootTypes['lsDifAmH'] + | NexusGenRootTypes['LtvKCzwe'] + | NexusGenRootTypes['lVumUBIa'] + | NexusGenRootTypes['mFSUfTPi'] + | NexusGenRootTypes['mKbKQhyO'] + | NexusGenRootTypes['mooFGlVS'] + | NexusGenRootTypes['MPQLFUho'] + | NexusGenRootTypes['mQIYoGzu'] + | NexusGenRootTypes['mtikMWMb'] + | NexusGenRootTypes['muuoinyp'] + | NexusGenRootTypes['MvpRfuhb'] + | NexusGenRootTypes['mZmlDoBs'] + | NexusGenRootTypes['NbTtwcUU'] + | NexusGenRootTypes['NczZcGdE'] + | NexusGenRootTypes['NefQmhqG'] + | NexusGenRootTypes['NETQHyFQ'] + | NexusGenRootTypes['newdlmuf'] + | NexusGenRootTypes['NlMnyCgu'] + | NexusGenRootTypes['NrrBYDim'] + | NexusGenRootTypes['NwPaWUGr'] + | NexusGenRootTypes['OBnGIgyZ'] + | NexusGenRootTypes['OehdOjXt'] + | NexusGenRootTypes['OfyEZrPd'] + | NexusGenRootTypes['ogOIrhgb'] + | NexusGenRootTypes['OjwpvBGH'] + | NexusGenRootTypes['oLLKSNvK'] + | NexusGenRootTypes['OwZeKGSU'] + | NexusGenRootTypes['OZfGULVa'] + | NexusGenRootTypes['PBGQfXYx'] + | NexusGenRootTypes['PGcwRfdb'] + | NexusGenRootTypes['phBMkPER'] + | NexusGenRootTypes['PHltFHbS'] + | NexusGenRootTypes['PNeiVzWR'] + | NexusGenRootTypes['pnfpWCgc'] + | NexusGenRootTypes['PNgZWWwo'] + | NexusGenRootTypes['PpTuFbFz'] + | NexusGenRootTypes['ptQOpnjR'] + | NexusGenRootTypes['PTtcHGFZ'] + | NexusGenRootTypes['PVCfSccj'] + | NexusGenRootTypes['PWOXDRzE'] + | NexusGenRootTypes['PwzFJfRE'] + | NexusGenRootTypes['PYCDIQQc'] + | NexusGenRootTypes['qBIjdcrW'] + | NexusGenRootTypes['qCzvlwRD'] + | NexusGenRootTypes['QelISHAj'] + | NexusGenRootTypes['QKdnhgbW'] + | NexusGenRootTypes['QMkOOMdT'] + | NexusGenRootTypes['QmPQoOZh'] + | NexusGenRootTypes['QxHzTNGy'] + | NexusGenRootTypes['qXlhbRwq'] + | NexusGenRootTypes['QXSXwpMN'] + | NexusGenRootTypes['RCZmHSOp'] + | NexusGenRootTypes['rDLkvRXw'] + | NexusGenRootTypes['rKZaCTrp'] + | NexusGenRootTypes['RMBiaCdu'] + | NexusGenRootTypes['RNSfiIOi'] + | NexusGenRootTypes['rsrjXXbp'] + | NexusGenRootTypes['RTcWEgoC'] + | NexusGenRootTypes['RVbkKVjJ'] + | NexusGenRootTypes['RydRYmBj'] + | NexusGenRootTypes['SBNNVkRr'] + | NexusGenRootTypes['ShqdAPLQ'] + | NexusGenRootTypes['sOPJOCHV'] + | NexusGenRootTypes['SsKBGyvg'] + | NexusGenRootTypes['Stydvxig'] + | NexusGenRootTypes['sYmZSZhS'] + | NexusGenRootTypes['TbgzaUgu'] + | NexusGenRootTypes['tBRvILTt'] + | NexusGenRootTypes['TDURJGny'] + | NexusGenRootTypes['TDztrYLm'] + | NexusGenRootTypes['TeZWMTzw'] + | NexusGenRootTypes['tfdcstkI'] + | NexusGenRootTypes['tgBSTWuP'] + | NexusGenRootTypes['tHuINsQQ'] + | NexusGenRootTypes['TKzetlpb'] + | NexusGenRootTypes['tndtDdZP'] + | NexusGenRootTypes['TppFHtyg'] + | NexusGenRootTypes['TWLZYGzk'] + | NexusGenRootTypes['tWYLhGmP'] + | NexusGenRootTypes['TZHgNTAO'] + | NexusGenRootTypes['uaVbWYYy'] + | NexusGenRootTypes['ubXmVvgH'] + | NexusGenRootTypes['UGJqdGDT'] + | NexusGenRootTypes['unjJMyow'] + | NexusGenRootTypes['uqAoXisC'] + | NexusGenRootTypes['UuNFAnQg'] + | NexusGenRootTypes['uxqOEIwV'] + | NexusGenRootTypes['VAvPoGEb'] + | NexusGenRootTypes['vKNwRocJ'] + | NexusGenRootTypes['vmWUXlxn'] + | NexusGenRootTypes['vveXjotS'] + | NexusGenRootTypes['vWCRSMfI'] + | NexusGenRootTypes['VynhbqCL'] + | NexusGenRootTypes['WaVLDFqC'] + | NexusGenRootTypes['WhUVndTD'] + | NexusGenRootTypes['WMsrUAGp'] + | NexusGenRootTypes['WoCNZkWp'] + | NexusGenRootTypes['WsneBHrs'] + | NexusGenRootTypes['WsNuPHEi'] + | NexusGenRootTypes['wtjYwstX'] + | NexusGenRootTypes['WurxotQy'] + | NexusGenRootTypes['wvbxCjzQ'] + | NexusGenRootTypes['wYUTmKCU'] + | NexusGenRootTypes['XdzKjpVP'] + | NexusGenRootTypes['XFYbFCkA'] + | NexusGenRootTypes['xHmRwgeG'] + | NexusGenRootTypes['XHvdKJbC'] + | NexusGenRootTypes['xnxcQfWx'] + | NexusGenRootTypes['Xqkpjqni'] + | NexusGenRootTypes['xUqWuwDO'] + | NexusGenRootTypes['XvyULguR'] + | NexusGenRootTypes['XwweqpQZ'] + | NexusGenRootTypes['YBZmfmWn'] + | NexusGenRootTypes['yJNnsHEj'] + | NexusGenRootTypes['yJubHpPP'] + | NexusGenRootTypes['yMjEoECr'] + | NexusGenRootTypes['YNnosqXJ'] + | NexusGenRootTypes['yNNQUmqa'] + | NexusGenRootTypes['yNumRBxd'] + | NexusGenRootTypes['yPDuKVOh'] + | NexusGenRootTypes['yrGYxJeE'] + | NexusGenRootTypes['yvlysvTB'] + | NexusGenRootTypes['YwFARARB'] + | NexusGenRootTypes['YxNVEAVR'] + | NexusGenRootTypes['YZpErVkH'] + | NexusGenRootTypes['ZbrxBPat'] + | NexusGenRootTypes['ZElcDXRS'] + | NexusGenRootTypes['ZeyczKBv'] + | NexusGenRootTypes['ZEyINaeG'] + | NexusGenRootTypes['zjnLruIQ'] + | NexusGenRootTypes['zlPOFwWi'] + | NexusGenRootTypes['zLwooCNa'] + | NexusGenRootTypes['zpZvbHAk'] + | NexusGenRootTypes['ZrPlFevQ'] + | NexusGenRootTypes['zUQFahzk'] + | NexusGenRootTypes['ZVaYkAdb'] + | NexusGenRootTypes['zvGUhtyF'] + | NexusGenRootTypes['ZzRSmAyf'] + MediumUnionType: + | NexusGenRootTypes['AOogKhAD'] + | NexusGenRootTypes['ApAniugk'] + | NexusGenRootTypes['AuMxHAoX'] + | NexusGenRootTypes['awDoUlrM'] + | NexusGenRootTypes['bGRbQdGF'] + | NexusGenRootTypes['bsuhpkhX'] + | NexusGenRootTypes['BXowGvwZ'] + | NexusGenRootTypes['CgAQHanX'] + | NexusGenRootTypes['cMxjKIfV'] + | NexusGenRootTypes['cXAmxvqv'] + | NexusGenRootTypes['dAmPEeQn'] + | NexusGenRootTypes['DBZLsxpr'] + | NexusGenRootTypes['deqJYjdv'] + | NexusGenRootTypes['dnjGpfIS'] + | NexusGenRootTypes['dnutiEie'] + | NexusGenRootTypes['dOWdqEud'] + | NexusGenRootTypes['ECChhDfK'] + | NexusGenRootTypes['eggnlUYr'] + | NexusGenRootTypes['EhpNnQJw'] + | NexusGenRootTypes['EjIQIfmv'] + | NexusGenRootTypes['eJSSQaaC'] + | NexusGenRootTypes['EtPHwkkm'] + | NexusGenRootTypes['FaJAYKqm'] + | NexusGenRootTypes['fvXQFkRb'] + | NexusGenRootTypes['fXnweaVk'] + | NexusGenRootTypes['GYbaqoRT'] + | NexusGenRootTypes['GzglazdH'] + | NexusGenRootTypes['hBCadJbD'] + | NexusGenRootTypes['HgYVPDgm'] + | NexusGenRootTypes['HjRDJhnX'] + | NexusGenRootTypes['hLptFSis'] + | NexusGenRootTypes['hQiYNmDV'] + | NexusGenRootTypes['hqweSGgf'] + | NexusGenRootTypes['HwkXtjRP'] + | NexusGenRootTypes['HZbsVdoX'] + | NexusGenRootTypes['IAOEaBfb'] + | NexusGenRootTypes['ICrkovFe'] + | NexusGenRootTypes['IhSGxaNc'] + | NexusGenRootTypes['ISayJMYD'] + | NexusGenRootTypes['iVjcPoMw'] + | NexusGenRootTypes['ixwjWVvf'] + | NexusGenRootTypes['Iypygftg'] + | NexusGenRootTypes['iZJAoMWm'] + | NexusGenRootTypes['jkcwiNhe'] + | NexusGenRootTypes['JuaucwDY'] + | NexusGenRootTypes['JZMQpjQv'] + | NexusGenRootTypes['kAFbqgpE'] + | NexusGenRootTypes['KbTYPbTr'] + | NexusGenRootTypes['kEhnOaCH'] + | NexusGenRootTypes['KsPfaUFr'] + | NexusGenRootTypes['KvHHVcPa'] + | NexusGenRootTypes['LBePcCkW'] + | NexusGenRootTypes['lhdysNNV'] + | NexusGenRootTypes['LHxWkxKq'] + | NexusGenRootTypes['LMnZbpCI'] + | NexusGenRootTypes['mFSUfTPi'] + | NexusGenRootTypes['muuoinyp'] + | NexusGenRootTypes['NefQmhqG'] + | NexusGenRootTypes['NETQHyFQ'] + | NexusGenRootTypes['OwZeKGSU'] + | NexusGenRootTypes['PBGQfXYx'] + | NexusGenRootTypes['PGcwRfdb'] + | NexusGenRootTypes['PNeiVzWR'] + | NexusGenRootTypes['pnfpWCgc'] + | NexusGenRootTypes['PNgZWWwo'] + | NexusGenRootTypes['PTtcHGFZ'] + | NexusGenRootTypes['PWOXDRzE'] + | NexusGenRootTypes['PwzFJfRE'] + | NexusGenRootTypes['qBIjdcrW'] + | NexusGenRootTypes['qCzvlwRD'] + | NexusGenRootTypes['QelISHAj'] + | NexusGenRootTypes['QMkOOMdT'] + | NexusGenRootTypes['qXlhbRwq'] + | NexusGenRootTypes['rKZaCTrp'] + | NexusGenRootTypes['RMBiaCdu'] + | NexusGenRootTypes['RNSfiIOi'] + | NexusGenRootTypes['sOPJOCHV'] + | NexusGenRootTypes['SsKBGyvg'] + | NexusGenRootTypes['TbgzaUgu'] + | NexusGenRootTypes['tHuINsQQ'] + | NexusGenRootTypes['TppFHtyg'] + | NexusGenRootTypes['TWLZYGzk'] + | NexusGenRootTypes['uaVbWYYy'] + | NexusGenRootTypes['ubXmVvgH'] + | NexusGenRootTypes['UGJqdGDT'] + | NexusGenRootTypes['WaVLDFqC'] + | NexusGenRootTypes['WhUVndTD'] + | NexusGenRootTypes['WoCNZkWp'] + | NexusGenRootTypes['WsneBHrs'] + | NexusGenRootTypes['wtjYwstX'] + | NexusGenRootTypes['WurxotQy'] + | NexusGenRootTypes['wvbxCjzQ'] + | NexusGenRootTypes['XFYbFCkA'] + | NexusGenRootTypes['xnxcQfWx'] + | NexusGenRootTypes['XvyULguR'] + | NexusGenRootTypes['YBZmfmWn'] + | NexusGenRootTypes['yJNnsHEj'] + | NexusGenRootTypes['yrGYxJeE'] + | NexusGenRootTypes['ZEyINaeG'] + | NexusGenRootTypes['zpZvbHAk'] + MediumUnionTypes: + | NexusGenRootTypes['ALXAXBKq'] + | NexusGenRootTypes['AOogKhAD'] + | NexusGenRootTypes['ApAniugk'] + | NexusGenRootTypes['bdmjhrZP'] + | NexusGenRootTypes['BiZjyuaY'] + | NexusGenRootTypes['bpcReAKs'] + | NexusGenRootTypes['bsuhpkhX'] + | NexusGenRootTypes['BXowGvwZ'] + | NexusGenRootTypes['CgAQHanX'] + | NexusGenRootTypes['cXAmxvqv'] + | NexusGenRootTypes['dAmPEeQn'] + | NexusGenRootTypes['dHKrfYNo'] + | NexusGenRootTypes['dnutiEie'] + | NexusGenRootTypes['dOWdqEud'] + | NexusGenRootTypes['DpnWHIJW'] + | NexusGenRootTypes['ECChhDfK'] + | NexusGenRootTypes['eemljdwg'] + | NexusGenRootTypes['EqEZXLCy'] + | NexusGenRootTypes['eROeesVg'] + | NexusGenRootTypes['EtPHwkkm'] + | NexusGenRootTypes['ETUiuOHD'] + | NexusGenRootTypes['FaJAYKqm'] + | NexusGenRootTypes['fDAloqko'] + | NexusGenRootTypes['fXnweaVk'] + | NexusGenRootTypes['GdxXCAak'] + | NexusGenRootTypes['gQDQWruj'] + | NexusGenRootTypes['gqhvwsiF'] + | NexusGenRootTypes['GsbHZkLK'] + | NexusGenRootTypes['GzglazdH'] + | NexusGenRootTypes['HgYVPDgm'] + | NexusGenRootTypes['hLptFSis'] + | NexusGenRootTypes['hOqSbuBE'] + | NexusGenRootTypes['hqweSGgf'] + | NexusGenRootTypes['HwkXtjRP'] + | NexusGenRootTypes['HXZUTyvG'] + | NexusGenRootTypes['HZbsVdoX'] + | NexusGenRootTypes['ICrkovFe'] + | NexusGenRootTypes['IWhegzTM'] + | NexusGenRootTypes['ixwjWVvf'] + | NexusGenRootTypes['Iypygftg'] + | NexusGenRootTypes['IZERvBgk'] + | NexusGenRootTypes['JbsCxxcE'] + | NexusGenRootTypes['jkcwiNhe'] + | NexusGenRootTypes['KbTYPbTr'] + | NexusGenRootTypes['kkQiMyOg'] + | NexusGenRootTypes['kKQNulhi'] + | NexusGenRootTypes['kQUqAggO'] + | NexusGenRootTypes['KsPfaUFr'] + | NexusGenRootTypes['lhdysNNV'] + | NexusGenRootTypes['LHxWkxKq'] + | NexusGenRootTypes['LtvKCzwe'] + | NexusGenRootTypes['mooFGlVS'] + | NexusGenRootTypes['MPQLFUho'] + | NexusGenRootTypes['mQIYoGzu'] + | NexusGenRootTypes['muuoinyp'] + | NexusGenRootTypes['NbTtwcUU'] + | NexusGenRootTypes['NETQHyFQ'] + | NexusGenRootTypes['newdlmuf'] + | NexusGenRootTypes['OfyEZrPd'] + | NexusGenRootTypes['ogOIrhgb'] + | NexusGenRootTypes['PBGQfXYx'] + | NexusGenRootTypes['PGcwRfdb'] + | NexusGenRootTypes['pnfpWCgc'] + | NexusGenRootTypes['PpTuFbFz'] + | NexusGenRootTypes['PWOXDRzE'] + | NexusGenRootTypes['PwzFJfRE'] + | NexusGenRootTypes['PYCDIQQc'] + | NexusGenRootTypes['qCzvlwRD'] + | NexusGenRootTypes['QelISHAj'] + | NexusGenRootTypes['QKdnhgbW'] + | NexusGenRootTypes['qXlhbRwq'] + | NexusGenRootTypes['RCZmHSOp'] + | NexusGenRootTypes['rKZaCTrp'] + | NexusGenRootTypes['RMBiaCdu'] + | NexusGenRootTypes['RNSfiIOi'] + | NexusGenRootTypes['RTcWEgoC'] + | NexusGenRootTypes['SsKBGyvg'] + | NexusGenRootTypes['sYmZSZhS'] + | NexusGenRootTypes['TDURJGny'] + | NexusGenRootTypes['TDztrYLm'] + | NexusGenRootTypes['tgBSTWuP'] + | NexusGenRootTypes['tndtDdZP'] + | NexusGenRootTypes['TppFHtyg'] + | NexusGenRootTypes['TWLZYGzk'] + | NexusGenRootTypes['uaVbWYYy'] + | NexusGenRootTypes['UGJqdGDT'] + | NexusGenRootTypes['uqAoXisC'] + | NexusGenRootTypes['uxqOEIwV'] + | NexusGenRootTypes['vveXjotS'] + | NexusGenRootTypes['vWCRSMfI'] + | NexusGenRootTypes['VynhbqCL'] + | NexusGenRootTypes['WurxotQy'] + | NexusGenRootTypes['XdzKjpVP'] + | NexusGenRootTypes['XFYbFCkA'] + | NexusGenRootTypes['xHmRwgeG'] + | NexusGenRootTypes['xnxcQfWx'] + | NexusGenRootTypes['Xqkpjqni'] + | NexusGenRootTypes['YBZmfmWn'] + | NexusGenRootTypes['ZeyczKBv'] + | NexusGenRootTypes['ZEyINaeG'] +} + +export type NexusGenRootTypes = NexusGenObjects & NexusGenUnions + +export type NexusGenAllTypes = NexusGenRootTypes & NexusGenScalars + +export interface NexusGenFieldTypes { + ALXAXBKq: { + // field return type + id41: string | null // ID + } + AOogKhAD: { + // field return type + id53: string | null // ID + } + AQDzZPsI: { + // field return type + id193: string | null // ID + } + ApAniugk: { + // field return type + id51: string | null // ID + } + AuMxHAoX: { + // field return type + id146: string | null // ID + } + BAzfAeMR: { + // field return type + id191: string | null // ID + } + BFohGIGQ: { + // field return type + id286: string | null // ID + } + BTIsXTrL: { + // field return type + id250: string | null // ID + } + BWwxnXpM: { + // field return type + id294: string | null // ID + } + BXowGvwZ: { + // field return type + id63: string | null // ID + } + BYPWzETJ: { + // field return type + id266: string | null // ID + } + BiZjyuaY: { + // field return type + id25: string | null // ID + } + Bjgguvhd: { + // field return type + id170: string | null // ID + } + CCXSFsMn: { + // field return type + id268: string | null // ID + } + CXumheDD: { + // field return type + id172: string | null // ID + } + CgAQHanX: { + // field return type + id96: string | null // ID + } + DBZLsxpr: { + // field return type + id137: string | null // ID + } + DGxuhtpo: { + // field return type + id219: string | null // ID + } + DKEJFUiy: { + // field return type + id295: string | null // ID + } + DMggicLd: { + // field return type + id239: string | null // ID + } + DNohRdIN: { + // field return type + id203: string | null // ID + } + DbgPTfDo: { + // field return type + id254: string | null // ID + } + DkoAlvGn: { + // field return type + id282: string | null // ID + } + DpnWHIJW: { + // field return type + id7: string | null // ID + } + ECChhDfK: { + // field return type + id79: string | null // ID + } + ETUiuOHD: { + // field return type + id35: string | null // ID + } + EhpNnQJw: { + // field return type + id121: string | null // ID + } + EjIQIfmv: { + // field return type + id126: string | null // ID + } + EqEZXLCy: { + // field return type + id30: string | null // ID + } + EtPHwkkm: { + // field return type + id57: string | null // ID + } + EzcWBhIv: { + // field return type + id214: string | null // ID + } + FDouQoXO: { + // field return type + id173: string | null // ID + } + FHLtgKoA: { + // field return type + id258: string | null // ID + } + FaJAYKqm: { + // field return type + id93: string | null // ID + } + FcFlCNAk: { + // field return type + id228: string | null // ID + } + FvftqquW: { + // field return type + id281: string | null // ID + } + GDATeumz: { + // field return type + id256: string | null // ID + } + GYbaqoRT: { + // field return type + id105: string | null // ID + } + GcpbGXTn: { + // field return type + id218: string | null // ID + } + GdxXCAak: { + // field return type + id13: string | null // ID + } + GhHKLcZe: { + // field return type + id199: string | null // ID + } + GsbHZkLK: { + // field return type + id34: string | null // ID + } + GwkBnXKj: { + // field return type + id207: string | null // ID + } + GzglazdH: { + // field return type + id95: string | null // ID + } + HENcJewx: { + // field return type + id185: string | null // ID + } + HIPZQFdS: { + // field return type + id251: string | null // ID + } + HJmsvtgX: { + // field return type + id151: string | null // ID + } + HLRWzsTU: { + // field return type + id182: string | null // ID + } + HNLQTErw: { + // field return type + id155: string | null // ID + } + HWMyawvm: { + // field return type + id187: string | null // ID + } + HXZUTyvG: { + // field return type + id46: string | null // ID + } + HZbsVdoX: { + // field return type + id68: string | null // ID + } + HdiyXGxs: { + // field return type + id178: string | null // ID + } + HgYVPDgm: { + // field return type + id87: string | null // ID + } + HjRDJhnX: { + // field return type + id133: string | null // ID + } + HwkXtjRP: { + // field return type + id84: string | null // ID + } + HxCkBUxv: { + // field return type + id192: string | null // ID + } + IAOEaBfb: { + // field return type + id120: string | null // ID + } + IBZxPcZb: { + // field return type + id205: string | null // ID + } + ICrkovFe: { + // field return type + id73: string | null // ID + } + IGibGxHO: { + // field return type + id204: string | null // ID + } + ISayJMYD: { + // field return type + id129: string | null // ID + } + IWhegzTM: { + // field return type + id43: string | null // ID + } + IZERvBgk: { + // field return type + id32: string | null // ID + } + IhSGxaNc: { + // field return type + id103: string | null // ID + } + IhtaZNUi: { + // field return type + id238: string | null // ID + } + IqZAiUKE: { + // field return type + id223: string | null // ID + } + IuVQPFJN: { + // field return type + id152: string | null // ID + } + Iypygftg: { + // field return type + id77: string | null // ID + } + JXAbemqC: { + // field return type + id153: string | null // ID + } + JZMQpjQv: { + // field return type + id125: string | null // ID + } + JbsCxxcE: { + // field return type + id8: string | null // ID + } + JjkgZKrV: { + // field return type + id202: string | null // ID + } + JsAPYbRs: { + // field return type + id156: string | null // ID + } + JuaucwDY: { + // field return type + id134: string | null // ID + } + KGbJMfhO: { + // field return type + id159: string | null // ID + } + KVIgujkc: { + // field return type + id157: string | null // ID + } + KbTYPbTr: { + // field return type + id92: string | null // ID + } + KoKtAqbt: { + // field return type + id213: string | null // ID + } + KsPfaUFr: { + // field return type + id86: string | null // ID + } + KvHHVcPa: { + // field return type + id147: string | null // ID + } + LBePcCkW: { + // field return type + id112: string | null // ID + } + LHxWkxKq: { + // field return type + id64: string | null // ID + } + LMnZbpCI: { + // field return type + id106: string | null // ID + } + LtvKCzwe: { + // field return type + id19: string | null // ID + } + MPQLFUho: { + // field return type + id31: string | null // ID + } + MvpRfuhb: { + // field return type + id198: string | null // ID + } + NETQHyFQ: { + // field return type + id55: string | null // ID + } + NbTtwcUU: { + // field return type + id0: string | null // ID + } + NczZcGdE: { + // field return type + id209: string | null // ID + } + NefQmhqG: { + // field return type + id149: string | null // ID + } + NlMnyCgu: { + // field return type + id162: string | null // ID + } + NrrBYDim: { + // field return type + id163: string | null // ID + } + NwPaWUGr: { + // field return type + id292: string | null // ID + } + OBnGIgyZ: { + // field return type + id242: string | null // ID + } + OZfGULVa: { + // field return type + id195: string | null // ID + } + OehdOjXt: { + // field return type + id278: string | null // ID + } + OfyEZrPd: { + // field return type + id21: string | null // ID + } + OjwpvBGH: { + // field return type + id227: string | null // ID + } + OwZeKGSU: { + // field return type + id128: string | null // ID + } + PBGQfXYx: { + // field return type + id83: string | null // ID + } + PGcwRfdb: { + // field return type + id62: string | null // ID + } + PHltFHbS: { + // field return type + id226: string | null // ID + } + PNeiVzWR: { + // field return type + id113: string | null // ID + } + PNgZWWwo: { + // field return type + id148: string | null // ID + } + PTtcHGFZ: { + // field return type + id114: string | null // ID + } + PVCfSccj: { + // field return type + id224: string | null // ID + } + PWOXDRzE: { + // field return type + id56: string | null // ID + } + PYCDIQQc: { + // field return type + id24: string | null // ID + } + PpTuFbFz: { + // field return type + id6: string | null // ID + } + PwzFJfRE: { + // field return type + id90: string | null // ID + } + QKdnhgbW: { + // field return type + id3: string | null // ID + } + QMkOOMdT: { + // field return type + id122: string | null // ID + } + QXSXwpMN: { + // field return type + id211: string | null // ID + } + QelISHAj: { + // field return type + id58: string | null // ID + } + QmPQoOZh: { + // field return type + id220: string | null // ID + } + Query: { + // field return type + ok: boolean // Boolean! + } + QxHzTNGy: { + // field return type + id265: string | null // ID + } + RCZmHSOp: { + // field return type + id10: string | null // ID + } + RMBiaCdu: { + // field return type + id75: string | null // ID + } + RNSfiIOi: { + // field return type + id61: string | null // ID + } + RTcWEgoC: { + // field return type + id44: string | null // ID + } + RVbkKVjJ: { + // field return type + id231: string | null // ID + } + RydRYmBj: { + // field return type + id255: string | null // ID + } + SBNNVkRr: { + // field return type + id257: string | null // ID + } + ShqdAPLQ: { + // field return type + id297: string | null // ID + } + SsKBGyvg: { + // field return type + id50: string | null // ID + } + Stydvxig: { + // field return type + id245: string | null // ID + } + TDURJGny: { + // field return type + id2: string | null // ID + } + TDztrYLm: { + // field return type + id20: string | null // ID + } + TKzetlpb: { + // field return type + id171: string | null // ID + } + TWLZYGzk: { + // field return type + id59: string | null // ID + } + TZHgNTAO: { + // field return type + id215: string | null // ID + } + TbgzaUgu: { + // field return type + id123: string | null // ID + } + TeZWMTzw: { + // field return type + id175: string | null // ID + } + TppFHtyg: { + // field return type + id82: string | null // ID + } + UGJqdGDT: { + // field return type + id54: string | null // ID + } + UuNFAnQg: { + // field return type + id263: string | null // ID + } + VAvPoGEb: { + // field return type + id217: string | null // ID + } + VynhbqCL: { + // field return type + id26: string | null // ID + } + WMsrUAGp: { + // field return type + id181: string | null // ID + } + WaVLDFqC: { + // field return type + id136: string | null // ID + } + WhUVndTD: { + // field return type + id145: string | null // ID + } + WoCNZkWp: { + // field return type + id144: string | null // ID + } + WsNuPHEi: { + // field return type + id225: string | null // ID + } + WsneBHrs: { + // field return type + id101: string | null // ID + } + WurxotQy: { + // field return type + id72: string | null // ID + } + XFYbFCkA: { + // field return type + id69: string | null // ID + } + XHvdKJbC: { + // field return type + id285: string | null // ID + } + XdzKjpVP: { + // field return type + id4: string | null // ID + } + Xqkpjqni: { + // field return type + id15: string | null // ID + } + XvyULguR: { + // field return type + id104: string | null // ID + } + XwweqpQZ: { + // field return type + id275: string | null // ID + } + YBZmfmWn: { + // field return type + id88: string | null // ID + } + YNnosqXJ: { + // field return type + id244: string | null // ID + } + YZpErVkH: { + // field return type + id264: string | null // ID + } + YwFARARB: { + // field return type + id216: string | null // ID + } + YxNVEAVR: { + // field return type + id221: string | null // ID + } + ZElcDXRS: { + // field return type + id165: string | null // ID + } + ZEyINaeG: { + // field return type + id85: string | null // ID + } + ZVaYkAdb: { + // field return type + id279: string | null // ID + } + ZbrxBPat: { + // field return type + id232: string | null // ID + } + ZeyczKBv: { + // field return type + id12: string | null // ID + } + ZrPlFevQ: { + // field return type + id248: string | null // ID + } + ZzRSmAyf: { + // field return type + id161: string | null // ID + } + aEOOAAKG: { + // field return type + id166: string | null // ID + } + aKYfIihK: { + // field return type + id212: string | null // ID + } + ahctkrlN: { + // field return type + id222: string | null // ID + } + arOfyZvi: { + // field return type + id194: string | null // ID + } + awDoUlrM: { + // field return type + id119: string | null // ID + } + bGRbQdGF: { + // field return type + id143: string | null // ID + } + bLcHZPpX: { + // field return type + id230: string | null // ID + } + bNaHPVhI: { + // field return type + id234: string | null // ID + } + bdmjhrZP: { + // field return type + id36: string | null // ID + } + bndWrLAg: { + // field return type + id180: string | null // ID + } + bpcReAKs: { + // field return type + id48: string | null // ID + } + bsuhpkhX: { + // field return type + id67: string | null // ID + } + cEORMlXC: { + // field return type + id169: string | null // ID + } + cGxDWUGD: { + // field return type + id247: string | null // ID + } + cMxjKIfV: { + // field return type + id132: string | null // ID + } + cXAmxvqv: { + // field return type + id81: string | null // ID + } + ctfzshTJ: { + // field return type + id197: string | null // ID + } + dAmPEeQn: { + // field return type + id98: string | null // ID + } + dHKrfYNo: { + // field return type + id29: string | null // ID + } + dOWdqEud: { + // field return type + id66: string | null // ID + } + dbFplbat: { + // field return type + id184: string | null // ID + } + deqJYjdv: { + // field return type + id107: string | null // ID + } + dnjGpfIS: { + // field return type + id118: string | null // ID + } + dnutiEie: { + // field return type + id60: string | null // ID + } + eJSSQaaC: { + // field return type + id140: string | null // ID + } + eROeesVg: { + // field return type + id38: string | null // ID + } + eWlLfMzi: { + // field return type + id270: string | null // ID + } + eemljdwg: { + // field return type + id1: string | null // ID + } + eggnlUYr: { + // field return type + id109: string | null // ID + } + euCWAGET: { + // field return type + id158: string | null // ID + } + fDAloqko: { + // field return type + id16: string | null // ID + } + fFyvwcxZ: { + // field return type + id274: string | null // ID + } + fPXYtcbT: { + // field return type + id276: string | null // ID + } + fXnweaVk: { + // field return type + id52: string | null // ID + } + faKaQEBn: { + // field return type + id284: string | null // ID + } + fvXQFkRb: { + // field return type + id115: string | null // ID + } + gQDQWruj: { + // field return type + id22: string | null // ID + } + gfyuMPLk: { + // field return type + id189: string | null // ID + } + gqhvwsiF: { + // field return type + id23: string | null // ID + } + gvxFkejN: { + // field return type + id290: string | null // ID + } + hAfKmdaD: { + // field return type + id168: string | null // ID + } + hBCadJbD: { + // field return type + id138: string | null // ID + } + hDsbddpo: { + // field return type + id237: string | null // ID + } + hEyyqHvv: { + // field return type + id252: string | null // ID + } + hIjYlIps: { + // field return type + id210: string | null // ID + } + hLptFSis: { + // field return type + id91: string | null // ID + } + hOqSbuBE: { + // field return type + id27: string | null // ID + } + hQiYNmDV: { + // field return type + id127: string | null // ID + } + hTNuohNQ: { + // field return type + id271: string | null // ID + } + hgsVEiUk: { + // field return type + id240: string | null // ID + } + hqweSGgf: { + // field return type + id65: string | null // ID + } + iVjcPoMw: { + // field return type + id100: string | null // ID + } + iWpPsvNV: { + // field return type + id259: string | null // ID + } + iZJAoMWm: { + // field return type + id141: string | null // ID + } + iqXgPwiC: { + // field return type + id293: string | null // ID + } + ixwjWVvf: { + // field return type + id97: string | null // ID + } + jAUaKDuu: { + // field return type + id260: string | null // ID + } + jCnSiJOq: { + // field return type + id188: string | null // ID + } + jciWswYD: { + // field return type + id208: string | null // ID + } + jkcwiNhe: { + // field return type + id74: string | null // ID + } + jmnxoYAy: { + // field return type + id287: string | null // ID + } + jnFMLyxL: { + // field return type + id277: string | null // ID + } + jrmLpsfT: { + // field return type + id201: string | null // ID + } + kAFbqgpE: { + // field return type + id102: string | null // ID + } + kAqRlGFR: { + // field return type + id299: string | null // ID + } + kEhnOaCH: { + // field return type + id111: string | null // ID + } + kHLLmfcE: { + // field return type + id164: string | null // ID + } + kKQNulhi: { + // field return type + id5: string | null // ID + } + kQUqAggO: { + // field return type + id17: string | null // ID + } + kXMItaoE: { + // field return type + id154: string | null // ID + } + kkQiMyOg: { + // field return type + id33: string | null // ID + } + klkPkaYU: { + // field return type + id272: string | null // ID + } + lFbOnWGE: { + // field return type + id280: string | null // ID + } + lPtHeBuR: { + // field return type + id160: string | null // ID + } + lVumUBIa: { + // field return type + id174: string | null // ID + } + laqqtHJN: { + // field return type + id206: string | null // ID + } + ldqzvWyd: { + // field return type + id235: string | null // ID + } + lhdysNNV: { + // field return type + id71: string | null // ID + } + lifwEmKz: { + // field return type + id246: string | null // ID + } + lsDifAmH: { + // field return type + id298: string | null // ID + } + mFSUfTPi: { + // field return type + id116: string | null // ID + } + mKbKQhyO: { + // field return type + id167: string | null // ID + } + mQIYoGzu: { + // field return type + id28: string | null // ID + } + mZmlDoBs: { + // field return type + id273: string | null // ID + } + mooFGlVS: { + // field return type + id14: string | null // ID + } + mtikMWMb: { + // field return type + id261: string | null // ID + } + muuoinyp: { + // field return type + id70: string | null // ID + } + newdlmuf: { + // field return type + id39: string | null // ID + } + oLLKSNvK: { + // field return type + id176: string | null // ID + } + ogOIrhgb: { + // field return type + id47: string | null // ID + } + phBMkPER: { + // field return type + id236: string | null // ID + } + pnfpWCgc: { + // field return type + id99: string | null // ID + } + ptQOpnjR: { + // field return type + id190: string | null // ID + } + qBIjdcrW: { + // field return type + id142: string | null // ID + } + qCzvlwRD: { + // field return type + id80: string | null // ID + } + qXlhbRwq: { + // field return type + id78: string | null // ID + } + rDLkvRXw: { + // field return type + id296: string | null // ID + } + rKZaCTrp: { + // field return type + id89: string | null // ID + } + rsrjXXbp: { + // field return type + id267: string | null // ID + } + sOPJOCHV: { + // field return type + id108: string | null // ID + } + sYmZSZhS: { + // field return type + id45: string | null // ID + } + tBRvILTt: { + // field return type + id177: string | null // ID + } + tHuINsQQ: { + // field return type + id117: string | null // ID + } + tWYLhGmP: { + // field return type + id253: string | null // ID + } + tfdcstkI: { + // field return type + id262: string | null // ID + } + tgBSTWuP: { + // field return type + id40: string | null // ID + } + tndtDdZP: { + // field return type + id18: string | null // ID + } + uaVbWYYy: { + // field return type + id94: string | null // ID + } + ubXmVvgH: { + // field return type + id139: string | null // ID + } + unjJMyow: { + // field return type + id249: string | null // ID + } + uqAoXisC: { + // field return type + id9: string | null // ID + } + uxqOEIwV: { + // field return type + id49: string | null // ID + } + vKNwRocJ: { + // field return type + id229: string | null // ID + } + vWCRSMfI: { + // field return type + id37: string | null // ID + } + vmWUXlxn: { + // field return type + id233: string | null // ID + } + vveXjotS: { + // field return type + id11: string | null // ID + } + wYUTmKCU: { + // field return type + id291: string | null // ID + } + wtjYwstX: { + // field return type + id110: string | null // ID + } + wvbxCjzQ: { + // field return type + id131: string | null // ID + } + xHmRwgeG: { + // field return type + id42: string | null // ID + } + xUqWuwDO: { + // field return type + id288: string | null // ID + } + xnxcQfWx: { + // field return type + id76: string | null // ID + } + yJNnsHEj: { + // field return type + id135: string | null // ID + } + yJubHpPP: { + // field return type + id243: string | null // ID + } + yMjEoECr: { + // field return type + id196: string | null // ID + } + yNNQUmqa: { + // field return type + id150: string | null // ID + } + yNumRBxd: { + // field return type + id200: string | null // ID + } + yPDuKVOh: { + // field return type + id241: string | null // ID + } + yrGYxJeE: { + // field return type + id130: string | null // ID + } + yvlysvTB: { + // field return type + id269: string | null // ID + } + zLwooCNa: { + // field return type + id179: string | null // ID + } + zUQFahzk: { + // field return type + id283: string | null // ID + } + zjnLruIQ: { + // field return type + id289: string | null // ID + } + zlPOFwWi: { + // field return type + id183: string | null // ID + } + zpZvbHAk: { + // field return type + id124: string | null // ID + } + zvGUhtyF: { + // field return type + id186: string | null // ID + } +} + +export interface NexusGenFieldTypeNames { + ALXAXBKq: { + // field return type name + id41: 'ID' + } + AOogKhAD: { + // field return type name + id53: 'ID' + } + AQDzZPsI: { + // field return type name + id193: 'ID' + } + ApAniugk: { + // field return type name + id51: 'ID' + } + AuMxHAoX: { + // field return type name + id146: 'ID' + } + BAzfAeMR: { + // field return type name + id191: 'ID' + } + BFohGIGQ: { + // field return type name + id286: 'ID' + } + BTIsXTrL: { + // field return type name + id250: 'ID' + } + BWwxnXpM: { + // field return type name + id294: 'ID' + } + BXowGvwZ: { + // field return type name + id63: 'ID' + } + BYPWzETJ: { + // field return type name + id266: 'ID' + } + BiZjyuaY: { + // field return type name + id25: 'ID' + } + Bjgguvhd: { + // field return type name + id170: 'ID' + } + CCXSFsMn: { + // field return type name + id268: 'ID' + } + CXumheDD: { + // field return type name + id172: 'ID' + } + CgAQHanX: { + // field return type name + id96: 'ID' + } + DBZLsxpr: { + // field return type name + id137: 'ID' + } + DGxuhtpo: { + // field return type name + id219: 'ID' + } + DKEJFUiy: { + // field return type name + id295: 'ID' + } + DMggicLd: { + // field return type name + id239: 'ID' + } + DNohRdIN: { + // field return type name + id203: 'ID' + } + DbgPTfDo: { + // field return type name + id254: 'ID' + } + DkoAlvGn: { + // field return type name + id282: 'ID' + } + DpnWHIJW: { + // field return type name + id7: 'ID' + } + ECChhDfK: { + // field return type name + id79: 'ID' + } + ETUiuOHD: { + // field return type name + id35: 'ID' + } + EhpNnQJw: { + // field return type name + id121: 'ID' + } + EjIQIfmv: { + // field return type name + id126: 'ID' + } + EqEZXLCy: { + // field return type name + id30: 'ID' + } + EtPHwkkm: { + // field return type name + id57: 'ID' + } + EzcWBhIv: { + // field return type name + id214: 'ID' + } + FDouQoXO: { + // field return type name + id173: 'ID' + } + FHLtgKoA: { + // field return type name + id258: 'ID' + } + FaJAYKqm: { + // field return type name + id93: 'ID' + } + FcFlCNAk: { + // field return type name + id228: 'ID' + } + FvftqquW: { + // field return type name + id281: 'ID' + } + GDATeumz: { + // field return type name + id256: 'ID' + } + GYbaqoRT: { + // field return type name + id105: 'ID' + } + GcpbGXTn: { + // field return type name + id218: 'ID' + } + GdxXCAak: { + // field return type name + id13: 'ID' + } + GhHKLcZe: { + // field return type name + id199: 'ID' + } + GsbHZkLK: { + // field return type name + id34: 'ID' + } + GwkBnXKj: { + // field return type name + id207: 'ID' + } + GzglazdH: { + // field return type name + id95: 'ID' + } + HENcJewx: { + // field return type name + id185: 'ID' + } + HIPZQFdS: { + // field return type name + id251: 'ID' + } + HJmsvtgX: { + // field return type name + id151: 'ID' + } + HLRWzsTU: { + // field return type name + id182: 'ID' + } + HNLQTErw: { + // field return type name + id155: 'ID' + } + HWMyawvm: { + // field return type name + id187: 'ID' + } + HXZUTyvG: { + // field return type name + id46: 'ID' + } + HZbsVdoX: { + // field return type name + id68: 'ID' + } + HdiyXGxs: { + // field return type name + id178: 'ID' + } + HgYVPDgm: { + // field return type name + id87: 'ID' + } + HjRDJhnX: { + // field return type name + id133: 'ID' + } + HwkXtjRP: { + // field return type name + id84: 'ID' + } + HxCkBUxv: { + // field return type name + id192: 'ID' + } + IAOEaBfb: { + // field return type name + id120: 'ID' + } + IBZxPcZb: { + // field return type name + id205: 'ID' + } + ICrkovFe: { + // field return type name + id73: 'ID' + } + IGibGxHO: { + // field return type name + id204: 'ID' + } + ISayJMYD: { + // field return type name + id129: 'ID' + } + IWhegzTM: { + // field return type name + id43: 'ID' + } + IZERvBgk: { + // field return type name + id32: 'ID' + } + IhSGxaNc: { + // field return type name + id103: 'ID' + } + IhtaZNUi: { + // field return type name + id238: 'ID' + } + IqZAiUKE: { + // field return type name + id223: 'ID' + } + IuVQPFJN: { + // field return type name + id152: 'ID' + } + Iypygftg: { + // field return type name + id77: 'ID' + } + JXAbemqC: { + // field return type name + id153: 'ID' + } + JZMQpjQv: { + // field return type name + id125: 'ID' + } + JbsCxxcE: { + // field return type name + id8: 'ID' + } + JjkgZKrV: { + // field return type name + id202: 'ID' + } + JsAPYbRs: { + // field return type name + id156: 'ID' + } + JuaucwDY: { + // field return type name + id134: 'ID' + } + KGbJMfhO: { + // field return type name + id159: 'ID' + } + KVIgujkc: { + // field return type name + id157: 'ID' + } + KbTYPbTr: { + // field return type name + id92: 'ID' + } + KoKtAqbt: { + // field return type name + id213: 'ID' + } + KsPfaUFr: { + // field return type name + id86: 'ID' + } + KvHHVcPa: { + // field return type name + id147: 'ID' + } + LBePcCkW: { + // field return type name + id112: 'ID' + } + LHxWkxKq: { + // field return type name + id64: 'ID' + } + LMnZbpCI: { + // field return type name + id106: 'ID' + } + LtvKCzwe: { + // field return type name + id19: 'ID' + } + MPQLFUho: { + // field return type name + id31: 'ID' + } + MvpRfuhb: { + // field return type name + id198: 'ID' + } + NETQHyFQ: { + // field return type name + id55: 'ID' + } + NbTtwcUU: { + // field return type name + id0: 'ID' + } + NczZcGdE: { + // field return type name + id209: 'ID' + } + NefQmhqG: { + // field return type name + id149: 'ID' + } + NlMnyCgu: { + // field return type name + id162: 'ID' + } + NrrBYDim: { + // field return type name + id163: 'ID' + } + NwPaWUGr: { + // field return type name + id292: 'ID' + } + OBnGIgyZ: { + // field return type name + id242: 'ID' + } + OZfGULVa: { + // field return type name + id195: 'ID' + } + OehdOjXt: { + // field return type name + id278: 'ID' + } + OfyEZrPd: { + // field return type name + id21: 'ID' + } + OjwpvBGH: { + // field return type name + id227: 'ID' + } + OwZeKGSU: { + // field return type name + id128: 'ID' + } + PBGQfXYx: { + // field return type name + id83: 'ID' + } + PGcwRfdb: { + // field return type name + id62: 'ID' + } + PHltFHbS: { + // field return type name + id226: 'ID' + } + PNeiVzWR: { + // field return type name + id113: 'ID' + } + PNgZWWwo: { + // field return type name + id148: 'ID' + } + PTtcHGFZ: { + // field return type name + id114: 'ID' + } + PVCfSccj: { + // field return type name + id224: 'ID' + } + PWOXDRzE: { + // field return type name + id56: 'ID' + } + PYCDIQQc: { + // field return type name + id24: 'ID' + } + PpTuFbFz: { + // field return type name + id6: 'ID' + } + PwzFJfRE: { + // field return type name + id90: 'ID' + } + QKdnhgbW: { + // field return type name + id3: 'ID' + } + QMkOOMdT: { + // field return type name + id122: 'ID' + } + QXSXwpMN: { + // field return type name + id211: 'ID' + } + QelISHAj: { + // field return type name + id58: 'ID' + } + QmPQoOZh: { + // field return type name + id220: 'ID' + } + Query: { + // field return type name + ok: 'Boolean' + } + QxHzTNGy: { + // field return type name + id265: 'ID' + } + RCZmHSOp: { + // field return type name + id10: 'ID' + } + RMBiaCdu: { + // field return type name + id75: 'ID' + } + RNSfiIOi: { + // field return type name + id61: 'ID' + } + RTcWEgoC: { + // field return type name + id44: 'ID' + } + RVbkKVjJ: { + // field return type name + id231: 'ID' + } + RydRYmBj: { + // field return type name + id255: 'ID' + } + SBNNVkRr: { + // field return type name + id257: 'ID' + } + ShqdAPLQ: { + // field return type name + id297: 'ID' + } + SsKBGyvg: { + // field return type name + id50: 'ID' + } + Stydvxig: { + // field return type name + id245: 'ID' + } + TDURJGny: { + // field return type name + id2: 'ID' + } + TDztrYLm: { + // field return type name + id20: 'ID' + } + TKzetlpb: { + // field return type name + id171: 'ID' + } + TWLZYGzk: { + // field return type name + id59: 'ID' + } + TZHgNTAO: { + // field return type name + id215: 'ID' + } + TbgzaUgu: { + // field return type name + id123: 'ID' + } + TeZWMTzw: { + // field return type name + id175: 'ID' + } + TppFHtyg: { + // field return type name + id82: 'ID' + } + UGJqdGDT: { + // field return type name + id54: 'ID' + } + UuNFAnQg: { + // field return type name + id263: 'ID' + } + VAvPoGEb: { + // field return type name + id217: 'ID' + } + VynhbqCL: { + // field return type name + id26: 'ID' + } + WMsrUAGp: { + // field return type name + id181: 'ID' + } + WaVLDFqC: { + // field return type name + id136: 'ID' + } + WhUVndTD: { + // field return type name + id145: 'ID' + } + WoCNZkWp: { + // field return type name + id144: 'ID' + } + WsNuPHEi: { + // field return type name + id225: 'ID' + } + WsneBHrs: { + // field return type name + id101: 'ID' + } + WurxotQy: { + // field return type name + id72: 'ID' + } + XFYbFCkA: { + // field return type name + id69: 'ID' + } + XHvdKJbC: { + // field return type name + id285: 'ID' + } + XdzKjpVP: { + // field return type name + id4: 'ID' + } + Xqkpjqni: { + // field return type name + id15: 'ID' + } + XvyULguR: { + // field return type name + id104: 'ID' + } + XwweqpQZ: { + // field return type name + id275: 'ID' + } + YBZmfmWn: { + // field return type name + id88: 'ID' + } + YNnosqXJ: { + // field return type name + id244: 'ID' + } + YZpErVkH: { + // field return type name + id264: 'ID' + } + YwFARARB: { + // field return type name + id216: 'ID' + } + YxNVEAVR: { + // field return type name + id221: 'ID' + } + ZElcDXRS: { + // field return type name + id165: 'ID' + } + ZEyINaeG: { + // field return type name + id85: 'ID' + } + ZVaYkAdb: { + // field return type name + id279: 'ID' + } + ZbrxBPat: { + // field return type name + id232: 'ID' + } + ZeyczKBv: { + // field return type name + id12: 'ID' + } + ZrPlFevQ: { + // field return type name + id248: 'ID' + } + ZzRSmAyf: { + // field return type name + id161: 'ID' + } + aEOOAAKG: { + // field return type name + id166: 'ID' + } + aKYfIihK: { + // field return type name + id212: 'ID' + } + ahctkrlN: { + // field return type name + id222: 'ID' + } + arOfyZvi: { + // field return type name + id194: 'ID' + } + awDoUlrM: { + // field return type name + id119: 'ID' + } + bGRbQdGF: { + // field return type name + id143: 'ID' + } + bLcHZPpX: { + // field return type name + id230: 'ID' + } + bNaHPVhI: { + // field return type name + id234: 'ID' + } + bdmjhrZP: { + // field return type name + id36: 'ID' + } + bndWrLAg: { + // field return type name + id180: 'ID' + } + bpcReAKs: { + // field return type name + id48: 'ID' + } + bsuhpkhX: { + // field return type name + id67: 'ID' + } + cEORMlXC: { + // field return type name + id169: 'ID' + } + cGxDWUGD: { + // field return type name + id247: 'ID' + } + cMxjKIfV: { + // field return type name + id132: 'ID' + } + cXAmxvqv: { + // field return type name + id81: 'ID' + } + ctfzshTJ: { + // field return type name + id197: 'ID' + } + dAmPEeQn: { + // field return type name + id98: 'ID' + } + dHKrfYNo: { + // field return type name + id29: 'ID' + } + dOWdqEud: { + // field return type name + id66: 'ID' + } + dbFplbat: { + // field return type name + id184: 'ID' + } + deqJYjdv: { + // field return type name + id107: 'ID' + } + dnjGpfIS: { + // field return type name + id118: 'ID' + } + dnutiEie: { + // field return type name + id60: 'ID' + } + eJSSQaaC: { + // field return type name + id140: 'ID' + } + eROeesVg: { + // field return type name + id38: 'ID' + } + eWlLfMzi: { + // field return type name + id270: 'ID' + } + eemljdwg: { + // field return type name + id1: 'ID' + } + eggnlUYr: { + // field return type name + id109: 'ID' + } + euCWAGET: { + // field return type name + id158: 'ID' + } + fDAloqko: { + // field return type name + id16: 'ID' + } + fFyvwcxZ: { + // field return type name + id274: 'ID' + } + fPXYtcbT: { + // field return type name + id276: 'ID' + } + fXnweaVk: { + // field return type name + id52: 'ID' + } + faKaQEBn: { + // field return type name + id284: 'ID' + } + fvXQFkRb: { + // field return type name + id115: 'ID' + } + gQDQWruj: { + // field return type name + id22: 'ID' + } + gfyuMPLk: { + // field return type name + id189: 'ID' + } + gqhvwsiF: { + // field return type name + id23: 'ID' + } + gvxFkejN: { + // field return type name + id290: 'ID' + } + hAfKmdaD: { + // field return type name + id168: 'ID' + } + hBCadJbD: { + // field return type name + id138: 'ID' + } + hDsbddpo: { + // field return type name + id237: 'ID' + } + hEyyqHvv: { + // field return type name + id252: 'ID' + } + hIjYlIps: { + // field return type name + id210: 'ID' + } + hLptFSis: { + // field return type name + id91: 'ID' + } + hOqSbuBE: { + // field return type name + id27: 'ID' + } + hQiYNmDV: { + // field return type name + id127: 'ID' + } + hTNuohNQ: { + // field return type name + id271: 'ID' + } + hgsVEiUk: { + // field return type name + id240: 'ID' + } + hqweSGgf: { + // field return type name + id65: 'ID' + } + iVjcPoMw: { + // field return type name + id100: 'ID' + } + iWpPsvNV: { + // field return type name + id259: 'ID' + } + iZJAoMWm: { + // field return type name + id141: 'ID' + } + iqXgPwiC: { + // field return type name + id293: 'ID' + } + ixwjWVvf: { + // field return type name + id97: 'ID' + } + jAUaKDuu: { + // field return type name + id260: 'ID' + } + jCnSiJOq: { + // field return type name + id188: 'ID' + } + jciWswYD: { + // field return type name + id208: 'ID' + } + jkcwiNhe: { + // field return type name + id74: 'ID' + } + jmnxoYAy: { + // field return type name + id287: 'ID' + } + jnFMLyxL: { + // field return type name + id277: 'ID' + } + jrmLpsfT: { + // field return type name + id201: 'ID' + } + kAFbqgpE: { + // field return type name + id102: 'ID' + } + kAqRlGFR: { + // field return type name + id299: 'ID' + } + kEhnOaCH: { + // field return type name + id111: 'ID' + } + kHLLmfcE: { + // field return type name + id164: 'ID' + } + kKQNulhi: { + // field return type name + id5: 'ID' + } + kQUqAggO: { + // field return type name + id17: 'ID' + } + kXMItaoE: { + // field return type name + id154: 'ID' + } + kkQiMyOg: { + // field return type name + id33: 'ID' + } + klkPkaYU: { + // field return type name + id272: 'ID' + } + lFbOnWGE: { + // field return type name + id280: 'ID' + } + lPtHeBuR: { + // field return type name + id160: 'ID' + } + lVumUBIa: { + // field return type name + id174: 'ID' + } + laqqtHJN: { + // field return type name + id206: 'ID' + } + ldqzvWyd: { + // field return type name + id235: 'ID' + } + lhdysNNV: { + // field return type name + id71: 'ID' + } + lifwEmKz: { + // field return type name + id246: 'ID' + } + lsDifAmH: { + // field return type name + id298: 'ID' + } + mFSUfTPi: { + // field return type name + id116: 'ID' + } + mKbKQhyO: { + // field return type name + id167: 'ID' + } + mQIYoGzu: { + // field return type name + id28: 'ID' + } + mZmlDoBs: { + // field return type name + id273: 'ID' + } + mooFGlVS: { + // field return type name + id14: 'ID' + } + mtikMWMb: { + // field return type name + id261: 'ID' + } + muuoinyp: { + // field return type name + id70: 'ID' + } + newdlmuf: { + // field return type name + id39: 'ID' + } + oLLKSNvK: { + // field return type name + id176: 'ID' + } + ogOIrhgb: { + // field return type name + id47: 'ID' + } + phBMkPER: { + // field return type name + id236: 'ID' + } + pnfpWCgc: { + // field return type name + id99: 'ID' + } + ptQOpnjR: { + // field return type name + id190: 'ID' + } + qBIjdcrW: { + // field return type name + id142: 'ID' + } + qCzvlwRD: { + // field return type name + id80: 'ID' + } + qXlhbRwq: { + // field return type name + id78: 'ID' + } + rDLkvRXw: { + // field return type name + id296: 'ID' + } + rKZaCTrp: { + // field return type name + id89: 'ID' + } + rsrjXXbp: { + // field return type name + id267: 'ID' + } + sOPJOCHV: { + // field return type name + id108: 'ID' + } + sYmZSZhS: { + // field return type name + id45: 'ID' + } + tBRvILTt: { + // field return type name + id177: 'ID' + } + tHuINsQQ: { + // field return type name + id117: 'ID' + } + tWYLhGmP: { + // field return type name + id253: 'ID' + } + tfdcstkI: { + // field return type name + id262: 'ID' + } + tgBSTWuP: { + // field return type name + id40: 'ID' + } + tndtDdZP: { + // field return type name + id18: 'ID' + } + uaVbWYYy: { + // field return type name + id94: 'ID' + } + ubXmVvgH: { + // field return type name + id139: 'ID' + } + unjJMyow: { + // field return type name + id249: 'ID' + } + uqAoXisC: { + // field return type name + id9: 'ID' + } + uxqOEIwV: { + // field return type name + id49: 'ID' + } + vKNwRocJ: { + // field return type name + id229: 'ID' + } + vWCRSMfI: { + // field return type name + id37: 'ID' + } + vmWUXlxn: { + // field return type name + id233: 'ID' + } + vveXjotS: { + // field return type name + id11: 'ID' + } + wYUTmKCU: { + // field return type name + id291: 'ID' + } + wtjYwstX: { + // field return type name + id110: 'ID' + } + wvbxCjzQ: { + // field return type name + id131: 'ID' + } + xHmRwgeG: { + // field return type name + id42: 'ID' + } + xUqWuwDO: { + // field return type name + id288: 'ID' + } + xnxcQfWx: { + // field return type name + id76: 'ID' + } + yJNnsHEj: { + // field return type name + id135: 'ID' + } + yJubHpPP: { + // field return type name + id243: 'ID' + } + yMjEoECr: { + // field return type name + id196: 'ID' + } + yNNQUmqa: { + // field return type name + id150: 'ID' + } + yNumRBxd: { + // field return type name + id200: 'ID' + } + yPDuKVOh: { + // field return type name + id241: 'ID' + } + yrGYxJeE: { + // field return type name + id130: 'ID' + } + yvlysvTB: { + // field return type name + id269: 'ID' + } + zLwooCNa: { + // field return type name + id179: 'ID' + } + zUQFahzk: { + // field return type name + id283: 'ID' + } + zjnLruIQ: { + // field return type name + id289: 'ID' + } + zlPOFwWi: { + // field return type name + id183: 'ID' + } + zpZvbHAk: { + // field return type name + id124: 'ID' + } + zvGUhtyF: { + // field return type name + id186: 'ID' + } +} + +export interface NexusGenArgTypes {} + +export interface NexusGenAbstractTypeMembers { + BigUnion: + | 'aEOOAAKG' + | 'ahctkrlN' + | 'aKYfIihK' + | 'ALXAXBKq' + | 'AOogKhAD' + | 'ApAniugk' + | 'AQDzZPsI' + | 'arOfyZvi' + | 'AuMxHAoX' + | 'awDoUlrM' + | 'BAzfAeMR' + | 'bdmjhrZP' + | 'BFohGIGQ' + | 'bGRbQdGF' + | 'BiZjyuaY' + | 'Bjgguvhd' + | 'bLcHZPpX' + | 'bNaHPVhI' + | 'bndWrLAg' + | 'bpcReAKs' + | 'bsuhpkhX' + | 'BTIsXTrL' + | 'BWwxnXpM' + | 'BXowGvwZ' + | 'BYPWzETJ' + | 'CCXSFsMn' + | 'cEORMlXC' + | 'CgAQHanX' + | 'cGxDWUGD' + | 'cMxjKIfV' + | 'ctfzshTJ' + | 'cXAmxvqv' + | 'CXumheDD' + | 'dAmPEeQn' + | 'dbFplbat' + | 'DbgPTfDo' + | 'DBZLsxpr' + | 'deqJYjdv' + | 'DGxuhtpo' + | 'dHKrfYNo' + | 'DKEJFUiy' + | 'DkoAlvGn' + | 'DMggicLd' + | 'dnjGpfIS' + | 'DNohRdIN' + | 'dnutiEie' + | 'dOWdqEud' + | 'DpnWHIJW' + | 'ECChhDfK' + | 'eemljdwg' + | 'eggnlUYr' + | 'EhpNnQJw' + | 'EjIQIfmv' + | 'eJSSQaaC' + | 'EqEZXLCy' + | 'eROeesVg' + | 'EtPHwkkm' + | 'ETUiuOHD' + | 'euCWAGET' + | 'eWlLfMzi' + | 'EzcWBhIv' + | 'FaJAYKqm' + | 'faKaQEBn' + | 'FcFlCNAk' + | 'fDAloqko' + | 'FDouQoXO' + | 'fFyvwcxZ' + | 'FHLtgKoA' + | 'fPXYtcbT' + | 'FvftqquW' + | 'fvXQFkRb' + | 'fXnweaVk' + | 'GcpbGXTn' + | 'GDATeumz' + | 'GdxXCAak' + | 'gfyuMPLk' + | 'GhHKLcZe' + | 'gQDQWruj' + | 'gqhvwsiF' + | 'GsbHZkLK' + | 'gvxFkejN' + | 'GwkBnXKj' + | 'GYbaqoRT' + | 'GzglazdH' + | 'hAfKmdaD' + | 'hBCadJbD' + | 'HdiyXGxs' + | 'hDsbddpo' + | 'HENcJewx' + | 'hEyyqHvv' + | 'hgsVEiUk' + | 'HgYVPDgm' + | 'hIjYlIps' + | 'HIPZQFdS' + | 'HJmsvtgX' + | 'HjRDJhnX' + | 'hLptFSis' + | 'HLRWzsTU' + | 'HNLQTErw' + | 'hOqSbuBE' + | 'hQiYNmDV' + | 'hqweSGgf' + | 'hTNuohNQ' + | 'HwkXtjRP' + | 'HWMyawvm' + | 'HxCkBUxv' + | 'HXZUTyvG' + | 'HZbsVdoX' + | 'IAOEaBfb' + | 'IBZxPcZb' + | 'ICrkovFe' + | 'IGibGxHO' + | 'IhSGxaNc' + | 'IhtaZNUi' + | 'iqXgPwiC' + | 'IqZAiUKE' + | 'ISayJMYD' + | 'IuVQPFJN' + | 'iVjcPoMw' + | 'IWhegzTM' + | 'iWpPsvNV' + | 'ixwjWVvf' + | 'Iypygftg' + | 'IZERvBgk' + | 'iZJAoMWm' + | 'jAUaKDuu' + | 'JbsCxxcE' + | 'jciWswYD' + | 'jCnSiJOq' + | 'JjkgZKrV' + | 'jkcwiNhe' + | 'jmnxoYAy' + | 'jnFMLyxL' + | 'jrmLpsfT' + | 'JsAPYbRs' + | 'JuaucwDY' + | 'JXAbemqC' + | 'JZMQpjQv' + | 'kAFbqgpE' + | 'kAqRlGFR' + | 'KbTYPbTr' + | 'kEhnOaCH' + | 'KGbJMfhO' + | 'kHLLmfcE' + | 'kkQiMyOg' + | 'kKQNulhi' + | 'klkPkaYU' + | 'KoKtAqbt' + | 'kQUqAggO' + | 'KsPfaUFr' + | 'KvHHVcPa' + | 'KVIgujkc' + | 'kXMItaoE' + | 'laqqtHJN' + | 'LBePcCkW' + | 'ldqzvWyd' + | 'lFbOnWGE' + | 'lhdysNNV' + | 'LHxWkxKq' + | 'lifwEmKz' + | 'LMnZbpCI' + | 'lPtHeBuR' + | 'lsDifAmH' + | 'LtvKCzwe' + | 'lVumUBIa' + | 'mFSUfTPi' + | 'mKbKQhyO' + | 'mooFGlVS' + | 'MPQLFUho' + | 'mQIYoGzu' + | 'mtikMWMb' + | 'muuoinyp' + | 'MvpRfuhb' + | 'mZmlDoBs' + | 'NbTtwcUU' + | 'NczZcGdE' + | 'NefQmhqG' + | 'NETQHyFQ' + | 'newdlmuf' + | 'NlMnyCgu' + | 'NrrBYDim' + | 'NwPaWUGr' + | 'OBnGIgyZ' + | 'OehdOjXt' + | 'OfyEZrPd' + | 'ogOIrhgb' + | 'OjwpvBGH' + | 'oLLKSNvK' + | 'OwZeKGSU' + | 'OZfGULVa' + | 'PBGQfXYx' + | 'PGcwRfdb' + | 'phBMkPER' + | 'PHltFHbS' + | 'PNeiVzWR' + | 'pnfpWCgc' + | 'PNgZWWwo' + | 'PpTuFbFz' + | 'ptQOpnjR' + | 'PTtcHGFZ' + | 'PVCfSccj' + | 'PWOXDRzE' + | 'PwzFJfRE' + | 'PYCDIQQc' + | 'qBIjdcrW' + | 'qCzvlwRD' + | 'QelISHAj' + | 'QKdnhgbW' + | 'QMkOOMdT' + | 'QmPQoOZh' + | 'QxHzTNGy' + | 'qXlhbRwq' + | 'QXSXwpMN' + | 'RCZmHSOp' + | 'rDLkvRXw' + | 'rKZaCTrp' + | 'RMBiaCdu' + | 'RNSfiIOi' + | 'rsrjXXbp' + | 'RTcWEgoC' + | 'RVbkKVjJ' + | 'RydRYmBj' + | 'SBNNVkRr' + | 'ShqdAPLQ' + | 'sOPJOCHV' + | 'SsKBGyvg' + | 'Stydvxig' + | 'sYmZSZhS' + | 'TbgzaUgu' + | 'tBRvILTt' + | 'TDURJGny' + | 'TDztrYLm' + | 'TeZWMTzw' + | 'tfdcstkI' + | 'tgBSTWuP' + | 'tHuINsQQ' + | 'TKzetlpb' + | 'tndtDdZP' + | 'TppFHtyg' + | 'TWLZYGzk' + | 'tWYLhGmP' + | 'TZHgNTAO' + | 'uaVbWYYy' + | 'ubXmVvgH' + | 'UGJqdGDT' + | 'unjJMyow' + | 'uqAoXisC' + | 'UuNFAnQg' + | 'uxqOEIwV' + | 'VAvPoGEb' + | 'vKNwRocJ' + | 'vmWUXlxn' + | 'vveXjotS' + | 'vWCRSMfI' + | 'VynhbqCL' + | 'WaVLDFqC' + | 'WhUVndTD' + | 'WMsrUAGp' + | 'WoCNZkWp' + | 'WsneBHrs' + | 'WsNuPHEi' + | 'wtjYwstX' + | 'WurxotQy' + | 'wvbxCjzQ' + | 'wYUTmKCU' + | 'XdzKjpVP' + | 'XFYbFCkA' + | 'xHmRwgeG' + | 'XHvdKJbC' + | 'xnxcQfWx' + | 'Xqkpjqni' + | 'xUqWuwDO' + | 'XvyULguR' + | 'XwweqpQZ' + | 'YBZmfmWn' + | 'yJNnsHEj' + | 'yJubHpPP' + | 'yMjEoECr' + | 'YNnosqXJ' + | 'yNNQUmqa' + | 'yNumRBxd' + | 'yPDuKVOh' + | 'yrGYxJeE' + | 'yvlysvTB' + | 'YwFARARB' + | 'YxNVEAVR' + | 'YZpErVkH' + | 'ZbrxBPat' + | 'ZElcDXRS' + | 'ZeyczKBv' + | 'ZEyINaeG' + | 'zjnLruIQ' + | 'zlPOFwWi' + | 'zLwooCNa' + | 'zpZvbHAk' + | 'ZrPlFevQ' + | 'zUQFahzk' + | 'ZVaYkAdb' + | 'zvGUhtyF' + | 'ZzRSmAyf' + MediumUnionType: + | 'AOogKhAD' + | 'ApAniugk' + | 'AuMxHAoX' + | 'awDoUlrM' + | 'bGRbQdGF' + | 'bsuhpkhX' + | 'BXowGvwZ' + | 'CgAQHanX' + | 'cMxjKIfV' + | 'cXAmxvqv' + | 'dAmPEeQn' + | 'DBZLsxpr' + | 'deqJYjdv' + | 'dnjGpfIS' + | 'dnutiEie' + | 'dOWdqEud' + | 'ECChhDfK' + | 'eggnlUYr' + | 'EhpNnQJw' + | 'EjIQIfmv' + | 'eJSSQaaC' + | 'EtPHwkkm' + | 'FaJAYKqm' + | 'fvXQFkRb' + | 'fXnweaVk' + | 'GYbaqoRT' + | 'GzglazdH' + | 'hBCadJbD' + | 'HgYVPDgm' + | 'HjRDJhnX' + | 'hLptFSis' + | 'hQiYNmDV' + | 'hqweSGgf' + | 'HwkXtjRP' + | 'HZbsVdoX' + | 'IAOEaBfb' + | 'ICrkovFe' + | 'IhSGxaNc' + | 'ISayJMYD' + | 'iVjcPoMw' + | 'ixwjWVvf' + | 'Iypygftg' + | 'iZJAoMWm' + | 'jkcwiNhe' + | 'JuaucwDY' + | 'JZMQpjQv' + | 'kAFbqgpE' + | 'KbTYPbTr' + | 'kEhnOaCH' + | 'KsPfaUFr' + | 'KvHHVcPa' + | 'LBePcCkW' + | 'lhdysNNV' + | 'LHxWkxKq' + | 'LMnZbpCI' + | 'mFSUfTPi' + | 'muuoinyp' + | 'NefQmhqG' + | 'NETQHyFQ' + | 'OwZeKGSU' + | 'PBGQfXYx' + | 'PGcwRfdb' + | 'PNeiVzWR' + | 'pnfpWCgc' + | 'PNgZWWwo' + | 'PTtcHGFZ' + | 'PWOXDRzE' + | 'PwzFJfRE' + | 'qBIjdcrW' + | 'qCzvlwRD' + | 'QelISHAj' + | 'QMkOOMdT' + | 'qXlhbRwq' + | 'rKZaCTrp' + | 'RMBiaCdu' + | 'RNSfiIOi' + | 'sOPJOCHV' + | 'SsKBGyvg' + | 'TbgzaUgu' + | 'tHuINsQQ' + | 'TppFHtyg' + | 'TWLZYGzk' + | 'uaVbWYYy' + | 'ubXmVvgH' + | 'UGJqdGDT' + | 'WaVLDFqC' + | 'WhUVndTD' + | 'WoCNZkWp' + | 'WsneBHrs' + | 'wtjYwstX' + | 'WurxotQy' + | 'wvbxCjzQ' + | 'XFYbFCkA' + | 'xnxcQfWx' + | 'XvyULguR' + | 'YBZmfmWn' + | 'yJNnsHEj' + | 'yrGYxJeE' + | 'ZEyINaeG' + | 'zpZvbHAk' + MediumUnionTypes: + | 'ALXAXBKq' + | 'AOogKhAD' + | 'ApAniugk' + | 'bdmjhrZP' + | 'BiZjyuaY' + | 'bpcReAKs' + | 'bsuhpkhX' + | 'BXowGvwZ' + | 'CgAQHanX' + | 'cXAmxvqv' + | 'dAmPEeQn' + | 'dHKrfYNo' + | 'dnutiEie' + | 'dOWdqEud' + | 'DpnWHIJW' + | 'ECChhDfK' + | 'eemljdwg' + | 'EqEZXLCy' + | 'eROeesVg' + | 'EtPHwkkm' + | 'ETUiuOHD' + | 'FaJAYKqm' + | 'fDAloqko' + | 'fXnweaVk' + | 'GdxXCAak' + | 'gQDQWruj' + | 'gqhvwsiF' + | 'GsbHZkLK' + | 'GzglazdH' + | 'HgYVPDgm' + | 'hLptFSis' + | 'hOqSbuBE' + | 'hqweSGgf' + | 'HwkXtjRP' + | 'HXZUTyvG' + | 'HZbsVdoX' + | 'ICrkovFe' + | 'IWhegzTM' + | 'ixwjWVvf' + | 'Iypygftg' + | 'IZERvBgk' + | 'JbsCxxcE' + | 'jkcwiNhe' + | 'KbTYPbTr' + | 'kkQiMyOg' + | 'kKQNulhi' + | 'kQUqAggO' + | 'KsPfaUFr' + | 'lhdysNNV' + | 'LHxWkxKq' + | 'LtvKCzwe' + | 'mooFGlVS' + | 'MPQLFUho' + | 'mQIYoGzu' + | 'muuoinyp' + | 'NbTtwcUU' + | 'NETQHyFQ' + | 'newdlmuf' + | 'OfyEZrPd' + | 'ogOIrhgb' + | 'PBGQfXYx' + | 'PGcwRfdb' + | 'pnfpWCgc' + | 'PpTuFbFz' + | 'PWOXDRzE' + | 'PwzFJfRE' + | 'PYCDIQQc' + | 'qCzvlwRD' + | 'QelISHAj' + | 'QKdnhgbW' + | 'qXlhbRwq' + | 'RCZmHSOp' + | 'rKZaCTrp' + | 'RMBiaCdu' + | 'RNSfiIOi' + | 'RTcWEgoC' + | 'SsKBGyvg' + | 'sYmZSZhS' + | 'TDURJGny' + | 'TDztrYLm' + | 'tgBSTWuP' + | 'tndtDdZP' + | 'TppFHtyg' + | 'TWLZYGzk' + | 'uaVbWYYy' + | 'UGJqdGDT' + | 'uqAoXisC' + | 'uxqOEIwV' + | 'vveXjotS' + | 'vWCRSMfI' + | 'VynhbqCL' + | 'WurxotQy' + | 'XdzKjpVP' + | 'XFYbFCkA' + | 'xHmRwgeG' + | 'xnxcQfWx' + | 'Xqkpjqni' + | 'YBZmfmWn' + | 'ZeyczKBv' + | 'ZEyINaeG' +} + +export interface NexusGenTypeInterfaces {} + +export type NexusGenObjectNames = keyof NexusGenObjects + +export type NexusGenInputNames = never + +export type NexusGenEnumNames = never + +export type NexusGenInterfaceNames = never + +export type NexusGenScalarNames = keyof NexusGenScalars + +export type NexusGenUnionNames = keyof NexusGenUnions + +export type NexusGenObjectsUsingAbstractStrategyIsTypeOf = never + +export type NexusGenAbstractsUsingStrategyResolveType = 'BigUnion' | 'MediumUnionType' | 'MediumUnionTypes' + +export type NexusGenFeaturesConfig = { + abstractTypeStrategies: { + resolveType: true + __typename: false + isTypeOf: false + } +} + +export interface NexusGenTypes { + context: any + inputTypes: NexusGenInputs + rootTypes: NexusGenRootTypes + argTypes: NexusGenArgTypes + fieldTypes: NexusGenFieldTypes + fieldTypeNames: NexusGenFieldTypeNames + allTypes: NexusGenAllTypes + typeInterfaces: NexusGenTypeInterfaces + objectNames: NexusGenObjectNames + inputNames: NexusGenInputNames + enumNames: NexusGenEnumNames + interfaceNames: NexusGenInterfaceNames + scalarNames: NexusGenScalarNames + unionNames: NexusGenUnionNames + allInputTypes: NexusGenTypes['inputNames'] | NexusGenTypes['enumNames'] | NexusGenTypes['scalarNames'] + allOutputTypes: + | NexusGenTypes['objectNames'] + | NexusGenTypes['enumNames'] + | NexusGenTypes['unionNames'] + | NexusGenTypes['interfaceNames'] + | NexusGenTypes['scalarNames'] + allNamedTypes: NexusGenTypes['allInputTypes'] | NexusGenTypes['allOutputTypes'] + abstractTypes: NexusGenTypes['interfaceNames'] | NexusGenTypes['unionNames'] + abstractTypeMembers: NexusGenAbstractTypeMembers + objectsUsingAbstractStrategyIsTypeOf: NexusGenObjectsUsingAbstractStrategyIsTypeOf + abstractsUsingStrategyResolveType: NexusGenAbstractsUsingStrategyResolveType + features: NexusGenFeaturesConfig +} + +declare global { + interface NexusGenPluginTypeConfig {} + interface NexusGenPluginFieldConfig {} + interface NexusGenPluginSchemaConfig {} + interface NexusGenPluginArgConfig {} +} diff --git a/tests/typegen/schema.gen.graphql b/tests/typegen/schema.gen.graphql new file mode 100644 index 00000000..c61a8dd1 --- /dev/null +++ b/tests/typegen/schema.gen.graphql @@ -0,0 +1,75 @@ +### This file was generated by Nexus Schema +### Do not make changes to this file directly + +input CreatePostInput { + author: ID! + geo: [[Float]!]! + name: String! +} + +union ExampleUnion = Post | User + +type Mutation { + createPost(input: CreatePostInput!): Post! + registerClick(uuid: UUID): Query! + someList(items: [String]!): [String]! +} + +""" +This is a description of a Node +""" +interface Node { + id: ID! +} + +enum OrderEnum { + ASC + DESC +} + +""" +This is a description of a Post +""" +type Post implements Node { + author: User! + geo: [[Float!]!]! + id: ID! + messyGeo: [[Float!]] + uuid: UUID! +} + +input PostFilters { + order: OrderEnum! + search: String = "nexus" +} + +type Query { + posts(filters: PostFilters!): [Post!]! + unionField: ExampleUnion! + user: User! +} + +enum SomeEnum { + A + B @deprecated(reason: "This is a deprecation reason for B") +} + +type User implements Node { + email: String! + id: ID! + + """ + This is a description of a name + """ + name( + """ + And a description of an arg + """ + prefix: String + ): String! + outEnum: SomeEnum + phone: String + posts(filters: PostFilters): [Post!]! +} + +scalar UUID diff --git a/tests/typegen/types.gen.ts b/tests/typegen/types.gen.ts index e4a20229..e995d33b 100644 --- a/tests/typegen/types.gen.ts +++ b/tests/typegen/types.gen.ts @@ -3,7 +3,7 @@ * Do not make changes to this file directly */ -import { core } from '@nexus/schema' +import { core } from '../../src' declare global { interface NexusGen extends NexusGenTypes {} @@ -166,7 +166,10 @@ export interface NexusGenAbstractTypeMembers { Node: 'Post' | 'User' } -export interface NexusGenInheritedFields {} +export interface NexusGenTypeInterfaces { + Post: 'Node' + User: 'Node' +} export type NexusGenObjectNames = keyof NexusGenObjects @@ -200,7 +203,7 @@ export interface NexusGenTypes { fieldTypes: NexusGenFieldTypes fieldTypeNames: NexusGenFieldTypeNames allTypes: NexusGenAllTypes - inheritedFields: NexusGenInheritedFields + typeInterfaces: NexusGenTypeInterfaces objectNames: NexusGenObjectNames inputNames: NexusGenInputNames enumNames: NexusGenEnumNames @@ -226,4 +229,5 @@ declare global { interface NexusGenPluginTypeConfig {} interface NexusGenPluginFieldConfig {} interface NexusGenPluginSchemaConfig {} + interface NexusGenPluginArgConfig {} } diff --git a/tests/typegenPrinter.spec.ts b/tests/typegenPrinter.spec.ts index aaef6d9d..9a70339f 100644 --- a/tests/typegenPrinter.spec.ts +++ b/tests/typegenPrinter.spec.ts @@ -10,8 +10,13 @@ describe('typegenPrinter', () => { let typegen: core.TypegenPrinter let metadata: core.TypegenMetadata beforeEach(async () => { + const writeFileSpy = jest.spyOn(TypegenMetadata.prototype, 'writeFile') + const schema = makeSchema({ - outputs: false, + outputs: { + typegen: path.join(__dirname, 'typegen/types.gen.ts'), + schema: path.join(__dirname, 'typegen/schema.gen.graphql'), + }, shouldGenerateArtifacts: true, types: [buildSchema(EXAMPLE_SDL)], // __typename put to true to prevent from erroring because of missing resolveType @@ -27,6 +32,7 @@ describe('typegenPrinter', () => { return content.replace("'@nexus/schema'", `'../../src'`) }, }) as core.NexusGraphQLSchema + metadata = new TypegenMetadata({ outputs: { typegen: path.join(__dirname, 'test-gen.ts'), @@ -45,8 +51,14 @@ describe('typegenPrinter', () => { contextType: 't.TestContext', }, }) - // give time for artifact generation to complete - await new Promise((res) => setTimeout(res, 2000)) + + while (!writeFileSpy.mock.results.length) { + await new Promise((res) => setTimeout(res, 10)) + } + + // wait for artifact generation to complete + await writeFileSpy.mock.results[0].value + const typegenInfo = await metadata.getTypegenInfo(schema) typegen = new TypegenPrinter(metadata.sortSchema(schema), { ...typegenInfo, @@ -62,6 +74,10 @@ describe('typegenPrinter', () => { }) }) + afterEach(() => { + jest.clearAllMocks() + }) + it('builds the enum object type defs', () => { expect(typegen.printEnumTypeMap()).toMatchSnapshot() })