@salesforce/lds-worker-api 1.158.0 → 1.158.1
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/ldsWorkerApi.js +1 -1
- package/dist/standalone/es/lds-worker-api.js +180 -1338
- package/dist/standalone/umd/lds-worker-api.js +180 -1338
- package/package.json +1 -1
|
@@ -3678,7 +3678,7 @@
|
|
|
3678
3678
|
return this.environment.buildStructuredKey(namespace, representationName, idValues);
|
|
3679
3679
|
}
|
|
3680
3680
|
}
|
|
3681
|
-
// engine version: 0.143.
|
|
3681
|
+
// engine version: 0.143.4-64dccb30
|
|
3682
3682
|
|
|
3683
3683
|
/**
|
|
3684
3684
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -3805,7 +3805,7 @@
|
|
|
3805
3805
|
}
|
|
3806
3806
|
callbacks.push(callback);
|
|
3807
3807
|
}
|
|
3808
|
-
// version: 1.158.
|
|
3808
|
+
// version: 1.158.1-276f55e03
|
|
3809
3809
|
|
|
3810
3810
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3811
3811
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15238,7 +15238,7 @@
|
|
|
15238
15238
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15239
15239
|
return luvioDocumentNode;
|
|
15240
15240
|
}
|
|
15241
|
-
// version: 1.158.
|
|
15241
|
+
// version: 1.158.1-276f55e03
|
|
15242
15242
|
|
|
15243
15243
|
function unwrap(data) {
|
|
15244
15244
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16151,7 +16151,7 @@
|
|
|
16151
16151
|
const { apiFamily, name } = metadata;
|
|
16152
16152
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16153
16153
|
}
|
|
16154
|
-
// version: 1.158.
|
|
16154
|
+
// version: 1.158.1-276f55e03
|
|
16155
16155
|
|
|
16156
16156
|
/**
|
|
16157
16157
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16234,7 +16234,7 @@
|
|
|
16234
16234
|
({
|
|
16235
16235
|
state: FragmentReadResultState.Missing,
|
|
16236
16236
|
});
|
|
16237
|
-
// engine version: 0.143.
|
|
16237
|
+
// engine version: 0.143.4-64dccb30
|
|
16238
16238
|
|
|
16239
16239
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16240
16240
|
|
|
@@ -44022,7 +44022,7 @@
|
|
|
44022
44022
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
44023
44023
|
});
|
|
44024
44024
|
});
|
|
44025
|
-
// version: 1.158.
|
|
44025
|
+
// version: 1.158.1-63f64c475
|
|
44026
44026
|
|
|
44027
44027
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
44028
44028
|
|
|
@@ -60056,7 +60056,7 @@
|
|
|
60056
60056
|
id: '@salesforce/lds-network-adapter',
|
|
60057
60057
|
instrument: instrument$1,
|
|
60058
60058
|
});
|
|
60059
|
-
// version: 1.158.
|
|
60059
|
+
// version: 1.158.1-276f55e03
|
|
60060
60060
|
|
|
60061
60061
|
const { create: create$2, keys: keys$2 } = Object;
|
|
60062
60062
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -60579,26 +60579,8 @@
|
|
|
60579
60579
|
}
|
|
60580
60580
|
function select$1b(field, variables, fragments) {
|
|
60581
60581
|
return (source, reader, parentRecordId) => {
|
|
60582
|
-
var _a;
|
|
60583
60582
|
const sink = {};
|
|
60584
|
-
(
|
|
60585
|
-
const builtSelection = buildSelectionForNode$12(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
60586
|
-
if (builtSelection !== undefined) {
|
|
60587
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
60588
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
60589
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
60590
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
60591
|
-
if (sink[key] === undefined) {
|
|
60592
|
-
sink[key] = builtSelection[key];
|
|
60593
|
-
}
|
|
60594
|
-
});
|
|
60595
|
-
}
|
|
60596
|
-
else {
|
|
60597
|
-
Object.assign(sink, builtSelection);
|
|
60598
|
-
}
|
|
60599
|
-
}
|
|
60600
|
-
});
|
|
60601
|
-
return sink;
|
|
60583
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$12, source, reader, variables, fragments, parentRecordId);
|
|
60602
60584
|
};
|
|
60603
60585
|
}
|
|
60604
60586
|
function getTypeCacheKeys$16(astNode, state) {
|
|
@@ -60741,26 +60723,8 @@
|
|
|
60741
60723
|
}
|
|
60742
60724
|
function select$1a(field, variables, fragments) {
|
|
60743
60725
|
return (source, reader, parentRecordId) => {
|
|
60744
|
-
var _a;
|
|
60745
60726
|
const sink = {};
|
|
60746
|
-
(
|
|
60747
|
-
const builtSelection = buildSelectionForNode$11(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
60748
|
-
if (builtSelection !== undefined) {
|
|
60749
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
60750
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
60751
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
60752
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
60753
|
-
if (sink[key] === undefined) {
|
|
60754
|
-
sink[key] = builtSelection[key];
|
|
60755
|
-
}
|
|
60756
|
-
});
|
|
60757
|
-
}
|
|
60758
|
-
else {
|
|
60759
|
-
Object.assign(sink, builtSelection);
|
|
60760
|
-
}
|
|
60761
|
-
}
|
|
60762
|
-
});
|
|
60763
|
-
return sink;
|
|
60727
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$11, source, reader, variables, fragments, parentRecordId);
|
|
60764
60728
|
};
|
|
60765
60729
|
}
|
|
60766
60730
|
function getTypeCacheKeys$15(astNode, state) {
|
|
@@ -60903,26 +60867,8 @@
|
|
|
60903
60867
|
}
|
|
60904
60868
|
function select$19(field, variables, fragments) {
|
|
60905
60869
|
return (source, reader, parentRecordId) => {
|
|
60906
|
-
var _a;
|
|
60907
60870
|
const sink = {};
|
|
60908
|
-
(
|
|
60909
|
-
const builtSelection = buildSelectionForNode$10(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
60910
|
-
if (builtSelection !== undefined) {
|
|
60911
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
60912
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
60913
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
60914
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
60915
|
-
if (sink[key] === undefined) {
|
|
60916
|
-
sink[key] = builtSelection[key];
|
|
60917
|
-
}
|
|
60918
|
-
});
|
|
60919
|
-
}
|
|
60920
|
-
else {
|
|
60921
|
-
Object.assign(sink, builtSelection);
|
|
60922
|
-
}
|
|
60923
|
-
}
|
|
60924
|
-
});
|
|
60925
|
-
return sink;
|
|
60871
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$10, source, reader, variables, fragments, parentRecordId);
|
|
60926
60872
|
};
|
|
60927
60873
|
}
|
|
60928
60874
|
function getTypeCacheKeys$14(astNode, state) {
|
|
@@ -61077,26 +61023,8 @@
|
|
|
61077
61023
|
}
|
|
61078
61024
|
function select$18(field, variables, fragments) {
|
|
61079
61025
|
return (source, reader, parentRecordId) => {
|
|
61080
|
-
var _a;
|
|
61081
61026
|
const sink = {};
|
|
61082
|
-
(
|
|
61083
|
-
const builtSelection = buildSelectionForNode$$(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
61084
|
-
if (builtSelection !== undefined) {
|
|
61085
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
61086
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
61087
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
61088
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
61089
|
-
if (sink[key] === undefined) {
|
|
61090
|
-
sink[key] = builtSelection[key];
|
|
61091
|
-
}
|
|
61092
|
-
});
|
|
61093
|
-
}
|
|
61094
|
-
else {
|
|
61095
|
-
Object.assign(sink, builtSelection);
|
|
61096
|
-
}
|
|
61097
|
-
}
|
|
61098
|
-
});
|
|
61099
|
-
return sink;
|
|
61027
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$$, source, reader, variables, fragments, parentRecordId);
|
|
61100
61028
|
};
|
|
61101
61029
|
}
|
|
61102
61030
|
function getMinimumSelections$L() {
|
|
@@ -61121,10 +61049,10 @@
|
|
|
61121
61049
|
representationName: name$_
|
|
61122
61050
|
});
|
|
61123
61051
|
// get all cache keys from normalizable fields
|
|
61124
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$$) :
|
|
61052
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$$) : new Map();
|
|
61125
61053
|
for (const fieldDataKey of Object.keys(data)) {
|
|
61126
61054
|
const fieldData = data[fieldDataKey];
|
|
61127
|
-
const requestedField =
|
|
61055
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
61128
61056
|
if (requestedField === undefined) {
|
|
61129
61057
|
continue; // Skip unknown field.
|
|
61130
61058
|
}
|
|
@@ -61419,26 +61347,8 @@
|
|
|
61419
61347
|
}
|
|
61420
61348
|
function select$17(field, variables, fragments) {
|
|
61421
61349
|
return (source, reader, parentRecordId) => {
|
|
61422
|
-
var _a;
|
|
61423
61350
|
const sink = {};
|
|
61424
|
-
(
|
|
61425
|
-
const builtSelection = buildSelectionForNode$_(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
61426
|
-
if (builtSelection !== undefined) {
|
|
61427
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
61428
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
61429
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
61430
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
61431
|
-
if (sink[key] === undefined) {
|
|
61432
|
-
sink[key] = builtSelection[key];
|
|
61433
|
-
}
|
|
61434
|
-
});
|
|
61435
|
-
}
|
|
61436
|
-
else {
|
|
61437
|
-
Object.assign(sink, builtSelection);
|
|
61438
|
-
}
|
|
61439
|
-
}
|
|
61440
|
-
});
|
|
61441
|
-
return sink;
|
|
61351
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$_, source, reader, variables, fragments, parentRecordId);
|
|
61442
61352
|
};
|
|
61443
61353
|
}
|
|
61444
61354
|
function getTypeCacheKeys$12(astNode, state) {
|
|
@@ -61576,26 +61486,8 @@
|
|
|
61576
61486
|
}
|
|
61577
61487
|
function select$16(field, variables, fragments) {
|
|
61578
61488
|
return (source, reader, parentRecordId) => {
|
|
61579
|
-
var _a;
|
|
61580
61489
|
const sink = {};
|
|
61581
|
-
(
|
|
61582
|
-
const builtSelection = buildSelectionForNode$Z(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
61583
|
-
if (builtSelection !== undefined) {
|
|
61584
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
61585
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
61586
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
61587
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
61588
|
-
if (sink[key] === undefined) {
|
|
61589
|
-
sink[key] = builtSelection[key];
|
|
61590
|
-
}
|
|
61591
|
-
});
|
|
61592
|
-
}
|
|
61593
|
-
else {
|
|
61594
|
-
Object.assign(sink, builtSelection);
|
|
61595
|
-
}
|
|
61596
|
-
}
|
|
61597
|
-
});
|
|
61598
|
-
return sink;
|
|
61490
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$Z, source, reader, variables, fragments, parentRecordId);
|
|
61599
61491
|
};
|
|
61600
61492
|
}
|
|
61601
61493
|
function getTypeCacheKeys$11(astNode, state) {
|
|
@@ -61741,26 +61633,8 @@
|
|
|
61741
61633
|
}
|
|
61742
61634
|
function select$15(field, variables, fragments) {
|
|
61743
61635
|
return (source, reader, parentRecordId) => {
|
|
61744
|
-
var _a;
|
|
61745
61636
|
const sink = {};
|
|
61746
|
-
(
|
|
61747
|
-
const builtSelection = buildSelectionForNode$Y(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
61748
|
-
if (builtSelection !== undefined) {
|
|
61749
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
61750
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
61751
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
61752
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
61753
|
-
if (sink[key] === undefined) {
|
|
61754
|
-
sink[key] = builtSelection[key];
|
|
61755
|
-
}
|
|
61756
|
-
});
|
|
61757
|
-
}
|
|
61758
|
-
else {
|
|
61759
|
-
Object.assign(sink, builtSelection);
|
|
61760
|
-
}
|
|
61761
|
-
}
|
|
61762
|
-
});
|
|
61763
|
-
return sink;
|
|
61637
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$Y, source, reader, variables, fragments, parentRecordId);
|
|
61764
61638
|
};
|
|
61765
61639
|
}
|
|
61766
61640
|
function getMinimumSelections$K() {
|
|
@@ -61785,10 +61659,10 @@
|
|
|
61785
61659
|
representationName: name$X
|
|
61786
61660
|
});
|
|
61787
61661
|
// get all cache keys from normalizable fields
|
|
61788
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$Y) :
|
|
61662
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$Y) : new Map();
|
|
61789
61663
|
for (const fieldDataKey of Object.keys(data)) {
|
|
61790
61664
|
const fieldData = data[fieldDataKey];
|
|
61791
|
-
const requestedField =
|
|
61665
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
61792
61666
|
if (requestedField === undefined) {
|
|
61793
61667
|
continue; // Skip unknown field.
|
|
61794
61668
|
}
|
|
@@ -62100,26 +61974,8 @@
|
|
|
62100
61974
|
}
|
|
62101
61975
|
function select$14(field, variables, fragments) {
|
|
62102
61976
|
return (source, reader, parentRecordId) => {
|
|
62103
|
-
var _a;
|
|
62104
61977
|
const sink = {};
|
|
62105
|
-
(
|
|
62106
|
-
const builtSelection = buildSelectionForNode$X(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
62107
|
-
if (builtSelection !== undefined) {
|
|
62108
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
62109
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
62110
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
62111
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
62112
|
-
if (sink[key] === undefined) {
|
|
62113
|
-
sink[key] = builtSelection[key];
|
|
62114
|
-
}
|
|
62115
|
-
});
|
|
62116
|
-
}
|
|
62117
|
-
else {
|
|
62118
|
-
Object.assign(sink, builtSelection);
|
|
62119
|
-
}
|
|
62120
|
-
}
|
|
62121
|
-
});
|
|
62122
|
-
return sink;
|
|
61978
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$X, source, reader, variables, fragments, parentRecordId);
|
|
62123
61979
|
};
|
|
62124
61980
|
}
|
|
62125
61981
|
function getMinimumSelections$I() {
|
|
@@ -62268,26 +62124,8 @@
|
|
|
62268
62124
|
}
|
|
62269
62125
|
function select$13(field, variables, fragments) {
|
|
62270
62126
|
return (source, reader, parentRecordId) => {
|
|
62271
|
-
var _a;
|
|
62272
62127
|
const sink = {};
|
|
62273
|
-
(
|
|
62274
|
-
const builtSelection = buildSelectionForNode$W(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
62275
|
-
if (builtSelection !== undefined) {
|
|
62276
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
62277
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
62278
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
62279
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
62280
|
-
if (sink[key] === undefined) {
|
|
62281
|
-
sink[key] = builtSelection[key];
|
|
62282
|
-
}
|
|
62283
|
-
});
|
|
62284
|
-
}
|
|
62285
|
-
else {
|
|
62286
|
-
Object.assign(sink, builtSelection);
|
|
62287
|
-
}
|
|
62288
|
-
}
|
|
62289
|
-
});
|
|
62290
|
-
return sink;
|
|
62128
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$W, source, reader, variables, fragments, parentRecordId);
|
|
62291
62129
|
};
|
|
62292
62130
|
}
|
|
62293
62131
|
function getTypeCacheKeys$_(astNode, state) {
|
|
@@ -62446,26 +62284,8 @@
|
|
|
62446
62284
|
}
|
|
62447
62285
|
function select$12(field, variables, fragments) {
|
|
62448
62286
|
return (source, reader, parentRecordId) => {
|
|
62449
|
-
var _a;
|
|
62450
62287
|
const sink = {};
|
|
62451
|
-
(
|
|
62452
|
-
const builtSelection = buildSelectionForNode$V(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
62453
|
-
if (builtSelection !== undefined) {
|
|
62454
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
62455
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
62456
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
62457
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
62458
|
-
if (sink[key] === undefined) {
|
|
62459
|
-
sink[key] = builtSelection[key];
|
|
62460
|
-
}
|
|
62461
|
-
});
|
|
62462
|
-
}
|
|
62463
|
-
else {
|
|
62464
|
-
Object.assign(sink, builtSelection);
|
|
62465
|
-
}
|
|
62466
|
-
}
|
|
62467
|
-
});
|
|
62468
|
-
return sink;
|
|
62288
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$V, source, reader, variables, fragments, parentRecordId);
|
|
62469
62289
|
};
|
|
62470
62290
|
}
|
|
62471
62291
|
function getMinimumSelections$H() {
|
|
@@ -62490,10 +62310,10 @@
|
|
|
62490
62310
|
representationName: name$U
|
|
62491
62311
|
});
|
|
62492
62312
|
// get all cache keys from normalizable fields
|
|
62493
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$V) :
|
|
62313
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$V) : new Map();
|
|
62494
62314
|
for (const fieldDataKey of Object.keys(data)) {
|
|
62495
62315
|
const fieldData = data[fieldDataKey];
|
|
62496
|
-
const requestedField =
|
|
62316
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
62497
62317
|
if (requestedField === undefined) {
|
|
62498
62318
|
continue; // Skip unknown field.
|
|
62499
62319
|
}
|
|
@@ -62996,26 +62816,8 @@
|
|
|
62996
62816
|
}
|
|
62997
62817
|
function select$11(field, variables, fragments) {
|
|
62998
62818
|
return (source, reader, parentRecordId) => {
|
|
62999
|
-
var _a;
|
|
63000
62819
|
const sink = {};
|
|
63001
|
-
(
|
|
63002
|
-
const builtSelection = buildSelectionForNode$U(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
63003
|
-
if (builtSelection !== undefined) {
|
|
63004
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
63005
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
63006
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
63007
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
63008
|
-
if (sink[key] === undefined) {
|
|
63009
|
-
sink[key] = builtSelection[key];
|
|
63010
|
-
}
|
|
63011
|
-
});
|
|
63012
|
-
}
|
|
63013
|
-
else {
|
|
63014
|
-
Object.assign(sink, builtSelection);
|
|
63015
|
-
}
|
|
63016
|
-
}
|
|
63017
|
-
});
|
|
63018
|
-
return sink;
|
|
62820
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$U, source, reader, variables, fragments, parentRecordId);
|
|
63019
62821
|
};
|
|
63020
62822
|
}
|
|
63021
62823
|
function getMinimumSelections$G() {
|
|
@@ -63214,26 +63016,8 @@
|
|
|
63214
63016
|
}
|
|
63215
63017
|
function select$10(field, variables, fragments) {
|
|
63216
63018
|
return (source, reader, parentRecordId) => {
|
|
63217
|
-
var _a;
|
|
63218
63019
|
const sink = {};
|
|
63219
|
-
(
|
|
63220
|
-
const builtSelection = buildSelectionForNode$T(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
63221
|
-
if (builtSelection !== undefined) {
|
|
63222
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
63223
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
63224
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
63225
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
63226
|
-
if (sink[key] === undefined) {
|
|
63227
|
-
sink[key] = builtSelection[key];
|
|
63228
|
-
}
|
|
63229
|
-
});
|
|
63230
|
-
}
|
|
63231
|
-
else {
|
|
63232
|
-
Object.assign(sink, builtSelection);
|
|
63233
|
-
}
|
|
63234
|
-
}
|
|
63235
|
-
});
|
|
63236
|
-
return sink;
|
|
63020
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$T, source, reader, variables, fragments, parentRecordId);
|
|
63237
63021
|
};
|
|
63238
63022
|
}
|
|
63239
63023
|
function getTypeCacheKeys$X(astNode, state) {
|
|
@@ -63369,26 +63153,8 @@
|
|
|
63369
63153
|
}
|
|
63370
63154
|
function select$$(field, variables, fragments) {
|
|
63371
63155
|
return (source, reader, parentRecordId) => {
|
|
63372
|
-
var _a;
|
|
63373
63156
|
const sink = {};
|
|
63374
|
-
(
|
|
63375
|
-
const builtSelection = buildSelectionForNode$S(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
63376
|
-
if (builtSelection !== undefined) {
|
|
63377
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
63378
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
63379
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
63380
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
63381
|
-
if (sink[key] === undefined) {
|
|
63382
|
-
sink[key] = builtSelection[key];
|
|
63383
|
-
}
|
|
63384
|
-
});
|
|
63385
|
-
}
|
|
63386
|
-
else {
|
|
63387
|
-
Object.assign(sink, builtSelection);
|
|
63388
|
-
}
|
|
63389
|
-
}
|
|
63390
|
-
});
|
|
63391
|
-
return sink;
|
|
63157
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$S, source, reader, variables, fragments, parentRecordId);
|
|
63392
63158
|
};
|
|
63393
63159
|
}
|
|
63394
63160
|
function getMinimumSelections$E() {
|
|
@@ -63413,10 +63179,10 @@
|
|
|
63413
63179
|
representationName: name$R
|
|
63414
63180
|
});
|
|
63415
63181
|
// get all cache keys from normalizable fields
|
|
63416
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$S) :
|
|
63182
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$S) : new Map();
|
|
63417
63183
|
for (const fieldDataKey of Object.keys(data)) {
|
|
63418
63184
|
const fieldData = data[fieldDataKey];
|
|
63419
|
-
const requestedField =
|
|
63185
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
63420
63186
|
if (requestedField === undefined) {
|
|
63421
63187
|
continue; // Skip unknown field.
|
|
63422
63188
|
}
|
|
@@ -63593,26 +63359,8 @@
|
|
|
63593
63359
|
}
|
|
63594
63360
|
function select$_(field, variables, fragments) {
|
|
63595
63361
|
return (source, reader, parentRecordId) => {
|
|
63596
|
-
var _a;
|
|
63597
63362
|
const sink = {};
|
|
63598
|
-
(
|
|
63599
|
-
const builtSelection = buildSelectionForNode$R(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
63600
|
-
if (builtSelection !== undefined) {
|
|
63601
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
63602
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
63603
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
63604
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
63605
|
-
if (sink[key] === undefined) {
|
|
63606
|
-
sink[key] = builtSelection[key];
|
|
63607
|
-
}
|
|
63608
|
-
});
|
|
63609
|
-
}
|
|
63610
|
-
else {
|
|
63611
|
-
Object.assign(sink, builtSelection);
|
|
63612
|
-
}
|
|
63613
|
-
}
|
|
63614
|
-
});
|
|
63615
|
-
return sink;
|
|
63363
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$R, source, reader, variables, fragments, parentRecordId);
|
|
63616
63364
|
};
|
|
63617
63365
|
}
|
|
63618
63366
|
function getMinimumSelections$D() {
|
|
@@ -63757,26 +63505,8 @@
|
|
|
63757
63505
|
}
|
|
63758
63506
|
function select$Z(field, variables, fragments) {
|
|
63759
63507
|
return (source, reader, parentRecordId) => {
|
|
63760
|
-
var _a;
|
|
63761
63508
|
const sink = {};
|
|
63762
|
-
(
|
|
63763
|
-
const builtSelection = buildSelectionForNode$Q(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
63764
|
-
if (builtSelection !== undefined) {
|
|
63765
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
63766
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
63767
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
63768
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
63769
|
-
if (sink[key] === undefined) {
|
|
63770
|
-
sink[key] = builtSelection[key];
|
|
63771
|
-
}
|
|
63772
|
-
});
|
|
63773
|
-
}
|
|
63774
|
-
else {
|
|
63775
|
-
Object.assign(sink, builtSelection);
|
|
63776
|
-
}
|
|
63777
|
-
}
|
|
63778
|
-
});
|
|
63779
|
-
return sink;
|
|
63509
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$Q, source, reader, variables, fragments, parentRecordId);
|
|
63780
63510
|
};
|
|
63781
63511
|
}
|
|
63782
63512
|
function getMinimumSelections$C() {
|
|
@@ -63954,26 +63684,8 @@
|
|
|
63954
63684
|
}
|
|
63955
63685
|
function select$Y(field, variables, fragments) {
|
|
63956
63686
|
return (source, reader, parentRecordId) => {
|
|
63957
|
-
var _a;
|
|
63958
63687
|
const sink = {};
|
|
63959
|
-
(
|
|
63960
|
-
const builtSelection = buildSelectionForNode$P(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
63961
|
-
if (builtSelection !== undefined) {
|
|
63962
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
63963
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
63964
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
63965
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
63966
|
-
if (sink[key] === undefined) {
|
|
63967
|
-
sink[key] = builtSelection[key];
|
|
63968
|
-
}
|
|
63969
|
-
});
|
|
63970
|
-
}
|
|
63971
|
-
else {
|
|
63972
|
-
Object.assign(sink, builtSelection);
|
|
63973
|
-
}
|
|
63974
|
-
}
|
|
63975
|
-
});
|
|
63976
|
-
return sink;
|
|
63688
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$P, source, reader, variables, fragments, parentRecordId);
|
|
63977
63689
|
};
|
|
63978
63690
|
}
|
|
63979
63691
|
function getMinimumSelections$B() {
|
|
@@ -63998,10 +63710,10 @@
|
|
|
63998
63710
|
representationName: name$O
|
|
63999
63711
|
});
|
|
64000
63712
|
// get all cache keys from normalizable fields
|
|
64001
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$P) :
|
|
63713
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$P) : new Map();
|
|
64002
63714
|
for (const fieldDataKey of Object.keys(data)) {
|
|
64003
63715
|
const fieldData = data[fieldDataKey];
|
|
64004
|
-
const requestedField =
|
|
63716
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
64005
63717
|
if (requestedField === undefined) {
|
|
64006
63718
|
continue; // Skip unknown field.
|
|
64007
63719
|
}
|
|
@@ -64362,26 +64074,8 @@
|
|
|
64362
64074
|
}
|
|
64363
64075
|
function select$X(field, variables, fragments) {
|
|
64364
64076
|
return (source, reader, parentRecordId) => {
|
|
64365
|
-
var _a;
|
|
64366
64077
|
const sink = {};
|
|
64367
|
-
(
|
|
64368
|
-
const builtSelection = buildSelectionForNode$O(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
64369
|
-
if (builtSelection !== undefined) {
|
|
64370
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
64371
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
64372
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
64373
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
64374
|
-
if (sink[key] === undefined) {
|
|
64375
|
-
sink[key] = builtSelection[key];
|
|
64376
|
-
}
|
|
64377
|
-
});
|
|
64378
|
-
}
|
|
64379
|
-
else {
|
|
64380
|
-
Object.assign(sink, builtSelection);
|
|
64381
|
-
}
|
|
64382
|
-
}
|
|
64383
|
-
});
|
|
64384
|
-
return sink;
|
|
64078
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$O, source, reader, variables, fragments, parentRecordId);
|
|
64385
64079
|
};
|
|
64386
64080
|
}
|
|
64387
64081
|
function getMinimumSelections$A() {
|
|
@@ -64552,26 +64246,8 @@
|
|
|
64552
64246
|
}
|
|
64553
64247
|
function select$W(field, variables, fragments) {
|
|
64554
64248
|
return (source, reader, parentRecordId) => {
|
|
64555
|
-
var _a;
|
|
64556
64249
|
const sink = {};
|
|
64557
|
-
(
|
|
64558
|
-
const builtSelection = buildSelectionForNode$N(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
64559
|
-
if (builtSelection !== undefined) {
|
|
64560
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
64561
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
64562
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
64563
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
64564
|
-
if (sink[key] === undefined) {
|
|
64565
|
-
sink[key] = builtSelection[key];
|
|
64566
|
-
}
|
|
64567
|
-
});
|
|
64568
|
-
}
|
|
64569
|
-
else {
|
|
64570
|
-
Object.assign(sink, builtSelection);
|
|
64571
|
-
}
|
|
64572
|
-
}
|
|
64573
|
-
});
|
|
64574
|
-
return sink;
|
|
64250
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$N, source, reader, variables, fragments, parentRecordId);
|
|
64575
64251
|
};
|
|
64576
64252
|
}
|
|
64577
64253
|
function getMinimumSelections$z() {
|
|
@@ -64596,10 +64272,10 @@
|
|
|
64596
64272
|
representationName: name$M
|
|
64597
64273
|
});
|
|
64598
64274
|
// get all cache keys from normalizable fields
|
|
64599
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$N) :
|
|
64275
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$N) : new Map();
|
|
64600
64276
|
for (const fieldDataKey of Object.keys(data)) {
|
|
64601
64277
|
const fieldData = data[fieldDataKey];
|
|
64602
|
-
const requestedField =
|
|
64278
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
64603
64279
|
if (requestedField === undefined) {
|
|
64604
64280
|
continue; // Skip unknown field.
|
|
64605
64281
|
}
|
|
@@ -64992,26 +64668,8 @@
|
|
|
64992
64668
|
}
|
|
64993
64669
|
function select$V(field, variables, fragments) {
|
|
64994
64670
|
return (source, reader, parentRecordId) => {
|
|
64995
|
-
var _a;
|
|
64996
64671
|
const sink = {};
|
|
64997
|
-
(
|
|
64998
|
-
const builtSelection = buildSelectionForNode$M(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
64999
|
-
if (builtSelection !== undefined) {
|
|
65000
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
65001
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
65002
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
65003
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
65004
|
-
if (sink[key] === undefined) {
|
|
65005
|
-
sink[key] = builtSelection[key];
|
|
65006
|
-
}
|
|
65007
|
-
});
|
|
65008
|
-
}
|
|
65009
|
-
else {
|
|
65010
|
-
Object.assign(sink, builtSelection);
|
|
65011
|
-
}
|
|
65012
|
-
}
|
|
65013
|
-
});
|
|
65014
|
-
return sink;
|
|
64672
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$M, source, reader, variables, fragments, parentRecordId);
|
|
65015
64673
|
};
|
|
65016
64674
|
}
|
|
65017
64675
|
function getMinimumSelections$y() {
|
|
@@ -65036,10 +64694,10 @@
|
|
|
65036
64694
|
representationName: name$L
|
|
65037
64695
|
});
|
|
65038
64696
|
// get all cache keys from normalizable fields
|
|
65039
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$M) :
|
|
64697
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$M) : new Map();
|
|
65040
64698
|
for (const fieldDataKey of Object.keys(data)) {
|
|
65041
64699
|
const fieldData = data[fieldDataKey];
|
|
65042
|
-
const requestedField =
|
|
64700
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
65043
64701
|
if (requestedField === undefined) {
|
|
65044
64702
|
continue; // Skip unknown field.
|
|
65045
64703
|
}
|
|
@@ -65203,26 +64861,8 @@
|
|
|
65203
64861
|
}
|
|
65204
64862
|
function select$U(field, variables, fragments) {
|
|
65205
64863
|
return (source, reader, parentRecordId) => {
|
|
65206
|
-
var _a;
|
|
65207
64864
|
const sink = {};
|
|
65208
|
-
(
|
|
65209
|
-
const builtSelection = buildSelectionForNode$L(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
65210
|
-
if (builtSelection !== undefined) {
|
|
65211
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
65212
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
65213
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
65214
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
65215
|
-
if (sink[key] === undefined) {
|
|
65216
|
-
sink[key] = builtSelection[key];
|
|
65217
|
-
}
|
|
65218
|
-
});
|
|
65219
|
-
}
|
|
65220
|
-
else {
|
|
65221
|
-
Object.assign(sink, builtSelection);
|
|
65222
|
-
}
|
|
65223
|
-
}
|
|
65224
|
-
});
|
|
65225
|
-
return sink;
|
|
64865
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$L, source, reader, variables, fragments, parentRecordId);
|
|
65226
64866
|
};
|
|
65227
64867
|
}
|
|
65228
64868
|
function getTypeCacheKeys$P(astNode, state) {
|
|
@@ -65359,26 +64999,8 @@
|
|
|
65359
64999
|
}
|
|
65360
65000
|
function select$T(field, variables, fragments) {
|
|
65361
65001
|
return (source, reader, parentRecordId) => {
|
|
65362
|
-
var _a;
|
|
65363
65002
|
const sink = {};
|
|
65364
|
-
(
|
|
65365
|
-
const builtSelection = buildSelectionForNode$K(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
65366
|
-
if (builtSelection !== undefined) {
|
|
65367
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
65368
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
65369
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
65370
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
65371
|
-
if (sink[key] === undefined) {
|
|
65372
|
-
sink[key] = builtSelection[key];
|
|
65373
|
-
}
|
|
65374
|
-
});
|
|
65375
|
-
}
|
|
65376
|
-
else {
|
|
65377
|
-
Object.assign(sink, builtSelection);
|
|
65378
|
-
}
|
|
65379
|
-
}
|
|
65380
|
-
});
|
|
65381
|
-
return sink;
|
|
65003
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$K, source, reader, variables, fragments, parentRecordId);
|
|
65382
65004
|
};
|
|
65383
65005
|
}
|
|
65384
65006
|
function getTypeCacheKeys$O(astNode, state) {
|
|
@@ -65527,26 +65149,8 @@
|
|
|
65527
65149
|
}
|
|
65528
65150
|
function select$S(field, variables, fragments) {
|
|
65529
65151
|
return (source, reader, parentRecordId) => {
|
|
65530
|
-
var _a;
|
|
65531
65152
|
const sink = {};
|
|
65532
|
-
(
|
|
65533
|
-
const builtSelection = buildSelectionForNode$J(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
65534
|
-
if (builtSelection !== undefined) {
|
|
65535
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
65536
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
65537
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
65538
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
65539
|
-
if (sink[key] === undefined) {
|
|
65540
|
-
sink[key] = builtSelection[key];
|
|
65541
|
-
}
|
|
65542
|
-
});
|
|
65543
|
-
}
|
|
65544
|
-
else {
|
|
65545
|
-
Object.assign(sink, builtSelection);
|
|
65546
|
-
}
|
|
65547
|
-
}
|
|
65548
|
-
});
|
|
65549
|
-
return sink;
|
|
65153
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$J, source, reader, variables, fragments, parentRecordId);
|
|
65550
65154
|
};
|
|
65551
65155
|
}
|
|
65552
65156
|
function getMinimumSelections$x() {
|
|
@@ -65571,10 +65175,10 @@
|
|
|
65571
65175
|
representationName: name$I
|
|
65572
65176
|
});
|
|
65573
65177
|
// get all cache keys from normalizable fields
|
|
65574
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$J) :
|
|
65178
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$J) : new Map();
|
|
65575
65179
|
for (const fieldDataKey of Object.keys(data)) {
|
|
65576
65180
|
const fieldData = data[fieldDataKey];
|
|
65577
|
-
const requestedField =
|
|
65181
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
65578
65182
|
if (requestedField === undefined) {
|
|
65579
65183
|
continue; // Skip unknown field.
|
|
65580
65184
|
}
|
|
@@ -65888,26 +65492,8 @@
|
|
|
65888
65492
|
}
|
|
65889
65493
|
function select$R(field, variables, fragments) {
|
|
65890
65494
|
return (source, reader, parentRecordId) => {
|
|
65891
|
-
var _a;
|
|
65892
65495
|
const sink = {};
|
|
65893
|
-
(
|
|
65894
|
-
const builtSelection = buildSelectionForNode$I(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
65895
|
-
if (builtSelection !== undefined) {
|
|
65896
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
65897
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
65898
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
65899
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
65900
|
-
if (sink[key] === undefined) {
|
|
65901
|
-
sink[key] = builtSelection[key];
|
|
65902
|
-
}
|
|
65903
|
-
});
|
|
65904
|
-
}
|
|
65905
|
-
else {
|
|
65906
|
-
Object.assign(sink, builtSelection);
|
|
65907
|
-
}
|
|
65908
|
-
}
|
|
65909
|
-
});
|
|
65910
|
-
return sink;
|
|
65496
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$I, source, reader, variables, fragments, parentRecordId);
|
|
65911
65497
|
};
|
|
65912
65498
|
}
|
|
65913
65499
|
function getTypeCacheKeys$M(astNode, state) {
|
|
@@ -66056,26 +65642,8 @@
|
|
|
66056
65642
|
}
|
|
66057
65643
|
function select$Q(field, variables, fragments) {
|
|
66058
65644
|
return (source, reader, parentRecordId) => {
|
|
66059
|
-
var _a;
|
|
66060
65645
|
const sink = {};
|
|
66061
|
-
(
|
|
66062
|
-
const builtSelection = buildSelectionForNode$H(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
66063
|
-
if (builtSelection !== undefined) {
|
|
66064
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
66065
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
66066
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
66067
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
66068
|
-
if (sink[key] === undefined) {
|
|
66069
|
-
sink[key] = builtSelection[key];
|
|
66070
|
-
}
|
|
66071
|
-
});
|
|
66072
|
-
}
|
|
66073
|
-
else {
|
|
66074
|
-
Object.assign(sink, builtSelection);
|
|
66075
|
-
}
|
|
66076
|
-
}
|
|
66077
|
-
});
|
|
66078
|
-
return sink;
|
|
65646
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$H, source, reader, variables, fragments, parentRecordId);
|
|
66079
65647
|
};
|
|
66080
65648
|
}
|
|
66081
65649
|
function getMinimumSelections$w() {
|
|
@@ -66100,10 +65668,10 @@
|
|
|
66100
65668
|
representationName: name$G
|
|
66101
65669
|
});
|
|
66102
65670
|
// get all cache keys from normalizable fields
|
|
66103
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$H) :
|
|
65671
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$H) : new Map();
|
|
66104
65672
|
for (const fieldDataKey of Object.keys(data)) {
|
|
66105
65673
|
const fieldData = data[fieldDataKey];
|
|
66106
|
-
const requestedField =
|
|
65674
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
66107
65675
|
if (requestedField === undefined) {
|
|
66108
65676
|
continue; // Skip unknown field.
|
|
66109
65677
|
}
|
|
@@ -66373,26 +65941,8 @@
|
|
|
66373
65941
|
}
|
|
66374
65942
|
function select$P(field, variables, fragments) {
|
|
66375
65943
|
return (source, reader, parentRecordId) => {
|
|
66376
|
-
var _a;
|
|
66377
65944
|
const sink = {};
|
|
66378
|
-
(
|
|
66379
|
-
const builtSelection = buildSelectionForNode$G(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
66380
|
-
if (builtSelection !== undefined) {
|
|
66381
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
66382
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
66383
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
66384
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
66385
|
-
if (sink[key] === undefined) {
|
|
66386
|
-
sink[key] = builtSelection[key];
|
|
66387
|
-
}
|
|
66388
|
-
});
|
|
66389
|
-
}
|
|
66390
|
-
else {
|
|
66391
|
-
Object.assign(sink, builtSelection);
|
|
66392
|
-
}
|
|
66393
|
-
}
|
|
66394
|
-
});
|
|
66395
|
-
return sink;
|
|
65945
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$G, source, reader, variables, fragments, parentRecordId);
|
|
66396
65946
|
};
|
|
66397
65947
|
}
|
|
66398
65948
|
function getTypeCacheKeys$K(astNode, state) {
|
|
@@ -66535,26 +66085,8 @@
|
|
|
66535
66085
|
}
|
|
66536
66086
|
function select$O(field, variables, fragments) {
|
|
66537
66087
|
return (source, reader, parentRecordId) => {
|
|
66538
|
-
var _a;
|
|
66539
66088
|
const sink = {};
|
|
66540
|
-
(
|
|
66541
|
-
const builtSelection = buildSelectionForNode$F(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
66542
|
-
if (builtSelection !== undefined) {
|
|
66543
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
66544
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
66545
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
66546
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
66547
|
-
if (sink[key] === undefined) {
|
|
66548
|
-
sink[key] = builtSelection[key];
|
|
66549
|
-
}
|
|
66550
|
-
});
|
|
66551
|
-
}
|
|
66552
|
-
else {
|
|
66553
|
-
Object.assign(sink, builtSelection);
|
|
66554
|
-
}
|
|
66555
|
-
}
|
|
66556
|
-
});
|
|
66557
|
-
return sink;
|
|
66089
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$F, source, reader, variables, fragments, parentRecordId);
|
|
66558
66090
|
};
|
|
66559
66091
|
}
|
|
66560
66092
|
function getTypeCacheKeys$J(astNode, state) {
|
|
@@ -66709,26 +66241,8 @@
|
|
|
66709
66241
|
}
|
|
66710
66242
|
function select$N(field, variables, fragments) {
|
|
66711
66243
|
return (source, reader, parentRecordId) => {
|
|
66712
|
-
var _a;
|
|
66713
66244
|
const sink = {};
|
|
66714
|
-
(
|
|
66715
|
-
const builtSelection = buildSelectionForNode$E(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
66716
|
-
if (builtSelection !== undefined) {
|
|
66717
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
66718
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
66719
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
66720
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
66721
|
-
if (sink[key] === undefined) {
|
|
66722
|
-
sink[key] = builtSelection[key];
|
|
66723
|
-
}
|
|
66724
|
-
});
|
|
66725
|
-
}
|
|
66726
|
-
else {
|
|
66727
|
-
Object.assign(sink, builtSelection);
|
|
66728
|
-
}
|
|
66729
|
-
}
|
|
66730
|
-
});
|
|
66731
|
-
return sink;
|
|
66245
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$E, source, reader, variables, fragments, parentRecordId);
|
|
66732
66246
|
};
|
|
66733
66247
|
}
|
|
66734
66248
|
function getMinimumSelections$v() {
|
|
@@ -66753,10 +66267,10 @@
|
|
|
66753
66267
|
representationName: name$D
|
|
66754
66268
|
});
|
|
66755
66269
|
// get all cache keys from normalizable fields
|
|
66756
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$E) :
|
|
66270
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$E) : new Map();
|
|
66757
66271
|
for (const fieldDataKey of Object.keys(data)) {
|
|
66758
66272
|
const fieldData = data[fieldDataKey];
|
|
66759
|
-
const requestedField =
|
|
66273
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
66760
66274
|
if (requestedField === undefined) {
|
|
66761
66275
|
continue; // Skip unknown field.
|
|
66762
66276
|
}
|
|
@@ -67051,26 +66565,8 @@
|
|
|
67051
66565
|
}
|
|
67052
66566
|
function select$M(field, variables, fragments) {
|
|
67053
66567
|
return (source, reader, parentRecordId) => {
|
|
67054
|
-
var _a;
|
|
67055
66568
|
const sink = {};
|
|
67056
|
-
(
|
|
67057
|
-
const builtSelection = buildSelectionForNode$D(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
67058
|
-
if (builtSelection !== undefined) {
|
|
67059
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
67060
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
67061
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
67062
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
67063
|
-
if (sink[key] === undefined) {
|
|
67064
|
-
sink[key] = builtSelection[key];
|
|
67065
|
-
}
|
|
67066
|
-
});
|
|
67067
|
-
}
|
|
67068
|
-
else {
|
|
67069
|
-
Object.assign(sink, builtSelection);
|
|
67070
|
-
}
|
|
67071
|
-
}
|
|
67072
|
-
});
|
|
67073
|
-
return sink;
|
|
66569
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$D, source, reader, variables, fragments, parentRecordId);
|
|
67074
66570
|
};
|
|
67075
66571
|
}
|
|
67076
66572
|
function getTypeCacheKeys$H(astNode, state) {
|
|
@@ -67361,26 +66857,8 @@
|
|
|
67361
66857
|
}
|
|
67362
66858
|
function select$L(field, variables, fragments) {
|
|
67363
66859
|
return (source, reader, parentRecordId) => {
|
|
67364
|
-
var _a;
|
|
67365
66860
|
const sink = {};
|
|
67366
|
-
(
|
|
67367
|
-
const builtSelection = buildSelectionForNode$C(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
67368
|
-
if (builtSelection !== undefined) {
|
|
67369
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
67370
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
67371
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
67372
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
67373
|
-
if (sink[key] === undefined) {
|
|
67374
|
-
sink[key] = builtSelection[key];
|
|
67375
|
-
}
|
|
67376
|
-
});
|
|
67377
|
-
}
|
|
67378
|
-
else {
|
|
67379
|
-
Object.assign(sink, builtSelection);
|
|
67380
|
-
}
|
|
67381
|
-
}
|
|
67382
|
-
});
|
|
67383
|
-
return sink;
|
|
66861
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$C, source, reader, variables, fragments, parentRecordId);
|
|
67384
66862
|
};
|
|
67385
66863
|
}
|
|
67386
66864
|
function getTypeCacheKeys$G(astNode, state) {
|
|
@@ -67529,26 +67007,8 @@
|
|
|
67529
67007
|
}
|
|
67530
67008
|
function select$K(field, variables, fragments) {
|
|
67531
67009
|
return (source, reader, parentRecordId) => {
|
|
67532
|
-
var _a;
|
|
67533
67010
|
const sink = {};
|
|
67534
|
-
(
|
|
67535
|
-
const builtSelection = buildSelectionForNode$B(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
67536
|
-
if (builtSelection !== undefined) {
|
|
67537
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
67538
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
67539
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
67540
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
67541
|
-
if (sink[key] === undefined) {
|
|
67542
|
-
sink[key] = builtSelection[key];
|
|
67543
|
-
}
|
|
67544
|
-
});
|
|
67545
|
-
}
|
|
67546
|
-
else {
|
|
67547
|
-
Object.assign(sink, builtSelection);
|
|
67548
|
-
}
|
|
67549
|
-
}
|
|
67550
|
-
});
|
|
67551
|
-
return sink;
|
|
67011
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$B, source, reader, variables, fragments, parentRecordId);
|
|
67552
67012
|
};
|
|
67553
67013
|
}
|
|
67554
67014
|
function getMinimumSelections$t() {
|
|
@@ -67573,10 +67033,10 @@
|
|
|
67573
67033
|
representationName: name$A
|
|
67574
67034
|
});
|
|
67575
67035
|
// get all cache keys from normalizable fields
|
|
67576
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$B) :
|
|
67036
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$B) : new Map();
|
|
67577
67037
|
for (const fieldDataKey of Object.keys(data)) {
|
|
67578
67038
|
const fieldData = data[fieldDataKey];
|
|
67579
|
-
const requestedField =
|
|
67039
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
67580
67040
|
if (requestedField === undefined) {
|
|
67581
67041
|
continue; // Skip unknown field.
|
|
67582
67042
|
}
|
|
@@ -67846,26 +67306,8 @@
|
|
|
67846
67306
|
}
|
|
67847
67307
|
function select$J(field, variables, fragments) {
|
|
67848
67308
|
return (source, reader, parentRecordId) => {
|
|
67849
|
-
var _a;
|
|
67850
67309
|
const sink = {};
|
|
67851
|
-
(
|
|
67852
|
-
const builtSelection = buildSelectionForNode$A(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
67853
|
-
if (builtSelection !== undefined) {
|
|
67854
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
67855
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
67856
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
67857
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
67858
|
-
if (sink[key] === undefined) {
|
|
67859
|
-
sink[key] = builtSelection[key];
|
|
67860
|
-
}
|
|
67861
|
-
});
|
|
67862
|
-
}
|
|
67863
|
-
else {
|
|
67864
|
-
Object.assign(sink, builtSelection);
|
|
67865
|
-
}
|
|
67866
|
-
}
|
|
67867
|
-
});
|
|
67868
|
-
return sink;
|
|
67310
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$A, source, reader, variables, fragments, parentRecordId);
|
|
67869
67311
|
};
|
|
67870
67312
|
}
|
|
67871
67313
|
function getTypeCacheKeys$E(astNode, state) {
|
|
@@ -68002,26 +67444,8 @@
|
|
|
68002
67444
|
}
|
|
68003
67445
|
function select$I(field, variables, fragments) {
|
|
68004
67446
|
return (source, reader, parentRecordId) => {
|
|
68005
|
-
var _a;
|
|
68006
67447
|
const sink = {};
|
|
68007
|
-
(
|
|
68008
|
-
const builtSelection = buildSelectionForNode$z(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
68009
|
-
if (builtSelection !== undefined) {
|
|
68010
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
68011
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
68012
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
68013
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
68014
|
-
if (sink[key] === undefined) {
|
|
68015
|
-
sink[key] = builtSelection[key];
|
|
68016
|
-
}
|
|
68017
|
-
});
|
|
68018
|
-
}
|
|
68019
|
-
else {
|
|
68020
|
-
Object.assign(sink, builtSelection);
|
|
68021
|
-
}
|
|
68022
|
-
}
|
|
68023
|
-
});
|
|
68024
|
-
return sink;
|
|
67448
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$z, source, reader, variables, fragments, parentRecordId);
|
|
68025
67449
|
};
|
|
68026
67450
|
}
|
|
68027
67451
|
function getTypeCacheKeys$D(astNode, state) {
|
|
@@ -68168,26 +67592,8 @@
|
|
|
68168
67592
|
}
|
|
68169
67593
|
function select$H(field, variables, fragments) {
|
|
68170
67594
|
return (source, reader, parentRecordId) => {
|
|
68171
|
-
var _a;
|
|
68172
67595
|
const sink = {};
|
|
68173
|
-
(
|
|
68174
|
-
const builtSelection = buildSelectionForNode$y(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
68175
|
-
if (builtSelection !== undefined) {
|
|
68176
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
68177
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
68178
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
68179
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
68180
|
-
if (sink[key] === undefined) {
|
|
68181
|
-
sink[key] = builtSelection[key];
|
|
68182
|
-
}
|
|
68183
|
-
});
|
|
68184
|
-
}
|
|
68185
|
-
else {
|
|
68186
|
-
Object.assign(sink, builtSelection);
|
|
68187
|
-
}
|
|
68188
|
-
}
|
|
68189
|
-
});
|
|
68190
|
-
return sink;
|
|
67596
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$y, source, reader, variables, fragments, parentRecordId);
|
|
68191
67597
|
};
|
|
68192
67598
|
}
|
|
68193
67599
|
function getMinimumSelections$s() {
|
|
@@ -68212,10 +67618,10 @@
|
|
|
68212
67618
|
representationName: name$x
|
|
68213
67619
|
});
|
|
68214
67620
|
// get all cache keys from normalizable fields
|
|
68215
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$y) :
|
|
67621
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$y) : new Map();
|
|
68216
67622
|
for (const fieldDataKey of Object.keys(data)) {
|
|
68217
67623
|
const fieldData = data[fieldDataKey];
|
|
68218
|
-
const requestedField =
|
|
67624
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
68219
67625
|
if (requestedField === undefined) {
|
|
68220
67626
|
continue; // Skip unknown field.
|
|
68221
67627
|
}
|
|
@@ -68389,26 +67795,8 @@
|
|
|
68389
67795
|
}
|
|
68390
67796
|
function select$G(field, variables, fragments) {
|
|
68391
67797
|
return (source, reader, parentRecordId) => {
|
|
68392
|
-
var _a;
|
|
68393
67798
|
const sink = {};
|
|
68394
|
-
(
|
|
68395
|
-
const builtSelection = buildSelectionForNode$x(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
68396
|
-
if (builtSelection !== undefined) {
|
|
68397
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
68398
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
68399
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
68400
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
68401
|
-
if (sink[key] === undefined) {
|
|
68402
|
-
sink[key] = builtSelection[key];
|
|
68403
|
-
}
|
|
68404
|
-
});
|
|
68405
|
-
}
|
|
68406
|
-
else {
|
|
68407
|
-
Object.assign(sink, builtSelection);
|
|
68408
|
-
}
|
|
68409
|
-
}
|
|
68410
|
-
});
|
|
68411
|
-
return sink;
|
|
67799
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$x, source, reader, variables, fragments, parentRecordId);
|
|
68412
67800
|
};
|
|
68413
67801
|
}
|
|
68414
67802
|
function getTypeCacheKeys$B(astNode, state) {
|
|
@@ -68557,26 +67945,8 @@
|
|
|
68557
67945
|
}
|
|
68558
67946
|
function select$F(field, variables, fragments) {
|
|
68559
67947
|
return (source, reader, parentRecordId) => {
|
|
68560
|
-
var _a;
|
|
68561
67948
|
const sink = {};
|
|
68562
|
-
(
|
|
68563
|
-
const builtSelection = buildSelectionForNode$w(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
68564
|
-
if (builtSelection !== undefined) {
|
|
68565
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
68566
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
68567
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
68568
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
68569
|
-
if (sink[key] === undefined) {
|
|
68570
|
-
sink[key] = builtSelection[key];
|
|
68571
|
-
}
|
|
68572
|
-
});
|
|
68573
|
-
}
|
|
68574
|
-
else {
|
|
68575
|
-
Object.assign(sink, builtSelection);
|
|
68576
|
-
}
|
|
68577
|
-
}
|
|
68578
|
-
});
|
|
68579
|
-
return sink;
|
|
67949
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$w, source, reader, variables, fragments, parentRecordId);
|
|
68580
67950
|
};
|
|
68581
67951
|
}
|
|
68582
67952
|
function getMinimumSelections$r() {
|
|
@@ -68601,10 +67971,10 @@
|
|
|
68601
67971
|
representationName: name$v
|
|
68602
67972
|
});
|
|
68603
67973
|
// get all cache keys from normalizable fields
|
|
68604
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$w) :
|
|
67974
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$w) : new Map();
|
|
68605
67975
|
for (const fieldDataKey of Object.keys(data)) {
|
|
68606
67976
|
const fieldData = data[fieldDataKey];
|
|
68607
|
-
const requestedField =
|
|
67977
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
68608
67978
|
if (requestedField === undefined) {
|
|
68609
67979
|
continue; // Skip unknown field.
|
|
68610
67980
|
}
|
|
@@ -68893,26 +68263,8 @@
|
|
|
68893
68263
|
}
|
|
68894
68264
|
function select$E(field, variables, fragments) {
|
|
68895
68265
|
return (source, reader, parentRecordId) => {
|
|
68896
|
-
var _a;
|
|
68897
68266
|
const sink = {};
|
|
68898
|
-
(
|
|
68899
|
-
const builtSelection = buildSelectionForNode$v(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
68900
|
-
if (builtSelection !== undefined) {
|
|
68901
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
68902
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
68903
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
68904
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
68905
|
-
if (sink[key] === undefined) {
|
|
68906
|
-
sink[key] = builtSelection[key];
|
|
68907
|
-
}
|
|
68908
|
-
});
|
|
68909
|
-
}
|
|
68910
|
-
else {
|
|
68911
|
-
Object.assign(sink, builtSelection);
|
|
68912
|
-
}
|
|
68913
|
-
}
|
|
68914
|
-
});
|
|
68915
|
-
return sink;
|
|
68267
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$v, source, reader, variables, fragments, parentRecordId);
|
|
68916
68268
|
};
|
|
68917
68269
|
}
|
|
68918
68270
|
function getTypeCacheKeys$z(astNode, state) {
|
|
@@ -69061,26 +68413,8 @@
|
|
|
69061
68413
|
}
|
|
69062
68414
|
function select$D(field, variables, fragments) {
|
|
69063
68415
|
return (source, reader, parentRecordId) => {
|
|
69064
|
-
var _a;
|
|
69065
68416
|
const sink = {};
|
|
69066
|
-
(
|
|
69067
|
-
const builtSelection = buildSelectionForNode$u(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
69068
|
-
if (builtSelection !== undefined) {
|
|
69069
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
69070
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
69071
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
69072
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
69073
|
-
if (sink[key] === undefined) {
|
|
69074
|
-
sink[key] = builtSelection[key];
|
|
69075
|
-
}
|
|
69076
|
-
});
|
|
69077
|
-
}
|
|
69078
|
-
else {
|
|
69079
|
-
Object.assign(sink, builtSelection);
|
|
69080
|
-
}
|
|
69081
|
-
}
|
|
69082
|
-
});
|
|
69083
|
-
return sink;
|
|
68417
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$u, source, reader, variables, fragments, parentRecordId);
|
|
69084
68418
|
};
|
|
69085
68419
|
}
|
|
69086
68420
|
function getMinimumSelections$q() {
|
|
@@ -69105,10 +68439,10 @@
|
|
|
69105
68439
|
representationName: name$t
|
|
69106
68440
|
});
|
|
69107
68441
|
// get all cache keys from normalizable fields
|
|
69108
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$u) :
|
|
68442
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$u) : new Map();
|
|
69109
68443
|
for (const fieldDataKey of Object.keys(data)) {
|
|
69110
68444
|
const fieldData = data[fieldDataKey];
|
|
69111
|
-
const requestedField =
|
|
68445
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
69112
68446
|
if (requestedField === undefined) {
|
|
69113
68447
|
continue; // Skip unknown field.
|
|
69114
68448
|
}
|
|
@@ -69405,26 +68739,8 @@
|
|
|
69405
68739
|
}
|
|
69406
68740
|
function select$C(field, variables, fragments) {
|
|
69407
68741
|
return (source, reader, parentRecordId) => {
|
|
69408
|
-
var _a;
|
|
69409
68742
|
const sink = {};
|
|
69410
|
-
(
|
|
69411
|
-
const builtSelection = buildSelectionForNode$t(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
69412
|
-
if (builtSelection !== undefined) {
|
|
69413
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
69414
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
69415
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
69416
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
69417
|
-
if (sink[key] === undefined) {
|
|
69418
|
-
sink[key] = builtSelection[key];
|
|
69419
|
-
}
|
|
69420
|
-
});
|
|
69421
|
-
}
|
|
69422
|
-
else {
|
|
69423
|
-
Object.assign(sink, builtSelection);
|
|
69424
|
-
}
|
|
69425
|
-
}
|
|
69426
|
-
});
|
|
69427
|
-
return sink;
|
|
68743
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$t, source, reader, variables, fragments, parentRecordId);
|
|
69428
68744
|
};
|
|
69429
68745
|
}
|
|
69430
68746
|
function getMinimumSelections$p() {
|
|
@@ -69449,10 +68765,10 @@
|
|
|
69449
68765
|
representationName: name$s
|
|
69450
68766
|
});
|
|
69451
68767
|
// get all cache keys from normalizable fields
|
|
69452
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$t) :
|
|
68768
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$t) : new Map();
|
|
69453
68769
|
for (const fieldDataKey of Object.keys(data)) {
|
|
69454
68770
|
const fieldData = data[fieldDataKey];
|
|
69455
|
-
const requestedField =
|
|
68771
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
69456
68772
|
if (requestedField === undefined) {
|
|
69457
68773
|
continue; // Skip unknown field.
|
|
69458
68774
|
}
|
|
@@ -69734,26 +69050,8 @@
|
|
|
69734
69050
|
}
|
|
69735
69051
|
function select$B(field, variables, fragments) {
|
|
69736
69052
|
return (source, reader, parentRecordId) => {
|
|
69737
|
-
var _a;
|
|
69738
69053
|
const sink = {};
|
|
69739
|
-
(
|
|
69740
|
-
const builtSelection = buildSelectionForNode$s(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
69741
|
-
if (builtSelection !== undefined) {
|
|
69742
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
69743
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
69744
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
69745
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
69746
|
-
if (sink[key] === undefined) {
|
|
69747
|
-
sink[key] = builtSelection[key];
|
|
69748
|
-
}
|
|
69749
|
-
});
|
|
69750
|
-
}
|
|
69751
|
-
else {
|
|
69752
|
-
Object.assign(sink, builtSelection);
|
|
69753
|
-
}
|
|
69754
|
-
}
|
|
69755
|
-
});
|
|
69756
|
-
return sink;
|
|
69054
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$s, source, reader, variables, fragments, parentRecordId);
|
|
69757
69055
|
};
|
|
69758
69056
|
}
|
|
69759
69057
|
function getTypeCacheKeys$w(astNode, state) {
|
|
@@ -69902,26 +69200,8 @@
|
|
|
69902
69200
|
}
|
|
69903
69201
|
function select$A(field, variables, fragments) {
|
|
69904
69202
|
return (source, reader, parentRecordId) => {
|
|
69905
|
-
var _a;
|
|
69906
69203
|
const sink = {};
|
|
69907
|
-
(
|
|
69908
|
-
const builtSelection = buildSelectionForNode$r(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
69909
|
-
if (builtSelection !== undefined) {
|
|
69910
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
69911
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
69912
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
69913
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
69914
|
-
if (sink[key] === undefined) {
|
|
69915
|
-
sink[key] = builtSelection[key];
|
|
69916
|
-
}
|
|
69917
|
-
});
|
|
69918
|
-
}
|
|
69919
|
-
else {
|
|
69920
|
-
Object.assign(sink, builtSelection);
|
|
69921
|
-
}
|
|
69922
|
-
}
|
|
69923
|
-
});
|
|
69924
|
-
return sink;
|
|
69204
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$r, source, reader, variables, fragments, parentRecordId);
|
|
69925
69205
|
};
|
|
69926
69206
|
}
|
|
69927
69207
|
function getMinimumSelections$o() {
|
|
@@ -69946,10 +69226,10 @@
|
|
|
69946
69226
|
representationName: name$q
|
|
69947
69227
|
});
|
|
69948
69228
|
// get all cache keys from normalizable fields
|
|
69949
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$r) :
|
|
69229
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$r) : new Map();
|
|
69950
69230
|
for (const fieldDataKey of Object.keys(data)) {
|
|
69951
69231
|
const fieldData = data[fieldDataKey];
|
|
69952
|
-
const requestedField =
|
|
69232
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
69953
69233
|
if (requestedField === undefined) {
|
|
69954
69234
|
continue; // Skip unknown field.
|
|
69955
69235
|
}
|
|
@@ -70231,26 +69511,8 @@
|
|
|
70231
69511
|
}
|
|
70232
69512
|
function select$z(field, variables, fragments) {
|
|
70233
69513
|
return (source, reader, parentRecordId) => {
|
|
70234
|
-
var _a;
|
|
70235
69514
|
const sink = {};
|
|
70236
|
-
(
|
|
70237
|
-
const builtSelection = buildSelectionForNode$q(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
70238
|
-
if (builtSelection !== undefined) {
|
|
70239
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
70240
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
70241
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
70242
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
70243
|
-
if (sink[key] === undefined) {
|
|
70244
|
-
sink[key] = builtSelection[key];
|
|
70245
|
-
}
|
|
70246
|
-
});
|
|
70247
|
-
}
|
|
70248
|
-
else {
|
|
70249
|
-
Object.assign(sink, builtSelection);
|
|
70250
|
-
}
|
|
70251
|
-
}
|
|
70252
|
-
});
|
|
70253
|
-
return sink;
|
|
69515
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$q, source, reader, variables, fragments, parentRecordId);
|
|
70254
69516
|
};
|
|
70255
69517
|
}
|
|
70256
69518
|
function getMinimumSelections$n() {
|
|
@@ -70275,10 +69537,10 @@
|
|
|
70275
69537
|
representationName: name$p
|
|
70276
69538
|
});
|
|
70277
69539
|
// get all cache keys from normalizable fields
|
|
70278
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$q) :
|
|
69540
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$q) : new Map();
|
|
70279
69541
|
for (const fieldDataKey of Object.keys(data)) {
|
|
70280
69542
|
const fieldData = data[fieldDataKey];
|
|
70281
|
-
const requestedField =
|
|
69543
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
70282
69544
|
if (requestedField === undefined) {
|
|
70283
69545
|
continue; // Skip unknown field.
|
|
70284
69546
|
}
|
|
@@ -70560,26 +69822,8 @@
|
|
|
70560
69822
|
}
|
|
70561
69823
|
function select$y(field, variables, fragments) {
|
|
70562
69824
|
return (source, reader, parentRecordId) => {
|
|
70563
|
-
var _a;
|
|
70564
69825
|
const sink = {};
|
|
70565
|
-
(
|
|
70566
|
-
const builtSelection = buildSelectionForNode$p(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
70567
|
-
if (builtSelection !== undefined) {
|
|
70568
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
70569
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
70570
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
70571
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
70572
|
-
if (sink[key] === undefined) {
|
|
70573
|
-
sink[key] = builtSelection[key];
|
|
70574
|
-
}
|
|
70575
|
-
});
|
|
70576
|
-
}
|
|
70577
|
-
else {
|
|
70578
|
-
Object.assign(sink, builtSelection);
|
|
70579
|
-
}
|
|
70580
|
-
}
|
|
70581
|
-
});
|
|
70582
|
-
return sink;
|
|
69826
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$p, source, reader, variables, fragments, parentRecordId);
|
|
70583
69827
|
};
|
|
70584
69828
|
}
|
|
70585
69829
|
function getMinimumSelections$m() {
|
|
@@ -70604,10 +69848,10 @@
|
|
|
70604
69848
|
representationName: name$o
|
|
70605
69849
|
});
|
|
70606
69850
|
// get all cache keys from normalizable fields
|
|
70607
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$p) :
|
|
69851
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$p) : new Map();
|
|
70608
69852
|
for (const fieldDataKey of Object.keys(data)) {
|
|
70609
69853
|
const fieldData = data[fieldDataKey];
|
|
70610
|
-
const requestedField =
|
|
69854
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
70611
69855
|
if (requestedField === undefined) {
|
|
70612
69856
|
continue; // Skip unknown field.
|
|
70613
69857
|
}
|
|
@@ -70877,26 +70121,8 @@
|
|
|
70877
70121
|
}
|
|
70878
70122
|
function select$x(field, variables, fragments) {
|
|
70879
70123
|
return (source, reader, parentRecordId) => {
|
|
70880
|
-
var _a;
|
|
70881
70124
|
const sink = {};
|
|
70882
|
-
(
|
|
70883
|
-
const builtSelection = buildSelectionForNode$o(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
70884
|
-
if (builtSelection !== undefined) {
|
|
70885
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
70886
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
70887
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
70888
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
70889
|
-
if (sink[key] === undefined) {
|
|
70890
|
-
sink[key] = builtSelection[key];
|
|
70891
|
-
}
|
|
70892
|
-
});
|
|
70893
|
-
}
|
|
70894
|
-
else {
|
|
70895
|
-
Object.assign(sink, builtSelection);
|
|
70896
|
-
}
|
|
70897
|
-
}
|
|
70898
|
-
});
|
|
70899
|
-
return sink;
|
|
70125
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$o, source, reader, variables, fragments, parentRecordId);
|
|
70900
70126
|
};
|
|
70901
70127
|
}
|
|
70902
70128
|
function getTypeCacheKeys$s(astNode, state) {
|
|
@@ -71051,26 +70277,8 @@
|
|
|
71051
70277
|
}
|
|
71052
70278
|
function select$w(field, variables, fragments) {
|
|
71053
70279
|
return (source, reader, parentRecordId) => {
|
|
71054
|
-
var _a;
|
|
71055
70280
|
const sink = {};
|
|
71056
|
-
(
|
|
71057
|
-
const builtSelection = buildSelectionForNode$n(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
71058
|
-
if (builtSelection !== undefined) {
|
|
71059
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
71060
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
71061
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
71062
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
71063
|
-
if (sink[key] === undefined) {
|
|
71064
|
-
sink[key] = builtSelection[key];
|
|
71065
|
-
}
|
|
71066
|
-
});
|
|
71067
|
-
}
|
|
71068
|
-
else {
|
|
71069
|
-
Object.assign(sink, builtSelection);
|
|
71070
|
-
}
|
|
71071
|
-
}
|
|
71072
|
-
});
|
|
71073
|
-
return sink;
|
|
70281
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$n, source, reader, variables, fragments, parentRecordId);
|
|
71074
70282
|
};
|
|
71075
70283
|
}
|
|
71076
70284
|
function getMinimumSelections$l() {
|
|
@@ -71095,10 +70303,10 @@
|
|
|
71095
70303
|
representationName: name$m
|
|
71096
70304
|
});
|
|
71097
70305
|
// get all cache keys from normalizable fields
|
|
71098
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$n) :
|
|
70306
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$n) : new Map();
|
|
71099
70307
|
for (const fieldDataKey of Object.keys(data)) {
|
|
71100
70308
|
const fieldData = data[fieldDataKey];
|
|
71101
|
-
const requestedField =
|
|
70309
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
71102
70310
|
if (requestedField === undefined) {
|
|
71103
70311
|
continue; // Skip unknown field.
|
|
71104
70312
|
}
|
|
@@ -71386,26 +70594,8 @@
|
|
|
71386
70594
|
}
|
|
71387
70595
|
function select$v(field, variables, fragments) {
|
|
71388
70596
|
return (source, reader, parentRecordId) => {
|
|
71389
|
-
var _a;
|
|
71390
70597
|
const sink = {};
|
|
71391
|
-
(
|
|
71392
|
-
const builtSelection = buildSelectionForNode$m(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
71393
|
-
if (builtSelection !== undefined) {
|
|
71394
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
71395
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
71396
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
71397
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
71398
|
-
if (sink[key] === undefined) {
|
|
71399
|
-
sink[key] = builtSelection[key];
|
|
71400
|
-
}
|
|
71401
|
-
});
|
|
71402
|
-
}
|
|
71403
|
-
else {
|
|
71404
|
-
Object.assign(sink, builtSelection);
|
|
71405
|
-
}
|
|
71406
|
-
}
|
|
71407
|
-
});
|
|
71408
|
-
return sink;
|
|
70598
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$m, source, reader, variables, fragments, parentRecordId);
|
|
71409
70599
|
};
|
|
71410
70600
|
}
|
|
71411
70601
|
function getMinimumSelections$k() {
|
|
@@ -71430,10 +70620,10 @@
|
|
|
71430
70620
|
representationName: name$l
|
|
71431
70621
|
});
|
|
71432
70622
|
// get all cache keys from normalizable fields
|
|
71433
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$m) :
|
|
70623
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$m) : new Map();
|
|
71434
70624
|
for (const fieldDataKey of Object.keys(data)) {
|
|
71435
70625
|
const fieldData = data[fieldDataKey];
|
|
71436
|
-
const requestedField =
|
|
70626
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
71437
70627
|
if (requestedField === undefined) {
|
|
71438
70628
|
continue; // Skip unknown field.
|
|
71439
70629
|
}
|
|
@@ -71747,26 +70937,8 @@
|
|
|
71747
70937
|
}
|
|
71748
70938
|
function select$u(field, variables, fragments) {
|
|
71749
70939
|
return (source, reader, parentRecordId) => {
|
|
71750
|
-
var _a;
|
|
71751
70940
|
const sink = {};
|
|
71752
|
-
(
|
|
71753
|
-
const builtSelection = buildSelectionForNode$l(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
71754
|
-
if (builtSelection !== undefined) {
|
|
71755
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
71756
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
71757
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
71758
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
71759
|
-
if (sink[key] === undefined) {
|
|
71760
|
-
sink[key] = builtSelection[key];
|
|
71761
|
-
}
|
|
71762
|
-
});
|
|
71763
|
-
}
|
|
71764
|
-
else {
|
|
71765
|
-
Object.assign(sink, builtSelection);
|
|
71766
|
-
}
|
|
71767
|
-
}
|
|
71768
|
-
});
|
|
71769
|
-
return sink;
|
|
70941
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$l, source, reader, variables, fragments, parentRecordId);
|
|
71770
70942
|
};
|
|
71771
70943
|
}
|
|
71772
70944
|
function getTypeCacheKeys$p(astNode, state) {
|
|
@@ -71907,26 +71079,8 @@
|
|
|
71907
71079
|
}
|
|
71908
71080
|
function select$t(field, variables, fragments) {
|
|
71909
71081
|
return (source, reader, parentRecordId) => {
|
|
71910
|
-
var _a;
|
|
71911
71082
|
const sink = {};
|
|
71912
|
-
(
|
|
71913
|
-
const builtSelection = buildSelectionForNode$k(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
71914
|
-
if (builtSelection !== undefined) {
|
|
71915
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
71916
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
71917
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
71918
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
71919
|
-
if (sink[key] === undefined) {
|
|
71920
|
-
sink[key] = builtSelection[key];
|
|
71921
|
-
}
|
|
71922
|
-
});
|
|
71923
|
-
}
|
|
71924
|
-
else {
|
|
71925
|
-
Object.assign(sink, builtSelection);
|
|
71926
|
-
}
|
|
71927
|
-
}
|
|
71928
|
-
});
|
|
71929
|
-
return sink;
|
|
71083
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$k, source, reader, variables, fragments, parentRecordId);
|
|
71930
71084
|
};
|
|
71931
71085
|
}
|
|
71932
71086
|
function getMinimumSelections$j() {
|
|
@@ -71951,10 +71105,10 @@
|
|
|
71951
71105
|
representationName: name$j
|
|
71952
71106
|
});
|
|
71953
71107
|
// get all cache keys from normalizable fields
|
|
71954
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$k) :
|
|
71108
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$k) : new Map();
|
|
71955
71109
|
for (const fieldDataKey of Object.keys(data)) {
|
|
71956
71110
|
const fieldData = data[fieldDataKey];
|
|
71957
|
-
const requestedField =
|
|
71111
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
71958
71112
|
if (requestedField === undefined) {
|
|
71959
71113
|
continue; // Skip unknown field.
|
|
71960
71114
|
}
|
|
@@ -72122,26 +71276,8 @@
|
|
|
72122
71276
|
}
|
|
72123
71277
|
function select$s(field, variables, fragments) {
|
|
72124
71278
|
return (source, reader, parentRecordId) => {
|
|
72125
|
-
var _a;
|
|
72126
71279
|
const sink = {};
|
|
72127
|
-
(
|
|
72128
|
-
const builtSelection = buildSelectionForNode$j(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
72129
|
-
if (builtSelection !== undefined) {
|
|
72130
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
72131
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
72132
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
72133
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
72134
|
-
if (sink[key] === undefined) {
|
|
72135
|
-
sink[key] = builtSelection[key];
|
|
72136
|
-
}
|
|
72137
|
-
});
|
|
72138
|
-
}
|
|
72139
|
-
else {
|
|
72140
|
-
Object.assign(sink, builtSelection);
|
|
72141
|
-
}
|
|
72142
|
-
}
|
|
72143
|
-
});
|
|
72144
|
-
return sink;
|
|
71280
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$j, source, reader, variables, fragments, parentRecordId);
|
|
72145
71281
|
};
|
|
72146
71282
|
}
|
|
72147
71283
|
function getTypeCacheKeys$n(astNode, state) {
|
|
@@ -72278,26 +71414,8 @@
|
|
|
72278
71414
|
}
|
|
72279
71415
|
function select$r(field, variables, fragments) {
|
|
72280
71416
|
return (source, reader, parentRecordId) => {
|
|
72281
|
-
var _a;
|
|
72282
71417
|
const sink = {};
|
|
72283
|
-
(
|
|
72284
|
-
const builtSelection = buildSelectionForNode$i(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
72285
|
-
if (builtSelection !== undefined) {
|
|
72286
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
72287
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
72288
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
72289
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
72290
|
-
if (sink[key] === undefined) {
|
|
72291
|
-
sink[key] = builtSelection[key];
|
|
72292
|
-
}
|
|
72293
|
-
});
|
|
72294
|
-
}
|
|
72295
|
-
else {
|
|
72296
|
-
Object.assign(sink, builtSelection);
|
|
72297
|
-
}
|
|
72298
|
-
}
|
|
72299
|
-
});
|
|
72300
|
-
return sink;
|
|
71418
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$i, source, reader, variables, fragments, parentRecordId);
|
|
72301
71419
|
};
|
|
72302
71420
|
}
|
|
72303
71421
|
function getTypeCacheKeys$m(astNode, state) {
|
|
@@ -72468,26 +71586,8 @@
|
|
|
72468
71586
|
}
|
|
72469
71587
|
function select$q(field, variables, fragments) {
|
|
72470
71588
|
return (source, reader, parentRecordId) => {
|
|
72471
|
-
var _a;
|
|
72472
71589
|
const sink = {};
|
|
72473
|
-
(
|
|
72474
|
-
const builtSelection = buildSelectionForNode$h(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
72475
|
-
if (builtSelection !== undefined) {
|
|
72476
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
72477
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
72478
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
72479
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
72480
|
-
if (sink[key] === undefined) {
|
|
72481
|
-
sink[key] = builtSelection[key];
|
|
72482
|
-
}
|
|
72483
|
-
});
|
|
72484
|
-
}
|
|
72485
|
-
else {
|
|
72486
|
-
Object.assign(sink, builtSelection);
|
|
72487
|
-
}
|
|
72488
|
-
}
|
|
72489
|
-
});
|
|
72490
|
-
return sink;
|
|
71590
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$h, source, reader, variables, fragments, parentRecordId);
|
|
72491
71591
|
};
|
|
72492
71592
|
}
|
|
72493
71593
|
function getMinimumSelections$h() {
|
|
@@ -72648,26 +71748,8 @@
|
|
|
72648
71748
|
}
|
|
72649
71749
|
function select$p(field, variables, fragments) {
|
|
72650
71750
|
return (source, reader, parentRecordId) => {
|
|
72651
|
-
var _a;
|
|
72652
71751
|
const sink = {};
|
|
72653
|
-
(
|
|
72654
|
-
const builtSelection = buildSelectionForNode$g(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
72655
|
-
if (builtSelection !== undefined) {
|
|
72656
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
72657
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
72658
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
72659
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
72660
|
-
if (sink[key] === undefined) {
|
|
72661
|
-
sink[key] = builtSelection[key];
|
|
72662
|
-
}
|
|
72663
|
-
});
|
|
72664
|
-
}
|
|
72665
|
-
else {
|
|
72666
|
-
Object.assign(sink, builtSelection);
|
|
72667
|
-
}
|
|
72668
|
-
}
|
|
72669
|
-
});
|
|
72670
|
-
return sink;
|
|
71752
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$g, source, reader, variables, fragments, parentRecordId);
|
|
72671
71753
|
};
|
|
72672
71754
|
}
|
|
72673
71755
|
function getMinimumSelections$g() {
|
|
@@ -72820,26 +71902,8 @@
|
|
|
72820
71902
|
}
|
|
72821
71903
|
function select$o(field, variables, fragments) {
|
|
72822
71904
|
return (source, reader, parentRecordId) => {
|
|
72823
|
-
var _a;
|
|
72824
71905
|
const sink = {};
|
|
72825
|
-
(
|
|
72826
|
-
const builtSelection = buildSelectionForNode$f(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
72827
|
-
if (builtSelection !== undefined) {
|
|
72828
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
72829
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
72830
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
72831
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
72832
|
-
if (sink[key] === undefined) {
|
|
72833
|
-
sink[key] = builtSelection[key];
|
|
72834
|
-
}
|
|
72835
|
-
});
|
|
72836
|
-
}
|
|
72837
|
-
else {
|
|
72838
|
-
Object.assign(sink, builtSelection);
|
|
72839
|
-
}
|
|
72840
|
-
}
|
|
72841
|
-
});
|
|
72842
|
-
return sink;
|
|
71906
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$f, source, reader, variables, fragments, parentRecordId);
|
|
72843
71907
|
};
|
|
72844
71908
|
}
|
|
72845
71909
|
function getMinimumSelections$f() {
|
|
@@ -72864,10 +71928,10 @@
|
|
|
72864
71928
|
representationName: name$e
|
|
72865
71929
|
});
|
|
72866
71930
|
// get all cache keys from normalizable fields
|
|
72867
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$f) :
|
|
71931
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$f) : new Map();
|
|
72868
71932
|
for (const fieldDataKey of Object.keys(data)) {
|
|
72869
71933
|
const fieldData = data[fieldDataKey];
|
|
72870
|
-
const requestedField =
|
|
71934
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
72871
71935
|
if (requestedField === undefined) {
|
|
72872
71936
|
continue; // Skip unknown field.
|
|
72873
71937
|
}
|
|
@@ -73352,26 +72416,8 @@
|
|
|
73352
72416
|
}
|
|
73353
72417
|
function select$m(field, variables, fragments) {
|
|
73354
72418
|
return (source, reader, parentRecordId) => {
|
|
73355
|
-
var _a;
|
|
73356
72419
|
const sink = {};
|
|
73357
|
-
(
|
|
73358
|
-
const builtSelection = buildSelectionForNode$e(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
73359
|
-
if (builtSelection !== undefined) {
|
|
73360
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
73361
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
73362
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
73363
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
73364
|
-
if (sink[key] === undefined) {
|
|
73365
|
-
sink[key] = builtSelection[key];
|
|
73366
|
-
}
|
|
73367
|
-
});
|
|
73368
|
-
}
|
|
73369
|
-
else {
|
|
73370
|
-
Object.assign(sink, builtSelection);
|
|
73371
|
-
}
|
|
73372
|
-
}
|
|
73373
|
-
});
|
|
73374
|
-
return sink;
|
|
72420
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$e, source, reader, variables, fragments, parentRecordId);
|
|
73375
72421
|
};
|
|
73376
72422
|
}
|
|
73377
72423
|
function getMinimumSelections$d() {
|
|
@@ -73396,10 +72442,10 @@
|
|
|
73396
72442
|
representationName: name$d
|
|
73397
72443
|
});
|
|
73398
72444
|
// get all cache keys from normalizable fields
|
|
73399
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$e) :
|
|
72445
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$e) : new Map();
|
|
73400
72446
|
for (const fieldDataKey of Object.keys(data)) {
|
|
73401
72447
|
const fieldData = data[fieldDataKey];
|
|
73402
|
-
const requestedField =
|
|
72448
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
73403
72449
|
if (requestedField === undefined) {
|
|
73404
72450
|
continue; // Skip unknown field.
|
|
73405
72451
|
}
|
|
@@ -73948,26 +72994,8 @@
|
|
|
73948
72994
|
}
|
|
73949
72995
|
function select$l(field, variables, fragments) {
|
|
73950
72996
|
return (source, reader, parentRecordId) => {
|
|
73951
|
-
var _a;
|
|
73952
72997
|
const sink = {};
|
|
73953
|
-
(
|
|
73954
|
-
const builtSelection = buildSelectionForNode$d(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
73955
|
-
if (builtSelection !== undefined) {
|
|
73956
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
73957
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
73958
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
73959
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
73960
|
-
if (sink[key] === undefined) {
|
|
73961
|
-
sink[key] = builtSelection[key];
|
|
73962
|
-
}
|
|
73963
|
-
});
|
|
73964
|
-
}
|
|
73965
|
-
else {
|
|
73966
|
-
Object.assign(sink, builtSelection);
|
|
73967
|
-
}
|
|
73968
|
-
}
|
|
73969
|
-
});
|
|
73970
|
-
return sink;
|
|
72998
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$d, source, reader, variables, fragments, parentRecordId);
|
|
73971
72999
|
};
|
|
73972
73000
|
}
|
|
73973
73001
|
function getMinimumSelections$c() {
|
|
@@ -73992,10 +73020,10 @@
|
|
|
73992
73020
|
representationName: name$c
|
|
73993
73021
|
});
|
|
73994
73022
|
// get all cache keys from normalizable fields
|
|
73995
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$d) :
|
|
73023
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$d) : new Map();
|
|
73996
73024
|
for (const fieldDataKey of Object.keys(data)) {
|
|
73997
73025
|
const fieldData = data[fieldDataKey];
|
|
73998
|
-
const requestedField =
|
|
73026
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
73999
73027
|
if (requestedField === undefined) {
|
|
74000
73028
|
continue; // Skip unknown field.
|
|
74001
73029
|
}
|
|
@@ -74146,26 +73174,8 @@
|
|
|
74146
73174
|
}
|
|
74147
73175
|
function select$k(field, variables, fragments) {
|
|
74148
73176
|
return (source, reader, parentRecordId) => {
|
|
74149
|
-
var _a;
|
|
74150
73177
|
const sink = {};
|
|
74151
|
-
(
|
|
74152
|
-
const builtSelection = buildSelectionForNode$c(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
74153
|
-
if (builtSelection !== undefined) {
|
|
74154
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
74155
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
74156
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
74157
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
74158
|
-
if (sink[key] === undefined) {
|
|
74159
|
-
sink[key] = builtSelection[key];
|
|
74160
|
-
}
|
|
74161
|
-
});
|
|
74162
|
-
}
|
|
74163
|
-
else {
|
|
74164
|
-
Object.assign(sink, builtSelection);
|
|
74165
|
-
}
|
|
74166
|
-
}
|
|
74167
|
-
});
|
|
74168
|
-
return sink;
|
|
73178
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$c, source, reader, variables, fragments, parentRecordId);
|
|
74169
73179
|
};
|
|
74170
73180
|
}
|
|
74171
73181
|
function getMinimumSelections$b() {
|
|
@@ -74190,10 +73200,10 @@
|
|
|
74190
73200
|
representationName: name$b
|
|
74191
73201
|
});
|
|
74192
73202
|
// get all cache keys from normalizable fields
|
|
74193
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$c) :
|
|
73203
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$c) : new Map();
|
|
74194
73204
|
for (const fieldDataKey of Object.keys(data)) {
|
|
74195
73205
|
const fieldData = data[fieldDataKey];
|
|
74196
|
-
const requestedField =
|
|
73206
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
74197
73207
|
if (requestedField === undefined) {
|
|
74198
73208
|
continue; // Skip unknown field.
|
|
74199
73209
|
}
|
|
@@ -74351,26 +73361,8 @@
|
|
|
74351
73361
|
}
|
|
74352
73362
|
function select$j(field, variables, fragments) {
|
|
74353
73363
|
return (source, reader, parentRecordId) => {
|
|
74354
|
-
var _a;
|
|
74355
73364
|
const sink = {};
|
|
74356
|
-
(
|
|
74357
|
-
const builtSelection = buildSelectionForNode$b(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
74358
|
-
if (builtSelection !== undefined) {
|
|
74359
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
74360
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
74361
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
74362
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
74363
|
-
if (sink[key] === undefined) {
|
|
74364
|
-
sink[key] = builtSelection[key];
|
|
74365
|
-
}
|
|
74366
|
-
});
|
|
74367
|
-
}
|
|
74368
|
-
else {
|
|
74369
|
-
Object.assign(sink, builtSelection);
|
|
74370
|
-
}
|
|
74371
|
-
}
|
|
74372
|
-
});
|
|
74373
|
-
return sink;
|
|
73365
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$b, source, reader, variables, fragments, parentRecordId);
|
|
74374
73366
|
};
|
|
74375
73367
|
}
|
|
74376
73368
|
function getMinimumSelections$a() {
|
|
@@ -74591,26 +73583,8 @@
|
|
|
74591
73583
|
}
|
|
74592
73584
|
function select$i(field, variables, fragments) {
|
|
74593
73585
|
return (source, reader, parentRecordId) => {
|
|
74594
|
-
var _a;
|
|
74595
73586
|
const sink = {};
|
|
74596
|
-
(
|
|
74597
|
-
const builtSelection = buildSelectionForNode$a(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
74598
|
-
if (builtSelection !== undefined) {
|
|
74599
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
74600
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
74601
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
74602
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
74603
|
-
if (sink[key] === undefined) {
|
|
74604
|
-
sink[key] = builtSelection[key];
|
|
74605
|
-
}
|
|
74606
|
-
});
|
|
74607
|
-
}
|
|
74608
|
-
else {
|
|
74609
|
-
Object.assign(sink, builtSelection);
|
|
74610
|
-
}
|
|
74611
|
-
}
|
|
74612
|
-
});
|
|
74613
|
-
return sink;
|
|
73587
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$a, source, reader, variables, fragments, parentRecordId);
|
|
74614
73588
|
};
|
|
74615
73589
|
}
|
|
74616
73590
|
function getMinimumSelections$9() {
|
|
@@ -74636,10 +73610,10 @@
|
|
|
74636
73610
|
representationName: name$9
|
|
74637
73611
|
});
|
|
74638
73612
|
// get all cache keys from normalizable fields
|
|
74639
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$a) :
|
|
73613
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$a) : new Map();
|
|
74640
73614
|
for (const fieldDataKey of Object.keys(data)) {
|
|
74641
73615
|
const fieldData = data[fieldDataKey];
|
|
74642
|
-
const requestedField =
|
|
73616
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
74643
73617
|
if (requestedField === undefined) {
|
|
74644
73618
|
continue; // Skip unknown field.
|
|
74645
73619
|
}
|
|
@@ -75173,26 +74147,8 @@
|
|
|
75173
74147
|
}
|
|
75174
74148
|
function select$h(field, variables, fragments) {
|
|
75175
74149
|
return (source, reader, parentRecordId) => {
|
|
75176
|
-
var _a;
|
|
75177
74150
|
const sink = {};
|
|
75178
|
-
(
|
|
75179
|
-
const builtSelection = buildSelectionForNode$9(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
75180
|
-
if (builtSelection !== undefined) {
|
|
75181
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
75182
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
75183
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
75184
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
75185
|
-
if (sink[key] === undefined) {
|
|
75186
|
-
sink[key] = builtSelection[key];
|
|
75187
|
-
}
|
|
75188
|
-
});
|
|
75189
|
-
}
|
|
75190
|
-
else {
|
|
75191
|
-
Object.assign(sink, builtSelection);
|
|
75192
|
-
}
|
|
75193
|
-
}
|
|
75194
|
-
});
|
|
75195
|
-
return sink;
|
|
74151
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$9, source, reader, variables, fragments, parentRecordId);
|
|
75196
74152
|
};
|
|
75197
74153
|
}
|
|
75198
74154
|
function getMinimumSelections$7() {
|
|
@@ -75217,10 +74173,10 @@
|
|
|
75217
74173
|
representationName: name$8
|
|
75218
74174
|
});
|
|
75219
74175
|
// get all cache keys from normalizable fields
|
|
75220
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$9) :
|
|
74176
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$9) : new Map();
|
|
75221
74177
|
for (const fieldDataKey of Object.keys(data)) {
|
|
75222
74178
|
const fieldData = data[fieldDataKey];
|
|
75223
|
-
const requestedField =
|
|
74179
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
75224
74180
|
if (requestedField === undefined) {
|
|
75225
74181
|
continue; // Skip unknown field.
|
|
75226
74182
|
}
|
|
@@ -75359,26 +74315,8 @@
|
|
|
75359
74315
|
}
|
|
75360
74316
|
function select$g(field, variables, fragments) {
|
|
75361
74317
|
return (source, reader, parentRecordId) => {
|
|
75362
|
-
var _a;
|
|
75363
74318
|
const sink = {};
|
|
75364
|
-
(
|
|
75365
|
-
const builtSelection = buildSelectionForNode$8(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
75366
|
-
if (builtSelection !== undefined) {
|
|
75367
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
75368
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
75369
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
75370
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
75371
|
-
if (sink[key] === undefined) {
|
|
75372
|
-
sink[key] = builtSelection[key];
|
|
75373
|
-
}
|
|
75374
|
-
});
|
|
75375
|
-
}
|
|
75376
|
-
else {
|
|
75377
|
-
Object.assign(sink, builtSelection);
|
|
75378
|
-
}
|
|
75379
|
-
}
|
|
75380
|
-
});
|
|
75381
|
-
return sink;
|
|
74319
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$8, source, reader, variables, fragments, parentRecordId);
|
|
75382
74320
|
};
|
|
75383
74321
|
}
|
|
75384
74322
|
function getMinimumSelections$6() {
|
|
@@ -75697,10 +74635,10 @@
|
|
|
75697
74635
|
function ingestTypeWithStrategy(astNode, state, isCursorConnectionType, { key, isFragmentApplicable, isMappedFieldImport, getFieldType, ramlIngestBlock, ingestPaginatedMetadata, mergeData, storeMetadataParams, createLink, }, strategy) {
|
|
75698
74636
|
const { data, variables, luvio, store } = state;
|
|
75699
74637
|
const sink = {};
|
|
75700
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable) :
|
|
74638
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable) : new Map();
|
|
75701
74639
|
for (const fieldDataKey of Object.keys(data)) {
|
|
75702
74640
|
const fieldData = data[fieldDataKey];
|
|
75703
|
-
const requestedField =
|
|
74641
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
75704
74642
|
if (requestedField === undefined) {
|
|
75705
74643
|
continue; // TODO: (W-11132802) We got a field back we didn't ask for. Call handleUnknownField.
|
|
75706
74644
|
}
|
|
@@ -75913,18 +74851,28 @@
|
|
|
75913
74851
|
selections.push(selection);
|
|
75914
74852
|
}
|
|
75915
74853
|
if (selection.kind === "InlineFragment" && isFragmentApplicable(selection, typename)) {
|
|
74854
|
+
// loops over the map to get the values.
|
|
75916
74855
|
getRequestedFieldsForType(typename, selection.selectionSet, namedFragmentsMap, isFragmentApplicable)
|
|
75917
74856
|
.forEach(fragmentFieldSelection => { mergeFragmentWithExistingSelections(fragmentFieldSelection, selections); });
|
|
75918
74857
|
}
|
|
75919
74858
|
if (selection.kind === "FragmentSpread") {
|
|
75920
74859
|
const namedFragment = namedFragmentsMap[selection.name.value];
|
|
75921
74860
|
if (namedFragment && isFragmentApplicable(namedFragment, typename)) {
|
|
74861
|
+
// loops over the map to get the values.
|
|
75922
74862
|
getRequestedFieldsForType(typename, namedFragment.selectionSet, namedFragmentsMap, isFragmentApplicable)
|
|
75923
74863
|
.forEach(fragmentFieldSelection => { mergeFragmentWithExistingSelections(fragmentFieldSelection, selections); });
|
|
75924
74864
|
}
|
|
75925
74865
|
}
|
|
75926
74866
|
});
|
|
75927
|
-
|
|
74867
|
+
// Needs to happen after the selections are merged.
|
|
74868
|
+
return selections.reduce((acc, fieldNode) => {
|
|
74869
|
+
const fieldName = fieldNode.alias ? fieldNode.alias.value : fieldNode.name.value;
|
|
74870
|
+
// TODO: W-13485835. Some fields are not being merged, and this logic reproduces the current behavior in which the first field with name is being used.
|
|
74871
|
+
if (!acc.has(fieldName)) {
|
|
74872
|
+
acc.set(fieldName, fieldNode);
|
|
74873
|
+
}
|
|
74874
|
+
return acc;
|
|
74875
|
+
}, new Map());
|
|
75928
74876
|
}
|
|
75929
74877
|
let selectionSetRequestedFieldsWeakMap = new WeakMap();
|
|
75930
74878
|
function getRequestedFieldsForType(typename, selectionSet, namedFragmentsMap, isFragmentApplicable) {
|
|
@@ -76529,6 +75477,27 @@
|
|
|
76529
75477
|
}
|
|
76530
75478
|
});
|
|
76531
75479
|
}
|
|
75480
|
+
function selectCalculateSink(sink, field, buildSelectionForNodeFn, source, reader, variables, fragments, parentRecordId) {
|
|
75481
|
+
var _a;
|
|
75482
|
+
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
75483
|
+
const builtSelection = buildSelectionForNodeFn(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
75484
|
+
if (builtSelection !== undefined) {
|
|
75485
|
+
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
75486
|
+
Object.keys(builtSelection).forEach((key, value) => {
|
|
75487
|
+
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
75488
|
+
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
75489
|
+
if (sink[key] === undefined) {
|
|
75490
|
+
sink[key] = builtSelection[key];
|
|
75491
|
+
}
|
|
75492
|
+
});
|
|
75493
|
+
}
|
|
75494
|
+
else {
|
|
75495
|
+
Object.assign(sink, builtSelection);
|
|
75496
|
+
}
|
|
75497
|
+
}
|
|
75498
|
+
});
|
|
75499
|
+
return sink;
|
|
75500
|
+
}
|
|
76532
75501
|
function selectTypeLinkWithPagination(resolvedLink, sel, fieldData, reader, key, sink, variables, fragments, selectFn) {
|
|
76533
75502
|
var _a, _b, _c, _d, _e;
|
|
76534
75503
|
const source = resolvedLink.data.data;
|
|
@@ -76716,26 +75685,8 @@
|
|
|
76716
75685
|
}
|
|
76717
75686
|
function select$f(field, variables, fragments) {
|
|
76718
75687
|
return (source, reader, parentRecordId) => {
|
|
76719
|
-
var _a;
|
|
76720
75688
|
const sink = {};
|
|
76721
|
-
(
|
|
76722
|
-
const builtSelection = buildSelectionForNode$6(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
76723
|
-
if (builtSelection !== undefined) {
|
|
76724
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
76725
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
76726
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
76727
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
76728
|
-
if (sink[key] === undefined) {
|
|
76729
|
-
sink[key] = builtSelection[key];
|
|
76730
|
-
}
|
|
76731
|
-
});
|
|
76732
|
-
}
|
|
76733
|
-
else {
|
|
76734
|
-
Object.assign(sink, builtSelection);
|
|
76735
|
-
}
|
|
76736
|
-
}
|
|
76737
|
-
});
|
|
76738
|
-
return sink;
|
|
75689
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$6, source, reader, variables, fragments, parentRecordId);
|
|
76739
75690
|
};
|
|
76740
75691
|
}
|
|
76741
75692
|
function getTypeCacheKeys$a(astNode, state) {
|
|
@@ -76894,7 +75845,7 @@
|
|
|
76894
75845
|
const { data } = state;
|
|
76895
75846
|
const requestedFields = astNode.selectionSet
|
|
76896
75847
|
? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$5)
|
|
76897
|
-
:
|
|
75848
|
+
: new Map();
|
|
76898
75849
|
const { fieldsBag, trie } = createFieldsBagAndTrie(data, requestedFields, state);
|
|
76899
75850
|
const recordRepresentation = {
|
|
76900
75851
|
apiName: data.ApiName,
|
|
@@ -76923,7 +75874,7 @@
|
|
|
76923
75874
|
};
|
|
76924
75875
|
for (const fieldDataKey of Object.keys(data)) {
|
|
76925
75876
|
const fieldData = data[fieldDataKey];
|
|
76926
|
-
const requestedField =
|
|
75877
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
76927
75878
|
if (requestedField === undefined) {
|
|
76928
75879
|
continue; // We got a field back we didn't ask for. Skip.
|
|
76929
75880
|
}
|
|
@@ -77013,9 +75964,8 @@
|
|
|
77013
75964
|
const requestedFields = astNode.selectionSet
|
|
77014
75965
|
? getRequestedFieldsForType('', // data is null here
|
|
77015
75966
|
astNode.selectionSet, fragments, isFragmentApplicable$5)
|
|
77016
|
-
:
|
|
77017
|
-
for (
|
|
77018
|
-
const field = requestedFields[i];
|
|
75967
|
+
: new Map();
|
|
75968
|
+
for (const [, field] of requestedFields) {
|
|
77019
75969
|
const fieldType = getFieldType$9(field);
|
|
77020
75970
|
const fieldName = field.name.value;
|
|
77021
75971
|
//Untyped field - Adapter forwarded request?
|
|
@@ -77362,10 +76312,10 @@
|
|
|
77362
76312
|
// get all cache keys from normalizable fields
|
|
77363
76313
|
const requestedFields = astNode.selectionSet
|
|
77364
76314
|
? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$3)
|
|
77365
|
-
:
|
|
76315
|
+
: new Map();
|
|
77366
76316
|
for (const fieldDataKey of ObjectKeys(data)) {
|
|
77367
76317
|
const fieldData = data[fieldDataKey];
|
|
77368
|
-
const requestedField =
|
|
76318
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
77369
76319
|
if (requestedField === undefined) {
|
|
77370
76320
|
continue; // Skip unknown field.
|
|
77371
76321
|
}
|
|
@@ -77587,28 +76537,10 @@
|
|
|
77587
76537
|
}
|
|
77588
76538
|
function select$e(field, variables, fragments) {
|
|
77589
76539
|
return (source, reader, parentRecordId) => {
|
|
77590
|
-
var _a;
|
|
77591
76540
|
const sink = {};
|
|
77592
76541
|
source = attachMappedData(source, reader);
|
|
77593
76542
|
reader.markSeenId(parentRecordId); // Always mark identifiable types as seen
|
|
77594
|
-
(
|
|
77595
|
-
const builtSelection = buildSelectionForNode$5(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
77596
|
-
if (builtSelection !== undefined) {
|
|
77597
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
77598
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
77599
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
77600
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
77601
|
-
if (sink[key] === undefined) {
|
|
77602
|
-
sink[key] = builtSelection[key];
|
|
77603
|
-
}
|
|
77604
|
-
});
|
|
77605
|
-
}
|
|
77606
|
-
else {
|
|
77607
|
-
Object.assign(sink, builtSelection);
|
|
77608
|
-
}
|
|
77609
|
-
}
|
|
77610
|
-
});
|
|
77611
|
-
return sink;
|
|
76543
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$5, source, reader, variables, fragments, parentRecordId);
|
|
77612
76544
|
};
|
|
77613
76545
|
}
|
|
77614
76546
|
function getTypeCacheKeys$5(astNode, state) {
|
|
@@ -77621,10 +76553,10 @@
|
|
|
77621
76553
|
representationName: name$5
|
|
77622
76554
|
});
|
|
77623
76555
|
// get all cache keys from normalizable fields
|
|
77624
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$5) :
|
|
76556
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$5) : new Map();
|
|
77625
76557
|
for (const fieldDataKey of Object.keys(data)) {
|
|
77626
76558
|
const fieldData = data[fieldDataKey];
|
|
77627
|
-
const requestedField =
|
|
76559
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
77628
76560
|
if (requestedField === undefined) {
|
|
77629
76561
|
continue; // Skip unknown field.
|
|
77630
76562
|
}
|
|
@@ -78488,26 +77420,8 @@
|
|
|
78488
77420
|
}
|
|
78489
77421
|
function select$d(field, variables, fragments) {
|
|
78490
77422
|
return (source, reader, parentRecordId) => {
|
|
78491
|
-
var _a;
|
|
78492
77423
|
const sink = {};
|
|
78493
|
-
(
|
|
78494
|
-
const builtSelection = buildSelectionForNode$4(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
78495
|
-
if (builtSelection !== undefined) {
|
|
78496
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
78497
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
78498
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
78499
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
78500
|
-
if (sink[key] === undefined) {
|
|
78501
|
-
sink[key] = builtSelection[key];
|
|
78502
|
-
}
|
|
78503
|
-
});
|
|
78504
|
-
}
|
|
78505
|
-
else {
|
|
78506
|
-
Object.assign(sink, builtSelection);
|
|
78507
|
-
}
|
|
78508
|
-
}
|
|
78509
|
-
});
|
|
78510
|
-
return sink;
|
|
77424
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$4, source, reader, variables, fragments, parentRecordId);
|
|
78511
77425
|
};
|
|
78512
77426
|
}
|
|
78513
77427
|
function getMinimumSelections$4() {
|
|
@@ -78532,10 +77446,10 @@
|
|
|
78532
77446
|
representationName: name$4
|
|
78533
77447
|
});
|
|
78534
77448
|
// get all cache keys from normalizable fields
|
|
78535
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$4) :
|
|
77449
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$4) : new Map();
|
|
78536
77450
|
for (const fieldDataKey of Object.keys(data)) {
|
|
78537
77451
|
const fieldData = data[fieldDataKey];
|
|
78538
|
-
const requestedField =
|
|
77452
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
78539
77453
|
if (requestedField === undefined) {
|
|
78540
77454
|
continue; // Skip unknown field.
|
|
78541
77455
|
}
|
|
@@ -78754,26 +77668,8 @@
|
|
|
78754
77668
|
}
|
|
78755
77669
|
function select$c(field, variables, fragments) {
|
|
78756
77670
|
return (source, reader, parentRecordId) => {
|
|
78757
|
-
var _a;
|
|
78758
77671
|
const sink = {};
|
|
78759
|
-
(
|
|
78760
|
-
const builtSelection = buildSelectionForNode$3(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
78761
|
-
if (builtSelection !== undefined) {
|
|
78762
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
78763
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
78764
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
78765
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
78766
|
-
if (sink[key] === undefined) {
|
|
78767
|
-
sink[key] = builtSelection[key];
|
|
78768
|
-
}
|
|
78769
|
-
});
|
|
78770
|
-
}
|
|
78771
|
-
else {
|
|
78772
|
-
Object.assign(sink, builtSelection);
|
|
78773
|
-
}
|
|
78774
|
-
}
|
|
78775
|
-
});
|
|
78776
|
-
return sink;
|
|
77672
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$3, source, reader, variables, fragments, parentRecordId);
|
|
78777
77673
|
};
|
|
78778
77674
|
}
|
|
78779
77675
|
function getMinimumSelections$3() {
|
|
@@ -78941,26 +77837,8 @@
|
|
|
78941
77837
|
}
|
|
78942
77838
|
function select$b(field, variables, fragments) {
|
|
78943
77839
|
return (source, reader, parentRecordId) => {
|
|
78944
|
-
var _a;
|
|
78945
77840
|
const sink = {};
|
|
78946
|
-
(
|
|
78947
|
-
const builtSelection = buildSelectionForNode$2(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
78948
|
-
if (builtSelection !== undefined) {
|
|
78949
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
78950
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
78951
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
78952
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
78953
|
-
if (sink[key] === undefined) {
|
|
78954
|
-
sink[key] = builtSelection[key];
|
|
78955
|
-
}
|
|
78956
|
-
});
|
|
78957
|
-
}
|
|
78958
|
-
else {
|
|
78959
|
-
Object.assign(sink, builtSelection);
|
|
78960
|
-
}
|
|
78961
|
-
}
|
|
78962
|
-
});
|
|
78963
|
-
return sink;
|
|
77841
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$2, source, reader, variables, fragments, parentRecordId);
|
|
78964
77842
|
};
|
|
78965
77843
|
}
|
|
78966
77844
|
function getMinimumSelections$2() {
|
|
@@ -78985,10 +77863,10 @@
|
|
|
78985
77863
|
representationName: name$2
|
|
78986
77864
|
});
|
|
78987
77865
|
// get all cache keys from normalizable fields
|
|
78988
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$2) :
|
|
77866
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$2) : new Map();
|
|
78989
77867
|
for (const fieldDataKey of Object.keys(data)) {
|
|
78990
77868
|
const fieldData = data[fieldDataKey];
|
|
78991
|
-
const requestedField =
|
|
77869
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
78992
77870
|
if (requestedField === undefined) {
|
|
78993
77871
|
continue; // Skip unknown field.
|
|
78994
77872
|
}
|
|
@@ -79133,26 +78011,8 @@
|
|
|
79133
78011
|
}
|
|
79134
78012
|
function select$a(field, variables, fragments) {
|
|
79135
78013
|
return (source, reader, parentRecordId) => {
|
|
79136
|
-
var _a;
|
|
79137
78014
|
const sink = {};
|
|
79138
|
-
(
|
|
79139
|
-
const builtSelection = buildSelectionForNode$1(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
79140
|
-
if (builtSelection !== undefined) {
|
|
79141
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
79142
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
79143
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
79144
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
79145
|
-
if (sink[key] === undefined) {
|
|
79146
|
-
sink[key] = builtSelection[key];
|
|
79147
|
-
}
|
|
79148
|
-
});
|
|
79149
|
-
}
|
|
79150
|
-
else {
|
|
79151
|
-
Object.assign(sink, builtSelection);
|
|
79152
|
-
}
|
|
79153
|
-
}
|
|
79154
|
-
});
|
|
79155
|
-
return sink;
|
|
78015
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$1, source, reader, variables, fragments, parentRecordId);
|
|
79156
78016
|
};
|
|
79157
78017
|
}
|
|
79158
78018
|
function getMinimumSelections$1() {
|
|
@@ -79177,10 +78037,10 @@
|
|
|
79177
78037
|
representationName: name$1
|
|
79178
78038
|
});
|
|
79179
78039
|
// get all cache keys from normalizable fields
|
|
79180
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$1) :
|
|
78040
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$1) : new Map();
|
|
79181
78041
|
for (const fieldDataKey of Object.keys(data)) {
|
|
79182
78042
|
const fieldData = data[fieldDataKey];
|
|
79183
|
-
const requestedField =
|
|
78043
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
79184
78044
|
if (requestedField === undefined) {
|
|
79185
78045
|
continue; // Skip unknown field.
|
|
79186
78046
|
}
|
|
@@ -79439,26 +78299,8 @@
|
|
|
79439
78299
|
}
|
|
79440
78300
|
function select$9(field, variables, fragments) {
|
|
79441
78301
|
return (source, reader, parentRecordId) => {
|
|
79442
|
-
var _a;
|
|
79443
78302
|
const sink = {};
|
|
79444
|
-
(
|
|
79445
|
-
const builtSelection = buildSelectionForNode(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
79446
|
-
if (builtSelection !== undefined) {
|
|
79447
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
79448
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
79449
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
79450
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
79451
|
-
if (sink[key] === undefined) {
|
|
79452
|
-
sink[key] = builtSelection[key];
|
|
79453
|
-
}
|
|
79454
|
-
});
|
|
79455
|
-
}
|
|
79456
|
-
else {
|
|
79457
|
-
Object.assign(sink, builtSelection);
|
|
79458
|
-
}
|
|
79459
|
-
}
|
|
79460
|
-
});
|
|
79461
|
-
return sink;
|
|
78303
|
+
return selectCalculateSink(sink, field, buildSelectionForNode, source, reader, variables, fragments, parentRecordId);
|
|
79462
78304
|
};
|
|
79463
78305
|
}
|
|
79464
78306
|
function getMinimumSelections() {
|
|
@@ -79475,10 +78317,10 @@
|
|
|
79475
78317
|
representationName: name
|
|
79476
78318
|
});
|
|
79477
78319
|
// get all cache keys from normalizable fields
|
|
79478
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable) :
|
|
78320
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable) : new Map();
|
|
79479
78321
|
for (const fieldDataKey of Object.keys(data)) {
|
|
79480
78322
|
const fieldData = data[fieldDataKey];
|
|
79481
|
-
const requestedField =
|
|
78323
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
79482
78324
|
if (requestedField === undefined) {
|
|
79483
78325
|
continue; // Skip unknown field.
|
|
79484
78326
|
}
|
|
@@ -80901,7 +79743,7 @@
|
|
|
80901
79743
|
configuration: { ...configurationForGraphQLAdapters },
|
|
80902
79744
|
instrument,
|
|
80903
79745
|
});
|
|
80904
|
-
// version: 1.158.
|
|
79746
|
+
// version: 1.158.1-63f64c475
|
|
80905
79747
|
|
|
80906
79748
|
// On core the unstable adapters are re-exported with different names,
|
|
80907
79749
|
|
|
@@ -83148,7 +81990,7 @@
|
|
|
83148
81990
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
83149
81991
|
graphQLImperative = ldsAdapter;
|
|
83150
81992
|
});
|
|
83151
|
-
// version: 1.158.
|
|
81993
|
+
// version: 1.158.1-63f64c475
|
|
83152
81994
|
|
|
83153
81995
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
83154
81996
|
__proto__: null,
|
|
@@ -83854,4 +82696,4 @@
|
|
|
83854
82696
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
83855
82697
|
|
|
83856
82698
|
}));
|
|
83857
|
-
// version: 1.158.
|
|
82699
|
+
// version: 1.158.1-276f55e03
|