@salesforce/lds-worker-api 1.235.0 → 1.236.0
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.
|
@@ -3854,7 +3854,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
3854
3854
|
}
|
|
3855
3855
|
return resourceParams;
|
|
3856
3856
|
}
|
|
3857
|
-
// engine version: 0.
|
|
3857
|
+
// engine version: 0.148.1-b9169b45
|
|
3858
3858
|
|
|
3859
3859
|
/**
|
|
3860
3860
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -3862,6 +3862,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
3862
3862
|
* For full license text, see the LICENSE.txt file
|
|
3863
3863
|
*/
|
|
3864
3864
|
|
|
3865
|
+
|
|
3865
3866
|
/*
|
|
3866
3867
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
3867
3868
|
* All rights reserved.
|
|
@@ -3981,7 +3982,7 @@ function withDefaultLuvio(callback) {
|
|
|
3981
3982
|
}
|
|
3982
3983
|
callbacks.push(callback);
|
|
3983
3984
|
}
|
|
3984
|
-
// version: 1.
|
|
3985
|
+
// version: 1.236.0-036823f57
|
|
3985
3986
|
|
|
3986
3987
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3987
3988
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15442,7 +15443,7 @@ function gql(literals, ...subs) {
|
|
|
15442
15443
|
}
|
|
15443
15444
|
return superResult;
|
|
15444
15445
|
}
|
|
15445
|
-
// version: 1.
|
|
15446
|
+
// version: 1.236.0-036823f57
|
|
15446
15447
|
|
|
15447
15448
|
function unwrap(data) {
|
|
15448
15449
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -15459,6 +15460,7 @@ function unwrap(data) {
|
|
|
15459
15460
|
* For full license text, see the LICENSE.txt file
|
|
15460
15461
|
*/
|
|
15461
15462
|
|
|
15463
|
+
|
|
15462
15464
|
// instrumentation keys to be imported by ldsInstrumentation
|
|
15463
15465
|
const REFRESH_ADAPTER_EVENT = 'refresh-adapter-event';
|
|
15464
15466
|
const ADAPTER_UNFULFILLED_ERROR = 'adapter-unfulfilled-error';
|
|
@@ -16366,7 +16368,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16366
16368
|
const { apiFamily, name } = metadata;
|
|
16367
16369
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16368
16370
|
}
|
|
16369
|
-
// version: 1.
|
|
16371
|
+
// version: 1.236.0-036823f57
|
|
16370
16372
|
|
|
16371
16373
|
/**
|
|
16372
16374
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16465,7 +16467,7 @@ var TypeCheckShapes;
|
|
|
16465
16467
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16466
16468
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16467
16469
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16468
|
-
// engine version: 0.
|
|
16470
|
+
// engine version: 0.148.1-b9169b45
|
|
16469
16471
|
|
|
16470
16472
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16471
16473
|
|
|
@@ -16486,6 +16488,7 @@ freeze$4({
|
|
|
16486
16488
|
* For full license text, see the LICENSE.txt file
|
|
16487
16489
|
*/
|
|
16488
16490
|
|
|
16491
|
+
|
|
16489
16492
|
/**
|
|
16490
16493
|
* Limit the frequency and the duration that a function is invoked.
|
|
16491
16494
|
*
|
|
@@ -17052,11 +17055,11 @@ function assignMetadataLink$1(entry, metadataKey) {
|
|
|
17052
17055
|
entry['__metadata'] = createLink$3(metadataKey);
|
|
17053
17056
|
}
|
|
17054
17057
|
|
|
17055
|
-
const VERSION$
|
|
17058
|
+
const VERSION$1k = "275ae22194003d1e53f548b81219c5cb";
|
|
17056
17059
|
const select$1R = function ListColumnRepresentationSelect() {
|
|
17057
17060
|
return {
|
|
17058
17061
|
kind: 'Fragment',
|
|
17059
|
-
version: VERSION$
|
|
17062
|
+
version: VERSION$1k,
|
|
17060
17063
|
private: [],
|
|
17061
17064
|
selections: [
|
|
17062
17065
|
{
|
|
@@ -17079,7 +17082,7 @@ const select$1R = function ListColumnRepresentationSelect() {
|
|
|
17079
17082
|
};
|
|
17080
17083
|
};
|
|
17081
17084
|
|
|
17082
|
-
const VERSION$
|
|
17085
|
+
const VERSION$1j = "623aa9ce3a11031e35faf5671a41746e";
|
|
17083
17086
|
function validate$1H(obj, path = 'ListFilterByInfoRepresentation') {
|
|
17084
17087
|
const v_error = (() => {
|
|
17085
17088
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
@@ -17118,7 +17121,7 @@ function validate$1H(obj, path = 'ListFilterByInfoRepresentation') {
|
|
|
17118
17121
|
const select$1Q = function ListFilterByInfoRepresentationSelect() {
|
|
17119
17122
|
return {
|
|
17120
17123
|
kind: 'Fragment',
|
|
17121
|
-
version: VERSION$
|
|
17124
|
+
version: VERSION$1j,
|
|
17122
17125
|
private: [],
|
|
17123
17126
|
selections: [
|
|
17124
17127
|
{
|
|
@@ -17142,11 +17145,11 @@ const select$1Q = function ListFilterByInfoRepresentationSelect() {
|
|
|
17142
17145
|
};
|
|
17143
17146
|
};
|
|
17144
17147
|
|
|
17145
|
-
const VERSION$
|
|
17148
|
+
const VERSION$1i = "76042ff4af603b2ac0ec69fa0bd12046";
|
|
17146
17149
|
const select$1P = function ListReferenceRepresentationSelect() {
|
|
17147
17150
|
return {
|
|
17148
17151
|
kind: 'Fragment',
|
|
17149
|
-
version: VERSION$
|
|
17152
|
+
version: VERSION$1i,
|
|
17150
17153
|
private: [],
|
|
17151
17154
|
selections: [
|
|
17152
17155
|
{
|
|
@@ -17192,11 +17195,11 @@ function equals$$(existing, incoming) {
|
|
|
17192
17195
|
return true;
|
|
17193
17196
|
}
|
|
17194
17197
|
|
|
17195
|
-
const VERSION$
|
|
17198
|
+
const VERSION$1h = "32def9b631252c12b91a8209c1f49f5a";
|
|
17196
17199
|
const select$1O = function ListOrderByInfoRepresentationSelect() {
|
|
17197
17200
|
return {
|
|
17198
17201
|
kind: 'Fragment',
|
|
17199
|
-
version: VERSION$
|
|
17202
|
+
version: VERSION$1h,
|
|
17200
17203
|
private: [],
|
|
17201
17204
|
selections: [
|
|
17202
17205
|
{
|
|
@@ -17215,7 +17218,7 @@ const select$1O = function ListOrderByInfoRepresentationSelect() {
|
|
|
17215
17218
|
};
|
|
17216
17219
|
};
|
|
17217
17220
|
|
|
17218
|
-
const VERSION$
|
|
17221
|
+
const VERSION$1g = "2634258f216db34315c06d759a35676d";
|
|
17219
17222
|
function validate$1E(obj, path = 'ListScopeEntityRepresentation') {
|
|
17220
17223
|
const v_error = (() => {
|
|
17221
17224
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
@@ -17237,7 +17240,7 @@ function validate$1E(obj, path = 'ListScopeEntityRepresentation') {
|
|
|
17237
17240
|
const select$1N = function ListScopeEntityRepresentationSelect() {
|
|
17238
17241
|
return {
|
|
17239
17242
|
kind: 'Fragment',
|
|
17240
|
-
version: VERSION$
|
|
17243
|
+
version: VERSION$1g,
|
|
17241
17244
|
private: [],
|
|
17242
17245
|
selections: [
|
|
17243
17246
|
{
|
|
@@ -17252,7 +17255,7 @@ const select$1N = function ListScopeEntityRepresentationSelect() {
|
|
|
17252
17255
|
};
|
|
17253
17256
|
};
|
|
17254
17257
|
|
|
17255
|
-
const VERSION$
|
|
17258
|
+
const VERSION$1f = "3b85c5a08d50ce328481b9f8ab56127b";
|
|
17256
17259
|
function validate$1D(obj, path = 'ListScopeRelatedEntityRepresentation') {
|
|
17257
17260
|
const v_error = (() => {
|
|
17258
17261
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
@@ -17279,7 +17282,7 @@ function validate$1D(obj, path = 'ListScopeRelatedEntityRepresentation') {
|
|
|
17279
17282
|
const select$1M = function ListScopeRelatedEntityRepresentationSelect() {
|
|
17280
17283
|
return {
|
|
17281
17284
|
kind: 'Fragment',
|
|
17282
|
-
version: VERSION$
|
|
17285
|
+
version: VERSION$1f,
|
|
17283
17286
|
private: [],
|
|
17284
17287
|
selections: [
|
|
17285
17288
|
{
|
|
@@ -17298,7 +17301,7 @@ const select$1M = function ListScopeRelatedEntityRepresentationSelect() {
|
|
|
17298
17301
|
};
|
|
17299
17302
|
};
|
|
17300
17303
|
|
|
17301
|
-
const VERSION$
|
|
17304
|
+
const VERSION$1e = "a51de242c746e5500a833e84dfaa2170";
|
|
17302
17305
|
function validate$1C(obj, path = 'ListScopeRepresentation') {
|
|
17303
17306
|
const v_error = (() => {
|
|
17304
17307
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
@@ -17380,7 +17383,7 @@ const select$1L = function ListScopeRepresentationSelect() {
|
|
|
17380
17383
|
const { selections: ListScopeRelatedEntityRepresentation__selections, opaque: ListScopeRelatedEntityRepresentation__opaque, } = select$1M();
|
|
17381
17384
|
return {
|
|
17382
17385
|
kind: 'Fragment',
|
|
17383
|
-
version: VERSION$
|
|
17386
|
+
version: VERSION$1e,
|
|
17384
17387
|
private: [],
|
|
17385
17388
|
selections: [
|
|
17386
17389
|
{
|
|
@@ -17407,11 +17410,11 @@ const select$1L = function ListScopeRepresentationSelect() {
|
|
|
17407
17410
|
};
|
|
17408
17411
|
};
|
|
17409
17412
|
|
|
17410
|
-
const VERSION$
|
|
17413
|
+
const VERSION$1d$1 = "6506134f4d72fdfa349fe60ef1af2413";
|
|
17411
17414
|
const select$1K = function ListUserPreferenceRepresentationSelect() {
|
|
17412
17415
|
return {
|
|
17413
17416
|
kind: 'Fragment',
|
|
17414
|
-
version: VERSION$
|
|
17417
|
+
version: VERSION$1d$1,
|
|
17415
17418
|
private: [],
|
|
17416
17419
|
selections: [
|
|
17417
17420
|
{
|
|
@@ -17429,9 +17432,9 @@ const select$1K = function ListUserPreferenceRepresentationSelect() {
|
|
|
17429
17432
|
};
|
|
17430
17433
|
|
|
17431
17434
|
const TTL$y = 900000;
|
|
17432
|
-
const VERSION$
|
|
17435
|
+
const VERSION$1c$1 = "8b55d621d80c84ec2e331abc4e12fc56";
|
|
17433
17436
|
const RepresentationType$R = 'ListInfoRepresentation';
|
|
17434
|
-
function keyBuilder$
|
|
17437
|
+
function keyBuilder$1V(luvio, config) {
|
|
17435
17438
|
return keyPrefix$1 + '::' + RepresentationType$R + ':' + (config.listViewApiName === null ? '' : config.listViewApiName) + ':' + config.objectApiName + ':' + config.type;
|
|
17436
17439
|
}
|
|
17437
17440
|
function keyBuilderFromType$A(luvio, object) {
|
|
@@ -17440,7 +17443,7 @@ function keyBuilderFromType$A(luvio, object) {
|
|
|
17440
17443
|
objectApiName: object.listReference.objectApiName,
|
|
17441
17444
|
type: object.listReference.type
|
|
17442
17445
|
};
|
|
17443
|
-
return keyBuilder$
|
|
17446
|
+
return keyBuilder$1V(luvio, keyParams);
|
|
17444
17447
|
}
|
|
17445
17448
|
function normalize$L(input, existing, path, luvio, store, timestamp) {
|
|
17446
17449
|
return input;
|
|
@@ -17454,7 +17457,7 @@ const select$1J = function ListInfoRepresentationSelect() {
|
|
|
17454
17457
|
const { selections: ListUserPreferenceRepresentation__selections, opaque: ListUserPreferenceRepresentation__opaque, } = select$1K();
|
|
17455
17458
|
return {
|
|
17456
17459
|
kind: 'Fragment',
|
|
17457
|
-
version: VERSION$
|
|
17460
|
+
version: VERSION$1c$1,
|
|
17458
17461
|
private: [
|
|
17459
17462
|
'eTag'
|
|
17460
17463
|
],
|
|
@@ -17544,7 +17547,7 @@ function equals$_(existing, incoming) {
|
|
|
17544
17547
|
const ingest$L$1 = function ListInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
17545
17548
|
const key = keyBuilderFromType$A(luvio, input);
|
|
17546
17549
|
const ttlToUse = TTL$y;
|
|
17547
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$L, "UiApi", VERSION$
|
|
17550
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$L, "UiApi", VERSION$1c$1, RepresentationType$R, equals$_);
|
|
17548
17551
|
return createLink$3(key);
|
|
17549
17552
|
};
|
|
17550
17553
|
function getTypeCacheKeys$S$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -17558,7 +17561,7 @@ function getTypeCacheKeys$S$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
17558
17561
|
}
|
|
17559
17562
|
const notifyUpdateAvailableFactory$4 = (luvio) => {
|
|
17560
17563
|
return function notifyListInfoUpdateAvailable(configs) {
|
|
17561
|
-
const keys = configs.map(c => keyBuilder$
|
|
17564
|
+
const keys = configs.map(c => keyBuilder$1V(luvio, c));
|
|
17562
17565
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
17563
17566
|
};
|
|
17564
17567
|
};
|
|
@@ -17605,11 +17608,11 @@ function toSortedStringArray(value) {
|
|
|
17605
17608
|
return undefined;
|
|
17606
17609
|
}
|
|
17607
17610
|
|
|
17608
|
-
const VERSION$
|
|
17611
|
+
const VERSION$1b$1 = "d1e589a127fb1060c89070cdb6f500b2";
|
|
17609
17612
|
const select$1I = function RecordTypeInfoRepresentationSelect() {
|
|
17610
17613
|
return {
|
|
17611
17614
|
kind: 'Fragment',
|
|
17612
|
-
version: VERSION$
|
|
17615
|
+
version: VERSION$1b$1,
|
|
17613
17616
|
private: [],
|
|
17614
17617
|
selections: [
|
|
17615
17618
|
{
|
|
@@ -17664,7 +17667,7 @@ function equals$Z(existing, incoming) {
|
|
|
17664
17667
|
return true;
|
|
17665
17668
|
}
|
|
17666
17669
|
|
|
17667
|
-
const VERSION$
|
|
17670
|
+
const VERSION$1a$1 = "195d918987a35f45e1aa4dce9a11d8c5";
|
|
17668
17671
|
const RepresentationType$Q = 'FieldValueRepresentation';
|
|
17669
17672
|
function normalize$K(input, existing, path, luvio, store, timestamp) {
|
|
17670
17673
|
const input_value = input.value;
|
|
@@ -17686,7 +17689,7 @@ function normalize$K(input, existing, path, luvio, store, timestamp) {
|
|
|
17686
17689
|
const select$1H = function FieldValueRepresentationSelect() {
|
|
17687
17690
|
return {
|
|
17688
17691
|
kind: 'Fragment',
|
|
17689
|
-
version: VERSION$
|
|
17692
|
+
version: VERSION$1a$1,
|
|
17690
17693
|
private: [],
|
|
17691
17694
|
selections: [
|
|
17692
17695
|
{
|
|
@@ -17723,7 +17726,7 @@ function equals$Y(existing, incoming) {
|
|
|
17723
17726
|
const ingest$K$1 = function FieldValueRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
17724
17727
|
const key = path.fullPath;
|
|
17725
17728
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
17726
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$K, "UiApi", VERSION$
|
|
17729
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$K, "UiApi", VERSION$1a$1, RepresentationType$Q, equals$Y);
|
|
17727
17730
|
return createLink$3(key);
|
|
17728
17731
|
};
|
|
17729
17732
|
function getTypeCacheKeys$R$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -17766,7 +17769,7 @@ const getTypeCacheKeys$Q$1 = (rootKeySet, luvio, input, _fullPathFactory) => {
|
|
|
17766
17769
|
};
|
|
17767
17770
|
|
|
17768
17771
|
const TTL$x = 120000;
|
|
17769
|
-
const VERSION$
|
|
17772
|
+
const VERSION$19$1 = "79cb5ac9f44542f683d00245fdfe500d";
|
|
17770
17773
|
const RepresentationType$P = 'RecordCollectionRepresentation';
|
|
17771
17774
|
function normalize$J(input, existing, path, luvio, store, timestamp) {
|
|
17772
17775
|
const input_records = input.records;
|
|
@@ -17790,7 +17793,7 @@ function normalize$J(input, existing, path, luvio, store, timestamp) {
|
|
|
17790
17793
|
const select$1G = function RecordCollectionRepresentationSelect() {
|
|
17791
17794
|
return {
|
|
17792
17795
|
kind: 'Fragment',
|
|
17793
|
-
version: VERSION$
|
|
17796
|
+
version: VERSION$19$1,
|
|
17794
17797
|
private: [],
|
|
17795
17798
|
selections: [
|
|
17796
17799
|
{
|
|
@@ -17881,7 +17884,7 @@ function equals$X(existing, incoming) {
|
|
|
17881
17884
|
const ingest$J$1 = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
17882
17885
|
const key = path.fullPath;
|
|
17883
17886
|
const ttlToUse = TTL$x;
|
|
17884
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$J, "UiApi", VERSION$
|
|
17887
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$J, "UiApi", VERSION$19$1, RepresentationType$P, equals$X);
|
|
17885
17888
|
return createLink$3(key);
|
|
17886
17889
|
};
|
|
17887
17890
|
function getTypeCacheKeys$P$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -17909,16 +17912,16 @@ const keyBuilderFromType$z = function RecordRepresentationKeyBuilderFromType(luv
|
|
|
17909
17912
|
};
|
|
17910
17913
|
|
|
17911
17914
|
const TTL$w = 30000;
|
|
17912
|
-
const VERSION$
|
|
17915
|
+
const VERSION$18$1 = "98c5b18512e48ca8d28727549507e4ba";
|
|
17913
17916
|
const RepresentationType$O = 'RecordRepresentation';
|
|
17914
|
-
function keyBuilder$
|
|
17917
|
+
function keyBuilder$1U(luvio, config) {
|
|
17915
17918
|
return keyPrefix$1 + '::' + RepresentationType$O + ':' + config.recordId;
|
|
17916
17919
|
}
|
|
17917
17920
|
function keyBuilderFromType$y(luvio, object) {
|
|
17918
17921
|
const keyParams = {
|
|
17919
17922
|
recordId: object.id
|
|
17920
17923
|
};
|
|
17921
|
-
return keyBuilder$
|
|
17924
|
+
return keyBuilder$1U(luvio, keyParams);
|
|
17922
17925
|
}
|
|
17923
17926
|
function dynamicNormalize$5(ingestParams) {
|
|
17924
17927
|
return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
|
|
@@ -17967,7 +17970,7 @@ const select$1F = function RecordRepresentationSelect() {
|
|
|
17967
17970
|
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$1I();
|
|
17968
17971
|
return {
|
|
17969
17972
|
kind: 'Fragment',
|
|
17970
|
-
version: VERSION$
|
|
17973
|
+
version: VERSION$18$1,
|
|
17971
17974
|
private: [
|
|
17972
17975
|
'eTag',
|
|
17973
17976
|
'weakEtag'
|
|
@@ -18034,7 +18037,7 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
|
|
|
18034
18037
|
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$1I();
|
|
18035
18038
|
return {
|
|
18036
18039
|
kind: 'Fragment',
|
|
18037
|
-
version: VERSION$
|
|
18040
|
+
version: VERSION$18$1,
|
|
18038
18041
|
private: [
|
|
18039
18042
|
'eTag',
|
|
18040
18043
|
'weakEtag'
|
|
@@ -18171,7 +18174,7 @@ function getTypeCacheKeys$O$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
18171
18174
|
}
|
|
18172
18175
|
const notifyUpdateAvailableFactory$3 = (luvio) => {
|
|
18173
18176
|
return function notifyRecordUpdateAvailable(configs) {
|
|
18174
|
-
const keys = configs.map(c => keyBuilder$
|
|
18177
|
+
const keys = configs.map(c => keyBuilder$1U(luvio, c));
|
|
18175
18178
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
18176
18179
|
};
|
|
18177
18180
|
};
|
|
@@ -19551,7 +19554,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
19551
19554
|
kind: 'Fragment',
|
|
19552
19555
|
private: ['eTag', 'weakEtag'],
|
|
19553
19556
|
selections: createRecordSelection(childFieldDefinition),
|
|
19554
|
-
version: VERSION$
|
|
19557
|
+
version: VERSION$18$1,
|
|
19555
19558
|
},
|
|
19556
19559
|
};
|
|
19557
19560
|
}
|
|
@@ -19561,7 +19564,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
19561
19564
|
required: childFieldDefinition.optional === true ? false : undefined,
|
|
19562
19565
|
fragment: {
|
|
19563
19566
|
kind: 'Fragment',
|
|
19564
|
-
version: VERSION$
|
|
19567
|
+
version: VERSION$1a$1,
|
|
19565
19568
|
private: [],
|
|
19566
19569
|
selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
|
|
19567
19570
|
},
|
|
@@ -19593,7 +19596,7 @@ function createPathSelectionFromValue(fields) {
|
|
|
19593
19596
|
kind: 'Fragment',
|
|
19594
19597
|
private: [],
|
|
19595
19598
|
selections: buildSelectionFromRecord(fieldValue),
|
|
19596
|
-
version: VERSION$
|
|
19599
|
+
version: VERSION$18$1,
|
|
19597
19600
|
},
|
|
19598
19601
|
};
|
|
19599
19602
|
}
|
|
@@ -19603,7 +19606,7 @@ function createPathSelectionFromValue(fields) {
|
|
|
19603
19606
|
required: undefined,
|
|
19604
19607
|
fragment: {
|
|
19605
19608
|
kind: 'Fragment',
|
|
19606
|
-
version: VERSION$
|
|
19609
|
+
version: VERSION$1a$1,
|
|
19607
19610
|
private: [],
|
|
19608
19611
|
selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
|
|
19609
19612
|
},
|
|
@@ -20161,7 +20164,7 @@ function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
|
|
|
20161
20164
|
name: existing.apiName,
|
|
20162
20165
|
children: {},
|
|
20163
20166
|
};
|
|
20164
|
-
const recordKey = keyBuilder$
|
|
20167
|
+
const recordKey = keyBuilder$1U(luvio, {
|
|
20165
20168
|
recordId: incoming.id,
|
|
20166
20169
|
});
|
|
20167
20170
|
const trackedFieldsConfig = {
|
|
@@ -20430,7 +20433,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
|
|
|
20430
20433
|
ttl: TTL$w,
|
|
20431
20434
|
representationName: RepresentationType$O,
|
|
20432
20435
|
namespace: keyPrefix$1,
|
|
20433
|
-
version: VERSION$
|
|
20436
|
+
version: VERSION$18$1,
|
|
20434
20437
|
});
|
|
20435
20438
|
return createLink$3(key);
|
|
20436
20439
|
};
|
|
@@ -20526,8 +20529,8 @@ const createResourceRequest$12 = function getUiApiRecordsByRecordIdCreateResourc
|
|
|
20526
20529
|
};
|
|
20527
20530
|
};
|
|
20528
20531
|
|
|
20529
|
-
function keyBuilder$
|
|
20530
|
-
return keyBuilder$
|
|
20532
|
+
function keyBuilder$1T(luvio, params) {
|
|
20533
|
+
return keyBuilder$1U(luvio, {
|
|
20531
20534
|
recordId: params.urlParams.recordId
|
|
20532
20535
|
});
|
|
20533
20536
|
}
|
|
@@ -20586,12 +20589,12 @@ function validateAdapterConfig$11(untrustedConfig, configPropertyNames) {
|
|
|
20586
20589
|
// used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
|
|
20587
20590
|
function buildRecordSelector(luvio, recordId, fields, optionalFields) {
|
|
20588
20591
|
return {
|
|
20589
|
-
recordId: keyBuilder$
|
|
20592
|
+
recordId: keyBuilder$1U(luvio, { recordId }),
|
|
20590
20593
|
node: {
|
|
20591
20594
|
kind: 'Fragment',
|
|
20592
20595
|
private: ['eTag', 'weakEtag'],
|
|
20593
20596
|
selections: buildSelectionFromFields(fields, optionalFields),
|
|
20594
|
-
version: VERSION$
|
|
20597
|
+
version: VERSION$18$1,
|
|
20595
20598
|
},
|
|
20596
20599
|
variables: {},
|
|
20597
20600
|
};
|
|
@@ -20605,7 +20608,7 @@ function buildSnapshotRefresh$5(luvio, config) {
|
|
|
20605
20608
|
function prepareRequest$6(luvio, config) {
|
|
20606
20609
|
const { recordId, fields } = config;
|
|
20607
20610
|
// Should this go into the coersion logic?
|
|
20608
|
-
const key = keyBuilder$
|
|
20611
|
+
const key = keyBuilder$1T(luvio, createResourceParams$W(config));
|
|
20609
20612
|
const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
|
|
20610
20613
|
maxDepth: configurationForRestAdapters$1.getTrackedFieldDepthOnCacheMiss(),
|
|
20611
20614
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters$1.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
@@ -20709,17 +20712,17 @@ function isSingleBatchRecordResponse(response) {
|
|
|
20709
20712
|
response.results.length === 1);
|
|
20710
20713
|
}
|
|
20711
20714
|
|
|
20712
|
-
const VERSION$
|
|
20715
|
+
const VERSION$17$1 = "98cce53b8d13b1883d001bbdaab24383";
|
|
20713
20716
|
|
|
20714
|
-
const nonCachedErrors$
|
|
20715
|
-
function ingestSuccessChildResourceParams$
|
|
20717
|
+
const nonCachedErrors$7 = ObjectCreate$1$1(null);
|
|
20718
|
+
function ingestSuccessChildResourceParams$7(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
|
|
20716
20719
|
const childSnapshotDataResponses = [];
|
|
20717
20720
|
let seenRecords = new StoreKeySet();
|
|
20718
20721
|
let snapshotState = 'Fulfilled';
|
|
20719
20722
|
const now = Date.now();
|
|
20720
20723
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
20721
20724
|
const childResourceParams = childResourceParamsArray[index];
|
|
20722
|
-
const childKey = keyBuilder$
|
|
20725
|
+
const childKey = keyBuilder$1T(luvio, childResourceParams);
|
|
20723
20726
|
const result = childEnvelopes[index];
|
|
20724
20727
|
const { statusCode: childStatusCode, result: childBody } = result;
|
|
20725
20728
|
if (childStatusCode === 200) {
|
|
@@ -20774,14 +20777,14 @@ function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, chi
|
|
|
20774
20777
|
}
|
|
20775
20778
|
// track non-cached responses so rebuilds work properly
|
|
20776
20779
|
if (childStatusCode !== 404 && childStatusCode !== 200) {
|
|
20777
|
-
nonCachedErrors$
|
|
20780
|
+
nonCachedErrors$7[childKey] = {
|
|
20778
20781
|
expiration: now + TTL$w,
|
|
20779
20782
|
response: childBody,
|
|
20780
20783
|
status: childStatusCode,
|
|
20781
20784
|
};
|
|
20782
20785
|
}
|
|
20783
20786
|
else {
|
|
20784
|
-
delete nonCachedErrors$
|
|
20787
|
+
delete nonCachedErrors$7[childKey];
|
|
20785
20788
|
}
|
|
20786
20789
|
}
|
|
20787
20790
|
const childSnapshotData = {
|
|
@@ -20795,7 +20798,7 @@ function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, chi
|
|
|
20795
20798
|
};
|
|
20796
20799
|
}
|
|
20797
20800
|
|
|
20798
|
-
function selectChildResourceParams$
|
|
20801
|
+
function selectChildResourceParams$7(luvio, childResources, resourceParams) {
|
|
20799
20802
|
const envelopeBodyPath = 'result';
|
|
20800
20803
|
const envelopeStatusCodePath = 'statusCode';
|
|
20801
20804
|
const envelopePath = 'results';
|
|
@@ -20806,11 +20809,11 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
|
|
|
20806
20809
|
read: (reader) => {
|
|
20807
20810
|
// Top-level 404 lookup
|
|
20808
20811
|
const compositeSnapshot = luvio.storeLookup({
|
|
20809
|
-
recordId: keyBuilder$
|
|
20812
|
+
recordId: keyBuilder$1S(luvio, resourceParams),
|
|
20810
20813
|
node: {
|
|
20811
20814
|
kind: 'Fragment',
|
|
20812
20815
|
private: [],
|
|
20813
|
-
version: VERSION$
|
|
20816
|
+
version: VERSION$17$1,
|
|
20814
20817
|
},
|
|
20815
20818
|
variables: {},
|
|
20816
20819
|
});
|
|
@@ -20830,7 +20833,7 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
|
|
|
20830
20833
|
reader.enterPath(i);
|
|
20831
20834
|
reader.enterPath(envelopeBodyPath);
|
|
20832
20835
|
const childResource = childResources[i];
|
|
20833
|
-
const childKey = keyBuilder$
|
|
20836
|
+
const childKey = keyBuilder$1T(luvio, childResource);
|
|
20834
20837
|
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
20835
20838
|
const childSnapshot = reader.read(buildRecordSelector(luvio, childResource.urlParams.recordId, childResource.queryParams.fields || [], childResource.queryParams.optionalFields || []));
|
|
20836
20839
|
reader.exitPath();
|
|
@@ -20876,7 +20879,7 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
|
|
|
20876
20879
|
// has non-cached errors (since the top-level composite
|
|
20877
20880
|
// snapshot will look like an Unfulfilled snapshot
|
|
20878
20881
|
// instead of an error snapshot).
|
|
20879
|
-
const nonCachedError = nonCachedErrors$
|
|
20882
|
+
const nonCachedError = nonCachedErrors$7[childKey];
|
|
20880
20883
|
if (nonCachedError === undefined ||
|
|
20881
20884
|
nonCachedError.expiration < timestamp) {
|
|
20882
20885
|
reader.markMissingLink(childKey);
|
|
@@ -20914,8 +20917,8 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
|
|
|
20914
20917
|
}
|
|
20915
20918
|
|
|
20916
20919
|
ObjectCreate$1$1(null);
|
|
20917
|
-
function createChildResourceParams$
|
|
20918
|
-
|
|
20920
|
+
function createChildResourceParams$b(resourceParams) {
|
|
20921
|
+
let childConfigs = [];
|
|
20919
20922
|
for (let index = 0, len = resourceParams.urlParams.recordIds.length; index < len; index += 1) {
|
|
20920
20923
|
const item = resourceParams.urlParams.recordIds[index];
|
|
20921
20924
|
childConfigs.push({
|
|
@@ -20930,12 +20933,12 @@ function createChildResourceParams$8(resourceParams) {
|
|
|
20930
20933
|
}
|
|
20931
20934
|
return childConfigs;
|
|
20932
20935
|
}
|
|
20933
|
-
function keyBuilder$
|
|
20936
|
+
function keyBuilder$1S(luvio, params) {
|
|
20934
20937
|
return keyPrefix$1 + '::BatchRepresentation:(' + 'childRelationships:' + params.queryParams.childRelationships + ',' + 'fields:' + params.queryParams.fields + ',' + 'layoutTypes:' + params.queryParams.layoutTypes + ',' + 'modes:' + params.queryParams.modes + ',' + 'optionalFields:' + params.queryParams.optionalFields + ',' + 'pageSize:' + params.queryParams.pageSize + ',' + 'updateMru:' + params.queryParams.updateMru + ',' + 'recordIds:' + params.urlParams.recordIds + ')';
|
|
20935
20938
|
}
|
|
20936
20939
|
function getResponseCacheKeys$T(keys, luvio, resourceParams, response) {
|
|
20937
20940
|
const childEnvelopes = response.results;
|
|
20938
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
20941
|
+
const childResourceParamsArray = createChildResourceParams$b(resourceParams);
|
|
20939
20942
|
// get children keys
|
|
20940
20943
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
20941
20944
|
const childResourceParams = childResourceParamsArray[index];
|
|
@@ -20945,7 +20948,7 @@ function getResponseCacheKeys$T(keys, luvio, resourceParams, response) {
|
|
|
20945
20948
|
getResponseCacheKeys$U(keys, luvio, childResourceParams, childBody);
|
|
20946
20949
|
}
|
|
20947
20950
|
else if (childStatusCode === 404) {
|
|
20948
|
-
const childKey = keyBuilder$
|
|
20951
|
+
const childKey = keyBuilder$1T(luvio, childResourceParams);
|
|
20949
20952
|
keys.set(childKey, {
|
|
20950
20953
|
namespace: keyPrefix$1,
|
|
20951
20954
|
representationName: RepresentationType$O,
|
|
@@ -20955,7 +20958,7 @@ function getResponseCacheKeys$T(keys, luvio, resourceParams, response) {
|
|
|
20955
20958
|
}
|
|
20956
20959
|
}
|
|
20957
20960
|
function ingestError$G(luvio, params, error, snapshotRefresh) {
|
|
20958
|
-
const key = keyBuilder$
|
|
20961
|
+
const key = keyBuilder$1S(luvio, params);
|
|
20959
20962
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
20960
20963
|
luvio.storeIngestError(key, errorSnapshot);
|
|
20961
20964
|
return errorSnapshot;
|
|
@@ -21000,7 +21003,7 @@ function createResourceParams$V(config) {
|
|
|
21000
21003
|
};
|
|
21001
21004
|
}
|
|
21002
21005
|
|
|
21003
|
-
function createChildResourceParams$
|
|
21006
|
+
function createChildResourceParams$a(config) {
|
|
21004
21007
|
const childResources = [];
|
|
21005
21008
|
const { records } = config;
|
|
21006
21009
|
for (let outerIdx = 0, numOfRecordBatches = records.length; outerIdx < numOfRecordBatches; outerIdx += 1) {
|
|
@@ -21027,17 +21030,17 @@ function createChildResourceParams$7(config) {
|
|
|
21027
21030
|
}
|
|
21028
21031
|
|
|
21029
21032
|
function adapterFragment$E(luvio, config) {
|
|
21030
|
-
const childResources = createChildResourceParams$
|
|
21033
|
+
const childResources = createChildResourceParams$a(config);
|
|
21031
21034
|
const resourceParams = createResourceParams$V(config);
|
|
21032
|
-
return selectChildResourceParams$
|
|
21035
|
+
return selectChildResourceParams$7(luvio, childResources, resourceParams);
|
|
21033
21036
|
}
|
|
21034
21037
|
|
|
21035
21038
|
function onFetchResponseSuccess$I(luvio, config, resourceParams, response, serverRequestCount = 0) {
|
|
21036
21039
|
const childEnvelopes = response.body.results;
|
|
21037
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
21040
|
+
const childResourceParamsArray = createChildResourceParams$a(config);
|
|
21038
21041
|
const snapshotStateFulfilled = 'Fulfilled';
|
|
21039
|
-
const key = keyBuilder$
|
|
21040
|
-
const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$
|
|
21042
|
+
const key = keyBuilder$1S(luvio, resourceParams);
|
|
21043
|
+
const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$7(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
|
|
21041
21044
|
const snapshot = {
|
|
21042
21045
|
recordId: key,
|
|
21043
21046
|
data: childSnapshotData,
|
|
@@ -21224,9 +21227,9 @@ function tokenForAtMost$1(paginationMetadata, maxOffset) {
|
|
|
21224
21227
|
}
|
|
21225
21228
|
|
|
21226
21229
|
const TTL$v = 30000;
|
|
21227
|
-
const VERSION$
|
|
21230
|
+
const VERSION$16$1 = "614ef19823027c07fa6deb9a149619d2";
|
|
21228
21231
|
const RepresentationType$N = 'ListRecordCollectionRepresentation';
|
|
21229
|
-
function keyBuilder$
|
|
21232
|
+
function keyBuilder$1R(luvio, config) {
|
|
21230
21233
|
return keyPrefix$1 + '::' + RepresentationType$N + ':' + (config.listViewId === null ? '' : config.listViewId) + ':' + (config.sortBy === null ? '' : '[' + config.sortBy.join(',') + ']') + ':' + config.objectApiName + ':' + (config.listViewApiName === null ? '' : config.listViewApiName);
|
|
21231
21234
|
}
|
|
21232
21235
|
function keyBuilderFromType$x(luvio, object) {
|
|
@@ -21236,10 +21239,10 @@ function keyBuilderFromType$x(luvio, object) {
|
|
|
21236
21239
|
objectApiName: object.listReference.objectApiName,
|
|
21237
21240
|
listViewApiName: object.listReference.listViewApiName
|
|
21238
21241
|
};
|
|
21239
|
-
return keyBuilder$
|
|
21242
|
+
return keyBuilder$1R(luvio, keyParams);
|
|
21240
21243
|
}
|
|
21241
21244
|
function paginationKeyBuilder(luvio, config) {
|
|
21242
|
-
return keyBuilder$
|
|
21245
|
+
return keyBuilder$1R(luvio, config) + '__pagination';
|
|
21243
21246
|
}
|
|
21244
21247
|
function normalize$H(input, existing, path, luvio, store, timestamp) {
|
|
21245
21248
|
const input_records = input.records;
|
|
@@ -21266,7 +21269,7 @@ const select$1E = function ListRecordCollectionRepresentationSelect(paginationPa
|
|
|
21266
21269
|
kind: 'Fragment',
|
|
21267
21270
|
reader: true,
|
|
21268
21271
|
synthetic: false,
|
|
21269
|
-
version: VERSION$
|
|
21272
|
+
version: VERSION$16$1,
|
|
21270
21273
|
read: (source, reader) => {
|
|
21271
21274
|
const sink = {};
|
|
21272
21275
|
if (paginationParams === undefined) {
|
|
@@ -21312,7 +21315,7 @@ const select$1E = function ListRecordCollectionRepresentationSelect(paginationPa
|
|
|
21312
21315
|
reader.readScalar('count', metadataProperties, sink);
|
|
21313
21316
|
reader.exitPath();
|
|
21314
21317
|
reader.enterPath('fields');
|
|
21315
|
-
reader.readScalarPlural('fields', source, sink);
|
|
21318
|
+
reader.readScalarPlural('fields', source, sink, true);
|
|
21316
21319
|
reader.exitPath();
|
|
21317
21320
|
reader.enterPath('listInfoETag');
|
|
21318
21321
|
reader.readScalar('listInfoETag', source, sink);
|
|
@@ -21325,14 +21328,14 @@ const select$1E = function ListRecordCollectionRepresentationSelect(paginationPa
|
|
|
21325
21328
|
}, source, sink);
|
|
21326
21329
|
reader.exitPath();
|
|
21327
21330
|
reader.enterPath('optionalFields');
|
|
21328
|
-
reader.readScalarPlural('optionalFields', source, sink);
|
|
21331
|
+
reader.readScalarPlural('optionalFields', source, sink, true);
|
|
21329
21332
|
reader.exitPath();
|
|
21330
21333
|
reader.enterPath('sortBy');
|
|
21331
21334
|
if (source['sortBy'] === null) {
|
|
21332
21335
|
reader.readScalar('sortBy', source, sink);
|
|
21333
21336
|
}
|
|
21334
21337
|
else {
|
|
21335
|
-
reader.readScalarPlural('sortBy', source, sink);
|
|
21338
|
+
reader.readScalarPlural('sortBy', source, sink, true);
|
|
21336
21339
|
}
|
|
21337
21340
|
reader.exitPath();
|
|
21338
21341
|
return sink;
|
|
@@ -21380,7 +21383,7 @@ const dynamicSelect$7 = function dynamicListRecordCollectionRepresentationSelect
|
|
|
21380
21383
|
kind: 'Fragment',
|
|
21381
21384
|
reader: true,
|
|
21382
21385
|
synthetic: false,
|
|
21383
|
-
version: VERSION$
|
|
21386
|
+
version: VERSION$16$1,
|
|
21384
21387
|
read: (source, reader) => {
|
|
21385
21388
|
const sink = {};
|
|
21386
21389
|
if (paginationParams === undefined) {
|
|
@@ -21422,7 +21425,7 @@ const dynamicSelect$7 = function dynamicListRecordCollectionRepresentationSelect
|
|
|
21422
21425
|
reader.readScalar('count', metadataProperties, sink);
|
|
21423
21426
|
reader.exitPath();
|
|
21424
21427
|
reader.enterPath('fields');
|
|
21425
|
-
reader.readScalarPlural('fields', source, sink);
|
|
21428
|
+
reader.readScalarPlural('fields', source, sink, true);
|
|
21426
21429
|
reader.exitPath();
|
|
21427
21430
|
reader.enterPath('listInfoETag');
|
|
21428
21431
|
reader.readScalar('listInfoETag', source, sink);
|
|
@@ -21435,14 +21438,14 @@ const dynamicSelect$7 = function dynamicListRecordCollectionRepresentationSelect
|
|
|
21435
21438
|
}, source, sink);
|
|
21436
21439
|
reader.exitPath();
|
|
21437
21440
|
reader.enterPath('optionalFields');
|
|
21438
|
-
reader.readScalarPlural('optionalFields', source, sink);
|
|
21441
|
+
reader.readScalarPlural('optionalFields', source, sink, true);
|
|
21439
21442
|
reader.exitPath();
|
|
21440
21443
|
reader.enterPath('sortBy');
|
|
21441
21444
|
if (source['sortBy'] === null) {
|
|
21442
21445
|
reader.readScalar('sortBy', source, sink);
|
|
21443
21446
|
}
|
|
21444
21447
|
else {
|
|
21445
|
-
reader.readScalarPlural('sortBy', source, sink);
|
|
21448
|
+
reader.readScalarPlural('sortBy', source, sink, true);
|
|
21446
21449
|
}
|
|
21447
21450
|
reader.exitPath();
|
|
21448
21451
|
return sink;
|
|
@@ -21605,7 +21608,7 @@ const ingest$H$1 = function ListRecordCollectionRepresentationIngest(input, path
|
|
|
21605
21608
|
const storeMetadataParams = {
|
|
21606
21609
|
ttl: ttlToUse,
|
|
21607
21610
|
namespace: "UiApi",
|
|
21608
|
-
version: VERSION$
|
|
21611
|
+
version: VERSION$16$1,
|
|
21609
21612
|
representationName: RepresentationType$N,
|
|
21610
21613
|
};
|
|
21611
21614
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
@@ -21631,9 +21634,9 @@ function getTypeCacheKeys$N$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
21631
21634
|
}
|
|
21632
21635
|
}
|
|
21633
21636
|
|
|
21634
|
-
const VERSION$
|
|
21637
|
+
const VERSION$15$1 = "cf8d2eb042188974da26ffe6618cfd07";
|
|
21635
21638
|
const RepresentationType$M = 'ListUiRepresentation';
|
|
21636
|
-
function keyBuilder$
|
|
21639
|
+
function keyBuilder$1Q(luvio, config) {
|
|
21637
21640
|
return keyPrefix$1 + '::' + RepresentationType$M + ':' + (config.listViewApiName === null ? '' : config.listViewApiName) + ':' + config.objectApiName + ':' + config.type + ':' + (config.sortBy === null ? '' : '[' + config.sortBy.join(',') + ']');
|
|
21638
21641
|
}
|
|
21639
21642
|
function keyBuilderFromType$w(luvio, object) {
|
|
@@ -21643,7 +21646,7 @@ function keyBuilderFromType$w(luvio, object) {
|
|
|
21643
21646
|
type: object.info.listReference.type,
|
|
21644
21647
|
sortBy: object.records.sortBy
|
|
21645
21648
|
};
|
|
21646
|
-
return keyBuilder$
|
|
21649
|
+
return keyBuilder$1Q(luvio, keyParams);
|
|
21647
21650
|
}
|
|
21648
21651
|
function normalize$G(input, existing, path, luvio, store, timestamp) {
|
|
21649
21652
|
const input_info = input.info;
|
|
@@ -21685,7 +21688,7 @@ const dynamicSelect$6 = function dynamicListUiRepresentationSelect(params, pagin
|
|
|
21685
21688
|
} : params.records;
|
|
21686
21689
|
return {
|
|
21687
21690
|
kind: 'Fragment',
|
|
21688
|
-
version: VERSION$
|
|
21691
|
+
version: VERSION$15$1,
|
|
21689
21692
|
private: [
|
|
21690
21693
|
'eTag'
|
|
21691
21694
|
],
|
|
@@ -21716,7 +21719,7 @@ function equals$U(existing, incoming) {
|
|
|
21716
21719
|
const ingest$G$1 = function ListUiRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
21717
21720
|
const key = keyBuilderFromType$w(luvio, input);
|
|
21718
21721
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
21719
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$G, "UiApi", VERSION$
|
|
21722
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$G, "UiApi", VERSION$15$1, RepresentationType$M, equals$U);
|
|
21720
21723
|
return createLink$3(key);
|
|
21721
21724
|
};
|
|
21722
21725
|
function getTypeCacheKeys$M$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -21904,14 +21907,14 @@ const LIST_INFO_SELECTIONS_ETAG = [
|
|
|
21904
21907
|
* @param luvio Luvio
|
|
21905
21908
|
*/
|
|
21906
21909
|
function getListInfo(luvio, listRef, storeLookup) {
|
|
21907
|
-
const key = keyBuilder$
|
|
21910
|
+
const key = keyBuilder$1V(luvio, { ...listRef });
|
|
21908
21911
|
return storeLookup({
|
|
21909
21912
|
recordId: key,
|
|
21910
21913
|
node: {
|
|
21911
21914
|
kind: 'Fragment',
|
|
21912
21915
|
selections: LIST_INFO_SELECTIONS_ETAG,
|
|
21913
21916
|
private: [],
|
|
21914
|
-
version: VERSION$
|
|
21917
|
+
version: VERSION$1c$1,
|
|
21915
21918
|
},
|
|
21916
21919
|
variables: {},
|
|
21917
21920
|
});
|
|
@@ -22031,7 +22034,7 @@ function listFields(luvio, { fields = [], optionalFields = [], sortBy, }, listIn
|
|
|
22031
22034
|
addDefaultFields(qualifiedField, defaultFields_);
|
|
22032
22035
|
}
|
|
22033
22036
|
}
|
|
22034
|
-
const key = keyBuilder$
|
|
22037
|
+
const key = keyBuilder$1R(luvio, {
|
|
22035
22038
|
listViewId: listInfo.eTag,
|
|
22036
22039
|
sortBy: sortBy || null,
|
|
22037
22040
|
objectApiName: listInfo.listReference.objectApiName,
|
|
@@ -22076,7 +22079,7 @@ let context$2;
|
|
|
22076
22079
|
function setContext$2(adapterContext) {
|
|
22077
22080
|
context$2 = adapterContext;
|
|
22078
22081
|
}
|
|
22079
|
-
function keyBuilder$
|
|
22082
|
+
function keyBuilder$1P(luvio, params) {
|
|
22080
22083
|
const query = {
|
|
22081
22084
|
objectApiName: params.urlParams.objectApiName,
|
|
22082
22085
|
listViewApiName: params.urlParams.listViewApiName,
|
|
@@ -22087,7 +22090,7 @@ function keyBuilder$1Q(luvio, params) {
|
|
|
22087
22090
|
// Check and use any default values returned from the server (i.e. sortBy)
|
|
22088
22091
|
const config = { ...params.urlParams, ...params.queryParams };
|
|
22089
22092
|
const defaults = getServerDefaults(config, context$2);
|
|
22090
|
-
return keyBuilder$
|
|
22093
|
+
return keyBuilder$1R(luvio, {
|
|
22091
22094
|
objectApiName: listReference.objectApiName,
|
|
22092
22095
|
listViewApiName: listReference.listViewApiName,
|
|
22093
22096
|
listViewId: listReference.id,
|
|
@@ -22096,7 +22099,7 @@ function keyBuilder$1Q(luvio, params) {
|
|
|
22096
22099
|
}
|
|
22097
22100
|
// If there are no matching entries in the store, then we haven't fetched any data for this list view yet.
|
|
22098
22101
|
// Assuming that listViewId is empty and continue on
|
|
22099
|
-
return keyBuilder$
|
|
22102
|
+
return keyBuilder$1R(luvio, {
|
|
22100
22103
|
objectApiName: params.urlParams.objectApiName,
|
|
22101
22104
|
listViewApiName: params.urlParams.listViewApiName,
|
|
22102
22105
|
listViewId: '',
|
|
@@ -22114,14 +22117,14 @@ function select$1D(luvio, params) {
|
|
|
22114
22117
|
kind: 'Fragment',
|
|
22115
22118
|
private: ['eTag', 'weakEtag'],
|
|
22116
22119
|
selections: buildSelectionFromFields(fields, optionalFields),
|
|
22117
|
-
version: VERSION$
|
|
22120
|
+
version: VERSION$18$1
|
|
22118
22121
|
},
|
|
22119
22122
|
},
|
|
22120
22123
|
}, createPaginationParams$3(params));
|
|
22121
22124
|
}
|
|
22122
22125
|
function ingestSuccess$J(luvio, resourceParams, response, snapshotRefresh) {
|
|
22123
22126
|
const { body } = response;
|
|
22124
|
-
const key = keyBuilder$
|
|
22127
|
+
const key = keyBuilder$1P(luvio, resourceParams);
|
|
22125
22128
|
luvio.storeIngest(key, ingest$H$1, body);
|
|
22126
22129
|
const optionalFields = resourceParams.queryParams.optionalFields;
|
|
22127
22130
|
if (optionalFields && optionalFields.length > 0) {
|
|
@@ -22158,12 +22161,12 @@ function getResponseCacheKeys$S(storeKeyMap, luvio, resourceParams, response) {
|
|
|
22158
22161
|
getTypeCacheKeys$N$1(storeKeyMap, luvio, response);
|
|
22159
22162
|
}
|
|
22160
22163
|
function ingestError$F(luvio, params, error, snapshotRefresh) {
|
|
22161
|
-
const key = keyBuilder$
|
|
22164
|
+
const key = keyBuilder$1P(luvio, params);
|
|
22162
22165
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
22163
22166
|
const storeMetadataParams = {
|
|
22164
22167
|
ttl: TTL$v,
|
|
22165
22168
|
namespace: keyPrefix$1,
|
|
22166
|
-
version: VERSION$
|
|
22169
|
+
version: VERSION$16$1,
|
|
22167
22170
|
representationName: RepresentationType$N
|
|
22168
22171
|
};
|
|
22169
22172
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -22236,16 +22239,16 @@ function isErrorSnapshot(snapshot) {
|
|
|
22236
22239
|
return snapshot.state === 'Error';
|
|
22237
22240
|
}
|
|
22238
22241
|
|
|
22239
|
-
const VERSION$
|
|
22242
|
+
const VERSION$14$1 = "3529c5f7d0eb2206c90a52c6d9f721d4";
|
|
22240
22243
|
const RepresentationType$L = 'ListViewSummaryRepresentation';
|
|
22241
|
-
function keyBuilder$
|
|
22244
|
+
function keyBuilder$1O(luvio, config) {
|
|
22242
22245
|
return keyPrefix$1 + '::' + RepresentationType$L + ':' + (config.id === null ? '' : config.id);
|
|
22243
22246
|
}
|
|
22244
22247
|
function keyBuilderFromType$v(luvio, object) {
|
|
22245
22248
|
const keyParams = {
|
|
22246
22249
|
id: object.id
|
|
22247
22250
|
};
|
|
22248
|
-
return keyBuilder$
|
|
22251
|
+
return keyBuilder$1O(luvio, keyParams);
|
|
22249
22252
|
}
|
|
22250
22253
|
function normalize$F(input, existing, path, luvio, store, timestamp) {
|
|
22251
22254
|
return input;
|
|
@@ -22253,7 +22256,7 @@ function normalize$F(input, existing, path, luvio, store, timestamp) {
|
|
|
22253
22256
|
const select$1C = function ListViewSummaryRepresentationSelect() {
|
|
22254
22257
|
return {
|
|
22255
22258
|
kind: 'Fragment',
|
|
22256
|
-
version: VERSION$
|
|
22259
|
+
version: VERSION$14$1,
|
|
22257
22260
|
private: [],
|
|
22258
22261
|
selections: [
|
|
22259
22262
|
{
|
|
@@ -22301,7 +22304,7 @@ function equals$T(existing, incoming) {
|
|
|
22301
22304
|
const ingest$F$1 = function ListViewSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
22302
22305
|
const key = keyBuilderFromType$v(luvio, input);
|
|
22303
22306
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
22304
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$F, "UiApi", VERSION$
|
|
22307
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$F, "UiApi", VERSION$14$1, RepresentationType$L, equals$T);
|
|
22305
22308
|
return createLink$3(key);
|
|
22306
22309
|
};
|
|
22307
22310
|
function getTypeCacheKeys$L$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -22314,9 +22317,9 @@ function getTypeCacheKeys$L$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
22314
22317
|
});
|
|
22315
22318
|
}
|
|
22316
22319
|
|
|
22317
|
-
const VERSION$
|
|
22320
|
+
const VERSION$13$1 = "f4c79fe066da3558499d5ee88c72abcd";
|
|
22318
22321
|
const RepresentationType$K = 'ListViewSummaryCollectionRepresentation';
|
|
22319
|
-
function keyBuilder$
|
|
22322
|
+
function keyBuilder$1N(luvio, config) {
|
|
22320
22323
|
return keyPrefix$1 + '::' + RepresentationType$K + ':' + config.objectApiName + ':' + (config.queryString === null ? '' : config.queryString) + ':' + config.recentListsOnly;
|
|
22321
22324
|
}
|
|
22322
22325
|
function keyBuilderFromType$u(luvio, object) {
|
|
@@ -22325,7 +22328,7 @@ function keyBuilderFromType$u(luvio, object) {
|
|
|
22325
22328
|
queryString: object.queryString,
|
|
22326
22329
|
recentListsOnly: object.recentListsOnly
|
|
22327
22330
|
};
|
|
22328
|
-
return keyBuilder$
|
|
22331
|
+
return keyBuilder$1N(luvio, keyParams);
|
|
22329
22332
|
}
|
|
22330
22333
|
function normalize$E(input, existing, path, luvio, store, timestamp) {
|
|
22331
22334
|
const input_lists = input.lists;
|
|
@@ -22351,7 +22354,7 @@ const select$1B = function ListViewSummaryCollectionRepresentationSelect(paginat
|
|
|
22351
22354
|
kind: 'Fragment',
|
|
22352
22355
|
reader: true,
|
|
22353
22356
|
synthetic: false,
|
|
22354
|
-
version: VERSION$
|
|
22357
|
+
version: VERSION$13$1,
|
|
22355
22358
|
read: (source, reader) => {
|
|
22356
22359
|
const sink = {};
|
|
22357
22360
|
if (paginationParams === undefined) {
|
|
@@ -22568,7 +22571,7 @@ const ingest$E$1 = function ListViewSummaryCollectionRepresentationIngest(input,
|
|
|
22568
22571
|
const storeMetadataParams = {
|
|
22569
22572
|
ttl: ttlToUse,
|
|
22570
22573
|
namespace: "UiApi",
|
|
22571
|
-
version: VERSION$
|
|
22574
|
+
version: VERSION$13$1,
|
|
22572
22575
|
representationName: RepresentationType$K,
|
|
22573
22576
|
};
|
|
22574
22577
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
@@ -22595,7 +22598,7 @@ function getTypeCacheKeys$K$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
22595
22598
|
}
|
|
22596
22599
|
const notifyUpdateAvailableFactory$2 = (luvio) => {
|
|
22597
22600
|
return function notifyListViewSummaryUpdateAvailable(configs) {
|
|
22598
|
-
const keys = configs.map(c => keyBuilder$
|
|
22601
|
+
const keys = configs.map(c => keyBuilder$1N(luvio, c));
|
|
22599
22602
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
22600
22603
|
};
|
|
22601
22604
|
};
|
|
@@ -22611,8 +22614,8 @@ function select$1A(luvio, params) {
|
|
|
22611
22614
|
const paginationParams = createPaginationParams$2(params);
|
|
22612
22615
|
return select$1B(paginationParams);
|
|
22613
22616
|
}
|
|
22614
|
-
function keyBuilder$
|
|
22615
|
-
return keyBuilder$
|
|
22617
|
+
function keyBuilder$1M(luvio, params) {
|
|
22618
|
+
return keyBuilder$1N(luvio, {
|
|
22616
22619
|
objectApiName: params.urlParams.objectApiName,
|
|
22617
22620
|
queryString: params.queryParams.q || null,
|
|
22618
22621
|
recentListsOnly: params.queryParams.recentListsOnly || false
|
|
@@ -22623,7 +22626,7 @@ function getResponseCacheKeys$R(storeKeyMap, luvio, resourceParams, response) {
|
|
|
22623
22626
|
}
|
|
22624
22627
|
function ingestSuccess$I(luvio, resourceParams, response, snapshotRefresh) {
|
|
22625
22628
|
const { body } = response;
|
|
22626
|
-
const key = keyBuilder$
|
|
22629
|
+
const key = keyBuilder$1M(luvio, resourceParams);
|
|
22627
22630
|
luvio.storeIngest(key, ingest$E$1, body);
|
|
22628
22631
|
const snapshot = luvio.storeLookup({
|
|
22629
22632
|
recordId: key,
|
|
@@ -22634,7 +22637,7 @@ function ingestSuccess$I(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
22634
22637
|
return snapshot;
|
|
22635
22638
|
}
|
|
22636
22639
|
function ingestError$E(luvio, params, error, snapshotRefresh) {
|
|
22637
|
-
const key = keyBuilder$
|
|
22640
|
+
const key = keyBuilder$1M(luvio, params);
|
|
22638
22641
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
22639
22642
|
luvio.storeIngestError(key, errorSnapshot);
|
|
22640
22643
|
return errorSnapshot;
|
|
@@ -22663,9 +22666,9 @@ const getListViewSummaryCollection_ConfigPropertyMetadata = [
|
|
|
22663
22666
|
];
|
|
22664
22667
|
const getListViewSummaryCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$T, getListViewSummaryCollection_ConfigPropertyMetadata);
|
|
22665
22668
|
const createResourceParams$S = /*#__PURE__*/ createResourceParams$Y(getListViewSummaryCollection_ConfigPropertyMetadata);
|
|
22666
|
-
function keyBuilder$
|
|
22669
|
+
function keyBuilder$1L(luvio, config) {
|
|
22667
22670
|
const resourceParams = createResourceParams$S(config);
|
|
22668
|
-
return keyBuilder$
|
|
22671
|
+
return keyBuilder$1M(luvio, resourceParams);
|
|
22669
22672
|
}
|
|
22670
22673
|
function typeCheckConfig$Y(untrustedConfig) {
|
|
22671
22674
|
const config = {};
|
|
@@ -22748,12 +22751,12 @@ function getCachedItemsNumber$2(cacheSnapshot) {
|
|
|
22748
22751
|
return items.length;
|
|
22749
22752
|
}
|
|
22750
22753
|
function getPaginationMetadata$2(luvio, resourceParams) {
|
|
22751
|
-
const key = keyBuilder$
|
|
22754
|
+
const key = keyBuilder$1M(luvio, resourceParams);
|
|
22752
22755
|
const selector = {
|
|
22753
22756
|
recordId: key,
|
|
22754
22757
|
node: {
|
|
22755
22758
|
kind: 'Fragment',
|
|
22756
|
-
version: VERSION$
|
|
22759
|
+
version: VERSION$13$1,
|
|
22757
22760
|
private: [],
|
|
22758
22761
|
selections: [
|
|
22759
22762
|
{
|
|
@@ -22796,7 +22799,7 @@ function buildNetworkSnapshotCachePolicy$K(context, coercedAdapterRequestContext
|
|
|
22796
22799
|
function buildCachedSnapshotCachePolicy$K(context, storeLookup) {
|
|
22797
22800
|
const { luvio, config } = context;
|
|
22798
22801
|
const selector = {
|
|
22799
|
-
recordId: keyBuilder$
|
|
22802
|
+
recordId: keyBuilder$1L(luvio, config),
|
|
22800
22803
|
node: adapterFragment$D(luvio, config),
|
|
22801
22804
|
variables: {},
|
|
22802
22805
|
};
|
|
@@ -22826,8 +22829,8 @@ function createPaginationParams$1(params) {
|
|
|
22826
22829
|
pageSize: queryParams.pageSize === undefined ? 50 : queryParams.pageSize
|
|
22827
22830
|
};
|
|
22828
22831
|
}
|
|
22829
|
-
function keyBuilder$
|
|
22830
|
-
return keyBuilder$
|
|
22832
|
+
function keyBuilder$1K(luvio, params) {
|
|
22833
|
+
return keyBuilder$1Q(luvio, {
|
|
22831
22834
|
listViewApiName: null,
|
|
22832
22835
|
objectApiName: params.urlParams.objectApiName,
|
|
22833
22836
|
type: "mru",
|
|
@@ -22940,7 +22943,7 @@ function buildListUiFragment$1(config, fields) {
|
|
|
22940
22943
|
kind: 'Fragment',
|
|
22941
22944
|
private: ['eTag', 'weakEtag'],
|
|
22942
22945
|
selections: buildSelectionFromFields(...fields.getRecordSelectionFieldSets()),
|
|
22943
|
-
version: VERSION$
|
|
22946
|
+
version: VERSION$18$1,
|
|
22944
22947
|
},
|
|
22945
22948
|
},
|
|
22946
22949
|
};
|
|
@@ -22963,7 +22966,7 @@ function buildSnapshotRefresh_getMruListUi(luvio, config) {
|
|
|
22963
22966
|
function onResourceSuccess_getMruListUi(luvio, config, response) {
|
|
22964
22967
|
const { body } = response;
|
|
22965
22968
|
const listInfo = body.info;
|
|
22966
|
-
const listUiKey = keyBuilder$
|
|
22969
|
+
const listUiKey = keyBuilder$1Q(luvio, {
|
|
22967
22970
|
...listInfo.listReference,
|
|
22968
22971
|
sortBy: body.records.sortBy,
|
|
22969
22972
|
});
|
|
@@ -22987,7 +22990,7 @@ function buildCachedSnapshot$7(luvio, storeLookup, config, listInfo, fields) {
|
|
|
22987
22990
|
const listFields_ = fields || listFields(luvio, config, listInfo);
|
|
22988
22991
|
const resourceParams = createResourceParams$R(config);
|
|
22989
22992
|
const selector = {
|
|
22990
|
-
recordId: keyBuilder$
|
|
22993
|
+
recordId: keyBuilder$1K(luvio, resourceParams),
|
|
22991
22994
|
node: buildListUiFragment$1(config, listFields_),
|
|
22992
22995
|
variables: {},
|
|
22993
22996
|
};
|
|
@@ -23082,7 +23085,7 @@ function onResourceSuccess_getMruListRecords(luvio, config, listInfo, response)
|
|
|
23082
23085
|
const { body } = response;
|
|
23083
23086
|
const { listInfoETag } = body;
|
|
23084
23087
|
const fields = listFields(luvio, config, listInfo).processRecords(body.records);
|
|
23085
|
-
luvio.storeIngest(keyBuilder$
|
|
23088
|
+
luvio.storeIngest(keyBuilder$1R(luvio, {
|
|
23086
23089
|
listViewId: listInfoETag,
|
|
23087
23090
|
sortBy: body.sortBy,
|
|
23088
23091
|
objectApiName: listInfo.listReference.objectApiName,
|
|
@@ -23093,7 +23096,7 @@ function onResourceSuccess_getMruListRecords(luvio, config, listInfo, response)
|
|
|
23093
23096
|
}
|
|
23094
23097
|
function onResourceError_getMruListRecords(luvio, config, listInfo, err) {
|
|
23095
23098
|
const errorSnapshot = luvio.errorSnapshot(err, buildSnapshotRefresh_getMruListUi(luvio, config));
|
|
23096
|
-
luvio.storeIngestError(keyBuilder$
|
|
23099
|
+
luvio.storeIngestError(keyBuilder$1Q(luvio, {
|
|
23097
23100
|
...listInfo.listReference,
|
|
23098
23101
|
sortBy: config.sortBy === undefined ? null : config.sortBy,
|
|
23099
23102
|
}), errorSnapshot);
|
|
@@ -23250,7 +23253,7 @@ function buildListUiFragment(config, context, fields) {
|
|
|
23250
23253
|
kind: 'Fragment',
|
|
23251
23254
|
private: ['eTag', 'weakEtag'],
|
|
23252
23255
|
selections: buildSelectionFromFields(...fields.getRecordSelectionFieldSets()),
|
|
23253
|
-
version: VERSION$
|
|
23256
|
+
version: VERSION$18$1,
|
|
23254
23257
|
},
|
|
23255
23258
|
},
|
|
23256
23259
|
};
|
|
@@ -23265,7 +23268,7 @@ function buildListUiFragment(config, context, fields) {
|
|
|
23265
23268
|
return dynamicSelect$6(listRecordCollectionSelectParams, paginationParams);
|
|
23266
23269
|
}
|
|
23267
23270
|
function buildCachedSnapshot$6(luvio, storeLookup, context, config, listInfo, fields) {
|
|
23268
|
-
const listUiKey = keyBuilder$
|
|
23271
|
+
const listUiKey = keyBuilder$1Q(luvio, {
|
|
23269
23272
|
...listInfo.listReference,
|
|
23270
23273
|
sortBy: getSortBy(config, context),
|
|
23271
23274
|
});
|
|
@@ -23317,7 +23320,7 @@ function prepareRequest_getListUi(config) {
|
|
|
23317
23320
|
}
|
|
23318
23321
|
function onResourceSuccess_getListUi(luvio, context, config, response) {
|
|
23319
23322
|
const { body } = response, listInfo = body.info, { listReference } = listInfo;
|
|
23320
|
-
const listUiKey = keyBuilder$
|
|
23323
|
+
const listUiKey = keyBuilder$1Q(luvio, {
|
|
23321
23324
|
...listReference,
|
|
23322
23325
|
sortBy: body.records.sortBy,
|
|
23323
23326
|
});
|
|
@@ -23445,7 +23448,7 @@ function onResourceSuccess_getListRecords(luvio, context, config, listInfo, resp
|
|
|
23445
23448
|
const { body } = response;
|
|
23446
23449
|
const { listInfoETag } = body;
|
|
23447
23450
|
const fields = listFields(luvio, config, listInfo).processRecords(body.records);
|
|
23448
|
-
luvio.storeIngest(keyBuilder$
|
|
23451
|
+
luvio.storeIngest(keyBuilder$1R(luvio, {
|
|
23449
23452
|
listViewId: listInfoETag,
|
|
23450
23453
|
sortBy: body.sortBy,
|
|
23451
23454
|
objectApiName: listInfo.listReference.objectApiName,
|
|
@@ -23456,7 +23459,7 @@ function onResourceSuccess_getListRecords(luvio, context, config, listInfo, resp
|
|
|
23456
23459
|
}
|
|
23457
23460
|
function onResourceError_getListRecords(luvio, context, config, listInfo, err) {
|
|
23458
23461
|
const errorSnapshot = luvio.errorSnapshot(err);
|
|
23459
|
-
luvio.storeIngestError(keyBuilder$
|
|
23462
|
+
luvio.storeIngestError(keyBuilder$1Q(luvio, {
|
|
23460
23463
|
...listInfo.listReference,
|
|
23461
23464
|
sortBy: getSortBy(config, context),
|
|
23462
23465
|
}), errorSnapshot);
|
|
@@ -23629,16 +23632,16 @@ const factory$g = (luvio) => {
|
|
|
23629
23632
|
};
|
|
23630
23633
|
|
|
23631
23634
|
const TTL$u = 900000;
|
|
23632
|
-
const VERSION$
|
|
23635
|
+
const VERSION$12$1 = "ec9370a0cd56f4769fe9ec5cd942ff30";
|
|
23633
23636
|
const RepresentationType$J = 'ObjectInfoRepresentation';
|
|
23634
|
-
function keyBuilder$
|
|
23637
|
+
function keyBuilder$1J(luvio, config) {
|
|
23635
23638
|
return keyPrefix$1 + '::' + RepresentationType$J + ':' + config.apiName;
|
|
23636
23639
|
}
|
|
23637
23640
|
function keyBuilderFromType$t(luvio, object) {
|
|
23638
23641
|
const keyParams = {
|
|
23639
23642
|
apiName: object.apiName
|
|
23640
23643
|
};
|
|
23641
|
-
return keyBuilder$
|
|
23644
|
+
return keyBuilder$1J(luvio, keyParams);
|
|
23642
23645
|
}
|
|
23643
23646
|
function normalize$D(input, existing, path, luvio, store, timestamp) {
|
|
23644
23647
|
return input;
|
|
@@ -23646,7 +23649,7 @@ function normalize$D(input, existing, path, luvio, store, timestamp) {
|
|
|
23646
23649
|
const select$1z = function ObjectInfoRepresentationSelect() {
|
|
23647
23650
|
return {
|
|
23648
23651
|
kind: 'Fragment',
|
|
23649
|
-
version: VERSION$
|
|
23652
|
+
version: VERSION$12$1,
|
|
23650
23653
|
private: [
|
|
23651
23654
|
'eTag'
|
|
23652
23655
|
],
|
|
@@ -23757,7 +23760,7 @@ function equals$R(existing, incoming) {
|
|
|
23757
23760
|
const ingest$D$1 = function ObjectInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
23758
23761
|
const key = keyBuilderFromType$t(luvio, input);
|
|
23759
23762
|
const ttlToUse = TTL$u;
|
|
23760
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$D, "UiApi", VERSION$
|
|
23763
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$D, "UiApi", VERSION$12$1, RepresentationType$J, equals$R);
|
|
23761
23764
|
return createLink$3(key);
|
|
23762
23765
|
};
|
|
23763
23766
|
function getTypeCacheKeys$J$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -23773,8 +23776,8 @@ function getTypeCacheKeys$J$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
23773
23776
|
function select$1y(luvio, params) {
|
|
23774
23777
|
return select$1z();
|
|
23775
23778
|
}
|
|
23776
|
-
function keyBuilder$
|
|
23777
|
-
return keyBuilder$
|
|
23779
|
+
function keyBuilder$1I(luvio, params) {
|
|
23780
|
+
return keyBuilder$1J(luvio, {
|
|
23778
23781
|
apiName: params.urlParams.objectApiName
|
|
23779
23782
|
});
|
|
23780
23783
|
}
|
|
@@ -23783,7 +23786,7 @@ function getResponseCacheKeys$Q(storeKeyMap, luvio, resourceParams, response) {
|
|
|
23783
23786
|
}
|
|
23784
23787
|
function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
|
|
23785
23788
|
const { body } = response;
|
|
23786
|
-
const key = keyBuilder$
|
|
23789
|
+
const key = keyBuilder$1I(luvio, resourceParams);
|
|
23787
23790
|
luvio.storeIngest(key, ingest$D$1, body);
|
|
23788
23791
|
const snapshot = luvio.storeLookup({
|
|
23789
23792
|
recordId: key,
|
|
@@ -23794,12 +23797,12 @@ function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
23794
23797
|
return snapshot;
|
|
23795
23798
|
}
|
|
23796
23799
|
function ingestError$D(luvio, params, error, snapshotRefresh) {
|
|
23797
|
-
const key = keyBuilder$
|
|
23800
|
+
const key = keyBuilder$1I(luvio, params);
|
|
23798
23801
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
23799
23802
|
const storeMetadataParams = {
|
|
23800
23803
|
ttl: TTL$u,
|
|
23801
23804
|
namespace: keyPrefix$1,
|
|
23802
|
-
version: VERSION$
|
|
23805
|
+
version: VERSION$12$1,
|
|
23803
23806
|
representationName: RepresentationType$J
|
|
23804
23807
|
};
|
|
23805
23808
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -23825,9 +23828,9 @@ const getObjectInfo_ConfigPropertyMetadata = [
|
|
|
23825
23828
|
];
|
|
23826
23829
|
const getObjectInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$R, getObjectInfo_ConfigPropertyMetadata);
|
|
23827
23830
|
const createResourceParams$Q = /*#__PURE__*/ createResourceParams$Y(getObjectInfo_ConfigPropertyMetadata);
|
|
23828
|
-
function keyBuilder$
|
|
23831
|
+
function keyBuilder$1H(luvio, config) {
|
|
23829
23832
|
const resourceParams = createResourceParams$Q(config);
|
|
23830
|
-
return keyBuilder$
|
|
23833
|
+
return keyBuilder$1I(luvio, resourceParams);
|
|
23831
23834
|
}
|
|
23832
23835
|
function typeCheckConfig$W(untrustedConfig) {
|
|
23833
23836
|
const config = {};
|
|
@@ -23883,7 +23886,7 @@ function buildNetworkSnapshotCachePolicy$J(context, coercedAdapterRequestContext
|
|
|
23883
23886
|
function buildCachedSnapshotCachePolicy$J(context, storeLookup) {
|
|
23884
23887
|
const { luvio, config } = context;
|
|
23885
23888
|
const selector = {
|
|
23886
|
-
recordId: keyBuilder$
|
|
23889
|
+
recordId: keyBuilder$1H(luvio, config),
|
|
23887
23890
|
node: adapterFragment$C(luvio, config),
|
|
23888
23891
|
variables: {},
|
|
23889
23892
|
};
|
|
@@ -23914,9 +23917,9 @@ var DiscriminatorValues$4;
|
|
|
23914
23917
|
})(DiscriminatorValues$4 || (DiscriminatorValues$4 = {}));
|
|
23915
23918
|
|
|
23916
23919
|
const TTL$t = 900000;
|
|
23917
|
-
const VERSION$
|
|
23920
|
+
const VERSION$11$1 = "fb515e25a89ca1ec154dc865e72b913a";
|
|
23918
23921
|
const RepresentationType$I = 'RecordLayoutRepresentation';
|
|
23919
|
-
function keyBuilder$
|
|
23922
|
+
function keyBuilder$1G(luvio, config) {
|
|
23920
23923
|
return keyPrefix$1 + '::' + RepresentationType$I + ':' + (config.recordTypeId === null ? '' : config.recordTypeId) + ':' + (config.objectApiName === null ? '' : config.objectApiName) + ':' + config.layoutType + ':' + config.mode;
|
|
23921
23924
|
}
|
|
23922
23925
|
function keyBuilderFromType$s(luvio, object) {
|
|
@@ -23926,7 +23929,7 @@ function keyBuilderFromType$s(luvio, object) {
|
|
|
23926
23929
|
layoutType: object.layoutType,
|
|
23927
23930
|
mode: object.mode
|
|
23928
23931
|
};
|
|
23929
|
-
return keyBuilder$
|
|
23932
|
+
return keyBuilder$1G(luvio, keyParams);
|
|
23930
23933
|
}
|
|
23931
23934
|
function normalize$C(input, existing, path, luvio, store, timestamp) {
|
|
23932
23935
|
return input;
|
|
@@ -23934,7 +23937,7 @@ function normalize$C(input, existing, path, luvio, store, timestamp) {
|
|
|
23934
23937
|
const select$1x = function RecordLayoutRepresentationSelect() {
|
|
23935
23938
|
return {
|
|
23936
23939
|
kind: 'Fragment',
|
|
23937
|
-
version: VERSION$
|
|
23940
|
+
version: VERSION$11$1,
|
|
23938
23941
|
private: [
|
|
23939
23942
|
'eTag'
|
|
23940
23943
|
],
|
|
@@ -23981,7 +23984,7 @@ function equals$Q(existing, incoming) {
|
|
|
23981
23984
|
const ingest$C$1 = function RecordLayoutRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
23982
23985
|
const key = keyBuilderFromType$s(luvio, input);
|
|
23983
23986
|
const ttlToUse = TTL$t;
|
|
23984
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$C, "UiApi", VERSION$
|
|
23987
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$C, "UiApi", VERSION$11$1, RepresentationType$I, equals$Q);
|
|
23985
23988
|
return createLink$3(key);
|
|
23986
23989
|
};
|
|
23987
23990
|
function getTypeCacheKeys$I$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -24017,9 +24020,9 @@ function getRecordId18Array(value) {
|
|
|
24017
24020
|
}
|
|
24018
24021
|
|
|
24019
24022
|
const TTL$s = 900000;
|
|
24020
|
-
const VERSION$
|
|
24023
|
+
const VERSION$10$1 = "4ba42e1fa0fb00cf78fce86082da41c9";
|
|
24021
24024
|
const RepresentationType$H = 'RecordLayoutUserStateRepresentation';
|
|
24022
|
-
function keyBuilder$
|
|
24025
|
+
function keyBuilder$1F(luvio, config) {
|
|
24023
24026
|
return keyPrefix$1 + '::' + RepresentationType$H + ':' + config.recordTypeId + ':' + config.apiName + ':' + config.layoutType + ':' + config.mode;
|
|
24024
24027
|
}
|
|
24025
24028
|
function keyBuilderFromType$r(luvio, object) {
|
|
@@ -24029,7 +24032,7 @@ function keyBuilderFromType$r(luvio, object) {
|
|
|
24029
24032
|
layoutType: object.layoutType,
|
|
24030
24033
|
mode: object.mode
|
|
24031
24034
|
};
|
|
24032
|
-
return keyBuilder$
|
|
24035
|
+
return keyBuilder$1F(luvio, keyParams);
|
|
24033
24036
|
}
|
|
24034
24037
|
function normalize$B(input, existing, path, luvio, store, timestamp) {
|
|
24035
24038
|
return input;
|
|
@@ -24037,7 +24040,7 @@ function normalize$B(input, existing, path, luvio, store, timestamp) {
|
|
|
24037
24040
|
const select$1w = function RecordLayoutUserStateRepresentationSelect() {
|
|
24038
24041
|
return {
|
|
24039
24042
|
kind: 'Fragment',
|
|
24040
|
-
version: VERSION$
|
|
24043
|
+
version: VERSION$10$1,
|
|
24041
24044
|
private: [
|
|
24042
24045
|
'apiName',
|
|
24043
24046
|
'recordTypeId',
|
|
@@ -24066,7 +24069,7 @@ function equals$P(existing, incoming) {
|
|
|
24066
24069
|
const ingest$B$1 = function RecordLayoutUserStateRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
24067
24070
|
const key = keyBuilderFromType$r(luvio, input);
|
|
24068
24071
|
const ttlToUse = TTL$s;
|
|
24069
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$B, "UiApi", VERSION$
|
|
24072
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$B, "UiApi", VERSION$10$1, RepresentationType$H, equals$P);
|
|
24070
24073
|
return createLink$3(key);
|
|
24071
24074
|
};
|
|
24072
24075
|
function getTypeCacheKeys$H$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -24080,7 +24083,7 @@ function getTypeCacheKeys$H$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
24080
24083
|
}
|
|
24081
24084
|
|
|
24082
24085
|
const TTL$r = 900000;
|
|
24083
|
-
const VERSION
|
|
24086
|
+
const VERSION$$$1 = "49cdd4bc235a6094c3559cc7735b3b6d";
|
|
24084
24087
|
const RepresentationType$G = 'RecordUiRepresentation';
|
|
24085
24088
|
function normalize$A(input, existing, path, luvio, store, timestamp) {
|
|
24086
24089
|
const input_layoutUserStates = input.layoutUserStates;
|
|
@@ -24248,7 +24251,7 @@ function equals$O(existing, incoming) {
|
|
|
24248
24251
|
const ingest$A$1 = function RecordUiRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
24249
24252
|
const key = path.fullPath;
|
|
24250
24253
|
const ttlToUse = TTL$r;
|
|
24251
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$A, "UiApi", VERSION
|
|
24254
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$A, "UiApi", VERSION$$$1, RepresentationType$G, equals$O);
|
|
24252
24255
|
return createLink$3(key);
|
|
24253
24256
|
};
|
|
24254
24257
|
|
|
@@ -24343,7 +24346,7 @@ function buildRecordUiSelector(recordDefs, layoutTypes, modes, recordOptionalFie
|
|
|
24343
24346
|
return {
|
|
24344
24347
|
kind: 'Fragment',
|
|
24345
24348
|
private: ['eTag'],
|
|
24346
|
-
version: VERSION
|
|
24349
|
+
version: VERSION$$$1,
|
|
24347
24350
|
selections: [
|
|
24348
24351
|
{
|
|
24349
24352
|
kind: 'Link',
|
|
@@ -24544,7 +24547,7 @@ function collectRecordDefs(resp, recordIds) {
|
|
|
24544
24547
|
}
|
|
24545
24548
|
return recordDefs;
|
|
24546
24549
|
}
|
|
24547
|
-
function keyBuilder$
|
|
24550
|
+
function keyBuilder$1E(recordIds, layoutTypes, modes, optionalFields) {
|
|
24548
24551
|
const joinedRecordIds = recordIds.sort().join(',');
|
|
24549
24552
|
const joinedOptionalFields = optionalFields.sort().join(',');
|
|
24550
24553
|
const joinedLayoutTypes = layoutTypes.sort().join(',');
|
|
@@ -24578,7 +24581,7 @@ function markRecordUiOptionalFields(optionalFields, recordLookupFields, recordNo
|
|
|
24578
24581
|
}
|
|
24579
24582
|
function prepareRequest$4(luvio, config) {
|
|
24580
24583
|
const { recordIds, layoutTypes, modes, optionalFields } = config;
|
|
24581
|
-
const key = keyBuilder$
|
|
24584
|
+
const key = keyBuilder$1E(recordIds, layoutTypes, modes, optionalFields);
|
|
24582
24585
|
const selectorKey = buildCachedSelectorKey(key);
|
|
24583
24586
|
const resourceRequest = createResourceRequest$T({
|
|
24584
24587
|
urlParams: {
|
|
@@ -24671,7 +24674,7 @@ function onFetchResponseSuccess$F(luvio, config, selectorKey, key, responseBody)
|
|
|
24671
24674
|
const validRecordIds = [];
|
|
24672
24675
|
for (let i = 0, len = recordIds.length; i < len; i += 1) {
|
|
24673
24676
|
const recordId = recordIds[i];
|
|
24674
|
-
const recordKey = keyBuilder$
|
|
24677
|
+
const recordKey = keyBuilder$1U(luvio, { recordId });
|
|
24675
24678
|
const node = luvio.getNode(recordKey);
|
|
24676
24679
|
if (isGraphNode(node)) {
|
|
24677
24680
|
recordNodes.push(node);
|
|
@@ -24742,7 +24745,7 @@ function publishDependencies(luvio, recordIds, depKeys) {
|
|
|
24742
24745
|
function buildCachedSelectorSnapshot(context, storeLookup) {
|
|
24743
24746
|
const { config } = context;
|
|
24744
24747
|
const { recordIds, layoutTypes, modes, optionalFields } = config;
|
|
24745
|
-
const key = keyBuilder$
|
|
24748
|
+
const key = keyBuilder$1E(recordIds, layoutTypes, modes, optionalFields);
|
|
24746
24749
|
const cachedSelectorKey = buildCachedSelectorKey(key);
|
|
24747
24750
|
return storeLookup({
|
|
24748
24751
|
recordId: cachedSelectorKey,
|
|
@@ -24845,7 +24848,7 @@ function refresh$1(luvio, config) {
|
|
|
24845
24848
|
return buildNetworkSnapshot$U(luvio, recordUiConfig).then((snapshot) => {
|
|
24846
24849
|
const refresh = buildSnapshotRefresh$3(luvio, config);
|
|
24847
24850
|
if (isErrorSnapshot(snapshot)) {
|
|
24848
|
-
var recordKey = keyBuilder$
|
|
24851
|
+
var recordKey = keyBuilder$1U(luvio, { recordId });
|
|
24849
24852
|
luvio.storeIngestError(recordKey, snapshot);
|
|
24850
24853
|
return luvio.storeBroadcast().then(() => luvio.errorSnapshot(snapshot.error, refresh));
|
|
24851
24854
|
}
|
|
@@ -25008,14 +25011,14 @@ function buildRecordLayoutCachedSnapshot(context, storeLookup) {
|
|
|
25008
25011
|
const { config, luvio } = context;
|
|
25009
25012
|
// get cached copy of the record
|
|
25010
25013
|
const { recordId } = config;
|
|
25011
|
-
const storeKey = keyBuilder$
|
|
25014
|
+
const storeKey = keyBuilder$1U(luvio, { recordId });
|
|
25012
25015
|
const recordSnapshot = storeLookup({
|
|
25013
25016
|
recordId: storeKey,
|
|
25014
25017
|
node: {
|
|
25015
25018
|
kind: 'Fragment',
|
|
25016
25019
|
private: [],
|
|
25017
25020
|
selections: recordLayoutFragmentSelector,
|
|
25018
|
-
version: VERSION$
|
|
25021
|
+
version: VERSION$18$1,
|
|
25019
25022
|
},
|
|
25020
25023
|
variables: {},
|
|
25021
25024
|
});
|
|
@@ -25035,7 +25038,7 @@ const buildObjectInfoCacheSnapshot = (recordLayoutSnapshot) => (context, storeLo
|
|
|
25035
25038
|
};
|
|
25036
25039
|
const buildLayoutModeCacheSnapshot = (apiName, recordTypeId, layoutType, mode) => (context, storeLookup) => {
|
|
25037
25040
|
const { luvio } = context;
|
|
25038
|
-
const key = keyBuilder$
|
|
25041
|
+
const key = keyBuilder$1G(luvio, {
|
|
25039
25042
|
objectApiName: apiName,
|
|
25040
25043
|
recordTypeId,
|
|
25041
25044
|
layoutType,
|
|
@@ -25269,7 +25272,7 @@ function coerceKeyParams(config) {
|
|
|
25269
25272
|
}
|
|
25270
25273
|
const notifyChangeFactory = (luvio) => {
|
|
25271
25274
|
return function getUiApiRecordsByRecordIdNotifyChange(configs) {
|
|
25272
|
-
const keys = configs.map((c) => keyBuilder$
|
|
25275
|
+
const keys = configs.map((c) => keyBuilder$1U(luvio, coerceKeyParams(c)));
|
|
25273
25276
|
luvio.getNotifyChangeStoreEntries(keys).then((entries) => {
|
|
25274
25277
|
const responsePromises = [];
|
|
25275
25278
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
@@ -25349,16 +25352,16 @@ const notifyUpdateAvailableFactory$1 = (luvio) => {
|
|
|
25349
25352
|
};
|
|
25350
25353
|
};
|
|
25351
25354
|
|
|
25352
|
-
const VERSION
|
|
25355
|
+
const VERSION$_$1 = "7e00c51105cbf56a79ab8fcddf462c1e";
|
|
25353
25356
|
const RepresentationType$F = 'QuickActionExecutionRepresentation';
|
|
25354
|
-
function keyBuilder$
|
|
25357
|
+
function keyBuilder$1D(luvio, config) {
|
|
25355
25358
|
return keyPrefix$1 + '::' + RepresentationType$F + ':' + config.id;
|
|
25356
25359
|
}
|
|
25357
25360
|
function keyBuilderFromType$q(luvio, object) {
|
|
25358
25361
|
const keyParams = {
|
|
25359
25362
|
id: object.id
|
|
25360
25363
|
};
|
|
25361
|
-
return keyBuilder$
|
|
25364
|
+
return keyBuilder$1D(luvio, keyParams);
|
|
25362
25365
|
}
|
|
25363
25366
|
function normalize$z(input, existing, path, luvio, store, timestamp) {
|
|
25364
25367
|
return input;
|
|
@@ -25366,7 +25369,7 @@ function normalize$z(input, existing, path, luvio, store, timestamp) {
|
|
|
25366
25369
|
const select$1v = function QuickActionExecutionRepresentationSelect() {
|
|
25367
25370
|
return {
|
|
25368
25371
|
kind: 'Fragment',
|
|
25369
|
-
version: VERSION
|
|
25372
|
+
version: VERSION$_$1,
|
|
25370
25373
|
private: [
|
|
25371
25374
|
'eTag'
|
|
25372
25375
|
],
|
|
@@ -25439,7 +25442,7 @@ function equals$N(existing, incoming) {
|
|
|
25439
25442
|
const ingest$z$1 = function QuickActionExecutionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
25440
25443
|
const key = keyBuilderFromType$q(luvio, input);
|
|
25441
25444
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
25442
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$z, "UiApi", VERSION
|
|
25445
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$z, "UiApi", VERSION$_$1, RepresentationType$F, equals$N);
|
|
25443
25446
|
return createLink$3(key);
|
|
25444
25447
|
};
|
|
25445
25448
|
function getTypeCacheKeys$G$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -25453,16 +25456,16 @@ function getTypeCacheKeys$G$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
25453
25456
|
}
|
|
25454
25457
|
|
|
25455
25458
|
const TTL$q = 900000;
|
|
25456
|
-
const VERSION$
|
|
25459
|
+
const VERSION$Z$1 = "993b0a7bce6056c4f57ed300ec153d9c";
|
|
25457
25460
|
const RepresentationType$E = 'QuickActionDefaultsRepresentation';
|
|
25458
|
-
function keyBuilder$
|
|
25461
|
+
function keyBuilder$1C(luvio, config) {
|
|
25459
25462
|
return keyPrefix$1 + '::' + RepresentationType$E + ':' + config.actionApiName;
|
|
25460
25463
|
}
|
|
25461
25464
|
function keyBuilderFromType$p(luvio, object) {
|
|
25462
25465
|
const keyParams = {
|
|
25463
25466
|
actionApiName: object.actionApiName
|
|
25464
25467
|
};
|
|
25465
|
-
return keyBuilder$
|
|
25468
|
+
return keyBuilder$1C(luvio, keyParams);
|
|
25466
25469
|
}
|
|
25467
25470
|
function dynamicNormalize$4(ingestParams) {
|
|
25468
25471
|
return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
|
|
@@ -25497,7 +25500,7 @@ const dynamicSelect$5 = function dynamicQuickActionDefaultsRepresentationSelect(
|
|
|
25497
25500
|
} : params.fields;
|
|
25498
25501
|
return {
|
|
25499
25502
|
kind: 'Fragment',
|
|
25500
|
-
version: VERSION$
|
|
25503
|
+
version: VERSION$Z$1,
|
|
25501
25504
|
private: [
|
|
25502
25505
|
'eTag'
|
|
25503
25506
|
],
|
|
@@ -25560,7 +25563,7 @@ function getTypeCacheKeys$F$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
25560
25563
|
}
|
|
25561
25564
|
const notifyUpdateAvailableFactory = (luvio) => {
|
|
25562
25565
|
return function notifyQuickActionDefaultsUpdateAvailable(configs) {
|
|
25563
|
-
const keys = configs.map(c => keyBuilder$
|
|
25566
|
+
const keys = configs.map(c => keyBuilder$1C(luvio, c));
|
|
25564
25567
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
25565
25568
|
};
|
|
25566
25569
|
};
|
|
@@ -25587,9 +25590,9 @@ function coerceFormFactor(form) {
|
|
|
25587
25590
|
return undefined;
|
|
25588
25591
|
}
|
|
25589
25592
|
|
|
25590
|
-
const VERSION$
|
|
25593
|
+
const VERSION$Y$1 = "3f49d751896cf66e6e29788d8880e2cc";
|
|
25591
25594
|
const RepresentationType$D = 'PlatformActionRepresentation';
|
|
25592
|
-
function keyBuilder$
|
|
25595
|
+
function keyBuilder$1B(luvio, config) {
|
|
25593
25596
|
return keyPrefix$1 + '::' + RepresentationType$D + ':' + config.externalId + ':' + (config.relatedSourceObject === null ? '' : config.relatedSourceObject) + ':' + (config.relatedListRecordId === null ? '' : config.relatedListRecordId);
|
|
25594
25597
|
}
|
|
25595
25598
|
function keyBuilderFromType$o(luvio, object) {
|
|
@@ -25598,7 +25601,7 @@ function keyBuilderFromType$o(luvio, object) {
|
|
|
25598
25601
|
relatedSourceObject: object.relatedSourceObject,
|
|
25599
25602
|
relatedListRecordId: object.relatedListRecordId
|
|
25600
25603
|
};
|
|
25601
|
-
return keyBuilder$
|
|
25604
|
+
return keyBuilder$1B(luvio, keyParams);
|
|
25602
25605
|
}
|
|
25603
25606
|
function normalize$y(input, existing, path, luvio, store, timestamp) {
|
|
25604
25607
|
return input;
|
|
@@ -25606,7 +25609,7 @@ function normalize$y(input, existing, path, luvio, store, timestamp) {
|
|
|
25606
25609
|
const select$1u = function PlatformActionRepresentationSelect() {
|
|
25607
25610
|
return {
|
|
25608
25611
|
kind: 'Fragment',
|
|
25609
|
-
version: VERSION$
|
|
25612
|
+
version: VERSION$Y$1,
|
|
25610
25613
|
private: [
|
|
25611
25614
|
'id'
|
|
25612
25615
|
],
|
|
@@ -25787,7 +25790,7 @@ function equals$L(existing, incoming) {
|
|
|
25787
25790
|
const ingest$y$1 = function PlatformActionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
25788
25791
|
const key = keyBuilderFromType$o(luvio, input);
|
|
25789
25792
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
25790
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$y, "UiApi", VERSION$
|
|
25793
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$y, "UiApi", VERSION$Y$1, RepresentationType$D, equals$L);
|
|
25791
25794
|
return createLink$3(key);
|
|
25792
25795
|
};
|
|
25793
25796
|
function getTypeCacheKeys$E$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -25800,16 +25803,16 @@ function getTypeCacheKeys$E$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
25800
25803
|
});
|
|
25801
25804
|
}
|
|
25802
25805
|
|
|
25803
|
-
const VERSION$
|
|
25806
|
+
const VERSION$X$1 = "378d506f563a4bd724b322d440df33d1";
|
|
25804
25807
|
const RepresentationType$C = 'EntityActionRepresentation';
|
|
25805
|
-
function keyBuilder$
|
|
25808
|
+
function keyBuilder$1A(luvio, config) {
|
|
25806
25809
|
return keyPrefix$1 + '::' + RepresentationType$C + ':' + config.url;
|
|
25807
25810
|
}
|
|
25808
25811
|
function keyBuilderFromType$n(luvio, object) {
|
|
25809
25812
|
const keyParams = {
|
|
25810
25813
|
url: object.url
|
|
25811
25814
|
};
|
|
25812
|
-
return keyBuilder$
|
|
25815
|
+
return keyBuilder$1A(luvio, keyParams);
|
|
25813
25816
|
}
|
|
25814
25817
|
function normalize$x(input, existing, path, luvio, store, timestamp) {
|
|
25815
25818
|
const input_actions = input.actions;
|
|
@@ -25833,7 +25836,7 @@ function normalize$x(input, existing, path, luvio, store, timestamp) {
|
|
|
25833
25836
|
const select$1t = function EntityActionRepresentationSelect() {
|
|
25834
25837
|
return {
|
|
25835
25838
|
kind: 'Fragment',
|
|
25836
|
-
version: VERSION$
|
|
25839
|
+
version: VERSION$X$1,
|
|
25837
25840
|
private: [
|
|
25838
25841
|
'links',
|
|
25839
25842
|
'url'
|
|
@@ -25879,7 +25882,7 @@ function equals$K(existing, incoming) {
|
|
|
25879
25882
|
const ingest$x$1 = function EntityActionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
25880
25883
|
const key = keyBuilderFromType$n(luvio, input);
|
|
25881
25884
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
25882
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "UiApi", VERSION$
|
|
25885
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "UiApi", VERSION$X$1, RepresentationType$C, equals$K);
|
|
25883
25886
|
return createLink$3(key);
|
|
25884
25887
|
};
|
|
25885
25888
|
function getTypeCacheKeys$D$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -25897,7 +25900,7 @@ function getTypeCacheKeys$D$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
25897
25900
|
}
|
|
25898
25901
|
|
|
25899
25902
|
const TTL$p = 300000;
|
|
25900
|
-
const VERSION$
|
|
25903
|
+
const VERSION$W$1 = "e485d96c1402a9ca2f56e56485af0216";
|
|
25901
25904
|
const RepresentationType$B = 'ActionRepresentation';
|
|
25902
25905
|
function normalize$w(input, existing, path, luvio, store, timestamp) {
|
|
25903
25906
|
const input_actions = input.actions;
|
|
@@ -25924,7 +25927,7 @@ function normalize$w(input, existing, path, luvio, store, timestamp) {
|
|
|
25924
25927
|
const select$1s = function ActionRepresentationSelect() {
|
|
25925
25928
|
return {
|
|
25926
25929
|
kind: 'Fragment',
|
|
25927
|
-
version: VERSION$
|
|
25930
|
+
version: VERSION$W$1,
|
|
25928
25931
|
private: [
|
|
25929
25932
|
'eTag',
|
|
25930
25933
|
'url'
|
|
@@ -25965,7 +25968,7 @@ function equals$J(existing, incoming) {
|
|
|
25965
25968
|
const ingest$w$1 = function ActionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
25966
25969
|
const key = path.fullPath;
|
|
25967
25970
|
const ttlToUse = TTL$p;
|
|
25968
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "UiApi", VERSION$
|
|
25971
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "UiApi", VERSION$W$1, RepresentationType$B, equals$J);
|
|
25969
25972
|
return createLink$3(key);
|
|
25970
25973
|
};
|
|
25971
25974
|
function getTypeCacheKeys$C$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -25988,15 +25991,15 @@ function getTypeCacheKeys$C$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
25988
25991
|
function select$1r(luvio, params) {
|
|
25989
25992
|
return select$1s();
|
|
25990
25993
|
}
|
|
25991
|
-
function keyBuilder$
|
|
25994
|
+
function keyBuilder$1z(luvio, params) {
|
|
25992
25995
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'apiNames:' + params.queryParams.apiNames + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'retrievalMode:' + params.queryParams.retrievalMode + ',' + 'sections:' + params.queryParams.sections + ')';
|
|
25993
25996
|
}
|
|
25994
25997
|
function getResponseCacheKeys$P(storeKeyMap, luvio, resourceParams, response) {
|
|
25995
|
-
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
25998
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1z(luvio, resourceParams));
|
|
25996
25999
|
}
|
|
25997
26000
|
function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
|
|
25998
26001
|
const { body } = response;
|
|
25999
|
-
const key = keyBuilder$
|
|
26002
|
+
const key = keyBuilder$1z(luvio, resourceParams);
|
|
26000
26003
|
luvio.storeIngest(key, ingest$w$1, body);
|
|
26001
26004
|
const snapshot = luvio.storeLookup({
|
|
26002
26005
|
recordId: key,
|
|
@@ -26007,12 +26010,12 @@ function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
26007
26010
|
return snapshot;
|
|
26008
26011
|
}
|
|
26009
26012
|
function ingestError$C(luvio, params, error, snapshotRefresh) {
|
|
26010
|
-
const key = keyBuilder$
|
|
26013
|
+
const key = keyBuilder$1z(luvio, params);
|
|
26011
26014
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26012
26015
|
const storeMetadataParams = {
|
|
26013
26016
|
ttl: TTL$p,
|
|
26014
26017
|
namespace: keyPrefix$1,
|
|
26015
|
-
version: VERSION$
|
|
26018
|
+
version: VERSION$W$1,
|
|
26016
26019
|
representationName: RepresentationType$B
|
|
26017
26020
|
};
|
|
26018
26021
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -26042,9 +26045,9 @@ const getGlobalActions_ConfigPropertyMetadata = [
|
|
|
26042
26045
|
];
|
|
26043
26046
|
const getGlobalActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$Q, getGlobalActions_ConfigPropertyMetadata);
|
|
26044
26047
|
const createResourceParams$P = /*#__PURE__*/ createResourceParams$Y(getGlobalActions_ConfigPropertyMetadata);
|
|
26045
|
-
function keyBuilder$
|
|
26048
|
+
function keyBuilder$1y(luvio, config) {
|
|
26046
26049
|
const resourceParams = createResourceParams$P(config);
|
|
26047
|
-
return keyBuilder$
|
|
26050
|
+
return keyBuilder$1z(luvio, resourceParams);
|
|
26048
26051
|
}
|
|
26049
26052
|
function typeCheckConfig$U(untrustedConfig) {
|
|
26050
26053
|
const config = {};
|
|
@@ -26100,7 +26103,7 @@ function buildNetworkSnapshotCachePolicy$I(context, coercedAdapterRequestContext
|
|
|
26100
26103
|
function buildCachedSnapshotCachePolicy$I(context, storeLookup) {
|
|
26101
26104
|
const { luvio, config } = context;
|
|
26102
26105
|
const selector = {
|
|
26103
|
-
recordId: keyBuilder$
|
|
26106
|
+
recordId: keyBuilder$1y(luvio, config),
|
|
26104
26107
|
node: adapterFragment$B(luvio, config),
|
|
26105
26108
|
variables: {},
|
|
26106
26109
|
};
|
|
@@ -26121,16 +26124,16 @@ const getGlobalActionsAdapterFactory = (luvio) => function UiApi__getGlobalActio
|
|
|
26121
26124
|
};
|
|
26122
26125
|
|
|
26123
26126
|
const TTL$o = 900000;
|
|
26124
|
-
const VERSION$
|
|
26127
|
+
const VERSION$V$1 = "35f3eec8ce7f6001c6d5d17821b75bb9";
|
|
26125
26128
|
const RepresentationType$A = 'QuickActionLayoutRepresentation';
|
|
26126
|
-
function keyBuilder$
|
|
26129
|
+
function keyBuilder$1x(luvio, config) {
|
|
26127
26130
|
return keyPrefix$1 + '::' + RepresentationType$A + ':' + config.actionApiName;
|
|
26128
26131
|
}
|
|
26129
26132
|
function keyBuilderFromType$m(luvio, object) {
|
|
26130
26133
|
const keyParams = {
|
|
26131
26134
|
actionApiName: object.actionApiName
|
|
26132
26135
|
};
|
|
26133
|
-
return keyBuilder$
|
|
26136
|
+
return keyBuilder$1x(luvio, keyParams);
|
|
26134
26137
|
}
|
|
26135
26138
|
function normalize$v(input, existing, path, luvio, store, timestamp) {
|
|
26136
26139
|
return input;
|
|
@@ -26138,7 +26141,7 @@ function normalize$v(input, existing, path, luvio, store, timestamp) {
|
|
|
26138
26141
|
const select$1q = function QuickActionLayoutRepresentationSelect() {
|
|
26139
26142
|
return {
|
|
26140
26143
|
kind: 'Fragment',
|
|
26141
|
-
version: VERSION$
|
|
26144
|
+
version: VERSION$V$1,
|
|
26142
26145
|
private: [
|
|
26143
26146
|
'eTag'
|
|
26144
26147
|
],
|
|
@@ -26164,7 +26167,7 @@ function equals$I(existing, incoming) {
|
|
|
26164
26167
|
const ingest$v$1 = function QuickActionLayoutRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
26165
26168
|
const key = keyBuilderFromType$m(luvio, input);
|
|
26166
26169
|
const ttlToUse = TTL$o;
|
|
26167
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "UiApi", VERSION$
|
|
26170
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "UiApi", VERSION$V$1, RepresentationType$A, equals$I);
|
|
26168
26171
|
return createLink$3(key);
|
|
26169
26172
|
};
|
|
26170
26173
|
function getTypeCacheKeys$B$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -26180,8 +26183,8 @@ function getTypeCacheKeys$B$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
26180
26183
|
function select$1p(luvio, params) {
|
|
26181
26184
|
return select$1q();
|
|
26182
26185
|
}
|
|
26183
|
-
function keyBuilder$
|
|
26184
|
-
return keyBuilder$
|
|
26186
|
+
function keyBuilder$1w(luvio, params) {
|
|
26187
|
+
return keyBuilder$1x(luvio, {
|
|
26185
26188
|
actionApiName: params.urlParams.actionApiName
|
|
26186
26189
|
});
|
|
26187
26190
|
}
|
|
@@ -26190,7 +26193,7 @@ function getResponseCacheKeys$O(storeKeyMap, luvio, resourceParams, response) {
|
|
|
26190
26193
|
}
|
|
26191
26194
|
function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
|
|
26192
26195
|
const { body } = response;
|
|
26193
|
-
const key = keyBuilder$
|
|
26196
|
+
const key = keyBuilder$1w(luvio, resourceParams);
|
|
26194
26197
|
luvio.storeIngest(key, ingest$v$1, body);
|
|
26195
26198
|
const snapshot = luvio.storeLookup({
|
|
26196
26199
|
recordId: key,
|
|
@@ -26201,12 +26204,12 @@ function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
26201
26204
|
return snapshot;
|
|
26202
26205
|
}
|
|
26203
26206
|
function ingestError$B(luvio, params, error, snapshotRefresh) {
|
|
26204
|
-
const key = keyBuilder$
|
|
26207
|
+
const key = keyBuilder$1w(luvio, params);
|
|
26205
26208
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26206
26209
|
const storeMetadataParams = {
|
|
26207
26210
|
ttl: TTL$o,
|
|
26208
26211
|
namespace: keyPrefix$1,
|
|
26209
|
-
version: VERSION$
|
|
26212
|
+
version: VERSION$V$1,
|
|
26210
26213
|
representationName: RepresentationType$A
|
|
26211
26214
|
};
|
|
26212
26215
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -26232,9 +26235,9 @@ const getQuickActionLayout_ConfigPropertyMetadata = [
|
|
|
26232
26235
|
];
|
|
26233
26236
|
const getQuickActionLayout_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$P, getQuickActionLayout_ConfigPropertyMetadata);
|
|
26234
26237
|
const createResourceParams$O = /*#__PURE__*/ createResourceParams$Y(getQuickActionLayout_ConfigPropertyMetadata);
|
|
26235
|
-
function keyBuilder$
|
|
26238
|
+
function keyBuilder$1v(luvio, config) {
|
|
26236
26239
|
const resourceParams = createResourceParams$O(config);
|
|
26237
|
-
return keyBuilder$
|
|
26240
|
+
return keyBuilder$1w(luvio, resourceParams);
|
|
26238
26241
|
}
|
|
26239
26242
|
function typeCheckConfig$T(untrustedConfig) {
|
|
26240
26243
|
const config = {};
|
|
@@ -26289,7 +26292,7 @@ function buildNetworkSnapshotCachePolicy$H(context, coercedAdapterRequestContext
|
|
|
26289
26292
|
function buildCachedSnapshotCachePolicy$H(context, storeLookup) {
|
|
26290
26293
|
const { luvio, config } = context;
|
|
26291
26294
|
const selector = {
|
|
26292
|
-
recordId: keyBuilder$
|
|
26295
|
+
recordId: keyBuilder$1v(luvio, config),
|
|
26293
26296
|
node: adapterFragment$A(luvio, config),
|
|
26294
26297
|
variables: {},
|
|
26295
26298
|
};
|
|
@@ -26344,15 +26347,15 @@ function getSortedObjectApiNamesArray(value) {
|
|
|
26344
26347
|
function select$1o(luvio, params) {
|
|
26345
26348
|
return select$1s();
|
|
26346
26349
|
}
|
|
26347
|
-
function keyBuilder$
|
|
26350
|
+
function keyBuilder$1u(luvio, params) {
|
|
26348
26351
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'objectApiNames:' + params.urlParams.objectApiNames + ')';
|
|
26349
26352
|
}
|
|
26350
26353
|
function getResponseCacheKeys$N(storeKeyMap, luvio, resourceParams, response) {
|
|
26351
|
-
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
26354
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1u(luvio, resourceParams));
|
|
26352
26355
|
}
|
|
26353
26356
|
function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
|
|
26354
26357
|
const { body } = response;
|
|
26355
|
-
const key = keyBuilder$
|
|
26358
|
+
const key = keyBuilder$1u(luvio, resourceParams);
|
|
26356
26359
|
luvio.storeIngest(key, ingest$w$1, body);
|
|
26357
26360
|
const snapshot = luvio.storeLookup({
|
|
26358
26361
|
recordId: key,
|
|
@@ -26363,12 +26366,12 @@ function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
26363
26366
|
return snapshot;
|
|
26364
26367
|
}
|
|
26365
26368
|
function ingestError$A(luvio, params, error, snapshotRefresh) {
|
|
26366
|
-
const key = keyBuilder$
|
|
26369
|
+
const key = keyBuilder$1u(luvio, params);
|
|
26367
26370
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26368
26371
|
const storeMetadataParams = {
|
|
26369
26372
|
ttl: TTL$p,
|
|
26370
26373
|
namespace: keyPrefix$1,
|
|
26371
|
-
version: VERSION$
|
|
26374
|
+
version: VERSION$W$1,
|
|
26372
26375
|
representationName: RepresentationType$B
|
|
26373
26376
|
};
|
|
26374
26377
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -26397,9 +26400,9 @@ const getLookupActions_ConfigPropertyMetadata = [
|
|
|
26397
26400
|
];
|
|
26398
26401
|
const getLookupActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$O, getLookupActions_ConfigPropertyMetadata);
|
|
26399
26402
|
const createResourceParams$N = /*#__PURE__*/ createResourceParams$Y(getLookupActions_ConfigPropertyMetadata);
|
|
26400
|
-
function keyBuilder$
|
|
26403
|
+
function keyBuilder$1t(luvio, config) {
|
|
26401
26404
|
const resourceParams = createResourceParams$N(config);
|
|
26402
|
-
return keyBuilder$
|
|
26405
|
+
return keyBuilder$1u(luvio, resourceParams);
|
|
26403
26406
|
}
|
|
26404
26407
|
function typeCheckConfig$S(untrustedConfig) {
|
|
26405
26408
|
const config = {};
|
|
@@ -26455,7 +26458,7 @@ function buildNetworkSnapshotCachePolicy$G(context, coercedAdapterRequestContext
|
|
|
26455
26458
|
function buildCachedSnapshotCachePolicy$G(context, storeLookup) {
|
|
26456
26459
|
const { luvio, config } = context;
|
|
26457
26460
|
const selector = {
|
|
26458
|
-
recordId: keyBuilder$
|
|
26461
|
+
recordId: keyBuilder$1t(luvio, config),
|
|
26459
26462
|
node: adapterFragment$z(luvio, config),
|
|
26460
26463
|
variables: {},
|
|
26461
26464
|
};
|
|
@@ -26478,15 +26481,15 @@ const getLookupActionsAdapterFactory = (luvio) => function UiApi__getLookupActio
|
|
|
26478
26481
|
function select$1n(luvio, params) {
|
|
26479
26482
|
return select$1s();
|
|
26480
26483
|
}
|
|
26481
|
-
function keyBuilder$
|
|
26484
|
+
function keyBuilder$1s(luvio, params) {
|
|
26482
26485
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
26483
26486
|
}
|
|
26484
26487
|
function getResponseCacheKeys$M(storeKeyMap, luvio, resourceParams, response) {
|
|
26485
|
-
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
26488
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1s(luvio, resourceParams));
|
|
26486
26489
|
}
|
|
26487
26490
|
function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
|
|
26488
26491
|
const { body } = response;
|
|
26489
|
-
const key = keyBuilder$
|
|
26492
|
+
const key = keyBuilder$1s(luvio, resourceParams);
|
|
26490
26493
|
luvio.storeIngest(key, ingest$w$1, body);
|
|
26491
26494
|
const snapshot = luvio.storeLookup({
|
|
26492
26495
|
recordId: key,
|
|
@@ -26497,12 +26500,12 @@ function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
26497
26500
|
return snapshot;
|
|
26498
26501
|
}
|
|
26499
26502
|
function ingestError$z(luvio, params, error, snapshotRefresh) {
|
|
26500
|
-
const key = keyBuilder$
|
|
26503
|
+
const key = keyBuilder$1s(luvio, params);
|
|
26501
26504
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26502
26505
|
const storeMetadataParams = {
|
|
26503
26506
|
ttl: TTL$p,
|
|
26504
26507
|
namespace: keyPrefix$1,
|
|
26505
|
-
version: VERSION$
|
|
26508
|
+
version: VERSION$W$1,
|
|
26506
26509
|
representationName: RepresentationType$B
|
|
26507
26510
|
};
|
|
26508
26511
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -26531,9 +26534,9 @@ const getObjectCreateActions_ConfigPropertyMetadata = [
|
|
|
26531
26534
|
];
|
|
26532
26535
|
const getObjectCreateActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$N, getObjectCreateActions_ConfigPropertyMetadata);
|
|
26533
26536
|
const createResourceParams$M = /*#__PURE__*/ createResourceParams$Y(getObjectCreateActions_ConfigPropertyMetadata);
|
|
26534
|
-
function keyBuilder$
|
|
26537
|
+
function keyBuilder$1r(luvio, config) {
|
|
26535
26538
|
const resourceParams = createResourceParams$M(config);
|
|
26536
|
-
return keyBuilder$
|
|
26539
|
+
return keyBuilder$1s(luvio, resourceParams);
|
|
26537
26540
|
}
|
|
26538
26541
|
function typeCheckConfig$R(untrustedConfig) {
|
|
26539
26542
|
const config = {};
|
|
@@ -26589,7 +26592,7 @@ function buildNetworkSnapshotCachePolicy$F(context, coercedAdapterRequestContext
|
|
|
26589
26592
|
function buildCachedSnapshotCachePolicy$F(context, storeLookup) {
|
|
26590
26593
|
const { luvio, config } = context;
|
|
26591
26594
|
const selector = {
|
|
26592
|
-
recordId: keyBuilder$
|
|
26595
|
+
recordId: keyBuilder$1r(luvio, config),
|
|
26593
26596
|
node: adapterFragment$y(luvio, config),
|
|
26594
26597
|
variables: {},
|
|
26595
26598
|
};
|
|
@@ -26609,7 +26612,7 @@ const getObjectCreateActionsAdapterFactory = (luvio) => function UiApi__getObjec
|
|
|
26609
26612
|
buildCachedSnapshotCachePolicy$F, buildNetworkSnapshotCachePolicy$F);
|
|
26610
26613
|
};
|
|
26611
26614
|
|
|
26612
|
-
const VERSION$
|
|
26615
|
+
const VERSION$U$1 = "fecd80e9e24a1c1e75fd5395cd34ff2e";
|
|
26613
26616
|
const RepresentationType$z = 'ActionOverrideRepresentation';
|
|
26614
26617
|
function normalize$u(input, existing, path, luvio, store, timestamp) {
|
|
26615
26618
|
return input;
|
|
@@ -26617,7 +26620,7 @@ function normalize$u(input, existing, path, luvio, store, timestamp) {
|
|
|
26617
26620
|
const select$1m = function ActionOverrideRepresentationSelect() {
|
|
26618
26621
|
return {
|
|
26619
26622
|
kind: 'Fragment',
|
|
26620
|
-
version: VERSION$
|
|
26623
|
+
version: VERSION$U$1,
|
|
26621
26624
|
private: [],
|
|
26622
26625
|
opaque: true
|
|
26623
26626
|
};
|
|
@@ -26631,7 +26634,7 @@ function equals$H(existing, incoming) {
|
|
|
26631
26634
|
const ingest$u$1 = function ActionOverrideRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
26632
26635
|
const key = path.fullPath;
|
|
26633
26636
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
26634
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "UiApi", VERSION$
|
|
26637
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "UiApi", VERSION$U$1, RepresentationType$z, equals$H);
|
|
26635
26638
|
return createLink$3(key);
|
|
26636
26639
|
};
|
|
26637
26640
|
function getTypeCacheKeys$A$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -26647,15 +26650,15 @@ function getTypeCacheKeys$A$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
26647
26650
|
function select$1l(luvio, params) {
|
|
26648
26651
|
return select$1m();
|
|
26649
26652
|
}
|
|
26650
|
-
function keyBuilder$
|
|
26653
|
+
function keyBuilder$1q(luvio, params) {
|
|
26651
26654
|
return keyPrefix$1 + '::ActionOverrideRepresentation:(' + 'type:' + params.queryParams.type + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
26652
26655
|
}
|
|
26653
26656
|
function getResponseCacheKeys$L(storeKeyMap, luvio, resourceParams, response) {
|
|
26654
|
-
getTypeCacheKeys$A$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
26657
|
+
getTypeCacheKeys$A$1(storeKeyMap, luvio, response, () => keyBuilder$1q(luvio, resourceParams));
|
|
26655
26658
|
}
|
|
26656
26659
|
function ingestSuccess$C(luvio, resourceParams, response, snapshotRefresh) {
|
|
26657
26660
|
const { body } = response;
|
|
26658
|
-
const key = keyBuilder$
|
|
26661
|
+
const key = keyBuilder$1q(luvio, resourceParams);
|
|
26659
26662
|
luvio.storeIngest(key, ingest$u$1, body);
|
|
26660
26663
|
const snapshot = luvio.storeLookup({
|
|
26661
26664
|
recordId: key,
|
|
@@ -26666,7 +26669,7 @@ function ingestSuccess$C(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
26666
26669
|
return snapshot;
|
|
26667
26670
|
}
|
|
26668
26671
|
function ingestError$y(luvio, params, error, snapshotRefresh) {
|
|
26669
|
-
const key = keyBuilder$
|
|
26672
|
+
const key = keyBuilder$1q(luvio, params);
|
|
26670
26673
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26671
26674
|
luvio.storeIngestError(key, errorSnapshot);
|
|
26672
26675
|
return errorSnapshot;
|
|
@@ -26692,9 +26695,9 @@ const getActionOverrides_ConfigPropertyMetadata = [
|
|
|
26692
26695
|
];
|
|
26693
26696
|
const getActionOverrides_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$M, getActionOverrides_ConfigPropertyMetadata);
|
|
26694
26697
|
const createResourceParams$L = /*#__PURE__*/ createResourceParams$Y(getActionOverrides_ConfigPropertyMetadata);
|
|
26695
|
-
function keyBuilder$
|
|
26698
|
+
function keyBuilder$1p(luvio, config) {
|
|
26696
26699
|
const resourceParams = createResourceParams$L(config);
|
|
26697
|
-
return keyBuilder$
|
|
26700
|
+
return keyBuilder$1q(luvio, resourceParams);
|
|
26698
26701
|
}
|
|
26699
26702
|
function typeCheckConfig$Q(untrustedConfig) {
|
|
26700
26703
|
const config = {};
|
|
@@ -26750,7 +26753,7 @@ function buildNetworkSnapshotCachePolicy$E(context, coercedAdapterRequestContext
|
|
|
26750
26753
|
function buildCachedSnapshotCachePolicy$E(context, storeLookup) {
|
|
26751
26754
|
const { luvio, config } = context;
|
|
26752
26755
|
const selector = {
|
|
26753
|
-
recordId: keyBuilder$
|
|
26756
|
+
recordId: keyBuilder$1p(luvio, config),
|
|
26754
26757
|
node: adapterFragment$x(luvio, config),
|
|
26755
26758
|
variables: {},
|
|
26756
26759
|
};
|
|
@@ -26774,7 +26777,7 @@ const QUICK_ACTION_DEFAULTS_STORE_METADATA_PARAMS = {
|
|
|
26774
26777
|
ttl: TTL$q,
|
|
26775
26778
|
namespace: keyPrefix$1,
|
|
26776
26779
|
representationName: RepresentationType$E,
|
|
26777
|
-
version: VERSION$
|
|
26780
|
+
version: VERSION$Z$1,
|
|
26778
26781
|
};
|
|
26779
26782
|
function merge$1(existing, incoming) {
|
|
26780
26783
|
if (existing === undefined) {
|
|
@@ -26850,8 +26853,8 @@ function selectFields$6(luvio, params) {
|
|
|
26850
26853
|
return selectFields$7(trie);
|
|
26851
26854
|
}
|
|
26852
26855
|
|
|
26853
|
-
function keyBuilder$
|
|
26854
|
-
return keyBuilder$
|
|
26856
|
+
function keyBuilder$1o(luvio, params) {
|
|
26857
|
+
return keyBuilder$1C(luvio, {
|
|
26855
26858
|
actionApiName: params.urlParams.actionApiName
|
|
26856
26859
|
});
|
|
26857
26860
|
}
|
|
@@ -26859,12 +26862,12 @@ function getResponseCacheKeys$K(storeKeyMap, luvio, resourceParams, response) {
|
|
|
26859
26862
|
getTypeCacheKeys$F$1(storeKeyMap, luvio, response);
|
|
26860
26863
|
}
|
|
26861
26864
|
function ingestError$x(luvio, params, error, snapshotRefresh) {
|
|
26862
|
-
const key = keyBuilder$
|
|
26865
|
+
const key = keyBuilder$1o(luvio, params);
|
|
26863
26866
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26864
26867
|
const storeMetadataParams = {
|
|
26865
26868
|
ttl: TTL$q,
|
|
26866
26869
|
namespace: keyPrefix$1,
|
|
26867
|
-
version: VERSION$
|
|
26870
|
+
version: VERSION$Z$1,
|
|
26868
26871
|
representationName: RepresentationType$E
|
|
26869
26872
|
};
|
|
26870
26873
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -26891,7 +26894,7 @@ function adapterFragment$w(luvio, config) {
|
|
|
26891
26894
|
function buildNetworkSnapshot$N(luvio, config, options) {
|
|
26892
26895
|
const resourceParams = createResourceParams$K(config);
|
|
26893
26896
|
const request = createResourceRequest$N(resourceParams);
|
|
26894
|
-
const key = keyBuilder$
|
|
26897
|
+
const key = keyBuilder$1n(luvio, config);
|
|
26895
26898
|
const trackedFieldsConfig = {
|
|
26896
26899
|
maxDepth: configurationForRestAdapters$1.getTrackedFieldDepthOnCacheMiss(),
|
|
26897
26900
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters$1.getTrackedFieldLeafNodeIdAndNameOnly()
|
|
@@ -26929,9 +26932,9 @@ const getQuickActionDefaults_ConfigPropertyMetadata = [
|
|
|
26929
26932
|
];
|
|
26930
26933
|
const getQuickActionDefaults_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$L, getQuickActionDefaults_ConfigPropertyMetadata);
|
|
26931
26934
|
const createResourceParams$K = /*#__PURE__*/ createResourceParams$Y(getQuickActionDefaults_ConfigPropertyMetadata);
|
|
26932
|
-
function keyBuilder$
|
|
26935
|
+
function keyBuilder$1n(luvio, config) {
|
|
26933
26936
|
const resourceParams = createResourceParams$K(config);
|
|
26934
|
-
return keyBuilder$
|
|
26937
|
+
return keyBuilder$1o(luvio, resourceParams);
|
|
26935
26938
|
}
|
|
26936
26939
|
function typeCheckConfig$P(untrustedConfig) {
|
|
26937
26940
|
const config = {};
|
|
@@ -26951,7 +26954,7 @@ function validateAdapterConfig$R(untrustedConfig, configPropertyNames) {
|
|
|
26951
26954
|
}
|
|
26952
26955
|
function buildCachedSnapshot$5(luvio, config) {
|
|
26953
26956
|
const selector = {
|
|
26954
|
-
recordId: keyBuilder$
|
|
26957
|
+
recordId: keyBuilder$1n(luvio, config),
|
|
26955
26958
|
node: adapterFragment$w(luvio, config),
|
|
26956
26959
|
variables: {},
|
|
26957
26960
|
};
|
|
@@ -26973,7 +26976,7 @@ function buildNetworkSnapshotCachePolicy$D(context, coercedAdapterRequestContext
|
|
|
26973
26976
|
function buildCachedSnapshotCachePolicy$D(context, storeLookup) {
|
|
26974
26977
|
const { luvio, config } = context;
|
|
26975
26978
|
const selector = {
|
|
26976
|
-
recordId: keyBuilder$
|
|
26979
|
+
recordId: keyBuilder$1n(luvio, config),
|
|
26977
26980
|
node: adapterFragment$w(luvio, config),
|
|
26978
26981
|
variables: {},
|
|
26979
26982
|
};
|
|
@@ -26996,15 +26999,15 @@ const getQuickActionDefaultsAdapterFactory = (luvio) => function UiApi__getQuick
|
|
|
26996
26999
|
function select$1k(luvio, params) {
|
|
26997
27000
|
return select$1s();
|
|
26998
27001
|
}
|
|
26999
|
-
function keyBuilder$
|
|
27002
|
+
function keyBuilder$1m(luvio, params) {
|
|
27000
27003
|
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 + ')';
|
|
27001
27004
|
}
|
|
27002
27005
|
function getResponseCacheKeys$J(storeKeyMap, luvio, resourceParams, response) {
|
|
27003
|
-
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
27006
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1m(luvio, resourceParams));
|
|
27004
27007
|
}
|
|
27005
27008
|
function ingestSuccess$B(luvio, resourceParams, response, snapshotRefresh) {
|
|
27006
27009
|
const { body } = response;
|
|
27007
|
-
const key = keyBuilder$
|
|
27010
|
+
const key = keyBuilder$1m(luvio, resourceParams);
|
|
27008
27011
|
luvio.storeIngest(key, ingest$w$1, body);
|
|
27009
27012
|
const snapshot = luvio.storeLookup({
|
|
27010
27013
|
recordId: key,
|
|
@@ -27015,12 +27018,12 @@ function ingestSuccess$B(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
27015
27018
|
return snapshot;
|
|
27016
27019
|
}
|
|
27017
27020
|
function ingestError$w(luvio, params, error, snapshotRefresh) {
|
|
27018
|
-
const key = keyBuilder$
|
|
27021
|
+
const key = keyBuilder$1m(luvio, params);
|
|
27019
27022
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
27020
27023
|
const storeMetadataParams = {
|
|
27021
27024
|
ttl: TTL$p,
|
|
27022
27025
|
namespace: keyPrefix$1,
|
|
27023
|
-
version: VERSION$
|
|
27026
|
+
version: VERSION$W$1,
|
|
27024
27027
|
representationName: RepresentationType$B
|
|
27025
27028
|
};
|
|
27026
27029
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -27051,9 +27054,9 @@ const getRecordActions_ConfigPropertyMetadata = [
|
|
|
27051
27054
|
];
|
|
27052
27055
|
const getRecordActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$K, getRecordActions_ConfigPropertyMetadata);
|
|
27053
27056
|
const createResourceParams$J = /*#__PURE__*/ createResourceParams$Y(getRecordActions_ConfigPropertyMetadata);
|
|
27054
|
-
function keyBuilder$
|
|
27057
|
+
function keyBuilder$1l(luvio, config) {
|
|
27055
27058
|
const resourceParams = createResourceParams$J(config);
|
|
27056
|
-
return keyBuilder$
|
|
27059
|
+
return keyBuilder$1m(luvio, resourceParams);
|
|
27057
27060
|
}
|
|
27058
27061
|
function typeCheckConfig$O(untrustedConfig) {
|
|
27059
27062
|
const config = {};
|
|
@@ -27113,7 +27116,7 @@ function buildNetworkSnapshotCachePolicy$C(context, coercedAdapterRequestContext
|
|
|
27113
27116
|
function buildCachedSnapshotCachePolicy$C(context, storeLookup) {
|
|
27114
27117
|
const { luvio, config } = context;
|
|
27115
27118
|
const selector = {
|
|
27116
|
-
recordId: keyBuilder$
|
|
27119
|
+
recordId: keyBuilder$1l(luvio, config),
|
|
27117
27120
|
node: adapterFragment$v(luvio, config),
|
|
27118
27121
|
variables: {},
|
|
27119
27122
|
};
|
|
@@ -27136,15 +27139,15 @@ const getRecordActionsAdapterFactory = (luvio) => function UiApi__getRecordActio
|
|
|
27136
27139
|
function select$1j(luvio, params) {
|
|
27137
27140
|
return select$1s();
|
|
27138
27141
|
}
|
|
27139
|
-
function keyBuilder$
|
|
27142
|
+
function keyBuilder$1k(luvio, params) {
|
|
27140
27143
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'recordIds:' + params.urlParams.recordIds + ')';
|
|
27141
27144
|
}
|
|
27142
27145
|
function getResponseCacheKeys$I(storeKeyMap, luvio, resourceParams, response) {
|
|
27143
|
-
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
27146
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1k(luvio, resourceParams));
|
|
27144
27147
|
}
|
|
27145
27148
|
function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
|
|
27146
27149
|
const { body } = response;
|
|
27147
|
-
const key = keyBuilder$
|
|
27150
|
+
const key = keyBuilder$1k(luvio, resourceParams);
|
|
27148
27151
|
luvio.storeIngest(key, ingest$w$1, body);
|
|
27149
27152
|
const snapshot = luvio.storeLookup({
|
|
27150
27153
|
recordId: key,
|
|
@@ -27155,12 +27158,12 @@ function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
27155
27158
|
return snapshot;
|
|
27156
27159
|
}
|
|
27157
27160
|
function ingestError$v(luvio, params, error, snapshotRefresh) {
|
|
27158
|
-
const key = keyBuilder$
|
|
27161
|
+
const key = keyBuilder$1k(luvio, params);
|
|
27159
27162
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
27160
27163
|
const storeMetadataParams = {
|
|
27161
27164
|
ttl: TTL$p,
|
|
27162
27165
|
namespace: keyPrefix$1,
|
|
27163
|
-
version: VERSION$
|
|
27166
|
+
version: VERSION$W$1,
|
|
27164
27167
|
representationName: RepresentationType$B
|
|
27165
27168
|
};
|
|
27166
27169
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -27189,9 +27192,9 @@ const getRecordEditActions_ConfigPropertyMetadata = [
|
|
|
27189
27192
|
];
|
|
27190
27193
|
const getRecordEditActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$J, getRecordEditActions_ConfigPropertyMetadata);
|
|
27191
27194
|
const createResourceParams$I = /*#__PURE__*/ createResourceParams$Y(getRecordEditActions_ConfigPropertyMetadata);
|
|
27192
|
-
function keyBuilder$
|
|
27195
|
+
function keyBuilder$1j(luvio, config) {
|
|
27193
27196
|
const resourceParams = createResourceParams$I(config);
|
|
27194
|
-
return keyBuilder$
|
|
27197
|
+
return keyBuilder$1k(luvio, resourceParams);
|
|
27195
27198
|
}
|
|
27196
27199
|
function typeCheckConfig$N(untrustedConfig) {
|
|
27197
27200
|
const config = {};
|
|
@@ -27247,7 +27250,7 @@ function buildNetworkSnapshotCachePolicy$B(context, coercedAdapterRequestContext
|
|
|
27247
27250
|
function buildCachedSnapshotCachePolicy$B(context, storeLookup) {
|
|
27248
27251
|
const { luvio, config } = context;
|
|
27249
27252
|
const selector = {
|
|
27250
|
-
recordId: keyBuilder$
|
|
27253
|
+
recordId: keyBuilder$1j(luvio, config),
|
|
27251
27254
|
node: adapterFragment$u(luvio, config),
|
|
27252
27255
|
variables: {},
|
|
27253
27256
|
};
|
|
@@ -27340,15 +27343,15 @@ function validate$15(obj, path = 'ActionRelatedListSingleBatchInputRepresentatio
|
|
|
27340
27343
|
function select$1i(luvio, params) {
|
|
27341
27344
|
return select$1s();
|
|
27342
27345
|
}
|
|
27343
|
-
function keyBuilder$
|
|
27346
|
+
function keyBuilder$1i(luvio, params) {
|
|
27344
27347
|
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) + ')';
|
|
27345
27348
|
}
|
|
27346
27349
|
function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
|
|
27347
|
-
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
27350
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1i(luvio, resourceParams));
|
|
27348
27351
|
}
|
|
27349
27352
|
function ingestSuccess$z(luvio, resourceParams, response, snapshotRefresh) {
|
|
27350
27353
|
const { body } = response;
|
|
27351
|
-
const key = keyBuilder$
|
|
27354
|
+
const key = keyBuilder$1i(luvio, resourceParams);
|
|
27352
27355
|
luvio.storeIngest(key, ingest$w$1, body);
|
|
27353
27356
|
const snapshot = luvio.storeLookup({
|
|
27354
27357
|
recordId: key,
|
|
@@ -27359,12 +27362,12 @@ function ingestSuccess$z(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
27359
27362
|
return snapshot;
|
|
27360
27363
|
}
|
|
27361
27364
|
function ingestError$u(luvio, params, error, snapshotRefresh) {
|
|
27362
|
-
const key = keyBuilder$
|
|
27365
|
+
const key = keyBuilder$1i(luvio, params);
|
|
27363
27366
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
27364
27367
|
const storeMetadataParams = {
|
|
27365
27368
|
ttl: TTL$p,
|
|
27366
27369
|
namespace: keyPrefix$1,
|
|
27367
|
-
version: VERSION$
|
|
27370
|
+
version: VERSION$W$1,
|
|
27368
27371
|
representationName: RepresentationType$B
|
|
27369
27372
|
};
|
|
27370
27373
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -27384,7 +27387,7 @@ function createResourceRequest$K(config) {
|
|
|
27384
27387
|
};
|
|
27385
27388
|
}
|
|
27386
27389
|
|
|
27387
|
-
|
|
27390
|
+
function createChildResourceParams$9(resourceParams) {
|
|
27388
27391
|
const childConfigs = [];
|
|
27389
27392
|
for (let index = 0, len = resourceParams.body.relatedListsActionParameters.length; index < len; index += 1) {
|
|
27390
27393
|
let childConfig = {
|
|
@@ -27414,12 +27417,13 @@ const createChildResourceParams$6 = (resourceParams) => {
|
|
|
27414
27417
|
childConfigs.push(childConfig);
|
|
27415
27418
|
}
|
|
27416
27419
|
return childConfigs;
|
|
27417
|
-
}
|
|
27418
|
-
|
|
27419
|
-
|
|
27420
|
-
|
|
27421
|
-
|
|
27422
|
-
|
|
27420
|
+
}
|
|
27421
|
+
|
|
27422
|
+
const nonCachedErrors$6 = ObjectCreate$1$1(null);
|
|
27423
|
+
function createChildResourceParams$8(resourceParams) {
|
|
27424
|
+
return createChildResourceParams$9(resourceParams);
|
|
27425
|
+
}
|
|
27426
|
+
function selectChildResourceParams$6(luvio, childResources, resourceParams) {
|
|
27423
27427
|
const envelopeBodyPath = 'result';
|
|
27424
27428
|
const envelopeStatusCodePath = 'statusCode';
|
|
27425
27429
|
const envelopePath = 'results';
|
|
@@ -27428,21 +27432,36 @@ function select$1h(luvio, resourceParams) {
|
|
|
27428
27432
|
reader: true,
|
|
27429
27433
|
synthetic: true,
|
|
27430
27434
|
read: (reader) => {
|
|
27435
|
+
// Top-level 404 lookup
|
|
27436
|
+
const result = reader.storeLookup(keyBuilder$1h(luvio, resourceParams));
|
|
27437
|
+
if (result.state === reader.StoreResolveResultState.Error && result.value.status === 404) {
|
|
27438
|
+
return {
|
|
27439
|
+
state: 'Error',
|
|
27440
|
+
value: result.value,
|
|
27441
|
+
};
|
|
27442
|
+
}
|
|
27431
27443
|
const sink = {};
|
|
27432
27444
|
reader.enterPath(envelopePath);
|
|
27433
27445
|
const results = [];
|
|
27434
27446
|
for (let i = 0, len = childResources.length; i < len; i += 1) {
|
|
27435
27447
|
reader.enterPath(i);
|
|
27448
|
+
reader.enterPath(envelopeBodyPath);
|
|
27436
27449
|
const childResource = childResources[i];
|
|
27437
|
-
const childKey = keyBuilder$
|
|
27450
|
+
const childKey = keyBuilder$1i(luvio, childResource);
|
|
27438
27451
|
const childFragment = select$1i();
|
|
27452
|
+
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
27439
27453
|
const childSnapshot = reader.read({
|
|
27440
27454
|
recordId: childKey,
|
|
27441
27455
|
node: childFragment,
|
|
27442
27456
|
variables: {},
|
|
27443
27457
|
});
|
|
27458
|
+
reader.exitPath();
|
|
27444
27459
|
const childSink = {};
|
|
27460
|
+
reader.markSeenId(childKey);
|
|
27445
27461
|
switch (childSnapshot.state) {
|
|
27462
|
+
case 'Stale':
|
|
27463
|
+
reader.markStale();
|
|
27464
|
+
// Stale needs envelope bodies filled in so don't break
|
|
27446
27465
|
case 'Fulfilled':
|
|
27447
27466
|
reader.enterPath(envelopeStatusCodePath);
|
|
27448
27467
|
reader.assignScalar(envelopeStatusCodePath, childSink, 200);
|
|
@@ -27452,7 +27471,6 @@ function select$1h(luvio, resourceParams) {
|
|
|
27452
27471
|
reader.exitPath();
|
|
27453
27472
|
break;
|
|
27454
27473
|
case 'Error':
|
|
27455
|
-
// eslint-disable-next-line no-case-declarations
|
|
27456
27474
|
const childSnapshotError = childSnapshot.error;
|
|
27457
27475
|
reader.enterPath(envelopeStatusCodePath);
|
|
27458
27476
|
reader.assignScalar(envelopeStatusCodePath, childSink, childSnapshotError.status);
|
|
@@ -27462,90 +27480,152 @@ function select$1h(luvio, resourceParams) {
|
|
|
27462
27480
|
reader.exitPath();
|
|
27463
27481
|
break;
|
|
27464
27482
|
case 'Unfulfilled':
|
|
27465
|
-
|
|
27483
|
+
// if child snapshot doesn't have any data then
|
|
27484
|
+
// that means the child record key is missing
|
|
27485
|
+
if (childSnapshot.data === undefined) {
|
|
27486
|
+
if (reader.isRebuilding() === false) {
|
|
27487
|
+
// not a rebuild, mark as missing and move on
|
|
27488
|
+
reader.markMissingLink(childKey);
|
|
27489
|
+
break;
|
|
27490
|
+
}
|
|
27491
|
+
// On rebuilds we have to check if there is a non-cached
|
|
27492
|
+
// error that we know about. If we don't do this then
|
|
27493
|
+
// rebuilds will go into endless refresh loop if a child
|
|
27494
|
+
// has non-cached errors (since the top-level composite
|
|
27495
|
+
// snapshot will look like an Unfulfilled snapshot
|
|
27496
|
+
// instead of an error snapshot).
|
|
27497
|
+
const nonCachedError = nonCachedErrors$6[childKey];
|
|
27498
|
+
if (nonCachedError === undefined || nonCachedError.expiration < reader.getTimeStamp()) {
|
|
27499
|
+
reader.markMissingLink(childKey);
|
|
27500
|
+
}
|
|
27501
|
+
else {
|
|
27502
|
+
// if this child error was the only reason the reader
|
|
27503
|
+
// is marked as missing then we want to undo that
|
|
27504
|
+
if (isMissingDataBeforeChildRead === false) {
|
|
27505
|
+
reader.unMarkMissing();
|
|
27506
|
+
}
|
|
27507
|
+
// put status code and body into reader path
|
|
27508
|
+
const { response: nonCachedBody, status: nonCachedStatus } = nonCachedError;
|
|
27509
|
+
reader.enterPath(envelopeStatusCodePath);
|
|
27510
|
+
reader.assignScalar(envelopeStatusCodePath, childSink, nonCachedStatus);
|
|
27511
|
+
reader.exitPath();
|
|
27512
|
+
reader.enterPath(envelopeBodyPath);
|
|
27513
|
+
reader.assignNonScalar(childSink, envelopeBodyPath, nonCachedBody);
|
|
27514
|
+
reader.exitPath();
|
|
27515
|
+
}
|
|
27516
|
+
}
|
|
27466
27517
|
break;
|
|
27467
27518
|
case 'Pending':
|
|
27468
27519
|
reader.markPending();
|
|
27469
27520
|
break;
|
|
27470
|
-
case 'Stale':
|
|
27471
|
-
reader.markStale();
|
|
27472
|
-
break;
|
|
27473
27521
|
}
|
|
27474
27522
|
ArrayPrototypePush$1.call(results, childSink);
|
|
27475
27523
|
reader.exitPath();
|
|
27476
27524
|
}
|
|
27477
27525
|
reader.assignNonScalar(sink, envelopePath, results);
|
|
27478
|
-
deepFreeze(sink);
|
|
27479
27526
|
reader.exitPath();
|
|
27480
27527
|
return sink;
|
|
27481
|
-
}
|
|
27528
|
+
}
|
|
27482
27529
|
};
|
|
27483
27530
|
}
|
|
27484
|
-
function
|
|
27485
|
-
|
|
27486
|
-
|
|
27487
|
-
'ActionRelatedListsCollectionBatchRepresentation(' +
|
|
27488
|
-
'relatedListsActionParameters:' +
|
|
27489
|
-
params.body.relatedListsActionParameters +
|
|
27490
|
-
')');
|
|
27531
|
+
function select$1h(luvio, resourceParams) {
|
|
27532
|
+
const childResources = createChildResourceParams$8(resourceParams);
|
|
27533
|
+
return selectChildResourceParams$6(luvio, childResources, resourceParams);
|
|
27491
27534
|
}
|
|
27492
|
-
function
|
|
27493
|
-
|
|
27494
|
-
|
|
27495
|
-
|
|
27496
|
-
const
|
|
27535
|
+
function keyBuilder$1h(luvio, params) {
|
|
27536
|
+
return keyPrefix$1 + '::ActionRelatedListsCollectionBatchRepresentation:(' + 'recordIds:' + params.urlParams.recordIds + ',' + '[' + params.body.relatedListsActionParameters.map(element => (element.actionTypes === undefined ? 'relatedListsActionParameters.actionTypes' : 'relatedListsActionParameters.actionTypes:' + element.actionTypes) + '::' + (element.apiNames === undefined ? 'relatedListsActionParameters.apiNames' : 'relatedListsActionParameters.apiNames:' + element.apiNames) + '::' + (element.formFactor === undefined ? 'relatedListsActionParameters.formFactor' : 'relatedListsActionParameters.formFactor:' + element.formFactor) + '::' + 'relatedListsActionParameters.relatedListId:' + element.relatedListId + '::' + (element.retrievalMode === undefined ? 'relatedListsActionParameters.retrievalMode' : 'relatedListsActionParameters.retrievalMode:' + element.retrievalMode) + '::' + (element.sections === undefined ? 'relatedListsActionParameters.sections' : 'relatedListsActionParameters.sections:' + element.sections)).join(',') + ']' + ')';
|
|
27537
|
+
}
|
|
27538
|
+
function getResponseCacheKeys$G(keys, luvio, resourceParams, response) {
|
|
27539
|
+
const childEnvelopes = response.results;
|
|
27540
|
+
const childResourceParamsArray = createChildResourceParams$8(resourceParams);
|
|
27541
|
+
// get children keys
|
|
27542
|
+
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
27543
|
+
const childResourceParams = childResourceParamsArray[index];
|
|
27544
|
+
const childResult = childEnvelopes[index];
|
|
27545
|
+
const { statusCode: childStatusCode, result: childBody } = childResult;
|
|
27546
|
+
if (childStatusCode === 200) {
|
|
27547
|
+
getResponseCacheKeys$H(keys, luvio, childResourceParams, childBody);
|
|
27548
|
+
}
|
|
27549
|
+
else if (childStatusCode === 404) {
|
|
27550
|
+
const childKey = keyBuilder$1i(luvio, childResourceParams);
|
|
27551
|
+
keys.set(childKey, {
|
|
27552
|
+
namespace: keyPrefix$1,
|
|
27553
|
+
representationName: RepresentationType$B,
|
|
27554
|
+
mergeable: false
|
|
27555
|
+
});
|
|
27556
|
+
}
|
|
27557
|
+
}
|
|
27558
|
+
}
|
|
27559
|
+
function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes) {
|
|
27497
27560
|
const childSnapshotDataResponses = [];
|
|
27498
27561
|
let seenRecords = new StoreKeySet();
|
|
27562
|
+
let snapshotState = 'Fulfilled';
|
|
27563
|
+
const now = Date.now();
|
|
27499
27564
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
27500
27565
|
const childResourceParams = childResourceParamsArray[index];
|
|
27566
|
+
const childKey = keyBuilder$1i(luvio, childResourceParams);
|
|
27501
27567
|
const result = childEnvelopes[index];
|
|
27502
|
-
const
|
|
27503
|
-
if (
|
|
27504
|
-
const { statusCode: childStatusCode, result: childBody } = result;
|
|
27568
|
+
const { statusCode: childStatusCode, result: childBody } = result;
|
|
27569
|
+
if (childStatusCode === 200) {
|
|
27505
27570
|
const childResponse = {
|
|
27506
|
-
status:
|
|
27571
|
+
status: 200,
|
|
27507
27572
|
body: childBody,
|
|
27508
27573
|
ok: true,
|
|
27509
|
-
statusText:
|
|
27574
|
+
statusText: 'OK',
|
|
27510
27575
|
headers: {},
|
|
27511
27576
|
};
|
|
27512
27577
|
const childSnapshot = ingestSuccess$z(luvio, childResourceParams, childResponse);
|
|
27578
|
+
if (childSnapshot.state === "Stale") {
|
|
27579
|
+
snapshotState = "Stale";
|
|
27580
|
+
}
|
|
27513
27581
|
seenRecords.merge(childSnapshot.seenRecords);
|
|
27514
27582
|
seenRecords.add(childSnapshot.recordId);
|
|
27515
|
-
if (childSnapshot.state === 'Pending') {
|
|
27516
|
-
snapshotState = 'Pending';
|
|
27517
|
-
break;
|
|
27518
|
-
}
|
|
27519
27583
|
const childValue = {
|
|
27520
|
-
statusCode:
|
|
27584
|
+
statusCode: 200,
|
|
27521
27585
|
result: childSnapshot.data,
|
|
27522
27586
|
};
|
|
27523
|
-
|
|
27587
|
+
deepFreeze(childValue);
|
|
27588
|
+
ArrayPrototypePush$1.call(childSnapshotDataResponses, childValue);
|
|
27524
27589
|
}
|
|
27525
27590
|
else {
|
|
27526
|
-
const
|
|
27591
|
+
const childStatusCodeText = getFetchResponseStatusText$1(result.statusCode);
|
|
27527
27592
|
const childResponse = {
|
|
27528
27593
|
status: childStatusCode,
|
|
27529
27594
|
body: childBody,
|
|
27530
27595
|
ok: false,
|
|
27531
27596
|
statusText: childStatusCodeText,
|
|
27532
27597
|
headers: {},
|
|
27533
|
-
errorType: 'fetchResponse'
|
|
27598
|
+
errorType: 'fetchResponse'
|
|
27534
27599
|
};
|
|
27535
27600
|
ingestError$u(luvio, childResourceParams, childResponse);
|
|
27536
|
-
seenRecords.add(
|
|
27601
|
+
seenRecords.add(childKey);
|
|
27537
27602
|
const childValue = {
|
|
27538
27603
|
statusCode: childStatusCode,
|
|
27539
27604
|
result: childBody,
|
|
27540
27605
|
};
|
|
27541
|
-
|
|
27606
|
+
deepFreeze(childValue);
|
|
27607
|
+
ArrayPrototypePush$1.call(childSnapshotDataResponses, childValue);
|
|
27608
|
+
}
|
|
27609
|
+
// track non-cached responses so rebuilds work properly
|
|
27610
|
+
if (childStatusCode !== 404 && childStatusCode !== 200) {
|
|
27611
|
+
nonCachedErrors$6[childKey] = { expiration: now + TTL$p, response: childBody, status: childStatusCode };
|
|
27612
|
+
}
|
|
27613
|
+
else {
|
|
27614
|
+
delete nonCachedErrors$6[childKey];
|
|
27542
27615
|
}
|
|
27543
27616
|
}
|
|
27544
27617
|
const childSnapshotData = {
|
|
27545
|
-
results: childSnapshotDataResponses
|
|
27618
|
+
results: childSnapshotDataResponses
|
|
27546
27619
|
};
|
|
27547
27620
|
deepFreeze(childSnapshotData);
|
|
27548
|
-
return {
|
|
27621
|
+
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
27622
|
+
}
|
|
27623
|
+
function ingestSuccess$y(luvio, resourceParams, response, snapshotRefresh) {
|
|
27624
|
+
const childEnvelopes = response.body.results;
|
|
27625
|
+
const childResourceParamsArray = createChildResourceParams$8(resourceParams);
|
|
27626
|
+
const key = keyBuilder$1h(luvio, resourceParams);
|
|
27627
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes);
|
|
27628
|
+
const syntheticSnapshot = {
|
|
27549
27629
|
recordId: key,
|
|
27550
27630
|
data: childSnapshotData,
|
|
27551
27631
|
state: snapshotState,
|
|
@@ -27555,36 +27635,19 @@ function ingestSuccess$y(luvio, resourceParams, response, _snapshotRefresh) {
|
|
|
27555
27635
|
node: select$1h(luvio, resourceParams),
|
|
27556
27636
|
variables: {},
|
|
27557
27637
|
},
|
|
27558
|
-
|
|
27638
|
+
refresh: snapshotRefresh,
|
|
27639
|
+
variables: {}
|
|
27559
27640
|
};
|
|
27641
|
+
// evict top level composite record from the store. This covers the case where a previous resource request returned a 404.
|
|
27642
|
+
luvio.storeEvict(key);
|
|
27643
|
+
return syntheticSnapshot;
|
|
27560
27644
|
}
|
|
27561
27645
|
function ingestError$t(luvio, params, error, snapshotRefresh) {
|
|
27562
|
-
const key = keyBuilder$
|
|
27646
|
+
const key = keyBuilder$1h(luvio, params);
|
|
27563
27647
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
27564
27648
|
luvio.storeIngestError(key, errorSnapshot);
|
|
27565
27649
|
return errorSnapshot;
|
|
27566
27650
|
}
|
|
27567
|
-
function getResponseCacheKeys$G(keys, luvio, resourceParams, response) {
|
|
27568
|
-
const childEnvelopes = response.results;
|
|
27569
|
-
const childResourceParamsArray = createChildResourceParams$6(resourceParams);
|
|
27570
|
-
// get children keys
|
|
27571
|
-
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
27572
|
-
const childResourceParams = childResourceParamsArray[index];
|
|
27573
|
-
const childResult = childEnvelopes[index];
|
|
27574
|
-
const { statusCode: childStatusCode, result: childBody } = childResult;
|
|
27575
|
-
if (childStatusCode === 200) {
|
|
27576
|
-
getResponseCacheKeys$H(keys, luvio, childResourceParams, childBody);
|
|
27577
|
-
}
|
|
27578
|
-
else if (childStatusCode === 404) {
|
|
27579
|
-
const childKey = keyBuilder$1j(luvio, childResourceParams);
|
|
27580
|
-
keys.set(childKey, {
|
|
27581
|
-
namespace: keyPrefix$1,
|
|
27582
|
-
representationName: childKey.split('::')[1].split(':')[0],
|
|
27583
|
-
mergeable: false,
|
|
27584
|
-
});
|
|
27585
|
-
}
|
|
27586
|
-
}
|
|
27587
|
-
}
|
|
27588
27651
|
function createResourceRequest$J(config) {
|
|
27589
27652
|
const headers = {};
|
|
27590
27653
|
return {
|
|
@@ -27606,9 +27669,9 @@ const getRelatedListsActions_ConfigPropertyMetadata = [
|
|
|
27606
27669
|
];
|
|
27607
27670
|
const getRelatedListsActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$I, getRelatedListsActions_ConfigPropertyMetadata);
|
|
27608
27671
|
const createResourceParams$H = /*#__PURE__*/ createResourceParams$Y(getRelatedListsActions_ConfigPropertyMetadata);
|
|
27609
|
-
function keyBuilder$
|
|
27672
|
+
function keyBuilder$1g(luvio, config) {
|
|
27610
27673
|
const resourceParams = createResourceParams$H(config);
|
|
27611
|
-
return keyBuilder$
|
|
27674
|
+
return keyBuilder$1h(luvio, resourceParams);
|
|
27612
27675
|
}
|
|
27613
27676
|
function typeCheckConfig$M(untrustedConfig) {
|
|
27614
27677
|
const config = {};
|
|
@@ -27643,7 +27706,10 @@ function adapterFragment$t(luvio, config) {
|
|
|
27643
27706
|
return select$1h(luvio, resourceParams);
|
|
27644
27707
|
}
|
|
27645
27708
|
function onFetchResponseSuccess$x(luvio, config, resourceParams, response) {
|
|
27646
|
-
const snapshot = ingestSuccess$y(luvio, resourceParams, response
|
|
27709
|
+
const snapshot = ingestSuccess$y(luvio, resourceParams, response, {
|
|
27710
|
+
config,
|
|
27711
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions$1)
|
|
27712
|
+
});
|
|
27647
27713
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27648
27714
|
}
|
|
27649
27715
|
function onFetchResponseError$x(luvio, config, resourceParams, response) {
|
|
@@ -27673,7 +27739,7 @@ function buildNetworkSnapshotCachePolicy$A(context, coercedAdapterRequestContext
|
|
|
27673
27739
|
function buildCachedSnapshotCachePolicy$A(context, storeLookup) {
|
|
27674
27740
|
const { luvio, config } = context;
|
|
27675
27741
|
const selector = {
|
|
27676
|
-
recordId: keyBuilder$
|
|
27742
|
+
recordId: keyBuilder$1g(luvio, config),
|
|
27677
27743
|
node: adapterFragment$t(luvio, config),
|
|
27678
27744
|
variables: {},
|
|
27679
27745
|
};
|
|
@@ -27705,9 +27771,9 @@ const getRelatedListActions_ConfigPropertyMetadata = [
|
|
|
27705
27771
|
];
|
|
27706
27772
|
const getRelatedListActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$H, getRelatedListActions_ConfigPropertyMetadata);
|
|
27707
27773
|
const createResourceParams$G = /*#__PURE__*/ createResourceParams$Y(getRelatedListActions_ConfigPropertyMetadata);
|
|
27708
|
-
function keyBuilder$
|
|
27774
|
+
function keyBuilder$1f(luvio, config) {
|
|
27709
27775
|
const resourceParams = createResourceParams$G(config);
|
|
27710
|
-
return keyBuilder$
|
|
27776
|
+
return keyBuilder$1i(luvio, resourceParams);
|
|
27711
27777
|
}
|
|
27712
27778
|
function typeCheckConfig$L(untrustedConfig) {
|
|
27713
27779
|
const config = {};
|
|
@@ -27763,7 +27829,7 @@ function buildNetworkSnapshotCachePolicy$z(context, coercedAdapterRequestContext
|
|
|
27763
27829
|
function buildCachedSnapshotCachePolicy$z(context, storeLookup) {
|
|
27764
27830
|
const { luvio, config } = context;
|
|
27765
27831
|
const selector = {
|
|
27766
|
-
recordId: keyBuilder$
|
|
27832
|
+
recordId: keyBuilder$1f(luvio, config),
|
|
27767
27833
|
node: adapterFragment$s(luvio, config),
|
|
27768
27834
|
variables: {},
|
|
27769
27835
|
};
|
|
@@ -27786,15 +27852,15 @@ const getRelatedListActionsAdapterFactory = (luvio) => function UiApi__getRelate
|
|
|
27786
27852
|
function select$1g(luvio, params) {
|
|
27787
27853
|
return select$1s();
|
|
27788
27854
|
}
|
|
27789
|
-
function keyBuilder$
|
|
27855
|
+
function keyBuilder$1e(luvio, params) {
|
|
27790
27856
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'recordIds:' + params.urlParams.recordIds + ',' + 'relatedListRecordIds:' + params.urlParams.relatedListRecordIds + ')';
|
|
27791
27857
|
}
|
|
27792
27858
|
function getResponseCacheKeys$F(storeKeyMap, luvio, resourceParams, response) {
|
|
27793
|
-
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
27859
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1e(luvio, resourceParams));
|
|
27794
27860
|
}
|
|
27795
27861
|
function ingestSuccess$x(luvio, resourceParams, response, snapshotRefresh) {
|
|
27796
27862
|
const { body } = response;
|
|
27797
|
-
const key = keyBuilder$
|
|
27863
|
+
const key = keyBuilder$1e(luvio, resourceParams);
|
|
27798
27864
|
luvio.storeIngest(key, ingest$w$1, body);
|
|
27799
27865
|
const snapshot = luvio.storeLookup({
|
|
27800
27866
|
recordId: key,
|
|
@@ -27805,12 +27871,12 @@ function ingestSuccess$x(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
27805
27871
|
return snapshot;
|
|
27806
27872
|
}
|
|
27807
27873
|
function ingestError$s(luvio, params, error, snapshotRefresh) {
|
|
27808
|
-
const key = keyBuilder$
|
|
27874
|
+
const key = keyBuilder$1e(luvio, params);
|
|
27809
27875
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
27810
27876
|
const storeMetadataParams = {
|
|
27811
27877
|
ttl: TTL$p,
|
|
27812
27878
|
namespace: keyPrefix$1,
|
|
27813
|
-
version: VERSION$
|
|
27879
|
+
version: VERSION$W$1,
|
|
27814
27880
|
representationName: RepresentationType$B
|
|
27815
27881
|
};
|
|
27816
27882
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -27840,9 +27906,9 @@ const getRelatedListRecordActions_ConfigPropertyMetadata = [
|
|
|
27840
27906
|
];
|
|
27841
27907
|
const getRelatedListRecordActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$G, getRelatedListRecordActions_ConfigPropertyMetadata);
|
|
27842
27908
|
const createResourceParams$F = /*#__PURE__*/ createResourceParams$Y(getRelatedListRecordActions_ConfigPropertyMetadata);
|
|
27843
|
-
function keyBuilder$
|
|
27909
|
+
function keyBuilder$1d(luvio, config) {
|
|
27844
27910
|
const resourceParams = createResourceParams$F(config);
|
|
27845
|
-
return keyBuilder$
|
|
27911
|
+
return keyBuilder$1e(luvio, resourceParams);
|
|
27846
27912
|
}
|
|
27847
27913
|
function typeCheckConfig$K(untrustedConfig) {
|
|
27848
27914
|
const config = {};
|
|
@@ -27898,7 +27964,7 @@ function buildNetworkSnapshotCachePolicy$y(context, coercedAdapterRequestContext
|
|
|
27898
27964
|
function buildCachedSnapshotCachePolicy$y(context, storeLookup) {
|
|
27899
27965
|
const { luvio, config } = context;
|
|
27900
27966
|
const selector = {
|
|
27901
|
-
recordId: keyBuilder$
|
|
27967
|
+
recordId: keyBuilder$1d(luvio, config),
|
|
27902
27968
|
node: adapterFragment$r(luvio, config),
|
|
27903
27969
|
variables: {},
|
|
27904
27970
|
};
|
|
@@ -27918,7 +27984,7 @@ const getRelatedListRecordActionsAdapterFactory = (luvio) => function UiApi__get
|
|
|
27918
27984
|
buildCachedSnapshotCachePolicy$y, buildNetworkSnapshotCachePolicy$y);
|
|
27919
27985
|
};
|
|
27920
27986
|
|
|
27921
|
-
const VERSION$
|
|
27987
|
+
const VERSION$T$1 = "a316b3bba367f54adc67d7552ed7d36d";
|
|
27922
27988
|
const RepresentationType$y = 'PageReferenceRepresentation';
|
|
27923
27989
|
function normalize$t(input, existing, path, luvio, store, timestamp) {
|
|
27924
27990
|
return input;
|
|
@@ -27926,7 +27992,7 @@ function normalize$t(input, existing, path, luvio, store, timestamp) {
|
|
|
27926
27992
|
const select$1f = function PageReferenceRepresentationSelect() {
|
|
27927
27993
|
return {
|
|
27928
27994
|
kind: 'Fragment',
|
|
27929
|
-
version: VERSION$
|
|
27995
|
+
version: VERSION$T$1,
|
|
27930
27996
|
private: [],
|
|
27931
27997
|
opaque: true
|
|
27932
27998
|
};
|
|
@@ -27940,7 +28006,7 @@ function equals$G(existing, incoming) {
|
|
|
27940
28006
|
const ingest$t$1 = function PageReferenceRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
27941
28007
|
const key = path.fullPath;
|
|
27942
28008
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
27943
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$t, "UiApi", VERSION$
|
|
28009
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$t, "UiApi", VERSION$T$1, RepresentationType$y, equals$G);
|
|
27944
28010
|
return createLink$3(key);
|
|
27945
28011
|
};
|
|
27946
28012
|
function getTypeCacheKeys$z$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -27954,16 +28020,16 @@ function getTypeCacheKeys$z$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
27954
28020
|
}
|
|
27955
28021
|
|
|
27956
28022
|
const TTL$n = 120000;
|
|
27957
|
-
const VERSION$
|
|
28023
|
+
const VERSION$S$1 = "09884ca5bf90ea4662092a4e48817081";
|
|
27958
28024
|
const RepresentationType$x = 'NavItemRepresentation';
|
|
27959
|
-
function keyBuilder$
|
|
28025
|
+
function keyBuilder$1c(luvio, config) {
|
|
27960
28026
|
return keyPrefix$1 + '::' + RepresentationType$x + ':' + config.developerName;
|
|
27961
28027
|
}
|
|
27962
28028
|
function keyBuilderFromType$l(luvio, object) {
|
|
27963
28029
|
const keyParams = {
|
|
27964
28030
|
developerName: object.developerName
|
|
27965
28031
|
};
|
|
27966
|
-
return keyBuilder$
|
|
28032
|
+
return keyBuilder$1c(luvio, keyParams);
|
|
27967
28033
|
}
|
|
27968
28034
|
function normalize$s(input, existing, path, luvio, store, timestamp) {
|
|
27969
28035
|
const input_pageReference = input.pageReference;
|
|
@@ -27985,7 +28051,7 @@ function normalize$s(input, existing, path, luvio, store, timestamp) {
|
|
|
27985
28051
|
const select$1e = function NavItemRepresentationSelect() {
|
|
27986
28052
|
return {
|
|
27987
28053
|
kind: 'Fragment',
|
|
27988
|
-
version: VERSION$
|
|
28054
|
+
version: VERSION$S$1,
|
|
27989
28055
|
private: [],
|
|
27990
28056
|
selections: [
|
|
27991
28057
|
{
|
|
@@ -28139,7 +28205,7 @@ function equals$F(existing, incoming) {
|
|
|
28139
28205
|
const ingest$s$1 = function NavItemRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
28140
28206
|
const key = keyBuilderFromType$l(luvio, input);
|
|
28141
28207
|
const ttlToUse = TTL$n;
|
|
28142
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$s, "UiApi", VERSION$
|
|
28208
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$s, "UiApi", VERSION$S$1, RepresentationType$x, equals$F);
|
|
28143
28209
|
return createLink$3(key);
|
|
28144
28210
|
};
|
|
28145
28211
|
function getTypeCacheKeys$y$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -28156,16 +28222,16 @@ function getTypeCacheKeys$y$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
28156
28222
|
}
|
|
28157
28223
|
|
|
28158
28224
|
const TTL$m = 300000;
|
|
28159
|
-
const VERSION$
|
|
28225
|
+
const VERSION$R$1 = "1781f2d3d4e413cf0c681774d82d02cd";
|
|
28160
28226
|
const RepresentationType$w = 'AppRepresentation';
|
|
28161
|
-
function keyBuilder$
|
|
28227
|
+
function keyBuilder$1b(luvio, config) {
|
|
28162
28228
|
return keyPrefix$1 + '::' + RepresentationType$w + ':' + (config.appId === null ? '' : config.appId);
|
|
28163
28229
|
}
|
|
28164
28230
|
function keyBuilderFromType$k(luvio, object) {
|
|
28165
28231
|
const keyParams = {
|
|
28166
28232
|
appId: object.appId
|
|
28167
28233
|
};
|
|
28168
|
-
return keyBuilder$
|
|
28234
|
+
return keyBuilder$1b(luvio, keyParams);
|
|
28169
28235
|
}
|
|
28170
28236
|
function normalize$r(input, existing, path, luvio, store, timestamp) {
|
|
28171
28237
|
const input_navItems = input.navItems;
|
|
@@ -28205,7 +28271,7 @@ function normalize$r(input, existing, path, luvio, store, timestamp) {
|
|
|
28205
28271
|
const select$1d$1 = function AppRepresentationSelect() {
|
|
28206
28272
|
return {
|
|
28207
28273
|
kind: 'Fragment',
|
|
28208
|
-
version: VERSION$
|
|
28274
|
+
version: VERSION$R$1,
|
|
28209
28275
|
private: [
|
|
28210
28276
|
'eTag'
|
|
28211
28277
|
],
|
|
@@ -28397,7 +28463,7 @@ function equals$E(existing, incoming) {
|
|
|
28397
28463
|
const ingest$r$1 = function AppRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
28398
28464
|
const key = keyBuilderFromType$k(luvio, input);
|
|
28399
28465
|
const ttlToUse = TTL$m;
|
|
28400
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$r, "UiApi", VERSION$
|
|
28466
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$r, "UiApi", VERSION$R$1, RepresentationType$w, equals$E);
|
|
28401
28467
|
return createLink$3(key);
|
|
28402
28468
|
};
|
|
28403
28469
|
function getTypeCacheKeys$x$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -28419,7 +28485,7 @@ function getTypeCacheKeys$x$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
28419
28485
|
}
|
|
28420
28486
|
|
|
28421
28487
|
const TTL$l = 300000;
|
|
28422
|
-
const VERSION$
|
|
28488
|
+
const VERSION$Q$1 = "a254babf0b6414315db7808a157fd9fc";
|
|
28423
28489
|
const RepresentationType$v = 'AppsRepresentation';
|
|
28424
28490
|
function normalize$q(input, existing, path, luvio, store, timestamp) {
|
|
28425
28491
|
const input_apps = input.apps;
|
|
@@ -28443,7 +28509,7 @@ function normalize$q(input, existing, path, luvio, store, timestamp) {
|
|
|
28443
28509
|
const select$1c$1 = function AppsRepresentationSelect() {
|
|
28444
28510
|
return {
|
|
28445
28511
|
kind: 'Fragment',
|
|
28446
|
-
version: VERSION$
|
|
28512
|
+
version: VERSION$Q$1,
|
|
28447
28513
|
private: [
|
|
28448
28514
|
'eTag'
|
|
28449
28515
|
],
|
|
@@ -28478,7 +28544,7 @@ function equals$D(existing, incoming) {
|
|
|
28478
28544
|
const ingest$q$1 = function AppsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
28479
28545
|
const key = path.fullPath;
|
|
28480
28546
|
const ttlToUse = TTL$l;
|
|
28481
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$q, "UiApi", VERSION$
|
|
28547
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$q, "UiApi", VERSION$Q$1, RepresentationType$v, equals$D);
|
|
28482
28548
|
return createLink$3(key);
|
|
28483
28549
|
};
|
|
28484
28550
|
function getTypeCacheKeys$w$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -28498,15 +28564,15 @@ function getTypeCacheKeys$w$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
28498
28564
|
function select$1b$1(luvio, params) {
|
|
28499
28565
|
return select$1c$1();
|
|
28500
28566
|
}
|
|
28501
|
-
function keyBuilder$
|
|
28567
|
+
function keyBuilder$1a(luvio, params) {
|
|
28502
28568
|
return keyPrefix$1 + '::AppsRepresentation:(' + 'formFactor:' + params.queryParams.formFactor + ',' + 'userCustomizations:' + params.queryParams.userCustomizations + ')';
|
|
28503
28569
|
}
|
|
28504
28570
|
function getResponseCacheKeys$E(storeKeyMap, luvio, resourceParams, response) {
|
|
28505
|
-
getTypeCacheKeys$w$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
28571
|
+
getTypeCacheKeys$w$1(storeKeyMap, luvio, response, () => keyBuilder$1a(luvio, resourceParams));
|
|
28506
28572
|
}
|
|
28507
28573
|
function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
|
|
28508
28574
|
const { body } = response;
|
|
28509
|
-
const key = keyBuilder$
|
|
28575
|
+
const key = keyBuilder$1a(luvio, resourceParams);
|
|
28510
28576
|
luvio.storeIngest(key, ingest$q$1, body);
|
|
28511
28577
|
const snapshot = luvio.storeLookup({
|
|
28512
28578
|
recordId: key,
|
|
@@ -28517,12 +28583,12 @@ function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
28517
28583
|
return snapshot;
|
|
28518
28584
|
}
|
|
28519
28585
|
function ingestError$r(luvio, params, error, snapshotRefresh) {
|
|
28520
|
-
const key = keyBuilder$
|
|
28586
|
+
const key = keyBuilder$1a(luvio, params);
|
|
28521
28587
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
28522
28588
|
const storeMetadataParams = {
|
|
28523
28589
|
ttl: TTL$l,
|
|
28524
28590
|
namespace: keyPrefix$1,
|
|
28525
|
-
version: VERSION$
|
|
28591
|
+
version: VERSION$Q$1,
|
|
28526
28592
|
representationName: RepresentationType$v
|
|
28527
28593
|
};
|
|
28528
28594
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -28549,9 +28615,9 @@ const getAllApps_ConfigPropertyMetadata = [
|
|
|
28549
28615
|
];
|
|
28550
28616
|
const getAllApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$F, getAllApps_ConfigPropertyMetadata);
|
|
28551
28617
|
const createResourceParams$E = /*#__PURE__*/ createResourceParams$Y(getAllApps_ConfigPropertyMetadata);
|
|
28552
|
-
function keyBuilder$
|
|
28618
|
+
function keyBuilder$19(luvio, config) {
|
|
28553
28619
|
const resourceParams = createResourceParams$E(config);
|
|
28554
|
-
return keyBuilder$
|
|
28620
|
+
return keyBuilder$1a(luvio, resourceParams);
|
|
28555
28621
|
}
|
|
28556
28622
|
function typeCheckConfig$J(untrustedConfig) {
|
|
28557
28623
|
const config = {};
|
|
@@ -28607,7 +28673,7 @@ function buildNetworkSnapshotCachePolicy$x(context, coercedAdapterRequestContext
|
|
|
28607
28673
|
function buildCachedSnapshotCachePolicy$x(context, storeLookup) {
|
|
28608
28674
|
const { luvio, config } = context;
|
|
28609
28675
|
const selector = {
|
|
28610
|
-
recordId: keyBuilder$
|
|
28676
|
+
recordId: keyBuilder$19(luvio, config),
|
|
28611
28677
|
node: adapterFragment$q(luvio, config),
|
|
28612
28678
|
variables: {},
|
|
28613
28679
|
};
|
|
@@ -28630,8 +28696,8 @@ const getAllAppsAdapterFactory = (luvio) => function UiApi__getAllApps(untrusted
|
|
|
28630
28696
|
function select$1a$1(luvio, params) {
|
|
28631
28697
|
return select$1d$1();
|
|
28632
28698
|
}
|
|
28633
|
-
function keyBuilder$
|
|
28634
|
-
return keyBuilder$
|
|
28699
|
+
function keyBuilder$18$1(luvio, params) {
|
|
28700
|
+
return keyBuilder$1b(luvio, {
|
|
28635
28701
|
appId: params.urlParams.appId
|
|
28636
28702
|
});
|
|
28637
28703
|
}
|
|
@@ -28640,7 +28706,7 @@ function getResponseCacheKeys$D(storeKeyMap, luvio, resourceParams, response) {
|
|
|
28640
28706
|
}
|
|
28641
28707
|
function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
|
|
28642
28708
|
const { body } = response;
|
|
28643
|
-
const key = keyBuilder$
|
|
28709
|
+
const key = keyBuilder$18$1(luvio, resourceParams);
|
|
28644
28710
|
luvio.storeIngest(key, ingest$r$1, body);
|
|
28645
28711
|
const snapshot = luvio.storeLookup({
|
|
28646
28712
|
recordId: key,
|
|
@@ -28651,12 +28717,12 @@ function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
28651
28717
|
return snapshot;
|
|
28652
28718
|
}
|
|
28653
28719
|
function ingestError$q(luvio, params, error, snapshotRefresh) {
|
|
28654
|
-
const key = keyBuilder$
|
|
28720
|
+
const key = keyBuilder$18$1(luvio, params);
|
|
28655
28721
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
28656
28722
|
const storeMetadataParams = {
|
|
28657
28723
|
ttl: TTL$m,
|
|
28658
28724
|
namespace: keyPrefix$1,
|
|
28659
|
-
version: VERSION$
|
|
28725
|
+
version: VERSION$R$1,
|
|
28660
28726
|
representationName: RepresentationType$w
|
|
28661
28727
|
};
|
|
28662
28728
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -28684,9 +28750,9 @@ const getAppDetails_ConfigPropertyMetadata = [
|
|
|
28684
28750
|
];
|
|
28685
28751
|
const getAppDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$E, getAppDetails_ConfigPropertyMetadata);
|
|
28686
28752
|
const createResourceParams$D = /*#__PURE__*/ createResourceParams$Y(getAppDetails_ConfigPropertyMetadata);
|
|
28687
|
-
function keyBuilder$
|
|
28753
|
+
function keyBuilder$17$1(luvio, config) {
|
|
28688
28754
|
const resourceParams = createResourceParams$D(config);
|
|
28689
|
-
return keyBuilder$
|
|
28755
|
+
return keyBuilder$18$1(luvio, resourceParams);
|
|
28690
28756
|
}
|
|
28691
28757
|
function typeCheckConfig$I(untrustedConfig) {
|
|
28692
28758
|
const config = {};
|
|
@@ -28742,7 +28808,7 @@ function buildNetworkSnapshotCachePolicy$w(context, coercedAdapterRequestContext
|
|
|
28742
28808
|
function buildCachedSnapshotCachePolicy$w(context, storeLookup) {
|
|
28743
28809
|
const { luvio, config } = context;
|
|
28744
28810
|
const selector = {
|
|
28745
|
-
recordId: keyBuilder$
|
|
28811
|
+
recordId: keyBuilder$17$1(luvio, config),
|
|
28746
28812
|
node: adapterFragment$p(luvio, config),
|
|
28747
28813
|
variables: {},
|
|
28748
28814
|
};
|
|
@@ -28762,11 +28828,11 @@ const getAppDetailsAdapterFactory = (luvio) => function UiApi__getAppDetails(unt
|
|
|
28762
28828
|
buildCachedSnapshotCachePolicy$w, buildNetworkSnapshotCachePolicy$w);
|
|
28763
28829
|
};
|
|
28764
28830
|
|
|
28765
|
-
const VERSION$
|
|
28831
|
+
const VERSION$P$1 = "f43ef90ffde4d488414d6868e3aaefcb";
|
|
28766
28832
|
const select$19$1 = function DuplicateRuleFilterItemRepresentationSelect() {
|
|
28767
28833
|
return {
|
|
28768
28834
|
kind: 'Fragment',
|
|
28769
|
-
version: VERSION$
|
|
28835
|
+
version: VERSION$P$1,
|
|
28770
28836
|
private: [
|
|
28771
28837
|
'eTag'
|
|
28772
28838
|
],
|
|
@@ -28791,12 +28857,12 @@ const select$19$1 = function DuplicateRuleFilterItemRepresentationSelect() {
|
|
|
28791
28857
|
};
|
|
28792
28858
|
};
|
|
28793
28859
|
|
|
28794
|
-
const VERSION$
|
|
28860
|
+
const VERSION$O$1 = "320d7f254687278f2763d4b490dab3fb";
|
|
28795
28861
|
const select$18$1 = function DuplicateRuleFilterRepresentationSelect() {
|
|
28796
28862
|
const { selections: DuplicateRuleFilterItemRepresentation__selections, opaque: DuplicateRuleFilterItemRepresentation__opaque, } = select$19$1();
|
|
28797
28863
|
return {
|
|
28798
28864
|
kind: 'Fragment',
|
|
28799
|
-
version: VERSION$
|
|
28865
|
+
version: VERSION$O$1,
|
|
28800
28866
|
private: [
|
|
28801
28867
|
'eTag'
|
|
28802
28868
|
],
|
|
@@ -28819,11 +28885,11 @@ const select$18$1 = function DuplicateRuleFilterRepresentationSelect() {
|
|
|
28819
28885
|
};
|
|
28820
28886
|
};
|
|
28821
28887
|
|
|
28822
|
-
const VERSION$
|
|
28888
|
+
const VERSION$N$1 = "b47b44e260e5ce777beaf3da9088997c";
|
|
28823
28889
|
const select$17$1 = function MatchRuleRepresentationSelect() {
|
|
28824
28890
|
return {
|
|
28825
28891
|
kind: 'Fragment',
|
|
28826
|
-
version: VERSION$
|
|
28892
|
+
version: VERSION$N$1,
|
|
28827
28893
|
private: [
|
|
28828
28894
|
'eTag'
|
|
28829
28895
|
],
|
|
@@ -28849,13 +28915,13 @@ const select$17$1 = function MatchRuleRepresentationSelect() {
|
|
|
28849
28915
|
};
|
|
28850
28916
|
};
|
|
28851
28917
|
|
|
28852
|
-
const VERSION$
|
|
28918
|
+
const VERSION$M$1 = "bb83d7210bb1d7861b6188bc5f552617";
|
|
28853
28919
|
const select$16$1 = function DuplicateRuleRepresentationSelect() {
|
|
28854
28920
|
const { selections: DuplicateRuleFilterRepresentation__selections, opaque: DuplicateRuleFilterRepresentation__opaque, } = select$18$1();
|
|
28855
28921
|
const { selections: MatchRuleRepresentation__selections, opaque: MatchRuleRepresentation__opaque, } = select$17$1();
|
|
28856
28922
|
return {
|
|
28857
28923
|
kind: 'Fragment',
|
|
28858
|
-
version: VERSION$
|
|
28924
|
+
version: VERSION$M$1,
|
|
28859
28925
|
private: [
|
|
28860
28926
|
'eTag'
|
|
28861
28927
|
],
|
|
@@ -28903,7 +28969,7 @@ const select$16$1 = function DuplicateRuleRepresentationSelect() {
|
|
|
28903
28969
|
};
|
|
28904
28970
|
|
|
28905
28971
|
const TTL$k = 900000;
|
|
28906
|
-
const VERSION$
|
|
28972
|
+
const VERSION$L$1 = "be27ee99dc0dc43a1f66b8fe98dc532c";
|
|
28907
28973
|
const RepresentationType$u = 'DuplicatesConfigurationRepresentation';
|
|
28908
28974
|
function normalize$p(input, existing, path, luvio, store, timestamp) {
|
|
28909
28975
|
return input;
|
|
@@ -28912,7 +28978,7 @@ const select$15$1 = function DuplicatesConfigurationRepresentationSelect() {
|
|
|
28912
28978
|
const { selections: DuplicateRuleRepresentation__selections, opaque: DuplicateRuleRepresentation__opaque, } = select$16$1();
|
|
28913
28979
|
return {
|
|
28914
28980
|
kind: 'Fragment',
|
|
28915
|
-
version: VERSION$
|
|
28981
|
+
version: VERSION$L$1,
|
|
28916
28982
|
private: [
|
|
28917
28983
|
'eTag'
|
|
28918
28984
|
],
|
|
@@ -28952,7 +29018,7 @@ function equals$C(existing, incoming) {
|
|
|
28952
29018
|
const ingest$p$1 = function DuplicatesConfigurationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
28953
29019
|
const key = path.fullPath;
|
|
28954
29020
|
const ttlToUse = TTL$k;
|
|
28955
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$p, "UiApi", VERSION$
|
|
29021
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$p, "UiApi", VERSION$L$1, RepresentationType$u, equals$C);
|
|
28956
29022
|
return createLink$3(key);
|
|
28957
29023
|
};
|
|
28958
29024
|
function getTypeCacheKeys$v$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -28968,15 +29034,15 @@ function getTypeCacheKeys$v$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
28968
29034
|
function select$14$1(luvio, params) {
|
|
28969
29035
|
return select$15$1();
|
|
28970
29036
|
}
|
|
28971
|
-
function keyBuilder$
|
|
29037
|
+
function keyBuilder$16$1(luvio, params) {
|
|
28972
29038
|
return keyPrefix$1 + '::DuplicatesConfigurationRepresentation:(' + 'recordTypeId:' + params.queryParams.recordTypeId + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
28973
29039
|
}
|
|
28974
29040
|
function getResponseCacheKeys$C(storeKeyMap, luvio, resourceParams, response) {
|
|
28975
|
-
getTypeCacheKeys$v$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
29041
|
+
getTypeCacheKeys$v$1(storeKeyMap, luvio, response, () => keyBuilder$16$1(luvio, resourceParams));
|
|
28976
29042
|
}
|
|
28977
29043
|
function ingestSuccess$u(luvio, resourceParams, response, snapshotRefresh) {
|
|
28978
29044
|
const { body } = response;
|
|
28979
|
-
const key = keyBuilder$
|
|
29045
|
+
const key = keyBuilder$16$1(luvio, resourceParams);
|
|
28980
29046
|
luvio.storeIngest(key, ingest$p$1, body);
|
|
28981
29047
|
const snapshot = luvio.storeLookup({
|
|
28982
29048
|
recordId: key,
|
|
@@ -28987,12 +29053,12 @@ function ingestSuccess$u(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
28987
29053
|
return snapshot;
|
|
28988
29054
|
}
|
|
28989
29055
|
function ingestError$p(luvio, params, error, snapshotRefresh) {
|
|
28990
|
-
const key = keyBuilder$
|
|
29056
|
+
const key = keyBuilder$16$1(luvio, params);
|
|
28991
29057
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
28992
29058
|
const storeMetadataParams = {
|
|
28993
29059
|
ttl: TTL$k,
|
|
28994
29060
|
namespace: keyPrefix$1,
|
|
28995
|
-
version: VERSION$
|
|
29061
|
+
version: VERSION$L$1,
|
|
28996
29062
|
representationName: RepresentationType$u
|
|
28997
29063
|
};
|
|
28998
29064
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -29019,9 +29085,9 @@ const getDuplicateConfiguration_ConfigPropertyMetadata = [
|
|
|
29019
29085
|
];
|
|
29020
29086
|
const getDuplicateConfiguration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$D, getDuplicateConfiguration_ConfigPropertyMetadata);
|
|
29021
29087
|
const createResourceParams$C = /*#__PURE__*/ createResourceParams$Y(getDuplicateConfiguration_ConfigPropertyMetadata);
|
|
29022
|
-
function keyBuilder$
|
|
29088
|
+
function keyBuilder$15$1(luvio, config) {
|
|
29023
29089
|
const resourceParams = createResourceParams$C(config);
|
|
29024
|
-
return keyBuilder$
|
|
29090
|
+
return keyBuilder$16$1(luvio, resourceParams);
|
|
29025
29091
|
}
|
|
29026
29092
|
function typeCheckConfig$H(untrustedConfig) {
|
|
29027
29093
|
const config = {};
|
|
@@ -29076,7 +29142,7 @@ function buildNetworkSnapshotCachePolicy$v(context, coercedAdapterRequestContext
|
|
|
29076
29142
|
function buildCachedSnapshotCachePolicy$v(context, storeLookup) {
|
|
29077
29143
|
const { luvio, config } = context;
|
|
29078
29144
|
const selector = {
|
|
29079
|
-
recordId: keyBuilder$
|
|
29145
|
+
recordId: keyBuilder$15$1(luvio, config),
|
|
29080
29146
|
node: adapterFragment$o(luvio, config),
|
|
29081
29147
|
variables: {},
|
|
29082
29148
|
};
|
|
@@ -29116,19 +29182,19 @@ function coerceLayoutMode(value) {
|
|
|
29116
29182
|
return undefined;
|
|
29117
29183
|
}
|
|
29118
29184
|
|
|
29119
|
-
function keyBuilder$
|
|
29185
|
+
function keyBuilder$14$1(luvio, params) {
|
|
29120
29186
|
return keyPrefix$1 + '::RecordLayoutRepresentation:(' + 'formFactor:' + params.queryParams.formFactor + ',' + 'layoutType:' + params.queryParams.layoutType + ',' + 'mode:' + params.queryParams.mode + ',' + 'recordTypeId:' + params.queryParams.recordTypeId + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
29121
29187
|
}
|
|
29122
29188
|
function getResponseCacheKeys$B(storeKeyMap, luvio, resourceParams, response) {
|
|
29123
29189
|
getTypeCacheKeys$I$1(storeKeyMap, luvio, response);
|
|
29124
29190
|
}
|
|
29125
29191
|
function ingestError$o(luvio, params, error, snapshotRefresh) {
|
|
29126
|
-
const key = keyBuilder$
|
|
29192
|
+
const key = keyBuilder$14$1(luvio, params);
|
|
29127
29193
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
29128
29194
|
const storeMetadataParams = {
|
|
29129
29195
|
ttl: TTL$t,
|
|
29130
29196
|
namespace: keyPrefix$1,
|
|
29131
|
-
version: VERSION$
|
|
29197
|
+
version: VERSION$11$1,
|
|
29132
29198
|
representationName: RepresentationType$I
|
|
29133
29199
|
};
|
|
29134
29200
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -29150,7 +29216,7 @@ function createResourceRequest$E(config) {
|
|
|
29150
29216
|
|
|
29151
29217
|
function onFetchResponseSuccess$r(luvio, config, resourceParams, response) {
|
|
29152
29218
|
const { body } = response;
|
|
29153
|
-
const key = keyBuilder$
|
|
29219
|
+
const key = keyBuilder$1G(luvio, config);
|
|
29154
29220
|
luvio.storeIngest(key, ingest$C$1, body);
|
|
29155
29221
|
const snapshot = luvio.storeLookup({
|
|
29156
29222
|
recordId: key,
|
|
@@ -29199,7 +29265,7 @@ function validateAdapterConfig$I(untrustedConfig, _configPropertyNames) {
|
|
|
29199
29265
|
function buildCachedSnapshotCachePolicy$u(context, storeLookup) {
|
|
29200
29266
|
const { luvio, config } = context;
|
|
29201
29267
|
const selector = {
|
|
29202
|
-
recordId: keyBuilder$
|
|
29268
|
+
recordId: keyBuilder$1G(luvio, config),
|
|
29203
29269
|
node: select$1x(),
|
|
29204
29270
|
variables: {},
|
|
29205
29271
|
};
|
|
@@ -29287,7 +29353,7 @@ function createResourceRequest$D(config) {
|
|
|
29287
29353
|
|
|
29288
29354
|
function buildCachedSnapshot$4(luvio, config) {
|
|
29289
29355
|
const { objectApiName, recordTypeId, layoutType, mode } = config;
|
|
29290
|
-
const key = keyBuilder$
|
|
29356
|
+
const key = keyBuilder$1F(luvio, {
|
|
29291
29357
|
apiName: objectApiName,
|
|
29292
29358
|
recordTypeId,
|
|
29293
29359
|
layoutType,
|
|
@@ -29342,7 +29408,7 @@ function onFetchResponseError$q(luvio, config, key, error) {
|
|
|
29342
29408
|
}
|
|
29343
29409
|
function prepareRequest$3(luvio, config) {
|
|
29344
29410
|
const { recordTypeId, layoutType, mode, objectApiName } = config;
|
|
29345
|
-
const key = keyBuilder$
|
|
29411
|
+
const key = keyBuilder$1F(luvio, {
|
|
29346
29412
|
apiName: objectApiName,
|
|
29347
29413
|
recordTypeId,
|
|
29348
29414
|
layoutType,
|
|
@@ -29407,7 +29473,7 @@ function buildCachedSnapshotCachePolicy$t(context, storeLookup) {
|
|
|
29407
29473
|
const { config, luvio } = context;
|
|
29408
29474
|
const { objectApiName, recordTypeId, layoutType, mode } = config;
|
|
29409
29475
|
const selector = {
|
|
29410
|
-
recordId: keyBuilder$
|
|
29476
|
+
recordId: keyBuilder$1F(luvio, {
|
|
29411
29477
|
apiName: objectApiName,
|
|
29412
29478
|
recordTypeId,
|
|
29413
29479
|
layoutType,
|
|
@@ -29459,8 +29525,8 @@ const getLayoutUserStateAdapterFactory = (luvio) => function UiApi__getLayoutUse
|
|
|
29459
29525
|
buildCachedSnapshotCachePolicy$t, buildNetworkSnapshotCachePolicy$t);
|
|
29460
29526
|
};
|
|
29461
29527
|
|
|
29462
|
-
function keyBuilder$
|
|
29463
|
-
return keyBuilder$
|
|
29528
|
+
function keyBuilder$13$1(luvio, params) {
|
|
29529
|
+
return keyBuilder$1V(luvio, {
|
|
29464
29530
|
objectApiName: params.urlParams.objectApiName,
|
|
29465
29531
|
listViewApiName: params.urlParams.listViewApiName,
|
|
29466
29532
|
type: params.urlParams.listViewApiName === '__Recent' ? 'mru' : 'listView',
|
|
@@ -29470,19 +29536,12 @@ function keyBuilder$14$1(luvio, params) {
|
|
|
29470
29536
|
function select$13$1(luvio, params) {
|
|
29471
29537
|
return select$1J();
|
|
29472
29538
|
}
|
|
29473
|
-
function keyBuilder$13$1(luvio, params) {
|
|
29474
|
-
return keyBuilder$1W(luvio, {
|
|
29475
|
-
objectApiName: params.urlParams.objectApiName,
|
|
29476
|
-
listViewApiName: params.urlParams.listViewApiName,
|
|
29477
|
-
type: "listView"
|
|
29478
|
-
});
|
|
29479
|
-
}
|
|
29480
29539
|
function getResponseCacheKeys$z(storeKeyMap, luvio, resourceParams, response) {
|
|
29481
29540
|
getTypeCacheKeys$S$1(storeKeyMap, luvio, response);
|
|
29482
29541
|
}
|
|
29483
29542
|
function ingestSuccess$t(luvio, resourceParams, response, snapshotRefresh) {
|
|
29484
29543
|
const { body } = response;
|
|
29485
|
-
const key = keyBuilder$
|
|
29544
|
+
const key = keyBuilder$13$1(luvio, resourceParams);
|
|
29486
29545
|
luvio.storeIngest(key, ingest$L$1, body);
|
|
29487
29546
|
const snapshot = luvio.storeLookup({
|
|
29488
29547
|
recordId: key,
|
|
@@ -29493,12 +29552,12 @@ function ingestSuccess$t(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
29493
29552
|
return snapshot;
|
|
29494
29553
|
}
|
|
29495
29554
|
function ingestError$n(luvio, params, error, snapshotRefresh) {
|
|
29496
|
-
const key = keyBuilder$
|
|
29555
|
+
const key = keyBuilder$13$1(luvio, params);
|
|
29497
29556
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
29498
29557
|
const storeMetadataParams = {
|
|
29499
29558
|
ttl: TTL$y,
|
|
29500
29559
|
namespace: keyPrefix$1,
|
|
29501
|
-
version: VERSION$
|
|
29560
|
+
version: VERSION$1c$1,
|
|
29502
29561
|
representationName: RepresentationType$R
|
|
29503
29562
|
};
|
|
29504
29563
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -29518,10 +29577,7 @@ function createResourceRequest$C(config) {
|
|
|
29518
29577
|
};
|
|
29519
29578
|
}
|
|
29520
29579
|
|
|
29521
|
-
|
|
29522
|
-
|
|
29523
|
-
const nonCachedErrors$5 = ObjectCreate$1$1(null);
|
|
29524
|
-
function createChildResourceParams$5(resourceParams) {
|
|
29580
|
+
function createChildResourceParams$7(resourceParams) {
|
|
29525
29581
|
const childConfigs = [];
|
|
29526
29582
|
const { queryParams } = resourceParams;
|
|
29527
29583
|
const { names = [] } = queryParams;
|
|
@@ -29536,6 +29592,11 @@ function createChildResourceParams$5(resourceParams) {
|
|
|
29536
29592
|
}
|
|
29537
29593
|
return childConfigs;
|
|
29538
29594
|
}
|
|
29595
|
+
|
|
29596
|
+
const nonCachedErrors$5 = ObjectCreate$1$1(null);
|
|
29597
|
+
function createChildResourceParams$6(resourceParams) {
|
|
29598
|
+
return createChildResourceParams$7(resourceParams);
|
|
29599
|
+
}
|
|
29539
29600
|
function selectChildResourceParams$5(luvio, childResources, resourceParams) {
|
|
29540
29601
|
const envelopeBodyPath = 'result';
|
|
29541
29602
|
const envelopeStatusCodePath = 'statusCode';
|
|
@@ -29546,21 +29607,11 @@ function selectChildResourceParams$5(luvio, childResources, resourceParams) {
|
|
|
29546
29607
|
synthetic: true,
|
|
29547
29608
|
read: (reader) => {
|
|
29548
29609
|
// Top-level 404 lookup
|
|
29549
|
-
const
|
|
29550
|
-
|
|
29551
|
-
node: {
|
|
29552
|
-
kind: 'Fragment',
|
|
29553
|
-
private: [],
|
|
29554
|
-
version: VERSION$L$1,
|
|
29555
|
-
},
|
|
29556
|
-
variables: {},
|
|
29557
|
-
});
|
|
29558
|
-
if (compositeSnapshot.state === 'Error' &&
|
|
29559
|
-
compositeSnapshot.error.errorType === 'fetchResponse' &&
|
|
29560
|
-
compositeSnapshot.error.status === 404) {
|
|
29610
|
+
const result = reader.storeLookup(keyBuilder$12$1(luvio, resourceParams));
|
|
29611
|
+
if (result.state === reader.StoreResolveResultState.Error && result.value.status === 404) {
|
|
29561
29612
|
return {
|
|
29562
|
-
state:
|
|
29563
|
-
value:
|
|
29613
|
+
state: 'Error',
|
|
29614
|
+
value: result.value,
|
|
29564
29615
|
};
|
|
29565
29616
|
}
|
|
29566
29617
|
const sink = {};
|
|
@@ -29585,7 +29636,6 @@ function selectChildResourceParams$5(luvio, childResources, resourceParams) {
|
|
|
29585
29636
|
case 'Stale':
|
|
29586
29637
|
reader.markStale();
|
|
29587
29638
|
// Stale needs envelope bodies filled in so don't break
|
|
29588
|
-
// eslint-disable-next-line no-fallthrough
|
|
29589
29639
|
case 'Fulfilled':
|
|
29590
29640
|
reader.enterPath(envelopeStatusCodePath);
|
|
29591
29641
|
reader.assignScalar(envelopeStatusCodePath, childSink, 200);
|
|
@@ -29595,7 +29645,6 @@ function selectChildResourceParams$5(luvio, childResources, resourceParams) {
|
|
|
29595
29645
|
reader.exitPath();
|
|
29596
29646
|
break;
|
|
29597
29647
|
case 'Error':
|
|
29598
|
-
// eslint-disable-next-line no-case-declarations
|
|
29599
29648
|
const childSnapshotError = childSnapshot.error;
|
|
29600
29649
|
reader.enterPath(envelopeStatusCodePath);
|
|
29601
29650
|
reader.assignScalar(envelopeStatusCodePath, childSink, childSnapshotError.status);
|
|
@@ -29620,8 +29669,7 @@ function selectChildResourceParams$5(luvio, childResources, resourceParams) {
|
|
|
29620
29669
|
// snapshot will look like an Unfulfilled snapshot
|
|
29621
29670
|
// instead of an error snapshot).
|
|
29622
29671
|
const nonCachedError = nonCachedErrors$5[childKey];
|
|
29623
|
-
if (nonCachedError === undefined ||
|
|
29624
|
-
nonCachedError.expiration < reader.getTimeStamp()) {
|
|
29672
|
+
if (nonCachedError === undefined || nonCachedError.expiration < reader.getTimeStamp()) {
|
|
29625
29673
|
reader.markMissingLink(childKey);
|
|
29626
29674
|
}
|
|
29627
29675
|
else {
|
|
@@ -29649,29 +29697,21 @@ function selectChildResourceParams$5(luvio, childResources, resourceParams) {
|
|
|
29649
29697
|
reader.exitPath();
|
|
29650
29698
|
}
|
|
29651
29699
|
reader.assignNonScalar(sink, envelopePath, results);
|
|
29652
|
-
deepFreeze(sink);
|
|
29653
29700
|
reader.exitPath();
|
|
29654
29701
|
return sink;
|
|
29655
|
-
}
|
|
29702
|
+
}
|
|
29656
29703
|
};
|
|
29657
29704
|
}
|
|
29658
29705
|
function select$12$1(luvio, resourceParams) {
|
|
29659
|
-
const childResources = createChildResourceParams$
|
|
29706
|
+
const childResources = createChildResourceParams$6(resourceParams);
|
|
29660
29707
|
return selectChildResourceParams$5(luvio, childResources, resourceParams);
|
|
29661
29708
|
}
|
|
29662
29709
|
function keyBuilder$12$1(luvio, params) {
|
|
29663
|
-
return
|
|
29664
|
-
'::ListInfoBatchRepresentation:(' +
|
|
29665
|
-
'ids:' +
|
|
29666
|
-
params.queryParams.ids +
|
|
29667
|
-
',' +
|
|
29668
|
-
'names:' +
|
|
29669
|
-
params.queryParams.names +
|
|
29670
|
-
')');
|
|
29710
|
+
return keyPrefix$1 + '::ListInfoBatchRepresentation:(' + 'ids:' + params.queryParams.ids + ',' + 'names:' + params.queryParams.names + ')';
|
|
29671
29711
|
}
|
|
29672
29712
|
function getResponseCacheKeys$y(keys, luvio, resourceParams, response) {
|
|
29673
29713
|
const childEnvelopes = response.results;
|
|
29674
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
29714
|
+
const childResourceParamsArray = createChildResourceParams$6(resourceParams);
|
|
29675
29715
|
// get children keys
|
|
29676
29716
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
29677
29717
|
const childResourceParams = childResourceParamsArray[index];
|
|
@@ -29684,13 +29724,13 @@ function getResponseCacheKeys$y(keys, luvio, resourceParams, response) {
|
|
|
29684
29724
|
const childKey = keyBuilder$13$1(luvio, childResourceParams);
|
|
29685
29725
|
keys.set(childKey, {
|
|
29686
29726
|
namespace: keyPrefix$1,
|
|
29687
|
-
representationName:
|
|
29688
|
-
mergeable: false
|
|
29727
|
+
representationName: RepresentationType$R,
|
|
29728
|
+
mergeable: false
|
|
29689
29729
|
});
|
|
29690
29730
|
}
|
|
29691
29731
|
}
|
|
29692
29732
|
}
|
|
29693
|
-
function ingestSuccessChildResourceParams$
|
|
29733
|
+
function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, childEnvelopes) {
|
|
29694
29734
|
const childSnapshotDataResponses = [];
|
|
29695
29735
|
let seenRecords = new StoreKeySet();
|
|
29696
29736
|
let snapshotState = 'Fulfilled';
|
|
@@ -29709,8 +29749,8 @@ function ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, chi
|
|
|
29709
29749
|
headers: {},
|
|
29710
29750
|
};
|
|
29711
29751
|
const childSnapshot = ingestSuccess$t(luvio, childResourceParams, childResponse);
|
|
29712
|
-
if (childSnapshot.state ===
|
|
29713
|
-
snapshotState =
|
|
29752
|
+
if (childSnapshot.state === "Stale") {
|
|
29753
|
+
snapshotState = "Stale";
|
|
29714
29754
|
}
|
|
29715
29755
|
seenRecords.merge(childSnapshot.seenRecords);
|
|
29716
29756
|
seenRecords.add(childSnapshot.recordId);
|
|
@@ -29718,6 +29758,7 @@ function ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, chi
|
|
|
29718
29758
|
statusCode: 200,
|
|
29719
29759
|
result: childSnapshot.data,
|
|
29720
29760
|
};
|
|
29761
|
+
deepFreeze(childValue);
|
|
29721
29762
|
ArrayPrototypePush$1.call(childSnapshotDataResponses, childValue);
|
|
29722
29763
|
}
|
|
29723
29764
|
else {
|
|
@@ -29728,7 +29769,7 @@ function ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, chi
|
|
|
29728
29769
|
ok: false,
|
|
29729
29770
|
statusText: childStatusCodeText,
|
|
29730
29771
|
headers: {},
|
|
29731
|
-
errorType: 'fetchResponse'
|
|
29772
|
+
errorType: 'fetchResponse'
|
|
29732
29773
|
};
|
|
29733
29774
|
ingestError$n(luvio, childResourceParams, childResponse);
|
|
29734
29775
|
seenRecords.add(childKey);
|
|
@@ -29736,31 +29777,28 @@ function ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, chi
|
|
|
29736
29777
|
statusCode: childStatusCode,
|
|
29737
29778
|
result: childBody,
|
|
29738
29779
|
};
|
|
29780
|
+
deepFreeze(childValue);
|
|
29739
29781
|
ArrayPrototypePush$1.call(childSnapshotDataResponses, childValue);
|
|
29740
29782
|
}
|
|
29741
29783
|
// track non-cached responses so rebuilds work properly
|
|
29742
29784
|
if (childStatusCode !== 404 && childStatusCode !== 200) {
|
|
29743
|
-
nonCachedErrors$5[childKey] = {
|
|
29744
|
-
expiration: now + TTL$y,
|
|
29745
|
-
response: childBody,
|
|
29746
|
-
status: childStatusCode,
|
|
29747
|
-
};
|
|
29785
|
+
nonCachedErrors$5[childKey] = { expiration: now + TTL$y, response: childBody, status: childStatusCode };
|
|
29748
29786
|
}
|
|
29749
29787
|
else {
|
|
29750
29788
|
delete nonCachedErrors$5[childKey];
|
|
29751
29789
|
}
|
|
29752
29790
|
}
|
|
29753
29791
|
const childSnapshotData = {
|
|
29754
|
-
results: childSnapshotDataResponses
|
|
29792
|
+
results: childSnapshotDataResponses
|
|
29755
29793
|
};
|
|
29756
29794
|
deepFreeze(childSnapshotData);
|
|
29757
29795
|
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
29758
29796
|
}
|
|
29759
29797
|
function ingestSuccess$s(luvio, resourceParams, response, snapshotRefresh) {
|
|
29760
29798
|
const childEnvelopes = response.body.results;
|
|
29761
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
29799
|
+
const childResourceParamsArray = createChildResourceParams$6(resourceParams);
|
|
29762
29800
|
const key = keyBuilder$12$1(luvio, resourceParams);
|
|
29763
|
-
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$
|
|
29801
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, childEnvelopes);
|
|
29764
29802
|
const syntheticSnapshot = {
|
|
29765
29803
|
recordId: key,
|
|
29766
29804
|
data: childSnapshotData,
|
|
@@ -29772,7 +29810,7 @@ function ingestSuccess$s(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
29772
29810
|
variables: {},
|
|
29773
29811
|
},
|
|
29774
29812
|
refresh: snapshotRefresh,
|
|
29775
|
-
variables: {}
|
|
29813
|
+
variables: {}
|
|
29776
29814
|
};
|
|
29777
29815
|
// evict top level composite record from the store. This covers the case where a previous resource request returned a 404.
|
|
29778
29816
|
luvio.storeEvict(key);
|
|
@@ -29794,6 +29832,7 @@ function createResourceRequest$B(config) {
|
|
|
29794
29832
|
urlParams: {},
|
|
29795
29833
|
queryParams: config.queryParams,
|
|
29796
29834
|
headers,
|
|
29835
|
+
priority: 'normal',
|
|
29797
29836
|
};
|
|
29798
29837
|
}
|
|
29799
29838
|
|
|
@@ -29890,7 +29929,7 @@ const getListInfoByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidati
|
|
|
29890
29929
|
const createResourceParams$z = /*#__PURE__*/ createResourceParams$Y(getListInfoByName_ConfigPropertyMetadata);
|
|
29891
29930
|
function keyBuilder$10$1(luvio, config) {
|
|
29892
29931
|
const resourceParams = createResourceParams$z(config);
|
|
29893
|
-
return keyBuilder$
|
|
29932
|
+
return keyBuilder$13$1(luvio, resourceParams);
|
|
29894
29933
|
}
|
|
29895
29934
|
function typeCheckConfig$D(untrustedConfig) {
|
|
29896
29935
|
const config = {};
|
|
@@ -30678,8 +30717,8 @@ const getNavItemsAdapterFactory = (luvio) => function UiApi__getNavItems(untrust
|
|
|
30678
30717
|
};
|
|
30679
30718
|
|
|
30680
30719
|
const nonCachedErrors$4 = ObjectCreate$1$1(null);
|
|
30681
|
-
function createChildResourceParams$
|
|
30682
|
-
|
|
30720
|
+
function createChildResourceParams$5(resourceParams) {
|
|
30721
|
+
let childConfigs = [];
|
|
30683
30722
|
for (let index = 0, len = resourceParams.urlParams.objectApiNames.length; index < len; index += 1) {
|
|
30684
30723
|
const item = resourceParams.urlParams.objectApiNames[index];
|
|
30685
30724
|
childConfigs.push({
|
|
@@ -30714,7 +30753,7 @@ function selectChildResourceParams$4(luvio, childResources, resourceParams) {
|
|
|
30714
30753
|
reader.enterPath(i);
|
|
30715
30754
|
reader.enterPath(envelopeBodyPath);
|
|
30716
30755
|
const childResource = childResources[i];
|
|
30717
|
-
const childKey = keyBuilder$
|
|
30756
|
+
const childKey = keyBuilder$1I(luvio, childResource);
|
|
30718
30757
|
const childFragment = select$1y();
|
|
30719
30758
|
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
30720
30759
|
const childSnapshot = reader.read({
|
|
@@ -30796,7 +30835,7 @@ function selectChildResourceParams$4(luvio, childResources, resourceParams) {
|
|
|
30796
30835
|
};
|
|
30797
30836
|
}
|
|
30798
30837
|
function select$W$1(luvio, resourceParams) {
|
|
30799
|
-
const childResources = createChildResourceParams$
|
|
30838
|
+
const childResources = createChildResourceParams$5(resourceParams);
|
|
30800
30839
|
return selectChildResourceParams$4(luvio, childResources, resourceParams);
|
|
30801
30840
|
}
|
|
30802
30841
|
function keyBuilder$W$1(luvio, params) {
|
|
@@ -30804,7 +30843,7 @@ function keyBuilder$W$1(luvio, params) {
|
|
|
30804
30843
|
}
|
|
30805
30844
|
function getResponseCacheKeys$u(keys, luvio, resourceParams, response) {
|
|
30806
30845
|
const childEnvelopes = response.results;
|
|
30807
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
30846
|
+
const childResourceParamsArray = createChildResourceParams$5(resourceParams);
|
|
30808
30847
|
// get children keys
|
|
30809
30848
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
30810
30849
|
const childResourceParams = childResourceParamsArray[index];
|
|
@@ -30814,7 +30853,7 @@ function getResponseCacheKeys$u(keys, luvio, resourceParams, response) {
|
|
|
30814
30853
|
getResponseCacheKeys$Q(keys, luvio, childResourceParams, childBody);
|
|
30815
30854
|
}
|
|
30816
30855
|
else if (childStatusCode === 404) {
|
|
30817
|
-
const childKey = keyBuilder$
|
|
30856
|
+
const childKey = keyBuilder$1I(luvio, childResourceParams);
|
|
30818
30857
|
keys.set(childKey, {
|
|
30819
30858
|
namespace: keyPrefix$1,
|
|
30820
30859
|
representationName: RepresentationType$J,
|
|
@@ -30823,14 +30862,14 @@ function getResponseCacheKeys$u(keys, luvio, resourceParams, response) {
|
|
|
30823
30862
|
}
|
|
30824
30863
|
}
|
|
30825
30864
|
}
|
|
30826
|
-
function ingestSuccessChildResourceParams$
|
|
30865
|
+
function ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, childEnvelopes) {
|
|
30827
30866
|
const childSnapshotDataResponses = [];
|
|
30828
30867
|
let seenRecords = new StoreKeySet();
|
|
30829
30868
|
let snapshotState = 'Fulfilled';
|
|
30830
30869
|
const now = Date.now();
|
|
30831
30870
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
30832
30871
|
const childResourceParams = childResourceParamsArray[index];
|
|
30833
|
-
const childKey = keyBuilder$
|
|
30872
|
+
const childKey = keyBuilder$1I(luvio, childResourceParams);
|
|
30834
30873
|
const result = childEnvelopes[index];
|
|
30835
30874
|
const { statusCode: childStatusCode, result: childBody } = result;
|
|
30836
30875
|
if (childStatusCode === 200) {
|
|
@@ -30889,9 +30928,9 @@ function ingestSuccessChildResourceParams$3(luvio, childResourceParamsArray, chi
|
|
|
30889
30928
|
}
|
|
30890
30929
|
function ingestSuccess$o(luvio, resourceParams, response, snapshotRefresh) {
|
|
30891
30930
|
const childEnvelopes = response.body.results;
|
|
30892
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
30931
|
+
const childResourceParamsArray = createChildResourceParams$5(resourceParams);
|
|
30893
30932
|
const key = keyBuilder$W$1(luvio, resourceParams);
|
|
30894
|
-
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$
|
|
30933
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, childEnvelopes);
|
|
30895
30934
|
const syntheticSnapshot = {
|
|
30896
30935
|
recordId: key,
|
|
30897
30936
|
data: childSnapshotData,
|
|
@@ -32840,7 +32879,7 @@ const getRecords_ConfigPropertyNames = {
|
|
|
32840
32879
|
const adapterName$q = 'getRecords';
|
|
32841
32880
|
function keyBuilder$N$1(luvio, config) {
|
|
32842
32881
|
const resourceParams = createResourceParams$V(config);
|
|
32843
|
-
return keyBuilder$
|
|
32882
|
+
return keyBuilder$1S(luvio, resourceParams);
|
|
32844
32883
|
}
|
|
32845
32884
|
function onFetchResponseError$h(luvio, config, resourceParams, response) {
|
|
32846
32885
|
const snapshot = ingestError$G(luvio, resourceParams, response, {
|
|
@@ -33099,8 +33138,8 @@ function createResourceRequest$s(config) {
|
|
|
33099
33138
|
}
|
|
33100
33139
|
|
|
33101
33140
|
const nonCachedErrors$3 = ObjectCreate$1$1(null);
|
|
33102
|
-
function createChildResourceParams$
|
|
33103
|
-
|
|
33141
|
+
function createChildResourceParams$4(resourceParams) {
|
|
33142
|
+
let childConfigs = [];
|
|
33104
33143
|
for (let index = 0, len = resourceParams.urlParams.relatedListNames.length; index < len; index += 1) {
|
|
33105
33144
|
const item = resourceParams.urlParams.relatedListNames[index];
|
|
33106
33145
|
childConfigs.push({
|
|
@@ -33221,7 +33260,7 @@ function selectChildResourceParams$3(luvio, childResources, resourceParams) {
|
|
|
33221
33260
|
};
|
|
33222
33261
|
}
|
|
33223
33262
|
function select$y$1(luvio, resourceParams) {
|
|
33224
|
-
const childResources = createChildResourceParams$
|
|
33263
|
+
const childResources = createChildResourceParams$4(resourceParams);
|
|
33225
33264
|
return selectChildResourceParams$3(luvio, childResources, resourceParams);
|
|
33226
33265
|
}
|
|
33227
33266
|
function keyBuilder$K$1(luvio, params) {
|
|
@@ -33229,7 +33268,7 @@ function keyBuilder$K$1(luvio, params) {
|
|
|
33229
33268
|
}
|
|
33230
33269
|
function getResponseCacheKeys$o(keys, luvio, resourceParams, response) {
|
|
33231
33270
|
const childEnvelopes = response.results;
|
|
33232
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
33271
|
+
const childResourceParamsArray = createChildResourceParams$4(resourceParams);
|
|
33233
33272
|
// get children keys
|
|
33234
33273
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
33235
33274
|
const childResourceParams = childResourceParamsArray[index];
|
|
@@ -33248,7 +33287,7 @@ function getResponseCacheKeys$o(keys, luvio, resourceParams, response) {
|
|
|
33248
33287
|
}
|
|
33249
33288
|
}
|
|
33250
33289
|
}
|
|
33251
|
-
function ingestSuccessChildResourceParams$
|
|
33290
|
+
function ingestSuccessChildResourceParams$3(luvio, childResourceParamsArray, childEnvelopes) {
|
|
33252
33291
|
const childSnapshotDataResponses = [];
|
|
33253
33292
|
let seenRecords = new StoreKeySet();
|
|
33254
33293
|
let snapshotState = 'Fulfilled';
|
|
@@ -33313,9 +33352,9 @@ function ingestSuccessChildResourceParams$2(luvio, childResourceParamsArray, chi
|
|
|
33313
33352
|
}
|
|
33314
33353
|
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
33315
33354
|
const childEnvelopes = response.body.results;
|
|
33316
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
33355
|
+
const childResourceParamsArray = createChildResourceParams$4(resourceParams);
|
|
33317
33356
|
const key = keyBuilder$K$1(luvio, resourceParams);
|
|
33318
|
-
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$
|
|
33357
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$3(luvio, childResourceParamsArray, childEnvelopes);
|
|
33319
33358
|
const syntheticSnapshot = {
|
|
33320
33359
|
recordId: key,
|
|
33321
33360
|
data: childSnapshotData,
|
|
@@ -33715,7 +33754,7 @@ function createResourceRequest$q(config) {
|
|
|
33715
33754
|
};
|
|
33716
33755
|
}
|
|
33717
33756
|
|
|
33718
|
-
function createChildResourceParams$
|
|
33757
|
+
function createChildResourceParams$3(resourceParams) {
|
|
33719
33758
|
const childConfigs = [];
|
|
33720
33759
|
for (let index = 0, len = resourceParams.urlParams.relatedListNames.length; index < len; index += 1) {
|
|
33721
33760
|
const item = resourceParams.urlParams.relatedListNames[index];
|
|
@@ -33842,7 +33881,7 @@ function selectChildResourceParams$2(luvio, childResources, resourceParams) {
|
|
|
33842
33881
|
};
|
|
33843
33882
|
}
|
|
33844
33883
|
function select$v$1(luvio, resourceParams) {
|
|
33845
|
-
const childResources = createChildResourceParams$
|
|
33884
|
+
const childResources = createChildResourceParams$3(resourceParams);
|
|
33846
33885
|
return selectChildResourceParams$2(luvio, childResources, resourceParams);
|
|
33847
33886
|
}
|
|
33848
33887
|
function keyBuilder$F$1(luvio, params) {
|
|
@@ -33850,7 +33889,7 @@ function keyBuilder$F$1(luvio, params) {
|
|
|
33850
33889
|
}
|
|
33851
33890
|
function getResponseCacheKeys$m(keys, luvio, resourceParams, response) {
|
|
33852
33891
|
const childEnvelopes = response.results;
|
|
33853
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
33892
|
+
const childResourceParamsArray = createChildResourceParams$3(resourceParams);
|
|
33854
33893
|
// get children keys
|
|
33855
33894
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
33856
33895
|
const childResourceParams = childResourceParamsArray[index];
|
|
@@ -33869,7 +33908,7 @@ function getResponseCacheKeys$m(keys, luvio, resourceParams, response) {
|
|
|
33869
33908
|
}
|
|
33870
33909
|
}
|
|
33871
33910
|
}
|
|
33872
|
-
function ingestSuccessChildResourceParams$
|
|
33911
|
+
function ingestSuccessChildResourceParams$2(luvio, childResourceParamsArray, childEnvelopes) {
|
|
33873
33912
|
const childSnapshotDataResponses = [];
|
|
33874
33913
|
let seenRecords = new StoreKeySet();
|
|
33875
33914
|
let snapshotState = 'Fulfilled';
|
|
@@ -33935,9 +33974,9 @@ function ingestSuccessChildResourceParams$1(luvio, childResourceParamsArray, chi
|
|
|
33935
33974
|
}
|
|
33936
33975
|
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
33937
33976
|
const childEnvelopes = response.body.results;
|
|
33938
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
33977
|
+
const childResourceParamsArray = createChildResourceParams$3(resourceParams);
|
|
33939
33978
|
const key = keyBuilder$F$1(luvio, resourceParams);
|
|
33940
|
-
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$
|
|
33979
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$2(luvio, childResourceParamsArray, childEnvelopes);
|
|
33941
33980
|
const syntheticSnapshot = {
|
|
33942
33981
|
recordId: key,
|
|
33943
33982
|
data: childSnapshotData,
|
|
@@ -34595,8 +34634,8 @@ function createResourceRequest$m(config) {
|
|
|
34595
34634
|
}
|
|
34596
34635
|
|
|
34597
34636
|
const nonCachedErrors$1 = ObjectCreate$1$1(null);
|
|
34598
|
-
function createChildResourceParams$
|
|
34599
|
-
|
|
34637
|
+
function createChildResourceParams$2(resourceParams) {
|
|
34638
|
+
let childConfigs = [];
|
|
34600
34639
|
for (let index = 0, len = resourceParams.urlParams.preferencesIds.length; index < len; index += 1) {
|
|
34601
34640
|
const item = resourceParams.urlParams.preferencesIds[index];
|
|
34602
34641
|
childConfigs.push({
|
|
@@ -34713,7 +34752,7 @@ function selectChildResourceParams$1(luvio, childResources, resourceParams) {
|
|
|
34713
34752
|
};
|
|
34714
34753
|
}
|
|
34715
34754
|
function select$p$1(luvio, resourceParams) {
|
|
34716
|
-
const childResources = createChildResourceParams$
|
|
34755
|
+
const childResources = createChildResourceParams$2(resourceParams);
|
|
34717
34756
|
return selectChildResourceParams$1(luvio, childResources, resourceParams);
|
|
34718
34757
|
}
|
|
34719
34758
|
function keyBuilder$x$1(luvio, params) {
|
|
@@ -34721,7 +34760,7 @@ function keyBuilder$x$1(luvio, params) {
|
|
|
34721
34760
|
}
|
|
34722
34761
|
function getResponseCacheKeys$i(keys, luvio, resourceParams, response) {
|
|
34723
34762
|
const childEnvelopes = response.results;
|
|
34724
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
34763
|
+
const childResourceParamsArray = createChildResourceParams$2(resourceParams);
|
|
34725
34764
|
// get children keys
|
|
34726
34765
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
34727
34766
|
const childResourceParams = childResourceParamsArray[index];
|
|
@@ -34740,7 +34779,7 @@ function getResponseCacheKeys$i(keys, luvio, resourceParams, response) {
|
|
|
34740
34779
|
}
|
|
34741
34780
|
}
|
|
34742
34781
|
}
|
|
34743
|
-
function ingestSuccessChildResourceParams$
|
|
34782
|
+
function ingestSuccessChildResourceParams$1(luvio, childResourceParamsArray, childEnvelopes) {
|
|
34744
34783
|
const childSnapshotDataResponses = [];
|
|
34745
34784
|
let seenRecords = new StoreKeySet();
|
|
34746
34785
|
let snapshotState = 'Fulfilled';
|
|
@@ -34806,9 +34845,9 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
|
|
|
34806
34845
|
}
|
|
34807
34846
|
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
34808
34847
|
const childEnvelopes = response.body.results;
|
|
34809
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
34848
|
+
const childResourceParamsArray = createChildResourceParams$2(resourceParams);
|
|
34810
34849
|
const key = keyBuilder$x$1(luvio, resourceParams);
|
|
34811
|
-
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$
|
|
34850
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$1(luvio, childResourceParamsArray, childEnvelopes);
|
|
34812
34851
|
const syntheticSnapshot = {
|
|
34813
34852
|
recordId: key,
|
|
34814
34853
|
data: childSnapshotData,
|
|
@@ -35502,7 +35541,7 @@ const dynamicSelect$4 = function dynamicRelatedListRecordCollectionRepresentatio
|
|
|
35502
35541
|
reader.readScalar('count', metadataProperties, sink);
|
|
35503
35542
|
reader.exitPath();
|
|
35504
35543
|
reader.enterPath('fields');
|
|
35505
|
-
reader.readScalarPlural('fields', source, sink);
|
|
35544
|
+
reader.readScalarPlural('fields', source, sink, true);
|
|
35506
35545
|
reader.exitPath();
|
|
35507
35546
|
reader.enterPath('listInfoETag');
|
|
35508
35547
|
reader.readScalar('listInfoETag', source, sink);
|
|
@@ -35515,10 +35554,10 @@ const dynamicSelect$4 = function dynamicRelatedListRecordCollectionRepresentatio
|
|
|
35515
35554
|
}, source, sink);
|
|
35516
35555
|
reader.exitPath();
|
|
35517
35556
|
reader.enterPath('optionalFields');
|
|
35518
|
-
reader.readScalarPlural('optionalFields', source, sink);
|
|
35557
|
+
reader.readScalarPlural('optionalFields', source, sink, true);
|
|
35519
35558
|
reader.exitPath();
|
|
35520
35559
|
reader.enterPath('sortBy');
|
|
35521
|
-
reader.readScalarPlural('sortBy', source, sink);
|
|
35560
|
+
reader.readScalarPlural('sortBy', source, sink, true);
|
|
35522
35561
|
reader.exitPath();
|
|
35523
35562
|
reader.enterPath('where');
|
|
35524
35563
|
reader.readScalar('where', source, sink);
|
|
@@ -35725,7 +35764,7 @@ function select$n$1(luvio, params) {
|
|
|
35725
35764
|
kind: 'Fragment',
|
|
35726
35765
|
private: ['eTag', 'weakEtag'],
|
|
35727
35766
|
selections: buildSelectionFromFields(fields, optionalFields),
|
|
35728
|
-
version: VERSION$
|
|
35767
|
+
version: VERSION$18$1
|
|
35729
35768
|
},
|
|
35730
35769
|
},
|
|
35731
35770
|
}, createPaginationParams(params));
|
|
@@ -35802,9 +35841,7 @@ function createResourceRequest$j(config) {
|
|
|
35802
35841
|
};
|
|
35803
35842
|
}
|
|
35804
35843
|
|
|
35805
|
-
|
|
35806
|
-
const nonCachedErrors$7 = ObjectCreate$1$1(null);
|
|
35807
|
-
const createChildResourceParams$9 = (resourceParams) => {
|
|
35844
|
+
function createChildResourceParams$1(resourceParams) {
|
|
35808
35845
|
const childConfigs = [];
|
|
35809
35846
|
for (let index = 0, len = resourceParams.body.relatedListParameters.length; index < len; index += 1) {
|
|
35810
35847
|
let childConfig = {
|
|
@@ -35834,11 +35871,13 @@ const createChildResourceParams$9 = (resourceParams) => {
|
|
|
35834
35871
|
childConfigs.push(childConfig);
|
|
35835
35872
|
}
|
|
35836
35873
|
return childConfigs;
|
|
35837
|
-
}
|
|
35838
|
-
|
|
35839
|
-
|
|
35840
|
-
|
|
35841
|
-
|
|
35874
|
+
}
|
|
35875
|
+
|
|
35876
|
+
const nonCachedErrors$8 = ObjectCreate$1$1(null);
|
|
35877
|
+
function createChildResourceParams$c(resourceParams) {
|
|
35878
|
+
return createChildResourceParams$1(resourceParams);
|
|
35879
|
+
}
|
|
35880
|
+
function selectChildResourceParams$8(luvio, childResources, resourceParams) {
|
|
35842
35881
|
const envelopeBodyPath = 'result';
|
|
35843
35882
|
const envelopeStatusCodePath = 'statusCode';
|
|
35844
35883
|
const envelopePath = 'results';
|
|
@@ -35849,8 +35888,7 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
|
|
|
35849
35888
|
read: (reader) => {
|
|
35850
35889
|
// Top-level 404 lookup
|
|
35851
35890
|
const result = reader.storeLookup(keyBuilder$s$1(luvio, resourceParams));
|
|
35852
|
-
if (result.state === reader.StoreResolveResultState.Error &&
|
|
35853
|
-
result.value.status === 404) {
|
|
35891
|
+
if (result.state === reader.StoreResolveResultState.Error && result.value.status === 404) {
|
|
35854
35892
|
return {
|
|
35855
35893
|
state: 'Error',
|
|
35856
35894
|
value: result.value,
|
|
@@ -35878,7 +35916,6 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
|
|
|
35878
35916
|
case 'Stale':
|
|
35879
35917
|
reader.markStale();
|
|
35880
35918
|
// Stale needs envelope bodies filled in so don't break
|
|
35881
|
-
// eslint-disable-next-line no-fallthrough
|
|
35882
35919
|
case 'Fulfilled':
|
|
35883
35920
|
reader.enterPath(envelopeStatusCodePath);
|
|
35884
35921
|
reader.assignScalar(envelopeStatusCodePath, childSink, 200);
|
|
@@ -35888,7 +35925,6 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
|
|
|
35888
35925
|
reader.exitPath();
|
|
35889
35926
|
break;
|
|
35890
35927
|
case 'Error':
|
|
35891
|
-
// eslint-disable-next-line no-case-declarations
|
|
35892
35928
|
const childSnapshotError = childSnapshot.error;
|
|
35893
35929
|
reader.enterPath(envelopeStatusCodePath);
|
|
35894
35930
|
reader.assignScalar(envelopeStatusCodePath, childSink, childSnapshotError.status);
|
|
@@ -35912,9 +35948,8 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
|
|
|
35912
35948
|
// has non-cached errors (since the top-level composite
|
|
35913
35949
|
// snapshot will look like an Unfulfilled snapshot
|
|
35914
35950
|
// instead of an error snapshot).
|
|
35915
|
-
const nonCachedError = nonCachedErrors$
|
|
35916
|
-
if (nonCachedError === undefined ||
|
|
35917
|
-
nonCachedError.expiration < reader.getTimeStamp()) {
|
|
35951
|
+
const nonCachedError = nonCachedErrors$8[childKey];
|
|
35952
|
+
if (nonCachedError === undefined || nonCachedError.expiration < reader.getTimeStamp()) {
|
|
35918
35953
|
reader.markMissingLink(childKey);
|
|
35919
35954
|
}
|
|
35920
35955
|
else {
|
|
@@ -35942,30 +35977,21 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
|
|
|
35942
35977
|
reader.exitPath();
|
|
35943
35978
|
}
|
|
35944
35979
|
reader.assignNonScalar(sink, envelopePath, results);
|
|
35945
|
-
deepFreeze(sink);
|
|
35946
35980
|
reader.exitPath();
|
|
35947
35981
|
return sink;
|
|
35948
|
-
}
|
|
35982
|
+
}
|
|
35949
35983
|
};
|
|
35950
35984
|
}
|
|
35951
|
-
// HUGE BLOCK OF COPY PASTED CODE:
|
|
35952
|
-
// WE NEED TO DO THIS SO THAT THE ADAPTER CAN USE ONLY OUR OVERRIDE FILE
|
|
35953
|
-
// PLEASE DO NOT CHANGE ANYTHING HERE...
|
|
35954
35985
|
function select$m$1(luvio, resourceParams) {
|
|
35955
|
-
const childResources = createChildResourceParams$
|
|
35956
|
-
return selectChildResourceParams$
|
|
35986
|
+
const childResources = createChildResourceParams$c(resourceParams);
|
|
35987
|
+
return selectChildResourceParams$8(luvio, childResources, resourceParams);
|
|
35957
35988
|
}
|
|
35958
35989
|
function keyBuilder$s$1(luvio, params) {
|
|
35959
|
-
return
|
|
35960
|
-
'::' +
|
|
35961
|
-
'RelatedListRecordCollectionBatchRepresentation(' +
|
|
35962
|
-
'relatedListParameters:' +
|
|
35963
|
-
params.body.relatedListParameters +
|
|
35964
|
-
')');
|
|
35990
|
+
return keyPrefix$1 + '::RelatedListRecordCollectionBatchRepresentation:(' + 'parentRecordId:' + params.urlParams.parentRecordId + ',' + '[' + params.body.relatedListParameters.map(element => (element.fields === undefined ? 'relatedListParameters.fields' : 'relatedListParameters.fields:' + element.fields) + '::' + (element.optionalFields === undefined ? 'relatedListParameters.optionalFields' : 'relatedListParameters.optionalFields:' + element.optionalFields) + '::' + (element.pageSize === undefined ? 'relatedListParameters.pageSize' : 'relatedListParameters.pageSize:' + element.pageSize) + '::' + 'relatedListParameters.relatedListId:' + element.relatedListId + '::' + (element.sortBy === undefined ? 'relatedListParameters.sortBy' : 'relatedListParameters.sortBy:' + element.sortBy) + '::' + (element.where === undefined ? 'relatedListParameters.where' : 'relatedListParameters.where:' + element.where)).join(',') + ']' + ')';
|
|
35965
35991
|
}
|
|
35966
35992
|
function getResponseCacheKeys$f(keys, luvio, resourceParams, response) {
|
|
35967
35993
|
const childEnvelopes = response.results;
|
|
35968
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
35994
|
+
const childResourceParamsArray = createChildResourceParams$c(resourceParams);
|
|
35969
35995
|
// get children keys
|
|
35970
35996
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
35971
35997
|
const childResourceParams = childResourceParamsArray[index];
|
|
@@ -35978,69 +36004,82 @@ function getResponseCacheKeys$f(keys, luvio, resourceParams, response) {
|
|
|
35978
36004
|
const childKey = keyBuilder$t$1(luvio, childResourceParams);
|
|
35979
36005
|
keys.set(childKey, {
|
|
35980
36006
|
namespace: keyPrefix$1,
|
|
35981
|
-
representationName:
|
|
35982
|
-
mergeable: false
|
|
36007
|
+
representationName: RepresentationType$d,
|
|
36008
|
+
mergeable: false
|
|
35983
36009
|
});
|
|
35984
36010
|
}
|
|
35985
36011
|
}
|
|
35986
36012
|
}
|
|
35987
|
-
function
|
|
35988
|
-
const childEnvelopes = response.body.results;
|
|
35989
|
-
const childResourceParamsArray = createChildResourceParams$9(resourceParams);
|
|
35990
|
-
let snapshotState = 'Fulfilled';
|
|
35991
|
-
const key = keyBuilder$s$1(luvio, resourceParams);
|
|
36013
|
+
function ingestSuccessChildResourceParams$8(luvio, childResourceParamsArray, childEnvelopes) {
|
|
35992
36014
|
const childSnapshotDataResponses = [];
|
|
35993
36015
|
let seenRecords = new StoreKeySet();
|
|
36016
|
+
let snapshotState = 'Fulfilled';
|
|
36017
|
+
const now = Date.now();
|
|
35994
36018
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
35995
36019
|
const childResourceParams = childResourceParamsArray[index];
|
|
36020
|
+
const childKey = keyBuilder$t$1(luvio, childResourceParams);
|
|
35996
36021
|
const result = childEnvelopes[index];
|
|
35997
|
-
const
|
|
35998
|
-
if (
|
|
35999
|
-
const { statusCode: childStatusCode, result: childBody } = result;
|
|
36022
|
+
const { statusCode: childStatusCode, result: childBody } = result;
|
|
36023
|
+
if (childStatusCode === 200) {
|
|
36000
36024
|
const childResponse = {
|
|
36001
|
-
status:
|
|
36025
|
+
status: 200,
|
|
36002
36026
|
body: childBody,
|
|
36003
36027
|
ok: true,
|
|
36004
|
-
statusText:
|
|
36028
|
+
statusText: 'OK',
|
|
36005
36029
|
headers: {},
|
|
36006
36030
|
};
|
|
36007
36031
|
const childSnapshot = ingestSuccess$b(luvio, childResourceParams, childResponse);
|
|
36032
|
+
if (childSnapshot.state === "Stale") {
|
|
36033
|
+
snapshotState = "Stale";
|
|
36034
|
+
}
|
|
36008
36035
|
seenRecords.merge(childSnapshot.seenRecords);
|
|
36009
36036
|
seenRecords.add(childSnapshot.recordId);
|
|
36010
|
-
if (childSnapshot.state === 'Pending') {
|
|
36011
|
-
snapshotState = 'Pending';
|
|
36012
|
-
break;
|
|
36013
|
-
}
|
|
36014
36037
|
const childValue = {
|
|
36015
|
-
statusCode:
|
|
36038
|
+
statusCode: 200,
|
|
36016
36039
|
result: childSnapshot.data,
|
|
36017
36040
|
};
|
|
36018
|
-
|
|
36041
|
+
deepFreeze(childValue);
|
|
36042
|
+
ArrayPrototypePush$1.call(childSnapshotDataResponses, childValue);
|
|
36019
36043
|
}
|
|
36020
36044
|
else {
|
|
36021
|
-
const
|
|
36045
|
+
const childStatusCodeText = getFetchResponseStatusText$1(result.statusCode);
|
|
36022
36046
|
const childResponse = {
|
|
36023
36047
|
status: childStatusCode,
|
|
36024
36048
|
body: childBody,
|
|
36025
36049
|
ok: false,
|
|
36026
36050
|
statusText: childStatusCodeText,
|
|
36027
36051
|
headers: {},
|
|
36028
|
-
errorType: 'fetchResponse'
|
|
36052
|
+
errorType: 'fetchResponse'
|
|
36029
36053
|
};
|
|
36030
36054
|
ingestError$8(luvio, childResourceParams, childResponse);
|
|
36031
|
-
seenRecords.add(
|
|
36055
|
+
seenRecords.add(childKey);
|
|
36032
36056
|
const childValue = {
|
|
36033
36057
|
statusCode: childStatusCode,
|
|
36034
36058
|
result: childBody,
|
|
36035
36059
|
};
|
|
36036
|
-
|
|
36060
|
+
deepFreeze(childValue);
|
|
36061
|
+
ArrayPrototypePush$1.call(childSnapshotDataResponses, childValue);
|
|
36062
|
+
}
|
|
36063
|
+
// track non-cached responses so rebuilds work properly
|
|
36064
|
+
if (childStatusCode !== 404 && childStatusCode !== 200) {
|
|
36065
|
+
nonCachedErrors$8[childKey] = { expiration: now + TTL$a, response: childBody, status: childStatusCode };
|
|
36066
|
+
}
|
|
36067
|
+
else {
|
|
36068
|
+
delete nonCachedErrors$8[childKey];
|
|
36037
36069
|
}
|
|
36038
36070
|
}
|
|
36039
36071
|
const childSnapshotData = {
|
|
36040
|
-
results: childSnapshotDataResponses
|
|
36072
|
+
results: childSnapshotDataResponses
|
|
36041
36073
|
};
|
|
36042
36074
|
deepFreeze(childSnapshotData);
|
|
36043
|
-
return {
|
|
36075
|
+
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
36076
|
+
}
|
|
36077
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
36078
|
+
const childEnvelopes = response.body.results;
|
|
36079
|
+
const childResourceParamsArray = createChildResourceParams$c(resourceParams);
|
|
36080
|
+
const key = keyBuilder$s$1(luvio, resourceParams);
|
|
36081
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$8(luvio, childResourceParamsArray, childEnvelopes);
|
|
36082
|
+
const syntheticSnapshot = {
|
|
36044
36083
|
recordId: key,
|
|
36045
36084
|
data: childSnapshotData,
|
|
36046
36085
|
state: snapshotState,
|
|
@@ -36050,8 +36089,12 @@ function ingestSuccess$a(luvio, resourceParams, response, _snapshotRefresh) {
|
|
|
36050
36089
|
node: select$m$1(luvio, resourceParams),
|
|
36051
36090
|
variables: {},
|
|
36052
36091
|
},
|
|
36053
|
-
|
|
36092
|
+
refresh: snapshotRefresh,
|
|
36093
|
+
variables: {}
|
|
36054
36094
|
};
|
|
36095
|
+
// evict top level composite record from the store. This covers the case where a previous resource request returned a 404.
|
|
36096
|
+
luvio.storeEvict(key);
|
|
36097
|
+
return syntheticSnapshot;
|
|
36055
36098
|
}
|
|
36056
36099
|
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
36057
36100
|
const key = keyBuilder$s$1(luvio, params);
|
|
@@ -36065,11 +36108,11 @@ function createResourceRequest$i(config) {
|
|
|
36065
36108
|
baseUri: '/services/data/v60.0',
|
|
36066
36109
|
basePath: '/ui-api/related-list-records/batch/' + config.urlParams.parentRecordId + '',
|
|
36067
36110
|
method: 'post',
|
|
36068
|
-
priority: 'normal',
|
|
36069
36111
|
body: config.body,
|
|
36070
36112
|
urlParams: config.urlParams,
|
|
36071
36113
|
queryParams: {},
|
|
36072
36114
|
headers,
|
|
36115
|
+
priority: 'normal',
|
|
36073
36116
|
};
|
|
36074
36117
|
}
|
|
36075
36118
|
|
|
@@ -36116,7 +36159,10 @@ function adapterFragment$9(luvio, config) {
|
|
|
36116
36159
|
return select$m$1(luvio, resourceParams);
|
|
36117
36160
|
}
|
|
36118
36161
|
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
36119
|
-
const snapshot = ingestSuccess$a(luvio, resourceParams, response
|
|
36162
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
36163
|
+
config,
|
|
36164
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions$1)
|
|
36165
|
+
});
|
|
36120
36166
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
36121
36167
|
}
|
|
36122
36168
|
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
@@ -37886,7 +37932,7 @@ const factory$b = (luvio) => {
|
|
|
37886
37932
|
recordTypeId,
|
|
37887
37933
|
},
|
|
37888
37934
|
});
|
|
37889
|
-
const key = keyBuilder$
|
|
37935
|
+
const key = keyBuilder$1F(luvio, {
|
|
37890
37936
|
apiName: objectApiName,
|
|
37891
37937
|
recordTypeId,
|
|
37892
37938
|
layoutType,
|
|
@@ -37940,7 +37986,7 @@ const getListRecordsByName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValid
|
|
|
37940
37986
|
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$Y(getListRecordsByName_ConfigPropertyMetadata);
|
|
37941
37987
|
function keyBuilder$a$1(luvio, config) {
|
|
37942
37988
|
const resourceParams = createResourceParams$9(config);
|
|
37943
|
-
return keyBuilder$
|
|
37989
|
+
return keyBuilder$1P(luvio, resourceParams);
|
|
37944
37990
|
}
|
|
37945
37991
|
function typeCheckConfig$b(untrustedConfig) {
|
|
37946
37992
|
const config = {};
|
|
@@ -38022,12 +38068,12 @@ function getCachedItemsNumber(cacheSnapshot) {
|
|
|
38022
38068
|
return items.length;
|
|
38023
38069
|
}
|
|
38024
38070
|
function getPaginationMetadata(luvio, resourceParams) {
|
|
38025
|
-
const key = keyBuilder$
|
|
38071
|
+
const key = keyBuilder$1P(luvio, resourceParams);
|
|
38026
38072
|
const selector = {
|
|
38027
38073
|
recordId: key,
|
|
38028
38074
|
node: {
|
|
38029
38075
|
kind: 'Fragment',
|
|
38030
|
-
version: VERSION$
|
|
38076
|
+
version: VERSION$16$1,
|
|
38031
38077
|
private: [],
|
|
38032
38078
|
selections: [
|
|
38033
38079
|
{
|
|
@@ -38387,13 +38433,6 @@ function buildCachedSnapshotCachePolicy$3(context, storeLookup) {
|
|
|
38387
38433
|
return cacheSnapshot;
|
|
38388
38434
|
}
|
|
38389
38435
|
|
|
38390
|
-
const paramNames = {
|
|
38391
|
-
displayName: 'getLookupRecords',
|
|
38392
|
-
parameters: {
|
|
38393
|
-
required: ['fieldApiName'],
|
|
38394
|
-
optional: ['requestParams'],
|
|
38395
|
-
},
|
|
38396
|
-
};
|
|
38397
38436
|
function coerceRequestParams(untrusted) {
|
|
38398
38437
|
if (!untrustedIsObject$2(untrusted)) {
|
|
38399
38438
|
return {};
|
|
@@ -38430,8 +38469,8 @@ function coerceRequestParams(untrusted) {
|
|
|
38430
38469
|
}
|
|
38431
38470
|
return coercedConfig;
|
|
38432
38471
|
}
|
|
38433
|
-
function validateAdapterConfig$8(untrustedConfig) {
|
|
38434
|
-
const config = validateAdapterConfig$9(untrustedConfig,
|
|
38472
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
38473
|
+
const config = validateAdapterConfig$9(untrustedConfig, configPropertyNames);
|
|
38435
38474
|
if (config === null) {
|
|
38436
38475
|
return config;
|
|
38437
38476
|
}
|
|
@@ -38446,9 +38485,16 @@ function validateAdapterConfig$8(untrustedConfig) {
|
|
|
38446
38485
|
}
|
|
38447
38486
|
|
|
38448
38487
|
const contextId$3 = `${keyPrefix$1}__${adapterName$6}`;
|
|
38488
|
+
const paramNames = {
|
|
38489
|
+
displayName: 'getLookupRecords',
|
|
38490
|
+
parameters: {
|
|
38491
|
+
required: ['fieldApiName'],
|
|
38492
|
+
optional: ['requestParams'],
|
|
38493
|
+
},
|
|
38494
|
+
};
|
|
38449
38495
|
const factory$9 = (luvio) => {
|
|
38450
38496
|
return luvio.withContext((untrustedConfig, adapterContext, requestContext) => {
|
|
38451
|
-
const config = validateAdapterConfig$8(untrustedConfig);
|
|
38497
|
+
const config = validateAdapterConfig$8(untrustedConfig, paramNames);
|
|
38452
38498
|
// Invalid or incomplete config
|
|
38453
38499
|
if (config === null) {
|
|
38454
38500
|
return null;
|
|
@@ -40103,7 +40149,7 @@ const createResourceParams$4 = /*#__PURE__*/ createResourceParams$Y(createRecord
|
|
|
40103
40149
|
function onResponseSuccess$1(luvio, response, recordIngest, conflictMap) {
|
|
40104
40150
|
const { body } = response;
|
|
40105
40151
|
const selections = buildSelectionFromRecord(body);
|
|
40106
|
-
const key = keyBuilder$
|
|
40152
|
+
const key = keyBuilder$1U(luvio, {
|
|
40107
40153
|
recordId: body.id,
|
|
40108
40154
|
});
|
|
40109
40155
|
luvio.storeIngest(key, recordIngest, body);
|
|
@@ -40114,7 +40160,7 @@ function onResponseSuccess$1(luvio, response, recordIngest, conflictMap) {
|
|
|
40114
40160
|
kind: 'Fragment',
|
|
40115
40161
|
private: [],
|
|
40116
40162
|
selections,
|
|
40117
|
-
version: VERSION$
|
|
40163
|
+
version: VERSION$18$1,
|
|
40118
40164
|
},
|
|
40119
40165
|
variables: {},
|
|
40120
40166
|
});
|
|
@@ -40153,7 +40199,7 @@ const factory$4 = (luvio) => {
|
|
|
40153
40199
|
};
|
|
40154
40200
|
|
|
40155
40201
|
function keyBuilder$1$1(luvio, params) {
|
|
40156
|
-
return keyBuilder$
|
|
40202
|
+
return keyBuilder$1U(luvio, {
|
|
40157
40203
|
recordId: params.urlParams.recordId
|
|
40158
40204
|
});
|
|
40159
40205
|
}
|
|
@@ -40341,7 +40387,7 @@ function getHeaders(clientOptions) {
|
|
|
40341
40387
|
function onResponseSuccess(luvio, response, recordId, recordIngest, conflictMap) {
|
|
40342
40388
|
const { body } = response;
|
|
40343
40389
|
const sel = buildSelectionFromRecord(body);
|
|
40344
|
-
const key = keyBuilder$
|
|
40390
|
+
const key = keyBuilder$1U(luvio, {
|
|
40345
40391
|
recordId,
|
|
40346
40392
|
});
|
|
40347
40393
|
luvio.storeIngest(key, recordIngest, body);
|
|
@@ -40352,7 +40398,7 @@ function onResponseSuccess(luvio, response, recordId, recordIngest, conflictMap)
|
|
|
40352
40398
|
kind: 'Fragment',
|
|
40353
40399
|
private: [],
|
|
40354
40400
|
selections: sel,
|
|
40355
|
-
version: VERSION$
|
|
40401
|
+
version: VERSION$18$1,
|
|
40356
40402
|
},
|
|
40357
40403
|
variables: {},
|
|
40358
40404
|
});
|
|
@@ -40401,16 +40447,16 @@ const factory$2 = (luvio) => {
|
|
|
40401
40447
|
};
|
|
40402
40448
|
};
|
|
40403
40449
|
|
|
40404
|
-
const VERSION$
|
|
40450
|
+
const VERSION$1l = "5f97eb4f2c3f805ef9d98ba7f0530b3e";
|
|
40405
40451
|
const RepresentationType$S = 'ContentDocumentCompositeRepresentation';
|
|
40406
|
-
function keyBuilder$
|
|
40452
|
+
function keyBuilder$1W(luvio, config) {
|
|
40407
40453
|
return keyPrefix$1 + '::' + RepresentationType$S + ':' + config.contentDocumentId;
|
|
40408
40454
|
}
|
|
40409
40455
|
function keyBuilderFromType$B(luvio, object) {
|
|
40410
40456
|
const keyParams = {
|
|
40411
40457
|
contentDocumentId: object.contentDocument.id
|
|
40412
40458
|
};
|
|
40413
|
-
return keyBuilder$
|
|
40459
|
+
return keyBuilder$1W(luvio, keyParams);
|
|
40414
40460
|
}
|
|
40415
40461
|
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
40416
40462
|
const input_contentDocument = input.contentDocument;
|
|
@@ -40481,7 +40527,7 @@ function equals$10(existing, incoming) {
|
|
|
40481
40527
|
const ingest$15 = function ContentDocumentCompositeRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
40482
40528
|
const key = keyBuilderFromType$B(luvio, input);
|
|
40483
40529
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
40484
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "UiApi", VERSION$
|
|
40530
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "UiApi", VERSION$1l, RepresentationType$S, equals$10);
|
|
40485
40531
|
return createLink$3(key);
|
|
40486
40532
|
};
|
|
40487
40533
|
function getTypeCacheKeys$18(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -40552,7 +40598,7 @@ const select$1S = function ContentDocumentCompositeRepresentationSelect(body) {
|
|
|
40552
40598
|
return {
|
|
40553
40599
|
kind: 'Fragment',
|
|
40554
40600
|
private: [],
|
|
40555
|
-
version: VERSION$
|
|
40601
|
+
version: VERSION$1l,
|
|
40556
40602
|
selections: [
|
|
40557
40603
|
{
|
|
40558
40604
|
name: 'contentDocument',
|
|
@@ -40560,7 +40606,7 @@ const select$1S = function ContentDocumentCompositeRepresentationSelect(body) {
|
|
|
40560
40606
|
fragment: {
|
|
40561
40607
|
kind: 'Fragment',
|
|
40562
40608
|
private: [],
|
|
40563
|
-
version: VERSION$
|
|
40609
|
+
version: VERSION$18$1,
|
|
40564
40610
|
selections: buildSelectionFromRecord(body.contentDocument),
|
|
40565
40611
|
},
|
|
40566
40612
|
},
|
|
@@ -40571,7 +40617,7 @@ const select$1S = function ContentDocumentCompositeRepresentationSelect(body) {
|
|
|
40571
40617
|
fragment: {
|
|
40572
40618
|
kind: 'Fragment',
|
|
40573
40619
|
private: [],
|
|
40574
|
-
version: VERSION$
|
|
40620
|
+
version: VERSION$18$1,
|
|
40575
40621
|
selections: buildSelectionFromRecord(body.contentDocumentLinks[0] || { fields: {} }),
|
|
40576
40622
|
},
|
|
40577
40623
|
},
|
|
@@ -40581,7 +40627,7 @@ const select$1S = function ContentDocumentCompositeRepresentationSelect(body) {
|
|
|
40581
40627
|
fragment: {
|
|
40582
40628
|
kind: 'Fragment',
|
|
40583
40629
|
private: [],
|
|
40584
|
-
version: VERSION$
|
|
40630
|
+
version: VERSION$18$1,
|
|
40585
40631
|
selections: buildSelectionFromRecord(body.contentVersion),
|
|
40586
40632
|
},
|
|
40587
40633
|
},
|
|
@@ -41319,7 +41365,7 @@ withDefaultLuvio((luvio) => {
|
|
|
41319
41365
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
41320
41366
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41321
41367
|
});
|
|
41322
|
-
// version: 1.
|
|
41368
|
+
// version: 1.236.0-e3ad4839b
|
|
41323
41369
|
|
|
41324
41370
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
41325
41371
|
|
|
@@ -41454,12 +41500,14 @@ var ldsMetadataRefreshEnabled = {
|
|
|
41454
41500
|
* For full license text, see the LICENSE.txt file
|
|
41455
41501
|
*/
|
|
41456
41502
|
|
|
41503
|
+
|
|
41457
41504
|
/**
|
|
41458
41505
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
41459
41506
|
* All rights reserved.
|
|
41460
41507
|
* For full license text, see the LICENSE.txt file
|
|
41461
41508
|
*/
|
|
41462
41509
|
|
|
41510
|
+
|
|
41463
41511
|
const { parse: parse$6, stringify: stringify$6 } = JSON;
|
|
41464
41512
|
const { join: join$2, push: push$2, unshift } = Array.prototype;
|
|
41465
41513
|
const { isArray: isArray$5 } = Array;
|
|
@@ -43049,6 +43097,7 @@ function isEntryDurableRecordRepresentation(entry, key) {
|
|
|
43049
43097
|
* For full license text, see the LICENSE.txt file
|
|
43050
43098
|
*/
|
|
43051
43099
|
|
|
43100
|
+
|
|
43052
43101
|
const GRAPHQL_ROOT_KEY$1 = `GraphQL::graphql`;
|
|
43053
43102
|
function findIds(json) {
|
|
43054
43103
|
const entries = Object.entries(json);
|
|
@@ -46279,6 +46328,7 @@ function makeStoreEval(preconditioner, objectInfoService, userId, contextProvide
|
|
|
46279
46328
|
* For full license text, see the LICENSE.txt file
|
|
46280
46329
|
*/
|
|
46281
46330
|
|
|
46331
|
+
|
|
46282
46332
|
/* Ideally we would use AbortController but it does not exist in V8, this is a simplified version */
|
|
46283
46333
|
class LdsAbortController {
|
|
46284
46334
|
constructor() {
|
|
@@ -46373,6 +46423,7 @@ class AsyncWorkerPool {
|
|
|
46373
46423
|
* For full license text, see the LICENSE.txt file
|
|
46374
46424
|
*/
|
|
46375
46425
|
|
|
46426
|
+
|
|
46376
46427
|
var DraftActionStatus;
|
|
46377
46428
|
(function (DraftActionStatus) {
|
|
46378
46429
|
DraftActionStatus["Pending"] = "pending";
|
|
@@ -48295,6 +48346,7 @@ function buildQueryTypeStringKey$1(args) {
|
|
|
48295
48346
|
* For full license text, see the LICENSE.txt file
|
|
48296
48347
|
*/
|
|
48297
48348
|
|
|
48349
|
+
|
|
48298
48350
|
class DataLoader {
|
|
48299
48351
|
constructor(batchLoadFn) {
|
|
48300
48352
|
this._batchLoadFn = batchLoadFn;
|
|
@@ -52437,6 +52489,7 @@ function referenceIdFieldForRelationship(relationshipName) {
|
|
|
52437
52489
|
* For full license text, see the LICENSE.txt file
|
|
52438
52490
|
*/
|
|
52439
52491
|
|
|
52492
|
+
|
|
52440
52493
|
const { keys: keys$3, values: values$1, create: create$3, assign: assign$3, freeze: freeze$2 } = Object;
|
|
52441
52494
|
const { stringify: stringify$3, parse: parse$3 } = JSON;
|
|
52442
52495
|
const { shift } = Array.prototype;
|
|
@@ -52492,7 +52545,7 @@ function getRecordKeyFromRecordRequest(luvio, resourceRequest) {
|
|
|
52492
52545
|
* @param recordId record id
|
|
52493
52546
|
*/
|
|
52494
52547
|
function getRecordKeyForId(luvio, recordId) {
|
|
52495
|
-
return keyBuilder$
|
|
52548
|
+
return keyBuilder$1U(luvio, { recordId });
|
|
52496
52549
|
}
|
|
52497
52550
|
/**
|
|
52498
52551
|
* Drafts are stored with denormalized fields and normalized field links. This method
|
|
@@ -52557,7 +52610,7 @@ function resolveResourceRequestIds(luvio, request, canonicalRecordStoreKey) {
|
|
|
52557
52610
|
if (recordId === undefined) {
|
|
52558
52611
|
return request;
|
|
52559
52612
|
}
|
|
52560
|
-
const recordKey = keyBuilder$
|
|
52613
|
+
const recordKey = keyBuilder$1U(luvio, { recordId });
|
|
52561
52614
|
if (canonicalRecordStoreKey === recordKey) {
|
|
52562
52615
|
// no mapping exists -- return the request un-modified
|
|
52563
52616
|
return request;
|
|
@@ -52668,7 +52721,7 @@ function extractDraftAndCanonicalIdsFromRequest(luvio, resourceRequest, env, isD
|
|
|
52668
52721
|
for (let i = 0, len = allIds.length; i < len; i++) {
|
|
52669
52722
|
const recordId = allIds[i];
|
|
52670
52723
|
if (isDraftId(recordId)) {
|
|
52671
|
-
const recordKey = keyBuilder$
|
|
52724
|
+
const recordKey = keyBuilder$1U(luvio, { recordId });
|
|
52672
52725
|
const canonicalKey = env.storeGetCanonicalKey(recordKey);
|
|
52673
52726
|
if (recordKey !== canonicalKey) {
|
|
52674
52727
|
// record is no longer a draft, include the canonical id in the request
|
|
@@ -53677,7 +53730,7 @@ function getDenormalizedKey(originalKey, recordId, luvio) {
|
|
|
53677
53730
|
if (originalKey.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX$1)) {
|
|
53678
53731
|
return RECORD_VIEW_ENTITY_ID_PREFIX$1 + recordId;
|
|
53679
53732
|
}
|
|
53680
|
-
return keyBuilder$
|
|
53733
|
+
return keyBuilder$1U(luvio, { recordId });
|
|
53681
53734
|
}
|
|
53682
53735
|
function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecords, getStoreMetadata) {
|
|
53683
53736
|
const getEntries = function (entries, segment) {
|
|
@@ -54051,7 +54104,7 @@ class UiApiDraftRecordService {
|
|
|
54051
54104
|
return this.generateId(objectInfo.keyPrefix);
|
|
54052
54105
|
}
|
|
54053
54106
|
getKeyForId(id) {
|
|
54054
|
-
return keyBuilder$
|
|
54107
|
+
return keyBuilder$1U(this.getLuvio(), { recordId: id });
|
|
54055
54108
|
}
|
|
54056
54109
|
async synthesizeDraftRecord(recordId) {
|
|
54057
54110
|
const metadata = await this.getRecordDraftMetadata(recordId, undefined);
|
|
@@ -54163,7 +54216,7 @@ class QuickActionExecutionRepresentationHandler extends AbstractResourceRequestA
|
|
|
54163
54216
|
}
|
|
54164
54217
|
synchronousIngest(response) {
|
|
54165
54218
|
const luvio = this.getLuvio();
|
|
54166
|
-
const key = keyBuilder$
|
|
54219
|
+
const key = keyBuilder$1D(luvio, {
|
|
54167
54220
|
id: response.id,
|
|
54168
54221
|
});
|
|
54169
54222
|
luvio.storeIngest(key, ingest$z$1, response);
|
|
@@ -54629,7 +54682,7 @@ class ContentDocumentCompositeRepresentationActionHandler extends AbstractResour
|
|
|
54629
54682
|
return responseBody.contentDocument.id;
|
|
54630
54683
|
}
|
|
54631
54684
|
buildTagForTargetId(id) {
|
|
54632
|
-
return keyBuilder$
|
|
54685
|
+
return keyBuilder$1W(this.getLuvio(), {
|
|
54633
54686
|
contentDocumentId: id,
|
|
54634
54687
|
});
|
|
54635
54688
|
}
|
|
@@ -55110,6 +55163,7 @@ const recordIdGenerator = (id) => {
|
|
|
55110
55163
|
* For full license text, see the LICENSE.txt file
|
|
55111
55164
|
*/
|
|
55112
55165
|
|
|
55166
|
+
|
|
55113
55167
|
const { keys: keys$2$1, create: create$2$1, assign: assign$2, entries: entries$2 } = Object;
|
|
55114
55168
|
const { stringify: stringify$2, parse: parse$2 } = JSON;
|
|
55115
55169
|
const { push: push$1, join: join$1, slice: slice$1 } = Array.prototype;
|
|
@@ -55235,6 +55289,7 @@ function buildLdsResponse(response) {
|
|
|
55235
55289
|
}
|
|
55236
55290
|
|
|
55237
55291
|
// so eslint doesn't complain about nimbus
|
|
55292
|
+
/* global __nimbus */
|
|
55238
55293
|
const tasker = idleDetector.declareNotifierTaskMulti('NimbusNetworkAdapter');
|
|
55239
55294
|
const NimbusNetworkAdapter = (request, resourceRequestContext) => {
|
|
55240
55295
|
return new Promise((resolve, reject) => {
|
|
@@ -55910,6 +55965,7 @@ const { stringify: stringify$1$1, parse: parse$1$1 } = JSON;
|
|
|
55910
55965
|
const { push: push$3, join, slice } = Array.prototype;
|
|
55911
55966
|
|
|
55912
55967
|
// so eslint doesn't complain about nimbus
|
|
55968
|
+
/* global __nimbus */
|
|
55913
55969
|
/**
|
|
55914
55970
|
* An implementation of the DraftQueue interface which serializes
|
|
55915
55971
|
* requests and sends them across the Nimbus bridge and deserializes the result.
|
|
@@ -56036,7 +56092,6 @@ function normalizeError$2(err) {
|
|
|
56036
56092
|
return new Error(stringify$1$1(err));
|
|
56037
56093
|
}
|
|
56038
56094
|
const DRAFT_QUEUE_TOTAL_MERGE_ACTIONS_CALLS = 'draft-queue-total-mergeActions-calls';
|
|
56039
|
-
const DRAFT_AWARE_CREATE_CONTENT_DOCUMENT_AND_VERSION_ERROR = 'draft-aware-create-content-document-and-version-error';
|
|
56040
56095
|
function reportGraphqlQueryParseError(err) {
|
|
56041
56096
|
normalizeError$2(err);
|
|
56042
56097
|
}
|
|
@@ -56056,14 +56111,7 @@ function reportDraftAwareContentDocumentVersionSynthesizeError(err) {
|
|
|
56056
56111
|
else {
|
|
56057
56112
|
error = normalizeError$2(err);
|
|
56058
56113
|
}
|
|
56059
|
-
|
|
56060
|
-
const errorType = error.errorType;
|
|
56061
|
-
const tags = {
|
|
56062
|
-
errorCode,
|
|
56063
|
-
};
|
|
56064
|
-
if (errorType !== undefined) {
|
|
56065
|
-
tags.errorType = errorType;
|
|
56066
|
-
}
|
|
56114
|
+
error.errorType;
|
|
56067
56115
|
}
|
|
56068
56116
|
function reportDraftAwareContentVersionSynthesizeCalls(mimeType) {
|
|
56069
56117
|
}
|
|
@@ -56137,6 +56185,7 @@ function instrumentDraftQueue(queue) {
|
|
|
56137
56185
|
}
|
|
56138
56186
|
|
|
56139
56187
|
// so eslint doesn't complain about nimbus
|
|
56188
|
+
/* global __nimbus */
|
|
56140
56189
|
function buildLdsDraftQueue(durableStore) {
|
|
56141
56190
|
if (typeof __nimbus !== 'undefined' &&
|
|
56142
56191
|
__nimbus.plugins !== undefined &&
|
|
@@ -56882,6 +56931,7 @@ class LdsDraftIdMapDataTable extends AbstractKeyValueDataTable {
|
|
|
56882
56931
|
}
|
|
56883
56932
|
|
|
56884
56933
|
// so eslint doesn't complain about nimbus
|
|
56934
|
+
/* global __nimbus */
|
|
56885
56935
|
let baseDurableStore;
|
|
56886
56936
|
function getNimbusDurableStore(plugin) {
|
|
56887
56937
|
if (baseDurableStore === undefined) {
|
|
@@ -57087,6 +57137,7 @@ function setupInspection(luvio) {
|
|
|
57087
57137
|
* For full license text, see the LICENSE.txt file
|
|
57088
57138
|
*/
|
|
57089
57139
|
|
|
57140
|
+
|
|
57090
57141
|
class EventEmitter {
|
|
57091
57142
|
constructor() {
|
|
57092
57143
|
// @ts-ignore typescript doesn't like us setting this to an empty object for some reason
|
|
@@ -57869,7 +57920,7 @@ class RecordIngestor {
|
|
|
57869
57920
|
namespace: keyPrefix$1,
|
|
57870
57921
|
representationName: RepresentationType$O,
|
|
57871
57922
|
metadataVersion: DURABLE_METADATA_VERSION,
|
|
57872
|
-
version: VERSION$
|
|
57923
|
+
version: VERSION$18$1,
|
|
57873
57924
|
};
|
|
57874
57925
|
return this.store.writeRecords(syntheticRecords.map((record) => ({ record, metadata })), overwrite);
|
|
57875
57926
|
}
|
|
@@ -57998,7 +58049,7 @@ class SqlitePrimingStore {
|
|
|
57998
58049
|
const sql = 'SELECT data, metadata FROM lds_data WHERE key IN (' +
|
|
57999
58050
|
ids.map(() => '?').join(',') +
|
|
58000
58051
|
')';
|
|
58001
|
-
const params = ids.map((id) => keyBuilder$
|
|
58052
|
+
const params = ids.map((id) => keyBuilder$1U(this.getLuvio(), { recordId: id }));
|
|
58002
58053
|
const result = await this.store.query(sql, params);
|
|
58003
58054
|
const records = [];
|
|
58004
58055
|
for (const row of result.rows) {
|
|
@@ -58027,7 +58078,7 @@ class SqlitePrimingStore {
|
|
|
58027
58078
|
const params = [];
|
|
58028
58079
|
records.forEach(({ record, metadata }) => {
|
|
58029
58080
|
idsToPrime.add(record.id);
|
|
58030
|
-
const key = keyBuilder$
|
|
58081
|
+
const key = keyBuilder$1U(this.getLuvio(), { recordId: record.id });
|
|
58031
58082
|
params.push(key);
|
|
58032
58083
|
params.push(JSON.stringify(record));
|
|
58033
58084
|
params.push(JSON.stringify(metadata));
|
|
@@ -58136,6 +58187,8 @@ function primingSessionFactory(config) {
|
|
|
58136
58187
|
}
|
|
58137
58188
|
|
|
58138
58189
|
// so eslint doesn't complain about nimbus
|
|
58190
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
58191
|
+
/* global __nimbus */
|
|
58139
58192
|
let lazyDraftQueue;
|
|
58140
58193
|
let lazyDraftManager;
|
|
58141
58194
|
let lazyLuvio;
|
|
@@ -58287,7 +58340,7 @@ register({
|
|
|
58287
58340
|
id: '@salesforce/lds-network-adapter',
|
|
58288
58341
|
instrument: instrument$1,
|
|
58289
58342
|
});
|
|
58290
|
-
// version: 1.
|
|
58343
|
+
// version: 1.236.0-036823f57
|
|
58291
58344
|
|
|
58292
58345
|
const { create: create$2, keys: keys$2 } = Object;
|
|
58293
58346
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -58708,6 +58761,7 @@ function deepMerge(target, ...sources) {
|
|
|
58708
58761
|
* For full license text, see the LICENSE.txt file
|
|
58709
58762
|
*/
|
|
58710
58763
|
|
|
58764
|
+
|
|
58711
58765
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
58712
58766
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
58713
58767
|
const { stringify: JSONStringify } = JSON;
|
|
@@ -76200,9 +76254,7 @@ function onFetchResponseError$2(luvio, config, resourceParams, response) {
|
|
|
76200
76254
|
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
76201
76255
|
const resourceParams = createResourceParams(transformConfiguration(config));
|
|
76202
76256
|
const request = createResourceRequest(resourceParams);
|
|
76203
|
-
return luvio
|
|
76204
|
-
.dispatchResourceRequest(request, options)
|
|
76205
|
-
.then((response) => {
|
|
76257
|
+
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
76206
76258
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
76207
76259
|
const cache = new StoreKeyMap();
|
|
76208
76260
|
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
@@ -76524,6 +76576,8 @@ var FormFactor;
|
|
|
76524
76576
|
FormFactor["Small"] = "Small";
|
|
76525
76577
|
})(FormFactor || (FormFactor = {}));
|
|
76526
76578
|
|
|
76579
|
+
ObjectCreate$1(null);
|
|
76580
|
+
|
|
76527
76581
|
var LayoutType;
|
|
76528
76582
|
(function (LayoutType) {
|
|
76529
76583
|
LayoutType["Full"] = "Full";
|
|
@@ -76739,7 +76793,6 @@ ObjectCreate$1(null);
|
|
|
76739
76793
|
|
|
76740
76794
|
ObjectCreate$1(null);
|
|
76741
76795
|
|
|
76742
|
-
// Copied from generated resource
|
|
76743
76796
|
ObjectCreate$1(null);
|
|
76744
76797
|
|
|
76745
76798
|
var DiscriminatorValues;
|
|
@@ -76758,56 +76811,57 @@ register({
|
|
|
76758
76811
|
configuration: { ...configurationForGraphQLAdapters },
|
|
76759
76812
|
instrument,
|
|
76760
76813
|
});
|
|
76761
|
-
// version: 1.
|
|
76814
|
+
// version: 1.236.0-e3ad4839b
|
|
76762
76815
|
|
|
76763
76816
|
// On core the unstable adapters are re-exported with different names,
|
|
76817
|
+
// we want to match them here.
|
|
76764
76818
|
|
|
76765
76819
|
var unstableLightningRelatedListApi = /*#__PURE__*/Object.freeze({
|
|
76766
76820
|
__proto__: null,
|
|
76821
|
+
get createRecord () { return createRecord; },
|
|
76822
|
+
get deleteRecord () { return deleteRecord; },
|
|
76767
76823
|
gql: gql,
|
|
76768
76824
|
get graphql () { return graphql; },
|
|
76769
|
-
get unstable_graphql () { return graphql; },
|
|
76770
|
-
get unstable_graphql_imperative () { return graphql_imperative; },
|
|
76771
76825
|
get refreshGraphQL () { return refresh$2; },
|
|
76772
|
-
get unstable_getListUi_imperative () { return unstable_getListUi_imperative; },
|
|
76773
|
-
get unstable_getRecordActions_imperative () { return unstable_getRecordActions_imperative; },
|
|
76774
|
-
get unstable_getRecordEditActions_imperative () { return unstable_getRecordEditActions_imperative; },
|
|
76775
|
-
get unstable_getRelatedListRecordActions_imperative () { return unstable_getRelatedListRecordActions_imperative; },
|
|
76776
|
-
get unstable_getObjectCreateActions_imperative () { return unstable_getObjectCreateActions_imperative; },
|
|
76777
|
-
get unstable_getRelatedListActions_imperative () { return unstable_getRelatedListActions_imperative; },
|
|
76778
|
-
get unstable_getRelatedListsActions_imperative () { return unstable_getRelatedListsActions_imperative; },
|
|
76779
|
-
get unstable_getGlobalActions_imperative () { return unstable_getGlobalActions_imperative; },
|
|
76780
|
-
get unstable_getQuickActionDefaults_imperative () { return unstable_getQuickActionDefaults_imperative; },
|
|
76781
76826
|
get unstable_getActionOverrides_imperative () { return unstable_getActionOverrides_imperative; },
|
|
76782
|
-
get
|
|
76827
|
+
get unstable_getGlobalActions_imperative () { return unstable_getGlobalActions_imperative; },
|
|
76828
|
+
get unstable_getListUi_imperative () { return unstable_getListUi_imperative; },
|
|
76783
76829
|
get unstable_getLookupRecords_imperative () { return unstable_getLookupRecords_imperative; },
|
|
76830
|
+
get unstable_getObjectCreateActions_imperative () { return unstable_getObjectCreateActions_imperative; },
|
|
76784
76831
|
get unstable_getObjectInfo_imperative () { return unstable_getObjectInfo_imperative; },
|
|
76785
76832
|
get unstable_getObjectInfos_imperative () { return unstable_getObjectInfos_imperative; },
|
|
76786
|
-
get unstable_getPicklistValues_imperative () { return unstable_getPicklistValues_imperative; },
|
|
76787
76833
|
get unstable_getPicklistValuesByRecordType_imperative () { return unstable_getPicklistValuesByRecordType_imperative; },
|
|
76788
|
-
get
|
|
76789
|
-
get
|
|
76790
|
-
get
|
|
76834
|
+
get unstable_getPicklistValues_imperative () { return unstable_getPicklistValues_imperative; },
|
|
76835
|
+
get unstable_getQuickActionDefaults_imperative () { return unstable_getQuickActionDefaults_imperative; },
|
|
76836
|
+
get unstable_getRecordActions_imperative () { return unstable_getRecordActions_imperative; },
|
|
76837
|
+
get unstable_getRecordAvatars_imperative () { return unstable_getRecordAvatars_imperative; },
|
|
76838
|
+
get unstable_getRecordCreateDefaults_imperative () { return unstable_getRecordCreateDefaults_imperative; },
|
|
76839
|
+
get unstable_getRecordEditActions_imperative () { return unstable_getRecordEditActions_imperative; },
|
|
76791
76840
|
get unstable_getRecordTemplateClone () { return getRecordTemplateClone; },
|
|
76792
|
-
get unstable_getRecordTemplateCreate () { return getRecordTemplateCreate; },
|
|
76793
|
-
get unstable_getRecords () { return getRecords; },
|
|
76794
|
-
get unstable_getRecord_imperative () { return unstable_getRecord_imperative; },
|
|
76795
|
-
get unstable_getRecords_imperative () { return unstable_getRecords_imperative; },
|
|
76796
76841
|
get unstable_getRecordTemplateClone_imperative () { return unstable_getRecordTemplateClone_imperative; },
|
|
76842
|
+
get unstable_getRecordTemplateCreate () { return getRecordTemplateCreate; },
|
|
76797
76843
|
get unstable_getRecordTemplateCreate_imperative () { return unstable_getRecordTemplateCreate_imperative; },
|
|
76798
76844
|
get unstable_getRecordUi_imperative () { return unstable_getRecordUi_imperative; },
|
|
76799
|
-
get
|
|
76800
|
-
get
|
|
76845
|
+
get unstable_getRecord_imperative () { return unstable_getRecord_imperative; },
|
|
76846
|
+
get unstable_getRecords () { return getRecords; },
|
|
76847
|
+
get unstable_getRecords_imperative () { return unstable_getRecords_imperative; },
|
|
76801
76848
|
get unstable_getRelatedListActions () { return getRelatedListActions; },
|
|
76802
|
-
|
|
76803
|
-
unstable_refresh: refresh,
|
|
76849
|
+
get unstable_getRelatedListActions_imperative () { return unstable_getRelatedListActions_imperative; },
|
|
76804
76850
|
get unstable_getRelatedListCount_imperative () { return unstable_getRelatedListCount_imperative; },
|
|
76805
|
-
get
|
|
76851
|
+
get unstable_getRelatedListInfoBatch_imperative () { return unstable_getRelatedListInfoBatch_imperative; },
|
|
76806
76852
|
get unstable_getRelatedListInfo_imperative () { return unstable_getRelatedListInfo_imperative; },
|
|
76807
|
-
get
|
|
76808
|
-
get unstable_getRelatedListRecords_imperative () { return unstable_getRelatedListRecords_imperative; },
|
|
76853
|
+
get unstable_getRelatedListRecordActions_imperative () { return unstable_getRelatedListRecordActions_imperative; },
|
|
76809
76854
|
get unstable_getRelatedListRecordsBatch_imperative () { return unstable_getRelatedListRecordsBatch_imperative; },
|
|
76810
|
-
get
|
|
76855
|
+
get unstable_getRelatedListRecords_imperative () { return unstable_getRelatedListRecords_imperative; },
|
|
76856
|
+
get unstable_getRelatedListsActions_imperative () { return unstable_getRelatedListsActions_imperative; },
|
|
76857
|
+
get unstable_getRelatedListsCount () { return getRelatedListsCount; },
|
|
76858
|
+
get unstable_getRelatedListsCount_imperative () { return unstable_getRelatedListsCount_imperative; },
|
|
76859
|
+
get unstable_getRelatedListsInfo_imperative () { return unstable_getRelatedListsInfo_imperative; },
|
|
76860
|
+
get unstable_graphql () { return graphql; },
|
|
76861
|
+
get unstable_graphql_imperative () { return graphql_imperative; },
|
|
76862
|
+
unstable_refresh: refresh,
|
|
76863
|
+
unstable_updateRelatedListInfo: updateRelatedListInfo,
|
|
76864
|
+
get updateRecord () { return updateRecord; }
|
|
76811
76865
|
});
|
|
76812
76866
|
|
|
76813
76867
|
var ldsAdapterForwardingGate = {
|
|
@@ -76825,6 +76879,7 @@ var ldsAdapterForwardingGate = {
|
|
|
76825
76879
|
* For full license text, see the LICENSE.txt file
|
|
76826
76880
|
*/
|
|
76827
76881
|
|
|
76882
|
+
|
|
76828
76883
|
const { isArray } = Array;
|
|
76829
76884
|
const { keys, freeze, create } = Object;
|
|
76830
76885
|
const { hasOwnProperty } = Object.prototype;
|
|
@@ -77231,7 +77286,7 @@ function assignSelection(luvio, selection, builder, state, variables) {
|
|
|
77231
77286
|
}
|
|
77232
77287
|
case 'CustomFieldSelection': {
|
|
77233
77288
|
if (sel.type === 'Connection') {
|
|
77234
|
-
const recordKey = keyBuilder$
|
|
77289
|
+
const recordKey = keyBuilder$1U(luvio, {
|
|
77235
77290
|
recordId: state.source.id,
|
|
77236
77291
|
});
|
|
77237
77292
|
assignConnectionSelection(luvio, builder, sink, sel, recordKey, propertyName, variables);
|
|
@@ -79005,7 +79060,7 @@ withDefaultLuvio((luvio) => {
|
|
|
79005
79060
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
79006
79061
|
graphQLImperative = ldsAdapter;
|
|
79007
79062
|
});
|
|
79008
|
-
// version: 1.
|
|
79063
|
+
// version: 1.236.0-e3ad4839b
|
|
79009
79064
|
|
|
79010
79065
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
79011
79066
|
__proto__: null,
|
|
@@ -79608,6 +79663,7 @@ function executeMutatingAdapter(adapterId, config, onResult, nativeAdapterReques
|
|
|
79608
79663
|
}
|
|
79609
79664
|
|
|
79610
79665
|
/* istanbul ignore file */
|
|
79666
|
+
// TODO [W-9523236]: add test coverage for this file and remove above comment
|
|
79611
79667
|
// A allowlist of methods that we allow to be proxied from another LDS instance
|
|
79612
79668
|
const allowList = ['enqueue', 'getQueueActions'];
|
|
79613
79669
|
/**
|
|
@@ -79715,8 +79771,10 @@ function removeEventHandler(session, handler) {
|
|
|
79715
79771
|
}
|
|
79716
79772
|
|
|
79717
79773
|
// LWR has a "setupLDS" bootstrap service/loader hook, we simulate this in
|
|
79774
|
+
// standalone bundle by mimicking what "setupLDS" does here and then exporting
|
|
79775
|
+
// everything from main.ts
|
|
79718
79776
|
const { luvio } = getRuntime();
|
|
79719
79777
|
setDefaultLuvio({ luvio });
|
|
79720
79778
|
|
|
79721
79779
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
79722
|
-
// version: 1.
|
|
79780
|
+
// version: 1.236.0-036823f57
|