@sentio/sdk-bundle 2.61.0-rc.16 → 2.61.0-rc.18

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 (78) hide show
  1. package/lib/aptos/builtin/0x1.js +4 -4
  2. package/lib/aptos/builtin/0x3.js +5 -5
  3. package/lib/aptos/builtin/0x4.js +5 -5
  4. package/lib/aptos/builtin/index.js +6 -6
  5. package/lib/aptos/ext/index.js +4 -4
  6. package/lib/aptos/index.js +4 -4
  7. package/lib/btc/index.js +2 -2
  8. package/lib/{chunk-7PSVAVF7.js → chunk-2DBAJODX.js} +2 -2
  9. package/lib/{chunk-3OK4KGYN.js → chunk-5KVOJGF3.js} +3 -3
  10. package/lib/{chunk-GYUQVIFL.js → chunk-A25UNW22.js} +2 -2
  11. package/lib/{chunk-UV36Q6R3.js → chunk-ALLJKKKG.js} +2 -2
  12. package/lib/{chunk-CKVNZLFQ.js → chunk-AZ4QGL47.js} +2 -2
  13. package/lib/{chunk-GWSL7OMI.js → chunk-C7O3ZRA6.js} +2 -2
  14. package/lib/{chunk-FTB6UQ4Z.js → chunk-CBOFWNQN.js} +2 -2
  15. package/lib/{chunk-IVKQRIMO.js → chunk-HP63XQXE.js} +6 -6
  16. package/lib/{chunk-RQAKYVVN.js → chunk-J7D3BZ36.js} +3 -3
  17. package/lib/{chunk-Y7ZFDMUQ.js → chunk-K5ZEDXZ2.js} +5 -5
  18. package/lib/{chunk-7LGCMWS4.js → chunk-KI4KVU2N.js} +2 -2
  19. package/lib/{chunk-MDXSHBG3.js → chunk-KJ5NIZWD.js} +217 -1089
  20. package/lib/chunk-KJ5NIZWD.js.map +1 -0
  21. package/lib/{chunk-WAI7NRQ7.js → chunk-KWM3Y2YC.js} +5 -5
  22. package/lib/{chunk-JRNA734C.js → chunk-LJQBUVLO.js} +3 -3
  23. package/lib/{chunk-6QFBXVM3.js → chunk-QXMWSSHA.js} +4 -4
  24. package/lib/{chunk-DK7MLWAQ.js → chunk-TBCURT2C.js} +4 -4
  25. package/lib/{chunk-KJVQNF2D.js → chunk-TRGYPEBR.js} +5 -5
  26. package/lib/{chunk-DET46JXA.js → chunk-U2MOH5G2.js} +4 -4
  27. package/lib/{chunk-U7HTR235.js → chunk-VLVL4TLQ.js} +3 -3
  28. package/lib/{chunk-Y5VHOTD5.js → chunk-ZNHMJL3O.js} +6 -6
  29. package/lib/core/index.js +1 -1
  30. package/lib/eth/builtin/eacaggregatorproxy.js +2 -2
  31. package/lib/eth/builtin/erc1155.js +3 -3
  32. package/lib/eth/builtin/erc20.js +2 -2
  33. package/lib/eth/builtin/erc721.js +2 -2
  34. package/lib/eth/builtin/index.js +4 -4
  35. package/lib/eth/builtin/weth9.js +3 -3
  36. package/lib/eth/index.js +2 -2
  37. package/lib/fuel/index.js +2 -2
  38. package/lib/index.js +1 -1
  39. package/lib/iota/builtin/0x1.js +7 -7
  40. package/lib/iota/builtin/0x2.js +8 -8
  41. package/lib/iota/builtin/0x3.js +9 -9
  42. package/lib/iota/builtin/index.js +9 -9
  43. package/lib/iota/ext/index.js +4 -4
  44. package/lib/iota/index.js +6 -6
  45. package/lib/move/index.js +2 -2
  46. package/lib/solana/builtin/index.js +2 -2
  47. package/lib/solana/index.js +2 -2
  48. package/lib/stark/index.js +1 -1
  49. package/lib/store/index.js +1 -1
  50. package/lib/sui/builtin/0x1.js +7 -7
  51. package/lib/sui/builtin/0x2.js +8 -8
  52. package/lib/sui/builtin/0x3.js +9 -9
  53. package/lib/sui/builtin/index.js +9 -9
  54. package/lib/sui/ext/index.js +4 -4
  55. package/lib/sui/index.js +6 -6
  56. package/lib/testing/index.js +9 -9
  57. package/lib/utils/index.js +2 -2
  58. package/package.json +3 -2
  59. package/lib/chunk-MDXSHBG3.js.map +0 -1
  60. /package/lib/{chunk-7PSVAVF7.js.map → chunk-2DBAJODX.js.map} +0 -0
  61. /package/lib/{chunk-3OK4KGYN.js.map → chunk-5KVOJGF3.js.map} +0 -0
  62. /package/lib/{chunk-GYUQVIFL.js.map → chunk-A25UNW22.js.map} +0 -0
  63. /package/lib/{chunk-UV36Q6R3.js.map → chunk-ALLJKKKG.js.map} +0 -0
  64. /package/lib/{chunk-CKVNZLFQ.js.map → chunk-AZ4QGL47.js.map} +0 -0
  65. /package/lib/{chunk-GWSL7OMI.js.map → chunk-C7O3ZRA6.js.map} +0 -0
  66. /package/lib/{chunk-FTB6UQ4Z.js.map → chunk-CBOFWNQN.js.map} +0 -0
  67. /package/lib/{chunk-IVKQRIMO.js.map → chunk-HP63XQXE.js.map} +0 -0
  68. /package/lib/{chunk-RQAKYVVN.js.map → chunk-J7D3BZ36.js.map} +0 -0
  69. /package/lib/{chunk-Y7ZFDMUQ.js.map → chunk-K5ZEDXZ2.js.map} +0 -0
  70. /package/lib/{chunk-7LGCMWS4.js.map → chunk-KI4KVU2N.js.map} +0 -0
  71. /package/lib/{chunk-WAI7NRQ7.js.map → chunk-KWM3Y2YC.js.map} +0 -0
  72. /package/lib/{chunk-JRNA734C.js.map → chunk-LJQBUVLO.js.map} +0 -0
  73. /package/lib/{chunk-6QFBXVM3.js.map → chunk-QXMWSSHA.js.map} +0 -0
  74. /package/lib/{chunk-DK7MLWAQ.js.map → chunk-TBCURT2C.js.map} +0 -0
  75. /package/lib/{chunk-KJVQNF2D.js.map → chunk-TRGYPEBR.js.map} +0 -0
  76. /package/lib/{chunk-DET46JXA.js.map → chunk-U2MOH5G2.js.map} +0 -0
  77. /package/lib/{chunk-U7HTR235.js.map → chunk-VLVL4TLQ.js.map} +0 -0
  78. /package/lib/{chunk-Y5VHOTD5.js.map → chunk-ZNHMJL3O.js.map} +0 -0
@@ -9645,17 +9645,17 @@ var require_bn = __commonJS({
9645
9645
  }, "_normSign");
9646
9646
  if (typeof Symbol !== "undefined" && typeof Symbol.for === "function") {
9647
9647
  try {
9648
- BN2.prototype[Symbol.for("nodejs.util.inspect.custom")] = inspect2;
9648
+ BN2.prototype[Symbol.for("nodejs.util.inspect.custom")] = inspect;
9649
9649
  } catch (e) {
9650
- BN2.prototype.inspect = inspect2;
9650
+ BN2.prototype.inspect = inspect;
9651
9651
  }
9652
9652
  } else {
9653
- BN2.prototype.inspect = inspect2;
9653
+ BN2.prototype.inspect = inspect;
9654
9654
  }
