@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.
|
@@ -3841,7 +3841,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
3841
3841
|
}
|
|
3842
3842
|
return resourceParams;
|
|
3843
3843
|
}
|
|
3844
|
-
// engine version: 0.145.
|
|
3844
|
+
// engine version: 0.145.2-6a13677c
|
|
3845
3845
|
|
|
3846
3846
|
/**
|
|
3847
3847
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -3968,7 +3968,7 @@ function withDefaultLuvio(callback) {
|
|
|
3968
3968
|
}
|
|
3969
3969
|
callbacks.push(callback);
|
|
3970
3970
|
}
|
|
3971
|
-
// version: 1.
|
|
3971
|
+
// version: 1.228.1-4e6356f71
|
|
3972
3972
|
|
|
3973
3973
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3974
3974
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15429,7 +15429,7 @@ function gql(literals, ...subs) {
|
|
|
15429
15429
|
}
|
|
15430
15430
|
return superResult;
|
|
15431
15431
|
}
|
|
15432
|
-
// version: 1.
|
|
15432
|
+
// version: 1.228.1-4e6356f71
|
|
15433
15433
|
|
|
15434
15434
|
function unwrap(data) {
|
|
15435
15435
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16352,7 +16352,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16352
16352
|
const { apiFamily, name } = metadata;
|
|
16353
16353
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16354
16354
|
}
|
|
16355
|
-
// version: 1.
|
|
16355
|
+
// version: 1.228.1-4e6356f71
|
|
16356
16356
|
|
|
16357
16357
|
/**
|
|
16358
16358
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16451,7 +16451,7 @@ var TypeCheckShapes;
|
|
|
16451
16451
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16452
16452
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16453
16453
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16454
|
-
// engine version: 0.145.
|
|
16454
|
+
// engine version: 0.145.2-6a13677c
|
|
16455
16455
|
|
|
16456
16456
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16457
16457
|
|
|
@@ -17542,7 +17542,7 @@ function getTypeCacheKeys$S$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
17542
17542
|
mergeable: false
|
|
17543
17543
|
});
|
|
17544
17544
|
}
|
|
17545
|
-
const notifyUpdateAvailableFactory$
|
|
17545
|
+
const notifyUpdateAvailableFactory$4 = (luvio) => {
|
|
17546
17546
|
return function notifyListInfoUpdateAvailable(configs) {
|
|
17547
17547
|
const keys = configs.map(c => keyBuilder$1V(luvio, c));
|
|
17548
17548
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
@@ -18155,7 +18155,7 @@ function getTypeCacheKeys$O$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
18155
18155
|
getTypeCacheKeys$R$1(rootKeySet, luvio, input_fields[key], () => rootKey + "__fields" + "__" + key);
|
|
18156
18156
|
}
|
|
18157
18157
|
}
|
|
18158
|
-
const notifyUpdateAvailableFactory$
|
|
18158
|
+
const notifyUpdateAvailableFactory$3 = (luvio) => {
|
|
18159
18159
|
return function notifyRecordUpdateAvailable(configs) {
|
|
18160
18160
|
const keys = configs.map(c => keyBuilder$1U(luvio, c));
|
|
18161
18161
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
@@ -22573,7 +22573,7 @@ function getTypeCacheKeys$K$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
22573
22573
|
getTypeCacheKeys$L$1(rootKeySet, luvio, input.lists[i]);
|
|
22574
22574
|
}
|
|
22575
22575
|
}
|
|
22576
|
-
const notifyUpdateAvailableFactory$
|
|
22576
|
+
const notifyUpdateAvailableFactory$2 = (luvio) => {
|
|
22577
22577
|
return function notifyListViewSummaryUpdateAvailable(configs) {
|
|
22578
22578
|
const keys = configs.map(c => keyBuilder$1N(luvio, c));
|
|
22579
22579
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
@@ -25314,9 +25314,9 @@ const factory$e = (luvio) => {
|
|
|
25314
25314
|
}, { contextId: contextId$4 });
|
|
25315
25315
|
};
|
|
25316
25316
|
|
|
25317
|
-
const notifyUpdateAvailableFactory = (luvio) => {
|
|
25317
|
+
const notifyUpdateAvailableFactory$1 = (luvio) => {
|
|
25318
25318
|
return function notifyListInfoUpdateAvailable(configs) {
|
|
25319
|
-
const generated_notifyUpdateAvailable = notifyUpdateAvailableFactory$
|
|
25319
|
+
const generated_notifyUpdateAvailable = notifyUpdateAvailableFactory$4(luvio);
|
|
25320
25320
|
// Taken from getUiApiListInfoByListViewApiNameAndObjectApiName/keyBuilder artifact
|
|
25321
25321
|
// We automatically set the type based on the listViewApiName, and we need to do the same
|
|
25322
25322
|
// here for key matching and validation
|
|
@@ -25432,6 +25432,119 @@ function getTypeCacheKeys$G$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
25432
25432
|
});
|
|
25433
25433
|
}
|
|
25434
25434
|
|
|
25435
|
+
const TTL$q = 900000;
|
|
25436
|
+
const VERSION$Y$1 = "993b0a7bce6056c4f57ed300ec153d9c";
|
|
25437
|
+
const RepresentationType$E = 'QuickActionDefaultsRepresentation';
|
|
25438
|
+
function keyBuilder$1C(luvio, config) {
|
|
25439
|
+
return keyPrefix$1 + '::' + RepresentationType$E + ':' + config.actionApiName;
|
|
25440
|
+
}
|
|
25441
|
+
function keyBuilderFromType$p(luvio, object) {
|
|
25442
|
+
const keyParams = {
|
|
25443
|
+
actionApiName: object.actionApiName
|
|
25444
|
+
};
|
|
25445
|
+
return keyBuilder$1C(luvio, keyParams);
|
|
25446
|
+
}
|
|
25447
|
+
function dynamicNormalize$4(ingestParams) {
|
|
25448
|
+
return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
|
|
25449
|
+
const input_fields = input.fields;
|
|
25450
|
+
const input_fields_id = path.fullPath + '__fields';
|
|
25451
|
+
const input_fields_keys = Object.keys(input_fields);
|
|
25452
|
+
const input_fields_length = input_fields_keys.length;
|
|
25453
|
+
for (let i = 0; i < input_fields_length; i++) {
|
|
25454
|
+
const key = input_fields_keys[i];
|
|
25455
|
+
const input_fields_prop = input_fields[key];
|
|
25456
|
+
const input_fields_prop_id = input_fields_id + '__' + key;
|
|
25457
|
+
input_fields[key] = ingestParams.fields(input_fields_prop, {
|
|
25458
|
+
fullPath: input_fields_prop_id,
|
|
25459
|
+
propertyName: key,
|
|
25460
|
+
parent: {
|
|
25461
|
+
data: input,
|
|
25462
|
+
key: path.fullPath,
|
|
25463
|
+
existing: existing,
|
|
25464
|
+
},
|
|
25465
|
+
ttl: path.ttl
|
|
25466
|
+
}, luvio, store, timestamp);
|
|
25467
|
+
}
|
|
25468
|
+
return input;
|
|
25469
|
+
};
|
|
25470
|
+
}
|
|
25471
|
+
const dynamicSelect$5 = function dynamicQuickActionDefaultsRepresentationSelect(params) {
|
|
25472
|
+
const fieldsPathSelection = params.fields === undefined ? {
|
|
25473
|
+
name: 'fields',
|
|
25474
|
+
kind: 'Link',
|
|
25475
|
+
map: true,
|
|
25476
|
+
fragment: select$1F()
|
|
25477
|
+
} : params.fields;
|
|
25478
|
+
return {
|
|
25479
|
+
kind: 'Fragment',
|
|
25480
|
+
version: VERSION$Y$1,
|
|
25481
|
+
private: [
|
|
25482
|
+
'eTag'
|
|
25483
|
+
],
|
|
25484
|
+
selections: [
|
|
25485
|
+
{
|
|
25486
|
+
name: 'actionApiName',
|
|
25487
|
+
kind: 'Scalar'
|
|
25488
|
+
},
|
|
25489
|
+
fieldsPathSelection,
|
|
25490
|
+
{
|
|
25491
|
+
name: 'objectApiName',
|
|
25492
|
+
kind: 'Scalar'
|
|
25493
|
+
}
|
|
25494
|
+
]
|
|
25495
|
+
};
|
|
25496
|
+
};
|
|
25497
|
+
function equals$L(existing, incoming) {
|
|
25498
|
+
const existing_actionApiName = existing.actionApiName;
|
|
25499
|
+
const incoming_actionApiName = incoming.actionApiName;
|
|
25500
|
+
if (!(existing_actionApiName === incoming_actionApiName)) {
|
|
25501
|
+
return false;
|
|
25502
|
+
}
|
|
25503
|
+
const existing_eTag = existing.eTag;
|
|
25504
|
+
const incoming_eTag = incoming.eTag;
|
|
25505
|
+
if (!(existing_eTag === incoming_eTag)) {
|
|
25506
|
+
return false;
|
|
25507
|
+
}
|
|
25508
|
+
const existing_objectApiName = existing.objectApiName;
|
|
25509
|
+
const incoming_objectApiName = incoming.objectApiName;
|
|
25510
|
+
if (!(existing_objectApiName === incoming_objectApiName)) {
|
|
25511
|
+
return false;
|
|
25512
|
+
}
|
|
25513
|
+
const existing_fields = existing.fields;
|
|
25514
|
+
const incoming_fields = incoming.fields;
|
|
25515
|
+
const equals_fields_props = equalsObject$1(existing_fields, incoming_fields, (existing_fields_prop, incoming_fields_prop) => {
|
|
25516
|
+
if (!(existing_fields_prop.__ref === incoming_fields_prop.__ref)) {
|
|
25517
|
+
return false;
|
|
25518
|
+
}
|
|
25519
|
+
});
|
|
25520
|
+
if (equals_fields_props === false) {
|
|
25521
|
+
return false;
|
|
25522
|
+
}
|
|
25523
|
+
return true;
|
|
25524
|
+
}
|
|
25525
|
+
function getTypeCacheKeys$F$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
25526
|
+
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
25527
|
+
const rootKey = keyBuilderFromType$p(luvio, input);
|
|
25528
|
+
rootKeySet.set(rootKey, {
|
|
25529
|
+
namespace: keyPrefix$1,
|
|
25530
|
+
representationName: RepresentationType$E,
|
|
25531
|
+
mergeable: false
|
|
25532
|
+
});
|
|
25533
|
+
const input_fields = input.fields;
|
|
25534
|
+
const input_fields_keys = ObjectKeys$2(input_fields);
|
|
25535
|
+
const input_fields_length = input_fields_keys.length;
|
|
25536
|
+
for (let i = 0; i < input_fields_length; i++) {
|
|
25537
|
+
const key = input_fields_keys[i];
|
|
25538
|
+
getTypeCacheKeys$R$1(rootKeySet, luvio, input_fields[key], () => rootKey + "__fields" + "__" + key);
|
|
25539
|
+
}
|
|
25540
|
+
}
|
|
25541
|
+
const notifyUpdateAvailableFactory = (luvio) => {
|
|
25542
|
+
return function notifyQuickActionDefaultsUpdateAvailable(configs) {
|
|
25543
|
+
const keys = configs.map(c => keyBuilder$1C(luvio, c));
|
|
25544
|
+
return luvio.notifyStoreUpdateAvailable(keys);
|
|
25545
|
+
};
|
|
25546
|
+
};
|
|
25547
|
+
|
|
25435
25548
|
function toSortedStringArrayAllowEmpty(value) {
|
|
25436
25549
|
const valueArray = isArray$7(value) ? value : [value];
|
|
25437
25550
|
if (valueArray.length === 0) {
|
|
@@ -25454,18 +25567,18 @@ function coerceFormFactor(form) {
|
|
|
25454
25567
|
return undefined;
|
|
25455
25568
|
}
|
|
25456
25569
|
|
|
25457
|
-
const VERSION$
|
|
25458
|
-
const RepresentationType$
|
|
25459
|
-
function keyBuilder$
|
|
25460
|
-
return keyPrefix$1 + '::' + RepresentationType$
|
|
25570
|
+
const VERSION$X$1 = "3f49d751896cf66e6e29788d8880e2cc";
|
|
25571
|
+
const RepresentationType$D = 'PlatformActionRepresentation';
|
|
25572
|
+
function keyBuilder$1B(luvio, config) {
|
|
25573
|
+
return keyPrefix$1 + '::' + RepresentationType$D + ':' + config.externalId + ':' + (config.relatedSourceObject === null ? '' : config.relatedSourceObject) + ':' + (config.relatedListRecordId === null ? '' : config.relatedListRecordId);
|
|
25461
25574
|
}
|
|
25462
|
-
function keyBuilderFromType$
|
|
25575
|
+
function keyBuilderFromType$o(luvio, object) {
|
|
25463
25576
|
const keyParams = {
|
|
25464
25577
|
externalId: object.externalId,
|
|
25465
25578
|
relatedSourceObject: object.relatedSourceObject,
|
|
25466
25579
|
relatedListRecordId: object.relatedListRecordId
|
|
25467
25580
|
};
|
|
25468
|
-
return keyBuilder$
|
|
25581
|
+
return keyBuilder$1B(luvio, keyParams);
|
|
25469
25582
|
}
|
|
25470
25583
|
function normalize$x(input, existing, path, luvio, store, timestamp) {
|
|
25471
25584
|
return input;
|
|
@@ -25473,7 +25586,7 @@ function normalize$x(input, existing, path, luvio, store, timestamp) {
|
|
|
25473
25586
|
const select$1s = function PlatformActionRepresentationSelect() {
|
|
25474
25587
|
return {
|
|
25475
25588
|
kind: 'Fragment',
|
|
25476
|
-
version: VERSION$
|
|
25589
|
+
version: VERSION$X$1,
|
|
25477
25590
|
private: [
|
|
25478
25591
|
'id'
|
|
25479
25592
|
],
|
|
@@ -25553,7 +25666,7 @@ const select$1s = function PlatformActionRepresentationSelect() {
|
|
|
25553
25666
|
]
|
|
25554
25667
|
};
|
|
25555
25668
|
};
|
|
25556
|
-
function equals$
|
|
25669
|
+
function equals$K(existing, incoming) {
|
|
25557
25670
|
const existing_actionListContext = existing.actionListContext;
|
|
25558
25671
|
const incoming_actionListContext = incoming.actionListContext;
|
|
25559
25672
|
if (!(existing_actionListContext === incoming_actionListContext)) {
|
|
@@ -25652,31 +25765,31 @@ function equals$L(existing, incoming) {
|
|
|
25652
25765
|
return true;
|
|
25653
25766
|
}
|
|
25654
25767
|
const ingest$x$1 = function PlatformActionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
25655
|
-
const key = keyBuilderFromType$
|
|
25768
|
+
const key = keyBuilderFromType$o(luvio, input);
|
|
25656
25769
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
25657
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "UiApi", VERSION$
|
|
25770
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "UiApi", VERSION$X$1, RepresentationType$D, equals$K);
|
|
25658
25771
|
return createLink$3(key);
|
|
25659
25772
|
};
|
|
25660
|
-
function getTypeCacheKeys$
|
|
25773
|
+
function getTypeCacheKeys$E$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
25661
25774
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
25662
|
-
const rootKey = keyBuilderFromType$
|
|
25775
|
+
const rootKey = keyBuilderFromType$o(luvio, input);
|
|
25663
25776
|
rootKeySet.set(rootKey, {
|
|
25664
25777
|
namespace: keyPrefix$1,
|
|
25665
|
-
representationName: RepresentationType$
|
|
25778
|
+
representationName: RepresentationType$D,
|
|
25666
25779
|
mergeable: false
|
|
25667
25780
|
});
|
|
25668
25781
|
}
|
|
25669
25782
|
|
|
25670
|
-
const VERSION$
|
|
25671
|
-
const RepresentationType$
|
|
25672
|
-
function keyBuilder$
|
|
25673
|
-
return keyPrefix$1 + '::' + RepresentationType$
|
|
25783
|
+
const VERSION$W$1 = "378d506f563a4bd724b322d440df33d1";
|
|
25784
|
+
const RepresentationType$C = 'EntityActionRepresentation';
|
|
25785
|
+
function keyBuilder$1A(luvio, config) {
|
|
25786
|
+
return keyPrefix$1 + '::' + RepresentationType$C + ':' + config.url;
|
|
25674
25787
|
}
|
|
25675
|
-
function keyBuilderFromType$
|
|
25788
|
+
function keyBuilderFromType$n(luvio, object) {
|
|
25676
25789
|
const keyParams = {
|
|
25677
25790
|
url: object.url
|
|
25678
25791
|
};
|
|
25679
|
-
return keyBuilder$
|
|
25792
|
+
return keyBuilder$1A(luvio, keyParams);
|
|
25680
25793
|
}
|
|
25681
25794
|
function normalize$w(input, existing, path, luvio, store, timestamp) {
|
|
25682
25795
|
const input_actions = input.actions;
|
|
@@ -25700,7 +25813,7 @@ function normalize$w(input, existing, path, luvio, store, timestamp) {
|
|
|
25700
25813
|
const select$1r = function EntityActionRepresentationSelect() {
|
|
25701
25814
|
return {
|
|
25702
25815
|
kind: 'Fragment',
|
|
25703
|
-
version: VERSION$
|
|
25816
|
+
version: VERSION$W$1,
|
|
25704
25817
|
private: [
|
|
25705
25818
|
'links',
|
|
25706
25819
|
'url'
|
|
@@ -25715,7 +25828,7 @@ const select$1r = function EntityActionRepresentationSelect() {
|
|
|
25715
25828
|
]
|
|
25716
25829
|
};
|
|
25717
25830
|
};
|
|
25718
|
-
function equals$
|
|
25831
|
+
function equals$J(existing, incoming) {
|
|
25719
25832
|
const existing_url = existing.url;
|
|
25720
25833
|
const incoming_url = incoming.url;
|
|
25721
25834
|
if (!(existing_url === incoming_url)) {
|
|
@@ -25744,28 +25857,28 @@ function equals$K(existing, incoming) {
|
|
|
25744
25857
|
return true;
|
|
25745
25858
|
}
|
|
25746
25859
|
const ingest$w$1 = function EntityActionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
25747
|
-
const key = keyBuilderFromType$
|
|
25860
|
+
const key = keyBuilderFromType$n(luvio, input);
|
|
25748
25861
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
25749
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "UiApi", VERSION$
|
|
25862
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "UiApi", VERSION$W$1, RepresentationType$C, equals$J);
|
|
25750
25863
|
return createLink$3(key);
|
|
25751
25864
|
};
|
|
25752
|
-
function getTypeCacheKeys$
|
|
25865
|
+
function getTypeCacheKeys$D$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
25753
25866
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
25754
|
-
const rootKey = keyBuilderFromType$
|
|
25867
|
+
const rootKey = keyBuilderFromType$n(luvio, input);
|
|
25755
25868
|
rootKeySet.set(rootKey, {
|
|
25756
25869
|
namespace: keyPrefix$1,
|
|
25757
|
-
representationName: RepresentationType$
|
|
25870
|
+
representationName: RepresentationType$C,
|
|
25758
25871
|
mergeable: false
|
|
25759
25872
|
});
|
|
25760
25873
|
const input_actions_length = input.actions.length;
|
|
25761
25874
|
for (let i = 0; i < input_actions_length; i++) {
|
|
25762
|
-
getTypeCacheKeys$
|
|
25875
|
+
getTypeCacheKeys$E$1(rootKeySet, luvio, input.actions[i]);
|
|
25763
25876
|
}
|
|
25764
25877
|
}
|
|
25765
25878
|
|
|
25766
|
-
const TTL$
|
|
25767
|
-
const VERSION$
|
|
25768
|
-
const RepresentationType$
|
|
25879
|
+
const TTL$p = 300000;
|
|
25880
|
+
const VERSION$V$1 = "e485d96c1402a9ca2f56e56485af0216";
|
|
25881
|
+
const RepresentationType$B = 'ActionRepresentation';
|
|
25769
25882
|
function normalize$v(input, existing, path, luvio, store, timestamp) {
|
|
25770
25883
|
const input_actions = input.actions;
|
|
25771
25884
|
const input_actions_id = path.fullPath + '__actions';
|
|
@@ -25791,7 +25904,7 @@ function normalize$v(input, existing, path, luvio, store, timestamp) {
|
|
|
25791
25904
|
const select$1q = function ActionRepresentationSelect() {
|
|
25792
25905
|
return {
|
|
25793
25906
|
kind: 'Fragment',
|
|
25794
|
-
version: VERSION$
|
|
25907
|
+
version: VERSION$V$1,
|
|
25795
25908
|
private: [
|
|
25796
25909
|
'eTag',
|
|
25797
25910
|
'url'
|
|
@@ -25806,7 +25919,7 @@ const select$1q = function ActionRepresentationSelect() {
|
|
|
25806
25919
|
]
|
|
25807
25920
|
};
|
|
25808
25921
|
};
|
|
25809
|
-
function equals$
|
|
25922
|
+
function equals$I(existing, incoming) {
|
|
25810
25923
|
const existing_eTag = existing.eTag;
|
|
25811
25924
|
const incoming_eTag = incoming.eTag;
|
|
25812
25925
|
if (!(existing_eTag === incoming_eTag)) {
|
|
@@ -25831,16 +25944,16 @@ function equals$J(existing, incoming) {
|
|
|
25831
25944
|
}
|
|
25832
25945
|
const ingest$v$1 = function ActionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
25833
25946
|
const key = path.fullPath;
|
|
25834
|
-
const ttlToUse = TTL$
|
|
25835
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "UiApi", VERSION$
|
|
25947
|
+
const ttlToUse = TTL$p;
|
|
25948
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "UiApi", VERSION$V$1, RepresentationType$B, equals$I);
|
|
25836
25949
|
return createLink$3(key);
|
|
25837
25950
|
};
|
|
25838
|
-
function getTypeCacheKeys$
|
|
25951
|
+
function getTypeCacheKeys$C$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
25839
25952
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
25840
25953
|
const rootKey = fullPathFactory();
|
|
25841
25954
|
rootKeySet.set(rootKey, {
|
|
25842
25955
|
namespace: keyPrefix$1,
|
|
25843
|
-
representationName: RepresentationType$
|
|
25956
|
+
representationName: RepresentationType$B,
|
|
25844
25957
|
mergeable: false
|
|
25845
25958
|
});
|
|
25846
25959
|
const input_actions = input.actions;
|
|
@@ -25848,22 +25961,22 @@ function getTypeCacheKeys$D$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
25848
25961
|
const input_actions_length = input_actions_keys.length;
|
|
25849
25962
|
for (let i = 0; i < input_actions_length; i++) {
|
|
25850
25963
|
const key = input_actions_keys[i];
|
|
25851
|
-
getTypeCacheKeys$
|
|
25964
|
+
getTypeCacheKeys$D$1(rootKeySet, luvio, input_actions[key]);
|
|
25852
25965
|
}
|
|
25853
25966
|
}
|
|
25854
25967
|
|
|
25855
25968
|
function select$1p(luvio, params) {
|
|
25856
25969
|
return select$1q();
|
|
25857
25970
|
}
|
|
25858
|
-
function keyBuilder$
|
|
25971
|
+
function keyBuilder$1z(luvio, params) {
|
|
25859
25972
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'apiNames:' + params.queryParams.apiNames + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'retrievalMode:' + params.queryParams.retrievalMode + ',' + 'sections:' + params.queryParams.sections + ')';
|
|
25860
25973
|
}
|
|
25861
25974
|
function getResponseCacheKeys$P(storeKeyMap, luvio, resourceParams, response) {
|
|
25862
|
-
getTypeCacheKeys$
|
|
25975
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1z(luvio, resourceParams));
|
|
25863
25976
|
}
|
|
25864
25977
|
function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
|
|
25865
25978
|
const { body } = response;
|
|
25866
|
-
const key = keyBuilder$
|
|
25979
|
+
const key = keyBuilder$1z(luvio, resourceParams);
|
|
25867
25980
|
luvio.storeIngest(key, ingest$v$1, body);
|
|
25868
25981
|
const snapshot = luvio.storeLookup({
|
|
25869
25982
|
recordId: key,
|
|
@@ -25874,13 +25987,13 @@ function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
25874
25987
|
return snapshot;
|
|
25875
25988
|
}
|
|
25876
25989
|
function ingestError$B(luvio, params, error, snapshotRefresh) {
|
|
25877
|
-
const key = keyBuilder$
|
|
25990
|
+
const key = keyBuilder$1z(luvio, params);
|
|
25878
25991
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
25879
25992
|
const storeMetadataParams = {
|
|
25880
|
-
ttl: TTL$
|
|
25993
|
+
ttl: TTL$p,
|
|
25881
25994
|
namespace: keyPrefix$1,
|
|
25882
|
-
version: VERSION$
|
|
25883
|
-
representationName: RepresentationType$
|
|
25995
|
+
version: VERSION$V$1,
|
|
25996
|
+
representationName: RepresentationType$B
|
|
25884
25997
|
};
|
|
25885
25998
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
25886
25999
|
return errorSnapshot;
|
|
@@ -25909,9 +26022,9 @@ const getGlobalActions_ConfigPropertyMetadata = [
|
|
|
25909
26022
|
];
|
|
25910
26023
|
const getGlobalActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$P, getGlobalActions_ConfigPropertyMetadata);
|
|
25911
26024
|
const createResourceParams$O = /*#__PURE__*/ createResourceParams$X(getGlobalActions_ConfigPropertyMetadata);
|
|
25912
|
-
function keyBuilder$
|
|
26025
|
+
function keyBuilder$1y(luvio, config) {
|
|
25913
26026
|
const resourceParams = createResourceParams$O(config);
|
|
25914
|
-
return keyBuilder$
|
|
26027
|
+
return keyBuilder$1z(luvio, resourceParams);
|
|
25915
26028
|
}
|
|
25916
26029
|
function typeCheckConfig$U(untrustedConfig) {
|
|
25917
26030
|
const config = {};
|
|
@@ -25967,7 +26080,7 @@ function buildNetworkSnapshotCachePolicy$I(context, coercedAdapterRequestContext
|
|
|
25967
26080
|
function buildCachedSnapshotCachePolicy$H(context, storeLookup) {
|
|
25968
26081
|
const { luvio, config } = context;
|
|
25969
26082
|
const selector = {
|
|
25970
|
-
recordId: keyBuilder$
|
|
26083
|
+
recordId: keyBuilder$1y(luvio, config),
|
|
25971
26084
|
node: adapterFragment$A(luvio, config),
|
|
25972
26085
|
variables: {},
|
|
25973
26086
|
};
|
|
@@ -25987,17 +26100,17 @@ const getGlobalActionsAdapterFactory = (luvio) => function UiApi__getGlobalActio
|
|
|
25987
26100
|
buildCachedSnapshotCachePolicy$H, buildNetworkSnapshotCachePolicy$I);
|
|
25988
26101
|
};
|
|
25989
26102
|
|
|
25990
|
-
const TTL$
|
|
25991
|
-
const VERSION$
|
|
25992
|
-
const RepresentationType$
|
|
25993
|
-
function keyBuilder$
|
|
25994
|
-
return keyPrefix$1 + '::' + RepresentationType$
|
|
26103
|
+
const TTL$o = 900000;
|
|
26104
|
+
const VERSION$U$1 = "3c5af9dc4086169091e3c5df2414c495";
|
|
26105
|
+
const RepresentationType$A = 'QuickActionLayoutRepresentation';
|
|
26106
|
+
function keyBuilder$1x(luvio, config) {
|
|
26107
|
+
return keyPrefix$1 + '::' + RepresentationType$A + ':' + config.actionApiName;
|
|
25995
26108
|
}
|
|
25996
|
-
function keyBuilderFromType$
|
|
26109
|
+
function keyBuilderFromType$m(luvio, object) {
|
|
25997
26110
|
const keyParams = {
|
|
25998
26111
|
actionApiName: object.actionApiName
|
|
25999
26112
|
};
|
|
26000
|
-
return keyBuilder$
|
|
26113
|
+
return keyBuilder$1x(luvio, keyParams);
|
|
26001
26114
|
}
|
|
26002
26115
|
function normalize$u(input, existing, path, luvio, store, timestamp) {
|
|
26003
26116
|
return input;
|
|
@@ -26005,7 +26118,7 @@ function normalize$u(input, existing, path, luvio, store, timestamp) {
|
|
|
26005
26118
|
const select$1o = function QuickActionLayoutRepresentationSelect() {
|
|
26006
26119
|
return {
|
|
26007
26120
|
kind: 'Fragment',
|
|
26008
|
-
version: VERSION$
|
|
26121
|
+
version: VERSION$U$1,
|
|
26009
26122
|
private: [
|
|
26010
26123
|
'eTag'
|
|
26011
26124
|
],
|
|
@@ -26022,24 +26135,24 @@ const select$1o = function QuickActionLayoutRepresentationSelect() {
|
|
|
26022
26135
|
]
|
|
26023
26136
|
};
|
|
26024
26137
|
};
|
|
26025
|
-
function equals$
|
|
26138
|
+
function equals$H(existing, incoming) {
|
|
26026
26139
|
if (existing.eTag !== incoming.eTag) {
|
|
26027
26140
|
return false;
|
|
26028
26141
|
}
|
|
26029
26142
|
return true;
|
|
26030
26143
|
}
|
|
26031
26144
|
const ingest$u$1 = function QuickActionLayoutRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
26032
|
-
const key = keyBuilderFromType$
|
|
26033
|
-
const ttlToUse = TTL$
|
|
26034
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "UiApi", VERSION$
|
|
26145
|
+
const key = keyBuilderFromType$m(luvio, input);
|
|
26146
|
+
const ttlToUse = TTL$o;
|
|
26147
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "UiApi", VERSION$U$1, RepresentationType$A, equals$H);
|
|
26035
26148
|
return createLink$3(key);
|
|
26036
26149
|
};
|
|
26037
|
-
function getTypeCacheKeys$
|
|
26150
|
+
function getTypeCacheKeys$B$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
26038
26151
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
26039
|
-
const rootKey = keyBuilderFromType$
|
|
26152
|
+
const rootKey = keyBuilderFromType$m(luvio, input);
|
|
26040
26153
|
rootKeySet.set(rootKey, {
|
|
26041
26154
|
namespace: keyPrefix$1,
|
|
26042
|
-
representationName: RepresentationType$
|
|
26155
|
+
representationName: RepresentationType$A,
|
|
26043
26156
|
mergeable: false
|
|
26044
26157
|
});
|
|
26045
26158
|
}
|
|
@@ -26047,17 +26160,17 @@ function getTypeCacheKeys$C$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
26047
26160
|
function select$1n(luvio, params) {
|
|
26048
26161
|
return select$1o();
|
|
26049
26162
|
}
|
|
26050
|
-
function keyBuilder$
|
|
26051
|
-
return keyBuilder$
|
|
26163
|
+
function keyBuilder$1w(luvio, params) {
|
|
26164
|
+
return keyBuilder$1x(luvio, {
|
|
26052
26165
|
actionApiName: params.urlParams.actionApiName
|
|
26053
26166
|
});
|
|
26054
26167
|
}
|
|
26055
26168
|
function getResponseCacheKeys$O(storeKeyMap, luvio, resourceParams, response) {
|
|
26056
|
-
getTypeCacheKeys$
|
|
26169
|
+
getTypeCacheKeys$B$1(storeKeyMap, luvio, response);
|
|
26057
26170
|
}
|
|
26058
26171
|
function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
|
|
26059
26172
|
const { body } = response;
|
|
26060
|
-
const key = keyBuilder$
|
|
26173
|
+
const key = keyBuilder$1w(luvio, resourceParams);
|
|
26061
26174
|
luvio.storeIngest(key, ingest$u$1, body);
|
|
26062
26175
|
const snapshot = luvio.storeLookup({
|
|
26063
26176
|
recordId: key,
|
|
@@ -26068,13 +26181,13 @@ function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
26068
26181
|
return snapshot;
|
|
26069
26182
|
}
|
|
26070
26183
|
function ingestError$A(luvio, params, error, snapshotRefresh) {
|
|
26071
|
-
const key = keyBuilder$
|
|
26184
|
+
const key = keyBuilder$1w(luvio, params);
|
|
26072
26185
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26073
26186
|
const storeMetadataParams = {
|
|
26074
|
-
ttl: TTL$
|
|
26187
|
+
ttl: TTL$o,
|
|
26075
26188
|
namespace: keyPrefix$1,
|
|
26076
|
-
version: VERSION$
|
|
26077
|
-
representationName: RepresentationType$
|
|
26189
|
+
version: VERSION$U$1,
|
|
26190
|
+
representationName: RepresentationType$A
|
|
26078
26191
|
};
|
|
26079
26192
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
26080
26193
|
return errorSnapshot;
|
|
@@ -26099,9 +26212,9 @@ const getQuickActionLayout_ConfigPropertyMetadata = [
|
|
|
26099
26212
|
];
|
|
26100
26213
|
const getQuickActionLayout_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$O, getQuickActionLayout_ConfigPropertyMetadata);
|
|
26101
26214
|
const createResourceParams$N = /*#__PURE__*/ createResourceParams$X(getQuickActionLayout_ConfigPropertyMetadata);
|
|
26102
|
-
function keyBuilder$
|
|
26215
|
+
function keyBuilder$1v(luvio, config) {
|
|
26103
26216
|
const resourceParams = createResourceParams$N(config);
|
|
26104
|
-
return keyBuilder$
|
|
26217
|
+
return keyBuilder$1w(luvio, resourceParams);
|
|
26105
26218
|
}
|
|
26106
26219
|
function typeCheckConfig$T(untrustedConfig) {
|
|
26107
26220
|
const config = {};
|
|
@@ -26156,7 +26269,7 @@ function buildNetworkSnapshotCachePolicy$H(context, coercedAdapterRequestContext
|
|
|
26156
26269
|
function buildCachedSnapshotCachePolicy$G(context, storeLookup) {
|
|
26157
26270
|
const { luvio, config } = context;
|
|
26158
26271
|
const selector = {
|
|
26159
|
-
recordId: keyBuilder$
|
|
26272
|
+
recordId: keyBuilder$1v(luvio, config),
|
|
26160
26273
|
node: adapterFragment$z(luvio, config),
|
|
26161
26274
|
variables: {},
|
|
26162
26275
|
};
|
|
@@ -26211,15 +26324,15 @@ function getSortedObjectApiNamesArray(value) {
|
|
|
26211
26324
|
function select$1m(luvio, params) {
|
|
26212
26325
|
return select$1q();
|
|
26213
26326
|
}
|
|
26214
|
-
function keyBuilder$
|
|
26327
|
+
function keyBuilder$1u(luvio, params) {
|
|
26215
26328
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'objectApiNames:' + params.urlParams.objectApiNames + ')';
|
|
26216
26329
|
}
|
|
26217
26330
|
function getResponseCacheKeys$N(storeKeyMap, luvio, resourceParams, response) {
|
|
26218
|
-
getTypeCacheKeys$
|
|
26331
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1u(luvio, resourceParams));
|
|
26219
26332
|
}
|
|
26220
26333
|
function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
|
|
26221
26334
|
const { body } = response;
|
|
26222
|
-
const key = keyBuilder$
|
|
26335
|
+
const key = keyBuilder$1u(luvio, resourceParams);
|
|
26223
26336
|
luvio.storeIngest(key, ingest$v$1, body);
|
|
26224
26337
|
const snapshot = luvio.storeLookup({
|
|
26225
26338
|
recordId: key,
|
|
@@ -26230,13 +26343,13 @@ function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
26230
26343
|
return snapshot;
|
|
26231
26344
|
}
|
|
26232
26345
|
function ingestError$z(luvio, params, error, snapshotRefresh) {
|
|
26233
|
-
const key = keyBuilder$
|
|
26346
|
+
const key = keyBuilder$1u(luvio, params);
|
|
26234
26347
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26235
26348
|
const storeMetadataParams = {
|
|
26236
|
-
ttl: TTL$
|
|
26349
|
+
ttl: TTL$p,
|
|
26237
26350
|
namespace: keyPrefix$1,
|
|
26238
|
-
version: VERSION$
|
|
26239
|
-
representationName: RepresentationType$
|
|
26351
|
+
version: VERSION$V$1,
|
|
26352
|
+
representationName: RepresentationType$B
|
|
26240
26353
|
};
|
|
26241
26354
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
26242
26355
|
return errorSnapshot;
|
|
@@ -26264,9 +26377,9 @@ const getLookupActions_ConfigPropertyMetadata = [
|
|
|
26264
26377
|
];
|
|
26265
26378
|
const getLookupActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$N, getLookupActions_ConfigPropertyMetadata);
|
|
26266
26379
|
const createResourceParams$M = /*#__PURE__*/ createResourceParams$X(getLookupActions_ConfigPropertyMetadata);
|
|
26267
|
-
function keyBuilder$
|
|
26380
|
+
function keyBuilder$1t(luvio, config) {
|
|
26268
26381
|
const resourceParams = createResourceParams$M(config);
|
|
26269
|
-
return keyBuilder$
|
|
26382
|
+
return keyBuilder$1u(luvio, resourceParams);
|
|
26270
26383
|
}
|
|
26271
26384
|
function typeCheckConfig$S(untrustedConfig) {
|
|
26272
26385
|
const config = {};
|
|
@@ -26322,7 +26435,7 @@ function buildNetworkSnapshotCachePolicy$G(context, coercedAdapterRequestContext
|
|
|
26322
26435
|
function buildCachedSnapshotCachePolicy$F(context, storeLookup) {
|
|
26323
26436
|
const { luvio, config } = context;
|
|
26324
26437
|
const selector = {
|
|
26325
|
-
recordId: keyBuilder$
|
|
26438
|
+
recordId: keyBuilder$1t(luvio, config),
|
|
26326
26439
|
node: adapterFragment$y(luvio, config),
|
|
26327
26440
|
variables: {},
|
|
26328
26441
|
};
|
|
@@ -26345,15 +26458,15 @@ const getLookupActionsAdapterFactory = (luvio) => function UiApi__getLookupActio
|
|
|
26345
26458
|
function select$1l(luvio, params) {
|
|
26346
26459
|
return select$1q();
|
|
26347
26460
|
}
|
|
26348
|
-
function keyBuilder$
|
|
26461
|
+
function keyBuilder$1s(luvio, params) {
|
|
26349
26462
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
26350
26463
|
}
|
|
26351
26464
|
function getResponseCacheKeys$M(storeKeyMap, luvio, resourceParams, response) {
|
|
26352
|
-
getTypeCacheKeys$
|
|
26465
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1s(luvio, resourceParams));
|
|
26353
26466
|
}
|
|
26354
26467
|
function ingestSuccess$C(luvio, resourceParams, response, snapshotRefresh) {
|
|
26355
26468
|
const { body } = response;
|
|
26356
|
-
const key = keyBuilder$
|
|
26469
|
+
const key = keyBuilder$1s(luvio, resourceParams);
|
|
26357
26470
|
luvio.storeIngest(key, ingest$v$1, body);
|
|
26358
26471
|
const snapshot = luvio.storeLookup({
|
|
26359
26472
|
recordId: key,
|
|
@@ -26364,13 +26477,13 @@ function ingestSuccess$C(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
26364
26477
|
return snapshot;
|
|
26365
26478
|
}
|
|
26366
26479
|
function ingestError$y(luvio, params, error, snapshotRefresh) {
|
|
26367
|
-
const key = keyBuilder$
|
|
26480
|
+
const key = keyBuilder$1s(luvio, params);
|
|
26368
26481
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26369
26482
|
const storeMetadataParams = {
|
|
26370
|
-
ttl: TTL$
|
|
26483
|
+
ttl: TTL$p,
|
|
26371
26484
|
namespace: keyPrefix$1,
|
|
26372
|
-
version: VERSION$
|
|
26373
|
-
representationName: RepresentationType$
|
|
26485
|
+
version: VERSION$V$1,
|
|
26486
|
+
representationName: RepresentationType$B
|
|
26374
26487
|
};
|
|
26375
26488
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
26376
26489
|
return errorSnapshot;
|
|
@@ -26398,9 +26511,9 @@ const getObjectCreateActions_ConfigPropertyMetadata = [
|
|
|
26398
26511
|
];
|
|
26399
26512
|
const getObjectCreateActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$M, getObjectCreateActions_ConfigPropertyMetadata);
|
|
26400
26513
|
const createResourceParams$L = /*#__PURE__*/ createResourceParams$X(getObjectCreateActions_ConfigPropertyMetadata);
|
|
26401
|
-
function keyBuilder$
|
|
26514
|
+
function keyBuilder$1r(luvio, config) {
|
|
26402
26515
|
const resourceParams = createResourceParams$L(config);
|
|
26403
|
-
return keyBuilder$
|
|
26516
|
+
return keyBuilder$1s(luvio, resourceParams);
|
|
26404
26517
|
}
|
|
26405
26518
|
function typeCheckConfig$R(untrustedConfig) {
|
|
26406
26519
|
const config = {};
|
|
@@ -26456,7 +26569,7 @@ function buildNetworkSnapshotCachePolicy$F(context, coercedAdapterRequestContext
|
|
|
26456
26569
|
function buildCachedSnapshotCachePolicy$E(context, storeLookup) {
|
|
26457
26570
|
const { luvio, config } = context;
|
|
26458
26571
|
const selector = {
|
|
26459
|
-
recordId: keyBuilder$
|
|
26572
|
+
recordId: keyBuilder$1r(luvio, config),
|
|
26460
26573
|
node: adapterFragment$x(luvio, config),
|
|
26461
26574
|
variables: {},
|
|
26462
26575
|
};
|
|
@@ -26476,20 +26589,20 @@ const getObjectCreateActionsAdapterFactory = (luvio) => function UiApi__getObjec
|
|
|
26476
26589
|
buildCachedSnapshotCachePolicy$E, buildNetworkSnapshotCachePolicy$F);
|
|
26477
26590
|
};
|
|
26478
26591
|
|
|
26479
|
-
const VERSION$
|
|
26480
|
-
const RepresentationType$
|
|
26592
|
+
const VERSION$T$1 = "fecd80e9e24a1c1e75fd5395cd34ff2e";
|
|
26593
|
+
const RepresentationType$z = 'ActionOverrideRepresentation';
|
|
26481
26594
|
function normalize$t(input, existing, path, luvio, store, timestamp) {
|
|
26482
26595
|
return input;
|
|
26483
26596
|
}
|
|
26484
26597
|
const select$1k = function ActionOverrideRepresentationSelect() {
|
|
26485
26598
|
return {
|
|
26486
26599
|
kind: 'Fragment',
|
|
26487
|
-
version: VERSION$
|
|
26600
|
+
version: VERSION$T$1,
|
|
26488
26601
|
private: [],
|
|
26489
26602
|
opaque: true
|
|
26490
26603
|
};
|
|
26491
26604
|
};
|
|
26492
|
-
function equals$
|
|
26605
|
+
function equals$G(existing, incoming) {
|
|
26493
26606
|
if (JSONStringify$2(incoming) !== JSONStringify$2(existing)) {
|
|
26494
26607
|
return false;
|
|
26495
26608
|
}
|
|
@@ -26498,15 +26611,15 @@ function equals$H(existing, incoming) {
|
|
|
26498
26611
|
const ingest$t$1 = function ActionOverrideRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
26499
26612
|
const key = path.fullPath;
|
|
26500
26613
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
26501
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$t, "UiApi", VERSION$
|
|
26614
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$t, "UiApi", VERSION$T$1, RepresentationType$z, equals$G);
|
|
26502
26615
|
return createLink$3(key);
|
|
26503
26616
|
};
|
|
26504
|
-
function getTypeCacheKeys$
|
|
26617
|
+
function getTypeCacheKeys$A$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
26505
26618
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
26506
26619
|
const rootKey = fullPathFactory();
|
|
26507
26620
|
rootKeySet.set(rootKey, {
|
|
26508
26621
|
namespace: keyPrefix$1,
|
|
26509
|
-
representationName: RepresentationType$
|
|
26622
|
+
representationName: RepresentationType$z,
|
|
26510
26623
|
mergeable: false
|
|
26511
26624
|
});
|
|
26512
26625
|
}
|
|
@@ -26514,15 +26627,15 @@ function getTypeCacheKeys$B$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
26514
26627
|
function select$1j(luvio, params) {
|
|
26515
26628
|
return select$1k();
|
|
26516
26629
|
}
|
|
26517
|
-
function keyBuilder$
|
|
26630
|
+
function keyBuilder$1q(luvio, params) {
|
|
26518
26631
|
return keyPrefix$1 + '::ActionOverrideRepresentation:(' + 'type:' + params.queryParams.type + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
26519
26632
|
}
|
|
26520
26633
|
function getResponseCacheKeys$L(storeKeyMap, luvio, resourceParams, response) {
|
|
26521
|
-
getTypeCacheKeys$
|
|
26634
|
+
getTypeCacheKeys$A$1(storeKeyMap, luvio, response, () => keyBuilder$1q(luvio, resourceParams));
|
|
26522
26635
|
}
|
|
26523
26636
|
function ingestSuccess$B(luvio, resourceParams, response, snapshotRefresh) {
|
|
26524
26637
|
const { body } = response;
|
|
26525
|
-
const key = keyBuilder$
|
|
26638
|
+
const key = keyBuilder$1q(luvio, resourceParams);
|
|
26526
26639
|
luvio.storeIngest(key, ingest$t$1, body);
|
|
26527
26640
|
const snapshot = luvio.storeLookup({
|
|
26528
26641
|
recordId: key,
|
|
@@ -26533,7 +26646,7 @@ function ingestSuccess$B(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
26533
26646
|
return snapshot;
|
|
26534
26647
|
}
|
|
26535
26648
|
function ingestError$x(luvio, params, error, snapshotRefresh) {
|
|
26536
|
-
const key = keyBuilder$
|
|
26649
|
+
const key = keyBuilder$1q(luvio, params);
|
|
26537
26650
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26538
26651
|
luvio.storeIngestError(key, errorSnapshot);
|
|
26539
26652
|
return errorSnapshot;
|
|
@@ -26559,9 +26672,9 @@ const getActionOverrides_ConfigPropertyMetadata = [
|
|
|
26559
26672
|
];
|
|
26560
26673
|
const getActionOverrides_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$L, getActionOverrides_ConfigPropertyMetadata);
|
|
26561
26674
|
const createResourceParams$K = /*#__PURE__*/ createResourceParams$X(getActionOverrides_ConfigPropertyMetadata);
|
|
26562
|
-
function keyBuilder$
|
|
26675
|
+
function keyBuilder$1p(luvio, config) {
|
|
26563
26676
|
const resourceParams = createResourceParams$K(config);
|
|
26564
|
-
return keyBuilder$
|
|
26677
|
+
return keyBuilder$1q(luvio, resourceParams);
|
|
26565
26678
|
}
|
|
26566
26679
|
function typeCheckConfig$Q(untrustedConfig) {
|
|
26567
26680
|
const config = {};
|
|
@@ -26617,7 +26730,7 @@ function buildNetworkSnapshotCachePolicy$E(context, coercedAdapterRequestContext
|
|
|
26617
26730
|
function buildCachedSnapshotCachePolicy$D(context, storeLookup) {
|
|
26618
26731
|
const { luvio, config } = context;
|
|
26619
26732
|
const selector = {
|
|
26620
|
-
recordId: keyBuilder$
|
|
26733
|
+
recordId: keyBuilder$1p(luvio, config),
|
|
26621
26734
|
node: adapterFragment$w(luvio, config),
|
|
26622
26735
|
variables: {},
|
|
26623
26736
|
};
|
|
@@ -26637,118 +26750,11 @@ const getActionOverridesAdapterFactory = (luvio) => function UiApi__getActionOve
|
|
|
26637
26750
|
buildCachedSnapshotCachePolicy$D, buildNetworkSnapshotCachePolicy$E);
|
|
26638
26751
|
};
|
|
26639
26752
|
|
|
26640
|
-
const TTL$o = 900000;
|
|
26641
|
-
const VERSION$T$1 = "993b0a7bce6056c4f57ed300ec153d9c";
|
|
26642
|
-
const RepresentationType$z = 'QuickActionDefaultsRepresentation';
|
|
26643
|
-
function keyBuilder$1p(luvio, config) {
|
|
26644
|
-
return keyPrefix$1 + '::' + RepresentationType$z + ':' + config.actionApiName;
|
|
26645
|
-
}
|
|
26646
|
-
function keyBuilderFromType$m(luvio, object) {
|
|
26647
|
-
const keyParams = {
|
|
26648
|
-
actionApiName: object.actionApiName
|
|
26649
|
-
};
|
|
26650
|
-
return keyBuilder$1p(luvio, keyParams);
|
|
26651
|
-
}
|
|
26652
|
-
function dynamicNormalize$4(ingestParams) {
|
|
26653
|
-
return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
|
|
26654
|
-
const input_fields = input.fields;
|
|
26655
|
-
const input_fields_id = path.fullPath + '__fields';
|
|
26656
|
-
const input_fields_keys = Object.keys(input_fields);
|
|
26657
|
-
const input_fields_length = input_fields_keys.length;
|
|
26658
|
-
for (let i = 0; i < input_fields_length; i++) {
|
|
26659
|
-
const key = input_fields_keys[i];
|
|
26660
|
-
const input_fields_prop = input_fields[key];
|
|
26661
|
-
const input_fields_prop_id = input_fields_id + '__' + key;
|
|
26662
|
-
input_fields[key] = ingestParams.fields(input_fields_prop, {
|
|
26663
|
-
fullPath: input_fields_prop_id,
|
|
26664
|
-
propertyName: key,
|
|
26665
|
-
parent: {
|
|
26666
|
-
data: input,
|
|
26667
|
-
key: path.fullPath,
|
|
26668
|
-
existing: existing,
|
|
26669
|
-
},
|
|
26670
|
-
ttl: path.ttl
|
|
26671
|
-
}, luvio, store, timestamp);
|
|
26672
|
-
}
|
|
26673
|
-
return input;
|
|
26674
|
-
};
|
|
26675
|
-
}
|
|
26676
|
-
const dynamicSelect$5 = function dynamicQuickActionDefaultsRepresentationSelect(params) {
|
|
26677
|
-
const fieldsPathSelection = params.fields === undefined ? {
|
|
26678
|
-
name: 'fields',
|
|
26679
|
-
kind: 'Link',
|
|
26680
|
-
map: true,
|
|
26681
|
-
fragment: select$1F()
|
|
26682
|
-
} : params.fields;
|
|
26683
|
-
return {
|
|
26684
|
-
kind: 'Fragment',
|
|
26685
|
-
version: VERSION$T$1,
|
|
26686
|
-
private: [
|
|
26687
|
-
'eTag'
|
|
26688
|
-
],
|
|
26689
|
-
selections: [
|
|
26690
|
-
{
|
|
26691
|
-
name: 'actionApiName',
|
|
26692
|
-
kind: 'Scalar'
|
|
26693
|
-
},
|
|
26694
|
-
fieldsPathSelection,
|
|
26695
|
-
{
|
|
26696
|
-
name: 'objectApiName',
|
|
26697
|
-
kind: 'Scalar'
|
|
26698
|
-
}
|
|
26699
|
-
]
|
|
26700
|
-
};
|
|
26701
|
-
};
|
|
26702
|
-
function equals$G(existing, incoming) {
|
|
26703
|
-
const existing_actionApiName = existing.actionApiName;
|
|
26704
|
-
const incoming_actionApiName = incoming.actionApiName;
|
|
26705
|
-
if (!(existing_actionApiName === incoming_actionApiName)) {
|
|
26706
|
-
return false;
|
|
26707
|
-
}
|
|
26708
|
-
const existing_eTag = existing.eTag;
|
|
26709
|
-
const incoming_eTag = incoming.eTag;
|
|
26710
|
-
if (!(existing_eTag === incoming_eTag)) {
|
|
26711
|
-
return false;
|
|
26712
|
-
}
|
|
26713
|
-
const existing_objectApiName = existing.objectApiName;
|
|
26714
|
-
const incoming_objectApiName = incoming.objectApiName;
|
|
26715
|
-
if (!(existing_objectApiName === incoming_objectApiName)) {
|
|
26716
|
-
return false;
|
|
26717
|
-
}
|
|
26718
|
-
const existing_fields = existing.fields;
|
|
26719
|
-
const incoming_fields = incoming.fields;
|
|
26720
|
-
const equals_fields_props = equalsObject$1(existing_fields, incoming_fields, (existing_fields_prop, incoming_fields_prop) => {
|
|
26721
|
-
if (!(existing_fields_prop.__ref === incoming_fields_prop.__ref)) {
|
|
26722
|
-
return false;
|
|
26723
|
-
}
|
|
26724
|
-
});
|
|
26725
|
-
if (equals_fields_props === false) {
|
|
26726
|
-
return false;
|
|
26727
|
-
}
|
|
26728
|
-
return true;
|
|
26729
|
-
}
|
|
26730
|
-
function getTypeCacheKeys$A$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
26731
|
-
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
26732
|
-
const rootKey = keyBuilderFromType$m(luvio, input);
|
|
26733
|
-
rootKeySet.set(rootKey, {
|
|
26734
|
-
namespace: keyPrefix$1,
|
|
26735
|
-
representationName: RepresentationType$z,
|
|
26736
|
-
mergeable: false
|
|
26737
|
-
});
|
|
26738
|
-
const input_fields = input.fields;
|
|
26739
|
-
const input_fields_keys = ObjectKeys$2(input_fields);
|
|
26740
|
-
const input_fields_length = input_fields_keys.length;
|
|
26741
|
-
for (let i = 0; i < input_fields_length; i++) {
|
|
26742
|
-
const key = input_fields_keys[i];
|
|
26743
|
-
getTypeCacheKeys$R$1(rootKeySet, luvio, input_fields[key], () => rootKey + "__fields" + "__" + key);
|
|
26744
|
-
}
|
|
26745
|
-
}
|
|
26746
|
-
|
|
26747
26753
|
const QUICK_ACTION_DEFAULTS_STORE_METADATA_PARAMS = {
|
|
26748
|
-
ttl: TTL$
|
|
26754
|
+
ttl: TTL$q,
|
|
26749
26755
|
namespace: keyPrefix$1,
|
|
26750
|
-
representationName: RepresentationType$
|
|
26751
|
-
version: VERSION$
|
|
26756
|
+
representationName: RepresentationType$E,
|
|
26757
|
+
version: VERSION$Y$1,
|
|
26752
26758
|
};
|
|
26753
26759
|
function merge$1(existing, incoming) {
|
|
26754
26760
|
if (existing === undefined) {
|
|
@@ -26765,7 +26771,7 @@ function merge$1(existing, incoming) {
|
|
|
26765
26771
|
}
|
|
26766
26772
|
const dynamicIngest$4 = (ingestParams) => {
|
|
26767
26773
|
return function QuickActionDefaultsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
26768
|
-
const key = keyBuilderFromType$
|
|
26774
|
+
const key = keyBuilderFromType$p(luvio, input);
|
|
26769
26775
|
const existingRecord = store.readEntry(key);
|
|
26770
26776
|
let incomingRecord = dynamicNormalize$4(ingestParams)(input, store.readEntry(key), {
|
|
26771
26777
|
fullPath: key,
|
|
@@ -26773,7 +26779,7 @@ const dynamicIngest$4 = (ingestParams) => {
|
|
|
26773
26779
|
propertyName: path.propertyName,
|
|
26774
26780
|
}, luvio, store, timestamp);
|
|
26775
26781
|
incomingRecord = merge$1(existingRecord, incomingRecord);
|
|
26776
|
-
if (existingRecord === undefined || equals$
|
|
26782
|
+
if (existingRecord === undefined || equals$L(existingRecord, incomingRecord) === false) {
|
|
26777
26783
|
luvio.storePublish(key, incomingRecord);
|
|
26778
26784
|
}
|
|
26779
26785
|
luvio.publishStoreMetadata(key, QUICK_ACTION_DEFAULTS_STORE_METADATA_PARAMS);
|
|
@@ -26825,21 +26831,21 @@ function selectFields$6(luvio, params) {
|
|
|
26825
26831
|
}
|
|
26826
26832
|
|
|
26827
26833
|
function keyBuilder$1o(luvio, params) {
|
|
26828
|
-
return keyBuilder$
|
|
26834
|
+
return keyBuilder$1C(luvio, {
|
|
26829
26835
|
actionApiName: params.urlParams.actionApiName
|
|
26830
26836
|
});
|
|
26831
26837
|
}
|
|
26832
26838
|
function getResponseCacheKeys$K(storeKeyMap, luvio, resourceParams, response) {
|
|
26833
|
-
getTypeCacheKeys$
|
|
26839
|
+
getTypeCacheKeys$F$1(storeKeyMap, luvio, response);
|
|
26834
26840
|
}
|
|
26835
26841
|
function ingestError$w(luvio, params, error, snapshotRefresh) {
|
|
26836
26842
|
const key = keyBuilder$1o(luvio, params);
|
|
26837
26843
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26838
26844
|
const storeMetadataParams = {
|
|
26839
|
-
ttl: TTL$
|
|
26845
|
+
ttl: TTL$q,
|
|
26840
26846
|
namespace: keyPrefix$1,
|
|
26841
|
-
version: VERSION$
|
|
26842
|
-
representationName: RepresentationType$
|
|
26847
|
+
version: VERSION$Y$1,
|
|
26848
|
+
representationName: RepresentationType$E
|
|
26843
26849
|
};
|
|
26844
26850
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
26845
26851
|
return errorSnapshot;
|
|
@@ -26974,7 +26980,7 @@ function keyBuilder$1m(luvio, params) {
|
|
|
26974
26980
|
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 + ')';
|
|
26975
26981
|
}
|
|
26976
26982
|
function getResponseCacheKeys$J(storeKeyMap, luvio, resourceParams, response) {
|
|
26977
|
-
getTypeCacheKeys$
|
|
26983
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1m(luvio, resourceParams));
|
|
26978
26984
|
}
|
|
26979
26985
|
function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
|
|
26980
26986
|
const { body } = response;
|
|
@@ -26992,10 +26998,10 @@ function ingestError$v(luvio, params, error, snapshotRefresh) {
|
|
|
26992
26998
|
const key = keyBuilder$1m(luvio, params);
|
|
26993
26999
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26994
27000
|
const storeMetadataParams = {
|
|
26995
|
-
ttl: TTL$
|
|
27001
|
+
ttl: TTL$p,
|
|
26996
27002
|
namespace: keyPrefix$1,
|
|
26997
|
-
version: VERSION$
|
|
26998
|
-
representationName: RepresentationType$
|
|
27003
|
+
version: VERSION$V$1,
|
|
27004
|
+
representationName: RepresentationType$B
|
|
26999
27005
|
};
|
|
27000
27006
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
27001
27007
|
return errorSnapshot;
|
|
@@ -27114,7 +27120,7 @@ function keyBuilder$1k(luvio, params) {
|
|
|
27114
27120
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'recordIds:' + params.urlParams.recordIds + ')';
|
|
27115
27121
|
}
|
|
27116
27122
|
function getResponseCacheKeys$I(storeKeyMap, luvio, resourceParams, response) {
|
|
27117
|
-
getTypeCacheKeys$
|
|
27123
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1k(luvio, resourceParams));
|
|
27118
27124
|
}
|
|
27119
27125
|
function ingestSuccess$z(luvio, resourceParams, response, snapshotRefresh) {
|
|
27120
27126
|
const { body } = response;
|
|
@@ -27132,10 +27138,10 @@ function ingestError$u(luvio, params, error, snapshotRefresh) {
|
|
|
27132
27138
|
const key = keyBuilder$1k(luvio, params);
|
|
27133
27139
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
27134
27140
|
const storeMetadataParams = {
|
|
27135
|
-
ttl: TTL$
|
|
27141
|
+
ttl: TTL$p,
|
|
27136
27142
|
namespace: keyPrefix$1,
|
|
27137
|
-
version: VERSION$
|
|
27138
|
-
representationName: RepresentationType$
|
|
27143
|
+
version: VERSION$V$1,
|
|
27144
|
+
representationName: RepresentationType$B
|
|
27139
27145
|
};
|
|
27140
27146
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
27141
27147
|
return errorSnapshot;
|
|
@@ -27318,7 +27324,7 @@ function keyBuilder$1i(luvio, params) {
|
|
|
27318
27324
|
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) + ')';
|
|
27319
27325
|
}
|
|
27320
27326
|
function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
|
|
27321
|
-
getTypeCacheKeys$
|
|
27327
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1i(luvio, resourceParams));
|
|
27322
27328
|
}
|
|
27323
27329
|
function ingestSuccess$y(luvio, resourceParams, response, snapshotRefresh) {
|
|
27324
27330
|
const { body } = response;
|
|
@@ -27336,10 +27342,10 @@ function ingestError$t(luvio, params, error, snapshotRefresh) {
|
|
|
27336
27342
|
const key = keyBuilder$1i(luvio, params);
|
|
27337
27343
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
27338
27344
|
const storeMetadataParams = {
|
|
27339
|
-
ttl: TTL$
|
|
27345
|
+
ttl: TTL$p,
|
|
27340
27346
|
namespace: keyPrefix$1,
|
|
27341
|
-
version: VERSION$
|
|
27342
|
-
representationName: RepresentationType$
|
|
27347
|
+
version: VERSION$V$1,
|
|
27348
|
+
representationName: RepresentationType$B
|
|
27343
27349
|
};
|
|
27344
27350
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
27345
27351
|
return errorSnapshot;
|
|
@@ -27764,7 +27770,7 @@ function keyBuilder$1e(luvio, params) {
|
|
|
27764
27770
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'recordIds:' + params.urlParams.recordIds + ',' + 'relatedListRecordIds:' + params.urlParams.relatedListRecordIds + ')';
|
|
27765
27771
|
}
|
|
27766
27772
|
function getResponseCacheKeys$F(storeKeyMap, luvio, resourceParams, response) {
|
|
27767
|
-
getTypeCacheKeys$
|
|
27773
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1e(luvio, resourceParams));
|
|
27768
27774
|
}
|
|
27769
27775
|
function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
|
|
27770
27776
|
const { body } = response;
|
|
@@ -27782,10 +27788,10 @@ function ingestError$r(luvio, params, error, snapshotRefresh) {
|
|
|
27782
27788
|
const key = keyBuilder$1e(luvio, params);
|
|
27783
27789
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
27784
27790
|
const storeMetadataParams = {
|
|
27785
|
-
ttl: TTL$
|
|
27791
|
+
ttl: TTL$p,
|
|
27786
27792
|
namespace: keyPrefix$1,
|
|
27787
|
-
version: VERSION$
|
|
27788
|
-
representationName: RepresentationType$
|
|
27793
|
+
version: VERSION$V$1,
|
|
27794
|
+
representationName: RepresentationType$B
|
|
27789
27795
|
};
|
|
27790
27796
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
27791
27797
|
return errorSnapshot;
|
|
@@ -41138,14 +41144,15 @@ withDefaultLuvio((luvio) => {
|
|
|
41138
41144
|
allowFunction: instrumentation$2.getRecordNotifyChangeAllowed,
|
|
41139
41145
|
dropFunction: instrumentation$2.getRecordNotifyChangeDropped,
|
|
41140
41146
|
});
|
|
41141
|
-
throttle(60, 60000, createLDSAdapter(luvio, 'notifyRecordUpdateAvailable', notifyUpdateAvailableFactory$
|
|
41147
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyRecordUpdateAvailable', notifyUpdateAvailableFactory$3), {
|
|
41142
41148
|
allowFunction: instrumentation$2.notifyRecordUpdateAvailableAllowed,
|
|
41143
41149
|
dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
|
|
41144
41150
|
});
|
|
41145
|
-
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$
|
|
41146
|
-
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41151
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$2));
|
|
41152
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
41153
|
+
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41147
41154
|
});
|
|
41148
|
-
// version: 1.
|
|
41155
|
+
// version: 1.228.1-0cb6f94f1
|
|
41149
41156
|
|
|
41150
41157
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
41151
41158
|
|
|
@@ -46260,6 +46267,12 @@ function buildLuvioOverrideForDraftAdapters(luvio, handler, extractTargetIdFromC
|
|
|
46260
46267
|
const resourceRequestCopy = clone$1(resourceRequest);
|
|
46261
46268
|
resourceRequestCopy.headers = resourceRequestCopy.headers || {};
|
|
46262
46269
|
resourceRequestCopy.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
46270
|
+
// enable return extra fields for record creation and record update http call
|
|
46271
|
+
if (resourceRequest.basePath === '/ui-api/records' &&
|
|
46272
|
+
(resourceRequest.method === 'post' || resourceRequest.method === 'patch')) {
|
|
46273
|
+
resourceRequestCopy.queryParams = resourceRequestCopy.queryParams || {};
|
|
46274
|
+
resourceRequestCopy.queryParams['includeFieldsInBody'] = true;
|
|
46275
|
+
}
|
|
46263
46276
|
const { data } = await handler.enqueue(resourceRequestCopy).catch((err) => {
|
|
46264
46277
|
throw transformErrorToDraftSynthesisError(err);
|
|
46265
46278
|
});
|
|
@@ -57797,7 +57810,7 @@ register({
|
|
|
57797
57810
|
id: '@salesforce/lds-network-adapter',
|
|
57798
57811
|
instrument: instrument$1,
|
|
57799
57812
|
});
|
|
57800
|
-
// version: 1.
|
|
57813
|
+
// version: 1.228.1-4e6356f71
|
|
57801
57814
|
|
|
57802
57815
|
const { create: create$2, keys: keys$2 } = Object;
|
|
57803
57816
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -57812,6 +57825,21 @@ function createFragmentMap(documentNode) {
|
|
|
57812
57825
|
});
|
|
57813
57826
|
return fragments;
|
|
57814
57827
|
}
|
|
57828
|
+
function mergeFragmentWithExistingSelections(fragmentFieldSelection, existingSelections) {
|
|
57829
|
+
// Check if there is an existing selection for this field we can merge with
|
|
57830
|
+
const existingField = getRequestedField(fragmentFieldSelection.name.value, existingSelections);
|
|
57831
|
+
if (existingField === undefined) {
|
|
57832
|
+
existingSelections.push(fragmentFieldSelection);
|
|
57833
|
+
}
|
|
57834
|
+
else {
|
|
57835
|
+
if (existingField.selectionSet) {
|
|
57836
|
+
const mergedSelections = mergeSelectionSets(existingField.selectionSet, fragmentFieldSelection.selectionSet);
|
|
57837
|
+
existingField.selectionSet.selections = mergedSelections
|
|
57838
|
+
? mergedSelections.selections
|
|
57839
|
+
: [];
|
|
57840
|
+
}
|
|
57841
|
+
}
|
|
57842
|
+
}
|
|
57815
57843
|
|
|
57816
57844
|
function buildFieldState(state, fullPath, data) {
|
|
57817
57845
|
return {
|
|
@@ -57880,6 +57908,220 @@ function serializeValueNode$1(valueNode, variables) {
|
|
|
57880
57908
|
}
|
|
57881
57909
|
}
|
|
57882
57910
|
}
|
|
57911
|
+
let selectionSetRequestedFieldsWeakMap = new WeakMap();
|
|
57912
|
+
function getRequestedFieldsForType(typename, selectionSet, namedFragmentsMap, isFragmentApplicable) {
|
|
57913
|
+
let cachedRequestedFieldsConfigurations = selectionSetRequestedFieldsWeakMap.get(selectionSet);
|
|
57914
|
+
if (cachedRequestedFieldsConfigurations === undefined) {
|
|
57915
|
+
cachedRequestedFieldsConfigurations = new Map();
|
|
57916
|
+
selectionSetRequestedFieldsWeakMap.set(selectionSet, cachedRequestedFieldsConfigurations);
|
|
57917
|
+
}
|
|
57918
|
+
const cachedRequestedFieldsForType = cachedRequestedFieldsConfigurations.get(typename);
|
|
57919
|
+
if (cachedRequestedFieldsForType !== undefined) {
|
|
57920
|
+
return cachedRequestedFieldsForType;
|
|
57921
|
+
}
|
|
57922
|
+
const selections = calculateRequestedFieldsForType(typename, selectionSet, namedFragmentsMap, isFragmentApplicable);
|
|
57923
|
+
cachedRequestedFieldsConfigurations.set(typename, selections);
|
|
57924
|
+
return selections;
|
|
57925
|
+
}
|
|
57926
|
+
function getRequestedField(responseDataFieldName, requestedFields) {
|
|
57927
|
+
return requestedFields.find((fieldNode) => (fieldNode.alias && fieldNode.alias.value === responseDataFieldName) ||
|
|
57928
|
+
(!fieldNode.alias && fieldNode.name.value === responseDataFieldName));
|
|
57929
|
+
}
|
|
57930
|
+
function calculateRequestedFieldsForType(typename, selectionSet, namedFragmentsMap, isFragmentApplicable) {
|
|
57931
|
+
const selections = [];
|
|
57932
|
+
selectionSet.selections.forEach((selection) => {
|
|
57933
|
+
if (selection.kind === 'Field') {
|
|
57934
|
+
selections.push(selection);
|
|
57935
|
+
}
|
|
57936
|
+
if (selection.kind === 'InlineFragment' && isFragmentApplicable(selection, typename)) {
|
|
57937
|
+
// loops over the map to get the values.
|
|
57938
|
+
getRequestedFieldsForType(typename, selection.selectionSet, namedFragmentsMap, isFragmentApplicable).forEach((fragmentFieldSelection) => {
|
|
57939
|
+
mergeFragmentWithExistingSelections(fragmentFieldSelection, selections);
|
|
57940
|
+
});
|
|
57941
|
+
}
|
|
57942
|
+
if (selection.kind === 'FragmentSpread') {
|
|
57943
|
+
const namedFragment = namedFragmentsMap[selection.name.value];
|
|
57944
|
+
if (namedFragment && isFragmentApplicable(namedFragment, typename)) {
|
|
57945
|
+
// loops over the map to get the values.
|
|
57946
|
+
getRequestedFieldsForType(typename, namedFragment.selectionSet, namedFragmentsMap, isFragmentApplicable).forEach((fragmentFieldSelection) => {
|
|
57947
|
+
mergeFragmentWithExistingSelections(fragmentFieldSelection, selections);
|
|
57948
|
+
});
|
|
57949
|
+
}
|
|
57950
|
+
}
|
|
57951
|
+
});
|
|
57952
|
+
// Needs to happen after the selections are merged.
|
|
57953
|
+
return selections.reduce((acc, fieldNode) => {
|
|
57954
|
+
const fieldName = fieldNode.alias ? fieldNode.alias.value : fieldNode.name.value;
|
|
57955
|
+
// 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.
|
|
57956
|
+
if (!acc.has(fieldName)) {
|
|
57957
|
+
acc.set(fieldName, fieldNode);
|
|
57958
|
+
}
|
|
57959
|
+
else {
|
|
57960
|
+
const existingFieldNode = acc.get(fieldName);
|
|
57961
|
+
acc.set(fieldName, {
|
|
57962
|
+
...existingFieldNode,
|
|
57963
|
+
selectionSet: mergeSelectionSets(existingFieldNode === null || existingFieldNode === void 0 ? void 0 : existingFieldNode.selectionSet, fieldNode.selectionSet),
|
|
57964
|
+
});
|
|
57965
|
+
}
|
|
57966
|
+
return acc;
|
|
57967
|
+
}, new Map());
|
|
57968
|
+
}
|
|
57969
|
+
function mergeSelectionSets(set1, set2) {
|
|
57970
|
+
if (!set2) {
|
|
57971
|
+
return set1;
|
|
57972
|
+
}
|
|
57973
|
+
const set1Selections = !set1 ? [] : set1.selections;
|
|
57974
|
+
const mergedSelections = [...set1Selections];
|
|
57975
|
+
for (const selection of set2.selections) {
|
|
57976
|
+
if (selection.kind === 'Field') {
|
|
57977
|
+
const existingFieldIndex = mergedSelections.findIndex((sel) => {
|
|
57978
|
+
return sel.kind === 'Field' && isExactSameField(sel, selection);
|
|
57979
|
+
});
|
|
57980
|
+
if (existingFieldIndex > -1) {
|
|
57981
|
+
const existingField = mergedSelections[existingFieldIndex];
|
|
57982
|
+
const mergedSelectionSet = mergeSelectionSets(existingField.selectionSet, selection.selectionSet);
|
|
57983
|
+
if (mergedSelectionSet) {
|
|
57984
|
+
mergedSelections[existingFieldIndex] = {
|
|
57985
|
+
...existingField,
|
|
57986
|
+
selectionSet: mergedSelectionSet,
|
|
57987
|
+
};
|
|
57988
|
+
}
|
|
57989
|
+
}
|
|
57990
|
+
else {
|
|
57991
|
+
mergedSelections.push(selection);
|
|
57992
|
+
}
|
|
57993
|
+
}
|
|
57994
|
+
else if (selection.kind === 'FragmentSpread') {
|
|
57995
|
+
if (!mergedSelections.some((sel) => sel.kind === 'FragmentSpread' &&
|
|
57996
|
+
sel.name.value === selection.name.value &&
|
|
57997
|
+
areDirectivesEqual(sel.directives, selection.directives))) {
|
|
57998
|
+
mergedSelections.push(selection);
|
|
57999
|
+
}
|
|
58000
|
+
}
|
|
58001
|
+
else if (selection.kind === 'InlineFragment') {
|
|
58002
|
+
const existingFragmentIndex = mergedSelections.findIndex((sel) => {
|
|
58003
|
+
return (sel.kind === 'InlineFragment' &&
|
|
58004
|
+
areTypeConditionsEqual(sel.typeCondition, selection.typeCondition) &&
|
|
58005
|
+
areDirectivesEqual(sel.directives, selection.directives));
|
|
58006
|
+
});
|
|
58007
|
+
if (existingFragmentIndex > -1) {
|
|
58008
|
+
const existingFragment = mergedSelections[existingFragmentIndex];
|
|
58009
|
+
const mergedSelectionSet = mergeSelectionSets(existingFragment.selectionSet, selection.selectionSet);
|
|
58010
|
+
if (mergedSelectionSet) {
|
|
58011
|
+
mergedSelections[existingFragmentIndex] = {
|
|
58012
|
+
...existingFragment,
|
|
58013
|
+
selectionSet: mergedSelectionSet,
|
|
58014
|
+
};
|
|
58015
|
+
}
|
|
58016
|
+
}
|
|
58017
|
+
else {
|
|
58018
|
+
mergedSelections.push(selection);
|
|
58019
|
+
}
|
|
58020
|
+
}
|
|
58021
|
+
}
|
|
58022
|
+
return { kind: 'SelectionSet', selections: mergedSelections };
|
|
58023
|
+
}
|
|
58024
|
+
function areArgumentsEqual(args1, args2) {
|
|
58025
|
+
if (!args1 && !args2) {
|
|
58026
|
+
return true;
|
|
58027
|
+
}
|
|
58028
|
+
// length 0 arguments is semantically equivalent to falsy arguments.
|
|
58029
|
+
if ((!args1 || args1.length === 0) && (!args2 || args2.length === 0)) {
|
|
58030
|
+
return true;
|
|
58031
|
+
}
|
|
58032
|
+
if ((!args1 && args2) || (args1 && !args2)) {
|
|
58033
|
+
return false;
|
|
58034
|
+
}
|
|
58035
|
+
if (args1.length !== args2.length) {
|
|
58036
|
+
return false;
|
|
58037
|
+
}
|
|
58038
|
+
for (const arg of args1) {
|
|
58039
|
+
const matchingArg = args2.find((a) => a.name.value === arg.name.value && areValuesEqual(a.value, arg.value));
|
|
58040
|
+
if (!matchingArg) {
|
|
58041
|
+
return false;
|
|
58042
|
+
}
|
|
58043
|
+
}
|
|
58044
|
+
return true;
|
|
58045
|
+
}
|
|
58046
|
+
function areDirectivesEqual(dirs1, dirs2) {
|
|
58047
|
+
if (!dirs1 && !dirs2) {
|
|
58048
|
+
return true;
|
|
58049
|
+
}
|
|
58050
|
+
if ((!dirs1 || dirs1.length === 0) && (!dirs2 || dirs2.length === 0)) {
|
|
58051
|
+
return true;
|
|
58052
|
+
}
|
|
58053
|
+
if ((!dirs1 && dirs2) || (dirs1 && !dirs2)) {
|
|
58054
|
+
return false;
|
|
58055
|
+
}
|
|
58056
|
+
if (dirs1.length !== dirs2.length) {
|
|
58057
|
+
return false;
|
|
58058
|
+
}
|
|
58059
|
+
for (const dir of dirs1) {
|
|
58060
|
+
const matchingDir = dirs2.find((d) => d.name.value === dir.name.value && areArgumentsEqual(d.arguments, dir.arguments));
|
|
58061
|
+
if (!matchingDir) {
|
|
58062
|
+
return false;
|
|
58063
|
+
}
|
|
58064
|
+
}
|
|
58065
|
+
return true;
|
|
58066
|
+
}
|
|
58067
|
+
function areValuesEqual(valueNode1, valueNode2) {
|
|
58068
|
+
if (valueNode1.kind !== valueNode2.kind) {
|
|
58069
|
+
return false;
|
|
58070
|
+
}
|
|
58071
|
+
// Typescript doesn't understand that the above check means that the switch applies to both values. So there will be casts here.
|
|
58072
|
+
switch (valueNode1.kind) {
|
|
58073
|
+
case 'StringValue':
|
|
58074
|
+
case 'IntValue':
|
|
58075
|
+
case 'FloatValue':
|
|
58076
|
+
case 'BooleanValue':
|
|
58077
|
+
case 'EnumValue':
|
|
58078
|
+
return valueNode1.value === valueNode2.value;
|
|
58079
|
+
case 'NullValue':
|
|
58080
|
+
return true; // Both Null value nodes? Always true.
|
|
58081
|
+
case 'ListValue':
|
|
58082
|
+
if (valueNode1.values.length !== valueNode2.values.length) {
|
|
58083
|
+
return false;
|
|
58084
|
+
}
|
|
58085
|
+
for (let i = 0; i < valueNode1.values.length; i++) {
|
|
58086
|
+
if (!areValuesEqual(valueNode1.values[i], valueNode2.values[i])) {
|
|
58087
|
+
return false;
|
|
58088
|
+
}
|
|
58089
|
+
}
|
|
58090
|
+
return true;
|
|
58091
|
+
case 'ObjectValue':
|
|
58092
|
+
if (valueNode1.fields.length !== valueNode2.fields.length) {
|
|
58093
|
+
return false;
|
|
58094
|
+
}
|
|
58095
|
+
for (let i = 0; i < valueNode1.fields.length; i++) {
|
|
58096
|
+
const field1 = valueNode1.fields[i];
|
|
58097
|
+
const field2 = valueNode2.fields.find((f) => f.name.value === field1.name.value);
|
|
58098
|
+
if (!field2 || !areValuesEqual(field1.value, field2.value)) {
|
|
58099
|
+
return false;
|
|
58100
|
+
}
|
|
58101
|
+
}
|
|
58102
|
+
return true;
|
|
58103
|
+
case 'Variable':
|
|
58104
|
+
return valueNode1.name.value === valueNode2.name.value;
|
|
58105
|
+
default:
|
|
58106
|
+
return false;
|
|
58107
|
+
}
|
|
58108
|
+
}
|
|
58109
|
+
function areTypeConditionsEqual(typeCondition1, typeCondition2) {
|
|
58110
|
+
if (typeCondition1 === undefined && typeCondition2 === undefined) {
|
|
58111
|
+
return true;
|
|
58112
|
+
}
|
|
58113
|
+
if ((!typeCondition1 && typeCondition2) || (typeCondition1 && !typeCondition2)) {
|
|
58114
|
+
return false;
|
|
58115
|
+
}
|
|
58116
|
+
return typeCondition1.name.value === typeCondition2.name.value;
|
|
58117
|
+
}
|
|
58118
|
+
function isExactSameField(field1, field2) {
|
|
58119
|
+
var _a, _b;
|
|
58120
|
+
return (field1.name.value === field2.name.value &&
|
|
58121
|
+
((_a = field1.alias) === null || _a === void 0 ? void 0 : _a.value) === ((_b = field2.alias) === null || _b === void 0 ? void 0 : _b.value) &&
|
|
58122
|
+
areArgumentsEqual(field1.arguments, field2.arguments) &&
|
|
58123
|
+
areDirectivesEqual(field1.directives, field2.directives));
|
|
58124
|
+
}
|
|
57883
58125
|
|
|
57884
58126
|
function serializeOperationNode$1(operationNode, variables, fragmentMap) {
|
|
57885
58127
|
return `${serializeSelectionSet(operationNode.selectionSet, variables, fragmentMap)}`;
|
|
@@ -57936,6 +58178,53 @@ function getOperationFromDocument(document, operationName) {
|
|
|
57936
58178
|
return operations[0]; // If a named operation is not provided, we return the first one
|
|
57937
58179
|
}
|
|
57938
58180
|
|
|
58181
|
+
const { hasOwnProperty: ObjectPrototypeHasOwnProperty$1 } = Object.prototype;
|
|
58182
|
+
// Deep merge that works on GraphQL data. It:
|
|
58183
|
+
// - recursively merges any Object properties that are present in both
|
|
58184
|
+
// - recursively merges arrays by deepMerging each Object item in the array (by index).
|
|
58185
|
+
function deepMerge(target, ...sources) {
|
|
58186
|
+
for (const source of sources) {
|
|
58187
|
+
for (const key in source) {
|
|
58188
|
+
if (ObjectPrototypeHasOwnProperty$1.call(source, key)) {
|
|
58189
|
+
const targetValue = target[key];
|
|
58190
|
+
const sourceValue = source[key];
|
|
58191
|
+
if (Array.isArray(targetValue) && Array.isArray(sourceValue)) {
|
|
58192
|
+
const maxLength = Math.max(targetValue.length, sourceValue.length);
|
|
58193
|
+
target[key] = Array.from({ length: maxLength }, (_, index) => {
|
|
58194
|
+
const targetItem = targetValue[index];
|
|
58195
|
+
const sourceItem = sourceValue[index];
|
|
58196
|
+
if (targetItem === undefined) {
|
|
58197
|
+
return sourceItem;
|
|
58198
|
+
}
|
|
58199
|
+
else if (sourceItem === undefined) {
|
|
58200
|
+
return targetItem;
|
|
58201
|
+
}
|
|
58202
|
+
else if (targetItem instanceof Object &&
|
|
58203
|
+
!Array.isArray(targetItem) &&
|
|
58204
|
+
sourceItem instanceof Object &&
|
|
58205
|
+
!Array.isArray(sourceItem)) {
|
|
58206
|
+
return deepMerge({}, targetItem, sourceItem);
|
|
58207
|
+
}
|
|
58208
|
+
else {
|
|
58209
|
+
return sourceItem;
|
|
58210
|
+
}
|
|
58211
|
+
});
|
|
58212
|
+
}
|
|
58213
|
+
else if (targetValue instanceof Object &&
|
|
58214
|
+
!Array.isArray(targetValue) &&
|
|
58215
|
+
sourceValue instanceof Object &&
|
|
58216
|
+
!Array.isArray(sourceValue)) {
|
|
58217
|
+
deepMerge(targetValue, sourceValue);
|
|
58218
|
+
}
|
|
58219
|
+
else {
|
|
58220
|
+
target[key] = sourceValue;
|
|
58221
|
+
}
|
|
58222
|
+
}
|
|
58223
|
+
}
|
|
58224
|
+
}
|
|
58225
|
+
return target;
|
|
58226
|
+
}
|
|
58227
|
+
|
|
57939
58228
|
/**
|
|
57940
58229
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
57941
58230
|
* All rights reserved.
|
|
@@ -71659,13 +71948,12 @@ function injectSelectionSet(selectionSetNode, queryTransformHelper, fragmentMap)
|
|
|
71659
71948
|
selectionSetNode === undefined) {
|
|
71660
71949
|
return;
|
|
71661
71950
|
}
|
|
71662
|
-
const
|
|
71663
|
-
|
|
71664
|
-
selections
|
|
71665
|
-
|
|
71666
|
-
|
|
71667
|
-
|
|
71668
|
-
mergedSelections.forEach(selection => {
|
|
71951
|
+
const minimumSelectionSet = {
|
|
71952
|
+
kind: 'SelectionSet',
|
|
71953
|
+
selections: queryTransformHelper.getMinimumSelections()
|
|
71954
|
+
};
|
|
71955
|
+
const mergedSelections = mergeSelectionSets(selectionSetNode, minimumSelectionSet);
|
|
71956
|
+
mergedSelections === null || mergedSelections === void 0 ? void 0 : mergedSelections.selections.forEach(selection => {
|
|
71669
71957
|
if (selection.kind === 'Field') {
|
|
71670
71958
|
const fieldType = queryTransformHelper.getFieldType(selection);
|
|
71671
71959
|
const fieldTransformHelper = fieldType === undefined ? undefined : getQueryTransformerForType(fieldType.typename);
|
|
@@ -71694,42 +71982,7 @@ function injectSelectionSet(selectionSetNode, queryTransformHelper, fragmentMap)
|
|
|
71694
71982
|
}
|
|
71695
71983
|
}
|
|
71696
71984
|
});
|
|
71697
|
-
Object.assign(selectionSetNode,
|
|
71698
|
-
selections: mergedSelections.length > 0 ? mergedSelections : undefined
|
|
71699
|
-
});
|
|
71700
|
-
}
|
|
71701
|
-
function mergeSelections(minimumSelections, querySelections) {
|
|
71702
|
-
const mergedSelections = [...querySelections];
|
|
71703
|
-
for (let i = 0; i < minimumSelections.length; i++) {
|
|
71704
|
-
const minimumSelection = minimumSelections[i];
|
|
71705
|
-
if (minimumSelection.kind === 'Field') {
|
|
71706
|
-
const existingNode = mergedSelections.find(selection => {
|
|
71707
|
-
return selection.kind === 'Field' && selection.name.value === minimumSelection.name.value && (selection.directives === undefined || selection.directives.length === 0);
|
|
71708
|
-
});
|
|
71709
|
-
if (existingNode !== undefined && existingNode.kind === 'Field') { // Maybe do better type narrowing above
|
|
71710
|
-
const existingNodeHasSubselections = existingNode.selectionSet !== undefined && existingNode.selectionSet.selections.length > 0;
|
|
71711
|
-
const minimumFieldNodeHasSubselections = minimumSelection.selectionSet !== undefined && minimumSelection.selectionSet.selections.length > 0;
|
|
71712
|
-
// TODO(correctness enhancement): this doesn't handle arugments. Add alias if arguments disagree?
|
|
71713
|
-
if (existingNodeHasSubselections && minimumFieldNodeHasSubselections) {
|
|
71714
|
-
const mergedChildSelections = mergeSelections(minimumSelection.selectionSet.selections, existingNode.selectionSet.selections);
|
|
71715
|
-
Object.assign(existingNode.selectionSet, {
|
|
71716
|
-
selections: mergedChildSelections
|
|
71717
|
-
});
|
|
71718
|
-
}
|
|
71719
|
-
}
|
|
71720
|
-
else {
|
|
71721
|
-
mergedSelections.push(minimumSelection);
|
|
71722
|
-
}
|
|
71723
|
-
}
|
|
71724
|
-
if (minimumSelection.kind === 'InlineFragment') {
|
|
71725
|
-
mergedSelections.push(minimumSelection);
|
|
71726
|
-
}
|
|
71727
|
-
if (minimumSelection.kind === 'FragmentSpread') ;
|
|
71728
|
-
}
|
|
71729
|
-
return mergedSelections;
|
|
71730
|
-
}
|
|
71731
|
-
function getRequestedField(responseDataFieldName, requestedFields) {
|
|
71732
|
-
return requestedFields.find(fieldNode => (fieldNode.alias && fieldNode.alias.value === responseDataFieldName) || (!fieldNode.alias && fieldNode.name.value === responseDataFieldName));
|
|
71985
|
+
Object.assign(selectionSetNode, mergedSelections);
|
|
71733
71986
|
}
|
|
71734
71987
|
function getPageMetadata(paginationMetadata, paginationParams) {
|
|
71735
71988
|
const metadataProperties = {};
|
|
@@ -71775,67 +72028,6 @@ function getSerializedKeyForField(field, variables, fieldType) {
|
|
|
71775
72028
|
const argumentString = mutableArgumentNodes.length > 0 ? '__' + serializeFieldArguments(mutableArgumentNodes, variables) : '';
|
|
71776
72029
|
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.
|
|
71777
72030
|
}
|
|
71778
|
-
function mergeFragmentWithExistingSelections(fragmentFieldSelection, existingSelections) {
|
|
71779
|
-
// Check if there is an existing selection for this field we can merge with
|
|
71780
|
-
// If this isn't done, we will see issues such as W-12293630 & W-12236456 as examples
|
|
71781
|
-
const existingField = getRequestedField(fragmentFieldSelection.name.value, existingSelections);
|
|
71782
|
-
if (existingField === undefined) {
|
|
71783
|
-
existingSelections.push(fragmentFieldSelection);
|
|
71784
|
-
}
|
|
71785
|
-
else {
|
|
71786
|
-
if (existingField.selectionSet === undefined) {
|
|
71787
|
-
existingField.selectionSet === fragmentFieldSelection.selectionSet;
|
|
71788
|
-
}
|
|
71789
|
-
else if (fragmentFieldSelection.selectionSet !== undefined) {
|
|
71790
|
-
existingField.selectionSet.selections = mergeSelections(fragmentFieldSelection.selectionSet.selections, existingField.selectionSet.selections);
|
|
71791
|
-
}
|
|
71792
|
-
}
|
|
71793
|
-
}
|
|
71794
|
-
function calculateRequestedFieldsForType(typename, selectionSet, namedFragmentsMap, isFragmentApplicable) {
|
|
71795
|
-
const selections = [];
|
|
71796
|
-
selectionSet.selections.forEach(selection => {
|
|
71797
|
-
if (selection.kind === "Field") {
|
|
71798
|
-
selections.push(selection);
|
|
71799
|
-
}
|
|
71800
|
-
if (selection.kind === "InlineFragment" && isFragmentApplicable(selection, typename)) {
|
|
71801
|
-
// loops over the map to get the values.
|
|
71802
|
-
getRequestedFieldsForType(typename, selection.selectionSet, namedFragmentsMap, isFragmentApplicable)
|
|
71803
|
-
.forEach(fragmentFieldSelection => { mergeFragmentWithExistingSelections(fragmentFieldSelection, selections); });
|
|
71804
|
-
}
|
|
71805
|
-
if (selection.kind === "FragmentSpread") {
|
|
71806
|
-
const namedFragment = namedFragmentsMap[selection.name.value];
|
|
71807
|
-
if (namedFragment && isFragmentApplicable(namedFragment, typename)) {
|
|
71808
|
-
// loops over the map to get the values.
|
|
71809
|
-
getRequestedFieldsForType(typename, namedFragment.selectionSet, namedFragmentsMap, isFragmentApplicable)
|
|
71810
|
-
.forEach(fragmentFieldSelection => { mergeFragmentWithExistingSelections(fragmentFieldSelection, selections); });
|
|
71811
|
-
}
|
|
71812
|
-
}
|
|
71813
|
-
});
|
|
71814
|
-
// Needs to happen after the selections are merged.
|
|
71815
|
-
return selections.reduce((acc, fieldNode) => {
|
|
71816
|
-
const fieldName = fieldNode.alias ? fieldNode.alias.value : fieldNode.name.value;
|
|
71817
|
-
// 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.
|
|
71818
|
-
if (!acc.has(fieldName)) {
|
|
71819
|
-
acc.set(fieldName, fieldNode);
|
|
71820
|
-
}
|
|
71821
|
-
return acc;
|
|
71822
|
-
}, new Map());
|
|
71823
|
-
}
|
|
71824
|
-
let selectionSetRequestedFieldsWeakMap = new WeakMap();
|
|
71825
|
-
function getRequestedFieldsForType(typename, selectionSet, namedFragmentsMap, isFragmentApplicable) {
|
|
71826
|
-
let cachedRequestedFieldsConfigurations = selectionSetRequestedFieldsWeakMap.get(selectionSet);
|
|
71827
|
-
if (cachedRequestedFieldsConfigurations === undefined) {
|
|
71828
|
-
cachedRequestedFieldsConfigurations = new Map();
|
|
71829
|
-
selectionSetRequestedFieldsWeakMap.set(selectionSet, cachedRequestedFieldsConfigurations);
|
|
71830
|
-
}
|
|
71831
|
-
const cachedRequestedFieldsForType = cachedRequestedFieldsConfigurations.get(typename);
|
|
71832
|
-
if (cachedRequestedFieldsForType !== undefined) {
|
|
71833
|
-
return cachedRequestedFieldsForType;
|
|
71834
|
-
}
|
|
71835
|
-
const selections = calculateRequestedFieldsForType(typename, selectionSet, namedFragmentsMap, isFragmentApplicable);
|
|
71836
|
-
cachedRequestedFieldsConfigurations.set(typename, selections);
|
|
71837
|
-
return selections;
|
|
71838
|
-
}
|
|
71839
72031
|
function getQueryTransformerForType(typename, fragmentMap) {
|
|
71840
72032
|
switch (typename) {
|
|
71841
72033
|
case "PercentAggregate": return {
|
|
@@ -72454,18 +72646,7 @@ function selectCalculateSink(sink, field, buildSelectionForNodeFn, source, reade
|
|
|
72454
72646
|
(_a = field.selectionSet) === null || _a === void 0 ? void 0 : _a.selections.forEach((sel) => {
|
|
72455
72647
|
const builtSelection = buildSelectionForNodeFn(source, reader, field, sel, variables, fragments, parentRecordId);
|
|
72456
72648
|
if (builtSelection !== undefined) {
|
|
72457
|
-
|
|
72458
|
-
Object.keys(builtSelection).forEach((key, value) => {
|
|
72459
|
-
// We only assign a field selection in the fragment if it doesn't already exist in sink
|
|
72460
|
-
// The non-fragment selection already got the merged selections in getRequestedFieldsForType
|
|
72461
|
-
if (sink[key] === undefined) {
|
|
72462
|
-
sink[key] = builtSelection[key];
|
|
72463
|
-
}
|
|
72464
|
-
});
|
|
72465
|
-
}
|
|
72466
|
-
else {
|
|
72467
|
-
Object.assign(sink, builtSelection);
|
|
72468
|
-
}
|
|
72649
|
+
deepMerge(sink, builtSelection);
|
|
72469
72650
|
}
|
|
72470
72651
|
});
|
|
72471
72652
|
return sink;
|
|
@@ -76075,7 +76256,7 @@ register({
|
|
|
76075
76256
|
configuration: { ...configurationForGraphQLAdapters },
|
|
76076
76257
|
instrument,
|
|
76077
76258
|
});
|
|
76078
|
-
// version: 1.
|
|
76259
|
+
// version: 1.228.1-0cb6f94f1
|
|
76079
76260
|
|
|
76080
76261
|
// On core the unstable adapters are re-exported with different names,
|
|
76081
76262
|
|
|
@@ -78322,7 +78503,7 @@ withDefaultLuvio((luvio) => {
|
|
|
78322
78503
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
78323
78504
|
graphQLImperative = ldsAdapter;
|
|
78324
78505
|
});
|
|
78325
|
-
// version: 1.
|
|
78506
|
+
// version: 1.228.1-0cb6f94f1
|
|
78326
78507
|
|
|
78327
78508
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
78328
78509
|
__proto__: null,
|
|
@@ -79036,4 +79217,4 @@ const { luvio } = getRuntime();
|
|
|
79036
79217
|
setDefaultLuvio({ luvio });
|
|
79037
79218
|
|
|
79038
79219
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
79039
|
-
// version: 1.
|
|
79220
|
+
// version: 1.228.1-4e6356f71
|