@salesforce/lwc-adapters-uiapi 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/main.js +171 -1329
- package/package.json +2 -2
package/dist/main.js
CHANGED
|
@@ -364,7 +364,7 @@ var FragmentReadResultState;
|
|
|
364
364
|
({
|
|
365
365
|
state: FragmentReadResultState.Missing,
|
|
366
366
|
});
|
|
367
|
-
// engine version: 0.143.
|
|
367
|
+
// engine version: 0.143.4-64dccb30
|
|
368
368
|
|
|
369
369
|
/**
|
|
370
370
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -38451,26 +38451,8 @@ function buildSelectionForNode$12(source, reader, parentNode, selectionNode, var
|
|
|
38451
38451
|
}
|
|
38452
38452
|
function select$1b(field, variables, fragments) {
|
|
38453
38453
|
return (source, reader, parentRecordId) => {
|
|
38454
|
-
var _a;
|
|
38455
38454
|
const sink = {};
|
|
38456
|
-
(
|
|
38457
|
-
const builtSelection = buildSelectionForNode$12(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
38458
|
-
if (builtSelection !== undefined) {
|
|
38459
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
38460
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
38461
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
38462
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
38463
|
-
if (sink[key] === undefined) {
|
|
38464
|
-
sink[key] = builtSelection[key];
|
|
38465
|
-
}
|
|
38466
|
-
});
|
|
38467
|
-
}
|
|
38468
|
-
else {
|
|
38469
|
-
Object.assign(sink, builtSelection);
|
|
38470
|
-
}
|
|
38471
|
-
}
|
|
38472
|
-
});
|
|
38473
|
-
return sink;
|
|
38455
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$12, source, reader, variables, fragments, parentRecordId);
|
|
38474
38456
|
};
|
|
38475
38457
|
}
|
|
38476
38458
|
function getTypeCacheKeys$1b(astNode, state) {
|
|
@@ -38613,26 +38595,8 @@ function buildSelectionForNode$11(source, reader, parentNode, selectionNode, var
|
|
|
38613
38595
|
}
|
|
38614
38596
|
function select$1a(field, variables, fragments) {
|
|
38615
38597
|
return (source, reader, parentRecordId) => {
|
|
38616
|
-
var _a;
|
|
38617
38598
|
const sink = {};
|
|
38618
|
-
(
|
|
38619
|
-
const builtSelection = buildSelectionForNode$11(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
38620
|
-
if (builtSelection !== undefined) {
|
|
38621
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
38622
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
38623
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
38624
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
38625
|
-
if (sink[key] === undefined) {
|
|
38626
|
-
sink[key] = builtSelection[key];
|
|
38627
|
-
}
|
|
38628
|
-
});
|
|
38629
|
-
}
|
|
38630
|
-
else {
|
|
38631
|
-
Object.assign(sink, builtSelection);
|
|
38632
|
-
}
|
|
38633
|
-
}
|
|
38634
|
-
});
|
|
38635
|
-
return sink;
|
|
38599
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$11, source, reader, variables, fragments, parentRecordId);
|
|
38636
38600
|
};
|
|
38637
38601
|
}
|
|
38638
38602
|
function getTypeCacheKeys$1a(astNode, state) {
|
|
@@ -38775,26 +38739,8 @@ function buildSelectionForNode$10(source, reader, parentNode, selectionNode, var
|
|
|
38775
38739
|
}
|
|
38776
38740
|
function select$19(field, variables, fragments) {
|
|
38777
38741
|
return (source, reader, parentRecordId) => {
|
|
38778
|
-
var _a;
|
|
38779
38742
|
const sink = {};
|
|
38780
|
-
(
|
|
38781
|
-
const builtSelection = buildSelectionForNode$10(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
38782
|
-
if (builtSelection !== undefined) {
|
|
38783
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
38784
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
38785
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
38786
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
38787
|
-
if (sink[key] === undefined) {
|
|
38788
|
-
sink[key] = builtSelection[key];
|
|
38789
|
-
}
|
|
38790
|
-
});
|
|
38791
|
-
}
|
|
38792
|
-
else {
|
|
38793
|
-
Object.assign(sink, builtSelection);
|
|
38794
|
-
}
|
|
38795
|
-
}
|
|
38796
|
-
});
|
|
38797
|
-
return sink;
|
|
38743
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$10, source, reader, variables, fragments, parentRecordId);
|
|
38798
38744
|
};
|
|
38799
38745
|
}
|
|
38800
38746
|
function getTypeCacheKeys$19(astNode, state) {
|
|
@@ -38949,26 +38895,8 @@ function buildSelectionForNode$$(source, reader, parentNode, selectionNode, vari
|
|
|
38949
38895
|
}
|
|
38950
38896
|
function select$18(field, variables, fragments) {
|
|
38951
38897
|
return (source, reader, parentRecordId) => {
|
|
38952
|
-
var _a;
|
|
38953
38898
|
const sink = {};
|
|
38954
|
-
(
|
|
38955
|
-
const builtSelection = buildSelectionForNode$$(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
38956
|
-
if (builtSelection !== undefined) {
|
|
38957
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
38958
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
38959
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
38960
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
38961
|
-
if (sink[key] === undefined) {
|
|
38962
|
-
sink[key] = builtSelection[key];
|
|
38963
|
-
}
|
|
38964
|
-
});
|
|
38965
|
-
}
|
|
38966
|
-
else {
|
|
38967
|
-
Object.assign(sink, builtSelection);
|
|
38968
|
-
}
|
|
38969
|
-
}
|
|
38970
|
-
});
|
|
38971
|
-
return sink;
|
|
38899
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$$, source, reader, variables, fragments, parentRecordId);
|
|
38972
38900
|
};
|
|
38973
38901
|
}
|
|
38974
38902
|
function getMinimumSelections$L() {
|
|
@@ -38993,10 +38921,10 @@ function getTypeCacheKeys$18(astNode, state) {
|
|
|
38993
38921
|
representationName: name$_
|
|
38994
38922
|
});
|
|
38995
38923
|
// get all cache keys from normalizable fields
|
|
38996
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$$) :
|
|
38924
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$$) : new Map();
|
|
38997
38925
|
for (const fieldDataKey of Object.keys(data)) {
|
|
38998
38926
|
const fieldData = data[fieldDataKey];
|
|
38999
|
-
const requestedField =
|
|
38927
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
39000
38928
|
if (requestedField === undefined) {
|
|
39001
38929
|
continue; // Skip unknown field.
|
|
39002
38930
|
}
|
|
@@ -39291,26 +39219,8 @@ function buildSelectionForNode$_(source, reader, parentNode, selectionNode, vari
|
|
|
39291
39219
|
}
|
|
39292
39220
|
function select$17(field, variables, fragments) {
|
|
39293
39221
|
return (source, reader, parentRecordId) => {
|
|
39294
|
-
var _a;
|
|
39295
39222
|
const sink = {};
|
|
39296
|
-
(
|
|
39297
|
-
const builtSelection = buildSelectionForNode$_(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
39298
|
-
if (builtSelection !== undefined) {
|
|
39299
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
39300
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
39301
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
39302
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
39303
|
-
if (sink[key] === undefined) {
|
|
39304
|
-
sink[key] = builtSelection[key];
|
|
39305
|
-
}
|
|
39306
|
-
});
|
|
39307
|
-
}
|
|
39308
|
-
else {
|
|
39309
|
-
Object.assign(sink, builtSelection);
|
|
39310
|
-
}
|
|
39311
|
-
}
|
|
39312
|
-
});
|
|
39313
|
-
return sink;
|
|
39223
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$_, source, reader, variables, fragments, parentRecordId);
|
|
39314
39224
|
};
|
|
39315
39225
|
}
|
|
39316
39226
|
function getTypeCacheKeys$17(astNode, state) {
|
|
@@ -39448,26 +39358,8 @@ function buildSelectionForNode$Z(source, reader, parentNode, selectionNode, vari
|
|
|
39448
39358
|
}
|
|
39449
39359
|
function select$16(field, variables, fragments) {
|
|
39450
39360
|
return (source, reader, parentRecordId) => {
|
|
39451
|
-
var _a;
|
|
39452
39361
|
const sink = {};
|
|
39453
|
-
(
|
|
39454
|
-
const builtSelection = buildSelectionForNode$Z(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
39455
|
-
if (builtSelection !== undefined) {
|
|
39456
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
39457
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
39458
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
39459
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
39460
|
-
if (sink[key] === undefined) {
|
|
39461
|
-
sink[key] = builtSelection[key];
|
|
39462
|
-
}
|
|
39463
|
-
});
|
|
39464
|
-
}
|
|
39465
|
-
else {
|
|
39466
|
-
Object.assign(sink, builtSelection);
|
|
39467
|
-
}
|
|
39468
|
-
}
|
|
39469
|
-
});
|
|
39470
|
-
return sink;
|
|
39362
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$Z, source, reader, variables, fragments, parentRecordId);
|
|
39471
39363
|
};
|
|
39472
39364
|
}
|
|
39473
39365
|
function getTypeCacheKeys$16(astNode, state) {
|
|
@@ -39613,26 +39505,8 @@ function buildSelectionForNode$Y(source, reader, parentNode, selectionNode, vari
|
|
|
39613
39505
|
}
|
|
39614
39506
|
function select$15(field, variables, fragments) {
|
|
39615
39507
|
return (source, reader, parentRecordId) => {
|
|
39616
|
-
var _a;
|
|
39617
39508
|
const sink = {};
|
|
39618
|
-
(
|
|
39619
|
-
const builtSelection = buildSelectionForNode$Y(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
39620
|
-
if (builtSelection !== undefined) {
|
|
39621
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
39622
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
39623
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
39624
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
39625
|
-
if (sink[key] === undefined) {
|
|
39626
|
-
sink[key] = builtSelection[key];
|
|
39627
|
-
}
|
|
39628
|
-
});
|
|
39629
|
-
}
|
|
39630
|
-
else {
|
|
39631
|
-
Object.assign(sink, builtSelection);
|
|
39632
|
-
}
|
|
39633
|
-
}
|
|
39634
|
-
});
|
|
39635
|
-
return sink;
|
|
39509
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$Y, source, reader, variables, fragments, parentRecordId);
|
|
39636
39510
|
};
|
|
39637
39511
|
}
|
|
39638
39512
|
function getMinimumSelections$K() {
|
|
@@ -39657,10 +39531,10 @@ function getTypeCacheKeys$15(astNode, state) {
|
|
|
39657
39531
|
representationName: name$X
|
|
39658
39532
|
});
|
|
39659
39533
|
// get all cache keys from normalizable fields
|
|
39660
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$Y) :
|
|
39534
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$Y) : new Map();
|
|
39661
39535
|
for (const fieldDataKey of Object.keys(data)) {
|
|
39662
39536
|
const fieldData = data[fieldDataKey];
|
|
39663
|
-
const requestedField =
|
|
39537
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
39664
39538
|
if (requestedField === undefined) {
|
|
39665
39539
|
continue; // Skip unknown field.
|
|
39666
39540
|
}
|
|
@@ -39972,26 +39846,8 @@ function buildSelectionForNode$X(source, reader, parentNode, selectionNode, vari
|
|
|
39972
39846
|
}
|
|
39973
39847
|
function select$14(field, variables, fragments) {
|
|
39974
39848
|
return (source, reader, parentRecordId) => {
|
|
39975
|
-
var _a;
|
|
39976
39849
|
const sink = {};
|
|
39977
|
-
(
|
|
39978
|
-
const builtSelection = buildSelectionForNode$X(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
39979
|
-
if (builtSelection !== undefined) {
|
|
39980
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
39981
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
39982
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
39983
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
39984
|
-
if (sink[key] === undefined) {
|
|
39985
|
-
sink[key] = builtSelection[key];
|
|
39986
|
-
}
|
|
39987
|
-
});
|
|
39988
|
-
}
|
|
39989
|
-
else {
|
|
39990
|
-
Object.assign(sink, builtSelection);
|
|
39991
|
-
}
|
|
39992
|
-
}
|
|
39993
|
-
});
|
|
39994
|
-
return sink;
|
|
39850
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$X, source, reader, variables, fragments, parentRecordId);
|
|
39995
39851
|
};
|
|
39996
39852
|
}
|
|
39997
39853
|
function getMinimumSelections$I() {
|
|
@@ -40140,26 +39996,8 @@ function buildSelectionForNode$W(source, reader, parentNode, selectionNode, vari
|
|
|
40140
39996
|
}
|
|
40141
39997
|
function select$13(field, variables, fragments) {
|
|
40142
39998
|
return (source, reader, parentRecordId) => {
|
|
40143
|
-
var _a;
|
|
40144
39999
|
const sink = {};
|
|
40145
|
-
(
|
|
40146
|
-
const builtSelection = buildSelectionForNode$W(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
40147
|
-
if (builtSelection !== undefined) {
|
|
40148
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
40149
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
40150
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
40151
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
40152
|
-
if (sink[key] === undefined) {
|
|
40153
|
-
sink[key] = builtSelection[key];
|
|
40154
|
-
}
|
|
40155
|
-
});
|
|
40156
|
-
}
|
|
40157
|
-
else {
|
|
40158
|
-
Object.assign(sink, builtSelection);
|
|
40159
|
-
}
|
|
40160
|
-
}
|
|
40161
|
-
});
|
|
40162
|
-
return sink;
|
|
40000
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$W, source, reader, variables, fragments, parentRecordId);
|
|
40163
40001
|
};
|
|
40164
40002
|
}
|
|
40165
40003
|
function getTypeCacheKeys$13(astNode, state) {
|
|
@@ -40318,26 +40156,8 @@ function buildSelectionForNode$V(source, reader, parentNode, selectionNode, vari
|
|
|
40318
40156
|
}
|
|
40319
40157
|
function select$12(field, variables, fragments) {
|
|
40320
40158
|
return (source, reader, parentRecordId) => {
|
|
40321
|
-
var _a;
|
|
40322
40159
|
const sink = {};
|
|
40323
|
-
(
|
|
40324
|
-
const builtSelection = buildSelectionForNode$V(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
40325
|
-
if (builtSelection !== undefined) {
|
|
40326
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
40327
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
40328
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
40329
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
40330
|
-
if (sink[key] === undefined) {
|
|
40331
|
-
sink[key] = builtSelection[key];
|
|
40332
|
-
}
|
|
40333
|
-
});
|
|
40334
|
-
}
|
|
40335
|
-
else {
|
|
40336
|
-
Object.assign(sink, builtSelection);
|
|
40337
|
-
}
|
|
40338
|
-
}
|
|
40339
|
-
});
|
|
40340
|
-
return sink;
|
|
40160
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$V, source, reader, variables, fragments, parentRecordId);
|
|
40341
40161
|
};
|
|
40342
40162
|
}
|
|
40343
40163
|
function getMinimumSelections$H() {
|
|
@@ -40362,10 +40182,10 @@ function getTypeCacheKeys$12(astNode, state) {
|
|
|
40362
40182
|
representationName: name$U
|
|
40363
40183
|
});
|
|
40364
40184
|
// get all cache keys from normalizable fields
|
|
40365
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$V) :
|
|
40185
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$V) : new Map();
|
|
40366
40186
|
for (const fieldDataKey of Object.keys(data)) {
|
|
40367
40187
|
const fieldData = data[fieldDataKey];
|
|
40368
|
-
const requestedField =
|
|
40188
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
40369
40189
|
if (requestedField === undefined) {
|
|
40370
40190
|
continue; // Skip unknown field.
|
|
40371
40191
|
}
|
|
@@ -40868,26 +40688,8 @@ function buildSelectionForNode$U(source, reader, parentNode, selectionNode, vari
|
|
|
40868
40688
|
}
|
|
40869
40689
|
function select$11(field, variables, fragments) {
|
|
40870
40690
|
return (source, reader, parentRecordId) => {
|
|
40871
|
-
var _a;
|
|
40872
40691
|
const sink = {};
|
|
40873
|
-
(
|
|
40874
|
-
const builtSelection = buildSelectionForNode$U(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
40875
|
-
if (builtSelection !== undefined) {
|
|
40876
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
40877
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
40878
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
40879
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
40880
|
-
if (sink[key] === undefined) {
|
|
40881
|
-
sink[key] = builtSelection[key];
|
|
40882
|
-
}
|
|
40883
|
-
});
|
|
40884
|
-
}
|
|
40885
|
-
else {
|
|
40886
|
-
Object.assign(sink, builtSelection);
|
|
40887
|
-
}
|
|
40888
|
-
}
|
|
40889
|
-
});
|
|
40890
|
-
return sink;
|
|
40692
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$U, source, reader, variables, fragments, parentRecordId);
|
|
40891
40693
|
};
|
|
40892
40694
|
}
|
|
40893
40695
|
function getMinimumSelections$G() {
|
|
@@ -41086,26 +40888,8 @@ function buildSelectionForNode$T(source, reader, parentNode, selectionNode, vari
|
|
|
41086
40888
|
}
|
|
41087
40889
|
function select$10(field, variables, fragments) {
|
|
41088
40890
|
return (source, reader, parentRecordId) => {
|
|
41089
|
-
var _a;
|
|
41090
40891
|
const sink = {};
|
|
41091
|
-
(
|
|
41092
|
-
const builtSelection = buildSelectionForNode$T(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
41093
|
-
if (builtSelection !== undefined) {
|
|
41094
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
41095
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
41096
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
41097
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
41098
|
-
if (sink[key] === undefined) {
|
|
41099
|
-
sink[key] = builtSelection[key];
|
|
41100
|
-
}
|
|
41101
|
-
});
|
|
41102
|
-
}
|
|
41103
|
-
else {
|
|
41104
|
-
Object.assign(sink, builtSelection);
|
|
41105
|
-
}
|
|
41106
|
-
}
|
|
41107
|
-
});
|
|
41108
|
-
return sink;
|
|
40892
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$T, source, reader, variables, fragments, parentRecordId);
|
|
41109
40893
|
};
|
|
41110
40894
|
}
|
|
41111
40895
|
function getTypeCacheKeys$10(astNode, state) {
|
|
@@ -41241,26 +41025,8 @@ function buildSelectionForNode$S(source, reader, parentNode, selectionNode, vari
|
|
|
41241
41025
|
}
|
|
41242
41026
|
function select$$(field, variables, fragments) {
|
|
41243
41027
|
return (source, reader, parentRecordId) => {
|
|
41244
|
-
var _a;
|
|
41245
41028
|
const sink = {};
|
|
41246
|
-
(
|
|
41247
|
-
const builtSelection = buildSelectionForNode$S(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
41248
|
-
if (builtSelection !== undefined) {
|
|
41249
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
41250
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
41251
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
41252
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
41253
|
-
if (sink[key] === undefined) {
|
|
41254
|
-
sink[key] = builtSelection[key];
|
|
41255
|
-
}
|
|
41256
|
-
});
|
|
41257
|
-
}
|
|
41258
|
-
else {
|
|
41259
|
-
Object.assign(sink, builtSelection);
|
|
41260
|
-
}
|
|
41261
|
-
}
|
|
41262
|
-
});
|
|
41263
|
-
return sink;
|
|
41029
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$S, source, reader, variables, fragments, parentRecordId);
|
|
41264
41030
|
};
|
|
41265
41031
|
}
|
|
41266
41032
|
function getMinimumSelections$E() {
|
|
@@ -41285,10 +41051,10 @@ function getTypeCacheKeys$$(astNode, state) {
|
|
|
41285
41051
|
representationName: name$R
|
|
41286
41052
|
});
|
|
41287
41053
|
// get all cache keys from normalizable fields
|
|
41288
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$S) :
|
|
41054
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$S) : new Map();
|
|
41289
41055
|
for (const fieldDataKey of Object.keys(data)) {
|
|
41290
41056
|
const fieldData = data[fieldDataKey];
|
|
41291
|
-
const requestedField =
|
|
41057
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
41292
41058
|
if (requestedField === undefined) {
|
|
41293
41059
|
continue; // Skip unknown field.
|
|
41294
41060
|
}
|
|
@@ -41465,26 +41231,8 @@ function buildSelectionForNode$R(source, reader, parentNode, selectionNode, vari
|
|
|
41465
41231
|
}
|
|
41466
41232
|
function select$_(field, variables, fragments) {
|
|
41467
41233
|
return (source, reader, parentRecordId) => {
|
|
41468
|
-
var _a;
|
|
41469
41234
|
const sink = {};
|
|
41470
|
-
(
|
|
41471
|
-
const builtSelection = buildSelectionForNode$R(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
41472
|
-
if (builtSelection !== undefined) {
|
|
41473
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
41474
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
41475
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
41476
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
41477
|
-
if (sink[key] === undefined) {
|
|
41478
|
-
sink[key] = builtSelection[key];
|
|
41479
|
-
}
|
|
41480
|
-
});
|
|
41481
|
-
}
|
|
41482
|
-
else {
|
|
41483
|
-
Object.assign(sink, builtSelection);
|
|
41484
|
-
}
|
|
41485
|
-
}
|
|
41486
|
-
});
|
|
41487
|
-
return sink;
|
|
41235
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$R, source, reader, variables, fragments, parentRecordId);
|
|
41488
41236
|
};
|
|
41489
41237
|
}
|
|
41490
41238
|
function getMinimumSelections$D() {
|
|
@@ -41629,26 +41377,8 @@ function buildSelectionForNode$Q(source, reader, parentNode, selectionNode, vari
|
|
|
41629
41377
|
}
|
|
41630
41378
|
function select$Z(field, variables, fragments) {
|
|
41631
41379
|
return (source, reader, parentRecordId) => {
|
|
41632
|
-
var _a;
|
|
41633
41380
|
const sink = {};
|
|
41634
|
-
(
|
|
41635
|
-
const builtSelection = buildSelectionForNode$Q(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
41636
|
-
if (builtSelection !== undefined) {
|
|
41637
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
41638
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
41639
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
41640
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
41641
|
-
if (sink[key] === undefined) {
|
|
41642
|
-
sink[key] = builtSelection[key];
|
|
41643
|
-
}
|
|
41644
|
-
});
|
|
41645
|
-
}
|
|
41646
|
-
else {
|
|
41647
|
-
Object.assign(sink, builtSelection);
|
|
41648
|
-
}
|
|
41649
|
-
}
|
|
41650
|
-
});
|
|
41651
|
-
return sink;
|
|
41381
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$Q, source, reader, variables, fragments, parentRecordId);
|
|
41652
41382
|
};
|
|
41653
41383
|
}
|
|
41654
41384
|
function getMinimumSelections$C() {
|
|
@@ -41826,26 +41556,8 @@ function buildSelectionForNode$P(source, reader, parentNode, selectionNode, vari
|
|
|
41826
41556
|
}
|
|
41827
41557
|
function select$Y(field, variables, fragments) {
|
|
41828
41558
|
return (source, reader, parentRecordId) => {
|
|
41829
|
-
var _a;
|
|
41830
41559
|
const sink = {};
|
|
41831
|
-
(
|
|
41832
|
-
const builtSelection = buildSelectionForNode$P(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
41833
|
-
if (builtSelection !== undefined) {
|
|
41834
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
41835
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
41836
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
41837
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
41838
|
-
if (sink[key] === undefined) {
|
|
41839
|
-
sink[key] = builtSelection[key];
|
|
41840
|
-
}
|
|
41841
|
-
});
|
|
41842
|
-
}
|
|
41843
|
-
else {
|
|
41844
|
-
Object.assign(sink, builtSelection);
|
|
41845
|
-
}
|
|
41846
|
-
}
|
|
41847
|
-
});
|
|
41848
|
-
return sink;
|
|
41560
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$P, source, reader, variables, fragments, parentRecordId);
|
|
41849
41561
|
};
|
|
41850
41562
|
}
|
|
41851
41563
|
function getMinimumSelections$B() {
|
|
@@ -41870,10 +41582,10 @@ function getTypeCacheKeys$Y(astNode, state) {
|
|
|
41870
41582
|
representationName: name$O
|
|
41871
41583
|
});
|
|
41872
41584
|
// get all cache keys from normalizable fields
|
|
41873
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$P) :
|
|
41585
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$P) : new Map();
|
|
41874
41586
|
for (const fieldDataKey of Object.keys(data)) {
|
|
41875
41587
|
const fieldData = data[fieldDataKey];
|
|
41876
|
-
const requestedField =
|
|
41588
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
41877
41589
|
if (requestedField === undefined) {
|
|
41878
41590
|
continue; // Skip unknown field.
|
|
41879
41591
|
}
|
|
@@ -42234,26 +41946,8 @@ function buildSelectionForNode$O(source, reader, parentNode, selectionNode, vari
|
|
|
42234
41946
|
}
|
|
42235
41947
|
function select$X(field, variables, fragments) {
|
|
42236
41948
|
return (source, reader, parentRecordId) => {
|
|
42237
|
-
var _a;
|
|
42238
41949
|
const sink = {};
|
|
42239
|
-
(
|
|
42240
|
-
const builtSelection = buildSelectionForNode$O(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
42241
|
-
if (builtSelection !== undefined) {
|
|
42242
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
42243
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
42244
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
42245
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
42246
|
-
if (sink[key] === undefined) {
|
|
42247
|
-
sink[key] = builtSelection[key];
|
|
42248
|
-
}
|
|
42249
|
-
});
|
|
42250
|
-
}
|
|
42251
|
-
else {
|
|
42252
|
-
Object.assign(sink, builtSelection);
|
|
42253
|
-
}
|
|
42254
|
-
}
|
|
42255
|
-
});
|
|
42256
|
-
return sink;
|
|
41950
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$O, source, reader, variables, fragments, parentRecordId);
|
|
42257
41951
|
};
|
|
42258
41952
|
}
|
|
42259
41953
|
function getMinimumSelections$A() {
|
|
@@ -42424,26 +42118,8 @@ function buildSelectionForNode$N(source, reader, parentNode, selectionNode, vari
|
|
|
42424
42118
|
}
|
|
42425
42119
|
function select$W(field, variables, fragments) {
|
|
42426
42120
|
return (source, reader, parentRecordId) => {
|
|
42427
|
-
var _a;
|
|
42428
42121
|
const sink = {};
|
|
42429
|
-
(
|
|
42430
|
-
const builtSelection = buildSelectionForNode$N(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
42431
|
-
if (builtSelection !== undefined) {
|
|
42432
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
42433
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
42434
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
42435
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
42436
|
-
if (sink[key] === undefined) {
|
|
42437
|
-
sink[key] = builtSelection[key];
|
|
42438
|
-
}
|
|
42439
|
-
});
|
|
42440
|
-
}
|
|
42441
|
-
else {
|
|
42442
|
-
Object.assign(sink, builtSelection);
|
|
42443
|
-
}
|
|
42444
|
-
}
|
|
42445
|
-
});
|
|
42446
|
-
return sink;
|
|
42122
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$N, source, reader, variables, fragments, parentRecordId);
|
|
42447
42123
|
};
|
|
42448
42124
|
}
|
|
42449
42125
|
function getMinimumSelections$z() {
|
|
@@ -42468,10 +42144,10 @@ function getTypeCacheKeys$W(astNode, state) {
|
|
|
42468
42144
|
representationName: name$M
|
|
42469
42145
|
});
|
|
42470
42146
|
// get all cache keys from normalizable fields
|
|
42471
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$N) :
|
|
42147
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$N) : new Map();
|
|
42472
42148
|
for (const fieldDataKey of Object.keys(data)) {
|
|
42473
42149
|
const fieldData = data[fieldDataKey];
|
|
42474
|
-
const requestedField =
|
|
42150
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
42475
42151
|
if (requestedField === undefined) {
|
|
42476
42152
|
continue; // Skip unknown field.
|
|
42477
42153
|
}
|
|
@@ -42864,26 +42540,8 @@ function buildSelectionForNode$M(source, reader, parentNode, selectionNode, vari
|
|
|
42864
42540
|
}
|
|
42865
42541
|
function select$V(field, variables, fragments) {
|
|
42866
42542
|
return (source, reader, parentRecordId) => {
|
|
42867
|
-
var _a;
|
|
42868
42543
|
const sink = {};
|
|
42869
|
-
(
|
|
42870
|
-
const builtSelection = buildSelectionForNode$M(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
42871
|
-
if (builtSelection !== undefined) {
|
|
42872
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
42873
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
42874
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
42875
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
42876
|
-
if (sink[key] === undefined) {
|
|
42877
|
-
sink[key] = builtSelection[key];
|
|
42878
|
-
}
|
|
42879
|
-
});
|
|
42880
|
-
}
|
|
42881
|
-
else {
|
|
42882
|
-
Object.assign(sink, builtSelection);
|
|
42883
|
-
}
|
|
42884
|
-
}
|
|
42885
|
-
});
|
|
42886
|
-
return sink;
|
|
42544
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$M, source, reader, variables, fragments, parentRecordId);
|
|
42887
42545
|
};
|
|
42888
42546
|
}
|
|
42889
42547
|
function getMinimumSelections$y() {
|
|
@@ -42908,10 +42566,10 @@ function getTypeCacheKeys$V(astNode, state) {
|
|
|
42908
42566
|
representationName: name$L
|
|
42909
42567
|
});
|
|
42910
42568
|
// get all cache keys from normalizable fields
|
|
42911
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$M) :
|
|
42569
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$M) : new Map();
|
|
42912
42570
|
for (const fieldDataKey of Object.keys(data)) {
|
|
42913
42571
|
const fieldData = data[fieldDataKey];
|
|
42914
|
-
const requestedField =
|
|
42572
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
42915
42573
|
if (requestedField === undefined) {
|
|
42916
42574
|
continue; // Skip unknown field.
|
|
42917
42575
|
}
|
|
@@ -43075,26 +42733,8 @@ function buildSelectionForNode$L(source, reader, parentNode, selectionNode, vari
|
|
|
43075
42733
|
}
|
|
43076
42734
|
function select$U(field, variables, fragments) {
|
|
43077
42735
|
return (source, reader, parentRecordId) => {
|
|
43078
|
-
var _a;
|
|
43079
42736
|
const sink = {};
|
|
43080
|
-
(
|
|
43081
|
-
const builtSelection = buildSelectionForNode$L(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
43082
|
-
if (builtSelection !== undefined) {
|
|
43083
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
43084
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
43085
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
43086
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
43087
|
-
if (sink[key] === undefined) {
|
|
43088
|
-
sink[key] = builtSelection[key];
|
|
43089
|
-
}
|
|
43090
|
-
});
|
|
43091
|
-
}
|
|
43092
|
-
else {
|
|
43093
|
-
Object.assign(sink, builtSelection);
|
|
43094
|
-
}
|
|
43095
|
-
}
|
|
43096
|
-
});
|
|
43097
|
-
return sink;
|
|
42737
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$L, source, reader, variables, fragments, parentRecordId);
|
|
43098
42738
|
};
|
|
43099
42739
|
}
|
|
43100
42740
|
function getTypeCacheKeys$U(astNode, state) {
|
|
@@ -43231,26 +42871,8 @@ function buildSelectionForNode$K(source, reader, parentNode, selectionNode, vari
|
|
|
43231
42871
|
}
|
|
43232
42872
|
function select$T(field, variables, fragments) {
|
|
43233
42873
|
return (source, reader, parentRecordId) => {
|
|
43234
|
-
var _a;
|
|
43235
42874
|
const sink = {};
|
|
43236
|
-
(
|
|
43237
|
-
const builtSelection = buildSelectionForNode$K(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
43238
|
-
if (builtSelection !== undefined) {
|
|
43239
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
43240
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
43241
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
43242
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
43243
|
-
if (sink[key] === undefined) {
|
|
43244
|
-
sink[key] = builtSelection[key];
|
|
43245
|
-
}
|
|
43246
|
-
});
|
|
43247
|
-
}
|
|
43248
|
-
else {
|
|
43249
|
-
Object.assign(sink, builtSelection);
|
|
43250
|
-
}
|
|
43251
|
-
}
|
|
43252
|
-
});
|
|
43253
|
-
return sink;
|
|
42875
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$K, source, reader, variables, fragments, parentRecordId);
|
|
43254
42876
|
};
|
|
43255
42877
|
}
|
|
43256
42878
|
function getTypeCacheKeys$T(astNode, state) {
|
|
@@ -43399,26 +43021,8 @@ function buildSelectionForNode$J(source, reader, parentNode, selectionNode, vari
|
|
|
43399
43021
|
}
|
|
43400
43022
|
function select$S(field, variables, fragments) {
|
|
43401
43023
|
return (source, reader, parentRecordId) => {
|
|
43402
|
-
var _a;
|
|
43403
43024
|
const sink = {};
|
|
43404
|
-
(
|
|
43405
|
-
const builtSelection = buildSelectionForNode$J(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
43406
|
-
if (builtSelection !== undefined) {
|
|
43407
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
43408
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
43409
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
43410
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
43411
|
-
if (sink[key] === undefined) {
|
|
43412
|
-
sink[key] = builtSelection[key];
|
|
43413
|
-
}
|
|
43414
|
-
});
|
|
43415
|
-
}
|
|
43416
|
-
else {
|
|
43417
|
-
Object.assign(sink, builtSelection);
|
|
43418
|
-
}
|
|
43419
|
-
}
|
|
43420
|
-
});
|
|
43421
|
-
return sink;
|
|
43025
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$J, source, reader, variables, fragments, parentRecordId);
|
|
43422
43026
|
};
|
|
43423
43027
|
}
|
|
43424
43028
|
function getMinimumSelections$x() {
|
|
@@ -43443,10 +43047,10 @@ function getTypeCacheKeys$S(astNode, state) {
|
|
|
43443
43047
|
representationName: name$I
|
|
43444
43048
|
});
|
|
43445
43049
|
// get all cache keys from normalizable fields
|
|
43446
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$J) :
|
|
43050
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$J) : new Map();
|
|
43447
43051
|
for (const fieldDataKey of Object.keys(data)) {
|
|
43448
43052
|
const fieldData = data[fieldDataKey];
|
|
43449
|
-
const requestedField =
|
|
43053
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
43450
43054
|
if (requestedField === undefined) {
|
|
43451
43055
|
continue; // Skip unknown field.
|
|
43452
43056
|
}
|
|
@@ -43760,26 +43364,8 @@ function buildSelectionForNode$I(source, reader, parentNode, selectionNode, vari
|
|
|
43760
43364
|
}
|
|
43761
43365
|
function select$R(field, variables, fragments) {
|
|
43762
43366
|
return (source, reader, parentRecordId) => {
|
|
43763
|
-
var _a;
|
|
43764
43367
|
const sink = {};
|
|
43765
|
-
(
|
|
43766
|
-
const builtSelection = buildSelectionForNode$I(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
43767
|
-
if (builtSelection !== undefined) {
|
|
43768
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
43769
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
43770
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
43771
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
43772
|
-
if (sink[key] === undefined) {
|
|
43773
|
-
sink[key] = builtSelection[key];
|
|
43774
|
-
}
|
|
43775
|
-
});
|
|
43776
|
-
}
|
|
43777
|
-
else {
|
|
43778
|
-
Object.assign(sink, builtSelection);
|
|
43779
|
-
}
|
|
43780
|
-
}
|
|
43781
|
-
});
|
|
43782
|
-
return sink;
|
|
43368
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$I, source, reader, variables, fragments, parentRecordId);
|
|
43783
43369
|
};
|
|
43784
43370
|
}
|
|
43785
43371
|
function getTypeCacheKeys$R(astNode, state) {
|
|
@@ -43928,26 +43514,8 @@ function buildSelectionForNode$H(source, reader, parentNode, selectionNode, vari
|
|
|
43928
43514
|
}
|
|
43929
43515
|
function select$Q(field, variables, fragments) {
|
|
43930
43516
|
return (source, reader, parentRecordId) => {
|
|
43931
|
-
var _a;
|
|
43932
43517
|
const sink = {};
|
|
43933
|
-
(
|
|
43934
|
-
const builtSelection = buildSelectionForNode$H(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
43935
|
-
if (builtSelection !== undefined) {
|
|
43936
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
43937
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
43938
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
43939
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
43940
|
-
if (sink[key] === undefined) {
|
|
43941
|
-
sink[key] = builtSelection[key];
|
|
43942
|
-
}
|
|
43943
|
-
});
|
|
43944
|
-
}
|
|
43945
|
-
else {
|
|
43946
|
-
Object.assign(sink, builtSelection);
|
|
43947
|
-
}
|
|
43948
|
-
}
|
|
43949
|
-
});
|
|
43950
|
-
return sink;
|
|
43518
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$H, source, reader, variables, fragments, parentRecordId);
|
|
43951
43519
|
};
|
|
43952
43520
|
}
|
|
43953
43521
|
function getMinimumSelections$w() {
|
|
@@ -43972,10 +43540,10 @@ function getTypeCacheKeys$Q(astNode, state) {
|
|
|
43972
43540
|
representationName: name$G
|
|
43973
43541
|
});
|
|
43974
43542
|
// get all cache keys from normalizable fields
|
|
43975
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$H) :
|
|
43543
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$H) : new Map();
|
|
43976
43544
|
for (const fieldDataKey of Object.keys(data)) {
|
|
43977
43545
|
const fieldData = data[fieldDataKey];
|
|
43978
|
-
const requestedField =
|
|
43546
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
43979
43547
|
if (requestedField === undefined) {
|
|
43980
43548
|
continue; // Skip unknown field.
|
|
43981
43549
|
}
|
|
@@ -44245,26 +43813,8 @@ function buildSelectionForNode$G(source, reader, parentNode, selectionNode, vari
|
|
|
44245
43813
|
}
|
|
44246
43814
|
function select$P(field, variables, fragments) {
|
|
44247
43815
|
return (source, reader, parentRecordId) => {
|
|
44248
|
-
var _a;
|
|
44249
43816
|
const sink = {};
|
|
44250
|
-
(
|
|
44251
|
-
const builtSelection = buildSelectionForNode$G(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
44252
|
-
if (builtSelection !== undefined) {
|
|
44253
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
44254
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
44255
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
44256
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
44257
|
-
if (sink[key] === undefined) {
|
|
44258
|
-
sink[key] = builtSelection[key];
|
|
44259
|
-
}
|
|
44260
|
-
});
|
|
44261
|
-
}
|
|
44262
|
-
else {
|
|
44263
|
-
Object.assign(sink, builtSelection);
|
|
44264
|
-
}
|
|
44265
|
-
}
|
|
44266
|
-
});
|
|
44267
|
-
return sink;
|
|
43817
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$G, source, reader, variables, fragments, parentRecordId);
|
|
44268
43818
|
};
|
|
44269
43819
|
}
|
|
44270
43820
|
function getTypeCacheKeys$P(astNode, state) {
|
|
@@ -44407,26 +43957,8 @@ function buildSelectionForNode$F(source, reader, parentNode, selectionNode, vari
|
|
|
44407
43957
|
}
|
|
44408
43958
|
function select$O(field, variables, fragments) {
|
|
44409
43959
|
return (source, reader, parentRecordId) => {
|
|
44410
|
-
var _a;
|
|
44411
43960
|
const sink = {};
|
|
44412
|
-
(
|
|
44413
|
-
const builtSelection = buildSelectionForNode$F(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
44414
|
-
if (builtSelection !== undefined) {
|
|
44415
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
44416
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
44417
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
44418
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
44419
|
-
if (sink[key] === undefined) {
|
|
44420
|
-
sink[key] = builtSelection[key];
|
|
44421
|
-
}
|
|
44422
|
-
});
|
|
44423
|
-
}
|
|
44424
|
-
else {
|
|
44425
|
-
Object.assign(sink, builtSelection);
|
|
44426
|
-
}
|
|
44427
|
-
}
|
|
44428
|
-
});
|
|
44429
|
-
return sink;
|
|
43961
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$F, source, reader, variables, fragments, parentRecordId);
|
|
44430
43962
|
};
|
|
44431
43963
|
}
|
|
44432
43964
|
function getTypeCacheKeys$O(astNode, state) {
|
|
@@ -44581,26 +44113,8 @@ function buildSelectionForNode$E(source, reader, parentNode, selectionNode, vari
|
|
|
44581
44113
|
}
|
|
44582
44114
|
function select$N(field, variables, fragments) {
|
|
44583
44115
|
return (source, reader, parentRecordId) => {
|
|
44584
|
-
var _a;
|
|
44585
44116
|
const sink = {};
|
|
44586
|
-
(
|
|
44587
|
-
const builtSelection = buildSelectionForNode$E(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
44588
|
-
if (builtSelection !== undefined) {
|
|
44589
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
44590
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
44591
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
44592
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
44593
|
-
if (sink[key] === undefined) {
|
|
44594
|
-
sink[key] = builtSelection[key];
|
|
44595
|
-
}
|
|
44596
|
-
});
|
|
44597
|
-
}
|
|
44598
|
-
else {
|
|
44599
|
-
Object.assign(sink, builtSelection);
|
|
44600
|
-
}
|
|
44601
|
-
}
|
|
44602
|
-
});
|
|
44603
|
-
return sink;
|
|
44117
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$E, source, reader, variables, fragments, parentRecordId);
|
|
44604
44118
|
};
|
|
44605
44119
|
}
|
|
44606
44120
|
function getMinimumSelections$v() {
|
|
@@ -44625,10 +44139,10 @@ function getTypeCacheKeys$N(astNode, state) {
|
|
|
44625
44139
|
representationName: name$D
|
|
44626
44140
|
});
|
|
44627
44141
|
// get all cache keys from normalizable fields
|
|
44628
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$E) :
|
|
44142
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$E) : new Map();
|
|
44629
44143
|
for (const fieldDataKey of Object.keys(data)) {
|
|
44630
44144
|
const fieldData = data[fieldDataKey];
|
|
44631
|
-
const requestedField =
|
|
44145
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
44632
44146
|
if (requestedField === undefined) {
|
|
44633
44147
|
continue; // Skip unknown field.
|
|
44634
44148
|
}
|
|
@@ -44923,26 +44437,8 @@ function buildSelectionForNode$D(source, reader, parentNode, selectionNode, vari
|
|
|
44923
44437
|
}
|
|
44924
44438
|
function select$M(field, variables, fragments) {
|
|
44925
44439
|
return (source, reader, parentRecordId) => {
|
|
44926
|
-
var _a;
|
|
44927
44440
|
const sink = {};
|
|
44928
|
-
(
|
|
44929
|
-
const builtSelection = buildSelectionForNode$D(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
44930
|
-
if (builtSelection !== undefined) {
|
|
44931
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
44932
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
44933
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
44934
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
44935
|
-
if (sink[key] === undefined) {
|
|
44936
|
-
sink[key] = builtSelection[key];
|
|
44937
|
-
}
|
|
44938
|
-
});
|
|
44939
|
-
}
|
|
44940
|
-
else {
|
|
44941
|
-
Object.assign(sink, builtSelection);
|
|
44942
|
-
}
|
|
44943
|
-
}
|
|
44944
|
-
});
|
|
44945
|
-
return sink;
|
|
44441
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$D, source, reader, variables, fragments, parentRecordId);
|
|
44946
44442
|
};
|
|
44947
44443
|
}
|
|
44948
44444
|
function getTypeCacheKeys$M(astNode, state) {
|
|
@@ -45233,26 +44729,8 @@ function buildSelectionForNode$C(source, reader, parentNode, selectionNode, vari
|
|
|
45233
44729
|
}
|
|
45234
44730
|
function select$L(field, variables, fragments) {
|
|
45235
44731
|
return (source, reader, parentRecordId) => {
|
|
45236
|
-
var _a;
|
|
45237
44732
|
const sink = {};
|
|
45238
|
-
(
|
|
45239
|
-
const builtSelection = buildSelectionForNode$C(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
45240
|
-
if (builtSelection !== undefined) {
|
|
45241
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
45242
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
45243
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
45244
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
45245
|
-
if (sink[key] === undefined) {
|
|
45246
|
-
sink[key] = builtSelection[key];
|
|
45247
|
-
}
|
|
45248
|
-
});
|
|
45249
|
-
}
|
|
45250
|
-
else {
|
|
45251
|
-
Object.assign(sink, builtSelection);
|
|
45252
|
-
}
|
|
45253
|
-
}
|
|
45254
|
-
});
|
|
45255
|
-
return sink;
|
|
44733
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$C, source, reader, variables, fragments, parentRecordId);
|
|
45256
44734
|
};
|
|
45257
44735
|
}
|
|
45258
44736
|
function getTypeCacheKeys$L(astNode, state) {
|
|
@@ -45401,26 +44879,8 @@ function buildSelectionForNode$B(source, reader, parentNode, selectionNode, vari
|
|
|
45401
44879
|
}
|
|
45402
44880
|
function select$K(field, variables, fragments) {
|
|
45403
44881
|
return (source, reader, parentRecordId) => {
|
|
45404
|
-
var _a;
|
|
45405
44882
|
const sink = {};
|
|
45406
|
-
(
|
|
45407
|
-
const builtSelection = buildSelectionForNode$B(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
45408
|
-
if (builtSelection !== undefined) {
|
|
45409
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
45410
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
45411
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
45412
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
45413
|
-
if (sink[key] === undefined) {
|
|
45414
|
-
sink[key] = builtSelection[key];
|
|
45415
|
-
}
|
|
45416
|
-
});
|
|
45417
|
-
}
|
|
45418
|
-
else {
|
|
45419
|
-
Object.assign(sink, builtSelection);
|
|
45420
|
-
}
|
|
45421
|
-
}
|
|
45422
|
-
});
|
|
45423
|
-
return sink;
|
|
44883
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$B, source, reader, variables, fragments, parentRecordId);
|
|
45424
44884
|
};
|
|
45425
44885
|
}
|
|
45426
44886
|
function getMinimumSelections$t() {
|
|
@@ -45445,10 +44905,10 @@ function getTypeCacheKeys$K(astNode, state) {
|
|
|
45445
44905
|
representationName: name$A
|
|
45446
44906
|
});
|
|
45447
44907
|
// get all cache keys from normalizable fields
|
|
45448
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$B) :
|
|
44908
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$B) : new Map();
|
|
45449
44909
|
for (const fieldDataKey of Object.keys(data)) {
|
|
45450
44910
|
const fieldData = data[fieldDataKey];
|
|
45451
|
-
const requestedField =
|
|
44911
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
45452
44912
|
if (requestedField === undefined) {
|
|
45453
44913
|
continue; // Skip unknown field.
|
|
45454
44914
|
}
|
|
@@ -45718,26 +45178,8 @@ function buildSelectionForNode$A(source, reader, parentNode, selectionNode, vari
|
|
|
45718
45178
|
}
|
|
45719
45179
|
function select$J(field, variables, fragments) {
|
|
45720
45180
|
return (source, reader, parentRecordId) => {
|
|
45721
|
-
var _a;
|
|
45722
45181
|
const sink = {};
|
|
45723
|
-
(
|
|
45724
|
-
const builtSelection = buildSelectionForNode$A(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
45725
|
-
if (builtSelection !== undefined) {
|
|
45726
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
45727
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
45728
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
45729
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
45730
|
-
if (sink[key] === undefined) {
|
|
45731
|
-
sink[key] = builtSelection[key];
|
|
45732
|
-
}
|
|
45733
|
-
});
|
|
45734
|
-
}
|
|
45735
|
-
else {
|
|
45736
|
-
Object.assign(sink, builtSelection);
|
|
45737
|
-
}
|
|
45738
|
-
}
|
|
45739
|
-
});
|
|
45740
|
-
return sink;
|
|
45182
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$A, source, reader, variables, fragments, parentRecordId);
|
|
45741
45183
|
};
|
|
45742
45184
|
}
|
|
45743
45185
|
function getTypeCacheKeys$J(astNode, state) {
|
|
@@ -45874,26 +45316,8 @@ function buildSelectionForNode$z(source, reader, parentNode, selectionNode, vari
|
|
|
45874
45316
|
}
|
|
45875
45317
|
function select$I(field, variables, fragments) {
|
|
45876
45318
|
return (source, reader, parentRecordId) => {
|
|
45877
|
-
var _a;
|
|
45878
45319
|
const sink = {};
|
|
45879
|
-
(
|
|
45880
|
-
const builtSelection = buildSelectionForNode$z(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
45881
|
-
if (builtSelection !== undefined) {
|
|
45882
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
45883
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
45884
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
45885
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
45886
|
-
if (sink[key] === undefined) {
|
|
45887
|
-
sink[key] = builtSelection[key];
|
|
45888
|
-
}
|
|
45889
|
-
});
|
|
45890
|
-
}
|
|
45891
|
-
else {
|
|
45892
|
-
Object.assign(sink, builtSelection);
|
|
45893
|
-
}
|
|
45894
|
-
}
|
|
45895
|
-
});
|
|
45896
|
-
return sink;
|
|
45320
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$z, source, reader, variables, fragments, parentRecordId);
|
|
45897
45321
|
};
|
|
45898
45322
|
}
|
|
45899
45323
|
function getTypeCacheKeys$I(astNode, state) {
|
|
@@ -46040,26 +45464,8 @@ function buildSelectionForNode$y(source, reader, parentNode, selectionNode, vari
|
|
|
46040
45464
|
}
|
|
46041
45465
|
function select$H(field, variables, fragments) {
|
|
46042
45466
|
return (source, reader, parentRecordId) => {
|
|
46043
|
-
var _a;
|
|
46044
45467
|
const sink = {};
|
|
46045
|
-
(
|
|
46046
|
-
const builtSelection = buildSelectionForNode$y(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
46047
|
-
if (builtSelection !== undefined) {
|
|
46048
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
46049
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
46050
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
46051
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
46052
|
-
if (sink[key] === undefined) {
|
|
46053
|
-
sink[key] = builtSelection[key];
|
|
46054
|
-
}
|
|
46055
|
-
});
|
|
46056
|
-
}
|
|
46057
|
-
else {
|
|
46058
|
-
Object.assign(sink, builtSelection);
|
|
46059
|
-
}
|
|
46060
|
-
}
|
|
46061
|
-
});
|
|
46062
|
-
return sink;
|
|
45468
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$y, source, reader, variables, fragments, parentRecordId);
|
|
46063
45469
|
};
|
|
46064
45470
|
}
|
|
46065
45471
|
function getMinimumSelections$s() {
|
|
@@ -46084,10 +45490,10 @@ function getTypeCacheKeys$H(astNode, state) {
|
|
|
46084
45490
|
representationName: name$x
|
|
46085
45491
|
});
|
|
46086
45492
|
// get all cache keys from normalizable fields
|
|
46087
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$y) :
|
|
45493
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$y) : new Map();
|
|
46088
45494
|
for (const fieldDataKey of Object.keys(data)) {
|
|
46089
45495
|
const fieldData = data[fieldDataKey];
|
|
46090
|
-
const requestedField =
|
|
45496
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
46091
45497
|
if (requestedField === undefined) {
|
|
46092
45498
|
continue; // Skip unknown field.
|
|
46093
45499
|
}
|
|
@@ -46261,26 +45667,8 @@ function buildSelectionForNode$x(source, reader, parentNode, selectionNode, vari
|
|
|
46261
45667
|
}
|
|
46262
45668
|
function select$G(field, variables, fragments) {
|
|
46263
45669
|
return (source, reader, parentRecordId) => {
|
|
46264
|
-
var _a;
|
|
46265
45670
|
const sink = {};
|
|
46266
|
-
(
|
|
46267
|
-
const builtSelection = buildSelectionForNode$x(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
46268
|
-
if (builtSelection !== undefined) {
|
|
46269
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
46270
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
46271
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
46272
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
46273
|
-
if (sink[key] === undefined) {
|
|
46274
|
-
sink[key] = builtSelection[key];
|
|
46275
|
-
}
|
|
46276
|
-
});
|
|
46277
|
-
}
|
|
46278
|
-
else {
|
|
46279
|
-
Object.assign(sink, builtSelection);
|
|
46280
|
-
}
|
|
46281
|
-
}
|
|
46282
|
-
});
|
|
46283
|
-
return sink;
|
|
45671
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$x, source, reader, variables, fragments, parentRecordId);
|
|
46284
45672
|
};
|
|
46285
45673
|
}
|
|
46286
45674
|
function getTypeCacheKeys$G(astNode, state) {
|
|
@@ -46429,26 +45817,8 @@ function buildSelectionForNode$w(source, reader, parentNode, selectionNode, vari
|
|
|
46429
45817
|
}
|
|
46430
45818
|
function select$F(field, variables, fragments) {
|
|
46431
45819
|
return (source, reader, parentRecordId) => {
|
|
46432
|
-
var _a;
|
|
46433
45820
|
const sink = {};
|
|
46434
|
-
(
|
|
46435
|
-
const builtSelection = buildSelectionForNode$w(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
46436
|
-
if (builtSelection !== undefined) {
|
|
46437
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
46438
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
46439
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
46440
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
46441
|
-
if (sink[key] === undefined) {
|
|
46442
|
-
sink[key] = builtSelection[key];
|
|
46443
|
-
}
|
|
46444
|
-
});
|
|
46445
|
-
}
|
|
46446
|
-
else {
|
|
46447
|
-
Object.assign(sink, builtSelection);
|
|
46448
|
-
}
|
|
46449
|
-
}
|
|
46450
|
-
});
|
|
46451
|
-
return sink;
|
|
45821
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$w, source, reader, variables, fragments, parentRecordId);
|
|
46452
45822
|
};
|
|
46453
45823
|
}
|
|
46454
45824
|
function getMinimumSelections$r() {
|
|
@@ -46473,10 +45843,10 @@ function getTypeCacheKeys$F(astNode, state) {
|
|
|
46473
45843
|
representationName: name$v
|
|
46474
45844
|
});
|
|
46475
45845
|
// get all cache keys from normalizable fields
|
|
46476
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$w) :
|
|
45846
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$w) : new Map();
|
|
46477
45847
|
for (const fieldDataKey of Object.keys(data)) {
|
|
46478
45848
|
const fieldData = data[fieldDataKey];
|
|
46479
|
-
const requestedField =
|
|
45849
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
46480
45850
|
if (requestedField === undefined) {
|
|
46481
45851
|
continue; // Skip unknown field.
|
|
46482
45852
|
}
|
|
@@ -46765,26 +46135,8 @@ function buildSelectionForNode$v(source, reader, parentNode, selectionNode, vari
|
|
|
46765
46135
|
}
|
|
46766
46136
|
function select$E(field, variables, fragments) {
|
|
46767
46137
|
return (source, reader, parentRecordId) => {
|
|
46768
|
-
var _a;
|
|
46769
46138
|
const sink = {};
|
|
46770
|
-
(
|
|
46771
|
-
const builtSelection = buildSelectionForNode$v(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
46772
|
-
if (builtSelection !== undefined) {
|
|
46773
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
46774
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
46775
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
46776
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
46777
|
-
if (sink[key] === undefined) {
|
|
46778
|
-
sink[key] = builtSelection[key];
|
|
46779
|
-
}
|
|
46780
|
-
});
|
|
46781
|
-
}
|
|
46782
|
-
else {
|
|
46783
|
-
Object.assign(sink, builtSelection);
|
|
46784
|
-
}
|
|
46785
|
-
}
|
|
46786
|
-
});
|
|
46787
|
-
return sink;
|
|
46139
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$v, source, reader, variables, fragments, parentRecordId);
|
|
46788
46140
|
};
|
|
46789
46141
|
}
|
|
46790
46142
|
function getTypeCacheKeys$E(astNode, state) {
|
|
@@ -46933,26 +46285,8 @@ function buildSelectionForNode$u(source, reader, parentNode, selectionNode, vari
|
|
|
46933
46285
|
}
|
|
46934
46286
|
function select$D(field, variables, fragments) {
|
|
46935
46287
|
return (source, reader, parentRecordId) => {
|
|
46936
|
-
var _a;
|
|
46937
46288
|
const sink = {};
|
|
46938
|
-
(
|
|
46939
|
-
const builtSelection = buildSelectionForNode$u(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
46940
|
-
if (builtSelection !== undefined) {
|
|
46941
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
46942
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
46943
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
46944
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
46945
|
-
if (sink[key] === undefined) {
|
|
46946
|
-
sink[key] = builtSelection[key];
|
|
46947
|
-
}
|
|
46948
|
-
});
|
|
46949
|
-
}
|
|
46950
|
-
else {
|
|
46951
|
-
Object.assign(sink, builtSelection);
|
|
46952
|
-
}
|
|
46953
|
-
}
|
|
46954
|
-
});
|
|
46955
|
-
return sink;
|
|
46289
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$u, source, reader, variables, fragments, parentRecordId);
|
|
46956
46290
|
};
|
|
46957
46291
|
}
|
|
46958
46292
|
function getMinimumSelections$q() {
|
|
@@ -46977,10 +46311,10 @@ function getTypeCacheKeys$D(astNode, state) {
|
|
|
46977
46311
|
representationName: name$t
|
|
46978
46312
|
});
|
|
46979
46313
|
// get all cache keys from normalizable fields
|
|
46980
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$u) :
|
|
46314
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$u) : new Map();
|
|
46981
46315
|
for (const fieldDataKey of Object.keys(data)) {
|
|
46982
46316
|
const fieldData = data[fieldDataKey];
|
|
46983
|
-
const requestedField =
|
|
46317
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
46984
46318
|
if (requestedField === undefined) {
|
|
46985
46319
|
continue; // Skip unknown field.
|
|
46986
46320
|
}
|
|
@@ -47277,26 +46611,8 @@ function buildSelectionForNode$t(source, reader, parentNode, selectionNode, vari
|
|
|
47277
46611
|
}
|
|
47278
46612
|
function select$C(field, variables, fragments) {
|
|
47279
46613
|
return (source, reader, parentRecordId) => {
|
|
47280
|
-
var _a;
|
|
47281
46614
|
const sink = {};
|
|
47282
|
-
(
|
|
47283
|
-
const builtSelection = buildSelectionForNode$t(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
47284
|
-
if (builtSelection !== undefined) {
|
|
47285
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
47286
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
47287
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
47288
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
47289
|
-
if (sink[key] === undefined) {
|
|
47290
|
-
sink[key] = builtSelection[key];
|
|
47291
|
-
}
|
|
47292
|
-
});
|
|
47293
|
-
}
|
|
47294
|
-
else {
|
|
47295
|
-
Object.assign(sink, builtSelection);
|
|
47296
|
-
}
|
|
47297
|
-
}
|
|
47298
|
-
});
|
|
47299
|
-
return sink;
|
|
46615
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$t, source, reader, variables, fragments, parentRecordId);
|
|
47300
46616
|
};
|
|
47301
46617
|
}
|
|
47302
46618
|
function getMinimumSelections$p() {
|
|
@@ -47321,10 +46637,10 @@ function getTypeCacheKeys$C(astNode, state) {
|
|
|
47321
46637
|
representationName: name$s
|
|
47322
46638
|
});
|
|
47323
46639
|
// get all cache keys from normalizable fields
|
|
47324
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$t) :
|
|
46640
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$t) : new Map();
|
|
47325
46641
|
for (const fieldDataKey of Object.keys(data)) {
|
|
47326
46642
|
const fieldData = data[fieldDataKey];
|
|
47327
|
-
const requestedField =
|
|
46643
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
47328
46644
|
if (requestedField === undefined) {
|
|
47329
46645
|
continue; // Skip unknown field.
|
|
47330
46646
|
}
|
|
@@ -47606,26 +46922,8 @@ function buildSelectionForNode$s(source, reader, parentNode, selectionNode, vari
|
|
|
47606
46922
|
}
|
|
47607
46923
|
function select$B(field, variables, fragments) {
|
|
47608
46924
|
return (source, reader, parentRecordId) => {
|
|
47609
|
-
var _a;
|
|
47610
46925
|
const sink = {};
|
|
47611
|
-
(
|
|
47612
|
-
const builtSelection = buildSelectionForNode$s(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
47613
|
-
if (builtSelection !== undefined) {
|
|
47614
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
47615
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
47616
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
47617
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
47618
|
-
if (sink[key] === undefined) {
|
|
47619
|
-
sink[key] = builtSelection[key];
|
|
47620
|
-
}
|
|
47621
|
-
});
|
|
47622
|
-
}
|
|
47623
|
-
else {
|
|
47624
|
-
Object.assign(sink, builtSelection);
|
|
47625
|
-
}
|
|
47626
|
-
}
|
|
47627
|
-
});
|
|
47628
|
-
return sink;
|
|
46926
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$s, source, reader, variables, fragments, parentRecordId);
|
|
47629
46927
|
};
|
|
47630
46928
|
}
|
|
47631
46929
|
function getTypeCacheKeys$B(astNode, state) {
|
|
@@ -47774,26 +47072,8 @@ function buildSelectionForNode$r(source, reader, parentNode, selectionNode, vari
|
|
|
47774
47072
|
}
|
|
47775
47073
|
function select$A(field, variables, fragments) {
|
|
47776
47074
|
return (source, reader, parentRecordId) => {
|
|
47777
|
-
var _a;
|
|
47778
47075
|
const sink = {};
|
|
47779
|
-
(
|
|
47780
|
-
const builtSelection = buildSelectionForNode$r(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
47781
|
-
if (builtSelection !== undefined) {
|
|
47782
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
47783
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
47784
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
47785
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
47786
|
-
if (sink[key] === undefined) {
|
|
47787
|
-
sink[key] = builtSelection[key];
|
|
47788
|
-
}
|
|
47789
|
-
});
|
|
47790
|
-
}
|
|
47791
|
-
else {
|
|
47792
|
-
Object.assign(sink, builtSelection);
|
|
47793
|
-
}
|
|
47794
|
-
}
|
|
47795
|
-
});
|
|
47796
|
-
return sink;
|
|
47076
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$r, source, reader, variables, fragments, parentRecordId);
|
|
47797
47077
|
};
|
|
47798
47078
|
}
|
|
47799
47079
|
function getMinimumSelections$o() {
|
|
@@ -47818,10 +47098,10 @@ function getTypeCacheKeys$A(astNode, state) {
|
|
|
47818
47098
|
representationName: name$q
|
|
47819
47099
|
});
|
|
47820
47100
|
// get all cache keys from normalizable fields
|
|
47821
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$r) :
|
|
47101
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$r) : new Map();
|
|
47822
47102
|
for (const fieldDataKey of Object.keys(data)) {
|
|
47823
47103
|
const fieldData = data[fieldDataKey];
|
|
47824
|
-
const requestedField =
|
|
47104
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
47825
47105
|
if (requestedField === undefined) {
|
|
47826
47106
|
continue; // Skip unknown field.
|
|
47827
47107
|
}
|
|
@@ -48103,26 +47383,8 @@ function buildSelectionForNode$q(source, reader, parentNode, selectionNode, vari
|
|
|
48103
47383
|
}
|
|
48104
47384
|
function select$z(field, variables, fragments) {
|
|
48105
47385
|
return (source, reader, parentRecordId) => {
|
|
48106
|
-
var _a;
|
|
48107
47386
|
const sink = {};
|
|
48108
|
-
(
|
|
48109
|
-
const builtSelection = buildSelectionForNode$q(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
48110
|
-
if (builtSelection !== undefined) {
|
|
48111
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
48112
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
48113
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
48114
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
48115
|
-
if (sink[key] === undefined) {
|
|
48116
|
-
sink[key] = builtSelection[key];
|
|
48117
|
-
}
|
|
48118
|
-
});
|
|
48119
|
-
}
|
|
48120
|
-
else {
|
|
48121
|
-
Object.assign(sink, builtSelection);
|
|
48122
|
-
}
|
|
48123
|
-
}
|
|
48124
|
-
});
|
|
48125
|
-
return sink;
|
|
47387
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$q, source, reader, variables, fragments, parentRecordId);
|
|
48126
47388
|
};
|
|
48127
47389
|
}
|
|
48128
47390
|
function getMinimumSelections$n() {
|
|
@@ -48147,10 +47409,10 @@ function getTypeCacheKeys$z(astNode, state) {
|
|
|
48147
47409
|
representationName: name$p
|
|
48148
47410
|
});
|
|
48149
47411
|
// get all cache keys from normalizable fields
|
|
48150
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$q) :
|
|
47412
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$q) : new Map();
|
|
48151
47413
|
for (const fieldDataKey of Object.keys(data)) {
|
|
48152
47414
|
const fieldData = data[fieldDataKey];
|
|
48153
|
-
const requestedField =
|
|
47415
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
48154
47416
|
if (requestedField === undefined) {
|
|
48155
47417
|
continue; // Skip unknown field.
|
|
48156
47418
|
}
|
|
@@ -48432,26 +47694,8 @@ function buildSelectionForNode$p(source, reader, parentNode, selectionNode, vari
|
|
|
48432
47694
|
}
|
|
48433
47695
|
function select$y(field, variables, fragments) {
|
|
48434
47696
|
return (source, reader, parentRecordId) => {
|
|
48435
|
-
var _a;
|
|
48436
47697
|
const sink = {};
|
|
48437
|
-
(
|
|
48438
|
-
const builtSelection = buildSelectionForNode$p(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
48439
|
-
if (builtSelection !== undefined) {
|
|
48440
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
48441
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
48442
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
48443
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
48444
|
-
if (sink[key] === undefined) {
|
|
48445
|
-
sink[key] = builtSelection[key];
|
|
48446
|
-
}
|
|
48447
|
-
});
|
|
48448
|
-
}
|
|
48449
|
-
else {
|
|
48450
|
-
Object.assign(sink, builtSelection);
|
|
48451
|
-
}
|
|
48452
|
-
}
|
|
48453
|
-
});
|
|
48454
|
-
return sink;
|
|
47698
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$p, source, reader, variables, fragments, parentRecordId);
|
|
48455
47699
|
};
|
|
48456
47700
|
}
|
|
48457
47701
|
function getMinimumSelections$m() {
|
|
@@ -48476,10 +47720,10 @@ function getTypeCacheKeys$y(astNode, state) {
|
|
|
48476
47720
|
representationName: name$o
|
|
48477
47721
|
});
|
|
48478
47722
|
// get all cache keys from normalizable fields
|
|
48479
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$p) :
|
|
47723
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$p) : new Map();
|
|
48480
47724
|
for (const fieldDataKey of Object.keys(data)) {
|
|
48481
47725
|
const fieldData = data[fieldDataKey];
|
|
48482
|
-
const requestedField =
|
|
47726
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
48483
47727
|
if (requestedField === undefined) {
|
|
48484
47728
|
continue; // Skip unknown field.
|
|
48485
47729
|
}
|
|
@@ -48749,26 +47993,8 @@ function buildSelectionForNode$o(source, reader, parentNode, selectionNode, vari
|
|
|
48749
47993
|
}
|
|
48750
47994
|
function select$x(field, variables, fragments) {
|
|
48751
47995
|
return (source, reader, parentRecordId) => {
|
|
48752
|
-
var _a;
|
|
48753
47996
|
const sink = {};
|
|
48754
|
-
(
|
|
48755
|
-
const builtSelection = buildSelectionForNode$o(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
48756
|
-
if (builtSelection !== undefined) {
|
|
48757
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
48758
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
48759
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
48760
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
48761
|
-
if (sink[key] === undefined) {
|
|
48762
|
-
sink[key] = builtSelection[key];
|
|
48763
|
-
}
|
|
48764
|
-
});
|
|
48765
|
-
}
|
|
48766
|
-
else {
|
|
48767
|
-
Object.assign(sink, builtSelection);
|
|
48768
|
-
}
|
|
48769
|
-
}
|
|
48770
|
-
});
|
|
48771
|
-
return sink;
|
|
47997
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$o, source, reader, variables, fragments, parentRecordId);
|
|
48772
47998
|
};
|
|
48773
47999
|
}
|
|
48774
48000
|
function getTypeCacheKeys$x(astNode, state) {
|
|
@@ -48923,26 +48149,8 @@ function buildSelectionForNode$n(source, reader, parentNode, selectionNode, vari
|
|
|
48923
48149
|
}
|
|
48924
48150
|
function select$w(field, variables, fragments) {
|
|
48925
48151
|
return (source, reader, parentRecordId) => {
|
|
48926
|
-
var _a;
|
|
48927
48152
|
const sink = {};
|
|
48928
|
-
(
|
|
48929
|
-
const builtSelection = buildSelectionForNode$n(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
48930
|
-
if (builtSelection !== undefined) {
|
|
48931
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
48932
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
48933
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
48934
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
48935
|
-
if (sink[key] === undefined) {
|
|
48936
|
-
sink[key] = builtSelection[key];
|
|
48937
|
-
}
|
|
48938
|
-
});
|
|
48939
|
-
}
|
|
48940
|
-
else {
|
|
48941
|
-
Object.assign(sink, builtSelection);
|
|
48942
|
-
}
|
|
48943
|
-
}
|
|
48944
|
-
});
|
|
48945
|
-
return sink;
|
|
48153
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$n, source, reader, variables, fragments, parentRecordId);
|
|
48946
48154
|
};
|
|
48947
48155
|
}
|
|
48948
48156
|
function getMinimumSelections$l() {
|
|
@@ -48967,10 +48175,10 @@ function getTypeCacheKeys$w(astNode, state) {
|
|
|
48967
48175
|
representationName: name$m
|
|
48968
48176
|
});
|
|
48969
48177
|
// get all cache keys from normalizable fields
|
|
48970
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$n) :
|
|
48178
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$n) : new Map();
|
|
48971
48179
|
for (const fieldDataKey of Object.keys(data)) {
|
|
48972
48180
|
const fieldData = data[fieldDataKey];
|
|
48973
|
-
const requestedField =
|
|
48181
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
48974
48182
|
if (requestedField === undefined) {
|
|
48975
48183
|
continue; // Skip unknown field.
|
|
48976
48184
|
}
|
|
@@ -49258,26 +48466,8 @@ function buildSelectionForNode$m(source, reader, parentNode, selectionNode, vari
|
|
|
49258
48466
|
}
|
|
49259
48467
|
function select$v(field, variables, fragments) {
|
|
49260
48468
|
return (source, reader, parentRecordId) => {
|
|
49261
|
-
var _a;
|
|
49262
48469
|
const sink = {};
|
|
49263
|
-
(
|
|
49264
|
-
const builtSelection = buildSelectionForNode$m(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
49265
|
-
if (builtSelection !== undefined) {
|
|
49266
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
49267
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
49268
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
49269
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
49270
|
-
if (sink[key] === undefined) {
|
|
49271
|
-
sink[key] = builtSelection[key];
|
|
49272
|
-
}
|
|
49273
|
-
});
|
|
49274
|
-
}
|
|
49275
|
-
else {
|
|
49276
|
-
Object.assign(sink, builtSelection);
|
|
49277
|
-
}
|
|
49278
|
-
}
|
|
49279
|
-
});
|
|
49280
|
-
return sink;
|
|
48470
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$m, source, reader, variables, fragments, parentRecordId);
|
|
49281
48471
|
};
|
|
49282
48472
|
}
|
|
49283
48473
|
function getMinimumSelections$k() {
|
|
@@ -49302,10 +48492,10 @@ function getTypeCacheKeys$v(astNode, state) {
|
|
|
49302
48492
|
representationName: name$l
|
|
49303
48493
|
});
|
|
49304
48494
|
// get all cache keys from normalizable fields
|
|
49305
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$m) :
|
|
48495
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$m) : new Map();
|
|
49306
48496
|
for (const fieldDataKey of Object.keys(data)) {
|
|
49307
48497
|
const fieldData = data[fieldDataKey];
|
|
49308
|
-
const requestedField =
|
|
48498
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
49309
48499
|
if (requestedField === undefined) {
|
|
49310
48500
|
continue; // Skip unknown field.
|
|
49311
48501
|
}
|
|
@@ -49619,26 +48809,8 @@ function buildSelectionForNode$l(source, reader, parentNode, selectionNode, vari
|
|
|
49619
48809
|
}
|
|
49620
48810
|
function select$u(field, variables, fragments) {
|
|
49621
48811
|
return (source, reader, parentRecordId) => {
|
|
49622
|
-
var _a;
|
|
49623
48812
|
const sink = {};
|
|
49624
|
-
(
|
|
49625
|
-
const builtSelection = buildSelectionForNode$l(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
49626
|
-
if (builtSelection !== undefined) {
|
|
49627
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
49628
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
49629
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
49630
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
49631
|
-
if (sink[key] === undefined) {
|
|
49632
|
-
sink[key] = builtSelection[key];
|
|
49633
|
-
}
|
|
49634
|
-
});
|
|
49635
|
-
}
|
|
49636
|
-
else {
|
|
49637
|
-
Object.assign(sink, builtSelection);
|
|
49638
|
-
}
|
|
49639
|
-
}
|
|
49640
|
-
});
|
|
49641
|
-
return sink;
|
|
48813
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$l, source, reader, variables, fragments, parentRecordId);
|
|
49642
48814
|
};
|
|
49643
48815
|
}
|
|
49644
48816
|
function getTypeCacheKeys$u(astNode, state) {
|
|
@@ -49779,26 +48951,8 @@ function buildSelectionForNode$k(source, reader, parentNode, selectionNode, vari
|
|
|
49779
48951
|
}
|
|
49780
48952
|
function select$t(field, variables, fragments) {
|
|
49781
48953
|
return (source, reader, parentRecordId) => {
|
|
49782
|
-
var _a;
|
|
49783
48954
|
const sink = {};
|
|
49784
|
-
(
|
|
49785
|
-
const builtSelection = buildSelectionForNode$k(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
49786
|
-
if (builtSelection !== undefined) {
|
|
49787
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
49788
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
49789
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
49790
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
49791
|
-
if (sink[key] === undefined) {
|
|
49792
|
-
sink[key] = builtSelection[key];
|
|
49793
|
-
}
|
|
49794
|
-
});
|
|
49795
|
-
}
|
|
49796
|
-
else {
|
|
49797
|
-
Object.assign(sink, builtSelection);
|
|
49798
|
-
}
|
|
49799
|
-
}
|
|
49800
|
-
});
|
|
49801
|
-
return sink;
|
|
48955
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$k, source, reader, variables, fragments, parentRecordId);
|
|
49802
48956
|
};
|
|
49803
48957
|
}
|
|
49804
48958
|
function getMinimumSelections$j() {
|
|
@@ -49823,10 +48977,10 @@ function getTypeCacheKeys$t(astNode, state) {
|
|
|
49823
48977
|
representationName: name$j
|
|
49824
48978
|
});
|
|
49825
48979
|
// get all cache keys from normalizable fields
|
|
49826
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$k) :
|
|
48980
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$k) : new Map();
|
|
49827
48981
|
for (const fieldDataKey of Object.keys(data)) {
|
|
49828
48982
|
const fieldData = data[fieldDataKey];
|
|
49829
|
-
const requestedField =
|
|
48983
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
49830
48984
|
if (requestedField === undefined) {
|
|
49831
48985
|
continue; // Skip unknown field.
|
|
49832
48986
|
}
|
|
@@ -49994,26 +49148,8 @@ function buildSelectionForNode$j(source, reader, parentNode, selectionNode, vari
|
|
|
49994
49148
|
}
|
|
49995
49149
|
function select$s(field, variables, fragments) {
|
|
49996
49150
|
return (source, reader, parentRecordId) => {
|
|
49997
|
-
var _a;
|
|
49998
49151
|
const sink = {};
|
|
49999
|
-
(
|
|
50000
|
-
const builtSelection = buildSelectionForNode$j(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
50001
|
-
if (builtSelection !== undefined) {
|
|
50002
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
50003
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
50004
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
50005
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
50006
|
-
if (sink[key] === undefined) {
|
|
50007
|
-
sink[key] = builtSelection[key];
|
|
50008
|
-
}
|
|
50009
|
-
});
|
|
50010
|
-
}
|
|
50011
|
-
else {
|
|
50012
|
-
Object.assign(sink, builtSelection);
|
|
50013
|
-
}
|
|
50014
|
-
}
|
|
50015
|
-
});
|
|
50016
|
-
return sink;
|
|
49152
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$j, source, reader, variables, fragments, parentRecordId);
|
|
50017
49153
|
};
|
|
50018
49154
|
}
|
|
50019
49155
|
function getTypeCacheKeys$s(astNode, state) {
|
|
@@ -50150,26 +49286,8 @@ function buildSelectionForNode$i(source, reader, parentNode, selectionNode, vari
|
|
|
50150
49286
|
}
|
|
50151
49287
|
function select$r(field, variables, fragments) {
|
|
50152
49288
|
return (source, reader, parentRecordId) => {
|
|
50153
|
-
var _a;
|
|
50154
49289
|
const sink = {};
|
|
50155
|
-
(
|
|
50156
|
-
const builtSelection = buildSelectionForNode$i(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
50157
|
-
if (builtSelection !== undefined) {
|
|
50158
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
50159
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
50160
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
50161
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
50162
|
-
if (sink[key] === undefined) {
|
|
50163
|
-
sink[key] = builtSelection[key];
|
|
50164
|
-
}
|
|
50165
|
-
});
|
|
50166
|
-
}
|
|
50167
|
-
else {
|
|
50168
|
-
Object.assign(sink, builtSelection);
|
|
50169
|
-
}
|
|
50170
|
-
}
|
|
50171
|
-
});
|
|
50172
|
-
return sink;
|
|
49290
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$i, source, reader, variables, fragments, parentRecordId);
|
|
50173
49291
|
};
|
|
50174
49292
|
}
|
|
50175
49293
|
function getTypeCacheKeys$r(astNode, state) {
|
|
@@ -50340,26 +49458,8 @@ function buildSelectionForNode$h(source, reader, parentNode, selectionNode, vari
|
|
|
50340
49458
|
}
|
|
50341
49459
|
function select$q(field, variables, fragments) {
|
|
50342
49460
|
return (source, reader, parentRecordId) => {
|
|
50343
|
-
var _a;
|
|
50344
49461
|
const sink = {};
|
|
50345
|
-
(
|
|
50346
|
-
const builtSelection = buildSelectionForNode$h(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
50347
|
-
if (builtSelection !== undefined) {
|
|
50348
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
50349
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
50350
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
50351
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
50352
|
-
if (sink[key] === undefined) {
|
|
50353
|
-
sink[key] = builtSelection[key];
|
|
50354
|
-
}
|
|
50355
|
-
});
|
|
50356
|
-
}
|
|
50357
|
-
else {
|
|
50358
|
-
Object.assign(sink, builtSelection);
|
|
50359
|
-
}
|
|
50360
|
-
}
|
|
50361
|
-
});
|
|
50362
|
-
return sink;
|
|
49462
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$h, source, reader, variables, fragments, parentRecordId);
|
|
50363
49463
|
};
|
|
50364
49464
|
}
|
|
50365
49465
|
function getMinimumSelections$h() {
|
|
@@ -50520,26 +49620,8 @@ function buildSelectionForNode$g(source, reader, parentNode, selectionNode, vari
|
|
|
50520
49620
|
}
|
|
50521
49621
|
function select$p(field, variables, fragments) {
|
|
50522
49622
|
return (source, reader, parentRecordId) => {
|
|
50523
|
-
var _a;
|
|
50524
49623
|
const sink = {};
|
|
50525
|
-
(
|
|
50526
|
-
const builtSelection = buildSelectionForNode$g(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
50527
|
-
if (builtSelection !== undefined) {
|
|
50528
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
50529
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
50530
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
50531
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
50532
|
-
if (sink[key] === undefined) {
|
|
50533
|
-
sink[key] = builtSelection[key];
|
|
50534
|
-
}
|
|
50535
|
-
});
|
|
50536
|
-
}
|
|
50537
|
-
else {
|
|
50538
|
-
Object.assign(sink, builtSelection);
|
|
50539
|
-
}
|
|
50540
|
-
}
|
|
50541
|
-
});
|
|
50542
|
-
return sink;
|
|
49624
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$g, source, reader, variables, fragments, parentRecordId);
|
|
50543
49625
|
};
|
|
50544
49626
|
}
|
|
50545
49627
|
function getMinimumSelections$g() {
|
|
@@ -50692,26 +49774,8 @@ function buildSelectionForNode$f(source, reader, parentNode, selectionNode, vari
|
|
|
50692
49774
|
}
|
|
50693
49775
|
function select$o(field, variables, fragments) {
|
|
50694
49776
|
return (source, reader, parentRecordId) => {
|
|
50695
|
-
var _a;
|
|
50696
49777
|
const sink = {};
|
|
50697
|
-
(
|
|
50698
|
-
const builtSelection = buildSelectionForNode$f(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
50699
|
-
if (builtSelection !== undefined) {
|
|
50700
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
50701
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
50702
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
50703
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
50704
|
-
if (sink[key] === undefined) {
|
|
50705
|
-
sink[key] = builtSelection[key];
|
|
50706
|
-
}
|
|
50707
|
-
});
|
|
50708
|
-
}
|
|
50709
|
-
else {
|
|
50710
|
-
Object.assign(sink, builtSelection);
|
|
50711
|
-
}
|
|
50712
|
-
}
|
|
50713
|
-
});
|
|
50714
|
-
return sink;
|
|
49778
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$f, source, reader, variables, fragments, parentRecordId);
|
|
50715
49779
|
};
|
|
50716
49780
|
}
|
|
50717
49781
|
function getMinimumSelections$f() {
|
|
@@ -50736,10 +49800,10 @@ function getTypeCacheKeys$o(astNode, state) {
|
|
|
50736
49800
|
representationName: name$e
|
|
50737
49801
|
});
|
|
50738
49802
|
// get all cache keys from normalizable fields
|
|
50739
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$f) :
|
|
49803
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$f) : new Map();
|
|
50740
49804
|
for (const fieldDataKey of Object.keys(data)) {
|
|
50741
49805
|
const fieldData = data[fieldDataKey];
|
|
50742
|
-
const requestedField =
|
|
49806
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
50743
49807
|
if (requestedField === undefined) {
|
|
50744
49808
|
continue; // Skip unknown field.
|
|
50745
49809
|
}
|
|
@@ -51224,26 +50288,8 @@ function buildSelectionForNode$e(source, reader, parentNode, selectionNode, vari
|
|
|
51224
50288
|
}
|
|
51225
50289
|
function select$m(field, variables, fragments) {
|
|
51226
50290
|
return (source, reader, parentRecordId) => {
|
|
51227
|
-
var _a;
|
|
51228
50291
|
const sink = {};
|
|
51229
|
-
(
|
|
51230
|
-
const builtSelection = buildSelectionForNode$e(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
51231
|
-
if (builtSelection !== undefined) {
|
|
51232
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
51233
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
51234
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
51235
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
51236
|
-
if (sink[key] === undefined) {
|
|
51237
|
-
sink[key] = builtSelection[key];
|
|
51238
|
-
}
|
|
51239
|
-
});
|
|
51240
|
-
}
|
|
51241
|
-
else {
|
|
51242
|
-
Object.assign(sink, builtSelection);
|
|
51243
|
-
}
|
|
51244
|
-
}
|
|
51245
|
-
});
|
|
51246
|
-
return sink;
|
|
50292
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$e, source, reader, variables, fragments, parentRecordId);
|
|
51247
50293
|
};
|
|
51248
50294
|
}
|
|
51249
50295
|
function getMinimumSelections$d() {
|
|
@@ -51268,10 +50314,10 @@ function getTypeCacheKeys$m(astNode, state) {
|
|
|
51268
50314
|
representationName: name$d
|
|
51269
50315
|
});
|
|
51270
50316
|
// get all cache keys from normalizable fields
|
|
51271
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$e) :
|
|
50317
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$e) : new Map();
|
|
51272
50318
|
for (const fieldDataKey of Object.keys(data)) {
|
|
51273
50319
|
const fieldData = data[fieldDataKey];
|
|
51274
|
-
const requestedField =
|
|
50320
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
51275
50321
|
if (requestedField === undefined) {
|
|
51276
50322
|
continue; // Skip unknown field.
|
|
51277
50323
|
}
|
|
@@ -51820,26 +50866,8 @@ function buildSelectionForNode$d(source, reader, parentNode, selectionNode, vari
|
|
|
51820
50866
|
}
|
|
51821
50867
|
function select$l(field, variables, fragments) {
|
|
51822
50868
|
return (source, reader, parentRecordId) => {
|
|
51823
|
-
var _a;
|
|
51824
50869
|
const sink = {};
|
|
51825
|
-
(
|
|
51826
|
-
const builtSelection = buildSelectionForNode$d(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
51827
|
-
if (builtSelection !== undefined) {
|
|
51828
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
51829
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
51830
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
51831
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
51832
|
-
if (sink[key] === undefined) {
|
|
51833
|
-
sink[key] = builtSelection[key];
|
|
51834
|
-
}
|
|
51835
|
-
});
|
|
51836
|
-
}
|
|
51837
|
-
else {
|
|
51838
|
-
Object.assign(sink, builtSelection);
|
|
51839
|
-
}
|
|
51840
|
-
}
|
|
51841
|
-
});
|
|
51842
|
-
return sink;
|
|
50870
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$d, source, reader, variables, fragments, parentRecordId);
|
|
51843
50871
|
};
|
|
51844
50872
|
}
|
|
51845
50873
|
function getMinimumSelections$c() {
|
|
@@ -51864,10 +50892,10 @@ function getTypeCacheKeys$l(astNode, state) {
|
|
|
51864
50892
|
representationName: name$c
|
|
51865
50893
|
});
|
|
51866
50894
|
// get all cache keys from normalizable fields
|
|
51867
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$d) :
|
|
50895
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$d) : new Map();
|
|
51868
50896
|
for (const fieldDataKey of Object.keys(data)) {
|
|
51869
50897
|
const fieldData = data[fieldDataKey];
|
|
51870
|
-
const requestedField =
|
|
50898
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
51871
50899
|
if (requestedField === undefined) {
|
|
51872
50900
|
continue; // Skip unknown field.
|
|
51873
50901
|
}
|
|
@@ -52018,26 +51046,8 @@ function buildSelectionForNode$c(source, reader, parentNode, selectionNode, vari
|
|
|
52018
51046
|
}
|
|
52019
51047
|
function select$k(field, variables, fragments) {
|
|
52020
51048
|
return (source, reader, parentRecordId) => {
|
|
52021
|
-
var _a;
|
|
52022
51049
|
const sink = {};
|
|
52023
|
-
(
|
|
52024
|
-
const builtSelection = buildSelectionForNode$c(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
52025
|
-
if (builtSelection !== undefined) {
|
|
52026
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
52027
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
52028
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
52029
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
52030
|
-
if (sink[key] === undefined) {
|
|
52031
|
-
sink[key] = builtSelection[key];
|
|
52032
|
-
}
|
|
52033
|
-
});
|
|
52034
|
-
}
|
|
52035
|
-
else {
|
|
52036
|
-
Object.assign(sink, builtSelection);
|
|
52037
|
-
}
|
|
52038
|
-
}
|
|
52039
|
-
});
|
|
52040
|
-
return sink;
|
|
51050
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$c, source, reader, variables, fragments, parentRecordId);
|
|
52041
51051
|
};
|
|
52042
51052
|
}
|
|
52043
51053
|
function getMinimumSelections$b() {
|
|
@@ -52062,10 +51072,10 @@ function getTypeCacheKeys$k(astNode, state) {
|
|
|
52062
51072
|
representationName: name$b
|
|
52063
51073
|
});
|
|
52064
51074
|
// get all cache keys from normalizable fields
|
|
52065
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$c) :
|
|
51075
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$c) : new Map();
|
|
52066
51076
|
for (const fieldDataKey of Object.keys(data)) {
|
|
52067
51077
|
const fieldData = data[fieldDataKey];
|
|
52068
|
-
const requestedField =
|
|
51078
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
52069
51079
|
if (requestedField === undefined) {
|
|
52070
51080
|
continue; // Skip unknown field.
|
|
52071
51081
|
}
|
|
@@ -52223,26 +51233,8 @@ function buildSelectionForNode$b(source, reader, parentNode, selectionNode, vari
|
|
|
52223
51233
|
}
|
|
52224
51234
|
function select$j(field, variables, fragments) {
|
|
52225
51235
|
return (source, reader, parentRecordId) => {
|
|
52226
|
-
var _a;
|
|
52227
51236
|
const sink = {};
|
|
52228
|
-
(
|
|
52229
|
-
const builtSelection = buildSelectionForNode$b(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
52230
|
-
if (builtSelection !== undefined) {
|
|
52231
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
52232
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
52233
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
52234
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
52235
|
-
if (sink[key] === undefined) {
|
|
52236
|
-
sink[key] = builtSelection[key];
|
|
52237
|
-
}
|
|
52238
|
-
});
|
|
52239
|
-
}
|
|
52240
|
-
else {
|
|
52241
|
-
Object.assign(sink, builtSelection);
|
|
52242
|
-
}
|
|
52243
|
-
}
|
|
52244
|
-
});
|
|
52245
|
-
return sink;
|
|
51237
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$b, source, reader, variables, fragments, parentRecordId);
|
|
52246
51238
|
};
|
|
52247
51239
|
}
|
|
52248
51240
|
function getMinimumSelections$a() {
|
|
@@ -52468,26 +51460,8 @@ function buildSelectionForNode$a(source, reader, parentNode, selectionNode, vari
|
|
|
52468
51460
|
}
|
|
52469
51461
|
function select$i(field, variables, fragments) {
|
|
52470
51462
|
return (source, reader, parentRecordId) => {
|
|
52471
|
-
var _a;
|
|
52472
51463
|
const sink = {};
|
|
52473
|
-
(
|
|
52474
|
-
const builtSelection = buildSelectionForNode$a(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
52475
|
-
if (builtSelection !== undefined) {
|
|
52476
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
52477
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
52478
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
52479
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
52480
|
-
if (sink[key] === undefined) {
|
|
52481
|
-
sink[key] = builtSelection[key];
|
|
52482
|
-
}
|
|
52483
|
-
});
|
|
52484
|
-
}
|
|
52485
|
-
else {
|
|
52486
|
-
Object.assign(sink, builtSelection);
|
|
52487
|
-
}
|
|
52488
|
-
}
|
|
52489
|
-
});
|
|
52490
|
-
return sink;
|
|
51464
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$a, source, reader, variables, fragments, parentRecordId);
|
|
52491
51465
|
};
|
|
52492
51466
|
}
|
|
52493
51467
|
function getMinimumSelections$9() {
|
|
@@ -52513,10 +51487,10 @@ function getTypeCacheKeys$i(astNode, state) {
|
|
|
52513
51487
|
representationName: name$9
|
|
52514
51488
|
});
|
|
52515
51489
|
// get all cache keys from normalizable fields
|
|
52516
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$a) :
|
|
51490
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$a) : new Map();
|
|
52517
51491
|
for (const fieldDataKey of Object.keys(data)) {
|
|
52518
51492
|
const fieldData = data[fieldDataKey];
|
|
52519
|
-
const requestedField =
|
|
51493
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
52520
51494
|
if (requestedField === undefined) {
|
|
52521
51495
|
continue; // Skip unknown field.
|
|
52522
51496
|
}
|
|
@@ -53050,26 +52024,8 @@ function buildSelectionForNode$9(source, reader, parentNode, selectionNode, vari
|
|
|
53050
52024
|
}
|
|
53051
52025
|
function select$h(field, variables, fragments) {
|
|
53052
52026
|
return (source, reader, parentRecordId) => {
|
|
53053
|
-
var _a;
|
|
53054
52027
|
const sink = {};
|
|
53055
|
-
(
|
|
53056
|
-
const builtSelection = buildSelectionForNode$9(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
53057
|
-
if (builtSelection !== undefined) {
|
|
53058
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
53059
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
53060
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
53061
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
53062
|
-
if (sink[key] === undefined) {
|
|
53063
|
-
sink[key] = builtSelection[key];
|
|
53064
|
-
}
|
|
53065
|
-
});
|
|
53066
|
-
}
|
|
53067
|
-
else {
|
|
53068
|
-
Object.assign(sink, builtSelection);
|
|
53069
|
-
}
|
|
53070
|
-
}
|
|
53071
|
-
});
|
|
53072
|
-
return sink;
|
|
52028
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$9, source, reader, variables, fragments, parentRecordId);
|
|
53073
52029
|
};
|
|
53074
52030
|
}
|
|
53075
52031
|
function getMinimumSelections$7() {
|
|
@@ -53094,10 +52050,10 @@ function getTypeCacheKeys$h(astNode, state) {
|
|
|
53094
52050
|
representationName: name$8
|
|
53095
52051
|
});
|
|
53096
52052
|
// get all cache keys from normalizable fields
|
|
53097
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$9) :
|
|
52053
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$9) : new Map();
|
|
53098
52054
|
for (const fieldDataKey of Object.keys(data)) {
|
|
53099
52055
|
const fieldData = data[fieldDataKey];
|
|
53100
|
-
const requestedField =
|
|
52056
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
53101
52057
|
if (requestedField === undefined) {
|
|
53102
52058
|
continue; // Skip unknown field.
|
|
53103
52059
|
}
|
|
@@ -53236,26 +52192,8 @@ function buildSelectionForNode$8(source, reader, parentNode, selectionNode, vari
|
|
|
53236
52192
|
}
|
|
53237
52193
|
function select$g(field, variables, fragments) {
|
|
53238
52194
|
return (source, reader, parentRecordId) => {
|
|
53239
|
-
var _a;
|
|
53240
52195
|
const sink = {};
|
|
53241
|
-
(
|
|
53242
|
-
const builtSelection = buildSelectionForNode$8(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
53243
|
-
if (builtSelection !== undefined) {
|
|
53244
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
53245
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
53246
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
53247
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
53248
|
-
if (sink[key] === undefined) {
|
|
53249
|
-
sink[key] = builtSelection[key];
|
|
53250
|
-
}
|
|
53251
|
-
});
|
|
53252
|
-
}
|
|
53253
|
-
else {
|
|
53254
|
-
Object.assign(sink, builtSelection);
|
|
53255
|
-
}
|
|
53256
|
-
}
|
|
53257
|
-
});
|
|
53258
|
-
return sink;
|
|
52196
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$8, source, reader, variables, fragments, parentRecordId);
|
|
53259
52197
|
};
|
|
53260
52198
|
}
|
|
53261
52199
|
function getMinimumSelections$6() {
|
|
@@ -53574,10 +52512,10 @@ function ingestNonCursorConnectionType(astNode, state, specifics) {
|
|
|
53574
52512
|
function ingestTypeWithStrategy(astNode, state, isCursorConnectionType, { key, isFragmentApplicable, isMappedFieldImport, getFieldType, ramlIngestBlock, ingestPaginatedMetadata, mergeData, storeMetadataParams, createLink, }, strategy) {
|
|
53575
52513
|
const { data, variables, luvio, store } = state;
|
|
53576
52514
|
const sink = {};
|
|
53577
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable) :
|
|
52515
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable) : new Map();
|
|
53578
52516
|
for (const fieldDataKey of Object.keys(data)) {
|
|
53579
52517
|
const fieldData = data[fieldDataKey];
|
|
53580
|
-
const requestedField =
|
|
52518
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
53581
52519
|
if (requestedField === undefined) {
|
|
53582
52520
|
continue; // TODO: (W-11132802) We got a field back we didn't ask for. Call handleUnknownField.
|
|
53583
52521
|
}
|
|
@@ -53794,18 +52732,28 @@ function calculateRequestedFieldsForType(typename, selectionSet, namedFragmentsM
|
|
|
53794
52732
|
selections.push(selection);
|
|
53795
52733
|
}
|
|
53796
52734
|
if (selection.kind === "InlineFragment" && isFragmentApplicable(selection, typename)) {
|
|
52735
|
+
// loops over the map to get the values.
|
|
53797
52736
|
getRequestedFieldsForType(typename, selection.selectionSet, namedFragmentsMap, isFragmentApplicable)
|
|
53798
52737
|
.forEach(fragmentFieldSelection => { mergeFragmentWithExistingSelections(fragmentFieldSelection, selections); });
|
|
53799
52738
|
}
|
|
53800
52739
|
if (selection.kind === "FragmentSpread") {
|
|
53801
52740
|
const namedFragment = namedFragmentsMap[selection.name.value];
|
|
53802
52741
|
if (namedFragment && isFragmentApplicable(namedFragment, typename)) {
|
|
52742
|
+
// loops over the map to get the values.
|
|
53803
52743
|
getRequestedFieldsForType(typename, namedFragment.selectionSet, namedFragmentsMap, isFragmentApplicable)
|
|
53804
52744
|
.forEach(fragmentFieldSelection => { mergeFragmentWithExistingSelections(fragmentFieldSelection, selections); });
|
|
53805
52745
|
}
|
|
53806
52746
|
}
|
|
53807
52747
|
});
|
|
53808
|
-
|
|
52748
|
+
// Needs to happen after the selections are merged.
|
|
52749
|
+
return selections.reduce((acc, fieldNode) => {
|
|
52750
|
+
const fieldName = fieldNode.alias ? fieldNode.alias.value : fieldNode.name.value;
|
|
52751
|
+
// 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.
|
|
52752
|
+
if (!acc.has(fieldName)) {
|
|
52753
|
+
acc.set(fieldName, fieldNode);
|
|
52754
|
+
}
|
|
52755
|
+
return acc;
|
|
52756
|
+
}, new Map());
|
|
53809
52757
|
}
|
|
53810
52758
|
let selectionSetRequestedFieldsWeakMap = new WeakMap();
|
|
53811
52759
|
function getRequestedFieldsForType(typename, selectionSet, namedFragmentsMap, isFragmentApplicable) {
|
|
@@ -54410,6 +53358,27 @@ function augmentDefaultVariableValues(variableDefinitions, variables) {
|
|
|
54410
53358
|
}
|
|
54411
53359
|
});
|
|
54412
53360
|
}
|
|
53361
|
+
function selectCalculateSink(sink, field, buildSelectionForNodeFn, source, reader, variables, fragments, parentRecordId) {
|
|
53362
|
+
var _a;
|
|
53363
|
+
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
53364
|
+
const builtSelection = buildSelectionForNodeFn(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
53365
|
+
if (builtSelection !== undefined) {
|
|
53366
|
+
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
53367
|
+
Object.keys(builtSelection).forEach((key, value) => {
|
|
53368
|
+
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
53369
|
+
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
53370
|
+
if (sink[key] === undefined) {
|
|
53371
|
+
sink[key] = builtSelection[key];
|
|
53372
|
+
}
|
|
53373
|
+
});
|
|
53374
|
+
}
|
|
53375
|
+
else {
|
|
53376
|
+
Object.assign(sink, builtSelection);
|
|
53377
|
+
}
|
|
53378
|
+
}
|
|
53379
|
+
});
|
|
53380
|
+
return sink;
|
|
53381
|
+
}
|
|
54413
53382
|
function selectTypeLinkWithPagination(resolvedLink, sel, fieldData, reader, key, sink, variables, fragments, selectFn) {
|
|
54414
53383
|
var _a, _b, _c, _d, _e;
|
|
54415
53384
|
const source = resolvedLink.data.data;
|
|
@@ -54603,26 +53572,8 @@ function buildSelectionForNode$6(source, reader, parentNode, selectionNode, vari
|
|
|
54603
53572
|
}
|
|
54604
53573
|
function select$f(field, variables, fragments) {
|
|
54605
53574
|
return (source, reader, parentRecordId) => {
|
|
54606
|
-
var _a;
|
|
54607
53575
|
const sink = {};
|
|
54608
|
-
(
|
|
54609
|
-
const builtSelection = buildSelectionForNode$6(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
54610
|
-
if (builtSelection !== undefined) {
|
|
54611
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
54612
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
54613
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
54614
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
54615
|
-
if (sink[key] === undefined) {
|
|
54616
|
-
sink[key] = builtSelection[key];
|
|
54617
|
-
}
|
|
54618
|
-
});
|
|
54619
|
-
}
|
|
54620
|
-
else {
|
|
54621
|
-
Object.assign(sink, builtSelection);
|
|
54622
|
-
}
|
|
54623
|
-
}
|
|
54624
|
-
});
|
|
54625
|
-
return sink;
|
|
53576
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$6, source, reader, variables, fragments, parentRecordId);
|
|
54626
53577
|
};
|
|
54627
53578
|
}
|
|
54628
53579
|
function getTypeCacheKeys$f(astNode, state) {
|
|
@@ -54703,7 +53654,7 @@ function convertGraphQLToRaml(astNode, state) {
|
|
|
54703
53654
|
const { data } = state;
|
|
54704
53655
|
const requestedFields = astNode.selectionSet
|
|
54705
53656
|
? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$5)
|
|
54706
|
-
:
|
|
53657
|
+
: new Map();
|
|
54707
53658
|
const { fieldsBag, trie } = createFieldsBagAndTrie(data, requestedFields, state);
|
|
54708
53659
|
const recordRepresentation = {
|
|
54709
53660
|
apiName: data.ApiName,
|
|
@@ -54732,7 +53683,7 @@ function createFieldsBagAndTrie(data, requestedFields, parentState) {
|
|
|
54732
53683
|
};
|
|
54733
53684
|
for (const fieldDataKey of Object.keys(data)) {
|
|
54734
53685
|
const fieldData = data[fieldDataKey];
|
|
54735
|
-
const requestedField =
|
|
53686
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
54736
53687
|
if (requestedField === undefined) {
|
|
54737
53688
|
continue; // We got a field back we didn't ask for. Skip.
|
|
54738
53689
|
}
|
|
@@ -54822,9 +53773,8 @@ function convertAstToTrie(astNode, fragments) {
|
|
|
54822
53773
|
const requestedFields = astNode.selectionSet
|
|
54823
53774
|
? getRequestedFieldsForType('', // data is null here
|
|
54824
53775
|
astNode.selectionSet, fragments, isFragmentApplicable$5)
|
|
54825
|
-
:
|
|
54826
|
-
for (
|
|
54827
|
-
const field = requestedFields[i];
|
|
53776
|
+
: new Map();
|
|
53777
|
+
for (const [, field] of requestedFields) {
|
|
54828
53778
|
const fieldType = getFieldType$9(field);
|
|
54829
53779
|
const fieldName = field.name.value;
|
|
54830
53780
|
//Untyped field - Adapter forwarded request?
|
|
@@ -55171,10 +54121,10 @@ function getTypeCacheKeys$e(astNode, state) {
|
|
|
55171
54121
|
// get all cache keys from normalizable fields
|
|
55172
54122
|
const requestedFields = astNode.selectionSet
|
|
55173
54123
|
? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$3)
|
|
55174
|
-
:
|
|
54124
|
+
: new Map();
|
|
55175
54125
|
for (const fieldDataKey of ObjectKeys(data)) {
|
|
55176
54126
|
const fieldData = data[fieldDataKey];
|
|
55177
|
-
const requestedField =
|
|
54127
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
55178
54128
|
if (requestedField === undefined) {
|
|
55179
54129
|
continue; // Skip unknown field.
|
|
55180
54130
|
}
|
|
@@ -55396,28 +54346,10 @@ function buildSelectionForNode$5(source, reader, parentNode, selectionNode, vari
|
|
|
55396
54346
|
}
|
|
55397
54347
|
function select$e(field, variables, fragments) {
|
|
55398
54348
|
return (source, reader, parentRecordId) => {
|
|
55399
|
-
var _a;
|
|
55400
54349
|
const sink = {};
|
|
55401
54350
|
source = attachMappedData(source, reader);
|
|
55402
54351
|
reader.markSeenId(parentRecordId); // Always mark identifiable types as seen
|
|
55403
|
-
(
|
|
55404
|
-
const builtSelection = buildSelectionForNode$5(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
55405
|
-
if (builtSelection !== undefined) {
|
|
55406
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
55407
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
55408
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
55409
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
55410
|
-
if (sink[key] === undefined) {
|
|
55411
|
-
sink[key] = builtSelection[key];
|
|
55412
|
-
}
|
|
55413
|
-
});
|
|
55414
|
-
}
|
|
55415
|
-
else {
|
|
55416
|
-
Object.assign(sink, builtSelection);
|
|
55417
|
-
}
|
|
55418
|
-
}
|
|
55419
|
-
});
|
|
55420
|
-
return sink;
|
|
54352
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$5, source, reader, variables, fragments, parentRecordId);
|
|
55421
54353
|
};
|
|
55422
54354
|
}
|
|
55423
54355
|
function getTypeCacheKeys$d(astNode, state) {
|
|
@@ -55430,10 +54362,10 @@ function getTypeCacheKeys$d(astNode, state) {
|
|
|
55430
54362
|
representationName: name$5
|
|
55431
54363
|
});
|
|
55432
54364
|
// get all cache keys from normalizable fields
|
|
55433
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$5) :
|
|
54365
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$5) : new Map();
|
|
55434
54366
|
for (const fieldDataKey of Object.keys(data)) {
|
|
55435
54367
|
const fieldData = data[fieldDataKey];
|
|
55436
|
-
const requestedField =
|
|
54368
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
55437
54369
|
if (requestedField === undefined) {
|
|
55438
54370
|
continue; // Skip unknown field.
|
|
55439
54371
|
}
|
|
@@ -56297,26 +55229,8 @@ function buildSelectionForNode$4(source, reader, parentNode, selectionNode, vari
|
|
|
56297
55229
|
}
|
|
56298
55230
|
function select$d(field, variables, fragments) {
|
|
56299
55231
|
return (source, reader, parentRecordId) => {
|
|
56300
|
-
var _a;
|
|
56301
55232
|
const sink = {};
|
|
56302
|
-
(
|
|
56303
|
-
const builtSelection = buildSelectionForNode$4(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
56304
|
-
if (builtSelection !== undefined) {
|
|
56305
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
56306
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
56307
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
56308
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
56309
|
-
if (sink[key] === undefined) {
|
|
56310
|
-
sink[key] = builtSelection[key];
|
|
56311
|
-
}
|
|
56312
|
-
});
|
|
56313
|
-
}
|
|
56314
|
-
else {
|
|
56315
|
-
Object.assign(sink, builtSelection);
|
|
56316
|
-
}
|
|
56317
|
-
}
|
|
56318
|
-
});
|
|
56319
|
-
return sink;
|
|
55233
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$4, source, reader, variables, fragments, parentRecordId);
|
|
56320
55234
|
};
|
|
56321
55235
|
}
|
|
56322
55236
|
function getMinimumSelections$4() {
|
|
@@ -56341,10 +55255,10 @@ function getTypeCacheKeys$c(astNode, state) {
|
|
|
56341
55255
|
representationName: name$4
|
|
56342
55256
|
});
|
|
56343
55257
|
// get all cache keys from normalizable fields
|
|
56344
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$4) :
|
|
55258
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$4) : new Map();
|
|
56345
55259
|
for (const fieldDataKey of Object.keys(data)) {
|
|
56346
55260
|
const fieldData = data[fieldDataKey];
|
|
56347
|
-
const requestedField =
|
|
55261
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
56348
55262
|
if (requestedField === undefined) {
|
|
56349
55263
|
continue; // Skip unknown field.
|
|
56350
55264
|
}
|
|
@@ -56568,26 +55482,8 @@ function buildSelectionForNode$3(source, reader, parentNode, selectionNode, vari
|
|
|
56568
55482
|
}
|
|
56569
55483
|
function select$c(field, variables, fragments) {
|
|
56570
55484
|
return (source, reader, parentRecordId) => {
|
|
56571
|
-
var _a;
|
|
56572
55485
|
const sink = {};
|
|
56573
|
-
(
|
|
56574
|
-
const builtSelection = buildSelectionForNode$3(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
56575
|
-
if (builtSelection !== undefined) {
|
|
56576
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
56577
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
56578
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
56579
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
56580
|
-
if (sink[key] === undefined) {
|
|
56581
|
-
sink[key] = builtSelection[key];
|
|
56582
|
-
}
|
|
56583
|
-
});
|
|
56584
|
-
}
|
|
56585
|
-
else {
|
|
56586
|
-
Object.assign(sink, builtSelection);
|
|
56587
|
-
}
|
|
56588
|
-
}
|
|
56589
|
-
});
|
|
56590
|
-
return sink;
|
|
55486
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$3, source, reader, variables, fragments, parentRecordId);
|
|
56591
55487
|
};
|
|
56592
55488
|
}
|
|
56593
55489
|
function getMinimumSelections$3() {
|
|
@@ -56755,26 +55651,8 @@ function buildSelectionForNode$2(source, reader, parentNode, selectionNode, vari
|
|
|
56755
55651
|
}
|
|
56756
55652
|
function select$b(field, variables, fragments) {
|
|
56757
55653
|
return (source, reader, parentRecordId) => {
|
|
56758
|
-
var _a;
|
|
56759
55654
|
const sink = {};
|
|
56760
|
-
(
|
|
56761
|
-
const builtSelection = buildSelectionForNode$2(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
56762
|
-
if (builtSelection !== undefined) {
|
|
56763
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
56764
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
56765
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
56766
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
56767
|
-
if (sink[key] === undefined) {
|
|
56768
|
-
sink[key] = builtSelection[key];
|
|
56769
|
-
}
|
|
56770
|
-
});
|
|
56771
|
-
}
|
|
56772
|
-
else {
|
|
56773
|
-
Object.assign(sink, builtSelection);
|
|
56774
|
-
}
|
|
56775
|
-
}
|
|
56776
|
-
});
|
|
56777
|
-
return sink;
|
|
55655
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$2, source, reader, variables, fragments, parentRecordId);
|
|
56778
55656
|
};
|
|
56779
55657
|
}
|
|
56780
55658
|
function getMinimumSelections$2() {
|
|
@@ -56799,10 +55677,10 @@ function getTypeCacheKeys$b(astNode, state) {
|
|
|
56799
55677
|
representationName: name$2
|
|
56800
55678
|
});
|
|
56801
55679
|
// get all cache keys from normalizable fields
|
|
56802
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$2) :
|
|
55680
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$2) : new Map();
|
|
56803
55681
|
for (const fieldDataKey of Object.keys(data)) {
|
|
56804
55682
|
const fieldData = data[fieldDataKey];
|
|
56805
|
-
const requestedField =
|
|
55683
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
56806
55684
|
if (requestedField === undefined) {
|
|
56807
55685
|
continue; // Skip unknown field.
|
|
56808
55686
|
}
|
|
@@ -56947,26 +55825,8 @@ function buildSelectionForNode$1(source, reader, parentNode, selectionNode, vari
|
|
|
56947
55825
|
}
|
|
56948
55826
|
function select$a(field, variables, fragments) {
|
|
56949
55827
|
return (source, reader, parentRecordId) => {
|
|
56950
|
-
var _a;
|
|
56951
55828
|
const sink = {};
|
|
56952
|
-
(
|
|
56953
|
-
const builtSelection = buildSelectionForNode$1(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
56954
|
-
if (builtSelection !== undefined) {
|
|
56955
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
56956
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
56957
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
56958
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
56959
|
-
if (sink[key] === undefined) {
|
|
56960
|
-
sink[key] = builtSelection[key];
|
|
56961
|
-
}
|
|
56962
|
-
});
|
|
56963
|
-
}
|
|
56964
|
-
else {
|
|
56965
|
-
Object.assign(sink, builtSelection);
|
|
56966
|
-
}
|
|
56967
|
-
}
|
|
56968
|
-
});
|
|
56969
|
-
return sink;
|
|
55829
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$1, source, reader, variables, fragments, parentRecordId);
|
|
56970
55830
|
};
|
|
56971
55831
|
}
|
|
56972
55832
|
function getMinimumSelections$1() {
|
|
@@ -56991,10 +55851,10 @@ function getTypeCacheKeys$a(astNode, state) {
|
|
|
56991
55851
|
representationName: name$1
|
|
56992
55852
|
});
|
|
56993
55853
|
// get all cache keys from normalizable fields
|
|
56994
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$1) :
|
|
55854
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$1) : new Map();
|
|
56995
55855
|
for (const fieldDataKey of Object.keys(data)) {
|
|
56996
55856
|
const fieldData = data[fieldDataKey];
|
|
56997
|
-
const requestedField =
|
|
55857
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
56998
55858
|
if (requestedField === undefined) {
|
|
56999
55859
|
continue; // Skip unknown field.
|
|
57000
55860
|
}
|
|
@@ -57253,26 +56113,8 @@ function buildSelectionForNode(source, reader, parentNode, selectionNode, variab
|
|
|
57253
56113
|
}
|
|
57254
56114
|
function select$9(field, variables, fragments) {
|
|
57255
56115
|
return (source, reader, parentRecordId) => {
|
|
57256
|
-
var _a;
|
|
57257
56116
|
const sink = {};
|
|
57258
|
-
(
|
|
57259
|
-
const builtSelection = buildSelectionForNode(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
57260
|
-
if (builtSelection !== undefined) {
|
|
57261
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
57262
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
57263
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
57264
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
57265
|
-
if (sink[key] === undefined) {
|
|
57266
|
-
sink[key] = builtSelection[key];
|
|
57267
|
-
}
|
|
57268
|
-
});
|
|
57269
|
-
}
|
|
57270
|
-
else {
|
|
57271
|
-
Object.assign(sink, builtSelection);
|
|
57272
|
-
}
|
|
57273
|
-
}
|
|
57274
|
-
});
|
|
57275
|
-
return sink;
|
|
56117
|
+
return selectCalculateSink(sink, field, buildSelectionForNode, source, reader, variables, fragments, parentRecordId);
|
|
57276
56118
|
};
|
|
57277
56119
|
}
|
|
57278
56120
|
function getMinimumSelections() {
|
|
@@ -57289,10 +56131,10 @@ function getTypeCacheKeys$9(astNode, state) {
|
|
|
57289
56131
|
representationName: name
|
|
57290
56132
|
});
|
|
57291
56133
|
// get all cache keys from normalizable fields
|
|
57292
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable) :
|
|
56134
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable) : new Map();
|
|
57293
56135
|
for (const fieldDataKey of Object.keys(data)) {
|
|
57294
56136
|
const fieldData = data[fieldDataKey];
|
|
57295
|
-
const requestedField =
|
|
56137
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
57296
56138
|
if (requestedField === undefined) {
|
|
57297
56139
|
continue; // Skip unknown field.
|
|
57298
56140
|
}
|