@salesforce/lds-worker-api 1.227.2 → 1.228.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -3847,7 +3847,7 @@
|
|
|
3847
3847
|
}
|
|
3848
3848
|
return resourceParams;
|
|
3849
3849
|
}
|
|
3850
|
-
// engine version: 0.145.
|
|
3850
|
+
// engine version: 0.145.2-6a13677c
|
|
3851
3851
|
|
|
3852
3852
|
/**
|
|
3853
3853
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -3974,7 +3974,7 @@
|
|
|
3974
3974
|
}
|
|
3975
3975
|
callbacks.push(callback);
|
|
3976
3976
|
}
|
|
3977
|
-
// version: 1.
|
|
3977
|
+
// version: 1.228.1-4e6356f71
|
|
3978
3978
|
|
|
3979
3979
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3980
3980
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15435,7 +15435,7 @@
|
|
|
15435
15435
|
}
|
|
15436
15436
|
return superResult;
|
|
15437
15437
|
}
|
|
15438
|
-
// version: 1.
|
|
15438
|
+
// version: 1.228.1-4e6356f71
|
|
15439
15439
|
|
|
15440
15440
|
function unwrap(data) {
|
|
15441
15441
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16358,7 +16358,7 @@
|
|
|
16358
16358
|
const { apiFamily, name } = metadata;
|
|
16359
16359
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16360
16360
|
}
|
|
16361
|
-
// version: 1.
|
|
16361
|
+
// version: 1.228.1-4e6356f71
|
|
16362
16362
|
|
|
16363
16363
|
/**
|
|
16364
16364
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16457,7 +16457,7 @@
|
|
|
16457
16457
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16458
16458
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16459
16459
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16460
|
-
// engine version: 0.145.
|
|
16460
|
+
// engine version: 0.145.2-6a13677c
|
|
16461
16461
|
|
|
16462
16462
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16463
16463
|
|
|
@@ -17548,7 +17548,7 @@
|
|
|
17548
17548
|
mergeable: false
|
|
17549
17549
|
});
|
|
17550
17550
|
}
|
|
17551
|
-
const notifyUpdateAvailableFactory$
|
|
17551
|
+
const notifyUpdateAvailableFactory$4 = (luvio) => {
|
|
17552
17552
|
return function notifyListInfoUpdateAvailable(configs) {
|
|
17553
17553
|
const keys = configs.map(c => keyBuilder$1V(luvio, c));
|
|
17554
17554
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
@@ -18161,7 +18161,7 @@
|
|
|
18161
18161
|
getTypeCacheKeys$R$1(rootKeySet, luvio, input_fields[key], () => rootKey + "__fields" + "__" + key);
|
|
18162
18162
|
}
|
|
18163
18163
|
}
|
|
18164
|
-
const notifyUpdateAvailableFactory$
|
|
18164
|
+
const notifyUpdateAvailableFactory$3 = (luvio) => {
|
|
18165
18165
|
return function notifyRecordUpdateAvailable(configs) {
|
|
18166
18166
|
const keys = configs.map(c => keyBuilder$1U(luvio, c));
|
|
18167
18167
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
@@ -22579,7 +22579,7 @@
|
|
|
22579
22579
|
getTypeCacheKeys$L$1(rootKeySet, luvio, input.lists[i]);
|
|
22580
22580
|
}
|
|
22581
22581
|
}
|
|
22582
|
-
const notifyUpdateAvailableFactory$
|
|
22582
|
+
const notifyUpdateAvailableFactory$2 = (luvio) => {
|
|
22583
22583
|
return function notifyListViewSummaryUpdateAvailable(configs) {
|
|
22584
22584
|
const keys = configs.map(c => keyBuilder$1N(luvio, c));
|
|
22585
22585
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
@@ -25320,9 +25320,9 @@
|
|
|
25320
25320
|
}, { contextId: contextId$4 });
|
|
25321
25321
|
};
|
|
25322
25322
|
|
|
25323
|
-
const notifyUpdateAvailableFactory = (luvio) => {
|
|
25323
|
+
const notifyUpdateAvailableFactory$1 = (luvio) => {
|
|
25324
25324
|
return function notifyListInfoUpdateAvailable(configs) {
|
|
25325
|
-
const generated_notifyUpdateAvailable = notifyUpdateAvailableFactory$
|
|
25325
|
+
const generated_notifyUpdateAvailable = notifyUpdateAvailableFactory$4(luvio);
|
|
25326
25326
|
// Taken from getUiApiListInfoByListViewApiNameAndObjectApiName/keyBuilder artifact
|
|
25327
25327
|
// We automatically set the type based on the listViewApiName, and we need to do the same
|
|
25328
25328
|
// here for key matching and validation
|
|
@@ -25438,6 +25438,119 @@
|
|
|
25438
25438
|
});
|
|
25439
25439
|
}
|
|
25440
25440
|
|
|
25441
|
+
const TTL$q = 900000;
|
|
25442
|
+
const VERSION$Y$1 = "993b0a7bce6056c4f57ed300ec153d9c";
|
|
25443
|
+
const RepresentationType$E = 'QuickActionDefaultsRepresentation';
|
|
25444
|
+
function keyBuilder$1C(luvio, config) {
|
|
25445
|
+
return keyPrefix$1 + '::' + RepresentationType$E + ':' + config.actionApiName;
|
|
25446
|
+
}
|
|
25447
|
+
function keyBuilderFromType$p(luvio, object) {
|
|
25448
|
+
const keyParams = {
|
|
25449
|
+
actionApiName: object.actionApiName
|
|
25450
|
+
};
|
|
25451
|
+
return keyBuilder$1C(luvio, keyParams);
|
|
25452
|
+
}
|
|
25453
|
+
function dynamicNormalize$4(ingestParams) {
|
|
25454
|
+
return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
|
|
25455
|
+
const input_fields = input.fields;
|
|
25456
|
+
const input_fields_id = path.fullPath + '__fields';
|
|
25457
|
+
const input_fields_keys = Object.keys(input_fields);
|
|
25458
|
+
const input_fields_length = input_fields_keys.length;
|
|
25459
|
+
for (let i = 0; i < input_fields_length; i++) {
|
|
25460
|
+
const key = input_fields_keys[i];
|
|
25461
|
+
const input_fields_prop = input_fields[key];
|
|
25462
|
+
const input_fields_prop_id = input_fields_id + '__' + key;
|
|
25463
|
+
input_fields[key] = ingestParams.fields(input_fields_prop, {
|
|
25464
|
+
fullPath: input_fields_prop_id,
|
|
25465
|
+
propertyName: key,
|
|
25466
|
+
parent: {
|
|
25467
|
+
data: input,
|
|
25468
|
+
key: path.fullPath,
|
|
25469
|
+
existing: existing,
|
|
25470
|
+
},
|
|
25471
|
+
ttl: path.ttl
|
|
25472
|
+
}, luvio, store, timestamp);
|
|
25473
|
+
}
|
|
25474
|
+
return input;
|
|
25475
|
+
};
|
|
25476
|
+
}
|
|
25477
|
+
const dynamicSelect$5 = function dynamicQuickActionDefaultsRepresentationSelect(params) {
|
|
25478
|
+
const fieldsPathSelection = params.fields === undefined ? {
|
|
25479
|
+
name: 'fields',
|
|
25480
|
+
kind: 'Link',
|
|
25481
|
+
map: true,
|
|
25482
|
+
fragment: select$1F()
|
|
25483
|
+
} : params.fields;
|
|
25484
|
+
return {
|
|
25485
|
+
kind: 'Fragment',
|
|
25486
|
+
version: VERSION$Y$1,
|
|
25487
|
+
private: [
|
|
25488
|
+
'eTag'
|
|
25489
|
+
],
|
|
25490
|
+
selections: [
|
|
25491
|
+
{
|
|
25492
|
+
name: 'actionApiName',
|
|
25493
|
+
kind: 'Scalar'
|
|
25494
|
+
},
|
|
25495
|
+
fieldsPathSelection,
|
|
25496
|
+
{
|
|
25497
|
+
name: 'objectApiName',
|
|
25498
|
+
kind: 'Scalar'
|
|
25499
|
+
}
|
|
25500
|
+
]
|
|
25501
|
+
};
|
|
25502
|
+
};
|
|
25503
|
+
function equals$L(existing, incoming) {
|
|
25504
|
+
const existing_actionApiName = existing.actionApiName;
|
|
25505
|
+
const incoming_actionApiName = incoming.actionApiName;
|
|
25506
|
+
if (!(existing_actionApiName === incoming_actionApiName)) {
|
|
25507
|
+
return false;
|
|
25508
|
+
}
|
|
25509
|
+
const existing_eTag = existing.eTag;
|
|
25510
|
+
const incoming_eTag = incoming.eTag;
|
|
25511
|
+
if (!(existing_eTag === incoming_eTag)) {
|
|
25512
|
+
return false;
|
|
25513
|
+
}
|
|
25514
|
+
const existing_objectApiName = existing.objectApiName;
|
|
25515
|
+
const incoming_objectApiName = incoming.objectApiName;
|
|
25516
|
+
if (!(existing_objectApiName === incoming_objectApiName)) {
|
|
25517
|
+
return false;
|
|
25518
|
+
}
|
|
25519
|
+
const existing_fields = existing.fields;
|
|
25520
|
+
const incoming_fields = incoming.fields;
|
|
25521
|
+
const equals_fields_props = equalsObject$1(existing_fields, incoming_fields, (existing_fields_prop, incoming_fields_prop) => {
|
|
25522
|
+
if (!(existing_fields_prop.__ref === incoming_fields_prop.__ref)) {
|
|
25523
|
+
return false;
|
|
25524
|
+
}
|
|
25525
|
+
});
|
|
25526
|
+
if (equals_fields_props === false) {
|
|
25527
|
+
return false;
|
|
25528
|
+
}
|
|
25529
|
+
return true;
|
|
25530
|
+
}
|
|
25531
|
+
function getTypeCacheKeys$F$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
25532
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
25533
|
+
const rootKey = keyBuilderFromType$p(luvio, input);
|
|
25534
|
+
rootKeySet.set(rootKey, {
|
|
25535
|
+
namespace: keyPrefix$1,
|
|
25536
|
+
representationName: RepresentationType$E,
|
|
25537
|
+
mergeable: false
|
|
25538
|
+
});
|
|
25539
|
+
const input_fields = input.fields;
|
|
25540
|
+
const input_fields_keys = ObjectKeys$2(input_fields);
|
|
25541
|
+
const input_fields_length = input_fields_keys.length;
|
|
25542
|
+
for (let i = 0; i < input_fields_length; i++) {
|
|
25543
|
+
const key = input_fields_keys[i];
|
|
25544
|
+
getTypeCacheKeys$R$1(rootKeySet, luvio, input_fields[key], () => rootKey + "__fields" + "__" + key);
|
|
25545
|
+
}
|
|
25546
|
+
}
|
|
25547
|
+
const notifyUpdateAvailableFactory = (luvio) => {
|
|
25548
|
+
return function notifyQuickActionDefaultsUpdateAvailable(configs) {
|
|
25549
|
+
const keys = configs.map(c => keyBuilder$1C(luvio, c));
|
|
25550
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
25551
|
+
};
|
|
25552
|
+
};
|
|
25553
|
+
|
|
25441
25554
|
function toSortedStringArrayAllowEmpty(value) {
|
|
25442
25555
|
const valueArray = isArray$7(value) ? value : [value];
|
|
25443
25556
|
if (valueArray.length === 0) {
|
|
@@ -25460,18 +25573,18 @@
|
|
|
25460
25573
|
return undefined;
|
|
25461
25574
|
}
|
|
25462
25575
|
|
|
25463
|
-
const VERSION$
|
|
25464
|
-
const RepresentationType$
|
|
25465
|
-
function keyBuilder$
|
|
25466
|
-
return keyPrefix$1 + '::' + RepresentationType$
|
|
25576
|
+
const VERSION$X$1 = "3f49d751896cf66e6e29788d8880e2cc";
|
|
25577
|
+
const RepresentationType$D = 'PlatformActionRepresentation';
|
|
25578
|
+
function keyBuilder$1B(luvio, config) {
|
|
25579
|
+
return keyPrefix$1 + '::' + RepresentationType$D + ':' + config.externalId + ':' + (config.relatedSourceObject === null ? '' : config.relatedSourceObject) + ':' + (config.relatedListRecordId === null ? '' : config.relatedListRecordId);
|
|
25467
25580
|
}
|
|
25468
|
-
function keyBuilderFromType$
|
|
25581
|
+
function keyBuilderFromType$o(luvio, object) {
|
|
25469
25582
|
const keyParams = {
|
|
25470
25583
|
externalId: object.externalId,
|
|
25471
25584
|
relatedSourceObject: object.relatedSourceObject,
|
|
25472
25585
|
relatedListRecordId: object.relatedListRecordId
|
|
25473
25586
|
};
|
|
25474
|
-
return keyBuilder$
|
|
25587
|
+
return keyBuilder$1B(luvio, keyParams);
|
|
25475
25588
|
}
|
|
25476
25589
|
function normalize$x(input, existing, path, luvio, store, timestamp) {
|
|
25477
25590
|
return input;
|
|
@@ -25479,7 +25592,7 @@
|
|
|
25479
25592
|
const select$1s = function PlatformActionRepresentationSelect() {
|
|
25480
25593
|
return {
|
|
25481
25594
|
kind: 'Fragment',
|
|
25482
|
-
version: VERSION$
|
|
25595
|
+
version: VERSION$X$1,
|
|
25483
25596
|
private: [
|
|
25484
25597
|
'id'
|
|
25485
25598
|
],
|
|
@@ -25559,7 +25672,7 @@
|
|
|
25559
25672
|
]
|
|
25560
25673
|
};
|
|
25561
25674
|
};
|
|
25562
|
-
function equals$
|
|
25675
|
+
function equals$K(existing, incoming) {
|
|
25563
25676
|
const existing_actionListContext = existing.actionListContext;
|
|
25564
25677
|
const incoming_actionListContext = incoming.actionListContext;
|
|
25565
25678
|
if (!(existing_actionListContext === incoming_actionListContext)) {
|
|
@@ -25658,31 +25771,31 @@
|
|
|
25658
25771
|
return true;
|
|
25659
25772
|
}
|
|
25660
25773
|
const ingest$x$1 = function PlatformActionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
25661
|
-
const key = keyBuilderFromType$
|
|
25774
|
+
const key = keyBuilderFromType$o(luvio, input);
|
|
25662
25775
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
25663
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "UiApi", VERSION$
|
|
25776
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "UiApi", VERSION$X$1, RepresentationType$D, equals$K);
|
|
25664
25777
|
return createLink$3(key);
|
|
25665
25778
|
};
|
|
25666
|
-
function getTypeCacheKeys$
|
|
25779
|
+
function getTypeCacheKeys$E$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
25667
25780
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
25668
|
-
const rootKey = keyBuilderFromType$
|
|
25781
|
+
const rootKey = keyBuilderFromType$o(luvio, input);
|
|
25669
25782
|
rootKeySet.set(rootKey, {
|
|
25670
25783
|
namespace: keyPrefix$1,
|
|
25671
|
-
representationName: RepresentationType$
|
|
25784
|
+
representationName: RepresentationType$D,
|
|
25672
25785
|
mergeable: false
|
|
25673
25786
|
});
|
|
25674
25787
|
}
|
|
25675
25788
|
|
|
25676
|
-
const VERSION$
|
|
25677
|
-
const RepresentationType$
|
|
25678
|
-
function keyBuilder$
|
|
25679
|
-
return keyPrefix$1 + '::' + RepresentationType$
|
|
25789
|
+
const VERSION$W$1 = "378d506f563a4bd724b322d440df33d1";
|
|
25790
|
+
const RepresentationType$C = 'EntityActionRepresentation';
|
|
25791
|
+
function keyBuilder$1A(luvio, config) {
|
|
25792
|
+
return keyPrefix$1 + '::' + RepresentationType$C + ':' + config.url;
|
|
25680
25793
|
}
|
|
25681
|
-
function keyBuilderFromType$
|
|
25794
|
+
function keyBuilderFromType$n(luvio, object) {
|
|
25682
25795
|
const keyParams = {
|
|
25683
25796
|
url: object.url
|
|
25684
25797
|
};
|
|
25685
|
-
return keyBuilder$
|
|
25798
|
+
return keyBuilder$1A(luvio, keyParams);
|
|
25686
25799
|
}
|
|
25687
25800
|
function normalize$w(input, existing, path, luvio, store, timestamp) {
|
|
25688
25801
|
const input_actions = input.actions;
|
|
@@ -25706,7 +25819,7 @@
|
|
|
25706
25819
|
const select$1r = function EntityActionRepresentationSelect() {
|
|
25707
25820
|
return {
|
|
25708
25821
|
kind: 'Fragment',
|
|
25709
|
-
version: VERSION$
|
|
25822
|
+
version: VERSION$W$1,
|
|
25710
25823
|
private: [
|
|
25711
25824
|
'links',
|
|
25712
25825
|
'url'
|
|
@@ -25721,7 +25834,7 @@
|
|
|
25721
25834
|
]
|
|
25722
25835
|
};
|
|
25723
25836
|
};
|
|
25724
|
-
function equals$
|
|
25837
|
+
function equals$J(existing, incoming) {
|
|
25725
25838
|
const existing_url = existing.url;
|
|
25726
25839
|
const incoming_url = incoming.url;
|
|
25727
25840
|
if (!(existing_url === incoming_url)) {
|
|
@@ -25750,28 +25863,28 @@
|
|
|
25750
25863
|
return true;
|
|
25751
25864
|
}
|
|
25752
25865
|
const ingest$w$1 = function EntityActionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
25753
|
-
const key = keyBuilderFromType$
|
|
25866
|
+
const key = keyBuilderFromType$n(luvio, input);
|
|
25754
25867
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
25755
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "UiApi", VERSION$
|
|
25868
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "UiApi", VERSION$W$1, RepresentationType$C, equals$J);
|
|
25756
25869
|
return createLink$3(key);
|
|
25757
25870
|
};
|
|
25758
|
-
function getTypeCacheKeys$
|
|
25871
|
+
function getTypeCacheKeys$D$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
25759
25872
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
25760
|
-
const rootKey = keyBuilderFromType$
|
|
25873
|
+
const rootKey = keyBuilderFromType$n(luvio, input);
|
|
25761
25874
|
rootKeySet.set(rootKey, {
|
|
25762
25875
|
namespace: keyPrefix$1,
|
|
25763
|
-
representationName: RepresentationType$
|
|
25876
|
+
representationName: RepresentationType$C,
|
|
25764
25877
|
mergeable: false
|
|
25765
25878
|
});
|
|
25766
25879
|
const input_actions_length = input.actions.length;
|
|
25767
25880
|
for (let i = 0; i < input_actions_length; i++) {
|
|
25768
|
-
getTypeCacheKeys$
|
|
25881
|
+
getTypeCacheKeys$E$1(rootKeySet, luvio, input.actions[i]);
|
|
25769
25882
|
}
|
|
25770
25883
|
}
|
|
25771
25884
|
|
|
25772
|
-
const TTL$
|
|
25773
|
-
const VERSION$
|
|
25774
|
-
const RepresentationType$
|
|
25885
|
+
const TTL$p = 300000;
|
|
25886
|
+
const VERSION$V$1 = "e485d96c1402a9ca2f56e56485af0216";
|
|
25887
|
+
const RepresentationType$B = 'ActionRepresentation';
|
|
25775
25888
|
function normalize$v(input, existing, path, luvio, store, timestamp) {
|
|
25776
25889
|
const input_actions = input.actions;
|
|
25777
25890
|
const input_actions_id = path.fullPath + '__actions';
|
|
@@ -25797,7 +25910,7 @@
|
|
|
25797
25910
|
const select$1q = function ActionRepresentationSelect() {
|
|
25798
25911
|
return {
|
|
25799
25912
|
kind: 'Fragment',
|
|
25800
|
-
version: VERSION$
|
|
25913
|
+
version: VERSION$V$1,
|
|
25801
25914
|
private: [
|
|
25802
25915
|
'eTag',
|
|
25803
25916
|
'url'
|
|
@@ -25812,7 +25925,7 @@
|
|
|
25812
25925
|
]
|
|
25813
25926
|
};
|
|
25814
25927
|
};
|
|
25815
|
-
function equals$
|
|
25928
|
+
function equals$I(existing, incoming) {
|
|
25816
25929
|
const existing_eTag = existing.eTag;
|
|
25817
25930
|
const incoming_eTag = incoming.eTag;
|
|
25818
25931
|
if (!(existing_eTag === incoming_eTag)) {
|
|
@@ -25837,16 +25950,16 @@
|
|
|
25837
25950
|
}
|
|
25838
25951
|
const ingest$v$1 = function ActionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
25839
25952
|
const key = path.fullPath;
|
|
25840
|
-
const ttlToUse = TTL$
|
|
25841
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "UiApi", VERSION$
|
|
25953
|
+
const ttlToUse = TTL$p;
|
|
25954
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "UiApi", VERSION$V$1, RepresentationType$B, equals$I);
|
|
25842
25955
|
return createLink$3(key);
|
|
25843
25956
|
};
|
|
25844
|
-
function getTypeCacheKeys$
|
|
25957
|
+
function getTypeCacheKeys$C$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
25845
25958
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
25846
25959
|
const rootKey = fullPathFactory();
|
|
25847
25960
|
rootKeySet.set(rootKey, {
|
|
25848
25961
|
namespace: keyPrefix$1,
|
|
25849
|
-
representationName: RepresentationType$
|
|
25962
|
+
representationName: RepresentationType$B,
|
|
25850
25963
|
mergeable: false
|
|
25851
25964
|
});
|
|
25852
25965
|
const input_actions = input.actions;
|
|
@@ -25854,22 +25967,22 @@
|
|
|
25854
25967
|
const input_actions_length = input_actions_keys.length;
|
|
25855
25968
|
for (let i = 0; i < input_actions_length; i++) {
|
|
25856
25969
|
const key = input_actions_keys[i];
|
|
25857
|
-
getTypeCacheKeys$
|
|
25970
|
+
getTypeCacheKeys$D$1(rootKeySet, luvio, input_actions[key]);
|
|
25858
25971
|
}
|
|
25859
25972
|
}
|
|
25860
25973
|
|
|
25861
25974
|
function select$1p(luvio, params) {
|
|
25862
25975
|
return select$1q();
|
|
25863
25976
|
}
|
|
25864
|
-
function keyBuilder$
|
|
25977
|
+
function keyBuilder$1z(luvio, params) {
|
|
25865
25978
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'apiNames:' + params.queryParams.apiNames + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'retrievalMode:' + params.queryParams.retrievalMode + ',' + 'sections:' + params.queryParams.sections + ')';
|
|
25866
25979
|
}
|
|
25867
25980
|
function getResponseCacheKeys$P(storeKeyMap, luvio, resourceParams, response) {
|
|
25868
|
-
getTypeCacheKeys$
|
|
25981
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1z(luvio, resourceParams));
|
|
25869
25982
|
}
|
|
25870
25983
|
function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
|
|
25871
25984
|
const { body } = response;
|
|
25872
|
-
const key = keyBuilder$
|
|
25985
|
+
const key = keyBuilder$1z(luvio, resourceParams);
|
|
25873
25986
|
luvio.storeIngest(key, ingest$v$1, body);
|
|
25874
25987
|
const snapshot = luvio.storeLookup({
|
|
25875
25988
|
recordId: key,
|
|
@@ -25880,13 +25993,13 @@
|
|
|
25880
25993
|
return snapshot;
|
|
25881
25994
|
}
|
|
25882
25995
|
function ingestError$B(luvio, params, error, snapshotRefresh) {
|
|
25883
|
-
const key = keyBuilder$
|
|
25996
|
+
const key = keyBuilder$1z(luvio, params);
|
|
25884
25997
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
25885
25998
|
const storeMetadataParams = {
|
|
25886
|
-
ttl: TTL$
|
|
25999
|
+
ttl: TTL$p,
|
|
25887
26000
|
namespace: keyPrefix$1,
|
|
25888
|
-
version: VERSION$
|
|
25889
|
-
representationName: RepresentationType$
|
|
26001
|
+
version: VERSION$V$1,
|
|
26002
|
+
representationName: RepresentationType$B
|
|
25890
26003
|
};
|
|
25891
26004
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
25892
26005
|
return errorSnapshot;
|
|
@@ -25915,9 +26028,9 @@
|
|
|
25915
26028
|
];
|
|
25916
26029
|
const getGlobalActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$P, getGlobalActions_ConfigPropertyMetadata);
|
|
25917
26030
|
const createResourceParams$O = /*#__PURE__*/ createResourceParams$X(getGlobalActions_ConfigPropertyMetadata);
|
|
25918
|
-
function keyBuilder$
|
|
26031
|
+
function keyBuilder$1y(luvio, config) {
|
|
25919
26032
|
const resourceParams = createResourceParams$O(config);
|
|
25920
|
-
return keyBuilder$
|
|
26033
|
+
return keyBuilder$1z(luvio, resourceParams);
|
|
25921
26034
|
}
|
|
25922
26035
|
function typeCheckConfig$U(untrustedConfig) {
|
|
25923
26036
|
const config = {};
|
|
@@ -25973,7 +26086,7 @@
|
|
|
25973
26086
|
function buildCachedSnapshotCachePolicy$H(context, storeLookup) {
|
|
25974
26087
|
const { luvio, config } = context;
|
|
25975
26088
|
const selector = {
|
|
25976
|
-
recordId: keyBuilder$
|
|
26089
|
+
recordId: keyBuilder$1y(luvio, config),
|
|
25977
26090
|
node: adapterFragment$A(luvio, config),
|
|
25978
26091
|
variables: {},
|
|
25979
26092
|
};
|
|
@@ -25993,17 +26106,17 @@
|
|
|
25993
26106
|
buildCachedSnapshotCachePolicy$H, buildNetworkSnapshotCachePolicy$I);
|
|
25994
26107
|
};
|
|
25995
26108
|
|
|
25996
|
-
const TTL$
|
|
25997
|
-
const VERSION$
|
|
25998
|
-
const RepresentationType$
|
|
25999
|
-
function keyBuilder$
|
|
26000
|
-
return keyPrefix$1 + '::' + RepresentationType$
|
|
26109
|
+
const TTL$o = 900000;
|
|
26110
|
+
const VERSION$U$1 = "3c5af9dc4086169091e3c5df2414c495";
|
|
26111
|
+
const RepresentationType$A = 'QuickActionLayoutRepresentation';
|
|
26112
|
+
function keyBuilder$1x(luvio, config) {
|
|
26113
|
+
return keyPrefix$1 + '::' + RepresentationType$A + ':' + config.actionApiName;
|
|
26001
26114
|
}
|
|
26002
|
-
function keyBuilderFromType$
|
|
26115
|
+
function keyBuilderFromType$m(luvio, object) {
|
|
26003
26116
|
const keyParams = {
|
|
26004
26117
|
actionApiName: object.actionApiName
|
|
26005
26118
|
};
|
|
26006
|
-
return keyBuilder$
|
|
26119
|
+
return keyBuilder$1x(luvio, keyParams);
|
|
26007
26120
|
}
|
|
26008
26121
|
function normalize$u(input, existing, path, luvio, store, timestamp) {
|
|
26009
26122
|
return input;
|
|
@@ -26011,7 +26124,7 @@
|
|
|
26011
26124
|
const select$1o = function QuickActionLayoutRepresentationSelect() {
|
|
26012
26125
|
return {
|
|
26013
26126
|
kind: 'Fragment',
|
|
26014
|
-
version: VERSION$
|
|
26127
|
+
version: VERSION$U$1,
|
|
26015
26128
|
private: [
|
|
26016
26129
|
'eTag'
|
|
26017
26130
|
],
|
|
@@ -26028,24 +26141,24 @@
|
|
|
26028
26141
|
]
|
|
26029
26142
|
};
|
|
26030
26143
|
};
|
|
26031
|
-
function equals$
|
|
26144
|
+
function equals$H(existing, incoming) {
|
|
26032
26145
|
if (existing.eTag !== incoming.eTag) {
|
|
26033
26146
|
return false;
|
|
26034
26147
|
}
|
|
26035
26148
|
return true;
|
|
26036
26149
|
}
|
|
26037
26150
|
const ingest$u$1 = function QuickActionLayoutRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
26038
|
-
const key = keyBuilderFromType$
|
|
26039
|
-
const ttlToUse = TTL$
|
|
26040
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "UiApi", VERSION$
|
|
26151
|
+
const key = keyBuilderFromType$m(luvio, input);
|
|
26152
|
+
const ttlToUse = TTL$o;
|
|
26153
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "UiApi", VERSION$U$1, RepresentationType$A, equals$H);
|
|
26041
26154
|
return createLink$3(key);
|
|
26042
26155
|
};
|
|
26043
|
-
function getTypeCacheKeys$
|
|
26156
|
+
function getTypeCacheKeys$B$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
26044
26157
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
26045
|
-
const rootKey = keyBuilderFromType$
|
|
26158
|
+
const rootKey = keyBuilderFromType$m(luvio, input);
|
|
26046
26159
|
rootKeySet.set(rootKey, {
|
|
26047
26160
|
namespace: keyPrefix$1,
|
|
26048
|
-
representationName: RepresentationType$
|
|
26161
|
+
representationName: RepresentationType$A,
|
|
26049
26162
|
mergeable: false
|
|
26050
26163
|
});
|
|
26051
26164
|
}
|
|
@@ -26053,17 +26166,17 @@
|
|
|
26053
26166
|
function select$1n(luvio, params) {
|
|
26054
26167
|
return select$1o();
|
|
26055
26168
|
}
|
|
26056
|
-
function keyBuilder$
|
|
26057
|
-
return keyBuilder$
|
|
26169
|
+
function keyBuilder$1w(luvio, params) {
|
|
26170
|
+
return keyBuilder$1x(luvio, {
|
|
26058
26171
|
actionApiName: params.urlParams.actionApiName
|
|
26059
26172
|
});
|
|
26060
26173
|
}
|
|
26061
26174
|
function getResponseCacheKeys$O(storeKeyMap, luvio, resourceParams, response) {
|
|
26062
|
-
getTypeCacheKeys$
|
|
26175
|
+
getTypeCacheKeys$B$1(storeKeyMap, luvio, response);
|
|
26063
26176
|
}
|
|
26064
26177
|
function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
|
|
26065
26178
|
const { body } = response;
|
|
26066
|
-
const key = keyBuilder$
|
|
26179
|
+
const key = keyBuilder$1w(luvio, resourceParams);
|
|
26067
26180
|
luvio.storeIngest(key, ingest$u$1, body);
|
|
26068
26181
|
const snapshot = luvio.storeLookup({
|
|
26069
26182
|
recordId: key,
|
|
@@ -26074,13 +26187,13 @@
|
|
|
26074
26187
|
return snapshot;
|
|
26075
26188
|
}
|
|
26076
26189
|
function ingestError$A(luvio, params, error, snapshotRefresh) {
|
|
26077
|
-
const key = keyBuilder$
|
|
26190
|
+
const key = keyBuilder$1w(luvio, params);
|
|
26078
26191
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26079
26192
|
const storeMetadataParams = {
|
|
26080
|
-
ttl: TTL$
|
|
26193
|
+
ttl: TTL$o,
|
|
26081
26194
|
namespace: keyPrefix$1,
|
|
26082
|
-
version: VERSION$
|
|
26083
|
-
representationName: RepresentationType$
|
|
26195
|
+
version: VERSION$U$1,
|
|
26196
|
+
representationName: RepresentationType$A
|
|
26084
26197
|
};
|
|
26085
26198
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
26086
26199
|
return errorSnapshot;
|
|
@@ -26105,9 +26218,9 @@
|
|
|
26105
26218
|
];
|
|
26106
26219
|
const getQuickActionLayout_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$O, getQuickActionLayout_ConfigPropertyMetadata);
|
|
26107
26220
|
const createResourceParams$N = /*#__PURE__*/ createResourceParams$X(getQuickActionLayout_ConfigPropertyMetadata);
|
|
26108
|
-
function keyBuilder$
|
|
26221
|
+
function keyBuilder$1v(luvio, config) {
|
|
26109
26222
|
const resourceParams = createResourceParams$N(config);
|
|
26110
|
-
return keyBuilder$
|
|
26223
|
+
return keyBuilder$1w(luvio, resourceParams);
|
|
26111
26224
|
}
|
|
26112
26225
|
function typeCheckConfig$T(untrustedConfig) {
|
|
26113
26226
|
const config = {};
|
|
@@ -26162,7 +26275,7 @@
|
|
|
26162
26275
|
function buildCachedSnapshotCachePolicy$G(context, storeLookup) {
|
|
26163
26276
|
const { luvio, config } = context;
|
|
26164
26277
|
const selector = {
|
|
26165
|
-
recordId: keyBuilder$
|
|
26278
|
+
recordId: keyBuilder$1v(luvio, config),
|
|
26166
26279
|
node: adapterFragment$z(luvio, config),
|
|
26167
26280
|
variables: {},
|
|
26168
26281
|
};
|
|
@@ -26217,15 +26330,15 @@
|
|
|
26217
26330
|
function select$1m(luvio, params) {
|
|
26218
26331
|
return select$1q();
|
|
26219
26332
|
}
|
|
26220
|
-
function keyBuilder$
|
|
26333
|
+
function keyBuilder$1u(luvio, params) {
|
|
26221
26334
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'objectApiNames:' + params.urlParams.objectApiNames + ')';
|
|
26222
26335
|
}
|
|
26223
26336
|
function getResponseCacheKeys$N(storeKeyMap, luvio, resourceParams, response) {
|
|
26224
|
-
getTypeCacheKeys$
|
|
26337
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1u(luvio, resourceParams));
|
|
26225
26338
|
}
|
|
26226
26339
|
function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
|
|
26227
26340
|
const { body } = response;
|
|
26228
|
-
const key = keyBuilder$
|
|
26341
|
+
const key = keyBuilder$1u(luvio, resourceParams);
|
|
26229
26342
|
luvio.storeIngest(key, ingest$v$1, body);
|
|
26230
26343
|
const snapshot = luvio.storeLookup({
|
|
26231
26344
|
recordId: key,
|
|
@@ -26236,13 +26349,13 @@
|
|
|
26236
26349
|
return snapshot;
|
|
26237
26350
|
}
|
|
26238
26351
|
function ingestError$z(luvio, params, error, snapshotRefresh) {
|
|
26239
|
-
const key = keyBuilder$
|
|
26352
|
+
const key = keyBuilder$1u(luvio, params);
|
|
26240
26353
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26241
26354
|
const storeMetadataParams = {
|
|
26242
|
-
ttl: TTL$
|
|
26355
|
+
ttl: TTL$p,
|
|
26243
26356
|
namespace: keyPrefix$1,
|
|
26244
|
-
version: VERSION$
|
|
26245
|
-
representationName: RepresentationType$
|
|
26357
|
+
version: VERSION$V$1,
|
|
26358
|
+
representationName: RepresentationType$B
|
|
26246
26359
|
};
|
|
26247
26360
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
26248
26361
|
return errorSnapshot;
|
|
@@ -26270,9 +26383,9 @@
|
|
|
26270
26383
|
];
|
|
26271
26384
|
const getLookupActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$N, getLookupActions_ConfigPropertyMetadata);
|
|
26272
26385
|
const createResourceParams$M = /*#__PURE__*/ createResourceParams$X(getLookupActions_ConfigPropertyMetadata);
|
|
26273
|
-
function keyBuilder$
|
|
26386
|
+
function keyBuilder$1t(luvio, config) {
|
|
26274
26387
|
const resourceParams = createResourceParams$M(config);
|
|
26275
|
-
return keyBuilder$
|
|
26388
|
+
return keyBuilder$1u(luvio, resourceParams);
|
|
26276
26389
|
}
|
|
26277
26390
|
function typeCheckConfig$S(untrustedConfig) {
|
|
26278
26391
|
const config = {};
|
|
@@ -26328,7 +26441,7 @@
|
|
|
26328
26441
|
function buildCachedSnapshotCachePolicy$F(context, storeLookup) {
|
|
26329
26442
|
const { luvio, config } = context;
|
|
26330
26443
|
const selector = {
|
|
26331
|
-
recordId: keyBuilder$
|
|
26444
|
+
recordId: keyBuilder$1t(luvio, config),
|
|
26332
26445
|
node: adapterFragment$y(luvio, config),
|
|
26333
26446
|
variables: {},
|
|
26334
26447
|
};
|
|
@@ -26351,15 +26464,15 @@
|
|
|
26351
26464
|
function select$1l(luvio, params) {
|
|
26352
26465
|
return select$1q();
|
|
26353
26466
|
}
|
|
26354
|
-
function keyBuilder$
|
|
26467
|
+
function keyBuilder$1s(luvio, params) {
|
|
26355
26468
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
26356
26469
|
}
|
|
26357
26470
|
function getResponseCacheKeys$M(storeKeyMap, luvio, resourceParams, response) {
|
|
26358
|
-
getTypeCacheKeys$
|
|
26471
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1s(luvio, resourceParams));
|
|
26359
26472
|
}
|
|
26360
26473
|
function ingestSuccess$C(luvio, resourceParams, response, snapshotRefresh) {
|
|
26361
26474
|
const { body } = response;
|
|
26362
|
-
const key = keyBuilder$
|
|
26475
|
+
const key = keyBuilder$1s(luvio, resourceParams);
|
|
26363
26476
|
luvio.storeIngest(key, ingest$v$1, body);
|
|
26364
26477
|
const snapshot = luvio.storeLookup({
|
|
26365
26478
|
recordId: key,
|
|
@@ -26370,13 +26483,13 @@
|
|
|
26370
26483
|
return snapshot;
|
|
26371
26484
|
}
|
|
26372
26485
|
function ingestError$y(luvio, params, error, snapshotRefresh) {
|
|
26373
|
-
const key = keyBuilder$
|
|
26486
|
+
const key = keyBuilder$1s(luvio, params);
|
|
26374
26487
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26375
26488
|
const storeMetadataParams = {
|
|
26376
|
-
ttl: TTL$
|
|
26489
|
+
ttl: TTL$p,
|
|
26377
26490
|
namespace: keyPrefix$1,
|
|
26378
|
-
version: VERSION$
|
|
26379
|
-
representationName: RepresentationType$
|
|
26491
|
+
version: VERSION$V$1,
|
|
26492
|
+
representationName: RepresentationType$B
|
|
26380
26493
|
};
|
|
26381
26494
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
26382
26495
|
return errorSnapshot;
|
|
@@ -26404,9 +26517,9 @@
|
|
|
26404
26517
|
];
|
|
26405
26518
|
const getObjectCreateActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$M, getObjectCreateActions_ConfigPropertyMetadata);
|
|
26406
26519
|
const createResourceParams$L = /*#__PURE__*/ createResourceParams$X(getObjectCreateActions_ConfigPropertyMetadata);
|
|
26407
|
-
function keyBuilder$
|
|
26520
|
+
function keyBuilder$1r(luvio, config) {
|
|
26408
26521
|
const resourceParams = createResourceParams$L(config);
|
|
26409
|
-
return keyBuilder$
|
|
26522
|
+
return keyBuilder$1s(luvio, resourceParams);
|
|
26410
26523
|
}
|
|
26411
26524
|
function typeCheckConfig$R(untrustedConfig) {
|
|
26412
26525
|
const config = {};
|
|
@@ -26462,7 +26575,7 @@
|
|
|
26462
26575
|
function buildCachedSnapshotCachePolicy$E(context, storeLookup) {
|
|
26463
26576
|
const { luvio, config } = context;
|
|
26464
26577
|
const selector = {
|
|
26465
|
-
recordId: keyBuilder$
|
|
26578
|
+
recordId: keyBuilder$1r(luvio, config),
|
|
26466
26579
|
node: adapterFragment$x(luvio, config),
|
|
26467
26580
|
variables: {},
|
|
26468
26581
|
};
|
|
@@ -26482,20 +26595,20 @@
|
|
|
26482
26595
|
buildCachedSnapshotCachePolicy$E, buildNetworkSnapshotCachePolicy$F);
|
|
26483
26596
|
};
|
|
26484
26597
|
|
|
26485
|
-
const VERSION$
|
|
26486
|
-
const RepresentationType$
|
|
26598
|
+
const VERSION$T$1 = "fecd80e9e24a1c1e75fd5395cd34ff2e";
|
|
26599
|
+
const RepresentationType$z = 'ActionOverrideRepresentation';
|
|
26487
26600
|
function normalize$t(input, existing, path, luvio, store, timestamp) {
|
|
26488
26601
|
return input;
|
|
26489
26602
|
}
|
|
26490
26603
|
const select$1k = function ActionOverrideRepresentationSelect() {
|
|
26491
26604
|
return {
|
|
26492
26605
|
kind: 'Fragment',
|
|
26493
|
-
version: VERSION$
|
|
26606
|
+
version: VERSION$T$1,
|
|
26494
26607
|
private: [],
|
|
26495
26608
|
opaque: true
|
|
26496
26609
|
};
|
|
26497
26610
|
};
|
|
26498
|
-
function equals$
|
|
26611
|
+
function equals$G(existing, incoming) {
|
|
26499
26612
|
if (JSONStringify$2(incoming) !== JSONStringify$2(existing)) {
|
|
26500
26613
|
return false;
|
|
26501
26614
|
}
|
|
@@ -26504,15 +26617,15 @@
|
|
|
26504
26617
|
const ingest$t$1 = function ActionOverrideRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
26505
26618
|
const key = path.fullPath;
|
|
26506
26619
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
26507
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$t, "UiApi", VERSION$
|
|
26620
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$t, "UiApi", VERSION$T$1, RepresentationType$z, equals$G);
|
|
26508
26621
|
return createLink$3(key);
|
|
26509
26622
|
};
|
|
26510
|
-
function getTypeCacheKeys$
|
|
26623
|
+
function getTypeCacheKeys$A$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
26511
26624
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
26512
26625
|
const rootKey = fullPathFactory();
|
|
26513
26626
|
rootKeySet.set(rootKey, {
|
|
26514
26627
|
namespace: keyPrefix$1,
|
|
26515
|
-
representationName: RepresentationType$
|
|
26628
|
+
representationName: RepresentationType$z,
|
|
26516
26629
|
mergeable: false
|
|
26517
26630
|
});
|
|
26518
26631
|
}
|
|
@@ -26520,15 +26633,15 @@
|
|
|
26520
26633
|
function select$1j(luvio, params) {
|
|
26521
26634
|
return select$1k();
|
|
26522
26635
|
}
|
|
26523
|
-
function keyBuilder$
|
|
26636
|
+
function keyBuilder$1q(luvio, params) {
|
|
26524
26637
|
return keyPrefix$1 + '::ActionOverrideRepresentation:(' + 'type:' + params.queryParams.type + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
26525
26638
|
}
|
|
26526
26639
|
function getResponseCacheKeys$L(storeKeyMap, luvio, resourceParams, response) {
|
|
26527
|
-
getTypeCacheKeys$
|
|
26640
|
+
getTypeCacheKeys$A$1(storeKeyMap, luvio, response, () => keyBuilder$1q(luvio, resourceParams));
|
|
26528
26641
|
}
|
|
26529
26642
|
function ingestSuccess$B(luvio, resourceParams, response, snapshotRefresh) {
|
|
26530
26643
|
const { body } = response;
|
|
26531
|
-
const key = keyBuilder$
|
|
26644
|
+
const key = keyBuilder$1q(luvio, resourceParams);
|
|
26532
26645
|
luvio.storeIngest(key, ingest$t$1, body);
|
|
26533
26646
|
const snapshot = luvio.storeLookup({
|
|
26534
26647
|
recordId: key,
|
|
@@ -26539,7 +26652,7 @@
|
|
|
26539
26652
|
return snapshot;
|
|
26540
26653
|
}
|
|
26541
26654
|
function ingestError$x(luvio, params, error, snapshotRefresh) {
|
|
26542
|
-
const key = keyBuilder$
|
|
26655
|
+
const key = keyBuilder$1q(luvio, params);
|
|
26543
26656
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26544
26657
|
luvio.storeIngestError(key, errorSnapshot);
|
|
26545
26658
|
return errorSnapshot;
|
|
@@ -26565,9 +26678,9 @@
|
|
|
26565
26678
|
];
|
|
26566
26679
|
const getActionOverrides_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$L, getActionOverrides_ConfigPropertyMetadata);
|
|
26567
26680
|
const createResourceParams$K = /*#__PURE__*/ createResourceParams$X(getActionOverrides_ConfigPropertyMetadata);
|
|
26568
|
-
function keyBuilder$
|
|
26681
|
+
function keyBuilder$1p(luvio, config) {
|
|
26569
26682
|
const resourceParams = createResourceParams$K(config);
|
|
26570
|
-
return keyBuilder$
|
|
26683
|
+
return keyBuilder$1q(luvio, resourceParams);
|
|
26571
26684
|
}
|
|
26572
26685
|
function typeCheckConfig$Q(untrustedConfig) {
|
|
26573
26686
|
const config = {};
|
|
@@ -26623,7 +26736,7 @@
|
|
|
26623
26736
|
function buildCachedSnapshotCachePolicy$D(context, storeLookup) {
|
|
26624
26737
|
const { luvio, config } = context;
|
|
26625
26738
|
const selector = {
|
|
26626
|
-
recordId: keyBuilder$
|
|
26739
|
+
recordId: keyBuilder$1p(luvio, config),
|
|
26627
26740
|
node: adapterFragment$w(luvio, config),
|
|
26628
26741
|
variables: {},
|
|
26629
26742
|
};
|
|
@@ -26643,118 +26756,11 @@
|
|
|
26643
26756
|
buildCachedSnapshotCachePolicy$D, buildNetworkSnapshotCachePolicy$E);
|
|
26644
26757
|
};
|
|
26645
26758
|
|
|
26646
|
-
const TTL$o = 900000;
|
|
26647
|
-
const VERSION$T$1 = "993b0a7bce6056c4f57ed300ec153d9c";
|
|
26648
|
-
const RepresentationType$z = 'QuickActionDefaultsRepresentation';
|
|
26649
|
-
function keyBuilder$1p(luvio, config) {
|
|
26650
|
-
return keyPrefix$1 + '::' + RepresentationType$z + ':' + config.actionApiName;
|
|
26651
|
-
}
|
|
26652
|
-
function keyBuilderFromType$m(luvio, object) {
|
|
26653
|
-
const keyParams = {
|
|
26654
|
-
actionApiName: object.actionApiName
|
|
26655
|
-
};
|
|
26656
|
-
return keyBuilder$1p(luvio, keyParams);
|
|
26657
|
-
}
|
|
26658
|
-
function dynamicNormalize$4(ingestParams) {
|
|
26659
|
-
return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
|
|
26660
|
-
const input_fields = input.fields;
|
|
26661
|
-
const input_fields_id = path.fullPath + '__fields';
|
|
26662
|
-
const input_fields_keys = Object.keys(input_fields);
|
|
26663
|
-
const input_fields_length = input_fields_keys.length;
|
|
26664
|
-
for (let i = 0; i < input_fields_length; i++) {
|
|
26665
|
-
const key = input_fields_keys[i];
|
|
26666
|
-
const input_fields_prop = input_fields[key];
|
|
26667
|
-
const input_fields_prop_id = input_fields_id + '__' + key;
|
|
26668
|
-
input_fields[key] = ingestParams.fields(input_fields_prop, {
|
|
26669
|
-
fullPath: input_fields_prop_id,
|
|
26670
|
-
propertyName: key,
|
|
26671
|
-
parent: {
|
|
26672
|
-
data: input,
|
|
26673
|
-
key: path.fullPath,
|
|
26674
|
-
existing: existing,
|
|
26675
|
-
},
|
|
26676
|
-
ttl: path.ttl
|
|
26677
|
-
}, luvio, store, timestamp);
|
|
26678
|
-
}
|
|
26679
|
-
return input;
|
|
26680
|
-
};
|
|
26681
|
-
}
|
|
26682
|
-
const dynamicSelect$5 = function dynamicQuickActionDefaultsRepresentationSelect(params) {
|
|
26683
|
-
const fieldsPathSelection = params.fields === undefined ? {
|
|
26684
|
-
name: 'fields',
|
|
26685
|
-
kind: 'Link',
|
|
26686
|
-
map: true,
|
|
26687
|
-
fragment: select$1F()
|
|
26688
|
-
} : params.fields;
|
|
26689
|
-
return {
|
|
26690
|
-
kind: 'Fragment',
|
|
26691
|
-
version: VERSION$T$1,
|
|
26692
|
-
private: [
|
|
26693
|
-
'eTag'
|
|
26694
|
-
],
|
|
26695
|
-
selections: [
|
|
26696
|
-
{
|
|
26697
|
-
name: 'actionApiName',
|
|
26698
|
-
kind: 'Scalar'
|
|
26699
|
-
},
|
|
26700
|
-
fieldsPathSelection,
|
|
26701
|
-
{
|
|
26702
|
-
name: 'objectApiName',
|
|
26703
|
-
kind: 'Scalar'
|
|
26704
|
-
}
|
|
26705
|
-
]
|
|
26706
|
-
};
|
|
26707
|
-
};
|
|
26708
|
-
function equals$G(existing, incoming) {
|
|
26709
|
-
const existing_actionApiName = existing.actionApiName;
|
|
26710
|
-
const incoming_actionApiName = incoming.actionApiName;
|
|
26711
|
-
if (!(existing_actionApiName === incoming_actionApiName)) {
|
|
26712
|
-
return false;
|
|
26713
|
-
}
|
|
26714
|
-
const existing_eTag = existing.eTag;
|
|
26715
|
-
const incoming_eTag = incoming.eTag;
|
|
26716
|
-
if (!(existing_eTag === incoming_eTag)) {
|
|
26717
|
-
return false;
|
|
26718
|
-
}
|
|
26719
|
-
const existing_objectApiName = existing.objectApiName;
|
|
26720
|
-
const incoming_objectApiName = incoming.objectApiName;
|
|
26721
|
-
if (!(existing_objectApiName === incoming_objectApiName)) {
|
|
26722
|
-
return false;
|
|
26723
|
-
}
|
|
26724
|
-
const existing_fields = existing.fields;
|
|
26725
|
-
const incoming_fields = incoming.fields;
|
|
26726
|
-
const equals_fields_props = equalsObject$1(existing_fields, incoming_fields, (existing_fields_prop, incoming_fields_prop) => {
|
|
26727
|
-
if (!(existing_fields_prop.__ref === incoming_fields_prop.__ref)) {
|
|
26728
|
-
return false;
|
|
26729
|
-
}
|
|
26730
|
-
});
|
|
26731
|
-
if (equals_fields_props === false) {
|
|
26732
|
-
return false;
|
|
26733
|
-
}
|
|
26734
|
-
return true;
|
|
26735
|
-
}
|
|
26736
|
-
function getTypeCacheKeys$A$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
26737
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
26738
|
-
const rootKey = keyBuilderFromType$m(luvio, input);
|
|
26739
|
-
rootKeySet.set(rootKey, {
|
|
26740
|
-
namespace: keyPrefix$1,
|
|
26741
|
-
representationName: RepresentationType$z,
|
|
26742
|
-
mergeable: false
|
|
26743
|
-
});
|
|
26744
|
-
const input_fields = input.fields;
|
|
26745
|
-
const input_fields_keys = ObjectKeys$2(input_fields);
|
|
26746
|
-
const input_fields_length = input_fields_keys.length;
|
|
26747
|
-
for (let i = 0; i < input_fields_length; i++) {
|
|
26748
|
-
const key = input_fields_keys[i];
|
|
26749
|
-
getTypeCacheKeys$R$1(rootKeySet, luvio, input_fields[key], () => rootKey + "__fields" + "__" + key);
|
|
26750
|
-
}
|
|
26751
|
-
}
|
|
26752
|
-
|
|
26753
26759
|
const QUICK_ACTION_DEFAULTS_STORE_METADATA_PARAMS = {
|
|
26754
|
-
ttl: TTL$
|
|
26760
|
+
ttl: TTL$q,
|
|
26755
26761
|
namespace: keyPrefix$1,
|
|
26756
|
-
representationName: RepresentationType$
|
|
26757
|
-
version: VERSION$
|
|
26762
|
+
representationName: RepresentationType$E,
|
|
26763
|
+
version: VERSION$Y$1,
|
|
26758
26764
|
};
|
|
26759
26765
|
function merge$1(existing, incoming) {
|
|
26760
26766
|
if (existing === undefined) {
|
|
@@ -26771,7 +26777,7 @@
|
|
|
26771
26777
|
}
|
|
26772
26778
|
const dynamicIngest$4 = (ingestParams) => {
|
|
26773
26779
|
return function QuickActionDefaultsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
26774
|
-
const key = keyBuilderFromType$
|
|
26780
|
+
const key = keyBuilderFromType$p(luvio, input);
|
|
26775
26781
|
const existingRecord = store.readEntry(key);
|
|
26776
26782
|
let incomingRecord = dynamicNormalize$4(ingestParams)(input, store.readEntry(key), {
|
|
26777
26783
|
fullPath: key,
|
|
@@ -26779,7 +26785,7 @@
|
|
|
26779
26785
|
propertyName: path.propertyName,
|
|
26780
26786
|
}, luvio, store, timestamp);
|
|
26781
26787
|
incomingRecord = merge$1(existingRecord, incomingRecord);
|
|
26782
|
-
if (existingRecord === undefined || equals$
|
|
26788
|
+
if (existingRecord === undefined || equals$L(existingRecord, incomingRecord) === false) {
|
|
26783
26789
|
luvio.storePublish(key, incomingRecord);
|
|
26784
26790
|
}
|
|
26785
26791
|
luvio.publishStoreMetadata(key, QUICK_ACTION_DEFAULTS_STORE_METADATA_PARAMS);
|
|
@@ -26831,21 +26837,21 @@
|
|
|
26831
26837
|
}
|
|
26832
26838
|
|
|
26833
26839
|
function keyBuilder$1o(luvio, params) {
|
|
26834
|
-
return keyBuilder$
|
|
26840
|
+
return keyBuilder$1C(luvio, {
|
|
26835
26841
|
actionApiName: params.urlParams.actionApiName
|
|
26836
26842
|
});
|
|
26837
26843
|
}
|
|
26838
26844
|
function getResponseCacheKeys$K(storeKeyMap, luvio, resourceParams, response) {
|
|
26839
|
-
getTypeCacheKeys$
|
|
26845
|
+
getTypeCacheKeys$F$1(storeKeyMap, luvio, response);
|
|
26840
26846
|
}
|
|
26841
26847
|
function ingestError$w(luvio, params, error, snapshotRefresh) {
|
|
26842
26848
|
const key = keyBuilder$1o(luvio, params);
|
|
26843
26849
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26844
26850
|
const storeMetadataParams = {
|
|
26845
|
-
ttl: TTL$
|
|
26851
|
+
ttl: TTL$q,
|
|
26846
26852
|
namespace: keyPrefix$1,
|
|
26847
|
-
version: VERSION$
|
|
26848
|
-
representationName: RepresentationType$
|
|
26853
|
+
version: VERSION$Y$1,
|
|
26854
|
+
representationName: RepresentationType$E
|
|
26849
26855
|
};
|
|
26850
26856
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
26851
26857
|
return errorSnapshot;
|
|
@@ -26980,7 +26986,7 @@
|
|
|
26980
26986
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'apiNames:' + params.queryParams.apiNames + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'retrievalMode:' + params.queryParams.retrievalMode + ',' + 'sections:' + params.queryParams.sections + ',' + 'recordIds:' + params.urlParams.recordIds + ')';
|
|
26981
26987
|
}
|
|
26982
26988
|
function getResponseCacheKeys$J(storeKeyMap, luvio, resourceParams, response) {
|
|
26983
|
-
getTypeCacheKeys$
|
|
26989
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1m(luvio, resourceParams));
|
|
26984
26990
|
}
|
|
26985
26991
|
function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
|
|
26986
26992
|
const { body } = response;
|
|
@@ -26998,10 +27004,10 @@
|
|
|
26998
27004
|
const key = keyBuilder$1m(luvio, params);
|
|
26999
27005
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
27000
27006
|
const storeMetadataParams = {
|
|
27001
|
-
ttl: TTL$
|
|
27007
|
+
ttl: TTL$p,
|
|
27002
27008
|
namespace: keyPrefix$1,
|
|
27003
|
-
version: VERSION$
|
|
27004
|
-
representationName: RepresentationType$
|
|
27009
|
+
version: VERSION$V$1,
|
|
27010
|
+
representationName: RepresentationType$B
|
|
27005
27011
|
};
|
|
27006
27012
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
27007
27013
|
return errorSnapshot;
|
|
@@ -27120,7 +27126,7 @@
|
|
|
27120
27126
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'recordIds:' + params.urlParams.recordIds + ')';
|
|
27121
27127
|
}
|
|
27122
27128
|
function getResponseCacheKeys$I(storeKeyMap, luvio, resourceParams, response) {
|
|
27123
|
-
getTypeCacheKeys$
|
|
27129
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1k(luvio, resourceParams));
|
|
27124
27130
|
}
|
|
27125
27131
|
function ingestSuccess$z(luvio, resourceParams, response, snapshotRefresh) {
|
|
27126
27132
|
const { body } = response;
|
|
@@ -27138,10 +27144,10 @@
|
|
|
27138
27144
|
const key = keyBuilder$1k(luvio, params);
|
|
27139
27145
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
27140
27146
|
const storeMetadataParams = {
|
|
27141
|
-
ttl: TTL$
|
|
27147
|
+
ttl: TTL$p,
|
|
27142
27148
|
namespace: keyPrefix$1,
|
|
27143
|
-
version: VERSION$
|
|
27144
|
-
representationName: RepresentationType$
|
|
27149
|
+
version: VERSION$V$1,
|
|
27150
|
+
representationName: RepresentationType$B
|
|
27145
27151
|
};
|
|
27146
27152
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
27147
27153
|
return errorSnapshot;
|
|
@@ -27324,7 +27330,7 @@
|
|
|
27324
27330
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'recordIds:' + params.urlParams.recordIds + ',' + 'relatedListId:' + params.urlParams.relatedListId + ',' + (params.body.actionTypes === undefined ? 'actionTypes' : 'actionTypes:' + params.body.actionTypes) + '::' + (params.body.apiNames === undefined ? 'apiNames' : 'apiNames:' + params.body.apiNames) + '::' + (params.body.formFactor === undefined ? 'formFactor' : 'formFactor:' + params.body.formFactor) + '::' + (params.body.retrievalMode === undefined ? 'retrievalMode' : 'retrievalMode:' + params.body.retrievalMode) + '::' + (params.body.sections === undefined ? 'sections' : 'sections:' + params.body.sections) + ')';
|
|
27325
27331
|
}
|
|
27326
27332
|
function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
|
|
27327
|
-
getTypeCacheKeys$
|
|
27333
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1i(luvio, resourceParams));
|
|
27328
27334
|
}
|
|
27329
27335
|
function ingestSuccess$y(luvio, resourceParams, response, snapshotRefresh) {
|
|
27330
27336
|
const { body } = response;
|
|
@@ -27342,10 +27348,10 @@
|
|
|
27342
27348
|
const key = keyBuilder$1i(luvio, params);
|
|
27343
27349
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
27344
27350
|
const storeMetadataParams = {
|
|
27345
|
-
ttl: TTL$
|
|
27351
|
+
ttl: TTL$p,
|
|
27346
27352
|
namespace: keyPrefix$1,
|
|
27347
|
-
version: VERSION$
|
|
27348
|
-
representationName: RepresentationType$
|
|
27353
|
+
version: VERSION$V$1,
|
|
27354
|
+
representationName: RepresentationType$B
|
|
27349
27355
|
};
|
|
27350
27356
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
27351
27357
|
return errorSnapshot;
|
|
@@ -27770,7 +27776,7 @@
|
|
|
27770
27776
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'recordIds:' + params.urlParams.recordIds + ',' + 'relatedListRecordIds:' + params.urlParams.relatedListRecordIds + ')';
|
|
27771
27777
|
}
|
|
27772
27778
|
function getResponseCacheKeys$F(storeKeyMap, luvio, resourceParams, response) {
|
|
27773
|
-
getTypeCacheKeys$
|
|
27779
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1e(luvio, resourceParams));
|
|
27774
27780
|
}
|
|
27775
27781
|
function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
|
|
27776
27782
|
const { body } = response;
|
|
@@ -27788,10 +27794,10 @@
|
|
|
27788
27794
|
const key = keyBuilder$1e(luvio, params);
|
|
27789
27795
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
27790
27796
|
const storeMetadataParams = {
|
|
27791
|
-
ttl: TTL$
|
|
27797
|
+
ttl: TTL$p,
|
|
27792
27798
|
namespace: keyPrefix$1,
|
|
27793
|
-
version: VERSION$
|
|
27794
|
-
representationName: RepresentationType$
|
|
27799
|
+
version: VERSION$V$1,
|
|
27800
|
+
representationName: RepresentationType$B
|
|
27795
27801
|
};
|
|
27796
27802
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
27797
27803
|
return errorSnapshot;
|
|
@@ -41144,14 +41150,15 @@
|
|
|
41144
41150
|
allowFunction: instrumentation$2.getRecordNotifyChangeAllowed,
|
|
41145
41151
|
dropFunction: instrumentation$2.getRecordNotifyChangeDropped,
|
|
41146
41152
|
});
|
|
41147
|
-
throttle(60, 60000, createLDSAdapter(luvio, 'notifyRecordUpdateAvailable', notifyUpdateAvailableFactory$
|
|
41153
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyRecordUpdateAvailable', notifyUpdateAvailableFactory$3), {
|
|
41148
41154
|
allowFunction: instrumentation$2.notifyRecordUpdateAvailableAllowed,
|
|
41149
41155
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
41150
41156
|
});
|
|
41151
|
-
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$
|
|
41152
|
-
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41157
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$2));
|
|
41158
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
41159
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41153
41160
|
});
|
|
41154
|
-
// version: 1.
|
|
41161
|
+
// version: 1.228.1-0cb6f94f1
|
|
41155
41162
|
|
|
41156
41163
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
41157
41164
|
|
|
@@ -46266,6 +46273,12 @@
|
|
|
46266
46273
|
const resourceRequestCopy = clone$1(resourceRequest);
|
|
46267
46274
|
resourceRequestCopy.headers = resourceRequestCopy.headers || {};
|
|
46268
46275
|
resourceRequestCopy.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
46276
|
+
// enable return extra fields for record creation and record update http call
|
|
46277
|
+
if (resourceRequest.basePath === '/ui-api/records' &&
|
|
46278
|
+
(resourceRequest.method === 'post' || resourceRequest.method === 'patch')) {
|
|
46279
|
+
resourceRequestCopy.queryParams = resourceRequestCopy.queryParams || {};
|
|
46280
|
+
resourceRequestCopy.queryParams['includeFieldsInBody'] = true;
|
|
46281
|
+
}
|
|
46269
46282
|
const { data } = await handler.enqueue(resourceRequestCopy).catch((err) => {
|
|
46270
46283
|
throw transformErrorToDraftSynthesisError(err);
|
|
46271
46284
|
});
|
|
@@ -57803,7 +57816,7 @@
|
|
|
57803
57816
|
id: '@salesforce/lds-network-adapter',
|
|
57804
57817
|
instrument: instrument$1,
|
|
57805
57818
|
});
|
|
57806
|
-
// version: 1.
|
|
57819
|
+
// version: 1.228.1-4e6356f71
|
|
57807
57820
|
|
|
57808
57821
|
const { create: create$2, keys: keys$2 } = Object;
|
|
57809
57822
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -57818,6 +57831,21 @@
|
|
|
57818
57831
|
});
|
|
57819
57832
|
return fragments;
|
|
57820
57833
|
}
|
|
57834
|
+
function mergeFragmentWithExistingSelections(fragmentFieldSelection, existingSelections) {
|
|
57835
|
+
// Check if there is an existing selection for this field we can merge with
|
|
57836
|
+
const existingField = getRequestedField(fragmentFieldSelection.name.value, existingSelections);
|
|
57837
|
+
if (existingField === undefined) {
|
|
57838
|
+
existingSelections.push(fragmentFieldSelection);
|
|
57839
|
+
}
|
|
57840
|
+
else {
|
|
57841
|
+
if (existingField.selectionSet) {
|
|
57842
|
+
const mergedSelections = mergeSelectionSets(existingField.selectionSet, fragmentFieldSelection.selectionSet);
|
|
57843
|
+
existingField.selectionSet.selections = mergedSelections
|
|
57844
|
+
? mergedSelections.selections
|
|
57845
|
+
: [];
|
|
57846
|
+
}
|
|
57847
|
+
}
|
|
57848
|
+
}
|
|
57821
57849
|
|
|
57822
57850
|
function buildFieldState(state, fullPath, data) {
|
|
57823
57851
|
return {
|
|
@@ -57886,6 +57914,220 @@
|
|
|
57886
57914
|
}
|
|
57887
57915
|
}
|
|
57888
57916
|
}
|
|
57917
|
+
let selectionSetRequestedFieldsWeakMap = new WeakMap();
|
|
57918
|
+
function getRequestedFieldsForType(typename, selectionSet, namedFragmentsMap, isFragmentApplicable) {
|
|
57919
|
+
let cachedRequestedFieldsConfigurations = selectionSetRequestedFieldsWeakMap.get(selectionSet);
|
|
57920
|
+
if (cachedRequestedFieldsConfigurations === undefined) {
|
|
57921
|
+
cachedRequestedFieldsConfigurations = new Map();
|
|
57922
|
+
selectionSetRequestedFieldsWeakMap.set(selectionSet, cachedRequestedFieldsConfigurations);
|
|
57923
|
+
}
|
|
57924
|
+
const cachedRequestedFieldsForType = cachedRequestedFieldsConfigurations.get(typename);
|
|
57925
|
+
if (cachedRequestedFieldsForType !== undefined) {
|
|
57926
|
+
return cachedRequestedFieldsForType;
|
|
57927
|
+
}
|
|
57928
|
+
const selections = calculateRequestedFieldsForType(typename, selectionSet, namedFragmentsMap, isFragmentApplicable);
|
|
57929
|
+
cachedRequestedFieldsConfigurations.set(typename, selections);
|
|
57930
|
+
return selections;
|
|
57931
|
+
}
|
|
57932
|
+
function getRequestedField(responseDataFieldName, requestedFields) {
|
|
57933
|
+
return requestedFields.find((fieldNode) => (fieldNode.alias && fieldNode.alias.value === responseDataFieldName) ||
|
|
57934
|
+
(!fieldNode.alias && fieldNode.name.value === responseDataFieldName));
|
|
57935
|
+
}
|
|
57936
|
+
function calculateRequestedFieldsForType(typename, selectionSet, namedFragmentsMap, isFragmentApplicable) {
|
|
57937
|
+
const selections = [];
|
|
57938
|
+
selectionSet.selections.forEach((selection) => {
|
|
57939
|
+
if (selection.kind === 'Field') {
|
|
57940
|
+
selections.push(selection);
|
|
57941
|
+
}
|
|
57942
|
+
if (selection.kind === 'InlineFragment' && isFragmentApplicable(selection, typename)) {
|
|
57943
|
+
// loops over the map to get the values.
|
|
57944
|
+
getRequestedFieldsForType(typename, selection.selectionSet, namedFragmentsMap, isFragmentApplicable).forEach((fragmentFieldSelection) => {
|
|
57945
|
+
mergeFragmentWithExistingSelections(fragmentFieldSelection, selections);
|
|
57946
|
+
});
|
|
57947
|
+
}
|
|
57948
|
+
if (selection.kind === 'FragmentSpread') {
|
|
57949
|
+
const namedFragment = namedFragmentsMap[selection.name.value];
|
|
57950
|
+
if (namedFragment && isFragmentApplicable(namedFragment, typename)) {
|
|
57951
|
+
// loops over the map to get the values.
|
|
57952
|
+
getRequestedFieldsForType(typename, namedFragment.selectionSet, namedFragmentsMap, isFragmentApplicable).forEach((fragmentFieldSelection) => {
|
|
57953
|
+
mergeFragmentWithExistingSelections(fragmentFieldSelection, selections);
|
|
57954
|
+
});
|
|
57955
|
+
}
|
|
57956
|
+
}
|
|
57957
|
+
});
|
|
57958
|
+
// Needs to happen after the selections are merged.
|
|
57959
|
+
return selections.reduce((acc, fieldNode) => {
|
|
57960
|
+
const fieldName = fieldNode.alias ? fieldNode.alias.value : fieldNode.name.value;
|
|
57961
|
+
// 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.
|
|
57962
|
+
if (!acc.has(fieldName)) {
|
|
57963
|
+
acc.set(fieldName, fieldNode);
|
|
57964
|
+
}
|
|
57965
|
+
else {
|
|
57966
|
+
const existingFieldNode = acc.get(fieldName);
|
|
57967
|
+
acc.set(fieldName, {
|
|
57968
|
+
...existingFieldNode,
|
|
57969
|
+
selectionSet: mergeSelectionSets(existingFieldNode === null || existingFieldNode === void 0 ? void 0 : existingFieldNode.selectionSet, fieldNode.selectionSet),
|
|
57970
|
+
});
|
|
57971
|
+
}
|
|
57972
|
+
return acc;
|
|
57973
|
+
}, new Map());
|
|
57974
|
+
}
|
|
57975
|
+
function mergeSelectionSets(set1, set2) {
|
|
57976
|
+
if (!set2) {
|
|
57977
|
+
return set1;
|
|
57978
|
+
}
|
|
57979
|
+
const set1Selections = !set1 ? [] : set1.selections;
|
|
57980
|
+
const mergedSelections = [...set1Selections];
|
|
57981
|
+
for (const selection of set2.selections) {
|
|
57982
|
+
if (selection.kind === 'Field') {
|
|
57983
|
+
const existingFieldIndex = mergedSelections.findIndex((sel) => {
|
|
57984
|
+
return sel.kind === 'Field' && isExactSameField(sel, selection);
|
|
57985
|
+
});
|
|
57986
|
+
if (existingFieldIndex > -1) {
|
|
57987
|
+
const existingField = mergedSelections[existingFieldIndex];
|
|
57988
|
+
const mergedSelectionSet = mergeSelectionSets(existingField.selectionSet, selection.selectionSet);
|
|
57989
|
+
if (mergedSelectionSet) {
|
|
57990
|
+
mergedSelections[existingFieldIndex] = {
|
|
57991
|
+
...existingField,
|
|
57992
|
+
selectionSet: mergedSelectionSet,
|
|
57993
|
+
};
|
|
57994
|
+
}
|
|
57995
|
+
}
|
|
57996
|
+
else {
|
|
57997
|
+
mergedSelections.push(selection);
|
|
57998
|
+
}
|
|
57999
|
+
}
|
|
58000
|
+
else if (selection.kind === 'FragmentSpread') {
|
|
58001
|
+
if (!mergedSelections.some((sel) => sel.kind === 'FragmentSpread' &&
|
|
58002
|
+
sel.name.value === selection.name.value &&
|
|
58003
|
+
areDirectivesEqual(sel.directives, selection.directives))) {
|
|
58004
|
+
mergedSelections.push(selection);
|
|
58005
|
+
}
|
|
58006
|
+
}
|
|
58007
|
+
else if (selection.kind === 'InlineFragment') {
|
|
58008
|
+
const existingFragmentIndex = mergedSelections.findIndex((sel) => {
|
|
58009
|
+
return (sel.kind === 'InlineFragment' &&
|
|
58010
|
+
areTypeConditionsEqual(sel.typeCondition, selection.typeCondition) &&
|
|
58011
|
+
areDirectivesEqual(sel.directives, selection.directives));
|
|
58012
|
+
});
|
|
58013
|
+
if (existingFragmentIndex > -1) {
|
|
58014
|
+
const existingFragment = mergedSelections[existingFragmentIndex];
|
|
58015
|
+
const mergedSelectionSet = mergeSelectionSets(existingFragment.selectionSet, selection.selectionSet);
|
|
58016
|
+
if (mergedSelectionSet) {
|
|
58017
|
+
mergedSelections[existingFragmentIndex] = {
|
|
58018
|
+
...existingFragment,
|
|
58019
|
+
selectionSet: mergedSelectionSet,
|
|
58020
|
+
};
|
|
58021
|
+
}
|
|
58022
|
+
}
|
|
58023
|
+
else {
|
|
58024
|
+
mergedSelections.push(selection);
|
|
58025
|
+
}
|
|
58026
|
+
}
|
|
58027
|
+
}
|
|
58028
|
+
return { kind: 'SelectionSet', selections: mergedSelections };
|
|
58029
|
+
}
|
|
58030
|
+
function areArgumentsEqual(args1, args2) {
|
|
58031
|
+
if (!args1 && !args2) {
|
|
58032
|
+
return true;
|
|
58033
|
+
}
|
|
58034
|
+
// length 0 arguments is semantically equivalent to falsy arguments.
|
|
58035
|
+
if ((!args1 || args1.length === 0) && (!args2 || args2.length === 0)) {
|
|
58036
|
+
return true;
|
|
58037
|
+
}
|
|
58038
|
+
if ((!args1 && args2) || (args1 && !args2)) {
|
|
58039
|
+
return false;
|
|
58040
|
+
}
|
|
58041
|
+
if (args1.length !== args2.length) {
|
|
58042
|
+
return false;
|
|
58043
|
+
}
|
|
58044
|
+
for (const arg of args1) {
|
|
58045
|
+
const matchingArg = args2.find((a) => a.name.value === arg.name.value && areValuesEqual(a.value, arg.value));
|
|
58046
|
+
if (!matchingArg) {
|
|
58047
|
+
return false;
|
|
58048
|
+
}
|
|
58049
|
+
}
|
|
58050
|
+
return true;
|
|
58051
|
+
}
|
|
58052
|
+
function areDirectivesEqual(dirs1, dirs2) {
|
|
58053
|
+
if (!dirs1 && !dirs2) {
|
|
58054
|
+
return true;
|
|
58055
|
+
}
|
|
58056
|
+
if ((!dirs1 || dirs1.length === 0) && (!dirs2 || dirs2.length === 0)) {
|
|
58057
|
+
return true;
|
|
58058
|
+
}
|
|
58059
|
+
if ((!dirs1 && dirs2) || (dirs1 && !dirs2)) {
|
|
58060
|
+
return false;
|
|
58061
|
+
}
|
|
58062
|
+
if (dirs1.length !== dirs2.length) {
|
|
58063
|
+
return false;
|
|
58064
|
+
}
|
|
58065
|
+
for (const dir of dirs1) {
|
|
58066
|
+
const matchingDir = dirs2.find((d) => d.name.value === dir.name.value && areArgumentsEqual(d.arguments, dir.arguments));
|
|
58067
|
+
if (!matchingDir) {
|
|
58068
|
+
return false;
|
|
58069
|
+
}
|
|
58070
|
+
}
|
|
58071
|
+
return true;
|
|
58072
|
+
}
|
|
58073
|
+
function areValuesEqual(valueNode1, valueNode2) {
|
|
58074
|
+
if (valueNode1.kind !== valueNode2.kind) {
|
|
58075
|
+
return false;
|
|
58076
|
+
}
|
|
58077
|
+
// Typescript doesn't understand that the above check means that the switch applies to both values. So there will be casts here.
|
|
58078
|
+
switch (valueNode1.kind) {
|
|
58079
|
+
case 'StringValue':
|
|
58080
|
+
case 'IntValue':
|
|
58081
|
+
case 'FloatValue':
|
|
58082
|
+
case 'BooleanValue':
|
|
58083
|
+
case 'EnumValue':
|
|
58084
|
+
return valueNode1.value === valueNode2.value;
|
|
58085
|
+
case 'NullValue':
|
|
58086
|
+
return true; // Both Null value nodes? Always true.
|
|
58087
|
+
case 'ListValue':
|
|
58088
|
+
if (valueNode1.values.length !== valueNode2.values.length) {
|
|
58089
|
+
return false;
|
|
58090
|
+
}
|
|
58091
|
+
for (let i = 0; i < valueNode1.values.length; i++) {
|
|
58092
|
+
if (!areValuesEqual(valueNode1.values[i], valueNode2.values[i])) {
|
|
58093
|
+
return false;
|
|
58094
|
+
}
|
|
58095
|
+
}
|
|
58096
|
+
return true;
|
|
58097
|
+
case 'ObjectValue':
|
|
58098
|
+
if (valueNode1.fields.length !== valueNode2.fields.length) {
|
|
58099
|
+
return false;
|
|
58100
|
+
}
|
|
58101
|
+
for (let i = 0; i < valueNode1.fields.length; i++) {
|
|
58102
|
+
const field1 = valueNode1.fields[i];
|
|
58103
|
+
const field2 = valueNode2.fields.find((f) => f.name.value === field1.name.value);
|
|
58104
|
+
if (!field2 || !areValuesEqual(field1.value, field2.value)) {
|
|
58105
|
+
return false;
|
|
58106
|
+
}
|
|
58107
|
+
}
|
|
58108
|
+
return true;
|
|
58109
|
+
case 'Variable':
|
|
58110
|
+
return valueNode1.name.value === valueNode2.name.value;
|
|
58111
|
+
default:
|
|
58112
|
+
return false;
|
|
58113
|
+
}
|
|
58114
|
+
}
|
|
58115
|
+
function areTypeConditionsEqual(typeCondition1, typeCondition2) {
|
|
58116
|
+
if (typeCondition1 === undefined && typeCondition2 === undefined) {
|
|
58117
|
+
return true;
|
|
58118
|
+
}
|
|
58119
|
+
if ((!typeCondition1 && typeCondition2) || (typeCondition1 && !typeCondition2)) {
|
|
58120
|
+
return false;
|
|
58121
|
+
}
|
|
58122
|
+
return typeCondition1.name.value === typeCondition2.name.value;
|
|
58123
|
+
}
|
|
58124
|
+
function isExactSameField(field1, field2) {
|
|
58125
|
+
var _a, _b;
|
|
58126
|
+
return (field1.name.value === field2.name.value &&
|
|
58127
|
+
((_a = field1.alias) === null || _a === void 0 ? void 0 : _a.value) === ((_b = field2.alias) === null || _b === void 0 ? void 0 : _b.value) &&
|
|
58128
|
+
areArgumentsEqual(field1.arguments, field2.arguments) &&
|
|
58129
|
+
areDirectivesEqual(field1.directives, field2.directives));
|
|
58130
|
+
}
|
|
57889
58131
|
|
|
57890
58132
|
function serializeOperationNode$1(operationNode, variables, fragmentMap) {
|
|
57891
58133
|
return `${serializeSelectionSet(operationNode.selectionSet, variables, fragmentMap)}`;
|
|
@@ -57942,6 +58184,53 @@
|
|
|
57942
58184
|
return operations[0]; // If a named operation is not provided, we return the first one
|
|
57943
58185
|
}
|
|
57944
58186
|
|
|
58187
|
+
const { hasOwnProperty: ObjectPrototypeHasOwnProperty$1 } = Object.prototype;
|
|
58188
|
+
// Deep merge that works on GraphQL data. It:
|
|
58189
|
+
// - recursively merges any Object properties that are present in both
|
|
58190
|
+
// - recursively merges arrays by deepMerging each Object item in the array (by index).
|
|
58191
|
+
function deepMerge(target, ...sources) {
|
|
58192
|
+
for (const source of sources) {
|
|
58193
|
+
for (const key in source) {
|
|
58194
|
+
if (ObjectPrototypeHasOwnProperty$1.call(source, key)) {
|
|
58195
|
+
const targetValue = target[key];
|
|
58196
|
+
const sourceValue = source[key];
|
|
58197
|
+
if (Array.isArray(targetValue) && Array.isArray(sourceValue)) {
|
|
58198
|
+
const maxLength = Math.max(targetValue.length, sourceValue.length);
|
|
58199
|
+
target[key] = Array.from({ length: maxLength }, (_, index) => {
|
|
58200
|
+
const targetItem = targetValue[index];
|
|
58201
|
+
const sourceItem = sourceValue[index];
|
|
58202
|
+
if (targetItem === undefined) {
|
|
58203
|
+
return sourceItem;
|
|
58204
|
+
}
|
|
58205
|
+
else if (sourceItem === undefined) {
|
|
58206
|
+
return targetItem;
|
|
58207
|
+
}
|
|
58208
|
+
else if (targetItem instanceof Object &&
|
|
58209
|
+
!Array.isArray(targetItem) &&
|
|
58210
|
+
sourceItem instanceof Object &&
|
|
58211
|
+
!Array.isArray(sourceItem)) {
|
|
58212
|
+
return deepMerge({}, targetItem, sourceItem);
|
|
58213
|
+
}
|
|
58214
|
+
else {
|
|
58215
|
+
return sourceItem;
|
|
58216
|
+
}
|
|
58217
|
+
});
|
|
58218
|
+
}
|
|
58219
|
+
else if (targetValue instanceof Object &&
|
|
58220
|
+
!Array.isArray(targetValue) &&
|
|
58221
|
+
sourceValue instanceof Object &&
|
|
58222
|
+
!Array.isArray(sourceValue)) {
|
|
58223
|
+
deepMerge(targetValue, sourceValue);
|
|
58224
|
+
}
|
|
58225
|
+
else {
|
|
58226
|
+
target[key] = sourceValue;
|
|
58227
|
+
}
|
|
58228
|
+
}
|
|
58229
|
+
}
|
|
58230
|
+
}
|
|
58231
|
+
return target;
|
|
58232
|
+
}
|
|
58233
|
+
|
|
57945
58234
|
/**
|
|
57946
58235
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
57947
58236
|
* All rights reserved.
|
|
@@ -71665,13 +71954,12 @@
|
|
|
71665
71954
|
selectionSetNode === undefined) {
|
|
71666
71955
|
return;
|
|
71667
71956
|
}
|
|
71668
|
-
const
|
|
71669
|
-
|
|
71670
|
-
selections
|
|
71671
|
-
|
|
71672
|
-
|
|
71673
|
-
|
|
71674
|
-
mergedSelections.forEach(selection => {
|
|
71957
|
+
const minimumSelectionSet = {
|
|
71958
|
+
kind: 'SelectionSet',
|
|
71959
|
+
selections: queryTransformHelper.getMinimumSelections()
|
|
71960
|
+
};
|
|
71961
|
+
const mergedSelections = mergeSelectionSets(selectionSetNode, minimumSelectionSet);
|
|
71962
|
+
mergedSelections === null || mergedSelections === void 0 ? void 0 : mergedSelections.selections.forEach(selection => {
|
|
71675
71963
|
if (selection.kind === 'Field') {
|
|
71676
71964
|
const fieldType = queryTransformHelper.getFieldType(selection);
|
|
71677
71965
|
const fieldTransformHelper = fieldType === undefined ? undefined : getQueryTransformerForType(fieldType.typename);
|
|
@@ -71700,42 +71988,7 @@
|
|
|
71700
71988
|
}
|
|
71701
71989
|
}
|
|
71702
71990
|
});
|
|
71703
|
-
Object.assign(selectionSetNode,
|
|
71704
|
-
selections: mergedSelections.length > 0 ? mergedSelections : undefined
|
|
71705
|
-
});
|
|
71706
|
-
}
|
|
71707
|
-
function mergeSelections(minimumSelections, querySelections) {
|
|
71708
|
-
const mergedSelections = [...querySelections];
|
|
71709
|
-
for (let i = 0; i < minimumSelections.length; i++) {
|
|
71710
|
-
const minimumSelection = minimumSelections[i];
|
|
71711
|
-
if (minimumSelection.kind === 'Field') {
|
|
71712
|
-
const existingNode = mergedSelections.find(selection => {
|
|
71713
|
-
return selection.kind === 'Field' && selection.name.value === minimumSelection.name.value && (selection.directives === undefined || selection.directives.length === 0);
|
|
71714
|
-
});
|
|
71715
|
-
if (existingNode !== undefined && existingNode.kind === 'Field') { // Maybe do better type narrowing above
|
|
71716
|
-
const existingNodeHasSubselections = existingNode.selectionSet !== undefined && existingNode.selectionSet.selections.length > 0;
|
|
71717
|
-
const minimumFieldNodeHasSubselections = minimumSelection.selectionSet !== undefined && minimumSelection.selectionSet.selections.length > 0;
|
|
71718
|
-
// TODO(correctness enhancement): this doesn't handle arugments. Add alias if arguments disagree?
|
|
71719
|
-
if (existingNodeHasSubselections && minimumFieldNodeHasSubselections) {
|
|
71720
|
-
const mergedChildSelections = mergeSelections(minimumSelection.selectionSet.selections, existingNode.selectionSet.selections);
|
|
71721
|
-
Object.assign(existingNode.selectionSet, {
|
|
71722
|
-
selections: mergedChildSelections
|
|
71723
|
-
});
|
|
71724
|
-
}
|
|
71725
|
-
}
|
|
71726
|
-
else {
|
|
71727
|
-
mergedSelections.push(minimumSelection);
|
|
71728
|
-
}
|
|
71729
|
-
}
|
|
71730
|
-
if (minimumSelection.kind === 'InlineFragment') {
|
|
71731
|
-
mergedSelections.push(minimumSelection);
|
|
71732
|
-
}
|
|
71733
|
-
if (minimumSelection.kind === 'FragmentSpread') ;
|
|
71734
|
-
}
|
|
71735
|
-
return mergedSelections;
|
|
71736
|
-
}
|
|
71737
|
-
function getRequestedField(responseDataFieldName, requestedFields) {
|
|
71738
|
-
return requestedFields.find(fieldNode => (fieldNode.alias && fieldNode.alias.value === responseDataFieldName) || (!fieldNode.alias && fieldNode.name.value === responseDataFieldName));
|
|
71991
|
+
Object.assign(selectionSetNode, mergedSelections);
|
|
71739
71992
|
}
|
|
71740
71993
|
function getPageMetadata(paginationMetadata, paginationParams) {
|
|
71741
71994
|
const metadataProperties = {};
|
|
@@ -71781,67 +72034,6 @@
|
|
|
71781
72034
|
const argumentString = mutableArgumentNodes.length > 0 ? '__' + serializeFieldArguments(mutableArgumentNodes, variables) : '';
|
|
71782
72035
|
return field.name.value + argumentString; // It should be safe to always use the fieldName - If an alias is meaningful, there will be arguments on the key also.
|
|
71783
72036
|
}
|
|
71784
|
-
function mergeFragmentWithExistingSelections(fragmentFieldSelection, existingSelections) {
|
|
71785
|
-
// Check if there is an existing selection for this field we can merge with
|
|
71786
|
-
// If this isn't done, we will see issues such as W-12293630 & W-12236456 as examples
|
|
71787
|
-
const existingField = getRequestedField(fragmentFieldSelection.name.value, existingSelections);
|
|
71788
|
-
if (existingField === undefined) {
|
|
71789
|
-
existingSelections.push(fragmentFieldSelection);
|
|
71790
|
-
}
|
|
71791
|
-
else {
|
|
71792
|
-
if (existingField.selectionSet === undefined) {
|
|
71793
|
-
existingField.selectionSet === fragmentFieldSelection.selectionSet;
|
|
71794
|
-
}
|
|
71795
|
-
else if (fragmentFieldSelection.selectionSet !== undefined) {
|
|
71796
|
-
existingField.selectionSet.selections = mergeSelections(fragmentFieldSelection.selectionSet.selections, existingField.selectionSet.selections);
|
|
71797
|
-
}
|
|
71798
|
-
}
|
|
71799
|
-
}
|
|
71800
|
-
function calculateRequestedFieldsForType(typename, selectionSet, namedFragmentsMap, isFragmentApplicable) {
|
|
71801
|
-
const selections = [];
|
|
71802
|
-
selectionSet.selections.forEach(selection => {
|
|
71803
|
-
if (selection.kind === "Field") {
|
|
71804
|
-
selections.push(selection);
|
|
71805
|
-
}
|
|
71806
|
-
if (selection.kind === "InlineFragment" && isFragmentApplicable(selection, typename)) {
|
|
71807
|
-
// loops over the map to get the values.
|
|
71808
|
-
getRequestedFieldsForType(typename, selection.selectionSet, namedFragmentsMap, isFragmentApplicable)
|
|
71809
|
-
.forEach(fragmentFieldSelection => { mergeFragmentWithExistingSelections(fragmentFieldSelection, selections); });
|
|
71810
|
-
}
|
|
71811
|
-
if (selection.kind === "FragmentSpread") {
|
|
71812
|
-
const namedFragment = namedFragmentsMap[selection.name.value];
|
|
71813
|
-
if (namedFragment && isFragmentApplicable(namedFragment, typename)) {
|
|
71814
|
-
// loops over the map to get the values.
|
|
71815
|
-
getRequestedFieldsForType(typename, namedFragment.selectionSet, namedFragmentsMap, isFragmentApplicable)
|
|
71816
|
-
.forEach(fragmentFieldSelection => { mergeFragmentWithExistingSelections(fragmentFieldSelection, selections); });
|
|
71817
|
-
}
|
|
71818
|
-
}
|
|
71819
|
-
});
|
|
71820
|
-
// Needs to happen after the selections are merged.
|
|
71821
|
-
return selections.reduce((acc, fieldNode) => {
|
|
71822
|
-
const fieldName = fieldNode.alias ? fieldNode.alias.value : fieldNode.name.value;
|
|
71823
|
-
// 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.
|
|
71824
|
-
if (!acc.has(fieldName)) {
|
|
71825
|
-
acc.set(fieldName, fieldNode);
|
|
71826
|
-
}
|
|
71827
|
-
return acc;
|
|
71828
|
-
}, new Map());
|
|
71829
|
-
}
|
|
71830
|
-
let selectionSetRequestedFieldsWeakMap = new WeakMap();
|
|
71831
|
-
function getRequestedFieldsForType(typename, selectionSet, namedFragmentsMap, isFragmentApplicable) {
|
|
71832
|
-
let cachedRequestedFieldsConfigurations = selectionSetRequestedFieldsWeakMap.get(selectionSet);
|
|
71833
|
-
if (cachedRequestedFieldsConfigurations === undefined) {
|
|
71834
|
-
cachedRequestedFieldsConfigurations = new Map();
|
|
71835
|
-
selectionSetRequestedFieldsWeakMap.set(selectionSet, cachedRequestedFieldsConfigurations);
|
|
71836
|
-
}
|
|
71837
|
-
const cachedRequestedFieldsForType = cachedRequestedFieldsConfigurations.get(typename);
|
|
71838
|
-
if (cachedRequestedFieldsForType !== undefined) {
|
|
71839
|
-
return cachedRequestedFieldsForType;
|
|
71840
|
-
}
|
|
71841
|
-
const selections = calculateRequestedFieldsForType(typename, selectionSet, namedFragmentsMap, isFragmentApplicable);
|
|
71842
|
-
cachedRequestedFieldsConfigurations.set(typename, selections);
|
|
71843
|
-
return selections;
|
|
71844
|
-
}
|
|
71845
72037
|
function getQueryTransformerForType(typename, fragmentMap) {
|
|
71846
72038
|
switch (typename) {
|
|
71847
72039
|
case "PercentAggregate": return {
|
|
@@ -72460,18 +72652,7 @@
|
|
|
72460
72652
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
72461
72653
|
const builtSelection = buildSelectionForNodeFn(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
72462
72654
|
if (builtSelection !== undefined) {
|
|
72463
|
-
|
|
72464
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
72465
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
72466
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
72467
|
-
if (sink[key] === undefined) {
|
|
72468
|
-
sink[key] = builtSelection[key];
|
|
72469
|
-
}
|
|
72470
|
-
});
|
|
72471
|
-
}
|
|
72472
|
-
else {
|
|
72473
|
-
Object.assign(sink, builtSelection);
|
|
72474
|
-
}
|
|
72655
|
+
deepMerge(sink, builtSelection);
|
|
72475
72656
|
}
|
|
72476
72657
|
});
|
|
72477
72658
|
return sink;
|
|
@@ -76081,7 +76262,7 @@
|
|
|
76081
76262
|
configuration: { ...configurationForGraphQLAdapters },
|
|
76082
76263
|
instrument,
|
|
76083
76264
|
});
|
|
76084
|
-
// version: 1.
|
|
76265
|
+
// version: 1.228.1-0cb6f94f1
|
|
76085
76266
|
|
|
76086
76267
|
// On core the unstable adapters are re-exported with different names,
|
|
76087
76268
|
|
|
@@ -78328,7 +78509,7 @@
|
|
|
78328
78509
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
78329
78510
|
graphQLImperative = ldsAdapter;
|
|
78330
78511
|
});
|
|
78331
|
-
// version: 1.
|
|
78512
|
+
// version: 1.228.1-0cb6f94f1
|
|
78332
78513
|
|
|
78333
78514
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
78334
78515
|
__proto__: null,
|
|
@@ -79059,4 +79240,4 @@
|
|
|
79059
79240
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
79060
79241
|
|
|
79061
79242
|
}));
|
|
79062
|
-
// version: 1.
|
|
79243
|
+
// version: 1.228.1-4e6356f71
|