houdini 1.2.44 → 1.2.46

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 (55) hide show
  1. package/build/cmd-cjs/index.js +664 -848
  2. package/build/cmd-esm/index.js +514 -698
  3. package/build/codegen/generators/comments/jsdoc.d.ts +2 -0
  4. package/build/codegen-cjs/index.js +662 -846
  5. package/build/codegen-esm/index.js +512 -696
  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 +726 -467
  10. package/build/lib-esm/index.js +720 -467
  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/match.d.ts +3 -2
  18. package/build/runtime/router/types.d.ts +3 -1
  19. package/build/runtime-cjs/client/index.d.ts +7 -1
  20. package/build/runtime-cjs/client/index.js +26 -11
  21. package/build/runtime-cjs/client/plugins/fragment.d.ts +2 -2
  22. package/build/runtime-cjs/client/plugins/fragment.js +4 -11
  23. package/build/runtime-cjs/client/plugins/mutation.d.ts +2 -1
  24. package/build/runtime-cjs/client/plugins/mutation.js +8 -15
  25. package/build/runtime-cjs/client/plugins/query.d.ts +2 -2
  26. package/build/runtime-cjs/client/plugins/query.js +4 -11
  27. package/build/runtime-cjs/lib/scalars.d.ts +1 -1
  28. package/build/runtime-cjs/lib/scalars.js +4 -0
  29. package/build/runtime-cjs/lib/types.d.ts +13 -2
  30. package/build/runtime-cjs/router/match.d.ts +3 -2
  31. package/build/runtime-cjs/router/match.js +11 -2
  32. package/build/runtime-cjs/router/server.js +1 -1
  33. package/build/runtime-cjs/router/types.d.ts +3 -1
  34. package/build/runtime-esm/client/index.d.ts +7 -1
  35. package/build/runtime-esm/client/index.js +26 -11
  36. package/build/runtime-esm/client/plugins/fragment.d.ts +2 -2
  37. package/build/runtime-esm/client/plugins/fragment.js +1 -2
  38. package/build/runtime-esm/client/plugins/mutation.d.ts +2 -1
  39. package/build/runtime-esm/client/plugins/mutation.js +1 -2
  40. package/build/runtime-esm/client/plugins/query.d.ts +2 -2
  41. package/build/runtime-esm/client/plugins/query.js +1 -2
  42. package/build/runtime-esm/lib/scalars.d.ts +1 -1
  43. package/build/runtime-esm/lib/scalars.js +6 -0
  44. package/build/runtime-esm/lib/types.d.ts +13 -2
  45. package/build/runtime-esm/router/match.d.ts +3 -2
  46. package/build/runtime-esm/router/match.js +11 -2
  47. package/build/runtime-esm/router/server.js +1 -1
  48. package/build/runtime-esm/router/types.d.ts +3 -1
  49. package/build/test-cjs/index.js +677 -844
  50. package/build/test-esm/index.js +527 -694
  51. package/build/vite-cjs/index.js +786 -857
  52. package/build/vite-esm/index.js +636 -707
  53. package/package.json +1 -1
  54. package/build/codegen/generators/typescript/typeReference.d.ts +0 -8
  55. 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);
