houdini 1.2.44 → 1.2.45

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.
Files changed (48) hide show
  1. package/build/cmd-cjs/index.js +651 -844
  2. package/build/cmd-esm/index.js +501 -694
  3. package/build/codegen/generators/comments/jsdoc.d.ts +2 -0
  4. package/build/codegen-cjs/index.js +649 -842
  5. package/build/codegen-esm/index.js +499 -692
  6. package/build/lib/graphql.d.ts +1 -1
  7. package/build/lib/index.d.ts +1 -0
  8. package/build/lib/typescript.d.ts +19 -0
  9. package/build/lib-cjs/index.js +667 -464
  10. package/build/lib-esm/index.js +661 -464
  11. package/build/runtime/client/index.d.ts +7 -1
  12. package/build/runtime/client/plugins/fragment.d.ts +2 -2
  13. package/build/runtime/client/plugins/mutation.d.ts +2 -1
  14. package/build/runtime/client/plugins/query.d.ts +2 -2
  15. package/build/runtime/lib/scalars.d.ts +1 -1
  16. package/build/runtime/lib/types.d.ts +13 -2
  17. package/build/runtime/router/types.d.ts +3 -1
  18. package/build/runtime-cjs/client/index.d.ts +7 -1
  19. package/build/runtime-cjs/client/index.js +26 -11
  20. package/build/runtime-cjs/client/plugins/fragment.d.ts +2 -2
  21. package/build/runtime-cjs/client/plugins/fragment.js +4 -11
  22. package/build/runtime-cjs/client/plugins/mutation.d.ts +2 -1
  23. package/build/runtime-cjs/client/plugins/mutation.js +8 -15
  24. package/build/runtime-cjs/client/plugins/query.d.ts +2 -2
  25. package/build/runtime-cjs/client/plugins/query.js +4 -11
  26. package/build/runtime-cjs/lib/scalars.d.ts +1 -1
  27. package/build/runtime-cjs/lib/scalars.js +4 -0
  28. package/build/runtime-cjs/lib/types.d.ts +13 -2
  29. package/build/runtime-cjs/router/types.d.ts +3 -1
  30. package/build/runtime-esm/client/index.d.ts +7 -1
  31. package/build/runtime-esm/client/index.js +26 -11
  32. package/build/runtime-esm/client/plugins/fragment.d.ts +2 -2
  33. package/build/runtime-esm/client/plugins/fragment.js +1 -2
  34. package/build/runtime-esm/client/plugins/mutation.d.ts +2 -1
  35. package/build/runtime-esm/client/plugins/mutation.js +1 -2
  36. package/build/runtime-esm/client/plugins/query.d.ts +2 -2
  37. package/build/runtime-esm/client/plugins/query.js +1 -2
  38. package/build/runtime-esm/lib/scalars.d.ts +1 -1
  39. package/build/runtime-esm/lib/scalars.js +6 -0
  40. package/build/runtime-esm/lib/types.d.ts +13 -2
  41. package/build/runtime-esm/router/types.d.ts +3 -1
  42. package/build/test-cjs/index.js +664 -840
  43. package/build/test-esm/index.js +514 -690
  44. package/build/vite-cjs/index.js +761 -852
  45. package/build/vite-esm/index.js +611 -702
  46. package/package.json +1 -1
  47. package/build/codegen/generators/typescript/typeReference.d.ts +0 -8
  48. package/build/codegen/generators/typescript/types.d.ts +0 -10
@@ -63305,47 +63305,6 @@ function deepMerge(...objects) {
63305
63305
  return mergedObj;
63306
63306
  }
63307
63307
 
63308
- // src/runtime/lib/scalars.ts
63309
- async function marshalSelection({
63310
- selection,
63311
- data
63312
- }) {
63313
- const config = getCurrentConfig();
63314
- if (data === null || typeof data === "undefined") {
63315
- return data;
63316
- }
63317
- if (Array.isArray(data)) {
63318
- return await Promise.all(data.map((val) => marshalSelection({ selection, data: val })));
63319
- }
63320
- const targetSelection = getFieldsForType(selection, data["__typename"], false);
63321
- return Object.fromEntries(
63322
- await Promise.all(
63323
- Object.entries(data).map(async ([fieldName, value]) => {
63324
- const { type, selection: selection2 } = targetSelection[fieldName];
63325
- if (!type) {
63326
- return [fieldName, value];
63327
- }
63328
- if (selection2) {
63329
- return [fieldName, await marshalSelection({ selection: selection2, data: value })];
63330
- }
63331
- if (config.scalars?.[type]) {
63332
- const marshalFn = config.scalars[type].marshal;
63333
- if (!marshalFn) {
63334
- throw new Error(
63335
- `scalar type ${type} is missing a \`marshal\` function. see https://github.com/AlecAivazis/houdini#%EF%B8%8Fcustom-scalars`
63336
- );
63337
- }
63338
- if (Array.isArray(value)) {
63339
- return [fieldName, value.map(marshalFn)];
63340
- }
63341
- return [fieldName, marshalFn(value)];
63342
- }
63343
- return [fieldName, value];
63344
- })
63345
- )
63346
- );
63347
- }
63348
-
63349
63308
  // src/runtime/lib/types.ts
