@timardex/cluemart-shared 1.5.813 → 1.5.822
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/dist/{ad-0muFV6oH.d.ts → ad-BFGA6SrQ.d.ts} +4 -123
- package/dist/{ad-Dlk9SFLw.d.mts → ad-BRC6KNgv.d.mts} +4 -123
- package/dist/apollo/index.cjs +1362 -0
- package/dist/apollo/index.cjs.map +1 -0
- package/dist/apollo/index.d.mts +337 -0
- package/dist/apollo/index.d.ts +337 -0
- package/dist/apollo/index.mjs +1273 -0
- package/dist/apollo/index.mjs.map +1 -0
- package/dist/auth/index.cjs +1425 -0
- package/dist/auth/index.cjs.map +1 -0
- package/dist/auth/index.d.mts +119 -0
- package/dist/auth/index.d.ts +119 -0
- package/dist/auth/index.mjs +317 -0
- package/dist/auth/index.mjs.map +1 -0
- package/dist/{chunk-LETM2YHF.mjs → chunk-D33VEY7Q.mjs} +3 -1
- package/dist/chunk-D33VEY7Q.mjs.map +1 -0
- package/dist/chunk-DQ7ZHIXW.mjs +26 -0
- package/dist/chunk-DQ7ZHIXW.mjs.map +1 -0
- package/dist/{chunk-LKMJ75YV.mjs → chunk-EUOLQ7SS.mjs} +2 -2
- package/dist/{chunk-GJO7X2Y4.mjs → chunk-IREUJYMR.mjs} +3 -3
- package/dist/{chunk-POXARN2X.mjs → chunk-KMLUQVNM.mjs} +1 -24
- package/dist/chunk-KMLUQVNM.mjs.map +1 -0
- package/dist/chunk-MIDSLTUJ.mjs +1214 -0
- package/dist/chunk-MIDSLTUJ.mjs.map +1 -0
- package/dist/{chunk-DLPDX4EH.mjs → chunk-N7KENXCS.mjs} +10 -49
- package/dist/chunk-N7KENXCS.mjs.map +1 -0
- package/dist/chunk-RAYUJODN.mjs +45 -0
- package/dist/chunk-RAYUJODN.mjs.map +1 -0
- package/dist/{chunk-4TP57ZL7.mjs → chunk-UHDYJBIX.mjs} +2 -2
- package/dist/{chunk-4ICKZHQA.mjs → chunk-WZPKYUSX.mjs} +361 -2328
- package/dist/chunk-WZPKYUSX.mjs.map +1 -0
- package/dist/{contactUs-CiXFYse5.d.ts → contactUs-Bwxzw-cB.d.ts} +1 -1
- package/dist/{contactUs-HPydW6BR.d.mts → contactUs-b5SfvqmJ.d.mts} +1 -1
- package/dist/enums/index.cjs +2 -0
- package/dist/enums/index.cjs.map +1 -1
- package/dist/enums/index.d.mts +3 -1
- package/dist/enums/index.d.ts +3 -1
- package/dist/enums/index.mjs +1 -1
- package/dist/formFields/index.cjs.map +1 -1
- package/dist/formFields/index.d.mts +1 -1
- package/dist/formFields/index.d.ts +1 -1
- package/dist/formFields/index.mjs +7 -5
- package/dist/{global-Dq6A7pNV.d.mts → global-959zf6qy.d.mts} +1 -1
- package/dist/{global-B2jacmZB.d.ts → global-wVC9VaCx.d.ts} +1 -1
- package/dist/graphql/index.cjs +2 -844
- package/dist/graphql/index.cjs.map +1 -1
- package/dist/graphql/index.d.mts +4 -3
- package/dist/graphql/index.d.ts +4 -3
- package/dist/graphql/index.mjs +23 -21
- package/dist/hooks/index.cjs +5 -0
- package/dist/hooks/index.cjs.map +1 -1
- package/dist/hooks/index.d.mts +4 -3
- package/dist/hooks/index.d.ts +4 -3
- package/dist/hooks/index.mjs +15 -12
- package/dist/hooks/index.mjs.map +1 -1
- package/dist/index.cjs +4 -844
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.mts +3 -1
- package/dist/index.d.ts +3 -1
- package/dist/index.mjs +3 -843
- package/dist/index.mjs.map +1 -1
- package/dist/map/index.d.mts +1 -1
- package/dist/map/index.d.ts +1 -1
- package/dist/{resourceActivities-DUR5JaaB.d.ts → resourceActivities-ChZcl5wJ.d.ts} +1 -1
- package/dist/{resourceActivities-BCZ6HU7U.d.mts → resourceActivities-ZPT9JlfH.d.mts} +1 -1
- package/dist/sharing/index.cjs.map +1 -1
- package/dist/sharing/index.d.mts +1 -1
- package/dist/sharing/index.d.ts +1 -1
- package/dist/sharing/index.mjs +3 -3
- package/dist/subscription-BU8GvH2K.d.ts +12 -0
- package/dist/subscription-bmAdrnfi.d.mts +12 -0
- package/dist/types/index.d.mts +9 -16
- package/dist/types/index.d.ts +9 -16
- package/dist/types/index.mjs +7 -5
- package/dist/user-CCN2IPDV.d.ts +124 -0
- package/dist/user-CadKvubI.d.mts +124 -0
- package/dist/utils/index.cjs.map +1 -1
- package/dist/utils/index.d.mts +1 -1
- package/dist/utils/index.d.ts +1 -1
- package/dist/utils/index.mjs +8 -5
- package/package.json +25 -9
- package/dist/chunk-4ICKZHQA.mjs.map +0 -1
- package/dist/chunk-DLPDX4EH.mjs.map +0 -1
- package/dist/chunk-LETM2YHF.mjs.map +0 -1
- package/dist/chunk-POXARN2X.mjs.map +0 -1
- /package/dist/{chunk-LKMJ75YV.mjs.map → chunk-EUOLQ7SS.mjs.map} +0 -0
- /package/dist/{chunk-GJO7X2Y4.mjs.map → chunk-IREUJYMR.mjs.map} +0 -0
- /package/dist/{chunk-4TP57ZL7.mjs.map → chunk-UHDYJBIX.mjs.map} +0 -0
package/dist/index.mjs
CHANGED
|
@@ -199,11 +199,13 @@ var EnumUserLicence = /* @__PURE__ */ ((EnumUserLicence2) => {
|
|
|
199
199
|
})(EnumUserLicence || {});
|
|
200
200
|
var EnumUserRole = /* @__PURE__ */ ((EnumUserRole2) => {
|
|
201
201
|
EnumUserRole2["ADMIN"] = "admin";
|
|
202
|
+
EnumUserRole2["SUPER_ADMIN"] = "super_admin";
|
|
202
203
|
EnumUserRole2["CUSTOMER"] = "customer";
|
|
203
204
|
EnumUserRole2["MARKETING"] = "marketing";
|
|
204
205
|
EnumUserRole2["MODERATOR"] = "moderator";
|
|
205
206
|
EnumUserRole2["SUPPORT"] = "support";
|
|
206
207
|
EnumUserRole2["AFFILIATE"] = "affiliate";
|
|
208
|
+
EnumUserRole2["SCHOOL"] = "school";
|
|
207
209
|
return EnumUserRole2;
|
|
208
210
|
})(EnumUserRole || {});
|
|
209
211
|
var EnumSocialMedia = /* @__PURE__ */ ((EnumSocialMedia2) => {
|
|
@@ -4402,850 +4404,8 @@ var GET_RESOURCE_CONNECTIONS = gql9`
|
|
|
4402
4404
|
${EVENT_LIST_ITEM}
|
|
4403
4405
|
`;
|
|
4404
4406
|
|
|
4405
|
-
// node_modules/graphql/jsutils/devAssert.mjs
|
|
4406
|
-
function devAssert(condition, message) {
|
|
4407
|
-
const booleanCondition = Boolean(condition);
|
|
4408
|
-
if (!booleanCondition) {
|
|
4409
|
-
throw new Error(message);
|
|
4410
|
-
}
|
|
4411
|
-
}
|
|
4412
|
-
|
|
4413
|
-
// node_modules/graphql/language/ast.mjs
|
|
4414
|
-
var QueryDocumentKeys = {
|
|
4415
|
-
Name: [],
|
|
4416
|
-
Document: ["definitions"],
|
|
4417
|
-
OperationDefinition: [
|
|
4418
|
-
"description",
|
|
4419
|
-
"name",
|
|
4420
|
-
"variableDefinitions",
|
|
4421
|
-
"directives",
|
|
4422
|
-
"selectionSet"
|
|
4423
|
-
],
|
|
4424
|
-
VariableDefinition: [
|
|
4425
|
-
"description",
|
|
4426
|
-
"variable",
|
|
4427
|
-
"type",
|
|
4428
|
-
"defaultValue",
|
|
4429
|
-
"directives"
|
|
4430
|
-
],
|
|
4431
|
-
Variable: ["name"],
|
|
4432
|
-
SelectionSet: ["selections"],
|
|
4433
|
-
Field: ["alias", "name", "arguments", "directives", "selectionSet"],
|
|
4434
|
-
Argument: ["name", "value"],
|
|
4435
|
-
FragmentSpread: ["name", "directives"],
|
|
4436
|
-
InlineFragment: ["typeCondition", "directives", "selectionSet"],
|
|
4437
|
-
FragmentDefinition: [
|
|
4438
|
-
"description",
|
|
4439
|
-
"name",
|
|
4440
|
-
// Note: fragment variable definitions are deprecated and will removed in v17.0.0
|
|
4441
|
-
"variableDefinitions",
|
|
4442
|
-
"typeCondition",
|
|
4443
|
-
"directives",
|
|
4444
|
-
"selectionSet"
|
|
4445
|
-
],
|
|
4446
|
-
IntValue: [],
|
|
4447
|
-
FloatValue: [],
|
|
4448
|
-
StringValue: [],
|
|
4449
|
-
BooleanValue: [],
|
|
4450
|
-
NullValue: [],
|
|
4451
|
-
EnumValue: [],
|
|
4452
|
-
ListValue: ["values"],
|
|
4453
|
-
ObjectValue: ["fields"],
|
|
4454
|
-
ObjectField: ["name", "value"],
|
|
4455
|
-
Directive: ["name", "arguments"],
|
|
4456
|
-
NamedType: ["name"],
|
|
4457
|
-
ListType: ["type"],
|
|
4458
|
-
NonNullType: ["type"],
|
|
4459
|
-
SchemaDefinition: ["description", "directives", "operationTypes"],
|
|
4460
|
-
OperationTypeDefinition: ["type"],
|
|
4461
|
-
ScalarTypeDefinition: ["description", "name", "directives"],
|
|
4462
|
-
ObjectTypeDefinition: [
|
|
4463
|
-
"description",
|
|
4464
|
-
"name",
|
|
4465
|
-
"interfaces",
|
|
4466
|
-
"directives",
|
|
4467
|
-
"fields"
|
|
4468
|
-
],
|
|
4469
|
-
FieldDefinition: ["description", "name", "arguments", "type", "directives"],
|
|
4470
|
-
InputValueDefinition: [
|
|
4471
|
-
"description",
|
|
4472
|
-
"name",
|
|
4473
|
-
"type",
|
|
4474
|
-
"defaultValue",
|
|
4475
|
-
"directives"
|
|
4476
|
-
],
|
|
4477
|
-
InterfaceTypeDefinition: [
|
|
4478
|
-
"description",
|
|
4479
|
-
"name",
|
|
4480
|
-
"interfaces",
|
|
4481
|
-
"directives",
|
|
4482
|
-
"fields"
|
|
4483
|
-
],
|
|
4484
|
-
UnionTypeDefinition: ["description", "name", "directives", "types"],
|
|
4485
|
-
EnumTypeDefinition: ["description", "name", "directives", "values"],
|
|
4486
|
-
EnumValueDefinition: ["description", "name", "directives"],
|
|
4487
|
-
InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
|
|
4488
|
-
DirectiveDefinition: ["description", "name", "arguments", "locations"],
|
|
4489
|
-
SchemaExtension: ["directives", "operationTypes"],
|
|
4490
|
-
ScalarTypeExtension: ["name", "directives"],
|
|
4491
|
-
ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
|
|
4492
|
-
InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
|
|
4493
|
-
UnionTypeExtension: ["name", "directives", "types"],
|
|
4494
|
-
EnumTypeExtension: ["name", "directives", "values"],
|
|
4495
|
-
InputObjectTypeExtension: ["name", "directives", "fields"],
|
|
4496
|
-
TypeCoordinate: ["name"],
|
|
4497
|
-
MemberCoordinate: ["name", "memberName"],
|
|
4498
|
-
ArgumentCoordinate: ["name", "fieldName", "argumentName"],
|
|
4499
|
-
DirectiveCoordinate: ["name"],
|
|
4500
|
-
DirectiveArgumentCoordinate: ["name", "argumentName"]
|
|
4501
|
-
};
|
|
4502
|
-
var kindValues = new Set(Object.keys(QueryDocumentKeys));
|
|
4503
|
-
function isNode(maybeNode) {
|
|
4504
|
-
const maybeKind = maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
|
|
4505
|
-
return typeof maybeKind === "string" && kindValues.has(maybeKind);
|
|
4506
|
-
}
|
|
4507
|
-
var OperationTypeNode;
|
|
4508
|
-
(function(OperationTypeNode2) {
|
|
4509
|
-
OperationTypeNode2["QUERY"] = "query";
|
|
4510
|
-
OperationTypeNode2["MUTATION"] = "mutation";
|
|
4511
|
-
OperationTypeNode2["SUBSCRIPTION"] = "subscription";
|
|
4512
|
-
})(OperationTypeNode || (OperationTypeNode = {}));
|
|
4513
|
-
|
|
4514
|
-
// node_modules/graphql/language/kinds.mjs
|
|
4515
|
-
var Kind;
|
|
4516
|
-
(function(Kind2) {
|
|
4517
|
-
Kind2["NAME"] = "Name";
|
|
4518
|
-
Kind2["DOCUMENT"] = "Document";
|
|
4519
|
-
Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
|
|
4520
|
-
Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
|
|
4521
|
-
Kind2["SELECTION_SET"] = "SelectionSet";
|
|
4522
|
-
Kind2["FIELD"] = "Field";
|
|
4523
|
-
Kind2["ARGUMENT"] = "Argument";
|
|
4524
|
-
Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
|
|
4525
|
-
Kind2["INLINE_FRAGMENT"] = "InlineFragment";
|
|
4526
|
-
Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
|
|
4527
|
-
Kind2["VARIABLE"] = "Variable";
|
|
4528
|
-
Kind2["INT"] = "IntValue";
|
|
4529
|
-
Kind2["FLOAT"] = "FloatValue";
|
|
4530
|
-
Kind2["STRING"] = "StringValue";
|
|
4531
|
-
Kind2["BOOLEAN"] = "BooleanValue";
|
|
4532
|
-
Kind2["NULL"] = "NullValue";
|
|
4533
|
-
Kind2["ENUM"] = "EnumValue";
|
|
4534
|
-
Kind2["LIST"] = "ListValue";
|
|
4535
|
-
Kind2["OBJECT"] = "ObjectValue";
|
|
4536
|
-
Kind2["OBJECT_FIELD"] = "ObjectField";
|
|
4537
|
-
Kind2["DIRECTIVE"] = "Directive";
|
|
4538
|
-
Kind2["NAMED_TYPE"] = "NamedType";
|
|
4539
|
-
Kind2["LIST_TYPE"] = "ListType";
|
|
4540
|
-
Kind2["NON_NULL_TYPE"] = "NonNullType";
|
|
4541
|
-
Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
|
|
4542
|
-
Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
|
|
4543
|
-
Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
|
|
4544
|
-
Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
|
|
4545
|
-
Kind2["FIELD_DEFINITION"] = "FieldDefinition";
|
|
4546
|
-
Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
|
|
4547
|
-
Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
|
|
4548
|
-
Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
|
|
4549
|
-
Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
|
|
4550
|
-
Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
|
|
4551
|
-
Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
|
|
4552
|
-
Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
|
|
4553
|
-
Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
|
|
4554
|
-
Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
|
|
4555
|
-
Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
|
|
4556
|
-
Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
|
|
4557
|
-
Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
|
|
4558
|
-
Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
|
|
4559
|
-
Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
|
|
4560
|
-
Kind2["TYPE_COORDINATE"] = "TypeCoordinate";
|
|
4561
|
-
Kind2["MEMBER_COORDINATE"] = "MemberCoordinate";
|
|
4562
|
-
Kind2["ARGUMENT_COORDINATE"] = "ArgumentCoordinate";
|
|
4563
|
-
Kind2["DIRECTIVE_COORDINATE"] = "DirectiveCoordinate";
|
|
4564
|
-
Kind2["DIRECTIVE_ARGUMENT_COORDINATE"] = "DirectiveArgumentCoordinate";
|
|
4565
|
-
})(Kind || (Kind = {}));
|
|
4566
|
-
|
|
4567
|
-
// node_modules/graphql/language/characterClasses.mjs
|
|
4568
|
-
function isWhiteSpace(code) {
|
|
4569
|
-
return code === 9 || code === 32;
|
|
4570
|
-
}
|
|
4571
|
-
|
|
4572
|
-
// node_modules/graphql/language/blockString.mjs
|
|
4573
|
-
function printBlockString(value, options) {
|
|
4574
|
-
const escapedValue = value.replace(/"""/g, '\\"""');
|
|
4575
|
-
const lines = escapedValue.split(/\r\n|[\n\r]/g);
|
|
4576
|
-
const isSingleLine = lines.length === 1;
|
|
4577
|
-
const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0)));
|
|
4578
|
-
const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
|
|
4579
|
-
const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
|
|
4580
|
-
const hasTrailingSlash = value.endsWith("\\");
|
|
4581
|
-
const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
|
|
4582
|
-
const printAsMultipleLines = !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability
|
|
4583
|
-
(!isSingleLine || value.length > 70 || forceTrailingNewline || forceLeadingNewLine || hasTrailingTripleQuotes);
|
|
4584
|
-
let result = "";
|
|
4585
|
-
const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));
|
|
4586
|
-
if (printAsMultipleLines && !skipLeadingNewLine || forceLeadingNewLine) {
|
|
4587
|
-
result += "\n";
|
|
4588
|
-
}
|
|
4589
|
-
result += escapedValue;
|
|
4590
|
-
if (printAsMultipleLines || forceTrailingNewline) {
|
|
4591
|
-
result += "\n";
|
|
4592
|
-
}
|
|
4593
|
-
return '"""' + result + '"""';
|
|
4594
|
-
}
|
|
4595
|
-
|
|
4596
|
-
// node_modules/graphql/jsutils/inspect.mjs
|
|
4597
|
-
var MAX_ARRAY_LENGTH = 10;
|
|
4598
|
-
var MAX_RECURSIVE_DEPTH = 2;
|
|
4599
|
-
function inspect(value) {
|
|
4600
|
-
return formatValue(value, []);
|
|
4601
|
-
}
|
|
4602
|
-
function formatValue(value, seenValues) {
|
|
4603
|
-
switch (typeof value) {
|
|
4604
|
-
case "string":
|
|
4605
|
-
return JSON.stringify(value);
|
|
4606
|
-
case "function":
|
|
4607
|
-
return value.name ? `[function ${value.name}]` : "[function]";
|
|
4608
|
-
case "object":
|
|
4609
|
-
return formatObjectValue(value, seenValues);
|
|
4610
|
-
default:
|
|
4611
|
-
return String(value);
|
|
4612
|
-
}
|
|
4613
|
-
}
|
|
4614
|
-
function formatObjectValue(value, previouslySeenValues) {
|
|
4615
|
-
if (value === null) {
|
|
4616
|
-
return "null";
|
|
4617
|
-
}
|
|
4618
|
-
if (previouslySeenValues.includes(value)) {
|
|
4619
|
-
return "[Circular]";
|
|
4620
|
-
}
|
|
4621
|
-
const seenValues = [...previouslySeenValues, value];
|
|
4622
|
-
if (isJSONable(value)) {
|
|
4623
|
-
const jsonValue = value.toJSON();
|
|
4624
|
-
if (jsonValue !== value) {
|
|
4625
|
-
return typeof jsonValue === "string" ? jsonValue : formatValue(jsonValue, seenValues);
|
|
4626
|
-
}
|
|
4627
|
-
} else if (Array.isArray(value)) {
|
|
4628
|
-
return formatArray(value, seenValues);
|
|
4629
|
-
}
|
|
4630
|
-
return formatObject(value, seenValues);
|
|
4631
|
-
}
|
|
4632
|
-
function isJSONable(value) {
|
|
4633
|
-
return typeof value.toJSON === "function";
|
|
4634
|
-
}
|
|
4635
|
-
function formatObject(object, seenValues) {
|
|
4636
|
-
const entries = Object.entries(object);
|
|
4637
|
-
if (entries.length === 0) {
|
|
4638
|
-
return "{}";
|
|
4639
|
-
}
|
|
4640
|
-
if (seenValues.length > MAX_RECURSIVE_DEPTH) {
|
|
4641
|
-
return "[" + getObjectTag(object) + "]";
|
|
4642
|
-
}
|
|
4643
|
-
const properties = entries.map(
|
|
4644
|
-
([key, value]) => key + ": " + formatValue(value, seenValues)
|
|
4645
|
-
);
|
|
4646
|
-
return "{ " + properties.join(", ") + " }";
|
|
4647
|
-
}
|
|
4648
|
-
function formatArray(array, seenValues) {
|
|
4649
|
-
if (array.length === 0) {
|
|
4650
|
-
return "[]";
|
|
4651
|
-
}
|
|
4652
|
-
if (seenValues.length > MAX_RECURSIVE_DEPTH) {
|
|
4653
|
-
return "[Array]";
|
|
4654
|
-
}
|
|
4655
|
-
const len = Math.min(MAX_ARRAY_LENGTH, array.length);
|
|
4656
|
-
const remaining = array.length - len;
|
|
4657
|
-
const items = [];
|
|
4658
|
-
for (let i = 0; i < len; ++i) {
|
|
4659
|
-
items.push(formatValue(array[i], seenValues));
|
|
4660
|
-
}
|
|
4661
|
-
if (remaining === 1) {
|
|
4662
|
-
items.push("... 1 more item");
|
|
4663
|
-
} else if (remaining > 1) {
|
|
4664
|
-
items.push(`... ${remaining} more items`);
|
|
4665
|
-
}
|
|
4666
|
-
return "[" + items.join(", ") + "]";
|
|
4667
|
-
}
|
|
4668
|
-
function getObjectTag(object) {
|
|
4669
|
-
const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
|
|
4670
|
-
if (tag === "Object" && typeof object.constructor === "function") {
|
|
4671
|
-
const name = object.constructor.name;
|
|
4672
|
-
if (typeof name === "string" && name !== "") {
|
|
4673
|
-
return name;
|
|
4674
|
-
}
|
|
4675
|
-
}
|
|
4676
|
-
return tag;
|
|
4677
|
-
}
|
|
4678
|
-
|
|
4679
|
-
// node_modules/graphql/language/printString.mjs
|
|
4680
|
-
function printString(str) {
|
|
4681
|
-
return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
|
|
4682
|
-
}
|
|
4683
|
-
var escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
4684
|
-
function escapedReplacer(str) {
|
|
4685
|
-
return escapeSequences[str.charCodeAt(0)];
|
|
4686
|
-
}
|
|
4687
|
-
var escapeSequences = [
|
|
4688
|
-
"\\u0000",
|
|
4689
|
-
"\\u0001",
|
|
4690
|
-
"\\u0002",
|
|
4691
|
-
"\\u0003",
|
|
4692
|
-
"\\u0004",
|
|
4693
|
-
"\\u0005",
|
|
4694
|
-
"\\u0006",
|
|
4695
|
-
"\\u0007",
|
|
4696
|
-
"\\b",
|
|
4697
|
-
"\\t",
|
|
4698
|
-
"\\n",
|
|
4699
|
-
"\\u000B",
|
|
4700
|
-
"\\f",
|
|
4701
|
-
"\\r",
|
|
4702
|
-
"\\u000E",
|
|
4703
|
-
"\\u000F",
|
|
4704
|
-
"\\u0010",
|
|
4705
|
-
"\\u0011",
|
|
4706
|
-
"\\u0012",
|
|
4707
|
-
"\\u0013",
|
|
4708
|
-
"\\u0014",
|
|
4709
|
-
"\\u0015",
|
|
4710
|
-
"\\u0016",
|
|
4711
|
-
"\\u0017",
|
|
4712
|
-
"\\u0018",
|
|
4713
|
-
"\\u0019",
|
|
4714
|
-
"\\u001A",
|
|
4715
|
-
"\\u001B",
|
|
4716
|
-
"\\u001C",
|
|
4717
|
-
"\\u001D",
|
|
4718
|
-
"\\u001E",
|
|
4719
|
-
"\\u001F",
|
|
4720
|
-
"",
|
|
4721
|
-
"",
|
|
4722
|
-
'\\"',
|
|
4723
|
-
"",
|
|
4724
|
-
"",
|
|
4725
|
-
"",
|
|
4726
|
-
"",
|
|
4727
|
-
"",
|
|
4728
|
-
"",
|
|
4729
|
-
"",
|
|
4730
|
-
"",
|
|
4731
|
-
"",
|
|
4732
|
-
"",
|
|
4733
|
-
"",
|
|
4734
|
-
"",
|
|
4735
|
-
"",
|
|
4736
|
-
// 2F
|
|
4737
|
-
"",
|
|
4738
|
-
"",
|
|
4739
|
-
"",
|
|
4740
|
-
"",
|
|
4741
|
-
"",
|
|
4742
|
-
"",
|
|
4743
|
-
"",
|
|
4744
|
-
"",
|
|
4745
|
-
"",
|
|
4746
|
-
"",
|
|
4747
|
-
"",
|
|
4748
|
-
"",
|
|
4749
|
-
"",
|
|
4750
|
-
"",
|
|
4751
|
-
"",
|
|
4752
|
-
"",
|
|
4753
|
-
// 3F
|
|
4754
|
-
"",
|
|
4755
|
-
"",
|
|
4756
|
-
"",
|
|
4757
|
-
"",
|
|
4758
|
-
"",
|
|
4759
|
-
"",
|
|
4760
|
-
"",
|
|
4761
|
-
"",
|
|
4762
|
-
"",
|
|
4763
|
-
"",
|
|
4764
|
-
"",
|
|
4765
|
-
"",
|
|
4766
|
-
"",
|
|
4767
|
-
"",
|
|
4768
|
-
"",
|
|
4769
|
-
"",
|
|
4770
|
-
// 4F
|
|
4771
|
-
"",
|
|
4772
|
-
"",
|
|
4773
|
-
"",
|
|
4774
|
-
"",
|
|
4775
|
-
"",
|
|
4776
|
-
"",
|
|
4777
|
-
"",
|
|
4778
|
-
"",
|
|
4779
|
-
"",
|
|
4780
|
-
"",
|
|
4781
|
-
"",
|
|
4782
|
-
"",
|
|
4783
|
-
"\\\\",
|
|
4784
|
-
"",
|
|
4785
|
-
"",
|
|
4786
|
-
"",
|
|
4787
|
-
// 5F
|
|
4788
|
-
"",
|
|
4789
|
-
"",
|
|
4790
|
-
"",
|
|
4791
|
-
"",
|
|
4792
|
-
"",
|
|
4793
|
-
"",
|
|
4794
|
-
"",
|
|
4795
|
-
"",
|
|
4796
|
-
"",
|
|
4797
|
-
"",
|
|
4798
|
-
"",
|
|
4799
|
-
"",
|
|
4800
|
-
"",
|
|
4801
|
-
"",
|
|
4802
|
-
"",
|
|
4803
|
-
"",
|
|
4804
|
-
// 6F
|
|
4805
|
-
"",
|
|
4806
|
-
"",
|
|
4807
|
-
"",
|
|
4808
|
-
"",
|
|
4809
|
-
"",
|
|
4810
|
-
"",
|
|
4811
|
-
"",
|
|
4812
|
-
"",
|
|
4813
|
-
"",
|
|
4814
|
-
"",
|
|
4815
|
-
"",
|
|
4816
|
-
"",
|
|
4817
|
-
"",
|
|
4818
|
-
"",
|
|
4819
|
-
"",
|
|
4820
|
-
"\\u007F",
|
|
4821
|
-
"\\u0080",
|
|
4822
|
-
"\\u0081",
|
|
4823
|
-
"\\u0082",
|
|
4824
|
-
"\\u0083",
|
|
4825
|
-
"\\u0084",
|
|
4826
|
-
"\\u0085",
|
|
4827
|
-
"\\u0086",
|
|
4828
|
-
"\\u0087",
|
|
4829
|
-
"\\u0088",
|
|
4830
|
-
"\\u0089",
|
|
4831
|
-
"\\u008A",
|
|
4832
|
-
"\\u008B",
|
|
4833
|
-
"\\u008C",
|
|
4834
|
-
"\\u008D",
|
|
4835
|
-
"\\u008E",
|
|
4836
|
-
"\\u008F",
|
|
4837
|
-
"\\u0090",
|
|
4838
|
-
"\\u0091",
|
|
4839
|
-
"\\u0092",
|
|
4840
|
-
"\\u0093",
|
|
4841
|
-
"\\u0094",
|
|
4842
|
-
"\\u0095",
|
|
4843
|
-
"\\u0096",
|
|
4844
|
-
"\\u0097",
|
|
4845
|
-
"\\u0098",
|
|
4846
|
-
"\\u0099",
|
|
4847
|
-
"\\u009A",
|
|
4848
|
-
"\\u009B",
|
|
4849
|
-
"\\u009C",
|
|
4850
|
-
"\\u009D",
|
|
4851
|
-
"\\u009E",
|
|
4852
|
-
"\\u009F"
|
|
4853
|
-
];
|
|
4854
|
-
|
|
4855
|
-
// node_modules/graphql/language/visitor.mjs
|
|
4856
|
-
var BREAK = Object.freeze({});
|
|
4857
|
-
function visit(root, visitor, visitorKeys = QueryDocumentKeys) {
|
|
4858
|
-
const enterLeaveMap = /* @__PURE__ */ new Map();
|
|
4859
|
-
for (const kind of Object.values(Kind)) {
|
|
4860
|
-
enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
|
|
4861
|
-
}
|
|
4862
|
-
let stack = void 0;
|
|
4863
|
-
let inArray = Array.isArray(root);
|
|
4864
|
-
let keys = [root];
|
|
4865
|
-
let index = -1;
|
|
4866
|
-
let edits = [];
|
|
4867
|
-
let node = root;
|
|
4868
|
-
let key = void 0;
|
|
4869
|
-
let parent = void 0;
|
|
4870
|
-
const path = [];
|
|
4871
|
-
const ancestors = [];
|
|
4872
|
-
do {
|
|
4873
|
-
index++;
|
|
4874
|
-
const isLeaving = index === keys.length;
|
|
4875
|
-
const isEdited = isLeaving && edits.length !== 0;
|
|
4876
|
-
if (isLeaving) {
|
|
4877
|
-
key = ancestors.length === 0 ? void 0 : path[path.length - 1];
|
|
4878
|
-
node = parent;
|
|
4879
|
-
parent = ancestors.pop();
|
|
4880
|
-
if (isEdited) {
|
|
4881
|
-
if (inArray) {
|
|
4882
|
-
node = node.slice();
|
|
4883
|
-
let editOffset = 0;
|
|
4884
|
-
for (const [editKey, editValue] of edits) {
|
|
4885
|
-
const arrayKey = editKey - editOffset;
|
|
4886
|
-
if (editValue === null) {
|
|
4887
|
-
node.splice(arrayKey, 1);
|
|
4888
|
-
editOffset++;
|
|
4889
|
-
} else {
|
|
4890
|
-
node[arrayKey] = editValue;
|
|
4891
|
-
}
|
|
4892
|
-
}
|
|
4893
|
-
} else {
|
|
4894
|
-
node = { ...node };
|
|
4895
|
-
for (const [editKey, editValue] of edits) {
|
|
4896
|
-
node[editKey] = editValue;
|
|
4897
|
-
}
|
|
4898
|
-
}
|
|
4899
|
-
}
|
|
4900
|
-
index = stack.index;
|
|
4901
|
-
keys = stack.keys;
|
|
4902
|
-
edits = stack.edits;
|
|
4903
|
-
inArray = stack.inArray;
|
|
4904
|
-
stack = stack.prev;
|
|
4905
|
-
} else if (parent) {
|
|
4906
|
-
key = inArray ? index : keys[index];
|
|
4907
|
-
node = parent[key];
|
|
4908
|
-
if (node === null || node === void 0) {
|
|
4909
|
-
continue;
|
|
4910
|
-
}
|
|
4911
|
-
path.push(key);
|
|
4912
|
-
}
|
|
4913
|
-
let result;
|
|
4914
|
-
if (!Array.isArray(node)) {
|
|
4915
|
-
var _enterLeaveMap$get, _enterLeaveMap$get2;
|
|
4916
|
-
isNode(node) || devAssert(false, `Invalid AST Node: ${inspect(node)}.`);
|
|
4917
|
-
const visitFn = isLeaving ? (_enterLeaveMap$get = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get === void 0 ? void 0 : _enterLeaveMap$get.leave : (_enterLeaveMap$get2 = enterLeaveMap.get(node.kind)) === null || _enterLeaveMap$get2 === void 0 ? void 0 : _enterLeaveMap$get2.enter;
|
|
4918
|
-
result = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
|
|
4919
|
-
if (result === BREAK) {
|
|
4920
|
-
break;
|
|
4921
|
-
}
|
|
4922
|
-
if (result === false) {
|
|
4923
|
-
if (!isLeaving) {
|
|
4924
|
-
path.pop();
|
|
4925
|
-
continue;
|
|
4926
|
-
}
|
|
4927
|
-
} else if (result !== void 0) {
|
|
4928
|
-
edits.push([key, result]);
|
|
4929
|
-
if (!isLeaving) {
|
|
4930
|
-
if (isNode(result)) {
|
|
4931
|
-
node = result;
|
|
4932
|
-
} else {
|
|
4933
|
-
path.pop();
|
|
4934
|
-
continue;
|
|
4935
|
-
}
|
|
4936
|
-
}
|
|
4937
|
-
}
|
|
4938
|
-
}
|
|
4939
|
-
if (result === void 0 && isEdited) {
|
|
4940
|
-
edits.push([key, node]);
|
|
4941
|
-
}
|
|
4942
|
-
if (isLeaving) {
|
|
4943
|
-
path.pop();
|
|
4944
|
-
} else {
|
|
4945
|
-
var _node$kind;
|
|
4946
|
-
stack = {
|
|
4947
|
-
inArray,
|
|
4948
|
-
index,
|
|
4949
|
-
keys,
|
|
4950
|
-
edits,
|
|
4951
|
-
prev: stack
|
|
4952
|
-
};
|
|
4953
|
-
inArray = Array.isArray(node);
|
|
4954
|
-
keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
|
|
4955
|
-
index = -1;
|
|
4956
|
-
edits = [];
|
|
4957
|
-
if (parent) {
|
|
4958
|
-
ancestors.push(parent);
|
|
4959
|
-
}
|
|
4960
|
-
parent = node;
|
|
4961
|
-
}
|
|
4962
|
-
} while (stack !== void 0);
|
|
4963
|
-
if (edits.length !== 0) {
|
|
4964
|
-
return edits[edits.length - 1][1];
|
|
4965
|
-
}
|
|
4966
|
-
return root;
|
|
4967
|
-
}
|
|
4968
|
-
function getEnterLeaveForKind(visitor, kind) {
|
|
4969
|
-
const kindVisitor = visitor[kind];
|
|
4970
|
-
if (typeof kindVisitor === "object") {
|
|
4971
|
-
return kindVisitor;
|
|
4972
|
-
} else if (typeof kindVisitor === "function") {
|
|
4973
|
-
return {
|
|
4974
|
-
enter: kindVisitor,
|
|
4975
|
-
leave: void 0
|
|
4976
|
-
};
|
|
4977
|
-
}
|
|
4978
|
-
return {
|
|
4979
|
-
enter: visitor.enter,
|
|
4980
|
-
leave: visitor.leave
|
|
4981
|
-
};
|
|
4982
|
-
}
|
|
4983
|
-
|
|
4984
|
-
// node_modules/graphql/language/printer.mjs
|
|
4985
|
-
function print(ast) {
|
|
4986
|
-
return visit(ast, printDocASTReducer);
|
|
4987
|
-
}
|
|
4988
|
-
var MAX_LINE_LENGTH = 80;
|
|
4989
|
-
var printDocASTReducer = {
|
|
4990
|
-
Name: {
|
|
4991
|
-
leave: (node) => node.value
|
|
4992
|
-
},
|
|
4993
|
-
Variable: {
|
|
4994
|
-
leave: (node) => "$" + node.name
|
|
4995
|
-
},
|
|
4996
|
-
// Document
|
|
4997
|
-
Document: {
|
|
4998
|
-
leave: (node) => join(node.definitions, "\n\n")
|
|
4999
|
-
},
|
|
5000
|
-
OperationDefinition: {
|
|
5001
|
-
leave(node) {
|
|
5002
|
-
const varDefs = hasMultilineItems(node.variableDefinitions) ? wrap("(\n", join(node.variableDefinitions, "\n"), "\n)") : wrap("(", join(node.variableDefinitions, ", "), ")");
|
|
5003
|
-
const prefix = wrap("", node.description, "\n") + join(
|
|
5004
|
-
[
|
|
5005
|
-
node.operation,
|
|
5006
|
-
join([node.name, varDefs]),
|
|
5007
|
-
join(node.directives, " ")
|
|
5008
|
-
],
|
|
5009
|
-
" "
|
|
5010
|
-
);
|
|
5011
|
-
return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
|
|
5012
|
-
}
|
|
5013
|
-
},
|
|
5014
|
-
VariableDefinition: {
|
|
5015
|
-
leave: ({ variable, type, defaultValue, directives, description }) => wrap("", description, "\n") + variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join(directives, " "))
|
|
5016
|
-
},
|
|
5017
|
-
SelectionSet: {
|
|
5018
|
-
leave: ({ selections }) => block(selections)
|
|
5019
|
-
},
|
|
5020
|
-
Field: {
|
|
5021
|
-
leave({ alias, name, arguments: args, directives, selectionSet }) {
|
|
5022
|
-
const prefix = wrap("", alias, ": ") + name;
|
|
5023
|
-
let argsLine = prefix + wrap("(", join(args, ", "), ")");
|
|
5024
|
-
if (argsLine.length > MAX_LINE_LENGTH) {
|
|
5025
|
-
argsLine = prefix + wrap("(\n", indent(join(args, "\n")), "\n)");
|
|
5026
|
-
}
|
|
5027
|
-
return join([argsLine, join(directives, " "), selectionSet], " ");
|
|
5028
|
-
}
|
|
5029
|
-
},
|
|
5030
|
-
Argument: {
|
|
5031
|
-
leave: ({ name, value }) => name + ": " + value
|
|
5032
|
-
},
|
|
5033
|
-
// Fragments
|
|
5034
|
-
FragmentSpread: {
|
|
5035
|
-
leave: ({ name, directives }) => "..." + name + wrap(" ", join(directives, " "))
|
|
5036
|
-
},
|
|
5037
|
-
InlineFragment: {
|
|
5038
|
-
leave: ({ typeCondition, directives, selectionSet }) => join(
|
|
5039
|
-
[
|
|
5040
|
-
"...",
|
|
5041
|
-
wrap("on ", typeCondition),
|
|
5042
|
-
join(directives, " "),
|
|
5043
|
-
selectionSet
|
|
5044
|
-
],
|
|
5045
|
-
" "
|
|
5046
|
-
)
|
|
5047
|
-
},
|
|
5048
|
-
FragmentDefinition: {
|
|
5049
|
-
leave: ({
|
|
5050
|
-
name,
|
|
5051
|
-
typeCondition,
|
|
5052
|
-
variableDefinitions,
|
|
5053
|
-
directives,
|
|
5054
|
-
selectionSet,
|
|
5055
|
-
description
|
|
5056
|
-
}) => wrap("", description, "\n") + // Note: fragment variable definitions are experimental and may be changed
|
|
5057
|
-
// or removed in the future.
|
|
5058
|
-
`fragment ${name}${wrap("(", join(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join(directives, " "), " ")}` + selectionSet
|
|
5059
|
-
},
|
|
5060
|
-
// Value
|
|
5061
|
-
IntValue: {
|
|
5062
|
-
leave: ({ value }) => value
|
|
5063
|
-
},
|
|
5064
|
-
FloatValue: {
|
|
5065
|
-
leave: ({ value }) => value
|
|
5066
|
-
},
|
|
5067
|
-
StringValue: {
|
|
5068
|
-
leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value)
|
|
5069
|
-
},
|
|
5070
|
-
BooleanValue: {
|
|
5071
|
-
leave: ({ value }) => value ? "true" : "false"
|
|
5072
|
-
},
|
|
5073
|
-
NullValue: {
|
|
5074
|
-
leave: () => "null"
|
|
5075
|
-
},
|
|
5076
|
-
EnumValue: {
|
|
5077
|
-
leave: ({ value }) => value
|
|
5078
|
-
},
|
|
5079
|
-
ListValue: {
|
|
5080
|
-
leave: ({ values }) => "[" + join(values, ", ") + "]"
|
|
5081
|
-
},
|
|
5082
|
-
ObjectValue: {
|
|
5083
|
-
leave: ({ fields }) => "{" + join(fields, ", ") + "}"
|
|
5084
|
-
},
|
|
5085
|
-
ObjectField: {
|
|
5086
|
-
leave: ({ name, value }) => name + ": " + value
|
|
5087
|
-
},
|
|
5088
|
-
// Directive
|
|
5089
|
-
Directive: {
|
|
5090
|
-
leave: ({ name, arguments: args }) => "@" + name + wrap("(", join(args, ", "), ")")
|
|
5091
|
-
},
|
|
5092
|
-
// Type
|
|
5093
|
-
NamedType: {
|
|
5094
|
-
leave: ({ name }) => name
|
|
5095
|
-
},
|
|
5096
|
-
ListType: {
|
|
5097
|
-
leave: ({ type }) => "[" + type + "]"
|
|
5098
|
-
},
|
|
5099
|
-
NonNullType: {
|
|
5100
|
-
leave: ({ type }) => type + "!"
|
|
5101
|
-
},
|
|
5102
|
-
// Type System Definitions
|
|
5103
|
-
SchemaDefinition: {
|
|
5104
|
-
leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join(["schema", join(directives, " "), block(operationTypes)], " ")
|
|
5105
|
-
},
|
|
5106
|
-
OperationTypeDefinition: {
|
|
5107
|
-
leave: ({ operation, type }) => operation + ": " + type
|
|
5108
|
-
},
|
|
5109
|
-
ScalarTypeDefinition: {
|
|
5110
|
-
leave: ({ description, name, directives }) => wrap("", description, "\n") + join(["scalar", name, join(directives, " ")], " ")
|
|
5111
|
-
},
|
|
5112
|
-
ObjectTypeDefinition: {
|
|
5113
|
-
leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
|
|
5114
|
-
[
|
|
5115
|
-
"type",
|
|
5116
|
-
name,
|
|
5117
|
-
wrap("implements ", join(interfaces, " & ")),
|
|
5118
|
-
join(directives, " "),
|
|
5119
|
-
block(fields)
|
|
5120
|
-
],
|
|
5121
|
-
" "
|
|
5122
|
-
)
|
|
5123
|
-
},
|
|
5124
|
-
FieldDefinition: {
|
|
5125
|
-
leave: ({ description, name, arguments: args, type, directives }) => wrap("", description, "\n") + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + ": " + type + wrap(" ", join(directives, " "))
|
|
5126
|
-
},
|
|
5127
|
-
InputValueDefinition: {
|
|
5128
|
-
leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, "\n") + join(
|
|
5129
|
-
[name + ": " + type, wrap("= ", defaultValue), join(directives, " ")],
|
|
5130
|
-
" "
|
|
5131
|
-
)
|
|
5132
|
-
},
|
|
5133
|
-
InterfaceTypeDefinition: {
|
|
5134
|
-
leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
|
|
5135
|
-
[
|
|
5136
|
-
"interface",
|
|
5137
|
-
name,
|
|
5138
|
-
wrap("implements ", join(interfaces, " & ")),
|
|
5139
|
-
join(directives, " "),
|
|
5140
|
-
block(fields)
|
|
5141
|
-
],
|
|
5142
|
-
" "
|
|
5143
|
-
)
|
|
5144
|
-
},
|
|
5145
|
-
UnionTypeDefinition: {
|
|
5146
|
-
leave: ({ description, name, directives, types }) => wrap("", description, "\n") + join(
|
|
5147
|
-
["union", name, join(directives, " "), wrap("= ", join(types, " | "))],
|
|
5148
|
-
" "
|
|
5149
|
-
)
|
|
5150
|
-
},
|
|
5151
|
-
EnumTypeDefinition: {
|
|
5152
|
-
leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join(["enum", name, join(directives, " "), block(values)], " ")
|
|
5153
|
-
},
|
|
5154
|
-
EnumValueDefinition: {
|
|
5155
|
-
leave: ({ description, name, directives }) => wrap("", description, "\n") + join([name, join(directives, " ")], " ")
|
|
5156
|
-
},
|
|
5157
|
-
InputObjectTypeDefinition: {
|
|
5158
|
-
leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join(["input", name, join(directives, " "), block(fields)], " ")
|
|
5159
|
-
},
|
|
5160
|
-
DirectiveDefinition: {
|
|
5161
|
-
leave: ({ description, name, arguments: args, repeatable, locations }) => wrap("", description, "\n") + "directive @" + name + (hasMultilineItems(args) ? wrap("(\n", indent(join(args, "\n")), "\n)") : wrap("(", join(args, ", "), ")")) + (repeatable ? " repeatable" : "") + " on " + join(locations, " | ")
|
|
5162
|
-
},
|
|
5163
|
-
SchemaExtension: {
|
|
5164
|
-
leave: ({ directives, operationTypes }) => join(
|
|
5165
|
-
["extend schema", join(directives, " "), block(operationTypes)],
|
|
5166
|
-
" "
|
|
5167
|
-
)
|
|
5168
|
-
},
|
|
5169
|
-
ScalarTypeExtension: {
|
|
5170
|
-
leave: ({ name, directives }) => join(["extend scalar", name, join(directives, " ")], " ")
|
|
5171
|
-
},
|
|
5172
|
-
ObjectTypeExtension: {
|
|
5173
|
-
leave: ({ name, interfaces, directives, fields }) => join(
|
|
5174
|
-
[
|
|
5175
|
-
"extend type",
|
|
5176
|
-
name,
|
|
5177
|
-
wrap("implements ", join(interfaces, " & ")),
|
|
5178
|
-
join(directives, " "),
|
|
5179
|
-
block(fields)
|
|
5180
|
-
],
|
|
5181
|
-
" "
|
|
5182
|
-
)
|
|
5183
|
-
},
|
|
5184
|
-
InterfaceTypeExtension: {
|
|
5185
|
-
leave: ({ name, interfaces, directives, fields }) => join(
|
|
5186
|
-
[
|
|
5187
|
-
"extend interface",
|
|
5188
|
-
name,
|
|
5189
|
-
wrap("implements ", join(interfaces, " & ")),
|
|
5190
|
-
join(directives, " "),
|
|
5191
|
-
block(fields)
|
|
5192
|
-
],
|
|
5193
|
-
" "
|
|
5194
|
-
)
|
|
5195
|
-
},
|
|
5196
|
-
UnionTypeExtension: {
|
|
5197
|
-
leave: ({ name, directives, types }) => join(
|
|
5198
|
-
[
|
|
5199
|
-
"extend union",
|
|
5200
|
-
name,
|
|
5201
|
-
join(directives, " "),
|
|
5202
|
-
wrap("= ", join(types, " | "))
|
|
5203
|
-
],
|
|
5204
|
-
" "
|
|
5205
|
-
)
|
|
5206
|
-
},
|
|
5207
|
-
EnumTypeExtension: {
|
|
5208
|
-
leave: ({ name, directives, values }) => join(["extend enum", name, join(directives, " "), block(values)], " ")
|
|
5209
|
-
},
|
|
5210
|
-
InputObjectTypeExtension: {
|
|
5211
|
-
leave: ({ name, directives, fields }) => join(["extend input", name, join(directives, " "), block(fields)], " ")
|
|
5212
|
-
},
|
|
5213
|
-
// Schema Coordinates
|
|
5214
|
-
TypeCoordinate: {
|
|
5215
|
-
leave: ({ name }) => name
|
|
5216
|
-
},
|
|
5217
|
-
MemberCoordinate: {
|
|
5218
|
-
leave: ({ name, memberName }) => join([name, wrap(".", memberName)])
|
|
5219
|
-
},
|
|
5220
|
-
ArgumentCoordinate: {
|
|
5221
|
-
leave: ({ name, fieldName, argumentName }) => join([name, wrap(".", fieldName), wrap("(", argumentName, ":)")])
|
|
5222
|
-
},
|
|
5223
|
-
DirectiveCoordinate: {
|
|
5224
|
-
leave: ({ name }) => join(["@", name])
|
|
5225
|
-
},
|
|
5226
|
-
DirectiveArgumentCoordinate: {
|
|
5227
|
-
leave: ({ name, argumentName }) => join(["@", name, wrap("(", argumentName, ":)")])
|
|
5228
|
-
}
|
|
5229
|
-
};
|
|
5230
|
-
function join(maybeArray, separator = "") {
|
|
5231
|
-
var _maybeArray$filter$jo;
|
|
5232
|
-
return (_maybeArray$filter$jo = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.filter((x) => x).join(separator)) !== null && _maybeArray$filter$jo !== void 0 ? _maybeArray$filter$jo : "";
|
|
5233
|
-
}
|
|
5234
|
-
function block(array) {
|
|
5235
|
-
return wrap("{\n", indent(join(array, "\n")), "\n}");
|
|
5236
|
-
}
|
|
5237
|
-
function wrap(start, maybeString, end = "") {
|
|
5238
|
-
return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
|
|
5239
|
-
}
|
|
5240
|
-
function indent(str) {
|
|
5241
|
-
return wrap(" ", str.replace(/\n/g, "\n "));
|
|
5242
|
-
}
|
|
5243
|
-
function hasMultilineItems(maybeArray) {
|
|
5244
|
-
var _maybeArray$some;
|
|
5245
|
-
return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
|
|
5246
|
-
}
|
|
5247
|
-
|
|
5248
4407
|
// src/graphql/toGraphqlQueryString.ts
|
|
4408
|
+
import { print } from "graphql";
|
|
5249
4409
|
function toGraphqlQueryString(query) {
|
|
5250
4410
|
return print(query);
|
|
5251
4411
|
}
|