@faststore/core 2.0.164-alpha.0 → 2.0.166-alpha.0
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/.next/BUILD_ID +1 -1
- package/.next/build-manifest.json +50 -59
- package/.next/cache/.tsbuildinfo +1 -1
- package/.next/cache/config.json +3 -3
- package/.next/cache/eslint/.cache_1gneedd +1 -1
- package/.next/cache/next-server.js.nft.json +1 -1
- package/.next/cache/webpack/client-production/0.pack +0 -0
- package/.next/cache/webpack/client-production/index.pack +0 -0
- package/.next/cache/webpack/server-production/0.pack +0 -0
- package/.next/cache/webpack/server-production/index.pack +0 -0
- package/.next/next-server.js.nft.json +1 -1
- package/.next/prerender-manifest.json +1 -1
- package/.next/react-loadable-manifest.json +8 -11
- package/.next/routes-manifest.json +1 -1
- package/.next/server/chunks/123.js +4 -4
- package/.next/server/chunks/143.js +2 -2
- package/.next/server/chunks/183.js +1 -1
- package/.next/server/chunks/205.js +30 -30
- package/.next/server/chunks/247.js +6 -6
- package/.next/server/chunks/280.js +26 -26
- package/.next/server/chunks/287.js +8 -8
- package/.next/server/chunks/289.js +18 -18
- package/.next/server/chunks/312.js +69 -69
- package/.next/server/chunks/336.js +41 -41
- package/.next/server/chunks/350.js +14 -14
- package/.next/server/chunks/368.js +14 -14
- package/.next/server/chunks/{401.js → 487.js} +2162 -261
- package/.next/server/chunks/502.js +91 -65
- package/.next/server/chunks/576.js +1 -1
- package/.next/server/chunks/597.js +10 -10
- package/.next/server/chunks/{431.js → 650.js} +2180 -279
- package/.next/server/chunks/676.js +2 -2
- package/.next/server/chunks/701.js +6 -6
- package/.next/server/chunks/74.js +462 -221
- package/.next/server/chunks/82.js +23 -23
- package/.next/server/chunks/{664.js → 825.js} +714 -76
- package/.next/server/chunks/854.js +4 -4
- package/.next/server/chunks/859.js +12 -12
- package/.next/server/chunks/874.js +12 -12
- package/.next/server/chunks/886.js +3 -3
- package/.next/server/chunks/907.js +123 -123
- package/.next/server/chunks/970.js +15 -15
- package/.next/server/chunks/98.js +4 -4
- package/.next/server/middleware-build-manifest.js +1 -1
- package/.next/server/middleware-react-loadable-manifest.js +1 -1
- package/.next/server/pages/404.js +44 -44
- package/.next/server/pages/404.js.nft.json +1 -1
- package/.next/server/pages/500.js +44 -44
- package/.next/server/pages/500.js.nft.json +1 -1
- package/.next/server/pages/[...slug].js +134 -78
- package/.next/server/pages/[...slug].js.nft.json +1 -1
- package/.next/server/pages/[slug]/p.js +229 -173
- package/.next/server/pages/[slug]/p.js.nft.json +1 -1
- package/.next/server/pages/_app.js +23 -68
- package/.next/server/pages/_app.js.nft.json +1 -1
- package/.next/server/pages/_document.js +29 -29
- package/.next/server/pages/_error.js +8 -8
- package/.next/server/pages/account.js +43 -43
- package/.next/server/pages/account.js.nft.json +1 -1
- package/.next/server/pages/api/graphql.js +77 -28
- package/.next/server/pages/api/graphql.js.nft.json +1 -1
- package/.next/server/pages/api/preview.js +3 -3
- package/.next/server/pages/checkout.js +42 -42
- package/.next/server/pages/checkout.js.nft.json +1 -1
- package/.next/server/pages/en-US/404.html +2 -2
- package/.next/server/pages/en-US/500.html +2 -2
- package/.next/server/pages/en-US/account.html +2 -2
- package/.next/server/pages/en-US/checkout.html +2 -2
- package/.next/server/pages/en-US/login.html +2 -2
- package/.next/server/pages/en-US/s.html +2 -2
- package/.next/server/pages/en-US.html +2 -2
- package/.next/server/pages/index.js +85 -85
- package/.next/server/pages/index.js.nft.json +1 -1
- package/.next/server/pages/login.js +45 -45
- package/.next/server/pages/login.js.nft.json +1 -1
- package/.next/server/pages/s.js +56 -56
- package/.next/server/pages/s.js.nft.json +1 -1
- package/.next/server/pages-manifest.json +5 -5
- package/.next/static/V9ehyEgCMbu0LEDWsRhj5/_buildManifest.js +1 -0
- package/.next/static/chunks/377-a2ea7cc68eb5f626.js +1 -0
- package/.next/static/chunks/460-910c8076569320d3.js +1 -0
- package/.next/static/chunks/502.ec90d1859d393d34.js +1 -0
- package/.next/static/chunks/597.331d43f9ddefb6ad.js +1 -0
- package/.next/static/chunks/pages/{404-459452495a0df278.js → 404-51ec6bdbfb779d04.js} +1 -1
- package/.next/static/chunks/pages/{500-008e30c48eceebed.js → 500-2326a336f08c29f7.js} +1 -1
- package/.next/static/chunks/pages/{[...slug]-e9d8386ff5e56d85.js → [...slug]-98f2ea72ad0aa938.js} +1 -1
- package/.next/static/chunks/pages/[slug]/{p-8346514a688bf869.js → p-fdd59650ea60aef9.js} +1 -1
- package/.next/static/chunks/pages/{_app-78846ca9151cf266.js → _app-ed042290aee646cb.js} +1 -1
- package/.next/static/chunks/pages/{account-46263f0c100c3eae.js → account-a27dac55934a8c58.js} +1 -1
- package/.next/static/chunks/pages/{checkout-20bb3710b24df3b6.js → checkout-f75cc5c4859916ba.js} +1 -1
- package/.next/static/chunks/pages/{index-2006be8f08ad057f.js → index-e7b12b548c44b1c5.js} +1 -1
- package/.next/static/chunks/pages/{login-f9d316d261fcc062.js → login-cdb531ad10c8993c.js} +1 -1
- package/.next/static/chunks/pages/{s-1cbe740b5b781d28.js → s-62ae2cb782518452.js} +1 -1
- package/.next/static/chunks/webpack-c22f5b0626028f1b.js +1 -0
- package/.next/static/css/87c68d702d4c704e.css +1 -0
- package/.next/trace +70 -69
- package/.turbo/turbo-build.log +9 -9
- package/CHANGELOG.md +10 -0
- package/cms/faststore/sections.json +95 -0
- package/package.json +3 -3
- package/src/Layout.tsx +1 -8
- package/src/components/cart/CartSidebar/CartSidebar.tsx +97 -54
- package/src/components/cms/GlobalSections.tsx +5 -4
- package/.next/server/chunks/608.js +0 -644
- package/.next/server/chunks/644.js +0 -235
- package/.next/static/chunks/336.0846f48eccce57e4.js +0 -1
- package/.next/static/chunks/377-891ff95d759cb061.js +0 -1
- package/.next/static/chunks/391-47b923ef44945418.js +0 -1
- package/.next/static/chunks/502.eeca300cb9a355fb.js +0 -1
- package/.next/static/chunks/545-1d3d08edfd2ee4c6.js +0 -1
- package/.next/static/chunks/597.57a8984b6a1071ae.js +0 -1
- package/.next/static/chunks/webpack-e9bf82a67cc08d0f.js +0 -1
- package/.next/static/css/28d7d73e13e2bc1d.css +0 -1
- package/.next/static/gIr9FWN1njlGkoTr4tYi8/_buildManifest.js +0 -1
- /package/.next/static/{gIr9FWN1njlGkoTr4tYi8 → V9ehyEgCMbu0LEDWsRhj5}/_ssgManifest.js +0 -0
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
exports.id =
|
|
3
|
-
exports.ids = [
|
|
2
|
+
exports.id = 650;
|
|
3
|
+
exports.ids = [650];
|
|
4
4
|
exports.modules = {
|
|
5
5
|
|
|
6
|
-
/***/
|
|
6
|
+
/***/ 12396:
|
|
7
7
|
/***/ ((module) => {
|
|
8
8
|
|
|
9
9
|
|
|
@@ -430,14 +430,1915 @@ module.exports = DataLoader;
|
|
|
430
430
|
|
|
431
431
|
/***/ }),
|
|
432
432
|
|
|
433
|
-
/***/
|
|
433
|
+
/***/ 30038:
|
|
434
|
+
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
435
|
+
|
|
436
|
+
__webpack_require__.r(__webpack_exports__);
|
|
437
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
438
|
+
/* harmony export */ "__assign": () => (/* binding */ __assign),
|
|
439
|
+
/* harmony export */ "__asyncDelegator": () => (/* binding */ __asyncDelegator),
|
|
440
|
+
/* harmony export */ "__asyncGenerator": () => (/* binding */ __asyncGenerator),
|
|
441
|
+
/* harmony export */ "__asyncValues": () => (/* binding */ __asyncValues),
|
|
442
|
+
/* harmony export */ "__await": () => (/* binding */ __await),
|
|
443
|
+
/* harmony export */ "__awaiter": () => (/* binding */ __awaiter),
|
|
444
|
+
/* harmony export */ "__classPrivateFieldGet": () => (/* binding */ __classPrivateFieldGet),
|
|
445
|
+
/* harmony export */ "__classPrivateFieldIn": () => (/* binding */ __classPrivateFieldIn),
|
|
446
|
+
/* harmony export */ "__classPrivateFieldSet": () => (/* binding */ __classPrivateFieldSet),
|
|
447
|
+
/* harmony export */ "__createBinding": () => (/* binding */ __createBinding),
|
|
448
|
+
/* harmony export */ "__decorate": () => (/* binding */ __decorate),
|
|
449
|
+
/* harmony export */ "__exportStar": () => (/* binding */ __exportStar),
|
|
450
|
+
/* harmony export */ "__extends": () => (/* binding */ __extends),
|
|
451
|
+
/* harmony export */ "__generator": () => (/* binding */ __generator),
|
|
452
|
+
/* harmony export */ "__importDefault": () => (/* binding */ __importDefault),
|
|
453
|
+
/* harmony export */ "__importStar": () => (/* binding */ __importStar),
|
|
454
|
+
/* harmony export */ "__makeTemplateObject": () => (/* binding */ __makeTemplateObject),
|
|
455
|
+
/* harmony export */ "__metadata": () => (/* binding */ __metadata),
|
|
456
|
+
/* harmony export */ "__param": () => (/* binding */ __param),
|
|
457
|
+
/* harmony export */ "__read": () => (/* binding */ __read),
|
|
458
|
+
/* harmony export */ "__rest": () => (/* binding */ __rest),
|
|
459
|
+
/* harmony export */ "__spread": () => (/* binding */ __spread),
|
|
460
|
+
/* harmony export */ "__spreadArray": () => (/* binding */ __spreadArray),
|
|
461
|
+
/* harmony export */ "__spreadArrays": () => (/* binding */ __spreadArrays),
|
|
462
|
+
/* harmony export */ "__values": () => (/* binding */ __values)
|
|
463
|
+
/* harmony export */ });
|
|
464
|
+
/******************************************************************************
|
|
465
|
+
Copyright (c) Microsoft Corporation.
|
|
466
|
+
|
|
467
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
468
|
+
purpose with or without fee is hereby granted.
|
|
469
|
+
|
|
470
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
471
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
472
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
473
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
474
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
475
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
476
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
477
|
+
***************************************************************************** */
|
|
478
|
+
/* global Reflect, Promise */
|
|
479
|
+
|
|
480
|
+
var extendStatics = function(d, b) {
|
|
481
|
+
extendStatics = Object.setPrototypeOf ||
|
|
482
|
+
({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
|
|
483
|
+
function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
|
|
484
|
+
return extendStatics(d, b);
|
|
485
|
+
};
|
|
486
|
+
|
|
487
|
+
function __extends(d, b) {
|
|
488
|
+
if (typeof b !== "function" && b !== null)
|
|
489
|
+
throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
|
|
490
|
+
extendStatics(d, b);
|
|
491
|
+
function __() { this.constructor = d; }
|
|
492
|
+
d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
|
|
493
|
+
}
|
|
494
|
+
|
|
495
|
+
var __assign = function() {
|
|
496
|
+
__assign = Object.assign || function __assign(t) {
|
|
497
|
+
for (var s, i = 1, n = arguments.length; i < n; i++) {
|
|
498
|
+
s = arguments[i];
|
|
499
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p)) t[p] = s[p];
|
|
500
|
+
}
|
|
501
|
+
return t;
|
|
502
|
+
}
|
|
503
|
+
return __assign.apply(this, arguments);
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
function __rest(s, e) {
|
|
507
|
+
var t = {};
|
|
508
|
+
for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
|
|
509
|
+
t[p] = s[p];
|
|
510
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function")
|
|
511
|
+
for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
512
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
|
|
513
|
+
t[p[i]] = s[p[i]];
|
|
514
|
+
}
|
|
515
|
+
return t;
|
|
516
|
+
}
|
|
517
|
+
|
|
518
|
+
function __decorate(decorators, target, key, desc) {
|
|
519
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
520
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
521
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
522
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
function __param(paramIndex, decorator) {
|
|
526
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
527
|
+
}
|
|
528
|
+
|
|
529
|
+
function __metadata(metadataKey, metadataValue) {
|
|
530
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(metadataKey, metadataValue);
|
|
531
|
+
}
|
|
532
|
+
|
|
533
|
+
function __awaiter(thisArg, _arguments, P, generator) {
|
|
534
|
+
function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
|
|
535
|
+
return new (P || (P = Promise))(function (resolve, reject) {
|
|
536
|
+
function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
|
|
537
|
+
function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
|
|
538
|
+
function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
|
|
539
|
+
step((generator = generator.apply(thisArg, _arguments || [])).next());
|
|
540
|
+
});
|
|
541
|
+
}
|
|
542
|
+
|
|
543
|
+
function __generator(thisArg, body) {
|
|
544
|
+
var _ = { label: 0, sent: function() { if (t[0] & 1) throw t[1]; return t[1]; }, trys: [], ops: [] }, f, y, t, g;
|
|
545
|
+
return g = { next: verb(0), "throw": verb(1), "return": verb(2) }, typeof Symbol === "function" && (g[Symbol.iterator] = function() { return this; }), g;
|
|
546
|
+
function verb(n) { return function (v) { return step([n, v]); }; }
|
|
547
|
+
function step(op) {
|
|
548
|
+
if (f) throw new TypeError("Generator is already executing.");
|
|
549
|
+
while (_) try {
|
|
550
|
+
if (f = 1, y && (t = op[0] & 2 ? y["return"] : op[0] ? y["throw"] || ((t = y["return"]) && t.call(y), 0) : y.next) && !(t = t.call(y, op[1])).done) return t;
|
|
551
|
+
if (y = 0, t) op = [op[0] & 2, t.value];
|
|
552
|
+
switch (op[0]) {
|
|
553
|
+
case 0: case 1: t = op; break;
|
|
554
|
+
case 4: _.label++; return { value: op[1], done: false };
|
|
555
|
+
case 5: _.label++; y = op[1]; op = [0]; continue;
|
|
556
|
+
case 7: op = _.ops.pop(); _.trys.pop(); continue;
|
|
557
|
+
default:
|
|
558
|
+
if (!(t = _.trys, t = t.length > 0 && t[t.length - 1]) && (op[0] === 6 || op[0] === 2)) { _ = 0; continue; }
|
|
559
|
+
if (op[0] === 3 && (!t || (op[1] > t[0] && op[1] < t[3]))) { _.label = op[1]; break; }
|
|
560
|
+
if (op[0] === 6 && _.label < t[1]) { _.label = t[1]; t = op; break; }
|
|
561
|
+
if (t && _.label < t[2]) { _.label = t[2]; _.ops.push(op); break; }
|
|
562
|
+
if (t[2]) _.ops.pop();
|
|
563
|
+
_.trys.pop(); continue;
|
|
564
|
+
}
|
|
565
|
+
op = body.call(thisArg, _);
|
|
566
|
+
} catch (e) { op = [6, e]; y = 0; } finally { f = t = 0; }
|
|
567
|
+
if (op[0] & 5) throw op[1]; return { value: op[0] ? op[1] : void 0, done: true };
|
|
568
|
+
}
|
|
569
|
+
}
|
|
570
|
+
|
|
571
|
+
var __createBinding = Object.create ? (function(o, m, k, k2) {
|
|
572
|
+
if (k2 === undefined) k2 = k;
|
|
573
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
574
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
575
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
576
|
+
}
|
|
577
|
+
Object.defineProperty(o, k2, desc);
|
|
578
|
+
}) : (function(o, m, k, k2) {
|
|
579
|
+
if (k2 === undefined) k2 = k;
|
|
580
|
+
o[k2] = m[k];
|
|
581
|
+
});
|
|
582
|
+
|
|
583
|
+
function __exportStar(m, o) {
|
|
584
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(o, p)) __createBinding(o, m, p);
|
|
585
|
+
}
|
|
586
|
+
|
|
587
|
+
function __values(o) {
|
|
588
|
+
var s = typeof Symbol === "function" && Symbol.iterator, m = s && o[s], i = 0;
|
|
589
|
+
if (m) return m.call(o);
|
|
590
|
+
if (o && typeof o.length === "number") return {
|
|
591
|
+
next: function () {
|
|
592
|
+
if (o && i >= o.length) o = void 0;
|
|
593
|
+
return { value: o && o[i++], done: !o };
|
|
594
|
+
}
|
|
595
|
+
};
|
|
596
|
+
throw new TypeError(s ? "Object is not iterable." : "Symbol.iterator is not defined.");
|
|
597
|
+
}
|
|
598
|
+
|
|
599
|
+
function __read(o, n) {
|
|
600
|
+
var m = typeof Symbol === "function" && o[Symbol.iterator];
|
|
601
|
+
if (!m) return o;
|
|
602
|
+
var i = m.call(o), r, ar = [], e;
|
|
603
|
+
try {
|
|
604
|
+
while ((n === void 0 || n-- > 0) && !(r = i.next()).done) ar.push(r.value);
|
|
605
|
+
}
|
|
606
|
+
catch (error) { e = { error: error }; }
|
|
607
|
+
finally {
|
|
608
|
+
try {
|
|
609
|
+
if (r && !r.done && (m = i["return"])) m.call(i);
|
|
610
|
+
}
|
|
611
|
+
finally { if (e) throw e.error; }
|
|
612
|
+
}
|
|
613
|
+
return ar;
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
/** @deprecated */
|
|
617
|
+
function __spread() {
|
|
618
|
+
for (var ar = [], i = 0; i < arguments.length; i++)
|
|
619
|
+
ar = ar.concat(__read(arguments[i]));
|
|
620
|
+
return ar;
|
|
621
|
+
}
|
|
622
|
+
|
|
623
|
+
/** @deprecated */
|
|
624
|
+
function __spreadArrays() {
|
|
625
|
+
for (var s = 0, i = 0, il = arguments.length; i < il; i++) s += arguments[i].length;
|
|
626
|
+
for (var r = Array(s), k = 0, i = 0; i < il; i++)
|
|
627
|
+
for (var a = arguments[i], j = 0, jl = a.length; j < jl; j++, k++)
|
|
628
|
+
r[k] = a[j];
|
|
629
|
+
return r;
|
|
630
|
+
}
|
|
631
|
+
|
|
632
|
+
function __spreadArray(to, from, pack) {
|
|
633
|
+
if (pack || arguments.length === 2) for (var i = 0, l = from.length, ar; i < l; i++) {
|
|
634
|
+
if (ar || !(i in from)) {
|
|
635
|
+
if (!ar) ar = Array.prototype.slice.call(from, 0, i);
|
|
636
|
+
ar[i] = from[i];
|
|
637
|
+
}
|
|
638
|
+
}
|
|
639
|
+
return to.concat(ar || Array.prototype.slice.call(from));
|
|
640
|
+
}
|
|
641
|
+
|
|
642
|
+
function __await(v) {
|
|
643
|
+
return this instanceof __await ? (this.v = v, this) : new __await(v);
|
|
644
|
+
}
|
|
645
|
+
|
|
646
|
+
function __asyncGenerator(thisArg, _arguments, generator) {
|
|
647
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
648
|
+
var g = generator.apply(thisArg, _arguments || []), i, q = [];
|
|
649
|
+
return i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i;
|
|
650
|
+
function verb(n) { if (g[n]) i[n] = function (v) { return new Promise(function (a, b) { q.push([n, v, a, b]) > 1 || resume(n, v); }); }; }
|
|
651
|
+
function resume(n, v) { try { step(g[n](v)); } catch (e) { settle(q[0][3], e); } }
|
|
652
|
+
function step(r) { r.value instanceof __await ? Promise.resolve(r.value.v).then(fulfill, reject) : settle(q[0][2], r); }
|
|
653
|
+
function fulfill(value) { resume("next", value); }
|
|
654
|
+
function reject(value) { resume("throw", value); }
|
|
655
|
+
function settle(f, v) { if (f(v), q.shift(), q.length) resume(q[0][0], q[0][1]); }
|
|
656
|
+
}
|
|
657
|
+
|
|
658
|
+
function __asyncDelegator(o) {
|
|
659
|
+
var i, p;
|
|
660
|
+
return i = {}, verb("next"), verb("throw", function (e) { throw e; }), verb("return"), i[Symbol.iterator] = function () { return this; }, i;
|
|
661
|
+
function verb(n, f) { i[n] = o[n] ? function (v) { return (p = !p) ? { value: __await(o[n](v)), done: n === "return" } : f ? f(v) : v; } : f; }
|
|
662
|
+
}
|
|
663
|
+
|
|
664
|
+
function __asyncValues(o) {
|
|
665
|
+
if (!Symbol.asyncIterator) throw new TypeError("Symbol.asyncIterator is not defined.");
|
|
666
|
+
var m = o[Symbol.asyncIterator], i;
|
|
667
|
+
return m ? m.call(o) : (o = typeof __values === "function" ? __values(o) : o[Symbol.iterator](), i = {}, verb("next"), verb("throw"), verb("return"), i[Symbol.asyncIterator] = function () { return this; }, i);
|
|
668
|
+
function verb(n) { i[n] = o[n] && function (v) { return new Promise(function (resolve, reject) { v = o[n](v), settle(resolve, reject, v.done, v.value); }); }; }
|
|
669
|
+
function settle(resolve, reject, d, v) { Promise.resolve(v).then(function(v) { resolve({ value: v, done: d }); }, reject); }
|
|
670
|
+
}
|
|
671
|
+
|
|
672
|
+
function __makeTemplateObject(cooked, raw) {
|
|
673
|
+
if (Object.defineProperty) { Object.defineProperty(cooked, "raw", { value: raw }); } else { cooked.raw = raw; }
|
|
674
|
+
return cooked;
|
|
675
|
+
};
|
|
676
|
+
|
|
677
|
+
var __setModuleDefault = Object.create ? (function(o, v) {
|
|
678
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
679
|
+
}) : function(o, v) {
|
|
680
|
+
o["default"] = v;
|
|
681
|
+
};
|
|
682
|
+
|
|
683
|
+
function __importStar(mod) {
|
|
684
|
+
if (mod && mod.__esModule) return mod;
|
|
685
|
+
var result = {};
|
|
686
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
687
|
+
__setModuleDefault(result, mod);
|
|
688
|
+
return result;
|
|
689
|
+
}
|
|
690
|
+
|
|
691
|
+
function __importDefault(mod) {
|
|
692
|
+
return (mod && mod.__esModule) ? mod : { default: mod };
|
|
693
|
+
}
|
|
694
|
+
|
|
695
|
+
function __classPrivateFieldGet(receiver, state, kind, f) {
|
|
696
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a getter");
|
|
697
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot read private member from an object whose class did not declare it");
|
|
698
|
+
return kind === "m" ? f : kind === "a" ? f.call(receiver) : f ? f.value : state.get(receiver);
|
|
699
|
+
}
|
|
700
|
+
|
|
701
|
+
function __classPrivateFieldSet(receiver, state, value, kind, f) {
|
|
702
|
+
if (kind === "m") throw new TypeError("Private method is not writable");
|
|
703
|
+
if (kind === "a" && !f) throw new TypeError("Private accessor was defined without a setter");
|
|
704
|
+
if (typeof state === "function" ? receiver !== state || !f : !state.has(receiver)) throw new TypeError("Cannot write private member to an object whose class did not declare it");
|
|
705
|
+
return (kind === "a" ? f.call(receiver, value) : f ? f.value = value : state.set(receiver, value)), value;
|
|
706
|
+
}
|
|
707
|
+
|
|
708
|
+
function __classPrivateFieldIn(state, receiver) {
|
|
709
|
+
if (receiver === null || (typeof receiver !== "object" && typeof receiver !== "function")) throw new TypeError("Cannot use 'in' operator on non-object");
|
|
710
|
+
return typeof state === "function" ? receiver === state : state.has(receiver);
|
|
711
|
+
}
|
|
712
|
+
|
|
713
|
+
|
|
714
|
+
/***/ }),
|
|
715
|
+
|
|
716
|
+
/***/ 90454:
|
|
717
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
718
|
+
|
|
719
|
+
|
|
720
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
721
|
+
exports.envelop = void 0;
|
|
722
|
+
const enable_if_js_1 = __webpack_require__(670);
|
|
723
|
+
const orchestrator_js_1 = __webpack_require__(92932);
|
|
724
|
+
const traced_orchestrator_js_1 = __webpack_require__(20727);
|
|
725
|
+
function envelop(options) {
|
|
726
|
+
const plugins = options.plugins.filter(enable_if_js_1.isPluginEnabled);
|
|
727
|
+
let orchestrator = (0, orchestrator_js_1.createEnvelopOrchestrator)(plugins);
|
|
728
|
+
if (options.enableInternalTracing) {
|
|
729
|
+
orchestrator = (0, traced_orchestrator_js_1.traceOrchestrator)(orchestrator);
|
|
730
|
+
}
|
|
731
|
+
const getEnveloped = (initialContext = {}) => {
|
|
732
|
+
const typedOrchestrator = orchestrator;
|
|
733
|
+
typedOrchestrator.init(initialContext);
|
|
734
|
+
return {
|
|
735
|
+
parse: typedOrchestrator.parse(initialContext),
|
|
736
|
+
validate: typedOrchestrator.validate(initialContext),
|
|
737
|
+
contextFactory: typedOrchestrator.contextFactory(initialContext),
|
|
738
|
+
execute: typedOrchestrator.execute,
|
|
739
|
+
subscribe: typedOrchestrator.subscribe,
|
|
740
|
+
schema: typedOrchestrator.getCurrentSchema(),
|
|
741
|
+
};
|
|
742
|
+
};
|
|
743
|
+
getEnveloped._plugins = plugins;
|
|
744
|
+
return getEnveloped;
|
|
745
|
+
}
|
|
746
|
+
exports.envelop = envelop;
|
|
747
|
+
|
|
748
|
+
|
|
749
|
+
/***/ }),
|
|
750
|
+
|
|
751
|
+
/***/ 670:
|
|
752
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
753
|
+
|
|
754
|
+
|
|
755
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
756
|
+
exports.enableIf = exports.isPluginEnabled = void 0;
|
|
757
|
+
/**
|
|
758
|
+
* This enum is used only internally in order to create nominal type for the disabled plugin
|
|
759
|
+
*/
|
|
760
|
+
var EnableIfBranded;
|
|
761
|
+
(function (EnableIfBranded) {
|
|
762
|
+
EnableIfBranded[EnableIfBranded["DisabledPlugin"] = 0] = "DisabledPlugin";
|
|
763
|
+
})(EnableIfBranded || (EnableIfBranded = {}));
|
|
764
|
+
function isPluginEnabled(t) {
|
|
765
|
+
return t !== EnableIfBranded.DisabledPlugin && t !== null;
|
|
766
|
+
}
|
|
767
|
+
exports.isPluginEnabled = isPluginEnabled;
|
|
768
|
+
/**
|
|
769
|
+
* Utility function to enable a plugin.
|
|
770
|
+
*/
|
|
771
|
+
function enableIf(condition, plugin) {
|
|
772
|
+
if (condition) {
|
|
773
|
+
return typeof plugin === 'function' ? plugin() : plugin;
|
|
774
|
+
}
|
|
775
|
+
return EnableIfBranded.DisabledPlugin;
|
|
776
|
+
}
|
|
777
|
+
exports.enableIf = enableIf;
|
|
778
|
+
|
|
779
|
+
|
|
780
|
+
/***/ }),
|
|
781
|
+
|
|
782
|
+
/***/ 90357:
|
|
783
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
784
|
+
|
|
785
|
+
|
|
786
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
787
|
+
const tslib_1 = __webpack_require__(30038);
|
|
788
|
+
tslib_1.__exportStar(__webpack_require__(49673), exports);
|
|
789
|
+
tslib_1.__exportStar(__webpack_require__(90454), exports);
|
|
790
|
+
tslib_1.__exportStar(__webpack_require__(42049), exports);
|
|
791
|
+
tslib_1.__exportStar(__webpack_require__(91047), exports);
|
|
792
|
+
tslib_1.__exportStar(__webpack_require__(98750), exports);
|
|
793
|
+
tslib_1.__exportStar(__webpack_require__(44654), exports);
|
|
794
|
+
tslib_1.__exportStar(__webpack_require__(37583), exports);
|
|
795
|
+
tslib_1.__exportStar(__webpack_require__(3312), exports);
|
|
796
|
+
tslib_1.__exportStar(__webpack_require__(62713), exports);
|
|
797
|
+
tslib_1.__exportStar(__webpack_require__(86417), exports);
|
|
798
|
+
tslib_1.__exportStar(__webpack_require__(24569), exports);
|
|
799
|
+
tslib_1.__exportStar(__webpack_require__(60683), exports);
|
|
800
|
+
tslib_1.__exportStar(__webpack_require__(670), exports);
|
|
801
|
+
|
|
802
|
+
|
|
803
|
+
/***/ }),
|
|
804
|
+
|
|
805
|
+
/***/ 92932:
|
|
806
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
807
|
+
|
|
808
|
+
|
|
809
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
810
|
+
exports.createEnvelopOrchestrator = void 0;
|
|
811
|
+
const graphql_1 = __webpack_require__(57343);
|
|
812
|
+
const traced_schema_js_1 = __webpack_require__(78172);
|
|
813
|
+
const utils_js_1 = __webpack_require__(42049);
|
|
814
|
+
function createEnvelopOrchestrator(plugins) {
|
|
815
|
+
let schema = null;
|
|
816
|
+
let initDone = false;
|
|
817
|
+
const onResolversHandlers = [];
|
|
818
|
+
for (const plugin of plugins) {
|
|
819
|
+
if (plugin.onResolverCalled) {
|
|
820
|
+
onResolversHandlers.push(plugin.onResolverCalled);
|
|
821
|
+
}
|
|
822
|
+
}
|
|
823
|
+
// Define the initial method for replacing the GraphQL schema, this is needed in order
|
|
824
|
+
// to allow setting the schema from the onPluginInit callback. We also need to make sure
|
|
825
|
+
// here not to call the same plugin that initiated the schema switch.
|
|
826
|
+
const replaceSchema = (newSchema, ignorePluginIndex = -1) => {
|
|
827
|
+
if (onResolversHandlers.length) {
|
|
828
|
+
(0, traced_schema_js_1.prepareTracedSchema)(newSchema);
|
|
829
|
+
}
|
|
830
|
+
schema = newSchema;
|
|
831
|
+
if (initDone) {
|
|
832
|
+
for (const [i, plugin] of plugins.entries()) {
|
|
833
|
+
if (i !== ignorePluginIndex) {
|
|
834
|
+
plugin.onSchemaChange &&
|
|
835
|
+
plugin.onSchemaChange({
|
|
836
|
+
schema,
|
|
837
|
+
replaceSchema: schemaToSet => {
|
|
838
|
+
replaceSchema(schemaToSet, i);
|
|
839
|
+
},
|
|
840
|
+
});
|
|
841
|
+
}
|
|
842
|
+
}
|
|
843
|
+
}
|
|
844
|
+
};
|
|
845
|
+
const contextErrorHandlers = [];
|
|
846
|
+
// Iterate all plugins and trigger onPluginInit
|
|
847
|
+
for (const [i, plugin] of plugins.entries()) {
|
|
848
|
+
plugin.onPluginInit &&
|
|
849
|
+
plugin.onPluginInit({
|
|
850
|
+
plugins,
|
|
851
|
+
addPlugin: newPlugin => {
|
|
852
|
+
plugins.push(newPlugin);
|
|
853
|
+
},
|
|
854
|
+
setSchema: modifiedSchema => replaceSchema(modifiedSchema, i),
|
|
855
|
+
registerContextErrorHandler: handler => contextErrorHandlers.push(handler),
|
|
856
|
+
});
|
|
857
|
+
}
|
|
858
|
+
// A set of before callbacks defined here in order to allow it to be used later
|
|
859
|
+
const beforeCallbacks = {
|
|
860
|
+
init: [],
|
|
861
|
+
parse: [],
|
|
862
|
+
validate: [],
|
|
863
|
+
subscribe: [],
|
|
864
|
+
execute: [],
|
|
865
|
+
context: [],
|
|
866
|
+
};
|
|
867
|
+
for (const { onContextBuilding, onExecute, onParse, onSubscribe, onValidate, onEnveloped } of plugins) {
|
|
868
|
+
onEnveloped && beforeCallbacks.init.push(onEnveloped);
|
|
869
|
+
onContextBuilding && beforeCallbacks.context.push(onContextBuilding);
|
|
870
|
+
onExecute && beforeCallbacks.execute.push(onExecute);
|
|
871
|
+
onParse && beforeCallbacks.parse.push(onParse);
|
|
872
|
+
onSubscribe && beforeCallbacks.subscribe.push(onSubscribe);
|
|
873
|
+
onValidate && beforeCallbacks.validate.push(onValidate);
|
|
874
|
+
}
|
|
875
|
+
const init = initialContext => {
|
|
876
|
+
for (const [i, onEnveloped] of beforeCallbacks.init.entries()) {
|
|
877
|
+
onEnveloped({
|
|
878
|
+
context: initialContext,
|
|
879
|
+
extendContext: extension => {
|
|
880
|
+
if (!initialContext) {
|
|
881
|
+
return;
|
|
882
|
+
}
|
|
883
|
+
Object.assign(initialContext, extension);
|
|
884
|
+
},
|
|
885
|
+
setSchema: modifiedSchema => replaceSchema(modifiedSchema, i),
|
|
886
|
+
});
|
|
887
|
+
}
|
|
888
|
+
};
|
|
889
|
+
const customParse = beforeCallbacks.parse.length
|
|
890
|
+
? initialContext => (source, parseOptions) => {
|
|
891
|
+
let result = null;
|
|
892
|
+
let parseFn = graphql_1.parse;
|
|
893
|
+
const context = initialContext;
|
|
894
|
+
const afterCalls = [];
|
|
895
|
+
for (const onParse of beforeCallbacks.parse) {
|
|
896
|
+
const afterFn = onParse({
|
|
897
|
+
context,
|
|
898
|
+
extendContext: extension => {
|
|
899
|
+
Object.assign(context, extension);
|
|
900
|
+
},
|
|
901
|
+
params: { source, options: parseOptions },
|
|
902
|
+
parseFn,
|
|
903
|
+
setParseFn: newFn => {
|
|
904
|
+
parseFn = newFn;
|
|
905
|
+
},
|
|
906
|
+
setParsedDocument: newDoc => {
|
|
907
|
+
result = newDoc;
|
|
908
|
+
},
|
|
909
|
+
});
|
|
910
|
+
afterFn && afterCalls.push(afterFn);
|
|
911
|
+
}
|
|
912
|
+
if (result === null) {
|
|
913
|
+
try {
|
|
914
|
+
result = parseFn(source, parseOptions);
|
|
915
|
+
}
|
|
916
|
+
catch (e) {
|
|
917
|
+
result = e;
|
|
918
|
+
}
|
|
919
|
+
}
|
|
920
|
+
for (const afterCb of afterCalls) {
|
|
921
|
+
afterCb({
|
|
922
|
+
context,
|
|
923
|
+
extendContext: extension => {
|
|
924
|
+
Object.assign(context, extension);
|
|
925
|
+
},
|
|
926
|
+
replaceParseResult: newResult => {
|
|
927
|
+
result = newResult;
|
|
928
|
+
},
|
|
929
|
+
result,
|
|
930
|
+
});
|
|
931
|
+
}
|
|
932
|
+
if (result === null) {
|
|
933
|
+
throw new Error(`Failed to parse document.`);
|
|
934
|
+
}
|
|
935
|
+
if (result instanceof Error) {
|
|
936
|
+
throw result;
|
|
937
|
+
}
|
|
938
|
+
return result;
|
|
939
|
+
}
|
|
940
|
+
: () => graphql_1.parse;
|
|
941
|
+
const customValidate = beforeCallbacks.validate.length
|
|
942
|
+
? initialContext => (schema, documentAST, rules, typeInfo, validationOptions) => {
|
|
943
|
+
let actualRules = rules ? [...rules] : undefined;
|
|
944
|
+
let validateFn = graphql_1.validate;
|
|
945
|
+
let result = null;
|
|
946
|
+
const context = initialContext;
|
|
947
|
+
const afterCalls = [];
|
|
948
|
+
for (const onValidate of beforeCallbacks.validate) {
|
|
949
|
+
const afterFn = onValidate({
|
|
950
|
+
context,
|
|
951
|
+
extendContext: extension => {
|
|
952
|
+
Object.assign(context, extension);
|
|
953
|
+
},
|
|
954
|
+
params: {
|
|
955
|
+
schema,
|
|
956
|
+
documentAST,
|
|
957
|
+
rules: actualRules,
|
|
958
|
+
typeInfo,
|
|
959
|
+
options: validationOptions,
|
|
960
|
+
},
|
|
961
|
+
validateFn,
|
|
962
|
+
addValidationRule: rule => {
|
|
963
|
+
if (!actualRules) {
|
|
964
|
+
actualRules = [...graphql_1.specifiedRules];
|
|
965
|
+
}
|
|
966
|
+
actualRules.push(rule);
|
|
967
|
+
},
|
|
968
|
+
setValidationFn: newFn => {
|
|
969
|
+
validateFn = newFn;
|
|
970
|
+
},
|
|
971
|
+
setResult: newResults => {
|
|
972
|
+
result = newResults;
|
|
973
|
+
},
|
|
974
|
+
});
|
|
975
|
+
afterFn && afterCalls.push(afterFn);
|
|
976
|
+
}
|
|
977
|
+
if (!result) {
|
|
978
|
+
result = validateFn(schema, documentAST, actualRules, typeInfo, validationOptions);
|
|
979
|
+
}
|
|
980
|
+
const valid = result.length === 0;
|
|
981
|
+
for (const afterCb of afterCalls) {
|
|
982
|
+
afterCb({
|
|
983
|
+
valid,
|
|
984
|
+
result,
|
|
985
|
+
context,
|
|
986
|
+
extendContext: extension => {
|
|
987
|
+
Object.assign(context, extension);
|
|
988
|
+
},
|
|
989
|
+
setResult: newResult => {
|
|
990
|
+
result = newResult;
|
|
991
|
+
},
|
|
992
|
+
});
|
|
993
|
+
}
|
|
994
|
+
return result;
|
|
995
|
+
}
|
|
996
|
+
: () => graphql_1.validate;
|
|
997
|
+
const customContextFactory = beforeCallbacks.context
|
|
998
|
+
.length
|
|
999
|
+
? initialContext => async (orchestratorCtx) => {
|
|
1000
|
+
const afterCalls = [];
|
|
1001
|
+
// In order to have access to the "last working" context object we keep this outside of the try block:
|
|
1002
|
+
let context = orchestratorCtx ? { ...initialContext, ...orchestratorCtx } : initialContext;
|
|
1003
|
+
try {
|
|
1004
|
+
let isBreakingContextBuilding = false;
|
|
1005
|
+
for (const onContext of beforeCallbacks.context) {
|
|
1006
|
+
const afterHookResult = await onContext({
|
|
1007
|
+
context,
|
|
1008
|
+
extendContext: extension => {
|
|
1009
|
+
context = { ...context, ...extension };
|
|
1010
|
+
},
|
|
1011
|
+
breakContextBuilding: () => {
|
|
1012
|
+
isBreakingContextBuilding = true;
|
|
1013
|
+
},
|
|
1014
|
+
});
|
|
1015
|
+
if (typeof afterHookResult === 'function') {
|
|
1016
|
+
afterCalls.push(afterHookResult);
|
|
1017
|
+
}
|
|
1018
|
+
if (isBreakingContextBuilding === true) {
|
|
1019
|
+
break;
|
|
1020
|
+
}
|
|
1021
|
+
}
|
|
1022
|
+
for (const afterCb of afterCalls) {
|
|
1023
|
+
afterCb({
|
|
1024
|
+
context,
|
|
1025
|
+
extendContext: extension => {
|
|
1026
|
+
context = { ...context, ...extension };
|
|
1027
|
+
},
|
|
1028
|
+
});
|
|
1029
|
+
}
|
|
1030
|
+
return context;
|
|
1031
|
+
}
|
|
1032
|
+
catch (err) {
|
|
1033
|
+
let error = err;
|
|
1034
|
+
for (const errorCb of contextErrorHandlers) {
|
|
1035
|
+
errorCb({
|
|
1036
|
+
context,
|
|
1037
|
+
error,
|
|
1038
|
+
setError: err => {
|
|
1039
|
+
error = err;
|
|
1040
|
+
},
|
|
1041
|
+
});
|
|
1042
|
+
}
|
|
1043
|
+
throw error;
|
|
1044
|
+
}
|
|
1045
|
+
}
|
|
1046
|
+
: initialContext => orchestratorCtx => orchestratorCtx ? { ...initialContext, ...orchestratorCtx } : initialContext;
|
|
1047
|
+
const useCustomSubscribe = beforeCallbacks.subscribe.length || onResolversHandlers.length;
|
|
1048
|
+
const customSubscribe = useCustomSubscribe
|
|
1049
|
+
? (0, utils_js_1.makeSubscribe)(async (args) => {
|
|
1050
|
+
let subscribeFn = graphql_1.subscribe;
|
|
1051
|
+
const afterCalls = [];
|
|
1052
|
+
const subscribeErrorHandlers = [];
|
|
1053
|
+
let context = args.contextValue || {};
|
|
1054
|
+
let result;
|
|
1055
|
+
for (const onSubscribe of beforeCallbacks.subscribe) {
|
|
1056
|
+
const after = await onSubscribe({
|
|
1057
|
+
subscribeFn,
|
|
1058
|
+
setSubscribeFn: newSubscribeFn => {
|
|
1059
|
+
subscribeFn = newSubscribeFn;
|
|
1060
|
+
},
|
|
1061
|
+
extendContext: extension => {
|
|
1062
|
+
context = { ...context, ...extension };
|
|
1063
|
+
},
|
|
1064
|
+
args: args,
|
|
1065
|
+
setResultAndStopExecution: stopResult => {
|
|
1066
|
+
result = stopResult;
|
|
1067
|
+
},
|
|
1068
|
+
});
|
|
1069
|
+
if (after) {
|
|
1070
|
+
if (after.onSubscribeResult) {
|
|
1071
|
+
afterCalls.push(after.onSubscribeResult);
|
|
1072
|
+
}
|
|
1073
|
+
if (after.onSubscribeError) {
|
|
1074
|
+
subscribeErrorHandlers.push(after.onSubscribeError);
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
1077
|
+
if (result !== undefined) {
|
|
1078
|
+
break;
|
|
1079
|
+
}
|
|
1080
|
+
}
|
|
1081
|
+
if (onResolversHandlers.length) {
|
|
1082
|
+
context[traced_schema_js_1.resolversHooksSymbol] = onResolversHandlers;
|
|
1083
|
+
}
|
|
1084
|
+
if (result === undefined) {
|
|
1085
|
+
result = await subscribeFn({
|
|
1086
|
+
...args,
|
|
1087
|
+
contextValue: context,
|
|
1088
|
+
// Casted for GraphQL.js 15 compatibility
|
|
1089
|
+
// Can be removed once we drop support for GraphQL.js 15
|
|
1090
|
+
});
|
|
1091
|
+
}
|
|
1092
|
+
const onNextHandler = [];
|
|
1093
|
+
const onEndHandler = [];
|
|
1094
|
+
for (const afterCb of afterCalls) {
|
|
1095
|
+
const hookResult = afterCb({
|
|
1096
|
+
args: args,
|
|
1097
|
+
result,
|
|
1098
|
+
setResult: newResult => {
|
|
1099
|
+
result = newResult;
|
|
1100
|
+
},
|
|
1101
|
+
});
|
|
1102
|
+
if (hookResult) {
|
|
1103
|
+
if (hookResult.onNext) {
|
|
1104
|
+
onNextHandler.push(hookResult.onNext);
|
|
1105
|
+
}
|
|
1106
|
+
if (hookResult.onEnd) {
|
|
1107
|
+
onEndHandler.push(hookResult.onEnd);
|
|
1108
|
+
}
|
|
1109
|
+
}
|
|
1110
|
+
}
|
|
1111
|
+
if (onNextHandler.length && (0, utils_js_1.isAsyncIterable)(result)) {
|
|
1112
|
+
result = (0, utils_js_1.mapAsyncIterator)(result, async (result) => {
|
|
1113
|
+
for (const onNext of onNextHandler) {
|
|
1114
|
+
await onNext({
|
|
1115
|
+
args: args,
|
|
1116
|
+
result,
|
|
1117
|
+
setResult: newResult => (result = newResult),
|
|
1118
|
+
});
|
|
1119
|
+
}
|
|
1120
|
+
return result;
|
|
1121
|
+
});
|
|
1122
|
+
}
|
|
1123
|
+
if (onEndHandler.length && (0, utils_js_1.isAsyncIterable)(result)) {
|
|
1124
|
+
result = (0, utils_js_1.finalAsyncIterator)(result, () => {
|
|
1125
|
+
for (const onEnd of onEndHandler) {
|
|
1126
|
+
onEnd();
|
|
1127
|
+
}
|
|
1128
|
+
});
|
|
1129
|
+
}
|
|
1130
|
+
if (subscribeErrorHandlers.length && (0, utils_js_1.isAsyncIterable)(result)) {
|
|
1131
|
+
result = (0, utils_js_1.errorAsyncIterator)(result, err => {
|
|
1132
|
+
let error = err;
|
|
1133
|
+
for (const handler of subscribeErrorHandlers) {
|
|
1134
|
+
handler({
|
|
1135
|
+
error,
|
|
1136
|
+
setError: err => {
|
|
1137
|
+
error = err;
|
|
1138
|
+
},
|
|
1139
|
+
});
|
|
1140
|
+
}
|
|
1141
|
+
throw error;
|
|
1142
|
+
});
|
|
1143
|
+
}
|
|
1144
|
+
return result;
|
|
1145
|
+
})
|
|
1146
|
+
: (0, utils_js_1.makeSubscribe)(graphql_1.subscribe);
|
|
1147
|
+
const useCustomExecute = beforeCallbacks.execute.length || onResolversHandlers.length;
|
|
1148
|
+
const customExecute = useCustomExecute
|
|
1149
|
+
? (0, utils_js_1.makeExecute)(async (args) => {
|
|
1150
|
+
let executeFn = graphql_1.execute;
|
|
1151
|
+
let result;
|
|
1152
|
+
const afterCalls = [];
|
|
1153
|
+
let context = args.contextValue || {};
|
|
1154
|
+
for (const onExecute of beforeCallbacks.execute) {
|
|
1155
|
+
const after = await onExecute({
|
|
1156
|
+
executeFn,
|
|
1157
|
+
setExecuteFn: newExecuteFn => {
|
|
1158
|
+
executeFn = newExecuteFn;
|
|
1159
|
+
},
|
|
1160
|
+
setResultAndStopExecution: stopResult => {
|
|
1161
|
+
result = stopResult;
|
|
1162
|
+
},
|
|
1163
|
+
extendContext: extension => {
|
|
1164
|
+
if (typeof extension === 'object') {
|
|
1165
|
+
context = {
|
|
1166
|
+
...context,
|
|
1167
|
+
...extension,
|
|
1168
|
+
};
|
|
1169
|
+
}
|
|
1170
|
+
else {
|
|
1171
|
+
throw new Error(`Invalid context extension provided! Expected "object", got: "${JSON.stringify(extension)}" (${typeof extension})`);
|
|
1172
|
+
}
|
|
1173
|
+
},
|
|
1174
|
+
args: args,
|
|
1175
|
+
});
|
|
1176
|
+
if (after === null || after === void 0 ? void 0 : after.onExecuteDone) {
|
|
1177
|
+
afterCalls.push(after.onExecuteDone);
|
|
1178
|
+
}
|
|
1179
|
+
if (result !== undefined) {
|
|
1180
|
+
break;
|
|
1181
|
+
}
|
|
1182
|
+
}
|
|
1183
|
+
if (onResolversHandlers.length) {
|
|
1184
|
+
context[traced_schema_js_1.resolversHooksSymbol] = onResolversHandlers;
|
|
1185
|
+
}
|
|
1186
|
+
if (result === undefined) {
|
|
1187
|
+
result = (await executeFn({
|
|
1188
|
+
...args,
|
|
1189
|
+
contextValue: context,
|
|
1190
|
+
}));
|
|
1191
|
+
}
|
|
1192
|
+
const onNextHandler = [];
|
|
1193
|
+
const onEndHandler = [];
|
|
1194
|
+
for (const afterCb of afterCalls) {
|
|
1195
|
+
const hookResult = await afterCb({
|
|
1196
|
+
args: args,
|
|
1197
|
+
result,
|
|
1198
|
+
setResult: newResult => {
|
|
1199
|
+
result = newResult;
|
|
1200
|
+
},
|
|
1201
|
+
});
|
|
1202
|
+
if (hookResult) {
|
|
1203
|
+
if (hookResult.onNext) {
|
|
1204
|
+
onNextHandler.push(hookResult.onNext);
|
|
1205
|
+
}
|
|
1206
|
+
if (hookResult.onEnd) {
|
|
1207
|
+
onEndHandler.push(hookResult.onEnd);
|
|
1208
|
+
}
|
|
1209
|
+
}
|
|
1210
|
+
}
|
|
1211
|
+
if (onNextHandler.length && (0, utils_js_1.isAsyncIterable)(result)) {
|
|
1212
|
+
result = (0, utils_js_1.mapAsyncIterator)(result, async (result) => {
|
|
1213
|
+
for (const onNext of onNextHandler) {
|
|
1214
|
+
await onNext({
|
|
1215
|
+
args: args,
|
|
1216
|
+
result,
|
|
1217
|
+
setResult: newResult => {
|
|
1218
|
+
result = newResult;
|
|
1219
|
+
},
|
|
1220
|
+
});
|
|
1221
|
+
}
|
|
1222
|
+
return result;
|
|
1223
|
+
});
|
|
1224
|
+
}
|
|
1225
|
+
if (onEndHandler.length && (0, utils_js_1.isAsyncIterable)(result)) {
|
|
1226
|
+
result = (0, utils_js_1.finalAsyncIterator)(result, () => {
|
|
1227
|
+
for (const onEnd of onEndHandler) {
|
|
1228
|
+
onEnd();
|
|
1229
|
+
}
|
|
1230
|
+
});
|
|
1231
|
+
}
|
|
1232
|
+
return result;
|
|
1233
|
+
})
|
|
1234
|
+
: (0, utils_js_1.makeExecute)(graphql_1.execute);
|
|
1235
|
+
initDone = true;
|
|
1236
|
+
// This is done in order to trigger the first schema available, to allow plugins that needs the schema
|
|
1237
|
+
// eagerly to have it.
|
|
1238
|
+
if (schema) {
|
|
1239
|
+
for (const [i, plugin] of plugins.entries()) {
|
|
1240
|
+
plugin.onSchemaChange &&
|
|
1241
|
+
plugin.onSchemaChange({
|
|
1242
|
+
schema,
|
|
1243
|
+
replaceSchema: modifiedSchema => replaceSchema(modifiedSchema, i),
|
|
1244
|
+
});
|
|
1245
|
+
}
|
|
1246
|
+
}
|
|
1247
|
+
return {
|
|
1248
|
+
getCurrentSchema() {
|
|
1249
|
+
return schema;
|
|
1250
|
+
},
|
|
1251
|
+
init,
|
|
1252
|
+
parse: customParse,
|
|
1253
|
+
validate: customValidate,
|
|
1254
|
+
execute: customExecute,
|
|
1255
|
+
subscribe: customSubscribe,
|
|
1256
|
+
contextFactory: customContextFactory,
|
|
1257
|
+
};
|
|
1258
|
+
}
|
|
1259
|
+
exports.createEnvelopOrchestrator = createEnvelopOrchestrator;
|
|
1260
|
+
|
|
1261
|
+
|
|
1262
|
+
/***/ }),
|
|
1263
|
+
|
|
1264
|
+
/***/ 91047:
|
|
1265
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
1266
|
+
|
|
1267
|
+
|
|
1268
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1269
|
+
exports.useEnvelop = void 0;
|
|
1270
|
+
const useEnvelop = (envelop) => {
|
|
1271
|
+
return {
|
|
1272
|
+
onPluginInit({ addPlugin }) {
|
|
1273
|
+
for (const plugin of envelop._plugins) {
|
|
1274
|
+
addPlugin(plugin);
|
|
1275
|
+
}
|
|
1276
|
+
},
|
|
1277
|
+
};
|
|
1278
|
+
};
|
|
1279
|
+
exports.useEnvelop = useEnvelop;
|
|
1280
|
+
|
|
1281
|
+
|
|
1282
|
+
/***/ }),
|
|
1283
|
+
|
|
1284
|
+
/***/ 3312:
|
|
1285
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1286
|
+
|
|
1287
|
+
|
|
1288
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1289
|
+
exports.useErrorHandler = void 0;
|
|
1290
|
+
const utils_js_1 = __webpack_require__(42049);
|
|
1291
|
+
const makeHandleResult = (errorHandler) => ({ result, args }) => {
|
|
1292
|
+
var _a;
|
|
1293
|
+
if ((_a = result.errors) === null || _a === void 0 ? void 0 : _a.length) {
|
|
1294
|
+
errorHandler(result.errors, args);
|
|
1295
|
+
}
|
|
1296
|
+
};
|
|
1297
|
+
const useErrorHandler = (errorHandler) => {
|
|
1298
|
+
const handleResult = makeHandleResult(errorHandler);
|
|
1299
|
+
return {
|
|
1300
|
+
onExecute() {
|
|
1301
|
+
return {
|
|
1302
|
+
onExecuteDone(payload) {
|
|
1303
|
+
return (0, utils_js_1.handleStreamOrSingleExecutionResult)(payload, handleResult);
|
|
1304
|
+
},
|
|
1305
|
+
};
|
|
1306
|
+
},
|
|
1307
|
+
onSubscribe() {
|
|
1308
|
+
return {
|
|
1309
|
+
onSubscribeResult(payload) {
|
|
1310
|
+
return (0, utils_js_1.handleStreamOrSingleExecutionResult)(payload, handleResult);
|
|
1311
|
+
},
|
|
1312
|
+
};
|
|
1313
|
+
},
|
|
1314
|
+
};
|
|
1315
|
+
};
|
|
1316
|
+
exports.useErrorHandler = useErrorHandler;
|
|
1317
|
+
|
|
1318
|
+
|
|
1319
|
+
/***/ }),
|
|
1320
|
+
|
|
1321
|
+
/***/ 62713:
|
|
1322
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
1323
|
+
|
|
1324
|
+
|
|
1325
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1326
|
+
exports.useExtendContext = void 0;
|
|
1327
|
+
const useExtendContext = (contextFactory) => ({
|
|
1328
|
+
async onContextBuilding({ context, extendContext }) {
|
|
1329
|
+
extendContext((await contextFactory(context)));
|
|
1330
|
+
},
|
|
1331
|
+
});
|
|
1332
|
+
exports.useExtendContext = useExtendContext;
|
|
1333
|
+
|
|
1334
|
+
|
|
1335
|
+
/***/ }),
|
|
1336
|
+
|
|
1337
|
+
/***/ 60683:
|
|
1338
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1339
|
+
|
|
1340
|
+
|
|
1341
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1342
|
+
exports.useImmediateIntrospection = void 0;
|
|
1343
|
+
const graphql_1 = __webpack_require__(57343);
|
|
1344
|
+
const OnNonIntrospectionFieldReachedValidationRule = (onNonIntrospectionField) => ctx => {
|
|
1345
|
+
const rootQueryType = ctx.getSchema().getQueryType();
|
|
1346
|
+
const rootMutationType = ctx.getSchema().getMutationType();
|
|
1347
|
+
const rootSubscriptionType = ctx.getSchema().getSubscriptionType();
|
|
1348
|
+
return {
|
|
1349
|
+
Field(field) {
|
|
1350
|
+
const parentType = ctx.getParentType();
|
|
1351
|
+
const isQuery = parentType === rootQueryType;
|
|
1352
|
+
const isMutation = parentType === rootMutationType;
|
|
1353
|
+
const isSubscription = parentType === rootSubscriptionType;
|
|
1354
|
+
if ((isQuery && !field.name.value.startsWith('__')) || isMutation || isSubscription) {
|
|
1355
|
+
onNonIntrospectionField();
|
|
1356
|
+
return graphql_1.BREAK;
|
|
1357
|
+
}
|
|
1358
|
+
return undefined;
|
|
1359
|
+
},
|
|
1360
|
+
};
|
|
1361
|
+
};
|
|
1362
|
+
const fastIntroSpectionSymbol = Symbol('fastIntrospection');
|
|
1363
|
+
/**
|
|
1364
|
+
* In case a GraphQL operation only contains introspection fields the context building can be skipped completely.
|
|
1365
|
+
* With this plugin any further context extensions will be skipped.
|
|
1366
|
+
*/
|
|
1367
|
+
const useImmediateIntrospection = () => {
|
|
1368
|
+
return {
|
|
1369
|
+
onValidate({ addValidationRule }) {
|
|
1370
|
+
let isIntrospectionOnly = true;
|
|
1371
|
+
addValidationRule(OnNonIntrospectionFieldReachedValidationRule(() => {
|
|
1372
|
+
isIntrospectionOnly = false;
|
|
1373
|
+
}));
|
|
1374
|
+
return function afterValidate({ extendContext }) {
|
|
1375
|
+
if (isIntrospectionOnly) {
|
|
1376
|
+
extendContext({ [fastIntroSpectionSymbol]: true });
|
|
1377
|
+
}
|
|
1378
|
+
};
|
|
1379
|
+
},
|
|
1380
|
+
onContextBuilding({ context, breakContextBuilding }) {
|
|
1381
|
+
if (context[fastIntroSpectionSymbol]) {
|
|
1382
|
+
// hijack and skip all other context related stuff.
|
|
1383
|
+
// We dont need a context!
|
|
1384
|
+
breakContextBuilding();
|
|
1385
|
+
}
|
|
1386
|
+
},
|
|
1387
|
+
};
|
|
1388
|
+
};
|
|
1389
|
+
exports.useImmediateIntrospection = useImmediateIntrospection;
|
|
1390
|
+
|
|
1391
|
+
|
|
1392
|
+
/***/ }),
|
|
1393
|
+
|
|
1394
|
+
/***/ 98750:
|
|
1395
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1396
|
+
|
|
1397
|
+
|
|
1398
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1399
|
+
exports.useLogger = void 0;
|
|
1400
|
+
const utils_js_1 = __webpack_require__(42049);
|
|
1401
|
+
const DEFAULT_OPTIONS = {
|
|
1402
|
+
logFn: console.log,
|
|
1403
|
+
};
|
|
1404
|
+
const useLogger = (rawOptions = DEFAULT_OPTIONS) => {
|
|
1405
|
+
const options = {
|
|
1406
|
+
DEFAULT_OPTIONS,
|
|
1407
|
+
...rawOptions,
|
|
1408
|
+
};
|
|
1409
|
+
return {
|
|
1410
|
+
onParse({ extendContext, params }) {
|
|
1411
|
+
if (options.skipIntrospection && (0, utils_js_1.isIntrospectionOperationString)(params.source)) {
|
|
1412
|
+
extendContext({
|
|
1413
|
+
[utils_js_1.envelopIsIntrospectionSymbol]: true,
|
|
1414
|
+
});
|
|
1415
|
+
}
|
|
1416
|
+
},
|
|
1417
|
+
onExecute({ args }) {
|
|
1418
|
+
if (args.contextValue[utils_js_1.envelopIsIntrospectionSymbol]) {
|
|
1419
|
+
return;
|
|
1420
|
+
}
|
|
1421
|
+
options.logFn('execute-start', { args });
|
|
1422
|
+
return {
|
|
1423
|
+
onExecuteDone: ({ result }) => {
|
|
1424
|
+
options.logFn('execute-end', { args, result });
|
|
1425
|
+
},
|
|
1426
|
+
};
|
|
1427
|
+
},
|
|
1428
|
+
onSubscribe({ args }) {
|
|
1429
|
+
if (args.contextValue[utils_js_1.envelopIsIntrospectionSymbol]) {
|
|
1430
|
+
return;
|
|
1431
|
+
}
|
|
1432
|
+
options.logFn('subscribe-start', { args });
|
|
1433
|
+
return {
|
|
1434
|
+
onSubscribeResult: ({ result }) => {
|
|
1435
|
+
options.logFn('subscribe-end', { args, result });
|
|
1436
|
+
},
|
|
1437
|
+
};
|
|
1438
|
+
},
|
|
1439
|
+
};
|
|
1440
|
+
};
|
|
1441
|
+
exports.useLogger = useLogger;
|
|
1442
|
+
|
|
1443
|
+
|
|
1444
|
+
/***/ }),
|
|
1445
|
+
|
|
1446
|
+
/***/ 24569:
|
|
1447
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1448
|
+
|
|
1449
|
+
|
|
1450
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1451
|
+
exports.useMaskedErrors = exports.formatError = exports.EnvelopError = exports.DEFAULT_ERROR_MESSAGE = void 0;
|
|
1452
|
+
const graphql_1 = __webpack_require__(57343);
|
|
1453
|
+
const utils_js_1 = __webpack_require__(42049);
|
|
1454
|
+
exports.DEFAULT_ERROR_MESSAGE = 'Unexpected error.';
|
|
1455
|
+
class EnvelopError extends graphql_1.GraphQLError {
|
|
1456
|
+
constructor(message, extensions) {
|
|
1457
|
+
super(message, undefined, undefined, undefined, undefined, undefined, extensions);
|
|
1458
|
+
}
|
|
1459
|
+
}
|
|
1460
|
+
exports.EnvelopError = EnvelopError;
|
|
1461
|
+
const formatError = (err, message, isDev) => {
|
|
1462
|
+
var _a, _b, _c, _d;
|
|
1463
|
+
if (err instanceof graphql_1.GraphQLError) {
|
|
1464
|
+
if (
|
|
1465
|
+
/** execution error */
|
|
1466
|
+
(err.originalError && err.originalError instanceof EnvelopError === false) ||
|
|
1467
|
+
/** validate and parse errors */
|
|
1468
|
+
(err.originalError === undefined && err instanceof EnvelopError === false)) {
|
|
1469
|
+
return new graphql_1.GraphQLError(message, err.nodes, err.source, err.positions, err.path, undefined, isDev
|
|
1470
|
+
? {
|
|
1471
|
+
originalError: {
|
|
1472
|
+
message: (_b = (_a = err.originalError) === null || _a === void 0 ? void 0 : _a.message) !== null && _b !== void 0 ? _b : err.message,
|
|
1473
|
+
stack: (_d = (_c = err.originalError) === null || _c === void 0 ? void 0 : _c.stack) !== null && _d !== void 0 ? _d : err.stack,
|
|
1474
|
+
},
|
|
1475
|
+
}
|
|
1476
|
+
: undefined);
|
|
1477
|
+
}
|
|
1478
|
+
return err;
|
|
1479
|
+
}
|
|
1480
|
+
return new graphql_1.GraphQLError(message);
|
|
1481
|
+
};
|
|
1482
|
+
exports.formatError = formatError;
|
|
1483
|
+
const makeHandleResult = (format, message, isDev) => ({ result, setResult }) => {
|
|
1484
|
+
if (result.errors != null) {
|
|
1485
|
+
setResult({ ...result, errors: result.errors.map(error => format(error, message, isDev)) });
|
|
1486
|
+
}
|
|
1487
|
+
};
|
|
1488
|
+
const useMaskedErrors = (opts) => {
|
|
1489
|
+
var _a, _b;
|
|
1490
|
+
const format = (_a = opts === null || opts === void 0 ? void 0 : opts.formatError) !== null && _a !== void 0 ? _a : exports.formatError;
|
|
1491
|
+
const message = (opts === null || opts === void 0 ? void 0 : opts.errorMessage) || exports.DEFAULT_ERROR_MESSAGE;
|
|
1492
|
+
// eslint-disable-next-line dot-notation
|
|
1493
|
+
const isDev = (_b = opts === null || opts === void 0 ? void 0 : opts.isDev) !== null && _b !== void 0 ? _b : (typeof process !== 'undefined' ? "production" === 'development' : false);
|
|
1494
|
+
const handleResult = makeHandleResult(format, message, isDev);
|
|
1495
|
+
return {
|
|
1496
|
+
onParse: (opts === null || opts === void 0 ? void 0 : opts.handleParseErrors) === true
|
|
1497
|
+
? function onParse() {
|
|
1498
|
+
return function onParseEnd({ result, replaceParseResult }) {
|
|
1499
|
+
if (result instanceof Error) {
|
|
1500
|
+
replaceParseResult(format(result, message, isDev));
|
|
1501
|
+
}
|
|
1502
|
+
};
|
|
1503
|
+
}
|
|
1504
|
+
: undefined,
|
|
1505
|
+
onValidate: (opts === null || opts === void 0 ? void 0 : opts.handleValidationErrors) === true
|
|
1506
|
+
? function onValidate() {
|
|
1507
|
+
return function onValidateEnd({ valid, result, setResult }) {
|
|
1508
|
+
if (valid === false) {
|
|
1509
|
+
setResult(result.map(error => format(error, message, isDev)));
|
|
1510
|
+
}
|
|
1511
|
+
};
|
|
1512
|
+
}
|
|
1513
|
+
: undefined,
|
|
1514
|
+
onPluginInit(context) {
|
|
1515
|
+
context.registerContextErrorHandler(({ error, setError }) => {
|
|
1516
|
+
if (error instanceof graphql_1.GraphQLError === false && error instanceof Error) {
|
|
1517
|
+
error = new graphql_1.GraphQLError(error.message, undefined, undefined, undefined, undefined, error);
|
|
1518
|
+
}
|
|
1519
|
+
setError(format(error, message, isDev));
|
|
1520
|
+
});
|
|
1521
|
+
},
|
|
1522
|
+
onExecute() {
|
|
1523
|
+
return {
|
|
1524
|
+
onExecuteDone(payload) {
|
|
1525
|
+
return (0, utils_js_1.handleStreamOrSingleExecutionResult)(payload, handleResult);
|
|
1526
|
+
},
|
|
1527
|
+
};
|
|
1528
|
+
},
|
|
1529
|
+
onSubscribe() {
|
|
1530
|
+
return {
|
|
1531
|
+
onSubscribeResult(payload) {
|
|
1532
|
+
return (0, utils_js_1.handleStreamOrSingleExecutionResult)(payload, handleResult);
|
|
1533
|
+
},
|
|
1534
|
+
onSubscribeError({ error, setError }) {
|
|
1535
|
+
setError(format(error, message, isDev));
|
|
1536
|
+
},
|
|
1537
|
+
};
|
|
1538
|
+
},
|
|
1539
|
+
};
|
|
1540
|
+
};
|
|
1541
|
+
exports.useMaskedErrors = useMaskedErrors;
|
|
1542
|
+
|
|
1543
|
+
|
|
1544
|
+
/***/ }),
|
|
1545
|
+
|
|
1546
|
+
/***/ 86417:
|
|
1547
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1548
|
+
|
|
1549
|
+
|
|
1550
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1551
|
+
exports.usePayloadFormatter = void 0;
|
|
1552
|
+
const utils_js_1 = __webpack_require__(42049);
|
|
1553
|
+
const makeHandleResult = (formatter) => ({ args, result, setResult, }) => {
|
|
1554
|
+
const modified = formatter(result, args);
|
|
1555
|
+
if (modified !== false) {
|
|
1556
|
+
setResult(modified);
|
|
1557
|
+
}
|
|
1558
|
+
};
|
|
1559
|
+
const usePayloadFormatter = (formatter) => ({
|
|
1560
|
+
onExecute() {
|
|
1561
|
+
const handleResult = makeHandleResult(formatter);
|
|
1562
|
+
return {
|
|
1563
|
+
onExecuteDone(payload) {
|
|
1564
|
+
return (0, utils_js_1.handleStreamOrSingleExecutionResult)(payload, handleResult);
|
|
1565
|
+
},
|
|
1566
|
+
};
|
|
1567
|
+
},
|
|
1568
|
+
});
|
|
1569
|
+
exports.usePayloadFormatter = usePayloadFormatter;
|
|
1570
|
+
|
|
1571
|
+
|
|
1572
|
+
/***/ }),
|
|
1573
|
+
|
|
1574
|
+
/***/ 37583:
|
|
1575
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
1576
|
+
|
|
1577
|
+
|
|
1578
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1579
|
+
exports.useAsyncSchema = exports.useLazyLoadedSchema = exports.useSchema = void 0;
|
|
1580
|
+
const useSchema = (schema) => {
|
|
1581
|
+
return {
|
|
1582
|
+
onPluginInit({ setSchema }) {
|
|
1583
|
+
setSchema(schema);
|
|
1584
|
+
},
|
|
1585
|
+
};
|
|
1586
|
+
};
|
|
1587
|
+
exports.useSchema = useSchema;
|
|
1588
|
+
const useLazyLoadedSchema = (schemaLoader) => {
|
|
1589
|
+
return {
|
|
1590
|
+
onEnveloped({ setSchema, context }) {
|
|
1591
|
+
setSchema(schemaLoader(context));
|
|
1592
|
+
},
|
|
1593
|
+
};
|
|
1594
|
+
};
|
|
1595
|
+
exports.useLazyLoadedSchema = useLazyLoadedSchema;
|
|
1596
|
+
const useAsyncSchema = (schemaPromise) => {
|
|
1597
|
+
return {
|
|
1598
|
+
onPluginInit({ setSchema }) {
|
|
1599
|
+
schemaPromise.then(schemaObj => {
|
|
1600
|
+
setSchema(schemaObj);
|
|
1601
|
+
});
|
|
1602
|
+
},
|
|
1603
|
+
};
|
|
1604
|
+
};
|
|
1605
|
+
exports.useAsyncSchema = useAsyncSchema;
|
|
1606
|
+
|
|
1607
|
+
|
|
1608
|
+
/***/ }),
|
|
1609
|
+
|
|
1610
|
+
/***/ 44654:
|
|
1611
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1612
|
+
|
|
1613
|
+
|
|
1614
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1615
|
+
exports.useTiming = void 0;
|
|
1616
|
+
const graphql_1 = __webpack_require__(57343);
|
|
1617
|
+
const utils_js_1 = __webpack_require__(42049);
|
|
1618
|
+
const HR_TO_NS = 1e9;
|
|
1619
|
+
const NS_TO_MS = 1e6;
|
|
1620
|
+
const DEFAULT_OPTIONS = {
|
|
1621
|
+
onExecutionMeasurement: (args, timing) => console.log(`Operation execution "${args.operationName}" done in ${timing.ms}ms`),
|
|
1622
|
+
onSubscriptionMeasurement: (args, timing) => console.log(`Operation subscription "${args.operationName}" done in ${timing.ms}ms`),
|
|
1623
|
+
onParsingMeasurement: (source, timing) => console.log(`Parsing "${source}" done in ${timing.ms}ms`),
|
|
1624
|
+
onValidationMeasurement: (document, timing) => { var _a, _b; return console.log(`Validation "${((_b = (_a = (0, graphql_1.getOperationAST)(document)) === null || _a === void 0 ? void 0 : _a.name) === null || _b === void 0 ? void 0 : _b.value) || '-'}" done in ${timing.ms}ms`); },
|
|
1625
|
+
onResolverMeasurement: (info, timing) => console.log(`\tResolver of "${info.parentType.toString()}.${info.fieldName}" done in ${timing.ms}ms`),
|
|
1626
|
+
onContextBuildingMeasurement: (timing) => console.log(`Context building done in ${timing.ms}ms`),
|
|
1627
|
+
};
|
|
1628
|
+
const deltaFrom = (hrtime) => {
|
|
1629
|
+
const delta = process.hrtime(hrtime);
|
|
1630
|
+
const ns = delta[0] * HR_TO_NS + delta[1];
|
|
1631
|
+
return {
|
|
1632
|
+
ns,
|
|
1633
|
+
get ms() {
|
|
1634
|
+
return ns / NS_TO_MS;
|
|
1635
|
+
},
|
|
1636
|
+
};
|
|
1637
|
+
};
|
|
1638
|
+
const useTiming = (rawOptions) => {
|
|
1639
|
+
const options = {
|
|
1640
|
+
...DEFAULT_OPTIONS,
|
|
1641
|
+
...rawOptions,
|
|
1642
|
+
};
|
|
1643
|
+
const result = {};
|
|
1644
|
+
if (options.onContextBuildingMeasurement) {
|
|
1645
|
+
result.onContextBuilding = ({ context }) => {
|
|
1646
|
+
if (context[utils_js_1.envelopIsIntrospectionSymbol]) {
|
|
1647
|
+
return;
|
|
1648
|
+
}
|
|
1649
|
+
const contextStartTime = process.hrtime();
|
|
1650
|
+
return () => {
|
|
1651
|
+
options.onContextBuildingMeasurement(deltaFrom(contextStartTime));
|
|
1652
|
+
};
|
|
1653
|
+
};
|
|
1654
|
+
}
|
|
1655
|
+
if (options.onParsingMeasurement) {
|
|
1656
|
+
result.onParse = ({ params, extendContext }) => {
|
|
1657
|
+
if (options.skipIntrospection && (0, utils_js_1.isIntrospectionOperationString)(params.source)) {
|
|
1658
|
+
extendContext({
|
|
1659
|
+
[utils_js_1.envelopIsIntrospectionSymbol]: true,
|
|
1660
|
+
});
|
|
1661
|
+
return;
|
|
1662
|
+
}
|
|
1663
|
+
const parseStartTime = process.hrtime();
|
|
1664
|
+
return () => {
|
|
1665
|
+
options.onParsingMeasurement(params.source, deltaFrom(parseStartTime));
|
|
1666
|
+
};
|
|
1667
|
+
};
|
|
1668
|
+
}
|
|
1669
|
+
if (options.onValidationMeasurement) {
|
|
1670
|
+
result.onValidate = ({ params, context }) => {
|
|
1671
|
+
if (context[utils_js_1.envelopIsIntrospectionSymbol]) {
|
|
1672
|
+
return;
|
|
1673
|
+
}
|
|
1674
|
+
const validateStartTime = process.hrtime();
|
|
1675
|
+
return () => {
|
|
1676
|
+
options.onValidationMeasurement(params.documentAST, deltaFrom(validateStartTime));
|
|
1677
|
+
};
|
|
1678
|
+
};
|
|
1679
|
+
}
|
|
1680
|
+
if (options.onExecutionMeasurement) {
|
|
1681
|
+
if (options.onResolverMeasurement) {
|
|
1682
|
+
result.onExecute = ({ args }) => {
|
|
1683
|
+
if (args.contextValue[utils_js_1.envelopIsIntrospectionSymbol]) {
|
|
1684
|
+
return;
|
|
1685
|
+
}
|
|
1686
|
+
const executeStartTime = process.hrtime();
|
|
1687
|
+
return {
|
|
1688
|
+
onExecuteDone: () => {
|
|
1689
|
+
options.onExecutionMeasurement(args, deltaFrom(executeStartTime));
|
|
1690
|
+
},
|
|
1691
|
+
};
|
|
1692
|
+
};
|
|
1693
|
+
result.onResolverCalled = ({ info }) => {
|
|
1694
|
+
const resolverStartTime = process.hrtime();
|
|
1695
|
+
return () => {
|
|
1696
|
+
options.onResolverMeasurement(info, deltaFrom(resolverStartTime));
|
|
1697
|
+
};
|
|
1698
|
+
};
|
|
1699
|
+
}
|
|
1700
|
+
else {
|
|
1701
|
+
result.onExecute = ({ args }) => {
|
|
1702
|
+
if (args.contextValue[utils_js_1.envelopIsIntrospectionSymbol]) {
|
|
1703
|
+
return;
|
|
1704
|
+
}
|
|
1705
|
+
const executeStartTime = process.hrtime();
|
|
1706
|
+
return {
|
|
1707
|
+
onExecuteDone: () => {
|
|
1708
|
+
options.onExecutionMeasurement(args, deltaFrom(executeStartTime));
|
|
1709
|
+
},
|
|
1710
|
+
};
|
|
1711
|
+
};
|
|
1712
|
+
}
|
|
1713
|
+
}
|
|
1714
|
+
if (options.onSubscriptionMeasurement) {
|
|
1715
|
+
if (options.onResolverMeasurement) {
|
|
1716
|
+
result.onSubscribe = ({ args }) => {
|
|
1717
|
+
if (args.contextValue[utils_js_1.envelopIsIntrospectionSymbol]) {
|
|
1718
|
+
return;
|
|
1719
|
+
}
|
|
1720
|
+
const subscribeStartTime = process.hrtime();
|
|
1721
|
+
return {
|
|
1722
|
+
onSubscribeResult: () => {
|
|
1723
|
+
options.onSubscriptionMeasurement && options.onSubscriptionMeasurement(args, deltaFrom(subscribeStartTime));
|
|
1724
|
+
},
|
|
1725
|
+
};
|
|
1726
|
+
};
|
|
1727
|
+
result.onResolverCalled = ({ info }) => {
|
|
1728
|
+
const resolverStartTime = process.hrtime();
|
|
1729
|
+
return () => {
|
|
1730
|
+
options.onResolverMeasurement && options.onResolverMeasurement(info, deltaFrom(resolverStartTime));
|
|
1731
|
+
};
|
|
1732
|
+
};
|
|
1733
|
+
}
|
|
1734
|
+
else {
|
|
1735
|
+
result.onSubscribe = ({ args }) => {
|
|
1736
|
+
if (args.contextValue[utils_js_1.envelopIsIntrospectionSymbol]) {
|
|
1737
|
+
return;
|
|
1738
|
+
}
|
|
1739
|
+
const subscribeStartTime = process.hrtime();
|
|
1740
|
+
return {
|
|
1741
|
+
onSubscribeResult: () => {
|
|
1742
|
+
options.onSubscriptionMeasurement && options.onSubscriptionMeasurement(args, deltaFrom(subscribeStartTime));
|
|
1743
|
+
},
|
|
1744
|
+
};
|
|
1745
|
+
};
|
|
1746
|
+
}
|
|
1747
|
+
}
|
|
1748
|
+
return result;
|
|
1749
|
+
};
|
|
1750
|
+
exports.useTiming = useTiming;
|
|
1751
|
+
|
|
1752
|
+
|
|
1753
|
+
/***/ }),
|
|
1754
|
+
|
|
1755
|
+
/***/ 20727:
|
|
1756
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1757
|
+
|
|
1758
|
+
|
|
1759
|
+
var _a;
|
|
1760
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1761
|
+
exports.traceOrchestrator = void 0;
|
|
1762
|
+
const graphql_1 = __webpack_require__(57343);
|
|
1763
|
+
const utils_js_1 = __webpack_require__(42049);
|
|
1764
|
+
const getTimestamp = typeof globalThis !== 'undefined' && ((_a = globalThis === null || globalThis === void 0 ? void 0 : globalThis.performance) === null || _a === void 0 ? void 0 : _a.now)
|
|
1765
|
+
? () => globalThis.performance.now()
|
|
1766
|
+
: () => Date.now();
|
|
1767
|
+
const measure = () => {
|
|
1768
|
+
const start = getTimestamp();
|
|
1769
|
+
return () => {
|
|
1770
|
+
const end = getTimestamp();
|
|
1771
|
+
return end - start;
|
|
1772
|
+
};
|
|
1773
|
+
};
|
|
1774
|
+
const tracingSymbol = Symbol('envelopTracing');
|
|
1775
|
+
function traceOrchestrator(orchestrator) {
|
|
1776
|
+
const createTracer = (name, ctx) => {
|
|
1777
|
+
const end = measure();
|
|
1778
|
+
return () => {
|
|
1779
|
+
ctx[tracingSymbol][name] = end();
|
|
1780
|
+
};
|
|
1781
|
+
};
|
|
1782
|
+
return {
|
|
1783
|
+
...orchestrator,
|
|
1784
|
+
init: (ctx = {}) => {
|
|
1785
|
+
ctx[tracingSymbol] = ctx[tracingSymbol] || {};
|
|
1786
|
+
const done = createTracer('init', ctx || {});
|
|
1787
|
+
try {
|
|
1788
|
+
return orchestrator.init(ctx);
|
|
1789
|
+
}
|
|
1790
|
+
finally {
|
|
1791
|
+
done();
|
|
1792
|
+
}
|
|
1793
|
+
},
|
|
1794
|
+
parse: (ctx = {}) => {
|
|
1795
|
+
ctx[tracingSymbol] = ctx[tracingSymbol] || {};
|
|
1796
|
+
const actualFn = orchestrator.parse(ctx);
|
|
1797
|
+
return (...args) => {
|
|
1798
|
+
const done = createTracer('parse', ctx);
|
|
1799
|
+
try {
|
|
1800
|
+
return actualFn(...args);
|
|
1801
|
+
}
|
|
1802
|
+
finally {
|
|
1803
|
+
done();
|
|
1804
|
+
}
|
|
1805
|
+
};
|
|
1806
|
+
},
|
|
1807
|
+
validate: (ctx = {}) => {
|
|
1808
|
+
ctx[tracingSymbol] = ctx[tracingSymbol] || {};
|
|
1809
|
+
const actualFn = orchestrator.validate(ctx);
|
|
1810
|
+
return (...args) => {
|
|
1811
|
+
const done = createTracer('validate', ctx);
|
|
1812
|
+
try {
|
|
1813
|
+
return actualFn(...args);
|
|
1814
|
+
}
|
|
1815
|
+
finally {
|
|
1816
|
+
done();
|
|
1817
|
+
}
|
|
1818
|
+
};
|
|
1819
|
+
},
|
|
1820
|
+
execute: async (argsOrSchema, document, rootValue, contextValue, variableValues, operationName, fieldResolver, typeResolver) => {
|
|
1821
|
+
const args = argsOrSchema instanceof graphql_1.GraphQLSchema
|
|
1822
|
+
? {
|
|
1823
|
+
schema: argsOrSchema,
|
|
1824
|
+
document: document,
|
|
1825
|
+
rootValue,
|
|
1826
|
+
contextValue,
|
|
1827
|
+
variableValues,
|
|
1828
|
+
operationName,
|
|
1829
|
+
fieldResolver,
|
|
1830
|
+
typeResolver,
|
|
1831
|
+
}
|
|
1832
|
+
: argsOrSchema;
|
|
1833
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1834
|
+
// @ts-ignore GraphQL.js types contextValue as unknown
|
|
1835
|
+
const done = createTracer('execute', args.contextValue || {});
|
|
1836
|
+
try {
|
|
1837
|
+
const result = await orchestrator.execute(args);
|
|
1838
|
+
done();
|
|
1839
|
+
if (!(0, utils_js_1.isAsyncIterable)(result)) {
|
|
1840
|
+
result.extensions = result.extensions || {};
|
|
1841
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1842
|
+
// @ts-ignore GraphQL.js types contextValue as unknown
|
|
1843
|
+
result.extensions.envelopTracing = args.contextValue[tracingSymbol];
|
|
1844
|
+
}
|
|
1845
|
+
else {
|
|
1846
|
+
// eslint-disable-next-line no-console
|
|
1847
|
+
console.warn(`"traceOrchestrator" encountered a AsyncIterator which is not supported yet, so tracing data is not available for the operation.`);
|
|
1848
|
+
}
|
|
1849
|
+
return result;
|
|
1850
|
+
}
|
|
1851
|
+
catch (e) {
|
|
1852
|
+
done();
|
|
1853
|
+
throw e;
|
|
1854
|
+
}
|
|
1855
|
+
},
|
|
1856
|
+
subscribe: async (argsOrSchema, document, rootValue, contextValue, variableValues, operationName, fieldResolver, subscribeFieldResolver) => {
|
|
1857
|
+
const args = argsOrSchema instanceof graphql_1.GraphQLSchema
|
|
1858
|
+
? {
|
|
1859
|
+
schema: argsOrSchema,
|
|
1860
|
+
document: document,
|
|
1861
|
+
rootValue,
|
|
1862
|
+
contextValue,
|
|
1863
|
+
variableValues,
|
|
1864
|
+
operationName,
|
|
1865
|
+
fieldResolver,
|
|
1866
|
+
subscribeFieldResolver,
|
|
1867
|
+
}
|
|
1868
|
+
: argsOrSchema;
|
|
1869
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
|
|
1870
|
+
// @ts-ignore GraphQL.js types contextValue as unknown
|
|
1871
|
+
const done = createTracer('subscribe', args.contextValue || {});
|
|
1872
|
+
try {
|
|
1873
|
+
return await orchestrator.subscribe(args);
|
|
1874
|
+
}
|
|
1875
|
+
finally {
|
|
1876
|
+
done();
|
|
1877
|
+
}
|
|
1878
|
+
},
|
|
1879
|
+
contextFactory: (ctx = {}) => {
|
|
1880
|
+
const actualFn = orchestrator.contextFactory(ctx);
|
|
1881
|
+
return async (childCtx) => {
|
|
1882
|
+
const done = createTracer('contextFactory', ctx);
|
|
1883
|
+
try {
|
|
1884
|
+
return await actualFn(childCtx);
|
|
1885
|
+
}
|
|
1886
|
+
finally {
|
|
1887
|
+
done();
|
|
1888
|
+
}
|
|
1889
|
+
};
|
|
1890
|
+
},
|
|
1891
|
+
};
|
|
1892
|
+
}
|
|
1893
|
+
exports.traceOrchestrator = traceOrchestrator;
|
|
1894
|
+
|
|
1895
|
+
|
|
1896
|
+
/***/ }),
|
|
1897
|
+
|
|
1898
|
+
/***/ 78172:
|
|
1899
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1900
|
+
|
|
1901
|
+
|
|
1902
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1903
|
+
exports.prepareTracedSchema = exports.resolversHooksSymbol = exports.trackedSchemaSymbol = void 0;
|
|
1904
|
+
const graphql_1 = __webpack_require__(57343);
|
|
1905
|
+
exports.trackedSchemaSymbol = Symbol('TRACKED_SCHEMA');
|
|
1906
|
+
exports.resolversHooksSymbol = Symbol('RESOLVERS_HOOKS');
|
|
1907
|
+
function prepareTracedSchema(schema) {
|
|
1908
|
+
if (!schema || schema[exports.trackedSchemaSymbol]) {
|
|
1909
|
+
return;
|
|
1910
|
+
}
|
|
1911
|
+
schema[exports.trackedSchemaSymbol] = true;
|
|
1912
|
+
const entries = Object.values(schema.getTypeMap());
|
|
1913
|
+
for (const type of entries) {
|
|
1914
|
+
if (!(0, graphql_1.isIntrospectionType)(type) && (0, graphql_1.isObjectType)(type)) {
|
|
1915
|
+
const fields = Object.values(type.getFields());
|
|
1916
|
+
for (const field of fields) {
|
|
1917
|
+
let resolverFn = (field.resolve || graphql_1.defaultFieldResolver);
|
|
1918
|
+
field.resolve = async (root, args, context, info) => {
|
|
1919
|
+
if (context && context[exports.resolversHooksSymbol]) {
|
|
1920
|
+
const hooks = context[exports.resolversHooksSymbol];
|
|
1921
|
+
const afterCalls = [];
|
|
1922
|
+
for (const hook of hooks) {
|
|
1923
|
+
const afterFn = await hook({
|
|
1924
|
+
root,
|
|
1925
|
+
args,
|
|
1926
|
+
context,
|
|
1927
|
+
info,
|
|
1928
|
+
resolverFn,
|
|
1929
|
+
replaceResolverFn: newFn => {
|
|
1930
|
+
resolverFn = newFn;
|
|
1931
|
+
},
|
|
1932
|
+
});
|
|
1933
|
+
afterFn && afterCalls.push(afterFn);
|
|
1934
|
+
}
|
|
1935
|
+
try {
|
|
1936
|
+
let result = await resolverFn(root, args, context, info);
|
|
1937
|
+
for (const afterFn of afterCalls) {
|
|
1938
|
+
afterFn({
|
|
1939
|
+
result,
|
|
1940
|
+
setResult: newResult => {
|
|
1941
|
+
result = newResult;
|
|
1942
|
+
},
|
|
1943
|
+
});
|
|
1944
|
+
}
|
|
1945
|
+
return result;
|
|
1946
|
+
}
|
|
1947
|
+
catch (e) {
|
|
1948
|
+
let resultErr = e;
|
|
1949
|
+
for (const afterFn of afterCalls) {
|
|
1950
|
+
afterFn({
|
|
1951
|
+
result: resultErr,
|
|
1952
|
+
setResult: newResult => {
|
|
1953
|
+
resultErr = newResult;
|
|
1954
|
+
},
|
|
1955
|
+
});
|
|
1956
|
+
}
|
|
1957
|
+
throw resultErr;
|
|
1958
|
+
}
|
|
1959
|
+
}
|
|
1960
|
+
else {
|
|
1961
|
+
return resolverFn(root, args, context, info);
|
|
1962
|
+
}
|
|
1963
|
+
};
|
|
1964
|
+
}
|
|
1965
|
+
}
|
|
1966
|
+
}
|
|
1967
|
+
}
|
|
1968
|
+
exports.prepareTracedSchema = prepareTracedSchema;
|
|
1969
|
+
|
|
1970
|
+
|
|
1971
|
+
/***/ }),
|
|
1972
|
+
|
|
1973
|
+
/***/ 42049:
|
|
1974
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1975
|
+
|
|
1976
|
+
|
|
1977
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1978
|
+
exports.errorAsyncIterator = exports.finalAsyncIterator = exports.handleStreamOrSingleExecutionResult = exports.isAsyncIterable = exports.makeExecute = exports.mapAsyncIterator = exports.makeSubscribe = exports.isIntrospectionOperationString = exports.isIntrospectionDocument = exports.isIntrospectionOperation = exports.isOperationDefinition = exports.envelopIsIntrospectionSymbol = void 0;
|
|
1979
|
+
const graphql_1 = __webpack_require__(57343);
|
|
1980
|
+
exports.envelopIsIntrospectionSymbol = Symbol('ENVELOP_IS_INTROSPECTION');
|
|
1981
|
+
function isOperationDefinition(def) {
|
|
1982
|
+
return def.kind === graphql_1.Kind.OPERATION_DEFINITION;
|
|
1983
|
+
}
|
|
1984
|
+
exports.isOperationDefinition = isOperationDefinition;
|
|
1985
|
+
function isIntrospectionOperation(operation) {
|
|
1986
|
+
return isIntrospectionDocument({
|
|
1987
|
+
kind: graphql_1.Kind.DOCUMENT,
|
|
1988
|
+
definitions: [operation],
|
|
1989
|
+
});
|
|
1990
|
+
}
|
|
1991
|
+
exports.isIntrospectionOperation = isIntrospectionOperation;
|
|
1992
|
+
function isIntrospectionDocument(document) {
|
|
1993
|
+
let isIntrospectionOperation = false;
|
|
1994
|
+
(0, graphql_1.visit)(document, {
|
|
1995
|
+
Field: node => {
|
|
1996
|
+
if (node.name.value === '__schema' || node.name.value === '__type') {
|
|
1997
|
+
isIntrospectionOperation = true;
|
|
1998
|
+
return graphql_1.BREAK;
|
|
1999
|
+
}
|
|
2000
|
+
},
|
|
2001
|
+
});
|
|
2002
|
+
return isIntrospectionOperation;
|
|
2003
|
+
}
|
|
2004
|
+
exports.isIntrospectionDocument = isIntrospectionDocument;
|
|
2005
|
+
function isIntrospectionOperationString(operation) {
|
|
2006
|
+
return (typeof operation === 'string' ? operation : operation.body).indexOf('__schema') !== -1;
|
|
2007
|
+
}
|
|
2008
|
+
exports.isIntrospectionOperationString = isIntrospectionOperationString;
|
|
2009
|
+
function getSubscribeArgs(args) {
|
|
2010
|
+
return args.length === 1
|
|
2011
|
+
? args[0]
|
|
2012
|
+
: {
|
|
2013
|
+
schema: args[0],
|
|
2014
|
+
document: args[1],
|
|
2015
|
+
rootValue: args[2],
|
|
2016
|
+
contextValue: args[3],
|
|
2017
|
+
variableValues: args[4],
|
|
2018
|
+
operationName: args[5],
|
|
2019
|
+
fieldResolver: args[6],
|
|
2020
|
+
subscribeFieldResolver: args[7],
|
|
2021
|
+
};
|
|
2022
|
+
}
|
|
2023
|
+
/**
|
|
2024
|
+
* Utility function for making a subscribe function that handles polymorphic arguments.
|
|
2025
|
+
*/
|
|
2026
|
+
const makeSubscribe = (subscribeFn) => ((...polyArgs) => subscribeFn(getSubscribeArgs(polyArgs)));
|
|
2027
|
+
exports.makeSubscribe = makeSubscribe;
|
|
2028
|
+
function mapAsyncIterator(source, mapper) {
|
|
2029
|
+
const iterator = source[Symbol.asyncIterator]();
|
|
2030
|
+
async function mapResult(result) {
|
|
2031
|
+
var _a;
|
|
2032
|
+
if (result.done) {
|
|
2033
|
+
return result;
|
|
2034
|
+
}
|
|
2035
|
+
try {
|
|
2036
|
+
return { value: await mapper(result.value), done: false };
|
|
2037
|
+
}
|
|
2038
|
+
catch (error) {
|
|
2039
|
+
try {
|
|
2040
|
+
await ((_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator));
|
|
2041
|
+
}
|
|
2042
|
+
catch (_error) {
|
|
2043
|
+
/* ignore error */
|
|
2044
|
+
}
|
|
2045
|
+
throw error;
|
|
2046
|
+
}
|
|
2047
|
+
}
|
|
2048
|
+
const stream = {
|
|
2049
|
+
[Symbol.asyncIterator]() {
|
|
2050
|
+
return stream;
|
|
2051
|
+
},
|
|
2052
|
+
async next() {
|
|
2053
|
+
return await mapResult(await iterator.next());
|
|
2054
|
+
},
|
|
2055
|
+
async return() {
|
|
2056
|
+
var _a;
|
|
2057
|
+
const promise = (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
2058
|
+
return promise ? await mapResult(await promise) : { value: undefined, done: true };
|
|
2059
|
+
},
|
|
2060
|
+
async throw(error) {
|
|
2061
|
+
var _a;
|
|
2062
|
+
const promise = (_a = iterator.throw) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
2063
|
+
if (promise) {
|
|
2064
|
+
return await mapResult(await promise);
|
|
2065
|
+
}
|
|
2066
|
+
// if the source has no throw method we just re-throw error
|
|
2067
|
+
// usually throw is not called anyways
|
|
2068
|
+
throw error;
|
|
2069
|
+
},
|
|
2070
|
+
};
|
|
2071
|
+
return stream;
|
|
2072
|
+
}
|
|
2073
|
+
exports.mapAsyncIterator = mapAsyncIterator;
|
|
2074
|
+
function getExecuteArgs(args) {
|
|
2075
|
+
return args.length === 1
|
|
2076
|
+
? args[0]
|
|
2077
|
+
: {
|
|
2078
|
+
schema: args[0],
|
|
2079
|
+
document: args[1],
|
|
2080
|
+
rootValue: args[2],
|
|
2081
|
+
contextValue: args[3],
|
|
2082
|
+
variableValues: args[4],
|
|
2083
|
+
operationName: args[5],
|
|
2084
|
+
fieldResolver: args[6],
|
|
2085
|
+
typeResolver: args[7],
|
|
2086
|
+
};
|
|
2087
|
+
}
|
|
2088
|
+
/**
|
|
2089
|
+
* Utility function for making a execute function that handles polymorphic arguments.
|
|
2090
|
+
*/
|
|
2091
|
+
const makeExecute = (executeFn) => ((...polyArgs) => executeFn(getExecuteArgs(polyArgs)));
|
|
2092
|
+
exports.makeExecute = makeExecute;
|
|
2093
|
+
/**
|
|
2094
|
+
* Returns true if the provided object implements the AsyncIterator protocol via
|
|
2095
|
+
* implementing a `Symbol.asyncIterator` method.
|
|
2096
|
+
*
|
|
2097
|
+
* Source: https://github.com/graphql/graphql-js/blob/main/src/jsutils/isAsyncIterable.ts
|
|
2098
|
+
*/
|
|
2099
|
+
function isAsyncIterable(maybeAsyncIterable) {
|
|
2100
|
+
return (typeof maybeAsyncIterable === 'object' &&
|
|
2101
|
+
maybeAsyncIterable != null &&
|
|
2102
|
+
typeof maybeAsyncIterable[Symbol.asyncIterator] === 'function');
|
|
2103
|
+
}
|
|
2104
|
+
exports.isAsyncIterable = isAsyncIterable;
|
|
2105
|
+
/**
|
|
2106
|
+
* A utility function for handling `onExecuteDone` hook result, for simplifying the handling of AsyncIterable returned from `execute`.
|
|
2107
|
+
*
|
|
2108
|
+
* @param payload The payload send to `onExecuteDone` hook function
|
|
2109
|
+
* @param fn The handler to be executed on each result
|
|
2110
|
+
* @returns a subscription for streamed results, or undefined in case of an non-async
|
|
2111
|
+
*/
|
|
2112
|
+
function handleStreamOrSingleExecutionResult(payload, fn) {
|
|
2113
|
+
if (isAsyncIterable(payload.result)) {
|
|
2114
|
+
return { onNext: fn };
|
|
2115
|
+
}
|
|
2116
|
+
fn({
|
|
2117
|
+
args: payload.args,
|
|
2118
|
+
result: payload.result,
|
|
2119
|
+
setResult: payload.setResult,
|
|
2120
|
+
});
|
|
2121
|
+
return undefined;
|
|
2122
|
+
}
|
|
2123
|
+
exports.handleStreamOrSingleExecutionResult = handleStreamOrSingleExecutionResult;
|
|
2124
|
+
function finalAsyncIterator(source, onFinal) {
|
|
2125
|
+
const iterator = source[Symbol.asyncIterator]();
|
|
2126
|
+
let isDone = false;
|
|
2127
|
+
const stream = {
|
|
2128
|
+
[Symbol.asyncIterator]() {
|
|
2129
|
+
return stream;
|
|
2130
|
+
},
|
|
2131
|
+
async next() {
|
|
2132
|
+
const result = await iterator.next();
|
|
2133
|
+
if (result.done && isDone === false) {
|
|
2134
|
+
isDone = true;
|
|
2135
|
+
onFinal();
|
|
2136
|
+
}
|
|
2137
|
+
return result;
|
|
2138
|
+
},
|
|
2139
|
+
async return() {
|
|
2140
|
+
var _a;
|
|
2141
|
+
const promise = (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
2142
|
+
if (isDone === false) {
|
|
2143
|
+
isDone = true;
|
|
2144
|
+
onFinal();
|
|
2145
|
+
}
|
|
2146
|
+
return promise ? await promise : { done: true, value: undefined };
|
|
2147
|
+
},
|
|
2148
|
+
async throw(error) {
|
|
2149
|
+
var _a;
|
|
2150
|
+
const promise = (_a = iterator.throw) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
2151
|
+
if (promise) {
|
|
2152
|
+
return await promise;
|
|
2153
|
+
}
|
|
2154
|
+
// if the source has no throw method we just re-throw error
|
|
2155
|
+
// usually throw is not called anyways
|
|
2156
|
+
throw error;
|
|
2157
|
+
},
|
|
2158
|
+
};
|
|
2159
|
+
return stream;
|
|
2160
|
+
}
|
|
2161
|
+
exports.finalAsyncIterator = finalAsyncIterator;
|
|
2162
|
+
function errorAsyncIterator(source, onError) {
|
|
2163
|
+
const iterator = source[Symbol.asyncIterator]();
|
|
2164
|
+
const stream = {
|
|
2165
|
+
[Symbol.asyncIterator]() {
|
|
2166
|
+
return stream;
|
|
2167
|
+
},
|
|
2168
|
+
async next() {
|
|
2169
|
+
try {
|
|
2170
|
+
return await iterator.next();
|
|
2171
|
+
}
|
|
2172
|
+
catch (error) {
|
|
2173
|
+
onError(error);
|
|
2174
|
+
return { done: true, value: undefined };
|
|
2175
|
+
}
|
|
2176
|
+
},
|
|
2177
|
+
async return() {
|
|
2178
|
+
var _a;
|
|
2179
|
+
const promise = (_a = iterator.return) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
2180
|
+
return promise ? await promise : { done: true, value: undefined };
|
|
2181
|
+
},
|
|
2182
|
+
async throw(error) {
|
|
2183
|
+
var _a;
|
|
2184
|
+
const promise = (_a = iterator.throw) === null || _a === void 0 ? void 0 : _a.call(iterator);
|
|
2185
|
+
if (promise) {
|
|
2186
|
+
return await promise;
|
|
2187
|
+
}
|
|
2188
|
+
// if the source has no throw method we just re-throw error
|
|
2189
|
+
// usually throw is not called anyways
|
|
2190
|
+
throw error;
|
|
2191
|
+
},
|
|
2192
|
+
};
|
|
2193
|
+
return stream;
|
|
2194
|
+
}
|
|
2195
|
+
exports.errorAsyncIterator = errorAsyncIterator;
|
|
2196
|
+
|
|
2197
|
+
|
|
2198
|
+
/***/ }),
|
|
2199
|
+
|
|
2200
|
+
/***/ 37006:
|
|
2201
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2202
|
+
|
|
2203
|
+
|
|
2204
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2205
|
+
exports.useOnResolve = void 0;
|
|
2206
|
+
const graphql_1 = __webpack_require__(57343);
|
|
2207
|
+
/**
|
|
2208
|
+
* Wraps the provided schema by hooking into the resolvers of every field.
|
|
2209
|
+
*
|
|
2210
|
+
* Use the `onResolve` argument to manipulate the resolver and its results/errors.
|
|
2211
|
+
*/
|
|
2212
|
+
function useOnResolve(onResolve) {
|
|
2213
|
+
return {
|
|
2214
|
+
onSchemaChange({ schema: _schema }) {
|
|
2215
|
+
const schema = _schema;
|
|
2216
|
+
if (!schema)
|
|
2217
|
+
return; // nothing to do if schema is missing
|
|
2218
|
+
for (const type of Object.values(schema.getTypeMap())) {
|
|
2219
|
+
if (!(0, graphql_1.isIntrospectionType)(type) && (0, graphql_1.isObjectType)(type)) {
|
|
2220
|
+
for (const field of Object.values(type.getFields())) {
|
|
2221
|
+
let resolver = (field.resolve || graphql_1.defaultFieldResolver);
|
|
2222
|
+
field.resolve = async (root, args, context, info) => {
|
|
2223
|
+
const afterResolve = await onResolve({
|
|
2224
|
+
root,
|
|
2225
|
+
args,
|
|
2226
|
+
context,
|
|
2227
|
+
info,
|
|
2228
|
+
resolver,
|
|
2229
|
+
replaceResolver: newResolver => {
|
|
2230
|
+
resolver = newResolver;
|
|
2231
|
+
},
|
|
2232
|
+
});
|
|
2233
|
+
let result;
|
|
2234
|
+
try {
|
|
2235
|
+
result = await resolver(root, args, context, info);
|
|
2236
|
+
}
|
|
2237
|
+
catch (err) {
|
|
2238
|
+
result = err;
|
|
2239
|
+
}
|
|
2240
|
+
if (typeof afterResolve === 'function') {
|
|
2241
|
+
await afterResolve({
|
|
2242
|
+
result,
|
|
2243
|
+
setResult: newResult => {
|
|
2244
|
+
result = newResult;
|
|
2245
|
+
},
|
|
2246
|
+
});
|
|
2247
|
+
}
|
|
2248
|
+
if (result instanceof Error) {
|
|
2249
|
+
throw result;
|
|
2250
|
+
}
|
|
2251
|
+
return result;
|
|
2252
|
+
};
|
|
2253
|
+
}
|
|
2254
|
+
}
|
|
2255
|
+
}
|
|
2256
|
+
},
|
|
2257
|
+
};
|
|
2258
|
+
}
|
|
2259
|
+
exports.useOnResolve = useOnResolve;
|
|
2260
|
+
|
|
2261
|
+
|
|
2262
|
+
/***/ }),
|
|
2263
|
+
|
|
2264
|
+
/***/ 23073:
|
|
2265
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
2266
|
+
|
|
2267
|
+
|
|
2268
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2269
|
+
|
|
2270
|
+
|
|
2271
|
+
/***/ }),
|
|
2272
|
+
|
|
2273
|
+
/***/ 54686:
|
|
2274
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
2275
|
+
|
|
2276
|
+
|
|
2277
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2278
|
+
|
|
2279
|
+
|
|
2280
|
+
/***/ }),
|
|
2281
|
+
|
|
2282
|
+
/***/ 79277:
|
|
2283
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
2284
|
+
|
|
2285
|
+
|
|
2286
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2287
|
+
|
|
2288
|
+
|
|
2289
|
+
/***/ }),
|
|
2290
|
+
|
|
2291
|
+
/***/ 88036:
|
|
2292
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
2293
|
+
|
|
2294
|
+
|
|
2295
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2296
|
+
|
|
2297
|
+
|
|
2298
|
+
/***/ }),
|
|
2299
|
+
|
|
2300
|
+
/***/ 49673:
|
|
2301
|
+
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2302
|
+
|
|
2303
|
+
|
|
2304
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2305
|
+
const tslib_1 = __webpack_require__(40752);
|
|
2306
|
+
tslib_1.__exportStar(__webpack_require__(23073), exports);
|
|
2307
|
+
tslib_1.__exportStar(__webpack_require__(88036), exports);
|
|
2308
|
+
tslib_1.__exportStar(__webpack_require__(19818), exports);
|
|
2309
|
+
tslib_1.__exportStar(__webpack_require__(54686), exports);
|
|
2310
|
+
tslib_1.__exportStar(__webpack_require__(79277), exports);
|
|
2311
|
+
tslib_1.__exportStar(__webpack_require__(46760), exports);
|
|
2312
|
+
|
|
2313
|
+
|
|
2314
|
+
/***/ }),
|
|
2315
|
+
|
|
2316
|
+
/***/ 19818:
|
|
2317
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
2318
|
+
|
|
2319
|
+
|
|
2320
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2321
|
+
|
|
2322
|
+
|
|
2323
|
+
/***/ }),
|
|
2324
|
+
|
|
2325
|
+
/***/ 46760:
|
|
2326
|
+
/***/ ((__unused_webpack_module, exports) => {
|
|
2327
|
+
|
|
2328
|
+
|
|
2329
|
+
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2330
|
+
|
|
2331
|
+
|
|
2332
|
+
/***/ }),
|
|
2333
|
+
|
|
2334
|
+
/***/ 39886:
|
|
434
2335
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
435
2336
|
|
|
436
2337
|
|
|
437
2338
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
438
2339
|
exports.extractExtensionsFromSchema = exports.applyExtensions = exports.mergeExtensions = exports.travelSchemaPossibleExtensions = void 0;
|
|
439
|
-
const graphql_1 = __webpack_require__(
|
|
440
|
-
const utils_1 = __webpack_require__(
|
|
2340
|
+
const graphql_1 = __webpack_require__(57343);
|
|
2341
|
+
const utils_1 = __webpack_require__(22371);
|
|
441
2342
|
function travelSchemaPossibleExtensions(schema, hooks) {
|
|
442
2343
|
hooks.onSchema(schema);
|
|
443
2344
|
const typesMap = schema.getTypeMap();
|
|
@@ -569,26 +2470,26 @@ exports.extractExtensionsFromSchema = extractExtensionsFromSchema;
|
|
|
569
2470
|
|
|
570
2471
|
/***/ }),
|
|
571
2472
|
|
|
572
|
-
/***/
|
|
2473
|
+
/***/ 51369:
|
|
573
2474
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
574
2475
|
|
|
575
2476
|
|
|
576
2477
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
577
|
-
const tslib_1 = __webpack_require__(
|
|
578
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
579
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
580
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
2478
|
+
const tslib_1 = __webpack_require__(40752);
|
|
2479
|
+
tslib_1.__exportStar(__webpack_require__(93337), exports);
|
|
2480
|
+
tslib_1.__exportStar(__webpack_require__(36603), exports);
|
|
2481
|
+
tslib_1.__exportStar(__webpack_require__(39886), exports);
|
|
581
2482
|
|
|
582
2483
|
|
|
583
2484
|
/***/ }),
|
|
584
2485
|
|
|
585
|
-
/***/
|
|
2486
|
+
/***/ 93337:
|
|
586
2487
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
587
2488
|
|
|
588
2489
|
|
|
589
2490
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
590
2491
|
exports.mergeResolvers = void 0;
|
|
591
|
-
const utils_1 = __webpack_require__(
|
|
2492
|
+
const utils_1 = __webpack_require__(22371);
|
|
592
2493
|
/**
|
|
593
2494
|
* Deep merges multiple resolver definition objects into a single definition.
|
|
594
2495
|
* @param resolversDefinitions Resolver definitions to be merged
|
|
@@ -662,7 +2563,7 @@ exports.mergeResolvers = mergeResolvers;
|
|
|
662
2563
|
|
|
663
2564
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
664
2565
|
exports.mergeArguments = void 0;
|
|
665
|
-
const utils_1 = __webpack_require__(
|
|
2566
|
+
const utils_1 = __webpack_require__(22371);
|
|
666
2567
|
function mergeArguments(args1, args2, config) {
|
|
667
2568
|
const result = deduplicateArguments([...args2, ...args1].filter(utils_1.isSome));
|
|
668
2569
|
if (config && config.sort) {
|
|
@@ -684,14 +2585,14 @@ function deduplicateArguments(args) {
|
|
|
684
2585
|
|
|
685
2586
|
/***/ }),
|
|
686
2587
|
|
|
687
|
-
/***/
|
|
2588
|
+
/***/ 75333:
|
|
688
2589
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
689
2590
|
|
|
690
2591
|
|
|
691
2592
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
692
2593
|
exports.mergeDirective = exports.mergeDirectives = void 0;
|
|
693
|
-
const graphql_1 = __webpack_require__(
|
|
694
|
-
const utils_1 = __webpack_require__(
|
|
2594
|
+
const graphql_1 = __webpack_require__(57343);
|
|
2595
|
+
const utils_1 = __webpack_require__(22371);
|
|
695
2596
|
function directiveAlreadyExists(directivesArr, otherDirective) {
|
|
696
2597
|
return !!directivesArr.find(directive => directive.name.value === otherDirective.name.value);
|
|
697
2598
|
}
|
|
@@ -791,14 +2692,14 @@ function deduplicateLists(source, target, filterFn) {
|
|
|
791
2692
|
|
|
792
2693
|
/***/ }),
|
|
793
2694
|
|
|
794
|
-
/***/
|
|
2695
|
+
/***/ 79114:
|
|
795
2696
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
796
2697
|
|
|
797
2698
|
|
|
798
2699
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
799
2700
|
exports.mergeEnumValues = void 0;
|
|
800
|
-
const directives_js_1 = __webpack_require__(
|
|
801
|
-
const utils_1 = __webpack_require__(
|
|
2701
|
+
const directives_js_1 = __webpack_require__(75333);
|
|
2702
|
+
const utils_1 = __webpack_require__(22371);
|
|
802
2703
|
function mergeEnumValues(first, second, config) {
|
|
803
2704
|
if (config === null || config === void 0 ? void 0 : config.consistentEnumMerge) {
|
|
804
2705
|
const reversed = [];
|
|
@@ -838,15 +2739,15 @@ exports.mergeEnumValues = mergeEnumValues;
|
|
|
838
2739
|
|
|
839
2740
|
/***/ }),
|
|
840
2741
|
|
|
841
|
-
/***/
|
|
2742
|
+
/***/ 31671:
|
|
842
2743
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
843
2744
|
|
|
844
2745
|
|
|
845
2746
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
846
2747
|
exports.mergeEnum = void 0;
|
|
847
|
-
const graphql_1 = __webpack_require__(
|
|
848
|
-
const directives_js_1 = __webpack_require__(
|
|
849
|
-
const enum_values_js_1 = __webpack_require__(
|
|
2748
|
+
const graphql_1 = __webpack_require__(57343);
|
|
2749
|
+
const directives_js_1 = __webpack_require__(75333);
|
|
2750
|
+
const enum_values_js_1 = __webpack_require__(79114);
|
|
850
2751
|
function mergeEnum(e1, e2, config) {
|
|
851
2752
|
if (e2) {
|
|
852
2753
|
return {
|
|
@@ -872,15 +2773,15 @@ exports.mergeEnum = mergeEnum;
|
|
|
872
2773
|
|
|
873
2774
|
/***/ }),
|
|
874
2775
|
|
|
875
|
-
/***/
|
|
2776
|
+
/***/ 17754:
|
|
876
2777
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
877
2778
|
|
|
878
2779
|
|
|
879
2780
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
880
2781
|
exports.mergeFields = void 0;
|
|
881
|
-
const utils_js_1 = __webpack_require__(
|
|
882
|
-
const directives_js_1 = __webpack_require__(
|
|
883
|
-
const utils_1 = __webpack_require__(
|
|
2782
|
+
const utils_js_1 = __webpack_require__(32825);
|
|
2783
|
+
const directives_js_1 = __webpack_require__(75333);
|
|
2784
|
+
const utils_1 = __webpack_require__(22371);
|
|
884
2785
|
const arguments_js_1 = __webpack_require__(5293);
|
|
885
2786
|
function fieldAlreadyExists(fieldsArr, otherField, config) {
|
|
886
2787
|
const result = fieldsArr.find(field => field.name.value === otherField.name.value);
|
|
@@ -964,39 +2865,39 @@ function safeChangeForFieldType(oldType, newType, ignoreNullability = false) {
|
|
|
964
2865
|
|
|
965
2866
|
/***/ }),
|
|
966
2867
|
|
|
967
|
-
/***/
|
|
2868
|
+
/***/ 36603:
|
|
968
2869
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
969
2870
|
|
|
970
2871
|
|
|
971
2872
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
972
|
-
const tslib_1 = __webpack_require__(
|
|
2873
|
+
const tslib_1 = __webpack_require__(40752);
|
|
973
2874
|
tslib_1.__exportStar(__webpack_require__(5293), exports);
|
|
974
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
975
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
976
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
977
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
978
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
979
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
980
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
981
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
982
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
983
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
984
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
985
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
986
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
2875
|
+
tslib_1.__exportStar(__webpack_require__(75333), exports);
|
|
2876
|
+
tslib_1.__exportStar(__webpack_require__(79114), exports);
|
|
2877
|
+
tslib_1.__exportStar(__webpack_require__(31671), exports);
|
|
2878
|
+
tslib_1.__exportStar(__webpack_require__(17754), exports);
|
|
2879
|
+
tslib_1.__exportStar(__webpack_require__(39777), exports);
|
|
2880
|
+
tslib_1.__exportStar(__webpack_require__(80239), exports);
|
|
2881
|
+
tslib_1.__exportStar(__webpack_require__(73915), exports);
|
|
2882
|
+
tslib_1.__exportStar(__webpack_require__(51642), exports);
|
|
2883
|
+
tslib_1.__exportStar(__webpack_require__(23878), exports);
|
|
2884
|
+
tslib_1.__exportStar(__webpack_require__(17551), exports);
|
|
2885
|
+
tslib_1.__exportStar(__webpack_require__(97524), exports);
|
|
2886
|
+
tslib_1.__exportStar(__webpack_require__(87747), exports);
|
|
2887
|
+
tslib_1.__exportStar(__webpack_require__(32825), exports);
|
|
987
2888
|
|
|
988
2889
|
|
|
989
2890
|
/***/ }),
|
|
990
2891
|
|
|
991
|
-
/***/
|
|
2892
|
+
/***/ 39777:
|
|
992
2893
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
993
2894
|
|
|
994
2895
|
|
|
995
2896
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
996
2897
|
exports.mergeInputType = void 0;
|
|
997
|
-
const graphql_1 = __webpack_require__(
|
|
998
|
-
const fields_js_1 = __webpack_require__(
|
|
999
|
-
const directives_js_1 = __webpack_require__(
|
|
2898
|
+
const graphql_1 = __webpack_require__(57343);
|
|
2899
|
+
const fields_js_1 = __webpack_require__(17754);
|
|
2900
|
+
const directives_js_1 = __webpack_require__(75333);
|
|
1000
2901
|
function mergeInputType(node, existingNode, config) {
|
|
1001
2902
|
if (existingNode) {
|
|
1002
2903
|
try {
|
|
@@ -1029,16 +2930,16 @@ exports.mergeInputType = mergeInputType;
|
|
|
1029
2930
|
|
|
1030
2931
|
/***/ }),
|
|
1031
2932
|
|
|
1032
|
-
/***/
|
|
2933
|
+
/***/ 80239:
|
|
1033
2934
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1034
2935
|
|
|
1035
2936
|
|
|
1036
2937
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1037
2938
|
exports.mergeInterface = void 0;
|
|
1038
|
-
const graphql_1 = __webpack_require__(
|
|
1039
|
-
const fields_js_1 = __webpack_require__(
|
|
1040
|
-
const directives_js_1 = __webpack_require__(
|
|
1041
|
-
const index_js_1 = __webpack_require__(
|
|
2939
|
+
const graphql_1 = __webpack_require__(57343);
|
|
2940
|
+
const fields_js_1 = __webpack_require__(17754);
|
|
2941
|
+
const directives_js_1 = __webpack_require__(75333);
|
|
2942
|
+
const index_js_1 = __webpack_require__(36603);
|
|
1042
2943
|
function mergeInterface(node, existingNode, config) {
|
|
1043
2944
|
if (existingNode) {
|
|
1044
2945
|
try {
|
|
@@ -1074,13 +2975,13 @@ exports.mergeInterface = mergeInterface;
|
|
|
1074
2975
|
|
|
1075
2976
|
/***/ }),
|
|
1076
2977
|
|
|
1077
|
-
/***/
|
|
2978
|
+
/***/ 73915:
|
|
1078
2979
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1079
2980
|
|
|
1080
2981
|
|
|
1081
2982
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1082
2983
|
exports.mergeNamedTypeArray = void 0;
|
|
1083
|
-
const utils_1 = __webpack_require__(
|
|
2984
|
+
const utils_1 = __webpack_require__(22371);
|
|
1084
2985
|
function alreadyExists(arr, other) {
|
|
1085
2986
|
return !!arr.find(i => i.name.value === other.name.value);
|
|
1086
2987
|
}
|
|
@@ -1096,22 +2997,22 @@ exports.mergeNamedTypeArray = mergeNamedTypeArray;
|
|
|
1096
2997
|
|
|
1097
2998
|
/***/ }),
|
|
1098
2999
|
|
|
1099
|
-
/***/
|
|
3000
|
+
/***/ 51642:
|
|
1100
3001
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1101
3002
|
|
|
1102
3003
|
|
|
1103
3004
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1104
3005
|
exports.mergeGraphQLNodes = exports.isNamedDefinitionNode = exports.schemaDefSymbol = void 0;
|
|
1105
|
-
const graphql_1 = __webpack_require__(
|
|
1106
|
-
const type_js_1 = __webpack_require__(
|
|
1107
|
-
const enum_js_1 = __webpack_require__(
|
|
1108
|
-
const scalar_js_1 = __webpack_require__(
|
|
1109
|
-
const union_js_1 = __webpack_require__(
|
|
1110
|
-
const input_type_js_1 = __webpack_require__(
|
|
1111
|
-
const interface_js_1 = __webpack_require__(
|
|
1112
|
-
const directives_js_1 = __webpack_require__(
|
|
1113
|
-
const schema_def_js_1 = __webpack_require__(
|
|
1114
|
-
const utils_1 = __webpack_require__(
|
|
3006
|
+
const graphql_1 = __webpack_require__(57343);
|
|
3007
|
+
const type_js_1 = __webpack_require__(97524);
|
|
3008
|
+
const enum_js_1 = __webpack_require__(31671);
|
|
3009
|
+
const scalar_js_1 = __webpack_require__(17551);
|
|
3010
|
+
const union_js_1 = __webpack_require__(87747);
|
|
3011
|
+
const input_type_js_1 = __webpack_require__(39777);
|
|
3012
|
+
const interface_js_1 = __webpack_require__(80239);
|
|
3013
|
+
const directives_js_1 = __webpack_require__(75333);
|
|
3014
|
+
const schema_def_js_1 = __webpack_require__(23400);
|
|
3015
|
+
const utils_1 = __webpack_require__(22371);
|
|
1115
3016
|
exports.schemaDefSymbol = 'SCHEMA_DEF_SYMBOL';
|
|
1116
3017
|
function isNamedDefinitionNode(definitionNode) {
|
|
1117
3018
|
return 'name' in definitionNode;
|
|
@@ -1175,17 +3076,17 @@ exports.mergeGraphQLNodes = mergeGraphQLNodes;
|
|
|
1175
3076
|
|
|
1176
3077
|
/***/ }),
|
|
1177
3078
|
|
|
1178
|
-
/***/
|
|
3079
|
+
/***/ 23878:
|
|
1179
3080
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1180
3081
|
|
|
1181
3082
|
|
|
1182
3083
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1183
3084
|
exports.mergeGraphQLTypes = exports.mergeTypeDefs = void 0;
|
|
1184
|
-
const graphql_1 = __webpack_require__(
|
|
1185
|
-
const utils_js_1 = __webpack_require__(
|
|
1186
|
-
const merge_nodes_js_1 = __webpack_require__(
|
|
1187
|
-
const utils_1 = __webpack_require__(
|
|
1188
|
-
const schema_def_js_1 = __webpack_require__(
|
|
3085
|
+
const graphql_1 = __webpack_require__(57343);
|
|
3086
|
+
const utils_js_1 = __webpack_require__(32825);
|
|
3087
|
+
const merge_nodes_js_1 = __webpack_require__(51642);
|
|
3088
|
+
const utils_1 = __webpack_require__(22371);
|
|
3089
|
+
const schema_def_js_1 = __webpack_require__(23400);
|
|
1189
3090
|
function mergeTypeDefs(typeSource, config) {
|
|
1190
3091
|
(0, utils_1.resetComments)();
|
|
1191
3092
|
const doc = {
|
|
@@ -1303,14 +3204,14 @@ exports.mergeGraphQLTypes = mergeGraphQLTypes;
|
|
|
1303
3204
|
|
|
1304
3205
|
/***/ }),
|
|
1305
3206
|
|
|
1306
|
-
/***/
|
|
3207
|
+
/***/ 17551:
|
|
1307
3208
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1308
3209
|
|
|
1309
3210
|
|
|
1310
3211
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1311
3212
|
exports.mergeScalar = void 0;
|
|
1312
|
-
const graphql_1 = __webpack_require__(
|
|
1313
|
-
const directives_js_1 = __webpack_require__(
|
|
3213
|
+
const graphql_1 = __webpack_require__(57343);
|
|
3214
|
+
const directives_js_1 = __webpack_require__(75333);
|
|
1314
3215
|
function mergeScalar(node, existingNode, config) {
|
|
1315
3216
|
if (existingNode) {
|
|
1316
3217
|
return {
|
|
@@ -1337,14 +3238,14 @@ exports.mergeScalar = mergeScalar;
|
|
|
1337
3238
|
|
|
1338
3239
|
/***/ }),
|
|
1339
3240
|
|
|
1340
|
-
/***/
|
|
3241
|
+
/***/ 23400:
|
|
1341
3242
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1342
3243
|
|
|
1343
3244
|
|
|
1344
3245
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1345
3246
|
exports.mergeSchemaDefs = exports.DEFAULT_OPERATION_TYPE_NAME_MAP = void 0;
|
|
1346
|
-
const graphql_1 = __webpack_require__(
|
|
1347
|
-
const directives_js_1 = __webpack_require__(
|
|
3247
|
+
const graphql_1 = __webpack_require__(57343);
|
|
3248
|
+
const directives_js_1 = __webpack_require__(75333);
|
|
1348
3249
|
exports.DEFAULT_OPERATION_TYPE_NAME_MAP = {
|
|
1349
3250
|
query: 'Query',
|
|
1350
3251
|
mutation: 'Mutation',
|
|
@@ -1383,16 +3284,16 @@ exports.mergeSchemaDefs = mergeSchemaDefs;
|
|
|
1383
3284
|
|
|
1384
3285
|
/***/ }),
|
|
1385
3286
|
|
|
1386
|
-
/***/
|
|
3287
|
+
/***/ 97524:
|
|
1387
3288
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1388
3289
|
|
|
1389
3290
|
|
|
1390
3291
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1391
3292
|
exports.mergeType = void 0;
|
|
1392
|
-
const graphql_1 = __webpack_require__(
|
|
1393
|
-
const fields_js_1 = __webpack_require__(
|
|
1394
|
-
const directives_js_1 = __webpack_require__(
|
|
1395
|
-
const merge_named_type_array_js_1 = __webpack_require__(
|
|
3293
|
+
const graphql_1 = __webpack_require__(57343);
|
|
3294
|
+
const fields_js_1 = __webpack_require__(17754);
|
|
3295
|
+
const directives_js_1 = __webpack_require__(75333);
|
|
3296
|
+
const merge_named_type_array_js_1 = __webpack_require__(73915);
|
|
1396
3297
|
function mergeType(node, existingNode, config) {
|
|
1397
3298
|
if (existingNode) {
|
|
1398
3299
|
try {
|
|
@@ -1426,15 +3327,15 @@ exports.mergeType = mergeType;
|
|
|
1426
3327
|
|
|
1427
3328
|
/***/ }),
|
|
1428
3329
|
|
|
1429
|
-
/***/
|
|
3330
|
+
/***/ 87747:
|
|
1430
3331
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1431
3332
|
|
|
1432
3333
|
|
|
1433
3334
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1434
3335
|
exports.mergeUnion = void 0;
|
|
1435
|
-
const graphql_1 = __webpack_require__(
|
|
1436
|
-
const directives_js_1 = __webpack_require__(
|
|
1437
|
-
const merge_named_type_array_js_1 = __webpack_require__(
|
|
3336
|
+
const graphql_1 = __webpack_require__(57343);
|
|
3337
|
+
const directives_js_1 = __webpack_require__(75333);
|
|
3338
|
+
const merge_named_type_array_js_1 = __webpack_require__(73915);
|
|
1438
3339
|
function mergeUnion(first, second, config) {
|
|
1439
3340
|
if (second) {
|
|
1440
3341
|
return {
|
|
@@ -1461,13 +3362,13 @@ exports.mergeUnion = mergeUnion;
|
|
|
1461
3362
|
|
|
1462
3363
|
/***/ }),
|
|
1463
3364
|
|
|
1464
|
-
/***/
|
|
3365
|
+
/***/ 32825:
|
|
1465
3366
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1466
3367
|
|
|
1467
3368
|
|
|
1468
3369
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1469
3370
|
exports.defaultStringComparator = exports.CompareVal = exports.printTypeNode = exports.isNonNullTypeNode = exports.isListTypeNode = exports.isWrappingTypeNode = exports.extractType = exports.isSourceTypes = exports.isStringTypes = void 0;
|
|
1470
|
-
const graphql_1 = __webpack_require__(
|
|
3371
|
+
const graphql_1 = __webpack_require__(57343);
|
|
1471
3372
|
function isStringTypes(types) {
|
|
1472
3373
|
return typeof types === 'string';
|
|
1473
3374
|
}
|
|
@@ -1533,16 +3434,16 @@ exports.defaultStringComparator = defaultStringComparator;
|
|
|
1533
3434
|
|
|
1534
3435
|
/***/ }),
|
|
1535
3436
|
|
|
1536
|
-
/***/
|
|
3437
|
+
/***/ 24042:
|
|
1537
3438
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1538
3439
|
|
|
1539
3440
|
|
|
1540
3441
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1541
3442
|
exports.addResolversToSchema = void 0;
|
|
1542
|
-
const graphql_1 = __webpack_require__(
|
|
1543
|
-
const utils_1 = __webpack_require__(
|
|
1544
|
-
const checkForResolveTypeResolver_js_1 = __webpack_require__(
|
|
1545
|
-
const extendResolversFromInterfaces_js_1 = __webpack_require__(
|
|
3443
|
+
const graphql_1 = __webpack_require__(57343);
|
|
3444
|
+
const utils_1 = __webpack_require__(22371);
|
|
3445
|
+
const checkForResolveTypeResolver_js_1 = __webpack_require__(81406);
|
|
3446
|
+
const extendResolversFromInterfaces_js_1 = __webpack_require__(26913);
|
|
1546
3447
|
function addResolversToSchema(schemaOrOptions, legacyInputResolvers, legacyInputValidationOptions) {
|
|
1547
3448
|
const options = (0, graphql_1.isSchema)(schemaOrOptions)
|
|
1548
3449
|
? {
|
|
@@ -1866,14 +3767,14 @@ function setFieldProperties(field, propertiesObj) {
|
|
|
1866
3767
|
|
|
1867
3768
|
/***/ }),
|
|
1868
3769
|
|
|
1869
|
-
/***/
|
|
3770
|
+
/***/ 41932:
|
|
1870
3771
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1871
3772
|
|
|
1872
3773
|
|
|
1873
3774
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1874
3775
|
exports.assertResolversPresent = void 0;
|
|
1875
|
-
const graphql_1 = __webpack_require__(
|
|
1876
|
-
const utils_1 = __webpack_require__(
|
|
3776
|
+
const graphql_1 = __webpack_require__(57343);
|
|
3777
|
+
const utils_1 = __webpack_require__(22371);
|
|
1877
3778
|
function assertResolversPresent(schema, resolverValidationOptions = {}) {
|
|
1878
3779
|
const { requireResolversForArgs, requireResolversForNonScalar, requireResolversForAllFields } = resolverValidationOptions;
|
|
1879
3780
|
if (requireResolversForAllFields && (requireResolversForArgs || requireResolversForNonScalar)) {
|
|
@@ -1920,13 +3821,13 @@ To disable this validator, use:
|
|
|
1920
3821
|
|
|
1921
3822
|
/***/ }),
|
|
1922
3823
|
|
|
1923
|
-
/***/
|
|
3824
|
+
/***/ 80516:
|
|
1924
3825
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1925
3826
|
|
|
1926
3827
|
|
|
1927
3828
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1928
3829
|
exports.chainResolvers = void 0;
|
|
1929
|
-
const graphql_1 = __webpack_require__(
|
|
3830
|
+
const graphql_1 = __webpack_require__(57343);
|
|
1930
3831
|
function chainResolvers(resolvers) {
|
|
1931
3832
|
return (root, args, ctx, info) => resolvers.reduce((prev, curResolver) => {
|
|
1932
3833
|
if (curResolver != null) {
|
|
@@ -1940,13 +3841,13 @@ exports.chainResolvers = chainResolvers;
|
|
|
1940
3841
|
|
|
1941
3842
|
/***/ }),
|
|
1942
3843
|
|
|
1943
|
-
/***/
|
|
3844
|
+
/***/ 81406:
|
|
1944
3845
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
1945
3846
|
|
|
1946
3847
|
|
|
1947
3848
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
1948
3849
|
exports.checkForResolveTypeResolver = void 0;
|
|
1949
|
-
const utils_1 = __webpack_require__(
|
|
3850
|
+
const utils_1 = __webpack_require__(22371);
|
|
1950
3851
|
// If we have any union or interface types throw if no there is no resolveType resolver
|
|
1951
3852
|
function checkForResolveTypeResolver(schema, requireResolversForResolveType) {
|
|
1952
3853
|
(0, utils_1.mapSchema)(schema, {
|
|
@@ -1970,7 +3871,7 @@ exports.checkForResolveTypeResolver = checkForResolveTypeResolver;
|
|
|
1970
3871
|
|
|
1971
3872
|
/***/ }),
|
|
1972
3873
|
|
|
1973
|
-
/***/
|
|
3874
|
+
/***/ 26913:
|
|
1974
3875
|
/***/ ((__unused_webpack_module, exports) => {
|
|
1975
3876
|
|
|
1976
3877
|
|
|
@@ -2012,41 +3913,41 @@ exports.extendResolversFromInterfaces = extendResolversFromInterfaces;
|
|
|
2012
3913
|
|
|
2013
3914
|
/***/ }),
|
|
2014
3915
|
|
|
2015
|
-
/***/
|
|
3916
|
+
/***/ 14246:
|
|
2016
3917
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2017
3918
|
|
|
2018
3919
|
|
|
2019
3920
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2020
3921
|
exports.extendResolversFromInterfaces = exports.checkForResolveTypeResolver = exports.addResolversToSchema = exports.chainResolvers = exports.assertResolversPresent = void 0;
|
|
2021
|
-
const tslib_1 = __webpack_require__(
|
|
2022
|
-
var assertResolversPresent_js_1 = __webpack_require__(
|
|
3922
|
+
const tslib_1 = __webpack_require__(40752);
|
|
3923
|
+
var assertResolversPresent_js_1 = __webpack_require__(41932);
|
|
2023
3924
|
Object.defineProperty(exports, "assertResolversPresent", ({ enumerable: true, get: function () { return assertResolversPresent_js_1.assertResolversPresent; } }));
|
|
2024
|
-
var chainResolvers_js_1 = __webpack_require__(
|
|
3925
|
+
var chainResolvers_js_1 = __webpack_require__(80516);
|
|
2025
3926
|
Object.defineProperty(exports, "chainResolvers", ({ enumerable: true, get: function () { return chainResolvers_js_1.chainResolvers; } }));
|
|
2026
|
-
var addResolversToSchema_js_1 = __webpack_require__(
|
|
3927
|
+
var addResolversToSchema_js_1 = __webpack_require__(24042);
|
|
2027
3928
|
Object.defineProperty(exports, "addResolversToSchema", ({ enumerable: true, get: function () { return addResolversToSchema_js_1.addResolversToSchema; } }));
|
|
2028
|
-
var checkForResolveTypeResolver_js_1 = __webpack_require__(
|
|
3929
|
+
var checkForResolveTypeResolver_js_1 = __webpack_require__(81406);
|
|
2029
3930
|
Object.defineProperty(exports, "checkForResolveTypeResolver", ({ enumerable: true, get: function () { return checkForResolveTypeResolver_js_1.checkForResolveTypeResolver; } }));
|
|
2030
|
-
var extendResolversFromInterfaces_js_1 = __webpack_require__(
|
|
3931
|
+
var extendResolversFromInterfaces_js_1 = __webpack_require__(26913);
|
|
2031
3932
|
Object.defineProperty(exports, "extendResolversFromInterfaces", ({ enumerable: true, get: function () { return extendResolversFromInterfaces_js_1.extendResolversFromInterfaces; } }));
|
|
2032
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
2033
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
2034
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
3933
|
+
tslib_1.__exportStar(__webpack_require__(78931), exports);
|
|
3934
|
+
tslib_1.__exportStar(__webpack_require__(74287), exports);
|
|
3935
|
+
tslib_1.__exportStar(__webpack_require__(48961), exports);
|
|
2035
3936
|
|
|
2036
3937
|
|
|
2037
3938
|
/***/ }),
|
|
2038
3939
|
|
|
2039
|
-
/***/
|
|
3940
|
+
/***/ 78931:
|
|
2040
3941
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2041
3942
|
|
|
2042
3943
|
|
|
2043
3944
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2044
3945
|
exports.makeExecutableSchema = void 0;
|
|
2045
|
-
const graphql_1 = __webpack_require__(
|
|
2046
|
-
const utils_1 = __webpack_require__(
|
|
2047
|
-
const addResolversToSchema_js_1 = __webpack_require__(
|
|
2048
|
-
const assertResolversPresent_js_1 = __webpack_require__(
|
|
2049
|
-
const merge_1 = __webpack_require__(
|
|
3946
|
+
const graphql_1 = __webpack_require__(57343);
|
|
3947
|
+
const utils_1 = __webpack_require__(22371);
|
|
3948
|
+
const addResolversToSchema_js_1 = __webpack_require__(24042);
|
|
3949
|
+
const assertResolversPresent_js_1 = __webpack_require__(41932);
|
|
3950
|
+
const merge_1 = __webpack_require__(51369);
|
|
2050
3951
|
/**
|
|
2051
3952
|
* Builds a schema from the provided type definitions and resolvers.
|
|
2052
3953
|
*
|
|
@@ -2139,15 +4040,15 @@ exports.makeExecutableSchema = makeExecutableSchema;
|
|
|
2139
4040
|
|
|
2140
4041
|
/***/ }),
|
|
2141
4042
|
|
|
2142
|
-
/***/
|
|
4043
|
+
/***/ 48961:
|
|
2143
4044
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2144
4045
|
|
|
2145
4046
|
|
|
2146
4047
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2147
4048
|
exports.mergeSchemas = void 0;
|
|
2148
|
-
const merge_1 = __webpack_require__(
|
|
2149
|
-
const utils_1 = __webpack_require__(
|
|
2150
|
-
const makeExecutableSchema_js_1 = __webpack_require__(
|
|
4049
|
+
const merge_1 = __webpack_require__(51369);
|
|
4050
|
+
const utils_1 = __webpack_require__(22371);
|
|
4051
|
+
const makeExecutableSchema_js_1 = __webpack_require__(78931);
|
|
2151
4052
|
/**
|
|
2152
4053
|
* Synchronously merges multiple schemas, typeDefinitions and/or resolvers into a single schema.
|
|
2153
4054
|
* @param config Configuration object
|
|
@@ -2175,7 +4076,7 @@ exports.mergeSchemas = mergeSchemas;
|
|
|
2175
4076
|
|
|
2176
4077
|
/***/ }),
|
|
2177
4078
|
|
|
2178
|
-
/***/
|
|
4079
|
+
/***/ 74287:
|
|
2179
4080
|
/***/ ((__unused_webpack_module, exports) => {
|
|
2180
4081
|
|
|
2181
4082
|
|
|
@@ -2216,7 +4117,7 @@ exports.isAggregateError = isAggregateError;
|
|
|
2216
4117
|
|
|
2217
4118
|
/***/ }),
|
|
2218
4119
|
|
|
2219
|
-
/***/
|
|
4120
|
+
/***/ 58352:
|
|
2220
4121
|
/***/ ((__unused_webpack_module, exports) => {
|
|
2221
4122
|
|
|
2222
4123
|
|
|
@@ -2254,7 +4155,7 @@ var MapperKind;
|
|
|
2254
4155
|
|
|
2255
4156
|
/***/ }),
|
|
2256
4157
|
|
|
2257
|
-
/***/
|
|
4158
|
+
/***/ 37146:
|
|
2258
4159
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2259
4160
|
|
|
2260
4161
|
|
|
@@ -2287,9 +4188,9 @@ var MapperKind;
|
|
|
2287
4188
|
//
|
|
2288
4189
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2289
4190
|
exports.addTypes = void 0;
|
|
2290
|
-
const graphql_1 = __webpack_require__(
|
|
2291
|
-
const getObjectTypeFromTypeMap_js_1 = __webpack_require__(
|
|
2292
|
-
const rewire_js_1 = __webpack_require__(
|
|
4191
|
+
const graphql_1 = __webpack_require__(57343);
|
|
4192
|
+
const getObjectTypeFromTypeMap_js_1 = __webpack_require__(56365);
|
|
4193
|
+
const rewire_js_1 = __webpack_require__(74545);
|
|
2293
4194
|
function addTypes(schema, newTypesOrDirectives) {
|
|
2294
4195
|
const config = schema.toConfig();
|
|
2295
4196
|
const originalTypeMap = {};
|
|
@@ -2323,14 +4224,14 @@ exports.addTypes = addTypes;
|
|
|
2323
4224
|
|
|
2324
4225
|
/***/ }),
|
|
2325
4226
|
|
|
2326
|
-
/***/
|
|
4227
|
+
/***/ 29969:
|
|
2327
4228
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2328
4229
|
|
|
2329
4230
|
|
|
2330
4231
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2331
4232
|
exports.astFromType = void 0;
|
|
2332
|
-
const graphql_1 = __webpack_require__(
|
|
2333
|
-
const inspect_js_1 = __webpack_require__(
|
|
4233
|
+
const graphql_1 = __webpack_require__(57343);
|
|
4234
|
+
const inspect_js_1 = __webpack_require__(26891);
|
|
2334
4235
|
function astFromType(type) {
|
|
2335
4236
|
if ((0, graphql_1.isNonNullType)(type)) {
|
|
2336
4237
|
const innerType = astFromType(type.ofType);
|
|
@@ -2361,13 +4262,13 @@ exports.astFromType = astFromType;
|
|
|
2361
4262
|
|
|
2362
4263
|
/***/ }),
|
|
2363
4264
|
|
|
2364
|
-
/***/
|
|
4265
|
+
/***/ 59640:
|
|
2365
4266
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2366
4267
|
|
|
2367
4268
|
|
|
2368
4269
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2369
4270
|
exports.astFromValueUntyped = void 0;
|
|
2370
|
-
const graphql_1 = __webpack_require__(
|
|
4271
|
+
const graphql_1 = __webpack_require__(57343);
|
|
2371
4272
|
/**
|
|
2372
4273
|
* Produces a GraphQL Value AST given a JavaScript object.
|
|
2373
4274
|
* Function will match JavaScript/JSON values to GraphQL AST schema format
|
|
@@ -2452,8 +4353,8 @@ const integerStringRegExp = /^-?(?:0|[1-9][0-9]*)$/;
|
|
|
2452
4353
|
|
|
2453
4354
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2454
4355
|
exports.buildOperationNodeForField = void 0;
|
|
2455
|
-
const graphql_1 = __webpack_require__(
|
|
2456
|
-
const rootTypes_js_1 = __webpack_require__(
|
|
4356
|
+
const graphql_1 = __webpack_require__(57343);
|
|
4357
|
+
const rootTypes_js_1 = __webpack_require__(30274);
|
|
2457
4358
|
let operationVariables = [];
|
|
2458
4359
|
let fieldTypeMap = new Map();
|
|
2459
4360
|
function addOperationVariable(variable) {
|
|
@@ -2804,14 +4705,14 @@ function hasCircularRef(types, config = {
|
|
|
2804
4705
|
|
|
2805
4706
|
/***/ }),
|
|
2806
4707
|
|
|
2807
|
-
/***/
|
|
4708
|
+
/***/ 67668:
|
|
2808
4709
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2809
4710
|
|
|
2810
4711
|
|
|
2811
4712
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2812
4713
|
exports.collectSubFields = exports.collectFields = void 0;
|
|
2813
|
-
const memoize_js_1 = __webpack_require__(
|
|
2814
|
-
const graphql_1 = __webpack_require__(
|
|
4714
|
+
const memoize_js_1 = __webpack_require__(41251);
|
|
4715
|
+
const graphql_1 = __webpack_require__(57343);
|
|
2815
4716
|
// Taken from GraphQL-JS v16 for backwards compat
|
|
2816
4717
|
function collectFields(schema, fragments, variableValues, runtimeType, selectionSet, fields, visitedFragmentNames) {
|
|
2817
4718
|
for (const selection of selectionSet.selections) {
|
|
@@ -2909,13 +4810,13 @@ exports.collectSubFields = (0, memoize_js_1.memoize5)(function collectSubFields(
|
|
|
2909
4810
|
|
|
2910
4811
|
/***/ }),
|
|
2911
4812
|
|
|
2912
|
-
/***/
|
|
4813
|
+
/***/ 85376:
|
|
2913
4814
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
2914
4815
|
|
|
2915
4816
|
|
|
2916
4817
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
2917
4818
|
exports.getBlockStringIndentation = exports.dedentBlockStringValue = exports.getLeadingCommentBlock = exports.getComment = exports.getDescription = exports.printWithComments = exports.printComment = exports.pushComment = exports.collectComment = exports.resetComments = void 0;
|
|
2918
|
-
const graphql_1 = __webpack_require__(
|
|
4819
|
+
const graphql_1 = __webpack_require__(57343);
|
|
2919
4820
|
const MAX_LINE_LENGTH = 80;
|
|
2920
4821
|
let commentsRegistry = {};
|
|
2921
4822
|
function resetComments() {
|
|
@@ -3302,7 +5203,7 @@ function isBlank(str) {
|
|
|
3302
5203
|
|
|
3303
5204
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3304
5205
|
exports.relocatedError = exports.createGraphQLError = void 0;
|
|
3305
|
-
const graphql_1 = __webpack_require__(
|
|
5206
|
+
const graphql_1 = __webpack_require__(57343);
|
|
3306
5207
|
function createGraphQLError(message, options) {
|
|
3307
5208
|
if (graphql_1.versionInfo.major >= 17) {
|
|
3308
5209
|
return new graphql_1.GraphQLError(message, options);
|
|
@@ -3325,7 +5226,7 @@ exports.relocatedError = relocatedError;
|
|
|
3325
5226
|
|
|
3326
5227
|
/***/ }),
|
|
3327
5228
|
|
|
3328
|
-
/***/
|
|
5229
|
+
/***/ 25639:
|
|
3329
5230
|
/***/ ((__unused_webpack_module, exports) => {
|
|
3330
5231
|
|
|
3331
5232
|
|
|
@@ -3334,16 +5235,16 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
3334
5235
|
|
|
3335
5236
|
/***/ }),
|
|
3336
5237
|
|
|
3337
|
-
/***/
|
|
5238
|
+
/***/ 56590:
|
|
3338
5239
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3339
5240
|
|
|
3340
5241
|
|
|
3341
5242
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3342
5243
|
exports.modifyObjectFields = exports.selectObjectFields = exports.removeObjectFields = exports.appendObjectFields = void 0;
|
|
3343
|
-
const graphql_1 = __webpack_require__(
|
|
3344
|
-
const Interfaces_js_1 = __webpack_require__(
|
|
3345
|
-
const mapSchema_js_1 = __webpack_require__(
|
|
3346
|
-
const addTypes_js_1 = __webpack_require__(
|
|
5244
|
+
const graphql_1 = __webpack_require__(57343);
|
|
5245
|
+
const Interfaces_js_1 = __webpack_require__(58352);
|
|
5246
|
+
const mapSchema_js_1 = __webpack_require__(11275);
|
|
5247
|
+
const addTypes_js_1 = __webpack_require__(37146);
|
|
3347
5248
|
function appendObjectFields(schema, typeName, additionalFields) {
|
|
3348
5249
|
if (schema.getType(typeName) == null) {
|
|
3349
5250
|
return (0, addTypes_js_1.addTypes)(schema, [
|
|
@@ -3456,15 +5357,15 @@ exports.modifyObjectFields = modifyObjectFields;
|
|
|
3456
5357
|
|
|
3457
5358
|
/***/ }),
|
|
3458
5359
|
|
|
3459
|
-
/***/
|
|
5360
|
+
/***/ 14723:
|
|
3460
5361
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3461
5362
|
|
|
3462
5363
|
|
|
3463
5364
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3464
5365
|
exports.filterSchema = void 0;
|
|
3465
|
-
const graphql_1 = __webpack_require__(
|
|
3466
|
-
const Interfaces_js_1 = __webpack_require__(
|
|
3467
|
-
const mapSchema_js_1 = __webpack_require__(
|
|
5366
|
+
const graphql_1 = __webpack_require__(57343);
|
|
5367
|
+
const Interfaces_js_1 = __webpack_require__(58352);
|
|
5368
|
+
const mapSchema_js_1 = __webpack_require__(11275);
|
|
3468
5369
|
function filterSchema({ schema, typeFilter = () => true, fieldFilter = undefined, rootFieldFilter = undefined, objectFieldFilter = undefined, interfaceFieldFilter = undefined, inputObjectFieldFilter = undefined, argumentFilter = undefined, }) {
|
|
3469
5370
|
const filteredSchema = (0, mapSchema_js_1.mapSchema)(schema, {
|
|
3470
5371
|
[Interfaces_js_1.MapperKind.QUERY]: (type) => filterRootFields(type, 'Query', rootFieldFilter, argumentFilter),
|
|
@@ -3529,14 +5430,14 @@ function filterElementFields(ElementConstructor, type, fieldFilter, argumentFilt
|
|
|
3529
5430
|
|
|
3530
5431
|
/***/ }),
|
|
3531
5432
|
|
|
3532
|
-
/***/
|
|
5433
|
+
/***/ 58373:
|
|
3533
5434
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3534
5435
|
|
|
3535
5436
|
|
|
3536
5437
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3537
5438
|
exports.fixSchemaAst = void 0;
|
|
3538
|
-
const graphql_1 = __webpack_require__(
|
|
3539
|
-
const print_schema_with_directives_js_1 = __webpack_require__(
|
|
5439
|
+
const graphql_1 = __webpack_require__(57343);
|
|
5440
|
+
const print_schema_with_directives_js_1 = __webpack_require__(55943);
|
|
3540
5441
|
function buildFixedSchema(schema, options) {
|
|
3541
5442
|
const document = (0, print_schema_with_directives_js_1.getDocumentNodeFromSchema)(schema);
|
|
3542
5443
|
return (0, graphql_1.buildASTSchema)(document, {
|
|
@@ -3562,13 +5463,13 @@ exports.fixSchemaAst = fixSchemaAst;
|
|
|
3562
5463
|
|
|
3563
5464
|
/***/ }),
|
|
3564
5465
|
|
|
3565
|
-
/***/
|
|
5466
|
+
/***/ 35446:
|
|
3566
5467
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3567
5468
|
|
|
3568
5469
|
|
|
3569
5470
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3570
5471
|
exports.forEachDefaultValue = void 0;
|
|
3571
|
-
const graphql_1 = __webpack_require__(
|
|
5472
|
+
const graphql_1 = __webpack_require__(57343);
|
|
3572
5473
|
function forEachDefaultValue(schema, fn) {
|
|
3573
5474
|
const typeMap = schema.getTypeMap();
|
|
3574
5475
|
for (const typeName in typeMap) {
|
|
@@ -3604,7 +5505,7 @@ exports.forEachDefaultValue = forEachDefaultValue;
|
|
|
3604
5505
|
|
|
3605
5506
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3606
5507
|
exports.forEachField = void 0;
|
|
3607
|
-
const graphql_1 = __webpack_require__(
|
|
5508
|
+
const graphql_1 = __webpack_require__(57343);
|
|
3608
5509
|
function forEachField(schema, fn) {
|
|
3609
5510
|
const typeMap = schema.getTypeMap();
|
|
3610
5511
|
for (const typeName in typeMap) {
|
|
@@ -3624,13 +5525,13 @@ exports.forEachField = forEachField;
|
|
|
3624
5525
|
|
|
3625
5526
|
/***/ }),
|
|
3626
5527
|
|
|
3627
|
-
/***/
|
|
5528
|
+
/***/ 50755:
|
|
3628
5529
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3629
5530
|
|
|
3630
5531
|
|
|
3631
5532
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3632
5533
|
exports.getDirective = exports.getDirectives = exports.getDirectiveInExtensions = exports.getDirectivesInExtensions = void 0;
|
|
3633
|
-
const getArgumentValues_js_1 = __webpack_require__(
|
|
5534
|
+
const getArgumentValues_js_1 = __webpack_require__(17882);
|
|
3634
5535
|
function getDirectivesInExtensions(node, pathToDirectivesInExtensions = ['directives']) {
|
|
3635
5536
|
return pathToDirectivesInExtensions.reduce((acc, pathSegment) => (acc == null ? acc : acc[pathSegment]), node === null || node === void 0 ? void 0 : node.extensions);
|
|
3636
5537
|
}
|
|
@@ -3734,13 +5635,13 @@ exports.getDirective = getDirective;
|
|
|
3734
5635
|
|
|
3735
5636
|
/***/ }),
|
|
3736
5637
|
|
|
3737
|
-
/***/
|
|
5638
|
+
/***/ 46415:
|
|
3738
5639
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3739
5640
|
|
|
3740
5641
|
|
|
3741
5642
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3742
5643
|
exports.getFieldsWithDirectives = void 0;
|
|
3743
|
-
const graphql_1 = __webpack_require__(
|
|
5644
|
+
const graphql_1 = __webpack_require__(57343);
|
|
3744
5645
|
function parseDirectiveValue(value) {
|
|
3745
5646
|
switch (value.kind) {
|
|
3746
5647
|
case graphql_1.Kind.INT:
|
|
@@ -3793,13 +5694,13 @@ exports.getFieldsWithDirectives = getFieldsWithDirectives;
|
|
|
3793
5694
|
|
|
3794
5695
|
/***/ }),
|
|
3795
5696
|
|
|
3796
|
-
/***/
|
|
5697
|
+
/***/ 21281:
|
|
3797
5698
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3798
5699
|
|
|
3799
5700
|
|
|
3800
5701
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3801
5702
|
exports.getImplementingTypes = void 0;
|
|
3802
|
-
const graphql_1 = __webpack_require__(
|
|
5703
|
+
const graphql_1 = __webpack_require__(57343);
|
|
3803
5704
|
function getImplementingTypes(interfaceName, schema) {
|
|
3804
5705
|
const allTypesMap = schema.getTypeMap();
|
|
3805
5706
|
const result = [];
|
|
@@ -3819,15 +5720,15 @@ exports.getImplementingTypes = getImplementingTypes;
|
|
|
3819
5720
|
|
|
3820
5721
|
/***/ }),
|
|
3821
5722
|
|
|
3822
|
-
/***/
|
|
5723
|
+
/***/ 17882:
|
|
3823
5724
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3824
5725
|
|
|
3825
5726
|
|
|
3826
5727
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3827
5728
|
exports.getArgumentValues = void 0;
|
|
3828
|
-
const graphql_1 = __webpack_require__(
|
|
5729
|
+
const graphql_1 = __webpack_require__(57343);
|
|
3829
5730
|
const errors_js_1 = __webpack_require__(4189);
|
|
3830
|
-
const inspect_js_1 = __webpack_require__(
|
|
5731
|
+
const inspect_js_1 = __webpack_require__(26891);
|
|
3831
5732
|
/**
|
|
3832
5733
|
* Prepares an object map of argument values given a list of argument
|
|
3833
5734
|
* definitions and list of argument AST nodes.
|
|
@@ -3902,13 +5803,13 @@ exports.getArgumentValues = getArgumentValues;
|
|
|
3902
5803
|
|
|
3903
5804
|
/***/ }),
|
|
3904
5805
|
|
|
3905
|
-
/***/
|
|
5806
|
+
/***/ 56365:
|
|
3906
5807
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3907
5808
|
|
|
3908
5809
|
|
|
3909
5810
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3910
5811
|
exports.getObjectTypeFromTypeMap = void 0;
|
|
3911
|
-
const graphql_1 = __webpack_require__(
|
|
5812
|
+
const graphql_1 = __webpack_require__(57343);
|
|
3912
5813
|
function getObjectTypeFromTypeMap(typeMap, type) {
|
|
3913
5814
|
if (type) {
|
|
3914
5815
|
const maybeObjectType = typeMap[type.name];
|
|
@@ -3922,14 +5823,14 @@ exports.getObjectTypeFromTypeMap = getObjectTypeFromTypeMap;
|
|
|
3922
5823
|
|
|
3923
5824
|
/***/ }),
|
|
3924
5825
|
|
|
3925
|
-
/***/
|
|
5826
|
+
/***/ 30236:
|
|
3926
5827
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3927
5828
|
|
|
3928
5829
|
|
|
3929
5830
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3930
5831
|
exports.getOperationASTFromRequest = exports.getOperationASTFromDocument = void 0;
|
|
3931
|
-
const graphql_1 = __webpack_require__(
|
|
3932
|
-
const memoize_js_1 = __webpack_require__(
|
|
5832
|
+
const graphql_1 = __webpack_require__(57343);
|
|
5833
|
+
const memoize_js_1 = __webpack_require__(41251);
|
|
3933
5834
|
function getOperationASTFromDocument(documentNode, operationName) {
|
|
3934
5835
|
const doc = (0, graphql_1.getOperationAST)(documentNode, operationName);
|
|
3935
5836
|
if (!doc) {
|
|
@@ -3945,13 +5846,13 @@ exports.getOperationASTFromRequest = (0, memoize_js_1.memoize1)(function getOper
|
|
|
3945
5846
|
|
|
3946
5847
|
/***/ }),
|
|
3947
5848
|
|
|
3948
|
-
/***/
|
|
5849
|
+
/***/ 32681:
|
|
3949
5850
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
3950
5851
|
|
|
3951
5852
|
|
|
3952
5853
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
3953
5854
|
exports.getResolversFromSchema = void 0;
|
|
3954
|
-
const graphql_1 = __webpack_require__(
|
|
5855
|
+
const graphql_1 = __webpack_require__(57343);
|
|
3955
5856
|
function getResolversFromSchema(schema,
|
|
3956
5857
|
// Include default merged resolvers
|
|
3957
5858
|
includeDefaultMergedResolver) {
|
|
@@ -4025,7 +5926,7 @@ exports.getResolversFromSchema = getResolversFromSchema;
|
|
|
4025
5926
|
|
|
4026
5927
|
/***/ }),
|
|
4027
5928
|
|
|
4028
|
-
/***/
|
|
5929
|
+
/***/ 32241:
|
|
4029
5930
|
/***/ ((__unused_webpack_module, exports) => {
|
|
4030
5931
|
|
|
4031
5932
|
|
|
@@ -4044,13 +5945,13 @@ exports.getResponseKeyFromInfo = getResponseKeyFromInfo;
|
|
|
4044
5945
|
|
|
4045
5946
|
/***/ }),
|
|
4046
5947
|
|
|
4047
|
-
/***/
|
|
5948
|
+
/***/ 52043:
|
|
4048
5949
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4049
5950
|
|
|
4050
5951
|
|
|
4051
5952
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4052
5953
|
exports.healTypes = exports.healSchema = void 0;
|
|
4053
|
-
const graphql_1 = __webpack_require__(
|
|
5954
|
+
const graphql_1 = __webpack_require__(57343);
|
|
4054
5955
|
// Update any references to named schema types that disagree with the named
|
|
4055
5956
|
// types found in schema.getTypeMap().
|
|
4056
5957
|
//
|
|
@@ -4228,13 +6129,13 @@ exports.healTypes = healTypes;
|
|
|
4228
6129
|
|
|
4229
6130
|
/***/ }),
|
|
4230
6131
|
|
|
4231
|
-
/***/
|
|
6132
|
+
/***/ 62971:
|
|
4232
6133
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4233
6134
|
|
|
4234
6135
|
|
|
4235
6136
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4236
6137
|
exports.assertSome = exports.isSome = exports.compareNodes = exports.nodeToString = exports.compareStrings = exports.isValidPath = exports.isDocumentString = exports.asArray = void 0;
|
|
4237
|
-
const graphql_1 = __webpack_require__(
|
|
6138
|
+
const graphql_1 = __webpack_require__(57343);
|
|
4238
6139
|
const asArray = (fns) => (Array.isArray(fns) ? fns : fns ? [fns] : []);
|
|
4239
6140
|
exports.asArray = asArray;
|
|
4240
6141
|
const invalidDocRegex = /\.[a-z0-9]+$/i;
|
|
@@ -4311,13 +6212,13 @@ exports.assertSome = assertSome;
|
|
|
4311
6212
|
|
|
4312
6213
|
/***/ }),
|
|
4313
6214
|
|
|
4314
|
-
/***/
|
|
6215
|
+
/***/ 87325:
|
|
4315
6216
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4316
6217
|
|
|
4317
6218
|
|
|
4318
6219
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4319
6220
|
exports.implementsAbstractType = void 0;
|
|
4320
|
-
const graphql_1 = __webpack_require__(
|
|
6221
|
+
const graphql_1 = __webpack_require__(57343);
|
|
4321
6222
|
function implementsAbstractType(schema, typeA, typeB) {
|
|
4322
6223
|
if (typeB == null || typeA == null) {
|
|
4323
6224
|
return false;
|
|
@@ -4335,67 +6236,67 @@ exports.implementsAbstractType = implementsAbstractType;
|
|
|
4335
6236
|
|
|
4336
6237
|
/***/ }),
|
|
4337
6238
|
|
|
4338
|
-
/***/
|
|
6239
|
+
/***/ 22371:
|
|
4339
6240
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4340
6241
|
|
|
4341
6242
|
|
|
4342
6243
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4343
|
-
const tslib_1 = __webpack_require__(
|
|
4344
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4345
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4346
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4347
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4348
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4349
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4350
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4351
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4352
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4353
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
6244
|
+
const tslib_1 = __webpack_require__(40752);
|
|
6245
|
+
tslib_1.__exportStar(__webpack_require__(89636), exports);
|
|
6246
|
+
tslib_1.__exportStar(__webpack_require__(62971), exports);
|
|
6247
|
+
tslib_1.__exportStar(__webpack_require__(50755), exports);
|
|
6248
|
+
tslib_1.__exportStar(__webpack_require__(46415), exports);
|
|
6249
|
+
tslib_1.__exportStar(__webpack_require__(21281), exports);
|
|
6250
|
+
tslib_1.__exportStar(__webpack_require__(55943), exports);
|
|
6251
|
+
tslib_1.__exportStar(__webpack_require__(46415), exports);
|
|
6252
|
+
tslib_1.__exportStar(__webpack_require__(85779), exports);
|
|
6253
|
+
tslib_1.__exportStar(__webpack_require__(72811), exports);
|
|
6254
|
+
tslib_1.__exportStar(__webpack_require__(86354), exports);
|
|
4354
6255
|
tslib_1.__exportStar(__webpack_require__(3079), exports);
|
|
4355
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4356
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4357
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4358
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
6256
|
+
tslib_1.__exportStar(__webpack_require__(75606), exports);
|
|
6257
|
+
tslib_1.__exportStar(__webpack_require__(14723), exports);
|
|
6258
|
+
tslib_1.__exportStar(__webpack_require__(52043), exports);
|
|
6259
|
+
tslib_1.__exportStar(__webpack_require__(32681), exports);
|
|
4359
6260
|
tslib_1.__exportStar(__webpack_require__(7291), exports);
|
|
4360
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4361
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4362
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4363
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4364
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
6261
|
+
tslib_1.__exportStar(__webpack_require__(35446), exports);
|
|
6262
|
+
tslib_1.__exportStar(__webpack_require__(11275), exports);
|
|
6263
|
+
tslib_1.__exportStar(__webpack_require__(37146), exports);
|
|
6264
|
+
tslib_1.__exportStar(__webpack_require__(74545), exports);
|
|
6265
|
+
tslib_1.__exportStar(__webpack_require__(98852), exports);
|
|
4365
6266
|
tslib_1.__exportStar(__webpack_require__(1472), exports);
|
|
4366
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
6267
|
+
tslib_1.__exportStar(__webpack_require__(58352), exports);
|
|
4367
6268
|
tslib_1.__exportStar(__webpack_require__(1242), exports);
|
|
4368
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4369
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4370
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4371
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4372
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4373
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4374
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4375
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
6269
|
+
tslib_1.__exportStar(__webpack_require__(84679), exports);
|
|
6270
|
+
tslib_1.__exportStar(__webpack_require__(32241), exports);
|
|
6271
|
+
tslib_1.__exportStar(__webpack_require__(56590), exports);
|
|
6272
|
+
tslib_1.__exportStar(__webpack_require__(71174), exports);
|
|
6273
|
+
tslib_1.__exportStar(__webpack_require__(88305), exports);
|
|
6274
|
+
tslib_1.__exportStar(__webpack_require__(78964), exports);
|
|
6275
|
+
tslib_1.__exportStar(__webpack_require__(77717), exports);
|
|
6276
|
+
tslib_1.__exportStar(__webpack_require__(87325), exports);
|
|
4376
6277
|
tslib_1.__exportStar(__webpack_require__(4189), exports);
|
|
4377
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
6278
|
+
tslib_1.__exportStar(__webpack_require__(10236), exports);
|
|
4378
6279
|
tslib_1.__exportStar(__webpack_require__(7141), exports);
|
|
4379
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4380
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4381
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4382
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4383
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4384
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
6280
|
+
tslib_1.__exportStar(__webpack_require__(17882), exports);
|
|
6281
|
+
tslib_1.__exportStar(__webpack_require__(60674), exports);
|
|
6282
|
+
tslib_1.__exportStar(__webpack_require__(26192), exports);
|
|
6283
|
+
tslib_1.__exportStar(__webpack_require__(49384), exports);
|
|
6284
|
+
tslib_1.__exportStar(__webpack_require__(59640), exports);
|
|
6285
|
+
tslib_1.__exportStar(__webpack_require__(25639), exports);
|
|
4385
6286
|
tslib_1.__exportStar(__webpack_require__(4608), exports);
|
|
4386
6287
|
tslib_1.__exportStar(__webpack_require__(4840), exports);
|
|
4387
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4388
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4389
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4390
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4391
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4392
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
4393
|
-
tslib_1.__exportStar(__webpack_require__(
|
|
6288
|
+
tslib_1.__exportStar(__webpack_require__(30274), exports);
|
|
6289
|
+
tslib_1.__exportStar(__webpack_require__(85376), exports);
|
|
6290
|
+
tslib_1.__exportStar(__webpack_require__(67668), exports);
|
|
6291
|
+
tslib_1.__exportStar(__webpack_require__(26891), exports);
|
|
6292
|
+
tslib_1.__exportStar(__webpack_require__(41251), exports);
|
|
6293
|
+
tslib_1.__exportStar(__webpack_require__(58373), exports);
|
|
6294
|
+
tslib_1.__exportStar(__webpack_require__(30236), exports);
|
|
4394
6295
|
|
|
4395
6296
|
|
|
4396
6297
|
/***/ }),
|
|
4397
6298
|
|
|
4398
|
-
/***/
|
|
6299
|
+
/***/ 26891:
|
|
4399
6300
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4400
6301
|
|
|
4401
6302
|
|
|
@@ -4403,7 +6304,7 @@ tslib_1.__exportStar(__webpack_require__(3724), exports);
|
|
|
4403
6304
|
// https://github.com/graphql/graphql-js/blob/main/src/jsutils/inspect.ts
|
|
4404
6305
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4405
6306
|
exports.inspect = void 0;
|
|
4406
|
-
const graphql_1 = __webpack_require__(
|
|
6307
|
+
const graphql_1 = __webpack_require__(57343);
|
|
4407
6308
|
const AggregateError_js_1 = __webpack_require__(4840);
|
|
4408
6309
|
const MAX_RECURSIVE_DEPTH = 3;
|
|
4409
6310
|
/**
|
|
@@ -4509,7 +6410,7 @@ function getObjectTag(object) {
|
|
|
4509
6410
|
|
|
4510
6411
|
/***/ }),
|
|
4511
6412
|
|
|
4512
|
-
/***/
|
|
6413
|
+
/***/ 26192:
|
|
4513
6414
|
/***/ ((__unused_webpack_module, exports) => {
|
|
4514
6415
|
|
|
4515
6416
|
|
|
@@ -4526,13 +6427,13 @@ exports.isAsyncIterable = isAsyncIterable;
|
|
|
4526
6427
|
|
|
4527
6428
|
/***/ }),
|
|
4528
6429
|
|
|
4529
|
-
/***/
|
|
6430
|
+
/***/ 49384:
|
|
4530
6431
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4531
6432
|
|
|
4532
6433
|
|
|
4533
6434
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4534
6435
|
exports.isDocumentNode = void 0;
|
|
4535
|
-
const graphql_1 = __webpack_require__(
|
|
6436
|
+
const graphql_1 = __webpack_require__(57343);
|
|
4536
6437
|
function isDocumentNode(object) {
|
|
4537
6438
|
return object && typeof object === 'object' && 'kind' in object && object.kind === graphql_1.Kind.DOCUMENT;
|
|
4538
6439
|
}
|
|
@@ -4541,7 +6442,7 @@ exports.isDocumentNode = isDocumentNode;
|
|
|
4541
6442
|
|
|
4542
6443
|
/***/ }),
|
|
4543
6444
|
|
|
4544
|
-
/***/
|
|
6445
|
+
/***/ 89636:
|
|
4545
6446
|
/***/ ((__unused_webpack_module, exports) => {
|
|
4546
6447
|
|
|
4547
6448
|
|
|
@@ -4550,7 +6451,7 @@ Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
|
4550
6451
|
|
|
4551
6452
|
/***/ }),
|
|
4552
6453
|
|
|
4553
|
-
/***/
|
|
6454
|
+
/***/ 78964:
|
|
4554
6455
|
/***/ ((__unused_webpack_module, exports) => {
|
|
4555
6456
|
|
|
4556
6457
|
|
|
@@ -4610,17 +6511,17 @@ function iteratorResult(value) {
|
|
|
4610
6511
|
|
|
4611
6512
|
/***/ }),
|
|
4612
6513
|
|
|
4613
|
-
/***/
|
|
6514
|
+
/***/ 11275:
|
|
4614
6515
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
4615
6516
|
|
|
4616
6517
|
|
|
4617
6518
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
4618
6519
|
exports.correctASTNodes = exports.mapSchema = void 0;
|
|
4619
|
-
const graphql_1 = __webpack_require__(
|
|
4620
|
-
const getObjectTypeFromTypeMap_js_1 = __webpack_require__(
|
|
4621
|
-
const Interfaces_js_1 = __webpack_require__(
|
|
4622
|
-
const rewire_js_1 = __webpack_require__(
|
|
4623
|
-
const transformInputValue_js_1 = __webpack_require__(
|
|
6520
|
+
const graphql_1 = __webpack_require__(57343);
|
|
6521
|
+
const getObjectTypeFromTypeMap_js_1 = __webpack_require__(56365);
|
|
6522
|
+
const Interfaces_js_1 = __webpack_require__(58352);
|
|
6523
|
+
const rewire_js_1 = __webpack_require__(74545);
|
|
6524
|
+
const transformInputValue_js_1 = __webpack_require__(88305);
|
|
4624
6525
|
function mapSchema(schema, schemaMapper = {}) {
|
|
4625
6526
|
const newTypeMap = mapArguments(mapFields(mapTypes(mapDefaultValues(mapEnumValues(mapTypes(mapDefaultValues(schema.getTypeMap(), schema, transformInputValue_js_1.serializeInputValue), schema, schemaMapper, type => (0, graphql_1.isLeafType)(type)), schema, schemaMapper), schema, transformInputValue_js_1.parseInputValue), schema, schemaMapper, type => !(0, graphql_1.isLeafType)(type)), schema, schemaMapper), schema, schemaMapper);
|
|
4626
6527
|
const originalDirectives = schema.getDirectives();
|
|
@@ -5087,7 +6988,7 @@ exports.correctASTNodes = correctASTNodes;
|
|
|
5087
6988
|
|
|
5088
6989
|
/***/ }),
|
|
5089
6990
|
|
|
5090
|
-
/***/
|
|
6991
|
+
/***/ 41251:
|
|
5091
6992
|
/***/ ((__unused_webpack_module, exports) => {
|
|
5092
6993
|
|
|
5093
6994
|
|
|
@@ -5289,7 +7190,7 @@ exports.memoize2of4 = memoize2of4;
|
|
|
5289
7190
|
|
|
5290
7191
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5291
7192
|
exports.mergeDeep = void 0;
|
|
5292
|
-
const helpers_js_1 = __webpack_require__(
|
|
7193
|
+
const helpers_js_1 = __webpack_require__(62971);
|
|
5293
7194
|
function mergeDeep(sources, respectPrototype = false) {
|
|
5294
7195
|
const target = sources[0] || {};
|
|
5295
7196
|
const output = {};
|
|
@@ -5335,7 +7236,7 @@ function isObject(item) {
|
|
|
5335
7236
|
|
|
5336
7237
|
/***/ }),
|
|
5337
7238
|
|
|
5338
|
-
/***/
|
|
7239
|
+
/***/ 10236:
|
|
5339
7240
|
/***/ ((__unused_webpack_module, exports) => {
|
|
5340
7241
|
|
|
5341
7242
|
|
|
@@ -5427,13 +7328,13 @@ exports.observableToAsyncIterable = observableToAsyncIterable;
|
|
|
5427
7328
|
|
|
5428
7329
|
/***/ }),
|
|
5429
7330
|
|
|
5430
|
-
/***/
|
|
7331
|
+
/***/ 72811:
|
|
5431
7332
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5432
7333
|
|
|
5433
7334
|
|
|
5434
7335
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5435
7336
|
exports.parseGraphQLJSON = void 0;
|
|
5436
|
-
const graphql_1 = __webpack_require__(
|
|
7337
|
+
const graphql_1 = __webpack_require__(57343);
|
|
5437
7338
|
function stripBOM(content) {
|
|
5438
7339
|
content = content.toString();
|
|
5439
7340
|
// Remove byte order marker. This catches EF BB BF (the UTF-8 BOM)
|
|
@@ -5478,14 +7379,14 @@ exports.parseGraphQLJSON = parseGraphQLJSON;
|
|
|
5478
7379
|
|
|
5479
7380
|
/***/ }),
|
|
5480
7381
|
|
|
5481
|
-
/***/
|
|
7382
|
+
/***/ 86354:
|
|
5482
7383
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5483
7384
|
|
|
5484
7385
|
|
|
5485
7386
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5486
7387
|
exports.isDescribable = exports.transformCommentsToDescriptions = exports.parseGraphQLSDL = void 0;
|
|
5487
|
-
const graphql_1 = __webpack_require__(
|
|
5488
|
-
const comments_js_1 = __webpack_require__(
|
|
7388
|
+
const graphql_1 = __webpack_require__(57343);
|
|
7389
|
+
const comments_js_1 = __webpack_require__(85376);
|
|
5489
7390
|
function parseGraphQLSDL(location, rawSDL, options = {}) {
|
|
5490
7391
|
let document;
|
|
5491
7392
|
try {
|
|
@@ -5569,18 +7470,18 @@ exports.isDescribable = isDescribable;
|
|
|
5569
7470
|
|
|
5570
7471
|
/***/ }),
|
|
5571
7472
|
|
|
5572
|
-
/***/
|
|
7473
|
+
/***/ 55943:
|
|
5573
7474
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
5574
7475
|
|
|
5575
7476
|
|
|
5576
7477
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
5577
7478
|
exports.makeDirectiveNodes = exports.makeDirectiveNode = exports.makeDeprecatedDirective = exports.astFromEnumValue = exports.astFromInputField = exports.astFromField = exports.astFromScalarType = exports.astFromEnumType = exports.astFromInputObjectType = exports.astFromUnionType = exports.astFromInterfaceType = exports.astFromObjectType = exports.astFromArg = exports.getDeprecatableDirectiveNodes = exports.getDirectiveNodes = exports.astFromDirective = exports.astFromSchema = exports.printSchemaWithDirectives = exports.getDocumentNodeFromSchema = void 0;
|
|
5578
|
-
const graphql_1 = __webpack_require__(
|
|
5579
|
-
const astFromType_js_1 = __webpack_require__(
|
|
5580
|
-
const get_directives_js_1 = __webpack_require__(
|
|
5581
|
-
const astFromValueUntyped_js_1 = __webpack_require__(
|
|
5582
|
-
const helpers_js_1 = __webpack_require__(
|
|
5583
|
-
const rootTypes_js_1 = __webpack_require__(
|
|
7479
|
+
const graphql_1 = __webpack_require__(57343);
|
|
7480
|
+
const astFromType_js_1 = __webpack_require__(29969);
|
|
7481
|
+
const get_directives_js_1 = __webpack_require__(50755);
|
|
7482
|
+
const astFromValueUntyped_js_1 = __webpack_require__(59640);
|
|
7483
|
+
const helpers_js_1 = __webpack_require__(62971);
|
|
7484
|
+
const rootTypes_js_1 = __webpack_require__(30274);
|
|
5584
7485
|
function getDocumentNodeFromSchema(schema, options = {}) {
|
|
5585
7486
|
const pathToDirectivesInExtensions = options.pathToDirectivesInExtensions;
|
|
5586
7487
|
const typesMap = schema.getTypeMap();
|
|
@@ -6070,17 +7971,17 @@ exports.makeDirectiveNodes = makeDirectiveNodes;
|
|
|
6070
7971
|
|
|
6071
7972
|
/***/ }),
|
|
6072
7973
|
|
|
6073
|
-
/***/
|
|
7974
|
+
/***/ 98852:
|
|
6074
7975
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6075
7976
|
|
|
6076
7977
|
|
|
6077
7978
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6078
7979
|
exports.pruneSchema = void 0;
|
|
6079
|
-
const graphql_1 = __webpack_require__(
|
|
6080
|
-
const mapSchema_js_1 = __webpack_require__(
|
|
6081
|
-
const Interfaces_js_1 = __webpack_require__(
|
|
6082
|
-
const rootTypes_js_1 = __webpack_require__(
|
|
6083
|
-
const get_implementing_types_js_1 = __webpack_require__(
|
|
7980
|
+
const graphql_1 = __webpack_require__(57343);
|
|
7981
|
+
const mapSchema_js_1 = __webpack_require__(11275);
|
|
7982
|
+
const Interfaces_js_1 = __webpack_require__(58352);
|
|
7983
|
+
const rootTypes_js_1 = __webpack_require__(30274);
|
|
7984
|
+
const get_implementing_types_js_1 = __webpack_require__(21281);
|
|
6084
7985
|
/**
|
|
6085
7986
|
* Prunes the provided schema, removing unused and empty types
|
|
6086
7987
|
* @param schema The schema to prune
|
|
@@ -6210,13 +8111,13 @@ function visitQueue(queue, schema, visited = new Set()) {
|
|
|
6210
8111
|
|
|
6211
8112
|
/***/ }),
|
|
6212
8113
|
|
|
6213
|
-
/***/
|
|
8114
|
+
/***/ 71174:
|
|
6214
8115
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6215
8116
|
|
|
6216
8117
|
|
|
6217
8118
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6218
8119
|
exports.renameType = void 0;
|
|
6219
|
-
const graphql_1 = __webpack_require__(
|
|
8120
|
+
const graphql_1 = __webpack_require__(57343);
|
|
6220
8121
|
function renameType(type, newTypeName) {
|
|
6221
8122
|
if ((0, graphql_1.isObjectType)(type)) {
|
|
6222
8123
|
return new graphql_1.GraphQLObjectType({
|
|
@@ -6369,13 +8270,13 @@ exports.renameType = renameType;
|
|
|
6369
8270
|
|
|
6370
8271
|
/***/ }),
|
|
6371
8272
|
|
|
6372
|
-
/***/
|
|
8273
|
+
/***/ 74545:
|
|
6373
8274
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6374
8275
|
|
|
6375
8276
|
|
|
6376
8277
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6377
8278
|
exports.rewireTypes = void 0;
|
|
6378
|
-
const graphql_1 = __webpack_require__(
|
|
8279
|
+
const graphql_1 = __webpack_require__(57343);
|
|
6379
8280
|
const stub_js_1 = __webpack_require__(1242);
|
|
6380
8281
|
function rewireTypes(originalTypeMap, directives) {
|
|
6381
8282
|
const referenceTypeMap = Object.create(null);
|
|
@@ -6535,13 +8436,13 @@ exports.rewireTypes = rewireTypes;
|
|
|
6535
8436
|
|
|
6536
8437
|
/***/ }),
|
|
6537
8438
|
|
|
6538
|
-
/***/
|
|
8439
|
+
/***/ 30274:
|
|
6539
8440
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6540
8441
|
|
|
6541
8442
|
|
|
6542
8443
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6543
8444
|
exports.getRootTypeMap = exports.getRootTypes = exports.getRootTypeNames = exports.getDefinedRootType = void 0;
|
|
6544
|
-
const memoize_js_1 = __webpack_require__(
|
|
8445
|
+
const memoize_js_1 = __webpack_require__(41251);
|
|
6545
8446
|
function getDefinedRootType(schema, operation) {
|
|
6546
8447
|
const rootTypeMap = (0, exports.getRootTypeMap)(schema);
|
|
6547
8448
|
const rootType = rootTypeMap.get(operation);
|
|
@@ -6579,13 +8480,13 @@ exports.getRootTypeMap = (0, memoize_js_1.memoize1)(function getRootTypeMap(sche
|
|
|
6579
8480
|
|
|
6580
8481
|
/***/ }),
|
|
6581
8482
|
|
|
6582
|
-
/***/
|
|
8483
|
+
/***/ 84679:
|
|
6583
8484
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6584
8485
|
|
|
6585
8486
|
|
|
6586
8487
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6587
8488
|
exports.parseSelectionSet = void 0;
|
|
6588
|
-
const graphql_1 = __webpack_require__(
|
|
8489
|
+
const graphql_1 = __webpack_require__(57343);
|
|
6589
8490
|
function parseSelectionSet(selectionSet, options) {
|
|
6590
8491
|
const query = (0, graphql_1.parse)(selectionSet, options).definitions[0];
|
|
6591
8492
|
return query.selectionSet;
|
|
@@ -6601,7 +8502,7 @@ exports.parseSelectionSet = parseSelectionSet;
|
|
|
6601
8502
|
|
|
6602
8503
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6603
8504
|
exports.getBuiltInForStub = exports.isNamedStub = exports.createStub = exports.createNamedStub = void 0;
|
|
6604
|
-
const graphql_1 = __webpack_require__(
|
|
8505
|
+
const graphql_1 = __webpack_require__(57343);
|
|
6605
8506
|
function createNamedStub(name, type) {
|
|
6606
8507
|
let constructor;
|
|
6607
8508
|
if (type === 'object') {
|
|
@@ -6670,13 +8571,13 @@ exports.getBuiltInForStub = getBuiltInForStub;
|
|
|
6670
8571
|
|
|
6671
8572
|
/***/ }),
|
|
6672
8573
|
|
|
6673
|
-
/***/
|
|
8574
|
+
/***/ 88305:
|
|
6674
8575
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6675
8576
|
|
|
6676
8577
|
|
|
6677
8578
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6678
8579
|
exports.parseInputValueLiteral = exports.parseInputValue = exports.serializeInputValue = exports.transformInputValue = void 0;
|
|
6679
|
-
const graphql_1 = __webpack_require__(
|
|
8580
|
+
const graphql_1 = __webpack_require__(57343);
|
|
6680
8581
|
function transformInputValue(type, value, inputLeafValueTransformer = null, inputObjectValueTransformer = null) {
|
|
6681
8582
|
if (value == null) {
|
|
6682
8583
|
return value;
|
|
@@ -6732,7 +8633,7 @@ exports.parseInputValueLiteral = parseInputValueLiteral;
|
|
|
6732
8633
|
|
|
6733
8634
|
/***/ }),
|
|
6734
8635
|
|
|
6735
|
-
/***/
|
|
8636
|
+
/***/ 75606:
|
|
6736
8637
|
/***/ ((__unused_webpack_module, exports) => {
|
|
6737
8638
|
|
|
6738
8639
|
|
|
@@ -6766,14 +8667,14 @@ var DirectiveLocation;
|
|
|
6766
8667
|
|
|
6767
8668
|
/***/ }),
|
|
6768
8669
|
|
|
6769
|
-
/***/
|
|
8670
|
+
/***/ 77717:
|
|
6770
8671
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6771
8672
|
|
|
6772
8673
|
|
|
6773
8674
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6774
8675
|
exports.createVariableNameGenerator = exports.updateArgument = void 0;
|
|
6775
|
-
const graphql_1 = __webpack_require__(
|
|
6776
|
-
const astFromType_js_1 = __webpack_require__(
|
|
8676
|
+
const graphql_1 = __webpack_require__(57343);
|
|
8677
|
+
const astFromType_js_1 = __webpack_require__(29969);
|
|
6777
8678
|
function updateArgument(argumentNodes, variableDefinitionsMap, variableValues, argName, varName, type, value) {
|
|
6778
8679
|
argumentNodes[argName] = {
|
|
6779
8680
|
kind: graphql_1.Kind.ARGUMENT,
|
|
@@ -6827,13 +8728,13 @@ exports.createVariableNameGenerator = createVariableNameGenerator;
|
|
|
6827
8728
|
|
|
6828
8729
|
/***/ }),
|
|
6829
8730
|
|
|
6830
|
-
/***/
|
|
8731
|
+
/***/ 85779:
|
|
6831
8732
|
/***/ ((__unused_webpack_module, exports, __webpack_require__) => {
|
|
6832
8733
|
|
|
6833
8734
|
|
|
6834
8735
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6835
8736
|
exports.createDefaultRules = exports.checkValidationErrors = exports.validateGraphQlDocuments = void 0;
|
|
6836
|
-
const graphql_1 = __webpack_require__(
|
|
8737
|
+
const graphql_1 = __webpack_require__(57343);
|
|
6837
8738
|
const AggregateError_js_1 = __webpack_require__(4840);
|
|
6838
8739
|
async function validateGraphQlDocuments(schema, documentFiles, effectiveRules = createDefaultRules()) {
|
|
6839
8740
|
const allFragmentMap = new Map();
|
|
@@ -6910,7 +8811,7 @@ exports.createDefaultRules = createDefaultRules;
|
|
|
6910
8811
|
|
|
6911
8812
|
/***/ }),
|
|
6912
8813
|
|
|
6913
|
-
/***/
|
|
8814
|
+
/***/ 60674:
|
|
6914
8815
|
/***/ ((__unused_webpack_module, exports) => {
|
|
6915
8816
|
|
|
6916
8817
|
|
|
@@ -6944,9 +8845,9 @@ exports.valueMatchesCriteria = valueMatchesCriteria;
|
|
|
6944
8845
|
|
|
6945
8846
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
6946
8847
|
exports.visitResult = exports.visitErrors = exports.visitData = void 0;
|
|
6947
|
-
const getOperationASTFromRequest_js_1 = __webpack_require__(
|
|
6948
|
-
const graphql_1 = __webpack_require__(
|
|
6949
|
-
const collectFields_js_1 = __webpack_require__(
|
|
8848
|
+
const getOperationASTFromRequest_js_1 = __webpack_require__(30236);
|
|
8849
|
+
const graphql_1 = __webpack_require__(57343);
|
|
8850
|
+
const collectFields_js_1 = __webpack_require__(67668);
|
|
6950
8851
|
function visitData(data, enter, leave) {
|
|
6951
8852
|
if (Array.isArray(data)) {
|
|
6952
8853
|
return data.map(value => visitData(value, enter, leave));
|
|
@@ -7180,7 +9081,7 @@ function addPathSegmentInfo(type, fieldName, pathIndex, errors = [], errorInfo)
|
|
|
7180
9081
|
|
|
7181
9082
|
Object.defineProperty(exports, "__esModule", ({ value: true }));
|
|
7182
9083
|
exports.withCancel = exports.getAsyncIterableWithCancel = exports.getAsyncIteratorWithCancel = void 0;
|
|
7183
|
-
const memoize_js_1 = __webpack_require__(
|
|
9084
|
+
const memoize_js_1 = __webpack_require__(41251);
|
|
7184
9085
|
async function defaultAsyncIteratorReturn(value) {
|
|
7185
9086
|
return { value, done: true };
|
|
7186
9087
|
}
|