@salesforce/lds-worker-api 1.114.4 → 1.114.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/sfdc/es/executeAdapter.d.ts +14 -2
- package/dist/sfdc/es/ldsWorkerApi.js +13 -9
- package/dist/standalone/es/executeAdapter.d.ts +14 -2
- package/dist/standalone/es/lds-worker-api.js +411 -2958
- package/dist/standalone/umd/executeAdapter.d.ts +14 -2
- package/dist/standalone/umd/lds-worker-api.js +411 -2958
- package/package.json +1 -1
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/graphql-get-errors.adapter-testcase.json +23 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/serverresponse/graphql-get-errors.server-response.network-mock.json +19 -0
- package/src/__tests__/data-driven-tests/fixtures/adapter-testcases/graphQL/snapshotdata/graphql-get-errors.adapter-snapshot.result.json +16 -0
|
@@ -3649,7 +3649,7 @@ class Luvio {
|
|
|
3649
3649
|
return this.environment.buildStructuredKey(namespace, representationName, idValues);
|
|
3650
3650
|
}
|
|
3651
3651
|
}
|
|
3652
|
-
// engine version: 0.137.
|
|
3652
|
+
// engine version: 0.137.4-ec6f5c6d
|
|
3653
3653
|
|
|
3654
3654
|
/**
|
|
3655
3655
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -3776,7 +3776,7 @@ function withDefaultLuvio(callback) {
|
|
|
3776
3776
|
}
|
|
3777
3777
|
callbacks.push(callback);
|
|
3778
3778
|
}
|
|
3779
|
-
// version: 1.114.
|
|
3779
|
+
// version: 1.114.6-435b32f3e
|
|
3780
3780
|
|
|
3781
3781
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3782
3782
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15200,7 +15200,7 @@ function parseAndVisit(source) {
|
|
|
15200
15200
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15201
15201
|
return luvioDocumentNode;
|
|
15202
15202
|
}
|
|
15203
|
-
// version: 1.114.
|
|
15203
|
+
// version: 1.114.6-435b32f3e
|
|
15204
15204
|
|
|
15205
15205
|
function unwrap(data) {
|
|
15206
15206
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16113,7 +16113,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16113
16113
|
const { apiFamily, name } = metadata;
|
|
16114
16114
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16115
16115
|
}
|
|
16116
|
-
// version: 1.114.
|
|
16116
|
+
// version: 1.114.6-435b32f3e
|
|
16117
16117
|
|
|
16118
16118
|
/**
|
|
16119
16119
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16196,7 +16196,7 @@ var FragmentReadResultState;
|
|
|
16196
16196
|
({
|
|
16197
16197
|
state: FragmentReadResultState.Missing,
|
|
16198
16198
|
});
|
|
16199
|
-
// engine version: 0.137.
|
|
16199
|
+
// engine version: 0.137.4-ec6f5c6d
|
|
16200
16200
|
|
|
16201
16201
|
const { keys: ObjectKeys$3, freeze: ObjectFreeze$3, create: ObjectCreate$3 } = Object;
|
|
16202
16202
|
|
|
@@ -44347,7 +44347,7 @@ withDefaultLuvio((luvio) => {
|
|
|
44347
44347
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
44348
44348
|
});
|
|
44349
44349
|
});
|
|
44350
|
-
// version: 1.114.
|
|
44350
|
+
// version: 1.114.6-f2429e60e
|
|
44351
44351
|
|
|
44352
44352
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
44353
44353
|
|
|
@@ -49568,11 +49568,11 @@ class DurableDraftQueue {
|
|
|
49568
49568
|
mergeActions(targetActionId, sourceActionId) {
|
|
49569
49569
|
// ids must be unique
|
|
49570
49570
|
if (targetActionId === sourceActionId) {
|
|
49571
|
-
return Promise.reject(new Error('
|
|
49571
|
+
return Promise.reject(new Error('targetActionId and sourceActionId cannot be the same.'));
|
|
49572
49572
|
}
|
|
49573
49573
|
// cannot have a replace action already in progress
|
|
49574
49574
|
if (this.replacingAction !== undefined) {
|
|
49575
|
-
return Promise.reject(new Error('Cannot
|
|
49575
|
+
return Promise.reject(new Error('Cannot merge actions while a replace/merge action operation is in progress.'));
|
|
49576
49576
|
}
|
|
49577
49577
|
this.stopQueueManually();
|
|
49578
49578
|
const promise = this.getQueueActions().then(async (actions) => {
|
|
@@ -49580,13 +49580,13 @@ class DurableDraftQueue {
|
|
|
49580
49580
|
if (target === undefined) {
|
|
49581
49581
|
this.replacingAction = undefined;
|
|
49582
49582
|
await this.startQueueSafe();
|
|
49583
|
-
throw Error('
|
|
49583
|
+
throw Error('targetActionId not found in the draft queue.');
|
|
49584
49584
|
}
|
|
49585
49585
|
const source = actions.find((action) => action.id === sourceActionId);
|
|
49586
49586
|
if (source === undefined) {
|
|
49587
49587
|
this.replacingAction = undefined;
|
|
49588
49588
|
await this.startQueueSafe();
|
|
49589
|
-
throw Error('
|
|
49589
|
+
throw Error('sourceActionId not found in the draft queue.');
|
|
49590
49590
|
}
|
|
49591
49591
|
// put in a try/finally block so we don't leave this.replacingAction
|
|
49592
49592
|
// indefinitely set
|
|
@@ -55934,28 +55934,28 @@ class UiApiActionHandler extends AbstractResourceRequestActionHandler {
|
|
|
55934
55934
|
const { method: sourceMethod, body: sourceBody } = sourceData;
|
|
55935
55935
|
// pre-requisites
|
|
55936
55936
|
if (targetCacheKey !== sourceCacheKey) {
|
|
55937
|
-
throw Error('Cannot merge actions for different targetIds');
|
|
55937
|
+
throw Error('Cannot merge actions for different targetIds.');
|
|
55938
55938
|
}
|
|
55939
55939
|
if (targetTag !== sourceTag) {
|
|
55940
|
-
throw Error('Cannot merge actions for different tags');
|
|
55940
|
+
throw Error('Cannot merge actions for different tags.');
|
|
55941
55941
|
}
|
|
55942
55942
|
if (targetStatus === DraftActionStatus.Completed ||
|
|
55943
55943
|
targetStatus === DraftActionStatus.Uploading) {
|
|
55944
|
-
throw Error(`
|
|
55944
|
+
throw Error(`Cannot merge actions when targetAction is in ${targetStatus} status.`);
|
|
55945
55945
|
}
|
|
55946
55946
|
if (sourceStatus === DraftActionStatus.Completed ||
|
|
55947
55947
|
sourceStatus === DraftActionStatus.Uploading) {
|
|
55948
|
-
throw Error(`
|
|
55948
|
+
throw Error(`Cannot merge actions when sourceAction is in ${sourceStatus} status.`);
|
|
55949
55949
|
}
|
|
55950
55950
|
if (targetMethod.toLowerCase() === 'delete' || sourceMethod.toLowerCase() === 'delete') {
|
|
55951
|
-
throw Error('
|
|
55951
|
+
throw Error('Cannot merge DELETE actions.');
|
|
55952
55952
|
}
|
|
55953
55953
|
if (targetMethod.toLowerCase() === 'patch' && sourceMethod.toLowerCase() === 'post') {
|
|
55954
55954
|
// overlaying a POST over a PATCH is not supported
|
|
55955
|
-
throw Error('
|
|
55955
|
+
throw Error('Cannot merge a POST action over top of a PATCH action.');
|
|
55956
55956
|
}
|
|
55957
55957
|
if (targetVersion !== sourceVersion) {
|
|
55958
|
-
throw Error('
|
|
55958
|
+
throw Error('Cannot merge actions with different versions.');
|
|
55959
55959
|
}
|
|
55960
55960
|
// overlay top-level properties, maintain target's timestamp and id
|
|
55961
55961
|
const merged = {
|
|
@@ -59839,7 +59839,7 @@ register({
|
|
|
59839
59839
|
id: '@salesforce/lds-network-adapter',
|
|
59840
59840
|
instrument: instrument$1,
|
|
59841
59841
|
});
|
|
59842
|
-
// version: 1.114.
|
|
59842
|
+
// version: 1.114.6-435b32f3e
|
|
59843
59843
|
|
|
59844
59844
|
const { create: create$2, keys: keys$2 } = Object;
|
|
59845
59845
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -60043,6 +60043,10 @@ function createPageInfo(edges, startOffset, endOffset, maxOffset, metadata) {
|
|
|
60043
60043
|
function findMaxOffset(metadata) {
|
|
60044
60044
|
if (metadata === undefined)
|
|
60045
60045
|
return -1;
|
|
60046
|
+
const endOfList = metadata["__END__"];
|
|
60047
|
+
if (endOfList !== undefined) {
|
|
60048
|
+
return endOfList > 0 ? endOfList - 1 : 0; // Cursor based pagination in gql is off by one :)
|
|
60049
|
+
}
|
|
60046
60050
|
const { __END__: _, ...cursorMetadata } = metadata;
|
|
60047
60051
|
const values = Object.values(cursorMetadata).filter((value) => value !== undefined);
|
|
60048
60052
|
return Math.max(...values);
|
|
@@ -60174,93 +60178,6 @@ function revertPaginationOptimization(variables) {
|
|
|
60174
60178
|
}
|
|
60175
60179
|
}
|
|
60176
60180
|
|
|
60177
|
-
function applyToSelection$6(selection, directive, variables) {
|
|
60178
|
-
return selection;
|
|
60179
|
-
}
|
|
60180
|
-
|
|
60181
|
-
function applyToSelection$5(selection, directive, variables) {
|
|
60182
|
-
return selection;
|
|
60183
|
-
}
|
|
60184
|
-
|
|
60185
|
-
function applyToSelection$4(selection, directive, variables) {
|
|
60186
|
-
return selection;
|
|
60187
|
-
}
|
|
60188
|
-
|
|
60189
|
-
function applyToSelection$3(selection, directive, variables) {
|
|
60190
|
-
var _a;
|
|
60191
|
-
const ifArg = (_a = directive.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => argument.name.value === "if");
|
|
60192
|
-
if (ifArg && ifArg.value) {
|
|
60193
|
-
if (ifArg.value.kind === "BooleanValue") {
|
|
60194
|
-
return ifArg.value.value ? selection : undefined;
|
|
60195
|
-
}
|
|
60196
|
-
if (ifArg.value.kind === "Variable") {
|
|
60197
|
-
return variables[ifArg.value.name.value] ? selection : undefined;
|
|
60198
|
-
}
|
|
60199
|
-
}
|
|
60200
|
-
return selection;
|
|
60201
|
-
}
|
|
60202
|
-
|
|
60203
|
-
function applyToSelection$2(selection, directive, variables) {
|
|
60204
|
-
var _a;
|
|
60205
|
-
const ifArg = (_a = directive.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => argument.name.value === "if");
|
|
60206
|
-
if (ifArg && ifArg.value) {
|
|
60207
|
-
if (ifArg.value.kind === "BooleanValue") {
|
|
60208
|
-
return ifArg.value.value ? undefined : selection;
|
|
60209
|
-
}
|
|
60210
|
-
if (ifArg.value.kind === "Variable") {
|
|
60211
|
-
return variables[ifArg.value.name.value] ? undefined : selection;
|
|
60212
|
-
}
|
|
60213
|
-
}
|
|
60214
|
-
return selection;
|
|
60215
|
-
}
|
|
60216
|
-
|
|
60217
|
-
function applyToSelection$1(selection, directive, variables) {
|
|
60218
|
-
return selection;
|
|
60219
|
-
}
|
|
60220
|
-
|
|
60221
|
-
function applyToSelection(selection, directive, variables) {
|
|
60222
|
-
return selection;
|
|
60223
|
-
}
|
|
60224
|
-
|
|
60225
|
-
function applyDirectivesForSelection(selection, variables) {
|
|
60226
|
-
let result = selection;
|
|
60227
|
-
if (selection && selection.directives) {
|
|
60228
|
-
// iterate through directives in order. Directives _can_ be stacked.
|
|
60229
|
-
for (var i = 0; i < selection.directives.length; i++) {
|
|
60230
|
-
const directive = selection.directives[i];
|
|
60231
|
-
switch (directive.name.value) {
|
|
60232
|
-
// Generate Case for each directive in the schema that supports SelectionNodes
|
|
60233
|
-
case ("generic"):
|
|
60234
|
-
result = applyToSelection$6(selection);
|
|
60235
|
-
break;
|
|
60236
|
-
case ("fieldCategory"):
|
|
60237
|
-
result = applyToSelection$5(selection);
|
|
60238
|
-
break;
|
|
60239
|
-
case ("category"):
|
|
60240
|
-
result = applyToSelection$4(selection);
|
|
60241
|
-
break;
|
|
60242
|
-
case ("include"):
|
|
60243
|
-
result = applyToSelection$3(selection, directive, variables);
|
|
60244
|
-
break;
|
|
60245
|
-
case ("skip"):
|
|
60246
|
-
result = applyToSelection$2(selection, directive, variables);
|
|
60247
|
-
break;
|
|
60248
|
-
case ("deprecated"):
|
|
60249
|
-
result = applyToSelection$1(selection);
|
|
60250
|
-
break;
|
|
60251
|
-
case ("specifiedBy"):
|
|
60252
|
-
result = applyToSelection(selection);
|
|
60253
|
-
break;
|
|
60254
|
-
}
|
|
60255
|
-
if (result === undefined) {
|
|
60256
|
-
// Selection was removed.
|
|
60257
|
-
break;
|
|
60258
|
-
}
|
|
60259
|
-
}
|
|
60260
|
-
}
|
|
60261
|
-
return result;
|
|
60262
|
-
}
|
|
60263
|
-
|
|
60264
60181
|
const name$G = 'DoubleValue';
|
|
60265
60182
|
const VERSION$Q = 'de69c0962aca45d77a5bc8d9abacfa7d';
|
|
60266
60183
|
function keyBuilder$L(luvio, path, data) {
|
|
@@ -60320,79 +60237,18 @@ function selectType$H(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
60320
60237
|
}
|
|
60321
60238
|
return sink;
|
|
60322
60239
|
}
|
|
60323
|
-
function buildSelectionForField$
|
|
60324
|
-
|
|
60325
|
-
const fieldData = getFieldData$G(source, sel, variables);
|
|
60326
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
60327
|
-
reader.enterPath(requestedFieldName);
|
|
60328
|
-
if (fieldData === undefined) {
|
|
60329
|
-
reader.markMissing();
|
|
60330
|
-
reader.exitPath();
|
|
60331
|
-
return;
|
|
60332
|
-
}
|
|
60333
|
-
if (fieldData === null) {
|
|
60334
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
60335
|
-
return sink;
|
|
60336
|
-
}
|
|
60337
|
-
const fieldType = getFieldType$11(sel);
|
|
60338
|
-
if (fieldType === undefined) {
|
|
60339
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
60340
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
60341
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
60342
|
-
}
|
|
60343
|
-
else if (fieldType.isArray) {
|
|
60344
|
-
const arraySink = [];
|
|
60345
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
60346
|
-
reader.enterPath(i);
|
|
60347
|
-
selectType$H(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
60348
|
-
reader.exitPath();
|
|
60349
|
-
}
|
|
60350
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
60351
|
-
}
|
|
60352
|
-
else {
|
|
60353
|
-
selectType$H(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
60354
|
-
}
|
|
60355
|
-
reader.exitPath();
|
|
60356
|
-
return sink;
|
|
60240
|
+
function buildSelectionForField$H(source, reader, sel, variables, fragments) {
|
|
60241
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$G, getFieldType$11, selectType$H);
|
|
60357
60242
|
}
|
|
60358
|
-
function buildSelectionForNode$
|
|
60359
|
-
|
|
60360
|
-
if (selectionNode.directives) {
|
|
60361
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
60362
|
-
if (selectionWithDirectives === undefined) {
|
|
60363
|
-
return;
|
|
60364
|
-
}
|
|
60365
|
-
selectionNode = selectionWithDirectives;
|
|
60366
|
-
}
|
|
60367
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
60368
|
-
if (isFragmentApplicable$H(selectionNode, source.data.__typename)) {
|
|
60369
|
-
// Get selections out of the inline fragment
|
|
60370
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
60371
|
-
// Call into field handling with selections
|
|
60372
|
-
Object.assign(sink, buildSelectionForNode$G(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
60373
|
-
});
|
|
60374
|
-
}
|
|
60375
|
-
}
|
|
60376
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
60377
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
60378
|
-
if (namedFragment && isFragmentApplicable$H(namedFragment, source.data.__typename)) {
|
|
60379
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
60380
|
-
// Call into field handling with selections
|
|
60381
|
-
Object.assign(sink, buildSelectionForNode$G(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
60382
|
-
});
|
|
60383
|
-
}
|
|
60384
|
-
}
|
|
60385
|
-
if (selectionNode.kind === "Field") {
|
|
60386
|
-
Object.assign(sink, buildSelectionForField$G(source, reader, selectionNode, variables));
|
|
60387
|
-
}
|
|
60388
|
-
return sink;
|
|
60243
|
+
function buildSelectionForNode$H(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
60244
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$H, buildSelectionForField$H);
|
|
60389
60245
|
}
|
|
60390
60246
|
function select$Q(field, variables, fragments) {
|
|
60391
60247
|
return (source, reader) => {
|
|
60392
60248
|
var _a;
|
|
60393
60249
|
const sink = {};
|
|
60394
60250
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
60395
|
-
const builtSelection = buildSelectionForNode$
|
|
60251
|
+
const builtSelection = buildSelectionForNode$H(source, reader, field, sel, variables, fragments);
|
|
60396
60252
|
if (builtSelection !== undefined) {
|
|
60397
60253
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
60398
60254
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -60540,79 +60396,18 @@ function selectType$G(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
60540
60396
|
}
|
|
60541
60397
|
return sink;
|
|
60542
60398
|
}
|
|
60543
|
-
function buildSelectionForField$
|
|
60544
|
-
|
|
60545
|
-
const fieldData = getFieldData$F(source, sel, variables);
|
|
60546
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
60547
|
-
reader.enterPath(requestedFieldName);
|
|
60548
|
-
if (fieldData === undefined) {
|
|
60549
|
-
reader.markMissing();
|
|
60550
|
-
reader.exitPath();
|
|
60551
|
-
return;
|
|
60552
|
-
}
|
|
60553
|
-
if (fieldData === null) {
|
|
60554
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
60555
|
-
return sink;
|
|
60556
|
-
}
|
|
60557
|
-
const fieldType = getFieldType$10(sel);
|
|
60558
|
-
if (fieldType === undefined) {
|
|
60559
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
60560
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
60561
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
60562
|
-
}
|
|
60563
|
-
else if (fieldType.isArray) {
|
|
60564
|
-
const arraySink = [];
|
|
60565
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
60566
|
-
reader.enterPath(i);
|
|
60567
|
-
selectType$G(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
60568
|
-
reader.exitPath();
|
|
60569
|
-
}
|
|
60570
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
60571
|
-
}
|
|
60572
|
-
else {
|
|
60573
|
-
selectType$G(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
60574
|
-
}
|
|
60575
|
-
reader.exitPath();
|
|
60576
|
-
return sink;
|
|
60399
|
+
function buildSelectionForField$G(source, reader, sel, variables, fragments) {
|
|
60400
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$F, getFieldType$10, selectType$G);
|
|
60577
60401
|
}
|
|
60578
|
-
function buildSelectionForNode$
|
|
60579
|
-
|
|
60580
|
-
if (selectionNode.directives) {
|
|
60581
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
60582
|
-
if (selectionWithDirectives === undefined) {
|
|
60583
|
-
return;
|
|
60584
|
-
}
|
|
60585
|
-
selectionNode = selectionWithDirectives;
|
|
60586
|
-
}
|
|
60587
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
60588
|
-
if (isFragmentApplicable$G(selectionNode, source.data.__typename)) {
|
|
60589
|
-
// Get selections out of the inline fragment
|
|
60590
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
60591
|
-
// Call into field handling with selections
|
|
60592
|
-
Object.assign(sink, buildSelectionForNode$F(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
60593
|
-
});
|
|
60594
|
-
}
|
|
60595
|
-
}
|
|
60596
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
60597
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
60598
|
-
if (namedFragment && isFragmentApplicable$G(namedFragment, source.data.__typename)) {
|
|
60599
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
60600
|
-
// Call into field handling with selections
|
|
60601
|
-
Object.assign(sink, buildSelectionForNode$F(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
60602
|
-
});
|
|
60603
|
-
}
|
|
60604
|
-
}
|
|
60605
|
-
if (selectionNode.kind === "Field") {
|
|
60606
|
-
Object.assign(sink, buildSelectionForField$F(source, reader, selectionNode, variables));
|
|
60607
|
-
}
|
|
60608
|
-
return sink;
|
|
60402
|
+
function buildSelectionForNode$G(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
60403
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$G, buildSelectionForField$G);
|
|
60609
60404
|
}
|
|
60610
60405
|
function select$P(field, variables, fragments) {
|
|
60611
60406
|
return (source, reader) => {
|
|
60612
60407
|
var _a;
|
|
60613
60408
|
const sink = {};
|
|
60614
60409
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
60615
|
-
const builtSelection = buildSelectionForNode$
|
|
60410
|
+
const builtSelection = buildSelectionForNode$G(source, reader, field, sel, variables, fragments);
|
|
60616
60411
|
if (builtSelection !== undefined) {
|
|
60617
60412
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
60618
60413
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -60760,79 +60555,18 @@ function selectType$F(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
60760
60555
|
}
|
|
60761
60556
|
return sink;
|
|
60762
60557
|
}
|
|
60763
|
-
function buildSelectionForField$
|
|
60764
|
-
|
|
60765
|
-
const fieldData = getFieldData$E(source, sel, variables);
|
|
60766
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
60767
|
-
reader.enterPath(requestedFieldName);
|
|
60768
|
-
if (fieldData === undefined) {
|
|
60769
|
-
reader.markMissing();
|
|
60770
|
-
reader.exitPath();
|
|
60771
|
-
return;
|
|
60772
|
-
}
|
|
60773
|
-
if (fieldData === null) {
|
|
60774
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
60775
|
-
return sink;
|
|
60776
|
-
}
|
|
60777
|
-
const fieldType = getFieldType$$(sel);
|
|
60778
|
-
if (fieldType === undefined) {
|
|
60779
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
60780
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
60781
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
60782
|
-
}
|
|
60783
|
-
else if (fieldType.isArray) {
|
|
60784
|
-
const arraySink = [];
|
|
60785
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
60786
|
-
reader.enterPath(i);
|
|
60787
|
-
selectType$F(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
60788
|
-
reader.exitPath();
|
|
60789
|
-
}
|
|
60790
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
60791
|
-
}
|
|
60792
|
-
else {
|
|
60793
|
-
selectType$F(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
60794
|
-
}
|
|
60795
|
-
reader.exitPath();
|
|
60796
|
-
return sink;
|
|
60558
|
+
function buildSelectionForField$F(source, reader, sel, variables, fragments) {
|
|
60559
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$E, getFieldType$$, selectType$F);
|
|
60797
60560
|
}
|
|
60798
|
-
function buildSelectionForNode$
|
|
60799
|
-
|
|
60800
|
-
if (selectionNode.directives) {
|
|
60801
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
60802
|
-
if (selectionWithDirectives === undefined) {
|
|
60803
|
-
return;
|
|
60804
|
-
}
|
|
60805
|
-
selectionNode = selectionWithDirectives;
|
|
60806
|
-
}
|
|
60807
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
60808
|
-
if (isFragmentApplicable$F(selectionNode, source.data.__typename)) {
|
|
60809
|
-
// Get selections out of the inline fragment
|
|
60810
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
60811
|
-
// Call into field handling with selections
|
|
60812
|
-
Object.assign(sink, buildSelectionForNode$E(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
60813
|
-
});
|
|
60814
|
-
}
|
|
60815
|
-
}
|
|
60816
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
60817
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
60818
|
-
if (namedFragment && isFragmentApplicable$F(namedFragment, source.data.__typename)) {
|
|
60819
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
60820
|
-
// Call into field handling with selections
|
|
60821
|
-
Object.assign(sink, buildSelectionForNode$E(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
60822
|
-
});
|
|
60823
|
-
}
|
|
60824
|
-
}
|
|
60825
|
-
if (selectionNode.kind === "Field") {
|
|
60826
|
-
Object.assign(sink, buildSelectionForField$E(source, reader, selectionNode, variables));
|
|
60827
|
-
}
|
|
60828
|
-
return sink;
|
|
60561
|
+
function buildSelectionForNode$F(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
60562
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$F, buildSelectionForField$F);
|
|
60829
60563
|
}
|
|
60830
60564
|
function select$O(field, variables, fragments) {
|
|
60831
60565
|
return (source, reader) => {
|
|
60832
60566
|
var _a;
|
|
60833
60567
|
const sink = {};
|
|
60834
60568
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
60835
|
-
const builtSelection = buildSelectionForNode$
|
|
60569
|
+
const builtSelection = buildSelectionForNode$F(source, reader, field, sel, variables, fragments);
|
|
60836
60570
|
if (builtSelection !== undefined) {
|
|
60837
60571
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
60838
60572
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -61062,79 +60796,18 @@ function selectType$E(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
61062
60796
|
}
|
|
61063
60797
|
return sink;
|
|
61064
60798
|
}
|
|
61065
|
-
function buildSelectionForField$
|
|
61066
|
-
|
|
61067
|
-
const fieldData = getFieldData$D(source, sel, variables);
|
|
61068
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
61069
|
-
reader.enterPath(requestedFieldName);
|
|
61070
|
-
if (fieldData === undefined) {
|
|
61071
|
-
reader.markMissing();
|
|
61072
|
-
reader.exitPath();
|
|
61073
|
-
return;
|
|
61074
|
-
}
|
|
61075
|
-
if (fieldData === null) {
|
|
61076
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
61077
|
-
return sink;
|
|
61078
|
-
}
|
|
61079
|
-
const fieldType = getFieldType$Z(sel);
|
|
61080
|
-
if (fieldType === undefined) {
|
|
61081
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
61082
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
61083
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
61084
|
-
}
|
|
61085
|
-
else if (fieldType.isArray) {
|
|
61086
|
-
const arraySink = [];
|
|
61087
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
61088
|
-
reader.enterPath(i);
|
|
61089
|
-
selectType$E(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
61090
|
-
reader.exitPath();
|
|
61091
|
-
}
|
|
61092
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
61093
|
-
}
|
|
61094
|
-
else {
|
|
61095
|
-
selectType$E(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
61096
|
-
}
|
|
61097
|
-
reader.exitPath();
|
|
61098
|
-
return sink;
|
|
60799
|
+
function buildSelectionForField$E(source, reader, sel, variables, fragments) {
|
|
60800
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$D, getFieldType$Z, selectType$E);
|
|
61099
60801
|
}
|
|
61100
|
-
function buildSelectionForNode$
|
|
61101
|
-
|
|
61102
|
-
if (selectionNode.directives) {
|
|
61103
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
61104
|
-
if (selectionWithDirectives === undefined) {
|
|
61105
|
-
return;
|
|
61106
|
-
}
|
|
61107
|
-
selectionNode = selectionWithDirectives;
|
|
61108
|
-
}
|
|
61109
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
61110
|
-
if (isFragmentApplicable$E(selectionNode, source.data.__typename)) {
|
|
61111
|
-
// Get selections out of the inline fragment
|
|
61112
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
61113
|
-
// Call into field handling with selections
|
|
61114
|
-
Object.assign(sink, buildSelectionForNode$D(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
61115
|
-
});
|
|
61116
|
-
}
|
|
61117
|
-
}
|
|
61118
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
61119
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
61120
|
-
if (namedFragment && isFragmentApplicable$E(namedFragment, source.data.__typename)) {
|
|
61121
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
61122
|
-
// Call into field handling with selections
|
|
61123
|
-
Object.assign(sink, buildSelectionForNode$D(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
61124
|
-
});
|
|
61125
|
-
}
|
|
61126
|
-
}
|
|
61127
|
-
if (selectionNode.kind === "Field") {
|
|
61128
|
-
Object.assign(sink, buildSelectionForField$D(source, reader, selectionNode, variables));
|
|
61129
|
-
}
|
|
61130
|
-
return sink;
|
|
60802
|
+
function buildSelectionForNode$E(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
60803
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$E, buildSelectionForField$E);
|
|
61131
60804
|
}
|
|
61132
60805
|
function select$N(field, variables, fragments) {
|
|
61133
60806
|
return (source, reader) => {
|
|
61134
60807
|
var _a;
|
|
61135
60808
|
const sink = {};
|
|
61136
60809
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
61137
|
-
const builtSelection = buildSelectionForNode$
|
|
60810
|
+
const builtSelection = buildSelectionForNode$E(source, reader, field, sel, variables, fragments);
|
|
61138
60811
|
if (builtSelection !== undefined) {
|
|
61139
60812
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
61140
60813
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -61278,79 +60951,18 @@ function selectType$D(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
61278
60951
|
}
|
|
61279
60952
|
return sink;
|
|
61280
60953
|
}
|
|
61281
|
-
function buildSelectionForField$
|
|
61282
|
-
|
|
61283
|
-
const fieldData = getFieldData$C(source, sel, variables);
|
|
61284
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
61285
|
-
reader.enterPath(requestedFieldName);
|
|
61286
|
-
if (fieldData === undefined) {
|
|
61287
|
-
reader.markMissing();
|
|
61288
|
-
reader.exitPath();
|
|
61289
|
-
return;
|
|
61290
|
-
}
|
|
61291
|
-
if (fieldData === null) {
|
|
61292
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
61293
|
-
return sink;
|
|
61294
|
-
}
|
|
61295
|
-
const fieldType = getFieldType$Y(sel);
|
|
61296
|
-
if (fieldType === undefined) {
|
|
61297
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
61298
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
61299
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
61300
|
-
}
|
|
61301
|
-
else if (fieldType.isArray) {
|
|
61302
|
-
const arraySink = [];
|
|
61303
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
61304
|
-
reader.enterPath(i);
|
|
61305
|
-
selectType$D(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
61306
|
-
reader.exitPath();
|
|
61307
|
-
}
|
|
61308
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
61309
|
-
}
|
|
61310
|
-
else {
|
|
61311
|
-
selectType$D(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
61312
|
-
}
|
|
61313
|
-
reader.exitPath();
|
|
61314
|
-
return sink;
|
|
60954
|
+
function buildSelectionForField$D(source, reader, sel, variables, fragments) {
|
|
60955
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$C, getFieldType$Y, selectType$D);
|
|
61315
60956
|
}
|
|
61316
|
-
function buildSelectionForNode$
|
|
61317
|
-
|
|
61318
|
-
if (selectionNode.directives) {
|
|
61319
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
61320
|
-
if (selectionWithDirectives === undefined) {
|
|
61321
|
-
return;
|
|
61322
|
-
}
|
|
61323
|
-
selectionNode = selectionWithDirectives;
|
|
61324
|
-
}
|
|
61325
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
61326
|
-
if (isFragmentApplicable$D(selectionNode, source.data.__typename)) {
|
|
61327
|
-
// Get selections out of the inline fragment
|
|
61328
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
61329
|
-
// Call into field handling with selections
|
|
61330
|
-
Object.assign(sink, buildSelectionForNode$C(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
61331
|
-
});
|
|
61332
|
-
}
|
|
61333
|
-
}
|
|
61334
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
61335
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
61336
|
-
if (namedFragment && isFragmentApplicable$D(namedFragment, source.data.__typename)) {
|
|
61337
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
61338
|
-
// Call into field handling with selections
|
|
61339
|
-
Object.assign(sink, buildSelectionForNode$C(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
61340
|
-
});
|
|
61341
|
-
}
|
|
61342
|
-
}
|
|
61343
|
-
if (selectionNode.kind === "Field") {
|
|
61344
|
-
Object.assign(sink, buildSelectionForField$C(source, reader, selectionNode, variables));
|
|
61345
|
-
}
|
|
61346
|
-
return sink;
|
|
60957
|
+
function buildSelectionForNode$D(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
60958
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$D, buildSelectionForField$D);
|
|
61347
60959
|
}
|
|
61348
60960
|
function select$M(field, variables, fragments) {
|
|
61349
60961
|
return (source, reader) => {
|
|
61350
60962
|
var _a;
|
|
61351
60963
|
const sink = {};
|
|
61352
60964
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
61353
|
-
const builtSelection = buildSelectionForNode$
|
|
60965
|
+
const builtSelection = buildSelectionForNode$D(source, reader, field, sel, variables, fragments);
|
|
61354
60966
|
if (builtSelection !== undefined) {
|
|
61355
60967
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
61356
60968
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -61570,79 +61182,18 @@ function selectType$C(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
61570
61182
|
}
|
|
61571
61183
|
return sink;
|
|
61572
61184
|
}
|
|
61573
|
-
function buildSelectionForField$
|
|
61574
|
-
|
|
61575
|
-
const fieldData = getFieldData$B(source, sel, variables);
|
|
61576
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
61577
|
-
reader.enterPath(requestedFieldName);
|
|
61578
|
-
if (fieldData === undefined) {
|
|
61579
|
-
reader.markMissing();
|
|
61580
|
-
reader.exitPath();
|
|
61581
|
-
return;
|
|
61582
|
-
}
|
|
61583
|
-
if (fieldData === null) {
|
|
61584
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
61585
|
-
return sink;
|
|
61586
|
-
}
|
|
61587
|
-
const fieldType = getFieldType$W(sel);
|
|
61588
|
-
if (fieldType === undefined) {
|
|
61589
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
61590
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
61591
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
61592
|
-
}
|
|
61593
|
-
else if (fieldType.isArray) {
|
|
61594
|
-
const arraySink = [];
|
|
61595
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
61596
|
-
reader.enterPath(i);
|
|
61597
|
-
selectType$C(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
61598
|
-
reader.exitPath();
|
|
61599
|
-
}
|
|
61600
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
61601
|
-
}
|
|
61602
|
-
else {
|
|
61603
|
-
selectType$C(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
61604
|
-
}
|
|
61605
|
-
reader.exitPath();
|
|
61606
|
-
return sink;
|
|
61185
|
+
function buildSelectionForField$C(source, reader, sel, variables, fragments) {
|
|
61186
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$B, getFieldType$W, selectType$C);
|
|
61607
61187
|
}
|
|
61608
|
-
function buildSelectionForNode$
|
|
61609
|
-
|
|
61610
|
-
if (selectionNode.directives) {
|
|
61611
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
61612
|
-
if (selectionWithDirectives === undefined) {
|
|
61613
|
-
return;
|
|
61614
|
-
}
|
|
61615
|
-
selectionNode = selectionWithDirectives;
|
|
61616
|
-
}
|
|
61617
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
61618
|
-
if (isFragmentApplicable$C(selectionNode, source.data.__typename)) {
|
|
61619
|
-
// Get selections out of the inline fragment
|
|
61620
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
61621
|
-
// Call into field handling with selections
|
|
61622
|
-
Object.assign(sink, buildSelectionForNode$B(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
61623
|
-
});
|
|
61624
|
-
}
|
|
61625
|
-
}
|
|
61626
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
61627
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
61628
|
-
if (namedFragment && isFragmentApplicable$C(namedFragment, source.data.__typename)) {
|
|
61629
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
61630
|
-
// Call into field handling with selections
|
|
61631
|
-
Object.assign(sink, buildSelectionForNode$B(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
61632
|
-
});
|
|
61633
|
-
}
|
|
61634
|
-
}
|
|
61635
|
-
if (selectionNode.kind === "Field") {
|
|
61636
|
-
Object.assign(sink, buildSelectionForField$B(source, reader, selectionNode, variables));
|
|
61637
|
-
}
|
|
61638
|
-
return sink;
|
|
61188
|
+
function buildSelectionForNode$C(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
61189
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$C, buildSelectionForField$C);
|
|
61639
61190
|
}
|
|
61640
61191
|
function select$L(field, variables, fragments) {
|
|
61641
61192
|
return (source, reader) => {
|
|
61642
61193
|
var _a;
|
|
61643
61194
|
const sink = {};
|
|
61644
61195
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
61645
|
-
const builtSelection = buildSelectionForNode$
|
|
61196
|
+
const builtSelection = buildSelectionForNode$C(source, reader, field, sel, variables, fragments);
|
|
61646
61197
|
if (builtSelection !== undefined) {
|
|
61647
61198
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
61648
61199
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -61784,79 +61335,18 @@ function selectType$B(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
61784
61335
|
}
|
|
61785
61336
|
return sink;
|
|
61786
61337
|
}
|
|
61787
|
-
function buildSelectionForField$
|
|
61788
|
-
|
|
61789
|
-
const fieldData = getFieldData$A(source, sel, variables);
|
|
61790
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
61791
|
-
reader.enterPath(requestedFieldName);
|
|
61792
|
-
if (fieldData === undefined) {
|
|
61793
|
-
reader.markMissing();
|
|
61794
|
-
reader.exitPath();
|
|
61795
|
-
return;
|
|
61796
|
-
}
|
|
61797
|
-
if (fieldData === null) {
|
|
61798
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
61799
|
-
return sink;
|
|
61800
|
-
}
|
|
61801
|
-
const fieldType = getFieldType$V(sel);
|
|
61802
|
-
if (fieldType === undefined) {
|
|
61803
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
61804
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
61805
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
61806
|
-
}
|
|
61807
|
-
else if (fieldType.isArray) {
|
|
61808
|
-
const arraySink = [];
|
|
61809
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
61810
|
-
reader.enterPath(i);
|
|
61811
|
-
selectType$B(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
61812
|
-
reader.exitPath();
|
|
61813
|
-
}
|
|
61814
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
61815
|
-
}
|
|
61816
|
-
else {
|
|
61817
|
-
selectType$B(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
61818
|
-
}
|
|
61819
|
-
reader.exitPath();
|
|
61820
|
-
return sink;
|
|
61338
|
+
function buildSelectionForField$B(source, reader, sel, variables, fragments) {
|
|
61339
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$A, getFieldType$V, selectType$B);
|
|
61821
61340
|
}
|
|
61822
|
-
function buildSelectionForNode$
|
|
61823
|
-
|
|
61824
|
-
if (selectionNode.directives) {
|
|
61825
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
61826
|
-
if (selectionWithDirectives === undefined) {
|
|
61827
|
-
return;
|
|
61828
|
-
}
|
|
61829
|
-
selectionNode = selectionWithDirectives;
|
|
61830
|
-
}
|
|
61831
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
61832
|
-
if (isFragmentApplicable$B(selectionNode, source.data.__typename)) {
|
|
61833
|
-
// Get selections out of the inline fragment
|
|
61834
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
61835
|
-
// Call into field handling with selections
|
|
61836
|
-
Object.assign(sink, buildSelectionForNode$A(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
61837
|
-
});
|
|
61838
|
-
}
|
|
61839
|
-
}
|
|
61840
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
61841
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
61842
|
-
if (namedFragment && isFragmentApplicable$B(namedFragment, source.data.__typename)) {
|
|
61843
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
61844
|
-
// Call into field handling with selections
|
|
61845
|
-
Object.assign(sink, buildSelectionForNode$A(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
61846
|
-
});
|
|
61847
|
-
}
|
|
61848
|
-
}
|
|
61849
|
-
if (selectionNode.kind === "Field") {
|
|
61850
|
-
Object.assign(sink, buildSelectionForField$A(source, reader, selectionNode, variables));
|
|
61851
|
-
}
|
|
61852
|
-
return sink;
|
|
61341
|
+
function buildSelectionForNode$B(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
61342
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$B, buildSelectionForField$B);
|
|
61853
61343
|
}
|
|
61854
61344
|
function select$K(field, variables, fragments) {
|
|
61855
61345
|
return (source, reader) => {
|
|
61856
61346
|
var _a;
|
|
61857
61347
|
const sink = {};
|
|
61858
61348
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
61859
|
-
const builtSelection = buildSelectionForNode$
|
|
61349
|
+
const builtSelection = buildSelectionForNode$B(source, reader, field, sel, variables, fragments);
|
|
61860
61350
|
if (builtSelection !== undefined) {
|
|
61861
61351
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
61862
61352
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -62004,79 +61494,18 @@ function selectType$A(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
62004
61494
|
}
|
|
62005
61495
|
return sink;
|
|
62006
61496
|
}
|
|
62007
|
-
function buildSelectionForField$
|
|
62008
|
-
|
|
62009
|
-
const fieldData = getFieldData$z(source, sel, variables);
|
|
62010
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
62011
|
-
reader.enterPath(requestedFieldName);
|
|
62012
|
-
if (fieldData === undefined) {
|
|
62013
|
-
reader.markMissing();
|
|
62014
|
-
reader.exitPath();
|
|
62015
|
-
return;
|
|
62016
|
-
}
|
|
62017
|
-
if (fieldData === null) {
|
|
62018
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
62019
|
-
return sink;
|
|
62020
|
-
}
|
|
62021
|
-
const fieldType = getFieldType$U(sel);
|
|
62022
|
-
if (fieldType === undefined) {
|
|
62023
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
62024
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
62025
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
62026
|
-
}
|
|
62027
|
-
else if (fieldType.isArray) {
|
|
62028
|
-
const arraySink = [];
|
|
62029
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
62030
|
-
reader.enterPath(i);
|
|
62031
|
-
selectType$A(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
62032
|
-
reader.exitPath();
|
|
62033
|
-
}
|
|
62034
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
62035
|
-
}
|
|
62036
|
-
else {
|
|
62037
|
-
selectType$A(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
62038
|
-
}
|
|
62039
|
-
reader.exitPath();
|
|
62040
|
-
return sink;
|
|
61497
|
+
function buildSelectionForField$A(source, reader, sel, variables, fragments) {
|
|
61498
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$z, getFieldType$U, selectType$A);
|
|
62041
61499
|
}
|
|
62042
|
-
function buildSelectionForNode$
|
|
62043
|
-
|
|
62044
|
-
if (selectionNode.directives) {
|
|
62045
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
62046
|
-
if (selectionWithDirectives === undefined) {
|
|
62047
|
-
return;
|
|
62048
|
-
}
|
|
62049
|
-
selectionNode = selectionWithDirectives;
|
|
62050
|
-
}
|
|
62051
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
62052
|
-
if (isFragmentApplicable$A(selectionNode, source.data.__typename)) {
|
|
62053
|
-
// Get selections out of the inline fragment
|
|
62054
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
62055
|
-
// Call into field handling with selections
|
|
62056
|
-
Object.assign(sink, buildSelectionForNode$z(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
62057
|
-
});
|
|
62058
|
-
}
|
|
62059
|
-
}
|
|
62060
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
62061
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
62062
|
-
if (namedFragment && isFragmentApplicable$A(namedFragment, source.data.__typename)) {
|
|
62063
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
62064
|
-
// Call into field handling with selections
|
|
62065
|
-
Object.assign(sink, buildSelectionForNode$z(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
62066
|
-
});
|
|
62067
|
-
}
|
|
62068
|
-
}
|
|
62069
|
-
if (selectionNode.kind === "Field") {
|
|
62070
|
-
Object.assign(sink, buildSelectionForField$z(source, reader, selectionNode, variables));
|
|
62071
|
-
}
|
|
62072
|
-
return sink;
|
|
61500
|
+
function buildSelectionForNode$A(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
61501
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$A, buildSelectionForField$A);
|
|
62073
61502
|
}
|
|
62074
61503
|
function select$J(field, variables, fragments) {
|
|
62075
61504
|
return (source, reader) => {
|
|
62076
61505
|
var _a;
|
|
62077
61506
|
const sink = {};
|
|
62078
61507
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
62079
|
-
const builtSelection = buildSelectionForNode$
|
|
61508
|
+
const builtSelection = buildSelectionForNode$A(source, reader, field, sel, variables, fragments);
|
|
62080
61509
|
if (builtSelection !== undefined) {
|
|
62081
61510
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
62082
61511
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -62218,79 +61647,18 @@ function selectType$z(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
62218
61647
|
}
|
|
62219
61648
|
return sink;
|
|
62220
61649
|
}
|
|
62221
|
-
function buildSelectionForField$
|
|
62222
|
-
|
|
62223
|
-
const fieldData = getFieldData$y(source, sel, variables);
|
|
62224
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
62225
|
-
reader.enterPath(requestedFieldName);
|
|
62226
|
-
if (fieldData === undefined) {
|
|
62227
|
-
reader.markMissing();
|
|
62228
|
-
reader.exitPath();
|
|
62229
|
-
return;
|
|
62230
|
-
}
|
|
62231
|
-
if (fieldData === null) {
|
|
62232
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
62233
|
-
return sink;
|
|
62234
|
-
}
|
|
62235
|
-
const fieldType = getFieldType$T(sel);
|
|
62236
|
-
if (fieldType === undefined) {
|
|
62237
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
62238
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
62239
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
62240
|
-
}
|
|
62241
|
-
else if (fieldType.isArray) {
|
|
62242
|
-
const arraySink = [];
|
|
62243
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
62244
|
-
reader.enterPath(i);
|
|
62245
|
-
selectType$z(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
62246
|
-
reader.exitPath();
|
|
62247
|
-
}
|
|
62248
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
62249
|
-
}
|
|
62250
|
-
else {
|
|
62251
|
-
selectType$z(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
62252
|
-
}
|
|
62253
|
-
reader.exitPath();
|
|
62254
|
-
return sink;
|
|
61650
|
+
function buildSelectionForField$z(source, reader, sel, variables, fragments) {
|
|
61651
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$y, getFieldType$T, selectType$z);
|
|
62255
61652
|
}
|
|
62256
|
-
function buildSelectionForNode$
|
|
62257
|
-
|
|
62258
|
-
if (selectionNode.directives) {
|
|
62259
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
62260
|
-
if (selectionWithDirectives === undefined) {
|
|
62261
|
-
return;
|
|
62262
|
-
}
|
|
62263
|
-
selectionNode = selectionWithDirectives;
|
|
62264
|
-
}
|
|
62265
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
62266
|
-
if (isFragmentApplicable$z(selectionNode, source.data.__typename)) {
|
|
62267
|
-
// Get selections out of the inline fragment
|
|
62268
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
62269
|
-
// Call into field handling with selections
|
|
62270
|
-
Object.assign(sink, buildSelectionForNode$y(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
62271
|
-
});
|
|
62272
|
-
}
|
|
62273
|
-
}
|
|
62274
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
62275
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
62276
|
-
if (namedFragment && isFragmentApplicable$z(namedFragment, source.data.__typename)) {
|
|
62277
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
62278
|
-
// Call into field handling with selections
|
|
62279
|
-
Object.assign(sink, buildSelectionForNode$y(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
62280
|
-
});
|
|
62281
|
-
}
|
|
62282
|
-
}
|
|
62283
|
-
if (selectionNode.kind === "Field") {
|
|
62284
|
-
Object.assign(sink, buildSelectionForField$y(source, reader, selectionNode, variables));
|
|
62285
|
-
}
|
|
62286
|
-
return sink;
|
|
61653
|
+
function buildSelectionForNode$z(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
61654
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$z, buildSelectionForField$z);
|
|
62287
61655
|
}
|
|
62288
61656
|
function select$I(field, variables, fragments) {
|
|
62289
61657
|
return (source, reader) => {
|
|
62290
61658
|
var _a;
|
|
62291
61659
|
const sink = {};
|
|
62292
61660
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
62293
|
-
const builtSelection = buildSelectionForNode$
|
|
61661
|
+
const builtSelection = buildSelectionForNode$z(source, reader, field, sel, variables, fragments);
|
|
62294
61662
|
if (builtSelection !== undefined) {
|
|
62295
61663
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
62296
61664
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -62438,79 +61806,18 @@ function selectType$y(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
62438
61806
|
}
|
|
62439
61807
|
return sink;
|
|
62440
61808
|
}
|
|
62441
|
-
function buildSelectionForField$
|
|
62442
|
-
|
|
62443
|
-
const fieldData = getFieldData$x(source, sel, variables);
|
|
62444
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
62445
|
-
reader.enterPath(requestedFieldName);
|
|
62446
|
-
if (fieldData === undefined) {
|
|
62447
|
-
reader.markMissing();
|
|
62448
|
-
reader.exitPath();
|
|
62449
|
-
return;
|
|
62450
|
-
}
|
|
62451
|
-
if (fieldData === null) {
|
|
62452
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
62453
|
-
return sink;
|
|
62454
|
-
}
|
|
62455
|
-
const fieldType = getFieldType$S(sel);
|
|
62456
|
-
if (fieldType === undefined) {
|
|
62457
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
62458
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
62459
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
62460
|
-
}
|
|
62461
|
-
else if (fieldType.isArray) {
|
|
62462
|
-
const arraySink = [];
|
|
62463
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
62464
|
-
reader.enterPath(i);
|
|
62465
|
-
selectType$y(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
62466
|
-
reader.exitPath();
|
|
62467
|
-
}
|
|
62468
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
62469
|
-
}
|
|
62470
|
-
else {
|
|
62471
|
-
selectType$y(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
62472
|
-
}
|
|
62473
|
-
reader.exitPath();
|
|
62474
|
-
return sink;
|
|
61809
|
+
function buildSelectionForField$y(source, reader, sel, variables, fragments) {
|
|
61810
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$x, getFieldType$S, selectType$y);
|
|
62475
61811
|
}
|
|
62476
|
-
function buildSelectionForNode$
|
|
62477
|
-
|
|
62478
|
-
if (selectionNode.directives) {
|
|
62479
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
62480
|
-
if (selectionWithDirectives === undefined) {
|
|
62481
|
-
return;
|
|
62482
|
-
}
|
|
62483
|
-
selectionNode = selectionWithDirectives;
|
|
62484
|
-
}
|
|
62485
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
62486
|
-
if (isFragmentApplicable$y(selectionNode, source.data.__typename)) {
|
|
62487
|
-
// Get selections out of the inline fragment
|
|
62488
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
62489
|
-
// Call into field handling with selections
|
|
62490
|
-
Object.assign(sink, buildSelectionForNode$x(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
62491
|
-
});
|
|
62492
|
-
}
|
|
62493
|
-
}
|
|
62494
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
62495
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
62496
|
-
if (namedFragment && isFragmentApplicable$y(namedFragment, source.data.__typename)) {
|
|
62497
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
62498
|
-
// Call into field handling with selections
|
|
62499
|
-
Object.assign(sink, buildSelectionForNode$x(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
62500
|
-
});
|
|
62501
|
-
}
|
|
62502
|
-
}
|
|
62503
|
-
if (selectionNode.kind === "Field") {
|
|
62504
|
-
Object.assign(sink, buildSelectionForField$x(source, reader, selectionNode, variables));
|
|
62505
|
-
}
|
|
62506
|
-
return sink;
|
|
61812
|
+
function buildSelectionForNode$y(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
61813
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$y, buildSelectionForField$y);
|
|
62507
61814
|
}
|
|
62508
61815
|
function select$H(field, variables, fragments) {
|
|
62509
61816
|
return (source, reader) => {
|
|
62510
61817
|
var _a;
|
|
62511
61818
|
const sink = {};
|
|
62512
61819
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
62513
|
-
const builtSelection = buildSelectionForNode$
|
|
61820
|
+
const builtSelection = buildSelectionForNode$y(source, reader, field, sel, variables, fragments);
|
|
62514
61821
|
if (builtSelection !== undefined) {
|
|
62515
61822
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
62516
61823
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -62658,79 +61965,18 @@ function selectType$x(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
62658
61965
|
}
|
|
62659
61966
|
return sink;
|
|
62660
61967
|
}
|
|
62661
|
-
function buildSelectionForField$
|
|
62662
|
-
|
|
62663
|
-
const fieldData = getFieldData$w(source, sel, variables);
|
|
62664
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
62665
|
-
reader.enterPath(requestedFieldName);
|
|
62666
|
-
if (fieldData === undefined) {
|
|
62667
|
-
reader.markMissing();
|
|
62668
|
-
reader.exitPath();
|
|
62669
|
-
return;
|
|
62670
|
-
}
|
|
62671
|
-
if (fieldData === null) {
|
|
62672
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
62673
|
-
return sink;
|
|
62674
|
-
}
|
|
62675
|
-
const fieldType = getFieldType$R(sel);
|
|
62676
|
-
if (fieldType === undefined) {
|
|
62677
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
62678
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
62679
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
62680
|
-
}
|
|
62681
|
-
else if (fieldType.isArray) {
|
|
62682
|
-
const arraySink = [];
|
|
62683
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
62684
|
-
reader.enterPath(i);
|
|
62685
|
-
selectType$x(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
62686
|
-
reader.exitPath();
|
|
62687
|
-
}
|
|
62688
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
62689
|
-
}
|
|
62690
|
-
else {
|
|
62691
|
-
selectType$x(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
62692
|
-
}
|
|
62693
|
-
reader.exitPath();
|
|
62694
|
-
return sink;
|
|
61968
|
+
function buildSelectionForField$x(source, reader, sel, variables, fragments) {
|
|
61969
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$w, getFieldType$R, selectType$x);
|
|
62695
61970
|
}
|
|
62696
|
-
function buildSelectionForNode$
|
|
62697
|
-
|
|
62698
|
-
if (selectionNode.directives) {
|
|
62699
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
62700
|
-
if (selectionWithDirectives === undefined) {
|
|
62701
|
-
return;
|
|
62702
|
-
}
|
|
62703
|
-
selectionNode = selectionWithDirectives;
|
|
62704
|
-
}
|
|
62705
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
62706
|
-
if (isFragmentApplicable$x(selectionNode, source.data.__typename)) {
|
|
62707
|
-
// Get selections out of the inline fragment
|
|
62708
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
62709
|
-
// Call into field handling with selections
|
|
62710
|
-
Object.assign(sink, buildSelectionForNode$w(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
62711
|
-
});
|
|
62712
|
-
}
|
|
62713
|
-
}
|
|
62714
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
62715
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
62716
|
-
if (namedFragment && isFragmentApplicable$x(namedFragment, source.data.__typename)) {
|
|
62717
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
62718
|
-
// Call into field handling with selections
|
|
62719
|
-
Object.assign(sink, buildSelectionForNode$w(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
62720
|
-
});
|
|
62721
|
-
}
|
|
62722
|
-
}
|
|
62723
|
-
if (selectionNode.kind === "Field") {
|
|
62724
|
-
Object.assign(sink, buildSelectionForField$w(source, reader, selectionNode, variables));
|
|
62725
|
-
}
|
|
62726
|
-
return sink;
|
|
61971
|
+
function buildSelectionForNode$x(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
61972
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$x, buildSelectionForField$x);
|
|
62727
61973
|
}
|
|
62728
61974
|
function select$G(field, variables, fragments) {
|
|
62729
61975
|
return (source, reader) => {
|
|
62730
61976
|
var _a;
|
|
62731
61977
|
const sink = {};
|
|
62732
61978
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
62733
|
-
const builtSelection = buildSelectionForNode$
|
|
61979
|
+
const builtSelection = buildSelectionForNode$x(source, reader, field, sel, variables, fragments);
|
|
62734
61980
|
if (builtSelection !== undefined) {
|
|
62735
61981
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
62736
61982
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -62872,79 +62118,18 @@ function selectType$w(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
62872
62118
|
}
|
|
62873
62119
|
return sink;
|
|
62874
62120
|
}
|
|
62875
|
-
function buildSelectionForField$
|
|
62876
|
-
|
|
62877
|
-
const fieldData = getFieldData$v(source, sel, variables);
|
|
62878
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
62879
|
-
reader.enterPath(requestedFieldName);
|
|
62880
|
-
if (fieldData === undefined) {
|
|
62881
|
-
reader.markMissing();
|
|
62882
|
-
reader.exitPath();
|
|
62883
|
-
return;
|
|
62884
|
-
}
|
|
62885
|
-
if (fieldData === null) {
|
|
62886
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
62887
|
-
return sink;
|
|
62888
|
-
}
|
|
62889
|
-
const fieldType = getFieldType$Q(sel);
|
|
62890
|
-
if (fieldType === undefined) {
|
|
62891
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
62892
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
62893
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
62894
|
-
}
|
|
62895
|
-
else if (fieldType.isArray) {
|
|
62896
|
-
const arraySink = [];
|
|
62897
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
62898
|
-
reader.enterPath(i);
|
|
62899
|
-
selectType$w(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
62900
|
-
reader.exitPath();
|
|
62901
|
-
}
|
|
62902
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
62903
|
-
}
|
|
62904
|
-
else {
|
|
62905
|
-
selectType$w(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
62906
|
-
}
|
|
62907
|
-
reader.exitPath();
|
|
62908
|
-
return sink;
|
|
62121
|
+
function buildSelectionForField$w(source, reader, sel, variables, fragments) {
|
|
62122
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$v, getFieldType$Q, selectType$w);
|
|
62909
62123
|
}
|
|
62910
|
-
function buildSelectionForNode$
|
|
62911
|
-
|
|
62912
|
-
if (selectionNode.directives) {
|
|
62913
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
62914
|
-
if (selectionWithDirectives === undefined) {
|
|
62915
|
-
return;
|
|
62916
|
-
}
|
|
62917
|
-
selectionNode = selectionWithDirectives;
|
|
62918
|
-
}
|
|
62919
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
62920
|
-
if (isFragmentApplicable$w(selectionNode, source.data.__typename)) {
|
|
62921
|
-
// Get selections out of the inline fragment
|
|
62922
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
62923
|
-
// Call into field handling with selections
|
|
62924
|
-
Object.assign(sink, buildSelectionForNode$v(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
62925
|
-
});
|
|
62926
|
-
}
|
|
62927
|
-
}
|
|
62928
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
62929
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
62930
|
-
if (namedFragment && isFragmentApplicable$w(namedFragment, source.data.__typename)) {
|
|
62931
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
62932
|
-
// Call into field handling with selections
|
|
62933
|
-
Object.assign(sink, buildSelectionForNode$v(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
62934
|
-
});
|
|
62935
|
-
}
|
|
62936
|
-
}
|
|
62937
|
-
if (selectionNode.kind === "Field") {
|
|
62938
|
-
Object.assign(sink, buildSelectionForField$v(source, reader, selectionNode, variables));
|
|
62939
|
-
}
|
|
62940
|
-
return sink;
|
|
62124
|
+
function buildSelectionForNode$w(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
62125
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$w, buildSelectionForField$w);
|
|
62941
62126
|
}
|
|
62942
62127
|
function select$F(field, variables, fragments) {
|
|
62943
62128
|
return (source, reader) => {
|
|
62944
62129
|
var _a;
|
|
62945
62130
|
const sink = {};
|
|
62946
62131
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
62947
|
-
const builtSelection = buildSelectionForNode$
|
|
62132
|
+
const builtSelection = buildSelectionForNode$w(source, reader, field, sel, variables, fragments);
|
|
62948
62133
|
if (builtSelection !== undefined) {
|
|
62949
62134
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
62950
62135
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -63086,79 +62271,18 @@ function selectType$v(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
63086
62271
|
}
|
|
63087
62272
|
return sink;
|
|
63088
62273
|
}
|
|
63089
|
-
function buildSelectionForField$
|
|
63090
|
-
|
|
63091
|
-
const fieldData = getFieldData$u(source, sel, variables);
|
|
63092
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
63093
|
-
reader.enterPath(requestedFieldName);
|
|
63094
|
-
if (fieldData === undefined) {
|
|
63095
|
-
reader.markMissing();
|
|
63096
|
-
reader.exitPath();
|
|
63097
|
-
return;
|
|
63098
|
-
}
|
|
63099
|
-
if (fieldData === null) {
|
|
63100
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
63101
|
-
return sink;
|
|
63102
|
-
}
|
|
63103
|
-
const fieldType = getFieldType$P(sel);
|
|
63104
|
-
if (fieldType === undefined) {
|
|
63105
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
63106
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
63107
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
63108
|
-
}
|
|
63109
|
-
else if (fieldType.isArray) {
|
|
63110
|
-
const arraySink = [];
|
|
63111
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
63112
|
-
reader.enterPath(i);
|
|
63113
|
-
selectType$v(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
63114
|
-
reader.exitPath();
|
|
63115
|
-
}
|
|
63116
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
63117
|
-
}
|
|
63118
|
-
else {
|
|
63119
|
-
selectType$v(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
63120
|
-
}
|
|
63121
|
-
reader.exitPath();
|
|
63122
|
-
return sink;
|
|
62274
|
+
function buildSelectionForField$v(source, reader, sel, variables, fragments) {
|
|
62275
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$u, getFieldType$P, selectType$v);
|
|
63123
62276
|
}
|
|
63124
|
-
function buildSelectionForNode$
|
|
63125
|
-
|
|
63126
|
-
if (selectionNode.directives) {
|
|
63127
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
63128
|
-
if (selectionWithDirectives === undefined) {
|
|
63129
|
-
return;
|
|
63130
|
-
}
|
|
63131
|
-
selectionNode = selectionWithDirectives;
|
|
63132
|
-
}
|
|
63133
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
63134
|
-
if (isFragmentApplicable$v(selectionNode, source.data.__typename)) {
|
|
63135
|
-
// Get selections out of the inline fragment
|
|
63136
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
63137
|
-
// Call into field handling with selections
|
|
63138
|
-
Object.assign(sink, buildSelectionForNode$u(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
63139
|
-
});
|
|
63140
|
-
}
|
|
63141
|
-
}
|
|
63142
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
63143
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
63144
|
-
if (namedFragment && isFragmentApplicable$v(namedFragment, source.data.__typename)) {
|
|
63145
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
63146
|
-
// Call into field handling with selections
|
|
63147
|
-
Object.assign(sink, buildSelectionForNode$u(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
63148
|
-
});
|
|
63149
|
-
}
|
|
63150
|
-
}
|
|
63151
|
-
if (selectionNode.kind === "Field") {
|
|
63152
|
-
Object.assign(sink, buildSelectionForField$u(source, reader, selectionNode, variables));
|
|
63153
|
-
}
|
|
63154
|
-
return sink;
|
|
62277
|
+
function buildSelectionForNode$v(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
62278
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$v, buildSelectionForField$v);
|
|
63155
62279
|
}
|
|
63156
62280
|
function select$E(field, variables, fragments) {
|
|
63157
62281
|
return (source, reader) => {
|
|
63158
62282
|
var _a;
|
|
63159
62283
|
const sink = {};
|
|
63160
62284
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
63161
|
-
const builtSelection = buildSelectionForNode$
|
|
62285
|
+
const builtSelection = buildSelectionForNode$v(source, reader, field, sel, variables, fragments);
|
|
63162
62286
|
if (builtSelection !== undefined) {
|
|
63163
62287
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
63164
62288
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -63300,79 +62424,18 @@ function selectType$u(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
63300
62424
|
}
|
|
63301
62425
|
return sink;
|
|
63302
62426
|
}
|
|
63303
|
-
function buildSelectionForField$
|
|
63304
|
-
|
|
63305
|
-
const fieldData = getFieldData$t(source, sel, variables);
|
|
63306
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
63307
|
-
reader.enterPath(requestedFieldName);
|
|
63308
|
-
if (fieldData === undefined) {
|
|
63309
|
-
reader.markMissing();
|
|
63310
|
-
reader.exitPath();
|
|
63311
|
-
return;
|
|
63312
|
-
}
|
|
63313
|
-
if (fieldData === null) {
|
|
63314
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
63315
|
-
return sink;
|
|
63316
|
-
}
|
|
63317
|
-
const fieldType = getFieldType$O(sel);
|
|
63318
|
-
if (fieldType === undefined) {
|
|
63319
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
63320
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
63321
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
63322
|
-
}
|
|
63323
|
-
else if (fieldType.isArray) {
|
|
63324
|
-
const arraySink = [];
|
|
63325
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
63326
|
-
reader.enterPath(i);
|
|
63327
|
-
selectType$u(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
63328
|
-
reader.exitPath();
|
|
63329
|
-
}
|
|
63330
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
63331
|
-
}
|
|
63332
|
-
else {
|
|
63333
|
-
selectType$u(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
63334
|
-
}
|
|
63335
|
-
reader.exitPath();
|
|
63336
|
-
return sink;
|
|
62427
|
+
function buildSelectionForField$u(source, reader, sel, variables, fragments) {
|
|
62428
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$t, getFieldType$O, selectType$u);
|
|
63337
62429
|
}
|
|
63338
|
-
function buildSelectionForNode$
|
|
63339
|
-
|
|
63340
|
-
if (selectionNode.directives) {
|
|
63341
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
63342
|
-
if (selectionWithDirectives === undefined) {
|
|
63343
|
-
return;
|
|
63344
|
-
}
|
|
63345
|
-
selectionNode = selectionWithDirectives;
|
|
63346
|
-
}
|
|
63347
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
63348
|
-
if (isFragmentApplicable$u(selectionNode, source.data.__typename)) {
|
|
63349
|
-
// Get selections out of the inline fragment
|
|
63350
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
63351
|
-
// Call into field handling with selections
|
|
63352
|
-
Object.assign(sink, buildSelectionForNode$t(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
63353
|
-
});
|
|
63354
|
-
}
|
|
63355
|
-
}
|
|
63356
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
63357
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
63358
|
-
if (namedFragment && isFragmentApplicable$u(namedFragment, source.data.__typename)) {
|
|
63359
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
63360
|
-
// Call into field handling with selections
|
|
63361
|
-
Object.assign(sink, buildSelectionForNode$t(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
63362
|
-
});
|
|
63363
|
-
}
|
|
63364
|
-
}
|
|
63365
|
-
if (selectionNode.kind === "Field") {
|
|
63366
|
-
Object.assign(sink, buildSelectionForField$t(source, reader, selectionNode, variables));
|
|
63367
|
-
}
|
|
63368
|
-
return sink;
|
|
62430
|
+
function buildSelectionForNode$u(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
62431
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$u, buildSelectionForField$u);
|
|
63369
62432
|
}
|
|
63370
62433
|
function select$D(field, variables, fragments) {
|
|
63371
62434
|
return (source, reader) => {
|
|
63372
62435
|
var _a;
|
|
63373
62436
|
const sink = {};
|
|
63374
62437
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
63375
|
-
const builtSelection = buildSelectionForNode$
|
|
62438
|
+
const builtSelection = buildSelectionForNode$u(source, reader, field, sel, variables, fragments);
|
|
63376
62439
|
if (builtSelection !== undefined) {
|
|
63377
62440
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
63378
62441
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -63514,79 +62577,18 @@ function selectType$t(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
63514
62577
|
}
|
|
63515
62578
|
return sink;
|
|
63516
62579
|
}
|
|
63517
|
-
function buildSelectionForField$
|
|
63518
|
-
|
|
63519
|
-
const fieldData = getFieldData$s(source, sel, variables);
|
|
63520
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
63521
|
-
reader.enterPath(requestedFieldName);
|
|
63522
|
-
if (fieldData === undefined) {
|
|
63523
|
-
reader.markMissing();
|
|
63524
|
-
reader.exitPath();
|
|
63525
|
-
return;
|
|
63526
|
-
}
|
|
63527
|
-
if (fieldData === null) {
|
|
63528
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
63529
|
-
return sink;
|
|
63530
|
-
}
|
|
63531
|
-
const fieldType = getFieldType$N(sel);
|
|
63532
|
-
if (fieldType === undefined) {
|
|
63533
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
63534
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
63535
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
63536
|
-
}
|
|
63537
|
-
else if (fieldType.isArray) {
|
|
63538
|
-
const arraySink = [];
|
|
63539
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
63540
|
-
reader.enterPath(i);
|
|
63541
|
-
selectType$t(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
63542
|
-
reader.exitPath();
|
|
63543
|
-
}
|
|
63544
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
63545
|
-
}
|
|
63546
|
-
else {
|
|
63547
|
-
selectType$t(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
63548
|
-
}
|
|
63549
|
-
reader.exitPath();
|
|
63550
|
-
return sink;
|
|
62580
|
+
function buildSelectionForField$t(source, reader, sel, variables, fragments) {
|
|
62581
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$s, getFieldType$N, selectType$t);
|
|
63551
62582
|
}
|
|
63552
|
-
function buildSelectionForNode$
|
|
63553
|
-
|
|
63554
|
-
if (selectionNode.directives) {
|
|
63555
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
63556
|
-
if (selectionWithDirectives === undefined) {
|
|
63557
|
-
return;
|
|
63558
|
-
}
|
|
63559
|
-
selectionNode = selectionWithDirectives;
|
|
63560
|
-
}
|
|
63561
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
63562
|
-
if (isFragmentApplicable$t(selectionNode, source.data.__typename)) {
|
|
63563
|
-
// Get selections out of the inline fragment
|
|
63564
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
63565
|
-
// Call into field handling with selections
|
|
63566
|
-
Object.assign(sink, buildSelectionForNode$s(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
63567
|
-
});
|
|
63568
|
-
}
|
|
63569
|
-
}
|
|
63570
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
63571
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
63572
|
-
if (namedFragment && isFragmentApplicable$t(namedFragment, source.data.__typename)) {
|
|
63573
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
63574
|
-
// Call into field handling with selections
|
|
63575
|
-
Object.assign(sink, buildSelectionForNode$s(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
63576
|
-
});
|
|
63577
|
-
}
|
|
63578
|
-
}
|
|
63579
|
-
if (selectionNode.kind === "Field") {
|
|
63580
|
-
Object.assign(sink, buildSelectionForField$s(source, reader, selectionNode, variables));
|
|
63581
|
-
}
|
|
63582
|
-
return sink;
|
|
62583
|
+
function buildSelectionForNode$t(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
62584
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$t, buildSelectionForField$t);
|
|
63583
62585
|
}
|
|
63584
62586
|
function select$C(field, variables, fragments) {
|
|
63585
62587
|
return (source, reader) => {
|
|
63586
62588
|
var _a;
|
|
63587
62589
|
const sink = {};
|
|
63588
62590
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
63589
|
-
const builtSelection = buildSelectionForNode$
|
|
62591
|
+
const builtSelection = buildSelectionForNode$t(source, reader, field, sel, variables, fragments);
|
|
63590
62592
|
if (builtSelection !== undefined) {
|
|
63591
62593
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
63592
62594
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -63728,79 +62730,18 @@ function selectType$s(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
63728
62730
|
}
|
|
63729
62731
|
return sink;
|
|
63730
62732
|
}
|
|
63731
|
-
function buildSelectionForField$
|
|
63732
|
-
|
|
63733
|
-
const fieldData = getFieldData$r(source, sel, variables);
|
|
63734
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
63735
|
-
reader.enterPath(requestedFieldName);
|
|
63736
|
-
if (fieldData === undefined) {
|
|
63737
|
-
reader.markMissing();
|
|
63738
|
-
reader.exitPath();
|
|
63739
|
-
return;
|
|
63740
|
-
}
|
|
63741
|
-
if (fieldData === null) {
|
|
63742
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
63743
|
-
return sink;
|
|
63744
|
-
}
|
|
63745
|
-
const fieldType = getFieldType$M(sel);
|
|
63746
|
-
if (fieldType === undefined) {
|
|
63747
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
63748
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
63749
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
63750
|
-
}
|
|
63751
|
-
else if (fieldType.isArray) {
|
|
63752
|
-
const arraySink = [];
|
|
63753
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
63754
|
-
reader.enterPath(i);
|
|
63755
|
-
selectType$s(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
63756
|
-
reader.exitPath();
|
|
63757
|
-
}
|
|
63758
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
63759
|
-
}
|
|
63760
|
-
else {
|
|
63761
|
-
selectType$s(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
63762
|
-
}
|
|
63763
|
-
reader.exitPath();
|
|
63764
|
-
return sink;
|
|
62733
|
+
function buildSelectionForField$s(source, reader, sel, variables, fragments) {
|
|
62734
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$r, getFieldType$M, selectType$s);
|
|
63765
62735
|
}
|
|
63766
|
-
function buildSelectionForNode$
|
|
63767
|
-
|
|
63768
|
-
if (selectionNode.directives) {
|
|
63769
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
63770
|
-
if (selectionWithDirectives === undefined) {
|
|
63771
|
-
return;
|
|
63772
|
-
}
|
|
63773
|
-
selectionNode = selectionWithDirectives;
|
|
63774
|
-
}
|
|
63775
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
63776
|
-
if (isFragmentApplicable$s(selectionNode, source.data.__typename)) {
|
|
63777
|
-
// Get selections out of the inline fragment
|
|
63778
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
63779
|
-
// Call into field handling with selections
|
|
63780
|
-
Object.assign(sink, buildSelectionForNode$r(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
63781
|
-
});
|
|
63782
|
-
}
|
|
63783
|
-
}
|
|
63784
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
63785
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
63786
|
-
if (namedFragment && isFragmentApplicable$s(namedFragment, source.data.__typename)) {
|
|
63787
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
63788
|
-
// Call into field handling with selections
|
|
63789
|
-
Object.assign(sink, buildSelectionForNode$r(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
63790
|
-
});
|
|
63791
|
-
}
|
|
63792
|
-
}
|
|
63793
|
-
if (selectionNode.kind === "Field") {
|
|
63794
|
-
Object.assign(sink, buildSelectionForField$r(source, reader, selectionNode, variables));
|
|
63795
|
-
}
|
|
63796
|
-
return sink;
|
|
62736
|
+
function buildSelectionForNode$s(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
62737
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$s, buildSelectionForField$s);
|
|
63797
62738
|
}
|
|
63798
62739
|
function select$B(field, variables, fragments) {
|
|
63799
62740
|
return (source, reader) => {
|
|
63800
62741
|
var _a;
|
|
63801
62742
|
const sink = {};
|
|
63802
62743
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
63803
|
-
const builtSelection = buildSelectionForNode$
|
|
62744
|
+
const builtSelection = buildSelectionForNode$s(source, reader, field, sel, variables, fragments);
|
|
63804
62745
|
if (builtSelection !== undefined) {
|
|
63805
62746
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
63806
62747
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -63942,79 +62883,18 @@ function selectType$r(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
63942
62883
|
}
|
|
63943
62884
|
return sink;
|
|
63944
62885
|
}
|
|
63945
|
-
function buildSelectionForField$
|
|
63946
|
-
|
|
63947
|
-
const fieldData = getFieldData$q(source, sel, variables);
|
|
63948
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
63949
|
-
reader.enterPath(requestedFieldName);
|
|
63950
|
-
if (fieldData === undefined) {
|
|
63951
|
-
reader.markMissing();
|
|
63952
|
-
reader.exitPath();
|
|
63953
|
-
return;
|
|
63954
|
-
}
|
|
63955
|
-
if (fieldData === null) {
|
|
63956
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
63957
|
-
return sink;
|
|
63958
|
-
}
|
|
63959
|
-
const fieldType = getFieldType$L(sel);
|
|
63960
|
-
if (fieldType === undefined) {
|
|
63961
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
63962
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
63963
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
63964
|
-
}
|
|
63965
|
-
else if (fieldType.isArray) {
|
|
63966
|
-
const arraySink = [];
|
|
63967
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
63968
|
-
reader.enterPath(i);
|
|
63969
|
-
selectType$r(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
63970
|
-
reader.exitPath();
|
|
63971
|
-
}
|
|
63972
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
63973
|
-
}
|
|
63974
|
-
else {
|
|
63975
|
-
selectType$r(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
63976
|
-
}
|
|
63977
|
-
reader.exitPath();
|
|
63978
|
-
return sink;
|
|
62886
|
+
function buildSelectionForField$r(source, reader, sel, variables, fragments) {
|
|
62887
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$q, getFieldType$L, selectType$r);
|
|
63979
62888
|
}
|
|
63980
|
-
function buildSelectionForNode$
|
|
63981
|
-
|
|
63982
|
-
if (selectionNode.directives) {
|
|
63983
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
63984
|
-
if (selectionWithDirectives === undefined) {
|
|
63985
|
-
return;
|
|
63986
|
-
}
|
|
63987
|
-
selectionNode = selectionWithDirectives;
|
|
63988
|
-
}
|
|
63989
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
63990
|
-
if (isFragmentApplicable$r(selectionNode, source.data.__typename)) {
|
|
63991
|
-
// Get selections out of the inline fragment
|
|
63992
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
63993
|
-
// Call into field handling with selections
|
|
63994
|
-
Object.assign(sink, buildSelectionForNode$q(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
63995
|
-
});
|
|
63996
|
-
}
|
|
63997
|
-
}
|
|
63998
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
63999
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
64000
|
-
if (namedFragment && isFragmentApplicable$r(namedFragment, source.data.__typename)) {
|
|
64001
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
64002
|
-
// Call into field handling with selections
|
|
64003
|
-
Object.assign(sink, buildSelectionForNode$q(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
64004
|
-
});
|
|
64005
|
-
}
|
|
64006
|
-
}
|
|
64007
|
-
if (selectionNode.kind === "Field") {
|
|
64008
|
-
Object.assign(sink, buildSelectionForField$q(source, reader, selectionNode, variables));
|
|
64009
|
-
}
|
|
64010
|
-
return sink;
|
|
62889
|
+
function buildSelectionForNode$r(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
62890
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$r, buildSelectionForField$r);
|
|
64011
62891
|
}
|
|
64012
62892
|
function select$A(field, variables, fragments) {
|
|
64013
62893
|
return (source, reader) => {
|
|
64014
62894
|
var _a;
|
|
64015
62895
|
const sink = {};
|
|
64016
62896
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
64017
|
-
const builtSelection = buildSelectionForNode$
|
|
62897
|
+
const builtSelection = buildSelectionForNode$r(source, reader, field, sel, variables, fragments);
|
|
64018
62898
|
if (builtSelection !== undefined) {
|
|
64019
62899
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
64020
62900
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -64156,79 +63036,18 @@ function selectType$q(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
64156
63036
|
}
|
|
64157
63037
|
return sink;
|
|
64158
63038
|
}
|
|
64159
|
-
function buildSelectionForField$
|
|
64160
|
-
|
|
64161
|
-
const fieldData = getFieldData$p(source, sel, variables);
|
|
64162
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
64163
|
-
reader.enterPath(requestedFieldName);
|
|
64164
|
-
if (fieldData === undefined) {
|
|
64165
|
-
reader.markMissing();
|
|
64166
|
-
reader.exitPath();
|
|
64167
|
-
return;
|
|
64168
|
-
}
|
|
64169
|
-
if (fieldData === null) {
|
|
64170
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
64171
|
-
return sink;
|
|
64172
|
-
}
|
|
64173
|
-
const fieldType = getFieldType$K(sel);
|
|
64174
|
-
if (fieldType === undefined) {
|
|
64175
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
64176
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
64177
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
64178
|
-
}
|
|
64179
|
-
else if (fieldType.isArray) {
|
|
64180
|
-
const arraySink = [];
|
|
64181
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
64182
|
-
reader.enterPath(i);
|
|
64183
|
-
selectType$q(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
64184
|
-
reader.exitPath();
|
|
64185
|
-
}
|
|
64186
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
64187
|
-
}
|
|
64188
|
-
else {
|
|
64189
|
-
selectType$q(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
64190
|
-
}
|
|
64191
|
-
reader.exitPath();
|
|
64192
|
-
return sink;
|
|
63039
|
+
function buildSelectionForField$q(source, reader, sel, variables, fragments) {
|
|
63040
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$p, getFieldType$K, selectType$q);
|
|
64193
63041
|
}
|
|
64194
|
-
function buildSelectionForNode$
|
|
64195
|
-
|
|
64196
|
-
if (selectionNode.directives) {
|
|
64197
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
64198
|
-
if (selectionWithDirectives === undefined) {
|
|
64199
|
-
return;
|
|
64200
|
-
}
|
|
64201
|
-
selectionNode = selectionWithDirectives;
|
|
64202
|
-
}
|
|
64203
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
64204
|
-
if (isFragmentApplicable$q(selectionNode, source.data.__typename)) {
|
|
64205
|
-
// Get selections out of the inline fragment
|
|
64206
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
64207
|
-
// Call into field handling with selections
|
|
64208
|
-
Object.assign(sink, buildSelectionForNode$p(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
64209
|
-
});
|
|
64210
|
-
}
|
|
64211
|
-
}
|
|
64212
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
64213
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
64214
|
-
if (namedFragment && isFragmentApplicable$q(namedFragment, source.data.__typename)) {
|
|
64215
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
64216
|
-
// Call into field handling with selections
|
|
64217
|
-
Object.assign(sink, buildSelectionForNode$p(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
64218
|
-
});
|
|
64219
|
-
}
|
|
64220
|
-
}
|
|
64221
|
-
if (selectionNode.kind === "Field") {
|
|
64222
|
-
Object.assign(sink, buildSelectionForField$p(source, reader, selectionNode, variables));
|
|
64223
|
-
}
|
|
64224
|
-
return sink;
|
|
63042
|
+
function buildSelectionForNode$q(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
63043
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$q, buildSelectionForField$q);
|
|
64225
63044
|
}
|
|
64226
63045
|
function select$z(field, variables, fragments) {
|
|
64227
63046
|
return (source, reader) => {
|
|
64228
63047
|
var _a;
|
|
64229
63048
|
const sink = {};
|
|
64230
63049
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
64231
|
-
const builtSelection = buildSelectionForNode$
|
|
63050
|
+
const builtSelection = buildSelectionForNode$q(source, reader, field, sel, variables, fragments);
|
|
64232
63051
|
if (builtSelection !== undefined) {
|
|
64233
63052
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
64234
63053
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -64376,79 +63195,18 @@ function selectType$p(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
64376
63195
|
}
|
|
64377
63196
|
return sink;
|
|
64378
63197
|
}
|
|
64379
|
-
function buildSelectionForField$
|
|
64380
|
-
|
|
64381
|
-
const fieldData = getFieldData$o(source, sel, variables);
|
|
64382
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
64383
|
-
reader.enterPath(requestedFieldName);
|
|
64384
|
-
if (fieldData === undefined) {
|
|
64385
|
-
reader.markMissing();
|
|
64386
|
-
reader.exitPath();
|
|
64387
|
-
return;
|
|
64388
|
-
}
|
|
64389
|
-
if (fieldData === null) {
|
|
64390
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
64391
|
-
return sink;
|
|
64392
|
-
}
|
|
64393
|
-
const fieldType = getFieldType$J(sel);
|
|
64394
|
-
if (fieldType === undefined) {
|
|
64395
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
64396
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
64397
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
64398
|
-
}
|
|
64399
|
-
else if (fieldType.isArray) {
|
|
64400
|
-
const arraySink = [];
|
|
64401
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
64402
|
-
reader.enterPath(i);
|
|
64403
|
-
selectType$p(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
64404
|
-
reader.exitPath();
|
|
64405
|
-
}
|
|
64406
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
64407
|
-
}
|
|
64408
|
-
else {
|
|
64409
|
-
selectType$p(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
64410
|
-
}
|
|
64411
|
-
reader.exitPath();
|
|
64412
|
-
return sink;
|
|
63198
|
+
function buildSelectionForField$p(source, reader, sel, variables, fragments) {
|
|
63199
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$o, getFieldType$J, selectType$p);
|
|
64413
63200
|
}
|
|
64414
|
-
function buildSelectionForNode$
|
|
64415
|
-
|
|
64416
|
-
if (selectionNode.directives) {
|
|
64417
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
64418
|
-
if (selectionWithDirectives === undefined) {
|
|
64419
|
-
return;
|
|
64420
|
-
}
|
|
64421
|
-
selectionNode = selectionWithDirectives;
|
|
64422
|
-
}
|
|
64423
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
64424
|
-
if (isFragmentApplicable$p(selectionNode, source.data.__typename)) {
|
|
64425
|
-
// Get selections out of the inline fragment
|
|
64426
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
64427
|
-
// Call into field handling with selections
|
|
64428
|
-
Object.assign(sink, buildSelectionForNode$o(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
64429
|
-
});
|
|
64430
|
-
}
|
|
64431
|
-
}
|
|
64432
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
64433
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
64434
|
-
if (namedFragment && isFragmentApplicable$p(namedFragment, source.data.__typename)) {
|
|
64435
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
64436
|
-
// Call into field handling with selections
|
|
64437
|
-
Object.assign(sink, buildSelectionForNode$o(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
64438
|
-
});
|
|
64439
|
-
}
|
|
64440
|
-
}
|
|
64441
|
-
if (selectionNode.kind === "Field") {
|
|
64442
|
-
Object.assign(sink, buildSelectionForField$o(source, reader, selectionNode, variables));
|
|
64443
|
-
}
|
|
64444
|
-
return sink;
|
|
63201
|
+
function buildSelectionForNode$p(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
63202
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$p, buildSelectionForField$p);
|
|
64445
63203
|
}
|
|
64446
63204
|
function select$y(field, variables, fragments) {
|
|
64447
63205
|
return (source, reader) => {
|
|
64448
63206
|
var _a;
|
|
64449
63207
|
const sink = {};
|
|
64450
63208
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
64451
|
-
const builtSelection = buildSelectionForNode$
|
|
63209
|
+
const builtSelection = buildSelectionForNode$p(source, reader, field, sel, variables, fragments);
|
|
64452
63210
|
if (builtSelection !== undefined) {
|
|
64453
63211
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
64454
63212
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -64590,79 +63348,18 @@ function selectType$o(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
64590
63348
|
}
|
|
64591
63349
|
return sink;
|
|
64592
63350
|
}
|
|
64593
|
-
function buildSelectionForField$
|
|
64594
|
-
|
|
64595
|
-
const fieldData = getFieldData$n(source, sel, variables);
|
|
64596
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
64597
|
-
reader.enterPath(requestedFieldName);
|
|
64598
|
-
if (fieldData === undefined) {
|
|
64599
|
-
reader.markMissing();
|
|
64600
|
-
reader.exitPath();
|
|
64601
|
-
return;
|
|
64602
|
-
}
|
|
64603
|
-
if (fieldData === null) {
|
|
64604
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
64605
|
-
return sink;
|
|
64606
|
-
}
|
|
64607
|
-
const fieldType = getFieldType$I(sel);
|
|
64608
|
-
if (fieldType === undefined) {
|
|
64609
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
64610
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
64611
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
64612
|
-
}
|
|
64613
|
-
else if (fieldType.isArray) {
|
|
64614
|
-
const arraySink = [];
|
|
64615
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
64616
|
-
reader.enterPath(i);
|
|
64617
|
-
selectType$o(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
64618
|
-
reader.exitPath();
|
|
64619
|
-
}
|
|
64620
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
64621
|
-
}
|
|
64622
|
-
else {
|
|
64623
|
-
selectType$o(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
64624
|
-
}
|
|
64625
|
-
reader.exitPath();
|
|
64626
|
-
return sink;
|
|
63351
|
+
function buildSelectionForField$o(source, reader, sel, variables, fragments) {
|
|
63352
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$n, getFieldType$I, selectType$o);
|
|
64627
63353
|
}
|
|
64628
|
-
function buildSelectionForNode$
|
|
64629
|
-
|
|
64630
|
-
if (selectionNode.directives) {
|
|
64631
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
64632
|
-
if (selectionWithDirectives === undefined) {
|
|
64633
|
-
return;
|
|
64634
|
-
}
|
|
64635
|
-
selectionNode = selectionWithDirectives;
|
|
64636
|
-
}
|
|
64637
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
64638
|
-
if (isFragmentApplicable$o(selectionNode, source.data.__typename)) {
|
|
64639
|
-
// Get selections out of the inline fragment
|
|
64640
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
64641
|
-
// Call into field handling with selections
|
|
64642
|
-
Object.assign(sink, buildSelectionForNode$n(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
64643
|
-
});
|
|
64644
|
-
}
|
|
64645
|
-
}
|
|
64646
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
64647
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
64648
|
-
if (namedFragment && isFragmentApplicable$o(namedFragment, source.data.__typename)) {
|
|
64649
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
64650
|
-
// Call into field handling with selections
|
|
64651
|
-
Object.assign(sink, buildSelectionForNode$n(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
64652
|
-
});
|
|
64653
|
-
}
|
|
64654
|
-
}
|
|
64655
|
-
if (selectionNode.kind === "Field") {
|
|
64656
|
-
Object.assign(sink, buildSelectionForField$n(source, reader, selectionNode, variables));
|
|
64657
|
-
}
|
|
64658
|
-
return sink;
|
|
63354
|
+
function buildSelectionForNode$o(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
63355
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$o, buildSelectionForField$o);
|
|
64659
63356
|
}
|
|
64660
63357
|
function select$x(field, variables, fragments) {
|
|
64661
63358
|
return (source, reader) => {
|
|
64662
63359
|
var _a;
|
|
64663
63360
|
const sink = {};
|
|
64664
63361
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
64665
|
-
const builtSelection = buildSelectionForNode$
|
|
63362
|
+
const builtSelection = buildSelectionForNode$o(source, reader, field, sel, variables, fragments);
|
|
64666
63363
|
if (builtSelection !== undefined) {
|
|
64667
63364
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
64668
63365
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -64804,79 +63501,18 @@ function selectType$n(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
64804
63501
|
}
|
|
64805
63502
|
return sink;
|
|
64806
63503
|
}
|
|
64807
|
-
function buildSelectionForField$
|
|
64808
|
-
|
|
64809
|
-
const fieldData = getFieldData$m(source, sel, variables);
|
|
64810
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
64811
|
-
reader.enterPath(requestedFieldName);
|
|
64812
|
-
if (fieldData === undefined) {
|
|
64813
|
-
reader.markMissing();
|
|
64814
|
-
reader.exitPath();
|
|
64815
|
-
return;
|
|
64816
|
-
}
|
|
64817
|
-
if (fieldData === null) {
|
|
64818
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
64819
|
-
return sink;
|
|
64820
|
-
}
|
|
64821
|
-
const fieldType = getFieldType$H(sel);
|
|
64822
|
-
if (fieldType === undefined) {
|
|
64823
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
64824
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
64825
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
64826
|
-
}
|
|
64827
|
-
else if (fieldType.isArray) {
|
|
64828
|
-
const arraySink = [];
|
|
64829
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
64830
|
-
reader.enterPath(i);
|
|
64831
|
-
selectType$n(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
64832
|
-
reader.exitPath();
|
|
64833
|
-
}
|
|
64834
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
64835
|
-
}
|
|
64836
|
-
else {
|
|
64837
|
-
selectType$n(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
64838
|
-
}
|
|
64839
|
-
reader.exitPath();
|
|
64840
|
-
return sink;
|
|
63504
|
+
function buildSelectionForField$n(source, reader, sel, variables, fragments) {
|
|
63505
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$m, getFieldType$H, selectType$n);
|
|
64841
63506
|
}
|
|
64842
|
-
function buildSelectionForNode$
|
|
64843
|
-
|
|
64844
|
-
if (selectionNode.directives) {
|
|
64845
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
64846
|
-
if (selectionWithDirectives === undefined) {
|
|
64847
|
-
return;
|
|
64848
|
-
}
|
|
64849
|
-
selectionNode = selectionWithDirectives;
|
|
64850
|
-
}
|
|
64851
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
64852
|
-
if (isFragmentApplicable$n(selectionNode, source.data.__typename)) {
|
|
64853
|
-
// Get selections out of the inline fragment
|
|
64854
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
64855
|
-
// Call into field handling with selections
|
|
64856
|
-
Object.assign(sink, buildSelectionForNode$m(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
64857
|
-
});
|
|
64858
|
-
}
|
|
64859
|
-
}
|
|
64860
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
64861
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
64862
|
-
if (namedFragment && isFragmentApplicable$n(namedFragment, source.data.__typename)) {
|
|
64863
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
64864
|
-
// Call into field handling with selections
|
|
64865
|
-
Object.assign(sink, buildSelectionForNode$m(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
64866
|
-
});
|
|
64867
|
-
}
|
|
64868
|
-
}
|
|
64869
|
-
if (selectionNode.kind === "Field") {
|
|
64870
|
-
Object.assign(sink, buildSelectionForField$m(source, reader, selectionNode, variables));
|
|
64871
|
-
}
|
|
64872
|
-
return sink;
|
|
63507
|
+
function buildSelectionForNode$n(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
63508
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$n, buildSelectionForField$n);
|
|
64873
63509
|
}
|
|
64874
63510
|
function select$w(field, variables, fragments) {
|
|
64875
63511
|
return (source, reader) => {
|
|
64876
63512
|
var _a;
|
|
64877
63513
|
const sink = {};
|
|
64878
63514
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
64879
|
-
const builtSelection = buildSelectionForNode$
|
|
63515
|
+
const builtSelection = buildSelectionForNode$n(source, reader, field, sel, variables, fragments);
|
|
64880
63516
|
if (builtSelection !== undefined) {
|
|
64881
63517
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
64882
63518
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -65024,79 +63660,18 @@ function selectType$m(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
65024
63660
|
}
|
|
65025
63661
|
return sink;
|
|
65026
63662
|
}
|
|
65027
|
-
function buildSelectionForField$
|
|
65028
|
-
|
|
65029
|
-
const fieldData = getFieldData$l(source, sel, variables);
|
|
65030
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
65031
|
-
reader.enterPath(requestedFieldName);
|
|
65032
|
-
if (fieldData === undefined) {
|
|
65033
|
-
reader.markMissing();
|
|
65034
|
-
reader.exitPath();
|
|
65035
|
-
return;
|
|
65036
|
-
}
|
|
65037
|
-
if (fieldData === null) {
|
|
65038
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
65039
|
-
return sink;
|
|
65040
|
-
}
|
|
65041
|
-
const fieldType = getFieldType$G(sel);
|
|
65042
|
-
if (fieldType === undefined) {
|
|
65043
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
65044
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
65045
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
65046
|
-
}
|
|
65047
|
-
else if (fieldType.isArray) {
|
|
65048
|
-
const arraySink = [];
|
|
65049
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
65050
|
-
reader.enterPath(i);
|
|
65051
|
-
selectType$m(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
65052
|
-
reader.exitPath();
|
|
65053
|
-
}
|
|
65054
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
65055
|
-
}
|
|
65056
|
-
else {
|
|
65057
|
-
selectType$m(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
65058
|
-
}
|
|
65059
|
-
reader.exitPath();
|
|
65060
|
-
return sink;
|
|
63663
|
+
function buildSelectionForField$m(source, reader, sel, variables, fragments) {
|
|
63664
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$l, getFieldType$G, selectType$m);
|
|
65061
63665
|
}
|
|
65062
|
-
function buildSelectionForNode$
|
|
65063
|
-
|
|
65064
|
-
if (selectionNode.directives) {
|
|
65065
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
65066
|
-
if (selectionWithDirectives === undefined) {
|
|
65067
|
-
return;
|
|
65068
|
-
}
|
|
65069
|
-
selectionNode = selectionWithDirectives;
|
|
65070
|
-
}
|
|
65071
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
65072
|
-
if (isFragmentApplicable$m(selectionNode, source.data.__typename)) {
|
|
65073
|
-
// Get selections out of the inline fragment
|
|
65074
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
65075
|
-
// Call into field handling with selections
|
|
65076
|
-
Object.assign(sink, buildSelectionForNode$l(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
65077
|
-
});
|
|
65078
|
-
}
|
|
65079
|
-
}
|
|
65080
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
65081
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
65082
|
-
if (namedFragment && isFragmentApplicable$m(namedFragment, source.data.__typename)) {
|
|
65083
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
65084
|
-
// Call into field handling with selections
|
|
65085
|
-
Object.assign(sink, buildSelectionForNode$l(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
65086
|
-
});
|
|
65087
|
-
}
|
|
65088
|
-
}
|
|
65089
|
-
if (selectionNode.kind === "Field") {
|
|
65090
|
-
Object.assign(sink, buildSelectionForField$l(source, reader, selectionNode, variables));
|
|
65091
|
-
}
|
|
65092
|
-
return sink;
|
|
63666
|
+
function buildSelectionForNode$m(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
63667
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$m, buildSelectionForField$m);
|
|
65093
63668
|
}
|
|
65094
63669
|
function select$v(field, variables, fragments) {
|
|
65095
63670
|
return (source, reader) => {
|
|
65096
63671
|
var _a;
|
|
65097
63672
|
const sink = {};
|
|
65098
63673
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
65099
|
-
const builtSelection = buildSelectionForNode$
|
|
63674
|
+
const builtSelection = buildSelectionForNode$m(source, reader, field, sel, variables, fragments);
|
|
65100
63675
|
if (builtSelection !== undefined) {
|
|
65101
63676
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
65102
63677
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -65244,79 +63819,18 @@ function selectType$l(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
65244
63819
|
}
|
|
65245
63820
|
return sink;
|
|
65246
63821
|
}
|
|
65247
|
-
function buildSelectionForField$
|
|
65248
|
-
|
|
65249
|
-
const fieldData = getFieldData$k(source, sel, variables);
|
|
65250
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
65251
|
-
reader.enterPath(requestedFieldName);
|
|
65252
|
-
if (fieldData === undefined) {
|
|
65253
|
-
reader.markMissing();
|
|
65254
|
-
reader.exitPath();
|
|
65255
|
-
return;
|
|
65256
|
-
}
|
|
65257
|
-
if (fieldData === null) {
|
|
65258
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
65259
|
-
return sink;
|
|
65260
|
-
}
|
|
65261
|
-
const fieldType = getFieldType$F(sel);
|
|
65262
|
-
if (fieldType === undefined) {
|
|
65263
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
65264
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
65265
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
65266
|
-
}
|
|
65267
|
-
else if (fieldType.isArray) {
|
|
65268
|
-
const arraySink = [];
|
|
65269
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
65270
|
-
reader.enterPath(i);
|
|
65271
|
-
selectType$l(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
65272
|
-
reader.exitPath();
|
|
65273
|
-
}
|
|
65274
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
65275
|
-
}
|
|
65276
|
-
else {
|
|
65277
|
-
selectType$l(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
65278
|
-
}
|
|
65279
|
-
reader.exitPath();
|
|
65280
|
-
return sink;
|
|
63822
|
+
function buildSelectionForField$l(source, reader, sel, variables, fragments) {
|
|
63823
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$k, getFieldType$F, selectType$l);
|
|
65281
63824
|
}
|
|
65282
|
-
function buildSelectionForNode$
|
|
65283
|
-
|
|
65284
|
-
if (selectionNode.directives) {
|
|
65285
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
65286
|
-
if (selectionWithDirectives === undefined) {
|
|
65287
|
-
return;
|
|
65288
|
-
}
|
|
65289
|
-
selectionNode = selectionWithDirectives;
|
|
65290
|
-
}
|
|
65291
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
65292
|
-
if (isFragmentApplicable$l(selectionNode, source.data.__typename)) {
|
|
65293
|
-
// Get selections out of the inline fragment
|
|
65294
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
65295
|
-
// Call into field handling with selections
|
|
65296
|
-
Object.assign(sink, buildSelectionForNode$k(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
65297
|
-
});
|
|
65298
|
-
}
|
|
65299
|
-
}
|
|
65300
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
65301
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
65302
|
-
if (namedFragment && isFragmentApplicable$l(namedFragment, source.data.__typename)) {
|
|
65303
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
65304
|
-
// Call into field handling with selections
|
|
65305
|
-
Object.assign(sink, buildSelectionForNode$k(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
65306
|
-
});
|
|
65307
|
-
}
|
|
65308
|
-
}
|
|
65309
|
-
if (selectionNode.kind === "Field") {
|
|
65310
|
-
Object.assign(sink, buildSelectionForField$k(source, reader, selectionNode, variables));
|
|
65311
|
-
}
|
|
65312
|
-
return sink;
|
|
63825
|
+
function buildSelectionForNode$l(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
63826
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$l, buildSelectionForField$l);
|
|
65313
63827
|
}
|
|
65314
63828
|
function select$u(field, variables, fragments) {
|
|
65315
63829
|
return (source, reader) => {
|
|
65316
63830
|
var _a;
|
|
65317
63831
|
const sink = {};
|
|
65318
63832
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
65319
|
-
const builtSelection = buildSelectionForNode$
|
|
63833
|
+
const builtSelection = buildSelectionForNode$l(source, reader, field, sel, variables, fragments);
|
|
65320
63834
|
if (builtSelection !== undefined) {
|
|
65321
63835
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
65322
63836
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -65458,79 +63972,18 @@ function selectType$k(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
65458
63972
|
}
|
|
65459
63973
|
return sink;
|
|
65460
63974
|
}
|
|
65461
|
-
function buildSelectionForField$
|
|
65462
|
-
|
|
65463
|
-
const fieldData = getFieldData$j(source, sel, variables);
|
|
65464
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
65465
|
-
reader.enterPath(requestedFieldName);
|
|
65466
|
-
if (fieldData === undefined) {
|
|
65467
|
-
reader.markMissing();
|
|
65468
|
-
reader.exitPath();
|
|
65469
|
-
return;
|
|
65470
|
-
}
|
|
65471
|
-
if (fieldData === null) {
|
|
65472
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
65473
|
-
return sink;
|
|
65474
|
-
}
|
|
65475
|
-
const fieldType = getFieldType$E(sel);
|
|
65476
|
-
if (fieldType === undefined) {
|
|
65477
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
65478
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
65479
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
65480
|
-
}
|
|
65481
|
-
else if (fieldType.isArray) {
|
|
65482
|
-
const arraySink = [];
|
|
65483
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
65484
|
-
reader.enterPath(i);
|
|
65485
|
-
selectType$k(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
65486
|
-
reader.exitPath();
|
|
65487
|
-
}
|
|
65488
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
65489
|
-
}
|
|
65490
|
-
else {
|
|
65491
|
-
selectType$k(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
65492
|
-
}
|
|
65493
|
-
reader.exitPath();
|
|
65494
|
-
return sink;
|
|
63975
|
+
function buildSelectionForField$k(source, reader, sel, variables, fragments) {
|
|
63976
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$j, getFieldType$E, selectType$k);
|
|
65495
63977
|
}
|
|
65496
|
-
function buildSelectionForNode$
|
|
65497
|
-
|
|
65498
|
-
if (selectionNode.directives) {
|
|
65499
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
65500
|
-
if (selectionWithDirectives === undefined) {
|
|
65501
|
-
return;
|
|
65502
|
-
}
|
|
65503
|
-
selectionNode = selectionWithDirectives;
|
|
65504
|
-
}
|
|
65505
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
65506
|
-
if (isFragmentApplicable$k(selectionNode, source.data.__typename)) {
|
|
65507
|
-
// Get selections out of the inline fragment
|
|
65508
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
65509
|
-
// Call into field handling with selections
|
|
65510
|
-
Object.assign(sink, buildSelectionForNode$j(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
65511
|
-
});
|
|
65512
|
-
}
|
|
65513
|
-
}
|
|
65514
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
65515
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
65516
|
-
if (namedFragment && isFragmentApplicable$k(namedFragment, source.data.__typename)) {
|
|
65517
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
65518
|
-
// Call into field handling with selections
|
|
65519
|
-
Object.assign(sink, buildSelectionForNode$j(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
65520
|
-
});
|
|
65521
|
-
}
|
|
65522
|
-
}
|
|
65523
|
-
if (selectionNode.kind === "Field") {
|
|
65524
|
-
Object.assign(sink, buildSelectionForField$j(source, reader, selectionNode, variables));
|
|
65525
|
-
}
|
|
65526
|
-
return sink;
|
|
63978
|
+
function buildSelectionForNode$k(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
63979
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$k, buildSelectionForField$k);
|
|
65527
63980
|
}
|
|
65528
63981
|
function select$t(field, variables, fragments) {
|
|
65529
63982
|
return (source, reader) => {
|
|
65530
63983
|
var _a;
|
|
65531
63984
|
const sink = {};
|
|
65532
63985
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
65533
|
-
const builtSelection = buildSelectionForNode$
|
|
63986
|
+
const builtSelection = buildSelectionForNode$k(source, reader, field, sel, variables, fragments);
|
|
65534
63987
|
if (builtSelection !== undefined) {
|
|
65535
63988
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
65536
63989
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -66531,79 +64984,18 @@ function selectType$i(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
66531
64984
|
}
|
|
66532
64985
|
return sink;
|
|
66533
64986
|
}
|
|
66534
|
-
function buildSelectionForField$
|
|
66535
|
-
|
|
66536
|
-
const fieldData = getFieldData$h(source, sel, variables);
|
|
66537
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
66538
|
-
reader.enterPath(requestedFieldName);
|
|
66539
|
-
if (fieldData === undefined) {
|
|
66540
|
-
reader.markMissing();
|
|
66541
|
-
reader.exitPath();
|
|
66542
|
-
return;
|
|
66543
|
-
}
|
|
66544
|
-
if (fieldData === null) {
|
|
66545
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
66546
|
-
return sink;
|
|
66547
|
-
}
|
|
66548
|
-
const fieldType = getFieldType$B(sel);
|
|
66549
|
-
if (fieldType === undefined) {
|
|
66550
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
66551
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
66552
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
66553
|
-
}
|
|
66554
|
-
else if (fieldType.isArray) {
|
|
66555
|
-
const arraySink = [];
|
|
66556
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
66557
|
-
reader.enterPath(i);
|
|
66558
|
-
selectType$i(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
66559
|
-
reader.exitPath();
|
|
66560
|
-
}
|
|
66561
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
66562
|
-
}
|
|
66563
|
-
else {
|
|
66564
|
-
selectType$i(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
66565
|
-
}
|
|
66566
|
-
reader.exitPath();
|
|
66567
|
-
return sink;
|
|
64987
|
+
function buildSelectionForField$j(source, reader, sel, variables, fragments) {
|
|
64988
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$h, getFieldType$B, selectType$i);
|
|
66568
64989
|
}
|
|
66569
|
-
function buildSelectionForNode$
|
|
66570
|
-
|
|
66571
|
-
if (selectionNode.directives) {
|
|
66572
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
66573
|
-
if (selectionWithDirectives === undefined) {
|
|
66574
|
-
return;
|
|
66575
|
-
}
|
|
66576
|
-
selectionNode = selectionWithDirectives;
|
|
66577
|
-
}
|
|
66578
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
66579
|
-
if (isFragmentApplicable$j(selectionNode, source.data.__typename)) {
|
|
66580
|
-
// Get selections out of the inline fragment
|
|
66581
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
66582
|
-
// Call into field handling with selections
|
|
66583
|
-
Object.assign(sink, buildSelectionForNode$i(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
66584
|
-
});
|
|
66585
|
-
}
|
|
66586
|
-
}
|
|
66587
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
66588
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
66589
|
-
if (namedFragment && isFragmentApplicable$j(namedFragment, source.data.__typename)) {
|
|
66590
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
66591
|
-
// Call into field handling with selections
|
|
66592
|
-
Object.assign(sink, buildSelectionForNode$i(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
66593
|
-
});
|
|
66594
|
-
}
|
|
66595
|
-
}
|
|
66596
|
-
if (selectionNode.kind === "Field") {
|
|
66597
|
-
Object.assign(sink, buildSelectionForField$i(source, reader, selectionNode, variables));
|
|
66598
|
-
}
|
|
66599
|
-
return sink;
|
|
64990
|
+
function buildSelectionForNode$j(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
64991
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$j, buildSelectionForField$j);
|
|
66600
64992
|
}
|
|
66601
64993
|
function select$r(field, variables, fragments) {
|
|
66602
64994
|
return (source, reader) => {
|
|
66603
64995
|
var _a;
|
|
66604
64996
|
const sink = {};
|
|
66605
64997
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
66606
|
-
const builtSelection = buildSelectionForNode$
|
|
64998
|
+
const builtSelection = buildSelectionForNode$j(source, reader, field, sel, variables, fragments);
|
|
66607
64999
|
if (builtSelection !== undefined) {
|
|
66608
65000
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
66609
65001
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -67447,7 +65839,7 @@ function selectType$h(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
67447
65839
|
}
|
|
67448
65840
|
else {
|
|
67449
65841
|
trimmedEdges = trimEdges(source.edges, startOffset, endOffset);
|
|
67450
|
-
maxOffset =
|
|
65842
|
+
maxOffset = findMaxOffset(metadata);
|
|
67451
65843
|
const listHasEnoughItems = (endOffset - 1 <= maxOffset);
|
|
67452
65844
|
if (trimmedEdges === undefined || !listHasEnoughItems) {
|
|
67453
65845
|
reader.markMissingLink(fieldData.__ref);
|
|
@@ -67485,72 +65877,11 @@ function selectType$h(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
67485
65877
|
}
|
|
67486
65878
|
return sink;
|
|
67487
65879
|
}
|
|
67488
|
-
function buildSelectionForField$
|
|
67489
|
-
|
|
67490
|
-
const fieldData = getFieldData$i(source, sel, variables);
|
|
67491
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
67492
|
-
reader.enterPath(requestedFieldName);
|
|
67493
|
-
if (fieldData === undefined) {
|
|
67494
|
-
reader.markMissing();
|
|
67495
|
-
reader.exitPath();
|
|
67496
|
-
return;
|
|
67497
|
-
}
|
|
67498
|
-
if (fieldData === null) {
|
|
67499
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
67500
|
-
return sink;
|
|
67501
|
-
}
|
|
67502
|
-
const fieldType = getFieldType$C(sel);
|
|
67503
|
-
if (fieldType === undefined) {
|
|
67504
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
67505
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
67506
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
67507
|
-
}
|
|
67508
|
-
else if (fieldType.isArray) {
|
|
67509
|
-
const arraySink = [];
|
|
67510
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
67511
|
-
reader.enterPath(i);
|
|
67512
|
-
selectType$j(fieldType.typename, sel, fieldData[i], reader, i, arraySink, variables, fragments);
|
|
67513
|
-
reader.exitPath();
|
|
67514
|
-
}
|
|
67515
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
67516
|
-
}
|
|
67517
|
-
else {
|
|
67518
|
-
selectType$j(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink, variables, fragments);
|
|
67519
|
-
}
|
|
67520
|
-
reader.exitPath();
|
|
67521
|
-
return sink;
|
|
65880
|
+
function buildSelectionForField$i(source, reader, sel, variables, fragments) {
|
|
65881
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$i, getFieldType$C, selectType$j);
|
|
67522
65882
|
}
|
|
67523
|
-
function buildSelectionForNode$
|
|
67524
|
-
|
|
67525
|
-
if (selectionNode.directives) {
|
|
67526
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
67527
|
-
if (selectionWithDirectives === undefined) {
|
|
67528
|
-
return;
|
|
67529
|
-
}
|
|
67530
|
-
selectionNode = selectionWithDirectives;
|
|
67531
|
-
}
|
|
67532
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
67533
|
-
if (isFragmentApplicable$i(selectionNode, source.data.__typename)) {
|
|
67534
|
-
// Get selections out of the inline fragment
|
|
67535
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
67536
|
-
// Call into field handling with selections
|
|
67537
|
-
Object.assign(sink, buildSelectionForNode$h(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
67538
|
-
});
|
|
67539
|
-
}
|
|
67540
|
-
}
|
|
67541
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
67542
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
67543
|
-
if (namedFragment && isFragmentApplicable$i(namedFragment, source.data.__typename)) {
|
|
67544
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
67545
|
-
// Call into field handling with selections
|
|
67546
|
-
Object.assign(sink, buildSelectionForNode$h(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
67547
|
-
});
|
|
67548
|
-
}
|
|
67549
|
-
}
|
|
67550
|
-
if (selectionNode.kind === "Field") {
|
|
67551
|
-
Object.assign(sink, buildSelectionForField$h(source, reader, selectionNode, variables, fragments));
|
|
67552
|
-
}
|
|
67553
|
-
return sink;
|
|
65883
|
+
function buildSelectionForNode$i(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
65884
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$i, buildSelectionForField$i);
|
|
67554
65885
|
}
|
|
67555
65886
|
function select$q(field, variables, fragments) {
|
|
67556
65887
|
return (source, reader) => {
|
|
@@ -67558,7 +65889,7 @@ function select$q(field, variables, fragments) {
|
|
|
67558
65889
|
const sink = {};
|
|
67559
65890
|
source = attachMappedData(source, reader);
|
|
67560
65891
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
67561
|
-
const builtSelection = buildSelectionForNode$
|
|
65892
|
+
const builtSelection = buildSelectionForNode$i(source, reader, field, sel, variables, fragments);
|
|
67562
65893
|
if (builtSelection !== undefined) {
|
|
67563
65894
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
67564
65895
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -68494,79 +66825,18 @@ function selectType$g(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
68494
66825
|
}
|
|
68495
66826
|
return sink;
|
|
68496
66827
|
}
|
|
68497
|
-
function buildSelectionForField$
|
|
68498
|
-
|
|
68499
|
-
const fieldData = getFieldData$g(source, sel, variables);
|
|
68500
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
68501
|
-
reader.enterPath(requestedFieldName);
|
|
68502
|
-
if (fieldData === undefined) {
|
|
68503
|
-
reader.markMissing();
|
|
68504
|
-
reader.exitPath();
|
|
68505
|
-
return;
|
|
68506
|
-
}
|
|
68507
|
-
if (fieldData === null) {
|
|
68508
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
68509
|
-
return sink;
|
|
68510
|
-
}
|
|
68511
|
-
const fieldType = getFieldType$A(sel);
|
|
68512
|
-
if (fieldType === undefined) {
|
|
68513
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
68514
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
68515
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
68516
|
-
}
|
|
68517
|
-
else if (fieldType.isArray) {
|
|
68518
|
-
const arraySink = [];
|
|
68519
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
68520
|
-
reader.enterPath(i);
|
|
68521
|
-
selectType$g(fieldType.typename, sel, fieldData[i], reader, i, arraySink, variables, fragments);
|
|
68522
|
-
reader.exitPath();
|
|
68523
|
-
}
|
|
68524
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
68525
|
-
}
|
|
68526
|
-
else {
|
|
68527
|
-
selectType$g(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink, variables, fragments);
|
|
68528
|
-
}
|
|
68529
|
-
reader.exitPath();
|
|
68530
|
-
return sink;
|
|
66828
|
+
function buildSelectionForField$h(source, reader, sel, variables, fragments) {
|
|
66829
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$g, getFieldType$A, selectType$g);
|
|
68531
66830
|
}
|
|
68532
|
-
function buildSelectionForNode$
|
|
68533
|
-
|
|
68534
|
-
if (selectionNode.directives) {
|
|
68535
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
68536
|
-
if (selectionWithDirectives === undefined) {
|
|
68537
|
-
return;
|
|
68538
|
-
}
|
|
68539
|
-
selectionNode = selectionWithDirectives;
|
|
68540
|
-
}
|
|
68541
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
68542
|
-
if (isFragmentApplicable$h(selectionNode, source.data.__typename)) {
|
|
68543
|
-
// Get selections out of the inline fragment
|
|
68544
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
68545
|
-
// Call into field handling with selections
|
|
68546
|
-
Object.assign(sink, buildSelectionForNode$g(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
68547
|
-
});
|
|
68548
|
-
}
|
|
68549
|
-
}
|
|
68550
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
68551
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
68552
|
-
if (namedFragment && isFragmentApplicable$h(namedFragment, source.data.__typename)) {
|
|
68553
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
68554
|
-
// Call into field handling with selections
|
|
68555
|
-
Object.assign(sink, buildSelectionForNode$g(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
68556
|
-
});
|
|
68557
|
-
}
|
|
68558
|
-
}
|
|
68559
|
-
if (selectionNode.kind === "Field") {
|
|
68560
|
-
Object.assign(sink, buildSelectionForField$g(source, reader, selectionNode, variables, fragments));
|
|
68561
|
-
}
|
|
68562
|
-
return sink;
|
|
66831
|
+
function buildSelectionForNode$h(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
66832
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$h, buildSelectionForField$h);
|
|
68563
66833
|
}
|
|
68564
66834
|
function select$p(field, variables, fragments) {
|
|
68565
66835
|
return (source, reader) => {
|
|
68566
66836
|
var _a;
|
|
68567
66837
|
const sink = {};
|
|
68568
66838
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
68569
|
-
const builtSelection = buildSelectionForNode$
|
|
66839
|
+
const builtSelection = buildSelectionForNode$h(source, reader, field, sel, variables, fragments);
|
|
68570
66840
|
if (builtSelection !== undefined) {
|
|
68571
66841
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
68572
66842
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -68847,81 +67117,18 @@ function selectType$f(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
68847
67117
|
}
|
|
68848
67118
|
return sink;
|
|
68849
67119
|
}
|
|
68850
|
-
function buildSelectionForField$
|
|
68851
|
-
|
|
68852
|
-
const fieldData = getFieldData$f(source, sel, variables);
|
|
68853
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
68854
|
-
if (requestedFieldName === 'pageInfo')
|
|
68855
|
-
return;
|
|
68856
|
-
reader.enterPath(requestedFieldName);
|
|
68857
|
-
if (fieldData === undefined) {
|
|
68858
|
-
reader.markMissing();
|
|
68859
|
-
reader.exitPath();
|
|
68860
|
-
return;
|
|
68861
|
-
}
|
|
68862
|
-
if (fieldData === null) {
|
|
68863
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
68864
|
-
return sink;
|
|
68865
|
-
}
|
|
68866
|
-
const fieldType = getFieldType$z(sel);
|
|
68867
|
-
if (fieldType === undefined) {
|
|
68868
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
68869
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
68870
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
68871
|
-
}
|
|
68872
|
-
else if (fieldType.isArray) {
|
|
68873
|
-
const arraySink = [];
|
|
68874
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
68875
|
-
reader.enterPath(i);
|
|
68876
|
-
selectType$f(fieldType.typename, sel, fieldData[i], reader, i, arraySink, variables, fragments);
|
|
68877
|
-
reader.exitPath();
|
|
68878
|
-
}
|
|
68879
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
68880
|
-
}
|
|
68881
|
-
else {
|
|
68882
|
-
selectType$f(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink, variables, fragments);
|
|
68883
|
-
}
|
|
68884
|
-
reader.exitPath();
|
|
68885
|
-
return sink;
|
|
67120
|
+
function buildSelectionForField$g(source, reader, sel, variables, fragments) {
|
|
67121
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, true, getFieldData$f, getFieldType$z, selectType$f);
|
|
68886
67122
|
}
|
|
68887
|
-
function buildSelectionForNode$
|
|
68888
|
-
|
|
68889
|
-
if (selectionNode.directives) {
|
|
68890
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
68891
|
-
if (selectionWithDirectives === undefined) {
|
|
68892
|
-
return;
|
|
68893
|
-
}
|
|
68894
|
-
selectionNode = selectionWithDirectives;
|
|
68895
|
-
}
|
|
68896
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
68897
|
-
if (isFragmentApplicable$g(selectionNode, source.data.__typename)) {
|
|
68898
|
-
// Get selections out of the inline fragment
|
|
68899
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
68900
|
-
// Call into field handling with selections
|
|
68901
|
-
Object.assign(sink, buildSelectionForNode$f(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
68902
|
-
});
|
|
68903
|
-
}
|
|
68904
|
-
}
|
|
68905
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
68906
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
68907
|
-
if (namedFragment && isFragmentApplicable$g(namedFragment, source.data.__typename)) {
|
|
68908
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
68909
|
-
// Call into field handling with selections
|
|
68910
|
-
Object.assign(sink, buildSelectionForNode$f(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
68911
|
-
});
|
|
68912
|
-
}
|
|
68913
|
-
}
|
|
68914
|
-
if (selectionNode.kind === "Field") {
|
|
68915
|
-
Object.assign(sink, buildSelectionForField$f(source, reader, selectionNode, variables, fragments));
|
|
68916
|
-
}
|
|
68917
|
-
return sink;
|
|
67123
|
+
function buildSelectionForNode$g(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
67124
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$g, buildSelectionForField$g);
|
|
68918
67125
|
}
|
|
68919
67126
|
function select$o(field, variables, fragments) {
|
|
68920
67127
|
return (source, reader) => {
|
|
68921
67128
|
var _a;
|
|
68922
67129
|
const sink = {};
|
|
68923
67130
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
68924
|
-
const builtSelection = buildSelectionForNode$
|
|
67131
|
+
const builtSelection = buildSelectionForNode$g(source, reader, field, sel, variables, fragments);
|
|
68925
67132
|
if (builtSelection !== undefined) {
|
|
68926
67133
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
68927
67134
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -69173,7 +67380,7 @@ function selectType$e(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
69173
67380
|
}
|
|
69174
67381
|
else {
|
|
69175
67382
|
trimmedEdges = trimEdges(source.edges, startOffset, endOffset);
|
|
69176
|
-
maxOffset =
|
|
67383
|
+
maxOffset = findMaxOffset(metadata);
|
|
69177
67384
|
const listHasEnoughItems = (endOffset - 1 <= maxOffset);
|
|
69178
67385
|
if (trimmedEdges === undefined || !listHasEnoughItems) {
|
|
69179
67386
|
reader.markMissingLink(fieldData.__ref);
|
|
@@ -69211,79 +67418,18 @@ function selectType$e(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
69211
67418
|
}
|
|
69212
67419
|
return sink;
|
|
69213
67420
|
}
|
|
69214
|
-
function buildSelectionForField$
|
|
69215
|
-
|
|
69216
|
-
const fieldData = getFieldData$e(source, sel, variables);
|
|
69217
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
69218
|
-
reader.enterPath(requestedFieldName);
|
|
69219
|
-
if (fieldData === undefined) {
|
|
69220
|
-
reader.markMissing();
|
|
69221
|
-
reader.exitPath();
|
|
69222
|
-
return;
|
|
69223
|
-
}
|
|
69224
|
-
if (fieldData === null) {
|
|
69225
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
69226
|
-
return sink;
|
|
69227
|
-
}
|
|
69228
|
-
const fieldType = getFieldType$y(sel);
|
|
69229
|
-
if (fieldType === undefined) {
|
|
69230
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
69231
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
69232
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
69233
|
-
}
|
|
69234
|
-
else if (fieldType.isArray) {
|
|
69235
|
-
const arraySink = [];
|
|
69236
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
69237
|
-
reader.enterPath(i);
|
|
69238
|
-
selectType$e(fieldType.typename, sel, fieldData[i], reader, i, arraySink, variables, fragments);
|
|
69239
|
-
reader.exitPath();
|
|
69240
|
-
}
|
|
69241
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
69242
|
-
}
|
|
69243
|
-
else {
|
|
69244
|
-
selectType$e(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink, variables, fragments);
|
|
69245
|
-
}
|
|
69246
|
-
reader.exitPath();
|
|
69247
|
-
return sink;
|
|
67421
|
+
function buildSelectionForField$f(source, reader, sel, variables, fragments) {
|
|
67422
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$e, getFieldType$y, selectType$e);
|
|
69248
67423
|
}
|
|
69249
|
-
function buildSelectionForNode$
|
|
69250
|
-
|
|
69251
|
-
if (selectionNode.directives) {
|
|
69252
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
69253
|
-
if (selectionWithDirectives === undefined) {
|
|
69254
|
-
return;
|
|
69255
|
-
}
|
|
69256
|
-
selectionNode = selectionWithDirectives;
|
|
69257
|
-
}
|
|
69258
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
69259
|
-
if (isFragmentApplicable$f(selectionNode, source.data.__typename)) {
|
|
69260
|
-
// Get selections out of the inline fragment
|
|
69261
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
69262
|
-
// Call into field handling with selections
|
|
69263
|
-
Object.assign(sink, buildSelectionForNode$e(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
69264
|
-
});
|
|
69265
|
-
}
|
|
69266
|
-
}
|
|
69267
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
69268
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
69269
|
-
if (namedFragment && isFragmentApplicable$f(namedFragment, source.data.__typename)) {
|
|
69270
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
69271
|
-
// Call into field handling with selections
|
|
69272
|
-
Object.assign(sink, buildSelectionForNode$e(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
69273
|
-
});
|
|
69274
|
-
}
|
|
69275
|
-
}
|
|
69276
|
-
if (selectionNode.kind === "Field") {
|
|
69277
|
-
Object.assign(sink, buildSelectionForField$e(source, reader, selectionNode, variables, fragments));
|
|
69278
|
-
}
|
|
69279
|
-
return sink;
|
|
67424
|
+
function buildSelectionForNode$f(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
67425
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$f, buildSelectionForField$f);
|
|
69280
67426
|
}
|
|
69281
67427
|
function select$n(field, variables, fragments) {
|
|
69282
67428
|
return (source, reader) => {
|
|
69283
67429
|
var _a;
|
|
69284
67430
|
const sink = {};
|
|
69285
67431
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
69286
|
-
const builtSelection = buildSelectionForNode$
|
|
67432
|
+
const builtSelection = buildSelectionForNode$f(source, reader, field, sel, variables, fragments);
|
|
69287
67433
|
if (builtSelection !== undefined) {
|
|
69288
67434
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
69289
67435
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -69500,79 +67646,18 @@ function selectType$d(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
69500
67646
|
}
|
|
69501
67647
|
return sink;
|
|
69502
67648
|
}
|
|
69503
|
-
function buildSelectionForField$
|
|
69504
|
-
|
|
69505
|
-
const fieldData = getFieldData$d(source, sel, variables);
|
|
69506
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
69507
|
-
reader.enterPath(requestedFieldName);
|
|
69508
|
-
if (fieldData === undefined) {
|
|
69509
|
-
reader.markMissing();
|
|
69510
|
-
reader.exitPath();
|
|
69511
|
-
return;
|
|
69512
|
-
}
|
|
69513
|
-
if (fieldData === null) {
|
|
69514
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
69515
|
-
return sink;
|
|
69516
|
-
}
|
|
69517
|
-
const fieldType = getFieldType$x(sel);
|
|
69518
|
-
if (fieldType === undefined) {
|
|
69519
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
69520
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
69521
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
69522
|
-
}
|
|
69523
|
-
else if (fieldType.isArray) {
|
|
69524
|
-
const arraySink = [];
|
|
69525
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
69526
|
-
reader.enterPath(i);
|
|
69527
|
-
selectType$d(fieldType.typename, sel, fieldData[i], reader, i, arraySink, variables, fragments);
|
|
69528
|
-
reader.exitPath();
|
|
69529
|
-
}
|
|
69530
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
69531
|
-
}
|
|
69532
|
-
else {
|
|
69533
|
-
selectType$d(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink, variables, fragments);
|
|
69534
|
-
}
|
|
69535
|
-
reader.exitPath();
|
|
69536
|
-
return sink;
|
|
67649
|
+
function buildSelectionForField$e(source, reader, sel, variables, fragments) {
|
|
67650
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$d, getFieldType$x, selectType$d);
|
|
69537
67651
|
}
|
|
69538
|
-
function buildSelectionForNode$
|
|
69539
|
-
|
|
69540
|
-
if (selectionNode.directives) {
|
|
69541
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
69542
|
-
if (selectionWithDirectives === undefined) {
|
|
69543
|
-
return;
|
|
69544
|
-
}
|
|
69545
|
-
selectionNode = selectionWithDirectives;
|
|
69546
|
-
}
|
|
69547
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
69548
|
-
if (isFragmentApplicable$e(selectionNode, source.data.__typename)) {
|
|
69549
|
-
// Get selections out of the inline fragment
|
|
69550
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
69551
|
-
// Call into field handling with selections
|
|
69552
|
-
Object.assign(sink, buildSelectionForNode$d(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
69553
|
-
});
|
|
69554
|
-
}
|
|
69555
|
-
}
|
|
69556
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
69557
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
69558
|
-
if (namedFragment && isFragmentApplicable$e(namedFragment, source.data.__typename)) {
|
|
69559
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
69560
|
-
// Call into field handling with selections
|
|
69561
|
-
Object.assign(sink, buildSelectionForNode$d(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
69562
|
-
});
|
|
69563
|
-
}
|
|
69564
|
-
}
|
|
69565
|
-
if (selectionNode.kind === "Field") {
|
|
69566
|
-
Object.assign(sink, buildSelectionForField$d(source, reader, selectionNode, variables, fragments));
|
|
69567
|
-
}
|
|
69568
|
-
return sink;
|
|
67652
|
+
function buildSelectionForNode$e(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
67653
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$e, buildSelectionForField$e);
|
|
69569
67654
|
}
|
|
69570
67655
|
function select$m(field, variables, fragments) {
|
|
69571
67656
|
return (source, reader) => {
|
|
69572
67657
|
var _a;
|
|
69573
67658
|
const sink = {};
|
|
69574
67659
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
69575
|
-
const builtSelection = buildSelectionForNode$
|
|
67660
|
+
const builtSelection = buildSelectionForNode$e(source, reader, field, sel, variables, fragments);
|
|
69576
67661
|
if (builtSelection !== undefined) {
|
|
69577
67662
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
69578
67663
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -69783,79 +67868,18 @@ function selectType$c(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
69783
67868
|
}
|
|
69784
67869
|
return sink;
|
|
69785
67870
|
}
|
|
69786
|
-
function buildSelectionForField$
|
|
69787
|
-
|
|
69788
|
-
const fieldData = getFieldData$c(source, sel, variables);
|
|
69789
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
69790
|
-
reader.enterPath(requestedFieldName);
|
|
69791
|
-
if (fieldData === undefined) {
|
|
69792
|
-
reader.markMissing();
|
|
69793
|
-
reader.exitPath();
|
|
69794
|
-
return;
|
|
69795
|
-
}
|
|
69796
|
-
if (fieldData === null) {
|
|
69797
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
69798
|
-
return sink;
|
|
69799
|
-
}
|
|
69800
|
-
const fieldType = getFieldType$w(sel);
|
|
69801
|
-
if (fieldType === undefined) {
|
|
69802
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
69803
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
69804
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
69805
|
-
}
|
|
69806
|
-
else if (fieldType.isArray) {
|
|
69807
|
-
const arraySink = [];
|
|
69808
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
69809
|
-
reader.enterPath(i);
|
|
69810
|
-
selectType$c(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
69811
|
-
reader.exitPath();
|
|
69812
|
-
}
|
|
69813
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
69814
|
-
}
|
|
69815
|
-
else {
|
|
69816
|
-
selectType$c(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
69817
|
-
}
|
|
69818
|
-
reader.exitPath();
|
|
69819
|
-
return sink;
|
|
67871
|
+
function buildSelectionForField$d(source, reader, sel, variables, fragments) {
|
|
67872
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$c, getFieldType$w, selectType$c);
|
|
69820
67873
|
}
|
|
69821
|
-
function buildSelectionForNode$
|
|
69822
|
-
|
|
69823
|
-
if (selectionNode.directives) {
|
|
69824
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
69825
|
-
if (selectionWithDirectives === undefined) {
|
|
69826
|
-
return;
|
|
69827
|
-
}
|
|
69828
|
-
selectionNode = selectionWithDirectives;
|
|
69829
|
-
}
|
|
69830
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
69831
|
-
if (isFragmentApplicable$d(selectionNode, source.data.__typename)) {
|
|
69832
|
-
// Get selections out of the inline fragment
|
|
69833
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
69834
|
-
// Call into field handling with selections
|
|
69835
|
-
Object.assign(sink, buildSelectionForNode$c(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
69836
|
-
});
|
|
69837
|
-
}
|
|
69838
|
-
}
|
|
69839
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
69840
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
69841
|
-
if (namedFragment && isFragmentApplicable$d(namedFragment, source.data.__typename)) {
|
|
69842
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
69843
|
-
// Call into field handling with selections
|
|
69844
|
-
Object.assign(sink, buildSelectionForNode$c(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
69845
|
-
});
|
|
69846
|
-
}
|
|
69847
|
-
}
|
|
69848
|
-
if (selectionNode.kind === "Field") {
|
|
69849
|
-
Object.assign(sink, buildSelectionForField$c(source, reader, selectionNode, variables));
|
|
69850
|
-
}
|
|
69851
|
-
return sink;
|
|
67874
|
+
function buildSelectionForNode$d(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
67875
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$d, buildSelectionForField$d);
|
|
69852
67876
|
}
|
|
69853
67877
|
function select$l(field, variables, fragments) {
|
|
69854
67878
|
return (source, reader) => {
|
|
69855
67879
|
var _a;
|
|
69856
67880
|
const sink = {};
|
|
69857
67881
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
69858
|
-
const builtSelection = buildSelectionForNode$
|
|
67882
|
+
const builtSelection = buildSelectionForNode$d(source, reader, field, sel, variables, fragments);
|
|
69859
67883
|
if (builtSelection !== undefined) {
|
|
69860
67884
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
69861
67885
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -70005,79 +68029,18 @@ function selectType$b(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
70005
68029
|
}
|
|
70006
68030
|
return sink;
|
|
70007
68031
|
}
|
|
70008
|
-
function buildSelectionForField$
|
|
70009
|
-
|
|
70010
|
-
const fieldData = getFieldData$b(source, sel, variables);
|
|
70011
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
70012
|
-
reader.enterPath(requestedFieldName);
|
|
70013
|
-
if (fieldData === undefined) {
|
|
70014
|
-
reader.markMissing();
|
|
70015
|
-
reader.exitPath();
|
|
70016
|
-
return;
|
|
70017
|
-
}
|
|
70018
|
-
if (fieldData === null) {
|
|
70019
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
70020
|
-
return sink;
|
|
70021
|
-
}
|
|
70022
|
-
const fieldType = getFieldType$v(sel);
|
|
70023
|
-
if (fieldType === undefined) {
|
|
70024
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
70025
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
70026
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
70027
|
-
}
|
|
70028
|
-
else if (fieldType.isArray) {
|
|
70029
|
-
const arraySink = [];
|
|
70030
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
70031
|
-
reader.enterPath(i);
|
|
70032
|
-
selectType$b(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
70033
|
-
reader.exitPath();
|
|
70034
|
-
}
|
|
70035
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
70036
|
-
}
|
|
70037
|
-
else {
|
|
70038
|
-
selectType$b(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
70039
|
-
}
|
|
70040
|
-
reader.exitPath();
|
|
70041
|
-
return sink;
|
|
68032
|
+
function buildSelectionForField$c(source, reader, sel, variables, fragments) {
|
|
68033
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$b, getFieldType$v, selectType$b);
|
|
70042
68034
|
}
|
|
70043
|
-
function buildSelectionForNode$
|
|
70044
|
-
|
|
70045
|
-
if (selectionNode.directives) {
|
|
70046
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
70047
|
-
if (selectionWithDirectives === undefined) {
|
|
70048
|
-
return;
|
|
70049
|
-
}
|
|
70050
|
-
selectionNode = selectionWithDirectives;
|
|
70051
|
-
}
|
|
70052
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
70053
|
-
if (isFragmentApplicable$c(selectionNode, source.data.__typename)) {
|
|
70054
|
-
// Get selections out of the inline fragment
|
|
70055
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
70056
|
-
// Call into field handling with selections
|
|
70057
|
-
Object.assign(sink, buildSelectionForNode$b(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
70058
|
-
});
|
|
70059
|
-
}
|
|
70060
|
-
}
|
|
70061
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
70062
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
70063
|
-
if (namedFragment && isFragmentApplicable$c(namedFragment, source.data.__typename)) {
|
|
70064
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
70065
|
-
// Call into field handling with selections
|
|
70066
|
-
Object.assign(sink, buildSelectionForNode$b(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
70067
|
-
});
|
|
70068
|
-
}
|
|
70069
|
-
}
|
|
70070
|
-
if (selectionNode.kind === "Field") {
|
|
70071
|
-
Object.assign(sink, buildSelectionForField$b(source, reader, selectionNode, variables));
|
|
70072
|
-
}
|
|
70073
|
-
return sink;
|
|
68035
|
+
function buildSelectionForNode$c(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
68036
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$c, buildSelectionForField$c);
|
|
70074
68037
|
}
|
|
70075
68038
|
function select$k(field, variables, fragments) {
|
|
70076
68039
|
return (source, reader) => {
|
|
70077
68040
|
var _a;
|
|
70078
68041
|
const sink = {};
|
|
70079
68042
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
70080
|
-
const builtSelection = buildSelectionForNode$
|
|
68043
|
+
const builtSelection = buildSelectionForNode$c(source, reader, field, sel, variables, fragments);
|
|
70081
68044
|
if (builtSelection !== undefined) {
|
|
70082
68045
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
70083
68046
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -70255,79 +68218,18 @@ function selectType$a(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
70255
68218
|
}
|
|
70256
68219
|
return sink;
|
|
70257
68220
|
}
|
|
70258
|
-
function buildSelectionForField$
|
|
70259
|
-
|
|
70260
|
-
const fieldData = getFieldData$a(source, sel, variables);
|
|
70261
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
70262
|
-
reader.enterPath(requestedFieldName);
|
|
70263
|
-
if (fieldData === undefined) {
|
|
70264
|
-
reader.markMissing();
|
|
70265
|
-
reader.exitPath();
|
|
70266
|
-
return;
|
|
70267
|
-
}
|
|
70268
|
-
if (fieldData === null) {
|
|
70269
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
70270
|
-
return sink;
|
|
70271
|
-
}
|
|
70272
|
-
const fieldType = getFieldType$u(sel);
|
|
70273
|
-
if (fieldType === undefined) {
|
|
70274
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
70275
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
70276
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
70277
|
-
}
|
|
70278
|
-
else if (fieldType.isArray) {
|
|
70279
|
-
const arraySink = [];
|
|
70280
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
70281
|
-
reader.enterPath(i);
|
|
70282
|
-
selectType$a(fieldType.typename, sel, fieldData[i], reader, i, arraySink, variables, fragments);
|
|
70283
|
-
reader.exitPath();
|
|
70284
|
-
}
|
|
70285
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
70286
|
-
}
|
|
70287
|
-
else {
|
|
70288
|
-
selectType$a(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink, variables, fragments);
|
|
70289
|
-
}
|
|
70290
|
-
reader.exitPath();
|
|
70291
|
-
return sink;
|
|
68221
|
+
function buildSelectionForField$b(source, reader, sel, variables, fragments) {
|
|
68222
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$a, getFieldType$u, selectType$a);
|
|
70292
68223
|
}
|
|
70293
|
-
function buildSelectionForNode$
|
|
70294
|
-
|
|
70295
|
-
if (selectionNode.directives) {
|
|
70296
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
70297
|
-
if (selectionWithDirectives === undefined) {
|
|
70298
|
-
return;
|
|
70299
|
-
}
|
|
70300
|
-
selectionNode = selectionWithDirectives;
|
|
70301
|
-
}
|
|
70302
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
70303
|
-
if (isFragmentApplicable$b(selectionNode, source.data.__typename)) {
|
|
70304
|
-
// Get selections out of the inline fragment
|
|
70305
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
70306
|
-
// Call into field handling with selections
|
|
70307
|
-
Object.assign(sink, buildSelectionForNode$a(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
70308
|
-
});
|
|
70309
|
-
}
|
|
70310
|
-
}
|
|
70311
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
70312
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
70313
|
-
if (namedFragment && isFragmentApplicable$b(namedFragment, source.data.__typename)) {
|
|
70314
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
70315
|
-
// Call into field handling with selections
|
|
70316
|
-
Object.assign(sink, buildSelectionForNode$a(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
70317
|
-
});
|
|
70318
|
-
}
|
|
70319
|
-
}
|
|
70320
|
-
if (selectionNode.kind === "Field") {
|
|
70321
|
-
Object.assign(sink, buildSelectionForField$a(source, reader, selectionNode, variables, fragments));
|
|
70322
|
-
}
|
|
70323
|
-
return sink;
|
|
68224
|
+
function buildSelectionForNode$b(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
68225
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$b, buildSelectionForField$b);
|
|
70324
68226
|
}
|
|
70325
68227
|
function select$j(field, variables, fragments) {
|
|
70326
68228
|
return (source, reader) => {
|
|
70327
68229
|
var _a;
|
|
70328
68230
|
const sink = {};
|
|
70329
68231
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
70330
|
-
const builtSelection = buildSelectionForNode$
|
|
68232
|
+
const builtSelection = buildSelectionForNode$b(source, reader, field, sel, variables, fragments);
|
|
70331
68233
|
if (builtSelection !== undefined) {
|
|
70332
68234
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
70333
68235
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -70580,79 +68482,18 @@ function selectType$9(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
70580
68482
|
}
|
|
70581
68483
|
return sink;
|
|
70582
68484
|
}
|
|
70583
|
-
function buildSelectionForField$
|
|
70584
|
-
|
|
70585
|
-
const fieldData = getFieldData$9(source, sel, variables);
|
|
70586
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
70587
|
-
reader.enterPath(requestedFieldName);
|
|
70588
|
-
if (fieldData === undefined) {
|
|
70589
|
-
reader.markMissing();
|
|
70590
|
-
reader.exitPath();
|
|
70591
|
-
return;
|
|
70592
|
-
}
|
|
70593
|
-
if (fieldData === null) {
|
|
70594
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
70595
|
-
return sink;
|
|
70596
|
-
}
|
|
70597
|
-
const fieldType = getFieldType$t(sel);
|
|
70598
|
-
if (fieldType === undefined) {
|
|
70599
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
70600
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
70601
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
70602
|
-
}
|
|
70603
|
-
else if (fieldType.isArray) {
|
|
70604
|
-
const arraySink = [];
|
|
70605
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
70606
|
-
reader.enterPath(i);
|
|
70607
|
-
selectType$9(fieldType.typename, sel, fieldData[i], reader, i, arraySink, variables, fragments);
|
|
70608
|
-
reader.exitPath();
|
|
70609
|
-
}
|
|
70610
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
70611
|
-
}
|
|
70612
|
-
else {
|
|
70613
|
-
selectType$9(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink, variables, fragments);
|
|
70614
|
-
}
|
|
70615
|
-
reader.exitPath();
|
|
70616
|
-
return sink;
|
|
68485
|
+
function buildSelectionForField$a(source, reader, sel, variables, fragments) {
|
|
68486
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$9, getFieldType$t, selectType$9);
|
|
70617
68487
|
}
|
|
70618
|
-
function buildSelectionForNode$
|
|
70619
|
-
|
|
70620
|
-
if (selectionNode.directives) {
|
|
70621
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
70622
|
-
if (selectionWithDirectives === undefined) {
|
|
70623
|
-
return;
|
|
70624
|
-
}
|
|
70625
|
-
selectionNode = selectionWithDirectives;
|
|
70626
|
-
}
|
|
70627
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
70628
|
-
if (isFragmentApplicable$a(selectionNode, source.data.__typename)) {
|
|
70629
|
-
// Get selections out of the inline fragment
|
|
70630
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
70631
|
-
// Call into field handling with selections
|
|
70632
|
-
Object.assign(sink, buildSelectionForNode$9(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
70633
|
-
});
|
|
70634
|
-
}
|
|
70635
|
-
}
|
|
70636
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
70637
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
70638
|
-
if (namedFragment && isFragmentApplicable$a(namedFragment, source.data.__typename)) {
|
|
70639
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
70640
|
-
// Call into field handling with selections
|
|
70641
|
-
Object.assign(sink, buildSelectionForNode$9(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
70642
|
-
});
|
|
70643
|
-
}
|
|
70644
|
-
}
|
|
70645
|
-
if (selectionNode.kind === "Field") {
|
|
70646
|
-
Object.assign(sink, buildSelectionForField$9(source, reader, selectionNode, variables, fragments));
|
|
70647
|
-
}
|
|
70648
|
-
return sink;
|
|
68488
|
+
function buildSelectionForNode$a(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
68489
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$a, buildSelectionForField$a);
|
|
70649
68490
|
}
|
|
70650
68491
|
function select$i(field, variables, fragments) {
|
|
70651
68492
|
return (source, reader) => {
|
|
70652
68493
|
var _a;
|
|
70653
68494
|
const sink = {};
|
|
70654
68495
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
70655
|
-
const builtSelection = buildSelectionForNode$
|
|
68496
|
+
const builtSelection = buildSelectionForNode$a(source, reader, field, sel, variables, fragments);
|
|
70656
68497
|
if (builtSelection !== undefined) {
|
|
70657
68498
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
70658
68499
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -71055,79 +68896,18 @@ function selectType$8(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
71055
68896
|
}
|
|
71056
68897
|
return sink;
|
|
71057
68898
|
}
|
|
71058
|
-
function buildSelectionForField$
|
|
71059
|
-
|
|
71060
|
-
const fieldData = getFieldData$8(source, sel, variables);
|
|
71061
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
71062
|
-
reader.enterPath(requestedFieldName);
|
|
71063
|
-
if (fieldData === undefined) {
|
|
71064
|
-
reader.markMissing();
|
|
71065
|
-
reader.exitPath();
|
|
71066
|
-
return;
|
|
71067
|
-
}
|
|
71068
|
-
if (fieldData === null) {
|
|
71069
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
71070
|
-
return sink;
|
|
71071
|
-
}
|
|
71072
|
-
const fieldType = getFieldType$s(sel);
|
|
71073
|
-
if (fieldType === undefined) {
|
|
71074
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
71075
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
71076
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
71077
|
-
}
|
|
71078
|
-
else if (fieldType.isArray) {
|
|
71079
|
-
const arraySink = [];
|
|
71080
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
71081
|
-
reader.enterPath(i);
|
|
71082
|
-
selectType$8(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
71083
|
-
reader.exitPath();
|
|
71084
|
-
}
|
|
71085
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
71086
|
-
}
|
|
71087
|
-
else {
|
|
71088
|
-
selectType$8(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
71089
|
-
}
|
|
71090
|
-
reader.exitPath();
|
|
71091
|
-
return sink;
|
|
68899
|
+
function buildSelectionForField$9(source, reader, sel, variables, fragments) {
|
|
68900
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$8, getFieldType$s, selectType$8);
|
|
71092
68901
|
}
|
|
71093
|
-
function buildSelectionForNode$
|
|
71094
|
-
|
|
71095
|
-
if (selectionNode.directives) {
|
|
71096
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
71097
|
-
if (selectionWithDirectives === undefined) {
|
|
71098
|
-
return;
|
|
71099
|
-
}
|
|
71100
|
-
selectionNode = selectionWithDirectives;
|
|
71101
|
-
}
|
|
71102
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
71103
|
-
if (isFragmentApplicable$9(selectionNode, source.data.__typename)) {
|
|
71104
|
-
// Get selections out of the inline fragment
|
|
71105
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
71106
|
-
// Call into field handling with selections
|
|
71107
|
-
Object.assign(sink, buildSelectionForNode$8(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
71108
|
-
});
|
|
71109
|
-
}
|
|
71110
|
-
}
|
|
71111
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
71112
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
71113
|
-
if (namedFragment && isFragmentApplicable$9(namedFragment, source.data.__typename)) {
|
|
71114
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
71115
|
-
// Call into field handling with selections
|
|
71116
|
-
Object.assign(sink, buildSelectionForNode$8(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
71117
|
-
});
|
|
71118
|
-
}
|
|
71119
|
-
}
|
|
71120
|
-
if (selectionNode.kind === "Field") {
|
|
71121
|
-
Object.assign(sink, buildSelectionForField$8(source, reader, selectionNode, variables));
|
|
71122
|
-
}
|
|
71123
|
-
return sink;
|
|
68902
|
+
function buildSelectionForNode$9(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
68903
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$9, buildSelectionForField$9);
|
|
71124
68904
|
}
|
|
71125
68905
|
function select$h(field, variables, fragments) {
|
|
71126
68906
|
return (source, reader) => {
|
|
71127
68907
|
var _a;
|
|
71128
68908
|
const sink = {};
|
|
71129
68909
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
71130
|
-
const builtSelection = buildSelectionForNode$
|
|
68910
|
+
const builtSelection = buildSelectionForNode$9(source, reader, field, sel, variables, fragments);
|
|
71131
68911
|
if (builtSelection !== undefined) {
|
|
71132
68912
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
71133
68913
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -71299,79 +69079,18 @@ function selectType$7(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
71299
69079
|
}
|
|
71300
69080
|
return sink;
|
|
71301
69081
|
}
|
|
71302
|
-
function buildSelectionForField$
|
|
71303
|
-
|
|
71304
|
-
const fieldData = getFieldData$7(source, sel, variables);
|
|
71305
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
71306
|
-
reader.enterPath(requestedFieldName);
|
|
71307
|
-
if (fieldData === undefined) {
|
|
71308
|
-
reader.markMissing();
|
|
71309
|
-
reader.exitPath();
|
|
71310
|
-
return;
|
|
71311
|
-
}
|
|
71312
|
-
if (fieldData === null) {
|
|
71313
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
71314
|
-
return sink;
|
|
71315
|
-
}
|
|
71316
|
-
const fieldType = getFieldType$r(sel);
|
|
71317
|
-
if (fieldType === undefined) {
|
|
71318
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
71319
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
71320
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
71321
|
-
}
|
|
71322
|
-
else if (fieldType.isArray) {
|
|
71323
|
-
const arraySink = [];
|
|
71324
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
71325
|
-
reader.enterPath(i);
|
|
71326
|
-
selectType$7(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
71327
|
-
reader.exitPath();
|
|
71328
|
-
}
|
|
71329
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
71330
|
-
}
|
|
71331
|
-
else {
|
|
71332
|
-
selectType$7(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
71333
|
-
}
|
|
71334
|
-
reader.exitPath();
|
|
71335
|
-
return sink;
|
|
69082
|
+
function buildSelectionForField$8(source, reader, sel, variables, fragments) {
|
|
69083
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$7, getFieldType$r, selectType$7);
|
|
71336
69084
|
}
|
|
71337
|
-
function buildSelectionForNode$
|
|
71338
|
-
|
|
71339
|
-
if (selectionNode.directives) {
|
|
71340
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
71341
|
-
if (selectionWithDirectives === undefined) {
|
|
71342
|
-
return;
|
|
71343
|
-
}
|
|
71344
|
-
selectionNode = selectionWithDirectives;
|
|
71345
|
-
}
|
|
71346
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
71347
|
-
if (isFragmentApplicable$8(selectionNode, source.data.__typename)) {
|
|
71348
|
-
// Get selections out of the inline fragment
|
|
71349
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
71350
|
-
// Call into field handling with selections
|
|
71351
|
-
Object.assign(sink, buildSelectionForNode$7(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
71352
|
-
});
|
|
71353
|
-
}
|
|
71354
|
-
}
|
|
71355
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
71356
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
71357
|
-
if (namedFragment && isFragmentApplicable$8(namedFragment, source.data.__typename)) {
|
|
71358
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
71359
|
-
// Call into field handling with selections
|
|
71360
|
-
Object.assign(sink, buildSelectionForNode$7(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
71361
|
-
});
|
|
71362
|
-
}
|
|
71363
|
-
}
|
|
71364
|
-
if (selectionNode.kind === "Field") {
|
|
71365
|
-
Object.assign(sink, buildSelectionForField$7(source, reader, selectionNode, variables));
|
|
71366
|
-
}
|
|
71367
|
-
return sink;
|
|
69085
|
+
function buildSelectionForNode$8(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
69086
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$8, buildSelectionForField$8);
|
|
71368
69087
|
}
|
|
71369
69088
|
function select$g(field, variables, fragments) {
|
|
71370
69089
|
return (source, reader) => {
|
|
71371
69090
|
var _a;
|
|
71372
69091
|
const sink = {};
|
|
71373
69092
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
71374
|
-
const builtSelection = buildSelectionForNode$
|
|
69093
|
+
const builtSelection = buildSelectionForNode$8(source, reader, field, sel, variables, fragments);
|
|
71375
69094
|
if (builtSelection !== undefined) {
|
|
71376
69095
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
71377
69096
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -71636,79 +69355,18 @@ function selectType$6(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
71636
69355
|
}
|
|
71637
69356
|
return sink;
|
|
71638
69357
|
}
|
|
71639
|
-
function buildSelectionForField$
|
|
71640
|
-
|
|
71641
|
-
const fieldData = getFieldData$6(source, sel, variables);
|
|
71642
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
71643
|
-
reader.enterPath(requestedFieldName);
|
|
71644
|
-
if (fieldData === undefined) {
|
|
71645
|
-
reader.markMissing();
|
|
71646
|
-
reader.exitPath();
|
|
71647
|
-
return;
|
|
71648
|
-
}
|
|
71649
|
-
if (fieldData === null) {
|
|
71650
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
71651
|
-
return sink;
|
|
71652
|
-
}
|
|
71653
|
-
const fieldType = getFieldType$q(sel);
|
|
71654
|
-
if (fieldType === undefined) {
|
|
71655
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
71656
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
71657
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
71658
|
-
}
|
|
71659
|
-
else if (fieldType.isArray) {
|
|
71660
|
-
const arraySink = [];
|
|
71661
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
71662
|
-
reader.enterPath(i);
|
|
71663
|
-
selectType$6(fieldType.typename, sel, fieldData[i], reader, i, arraySink, variables, fragments);
|
|
71664
|
-
reader.exitPath();
|
|
71665
|
-
}
|
|
71666
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
71667
|
-
}
|
|
71668
|
-
else {
|
|
71669
|
-
selectType$6(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink, variables, fragments);
|
|
71670
|
-
}
|
|
71671
|
-
reader.exitPath();
|
|
71672
|
-
return sink;
|
|
69358
|
+
function buildSelectionForField$7(source, reader, sel, variables, fragments) {
|
|
69359
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$6, getFieldType$q, selectType$6);
|
|
71673
69360
|
}
|
|
71674
|
-
function buildSelectionForNode$
|
|
71675
|
-
|
|
71676
|
-
if (selectionNode.directives) {
|
|
71677
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
71678
|
-
if (selectionWithDirectives === undefined) {
|
|
71679
|
-
return;
|
|
71680
|
-
}
|
|
71681
|
-
selectionNode = selectionWithDirectives;
|
|
71682
|
-
}
|
|
71683
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
71684
|
-
if (isFragmentApplicable$7(selectionNode, source.data.__typename)) {
|
|
71685
|
-
// Get selections out of the inline fragment
|
|
71686
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
71687
|
-
// Call into field handling with selections
|
|
71688
|
-
Object.assign(sink, buildSelectionForNode$6(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
71689
|
-
});
|
|
71690
|
-
}
|
|
71691
|
-
}
|
|
71692
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
71693
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
71694
|
-
if (namedFragment && isFragmentApplicable$7(namedFragment, source.data.__typename)) {
|
|
71695
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
71696
|
-
// Call into field handling with selections
|
|
71697
|
-
Object.assign(sink, buildSelectionForNode$6(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
71698
|
-
});
|
|
71699
|
-
}
|
|
71700
|
-
}
|
|
71701
|
-
if (selectionNode.kind === "Field") {
|
|
71702
|
-
Object.assign(sink, buildSelectionForField$6(source, reader, selectionNode, variables, fragments));
|
|
71703
|
-
}
|
|
71704
|
-
return sink;
|
|
69361
|
+
function buildSelectionForNode$7(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
69362
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$7, buildSelectionForField$7);
|
|
71705
69363
|
}
|
|
71706
69364
|
function select$f(field, variables, fragments) {
|
|
71707
69365
|
return (source, reader) => {
|
|
71708
69366
|
var _a;
|
|
71709
69367
|
const sink = {};
|
|
71710
69368
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
71711
|
-
const builtSelection = buildSelectionForNode$
|
|
69369
|
+
const builtSelection = buildSelectionForNode$7(source, reader, field, sel, variables, fragments);
|
|
71712
69370
|
if (builtSelection !== undefined) {
|
|
71713
69371
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
71714
69372
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -72135,79 +69793,18 @@ function selectType$5(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
72135
69793
|
}
|
|
72136
69794
|
return sink;
|
|
72137
69795
|
}
|
|
72138
|
-
function buildSelectionForField$
|
|
72139
|
-
|
|
72140
|
-
const fieldData = getFieldData$5(source, sel, variables);
|
|
72141
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
72142
|
-
reader.enterPath(requestedFieldName);
|
|
72143
|
-
if (fieldData === undefined) {
|
|
72144
|
-
reader.markMissing();
|
|
72145
|
-
reader.exitPath();
|
|
72146
|
-
return;
|
|
72147
|
-
}
|
|
72148
|
-
if (fieldData === null) {
|
|
72149
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
72150
|
-
return sink;
|
|
72151
|
-
}
|
|
72152
|
-
const fieldType = getFieldType$p(sel);
|
|
72153
|
-
if (fieldType === undefined) {
|
|
72154
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
72155
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
72156
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
72157
|
-
}
|
|
72158
|
-
else if (fieldType.isArray) {
|
|
72159
|
-
const arraySink = [];
|
|
72160
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
72161
|
-
reader.enterPath(i);
|
|
72162
|
-
selectType$5(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
72163
|
-
reader.exitPath();
|
|
72164
|
-
}
|
|
72165
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
72166
|
-
}
|
|
72167
|
-
else {
|
|
72168
|
-
selectType$5(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
72169
|
-
}
|
|
72170
|
-
reader.exitPath();
|
|
72171
|
-
return sink;
|
|
69796
|
+
function buildSelectionForField$6(source, reader, sel, variables, fragments) {
|
|
69797
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$5, getFieldType$p, selectType$5);
|
|
72172
69798
|
}
|
|
72173
|
-
function buildSelectionForNode$
|
|
72174
|
-
|
|
72175
|
-
if (selectionNode.directives) {
|
|
72176
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
72177
|
-
if (selectionWithDirectives === undefined) {
|
|
72178
|
-
return;
|
|
72179
|
-
}
|
|
72180
|
-
selectionNode = selectionWithDirectives;
|
|
72181
|
-
}
|
|
72182
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
72183
|
-
if (isFragmentApplicable$6(selectionNode, source.data.__typename)) {
|
|
72184
|
-
// Get selections out of the inline fragment
|
|
72185
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
72186
|
-
// Call into field handling with selections
|
|
72187
|
-
Object.assign(sink, buildSelectionForNode$5(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
72188
|
-
});
|
|
72189
|
-
}
|
|
72190
|
-
}
|
|
72191
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
72192
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
72193
|
-
if (namedFragment && isFragmentApplicable$6(namedFragment, source.data.__typename)) {
|
|
72194
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
72195
|
-
// Call into field handling with selections
|
|
72196
|
-
Object.assign(sink, buildSelectionForNode$5(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
72197
|
-
});
|
|
72198
|
-
}
|
|
72199
|
-
}
|
|
72200
|
-
if (selectionNode.kind === "Field") {
|
|
72201
|
-
Object.assign(sink, buildSelectionForField$5(source, reader, selectionNode, variables));
|
|
72202
|
-
}
|
|
72203
|
-
return sink;
|
|
69799
|
+
function buildSelectionForNode$6(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
69800
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$6, buildSelectionForField$6);
|
|
72204
69801
|
}
|
|
72205
69802
|
function select$e(field, variables, fragments) {
|
|
72206
69803
|
return (source, reader) => {
|
|
72207
69804
|
var _a;
|
|
72208
69805
|
const sink = {};
|
|
72209
69806
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
72210
|
-
const builtSelection = buildSelectionForNode$
|
|
69807
|
+
const builtSelection = buildSelectionForNode$6(source, reader, field, sel, variables, fragments);
|
|
72211
69808
|
if (builtSelection !== undefined) {
|
|
72212
69809
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
72213
69810
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -72373,79 +69970,18 @@ function selectType$4(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
72373
69970
|
}
|
|
72374
69971
|
return sink;
|
|
72375
69972
|
}
|
|
72376
|
-
function buildSelectionForField$
|
|
72377
|
-
|
|
72378
|
-
const fieldData = getFieldData$4(source, sel, variables);
|
|
72379
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
72380
|
-
reader.enterPath(requestedFieldName);
|
|
72381
|
-
if (fieldData === undefined) {
|
|
72382
|
-
reader.markMissing();
|
|
72383
|
-
reader.exitPath();
|
|
72384
|
-
return;
|
|
72385
|
-
}
|
|
72386
|
-
if (fieldData === null) {
|
|
72387
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
72388
|
-
return sink;
|
|
72389
|
-
}
|
|
72390
|
-
const fieldType = getFieldType$o(sel);
|
|
72391
|
-
if (fieldType === undefined) {
|
|
72392
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
72393
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
72394
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
72395
|
-
}
|
|
72396
|
-
else if (fieldType.isArray) {
|
|
72397
|
-
const arraySink = [];
|
|
72398
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
72399
|
-
reader.enterPath(i);
|
|
72400
|
-
selectType$4(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
72401
|
-
reader.exitPath();
|
|
72402
|
-
}
|
|
72403
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
72404
|
-
}
|
|
72405
|
-
else {
|
|
72406
|
-
selectType$4(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
72407
|
-
}
|
|
72408
|
-
reader.exitPath();
|
|
72409
|
-
return sink;
|
|
69973
|
+
function buildSelectionForField$5(source, reader, sel, variables, fragments) {
|
|
69974
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$4, getFieldType$o, selectType$4);
|
|
72410
69975
|
}
|
|
72411
|
-
function buildSelectionForNode$
|
|
72412
|
-
|
|
72413
|
-
if (selectionNode.directives) {
|
|
72414
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
72415
|
-
if (selectionWithDirectives === undefined) {
|
|
72416
|
-
return;
|
|
72417
|
-
}
|
|
72418
|
-
selectionNode = selectionWithDirectives;
|
|
72419
|
-
}
|
|
72420
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
72421
|
-
if (isFragmentApplicable$5(selectionNode, source.data.__typename)) {
|
|
72422
|
-
// Get selections out of the inline fragment
|
|
72423
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
72424
|
-
// Call into field handling with selections
|
|
72425
|
-
Object.assign(sink, buildSelectionForNode$4(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
72426
|
-
});
|
|
72427
|
-
}
|
|
72428
|
-
}
|
|
72429
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
72430
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
72431
|
-
if (namedFragment && isFragmentApplicable$5(namedFragment, source.data.__typename)) {
|
|
72432
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
72433
|
-
// Call into field handling with selections
|
|
72434
|
-
Object.assign(sink, buildSelectionForNode$4(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
72435
|
-
});
|
|
72436
|
-
}
|
|
72437
|
-
}
|
|
72438
|
-
if (selectionNode.kind === "Field") {
|
|
72439
|
-
Object.assign(sink, buildSelectionForField$4(source, reader, selectionNode, variables));
|
|
72440
|
-
}
|
|
72441
|
-
return sink;
|
|
69976
|
+
function buildSelectionForNode$5(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
69977
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$5, buildSelectionForField$5);
|
|
72442
69978
|
}
|
|
72443
69979
|
function select$d(field, variables, fragments) {
|
|
72444
69980
|
return (source, reader) => {
|
|
72445
69981
|
var _a;
|
|
72446
69982
|
const sink = {};
|
|
72447
69983
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
72448
|
-
const builtSelection = buildSelectionForNode$
|
|
69984
|
+
const builtSelection = buildSelectionForNode$5(source, reader, field, sel, variables, fragments);
|
|
72449
69985
|
if (builtSelection !== undefined) {
|
|
72450
69986
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
72451
69987
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -72640,79 +70176,18 @@ function selectType$3(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
72640
70176
|
}
|
|
72641
70177
|
return sink;
|
|
72642
70178
|
}
|
|
72643
|
-
function buildSelectionForField$
|
|
72644
|
-
|
|
72645
|
-
const fieldData = getFieldData$3(source, sel, variables);
|
|
72646
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
72647
|
-
reader.enterPath(requestedFieldName);
|
|
72648
|
-
if (fieldData === undefined) {
|
|
72649
|
-
reader.markMissing();
|
|
72650
|
-
reader.exitPath();
|
|
72651
|
-
return;
|
|
72652
|
-
}
|
|
72653
|
-
if (fieldData === null) {
|
|
72654
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
72655
|
-
return sink;
|
|
72656
|
-
}
|
|
72657
|
-
const fieldType = getFieldType$n(sel);
|
|
72658
|
-
if (fieldType === undefined) {
|
|
72659
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
72660
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
72661
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
72662
|
-
}
|
|
72663
|
-
else if (fieldType.isArray) {
|
|
72664
|
-
const arraySink = [];
|
|
72665
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
72666
|
-
reader.enterPath(i);
|
|
72667
|
-
selectType$3(fieldType.typename, sel, fieldData[i], reader, i, arraySink, variables, fragments);
|
|
72668
|
-
reader.exitPath();
|
|
72669
|
-
}
|
|
72670
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
72671
|
-
}
|
|
72672
|
-
else {
|
|
72673
|
-
selectType$3(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink, variables, fragments);
|
|
72674
|
-
}
|
|
72675
|
-
reader.exitPath();
|
|
72676
|
-
return sink;
|
|
70179
|
+
function buildSelectionForField$4(source, reader, sel, variables, fragments) {
|
|
70180
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$3, getFieldType$n, selectType$3);
|
|
72677
70181
|
}
|
|
72678
|
-
function buildSelectionForNode$
|
|
72679
|
-
|
|
72680
|
-
if (selectionNode.directives) {
|
|
72681
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
72682
|
-
if (selectionWithDirectives === undefined) {
|
|
72683
|
-
return;
|
|
72684
|
-
}
|
|
72685
|
-
selectionNode = selectionWithDirectives;
|
|
72686
|
-
}
|
|
72687
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
72688
|
-
if (isFragmentApplicable$4(selectionNode, source.data.__typename)) {
|
|
72689
|
-
// Get selections out of the inline fragment
|
|
72690
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
72691
|
-
// Call into field handling with selections
|
|
72692
|
-
Object.assign(sink, buildSelectionForNode$3(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
72693
|
-
});
|
|
72694
|
-
}
|
|
72695
|
-
}
|
|
72696
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
72697
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
72698
|
-
if (namedFragment && isFragmentApplicable$4(namedFragment, source.data.__typename)) {
|
|
72699
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
72700
|
-
// Call into field handling with selections
|
|
72701
|
-
Object.assign(sink, buildSelectionForNode$3(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
72702
|
-
});
|
|
72703
|
-
}
|
|
72704
|
-
}
|
|
72705
|
-
if (selectionNode.kind === "Field") {
|
|
72706
|
-
Object.assign(sink, buildSelectionForField$3(source, reader, selectionNode, variables, fragments));
|
|
72707
|
-
}
|
|
72708
|
-
return sink;
|
|
70182
|
+
function buildSelectionForNode$4(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
70183
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$4, buildSelectionForField$4);
|
|
72709
70184
|
}
|
|
72710
70185
|
function select$c(field, variables, fragments) {
|
|
72711
70186
|
return (source, reader) => {
|
|
72712
70187
|
var _a;
|
|
72713
70188
|
const sink = {};
|
|
72714
70189
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
72715
|
-
const builtSelection = buildSelectionForNode$
|
|
70190
|
+
const builtSelection = buildSelectionForNode$4(source, reader, field, sel, variables, fragments);
|
|
72716
70191
|
if (builtSelection !== undefined) {
|
|
72717
70192
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
72718
70193
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -73029,79 +70504,18 @@ function selectType$2(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
73029
70504
|
}
|
|
73030
70505
|
return sink;
|
|
73031
70506
|
}
|
|
73032
|
-
function buildSelectionForField$
|
|
73033
|
-
|
|
73034
|
-
const fieldData = getFieldData$2(source, sel, variables);
|
|
73035
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
73036
|
-
reader.enterPath(requestedFieldName);
|
|
73037
|
-
if (fieldData === undefined) {
|
|
73038
|
-
reader.markMissing();
|
|
73039
|
-
reader.exitPath();
|
|
73040
|
-
return;
|
|
73041
|
-
}
|
|
73042
|
-
if (fieldData === null) {
|
|
73043
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
73044
|
-
return sink;
|
|
73045
|
-
}
|
|
73046
|
-
const fieldType = getFieldType$m(sel);
|
|
73047
|
-
if (fieldType === undefined) {
|
|
73048
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
73049
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
73050
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
73051
|
-
}
|
|
73052
|
-
else if (fieldType.isArray) {
|
|
73053
|
-
const arraySink = [];
|
|
73054
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
73055
|
-
reader.enterPath(i);
|
|
73056
|
-
selectType$2(fieldType.typename, sel, fieldData[i], reader, i, arraySink, variables, fragments);
|
|
73057
|
-
reader.exitPath();
|
|
73058
|
-
}
|
|
73059
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
73060
|
-
}
|
|
73061
|
-
else {
|
|
73062
|
-
selectType$2(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink, variables, fragments);
|
|
73063
|
-
}
|
|
73064
|
-
reader.exitPath();
|
|
73065
|
-
return sink;
|
|
70507
|
+
function buildSelectionForField$3(source, reader, sel, variables, fragments) {
|
|
70508
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$2, getFieldType$m, selectType$2);
|
|
73066
70509
|
}
|
|
73067
|
-
function buildSelectionForNode$
|
|
73068
|
-
|
|
73069
|
-
if (selectionNode.directives) {
|
|
73070
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
73071
|
-
if (selectionWithDirectives === undefined) {
|
|
73072
|
-
return;
|
|
73073
|
-
}
|
|
73074
|
-
selectionNode = selectionWithDirectives;
|
|
73075
|
-
}
|
|
73076
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
73077
|
-
if (isFragmentApplicable$3(selectionNode, source.data.__typename)) {
|
|
73078
|
-
// Get selections out of the inline fragment
|
|
73079
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
73080
|
-
// Call into field handling with selections
|
|
73081
|
-
Object.assign(sink, buildSelectionForNode$2(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
73082
|
-
});
|
|
73083
|
-
}
|
|
73084
|
-
}
|
|
73085
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
73086
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
73087
|
-
if (namedFragment && isFragmentApplicable$3(namedFragment, source.data.__typename)) {
|
|
73088
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
73089
|
-
// Call into field handling with selections
|
|
73090
|
-
Object.assign(sink, buildSelectionForNode$2(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
73091
|
-
});
|
|
73092
|
-
}
|
|
73093
|
-
}
|
|
73094
|
-
if (selectionNode.kind === "Field") {
|
|
73095
|
-
Object.assign(sink, buildSelectionForField$2(source, reader, selectionNode, variables, fragments));
|
|
73096
|
-
}
|
|
73097
|
-
return sink;
|
|
70510
|
+
function buildSelectionForNode$3(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
70511
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$3, buildSelectionForField$3);
|
|
73098
70512
|
}
|
|
73099
70513
|
function select$b(field, variables, fragments) {
|
|
73100
70514
|
return (source, reader) => {
|
|
73101
70515
|
var _a;
|
|
73102
70516
|
const sink = {};
|
|
73103
70517
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
73104
|
-
const builtSelection = buildSelectionForNode$
|
|
70518
|
+
const builtSelection = buildSelectionForNode$3(source, reader, field, sel, variables, fragments);
|
|
73105
70519
|
if (builtSelection !== undefined) {
|
|
73106
70520
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
73107
70521
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -73358,79 +70772,18 @@ function selectType$1(typename, sel, fieldData, reader, key, sink, variables, fr
|
|
|
73358
70772
|
}
|
|
73359
70773
|
return sink;
|
|
73360
70774
|
}
|
|
73361
|
-
function buildSelectionForField$
|
|
73362
|
-
|
|
73363
|
-
const fieldData = getFieldData$1(source, sel, variables);
|
|
73364
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
73365
|
-
reader.enterPath(requestedFieldName);
|
|
73366
|
-
if (fieldData === undefined) {
|
|
73367
|
-
reader.markMissing();
|
|
73368
|
-
reader.exitPath();
|
|
73369
|
-
return;
|
|
73370
|
-
}
|
|
73371
|
-
if (fieldData === null) {
|
|
73372
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
73373
|
-
return sink;
|
|
73374
|
-
}
|
|
73375
|
-
const fieldType = getFieldType$l(sel);
|
|
73376
|
-
if (fieldType === undefined) {
|
|
73377
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
73378
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
73379
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
73380
|
-
}
|
|
73381
|
-
else if (fieldType.isArray) {
|
|
73382
|
-
const arraySink = [];
|
|
73383
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
73384
|
-
reader.enterPath(i);
|
|
73385
|
-
selectType$1(fieldType.typename, sel, fieldData[i], reader, i, arraySink);
|
|
73386
|
-
reader.exitPath();
|
|
73387
|
-
}
|
|
73388
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
73389
|
-
}
|
|
73390
|
-
else {
|
|
73391
|
-
selectType$1(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink);
|
|
73392
|
-
}
|
|
73393
|
-
reader.exitPath();
|
|
73394
|
-
return sink;
|
|
70775
|
+
function buildSelectionForField$2(source, reader, sel, variables, fragments) {
|
|
70776
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData$1, getFieldType$l, selectType$1);
|
|
73395
70777
|
}
|
|
73396
|
-
function buildSelectionForNode$
|
|
73397
|
-
|
|
73398
|
-
if (selectionNode.directives) {
|
|
73399
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
73400
|
-
if (selectionWithDirectives === undefined) {
|
|
73401
|
-
return;
|
|
73402
|
-
}
|
|
73403
|
-
selectionNode = selectionWithDirectives;
|
|
73404
|
-
}
|
|
73405
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
73406
|
-
if (isFragmentApplicable$2(selectionNode, source.data.__typename)) {
|
|
73407
|
-
// Get selections out of the inline fragment
|
|
73408
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
73409
|
-
// Call into field handling with selections
|
|
73410
|
-
Object.assign(sink, buildSelectionForNode$1(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
73411
|
-
});
|
|
73412
|
-
}
|
|
73413
|
-
}
|
|
73414
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
73415
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
73416
|
-
if (namedFragment && isFragmentApplicable$2(namedFragment, source.data.__typename)) {
|
|
73417
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
73418
|
-
// Call into field handling with selections
|
|
73419
|
-
Object.assign(sink, buildSelectionForNode$1(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
73420
|
-
});
|
|
73421
|
-
}
|
|
73422
|
-
}
|
|
73423
|
-
if (selectionNode.kind === "Field") {
|
|
73424
|
-
Object.assign(sink, buildSelectionForField$1(source, reader, selectionNode, variables));
|
|
73425
|
-
}
|
|
73426
|
-
return sink;
|
|
70778
|
+
function buildSelectionForNode$2(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
70779
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$2, buildSelectionForField$2);
|
|
73427
70780
|
}
|
|
73428
70781
|
function select$a(field, variables, fragments) {
|
|
73429
70782
|
return (source, reader) => {
|
|
73430
70783
|
var _a;
|
|
73431
70784
|
const sink = {};
|
|
73432
70785
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
73433
|
-
const builtSelection = buildSelectionForNode$
|
|
70786
|
+
const builtSelection = buildSelectionForNode$2(source, reader, field, sel, variables, fragments);
|
|
73434
70787
|
if (builtSelection !== undefined) {
|
|
73435
70788
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
73436
70789
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -73640,79 +70993,18 @@ function selectType(typename, sel, fieldData, reader, key, sink, variables, frag
|
|
|
73640
70993
|
}
|
|
73641
70994
|
return sink;
|
|
73642
70995
|
}
|
|
73643
|
-
function buildSelectionForField(source, reader, sel, variables, fragments) {
|
|
73644
|
-
|
|
73645
|
-
const fieldData = getFieldData(source, sel, variables);
|
|
73646
|
-
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
73647
|
-
reader.enterPath(requestedFieldName);
|
|
73648
|
-
if (fieldData === undefined) {
|
|
73649
|
-
reader.markMissing();
|
|
73650
|
-
reader.exitPath();
|
|
73651
|
-
return;
|
|
73652
|
-
}
|
|
73653
|
-
if (fieldData === null) {
|
|
73654
|
-
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
73655
|
-
return sink;
|
|
73656
|
-
}
|
|
73657
|
-
const fieldType = getFieldType$k(sel);
|
|
73658
|
-
if (fieldType === undefined) {
|
|
73659
|
-
// This field's type is unknown to us. This breaks normalization.
|
|
73660
|
-
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
73661
|
-
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
73662
|
-
}
|
|
73663
|
-
else if (fieldType.isArray) {
|
|
73664
|
-
const arraySink = [];
|
|
73665
|
-
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
73666
|
-
reader.enterPath(i);
|
|
73667
|
-
selectType(fieldType.typename, sel, fieldData[i], reader, i, arraySink, variables, fragments);
|
|
73668
|
-
reader.exitPath();
|
|
73669
|
-
}
|
|
73670
|
-
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
73671
|
-
}
|
|
73672
|
-
else {
|
|
73673
|
-
selectType(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink, variables, fragments);
|
|
73674
|
-
}
|
|
73675
|
-
reader.exitPath();
|
|
73676
|
-
return sink;
|
|
70996
|
+
function buildSelectionForField$1(source, reader, sel, variables, fragments) {
|
|
70997
|
+
return buildSelectionForField(source, reader, sel, variables, fragments, false, getFieldData, getFieldType$k, selectType);
|
|
73677
70998
|
}
|
|
73678
|
-
function buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
73679
|
-
|
|
73680
|
-
if (selectionNode.directives) {
|
|
73681
|
-
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
73682
|
-
if (selectionWithDirectives === undefined) {
|
|
73683
|
-
return;
|
|
73684
|
-
}
|
|
73685
|
-
selectionNode = selectionWithDirectives;
|
|
73686
|
-
}
|
|
73687
|
-
if (selectionNode.kind === "InlineFragment") {
|
|
73688
|
-
if (isFragmentApplicable$1(selectionNode, source.data.__typename)) {
|
|
73689
|
-
// Get selections out of the inline fragment
|
|
73690
|
-
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
73691
|
-
// Call into field handling with selections
|
|
73692
|
-
Object.assign(sink, buildSelectionForNode(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
73693
|
-
});
|
|
73694
|
-
}
|
|
73695
|
-
}
|
|
73696
|
-
if (selectionNode.kind === "FragmentSpread") {
|
|
73697
|
-
const namedFragment = fragments[selectionNode.name.value];
|
|
73698
|
-
if (namedFragment && isFragmentApplicable$1(namedFragment, source.data.__typename)) {
|
|
73699
|
-
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
73700
|
-
// Call into field handling with selections
|
|
73701
|
-
Object.assign(sink, buildSelectionForNode(source, reader, parentNode, fragmentSelection, variables, fragments));
|
|
73702
|
-
});
|
|
73703
|
-
}
|
|
73704
|
-
}
|
|
73705
|
-
if (selectionNode.kind === "Field") {
|
|
73706
|
-
Object.assign(sink, buildSelectionForField(source, reader, selectionNode, variables, fragments));
|
|
73707
|
-
}
|
|
73708
|
-
return sink;
|
|
70999
|
+
function buildSelectionForNode$1(source, reader, parentNode, selectionNode, variables, fragments) {
|
|
71000
|
+
return buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$1, buildSelectionForField$1);
|
|
73709
71001
|
}
|
|
73710
71002
|
function select$9(field, variables, fragments) {
|
|
73711
71003
|
return (source, reader) => {
|
|
73712
71004
|
var _a;
|
|
73713
71005
|
const sink = {};
|
|
73714
71006
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
73715
|
-
const builtSelection = buildSelectionForNode(source, reader, field, sel, variables, fragments);
|
|
71007
|
+
const builtSelection = buildSelectionForNode$1(source, reader, field, sel, variables, fragments);
|
|
73716
71008
|
if (builtSelection !== undefined) {
|
|
73717
71009
|
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
73718
71010
|
Object.keys(builtSelection).forEach((key, value) => {
|
|
@@ -75485,6 +72777,93 @@ function getInContextFragmentType(fragment, fragmentMap) {
|
|
|
75485
72777
|
return sharedGetFragmentType(fragment, fragmentMap);
|
|
75486
72778
|
}
|
|
75487
72779
|
|
|
72780
|
+
function applyToSelection$6(selection, directive, variables) {
|
|
72781
|
+
return selection;
|
|
72782
|
+
}
|
|
72783
|
+
|
|
72784
|
+
function applyToSelection$5(selection, directive, variables) {
|
|
72785
|
+
return selection;
|
|
72786
|
+
}
|
|
72787
|
+
|
|
72788
|
+
function applyToSelection$4(selection, directive, variables) {
|
|
72789
|
+
return selection;
|
|
72790
|
+
}
|
|
72791
|
+
|
|
72792
|
+
function applyToSelection$3(selection, directive, variables) {
|
|
72793
|
+
var _a;
|
|
72794
|
+
const ifArg = (_a = directive.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => argument.name.value === "if");
|
|
72795
|
+
if (ifArg && ifArg.value) {
|
|
72796
|
+
if (ifArg.value.kind === "BooleanValue") {
|
|
72797
|
+
return ifArg.value.value ? selection : undefined;
|
|
72798
|
+
}
|
|
72799
|
+
if (ifArg.value.kind === "Variable") {
|
|
72800
|
+
return variables[ifArg.value.name.value] ? selection : undefined;
|
|
72801
|
+
}
|
|
72802
|
+
}
|
|
72803
|
+
return selection;
|
|
72804
|
+
}
|
|
72805
|
+
|
|
72806
|
+
function applyToSelection$2(selection, directive, variables) {
|
|
72807
|
+
var _a;
|
|
72808
|
+
const ifArg = (_a = directive.arguments) === null || _a === void 0 ? void 0 : _a.find(argument => argument.name.value === "if");
|
|
72809
|
+
if (ifArg && ifArg.value) {
|
|
72810
|
+
if (ifArg.value.kind === "BooleanValue") {
|
|
72811
|
+
return ifArg.value.value ? undefined : selection;
|
|
72812
|
+
}
|
|
72813
|
+
if (ifArg.value.kind === "Variable") {
|
|
72814
|
+
return variables[ifArg.value.name.value] ? undefined : selection;
|
|
72815
|
+
}
|
|
72816
|
+
}
|
|
72817
|
+
return selection;
|
|
72818
|
+
}
|
|
72819
|
+
|
|
72820
|
+
function applyToSelection$1(selection, directive, variables) {
|
|
72821
|
+
return selection;
|
|
72822
|
+
}
|
|
72823
|
+
|
|
72824
|
+
function applyToSelection(selection, directive, variables) {
|
|
72825
|
+
return selection;
|
|
72826
|
+
}
|
|
72827
|
+
|
|
72828
|
+
function applyDirectivesForSelection(selection, variables) {
|
|
72829
|
+
let result = selection;
|
|
72830
|
+
if (selection && selection.directives) {
|
|
72831
|
+
// iterate through directives in order. Directives _can_ be stacked.
|
|
72832
|
+
for (var i = 0; i < selection.directives.length; i++) {
|
|
72833
|
+
const directive = selection.directives[i];
|
|
72834
|
+
switch (directive.name.value) {
|
|
72835
|
+
// Generate Case for each directive in the schema that supports SelectionNodes
|
|
72836
|
+
case ("generic"):
|
|
72837
|
+
result = applyToSelection$6(selection);
|
|
72838
|
+
break;
|
|
72839
|
+
case ("fieldCategory"):
|
|
72840
|
+
result = applyToSelection$5(selection);
|
|
72841
|
+
break;
|
|
72842
|
+
case ("category"):
|
|
72843
|
+
result = applyToSelection$4(selection);
|
|
72844
|
+
break;
|
|
72845
|
+
case ("include"):
|
|
72846
|
+
result = applyToSelection$3(selection, directive, variables);
|
|
72847
|
+
break;
|
|
72848
|
+
case ("skip"):
|
|
72849
|
+
result = applyToSelection$2(selection, directive, variables);
|
|
72850
|
+
break;
|
|
72851
|
+
case ("deprecated"):
|
|
72852
|
+
result = applyToSelection$1(selection);
|
|
72853
|
+
break;
|
|
72854
|
+
case ("specifiedBy"):
|
|
72855
|
+
result = applyToSelection(selection);
|
|
72856
|
+
break;
|
|
72857
|
+
}
|
|
72858
|
+
if (result === undefined) {
|
|
72859
|
+
// Selection was removed.
|
|
72860
|
+
break;
|
|
72861
|
+
}
|
|
72862
|
+
}
|
|
72863
|
+
}
|
|
72864
|
+
return result;
|
|
72865
|
+
}
|
|
72866
|
+
|
|
75488
72867
|
function createLink(ref) {
|
|
75489
72868
|
return {
|
|
75490
72869
|
__ref: serializeStructuredKey(ref),
|
|
@@ -76245,6 +73624,76 @@ function isFragmentApplicable(fragmentNode, implementedInterfaces, graphqlTypeNa
|
|
|
76245
73624
|
const doesImplementInterface = !isUntypedInlineFragment && implementedInterfaces.includes(fragmentNode.typeCondition.name.value);
|
|
76246
73625
|
const typenameMatchesCondition = typename !== undefined && !isUntypedInlineFragment && typename === fragmentNode.typeCondition.name.value;
|
|
76247
73626
|
return isUntypedInlineFragment || matchesTypeCondition || doesImplementInterface || typenameMatchesCondition;
|
|
73627
|
+
}
|
|
73628
|
+
function buildSelectionForNode(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable, buildSelectionForField) {
|
|
73629
|
+
const sink = {};
|
|
73630
|
+
if (selectionNode.directives) {
|
|
73631
|
+
const selectionWithDirectives = applyDirectivesForSelection(selectionNode, variables);
|
|
73632
|
+
if (selectionWithDirectives === undefined) {
|
|
73633
|
+
return;
|
|
73634
|
+
}
|
|
73635
|
+
selectionNode = selectionWithDirectives;
|
|
73636
|
+
}
|
|
73637
|
+
if (selectionNode.kind === "InlineFragment") {
|
|
73638
|
+
if (isFragmentApplicable(selectionNode, source.data.__typename)) {
|
|
73639
|
+
// Get selections out of the inline fragment
|
|
73640
|
+
selectionNode.selectionSet.selections.forEach(fragmentSelection => {
|
|
73641
|
+
// Call into field handling with selections
|
|
73642
|
+
Object.assign(sink, buildSelectionForNode(source, reader, parentNode, fragmentSelection, variables, fragments, isFragmentApplicable, buildSelectionForField));
|
|
73643
|
+
});
|
|
73644
|
+
}
|
|
73645
|
+
}
|
|
73646
|
+
if (selectionNode.kind === "FragmentSpread") {
|
|
73647
|
+
const namedFragment = fragments[selectionNode.name.value];
|
|
73648
|
+
if (namedFragment && isFragmentApplicable(namedFragment, source.data.__typename)) {
|
|
73649
|
+
namedFragment.selectionSet.selections.forEach(fragmentSelection => {
|
|
73650
|
+
// Call into field handling with selections
|
|
73651
|
+
Object.assign(sink, buildSelectionForNode(source, reader, parentNode, fragmentSelection, variables, fragments, isFragmentApplicable, buildSelectionForField));
|
|
73652
|
+
});
|
|
73653
|
+
}
|
|
73654
|
+
}
|
|
73655
|
+
if (selectionNode.kind === "Field") {
|
|
73656
|
+
Object.assign(sink, buildSelectionForField(source, reader, selectionNode, variables, fragments));
|
|
73657
|
+
}
|
|
73658
|
+
return sink;
|
|
73659
|
+
}
|
|
73660
|
+
function buildSelectionForField(source, reader, sel, variables, fragments, isCursorConnectionType, getFieldData, getFieldType, selectType) {
|
|
73661
|
+
const sink = {};
|
|
73662
|
+
const fieldData = getFieldData(source, sel, variables);
|
|
73663
|
+
const requestedFieldName = sel.alias ? sel.alias.value : sel.name.value;
|
|
73664
|
+
if (isCursorConnectionType && requestedFieldName === 'pageInfo') {
|
|
73665
|
+
return;
|
|
73666
|
+
}
|
|
73667
|
+
reader.enterPath(requestedFieldName);
|
|
73668
|
+
if (fieldData === undefined) {
|
|
73669
|
+
reader.markMissing();
|
|
73670
|
+
reader.exitPath();
|
|
73671
|
+
return;
|
|
73672
|
+
}
|
|
73673
|
+
if (fieldData === null) {
|
|
73674
|
+
reader.assignScalar(requestedFieldName, sink, fieldData);
|
|
73675
|
+
return sink;
|
|
73676
|
+
}
|
|
73677
|
+
const fieldType = getFieldType(sel);
|
|
73678
|
+
if (fieldType === undefined) {
|
|
73679
|
+
// This field's type is unknown to us. This breaks normalization.
|
|
73680
|
+
console.warn(`Unknown Field: ${requestedFieldName}. This field or nested fields cannot participate in normalization`);
|
|
73681
|
+
reader.assignNonScalar(sink, requestedFieldName, fieldData);
|
|
73682
|
+
}
|
|
73683
|
+
else if (fieldType.isArray) {
|
|
73684
|
+
const arraySink = [];
|
|
73685
|
+
for (let i = 0, len = fieldData.length; i < len; i += 1) {
|
|
73686
|
+
reader.enterPath(i);
|
|
73687
|
+
selectType(fieldType.typename, sel, fieldData[i], reader, i, arraySink, variables, fragments);
|
|
73688
|
+
reader.exitPath();
|
|
73689
|
+
}
|
|
73690
|
+
reader.assignNonScalar(sink, requestedFieldName, arraySink);
|
|
73691
|
+
}
|
|
73692
|
+
else {
|
|
73693
|
+
selectType(fieldType.typename, sel, fieldData, reader, requestedFieldName, sink, variables, fragments);
|
|
73694
|
+
}
|
|
73695
|
+
reader.exitPath();
|
|
73696
|
+
return sink;
|
|
76248
73697
|
}
|
|
76249
73698
|
|
|
76250
73699
|
const TTL = 900000;
|
|
@@ -77565,7 +75014,7 @@ register({
|
|
|
77565
75014
|
configuration: { ...configurationForGraphQLAdapters },
|
|
77566
75015
|
instrument,
|
|
77567
75016
|
});
|
|
77568
|
-
// version: 1.114.
|
|
75017
|
+
// version: 1.114.6-f2429e60e
|
|
77569
75018
|
|
|
77570
75019
|
// On core the unstable adapters are re-exported with different names,
|
|
77571
75020
|
|
|
@@ -79694,7 +77143,7 @@ withDefaultLuvio((luvio) => {
|
|
|
79694
77143
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
79695
77144
|
graphQLImperative = ldsAdapter;
|
|
79696
77145
|
});
|
|
79697
|
-
// version: 1.114.
|
|
77146
|
+
// version: 1.114.6-f2429e60e
|
|
79698
77147
|
|
|
79699
77148
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
79700
77149
|
__proto__: null,
|
|
@@ -80109,7 +77558,9 @@ function invokeAdapterWithMetadataDeleteRecord(adapter, config, metadata, onResp
|
|
|
80109
77558
|
return item.id;
|
|
80110
77559
|
});
|
|
80111
77560
|
invokeDmlAdapter(adapter, parse$1(config), (responseValue) => {
|
|
80112
|
-
if (responseValue.error === undefined &&
|
|
77561
|
+
if (responseValue.error === undefined &&
|
|
77562
|
+
responseValue.errors === undefined &&
|
|
77563
|
+
responseValue.data === undefined) {
|
|
80113
77564
|
draftManager.getQueue().then((newState) => {
|
|
80114
77565
|
const draftIdsToFilter = priorDraftIds ? priorDraftIds : [];
|
|
80115
77566
|
const newDrafts = newState.items;
|
|
@@ -80119,9 +77570,9 @@ function invokeAdapterWithMetadataDeleteRecord(adapter, config, metadata, onResp
|
|
|
80119
77570
|
return isNew && targetIdMatches;
|
|
80120
77571
|
});
|
|
80121
77572
|
if (addedDrafts.length !== 1) {
|
|
80122
|
-
let response =
|
|
80123
|
-
|
|
80124
|
-
|
|
77573
|
+
let response = {
|
|
77574
|
+
error: createNativeFetchErrorResponse(NO_DRAFT_CREATED_MESSAGE),
|
|
77575
|
+
};
|
|
80125
77576
|
onResponse(response);
|
|
80126
77577
|
}
|
|
80127
77578
|
else {
|
|
@@ -80153,7 +77604,9 @@ function invokeAdapterWithDraftToReplaceDeleteRecord(adapter, config, draftIdToR
|
|
|
80153
77604
|
return item.id;
|
|
80154
77605
|
});
|
|
80155
77606
|
invokeDmlAdapter(adapter, parse$1(config), (responseValue) => {
|
|
80156
|
-
if (responseValue.error === undefined &&
|
|
77607
|
+
if (responseValue.error === undefined &&
|
|
77608
|
+
responseValue.errors === undefined &&
|
|
77609
|
+
responseValue.data === undefined) {
|
|
80157
77610
|
draftManager.getQueue().then((newState) => {
|
|
80158
77611
|
const draftIdsToFilter = priorDraftIds ? priorDraftIds : [];
|
|
80159
77612
|
const newDrafts = newState.items;
|
|
@@ -80163,9 +77616,9 @@ function invokeAdapterWithDraftToReplaceDeleteRecord(adapter, config, draftIdToR
|
|
|
80163
77616
|
return isNew && targetIdMatches;
|
|
80164
77617
|
});
|
|
80165
77618
|
if (addedDrafts.length !== 1) {
|
|
80166
|
-
let response =
|
|
80167
|
-
|
|
80168
|
-
|
|
77619
|
+
let response = {
|
|
77620
|
+
error: createNativeFetchErrorResponse(NO_DRAFT_CREATED_MESSAGE),
|
|
77621
|
+
};
|
|
80169
77622
|
onResponse(response);
|
|
80170
77623
|
}
|
|
80171
77624
|
else {
|
|
@@ -80372,4 +77825,4 @@ const { luvio } = getRuntime();
|
|
|
80372
77825
|
setDefaultLuvio({ luvio });
|
|
80373
77826
|
|
|
80374
77827
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
80375
|
-
// version: 1.114.
|
|
77828
|
+
// version: 1.114.6-435b32f3e
|