9655
- function inspect2() {
9655
+ function inspect() {
9656
9656
  return (this.red ? "<BN-R: " : "<BN: ") + this.toString(16) + ">";
9657
9657
  }
9658
- __name(inspect2, "inspect");
9658
+ __name(inspect, "inspect");
9659
9659
  var zeros = [
9660
9660
  "",
9661
9661
  "0",
@@ -21751,13 +21751,13 @@ var require_version = __commonJS({
21751
21751
  exports.versionInfo = exports.version = void 0;
21752
21752
  var version = "16.11.0";
21753
21753
  exports.version = version;
21754
- var versionInfo2 = Object.freeze({
21754
+ var versionInfo = Object.freeze({
21755
21755
  major: 16,
21756
21756
  minor: 11,
21757
21757
  patch: 0,
21758
21758
  preReleaseTag: null
21759
21759
  });
21760
- exports.versionInfo = versionInfo2;
21760
+ exports.versionInfo = versionInfo;
21761
21761
  }
21762
21762
  });
21763
21763
 
@@ -21801,11 +21801,11 @@ var require_isObjectLike = __commonJS({
21801
21801
  Object.defineProperty(exports, "__esModule", {
21802
21802
  value: true
21803
21803
  });
21804
- exports.isObjectLike = isObjectLike2;
21805
- function isObjectLike2(value) {
21804
+ exports.isObjectLike = isObjectLike;
21805
+ function isObjectLike(value) {
21806
21806
  return typeof value == "object" && value !== null;
21807
21807
  }
21808
- __name(isObjectLike2, "isObjectLike");
21808
+ __name(isObjectLike, "isObjectLike");
21809
21809
  }
21810
21810
  });
21811
21811
 
@@ -21928,7 +21928,7 @@ var require_GraphQLError = __commonJS({
21928
21928
  value: true
21929
21929
  });
21930
21930
  exports.GraphQLError = void 0;
21931
- exports.formatError = formatError2;
21931
+ exports.formatError = formatError;
21932
21932
  exports.printError = printError;
21933
21933
  var _isObjectLike = require_isObjectLike();
21934
21934
  var _location = require_location();
@@ -21948,7 +21948,7 @@ var require_GraphQLError = __commonJS({
21948
21948
  return firstArg;
21949
21949
  }
21950
21950
  __name(toNormalizedOptions, "toNormalizedOptions");
21951
- var GraphQLError2 = class _GraphQLError extends Error {
21951
+ var GraphQLError = class _GraphQLError extends Error {
21952
21952
  static {
21953
21953
  __name(this, "GraphQLError");
21954
21954
  }
@@ -22083,7 +22083,7 @@ var require_GraphQLError = __commonJS({
22083
22083
  return formattedError;
22084
22084
  }
22085
22085
  };
22086
- exports.GraphQLError = GraphQLError2;
22086
+ exports.GraphQLError = GraphQLError;
22087
22087
  function undefinedIfEmpty(array) {
22088
22088
  return array === void 0 || array.length === 0 ? void 0 : array;
22089
22089
  }
@@ -22092,10 +22092,10 @@ var require_GraphQLError = __commonJS({
22092
22092
  return error.toString();
22093
22093
  }
22094
22094
  __name(printError, "printError");
22095
- function formatError2(error) {
22095
+ function formatError(error) {
22096
22096
  return error.toJSON();
22097
22097
  }
22098
- __name(formatError2, "formatError");
22098
+ __name(formatError, "formatError");
22099
22099
  }
22100
22100
  });
22101
22101
 
@@ -22351,53 +22351,53 @@ var require_kinds = __commonJS({
22351
22351
  value: true
22352
22352
  });
22353
22353
  exports.Kind = void 0;
22354
- var Kind7;
22355
- exports.Kind = Kind7;
22356
- (function(Kind8) {
22357
- Kind8["NAME"] = "Name";
22358
- Kind8["DOCUMENT"] = "Document";
22359
- Kind8["OPERATION_DEFINITION"] = "OperationDefinition";
22360
- Kind8["VARIABLE_DEFINITION"] = "VariableDefinition";
22361
- Kind8["SELECTION_SET"] = "SelectionSet";
22362
- Kind8["FIELD"] = "Field";
22363
- Kind8["ARGUMENT"] = "Argument";
22364
- Kind8["FRAGMENT_SPREAD"] = "FragmentSpread";
22365
- Kind8["INLINE_FRAGMENT"] = "InlineFragment";
22366
- Kind8["FRAGMENT_DEFINITION"] = "FragmentDefinition";
22367
- Kind8["VARIABLE"] = "Variable";
22368
- Kind8["INT"] = "IntValue";
22369
- Kind8["FLOAT"] = "FloatValue";
22370
- Kind8["STRING"] = "StringValue";
22371
- Kind8["BOOLEAN"] = "BooleanValue";
22372
- Kind8["NULL"] = "NullValue";
22373
- Kind8["ENUM"] = "EnumValue";
22374
- Kind8["LIST"] = "ListValue";
22375
- Kind8["OBJECT"] = "ObjectValue";
22376
- Kind8["OBJECT_FIELD"] = "ObjectField";
22377
- Kind8["DIRECTIVE"] = "Directive";
22378
- Kind8["NAMED_TYPE"] = "NamedType";
22379
- Kind8["LIST_TYPE"] = "ListType";
22380
- Kind8["NON_NULL_TYPE"] = "NonNullType";
22381
- Kind8["SCHEMA_DEFINITION"] = "SchemaDefinition";
22382
- Kind8["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
22383
- Kind8["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
22384
- Kind8["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
22385
- Kind8["FIELD_DEFINITION"] = "FieldDefinition";
22386
- Kind8["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
22387
- Kind8["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
22388
- Kind8["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
22389
- Kind8["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
22390
- Kind8["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
22391
- Kind8["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
22392
- Kind8["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
22393
- Kind8["SCHEMA_EXTENSION"] = "SchemaExtension";
22394
- Kind8["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
22395
- Kind8["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
22396
- Kind8["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
22397
- Kind8["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
22398
- Kind8["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
22399
- Kind8["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
22400
- })(Kind7 || (exports.Kind = Kind7 = {}));
22354
+ var Kind;
22355
+ exports.Kind = Kind;
22356
+ (function(Kind2) {
22357
+ Kind2["NAME"] = "Name";
22358
+ Kind2["DOCUMENT"] = "Document";
22359
+ Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
22360
+ Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
22361
+ Kind2["SELECTION_SET"] = "SelectionSet";
22362
+ Kind2["FIELD"] = "Field";
22363
+ Kind2["ARGUMENT"] = "Argument";
22364
+ Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
22365
+ Kind2["INLINE_FRAGMENT"] = "InlineFragment";
22366
+ Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
22367
+ Kind2["VARIABLE"] = "Variable";
22368
+ Kind2["INT"] = "IntValue";
22369
+ Kind2["FLOAT"] = "FloatValue";
22370
+ Kind2["STRING"] = "StringValue";
22371
+ Kind2["BOOLEAN"] = "BooleanValue";
22372
+ Kind2["NULL"] = "NullValue";
22373
+ Kind2["ENUM"] = "EnumValue";
22374
+ Kind2["LIST"] = "ListValue";
22375
+ Kind2["OBJECT"] = "ObjectValue";
22376
+ Kind2["OBJECT_FIELD"] = "ObjectField";
22377
+ Kind2["DIRECTIVE"] = "Directive";
22378
+ Kind2["NAMED_TYPE"] = "NamedType";
22379
+ Kind2["LIST_TYPE"] = "ListType";
22380
+ Kind2["NON_NULL_TYPE"] = "NonNullType";
22381
+ Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
22382
+ Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
22383
+ Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
22384
+ Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
22385
+ Kind2["FIELD_DEFINITION"] = "FieldDefinition";
22386
+ Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
22387
+ Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
22388
+ Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
22389
+ Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
22390
+ Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
22391
+ Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
22392
+ Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
22393
+ Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
22394
+ Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
22395
+ Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
22396
+ Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
22397
+ Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
22398
+ Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
22399
+ Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
22400
+ })(Kind || (exports.Kind = Kind = {}));
22401
22401
  }
22402
22402
  });
22403
22403
 
@@ -23267,27 +23267,27 @@ var require_inspect = __commonJS({
23267
23267
  Object.defineProperty(exports, "__esModule", {
23268
23268
  value: true
23269
23269
  });
23270
- exports.inspect = inspect2;
23270
+ exports.inspect = inspect;
23271
23271
  var MAX_ARRAY_LENGTH = 10;
23272
- var MAX_RECURSIVE_DEPTH2 = 2;
23273
- function inspect2(value) {
23274
- return formatValue2(value, []);
23272
+ var MAX_RECURSIVE_DEPTH = 2;
23273
+ function inspect(value) {
23274
+ return formatValue(value, []);
23275
23275
  }
23276
- __name(inspect2, "inspect");
23277
- function formatValue2(value, seenValues) {
23276
+ __name(inspect, "inspect");
23277
+ function formatValue(value, seenValues) {
23278
23278
  switch (typeof value) {
23279
23279
  case "string":
23280
23280
  return JSON.stringify(value);
23281
23281
  case "function":
23282
23282
  return value.name ? `[function ${value.name}]` : "[function]";
23283
23283
  case "object":
23284
- return formatObjectValue2(value, seenValues);
23284
+ return formatObjectValue(value, seenValues);
23285
23285
  default:
23286
23286
  return String(value);
23287
23287
  }
23288
23288
  }
23289
- __name(formatValue2, "formatValue");
23290
- function formatObjectValue2(value, previouslySeenValues) {
23289
+ __name(formatValue, "formatValue");
23290
+ function formatObjectValue(value, previouslySeenValues) {
23291
23291
  if (value === null) {
23292
23292
  return "null";
23293
23293
  }
@@ -23295,47 +23295,47 @@ var require_inspect = __commonJS({
23295
23295
  return "[Circular]";
23296
23296
  }
23297
23297
  const seenValues = [...previouslySeenValues, value];
23298
- if (isJSONable2(value)) {
23298
+ if (isJSONable(value)) {
23299
23299
  const jsonValue = value.toJSON();
23300
23300
  if (jsonValue !== value) {
23301
- return typeof jsonValue === "string" ? jsonValue : formatValue2(jsonValue, seenValues);
23301
+ return typeof jsonValue === "string" ? jsonValue : formatValue(jsonValue, seenValues);
23302
23302
  }
23303
23303
  } else if (Array.isArray(value)) {
23304
- return formatArray2(value, seenValues);
23304
+ return formatArray(value, seenValues);
23305
23305
  }
23306
- return formatObject2(value, seenValues);
23306
+ return formatObject(value, seenValues);
23307
23307
  }
23308
- __name(formatObjectValue2, "formatObjectValue");
23309
- function isJSONable2(value) {
23308
+ __name(formatObjectValue, "formatObjectValue");
23309
+ function isJSONable(value) {
23310
23310
  return typeof value.toJSON === "function";
23311
23311
  }
23312
- __name(isJSONable2, "isJSONable");
23313
- function formatObject2(object, seenValues) {
23312
+ __name(isJSONable, "isJSONable");
23313
+ function formatObject(object, seenValues) {
23314
23314
  const entries = Object.entries(object);
23315
23315
  if (entries.length === 0) {
23316
23316
  return "{}";
23317
23317
  }
23318
- if (seenValues.length > MAX_RECURSIVE_DEPTH2) {
23319
- return "[" + getObjectTag2(object) + "]";
23318
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
23319
+ return "[" + getObjectTag(object) + "]";
23320
23320
  }
23321
23321
  const properties = entries.map(
23322
- ([key, value]) => key + ": " + formatValue2(value, seenValues)
23322
+ ([key, value]) => key + ": " + formatValue(value, seenValues)
23323
23323
  );
23324
23324
  return "{ " + properties.join(", ") + " }";
23325
23325
  }
23326
- __name(formatObject2, "formatObject");
23327
- function formatArray2(array, seenValues) {
23326
+ __name(formatObject, "formatObject");
23327
+ function formatArray(array, seenValues) {
23328
23328
  if (array.length === 0) {
23329
23329
  return "[]";
23330
23330
  }
23331
- if (seenValues.length > MAX_RECURSIVE_DEPTH2) {
23331
+ if (seenValues.length > MAX_RECURSIVE_DEPTH) {
23332
23332
  return "[Array]";
23333
23333
  }
23334
23334
  const len = Math.min(MAX_ARRAY_LENGTH, array.length);
23335
23335
  const remaining = array.length - len;
23336
23336
  const items = [];
23337
23337
  for (let i = 0; i < len; ++i) {
23338
- items.push(formatValue2(array[i], seenValues));
23338
+ items.push(formatValue(array[i], seenValues));
23339
23339
  }
23340
23340
  if (remaining === 1) {
23341
23341
  items.push("... 1 more item");
@@ -23344,8 +23344,8 @@ var require_inspect = __commonJS({
23344
23344
  }
23345
23345
  return "[" + items.join(", ") + "]";
23346
23346
  }
23347
- __name(formatArray2, "formatArray");
23348
- function getObjectTag2(object) {
23347
+ __name(formatArray, "formatArray");
23348
+ function getObjectTag(object) {
23349
23349
  const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
23350
23350
  if (tag === "Object" && typeof object.constructor === "function") {
23351
23351
  const name = object.constructor.name;
@@ -23355,7 +23355,7 @@ var require_inspect = __commonJS({
23355
23355
  }
23356
23356
  return tag;
23357
23357
  }
23358
- __name(getObjectTag2, "getObjectTag");
23358
+ __name(getObjectTag, "getObjectTag");
23359
23359
  }
23360
23360
  });
23361
23361
 
@@ -23465,7 +23465,7 @@ var require_parser = __commonJS({
23465
23465
  value: true
23466
23466
  });
23467
23467
  exports.Parser = void 0;
23468
- exports.parse = parse6;
23468
+ exports.parse = parse5;
23469
23469
  exports.parseConstValue = parseConstValue;
23470
23470
  exports.parseType = parseType;
23471
23471
  exports.parseValue = parseValue;
@@ -23476,7 +23476,7 @@ var require_parser = __commonJS({
23476
23476
  var _lexer = require_lexer();
23477
23477
  var _source = require_source();
23478
23478
  var _tokenKind = require_tokenKind();
23479
- function parse6(source, options) {
23479
+ function parse5(source, options) {
23480
23480
  const parser = new Parser(source, options);
23481
23481
  const document2 = parser.parseDocument();
23482
23482
  Object.defineProperty(document2, "tokenCount", {
@@ -23485,7 +23485,7 @@ var require_parser = __commonJS({
23485
23485
  });
23486
23486
  return document2;
23487
23487
  }
23488
- __name(parse6, "parse");
23488
+ __name(parse5, "parse");
23489
23489
  function parseValue(source, options) {
23490
23490
  const parser = new Parser(source, options);
23491
23491
  parser.expectToken(_tokenKind.TokenKind.SOF);
@@ -25480,14 +25480,14 @@ var require_printer = __commonJS({
25480
25480
  Object.defineProperty(exports, "__esModule", {
25481
25481
  value: true
25482
25482
  });
25483
- exports.print = print5;
25483
+ exports.print = print3;
25484
25484
  var _blockString = require_blockString();
25485
25485
  var _printString = require_printString();
25486
25486
  var _visitor = require_visitor();
25487
- function print5(ast) {
25487
+ function print3(ast) {
25488
25488
  return (0, _visitor.visit)(ast, printDocASTReducer);
25489
25489
  }
25490
- __name(print5, "print");
25490
+ __name(print3, "print");
25491
25491
  var MAX_LINE_LENGTH = 80;
25492
25492
  var printDocASTReducer = {
25493
25493
  Name: {
@@ -25740,10 +25740,10 @@ var require_valueFromASTUntyped = __commonJS({
25740
25740
  Object.defineProperty(exports, "__esModule", {
25741
25741
  value: true
25742
25742
  });
25743
- exports.valueFromASTUntyped = valueFromASTUntyped2;
25743
+ exports.valueFromASTUntyped = valueFromASTUntyped;
25744
25744
  var _keyValMap = require_keyValMap();
25745
25745
  var _kinds = require_kinds();
25746
- function valueFromASTUntyped2(valueNode, variables) {
25746
+ function valueFromASTUntyped(valueNode, variables) {
25747
25747
  switch (valueNode.kind) {
25748
25748
  case _kinds.Kind.NULL:
25749
25749
  return null;
@@ -25757,19 +25757,19 @@ var require_valueFromASTUntyped = __commonJS({
25757
25757
  return valueNode.value;
25758
25758
  case _kinds.Kind.LIST:
25759
25759
  return valueNode.values.map(
25760
- (node) => valueFromASTUntyped2(node, variables)
25760
+ (node) => valueFromASTUntyped(node, variables)
25761
25761
  );
25762
25762
  case _kinds.Kind.OBJECT:
25763
25763
  return (0, _keyValMap.keyValMap)(
25764
25764
  valueNode.fields,
25765
25765
  (field) => field.name.value,
25766
- (field) => valueFromASTUntyped2(field.value, variables)
25766
+ (field) => valueFromASTUntyped(field.value, variables)
25767
25767
  );
25768
25768
  case _kinds.Kind.VARIABLE:
25769
25769
  return variables === null || variables === void 0 ? void 0 : variables[valueNode.name.value];
25770
25770
  }
25771
25771
  }
25772
- __name(valueFromASTUntyped2, "valueFromASTUntyped");
25772
+ __name(valueFromASTUntyped, "valueFromASTUntyped");
25773
25773
  }
25774
25774
  });
25775
25775
 
@@ -25851,22 +25851,22 @@ var require_definition = __commonJS({
25851
25851
  exports.getNullableType = getNullableType;
25852
25852
  exports.isAbstractType = isAbstractType;
25853
25853
  exports.isCompositeType = isCompositeType;
25854
- exports.isEnumType = isEnumType3;
25855
- exports.isInputObjectType = isInputObjectType3;
25854
+ exports.isEnumType = isEnumType;
25855
+ exports.isInputObjectType = isInputObjectType;
25856
25856
  exports.isInputType = isInputType;
25857
- exports.isInterfaceType = isInterfaceType3;
25858
- exports.isLeafType = isLeafType2;
25859
- exports.isListType = isListType4;
25857
+ exports.isInterfaceType = isInterfaceType2;
25858
+ exports.isLeafType = isLeafType;
25859
+ exports.isListType = isListType2;
25860
25860
  exports.isNamedType = isNamedType;
25861
- exports.isNonNullType = isNonNullType5;
25861
+ exports.isNonNullType = isNonNullType2;
25862
25862
  exports.isNullableType = isNullableType;
25863
- exports.isObjectType = isObjectType3;
25863
+ exports.isObjectType = isObjectType2;
25864
25864
  exports.isOutputType = isOutputType;
25865
25865
  exports.isRequiredArgument = isRequiredArgument;
25866
25866
  exports.isRequiredInputField = isRequiredInputField;
25867
- exports.isScalarType = isScalarType3;
25867
+ exports.isScalarType = isScalarType2;
25868
25868
  exports.isType = isType2;
25869
- exports.isUnionType = isUnionType2;
25869
+ exports.isUnionType = isUnionType;
25870
25870
  exports.isWrappingType = isWrappingType;
25871
25871
  exports.resolveObjMapThunk = resolveObjMapThunk;
25872
25872
  exports.resolveReadonlyArrayThunk = resolveReadonlyArrayThunk;
@@ -25887,7 +25887,7 @@ var require_definition = __commonJS({
25887
25887
  var _valueFromASTUntyped = require_valueFromASTUntyped();
25888
25888
  var _assertName = require_assertName();
25889
25889
  function isType2(type3) {
25890
- return isScalarType3(type3) || isObjectType3(type3) || isInterfaceType3(type3) || isUnionType2(type3) || isEnumType3(type3) || isInputObjectType3(type3) || isListType4(type3) || isNonNullType5(type3);
25890
+ return isScalarType2(type3) || isObjectType2(type3) || isInterfaceType2(type3) || isUnionType(type3) || isEnumType(type3) || isInputObjectType(type3) || isListType2(type3) || isNonNullType2(type3);
25891
25891
  }
25892
25892
  __name(isType2, "isType");
25893
25893
  function assertType(type3) {
@@ -25899,12 +25899,12 @@ var require_definition = __commonJS({
25899
25899
  return type3;
25900
25900
  }
25901
25901
  __name(assertType, "assertType");
25902
- function isScalarType3(type3) {
25902
+ function isScalarType2(type3) {
25903
25903
  return (0, _instanceOf.instanceOf)(type3, GraphQLScalarType);
25904
25904
  }
25905
- __name(isScalarType3, "isScalarType");
25905
+ __name(isScalarType2, "isScalarType");
25906
25906
  function assertScalarType(type3) {
25907
- if (!isScalarType3(type3)) {
25907
+ if (!isScalarType2(type3)) {
25908
25908
  throw new Error(
25909
25909
  `Expected ${(0, _inspect.inspect)(type3)} to be a GraphQL Scalar type.`
25910
25910
  );
@@ -25912,12 +25912,12 @@ var require_definition = __commonJS({
25912
25912
  return type3;
25913
25913
  }
25914
25914
  __name(assertScalarType, "assertScalarType");
25915
- function isObjectType3(type3) {
25915
+ function isObjectType2(type3) {
25916
25916
  return (0, _instanceOf.instanceOf)(type3, GraphQLObjectType2);
25917
25917
  }
25918
- __name(isObjectType3, "isObjectType");
25918
+ __name(isObjectType2, "isObjectType");
25919
25919
  function assertObjectType(type3) {
25920
- if (!isObjectType3(type3)) {
25920
+ if (!isObjectType2(type3)) {
25921
25921
  throw new Error(
25922
25922
  `Expected ${(0, _inspect.inspect)(type3)} to be a GraphQL Object type.`
25923
25923
  );
@@ -25925,12 +25925,12 @@ var require_definition = __commonJS({
25925
25925
  return type3;
25926
25926
  }
25927
25927
  __name(assertObjectType, "assertObjectType");
25928
- function isInterfaceType3(type3) {
25928
+ function isInterfaceType2(type3) {
25929
25929
  return (0, _instanceOf.instanceOf)(type3, GraphQLInterfaceType);
25930
25930
  }
25931
- __name(isInterfaceType3, "isInterfaceType");
25931
+ __name(isInterfaceType2, "isInterfaceType");
25932
25932
  function assertInterfaceType(type3) {
25933
- if (!isInterfaceType3(type3)) {
25933
+ if (!isInterfaceType2(type3)) {
25934
25934
  throw new Error(
25935
25935
  `Expected ${(0, _inspect.inspect)(type3)} to be a GraphQL Interface type.`
25936
25936
  );
@@ -25938,12 +25938,12 @@ var require_definition = __commonJS({
25938
25938
  return type3;
25939
25939
  }
25940
25940
  __name(assertInterfaceType, "assertInterfaceType");
25941
- function isUnionType2(type3) {
25941
+ function isUnionType(type3) {
25942
25942
  return (0, _instanceOf.instanceOf)(type3, GraphQLUnionType);
25943
25943
  }
25944
- __name(isUnionType2, "isUnionType");
25944
+ __name(isUnionType, "isUnionType");
25945
25945
  function assertUnionType(type3) {
25946
- if (!isUnionType2(type3)) {
25946
+ if (!isUnionType(type3)) {
25947
25947
  throw new Error(
25948
25948
  `Expected ${(0, _inspect.inspect)(type3)} to be a GraphQL Union type.`
25949
25949
  );
@@ -25951,12 +25951,12 @@ var require_definition = __commonJS({
25951
25951
  return type3;
25952
25952
  }
25953
25953
  __name(assertUnionType, "assertUnionType");
25954
- function isEnumType3(type3) {
25954
+ function isEnumType(type3) {
25955
25955
  return (0, _instanceOf.instanceOf)(type3, GraphQLEnumType);
25956
25956
  }
25957
- __name(isEnumType3, "isEnumType");
25957
+ __name(isEnumType, "isEnumType");
25958
25958
  function assertEnumType(type3) {
25959
- if (!isEnumType3(type3)) {
25959
+ if (!isEnumType(type3)) {
25960
25960
  throw new Error(
25961
25961
  `Expected ${(0, _inspect.inspect)(type3)} to be a GraphQL Enum type.`
25962
25962
  );
@@ -25964,12 +25964,12 @@ var require_definition = __commonJS({
25964
25964
  return type3;
25965
25965
  }
25966
25966
  __name(assertEnumType, "assertEnumType");
25967
- function isInputObjectType3(type3) {
25967
+ function isInputObjectType(type3) {
25968
25968
  return (0, _instanceOf.instanceOf)(type3, GraphQLInputObjectType);
25969
25969
  }
25970
- __name(isInputObjectType3, "isInputObjectType");
25970
+ __name(isInputObjectType, "isInputObjectType");
25971
25971
  function assertInputObjectType(type3) {
25972
- if (!isInputObjectType3(type3)) {
25972
+ if (!isInputObjectType(type3)) {
25973
25973
  throw new Error(
25974
25974
  `Expected ${(0, _inspect.inspect)(
25975
25975
  type3
@@ -25979,12 +25979,12 @@ var require_definition = __commonJS({
25979
25979
  return type3;
25980
25980
  }
25981
25981
  __name(assertInputObjectType, "assertInputObjectType");
25982
- function isListType4(type3) {
25982
+ function isListType2(type3) {
25983
25983
  return (0, _instanceOf.instanceOf)(type3, GraphQLList);
25984
25984
  }
25985
- __name(isListType4, "isListType");
25985
+ __name(isListType2, "isListType");
25986
25986
  function assertListType(type3) {
25987
- if (!isListType4(type3)) {
25987
+ if (!isListType2(type3)) {
25988
25988
  throw new Error(
25989
25989
  `Expected ${(0, _inspect.inspect)(type3)} to be a GraphQL List type.`
25990
25990
  );
@@ -25992,12 +25992,12 @@ var require_definition = __commonJS({
25992
25992
  return type3;
25993
25993
  }
25994
25994
  __name(assertListType, "assertListType");
25995
- function isNonNullType5(type3) {
25995
+ function isNonNullType2(type3) {
25996
25996
  return (0, _instanceOf.instanceOf)(type3, GraphQLNonNull);
25997
25997
  }
25998
- __name(isNonNullType5, "isNonNullType");
25998
+ __name(isNonNullType2, "isNonNullType");
25999
25999
  function assertNonNullType(type3) {
26000
- if (!isNonNullType5(type3)) {
26000
+ if (!isNonNullType2(type3)) {
26001
26001
  throw new Error(
26002
26002
  `Expected ${(0, _inspect.inspect)(type3)} to be a GraphQL Non-Null type.`
26003
26003
  );
@@ -26006,7 +26006,7 @@ var require_definition = __commonJS({
26006
26006
  }
26007
26007
  __name(assertNonNullType, "assertNonNullType");
26008
26008
  function isInputType(type3) {
26009
- return isScalarType3(type3) || isEnumType3(type3) || isInputObjectType3(type3) || isWrappingType(type3) && isInputType(type3.ofType);
26009
+ return isScalarType2(type3) || isEnumType(type3) || isInputObjectType(type3) || isWrappingType(type3) && isInputType(type3.ofType);
26010
26010
  }
26011
26011
  __name(isInputType, "isInputType");
26012
26012
  function assertInputType(type3) {
@@ -26019,7 +26019,7 @@ var require_definition = __commonJS({
26019
26019
  }
26020
26020
  __name(assertInputType, "assertInputType");
26021
26021
  function isOutputType(type3) {
26022
- return isScalarType3(type3) || isObjectType3(type3) || isInterfaceType3(type3) || isUnionType2(type3) || isEnumType3(type3) || isWrappingType(type3) && isOutputType(type3.ofType);
26022
+ return isScalarType2(type3) || isObjectType2(type3) || isInterfaceType2(type3) || isUnionType(type3) || isEnumType(type3) || isWrappingType(type3) && isOutputType(type3.ofType);
26023
26023
  }
26024
26024
  __name(isOutputType, "isOutputType");
26025
26025
  function assertOutputType(type3) {
@@ -26031,12 +26031,12 @@ var require_definition = __commonJS({
26031
26031
  return type3;
26032
26032
  }
26033
26033
  __name(assertOutputType, "assertOutputType");
26034
- function isLeafType2(type3) {
26035
- return isScalarType3(type3) || isEnumType3(type3);
26034
+ function isLeafType(type3) {
26035
+ return isScalarType2(type3) || isEnumType(type3);
26036
26036
  }
26037
- __name(isLeafType2, "isLeafType");
26037
+ __name(isLeafType, "isLeafType");
26038
26038
  function assertLeafType(type3) {
26039
- if (!isLeafType2(type3)) {
26039
+ if (!isLeafType(type3)) {
26040
26040
  throw new Error(
26041
26041
  `Expected ${(0, _inspect.inspect)(type3)} to be a GraphQL leaf type.`
26042
26042
  );
@@ -26045,7 +26045,7 @@ var require_definition = __commonJS({
26045
26045
  }
26046
26046
  __name(assertLeafType, "assertLeafType");
26047
26047
  function isCompositeType(type3) {
26048
- return isObjectType3(type3) || isInterfaceType3(type3) || isUnionType2(type3);
26048
+ return isObjectType2(type3) || isInterfaceType2(type3) || isUnionType(type3);
26049
26049
  }
26050
26050
  __name(isCompositeType, "isCompositeType");
26051
26051
  function assertCompositeType(type3) {
@@ -26058,7 +26058,7 @@ var require_definition = __commonJS({
26058
26058
  }
26059
26059
  __name(assertCompositeType, "assertCompositeType");
26060
26060
  function isAbstractType(type3) {
26061
- return isInterfaceType3(type3) || isUnionType2(type3);
26061
+ return isInterfaceType2(type3) || isUnionType(type3);
26062
26062
  }
26063
26063
  __name(isAbstractType, "isAbstractType");
26064
26064
  function assertAbstractType(type3) {
@@ -26117,7 +26117,7 @@ var require_definition = __commonJS({
26117
26117
  };
26118
26118
  exports.GraphQLNonNull = GraphQLNonNull;
26119
26119
  function isWrappingType(type3) {
26120
- return isListType4(type3) || isNonNullType5(type3);
26120
+ return isListType2(type3) || isNonNullType2(type3);
26121
26121
  }
26122
26122
  __name(isWrappingType, "isWrappingType");
26123
26123
  function assertWrappingType(type3) {
@@ -26130,7 +26130,7 @@ var require_definition = __commonJS({
26130
26130
  }
26131
26131
  __name(assertWrappingType, "assertWrappingType");
26132
26132
  function isNullableType(type3) {
26133
- return isType2(type3) && !isNonNullType5(type3);
26133
+ return isType2(type3) && !isNonNullType2(type3);
26134
26134
  }
26135
26135
  __name(isNullableType, "isNullableType");
26136
26136
  function assertNullableType(type3) {
@@ -26144,12 +26144,12 @@ var require_definition = __commonJS({
26144
26144
  __name(assertNullableType, "assertNullableType");
26145
26145
  function getNullableType(type3) {
26146
26146
  if (type3) {
26147
- return isNonNullType5(type3) ? type3.ofType : type3;
26147
+ return isNonNullType2(type3) ? type3.ofType : type3;
26148
26148
  }
26149
26149
  }
26150
26150
  __name(getNullableType, "getNullableType");
26151
26151
  function isNamedType(type3) {
26152
- return isScalarType3(type3) || isObjectType3(type3) || isInterfaceType3(type3) || isUnionType2(type3) || isEnumType3(type3) || isInputObjectType3(type3);
26152
+ return isScalarType2(type3) || isObjectType2(type3) || isInterfaceType2(type3) || isUnionType(type3) || isEnumType(type3) || isInputObjectType(type3);
26153
26153
  }
26154
26154
  __name(isNamedType, "isNamedType");
26155
26155
  function assertNamedType(type3) {
@@ -26382,7 +26382,7 @@ var require_definition = __commonJS({
26382
26382
  }
26383
26383
  __name(argsToArgsConfig, "argsToArgsConfig");
26384
26384
  function isRequiredArgument(arg) {
26385
- return isNonNullType5(arg.type) && arg.defaultValue === void 0;
26385
+ return isNonNullType2(arg.type) && arg.defaultValue === void 0;
26386
26386
  }
26387
26387
  __name(isRequiredArgument, "isRequiredArgument");
26388
26388
  var GraphQLInterfaceType = class {
@@ -26716,7 +26716,7 @@ var require_definition = __commonJS({
26716
26716
  }
26717
26717
  __name(defineInputFieldMap, "defineInputFieldMap");
26718
26718
  function isRequiredInputField(field) {
26719
- return isNonNullType5(field.type) && field.defaultValue === void 0;
26719
+ return isNonNullType2(field.type) && field.defaultValue === void 0;
26720
26720
  }
26721
26721
  __name(isRequiredInputField, "isRequiredInputField");
26722
26722
  }
@@ -26798,7 +26798,7 @@ var require_scalars = __commonJS({
26798
26798
  value: true
26799
26799
  });
26800
26800
  exports.GraphQLString = exports.GraphQLInt = exports.GraphQLID = exports.GraphQLFloat = exports.GraphQLBoolean = exports.GRAPHQL_MIN_INT = exports.GRAPHQL_MAX_INT = void 0;
26801
- exports.isSpecifiedScalarType = isSpecifiedScalarType2;
26801
+ exports.isSpecifiedScalarType = isSpecifiedScalarType;
26802
26802
  exports.specifiedScalarTypes = void 0;
26803
26803
  var _inspect = require_inspect();
26804
26804
  var _isObjectLike = require_isObjectLike();
@@ -27051,10 +27051,10 @@ var require_scalars = __commonJS({
27051
27051
  GraphQLID
27052
27052
  ]);
27053
27053
  exports.specifiedScalarTypes = specifiedScalarTypes;
27054
- function isSpecifiedScalarType2(type3) {
27054
+ function isSpecifiedScalarType(type3) {
27055
27055
  return specifiedScalarTypes.some(({ name }) => type3.name === name);
27056
27056
  }
27057
- __name(isSpecifiedScalarType2, "isSpecifiedScalarType");
27057
+ __name(isSpecifiedScalarType, "isSpecifiedScalarType");
27058
27058
  function serializeObject(outputValue) {
27059
27059
  if ((0, _isObjectLike.isObjectLike)(outputValue)) {
27060
27060
  if (typeof outputValue.valueOf === "function") {
@@ -27083,7 +27083,7 @@ var require_directives = __commonJS({
27083
27083
  exports.GraphQLSpecifiedByDirective = exports.GraphQLSkipDirective = exports.GraphQLOneOfDirective = exports.GraphQLIncludeDirective = exports.GraphQLDirective = exports.GraphQLDeprecatedDirective = exports.DEFAULT_DEPRECATION_REASON = void 0;
27084
27084
  exports.assertDirective = assertDirective;
27085
27085
  exports.isDirective = isDirective;
27086
- exports.isSpecifiedDirective = isSpecifiedDirective2;
27086
+ exports.isSpecifiedDirective = isSpecifiedDirective;
27087
27087
  exports.specifiedDirectives = void 0;
27088
27088
  var _devAssert = require_devAssert();
27089
27089
  var _inspect = require_inspect();
@@ -27186,7 +27186,7 @@ var require_directives = __commonJS({
27186
27186
  exports.GraphQLSkipDirective = GraphQLSkipDirective;
27187
27187
  var DEFAULT_DEPRECATION_REASON = "No longer supported";
27188
27188
  exports.DEFAULT_DEPRECATION_REASON = DEFAULT_DEPRECATION_REASON;
27189
- var GraphQLDeprecatedDirective2 = new GraphQLDirective({
27189
+ var GraphQLDeprecatedDirective = new GraphQLDirective({
27190
27190
  name: "deprecated",
27191
27191
  description: "Marks an element of a GraphQL schema as no longer supported.",
27192
27192
  locations: [
@@ -27203,7 +27203,7 @@ var require_directives = __commonJS({
27203
27203
  }
27204
27204
  }
27205
27205
  });
27206
- exports.GraphQLDeprecatedDirective = GraphQLDeprecatedDirective2;
27206
+ exports.GraphQLDeprecatedDirective = GraphQLDeprecatedDirective;
27207
27207
  var GraphQLSpecifiedByDirective = new GraphQLDirective({
27208
27208
  name: "specifiedBy",
27209
27209
  description: "Exposes a URL that specifies the behavior of this scalar.",
@@ -27223,18 +27223,18 @@ var require_directives = __commonJS({
27223
27223
  args: {}
27224
27224
  });
27225
27225
  exports.GraphQLOneOfDirective = GraphQLOneOfDirective;
27226
- var specifiedDirectives2 = Object.freeze([
27226
+ var specifiedDirectives = Object.freeze([
27227
27227
  GraphQLIncludeDirective,
27228
27228
  GraphQLSkipDirective,
27229
- GraphQLDeprecatedDirective2,
27229
+ GraphQLDeprecatedDirective,
27230
27230
  GraphQLSpecifiedByDirective,
27231
27231
  GraphQLOneOfDirective
27232
27232
  ]);
27233
- exports.specifiedDirectives = specifiedDirectives2;
27234
- function isSpecifiedDirective2(directive) {
27235
- return specifiedDirectives2.some(({ name }) => name === directive.name);
27233
+ exports.specifiedDirectives = specifiedDirectives;
27234
+ function isSpecifiedDirective(directive) {
27235
+ return specifiedDirectives.some(({ name }) => name === directive.name);
27236
27236
  }
27237
- __name(isSpecifiedDirective2, "isSpecifiedDirective");
27237
+ __name(isSpecifiedDirective, "isSpecifiedDirective");
27238
27238
  }
27239
27239
  });
27240
27240
 
@@ -27245,11 +27245,11 @@ var require_isIterableObject = __commonJS({
27245
27245
  Object.defineProperty(exports, "__esModule", {
27246
27246
  value: true
27247
27247
  });
27248
- exports.isIterableObject = isIterableObject2;
27249
- function isIterableObject2(maybeIterable) {
27248
+ exports.isIterableObject = isIterableObject;
27249
+ function isIterableObject(maybeIterable) {
27250
27250
  return typeof maybeIterable === "object" && typeof (maybeIterable === null || maybeIterable === void 0 ? void 0 : maybeIterable[Symbol.iterator]) === "function";
27251
27251
  }
27252
- __name(isIterableObject2, "isIterableObject");
27252
+ __name(isIterableObject, "isIterableObject");
27253
27253
  }
27254
27254
  });
27255
27255
 
@@ -27260,7 +27260,7 @@ var require_astFromValue = __commonJS({
27260
27260
  Object.defineProperty(exports, "__esModule", {
27261
27261
  value: true
27262
27262
  });
27263
- exports.astFromValue = astFromValue2;
27263
+ exports.astFromValue = astFromValue;
27264
27264
  var _inspect = require_inspect();
27265
27265
  var _invariant = require_invariant();
27266
27266
  var _isIterableObject = require_isIterableObject();
@@ -27268,9 +27268,9 @@ var require_astFromValue = __commonJS({
27268
27268
  var _kinds = require_kinds();
27269
27269
  var _definition = require_definition();
27270
27270
  var _scalars = require_scalars();
27271
- function astFromValue2(value, type3) {
27271
+ function astFromValue(value, type3) {
27272
27272
  if ((0, _definition.isNonNullType)(type3)) {
27273
- const astValue = astFromValue2(value, type3.ofType);
27273
+ const astValue = astFromValue(value, type3.ofType);
27274
27274
  if ((astValue === null || astValue === void 0 ? void 0 : astValue.kind) === _kinds.Kind.NULL) {
27275
27275
  return null;
27276
27276
  }
@@ -27289,7 +27289,7 @@ var require_astFromValue = __commonJS({
27289
27289
  if ((0, _isIterableObject.isIterableObject)(value)) {
27290
27290
  const valuesNodes = [];
27291
27291
  for (const item of value) {
27292
- const itemNode = astFromValue2(item, itemType);
27292
+ const itemNode = astFromValue(item, itemType);
27293
27293
  if (itemNode != null) {
27294
27294
  valuesNodes.push(itemNode);
27295
27295
  }
@@ -27299,7 +27299,7 @@ var require_astFromValue = __commonJS({
27299
27299
  values: valuesNodes
27300
27300
  };
27301
27301
  }
27302
- return astFromValue2(value, itemType);
27302
+ return astFromValue(value, itemType);
27303
27303
  }
27304
27304
  if ((0, _definition.isInputObjectType)(type3)) {
27305
27305
  if (!(0, _isObjectLike.isObjectLike)(value)) {
@@ -27307,7 +27307,7 @@ var require_astFromValue = __commonJS({
27307
27307
  }
27308
27308
  const fieldNodes = [];
27309
27309
  for (const field of Object.values(type3.getFields())) {
27310
- const fieldValue = astFromValue2(value[field.name], field.type);
27310
+ const fieldValue = astFromValue(value[field.name], field.type);
27311
27311
  if (fieldValue) {
27312
27312
  fieldNodes.push({
27313
27313
  kind: _kinds.Kind.OBJECT_FIELD,
@@ -27337,7 +27337,7 @@ var require_astFromValue = __commonJS({
27337
27337
  }
27338
27338
  if (typeof serialized === "number" && Number.isFinite(serialized)) {
27339
27339
  const stringNum = String(serialized);
27340
- return integerStringRegExp3.test(stringNum) ? {
27340
+ return integerStringRegExp.test(stringNum) ? {
27341
27341
  kind: _kinds.Kind.INT,
27342
27342
  value: stringNum
27343
27343
  } : {
@@ -27352,7 +27352,7 @@ var require_astFromValue = __commonJS({
27352
27352
  value: serialized
27353
27353
  };
27354
27354
  }
27355
- if (type3 === _scalars.GraphQLID && integerStringRegExp3.test(serialized)) {
27355
+ if (type3 === _scalars.GraphQLID && integerStringRegExp.test(serialized)) {
27356
27356
  return {
27357
27357
  kind: _kinds.Kind.INT,
27358
27358
  value: serialized
@@ -27372,8 +27372,8 @@ var require_astFromValue = __commonJS({
27372
27372
  "Unexpected input type: " + (0, _inspect.inspect)(type3)
27373
27373
  );
27374
27374
  }
27375
- __name(astFromValue2, "astFromValue");
27376
- var integerStringRegExp3 = /^-?(?:0|[1-9][0-9]*)$/;
27375
+ __name(astFromValue, "astFromValue");
27376
+ var integerStringRegExp = /^-?(?:0|[1-9][0-9]*)$/;
27377
27377
  }
27378
27378
  });
27379
27379
 
@@ -27385,7 +27385,7 @@ var require_introspection = __commonJS({
27385
27385
  value: true
27386
27386
  });
27387
27387
  exports.introspectionTypes = exports.__TypeKind = exports.__Type = exports.__Schema = exports.__InputValue = exports.__Field = exports.__EnumValue = exports.__DirectiveLocation = exports.__Directive = exports.TypeNameMetaFieldDef = exports.TypeMetaFieldDef = exports.TypeKind = exports.SchemaMetaFieldDef = void 0;
27388
- exports.isIntrospectionType = isIntrospectionType2;
27388
+ exports.isIntrospectionType = isIntrospectionType;
27389
27389
  var _inspect = require_inspect();
27390
27390
  var _invariant = require_invariant();
27391
27391
  var _directiveLocation = require_directiveLocation();
@@ -27904,10 +27904,10 @@ var require_introspection = __commonJS({
27904
27904
  __TypeKind
27905
27905
  ]);
27906
27906
  exports.introspectionTypes = introspectionTypes;
27907
- function isIntrospectionType2(type3) {
27907
+ function isIntrospectionType(type3) {
27908
27908
  return introspectionTypes.some(({ name }) => type3.name === name);
27909
27909
  }
27910
- __name(isIntrospectionType2, "isIntrospectionType");
27910
+ __name(isIntrospectionType, "isIntrospectionType");
27911
27911
  }
27912
27912
  });
27913
27913
 
@@ -27931,7 +27931,7 @@ var require_schema = __commonJS({
27931
27931
  var _directives = require_directives();
27932
27932
  var _introspection = require_introspection();
27933
27933
  function isSchema(schema) {
27934
- return (0, _instanceOf.instanceOf)(schema, GraphQLSchema3);
27934
+ return (0, _instanceOf.instanceOf)(schema, GraphQLSchema2);
27935
27935
  }
27936
27936
  __name(isSchema, "isSchema");
27937
27937
  function assertSchema(schema) {
@@ -27943,7 +27943,7 @@ var require_schema = __commonJS({
27943
27943
  return schema;
27944
27944
  }
27945
27945
  __name(assertSchema, "assertSchema");
27946
- var GraphQLSchema3 = class {
27946
+ var GraphQLSchema2 = class {
27947
27947
  static {
27948
27948
  __name(this, "GraphQLSchema");
27949
27949
  }
@@ -28121,7 +28121,7 @@ var require_schema = __commonJS({
28121
28121
  };
28122
28122
  }
28123
28123
  };
28124
- exports.GraphQLSchema = GraphQLSchema3;
28124
+ exports.GraphQLSchema = GraphQLSchema2;
28125
28125
  function collectReferencedTypes(type3, typeSet) {
28126
28126
  const namedType = (0, _definition.getNamedType)(type3);
28127
28127
  if (!typeSet.has(namedType)) {
@@ -31061,13 +31061,13 @@ var require_valueFromAST = __commonJS({
31061
31061
  Object.defineProperty(exports, "__esModule", {
31062
31062
  value: true
31063
31063
  });
31064
- exports.valueFromAST = valueFromAST3;
31064
+ exports.valueFromAST = valueFromAST;
31065
31065
  var _inspect = require_inspect();
31066
31066
  var _invariant = require_invariant();
31067
31067
  var _keyMap = require_keyMap();
31068
31068
  var _kinds = require_kinds();
31069
31069
  var _definition = require_definition();
31070
- function valueFromAST3(valueNode, type3, variables) {
31070
+ function valueFromAST(valueNode, type3, variables) {
31071
31071
  if (!valueNode) {
31072
31072
  return;
31073
31073
  }
@@ -31086,7 +31086,7 @@ var require_valueFromAST = __commonJS({
31086
31086
  if (valueNode.kind === _kinds.Kind.NULL) {
31087
31087
  return;
31088
31088
  }
31089
- return valueFromAST3(valueNode, type3.ofType, variables);
31089
+ return valueFromAST(valueNode, type3.ofType, variables);
31090
31090
  }
31091
31091
  if (valueNode.kind === _kinds.Kind.NULL) {
31092
31092
  return null;
@@ -31102,7 +31102,7 @@ var require_valueFromAST = __commonJS({
31102
31102
  }
31103
31103
  coercedValues.push(null);
31104
31104
  } else {
31105
- const itemValue = valueFromAST3(itemNode, itemType, variables);
31105
+ const itemValue = valueFromAST(itemNode, itemType, variables);
31106
31106
  if (itemValue === void 0) {
31107
31107
  return;
31108
31108
  }
@@ -31111,7 +31111,7 @@ var require_valueFromAST = __commonJS({
31111
31111
  }
31112
31112
  return coercedValues;
31113
31113
  }
31114
- const coercedValue = valueFromAST3(valueNode, itemType, variables);
31114
+ const coercedValue = valueFromAST(valueNode, itemType, variables);
31115
31115
  if (coercedValue === void 0) {
31116
31116
  return;
31117
31117
  }
@@ -31136,7 +31136,7 @@ var require_valueFromAST = __commonJS({
31136
31136
  }
31137
31137
  continue;
31138
31138
  }
31139
- const fieldValue = valueFromAST3(fieldNode.value, field.type, variables);
31139
+ const fieldValue = valueFromAST(fieldNode.value, field.type, variables);
31140
31140
  if (fieldValue === void 0) {
31141
31141
  return;
31142
31142
  }
@@ -31170,7 +31170,7 @@ var require_valueFromAST = __commonJS({
31170
31170
  "Unexpected input type: " + (0, _inspect.inspect)(type3)
31171
31171
  );
31172
31172
  }
31173
- __name(valueFromAST3, "valueFromAST");
31173
+ __name(valueFromAST, "valueFromAST");
31174
31174
  function isMissingVariable(valueNode, variables) {
31175
31175
  return valueNode.kind === _kinds.Kind.VARIABLE && (variables == null || variables[valueNode.name.value] === void 0);
31176
31176
  }
@@ -31185,7 +31185,7 @@ var require_values = __commonJS({
31185
31185
  Object.defineProperty(exports, "__esModule", {
31186
31186
  value: true
31187
31187
  });
31188
- exports.getArgumentValues = getArgumentValues2;
31188
+ exports.getArgumentValues = getArgumentValues;
31189
31189
  exports.getDirectiveValues = getDirectiveValues;
31190
31190
  exports.getVariableValues = getVariableValues;
31191
31191
  var _inspect = require_inspect();
@@ -31245,7 +31245,7 @@ var require_values = __commonJS({
31245
31245
  );
31246
31246
  continue;
31247
31247
  }
31248
- if (!hasOwnProperty2(inputs, varName)) {
31248
+ if (!hasOwnProperty(inputs, varName)) {
31249
31249
  if (varDefNode.defaultValue) {
31250
31250
  coercedValues[varName] = (0, _valueFromAST.valueFromAST)(
31251
31251
  varDefNode.defaultValue,
@@ -31299,7 +31299,7 @@ var require_values = __commonJS({
31299
31299
  return coercedValues;
31300
31300
  }
31301
31301
  __name(coerceVariableValues, "coerceVariableValues");
31302
- function getArgumentValues2(def, node, variableValues) {
31302
+ function getArgumentValues(def, node, variableValues) {
31303
31303
  var _node$arguments;
31304
31304
  const coercedValues = {};
31305
31305
  const argumentNodes = (_node$arguments = node.arguments) !== null && _node$arguments !== void 0 ? _node$arguments : [];
@@ -31330,7 +31330,7 @@ var require_values = __commonJS({
31330
31330
  let isNull = valueNode.kind === _kinds.Kind.NULL;
31331
31331
  if (valueNode.kind === _kinds.Kind.VARIABLE) {
31332
31332
  const variableName = valueNode.name.value;
31333
- if (variableValues == null || !hasOwnProperty2(variableValues, variableName)) {
31333
+ if (variableValues == null || !hasOwnProperty(variableValues, variableName)) {
31334
31334
  if (argDef.defaultValue !== void 0) {
31335
31335
  coercedValues[name] = argDef.defaultValue;
31336
31336
  } else if ((0, _definition.isNonNullType)(argType)) {
@@ -31376,21 +31376,21 @@ var require_values = __commonJS({
31376
31376
  }
31377
31377
  return coercedValues;
31378
31378
  }
31379
- __name(getArgumentValues2, "getArgumentValues");
31379
+ __name(getArgumentValues, "getArgumentValues");
31380
31380
  function getDirectiveValues(directiveDef, node, variableValues) {
31381
31381
  var _node$directives;
31382
31382
  const directiveNode = (_node$directives = node.directives) === null || _node$directives === void 0 ? void 0 : _node$directives.find(
31383
31383
  (directive) => directive.name.value === directiveDef.name
31384
31384
  );
31385
31385
  if (directiveNode) {
31386
- return getArgumentValues2(directiveDef, directiveNode, variableValues);
31386
+ return getArgumentValues(directiveDef, directiveNode, variableValues);
31387
31387
  }
31388
31388
  }
31389
31389
  __name(getDirectiveValues, "getDirectiveValues");
31390
- function hasOwnProperty2(obj, prop) {
31390
+ function hasOwnProperty(obj, prop) {
31391
31391
  return Object.prototype.hasOwnProperty.call(obj, prop);
31392
31392
  }
31393
- __name(hasOwnProperty2, "hasOwnProperty");
31393
+ __name(hasOwnProperty, "hasOwnProperty");
31394
31394
  }
31395
31395
  });
31396
31396
 
@@ -44101,10 +44101,10 @@ var splitEvery = /* @__PURE__ */ _curry2(/* @__PURE__ */ __name(function splitEv
44101
44101
  }, "splitEvery"));
44102
44102
  var splitEvery_default = splitEvery;
44103
44103
 
44104
- // ../../node_modules/.pnpm/graphql-request@6.1.0_encoding@0.1.13_graphql@16.11.0/node_modules/graphql-request/build/esm/defaultJsonSerializer.js
44104
+ // ../../node_modules/.pnpm/graphql-request@6.1.0_encoding@0.1.13_graphql@16.10.0/node_modules/graphql-request/build/esm/defaultJsonSerializer.js
44105
44105
  var defaultJsonSerializer = JSON;
44106
44106
 
44107
- // ../../node_modules/.pnpm/graphql-request@6.1.0_encoding@0.1.13_graphql@16.11.0/node_modules/graphql-request/build/esm/helpers.js
44107
+ // ../../node_modules/.pnpm/graphql-request@6.1.0_encoding@0.1.13_graphql@16.10.0/node_modules/graphql-request/build/esm/helpers.js
44108
44108
  var uppercase = /* @__PURE__ */ __name((str) => str.toUpperCase(), "uppercase");
44109
44109
  var HeadersInstanceToPlainObject = /* @__PURE__ */ __name((headers) => {
44110
44110
  const o = {};
@@ -44114,7 +44114,7 @@ var HeadersInstanceToPlainObject = /* @__PURE__ */ __name((headers) => {
44114
44114
  return o;
44115
44115
  }, "HeadersInstanceToPlainObject");
44116
44116
 
44117
- // ../../node_modules/.pnpm/graphql-request@6.1.0_encoding@0.1.13_graphql@16.11.0/node_modules/graphql-request/build/esm/parseArgs.js
44117
+ // ../../node_modules/.pnpm/graphql-request@6.1.0_encoding@0.1.13_graphql@16.10.0/node_modules/graphql-request/build/esm/parseArgs.js
44118
44118
  var parseRequestArgs = /* @__PURE__ */ __name((documentOrOptions, variables, requestHeaders) => {
44119
44119
  return documentOrOptions.document ? documentOrOptions : {
44120
44120
  document: documentOrOptions,
@@ -44139,7 +44139,7 @@ var parseBatchRequestArgs = /* @__PURE__ */ __name((documentsOrOptions, requestH
44139
44139
  };
44140
44140
  }, "parseBatchRequestArgs");
44141
44141
 
44142
- // ../../node_modules/.pnpm/graphql-request@6.1.0_encoding@0.1.13_graphql@16.11.0/node_modules/graphql-request/build/esm/resolveRequestDocument.js
44142
+ // ../../node_modules/.pnpm/graphql-request@6.1.0_encoding@0.1.13_graphql@16.10.0/node_modules/graphql-request/build/esm/resolveRequestDocument.js
44143
44143
  import { parse, print } from "graphql";
44144
44144
  var extractOperationName = /* @__PURE__ */ __name((document2) => {
44145
44145
  let operationName = void 0;
@@ -44163,7 +44163,7 @@ var resolveRequestDocument = /* @__PURE__ */ __name((document2) => {
44163
44163
  return { query: print(document2), operationName };
44164
44164
  }, "resolveRequestDocument");
44165
44165
 
44166
- // ../../node_modules/.pnpm/graphql-request@6.1.0_encoding@0.1.13_graphql@16.11.0/node_modules/graphql-request/build/esm/types.js
44166
+ // ../../node_modules/.pnpm/graphql-request@6.1.0_encoding@0.1.13_graphql@16.10.0/node_modules/graphql-request/build/esm/types.js
44167
44167
  var ClientError = class _ClientError extends Error {
44168
44168
  static {
44169
44169
  __name(this, "ClientError");
@@ -44186,10 +44186,10 @@ var ClientError = class _ClientError extends Error {
44186
44186
  }
44187
44187
  };
44188
44188
 
44189
- // ../../node_modules/.pnpm/graphql-request@6.1.0_encoding@0.1.13_graphql@16.11.0/node_modules/graphql-request/build/esm/index.js
44189
+ // ../../node_modules/.pnpm/graphql-request@6.1.0_encoding@0.1.13_graphql@16.10.0/node_modules/graphql-request/build/esm/index.js
44190
44190
  var CrossFetch = __toESM(require_node_ponyfill(), 1);
44191
44191
 
44192
- // ../../node_modules/.pnpm/graphql-request@6.1.0_encoding@0.1.13_graphql@16.11.0/node_modules/graphql-request/build/esm/graphql-ws.js
44192
+ // ../../node_modules/.pnpm/graphql-request@6.1.0_encoding@0.1.13_graphql@16.10.0/node_modules/graphql-request/build/esm/graphql-ws.js
44193
44193
  var CONNECTION_INIT = `connection_init`;
44194
44194
  var CONNECTION_ACK = `connection_ack`;
44195
44195
  var PING = `ping`;
@@ -44380,7 +44380,7 @@ function Complete(id) {
44380
44380
  }
44381
44381
  __name(Complete, "Complete");
44382
44382
 
44383
- // ../../node_modules/.pnpm/graphql-request@6.1.0_encoding@0.1.13_graphql@16.11.0/node_modules/graphql-request/build/esm/index.js
44383
+ // ../../node_modules/.pnpm/graphql-request@6.1.0_encoding@0.1.13_graphql@16.10.0/node_modules/graphql-request/build/esm/index.js
44384
44384
  var resolveHeaders = /* @__PURE__ */ __name((headers) => {
44385
44385
  let oHeaders = {};
44386
44386
  if (headers) {
@@ -44667,7 +44667,7 @@ var __assign = /* @__PURE__ */ __name(function() {
44667
44667
  return __assign.apply(this, arguments);
44668
44668
  }, "__assign");
44669
44669
 
44670
- // ../../node_modules/.pnpm/graphql-tag@2.12.6_graphql@16.11.0/node_modules/graphql-tag/lib/index.js
44670
+ // ../../node_modules/.pnpm/graphql-tag@2.12.6_graphql@16.10.0/node_modules/graphql-tag/lib/index.js
44671
44671
  import { parse as parse2 } from "graphql";
44672
44672
  var docCache = /* @__PURE__ */ new Map();
44673
44673
  var fragmentSourceMap = /* @__PURE__ */ new Map();
@@ -77077,7 +77077,7 @@ import("node:process").then((p) => p.stdout.write(""));
77077
77077
  import { MapStateStorage, processMetrics } from "@sentio/runtime";
77078
77078
 
77079
77079
  // src/core/database-schema.ts
77080
- var import_graphql15 = __toESM(require_graphql2(), 1);
77080
+ var import_graphql6 = __toESM(require_graphql2(), 1);
77081
77081
  import { ListStateStorage } from "@sentio/runtime";
77082
77082
 
77083
77083
  // src/store/schema.ts
@@ -77151,879 +77151,7 @@ function buildSchema(doc) {
77151
77151
  __name(buildSchema, "buildSchema");
77152
77152
  import("node:process").then((p) => p.stdout.write(""));
77153
77153
 
77154
- // ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.11.0/node_modules/@graphql-tools/utils/esm/helpers.js
77155
- import { parse as parse4 } from "graphql";
77156
- function isSome(input) {
77157
- return input != null;
77158
- }
77159
- __name(isSome, "isSome");
77160
-
77161
- // ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.11.0/node_modules/@graphql-tools/utils/esm/getDirectiveExtensions.js
77162
- import { valueFromAST as valueFromAST2, valueFromASTUntyped } from "graphql";
77163
-
77164
- // ../../node_modules/.pnpm/cross-inspect@1.0.1/node_modules/cross-inspect/esm/index.js
77165
- var MAX_RECURSIVE_DEPTH = 3;
77166
- function inspect(value) {
77167
- return formatValue(value, []);
77168
- }
77169
- __name(inspect, "inspect");
77170
- function formatValue(value, seenValues) {
77171
- switch (typeof value) {
77172
- case "string":
77173
- return JSON.stringify(value);
77174
- case "function":
77175
- return value.name ? `[function ${value.name}]` : "[function]";
77176
- case "object":
77177
- return formatObjectValue(value, seenValues);
77178
- default:
77179
- return String(value);
77180
- }
77181
- }
77182
- __name(formatValue, "formatValue");
77183
- function formatError(value) {
77184
- if (value.name = "GraphQLError") {
77185
- return value.toString();
77186
- }
77187
- return `${value.name}: ${value.message};
77188
- ${value.stack}`;
77189
- }
77190
- __name(formatError, "formatError");
77191
- function formatObjectValue(value, previouslySeenValues) {
77192
- if (value === null) {
77193
- return "null";
77194
- }
77195
- if (value instanceof Error) {
77196
- if (value.name === "AggregateError") {
77197
- return formatError(value) + "\n" + formatArray(value.errors, previouslySeenValues);
77198
- }
77199
- return formatError(value);
77200
- }
77201
- if (previouslySeenValues.includes(value)) {
77202
- return "[Circular]";
77203
- }
77204
- const seenValues = [...previouslySeenValues, value];
77205
- if (isJSONable(value)) {
77206
- const jsonValue = value.toJSON();
77207
- if (jsonValue !== value) {
77208
- return typeof jsonValue === "string" ? jsonValue : formatValue(jsonValue, seenValues);
77209
- }
77210
- } else if (Array.isArray(value)) {
77211
- return formatArray(value, seenValues);
77212
- }
77213
- return formatObject(value, seenValues);
77214
- }
77215
- __name(formatObjectValue, "formatObjectValue");
77216
- function isJSONable(value) {
77217
- return typeof value.toJSON === "function";
77218
- }
77219
- __name(isJSONable, "isJSONable");
77220
- function formatObject(object, seenValues) {
77221
- const entries = Object.entries(object);
77222
- if (entries.length === 0) {
77223
- return "{}";
77224
- }
77225
- if (seenValues.length > MAX_RECURSIVE_DEPTH) {
77226
- return "[" + getObjectTag(object) + "]";
77227
- }
77228
- const properties = entries.map(([key, value]) => key + ": " + formatValue(value, seenValues));
77229
- return "{ " + properties.join(", ") + " }";
77230
- }
77231
- __name(formatObject, "formatObject");
77232
- function formatArray(array, seenValues) {
77233
- if (array.length === 0) {
77234
- return "[]";
77235
- }
77236
- if (seenValues.length > MAX_RECURSIVE_DEPTH) {
77237
- return "[Array]";
77238
- }
77239
- const len = array.length;
77240
- const items = [];
77241
- for (let i = 0; i < len; ++i) {
77242
- items.push(formatValue(array[i], seenValues));
77243
- }
77244
- return "[" + items.join(", ") + "]";
77245
- }
77246
- __name(formatArray, "formatArray");
77247
- function getObjectTag(object) {
77248
- const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
77249
- if (tag === "Object" && typeof object.constructor === "function") {
77250
- const name = object.constructor.name;
77251
- if (typeof name === "string" && name !== "") {
77252
- return name;
77253
- }
77254
- }
77255
- return tag;
77256
- }
77257
- __name(getObjectTag, "getObjectTag");
77258
-
77259
- // ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.11.0/node_modules/@graphql-tools/utils/esm/getArgumentValues.js
77260
- import { isNonNullType as isNonNullType2, Kind, print as print3, valueFromAST } from "graphql";
77261
-
77262
- // ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.11.0/node_modules/@graphql-tools/utils/esm/errors.js
77263
- import { GraphQLError, versionInfo } from "graphql";
77264
- var possibleGraphQLErrorProperties = [
77265
- "message",
77266
- "locations",
77267
- "path",
77268
- "nodes",
77269
- "source",
77270
- "positions",
77271
- "originalError",
77272
- "name",
77273
- "stack",
77274
- "extensions"
77275
- ];
77276
- function isGraphQLErrorLike(error) {
77277
- return error != null && typeof error === "object" && Object.keys(error).every((key) => possibleGraphQLErrorProperties.includes(key));
77278
- }
77279
- __name(isGraphQLErrorLike, "isGraphQLErrorLike");
77280
- function createGraphQLError(message, options) {
77281
- if (options?.originalError && !(options.originalError instanceof Error) && isGraphQLErrorLike(options.originalError)) {
77282
- options.originalError = createGraphQLError(options.originalError.message, options.originalError);
77283
- }
77284
- if (versionInfo.major >= 17) {
77285
- return new GraphQLError(message, options);
77286
- }
77287
- return new GraphQLError(message, options?.nodes, options?.source, options?.positions, options?.path, options?.originalError, options?.extensions);
77288
- }
77289
- __name(createGraphQLError, "createGraphQLError");
77290
-
77291
- // ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.11.0/node_modules/@graphql-tools/utils/esm/jsutils.js
77292
- function isIterableObject(value) {
77293
- return value != null && typeof value === "object" && Symbol.iterator in value;
77294
- }
77295
- __name(isIterableObject, "isIterableObject");
77296
- function isObjectLike(value) {
77297
- return typeof value === "object" && value !== null;
77298
- }
77299
- __name(isObjectLike, "isObjectLike");
77300
- function hasOwnProperty(obj, prop) {
77301
- return Object.prototype.hasOwnProperty.call(obj, prop);
77302
- }
77303
- __name(hasOwnProperty, "hasOwnProperty");
77304
-
77305
- // ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.11.0/node_modules/@graphql-tools/utils/esm/getArgumentValues.js
77306
- function getArgumentValues(def, node, variableValues = {}) {
77307
- const coercedValues = {};
77308
- const argumentNodes = node.arguments ?? [];
77309
- const argNodeMap = argumentNodes.reduce((prev, arg) => ({
77310
- ...prev,
77311
- [arg.name.value]: arg
77312
- }), {});
77313
- for (const { name, type: argType, defaultValue } of def.args) {
77314
- const argumentNode = argNodeMap[name];
77315
- if (!argumentNode) {
77316
- if (defaultValue !== void 0) {
77317
- coercedValues[name] = defaultValue;
77318
- } else if (isNonNullType2(argType)) {
77319
- throw createGraphQLError(`Argument "${name}" of required type "${inspect(argType)}" was not provided.`, {
77320
- nodes: [node]
77321
- });
77322
- }
77323
- continue;
77324
- }
77325
- const valueNode = argumentNode.value;
77326
- let isNull = valueNode.kind === Kind.NULL;
77327
- if (valueNode.kind === Kind.VARIABLE) {
77328
- const variableName = valueNode.name.value;
77329
- if (variableValues == null || !hasOwnProperty(variableValues, variableName)) {
77330
- if (defaultValue !== void 0) {
77331
- coercedValues[name] = defaultValue;
77332
- } else if (isNonNullType2(argType)) {
77333
- throw createGraphQLError(`Argument "${name}" of required type "${inspect(argType)}" was provided the variable "$${variableName}" which was not provided a runtime value.`, {
77334
- nodes: [valueNode]
77335
- });
77336
- }
77337
- continue;
77338
- }
77339
- isNull = variableValues[variableName] == null;
77340
- }
77341
- if (isNull && isNonNullType2(argType)) {
77342
- throw createGraphQLError(`Argument "${name}" of non-null type "${inspect(argType)}" must not be null.`, {
77343
- nodes: [valueNode]
77344
- });
77345
- }
77346
- const coercedValue = valueFromAST(valueNode, argType, variableValues);
77347
- if (coercedValue === void 0) {
77348
- throw createGraphQLError(`Argument "${name}" has invalid value ${print3(valueNode)}.`, {
77349
- nodes: [valueNode]
77350
- });
77351
- }
77352
- coercedValues[name] = coercedValue;
77353
- }
77354
- return coercedValues;
77355
- }
77356
- __name(getArgumentValues, "getArgumentValues");
77357
-
77358
- // ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.11.0/node_modules/@graphql-tools/utils/esm/memoize.js
77359
- function memoize1(fn) {
77360
- const memoize1cache = /* @__PURE__ */ new WeakMap();
77361
- return /* @__PURE__ */ __name(function memoized2(a1) {
77362
- const cachedValue = memoize1cache.get(a1);
77363
- if (cachedValue === void 0) {
77364
- const newValue = fn(a1);
77365
- memoize1cache.set(a1, newValue);
77366
- return newValue;
77367
- }
77368
- return cachedValue;
77369
- }, "memoized");
77370
- }
77371
- __name(memoize1, "memoize1");
77372
-
77373
- // ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.11.0/node_modules/@graphql-tools/utils/esm/getDirectiveExtensions.js
77374
- function getDirectiveExtensions(directableObj, schema, pathToDirectivesInExtensions = ["directives"]) {
77375
- const directiveExtensions = {};
77376
- if (directableObj.extensions) {
77377
- let directivesInExtensions = directableObj.extensions;
77378
- for (const pathSegment of pathToDirectivesInExtensions) {
77379
- directivesInExtensions = directivesInExtensions?.[pathSegment];
77380
- }
77381
- if (directivesInExtensions != null) {
77382
- for (const directiveNameProp in directivesInExtensions) {
77383
- const directiveObjs = directivesInExtensions[directiveNameProp];
77384
- const directiveName = directiveNameProp;
77385
- if (Array.isArray(directiveObjs)) {
77386
- for (const directiveObj of directiveObjs) {
77387
- let existingDirectiveExtensions = directiveExtensions[directiveName];
77388
- if (!existingDirectiveExtensions) {
77389
- existingDirectiveExtensions = [];
77390
- directiveExtensions[directiveName] = existingDirectiveExtensions;
77391
- }
77392
- existingDirectiveExtensions.push(directiveObj);
77393
- }
77394
- } else {
77395
- let existingDirectiveExtensions = directiveExtensions[directiveName];
77396
- if (!existingDirectiveExtensions) {
77397
- existingDirectiveExtensions = [];
77398
- directiveExtensions[directiveName] = existingDirectiveExtensions;
77399
- }
77400
- existingDirectiveExtensions.push(directiveObjs);
77401
- }
77402
- }
77403
- }
77404
- }
77405
- const memoizedStringify = memoize1((obj) => JSON.stringify(obj));
77406
- const astNodes = [];
77407
- if (directableObj.astNode) {
77408
- astNodes.push(directableObj.astNode);
77409
- }
77410
- if (directableObj.extensionASTNodes) {
77411
- astNodes.push(...directableObj.extensionASTNodes);
77412
- }
77413
- for (const astNode of astNodes) {
77414
- if (astNode.directives?.length) {
77415
- for (const directive of astNode.directives) {
77416
- const directiveName = directive.name.value;
77417
- let existingDirectiveExtensions = directiveExtensions[directiveName];
77418
- if (!existingDirectiveExtensions) {
77419
- existingDirectiveExtensions = [];
77420
- directiveExtensions[directiveName] = existingDirectiveExtensions;
77421
- }
77422
- const directiveInSchema = schema?.getDirective(directiveName);
77423
- let value = {};
77424
- if (directiveInSchema) {
77425
- value = getArgumentValues(directiveInSchema, directive);
77426
- }
77427
- if (directive.arguments) {
77428
- for (const argNode of directive.arguments) {
77429
- const argName = argNode.name.value;
77430
- if (value[argName] == null) {
77431
- const argInDirective = directiveInSchema?.args.find((arg) => arg.name === argName);
77432
- if (argInDirective) {
77433
- value[argName] = valueFromAST2(argNode.value, argInDirective.type);
77434
- }
77435
- }
77436
- if (value[argName] == null) {
77437
- value[argName] = valueFromASTUntyped(argNode.value);
77438
- }
77439
- }
77440
- }
77441
- if (astNodes.length > 0 && existingDirectiveExtensions.length > 0) {
77442
- const valStr = memoizedStringify(value);
77443
- if (existingDirectiveExtensions.some((val) => memoizedStringify(val) === valStr)) {
77444
- continue;
77445
- }
77446
- }
77447
- existingDirectiveExtensions.push(value);
77448
- }
77449
- }
77450
- }
77451
- return directiveExtensions;
77452
- }
77453
- __name(getDirectiveExtensions, "getDirectiveExtensions");
77454
-
77455
- // ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.11.0/node_modules/@graphql-tools/utils/esm/get-directives.js
77456
- function getDirectivesInExtensions(node, pathToDirectivesInExtensions = ["directives"]) {
77457
- const directiveExtensions = getDirectiveExtensions(node, void 0, pathToDirectivesInExtensions);
77458
- return Object.entries(directiveExtensions).map(([directiveName, directiveArgsArr]) => directiveArgsArr?.map((directiveArgs) => ({
77459
- name: directiveName,
77460
- args: directiveArgs
77461
- }))).flat(Infinity).filter(Boolean);
77462
- }
77463
- __name(getDirectivesInExtensions, "getDirectivesInExtensions");
77464
-
77465
- // ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.11.0/node_modules/@graphql-tools/utils/esm/print-schema-with-directives.js
77466
- import { GraphQLDeprecatedDirective, isEnumType as isEnumType2, isInputObjectType as isInputObjectType2, isInterfaceType, isIntrospectionType, isObjectType, isScalarType, isSpecifiedDirective, isSpecifiedScalarType, isUnionType, Kind as Kind6, print as print4, specifiedDirectives } from "graphql";
77467
-
77468
- // ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.11.0/node_modules/@graphql-tools/utils/esm/astFromType.js
77469
- import { isListType as isListType2, isNonNullType as isNonNullType3, Kind as Kind2 } from "graphql";
77470
- function astFromType(type3) {
77471
- if (isNonNullType3(type3)) {
77472
- const innerType = astFromType(type3.ofType);
77473
- if (innerType.kind === Kind2.NON_NULL_TYPE) {
77474
- throw new Error(`Invalid type node ${inspect(type3)}. Inner type of non-null type cannot be a non-null type.`);
77475
- }
77476
- return {
77477
- kind: Kind2.NON_NULL_TYPE,
77478
- type: innerType
77479
- };
77480
- } else if (isListType2(type3)) {
77481
- return {
77482
- kind: Kind2.LIST_TYPE,
77483
- type: astFromType(type3.ofType)
77484
- };
77485
- }
77486
- return {
77487
- kind: Kind2.NAMED_TYPE,
77488
- name: {
77489
- kind: Kind2.NAME,
77490
- value: type3.name
77491
- }
77492
- };
77493
- }
77494
- __name(astFromType, "astFromType");
77495
-
77496
- // ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.11.0/node_modules/@graphql-tools/utils/esm/astFromValue.js
77497
- import { isEnumType, isInputObjectType, isLeafType, isListType as isListType3, isNonNullType as isNonNullType4, Kind as Kind4 } from "graphql";
77498
-
77499
- // ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.11.0/node_modules/@graphql-tools/utils/esm/astFromValueUntyped.js
77500
- import { Kind as Kind3 } from "graphql";
77501
- function astFromValueUntyped(value) {
77502
- if (value === null) {
77503
- return { kind: Kind3.NULL };
77504
- }
77505
- if (value === void 0) {
77506
- return null;
77507
- }
77508
- if (Array.isArray(value)) {
77509
- const valuesNodes = [];
77510
- for (const item of value) {
77511
- const itemNode = astFromValueUntyped(item);
77512
- if (itemNode != null) {
77513
- valuesNodes.push(itemNode);
77514
- }
77515
- }
77516
- return { kind: Kind3.LIST, values: valuesNodes };
77517
- }
77518
- if (typeof value === "object") {
77519
- if (value?.toJSON) {
77520
- return astFromValueUntyped(value.toJSON());
77521
- }
77522
- const fieldNodes = [];
77523
- for (const fieldName in value) {
77524
- const fieldValue = value[fieldName];
77525
- const ast = astFromValueUntyped(fieldValue);
77526
- if (ast) {
77527
- fieldNodes.push({
77528
- kind: Kind3.OBJECT_FIELD,
77529
- name: { kind: Kind3.NAME, value: fieldName },
77530
- value: ast
77531
- });
77532
- }
77533
- }
77534
- return { kind: Kind3.OBJECT, fields: fieldNodes };
77535
- }
77536
- if (typeof value === "boolean") {
77537
- return { kind: Kind3.BOOLEAN, value };
77538
- }
77539
- if (typeof value === "bigint") {
77540
- return { kind: Kind3.INT, value: String(value) };
77541
- }
77542
- if (typeof value === "number" && isFinite(value)) {
77543
- const stringNum = String(value);
77544
- return integerStringRegExp.test(stringNum) ? { kind: Kind3.INT, value: stringNum } : { kind: Kind3.FLOAT, value: stringNum };
77545
- }
77546
- if (typeof value === "string") {
77547
- return { kind: Kind3.STRING, value };
77548
- }
77549
- throw new TypeError(`Cannot convert value to AST: ${value}.`);
77550
- }
77551
- __name(astFromValueUntyped, "astFromValueUntyped");
77552
- var integerStringRegExp = /^-?(?:0|[1-9][0-9]*)$/;
77553
-
77554
- // ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.11.0/node_modules/@graphql-tools/utils/esm/astFromValue.js
77555
- function astFromValue(value, type3) {
77556
- if (isNonNullType4(type3)) {
77557
- const astValue = astFromValue(value, type3.ofType);
77558
- if (astValue?.kind === Kind4.NULL) {
77559
- return null;
77560
- }
77561
- return astValue;
77562
- }
77563
- if (value === null) {
77564
- return { kind: Kind4.NULL };
77565
- }
77566
- if (value === void 0) {
77567
- return null;
77568
- }
77569
- if (isListType3(type3)) {
77570
- const itemType = type3.ofType;
77571
- if (isIterableObject(value)) {
77572
- const valuesNodes = [];
77573
- for (const item of value) {
77574
- const itemNode = astFromValue(item, itemType);
77575
- if (itemNode != null) {
77576
- valuesNodes.push(itemNode);
77577
- }
77578
- }
77579
- return { kind: Kind4.LIST, values: valuesNodes };
77580
- }
77581
- return astFromValue(value, itemType);
77582
- }
77583
- if (isInputObjectType(type3)) {
77584
- if (!isObjectLike(value)) {
77585
- return null;
77586
- }
77587
- const fieldNodes = [];
77588
- for (const field of Object.values(type3.getFields())) {
77589
- const fieldValue = astFromValue(value[field.name], field.type);
77590
- if (fieldValue) {
77591
- fieldNodes.push({
77592
- kind: Kind4.OBJECT_FIELD,
77593
- name: { kind: Kind4.NAME, value: field.name },
77594
- value: fieldValue
77595
- });
77596
- }
77597
- }
77598
- return { kind: Kind4.OBJECT, fields: fieldNodes };
77599
- }
77600
- if (isLeafType(type3)) {
77601
- const serialized = type3.serialize(value);
77602
- if (serialized == null) {
77603
- return null;
77604
- }
77605
- if (isEnumType(type3)) {
77606
- return { kind: Kind4.ENUM, value: serialized };
77607
- }
77608
- if (type3.name === "ID" && typeof serialized === "string" && integerStringRegExp2.test(serialized)) {
77609
- return { kind: Kind4.INT, value: serialized };
77610
- }
77611
- return astFromValueUntyped(serialized);
77612
- }
77613
- console.assert(false, "Unexpected input type: " + inspect(type3));
77614
- }
77615
- __name(astFromValue, "astFromValue");
77616
- var integerStringRegExp2 = /^-?(?:0|[1-9][0-9]*)$/;
77617
-
77618
- // ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.11.0/node_modules/@graphql-tools/utils/esm/descriptionFromObject.js
77619
- import { Kind as Kind5 } from "graphql";
77620
- function getDescriptionNode(obj) {
77621
- if (obj.astNode?.description) {
77622
- return {
77623
- ...obj.astNode.description,
77624
- block: true
77625
- };
77626
- }
77627
- if (obj.description) {
77628
- return {
77629
- kind: Kind5.STRING,
77630
- value: obj.description,
77631
- block: true
77632
- };
77633
- }
77634
- }
77635
- __name(getDescriptionNode, "getDescriptionNode");
77636
-
77637
- // ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.11.0/node_modules/@graphql-tools/utils/esm/rootTypes.js
77638
- var getRootTypeNames = memoize1(/* @__PURE__ */ __name(function getRootTypeNames2(schema) {
77639
- const rootTypes = getRootTypes(schema);
77640
- return new Set([...rootTypes].map((type3) => type3.name));
77641
- }, "getRootTypeNames"));
77642
- var getRootTypes = memoize1(/* @__PURE__ */ __name(function getRootTypes2(schema) {
77643
- const rootTypeMap = getRootTypeMap(schema);
77644
- return new Set(rootTypeMap.values());
77645
- }, "getRootTypes"));
77646
- var getRootTypeMap = memoize1(/* @__PURE__ */ __name(function getRootTypeMap2(schema) {
77647
- const rootTypeMap = /* @__PURE__ */ new Map();
77648
- const queryType = schema.getQueryType();
77649
- if (queryType) {
77650
- rootTypeMap.set("query", queryType);
77651
- }
77652
- const mutationType = schema.getMutationType();
77653
- if (mutationType) {
77654
- rootTypeMap.set("mutation", mutationType);
77655
- }
77656
- const subscriptionType = schema.getSubscriptionType();
77657
- if (subscriptionType) {
77658
- rootTypeMap.set("subscription", subscriptionType);
77659
- }
77660
- return rootTypeMap;
77661
- }, "getRootTypeMap"));
77662
-
77663
- // ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.11.0/node_modules/@graphql-tools/utils/esm/print-schema-with-directives.js
77664
- function getDocumentNodeFromSchema(schema, options = {}) {
77665
- const pathToDirectivesInExtensions = options.pathToDirectivesInExtensions;
77666
- const typesMap = schema.getTypeMap();
77667
- const schemaNode = astFromSchema(schema, pathToDirectivesInExtensions);
77668
- const definitions = schemaNode != null ? [schemaNode] : [];
77669
- const directives = schema.getDirectives();
77670
- for (const directive of directives) {
77671
- if (isSpecifiedDirective(directive)) {
77672
- continue;
77673
- }
77674
- definitions.push(astFromDirective(directive, schema, pathToDirectivesInExtensions));
77675
- }
77676
- for (const typeName in typesMap) {
77677
- const type3 = typesMap[typeName];
77678
- const isPredefinedScalar = isSpecifiedScalarType(type3);
77679
- const isIntrospection = isIntrospectionType(type3);
77680
- if (isPredefinedScalar || isIntrospection) {
77681
- continue;
77682
- }
77683
- if (isObjectType(type3)) {
77684
- definitions.push(astFromObjectType(type3, schema, pathToDirectivesInExtensions));
77685
- } else if (isInterfaceType(type3)) {
77686
- definitions.push(astFromInterfaceType(type3, schema, pathToDirectivesInExtensions));
77687
- } else if (isUnionType(type3)) {
77688
- definitions.push(astFromUnionType(type3, schema, pathToDirectivesInExtensions));
77689
- } else if (isInputObjectType2(type3)) {
77690
- definitions.push(astFromInputObjectType(type3, schema, pathToDirectivesInExtensions));
77691
- } else if (isEnumType2(type3)) {
77692
- definitions.push(astFromEnumType(type3, schema, pathToDirectivesInExtensions));
77693
- } else if (isScalarType(type3)) {
77694
- definitions.push(astFromScalarType(type3, schema, pathToDirectivesInExtensions));
77695
- } else {
77696
- throw new Error(`Unknown type ${type3}.`);
77697
- }
77698
- }
77699
- return {
77700
- kind: Kind6.DOCUMENT,
77701
- definitions
77702
- };
77703
- }
77704
- __name(getDocumentNodeFromSchema, "getDocumentNodeFromSchema");
77705
- function printSchemaWithDirectives(schema, options = {}) {
77706
- const documentNode = getDocumentNodeFromSchema(schema, options);
77707
- return print4(documentNode);
77708
- }
77709
- __name(printSchemaWithDirectives, "printSchemaWithDirectives");
77710
- function astFromSchema(schema, pathToDirectivesInExtensions) {
77711
- const operationTypeMap = /* @__PURE__ */ new Map([
77712
- ["query", void 0],
77713
- ["mutation", void 0],
77714
- ["subscription", void 0]
77715
- ]);
77716
- const nodes = [];
77717
- if (schema.astNode != null) {
77718
- nodes.push(schema.astNode);
77719
- }
77720
- if (schema.extensionASTNodes != null) {
77721
- for (const extensionASTNode of schema.extensionASTNodes) {
77722
- nodes.push(extensionASTNode);
77723
- }
77724
- }
77725
- for (const node of nodes) {
77726
- if (node.operationTypes) {
77727
- for (const operationTypeDefinitionNode of node.operationTypes) {
77728
- operationTypeMap.set(operationTypeDefinitionNode.operation, operationTypeDefinitionNode);
77729
- }
77730
- }
77731
- }
77732
- const rootTypeMap = getRootTypeMap(schema);
77733
- for (const [operationTypeNode, operationTypeDefinitionNode] of operationTypeMap) {
77734
- const rootType = rootTypeMap.get(operationTypeNode);
77735
- if (rootType != null) {
77736
- const rootTypeAST = astFromType(rootType);
77737
- if (operationTypeDefinitionNode != null) {
77738
- operationTypeDefinitionNode.type = rootTypeAST;
77739
- } else {
77740
- operationTypeMap.set(operationTypeNode, {
77741
- kind: Kind6.OPERATION_TYPE_DEFINITION,
77742
- operation: operationTypeNode,
77743
- type: rootTypeAST
77744
- });
77745
- }
77746
- }
77747
- }
77748
- const operationTypes = [...operationTypeMap.values()].filter(isSome);
77749
- const directives = getDirectiveNodes(schema, schema, pathToDirectivesInExtensions);
77750
- if (!operationTypes.length && !directives.length) {
77751
- return null;
77752
- }
77753
- const schemaNode = {
77754
- kind: operationTypes != null ? Kind6.SCHEMA_DEFINITION : Kind6.SCHEMA_EXTENSION,
77755
- operationTypes,
77756
- // ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
77757
- directives
77758
- };
77759
- const descriptionNode = getDescriptionNode(schema);
77760
- if (descriptionNode) {
77761
- schemaNode.description = descriptionNode;
77762
- }
77763
- return schemaNode;
77764
- }
77765
- __name(astFromSchema, "astFromSchema");
77766
- function astFromDirective(directive, schema, pathToDirectivesInExtensions) {
77767
- return {
77768
- kind: Kind6.DIRECTIVE_DEFINITION,
77769
- description: getDescriptionNode(directive),
77770
- name: {
77771
- kind: Kind6.NAME,
77772
- value: directive.name
77773
- },
77774
- arguments: directive.args?.map((arg) => astFromArg(arg, schema, pathToDirectivesInExtensions)),
77775
- repeatable: directive.isRepeatable,
77776
- locations: directive.locations?.map((location) => ({
77777
- kind: Kind6.NAME,
77778
- value: location
77779
- })) || []
77780
- };
77781
- }
77782
- __name(astFromDirective, "astFromDirective");
77783
- function getDirectiveNodes(entity, schema, pathToDirectivesInExtensions) {
77784
- let directiveNodesBesidesNativeDirectives = [];
77785
- const directivesInExtensions = getDirectivesInExtensions(entity, pathToDirectivesInExtensions);
77786
- let directives;
77787
- if (directivesInExtensions != null) {
77788
- directives = makeDirectiveNodes(schema, directivesInExtensions);
77789
- }
77790
- let deprecatedDirectiveNode = null;
77791
- let specifiedByDirectiveNode = null;
77792
- let oneOfDirectiveNode = null;
77793
- if (directives != null) {
77794
- directiveNodesBesidesNativeDirectives = directives.filter((directive) => specifiedDirectives.every((specifiedDirective) => specifiedDirective.name !== directive.name.value));
77795
- deprecatedDirectiveNode = directives.find((directive) => directive.name.value === "deprecated");
77796
- specifiedByDirectiveNode = directives.find((directive) => directive.name.value === "specifiedBy");
77797
- oneOfDirectiveNode = directives.find((directive) => directive.name.value === "oneOf");
77798
- }
77799
- if (entity.deprecationReason != null && deprecatedDirectiveNode == null) {
77800
- deprecatedDirectiveNode = makeDeprecatedDirective(entity.deprecationReason);
77801
- }
77802
- if (entity.specifiedByUrl != null || entity.specifiedByURL != null && specifiedByDirectiveNode == null) {
77803
- const specifiedByValue = entity.specifiedByUrl || entity.specifiedByURL;
77804
- const specifiedByArgs = {
77805
- url: specifiedByValue
77806
- };
77807
- specifiedByDirectiveNode = makeDirectiveNode("specifiedBy", specifiedByArgs);
77808
- }
77809
- if (entity.isOneOf && oneOfDirectiveNode == null) {
77810
- oneOfDirectiveNode = makeDirectiveNode("oneOf");
77811
- }
77812
- if (deprecatedDirectiveNode != null) {
77813
- directiveNodesBesidesNativeDirectives.push(deprecatedDirectiveNode);
77814
- }
77815
- if (specifiedByDirectiveNode != null) {
77816
- directiveNodesBesidesNativeDirectives.push(specifiedByDirectiveNode);
77817
- }
77818
- if (oneOfDirectiveNode != null) {
77819
- directiveNodesBesidesNativeDirectives.push(oneOfDirectiveNode);
77820
- }
77821
- return directiveNodesBesidesNativeDirectives;
77822
- }
77823
- __name(getDirectiveNodes, "getDirectiveNodes");
77824
- function astFromArg(arg, schema, pathToDirectivesInExtensions) {
77825
- return {
77826
- kind: Kind6.INPUT_VALUE_DEFINITION,
77827
- description: getDescriptionNode(arg),
77828
- name: {
77829
- kind: Kind6.NAME,
77830
- value: arg.name
77831
- },
77832
- type: astFromType(arg.type),
77833
- // ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
77834
- defaultValue: arg.defaultValue !== void 0 ? astFromValue(arg.defaultValue, arg.type) ?? void 0 : void 0,
77835
- directives: getDirectiveNodes(arg, schema, pathToDirectivesInExtensions)
77836
- };
77837
- }
77838
- __name(astFromArg, "astFromArg");
77839
- function astFromObjectType(type3, schema, pathToDirectivesInExtensions) {
77840
- return {
77841
- kind: Kind6.OBJECT_TYPE_DEFINITION,
77842
- description: getDescriptionNode(type3),
77843
- name: {
77844
- kind: Kind6.NAME,
77845
- value: type3.name
77846
- },
77847
- fields: Object.values(type3.getFields()).map((field) => astFromField(field, schema, pathToDirectivesInExtensions)),
77848
- interfaces: Object.values(type3.getInterfaces()).map((iFace) => astFromType(iFace)),
77849
- directives: getDirectiveNodes(type3, schema, pathToDirectivesInExtensions)
77850
- };
77851
- }
77852
- __name(astFromObjectType, "astFromObjectType");
77853
- function astFromInterfaceType(type3, schema, pathToDirectivesInExtensions) {
77854
- const node = {
77855
- kind: Kind6.INTERFACE_TYPE_DEFINITION,
77856
- description: getDescriptionNode(type3),
77857
- name: {
77858
- kind: Kind6.NAME,
77859
- value: type3.name
77860
- },
77861
- fields: Object.values(type3.getFields()).map((field) => astFromField(field, schema, pathToDirectivesInExtensions)),
77862
- directives: getDirectiveNodes(type3, schema, pathToDirectivesInExtensions)
77863
- };
77864
- if ("getInterfaces" in type3) {
77865
- node.interfaces = Object.values(type3.getInterfaces()).map((iFace) => astFromType(iFace));
77866
- }
77867
- return node;
77868
- }
77869
- __name(astFromInterfaceType, "astFromInterfaceType");
77870
- function astFromUnionType(type3, schema, pathToDirectivesInExtensions) {
77871
- return {
77872
- kind: Kind6.UNION_TYPE_DEFINITION,
77873
- description: getDescriptionNode(type3),
77874
- name: {
77875
- kind: Kind6.NAME,
77876
- value: type3.name
77877
- },
77878
- // ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
77879
- directives: getDirectiveNodes(type3, schema, pathToDirectivesInExtensions),
77880
- types: type3.getTypes().map((type4) => astFromType(type4))
77881
- };
77882
- }
77883
- __name(astFromUnionType, "astFromUnionType");
77884
- function astFromInputObjectType(type3, schema, pathToDirectivesInExtensions) {
77885
- return {
77886
- kind: Kind6.INPUT_OBJECT_TYPE_DEFINITION,
77887
- description: getDescriptionNode(type3),
77888
- name: {
77889
- kind: Kind6.NAME,
77890
- value: type3.name
77891
- },
77892
- fields: Object.values(type3.getFields()).map((field) => astFromInputField(field, schema, pathToDirectivesInExtensions)),
77893
- // ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
77894
- directives: getDirectiveNodes(type3, schema, pathToDirectivesInExtensions)
77895
- };
77896
- }
77897
- __name(astFromInputObjectType, "astFromInputObjectType");
77898
- function astFromEnumType(type3, schema, pathToDirectivesInExtensions) {
77899
- return {
77900
- kind: Kind6.ENUM_TYPE_DEFINITION,
77901
- description: getDescriptionNode(type3),
77902
- name: {
77903
- kind: Kind6.NAME,
77904
- value: type3.name
77905
- },
77906
- values: Object.values(type3.getValues()).map((value) => astFromEnumValue(value, schema, pathToDirectivesInExtensions)),
77907
- // ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
77908
- directives: getDirectiveNodes(type3, schema, pathToDirectivesInExtensions)
77909
- };
77910
- }
77911
- __name(astFromEnumType, "astFromEnumType");
77912
- function astFromScalarType(type3, schema, pathToDirectivesInExtensions) {
77913
- const directivesInExtensions = getDirectivesInExtensions(type3, pathToDirectivesInExtensions);
77914
- const directives = makeDirectiveNodes(schema, directivesInExtensions);
77915
- const specifiedByValue = type3["specifiedByUrl"] || type3["specifiedByURL"];
77916
- if (specifiedByValue && !directives.some((directiveNode) => directiveNode.name.value === "specifiedBy")) {
77917
- const specifiedByArgs = {
77918
- url: specifiedByValue
77919
- };
77920
- directives.push(makeDirectiveNode("specifiedBy", specifiedByArgs));
77921
- }
77922
- return {
77923
- kind: Kind6.SCALAR_TYPE_DEFINITION,
77924
- description: getDescriptionNode(type3),
77925
- name: {
77926
- kind: Kind6.NAME,
77927
- value: type3.name
77928
- },
77929
- // ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
77930
- directives
77931
- };
77932
- }
77933
- __name(astFromScalarType, "astFromScalarType");
77934
- function astFromField(field, schema, pathToDirectivesInExtensions) {
77935
- return {
77936
- kind: Kind6.FIELD_DEFINITION,
77937
- description: getDescriptionNode(field),
77938
- name: {
77939
- kind: Kind6.NAME,
77940
- value: field.name
77941
- },
77942
- arguments: field.args.map((arg) => astFromArg(arg, schema, pathToDirectivesInExtensions)),
77943
- type: astFromType(field.type),
77944
- // ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
77945
- directives: getDirectiveNodes(field, schema, pathToDirectivesInExtensions)
77946
- };
77947
- }
77948
- __name(astFromField, "astFromField");
77949
- function astFromInputField(field, schema, pathToDirectivesInExtensions) {
77950
- return {
77951
- kind: Kind6.INPUT_VALUE_DEFINITION,
77952
- description: getDescriptionNode(field),
77953
- name: {
77954
- kind: Kind6.NAME,
77955
- value: field.name
77956
- },
77957
- type: astFromType(field.type),
77958
- // ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
77959
- directives: getDirectiveNodes(field, schema, pathToDirectivesInExtensions),
77960
- defaultValue: astFromValue(field.defaultValue, field.type) ?? void 0
77961
- };
77962
- }
77963
- __name(astFromInputField, "astFromInputField");
77964
- function astFromEnumValue(value, schema, pathToDirectivesInExtensions) {
77965
- return {
77966
- kind: Kind6.ENUM_VALUE_DEFINITION,
77967
- description: getDescriptionNode(value),
77968
- name: {
77969
- kind: Kind6.NAME,
77970
- value: value.name
77971
- },
77972
- directives: getDirectiveNodes(value, schema, pathToDirectivesInExtensions)
77973
- };
77974
- }
77975
- __name(astFromEnumValue, "astFromEnumValue");
77976
- function makeDeprecatedDirective(deprecationReason) {
77977
- return makeDirectiveNode("deprecated", { reason: deprecationReason }, GraphQLDeprecatedDirective);
77978
- }
77979
- __name(makeDeprecatedDirective, "makeDeprecatedDirective");
77980
- function makeDirectiveNode(name, args, directive) {
77981
- const directiveArguments = [];
77982
- for (const argName in args) {
77983
- const argValue = args[argName];
77984
- let value;
77985
- if (directive != null) {
77986
- const arg = directive.args.find((arg2) => arg2.name === argName);
77987
- if (arg) {
77988
- value = astFromValue(argValue, arg.type);
77989
- }
77990
- }
77991
- if (value == null) {
77992
- value = astFromValueUntyped(argValue);
77993
- }
77994
- if (value != null) {
77995
- directiveArguments.push({
77996
- kind: Kind6.ARGUMENT,
77997
- name: {
77998
- kind: Kind6.NAME,
77999
- value: argName
78000
- },
78001
- value
78002
- });
78003
- }
78004
- }
78005
- return {
78006
- kind: Kind6.DIRECTIVE,
78007
- name: {
78008
- kind: Kind6.NAME,
78009
- value: name
78010
- },
78011
- arguments: directiveArguments
78012
- };
78013
- }
78014
- __name(makeDirectiveNode, "makeDirectiveNode");
78015
- function makeDirectiveNodes(schema, directiveValues) {
78016
- const directiveNodes = [];
78017
- for (const { name, args } of directiveValues) {
78018
- const directive = schema?.getDirective(name);
78019
- directiveNodes.push(makeDirectiveNode(name, args, directive));
78020
- }
78021
- return directiveNodes;
78022
- }
78023
- __name(makeDirectiveNodes, "makeDirectiveNodes");
78024
-
78025
77154
  // src/core/database-schema.ts
78026
- import { GraphQLSchema as GraphQLSchema2 } from "graphql";
78027
77155
  var DatabaseSchemaState = class _DatabaseSchemaState extends ListStateStorage {
78028
77156
  static {
78029
77157
  __name(this, "DatabaseSchemaState");
@@ -78048,29 +77176,29 @@ var DatabaseSchema = class {
78048
77176
  };
78049
77177
  function mergeSchemas(schemas) {
78050
77178
  const allTypes = {};
78051
- let mergedSchema = new GraphQLSchema2({});
77179
+ let ret3 = "";
78052
77180
  for (const schema of schemas) {
78053
- const gqlSchema = buildSchema((0, import_graphql15.parse)(schema.source));
77181
+ let source = schema.source;
77182
+ const gqlSchema = buildSchema((0, import_graphql6.parse)(source));
78054
77183
  for (const type3 of Object.values(gqlSchema.getTypeMap())) {
78055
- if ((0, import_graphql15.isScalarType)(type3) || type3.name.startsWith("__")) {
77184
+ if ((0, import_graphql6.isScalarType)(type3) || type3.name.startsWith("__")) {
78056
77185
  continue;
78057
77186
  }
78058
77187
  if (allTypes[type3.name]) {
78059
77188
  console.warn(`Type ${type3.name} is already registered, you have duplicate definitions in multiple schemas.`);
78060
- } else if ((0, import_graphql15.isObjectType)(type3) || (0, import_graphql15.isInterfaceType)(type3)) {
78061
- allTypes[type3.name] = type3;
77189
+ if ((0, import_graphql6.isObjectType)(type3)) {
77190
+ const p = `type\\s+${type3.name}\\s+[^}]+\\}`;
77191
+ source = source.replace(new RegExp(p, "g"), "");
77192
+ } else if ((0, import_graphql6.isInterfaceType)(type3)) {
77193
+ source = source.replace(new RegExp(`interfaces+${type3.name}s+[^}]+}`, "g"), "");
77194
+ }
78062
77195
  } else {
78063
77196
  allTypes[type3.name] = type3;
78064
77197
  }
78065
77198
  }
78066
- mergedSchema = new GraphQLSchema2({
78067
- types: [...Object.values(allTypes)]
78068
- });
77199
+ ret3 += source + "\n";
78069
77200
  }
78070
- return printSchemaWithDirectives(mergedSchema, {
78071
- commentDescriptions: false,
78072
- assumeValid: true
78073
- });
77201
+ return ret3;
78074
77202
  }
78075
77203
  __name(mergeSchemas, "mergeSchemas");
78076
77204
  import("node:process").then((p) => p.stdout.write(""));
@@ -79829,4 +78957,4 @@ long/index.js:
79829
78957
  * SPDX-License-Identifier: Apache-2.0
79830
78958
  *)
79831
78959
  */
79832
- //# sourceMappingURL=chunk-MDXSHBG3.js.map
78960
+ //# sourceMappingURL=chunk-KJ5NIZWD.js.map