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/cmd-cjs/index.js
CHANGED
|
@@ -79144,10 +79144,10 @@ var AST3 = recast2.types.builders;
|
|
|
79144
79144
|
function unwrappedTsTypeReference(config, filepath, missingScalars, {
|
|
79145
79145
|
type,
|
|
79146
79146
|
wrappers
|
|
79147
|
-
}, body) {
|
|
79147
|
+
}, body, input) {
|
|
79148
79148
|
let result;
|
|
79149
79149
|
if (graphql6.isScalarType(type)) {
|
|
79150
|
-
result = scalarPropertyValue(config, filepath, missingScalars, type, body, null);
|
|
79150
|
+
result = scalarPropertyValue(config, filepath, missingScalars, type, body, null, input);
|
|
79151
79151
|
} else if (graphql6.isEnumType(type)) {
|
|
79152
79152
|
result = enumReference(config, body, type.name);
|
|
79153
79153
|
} else {
|
|
@@ -79164,14 +79164,15 @@ function unwrappedTsTypeReference(config, filepath, missingScalars, {
|
|
|
79164
79164
|
}
|
|
79165
79165
|
return result;
|
|
79166
79166
|
}
|
|
79167
|
-
function tsTypeReference(config, filepath, missingScalars, definition, body) {
|
|
79167
|
+
function tsTypeReference(config, filepath, missingScalars, definition, body, input) {
|
|
79168
79168
|
const { type, wrappers } = unwrapType(config, definition.type);
|
|
79169
79169
|
return unwrappedTsTypeReference(
|
|
79170
79170
|
config,
|
|
79171
79171
|
filepath,
|
|
79172
79172
|
missingScalars,
|
|
79173
79173
|
{ type, wrappers },
|
|
79174
|
-
body
|
|
79174
|
+
body,
|
|
79175
|
+
input
|
|
79175
79176
|
);
|
|
79176
79177
|
}
|
|
79177
79178
|
function enumReference(config, body, name) {
|
|
@@ -79200,7 +79201,7 @@ function nullableField(inner, input = false) {
|
|
|
79200
79201
|
}
|
|
79201
79202
|
return AST3.tsUnionType(members);
|
|
79202
79203
|
}
|
|
79203
|
-
function scalarPropertyValue(config, filepath, missingScalars, target, body, field) {
|
|
79204
|
+
function scalarPropertyValue(config, filepath, missingScalars, target, body, field, input) {
|
|
79204
79205
|
if (config.configFile.features?.componentFields && target.name === config.componentScalar) {
|
|
79205
79206
|
if (!field) {
|
|
79206
79207
|
return AST3.tsNeverKeyword();
|
|
@@ -79259,6 +79260,9 @@ function scalarPropertyValue(config, filepath, missingScalars, target, body, fie
|
|
|
79259
79260
|
return AST3.tsBooleanKeyword();
|
|
79260
79261
|
}
|
|
79261
79262
|
case "ID": {
|
|
79263
|
+
if (input) {
|
|
79264
|
+
return AST3.tsUnionType([AST3.tsStringKeyword(), AST3.tsNumberKeyword()]);
|
|
79265
|
+
}
|
|
79262
79266
|
return AST3.tsStringKeyword();
|
|
79263
79267
|
}
|
|
79264
79268
|
default: {
|
|
@@ -79269,7 +79273,8 @@ function scalarPropertyValue(config, filepath, missingScalars, target, body, fie
|
|
|
79269
79273
|
missingScalars,
|
|
79270
79274
|
target.ofType,
|
|
79271
79275
|
body,
|
|
79272
|
-
field
|
|
79276
|
+
field,
|
|
79277
|
+
input
|
|
79273
79278
|
);
|
|
79274
79279
|
}
|
|
79275
79280
|
if (config.scalars?.[target.name]) {
|
|
@@ -82369,7 +82374,7 @@ var recast11 = __toESM(require_main2(), 1);
|
|
|
82369
82374
|
var graphql19 = __toESM(require("graphql"), 1);
|
|
82370
82375
|
var recast7 = __toESM(require_main2(), 1);
|
|
82371
82376
|
var AST8 = recast7.types.builders;
|
|
82372
|
-
function addReferencedInputTypes(config, filepath, body, visitedTypes, missingScalars, rootType) {
|
|
82377
|
+
function addReferencedInputTypes(config, filepath, body, visitedTypes, missingScalars, rootType, input) {
|
|
82373
82378
|
const { type } = unwrapType(config, rootType);
|
|
82374
82379
|
if (graphql19.isScalarType(type)) {
|
|
82375
82380
|
return;
|
|
@@ -82394,12 +82399,20 @@ function addReferencedInputTypes(config, filepath, body, visitedTypes, missingSc
|
|
|
82394
82399
|
}
|
|
82395
82400
|
const members = [];
|
|
82396
82401
|
for (const field of Object.values(type.getFields())) {
|
|
82397
|
-
addReferencedInputTypes(
|
|
82402
|
+
addReferencedInputTypes(
|
|
82403
|
+
config,
|
|
82404
|
+
filepath,
|
|
82405
|
+
body,
|
|
82406
|
+
visitedTypes,
|
|
82407
|
+
missingScalars,
|
|
82408
|
+
field.type,
|
|
82409
|
+
input
|
|
82410
|
+
);
|
|
82398
82411
|
members.push(
|
|
82399
82412
|
AST8.tsPropertySignature(
|
|
82400
82413
|
AST8.identifier(field.name),
|
|
82401
82414
|
AST8.tsTypeAnnotation(
|
|
82402
|
-
tsTypeReference(config, filepath, missingScalars, field, body)
|
|
82415
|
+
tsTypeReference(config, filepath, missingScalars, field, body, input)
|
|
82403
82416
|
),
|
|
82404
82417
|
graphql19.isNullableType(field.type)
|
|
82405
82418
|
)
|
|
@@ -82442,7 +82455,8 @@ function inlineType({
|
|
|
82442
82455
|
includeFragments,
|
|
82443
82456
|
allOptional,
|
|
82444
82457
|
forceNonNull,
|
|
82445
|
-
field
|
|
82458
|
+
field,
|
|
82459
|
+
input
|
|
82446
82460
|
}) {
|
|
82447
82461
|
const { type, wrappers } = unwrapType(config, rootType);
|
|
82448
82462
|
let result;
|
|
@@ -82454,7 +82468,8 @@ function inlineType({
|
|
|
82454
82468
|
missingScalars,
|
|
82455
82469
|
type,
|
|
82456
82470
|
body,
|
|
82457
|
-
field
|
|
82471
|
+
field,
|
|
82472
|
+
input
|
|
82458
82473
|
);
|
|
82459
82474
|
} else if (graphql20.isEnumType(type)) {
|
|
82460
82475
|
ensureImports({
|
|
@@ -82562,7 +82577,8 @@ function inlineType({
|
|
|
82562
82577
|
field: {
|
|
82563
82578
|
field: attributeName,
|
|
82564
82579
|
parent: type.name
|
|
82565
|
-
}
|
|
82580
|
+
},
|
|
82581
|
+
input
|
|
82566
82582
|
});
|
|
82567
82583
|
const hasIncludeOrSkipDirective = selection.directives && selection.directives.filter(
|
|
82568
82584
|
(directive) => directive.name.value === "include" || directive.name.value === "skip"
|
|
@@ -82626,7 +82642,8 @@ function inlineType({
|
|
|
82626
82642
|
missingScalars,
|
|
82627
82643
|
includeFragments,
|
|
82628
82644
|
allOptional,
|
|
82629
|
-
field: null
|
|
82645
|
+
field: null,
|
|
82646
|
+
input: false
|
|
82630
82647
|
});
|
|
82631
82648
|
let objectType = fragmentType;
|
|
82632
82649
|
if (fragmentType.type === "TSUnionType") {
|
|
@@ -83091,7 +83108,8 @@ async function generateOperationTypeDefs(config, filepath, document, body, defin
|
|
|
83091
83108
|
body,
|
|
83092
83109
|
missingScalars,
|
|
83093
83110
|
includeFragments: true,
|
|
83094
|
-
field: null
|
|
83111
|
+
field: null,
|
|
83112
|
+
input: false
|
|
83095
83113
|
});
|
|
83096
83114
|
if (artifact.kind === "HoudiniQuery") {
|
|
83097
83115
|
resultType = withLoadingState({
|
|
@@ -83140,7 +83158,8 @@ async function generateOperationTypeDefs(config, filepath, document, body, defin
|
|
|
83140
83158
|
body,
|
|
83141
83159
|
visitedTypes,
|
|
83142
83160
|
missingScalars,
|
|
83143
|
-
variableDefinition.type
|
|
83161
|
+
variableDefinition.type,
|
|
83162
|
+
true
|
|
83144
83163
|
);
|
|
83145
83164
|
}
|
|
83146
83165
|
body.push(
|
|
@@ -83158,7 +83177,8 @@ async function generateOperationTypeDefs(config, filepath, document, body, defin
|
|
|
83158
83177
|
filepath,
|
|
83159
83178
|
missingScalars,
|
|
83160
83179
|
definition2,
|
|
83161
|
-
body
|
|
83180
|
+
body,
|
|
83181
|
+
true
|
|
83162
83182
|
)
|
|
83163
83183
|
),
|
|
83164
83184
|
definition2.type.kind !== "NonNullType"
|
|
@@ -83193,7 +83213,8 @@ async function generateOperationTypeDefs(config, filepath, document, body, defin
|
|
|
83193
83213
|
missingScalars,
|
|
83194
83214
|
includeFragments: false,
|
|
83195
83215
|
allOptional: true,
|
|
83196
|
-
field: null
|
|
83216
|
+
field: null,
|
|
83217
|
+
input: false
|
|
83197
83218
|
})
|
|
83198
83219
|
)
|
|
83199
83220
|
)
|
|
@@ -83226,7 +83247,8 @@ async function generateFragmentTypeDefs(config, filepath, body, selections, defi
|
|
|
83226
83247
|
filepath,
|
|
83227
83248
|
missingScalars,
|
|
83228
83249
|
definition2,
|
|
83229
|
-
body
|
|
83250
|
+
body,
|
|
83251
|
+
false
|
|
83230
83252
|
)
|
|
83231
83253
|
),
|
|
83232
83254
|
definition2.type.kind !== "NonNullType"
|
|
@@ -83289,7 +83311,8 @@ async function generateFragmentTypeDefs(config, filepath, body, selections, defi
|
|
|
83289
83311
|
visitedTypes,
|
|
83290
83312
|
missingScalars,
|
|
83291
83313
|
includeFragments: true,
|
|
83292
|
-
field: null
|
|
83314
|
+
field: null,
|
|
83315
|
+
input: false
|
|
83293
83316
|
})
|
|
83294
83317
|
})
|
|
83295
83318
|
)
|
|
@@ -83385,7 +83408,8 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
|
|
|
83385
83408
|
{
|
|
83386
83409
|
field: key,
|
|
83387
83410
|
parent: type.name
|
|
83388
|
-
}
|
|
83411
|
+
},
|
|
83412
|
+
false
|
|
83389
83413
|
)
|
|
83390
83414
|
)
|
|
83391
83415
|
);
|
|
@@ -83412,7 +83436,8 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
|
|
|
83412
83436
|
{
|
|
83413
83437
|
field: key,
|
|
83414
83438
|
parent: type.name
|
|
83415
|
-
}
|
|
83439
|
+
},
|
|
83440
|
+
false
|
|
83416
83441
|
)
|
|
83417
83442
|
);
|
|
83418
83443
|
} else if (graphql21.isEnumType(unwrapped.type)) {
|
|
@@ -83450,7 +83475,8 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
|
|
|
83450
83475
|
body,
|
|
83451
83476
|
visitedTypes,
|
|
83452
83477
|
/* @__PURE__ */ new Set(),
|
|
83453
|
-
arg.type
|
|
83478
|
+
arg.type,
|
|
83479
|
+
true
|
|
83454
83480
|
);
|
|
83455
83481
|
const prop = AST13.tsPropertySignature(
|
|
83456
83482
|
AST13.identifier(arg.name),
|
|
@@ -83460,7 +83486,8 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
|
|
|
83460
83486
|
filepath,
|
|
83461
83487
|
/* @__PURE__ */ new Set(),
|
|
83462
83488
|
arg,
|
|
83463
|
-
body
|
|
83489
|
+
body,
|
|
83490
|
+
graphql21.isInputType(arg.type)
|
|
83464
83491
|
)
|
|
83465
83492
|
)
|
|
83466
83493
|
);
|
|
@@ -83572,7 +83599,8 @@ function listDefinitions(config, filepath, body, docs) {
|
|
|
83572
83599
|
filepath,
|
|
83573
83600
|
/* @__PURE__ */ new Set(),
|
|
83574
83601
|
arg,
|
|
83575
|
-
body
|
|
83602
|
+
body,
|
|
83603
|
+
graphql21.isInputType(arg.type)
|
|
83576
83604
|
)
|
|
83577
83605
|
)
|
|
83578
83606
|
);
|
|
@@ -89184,12 +89212,12 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
89184
89212
|
}
|
|
89185
89213
|
packageJSON2.devDependencies = {
|
|
89186
89214
|
...packageJSON2.devDependencies,
|
|
89187
|
-
houdini: "^2.0.0-next.
|
|
89215
|
+
houdini: "^2.0.0-next.6"
|
|
89188
89216
|
};
|
|
89189
89217
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
89190
89218
|
packageJSON2.devDependencies = {
|
|
89191
89219
|
...packageJSON2.devDependencies,
|
|
89192
|
-
"houdini-svelte": "^3.0.0-next.
|
|
89220
|
+
"houdini-svelte": "^3.0.0-next.9"
|
|
89193
89221
|
};
|
|
89194
89222
|
} else {
|
|
89195
89223
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
package/build/cmd-esm/index.js
CHANGED
|
@@ -79148,10 +79148,10 @@ var AST3 = recast2.types.builders;
|
|
|
79148
79148
|
function unwrappedTsTypeReference(config, filepath, missingScalars, {
|
|
79149
79149
|
type,
|
|
79150
79150
|
wrappers
|
|
79151
|
-
}, body) {
|
|
79151
|
+
}, body, input) {
|
|
79152
79152
|
let result;
|
|
79153
79153
|
if (graphql6.isScalarType(type)) {
|
|
79154
|
-
result = scalarPropertyValue(config, filepath, missingScalars, type, body, null);
|
|
79154
|
+
result = scalarPropertyValue(config, filepath, missingScalars, type, body, null, input);
|
|
79155
79155
|
} else if (graphql6.isEnumType(type)) {
|
|
79156
79156
|
result = enumReference(config, body, type.name);
|
|
79157
79157
|
} else {
|
|
@@ -79168,14 +79168,15 @@ function unwrappedTsTypeReference(config, filepath, missingScalars, {
|
|
|
79168
79168
|
}
|
|
79169
79169
|
return result;
|
|
79170
79170
|
}
|
|
79171
|
-
function tsTypeReference(config, filepath, missingScalars, definition, body) {
|
|
79171
|
+
function tsTypeReference(config, filepath, missingScalars, definition, body, input) {
|
|
79172
79172
|
const { type, wrappers } = unwrapType(config, definition.type);
|
|
79173
79173
|
return unwrappedTsTypeReference(
|
|
79174
79174
|
config,
|
|
79175
79175
|
filepath,
|
|
79176
79176
|
missingScalars,
|
|
79177
79177
|
{ type, wrappers },
|
|
79178
|
-
body
|
|
79178
|
+
body,
|
|
79179
|
+
input
|
|
79179
79180
|
);
|
|
79180
79181
|
}
|
|
79181
79182
|
function enumReference(config, body, name) {
|
|
@@ -79204,7 +79205,7 @@ function nullableField(inner, input = false) {
|
|
|
79204
79205
|
}
|
|
79205
79206
|
return AST3.tsUnionType(members);
|
|
79206
79207
|
}
|
|
79207
|
-
function scalarPropertyValue(config, filepath, missingScalars, target, body, field) {
|
|
79208
|
+
function scalarPropertyValue(config, filepath, missingScalars, target, body, field, input) {
|
|
79208
79209
|
if (config.configFile.features?.componentFields && target.name === config.componentScalar) {
|
|
79209
79210
|
if (!field) {
|
|
79210
79211
|
return AST3.tsNeverKeyword();
|
|
@@ -79263,6 +79264,9 @@ function scalarPropertyValue(config, filepath, missingScalars, target, body, fie
|
|
|
79263
79264
|
return AST3.tsBooleanKeyword();
|
|
79264
79265
|
}
|
|
79265
79266
|
case "ID": {
|
|
79267
|
+
if (input) {
|
|
79268
|
+
return AST3.tsUnionType([AST3.tsStringKeyword(), AST3.tsNumberKeyword()]);
|
|
79269
|
+
}
|
|
79266
79270
|
return AST3.tsStringKeyword();
|
|
79267
79271
|
}
|
|
79268
79272
|
default: {
|
|
@@ -79273,7 +79277,8 @@ function scalarPropertyValue(config, filepath, missingScalars, target, body, fie
|
|
|
79273
79277
|
missingScalars,
|
|
79274
79278
|
target.ofType,
|
|
79275
79279
|
body,
|
|
79276
|
-
field
|
|
79280
|
+
field,
|
|
79281
|
+
input
|
|
79277
79282
|
);
|
|
79278
79283
|
}
|
|
79279
79284
|
if (config.scalars?.[target.name]) {
|
|
@@ -82373,7 +82378,7 @@ var recast11 = __toESM(require_main2(), 1);
|
|
|
82373
82378
|
var recast7 = __toESM(require_main2(), 1);
|
|
82374
82379
|
import * as graphql19 from "graphql";
|
|
82375
82380
|
var AST8 = recast7.types.builders;
|
|
82376
|
-
function addReferencedInputTypes(config, filepath, body, visitedTypes, missingScalars, rootType) {
|
|
82381
|
+
function addReferencedInputTypes(config, filepath, body, visitedTypes, missingScalars, rootType, input) {
|
|
82377
82382
|
const { type } = unwrapType(config, rootType);
|
|
82378
82383
|
if (graphql19.isScalarType(type)) {
|
|
82379
82384
|
return;
|
|
@@ -82398,12 +82403,20 @@ function addReferencedInputTypes(config, filepath, body, visitedTypes, missingSc
|
|
|
82398
82403
|
}
|
|
82399
82404
|
const members = [];
|
|
82400
82405
|
for (const field of Object.values(type.getFields())) {
|
|
82401
|
-
addReferencedInputTypes(
|
|
82406
|
+
addReferencedInputTypes(
|
|
82407
|
+
config,
|
|
82408
|
+
filepath,
|
|
82409
|
+
body,
|
|
82410
|
+
visitedTypes,
|
|
82411
|
+
missingScalars,
|
|
82412
|
+
field.type,
|
|
82413
|
+
input
|
|
82414
|
+
);
|
|
82402
82415
|
members.push(
|
|
82403
82416
|
AST8.tsPropertySignature(
|
|
82404
82417
|
AST8.identifier(field.name),
|
|
82405
82418
|
AST8.tsTypeAnnotation(
|
|
82406
|
-
tsTypeReference(config, filepath, missingScalars, field, body)
|
|
82419
|
+
tsTypeReference(config, filepath, missingScalars, field, body, input)
|
|
82407
82420
|
),
|
|
82408
82421
|
graphql19.isNullableType(field.type)
|
|
82409
82422
|
)
|
|
@@ -82446,7 +82459,8 @@ function inlineType({
|
|
|
82446
82459
|
includeFragments,
|
|
82447
82460
|
allOptional,
|
|
82448
82461
|
forceNonNull,
|
|
82449
|
-
field
|
|
82462
|
+
field,
|
|
82463
|
+
input
|
|
82450
82464
|
}) {
|
|
82451
82465
|
const { type, wrappers } = unwrapType(config, rootType);
|
|
82452
82466
|
let result;
|
|
@@ -82458,7 +82472,8 @@ function inlineType({
|
|
|
82458
82472
|
missingScalars,
|
|
82459
82473
|
type,
|
|
82460
82474
|
body,
|
|
82461
|
-
field
|
|
82475
|
+
field,
|
|
82476
|
+
input
|
|
82462
82477
|
);
|
|
82463
82478
|
} else if (graphql20.isEnumType(type)) {
|
|
82464
82479
|
ensureImports({
|
|
@@ -82566,7 +82581,8 @@ function inlineType({
|
|
|
82566
82581
|
field: {
|
|
82567
82582
|
field: attributeName,
|
|
82568
82583
|
parent: type.name
|
|
82569
|
-
}
|
|
82584
|
+
},
|
|
82585
|
+
input
|
|
82570
82586
|
});
|
|
82571
82587
|
const hasIncludeOrSkipDirective = selection.directives && selection.directives.filter(
|
|
82572
82588
|
(directive) => directive.name.value === "include" || directive.name.value === "skip"
|
|
@@ -82630,7 +82646,8 @@ function inlineType({
|
|
|
82630
82646
|
missingScalars,
|
|
82631
82647
|
includeFragments,
|
|
82632
82648
|
allOptional,
|
|
82633
|
-
field: null
|
|
82649
|
+
field: null,
|
|
82650
|
+
input: false
|
|
82634
82651
|
});
|
|
82635
82652
|
let objectType = fragmentType;
|
|
82636
82653
|
if (fragmentType.type === "TSUnionType") {
|
|
@@ -83095,7 +83112,8 @@ async function generateOperationTypeDefs(config, filepath, document, body, defin
|
|
|
83095
83112
|
body,
|
|
83096
83113
|
missingScalars,
|
|
83097
83114
|
includeFragments: true,
|
|
83098
|
-
field: null
|
|
83115
|
+
field: null,
|
|
83116
|
+
input: false
|
|
83099
83117
|
});
|
|
83100
83118
|
if (artifact.kind === "HoudiniQuery") {
|
|
83101
83119
|
resultType = withLoadingState({
|
|
@@ -83144,7 +83162,8 @@ async function generateOperationTypeDefs(config, filepath, document, body, defin
|
|
|
83144
83162
|
body,
|
|
83145
83163
|
visitedTypes,
|
|
83146
83164
|
missingScalars,
|
|
83147
|
-
variableDefinition.type
|
|
83165
|
+
variableDefinition.type,
|
|
83166
|
+
true
|
|
83148
83167
|
);
|
|
83149
83168
|
}
|
|
83150
83169
|
body.push(
|
|
@@ -83162,7 +83181,8 @@ async function generateOperationTypeDefs(config, filepath, document, body, defin
|
|
|
83162
83181
|
filepath,
|
|
83163
83182
|
missingScalars,
|
|
83164
83183
|
definition2,
|
|
83165
|
-
body
|
|
83184
|
+
body,
|
|
83185
|
+
true
|
|
83166
83186
|
)
|
|
83167
83187
|
),
|
|
83168
83188
|
definition2.type.kind !== "NonNullType"
|
|
@@ -83197,7 +83217,8 @@ async function generateOperationTypeDefs(config, filepath, document, body, defin
|
|
|
83197
83217
|
missingScalars,
|
|
83198
83218
|
includeFragments: false,
|
|
83199
83219
|
allOptional: true,
|
|
83200
|
-
field: null
|
|
83220
|
+
field: null,
|
|
83221
|
+
input: false
|
|
83201
83222
|
})
|
|
83202
83223
|
)
|
|
83203
83224
|
)
|
|
@@ -83230,7 +83251,8 @@ async function generateFragmentTypeDefs(config, filepath, body, selections, defi
|
|
|
83230
83251
|
filepath,
|
|
83231
83252
|
missingScalars,
|
|
83232
83253
|
definition2,
|
|
83233
|
-
body
|
|
83254
|
+
body,
|
|
83255
|
+
false
|
|
83234
83256
|
)
|
|
83235
83257
|
),
|
|
83236
83258
|
definition2.type.kind !== "NonNullType"
|
|
@@ -83293,7 +83315,8 @@ async function generateFragmentTypeDefs(config, filepath, body, selections, defi
|
|
|
83293
83315
|
visitedTypes,
|
|
83294
83316
|
missingScalars,
|
|
83295
83317
|
includeFragments: true,
|
|
83296
|
-
field: null
|
|
83318
|
+
field: null,
|
|
83319
|
+
input: false
|
|
83297
83320
|
})
|
|
83298
83321
|
})
|
|
83299
83322
|
)
|
|
@@ -83389,7 +83412,8 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
|
|
|
83389
83412
|
{
|
|
83390
83413
|
field: key,
|
|
83391
83414
|
parent: type.name
|
|
83392
|
-
}
|
|
83415
|
+
},
|
|
83416
|
+
false
|
|
83393
83417
|
)
|
|
83394
83418
|
)
|
|
83395
83419
|
);
|
|
@@ -83416,7 +83440,8 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
|
|
|
83416
83440
|
{
|
|
83417
83441
|
field: key,
|
|
83418
83442
|
parent: type.name
|
|
83419
|
-
}
|
|
83443
|
+
},
|
|
83444
|
+
false
|
|
83420
83445
|
)
|
|
83421
83446
|
);
|
|
83422
83447
|
} else if (graphql21.isEnumType(unwrapped.type)) {
|
|
@@ -83454,7 +83479,8 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
|
|
|
83454
83479
|
body,
|
|
83455
83480
|
visitedTypes,
|
|
83456
83481
|
/* @__PURE__ */ new Set(),
|
|
83457
|
-
arg.type
|
|
83482
|
+
arg.type,
|
|
83483
|
+
true
|
|
83458
83484
|
);
|
|
83459
83485
|
const prop = AST13.tsPropertySignature(
|
|
83460
83486
|
AST13.identifier(arg.name),
|
|
@@ -83464,7 +83490,8 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
|
|
|
83464
83490
|
filepath,
|
|
83465
83491
|
/* @__PURE__ */ new Set(),
|
|
83466
83492
|
arg,
|
|
83467
|
-
body
|
|
83493
|
+
body,
|
|
83494
|
+
graphql21.isInputType(arg.type)
|
|
83468
83495
|
)
|
|
83469
83496
|
)
|
|
83470
83497
|
);
|
|
@@ -83576,7 +83603,8 @@ function listDefinitions(config, filepath, body, docs) {
|
|
|
83576
83603
|
filepath,
|
|
83577
83604
|
/* @__PURE__ */ new Set(),
|
|
83578
83605
|
arg,
|
|
83579
|
-
body
|
|
83606
|
+
body,
|
|
83607
|
+
graphql21.isInputType(arg.type)
|
|
83580
83608
|
)
|
|
83581
83609
|
)
|
|
83582
83610
|
);
|
|
@@ -89188,12 +89216,12 @@ async function packageJSON(targetPath, frameworkInfo) {
|
|
|
89188
89216
|
}
|
|
89189
89217
|
packageJSON2.devDependencies = {
|
|
89190
89218
|
...packageJSON2.devDependencies,
|
|
89191
|
-
houdini: "^2.0.0-next.
|
|
89219
|
+
houdini: "^2.0.0-next.6"
|
|
89192
89220
|
};
|
|
89193
89221
|
if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
|
|
89194
89222
|
packageJSON2.devDependencies = {
|
|
89195
89223
|
...packageJSON2.devDependencies,
|
|
89196
|
-
"houdini-svelte": "^3.0.0-next.
|
|
89224
|
+
"houdini-svelte": "^3.0.0-next.9"
|
|
89197
89225
|
};
|
|
89198
89226
|
} else {
|
|
89199
89227
|
throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import type { StatementKind } from 'ast-types/lib/gen/kinds';
|
|
2
2
|
import * as graphql from 'graphql';
|
|
3
3
|
import type { Config } from '../../../lib';
|
|
4
|
-
export declare function addReferencedInputTypes(config: Config, filepath: string, body: StatementKind[], visitedTypes: Set<string>, missingScalars: Set<string>, rootType: graphql.TypeNode | graphql.GraphQLInputType): void;
|
|
4
|
+
export declare function addReferencedInputTypes(config: Config, filepath: string, body: StatementKind[], visitedTypes: Set<string>, missingScalars: Set<string>, rootType: graphql.TypeNode | graphql.GraphQLInputType, input: boolean): void;
|
|
@@ -3,7 +3,7 @@ import * as graphql from 'graphql';
|
|
|
3
3
|
import type { Config } from '../../../lib';
|
|
4
4
|
import { TypeWrapper } from '../../../lib';
|
|
5
5
|
export declare const fragmentKey: " $fragments";
|
|
6
|
-
export declare function inlineType({ config, filepath, rootType, selections, root, allowReadonly, body, visitedTypes, missingScalars, includeFragments, allOptional, forceNonNull, field, }: {
|
|
6
|
+
export declare function inlineType({ config, filepath, rootType, selections, root, allowReadonly, body, visitedTypes, missingScalars, includeFragments, allOptional, forceNonNull, field, input, }: {
|
|
7
7
|
config: Config;
|
|
8
8
|
filepath: string;
|
|
9
9
|
rootType: graphql.GraphQLNamedType;
|
|
@@ -20,6 +20,7 @@ export declare function inlineType({ config, filepath, rootType, selections, roo
|
|
|
20
20
|
} | null;
|
|
21
21
|
allOptional?: boolean;
|
|
22
22
|
forceNonNull?: boolean;
|
|
23
|
+
input: boolean;
|
|
23
24
|
}): TSTypeKind;
|
|
24
25
|
export declare function wrapType(wrappers: TypeWrapper[], result: TSTypeKind, root: boolean, forceNullable?: boolean, forceNonNull?: boolean): TSTypeKind;
|
|
25
26
|
export declare function selectionTypeInfo(schema: graphql.GraphQLSchema, filepath: string, rootType: graphql.GraphQLObjectType<any, any>, selection: graphql.SelectionNode): {
|