@@ -68577,7 +68340,12 @@ function deepMerge2(filepath, ...targets) {
68577
68340
  // src/lib/parse.ts
68578
68341
  function parseJS(str, config) {
68579
68342
  const defaultConfig = {
68580
- plugins: ["typescript", "importAssertions", "decorators-legacy"],
68343
+ plugins: [
68344
+ "typescript",
68345
+ "importAssertions",
68346
+ "decorators-legacy",
68347
+ "explicitResourceManagement"
68348
+ ],
68581
68349
  sourceType: "module"
68582
68350
  };
68583
68351
  return (0, import_parser.parse)(str || "", config ? deepMerge2("", defaultConfig, config) : defaultConfig).program;
@@ -68704,6 +68472,152 @@ async function detectTools(cwd = process.cwd()) {
68704
68472
  };
68705
68473
  }
68706
68474
 
68475
+ // src/lib/typescript.ts
68476
+ var graphql4 = __toESM(require("graphql"), 1);
68477
+ var recast2 = __toESM(require_main2(), 1);
68478
+ var AST2 = recast2.types.builders;
68479
+ function unwrappedTsTypeReference(config, filepath, missingScalars, {
68480
+ type,
68481
+ wrappers
68482
+ }, body) {
68483
+ let result;
68484
+ if (graphql4.isScalarType(type)) {
68485
+ result = scalarPropertyValue(config, filepath, missingScalars, type, body, null);
68486
+ } else if (graphql4.isEnumType(type)) {
68487
+ result = enumReference(config, body, type.name);
68488
+ } else {
68489
+ result = AST2.tsTypeReference(AST2.identifier(type.name));
68490
+ }
68491
+ for (const toWrap of wrappers) {
68492
+ if (toWrap === "NonNull" /* NonNull */) {
68493
+ continue;
68494
+ } else if (toWrap === "Nullable" /* Nullable */) {
68495
+ result = nullableField(result, true);
68496
+ } else if (toWrap === "List" /* List */) {
68497
+ result = AST2.tsArrayType(AST2.tsParenthesizedType(result));
68498
+ }
68499
+ }
68500
+ return result;
68501
+ }
68502
+ function tsTypeReference(config, filepath, missingScalars, definition, body) {
68503
+ const { type, wrappers } = unwrapType(config, definition.type);
68504
+ return unwrappedTsTypeReference(
68505
+ config,
68506
+ filepath,
68507
+ missingScalars,
68508
+ { type, wrappers },
68509
+ body
68510
+ );
68511
+ }
68512
+ function enumReference(config, body, name) {
68513
+ ensureImports({
68514
+ config,
68515
+ body,
68516
+ import: ["ValueOf"],
68517
+ importKind: "type",
68518
+ sourceModule: "$houdini/runtime/lib/types"
68519
+ });
68520
+ return AST2.tsTypeReference(
68521
+ AST2.identifier("ValueOf"),
68522
+ AST2.tsTypeParameterInstantiation([AST2.tsTypeQuery(AST2.identifier(name))])
68523
+ );
68524
+ }
68525
+ function readonlyProperty(prop, enable = true) {
68526
+ if (enable) {
68527
+ prop.readonly = true;
68528
+ }
68529
+ return prop;
68530
+ }
68531
+ function nullableField(inner, input = false) {
68532
+ const members = [inner, AST2.tsNullKeyword()];
68533
+ if (input) {
68534
+ members.push(AST2.tsUndefinedKeyword());
68535
+ }
68536
+ return AST2.tsUnionType(members);
68537
+ }
68538
+ function scalarPropertyValue(config, filepath, missingScalars, target, body, field) {
68539
+ if (config.configFile.features?.componentFields && target.name === config.componentScalar) {
68540
+ if (!field) {
68541
+ return AST2.tsNeverKeyword();
68542
+ }
68543
+ const component = config.componentFields[field.parent][field.field];
68544
+ const sourcePathRelative = path_exports.relative(
68545
+ path_exports.join(config.projectRoot, "src"),
68546
+ component.filepath
68547
+ );
68548
+ let sourcePathParsed = path_exports.parse(sourcePathRelative);
68549
+ let sourcePath = path_exports.join(sourcePathParsed.dir, sourcePathParsed.name);
68550
+ const localImport = ensureImports({
68551
+ config,
68552
+ body,
68553
+ import: "__component__" + component.fragment,
68554
+ sourceModule: path_exports.join(
68555
+ path_exports.relative(path_exports.dirname(filepath), config.projectRoot),
68556
+ "src",
68557
+ sourcePath
68558
+ )
68559
+ }) ?? "__component__" + component.fragment;
68560
+ const parameters = AST2.tsTypeReference(AST2.identifier("Parameters"));
68561
+ parameters.typeParameters = AST2.tsTypeParameterInstantiation([
68562
+ AST2.tsTypeQuery(AST2.identifier(localImport))
68563
+ ]);
68564
+ const indexed = AST2.tsIndexedAccessType(
68565
+ parameters,
68566
+ AST2.tsLiteralType(AST2.numericLiteral(0))
68567
+ );
68568
+ const omit = AST2.tsTypeReference(AST2.identifier("Omit"));
68569
+ omit.typeParameters = AST2.tsTypeParameterInstantiation([
68570
+ indexed,
68571
+ AST2.tsLiteralType(AST2.stringLiteral(component.prop))
68572
+ ]);
68573
+ const arg = AST2.identifier("props");
68574
+ arg.typeAnnotation = AST2.tsTypeAnnotation(omit);
68575
+ const returnType = AST2.tsTypeReference(AST2.identifier("ReturnType"));
68576
+ returnType.typeParameters = AST2.tsTypeParameterInstantiation([
68577
+ AST2.tsTypeQuery(AST2.identifier(localImport))
68578
+ ]);
68579
+ const fnType = AST2.tsFunctionType([arg]);
68580
+ fnType.typeAnnotation = AST2.tsTypeAnnotation(returnType);
68581
+ return fnType;
68582
+ }
68583
+ switch (target.name) {
68584
+ case "String": {
68585
+ return AST2.tsStringKeyword();
68586
+ }
68587
+ case "Int": {
68588
+ return AST2.tsNumberKeyword();
68589
+ }
68590
+ case "Float": {
68591
+ return AST2.tsNumberKeyword();
68592
+ }
68593
+ case "Boolean": {
68594
+ return AST2.tsBooleanKeyword();
68595
+ }
68596
+ case "ID": {
68597
+ return AST2.tsStringKeyword();
68598
+ }
68599
+ default: {
68600
+ if (graphql4.isNonNullType(target) && "ofType" in target) {
68601
+ return scalarPropertyValue(
68602
+ config,
68603
+ filepath,
68604
+ missingScalars,
68605
+ target.ofType,
68606
+ body,
68607
+ field
68608
+ );
68609
+ }
68610
+ if (config.scalars?.[target.name]) {
68611
+ return AST2.tsTypeReference(AST2.identifier(config.scalars?.[target.name].type));
68612
+ }
68613
+ if (target.name !== config.componentScalar) {
68614
+ missingScalars.add(target.name);
68615
+ }
68616
+ return AST2.tsAnyKeyword();
68617
+ }
68618
+ }
68619
+ }
68620
+
68707
68621
  // ../../node_modules/.pnpm/estree-walker@3.0.1/node_modules/estree-walker/src/walker.js
68708
68622
  var WalkerBase = class {
68709
68623
  constructor() {
@@ -68817,7 +68731,7 @@ async function asyncWalk(ast, { enter, leave }) {
68817
68731
  }
68818
68732
 
68819
68733
  // src/lib/walk.ts
68820
- var graphql4 = __toESM(require("graphql"), 1);
68734
+ var graphql5 = __toESM(require("graphql"), 1);
68821
68735
  async function find_graphql(config, parsedScript, walker) {
68822
68736
  await asyncWalk(parsedScript, {
68823
68737
  async enter(node, parent2) {
@@ -68872,7 +68786,7 @@ async function find_graphql(config, parsedScript, walker) {
68872
68786
  } else if (!documentString) {
68873
68787
  return;
68874
68788
  }
68875
- const parsedTag = graphql4.parse(documentString);
68789
+ const parsedTag = graphql5.parse(documentString);
68876
68790
  if (walker.where && !walker.where(parsedTag, { node, parent: parent2 })) {
68877
68791
  return;
68878
68792
  }
@@ -69004,7 +68918,7 @@ function extractAnonymousQuery(config, raw, expr, propName) {
69004
68918
  };
69005
68919
  return defs.concat([
69006
68920
  {
69007
- raw: graphql4.print(parsed),
68921
+ raw: graphql5.print(parsed),
69008
68922
  parsed
69009
68923
  }
69010
68924
  ]);
@@ -69019,7 +68933,7 @@ function extractAnonymousQuery(config, raw, expr, propName) {
69019
68933
 
69020
68934
  // src/lib/router/manifest.ts
69021
68935
  var t2 = __toESM(require_lib6(), 1);
69022
- var graphql5 = __toESM(require("graphql"), 1);
68936
+ var graphql6 = __toESM(require("graphql"), 1);
69023
68937
 
69024
68938
  // src/lib/router/server.ts
69025
68939
  var import_node_path2 = __toESM(require("node:path"), 1);
@@ -69057,11 +68971,11 @@ async function loadLocalSchema(config) {
69057
68971
  }
69058
68972
 
69059
68973
  // src/codegen/index.ts
69060
- var graphql33 = __toESM(require("graphql"), 1);
68974
+ var graphql32 = __toESM(require("graphql"), 1);
69061
68975
 
69062
68976
  // src/codegen/generators/artifacts/index.ts
69063
- var graphql16 = __toESM(require("graphql"), 1);
69064
- var recast4 = __toESM(require_main2(), 1);
68977
+ var graphql17 = __toESM(require("graphql"), 1);
68978
+ var recast5 = __toESM(require_main2(), 1);
69065
68979
 
69066
68980
  // src/codegen/utils/commonjs.ts
69067
68981
  var cjsIndexFilePreamble = `"use strict";
@@ -69303,19 +69217,19 @@ var FieldCollection = class {
69303
69217
  };
69304
69218
 
69305
69219
  // src/codegen/utils/moduleExport.ts
69306
- var recast2 = __toESM(require_main2(), 1);
69307
- var AST2 = recast2.types.builders;
69220
+ var recast3 = __toESM(require_main2(), 1);
69221
+ var AST3 = recast3.types.builders;
69308
69222
  function moduleExport(config, key, value) {
69309
69223
  if (config.module === "commonjs") {
69310
- let target = AST2.memberExpression(AST2.identifier("module"), AST2.identifier("exports"));
69224
+ let target = AST3.memberExpression(AST3.identifier("module"), AST3.identifier("exports"));
69311
69225
  if (key !== "default") {
69312
- target = AST2.memberExpression(target, AST2.identifier(key));
69226
+ target = AST3.memberExpression(target, AST3.identifier(key));
69313
69227
  }
69314
- return AST2.expressionStatement(AST2.assignmentExpression("=", target, value));
69228
+ return AST3.expressionStatement(AST3.assignmentExpression("=", target, value));
69315
69229
  }
69316
- return key === "default" ? AST2.exportDefaultDeclaration(value) : AST2.exportNamedDeclaration(
69317
- AST2.variableDeclaration("const", [
69318
- AST2.variableDeclarator(AST2.identifier(key), value)
69230
+ return key === "default" ? AST3.exportDefaultDeclaration(value) : AST3.exportNamedDeclaration(
69231
+ AST3.variableDeclaration("const", [
69232
+ AST3.variableDeclarator(AST3.identifier(key), value)
69319
69233
  ])
69320
69234
  );
69321
69235
  }
@@ -69572,7 +69486,7 @@ var serialize = (value, { json, lossy } = {}) => {
69572
69486
  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
69487
 
69574
69488
  // src/codegen/transforms/fragmentVariables.ts
69575
- var graphql7 = __toESM(require("graphql"), 1);
69489
+ var graphql8 = __toESM(require("graphql"), 1);
69576
69490
 
69577
69491
  // src/codegen/utils/stripLoc.ts
69578
69492
  function stripLoc(value) {
@@ -69593,13 +69507,13 @@ function stripLoc(value) {
69593
69507
  }
69594
69508
 
69595
69509
  // src/codegen/transforms/collectDefinitions.ts
69596
- var graphql6 = __toESM(require("graphql"), 1);
69597
- var import_graphql31 = require("graphql");
69510
+ var graphql7 = __toESM(require("graphql"), 1);
69511
+ var import_graphql32 = require("graphql");
69598
69512
  async function includeFragmentDefinitions(config, documents) {
69599
69513
  const fragments = collectDefinitions(config, documents);
69600
69514
  for (const [index, { name, document, filename }] of documents.entries()) {
69601
69515
  const operation = document.definitions.find(
69602
- (def) => def.kind === import_graphql31.Kind.OPERATION_DEFINITION || def.kind === "FragmentDefinition"
69516
+ (def) => def.kind === import_graphql32.Kind.OPERATION_DEFINITION || def.kind === "FragmentDefinition"
69603
69517
  );
69604
69518
  if (!operation) {
69605
69519
  continue;
@@ -69643,10 +69557,10 @@ function collectDefinitions(config, docs) {
69643
69557
  }
69644
69558
  function findRequiredFragments(config, definition) {
69645
69559
  const referencedFragments = [];
69646
- const typeInfo = new graphql6.TypeInfo(config.schema);
69647
- definition.selectionSet = graphql6.visit(
69560
+ const typeInfo = new graphql7.TypeInfo(config.schema);
69561
+ definition.selectionSet = graphql7.visit(
69648
69562
  definition,
69649
- graphql6.visitWithTypeInfo(typeInfo, {
69563
+ graphql7.visitWithTypeInfo(typeInfo, {
69650
69564
  FragmentSpread(node) {
69651
69565
  referencedFragments.push(node.name.value);
69652
69566
  }
@@ -69680,7 +69594,7 @@ function flattenFragments(filepath, operation, fragments) {
69680
69594
  }
69681
69595
 
69682
69596
  // src/codegen/transforms/fragmentVariables.ts
69683
- var GraphqlKinds2 = graphql7.Kind;
69597
+ var GraphqlKinds2 = graphql8.Kind;
69684
69598
  async function fragmentVariables(config, documents) {
69685
69599
  const fragments = collectDefinitions(config, documents);
69686
69600
  const generatedFragments = {};
@@ -69703,7 +69617,7 @@ async function fragmentVariables(config, documents) {
69703
69617
  });
69704
69618
  }
69705
69619
  const doc = {
69706
- kind: graphql7.Kind.DOCUMENT,
69620
+ kind: graphql8.Kind.DOCUMENT,
69707
69621
  definitions: Object.values(generatedFragments)
69708
69622
  };
69709
69623
  documents.push({
@@ -69774,7 +69688,7 @@ function inlineFragmentArgs({
69774
69688
  return null;
69775
69689
  };
69776
69690
  const result = esm_default(
69777
- graphql7.visit(document, {
69691
+ graphql8.visit(document, {
69778
69692
  FragmentSpread(node) {
69779
69693
  if (!fragmentDefinitions[node.name.value]) {
69780
69694
  throw new Error("Could not find definition for fragment" + node.name.value);
@@ -69860,7 +69774,7 @@ function inlineFragmentArgs({
69860
69774
  );
69861
69775
  if (newName) {
69862
69776
  result.name = {
69863
- kind: graphql7.Kind.NAME,
69777
+ kind: graphql8.Kind.NAME,
69864
69778
  value: newName
69865
69779
  };
69866
69780
  }
@@ -70027,7 +69941,7 @@ ${exportDefaultFrom(`./${doc.name}`, doc.name)}`,
70027
69941
  }
70028
69942
 
70029
69943
  // src/codegen/generators/artifacts/inputs.ts
70030
- var graphql8 = __toESM(require("graphql"), 1);
69944
+ var graphql9 = __toESM(require("graphql"), 1);
70031
69945
  function inputObject(config, inputs, runtimeScalars) {
70032
69946
  const visitedTypes = /* @__PURE__ */ new Set();
70033
69947
  const inputObj = {
@@ -70057,10 +69971,10 @@ function walkInputs(config, visitedTypes, inputObj, rootType) {
70057
69971
  if (visitedTypes.has(type.name)) {
70058
69972
  return;
70059
69973
  }
70060
- if (graphql8.isEnumType(type) || graphql8.isScalarType(type)) {
69974
+ if (graphql9.isEnumType(type) || graphql9.isScalarType(type)) {
70061
69975
  return;
70062
69976
  }
70063
- if (graphql8.isUnionType(type)) {
69977
+ if (graphql9.isUnionType(type)) {
70064
69978
  return;
70065
69979
  }
70066
69980
  visitedTypes.add(type.name);
@@ -70078,50 +69992,50 @@ function walkInputs(config, visitedTypes, inputObj, rootType) {
70078
69992
  }
70079
69993
 
70080
69994
  // src/codegen/generators/artifacts/operations.ts
70081
- var graphql10 = __toESM(require("graphql"), 1);
69995
+ var graphql11 = __toESM(require("graphql"), 1);
70082
69996
 
70083
69997
  // 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;
69998
+ var graphql10 = __toESM(require("graphql"), 1);
69999
+ var recast4 = __toESM(require_main2(), 1);
70000
+ var AST4 = recast4.types.builders;
70087
70001
  function serializeValue(value) {
70088
70002
  if (Array.isArray(value)) {
70089
- return AST3.arrayExpression(value.map(serializeValue));
70003
+ return AST4.arrayExpression(value.map(serializeValue));
70090
70004
  }
70091
70005
  if (typeof value === "object" && value !== null) {
70092
- return AST3.objectExpression(
70006
+ return AST4.objectExpression(
70093
70007
  Object.entries(value).filter(([key, value2]) => typeof value2 !== "undefined").map(([key, val]) => {
70094
- return AST3.objectProperty(AST3.stringLiteral(key), serializeValue(val));
70008
+ return AST4.objectProperty(AST4.stringLiteral(key), serializeValue(val));
70095
70009
  })
70096
70010
  );
70097
70011
  }
70098
70012
  if (typeof value === "string") {
70099
70013
  if (value.indexOf("\n") !== -1) {
70100
- return AST3.templateLiteral(
70101
- [AST3.templateElement({ raw: value, cooked: value }, true)],
70014
+ return AST4.templateLiteral(
70015
+ [AST4.templateElement({ raw: value, cooked: value }, true)],
70102
70016
  []
70103
70017
  );
70104
70018
  }
70105
- return AST3.stringLiteral(value);
70019
+ return AST4.stringLiteral(value);
70106
70020
  }
70107
- return AST3.literal(value);
70021
+ return AST4.literal(value);
70108
70022
  }
70109
70023
  function convertValue(config, val) {
70110
70024
  let value;
70111
70025
  let kind;
70112
- if (val.kind === graphql9.Kind.INT) {
70026
+ if (val.kind === graphql10.Kind.INT) {
70113
70027
  value = parseInt(val.value, 10);
70114
70028
  kind = "Int";
70115
- } else if (val.kind === graphql9.Kind.FLOAT) {
70029
+ } else if (val.kind === graphql10.Kind.FLOAT) {
70116
70030
  value = parseFloat(val.value);
70117
70031
  kind = "Float";
70118
- } else if (val.kind === graphql9.Kind.BOOLEAN) {
70032
+ } else if (val.kind === graphql10.Kind.BOOLEAN) {
70119
70033
  value = val.value;
70120
70034
  kind = "Boolean";
70121
- } else if (val.kind === graphql9.Kind.VARIABLE) {
70035
+ } else if (val.kind === graphql10.Kind.VARIABLE) {
70122
70036
  value = val.name.value;
70123
70037
  kind = "Variable";
70124
- } else if (val.kind === graphql9.Kind.STRING) {
70038
+ } else if (val.kind === graphql10.Kind.STRING) {
70125
70039
  value = val.value;
70126
70040
  kind = "String";
70127
70041
  }
@@ -70134,9 +70048,13 @@ function operationsByPath(config, filepath, definition, filterTypes) {
70134
70048
  return {};
70135
70049
  }
70136
70050
  const pathOperations = {};
70137
- graphql10.visit(definition, {
70051
+ graphql11.visit(definition, {
70138
70052
  FragmentSpread(node, _3, __, ___, ancestors) {
70139
- if (!config.isListFragment(node.name.value)) {
70053
+ let nameWithoutHash = node.name.value;
70054
+ if (node.directives && node.directives.find((directive) => directive.name.value === "with")) {
70055
+ nameWithoutHash = nameWithoutHash.substring(0, nameWithoutHash.lastIndexOf("_"));
70056
+ }
70057
+ if (!config.isListFragment(nameWithoutHash)) {
70140
70058
  return;
70141
70059
  }
70142
70060
  const path3 = ancestorKey(ancestors);
@@ -70147,8 +70065,8 @@ function operationsByPath(config, filepath, definition, filterTypes) {
70147
70065
  operationObject({
70148
70066
  config,
70149
70067
  filepath,
70150
- listName: config.listNameFromFragment(node.name.value),
70151
- operationKind: config.listOperationFromFragment(node.name.value),
70068
+ listName: config.listNameFromFragment(nameWithoutHash),
70069
+ operationKind: config.listOperationFromFragment(nameWithoutHash),
70152
70070
  type: parentTypeFromAncestors(config.schema, filepath, ancestors).name,
70153
70071
  selection: node
70154
70072
  })
@@ -70293,19 +70211,19 @@ function ancestorKey(ancestors) {
70293
70211
  }
70294
70212
 
70295
70213
  // src/codegen/generators/artifacts/selection.ts
70296
- var graphql15 = __toESM(require("graphql"), 1);
70214
+ var graphql16 = __toESM(require("graphql"), 1);
70297
70215
 
70298
70216
  // src/codegen/transforms/list.ts
70299
- var graphql13 = __toESM(require("graphql"), 1);
70217
+ var graphql14 = __toESM(require("graphql"), 1);
70300
70218
 
70301
70219
  // src/codegen/utils/objectIdentificationSelection.ts
70302
- var graphql11 = __toESM(require("graphql"), 1);
70220
+ var graphql12 = __toESM(require("graphql"), 1);
70303
70221
  var objectIdentificationSelection = (config, type) => {
70304
70222
  return config.keyFieldsForType(type.name).map((key) => {
70305
70223
  return {
70306
- kind: graphql11.Kind.FIELD,
70224
+ kind: graphql12.Kind.FIELD,
70307
70225
  name: {
70308
- kind: graphql11.Kind.NAME,
70226
+ kind: graphql12.Kind.NAME,
70309
70227
  value: key
70310
70228
  }
70311
70229
  };
@@ -70313,7 +70231,7 @@ var objectIdentificationSelection = (config, type) => {
70313
70231
  };
70314
70232
 
70315
70233
  // src/codegen/transforms/paginate.ts
70316
- var graphql12 = __toESM(require("graphql"), 1);
70234
+ var graphql13 = __toESM(require("graphql"), 1);
70317
70235
  async function paginate(config, documents) {
70318
70236
  const newDocs = [];
70319
70237
  for (const doc of documents) {
@@ -70346,7 +70264,7 @@ async function paginate(config, documents) {
70346
70264
  };
70347
70265
  let cursorType = "String";
70348
70266
  let paginationPath = [];
70349
- doc.document = graphql12.visit(doc.document, {
70267
+ doc.document = graphql13.visit(doc.document, {
70350
70268
  Field(node, _3, __, ___, ancestors) {
70351
70269
  const paginateDirective = node.directives?.find(
70352
70270
  (directive) => directive.name.value === config.paginateDirective
@@ -70372,7 +70290,7 @@ async function paginate(config, documents) {
70372
70290
  flags.offset.enabled = offsetPagination;
70373
70291
  flags.limit.enabled = offsetPagination;
70374
70292
  paginationPath = ancestors.filter(
70375
- (ancestor) => !Array.isArray(ancestor) && ancestor.kind === graphql12.Kind.FIELD
70293
+ (ancestor) => !Array.isArray(ancestor) && ancestor.kind === graphql13.Kind.FIELD
70376
70294
  ).concat(node).map((field) => field.alias?.value || field.name.value);
70377
70295
  return {
70378
70296
  ...node,
@@ -70391,7 +70309,7 @@ async function paginate(config, documents) {
70391
70309
  let fragment2 = "";
70392
70310
  let paginateMode = config.defaultPaginateMode;
70393
70311
  const requiredArgs = [];
70394
- doc.document = graphql12.visit(doc.document, {
70312
+ doc.document = graphql13.visit(doc.document, {
70395
70313
  OperationDefinition(node) {
70396
70314
  if (node.operation !== "query") {
70397
70315
  throw new HoudiniError({
@@ -70450,9 +70368,9 @@ async function paginate(config, documents) {
70450
70368
  directives: [
70451
70369
  ...node.directives || [],
70452
70370
  {
70453
- kind: graphql12.Kind.DIRECTIVE,
70371
+ kind: graphql13.Kind.DIRECTIVE,
70454
70372
  name: {
70455
- kind: graphql12.Kind.NAME,
70373
+ kind: graphql13.Kind.NAME,
70456
70374
  value: config.argumentsDirective
70457
70375
  }
70458
70376
  }
@@ -70522,22 +70440,22 @@ async function paginate(config, documents) {
70522
70440
  const paginationArgs = Object.entries(flags).filter(([_3, { enabled }]) => enabled).map(([key, value]) => ({ name: key, ...value }));
70523
70441
  const fragmentSpreadSelection = [
70524
70442
  {
70525
- kind: graphql12.Kind.FRAGMENT_SPREAD,
70443
+ kind: graphql13.Kind.FRAGMENT_SPREAD,
70526
70444
  name: {
70527
- kind: graphql12.Kind.NAME,
70445
+ kind: graphql13.Kind.NAME,
70528
70446
  value: fragmentName
70529
70447
  },
70530
70448
  directives: [
70531
70449
  {
70532
- kind: graphql12.Kind.DIRECTIVE,
70450
+ kind: graphql13.Kind.DIRECTIVE,
70533
70451
  name: {
70534
- kind: graphql12.Kind.NAME,
70452
+ kind: graphql13.Kind.NAME,
70535
70453
  value: config.withDirective
70536
70454
  },
70537
70455
  ["arguments"]: requiredArgs.map((arg) => variableAsArgument(arg.name)).concat(paginationArgs.map(({ name }) => variableAsArgument(name)))
70538
70456
  },
70539
70457
  {
70540
- kind: graphql12.Kind.DIRECTIVE,
70458
+ kind: graphql13.Kind.DIRECTIVE,
70541
70459
  name: {
70542
70460
  kind: "Name",
70543
70461
  value: config.maskDisableDirective
@@ -70564,23 +70482,23 @@ async function paginate(config, documents) {
70564
70482
  });
70565
70483
  const typeConfig = config.typeConfig?.[fragment2];
70566
70484
  const queryDoc = {
70567
- kind: graphql12.Kind.DOCUMENT,
70485
+ kind: graphql13.Kind.DOCUMENT,
70568
70486
  definitions: [
70569
70487
  {
70570
- kind: graphql12.Kind.OPERATION_DEFINITION,
70488
+ kind: graphql13.Kind.OPERATION_DEFINITION,
70571
70489
  name: {
70572
- kind: graphql12.Kind.NAME,
70490
+ kind: graphql13.Kind.NAME,
70573
70491
  value: refetchQueryName
70574
70492
  },
70575
70493
  operation: "query",
70576
70494
  variableDefinitions: requiredArgs.map(
70577
70495
  (arg) => ({
70578
- kind: graphql12.Kind.VARIABLE_DEFINITION,
70496
+ kind: graphql13.Kind.VARIABLE_DEFINITION,
70579
70497
  type: arg.type,
70580
70498
  variable: {
70581
- kind: graphql12.Kind.VARIABLE,
70499
+ kind: graphql13.Kind.VARIABLE,
70582
70500
  name: {
70583
- kind: graphql12.Kind.NAME,
70501
+ kind: graphql13.Kind.NAME,
70584
70502
  value: arg.name
70585
70503
  }
70586
70504
  }
@@ -70588,18 +70506,18 @@ async function paginate(config, documents) {
70588
70506
  ).concat(
70589
70507
  paginationArgs.map(
70590
70508
  (arg) => ({
70591
- kind: graphql12.Kind.VARIABLE_DEFINITION,
70509
+ kind: graphql13.Kind.VARIABLE_DEFINITION,
70592
70510
  type: {
70593
- kind: graphql12.Kind.NAMED_TYPE,
70511
+ kind: graphql13.Kind.NAMED_TYPE,
70594
70512
  name: {
70595
- kind: graphql12.Kind.NAME,
70513
+ kind: graphql13.Kind.NAME,
70596
70514
  value: arg.type
70597
70515
  }
70598
70516
  },
70599
70517
  variable: {
70600
- kind: graphql12.Kind.VARIABLE,
70518
+ kind: graphql13.Kind.VARIABLE,
70601
70519
  name: {
70602
- kind: graphql12.Kind.NAME,
70520
+ kind: graphql13.Kind.NAME,
70603
70521
  value: arg.name
70604
70522
  }
70605
70523
  },
@@ -70611,12 +70529,12 @@ async function paginate(config, documents) {
70611
70529
  ).concat(
70612
70530
  !nodeQuery ? [] : keys2.map(
70613
70531
  (key) => ({
70614
- kind: graphql12.Kind.VARIABLE_DEFINITION,
70532
+ kind: graphql13.Kind.VARIABLE_DEFINITION,
70615
70533
  type: key.type,
70616
70534
  variable: {
70617
- kind: graphql12.Kind.VARIABLE,
70535
+ kind: graphql13.Kind.VARIABLE,
70618
70536
  name: {
70619
- kind: graphql12.Kind.NAME,
70537
+ kind: graphql13.Kind.NAME,
70620
70538
  value: key.name
70621
70539
  }
70622
70540
  }
@@ -70625,42 +70543,42 @@ async function paginate(config, documents) {
70625
70543
  )
70626
70544
  ),
70627
70545
  selectionSet: {
70628
- kind: graphql12.Kind.SELECTION_SET,
70546
+ kind: graphql13.Kind.SELECTION_SET,
70629
70547
  selections: !nodeQuery ? fragmentSpreadSelection : [
70630
70548
  {
70631
- kind: graphql12.Kind.FIELD,
70549
+ kind: graphql13.Kind.FIELD,
70632
70550
  name: {
70633
- kind: graphql12.Kind.NAME,
70551
+ kind: graphql13.Kind.NAME,
70634
70552
  value: typeConfig?.resolve?.queryField || "node"
70635
70553
  },
70636
70554
  ["arguments"]: keys2.map((key) => ({
70637
- kind: graphql12.Kind.ARGUMENT,
70555
+ kind: graphql13.Kind.ARGUMENT,
70638
70556
  name: {
70639
- kind: graphql12.Kind.NAME,
70557
+ kind: graphql13.Kind.NAME,
70640
70558
  value: key.name
70641
70559
  },
70642
70560
  value: {
70643
- kind: graphql12.Kind.VARIABLE,
70561
+ kind: graphql13.Kind.VARIABLE,
70644
70562
  name: {
70645
- kind: graphql12.Kind.NAME,
70563
+ kind: graphql13.Kind.NAME,
70646
70564
  value: key.name
70647
70565
  }
70648
70566
  }
70649
70567
  })),
70650
70568
  selectionSet: {
70651
- kind: graphql12.Kind.SELECTION_SET,
70569
+ kind: graphql13.Kind.SELECTION_SET,
70652
70570
  selections: [
70653
70571
  {
70654
- kind: graphql12.Kind.FIELD,
70572
+ kind: graphql13.Kind.FIELD,
70655
70573
  name: {
70656
- kind: graphql12.Kind.NAME,
70574
+ kind: graphql13.Kind.NAME,
70657
70575
  value: "__typename"
70658
70576
  }
70659
70577
  },
70660
70578
  ...(typeConfig?.keys || [config.defaultKeys[0]]).map((key) => ({
70661
- kind: graphql12.Kind.FIELD,
70579
+ kind: graphql13.Kind.FIELD,
70662
70580
  name: {
70663
- kind: graphql12.Kind.NAME,
70581
+ kind: graphql13.Kind.NAME,
70664
70582
  value: key
70665
70583
  }
70666
70584
  })),
@@ -70717,15 +70635,15 @@ function replaceArgumentsWithVariables(args, flags) {
70717
70635
  }
70718
70636
  function variableAsArgument(name, variable) {
70719
70637
  return {
70720
- kind: graphql12.Kind.ARGUMENT,
70638
+ kind: graphql13.Kind.ARGUMENT,
70721
70639
  name: {
70722
- kind: graphql12.Kind.NAME,
70640
+ kind: graphql13.Kind.NAME,
70723
70641
  value: name
70724
70642
  },
70725
70643
  value: {
70726
- kind: graphql12.Kind.VARIABLE,
70644
+ kind: graphql13.Kind.VARIABLE,
70727
70645
  name: {
70728
- kind: graphql12.Kind.NAME,
70646
+ kind: graphql13.Kind.NAME,
70729
70647
  value: variable ?? name
70730
70648
  }
70731
70649
  }
@@ -70733,18 +70651,18 @@ function variableAsArgument(name, variable) {
70733
70651
  }
70734
70652
  function staticVariableDefinition(name, type, defaultValue, variableName) {
70735
70653
  return {
70736
- kind: graphql12.Kind.VARIABLE_DEFINITION,
70654
+ kind: graphql13.Kind.VARIABLE_DEFINITION,
70737
70655
  type: {
70738
- kind: graphql12.Kind.NAMED_TYPE,
70656
+ kind: graphql13.Kind.NAMED_TYPE,
70739
70657
  name: {
70740
- kind: graphql12.Kind.NAME,
70658
+ kind: graphql13.Kind.NAME,
70741
70659
  value: type
70742
70660
  }
70743
70661
  },
70744
70662
  variable: {
70745
- kind: graphql12.Kind.VARIABLE,
70663
+ kind: graphql13.Kind.VARIABLE,
70746
70664
  name: {
70747
- kind: graphql12.Kind.NAME,
70665
+ kind: graphql13.Kind.NAME,
70748
70666
  value: variableName ?? name
70749
70667
  }
70750
70668
  },
@@ -70756,9 +70674,9 @@ function staticVariableDefinition(name, type, defaultValue, variableName) {
70756
70674
  }
70757
70675
  function argumentNode(name, value) {
70758
70676
  return {
70759
- kind: graphql12.Kind.ARGUMENT,
70677
+ kind: graphql13.Kind.ARGUMENT,
70760
70678
  name: {
70761
- kind: graphql12.Kind.NAME,
70679
+ kind: graphql13.Kind.NAME,
70762
70680
  value: name
70763
70681
  },
70764
70682
  value: objectNode(value)
@@ -70766,16 +70684,16 @@ function argumentNode(name, value) {
70766
70684
  }
70767
70685
  function objectNode([type, defaultValue]) {
70768
70686
  const node = {
70769
- kind: graphql12.Kind.OBJECT,
70687
+ kind: graphql13.Kind.OBJECT,
70770
70688
  fields: [
70771
70689
  {
70772
- kind: graphql12.Kind.OBJECT_FIELD,
70690
+ kind: graphql13.Kind.OBJECT_FIELD,
70773
70691
  name: {
70774
- kind: graphql12.Kind.NAME,
70692
+ kind: graphql13.Kind.NAME,
70775
70693
  value: "type"
70776
70694
  },
70777
70695
  value: {
70778
- kind: graphql12.Kind.STRING,
70696
+ kind: graphql13.Kind.STRING,
70779
70697
  value: type
70780
70698
  }
70781
70699
  }
@@ -70783,8 +70701,8 @@ function objectNode([type, defaultValue]) {
70783
70701
  };
70784
70702
  if (defaultValue) {
70785
70703
  node.fields.push({
70786
- kind: graphql12.Kind.OBJECT_FIELD,
70787
- name: { kind: graphql12.Kind.NAME, value: "default" },
70704
+ kind: graphql13.Kind.OBJECT_FIELD,
70705
+ name: { kind: graphql13.Kind.NAME, value: "default" },
70788
70706
  value: {
70789
70707
  kind: typeof defaultValue === "number" ? "IntValue" : "StringValue",
70790
70708
  value: defaultValue.toString()
@@ -70795,34 +70713,34 @@ function objectNode([type, defaultValue]) {
70795
70713
  }
70796
70714
  var pageInfoSelection = [
70797
70715
  {
70798
- kind: graphql12.Kind.FIELD,
70716
+ kind: graphql13.Kind.FIELD,
70799
70717
  name: {
70800
- kind: graphql12.Kind.NAME,
70718
+ kind: graphql13.Kind.NAME,
70801
70719
  value: "edges"
70802
70720
  },
70803
70721
  selectionSet: {
70804
- kind: graphql12.Kind.SELECTION_SET,
70722
+ kind: graphql13.Kind.SELECTION_SET,
70805
70723
  selections: [
70806
70724
  {
70807
- kind: graphql12.Kind.FIELD,
70725
+ kind: graphql13.Kind.FIELD,
70808
70726
  name: {
70809
- kind: graphql12.Kind.NAME,
70727
+ kind: graphql13.Kind.NAME,
70810
70728
  value: "cursor"
70811
70729
  }
70812
70730
  },
70813
70731
  {
70814
- kind: graphql12.Kind.FIELD,
70732
+ kind: graphql13.Kind.FIELD,
70815
70733
  name: {
70816
- kind: graphql12.Kind.NAME,
70734
+ kind: graphql13.Kind.NAME,
70817
70735
  value: "node"
70818
70736
  },
70819
70737
  selectionSet: {
70820
- kind: graphql12.Kind.SELECTION_SET,
70738
+ kind: graphql13.Kind.SELECTION_SET,
70821
70739
  selections: [
70822
70740
  {
70823
- kind: graphql12.Kind.FIELD,
70741
+ kind: graphql13.Kind.FIELD,
70824
70742
  name: {
70825
- kind: graphql12.Kind.NAME,
70743
+ kind: graphql13.Kind.NAME,
70826
70744
  value: "__typename"
70827
70745
  }
70828
70746
  }
@@ -70833,39 +70751,39 @@ var pageInfoSelection = [
70833
70751
  }
70834
70752
  },
70835
70753
  {
70836
- kind: graphql12.Kind.FIELD,
70754
+ kind: graphql13.Kind.FIELD,
70837
70755
  name: {
70838
- kind: graphql12.Kind.NAME,
70756
+ kind: graphql13.Kind.NAME,
70839
70757
  value: "pageInfo"
70840
70758
  },
70841
70759
  selectionSet: {
70842
- kind: graphql12.Kind.SELECTION_SET,
70760
+ kind: graphql13.Kind.SELECTION_SET,
70843
70761
  selections: [
70844
70762
  {
70845
- kind: graphql12.Kind.FIELD,
70763
+ kind: graphql13.Kind.FIELD,
70846
70764
  name: {
70847
- kind: graphql12.Kind.NAME,
70765
+ kind: graphql13.Kind.NAME,
70848
70766
  value: "hasPreviousPage"
70849
70767
  }
70850
70768
  },
70851
70769
  {
70852
- kind: graphql12.Kind.FIELD,
70770
+ kind: graphql13.Kind.FIELD,
70853
70771
  name: {
70854
- kind: graphql12.Kind.NAME,
70772
+ kind: graphql13.Kind.NAME,
70855
70773
  value: "hasNextPage"
70856
70774
  }
70857
70775
  },
70858
70776
  {
70859
- kind: graphql12.Kind.FIELD,
70777
+ kind: graphql13.Kind.FIELD,
70860
70778
  name: {
70861
- kind: graphql12.Kind.NAME,
70779
+ kind: graphql13.Kind.NAME,
70862
70780
  value: "startCursor"
70863
70781
  }
70864
70782
  },
70865
70783
  {
70866
- kind: graphql12.Kind.FIELD,
70784
+ kind: graphql13.Kind.FIELD,
70867
70785
  name: {
70868
- kind: graphql12.Kind.NAME,
70786
+ kind: graphql13.Kind.NAME,
70869
70787
  value: "endCursor"
70870
70788
  }
70871
70789
  }
@@ -70879,17 +70797,17 @@ async function addListFragments(config, documents) {
70879
70797
  const lists = {};
70880
70798
  const errors = [];
70881
70799
  for (const doc of documents) {
70882
- doc.document = graphql13.visit(doc.document, {
70800
+ doc.document = graphql14.visit(doc.document, {
70883
70801
  Directive(node, key, parent2, path3, ancestors) {
70884
70802
  if ([config.listDirective, config.paginateDirective].includes(node.name.value)) {
70885
70803
  const nameArg = node.arguments?.find(
70886
70804
  (arg) => arg.name.value === config.listOrPaginateNameArg
70887
70805
  );
70888
70806
  let error = {
70889
- ...new graphql13.GraphQLError(
70807
+ ...new graphql14.GraphQLError(
70890
70808
  "",
70891
70809
  node,
70892
- new graphql13.Source(""),
70810
+ new graphql14.Source(""),
70893
70811
  node.loc ? [node.loc.start, node.loc.end] : null,
70894
70812
  path3
70895
70813
  ),
@@ -70941,7 +70859,7 @@ async function addListFragments(config, documents) {
70941
70859
  {
70942
70860
  kind: "Argument",
70943
70861
  name: {
70944
- kind: graphql13.Kind.NAME,
70862
+ kind: graphql14.Kind.NAME,
70945
70863
  value: "connection"
70946
70864
  },
70947
70865
  value: {
@@ -70991,7 +70909,7 @@ async function addListFragments(config, documents) {
70991
70909
  const validDeletes = [
70992
70910
  ...new Set(
70993
70911
  Object.values(lists).map(({ type }) => {
70994
- if (!(type instanceof graphql13.GraphQLObjectType)) {
70912
+ if (!(type instanceof graphql14.GraphQLObjectType)) {
70995
70913
  return "";
70996
70914
  }
70997
70915
  if (config.keyFieldsForType(type.name).length !== 1) {
@@ -71005,7 +70923,7 @@ async function addListFragments(config, documents) {
71005
70923
  return;
71006
70924
  }
71007
70925
  const generatedDoc = {
71008
- kind: graphql13.Kind.DOCUMENT,
70926
+ kind: graphql14.Kind.DOCUMENT,
71009
70927
  definitions: Object.entries(lists).flatMap(
71010
70928
  ([name, { selection, type }]) => {
71011
70929
  const schemaType = config.schema.getType(type.name);
@@ -71013,7 +70931,7 @@ async function addListFragments(config, documents) {
71013
70931
  throw new HoudiniError({ message: "Lists must have a selection" });
71014
70932
  }
71015
70933
  const fragmentSelection = {
71016
- kind: graphql13.Kind.SELECTION_SET,
70934
+ kind: graphql14.Kind.SELECTION_SET,
71017
70935
  selections: [...selection.selections]
71018
70936
  };
71019
70937
  if (schemaType && fragmentSelection && !fragmentSelection?.selections.find(
@@ -71028,14 +70946,14 @@ async function addListFragments(config, documents) {
71028
70946
  {
71029
70947
  name: {
71030
70948
  value: config.listInsertFragment(name),
71031
- kind: graphql13.Kind.NAME
70949
+ kind: graphql14.Kind.NAME
71032
70950
  },
71033
- kind: graphql13.Kind.FRAGMENT_DEFINITION,
70951
+ kind: graphql14.Kind.FRAGMENT_DEFINITION,
71034
70952
  selectionSet: fragmentSelection,
71035
70953
  typeCondition: {
71036
- kind: graphql13.Kind.NAMED_TYPE,
70954
+ kind: graphql14.Kind.NAMED_TYPE,
71037
70955
  name: {
71038
- kind: graphql13.Kind.NAME,
70956
+ kind: graphql14.Kind.NAME,
71039
70957
  value: type.name
71040
70958
  }
71041
70959
  }
@@ -71043,32 +70961,32 @@ async function addListFragments(config, documents) {
71043
70961
  {
71044
70962
  name: {
71045
70963
  value: config.listToggleFragment(name),
71046
- kind: graphql13.Kind.NAME
70964
+ kind: graphql14.Kind.NAME
71047
70965
  },
71048
- kind: graphql13.Kind.FRAGMENT_DEFINITION,
70966
+ kind: graphql14.Kind.FRAGMENT_DEFINITION,
71049
70967
  selectionSet: fragmentSelection,
71050
70968
  typeCondition: {
71051
- kind: graphql13.Kind.NAMED_TYPE,
70969
+ kind: graphql14.Kind.NAMED_TYPE,
71052
70970
  name: {
71053
- kind: graphql13.Kind.NAME,
70971
+ kind: graphql14.Kind.NAME,
71054
70972
  value: type.name
71055
70973
  }
71056
70974
  }
71057
70975
  },
71058
70976
  {
71059
- kind: graphql13.Kind.FRAGMENT_DEFINITION,
70977
+ kind: graphql14.Kind.FRAGMENT_DEFINITION,
71060
70978
  name: {
71061
70979
  value: config.listRemoveFragment(name),
71062
- kind: graphql13.Kind.NAME
70980
+ kind: graphql14.Kind.NAME
71063
70981
  },
71064
70982
  selectionSet: {
71065
- kind: graphql13.Kind.SELECTION_SET,
70983
+ kind: graphql14.Kind.SELECTION_SET,
71066
70984
  selections: [...objectIdentificationSelection(config, type)]
71067
70985
  },
71068
70986
  typeCondition: {
71069
- kind: graphql13.Kind.NAMED_TYPE,
70987
+ kind: graphql14.Kind.NAMED_TYPE,
71070
70988
  name: {
71071
- kind: graphql13.Kind.NAME,
70989
+ kind: graphql14.Kind.NAME,
71072
70990
  value: type.name
71073
70991
  }
71074
70992
  }
@@ -71077,14 +70995,14 @@ async function addListFragments(config, documents) {
71077
70995
  }
71078
70996
  ).concat(
71079
70997
  ...validDeletes.map((typeName) => ({
71080
- kind: graphql13.Kind.DIRECTIVE_DEFINITION,
70998
+ kind: graphql14.Kind.DIRECTIVE_DEFINITION,
71081
70999
  name: {
71082
- kind: graphql13.Kind.NAME,
71000
+ kind: graphql14.Kind.NAME,
71083
71001
  value: config.listDeleteDirective(typeName)
71084
71002
  },
71085
71003
  locations: [
71086
71004
  {
71087
- kind: graphql13.Kind.NAME,
71005
+ kind: graphql14.Kind.NAME,
71088
71006
  value: "FIELD"
71089
71007
  }
71090
71008
  ],
@@ -71092,8 +71010,8 @@ async function addListFragments(config, documents) {
71092
71010
  }))
71093
71011
  )
71094
71012
  };
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");
71013
+ config.newSchema += "\n" + generatedDoc.definitions.filter((c2) => c2.kind !== "FragmentDefinition").map(graphql14.print).join("\n\n");
71014
+ config.newDocuments += "\n" + generatedDoc.definitions.filter((c2) => c2.kind === "FragmentDefinition").map(graphql14.print).join("\n\n");
71097
71015
  documents.push({
71098
71016
  name: "generated::lists",
71099
71017
  kind: ArtifactKind.Fragment,
@@ -71179,11 +71097,11 @@ var nodeNotDefinedMessage = (config) => `Looks like you are trying to use the ${
71179
71097
  For more information, visit this link: ${siteURL}/guides/pagination`;
71180
71098
 
71181
71099
  // src/codegen/generators/artifacts/fieldKey.ts
71182
- var graphql14 = __toESM(require("graphql"), 1);
71100
+ var graphql15 = __toESM(require("graphql"), 1);
71183
71101
  function fieldKey(config, field) {
71184
71102
  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];
71103
+ const printed = graphql15.print(field);
71104
+ const secondParse = graphql15.parse(`{${printed}}`).definitions[0].selectionSet.selections[0];
71187
71105
  let paginateMode = config.defaultPaginateMode;
71188
71106
  const paginatedDirective = field.directives?.find(
71189
71107
  (directive) => directive.name.value === config.paginateDirective
@@ -71306,13 +71224,13 @@ function prepareSelection({
71306
71224
  } else if ("getFields" in type) {
71307
71225
  let typeRef = type.getFields()[field.name.value].type;
71308
71226
  fieldType = getRootType(typeRef);
71309
- nullable = !graphql15.isNonNullType(typeRef);
71310
- } else if (graphql15.isAbstractType(type)) {
71227
+ nullable = !graphql16.isNonNullType(typeRef);
71228
+ } else if (graphql16.isAbstractType(type)) {
71311
71229
  for (const possible of config.schema.getPossibleTypes(type)) {
71312
- if (graphql15.isObjectType(possible)) {
71230
+ if (graphql16.isObjectType(possible)) {
71313
71231
  if (possible.getFields()[field.name.value]) {
71314
71232
  fieldType = possible.getFields()[field.name.value].type;
71315
- nullable = !graphql15.isNonNullType(fieldType);
71233
+ nullable = !graphql16.isNonNullType(fieldType);
71316
71234
  break;
71317
71235
  }
71318
71236
  }
@@ -71449,7 +71367,7 @@ function prepareSelection({
71449
71367
  kind: "value"
71450
71368
  } : { kind: "continue" };
71451
71369
  const parentType = config.schema.getType(rootType);
71452
- if (graphql15.isObjectType(parentType) || graphql15.isInterfaceType(parentType)) {
71370
+ if (graphql16.isObjectType(parentType) || graphql16.isInterfaceType(parentType)) {
71453
71371
  const fieldType2 = parentType.getFields()[field.name.value]?.type;
71454
71372
  if (fieldType2) {
71455
71373
  const listCount = unwrapType(config, fieldType2).wrappers.filter(
@@ -71472,7 +71390,7 @@ function prepareSelection({
71472
71390
  }
71473
71391
  fieldObj.loading = loadingValue;
71474
71392
  }
71475
- if (graphql15.isInterfaceType(fieldType) || graphql15.isUnionType(fieldType)) {
71393
+ if (graphql16.isInterfaceType(fieldType) || graphql16.isUnionType(fieldType)) {
71476
71394
  fieldObj.abstract = true;
71477
71395
  if (Object.values(fieldObj.selection?.abstractFields?.fields ?? {}).some(
71478
71396
  (fields) => Object.values(fields ?? {}).some((field2) => field2.required)
@@ -71554,7 +71472,7 @@ function mergeSelection({
71554
71472
  typeSelection,
71555
71473
  abstractSelection.fields[typeName] ?? {}
71556
71474
  );
71557
- if (graphql15.isAbstractType(gqlType)) {
71475
+ if (graphql16.isAbstractType(gqlType)) {
71558
71476
  for (const possible of config.schema.getPossibleTypes(gqlType)) {
71559
71477
  if (!possibleSelectionTypes[typeName]) {
71560
71478
  possibleSelectionTypes[typeName] = [];
@@ -71589,7 +71507,7 @@ function mergeSelection({
71589
71507
  }
71590
71508
  }
71591
71509
  const parentType = config.schema.getType(rootType);
71592
- const possibleParents = graphql15.isAbstractType(parentType) ? config.schema.getPossibleTypes(parentType)?.map((t3) => t3.name) : [parentType.name];
71510
+ const possibleParents = graphql16.isAbstractType(parentType) ? config.schema.getPossibleTypes(parentType)?.map((t3) => t3.name) : [parentType.name];
71593
71511
  for (const key of Object.keys(abstractSelection.typeMap)) {
71594
71512
  if (!possibleParents.includes(key) && rootType !== key || abstractSelection.fields[key]) {
71595
71513
  delete abstractSelection.typeMap[key];
@@ -71646,12 +71564,12 @@ function mergeSelection({
71646
71564
  }
71647
71565
 
71648
71566
  // src/codegen/generators/artifacts/index.ts
71649
- var AST4 = recast4.types.builders;
71567
+ var AST5 = recast5.types.builders;
71650
71568
  function artifactGenerator(stats) {
71651
71569
  return async function(config, docs) {
71652
71570
  const filterTypes = {};
71653
71571
  for (const doc of docs) {
71654
- graphql16.visit(doc.document, {
71572
+ graphql17.visit(doc.document, {
71655
71573
  Directive(node, _3, __, ___, ancestors) {
71656
71574
  if (node.name.value !== config.listDirective) {
71657
71575
  return;
@@ -71711,7 +71629,7 @@ function artifactGenerator(stats) {
71711
71629
  return;
71712
71630
  }
71713
71631
  const usedVariableNames = /* @__PURE__ */ new Set();
71714
- let documentWithoutInternalDirectives = graphql16.visit(document, {
71632
+ let documentWithoutInternalDirectives = graphql17.visit(document, {
71715
71633
  Directive(node) {
71716
71634
  if (config.isInternalDirective(node.name.value)) {
71717
71635
  return null;
@@ -71724,7 +71642,7 @@ function artifactGenerator(stats) {
71724
71642
  }
71725
71643
  }
71726
71644
  });
71727
- let documentWithoutExtraVariables = graphql16.visit(
71645
+ let documentWithoutExtraVariables = graphql17.visit(
71728
71646
  documentWithoutInternalDirectives,
71729
71647
  {
71730
71648
  VariableDefinition(variableDefinitionNode) {
@@ -71735,13 +71653,13 @@ function artifactGenerator(stats) {
71735
71653
  }
71736
71654
  }
71737
71655
  );
71738
- let rawString = graphql16.print(documentWithoutExtraVariables);
71656
+ let rawString = graphql17.print(documentWithoutExtraVariables);
71739
71657
  let docKind = doc.kind;
71740
71658
  const operations = document.definitions.filter(
71741
- ({ kind }) => kind === graphql16.Kind.OPERATION_DEFINITION
71659
+ ({ kind }) => kind === graphql17.Kind.OPERATION_DEFINITION
71742
71660
  );
71743
71661
  const fragments = document.definitions.filter(
71744
- ({ kind }) => kind === graphql16.Kind.FRAGMENT_DEFINITION
71662
+ ({ kind }) => kind === graphql17.Kind.FRAGMENT_DEFINITION
71745
71663
  );
71746
71664
  let rootType = "";
71747
71665
  let selectionSet;
@@ -71941,9 +71859,9 @@ function artifactGenerator(stats) {
71941
71859
  plugin2.artifactEnd({ config, document: doc });
71942
71860
  }
71943
71861
  const _houdiniHash = hashOriginal({ document: doc });
71944
- const file = AST4.program([
71862
+ const file = AST5.program([
71945
71863
  moduleExport(config, "default", serializeValue(artifact)),
71946
- AST4.expressionStatement(AST4.stringLiteral(`HoudiniHash=${_houdiniHash}`))
71864
+ AST5.expressionStatement(AST5.stringLiteral(`HoudiniHash=${_houdiniHash}`))
71947
71865
  ]);
71948
71866
  const artifactPath = config.artifactPath(document);
71949
71867
  const countDocument = doc.generateStore;
@@ -72001,7 +71919,7 @@ function applyMask(config, target, mask) {
72001
71919
  if (!targetType) {
72002
71920
  continue;
72003
71921
  }
72004
- if (graphql16.isAbstractType(targetType)) {
71922
+ if (graphql17.isAbstractType(targetType)) {
72005
71923
  for (const possible of config.schema.getPossibleTypes(targetType)) {
72006
71924
  if (target.abstractFields?.fields[possible.name]) {
72007
71925
  applyMask(
@@ -72024,8 +71942,8 @@ function applyMask(config, target, mask) {
72024
71942
  }
72025
71943
 
72026
71944
  // src/codegen/generators/runtime/graphqlFunction.ts
72027
- var recast5 = __toESM(require_main2(), 1);
72028
- var AST5 = recast5.types.builders;
71945
+ var recast6 = __toESM(require_main2(), 1);
71946
+ var AST6 = recast6.types.builders;
72029
71947
  async function generateGraphqlReturnTypes(config, docs) {
72030
71948
  const indexPath = path_exports.join(config.runtimeDirectory, "index.d.ts");
72031
71949
  const fileContent = await fs_exports.readFile(indexPath) || "";
@@ -72060,18 +71978,18 @@ async function generateGraphqlReturnTypes(config, docs) {
72060
71978
  continue;
72061
71979
  }
72062
71980
  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))
71981
+ const input = AST6.identifier("str");
71982
+ input.typeAnnotation = AST6.tsTypeAnnotation(
71983
+ AST6.tsLiteralType(AST6.stringLiteral(queryString))
72066
71984
  );
72067
71985
  script.body.splice(
72068
71986
  i2,
72069
71987
  0,
72070
- AST5.exportNamedDeclaration(
72071
- AST5.tsDeclareFunction(
72072
- AST5.identifier("graphql"),
71988
+ AST6.exportNamedDeclaration(
71989
+ AST6.tsDeclareFunction(
71990
+ AST6.identifier("graphql"),
72073
71991
  [input],
72074
- AST5.tsTypeAnnotation(AST5.tsTypeReference(AST5.identifier(returnValue)))
71992
+ AST6.tsTypeAnnotation(AST6.tsTypeReference(AST6.identifier(returnValue)))
72075
71993
  )
72076
71994
  )
72077
71995
  );
@@ -72246,165 +72164,22 @@ function moduleStatments(config) {
72246
72164
  var recast11 = __toESM(require_main2(), 1);
72247
72165
 
72248
72166
  // 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
72167
  var graphql18 = __toESM(require("graphql"), 1);
72254
72168
  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
72169
  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
72170
  function addReferencedInputTypes(config, filepath, body, visitedTypes, missingScalars, rootType) {
72396
72171
  const { type } = unwrapType(config, rootType);
72397
- if (graphql19.isScalarType(type)) {
72172
+ if (graphql18.isScalarType(type)) {
72398
72173
  return;
72399
72174
  }
72400
72175
  if (visitedTypes.has(type.name)) {
72401
72176
  return;
72402
72177
  }
72403
- if (graphql19.isUnionType(type)) {
72178
+ if (graphql18.isUnionType(type)) {
72404
72179
  throw new HoudiniError({ filepath, message: "Input Unions are not supported yet. Sorry!" });
72405
72180
  }
72406
72181
  visitedTypes.add(type.name);
72407
- if (graphql19.isEnumType(type)) {
72182
+ if (graphql18.isEnumType(type)) {
72408
72183
  ensureImports({
72409
72184
  config,
72410
72185
  body,
@@ -72418,21 +72193,37 @@ function addReferencedInputTypes(config, filepath, body, visitedTypes, missingSc
72418
72193
  for (const field of Object.values(type.getFields())) {
72419
72194
  addReferencedInputTypes(config, filepath, body, visitedTypes, missingScalars, field.type);
72420
72195
  members.push(
72421
- AST8.tsPropertySignature(
72422
- AST8.identifier(field.name),
72423
- AST8.tsTypeAnnotation(
72196
+ AST7.tsPropertySignature(
72197
+ AST7.identifier(field.name),
72198
+ AST7.tsTypeAnnotation(
72424
72199
  tsTypeReference(config, filepath, missingScalars, field, body)
72425
72200
  ),
72426
- graphql19.isNullableType(field.type)
72201
+ graphql18.isNullableType(field.type)
72427
72202
  )
72428
72203
  );
72429
72204
  }
72430
- body.push(AST8.tsTypeAliasDeclaration(AST8.identifier(type.name), AST8.tsTypeLiteral(members)));
72205
+ body.push(AST7.tsTypeAliasDeclaration(AST7.identifier(type.name), AST7.tsTypeLiteral(members)));
72431
72206
  }
72432
72207
 
72433
72208
  // src/codegen/generators/typescript/inlineType.ts
72434
- var graphql20 = __toESM(require("graphql"), 1);
72209
+ var graphql19 = __toESM(require("graphql"), 1);
72435
72210
  var recast9 = __toESM(require_main2(), 1);
72211
+
72212
+ // src/codegen/generators/comments/jsdoc.ts
72213
+ var recast8 = __toESM(require_main2(), 1);
72214
+ var AST8 = recast8.types.builders;
72215
+ function jsdocComment(text, deprecated) {
72216
+ let commentContent = `*
72217
+ * ${text}
72218
+ `;
72219
+ if (deprecated) {
72220
+ commentContent = `${commentContent} * @deprecated ${deprecated}
72221
+ `;
72222
+ }
72223
+ return AST8.commentBlock(commentContent, true);
72224
+ }
72225
+
72226
+ // src/codegen/generators/typescript/inlineType.ts
72436
72227
  var AST9 = recast9.types.builders;
72437
72228
  var fragmentKey2 = " $fragments";
72438
72229
  function inlineType({
@@ -72453,7 +72244,7 @@ function inlineType({
72453
72244
  const { type, wrappers } = unwrapType(config, rootType);
72454
72245
  let result;
72455
72246
  let forceNullable = false;
72456
- if (graphql20.isScalarType(type)) {
72247
+ if (graphql19.isScalarType(type)) {
72457
72248
  result = scalarPropertyValue(
72458
72249
  config,
72459
72250
  filepath,
@@ -72462,7 +72253,7 @@ function inlineType({
72462
72253
  body,
72463
72254
  field
72464
72255
  );
72465
- } else if (graphql20.isEnumType(type)) {
72256
+ } else if (graphql19.isEnumType(type)) {
72466
72257
  ensureImports({
72467
72258
  config,
72468
72259
  body,
@@ -72487,11 +72278,11 @@ function inlineType({
72487
72278
  for (const selection of selections) {
72488
72279
  if (selection.kind === "InlineFragment" && selection.typeCondition) {
72489
72280
  const fragmentType = config.schema.getType(selection.typeCondition.name.value);
72490
- if (!graphql20.isInterfaceType(type) && !graphql20.isUnionType(type)) {
72281
+ if (!graphql19.isInterfaceType(type) && !graphql19.isUnionType(type)) {
72491
72282
  selectedFields.push(...selection.selectionSet.selections);
72492
72283
  continue;
72493
72284
  }
72494
- if (!graphql20.isInterfaceType(fragmentType) && !graphql20.isUnionType(fragmentType)) {
72285
+ if (!graphql19.isInterfaceType(fragmentType) && !graphql19.isUnionType(fragmentType)) {
72495
72286
  if (!inlineFragments[fragmentType.name]) {
72496
72287
  inlineFragments[fragmentType.name] = [];
72497
72288
  }
@@ -72583,6 +72374,11 @@ function inlineType({
72583
72374
  if (allOptional) {
72584
72375
  prop.optional = true;
72585
72376
  }
72377
+ if (field2.description || field2.deprecationReason) {
72378
+ prop.comments = [
72379
+ jsdocComment(field2.description ?? "", field2.deprecationReason ?? void 0)
72380
+ ];
72381
+ }
72586
72382
  return prop;
72587
72383
  })
72588
72384
  ]);
@@ -72634,7 +72430,7 @@ function inlineType({
72634
72430
  }
72635
72431
  }
72636
72432
  }
72637
- if (objectType.type === "TSTypeLiteral" && !graphql20.isInterfaceType(fragmentRootType) && !graphql20.isUnionType(fragmentRootType)) {
72433
+ if (objectType.type === "TSTypeLiteral" && !graphql19.isInterfaceType(fragmentRootType) && !graphql19.isUnionType(fragmentRootType)) {
72638
72434
  const existingTypenameIndex = objectType.members.findIndex(
72639
72435
  (member) => member.type === "TSPropertySignature" && member.key.type === "Identifier" && member.key.name === "__typename"
72640
72436
  );
@@ -72659,11 +72455,11 @@ function inlineType({
72659
72455
  ];
72660
72456
  }
72661
72457
  let coveredTypenames;
72662
- if (graphql20.isInterfaceType(fragmentRootType)) {
72458
+ if (graphql19.isInterfaceType(fragmentRootType)) {
72663
72459
  coveredTypenames = interfaceCoveredTypenames(fragmentRootType);
72664
- } else if (graphql20.isUnionType(fragmentRootType)) {
72460
+ } else if (graphql19.isUnionType(fragmentRootType)) {
72665
72461
  coveredTypenames = fragmentRootType.getTypes().map((type2) => type2.name);
72666
- } else if (graphql20.isObjectType(fragmentRootType)) {
72462
+ } else if (graphql19.isObjectType(fragmentRootType)) {
72667
72463
  coveredTypenames = [fragmentRootType.name];
72668
72464
  } else {
72669
72465
  throw Error("unreachable code");
@@ -72699,7 +72495,7 @@ function inlineType({
72699
72495
  );
72700
72496
  }
72701
72497
  );
72702
- const parentIsUnionOrInterface = !graphql20.isInterfaceType(type) && !graphql20.isUnionType(type);
72498
+ const parentIsUnionOrInterface = !graphql19.isInterfaceType(type) && !graphql19.isUnionType(type);
72703
72499
  const possibleTypenames = parentIsUnionOrInterface ? [parent.name] : config.schema.getPossibleTypes(type).map((type2) => type2.name);
72704
72500
  const coveredTypenames = new Set(
72705
72501
  Object.values(inlineFragmentSelections).flatMap((sel) => sel.coveredTypenames)
@@ -72766,7 +72562,7 @@ function selectionTypeInfo(schema, filepath, rootType, selection) {
72766
72562
  },
72767
72563
  type: schema.getType("String")
72768
72564
  };
72769
- } else if (graphql20.isNonNullType(rootType) && "getFields" in rootType.ofType) {
72565
+ } else if (graphql19.isNonNullType(rootType) && "getFields" in rootType.ofType) {
72770
72566
  fields = rootType.ofType.getFields();
72771
72567
  } else {
72772
72568
  fields = rootType.getFields();
@@ -72778,7 +72574,7 @@ function selectionTypeInfo(schema, filepath, rootType, selection) {
72778
72574
  message: `Could not find type information for field ${rootType.toString()}.${selectionName} ${field}`
72779
72575
  });
72780
72576
  }
72781
- const fieldType = graphql20.getNamedType(field.type);
72577
+ const fieldType = graphql19.getNamedType(field.type);
72782
72578
  if (!fieldType) {
72783
72579
  throw new HoudiniError({
72784
72580
  filepath,
@@ -73286,7 +73082,7 @@ async function generateFragmentTypeDefs(config, filepath, body, selections, defi
73286
73082
  }
73287
73083
 
73288
73084
  // src/codegen/generators/typescript/imperativeTypeDef.ts
73289
- var graphql21 = __toESM(require("graphql"), 1);
73085
+ var graphql20 = __toESM(require("graphql"), 1);
73290
73086
  var recast12 = __toESM(require_main2(), 1);
73291
73087
  var AST12 = recast12.types.builders;
73292
73088
  async function imperativeCacheTypef(config, docs) {
@@ -73338,7 +73134,7 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
73338
73134
  const operationTypes = [config.schema.getMutationType(), config.schema.getSubscriptionType()].filter(Boolean).map((type) => type?.name);
73339
73135
  const visitedTypes = /* @__PURE__ */ new Set();
73340
73136
  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)
73137
+ (type) => !graphql20.isAbstractType(type) && !graphql20.isScalarType(type) && !graphql20.isEnumType(type) && !graphql20.isInputObjectType(type) && !type.name.startsWith("__") && !operationTypes.includes(type.name)
73342
73138
  );
73343
73139
  const fragmentMap = fragmentListMap(
73344
73140
  config,
@@ -73355,7 +73151,7 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
73355
73151
  }
73356
73152
  let idFields = AST12.tsNeverKeyword();
73357
73153
  const keys2 = keyFieldsForType(config.configFile, type.name);
73358
- if (graphql21.isObjectType(type) && keys2.length > 0 && keys2.every((key) => type.getFields()[key])) {
73154
+ if (graphql20.isObjectType(type) && keys2.length > 0 && keys2.every((key) => type.getFields()[key])) {
73359
73155
  idFields = AST12.tsTypeLiteral(
73360
73156
  keys2.map((key) => {
73361
73157
  const fieldType = type.getFields()[key];
@@ -73382,13 +73178,13 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
73382
73178
  idFields = AST12.tsTypeLiteral([]);
73383
73179
  }
73384
73180
  let fields = AST12.tsTypeLiteral([]);
73385
- if (graphql21.isObjectType(type)) {
73181
+ if (graphql20.isObjectType(type)) {
73386
73182
  fields = AST12.tsTypeLiteral(
73387
73183
  Object.entries(type.getFields()).map(
73388
73184
  ([key, fieldType]) => {
73389
73185
  const unwrapped = unwrapType(config, fieldType.type);
73390
73186
  let typeOptions = AST12.tsUnionType([]);
73391
- if (graphql21.isScalarType(unwrapped.type)) {
73187
+ if (graphql20.isScalarType(unwrapped.type)) {
73392
73188
  typeOptions.types.push(
73393
73189
  scalarPropertyValue(
73394
73190
  config,
@@ -73402,11 +73198,11 @@ function typeDefinitions(config, filepath, body, docs, returnType) {
73402
73198
  }
73403
73199
  )
73404
73200
  );
73405
- } else if (graphql21.isEnumType(unwrapped.type)) {
73201
+ } else if (graphql20.isEnumType(unwrapped.type)) {
73406
73202
  typeOptions.types.push(
73407
73203
  AST12.tsTypeReference(AST12.identifier(unwrapped.type.name))
73408
73204
  );
73409
- } else if (!graphql21.isAbstractType(unwrapped.type)) {
73205
+ } else if (!graphql20.isAbstractType(unwrapped.type)) {
73410
73206
  typeOptions.types.push(record(unwrapped.type.name));
73411
73207
  } else {
73412
73208
  typeOptions.types.push(
@@ -73502,7 +73298,7 @@ function listDefinitions(config, filepath, body, docs) {
73502
73298
  const lists = [];
73503
73299
  const visitedLists = /* @__PURE__ */ new Set();
73504
73300
  for (const doc of docs) {
73505
- graphql21.visit(doc.document, {
73301
+ graphql20.visit(doc.document, {
73506
73302
  Directive(node, key, parent2, path3, ancestors) {
73507
73303
  if (![config.listDirective, config.paginateDirective].includes(node.name.value)) {
73508
73304
  return;
@@ -73524,7 +73320,7 @@ function listDefinitions(config, filepath, body, docs) {
73524
73320
  const targetFieldDefinition = parentType.getFields()[targetField.name.value];
73525
73321
  const { type: listType } = unwrapType(config, targetFieldDefinition.type);
73526
73322
  const possibleTypes = [];
73527
- if (graphql21.isAbstractType(listType)) {
73323
+ if (graphql20.isAbstractType(listType)) {
73528
73324
  possibleTypes.push(
73529
73325
  ...config.schema.getPossibleTypes(listType).map((possible) => possible.name)
73530
73326
  );
@@ -73686,7 +73482,7 @@ async function typescriptGenerator(config, docs) {
73686
73482
  }
73687
73483
 
73688
73484
  // src/codegen/generators/persistedQueries/index.ts
73689
- var graphql22 = __toESM(require("graphql"), 1);
73485
+ var graphql21 = __toESM(require("graphql"), 1);
73690
73486
  async function persistOutputGenerator(config, docs) {
73691
73487
  if (!config.persistedQueriesPath.endsWith(".json")) {
73692
73488
  throw new Error('Can write Persisted Queries only in a ".json" file.');
@@ -73696,8 +73492,8 @@ async function persistOutputGenerator(config, docs) {
73696
73492
  if (!generateArtifact) {
73697
73493
  return acc;
73698
73494
  }
73699
- let rawString = graphql22.print(
73700
- graphql22.visit(document, {
73495
+ let rawString = graphql21.print(
73496
+ graphql21.visit(document, {
73701
73497
  Directive(node) {
73702
73498
  if (config.isInternalDirective(node.name.value)) {
73703
73499
  return null;
@@ -73706,7 +73502,7 @@ async function persistOutputGenerator(config, docs) {
73706
73502
  })
73707
73503
  );
73708
73504
  const operations = document.definitions.filter(
73709
- ({ kind }) => kind === graphql22.Kind.OPERATION_DEFINITION
73505
+ ({ kind }) => kind === graphql21.Kind.OPERATION_DEFINITION
73710
73506
  );
73711
73507
  if (operations.length > 0 && operations[0].kind === "OperationDefinition") {
73712
73508
  if (artifact) {
@@ -73721,33 +73517,45 @@ async function persistOutputGenerator(config, docs) {
73721
73517
  }
73722
73518
 
73723
73519
  // src/codegen/generators/definitions/index.ts
73724
- var graphql24 = __toESM(require("graphql"), 1);
73520
+ var graphql23 = __toESM(require("graphql"), 1);
73725
73521
 
73726
73522
  // src/codegen/generators/definitions/enums.ts
73727
- var graphql23 = __toESM(require("graphql"), 1);
73523
+ var graphql22 = __toESM(require("graphql"), 1);
73728
73524
  var recast13 = __toESM(require_main2(), 1);
73729
73525
  var AST13 = recast13.types.builders;
73730
73526
  async function definitionsGenerator(config) {
73731
- const enums = graphql23.parse(graphql23.printSchema(config.schema)).definitions.filter(
73527
+ const enums = graphql22.parse(graphql22.printSchema(config.schema)).definitions.filter(
73732
73528
  (definition) => definition.kind === "EnumTypeDefinition"
73733
73529
  ).filter((def) => !config.isInternalEnum(def));
73734
73530
  const { code: runtimeDefinitions } = await printJS(
73735
73531
  AST13.program(
73736
73532
  enums.map((defn) => {
73737
73533
  const name = defn.name.value;
73738
- return moduleExport(
73534
+ const declaration = moduleExport(
73739
73535
  config,
73740
73536
  name,
73741
73537
  AST13.objectExpression(
73742
73538
  defn.values?.map((value) => {
73743
73539
  const str = value.name.value;
73744
- return AST13.objectProperty(
73540
+ const prop = AST13.objectProperty(
73745
73541
  AST13.stringLiteral(str),
73746
73542
  AST13.stringLiteral(str)
73747
73543
  );
73544
+ const deprecationReason = value.directives?.find((d3) => d3.name.value === "deprecated")?.arguments?.find((a2) => a2.name.value === "reason")?.value?.value;
73545
+ if (value.description || deprecationReason)
73546
+ prop.comments = [
73547
+ jsdocComment(value.description?.value ?? "", deprecationReason)
73548
+ ];
73549
+ return prop;
73748
73550
  }) || []
73749
73551
  )
73750
73552
  );
73553
+ if (defn.description) {
73554
+ declaration.comments = [
73555
+ AST13.commentBlock(`* ${defn.description.value} `, true, false)
73556
+ ];
73557
+ }
73558
+ return declaration;
73751
73559
  })
73752
73560
  )
73753
73561
  );
@@ -73756,11 +73564,19 @@ type ValuesOf<T> = T[keyof T]
73756
73564
  ` + enums.sort((a2, b2) => a2.name.value.localeCompare(b2.name.value)).map((definition) => {
73757
73565
  const name = definition.name.value;
73758
73566
  const values = definition.values;
73759
- return `
73567
+ let jsdoc = "";
73568
+ if (definition.description) {
73569
+ jsdoc = `
73570
+ /** ${definition.description.value} */`;
73571
+ }
73572
+ return `${jsdoc}
73760
73573
  export declare const ${name}: {
73761
- ${values?.map((value) => ` readonly ${value.name.value}: "${value.name.value}";`).join("\n")}
73574
+ ${values?.map(
73575
+ (value) => (value.description ? ` /** ${value.description.value} */
73576
+ ` : "") + ` readonly ${value.name.value}: "${value.name.value}";`
73577
+ ).join("\n")}
73762
73578
  }
73763
-
73579
+ ${jsdoc}
73764
73580
  export type ${name}$options = ValuesOf<typeof ${name}>
73765
73581
  `;
73766
73582
  }).join("");
@@ -73780,7 +73596,7 @@ async function schemaGenerator(config) {
73780
73596
  await Promise.all([
73781
73597
  fs_exports.writeFile(
73782
73598
  config.definitionsSchemaPath,
73783
- config.localSchema ? graphql24.printSchema(config.schema) : config.newSchema
73599
+ config.localSchema ? graphql23.printSchema(config.schema) : config.newSchema
73784
73600
  ),
73785
73601
  fs_exports.writeFile(config.definitionsDocumentsPath, config.newDocuments),
73786
73602
  definitionsGenerator(config)
@@ -73825,7 +73641,7 @@ async function writeIndexFile2(config, docs) {
73825
73641
  }
73826
73642
 
73827
73643
  // ../../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");
73644
+ var import_graphql33 = require("graphql");
73829
73645
  function compareStrings2(a2, b2) {
73830
73646
  if (String(a2) < String(b2)) {
73831
73647
  return -1;
@@ -73861,7 +73677,7 @@ function isSome2(input) {
73861
73677
  }
73862
73678
 
73863
73679
  // ../../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");
73680
+ var import_graphql34 = require("graphql");
73865
73681
  var MAX_RECURSIVE_DEPTH2 = 3;
73866
73682
  function inspect2(value) {
73867
73683
  return formatValue2(value, []);
@@ -73879,7 +73695,7 @@ function formatValue2(value, seenValues) {
73879
73695
  }
73880
73696
  }
73881
73697
  function formatError2(value) {
73882
- if (value instanceof import_graphql33.GraphQLError) {
73698
+ if (value instanceof import_graphql34.GraphQLError) {
73883
73699
  return value.toString();
73884
73700
  }
73885
73701
  return `${value.name}: ${value.message};
@@ -73962,43 +73778,43 @@ function getDirectivesInExtensions2(node, pathToDirectivesInExtensions = ["direc
73962
73778
  }
73963
73779
 
73964
73780
  // ../../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");
73781
+ var import_graphql38 = require("graphql");
73966
73782
 
73967
73783
  // ../../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");
73784
+ var import_graphql35 = require("graphql");
73969
73785
  function astFromType2(type) {
73970
- if ((0, import_graphql34.isNonNullType)(type)) {
73786
+ if ((0, import_graphql35.isNonNullType)(type)) {
73971
73787
  const innerType = astFromType2(type.ofType);
73972
- if (innerType.kind === import_graphql34.Kind.NON_NULL_TYPE) {
73788
+ if (innerType.kind === import_graphql35.Kind.NON_NULL_TYPE) {
73973
73789
  throw new Error(`Invalid type node ${inspect2(type)}. Inner type of non-null type cannot be a non-null type.`);
73974
73790
  }
73975
73791
  return {
73976
- kind: import_graphql34.Kind.NON_NULL_TYPE,
73792
+ kind: import_graphql35.Kind.NON_NULL_TYPE,
73977
73793
  type: innerType
73978
73794
  };
73979
- } else if ((0, import_graphql34.isListType)(type)) {
73795
+ } else if ((0, import_graphql35.isListType)(type)) {
73980
73796
  return {
73981
- kind: import_graphql34.Kind.LIST_TYPE,
73797
+ kind: import_graphql35.Kind.LIST_TYPE,
73982
73798
  type: astFromType2(type.ofType)
73983
73799
  };
73984
73800
  }
73985
73801
  return {
73986
- kind: import_graphql34.Kind.NAMED_TYPE,
73802
+ kind: import_graphql35.Kind.NAMED_TYPE,
73987
73803
  name: {
73988
- kind: import_graphql34.Kind.NAME,
73804
+ kind: import_graphql35.Kind.NAME,
73989
73805
  value: type.name
73990
73806
  }
73991
73807
  };
73992
73808
  }
73993
73809
 
73994
73810
  // ../../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");
73811
+ var import_graphql37 = require("graphql");
73996
73812
 
73997
73813
  // ../../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");
73814
+ var import_graphql36 = require("graphql");
73999
73815
  function astFromValueUntyped2(value) {
74000
73816
  if (value === null) {
74001
- return { kind: import_graphql35.Kind.NULL };
73817
+ return { kind: import_graphql36.Kind.NULL };
74002
73818
  }
74003
73819
  if (value === void 0) {
74004
73820
  return null;
@@ -74011,7 +73827,7 @@ function astFromValueUntyped2(value) {
74011
73827
  valuesNodes.push(itemNode);
74012
73828
  }
74013
73829
  }
74014
- return { kind: import_graphql35.Kind.LIST, values: valuesNodes };
73830
+ return { kind: import_graphql36.Kind.LIST, values: valuesNodes };
74015
73831
  }
74016
73832
  if (typeof value === "object") {
74017
73833
  const fieldNodes = [];
@@ -74020,26 +73836,26 @@ function astFromValueUntyped2(value) {
74020
73836
  const ast = astFromValueUntyped2(fieldValue);
74021
73837
  if (ast) {
74022
73838
  fieldNodes.push({
74023
- kind: import_graphql35.Kind.OBJECT_FIELD,
74024
- name: { kind: import_graphql35.Kind.NAME, value: fieldName },
73839
+ kind: import_graphql36.Kind.OBJECT_FIELD,
73840
+ name: { kind: import_graphql36.Kind.NAME, value: fieldName },
74025
73841
  value: ast
74026
73842
  });
74027
73843
  }
74028
73844
  }
74029
- return { kind: import_graphql35.Kind.OBJECT, fields: fieldNodes };
73845
+ return { kind: import_graphql36.Kind.OBJECT, fields: fieldNodes };
74030
73846
  }
74031
73847
  if (typeof value === "boolean") {
74032
- return { kind: import_graphql35.Kind.BOOLEAN, value };
73848
+ return { kind: import_graphql36.Kind.BOOLEAN, value };
74033
73849
  }
74034
73850
  if (typeof value === "bigint") {
74035
- return { kind: import_graphql35.Kind.INT, value: String(value) };
73851
+ return { kind: import_graphql36.Kind.INT, value: String(value) };
74036
73852
  }
74037
73853
  if (typeof value === "number" && isFinite(value)) {
74038
73854
  const stringNum = String(value);
74039
- return integerStringRegExp2.test(stringNum) ? { kind: import_graphql35.Kind.INT, value: stringNum } : { kind: import_graphql35.Kind.FLOAT, value: stringNum };
73855
+ return integerStringRegExp2.test(stringNum) ? { kind: import_graphql36.Kind.INT, value: stringNum } : { kind: import_graphql36.Kind.FLOAT, value: stringNum };
74040
73856
  }
74041
73857
  if (typeof value === "string") {
74042
- return { kind: import_graphql35.Kind.STRING, value };
73858
+ return { kind: import_graphql36.Kind.STRING, value };
74043
73859
  }
74044
73860
  throw new TypeError(`Cannot convert value to AST: ${value}.`);
74045
73861
  }
@@ -74047,20 +73863,20 @@ var integerStringRegExp2 = /^-?(?:0|[1-9][0-9]*)$/;
74047
73863
 
74048
73864
  // ../../node_modules/.pnpm/@graphql-tools+utils@10.0.6_graphql@15.5.0/node_modules/@graphql-tools/utils/esm/astFromValue.js
74049
73865
  function astFromValue2(value, type) {
74050
- if ((0, import_graphql36.isNonNullType)(type)) {
73866
+ if ((0, import_graphql37.isNonNullType)(type)) {
74051
73867
  const astValue = astFromValue2(value, type.ofType);
74052
- if (astValue?.kind === import_graphql36.Kind.NULL) {
73868
+ if (astValue?.kind === import_graphql37.Kind.NULL) {
74053
73869
  return null;
74054
73870
  }
74055
73871
  return astValue;
74056
73872
  }
74057
73873
  if (value === null) {
74058
- return { kind: import_graphql36.Kind.NULL };
73874
+ return { kind: import_graphql37.Kind.NULL };
74059
73875
  }
74060
73876
  if (value === void 0) {
74061
73877
  return null;
74062
73878
  }
74063
- if ((0, import_graphql36.isListType)(type)) {
73879
+ if ((0, import_graphql37.isListType)(type)) {
74064
73880
  const itemType = type.ofType;
74065
73881
  if (isIterableObject(value)) {
74066
73882
  const valuesNodes = [];
@@ -74070,11 +73886,11 @@ function astFromValue2(value, type) {
74070
73886
  valuesNodes.push(itemNode);
74071
73887
  }
74072
73888
  }
74073
- return { kind: import_graphql36.Kind.LIST, values: valuesNodes };
73889
+ return { kind: import_graphql37.Kind.LIST, values: valuesNodes };
74074
73890
  }
74075
73891
  return astFromValue2(value, itemType);
74076
73892
  }
74077
- if ((0, import_graphql36.isInputObjectType)(type)) {
73893
+ if ((0, import_graphql37.isInputObjectType)(type)) {
74078
73894
  if (!isObjectLike(value)) {
74079
73895
  return null;
74080
73896
  }
@@ -74083,24 +73899,24 @@ function astFromValue2(value, type) {
74083
73899
  const fieldValue = astFromValue2(value[field.name], field.type);
74084
73900
  if (fieldValue) {
74085
73901
  fieldNodes.push({
74086
- kind: import_graphql36.Kind.OBJECT_FIELD,
74087
- name: { kind: import_graphql36.Kind.NAME, value: field.name },
73902
+ kind: import_graphql37.Kind.OBJECT_FIELD,
73903
+ name: { kind: import_graphql37.Kind.NAME, value: field.name },
74088
73904
  value: fieldValue
74089
73905
  });
74090
73906
  }
74091
73907
  }
74092
- return { kind: import_graphql36.Kind.OBJECT, fields: fieldNodes };
73908
+ return { kind: import_graphql37.Kind.OBJECT, fields: fieldNodes };
74093
73909
  }
74094
- if ((0, import_graphql36.isLeafType)(type)) {
73910
+ if ((0, import_graphql37.isLeafType)(type)) {
74095
73911
  const serialized = type.serialize(value);
74096
73912
  if (serialized == null) {
74097
73913
  return null;
74098
73914
  }
74099
- if ((0, import_graphql36.isEnumType)(type)) {
74100
- return { kind: import_graphql36.Kind.ENUM, value: serialized };
73915
+ if ((0, import_graphql37.isEnumType)(type)) {
73916
+ return { kind: import_graphql37.Kind.ENUM, value: serialized };
74101
73917
  }
74102
73918
  if (type.name === "ID" && typeof serialized === "string" && integerStringRegExp3.test(serialized)) {
74103
- return { kind: import_graphql36.Kind.INT, value: serialized };
73919
+ return { kind: import_graphql37.Kind.INT, value: serialized };
74104
73920
  }
74105
73921
  return astFromValueUntyped2(serialized);
74106
73922
  }
@@ -74156,36 +73972,36 @@ function getDocumentNodeFromSchema2(schema, options = {}) {
74156
73972
  const definitions = schemaNode != null ? [schemaNode] : [];
74157
73973
  const directives = schema.getDirectives();
74158
73974
  for (const directive of directives) {
74159
- if ((0, import_graphql37.isSpecifiedDirective)(directive)) {
73975
+ if ((0, import_graphql38.isSpecifiedDirective)(directive)) {
74160
73976
  continue;
74161
73977
  }
74162
73978
  definitions.push(astFromDirective2(directive, schema, pathToDirectivesInExtensions));
74163
73979
  }
74164
73980
  for (const typeName in typesMap) {
74165
73981
  const type = typesMap[typeName];
74166
- const isPredefinedScalar = (0, import_graphql37.isSpecifiedScalarType)(type);
74167
- const isIntrospection = (0, import_graphql37.isIntrospectionType)(type);
73982
+ const isPredefinedScalar = (0, import_graphql38.isSpecifiedScalarType)(type);
73983
+ const isIntrospection = (0, import_graphql38.isIntrospectionType)(type);
74168
73984
  if (isPredefinedScalar || isIntrospection) {
74169
73985
  continue;
74170
73986
  }
74171
- if ((0, import_graphql37.isObjectType)(type)) {
73987
+ if ((0, import_graphql38.isObjectType)(type)) {
74172
73988
  definitions.push(astFromObjectType2(type, schema, pathToDirectivesInExtensions));
74173
- } else if ((0, import_graphql37.isInterfaceType)(type)) {
73989
+ } else if ((0, import_graphql38.isInterfaceType)(type)) {
74174
73990
  definitions.push(astFromInterfaceType2(type, schema, pathToDirectivesInExtensions));
74175
- } else if ((0, import_graphql37.isUnionType)(type)) {
73991
+ } else if ((0, import_graphql38.isUnionType)(type)) {
74176
73992
  definitions.push(astFromUnionType2(type, schema, pathToDirectivesInExtensions));
74177
- } else if ((0, import_graphql37.isInputObjectType)(type)) {
73993
+ } else if ((0, import_graphql38.isInputObjectType)(type)) {
74178
73994
  definitions.push(astFromInputObjectType2(type, schema, pathToDirectivesInExtensions));
74179
- } else if ((0, import_graphql37.isEnumType)(type)) {
73995
+ } else if ((0, import_graphql38.isEnumType)(type)) {
74180
73996
  definitions.push(astFromEnumType2(type, schema, pathToDirectivesInExtensions));
74181
- } else if ((0, import_graphql37.isScalarType)(type)) {
73997
+ } else if ((0, import_graphql38.isScalarType)(type)) {
74182
73998
  definitions.push(astFromScalarType2(type, schema, pathToDirectivesInExtensions));
74183
73999
  } else {
74184
74000
  throw new Error(`Unknown type ${type}.`);
74185
74001
  }
74186
74002
  }
74187
74003
  return {
74188
- kind: import_graphql37.Kind.DOCUMENT,
74004
+ kind: import_graphql38.Kind.DOCUMENT,
74189
74005
  definitions
74190
74006
  };
74191
74007
  }
@@ -74220,7 +74036,7 @@ function astFromSchema2(schema, pathToDirectivesInExtensions) {
74220
74036
  operationTypeDefinitionNode.type = rootTypeAST;
74221
74037
  } else {
74222
74038
  operationTypeMap.set(operationTypeNode, {
74223
- kind: import_graphql37.Kind.OPERATION_TYPE_DEFINITION,
74039
+ kind: import_graphql38.Kind.OPERATION_TYPE_DEFINITION,
74224
74040
  operation: operationTypeNode,
74225
74041
  type: rootTypeAST
74226
74042
  });
@@ -74233,12 +74049,12 @@ function astFromSchema2(schema, pathToDirectivesInExtensions) {
74233
74049
  return null;
74234
74050
  }
74235
74051
  const schemaNode = {
74236
- kind: operationTypes != null ? import_graphql37.Kind.SCHEMA_DEFINITION : import_graphql37.Kind.SCHEMA_EXTENSION,
74052
+ kind: operationTypes != null ? import_graphql38.Kind.SCHEMA_DEFINITION : import_graphql38.Kind.SCHEMA_EXTENSION,
74237
74053
  operationTypes,
74238
74054
  directives
74239
74055
  };
74240
74056
  schemaNode.description = schema.astNode?.description ?? schema.description != null ? {
74241
- kind: import_graphql37.Kind.STRING,
74057
+ kind: import_graphql38.Kind.STRING,
74242
74058
  value: schema.description,
74243
74059
  block: true
74244
74060
  } : void 0;
@@ -74246,19 +74062,19 @@ function astFromSchema2(schema, pathToDirectivesInExtensions) {
74246
74062
  }
74247
74063
  function astFromDirective2(directive, schema, pathToDirectivesInExtensions) {
74248
74064
  return {
74249
- kind: import_graphql37.Kind.DIRECTIVE_DEFINITION,
74065
+ kind: import_graphql38.Kind.DIRECTIVE_DEFINITION,
74250
74066
  description: directive.astNode?.description ?? (directive.description ? {
74251
- kind: import_graphql37.Kind.STRING,
74067
+ kind: import_graphql38.Kind.STRING,
74252
74068
  value: directive.description
74253
74069
  } : void 0),
74254
74070
  name: {
74255
- kind: import_graphql37.Kind.NAME,
74071
+ kind: import_graphql38.Kind.NAME,
74256
74072
  value: directive.name
74257
74073
  },
74258
74074
  arguments: directive.args?.map((arg) => astFromArg2(arg, schema, pathToDirectivesInExtensions)),
74259
74075
  repeatable: directive.isRepeatable,
74260
74076
  locations: directive.locations?.map((location) => ({
74261
- kind: import_graphql37.Kind.NAME,
74077
+ kind: import_graphql38.Kind.NAME,
74262
74078
  value: location
74263
74079
  })) || []
74264
74080
  };
@@ -74308,14 +74124,14 @@ function getDeprecatableDirectiveNodes2(entity, schema, pathToDirectivesInExtens
74308
74124
  }
74309
74125
  function astFromArg2(arg, schema, pathToDirectivesInExtensions) {
74310
74126
  return {
74311
- kind: import_graphql37.Kind.INPUT_VALUE_DEFINITION,
74127
+ kind: import_graphql38.Kind.INPUT_VALUE_DEFINITION,
74312
74128
  description: arg.astNode?.description ?? (arg.description ? {
74313
- kind: import_graphql37.Kind.STRING,
74129
+ kind: import_graphql38.Kind.STRING,
74314
74130
  value: arg.description,
74315
74131
  block: true
74316
74132
  } : void 0),
74317
74133
  name: {
74318
- kind: import_graphql37.Kind.NAME,
74134
+ kind: import_graphql38.Kind.NAME,
74319
74135
  value: arg.name
74320
74136
  },
74321
74137
  type: astFromType2(arg.type),
@@ -74325,14 +74141,14 @@ function astFromArg2(arg, schema, pathToDirectivesInExtensions) {
74325
74141
  }
74326
74142
  function astFromObjectType2(type, schema, pathToDirectivesInExtensions) {
74327
74143
  return {
74328
- kind: import_graphql37.Kind.OBJECT_TYPE_DEFINITION,
74144
+ kind: import_graphql38.Kind.OBJECT_TYPE_DEFINITION,
74329
74145
  description: type.astNode?.description ?? (type.description ? {
74330
- kind: import_graphql37.Kind.STRING,
74146
+ kind: import_graphql38.Kind.STRING,
74331
74147
  value: type.description,
74332
74148
  block: true
74333
74149
  } : void 0),
74334
74150
  name: {
74335
- kind: import_graphql37.Kind.NAME,
74151
+ kind: import_graphql38.Kind.NAME,
74336
74152
  value: type.name
74337
74153
  },
74338
74154
  fields: Object.values(type.getFields()).map((field) => astFromField2(field, schema, pathToDirectivesInExtensions)),
@@ -74342,14 +74158,14 @@ function astFromObjectType2(type, schema, pathToDirectivesInExtensions) {
74342
74158
  }
74343
74159
  function astFromInterfaceType2(type, schema, pathToDirectivesInExtensions) {
74344
74160
  const node = {
74345
- kind: import_graphql37.Kind.INTERFACE_TYPE_DEFINITION,
74161
+ kind: import_graphql38.Kind.INTERFACE_TYPE_DEFINITION,
74346
74162
  description: type.astNode?.description ?? (type.description ? {
74347
- kind: import_graphql37.Kind.STRING,
74163
+ kind: import_graphql38.Kind.STRING,
74348
74164
  value: type.description,
74349
74165
  block: true
74350
74166
  } : void 0),
74351
74167
  name: {
74352
- kind: import_graphql37.Kind.NAME,
74168
+ kind: import_graphql38.Kind.NAME,
74353
74169
  value: type.name
74354
74170
  },
74355
74171
  fields: Object.values(type.getFields()).map((field) => astFromField2(field, schema, pathToDirectivesInExtensions)),
@@ -74362,14 +74178,14 @@ function astFromInterfaceType2(type, schema, pathToDirectivesInExtensions) {
74362
74178
  }
74363
74179
  function astFromUnionType2(type, schema, pathToDirectivesInExtensions) {
74364
74180
  return {
74365
- kind: import_graphql37.Kind.UNION_TYPE_DEFINITION,
74181
+ kind: import_graphql38.Kind.UNION_TYPE_DEFINITION,
74366
74182
  description: type.astNode?.description ?? (type.description ? {
74367
- kind: import_graphql37.Kind.STRING,
74183
+ kind: import_graphql38.Kind.STRING,
74368
74184
  value: type.description,
74369
74185
  block: true
74370
74186
  } : void 0),
74371
74187
  name: {
74372
- kind: import_graphql37.Kind.NAME,
74188
+ kind: import_graphql38.Kind.NAME,
74373
74189
  value: type.name
74374
74190
  },
74375
74191
  directives: getDirectiveNodes2(type, schema, pathToDirectivesInExtensions),
@@ -74378,14 +74194,14 @@ function astFromUnionType2(type, schema, pathToDirectivesInExtensions) {
74378
74194
  }
74379
74195
  function astFromInputObjectType2(type, schema, pathToDirectivesInExtensions) {
74380
74196
  return {
74381
- kind: import_graphql37.Kind.INPUT_OBJECT_TYPE_DEFINITION,
74197
+ kind: import_graphql38.Kind.INPUT_OBJECT_TYPE_DEFINITION,
74382
74198
  description: type.astNode?.description ?? (type.description ? {
74383
- kind: import_graphql37.Kind.STRING,
74199
+ kind: import_graphql38.Kind.STRING,
74384
74200
  value: type.description,
74385
74201
  block: true
74386
74202
  } : void 0),
74387
74203
  name: {
74388
- kind: import_graphql37.Kind.NAME,
74204
+ kind: import_graphql38.Kind.NAME,
74389
74205
  value: type.name
74390
74206
  },
74391
74207
  fields: Object.values(type.getFields()).map((field) => astFromInputField2(field, schema, pathToDirectivesInExtensions)),
@@ -74394,14 +74210,14 @@ function astFromInputObjectType2(type, schema, pathToDirectivesInExtensions) {
74394
74210
  }
74395
74211
  function astFromEnumType2(type, schema, pathToDirectivesInExtensions) {
74396
74212
  return {
74397
- kind: import_graphql37.Kind.ENUM_TYPE_DEFINITION,
74213
+ kind: import_graphql38.Kind.ENUM_TYPE_DEFINITION,
74398
74214
  description: type.astNode?.description ?? (type.description ? {
74399
- kind: import_graphql37.Kind.STRING,
74215
+ kind: import_graphql38.Kind.STRING,
74400
74216
  value: type.description,
74401
74217
  block: true
74402
74218
  } : void 0),
74403
74219
  name: {
74404
- kind: import_graphql37.Kind.NAME,
74220
+ kind: import_graphql38.Kind.NAME,
74405
74221
  value: type.name
74406
74222
  },
74407
74223
  values: Object.values(type.getValues()).map((value) => astFromEnumValue2(value, schema, pathToDirectivesInExtensions)),
@@ -74419,14 +74235,14 @@ function astFromScalarType2(type, schema, pathToDirectivesInExtensions) {
74419
74235
  directives.push(makeDirectiveNode2("specifiedBy", specifiedByArgs));
74420
74236
  }
74421
74237
  return {
74422
- kind: import_graphql37.Kind.SCALAR_TYPE_DEFINITION,
74238
+ kind: import_graphql38.Kind.SCALAR_TYPE_DEFINITION,
74423
74239
  description: type.astNode?.description ?? (type.description ? {
74424
- kind: import_graphql37.Kind.STRING,
74240
+ kind: import_graphql38.Kind.STRING,
74425
74241
  value: type.description,
74426
74242
  block: true
74427
74243
  } : void 0),
74428
74244
  name: {
74429
- kind: import_graphql37.Kind.NAME,
74245
+ kind: import_graphql38.Kind.NAME,
74430
74246
  value: type.name
74431
74247
  },
74432
74248
  directives
@@ -74434,14 +74250,14 @@ function astFromScalarType2(type, schema, pathToDirectivesInExtensions) {
74434
74250
  }
74435
74251
  function astFromField2(field, schema, pathToDirectivesInExtensions) {
74436
74252
  return {
74437
- kind: import_graphql37.Kind.FIELD_DEFINITION,
74253
+ kind: import_graphql38.Kind.FIELD_DEFINITION,
74438
74254
  description: field.astNode?.description ?? (field.description ? {
74439
- kind: import_graphql37.Kind.STRING,
74255
+ kind: import_graphql38.Kind.STRING,
74440
74256
  value: field.description,
74441
74257
  block: true
74442
74258
  } : void 0),
74443
74259
  name: {
74444
- kind: import_graphql37.Kind.NAME,
74260
+ kind: import_graphql38.Kind.NAME,
74445
74261
  value: field.name
74446
74262
  },
74447
74263
  arguments: field.args.map((arg) => astFromArg2(arg, schema, pathToDirectivesInExtensions)),
@@ -74451,14 +74267,14 @@ function astFromField2(field, schema, pathToDirectivesInExtensions) {
74451
74267
  }
74452
74268
  function astFromInputField2(field, schema, pathToDirectivesInExtensions) {
74453
74269
  return {
74454
- kind: import_graphql37.Kind.INPUT_VALUE_DEFINITION,
74270
+ kind: import_graphql38.Kind.INPUT_VALUE_DEFINITION,
74455
74271
  description: field.astNode?.description ?? (field.description ? {
74456
- kind: import_graphql37.Kind.STRING,
74272
+ kind: import_graphql38.Kind.STRING,
74457
74273
  value: field.description,
74458
74274
  block: true
74459
74275
  } : void 0),
74460
74276
  name: {
74461
- kind: import_graphql37.Kind.NAME,
74277
+ kind: import_graphql38.Kind.NAME,
74462
74278
  value: field.name
74463
74279
  },
74464
74280
  type: astFromType2(field.type),
@@ -74468,21 +74284,21 @@ function astFromInputField2(field, schema, pathToDirectivesInExtensions) {
74468
74284
  }
74469
74285
  function astFromEnumValue2(value, schema, pathToDirectivesInExtensions) {
74470
74286
  return {
74471
- kind: import_graphql37.Kind.ENUM_VALUE_DEFINITION,
74287
+ kind: import_graphql38.Kind.ENUM_VALUE_DEFINITION,
74472
74288
  description: value.astNode?.description ?? (value.description ? {
74473
- kind: import_graphql37.Kind.STRING,
74289
+ kind: import_graphql38.Kind.STRING,
74474
74290
  value: value.description,
74475
74291
  block: true
74476
74292
  } : void 0),
74477
74293
  name: {
74478
- kind: import_graphql37.Kind.NAME,
74294
+ kind: import_graphql38.Kind.NAME,
74479
74295
  value: value.name
74480
74296
  },
74481
74297
  directives: getDeprecatableDirectiveNodes2(value, schema, pathToDirectivesInExtensions)
74482
74298
  };
74483
74299
  }
74484
74300
  function makeDeprecatedDirective2(deprecationReason) {
74485
- return makeDirectiveNode2("deprecated", { reason: deprecationReason }, import_graphql37.GraphQLDeprecatedDirective);
74301
+ return makeDirectiveNode2("deprecated", { reason: deprecationReason }, import_graphql38.GraphQLDeprecatedDirective);
74486
74302
  }
74487
74303
  function makeDirectiveNode2(name, args, directive) {
74488
74304
  const directiveArguments = [];
@@ -74494,9 +74310,9 @@ function makeDirectiveNode2(name, args, directive) {
74494
74310
  const value = astFromValue2(argValue, arg.type);
74495
74311
  if (value) {
74496
74312
  directiveArguments.push({
74497
- kind: import_graphql37.Kind.ARGUMENT,
74313
+ kind: import_graphql38.Kind.ARGUMENT,
74498
74314
  name: {
74499
- kind: import_graphql37.Kind.NAME,
74315
+ kind: import_graphql38.Kind.NAME,
74500
74316
  value: argName
74501
74317
  },
74502
74318
  value
@@ -74510,9 +74326,9 @@ function makeDirectiveNode2(name, args, directive) {
74510
74326
  const value = astFromValueUntyped2(argValue);
74511
74327
  if (value) {
74512
74328
  directiveArguments.push({
74513
- kind: import_graphql37.Kind.ARGUMENT,
74329
+ kind: import_graphql38.Kind.ARGUMENT,
74514
74330
  name: {
74515
- kind: import_graphql37.Kind.NAME,
74331
+ kind: import_graphql38.Kind.NAME,
74516
74332
  value: argName
74517
74333
  },
74518
74334
  value
@@ -74521,9 +74337,9 @@ function makeDirectiveNode2(name, args, directive) {
74521
74337
  }
74522
74338
  }
74523
74339
  return {
74524
- kind: import_graphql37.Kind.DIRECTIVE,
74340
+ kind: import_graphql38.Kind.DIRECTIVE,
74525
74341
  name: {
74526
- kind: import_graphql37.Kind.NAME,
74342
+ kind: import_graphql38.Kind.NAME,
74527
74343
  value: name
74528
74344
  },
74529
74345
  arguments: directiveArguments
@@ -74546,7 +74362,7 @@ function makeDirectiveNodes2(schema, directiveValues) {
74546
74362
  }
74547
74363
 
74548
74364
  // ../../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");
74365
+ var import_graphql39 = require("graphql");
74550
74366
  var MAX_LINE_LENGTH2 = 80;
74551
74367
  var commentsRegistry2 = {};
74552
74368
  function resetComments2() {
@@ -74791,7 +74607,7 @@ var printDocASTReducerWithComments2 = Object.keys(printDocASTReducer2).reduce((p
74791
74607
  }
74792
74608
  }), {});
74793
74609
  function printWithComments2(ast) {
74794
- return (0, import_graphql38.visit)(ast, printDocASTReducerWithComments2);
74610
+ return (0, import_graphql39.visit)(ast, printDocASTReducerWithComments2);
74795
74611
  }
74796
74612
  function isFieldDefinitionNode2(node) {
74797
74613
  return node.kind === "FieldDefinition";
@@ -74810,7 +74626,7 @@ function getLeadingCommentBlock2(node) {
74810
74626
  }
74811
74627
  const comments = [];
74812
74628
  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) {
74629
+ 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
74630
  const value = String(token.value);
74815
74631
  comments.push(value);
74816
74632
  token = token.prev;
@@ -74862,9 +74678,9 @@ function isBlank2(str) {
74862
74678
  }
74863
74679
 
74864
74680
  // ../../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");
74681
+ var import_graphql40 = require("graphql");
74866
74682
  function isDocumentNode2(object) {
74867
- return object && typeof object === "object" && "kind" in object && object.kind === import_graphql39.Kind.DOCUMENT;
74683
+ return object && typeof object === "object" && "kind" in object && object.kind === import_graphql40.Kind.DOCUMENT;
74868
74684
  }
74869
74685
 
74870
74686
  // ../../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 +74704,7 @@ function deduplicateArguments2(args, config) {
74888
74704
  }
74889
74705
 
74890
74706
  // ../../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");
74707
+ var import_graphql41 = require("graphql");
74892
74708
  function directiveAlreadyExists2(directivesArr, otherDirective) {
74893
74709
  return !!directivesArr.find((directive) => directive.name.value === otherDirective.name.value);
74894
74710
  }
@@ -74948,11 +74764,11 @@ function mergeDirectives2(d1 = [], d22 = [], config, directives) {
74948
74764
  return result;
74949
74765
  }
74950
74766
  function validateInputs2(node, existingNode) {
74951
- const printedNode = (0, import_graphql40.print)({
74767
+ const printedNode = (0, import_graphql41.print)({
74952
74768
  ...node,
74953
74769
  description: void 0
74954
74770
  });
74955
- const printedExistingNode = (0, import_graphql40.print)({
74771
+ const printedExistingNode = (0, import_graphql41.print)({
74956
74772
  ...existingNode,
74957
74773
  description: void 0
74958
74774
  });
@@ -75019,7 +74835,7 @@ function mergeEnumValues2(first, second, config, directives) {
75019
74835
  }
75020
74836
 
75021
74837
  // ../../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");
74838
+ var import_graphql42 = require("graphql");
75023
74839
  function mergeEnum2(e1, e22, config, directives) {
75024
74840
  if (e22) {
75025
74841
  return {
@@ -75033,33 +74849,33 @@ function mergeEnum2(e1, e22, config, directives) {
75033
74849
  }
75034
74850
  return config?.convertExtensions ? {
75035
74851
  ...e1,
75036
- kind: import_graphql41.Kind.ENUM_TYPE_DEFINITION
74852
+ kind: import_graphql42.Kind.ENUM_TYPE_DEFINITION
75037
74853
  } : e1;
75038
74854
  }
75039
74855
 
75040
74856
  // ../../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");
74857
+ var import_graphql43 = require("graphql");
75042
74858
  function isStringTypes2(types16) {
75043
74859
  return typeof types16 === "string";
75044
74860
  }
75045
74861
  function isSourceTypes2(types16) {
75046
- return types16 instanceof import_graphql42.Source;
74862
+ return types16 instanceof import_graphql43.Source;
75047
74863
  }
75048
74864
  function extractType2(type) {
75049
74865
  let visitedType = type;
75050
- while (visitedType.kind === import_graphql42.Kind.LIST_TYPE || visitedType.kind === "NonNullType") {
74866
+ while (visitedType.kind === import_graphql43.Kind.LIST_TYPE || visitedType.kind === "NonNullType") {
75051
74867
  visitedType = visitedType.type;
75052
74868
  }
75053
74869
  return visitedType;
75054
74870
  }
75055
74871
  function isWrappingTypeNode2(type) {
75056
- return type.kind !== import_graphql42.Kind.NAMED_TYPE;
74872
+ return type.kind !== import_graphql43.Kind.NAMED_TYPE;
75057
74873
  }
75058
74874
  function isListTypeNode2(type) {
75059
- return type.kind === import_graphql42.Kind.LIST_TYPE;
74875
+ return type.kind === import_graphql43.Kind.LIST_TYPE;
75060
74876
  }
75061
74877
  function isNonNullTypeNode2(type) {
75062
- return type.kind === import_graphql42.Kind.NON_NULL_TYPE;
74878
+ return type.kind === import_graphql43.Kind.NON_NULL_TYPE;
75063
74879
  }
75064
74880
  function printTypeNode2(type) {
75065
74881
  if (isListTypeNode2(type)) {
@@ -75162,7 +74978,7 @@ function safeChangeForFieldType2(oldType, newType, ignoreNullability = false) {
75162
74978
  }
75163
74979
 
75164
74980
  // ../../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");
74981
+ var import_graphql44 = require("graphql");
75166
74982
  function mergeInputType2(node, existingNode, config, directives) {
75167
74983
  if (existingNode) {
75168
74984
  try {
@@ -75180,12 +74996,12 @@ function mergeInputType2(node, existingNode, config, directives) {
75180
74996
  }
75181
74997
  return config?.convertExtensions ? {
75182
74998
  ...node,
75183
- kind: import_graphql43.Kind.INPUT_OBJECT_TYPE_DEFINITION
74999
+ kind: import_graphql44.Kind.INPUT_OBJECT_TYPE_DEFINITION
75184
75000
  } : node;
75185
75001
  }
75186
75002
 
75187
75003
  // ../../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");
75004
+ var import_graphql45 = require("graphql");
75189
75005
 
75190
75006
  // ../../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
75007
  function alreadyExists2(arr, other) {
@@ -75218,15 +75034,15 @@ function mergeInterface2(node, existingNode, config, directives) {
75218
75034
  }
75219
75035
  return config?.convertExtensions ? {
75220
75036
  ...node,
75221
- kind: import_graphql44.Kind.INTERFACE_TYPE_DEFINITION
75037
+ kind: import_graphql45.Kind.INTERFACE_TYPE_DEFINITION
75222
75038
  } : node;
75223
75039
  }
75224
75040
 
75225
75041
  // ../../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");
75042
+ var import_graphql50 = require("graphql");
75227
75043
 
75228
75044
  // ../../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");
75045
+ var import_graphql46 = require("graphql");
75230
75046
  function mergeType2(node, existingNode, config, directives) {
75231
75047
  if (existingNode) {
75232
75048
  try {
@@ -75245,12 +75061,12 @@ function mergeType2(node, existingNode, config, directives) {
75245
75061
  }
75246
75062
  return config?.convertExtensions ? {
75247
75063
  ...node,
75248
- kind: import_graphql45.Kind.OBJECT_TYPE_DEFINITION
75064
+ kind: import_graphql46.Kind.OBJECT_TYPE_DEFINITION
75249
75065
  } : node;
75250
75066
  }
75251
75067
 
75252
75068
  // ../../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");
75069
+ var import_graphql47 = require("graphql");
75254
75070
  function mergeScalar2(node, existingNode, config, directives) {
75255
75071
  if (existingNode) {
75256
75072
  return {
@@ -75263,31 +75079,31 @@ function mergeScalar2(node, existingNode, config, directives) {
75263
75079
  }
75264
75080
  return config?.convertExtensions ? {
75265
75081
  ...node,
75266
- kind: import_graphql46.Kind.SCALAR_TYPE_DEFINITION
75082
+ kind: import_graphql47.Kind.SCALAR_TYPE_DEFINITION
75267
75083
  } : node;
75268
75084
  }
75269
75085
 
75270
75086
  // ../../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");
75087
+ var import_graphql48 = require("graphql");
75272
75088
  function mergeUnion2(first, second, config, directives) {
75273
75089
  if (second) {
75274
75090
  return {
75275
75091
  name: first.name,
75276
75092
  description: first["description"] || second["description"],
75277
75093
  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,
75094
+ kind: config?.convertExtensions || first.kind === "UnionTypeDefinition" || second.kind === "UnionTypeDefinition" ? import_graphql48.Kind.UNION_TYPE_DEFINITION : import_graphql48.Kind.UNION_TYPE_EXTENSION,
75279
75095
  loc: first.loc,
75280
75096
  types: mergeNamedTypeArray2(first.types, second.types, config)
75281
75097
  };
75282
75098
  }
75283
75099
  return config?.convertExtensions ? {
75284
75100
  ...first,
75285
- kind: import_graphql47.Kind.UNION_TYPE_DEFINITION
75101
+ kind: import_graphql48.Kind.UNION_TYPE_DEFINITION
75286
75102
  } : first;
75287
75103
  }
75288
75104
 
75289
75105
  // ../../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");
75106
+ var import_graphql49 = require("graphql");
75291
75107
  var DEFAULT_OPERATION_TYPE_NAME_MAP2 = {
75292
75108
  query: "Query",
75293
75109
  mutation: "Mutation",
@@ -75306,7 +75122,7 @@ function mergeOperationTypes2(opNodeList = [], existingOpNodeList = []) {
75306
75122
  function mergeSchemaDefs2(node, existingNode, config, directives) {
75307
75123
  if (existingNode) {
75308
75124
  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,
75125
+ 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
75126
  description: node["description"] || existingNode["description"],
75311
75127
  directives: mergeDirectives2(node.directives, existingNode.directives, config, directives),
75312
75128
  operationTypes: mergeOperationTypes2(node.operationTypes, existingNode.operationTypes)
@@ -75314,7 +75130,7 @@ function mergeSchemaDefs2(node, existingNode, config, directives) {
75314
75130
  }
75315
75131
  return config?.convertExtensions ? {
75316
75132
  ...node,
75317
- kind: import_graphql48.Kind.SCHEMA_DEFINITION
75133
+ kind: import_graphql49.Kind.SCHEMA_DEFINITION
75318
75134
  } : node;
75319
75135
  }
75320
75136
 
@@ -75338,36 +75154,36 @@ function mergeGraphQLNodes2(nodes, config, directives = {}) {
75338
75154
  delete mergedResultMap[name];
75339
75155
  } else {
75340
75156
  switch (nodeDefinition.kind) {
75341
- case import_graphql49.Kind.OBJECT_TYPE_DEFINITION:
75342
- case import_graphql49.Kind.OBJECT_TYPE_EXTENSION:
75157
+ case import_graphql50.Kind.OBJECT_TYPE_DEFINITION:
75158
+ case import_graphql50.Kind.OBJECT_TYPE_EXTENSION:
75343
75159
  mergedResultMap[name] = mergeType2(nodeDefinition, mergedResultMap[name], config, directives);
75344
75160
  break;
75345
- case import_graphql49.Kind.ENUM_TYPE_DEFINITION:
75346
- case import_graphql49.Kind.ENUM_TYPE_EXTENSION:
75161
+ case import_graphql50.Kind.ENUM_TYPE_DEFINITION:
75162
+ case import_graphql50.Kind.ENUM_TYPE_EXTENSION:
75347
75163
  mergedResultMap[name] = mergeEnum2(nodeDefinition, mergedResultMap[name], config, directives);
75348
75164
  break;
75349
- case import_graphql49.Kind.UNION_TYPE_DEFINITION:
75350
- case import_graphql49.Kind.UNION_TYPE_EXTENSION:
75165
+ case import_graphql50.Kind.UNION_TYPE_DEFINITION:
75166
+ case import_graphql50.Kind.UNION_TYPE_EXTENSION:
75351
75167
  mergedResultMap[name] = mergeUnion2(nodeDefinition, mergedResultMap[name], config, directives);
75352
75168
  break;
75353
- case import_graphql49.Kind.SCALAR_TYPE_DEFINITION:
75354
- case import_graphql49.Kind.SCALAR_TYPE_EXTENSION:
75169
+ case import_graphql50.Kind.SCALAR_TYPE_DEFINITION:
75170
+ case import_graphql50.Kind.SCALAR_TYPE_EXTENSION:
75355
75171
  mergedResultMap[name] = mergeScalar2(nodeDefinition, mergedResultMap[name], config, directives);
75356
75172
  break;
75357
- case import_graphql49.Kind.INPUT_OBJECT_TYPE_DEFINITION:
75358
- case import_graphql49.Kind.INPUT_OBJECT_TYPE_EXTENSION:
75173
+ case import_graphql50.Kind.INPUT_OBJECT_TYPE_DEFINITION:
75174
+ case import_graphql50.Kind.INPUT_OBJECT_TYPE_EXTENSION:
75359
75175
  mergedResultMap[name] = mergeInputType2(nodeDefinition, mergedResultMap[name], config, directives);
75360
75176
  break;
75361
- case import_graphql49.Kind.INTERFACE_TYPE_DEFINITION:
75362
- case import_graphql49.Kind.INTERFACE_TYPE_EXTENSION:
75177
+ case import_graphql50.Kind.INTERFACE_TYPE_DEFINITION:
75178
+ case import_graphql50.Kind.INTERFACE_TYPE_EXTENSION:
75363
75179
  mergedResultMap[name] = mergeInterface2(nodeDefinition, mergedResultMap[name], config, directives);
75364
75180
  break;
75365
- case import_graphql49.Kind.DIRECTIVE_DEFINITION:
75181
+ case import_graphql50.Kind.DIRECTIVE_DEFINITION:
75366
75182
  mergedResultMap[name] = mergeDirective2(nodeDefinition, mergedResultMap[name]);
75367
75183
  break;
75368
75184
  }
75369
75185
  }
75370
- } else if (nodeDefinition.kind === import_graphql49.Kind.SCHEMA_DEFINITION || nodeDefinition.kind === import_graphql49.Kind.SCHEMA_EXTENSION) {
75186
+ } else if (nodeDefinition.kind === import_graphql50.Kind.SCHEMA_DEFINITION || nodeDefinition.kind === import_graphql50.Kind.SCHEMA_EXTENSION) {
75371
75187
  mergedResultMap[schemaDefSymbol2] = mergeSchemaDefs2(nodeDefinition, mergedResultMap[schemaDefSymbol2], config);
75372
75188
  }
75373
75189
  }
@@ -75375,11 +75191,11 @@ function mergeGraphQLNodes2(nodes, config, directives = {}) {
75375
75191
  }
75376
75192
 
75377
75193
  // ../../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");
75194
+ var import_graphql51 = require("graphql");
75379
75195
  function mergeTypeDefs2(typeSource, config) {
75380
75196
  resetComments2();
75381
75197
  const doc = {
75382
- kind: import_graphql50.Kind.DOCUMENT,
75198
+ kind: import_graphql51.Kind.DOCUMENT,
75383
75199
  definitions: mergeGraphQLTypes2(typeSource, {
75384
75200
  useSchemaDefinition: true,
75385
75201
  forceSchemaDefinition: false,
@@ -75406,14 +75222,14 @@ function visitTypeSources2(typeSource, options, allDirectives = [], allNodes = [
75406
75222
  for (const type of typeSource) {
75407
75223
  visitTypeSources2(type, options, allDirectives, allNodes, visitedTypeSources);
75408
75224
  }
75409
- } else if ((0, import_graphql50.isSchema)(typeSource)) {
75225
+ } else if ((0, import_graphql51.isSchema)(typeSource)) {
75410
75226
  const documentNode = getDocumentNodeFromSchema2(typeSource, options);
75411
75227
  visitTypeSources2(documentNode.definitions, options, allDirectives, allNodes, visitedTypeSources);
75412
75228
  } else if (isStringTypes2(typeSource) || isSourceTypes2(typeSource)) {
75413
- const documentNode = (0, import_graphql50.parse)(typeSource, options);
75229
+ const documentNode = (0, import_graphql51.parse)(typeSource, options);
75414
75230
  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) {
75231
+ } else if (typeof typeSource === "object" && (0, import_graphql51.isDefinitionNode)(typeSource)) {
75232
+ if (typeSource.kind === import_graphql51.Kind.DIRECTIVE_DEFINITION) {
75417
75233
  allDirectives.push(typeSource);
75418
75234
  } else {
75419
75235
  allNodes.push(typeSource);
@@ -75433,7 +75249,7 @@ function mergeGraphQLTypes2(typeSource, config) {
75433
75249
  const mergedNodes = mergeGraphQLNodes2(allNodes, config, mergedDirectives);
75434
75250
  if (config?.useSchemaDefinition) {
75435
75251
  const schemaDef = mergedNodes[schemaDefSymbol2] || {
75436
- kind: import_graphql50.Kind.SCHEMA_DEFINITION,
75252
+ kind: import_graphql51.Kind.SCHEMA_DEFINITION,
75437
75253
  operationTypes: []
75438
75254
  };
75439
75255
  const operationTypes = schemaDef.operationTypes;
@@ -75444,9 +75260,9 @@ function mergeGraphQLTypes2(typeSource, config) {
75444
75260
  const existingPossibleRootType = mergedNodes[possibleRootTypeName];
75445
75261
  if (existingPossibleRootType != null && existingPossibleRootType.name != null) {
75446
75262
  operationTypes.push({
75447
- kind: import_graphql50.Kind.OPERATION_TYPE_DEFINITION,
75263
+ kind: import_graphql51.Kind.OPERATION_TYPE_DEFINITION,
75448
75264
  type: {
75449
- kind: import_graphql50.Kind.NAMED_TYPE,
75265
+ kind: import_graphql51.Kind.NAMED_TYPE,
75450
75266
  name: existingPossibleRootType.name
75451
75267
  },
75452
75268
  operation: opTypeDefNodeType
@@ -75460,15 +75276,15 @@ function mergeGraphQLTypes2(typeSource, config) {
75460
75276
  }
75461
75277
  if (config?.forceSchemaDefinition && !mergedNodes[schemaDefSymbol2]?.operationTypes?.length) {
75462
75278
  mergedNodes[schemaDefSymbol2] = {
75463
- kind: import_graphql50.Kind.SCHEMA_DEFINITION,
75279
+ kind: import_graphql51.Kind.SCHEMA_DEFINITION,
75464
75280
  operationTypes: [
75465
75281
  {
75466
- kind: import_graphql50.Kind.OPERATION_TYPE_DEFINITION,
75282
+ kind: import_graphql51.Kind.OPERATION_TYPE_DEFINITION,
75467
75283
  operation: "query",
75468
75284
  type: {
75469
- kind: import_graphql50.Kind.NAMED_TYPE,
75285
+ kind: import_graphql51.Kind.NAMED_TYPE,
75470
75286
  name: {
75471
- kind: import_graphql50.Kind.NAME,
75287
+ kind: import_graphql51.Kind.NAME,
75472
75288
  value: "Query"
75473
75289
  }
75474
75290
  }
@@ -75485,7 +75301,7 @@ function mergeGraphQLTypes2(typeSource, config) {
75485
75301
  }
75486
75302
 
75487
75303
  // src/codegen/transforms/schema.ts
75488
- var graphql25 = __toESM(require("graphql"), 1);
75304
+ var graphql24 = __toESM(require("graphql"), 1);
75489
75305
  async function graphqlExtensions(config, documents) {
75490
75306
  let internalSchema = `
75491
75307
  enum CachePolicy {
@@ -75608,7 +75424,7 @@ directive @${config.componentFieldDirective}(field: String!, prop: String, expor
75608
75424
  const args = fragmentArguments(config, "", field.parent);
75609
75425
  if (args.length > 0) {
75610
75426
  argString = "(" + args.map((arg) => {
75611
- const typeName = graphql25.print(arg.type);
75427
+ const typeName = graphql24.print(arg.type);
75612
75428
  return `${arg.name}:${typeName}${arg.required ? "!" : ""}`;
75613
75429
  }).join("\n") + ")";
75614
75430
  }
@@ -75618,20 +75434,20 @@ directive @${config.componentFieldDirective}(field: String!, prop: String, expor
75618
75434
  `;
75619
75435
  }).join("\n");
75620
75436
  extensions += `${Object.keys(config.configFile.features?.runtimeScalars ?? {}).map((scalar) => `scalar ${scalar}`).join("\n")}`;
75621
- config.newSchema = graphql25.print(mergeTypeDefs2([internalSchema, config.newSchema]));
75437
+ config.newSchema = graphql24.print(mergeTypeDefs2([internalSchema, config.newSchema]));
75622
75438
  config.schemaString += extensions;
75623
- config.schema = graphql25.buildSchema(
75624
- graphql25.print(
75625
- mergeTypeDefs2([graphql25.printSchema(config.schema), internalSchema, extensions])
75439
+ config.schema = graphql24.buildSchema(
75440
+ graphql24.print(
75441
+ mergeTypeDefs2([graphql24.printSchema(config.schema), internalSchema, extensions])
75626
75442
  )
75627
75443
  );
75628
75444
  }
75629
75445
 
75630
75446
  // src/codegen/transforms/typename.ts
75631
- var graphql26 = __toESM(require("graphql"), 1);
75447
+ var graphql25 = __toESM(require("graphql"), 1);
75632
75448
  async function addTypename(config, documents) {
75633
75449
  for (const doc of documents) {
75634
- doc.document = graphql26.visit(doc.document, {
75450
+ doc.document = graphql25.visit(doc.document, {
75635
75451
  Field(node, key, parent2, path3, ancestors) {
75636
75452
  if (!node.selectionSet) {
75637
75453
  return;
@@ -75643,7 +75459,7 @@ async function addTypename(config, documents) {
75643
75459
  );
75644
75460
  const field = type.getFields()[node.name.value];
75645
75461
  const fieldType = unwrapType(config, field.type).type;
75646
- if (graphql26.isInterfaceType(fieldType) || graphql26.isUnionType(fieldType)) {
75462
+ if (graphql25.isInterfaceType(fieldType) || graphql25.isUnionType(fieldType)) {
75647
75463
  return {
75648
75464
  ...node,
75649
75465
  selectionSet: {
@@ -75651,9 +75467,9 @@ async function addTypename(config, documents) {
75651
75467
  selections: [
75652
75468
  ...node.selectionSet.selections,
75653
75469
  {
75654
- kind: graphql26.Kind.FIELD,
75470
+ kind: graphql25.Kind.FIELD,
75655
75471
  name: {
75656
- kind: graphql26.Kind.NAME,
75472
+ kind: graphql25.Kind.NAME,
75657
75473
  value: "__typename"
75658
75474
  }
75659
75475
  }
@@ -75670,9 +75486,9 @@ async function addTypename(config, documents) {
75670
75486
  selections: [
75671
75487
  ...node.selectionSet.selections,
75672
75488
  {
75673
- kind: graphql26.Kind.FIELD,
75489
+ kind: graphql25.Kind.FIELD,
75674
75490
  name: {
75675
- kind: graphql26.Kind.NAME,
75491
+ kind: graphql25.Kind.NAME,
75676
75492
  value: "__typename"
75677
75493
  }
75678
75494
  }
@@ -75685,10 +75501,10 @@ async function addTypename(config, documents) {
75685
75501
  }
75686
75502
 
75687
75503
  // src/codegen/transforms/addID.ts
75688
- var graphql27 = __toESM(require("graphql"), 1);
75504
+ var graphql26 = __toESM(require("graphql"), 1);
75689
75505
  async function addID(config, documents) {
75690
75506
  for (const doc of documents) {
75691
- doc.document = graphql27.visit(doc.document, {
75507
+ doc.document = graphql26.visit(doc.document, {
75692
75508
  Field(node, key, parent2, path3, ancestors) {
75693
75509
  if (!node.selectionSet) {
75694
75510
  return;
@@ -75726,7 +75542,7 @@ function addKeysToSelection(config, node, fieldType) {
75726
75542
  if (!node.selectionSet || node.selectionSet.selections.length == 0) {
75727
75543
  return;
75728
75544
  }
75729
- if (!graphql27.isObjectType(fieldType) && !graphql27.isInterfaceType(fieldType)) {
75545
+ if (!graphql26.isObjectType(fieldType) && !graphql26.isInterfaceType(fieldType)) {
75730
75546
  return;
75731
75547
  }
75732
75548
  const keyFields = config.keyFieldsForType(fieldType.name);
@@ -75741,9 +75557,9 @@ function addKeysToSelection(config, node, fieldType) {
75741
75557
  continue;
75742
75558
  }
75743
75559
  selections.push({
75744
- kind: graphql27.Kind.FIELD,
75560
+ kind: graphql26.Kind.FIELD,
75745
75561
  name: {
75746
- kind: graphql27.Kind.NAME,
75562
+ kind: graphql26.Kind.NAME,
75747
75563
  value: keyField
75748
75564
  }
75749
75565
  });
@@ -75758,13 +75574,13 @@ function addKeysToSelection(config, node, fieldType) {
75758
75574
  }
75759
75575
 
75760
75576
  // src/codegen/transforms/componentFields.ts
75761
- var graphql28 = __toESM(require("graphql"), 1);
75577
+ var graphql27 = __toESM(require("graphql"), 1);
75762
75578
  async function componentFields(config, documents) {
75763
75579
  for (const document of documents) {
75764
- const typeInfo = new graphql28.TypeInfo(config.schema);
75765
- document.document = graphql28.visit(
75580
+ const typeInfo = new graphql27.TypeInfo(config.schema);
75581
+ document.document = graphql27.visit(
75766
75582
  document.document,
75767
- graphql28.visitWithTypeInfo(typeInfo, {
75583
+ graphql27.visitWithTypeInfo(typeInfo, {
75768
75584
  Field(node) {
75769
75585
  const parentType = typeInfo.getParentType();
75770
75586
  if (!parentType) {
@@ -75813,10 +75629,10 @@ async function componentFields(config, documents) {
75813
75629
  }
75814
75630
 
75815
75631
  // src/codegen/transforms/runtimeScalars.ts
75816
- var graphql29 = __toESM(require("graphql"), 1);
75632
+ var graphql28 = __toESM(require("graphql"), 1);
75817
75633
  async function addTypename2(config, documents) {
75818
75634
  for (const doc of documents) {
75819
- doc.document = graphql29.visit(doc.document, {
75635
+ doc.document = graphql28.visit(doc.document, {
75820
75636
  VariableDefinition(node) {
75821
75637
  const { type, wrappers } = unwrapType(config, node.type);
75822
75638
  const runtimeScalar = config.configFile.features?.runtimeScalars?.[type.name];
@@ -75855,7 +75671,7 @@ async function addTypename2(config, documents) {
75855
75671
  }
75856
75672
 
75857
75673
  // src/codegen/validators/typeCheck.ts
75858
- var graphql30 = __toESM(require("graphql"), 1);
75674
+ var graphql29 = __toESM(require("graphql"), 1);
75859
75675
  async function typeCheck(config, docs) {
75860
75676
  const errors = [];
75861
75677
  const freeLists = [];
@@ -75863,7 +75679,7 @@ async function typeCheck(config, docs) {
75863
75679
  const listTypes = [];
75864
75680
  const fragments = {};
75865
75681
  for (const { document: parsed, originalString, filename } of docs) {
75866
- graphql30.visit(parsed, {
75682
+ graphql29.visit(parsed, {
75867
75683
  FragmentDefinition(definition) {
75868
75684
  fragments[definition.name.value] = definition;
75869
75685
  },
@@ -75908,14 +75724,14 @@ async function typeCheck(config, docs) {
75908
75724
  );
75909
75725
  return;
75910
75726
  }
75911
- if (graphql30.isListType(rootType) || graphql30.isNonNullType(rootType) && graphql30.isListType(rootType.ofType)) {
75727
+ if (graphql29.isListType(rootType) || graphql29.isNonNullType(rootType) && graphql29.isListType(rootType.ofType)) {
75912
75728
  needsParent = true;
75913
75729
  break;
75914
75730
  }
75915
- if (graphql30.isNonNullType(rootType) && "ofType" in rootType) {
75731
+ if (graphql29.isNonNullType(rootType) && "ofType" in rootType) {
75916
75732
  rootType = rootType.ofType;
75917
75733
  }
75918
- if (graphql30.isScalarType(rootType)) {
75734
+ if (graphql29.isScalarType(rootType)) {
75919
75735
  break;
75920
75736
  }
75921
75737
  rootType = rootType?.getFields()[parent3.name.value]?.type;
@@ -75991,9 +75807,9 @@ async function typeCheck(config, docs) {
75991
75807
  );
75992
75808
  }
75993
75809
  let targetTypes = [type];
75994
- if (graphql30.isUnionType(type)) {
75810
+ if (graphql29.isUnionType(type)) {
75995
75811
  targetTypes = config.schema.getPossibleTypes(type);
75996
- } else if (graphql30.isInterfaceType(type)) {
75812
+ } else if (graphql29.isInterfaceType(type)) {
75997
75813
  try {
75998
75814
  for (const key of config.keyFieldsForType(type.name)) {
75999
75815
  if (!type.getFields()[key]) {
@@ -76029,13 +75845,13 @@ async function typeCheck(config, docs) {
76029
75845
  if (errors.length > 0) {
76030
75846
  throw errors;
76031
75847
  }
76032
- const rules = (filepath) => [...graphql30.specifiedRules].filter(
75848
+ const rules = (filepath) => [...graphql29.specifiedRules].filter(
76033
75849
  (rule) => ![
76034
- graphql30.NoUnusedFragmentsRule,
76035
- graphql30.KnownFragmentNamesRule,
76036
- graphql30.ExecutableDefinitionsRule,
76037
- graphql30.KnownDirectivesRule,
76038
- graphql30.KnownArgumentNamesRule
75850
+ graphql29.NoUnusedFragmentsRule,
75851
+ graphql29.KnownFragmentNamesRule,
75852
+ graphql29.ExecutableDefinitionsRule,
75853
+ graphql29.KnownDirectivesRule,
75854
+ graphql29.KnownArgumentNamesRule
76039
75855
  ].includes(rule)
76040
75856
  ).concat(
76041
75857
  validateLists({
@@ -76056,7 +75872,7 @@ async function typeCheck(config, docs) {
76056
75872
  validateLoadingDirective(config)
76057
75873
  );
76058
75874
  for (const { filename, document: parsed, originalString } of docs) {
76059
- for (const error of graphql30.validate(config.schema, parsed, rules(filename))) {
75875
+ for (const error of graphql29.validate(config.schema, parsed, rules(filename))) {
76060
75876
  errors.push(
76061
75877
  new HoudiniError({
76062
75878
  filepath: filename,
@@ -76085,20 +75901,20 @@ function validateRequiredDirective(config, filepath) {
76085
75901
  if (!node.directives?.some(({ name }) => name.value === config.requiredDirective))
76086
75902
  return;
76087
75903
  const parentType = parentTypeFromAncestors(config.schema, filepath, ancestors);
76088
- if (!graphql30.isObjectType(parentType)) {
75904
+ if (!graphql29.isObjectType(parentType)) {
76089
75905
  ctx.reportError(
76090
- new graphql30.GraphQLError(
75906
+ new graphql29.GraphQLError(
76091
75907
  `@${config.requiredDirective} may only be used on objects, not arguments`
76092
75908
  )
76093
75909
  );
76094
75910
  return;
76095
75911
  }
76096
75912
  const type = parentType.getFields()[node.name.value].type;
76097
- const isServerNullable = !graphql30.isNonNullType(type);
75913
+ const isServerNullable = !graphql29.isNonNullType(type);
76098
75914
  const isAlreadyClientNullable = isClientNullable(node, true);
76099
75915
  if (!isServerNullable && !isAlreadyClientNullable) {
76100
75916
  ctx.reportError(
76101
- new graphql30.GraphQLError(
75917
+ new graphql29.GraphQLError(
76102
75918
  `@${config.requiredDirective} may only be used on nullable fields`
76103
75919
  )
76104
75920
  );
@@ -76120,7 +75936,7 @@ var validateLists = ({
76120
75936
  if (!config.isListFragment(node.name.value)) {
76121
75937
  if (!fragments[node.name.value]) {
76122
75938
  ctx.reportError(
76123
- new graphql30.GraphQLError(
75939
+ new graphql29.GraphQLError(
76124
75940
  "Encountered unknown fragment: " + node.name.value
76125
75941
  )
76126
75942
  );
@@ -76130,7 +75946,7 @@ var validateLists = ({
76130
75946
  const listName = config.listNameFromFragment(node.name.value);
76131
75947
  if (!lists.includes(listName)) {
76132
75948
  ctx.reportError(
76133
- new graphql30.GraphQLError(
75949
+ new graphql29.GraphQLError(
76134
75950
  "Encountered fragment referencing unknown list: " + listName
76135
75951
  )
76136
75952
  );
@@ -76155,7 +75971,7 @@ var validateLists = ({
76155
75971
  );
76156
75972
  if (parentArg) {
76157
75973
  ctx.reportError(
76158
- new graphql30.GraphQLError(
75974
+ new graphql29.GraphQLError(
76159
75975
  `@${config.deprecatedlistDirectiveParentIDArg} should be defined only in it's own directive now`
76160
75976
  )
76161
75977
  );
@@ -76171,7 +75987,7 @@ var validateLists = ({
76171
75987
  return;
76172
75988
  }
76173
75989
  ctx.reportError(
76174
- new graphql30.GraphQLError(
75990
+ new graphql29.GraphQLError(
76175
75991
  `For this list fragment, you need to add or @${config.listParentDirective} or @${config.listAllListsDirective} directive to specify the behavior`
76176
75992
  )
76177
75993
  );
@@ -76181,7 +75997,7 @@ var validateLists = ({
76181
75997
  const directiveName = node.name.value;
76182
75998
  if (directiveName === "connection") {
76183
75999
  ctx.reportError(
76184
- new graphql30.GraphQLError(
76000
+ new graphql29.GraphQLError(
76185
76001
  "@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
76002
  )
76187
76003
  );
@@ -76190,7 +76006,7 @@ var validateLists = ({
76190
76006
  if (!config.isInternalDirective(node.name.value)) {
76191
76007
  if (!config.schema.getDirective(directiveName)) {
76192
76008
  ctx.reportError(
76193
- new graphql30.GraphQLError(
76009
+ new graphql29.GraphQLError(
76194
76010
  "Encountered unknown directive: " + directiveName
76195
76011
  )
76196
76012
  );
@@ -76199,7 +76015,7 @@ var validateLists = ({
76199
76015
  }
76200
76016
  if (config.isListOperationDirective(directiveName) && !listTypes.includes(config.listNameFromDirective(directiveName))) {
76201
76017
  ctx.reportError(
76202
- new graphql30.GraphQLError(
76018
+ new graphql29.GraphQLError(
76203
76019
  "Encountered directive referencing unknown list: " + directiveName
76204
76020
  )
76205
76021
  );
@@ -76210,7 +76026,7 @@ var validateLists = ({
76210
76026
  };
76211
76027
  function knownArguments(config) {
76212
76028
  return function(ctx) {
76213
- const nativeValidator = graphql30.KnownArgumentNamesRule(ctx);
76029
+ const nativeValidator = graphql29.KnownArgumentNamesRule(ctx);
76214
76030
  return {
76215
76031
  ...nativeValidator,
76216
76032
  Directive(directiveNode) {
@@ -76245,7 +76061,7 @@ function validateFragmentArguments(config, filepath, fragments) {
76245
76061
  for (const arg of node.arguments || []) {
76246
76062
  if (arg.value.kind !== "ObjectValue") {
76247
76063
  ctx.reportError(
76248
- new graphql30.GraphQLError("values in @arguments must be an object")
76064
+ new graphql29.GraphQLError("values in @arguments must be an object")
76249
76065
  );
76250
76066
  return;
76251
76067
  }
@@ -76255,13 +76071,13 @@ function validateFragmentArguments(config, filepath, fragments) {
76255
76071
  );
76256
76072
  if (!typeArg) {
76257
76073
  ctx.reportError(
76258
- new graphql30.GraphQLError("missing type field for @arguments directive")
76074
+ new graphql29.GraphQLError("missing type field for @arguments directive")
76259
76075
  );
76260
76076
  return;
76261
76077
  }
76262
- if (typeArg.value.kind !== graphql30.Kind.STRING) {
76078
+ if (typeArg.value.kind !== graphql29.Kind.STRING) {
76263
76079
  ctx.reportError(
76264
- new graphql30.GraphQLError("type field to @arguments must be a string")
76080
+ new graphql29.GraphQLError("type field to @arguments must be a string")
76265
76081
  );
76266
76082
  return;
76267
76083
  }
@@ -76274,7 +76090,7 @@ function validateFragmentArguments(config, filepath, fragments) {
76274
76090
  );
76275
76091
  if (typeArg.value.value !== defaultValueType) {
76276
76092
  ctx.reportError(
76277
- new graphql30.GraphQLError(
76093
+ new graphql29.GraphQLError(
76278
76094
  `Invalid default value provided for ${arg.name.value}. Expected ${typeArg.value.value}, found ${defaultValueType}`
76279
76095
  )
76280
76096
  );
@@ -76292,7 +76108,7 @@ function validateFragmentArguments(config, filepath, fragments) {
76292
76108
  try {
76293
76109
  args = fragmentArguments(config, filepath, fragments[fragmentName]);
76294
76110
  } catch (e3) {
76295
- ctx.reportError(new graphql30.GraphQLError(e3.message));
76111
+ ctx.reportError(new graphql29.GraphQLError(e3.message));
76296
76112
  return;
76297
76113
  }
76298
76114
  fragmentArguments2[fragmentName] = args;
@@ -76315,7 +76131,7 @@ function validateFragmentArguments(config, filepath, fragments) {
76315
76131
  );
76316
76132
  if (missing.length > 0) {
76317
76133
  ctx.reportError(
76318
- new graphql30.GraphQLError(
76134
+ new graphql29.GraphQLError(
76319
76135
  `The following arguments are missing from the "${fragmentName}" fragment: ` + JSON.stringify(missing)
76320
76136
  )
76321
76137
  );
@@ -76326,7 +76142,7 @@ function validateFragmentArguments(config, filepath, fragments) {
76326
76142
  );
76327
76143
  if (unknown.length > 0) {
76328
76144
  ctx.reportError(
76329
- new graphql30.GraphQLError(
76145
+ new graphql29.GraphQLError(
76330
76146
  "Encountered unknown arguments: " + JSON.stringify(unknown)
76331
76147
  )
76332
76148
  );
@@ -76338,7 +76154,7 @@ function validateFragmentArguments(config, filepath, fragments) {
76338
76154
  for (const [applied, target] of zipped) {
76339
76155
  if (!valueIsType(config, applied.value, target)) {
76340
76156
  ctx.reportError(
76341
- new graphql30.GraphQLError(
76157
+ new graphql29.GraphQLError(
76342
76158
  `Invalid argument type. Expected ${target}, found ${applied.value.kind}`
76343
76159
  )
76344
76160
  );
@@ -76380,7 +76196,7 @@ function valueIsType(config, value, targetType) {
76380
76196
  }
76381
76197
  if (value.kind === "EnumValue" && targetType.kind === "NamedType") {
76382
76198
  const enumType = config.schema.getType(targetType.name.value);
76383
- if (!graphql30.isEnumType(enumType)) {
76199
+ if (!graphql29.isEnumType(enumType)) {
76384
76200
  return false;
76385
76201
  }
76386
76202
  return enumType.getValues().some((enumValue) => enumValue.value === value.value);
@@ -76400,7 +76216,7 @@ function paginateArgs(config, filepath) {
76400
76216
  }
76401
76217
  if (alreadyPaginated) {
76402
76218
  ctx.reportError(
76403
- new graphql30.GraphQLError(
76219
+ new graphql29.GraphQLError(
76404
76220
  `@${config.paginateDirective} can only appear in a document once.`
76405
76221
  )
76406
76222
  );
@@ -76432,7 +76248,7 @@ function paginateArgs(config, filepath) {
76432
76248
  const backwards = appliedArgs.has("last");
76433
76249
  if (!forward && !backwards) {
76434
76250
  ctx.reportError(
76435
- new graphql30.GraphQLError(
76251
+ new graphql29.GraphQLError(
76436
76252
  "A field with cursor-based pagination must have a first or last argument"
76437
76253
  )
76438
76254
  );
@@ -76446,7 +76262,7 @@ function paginateArgs(config, filepath) {
76446
76262
  }
76447
76263
  if (forward && backwards && paginateMode === "Infinite") {
76448
76264
  ctx.reportError(
76449
- new graphql30.GraphQLError(
76265
+ new graphql29.GraphQLError(
76450
76266
  `A field with cursor pagination cannot go forwards an backwards simultaneously`
76451
76267
  )
76452
76268
  );
@@ -76460,7 +76276,7 @@ function paginateArgs(config, filepath) {
76460
76276
  );
76461
76277
  if (!appliedLimitArg) {
76462
76278
  ctx.reportError(
76463
- new graphql30.GraphQLError(
76279
+ new graphql29.GraphQLError(
76464
76280
  "A field with offset-based pagination must have a limit argument"
76465
76281
  )
76466
76282
  );
@@ -76476,20 +76292,20 @@ function noUnusedFragmentArguments(config) {
76476
76292
  const args = /* @__PURE__ */ new Set();
76477
76293
  return {
76478
76294
  enter(node) {
76479
- if (node.kind === graphql30.Kind.FRAGMENT_DEFINITION) {
76295
+ if (node.kind === graphql29.Kind.FRAGMENT_DEFINITION) {
76480
76296
  const definitionArguments = node.directives?.filter((directive) => directive.name.value === config.argumentsDirective).flatMap((directive) => directive.arguments);
76481
76297
  for (const arg of definitionArguments?.map((arg2) => arg2?.name.value) || []) {
76482
76298
  args.add(arg);
76483
76299
  }
76484
- } else if (node.kind === graphql30.Kind.VARIABLE) {
76300
+ } else if (node.kind === graphql29.Kind.VARIABLE) {
76485
76301
  args.delete(node.name.value);
76486
76302
  }
76487
76303
  },
76488
76304
  leave(node) {
76489
- if (node.kind === graphql30.Kind.FRAGMENT_DEFINITION) {
76305
+ if (node.kind === graphql29.Kind.FRAGMENT_DEFINITION) {
76490
76306
  if (args.size > 0) {
76491
76307
  ctx.reportError(
76492
- new graphql30.GraphQLError(
76308
+ new graphql29.GraphQLError(
76493
76309
  "Encountered unused fragment arguments: " + [...args].join(",")
76494
76310
  )
76495
76311
  );
@@ -76525,7 +76341,7 @@ function nodeDirectives(config, directives) {
76525
76341
  if (definition.kind === "OperationDefinition") {
76526
76342
  if (definition.operation !== "query") {
76527
76343
  ctx.reportError(
76528
- new graphql30.GraphQLError(
76344
+ new graphql29.GraphQLError(
76529
76345
  `@${node.name.value} must fall on a fragment or query document`
76530
76346
  )
76531
76347
  );
@@ -76537,7 +76353,7 @@ function nodeDirectives(config, directives) {
76537
76353
  }
76538
76354
  if (!possibleNodes.includes(definitionType)) {
76539
76355
  ctx.reportError(
76540
- new graphql30.GraphQLError(paginateOnNonNodeMessage(node.name.value))
76356
+ new graphql29.GraphQLError(paginateOnNonNodeMessage(node.name.value))
76541
76357
  );
76542
76358
  }
76543
76359
  }
@@ -76556,7 +76372,7 @@ function checkMutationOperation(config) {
76556
76372
  );
76557
76373
  if (append && prepend) {
76558
76374
  ctx.reportError(
76559
- new graphql30.GraphQLError(
76375
+ new graphql29.GraphQLError(
76560
76376
  `You can't apply both @${config.listPrependDirective} and @${config.listAppendDirective} at the same time`
76561
76377
  )
76562
76378
  );
@@ -76570,7 +76386,7 @@ function checkMutationOperation(config) {
76570
76386
  );
76571
76387
  if (parentId && allLists) {
76572
76388
  ctx.reportError(
76573
- new graphql30.GraphQLError(
76389
+ new graphql29.GraphQLError(
76574
76390
  `You can't apply both @${config.listParentDirective} and @${config.listAllListsDirective} at the same time`
76575
76391
  )
76576
76392
  );
@@ -76592,7 +76408,7 @@ function checkMaskDirectives(config) {
76592
76408
  );
76593
76409
  if (maskEnableDirective && maskDisableDirective) {
76594
76410
  ctx.reportError(
76595
- new graphql30.GraphQLError(
76411
+ new graphql29.GraphQLError(
76596
76412
  `You can't apply both @${config.maskEnableDirective} and @${config.maskDisableDirective} at the same time`
76597
76413
  )
76598
76414
  );
@@ -76634,7 +76450,7 @@ function validateLoadingDirective(config) {
76634
76450
  );
76635
76451
  if (!parentLoading && !global2) {
76636
76452
  ctx.reportError(
76637
- new graphql30.GraphQLError(
76453
+ new graphql29.GraphQLError(
76638
76454
  `@${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
76455
  )
76640
76456
  );
@@ -76656,7 +76472,7 @@ function validateLoadingDirective(config) {
76656
76472
  );
76657
76473
  if (!parentLoading && !global2) {
76658
76474
  ctx.reportError(
76659
- new graphql30.GraphQLError(
76475
+ new graphql29.GraphQLError(
76660
76476
  `@${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
76477
  )
76662
76478
  );
@@ -76671,7 +76487,7 @@ function getAndVerifyNodeInterface(config) {
76671
76487
  if (!nodeInterface) {
76672
76488
  return null;
76673
76489
  }
76674
- if (!graphql30.isInterfaceType(nodeInterface)) {
76490
+ if (!graphql29.isInterfaceType(nodeInterface)) {
76675
76491
  displayInvalidNodeFieldMessage(config);
76676
76492
  return null;
76677
76493
  }
@@ -76766,11 +76582,11 @@ async function uniqueDocumentNames(config, docs) {
76766
76582
  }
76767
76583
 
76768
76584
  // src/codegen/validators/noIDAlias.ts
76769
- var graphql31 = __toESM(require("graphql"), 1);
76585
+ var graphql30 = __toESM(require("graphql"), 1);
76770
76586
  async function noIDAlias(config, docs) {
76771
76587
  const errors = [];
76772
76588
  for (const { filename, document } of docs) {
76773
- graphql31.visit(document, {
76589
+ graphql30.visit(document, {
76774
76590
  Field(node, _3, __, ___, ancestors) {
76775
76591
  const fieldType = parentTypeFromAncestors(config.schema, filename, ancestors).name;
76776
76592
  if (config.keyFieldsForType(fieldType).includes(node.alias?.value || "")) {
@@ -76809,11 +76625,11 @@ async function validatePlugins(config, documents) {
76809
76625
  }
76810
76626
 
76811
76627
  // src/codegen/validators/componentFields.ts
76812
- var graphql32 = __toESM(require("graphql"), 1);
76628
+ var graphql31 = __toESM(require("graphql"), 1);
76813
76629
  async function componentFields2(config, docs) {
76814
76630
  const errors = [];
76815
76631
  for (const { filename: filepath, document } of docs) {
76816
- graphql32.visit(document, {
76632
+ graphql31.visit(document, {
76817
76633
  FragmentDefinition(node, _3, __, ___, ancestors) {
76818
76634
  const componentFieldDirective = node.directives?.find(
76819
76635
  (dir) => dir.name.value === config.componentFieldDirective
@@ -76861,7 +76677,7 @@ async function componentFields2(config, docs) {
76861
76677
  if (existingField && existingField.filepath !== filepath) {
76862
76678
  conflict = true;
76863
76679
  } else if (parentType && fieldValue) {
76864
- const fieldDef = graphql32.isObjectType(parentType) && parentType.getFields()[fieldValue];
76680
+ const fieldDef = graphql31.isObjectType(parentType) && parentType.getFields()[fieldValue];
76865
76681
  if (fieldDef && !fieldDef.astNode?.directives?.find(
76866
76682
  (dir) => dir.name.value === config.componentFieldDirective
76867
76683
  )) {
@@ -76874,7 +76690,7 @@ async function componentFields2(config, docs) {
76874
76690
  filepath
76875
76691
  });
76876
76692
  }
76877
- if (parentType && graphql32.isAbstractType(parentType)) {
76693
+ if (parentType && graphql31.isAbstractType(parentType)) {
76878
76694
  errors.push({
76879
76695
  message: `Cannot add component field ${parent2}.${fieldValue} because ${parent2} is an abstract type`,
76880
76696
  filepath
@@ -77095,12 +76911,12 @@ async function processJSFile(config, contents) {
77095
76911
  return documents;
77096
76912
  }
77097
76913
  async function processGraphQLDocument(config, filepath, document) {
77098
- const parsedDoc = graphql33.parse(document);
76914
+ const parsedDoc = graphql32.parse(document);
77099
76915
  const operations = parsedDoc.definitions.filter(
77100
- ({ kind: kind2 }) => kind2 === graphql33.Kind.OPERATION_DEFINITION
76916
+ ({ kind: kind2 }) => kind2 === graphql32.Kind.OPERATION_DEFINITION
77101
76917
  );
77102
76918
  const fragments = parsedDoc.definitions.filter(
77103
- ({ kind: kind2 }) => kind2 === graphql33.Kind.FRAGMENT_DEFINITION
76919
+ ({ kind: kind2 }) => kind2 === graphql32.Kind.FRAGMENT_DEFINITION
77104
76920
  );
77105
76921
  if (operations.length > 1) {
77106
76922
  throw new HoudiniError({
@@ -78216,12 +78032,12 @@ async function packageJSON(targetPath, frameworkInfo) {
78216
78032
  }
78217
78033
  packageJSON2.devDependencies = {
78218
78034
  ...packageJSON2.devDependencies,
78219
- houdini: "^1.2.44"
78035
+ houdini: "^1.2.46"
78220
78036
  };
78221
78037
  if (frameworkInfo.framework === "svelte" || frameworkInfo.framework === "kit") {
78222
78038
  packageJSON2.devDependencies = {
78223
78039
  ...packageJSON2.devDependencies,
78224
- "houdini-svelte": "^1.2.44"
78040
+ "houdini-svelte": "^1.2.46"
78225
78041
  };
78226
78042
  } else {
78227
78043
  throw new Error(`Unmanaged framework: "${JSON.stringify(frameworkInfo)}"`);