63350
63309
  var CachePolicy = {
63351
63310
  CacheOrNetwork: "CacheOrNetwork",
@@ -63373,11 +63332,6 @@ var RefetchUpdateMode = {
63373
63332
  prepend: "prepend",
63374
63333
  replace: "replace"
63375
63334
  };
63376
- var DataSource = {
63377
- Cache: "cache",
63378
- Network: "network",
63379
- Ssr: "ssr"
63380
- };
63381
63335
  var fragmentKey = " $fragments";
63382
63336
  var PendingValue = Symbol("houdini_loading");
63383
63337
 
@@ -67285,202 +67239,6 @@ var cache_default = new Cache();
67285
67239
  // src/runtime/client/plugins/cache.ts
67286
67240
  var serverSide = typeof globalThis.window === "undefined";
67287
67241
 
67288
- // src/runtime/client/utils/documentPlugins.ts
67289
- var documentPlugin = (kind, source) => {
67290
- return () => {
67291
- const sourceHandlers = source();
67292
- const enterWrapper = (handler) => {
67293
- return !handler ? void 0 : (ctx, handlers) => {
67294
- if (ctx.artifact.kind !== kind) {
67295
- return handlers.next(ctx);
67296
- }
67297
- return handler(ctx, handlers);
67298
- };
67299
- };
67300
- const exitWrapper = (handler) => {
67301
- return !handler ? void 0 : (ctx, handlers) => {
67302
- if (ctx.artifact.kind !== kind) {
67303
- return handlers.resolve(ctx);
67304
- }
67305
- return handler(ctx, handlers);
67306
- };
67307
- };
67308
- return {
67309
- start: enterWrapper(sourceHandlers.start),
67310
- network: enterWrapper(sourceHandlers.network),
67311
- afterNetwork: exitWrapper(sourceHandlers.afterNetwork),
67312
- end: exitWrapper(sourceHandlers.end),
67313
- catch: sourceHandlers.catch ? (ctx, handlers) => sourceHandlers.catch(ctx, handlers) : void 0,
67314
- cleanup: (...args) => sourceHandlers.cleanup?.(...args)
67315
- };
67316
- };
67317
- };
67318
-
67319
- // src/runtime/client/plugins/query.ts
67320
- var query = documentPlugin(ArtifactKind.Query, function() {
67321
- let subscriptionSpec = null;
67322
- let lastVariables = null;
67323
- return {
67324
- start(ctx, { next }) {
67325
- const runtimeScalarPayload = {
67326
- session: ctx.session
67327
- };
67328
- ctx.variables = {
67329
- ...lastVariables,
67330
- ...Object.fromEntries(
67331
- Object.entries(ctx.artifact.input?.runtimeScalars ?? {}).map(
67332
- ([field, type]) => {
67333
- const runtimeScalar = ctx.config.features?.runtimeScalars?.[type];
67334
- if (!runtimeScalar) {
67335
- return [field, type];
67336
- }
67337
- return [field, runtimeScalar.resolve(runtimeScalarPayload)];
67338
- }
67339
- )
67340
- ),
67341
- ...ctx.variables
67342
- };
67343
- next(ctx);
67344
- },
67345
- end(ctx, { resolve: resolve2, marshalVariables, variablesChanged }) {
67346
- if (variablesChanged(ctx) && !ctx.cacheParams?.disableSubscriptions) {
67347
- if (subscriptionSpec) {
67348
- cache_default.unsubscribe(subscriptionSpec, subscriptionSpec.variables?.() || {});
67349
- }
67350
- lastVariables = { ...marshalVariables(ctx) };
67351
- const variables = lastVariables;
67352
- subscriptionSpec = {
67353
- rootType: ctx.artifact.rootType,
67354
- selection: ctx.artifact.selection,
67355
- variables: () => variables,
67356
- set: (newValue) => {
67357
- resolve2(ctx, {
67358
- data: newValue,
67359
- errors: null,
67360
- fetching: false,
67361
- partial: false,
67362
- stale: false,
67363
- source: DataSource.Cache,
67364
- variables: ctx.variables ?? {}
67365
- });
67366
- }
67367
- };
67368
- cache_default.subscribe(subscriptionSpec, lastVariables);
67369
- }
67370
- resolve2(ctx);
67371
- },
67372
- cleanup() {
67373
- if (subscriptionSpec) {
67374
- cache_default.unsubscribe(subscriptionSpec, subscriptionSpec.variables?.());
67375
- lastVariables = null;
67376
- }
67377
- }
67378
- };
67379
- });
67380
-
67381
- // src/runtime/client/plugins/fragment.ts
67382
- var fragment = documentPlugin(ArtifactKind.Fragment, function() {
67383
- let subscriptionSpec = null;
67384
- let lastReference = null;
67385
- return {
67386
- start(ctx, { next, resolve: resolve2, variablesChanged, marshalVariables }) {
67387
- if (!ctx.stuff.parentID) {
67388
- return next(ctx);
67389
- }
67390
- const currentReference = {
67391
- parent: ctx.stuff.parentID,
67392
- variables: marshalVariables(ctx)
67393
- };
67394
- if (!ctx.cacheParams?.disableSubscriptions && (!deepEquals(lastReference, currentReference) || variablesChanged(ctx))) {
67395
- if (subscriptionSpec) {
67396
- cache_default.unsubscribe(subscriptionSpec, subscriptionSpec.variables?.() || {});
67397
- }
67398
- const variables = marshalVariables(ctx);
67399
- subscriptionSpec = {
67400
- rootType: ctx.artifact.rootType,
67401
- selection: ctx.artifact.selection,
67402
- variables: () => variables,
67403
- parentID: ctx.stuff.parentID,
67404
- set: (newValue) => {
67405
- resolve2(ctx, {
67406
- data: newValue,
67407
- errors: null,
67408
- fetching: false,
67409
- partial: false,
67410
- stale: false,
67411
- source: DataSource.Cache,
67412
- variables
67413
- });
67414
- }
67415
- };
67416
- cache_default.subscribe(subscriptionSpec, variables);
67417
- lastReference = currentReference;
67418
- }
67419
- next(ctx);
67420
- },
67421
- cleanup() {
67422
- if (subscriptionSpec) {
67423
- cache_default.unsubscribe(subscriptionSpec, subscriptionSpec.variables?.());
67424
- }
67425
- }
67426
- };
67427
- });
67428
-
67429
- // src/runtime/client/plugins/mutation.ts
67430
- var mutation = documentPlugin(ArtifactKind.Mutation, () => {
67431
- return {
67432
- async start(ctx, { next, marshalVariables }) {
67433
- const layerOptimistic = cache_default._internal_unstable.storage.createLayer(true);
67434
- const optimisticResponse = ctx.stuff.optimisticResponse;
67435
- let toNotify = [];
67436
- if (optimisticResponse) {
67437
- toNotify = cache_default.write({
67438
- selection: ctx.artifact.selection,
67439
- data: await marshalSelection({
67440
- selection: ctx.artifact.selection,
67441
- data: optimisticResponse
67442
- }),
67443
- variables: marshalVariables(ctx),
67444
- layer: layerOptimistic.id
67445
- });
67446
- }
67447
- ctx.cacheParams = {
67448
- ...ctx.cacheParams,
67449
- layer: layerOptimistic,
67450
- notifySubscribers: toNotify,
67451
- forceNotify: true
67452
- };
67453
- next(ctx);
67454
- },
67455
- afterNetwork(ctx, { resolve: resolve2 }) {
67456
- if (ctx.cacheParams?.layer) {
67457
- cache_default.clearLayer(ctx.cacheParams.layer.id);
67458
- }
67459
- resolve2(ctx);
67460
- },
67461
- end(ctx, { resolve: resolve2, value }) {
67462
- const hasErrors = value.errors && value.errors.length > 0;
67463
- if (hasErrors) {
67464
- if (ctx.cacheParams?.layer) {
67465
- cache_default.clearLayer(ctx.cacheParams.layer.id);
67466
- }
67467
- }
67468
- if (ctx.cacheParams?.layer) {
67469
- cache_default._internal_unstable.storage.resolveLayer(ctx.cacheParams.layer.id);
67470
- }
67471
- resolve2(ctx);
67472
- },
67473
- catch(ctx, { error }) {
67474
- if (ctx.cacheParams?.layer) {
67475
- const { layer } = ctx.cacheParams;
67476
- cache_default.clearLayer(layer.id);
67477
- cache_default._internal_unstable.storage.resolveLayer(layer.id);
67478
- }
67479
- throw error;
67480
- }
67481
- };
67482
- });
67483
-
67484
67242
  // src/lib/types.ts
67485
67243
  var LogLevel = {
67486
67244
  Full: "full",
@@ -68494,7 +68252,7 @@ function formatErrors(e3, afterError) {
68494
68252
  afterError?.(e3);
68495
68253
  }
68496
68254
  }
68497
- function unwrapType(config, type, wrappers = []) {
68255
+ function unwrapType(config, type, wrappers = [], convertRuntimeScalars) {
68498
68256
  if (type.kind === "NonNullType") {
68499
68257
  return unwrapType(config, type.type, [TypeWrapper.NonNull, ...wrappers]);
68500
68258
  }
@@ -68510,6 +68268,11 @@ function unwrapType(config, type, wrappers = []) {
68510
68268
  if (type instanceof graphql3.GraphQLList) {
68511
68269
  return unwrapType(config, type.ofType, [TypeWrapper.List, ...wrappers]);
68512
68270
  }
68271
+ if (convertRuntimeScalars && config.configFile.features?.runtimeScalars?.[type.name.value]) {
68272
+ type = config.schema.getType(
68273
+ config.configFile.features?.runtimeScalars?.[type.name.value].type
68274
+ );
68275
+ }
68513
68276
  const namedType = config.schema.getType(type.name.value || type.name);
68514
68277
  if (!namedType) {
68515
68278
  throw new Error("Unknown type: " + type.name.value || type.name);
@@ -68704,6 +68467,152 @@ async function detectTools(cwd = process.cwd()) {
68704
68467
  };
68705
68468
  }
68706
68469
 
68470
+ // src/lib/typescript.ts
68471
+ var graphql4 = __toESM(require("graphql"), 1);
68472
+ var recast2 = __toESM(require_main2(), 1);
68473
+ var AST2 = recast2.types.builders;
68474
+ function unwrappedTsTypeReference(config, filepath, missingScalars, {
68475
+ type,
68476
+ wrappers
68477
+ }, body) {
68478
+ let result;
68479
+ if (graphql4.isScalarType(type)) {
68480
+ result = scalarPropertyValue(config, filepath, missingScalars, type, body, null);
68481
+ } else if (graphql4.isEnumType(type)) {
68482
+ result = enumReference(config, body, type.name);
68483
+ } else {
68484
+ result = AST2.tsTypeReference(AST2.identifier(type.name));
68485
+ }
68486
+ for (const toWrap of wrappers) {
68487
+ if (toWrap === "NonNull" /* NonNull */) {
68488
+ continue;
68489
+ } else if (toWrap === "Nullable" /* Nullable */) {
68490
+ result = nullableField(result, true);
68491
+ } else if (toWrap === "List" /* List */) {
68492
+ result = AST2.tsArrayType(AST2.tsParenthesizedType(result));
68493
+ }
68494
+ }
68495
+ return result;
68496
+ }
68497
+ function tsTypeReference(config, filepath, missingScalars, definition, body) {
68498
+ const { type, wrappers } = unwrapType(config, definition.type);
68499
+ return unwrappedTsTypeReference(
68500
+ config,
68501
+ filepath,
68502
+ missingScalars,
68503
+ { type, wrappers },
68504
+ body
68505
+ );
68506
+ }
68507
+ function enumReference(config, body, name) {
68508
+ ensureImports({
68509
+ config,
68510
+ body,
68511
+ import: ["ValueOf"],
68512
+ importKind: "type",
68513
+ sourceModule: "$houdini/runtime/lib/types"
68514
+ });
68515
+ return AST2.tsTypeReference(
68516
+ AST2.identifier("ValueOf"),
68517
+ AST2.tsTypeParameterInstantiation([AST2.tsTypeQuery(AST2.identifier(name))])
68518
+ );
68519
+ }
68520
+ function readonlyProperty(prop, enable = true) {
68521
+ if (enable) {
68522
+ prop.readonly = true;
68523
+ }
68524
+ return prop;
68525
+ }
68526
+ function nullableField(inner, input = false) {
68527
+ const members = [inner, AST2.tsNullKeyword()];
68528
+ if (input) {
68529
+ members.push(AST2.tsUndefinedKeyword());
68530
+ }
68531
+ return AST2.tsUnionType(members);
68532
+ }
68533
+ function scalarPropertyValue(config, filepath, missingScalars, target, body, field) {
68534
+ if (config.configFile.features?.componentFields && target.name === config.componentScalar) {
68535
+ if (!field) {
68536
+ return AST2.tsNeverKeyword();
68537
+ }
68538
+ const component = config.componentFields[field.parent][field.field];
68539
+ const sourcePathRelative = path_exports.relative(
68540
+ path_exports.join(config.projectRoot, "src"),
68541
+ component.filepath
68542
+ );
68543
+ let sourcePathParsed = path_exports.parse(sourcePathRelative);
68544
+ let sourcePath = path_exports.join(sourcePathParsed.dir, sourcePathParsed.name);
68545
+ const localImport = ensureImports({
68546
+ config,
68547
+ body,
68548
+ import: "__component__" + component.fragment,
68549
+ sourceModule: path_exports.join(
68550
+ path_exports.relative(path_exports.dirname(filepath), config.projectRoot),
68551
+ "src",
68552
+ sourcePath
68553
+ )
68554
+ }) ?? "__component__" + component.fragment;
68555
+ const parameters = AST2.tsTypeReference(AST2.identifier("Parameters"));
68556
+ parameters.typeParameters = AST2.tsTypeParameterInstantiation([
68557
+ AST2.tsTypeQuery(AST2.identifier(localImport))
68558
+ ]);
68559
+ const indexed = AST2.tsIndexedAccessType(
68560
+ parameters,
68561
+ AST2.tsLiteralType(AST2.numericLiteral(0))
68562
+ );
68563
+ const omit = AST2.tsTypeReference(AST2.identifier("Omit"));
68564
+ omit.typeParameters = AST2.tsTypeParameterInstantiation([
68565
+ indexed,
68566
+ AST2.tsLiteralType(AST2.stringLiteral(component.prop))
68567
+ ]);
68568
+ const arg = AST2.identifier("props");
68569
+ arg.typeAnnotation = AST2.tsTypeAnnotation(omit);
68570
+ const returnType = AST2.tsTypeReference(AST2.identifier("ReturnType"));
68571
+ returnType.typeParameters = AST2.tsTypeParameterInstantiation([
68572
+ AST2.tsTypeQuery(AST2.identifier(localImport))
68573
+ ]);
68574
+ const fnType = AST2.tsFunctionType([arg]);
68575
+ fnType.typeAnnotation = AST2.tsTypeAnnotation(returnType);
68576
+ return fnType;
68577
+ }
68578
+ switch (target.name) {
68579
+ case "String": {
68580
+ return AST2.tsStringKeyword();
68581
+ }
68582
+ case "Int": {
68583
+ return AST2.tsNumberKeyword();
68584
+ }
68585
+ case "Float": {
68586
+ return AST2.tsNumberKeyword();
68587
+ }
68588
+ case "Boolean": {
68589
+ return AST2.tsBooleanKeyword();
68590
+ }
68591
+ case "ID": {
68592
+ return AST2.tsStringKeyword();
68593
+ }
68594
+ default: {
68595
+ if (graphql4.isNonNullType(target) && "ofType" in target) {
68596
+ return scalarPropertyValue(
68597
+ config,
68598
+ filepath,
68599
+ missingScalars,
68600
+ target.ofType,
68601
+ body,
68602
+ field
68603
+ );
68604
+ }
68605
+ if (config.scalars?.[target.name]) {
68606
+ return AST2.tsTypeReference(AST2.identifier(config.scalars?.[target.name].type));
68607
+ }
68608
+ if (target.name !== config.componentScalar) {
68609
+ missingScalars.add(target.name);
68610
+ }
68611
+ return AST2.tsAnyKeyword();
68612
+ }
68613
+ }
68614
+ }
68615
+
68707
68616
  // ../../node_modules/.pnpm/estree-walker@3.0.1/node_modules/estree-walker/src/walker.js
68708
68617
  var WalkerBase = class {
68709
68618
  constructor() {
@@ -68817,7 +68726,7 @@ async function asyncWalk(ast, { enter, leave }) {
68817
68726
  }
68818
68727
 
68819
68728
  // src/lib/walk.ts
68820
- var graphql4 = __toESM(require("graphql"), 1);
68729
+ var graphql5 = __toESM(require("graphql"), 1);
68821
68730
  async function find_graphql(config, parsedScript, walker) {
68822
68731
  await asyncWalk(parsedScript, {
68823
68732
  async enter(node, parent2) {
@@ -68872,7 +68781,7 @@ async function find_graphql(config, parsedScript, walker) {
68872
68781
  } else if (!documentString) {
68873
68782
  return;
68874
68783
  }
68875
- const parsedTag = graphql4.parse(documentString);
68784
+ const parsedTag = graphql5.parse(documentString);
68876
68785
  if (walker.where && !walker.where(parsedTag, { node, parent: parent2 })) {
68877
68786
  return;
68878
68787
  }
@@ -69004,7 +68913,7 @@ function extractAnonymousQuery(config, raw, expr, propName) {
69004
68913
  };
69005
68914
  return defs.concat([
69006
68915
  {
69007
- raw: graphql4.print(parsed),
68916
+ raw: graphql5.print(parsed),
69008
68917
  parsed
69009
68918
  }
69010
68919
  ]);
@@ -69019,7 +68928,7 @@ function extractAnonymousQuery(config, raw, expr, propName) {
69019
68928
 
69020
68929
  // src/lib/router/manifest.ts
69021
68930
  var t2 = __toESM(require_lib6(), 1);
69022
- var graphql5 = __toESM(require("graphql"), 1);
68931
+ var graphql6 = __toESM(require("graphql"), 1);
69023
68932
 
69024
68933
  // src/lib/router/server.ts
69025
68934
  var import_node_path2 = __toESM(require("node:path"), 1);
@@ -69057,11 +68966,11 @@ async function loadLocalSchema(config) {
69057
68966
  }
69058
68967
 
69059
68968
  // src/codegen/index.ts
69060
- var graphql33 = __toESM(require("graphql"), 1);
68969
+ var graphql32 = __toESM(require("graphql"), 1);
69061
68970
 
69062
68971
  // src/codegen/generators/artifacts/index.ts
69063
- var graphql16 = __toESM(require("graphql"), 1);
69064
- var recast4 = __toESM(require_main2(), 1);
68972
+ var graphql17 = __toESM(require("graphql"), 1);
68973
+ var recast5 = __toESM(require_main2(), 1);
69065
68974
 
69066
68975
  // src/codegen/utils/commonjs.ts
69067
68976
  var cjsIndexFilePreamble = `"use strict";
@@ -69303,19 +69212,19 @@ var FieldCollection = class {
69303
69212
  };
69304
69213
 
69305
69214
  // src/codegen/utils/moduleExport.ts
69306
- var recast2 = __toESM(require_main2(), 1);
69307
- var AST2 = recast2.types.builders;
69215
+ var recast3 = __toESM(require_main2(), 1);
69216
+ var AST3 = recast3.types.builders;
69308
69217
  function moduleExport(config, key, value) {
69309
69218
  if (config.module === "commonjs") {
69310
- let target = AST2.memberExpression(AST2.identifier("module"), AST2.identifier("exports"));
69219
+ let target = AST3.memberExpression(AST3.identifier("module"), AST3.identifier("exports"));
69311
69220
  if (key !== "default") {
69312
- target = AST2.memberExpression(target, AST2.identifier(key));
69221
+ target = AST3.memberExpression(target, AST3.identifier(key));
69313
69222
  }
69314
- return AST2.expressionStatement(AST2.assignmentExpression("=", target, value));
69223
+ return AST3.expressionStatement(AST3.assignmentExpression("=", target, value));
69315
69224
  }
69316
- return key === "default" ? AST2.exportDefaultDeclaration(value) : AST2.exportNamedDeclaration(
69317
- AST2.variableDeclaration("const", [
69318
- AST2.variableDeclarator(AST2.identifier(key), value)
69225
+ return key === "default" ? AST3.exportDefaultDeclaration(value) : AST3.exportNamedDeclaration(
69226
+ AST3.variableDeclaration("const", [
69227
+ AST3.variableDeclarator(AST3.identifier(key), value)
69319
69228
  ])
69320
69229
  );
69321
69230
  }
@@ -69572,7 +69481,7 @@ var serialize = (value, { json, lossy } = {}) => {
69572
69481
  var esm_default = typeof structuredClone === "function" ? (any, options) => options && ("json" in options || "lossy" in options) ? deserialize(serialize(any, options)) : structuredClone(any) : (any, options) => deserialize(serialize(any, options));
69573
69482
 
69574
69483
  // src/codegen/transforms/fragmentVariables.ts
69575
- var graphql7 = __toESM(require("graphql"), 1);
69484
+ var graphql8 = __toESM(require("graphql"), 1);
69576
69485
 
69577
69486
  // src/codegen/utils/stripLoc.ts
69578
69487
  function stripLoc(value) {
@@ -69593,13 +69502,13 @@ function stripLoc(value) {
69593
69502
  }
69594
69503
 
69595
69504
  // src/codegen/transforms/collectDefinitions.ts
69596
- var graphql6 = __toESM(require("graphql"), 1);
69597
- var import_graphql31 = require("graphql");
69505
+ var graphql7 = __toESM(require("graphql"), 1);
69506
+ var import_graphql32 = require("graphql");
69598
69507
  async function includeFragmentDefinitions(config, documents) {
69599
69508
  const fragments = collectDefinitions(config, documents);
69600
69509
  for (const [index, { name, document, filename }] of documents.entries()) {
69601
69510
  const operation = document.definitions.find(
69602
- (def) => def.kind === import_graphql31.Kind.OPERATION_DEFINITION || def.kind === "FragmentDefinition"
69511
+ (def) => def.kind === import_graphql32.Kind.OPERATION_DEFINITION || def.kind === "FragmentDefinition"
69603
69512
  );
69604
69513
  if (!operation) {
69605
69514
  continue;
@@ -69643,10 +69552,10 @@ function collectDefinitions(config, docs) {
69643
69552
  }
69644
69553
  function findRequiredFragments(config, definition) {
69645
69554
  const referencedFragments = [];
69646
- const typeInfo = new graphql6.TypeInfo(config.schema);
69647
- definition.selectionSet = graphql6.visit(
69555
+ const typeInfo = new graphql7.TypeInfo(config.schema);
69556
+ definition.selectionSet = graphql7.visit(
69648
69557
  definition,
69649
- graphql6.visitWithTypeInfo(typeInfo, {
69558
+ graphql7.visitWithTypeInfo(typeInfo, {
69650
69559
  FragmentSpread(node) {
69651
69560
  referencedFragments.push(node.name.value);
69652
69561
  }
@@ -69680,7 +69589,7 @@ function flattenFragments(filepath, operation, fragments) {
69680
69589
  }
69681
69590
 
69682
69591
  // src/codegen/transforms/fragmentVariables.ts
69683
- var GraphqlKinds2 = graphql7.Kind;
69592
+ var GraphqlKinds2 = graphql8.Kind;
69684
69593
  async function fragmentVariables(config, documents) {
69685
69594
  const fragments = collectDefinitions(config, documents);
69686
69595
  const generatedFragments = {};
@@ -69703,7 +69612,7 @@ async function fragmentVariables(config, documents) {
69703
69612
  });
69704
69613
  }
69705
69614
  const doc = {
69706
- kind: graphql7.Kind.DOCUMENT,
69615
+ kind: graphql8.Kind.DOCUMENT,
69707
69616
  definitions: Object.values(generatedFragments)
69708
69617
  };
69709
69618
  documents.push({
@@ -69774,7 +69683,7 @@ function inlineFragmentArgs({
69774
69683
  return null;
69775
69684
  };
69776
69685
  const result = esm_default(
69777
- graphql7.visit(document, {
69686
+ graphql8.visit(document, {
69778
69687
  FragmentSpread(node) {
69779
69688
  if (!fragmentDefinitions[node.name.value]) {
69780
69689
  throw new Error("Could not find definition for fragment" + node.name.value);
@@ -69860,7 +69769,7 @@ function inlineFragmentArgs({
69860
69769
  );
69861
69770
  if (newName) {
69862
69771
  result.name = {
69863
- kind: graphql7.Kind.NAME,
69772
+ kind: graphql8.Kind.NAME,
69864
69773
  value: newName
69865
69774
  };
69866
69775
  }
@@ -70027,7 +69936,7 @@ ${exportDefaultFrom(`./${doc.name}`, doc.name)}`,
70027
69936
  }
70028
69937
 
70029
69938
  // src/codegen/generators/artifacts/inputs.ts
70030
- var graphql8 = __toESM(require("graphql"), 1);
69939
+ var graphql9 = __toESM(require("graphql"), 1);
70031
69940
  function inputObject(config, inputs, runtimeScalars) {
70032
69941
  const visitedTypes = /* @__PURE__ */ new Set();
70033
69942
  const inputObj = {
@@ -70057,10 +69966,10 @@ function walkInputs(config, visitedTypes, inputObj, rootType) {
70057
69966
  if (visitedTypes.has(type.name)) {
70058
69967
  return;
70059
69968
  }
70060
- if (graphql8.isEnumType(type) || graphql8.isScalarType(type)) {
69969
+ if (graphql9.isEnumType(type) || graphql9.isScalarType(type)) {
70061
69970
  return;
70062
69971
  }
70063
- if (graphql8.isUnionType(type)) {
69972
+ if (graphql9.isUnionType(type)) {
70064
69973
  return;
70065
69974
  }
70066
69975
  visitedTypes.add(type.name);
@@ -70078,50 +69987,50 @@ function walkInputs(config, visitedTypes, inputObj, rootType) {
70078
69987
  }
70079
69988
 
70080
69989
  // src/codegen/generators/artifacts/operations.ts
70081
- var graphql10 = __toESM(require("graphql"), 1);
69990
+ var graphql11 = __toESM(require("graphql"), 1);
70082
69991
 
70083
69992
  // src/codegen/generators/artifacts/utils.ts
70084
- var graphql9 = __toESM(require("graphql"), 1);
70085
- var recast3 = __toESM(require_main2(), 1);
70086
- var AST3 = recast3.types.builders;
69993
+ var graphql10 = __toESM(require("graphql"), 1);
69994
+ var recast4 = __toESM(require_main2(), 1);
69995
+ var AST4 = recast4.types.builders;
70087
69996
  function serializeValue(value) {
70088
69997
  if (Array.isArray(value)) {
70089
- return AST3.arrayExpression(value.map(serializeValue));
69998
+ return AST4.arrayExpression(value.map(serializeValue));
70090
69999
  }
70091
70000
  if (typeof value === "object" && value !== null) {
70092
- return AST3.objectExpression(
70001
+ return AST4.objectExpression(
70093
70002
  Object.entries(value).filter(([key, value2]) => typeof value2 !== "undefined").map(([key, val]) => {
70094
- return AST3.objectProperty(AST3.stringLiteral(key), serializeValue(val));
70003
+ return AST4.objectProperty(AST4.stringLiteral(key), serializeValue(val));
70095
70004
  })
70096
70005
  );
70097
70006
  }
70098
70007
  if (typeof value === "string") {
70099
70008
  if (value.indexOf("\n") !== -1) {
70100
- return AST3.templateLiteral(
70101
- [AST3.templateElement({ raw: value, cooked: value }, true)],
70009
+ return AST4.templateLiteral(
70010
+ [AST4.templateElement({ raw: value, cooked: value }, true)],
70102
70011
  []
70103
70012
  );
70104
70013
  }
70105
- return AST3.stringLiteral(value);
70014
+ return AST4.stringLiteral(value);
70106
70015
  }
70107
- return AST3.literal(value);
70016
+ return AST4.literal(value);
70108
70017
  }
70109
70018
  function convertValue(config, val) {
70110
70019
  let value;
70111
70020
  let kind;
70112
- if (val.kind === graphql9.Kind.INT) {
70021
+ if (val.kind === graphql10.Kind.INT) {
70113
70022
  value = parseInt(val.value, 10);
70114
70023
  kind = "Int";
70115
- } else if (val.kind === graphql9.Kind.FLOAT) {
70024
+ } else if (val.kind === graphql10.Kind.FLOAT) {
70116
70025
  value = parseFloat(val.value);
70117
70026
  kind = "Float";
70118
- } else if (val.kind === graphql9.Kind.BOOLEAN) {
70027
+ } else if (val.kind === graphql10.Kind.BOOLEAN) {
70119
70028
  value = val.value;
70120
70029
  kind = "Boolean";
70121
- } else if (val.kind === graphql9.Kind.VARIABLE) {
70030
+ } else if (val.kind === graphql10.Kind.VARIABLE) {
70122
70031
  value = val.name.value;
70123
70032
  kind = "Variable";
70124
- } else if (val.kind === graphql9.Kind.STRING) {
70033
+ } else if (val.kind === graphql10.Kind.STRING) {
70125
70034
  value = val.value;
70126
70035
  kind = "String";
70127
70036
  }
@@ -70134,7 +70043,7 @@ function operationsByPath(config, filepath, definition, filterTypes) {
70134
70043
  return {};
70135
70044
  }
70136
70045
  const pathOperations = {};
70137
- graphql10.visit(definition, {
70046
+ graphql11.visit(definition, {
70138
70047
  FragmentSpread(node, _3, __, ___, ancestors) {
70139
70048
  if (!config.isListFragment(node.name.value)) {
70140
70049
  return;
@@ -70293,19 +70202,19 @@ function ancestorKey(ancestors) {
70293
70202
  }
70294
70203
 
70295
70204
  // src/codegen/generators/artifacts/selection.ts
70296
- var graphql15 = __toESM(require("graphql"), 1);
70205
+ var graphql16 = __toESM(require("graphql"), 1);
70297
70206
 
70298
70207
  // src/codegen/transforms/list.ts
70299
- var graphql13 = __toESM(require("graphql"), 1);
70208
+ var graphql14 = __toESM(require("graphql"), 1);
70300
70209
 
70301
70210
  // src/codegen/utils/objectIdentificationSelection.ts
70302
- var graphql11 = __toESM(require("graphql"), 1);
70211
+ var graphql12 = __toESM(require("graphql"), 1);
70303
70212
  var objectIdentificationSelection = (config, type) => {
70304
70213
  return config.keyFieldsForType(type.name).map((key) => {
70305
70214
  return {
70306
- kind: graphql11.Kind.FIELD,
70215
+ kind: graphql12.Kind.FIELD,
70307
70216
  name: {
70308
- kind: graphql11.Kind.NAME,
70217
+ kind: graphql12.Kind.NAME,
70309
70218
  value: key
70310
70219
  }
70311
70220
  };
@@ -70313,7 +70222,7 @@ var objectIdentificationSelection = (config, type) => {
70313
70222
  };
70314
70223
 
70315
70224
  // src/codegen/transforms/paginate.ts
70316
- var graphql12 = __toESM(require("graphql"), 1);
70225
+ var graphql13 = __toESM(require("graphql"), 1);
70317
70226
  async function paginate(config, documents) {
70318
70227
  const newDocs = [];
70319
70228
  for (const doc of documents) {
@@ -70346,7 +70255,7 @@ async function paginate(config, documents) {
70346
70255
  };
70347
70256
  let cursorType = "String";
70348
70257
  let paginationPath = [];
70349
- doc.document = graphql12.visit(doc.document, {
70258
+ doc.document = graphql13.visit(doc.document, {
70350
70259
  Field(node, _3, __, ___, ancestors) {
70351
70260
  const paginateDirective = node.directives?.find(
70352
70261
  (directive) => directive.name.value === config.paginateDirective
@@ -70372,7 +70281,7 @@ async function paginate(config, documents) {
70372
70281
  flags.offset.enabled = offsetPagination;
70373
70282
  flags.limit.enabled = offsetPagination;
70374
70283
  paginationPath = ancestors.filter(
70375
- (ancestor) => !Array.isArray(ancestor) && ancestor.kind === graphql12.Kind.FIELD
70284
+ (ancestor) => !Array.isArray(ancestor) && ancestor.kind === graphql13.Kind.FIELD
70376
70285
  ).concat(node).map((field) => field.alias?.value || field.name.value);
70377
70286
  return {
70378
70287
  ...node,
@@ -70391,7 +70300,7 @@ async function paginate(config, documents) {
70391
70300
  let fragment2 = "";
70392
70301
  let paginateMode = config.defaultPaginateMode;
70393
70302
  const requiredArgs = [];
70394
- doc.document = graphql12.visit(doc.document, {
70303
+ doc.document = graphql13.visit(doc.document, {
70395
70304
  OperationDefinition(node) {
70396
70305
  if (node.operation !== "query") {
70397
70306
  throw new HoudiniError({
@@ -70450,9 +70359,9 @@ async function paginate(config, documents) {
70450
70359
  directives: [
70451
70360
  ...node.directives || [],
70452
70361
  {
70453
- kind: graphql12.Kind.DIRECTIVE,
70362
+ kind: graphql13.Kind.DIRECTIVE,
70454
70363
  name: {
70455
- kind: graphql12.Kind.NAME,
70364
+ kind: graphql13.Kind.NAME,
70456
70365
  value: config.argumentsDirective
70457
70366
  }
70458
70367
  }
@@ -70522,22 +70431,22 @@ async function paginate(config, documents) {
70522
70431
  const paginationArgs = Object.entries(flags).filter(([_3, { enabled }]) => enabled).map(([key, value]) => ({ name: key, ...value }));
70523
70432
  const fragmentSpreadSelection = [
70524
70433
  {
70525
- kind: graphql12.Kind.FRAGMENT_SPREAD,
70434
+ kind: graphql13.Kind.FRAGMENT_SPREAD,
70526
70435
  name: {
70527
- kind: graphql12.Kind.NAME,
70436
+ kind: graphql13.Kind.NAME,
70528
70437
  value: fragmentName
70529
70438
  },
70530
70439
  directives: [
70531
70440
  {
70532
- kind: graphql12.Kind.DIRECTIVE,
70441
+ kind: graphql13.Kind.DIRECTIVE,
70533
70442
  name: {
70534
- kind: graphql12.Kind.NAME,
70443
+ kind: graphql13.Kind.NAME,
70535
70444
  value: config.withDirective
70536
70445
  },
70537
70446
  ["arguments"]: requiredArgs.map((arg) => variableAsArgument(arg.name)).concat(paginationArgs.map(({ name }) => variableAsArgument(name)))
70538
70447
  },
70539
70448
  {
70540
- kind: graphql12.Kind.DIRECTIVE,
70449
+ kind: graphql13.Kind.DIRECTIVE,
70541
70450
  name: {
70542
70451
  kind: "Name",
70543
70452
  value: config.maskDisableDirective
@@ -70564,23 +70473,23 @@ async function paginate(config, documents) {
70564
70473
  });
70565
70474
  const typeConfig = config.typeConfig?.[fragment2];
70566
70475
  const queryDoc = {
70567
- kind: graphql12.Kind.DOCUMENT,
70476
+ kind: graphql13.Kind.DOCUMENT,
70568
70477
  definitions: [
70569
70478
  {
70570
- kind: graphql12.Kind.OPERATION_DEFINITION,
70479
+ kind: graphql13.Kind.OPERATION_DEFINITION,
70571
70480
  name: {
70572
- kind: graphql12.Kind.NAME,
70481
+ kind: graphql13.Kind.NAME,
70573
70482
  value: refetchQueryName
70574
70483
  },
70575
70484
  operation: "query",
70576
70485
  variableDefinitions: requiredArgs.map(
70577
70486
  (arg) => ({
70578
- kind: graphql12.Kind.VARIABLE_DEFINITION,
70487
+ kind: graphql13.Kind.VARIABLE_DEFINITION,
70579
70488
  type: arg.type,
70580
70489
  variable: {
70581
- kind: graphql12.Kind.VARIABLE,
70490
+ kind: graphql13.Kind.VARIABLE,
70582
70491
  name: {
70583
- kind: graphql12.Kind.NAME,
70492
+ kind: graphql13.Kind.NAME,
70584
70493
  value: arg.name
70585
70494
  }
70586
70495
  }
@@ -70588,18 +70497,18 @@ async function paginate(config, documents) {
70588
70497
  ).concat(
70589
70498
  paginationArgs.map(
70590
70499
  (arg) => ({
70591
- kind: graphql12.Kind.VARIABLE_DEFINITION,
70500
+ kind: graphql13.Kind.VARIABLE_DEFINITION,
70592
70501
  type: {
70593
- kind: graphql12.Kind.NAMED_TYPE,
70502
+ kind: graphql13.Kind.NAMED_TYPE,
70594
70503
  name: {
70595
- kind: graphql12.Kind.NAME,
70504
+ kind: graphql13.Kind.NAME,
70596
70505
  value: arg.type
70597
70506
  }
70598
70507
  },
70599
70508
  variable: {
70600
- kind: graphql12.Kind.VARIABLE,
70509
+ kind: graphql13.Kind.VARIABLE,
70601
70510
  name: {
70602
- kind: graphql12.Kind.NAME,
70511
+ kind: graphql13.Kind.NAME,
70603
70512
  value: arg.name
70604
70513
  }
70605
70514
  },
@@ -70611,12 +70520,12 @@ async function paginate(config, documents) {
70611
70520
  ).concat(
70612
70521
  !nodeQuery ? [] : keys2.map(
70613
70522
  (key) => ({
70614
- kind: graphql12.Kind.VARIABLE_DEFINITION,
70523
+ kind: graphql13.Kind.VARIABLE_DEFINITION,
70615
70524
  type: key.type,
70616
70525
  variable: {
70617
- kind: graphql12.Kind.VARIABLE,
70526
+ kind: graphql13.Kind.VARIABLE,
70618
70527
  name: {
70619
- kind: graphql12.Kind.NAME,
70528
+ kind: graphql13.Kind.NAME,
70620
70529
  value: key.name
70621
70530
  }
70622
70531
  }
@@ -70625,42 +70534,42 @@ async function paginate(config, documents) {
70625
70534
  )
70626
70535
  ),
70627
70536
  selectionSet: {
70628
- kind: graphql12.Kind.SELECTION_SET,
70537
+ kind: graphql13.Kind.SELECTION_SET,
70629
70538
  selections: !nodeQuery ? fragmentSpreadSelection : [
70630
70539
  {
70631
- kind: graphql12.Kind.FIELD,
70540
+ kind: graphql13.Kind.FIELD,
70632
70541
  name: {
70633
- kind: graphql12.Kind.NAME,
70542
+ kind: graphql13.Kind.NAME,
70634
70543
  value: typeConfig?.resolve?.queryField || "node"
70635
70544
  },
70636
70545
  ["arguments"]: keys2.map((key) => ({
70637
- kind: graphql12.Kind.ARGUMENT,
70546
+ kind: graphql13.Kind.ARGUMENT,
70638
70547
  name: {
70639
- kind: graphql12.Kind.NAME,
70548
+ kind: graphql13.Kind.NAME,
70640
70549
  value: key.name
70641
70550
  },
70642
70551
  value: {
70643
- kind: graphql12.Kind.VARIABLE,
70552
+ kind: graphql13.Kind.VARIABLE,
70644
70553
  name: {
70645
- kind: graphql12.Kind.NAME,
70554
+ kind: graphql13.Kind.NAME,
70646
70555
  value: key.name
70647
70556
  }
70648
70557
  }
70649
70558
  })),
70650
70559
  selectionSet: {
70651
- kind: graphql12.Kind.SELECTION_SET,
70560
+ kind: graphql13.Kind.SELECTION_SET,
70652
70561
  selections: [
70653
70562
  {
70654
- kind: graphql12.Kind.FIELD,
70563
+ kind: graphql13.Kind.FIELD,
70655
70564
  name: {
70656
- kind: graphql12.Kind.NAME,
70565
+ kind: graphql13.Kind.NAME,
70657
70566
  value: "__typename"
70658
70567
  }
70659
70568
  },
70660
70569
  ...(typeConfig?.keys || [config.defaultKeys[0]]).map((key) => ({
70661
- kind: graphql12.Kind.FIELD,
70570
+ kind: graphql13.Kind.FIELD,
70662
70571
  name: {
70663
- kind: graphql12.Kind.NAME,
70572
+ kind: graphql13.Kind.NAME,
70664
70573
  value: key
70665
70574
  }
70666
70575
  })),
@@ -70717,15 +70626,15 @@ function replaceArgumentsWithVariables(args, flags) {
70717
70626
  }
70718
70627
  function variableAsArgument(name, variable) {
70719
70628
  return {
70720
- kind: graphql12.Kind.ARGUMENT,
70629
+ kind: graphql13.Kind.ARGUMENT,
70721
70630
  name: {
70722
- kind: graphql12.Kind.NAME,
70631
+ kind: graphql13.Kind.NAME,
70723
70632
  value: name
70724
70633
  },
70725
70634
  value: {
70726
- kind: graphql12.Kind.VARIABLE,
70635
+ kind: graphql13.Kind.VARIABLE,
70727
70636
  name: {
70728
- kind: graphql12.Kind.NAME,
70637
+ kind: graphql13.Kind.NAME,
70729
70638
  value: variable ?? name
70730
70639
  }
70731
70640
  }
@@ -70733,18 +70642,18 @@ function variableAsArgument(name, variable) {
70733
70642
  }
70734
70643
  function staticVariableDefinition(name, type, defaultValue, variableName) {
70735
70644
  return {
70736
- kind: graphql12.Kind.VARIABLE_DEFINITION,
70645
+ kind: graphql13.Kind.VARIABLE_DEFINITION,
70737
70646
  type: {
70738
- kind: graphql12.Kind.NAMED_TYPE,
70647
+ kind: graphql13.Kind.NAMED_TYPE,
70739
70648
  name: {
70740
- kind: graphql12.Kind.NAME,
70649
+ kind: graphql13.Kind.NAME,
70741
70650
  value: type
70742
70651
  }
70743
70652
  },
70744
70653
  variable: {
70745
- kind: graphql12.Kind.VARIABLE,
70654
+ kind: graphql13.Kind.VARIABLE,
70746
70655
  name: {
70747
- kind: graphql12.Kind.NAME,
70656
+ kind: graphql13.Kind.NAME,
70748
70657
  value: variableName ?? name
70749
70658
  }
70750
70659
  },
@@ -70756,9 +70665,9 @@ function staticVariableDefinition(name, type, defaultValue, variableName) {
70756
70665
  }
70757
70666
  function argumentNode(name, value) {
70758
70667
  return {
70759
- kind: graphql12.Kind.ARGUMENT,
70668
+ kind: graphql13.Kind.ARGUMENT,
70760
70669
  name: {
70761
- kind: graphql12.Kind.NAME,
70670
+ kind: graphql13.Kind.NAME,
70762
70671
  value: name
70763
70672
  },
70764
70673
  value: objectNode(value)
@@ -70766,16 +70675,16 @@ function argumentNode(name, value) {
70766
70675
  }
70767
70676
  function objectNode([type, defaultValue]) {
70768
70677
  const node = {
70769
- kind: graphql12.Kind.OBJECT,
70678
+ kind: graphql13.Kind.OBJECT,
70770
70679
  fields: [
70771
70680
  {
70772
- kind: graphql12.Kind.OBJECT_FIELD,
70681
+ kind: graphql13.Kind.OBJECT_FIELD,
70773
70682
  name: {
70774
- kind: graphql12.Kind.NAME,
70683
+ kind: graphql13.Kind.NAME,
70775
70684
  value: "type"
70776
70685
  },
70777
70686
  value: {
70778
- kind: graphql12.Kind.STRING,
70687
+ kind: graphql13.Kind.STRING,
70779
70688
  value: type
70780
70689
  }
70781
70690
  }
@@ -70783,8 +70692,8 @@ function objectNode([type, defaultValue]) {
70783
70692
  };
70784
70693
  if (defaultValue) {
70785
70694
  node.fields.push({
70786
- kind: graphql12.Kind.OBJECT_FIELD,
70787
- name: { kind: graphql12.Kind.NAME, value: "default" },
70695
+ kind: graphql13.Kind.OBJECT_FIELD,
70696
+ name: { kind: graphql13.Kind.NAME, value: "default" },
70788
70697
  value: {
70789
70698
  kind: typeof defaultValue === "number" ? "IntValue" : "StringValue",
70790
70699
  value: defaultValue.toString()
@@ -70795,34 +70704,34 @@ function objectNode([type, defaultValue]) {
70795
70704
  }
70796
70705
  var pageInfoSelection = [
70797
70706
  {
70798
- kind: graphql12.Kind.FIELD,
70707
+ kind: graphql13.Kind.FIELD,
70799
70708
  name: {
70800
- kind: graphql12.Kind.NAME,
70709
+ kind: graphql13.Kind.NAME,
70801
70710
  value: "edges"
70802
70711
  },
70803
70712
  selectionSet: {
70804
- kind: graphql12.Kind.SELECTION_SET,
70713
+ kind: graphql13.Kind.SELECTION_SET,
70805
70714
  selections: [
70806
70715
  {
70807
- kind: graphql12.Kind.FIELD,
70716
+ kind: graphql13.Kind.FIELD,
70808
70717
  name: {
70809
- kind: graphql12.Kind.NAME,
70718
+ kind: graphql13.Kind.NAME,
70810
70719
  value: "cursor"
70811
70720
  }
70812
70721
  },
70813
70722
  {
70814
- kind: graphql12.Kind.FIELD,
70723
+ kind: graphql13.Kind.FIELD,
70815
70724
  name: {
70816
- kind: graphql12.Kind.NAME,
70725
+ kind: graphql13.Kind.NAME,
70817
70726
  value: "node"
70818
70727
  },
70819
70728
  selectionSet: {
70820
- kind: graphql12.Kind.SELECTION_SET,
70729
+ kind: graphql13.Kind.SELECTION_SET,
70821
70730
  selections: [
70822
70731
  {
70823
- kind: graphql12.Kind.FIELD,
70732
+ kind: graphql13.Kind.FIELD,
70824
70733
  name: {
70825
- kind: graphql12.Kind.NAME,
70734
+ kind: graphql13.Kind.NAME,
70826
70735
  value: "__typename"
70827
70736
  }
70828
70737
  }
@@ -70833,39 +70742,39 @@ var pageInfoSelection = [
70833
70742
  }
70834
70743
  },
70835
70744
  {
70836
- kind: graphql12.Kind.FIELD,
70745
+ kind: graphql13.Kind.FIELD,
70837
70746
  name: {
70838
- kind: graphql12.Kind.NAME,
70747
+ kind: graphql13.Kind.NAME,
70839
70748
  value: "pageInfo"
70840
70749
  },
70841
70750
  selectionSet: {
70842
- kind: graphql12.Kind.SELECTION_SET,
70751
+ kind: graphql13.Kind.SELECTION_SET,
70843
70752
  selections: [
70844
70753
  {
70845
- kind: graphql12.Kind.FIELD,
70754
+ kind: graphql13.Kind.FIELD,
70846
70755
  name: {
70847
- kind: graphql12.Kind.NAME,
70756
+ kind: graphql13.Kind.NAME,
70848
70757
  value: "hasPreviousPage"
70849
70758
  }
70850
70759
  },
70851
70760
  {
70852
- kind: graphql12.Kind.FIELD,
70761
+ kind: graphql13.Kind.FIELD,
70853
70762
  name: {
70854
- kind: graphql12.Kind.NAME,
70763
+ kind: graphql13.Kind.NAME,
70855
70764
  value: "hasNextPage"
70856
70765
  }
70857
70766
  },
70858
70767
  {
70859
- kind: graphql12.Kind.FIELD,
70768
+ kind: graphql13.Kind.FIELD,
70860
70769
  name: {
70861
- kind: graphql12.Kind.NAME,
70770
+ kind: graphql13.Kind.NAME,
70862
70771
  value: "startCursor"
70863
70772
  }
70864
70773
  },
70865
70774
  {
70866
- kind: graphql12.Kind.FIELD,
70775
+ kind: graphql13.Kind.FIELD,
70867
70776
  name: {
70868
- kind: graphql12.Kind.NAME,
70777
+ kind: graphql13.Kind.NAME,
70869
70778
  value: "endCursor"
70870
70779
  }
70871
70780
  }
@@ -70879,17 +70788,17 @@ async function addListFragments(config, documents) {
70879
70788
  const lists = {};
70880
70789
  const errors = [];
70881
70790
  for (const doc of documents) {
70882
- doc.document = graphql13.visit(doc.document, {
70791
+ doc.document = graphql14.visit(doc.document, {
70883
70792
  Directive(node, key, parent2, path3, ancestors) {
70884
70793
  if ([config.listDirective, config.paginateDirective].includes(node.name.value)) {
70885
70794
  const nameArg = node.arguments?.find(
70886
70795
  (arg) => arg.name.value === config.listOrPaginateNameArg
70887
70796
  );
70888
70797
  let error = {
70889
- ...new graphql13.GraphQLError(
70798
+ ...new graphql14.GraphQLError(
70890
70799
  "",
70891
70800
  node,
70892
- new graphql13.Source(""),
70801
+ new graphql14.Source(""),
70893
70802
  node.loc ? [node.loc.start, node.loc.end] : null,
70894
70803
  path3
70895
70804
  ),
@@ -70941,7 +70850,7 @@ async function addListFragments(config, documents) {
70941
70850
  {
70942
70851
  kind: "Argument",
70943
70852
  name: {
70944
- kind: graphql13.Kind.NAME,
70853
+ kind: graphql14.Kind.NAME,
70945
70854
  value: "connection"
70946
70855
  },
70947
70856
  value: {
@@ -70991,7 +70900,7 @@ async function addListFragments(config, documents) {
70991
70900
  const validDeletes = [
70992
70901
  ...new Set(
70993
70902
  Object.values(lists).map(({ type }) => {
70994
- if (!(type instanceof graphql13.GraphQLObjectType)) {
70903
+ if (!(type instanceof graphql14.GraphQLObjectType)) {
70995
70904
  return "";
70996
70905
  }
70997
70906
  if (config.keyFieldsForType(type.name).length !== 1) {
@@ -71005,7 +70914,7 @@ async function addListFragments(config, documents) {
71005
70914
  return;
71006
70915
  }
71007
70916
  const generatedDoc = {
71008
- kind: graphql13.Kind.DOCUMENT,
70917
+ kind: graphql14.Kind.DOCUMENT,
71009
70918
  definitions: Object.entries(lists).flatMap(
71010
70919
  ([name, { selection, type }]) => {
71011
70920
  const schemaType = config.schema.getType(type.name);
@@ -71013,7 +70922,7 @@ async function addListFragments(config, documents) {
71013
70922
  throw new HoudiniError({ message: "Lists must have a selection" });
71014
70923
  }
71015
70924
  const fragmentSelection = {
71016
- kind: graphql13.Kind.SELECTION_SET,
70925
+ kind: graphql14.Kind.SELECTION_SET,
71017
70926
  selections: [...selection.selections]
71018
70927
  };
71019
70928
  if (schemaType && fragmentSelection && !fragmentSelection?.selections.find(
@@ -71028,14 +70937,14 @@ async function addListFragments(config, documents) {
71028
70937
  {
71029
70938
  name: {
71030
70939
  value: config.listInsertFragment(name),
71031
- kind: graphql13.Kind.NAME
70940
+ kind: graphql14.Kind.NAME
71032
70941
  },
71033
- kind: graphql13.Kind.FRAGMENT_DEFINITION,
70942
+ kind: graphql14.Kind.FRAGMENT_DEFINITION,
71034
70943
  selectionSet: fragmentSelection,
71035
70944
  typeCondition: {
71036
- kind: graphql13.Kind.NAMED_TYPE,
70945
+ kind: graphql14.Kind.NAMED_TYPE,
71037
70946
  name: {
71038
- kind: graphql13.Kind.NAME,
70947
+ kind: graphql14.Kind.NAME,
71039
70948
  value: type.name
71040
70949
  }
71041
70950
  }
@@ -71043,32 +70952,32 @@ async function addListFragments(config, documents) {
71043
70952
  {
71044
70953
  name: {
71045
70954
  value: config.listToggleFragment(name),
71046
- kind: graphql13.Kind.NAME
70955
+ kind: graphql14.Kind.NAME
71047
70956
  },
71048
- kind: graphql13.Kind.FRAGMENT_DEFINITION,
70957
+ kind: graphql14.Kind.FRAGMENT_DEFINITION,
71049
70958
  selectionSet: fragmentSelection,
71050
70959
  typeCondition: {
71051
- kind: graphql13.Kind.NAMED_TYPE,
70960
+ kind: graphql14.Kind.NAMED_TYPE,
71052
70961
  name: {
71053
- kind: graphql13.Kind.NAME,
70962
+ kind: graphql14.Kind.NAME,
71054
70963
  value: type.name
71055
70964
  }
71056
70965
  }
71057
70966
  },
71058
70967
  {
71059
- kind: graphql13.Kind.FRAGMENT_DEFINITION,
70968
+ kind: graphql14.Kind.FRAGMENT_DEFINITION,
71060
70969
  name: {
71061
70970
  value: config.listRemoveFragment(name),
71062
- kind: graphql13.Kind.NAME
70971
+ kind: graphql14.Kind.NAME
71063
70972
  },
71064
70973
  selectionSet: {
71065
- kind: graphql13.Kind.SELECTION_SET,
70974
+ kind: graphql14.Kind.SELECTION_SET,
71066
70975
  selections: [...objectIdentificationSelection(config, type)]
71067
70976
  },
71068
70977
  typeCondition: {
71069
- kind: graphql13.Kind.NAMED_TYPE,
70978
+ kind: graphql14.Kind.NAMED_TYPE,
71070
70979
  name: {
71071
- kind: graphql13.Kind.NAME,
70980
+ kind: graphql14.Kind.NAME,
71072
70981
  value: type.name
71073
70982
  }
71074
70983
  }
@@ -71077,14 +70986,14 @@ async function addListFragments(config, documents) {
71077
70986
  }
71078
70987
  ).concat(
71079
70988
  ...validDeletes.map((typeName) => ({
71080
- kind: graphql13.Kind.DIRECTIVE_DEFINITION,
70989
+ kind: graphql14.Kind.DIRECTIVE_DEFINITION,
71081
70990
  name: {
71082
- kind: graphql13.Kind.NAME,
70991
+ kind: graphql14.Kind.NAME,
71083
70992
  value: config.listDeleteDirective(typeName)
71084
70993
  },
71085
70994
  locations: [
71086
70995
  {
71087
- kind: graphql13.Kind.NAME,
70996
+ kind: graphql14.Kind.NAME,
71088
70997
  value: "FIELD"
71089
70998
  }
71090
70999
  ],
@@ -71092,8 +71001,8 @@ async function addListFragments(config, documents) {
71092
71001
  }))
71093
71002
  )
71094
71003
  };
71095
- config.newSchema += "\n" + generatedDoc.definitions.filter((c2) => c2.kind !== "FragmentDefinition").map(graphql13.print).join("\n\n");
71096
- config.newDocuments += "\n" + generatedDoc.definitions.filter((c2) => c2.kind === "FragmentDefinition").map(graphql13.print).join("\n\n");
71004
+ config.newSchema += "\n" + generatedDoc.definitions.filter((c2) => c2.kind !== "FragmentDefinition").map(graphql14.print).join("\n\n");
71005
+ config.newDocuments += "\n" + generatedDoc.definitions.filter((c2) => c2.kind === "FragmentDefinition").map(graphql14.print).join("\n\n");
71097
71006
  documents.push({
71098
71007
  name: "generated::lists",
71099
71008
  kind: ArtifactKind.Fragment,
@@ -71179,11 +71088,11 @@ var nodeNotDefinedMessage = (config) => `Looks like you are trying to use the ${
71179
71088
  For more information, visit this link: ${siteURL}/guides/pagination`;
71180
71089
 
71181
71090
  // src/codegen/generators/artifacts/fieldKey.ts
71182
- var graphql14 = __toESM(require("graphql"), 1);
71091
+ var graphql15 = __toESM(require("graphql"), 1);
71183
71092
  function fieldKey(config, field) {
71184
71093
  const attributeName = field.alias?.value || field.name.value;
71185
- const printed = graphql14.print(field);
71186
- const secondParse = graphql14.parse(`{${printed}}`).definitions[0].selectionSet.selections[0];
71094
+ const printed = graphql15.print(field);
71095
+ const secondParse = graphql15.parse(`{${printed}}`).definitions[0].selectionSet.selections[0];
71187
71096
  let paginateMode = config.defaultPaginateMode;
71188
71097
  const paginatedDirective = field.directives?.find(
71189
71098
  (directive) => directive.name.value === config.paginateDirective
@@ -71306,13 +71215,13 @@ function prepareSelection({
71306
71215
  } else if ("getFields" in type) {
71307
71216
  let typeRef = type.getFields()[field.name.value].type;
71308
71217
  fieldType = getRootType(typeRef);
71309
- nullable = !graphql15.isNonNullType(typeRef);
71310
- } else if (graphql15.isAbstractType(type)) {
71218
+ nullable = !graphql16.isNonNullType(typeRef);
71219
+ } else if (graphql16.isAbstractType(type)) {
71311
71220
  for (const possible of config.schema.getPossibleTypes(type)) {
71312
- if (graphql15.isObjectType(possible)) {
71221
+ if (graphql16.isObjectType(possible)) {
71313
71222
  if (possible.getFields()[field.name.value]) {
71314
71223
  fieldType = possible.getFields()[field.name.value].type;
71315
- nullable = !graphql15.isNonNullType(fieldType);
71224
+ nullable = !graphql16.isNonNullType(fieldType);
71316
71225
  break;
71317
71226
  }
71318
71227
  }
@@ -71449,7 +71358,7 @@ function prepareSelection({
71449
71358
  kind: "value"
71450
71359
  } : { kind: "continue" };
71451
71360
  const parentType = config.schema.getType(rootType);
71452
- if (graphql15.isObjectType(parentType) || graphql15.isInterfaceType(parentType)) {
71361
+ if (graphql16.isObjectType(parentType) || graphql16.isInterfaceType(parentType)) {
71453
71362
  const fieldType2 = parentType.getFields()[field.name.value]?.type;
71454
71363
  if (fieldType2) {
71455
71364
  const listCount = unwrapType(config, fieldType2).wrappers.filter(
@@ -71472,7 +71381,7 @@ function prepareSelection({
71472
71381
  }
71473
71382
  fieldObj.loading = loadingValue;
71474
71383
  }
71475
- if (graphql15.isInterfaceType(fieldType) || graphql15.isUnionType(fieldType)) {
71384
+ if (graphql16.isInterfaceType(fieldType) || graphql16.isUnionType(fieldType)) {
71476
71385
  fieldObj.abstract = true;
71477
71386
  if (Object.values(fieldObj.selection?.abstractFields?.fields ?? {}).some(
71478
71387
  (fields) => Object.values(fields ?? {}).some((field2) => field2.required)
@@ -71554,7 +71463,7 @@ function mergeSelection({
71554
71463
  typeSelection,
71555
71464
  abstractSelection.fields[typeName] ?? {}
71556
71465
  );
71557
- if (graphql15.isAbstractType(gqlType)) {
71466
+ if (graphql16.isAbstractType(gqlType)) {
71558
71467
  for (const possible of config.schema.getPossibleTypes(gqlType)) {
71559
71468
  if (!possibleSelectionTypes[typeName]) {
71560
71469
  possibleSelectionTypes[typeName] = [];
@@ -71589,7 +71498,7 @@ function mergeSelection({
71589
71498
  }
71590
71499
  }
71591
71500
  const parentType = config.schema.getType(rootType);
71592
- const possibleParents = graphql15.isAbstractType(parentType) ? config.schema.getPossibleTypes(parentType)?.map((t3) => t3.name) : [parentType.name];
71501
+ const possibleParents = graphql16.isAbstractType(parentType) ? config.schema.getPossibleTypes(parentType)?.map((t3) => t3.name) : [parentType.name];
71593
71502
  for (const key of Object.keys(abstractSelection.typeMap)) {
71594
71503
  if (!possibleParents.includes(key) && rootType !== key || abstractSelection.fields[key]) {
71595
71504
  delete abstractSelection.typeMap[key];
@@ -71646,12 +71555,12 @@ function mergeSelection({
71646
71555
  }
71647
71556
 
71648
71557
  // src/codegen/generators/artifacts/index.ts
71649
- var AST4 = recast4.types.builders;
71558
+ var AST5 = recast5.types.builders;
71650
71559
  function artifactGenerator(stats) {
71651
71560
  return async function(config, docs) {
71652
71561
  const filterTypes = {};
71653
71562
  for (const doc of docs) {
71654
- graphql16.visit(doc.document, {
71563
+ graphql17.visit(doc.document, {
71655
71564
  Directive(node, _3, __, ___, ancestors) {
71656
71565
  if (node.name.value !== config.listDirective) {
71657
71566
  return;
@@ -71711,7 +71620,7 @@ function artifactGenerator(stats) {
71711
71620
  return;
71712
71621
  }
71713
71622
  const usedVariableNames = /* @__PURE__ */ new Set();
71714
- let documentWithoutInternalDirectives = graphql16.visit(document, {
71623
+ let documentWithoutInternalDirectives = graphql17.visit(document, {
71715
71624
  Directive(node) {
71716
71625
  if (config.isInternalDirective(node.name.value)) {
71717
71626
  return null;
@@ -71724,7 +71633,7 @@ function artifactGenerator(stats) {
71724
71633
  }
71725
71634
  }
71726
71635
  });
71727
- let documentWithoutExtraVariables = graphql16.visit(
71636
+ let documentWithoutExtraVariables = graphql17.visit(
71728
71637
  documentWithoutInternalDirectives,
71729
71638
  {
71730
71639
  VariableDefinition(variableDefinitionNode) {
@@ -71735,13 +71644,13 @@ function artifactGenerator(stats) {
71735
71644
  }
71736
71645
  }
71737
71646
  );
71738
- let rawString = graphql16.print(documentWithoutExtraVariables);
71647
+ let rawString = graphql17.print(documentWithoutExtraVariables);
71739
71648
  let docKind = doc.kind;
71740
71649
  const operations = document.definitions.filter(
71741
- ({ kind }) => kind === graphql16.Kind.OPERATION_DEFINITION
71650
+ ({ kind }) => kind === graphql17.Kind.OPERATION_DEFINITION
71742
71651
  );
71743
71652
  const fragments = document.definitions.filter(
71744
- ({ kind }) => kind === graphql16.Kind.FRAGMENT_DEFINITION
71653
+ ({ kind }) => kind === graphql17.Kind.FRAGMENT_DEFINITION
71745
71654
  );
71746
71655
  let rootType = "";
71747
71656
  let selectionSet;
@@ -71941,9 +71850,9 @@ function artifactGenerator(stats) {
71941
71850
  plugin2.artifactEnd({ config, document: doc });
71942
71851
  }
71943
71852
  const _houdiniHash = hashOriginal({ document: doc });
71944
- const file = AST4.program([
71853
+ const file = AST5.program([
71945
71854
  moduleExport(config, "default", serializeValue(artifact)),
71946
- AST4.expressionStatement(AST4.stringLiteral(`HoudiniHash=${_houdiniHash}`))
71855
+ AST5.expressionStatement(AST5.stringLiteral(`HoudiniHash=${_houdiniHash}`))
71947
71856
  ]);
71948
71857
  const artifactPath = config.artifactPath(document);
71949
71858
  const countDocument = doc.generateStore;
@@ -72001,7 +71910,7 @@ function applyMask(config, target, mask) {
72001
71910
  if (!targetType) {
72002
71911
  continue;
72003
71912
  }
72004
- if (graphql16.isAbstractType(targetType)) {
71913
+ if (graphql17.isAbstractType(targetType)) {
72005
71914
  for (const possible of config.schema.getPossibleTypes(targetType)) {
72006
71915
  if (target.abstractFields?.fields[possible.name]) {
72007
71916
  applyMask(
@@ -72024,8 +71933,8 @@ function applyMask(config, target, mask) {
72024
71933
  }
72025
71934
 
72026
71935
  // src/codegen/generators/runtime/graphqlFunction.ts
72027
- var recast5 = __toESM(require_main2(), 1);
72028
- var AST5 = recast5.types.builders;
71936
+ var recast6 = __toESM(require_main2(), 1);
71937
+ var AST6 = recast6.types.builders;
72029
71938
  async function generateGraphqlReturnTypes(config, docs) {
72030
71939
  const indexPath = path_exports.join(config.runtimeDirectory, "index.d.ts");
72031
71940
  const fileContent = await fs_exports.readFile(indexPath) || "";
@@ -72060,18 +71969,18 @@ async function generateGraphqlReturnTypes(config, docs) {
72060
71969
  continue;
72061
71970
  }
72062
71971
  for (const [queryString, returnValue] of Object.entries(overloaded_returns)) {
72063
- const input = AST5.identifier("str");
72064
- input.typeAnnotation = AST5.tsTypeAnnotation(
72065
- AST5.tsLiteralType(AST5.stringLiteral(queryString))
71972
+ const input = AST6.identifier("str");
71973
+ input.typeAnnotation = AST6.tsTypeAnnotation(
71974
+ AST6.tsLiteralType(AST6.stringLiteral(queryString))
72066
71975
  );
72067
71976
  script.body.splice(
72068
71977
  i2,
72069
71978
  0,
72070
- AST5.exportNamedDeclaration(
72071
- AST5.tsDeclareFunction(
72072
- AST5.identifier("graphql"),
71979
+ AST6.exportNamedDeclaration(
71980
+ AST6.tsDeclareFunction(
71981
+ AST6.identifier("graphql"),
72073
71982
  [input],
72074
- AST5.tsTypeAnnotation(AST5.tsTypeReference(AST5.identifier(returnValue)))
71983
+ AST6.tsTypeAnnotation(AST6.tsTypeReference(AST6.identifier(returnValue)))
72075
71984
  )
72076
71985
  )
72077
71986
  );
@@ -72246,165 +72155,22 @@ function moduleStatments(config) {
72246
72155
  var recast11 = __toESM(require_main2(), 1);
72247
72156
 
72248
72157
  // src/codegen/generators/typescript/addReferencedInputTypes.ts
72249
- var graphql19 = __toESM(require("graphql"), 1);
72250
- var recast8 = __toESM(require_main2(), 1);
72251
-
72252
- // src/codegen/generators/typescript/typeReference.ts
72253
72158
  var graphql18 = __toESM(require("graphql"), 1);
72254
72159
  var recast7 = __toESM(require_main2(), 1);
72255
-
72256
- // src/codegen/generators/typescript/types.ts
72257
- var graphql17 = __toESM(require("graphql"), 1);
72258
- var recast6 = __toESM(require_main2(), 1);
72259
- var AST6 = recast6.types.builders;
72260
- function readonlyProperty(prop, enable = true) {
72261
- if (enable) {
72262
- prop.readonly = true;
72263
- }
72264
- return prop;
72265
- }
72266
- function nullableField(inner, input = false) {
72267
- const members = [inner, AST6.tsNullKeyword()];
72268
- if (input) {
72269
- members.push(AST6.tsUndefinedKeyword());
72270
- }
72271
- return AST6.tsUnionType(members);
72272
- }
72273
- function scalarPropertyValue(config, filepath, missingScalars, target, body, field) {
72274
- if (config.configFile.features?.componentFields && target.name === config.componentScalar) {
72275
- if (!field) {
72276
- return AST6.tsNeverKeyword();
72277
- }
72278
- const component = config.componentFields[field.parent][field.field];
72279
- const sourcePathRelative = path_exports.relative(
72280
- path_exports.join(config.projectRoot, "src"),
72281
- component.filepath
72282
- );
72283
- let sourcePathParsed = path_exports.parse(sourcePathRelative);
72284
- let sourcePath = path_exports.join(sourcePathParsed.dir, sourcePathParsed.name);
72285
- const localImport = ensureImports({
72286
- config,
72287
- body,
72288
- import: "__component__" + component.fragment,
72289
- sourceModule: path_exports.join(
72290
- path_exports.relative(path_exports.dirname(filepath), config.projectRoot),
72291
- "src",
72292
- sourcePath
72293
- )
72294
- });
72295
- const parameters = AST6.tsTypeReference(AST6.identifier("Parameters"));
72296
- parameters.typeParameters = AST6.tsTypeParameterInstantiation([
72297
- AST6.tsTypeQuery(AST6.identifier(localImport))
72298
- ]);
72299
- const indexed = AST6.tsIndexedAccessType(
72300
- parameters,
72301
- AST6.tsLiteralType(AST6.numericLiteral(0))
72302
- );
72303
- const omit = AST6.tsTypeReference(AST6.identifier("Omit"));
72304
- omit.typeParameters = AST6.tsTypeParameterInstantiation([
72305
- indexed,
72306
- AST6.tsLiteralType(AST6.stringLiteral(component.prop))
72307
- ]);
72308
- const arg = AST6.identifier("props");
72309
- arg.typeAnnotation = AST6.tsTypeAnnotation(omit);
72310
- const returnType = AST6.tsTypeReference(AST6.identifier("ReturnType"));
72311
- returnType.typeParameters = AST6.tsTypeParameterInstantiation([
72312
- AST6.tsTypeQuery(AST6.identifier(localImport))
72313
- ]);
72314
- const fnType = AST6.tsFunctionType([arg]);
72315
- fnType.typeAnnotation = AST6.tsTypeAnnotation(returnType);
72316
- return fnType;
72317
- }
72318
- switch (target.name) {
72319
- case "String": {
72320
- return AST6.tsStringKeyword();
72321
- }
72322
- case "Int": {
72323
- return AST6.tsNumberKeyword();
72324
- }
72325
- case "Float": {
72326
- return AST6.tsNumberKeyword();
72327
- }
72328
- case "Boolean": {
72329
- return AST6.tsBooleanKeyword();
72330
- }
72331
- case "ID": {
72332
- return AST6.tsStringKeyword();
72333
- }
72334
- default: {
72335
- if (graphql17.isNonNullType(target) && "ofType" in target) {
72336
- return scalarPropertyValue(
72337
- config,
72338
- filepath,
72339
- missingScalars,
72340
- target.ofType,
72341
- body,
72342
- field
72343
- );
72344
- }
72345
- if (config.scalars?.[target.name]) {
72346
- return AST6.tsTypeReference(AST6.identifier(config.scalars?.[target.name].type));
72347
- }
72348
- if (target.name !== config.componentScalar) {
72349
- missingScalars.add(target.name);
72350
- }
72351
- return AST6.tsAnyKeyword();
72352
- }
72353
- }
72354
- }
72355
-
72356
- // src/codegen/generators/typescript/typeReference.ts
72357
72160
  var AST7 = recast7.types.builders;
72358
- function tsTypeReference(config, filepath, missingScalars, definition, body) {
72359
- const { type, wrappers } = unwrapType(config, definition.type);
72360
- let result;
72361
- if (graphql18.isScalarType(type)) {
72362
- result = scalarPropertyValue(config, filepath, missingScalars, type, body, null);
72363
- } else if (graphql18.isEnumType(type)) {
72364
- result = enumReference(config, body, type.name);
72365
- } else {
72366
- result = AST7.tsTypeReference(AST7.identifier(type.name));
72367
- }
72368
- for (const toWrap of wrappers) {
72369
- if (toWrap === "NonNull" /* NonNull */) {
72370
- continue;
72371
- } else if (toWrap === "Nullable" /* Nullable */) {
72372
- result = nullableField(result, true);
72373
- } else if (toWrap === "List" /* List */) {
72374
- result = AST7.tsArrayType(AST7.tsParenthesizedType(result));
72375
- }
72376
- }
72377
- return result;
72378
- }
72379
- function enumReference(config, body, name) {
72380
- ensureImports({
72381
- config,
72382
- body,
72383
- import: ["ValueOf"],
72384
- importKind: "type",
72385
- sourceModule: "$houdini/runtime/lib/types"
72386
- });
72387
- return AST7.tsTypeReference(
72388
- AST7.identifier("ValueOf"),
72389
- AST7.tsTypeParameterInstantiation([AST7.tsTypeQuery(AST7.identifier(name))])
72390
- );
72391
- }
72392
-
72393
- // src/codegen/generators/typescript/addReferencedInputTypes.ts
72394
- var AST8 = recast8.types.builders;
72395
72161
  function addReferencedInputTypes(config, filepath, body, visitedTypes, missingScalars, rootType) {
72396
72162
  const { type } = unwrapType(config, rootType);
72397
- if (graphql19.isScalarType(type)) {
72163
+ if (graphql18.isScalarType(type)) {
72398
72164
  return;
72399
72165
  }
72400
72166
  if (visitedTypes.has(type.name)) {
72401
72167
  return;
72402
72168
  }
72403
- if (graphql19.isUnionType(type)) {
72169
+ if (graphql18.isUnionType(type)) {
72404
72170
  throw new HoudiniError({ filepath, message: "Input Unions are not supported yet. Sorry!" });
72405
72171
  }
72406
72172
  visitedTypes.add(type.name);
72407
- if (graphql19.isEnumType(type)) {
72173
+ if (graphql18.isEnumType(type)) {
72408
72174
  ensureImports({
72409
72175
  config,
72410
72176
  body,
@@ -72418,21 +72184,37 @@ function addReferencedInputTypes(config, filepath, body, visitedTypes, missingSc
72418
72184
  for (const field of Object.values(type.getFields())) {
72419
72185
  addReferencedInputTypes(config, filepath, body, visitedTypes, missingScalars, field.type);
72420
72186
  members.push(
72421
- AST8.tsPropertySignature(
72422
- AST8.identifier(field.name),
72423
- AST8.tsTypeAnnotation(
72187
+ AST7.tsPropertySignature(
72188
+ AST7.identifier(field.name),
72189
+ AST7.tsTypeAnnotation(
72424
72190
  tsTypeReference(config, filepath, missingScalars, field, body)
72425
72191
  ),
72426
- graphql19.isNullableType(field.type)
72192
+ graphql18.isNullableType(field.type)
72427
72193
  )
72428
72194
  );
72429
72195
  }
72430
- body.push(AST8.tsTypeAliasDeclaration(AST8.identifier(type.name), AST8.tsTypeLiteral(members)));
72196
+ body.push(AST7.tsTypeAliasDeclaration(AST7.identifier(type.name), AST7.tsTypeLiteral(members)));
72431
72197
  }
72432
72198
 
72433
72199
  // src/codegen/generators/typescript/inlineType.ts
72434
- var graphql20 = __toESM(require("graphql"), 1);
72200
+ var graphql19 = __toESM(require("graphql"), 1);
72435
72201
  var recast9 = __toESM(require_main2(), 1);
72202
+
72203
+ // src/codegen/generators/comments/jsdoc.ts
72204
+ var recast8 = __toESM(require_main2(), 1);
72205
+ var AST8 = recast8.types.builders;
72206
+ function jsdocComment(text, deprecated) {
72207
+ let commentContent = `*
72208
+ * ${text}
72209
+ `;
72210
+ if (deprecated) {
72211
+ commentContent = `${commentContent} * @deprecated ${deprecated}
72212
+ `;
72213
+ }
72214
+ return AST8.commentBlock(commentContent, true);
72215
+ }
72216
+
72217
+ // src/codegen/generators/typescript/inlineType.ts
72436
72218
  var AST9 = recast9.types.builders;
72437
72219
  var fragmentKey2 = " $fragments";
72438
72220
  function inlineType({
@@ -72453,7 +72235,7 @@ function inlineType({
72453
72235
  const { type, wrappers } = unwrapType(config, rootType);
72454
72236
  let result;
72455
72237
  let forceNullable = false;
72456
- if (graphql20.isScalarType(type)) {
72238
+ if (graphql19.isScalarType(type)) {
72457
72239
  result = scalarPropertyValue(
72458
72240
  config,
72459
72241
  filepath,
@@ -72462,7 +72244,7 @@ function inlineType({
72462
72244
  body,
72463
72245
  field
72464
72246
  );
72465
- } else if (graphql20.isEnumType(type)) {
72247
+ } else if (graphql19.isEnumType(type)) {
72466
72248
  ensureImports({
72467
72249
  config,
72468
72250
  body,
@@ -72487,11 +72269,11 @@ function inlineType({
72487
72269
  for (const selection of selections) {
72488
72270
  if (selection.kind === "InlineFragment" && selection.typeCondition) {
72489
72271
  const fragmentType = config.schema.getType(selection.typeCondition.name.value);
72490
- if (!graphql20.isInterfaceType(type) && !graphql20.isUnionType(type)) {
72272
+ if (!graphql19.isInterfaceType(type) && !graphql19.isUnionType(type)) {
72491
72273
  selectedFields.push(...selection.selectionSet.selections);
72492
72274
  continue;
72493
72275
  }
72494
- if (!graphql20.isInterfaceType(fragmentType) && !graphql20.isUnionType(fragmentType)) {
72276
+ if (!graphql19.isInterfaceType(fragmentType) && !graphql19.isUnionType(fragmentType)) {
72495
72277
  if (!inlineFragments[fragmentType.name]) {
72496
72278
  inlineFragments[fragmentType.name] = [];
72497
72279
  }
@@ -72583,6 +72365,11 @@ function inlineType({
72583
72365
  if (allOptional) {
72584
72366
  prop.optional = true;
72585
72367
  }
72368
+ if (field2.description || field2.deprecationReason) {
72369
+ prop.comments = [
72370
+ jsdocComment(field2.description ?? "", field2.deprecationReason ?? void 0)
72371
+ ];
72372
+ }
72586
72373
  return prop;
72587
72374
  })
72588
72375
  ]);
@@ -72634,7 +72421,7 @@ function inlineType({
72634
72421
  }
72635
72422
  }
72636
72423
  }
72637
- if (objectType.type === "TSTypeLiteral" && !graphql20.isInterfaceType(fragmentRootType) && !graphql20.isUnionType(fragmentRootType)) {
72424
+ if (objectType.type === "TSTypeLiteral" && !graphql19.isInterfaceType(fragmentRootType) && !graphql19.isUnionType(fragmentRootType)) {
72638
72425
  const existingTypenameIndex = objectType.members.findIndex(
72639
72426
  (member) => member.type === "TSPropertySignature" && member.key.type === "Identifier" && member.key.name === "__typename"
72640
72427
  );
@@ -72659,11 +72446,11 @@ function inlineType({
72659
72446
  ];
72660
72447
  }
72661
72448
  let coveredTypenames;
72662
- if (graphql20.isInterfaceType(fragmentRootType)) {
72449
+ if (graphql19.isInterfaceType(fragmentRootType)) {
72663
72450
  coveredTypenames = interfaceCoveredTypenames(fragmentRootType);
72664
- } else if (graphql20.isUnionType(fragmentRootType)) {
72451
+ } else if (graphql19.isUnionType(fragmentRootType)) {
72665
72452
  coveredTypenames = fragmentRootType.getTypes().map((type2) => type2.name);
72666
- } else if (graphql20.isObjectType(fragmentRootType)) {
72453
+ } else if (graphql19.isObjectType(fragmentRootType)) {
72667
72454
  coveredTypenames = [fragmentRootType.name];
72668
72455
  } else {
72669
72456
  throw Error("unreachable code");
@@ -72699,7 +72486,7 @@ function inlineType({
72699
72486
  );
72700
72487
  }
72701
72488
  );
72702
- const parentIsUnionOrInterface = !graphql20.isInterfaceType(type) && !graphql20.isUnionType(type);
72489
+ const parentIsUnionOrInterface = !graphql19.isInterfaceType(type) && !graphql19.isUnionType(type);
72703
72490
  const possibleTypenames = parentIsUnionOrInterface ? [parent.name] : config.schema.getPossibleTypes(type).map((type2) => type2.name);
72704
72491
  const coveredTypenames = new Set(
72705
72492
  Object.values(inlineFragmentSelections).flatMap((sel) => sel.coveredTypenames)
@@ -72766,7 +72553,7 @@ function selectionTypeInfo(schema, filepath, rootType, selection) {
72766
72553
  },
72767
72554
  type: schema.getType("String")
72768
72555
  };
72769
- } else if (graphql20.isNonNullType(rootType) && "getFields" in rootType.ofType) {
72556
+ } else if (graphql19.isNonNullType(rootType) && "getFields" in rootType.ofType) {
72770
72557
  fields = rootType.ofType.getFields();
72771
72558
  } else {
72772
72559
  fields = rootType.getFields();
@@ -72778,7 +72565,7 @@ function selectionTypeInfo(schema, filepath, rootType, selection) {
72778
72565
  message: `Could not find type information for field ${rootType.toString()}.${selectionName} ${field}`
72779
72566
  });
72780
72567
  }
72781
- const fieldType = graphql20.getNamedType(field.type);
72568
+ const fieldType = graphql19.getNamedType(field.type);
72782
72569
  if (!fieldType) {
72783
72570
  throw new HoudiniError({
72784
72571
  filepath,
@@ -73286,7 +73073,7 @@ async function generateFragmentTypeDefs(config, filepath, body, selections, defi
73286
73073
  }
73287
73074
 
73288
73075
  // src/codegen/generators/typescript/imperativeTypeDef.ts
73289
- var graphql21 = __toESM(require("graphql"), 1);
73076
+ var graphql20 = __toESM(require("graphql"), 1);
73290
73077
  var recast12 = __toESM(require_main2(), 1);
73291
73078
  var AST12 = recast12.types.builders;
73292
73079
  async function imperativeCacheTypef(config, docs) {
@@ -73338,7 +73125,7 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
73338
73125
  const operationTypes = [config.schema.getMutationType(), config.schema.getSubscriptionType()].filter(Boolean).map((type) => type?.name);
73339
73126
  const visitedTypes = /* @__PURE__ */ new Set();
73340
73127
  const types16 = Object.values(config.schema.getTypeMap()).filter(
73341
- (type) => !graphql21.isAbstractType(type) && !graphql21.isScalarType(type) && !graphql21.isEnumType(type) && !graphql21.isInputObjectType(type) && !type.name.startsWith("__") && !operationTypes.includes(type.name)
73128
+ (type) => !graphql20.isAbstractType(type) && !graphql20.isScalarType(type) && !graphql20.isEnumType(type) && !graphql20.isInputObjectType(type) && !type.name.startsWith("__") && !operationTypes.includes(type.name)
73342
73129
  );
73343
73130
  const fragmentMap = fragmentListMap(
73344
73131
  config,
@@ -73355,7 +73142,7 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
73355
73142
  }
73356
73143
  let idFields = AST12.tsNeverKeyword();
73357
73144
  const keys2 = keyFieldsForType(config.configFile, type.name);
73358
- if (graphql21.isObjectType(type) && keys2.length > 0 && keys2.every((key) => type.getFields()[key])) {
73145
+ if (graphql20.isObjectType(type) && keys2.length > 0 && keys2.every((key) => type.getFields()[key])) {
73359
73146
  idFields = AST12.tsTypeLiteral(
73360
73147
  keys2.map((key) => {
73361
73148
  const fieldType = type.getFields()[key];
@@ -73382,13 +73169,13 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
73382
73169
  idFields = AST12.tsTypeLiteral([]);
73383
73170
  }
73384
73171
  let fields = AST12.tsTypeLiteral([]);
73385
- if (graphql21.isObjectType(type)) {
73172
+ if (graphql20.isObjectType(type)) {
73386
73173
  fields = AST12.tsTypeLiteral(
73387
73174
  Object.entries(type.getFields()).map(
73388
73175
  ([key, fieldType]) => {
73389
73176
  const unwrapped = unwrapType(config, fieldType.type);
73390
73177
  let typeOptions = AST12.tsUnionType([]);
73391
- if (graphql21.isScalarType(unwrapped.type)) {
73178
+ if (graphql20.isScalarType(unwrapped.type)) {
73392
73179
  typeOptions.types.push(
73393
73180
  scalarPropertyValue(
73394
73181
  config,
@@ -73402,11 +73189,11 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
73402
73189
  }
73403
73190
  )
73404
73191
  );
73405
- } else if (graphql21.isEnumType(unwrapped.type)) {
73192
+ } else if (graphql20.isEnumType(unwrapped.type)) {
73406
73193
  typeOptions.types.push(
73407
73194
  AST12.tsTypeReference(AST12.identifier(unwrapped.type.name))
73408
73195
  );
73409
- } else if (!graphql21.isAbstractType(unwrapped.type)) {
73196
+ } else if (!graphql20.isAbstractType(unwrapped.type)) {
73410
73197
  typeOptions.types.push(record(unwrapped.type.name));
73411
73198
  } else {
73412
73199
  typeOptions.types.push(
@@ -73502,7 +73289,7 @@ function listDefinitions(config, filepath, body, docs) {
73502
73289
  const lists = [];
73503
73290
  const visitedLists = /* @__PURE__ */ new Set();
73504
73291
  for (const doc of docs) {
73505
- graphql21.visit(doc.document, {
73292
+ graphql20.visit(doc.document, {
73506
73293
  Directive(node, key, parent2, path3, ancestors) {
73507
73294
  if (![config.listDirective, config.paginateDirective].includes(node.name.value)) {
73508
73295
  return;
@@ -73524,7 +73311,7 @@ function listDefinitions(config, filepath, body, docs) {
73524
73311
  const targetFieldDefinition = parentType.getFields()[targetField.name.value];
73525
73312
  const { type: listType } = unwrapType(config, targetFieldDefinition.type);
73526
73313
  const possibleTypes = [];
73527
- if (graphql21.isAbstractType(listType)) {
73314
+ if (graphql20.isAbstractType(listType)) {
73528
73315
  possibleTypes.push(
73529
73316
  ...config.schema.getPossibleTypes(listType).map((possible) => possible.name)
73530
73317
  );
@@ -73686,7 +73473,7 @@ async function typescriptGenerator(config, docs) {
73686
73473
  }
73687
73474
 
73688
73475
  // src/codegen/generators/persistedQueries/index.ts
73689
- var graphql22 = __toESM(require("graphql"), 1);
73476
+ var graphql21 = __toESM(require("graphql"), 1);
73690
73477
  async function persistOutputGenerator(config, docs) {
73691
73478
  if (!config.persistedQueriesPath.endsWith(".json")) {
73692
73479
  throw new Error('Can write Persisted Queries only in a ".json" file.');
@@ -73696,8 +73483,8 @@ async function persistOutputGenerator(config, docs) {
73696
73483
  if (!generateArtifact) {
73697
73484
  return acc;
73698
73485
  }
73699
- let rawString = graphql22.print(
73700
- graphql22.visit(document, {
73486
+ let rawString = graphql21.print(
73487
+ graphql21.visit(document, {
73701
73488
  Directive(node) {
73702
73489
  if (config.isInternalDirective(node.name.value)) {
73703
73490
  return null;
@@ -73706,7 +73493,7 @@ async function persistOutputGenerator(config, docs) {
73706
73493
  })
73707
73494
  );
73708
73495
  const operations = document.definitions.filter(
73709
- ({ kind }) => kind === graphql22.Kind.OPERATION_DEFINITION
73496
+ ({ kind }) => kind === graphql21.Kind.OPERATION_DEFINITION
73710
73497
  );
73711
73498
  if (operations.length > 0 && operations[0].kind === "OperationDefinition") {
73712
73499
  if (artifact) {
@@ -73721,33 +73508,45 @@ async function persistOutputGenerator(config, docs) {
73721
73508
  }
73722
73509
 
73723
73510
  // src/codegen/generators/definitions/index.ts
73724
- var graphql24 = __toESM(require("graphql"), 1);
73511
+ var graphql23 = __toESM(require("graphql"), 1);
73725
73512
 
73726
73513
  // src/codegen/generators/definitions/enums.ts
73727
- var graphql23 = __toESM(require("graphql"), 1);
73514
+ var graphql22 = __toESM(require("graphql"), 1);
73728
73515
  var recast13 = __toESM(require_main2(), 1);
73729
73516
  var AST13 = recast13.types.builders;
73730
73517
  async function definitionsGenerator(config) {
73731
- const enums = graphql23.parse(graphql23.printSchema(config.schema)).definitions.filter(
73518
+ const enums = graphql22.parse(graphql22.printSchema(config.schema)).definitions.filter(
73732
73519
  (definition) => definition.kind === "EnumTypeDefinition"
73733
73520
  ).filter((def) => !config.isInternalEnum(def));
73734
73521
  const { code: runtimeDefinitions } = await printJS(
73735
73522
  AST13.program(
73736
73523
  enums.map((defn) => {
73737
73524
  const name = defn.name.value;
73738
- return moduleExport(
73525
+ const declaration = moduleExport(
73739
73526
  config,
73740
73527
  name,
73741
73528
  AST13.objectExpression(
73742
73529
  defn.values?.map((value) => {
73743
73530
  const str = value.name.value;
73744
- return AST13.objectProperty(
73531
+ const prop = AST13.objectProperty(
73745
73532
  AST13.stringLiteral(str),
73746
73533
  AST13.stringLiteral(str)
73747
73534
  );
73535
+ const deprecationReason = value.directives?.find((d3) => d3.name.value === "deprecated")?.arguments?.find((a2) => a2.name.value === "reason")?.value?.value;
73536
+ if (value.description || deprecationReason)
73537
+ prop.comments = [
73538
+ jsdocComment(value.description?.value ?? "", deprecationReason)
73539
+ ];
73540
+ return prop;
73748
73541
  }) || []
73749
73542
  )
73750
73543
  );
73544
+ if (defn.description) {
73545
+ declaration.comments = [
73546
+ AST13.commentBlock(`* ${defn.description.value} `, true, false)
73547
+ ];
73548
+ }
73549
+ return declaration;
73751
73550
  })
73752
73551
  )
73753
73552
  );
@@ -73756,11 +73555,19 @@ type ValuesOf<T> = T[keyof T]
73756
73555
  ` + enums.sort((a2, b2) => a2.name.value.localeCompare(b2.name.value)).map((definition) => {
73757
73556
  const name = definition.name.value;
73758
73557
  const values = definition.values;
73759
- return `
73558
+ let jsdoc = "";
73559
+ if (definition.description) {
73560
+ jsdoc = `
73561
+ /** ${definition.description.value} */`;
73562
+ }
73563
+ return `${jsdoc}
73760
73564
  export declare const ${name}: {
73761
- ${values?.map((value) => ` readonly ${value.name.value}: "${value.name.value}";`).join("\n")}
73565
+ ${values?.map(
73566
+ (value) => (value.description ? ` /** ${value.description.value} */
73567
+ ` : "") + ` readonly ${value.name.value}: "${value.name.value}";`
73568
+ ).join("\n")}
73762
73569
  }
73763
-
73570
+ ${jsdoc}
73764
73571
  export type ${name}$options = ValuesOf<typeof ${name}>
73765
73572
  `;
73766
73573
  }).join("");
@@ -73780,7 +73587,7 @@ async function schemaGenerator(config) {
73780
73587
  await Promise.all([
73781
73588
  fs_exports.writeFile(
73782
73589
  config.definitionsSchemaPath,
73783
- config.localSchema ? graphql24.printSchema(config.schema) : config.newSchema
73590
+ config.localSchema ? graphql23.printSchema(config.schema) : config.newSchema
73784
73591
  ),
73785
73592
  fs_exports.writeFile(config.definitionsDocumentsPath, config.newDocuments),
73786
73593
  definitionsGenerator(config)
@@ -73825,7 +73632,7 @@ async function writeIndexFile2(config, docs) {
73825
73632
  }
73826
73633
 
73827
73634
  // ../../node_modules/.pnpm/@graphql-tools+utils@10.0.6_graphql@15.5.0/node_modules/@graphql-tools/utils/esm/helpers.js
73828
- var import_graphql32 = require("graphql");
73635
+ var import_graphql33 = require("graphql");
73829
73636
  function compareStrings2(a2, b2) {
73830
73637
  if (String(a2) < String(b2)) {
73831
73638
  return -1;
@@ -73861,7 +73668,7 @@ function isSome2(input) {
73861
73668
  }
73862
73669
 
73863
73670
  // ../../node_modules/.pnpm/@graphql-tools+utils@10.0.6_graphql@15.5.0/node_modules/@graphql-tools/utils/esm/inspect.js
73864
- var import_graphql33 = require("graphql");
73671
+ var import_graphql34 = require("graphql");
73865
73672
  var MAX_RECURSIVE_DEPTH2 = 3;
73866
73673
  function inspect2(value) {
73867
73674
  return formatValue2(value, []);
@@ -73879,7 +73686,7 @@ function formatValue2(value, seenValues) {
73879
73686
  }
73880
73687
  }
73881
73688
  function formatError2(value) {
73882
- if (value instanceof import_graphql33.GraphQLError) {
73689
+ if (value instanceof import_graphql34.GraphQLError) {
73883
73690
  return value.toString();
73884
73691
  }
73885
73692
  return `${value.name}: ${value.message};
@@ -73962,43 +73769,43 @@ function getDirectivesInExtensions2(node, pathToDirectivesInExtensions = ["direc
73962
73769
  }
73963
73770
 
73964
73771
  // ../../node_modules/.pnpm/@graphql-tools+utils@10.0.6_graphql@15.5.0/node_modules/@graphql-tools/utils/esm/print-schema-with-directives.js
73965
- var import_graphql37 = require("graphql");
73772
+ var import_graphql38 = require("graphql");
73966
73773
 
73967
73774
  // ../../node_modules/.pnpm/@graphql-tools+utils@10.0.6_graphql@15.5.0/node_modules/@graphql-tools/utils/esm/astFromType.js
73968
- var import_graphql34 = require("graphql");
73775
+ var import_graphql35 = require("graphql");
73969
73776
  function astFromType2(type) {
73970
- if ((0, import_graphql34.isNonNullType)(type)) {
73777
+ if ((0, import_graphql35.isNonNullType)(type)) {
73971
73778
  const innerType = astFromType2(type.ofType);
73972
- if (innerType.kind === import_graphql34.Kind.NON_NULL_TYPE) {
73779
+ if (innerType.kind === import_graphql35.Kind.NON_NULL_TYPE) {
73973
73780
  throw new Error(`Invalid type node ${inspect2(type)}. Inner type of non-null type cannot be a non-null type.`);
73974
73781
  }
73975
73782
  return {
73976
- kind: import_graphql34.Kind.NON_NULL_TYPE,
73783
+ kind: import_graphql35.Kind.NON_NULL_TYPE,
73977
73784
  type: innerType
73978
73785
  };
73979
- } else if ((0, import_graphql34.isListType)(type)) {
73786
+ } else if ((0, import_graphql35.isListType)(type)) {
73980
73787
  return {
73981
- kind: import_graphql34.Kind.LIST_TYPE,
73788
+ kind: import_graphql35.Kind.LIST_TYPE,
73982
73789
  type: astFromType2(type.ofType)
73983
73790
  };
73984
73791
  }
73985
73792
  return {
73986
- kind: import_graphql34.Kind.NAMED_TYPE,
73793
+ kind: import_graphql35.Kind.NAMED_TYPE,
73987
73794
  name: {
73988
- kind: import_graphql34.Kind.NAME,
73795
+ kind: import_graphql35.Kind.NAME,
73989
73796
  value: type.name
73990
73797
  }
73991
73798
  };
73992
73799
  }
73993
73800
 
73994
73801
  // ../../node_modules/.pnpm/@graphql-tools+utils@10.0.6_graphql@15.5.0/node_modules/@graphql-tools/utils/esm/astFromValue.js
73995
- var import_graphql36 = require("graphql");
73802
+ var import_graphql37 = require("graphql");
73996
73803
 
73997
73804
  // ../../node_modules/.pnpm/@graphql-tools+utils@10.0.6_graphql@15.5.0/node_modules/@graphql-tools/utils/esm/astFromValueUntyped.js
73998
- var import_graphql35 = require("graphql");
73805
+ var import_graphql36 = require("graphql");
73999
73806
  function astFromValueUntyped2(value) {
74000
73807
  if (value === null) {
74001
- return { kind: import_graphql35.Kind.NULL };
73808
+ return { kind: import_graphql36.Kind.NULL };
74002
73809
  }
74003
73810
  if (value === void 0) {
74004
73811
  return null;
@@ -74011,7 +73818,7 @@ function astFromValueUntyped2(value) {
74011
73818
  valuesNodes.push(itemNode);
74012
73819
  }
74013
73820
  }
74014
- return { kind: import_graphql35.Kind.LIST, values: valuesNodes };
73821
+ return { kind: import_graphql36.Kind.LIST, values: valuesNodes };
74015
73822
  }
74016
73823
  if (typeof value === "object") {
74017
73824
  const fieldNodes = [];
@@ -74020,26 +73827,26 @@ function astFromValueUntyped2(value) {
74020
73827
  const ast = astFromValueUntyped2(fieldValue);
74021
73828
  if (ast) {
74022
73829
  fieldNodes.push({
74023
- kind: import_graphql35.Kind.OBJECT_FIELD,
74024
- name: { kind: import_graphql35.Kind.NAME, value: fieldName },
73830
+ kind: import_graphql36.Kind.OBJECT_FIELD,
73831
+ name: { kind: import_graphql36.Kind.NAME, value: fieldName },
74025
73832
  value: ast
74026
73833
  });
74027
73834
  }
74028
73835
  }
74029
- return { kind: import_graphql35.Kind.OBJECT, fields: fieldNodes };
73836
+ return { kind: import_graphql36.Kind.OBJECT, fields: fieldNodes };
74030
73837
  }
74031
73838
  if (typeof value === "boolean") {
74032
- return { kind: import_graphql35.Kind.BOOLEAN, value };
73839
+ return { kind: import_graphql36.Kind.BOOLEAN, value };
74033
73840
  }
74034
73841
  if (typeof value === "bigint") {
74035
- return { kind: import_graphql35.Kind.INT, value: String(value) };
73842
+ return { kind: import_graphql36.Kind.INT, value: String(value) };
74036
73843
  }
74037
73844
  if (typeof value === "number" && isFinite(value)) {
74038
73845
  const stringNum = String(value);
74039
- return integerStringRegExp2.test(stringNum) ? { kind: import_graphql35.Kind.INT, value: stringNum } : { kind: import_graphql35.Kind.FLOAT, value: stringNum };
73846
+ return integerStringRegExp2.test(stringNum) ? { kind: import_graphql36.Kind.INT, value: stringNum } : { kind: import_graphql36.Kind.FLOAT, value: stringNum };
74040
73847
  }
74041
73848
  if (typeof value === "string") {
74042
- return { kind: import_graphql35.Kind.STRING, value };
73849
+ return { kind: import_graphql36.Kind.STRING, value };
74043
73850
  }
74044
73851
  throw new TypeError(`Cannot convert value to AST: ${value}.`);
74045
73852
  }
@@ -74047,20 +73854,20 @@ var integerStringRegExp2 = /^-?(?:0|[1-9][0-9]*)$/;
74047
73854
 
74048
73855
  // ../../node_modules/.pnpm/@graphql-tools+utils@10.0.6_graphql@15.5.0/node_modules/@graphql-tools/utils/esm/astFromValue.js
74049
73856
  function astFromValue2(value, type) {
74050
- if ((0, import_graphql36.isNonNullType)(type)) {
73857
+ if ((0, import_graphql37.isNonNullType)(type)) {
74051
73858
  const astValue = astFromValue2(value, type.ofType);
74052
- if (astValue?.kind === import_graphql36.Kind.NULL) {
73859
+ if (astValue?.kind === import_graphql37.Kind.NULL) {
74053
73860
  return null;
74054
73861
  }
74055
73862
  return astValue;
74056
73863
  }
74057
73864
  if (value === null) {
74058
- return { kind: import_graphql36.Kind.NULL };
73865
+ return { kind: import_graphql37.Kind.NULL };
74059
73866
  }
74060
73867
  if (value === void 0) {
74061
73868
  return null;
74062
73869
  }
74063
- if ((0, import_graphql36.isListType)(type)) {
73870
+ if ((0, import_graphql37.isListType)(type)) {
74064
73871
  const itemType = type.ofType;
74065
73872
  if (isIterableObject(value)) {
74066
73873
  const valuesNodes = [];
@@ -74070,11 +73877,11 @@ function astFromValue2(value, type) {
74070
73877
  valuesNodes.push(itemNode);
74071
73878
  }
74072
73879
  }
74073
- return { kind: import_graphql36.Kind.LIST, values: valuesNodes };
73880
+ return { kind: import_graphql37.Kind.LIST, values: valuesNodes };
74074
73881
  }
74075
73882
  return astFromValue2(value, itemType);
74076
73883
  }
74077
- if ((0, import_graphql36.isInputObjectType)(type)) {
73884
+ if ((0, import_graphql37.isInputObjectType)(type)) {
74078
73885
  if (!isObjectLike(value)) {
74079
73886
  return null;
74080
73887
  }
@@ -74083,24 +73890,24 @@ function astFromValue2(value, type) {
74083
73890
  const fieldValue = astFromValue2(value[field.name], field.type);
74084
73891
  if (fieldValue) {
74085
73892
  fieldNodes.push({
74086
- kind: import_graphql36.Kind.OBJECT_FIELD,
74087
- name: { kind: import_graphql36.Kind.NAME, value: field.name },
73893
+ kind: import_graphql37.Kind.OBJECT_FIELD,
73894
+ name: { kind: import_graphql37.Kind.NAME, value: field.name },
74088
73895
  value: fieldValue
74089
73896
  });
74090
73897
  }
74091
73898
  }
74092
- return { kind: import_graphql36.Kind.OBJECT, fields: fieldNodes };
73899
+ return { kind: import_graphql37.Kind.OBJECT, fields: fieldNodes };
74093
73900
  }
74094
- if ((0, import_graphql36.isLeafType)(type)) {
73901
+ if ((0, import_graphql37.isLeafType)(type)) {
74095
73902
  const serialized = type.serialize(value);
74096
73903
  if (serialized == null) {
74097
73904
  return null;
74098
73905
  }
74099
- if ((0, import_graphql36.isEnumType)(type)) {
74100
- return { kind: import_graphql36.Kind.ENUM, value: serialized };
73906
+ if ((0, import_graphql37.isEnumType)(type)) {
73907
+ return { kind: import_graphql37.Kind.ENUM, value: serialized };
74101
73908
  }
74102
73909
  if (type.name === "ID" && typeof serialized === "string" && integerStringRegExp3.test(serialized)) {
74103
- return { kind: import_graphql36.Kind.INT, value: serialized };
73910
+ return { kind: import_graphql37.Kind.INT, value: serialized };
74104
73911
  }
74105
73912
  return astFromValueUntyped2(serialized);
74106
73913
  }
@@ -74156,36 +73963,36 @@ function getDocumentNodeFromSchema2(schema, options = {}) {
74156
73963
  const definitions = schemaNode != null ? [schemaNode] : [];
74157
73964
  const directives = schema.getDirectives();
74158
73965
  for (const directive of directives) {
74159
- if ((0, import_graphql37.isSpecifiedDirective)(directive)) {
73966
+ if ((0, import_graphql38.isSpecifiedDirective)(directive)) {
74160
73967
  continue;
74161
73968
  }
74162
73969
  definitions.push(astFromDirective2(directive, schema, pathToDirectivesInExtensions));
74163
73970
  }
74164
73971
  for (const typeName in typesMap) {
74165
73972
  const type = typesMap[typeName];
74166
- const isPredefinedScalar = (0, import_graphql37.isSpecifiedScalarType)(type);
74167
- const isIntrospection = (0, import_graphql37.isIntrospectionType)(type);
73973
+ const isPredefinedScalar = (0, import_graphql38.isSpecifiedScalarType)(type);
73974
+ const isIntrospection = (0, import_graphql38.isIntrospectionType)(type);
74168
73975
  if (isPredefinedScalar || isIntrospection) {
74169
73976
  continue;
74170
73977
  }
74171
- if ((0, import_graphql37.isObjectType)(type)) {
73978
+ if ((0, import_graphql38.isObjectType)(type)) {
74172
73979
  definitions.push(astFromObjectType2(type, schema, pathToDirectivesInExtensions));
74173
- } else if ((0, import_graphql37.isInterfaceType)(type)) {
73980
+ } else if ((0, import_graphql38.isInterfaceType)(type)) {
74174
73981
  definitions.push(astFromInterfaceType2(type, schema, pathToDirectivesInExtensions));
74175
- } else if ((0, import_graphql37.isUnionType)(type)) {
73982
+ } else if ((0, import_graphql38.isUnionType)(type)) {
74176
73983
  definitions.push(astFromUnionType2(type, schema, pathToDirectivesInExtensions));
74177
- } else if ((0, import_graphql37.isInputObjectType)(type)) {
73984
+ } else if ((0, import_graphql38.isInputObjectType)(type)) {
74178
73985
  definitions.push(astFromInputObjectType2(type, schema, pathToDirectivesInExtensions));
74179
- } else if ((0, import_graphql37.isEnumType)(type)) {
73986
+ } else if ((0, import_graphql38.isEnumType)(type)) {
74180
73987
  definitions.push(astFromEnumType2(type, schema, pathToDirectivesInExtensions));
74181
- } else if ((0, import_graphql37.isScalarType)(type)) {
73988
+ } else if ((0, import_graphql38.isScalarType)(type)) {
74182
73989
  definitions.push(astFromScalarType2(type, schema, pathToDirectivesInExtensions));
74183
73990
  } else {
74184
73991
  throw new Error(`Unknown type ${type}.`);
74185
73992
  }
74186
73993
  }
74187
73994
  return {
74188
- kind: import_graphql37.Kind.DOCUMENT,
73995
+ kind: import_graphql38.Kind.DOCUMENT,
74189
73996
  definitions
74190
73997
  };
74191
73998
  }
@@ -74220,7 +74027,7 @@ function astFromSchema2(schema, pathToDirectivesInExtensions) {
74220
74027
  operationTypeDefinitionNode.type = rootTypeAST;
74221
74028
  } else {
74222
74029
  operationTypeMap.set(operationTypeNode, {
74223
- kind: import_graphql37.Kind.OPERATION_TYPE_DEFINITION,
74030
+ kind: import_graphql38.Kind.OPERATION_TYPE_DEFINITION,
74224
74031
  operation: operationTypeNode,
74225
74032
  type: rootTypeAST
74226
74033
  });
@@ -74233,12 +74040,12 @@ function astFromSchema2(schema, pathToDirectivesInExtensions) {
74233
74040
  return null;
74234
74041
  }
74235
74042
  const schemaNode = {
74236
- kind: operationTypes != null ? import_graphql37.Kind.SCHEMA_DEFINITION : import_graphql37.Kind.SCHEMA_EXTENSION,
74043
+ kind: operationTypes != null ? import_graphql38.Kind.SCHEMA_DEFINITION : import_graphql38.Kind.SCHEMA_EXTENSION,
74237
74044
  operationTypes,
74238
74045
  directives
74239
74046
  };
74240
74047
  schemaNode.description = schema.astNode?.description ?? schema.description != null ? {
74241
- kind: import_graphql37.Kind.STRING,
74048
+ kind: import_graphql38.Kind.STRING,
74242
74049
  value: schema.description,
74243
74050
  block: true
74244
74051
  } : void 0;
@@ -74246,19 +74053,19 @@ function astFromSchema2(schema, pathToDirectivesInExtensions) {
74246
74053
  }
74247
74054
  function astFromDirective2(directive, schema, pathToDirectivesInExtensions) {
74248
74055
  return {
74249
- kind: import_graphql37.Kind.DIRECTIVE_DEFINITION,
74056
+ kind: import_graphql38.Kind.DIRECTIVE_DEFINITION,
74250
74057
  description: directive.astNode?.description ?? (directive.description ? {
74251
- kind: import_graphql37.Kind.STRING,
74058
+ kind: import_graphql38.Kind.STRING,
74252
74059
  value: directive.description
74253
74060
  } : void 0),
74254
74061
  name: {
74255
- kind: import_graphql37.Kind.NAME,
74062
+ kind: import_graphql38.Kind.NAME,
74256
74063
  value: directive.name
74257
74064
  },
74258
74065
  arguments: directive.args?.map((arg) => astFromArg2(arg, schema, pathToDirectivesInExtensions)),
74259
74066
  repeatable: directive.isRepeatable,
74260
74067
  locations: directive.locations?.map((location) => ({
74261
- kind: import_graphql37.Kind.NAME,
74068
+ kind: import_graphql38.Kind.NAME,
74262
74069
  value: location
74263
74070
  })) || []
74264
74071
  };
@@ -74308,14 +74115,14 @@ function getDeprecatableDirectiveNodes2(entity, schema, pathToDirectivesInExtens
74308
74115
  }
74309
74116
  function astFromArg2(arg, schema, pathToDirectivesInExtensions) {
74310
74117
  return {
74311
- kind: import_graphql37.Kind.INPUT_VALUE_DEFINITION,
74118
+ kind: import_graphql38.Kind.INPUT_VALUE_DEFINITION,
74312
74119
  description: arg.astNode?.description ?? (arg.description ? {
74313
- kind: import_graphql37.Kind.STRING,
74120
+ kind: import_graphql38.Kind.STRING,
74314
74121
  value: arg.description,
74315
74122
  block: true
74316
74123
  } : void 0),
74317
74124
  name: {
74318
- kind: import_graphql37.Kind.NAME,
74125
+ kind: import_graphql38.Kind.NAME,
74319
74126
  value: arg.name
74320
74127
  },
74321
74128
  type: astFromType2(arg.type),
@@ -74325,14 +74132,14 @@ function astFromArg2(arg, schema, pathToDirectivesInExtensions) {
74325
74132
  }
74326
74133
  function astFromObjectType2(type, schema, pathToDirectivesInExtensions) {
74327
74134
  return {
74328
- kind: import_graphql37.Kind.OBJECT_TYPE_DEFINITION,
74135
+ kind: import_graphql38.Kind.OBJECT_TYPE_DEFINITION,
74329
74136
  description: type.astNode?.description ?? (type.description ? {
74330
- kind: import_graphql37.Kind.STRING,
74137
+ kind: import_graphql38.Kind.STRING,
74331
74138
  value: type.description,
74332
74139
  block: true
74333
74140
  } : void 0),
74334
74141
  name: {
74335
- kind: import_graphql37.Kind.NAME,
74142
+ kind: import_graphql38.Kind.NAME,
74336
74143
  value: type.name
74337
74144
  },
74338
74145
  fields: Object.values(type.getFields()).map((field) => astFromField2(field, schema, pathToDirectivesInExtensions)),
@@ -74342,14 +74149,14 @@ function astFromObjectType2(type, schema, pathToDirectivesInExtensions) {
74342
74149
  }
74343
74150
  function astFromInterfaceType2(type, schema, pathToDirectivesInExtensions) {
74344
74151
  const node = {
74345
- kind: import_graphql37.Kind.INTERFACE_TYPE_DEFINITION,
74152
+ kind: import_graphql38.Kind.INTERFACE_TYPE_DEFINITION,
74346
74153
  description: type.astNode?.description ?? (type.description ? {
74347
- kind: import_graphql37.Kind.STRING,
74154
+ kind: import_graphql38.Kind.STRING,
74348
74155
  value: type.description,
74349
74156
  block: true
74350
74157
  } : void 0),
74351
74158
  name: {
74352
- kind: import_graphql37.Kind.NAME,
74159
+ kind: import_graphql38.Kind.NAME,
74353
74160
  value: type.name
74354
74161
  },
74355
74162
  fields: Object.values(type.getFields()).map((field) => astFromField2(field, schema, pathToDirectivesInExtensions)),
@@ -74362,14 +74169,14 @@ function astFromInterfaceType2(type, schema, pathToDirectivesInExtensions) {
74362
74169
  }
74363
74170
  function astFromUnionType2(type, schema, pathToDirectivesInExtensions) {
74364
74171
  return {
74365
- kind: import_graphql37.Kind.UNION_TYPE_DEFINITION,
74172
+ kind: import_graphql38.Kind.UNION_TYPE_DEFINITION,
74366
74173
  description: type.astNode?.description ?? (type.description ? {
74367
- kind: import_graphql37.Kind.STRING,
74174
+ kind: import_graphql38.Kind.STRING,
74368
74175
  value: type.description,
74369
74176
  block: true
74370
74177
  } : void 0),
74371
74178
  name: {
74372
- kind: import_graphql37.Kind.NAME,
74179
+ kind: import_graphql38.Kind.NAME,
74373
74180
  value: type.name
74374
74181
  },
74375
74182
  directives: getDirectiveNodes2(type, schema, pathToDirectivesInExtensions),
@@ -74378,14 +74185,14 @@ function astFromUnionType2(type, schema, pathToDirectivesInExtensions) {
74378
74185
  }
74379
74186
  function astFromInputObjectType2(type, schema, pathToDirectivesInExtensions) {
74380
74187
  return {
74381
- kind: import_graphql37.Kind.INPUT_OBJECT_TYPE_DEFINITION,
74188
+ kind: import_graphql38.Kind.INPUT_OBJECT_TYPE_DEFINITION,
74382
74189
  description: type.astNode?.description ?? (type.description ? {
74383
- kind: import_graphql37.Kind.STRING,
74190
+ kind: import_graphql38.Kind.STRING,
74384
74191
  value: type.description,
74385
74192
  block: true
74386
74193
  } : void 0),
74387
74194
  name: {
74388
- kind: import_graphql37.Kind.NAME,
74195
+ kind: import_graphql38.Kind.NAME,
74389
74196
  value: type.name
74390
74197
  },
74391
74198
  fields: Object.values(type.getFields()).map((field) => astFromInputField2(field, schema, pathToDirectivesInExtensions)),
@@ -74394,14 +74201,14 @@ function astFromInputObjectType2(type, schema, pathToDirectivesInExtensions) {
74394
74201
  }
74395
74202
  function astFromEnumType2(type, schema, pathToDirectivesInExtensions) {
74396
74203
  return {
74397
- kind: import_graphql37.Kind.ENUM_TYPE_DEFINITION,
74204
+ kind: import_graphql38.Kind.ENUM_TYPE_DEFINITION,
74398
74205
  description: type.astNode?.description ?? (type.description ? {
74399
- kind: import_graphql37.Kind.STRING,
74206
+ kind: import_graphql38.Kind.STRING,
74400
74207
  value: type.description,
74401
74208
  block: true
74402
74209
  } : void 0),
74403
74210
  name: {
74404
- kind: import_graphql37.Kind.NAME,
74211
+ kind: import_graphql38.Kind.NAME,
74405
74212
  value: type.name
74406
74213
  },
74407
74214
  values: Object.values(type.getValues()).map((value) => astFromEnumValue2(value, schema, pathToDirectivesInExtensions)),
@@ -74419,14 +74226,14 @@ function astFromScalarType2(type, schema, pathToDirectivesInExtensions) {
74419
74226
  directives.push(makeDirectiveNode2("specifiedBy", specifiedByArgs));
74420
74227
  }
74421
74228
  return {
74422
- kind: import_graphql37.Kind.SCALAR_TYPE_DEFINITION,
74229
+ kind: import_graphql38.Kind.SCALAR_TYPE_DEFINITION,
74423
74230
  description: type.astNode?.description ?? (type.description ? {
74424
- kind: import_graphql37.Kind.STRING,
74231
+ kind: import_graphql38.Kind.STRING,
74425
74232
  value: type.description,
74426
74233
  block: true
74427
74234
  } : void 0),
74428
74235
  name: {
74429
- kind: import_graphql37.Kind.NAME,
74236
+ kind: import_graphql38.Kind.NAME,
74430
74237
  value: type.name
74431
74238
  },
74432
74239
  directives
@@ -74434,14 +74241,14 @@ function astFromScalarType2(type, schema, pathToDirectivesInExtensions) {
74434
74241
  }
74435
74242
  function astFromField2(field, schema, pathToDirectivesInExtensions) {
74436
74243
  return {
74437
- kind: import_graphql37.Kind.FIELD_DEFINITION,
74244
+ kind: import_graphql38.Kind.FIELD_DEFINITION,
74438
74245
  description: field.astNode?.description ?? (field.description ? {
74439
- kind: import_graphql37.Kind.STRING,
74246
+ kind: import_graphql38.Kind.STRING,
74440
74247
  value: field.description,
74441
74248
  block: true
74442
74249
  } : void 0),
74443
74250
  name: {
74444
- kind: import_graphql37.Kind.NAME,
74251
+ kind: import_graphql38.Kind.NAME,
74445
74252
  value: field.name
74446
74253
  },
74447
74254
  arguments: field.args.map((arg) => astFromArg2(arg, schema, pathToDirectivesInExtensions)),
@@ -74451,14 +74258,14 @@ function astFromField2(field, schema, pathToDirectivesInExtensions) {
74451
74258
  }
74452
74259
  function astFromInputField2(field, schema, pathToDirectivesInExtensions) {
74453
74260
  return {
74454
- kind: import_graphql37.Kind.INPUT_VALUE_DEFINITION,
74261
+ kind: import_graphql38.Kind.INPUT_VALUE_DEFINITION,
74455
74262
  description: field.astNode?.description ?? (field.description ? {
74456
- kind: import_graphql37.Kind.STRING,
74263
+ kind: import_graphql38.Kind.STRING,
74457
74264
  value: field.description,
74458
74265
  block: true
74459
74266
  } : void 0),
74460
74267
  name: {
74461
- kind: import_graphql37.Kind.NAME,
74268
+ kind: import_graphql38.Kind.NAME,
74462
74269
  value: field.name
74463
74270
  },
74464
74271
  type: astFromType2(field.type),
@@ -74468,21 +74275,21 @@ function astFromInputField2(field, schema, pathToDirectivesInExtensions) {
74468
74275
  }
74469
74276
  function astFromEnumValue2(value, schema, pathToDirectivesInExtensions) {
74470
74277
  return {
74471
- kind: import_graphql37.Kind.ENUM_VALUE_DEFINITION,
74278
+ kind: import_graphql38.Kind.ENUM_VALUE_DEFINITION,
74472
74279
  description: value.astNode?.description ?? (value.description ? {
74473
- kind: import_graphql37.Kind.STRING,
74280
+ kind: import_graphql38.Kind.STRING,
74474
74281
  value: value.description,
74475
74282
  block: true
74476
74283
  } : void 0),
74477
74284
  name: {
74478
- kind: import_graphql37.Kind.NAME,
74285
+ kind: import_graphql38.Kind.NAME,
74479
74286
  value: value.name
74480
74287
  },
74481
74288
  directives: getDeprecatableDirectiveNodes2(value, schema, pathToDirectivesInExtensions)
74482
74289
  };
74483
74290
  }
74484
74291
  function makeDeprecatedDirective2(deprecationReason) {
74485
- return makeDirectiveNode2("deprecated", { reason: deprecationReason }, import_graphql37.GraphQLDeprecatedDirective);
74292
+ return makeDirectiveNode2("deprecated", { reason: deprecationReason }, import_graphql38.GraphQLDeprecatedDirective);
74486
74293
  }
74487
74294
  function makeDirectiveNode2(name, args, directive) {
74488
74295
  const directiveArguments = [];
@@ -74494,9 +74301,9 @@ function makeDirectiveNode2(name, args, directive) {
74494
74301
  const value = astFromValue2(argValue, arg.type);
74495
74302
  if (value) {
74496
74303
  directiveArguments.push({
74497
- kind: import_graphql37.Kind.ARGUMENT,
74304
+ kind: import_graphql38.Kind.ARGUMENT,
74498
74305
  name: {
74499
- kind: import_graphql37.Kind.NAME,
74306
+ kind: import_graphql38.Kind.NAME,
74500
74307
  value: argName
74501
74308
  },
74502
74309
  value
@@ -74510,9 +74317,9 @@ function makeDirectiveNode2(name, args, directive) {
74510
74317
  const value = astFromValueUntyped2(argValue);
74511
74318
  if (value) {
74512
74319
  directiveArguments.push({
74513
- kind: import_graphql37.Kind.ARGUMENT,
74320
+ kind: import_graphql38.Kind.ARGUMENT,
74514
74321
  name: {
74515
- kind: import_graphql37.Kind.NAME,
74322
+ kind: import_graphql38.Kind.NAME,
74516
74323
  value: argName
74517
74324
  },
74518
74325
  value
@@ -74521,9 +74328,9 @@ function makeDirectiveNode2(name, args, directive) {
74521
74328
  }
74522
74329
  }
74523
74330
  return {
74524
- kind: import_graphql37.Kind.DIRECTIVE,
74331
+ kind: import_graphql38.Kind.DIRECTIVE,
74525
74332
  name: {
74526
- kind: import_graphql37.Kind.NAME,
74333
+ kind: import_graphql38.Kind.NAME,
74527
74334
  value: name
74528
74335
  },
74529
74336
  arguments: directiveArguments
@@ -74546,7 +74353,7 @@ function makeDirectiveNodes2(schema, directiveValues) {
74546
74353
  }
74547
74354
 
74548
74355
  // ../../node_modules/.pnpm/@graphql-tools+utils@10.0.6_graphql@15.5.0/node_modules/@graphql-tools/utils/esm/comments.js
74549
- var import_graphql38 = require("graphql");
74356
+ var import_graphql39 = require("graphql");
74550
74357
  var MAX_LINE_LENGTH2 = 80;
74551
74358
  var commentsRegistry2 = {};
74552
74359
  function resetComments2() {
@@ -74791,7 +74598,7 @@ var printDocASTReducerWithComments2 = Object.keys(printDocASTReducer2).reduce((p
74791
74598
  }
74792
74599
  }), {});
74793
74600
  function printWithComments2(ast) {
74794
- return (0, import_graphql38.visit)(ast, printDocASTReducerWithComments2);
74601
+ return (0, import_graphql39.visit)(ast, printDocASTReducerWithComments2);
74795
74602
  }
74796
74603
  function isFieldDefinitionNode2(node) {
74797
74604
  return node.kind === "FieldDefinition";
@@ -74810,7 +74617,7 @@ function getLeadingCommentBlock2(node) {
74810
74617
  }
74811
74618
  const comments = [];
74812
74619
  let token = loc.startToken.prev;
74813
- while (token != null && token.kind === import_graphql38.TokenKind.COMMENT && token.next != null && token.prev != null && token.line + 1 === token.next.line && token.line !== token.prev.line) {
74620
+ while (token != null && token.kind === import_graphql39.TokenKind.COMMENT && token.next != null && token.prev != null && token.line + 1 === token.next.line && token.line !== token.prev.line) {
74814
74621
  const value = String(token.value);
74815
74622
  comments.push(value);
74816
74623
  token = token.prev;
@@ -74862,9 +74669,9 @@ function isBlank2(str) {
74862
74669
  }
74863
74670
 
74864
74671
  // ../../node_modules/.pnpm/@graphql-tools+utils@10.0.6_graphql@15.5.0/node_modules/@graphql-tools/utils/esm/isDocumentNode.js
74865
- var import_graphql39 = require("graphql");
74672
+ var import_graphql40 = require("graphql");
74866
74673
  function isDocumentNode2(object) {
74867
- return object && typeof object === "object" && "kind" in object && object.kind === import_graphql39.Kind.DOCUMENT;
74674
+ return object && typeof object === "object" && "kind" in object && object.kind === import_graphql40.Kind.DOCUMENT;
74868
74675
  }
74869
74676
 
74870
74677
  // ../../node_modules/.pnpm/@graphql-tools+merge@9.0.0_graphql@15.5.0/node_modules/@graphql-tools/merge/esm/typedefs-mergers/arguments.js
@@ -74888,7 +74695,7 @@ function deduplicateArguments2(args, config) {
74888
74695
  }
74889
74696
 
74890
74697
  // ../../node_modules/.pnpm/@graphql-tools+merge@9.0.0_graphql@15.5.0/node_modules/@graphql-tools/merge/esm/typedefs-mergers/directives.js
74891
- var import_graphql40 = require("graphql");
74698
+ var import_graphql41 = require("graphql");
74892
74699
  function directiveAlreadyExists2(directivesArr, otherDirective) {
74893
74700
  return !!directivesArr.find((directive) => directive.name.value === otherDirective.name.value);
74894
74701
  }
@@ -74948,11 +74755,11 @@ function mergeDirectives2(d1 = [], d22 = [], config, directives) {
74948
74755
  return result;
74949
74756
  }
74950
74757
  function validateInputs2(node, existingNode) {
74951
- const printedNode = (0, import_graphql40.print)({
74758
+ const printedNode = (0, import_graphql41.print)({
74952
74759
  ...node,
74953
74760
  description: void 0
74954
74761
  });
74955
- const printedExistingNode = (0, import_graphql40.print)({
74762
+ const printedExistingNode = (0, import_graphql41.print)({
74956
74763
  ...existingNode,
74957
74764
  description: void 0
74958
74765
  });
@@ -75019,7 +74826,7 @@ function mergeEnumValues2(first, second, config, directives) {
75019
74826
  }
75020
74827
 
75021
74828
  // ../../node_modules/.pnpm/@graphql-tools+merge@9.0.0_graphql@15.5.0/node_modules/@graphql-tools/merge/esm/typedefs-mergers/enum.js
75022
- var import_graphql41 = require("graphql");
74829
+ var import_graphql42 = require("graphql");
75023
74830
  function mergeEnum2(e1, e22, config, directives) {
75024
74831
  if (e22) {
75025
74832
  return {
@@ -75033,33 +74840,33 @@ function mergeEnum2(e1, e22, config, directives) {
75033
74840
  }
75034
74841
  return config?.convertExtensions ? {
75035
74842
  ...e1,
75036
- kind: import_graphql41.Kind.ENUM_TYPE_DEFINITION
74843
+ kind: import_graphql42.Kind.ENUM_TYPE_DEFINITION
75037
74844
  } : e1;
75038
74845
  }
75039
74846
 
75040
74847
  // ../../node_modules/.pnpm/@graphql-tools+merge@9.0.0_graphql@15.5.0/node_modules/@graphql-tools/merge/esm/typedefs-mergers/utils.js
75041
- var import_graphql42 = require("graphql");
74848
+ var import_graphql43 = require("graphql");
75042
74849
  function isStringTypes2(types16) {
75043
74850
  return typeof types16 === "string";
75044
74851
  }
75045
74852
  function isSourceTypes2(types16) {
75046
- return types16 instanceof import_graphql42.Source;
74853
+ return types16 instanceof import_graphql43.Source;
75047
74854
  }
75048
74855
  function extractType2(type) {
75049
74856
  let visitedType = type;
75050
- while (visitedType.kind === import_graphql42.Kind.LIST_TYPE || visitedType.kind === "NonNullType") {
74857
+ while (visitedType.kind === import_graphql43.Kind.LIST_TYPE || visitedType.kind === "NonNullType") {
75051
74858
  visitedType = visitedType.type;
75052
74859
  }
75053
74860
  return visitedType;
75054
74861
  }
75055
74862
  function isWrappingTypeNode2(type) {
75056
- return type.kind !== import_graphql42.Kind.NAMED_TYPE;
74863
+ return type.kind !== import_graphql43.Kind.NAMED_TYPE;
75057
74864
  }
75058
74865
  function isListTypeNode2(type) {
75059
- return type.kind === import_graphql42.Kind.LIST_TYPE;
74866
+ return type.kind === import_graphql43.Kind.LIST_TYPE;
75060
74867
  }
75061
74868
  function isNonNullTypeNode2(type) {
75062
- return type.kind === import_graphql42.Kind.NON_NULL_TYPE;
74869
+ return type.kind === import_graphql43.Kind.NON_NULL_TYPE;
75063
74870
  }
75064
74871
  function printTypeNode2(type) {
75065
74872
  if (isListTypeNode2(type)) {
@@ -75162,7 +74969,7 @@ function safeChangeForFieldType2(oldType, newType, ignoreNullability = false) {
75162
74969
  }
75163
74970
 
75164
74971
  // ../../node_modules/.pnpm/@graphql-tools+merge@9.0.0_graphql@15.5.0/node_modules/@graphql-tools/merge/esm/typedefs-mergers/input-type.js
75165
- var import_graphql43 = require("graphql");
74972
+ var import_graphql44 = require("graphql");
75166
74973
  function mergeInputType2(node, existingNode, config, directives) {
75167
74974
  if (existingNode) {
75168
74975
  try {
@@ -75180,12 +74987,12 @@ function mergeInputType2(node, existingNode, config, directives) {
75180
74987
  }
75181
74988
  return config?.convertExtensions ? {
75182
74989
  ...node,
75183
- kind: import_graphql43.Kind.INPUT_OBJECT_TYPE_DEFINITION
74990
+ kind: import_graphql44.Kind.INPUT_OBJECT_TYPE_DEFINITION
75184
74991
  } : node;
75185
74992
  }
75186
74993
 
75187
74994
  // ../../node_modules/.pnpm/@graphql-tools+merge@9.0.0_graphql@15.5.0/node_modules/@graphql-tools/merge/esm/typedefs-mergers/interface.js
75188
- var import_graphql44 = require("graphql");
74995
+ var import_graphql45 = require("graphql");
75189
74996
 
75190
74997
  // ../../node_modules/.pnpm/@graphql-tools+merge@9.0.0_graphql@15.5.0/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-named-type-array.js
75191
74998
  function alreadyExists2(arr, other) {
@@ -75218,15 +75025,15 @@ function mergeInterface2(node, existingNode, config, directives) {
75218
75025
  }
75219
75026
  return config?.convertExtensions ? {
75220
75027
  ...node,
75221
- kind: import_graphql44.Kind.INTERFACE_TYPE_DEFINITION
75028
+ kind: import_graphql45.Kind.INTERFACE_TYPE_DEFINITION
75222
75029
  } : node;
75223
75030
  }
75224
75031
 
75225
75032
  // ../../node_modules/.pnpm/@graphql-tools+merge@9.0.0_graphql@15.5.0/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-nodes.js
75226
- var import_graphql49 = require("graphql");
75033
+ var import_graphql50 = require("graphql");
75227
75034
 
75228
75035
  // ../../node_modules/.pnpm/@graphql-tools+merge@9.0.0_graphql@15.5.0/node_modules/@graphql-tools/merge/esm/typedefs-mergers/type.js
75229
- var import_graphql45 = require("graphql");
75036
+ var import_graphql46 = require("graphql");
75230
75037
  function mergeType2(node, existingNode, config, directives) {
75231
75038
  if (existingNode) {
75232
75039
  try {
@@ -75245,12 +75052,12 @@ function mergeType2(node, existingNode, config, directives) {
75245
75052
  }
75246
75053
  return config?.convertExtensions ? {
75247
75054
  ...node,
75248
- kind: import_graphql45.Kind.OBJECT_TYPE_DEFINITION
75055
+ kind: import_graphql46.Kind.OBJECT_TYPE_DEFINITION
75249
75056
  } : node;
75250
75057
  }
75251
75058
 
75252
75059
  // ../../node_modules/.pnpm/@graphql-tools+merge@9.0.0_graphql@15.5.0/node_modules/@graphql-tools/merge/esm/typedefs-mergers/scalar.js
75253
- var import_graphql46 = require("graphql");
75060
+ var import_graphql47 = require("graphql");
75254
75061
  function mergeScalar2(node, existingNode, config, directives) {
75255
75062
  if (existingNode) {
75256
75063
  return {
@@ -75263,31 +75070,31 @@ function mergeScalar2(node, existingNode, config, directives) {
75263
75070
  }
75264
75071
  return config?.convertExtensions ? {
75265
75072
  ...node,
75266
- kind: import_graphql46.Kind.SCALAR_TYPE_DEFINITION
75073
+ kind: import_graphql47.Kind.SCALAR_TYPE_DEFINITION
75267
75074
  } : node;
75268
75075
  }
75269
75076
 
75270
75077
  // ../../node_modules/.pnpm/@graphql-tools+merge@9.0.0_graphql@15.5.0/node_modules/@graphql-tools/merge/esm/typedefs-mergers/union.js
75271
- var import_graphql47 = require("graphql");
75078
+ var import_graphql48 = require("graphql");
75272
75079
  function mergeUnion2(first, second, config, directives) {
75273
75080
  if (second) {
75274
75081
  return {
75275
75082
  name: first.name,
75276
75083
  description: first["description"] || second["description"],
75277
75084
  directives: mergeDirectives2(first.directives, second.directives, config, directives),
75278
- kind: config?.convertExtensions || first.kind === "UnionTypeDefinition" || second.kind === "UnionTypeDefinition" ? import_graphql47.Kind.UNION_TYPE_DEFINITION : import_graphql47.Kind.UNION_TYPE_EXTENSION,
75085
+ kind: config?.convertExtensions || first.kind === "UnionTypeDefinition" || second.kind === "UnionTypeDefinition" ? import_graphql48.Kind.UNION_TYPE_DEFINITION : import_graphql48.Kind.UNION_TYPE_EXTENSION,
75279
75086
  loc: first.loc,
75280
75087
  types: mergeNamedTypeArray2(first.types, second.types, config)
75281
75088
  };
75282
75089
  }
75283
75090
  return config?.convertExtensions ? {
75284
75091
  ...first,
75285
- kind: import_graphql47.Kind.UNION_TYPE_DEFINITION
75092
+ kind: import_graphql48.Kind.UNION_TYPE_DEFINITION
75286
75093
  } : first;
75287
75094
  }
75288
75095
 
75289
75096
  // ../../node_modules/.pnpm/@graphql-tools+merge@9.0.0_graphql@15.5.0/node_modules/@graphql-tools/merge/esm/typedefs-mergers/schema-def.js
75290
- var import_graphql48 = require("graphql");
75097
+ var import_graphql49 = require("graphql");
75291
75098
  var DEFAULT_OPERATION_TYPE_NAME_MAP2 = {
75292
75099
  query: "Query",
75293
75100
  mutation: "Mutation",
@@ -75306,7 +75113,7 @@ function mergeOperationTypes2(opNodeList = [], existingOpNodeList = []) {
75306
75113
  function mergeSchemaDefs2(node, existingNode, config, directives) {
75307
75114
  if (existingNode) {
75308
75115
  return {
75309
- kind: node.kind === import_graphql48.Kind.SCHEMA_DEFINITION || existingNode.kind === import_graphql48.Kind.SCHEMA_DEFINITION ? import_graphql48.Kind.SCHEMA_DEFINITION : import_graphql48.Kind.SCHEMA_EXTENSION,
75116
+ kind: node.kind === import_graphql49.Kind.SCHEMA_DEFINITION || existingNode.kind === import_graphql49.Kind.SCHEMA_DEFINITION ? import_graphql49.Kind.SCHEMA_DEFINITION : import_graphql49.Kind.SCHEMA_EXTENSION,
75310
75117
  description: node["description"] || existingNode["description"],
75311
75118
  directives: mergeDirectives2(node.directives, existingNode.directives, config, directives),
75312
75119
  operationTypes: mergeOperationTypes2(node.operationTypes, existingNode.operationTypes)
@@ -75314,7 +75121,7 @@ function mergeSchemaDefs2(node, existingNode, config, directives) {
75314
75121
  }
75315
75122
  return config?.convertExtensions ? {
75316
75123
  ...node,
75317
- kind: import_graphql48.Kind.SCHEMA_DEFINITION
75124
+ kind: import_graphql49.Kind.SCHEMA_DEFINITION
75318
75125
  } : node;
75319
75126
  }
75320
75127
 
@@ -75338,36 +75145,36 @@ function mergeGraphQLNodes2(nodes, config, directives = {}) {
75338
75145
  delete mergedResultMap[name];
75339
75146
  } else {
75340
75147
  switch (nodeDefinition.kind) {
75341
- case import_graphql49.Kind.OBJECT_TYPE_DEFINITION:
75342
- case import_graphql49.Kind.OBJECT_TYPE_EXTENSION:
75148
+ case import_graphql50.Kind.OBJECT_TYPE_DEFINITION:
75149
+ case import_graphql50.Kind.OBJECT_TYPE_EXTENSION:
75343
75150
  mergedResultMap[name] = mergeType2(nodeDefinition, mergedResultMap[name], config, directives);
75344
75151
  break;
75345
- case import_graphql49.Kind.ENUM_TYPE_DEFINITION:
75346
- case import_graphql49.Kind.ENUM_TYPE_EXTENSION:
75152
+ case import_graphql50.Kind.ENUM_TYPE_DEFINITION:
75153
+ case import_graphql50.Kind.ENUM_TYPE_EXTENSION:
75347
75154
  mergedResultMap[name] = mergeEnum2(nodeDefinition, mergedResultMap[name], config, directives);
75348
75155
  break;
75349
- case import_graphql49.Kind.UNION_TYPE_DEFINITION:
75350
- case import_graphql49.Kind.UNION_TYPE_EXTENSION:
75156
+ case import_graphql50.Kind.UNION_TYPE_DEFINITION:
75157
+ case import_graphql50.Kind.UNION_TYPE_EXTENSION:
75351
75158
  mergedResultMap[name] = mergeUnion2(nodeDefinition, mergedResultMap[name], config, directives);
75352
75159
  break;
75353
- case import_graphql49.Kind.SCALAR_TYPE_DEFINITION:
75354
- case import_graphql49.Kind.SCALAR_TYPE_EXTENSION:
75160
+ case import_graphql50.Kind.SCALAR_TYPE_DEFINITION:
75161
+ case import_graphql50.Kind.SCALAR_TYPE_EXTENSION:
75355
75162
  mergedResultMap[name] = mergeScalar2(nodeDefinition, mergedResultMap[name], config, directives);
75356
75163
  break;
75357
- case import_graphql49.Kind.INPUT_OBJECT_TYPE_DEFINITION:
75358
- case import_graphql49.Kind.INPUT_OBJECT_TYPE_EXTENSION:
75164
+ case import_graphql50.Kind.INPUT_OBJECT_TYPE_DEFINITION:
75165
+ case import_graphql50.Kind.INPUT_OBJECT_TYPE_EXTENSION:
75359
75166
  mergedResultMap[name] = mergeInputType2(nodeDefinition, mergedResultMap[name], config, directives);
75360
75167
  break;
75361
- case import_graphql49.Kind.INTERFACE_TYPE_DEFINITION:
75362
- case import_graphql49.Kind.INTERFACE_TYPE_EXTENSION:
75168
+ case import_graphql50.Kind.INTERFACE_TYPE_DEFINITION:
75169
+ case import_graphql50.Kind.INTERFACE_TYPE_EXTENSION:
75363
75170
  mergedResultMap[name] = mergeInterface2(nodeDefinition, mergedResultMap[name], config, directives);
75364
75171
  break;
75365
- case import_graphql49.Kind.DIRECTIVE_DEFINITION:
75172
+ case import_graphql50.Kind.DIRECTIVE_DEFINITION:
75366
75173
  mergedResultMap[name] = mergeDirective2(nodeDefinition, mergedResultMap[name]);
75367
75174
  break;
75368
75175
  }
75369
75176
  }
75370
- } else if (nodeDefinition.kind === import_graphql49.Kind.SCHEMA_DEFINITION || nodeDefinition.kind === import_graphql49.Kind.SCHEMA_EXTENSION) {
75177
+ } else if (nodeDefinition.kind === import_graphql50.Kind.SCHEMA_DEFINITION || nodeDefinition.kind === import_graphql50.Kind.SCHEMA_EXTENSION) {
75371
75178
  mergedResultMap[schemaDefSymbol2] = mergeSchemaDefs2(nodeDefinition, mergedResultMap[schemaDefSymbol2], config);
75372
75179
  }
75373
75180
  }
@@ -75375,11 +75182,11 @@ function mergeGraphQLNodes2(nodes, config, directives = {}) {
75375
75182
  }
75376
75183
 
75377
75184
  // ../../node_modules/.pnpm/@graphql-tools+merge@9.0.0_graphql@15.5.0/node_modules/@graphql-tools/merge/esm/typedefs-mergers/merge-typedefs.js
75378
- var import_graphql50 = require("graphql");
75185
+ var import_graphql51 = require("graphql");
75379
75186
  function mergeTypeDefs2(typeSource, config) {
75380
75187
  resetComments2();
75381
75188
  const doc = {
75382
- kind: import_graphql50.Kind.DOCUMENT,
75189
+ kind: import_graphql51.Kind.DOCUMENT,
75383
75190
  definitions: mergeGraphQLTypes2(typeSource, {
75384
75191
  useSchemaDefinition: true,
75385
75192
  forceSchemaDefinition: false,
@@ -75406,14 +75213,14 @@ function visitTypeSources2(typeSource, options, allDirectives = [], allNodes = [
75406
75213
  for (const type of typeSource) {
75407
75214
  visitTypeSources2(type, options, allDirectives, allNodes, visitedTypeSources);
75408
75215
  }
75409
- } else if ((0, import_graphql50.isSchema)(typeSource)) {
75216
+ } else if ((0, import_graphql51.isSchema)(typeSource)) {
75410
75217
  const documentNode = getDocumentNodeFromSchema2(typeSource, options);
75411
75218
  visitTypeSources2(documentNode.definitions, options, allDirectives, allNodes, visitedTypeSources);
75412
75219
  } else if (isStringTypes2(typeSource) || isSourceTypes2(typeSource)) {
75413
- const documentNode = (0, import_graphql50.parse)(typeSource, options);
75220
+ const documentNode = (0, import_graphql51.parse)(typeSource, options);
75414
75221
  visitTypeSources2(documentNode.definitions, options, allDirectives, allNodes, visitedTypeSources);
75415
- } else if (typeof typeSource === "object" && (0, import_graphql50.isDefinitionNode)(typeSource)) {
75416
- if (typeSource.kind === import_graphql50.Kind.DIRECTIVE_DEFINITION) {
75222
+ } else if (typeof typeSource === "object" && (0, import_graphql51.isDefinitionNode)(typeSource)) {
75223
+ if (typeSource.kind === import_graphql51.Kind.DIRECTIVE_DEFINITION) {
75417
75224
  allDirectives.push(typeSource);
75418
75225
  } else {
75419
75226
  allNodes.push(typeSource);
@@ -75433,7 +75240,7 @@ function mergeGraphQLTypes2(typeSource, config) {
75433
75240
  const mergedNodes = mergeGraphQLNodes2(allNodes, config, mergedDirectives);
75434
75241
  if (config?.useSchemaDefinition) {
75435
75242
  const schemaDef = mergedNodes[schemaDefSymbol2] || {
75436
- kind: import_graphql50.Kind.SCHEMA_DEFINITION,
75243
+ kind: import_graphql51.Kind.SCHEMA_DEFINITION,
75437
75244
  operationTypes: []
75438
75245
  };
75439
75246
  const operationTypes = schemaDef.operationTypes;
@@ -75444,9 +75251,9 @@ function mergeGraphQLTypes2(typeSource, config) {
75444
75251
  const existingPossibleRootType = mergedNodes[possibleRootTypeName];
75445
75252
  if (existingPossibleRootType != null && existingPossibleRootType.name != null) {
75446
75253
  operationTypes.push({
75447
- kind: import_graphql50.Kind.OPERATION_TYPE_DEFINITION,
75254
+ kind: import_graphql51.Kind.OPERATION_TYPE_DEFINITION,
75448
75255
  type: {
75449
- kind: import_graphql50.Kind.NAMED_TYPE,
75256
+ kind: import_graphql51.Kind.NAMED_TYPE,
75450
75257
  name: existingPossibleRootType.name
75451
75258
  },
75452
75259
  operation: opTypeDefNodeType
@@ -75460,15 +75267,15 @@ function mergeGraphQLTypes2(typeSource, config) {
75460
75267
  }
75461
75268
  if (config?.forceSchemaDefinition && !mergedNodes[schemaDefSymbol2]?.operationTypes?.length) {
75462
75269
  mergedNodes[schemaDefSymbol2] = {
75463
- kind: import_graphql50.Kind.SCHEMA_DEFINITION,
75270
+ kind: import_graphql51.Kind.SCHEMA_DEFINITION,
75464
75271
  operationTypes: [
75465
75272
  {
75466
- kind: import_graphql50.Kind.OPERATION_TYPE_DEFINITION,
75273
+ kind: import_graphql51.Kind.OPERATION_TYPE_DEFINITION,
75467
75274
  operation: "query",
75468
75275
  type: {
75469
- kind: import_graphql50.Kind.NAMED_TYPE,
75276
+ kind: import_graphql51.Kind.NAMED_TYPE,
75470
75277
  name: {
75471
- kind: import_graphql50.Kind.NAME,
75278
+ kind: import_graphql51.Kind.NAME,
75472
75279
  value: "Query"
75473
75280
  }
75474
75281
  }
@@ -75485,7 +75292,7 @@ function mergeGraphQLTypes2(typeSource, config) {
75485
75292
  }
75486
75293
 
75487
75294
  // src/codegen/transforms/schema.ts
75488
- var graphql25 = __toESM(require("graphql"), 1);
75295
+ var graphql24 = __toESM(require("graphql"), 1);
75489
75296
  async function graphqlExtensions(config, documents) {
75490
75297
  let internalSchema = `
75491
75298
  enum CachePolicy {
@@ -75608,7 +75415,7 @@ directive @${config.componentFieldDirective}(field: String!, prop: String, expor
75608
75415
  const args = fragmentArguments(config, "", field.parent);
75609
75416
  if (args.length > 0) {
75610
75417
  argString = "(" + args.map((arg) => {
75611
- const typeName = graphql25.print(arg.type);
75418
+ const typeName = graphql24.print(arg.type);
75612
75419
  return `${arg.name}:${typeName}${arg.required ? "!" : ""}`;
75613
75420
  }).join("\n") + ")";
75614
75421
  }
@@ -75618,20 +75425,20 @@ directive @${config.componentFieldDirective}(field: String!, prop: String, expor
75618
75425
  `;
75619
75426
  }).join("\n");
75620
75427
  extensions += `${Object.keys(config.configFile.features?.runtimeScalars ?? {}).map((scalar) => `scalar ${scalar}`).join("\n")}`;
75621
- config.newSchema = graphql25.print(mergeTypeDefs2([internalSchema, config.newSchema]));
75428
+ config.newSchema = graphql24.print(mergeTypeDefs2([internalSchema, config.newSchema]));
75622
75429
  config.schemaString += extensions;
75623
- config.schema = graphql25.buildSchema(
75624
- graphql25.print(
75625
- mergeTypeDefs2([graphql25.printSchema(config.schema), internalSchema, extensions])
75430
+ config.schema = graphql24.buildSchema(
75431
+ graphql24.print(
75432
+ mergeTypeDefs2([graphql24.printSchema(config.schema), internalSchema, extensions])
75626
75433
  )
75627
75434
  );
75628
75435
  }
75629
75436
 
75630
75437
  // src/codegen/transforms/typename.ts
75631
- var graphql26 = __toESM(require("graphql"), 1);
75438
+ var graphql25 = __toESM(require("graphql"), 1);
75632
75439
  async function addTypename(config, documents) {
75633
75440
  for (const doc of documents) {
75634
- doc.document = graphql26.visit(doc.document, {
75441
+ doc.document = graphql25.visit(doc.document, {
75635
75442
  Field(node, key, parent2, path3, ancestors) {
75636
75443
  if (!node.selectionSet) {
75637
75444
  return;
@@ -75643,7 +75450,7 @@ async function addTypename(config, documents) {
75643
75450
  );
75644
75451
  const field = type.getFields()[node.name.value];
75645
75452
  const fieldType = unwrapType(config, field.type).type;
75646
- if (graphql26.isInterfaceType(fieldType) || graphql26.isUnionType(fieldType)) {
75453
+ if (graphql25.isInterfaceType(fieldType) || graphql25.isUnionType(fieldType)) {
75647
75454
  return {
75648
75455
  ...node,
75649
75456
  selectionSet: {
@@ -75651,9 +75458,9 @@ async function addTypename(config, documents) {
75651
75458
  selections: [
75652
75459
  ...node.selectionSet.selections,
75653
75460
  {
75654
- kind: graphql26.Kind.FIELD,
75461
+ kind: graphql25.Kind.FIELD,
75655
75462
  name: {
75656
- kind: graphql26.Kind.NAME,
75463
+ kind: graphql25.Kind.NAME,
75657
75464
  value: "__typename"
75658
75465
  }
75659
75466
  }
@@ -75670,9 +75477,9 @@ async function addTypename(config, documents) {
75670
75477
  selections: [
75671
75478
  ...node.selectionSet.selections,
75672
75479
  {
75673
- kind: graphql26.Kind.FIELD,
75480
+ kind: graphql25.Kind.FIELD,
75674
75481
  name: {
75675
- kind: graphql26.Kind.NAME,
75482
+ kind: graphql25.Kind.NAME,
75676
75483
  value: "__typename"
75677
75484
  }
75678
75485
  }
@@ -75685,10 +75492,10 @@ async function addTypename(config, documents) {
75685
75492
  }
75686
75493
 
75687
75494
  // src/codegen/transforms/addID.ts
75688
- var graphql27 = __toESM(require("graphql"), 1);
75495
+ var graphql26 = __toESM(require("graphql"), 1);
75689
75496
  async function addID(config, documents) {
75690
75497
  for (const doc of documents) {
75691
- doc.document = graphql27.visit(doc.document, {
75498
+ doc.document = graphql26.visit(doc.document, {
75692
75499
  Field(node, key, parent2, path3, ancestors) {
75693
75500
  if (!node.selectionSet) {
75694
75501
  return;
@@ -75726,7 +75533,7 @@ function addKeysToSelection(config, node, fieldType) {
75726
75533
  if (!node.selectionSet || node.selectionSet.selections.length == 0) {
75727
75534
  return;
75728
75535
  }
75729
- if (!graphql27.isObjectType(fieldType) && !graphql27.isInterfaceType(fieldType)) {
75536
+ if (!graphql26.isObjectType(fieldType) && !graphql26.isInterfaceType(fieldType)) {
75730
75537
  return;
75731
75538
  }
75732
75539
  const keyFields = config.keyFieldsForType(fieldType.name);
@@ -75741,9 +75548,9 @@ function addKeysToSelection(config, node, fieldType) {
75741
75548
  continue;
75742
75549
  }
75743
75550
  selections.push({
75744
- kind: graphql27.Kind.FIELD,
75551
+ kind: graphql26.Kind.FIELD,
75745
75552
  name: {
75746
- kind: graphql27.Kind.NAME,
75553
+ kind: graphql26.Kind.NAME,
75747
75554
  value: keyField
75748
75555
  }
75749
75556
  });
@@ -75758,13 +75565,13 @@ function addKeysToSelection(config, node, fieldType) {
75758
75565
  }
75759
75566
 
75760
75567
  // src/codegen/transforms/componentFields.ts
75761
- var graphql28 = __toESM(require("graphql"), 1);
75568
+ var graphql27 = __toESM(require("graphql"), 1);
75762
75569
  async function componentFields(config, documents) {
75763
75570
  for (const document of documents) {
75764
- const typeInfo = new graphql28.TypeInfo(config.schema);
75765
- document.document = graphql28.visit(
75571
+ const typeInfo = new graphql27.TypeInfo(config.schema);
75572
+ document.document = graphql27.visit(
75766
75573
  document.document,
75767
- graphql28.visitWithTypeInfo(typeInfo, {
75574
+ graphql27.visitWithTypeInfo(typeInfo, {
75768
75575
  Field(node) {
75769
75576
  const parentType = typeInfo.getParentType();
75770
75577
  if (!parentType) {
@@ -75813,10 +75620,10 @@ async function componentFields(config, documents) {
75813
75620
  }
75814
75621
 
75815
75622
  // src/codegen/transforms/runtimeScalars.ts
75816
- var graphql29 = __toESM(require("graphql"), 1);
75623
+ var graphql28 = __toESM(require("graphql"), 1);
75817
75624
  async function addTypename2(config, documents) {
75818
75625
  for (const doc of documents) {
75819
- doc.document = graphql29.visit(doc.document, {
75626
+ doc.document = graphql28.visit(doc.document, {
75820
75627
  VariableDefinition(node) {
75821
75628
  const { type, wrappers } = unwrapType(config, node.type);
75822
75629
  const runtimeScalar = config.configFile.features?.runtimeScalars?.[type.name];
@@ -75855,7 +75662,7 @@ async function addTypename2(config, documents) {
75855
75662
  }
75856
75663
 
75857
75664
  // src/codegen/validators/typeCheck.ts
75858
- var graphql30 = __toESM(require("graphql"), 1);
75665
+ var graphql29 = __toESM(require("graphql"), 1);
75859
75666
  async function typeCheck(config, docs) {
75860
75667
  const errors = [];
75861
75668
  const freeLists = [];
@@ -75863,7 +75670,7 @@ async function typeCheck(config, docs) {
75863
75670
  const listTypes = [];
75864
75671
  const fragments = {};
75865
75672
  for (const { document: parsed, originalString, filename } of docs) {
75866
- graphql30.visit(parsed, {
75673
+ graphql29.visit(parsed, {
75867
75674
  FragmentDefinition(definition) {
75868
75675
  fragments[definition.name.value] = definition;
75869
75676
  },
@@ -75908,14 +75715,14 @@ async function typeCheck(config, docs) {
75908
75715
  );
75909
75716
  return;
75910
75717
  }
75911
- if (graphql30.isListType(rootType) || graphql30.isNonNullType(rootType) && graphql30.isListType(rootType.ofType)) {
75718
+ if (graphql29.isListType(rootType) || graphql29.isNonNullType(rootType) && graphql29.isListType(rootType.ofType)) {
75912
75719
  needsParent = true;
75913
75720
  break;
75914
75721
  }
75915
- if (graphql30.isNonNullType(rootType) && "ofType" in rootType) {
75722
+ if (graphql29.isNonNullType(rootType) && "ofType" in rootType) {
75916
75723
  rootType = rootType.ofType;
75917
75724
  }
75918
- if (graphql30.isScalarType(rootType)) {
75725
+ if (graphql29.isScalarType(rootType)) {
75919
75726
  break;
75920
75727
  }
75921
75728
  rootType = rootType?.getFields()[parent3.name.value]?.type;
@@ -75991,9 +75798,9 @@ async function typeCheck(config, docs) {
75991
75798
  );
75992
75799
  }
75993
75800
  let targetTypes = [type];
75994
- if (graphql30.isUnionType(type)) {
75801
+ if (graphql29.isUnionType(type)) {
75995
75802
  targetTypes = config.schema.getPossibleTypes(type);
75996
- } else if (graphql30.isInterfaceType(type)) {
75803
+ } else if (graphql29.isInterfaceType(type)) {
75997
75804
  try {
75998
75805
  for (const key of config.keyFieldsForType(type.name)) {
75999
75806
  if (!type.getFields()[key]) {
@@ -76029,13 +75836,13 @@ async function typeCheck(config, docs) {
76029
75836
  if (errors.length > 0) {
76030
75837
  throw errors;
76031
75838
  }
76032
- const rules = (filepath) => [...graphql30.specifiedRules].filter(
75839
+ const rules = (filepath) => [...graphql29.specifiedRules].filter(
76033
75840
  (rule) => ![
76034
- graphql30.NoUnusedFragmentsRule,
76035
- graphql30.KnownFragmentNamesRule,
76036
- graphql30.ExecutableDefinitionsRule,
76037
- graphql30.KnownDirectivesRule,
76038
- graphql30.KnownArgumentNamesRule
75841
+ graphql29.NoUnusedFragmentsRule,
75842
+ graphql29.KnownFragmentNamesRule,
75843
+ graphql29.ExecutableDefinitionsRule,
75844
+ graphql29.KnownDirectivesRule,
75845
+ graphql29.KnownArgumentNamesRule
76039
75846
  ].includes(rule)
76040
75847
  ).concat(
76041
75848
  validateLists({
@@ -76056,7 +75863,7 @@ async function typeCheck(config, docs) {
76056
75863
  validateLoadingDirective(config)
76057
75864
  );
76058
75865
  for (const { filename, document: parsed, originalString } of docs) {
76059
- for (const error of graphql30.validate(config.schema, parsed, rules(filename))) {
75866
+ for (const error of graphql29.validate(config.schema, parsed, rules(filename))) {
76060
75867
  errors.push(
76061
75868
  new HoudiniError({
76062
75869
  filepath: filename,
@@ -76085,20 +75892,20 @@ function validateRequiredDirective(config, filepath) {
76085
75892
  if (!node.directives?.some(({ name }) => name.value === config.requiredDirective))
76086
75893
  return;
76087
75894
  const parentType = parentTypeFromAncestors(config.schema, filepath, ancestors);
76088
- if (!graphql30.isObjectType(parentType)) {
75895
+ if (!graphql29.isObjectType(parentType)) {
76089
75896
  ctx.reportError(
76090
- new graphql30.GraphQLError(
75897
+ new graphql29.GraphQLError(
76091
75898
  `@${config.requiredDirective} may only be used on objects, not arguments`
76092
75899
  )
76093
75900
  );
76094
75901
  return;
76095
75902
  }
76096
75903
  const type = parentType.getFields()[node.name.value].type;
76097
- const isServerNullable = !graphql30.isNonNullType(type);
75904
+ const isServerNullable = !graphql29.isNonNullType(type);
76098
75905
  const isAlreadyClientNullable = isClientNullable(node, true);
76099
75906
  if (!isServerNullable && !isAlreadyClientNullable) {
76100
75907
  ctx.reportError(
76101
- new graphql30.GraphQLError(
75908
+ new graphql29.GraphQLError(
76102
75909
  `@${config.requiredDirective} may only be used on nullable fields`
76103
75910
  )
76104
75911
  );
@@ -76120,7 +75927,7 @@ var validateLists = ({
76120
75927
  if (!config.isListFragment(node.name.value)) {
76121
75928
  if (!fragments[node.name.value]) {
76122
75929
  ctx.reportError(
76123
- new graphql30.GraphQLError(
75930
+ new graphql29.GraphQLError(
76124
75931
  "Encountered unknown fragment: " + node.name.value
76125
75932
  )
76126
75933
  );
@@ -76130,7 +75937,7 @@ var validateLists = ({
76130
75937
  const listName = config.listNameFromFragment(node.name.value);
76131
75938
  if (!lists.includes(listName)) {
76132
75939
  ctx.reportError(
76133
- new graphql30.GraphQLError(
75940
+ new graphql29.GraphQLError(
76134
75941
  "Encountered fragment referencing unknown list: " + listName
76135
75942
  )
76136
75943
  );
@@ -76155,7 +75962,7 @@ var validateLists = ({
76155
75962
  );
76156
75963
  if (parentArg) {
76157
75964
  ctx.reportError(
76158
- new graphql30.GraphQLError(
75965
+ new graphql29.GraphQLError(
76159
75966
  `@${config.deprecatedlistDirectiveParentIDArg} should be defined only in it's own directive now`
76160
75967
  )
76161
75968
  );
@@ -76171,7 +75978,7 @@ var validateLists = ({
76171
75978
  return;
76172
75979
  }
76173
75980
  ctx.reportError(
76174
- new graphql30.GraphQLError(
75981
+ new graphql29.GraphQLError(
76175
75982
  `For this list fragment, you need to add or @${config.listParentDirective} or @${config.listAllListsDirective} directive to specify the behavior`
76176
75983
  )
76177
75984
  );
@@ -76181,7 +75988,7 @@ var validateLists = ({
76181
75988
  const directiveName = node.name.value;
76182
75989
  if (directiveName === "connection") {
76183
75990
  ctx.reportError(
76184
- new graphql30.GraphQLError(
75991
+ new graphql29.GraphQLError(
76185
75992
  "@connection was renamed to @list. Please change your components. If you were using `cache.connection` in your components, you will need to update that to `cache.list` too."
76186
75993
  )
76187
75994
  );
@@ -76190,7 +75997,7 @@ var validateLists = ({
76190
75997
  if (!config.isInternalDirective(node.name.value)) {
76191
75998
  if (!config.schema.getDirective(directiveName)) {
76192
75999
  ctx.reportError(
76193
- new graphql30.GraphQLError(
76000
+ new graphql29.GraphQLError(
76194
76001
  "Encountered unknown directive: " + directiveName
76195
76002
  )
76196
76003
  );
@@ -76199,7 +76006,7 @@ var validateLists = ({
76199
76006
  }
76200
76007
  if (config.isListOperationDirective(directiveName) && !listTypes.includes(config.listNameFromDirective(directiveName))) {
76201
76008
  ctx.reportError(
76202
- new graphql30.GraphQLError(
76009
+ new graphql29.GraphQLError(
76203
76010
  "Encountered directive referencing unknown list: " + directiveName
76204
76011
  )
76205
76012
  );
@@ -76210,7 +76017,7 @@ var validateLists = ({
76210
76017
  };
76211
76018
  function knownArguments(config) {
76212
76019
  return function(ctx) {
76213
- const nativeValidator = graphql30.KnownArgumentNamesRule(ctx);
76020
+ const nativeValidator = graphql29.KnownArgumentNamesRule(ctx);
76214
76021
  return {
76215
76022
  ...nativeValidator,
76216
76023
  Directive(directiveNode) {
@@ -76245,7 +76052,7 @@ function validateFragmentArguments(config, filepath, fragments) {
76245
76052
  for (const arg of node.arguments || []) {
76246
76053
  if (arg.value.kind !== "ObjectValue") {
76247
76054
  ctx.reportError(
76248
- new graphql30.GraphQLError("values in @arguments must be an object")
76055
+ new graphql29.GraphQLError("values in @arguments must be an object")
76249
76056
  );
76250
76057
  return;
76251
76058
  }
@@ -76255,13 +76062,13 @@ function validateFragmentArguments(config, filepath, fragments) {
76255
76062
  );
76256
76063
  if (!typeArg) {
76257
76064
  ctx.reportError(
76258
- new graphql30.GraphQLError("missing type field for @arguments directive")
76065
+ new graphql29.GraphQLError("missing type field for @arguments directive")
76259
76066
  );
76260
76067
  return;
76261
76068
  }
76262
- if (typeArg.value.kind !== graphql30.Kind.STRING) {
76069
+ if (typeArg.value.kind !== graphql29.Kind.STRING) {
76263
76070
  ctx.reportError(
76264
- new graphql30.GraphQLError("type field to @arguments must be a string")
76071
+ new graphql29.GraphQLError("type field to @arguments must be a string")
76265
76072
  );
76266
76073
  return;
76267
76074
  }
@@ -76274,7 +76081,7 @@ function validateFragmentArguments(config, filepath, fragments) {
76274
76081
  );
76275
76082
  if (typeArg.value.value !== defaultValueType) {
76276
76083
  ctx.reportError(
76277
- new graphql30.GraphQLError(
76084
+ new graphql29.GraphQLError(
76278
76085
  `Invalid default value provided for ${arg.name.value}. Expected ${typeArg.value.value}, found ${defaultValueType}`
76279
76086
  )
76280
76087
  );
@@ -76292,7 +76099,7 @@ function validateFragmentArguments(config, filepath, fragments) {
76292
76099
  try {
76293
76100
  args = fragmentArguments(config, filepath, fragments[fragmentName]);
76294
76101
  } catch (e3) {
76295
- ctx.reportError(new graphql30.GraphQLError(e3.message));
76102
+ ctx.reportError(new graphql29.GraphQLError(e3.message));
76296
76103
  return;
76297
76104
  }
76298
76105
  fragmentArguments2[fragmentName] = args;
@@ -76315,7 +76122,7 @@ function validateFragmentArguments(config, filepath, fragments) {
76315
76122
  );
76316
76123
  if (missing.length > 0) {
76317
76124
  ctx.reportError(
76318
- new graphql30.GraphQLError(
76125
+ new graphql29.GraphQLError(
76319
76126
  `The following arguments are missing from the "${fragmentName}" fragment: ` + JSON.stringify(missing)
76320
76127
  )
76321
76128
  );
@@ -76326,7 +76133,7 @@ function validateFragmentArguments(config, filepath, fragments) {
76326
76133
  );
76327
76134
  if (unknown.length > 0) {
76328
76135
  ctx.reportError(
76329
- new graphql30.GraphQLError(
76136
+ new graphql29.GraphQLError(
76330
76137
  "Encountered unknown arguments: " + JSON.stringify(unknown)
76331
76138
  )
76332
76139
  );
@@ -76338,7 +76145,7 @@ function validateFragmentArguments(config, filepath, fragments) {
76338
76145
  for (const [applied, target] of zipped) {
76339
76146
  if (!valueIsType(config, applied.value, target)) {
76340
76147
  ctx.reportError(
76341
- new graphql30.GraphQLError(
76148
+ new graphql29.GraphQLError(
76342
76149
  `Invalid argument type. Expected ${target}, found ${applied.value.kind}`
76343
76150
  )
76344
76151
  );
@@ -76380,7 +76187,7 @@ function valueIsType(config, value, targetType) {
76380
76187
  }
76381
76188
  if (value.kind === "EnumValue" && targetType.kind === "NamedType") {
76382
76189
  const enumType = config.schema.getType(targetType.name.value);
76383
- if (!graphql30.isEnumType(enumType)) {
76190
+ if (!graphql29.isEnumType(enumType)) {
76384
76191
  return false;
76385
76192
  }
76386
76193
  return enumType.getValues().some((enumValue) => enumValue.value === value.value);
@@ -76400,7 +76207,7 @@ function paginateArgs(config, filepath) {
76400
76207
  }
76401
76208
  if (alreadyPaginated) {
76402
76209
  ctx.reportError(
76403
- new graphql30.GraphQLError(
76210
+ new graphql29.GraphQLError(
76404
76211
  `@${config.paginateDirective} can only appear in a document once.`
76405
76212
  )
76406
76213
  );
@@ -76432,7 +76239,7 @@ function paginateArgs(config, filepath) {
76432
76239
  const backwards = appliedArgs.has("last");
76433
76240
  if (!forward && !backwards) {
76434
76241
  ctx.reportError(
76435
- new graphql30.GraphQLError(
76242
+ new graphql29.GraphQLError(
76436
76243
  "A field with cursor-based pagination must have a first or last argument"
76437
76244
  )
76438
76245
  );
@@ -76446,7 +76253,7 @@ function paginateArgs(config, filepath) {
76446
76253
  }
76447
76254
  if (forward && backwards && paginateMode === "Infinite") {
76448
76255
  ctx.reportError(
76449
- new graphql30.GraphQLError(
76256
+ new graphql29.GraphQLError(
76450
76257
  `A field with cursor pagination cannot go forwards an backwards simultaneously`
76451
76258
  )
76452
76259
  );
@@ -76460,7 +76267,7 @@ function paginateArgs(config, filepath) {
76460
76267
  );
76461
76268
  if (!appliedLimitArg) {
76462
76269
  ctx.reportError(
76463
- new graphql30.GraphQLError(
76270
+ new graphql29.GraphQLError(
76464
76271
  "A field with offset-based pagination must have a limit argument"
76465
76272
  )
76466
76273
  );
@@ -76476,20 +76283,20 @@ function noUnusedFragmentArguments(config) {
76476
76283
  const args = /* @__PURE__ */ new Set();
76477
76284
  return {
76478
76285
  enter(node) {
76479
- if (node.kind === graphql30.Kind.FRAGMENT_DEFINITION) {
76286
+ if (node.kind === graphql29.Kind.FRAGMENT_DEFINITION) {
76480
76287
  const definitionArguments = node.directives?.filter((directive) => directive.name.value === config.argumentsDirective).flatMap((directive) => directive.arguments);
76481
76288
  for (const arg of definitionArguments?.map((arg2) => arg2?.name.value) || []) {
76482
76289
  args.add(arg);
76483
76290
  }
76484
- } else if (node.kind === graphql30.Kind.VARIABLE) {
76291
+ } else if (node.kind === graphql29.Kind.VARIABLE) {
76485
76292
  args.delete(node.name.value);
76486
76293
  }
76487
76294
  },
76488
76295
  leave(node) {
76489
- if (node.kind === graphql30.Kind.FRAGMENT_DEFINITION) {
76296
+ if (node.kind === graphql29.Kind.FRAGMENT_DEFINITION) {
76490
76297
  if (args.size > 0) {
76491
76298
  ctx.reportError(
76492
- new graphql30.GraphQLError(
76299
+ new graphql29.GraphQLError(
76493
76300
  "Encountered unused fragment arguments: " + [...args].join(",")
76494
76301
  )
76495
76302
  );
@@ -76525,7 +76332,7 @@ function nodeDirectives(config, directives) {
76525
76332
  if (definition.kind === "OperationDefinition") {
76526
76333
  if (definition.operation !== "query") {
76527
76334
  ctx.reportError(
76528
- new graphql30.GraphQLError(
76335
+ new graphql29.GraphQLError(
76529
76336
  `@${node.name.value} must fall on a fragment or query document`
76530
76337
  )
76531
76338
  );
@@ -76537,7 +76344,7 @@ function nodeDirectives(config, directives) {
76537
76344
  }
76538
76345
  if (!possibleNodes.includes(definitionType)) {
76539
76346
  ctx.reportError(
76540
- new graphql30.GraphQLError(paginateOnNonNodeMessage(node.name.value))
76347
+ new graphql29.GraphQLError(paginateOnNonNodeMessage(node.name.value))
76541
76348
  );
76542
76349
  }
76543
76350
  }
@@ -76556,7 +76363,7 @@ function checkMutationOperation(config) {
76556
76363
  );
76557
76364
  if (append && prepend) {
76558
76365
  ctx.reportError(
76559
- new graphql30.GraphQLError(
76366
+ new graphql29.GraphQLError(
76560
76367
  `You can't apply both @${config.listPrependDirective} and @${config.listAppendDirective} at the same time`
76561
76368
  )
76562
76369
  );
@@ -76570,7 +76377,7 @@ function checkMutationOperation(config) {
76570
76377
  );
76571
76378
  if (parentId && allLists) {
76572
76379
  ctx.reportError(
76573
- new graphql30.GraphQLError(
76380
+ new graphql29.GraphQLError(
76574
76381
  `You can't apply both @${config.listParentDirective} and @${config.listAllListsDirective} at the same time`
76575
76382
  )
76576
76383
  );
@@ -76592,7 +76399,7 @@ function checkMaskDirectives(config) {
76592
76399
  );
76593
76400
  if (maskEnableDirective && maskDisableDirective) {
76594
76401
  ctx.reportError(
76595
- new graphql30.GraphQLError(
76402
+ new graphql29.GraphQLError(
76596
76403
  `You can't apply both @${config.maskEnableDirective} and @${config.maskDisableDirective} at the same time`
76597
76404
  )
76598
76405
  );
@@ -76634,7 +76441,7 @@ function validateLoadingDirective(config) {
76634
76441
  );
76635
76442
  if (!parentLoading && !global2) {
76636
76443
  ctx.reportError(
76637
- new graphql30.GraphQLError(
76444
+ new graphql29.GraphQLError(
76638
76445
  `@${config.loadingDirective} can only be applied on a field or fragment spread at the root of a document or on one whose parent also has @${config.loadingDirective}`
76639
76446
  )
76640
76447
  );
@@ -76656,7 +76463,7 @@ function validateLoadingDirective(config) {
76656
76463
  );
76657
76464
  if (!parentLoading && !global2) {
76658
76465
  ctx.reportError(
76659
- new graphql30.GraphQLError(
76466
+ new graphql29.GraphQLError(
76660
76467
  `@${config.loadingDirective} can only be applied on a field or fragment spread at the root of a document or on one whose parent also has @${config.loadingDirective}`
76661
76468
  )
76662
76469
  );
@@ -76671,7 +76478,7 @@ function getAndVerifyNodeInterface(config) {
76671
76478
  if (!nodeInterface) {
76672
76479
  return null;
76673
76480
  }
76674
- if (!graphql30.isInterfaceType(nodeInterface)) {
76481
+ if (!graphql29.isInterfaceType(nodeInterface)) {
76675
76482
  displayInvalidNodeFieldMessage(config);
76676
76483
  return null;
76677
76484
  }
@@ -76766,11 +76573,11 @@ async function uniqueDocumentNames(config, docs) {
76766
76573
  }
76767
76574
 
76768
76575
  // src/codegen/validators/noIDAlias.ts
76769
- var graphql31 = __toESM(require("graphql"), 1);
76576
+ var graphql30 = __toESM(require("graphql"), 1);
76770
76577
  async function noIDAlias(config, docs) {
76771
76578
  const errors = [];
76772
76579
  for (const { filename, document } of docs) {
76773
- graphql31.visit(document, {
76580
+ graphql30.visit(document, {
76774
76581
  Field(node, _3, __, ___, ancestors) {
76775
76582
  const fieldType = parentTypeFromAncestors(config.schema, filename, ancestors).name;
76776
76583
  if (config.keyFieldsForType(fieldType).includes(node.alias?.value || "")) {
@@ -76809,11 +76616,11 @@ async function validatePlugins(config, documents) {
76809
76616
  }
76810
76617
 
76811
76618
  // src/codegen/validators/componentFields.ts
76812
- var graphql32 = __toESM(require("graphql"), 1);
76619
+ var graphql31 = __toESM(require("graphql"), 1);
76813
76620
  async function componentFields2(config, docs) {
76814
76621
  const errors = [];
76815
76622
  for (const { filename: filepath, document } of docs) {
76816
- graphql32.visit(document, {
76623
+ graphql31.visit(document, {
76817
76624
  FragmentDefinition(node, _3, __, ___, ancestors) {
76818
76625
  const componentFieldDirective = node.directives?.find(
76819
76626
  (dir) => dir.name.value === config.componentFieldDirective
@@ -76861,7 +76668,7 @@ async function componentFields2(config, docs) {
76861
76668
  if (existingField && existingField.filepath !== filepath) {
76862
76669
  conflict = true;
76863
76670
  } else if (parentType && fieldValue) {
76864
- const fieldDef = graphql32.isObjectType(parentType) && parentType.getFields()[fieldValue];
76671
+ const fieldDef = graphql31.isObjectType(parentType) && parentType.getFields()[fieldValue];
76865
76672
  if (fieldDef && !fieldDef.astNode?.directives?.find(
76866
76673
  (dir) => dir.name.value === config.componentFieldDirective
76867
76674
  )) {
@@ -76874,7 +76681,7 @@ async function componentFields2(config, docs) {
76874
76681
  filepath
76875
76682
  });
76876
76683
  }
76877
- if (parentType && graphql32.isAbstractType(parentType)) {
76684
+ if (parentType && graphql31.isAbstractType(parentType)) {
76878
76685
  errors.push({
76879
76686
  message: `Cannot add component field ${parent2}.${fieldValue} because ${parent2} is an abstract type`,
76880
76687
  filepath
@@ -77095,12 +76902,12 @@ async function processJSFile(config, contents) {
77095
76902
  return documents;
77096
76903
  }
77097
76904
  async function processGraphQLDocument(config, filepath, document) {
77098
- const parsedDoc = graphql33.parse(document);
76905
+ const parsedDoc = graphql32.parse(document);
77099
76906
  const operations = parsedDoc.definitions.filter(
77100
- ({ kind: kind2 }) => kind2 === graphql33.Kind.OPERATION_DEFINITION
76907
+ ({ kind: kind2 }) => kind2 === graphql32.Kind.OPERATION_DEFINITION
77101
76908
  );
77102
76909
  const fragments = parsedDoc.definitions.filter(
77103
- ({ kind: kind2 }) => kind2 === graphql33.Kind.FRAGMENT_DEFINITION
76910
+ ({ kind: kind2 }) => kind2 === graphql32.Kind.FRAGMENT_DEFINITION
77104
76911
  );
77105
76912
  if (operations.length > 1) {
77106
76913
  throw new HoudiniError({
@@ -78216,12 +78023,12 @@ async function packageJSON(targetPath, frameworkInfo) {
78216
78023
  }
78217
78024
  packageJSON2.devDependencies = {
78218
78025
  ...packageJSON2.devDependencies,
78219
- houdini: "^1.2.44"
78026
+ houdini: "^1.2.45"
78220
78027
  };
78221
78028
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
78222
78029
  packageJSON2.devDependencies = {
78223
78030
  ...packageJSON2.devDependencies,
78224
- "houdini-svelte": "^1.2.44"
78031
+ "houdini-svelte": "^1.2.45"
78225
78032
  };
78226
78033
  } else {
78227
78034
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);