@sentio/sdk-bundle 2.61.0-rc.12 → 2.61.0-rc.13
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/aptos/builtin/0x1.js +4 -4
- package/lib/aptos/builtin/0x3.js +5 -5
- package/lib/aptos/builtin/0x4.js +5 -5
- package/lib/aptos/builtin/index.js +6 -6
- package/lib/aptos/ext/index.js +4 -4
- package/lib/aptos/index.js +4 -4
- package/lib/btc/index.js +2 -2
- package/lib/{chunk-GXKNLTFS.js → chunk-57E27NBF.js} +2 -2
- package/lib/{chunk-KM4KWLLW.js → chunk-A6Q2EP5R.js} +5 -5
- package/lib/{chunk-H3BE5PRG.js → chunk-ARMLEDES.js} +3 -3
- package/lib/{chunk-TJN47DKJ.js → chunk-BCWMDHUS.js} +2410 -266
- package/lib/chunk-BCWMDHUS.js.map +1 -0
- package/lib/{chunk-YHS6GJRE.js → chunk-CPOFADRI.js} +2 -2
- package/lib/{chunk-QN6BUJJF.js → chunk-E3PS5R2K.js} +2 -2
- package/lib/{chunk-2XXXL4N6.js → chunk-G6QMC67W.js} +4 -4
- package/lib/{chunk-27LP7MRT.js → chunk-GI52XVZV.js} +3 -3
- package/lib/{chunk-VBZA5LSU.js → chunk-J6J6AKAU.js} +6 -6
- package/lib/{chunk-OHDY7HJ3.js → chunk-K53DPJJ5.js} +2 -2
- package/lib/{chunk-OY6UBYP6.js → chunk-KICE6Q3E.js} +5 -5
- package/lib/{chunk-3OFIQMZQ.js → chunk-LX5VTLBJ.js} +6 -6
- package/lib/{chunk-OA3KG4BF.js → chunk-OYQN5TGS.js} +3 -3
- package/lib/{chunk-4U5NULX7.js → chunk-PG2OY5U4.js} +2 -2
- package/lib/{chunk-ZBQOSVPW.js → chunk-POPBBFXO.js} +5 -5
- package/lib/{chunk-F2F3FRZX.js → chunk-TCYBTFNQ.js} +4 -4
- package/lib/{chunk-TUUDCKCV.js → chunk-TQ7MSSI2.js} +4 -4
- package/lib/{chunk-PO6UPUR4.js → chunk-WFVVUCGZ.js} +3 -3
- package/lib/{chunk-4RBJUG72.js → chunk-Y5YLWJY2.js} +2 -2
- package/lib/{chunk-XT5ELP3F.js → chunk-ZCKAM62S.js} +2 -2
- package/lib/core/index.js +1 -1
- package/lib/eth/builtin/eacaggregatorproxy.js +2 -2
- package/lib/eth/builtin/erc1155.js +3 -3
- package/lib/eth/builtin/erc20.js +2 -2
- package/lib/eth/builtin/erc721.js +2 -2
- package/lib/eth/builtin/index.js +4 -4
- package/lib/eth/builtin/weth9.js +3 -3
- package/lib/eth/index.js +2 -2
- package/lib/fuel/index.js +2 -2
- package/lib/index.js +1 -1
- package/lib/iota/builtin/0x1.js +7 -7
- package/lib/iota/builtin/0x2.js +8 -8
- package/lib/iota/builtin/0x3.js +9 -9
- package/lib/iota/builtin/index.js +9 -9
- package/lib/iota/ext/index.js +4 -4
- package/lib/iota/index.js +6 -6
- package/lib/move/index.js +2 -2
- package/lib/solana/builtin/index.js +2 -2
- package/lib/solana/index.js +2 -2
- package/lib/stark/index.js +1 -1
- package/lib/store/index.js +1 -1
- package/lib/sui/builtin/0x1.js +7 -7
- package/lib/sui/builtin/0x2.js +8 -8
- package/lib/sui/builtin/0x3.js +9 -9
- package/lib/sui/builtin/index.js +9 -9
- package/lib/sui/ext/index.js +4 -4
- package/lib/sui/index.js +6 -6
- package/lib/testing/index.js +9 -9
- package/lib/utils/index.js +2 -2
- package/package.json +2 -2
- package/lib/chunk-TJN47DKJ.js.map +0 -1
- /package/lib/{chunk-GXKNLTFS.js.map → chunk-57E27NBF.js.map} +0 -0
- /package/lib/{chunk-KM4KWLLW.js.map → chunk-A6Q2EP5R.js.map} +0 -0
- /package/lib/{chunk-H3BE5PRG.js.map → chunk-ARMLEDES.js.map} +0 -0
- /package/lib/{chunk-YHS6GJRE.js.map → chunk-CPOFADRI.js.map} +0 -0
- /package/lib/{chunk-QN6BUJJF.js.map → chunk-E3PS5R2K.js.map} +0 -0
- /package/lib/{chunk-2XXXL4N6.js.map → chunk-G6QMC67W.js.map} +0 -0
- /package/lib/{chunk-27LP7MRT.js.map → chunk-GI52XVZV.js.map} +0 -0
- /package/lib/{chunk-VBZA5LSU.js.map → chunk-J6J6AKAU.js.map} +0 -0
- /package/lib/{chunk-OHDY7HJ3.js.map → chunk-K53DPJJ5.js.map} +0 -0
- /package/lib/{chunk-OY6UBYP6.js.map → chunk-KICE6Q3E.js.map} +0 -0
- /package/lib/{chunk-3OFIQMZQ.js.map → chunk-LX5VTLBJ.js.map} +0 -0
- /package/lib/{chunk-OA3KG4BF.js.map → chunk-OYQN5TGS.js.map} +0 -0
- /package/lib/{chunk-4U5NULX7.js.map → chunk-PG2OY5U4.js.map} +0 -0
- /package/lib/{chunk-ZBQOSVPW.js.map → chunk-POPBBFXO.js.map} +0 -0
- /package/lib/{chunk-F2F3FRZX.js.map → chunk-TCYBTFNQ.js.map} +0 -0
- /package/lib/{chunk-TUUDCKCV.js.map → chunk-TQ7MSSI2.js.map} +0 -0
- /package/lib/{chunk-PO6UPUR4.js.map → chunk-WFVVUCGZ.js.map} +0 -0
- /package/lib/{chunk-4RBJUG72.js.map → chunk-Y5YLWJY2.js.map} +0 -0
- /package/lib/{chunk-XT5ELP3F.js.map → chunk-ZCKAM62S.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")] =
|
|
9648
|
+
BN2.prototype[Symbol.for("nodejs.util.inspect.custom")] = inspect3;
|
|
9649
9649
|
} catch (e) {
|
|
9650
|
-
BN2.prototype.inspect =
|
|
9650
|
+
BN2.prototype.inspect = inspect3;
|
|
9651
9651
|
}
|
|
9652
9652
|
} else {
|
|
9653
|
-
BN2.prototype.inspect =
|
|
9653
|
+
BN2.prototype.inspect = inspect3;
|
|
9654
9654
|
}
|
|
9655
|
-
function
|
|
9655
|
+
function inspect3() {
|
|
9656
9656
|
return (this.red ? "<BN-R: " : "<BN: ") + this.toString(16) + ">";
|
|
9657
9657
|
}
|
|
9658
|
-
__name(
|
|
9658
|
+
__name(inspect3, "inspect");
|
|
9659
9659
|
var zeros = [
|
|
9660
9660
|
"",
|
|
9661
9661
|
"0",
|
|
@@ -21749,15 +21749,15 @@ var require_version = __commonJS({
|
|
|
21749
21749
|
value: true
|
|
21750
21750
|
});
|
|
21751
21751
|
exports.versionInfo = exports.version = void 0;
|
|
21752
|
-
var
|
|
21753
|
-
exports.version =
|
|
21754
|
-
var
|
|
21752
|
+
var version2 = "16.10.0";
|
|
21753
|
+
exports.version = version2;
|
|
21754
|
+
var versionInfo2 = Object.freeze({
|
|
21755
21755
|
major: 16,
|
|
21756
21756
|
minor: 10,
|
|
21757
21757
|
patch: 0,
|
|
21758
21758
|
preReleaseTag: null
|
|
21759
21759
|
});
|
|
21760
|
-
exports.versionInfo =
|
|
21760
|
+
exports.versionInfo = versionInfo2;
|
|
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 =
|
|
21805
|
-
function
|
|
21804
|
+
exports.isObjectLike = isObjectLike3;
|
|
21805
|
+
function isObjectLike3(value) {
|
|
21806
21806
|
return typeof value == "object" && value !== null;
|
|
21807
21807
|
}
|
|
21808
|
-
__name(
|
|
21808
|
+
__name(isObjectLike3, "isObjectLike");
|
|
21809
21809
|
}
|
|
21810
21810
|
});
|
|
21811
21811
|
|
|
@@ -21928,8 +21928,8 @@ var require_GraphQLError = __commonJS({
|
|
|
21928
21928
|
value: true
|
|
21929
21929
|
});
|
|
21930
21930
|
exports.GraphQLError = void 0;
|
|
21931
|
-
exports.formatError =
|
|
21932
|
-
exports.printError =
|
|
21931
|
+
exports.formatError = formatError3;
|
|
21932
|
+
exports.printError = printError2;
|
|
21933
21933
|
var _isObjectLike = require_isObjectLike();
|
|
21934
21934
|
var _location = require_location();
|
|
21935
21935
|
var _printLocation = require_printLocation();
|
|
@@ -22088,14 +22088,14 @@ var require_GraphQLError = __commonJS({
|
|
|
22088
22088
|
return array === void 0 || array.length === 0 ? void 0 : array;
|
|
22089
22089
|
}
|
|
22090
22090
|
__name(undefinedIfEmpty2, "undefinedIfEmpty");
|
|
22091
|
-
function
|
|
22091
|
+
function printError2(error) {
|
|
22092
22092
|
return error.toString();
|
|
22093
22093
|
}
|
|
22094
|
-
__name(
|
|
22095
|
-
function
|
|
22094
|
+
__name(printError2, "printError");
|
|
22095
|
+
function formatError3(error) {
|
|
22096
22096
|
return error.toJSON();
|
|
22097
22097
|
}
|
|
22098
|
-
__name(
|
|
22098
|
+
__name(formatError3, "formatError");
|
|
22099
22099
|
}
|
|
22100
22100
|
});
|
|
22101
22101
|
|
|
@@ -23267,27 +23267,27 @@ var require_inspect = __commonJS({
|
|
|
23267
23267
|
Object.defineProperty(exports, "__esModule", {
|
|
23268
23268
|
value: true
|
|
23269
23269
|
});
|
|
23270
|
-
exports.inspect =
|
|
23270
|
+
exports.inspect = inspect3;
|
|
23271
23271
|
var MAX_ARRAY_LENGTH2 = 10;
|
|
23272
|
-
var
|
|
23273
|
-
function
|
|
23274
|
-
return
|
|
23272
|
+
var MAX_RECURSIVE_DEPTH3 = 2;
|
|
23273
|
+
function inspect3(value) {
|
|
23274
|
+
return formatValue3(value, []);
|
|
23275
23275
|
}
|
|
23276
|
-
__name(
|
|
23277
|
-
function
|
|
23276
|
+
__name(inspect3, "inspect");
|
|
23277
|
+
function formatValue3(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
|
|
23284
|
+
return formatObjectValue3(value, seenValues);
|
|
23285
23285
|
default:
|
|
23286
23286
|
return String(value);
|
|
23287
23287
|
}
|
|
23288
23288
|
}
|
|
23289
|
-
__name(
|
|
23290
|
-
function
|
|
23289
|
+
__name(formatValue3, "formatValue");
|
|
23290
|
+
function formatObjectValue3(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 (
|
|
23298
|
+
if (isJSONable3(value)) {
|
|
23299
23299
|
const jsonValue = value.toJSON();
|
|
23300
23300
|
if (jsonValue !== value) {
|
|
23301
|
-
return typeof jsonValue === "string" ? jsonValue :
|
|
23301
|
+
return typeof jsonValue === "string" ? jsonValue : formatValue3(jsonValue, seenValues);
|
|
23302
23302
|
}
|
|
23303
23303
|
} else if (Array.isArray(value)) {
|
|
23304
|
-
return
|
|
23304
|
+
return formatArray3(value, seenValues);
|
|
23305
23305
|
}
|
|
23306
|
-
return
|
|
23306
|
+
return formatObject3(value, seenValues);
|
|
23307
23307
|
}
|
|
23308
|
-
__name(
|
|
23309
|
-
function
|
|
23308
|
+
__name(formatObjectValue3, "formatObjectValue");
|
|
23309
|
+
function isJSONable3(value) {
|
|
23310
23310
|
return typeof value.toJSON === "function";
|
|
23311
23311
|
}
|
|
23312
|
-
__name(
|
|
23313
|
-
function
|
|
23312
|
+
__name(isJSONable3, "isJSONable");
|
|
23313
|
+
function formatObject3(object, seenValues) {
|
|
23314
23314
|
const entries = Object.entries(object);
|
|
23315
23315
|
if (entries.length === 0) {
|
|
23316
23316
|
return "{}";
|
|
23317
23317
|
}
|
|
23318
|
-
if (seenValues.length >
|
|
23319
|
-
return "[" +
|
|
23318
|
+
if (seenValues.length > MAX_RECURSIVE_DEPTH3) {
|
|
23319
|
+
return "[" + getObjectTag3(object) + "]";
|
|
23320
23320
|
}
|
|
23321
23321
|
const properties = entries.map(
|
|
23322
|
-
([key, value]) => key + ": " +
|
|
23322
|
+
([key, value]) => key + ": " + formatValue3(value, seenValues)
|
|
23323
23323
|
);
|
|
23324
23324
|
return "{ " + properties.join(", ") + " }";
|
|
23325
23325
|
}
|
|
23326
|
-
__name(
|
|
23327
|
-
function
|
|
23326
|
+
__name(formatObject3, "formatObject");
|
|
23327
|
+
function formatArray3(array, seenValues) {
|
|
23328
23328
|
if (array.length === 0) {
|
|
23329
23329
|
return "[]";
|
|
23330
23330
|
}
|
|
23331
|
-
if (seenValues.length >
|
|
23331
|
+
if (seenValues.length > MAX_RECURSIVE_DEPTH3) {
|
|
23332
23332
|
return "[Array]";
|
|
23333
23333
|
}
|
|
23334
23334
|
const len = Math.min(MAX_ARRAY_LENGTH2, 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(
|
|
23338
|
+
items.push(formatValue3(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(
|
|
23348
|
-
function
|
|
23347
|
+
__name(formatArray3, "formatArray");
|
|
23348
|
+
function getObjectTag3(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(
|
|
23358
|
+
__name(getObjectTag3, "getObjectTag");
|
|
23359
23359
|
}
|
|
23360
23360
|
});
|
|
23361
23361
|
|
|
@@ -26732,39 +26732,39 @@ var require_typeComparators = __commonJS({
|
|
|
26732
26732
|
Object.defineProperty(exports, "__esModule", {
|
|
26733
26733
|
value: true
|
|
26734
26734
|
});
|
|
26735
|
-
exports.doTypesOverlap =
|
|
26736
|
-
exports.isEqualType =
|
|
26737
|
-
exports.isTypeSubTypeOf =
|
|
26735
|
+
exports.doTypesOverlap = doTypesOverlap2;
|
|
26736
|
+
exports.isEqualType = isEqualType2;
|
|
26737
|
+
exports.isTypeSubTypeOf = isTypeSubTypeOf2;
|
|
26738
26738
|
var _definition = require_definition();
|
|
26739
|
-
function
|
|
26739
|
+
function isEqualType2(typeA, typeB) {
|
|
26740
26740
|
if (typeA === typeB) {
|
|
26741
26741
|
return true;
|
|
26742
26742
|
}
|
|
26743
26743
|
if ((0, _definition.isNonNullType)(typeA) && (0, _definition.isNonNullType)(typeB)) {
|
|
26744
|
-
return
|
|
26744
|
+
return isEqualType2(typeA.ofType, typeB.ofType);
|
|
26745
26745
|
}
|
|
26746
26746
|
if ((0, _definition.isListType)(typeA) && (0, _definition.isListType)(typeB)) {
|
|
26747
|
-
return
|
|
26747
|
+
return isEqualType2(typeA.ofType, typeB.ofType);
|
|
26748
26748
|
}
|
|
26749
26749
|
return false;
|
|
26750
26750
|
}
|
|
26751
|
-
__name(
|
|
26752
|
-
function
|
|
26751
|
+
__name(isEqualType2, "isEqualType");
|
|
26752
|
+
function isTypeSubTypeOf2(schema, maybeSubType, superType) {
|
|
26753
26753
|
if (maybeSubType === superType) {
|
|
26754
26754
|
return true;
|
|
26755
26755
|
}
|
|
26756
26756
|
if ((0, _definition.isNonNullType)(superType)) {
|
|
26757
26757
|
if ((0, _definition.isNonNullType)(maybeSubType)) {
|
|
26758
|
-
return
|
|
26758
|
+
return isTypeSubTypeOf2(schema, maybeSubType.ofType, superType.ofType);
|
|
26759
26759
|
}
|
|
26760
26760
|
return false;
|
|
26761
26761
|
}
|
|
26762
26762
|
if ((0, _definition.isNonNullType)(maybeSubType)) {
|
|
26763
|
-
return
|
|
26763
|
+
return isTypeSubTypeOf2(schema, maybeSubType.ofType, superType);
|
|
26764
26764
|
}
|
|
26765
26765
|
if ((0, _definition.isListType)(superType)) {
|
|
26766
26766
|
if ((0, _definition.isListType)(maybeSubType)) {
|
|
26767
|
-
return
|
|
26767
|
+
return isTypeSubTypeOf2(schema, maybeSubType.ofType, superType.ofType);
|
|
26768
26768
|
}
|
|
26769
26769
|
return false;
|
|
26770
26770
|
}
|
|
@@ -26773,8 +26773,8 @@ var require_typeComparators = __commonJS({
|
|
|
26773
26773
|
}
|
|
26774
26774
|
return (0, _definition.isAbstractType)(superType) && ((0, _definition.isInterfaceType)(maybeSubType) || (0, _definition.isObjectType)(maybeSubType)) && schema.isSubType(superType, maybeSubType);
|
|
26775
26775
|
}
|
|
26776
|
-
__name(
|
|
26777
|
-
function
|
|
26776
|
+
__name(isTypeSubTypeOf2, "isTypeSubTypeOf");
|
|
26777
|
+
function doTypesOverlap2(schema, typeA, typeB) {
|
|
26778
26778
|
if (typeA === typeB) {
|
|
26779
26779
|
return true;
|
|
26780
26780
|
}
|
|
@@ -26789,7 +26789,7 @@ var require_typeComparators = __commonJS({
|
|
|
26789
26789
|
}
|
|
26790
26790
|
return false;
|
|
26791
26791
|
}
|
|
26792
|
-
__name(
|
|
26792
|
+
__name(doTypesOverlap2, "doTypesOverlap");
|
|
26793
26793
|
}
|
|
26794
26794
|
});
|
|
26795
26795
|
|
|
@@ -26817,7 +26817,7 @@ var require_scalars = __commonJS({
|
|
|
26817
26817
|
name: "Int",
|
|
26818
26818
|
description: "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",
|
|
26819
26819
|
serialize(outputValue) {
|
|
26820
|
-
const coercedValue =
|
|
26820
|
+
const coercedValue = serializeObject2(outputValue);
|
|
26821
26821
|
if (typeof coercedValue === "boolean") {
|
|
26822
26822
|
return coercedValue ? 1 : 0;
|
|
26823
26823
|
}
|
|
@@ -26882,7 +26882,7 @@ var require_scalars = __commonJS({
|
|
|
26882
26882
|
name: "Float",
|
|
26883
26883
|
description: "The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",
|
|
26884
26884
|
serialize(outputValue) {
|
|
26885
|
-
const coercedValue =
|
|
26885
|
+
const coercedValue = serializeObject2(outputValue);
|
|
26886
26886
|
if (typeof coercedValue === "boolean") {
|
|
26887
26887
|
return coercedValue ? 1 : 0;
|
|
26888
26888
|
}
|
|
@@ -26926,7 +26926,7 @@ var require_scalars = __commonJS({
|
|
|
26926
26926
|
name: "String",
|
|
26927
26927
|
description: "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",
|
|
26928
26928
|
serialize(outputValue) {
|
|
26929
|
-
const coercedValue =
|
|
26929
|
+
const coercedValue = serializeObject2(outputValue);
|
|
26930
26930
|
if (typeof coercedValue === "string") {
|
|
26931
26931
|
return coercedValue;
|
|
26932
26932
|
}
|
|
@@ -26969,7 +26969,7 @@ var require_scalars = __commonJS({
|
|
|
26969
26969
|
name: "Boolean",
|
|
26970
26970
|
description: "The `Boolean` scalar type represents `true` or `false`.",
|
|
26971
26971
|
serialize(outputValue) {
|
|
26972
|
-
const coercedValue =
|
|
26972
|
+
const coercedValue = serializeObject2(outputValue);
|
|
26973
26973
|
if (typeof coercedValue === "boolean") {
|
|
26974
26974
|
return coercedValue;
|
|
26975
26975
|
}
|
|
@@ -27011,7 +27011,7 @@ var require_scalars = __commonJS({
|
|
|
27011
27011
|
name: "ID",
|
|
27012
27012
|
description: 'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',
|
|
27013
27013
|
serialize(outputValue) {
|
|
27014
|
-
const coercedValue =
|
|
27014
|
+
const coercedValue = serializeObject2(outputValue);
|
|
27015
27015
|
if (typeof coercedValue === "string") {
|
|
27016
27016
|
return coercedValue;
|
|
27017
27017
|
}
|
|
@@ -27058,7 +27058,7 @@ var require_scalars = __commonJS({
|
|
|
27058
27058
|
return specifiedScalarTypes2.some(({ name }) => type3.name === name);
|
|
27059
27059
|
}
|
|
27060
27060
|
__name(isSpecifiedScalarType2, "isSpecifiedScalarType");
|
|
27061
|
-
function
|
|
27061
|
+
function serializeObject2(outputValue) {
|
|
27062
27062
|
if ((0, _isObjectLike.isObjectLike)(outputValue)) {
|
|
27063
27063
|
if (typeof outputValue.valueOf === "function") {
|
|
27064
27064
|
const valueOfResult = outputValue.valueOf();
|
|
@@ -27072,7 +27072,7 @@ var require_scalars = __commonJS({
|
|
|
27072
27072
|
}
|
|
27073
27073
|
return outputValue;
|
|
27074
27074
|
}
|
|
27075
|
-
__name(
|
|
27075
|
+
__name(serializeObject2, "serializeObject");
|
|
27076
27076
|
}
|
|
27077
27077
|
});
|
|
27078
27078
|
|
|
@@ -27248,11 +27248,11 @@ var require_isIterableObject = __commonJS({
|
|
|
27248
27248
|
Object.defineProperty(exports, "__esModule", {
|
|
27249
27249
|
value: true
|
|
27250
27250
|
});
|
|
27251
|
-
exports.isIterableObject =
|
|
27252
|
-
function
|
|
27251
|
+
exports.isIterableObject = isIterableObject3;
|
|
27252
|
+
function isIterableObject3(maybeIterable) {
|
|
27253
27253
|
return typeof maybeIterable === "object" && typeof (maybeIterable === null || maybeIterable === void 0 ? void 0 : maybeIterable[Symbol.iterator]) === "function";
|
|
27254
27254
|
}
|
|
27255
|
-
__name(
|
|
27255
|
+
__name(isIterableObject3, "isIterableObject");
|
|
27256
27256
|
}
|
|
27257
27257
|
});
|
|
27258
27258
|
|
|
@@ -27263,7 +27263,7 @@ var require_astFromValue = __commonJS({
|
|
|
27263
27263
|
Object.defineProperty(exports, "__esModule", {
|
|
27264
27264
|
value: true
|
|
27265
27265
|
});
|
|
27266
|
-
exports.astFromValue =
|
|
27266
|
+
exports.astFromValue = astFromValue3;
|
|
27267
27267
|
var _inspect = require_inspect();
|
|
27268
27268
|
var _invariant = require_invariant();
|
|
27269
27269
|
var _isIterableObject = require_isIterableObject();
|
|
@@ -27271,9 +27271,9 @@ var require_astFromValue = __commonJS({
|
|
|
27271
27271
|
var _kinds = require_kinds();
|
|
27272
27272
|
var _definition = require_definition();
|
|
27273
27273
|
var _scalars = require_scalars();
|
|
27274
|
-
function
|
|
27274
|
+
function astFromValue3(value, type3) {
|
|
27275
27275
|
if ((0, _definition.isNonNullType)(type3)) {
|
|
27276
|
-
const astValue =
|
|
27276
|
+
const astValue = astFromValue3(value, type3.ofType);
|
|
27277
27277
|
if ((astValue === null || astValue === void 0 ? void 0 : astValue.kind) === _kinds.Kind.NULL) {
|
|
27278
27278
|
return null;
|
|
27279
27279
|
}
|
|
@@ -27292,7 +27292,7 @@ var require_astFromValue = __commonJS({
|
|
|
27292
27292
|
if ((0, _isIterableObject.isIterableObject)(value)) {
|
|
27293
27293
|
const valuesNodes = [];
|
|
27294
27294
|
for (const item of value) {
|
|
27295
|
-
const itemNode =
|
|
27295
|
+
const itemNode = astFromValue3(item, itemType);
|
|
27296
27296
|
if (itemNode != null) {
|
|
27297
27297
|
valuesNodes.push(itemNode);
|
|
27298
27298
|
}
|
|
@@ -27302,7 +27302,7 @@ var require_astFromValue = __commonJS({
|
|
|
27302
27302
|
values: valuesNodes
|
|
27303
27303
|
};
|
|
27304
27304
|
}
|
|
27305
|
-
return
|
|
27305
|
+
return astFromValue3(value, itemType);
|
|
27306
27306
|
}
|
|
27307
27307
|
if ((0, _definition.isInputObjectType)(type3)) {
|
|
27308
27308
|
if (!(0, _isObjectLike.isObjectLike)(value)) {
|
|
@@ -27310,7 +27310,7 @@ var require_astFromValue = __commonJS({
|
|
|
27310
27310
|
}
|
|
27311
27311
|
const fieldNodes = [];
|
|
27312
27312
|
for (const field of Object.values(type3.getFields())) {
|
|
27313
|
-
const fieldValue =
|
|
27313
|
+
const fieldValue = astFromValue3(value[field.name], field.type);
|
|
27314
27314
|
if (fieldValue) {
|
|
27315
27315
|
fieldNodes.push({
|
|
27316
27316
|
kind: _kinds.Kind.OBJECT_FIELD,
|
|
@@ -27340,7 +27340,7 @@ var require_astFromValue = __commonJS({
|
|
|
27340
27340
|
}
|
|
27341
27341
|
if (typeof serialized === "number" && Number.isFinite(serialized)) {
|
|
27342
27342
|
const stringNum = String(serialized);
|
|
27343
|
-
return
|
|
27343
|
+
return integerStringRegExp4.test(stringNum) ? {
|
|
27344
27344
|
kind: _kinds.Kind.INT,
|
|
27345
27345
|
value: stringNum
|
|
27346
27346
|
} : {
|
|
@@ -27355,7 +27355,7 @@ var require_astFromValue = __commonJS({
|
|
|
27355
27355
|
value: serialized
|
|
27356
27356
|
};
|
|
27357
27357
|
}
|
|
27358
|
-
if (type3 === _scalars.GraphQLID &&
|
|
27358
|
+
if (type3 === _scalars.GraphQLID && integerStringRegExp4.test(serialized)) {
|
|
27359
27359
|
return {
|
|
27360
27360
|
kind: _kinds.Kind.INT,
|
|
27361
27361
|
value: serialized
|
|
@@ -27375,8 +27375,8 @@ var require_astFromValue = __commonJS({
|
|
|
27375
27375
|
"Unexpected input type: " + (0, _inspect.inspect)(type3)
|
|
27376
27376
|
);
|
|
27377
27377
|
}
|
|
27378
|
-
__name(
|
|
27379
|
-
var
|
|
27378
|
+
__name(astFromValue3, "astFromValue");
|
|
27379
|
+
var integerStringRegExp4 = /^-?(?:0|[1-9][0-9]*)$/;
|
|
27380
27380
|
}
|
|
27381
27381
|
});
|
|
27382
27382
|
|
|
@@ -27977,26 +27977,26 @@ var require_schema = __commonJS({
|
|
|
27977
27977
|
if (config.types != null) {
|
|
27978
27978
|
for (const type3 of config.types) {
|
|
27979
27979
|
allReferencedTypes.delete(type3);
|
|
27980
|
-
|
|
27980
|
+
collectReferencedTypes2(type3, allReferencedTypes);
|
|
27981
27981
|
}
|
|
27982
27982
|
}
|
|
27983
27983
|
if (this._queryType != null) {
|
|
27984
|
-
|
|
27984
|
+
collectReferencedTypes2(this._queryType, allReferencedTypes);
|
|
27985
27985
|
}
|
|
27986
27986
|
if (this._mutationType != null) {
|
|
27987
|
-
|
|
27987
|
+
collectReferencedTypes2(this._mutationType, allReferencedTypes);
|
|
27988
27988
|
}
|
|
27989
27989
|
if (this._subscriptionType != null) {
|
|
27990
|
-
|
|
27990
|
+
collectReferencedTypes2(this._subscriptionType, allReferencedTypes);
|
|
27991
27991
|
}
|
|
27992
27992
|
for (const directive of this._directives) {
|
|
27993
27993
|
if ((0, _directives.isDirective)(directive)) {
|
|
27994
27994
|
for (const arg of directive.args) {
|
|
27995
|
-
|
|
27995
|
+
collectReferencedTypes2(arg.type, allReferencedTypes);
|
|
27996
27996
|
}
|
|
27997
27997
|
}
|
|
27998
27998
|
}
|
|
27999
|
-
|
|
27999
|
+
collectReferencedTypes2(_introspection.__Schema, allReferencedTypes);
|
|
28000
28000
|
this._typeMap = /* @__PURE__ */ Object.create(null);
|
|
28001
28001
|
this._subTypeMap = /* @__PURE__ */ Object.create(null);
|
|
28002
28002
|
this._implementationsMap = /* @__PURE__ */ Object.create(null);
|
|
@@ -28125,33 +28125,33 @@ var require_schema = __commonJS({
|
|
|
28125
28125
|
}
|
|
28126
28126
|
};
|
|
28127
28127
|
exports.GraphQLSchema = GraphQLSchema3;
|
|
28128
|
-
function
|
|
28128
|
+
function collectReferencedTypes2(type3, typeSet) {
|
|
28129
28129
|
const namedType = (0, _definition.getNamedType)(type3);
|
|
28130
28130
|
if (!typeSet.has(namedType)) {
|
|
28131
28131
|
typeSet.add(namedType);
|
|
28132
28132
|
if ((0, _definition.isUnionType)(namedType)) {
|
|
28133
28133
|
for (const memberType of namedType.getTypes()) {
|
|
28134
|
-
|
|
28134
|
+
collectReferencedTypes2(memberType, typeSet);
|
|
28135
28135
|
}
|
|
28136
28136
|
} else if ((0, _definition.isObjectType)(namedType) || (0, _definition.isInterfaceType)(namedType)) {
|
|
28137
28137
|
for (const interfaceType of namedType.getInterfaces()) {
|
|
28138
|
-
|
|
28138
|
+
collectReferencedTypes2(interfaceType, typeSet);
|
|
28139
28139
|
}
|
|
28140
28140
|
for (const field of Object.values(namedType.getFields())) {
|
|
28141
|
-
|
|
28141
|
+
collectReferencedTypes2(field.type, typeSet);
|
|
28142
28142
|
for (const arg of field.args) {
|
|
28143
|
-
|
|
28143
|
+
collectReferencedTypes2(arg.type, typeSet);
|
|
28144
28144
|
}
|
|
28145
28145
|
}
|
|
28146
28146
|
} else if ((0, _definition.isInputObjectType)(namedType)) {
|
|
28147
28147
|
for (const field of Object.values(namedType.getFields())) {
|
|
28148
|
-
|
|
28148
|
+
collectReferencedTypes2(field.type, typeSet);
|
|
28149
28149
|
}
|
|
28150
28150
|
}
|
|
28151
28151
|
}
|
|
28152
28152
|
return typeSet;
|
|
28153
28153
|
}
|
|
28154
|
-
__name(
|
|
28154
|
+
__name(collectReferencedTypes2, "collectReferencedTypes");
|
|
28155
28155
|
}
|
|
28156
28156
|
});
|
|
28157
28157
|
|
|
@@ -28657,24 +28657,24 @@ var require_typeFromAST = __commonJS({
|
|
|
28657
28657
|
Object.defineProperty(exports, "__esModule", {
|
|
28658
28658
|
value: true
|
|
28659
28659
|
});
|
|
28660
|
-
exports.typeFromAST =
|
|
28660
|
+
exports.typeFromAST = typeFromAST2;
|
|
28661
28661
|
var _kinds = require_kinds();
|
|
28662
28662
|
var _definition = require_definition();
|
|
28663
|
-
function
|
|
28663
|
+
function typeFromAST2(schema, typeNode) {
|
|
28664
28664
|
switch (typeNode.kind) {
|
|
28665
28665
|
case _kinds.Kind.LIST_TYPE: {
|
|
28666
|
-
const innerType =
|
|
28666
|
+
const innerType = typeFromAST2(schema, typeNode.type);
|
|
28667
28667
|
return innerType && new _definition.GraphQLList(innerType);
|
|
28668
28668
|
}
|
|
28669
28669
|
case _kinds.Kind.NON_NULL_TYPE: {
|
|
28670
|
-
const innerType =
|
|
28670
|
+
const innerType = typeFromAST2(schema, typeNode.type);
|
|
28671
28671
|
return innerType && new _definition.GraphQLNonNull(innerType);
|
|
28672
28672
|
}
|
|
28673
28673
|
case _kinds.Kind.NAMED_TYPE:
|
|
28674
28674
|
return schema.getType(typeNode.name.value);
|
|
28675
28675
|
}
|
|
28676
28676
|
}
|
|
28677
|
-
__name(
|
|
28677
|
+
__name(typeFromAST2, "typeFromAST");
|
|
28678
28678
|
}
|
|
28679
28679
|
});
|
|
28680
28680
|
|
|
@@ -28686,14 +28686,14 @@ var require_TypeInfo = __commonJS({
|
|
|
28686
28686
|
value: true
|
|
28687
28687
|
});
|
|
28688
28688
|
exports.TypeInfo = void 0;
|
|
28689
|
-
exports.visitWithTypeInfo =
|
|
28689
|
+
exports.visitWithTypeInfo = visitWithTypeInfo2;
|
|
28690
28690
|
var _ast = require_ast();
|
|
28691
28691
|
var _kinds = require_kinds();
|
|
28692
28692
|
var _visitor = require_visitor();
|
|
28693
28693
|
var _definition = require_definition();
|
|
28694
28694
|
var _introspection = require_introspection();
|
|
28695
28695
|
var _typeFromAST = require_typeFromAST();
|
|
28696
|
-
var
|
|
28696
|
+
var TypeInfo2 = class {
|
|
28697
28697
|
static {
|
|
28698
28698
|
__name(this, "TypeInfo");
|
|
28699
28699
|
}
|
|
@@ -28910,7 +28910,7 @@ var require_TypeInfo = __commonJS({
|
|
|
28910
28910
|
}
|
|
28911
28911
|
}
|
|
28912
28912
|
};
|
|
28913
|
-
exports.TypeInfo =
|
|
28913
|
+
exports.TypeInfo = TypeInfo2;
|
|
28914
28914
|
function getFieldDef(schema, parentType, fieldNode) {
|
|
28915
28915
|
const name = fieldNode.name.value;
|
|
28916
28916
|
if (name === _introspection.SchemaMetaFieldDef.name && schema.getQueryType() === parentType) {
|
|
@@ -28927,7 +28927,7 @@ var require_TypeInfo = __commonJS({
|
|
|
28927
28927
|
}
|
|
28928
28928
|
}
|
|
28929
28929
|
__name(getFieldDef, "getFieldDef");
|
|
28930
|
-
function
|
|
28930
|
+
function visitWithTypeInfo2(typeInfo, visitor) {
|
|
28931
28931
|
return {
|
|
28932
28932
|
enter(...args) {
|
|
28933
28933
|
const node = args[0];
|
|
@@ -28956,7 +28956,7 @@ var require_TypeInfo = __commonJS({
|
|
|
28956
28956
|
}
|
|
28957
28957
|
};
|
|
28958
28958
|
}
|
|
28959
|
-
__name(
|
|
28959
|
+
__name(visitWithTypeInfo2, "visitWithTypeInfo");
|
|
28960
28960
|
}
|
|
28961
28961
|
});
|
|
28962
28962
|
|
|
@@ -30890,7 +30890,7 @@ var require_coerceInputValue = __commonJS({
|
|
|
30890
30890
|
Object.defineProperty(exports, "__esModule", {
|
|
30891
30891
|
value: true
|
|
30892
30892
|
});
|
|
30893
|
-
exports.coerceInputValue =
|
|
30893
|
+
exports.coerceInputValue = coerceInputValue2;
|
|
30894
30894
|
var _didYouMean = require_didYouMean();
|
|
30895
30895
|
var _inspect = require_inspect();
|
|
30896
30896
|
var _invariant = require_invariant();
|
|
@@ -30901,10 +30901,10 @@ var require_coerceInputValue = __commonJS({
|
|
|
30901
30901
|
var _suggestionList = require_suggestionList();
|
|
30902
30902
|
var _GraphQLError = require_GraphQLError();
|
|
30903
30903
|
var _definition = require_definition();
|
|
30904
|
-
function
|
|
30904
|
+
function coerceInputValue2(inputValue, type3, onError2 = defaultOnError) {
|
|
30905
30905
|
return coerceInputValueImpl(inputValue, type3, onError2, void 0);
|
|
30906
30906
|
}
|
|
30907
|
-
__name(
|
|
30907
|
+
__name(coerceInputValue2, "coerceInputValue");
|
|
30908
30908
|
function defaultOnError(path, invalidValue, error) {
|
|
30909
30909
|
let errorPrefix = "Invalid value " + (0, _inspect.inspect)(invalidValue);
|
|
30910
30910
|
if (path.length > 0) {
|
|
@@ -31064,13 +31064,13 @@ var require_valueFromAST = __commonJS({
|
|
|
31064
31064
|
Object.defineProperty(exports, "__esModule", {
|
|
31065
31065
|
value: true
|
|
31066
31066
|
});
|
|
31067
|
-
exports.valueFromAST =
|
|
31067
|
+
exports.valueFromAST = valueFromAST2;
|
|
31068
31068
|
var _inspect = require_inspect();
|
|
31069
31069
|
var _invariant = require_invariant();
|
|
31070
31070
|
var _keyMap = require_keyMap();
|
|
31071
31071
|
var _kinds = require_kinds();
|
|
31072
31072
|
var _definition = require_definition();
|
|
31073
|
-
function
|
|
31073
|
+
function valueFromAST2(valueNode, type3, variables) {
|
|
31074
31074
|
if (!valueNode) {
|
|
31075
31075
|
return;
|
|
31076
31076
|
}
|
|
@@ -31089,7 +31089,7 @@ var require_valueFromAST = __commonJS({
|
|
|
31089
31089
|
if (valueNode.kind === _kinds.Kind.NULL) {
|
|
31090
31090
|
return;
|
|
31091
31091
|
}
|
|
31092
|
-
return
|
|
31092
|
+
return valueFromAST2(valueNode, type3.ofType, variables);
|
|
31093
31093
|
}
|
|
31094
31094
|
if (valueNode.kind === _kinds.Kind.NULL) {
|
|
31095
31095
|
return null;
|
|
@@ -31099,13 +31099,13 @@ var require_valueFromAST = __commonJS({
|
|
|
31099
31099
|
if (valueNode.kind === _kinds.Kind.LIST) {
|
|
31100
31100
|
const coercedValues = [];
|
|
31101
31101
|
for (const itemNode of valueNode.values) {
|
|
31102
|
-
if (
|
|
31102
|
+
if (isMissingVariable2(itemNode, variables)) {
|
|
31103
31103
|
if ((0, _definition.isNonNullType)(itemType)) {
|
|
31104
31104
|
return;
|
|
31105
31105
|
}
|
|
31106
31106
|
coercedValues.push(null);
|
|
31107
31107
|
} else {
|
|
31108
|
-
const itemValue =
|
|
31108
|
+
const itemValue = valueFromAST2(itemNode, itemType, variables);
|
|
31109
31109
|
if (itemValue === void 0) {
|
|
31110
31110
|
return;
|
|
31111
31111
|
}
|
|
@@ -31114,7 +31114,7 @@ var require_valueFromAST = __commonJS({
|
|
|
31114
31114
|
}
|
|
31115
31115
|
return coercedValues;
|
|
31116
31116
|
}
|
|
31117
|
-
const coercedValue =
|
|
31117
|
+
const coercedValue = valueFromAST2(valueNode, itemType, variables);
|
|
31118
31118
|
if (coercedValue === void 0) {
|
|
31119
31119
|
return;
|
|
31120
31120
|
}
|
|
@@ -31131,7 +31131,7 @@ var require_valueFromAST = __commonJS({
|
|
|
31131
31131
|
);
|
|
31132
31132
|
for (const field of Object.values(type3.getFields())) {
|
|
31133
31133
|
const fieldNode = fieldNodes[field.name];
|
|
31134
|
-
if (!fieldNode ||
|
|
31134
|
+
if (!fieldNode || isMissingVariable2(fieldNode.value, variables)) {
|
|
31135
31135
|
if (field.defaultValue !== void 0) {
|
|
31136
31136
|
coercedObj[field.name] = field.defaultValue;
|
|
31137
31137
|
} else if ((0, _definition.isNonNullType)(field.type)) {
|
|
@@ -31139,7 +31139,7 @@ var require_valueFromAST = __commonJS({
|
|
|
31139
31139
|
}
|
|
31140
31140
|
continue;
|
|
31141
31141
|
}
|
|
31142
|
-
const fieldValue =
|
|
31142
|
+
const fieldValue = valueFromAST2(fieldNode.value, field.type, variables);
|
|
31143
31143
|
if (fieldValue === void 0) {
|
|
31144
31144
|
return;
|
|
31145
31145
|
}
|
|
@@ -31173,11 +31173,11 @@ var require_valueFromAST = __commonJS({
|
|
|
31173
31173
|
"Unexpected input type: " + (0, _inspect.inspect)(type3)
|
|
31174
31174
|
);
|
|
31175
31175
|
}
|
|
31176
|
-
__name(
|
|
31177
|
-
function
|
|
31176
|
+
__name(valueFromAST2, "valueFromAST");
|
|
31177
|
+
function isMissingVariable2(valueNode, variables) {
|
|
31178
31178
|
return valueNode.kind === _kinds.Kind.VARIABLE && (variables == null || variables[valueNode.name.value] === void 0);
|
|
31179
31179
|
}
|
|
31180
|
-
__name(
|
|
31180
|
+
__name(isMissingVariable2, "isMissingVariable");
|
|
31181
31181
|
}
|
|
31182
31182
|
});
|
|
31183
31183
|
|
|
@@ -31188,7 +31188,7 @@ var require_values = __commonJS({
|
|
|
31188
31188
|
Object.defineProperty(exports, "__esModule", {
|
|
31189
31189
|
value: true
|
|
31190
31190
|
});
|
|
31191
|
-
exports.getArgumentValues =
|
|
31191
|
+
exports.getArgumentValues = getArgumentValues2;
|
|
31192
31192
|
exports.getDirectiveValues = getDirectiveValues;
|
|
31193
31193
|
exports.getVariableValues = getVariableValues;
|
|
31194
31194
|
var _inspect = require_inspect();
|
|
@@ -31248,7 +31248,7 @@ var require_values = __commonJS({
|
|
|
31248
31248
|
);
|
|
31249
31249
|
continue;
|
|
31250
31250
|
}
|
|
31251
|
-
if (!
|
|
31251
|
+
if (!hasOwnProperty2(inputs, varName)) {
|
|
31252
31252
|
if (varDefNode.defaultValue) {
|
|
31253
31253
|
coercedValues[varName] = (0, _valueFromAST.valueFromAST)(
|
|
31254
31254
|
varDefNode.defaultValue,
|
|
@@ -31302,7 +31302,7 @@ var require_values = __commonJS({
|
|
|
31302
31302
|
return coercedValues;
|
|
31303
31303
|
}
|
|
31304
31304
|
__name(coerceVariableValues, "coerceVariableValues");
|
|
31305
|
-
function
|
|
31305
|
+
function getArgumentValues2(def, node, variableValues) {
|
|
31306
31306
|
var _node$arguments;
|
|
31307
31307
|
const coercedValues = {};
|
|
31308
31308
|
const argumentNodes = (_node$arguments = node.arguments) !== null && _node$arguments !== void 0 ? _node$arguments : [];
|
|
@@ -31333,7 +31333,7 @@ var require_values = __commonJS({
|
|
|
31333
31333
|
let isNull = valueNode.kind === _kinds.Kind.NULL;
|
|
31334
31334
|
if (valueNode.kind === _kinds.Kind.VARIABLE) {
|
|
31335
31335
|
const variableName = valueNode.name.value;
|
|
31336
|
-
if (variableValues == null || !
|
|
31336
|
+
if (variableValues == null || !hasOwnProperty2(variableValues, variableName)) {
|
|
31337
31337
|
if (argDef.defaultValue !== void 0) {
|
|
31338
31338
|
coercedValues[name] = argDef.defaultValue;
|
|
31339
31339
|
} else if ((0, _definition.isNonNullType)(argType)) {
|
|
@@ -31379,21 +31379,21 @@ var require_values = __commonJS({
|
|
|
31379
31379
|
}
|
|
31380
31380
|
return coercedValues;
|
|
31381
31381
|
}
|
|
31382
|
-
__name(
|
|
31382
|
+
__name(getArgumentValues2, "getArgumentValues");
|
|
31383
31383
|
function getDirectiveValues(directiveDef, node, variableValues) {
|
|
31384
31384
|
var _node$directives;
|
|
31385
31385
|
const directiveNode = (_node$directives = node.directives) === null || _node$directives === void 0 ? void 0 : _node$directives.find(
|
|
31386
31386
|
(directive) => directive.name.value === directiveDef.name
|
|
31387
31387
|
);
|
|
31388
31388
|
if (directiveNode) {
|
|
31389
|
-
return
|
|
31389
|
+
return getArgumentValues2(directiveDef, directiveNode, variableValues);
|
|
31390
31390
|
}
|
|
31391
31391
|
}
|
|
31392
31392
|
__name(getDirectiveValues, "getDirectiveValues");
|
|
31393
|
-
function
|
|
31393
|
+
function hasOwnProperty2(obj, prop) {
|
|
31394
31394
|
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
31395
31395
|
}
|
|
31396
|
-
__name(
|
|
31396
|
+
__name(hasOwnProperty2, "hasOwnProperty");
|
|
31397
31397
|
}
|
|
31398
31398
|
});
|
|
31399
31399
|
|
|
@@ -33074,10 +33074,10 @@ var require_locatedError = __commonJS({
|
|
|
33074
33074
|
Object.defineProperty(exports, "__esModule", {
|
|
33075
33075
|
value: true
|
|
33076
33076
|
});
|
|
33077
|
-
exports.locatedError =
|
|
33077
|
+
exports.locatedError = locatedError2;
|
|
33078
33078
|
var _toError = require_toError();
|
|
33079
33079
|
var _GraphQLError = require_GraphQLError();
|
|
33080
|
-
function
|
|
33080
|
+
function locatedError2(rawOriginalError, nodes, path) {
|
|
33081
33081
|
var _nodes;
|
|
33082
33082
|
const originalError = (0, _toError.toError)(rawOriginalError);
|
|
33083
33083
|
if (isLocatedGraphQLError(originalError)) {
|
|
@@ -33091,7 +33091,7 @@ var require_locatedError = __commonJS({
|
|
|
33091
33091
|
originalError
|
|
33092
33092
|
});
|
|
33093
33093
|
}
|
|
33094
|
-
__name(
|
|
33094
|
+
__name(locatedError2, "locatedError");
|
|
33095
33095
|
function isLocatedGraphQLError(error) {
|
|
33096
33096
|
return Array.isArray(error.path);
|
|
33097
33097
|
}
|
|
@@ -35356,8 +35356,8 @@ var require_getIntrospectionQuery = __commonJS({
|
|
|
35356
35356
|
Object.defineProperty(exports, "__esModule", {
|
|
35357
35357
|
value: true
|
|
35358
35358
|
});
|
|
35359
|
-
exports.getIntrospectionQuery =
|
|
35360
|
-
function
|
|
35359
|
+
exports.getIntrospectionQuery = getIntrospectionQuery2;
|
|
35360
|
+
function getIntrospectionQuery2(options) {
|
|
35361
35361
|
const optionsWithDefault = {
|
|
35362
35362
|
descriptions: true,
|
|
35363
35363
|
specifiedByUrl: false,
|
|
@@ -35484,7 +35484,7 @@ var require_getIntrospectionQuery = __commonJS({
|
|
|
35484
35484
|
}
|
|
35485
35485
|
`;
|
|
35486
35486
|
}
|
|
35487
|
-
__name(
|
|
35487
|
+
__name(getIntrospectionQuery2, "getIntrospectionQuery");
|
|
35488
35488
|
}
|
|
35489
35489
|
});
|
|
35490
35490
|
|
|
@@ -35495,9 +35495,9 @@ var require_getOperationAST = __commonJS({
|
|
|
35495
35495
|
Object.defineProperty(exports, "__esModule", {
|
|
35496
35496
|
value: true
|
|
35497
35497
|
});
|
|
35498
|
-
exports.getOperationAST =
|
|
35498
|
+
exports.getOperationAST = getOperationAST2;
|
|
35499
35499
|
var _kinds = require_kinds();
|
|
35500
|
-
function
|
|
35500
|
+
function getOperationAST2(documentAST, operationName) {
|
|
35501
35501
|
let operation = null;
|
|
35502
35502
|
for (const definition of documentAST.definitions) {
|
|
35503
35503
|
if (definition.kind === _kinds.Kind.OPERATION_DEFINITION) {
|
|
@@ -35514,7 +35514,7 @@ var require_getOperationAST = __commonJS({
|
|
|
35514
35514
|
}
|
|
35515
35515
|
return operation;
|
|
35516
35516
|
}
|
|
35517
|
-
__name(
|
|
35517
|
+
__name(getOperationAST2, "getOperationAST");
|
|
35518
35518
|
}
|
|
35519
35519
|
});
|
|
35520
35520
|
|
|
@@ -35525,9 +35525,9 @@ var require_getOperationRootType = __commonJS({
|
|
|
35525
35525
|
Object.defineProperty(exports, "__esModule", {
|
|
35526
35526
|
value: true
|
|
35527
35527
|
});
|
|
35528
|
-
exports.getOperationRootType =
|
|
35528
|
+
exports.getOperationRootType = getOperationRootType2;
|
|
35529
35529
|
var _GraphQLError = require_GraphQLError();
|
|
35530
|
-
function
|
|
35530
|
+
function getOperationRootType2(schema, operation) {
|
|
35531
35531
|
if (operation.operation === "query") {
|
|
35532
35532
|
const queryType = schema.getQueryType();
|
|
35533
35533
|
if (!queryType) {
|
|
@@ -35571,7 +35571,7 @@ var require_getOperationRootType = __commonJS({
|
|
|
35571
35571
|
}
|
|
35572
35572
|
);
|
|
35573
35573
|
}
|
|
35574
|
-
__name(
|
|
35574
|
+
__name(getOperationRootType2, "getOperationRootType");
|
|
35575
35575
|
}
|
|
35576
35576
|
});
|
|
35577
35577
|
|
|
@@ -35582,12 +35582,12 @@ var require_introspectionFromSchema = __commonJS({
|
|
|
35582
35582
|
Object.defineProperty(exports, "__esModule", {
|
|
35583
35583
|
value: true
|
|
35584
35584
|
});
|
|
35585
|
-
exports.introspectionFromSchema =
|
|
35585
|
+
exports.introspectionFromSchema = introspectionFromSchema2;
|
|
35586
35586
|
var _invariant = require_invariant();
|
|
35587
35587
|
var _parser = require_parser();
|
|
35588
35588
|
var _execute = require_execute();
|
|
35589
35589
|
var _getIntrospectionQuery = require_getIntrospectionQuery();
|
|
35590
|
-
function
|
|
35590
|
+
function introspectionFromSchema2(schema, options) {
|
|
35591
35591
|
const optionsWithDefaults = {
|
|
35592
35592
|
specifiedByUrl: true,
|
|
35593
35593
|
directiveIsRepeatable: true,
|
|
@@ -35606,7 +35606,7 @@ var require_introspectionFromSchema = __commonJS({
|
|
|
35606
35606
|
!result.errors && result.data || (0, _invariant.invariant)(false);
|
|
35607
35607
|
return result.data;
|
|
35608
35608
|
}
|
|
35609
|
-
__name(
|
|
35609
|
+
__name(introspectionFromSchema2, "introspectionFromSchema");
|
|
35610
35610
|
}
|
|
35611
35611
|
});
|
|
35612
35612
|
|
|
@@ -35617,7 +35617,7 @@ var require_buildClientSchema = __commonJS({
|
|
|
35617
35617
|
Object.defineProperty(exports, "__esModule", {
|
|
35618
35618
|
value: true
|
|
35619
35619
|
});
|
|
35620
|
-
exports.buildClientSchema =
|
|
35620
|
+
exports.buildClientSchema = buildClientSchema2;
|
|
35621
35621
|
var _devAssert = require_devAssert();
|
|
35622
35622
|
var _inspect = require_inspect();
|
|
35623
35623
|
var _isObjectLike = require_isObjectLike();
|
|
@@ -35629,7 +35629,7 @@ var require_buildClientSchema = __commonJS({
|
|
|
35629
35629
|
var _scalars = require_scalars();
|
|
35630
35630
|
var _schema = require_schema();
|
|
35631
35631
|
var _valueFromAST = require_valueFromAST();
|
|
35632
|
-
function
|
|
35632
|
+
function buildClientSchema2(introspection, options) {
|
|
35633
35633
|
(0, _isObjectLike.isObjectLike)(introspection) && (0, _isObjectLike.isObjectLike)(introspection.__schema) || (0, _devAssert.devAssert)(
|
|
35634
35634
|
false,
|
|
35635
35635
|
`Invalid or incomplete introspection result. Ensure that you are passing "data" property of introspection response and no "errors" was returned alongside: ${(0, _inspect.inspect)(introspection)}.`
|
|
@@ -35914,7 +35914,7 @@ var require_buildClientSchema = __commonJS({
|
|
|
35914
35914
|
}
|
|
35915
35915
|
__name(buildDirective, "buildDirective");
|
|
35916
35916
|
}
|
|
35917
|
-
__name(
|
|
35917
|
+
__name(buildClientSchema2, "buildClientSchema");
|
|
35918
35918
|
}
|
|
35919
35919
|
});
|
|
35920
35920
|
|
|
@@ -35925,7 +35925,7 @@ var require_extendSchema = __commonJS({
|
|
|
35925
35925
|
Object.defineProperty(exports, "__esModule", {
|
|
35926
35926
|
value: true
|
|
35927
35927
|
});
|
|
35928
|
-
exports.extendSchema =
|
|
35928
|
+
exports.extendSchema = extendSchema3;
|
|
35929
35929
|
exports.extendSchemaImpl = extendSchemaImpl;
|
|
35930
35930
|
var _devAssert = require_devAssert();
|
|
35931
35931
|
var _inspect = require_inspect();
|
|
@@ -35942,7 +35942,7 @@ var require_extendSchema = __commonJS({
|
|
|
35942
35942
|
var _validate = require_validate2();
|
|
35943
35943
|
var _values = require_values();
|
|
35944
35944
|
var _valueFromAST = require_valueFromAST();
|
|
35945
|
-
function
|
|
35945
|
+
function extendSchema3(schema, documentAST, options) {
|
|
35946
35946
|
(0, _schema.assertSchema)(schema);
|
|
35947
35947
|
documentAST != null && documentAST.kind === _kinds.Kind.DOCUMENT || (0, _devAssert.devAssert)(false, "Must provide valid Document AST.");
|
|
35948
35948
|
if ((options === null || options === void 0 ? void 0 : options.assumeValid) !== true && (options === null || options === void 0 ? void 0 : options.assumeValidSDL) !== true) {
|
|
@@ -35952,7 +35952,7 @@ var require_extendSchema = __commonJS({
|
|
|
35952
35952
|
const extendedConfig = extendSchemaImpl(schemaConfig, documentAST, options);
|
|
35953
35953
|
return schemaConfig === extendedConfig ? schema : new _schema.GraphQLSchema(extendedConfig);
|
|
35954
35954
|
}
|
|
35955
|
-
__name(
|
|
35955
|
+
__name(extendSchema3, "extendSchema");
|
|
35956
35956
|
function extendSchemaImpl(schemaConfig, documentAST, options) {
|
|
35957
35957
|
var _schemaDef, _schemaDef$descriptio, _schemaDef2, _options$assumeValid;
|
|
35958
35958
|
const typeDefs = [];
|
|
@@ -36444,8 +36444,8 @@ var require_buildASTSchema = __commonJS({
|
|
|
36444
36444
|
Object.defineProperty(exports, "__esModule", {
|
|
36445
36445
|
value: true
|
|
36446
36446
|
});
|
|
36447
|
-
exports.buildASTSchema =
|
|
36448
|
-
exports.buildSchema =
|
|
36447
|
+
exports.buildASTSchema = buildASTSchema3;
|
|
36448
|
+
exports.buildSchema = buildSchema3;
|
|
36449
36449
|
var _devAssert = require_devAssert();
|
|
36450
36450
|
var _kinds = require_kinds();
|
|
36451
36451
|
var _parser = require_parser();
|
|
@@ -36453,7 +36453,7 @@ var require_buildASTSchema = __commonJS({
|
|
|
36453
36453
|
var _schema = require_schema();
|
|
36454
36454
|
var _validate = require_validate2();
|
|
36455
36455
|
var _extendSchema = require_extendSchema();
|
|
36456
|
-
function
|
|
36456
|
+
function buildASTSchema3(documentAST, options) {
|
|
36457
36457
|
documentAST != null && documentAST.kind === _kinds.Kind.DOCUMENT || (0, _devAssert.devAssert)(false, "Must provide valid Document AST.");
|
|
36458
36458
|
if ((options === null || options === void 0 ? void 0 : options.assumeValid) !== true && (options === null || options === void 0 ? void 0 : options.assumeValidSDL) !== true) {
|
|
36459
36459
|
(0, _validate.assertValidSDL)(documentAST);
|
|
@@ -36500,18 +36500,18 @@ var require_buildASTSchema = __commonJS({
|
|
|
36500
36500
|
];
|
|
36501
36501
|
return new _schema.GraphQLSchema({ ...config, directives });
|
|
36502
36502
|
}
|
|
36503
|
-
__name(
|
|
36504
|
-
function
|
|
36503
|
+
__name(buildASTSchema3, "buildASTSchema");
|
|
36504
|
+
function buildSchema3(source, options) {
|
|
36505
36505
|
const document2 = (0, _parser.parse)(source, {
|
|
36506
36506
|
noLocation: options === null || options === void 0 ? void 0 : options.noLocation,
|
|
36507
36507
|
allowLegacyFragmentVariables: options === null || options === void 0 ? void 0 : options.allowLegacyFragmentVariables
|
|
36508
36508
|
});
|
|
36509
|
-
return
|
|
36509
|
+
return buildASTSchema3(document2, {
|
|
36510
36510
|
assumeValidSDL: options === null || options === void 0 ? void 0 : options.assumeValidSDL,
|
|
36511
36511
|
assumeValid: options === null || options === void 0 ? void 0 : options.assumeValid
|
|
36512
36512
|
});
|
|
36513
36513
|
}
|
|
36514
|
-
__name(
|
|
36514
|
+
__name(buildSchema3, "buildSchema");
|
|
36515
36515
|
}
|
|
36516
36516
|
});
|
|
36517
36517
|
|
|
@@ -36522,7 +36522,7 @@ var require_lexicographicSortSchema = __commonJS({
|
|
|
36522
36522
|
Object.defineProperty(exports, "__esModule", {
|
|
36523
36523
|
value: true
|
|
36524
36524
|
});
|
|
36525
|
-
exports.lexicographicSortSchema =
|
|
36525
|
+
exports.lexicographicSortSchema = lexicographicSortSchema2;
|
|
36526
36526
|
var _inspect = require_inspect();
|
|
36527
36527
|
var _invariant = require_invariant();
|
|
36528
36528
|
var _keyValMap = require_keyValMap();
|
|
@@ -36531,7 +36531,7 @@ var require_lexicographicSortSchema = __commonJS({
|
|
|
36531
36531
|
var _directives = require_directives();
|
|
36532
36532
|
var _introspection = require_introspection();
|
|
36533
36533
|
var _schema = require_schema();
|
|
36534
|
-
function
|
|
36534
|
+
function lexicographicSortSchema2(schema) {
|
|
36535
36535
|
const schemaConfig = schema.toConfig();
|
|
36536
36536
|
const typeMap = (0, _keyValMap.keyValMap)(
|
|
36537
36537
|
sortByName(schemaConfig.types),
|
|
@@ -36643,7 +36643,7 @@ var require_lexicographicSortSchema = __commonJS({
|
|
|
36643
36643
|
}
|
|
36644
36644
|
__name(sortNamedType, "sortNamedType");
|
|
36645
36645
|
}
|
|
36646
|
-
__name(
|
|
36646
|
+
__name(lexicographicSortSchema2, "lexicographicSortSchema");
|
|
36647
36647
|
function sortObjMap(map, sortValueFn) {
|
|
36648
36648
|
const sortedMap = /* @__PURE__ */ Object.create(null);
|
|
36649
36649
|
for (const key of Object.keys(map).sort(_naturalCompare.naturalCompare)) {
|
|
@@ -36674,8 +36674,8 @@ var require_printSchema = __commonJS({
|
|
|
36674
36674
|
Object.defineProperty(exports, "__esModule", {
|
|
36675
36675
|
value: true
|
|
36676
36676
|
});
|
|
36677
|
-
exports.printIntrospectionSchema =
|
|
36678
|
-
exports.printSchema =
|
|
36677
|
+
exports.printIntrospectionSchema = printIntrospectionSchema2;
|
|
36678
|
+
exports.printSchema = printSchema2;
|
|
36679
36679
|
exports.printType = printType2;
|
|
36680
36680
|
var _inspect = require_inspect();
|
|
36681
36681
|
var _invariant = require_invariant();
|
|
@@ -36687,22 +36687,22 @@ var require_printSchema = __commonJS({
|
|
|
36687
36687
|
var _introspection = require_introspection();
|
|
36688
36688
|
var _scalars = require_scalars();
|
|
36689
36689
|
var _astFromValue = require_astFromValue();
|
|
36690
|
-
function
|
|
36690
|
+
function printSchema2(schema) {
|
|
36691
36691
|
return printFilteredSchema(
|
|
36692
36692
|
schema,
|
|
36693
36693
|
(n) => !(0, _directives.isSpecifiedDirective)(n),
|
|
36694
36694
|
isDefinedType
|
|
36695
36695
|
);
|
|
36696
36696
|
}
|
|
36697
|
-
__name(
|
|
36698
|
-
function
|
|
36697
|
+
__name(printSchema2, "printSchema");
|
|
36698
|
+
function printIntrospectionSchema2(schema) {
|
|
36699
36699
|
return printFilteredSchema(
|
|
36700
36700
|
schema,
|
|
36701
36701
|
_directives.isSpecifiedDirective,
|
|
36702
36702
|
_introspection.isIntrospectionType
|
|
36703
36703
|
);
|
|
36704
36704
|
}
|
|
36705
|
-
__name(
|
|
36705
|
+
__name(printIntrospectionSchema2, "printIntrospectionSchema");
|
|
36706
36706
|
function isDefinedType(type3) {
|
|
36707
36707
|
return !(0, _scalars.isSpecifiedScalarType)(type3) && !(0, _introspection.isIntrospectionType)(type3);
|
|
36708
36708
|
}
|
|
@@ -36905,9 +36905,9 @@ var require_concatAST = __commonJS({
|
|
|
36905
36905
|
Object.defineProperty(exports, "__esModule", {
|
|
36906
36906
|
value: true
|
|
36907
36907
|
});
|
|
36908
|
-
exports.concatAST =
|
|
36908
|
+
exports.concatAST = concatAST2;
|
|
36909
36909
|
var _kinds = require_kinds();
|
|
36910
|
-
function
|
|
36910
|
+
function concatAST2(documents) {
|
|
36911
36911
|
const definitions = [];
|
|
36912
36912
|
for (const doc of documents) {
|
|
36913
36913
|
definitions.push(...doc.definitions);
|
|
@@ -36917,7 +36917,7 @@ var require_concatAST = __commonJS({
|
|
|
36917
36917
|
definitions
|
|
36918
36918
|
};
|
|
36919
36919
|
}
|
|
36920
|
-
__name(
|
|
36920
|
+
__name(concatAST2, "concatAST");
|
|
36921
36921
|
}
|
|
36922
36922
|
});
|
|
36923
36923
|
|
|
@@ -36928,10 +36928,10 @@ var require_separateOperations = __commonJS({
|
|
|
36928
36928
|
Object.defineProperty(exports, "__esModule", {
|
|
36929
36929
|
value: true
|
|
36930
36930
|
});
|
|
36931
|
-
exports.separateOperations =
|
|
36931
|
+
exports.separateOperations = separateOperations2;
|
|
36932
36932
|
var _kinds = require_kinds();
|
|
36933
36933
|
var _visitor = require_visitor();
|
|
36934
|
-
function
|
|
36934
|
+
function separateOperations2(documentAST) {
|
|
36935
36935
|
const operations = [];
|
|
36936
36936
|
const depGraph = /* @__PURE__ */ Object.create(null);
|
|
36937
36937
|
for (const definitionNode of documentAST.definitions) {
|
|
@@ -36963,7 +36963,7 @@ var require_separateOperations = __commonJS({
|
|
|
36963
36963
|
}
|
|
36964
36964
|
return separatedDocumentASTs;
|
|
36965
36965
|
}
|
|
36966
|
-
__name(
|
|
36966
|
+
__name(separateOperations2, "separateOperations");
|
|
36967
36967
|
function collectTransitiveDependencies(collected, depGraph, fromName) {
|
|
36968
36968
|
if (!collected.has(fromName)) {
|
|
36969
36969
|
collected.add(fromName);
|
|
@@ -36996,12 +36996,12 @@ var require_stripIgnoredCharacters = __commonJS({
|
|
|
36996
36996
|
Object.defineProperty(exports, "__esModule", {
|
|
36997
36997
|
value: true
|
|
36998
36998
|
});
|
|
36999
|
-
exports.stripIgnoredCharacters =
|
|
36999
|
+
exports.stripIgnoredCharacters = stripIgnoredCharacters2;
|
|
37000
37000
|
var _blockString = require_blockString();
|
|
37001
37001
|
var _lexer = require_lexer();
|
|
37002
37002
|
var _source = require_source();
|
|
37003
37003
|
var _tokenKind = require_tokenKind();
|
|
37004
|
-
function
|
|
37004
|
+
function stripIgnoredCharacters2(source) {
|
|
37005
37005
|
const sourceObj = (0, _source.isSource)(source) ? source : new _source.Source(source);
|
|
37006
37006
|
const body = sourceObj.body;
|
|
37007
37007
|
const lexer = new _lexer.Lexer(sourceObj);
|
|
@@ -37030,7 +37030,7 @@ var require_stripIgnoredCharacters = __commonJS({
|
|
|
37030
37030
|
}
|
|
37031
37031
|
return strippedBody;
|
|
37032
37032
|
}
|
|
37033
|
-
__name(
|
|
37033
|
+
__name(stripIgnoredCharacters2, "stripIgnoredCharacters");
|
|
37034
37034
|
}
|
|
37035
37035
|
});
|
|
37036
37036
|
|
|
@@ -37041,20 +37041,20 @@ var require_assertValidName = __commonJS({
|
|
|
37041
37041
|
Object.defineProperty(exports, "__esModule", {
|
|
37042
37042
|
value: true
|
|
37043
37043
|
});
|
|
37044
|
-
exports.assertValidName =
|
|
37045
|
-
exports.isValidNameError =
|
|
37044
|
+
exports.assertValidName = assertValidName2;
|
|
37045
|
+
exports.isValidNameError = isValidNameError2;
|
|
37046
37046
|
var _devAssert = require_devAssert();
|
|
37047
37047
|
var _GraphQLError = require_GraphQLError();
|
|
37048
37048
|
var _assertName = require_assertName();
|
|
37049
|
-
function
|
|
37050
|
-
const error =
|
|
37049
|
+
function assertValidName2(name) {
|
|
37050
|
+
const error = isValidNameError2(name);
|
|
37051
37051
|
if (error) {
|
|
37052
37052
|
throw error;
|
|
37053
37053
|
}
|
|
37054
37054
|
return name;
|
|
37055
37055
|
}
|
|
37056
|
-
__name(
|
|
37057
|
-
function
|
|
37056
|
+
__name(assertValidName2, "assertValidName");
|
|
37057
|
+
function isValidNameError2(name) {
|
|
37058
37058
|
typeof name === "string" || (0, _devAssert.devAssert)(false, "Expected name to be a string.");
|
|
37059
37059
|
if (name.startsWith("__")) {
|
|
37060
37060
|
return new _GraphQLError.GraphQLError(
|
|
@@ -37067,7 +37067,7 @@ var require_assertValidName = __commonJS({
|
|
|
37067
37067
|
return error;
|
|
37068
37068
|
}
|
|
37069
37069
|
}
|
|
37070
|
-
__name(
|
|
37070
|
+
__name(isValidNameError2, "isValidNameError");
|
|
37071
37071
|
}
|
|
37072
37072
|
});
|
|
37073
37073
|
|
|
@@ -37079,8 +37079,8 @@ var require_findBreakingChanges = __commonJS({
|
|
|
37079
37079
|
value: true
|
|
37080
37080
|
});
|
|
37081
37081
|
exports.DangerousChangeType = exports.BreakingChangeType = void 0;
|
|
37082
|
-
exports.findBreakingChanges =
|
|
37083
|
-
exports.findDangerousChanges =
|
|
37082
|
+
exports.findBreakingChanges = findBreakingChanges2;
|
|
37083
|
+
exports.findDangerousChanges = findDangerousChanges2;
|
|
37084
37084
|
var _inspect = require_inspect();
|
|
37085
37085
|
var _invariant = require_invariant();
|
|
37086
37086
|
var _keyMap = require_keyMap();
|
|
@@ -37089,52 +37089,52 @@ var require_findBreakingChanges = __commonJS({
|
|
|
37089
37089
|
var _scalars = require_scalars();
|
|
37090
37090
|
var _astFromValue = require_astFromValue();
|
|
37091
37091
|
var _sortValueNode = require_sortValueNode();
|
|
37092
|
-
var
|
|
37093
|
-
exports.BreakingChangeType =
|
|
37094
|
-
(function(
|
|
37095
|
-
|
|
37096
|
-
|
|
37097
|
-
|
|
37098
|
-
|
|
37099
|
-
|
|
37100
|
-
|
|
37101
|
-
|
|
37102
|
-
|
|
37103
|
-
|
|
37104
|
-
|
|
37105
|
-
|
|
37106
|
-
|
|
37107
|
-
|
|
37108
|
-
|
|
37109
|
-
|
|
37110
|
-
|
|
37092
|
+
var BreakingChangeType2;
|
|
37093
|
+
exports.BreakingChangeType = BreakingChangeType2;
|
|
37094
|
+
(function(BreakingChangeType3) {
|
|
37095
|
+
BreakingChangeType3["TYPE_REMOVED"] = "TYPE_REMOVED";
|
|
37096
|
+
BreakingChangeType3["TYPE_CHANGED_KIND"] = "TYPE_CHANGED_KIND";
|
|
37097
|
+
BreakingChangeType3["TYPE_REMOVED_FROM_UNION"] = "TYPE_REMOVED_FROM_UNION";
|
|
37098
|
+
BreakingChangeType3["VALUE_REMOVED_FROM_ENUM"] = "VALUE_REMOVED_FROM_ENUM";
|
|
37099
|
+
BreakingChangeType3["REQUIRED_INPUT_FIELD_ADDED"] = "REQUIRED_INPUT_FIELD_ADDED";
|
|
37100
|
+
BreakingChangeType3["IMPLEMENTED_INTERFACE_REMOVED"] = "IMPLEMENTED_INTERFACE_REMOVED";
|
|
37101
|
+
BreakingChangeType3["FIELD_REMOVED"] = "FIELD_REMOVED";
|
|
37102
|
+
BreakingChangeType3["FIELD_CHANGED_KIND"] = "FIELD_CHANGED_KIND";
|
|
37103
|
+
BreakingChangeType3["REQUIRED_ARG_ADDED"] = "REQUIRED_ARG_ADDED";
|
|
37104
|
+
BreakingChangeType3["ARG_REMOVED"] = "ARG_REMOVED";
|
|
37105
|
+
BreakingChangeType3["ARG_CHANGED_KIND"] = "ARG_CHANGED_KIND";
|
|
37106
|
+
BreakingChangeType3["DIRECTIVE_REMOVED"] = "DIRECTIVE_REMOVED";
|
|
37107
|
+
BreakingChangeType3["DIRECTIVE_ARG_REMOVED"] = "DIRECTIVE_ARG_REMOVED";
|
|
37108
|
+
BreakingChangeType3["REQUIRED_DIRECTIVE_ARG_ADDED"] = "REQUIRED_DIRECTIVE_ARG_ADDED";
|
|
37109
|
+
BreakingChangeType3["DIRECTIVE_REPEATABLE_REMOVED"] = "DIRECTIVE_REPEATABLE_REMOVED";
|
|
37110
|
+
BreakingChangeType3["DIRECTIVE_LOCATION_REMOVED"] = "DIRECTIVE_LOCATION_REMOVED";
|
|
37111
37111
|
})(
|
|
37112
|
-
|
|
37112
|
+
BreakingChangeType2 || (exports.BreakingChangeType = BreakingChangeType2 = {})
|
|
37113
37113
|
);
|
|
37114
|
-
var
|
|
37115
|
-
exports.DangerousChangeType =
|
|
37116
|
-
(function(
|
|
37117
|
-
|
|
37118
|
-
|
|
37119
|
-
|
|
37120
|
-
|
|
37121
|
-
|
|
37122
|
-
|
|
37114
|
+
var DangerousChangeType2;
|
|
37115
|
+
exports.DangerousChangeType = DangerousChangeType2;
|
|
37116
|
+
(function(DangerousChangeType3) {
|
|
37117
|
+
DangerousChangeType3["VALUE_ADDED_TO_ENUM"] = "VALUE_ADDED_TO_ENUM";
|
|
37118
|
+
DangerousChangeType3["TYPE_ADDED_TO_UNION"] = "TYPE_ADDED_TO_UNION";
|
|
37119
|
+
DangerousChangeType3["OPTIONAL_INPUT_FIELD_ADDED"] = "OPTIONAL_INPUT_FIELD_ADDED";
|
|
37120
|
+
DangerousChangeType3["OPTIONAL_ARG_ADDED"] = "OPTIONAL_ARG_ADDED";
|
|
37121
|
+
DangerousChangeType3["IMPLEMENTED_INTERFACE_ADDED"] = "IMPLEMENTED_INTERFACE_ADDED";
|
|
37122
|
+
DangerousChangeType3["ARG_DEFAULT_VALUE_CHANGE"] = "ARG_DEFAULT_VALUE_CHANGE";
|
|
37123
37123
|
})(
|
|
37124
|
-
|
|
37124
|
+
DangerousChangeType2 || (exports.DangerousChangeType = DangerousChangeType2 = {})
|
|
37125
37125
|
);
|
|
37126
|
-
function
|
|
37126
|
+
function findBreakingChanges2(oldSchema, newSchema) {
|
|
37127
37127
|
return findSchemaChanges(oldSchema, newSchema).filter(
|
|
37128
|
-
(change) => change.type in
|
|
37128
|
+
(change) => change.type in BreakingChangeType2
|
|
37129
37129
|
);
|
|
37130
37130
|
}
|
|
37131
|
-
__name(
|
|
37132
|
-
function
|
|
37131
|
+
__name(findBreakingChanges2, "findBreakingChanges");
|
|
37132
|
+
function findDangerousChanges2(oldSchema, newSchema) {
|
|
37133
37133
|
return findSchemaChanges(oldSchema, newSchema).filter(
|
|
37134
|
-
(change) => change.type in
|
|
37134
|
+
(change) => change.type in DangerousChangeType2
|
|
37135
37135
|
);
|
|
37136
37136
|
}
|
|
37137
|
-
__name(
|
|
37137
|
+
__name(findDangerousChanges2, "findDangerousChanges");
|
|
37138
37138
|
function findSchemaChanges(oldSchema, newSchema) {
|
|
37139
37139
|
return [
|
|
37140
37140
|
...findTypeChanges(oldSchema, newSchema),
|
|
@@ -37150,7 +37150,7 @@ var require_findBreakingChanges = __commonJS({
|
|
|
37150
37150
|
);
|
|
37151
37151
|
for (const oldDirective of directivesDiff.removed) {
|
|
37152
37152
|
schemaChanges.push({
|
|
37153
|
-
type:
|
|
37153
|
+
type: BreakingChangeType2.DIRECTIVE_REMOVED,
|
|
37154
37154
|
description: `${oldDirective.name} was removed.`
|
|
37155
37155
|
});
|
|
37156
37156
|
}
|
|
@@ -37159,27 +37159,27 @@ var require_findBreakingChanges = __commonJS({
|
|
|
37159
37159
|
for (const newArg of argsDiff.added) {
|
|
37160
37160
|
if ((0, _definition.isRequiredArgument)(newArg)) {
|
|
37161
37161
|
schemaChanges.push({
|
|
37162
|
-
type:
|
|
37162
|
+
type: BreakingChangeType2.REQUIRED_DIRECTIVE_ARG_ADDED,
|
|
37163
37163
|
description: `A required arg ${newArg.name} on directive ${oldDirective.name} was added.`
|
|
37164
37164
|
});
|
|
37165
37165
|
}
|
|
37166
37166
|
}
|
|
37167
37167
|
for (const oldArg of argsDiff.removed) {
|
|
37168
37168
|
schemaChanges.push({
|
|
37169
|
-
type:
|
|
37169
|
+
type: BreakingChangeType2.DIRECTIVE_ARG_REMOVED,
|
|
37170
37170
|
description: `${oldArg.name} was removed from ${oldDirective.name}.`
|
|
37171
37171
|
});
|
|
37172
37172
|
}
|
|
37173
37173
|
if (oldDirective.isRepeatable && !newDirective.isRepeatable) {
|
|
37174
37174
|
schemaChanges.push({
|
|
37175
|
-
type:
|
|
37175
|
+
type: BreakingChangeType2.DIRECTIVE_REPEATABLE_REMOVED,
|
|
37176
37176
|
description: `Repeatable flag was removed from ${oldDirective.name}.`
|
|
37177
37177
|
});
|
|
37178
37178
|
}
|
|
37179
37179
|
for (const location of oldDirective.locations) {
|
|
37180
37180
|
if (!newDirective.locations.includes(location)) {
|
|
37181
37181
|
schemaChanges.push({
|
|
37182
|
-
type:
|
|
37182
|
+
type: BreakingChangeType2.DIRECTIVE_LOCATION_REMOVED,
|
|
37183
37183
|
description: `${location} was removed from ${oldDirective.name}.`
|
|
37184
37184
|
});
|
|
37185
37185
|
}
|
|
@@ -37196,7 +37196,7 @@ var require_findBreakingChanges = __commonJS({
|
|
|
37196
37196
|
);
|
|
37197
37197
|
for (const oldType of typesDiff.removed) {
|
|
37198
37198
|
schemaChanges.push({
|
|
37199
|
-
type:
|
|
37199
|
+
type: BreakingChangeType2.TYPE_REMOVED,
|
|
37200
37200
|
description: (0, _scalars.isSpecifiedScalarType)(oldType) ? `Standard scalar ${oldType.name} was removed because it is not referenced anymore.` : `${oldType.name} was removed.`
|
|
37201
37201
|
});
|
|
37202
37202
|
}
|
|
@@ -37219,7 +37219,7 @@ var require_findBreakingChanges = __commonJS({
|
|
|
37219
37219
|
);
|
|
37220
37220
|
} else if (oldType.constructor !== newType.constructor) {
|
|
37221
37221
|
schemaChanges.push({
|
|
37222
|
-
type:
|
|
37222
|
+
type: BreakingChangeType2.TYPE_CHANGED_KIND,
|
|
37223
37223
|
description: `${oldType.name} changed from ${typeKindName(oldType)} to ${typeKindName(newType)}.`
|
|
37224
37224
|
});
|
|
37225
37225
|
}
|
|
@@ -37236,19 +37236,19 @@ var require_findBreakingChanges = __commonJS({
|
|
|
37236
37236
|
for (const newField of fieldsDiff.added) {
|
|
37237
37237
|
if ((0, _definition.isRequiredInputField)(newField)) {
|
|
37238
37238
|
schemaChanges.push({
|
|
37239
|
-
type:
|
|
37239
|
+
type: BreakingChangeType2.REQUIRED_INPUT_FIELD_ADDED,
|
|
37240
37240
|
description: `A required field ${newField.name} on input type ${oldType.name} was added.`
|
|
37241
37241
|
});
|
|
37242
37242
|
} else {
|
|
37243
37243
|
schemaChanges.push({
|
|
37244
|
-
type:
|
|
37244
|
+
type: DangerousChangeType2.OPTIONAL_INPUT_FIELD_ADDED,
|
|
37245
37245
|
description: `An optional field ${newField.name} on input type ${oldType.name} was added.`
|
|
37246
37246
|
});
|
|
37247
37247
|
}
|
|
37248
37248
|
}
|
|
37249
37249
|
for (const oldField of fieldsDiff.removed) {
|
|
37250
37250
|
schemaChanges.push({
|
|
37251
|
-
type:
|
|
37251
|
+
type: BreakingChangeType2.FIELD_REMOVED,
|
|
37252
37252
|
description: `${oldType.name}.${oldField.name} was removed.`
|
|
37253
37253
|
});
|
|
37254
37254
|
}
|
|
@@ -37259,7 +37259,7 @@ var require_findBreakingChanges = __commonJS({
|
|
|
37259
37259
|
);
|
|
37260
37260
|
if (!isSafe) {
|
|
37261
37261
|
schemaChanges.push({
|
|
37262
|
-
type:
|
|
37262
|
+
type: BreakingChangeType2.FIELD_CHANGED_KIND,
|
|
37263
37263
|
description: `${oldType.name}.${oldField.name} changed type from ${String(oldField.type)} to ${String(newField.type)}.`
|
|
37264
37264
|
});
|
|
37265
37265
|
}
|
|
@@ -37272,13 +37272,13 @@ var require_findBreakingChanges = __commonJS({
|
|
|
37272
37272
|
const possibleTypesDiff = diff(oldType.getTypes(), newType.getTypes());
|
|
37273
37273
|
for (const newPossibleType of possibleTypesDiff.added) {
|
|
37274
37274
|
schemaChanges.push({
|
|
37275
|
-
type:
|
|
37275
|
+
type: DangerousChangeType2.TYPE_ADDED_TO_UNION,
|
|
37276
37276
|
description: `${newPossibleType.name} was added to union type ${oldType.name}.`
|
|
37277
37277
|
});
|
|
37278
37278
|
}
|
|
37279
37279
|
for (const oldPossibleType of possibleTypesDiff.removed) {
|
|
37280
37280
|
schemaChanges.push({
|
|
37281
|
-
type:
|
|
37281
|
+
type: BreakingChangeType2.TYPE_REMOVED_FROM_UNION,
|
|
37282
37282
|
description: `${oldPossibleType.name} was removed from union type ${oldType.name}.`
|
|
37283
37283
|
});
|
|
37284
37284
|
}
|
|
@@ -37290,13 +37290,13 @@ var require_findBreakingChanges = __commonJS({
|
|
|
37290
37290
|
const valuesDiff = diff(oldType.getValues(), newType.getValues());
|
|
37291
37291
|
for (const newValue of valuesDiff.added) {
|
|
37292
37292
|
schemaChanges.push({
|
|
37293
|
-
type:
|
|
37293
|
+
type: DangerousChangeType2.VALUE_ADDED_TO_ENUM,
|
|
37294
37294
|
description: `${newValue.name} was added to enum type ${oldType.name}.`
|
|
37295
37295
|
});
|
|
37296
37296
|
}
|
|
37297
37297
|
for (const oldValue of valuesDiff.removed) {
|
|
37298
37298
|
schemaChanges.push({
|
|
37299
|
-
type:
|
|
37299
|
+
type: BreakingChangeType2.VALUE_REMOVED_FROM_ENUM,
|
|
37300
37300
|
description: `${oldValue.name} was removed from enum type ${oldType.name}.`
|
|
37301
37301
|
});
|
|
37302
37302
|
}
|
|
@@ -37308,13 +37308,13 @@ var require_findBreakingChanges = __commonJS({
|
|
|
37308
37308
|
const interfacesDiff = diff(oldType.getInterfaces(), newType.getInterfaces());
|
|
37309
37309
|
for (const newInterface of interfacesDiff.added) {
|
|
37310
37310
|
schemaChanges.push({
|
|
37311
|
-
type:
|
|
37311
|
+
type: DangerousChangeType2.IMPLEMENTED_INTERFACE_ADDED,
|
|
37312
37312
|
description: `${newInterface.name} added to interfaces implemented by ${oldType.name}.`
|
|
37313
37313
|
});
|
|
37314
37314
|
}
|
|
37315
37315
|
for (const oldInterface of interfacesDiff.removed) {
|
|
37316
37316
|
schemaChanges.push({
|
|
37317
|
-
type:
|
|
37317
|
+
type: BreakingChangeType2.IMPLEMENTED_INTERFACE_REMOVED,
|
|
37318
37318
|
description: `${oldType.name} no longer implements interface ${oldInterface.name}.`
|
|
37319
37319
|
});
|
|
37320
37320
|
}
|
|
@@ -37329,7 +37329,7 @@ var require_findBreakingChanges = __commonJS({
|
|
|
37329
37329
|
);
|
|
37330
37330
|
for (const oldField of fieldsDiff.removed) {
|
|
37331
37331
|
schemaChanges.push({
|
|
37332
|
-
type:
|
|
37332
|
+
type: BreakingChangeType2.FIELD_REMOVED,
|
|
37333
37333
|
description: `${oldType.name}.${oldField.name} was removed.`
|
|
37334
37334
|
});
|
|
37335
37335
|
}
|
|
@@ -37341,7 +37341,7 @@ var require_findBreakingChanges = __commonJS({
|
|
|
37341
37341
|
);
|
|
37342
37342
|
if (!isSafe) {
|
|
37343
37343
|
schemaChanges.push({
|
|
37344
|
-
type:
|
|
37344
|
+
type: BreakingChangeType2.FIELD_CHANGED_KIND,
|
|
37345
37345
|
description: `${oldType.name}.${oldField.name} changed type from ${String(oldField.type)} to ${String(newField.type)}.`
|
|
37346
37346
|
});
|
|
37347
37347
|
}
|
|
@@ -37354,7 +37354,7 @@ var require_findBreakingChanges = __commonJS({
|
|
|
37354
37354
|
const argsDiff = diff(oldField.args, newField.args);
|
|
37355
37355
|
for (const oldArg of argsDiff.removed) {
|
|
37356
37356
|
schemaChanges.push({
|
|
37357
|
-
type:
|
|
37357
|
+
type: BreakingChangeType2.ARG_REMOVED,
|
|
37358
37358
|
description: `${oldType.name}.${oldField.name} arg ${oldArg.name} was removed.`
|
|
37359
37359
|
});
|
|
37360
37360
|
}
|
|
@@ -37365,13 +37365,13 @@ var require_findBreakingChanges = __commonJS({
|
|
|
37365
37365
|
);
|
|
37366
37366
|
if (!isSafe) {
|
|
37367
37367
|
schemaChanges.push({
|
|
37368
|
-
type:
|
|
37368
|
+
type: BreakingChangeType2.ARG_CHANGED_KIND,
|
|
37369
37369
|
description: `${oldType.name}.${oldField.name} arg ${oldArg.name} has changed type from ${String(oldArg.type)} to ${String(newArg.type)}.`
|
|
37370
37370
|
});
|
|
37371
37371
|
} else if (oldArg.defaultValue !== void 0) {
|
|
37372
37372
|
if (newArg.defaultValue === void 0) {
|
|
37373
37373
|
schemaChanges.push({
|
|
37374
|
-
type:
|
|
37374
|
+
type: DangerousChangeType2.ARG_DEFAULT_VALUE_CHANGE,
|
|
37375
37375
|
description: `${oldType.name}.${oldField.name} arg ${oldArg.name} defaultValue was removed.`
|
|
37376
37376
|
});
|
|
37377
37377
|
} else {
|
|
@@ -37379,7 +37379,7 @@ var require_findBreakingChanges = __commonJS({
|
|
|
37379
37379
|
const newValueStr = stringifyValue(newArg.defaultValue, newArg.type);
|
|
37380
37380
|
if (oldValueStr !== newValueStr) {
|
|
37381
37381
|
schemaChanges.push({
|
|
37382
|
-
type:
|
|
37382
|
+
type: DangerousChangeType2.ARG_DEFAULT_VALUE_CHANGE,
|
|
37383
37383
|
description: `${oldType.name}.${oldField.name} arg ${oldArg.name} has changed defaultValue from ${oldValueStr} to ${newValueStr}.`
|
|
37384
37384
|
});
|
|
37385
37385
|
}
|
|
@@ -37389,12 +37389,12 @@ var require_findBreakingChanges = __commonJS({
|
|
|
37389
37389
|
for (const newArg of argsDiff.added) {
|
|
37390
37390
|
if ((0, _definition.isRequiredArgument)(newArg)) {
|
|
37391
37391
|
schemaChanges.push({
|
|
37392
|
-
type:
|
|
37392
|
+
type: BreakingChangeType2.REQUIRED_ARG_ADDED,
|
|
37393
37393
|
description: `A required arg ${newArg.name} on ${oldType.name}.${oldField.name} was added.`
|
|
37394
37394
|
});
|
|
37395
37395
|
} else {
|
|
37396
37396
|
schemaChanges.push({
|
|
37397
|
-
type:
|
|
37397
|
+
type: DangerousChangeType2.OPTIONAL_ARG_ADDED,
|
|
37398
37398
|
description: `An optional arg ${newArg.name} on ${oldType.name}.${oldField.name} was added.`
|
|
37399
37399
|
});
|
|
37400
37400
|
}
|
|
@@ -39017,8 +39017,8 @@ function getBuiltinVersions() {
|
|
|
39017
39017
|
}
|
|
39018
39018
|
__name(getBuiltinVersions, "getBuiltinVersions");
|
|
39019
39019
|
__name2(getBuiltinVersions, "getBuiltinVersions");
|
|
39020
|
-
function parseVersion(
|
|
39021
|
-
const [major, minor, patch] =
|
|
39020
|
+
function parseVersion(version2) {
|
|
39021
|
+
const [major, minor, patch] = version2.split(".").map((v) => parseInt(v, 10));
|
|
39022
39022
|
return { major, minor, patch };
|
|
39023
39023
|
}
|
|
39024
39024
|
__name(parseVersion, "parseVersion");
|
|
@@ -44130,6 +44130,14 @@ var parseBatchRequestArgs = /* @__PURE__ */ __name((documentsOrOptions, requestH
|
|
|
44130
44130
|
};
|
|
44131
44131
|
}, "parseBatchRequestArgs");
|
|
44132
44132
|
|
|
44133
|
+
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/version.mjs
|
|
44134
|
+
var versionInfo = Object.freeze({
|
|
44135
|
+
major: 16,
|
|
44136
|
+
minor: 10,
|
|
44137
|
+
patch: 0,
|
|
44138
|
+
preReleaseTag: null
|
|
44139
|
+
});
|
|
44140
|
+
|
|
44133
44141
|
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/jsutils/devAssert.mjs
|
|
44134
44142
|
function devAssert(condition, message) {
|
|
44135
44143
|
const booleanCondition = Boolean(condition);
|
|
@@ -47596,6 +47604,14 @@ function isNonNullType(type3) {
|
|
|
47596
47604
|
return instanceOf(type3, GraphQLNonNull);
|
|
47597
47605
|
}
|
|
47598
47606
|
__name(isNonNullType, "isNonNullType");
|
|
47607
|
+
function isLeafType(type3) {
|
|
47608
|
+
return isScalarType(type3) || isEnumType(type3);
|
|
47609
|
+
}
|
|
47610
|
+
__name(isLeafType, "isLeafType");
|
|
47611
|
+
function isAbstractType(type3) {
|
|
47612
|
+
return isInterfaceType(type3) || isUnionType(type3);
|
|
47613
|
+
}
|
|
47614
|
+
__name(isAbstractType, "isAbstractType");
|
|
47599
47615
|
var GraphQLList = class {
|
|
47600
47616
|
static {
|
|
47601
47617
|
__name(this, "GraphQLList");
|
|
@@ -47635,10 +47651,24 @@ var GraphQLNonNull = class {
|
|
|
47635
47651
|
return this.toString();
|
|
47636
47652
|
}
|
|
47637
47653
|
};
|
|
47654
|
+
function isWrappingType(type3) {
|
|
47655
|
+
return isListType(type3) || isNonNullType(type3);
|
|
47656
|
+
}
|
|
47657
|
+
__name(isWrappingType, "isWrappingType");
|
|
47638
47658
|
function isNullableType(type3) {
|
|
47639
47659
|
return isType(type3) && !isNonNullType(type3);
|
|
47640
47660
|
}
|
|
47641
47661
|
__name(isNullableType, "isNullableType");
|
|
47662
|
+
function getNamedType(type3) {
|
|
47663
|
+
if (type3) {
|
|
47664
|
+
let unwrappedType = type3;
|
|
47665
|
+
while (isWrappingType(unwrappedType)) {
|
|
47666
|
+
unwrappedType = unwrappedType.ofType;
|
|
47667
|
+
}
|
|
47668
|
+
return unwrappedType;
|
|
47669
|
+
}
|
|
47670
|
+
}
|
|
47671
|
+
__name(getNamedType, "getNamedType");
|
|
47642
47672
|
function resolveReadonlyArrayThunk(thunk) {
|
|
47643
47673
|
return typeof thunk === "function" ? thunk() : thunk;
|
|
47644
47674
|
}
|
|
@@ -48162,6 +48192,1266 @@ function defineInputFieldMap(config) {
|
|
|
48162
48192
|
}
|
|
48163
48193
|
__name(defineInputFieldMap, "defineInputFieldMap");
|
|
48164
48194
|
|
|
48195
|
+
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/type/scalars.mjs
|
|
48196
|
+
var GRAPHQL_MAX_INT = 2147483647;
|
|
48197
|
+
var GRAPHQL_MIN_INT = -2147483648;
|
|
48198
|
+
var GraphQLInt = new GraphQLScalarType({
|
|
48199
|
+
name: "Int",
|
|
48200
|
+
description: "The `Int` scalar type represents non-fractional signed whole numeric values. Int can represent values between -(2^31) and 2^31 - 1.",
|
|
48201
|
+
serialize(outputValue) {
|
|
48202
|
+
const coercedValue = serializeObject(outputValue);
|
|
48203
|
+
if (typeof coercedValue === "boolean") {
|
|
48204
|
+
return coercedValue ? 1 : 0;
|
|
48205
|
+
}
|
|
48206
|
+
let num = coercedValue;
|
|
48207
|
+
if (typeof coercedValue === "string" && coercedValue !== "") {
|
|
48208
|
+
num = Number(coercedValue);
|
|
48209
|
+
}
|
|
48210
|
+
if (typeof num !== "number" || !Number.isInteger(num)) {
|
|
48211
|
+
throw new GraphQLError(
|
|
48212
|
+
`Int cannot represent non-integer value: ${inspect(coercedValue)}`
|
|
48213
|
+
);
|
|
48214
|
+
}
|
|
48215
|
+
if (num > GRAPHQL_MAX_INT || num < GRAPHQL_MIN_INT) {
|
|
48216
|
+
throw new GraphQLError(
|
|
48217
|
+
"Int cannot represent non 32-bit signed integer value: " + inspect(coercedValue)
|
|
48218
|
+
);
|
|
48219
|
+
}
|
|
48220
|
+
return num;
|
|
48221
|
+
},
|
|
48222
|
+
parseValue(inputValue) {
|
|
48223
|
+
if (typeof inputValue !== "number" || !Number.isInteger(inputValue)) {
|
|
48224
|
+
throw new GraphQLError(
|
|
48225
|
+
`Int cannot represent non-integer value: ${inspect(inputValue)}`
|
|
48226
|
+
);
|
|
48227
|
+
}
|
|
48228
|
+
if (inputValue > GRAPHQL_MAX_INT || inputValue < GRAPHQL_MIN_INT) {
|
|
48229
|
+
throw new GraphQLError(
|
|
48230
|
+
`Int cannot represent non 32-bit signed integer value: ${inputValue}`
|
|
48231
|
+
);
|
|
48232
|
+
}
|
|
48233
|
+
return inputValue;
|
|
48234
|
+
},
|
|
48235
|
+
parseLiteral(valueNode) {
|
|
48236
|
+
if (valueNode.kind !== Kind.INT) {
|
|
48237
|
+
throw new GraphQLError(
|
|
48238
|
+
`Int cannot represent non-integer value: ${print(valueNode)}`,
|
|
48239
|
+
{
|
|
48240
|
+
nodes: valueNode
|
|
48241
|
+
}
|
|
48242
|
+
);
|
|
48243
|
+
}
|
|
48244
|
+
const num = parseInt(valueNode.value, 10);
|
|
48245
|
+
if (num > GRAPHQL_MAX_INT || num < GRAPHQL_MIN_INT) {
|
|
48246
|
+
throw new GraphQLError(
|
|
48247
|
+
`Int cannot represent non 32-bit signed integer value: ${valueNode.value}`,
|
|
48248
|
+
{
|
|
48249
|
+
nodes: valueNode
|
|
48250
|
+
}
|
|
48251
|
+
);
|
|
48252
|
+
}
|
|
48253
|
+
return num;
|
|
48254
|
+
}
|
|
48255
|
+
});
|
|
48256
|
+
var GraphQLFloat = new GraphQLScalarType({
|
|
48257
|
+
name: "Float",
|
|
48258
|
+
description: "The `Float` scalar type represents signed double-precision fractional values as specified by [IEEE 754](https://en.wikipedia.org/wiki/IEEE_floating_point).",
|
|
48259
|
+
serialize(outputValue) {
|
|
48260
|
+
const coercedValue = serializeObject(outputValue);
|
|
48261
|
+
if (typeof coercedValue === "boolean") {
|
|
48262
|
+
return coercedValue ? 1 : 0;
|
|
48263
|
+
}
|
|
48264
|
+
let num = coercedValue;
|
|
48265
|
+
if (typeof coercedValue === "string" && coercedValue !== "") {
|
|
48266
|
+
num = Number(coercedValue);
|
|
48267
|
+
}
|
|
48268
|
+
if (typeof num !== "number" || !Number.isFinite(num)) {
|
|
48269
|
+
throw new GraphQLError(
|
|
48270
|
+
`Float cannot represent non numeric value: ${inspect(coercedValue)}`
|
|
48271
|
+
);
|
|
48272
|
+
}
|
|
48273
|
+
return num;
|
|
48274
|
+
},
|
|
48275
|
+
parseValue(inputValue) {
|
|
48276
|
+
if (typeof inputValue !== "number" || !Number.isFinite(inputValue)) {
|
|
48277
|
+
throw new GraphQLError(
|
|
48278
|
+
`Float cannot represent non numeric value: ${inspect(inputValue)}`
|
|
48279
|
+
);
|
|
48280
|
+
}
|
|
48281
|
+
return inputValue;
|
|
48282
|
+
},
|
|
48283
|
+
parseLiteral(valueNode) {
|
|
48284
|
+
if (valueNode.kind !== Kind.FLOAT && valueNode.kind !== Kind.INT) {
|
|
48285
|
+
throw new GraphQLError(
|
|
48286
|
+
`Float cannot represent non numeric value: ${print(valueNode)}`,
|
|
48287
|
+
valueNode
|
|
48288
|
+
);
|
|
48289
|
+
}
|
|
48290
|
+
return parseFloat(valueNode.value);
|
|
48291
|
+
}
|
|
48292
|
+
});
|
|
48293
|
+
var GraphQLString = new GraphQLScalarType({
|
|
48294
|
+
name: "String",
|
|
48295
|
+
description: "The `String` scalar type represents textual data, represented as UTF-8 character sequences. The String type is most often used by GraphQL to represent free-form human-readable text.",
|
|
48296
|
+
serialize(outputValue) {
|
|
48297
|
+
const coercedValue = serializeObject(outputValue);
|
|
48298
|
+
if (typeof coercedValue === "string") {
|
|
48299
|
+
return coercedValue;
|
|
48300
|
+
}
|
|
48301
|
+
if (typeof coercedValue === "boolean") {
|
|
48302
|
+
return coercedValue ? "true" : "false";
|
|
48303
|
+
}
|
|
48304
|
+
if (typeof coercedValue === "number" && Number.isFinite(coercedValue)) {
|
|
48305
|
+
return coercedValue.toString();
|
|
48306
|
+
}
|
|
48307
|
+
throw new GraphQLError(
|
|
48308
|
+
`String cannot represent value: ${inspect(outputValue)}`
|
|
48309
|
+
);
|
|
48310
|
+
},
|
|
48311
|
+
parseValue(inputValue) {
|
|
48312
|
+
if (typeof inputValue !== "string") {
|
|
48313
|
+
throw new GraphQLError(
|
|
48314
|
+
`String cannot represent a non string value: ${inspect(inputValue)}`
|
|
48315
|
+
);
|
|
48316
|
+
}
|
|
48317
|
+
return inputValue;
|
|
48318
|
+
},
|
|
48319
|
+
parseLiteral(valueNode) {
|
|
48320
|
+
if (valueNode.kind !== Kind.STRING) {
|
|
48321
|
+
throw new GraphQLError(
|
|
48322
|
+
`String cannot represent a non string value: ${print(valueNode)}`,
|
|
48323
|
+
{
|
|
48324
|
+
nodes: valueNode
|
|
48325
|
+
}
|
|
48326
|
+
);
|
|
48327
|
+
}
|
|
48328
|
+
return valueNode.value;
|
|
48329
|
+
}
|
|
48330
|
+
});
|
|
48331
|
+
var GraphQLBoolean = new GraphQLScalarType({
|
|
48332
|
+
name: "Boolean",
|
|
48333
|
+
description: "The `Boolean` scalar type represents `true` or `false`.",
|
|
48334
|
+
serialize(outputValue) {
|
|
48335
|
+
const coercedValue = serializeObject(outputValue);
|
|
48336
|
+
if (typeof coercedValue === "boolean") {
|
|
48337
|
+
return coercedValue;
|
|
48338
|
+
}
|
|
48339
|
+
if (Number.isFinite(coercedValue)) {
|
|
48340
|
+
return coercedValue !== 0;
|
|
48341
|
+
}
|
|
48342
|
+
throw new GraphQLError(
|
|
48343
|
+
`Boolean cannot represent a non boolean value: ${inspect(coercedValue)}`
|
|
48344
|
+
);
|
|
48345
|
+
},
|
|
48346
|
+
parseValue(inputValue) {
|
|
48347
|
+
if (typeof inputValue !== "boolean") {
|
|
48348
|
+
throw new GraphQLError(
|
|
48349
|
+
`Boolean cannot represent a non boolean value: ${inspect(inputValue)}`
|
|
48350
|
+
);
|
|
48351
|
+
}
|
|
48352
|
+
return inputValue;
|
|
48353
|
+
},
|
|
48354
|
+
parseLiteral(valueNode) {
|
|
48355
|
+
if (valueNode.kind !== Kind.BOOLEAN) {
|
|
48356
|
+
throw new GraphQLError(
|
|
48357
|
+
`Boolean cannot represent a non boolean value: ${print(valueNode)}`,
|
|
48358
|
+
{
|
|
48359
|
+
nodes: valueNode
|
|
48360
|
+
}
|
|
48361
|
+
);
|
|
48362
|
+
}
|
|
48363
|
+
return valueNode.value;
|
|
48364
|
+
}
|
|
48365
|
+
});
|
|
48366
|
+
var GraphQLID = new GraphQLScalarType({
|
|
48367
|
+
name: "ID",
|
|
48368
|
+
description: 'The `ID` scalar type represents a unique identifier, often used to refetch an object or as key for a cache. The ID type appears in a JSON response as a String; however, it is not intended to be human-readable. When expected as an input type, any string (such as `"4"`) or integer (such as `4`) input value will be accepted as an ID.',
|
|
48369
|
+
serialize(outputValue) {
|
|
48370
|
+
const coercedValue = serializeObject(outputValue);
|
|
48371
|
+
if (typeof coercedValue === "string") {
|
|
48372
|
+
return coercedValue;
|
|
48373
|
+
}
|
|
48374
|
+
if (Number.isInteger(coercedValue)) {
|
|
48375
|
+
return String(coercedValue);
|
|
48376
|
+
}
|
|
48377
|
+
throw new GraphQLError(
|
|
48378
|
+
`ID cannot represent value: ${inspect(outputValue)}`
|
|
48379
|
+
);
|
|
48380
|
+
},
|
|
48381
|
+
parseValue(inputValue) {
|
|
48382
|
+
if (typeof inputValue === "string") {
|
|
48383
|
+
return inputValue;
|
|
48384
|
+
}
|
|
48385
|
+
if (typeof inputValue === "number" && Number.isInteger(inputValue)) {
|
|
48386
|
+
return inputValue.toString();
|
|
48387
|
+
}
|
|
48388
|
+
throw new GraphQLError(`ID cannot represent value: ${inspect(inputValue)}`);
|
|
48389
|
+
},
|
|
48390
|
+
parseLiteral(valueNode) {
|
|
48391
|
+
if (valueNode.kind !== Kind.STRING && valueNode.kind !== Kind.INT) {
|
|
48392
|
+
throw new GraphQLError(
|
|
48393
|
+
"ID cannot represent a non-string and non-integer value: " + print(valueNode),
|
|
48394
|
+
{
|
|
48395
|
+
nodes: valueNode
|
|
48396
|
+
}
|
|
48397
|
+
);
|
|
48398
|
+
}
|
|
48399
|
+
return valueNode.value;
|
|
48400
|
+
}
|
|
48401
|
+
});
|
|
48402
|
+
var specifiedScalarTypes = Object.freeze([
|
|
48403
|
+
GraphQLString,
|
|
48404
|
+
GraphQLInt,
|
|
48405
|
+
GraphQLFloat,
|
|
48406
|
+
GraphQLBoolean,
|
|
48407
|
+
GraphQLID
|
|
48408
|
+
]);
|
|
48409
|
+
function isSpecifiedScalarType(type3) {
|
|
48410
|
+
return specifiedScalarTypes.some(({ name }) => type3.name === name);
|
|
48411
|
+
}
|
|
48412
|
+
__name(isSpecifiedScalarType, "isSpecifiedScalarType");
|
|
48413
|
+
function serializeObject(outputValue) {
|
|
48414
|
+
if (isObjectLike(outputValue)) {
|
|
48415
|
+
if (typeof outputValue.valueOf === "function") {
|
|
48416
|
+
const valueOfResult = outputValue.valueOf();
|
|
48417
|
+
if (!isObjectLike(valueOfResult)) {
|
|
48418
|
+
return valueOfResult;
|
|
48419
|
+
}
|
|
48420
|
+
}
|
|
48421
|
+
if (typeof outputValue.toJSON === "function") {
|
|
48422
|
+
return outputValue.toJSON();
|
|
48423
|
+
}
|
|
48424
|
+
}
|
|
48425
|
+
return outputValue;
|
|
48426
|
+
}
|
|
48427
|
+
__name(serializeObject, "serializeObject");
|
|
48428
|
+
|
|
48429
|
+
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/type/directives.mjs
|
|
48430
|
+
function isDirective(directive) {
|
|
48431
|
+
return instanceOf(directive, GraphQLDirective);
|
|
48432
|
+
}
|
|
48433
|
+
__name(isDirective, "isDirective");
|
|
48434
|
+
var GraphQLDirective = class {
|
|
48435
|
+
static {
|
|
48436
|
+
__name(this, "GraphQLDirective");
|
|
48437
|
+
}
|
|
48438
|
+
constructor(config) {
|
|
48439
|
+
var _config$isRepeatable, _config$args;
|
|
48440
|
+
this.name = assertName(config.name);
|
|
48441
|
+
this.description = config.description;
|
|
48442
|
+
this.locations = config.locations;
|
|
48443
|
+
this.isRepeatable = (_config$isRepeatable = config.isRepeatable) !== null && _config$isRepeatable !== void 0 ? _config$isRepeatable : false;
|
|
48444
|
+
this.extensions = toObjMap(config.extensions);
|
|
48445
|
+
this.astNode = config.astNode;
|
|
48446
|
+
Array.isArray(config.locations) || devAssert(false, `@${config.name} locations must be an Array.`);
|
|
48447
|
+
const args = (_config$args = config.args) !== null && _config$args !== void 0 ? _config$args : {};
|
|
48448
|
+
isObjectLike(args) && !Array.isArray(args) || devAssert(
|
|
48449
|
+
false,
|
|
48450
|
+
`@${config.name} args must be an object with argument names as keys.`
|
|
48451
|
+
);
|
|
48452
|
+
this.args = defineArguments(args);
|
|
48453
|
+
}
|
|
48454
|
+
get [Symbol.toStringTag]() {
|
|
48455
|
+
return "GraphQLDirective";
|
|
48456
|
+
}
|
|
48457
|
+
toConfig() {
|
|
48458
|
+
return {
|
|
48459
|
+
name: this.name,
|
|
48460
|
+
description: this.description,
|
|
48461
|
+
locations: this.locations,
|
|
48462
|
+
args: argsToArgsConfig(this.args),
|
|
48463
|
+
isRepeatable: this.isRepeatable,
|
|
48464
|
+
extensions: this.extensions,
|
|
48465
|
+
astNode: this.astNode
|
|
48466
|
+
};
|
|
48467
|
+
}
|
|
48468
|
+
toString() {
|
|
48469
|
+
return "@" + this.name;
|
|
48470
|
+
}
|
|
48471
|
+
toJSON() {
|
|
48472
|
+
return this.toString();
|
|
48473
|
+
}
|
|
48474
|
+
};
|
|
48475
|
+
var GraphQLIncludeDirective = new GraphQLDirective({
|
|
48476
|
+
name: "include",
|
|
48477
|
+
description: "Directs the executor to include this field or fragment only when the `if` argument is true.",
|
|
48478
|
+
locations: [
|
|
48479
|
+
DirectiveLocation.FIELD,
|
|
48480
|
+
DirectiveLocation.FRAGMENT_SPREAD,
|
|
48481
|
+
DirectiveLocation.INLINE_FRAGMENT
|
|
48482
|
+
],
|
|
48483
|
+
args: {
|
|
48484
|
+
if: {
|
|
48485
|
+
type: new GraphQLNonNull(GraphQLBoolean),
|
|
48486
|
+
description: "Included when true."
|
|
48487
|
+
}
|
|
48488
|
+
}
|
|
48489
|
+
});
|
|
48490
|
+
var GraphQLSkipDirective = new GraphQLDirective({
|
|
48491
|
+
name: "skip",
|
|
48492
|
+
description: "Directs the executor to skip this field or fragment when the `if` argument is true.",
|
|
48493
|
+
locations: [
|
|
48494
|
+
DirectiveLocation.FIELD,
|
|
48495
|
+
DirectiveLocation.FRAGMENT_SPREAD,
|
|
48496
|
+
DirectiveLocation.INLINE_FRAGMENT
|
|
48497
|
+
],
|
|
48498
|
+
args: {
|
|
48499
|
+
if: {
|
|
48500
|
+
type: new GraphQLNonNull(GraphQLBoolean),
|
|
48501
|
+
description: "Skipped when true."
|
|
48502
|
+
}
|
|
48503
|
+
}
|
|
48504
|
+
});
|
|
48505
|
+
var DEFAULT_DEPRECATION_REASON = "No longer supported";
|
|
48506
|
+
var GraphQLDeprecatedDirective = new GraphQLDirective({
|
|
48507
|
+
name: "deprecated",
|
|
48508
|
+
description: "Marks an element of a GraphQL schema as no longer supported.",
|
|
48509
|
+
locations: [
|
|
48510
|
+
DirectiveLocation.FIELD_DEFINITION,
|
|
48511
|
+
DirectiveLocation.ARGUMENT_DEFINITION,
|
|
48512
|
+
DirectiveLocation.INPUT_FIELD_DEFINITION,
|
|
48513
|
+
DirectiveLocation.ENUM_VALUE
|
|
48514
|
+
],
|
|
48515
|
+
args: {
|
|
48516
|
+
reason: {
|
|
48517
|
+
type: GraphQLString,
|
|
48518
|
+
description: "Explains why this element was deprecated, usually also including a suggestion for how to access supported similar data. Formatted using the Markdown syntax, as specified by [CommonMark](https://commonmark.org/).",
|
|
48519
|
+
defaultValue: DEFAULT_DEPRECATION_REASON
|
|
48520
|
+
}
|
|
48521
|
+
}
|
|
48522
|
+
});
|
|
48523
|
+
var GraphQLSpecifiedByDirective = new GraphQLDirective({
|
|
48524
|
+
name: "specifiedBy",
|
|
48525
|
+
description: "Exposes a URL that specifies the behavior of this scalar.",
|
|
48526
|
+
locations: [DirectiveLocation.SCALAR],
|
|
48527
|
+
args: {
|
|
48528
|
+
url: {
|
|
48529
|
+
type: new GraphQLNonNull(GraphQLString),
|
|
48530
|
+
description: "The URL that specifies the behavior of this scalar."
|
|
48531
|
+
}
|
|
48532
|
+
}
|
|
48533
|
+
});
|
|
48534
|
+
var GraphQLOneOfDirective = new GraphQLDirective({
|
|
48535
|
+
name: "oneOf",
|
|
48536
|
+
description: "Indicates exactly one field must be supplied and this field must not be `null`.",
|
|
48537
|
+
locations: [DirectiveLocation.INPUT_OBJECT],
|
|
48538
|
+
args: {}
|
|
48539
|
+
});
|
|
48540
|
+
var specifiedDirectives = Object.freeze([
|
|
48541
|
+
GraphQLIncludeDirective,
|
|
48542
|
+
GraphQLSkipDirective,
|
|
48543
|
+
GraphQLDeprecatedDirective,
|
|
48544
|
+
GraphQLSpecifiedByDirective,
|
|
48545
|
+
GraphQLOneOfDirective
|
|
48546
|
+
]);
|
|
48547
|
+
function isSpecifiedDirective(directive) {
|
|
48548
|
+
return specifiedDirectives.some(({ name }) => name === directive.name);
|
|
48549
|
+
}
|
|
48550
|
+
__name(isSpecifiedDirective, "isSpecifiedDirective");
|
|
48551
|
+
|
|
48552
|
+
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/jsutils/isIterableObject.mjs
|
|
48553
|
+
function isIterableObject(maybeIterable) {
|
|
48554
|
+
return typeof maybeIterable === "object" && typeof (maybeIterable === null || maybeIterable === void 0 ? void 0 : maybeIterable[Symbol.iterator]) === "function";
|
|
48555
|
+
}
|
|
48556
|
+
__name(isIterableObject, "isIterableObject");
|
|
48557
|
+
|
|
48558
|
+
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/utilities/astFromValue.mjs
|
|
48559
|
+
function astFromValue(value, type3) {
|
|
48560
|
+
if (isNonNullType(type3)) {
|
|
48561
|
+
const astValue = astFromValue(value, type3.ofType);
|
|
48562
|
+
if ((astValue === null || astValue === void 0 ? void 0 : astValue.kind) === Kind.NULL) {
|
|
48563
|
+
return null;
|
|
48564
|
+
}
|
|
48565
|
+
return astValue;
|
|
48566
|
+
}
|
|
48567
|
+
if (value === null) {
|
|
48568
|
+
return {
|
|
48569
|
+
kind: Kind.NULL
|
|
48570
|
+
};
|
|
48571
|
+
}
|
|
48572
|
+
if (value === void 0) {
|
|
48573
|
+
return null;
|
|
48574
|
+
}
|
|
48575
|
+
if (isListType(type3)) {
|
|
48576
|
+
const itemType = type3.ofType;
|
|
48577
|
+
if (isIterableObject(value)) {
|
|
48578
|
+
const valuesNodes = [];
|
|
48579
|
+
for (const item of value) {
|
|
48580
|
+
const itemNode = astFromValue(item, itemType);
|
|
48581
|
+
if (itemNode != null) {
|
|
48582
|
+
valuesNodes.push(itemNode);
|
|
48583
|
+
}
|
|
48584
|
+
}
|
|
48585
|
+
return {
|
|
48586
|
+
kind: Kind.LIST,
|
|
48587
|
+
values: valuesNodes
|
|
48588
|
+
};
|
|
48589
|
+
}
|
|
48590
|
+
return astFromValue(value, itemType);
|
|
48591
|
+
}
|
|
48592
|
+
if (isInputObjectType(type3)) {
|
|
48593
|
+
if (!isObjectLike(value)) {
|
|
48594
|
+
return null;
|
|
48595
|
+
}
|
|
48596
|
+
const fieldNodes = [];
|
|
48597
|
+
for (const field of Object.values(type3.getFields())) {
|
|
48598
|
+
const fieldValue = astFromValue(value[field.name], field.type);
|
|
48599
|
+
if (fieldValue) {
|
|
48600
|
+
fieldNodes.push({
|
|
48601
|
+
kind: Kind.OBJECT_FIELD,
|
|
48602
|
+
name: {
|
|
48603
|
+
kind: Kind.NAME,
|
|
48604
|
+
value: field.name
|
|
48605
|
+
},
|
|
48606
|
+
value: fieldValue
|
|
48607
|
+
});
|
|
48608
|
+
}
|
|
48609
|
+
}
|
|
48610
|
+
return {
|
|
48611
|
+
kind: Kind.OBJECT,
|
|
48612
|
+
fields: fieldNodes
|
|
48613
|
+
};
|
|
48614
|
+
}
|
|
48615
|
+
if (isLeafType(type3)) {
|
|
48616
|
+
const serialized = type3.serialize(value);
|
|
48617
|
+
if (serialized == null) {
|
|
48618
|
+
return null;
|
|
48619
|
+
}
|
|
48620
|
+
if (typeof serialized === "boolean") {
|
|
48621
|
+
return {
|
|
48622
|
+
kind: Kind.BOOLEAN,
|
|
48623
|
+
value: serialized
|
|
48624
|
+
};
|
|
48625
|
+
}
|
|
48626
|
+
if (typeof serialized === "number" && Number.isFinite(serialized)) {
|
|
48627
|
+
const stringNum = String(serialized);
|
|
48628
|
+
return integerStringRegExp.test(stringNum) ? {
|
|
48629
|
+
kind: Kind.INT,
|
|
48630
|
+
value: stringNum
|
|
48631
|
+
} : {
|
|
48632
|
+
kind: Kind.FLOAT,
|
|
48633
|
+
value: stringNum
|
|
48634
|
+
};
|
|
48635
|
+
}
|
|
48636
|
+
if (typeof serialized === "string") {
|
|
48637
|
+
if (isEnumType(type3)) {
|
|
48638
|
+
return {
|
|
48639
|
+
kind: Kind.ENUM,
|
|
48640
|
+
value: serialized
|
|
48641
|
+
};
|
|
48642
|
+
}
|
|
48643
|
+
if (type3 === GraphQLID && integerStringRegExp.test(serialized)) {
|
|
48644
|
+
return {
|
|
48645
|
+
kind: Kind.INT,
|
|
48646
|
+
value: serialized
|
|
48647
|
+
};
|
|
48648
|
+
}
|
|
48649
|
+
return {
|
|
48650
|
+
kind: Kind.STRING,
|
|
48651
|
+
value: serialized
|
|
48652
|
+
};
|
|
48653
|
+
}
|
|
48654
|
+
throw new TypeError(`Cannot convert value to AST: ${inspect(serialized)}.`);
|
|
48655
|
+
}
|
|
48656
|
+
invariant(false, "Unexpected input type: " + inspect(type3));
|
|
48657
|
+
}
|
|
48658
|
+
__name(astFromValue, "astFromValue");
|
|
48659
|
+
var integerStringRegExp = /^-?(?:0|[1-9][0-9]*)$/;
|
|
48660
|
+
|
|
48661
|
+
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/type/introspection.mjs
|
|
48662
|
+
var __Schema = new GraphQLObjectType({
|
|
48663
|
+
name: "__Schema",
|
|
48664
|
+
description: "A GraphQL Schema defines the capabilities of a GraphQL server. It exposes all available types and directives on the server, as well as the entry points for query, mutation, and subscription operations.",
|
|
48665
|
+
fields: /* @__PURE__ */ __name(() => ({
|
|
48666
|
+
description: {
|
|
48667
|
+
type: GraphQLString,
|
|
48668
|
+
resolve: /* @__PURE__ */ __name((schema) => schema.description, "resolve")
|
|
48669
|
+
},
|
|
48670
|
+
types: {
|
|
48671
|
+
description: "A list of all types supported by this server.",
|
|
48672
|
+
type: new GraphQLNonNull(new GraphQLList(new GraphQLNonNull(__Type))),
|
|
48673
|
+
resolve(schema) {
|
|
48674
|
+
return Object.values(schema.getTypeMap());
|
|
48675
|
+
}
|
|
48676
|
+
},
|
|
48677
|
+
queryType: {
|
|
48678
|
+
description: "The type that query operations will be rooted at.",
|
|
48679
|
+
type: new GraphQLNonNull(__Type),
|
|
48680
|
+
resolve: /* @__PURE__ */ __name((schema) => schema.getQueryType(), "resolve")
|
|
48681
|
+
},
|
|
48682
|
+
mutationType: {
|
|
48683
|
+
description: "If this server supports mutation, the type that mutation operations will be rooted at.",
|
|
48684
|
+
type: __Type,
|
|
48685
|
+
resolve: /* @__PURE__ */ __name((schema) => schema.getMutationType(), "resolve")
|
|
48686
|
+
},
|
|
48687
|
+
subscriptionType: {
|
|
48688
|
+
description: "If this server support subscription, the type that subscription operations will be rooted at.",
|
|
48689
|
+
type: __Type,
|
|
48690
|
+
resolve: /* @__PURE__ */ __name((schema) => schema.getSubscriptionType(), "resolve")
|
|
48691
|
+
},
|
|
48692
|
+
directives: {
|
|
48693
|
+
description: "A list of all directives supported by this server.",
|
|
48694
|
+
type: new GraphQLNonNull(
|
|
48695
|
+
new GraphQLList(new GraphQLNonNull(__Directive))
|
|
48696
|
+
),
|
|
48697
|
+
resolve: /* @__PURE__ */ __name((schema) => schema.getDirectives(), "resolve")
|
|
48698
|
+
}
|
|
48699
|
+
}), "fields")
|
|
48700
|
+
});
|
|
48701
|
+
var __Directive = new GraphQLObjectType({
|
|
48702
|
+
name: "__Directive",
|
|
48703
|
+
description: "A Directive provides a way to describe alternate runtime execution and type validation behavior in a GraphQL document.\n\nIn some cases, you need to provide options to alter GraphQL's execution behavior in ways field arguments will not suffice, such as conditionally including or skipping a field. Directives provide this by describing additional information to the executor.",
|
|
48704
|
+
fields: /* @__PURE__ */ __name(() => ({
|
|
48705
|
+
name: {
|
|
48706
|
+
type: new GraphQLNonNull(GraphQLString),
|
|
48707
|
+
resolve: /* @__PURE__ */ __name((directive) => directive.name, "resolve")
|
|
48708
|
+
},
|
|
48709
|
+
description: {
|
|
48710
|
+
type: GraphQLString,
|
|
48711
|
+
resolve: /* @__PURE__ */ __name((directive) => directive.description, "resolve")
|
|
48712
|
+
},
|
|
48713
|
+
isRepeatable: {
|
|
48714
|
+
type: new GraphQLNonNull(GraphQLBoolean),
|
|
48715
|
+
resolve: /* @__PURE__ */ __name((directive) => directive.isRepeatable, "resolve")
|
|
48716
|
+
},
|
|
48717
|
+
locations: {
|
|
48718
|
+
type: new GraphQLNonNull(
|
|
48719
|
+
new GraphQLList(new GraphQLNonNull(__DirectiveLocation))
|
|
48720
|
+
),
|
|
48721
|
+
resolve: /* @__PURE__ */ __name((directive) => directive.locations, "resolve")
|
|
48722
|
+
},
|
|
48723
|
+
args: {
|
|
48724
|
+
type: new GraphQLNonNull(
|
|
48725
|
+
new GraphQLList(new GraphQLNonNull(__InputValue))
|
|
48726
|
+
),
|
|
48727
|
+
args: {
|
|
48728
|
+
includeDeprecated: {
|
|
48729
|
+
type: GraphQLBoolean,
|
|
48730
|
+
defaultValue: false
|
|
48731
|
+
}
|
|
48732
|
+
},
|
|
48733
|
+
resolve(field, { includeDeprecated }) {
|
|
48734
|
+
return includeDeprecated ? field.args : field.args.filter((arg) => arg.deprecationReason == null);
|
|
48735
|
+
}
|
|
48736
|
+
}
|
|
48737
|
+
}), "fields")
|
|
48738
|
+
});
|
|
48739
|
+
var __DirectiveLocation = new GraphQLEnumType({
|
|
48740
|
+
name: "__DirectiveLocation",
|
|
48741
|
+
description: "A Directive can be adjacent to many parts of the GraphQL language, a __DirectiveLocation describes one such possible adjacencies.",
|
|
48742
|
+
values: {
|
|
48743
|
+
QUERY: {
|
|
48744
|
+
value: DirectiveLocation.QUERY,
|
|
48745
|
+
description: "Location adjacent to a query operation."
|
|
48746
|
+
},
|
|
48747
|
+
MUTATION: {
|
|
48748
|
+
value: DirectiveLocation.MUTATION,
|
|
48749
|
+
description: "Location adjacent to a mutation operation."
|
|
48750
|
+
},
|
|
48751
|
+
SUBSCRIPTION: {
|
|
48752
|
+
value: DirectiveLocation.SUBSCRIPTION,
|
|
48753
|
+
description: "Location adjacent to a subscription operation."
|
|
48754
|
+
},
|
|
48755
|
+
FIELD: {
|
|
48756
|
+
value: DirectiveLocation.FIELD,
|
|
48757
|
+
description: "Location adjacent to a field."
|
|
48758
|
+
},
|
|
48759
|
+
FRAGMENT_DEFINITION: {
|
|
48760
|
+
value: DirectiveLocation.FRAGMENT_DEFINITION,
|
|
48761
|
+
description: "Location adjacent to a fragment definition."
|
|
48762
|
+
},
|
|
48763
|
+
FRAGMENT_SPREAD: {
|
|
48764
|
+
value: DirectiveLocation.FRAGMENT_SPREAD,
|
|
48765
|
+
description: "Location adjacent to a fragment spread."
|
|
48766
|
+
},
|
|
48767
|
+
INLINE_FRAGMENT: {
|
|
48768
|
+
value: DirectiveLocation.INLINE_FRAGMENT,
|
|
48769
|
+
description: "Location adjacent to an inline fragment."
|
|
48770
|
+
},
|
|
48771
|
+
VARIABLE_DEFINITION: {
|
|
48772
|
+
value: DirectiveLocation.VARIABLE_DEFINITION,
|
|
48773
|
+
description: "Location adjacent to a variable definition."
|
|
48774
|
+
},
|
|
48775
|
+
SCHEMA: {
|
|
48776
|
+
value: DirectiveLocation.SCHEMA,
|
|
48777
|
+
description: "Location adjacent to a schema definition."
|
|
48778
|
+
},
|
|
48779
|
+
SCALAR: {
|
|
48780
|
+
value: DirectiveLocation.SCALAR,
|
|
48781
|
+
description: "Location adjacent to a scalar definition."
|
|
48782
|
+
},
|
|
48783
|
+
OBJECT: {
|
|
48784
|
+
value: DirectiveLocation.OBJECT,
|
|
48785
|
+
description: "Location adjacent to an object type definition."
|
|
48786
|
+
},
|
|
48787
|
+
FIELD_DEFINITION: {
|
|
48788
|
+
value: DirectiveLocation.FIELD_DEFINITION,
|
|
48789
|
+
description: "Location adjacent to a field definition."
|
|
48790
|
+
},
|
|
48791
|
+
ARGUMENT_DEFINITION: {
|
|
48792
|
+
value: DirectiveLocation.ARGUMENT_DEFINITION,
|
|
48793
|
+
description: "Location adjacent to an argument definition."
|
|
48794
|
+
},
|
|
48795
|
+
INTERFACE: {
|
|
48796
|
+
value: DirectiveLocation.INTERFACE,
|
|
48797
|
+
description: "Location adjacent to an interface definition."
|
|
48798
|
+
},
|
|
48799
|
+
UNION: {
|
|
48800
|
+
value: DirectiveLocation.UNION,
|
|
48801
|
+
description: "Location adjacent to a union definition."
|
|
48802
|
+
},
|
|
48803
|
+
ENUM: {
|
|
48804
|
+
value: DirectiveLocation.ENUM,
|
|
48805
|
+
description: "Location adjacent to an enum definition."
|
|
48806
|
+
},
|
|
48807
|
+
ENUM_VALUE: {
|
|
48808
|
+
value: DirectiveLocation.ENUM_VALUE,
|
|
48809
|
+
description: "Location adjacent to an enum value definition."
|
|
48810
|
+
},
|
|
48811
|
+
INPUT_OBJECT: {
|
|
48812
|
+
value: DirectiveLocation.INPUT_OBJECT,
|
|
48813
|
+
description: "Location adjacent to an input object type definition."
|
|
48814
|
+
},
|
|
48815
|
+
INPUT_FIELD_DEFINITION: {
|
|
48816
|
+
value: DirectiveLocation.INPUT_FIELD_DEFINITION,
|
|
48817
|
+
description: "Location adjacent to an input object field definition."
|
|
48818
|
+
}
|
|
48819
|
+
}
|
|
48820
|
+
});
|
|
48821
|
+
var __Type = new GraphQLObjectType({
|
|
48822
|
+
name: "__Type",
|
|
48823
|
+
description: "The fundamental unit of any GraphQL Schema is the type. There are many kinds of types in GraphQL as represented by the `__TypeKind` enum.\n\nDepending on the kind of a type, certain fields describe information about that type. Scalar types provide no information beyond a name, description and optional `specifiedByURL`, while Enum types provide their values. Object and Interface types provide the fields they describe. Abstract types, Union and Interface, provide the Object types possible at runtime. List and NonNull types compose other types.",
|
|
48824
|
+
fields: /* @__PURE__ */ __name(() => ({
|
|
48825
|
+
kind: {
|
|
48826
|
+
type: new GraphQLNonNull(__TypeKind),
|
|
48827
|
+
resolve(type3) {
|
|
48828
|
+
if (isScalarType(type3)) {
|
|
48829
|
+
return TypeKind.SCALAR;
|
|
48830
|
+
}
|
|
48831
|
+
if (isObjectType(type3)) {
|
|
48832
|
+
return TypeKind.OBJECT;
|
|
48833
|
+
}
|
|
48834
|
+
if (isInterfaceType(type3)) {
|
|
48835
|
+
return TypeKind.INTERFACE;
|
|
48836
|
+
}
|
|
48837
|
+
if (isUnionType(type3)) {
|
|
48838
|
+
return TypeKind.UNION;
|
|
48839
|
+
}
|
|
48840
|
+
if (isEnumType(type3)) {
|
|
48841
|
+
return TypeKind.ENUM;
|
|
48842
|
+
}
|
|
48843
|
+
if (isInputObjectType(type3)) {
|
|
48844
|
+
return TypeKind.INPUT_OBJECT;
|
|
48845
|
+
}
|
|
48846
|
+
if (isListType(type3)) {
|
|
48847
|
+
return TypeKind.LIST;
|
|
48848
|
+
}
|
|
48849
|
+
if (isNonNullType(type3)) {
|
|
48850
|
+
return TypeKind.NON_NULL;
|
|
48851
|
+
}
|
|
48852
|
+
invariant(false, `Unexpected type: "${inspect(type3)}".`);
|
|
48853
|
+
}
|
|
48854
|
+
},
|
|
48855
|
+
name: {
|
|
48856
|
+
type: GraphQLString,
|
|
48857
|
+
resolve: /* @__PURE__ */ __name((type3) => "name" in type3 ? type3.name : void 0, "resolve")
|
|
48858
|
+
},
|
|
48859
|
+
description: {
|
|
48860
|
+
type: GraphQLString,
|
|
48861
|
+
resolve: /* @__PURE__ */ __name((type3) => (
|
|
48862
|
+
/* c8 ignore next */
|
|
48863
|
+
"description" in type3 ? type3.description : void 0
|
|
48864
|
+
), "resolve")
|
|
48865
|
+
},
|
|
48866
|
+
specifiedByURL: {
|
|
48867
|
+
type: GraphQLString,
|
|
48868
|
+
resolve: /* @__PURE__ */ __name((obj) => "specifiedByURL" in obj ? obj.specifiedByURL : void 0, "resolve")
|
|
48869
|
+
},
|
|
48870
|
+
fields: {
|
|
48871
|
+
type: new GraphQLList(new GraphQLNonNull(__Field)),
|
|
48872
|
+
args: {
|
|
48873
|
+
includeDeprecated: {
|
|
48874
|
+
type: GraphQLBoolean,
|
|
48875
|
+
defaultValue: false
|
|
48876
|
+
}
|
|
48877
|
+
},
|
|
48878
|
+
resolve(type3, { includeDeprecated }) {
|
|
48879
|
+
if (isObjectType(type3) || isInterfaceType(type3)) {
|
|
48880
|
+
const fields = Object.values(type3.getFields());
|
|
48881
|
+
return includeDeprecated ? fields : fields.filter((field) => field.deprecationReason == null);
|
|
48882
|
+
}
|
|
48883
|
+
}
|
|
48884
|
+
},
|
|
48885
|
+
interfaces: {
|
|
48886
|
+
type: new GraphQLList(new GraphQLNonNull(__Type)),
|
|
48887
|
+
resolve(type3) {
|
|
48888
|
+
if (isObjectType(type3) || isInterfaceType(type3)) {
|
|
48889
|
+
return type3.getInterfaces();
|
|
48890
|
+
}
|
|
48891
|
+
}
|
|
48892
|
+
},
|
|
48893
|
+
possibleTypes: {
|
|
48894
|
+
type: new GraphQLList(new GraphQLNonNull(__Type)),
|
|
48895
|
+
resolve(type3, _args, _context, { schema }) {
|
|
48896
|
+
if (isAbstractType(type3)) {
|
|
48897
|
+
return schema.getPossibleTypes(type3);
|
|
48898
|
+
}
|
|
48899
|
+
}
|
|
48900
|
+
},
|
|
48901
|
+
enumValues: {
|
|
48902
|
+
type: new GraphQLList(new GraphQLNonNull(__EnumValue)),
|
|
48903
|
+
args: {
|
|
48904
|
+
includeDeprecated: {
|
|
48905
|
+
type: GraphQLBoolean,
|
|
48906
|
+
defaultValue: false
|
|
48907
|
+
}
|
|
48908
|
+
},
|
|
48909
|
+
resolve(type3, { includeDeprecated }) {
|
|
48910
|
+
if (isEnumType(type3)) {
|
|
48911
|
+
const values = type3.getValues();
|
|
48912
|
+
return includeDeprecated ? values : values.filter((field) => field.deprecationReason == null);
|
|
48913
|
+
}
|
|
48914
|
+
}
|
|
48915
|
+
},
|
|
48916
|
+
inputFields: {
|
|
48917
|
+
type: new GraphQLList(new GraphQLNonNull(__InputValue)),
|
|
48918
|
+
args: {
|
|
48919
|
+
includeDeprecated: {
|
|
48920
|
+
type: GraphQLBoolean,
|
|
48921
|
+
defaultValue: false
|
|
48922
|
+
}
|
|
48923
|
+
},
|
|
48924
|
+
resolve(type3, { includeDeprecated }) {
|
|
48925
|
+
if (isInputObjectType(type3)) {
|
|
48926
|
+
const values = Object.values(type3.getFields());
|
|
48927
|
+
return includeDeprecated ? values : values.filter((field) => field.deprecationReason == null);
|
|
48928
|
+
}
|
|
48929
|
+
}
|
|
48930
|
+
},
|
|
48931
|
+
ofType: {
|
|
48932
|
+
type: __Type,
|
|
48933
|
+
resolve: /* @__PURE__ */ __name((type3) => "ofType" in type3 ? type3.ofType : void 0, "resolve")
|
|
48934
|
+
},
|
|
48935
|
+
isOneOf: {
|
|
48936
|
+
type: GraphQLBoolean,
|
|
48937
|
+
resolve: /* @__PURE__ */ __name((type3) => {
|
|
48938
|
+
if (isInputObjectType(type3)) {
|
|
48939
|
+
return type3.isOneOf;
|
|
48940
|
+
}
|
|
48941
|
+
}, "resolve")
|
|
48942
|
+
}
|
|
48943
|
+
}), "fields")
|
|
48944
|
+
});
|
|
48945
|
+
var __Field = new GraphQLObjectType({
|
|
48946
|
+
name: "__Field",
|
|
48947
|
+
description: "Object and Interface types are described by a list of Fields, each of which has a name, potentially a list of arguments, and a return type.",
|
|
48948
|
+
fields: /* @__PURE__ */ __name(() => ({
|
|
48949
|
+
name: {
|
|
48950
|
+
type: new GraphQLNonNull(GraphQLString),
|
|
48951
|
+
resolve: /* @__PURE__ */ __name((field) => field.name, "resolve")
|
|
48952
|
+
},
|
|
48953
|
+
description: {
|
|
48954
|
+
type: GraphQLString,
|
|
48955
|
+
resolve: /* @__PURE__ */ __name((field) => field.description, "resolve")
|
|
48956
|
+
},
|
|
48957
|
+
args: {
|
|
48958
|
+
type: new GraphQLNonNull(
|
|
48959
|
+
new GraphQLList(new GraphQLNonNull(__InputValue))
|
|
48960
|
+
),
|
|
48961
|
+
args: {
|
|
48962
|
+
includeDeprecated: {
|
|
48963
|
+
type: GraphQLBoolean,
|
|
48964
|
+
defaultValue: false
|
|
48965
|
+
}
|
|
48966
|
+
},
|
|
48967
|
+
resolve(field, { includeDeprecated }) {
|
|
48968
|
+
return includeDeprecated ? field.args : field.args.filter((arg) => arg.deprecationReason == null);
|
|
48969
|
+
}
|
|
48970
|
+
},
|
|
48971
|
+
type: {
|
|
48972
|
+
type: new GraphQLNonNull(__Type),
|
|
48973
|
+
resolve: /* @__PURE__ */ __name((field) => field.type, "resolve")
|
|
48974
|
+
},
|
|
48975
|
+
isDeprecated: {
|
|
48976
|
+
type: new GraphQLNonNull(GraphQLBoolean),
|
|
48977
|
+
resolve: /* @__PURE__ */ __name((field) => field.deprecationReason != null, "resolve")
|
|
48978
|
+
},
|
|
48979
|
+
deprecationReason: {
|
|
48980
|
+
type: GraphQLString,
|
|
48981
|
+
resolve: /* @__PURE__ */ __name((field) => field.deprecationReason, "resolve")
|
|
48982
|
+
}
|
|
48983
|
+
}), "fields")
|
|
48984
|
+
});
|
|
48985
|
+
var __InputValue = new GraphQLObjectType({
|
|
48986
|
+
name: "__InputValue",
|
|
48987
|
+
description: "Arguments provided to Fields or Directives and the input fields of an InputObject are represented as Input Values which describe their type and optionally a default value.",
|
|
48988
|
+
fields: /* @__PURE__ */ __name(() => ({
|
|
48989
|
+
name: {
|
|
48990
|
+
type: new GraphQLNonNull(GraphQLString),
|
|
48991
|
+
resolve: /* @__PURE__ */ __name((inputValue) => inputValue.name, "resolve")
|
|
48992
|
+
},
|
|
48993
|
+
description: {
|
|
48994
|
+
type: GraphQLString,
|
|
48995
|
+
resolve: /* @__PURE__ */ __name((inputValue) => inputValue.description, "resolve")
|
|
48996
|
+
},
|
|
48997
|
+
type: {
|
|
48998
|
+
type: new GraphQLNonNull(__Type),
|
|
48999
|
+
resolve: /* @__PURE__ */ __name((inputValue) => inputValue.type, "resolve")
|
|
49000
|
+
},
|
|
49001
|
+
defaultValue: {
|
|
49002
|
+
type: GraphQLString,
|
|
49003
|
+
description: "A GraphQL-formatted string representing the default value for this input value.",
|
|
49004
|
+
resolve(inputValue) {
|
|
49005
|
+
const { type: type3, defaultValue } = inputValue;
|
|
49006
|
+
const valueAST = astFromValue(defaultValue, type3);
|
|
49007
|
+
return valueAST ? print(valueAST) : null;
|
|
49008
|
+
}
|
|
49009
|
+
},
|
|
49010
|
+
isDeprecated: {
|
|
49011
|
+
type: new GraphQLNonNull(GraphQLBoolean),
|
|
49012
|
+
resolve: /* @__PURE__ */ __name((field) => field.deprecationReason != null, "resolve")
|
|
49013
|
+
},
|
|
49014
|
+
deprecationReason: {
|
|
49015
|
+
type: GraphQLString,
|
|
49016
|
+
resolve: /* @__PURE__ */ __name((obj) => obj.deprecationReason, "resolve")
|
|
49017
|
+
}
|
|
49018
|
+
}), "fields")
|
|
49019
|
+
});
|
|
49020
|
+
var __EnumValue = new GraphQLObjectType({
|
|
49021
|
+
name: "__EnumValue",
|
|
49022
|
+
description: "One possible value for a given Enum. Enum values are unique values, not a placeholder for a string or numeric value. However an Enum value is returned in a JSON response as a string.",
|
|
49023
|
+
fields: /* @__PURE__ */ __name(() => ({
|
|
49024
|
+
name: {
|
|
49025
|
+
type: new GraphQLNonNull(GraphQLString),
|
|
49026
|
+
resolve: /* @__PURE__ */ __name((enumValue) => enumValue.name, "resolve")
|
|
49027
|
+
},
|
|
49028
|
+
description: {
|
|
49029
|
+
type: GraphQLString,
|
|
49030
|
+
resolve: /* @__PURE__ */ __name((enumValue) => enumValue.description, "resolve")
|
|
49031
|
+
},
|
|
49032
|
+
isDeprecated: {
|
|
49033
|
+
type: new GraphQLNonNull(GraphQLBoolean),
|
|
49034
|
+
resolve: /* @__PURE__ */ __name((enumValue) => enumValue.deprecationReason != null, "resolve")
|
|
49035
|
+
},
|
|
49036
|
+
deprecationReason: {
|
|
49037
|
+
type: GraphQLString,
|
|
49038
|
+
resolve: /* @__PURE__ */ __name((enumValue) => enumValue.deprecationReason, "resolve")
|
|
49039
|
+
}
|
|
49040
|
+
}), "fields")
|
|
49041
|
+
});
|
|
49042
|
+
var TypeKind;
|
|
49043
|
+
(function(TypeKind2) {
|
|
49044
|
+
TypeKind2["SCALAR"] = "SCALAR";
|
|
49045
|
+
TypeKind2["OBJECT"] = "OBJECT";
|
|
49046
|
+
TypeKind2["INTERFACE"] = "INTERFACE";
|
|
49047
|
+
TypeKind2["UNION"] = "UNION";
|
|
49048
|
+
TypeKind2["ENUM"] = "ENUM";
|
|
49049
|
+
TypeKind2["INPUT_OBJECT"] = "INPUT_OBJECT";
|
|
49050
|
+
TypeKind2["LIST"] = "LIST";
|
|
49051
|
+
TypeKind2["NON_NULL"] = "NON_NULL";
|
|
49052
|
+
})(TypeKind || (TypeKind = {}));
|
|
49053
|
+
var __TypeKind = new GraphQLEnumType({
|
|
49054
|
+
name: "__TypeKind",
|
|
49055
|
+
description: "An enum describing what kind of type a given `__Type` is.",
|
|
49056
|
+
values: {
|
|
49057
|
+
SCALAR: {
|
|
49058
|
+
value: TypeKind.SCALAR,
|
|
49059
|
+
description: "Indicates this type is a scalar."
|
|
49060
|
+
},
|
|
49061
|
+
OBJECT: {
|
|
49062
|
+
value: TypeKind.OBJECT,
|
|
49063
|
+
description: "Indicates this type is an object. `fields` and `interfaces` are valid fields."
|
|
49064
|
+
},
|
|
49065
|
+
INTERFACE: {
|
|
49066
|
+
value: TypeKind.INTERFACE,
|
|
49067
|
+
description: "Indicates this type is an interface. `fields`, `interfaces`, and `possibleTypes` are valid fields."
|
|
49068
|
+
},
|
|
49069
|
+
UNION: {
|
|
49070
|
+
value: TypeKind.UNION,
|
|
49071
|
+
description: "Indicates this type is a union. `possibleTypes` is a valid field."
|
|
49072
|
+
},
|
|
49073
|
+
ENUM: {
|
|
49074
|
+
value: TypeKind.ENUM,
|
|
49075
|
+
description: "Indicates this type is an enum. `enumValues` is a valid field."
|
|
49076
|
+
},
|
|
49077
|
+
INPUT_OBJECT: {
|
|
49078
|
+
value: TypeKind.INPUT_OBJECT,
|
|
49079
|
+
description: "Indicates this type is an input object. `inputFields` is a valid field."
|
|
49080
|
+
},
|
|
49081
|
+
LIST: {
|
|
49082
|
+
value: TypeKind.LIST,
|
|
49083
|
+
description: "Indicates this type is a list. `ofType` is a valid field."
|
|
49084
|
+
},
|
|
49085
|
+
NON_NULL: {
|
|
49086
|
+
value: TypeKind.NON_NULL,
|
|
49087
|
+
description: "Indicates this type is a non-null. `ofType` is a valid field."
|
|
49088
|
+
}
|
|
49089
|
+
}
|
|
49090
|
+
});
|
|
49091
|
+
var SchemaMetaFieldDef = {
|
|
49092
|
+
name: "__schema",
|
|
49093
|
+
type: new GraphQLNonNull(__Schema),
|
|
49094
|
+
description: "Access the current type schema of this server.",
|
|
49095
|
+
args: [],
|
|
49096
|
+
resolve: /* @__PURE__ */ __name((_source, _args, _context, { schema }) => schema, "resolve"),
|
|
49097
|
+
deprecationReason: void 0,
|
|
49098
|
+
extensions: /* @__PURE__ */ Object.create(null),
|
|
49099
|
+
astNode: void 0
|
|
49100
|
+
};
|
|
49101
|
+
var TypeMetaFieldDef = {
|
|
49102
|
+
name: "__type",
|
|
49103
|
+
type: __Type,
|
|
49104
|
+
description: "Request the type information of a single type.",
|
|
49105
|
+
args: [
|
|
49106
|
+
{
|
|
49107
|
+
name: "name",
|
|
49108
|
+
description: void 0,
|
|
49109
|
+
type: new GraphQLNonNull(GraphQLString),
|
|
49110
|
+
defaultValue: void 0,
|
|
49111
|
+
deprecationReason: void 0,
|
|
49112
|
+
extensions: /* @__PURE__ */ Object.create(null),
|
|
49113
|
+
astNode: void 0
|
|
49114
|
+
}
|
|
49115
|
+
],
|
|
49116
|
+
resolve: /* @__PURE__ */ __name((_source, { name }, _context, { schema }) => schema.getType(name), "resolve"),
|
|
49117
|
+
deprecationReason: void 0,
|
|
49118
|
+
extensions: /* @__PURE__ */ Object.create(null),
|
|
49119
|
+
astNode: void 0
|
|
49120
|
+
};
|
|
49121
|
+
var TypeNameMetaFieldDef = {
|
|
49122
|
+
name: "__typename",
|
|
49123
|
+
type: new GraphQLNonNull(GraphQLString),
|
|
49124
|
+
description: "The name of the current Object type at runtime.",
|
|
49125
|
+
args: [],
|
|
49126
|
+
resolve: /* @__PURE__ */ __name((_source, _args, _context, { parentType }) => parentType.name, "resolve"),
|
|
49127
|
+
deprecationReason: void 0,
|
|
49128
|
+
extensions: /* @__PURE__ */ Object.create(null),
|
|
49129
|
+
astNode: void 0
|
|
49130
|
+
};
|
|
49131
|
+
var introspectionTypes = Object.freeze([
|
|
49132
|
+
__Schema,
|
|
49133
|
+
__Directive,
|
|
49134
|
+
__DirectiveLocation,
|
|
49135
|
+
__Type,
|
|
49136
|
+
__Field,
|
|
49137
|
+
__InputValue,
|
|
49138
|
+
__EnumValue,
|
|
49139
|
+
__TypeKind
|
|
49140
|
+
]);
|
|
49141
|
+
function isIntrospectionType(type3) {
|
|
49142
|
+
return introspectionTypes.some(({ name }) => type3.name === name);
|
|
49143
|
+
}
|
|
49144
|
+
__name(isIntrospectionType, "isIntrospectionType");
|
|
49145
|
+
|
|
49146
|
+
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/type/schema.mjs
|
|
49147
|
+
var GraphQLSchema = class {
|
|
49148
|
+
static {
|
|
49149
|
+
__name(this, "GraphQLSchema");
|
|
49150
|
+
}
|
|
49151
|
+
// Used as a cache for validateSchema().
|
|
49152
|
+
constructor(config) {
|
|
49153
|
+
var _config$extensionASTN, _config$directives;
|
|
49154
|
+
this.__validationErrors = config.assumeValid === true ? [] : void 0;
|
|
49155
|
+
isObjectLike(config) || devAssert(false, "Must provide configuration object.");
|
|
49156
|
+
!config.types || Array.isArray(config.types) || devAssert(
|
|
49157
|
+
false,
|
|
49158
|
+
`"types" must be Array if provided but got: ${inspect(config.types)}.`
|
|
49159
|
+
);
|
|
49160
|
+
!config.directives || Array.isArray(config.directives) || devAssert(
|
|
49161
|
+
false,
|
|
49162
|
+
`"directives" must be Array if provided but got: ${inspect(config.directives)}.`
|
|
49163
|
+
);
|
|
49164
|
+
this.description = config.description;
|
|
49165
|
+
this.extensions = toObjMap(config.extensions);
|
|
49166
|
+
this.astNode = config.astNode;
|
|
49167
|
+
this.extensionASTNodes = (_config$extensionASTN = config.extensionASTNodes) !== null && _config$extensionASTN !== void 0 ? _config$extensionASTN : [];
|
|
49168
|
+
this._queryType = config.query;
|
|
49169
|
+
this._mutationType = config.mutation;
|
|
49170
|
+
this._subscriptionType = config.subscription;
|
|
49171
|
+
this._directives = (_config$directives = config.directives) !== null && _config$directives !== void 0 ? _config$directives : specifiedDirectives;
|
|
49172
|
+
const allReferencedTypes = new Set(config.types);
|
|
49173
|
+
if (config.types != null) {
|
|
49174
|
+
for (const type3 of config.types) {
|
|
49175
|
+
allReferencedTypes.delete(type3);
|
|
49176
|
+
collectReferencedTypes(type3, allReferencedTypes);
|
|
49177
|
+
}
|
|
49178
|
+
}
|
|
49179
|
+
if (this._queryType != null) {
|
|
49180
|
+
collectReferencedTypes(this._queryType, allReferencedTypes);
|
|
49181
|
+
}
|
|
49182
|
+
if (this._mutationType != null) {
|
|
49183
|
+
collectReferencedTypes(this._mutationType, allReferencedTypes);
|
|
49184
|
+
}
|
|
49185
|
+
if (this._subscriptionType != null) {
|
|
49186
|
+
collectReferencedTypes(this._subscriptionType, allReferencedTypes);
|
|
49187
|
+
}
|
|
49188
|
+
for (const directive of this._directives) {
|
|
49189
|
+
if (isDirective(directive)) {
|
|
49190
|
+
for (const arg of directive.args) {
|
|
49191
|
+
collectReferencedTypes(arg.type, allReferencedTypes);
|
|
49192
|
+
}
|
|
49193
|
+
}
|
|
49194
|
+
}
|
|
49195
|
+
collectReferencedTypes(__Schema, allReferencedTypes);
|
|
49196
|
+
this._typeMap = /* @__PURE__ */ Object.create(null);
|
|
49197
|
+
this._subTypeMap = /* @__PURE__ */ Object.create(null);
|
|
49198
|
+
this._implementationsMap = /* @__PURE__ */ Object.create(null);
|
|
49199
|
+
for (const namedType of allReferencedTypes) {
|
|
49200
|
+
if (namedType == null) {
|
|
49201
|
+
continue;
|
|
49202
|
+
}
|
|
49203
|
+
const typeName = namedType.name;
|
|
49204
|
+
typeName || devAssert(
|
|
49205
|
+
false,
|
|
49206
|
+
"One of the provided types for building the Schema is missing a name."
|
|
49207
|
+
);
|
|
49208
|
+
if (this._typeMap[typeName] !== void 0) {
|
|
49209
|
+
throw new Error(
|
|
49210
|
+
`Schema must contain uniquely named types but contains multiple types named "${typeName}".`
|
|
49211
|
+
);
|
|
49212
|
+
}
|
|
49213
|
+
this._typeMap[typeName] = namedType;
|
|
49214
|
+
if (isInterfaceType(namedType)) {
|
|
49215
|
+
for (const iface of namedType.getInterfaces()) {
|
|
49216
|
+
if (isInterfaceType(iface)) {
|
|
49217
|
+
let implementations = this._implementationsMap[iface.name];
|
|
49218
|
+
if (implementations === void 0) {
|
|
49219
|
+
implementations = this._implementationsMap[iface.name] = {
|
|
49220
|
+
objects: [],
|
|
49221
|
+
interfaces: []
|
|
49222
|
+
};
|
|
49223
|
+
}
|
|
49224
|
+
implementations.interfaces.push(namedType);
|
|
49225
|
+
}
|
|
49226
|
+
}
|
|
49227
|
+
} else if (isObjectType(namedType)) {
|
|
49228
|
+
for (const iface of namedType.getInterfaces()) {
|
|
49229
|
+
if (isInterfaceType(iface)) {
|
|
49230
|
+
let implementations = this._implementationsMap[iface.name];
|
|
49231
|
+
if (implementations === void 0) {
|
|
49232
|
+
implementations = this._implementationsMap[iface.name] = {
|
|
49233
|
+
objects: [],
|
|
49234
|
+
interfaces: []
|
|
49235
|
+
};
|
|
49236
|
+
}
|
|
49237
|
+
implementations.objects.push(namedType);
|
|
49238
|
+
}
|
|
49239
|
+
}
|
|
49240
|
+
}
|
|
49241
|
+
}
|
|
49242
|
+
}
|
|
49243
|
+
get [Symbol.toStringTag]() {
|
|
49244
|
+
return "GraphQLSchema";
|
|
49245
|
+
}
|
|
49246
|
+
getQueryType() {
|
|
49247
|
+
return this._queryType;
|
|
49248
|
+
}
|
|
49249
|
+
getMutationType() {
|
|
49250
|
+
return this._mutationType;
|
|
49251
|
+
}
|
|
49252
|
+
getSubscriptionType() {
|
|
49253
|
+
return this._subscriptionType;
|
|
49254
|
+
}
|
|
49255
|
+
getRootType(operation) {
|
|
49256
|
+
switch (operation) {
|
|
49257
|
+
case OperationTypeNode.QUERY:
|
|
49258
|
+
return this.getQueryType();
|
|
49259
|
+
case OperationTypeNode.MUTATION:
|
|
49260
|
+
return this.getMutationType();
|
|
49261
|
+
case OperationTypeNode.SUBSCRIPTION:
|
|
49262
|
+
return this.getSubscriptionType();
|
|
49263
|
+
}
|
|
49264
|
+
}
|
|
49265
|
+
getTypeMap() {
|
|
49266
|
+
return this._typeMap;
|
|
49267
|
+
}
|
|
49268
|
+
getType(name) {
|
|
49269
|
+
return this.getTypeMap()[name];
|
|
49270
|
+
}
|
|
49271
|
+
getPossibleTypes(abstractType) {
|
|
49272
|
+
return isUnionType(abstractType) ? abstractType.getTypes() : this.getImplementations(abstractType).objects;
|
|
49273
|
+
}
|
|
49274
|
+
getImplementations(interfaceType) {
|
|
49275
|
+
const implementations = this._implementationsMap[interfaceType.name];
|
|
49276
|
+
return implementations !== null && implementations !== void 0 ? implementations : {
|
|
49277
|
+
objects: [],
|
|
49278
|
+
interfaces: []
|
|
49279
|
+
};
|
|
49280
|
+
}
|
|
49281
|
+
isSubType(abstractType, maybeSubType) {
|
|
49282
|
+
let map = this._subTypeMap[abstractType.name];
|
|
49283
|
+
if (map === void 0) {
|
|
49284
|
+
map = /* @__PURE__ */ Object.create(null);
|
|
49285
|
+
if (isUnionType(abstractType)) {
|
|
49286
|
+
for (const type3 of abstractType.getTypes()) {
|
|
49287
|
+
map[type3.name] = true;
|
|
49288
|
+
}
|
|
49289
|
+
} else {
|
|
49290
|
+
const implementations = this.getImplementations(abstractType);
|
|
49291
|
+
for (const type3 of implementations.objects) {
|
|
49292
|
+
map[type3.name] = true;
|
|
49293
|
+
}
|
|
49294
|
+
for (const type3 of implementations.interfaces) {
|
|
49295
|
+
map[type3.name] = true;
|
|
49296
|
+
}
|
|
49297
|
+
}
|
|
49298
|
+
this._subTypeMap[abstractType.name] = map;
|
|
49299
|
+
}
|
|
49300
|
+
return map[maybeSubType.name] !== void 0;
|
|
49301
|
+
}
|
|
49302
|
+
getDirectives() {
|
|
49303
|
+
return this._directives;
|
|
49304
|
+
}
|
|
49305
|
+
getDirective(name) {
|
|
49306
|
+
return this.getDirectives().find((directive) => directive.name === name);
|
|
49307
|
+
}
|
|
49308
|
+
toConfig() {
|
|
49309
|
+
return {
|
|
49310
|
+
description: this.description,
|
|
49311
|
+
query: this.getQueryType(),
|
|
49312
|
+
mutation: this.getMutationType(),
|
|
49313
|
+
subscription: this.getSubscriptionType(),
|
|
49314
|
+
types: Object.values(this.getTypeMap()),
|
|
49315
|
+
directives: this.getDirectives(),
|
|
49316
|
+
extensions: this.extensions,
|
|
49317
|
+
astNode: this.astNode,
|
|
49318
|
+
extensionASTNodes: this.extensionASTNodes,
|
|
49319
|
+
assumeValid: this.__validationErrors !== void 0
|
|
49320
|
+
};
|
|
49321
|
+
}
|
|
49322
|
+
};
|
|
49323
|
+
function collectReferencedTypes(type3, typeSet) {
|
|
49324
|
+
const namedType = getNamedType(type3);
|
|
49325
|
+
if (!typeSet.has(namedType)) {
|
|
49326
|
+
typeSet.add(namedType);
|
|
49327
|
+
if (isUnionType(namedType)) {
|
|
49328
|
+
for (const memberType of namedType.getTypes()) {
|
|
49329
|
+
collectReferencedTypes(memberType, typeSet);
|
|
49330
|
+
}
|
|
49331
|
+
} else if (isObjectType(namedType) || isInterfaceType(namedType)) {
|
|
49332
|
+
for (const interfaceType of namedType.getInterfaces()) {
|
|
49333
|
+
collectReferencedTypes(interfaceType, typeSet);
|
|
49334
|
+
}
|
|
49335
|
+
for (const field of Object.values(namedType.getFields())) {
|
|
49336
|
+
collectReferencedTypes(field.type, typeSet);
|
|
49337
|
+
for (const arg of field.args) {
|
|
49338
|
+
collectReferencedTypes(arg.type, typeSet);
|
|
49339
|
+
}
|
|
49340
|
+
}
|
|
49341
|
+
} else if (isInputObjectType(namedType)) {
|
|
49342
|
+
for (const field of Object.values(namedType.getFields())) {
|
|
49343
|
+
collectReferencedTypes(field.type, typeSet);
|
|
49344
|
+
}
|
|
49345
|
+
}
|
|
49346
|
+
}
|
|
49347
|
+
return typeSet;
|
|
49348
|
+
}
|
|
49349
|
+
__name(collectReferencedTypes, "collectReferencedTypes");
|
|
49350
|
+
|
|
49351
|
+
// ../../node_modules/.pnpm/graphql@16.10.0/node_modules/graphql/utilities/valueFromAST.mjs
|
|
49352
|
+
function valueFromAST(valueNode, type3, variables) {
|
|
49353
|
+
if (!valueNode) {
|
|
49354
|
+
return;
|
|
49355
|
+
}
|
|
49356
|
+
if (valueNode.kind === Kind.VARIABLE) {
|
|
49357
|
+
const variableName = valueNode.name.value;
|
|
49358
|
+
if (variables == null || variables[variableName] === void 0) {
|
|
49359
|
+
return;
|
|
49360
|
+
}
|
|
49361
|
+
const variableValue = variables[variableName];
|
|
49362
|
+
if (variableValue === null && isNonNullType(type3)) {
|
|
49363
|
+
return;
|
|
49364
|
+
}
|
|
49365
|
+
return variableValue;
|
|
49366
|
+
}
|
|
49367
|
+
if (isNonNullType(type3)) {
|
|
49368
|
+
if (valueNode.kind === Kind.NULL) {
|
|
49369
|
+
return;
|
|
49370
|
+
}
|
|
49371
|
+
return valueFromAST(valueNode, type3.ofType, variables);
|
|
49372
|
+
}
|
|
49373
|
+
if (valueNode.kind === Kind.NULL) {
|
|
49374
|
+
return null;
|
|
49375
|
+
}
|
|
49376
|
+
if (isListType(type3)) {
|
|
49377
|
+
const itemType = type3.ofType;
|
|
49378
|
+
if (valueNode.kind === Kind.LIST) {
|
|
49379
|
+
const coercedValues = [];
|
|
49380
|
+
for (const itemNode of valueNode.values) {
|
|
49381
|
+
if (isMissingVariable(itemNode, variables)) {
|
|
49382
|
+
if (isNonNullType(itemType)) {
|
|
49383
|
+
return;
|
|
49384
|
+
}
|
|
49385
|
+
coercedValues.push(null);
|
|
49386
|
+
} else {
|
|
49387
|
+
const itemValue = valueFromAST(itemNode, itemType, variables);
|
|
49388
|
+
if (itemValue === void 0) {
|
|
49389
|
+
return;
|
|
49390
|
+
}
|
|
49391
|
+
coercedValues.push(itemValue);
|
|
49392
|
+
}
|
|
49393
|
+
}
|
|
49394
|
+
return coercedValues;
|
|
49395
|
+
}
|
|
49396
|
+
const coercedValue = valueFromAST(valueNode, itemType, variables);
|
|
49397
|
+
if (coercedValue === void 0) {
|
|
49398
|
+
return;
|
|
49399
|
+
}
|
|
49400
|
+
return [coercedValue];
|
|
49401
|
+
}
|
|
49402
|
+
if (isInputObjectType(type3)) {
|
|
49403
|
+
if (valueNode.kind !== Kind.OBJECT) {
|
|
49404
|
+
return;
|
|
49405
|
+
}
|
|
49406
|
+
const coercedObj = /* @__PURE__ */ Object.create(null);
|
|
49407
|
+
const fieldNodes = keyMap(valueNode.fields, (field) => field.name.value);
|
|
49408
|
+
for (const field of Object.values(type3.getFields())) {
|
|
49409
|
+
const fieldNode = fieldNodes[field.name];
|
|
49410
|
+
if (!fieldNode || isMissingVariable(fieldNode.value, variables)) {
|
|
49411
|
+
if (field.defaultValue !== void 0) {
|
|
49412
|
+
coercedObj[field.name] = field.defaultValue;
|
|
49413
|
+
} else if (isNonNullType(field.type)) {
|
|
49414
|
+
return;
|
|
49415
|
+
}
|
|
49416
|
+
continue;
|
|
49417
|
+
}
|
|
49418
|
+
const fieldValue = valueFromAST(fieldNode.value, field.type, variables);
|
|
49419
|
+
if (fieldValue === void 0) {
|
|
49420
|
+
return;
|
|
49421
|
+
}
|
|
49422
|
+
coercedObj[field.name] = fieldValue;
|
|
49423
|
+
}
|
|
49424
|
+
if (type3.isOneOf) {
|
|
49425
|
+
const keys = Object.keys(coercedObj);
|
|
49426
|
+
if (keys.length !== 1) {
|
|
49427
|
+
return;
|
|
49428
|
+
}
|
|
49429
|
+
if (coercedObj[keys[0]] === null) {
|
|
49430
|
+
return;
|
|
49431
|
+
}
|
|
49432
|
+
}
|
|
49433
|
+
return coercedObj;
|
|
49434
|
+
}
|
|
49435
|
+
if (isLeafType(type3)) {
|
|
49436
|
+
let result;
|
|
49437
|
+
try {
|
|
49438
|
+
result = type3.parseLiteral(valueNode, variables);
|
|
49439
|
+
} catch (_error) {
|
|
49440
|
+
return;
|
|
49441
|
+
}
|
|
49442
|
+
if (result === void 0) {
|
|
49443
|
+
return;
|
|
49444
|
+
}
|
|
49445
|
+
return result;
|
|
49446
|
+
}
|
|
49447
|
+
invariant(false, "Unexpected input type: " + inspect(type3));
|
|
49448
|
+
}
|
|
49449
|
+
__name(valueFromAST, "valueFromAST");
|
|
49450
|
+
function isMissingVariable(valueNode, variables) {
|
|
49451
|
+
return valueNode.kind === Kind.VARIABLE && (variables == null || variables[valueNode.name.value] === void 0);
|
|
49452
|
+
}
|
|
49453
|
+
__name(isMissingVariable, "isMissingVariable");
|
|
49454
|
+
|
|
48165
49455
|
// ../../node_modules/.pnpm/graphql-request@6.1.0_encoding@0.1.13_graphql@16.10.0/node_modules/graphql-request/build/esm/resolveRequestDocument.js
|
|
48166
49456
|
var extractOperationName = /* @__PURE__ */ __name((document2) => {
|
|
48167
49457
|
let operationName = void 0;
|
|
@@ -51726,13 +53016,13 @@ var deserializeChain = /* @__PURE__ */ __name12((chain) => {
|
|
|
51726
53016
|
gasCosts,
|
|
51727
53017
|
baseAssetId,
|
|
51728
53018
|
chainId,
|
|
51729
|
-
version
|
|
53019
|
+
version: version2
|
|
51730
53020
|
} = consensusParameters;
|
|
51731
53021
|
return {
|
|
51732
53022
|
name,
|
|
51733
53023
|
baseChainHeight: bn(daHeight),
|
|
51734
53024
|
consensusParameters: {
|
|
51735
|
-
version,
|
|
53025
|
+
version: version2,
|
|
51736
53026
|
chainId: bn(chainId),
|
|
51737
53027
|
baseAssetId,
|
|
51738
53028
|
feeParameters: {
|
|
@@ -51782,13 +53072,13 @@ var serializeChain = /* @__PURE__ */ __name12((chain) => {
|
|
|
51782
53072
|
gasCosts,
|
|
51783
53073
|
baseAssetId,
|
|
51784
53074
|
chainId,
|
|
51785
|
-
version
|
|
53075
|
+
version: version2
|
|
51786
53076
|
} = consensusParameters;
|
|
51787
53077
|
return {
|
|
51788
53078
|
name,
|
|
51789
53079
|
daHeight: baseChainHeight.toString(),
|
|
51790
53080
|
consensusParameters: {
|
|
51791
|
-
version,
|
|
53081
|
+
version: version2,
|
|
51792
53082
|
chainId: chainId.toString(),
|
|
51793
53083
|
baseAssetId,
|
|
51794
53084
|
feeParams: {
|
|
@@ -81095,7 +82385,7 @@ import("node:process").then((p) => p.stdout.write(""));
|
|
|
81095
82385
|
import { MapStateStorage, processMetrics } from "@sentio/runtime";
|
|
81096
82386
|
|
|
81097
82387
|
// src/core/database-schema.ts
|
|
81098
|
-
var
|
|
82388
|
+
var import_graphql14 = __toESM(require_graphql2(), 1);
|
|
81099
82389
|
import { ListStateStorage } from "@sentio/runtime";
|
|
81100
82390
|
|
|
81101
82391
|
// src/store/schema.ts
|
|
@@ -81156,7 +82446,7 @@ function checkRelations(schema) {
|
|
|
81156
82446
|
}
|
|
81157
82447
|
}
|
|
81158
82448
|
__name(checkRelations, "checkRelations");
|
|
81159
|
-
function
|
|
82449
|
+
function buildSchema2(doc) {
|
|
81160
82450
|
const schema = (0, import_graphql4.extendSchema)(baseSchema, doc);
|
|
81161
82451
|
const errors = (0, import_graphql4.validateSchema)(schema).filter((err2) => !/query root/i.test(err2.message));
|
|
81162
82452
|
if (errors.length > 0) {
|
|
@@ -81165,9 +82455,863 @@ function buildSchema(doc) {
|
|
|
81165
82455
|
checkRelations(schema);
|
|
81166
82456
|
return schema;
|
|
81167
82457
|
}
|
|
81168
|
-
__name(
|
|
82458
|
+
__name(buildSchema2, "buildSchema");
|
|
81169
82459
|
import("node:process").then((p) => p.stdout.write(""));
|
|
81170
82460
|
|
|
82461
|
+
// ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.10.0/node_modules/@graphql-tools/utils/esm/helpers.js
|
|
82462
|
+
function isSome(input) {
|
|
82463
|
+
return input != null;
|
|
82464
|
+
}
|
|
82465
|
+
__name(isSome, "isSome");
|
|
82466
|
+
|
|
82467
|
+
// ../../node_modules/.pnpm/cross-inspect@1.0.1/node_modules/cross-inspect/esm/index.js
|
|
82468
|
+
var MAX_RECURSIVE_DEPTH2 = 3;
|
|
82469
|
+
function inspect2(value) {
|
|
82470
|
+
return formatValue2(value, []);
|
|
82471
|
+
}
|
|
82472
|
+
__name(inspect2, "inspect");
|
|
82473
|
+
function formatValue2(value, seenValues) {
|
|
82474
|
+
switch (typeof value) {
|
|
82475
|
+
case "string":
|
|
82476
|
+
return JSON.stringify(value);
|
|
82477
|
+
case "function":
|
|
82478
|
+
return value.name ? `[function ${value.name}]` : "[function]";
|
|
82479
|
+
case "object":
|
|
82480
|
+
return formatObjectValue2(value, seenValues);
|
|
82481
|
+
default:
|
|
82482
|
+
return String(value);
|
|
82483
|
+
}
|
|
82484
|
+
}
|
|
82485
|
+
__name(formatValue2, "formatValue");
|
|
82486
|
+
function formatError2(value) {
|
|
82487
|
+
if (value.name = "GraphQLError") {
|
|
82488
|
+
return value.toString();
|
|
82489
|
+
}
|
|
82490
|
+
return `${value.name}: ${value.message};
|
|
82491
|
+
${value.stack}`;
|
|
82492
|
+
}
|
|
82493
|
+
__name(formatError2, "formatError");
|
|
82494
|
+
function formatObjectValue2(value, previouslySeenValues) {
|
|
82495
|
+
if (value === null) {
|
|
82496
|
+
return "null";
|
|
82497
|
+
}
|
|
82498
|
+
if (value instanceof Error) {
|
|
82499
|
+
if (value.name === "AggregateError") {
|
|
82500
|
+
return formatError2(value) + "\n" + formatArray2(value.errors, previouslySeenValues);
|
|
82501
|
+
}
|
|
82502
|
+
return formatError2(value);
|
|
82503
|
+
}
|
|
82504
|
+
if (previouslySeenValues.includes(value)) {
|
|
82505
|
+
return "[Circular]";
|
|
82506
|
+
}
|
|
82507
|
+
const seenValues = [...previouslySeenValues, value];
|
|
82508
|
+
if (isJSONable2(value)) {
|
|
82509
|
+
const jsonValue = value.toJSON();
|
|
82510
|
+
if (jsonValue !== value) {
|
|
82511
|
+
return typeof jsonValue === "string" ? jsonValue : formatValue2(jsonValue, seenValues);
|
|
82512
|
+
}
|
|
82513
|
+
} else if (Array.isArray(value)) {
|
|
82514
|
+
return formatArray2(value, seenValues);
|
|
82515
|
+
}
|
|
82516
|
+
return formatObject2(value, seenValues);
|
|
82517
|
+
}
|
|
82518
|
+
__name(formatObjectValue2, "formatObjectValue");
|
|
82519
|
+
function isJSONable2(value) {
|
|
82520
|
+
return typeof value.toJSON === "function";
|
|
82521
|
+
}
|
|
82522
|
+
__name(isJSONable2, "isJSONable");
|
|
82523
|
+
function formatObject2(object, seenValues) {
|
|
82524
|
+
const entries = Object.entries(object);
|
|
82525
|
+
if (entries.length === 0) {
|
|
82526
|
+
return "{}";
|
|
82527
|
+
}
|
|
82528
|
+
if (seenValues.length > MAX_RECURSIVE_DEPTH2) {
|
|
82529
|
+
return "[" + getObjectTag2(object) + "]";
|
|
82530
|
+
}
|
|
82531
|
+
const properties = entries.map(([key, value]) => key + ": " + formatValue2(value, seenValues));
|
|
82532
|
+
return "{ " + properties.join(", ") + " }";
|
|
82533
|
+
}
|
|
82534
|
+
__name(formatObject2, "formatObject");
|
|
82535
|
+
function formatArray2(array, seenValues) {
|
|
82536
|
+
if (array.length === 0) {
|
|
82537
|
+
return "[]";
|
|
82538
|
+
}
|
|
82539
|
+
if (seenValues.length > MAX_RECURSIVE_DEPTH2) {
|
|
82540
|
+
return "[Array]";
|
|
82541
|
+
}
|
|
82542
|
+
const len = array.length;
|
|
82543
|
+
const items = [];
|
|
82544
|
+
for (let i = 0; i < len; ++i) {
|
|
82545
|
+
items.push(formatValue2(array[i], seenValues));
|
|
82546
|
+
}
|
|
82547
|
+
return "[" + items.join(", ") + "]";
|
|
82548
|
+
}
|
|
82549
|
+
__name(formatArray2, "formatArray");
|
|
82550
|
+
function getObjectTag2(object) {
|
|
82551
|
+
const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
|
|
82552
|
+
if (tag === "Object" && typeof object.constructor === "function") {
|
|
82553
|
+
const name = object.constructor.name;
|
|
82554
|
+
if (typeof name === "string" && name !== "") {
|
|
82555
|
+
return name;
|
|
82556
|
+
}
|
|
82557
|
+
}
|
|
82558
|
+
return tag;
|
|
82559
|
+
}
|
|
82560
|
+
__name(getObjectTag2, "getObjectTag");
|
|
82561
|
+
|
|
82562
|
+
// ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.10.0/node_modules/@graphql-tools/utils/esm/errors.js
|
|
82563
|
+
var possibleGraphQLErrorProperties = [
|
|
82564
|
+
"message",
|
|
82565
|
+
"locations",
|
|
82566
|
+
"path",
|
|
82567
|
+
"nodes",
|
|
82568
|
+
"source",
|
|
82569
|
+
"positions",
|
|
82570
|
+
"originalError",
|
|
82571
|
+
"name",
|
|
82572
|
+
"stack",
|
|
82573
|
+
"extensions"
|
|
82574
|
+
];
|
|
82575
|
+
function isGraphQLErrorLike(error) {
|
|
82576
|
+
return error != null && typeof error === "object" && Object.keys(error).every((key) => possibleGraphQLErrorProperties.includes(key));
|
|
82577
|
+
}
|
|
82578
|
+
__name(isGraphQLErrorLike, "isGraphQLErrorLike");
|
|
82579
|
+
function createGraphQLError(message, options) {
|
|
82580
|
+
if (options?.originalError && !(options.originalError instanceof Error) && isGraphQLErrorLike(options.originalError)) {
|
|
82581
|
+
options.originalError = createGraphQLError(options.originalError.message, options.originalError);
|
|
82582
|
+
}
|
|
82583
|
+
if (versionInfo.major >= 17) {
|
|
82584
|
+
return new GraphQLError(message, options);
|
|
82585
|
+
}
|
|
82586
|
+
return new GraphQLError(message, options?.nodes, options?.source, options?.positions, options?.path, options?.originalError, options?.extensions);
|
|
82587
|
+
}
|
|
82588
|
+
__name(createGraphQLError, "createGraphQLError");
|
|
82589
|
+
|
|
82590
|
+
// ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.10.0/node_modules/@graphql-tools/utils/esm/jsutils.js
|
|
82591
|
+
function isIterableObject2(value) {
|
|
82592
|
+
return value != null && typeof value === "object" && Symbol.iterator in value;
|
|
82593
|
+
}
|
|
82594
|
+
__name(isIterableObject2, "isIterableObject");
|
|
82595
|
+
function isObjectLike2(value) {
|
|
82596
|
+
return typeof value === "object" && value !== null;
|
|
82597
|
+
}
|
|
82598
|
+
__name(isObjectLike2, "isObjectLike");
|
|
82599
|
+
function hasOwnProperty(obj, prop) {
|
|
82600
|
+
return Object.prototype.hasOwnProperty.call(obj, prop);
|
|
82601
|
+
}
|
|
82602
|
+
__name(hasOwnProperty, "hasOwnProperty");
|
|
82603
|
+
|
|
82604
|
+
// ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.10.0/node_modules/@graphql-tools/utils/esm/getArgumentValues.js
|
|
82605
|
+
function getArgumentValues(def, node, variableValues = {}) {
|
|
82606
|
+
const coercedValues = {};
|
|
82607
|
+
const argumentNodes = node.arguments ?? [];
|
|
82608
|
+
const argNodeMap = argumentNodes.reduce((prev, arg) => ({
|
|
82609
|
+
...prev,
|
|
82610
|
+
[arg.name.value]: arg
|
|
82611
|
+
}), {});
|
|
82612
|
+
for (const { name, type: argType, defaultValue } of def.args) {
|
|
82613
|
+
const argumentNode = argNodeMap[name];
|
|
82614
|
+
if (!argumentNode) {
|
|
82615
|
+
if (defaultValue !== void 0) {
|
|
82616
|
+
coercedValues[name] = defaultValue;
|
|
82617
|
+
} else if (isNonNullType(argType)) {
|
|
82618
|
+
throw createGraphQLError(`Argument "${name}" of required type "${inspect2(argType)}" was not provided.`, {
|
|
82619
|
+
nodes: [node]
|
|
82620
|
+
});
|
|
82621
|
+
}
|
|
82622
|
+
continue;
|
|
82623
|
+
}
|
|
82624
|
+
const valueNode = argumentNode.value;
|
|
82625
|
+
let isNull = valueNode.kind === Kind.NULL;
|
|
82626
|
+
if (valueNode.kind === Kind.VARIABLE) {
|
|
82627
|
+
const variableName = valueNode.name.value;
|
|
82628
|
+
if (variableValues == null || !hasOwnProperty(variableValues, variableName)) {
|
|
82629
|
+
if (defaultValue !== void 0) {
|
|
82630
|
+
coercedValues[name] = defaultValue;
|
|
82631
|
+
} else if (isNonNullType(argType)) {
|
|
82632
|
+
throw createGraphQLError(`Argument "${name}" of required type "${inspect2(argType)}" was provided the variable "$${variableName}" which was not provided a runtime value.`, {
|
|
82633
|
+
nodes: [valueNode]
|
|
82634
|
+
});
|
|
82635
|
+
}
|
|
82636
|
+
continue;
|
|
82637
|
+
}
|
|
82638
|
+
isNull = variableValues[variableName] == null;
|
|
82639
|
+
}
|
|
82640
|
+
if (isNull && isNonNullType(argType)) {
|
|
82641
|
+
throw createGraphQLError(`Argument "${name}" of non-null type "${inspect2(argType)}" must not be null.`, {
|
|
82642
|
+
nodes: [valueNode]
|
|
82643
|
+
});
|
|
82644
|
+
}
|
|
82645
|
+
const coercedValue = valueFromAST(valueNode, argType, variableValues);
|
|
82646
|
+
if (coercedValue === void 0) {
|
|
82647
|
+
throw createGraphQLError(`Argument "${name}" has invalid value ${print(valueNode)}.`, {
|
|
82648
|
+
nodes: [valueNode]
|
|
82649
|
+
});
|
|
82650
|
+
}
|
|
82651
|
+
coercedValues[name] = coercedValue;
|
|
82652
|
+
}
|
|
82653
|
+
return coercedValues;
|
|
82654
|
+
}
|
|
82655
|
+
__name(getArgumentValues, "getArgumentValues");
|
|
82656
|
+
|
|
82657
|
+
// ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.10.0/node_modules/@graphql-tools/utils/esm/memoize.js
|
|
82658
|
+
function memoize1(fn) {
|
|
82659
|
+
const memoize1cache = /* @__PURE__ */ new WeakMap();
|
|
82660
|
+
return /* @__PURE__ */ __name(function memoized2(a1) {
|
|
82661
|
+
const cachedValue = memoize1cache.get(a1);
|
|
82662
|
+
if (cachedValue === void 0) {
|
|
82663
|
+
const newValue = fn(a1);
|
|
82664
|
+
memoize1cache.set(a1, newValue);
|
|
82665
|
+
return newValue;
|
|
82666
|
+
}
|
|
82667
|
+
return cachedValue;
|
|
82668
|
+
}, "memoized");
|
|
82669
|
+
}
|
|
82670
|
+
__name(memoize1, "memoize1");
|
|
82671
|
+
|
|
82672
|
+
// ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.10.0/node_modules/@graphql-tools/utils/esm/getDirectiveExtensions.js
|
|
82673
|
+
function getDirectiveExtensions(directableObj, schema, pathToDirectivesInExtensions = ["directives"]) {
|
|
82674
|
+
const directiveExtensions = {};
|
|
82675
|
+
if (directableObj.extensions) {
|
|
82676
|
+
let directivesInExtensions = directableObj.extensions;
|
|
82677
|
+
for (const pathSegment of pathToDirectivesInExtensions) {
|
|
82678
|
+
directivesInExtensions = directivesInExtensions?.[pathSegment];
|
|
82679
|
+
}
|
|
82680
|
+
if (directivesInExtensions != null) {
|
|
82681
|
+
for (const directiveNameProp in directivesInExtensions) {
|
|
82682
|
+
const directiveObjs = directivesInExtensions[directiveNameProp];
|
|
82683
|
+
const directiveName = directiveNameProp;
|
|
82684
|
+
if (Array.isArray(directiveObjs)) {
|
|
82685
|
+
for (const directiveObj of directiveObjs) {
|
|
82686
|
+
let existingDirectiveExtensions = directiveExtensions[directiveName];
|
|
82687
|
+
if (!existingDirectiveExtensions) {
|
|
82688
|
+
existingDirectiveExtensions = [];
|
|
82689
|
+
directiveExtensions[directiveName] = existingDirectiveExtensions;
|
|
82690
|
+
}
|
|
82691
|
+
existingDirectiveExtensions.push(directiveObj);
|
|
82692
|
+
}
|
|
82693
|
+
} else {
|
|
82694
|
+
let existingDirectiveExtensions = directiveExtensions[directiveName];
|
|
82695
|
+
if (!existingDirectiveExtensions) {
|
|
82696
|
+
existingDirectiveExtensions = [];
|
|
82697
|
+
directiveExtensions[directiveName] = existingDirectiveExtensions;
|
|
82698
|
+
}
|
|
82699
|
+
existingDirectiveExtensions.push(directiveObjs);
|
|
82700
|
+
}
|
|
82701
|
+
}
|
|
82702
|
+
}
|
|
82703
|
+
}
|
|
82704
|
+
const memoizedStringify = memoize1((obj) => JSON.stringify(obj));
|
|
82705
|
+
const astNodes = [];
|
|
82706
|
+
if (directableObj.astNode) {
|
|
82707
|
+
astNodes.push(directableObj.astNode);
|
|
82708
|
+
}
|
|
82709
|
+
if (directableObj.extensionASTNodes) {
|
|
82710
|
+
astNodes.push(...directableObj.extensionASTNodes);
|
|
82711
|
+
}
|
|
82712
|
+
for (const astNode of astNodes) {
|
|
82713
|
+
if (astNode.directives?.length) {
|
|
82714
|
+
for (const directive of astNode.directives) {
|
|
82715
|
+
const directiveName = directive.name.value;
|
|
82716
|
+
let existingDirectiveExtensions = directiveExtensions[directiveName];
|
|
82717
|
+
if (!existingDirectiveExtensions) {
|
|
82718
|
+
existingDirectiveExtensions = [];
|
|
82719
|
+
directiveExtensions[directiveName] = existingDirectiveExtensions;
|
|
82720
|
+
}
|
|
82721
|
+
const directiveInSchema = schema?.getDirective(directiveName);
|
|
82722
|
+
let value = {};
|
|
82723
|
+
if (directiveInSchema) {
|
|
82724
|
+
value = getArgumentValues(directiveInSchema, directive);
|
|
82725
|
+
}
|
|
82726
|
+
if (directive.arguments) {
|
|
82727
|
+
for (const argNode of directive.arguments) {
|
|
82728
|
+
const argName = argNode.name.value;
|
|
82729
|
+
if (value[argName] == null) {
|
|
82730
|
+
const argInDirective = directiveInSchema?.args.find((arg) => arg.name === argName);
|
|
82731
|
+
if (argInDirective) {
|
|
82732
|
+
value[argName] = valueFromAST(argNode.value, argInDirective.type);
|
|
82733
|
+
}
|
|
82734
|
+
}
|
|
82735
|
+
if (value[argName] == null) {
|
|
82736
|
+
value[argName] = valueFromASTUntyped(argNode.value);
|
|
82737
|
+
}
|
|
82738
|
+
}
|
|
82739
|
+
}
|
|
82740
|
+
if (astNodes.length > 0 && existingDirectiveExtensions.length > 0) {
|
|
82741
|
+
const valStr = memoizedStringify(value);
|
|
82742
|
+
if (existingDirectiveExtensions.some((val) => memoizedStringify(val) === valStr)) {
|
|
82743
|
+
continue;
|
|
82744
|
+
}
|
|
82745
|
+
}
|
|
82746
|
+
existingDirectiveExtensions.push(value);
|
|
82747
|
+
}
|
|
82748
|
+
}
|
|
82749
|
+
}
|
|
82750
|
+
return directiveExtensions;
|
|
82751
|
+
}
|
|
82752
|
+
__name(getDirectiveExtensions, "getDirectiveExtensions");
|
|
82753
|
+
|
|
82754
|
+
// ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.10.0/node_modules/@graphql-tools/utils/esm/get-directives.js
|
|
82755
|
+
function getDirectivesInExtensions(node, pathToDirectivesInExtensions = ["directives"]) {
|
|
82756
|
+
const directiveExtensions = getDirectiveExtensions(node, void 0, pathToDirectivesInExtensions);
|
|
82757
|
+
return Object.entries(directiveExtensions).map(([directiveName, directiveArgsArr]) => directiveArgsArr?.map((directiveArgs) => ({
|
|
82758
|
+
name: directiveName,
|
|
82759
|
+
args: directiveArgs
|
|
82760
|
+
}))).flat(Infinity).filter(Boolean);
|
|
82761
|
+
}
|
|
82762
|
+
__name(getDirectivesInExtensions, "getDirectivesInExtensions");
|
|
82763
|
+
|
|
82764
|
+
// ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.10.0/node_modules/@graphql-tools/utils/esm/astFromType.js
|
|
82765
|
+
function astFromType(type3) {
|
|
82766
|
+
if (isNonNullType(type3)) {
|
|
82767
|
+
const innerType = astFromType(type3.ofType);
|
|
82768
|
+
if (innerType.kind === Kind.NON_NULL_TYPE) {
|
|
82769
|
+
throw new Error(`Invalid type node ${inspect2(type3)}. Inner type of non-null type cannot be a non-null type.`);
|
|
82770
|
+
}
|
|
82771
|
+
return {
|
|
82772
|
+
kind: Kind.NON_NULL_TYPE,
|
|
82773
|
+
type: innerType
|
|
82774
|
+
};
|
|
82775
|
+
} else if (isListType(type3)) {
|
|
82776
|
+
return {
|
|
82777
|
+
kind: Kind.LIST_TYPE,
|
|
82778
|
+
type: astFromType(type3.ofType)
|
|
82779
|
+
};
|
|
82780
|
+
}
|
|
82781
|
+
return {
|
|
82782
|
+
kind: Kind.NAMED_TYPE,
|
|
82783
|
+
name: {
|
|
82784
|
+
kind: Kind.NAME,
|
|
82785
|
+
value: type3.name
|
|
82786
|
+
}
|
|
82787
|
+
};
|
|
82788
|
+
}
|
|
82789
|
+
__name(astFromType, "astFromType");
|
|
82790
|
+
|
|
82791
|
+
// ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.10.0/node_modules/@graphql-tools/utils/esm/astFromValueUntyped.js
|
|
82792
|
+
function astFromValueUntyped(value) {
|
|
82793
|
+
if (value === null) {
|
|
82794
|
+
return { kind: Kind.NULL };
|
|
82795
|
+
}
|
|
82796
|
+
if (value === void 0) {
|
|
82797
|
+
return null;
|
|
82798
|
+
}
|
|
82799
|
+
if (Array.isArray(value)) {
|
|
82800
|
+
const valuesNodes = [];
|
|
82801
|
+
for (const item of value) {
|
|
82802
|
+
const itemNode = astFromValueUntyped(item);
|
|
82803
|
+
if (itemNode != null) {
|
|
82804
|
+
valuesNodes.push(itemNode);
|
|
82805
|
+
}
|
|
82806
|
+
}
|
|
82807
|
+
return { kind: Kind.LIST, values: valuesNodes };
|
|
82808
|
+
}
|
|
82809
|
+
if (typeof value === "object") {
|
|
82810
|
+
if (value?.toJSON) {
|
|
82811
|
+
return astFromValueUntyped(value.toJSON());
|
|
82812
|
+
}
|
|
82813
|
+
const fieldNodes = [];
|
|
82814
|
+
for (const fieldName in value) {
|
|
82815
|
+
const fieldValue = value[fieldName];
|
|
82816
|
+
const ast = astFromValueUntyped(fieldValue);
|
|
82817
|
+
if (ast) {
|
|
82818
|
+
fieldNodes.push({
|
|
82819
|
+
kind: Kind.OBJECT_FIELD,
|
|
82820
|
+
name: { kind: Kind.NAME, value: fieldName },
|
|
82821
|
+
value: ast
|
|
82822
|
+
});
|
|
82823
|
+
}
|
|
82824
|
+
}
|
|
82825
|
+
return { kind: Kind.OBJECT, fields: fieldNodes };
|
|
82826
|
+
}
|
|
82827
|
+
if (typeof value === "boolean") {
|
|
82828
|
+
return { kind: Kind.BOOLEAN, value };
|
|
82829
|
+
}
|
|
82830
|
+
if (typeof value === "bigint") {
|
|
82831
|
+
return { kind: Kind.INT, value: String(value) };
|
|
82832
|
+
}
|
|
82833
|
+
if (typeof value === "number" && isFinite(value)) {
|
|
82834
|
+
const stringNum = String(value);
|
|
82835
|
+
return integerStringRegExp2.test(stringNum) ? { kind: Kind.INT, value: stringNum } : { kind: Kind.FLOAT, value: stringNum };
|
|
82836
|
+
}
|
|
82837
|
+
if (typeof value === "string") {
|
|
82838
|
+
return { kind: Kind.STRING, value };
|
|
82839
|
+
}
|
|
82840
|
+
throw new TypeError(`Cannot convert value to AST: ${value}.`);
|
|
82841
|
+
}
|
|
82842
|
+
__name(astFromValueUntyped, "astFromValueUntyped");
|
|
82843
|
+
var integerStringRegExp2 = /^-?(?:0|[1-9][0-9]*)$/;
|
|
82844
|
+
|
|
82845
|
+
// ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.10.0/node_modules/@graphql-tools/utils/esm/astFromValue.js
|
|
82846
|
+
function astFromValue2(value, type3) {
|
|
82847
|
+
if (isNonNullType(type3)) {
|
|
82848
|
+
const astValue = astFromValue2(value, type3.ofType);
|
|
82849
|
+
if (astValue?.kind === Kind.NULL) {
|
|
82850
|
+
return null;
|
|
82851
|
+
}
|
|
82852
|
+
return astValue;
|
|
82853
|
+
}
|
|
82854
|
+
if (value === null) {
|
|
82855
|
+
return { kind: Kind.NULL };
|
|
82856
|
+
}
|
|
82857
|
+
if (value === void 0) {
|
|
82858
|
+
return null;
|
|
82859
|
+
}
|
|
82860
|
+
if (isListType(type3)) {
|
|
82861
|
+
const itemType = type3.ofType;
|
|
82862
|
+
if (isIterableObject2(value)) {
|
|
82863
|
+
const valuesNodes = [];
|
|
82864
|
+
for (const item of value) {
|
|
82865
|
+
const itemNode = astFromValue2(item, itemType);
|
|
82866
|
+
if (itemNode != null) {
|
|
82867
|
+
valuesNodes.push(itemNode);
|
|
82868
|
+
}
|
|
82869
|
+
}
|
|
82870
|
+
return { kind: Kind.LIST, values: valuesNodes };
|
|
82871
|
+
}
|
|
82872
|
+
return astFromValue2(value, itemType);
|
|
82873
|
+
}
|
|
82874
|
+
if (isInputObjectType(type3)) {
|
|
82875
|
+
if (!isObjectLike2(value)) {
|
|
82876
|
+
return null;
|
|
82877
|
+
}
|
|
82878
|
+
const fieldNodes = [];
|
|
82879
|
+
for (const field of Object.values(type3.getFields())) {
|
|
82880
|
+
const fieldValue = astFromValue2(value[field.name], field.type);
|
|
82881
|
+
if (fieldValue) {
|
|
82882
|
+
fieldNodes.push({
|
|
82883
|
+
kind: Kind.OBJECT_FIELD,
|
|
82884
|
+
name: { kind: Kind.NAME, value: field.name },
|
|
82885
|
+
value: fieldValue
|
|
82886
|
+
});
|
|
82887
|
+
}
|
|
82888
|
+
}
|
|
82889
|
+
return { kind: Kind.OBJECT, fields: fieldNodes };
|
|
82890
|
+
}
|
|
82891
|
+
if (isLeafType(type3)) {
|
|
82892
|
+
const serialized = type3.serialize(value);
|
|
82893
|
+
if (serialized == null) {
|
|
82894
|
+
return null;
|
|
82895
|
+
}
|
|
82896
|
+
if (isEnumType(type3)) {
|
|
82897
|
+
return { kind: Kind.ENUM, value: serialized };
|
|
82898
|
+
}
|
|
82899
|
+
if (type3.name === "ID" && typeof serialized === "string" && integerStringRegExp3.test(serialized)) {
|
|
82900
|
+
return { kind: Kind.INT, value: serialized };
|
|
82901
|
+
}
|
|
82902
|
+
return astFromValueUntyped(serialized);
|
|
82903
|
+
}
|
|
82904
|
+
console.assert(false, "Unexpected input type: " + inspect2(type3));
|
|
82905
|
+
}
|
|
82906
|
+
__name(astFromValue2, "astFromValue");
|
|
82907
|
+
var integerStringRegExp3 = /^-?(?:0|[1-9][0-9]*)$/;
|
|
82908
|
+
|
|
82909
|
+
// ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.10.0/node_modules/@graphql-tools/utils/esm/descriptionFromObject.js
|
|
82910
|
+
function getDescriptionNode(obj) {
|
|
82911
|
+
if (obj.astNode?.description) {
|
|
82912
|
+
return {
|
|
82913
|
+
...obj.astNode.description,
|
|
82914
|
+
block: true
|
|
82915
|
+
};
|
|
82916
|
+
}
|
|
82917
|
+
if (obj.description) {
|
|
82918
|
+
return {
|
|
82919
|
+
kind: Kind.STRING,
|
|
82920
|
+
value: obj.description,
|
|
82921
|
+
block: true
|
|
82922
|
+
};
|
|
82923
|
+
}
|
|
82924
|
+
}
|
|
82925
|
+
__name(getDescriptionNode, "getDescriptionNode");
|
|
82926
|
+
|
|
82927
|
+
// ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.10.0/node_modules/@graphql-tools/utils/esm/rootTypes.js
|
|
82928
|
+
var getRootTypeNames = memoize1(/* @__PURE__ */ __name(function getRootTypeNames2(schema) {
|
|
82929
|
+
const rootTypes = getRootTypes(schema);
|
|
82930
|
+
return new Set([...rootTypes].map((type3) => type3.name));
|
|
82931
|
+
}, "getRootTypeNames"));
|
|
82932
|
+
var getRootTypes = memoize1(/* @__PURE__ */ __name(function getRootTypes2(schema) {
|
|
82933
|
+
const rootTypeMap = getRootTypeMap(schema);
|
|
82934
|
+
return new Set(rootTypeMap.values());
|
|
82935
|
+
}, "getRootTypes"));
|
|
82936
|
+
var getRootTypeMap = memoize1(/* @__PURE__ */ __name(function getRootTypeMap2(schema) {
|
|
82937
|
+
const rootTypeMap = /* @__PURE__ */ new Map();
|
|
82938
|
+
const queryType = schema.getQueryType();
|
|
82939
|
+
if (queryType) {
|
|
82940
|
+
rootTypeMap.set("query", queryType);
|
|
82941
|
+
}
|
|
82942
|
+
const mutationType = schema.getMutationType();
|
|
82943
|
+
if (mutationType) {
|
|
82944
|
+
rootTypeMap.set("mutation", mutationType);
|
|
82945
|
+
}
|
|
82946
|
+
const subscriptionType = schema.getSubscriptionType();
|
|
82947
|
+
if (subscriptionType) {
|
|
82948
|
+
rootTypeMap.set("subscription", subscriptionType);
|
|
82949
|
+
}
|
|
82950
|
+
return rootTypeMap;
|
|
82951
|
+
}, "getRootTypeMap"));
|
|
82952
|
+
|
|
82953
|
+
// ../../node_modules/.pnpm/@graphql-tools+utils@10.9.1_graphql@16.10.0/node_modules/@graphql-tools/utils/esm/print-schema-with-directives.js
|
|
82954
|
+
function getDocumentNodeFromSchema(schema, options = {}) {
|
|
82955
|
+
const pathToDirectivesInExtensions = options.pathToDirectivesInExtensions;
|
|
82956
|
+
const typesMap = schema.getTypeMap();
|
|
82957
|
+
const schemaNode = astFromSchema(schema, pathToDirectivesInExtensions);
|
|
82958
|
+
const definitions = schemaNode != null ? [schemaNode] : [];
|
|
82959
|
+
const directives = schema.getDirectives();
|
|
82960
|
+
for (const directive of directives) {
|
|
82961
|
+
if (isSpecifiedDirective(directive)) {
|
|
82962
|
+
continue;
|
|
82963
|
+
}
|
|
82964
|
+
definitions.push(astFromDirective(directive, schema, pathToDirectivesInExtensions));
|
|
82965
|
+
}
|
|
82966
|
+
for (const typeName in typesMap) {
|
|
82967
|
+
const type3 = typesMap[typeName];
|
|
82968
|
+
const isPredefinedScalar = isSpecifiedScalarType(type3);
|
|
82969
|
+
const isIntrospection = isIntrospectionType(type3);
|
|
82970
|
+
if (isPredefinedScalar || isIntrospection) {
|
|
82971
|
+
continue;
|
|
82972
|
+
}
|
|
82973
|
+
if (isObjectType(type3)) {
|
|
82974
|
+
definitions.push(astFromObjectType(type3, schema, pathToDirectivesInExtensions));
|
|
82975
|
+
} else if (isInterfaceType(type3)) {
|
|
82976
|
+
definitions.push(astFromInterfaceType(type3, schema, pathToDirectivesInExtensions));
|
|
82977
|
+
} else if (isUnionType(type3)) {
|
|
82978
|
+
definitions.push(astFromUnionType(type3, schema, pathToDirectivesInExtensions));
|
|
82979
|
+
} else if (isInputObjectType(type3)) {
|
|
82980
|
+
definitions.push(astFromInputObjectType(type3, schema, pathToDirectivesInExtensions));
|
|
82981
|
+
} else if (isEnumType(type3)) {
|
|
82982
|
+
definitions.push(astFromEnumType(type3, schema, pathToDirectivesInExtensions));
|
|
82983
|
+
} else if (isScalarType(type3)) {
|
|
82984
|
+
definitions.push(astFromScalarType(type3, schema, pathToDirectivesInExtensions));
|
|
82985
|
+
} else {
|
|
82986
|
+
throw new Error(`Unknown type ${type3}.`);
|
|
82987
|
+
}
|
|
82988
|
+
}
|
|
82989
|
+
return {
|
|
82990
|
+
kind: Kind.DOCUMENT,
|
|
82991
|
+
definitions
|
|
82992
|
+
};
|
|
82993
|
+
}
|
|
82994
|
+
__name(getDocumentNodeFromSchema, "getDocumentNodeFromSchema");
|
|
82995
|
+
function printSchemaWithDirectives(schema, options = {}) {
|
|
82996
|
+
const documentNode = getDocumentNodeFromSchema(schema, options);
|
|
82997
|
+
return print(documentNode);
|
|
82998
|
+
}
|
|
82999
|
+
__name(printSchemaWithDirectives, "printSchemaWithDirectives");
|
|
83000
|
+
function astFromSchema(schema, pathToDirectivesInExtensions) {
|
|
83001
|
+
const operationTypeMap = /* @__PURE__ */ new Map([
|
|
83002
|
+
["query", void 0],
|
|
83003
|
+
["mutation", void 0],
|
|
83004
|
+
["subscription", void 0]
|
|
83005
|
+
]);
|
|
83006
|
+
const nodes = [];
|
|
83007
|
+
if (schema.astNode != null) {
|
|
83008
|
+
nodes.push(schema.astNode);
|
|
83009
|
+
}
|
|
83010
|
+
if (schema.extensionASTNodes != null) {
|
|
83011
|
+
for (const extensionASTNode of schema.extensionASTNodes) {
|
|
83012
|
+
nodes.push(extensionASTNode);
|
|
83013
|
+
}
|
|
83014
|
+
}
|
|
83015
|
+
for (const node of nodes) {
|
|
83016
|
+
if (node.operationTypes) {
|
|
83017
|
+
for (const operationTypeDefinitionNode of node.operationTypes) {
|
|
83018
|
+
operationTypeMap.set(operationTypeDefinitionNode.operation, operationTypeDefinitionNode);
|
|
83019
|
+
}
|
|
83020
|
+
}
|
|
83021
|
+
}
|
|
83022
|
+
const rootTypeMap = getRootTypeMap(schema);
|
|
83023
|
+
for (const [operationTypeNode, operationTypeDefinitionNode] of operationTypeMap) {
|
|
83024
|
+
const rootType = rootTypeMap.get(operationTypeNode);
|
|
83025
|
+
if (rootType != null) {
|
|
83026
|
+
const rootTypeAST = astFromType(rootType);
|
|
83027
|
+
if (operationTypeDefinitionNode != null) {
|
|
83028
|
+
operationTypeDefinitionNode.type = rootTypeAST;
|
|
83029
|
+
} else {
|
|
83030
|
+
operationTypeMap.set(operationTypeNode, {
|
|
83031
|
+
kind: Kind.OPERATION_TYPE_DEFINITION,
|
|
83032
|
+
operation: operationTypeNode,
|
|
83033
|
+
type: rootTypeAST
|
|
83034
|
+
});
|
|
83035
|
+
}
|
|
83036
|
+
}
|
|
83037
|
+
}
|
|
83038
|
+
const operationTypes = [...operationTypeMap.values()].filter(isSome);
|
|
83039
|
+
const directives = getDirectiveNodes(schema, schema, pathToDirectivesInExtensions);
|
|
83040
|
+
if (!operationTypes.length && !directives.length) {
|
|
83041
|
+
return null;
|
|
83042
|
+
}
|
|
83043
|
+
const schemaNode = {
|
|
83044
|
+
kind: operationTypes != null ? Kind.SCHEMA_DEFINITION : Kind.SCHEMA_EXTENSION,
|
|
83045
|
+
operationTypes,
|
|
83046
|
+
// ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
|
|
83047
|
+
directives
|
|
83048
|
+
};
|
|
83049
|
+
const descriptionNode = getDescriptionNode(schema);
|
|
83050
|
+
if (descriptionNode) {
|
|
83051
|
+
schemaNode.description = descriptionNode;
|
|
83052
|
+
}
|
|
83053
|
+
return schemaNode;
|
|
83054
|
+
}
|
|
83055
|
+
__name(astFromSchema, "astFromSchema");
|
|
83056
|
+
function astFromDirective(directive, schema, pathToDirectivesInExtensions) {
|
|
83057
|
+
return {
|
|
83058
|
+
kind: Kind.DIRECTIVE_DEFINITION,
|
|
83059
|
+
description: getDescriptionNode(directive),
|
|
83060
|
+
name: {
|
|
83061
|
+
kind: Kind.NAME,
|
|
83062
|
+
value: directive.name
|
|
83063
|
+
},
|
|
83064
|
+
arguments: directive.args?.map((arg) => astFromArg(arg, schema, pathToDirectivesInExtensions)),
|
|
83065
|
+
repeatable: directive.isRepeatable,
|
|
83066
|
+
locations: directive.locations?.map((location) => ({
|
|
83067
|
+
kind: Kind.NAME,
|
|
83068
|
+
value: location
|
|
83069
|
+
})) || []
|
|
83070
|
+
};
|
|
83071
|
+
}
|
|
83072
|
+
__name(astFromDirective, "astFromDirective");
|
|
83073
|
+
function getDirectiveNodes(entity, schema, pathToDirectivesInExtensions) {
|
|
83074
|
+
let directiveNodesBesidesNativeDirectives = [];
|
|
83075
|
+
const directivesInExtensions = getDirectivesInExtensions(entity, pathToDirectivesInExtensions);
|
|
83076
|
+
let directives;
|
|
83077
|
+
if (directivesInExtensions != null) {
|
|
83078
|
+
directives = makeDirectiveNodes(schema, directivesInExtensions);
|
|
83079
|
+
}
|
|
83080
|
+
let deprecatedDirectiveNode = null;
|
|
83081
|
+
let specifiedByDirectiveNode = null;
|
|
83082
|
+
let oneOfDirectiveNode = null;
|
|
83083
|
+
if (directives != null) {
|
|
83084
|
+
directiveNodesBesidesNativeDirectives = directives.filter((directive) => specifiedDirectives.every((specifiedDirective) => specifiedDirective.name !== directive.name.value));
|
|
83085
|
+
deprecatedDirectiveNode = directives.find((directive) => directive.name.value === "deprecated");
|
|
83086
|
+
specifiedByDirectiveNode = directives.find((directive) => directive.name.value === "specifiedBy");
|
|
83087
|
+
oneOfDirectiveNode = directives.find((directive) => directive.name.value === "oneOf");
|
|
83088
|
+
}
|
|
83089
|
+
if (entity.deprecationReason != null && deprecatedDirectiveNode == null) {
|
|
83090
|
+
deprecatedDirectiveNode = makeDeprecatedDirective(entity.deprecationReason);
|
|
83091
|
+
}
|
|
83092
|
+
if (entity.specifiedByUrl != null || entity.specifiedByURL != null && specifiedByDirectiveNode == null) {
|
|
83093
|
+
const specifiedByValue = entity.specifiedByUrl || entity.specifiedByURL;
|
|
83094
|
+
const specifiedByArgs = {
|
|
83095
|
+
url: specifiedByValue
|
|
83096
|
+
};
|
|
83097
|
+
specifiedByDirectiveNode = makeDirectiveNode("specifiedBy", specifiedByArgs);
|
|
83098
|
+
}
|
|
83099
|
+
if (entity.isOneOf && oneOfDirectiveNode == null) {
|
|
83100
|
+
oneOfDirectiveNode = makeDirectiveNode("oneOf");
|
|
83101
|
+
}
|
|
83102
|
+
if (deprecatedDirectiveNode != null) {
|
|
83103
|
+
directiveNodesBesidesNativeDirectives.push(deprecatedDirectiveNode);
|
|
83104
|
+
}
|
|
83105
|
+
if (specifiedByDirectiveNode != null) {
|
|
83106
|
+
directiveNodesBesidesNativeDirectives.push(specifiedByDirectiveNode);
|
|
83107
|
+
}
|
|
83108
|
+
if (oneOfDirectiveNode != null) {
|
|
83109
|
+
directiveNodesBesidesNativeDirectives.push(oneOfDirectiveNode);
|
|
83110
|
+
}
|
|
83111
|
+
return directiveNodesBesidesNativeDirectives;
|
|
83112
|
+
}
|
|
83113
|
+
__name(getDirectiveNodes, "getDirectiveNodes");
|
|
83114
|
+
function astFromArg(arg, schema, pathToDirectivesInExtensions) {
|
|
83115
|
+
return {
|
|
83116
|
+
kind: Kind.INPUT_VALUE_DEFINITION,
|
|
83117
|
+
description: getDescriptionNode(arg),
|
|
83118
|
+
name: {
|
|
83119
|
+
kind: Kind.NAME,
|
|
83120
|
+
value: arg.name
|
|
83121
|
+
},
|
|
83122
|
+
type: astFromType(arg.type),
|
|
83123
|
+
// ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
|
|
83124
|
+
defaultValue: arg.defaultValue !== void 0 ? astFromValue2(arg.defaultValue, arg.type) ?? void 0 : void 0,
|
|
83125
|
+
directives: getDirectiveNodes(arg, schema, pathToDirectivesInExtensions)
|
|
83126
|
+
};
|
|
83127
|
+
}
|
|
83128
|
+
__name(astFromArg, "astFromArg");
|
|
83129
|
+
function astFromObjectType(type3, schema, pathToDirectivesInExtensions) {
|
|
83130
|
+
return {
|
|
83131
|
+
kind: Kind.OBJECT_TYPE_DEFINITION,
|
|
83132
|
+
description: getDescriptionNode(type3),
|
|
83133
|
+
name: {
|
|
83134
|
+
kind: Kind.NAME,
|
|
83135
|
+
value: type3.name
|
|
83136
|
+
},
|
|
83137
|
+
fields: Object.values(type3.getFields()).map((field) => astFromField(field, schema, pathToDirectivesInExtensions)),
|
|
83138
|
+
interfaces: Object.values(type3.getInterfaces()).map((iFace) => astFromType(iFace)),
|
|
83139
|
+
directives: getDirectiveNodes(type3, schema, pathToDirectivesInExtensions)
|
|
83140
|
+
};
|
|
83141
|
+
}
|
|
83142
|
+
__name(astFromObjectType, "astFromObjectType");
|
|
83143
|
+
function astFromInterfaceType(type3, schema, pathToDirectivesInExtensions) {
|
|
83144
|
+
const node = {
|
|
83145
|
+
kind: Kind.INTERFACE_TYPE_DEFINITION,
|
|
83146
|
+
description: getDescriptionNode(type3),
|
|
83147
|
+
name: {
|
|
83148
|
+
kind: Kind.NAME,
|
|
83149
|
+
value: type3.name
|
|
83150
|
+
},
|
|
83151
|
+
fields: Object.values(type3.getFields()).map((field) => astFromField(field, schema, pathToDirectivesInExtensions)),
|
|
83152
|
+
directives: getDirectiveNodes(type3, schema, pathToDirectivesInExtensions)
|
|
83153
|
+
};
|
|
83154
|
+
if ("getInterfaces" in type3) {
|
|
83155
|
+
node.interfaces = Object.values(type3.getInterfaces()).map((iFace) => astFromType(iFace));
|
|
83156
|
+
}
|
|
83157
|
+
return node;
|
|
83158
|
+
}
|
|
83159
|
+
__name(astFromInterfaceType, "astFromInterfaceType");
|
|
83160
|
+
function astFromUnionType(type3, schema, pathToDirectivesInExtensions) {
|
|
83161
|
+
return {
|
|
83162
|
+
kind: Kind.UNION_TYPE_DEFINITION,
|
|
83163
|
+
description: getDescriptionNode(type3),
|
|
83164
|
+
name: {
|
|
83165
|
+
kind: Kind.NAME,
|
|
83166
|
+
value: type3.name
|
|
83167
|
+
},
|
|
83168
|
+
// ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
|
|
83169
|
+
directives: getDirectiveNodes(type3, schema, pathToDirectivesInExtensions),
|
|
83170
|
+
types: type3.getTypes().map((type4) => astFromType(type4))
|
|
83171
|
+
};
|
|
83172
|
+
}
|
|
83173
|
+
__name(astFromUnionType, "astFromUnionType");
|
|
83174
|
+
function astFromInputObjectType(type3, schema, pathToDirectivesInExtensions) {
|
|
83175
|
+
return {
|
|
83176
|
+
kind: Kind.INPUT_OBJECT_TYPE_DEFINITION,
|
|
83177
|
+
description: getDescriptionNode(type3),
|
|
83178
|
+
name: {
|
|
83179
|
+
kind: Kind.NAME,
|
|
83180
|
+
value: type3.name
|
|
83181
|
+
},
|
|
83182
|
+
fields: Object.values(type3.getFields()).map((field) => astFromInputField(field, schema, pathToDirectivesInExtensions)),
|
|
83183
|
+
// ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
|
|
83184
|
+
directives: getDirectiveNodes(type3, schema, pathToDirectivesInExtensions)
|
|
83185
|
+
};
|
|
83186
|
+
}
|
|
83187
|
+
__name(astFromInputObjectType, "astFromInputObjectType");
|
|
83188
|
+
function astFromEnumType(type3, schema, pathToDirectivesInExtensions) {
|
|
83189
|
+
return {
|
|
83190
|
+
kind: Kind.ENUM_TYPE_DEFINITION,
|
|
83191
|
+
description: getDescriptionNode(type3),
|
|
83192
|
+
name: {
|
|
83193
|
+
kind: Kind.NAME,
|
|
83194
|
+
value: type3.name
|
|
83195
|
+
},
|
|
83196
|
+
values: Object.values(type3.getValues()).map((value) => astFromEnumValue(value, schema, pathToDirectivesInExtensions)),
|
|
83197
|
+
// ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
|
|
83198
|
+
directives: getDirectiveNodes(type3, schema, pathToDirectivesInExtensions)
|
|
83199
|
+
};
|
|
83200
|
+
}
|
|
83201
|
+
__name(astFromEnumType, "astFromEnumType");
|
|
83202
|
+
function astFromScalarType(type3, schema, pathToDirectivesInExtensions) {
|
|
83203
|
+
const directivesInExtensions = getDirectivesInExtensions(type3, pathToDirectivesInExtensions);
|
|
83204
|
+
const directives = makeDirectiveNodes(schema, directivesInExtensions);
|
|
83205
|
+
const specifiedByValue = type3["specifiedByUrl"] || type3["specifiedByURL"];
|
|
83206
|
+
if (specifiedByValue && !directives.some((directiveNode) => directiveNode.name.value === "specifiedBy")) {
|
|
83207
|
+
const specifiedByArgs = {
|
|
83208
|
+
url: specifiedByValue
|
|
83209
|
+
};
|
|
83210
|
+
directives.push(makeDirectiveNode("specifiedBy", specifiedByArgs));
|
|
83211
|
+
}
|
|
83212
|
+
return {
|
|
83213
|
+
kind: Kind.SCALAR_TYPE_DEFINITION,
|
|
83214
|
+
description: getDescriptionNode(type3),
|
|
83215
|
+
name: {
|
|
83216
|
+
kind: Kind.NAME,
|
|
83217
|
+
value: type3.name
|
|
83218
|
+
},
|
|
83219
|
+
// ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
|
|
83220
|
+
directives
|
|
83221
|
+
};
|
|
83222
|
+
}
|
|
83223
|
+
__name(astFromScalarType, "astFromScalarType");
|
|
83224
|
+
function astFromField(field, schema, pathToDirectivesInExtensions) {
|
|
83225
|
+
return {
|
|
83226
|
+
kind: Kind.FIELD_DEFINITION,
|
|
83227
|
+
description: getDescriptionNode(field),
|
|
83228
|
+
name: {
|
|
83229
|
+
kind: Kind.NAME,
|
|
83230
|
+
value: field.name
|
|
83231
|
+
},
|
|
83232
|
+
arguments: field.args.map((arg) => astFromArg(arg, schema, pathToDirectivesInExtensions)),
|
|
83233
|
+
type: astFromType(field.type),
|
|
83234
|
+
// ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
|
|
83235
|
+
directives: getDirectiveNodes(field, schema, pathToDirectivesInExtensions)
|
|
83236
|
+
};
|
|
83237
|
+
}
|
|
83238
|
+
__name(astFromField, "astFromField");
|
|
83239
|
+
function astFromInputField(field, schema, pathToDirectivesInExtensions) {
|
|
83240
|
+
return {
|
|
83241
|
+
kind: Kind.INPUT_VALUE_DEFINITION,
|
|
83242
|
+
description: getDescriptionNode(field),
|
|
83243
|
+
name: {
|
|
83244
|
+
kind: Kind.NAME,
|
|
83245
|
+
value: field.name
|
|
83246
|
+
},
|
|
83247
|
+
type: astFromType(field.type),
|
|
83248
|
+
// ConstXNode has been introduced in v16 but it is not compatible with XNode so we do `as any` for backwards compatibility
|
|
83249
|
+
directives: getDirectiveNodes(field, schema, pathToDirectivesInExtensions),
|
|
83250
|
+
defaultValue: astFromValue2(field.defaultValue, field.type) ?? void 0
|
|
83251
|
+
};
|
|
83252
|
+
}
|
|
83253
|
+
__name(astFromInputField, "astFromInputField");
|
|
83254
|
+
function astFromEnumValue(value, schema, pathToDirectivesInExtensions) {
|
|
83255
|
+
return {
|
|
83256
|
+
kind: Kind.ENUM_VALUE_DEFINITION,
|
|
83257
|
+
description: getDescriptionNode(value),
|
|
83258
|
+
name: {
|
|
83259
|
+
kind: Kind.NAME,
|
|
83260
|
+
value: value.name
|
|
83261
|
+
},
|
|
83262
|
+
directives: getDirectiveNodes(value, schema, pathToDirectivesInExtensions)
|
|
83263
|
+
};
|
|
83264
|
+
}
|
|
83265
|
+
__name(astFromEnumValue, "astFromEnumValue");
|
|
83266
|
+
function makeDeprecatedDirective(deprecationReason) {
|
|
83267
|
+
return makeDirectiveNode("deprecated", { reason: deprecationReason }, GraphQLDeprecatedDirective);
|
|
83268
|
+
}
|
|
83269
|
+
__name(makeDeprecatedDirective, "makeDeprecatedDirective");
|
|
83270
|
+
function makeDirectiveNode(name, args, directive) {
|
|
83271
|
+
const directiveArguments = [];
|
|
83272
|
+
for (const argName in args) {
|
|
83273
|
+
const argValue = args[argName];
|
|
83274
|
+
let value;
|
|
83275
|
+
if (directive != null) {
|
|
83276
|
+
const arg = directive.args.find((arg2) => arg2.name === argName);
|
|
83277
|
+
if (arg) {
|
|
83278
|
+
value = astFromValue2(argValue, arg.type);
|
|
83279
|
+
}
|
|
83280
|
+
}
|
|
83281
|
+
if (value == null) {
|
|
83282
|
+
value = astFromValueUntyped(argValue);
|
|
83283
|
+
}
|
|
83284
|
+
if (value != null) {
|
|
83285
|
+
directiveArguments.push({
|
|
83286
|
+
kind: Kind.ARGUMENT,
|
|
83287
|
+
name: {
|
|
83288
|
+
kind: Kind.NAME,
|
|
83289
|
+
value: argName
|
|
83290
|
+
},
|
|
83291
|
+
value
|
|
83292
|
+
});
|
|
83293
|
+
}
|
|
83294
|
+
}
|
|
83295
|
+
return {
|
|
83296
|
+
kind: Kind.DIRECTIVE,
|
|
83297
|
+
name: {
|
|
83298
|
+
kind: Kind.NAME,
|
|
83299
|
+
value: name
|
|
83300
|
+
},
|
|
83301
|
+
arguments: directiveArguments
|
|
83302
|
+
};
|
|
83303
|
+
}
|
|
83304
|
+
__name(makeDirectiveNode, "makeDirectiveNode");
|
|
83305
|
+
function makeDirectiveNodes(schema, directiveValues) {
|
|
83306
|
+
const directiveNodes = [];
|
|
83307
|
+
for (const { name, args } of directiveValues) {
|
|
83308
|
+
const directive = schema?.getDirective(name);
|
|
83309
|
+
directiveNodes.push(makeDirectiveNode(name, args, directive));
|
|
83310
|
+
}
|
|
83311
|
+
return directiveNodes;
|
|
83312
|
+
}
|
|
83313
|
+
__name(makeDirectiveNodes, "makeDirectiveNodes");
|
|
83314
|
+
|
|
81171
83315
|
// src/core/database-schema.ts
|
|
81172
83316
|
var DatabaseSchemaState = class _DatabaseSchemaState extends ListStateStorage {
|
|
81173
83317
|
static {
|
|
@@ -81192,30 +83336,30 @@ var DatabaseSchema = class {
|
|
|
81192
83336
|
}
|
|
81193
83337
|
};
|
|
81194
83338
|
function mergeSchemas(schemas) {
|
|
81195
|
-
|
|
81196
|
-
|
|
83339
|
+
const allTypes = {};
|
|
83340
|
+
let mergedSchema = new GraphQLSchema({});
|
|
81197
83341
|
for (const schema of schemas) {
|
|
81198
|
-
const gqlSchema =
|
|
83342
|
+
const gqlSchema = buildSchema2((0, import_graphql14.parse)(schema.source));
|
|
81199
83343
|
for (const type3 of Object.values(gqlSchema.getTypeMap())) {
|
|
81200
|
-
if ((0,
|
|
83344
|
+
if ((0, import_graphql14.isScalarType)(type3) || type3.name.startsWith("__")) {
|
|
81201
83345
|
continue;
|
|
81202
83346
|
}
|
|
81203
|
-
if (
|
|
83347
|
+
if (allTypes[type3.name]) {
|
|
81204
83348
|
console.warn(`Type ${type3.name} is already registered, you have duplicate definitions in multiple schemas.`);
|
|
81205
|
-
} else if ((0,
|
|
81206
|
-
|
|
81207
|
-
type3.description = null;
|
|
81208
|
-
for (const field of Object.values(type3.getFields())) {
|
|
81209
|
-
field.description = null;
|
|
81210
|
-
}
|
|
81211
|
-
ret3 += (0, import_graphql6.printType)(type3) + "\n";
|
|
83349
|
+
} else if ((0, import_graphql14.isObjectType)(type3) || (0, import_graphql14.isInterfaceType)(type3)) {
|
|
83350
|
+
allTypes[type3.name] = type3;
|
|
81212
83351
|
} else {
|
|
81213
|
-
|
|
81214
|
-
ret3 += (0, import_graphql6.printType)(type3) + "\n";
|
|
83352
|
+
allTypes[type3.name] = type3;
|
|
81215
83353
|
}
|
|
81216
83354
|
}
|
|
83355
|
+
mergedSchema = new GraphQLSchema({
|
|
83356
|
+
types: [...Object.values(allTypes)]
|
|
83357
|
+
});
|
|
81217
83358
|
}
|
|
81218
|
-
return
|
|
83359
|
+
return printSchemaWithDirectives(mergedSchema, {
|
|
83360
|
+
commentDescriptions: false,
|
|
83361
|
+
assumeValid: true
|
|
83362
|
+
});
|
|
81219
83363
|
}
|
|
81220
83364
|
__name(mergeSchemas, "mergeSchemas");
|
|
81221
83365
|
import("node:process").then((p) => p.stdout.write(""));
|
|
@@ -82879,7 +85023,7 @@ export {
|
|
|
82879
85023
|
toBigInteger,
|
|
82880
85024
|
normalizeLabels,
|
|
82881
85025
|
require_graphql2 as require_graphql,
|
|
82882
|
-
buildSchema,
|
|
85026
|
+
buildSchema2 as buildSchema,
|
|
82883
85027
|
DatabaseSchemaState,
|
|
82884
85028
|
DatabaseSchema,
|
|
82885
85029
|
EventLoggerState,
|
|
@@ -82977,4 +85121,4 @@ long/index.js:
|
|
|
82977
85121
|
* SPDX-License-Identifier: Apache-2.0
|
|
82978
85122
|
*)
|
|
82979
85123
|
*/
|
|
82980
|
-
//# sourceMappingURL=chunk-
|
|
85124
|
+
//# sourceMappingURL=chunk-BCWMDHUS.js.map
|