houdini 2.0.0-next.3 → 2.0.0-next.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/build/cmd-cjs/index.js +54 -26
- package/build/cmd-esm/index.js +54 -26
- package/build/codegen/generators/typescript/addReferencedInputTypes.d.ts +1 -1
- package/build/codegen/generators/typescript/inlineType.d.ts +2 -1
- package/build/codegen-cjs/index.js +52 -24
- package/build/codegen-esm/index.js +52 -24
- package/build/lib/typescript.d.ts +3 -3
- package/build/lib-cjs/index.js +11 -6
- package/build/lib-esm/index.js +11 -6
- package/build/test-cjs/index.js +52 -24
- package/build/test-esm/index.js +52 -24
- package/build/vite-cjs/index.js +55 -35
- package/build/vite-esm/index.js +55 -35
- package/package.json +1 -1
package/build/test-cjs/index.js
CHANGED
|
@@ -66403,10 +66403,10 @@ var AST3 = recast2.types.builders;
|
|
|
66403
66403
|
function unwrappedTsTypeReference(config, filepath, missingScalars, {
|
|
66404
66404
|
type,
|
|
66405
66405
|
wrappers
|
|
66406
|
-
}, body) {
|
|
66406
|
+
}, body, input) {
|
|
66407
66407
|
let result;
|
|
66408
66408
|
if (graphql6.isScalarType(type)) {
|
|
66409
|
-
result = scalarPropertyValue(config, filepath, missingScalars, type, body, null);
|
|
66409
|
+
result = scalarPropertyValue(config, filepath, missingScalars, type, body, null, input);
|
|
66410
66410
|
} else if (graphql6.isEnumType(type)) {
|
|
66411
66411
|
result = enumReference(config, body, type.name);
|
|
66412
66412
|
} else {
|
|
@@ -66423,14 +66423,15 @@ function unwrappedTsTypeReference(config, filepath, missingScalars, {
|
|
|
66423
66423
|
}
|
|
66424
66424
|
return result;
|
|
66425
66425
|
}
|
|
66426
|
-
function tsTypeReference(config, filepath, missingScalars, definition, body) {
|
|
66426
|
+
function tsTypeReference(config, filepath, missingScalars, definition, body, input) {
|
|
66427
66427
|
const { type, wrappers } = unwrapType(config, definition.type);
|
|
66428
66428
|
return unwrappedTsTypeReference(
|
|
66429
66429
|
config,
|
|
66430
66430
|
filepath,
|
|
66431
66431
|
missingScalars,
|
|
66432
66432
|
{ type, wrappers },
|
|
66433
|
-
body
|
|
66433
|
+
body,
|
|
66434
|
+
input
|
|
66434
66435
|
);
|
|
66435
66436
|
}
|
|
66436
66437
|
function enumReference(config, body, name) {
|
|
@@ -66459,7 +66460,7 @@ function nullableField(inner, input = false) {
|
|
|
66459
66460
|
}
|
|
66460
66461
|
return AST3.tsUnionType(members);
|
|
66461
66462
|
}
|
|
66462
|
-
function scalarPropertyValue(config, filepath, missingScalars, target, body, field) {
|
|
66463
|
+
function scalarPropertyValue(config, filepath, missingScalars, target, body, field, input) {
|
|
66463
66464
|
if (config.configFile.features?.componentFields && target.name === config.componentScalar) {
|
|
66464
66465
|
if (!field) {
|
|
66465
66466
|
return AST3.tsNeverKeyword();
|
|
@@ -66518,6 +66519,9 @@ function scalarPropertyValue(config, filepath, missingScalars, target, body, fie
|
|
|
66518
66519
|
return AST3.tsBooleanKeyword();
|
|
66519
66520
|
}
|
|
66520
66521
|
case "ID": {
|
|
66522
|
+
if (input) {
|
|
66523
|
+
return AST3.tsUnionType([AST3.tsStringKeyword(), AST3.tsNumberKeyword()]);
|
|
66524
|
+
}
|
|
66521
66525
|
return AST3.tsStringKeyword();
|
|
66522
66526
|
}
|
|
66523
66527
|
default: {
|
|
@@ -66528,7 +66532,8 @@ function scalarPropertyValue(config, filepath, missingScalars, target, body, fie
|
|
|
66528
66532
|
missingScalars,
|
|
66529
66533
|
target.ofType,
|
|
66530
66534
|
body,
|
|
66531
|
-
field
|
|
66535
|
+
field,
|
|
66536
|
+
input
|
|
66532
66537
|
);
|
|
66533
66538
|
}
|
|
66534
66539
|
if (config.scalars?.[target.name]) {
|
|
@@ -69245,7 +69250,7 @@ var recast11 = __toESM(require_main2(), 1);
|
|
|
69245
69250
|
var graphql19 = __toESM(require("graphql"), 1);
|
|
69246
69251
|
var recast7 = __toESM(require_main2(), 1);
|
|
69247
69252
|
var AST8 = recast7.types.builders;
|
|
69248
|
-
function addReferencedInputTypes(config, filepath, body, visitedTypes, missingScalars, rootType) {
|
|
69253
|
+
function addReferencedInputTypes(config, filepath, body, visitedTypes, missingScalars, rootType, input) {
|
|
69249
69254
|
const { type } = unwrapType(config, rootType);
|
|
69250
69255
|
if (graphql19.isScalarType(type)) {
|
|
69251
69256
|
return;
|
|
@@ -69270,12 +69275,20 @@ function addReferencedInputTypes(config, filepath, body, visitedTypes, missingSc
|
|
|
69270
69275
|
}
|
|
69271
69276
|
const members = [];
|
|
69272
69277
|
for (const field of Object.values(type.getFields())) {
|
|
69273
|
-
addReferencedInputTypes(
|
|
69278
|
+
addReferencedInputTypes(
|
|
69279
|
+
config,
|
|
69280
|
+
filepath,
|
|
69281
|
+
body,
|
|
69282
|
+
visitedTypes,
|
|
69283
|
+
missingScalars,
|
|
69284
|
+
field.type,
|
|
69285
|
+
input
|
|
69286
|
+
);
|
|
69274
69287
|
members.push(
|
|
69275
69288
|
AST8.tsPropertySignature(
|
|
69276
69289
|
AST8.identifier(field.name),
|
|
69277
69290
|
AST8.tsTypeAnnotation(
|
|
69278
|
-
tsTypeReference(config, filepath, missingScalars, field, body)
|
|
69291
|
+
tsTypeReference(config, filepath, missingScalars, field, body, input)
|
|
69279
69292
|
),
|
|
69280
69293
|
graphql19.isNullableType(field.type)
|
|
69281
69294
|
)
|
|
@@ -69318,7 +69331,8 @@ function inlineType({
|
|
|
69318
69331
|
includeFragments,
|
|
69319
69332
|
allOptional,
|
|
69320
69333
|
forceNonNull,
|
|
69321
|
-
field
|
|
69334
|
+
field,
|
|
69335
|
+
input
|
|
69322
69336
|
}) {
|
|
69323
69337
|
const { type, wrappers } = unwrapType(config, rootType);
|
|
69324
69338
|
let result;
|
|
@@ -69330,7 +69344,8 @@ function inlineType({
|
|
|
69330
69344
|
missingScalars,
|
|
69331
69345
|
type,
|
|
69332
69346
|
body,
|
|
69333
|
-
field
|
|
69347
|
+
field,
|
|
69348
|
+
input
|
|
69334
69349
|
);
|
|
69335
69350
|
} else if (graphql20.isEnumType(type)) {
|
|
69336
69351
|
ensureImports({
|
|
@@ -69438,7 +69453,8 @@ function inlineType({
|
|
|
69438
69453
|
field: {
|
|
69439
69454
|
field: attributeName,
|
|
69440
69455
|
parent: type.name
|
|
69441
|
-
}
|
|
69456
|
+
},
|
|
69457
|
+
input
|
|
69442
69458
|
});
|
|
69443
69459
|
const hasIncludeOrSkipDirective = selection.directives && selection.directives.filter(
|
|
69444
69460
|
(directive) => directive.name.value === "include" || directive.name.value === "skip"
|
|
@@ -69502,7 +69518,8 @@ function inlineType({
|
|
|
69502
69518
|
missingScalars,
|
|
69503
69519
|
includeFragments,
|
|
69504
69520
|
allOptional,
|
|
69505
|
-
field: null
|
|
69521
|
+
field: null,
|
|
69522
|
+
input: false
|
|
69506
69523
|
});
|
|
69507
69524
|
let objectType = fragmentType;
|
|
69508
69525
|
if (fragmentType.type === "TSUnionType") {
|
|
@@ -69967,7 +69984,8 @@ async function generateOperationTypeDefs(config, filepath, document, body, defin
|
|
|
69967
69984
|
body,
|
|
69968
69985
|
missingScalars,
|
|
69969
69986
|
includeFragments: true,
|
|
69970
|
-
field: null
|
|
69987
|
+
field: null,
|
|
69988
|
+
input: false
|
|
69971
69989
|
});
|
|
69972
69990
|
if (artifact.kind === "HoudiniQuery") {
|
|
69973
69991
|
resultType = withLoadingState({
|
|
@@ -70016,7 +70034,8 @@ async function generateOperationTypeDefs(config, filepath, document, body, defin
|
|
|
70016
70034
|
body,
|
|
70017
70035
|
visitedTypes,
|
|
70018
70036
|
missingScalars,
|
|
70019
|
-
variableDefinition.type
|
|
70037
|
+
variableDefinition.type,
|
|
70038
|
+
true
|
|
70020
70039
|
);
|
|
70021
70040
|
}
|
|
70022
70041
|
body.push(
|
|
@@ -70034,7 +70053,8 @@ async function generateOperationTypeDefs(config, filepath, document, body, defin
|
|
|
70034
70053
|
filepath,
|
|
70035
70054
|
missingScalars,
|
|
70036
70055
|
definition2,
|
|
70037
|
-
body
|
|
70056
|
+
body,
|
|
70057
|
+
true
|
|
70038
70058
|
)
|
|
70039
70059
|
),
|
|
70040
70060
|
definition2.type.kind !== "NonNullType"
|
|
@@ -70069,7 +70089,8 @@ async function generateOperationTypeDefs(config, filepath, document, body, defin
|
|
|
70069
70089
|
missingScalars,
|
|
70070
70090
|
includeFragments: false,
|
|
70071
70091
|
allOptional: true,
|
|
70072
|
-
field: null
|
|
70092
|
+
field: null,
|
|
70093
|
+
input: false
|
|
70073
70094
|
})
|
|
70074
70095
|
)
|
|
70075
70096
|
)
|
|
@@ -70102,7 +70123,8 @@ async function generateFragmentTypeDefs(config, filepath, body, selections, defi
|
|
|
70102
70123
|
filepath,
|
|
70103
70124
|
missingScalars,
|
|
70104
70125
|
definition2,
|
|
70105
|
-
body
|
|
70126
|
+
body,
|
|
70127
|
+
false
|
|
70106
70128
|
)
|
|
70107
70129
|
),
|
|
70108
70130
|
definition2.type.kind !== "NonNullType"
|
|
@@ -70165,7 +70187,8 @@ async function generateFragmentTypeDefs(config, filepath, body, selections, defi
|
|
|
70165
70187
|
visitedTypes,
|
|
70166
70188
|
missingScalars,
|
|
70167
70189
|
includeFragments: true,
|
|
70168
|
-
field: null
|
|
70190
|
+
field: null,
|
|
70191
|
+
input: false
|
|
70169
70192
|
})
|
|
70170
70193
|
})
|
|
70171
70194
|
)
|
|
@@ -70261,7 +70284,8 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
|
|
|
70261
70284
|
{
|
|
70262
70285
|
field: key,
|
|
70263
70286
|
parent: type.name
|
|
70264
|
-
}
|
|
70287
|
+
},
|
|
70288
|
+
false
|
|
70265
70289
|
)
|
|
70266
70290
|
)
|
|
70267
70291
|
);
|
|
@@ -70288,7 +70312,8 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
|
|
|
70288
70312
|
{
|
|
70289
70313
|
field: key,
|
|
70290
70314
|
parent: type.name
|
|
70291
|
-
}
|
|
70315
|
+
},
|
|
70316
|
+
false
|
|
70292
70317
|
)
|
|
70293
70318
|
);
|
|
70294
70319
|
} else if (graphql21.isEnumType(unwrapped.type)) {
|
|
@@ -70326,7 +70351,8 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
|
|
|
70326
70351
|
body,
|
|
70327
70352
|
visitedTypes,
|
|
70328
70353
|
/* @__PURE__ */ new Set(),
|
|
70329
|
-
arg.type
|
|
70354
|
+
arg.type,
|
|
70355
|
+
true
|
|
70330
70356
|
);
|
|
70331
70357
|
const prop = AST13.tsPropertySignature(
|
|
70332
70358
|
AST13.identifier(arg.name),
|
|
@@ -70336,7 +70362,8 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
|
|
|
70336
70362
|
filepath,
|
|
70337
70363
|
/* @__PURE__ */ new Set(),
|
|
70338
70364
|
arg,
|
|
70339
|
-
body
|
|
70365
|
+
body,
|
|
70366
|
+
graphql21.isInputType(arg.type)
|
|
70340
70367
|
)
|
|
70341
70368
|
)
|
|
70342
70369
|
);
|
|
@@ -70448,7 +70475,8 @@ function listDefinitions(config, filepath, body, docs) {
|
|
|
70448
70475
|
filepath,
|
|
70449
70476
|
/* @__PURE__ */ new Set(),
|
|
70450
70477
|
arg,
|
|
70451
|
-
body
|
|
70478
|
+
body,
|
|
70479
|
+
graphql21.isInputType(arg.type)
|
|
70452
70480
|
)
|
|
70453
70481
|
)
|
|
70454
70482
|
);
|
package/build/test-esm/index.js
CHANGED
|
@@ -66399,10 +66399,10 @@ var AST3 = recast2.types.builders;
|
|
|
66399
66399
|
function unwrappedTsTypeReference(config, filepath, missingScalars, {
|
|
66400
66400
|
type,
|
|
66401
66401
|
wrappers
|
|
66402
|
-
}, body) {
|
|
66402
|
+
}, body, input) {
|
|
66403
66403
|
let result;
|
|
66404
66404
|
if (graphql6.isScalarType(type)) {
|
|
66405
|
-
result = scalarPropertyValue(config, filepath, missingScalars, type, body, null);
|
|
66405
|
+
result = scalarPropertyValue(config, filepath, missingScalars, type, body, null, input);
|
|
66406
66406
|
} else if (graphql6.isEnumType(type)) {
|
|
66407
66407
|
result = enumReference(config, body, type.name);
|
|
66408
66408
|
} else {
|
|
@@ -66419,14 +66419,15 @@ function unwrappedTsTypeReference(config, filepath, missingScalars, {
|
|
|
66419
66419
|
}
|
|
66420
66420
|
return result;
|
|
66421
66421
|
}
|
|
66422
|
-
function tsTypeReference(config, filepath, missingScalars, definition, body) {
|
|
66422
|
+
function tsTypeReference(config, filepath, missingScalars, definition, body, input) {
|
|
66423
66423
|
const { type, wrappers } = unwrapType(config, definition.type);
|
|
66424
66424
|
return unwrappedTsTypeReference(
|
|
66425
66425
|
config,
|
|
66426
66426
|
filepath,
|
|
66427
66427
|
missingScalars,
|
|
66428
66428
|
{ type, wrappers },
|
|
66429
|
-
body
|
|
66429
|
+
body,
|
|
66430
|
+
input
|
|
66430
66431
|
);
|
|
66431
66432
|
}
|
|
66432
66433
|
function enumReference(config, body, name) {
|
|
@@ -66455,7 +66456,7 @@ function nullableField(inner, input = false) {
|
|
|
66455
66456
|
}
|
|
66456
66457
|
return AST3.tsUnionType(members);
|
|
66457
66458
|
}
|
|
66458
|
-
function scalarPropertyValue(config, filepath, missingScalars, target, body, field) {
|
|
66459
|
+
function scalarPropertyValue(config, filepath, missingScalars, target, body, field, input) {
|
|
66459
66460
|
if (config.configFile.features?.componentFields && target.name === config.componentScalar) {
|
|
66460
66461
|
if (!field) {
|
|
66461
66462
|
return AST3.tsNeverKeyword();
|
|
@@ -66514,6 +66515,9 @@ function scalarPropertyValue(config, filepath, missingScalars, target, body, fie
|
|
|
66514
66515
|
return AST3.tsBooleanKeyword();
|
|
66515
66516
|
}
|
|
66516
66517
|
case "ID": {
|
|
66518
|
+
if (input) {
|
|
66519
|
+
return AST3.tsUnionType([AST3.tsStringKeyword(), AST3.tsNumberKeyword()]);
|
|
66520
|
+
}
|
|
66517
66521
|
return AST3.tsStringKeyword();
|
|
66518
66522
|
}
|
|
66519
66523
|
default: {
|
|
@@ -66524,7 +66528,8 @@ function scalarPropertyValue(config, filepath, missingScalars, target, body, fie
|
|
|
66524
66528
|
missingScalars,
|
|
66525
66529
|
target.ofType,
|
|
66526
66530
|
body,
|
|
66527
|
-
field
|
|
66531
|
+
field,
|
|
66532
|
+
input
|
|
66528
66533
|
);
|
|
66529
66534
|
}
|
|
66530
66535
|
if (config.scalars?.[target.name]) {
|
|
@@ -69241,7 +69246,7 @@ var recast11 = __toESM(require_main2(), 1);
|
|
|
69241
69246
|
var recast7 = __toESM(require_main2(), 1);
|
|
69242
69247
|
import * as graphql19 from "graphql";
|
|
69243
69248
|
var AST8 = recast7.types.builders;
|
|
69244
|
-
function addReferencedInputTypes(config, filepath, body, visitedTypes, missingScalars, rootType) {
|
|
69249
|
+
function addReferencedInputTypes(config, filepath, body, visitedTypes, missingScalars, rootType, input) {
|
|
69245
69250
|
const { type } = unwrapType(config, rootType);
|
|
69246
69251
|
if (graphql19.isScalarType(type)) {
|
|
69247
69252
|
return;
|
|
@@ -69266,12 +69271,20 @@ function addReferencedInputTypes(config, filepath, body, visitedTypes, missingSc
|
|
|
69266
69271
|
}
|
|
69267
69272
|
const members = [];
|
|
69268
69273
|
for (const field of Object.values(type.getFields())) {
|
|
69269
|
-
addReferencedInputTypes(
|
|
69274
|
+
addReferencedInputTypes(
|
|
69275
|
+
config,
|
|
69276
|
+
filepath,
|
|
69277
|
+
body,
|
|
69278
|
+
visitedTypes,
|
|
69279
|
+
missingScalars,
|
|
69280
|
+
field.type,
|
|
69281
|
+
input
|
|
69282
|
+
);
|
|
69270
69283
|
members.push(
|
|
69271
69284
|
AST8.tsPropertySignature(
|
|
69272
69285
|
AST8.identifier(field.name),
|
|
69273
69286
|
AST8.tsTypeAnnotation(
|
|
69274
|
-
tsTypeReference(config, filepath, missingScalars, field, body)
|
|
69287
|
+
tsTypeReference(config, filepath, missingScalars, field, body, input)
|
|
69275
69288
|
),
|
|
69276
69289
|
graphql19.isNullableType(field.type)
|
|
69277
69290
|
)
|
|
@@ -69314,7 +69327,8 @@ function inlineType({
|
|
|
69314
69327
|
includeFragments,
|
|
69315
69328
|
allOptional,
|
|
69316
69329
|
forceNonNull,
|
|
69317
|
-
field
|
|
69330
|
+
field,
|
|
69331
|
+
input
|
|
69318
69332
|
}) {
|
|
69319
69333
|
const { type, wrappers } = unwrapType(config, rootType);
|
|
69320
69334
|
let result;
|
|
@@ -69326,7 +69340,8 @@ function inlineType({
|
|
|
69326
69340
|
missingScalars,
|
|
69327
69341
|
type,
|
|
69328
69342
|
body,
|
|
69329
|
-
field
|
|
69343
|
+
field,
|
|
69344
|
+
input
|
|
69330
69345
|
);
|
|
69331
69346
|
} else if (graphql20.isEnumType(type)) {
|
|
69332
69347
|
ensureImports({
|
|
@@ -69434,7 +69449,8 @@ function inlineType({
|
|
|
69434
69449
|
field: {
|
|
69435
69450
|
field: attributeName,
|
|
69436
69451
|
parent: type.name
|
|
69437
|
-
}
|
|
69452
|
+
},
|
|
69453
|
+
input
|
|
69438
69454
|
});
|
|
69439
69455
|
const hasIncludeOrSkipDirective = selection.directives && selection.directives.filter(
|
|
69440
69456
|
(directive) => directive.name.value === "include" || directive.name.value === "skip"
|
|
@@ -69498,7 +69514,8 @@ function inlineType({
|
|
|
69498
69514
|
missingScalars,
|
|
69499
69515
|
includeFragments,
|
|
69500
69516
|
allOptional,
|
|
69501
|
-
field: null
|
|
69517
|
+
field: null,
|
|
69518
|
+
input: false
|
|
69502
69519
|
});
|
|
69503
69520
|
let objectType = fragmentType;
|
|
69504
69521
|
if (fragmentType.type === "TSUnionType") {
|
|
@@ -69963,7 +69980,8 @@ async function generateOperationTypeDefs(config, filepath, document, body, defin
|
|
|
69963
69980
|
body,
|
|
69964
69981
|
missingScalars,
|
|
69965
69982
|
includeFragments: true,
|
|
69966
|
-
field: null
|
|
69983
|
+
field: null,
|
|
69984
|
+
input: false
|
|
69967
69985
|
});
|
|
69968
69986
|
if (artifact.kind === "HoudiniQuery") {
|
|
69969
69987
|
resultType = withLoadingState({
|
|
@@ -70012,7 +70030,8 @@ async function generateOperationTypeDefs(config, filepath, document, body, defin
|
|
|
70012
70030
|
body,
|
|
70013
70031
|
visitedTypes,
|
|
70014
70032
|
missingScalars,
|
|
70015
|
-
variableDefinition.type
|
|
70033
|
+
variableDefinition.type,
|
|
70034
|
+
true
|
|
70016
70035
|
);
|
|
70017
70036
|
}
|
|
70018
70037
|
body.push(
|
|
@@ -70030,7 +70049,8 @@ async function generateOperationTypeDefs(config, filepath, document, body, defin
|
|
|
70030
70049
|
filepath,
|
|
70031
70050
|
missingScalars,
|
|
70032
70051
|
definition2,
|
|
70033
|
-
body
|
|
70052
|
+
body,
|
|
70053
|
+
true
|
|
70034
70054
|
)
|
|
70035
70055
|
),
|
|
70036
70056
|
definition2.type.kind !== "NonNullType"
|
|
@@ -70065,7 +70085,8 @@ async function generateOperationTypeDefs(config, filepath, document, body, defin
|
|
|
70065
70085
|
missingScalars,
|
|
70066
70086
|
includeFragments: false,
|
|
70067
70087
|
allOptional: true,
|
|
70068
|
-
field: null
|
|
70088
|
+
field: null,
|
|
70089
|
+
input: false
|
|
70069
70090
|
})
|
|
70070
70091
|
)
|
|
70071
70092
|
)
|
|
@@ -70098,7 +70119,8 @@ async function generateFragmentTypeDefs(config, filepath, body, selections, defi
|
|
|
70098
70119
|
filepath,
|
|
70099
70120
|
missingScalars,
|
|
70100
70121
|
definition2,
|
|
70101
|
-
body
|
|
70122
|
+
body,
|
|
70123
|
+
false
|
|
70102
70124
|
)
|
|
70103
70125
|
),
|
|
70104
70126
|
definition2.type.kind !== "NonNullType"
|
|
@@ -70161,7 +70183,8 @@ async function generateFragmentTypeDefs(config, filepath, body, selections, defi
|
|
|
70161
70183
|
visitedTypes,
|
|
70162
70184
|
missingScalars,
|
|
70163
70185
|
includeFragments: true,
|
|
70164
|
-
field: null
|
|
70186
|
+
field: null,
|
|
70187
|
+
input: false
|
|
70165
70188
|
})
|
|
70166
70189
|
})
|
|
70167
70190
|
)
|
|
@@ -70257,7 +70280,8 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
|
|
|
70257
70280
|
{
|
|
70258
70281
|
field: key,
|
|
70259
70282
|
parent: type.name
|
|
70260
|
-
}
|
|
70283
|
+
},
|
|
70284
|
+
false
|
|
70261
70285
|
)
|
|
70262
70286
|
)
|
|
70263
70287
|
);
|
|
@@ -70284,7 +70308,8 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
|
|
|
70284
70308
|
{
|
|
70285
70309
|
field: key,
|
|
70286
70310
|
parent: type.name
|
|
70287
|
-
}
|
|
70311
|
+
},
|
|
70312
|
+
false
|
|
70288
70313
|
)
|
|
70289
70314
|
);
|
|
70290
70315
|
} else if (graphql21.isEnumType(unwrapped.type)) {
|
|
@@ -70322,7 +70347,8 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
|
|
|
70322
70347
|
body,
|
|
70323
70348
|
visitedTypes,
|
|
70324
70349
|
/* @__PURE__ */ new Set(),
|
|
70325
|
-
arg.type
|
|
70350
|
+
arg.type,
|
|
70351
|
+
true
|
|
70326
70352
|
);
|
|
70327
70353
|
const prop = AST13.tsPropertySignature(
|
|
70328
70354
|
AST13.identifier(arg.name),
|
|
@@ -70332,7 +70358,8 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
|
|
|
70332
70358
|
filepath,
|
|
70333
70359
|
/* @__PURE__ */ new Set(),
|
|
70334
70360
|
arg,
|
|
70335
|
-
body
|
|
70361
|
+
body,
|
|
70362
|
+
graphql21.isInputType(arg.type)
|
|
70336
70363
|
)
|
|
70337
70364
|
)
|
|
70338
70365
|
);
|
|
@@ -70444,7 +70471,8 @@ function listDefinitions(config, filepath, body, docs) {
|
|
|
70444
70471
|
filepath,
|
|
70445
70472
|
/* @__PURE__ */ new Set(),
|
|
70446
70473
|
arg,
|
|
70447
|
-
body
|
|
70474
|
+
body,
|
|
70475
|
+
graphql21.isInputType(arg.type)
|
|
70448
70476
|
)
|
|
70449
70477
|
)
|
|
70450
70478
|
);
|