houdini 2.0.0-next.4 → 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 +52 -24
- package/build/vite-esm/index.js +52 -24
- package/package.json +1 -1
package/build/vite-cjs/index.js
CHANGED
|
@@ -76744,10 +76744,10 @@ var AST3 = recast2.types.builders;
|
|
|
76744
76744
|
function unwrappedTsTypeReference(config2, filepath, missingScalars, {
|
|
76745
76745
|
type,
|
|
76746
76746
|
wrappers
|
|
76747
|
-
}, body) {
|
|
76747
|
+
}, body, input) {
|
|
76748
76748
|
let result;
|
|
76749
76749
|
if (graphql6.isScalarType(type)) {
|
|
76750
|
-
result = scalarPropertyValue(config2, filepath, missingScalars, type, body, null);
|
|
76750
|
+
result = scalarPropertyValue(config2, filepath, missingScalars, type, body, null, input);
|
|
76751
76751
|
} else if (graphql6.isEnumType(type)) {
|
|
76752
76752
|
result = enumReference(config2, body, type.name);
|
|
76753
76753
|
} else {
|
|
@@ -76764,14 +76764,15 @@ function unwrappedTsTypeReference(config2, filepath, missingScalars, {
|
|
|
76764
76764
|
}
|
|
76765
76765
|
return result;
|
|
76766
76766
|
}
|
|
76767
|
-
function tsTypeReference(config2, filepath, missingScalars, definition, body) {
|
|
76767
|
+
function tsTypeReference(config2, filepath, missingScalars, definition, body, input) {
|
|
76768
76768
|
const { type, wrappers } = unwrapType(config2, definition.type);
|
|
76769
76769
|
return unwrappedTsTypeReference(
|
|
76770
76770
|
config2,
|
|
76771
76771
|
filepath,
|
|
76772
76772
|
missingScalars,
|
|
76773
76773
|
{ type, wrappers },
|
|
76774
|
-
body
|
|
76774
|
+
body,
|
|
76775
|
+
input
|
|
76775
76776
|
);
|
|
76776
76777
|
}
|
|
76777
76778
|
function enumReference(config2, body, name) {
|
|
@@ -76800,7 +76801,7 @@ function nullableField(inner, input = false) {
|
|
|
76800
76801
|
}
|
|
76801
76802
|
return AST3.tsUnionType(members);
|
|
76802
76803
|
}
|
|
76803
|
-
function scalarPropertyValue(config2, filepath, missingScalars, target, body, field) {
|
|
76804
|
+
function scalarPropertyValue(config2, filepath, missingScalars, target, body, field, input) {
|
|
76804
76805
|
if (config2.configFile.features?.componentFields && target.name === config2.componentScalar) {
|
|
76805
76806
|
if (!field) {
|
|
76806
76807
|
return AST3.tsNeverKeyword();
|
|
@@ -76859,6 +76860,9 @@ function scalarPropertyValue(config2, filepath, missingScalars, target, body, fi
|
|
|
76859
76860
|
return AST3.tsBooleanKeyword();
|
|
76860
76861
|
}
|
|
76861
76862
|
case "ID": {
|
|
76863
|
+
if (input) {
|
|
76864
|
+
return AST3.tsUnionType([AST3.tsStringKeyword(), AST3.tsNumberKeyword()]);
|
|
76865
|
+
}
|
|
76862
76866
|
return AST3.tsStringKeyword();
|
|
76863
76867
|
}
|
|
76864
76868
|
default: {
|
|
@@ -76869,7 +76873,8 @@ function scalarPropertyValue(config2, filepath, missingScalars, target, body, fi
|
|
|
76869
76873
|
missingScalars,
|
|
76870
76874
|
target.ofType,
|
|
76871
76875
|
body,
|
|
76872
|
-
field
|
|
76876
|
+
field,
|
|
76877
|
+
input
|
|
76873
76878
|
);
|
|
76874
76879
|
}
|
|
76875
76880
|
if (config2.scalars?.[target.name]) {
|
|
@@ -80014,7 +80019,7 @@ var recast11 = __toESM(require_main2(), 1);
|
|
|
80014
80019
|
var graphql19 = __toESM(require("graphql"), 1);
|
|
80015
80020
|
var recast7 = __toESM(require_main2(), 1);
|
|
80016
80021
|
var AST8 = recast7.types.builders;
|
|
80017
|
-
function addReferencedInputTypes(config2, filepath, body, visitedTypes, missingScalars, rootType) {
|
|
80022
|
+
function addReferencedInputTypes(config2, filepath, body, visitedTypes, missingScalars, rootType, input) {
|
|
80018
80023
|
const { type } = unwrapType(config2, rootType);
|
|
80019
80024
|
if (graphql19.isScalarType(type)) {
|
|
80020
80025
|
return;
|
|
@@ -80039,12 +80044,20 @@ function addReferencedInputTypes(config2, filepath, body, visitedTypes, missingS
|
|
|
80039
80044
|
}
|
|
80040
80045
|
const members = [];
|
|
80041
80046
|
for (const field of Object.values(type.getFields())) {
|
|
80042
|
-
addReferencedInputTypes(
|
|
80047
|
+
addReferencedInputTypes(
|
|
80048
|
+
config2,
|
|
80049
|
+
filepath,
|
|
80050
|
+
body,
|
|
80051
|
+
visitedTypes,
|
|
80052
|
+
missingScalars,
|
|
80053
|
+
field.type,
|
|
80054
|
+
input
|
|
80055
|
+
);
|
|
80043
80056
|
members.push(
|
|
80044
80057
|
AST8.tsPropertySignature(
|
|
80045
80058
|
AST8.identifier(field.name),
|
|
80046
80059
|
AST8.tsTypeAnnotation(
|
|
80047
|
-
tsTypeReference(config2, filepath, missingScalars, field, body)
|
|
80060
|
+
tsTypeReference(config2, filepath, missingScalars, field, body, input)
|
|
80048
80061
|
),
|
|
80049
80062
|
graphql19.isNullableType(field.type)
|
|
80050
80063
|
)
|
|
@@ -80087,7 +80100,8 @@ function inlineType({
|
|
|
80087
80100
|
includeFragments,
|
|
80088
80101
|
allOptional,
|
|
80089
80102
|
forceNonNull,
|
|
80090
|
-
field
|
|
80103
|
+
field,
|
|
80104
|
+
input
|
|
80091
80105
|
}) {
|
|
80092
80106
|
const { type, wrappers } = unwrapType(config2, rootType);
|
|
80093
80107
|
let result;
|
|
@@ -80099,7 +80113,8 @@ function inlineType({
|
|
|
80099
80113
|
missingScalars,
|
|
80100
80114
|
type,
|
|
80101
80115
|
body,
|
|
80102
|
-
field
|
|
80116
|
+
field,
|
|
80117
|
+
input
|
|
80103
80118
|
);
|
|
80104
80119
|
} else if (graphql20.isEnumType(type)) {
|
|
80105
80120
|
ensureImports({
|
|
@@ -80207,7 +80222,8 @@ function inlineType({
|
|
|
80207
80222
|
field: {
|
|
80208
80223
|
field: attributeName,
|
|
80209
80224
|
parent: type.name
|
|
80210
|
-
}
|
|
80225
|
+
},
|
|
80226
|
+
input
|
|
80211
80227
|
});
|
|
80212
80228
|
const hasIncludeOrSkipDirective = selection.directives && selection.directives.filter(
|
|
80213
80229
|
(directive) => directive.name.value === "include" || directive.name.value === "skip"
|
|
@@ -80271,7 +80287,8 @@ function inlineType({
|
|
|
80271
80287
|
missingScalars,
|
|
80272
80288
|
includeFragments,
|
|
80273
80289
|
allOptional,
|
|
80274
|
-
field: null
|
|
80290
|
+
field: null,
|
|
80291
|
+
input: false
|
|
80275
80292
|
});
|
|
80276
80293
|
let objectType = fragmentType;
|
|
80277
80294
|
if (fragmentType.type === "TSUnionType") {
|
|
@@ -80736,7 +80753,8 @@ async function generateOperationTypeDefs(config2, filepath, document, body, defi
|
|
|
80736
80753
|
body,
|
|
80737
80754
|
missingScalars,
|
|
80738
80755
|
includeFragments: true,
|
|
80739
|
-
field: null
|
|
80756
|
+
field: null,
|
|
80757
|
+
input: false
|
|
80740
80758
|
});
|
|
80741
80759
|
if (artifact.kind === "HoudiniQuery") {
|
|
80742
80760
|
resultType = withLoadingState({
|
|
@@ -80785,7 +80803,8 @@ async function generateOperationTypeDefs(config2, filepath, document, body, defi
|
|
|
80785
80803
|
body,
|
|
80786
80804
|
visitedTypes,
|
|
80787
80805
|
missingScalars,
|
|
80788
|
-
variableDefinition.type
|
|
80806
|
+
variableDefinition.type,
|
|
80807
|
+
true
|
|
80789
80808
|
);
|
|
80790
80809
|
}
|
|
80791
80810
|
body.push(
|
|
@@ -80803,7 +80822,8 @@ async function generateOperationTypeDefs(config2, filepath, document, body, defi
|
|
|
80803
80822
|
filepath,
|
|
80804
80823
|
missingScalars,
|
|
80805
80824
|
definition2,
|
|
80806
|
-
body
|
|
80825
|
+
body,
|
|
80826
|
+
true
|
|
80807
80827
|
)
|
|
80808
80828
|
),
|
|
80809
80829
|
definition2.type.kind !== "NonNullType"
|
|
@@ -80838,7 +80858,8 @@ async function generateOperationTypeDefs(config2, filepath, document, body, defi
|
|
|
80838
80858
|
missingScalars,
|
|
80839
80859
|
includeFragments: false,
|
|
80840
80860
|
allOptional: true,
|
|
80841
|
-
field: null
|
|
80861
|
+
field: null,
|
|
80862
|
+
input: false
|
|
80842
80863
|
})
|
|
80843
80864
|
)
|
|
80844
80865
|
)
|
|
@@ -80871,7 +80892,8 @@ async function generateFragmentTypeDefs(config2, filepath, body, selections, def
|
|
|
80871
80892
|
filepath,
|
|
80872
80893
|
missingScalars,
|
|
80873
80894
|
definition2,
|
|
80874
|
-
body
|
|
80895
|
+
body,
|
|
80896
|
+
false
|
|
80875
80897
|
)
|
|
80876
80898
|
),
|
|
80877
80899
|
definition2.type.kind !== "NonNullType"
|
|
@@ -80934,7 +80956,8 @@ async function generateFragmentTypeDefs(config2, filepath, body, selections, def
|
|
|
80934
80956
|
visitedTypes,
|
|
80935
80957
|
missingScalars,
|
|
80936
80958
|
includeFragments: true,
|
|
80937
|
-
field: null
|
|
80959
|
+
field: null,
|
|
80960
|
+
input: false
|
|
80938
80961
|
})
|
|
80939
80962
|
})
|
|
80940
80963
|
)
|
|
@@ -81030,7 +81053,8 @@ function typeDefinitions(config2, filepath, body, docs, returnType) {
|
|
|
81030
81053
|
{
|
|
81031
81054
|
field: key,
|
|
81032
81055
|
parent: type.name
|
|
81033
|
-
}
|
|
81056
|
+
},
|
|
81057
|
+
false
|
|
81034
81058
|
)
|
|
81035
81059
|
)
|
|
81036
81060
|
);
|
|
@@ -81057,7 +81081,8 @@ function typeDefinitions(config2, filepath, body, docs, returnType) {
|
|
|
81057
81081
|
{
|
|
81058
81082
|
field: key,
|
|
81059
81083
|
parent: type.name
|
|
81060
|
-
}
|
|
81084
|
+
},
|
|
81085
|
+
false
|
|
81061
81086
|
)
|
|
81062
81087
|
);
|
|
81063
81088
|
} else if (graphql21.isEnumType(unwrapped.type)) {
|
|
@@ -81095,7 +81120,8 @@ function typeDefinitions(config2, filepath, body, docs, returnType) {
|
|
|
81095
81120
|
body,
|
|
81096
81121
|
visitedTypes,
|
|
81097
81122
|
/* @__PURE__ */ new Set(),
|
|
81098
|
-
arg.type
|
|
81123
|
+
arg.type,
|
|
81124
|
+
true
|
|
81099
81125
|
);
|
|
81100
81126
|
const prop = AST13.tsPropertySignature(
|
|
81101
81127
|
AST13.identifier(arg.name),
|
|
@@ -81105,7 +81131,8 @@ function typeDefinitions(config2, filepath, body, docs, returnType) {
|
|
|
81105
81131
|
filepath,
|
|
81106
81132
|
/* @__PURE__ */ new Set(),
|
|
81107
81133
|
arg,
|
|
81108
|
-
body
|
|
81134
|
+
body,
|
|
81135
|
+
graphql21.isInputType(arg.type)
|
|
81109
81136
|
)
|
|
81110
81137
|
)
|
|
81111
81138
|
);
|
|
@@ -81217,7 +81244,8 @@ function listDefinitions(config2, filepath, body, docs) {
|
|
|
81217
81244
|
filepath,
|
|
81218
81245
|
/* @__PURE__ */ new Set(),
|
|
81219
81246
|
arg,
|
|
81220
|
-
body
|
|
81247
|
+
body,
|
|
81248
|
+
graphql21.isInputType(arg.type)
|
|
81221
81249
|
)
|
|
81222
81250
|
)
|
|
81223
81251
|
);
|
package/build/vite-esm/index.js
CHANGED
|
@@ -76736,10 +76736,10 @@ var AST3 = recast2.types.builders;
|
|
|
76736
76736
|
function unwrappedTsTypeReference(config2, filepath, missingScalars, {
|
|
76737
76737
|
type,
|
|
76738
76738
|
wrappers
|
|
76739
|
-
}, body) {
|
|
76739
|
+
}, body, input) {
|
|
76740
76740
|
let result;
|
|
76741
76741
|
if (graphql6.isScalarType(type)) {
|
|
76742
|
-
result = scalarPropertyValue(config2, filepath, missingScalars, type, body, null);
|
|
76742
|
+
result = scalarPropertyValue(config2, filepath, missingScalars, type, body, null, input);
|
|
76743
76743
|
} else if (graphql6.isEnumType(type)) {
|
|
76744
76744
|
result = enumReference(config2, body, type.name);
|
|
76745
76745
|
} else {
|
|
@@ -76756,14 +76756,15 @@ function unwrappedTsTypeReference(config2, filepath, missingScalars, {
|
|
|
76756
76756
|
}
|
|
76757
76757
|
return result;
|
|
76758
76758
|
}
|
|
76759
|
-
function tsTypeReference(config2, filepath, missingScalars, definition, body) {
|
|
76759
|
+
function tsTypeReference(config2, filepath, missingScalars, definition, body, input) {
|
|
76760
76760
|
const { type, wrappers } = unwrapType(config2, definition.type);
|
|
76761
76761
|
return unwrappedTsTypeReference(
|
|
76762
76762
|
config2,
|
|
76763
76763
|
filepath,
|
|
76764
76764
|
missingScalars,
|
|
76765
76765
|
{ type, wrappers },
|
|
76766
|
-
body
|
|
76766
|
+
body,
|
|
76767
|
+
input
|
|
76767
76768
|
);
|
|
76768
76769
|
}
|
|
76769
76770
|
function enumReference(config2, body, name) {
|
|
@@ -76792,7 +76793,7 @@ function nullableField(inner, input = false) {
|
|
|
76792
76793
|
}
|
|
76793
76794
|
return AST3.tsUnionType(members);
|
|
76794
76795
|
}
|
|
76795
|
-
function scalarPropertyValue(config2, filepath, missingScalars, target, body, field) {
|
|
76796
|
+
function scalarPropertyValue(config2, filepath, missingScalars, target, body, field, input) {
|
|
76796
76797
|
if (config2.configFile.features?.componentFields && target.name === config2.componentScalar) {
|
|
76797
76798
|
if (!field) {
|
|
76798
76799
|
return AST3.tsNeverKeyword();
|
|
@@ -76851,6 +76852,9 @@ function scalarPropertyValue(config2, filepath, missingScalars, target, body, fi
|
|
|
76851
76852
|
return AST3.tsBooleanKeyword();
|
|
76852
76853
|
}
|
|
76853
76854
|
case "ID": {
|
|
76855
|
+
if (input) {
|
|
76856
|
+
return AST3.tsUnionType([AST3.tsStringKeyword(), AST3.tsNumberKeyword()]);
|
|
76857
|
+
}
|
|
76854
76858
|
return AST3.tsStringKeyword();
|
|
76855
76859
|
}
|
|
76856
76860
|
default: {
|
|
@@ -76861,7 +76865,8 @@ function scalarPropertyValue(config2, filepath, missingScalars, target, body, fi
|
|
|
76861
76865
|
missingScalars,
|
|
76862
76866
|
target.ofType,
|
|
76863
76867
|
body,
|
|
76864
|
-
field
|
|
76868
|
+
field,
|
|
76869
|
+
input
|
|
76865
76870
|
);
|
|
76866
76871
|
}
|
|
76867
76872
|
if (config2.scalars?.[target.name]) {
|
|
@@ -80006,7 +80011,7 @@ var recast11 = __toESM(require_main2(), 1);
|
|
|
80006
80011
|
var recast7 = __toESM(require_main2(), 1);
|
|
80007
80012
|
import * as graphql19 from "graphql";
|
|
80008
80013
|
var AST8 = recast7.types.builders;
|
|
80009
|
-
function addReferencedInputTypes(config2, filepath, body, visitedTypes, missingScalars, rootType) {
|
|
80014
|
+
function addReferencedInputTypes(config2, filepath, body, visitedTypes, missingScalars, rootType, input) {
|
|
80010
80015
|
const { type } = unwrapType(config2, rootType);
|
|
80011
80016
|
if (graphql19.isScalarType(type)) {
|
|
80012
80017
|
return;
|
|
@@ -80031,12 +80036,20 @@ function addReferencedInputTypes(config2, filepath, body, visitedTypes, missingS
|
|
|
80031
80036
|
}
|
|
80032
80037
|
const members = [];
|
|
80033
80038
|
for (const field of Object.values(type.getFields())) {
|
|
80034
|
-
addReferencedInputTypes(
|
|
80039
|
+
addReferencedInputTypes(
|
|
80040
|
+
config2,
|
|
80041
|
+
filepath,
|
|
80042
|
+
body,
|
|
80043
|
+
visitedTypes,
|
|
80044
|
+
missingScalars,
|
|
80045
|
+
field.type,
|
|
80046
|
+
input
|
|
80047
|
+
);
|
|
80035
80048
|
members.push(
|
|
80036
80049
|
AST8.tsPropertySignature(
|
|
80037
80050
|
AST8.identifier(field.name),
|
|
80038
80051
|
AST8.tsTypeAnnotation(
|
|
80039
|
-
tsTypeReference(config2, filepath, missingScalars, field, body)
|
|
80052
|
+
tsTypeReference(config2, filepath, missingScalars, field, body, input)
|
|
80040
80053
|
),
|
|
80041
80054
|
graphql19.isNullableType(field.type)
|
|
80042
80055
|
)
|
|
@@ -80079,7 +80092,8 @@ function inlineType({
|
|
|
80079
80092
|
includeFragments,
|
|
80080
80093
|
allOptional,
|
|
80081
80094
|
forceNonNull,
|
|
80082
|
-
field
|
|
80095
|
+
field,
|
|
80096
|
+
input
|
|
80083
80097
|
}) {
|
|
80084
80098
|
const { type, wrappers } = unwrapType(config2, rootType);
|
|
80085
80099
|
let result;
|
|
@@ -80091,7 +80105,8 @@ function inlineType({
|
|
|
80091
80105
|
missingScalars,
|
|
80092
80106
|
type,
|
|
80093
80107
|
body,
|
|
80094
|
-
field
|
|
80108
|
+
field,
|
|
80109
|
+
input
|
|
80095
80110
|
);
|
|
80096
80111
|
} else if (graphql20.isEnumType(type)) {
|
|
80097
80112
|
ensureImports({
|
|
@@ -80199,7 +80214,8 @@ function inlineType({
|
|
|
80199
80214
|
field: {
|
|
80200
80215
|
field: attributeName,
|
|
80201
80216
|
parent: type.name
|
|
80202
|
-
}
|
|
80217
|
+
},
|
|
80218
|
+
input
|
|
80203
80219
|
});
|
|
80204
80220
|
const hasIncludeOrSkipDirective = selection.directives && selection.directives.filter(
|
|
80205
80221
|
(directive) => directive.name.value === "include" || directive.name.value === "skip"
|
|
@@ -80263,7 +80279,8 @@ function inlineType({
|
|
|
80263
80279
|
missingScalars,
|
|
80264
80280
|
includeFragments,
|
|
80265
80281
|
allOptional,
|
|
80266
|
-
field: null
|
|
80282
|
+
field: null,
|
|
80283
|
+
input: false
|
|
80267
80284
|
});
|
|
80268
80285
|
let objectType = fragmentType;
|
|
80269
80286
|
if (fragmentType.type === "TSUnionType") {
|
|
@@ -80728,7 +80745,8 @@ async function generateOperationTypeDefs(config2, filepath, document, body, defi
|
|
|
80728
80745
|
body,
|
|
80729
80746
|
missingScalars,
|
|
80730
80747
|
includeFragments: true,
|
|
80731
|
-
field: null
|
|
80748
|
+
field: null,
|
|
80749
|
+
input: false
|
|
80732
80750
|
});
|
|
80733
80751
|
if (artifact.kind === "HoudiniQuery") {
|
|
80734
80752
|
resultType = withLoadingState({
|
|
@@ -80777,7 +80795,8 @@ async function generateOperationTypeDefs(config2, filepath, document, body, defi
|
|
|
80777
80795
|
body,
|
|
80778
80796
|
visitedTypes,
|
|
80779
80797
|
missingScalars,
|
|
80780
|
-
variableDefinition.type
|
|
80798
|
+
variableDefinition.type,
|
|
80799
|
+
true
|
|
80781
80800
|
);
|
|
80782
80801
|
}
|
|
80783
80802
|
body.push(
|
|
@@ -80795,7 +80814,8 @@ async function generateOperationTypeDefs(config2, filepath, document, body, defi
|
|
|
80795
80814
|
filepath,
|
|
80796
80815
|
missingScalars,
|
|
80797
80816
|
definition2,
|
|
80798
|
-
body
|
|
80817
|
+
body,
|
|
80818
|
+
true
|
|
80799
80819
|
)
|
|
80800
80820
|
),
|
|
80801
80821
|
definition2.type.kind !== "NonNullType"
|
|
@@ -80830,7 +80850,8 @@ async function generateOperationTypeDefs(config2, filepath, document, body, defi
|
|
|
80830
80850
|
missingScalars,
|
|
80831
80851
|
includeFragments: false,
|
|
80832
80852
|
allOptional: true,
|
|
80833
|
-
field: null
|
|
80853
|
+
field: null,
|
|
80854
|
+
input: false
|
|
80834
80855
|
})
|
|
80835
80856
|
)
|
|
80836
80857
|
)
|
|
@@ -80863,7 +80884,8 @@ async function generateFragmentTypeDefs(config2, filepath, body, selections, def
|
|
|
80863
80884
|
filepath,
|
|
80864
80885
|
missingScalars,
|
|
80865
80886
|
definition2,
|
|
80866
|
-
body
|
|
80887
|
+
body,
|
|
80888
|
+
false
|
|
80867
80889
|
)
|
|
80868
80890
|
),
|
|
80869
80891
|
definition2.type.kind !== "NonNullType"
|
|
@@ -80926,7 +80948,8 @@ async function generateFragmentTypeDefs(config2, filepath, body, selections, def
|
|
|
80926
80948
|
visitedTypes,
|
|
80927
80949
|
missingScalars,
|
|
80928
80950
|
includeFragments: true,
|
|
80929
|
-
field: null
|
|
80951
|
+
field: null,
|
|
80952
|
+
input: false
|
|
80930
80953
|
})
|
|
80931
80954
|
})
|
|
80932
80955
|
)
|
|
@@ -81022,7 +81045,8 @@ function typeDefinitions(config2, filepath, body, docs, returnType) {
|
|
|
81022
81045
|
{
|
|
81023
81046
|
field: key,
|
|
81024
81047
|
parent: type.name
|
|
81025
|
-
}
|
|
81048
|
+
},
|
|
81049
|
+
false
|
|
81026
81050
|
)
|
|
81027
81051
|
)
|
|
81028
81052
|
);
|
|
@@ -81049,7 +81073,8 @@ function typeDefinitions(config2, filepath, body, docs, returnType) {
|
|
|
81049
81073
|
{
|
|
81050
81074
|
field: key,
|
|
81051
81075
|
parent: type.name
|
|
81052
|
-
}
|
|
81076
|
+
},
|
|
81077
|
+
false
|
|
81053
81078
|
)
|
|
81054
81079
|
);
|
|
81055
81080
|
} else if (graphql21.isEnumType(unwrapped.type)) {
|
|
@@ -81087,7 +81112,8 @@ function typeDefinitions(config2, filepath, body, docs, returnType) {
|
|
|
81087
81112
|
body,
|
|
81088
81113
|
visitedTypes,
|
|
81089
81114
|
/* @__PURE__ */ new Set(),
|
|
81090
|
-
arg.type
|
|
81115
|
+
arg.type,
|
|
81116
|
+
true
|
|
81091
81117
|
);
|
|
81092
81118
|
const prop = AST13.tsPropertySignature(
|
|
81093
81119
|
AST13.identifier(arg.name),
|
|
@@ -81097,7 +81123,8 @@ function typeDefinitions(config2, filepath, body, docs, returnType) {
|
|
|
81097
81123
|
filepath,
|
|
81098
81124
|
/* @__PURE__ */ new Set(),
|
|
81099
81125
|
arg,
|
|
81100
|
-
body
|
|
81126
|
+
body,
|
|
81127
|
+
graphql21.isInputType(arg.type)
|
|
81101
81128
|
)
|
|
81102
81129
|
)
|
|
81103
81130
|
);
|
|
@@ -81209,7 +81236,8 @@ function listDefinitions(config2, filepath, body, docs) {
|
|
|
81209
81236
|
filepath,
|
|
81210
81237
|
/* @__PURE__ */ new Set(),
|
|
81211
81238
|
arg,
|
|
81212
|
-
body
|
|
81239
|
+
body,
|
|
81240
|
+
graphql21.isInputType(arg.type)
|
|
81213
81241
|
)
|
|
81214
81242
|
)
|
|
81215
81243
|
);
|