@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/graphql/index.cjs
CHANGED
|
@@ -1362,852 +1362,10 @@ var GET_RESOURCE_CONNECTIONS = import_client9.gql`
|
|
|
1362
1362
|
${EVENT_LIST_ITEM}
|
|
1363
1363
|
`;
|
|
1364
1364
|
|
|
1365
|
-
// node_modules/graphql/jsutils/devAssert.mjs
|
|
1366
|
-
function devAssert(condition, message) {
|
|
1367
|
-
const booleanCondition = Boolean(condition);
|
|
1368
|
-
if (!booleanCondition) {
|
|
1369
|
-
throw new Error(message);
|
|
1370
|
-
}
|
|
1371
|
-
}
|
|
1372
|
-
|
|
1373
|
-
// node_modules/graphql/language/ast.mjs
|
|
1374
|
-
var QueryDocumentKeys = {
|
|
1375
|
-
Name: [],
|
|
1376
|
-
Document: ["definitions"],
|
|
1377
|
-
OperationDefinition: [
|
|
1378
|
-
"description",
|
|
1379
|
-
"name",
|
|
1380
|
-
"variableDefinitions",
|
|
1381
|
-
"directives",
|
|
1382
|
-
"selectionSet"
|
|
1383
|
-
],
|
|
1384
|
-
VariableDefinition: [
|
|
1385
|
-
"description",
|
|
1386
|
-
"variable",
|
|
1387
|
-
"type",
|
|
1388
|
-
"defaultValue",
|
|
1389
|
-
"directives"
|
|
1390
|
-
],
|
|
1391
|
-
Variable: ["name"],
|
|
1392
|
-
SelectionSet: ["selections"],
|
|
1393
|
-
Field: ["alias", "name", "arguments", "directives", "selectionSet"],
|
|
1394
|
-
Argument: ["name", "value"],
|
|
1395
|
-
FragmentSpread: ["name", "directives"],
|
|
1396
|
-
InlineFragment: ["typeCondition", "directives", "selectionSet"],
|
|
1397
|
-
FragmentDefinition: [
|
|
1398
|
-
"description",
|
|
1399
|
-
"name",
|
|
1400
|
-
// Note: fragment variable definitions are deprecated and will removed in v17.0.0
|
|
1401
|
-
"variableDefinitions",
|
|
1402
|
-
"typeCondition",
|
|
1403
|
-
"directives",
|
|
1404
|
-
"selectionSet"
|
|
1405
|
-
],
|
|
1406
|
-
IntValue: [],
|
|
1407
|
-
FloatValue: [],
|
|
1408
|
-
StringValue: [],
|
|
1409
|
-
BooleanValue: [],
|
|
1410
|
-
NullValue: [],
|
|
1411
|
-
EnumValue: [],
|
|
1412
|
-
ListValue: ["values"],
|
|
1413
|
-
ObjectValue: ["fields"],
|
|
1414
|
-
ObjectField: ["name", "value"],
|
|
1415
|
-
Directive: ["name", "arguments"],
|
|
1416
|
-
NamedType: ["name"],
|
|
1417
|
-
ListType: ["type"],
|
|
1418
|
-
NonNullType: ["type"],
|
|
1419
|
-
SchemaDefinition: ["description", "directives", "operationTypes"],
|
|
1420
|
-
OperationTypeDefinition: ["type"],
|
|
1421
|
-
ScalarTypeDefinition: ["description", "name", "directives"],
|
|
1422
|
-
ObjectTypeDefinition: [
|
|
1423
|
-
"description",
|
|
1424
|
-
"name",
|
|
1425
|
-
"interfaces",
|
|
1426
|
-
"directives",
|
|
1427
|
-
"fields"
|
|
1428
|
-
],
|
|
1429
|
-
FieldDefinition: ["description", "name", "arguments", "type", "directives"],
|
|
1430
|
-
InputValueDefinition: [
|
|
1431
|
-
"description",
|
|
1432
|
-
"name",
|
|
1433
|
-
"type",
|
|
1434
|
-
"defaultValue",
|
|
1435
|
-
"directives"
|
|
1436
|
-
],
|
|
1437
|
-
InterfaceTypeDefinition: [
|
|
1438
|
-
"description",
|
|
1439
|
-
"name",
|
|
1440
|
-
"interfaces",
|
|
1441
|
-
"directives",
|
|
1442
|
-
"fields"
|
|
1443
|
-
],
|
|
1444
|
-
UnionTypeDefinition: ["description", "name", "directives", "types"],
|
|
1445
|
-
EnumTypeDefinition: ["description", "name", "directives", "values"],
|
|
1446
|
-
EnumValueDefinition: ["description", "name", "directives"],
|
|
1447
|
-
InputObjectTypeDefinition: ["description", "name", "directives", "fields"],
|
|
1448
|
-
DirectiveDefinition: ["description", "name", "arguments", "locations"],
|
|
1449
|
-
SchemaExtension: ["directives", "operationTypes"],
|
|
1450
|
-
ScalarTypeExtension: ["name", "directives"],
|
|
1451
|
-
ObjectTypeExtension: ["name", "interfaces", "directives", "fields"],
|
|
1452
|
-
InterfaceTypeExtension: ["name", "interfaces", "directives", "fields"],
|
|
1453
|
-
UnionTypeExtension: ["name", "directives", "types"],
|
|
1454
|
-
EnumTypeExtension: ["name", "directives", "values"],
|
|
1455
|
-
InputObjectTypeExtension: ["name", "directives", "fields"],
|
|
1456
|
-
TypeCoordinate: ["name"],
|
|
1457
|
-
MemberCoordinate: ["name", "memberName"],
|
|
1458
|
-
ArgumentCoordinate: ["name", "fieldName", "argumentName"],
|
|
1459
|
-
DirectiveCoordinate: ["name"],
|
|
1460
|
-
DirectiveArgumentCoordinate: ["name", "argumentName"]
|
|
1461
|
-
};
|
|
1462
|
-
var kindValues = new Set(Object.keys(QueryDocumentKeys));
|
|
1463
|
-
function isNode(maybeNode) {
|
|
1464
|
-
const maybeKind = maybeNode === null || maybeNode === void 0 ? void 0 : maybeNode.kind;
|
|
1465
|
-
return typeof maybeKind === "string" && kindValues.has(maybeKind);
|
|
1466
|
-
}
|
|
1467
|
-
var OperationTypeNode;
|
|
1468
|
-
(function(OperationTypeNode2) {
|
|
1469
|
-
OperationTypeNode2["QUERY"] = "query";
|
|
1470
|
-
OperationTypeNode2["MUTATION"] = "mutation";
|
|
1471
|
-
OperationTypeNode2["SUBSCRIPTION"] = "subscription";
|
|
1472
|
-
})(OperationTypeNode || (OperationTypeNode = {}));
|
|
1473
|
-
|
|
1474
|
-
// node_modules/graphql/language/kinds.mjs
|
|
1475
|
-
var Kind;
|
|
1476
|
-
(function(Kind2) {
|
|
1477
|
-
Kind2["NAME"] = "Name";
|
|
1478
|
-
Kind2["DOCUMENT"] = "Document";
|
|
1479
|
-
Kind2["OPERATION_DEFINITION"] = "OperationDefinition";
|
|
1480
|
-
Kind2["VARIABLE_DEFINITION"] = "VariableDefinition";
|
|
1481
|
-
Kind2["SELECTION_SET"] = "SelectionSet";
|
|
1482
|
-
Kind2["FIELD"] = "Field";
|
|
1483
|
-
Kind2["ARGUMENT"] = "Argument";
|
|
1484
|
-
Kind2["FRAGMENT_SPREAD"] = "FragmentSpread";
|
|
1485
|
-
Kind2["INLINE_FRAGMENT"] = "InlineFragment";
|
|
1486
|
-
Kind2["FRAGMENT_DEFINITION"] = "FragmentDefinition";
|
|
1487
|
-
Kind2["VARIABLE"] = "Variable";
|
|
1488
|
-
Kind2["INT"] = "IntValue";
|
|
1489
|
-
Kind2["FLOAT"] = "FloatValue";
|
|
1490
|
-
Kind2["STRING"] = "StringValue";
|
|
1491
|
-
Kind2["BOOLEAN"] = "BooleanValue";
|
|
1492
|
-
Kind2["NULL"] = "NullValue";
|
|
1493
|
-
Kind2["ENUM"] = "EnumValue";
|
|
1494
|
-
Kind2["LIST"] = "ListValue";
|
|
1495
|
-
Kind2["OBJECT"] = "ObjectValue";
|
|
1496
|
-
Kind2["OBJECT_FIELD"] = "ObjectField";
|
|
1497
|
-
Kind2["DIRECTIVE"] = "Directive";
|
|
1498
|
-
Kind2["NAMED_TYPE"] = "NamedType";
|
|
1499
|
-
Kind2["LIST_TYPE"] = "ListType";
|
|
1500
|
-
Kind2["NON_NULL_TYPE"] = "NonNullType";
|
|
1501
|
-
Kind2["SCHEMA_DEFINITION"] = "SchemaDefinition";
|
|
1502
|
-
Kind2["OPERATION_TYPE_DEFINITION"] = "OperationTypeDefinition";
|
|
1503
|
-
Kind2["SCALAR_TYPE_DEFINITION"] = "ScalarTypeDefinition";
|
|
1504
|
-
Kind2["OBJECT_TYPE_DEFINITION"] = "ObjectTypeDefinition";
|
|
1505
|
-
Kind2["FIELD_DEFINITION"] = "FieldDefinition";
|
|
1506
|
-
Kind2["INPUT_VALUE_DEFINITION"] = "InputValueDefinition";
|
|
1507
|
-
Kind2["INTERFACE_TYPE_DEFINITION"] = "InterfaceTypeDefinition";
|
|
1508
|
-
Kind2["UNION_TYPE_DEFINITION"] = "UnionTypeDefinition";
|
|
1509
|
-
Kind2["ENUM_TYPE_DEFINITION"] = "EnumTypeDefinition";
|
|
1510
|
-
Kind2["ENUM_VALUE_DEFINITION"] = "EnumValueDefinition";
|
|
1511
|
-
Kind2["INPUT_OBJECT_TYPE_DEFINITION"] = "InputObjectTypeDefinition";
|
|
1512
|
-
Kind2["DIRECTIVE_DEFINITION"] = "DirectiveDefinition";
|
|
1513
|
-
Kind2["SCHEMA_EXTENSION"] = "SchemaExtension";
|
|
1514
|
-
Kind2["SCALAR_TYPE_EXTENSION"] = "ScalarTypeExtension";
|
|
1515
|
-
Kind2["OBJECT_TYPE_EXTENSION"] = "ObjectTypeExtension";
|
|
1516
|
-
Kind2["INTERFACE_TYPE_EXTENSION"] = "InterfaceTypeExtension";
|
|
1517
|
-
Kind2["UNION_TYPE_EXTENSION"] = "UnionTypeExtension";
|
|
1518
|
-
Kind2["ENUM_TYPE_EXTENSION"] = "EnumTypeExtension";
|
|
1519
|
-
Kind2["INPUT_OBJECT_TYPE_EXTENSION"] = "InputObjectTypeExtension";
|
|
1520
|
-
Kind2["TYPE_COORDINATE"] = "TypeCoordinate";
|
|
1521
|
-
Kind2["MEMBER_COORDINATE"] = "MemberCoordinate";
|
|
1522
|
-
Kind2["ARGUMENT_COORDINATE"] = "ArgumentCoordinate";
|
|
1523
|
-
Kind2["DIRECTIVE_COORDINATE"] = "DirectiveCoordinate";
|
|
1524
|
-
Kind2["DIRECTIVE_ARGUMENT_COORDINATE"] = "DirectiveArgumentCoordinate";
|
|
1525
|
-
})(Kind || (Kind = {}));
|
|
1526
|
-
|
|
1527
|
-
// node_modules/graphql/language/characterClasses.mjs
|
|
1528
|
-
function isWhiteSpace(code) {
|
|
1529
|
-
return code === 9 || code === 32;
|
|
1530
|
-
}
|
|
1531
|
-
|
|
1532
|
-
// node_modules/graphql/language/blockString.mjs
|
|
1533
|
-
function printBlockString(value, options) {
|
|
1534
|
-
const escapedValue = value.replace(/"""/g, '\\"""');
|
|
1535
|
-
const lines = escapedValue.split(/\r\n|[\n\r]/g);
|
|
1536
|
-
const isSingleLine = lines.length === 1;
|
|
1537
|
-
const forceLeadingNewLine = lines.length > 1 && lines.slice(1).every((line) => line.length === 0 || isWhiteSpace(line.charCodeAt(0)));
|
|
1538
|
-
const hasTrailingTripleQuotes = escapedValue.endsWith('\\"""');
|
|
1539
|
-
const hasTrailingQuote = value.endsWith('"') && !hasTrailingTripleQuotes;
|
|
1540
|
-
const hasTrailingSlash = value.endsWith("\\");
|
|
1541
|
-
const forceTrailingNewline = hasTrailingQuote || hasTrailingSlash;
|
|
1542
|
-
const printAsMultipleLines = !(options !== null && options !== void 0 && options.minimize) && // add leading and trailing new lines only if it improves readability
|
|
1543
|
-
(!isSingleLine || value.length > 70 || forceTrailingNewline || forceLeadingNewLine || hasTrailingTripleQuotes);
|
|
1544
|
-
let result = "";
|
|
1545
|
-
const skipLeadingNewLine = isSingleLine && isWhiteSpace(value.charCodeAt(0));
|
|
1546
|
-
if (printAsMultipleLines && !skipLeadingNewLine || forceLeadingNewLine) {
|
|
1547
|
-
result += "\n";
|
|
1548
|
-
}
|
|
1549
|
-
result += escapedValue;
|
|
1550
|
-
if (printAsMultipleLines || forceTrailingNewline) {
|
|
1551
|
-
result += "\n";
|
|
1552
|
-
}
|
|
1553
|
-
return '"""' + result + '"""';
|
|
1554
|
-
}
|
|
1555
|
-
|
|
1556
|
-
// node_modules/graphql/jsutils/inspect.mjs
|
|
1557
|
-
var MAX_ARRAY_LENGTH = 10;
|
|
1558
|
-
var MAX_RECURSIVE_DEPTH = 2;
|
|
1559
|
-
function inspect(value) {
|
|
1560
|
-
return formatValue(value, []);
|
|
1561
|
-
}
|
|
1562
|
-
function formatValue(value, seenValues) {
|
|
1563
|
-
switch (typeof value) {
|
|
1564
|
-
case "string":
|
|
1565
|
-
return JSON.stringify(value);
|
|
1566
|
-
case "function":
|
|
1567
|
-
return value.name ? `[function ${value.name}]` : "[function]";
|
|
1568
|
-
case "object":
|
|
1569
|
-
return formatObjectValue(value, seenValues);
|
|
1570
|
-
default:
|
|
1571
|
-
return String(value);
|
|
1572
|
-
}
|
|
1573
|
-
}
|
|
1574
|
-
function formatObjectValue(value, previouslySeenValues) {
|
|
1575
|
-
if (value === null) {
|
|
1576
|
-
return "null";
|
|
1577
|
-
}
|
|
1578
|
-
if (previouslySeenValues.includes(value)) {
|
|
1579
|
-
return "[Circular]";
|
|
1580
|
-
}
|
|
1581
|
-
const seenValues = [...previouslySeenValues, value];
|
|
1582
|
-
if (isJSONable(value)) {
|
|
1583
|
-
const jsonValue = value.toJSON();
|
|
1584
|
-
if (jsonValue !== value) {
|
|
1585
|
-
return typeof jsonValue === "string" ? jsonValue : formatValue(jsonValue, seenValues);
|
|
1586
|
-
}
|
|
1587
|
-
} else if (Array.isArray(value)) {
|
|
1588
|
-
return formatArray(value, seenValues);
|
|
1589
|
-
}
|
|
1590
|
-
return formatObject(value, seenValues);
|
|
1591
|
-
}
|
|
1592
|
-
function isJSONable(value) {
|
|
1593
|
-
return typeof value.toJSON === "function";
|
|
1594
|
-
}
|
|
1595
|
-
function formatObject(object, seenValues) {
|
|
1596
|
-
const entries = Object.entries(object);
|
|
1597
|
-
if (entries.length === 0) {
|
|
1598
|
-
return "{}";
|
|
1599
|
-
}
|
|
1600
|
-
if (seenValues.length > MAX_RECURSIVE_DEPTH) {
|
|
1601
|
-
return "[" + getObjectTag(object) + "]";
|
|
1602
|
-
}
|
|
1603
|
-
const properties = entries.map(
|
|
1604
|
-
([key, value]) => key + ": " + formatValue(value, seenValues)
|
|
1605
|
-
);
|
|
1606
|
-
return "{ " + properties.join(", ") + " }";
|
|
1607
|
-
}
|
|
1608
|
-
function formatArray(array, seenValues) {
|
|
1609
|
-
if (array.length === 0) {
|
|
1610
|
-
return "[]";
|
|
1611
|
-
}
|
|
1612
|
-
if (seenValues.length > MAX_RECURSIVE_DEPTH) {
|
|
1613
|
-
return "[Array]";
|
|
1614
|
-
}
|
|
1615
|
-
const len = Math.min(MAX_ARRAY_LENGTH, array.length);
|
|
1616
|
-
const remaining = array.length - len;
|
|
1617
|
-
const items = [];
|
|
1618
|
-
for (let i = 0; i < len; ++i) {
|
|
1619
|
-
items.push(formatValue(array[i], seenValues));
|
|
1620
|
-
}
|
|
1621
|
-
if (remaining === 1) {
|
|
1622
|
-
items.push("... 1 more item");
|
|
1623
|
-
} else if (remaining > 1) {
|
|
1624
|
-
items.push(`... ${remaining} more items`);
|
|
1625
|
-
}
|
|
1626
|
-
return "[" + items.join(", ") + "]";
|
|
1627
|
-
}
|
|
1628
|
-
function getObjectTag(object) {
|
|
1629
|
-
const tag = Object.prototype.toString.call(object).replace(/^\[object /, "").replace(/]$/, "");
|
|
1630
|
-
if (tag === "Object" && typeof object.constructor === "function") {
|
|
1631
|
-
const name = object.constructor.name;
|
|
1632
|
-
if (typeof name === "string" && name !== "") {
|
|
1633
|
-
return name;
|
|
1634
|
-
}
|
|
1635
|
-
}
|
|
1636
|
-
return tag;
|
|
1637
|
-
}
|
|
1638
|
-
|
|
1639
|
-
// node_modules/graphql/language/printString.mjs
|
|
1640
|
-
function printString(str) {
|
|
1641
|
-
return `"${str.replace(escapedRegExp, escapedReplacer)}"`;
|
|
1642
|
-
}
|
|
1643
|
-
var escapedRegExp = /[\x00-\x1f\x22\x5c\x7f-\x9f]/g;
|
|
1644
|
-
function escapedReplacer(str) {
|
|
1645
|
-
return escapeSequences[str.charCodeAt(0)];
|
|
1646
|
-
}
|
|
1647
|
-
var escapeSequences = [
|
|
1648
|
-
"\\u0000",
|
|
1649
|
-
"\\u0001",
|
|
1650
|
-
"\\u0002",
|
|
1651
|
-
"\\u0003",
|
|
1652
|
-
"\\u0004",
|
|
1653
|
-
"\\u0005",
|
|
1654
|
-
"\\u0006",
|
|
1655
|
-
"\\u0007",
|
|
1656
|
-
"\\b",
|
|
1657
|
-
"\\t",
|
|
1658
|
-
"\\n",
|
|
1659
|
-
"\\u000B",
|
|
1660
|
-
"\\f",
|
|
1661
|
-
"\\r",
|
|
1662
|
-
"\\u000E",
|
|
1663
|
-
"\\u000F",
|
|
1664
|
-
"\\u0010",
|
|
1665
|
-
"\\u0011",
|
|
1666
|
-
"\\u0012",
|
|
1667
|
-
"\\u0013",
|
|
1668
|
-
"\\u0014",
|
|
1669
|
-
"\\u0015",
|
|
1670
|
-
"\\u0016",
|
|
1671
|
-
"\\u0017",
|
|
1672
|
-
"\\u0018",
|
|
1673
|
-
"\\u0019",
|
|
1674
|
-
"\\u001A",
|
|
1675
|
-
"\\u001B",
|
|
1676
|
-
"\\u001C",
|
|
1677
|
-
"\\u001D",
|
|
1678
|
-
"\\u001E",
|
|
1679
|
-
"\\u001F",
|
|
1680
|
-
"",
|
|
1681
|
-
"",
|
|
1682
|
-
'\\"',
|
|
1683
|
-
"",
|
|
1684
|
-
"",
|
|
1685
|
-
"",
|
|
1686
|
-
"",
|
|
1687
|
-
"",
|
|
1688
|
-
"",
|
|
1689
|
-
"",
|
|
1690
|
-
"",
|
|
1691
|
-
"",
|
|
1692
|
-
"",
|
|
1693
|
-
"",
|
|
1694
|
-
"",
|
|
1695
|
-
"",
|
|
1696
|
-
// 2F
|
|
1697
|
-
"",
|
|
1698
|
-
"",
|
|
1699
|
-
"",
|
|
1700
|
-
"",
|
|
1701
|
-
"",
|
|
1702
|
-
"",
|
|
1703
|
-
"",
|
|
1704
|
-
"",
|
|
1705
|
-
"",
|
|
1706
|
-
"",
|
|
1707
|
-
"",
|
|
1708
|
-
"",
|
|
1709
|
-
"",
|
|
1710
|
-
"",
|
|
1711
|
-
"",
|
|
1712
|
-
"",
|
|
1713
|
-
// 3F
|
|
1714
|
-
"",
|
|
1715
|
-
"",
|
|
1716
|
-
"",
|
|
1717
|
-
"",
|
|
1718
|
-
"",
|
|
1719
|
-
"",
|
|
1720
|
-
"",
|
|
1721
|
-
"",
|
|
1722
|
-
"",
|
|
1723
|
-
"",
|
|
1724
|
-
"",
|
|
1725
|
-
"",
|
|
1726
|
-
"",
|
|
1727
|
-
"",
|
|
1728
|
-
"",
|
|
1729
|
-
"",
|
|
1730
|
-
// 4F
|
|
1731
|
-
"",
|
|
1732
|
-
"",
|
|
1733
|
-
"",
|
|
1734
|
-
"",
|
|
1735
|
-
"",
|
|
1736
|
-
"",
|
|
1737
|
-
"",
|
|
1738
|
-
"",
|
|
1739
|
-
"",
|
|
1740
|
-
"",
|
|
1741
|
-
"",
|
|
1742
|
-
"",
|
|
1743
|
-
"\\\\",
|
|
1744
|
-
"",
|
|
1745
|
-
"",
|
|
1746
|
-
"",
|
|
1747
|
-
// 5F
|
|
1748
|
-
"",
|
|
1749
|
-
"",
|
|
1750
|
-
"",
|
|
1751
|
-
"",
|
|
1752
|
-
"",
|
|
1753
|
-
"",
|
|
1754
|
-
"",
|
|
1755
|
-
"",
|
|
1756
|
-
"",
|
|
1757
|
-
"",
|
|
1758
|
-
"",
|
|
1759
|
-
"",
|
|
1760
|
-
"",
|
|
1761
|
-
"",
|
|
1762
|
-
"",
|
|
1763
|
-
"",
|
|
1764
|
-
// 6F
|
|
1765
|
-
"",
|
|
1766
|
-
"",
|
|
1767
|
-
"",
|
|
1768
|
-
"",
|
|
1769
|
-
"",
|
|
1770
|
-
"",
|
|
1771
|
-
"",
|
|
1772
|
-
"",
|
|
1773
|
-
"",
|
|
1774
|
-
"",
|
|
1775
|
-
"",
|
|
1776
|
-
"",
|
|
1777
|
-
"",
|
|
1778
|
-
"",
|
|
1779
|
-
"",
|
|
1780
|
-
"\\u007F",
|
|
1781
|
-
"\\u0080",
|
|
1782
|
-
"\\u0081",
|
|
1783
|
-
"\\u0082",
|
|
1784
|
-
"\\u0083",
|
|
1785
|
-
"\\u0084",
|
|
1786
|
-
"\\u0085",
|
|
1787
|
-
"\\u0086",
|
|
1788
|
-
"\\u0087",
|
|
1789
|
-
"\\u0088",
|
|
1790
|
-
"\\u0089",
|
|
1791
|
-
"\\u008A",
|
|
1792
|
-
"\\u008B",
|
|
1793
|
-
"\\u008C",
|
|
1794
|
-
"\\u008D",
|
|
1795
|
-
"\\u008E",
|
|
1796
|
-
"\\u008F",
|
|
1797
|
-
"\\u0090",
|
|
1798
|
-
"\\u0091",
|
|
1799
|
-
"\\u0092",
|
|
1800
|
-
"\\u0093",
|
|
1801
|
-
"\\u0094",
|
|
1802
|
-
"\\u0095",
|
|
1803
|
-
"\\u0096",
|
|
1804
|
-
"\\u0097",
|
|
1805
|
-
"\\u0098",
|
|
1806
|
-
"\\u0099",
|
|
1807
|
-
"\\u009A",
|
|
1808
|
-
"\\u009B",
|
|
1809
|
-
"\\u009C",
|
|
1810
|
-
"\\u009D",
|
|
1811
|
-
"\\u009E",
|
|
1812
|
-
"\\u009F"
|
|
1813
|
-
];
|
|
1814
|
-
|
|
1815
|
-
// node_modules/graphql/language/visitor.mjs
|
|
1816
|
-
var BREAK = Object.freeze({});
|
|
1817
|
-
function visit(root, visitor, visitorKeys = QueryDocumentKeys) {
|
|
1818
|
-
const enterLeaveMap = /* @__PURE__ */ new Map();
|
|
1819
|
-
for (const kind of Object.values(Kind)) {
|
|
1820
|
-
enterLeaveMap.set(kind, getEnterLeaveForKind(visitor, kind));
|
|
1821
|
-
}
|
|
1822
|
-
let stack = void 0;
|
|
1823
|
-
let inArray = Array.isArray(root);
|
|
1824
|
-
let keys = [root];
|
|
1825
|
-
let index = -1;
|
|
1826
|
-
let edits = [];
|
|
1827
|
-
let node = root;
|
|
1828
|
-
let key = void 0;
|
|
1829
|
-
let parent = void 0;
|
|
1830
|
-
const path = [];
|
|
1831
|
-
const ancestors = [];
|
|
1832
|
-
do {
|
|
1833
|
-
index++;
|
|
1834
|
-
const isLeaving = index === keys.length;
|
|
1835
|
-
const isEdited = isLeaving && edits.length !== 0;
|
|
1836
|
-
if (isLeaving) {
|
|
1837
|
-
key = ancestors.length === 0 ? void 0 : path[path.length - 1];
|
|
1838
|
-
node = parent;
|
|
1839
|
-
parent = ancestors.pop();
|
|
1840
|
-
if (isEdited) {
|
|
1841
|
-
if (inArray) {
|
|
1842
|
-
node = node.slice();
|
|
1843
|
-
let editOffset = 0;
|
|
1844
|
-
for (const [editKey, editValue] of edits) {
|
|
1845
|
-
const arrayKey = editKey - editOffset;
|
|
1846
|
-
if (editValue === null) {
|
|
1847
|
-
node.splice(arrayKey, 1);
|
|
1848
|
-
editOffset++;
|
|
1849
|
-
} else {
|
|
1850
|
-
node[arrayKey] = editValue;
|
|
1851
|
-
}
|
|
1852
|
-
}
|
|
1853
|
-
} else {
|
|
1854
|
-
node = { ...node };
|
|
1855
|
-
for (const [editKey, editValue] of edits) {
|
|
1856
|
-
node[editKey] = editValue;
|
|
1857
|
-
}
|
|
1858
|
-
}
|
|
1859
|
-
}
|
|
1860
|
-
index = stack.index;
|
|
1861
|
-
keys = stack.keys;
|
|
1862
|
-
edits = stack.edits;
|
|
1863
|
-
inArray = stack.inArray;
|
|
1864
|
-
stack = stack.prev;
|
|
1865
|
-
} else if (parent) {
|
|
1866
|
-
key = inArray ? index : keys[index];
|
|
1867
|
-
node = parent[key];
|
|
1868
|
-
if (node === null || node === void 0) {
|
|
1869
|
-
continue;
|
|
1870
|
-
}
|
|
1871
|
-
path.push(key);
|
|
1872
|
-
}
|
|
1873
|
-
let result;
|
|
1874
|
-
if (!Array.isArray(node)) {
|
|
1875
|
-
var _enterLeaveMap$get, _enterLeaveMap$get2;
|
|
1876
|
-
isNode(node) || devAssert(false, `Invalid AST Node: ${inspect(node)}.`);
|
|
1877
|
-
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;
|
|
1878
|
-
result = visitFn === null || visitFn === void 0 ? void 0 : visitFn.call(visitor, node, key, parent, path, ancestors);
|
|
1879
|
-
if (result === BREAK) {
|
|
1880
|
-
break;
|
|
1881
|
-
}
|
|
1882
|
-
if (result === false) {
|
|
1883
|
-
if (!isLeaving) {
|
|
1884
|
-
path.pop();
|
|
1885
|
-
continue;
|
|
1886
|
-
}
|
|
1887
|
-
} else if (result !== void 0) {
|
|
1888
|
-
edits.push([key, result]);
|
|
1889
|
-
if (!isLeaving) {
|
|
1890
|
-
if (isNode(result)) {
|
|
1891
|
-
node = result;
|
|
1892
|
-
} else {
|
|
1893
|
-
path.pop();
|
|
1894
|
-
continue;
|
|
1895
|
-
}
|
|
1896
|
-
}
|
|
1897
|
-
}
|
|
1898
|
-
}
|
|
1899
|
-
if (result === void 0 && isEdited) {
|
|
1900
|
-
edits.push([key, node]);
|
|
1901
|
-
}
|
|
1902
|
-
if (isLeaving) {
|
|
1903
|
-
path.pop();
|
|
1904
|
-
} else {
|
|
1905
|
-
var _node$kind;
|
|
1906
|
-
stack = {
|
|
1907
|
-
inArray,
|
|
1908
|
-
index,
|
|
1909
|
-
keys,
|
|
1910
|
-
edits,
|
|
1911
|
-
prev: stack
|
|
1912
|
-
};
|
|
1913
|
-
inArray = Array.isArray(node);
|
|
1914
|
-
keys = inArray ? node : (_node$kind = visitorKeys[node.kind]) !== null && _node$kind !== void 0 ? _node$kind : [];
|
|
1915
|
-
index = -1;
|
|
1916
|
-
edits = [];
|
|
1917
|
-
if (parent) {
|
|
1918
|
-
ancestors.push(parent);
|
|
1919
|
-
}
|
|
1920
|
-
parent = node;
|
|
1921
|
-
}
|
|
1922
|
-
} while (stack !== void 0);
|
|
1923
|
-
if (edits.length !== 0) {
|
|
1924
|
-
return edits[edits.length - 1][1];
|
|
1925
|
-
}
|
|
1926
|
-
return root;
|
|
1927
|
-
}
|
|
1928
|
-
function getEnterLeaveForKind(visitor, kind) {
|
|
1929
|
-
const kindVisitor = visitor[kind];
|
|
1930
|
-
if (typeof kindVisitor === "object") {
|
|
1931
|
-
return kindVisitor;
|
|
1932
|
-
} else if (typeof kindVisitor === "function") {
|
|
1933
|
-
return {
|
|
1934
|
-
enter: kindVisitor,
|
|
1935
|
-
leave: void 0
|
|
1936
|
-
};
|
|
1937
|
-
}
|
|
1938
|
-
return {
|
|
1939
|
-
enter: visitor.enter,
|
|
1940
|
-
leave: visitor.leave
|
|
1941
|
-
};
|
|
1942
|
-
}
|
|
1943
|
-
|
|
1944
|
-
// node_modules/graphql/language/printer.mjs
|
|
1945
|
-
function print(ast) {
|
|
1946
|
-
return visit(ast, printDocASTReducer);
|
|
1947
|
-
}
|
|
1948
|
-
var MAX_LINE_LENGTH = 80;
|
|
1949
|
-
var printDocASTReducer = {
|
|
1950
|
-
Name: {
|
|
1951
|
-
leave: (node) => node.value
|
|
1952
|
-
},
|
|
1953
|
-
Variable: {
|
|
1954
|
-
leave: (node) => "$" + node.name
|
|
1955
|
-
},
|
|
1956
|
-
// Document
|
|
1957
|
-
Document: {
|
|
1958
|
-
leave: (node) => join(node.definitions, "\n\n")
|
|
1959
|
-
},
|
|
1960
|
-
OperationDefinition: {
|
|
1961
|
-
leave(node) {
|
|
1962
|
-
const varDefs = hasMultilineItems(node.variableDefinitions) ? wrap("(\n", join(node.variableDefinitions, "\n"), "\n)") : wrap("(", join(node.variableDefinitions, ", "), ")");
|
|
1963
|
-
const prefix = wrap("", node.description, "\n") + join(
|
|
1964
|
-
[
|
|
1965
|
-
node.operation,
|
|
1966
|
-
join([node.name, varDefs]),
|
|
1967
|
-
join(node.directives, " ")
|
|
1968
|
-
],
|
|
1969
|
-
" "
|
|
1970
|
-
);
|
|
1971
|
-
return (prefix === "query" ? "" : prefix + " ") + node.selectionSet;
|
|
1972
|
-
}
|
|
1973
|
-
},
|
|
1974
|
-
VariableDefinition: {
|
|
1975
|
-
leave: ({ variable, type, defaultValue, directives, description }) => wrap("", description, "\n") + variable + ": " + type + wrap(" = ", defaultValue) + wrap(" ", join(directives, " "))
|
|
1976
|
-
},
|
|
1977
|
-
SelectionSet: {
|
|
1978
|
-
leave: ({ selections }) => block(selections)
|
|
1979
|
-
},
|
|
1980
|
-
Field: {
|
|
1981
|
-
leave({ alias, name, arguments: args, directives, selectionSet }) {
|
|
1982
|
-
const prefix = wrap("", alias, ": ") + name;
|
|
1983
|
-
let argsLine = prefix + wrap("(", join(args, ", "), ")");
|
|
1984
|
-
if (argsLine.length > MAX_LINE_LENGTH) {
|
|
1985
|
-
argsLine = prefix + wrap("(\n", indent(join(args, "\n")), "\n)");
|
|
1986
|
-
}
|
|
1987
|
-
return join([argsLine, join(directives, " "), selectionSet], " ");
|
|
1988
|
-
}
|
|
1989
|
-
},
|
|
1990
|
-
Argument: {
|
|
1991
|
-
leave: ({ name, value }) => name + ": " + value
|
|
1992
|
-
},
|
|
1993
|
-
// Fragments
|
|
1994
|
-
FragmentSpread: {
|
|
1995
|
-
leave: ({ name, directives }) => "..." + name + wrap(" ", join(directives, " "))
|
|
1996
|
-
},
|
|
1997
|
-
InlineFragment: {
|
|
1998
|
-
leave: ({ typeCondition, directives, selectionSet }) => join(
|
|
1999
|
-
[
|
|
2000
|
-
"...",
|
|
2001
|
-
wrap("on ", typeCondition),
|
|
2002
|
-
join(directives, " "),
|
|
2003
|
-
selectionSet
|
|
2004
|
-
],
|
|
2005
|
-
" "
|
|
2006
|
-
)
|
|
2007
|
-
},
|
|
2008
|
-
FragmentDefinition: {
|
|
2009
|
-
leave: ({
|
|
2010
|
-
name,
|
|
2011
|
-
typeCondition,
|
|
2012
|
-
variableDefinitions,
|
|
2013
|
-
directives,
|
|
2014
|
-
selectionSet,
|
|
2015
|
-
description
|
|
2016
|
-
}) => wrap("", description, "\n") + // Note: fragment variable definitions are experimental and may be changed
|
|
2017
|
-
// or removed in the future.
|
|
2018
|
-
`fragment ${name}${wrap("(", join(variableDefinitions, ", "), ")")} on ${typeCondition} ${wrap("", join(directives, " "), " ")}` + selectionSet
|
|
2019
|
-
},
|
|
2020
|
-
// Value
|
|
2021
|
-
IntValue: {
|
|
2022
|
-
leave: ({ value }) => value
|
|
2023
|
-
},
|
|
2024
|
-
FloatValue: {
|
|
2025
|
-
leave: ({ value }) => value
|
|
2026
|
-
},
|
|
2027
|
-
StringValue: {
|
|
2028
|
-
leave: ({ value, block: isBlockString }) => isBlockString ? printBlockString(value) : printString(value)
|
|
2029
|
-
},
|
|
2030
|
-
BooleanValue: {
|
|
2031
|
-
leave: ({ value }) => value ? "true" : "false"
|
|
2032
|
-
},
|
|
2033
|
-
NullValue: {
|
|
2034
|
-
leave: () => "null"
|
|
2035
|
-
},
|
|
2036
|
-
EnumValue: {
|
|
2037
|
-
leave: ({ value }) => value
|
|
2038
|
-
},
|
|
2039
|
-
ListValue: {
|
|
2040
|
-
leave: ({ values }) => "[" + join(values, ", ") + "]"
|
|
2041
|
-
},
|
|
2042
|
-
ObjectValue: {
|
|
2043
|
-
leave: ({ fields }) => "{" + join(fields, ", ") + "}"
|
|
2044
|
-
},
|
|
2045
|
-
ObjectField: {
|
|
2046
|
-
leave: ({ name, value }) => name + ": " + value
|
|
2047
|
-
},
|
|
2048
|
-
// Directive
|
|
2049
|
-
Directive: {
|
|
2050
|
-
leave: ({ name, arguments: args }) => "@" + name + wrap("(", join(args, ", "), ")")
|
|
2051
|
-
},
|
|
2052
|
-
// Type
|
|
2053
|
-
NamedType: {
|
|
2054
|
-
leave: ({ name }) => name
|
|
2055
|
-
},
|
|
2056
|
-
ListType: {
|
|
2057
|
-
leave: ({ type }) => "[" + type + "]"
|
|
2058
|
-
},
|
|
2059
|
-
NonNullType: {
|
|
2060
|
-
leave: ({ type }) => type + "!"
|
|
2061
|
-
},
|
|
2062
|
-
// Type System Definitions
|
|
2063
|
-
SchemaDefinition: {
|
|
2064
|
-
leave: ({ description, directives, operationTypes }) => wrap("", description, "\n") + join(["schema", join(directives, " "), block(operationTypes)], " ")
|
|
2065
|
-
},
|
|
2066
|
-
OperationTypeDefinition: {
|
|
2067
|
-
leave: ({ operation, type }) => operation + ": " + type
|
|
2068
|
-
},
|
|
2069
|
-
ScalarTypeDefinition: {
|
|
2070
|
-
leave: ({ description, name, directives }) => wrap("", description, "\n") + join(["scalar", name, join(directives, " ")], " ")
|
|
2071
|
-
},
|
|
2072
|
-
ObjectTypeDefinition: {
|
|
2073
|
-
leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
|
|
2074
|
-
[
|
|
2075
|
-
"type",
|
|
2076
|
-
name,
|
|
2077
|
-
wrap("implements ", join(interfaces, " & ")),
|
|
2078
|
-
join(directives, " "),
|
|
2079
|
-
block(fields)
|
|
2080
|
-
],
|
|
2081
|
-
" "
|
|
2082
|
-
)
|
|
2083
|
-
},
|
|
2084
|
-
FieldDefinition: {
|
|
2085
|
-
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, " "))
|
|
2086
|
-
},
|
|
2087
|
-
InputValueDefinition: {
|
|
2088
|
-
leave: ({ description, name, type, defaultValue, directives }) => wrap("", description, "\n") + join(
|
|
2089
|
-
[name + ": " + type, wrap("= ", defaultValue), join(directives, " ")],
|
|
2090
|
-
" "
|
|
2091
|
-
)
|
|
2092
|
-
},
|
|
2093
|
-
InterfaceTypeDefinition: {
|
|
2094
|
-
leave: ({ description, name, interfaces, directives, fields }) => wrap("", description, "\n") + join(
|
|
2095
|
-
[
|
|
2096
|
-
"interface",
|
|
2097
|
-
name,
|
|
2098
|
-
wrap("implements ", join(interfaces, " & ")),
|
|
2099
|
-
join(directives, " "),
|
|
2100
|
-
block(fields)
|
|
2101
|
-
],
|
|
2102
|
-
" "
|
|
2103
|
-
)
|
|
2104
|
-
},
|
|
2105
|
-
UnionTypeDefinition: {
|
|
2106
|
-
leave: ({ description, name, directives, types }) => wrap("", description, "\n") + join(
|
|
2107
|
-
["union", name, join(directives, " "), wrap("= ", join(types, " | "))],
|
|
2108
|
-
" "
|
|
2109
|
-
)
|
|
2110
|
-
},
|
|
2111
|
-
EnumTypeDefinition: {
|
|
2112
|
-
leave: ({ description, name, directives, values }) => wrap("", description, "\n") + join(["enum", name, join(directives, " "), block(values)], " ")
|
|
2113
|
-
},
|
|
2114
|
-
EnumValueDefinition: {
|
|
2115
|
-
leave: ({ description, name, directives }) => wrap("", description, "\n") + join([name, join(directives, " ")], " ")
|
|
2116
|
-
},
|
|
2117
|
-
InputObjectTypeDefinition: {
|
|
2118
|
-
leave: ({ description, name, directives, fields }) => wrap("", description, "\n") + join(["input", name, join(directives, " "), block(fields)], " ")
|
|
2119
|
-
},
|
|
2120
|
-
DirectiveDefinition: {
|
|
2121
|
-
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, " | ")
|
|
2122
|
-
},
|
|
2123
|
-
SchemaExtension: {
|
|
2124
|
-
leave: ({ directives, operationTypes }) => join(
|
|
2125
|
-
["extend schema", join(directives, " "), block(operationTypes)],
|
|
2126
|
-
" "
|
|
2127
|
-
)
|
|
2128
|
-
},
|
|
2129
|
-
ScalarTypeExtension: {
|
|
2130
|
-
leave: ({ name, directives }) => join(["extend scalar", name, join(directives, " ")], " ")
|
|
2131
|
-
},
|
|
2132
|
-
ObjectTypeExtension: {
|
|
2133
|
-
leave: ({ name, interfaces, directives, fields }) => join(
|
|
2134
|
-
[
|
|
2135
|
-
"extend type",
|
|
2136
|
-
name,
|
|
2137
|
-
wrap("implements ", join(interfaces, " & ")),
|
|
2138
|
-
join(directives, " "),
|
|
2139
|
-
block(fields)
|
|
2140
|
-
],
|
|
2141
|
-
" "
|
|
2142
|
-
)
|
|
2143
|
-
},
|
|
2144
|
-
InterfaceTypeExtension: {
|
|
2145
|
-
leave: ({ name, interfaces, directives, fields }) => join(
|
|
2146
|
-
[
|
|
2147
|
-
"extend interface",
|
|
2148
|
-
name,
|
|
2149
|
-
wrap("implements ", join(interfaces, " & ")),
|
|
2150
|
-
join(directives, " "),
|
|
2151
|
-
block(fields)
|
|
2152
|
-
],
|
|
2153
|
-
" "
|
|
2154
|
-
)
|
|
2155
|
-
},
|
|
2156
|
-
UnionTypeExtension: {
|
|
2157
|
-
leave: ({ name, directives, types }) => join(
|
|
2158
|
-
[
|
|
2159
|
-
"extend union",
|
|
2160
|
-
name,
|
|
2161
|
-
join(directives, " "),
|
|
2162
|
-
wrap("= ", join(types, " | "))
|
|
2163
|
-
],
|
|
2164
|
-
" "
|
|
2165
|
-
)
|
|
2166
|
-
},
|
|
2167
|
-
EnumTypeExtension: {
|
|
2168
|
-
leave: ({ name, directives, values }) => join(["extend enum", name, join(directives, " "), block(values)], " ")
|
|
2169
|
-
},
|
|
2170
|
-
InputObjectTypeExtension: {
|
|
2171
|
-
leave: ({ name, directives, fields }) => join(["extend input", name, join(directives, " "), block(fields)], " ")
|
|
2172
|
-
},
|
|
2173
|
-
// Schema Coordinates
|
|
2174
|
-
TypeCoordinate: {
|
|
2175
|
-
leave: ({ name }) => name
|
|
2176
|
-
},
|
|
2177
|
-
MemberCoordinate: {
|
|
2178
|
-
leave: ({ name, memberName }) => join([name, wrap(".", memberName)])
|
|
2179
|
-
},
|
|
2180
|
-
ArgumentCoordinate: {
|
|
2181
|
-
leave: ({ name, fieldName, argumentName }) => join([name, wrap(".", fieldName), wrap("(", argumentName, ":)")])
|
|
2182
|
-
},
|
|
2183
|
-
DirectiveCoordinate: {
|
|
2184
|
-
leave: ({ name }) => join(["@", name])
|
|
2185
|
-
},
|
|
2186
|
-
DirectiveArgumentCoordinate: {
|
|
2187
|
-
leave: ({ name, argumentName }) => join(["@", name, wrap("(", argumentName, ":)")])
|
|
2188
|
-
}
|
|
2189
|
-
};
|
|
2190
|
-
function join(maybeArray, separator = "") {
|
|
2191
|
-
var _maybeArray$filter$jo;
|
|
2192
|
-
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 : "";
|
|
2193
|
-
}
|
|
2194
|
-
function block(array) {
|
|
2195
|
-
return wrap("{\n", indent(join(array, "\n")), "\n}");
|
|
2196
|
-
}
|
|
2197
|
-
function wrap(start, maybeString, end = "") {
|
|
2198
|
-
return maybeString != null && maybeString !== "" ? start + maybeString + end : "";
|
|
2199
|
-
}
|
|
2200
|
-
function indent(str) {
|
|
2201
|
-
return wrap(" ", str.replace(/\n/g, "\n "));
|
|
2202
|
-
}
|
|
2203
|
-
function hasMultilineItems(maybeArray) {
|
|
2204
|
-
var _maybeArray$some;
|
|
2205
|
-
return (_maybeArray$some = maybeArray === null || maybeArray === void 0 ? void 0 : maybeArray.some((str) => str.includes("\n"))) !== null && _maybeArray$some !== void 0 ? _maybeArray$some : false;
|
|
2206
|
-
}
|
|
2207
|
-
|
|
2208
1365
|
// src/graphql/toGraphqlQueryString.ts
|
|
1366
|
+
var import_graphql = require("graphql");
|
|
2209
1367
|
function toGraphqlQueryString(query) {
|
|
2210
|
-
return print(query);
|
|
1368
|
+
return (0, import_graphql.print)(query);
|
|
2211
1369
|
}
|
|
2212
1370
|
|
|
2213
1371
|
// src/graphql/hooks/admin/hooksMutation.ts
|