@salesforce/lds-adapters-uiapi 1.158.0 → 1.158.2
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.
|
@@ -31632,26 +31632,8 @@ function buildSelectionForNode$12(source, reader, parentNode, selectionNode, var
|
|
|
31632
31632
|
}
|
|
31633
31633
|
function select$1b(field, variables, fragments) {
|
|
31634
31634
|
return (source, reader, parentRecordId) => {
|
|
31635
|
-
var _a;
|
|
31636
31635
|
const sink = {};
|
|
31637
|
-
(
|
|
31638
|
-
const builtSelection = buildSelectionForNode$12(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
31639
|
-
if (builtSelection !== undefined) {
|
|
31640
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
31641
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
31642
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
31643
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
31644
|
-
if (sink[key] === undefined) {
|
|
31645
|
-
sink[key] = builtSelection[key];
|
|
31646
|
-
}
|
|
31647
|
-
});
|
|
31648
|
-
}
|
|
31649
|
-
else {
|
|
31650
|
-
Object.assign(sink, builtSelection);
|
|
31651
|
-
}
|
|
31652
|
-
}
|
|
31653
|
-
});
|
|
31654
|
-
return sink;
|
|
31636
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$12, source, reader, variables, fragments, parentRecordId);
|
|
31655
31637
|
};
|
|
31656
31638
|
}
|
|
31657
31639
|
function getTypeCacheKeys$1b(astNode, state) {
|
|
@@ -31794,26 +31776,8 @@ function buildSelectionForNode$11(source, reader, parentNode, selectionNode, var
|
|
|
31794
31776
|
}
|
|
31795
31777
|
function select$1a(field, variables, fragments) {
|
|
31796
31778
|
return (source, reader, parentRecordId) => {
|
|
31797
|
-
var _a;
|
|
31798
31779
|
const sink = {};
|
|
31799
|
-
(
|
|
31800
|
-
const builtSelection = buildSelectionForNode$11(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
31801
|
-
if (builtSelection !== undefined) {
|
|
31802
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
31803
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
31804
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
31805
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
31806
|
-
if (sink[key] === undefined) {
|
|
31807
|
-
sink[key] = builtSelection[key];
|
|
31808
|
-
}
|
|
31809
|
-
});
|
|
31810
|
-
}
|
|
31811
|
-
else {
|
|
31812
|
-
Object.assign(sink, builtSelection);
|
|
31813
|
-
}
|
|
31814
|
-
}
|
|
31815
|
-
});
|
|
31816
|
-
return sink;
|
|
31780
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$11, source, reader, variables, fragments, parentRecordId);
|
|
31817
31781
|
};
|
|
31818
31782
|
}
|
|
31819
31783
|
function getTypeCacheKeys$1a(astNode, state) {
|
|
@@ -31956,26 +31920,8 @@ function buildSelectionForNode$10(source, reader, parentNode, selectionNode, var
|
|
|
31956
31920
|
}
|
|
31957
31921
|
function select$19(field, variables, fragments) {
|
|
31958
31922
|
return (source, reader, parentRecordId) => {
|
|
31959
|
-
var _a;
|
|
31960
31923
|
const sink = {};
|
|
31961
|
-
(
|
|
31962
|
-
const builtSelection = buildSelectionForNode$10(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
31963
|
-
if (builtSelection !== undefined) {
|
|
31964
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
31965
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
31966
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
31967
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
31968
|
-
if (sink[key] === undefined) {
|
|
31969
|
-
sink[key] = builtSelection[key];
|
|
31970
|
-
}
|
|
31971
|
-
});
|
|
31972
|
-
}
|
|
31973
|
-
else {
|
|
31974
|
-
Object.assign(sink, builtSelection);
|
|
31975
|
-
}
|
|
31976
|
-
}
|
|
31977
|
-
});
|
|
31978
|
-
return sink;
|
|
31924
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$10, source, reader, variables, fragments, parentRecordId);
|
|
31979
31925
|
};
|
|
31980
31926
|
}
|
|
31981
31927
|
function getTypeCacheKeys$19(astNode, state) {
|
|
@@ -32130,26 +32076,8 @@ function buildSelectionForNode$$(source, reader, parentNode, selectionNode, vari
|
|
|
32130
32076
|
}
|
|
32131
32077
|
function select$18(field, variables, fragments) {
|
|
32132
32078
|
return (source, reader, parentRecordId) => {
|
|
32133
|
-
var _a;
|
|
32134
32079
|
const sink = {};
|
|
32135
|
-
(
|
|
32136
|
-
const builtSelection = buildSelectionForNode$$(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
32137
|
-
if (builtSelection !== undefined) {
|
|
32138
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
32139
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
32140
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
32141
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
32142
|
-
if (sink[key] === undefined) {
|
|
32143
|
-
sink[key] = builtSelection[key];
|
|
32144
|
-
}
|
|
32145
|
-
});
|
|
32146
|
-
}
|
|
32147
|
-
else {
|
|
32148
|
-
Object.assign(sink, builtSelection);
|
|
32149
|
-
}
|
|
32150
|
-
}
|
|
32151
|
-
});
|
|
32152
|
-
return sink;
|
|
32080
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$$, source, reader, variables, fragments, parentRecordId);
|
|
32153
32081
|
};
|
|
32154
32082
|
}
|
|
32155
32083
|
function getMinimumSelections$L() {
|
|
@@ -32174,10 +32102,10 @@ function getTypeCacheKeys$18(astNode, state) {
|
|
|
32174
32102
|
representationName: name$_
|
|
32175
32103
|
});
|
|
32176
32104
|
// get all cache keys from normalizable fields
|
|
32177
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$$) :
|
|
32105
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$$) : new Map();
|
|
32178
32106
|
for (const fieldDataKey of Object.keys(data)) {
|
|
32179
32107
|
const fieldData = data[fieldDataKey];
|
|
32180
|
-
const requestedField =
|
|
32108
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
32181
32109
|
if (requestedField === undefined) {
|
|
32182
32110
|
continue; // Skip unknown field.
|
|
32183
32111
|
}
|
|
@@ -32472,26 +32400,8 @@ function buildSelectionForNode$_(source, reader, parentNode, selectionNode, vari
|
|
|
32472
32400
|
}
|
|
32473
32401
|
function select$17(field, variables, fragments) {
|
|
32474
32402
|
return (source, reader, parentRecordId) => {
|
|
32475
|
-
var _a;
|
|
32476
32403
|
const sink = {};
|
|
32477
|
-
(
|
|
32478
|
-
const builtSelection = buildSelectionForNode$_(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
32479
|
-
if (builtSelection !== undefined) {
|
|
32480
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
32481
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
32482
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
32483
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
32484
|
-
if (sink[key] === undefined) {
|
|
32485
|
-
sink[key] = builtSelection[key];
|
|
32486
|
-
}
|
|
32487
|
-
});
|
|
32488
|
-
}
|
|
32489
|
-
else {
|
|
32490
|
-
Object.assign(sink, builtSelection);
|
|
32491
|
-
}
|
|
32492
|
-
}
|
|
32493
|
-
});
|
|
32494
|
-
return sink;
|
|
32404
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$_, source, reader, variables, fragments, parentRecordId);
|
|
32495
32405
|
};
|
|
32496
32406
|
}
|
|
32497
32407
|
function getTypeCacheKeys$17(astNode, state) {
|
|
@@ -32629,26 +32539,8 @@ function buildSelectionForNode$Z(source, reader, parentNode, selectionNode, vari
|
|
|
32629
32539
|
}
|
|
32630
32540
|
function select$16(field, variables, fragments) {
|
|
32631
32541
|
return (source, reader, parentRecordId) => {
|
|
32632
|
-
var _a;
|
|
32633
32542
|
const sink = {};
|
|
32634
|
-
(
|
|
32635
|
-
const builtSelection = buildSelectionForNode$Z(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
32636
|
-
if (builtSelection !== undefined) {
|
|
32637
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
32638
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
32639
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
32640
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
32641
|
-
if (sink[key] === undefined) {
|
|
32642
|
-
sink[key] = builtSelection[key];
|
|
32643
|
-
}
|
|
32644
|
-
});
|
|
32645
|
-
}
|
|
32646
|
-
else {
|
|
32647
|
-
Object.assign(sink, builtSelection);
|
|
32648
|
-
}
|
|
32649
|
-
}
|
|
32650
|
-
});
|
|
32651
|
-
return sink;
|
|
32543
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$Z, source, reader, variables, fragments, parentRecordId);
|
|
32652
32544
|
};
|
|
32653
32545
|
}
|
|
32654
32546
|
function getTypeCacheKeys$16(astNode, state) {
|
|
@@ -32794,26 +32686,8 @@ function buildSelectionForNode$Y(source, reader, parentNode, selectionNode, vari
|
|
|
32794
32686
|
}
|
|
32795
32687
|
function select$15(field, variables, fragments) {
|
|
32796
32688
|
return (source, reader, parentRecordId) => {
|
|
32797
|
-
var _a;
|
|
32798
32689
|
const sink = {};
|
|
32799
|
-
(
|
|
32800
|
-
const builtSelection = buildSelectionForNode$Y(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
32801
|
-
if (builtSelection !== undefined) {
|
|
32802
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
32803
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
32804
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
32805
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
32806
|
-
if (sink[key] === undefined) {
|
|
32807
|
-
sink[key] = builtSelection[key];
|
|
32808
|
-
}
|
|
32809
|
-
});
|
|
32810
|
-
}
|
|
32811
|
-
else {
|
|
32812
|
-
Object.assign(sink, builtSelection);
|
|
32813
|
-
}
|
|
32814
|
-
}
|
|
32815
|
-
});
|
|
32816
|
-
return sink;
|
|
32690
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$Y, source, reader, variables, fragments, parentRecordId);
|
|
32817
32691
|
};
|
|
32818
32692
|
}
|
|
32819
32693
|
function getMinimumSelections$K() {
|
|
@@ -32838,10 +32712,10 @@ function getTypeCacheKeys$15(astNode, state) {
|
|
|
32838
32712
|
representationName: name$X
|
|
32839
32713
|
});
|
|
32840
32714
|
// get all cache keys from normalizable fields
|
|
32841
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$Y) :
|
|
32715
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$Y) : new Map();
|
|
32842
32716
|
for (const fieldDataKey of Object.keys(data)) {
|
|
32843
32717
|
const fieldData = data[fieldDataKey];
|
|
32844
|
-
const requestedField =
|
|
32718
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
32845
32719
|
if (requestedField === undefined) {
|
|
32846
32720
|
continue; // Skip unknown field.
|
|
32847
32721
|
}
|
|
@@ -33153,26 +33027,8 @@ function buildSelectionForNode$X(source, reader, parentNode, selectionNode, vari
|
|
|
33153
33027
|
}
|
|
33154
33028
|
function select$14(field, variables, fragments) {
|
|
33155
33029
|
return (source, reader, parentRecordId) => {
|
|
33156
|
-
var _a;
|
|
33157
33030
|
const sink = {};
|
|
33158
|
-
(
|
|
33159
|
-
const builtSelection = buildSelectionForNode$X(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
33160
|
-
if (builtSelection !== undefined) {
|
|
33161
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
33162
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
33163
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
33164
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
33165
|
-
if (sink[key] === undefined) {
|
|
33166
|
-
sink[key] = builtSelection[key];
|
|
33167
|
-
}
|
|
33168
|
-
});
|
|
33169
|
-
}
|
|
33170
|
-
else {
|
|
33171
|
-
Object.assign(sink, builtSelection);
|
|
33172
|
-
}
|
|
33173
|
-
}
|
|
33174
|
-
});
|
|
33175
|
-
return sink;
|
|
33031
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$X, source, reader, variables, fragments, parentRecordId);
|
|
33176
33032
|
};
|
|
33177
33033
|
}
|
|
33178
33034
|
function getMinimumSelections$I() {
|
|
@@ -33321,26 +33177,8 @@ function buildSelectionForNode$W(source, reader, parentNode, selectionNode, vari
|
|
|
33321
33177
|
}
|
|
33322
33178
|
function select$13(field, variables, fragments) {
|
|
33323
33179
|
return (source, reader, parentRecordId) => {
|
|
33324
|
-
var _a;
|
|
33325
33180
|
const sink = {};
|
|
33326
|
-
(
|
|
33327
|
-
const builtSelection = buildSelectionForNode$W(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
33328
|
-
if (builtSelection !== undefined) {
|
|
33329
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
33330
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
33331
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
33332
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
33333
|
-
if (sink[key] === undefined) {
|
|
33334
|
-
sink[key] = builtSelection[key];
|
|
33335
|
-
}
|
|
33336
|
-
});
|
|
33337
|
-
}
|
|
33338
|
-
else {
|
|
33339
|
-
Object.assign(sink, builtSelection);
|
|
33340
|
-
}
|
|
33341
|
-
}
|
|
33342
|
-
});
|
|
33343
|
-
return sink;
|
|
33181
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$W, source, reader, variables, fragments, parentRecordId);
|
|
33344
33182
|
};
|
|
33345
33183
|
}
|
|
33346
33184
|
function getTypeCacheKeys$13(astNode, state) {
|
|
@@ -33499,26 +33337,8 @@ function buildSelectionForNode$V(source, reader, parentNode, selectionNode, vari
|
|
|
33499
33337
|
}
|
|
33500
33338
|
function select$12(field, variables, fragments) {
|
|
33501
33339
|
return (source, reader, parentRecordId) => {
|
|
33502
|
-
var _a;
|
|
33503
33340
|
const sink = {};
|
|
33504
|
-
(
|
|
33505
|
-
const builtSelection = buildSelectionForNode$V(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
33506
|
-
if (builtSelection !== undefined) {
|
|
33507
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
33508
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
33509
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
33510
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
33511
|
-
if (sink[key] === undefined) {
|
|
33512
|
-
sink[key] = builtSelection[key];
|
|
33513
|
-
}
|
|
33514
|
-
});
|
|
33515
|
-
}
|
|
33516
|
-
else {
|
|
33517
|
-
Object.assign(sink, builtSelection);
|
|
33518
|
-
}
|
|
33519
|
-
}
|
|
33520
|
-
});
|
|
33521
|
-
return sink;
|
|
33341
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$V, source, reader, variables, fragments, parentRecordId);
|
|
33522
33342
|
};
|
|
33523
33343
|
}
|
|
33524
33344
|
function getMinimumSelections$H() {
|
|
@@ -33543,10 +33363,10 @@ function getTypeCacheKeys$12(astNode, state) {
|
|
|
33543
33363
|
representationName: name$U
|
|
33544
33364
|
});
|
|
33545
33365
|
// get all cache keys from normalizable fields
|
|
33546
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$V) :
|
|
33366
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$V) : new Map();
|
|
33547
33367
|
for (const fieldDataKey of Object.keys(data)) {
|
|
33548
33368
|
const fieldData = data[fieldDataKey];
|
|
33549
|
-
const requestedField =
|
|
33369
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
33550
33370
|
if (requestedField === undefined) {
|
|
33551
33371
|
continue; // Skip unknown field.
|
|
33552
33372
|
}
|
|
@@ -34049,26 +33869,8 @@ function buildSelectionForNode$U(source, reader, parentNode, selectionNode, vari
|
|
|
34049
33869
|
}
|
|
34050
33870
|
function select$11(field, variables, fragments) {
|
|
34051
33871
|
return (source, reader, parentRecordId) => {
|
|
34052
|
-
var _a;
|
|
34053
33872
|
const sink = {};
|
|
34054
|
-
(
|
|
34055
|
-
const builtSelection = buildSelectionForNode$U(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
34056
|
-
if (builtSelection !== undefined) {
|
|
34057
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
34058
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
34059
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
34060
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
34061
|
-
if (sink[key] === undefined) {
|
|
34062
|
-
sink[key] = builtSelection[key];
|
|
34063
|
-
}
|
|
34064
|
-
});
|
|
34065
|
-
}
|
|
34066
|
-
else {
|
|
34067
|
-
Object.assign(sink, builtSelection);
|
|
34068
|
-
}
|
|
34069
|
-
}
|
|
34070
|
-
});
|
|
34071
|
-
return sink;
|
|
33873
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$U, source, reader, variables, fragments, parentRecordId);
|
|
34072
33874
|
};
|
|
34073
33875
|
}
|
|
34074
33876
|
function getMinimumSelections$G() {
|
|
@@ -34267,26 +34069,8 @@ function buildSelectionForNode$T(source, reader, parentNode, selectionNode, vari
|
|
|
34267
34069
|
}
|
|
34268
34070
|
function select$10(field, variables, fragments) {
|
|
34269
34071
|
return (source, reader, parentRecordId) => {
|
|
34270
|
-
var _a;
|
|
34271
34072
|
const sink = {};
|
|
34272
|
-
(
|
|
34273
|
-
const builtSelection = buildSelectionForNode$T(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
34274
|
-
if (builtSelection !== undefined) {
|
|
34275
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
34276
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
34277
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
34278
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
34279
|
-
if (sink[key] === undefined) {
|
|
34280
|
-
sink[key] = builtSelection[key];
|
|
34281
|
-
}
|
|
34282
|
-
});
|
|
34283
|
-
}
|
|
34284
|
-
else {
|
|
34285
|
-
Object.assign(sink, builtSelection);
|
|
34286
|
-
}
|
|
34287
|
-
}
|
|
34288
|
-
});
|
|
34289
|
-
return sink;
|
|
34073
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$T, source, reader, variables, fragments, parentRecordId);
|
|
34290
34074
|
};
|
|
34291
34075
|
}
|
|
34292
34076
|
function getTypeCacheKeys$10(astNode, state) {
|
|
@@ -34422,26 +34206,8 @@ function buildSelectionForNode$S(source, reader, parentNode, selectionNode, vari
|
|
|
34422
34206
|
}
|
|
34423
34207
|
function select$$(field, variables, fragments) {
|
|
34424
34208
|
return (source, reader, parentRecordId) => {
|
|
34425
|
-
var _a;
|
|
34426
34209
|
const sink = {};
|
|
34427
|
-
(
|
|
34428
|
-
const builtSelection = buildSelectionForNode$S(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
34429
|
-
if (builtSelection !== undefined) {
|
|
34430
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
34431
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
34432
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
34433
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
34434
|
-
if (sink[key] === undefined) {
|
|
34435
|
-
sink[key] = builtSelection[key];
|
|
34436
|
-
}
|
|
34437
|
-
});
|
|
34438
|
-
}
|
|
34439
|
-
else {
|
|
34440
|
-
Object.assign(sink, builtSelection);
|
|
34441
|
-
}
|
|
34442
|
-
}
|
|
34443
|
-
});
|
|
34444
|
-
return sink;
|
|
34210
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$S, source, reader, variables, fragments, parentRecordId);
|
|
34445
34211
|
};
|
|
34446
34212
|
}
|
|
34447
34213
|
function getMinimumSelections$E() {
|
|
@@ -34466,10 +34232,10 @@ function getTypeCacheKeys$$(astNode, state) {
|
|
|
34466
34232
|
representationName: name$R
|
|
34467
34233
|
});
|
|
34468
34234
|
// get all cache keys from normalizable fields
|
|
34469
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$S) :
|
|
34235
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$S) : new Map();
|
|
34470
34236
|
for (const fieldDataKey of Object.keys(data)) {
|
|
34471
34237
|
const fieldData = data[fieldDataKey];
|
|
34472
|
-
const requestedField =
|
|
34238
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
34473
34239
|
if (requestedField === undefined) {
|
|
34474
34240
|
continue; // Skip unknown field.
|
|
34475
34241
|
}
|
|
@@ -34646,26 +34412,8 @@ function buildSelectionForNode$R(source, reader, parentNode, selectionNode, vari
|
|
|
34646
34412
|
}
|
|
34647
34413
|
function select$_(field, variables, fragments) {
|
|
34648
34414
|
return (source, reader, parentRecordId) => {
|
|
34649
|
-
var _a;
|
|
34650
34415
|
const sink = {};
|
|
34651
|
-
(
|
|
34652
|
-
const builtSelection = buildSelectionForNode$R(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
34653
|
-
if (builtSelection !== undefined) {
|
|
34654
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
34655
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
34656
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
34657
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
34658
|
-
if (sink[key] === undefined) {
|
|
34659
|
-
sink[key] = builtSelection[key];
|
|
34660
|
-
}
|
|
34661
|
-
});
|
|
34662
|
-
}
|
|
34663
|
-
else {
|
|
34664
|
-
Object.assign(sink, builtSelection);
|
|
34665
|
-
}
|
|
34666
|
-
}
|
|
34667
|
-
});
|
|
34668
|
-
return sink;
|
|
34416
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$R, source, reader, variables, fragments, parentRecordId);
|
|
34669
34417
|
};
|
|
34670
34418
|
}
|
|
34671
34419
|
function getMinimumSelections$D() {
|
|
@@ -34810,26 +34558,8 @@ function buildSelectionForNode$Q(source, reader, parentNode, selectionNode, vari
|
|
|
34810
34558
|
}
|
|
34811
34559
|
function select$Z(field, variables, fragments) {
|
|
34812
34560
|
return (source, reader, parentRecordId) => {
|
|
34813
|
-
var _a;
|
|
34814
34561
|
const sink = {};
|
|
34815
|
-
(
|
|
34816
|
-
const builtSelection = buildSelectionForNode$Q(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
34817
|
-
if (builtSelection !== undefined) {
|
|
34818
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
34819
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
34820
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
34821
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
34822
|
-
if (sink[key] === undefined) {
|
|
34823
|
-
sink[key] = builtSelection[key];
|
|
34824
|
-
}
|
|
34825
|
-
});
|
|
34826
|
-
}
|
|
34827
|
-
else {
|
|
34828
|
-
Object.assign(sink, builtSelection);
|
|
34829
|
-
}
|
|
34830
|
-
}
|
|
34831
|
-
});
|
|
34832
|
-
return sink;
|
|
34562
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$Q, source, reader, variables, fragments, parentRecordId);
|
|
34833
34563
|
};
|
|
34834
34564
|
}
|
|
34835
34565
|
function getMinimumSelections$C() {
|
|
@@ -35007,26 +34737,8 @@ function buildSelectionForNode$P(source, reader, parentNode, selectionNode, vari
|
|
|
35007
34737
|
}
|
|
35008
34738
|
function select$Y(field, variables, fragments) {
|
|
35009
34739
|
return (source, reader, parentRecordId) => {
|
|
35010
|
-
var _a;
|
|
35011
34740
|
const sink = {};
|
|
35012
|
-
(
|
|
35013
|
-
const builtSelection = buildSelectionForNode$P(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
35014
|
-
if (builtSelection !== undefined) {
|
|
35015
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
35016
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
35017
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
35018
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
35019
|
-
if (sink[key] === undefined) {
|
|
35020
|
-
sink[key] = builtSelection[key];
|
|
35021
|
-
}
|
|
35022
|
-
});
|
|
35023
|
-
}
|
|
35024
|
-
else {
|
|
35025
|
-
Object.assign(sink, builtSelection);
|
|
35026
|
-
}
|
|
35027
|
-
}
|
|
35028
|
-
});
|
|
35029
|
-
return sink;
|
|
34741
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$P, source, reader, variables, fragments, parentRecordId);
|
|
35030
34742
|
};
|
|
35031
34743
|
}
|
|
35032
34744
|
function getMinimumSelections$B() {
|
|
@@ -35051,10 +34763,10 @@ function getTypeCacheKeys$Y(astNode, state) {
|
|
|
35051
34763
|
representationName: name$O
|
|
35052
34764
|
});
|
|
35053
34765
|
// get all cache keys from normalizable fields
|
|
35054
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$P) :
|
|
34766
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$P) : new Map();
|
|
35055
34767
|
for (const fieldDataKey of Object.keys(data)) {
|
|
35056
34768
|
const fieldData = data[fieldDataKey];
|
|
35057
|
-
const requestedField =
|
|
34769
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
35058
34770
|
if (requestedField === undefined) {
|
|
35059
34771
|
continue; // Skip unknown field.
|
|
35060
34772
|
}
|
|
@@ -35415,26 +35127,8 @@ function buildSelectionForNode$O(source, reader, parentNode, selectionNode, vari
|
|
|
35415
35127
|
}
|
|
35416
35128
|
function select$X(field, variables, fragments) {
|
|
35417
35129
|
return (source, reader, parentRecordId) => {
|
|
35418
|
-
var _a;
|
|
35419
35130
|
const sink = {};
|
|
35420
|
-
(
|
|
35421
|
-
const builtSelection = buildSelectionForNode$O(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
35422
|
-
if (builtSelection !== undefined) {
|
|
35423
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
35424
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
35425
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
35426
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
35427
|
-
if (sink[key] === undefined) {
|
|
35428
|
-
sink[key] = builtSelection[key];
|
|
35429
|
-
}
|
|
35430
|
-
});
|
|
35431
|
-
}
|
|
35432
|
-
else {
|
|
35433
|
-
Object.assign(sink, builtSelection);
|
|
35434
|
-
}
|
|
35435
|
-
}
|
|
35436
|
-
});
|
|
35437
|
-
return sink;
|
|
35131
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$O, source, reader, variables, fragments, parentRecordId);
|
|
35438
35132
|
};
|
|
35439
35133
|
}
|
|
35440
35134
|
function getMinimumSelections$A() {
|
|
@@ -35605,26 +35299,8 @@ function buildSelectionForNode$N(source, reader, parentNode, selectionNode, vari
|
|
|
35605
35299
|
}
|
|
35606
35300
|
function select$W(field, variables, fragments) {
|
|
35607
35301
|
return (source, reader, parentRecordId) => {
|
|
35608
|
-
var _a;
|
|
35609
35302
|
const sink = {};
|
|
35610
|
-
(
|
|
35611
|
-
const builtSelection = buildSelectionForNode$N(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
35612
|
-
if (builtSelection !== undefined) {
|
|
35613
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
35614
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
35615
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
35616
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
35617
|
-
if (sink[key] === undefined) {
|
|
35618
|
-
sink[key] = builtSelection[key];
|
|
35619
|
-
}
|
|
35620
|
-
});
|
|
35621
|
-
}
|
|
35622
|
-
else {
|
|
35623
|
-
Object.assign(sink, builtSelection);
|
|
35624
|
-
}
|
|
35625
|
-
}
|
|
35626
|
-
});
|
|
35627
|
-
return sink;
|
|
35303
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$N, source, reader, variables, fragments, parentRecordId);
|
|
35628
35304
|
};
|
|
35629
35305
|
}
|
|
35630
35306
|
function getMinimumSelections$z() {
|
|
@@ -35649,10 +35325,10 @@ function getTypeCacheKeys$W(astNode, state) {
|
|
|
35649
35325
|
representationName: name$M
|
|
35650
35326
|
});
|
|
35651
35327
|
// get all cache keys from normalizable fields
|
|
35652
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$N) :
|
|
35328
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$N) : new Map();
|
|
35653
35329
|
for (const fieldDataKey of Object.keys(data)) {
|
|
35654
35330
|
const fieldData = data[fieldDataKey];
|
|
35655
|
-
const requestedField =
|
|
35331
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
35656
35332
|
if (requestedField === undefined) {
|
|
35657
35333
|
continue; // Skip unknown field.
|
|
35658
35334
|
}
|
|
@@ -36045,26 +35721,8 @@ function buildSelectionForNode$M(source, reader, parentNode, selectionNode, vari
|
|
|
36045
35721
|
}
|
|
36046
35722
|
function select$V(field, variables, fragments) {
|
|
36047
35723
|
return (source, reader, parentRecordId) => {
|
|
36048
|
-
var _a;
|
|
36049
35724
|
const sink = {};
|
|
36050
|
-
(
|
|
36051
|
-
const builtSelection = buildSelectionForNode$M(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
36052
|
-
if (builtSelection !== undefined) {
|
|
36053
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
36054
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
36055
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
36056
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
36057
|
-
if (sink[key] === undefined) {
|
|
36058
|
-
sink[key] = builtSelection[key];
|
|
36059
|
-
}
|
|
36060
|
-
});
|
|
36061
|
-
}
|
|
36062
|
-
else {
|
|
36063
|
-
Object.assign(sink, builtSelection);
|
|
36064
|
-
}
|
|
36065
|
-
}
|
|
36066
|
-
});
|
|
36067
|
-
return sink;
|
|
35725
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$M, source, reader, variables, fragments, parentRecordId);
|
|
36068
35726
|
};
|
|
36069
35727
|
}
|
|
36070
35728
|
function getMinimumSelections$y() {
|
|
@@ -36089,10 +35747,10 @@ function getTypeCacheKeys$V(astNode, state) {
|
|
|
36089
35747
|
representationName: name$L
|
|
36090
35748
|
});
|
|
36091
35749
|
// get all cache keys from normalizable fields
|
|
36092
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$M) :
|
|
35750
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$M) : new Map();
|
|
36093
35751
|
for (const fieldDataKey of Object.keys(data)) {
|
|
36094
35752
|
const fieldData = data[fieldDataKey];
|
|
36095
|
-
const requestedField =
|
|
35753
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
36096
35754
|
if (requestedField === undefined) {
|
|
36097
35755
|
continue; // Skip unknown field.
|
|
36098
35756
|
}
|
|
@@ -36256,26 +35914,8 @@ function buildSelectionForNode$L(source, reader, parentNode, selectionNode, vari
|
|
|
36256
35914
|
}
|
|
36257
35915
|
function select$U(field, variables, fragments) {
|
|
36258
35916
|
return (source, reader, parentRecordId) => {
|
|
36259
|
-
var _a;
|
|
36260
35917
|
const sink = {};
|
|
36261
|
-
(
|
|
36262
|
-
const builtSelection = buildSelectionForNode$L(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
36263
|
-
if (builtSelection !== undefined) {
|
|
36264
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
36265
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
36266
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
36267
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
36268
|
-
if (sink[key] === undefined) {
|
|
36269
|
-
sink[key] = builtSelection[key];
|
|
36270
|
-
}
|
|
36271
|
-
});
|
|
36272
|
-
}
|
|
36273
|
-
else {
|
|
36274
|
-
Object.assign(sink, builtSelection);
|
|
36275
|
-
}
|
|
36276
|
-
}
|
|
36277
|
-
});
|
|
36278
|
-
return sink;
|
|
35918
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$L, source, reader, variables, fragments, parentRecordId);
|
|
36279
35919
|
};
|
|
36280
35920
|
}
|
|
36281
35921
|
function getTypeCacheKeys$U(astNode, state) {
|
|
@@ -36412,26 +36052,8 @@ function buildSelectionForNode$K(source, reader, parentNode, selectionNode, vari
|
|
|
36412
36052
|
}
|
|
36413
36053
|
function select$T(field, variables, fragments) {
|
|
36414
36054
|
return (source, reader, parentRecordId) => {
|
|
36415
|
-
var _a;
|
|
36416
36055
|
const sink = {};
|
|
36417
|
-
(
|
|
36418
|
-
const builtSelection = buildSelectionForNode$K(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
36419
|
-
if (builtSelection !== undefined) {
|
|
36420
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
36421
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
36422
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
36423
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
36424
|
-
if (sink[key] === undefined) {
|
|
36425
|
-
sink[key] = builtSelection[key];
|
|
36426
|
-
}
|
|
36427
|
-
});
|
|
36428
|
-
}
|
|
36429
|
-
else {
|
|
36430
|
-
Object.assign(sink, builtSelection);
|
|
36431
|
-
}
|
|
36432
|
-
}
|
|
36433
|
-
});
|
|
36434
|
-
return sink;
|
|
36056
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$K, source, reader, variables, fragments, parentRecordId);
|
|
36435
36057
|
};
|
|
36436
36058
|
}
|
|
36437
36059
|
function getTypeCacheKeys$T(astNode, state) {
|
|
@@ -36580,26 +36202,8 @@ function buildSelectionForNode$J(source, reader, parentNode, selectionNode, vari
|
|
|
36580
36202
|
}
|
|
36581
36203
|
function select$S(field, variables, fragments) {
|
|
36582
36204
|
return (source, reader, parentRecordId) => {
|
|
36583
|
-
var _a;
|
|
36584
36205
|
const sink = {};
|
|
36585
|
-
(
|
|
36586
|
-
const builtSelection = buildSelectionForNode$J(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
36587
|
-
if (builtSelection !== undefined) {
|
|
36588
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
36589
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
36590
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
36591
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
36592
|
-
if (sink[key] === undefined) {
|
|
36593
|
-
sink[key] = builtSelection[key];
|
|
36594
|
-
}
|
|
36595
|
-
});
|
|
36596
|
-
}
|
|
36597
|
-
else {
|
|
36598
|
-
Object.assign(sink, builtSelection);
|
|
36599
|
-
}
|
|
36600
|
-
}
|
|
36601
|
-
});
|
|
36602
|
-
return sink;
|
|
36206
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$J, source, reader, variables, fragments, parentRecordId);
|
|
36603
36207
|
};
|
|
36604
36208
|
}
|
|
36605
36209
|
function getMinimumSelections$x() {
|
|
@@ -36624,10 +36228,10 @@ function getTypeCacheKeys$S(astNode, state) {
|
|
|
36624
36228
|
representationName: name$I
|
|
36625
36229
|
});
|
|
36626
36230
|
// get all cache keys from normalizable fields
|
|
36627
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$J) :
|
|
36231
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$J) : new Map();
|
|
36628
36232
|
for (const fieldDataKey of Object.keys(data)) {
|
|
36629
36233
|
const fieldData = data[fieldDataKey];
|
|
36630
|
-
const requestedField =
|
|
36234
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
36631
36235
|
if (requestedField === undefined) {
|
|
36632
36236
|
continue; // Skip unknown field.
|
|
36633
36237
|
}
|
|
@@ -36941,26 +36545,8 @@ function buildSelectionForNode$I(source, reader, parentNode, selectionNode, vari
|
|
|
36941
36545
|
}
|
|
36942
36546
|
function select$R(field, variables, fragments) {
|
|
36943
36547
|
return (source, reader, parentRecordId) => {
|
|
36944
|
-
var _a;
|
|
36945
36548
|
const sink = {};
|
|
36946
|
-
(
|
|
36947
|
-
const builtSelection = buildSelectionForNode$I(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
36948
|
-
if (builtSelection !== undefined) {
|
|
36949
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
36950
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
36951
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
36952
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
36953
|
-
if (sink[key] === undefined) {
|
|
36954
|
-
sink[key] = builtSelection[key];
|
|
36955
|
-
}
|
|
36956
|
-
});
|
|
36957
|
-
}
|
|
36958
|
-
else {
|
|
36959
|
-
Object.assign(sink, builtSelection);
|
|
36960
|
-
}
|
|
36961
|
-
}
|
|
36962
|
-
});
|
|
36963
|
-
return sink;
|
|
36549
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$I, source, reader, variables, fragments, parentRecordId);
|
|
36964
36550
|
};
|
|
36965
36551
|
}
|
|
36966
36552
|
function getTypeCacheKeys$R(astNode, state) {
|
|
@@ -37109,26 +36695,8 @@ function buildSelectionForNode$H(source, reader, parentNode, selectionNode, vari
|
|
|
37109
36695
|
}
|
|
37110
36696
|
function select$Q(field, variables, fragments) {
|
|
37111
36697
|
return (source, reader, parentRecordId) => {
|
|
37112
|
-
var _a;
|
|
37113
36698
|
const sink = {};
|
|
37114
|
-
(
|
|
37115
|
-
const builtSelection = buildSelectionForNode$H(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
37116
|
-
if (builtSelection !== undefined) {
|
|
37117
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
37118
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
37119
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
37120
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
37121
|
-
if (sink[key] === undefined) {
|
|
37122
|
-
sink[key] = builtSelection[key];
|
|
37123
|
-
}
|
|
37124
|
-
});
|
|
37125
|
-
}
|
|
37126
|
-
else {
|
|
37127
|
-
Object.assign(sink, builtSelection);
|
|
37128
|
-
}
|
|
37129
|
-
}
|
|
37130
|
-
});
|
|
37131
|
-
return sink;
|
|
36699
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$H, source, reader, variables, fragments, parentRecordId);
|
|
37132
36700
|
};
|
|
37133
36701
|
}
|
|
37134
36702
|
function getMinimumSelections$w() {
|
|
@@ -37153,10 +36721,10 @@ function getTypeCacheKeys$Q(astNode, state) {
|
|
|
37153
36721
|
representationName: name$G
|
|
37154
36722
|
});
|
|
37155
36723
|
// get all cache keys from normalizable fields
|
|
37156
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$H) :
|
|
36724
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$H) : new Map();
|
|
37157
36725
|
for (const fieldDataKey of Object.keys(data)) {
|
|
37158
36726
|
const fieldData = data[fieldDataKey];
|
|
37159
|
-
const requestedField =
|
|
36727
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
37160
36728
|
if (requestedField === undefined) {
|
|
37161
36729
|
continue; // Skip unknown field.
|
|
37162
36730
|
}
|
|
@@ -37426,26 +36994,8 @@ function buildSelectionForNode$G(source, reader, parentNode, selectionNode, vari
|
|
|
37426
36994
|
}
|
|
37427
36995
|
function select$P(field, variables, fragments) {
|
|
37428
36996
|
return (source, reader, parentRecordId) => {
|
|
37429
|
-
var _a;
|
|
37430
36997
|
const sink = {};
|
|
37431
|
-
(
|
|
37432
|
-
const builtSelection = buildSelectionForNode$G(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
37433
|
-
if (builtSelection !== undefined) {
|
|
37434
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
37435
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
37436
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
37437
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
37438
|
-
if (sink[key] === undefined) {
|
|
37439
|
-
sink[key] = builtSelection[key];
|
|
37440
|
-
}
|
|
37441
|
-
});
|
|
37442
|
-
}
|
|
37443
|
-
else {
|
|
37444
|
-
Object.assign(sink, builtSelection);
|
|
37445
|
-
}
|
|
37446
|
-
}
|
|
37447
|
-
});
|
|
37448
|
-
return sink;
|
|
36998
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$G, source, reader, variables, fragments, parentRecordId);
|
|
37449
36999
|
};
|
|
37450
37000
|
}
|
|
37451
37001
|
function getTypeCacheKeys$P(astNode, state) {
|
|
@@ -37588,26 +37138,8 @@ function buildSelectionForNode$F(source, reader, parentNode, selectionNode, vari
|
|
|
37588
37138
|
}
|
|
37589
37139
|
function select$O(field, variables, fragments) {
|
|
37590
37140
|
return (source, reader, parentRecordId) => {
|
|
37591
|
-
var _a;
|
|
37592
37141
|
const sink = {};
|
|
37593
|
-
(
|
|
37594
|
-
const builtSelection = buildSelectionForNode$F(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
37595
|
-
if (builtSelection !== undefined) {
|
|
37596
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
37597
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
37598
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
37599
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
37600
|
-
if (sink[key] === undefined) {
|
|
37601
|
-
sink[key] = builtSelection[key];
|
|
37602
|
-
}
|
|
37603
|
-
});
|
|
37604
|
-
}
|
|
37605
|
-
else {
|
|
37606
|
-
Object.assign(sink, builtSelection);
|
|
37607
|
-
}
|
|
37608
|
-
}
|
|
37609
|
-
});
|
|
37610
|
-
return sink;
|
|
37142
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$F, source, reader, variables, fragments, parentRecordId);
|
|
37611
37143
|
};
|
|
37612
37144
|
}
|
|
37613
37145
|
function getTypeCacheKeys$O(astNode, state) {
|
|
@@ -37762,26 +37294,8 @@ function buildSelectionForNode$E(source, reader, parentNode, selectionNode, vari
|
|
|
37762
37294
|
}
|
|
37763
37295
|
function select$N(field, variables, fragments) {
|
|
37764
37296
|
return (source, reader, parentRecordId) => {
|
|
37765
|
-
var _a;
|
|
37766
37297
|
const sink = {};
|
|
37767
|
-
(
|
|
37768
|
-
const builtSelection = buildSelectionForNode$E(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
37769
|
-
if (builtSelection !== undefined) {
|
|
37770
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
37771
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
37772
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
37773
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
37774
|
-
if (sink[key] === undefined) {
|
|
37775
|
-
sink[key] = builtSelection[key];
|
|
37776
|
-
}
|
|
37777
|
-
});
|
|
37778
|
-
}
|
|
37779
|
-
else {
|
|
37780
|
-
Object.assign(sink, builtSelection);
|
|
37781
|
-
}
|
|
37782
|
-
}
|
|
37783
|
-
});
|
|
37784
|
-
return sink;
|
|
37298
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$E, source, reader, variables, fragments, parentRecordId);
|
|
37785
37299
|
};
|
|
37786
37300
|
}
|
|
37787
37301
|
function getMinimumSelections$v() {
|
|
@@ -37806,10 +37320,10 @@ function getTypeCacheKeys$N(astNode, state) {
|
|
|
37806
37320
|
representationName: name$D
|
|
37807
37321
|
});
|
|
37808
37322
|
// get all cache keys from normalizable fields
|
|
37809
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$E) :
|
|
37323
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$E) : new Map();
|
|
37810
37324
|
for (const fieldDataKey of Object.keys(data)) {
|
|
37811
37325
|
const fieldData = data[fieldDataKey];
|
|
37812
|
-
const requestedField =
|
|
37326
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
37813
37327
|
if (requestedField === undefined) {
|
|
37814
37328
|
continue; // Skip unknown field.
|
|
37815
37329
|
}
|
|
@@ -38104,26 +37618,8 @@ function buildSelectionForNode$D(source, reader, parentNode, selectionNode, vari
|
|
|
38104
37618
|
}
|
|
38105
37619
|
function select$M(field, variables, fragments) {
|
|
38106
37620
|
return (source, reader, parentRecordId) => {
|
|
38107
|
-
var _a;
|
|
38108
37621
|
const sink = {};
|
|
38109
|
-
(
|
|
38110
|
-
const builtSelection = buildSelectionForNode$D(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
38111
|
-
if (builtSelection !== undefined) {
|
|
38112
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
38113
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
38114
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
38115
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
38116
|
-
if (sink[key] === undefined) {
|
|
38117
|
-
sink[key] = builtSelection[key];
|
|
38118
|
-
}
|
|
38119
|
-
});
|
|
38120
|
-
}
|
|
38121
|
-
else {
|
|
38122
|
-
Object.assign(sink, builtSelection);
|
|
38123
|
-
}
|
|
38124
|
-
}
|
|
38125
|
-
});
|
|
38126
|
-
return sink;
|
|
37622
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$D, source, reader, variables, fragments, parentRecordId);
|
|
38127
37623
|
};
|
|
38128
37624
|
}
|
|
38129
37625
|
function getTypeCacheKeys$M(astNode, state) {
|
|
@@ -38414,26 +37910,8 @@ function buildSelectionForNode$C(source, reader, parentNode, selectionNode, vari
|
|
|
38414
37910
|
}
|
|
38415
37911
|
function select$L(field, variables, fragments) {
|
|
38416
37912
|
return (source, reader, parentRecordId) => {
|
|
38417
|
-
var _a;
|
|
38418
37913
|
const sink = {};
|
|
38419
|
-
(
|
|
38420
|
-
const builtSelection = buildSelectionForNode$C(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
38421
|
-
if (builtSelection !== undefined) {
|
|
38422
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
38423
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
38424
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
38425
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
38426
|
-
if (sink[key] === undefined) {
|
|
38427
|
-
sink[key] = builtSelection[key];
|
|
38428
|
-
}
|
|
38429
|
-
});
|
|
38430
|
-
}
|
|
38431
|
-
else {
|
|
38432
|
-
Object.assign(sink, builtSelection);
|
|
38433
|
-
}
|
|
38434
|
-
}
|
|
38435
|
-
});
|
|
38436
|
-
return sink;
|
|
37914
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$C, source, reader, variables, fragments, parentRecordId);
|
|
38437
37915
|
};
|
|
38438
37916
|
}
|
|
38439
37917
|
function getTypeCacheKeys$L(astNode, state) {
|
|
@@ -38582,26 +38060,8 @@ function buildSelectionForNode$B(source, reader, parentNode, selectionNode, vari
|
|
|
38582
38060
|
}
|
|
38583
38061
|
function select$K(field, variables, fragments) {
|
|
38584
38062
|
return (source, reader, parentRecordId) => {
|
|
38585
|
-
var _a;
|
|
38586
38063
|
const sink = {};
|
|
38587
|
-
(
|
|
38588
|
-
const builtSelection = buildSelectionForNode$B(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
38589
|
-
if (builtSelection !== undefined) {
|
|
38590
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
38591
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
38592
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
38593
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
38594
|
-
if (sink[key] === undefined) {
|
|
38595
|
-
sink[key] = builtSelection[key];
|
|
38596
|
-
}
|
|
38597
|
-
});
|
|
38598
|
-
}
|
|
38599
|
-
else {
|
|
38600
|
-
Object.assign(sink, builtSelection);
|
|
38601
|
-
}
|
|
38602
|
-
}
|
|
38603
|
-
});
|
|
38604
|
-
return sink;
|
|
38064
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$B, source, reader, variables, fragments, parentRecordId);
|
|
38605
38065
|
};
|
|
38606
38066
|
}
|
|
38607
38067
|
function getMinimumSelections$t() {
|
|
@@ -38626,10 +38086,10 @@ function getTypeCacheKeys$K(astNode, state) {
|
|
|
38626
38086
|
representationName: name$A
|
|
38627
38087
|
});
|
|
38628
38088
|
// get all cache keys from normalizable fields
|
|
38629
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$B) :
|
|
38089
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$B) : new Map();
|
|
38630
38090
|
for (const fieldDataKey of Object.keys(data)) {
|
|
38631
38091
|
const fieldData = data[fieldDataKey];
|
|
38632
|
-
const requestedField =
|
|
38092
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
38633
38093
|
if (requestedField === undefined) {
|
|
38634
38094
|
continue; // Skip unknown field.
|
|
38635
38095
|
}
|
|
@@ -38899,26 +38359,8 @@ function buildSelectionForNode$A(source, reader, parentNode, selectionNode, vari
|
|
|
38899
38359
|
}
|
|
38900
38360
|
function select$J(field, variables, fragments) {
|
|
38901
38361
|
return (source, reader, parentRecordId) => {
|
|
38902
|
-
var _a;
|
|
38903
38362
|
const sink = {};
|
|
38904
|
-
(
|
|
38905
|
-
const builtSelection = buildSelectionForNode$A(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
38906
|
-
if (builtSelection !== undefined) {
|
|
38907
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
38908
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
38909
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
38910
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
38911
|
-
if (sink[key] === undefined) {
|
|
38912
|
-
sink[key] = builtSelection[key];
|
|
38913
|
-
}
|
|
38914
|
-
});
|
|
38915
|
-
}
|
|
38916
|
-
else {
|
|
38917
|
-
Object.assign(sink, builtSelection);
|
|
38918
|
-
}
|
|
38919
|
-
}
|
|
38920
|
-
});
|
|
38921
|
-
return sink;
|
|
38363
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$A, source, reader, variables, fragments, parentRecordId);
|
|
38922
38364
|
};
|
|
38923
38365
|
}
|
|
38924
38366
|
function getTypeCacheKeys$J(astNode, state) {
|
|
@@ -39055,26 +38497,8 @@ function buildSelectionForNode$z(source, reader, parentNode, selectionNode, vari
|
|
|
39055
38497
|
}
|
|
39056
38498
|
function select$I(field, variables, fragments) {
|
|
39057
38499
|
return (source, reader, parentRecordId) => {
|
|
39058
|
-
var _a;
|
|
39059
38500
|
const sink = {};
|
|
39060
|
-
(
|
|
39061
|
-
const builtSelection = buildSelectionForNode$z(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
39062
|
-
if (builtSelection !== undefined) {
|
|
39063
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
39064
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
39065
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
39066
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
39067
|
-
if (sink[key] === undefined) {
|
|
39068
|
-
sink[key] = builtSelection[key];
|
|
39069
|
-
}
|
|
39070
|
-
});
|
|
39071
|
-
}
|
|
39072
|
-
else {
|
|
39073
|
-
Object.assign(sink, builtSelection);
|
|
39074
|
-
}
|
|
39075
|
-
}
|
|
39076
|
-
});
|
|
39077
|
-
return sink;
|
|
38501
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$z, source, reader, variables, fragments, parentRecordId);
|
|
39078
38502
|
};
|
|
39079
38503
|
}
|
|
39080
38504
|
function getTypeCacheKeys$I(astNode, state) {
|
|
@@ -39221,26 +38645,8 @@ function buildSelectionForNode$y(source, reader, parentNode, selectionNode, vari
|
|
|
39221
38645
|
}
|
|
39222
38646
|
function select$H(field, variables, fragments) {
|
|
39223
38647
|
return (source, reader, parentRecordId) => {
|
|
39224
|
-
var _a;
|
|
39225
38648
|
const sink = {};
|
|
39226
|
-
(
|
|
39227
|
-
const builtSelection = buildSelectionForNode$y(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
39228
|
-
if (builtSelection !== undefined) {
|
|
39229
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
39230
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
39231
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
39232
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
39233
|
-
if (sink[key] === undefined) {
|
|
39234
|
-
sink[key] = builtSelection[key];
|
|
39235
|
-
}
|
|
39236
|
-
});
|
|
39237
|
-
}
|
|
39238
|
-
else {
|
|
39239
|
-
Object.assign(sink, builtSelection);
|
|
39240
|
-
}
|
|
39241
|
-
}
|
|
39242
|
-
});
|
|
39243
|
-
return sink;
|
|
38649
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$y, source, reader, variables, fragments, parentRecordId);
|
|
39244
38650
|
};
|
|
39245
38651
|
}
|
|
39246
38652
|
function getMinimumSelections$s() {
|
|
@@ -39265,10 +38671,10 @@ function getTypeCacheKeys$H(astNode, state) {
|
|
|
39265
38671
|
representationName: name$x
|
|
39266
38672
|
});
|
|
39267
38673
|
// get all cache keys from normalizable fields
|
|
39268
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$y) :
|
|
38674
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$y) : new Map();
|
|
39269
38675
|
for (const fieldDataKey of Object.keys(data)) {
|
|
39270
38676
|
const fieldData = data[fieldDataKey];
|
|
39271
|
-
const requestedField =
|
|
38677
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
39272
38678
|
if (requestedField === undefined) {
|
|
39273
38679
|
continue; // Skip unknown field.
|
|
39274
38680
|
}
|
|
@@ -39442,26 +38848,8 @@ function buildSelectionForNode$x(source, reader, parentNode, selectionNode, vari
|
|
|
39442
38848
|
}
|
|
39443
38849
|
function select$G(field, variables, fragments) {
|
|
39444
38850
|
return (source, reader, parentRecordId) => {
|
|
39445
|
-
var _a;
|
|
39446
38851
|
const sink = {};
|
|
39447
|
-
(
|
|
39448
|
-
const builtSelection = buildSelectionForNode$x(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
39449
|
-
if (builtSelection !== undefined) {
|
|
39450
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
39451
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
39452
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
39453
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
39454
|
-
if (sink[key] === undefined) {
|
|
39455
|
-
sink[key] = builtSelection[key];
|
|
39456
|
-
}
|
|
39457
|
-
});
|
|
39458
|
-
}
|
|
39459
|
-
else {
|
|
39460
|
-
Object.assign(sink, builtSelection);
|
|
39461
|
-
}
|
|
39462
|
-
}
|
|
39463
|
-
});
|
|
39464
|
-
return sink;
|
|
38852
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$x, source, reader, variables, fragments, parentRecordId);
|
|
39465
38853
|
};
|
|
39466
38854
|
}
|
|
39467
38855
|
function getTypeCacheKeys$G(astNode, state) {
|
|
@@ -39610,26 +38998,8 @@ function buildSelectionForNode$w(source, reader, parentNode, selectionNode, vari
|
|
|
39610
38998
|
}
|
|
39611
38999
|
function select$F(field, variables, fragments) {
|
|
39612
39000
|
return (source, reader, parentRecordId) => {
|
|
39613
|
-
var _a;
|
|
39614
39001
|
const sink = {};
|
|
39615
|
-
(
|
|
39616
|
-
const builtSelection = buildSelectionForNode$w(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
39617
|
-
if (builtSelection !== undefined) {
|
|
39618
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
39619
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
39620
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
39621
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
39622
|
-
if (sink[key] === undefined) {
|
|
39623
|
-
sink[key] = builtSelection[key];
|
|
39624
|
-
}
|
|
39625
|
-
});
|
|
39626
|
-
}
|
|
39627
|
-
else {
|
|
39628
|
-
Object.assign(sink, builtSelection);
|
|
39629
|
-
}
|
|
39630
|
-
}
|
|
39631
|
-
});
|
|
39632
|
-
return sink;
|
|
39002
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$w, source, reader, variables, fragments, parentRecordId);
|
|
39633
39003
|
};
|
|
39634
39004
|
}
|
|
39635
39005
|
function getMinimumSelections$r() {
|
|
@@ -39654,10 +39024,10 @@ function getTypeCacheKeys$F(astNode, state) {
|
|
|
39654
39024
|
representationName: name$v
|
|
39655
39025
|
});
|
|
39656
39026
|
// get all cache keys from normalizable fields
|
|
39657
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$w) :
|
|
39027
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$w) : new Map();
|
|
39658
39028
|
for (const fieldDataKey of Object.keys(data)) {
|
|
39659
39029
|
const fieldData = data[fieldDataKey];
|
|
39660
|
-
const requestedField =
|
|
39030
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
39661
39031
|
if (requestedField === undefined) {
|
|
39662
39032
|
continue; // Skip unknown field.
|
|
39663
39033
|
}
|
|
@@ -39943,29 +39313,11 @@ function buildSelectionForField$v(source, reader, sel, variables, fragments, par
|
|
|
39943
39313
|
}
|
|
39944
39314
|
function buildSelectionForNode$v(source, reader, parentNode, selectionNode, variables, fragments, parentRecordId) {
|
|
39945
39315
|
return buildSelectionForNode$7(source, reader, parentNode, selectionNode, variables, fragments, isFragmentApplicable$v, buildSelectionForField$v, parentRecordId);
|
|
39946
|
-
}
|
|
39947
|
-
function select$E(field, variables, fragments) {
|
|
39948
|
-
return (source, reader, parentRecordId) => {
|
|
39949
|
-
|
|
39950
|
-
|
|
39951
|
-
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
39952
|
-
const builtSelection = buildSelectionForNode$v(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
39953
|
-
if (builtSelection !== undefined) {
|
|
39954
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
39955
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
39956
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
39957
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
39958
|
-
if (sink[key] === undefined) {
|
|
39959
|
-
sink[key] = builtSelection[key];
|
|
39960
|
-
}
|
|
39961
|
-
});
|
|
39962
|
-
}
|
|
39963
|
-
else {
|
|
39964
|
-
Object.assign(sink, builtSelection);
|
|
39965
|
-
}
|
|
39966
|
-
}
|
|
39967
|
-
});
|
|
39968
|
-
return sink;
|
|
39316
|
+
}
|
|
39317
|
+
function select$E(field, variables, fragments) {
|
|
39318
|
+
return (source, reader, parentRecordId) => {
|
|
39319
|
+
const sink = {};
|
|
39320
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$v, source, reader, variables, fragments, parentRecordId);
|
|
39969
39321
|
};
|
|
39970
39322
|
}
|
|
39971
39323
|
function getTypeCacheKeys$E(astNode, state) {
|
|
@@ -40114,26 +39466,8 @@ function buildSelectionForNode$u(source, reader, parentNode, selectionNode, vari
|
|
|
40114
39466
|
}
|
|
40115
39467
|
function select$D(field, variables, fragments) {
|
|
40116
39468
|
return (source, reader, parentRecordId) => {
|
|
40117
|
-
var _a;
|
|
40118
39469
|
const sink = {};
|
|
40119
|
-
(
|
|
40120
|
-
const builtSelection = buildSelectionForNode$u(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
40121
|
-
if (builtSelection !== undefined) {
|
|
40122
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
40123
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
40124
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
40125
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
40126
|
-
if (sink[key] === undefined) {
|
|
40127
|
-
sink[key] = builtSelection[key];
|
|
40128
|
-
}
|
|
40129
|
-
});
|
|
40130
|
-
}
|
|
40131
|
-
else {
|
|
40132
|
-
Object.assign(sink, builtSelection);
|
|
40133
|
-
}
|
|
40134
|
-
}
|
|
40135
|
-
});
|
|
40136
|
-
return sink;
|
|
39470
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$u, source, reader, variables, fragments, parentRecordId);
|
|
40137
39471
|
};
|
|
40138
39472
|
}
|
|
40139
39473
|
function getMinimumSelections$q() {
|
|
@@ -40158,10 +39492,10 @@ function getTypeCacheKeys$D(astNode, state) {
|
|
|
40158
39492
|
representationName: name$t
|
|
40159
39493
|
});
|
|
40160
39494
|
// get all cache keys from normalizable fields
|
|
40161
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$u) :
|
|
39495
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$u) : new Map();
|
|
40162
39496
|
for (const fieldDataKey of Object.keys(data)) {
|
|
40163
39497
|
const fieldData = data[fieldDataKey];
|
|
40164
|
-
const requestedField =
|
|
39498
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
40165
39499
|
if (requestedField === undefined) {
|
|
40166
39500
|
continue; // Skip unknown field.
|
|
40167
39501
|
}
|
|
@@ -40458,26 +39792,8 @@ function buildSelectionForNode$t(source, reader, parentNode, selectionNode, vari
|
|
|
40458
39792
|
}
|
|
40459
39793
|
function select$C(field, variables, fragments) {
|
|
40460
39794
|
return (source, reader, parentRecordId) => {
|
|
40461
|
-
var _a;
|
|
40462
39795
|
const sink = {};
|
|
40463
|
-
(
|
|
40464
|
-
const builtSelection = buildSelectionForNode$t(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
40465
|
-
if (builtSelection !== undefined) {
|
|
40466
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
40467
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
40468
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
40469
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
40470
|
-
if (sink[key] === undefined) {
|
|
40471
|
-
sink[key] = builtSelection[key];
|
|
40472
|
-
}
|
|
40473
|
-
});
|
|
40474
|
-
}
|
|
40475
|
-
else {
|
|
40476
|
-
Object.assign(sink, builtSelection);
|
|
40477
|
-
}
|
|
40478
|
-
}
|
|
40479
|
-
});
|
|
40480
|
-
return sink;
|
|
39796
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$t, source, reader, variables, fragments, parentRecordId);
|
|
40481
39797
|
};
|
|
40482
39798
|
}
|
|
40483
39799
|
function getMinimumSelections$p() {
|
|
@@ -40502,10 +39818,10 @@ function getTypeCacheKeys$C(astNode, state) {
|
|
|
40502
39818
|
representationName: name$s
|
|
40503
39819
|
});
|
|
40504
39820
|
// get all cache keys from normalizable fields
|
|
40505
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$t) :
|
|
39821
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$t) : new Map();
|
|
40506
39822
|
for (const fieldDataKey of Object.keys(data)) {
|
|
40507
39823
|
const fieldData = data[fieldDataKey];
|
|
40508
|
-
const requestedField =
|
|
39824
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
40509
39825
|
if (requestedField === undefined) {
|
|
40510
39826
|
continue; // Skip unknown field.
|
|
40511
39827
|
}
|
|
@@ -40787,26 +40103,8 @@ function buildSelectionForNode$s(source, reader, parentNode, selectionNode, vari
|
|
|
40787
40103
|
}
|
|
40788
40104
|
function select$B(field, variables, fragments) {
|
|
40789
40105
|
return (source, reader, parentRecordId) => {
|
|
40790
|
-
var _a;
|
|
40791
40106
|
const sink = {};
|
|
40792
|
-
(
|
|
40793
|
-
const builtSelection = buildSelectionForNode$s(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
40794
|
-
if (builtSelection !== undefined) {
|
|
40795
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
40796
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
40797
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
40798
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
40799
|
-
if (sink[key] === undefined) {
|
|
40800
|
-
sink[key] = builtSelection[key];
|
|
40801
|
-
}
|
|
40802
|
-
});
|
|
40803
|
-
}
|
|
40804
|
-
else {
|
|
40805
|
-
Object.assign(sink, builtSelection);
|
|
40806
|
-
}
|
|
40807
|
-
}
|
|
40808
|
-
});
|
|
40809
|
-
return sink;
|
|
40107
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$s, source, reader, variables, fragments, parentRecordId);
|
|
40810
40108
|
};
|
|
40811
40109
|
}
|
|
40812
40110
|
function getTypeCacheKeys$B(astNode, state) {
|
|
@@ -40955,26 +40253,8 @@ function buildSelectionForNode$r(source, reader, parentNode, selectionNode, vari
|
|
|
40955
40253
|
}
|
|
40956
40254
|
function select$A(field, variables, fragments) {
|
|
40957
40255
|
return (source, reader, parentRecordId) => {
|
|
40958
|
-
var _a;
|
|
40959
40256
|
const sink = {};
|
|
40960
|
-
(
|
|
40961
|
-
const builtSelection = buildSelectionForNode$r(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
40962
|
-
if (builtSelection !== undefined) {
|
|
40963
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
40964
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
40965
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
40966
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
40967
|
-
if (sink[key] === undefined) {
|
|
40968
|
-
sink[key] = builtSelection[key];
|
|
40969
|
-
}
|
|
40970
|
-
});
|
|
40971
|
-
}
|
|
40972
|
-
else {
|
|
40973
|
-
Object.assign(sink, builtSelection);
|
|
40974
|
-
}
|
|
40975
|
-
}
|
|
40976
|
-
});
|
|
40977
|
-
return sink;
|
|
40257
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$r, source, reader, variables, fragments, parentRecordId);
|
|
40978
40258
|
};
|
|
40979
40259
|
}
|
|
40980
40260
|
function getMinimumSelections$o() {
|
|
@@ -40999,10 +40279,10 @@ function getTypeCacheKeys$A(astNode, state) {
|
|
|
40999
40279
|
representationName: name$q
|
|
41000
40280
|
});
|
|
41001
40281
|
// get all cache keys from normalizable fields
|
|
41002
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$r) :
|
|
40282
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$r) : new Map();
|
|
41003
40283
|
for (const fieldDataKey of Object.keys(data)) {
|
|
41004
40284
|
const fieldData = data[fieldDataKey];
|
|
41005
|
-
const requestedField =
|
|
40285
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
41006
40286
|
if (requestedField === undefined) {
|
|
41007
40287
|
continue; // Skip unknown field.
|
|
41008
40288
|
}
|
|
@@ -41284,26 +40564,8 @@ function buildSelectionForNode$q(source, reader, parentNode, selectionNode, vari
|
|
|
41284
40564
|
}
|
|
41285
40565
|
function select$z(field, variables, fragments) {
|
|
41286
40566
|
return (source, reader, parentRecordId) => {
|
|
41287
|
-
var _a;
|
|
41288
40567
|
const sink = {};
|
|
41289
|
-
(
|
|
41290
|
-
const builtSelection = buildSelectionForNode$q(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
41291
|
-
if (builtSelection !== undefined) {
|
|
41292
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
41293
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
41294
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
41295
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
41296
|
-
if (sink[key] === undefined) {
|
|
41297
|
-
sink[key] = builtSelection[key];
|
|
41298
|
-
}
|
|
41299
|
-
});
|
|
41300
|
-
}
|
|
41301
|
-
else {
|
|
41302
|
-
Object.assign(sink, builtSelection);
|
|
41303
|
-
}
|
|
41304
|
-
}
|
|
41305
|
-
});
|
|
41306
|
-
return sink;
|
|
40568
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$q, source, reader, variables, fragments, parentRecordId);
|
|
41307
40569
|
};
|
|
41308
40570
|
}
|
|
41309
40571
|
function getMinimumSelections$n() {
|
|
@@ -41328,10 +40590,10 @@ function getTypeCacheKeys$z(astNode, state) {
|
|
|
41328
40590
|
representationName: name$p
|
|
41329
40591
|
});
|
|
41330
40592
|
// get all cache keys from normalizable fields
|
|
41331
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$q) :
|
|
40593
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$q) : new Map();
|
|
41332
40594
|
for (const fieldDataKey of Object.keys(data)) {
|
|
41333
40595
|
const fieldData = data[fieldDataKey];
|
|
41334
|
-
const requestedField =
|
|
40596
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
41335
40597
|
if (requestedField === undefined) {
|
|
41336
40598
|
continue; // Skip unknown field.
|
|
41337
40599
|
}
|
|
@@ -41613,26 +40875,8 @@ function buildSelectionForNode$p(source, reader, parentNode, selectionNode, vari
|
|
|
41613
40875
|
}
|
|
41614
40876
|
function select$y(field, variables, fragments) {
|
|
41615
40877
|
return (source, reader, parentRecordId) => {
|
|
41616
|
-
var _a;
|
|
41617
40878
|
const sink = {};
|
|
41618
|
-
(
|
|
41619
|
-
const builtSelection = buildSelectionForNode$p(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
41620
|
-
if (builtSelection !== undefined) {
|
|
41621
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
41622
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
41623
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
41624
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
41625
|
-
if (sink[key] === undefined) {
|
|
41626
|
-
sink[key] = builtSelection[key];
|
|
41627
|
-
}
|
|
41628
|
-
});
|
|
41629
|
-
}
|
|
41630
|
-
else {
|
|
41631
|
-
Object.assign(sink, builtSelection);
|
|
41632
|
-
}
|
|
41633
|
-
}
|
|
41634
|
-
});
|
|
41635
|
-
return sink;
|
|
40879
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$p, source, reader, variables, fragments, parentRecordId);
|
|
41636
40880
|
};
|
|
41637
40881
|
}
|
|
41638
40882
|
function getMinimumSelections$m() {
|
|
@@ -41657,10 +40901,10 @@ function getTypeCacheKeys$y(astNode, state) {
|
|
|
41657
40901
|
representationName: name$o
|
|
41658
40902
|
});
|
|
41659
40903
|
// get all cache keys from normalizable fields
|
|
41660
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$p) :
|
|
40904
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$p) : new Map();
|
|
41661
40905
|
for (const fieldDataKey of Object.keys(data)) {
|
|
41662
40906
|
const fieldData = data[fieldDataKey];
|
|
41663
|
-
const requestedField =
|
|
40907
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
41664
40908
|
if (requestedField === undefined) {
|
|
41665
40909
|
continue; // Skip unknown field.
|
|
41666
40910
|
}
|
|
@@ -41930,26 +41174,8 @@ function buildSelectionForNode$o(source, reader, parentNode, selectionNode, vari
|
|
|
41930
41174
|
}
|
|
41931
41175
|
function select$x(field, variables, fragments) {
|
|
41932
41176
|
return (source, reader, parentRecordId) => {
|
|
41933
|
-
var _a;
|
|
41934
41177
|
const sink = {};
|
|
41935
|
-
(
|
|
41936
|
-
const builtSelection = buildSelectionForNode$o(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
41937
|
-
if (builtSelection !== undefined) {
|
|
41938
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
41939
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
41940
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
41941
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
41942
|
-
if (sink[key] === undefined) {
|
|
41943
|
-
sink[key] = builtSelection[key];
|
|
41944
|
-
}
|
|
41945
|
-
});
|
|
41946
|
-
}
|
|
41947
|
-
else {
|
|
41948
|
-
Object.assign(sink, builtSelection);
|
|
41949
|
-
}
|
|
41950
|
-
}
|
|
41951
|
-
});
|
|
41952
|
-
return sink;
|
|
41178
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$o, source, reader, variables, fragments, parentRecordId);
|
|
41953
41179
|
};
|
|
41954
41180
|
}
|
|
41955
41181
|
function getTypeCacheKeys$x(astNode, state) {
|
|
@@ -42104,26 +41330,8 @@ function buildSelectionForNode$n(source, reader, parentNode, selectionNode, vari
|
|
|
42104
41330
|
}
|
|
42105
41331
|
function select$w(field, variables, fragments) {
|
|
42106
41332
|
return (source, reader, parentRecordId) => {
|
|
42107
|
-
var _a;
|
|
42108
41333
|
const sink = {};
|
|
42109
|
-
(
|
|
42110
|
-
const builtSelection = buildSelectionForNode$n(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
42111
|
-
if (builtSelection !== undefined) {
|
|
42112
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
42113
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
42114
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
42115
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
42116
|
-
if (sink[key] === undefined) {
|
|
42117
|
-
sink[key] = builtSelection[key];
|
|
42118
|
-
}
|
|
42119
|
-
});
|
|
42120
|
-
}
|
|
42121
|
-
else {
|
|
42122
|
-
Object.assign(sink, builtSelection);
|
|
42123
|
-
}
|
|
42124
|
-
}
|
|
42125
|
-
});
|
|
42126
|
-
return sink;
|
|
41334
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$n, source, reader, variables, fragments, parentRecordId);
|
|
42127
41335
|
};
|
|
42128
41336
|
}
|
|
42129
41337
|
function getMinimumSelections$l() {
|
|
@@ -42148,10 +41356,10 @@ function getTypeCacheKeys$w(astNode, state) {
|
|
|
42148
41356
|
representationName: name$m
|
|
42149
41357
|
});
|
|
42150
41358
|
// get all cache keys from normalizable fields
|
|
42151
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$n) :
|
|
41359
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$n) : new Map();
|
|
42152
41360
|
for (const fieldDataKey of Object.keys(data)) {
|
|
42153
41361
|
const fieldData = data[fieldDataKey];
|
|
42154
|
-
const requestedField =
|
|
41362
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
42155
41363
|
if (requestedField === undefined) {
|
|
42156
41364
|
continue; // Skip unknown field.
|
|
42157
41365
|
}
|
|
@@ -42439,26 +41647,8 @@ function buildSelectionForNode$m(source, reader, parentNode, selectionNode, vari
|
|
|
42439
41647
|
}
|
|
42440
41648
|
function select$v(field, variables, fragments) {
|
|
42441
41649
|
return (source, reader, parentRecordId) => {
|
|
42442
|
-
var _a;
|
|
42443
41650
|
const sink = {};
|
|
42444
|
-
(
|
|
42445
|
-
const builtSelection = buildSelectionForNode$m(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
42446
|
-
if (builtSelection !== undefined) {
|
|
42447
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
42448
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
42449
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
42450
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
42451
|
-
if (sink[key] === undefined) {
|
|
42452
|
-
sink[key] = builtSelection[key];
|
|
42453
|
-
}
|
|
42454
|
-
});
|
|
42455
|
-
}
|
|
42456
|
-
else {
|
|
42457
|
-
Object.assign(sink, builtSelection);
|
|
42458
|
-
}
|
|
42459
|
-
}
|
|
42460
|
-
});
|
|
42461
|
-
return sink;
|
|
41651
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$m, source, reader, variables, fragments, parentRecordId);
|
|
42462
41652
|
};
|
|
42463
41653
|
}
|
|
42464
41654
|
function getMinimumSelections$k() {
|
|
@@ -42483,10 +41673,10 @@ function getTypeCacheKeys$v(astNode, state) {
|
|
|
42483
41673
|
representationName: name$l
|
|
42484
41674
|
});
|
|
42485
41675
|
// get all cache keys from normalizable fields
|
|
42486
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$m) :
|
|
41676
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$m) : new Map();
|
|
42487
41677
|
for (const fieldDataKey of Object.keys(data)) {
|
|
42488
41678
|
const fieldData = data[fieldDataKey];
|
|
42489
|
-
const requestedField =
|
|
41679
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
42490
41680
|
if (requestedField === undefined) {
|
|
42491
41681
|
continue; // Skip unknown field.
|
|
42492
41682
|
}
|
|
@@ -42800,26 +41990,8 @@ function buildSelectionForNode$l(source, reader, parentNode, selectionNode, vari
|
|
|
42800
41990
|
}
|
|
42801
41991
|
function select$u(field, variables, fragments) {
|
|
42802
41992
|
return (source, reader, parentRecordId) => {
|
|
42803
|
-
var _a;
|
|
42804
41993
|
const sink = {};
|
|
42805
|
-
(
|
|
42806
|
-
const builtSelection = buildSelectionForNode$l(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
42807
|
-
if (builtSelection !== undefined) {
|
|
42808
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
42809
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
42810
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
42811
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
42812
|
-
if (sink[key] === undefined) {
|
|
42813
|
-
sink[key] = builtSelection[key];
|
|
42814
|
-
}
|
|
42815
|
-
});
|
|
42816
|
-
}
|
|
42817
|
-
else {
|
|
42818
|
-
Object.assign(sink, builtSelection);
|
|
42819
|
-
}
|
|
42820
|
-
}
|
|
42821
|
-
});
|
|
42822
|
-
return sink;
|
|
41994
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$l, source, reader, variables, fragments, parentRecordId);
|
|
42823
41995
|
};
|
|
42824
41996
|
}
|
|
42825
41997
|
function getTypeCacheKeys$u(astNode, state) {
|
|
@@ -42960,26 +42132,8 @@ function buildSelectionForNode$k(source, reader, parentNode, selectionNode, vari
|
|
|
42960
42132
|
}
|
|
42961
42133
|
function select$t(field, variables, fragments) {
|
|
42962
42134
|
return (source, reader, parentRecordId) => {
|
|
42963
|
-
var _a;
|
|
42964
42135
|
const sink = {};
|
|
42965
|
-
(
|
|
42966
|
-
const builtSelection = buildSelectionForNode$k(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
42967
|
-
if (builtSelection !== undefined) {
|
|
42968
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
42969
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
42970
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
42971
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
42972
|
-
if (sink[key] === undefined) {
|
|
42973
|
-
sink[key] = builtSelection[key];
|
|
42974
|
-
}
|
|
42975
|
-
});
|
|
42976
|
-
}
|
|
42977
|
-
else {
|
|
42978
|
-
Object.assign(sink, builtSelection);
|
|
42979
|
-
}
|
|
42980
|
-
}
|
|
42981
|
-
});
|
|
42982
|
-
return sink;
|
|
42136
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$k, source, reader, variables, fragments, parentRecordId);
|
|
42983
42137
|
};
|
|
42984
42138
|
}
|
|
42985
42139
|
function getMinimumSelections$j() {
|
|
@@ -43004,10 +42158,10 @@ function getTypeCacheKeys$t(astNode, state) {
|
|
|
43004
42158
|
representationName: name$j
|
|
43005
42159
|
});
|
|
43006
42160
|
// get all cache keys from normalizable fields
|
|
43007
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$k) :
|
|
42161
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$k) : new Map();
|
|
43008
42162
|
for (const fieldDataKey of Object.keys(data)) {
|
|
43009
42163
|
const fieldData = data[fieldDataKey];
|
|
43010
|
-
const requestedField =
|
|
42164
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
43011
42165
|
if (requestedField === undefined) {
|
|
43012
42166
|
continue; // Skip unknown field.
|
|
43013
42167
|
}
|
|
@@ -43175,26 +42329,8 @@ function buildSelectionForNode$j(source, reader, parentNode, selectionNode, vari
|
|
|
43175
42329
|
}
|
|
43176
42330
|
function select$s(field, variables, fragments) {
|
|
43177
42331
|
return (source, reader, parentRecordId) => {
|
|
43178
|
-
var _a;
|
|
43179
42332
|
const sink = {};
|
|
43180
|
-
(
|
|
43181
|
-
const builtSelection = buildSelectionForNode$j(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
43182
|
-
if (builtSelection !== undefined) {
|
|
43183
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
43184
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
43185
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
43186
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
43187
|
-
if (sink[key] === undefined) {
|
|
43188
|
-
sink[key] = builtSelection[key];
|
|
43189
|
-
}
|
|
43190
|
-
});
|
|
43191
|
-
}
|
|
43192
|
-
else {
|
|
43193
|
-
Object.assign(sink, builtSelection);
|
|
43194
|
-
}
|
|
43195
|
-
}
|
|
43196
|
-
});
|
|
43197
|
-
return sink;
|
|
42333
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$j, source, reader, variables, fragments, parentRecordId);
|
|
43198
42334
|
};
|
|
43199
42335
|
}
|
|
43200
42336
|
function getTypeCacheKeys$s(astNode, state) {
|
|
@@ -43331,26 +42467,8 @@ function buildSelectionForNode$i(source, reader, parentNode, selectionNode, vari
|
|
|
43331
42467
|
}
|
|
43332
42468
|
function select$r(field, variables, fragments) {
|
|
43333
42469
|
return (source, reader, parentRecordId) => {
|
|
43334
|
-
var _a;
|
|
43335
42470
|
const sink = {};
|
|
43336
|
-
(
|
|
43337
|
-
const builtSelection = buildSelectionForNode$i(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
43338
|
-
if (builtSelection !== undefined) {
|
|
43339
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
43340
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
43341
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
43342
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
43343
|
-
if (sink[key] === undefined) {
|
|
43344
|
-
sink[key] = builtSelection[key];
|
|
43345
|
-
}
|
|
43346
|
-
});
|
|
43347
|
-
}
|
|
43348
|
-
else {
|
|
43349
|
-
Object.assign(sink, builtSelection);
|
|
43350
|
-
}
|
|
43351
|
-
}
|
|
43352
|
-
});
|
|
43353
|
-
return sink;
|
|
42471
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$i, source, reader, variables, fragments, parentRecordId);
|
|
43354
42472
|
};
|
|
43355
42473
|
}
|
|
43356
42474
|
function getTypeCacheKeys$r(astNode, state) {
|
|
@@ -43521,26 +42639,8 @@ function buildSelectionForNode$h(source, reader, parentNode, selectionNode, vari
|
|
|
43521
42639
|
}
|
|
43522
42640
|
function select$q(field, variables, fragments) {
|
|
43523
42641
|
return (source, reader, parentRecordId) => {
|
|
43524
|
-
var _a;
|
|
43525
42642
|
const sink = {};
|
|
43526
|
-
(
|
|
43527
|
-
const builtSelection = buildSelectionForNode$h(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
43528
|
-
if (builtSelection !== undefined) {
|
|
43529
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
43530
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
43531
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
43532
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
43533
|
-
if (sink[key] === undefined) {
|
|
43534
|
-
sink[key] = builtSelection[key];
|
|
43535
|
-
}
|
|
43536
|
-
});
|
|
43537
|
-
}
|
|
43538
|
-
else {
|
|
43539
|
-
Object.assign(sink, builtSelection);
|
|
43540
|
-
}
|
|
43541
|
-
}
|
|
43542
|
-
});
|
|
43543
|
-
return sink;
|
|
42643
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$h, source, reader, variables, fragments, parentRecordId);
|
|
43544
42644
|
};
|
|
43545
42645
|
}
|
|
43546
42646
|
function getMinimumSelections$h() {
|
|
@@ -43701,26 +42801,8 @@ function buildSelectionForNode$g(source, reader, parentNode, selectionNode, vari
|
|
|
43701
42801
|
}
|
|
43702
42802
|
function select$p(field, variables, fragments) {
|
|
43703
42803
|
return (source, reader, parentRecordId) => {
|
|
43704
|
-
var _a;
|
|
43705
42804
|
const sink = {};
|
|
43706
|
-
(
|
|
43707
|
-
const builtSelection = buildSelectionForNode$g(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
43708
|
-
if (builtSelection !== undefined) {
|
|
43709
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
43710
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
43711
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
43712
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
43713
|
-
if (sink[key] === undefined) {
|
|
43714
|
-
sink[key] = builtSelection[key];
|
|
43715
|
-
}
|
|
43716
|
-
});
|
|
43717
|
-
}
|
|
43718
|
-
else {
|
|
43719
|
-
Object.assign(sink, builtSelection);
|
|
43720
|
-
}
|
|
43721
|
-
}
|
|
43722
|
-
});
|
|
43723
|
-
return sink;
|
|
42805
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$g, source, reader, variables, fragments, parentRecordId);
|
|
43724
42806
|
};
|
|
43725
42807
|
}
|
|
43726
42808
|
function getMinimumSelections$g() {
|
|
@@ -43873,26 +42955,8 @@ function buildSelectionForNode$f(source, reader, parentNode, selectionNode, vari
|
|
|
43873
42955
|
}
|
|
43874
42956
|
function select$o(field, variables, fragments) {
|
|
43875
42957
|
return (source, reader, parentRecordId) => {
|
|
43876
|
-
var _a;
|
|
43877
42958
|
const sink = {};
|
|
43878
|
-
(
|
|
43879
|
-
const builtSelection = buildSelectionForNode$f(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
43880
|
-
if (builtSelection !== undefined) {
|
|
43881
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
43882
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
43883
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
43884
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
43885
|
-
if (sink[key] === undefined) {
|
|
43886
|
-
sink[key] = builtSelection[key];
|
|
43887
|
-
}
|
|
43888
|
-
});
|
|
43889
|
-
}
|
|
43890
|
-
else {
|
|
43891
|
-
Object.assign(sink, builtSelection);
|
|
43892
|
-
}
|
|
43893
|
-
}
|
|
43894
|
-
});
|
|
43895
|
-
return sink;
|
|
42959
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$f, source, reader, variables, fragments, parentRecordId);
|
|
43896
42960
|
};
|
|
43897
42961
|
}
|
|
43898
42962
|
function getMinimumSelections$f() {
|
|
@@ -43917,10 +42981,10 @@ function getTypeCacheKeys$o(astNode, state) {
|
|
|
43917
42981
|
representationName: name$e
|
|
43918
42982
|
});
|
|
43919
42983
|
// get all cache keys from normalizable fields
|
|
43920
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$f) :
|
|
42984
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$f) : new Map();
|
|
43921
42985
|
for (const fieldDataKey of Object.keys(data)) {
|
|
43922
42986
|
const fieldData = data[fieldDataKey];
|
|
43923
|
-
const requestedField =
|
|
42987
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
43924
42988
|
if (requestedField === undefined) {
|
|
43925
42989
|
continue; // Skip unknown field.
|
|
43926
42990
|
}
|
|
@@ -44405,26 +43469,8 @@ function buildSelectionForNode$e(source, reader, parentNode, selectionNode, vari
|
|
|
44405
43469
|
}
|
|
44406
43470
|
function select$m(field, variables, fragments) {
|
|
44407
43471
|
return (source, reader, parentRecordId) => {
|
|
44408
|
-
var _a;
|
|
44409
43472
|
const sink = {};
|
|
44410
|
-
(
|
|
44411
|
-
const builtSelection = buildSelectionForNode$e(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
44412
|
-
if (builtSelection !== undefined) {
|
|
44413
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
44414
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
44415
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
44416
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
44417
|
-
if (sink[key] === undefined) {
|
|
44418
|
-
sink[key] = builtSelection[key];
|
|
44419
|
-
}
|
|
44420
|
-
});
|
|
44421
|
-
}
|
|
44422
|
-
else {
|
|
44423
|
-
Object.assign(sink, builtSelection);
|
|
44424
|
-
}
|
|
44425
|
-
}
|
|
44426
|
-
});
|
|
44427
|
-
return sink;
|
|
43473
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$e, source, reader, variables, fragments, parentRecordId);
|
|
44428
43474
|
};
|
|
44429
43475
|
}
|
|
44430
43476
|
function getMinimumSelections$d() {
|
|
@@ -44449,10 +43495,10 @@ function getTypeCacheKeys$m(astNode, state) {
|
|
|
44449
43495
|
representationName: name$d
|
|
44450
43496
|
});
|
|
44451
43497
|
// get all cache keys from normalizable fields
|
|
44452
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$e) :
|
|
43498
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$e) : new Map();
|
|
44453
43499
|
for (const fieldDataKey of Object.keys(data)) {
|
|
44454
43500
|
const fieldData = data[fieldDataKey];
|
|
44455
|
-
const requestedField =
|
|
43501
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
44456
43502
|
if (requestedField === undefined) {
|
|
44457
43503
|
continue; // Skip unknown field.
|
|
44458
43504
|
}
|
|
@@ -45001,26 +44047,8 @@ function buildSelectionForNode$d(source, reader, parentNode, selectionNode, vari
|
|
|
45001
44047
|
}
|
|
45002
44048
|
function select$l(field, variables, fragments) {
|
|
45003
44049
|
return (source, reader, parentRecordId) => {
|
|
45004
|
-
var _a;
|
|
45005
44050
|
const sink = {};
|
|
45006
|
-
(
|
|
45007
|
-
const builtSelection = buildSelectionForNode$d(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
45008
|
-
if (builtSelection !== undefined) {
|
|
45009
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
45010
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
45011
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
45012
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
45013
|
-
if (sink[key] === undefined) {
|
|
45014
|
-
sink[key] = builtSelection[key];
|
|
45015
|
-
}
|
|
45016
|
-
});
|
|
45017
|
-
}
|
|
45018
|
-
else {
|
|
45019
|
-
Object.assign(sink, builtSelection);
|
|
45020
|
-
}
|
|
45021
|
-
}
|
|
45022
|
-
});
|
|
45023
|
-
return sink;
|
|
44051
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$d, source, reader, variables, fragments, parentRecordId);
|
|
45024
44052
|
};
|
|
45025
44053
|
}
|
|
45026
44054
|
function getMinimumSelections$c() {
|
|
@@ -45045,10 +44073,10 @@ function getTypeCacheKeys$l(astNode, state) {
|
|
|
45045
44073
|
representationName: name$c
|
|
45046
44074
|
});
|
|
45047
44075
|
// get all cache keys from normalizable fields
|
|
45048
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$d) :
|
|
44076
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$d) : new Map();
|
|
45049
44077
|
for (const fieldDataKey of Object.keys(data)) {
|
|
45050
44078
|
const fieldData = data[fieldDataKey];
|
|
45051
|
-
const requestedField =
|
|
44079
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
45052
44080
|
if (requestedField === undefined) {
|
|
45053
44081
|
continue; // Skip unknown field.
|
|
45054
44082
|
}
|
|
@@ -45199,26 +44227,8 @@ function buildSelectionForNode$c(source, reader, parentNode, selectionNode, vari
|
|
|
45199
44227
|
}
|
|
45200
44228
|
function select$k(field, variables, fragments) {
|
|
45201
44229
|
return (source, reader, parentRecordId) => {
|
|
45202
|
-
var _a;
|
|
45203
44230
|
const sink = {};
|
|
45204
|
-
(
|
|
45205
|
-
const builtSelection = buildSelectionForNode$c(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
45206
|
-
if (builtSelection !== undefined) {
|
|
45207
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
45208
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
45209
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
45210
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
45211
|
-
if (sink[key] === undefined) {
|
|
45212
|
-
sink[key] = builtSelection[key];
|
|
45213
|
-
}
|
|
45214
|
-
});
|
|
45215
|
-
}
|
|
45216
|
-
else {
|
|
45217
|
-
Object.assign(sink, builtSelection);
|
|
45218
|
-
}
|
|
45219
|
-
}
|
|
45220
|
-
});
|
|
45221
|
-
return sink;
|
|
44231
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$c, source, reader, variables, fragments, parentRecordId);
|
|
45222
44232
|
};
|
|
45223
44233
|
}
|
|
45224
44234
|
function getMinimumSelections$b() {
|
|
@@ -45243,10 +44253,10 @@ function getTypeCacheKeys$k(astNode, state) {
|
|
|
45243
44253
|
representationName: name$b
|
|
45244
44254
|
});
|
|
45245
44255
|
// get all cache keys from normalizable fields
|
|
45246
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$c) :
|
|
44256
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$c) : new Map();
|
|
45247
44257
|
for (const fieldDataKey of Object.keys(data)) {
|
|
45248
44258
|
const fieldData = data[fieldDataKey];
|
|
45249
|
-
const requestedField =
|
|
44259
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
45250
44260
|
if (requestedField === undefined) {
|
|
45251
44261
|
continue; // Skip unknown field.
|
|
45252
44262
|
}
|
|
@@ -45404,26 +44414,8 @@ function buildSelectionForNode$b(source, reader, parentNode, selectionNode, vari
|
|
|
45404
44414
|
}
|
|
45405
44415
|
function select$j(field, variables, fragments) {
|
|
45406
44416
|
return (source, reader, parentRecordId) => {
|
|
45407
|
-
var _a;
|
|
45408
44417
|
const sink = {};
|
|
45409
|
-
(
|
|
45410
|
-
const builtSelection = buildSelectionForNode$b(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
45411
|
-
if (builtSelection !== undefined) {
|
|
45412
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
45413
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
45414
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
45415
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
45416
|
-
if (sink[key] === undefined) {
|
|
45417
|
-
sink[key] = builtSelection[key];
|
|
45418
|
-
}
|
|
45419
|
-
});
|
|
45420
|
-
}
|
|
45421
|
-
else {
|
|
45422
|
-
Object.assign(sink, builtSelection);
|
|
45423
|
-
}
|
|
45424
|
-
}
|
|
45425
|
-
});
|
|
45426
|
-
return sink;
|
|
44418
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$b, source, reader, variables, fragments, parentRecordId);
|
|
45427
44419
|
};
|
|
45428
44420
|
}
|
|
45429
44421
|
function getMinimumSelections$a() {
|
|
@@ -45649,26 +44641,8 @@ function buildSelectionForNode$a(source, reader, parentNode, selectionNode, vari
|
|
|
45649
44641
|
}
|
|
45650
44642
|
function select$i(field, variables, fragments) {
|
|
45651
44643
|
return (source, reader, parentRecordId) => {
|
|
45652
|
-
var _a;
|
|
45653
44644
|
const sink = {};
|
|
45654
|
-
(
|
|
45655
|
-
const builtSelection = buildSelectionForNode$a(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
45656
|
-
if (builtSelection !== undefined) {
|
|
45657
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
45658
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
45659
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
45660
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
45661
|
-
if (sink[key] === undefined) {
|
|
45662
|
-
sink[key] = builtSelection[key];
|
|
45663
|
-
}
|
|
45664
|
-
});
|
|
45665
|
-
}
|
|
45666
|
-
else {
|
|
45667
|
-
Object.assign(sink, builtSelection);
|
|
45668
|
-
}
|
|
45669
|
-
}
|
|
45670
|
-
});
|
|
45671
|
-
return sink;
|
|
44645
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$a, source, reader, variables, fragments, parentRecordId);
|
|
45672
44646
|
};
|
|
45673
44647
|
}
|
|
45674
44648
|
function getMinimumSelections$9() {
|
|
@@ -45694,10 +44668,10 @@ function getTypeCacheKeys$i(astNode, state) {
|
|
|
45694
44668
|
representationName: name$9
|
|
45695
44669
|
});
|
|
45696
44670
|
// get all cache keys from normalizable fields
|
|
45697
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$a) :
|
|
44671
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$a) : new Map();
|
|
45698
44672
|
for (const fieldDataKey of Object.keys(data)) {
|
|
45699
44673
|
const fieldData = data[fieldDataKey];
|
|
45700
|
-
const requestedField =
|
|
44674
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
45701
44675
|
if (requestedField === undefined) {
|
|
45702
44676
|
continue; // Skip unknown field.
|
|
45703
44677
|
}
|
|
@@ -46231,26 +45205,8 @@ function buildSelectionForNode$9(source, reader, parentNode, selectionNode, vari
|
|
|
46231
45205
|
}
|
|
46232
45206
|
function select$h(field, variables, fragments) {
|
|
46233
45207
|
return (source, reader, parentRecordId) => {
|
|
46234
|
-
var _a;
|
|
46235
45208
|
const sink = {};
|
|
46236
|
-
(
|
|
46237
|
-
const builtSelection = buildSelectionForNode$9(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
46238
|
-
if (builtSelection !== undefined) {
|
|
46239
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
46240
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
46241
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
46242
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
46243
|
-
if (sink[key] === undefined) {
|
|
46244
|
-
sink[key] = builtSelection[key];
|
|
46245
|
-
}
|
|
46246
|
-
});
|
|
46247
|
-
}
|
|
46248
|
-
else {
|
|
46249
|
-
Object.assign(sink, builtSelection);
|
|
46250
|
-
}
|
|
46251
|
-
}
|
|
46252
|
-
});
|
|
46253
|
-
return sink;
|
|
45209
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$9, source, reader, variables, fragments, parentRecordId);
|
|
46254
45210
|
};
|
|
46255
45211
|
}
|
|
46256
45212
|
function getMinimumSelections$7() {
|
|
@@ -46275,10 +45231,10 @@ function getTypeCacheKeys$h(astNode, state) {
|
|
|
46275
45231
|
representationName: name$8
|
|
46276
45232
|
});
|
|
46277
45233
|
// get all cache keys from normalizable fields
|
|
46278
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$9) :
|
|
45234
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$9) : new Map();
|
|
46279
45235
|
for (const fieldDataKey of Object.keys(data)) {
|
|
46280
45236
|
const fieldData = data[fieldDataKey];
|
|
46281
|
-
const requestedField =
|
|
45237
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
46282
45238
|
if (requestedField === undefined) {
|
|
46283
45239
|
continue; // Skip unknown field.
|
|
46284
45240
|
}
|
|
@@ -46417,26 +45373,8 @@ function buildSelectionForNode$8(source, reader, parentNode, selectionNode, vari
|
|
|
46417
45373
|
}
|
|
46418
45374
|
function select$g(field, variables, fragments) {
|
|
46419
45375
|
return (source, reader, parentRecordId) => {
|
|
46420
|
-
var _a;
|
|
46421
45376
|
const sink = {};
|
|
46422
|
-
(
|
|
46423
|
-
const builtSelection = buildSelectionForNode$8(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
46424
|
-
if (builtSelection !== undefined) {
|
|
46425
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
46426
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
46427
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
46428
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
46429
|
-
if (sink[key] === undefined) {
|
|
46430
|
-
sink[key] = builtSelection[key];
|
|
46431
|
-
}
|
|
46432
|
-
});
|
|
46433
|
-
}
|
|
46434
|
-
else {
|
|
46435
|
-
Object.assign(sink, builtSelection);
|
|
46436
|
-
}
|
|
46437
|
-
}
|
|
46438
|
-
});
|
|
46439
|
-
return sink;
|
|
45377
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$8, source, reader, variables, fragments, parentRecordId);
|
|
46440
45378
|
};
|
|
46441
45379
|
}
|
|
46442
45380
|
function getMinimumSelections$6() {
|
|
@@ -46755,10 +45693,10 @@ function ingestNonCursorConnectionType(astNode, state, specifics) {
|
|
|
46755
45693
|
function ingestTypeWithStrategy(astNode, state, isCursorConnectionType, { key, isFragmentApplicable, isMappedFieldImport, getFieldType, ramlIngestBlock, ingestPaginatedMetadata, mergeData, storeMetadataParams, createLink, }, strategy) {
|
|
46756
45694
|
const { data, variables, luvio, store } = state;
|
|
46757
45695
|
const sink = {};
|
|
46758
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable) :
|
|
45696
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable) : new Map();
|
|
46759
45697
|
for (const fieldDataKey of Object.keys(data)) {
|
|
46760
45698
|
const fieldData = data[fieldDataKey];
|
|
46761
|
-
const requestedField =
|
|
45699
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
46762
45700
|
if (requestedField === undefined) {
|
|
46763
45701
|
continue; // TODO: (W-11132802) We got a field back we didn't ask for. Call handleUnknownField.
|
|
46764
45702
|
}
|
|
@@ -46975,18 +45913,28 @@ function calculateRequestedFieldsForType(typename, selectionSet, namedFragmentsM
|
|
|
46975
45913
|
selections.push(selection);
|
|
46976
45914
|
}
|
|
46977
45915
|
if (selection.kind === "InlineFragment" && isFragmentApplicable(selection, typename)) {
|
|
45916
|
+
// loops over the map to get the values.
|
|
46978
45917
|
getRequestedFieldsForType(typename, selection.selectionSet, namedFragmentsMap, isFragmentApplicable)
|
|
46979
45918
|
.forEach(fragmentFieldSelection => { mergeFragmentWithExistingSelections(fragmentFieldSelection, selections); });
|
|
46980
45919
|
}
|
|
46981
45920
|
if (selection.kind === "FragmentSpread") {
|
|
46982
45921
|
const namedFragment = namedFragmentsMap[selection.name.value];
|
|
46983
45922
|
if (namedFragment && isFragmentApplicable(namedFragment, typename)) {
|
|
45923
|
+
// loops over the map to get the values.
|
|
46984
45924
|
getRequestedFieldsForType(typename, namedFragment.selectionSet, namedFragmentsMap, isFragmentApplicable)
|
|
46985
45925
|
.forEach(fragmentFieldSelection => { mergeFragmentWithExistingSelections(fragmentFieldSelection, selections); });
|
|
46986
45926
|
}
|
|
46987
45927
|
}
|
|
46988
45928
|
});
|
|
46989
|
-
|
|
45929
|
+
// Needs to happen after the selections are merged.
|
|
45930
|
+
return selections.reduce((acc, fieldNode) => {
|
|
45931
|
+
const fieldName = fieldNode.alias ? fieldNode.alias.value : fieldNode.name.value;
|
|
45932
|
+
// 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.
|
|
45933
|
+
if (!acc.has(fieldName)) {
|
|
45934
|
+
acc.set(fieldName, fieldNode);
|
|
45935
|
+
}
|
|
45936
|
+
return acc;
|
|
45937
|
+
}, new Map());
|
|
46990
45938
|
}
|
|
46991
45939
|
let selectionSetRequestedFieldsWeakMap = new WeakMap();
|
|
46992
45940
|
function getRequestedFieldsForType(typename, selectionSet, namedFragmentsMap, isFragmentApplicable) {
|
|
@@ -47591,6 +46539,27 @@ function augmentDefaultVariableValues(variableDefinitions, variables) {
|
|
|
47591
46539
|
}
|
|
47592
46540
|
});
|
|
47593
46541
|
}
|
|
46542
|
+
function selectCalculateSink(sink, field, buildSelectionForNodeFn, source, reader, variables, fragments, parentRecordId) {
|
|
46543
|
+
var _a;
|
|
46544
|
+
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
46545
|
+
const builtSelection = buildSelectionForNodeFn(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
46546
|
+
if (builtSelection !== undefined) {
|
|
46547
|
+
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
46548
|
+
Object.keys(builtSelection).forEach((key, value) => {
|
|
46549
|
+
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
46550
|
+
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
46551
|
+
if (sink[key] === undefined) {
|
|
46552
|
+
sink[key] = builtSelection[key];
|
|
46553
|
+
}
|
|
46554
|
+
});
|
|
46555
|
+
}
|
|
46556
|
+
else {
|
|
46557
|
+
Object.assign(sink, builtSelection);
|
|
46558
|
+
}
|
|
46559
|
+
}
|
|
46560
|
+
});
|
|
46561
|
+
return sink;
|
|
46562
|
+
}
|
|
47594
46563
|
function selectTypeLinkWithPagination(resolvedLink, sel, fieldData, reader, key, sink, variables, fragments, selectFn) {
|
|
47595
46564
|
var _a, _b, _c, _d, _e;
|
|
47596
46565
|
const source = resolvedLink.data.data;
|
|
@@ -47784,26 +46753,8 @@ function buildSelectionForNode$6(source, reader, parentNode, selectionNode, vari
|
|
|
47784
46753
|
}
|
|
47785
46754
|
function select$f(field, variables, fragments) {
|
|
47786
46755
|
return (source, reader, parentRecordId) => {
|
|
47787
|
-
var _a;
|
|
47788
46756
|
const sink = {};
|
|
47789
|
-
(
|
|
47790
|
-
const builtSelection = buildSelectionForNode$6(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
47791
|
-
if (builtSelection !== undefined) {
|
|
47792
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
47793
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
47794
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
47795
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
47796
|
-
if (sink[key] === undefined) {
|
|
47797
|
-
sink[key] = builtSelection[key];
|
|
47798
|
-
}
|
|
47799
|
-
});
|
|
47800
|
-
}
|
|
47801
|
-
else {
|
|
47802
|
-
Object.assign(sink, builtSelection);
|
|
47803
|
-
}
|
|
47804
|
-
}
|
|
47805
|
-
});
|
|
47806
|
-
return sink;
|
|
46757
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$6, source, reader, variables, fragments, parentRecordId);
|
|
47807
46758
|
};
|
|
47808
46759
|
}
|
|
47809
46760
|
function getTypeCacheKeys$f(astNode, state) {
|
|
@@ -47884,7 +46835,7 @@ function convertGraphQLToRaml(astNode, state) {
|
|
|
47884
46835
|
const { data } = state;
|
|
47885
46836
|
const requestedFields = astNode.selectionSet
|
|
47886
46837
|
? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$5)
|
|
47887
|
-
:
|
|
46838
|
+
: new Map();
|
|
47888
46839
|
const { fieldsBag, trie } = createFieldsBagAndTrie(data, requestedFields, state);
|
|
47889
46840
|
const recordRepresentation = {
|
|
47890
46841
|
apiName: data.ApiName,
|
|
@@ -47913,7 +46864,7 @@ function createFieldsBagAndTrie(data, requestedFields, parentState) {
|
|
|
47913
46864
|
};
|
|
47914
46865
|
for (const fieldDataKey of Object.keys(data)) {
|
|
47915
46866
|
const fieldData = data[fieldDataKey];
|
|
47916
|
-
const requestedField =
|
|
46867
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
47917
46868
|
if (requestedField === undefined) {
|
|
47918
46869
|
continue; // We got a field back we didn't ask for. Skip.
|
|
47919
46870
|
}
|
|
@@ -48003,9 +46954,8 @@ function convertAstToTrie(astNode, fragments) {
|
|
|
48003
46954
|
const requestedFields = astNode.selectionSet
|
|
48004
46955
|
? getRequestedFieldsForType('', // data is null here
|
|
48005
46956
|
astNode.selectionSet, fragments, isFragmentApplicable$5)
|
|
48006
|
-
:
|
|
48007
|
-
for (
|
|
48008
|
-
const field = requestedFields[i];
|
|
46957
|
+
: new Map();
|
|
46958
|
+
for (const [, field] of requestedFields) {
|
|
48009
46959
|
const fieldType = getFieldType$9(field);
|
|
48010
46960
|
const fieldName = field.name.value;
|
|
48011
46961
|
//Untyped field - Adapter forwarded request?
|
|
@@ -48352,10 +47302,10 @@ function getTypeCacheKeys$e(astNode, state) {
|
|
|
48352
47302
|
// get all cache keys from normalizable fields
|
|
48353
47303
|
const requestedFields = astNode.selectionSet
|
|
48354
47304
|
? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$3)
|
|
48355
|
-
:
|
|
47305
|
+
: new Map();
|
|
48356
47306
|
for (const fieldDataKey of ObjectKeys(data)) {
|
|
48357
47307
|
const fieldData = data[fieldDataKey];
|
|
48358
|
-
const requestedField =
|
|
47308
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
48359
47309
|
if (requestedField === undefined) {
|
|
48360
47310
|
continue; // Skip unknown field.
|
|
48361
47311
|
}
|
|
@@ -48577,28 +47527,10 @@ function buildSelectionForNode$5(source, reader, parentNode, selectionNode, vari
|
|
|
48577
47527
|
}
|
|
48578
47528
|
function select$e(field, variables, fragments) {
|
|
48579
47529
|
return (source, reader, parentRecordId) => {
|
|
48580
|
-
var _a;
|
|
48581
47530
|
const sink = {};
|
|
48582
47531
|
source = attachMappedData(source, reader);
|
|
48583
47532
|
reader.markSeenId(parentRecordId); // Always mark identifiable types as seen
|
|
48584
|
-
(
|
|
48585
|
-
const builtSelection = buildSelectionForNode$5(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
48586
|
-
if (builtSelection !== undefined) {
|
|
48587
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
48588
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
48589
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
48590
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
48591
|
-
if (sink[key] === undefined) {
|
|
48592
|
-
sink[key] = builtSelection[key];
|
|
48593
|
-
}
|
|
48594
|
-
});
|
|
48595
|
-
}
|
|
48596
|
-
else {
|
|
48597
|
-
Object.assign(sink, builtSelection);
|
|
48598
|
-
}
|
|
48599
|
-
}
|
|
48600
|
-
});
|
|
48601
|
-
return sink;
|
|
47533
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$5, source, reader, variables, fragments, parentRecordId);
|
|
48602
47534
|
};
|
|
48603
47535
|
}
|
|
48604
47536
|
function getTypeCacheKeys$d(astNode, state) {
|
|
@@ -48611,10 +47543,10 @@ function getTypeCacheKeys$d(astNode, state) {
|
|
|
48611
47543
|
representationName: name$5
|
|
48612
47544
|
});
|
|
48613
47545
|
// get all cache keys from normalizable fields
|
|
48614
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$5) :
|
|
47546
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$5) : new Map();
|
|
48615
47547
|
for (const fieldDataKey of Object.keys(data)) {
|
|
48616
47548
|
const fieldData = data[fieldDataKey];
|
|
48617
|
-
const requestedField =
|
|
47549
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
48618
47550
|
if (requestedField === undefined) {
|
|
48619
47551
|
continue; // Skip unknown field.
|
|
48620
47552
|
}
|
|
@@ -49478,26 +48410,8 @@ function buildSelectionForNode$4(source, reader, parentNode, selectionNode, vari
|
|
|
49478
48410
|
}
|
|
49479
48411
|
function select$d(field, variables, fragments) {
|
|
49480
48412
|
return (source, reader, parentRecordId) => {
|
|
49481
|
-
var _a;
|
|
49482
48413
|
const sink = {};
|
|
49483
|
-
(
|
|
49484
|
-
const builtSelection = buildSelectionForNode$4(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
49485
|
-
if (builtSelection !== undefined) {
|
|
49486
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
49487
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
49488
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
49489
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
49490
|
-
if (sink[key] === undefined) {
|
|
49491
|
-
sink[key] = builtSelection[key];
|
|
49492
|
-
}
|
|
49493
|
-
});
|
|
49494
|
-
}
|
|
49495
|
-
else {
|
|
49496
|
-
Object.assign(sink, builtSelection);
|
|
49497
|
-
}
|
|
49498
|
-
}
|
|
49499
|
-
});
|
|
49500
|
-
return sink;
|
|
48414
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$4, source, reader, variables, fragments, parentRecordId);
|
|
49501
48415
|
};
|
|
49502
48416
|
}
|
|
49503
48417
|
function getMinimumSelections$4() {
|
|
@@ -49522,10 +48436,10 @@ function getTypeCacheKeys$c(astNode, state) {
|
|
|
49522
48436
|
representationName: name$4
|
|
49523
48437
|
});
|
|
49524
48438
|
// get all cache keys from normalizable fields
|
|
49525
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$4) :
|
|
48439
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$4) : new Map();
|
|
49526
48440
|
for (const fieldDataKey of Object.keys(data)) {
|
|
49527
48441
|
const fieldData = data[fieldDataKey];
|
|
49528
|
-
const requestedField =
|
|
48442
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
49529
48443
|
if (requestedField === undefined) {
|
|
49530
48444
|
continue; // Skip unknown field.
|
|
49531
48445
|
}
|
|
@@ -49749,26 +48663,8 @@ function buildSelectionForNode$3(source, reader, parentNode, selectionNode, vari
|
|
|
49749
48663
|
}
|
|
49750
48664
|
function select$c(field, variables, fragments) {
|
|
49751
48665
|
return (source, reader, parentRecordId) => {
|
|
49752
|
-
var _a;
|
|
49753
48666
|
const sink = {};
|
|
49754
|
-
(
|
|
49755
|
-
const builtSelection = buildSelectionForNode$3(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
49756
|
-
if (builtSelection !== undefined) {
|
|
49757
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
49758
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
49759
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
49760
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
49761
|
-
if (sink[key] === undefined) {
|
|
49762
|
-
sink[key] = builtSelection[key];
|
|
49763
|
-
}
|
|
49764
|
-
});
|
|
49765
|
-
}
|
|
49766
|
-
else {
|
|
49767
|
-
Object.assign(sink, builtSelection);
|
|
49768
|
-
}
|
|
49769
|
-
}
|
|
49770
|
-
});
|
|
49771
|
-
return sink;
|
|
48667
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$3, source, reader, variables, fragments, parentRecordId);
|
|
49772
48668
|
};
|
|
49773
48669
|
}
|
|
49774
48670
|
function getMinimumSelections$3() {
|
|
@@ -49936,26 +48832,8 @@ function buildSelectionForNode$2(source, reader, parentNode, selectionNode, vari
|
|
|
49936
48832
|
}
|
|
49937
48833
|
function select$b(field, variables, fragments) {
|
|
49938
48834
|
return (source, reader, parentRecordId) => {
|
|
49939
|
-
var _a;
|
|
49940
48835
|
const sink = {};
|
|
49941
|
-
(
|
|
49942
|
-
const builtSelection = buildSelectionForNode$2(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
49943
|
-
if (builtSelection !== undefined) {
|
|
49944
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
49945
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
49946
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
49947
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
49948
|
-
if (sink[key] === undefined) {
|
|
49949
|
-
sink[key] = builtSelection[key];
|
|
49950
|
-
}
|
|
49951
|
-
});
|
|
49952
|
-
}
|
|
49953
|
-
else {
|
|
49954
|
-
Object.assign(sink, builtSelection);
|
|
49955
|
-
}
|
|
49956
|
-
}
|
|
49957
|
-
});
|
|
49958
|
-
return sink;
|
|
48836
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$2, source, reader, variables, fragments, parentRecordId);
|
|
49959
48837
|
};
|
|
49960
48838
|
}
|
|
49961
48839
|
function getMinimumSelections$2() {
|
|
@@ -49980,10 +48858,10 @@ function getTypeCacheKeys$b(astNode, state) {
|
|
|
49980
48858
|
representationName: name$2
|
|
49981
48859
|
});
|
|
49982
48860
|
// get all cache keys from normalizable fields
|
|
49983
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$2) :
|
|
48861
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$2) : new Map();
|
|
49984
48862
|
for (const fieldDataKey of Object.keys(data)) {
|
|
49985
48863
|
const fieldData = data[fieldDataKey];
|
|
49986
|
-
const requestedField =
|
|
48864
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
49987
48865
|
if (requestedField === undefined) {
|
|
49988
48866
|
continue; // Skip unknown field.
|
|
49989
48867
|
}
|
|
@@ -50128,26 +49006,8 @@ function buildSelectionForNode$1(source, reader, parentNode, selectionNode, vari
|
|
|
50128
49006
|
}
|
|
50129
49007
|
function select$a(field, variables, fragments) {
|
|
50130
49008
|
return (source, reader, parentRecordId) => {
|
|
50131
|
-
var _a;
|
|
50132
49009
|
const sink = {};
|
|
50133
|
-
(
|
|
50134
|
-
const builtSelection = buildSelectionForNode$1(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
50135
|
-
if (builtSelection !== undefined) {
|
|
50136
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
50137
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
50138
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
50139
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
50140
|
-
if (sink[key] === undefined) {
|
|
50141
|
-
sink[key] = builtSelection[key];
|
|
50142
|
-
}
|
|
50143
|
-
});
|
|
50144
|
-
}
|
|
50145
|
-
else {
|
|
50146
|
-
Object.assign(sink, builtSelection);
|
|
50147
|
-
}
|
|
50148
|
-
}
|
|
50149
|
-
});
|
|
50150
|
-
return sink;
|
|
49010
|
+
return selectCalculateSink(sink, field, buildSelectionForNode$1, source, reader, variables, fragments, parentRecordId);
|
|
50151
49011
|
};
|
|
50152
49012
|
}
|
|
50153
49013
|
function getMinimumSelections$1() {
|
|
@@ -50172,10 +49032,10 @@ function getTypeCacheKeys$a(astNode, state) {
|
|
|
50172
49032
|
representationName: name$1
|
|
50173
49033
|
});
|
|
50174
49034
|
// get all cache keys from normalizable fields
|
|
50175
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$1) :
|
|
49035
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable$1) : new Map();
|
|
50176
49036
|
for (const fieldDataKey of Object.keys(data)) {
|
|
50177
49037
|
const fieldData = data[fieldDataKey];
|
|
50178
|
-
const requestedField =
|
|
49038
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
50179
49039
|
if (requestedField === undefined) {
|
|
50180
49040
|
continue; // Skip unknown field.
|
|
50181
49041
|
}
|
|
@@ -50434,26 +49294,8 @@ function buildSelectionForNode(source, reader, parentNode, selectionNode, variab
|
|
|
50434
49294
|
}
|
|
50435
49295
|
function select$9(field, variables, fragments) {
|
|
50436
49296
|
return (source, reader, parentRecordId) => {
|
|
50437
|
-
var _a;
|
|
50438
49297
|
const sink = {};
|
|
50439
|
-
(
|
|
50440
|
-
const builtSelection = buildSelectionForNode(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
50441
|
-
if (builtSelection !== undefined) {
|
|
50442
|
-
if (sel.kind === "InlineFragment" || sel.kind === "FragmentSpread") {
|
|
50443
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
50444
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
50445
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
50446
|
-
if (sink[key] === undefined) {
|
|
50447
|
-
sink[key] = builtSelection[key];
|
|
50448
|
-
}
|
|
50449
|
-
});
|
|
50450
|
-
}
|
|
50451
|
-
else {
|
|
50452
|
-
Object.assign(sink, builtSelection);
|
|
50453
|
-
}
|
|
50454
|
-
}
|
|
50455
|
-
});
|
|
50456
|
-
return sink;
|
|
49298
|
+
return selectCalculateSink(sink, field, buildSelectionForNode, source, reader, variables, fragments, parentRecordId);
|
|
50457
49299
|
};
|
|
50458
49300
|
}
|
|
50459
49301
|
function getMinimumSelections() {
|
|
@@ -50470,10 +49312,10 @@ function getTypeCacheKeys$9(astNode, state) {
|
|
|
50470
49312
|
representationName: name
|
|
50471
49313
|
});
|
|
50472
49314
|
// get all cache keys from normalizable fields
|
|
50473
|
-
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable) :
|
|
49315
|
+
const requestedFields = astNode.selectionSet ? getRequestedFieldsForType(data.__typename, astNode.selectionSet, state.fragments, isFragmentApplicable) : new Map();
|
|
50474
49316
|
for (const fieldDataKey of Object.keys(data)) {
|
|
50475
49317
|
const fieldData = data[fieldDataKey];
|
|
50476
|
-
const requestedField =
|
|
49318
|
+
const requestedField = requestedFields.get(fieldDataKey);
|
|
50477
49319
|
if (requestedField === undefined) {
|
|
50478
49320
|
continue; // Skip unknown field.
|
|
50479
49321
|
}
|