houdini 2.0.0-next.4 → 2.0.0-next.6
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 +14 -8
- package/build/lib-esm/index.js +14 -8
- package/build/runtime/router/cookies.d.ts +9 -9
- package/build/runtime/router/server.d.ts +1 -1
- package/build/runtime/router/session.d.ts +1 -0
- package/build/runtime-cjs/client/index.js +1 -1
- package/build/runtime-cjs/router/cookies.d.ts +9 -9
- package/build/runtime-cjs/router/cookies.js +1 -1
- package/build/runtime-cjs/router/server.d.ts +1 -1
- package/build/runtime-cjs/router/server.js +19 -9
- package/build/runtime-cjs/router/session.d.ts +1 -0
- package/build/runtime-cjs/router/session.js +4 -2
- package/build/runtime-esm/client/index.js +1 -1
- package/build/runtime-esm/router/cookies.d.ts +9 -9
- package/build/runtime-esm/router/cookies.js +1 -1
- package/build/runtime-esm/router/server.d.ts +1 -1
- package/build/runtime-esm/router/server.js +20 -10
- package/build/runtime-esm/router/session.d.ts +1 -0
- package/build/runtime-esm/router/session.js +2 -1
- package/build/test-cjs/index.js +52 -24
- package/build/test-esm/index.js +52 -24
- package/build/vite-cjs/index.js +54 -25
- package/build/vite-esm/index.js +54 -25
- package/package.json +1 -1
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
|
);
|
package/build/vite-cjs/index.js
CHANGED
|
@@ -73026,7 +73026,8 @@ async function load_manifest(args) {
|
|
|
73026
73026
|
const name = child.isDirectory() ? child.name : parse3(child.name).name;
|
|
73027
73027
|
if (name === "+schema") {
|
|
73028
73028
|
manifest.local_schema = true;
|
|
73029
|
-
}
|
|
73029
|
+
}
|
|
73030
|
+
if (name === "+yoga") {
|
|
73030
73031
|
manifest.local_yoga = true;
|
|
73031
73032
|
}
|
|
73032
73033
|
}
|
|
@@ -76744,10 +76745,10 @@ var AST3 = recast2.types.builders;
|
|
|
76744
76745
|
function unwrappedTsTypeReference(config2, filepath, missingScalars, {
|
|
76745
76746
|
type,
|
|
76746
76747
|
wrappers
|
|
76747
|
-
}, body) {
|
|
76748
|
+
}, body, input) {
|
|
76748
76749
|
let result;
|
|
76749
76750
|
if (graphql6.isScalarType(type)) {
|
|
76750
|
-
result = scalarPropertyValue(config2, filepath, missingScalars, type, body, null);
|
|
76751
|
+
result = scalarPropertyValue(config2, filepath, missingScalars, type, body, null, input);
|
|
76751
76752
|
} else if (graphql6.isEnumType(type)) {
|
|
76752
76753
|
result = enumReference(config2, body, type.name);
|
|
76753
76754
|
} else {
|
|
@@ -76764,14 +76765,15 @@ function unwrappedTsTypeReference(config2, filepath, missingScalars, {
|
|
|
76764
76765
|
}
|
|
76765
76766
|
return result;
|
|
76766
76767
|
}
|
|
76767
|
-
function tsTypeReference(config2, filepath, missingScalars, definition, body) {
|
|
76768
|
+
function tsTypeReference(config2, filepath, missingScalars, definition, body, input) {
|
|
76768
76769
|
const { type, wrappers } = unwrapType(config2, definition.type);
|
|
76769
76770
|
return unwrappedTsTypeReference(
|
|
76770
76771
|
config2,
|
|
76771
76772
|
filepath,
|
|
76772
76773
|
missingScalars,
|
|
76773
76774
|
{ type, wrappers },
|
|
76774
|
-
body
|
|
76775
|
+
body,
|
|
76776
|
+
input
|
|
76775
76777
|
);
|
|
76776
76778
|
}
|
|
76777
76779
|
function enumReference(config2, body, name) {
|
|
@@ -76800,7 +76802,7 @@ function nullableField(inner, input = false) {
|
|
|
76800
76802
|
}
|
|
76801
76803
|
return AST3.tsUnionType(members);
|
|
76802
76804
|
}
|
|
76803
|
-
function scalarPropertyValue(config2, filepath, missingScalars, target, body, field) {
|
|
76805
|
+
function scalarPropertyValue(config2, filepath, missingScalars, target, body, field, input) {
|
|
76804
76806
|
if (config2.configFile.features?.componentFields && target.name === config2.componentScalar) {
|
|
76805
76807
|
if (!field) {
|
|
76806
76808
|
return AST3.tsNeverKeyword();
|
|
@@ -76859,6 +76861,9 @@ function scalarPropertyValue(config2, filepath, missingScalars, target, body, fi
|
|
|
76859
76861
|
return AST3.tsBooleanKeyword();
|
|
76860
76862
|
}
|
|
76861
76863
|
case "ID": {
|
|
76864
|
+
if (input) {
|
|
76865
|
+
return AST3.tsUnionType([AST3.tsStringKeyword(), AST3.tsNumberKeyword()]);
|
|
76866
|
+
}
|
|
76862
76867
|
return AST3.tsStringKeyword();
|
|
76863
76868
|
}
|
|
76864
76869
|
default: {
|
|
@@ -76869,7 +76874,8 @@ function scalarPropertyValue(config2, filepath, missingScalars, target, body, fi
|
|
|
76869
76874
|
missingScalars,
|
|
76870
76875
|
target.ofType,
|
|
76871
76876
|
body,
|
|
76872
|
-
field
|
|
76877
|
+
field,
|
|
76878
|
+
input
|
|
76873
76879
|
);
|
|
76874
76880
|
}
|
|
76875
76881
|
if (config2.scalars?.[target.name]) {
|
|
@@ -80014,7 +80020,7 @@ var recast11 = __toESM(require_main2(), 1);
|
|
|
80014
80020
|
var graphql19 = __toESM(require("graphql"), 1);
|
|
80015
80021
|
var recast7 = __toESM(require_main2(), 1);
|
|
80016
80022
|
var AST8 = recast7.types.builders;
|
|
80017
|
-
function addReferencedInputTypes(config2, filepath, body, visitedTypes, missingScalars, rootType) {
|
|
80023
|
+
function addReferencedInputTypes(config2, filepath, body, visitedTypes, missingScalars, rootType, input) {
|
|
80018
80024
|
const { type } = unwrapType(config2, rootType);
|
|
80019
80025
|
if (graphql19.isScalarType(type)) {
|
|
80020
80026
|
return;
|
|
@@ -80039,12 +80045,20 @@ function addReferencedInputTypes(config2, filepath, body, visitedTypes, missingS
|
|
|
80039
80045
|
}
|
|
80040
80046
|
const members = [];
|
|
80041
80047
|
for (const field of Object.values(type.getFields())) {
|
|
80042
|
-
addReferencedInputTypes(
|
|
80048
|
+
addReferencedInputTypes(
|
|
80049
|
+
config2,
|
|
80050
|
+
filepath,
|
|
80051
|
+
body,
|
|
80052
|
+
visitedTypes,
|
|
80053
|
+
missingScalars,
|
|
80054
|
+
field.type,
|
|
80055
|
+
input
|
|
80056
|
+
);
|
|
80043
80057
|
members.push(
|
|
80044
80058
|
AST8.tsPropertySignature(
|
|
80045
80059
|
AST8.identifier(field.name),
|
|
80046
80060
|
AST8.tsTypeAnnotation(
|
|
80047
|
-
tsTypeReference(config2, filepath, missingScalars, field, body)
|
|
80061
|
+
tsTypeReference(config2, filepath, missingScalars, field, body, input)
|
|
80048
80062
|
),
|
|
80049
80063
|
graphql19.isNullableType(field.type)
|
|
80050
80064
|
)
|
|
@@ -80087,7 +80101,8 @@ function inlineType({
|
|
|
80087
80101
|
includeFragments,
|
|
80088
80102
|
allOptional,
|
|
80089
80103
|
forceNonNull,
|
|
80090
|
-
field
|
|
80104
|
+
field,
|
|
80105
|
+
input
|
|
80091
80106
|
}) {
|
|
80092
80107
|
const { type, wrappers } = unwrapType(config2, rootType);
|
|
80093
80108
|
let result;
|
|
@@ -80099,7 +80114,8 @@ function inlineType({
|
|
|
80099
80114
|
missingScalars,
|
|
80100
80115
|
type,
|
|
80101
80116
|
body,
|
|
80102
|
-
field
|
|
80117
|
+
field,
|
|
80118
|
+
input
|
|
80103
80119
|
);
|
|
80104
80120
|
} else if (graphql20.isEnumType(type)) {
|
|
80105
80121
|
ensureImports({
|
|
@@ -80207,7 +80223,8 @@ function inlineType({
|
|
|
80207
80223
|
field: {
|
|
80208
80224
|
field: attributeName,
|
|
80209
80225
|
parent: type.name
|
|
80210
|
-
}
|
|
80226
|
+
},
|
|
80227
|
+
input
|
|
80211
80228
|
});
|
|
80212
80229
|
const hasIncludeOrSkipDirective = selection.directives && selection.directives.filter(
|
|
80213
80230
|
(directive) => directive.name.value === "include" || directive.name.value === "skip"
|
|
@@ -80271,7 +80288,8 @@ function inlineType({
|
|
|
80271
80288
|
missingScalars,
|
|
80272
80289
|
includeFragments,
|
|
80273
80290
|
allOptional,
|
|
80274
|
-
field: null
|
|
80291
|
+
field: null,
|
|
80292
|
+
input: false
|
|
80275
80293
|
});
|
|
80276
80294
|
let objectType = fragmentType;
|
|
80277
80295
|
if (fragmentType.type === "TSUnionType") {
|
|
@@ -80736,7 +80754,8 @@ async function generateOperationTypeDefs(config2, filepath, document, body, defi
|
|
|
80736
80754
|
body,
|
|
80737
80755
|
missingScalars,
|
|
80738
80756
|
includeFragments: true,
|
|
80739
|
-
field: null
|
|
80757
|
+
field: null,
|
|
80758
|
+
input: false
|
|
80740
80759
|
});
|
|
80741
80760
|
if (artifact.kind === "HoudiniQuery") {
|
|
80742
80761
|
resultType = withLoadingState({
|
|
@@ -80785,7 +80804,8 @@ async function generateOperationTypeDefs(config2, filepath, document, body, defi
|
|
|
80785
80804
|
body,
|
|
80786
80805
|
visitedTypes,
|
|
80787
80806
|
missingScalars,
|
|
80788
|
-
variableDefinition.type
|
|
80807
|
+
variableDefinition.type,
|
|
80808
|
+
true
|
|
80789
80809
|
);
|
|
80790
80810
|
}
|
|
80791
80811
|
body.push(
|
|
@@ -80803,7 +80823,8 @@ async function generateOperationTypeDefs(config2, filepath, document, body, defi
|
|
|
80803
80823
|
filepath,
|
|
80804
80824
|
missingScalars,
|
|
80805
80825
|
definition2,
|
|
80806
|
-
body
|
|
80826
|
+
body,
|
|
80827
|
+
true
|
|
80807
80828
|
)
|
|
80808
80829
|
),
|
|
80809
80830
|
definition2.type.kind !== "NonNullType"
|
|
@@ -80838,7 +80859,8 @@ async function generateOperationTypeDefs(config2, filepath, document, body, defi
|
|
|
80838
80859
|
missingScalars,
|
|
80839
80860
|
includeFragments: false,
|
|
80840
80861
|
allOptional: true,
|
|
80841
|
-
field: null
|
|
80862
|
+
field: null,
|
|
80863
|
+
input: false
|
|
80842
80864
|
})
|
|
80843
80865
|
)
|
|
80844
80866
|
)
|
|
@@ -80871,7 +80893,8 @@ async function generateFragmentTypeDefs(config2, filepath, body, selections, def
|
|
|
80871
80893
|
filepath,
|
|
80872
80894
|
missingScalars,
|
|
80873
80895
|
definition2,
|
|
80874
|
-
body
|
|
80896
|
+
body,
|
|
80897
|
+
false
|
|
80875
80898
|
)
|
|
80876
80899
|
),
|
|
80877
80900
|
definition2.type.kind !== "NonNullType"
|
|
@@ -80934,7 +80957,8 @@ async function generateFragmentTypeDefs(config2, filepath, body, selections, def
|
|
|
80934
80957
|
visitedTypes,
|
|
80935
80958
|
missingScalars,
|
|
80936
80959
|
includeFragments: true,
|
|
80937
|
-
field: null
|
|
80960
|
+
field: null,
|
|
80961
|
+
input: false
|
|
80938
80962
|
})
|
|
80939
80963
|
})
|
|
80940
80964
|
)
|
|
@@ -81030,7 +81054,8 @@ function typeDefinitions(config2, filepath, body, docs, returnType) {
|
|
|
81030
81054
|
{
|
|
81031
81055
|
field: key,
|
|
81032
81056
|
parent: type.name
|
|
81033
|
-
}
|
|
81057
|
+
},
|
|
81058
|
+
false
|
|
81034
81059
|
)
|
|
81035
81060
|
)
|
|
81036
81061
|
);
|
|
@@ -81057,7 +81082,8 @@ function typeDefinitions(config2, filepath, body, docs, returnType) {
|
|
|
81057
81082
|
{
|
|
81058
81083
|
field: key,
|
|
81059
81084
|
parent: type.name
|
|
81060
|
-
}
|
|
81085
|
+
},
|
|
81086
|
+
false
|
|
81061
81087
|
)
|
|
81062
81088
|
);
|
|
81063
81089
|
} else if (graphql21.isEnumType(unwrapped.type)) {
|
|
@@ -81095,7 +81121,8 @@ function typeDefinitions(config2, filepath, body, docs, returnType) {
|
|
|
81095
81121
|
body,
|
|
81096
81122
|
visitedTypes,
|
|
81097
81123
|
/* @__PURE__ */ new Set(),
|
|
81098
|
-
arg.type
|
|
81124
|
+
arg.type,
|
|
81125
|
+
true
|
|
81099
81126
|
);
|
|
81100
81127
|
const prop = AST13.tsPropertySignature(
|
|
81101
81128
|
AST13.identifier(arg.name),
|
|
@@ -81105,7 +81132,8 @@ function typeDefinitions(config2, filepath, body, docs, returnType) {
|
|
|
81105
81132
|
filepath,
|
|
81106
81133
|
/* @__PURE__ */ new Set(),
|
|
81107
81134
|
arg,
|
|
81108
|
-
body
|
|
81135
|
+
body,
|
|
81136
|
+
graphql21.isInputType(arg.type)
|
|
81109
81137
|
)
|
|
81110
81138
|
)
|
|
81111
81139
|
);
|
|
@@ -81217,7 +81245,8 @@ function listDefinitions(config2, filepath, body, docs) {
|
|
|
81217
81245
|
filepath,
|
|
81218
81246
|
/* @__PURE__ */ new Set(),
|
|
81219
81247
|
arg,
|
|
81220
|
-
body
|
|
81248
|
+
body,
|
|
81249
|
+
graphql21.isInputType(arg.type)
|
|
81221
81250
|
)
|
|
81222
81251
|
)
|
|
81223
81252
|
);
|