@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.
|
@@ -3860,7 +3860,7 @@
|
|
|
3860
3860
|
}
|
|
3861
3861
|
return resourceParams;
|
|
3862
3862
|
}
|
|
3863
|
-
// engine version: 0.
|
|
3863
|
+
// engine version: 0.148.1-b9169b45
|
|
3864
3864
|
|
|
3865
3865
|
/**
|
|
3866
3866
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -3868,6 +3868,7 @@
|
|
|
3868
3868
|
* For full license text, see the LICENSE.txt file
|
|
3869
3869
|
*/
|
|
3870
3870
|
|
|
3871
|
+
|
|
3871
3872
|
/*
|
|
3872
3873
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
3873
3874
|
* All rights reserved.
|
|
@@ -3987,7 +3988,7 @@
|
|
|
3987
3988
|
}
|
|
3988
3989
|
callbacks.push(callback);
|
|
3989
3990
|
}
|
|
3990
|
-
// version: 1.
|
|
3991
|
+
// version: 1.236.0-036823f57
|
|
3991
3992
|
|
|
3992
3993
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3993
3994
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15448,7 +15449,7 @@
|
|
|
15448
15449
|
}
|
|
15449
15450
|
return superResult;
|
|
15450
15451
|
}
|
|
15451
|
-
// version: 1.
|
|
15452
|
+
// version: 1.236.0-036823f57
|
|
15452
15453
|
|
|
15453
15454
|
function unwrap(data) {
|
|
15454
15455
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -15465,6 +15466,7 @@
|
|
|
15465
15466
|
* For full license text, see the LICENSE.txt file
|
|
15466
15467
|
*/
|
|
15467
15468
|
|
|
15469
|
+
|
|
15468
15470
|
// instrumentation keys to be imported by ldsInstrumentation
|
|
15469
15471
|
const REFRESH_ADAPTER_EVENT = 'refresh-adapter-event';
|
|
15470
15472
|
const ADAPTER_UNFULFILLED_ERROR = 'adapter-unfulfilled-error';
|
|
@@ -16372,7 +16374,7 @@
|
|
|
16372
16374
|
const { apiFamily, name } = metadata;
|
|
16373
16375
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16374
16376
|
}
|
|
16375
|
-
// version: 1.
|
|
16377
|
+
// version: 1.236.0-036823f57
|
|
16376
16378
|
|
|
16377
16379
|
/**
|
|
16378
16380
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16471,7 +16473,7 @@
|
|
|
16471
16473
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16472
16474
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16473
16475
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16474
|
-
// engine version: 0.
|
|
16476
|
+
// engine version: 0.148.1-b9169b45
|
|
16475
16477
|
|
|
16476
16478
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16477
16479
|
|
|
@@ -16492,6 +16494,7 @@
|
|
|
16492
16494
|
* For full license text, see the LICENSE.txt file
|
|
16493
16495
|
*/
|
|
16494
16496
|
|
|
16497
|
+
|
|
16495
16498
|
/**
|
|
16496
16499
|
* Limit the frequency and the duration that a function is invoked.
|
|
16497
16500
|
*
|
|
@@ -17058,11 +17061,11 @@
|
|
|
17058
17061
|
entry['__metadata'] = createLink$3(metadataKey);
|
|
17059
17062
|
}
|
|
17060
17063
|
|
|
17061
|
-
const VERSION$
|
|
17064
|
+
const VERSION$1k = "275ae22194003d1e53f548b81219c5cb";
|
|
17062
17065
|
const select$1R = function ListColumnRepresentationSelect() {
|
|
17063
17066
|
return {
|
|
17064
17067
|
kind: 'Fragment',
|
|
17065
|
-
version: VERSION$
|
|
17068
|
+
version: VERSION$1k,
|
|
17066
17069
|
private: [],
|
|
17067
17070
|
selections: [
|
|
17068
17071
|
{
|
|
@@ -17085,7 +17088,7 @@
|
|
|
17085
17088
|
};
|
|
17086
17089
|
};
|
|
17087
17090
|
|
|
17088
|
-
const VERSION$
|
|
17091
|
+
const VERSION$1j = "623aa9ce3a11031e35faf5671a41746e";
|
|
17089
17092
|
function validate$1H(obj, path = 'ListFilterByInfoRepresentation') {
|
|
17090
17093
|
const v_error = (() => {
|
|
17091
17094
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
@@ -17124,7 +17127,7 @@
|
|
|
17124
17127
|
const select$1Q = function ListFilterByInfoRepresentationSelect() {
|
|
17125
17128
|
return {
|
|
17126
17129
|
kind: 'Fragment',
|
|
17127
|
-
version: VERSION$
|
|
17130
|
+
version: VERSION$1j,
|
|
17128
17131
|
private: [],
|
|
17129
17132
|
selections: [
|
|
17130
17133
|
{
|
|
@@ -17148,11 +17151,11 @@
|
|
|
17148
17151
|
};
|
|
17149
17152
|
};
|
|
17150
17153
|
|
|
17151
|
-
const VERSION$
|
|
17154
|
+
const VERSION$1i = "76042ff4af603b2ac0ec69fa0bd12046";
|
|
17152
17155
|
const select$1P = function ListReferenceRepresentationSelect() {
|
|
17153
17156
|
return {
|
|
17154
17157
|
kind: 'Fragment',
|
|
17155
|
-
version: VERSION$
|
|
17158
|
+
version: VERSION$1i,
|
|
17156
17159
|
private: [],
|
|
17157
17160
|
selections: [
|
|
17158
17161
|
{
|
|
@@ -17198,11 +17201,11 @@
|
|
|
17198
17201
|
return true;
|
|
17199
17202
|
}
|
|
17200
17203
|
|
|
17201
|
-
const VERSION$
|
|
17204
|
+
const VERSION$1h = "32def9b631252c12b91a8209c1f49f5a";
|
|
17202
17205
|
const select$1O = function ListOrderByInfoRepresentationSelect() {
|
|
17203
17206
|
return {
|
|
17204
17207
|
kind: 'Fragment',
|
|
17205
|
-
version: VERSION$
|
|
17208
|
+
version: VERSION$1h,
|
|
17206
17209
|
private: [],
|
|
17207
17210
|
selections: [
|
|
17208
17211
|
{
|
|
@@ -17221,7 +17224,7 @@
|
|
|
17221
17224
|
};
|
|
17222
17225
|
};
|
|
17223
17226
|
|
|
17224
|
-
const VERSION$
|
|
17227
|
+
const VERSION$1g = "2634258f216db34315c06d759a35676d";
|
|
17225
17228
|
function validate$1E(obj, path = 'ListScopeEntityRepresentation') {
|
|
17226
17229
|
const v_error = (() => {
|
|
17227
17230
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
@@ -17243,7 +17246,7 @@
|
|
|
17243
17246
|
const select$1N = function ListScopeEntityRepresentationSelect() {
|
|
17244
17247
|
return {
|
|
17245
17248
|
kind: 'Fragment',
|
|
17246
|
-
version: VERSION$
|
|
17249
|
+
version: VERSION$1g,
|
|
17247
17250
|
private: [],
|
|
17248
17251
|
selections: [
|
|
17249
17252
|
{
|
|
@@ -17258,7 +17261,7 @@
|
|
|
17258
17261
|
};
|
|
17259
17262
|
};
|
|
17260
17263
|
|
|
17261
|
-
const VERSION$
|
|
17264
|
+
const VERSION$1f = "3b85c5a08d50ce328481b9f8ab56127b";
|
|
17262
17265
|
function validate$1D(obj, path = 'ListScopeRelatedEntityRepresentation') {
|
|
17263
17266
|
const v_error = (() => {
|
|
17264
17267
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
@@ -17285,7 +17288,7 @@
|
|
|
17285
17288
|
const select$1M = function ListScopeRelatedEntityRepresentationSelect() {
|
|
17286
17289
|
return {
|
|
17287
17290
|
kind: 'Fragment',
|
|
17288
|
-
version: VERSION$
|
|
17291
|
+
version: VERSION$1f,
|
|
17289
17292
|
private: [],
|
|
17290
17293
|
selections: [
|
|
17291
17294
|
{
|
|
@@ -17304,7 +17307,7 @@
|
|
|
17304
17307
|
};
|
|
17305
17308
|
};
|
|
17306
17309
|
|
|
17307
|
-
const VERSION$
|
|
17310
|
+
const VERSION$1e = "a51de242c746e5500a833e84dfaa2170";
|
|
17308
17311
|
function validate$1C(obj, path = 'ListScopeRepresentation') {
|
|
17309
17312
|
const v_error = (() => {
|
|
17310
17313
|
if (typeof obj !== 'object' || ArrayIsArray$2(obj) || obj === null) {
|
|
@@ -17386,7 +17389,7 @@
|
|
|
17386
17389
|
const { selections: ListScopeRelatedEntityRepresentation__selections, opaque: ListScopeRelatedEntityRepresentation__opaque, } = select$1M();
|
|
17387
17390
|
return {
|
|
17388
17391
|
kind: 'Fragment',
|
|
17389
|
-
version: VERSION$
|
|
17392
|
+
version: VERSION$1e,
|
|
17390
17393
|
private: [],
|
|
17391
17394
|
selections: [
|
|
17392
17395
|
{
|
|
@@ -17413,11 +17416,11 @@
|
|
|
17413
17416
|
};
|
|
17414
17417
|
};
|
|
17415
17418
|
|
|
17416
|
-
const VERSION$
|
|
17419
|
+
const VERSION$1d$1 = "6506134f4d72fdfa349fe60ef1af2413";
|
|
17417
17420
|
const select$1K = function ListUserPreferenceRepresentationSelect() {
|
|
17418
17421
|
return {
|
|
17419
17422
|
kind: 'Fragment',
|
|
17420
|
-
version: VERSION$
|
|
17423
|
+
version: VERSION$1d$1,
|
|
17421
17424
|
private: [],
|
|
17422
17425
|
selections: [
|
|
17423
17426
|
{
|
|
@@ -17435,9 +17438,9 @@
|
|
|
17435
17438
|
};
|
|
17436
17439
|
|
|
17437
17440
|
const TTL$y = 900000;
|
|
17438
|
-
const VERSION$
|
|
17441
|
+
const VERSION$1c$1 = "8b55d621d80c84ec2e331abc4e12fc56";
|
|
17439
17442
|
const RepresentationType$R = 'ListInfoRepresentation';
|
|
17440
|
-
function keyBuilder$
|
|
17443
|
+
function keyBuilder$1V(luvio, config) {
|
|
17441
17444
|
return keyPrefix$1 + '::' + RepresentationType$R + ':' + (config.listViewApiName === null ? '' : config.listViewApiName) + ':' + config.objectApiName + ':' + config.type;
|
|
17442
17445
|
}
|
|
17443
17446
|
function keyBuilderFromType$A(luvio, object) {
|
|
@@ -17446,7 +17449,7 @@
|
|
|
17446
17449
|
objectApiName: object.listReference.objectApiName,
|
|
17447
17450
|
type: object.listReference.type
|
|
17448
17451
|
};
|
|
17449
|
-
return keyBuilder$
|
|
17452
|
+
return keyBuilder$1V(luvio, keyParams);
|
|
17450
17453
|
}
|
|
17451
17454
|
function normalize$L(input, existing, path, luvio, store, timestamp) {
|
|
17452
17455
|
return input;
|
|
@@ -17460,7 +17463,7 @@
|
|
|
17460
17463
|
const { selections: ListUserPreferenceRepresentation__selections, opaque: ListUserPreferenceRepresentation__opaque, } = select$1K();
|
|
17461
17464
|
return {
|
|
17462
17465
|
kind: 'Fragment',
|
|
17463
|
-
version: VERSION$
|
|
17466
|
+
version: VERSION$1c$1,
|
|
17464
17467
|
private: [
|
|
17465
17468
|
'eTag'
|
|
17466
17469
|
],
|
|
@@ -17550,7 +17553,7 @@
|
|
|
17550
17553
|
const ingest$L$1 = function ListInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
17551
17554
|
const key = keyBuilderFromType$A(luvio, input);
|
|
17552
17555
|
const ttlToUse = TTL$y;
|
|
17553
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$L, "UiApi", VERSION$
|
|
17556
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$L, "UiApi", VERSION$1c$1, RepresentationType$R, equals$_);
|
|
17554
17557
|
return createLink$3(key);
|
|
17555
17558
|
};
|
|
17556
17559
|
function getTypeCacheKeys$S$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -17564,7 +17567,7 @@
|
|
|
17564
17567
|
}
|
|
17565
17568
|
const notifyUpdateAvailableFactory$4 = (luvio) => {
|
|
17566
17569
|
return function notifyListInfoUpdateAvailable(configs) {
|
|
17567
|
-
const keys = configs.map(c => keyBuilder$
|
|
17570
|
+
const keys = configs.map(c => keyBuilder$1V(luvio, c));
|
|
17568
17571
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
17569
17572
|
};
|
|
17570
17573
|
};
|
|
@@ -17611,11 +17614,11 @@
|
|
|
17611
17614
|
return undefined;
|
|
17612
17615
|
}
|
|
17613
17616
|
|
|
17614
|
-
const VERSION$
|
|
17617
|
+
const VERSION$1b$1 = "d1e589a127fb1060c89070cdb6f500b2";
|
|
17615
17618
|
const select$1I = function RecordTypeInfoRepresentationSelect() {
|
|
17616
17619
|
return {
|
|
17617
17620
|
kind: 'Fragment',
|
|
17618
|
-
version: VERSION$
|
|
17621
|
+
version: VERSION$1b$1,
|
|
17619
17622
|
private: [],
|
|
17620
17623
|
selections: [
|
|
17621
17624
|
{
|
|
@@ -17670,7 +17673,7 @@
|
|
|
17670
17673
|
return true;
|
|
17671
17674
|
}
|
|
17672
17675
|
|
|
17673
|
-
const VERSION$
|
|
17676
|
+
const VERSION$1a$1 = "195d918987a35f45e1aa4dce9a11d8c5";
|
|
17674
17677
|
const RepresentationType$Q = 'FieldValueRepresentation';
|
|
17675
17678
|
function normalize$K(input, existing, path, luvio, store, timestamp) {
|
|
17676
17679
|
const input_value = input.value;
|
|
@@ -17692,7 +17695,7 @@
|
|
|
17692
17695
|
const select$1H = function FieldValueRepresentationSelect() {
|
|
17693
17696
|
return {
|
|
17694
17697
|
kind: 'Fragment',
|
|
17695
|
-
version: VERSION$
|
|
17698
|
+
version: VERSION$1a$1,
|
|
17696
17699
|
private: [],
|
|
17697
17700
|
selections: [
|
|
17698
17701
|
{
|
|
@@ -17729,7 +17732,7 @@
|
|
|
17729
17732
|
const ingest$K$1 = function FieldValueRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
17730
17733
|
const key = path.fullPath;
|
|
17731
17734
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
17732
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$K, "UiApi", VERSION$
|
|
17735
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$K, "UiApi", VERSION$1a$1, RepresentationType$Q, equals$Y);
|
|
17733
17736
|
return createLink$3(key);
|
|
17734
17737
|
};
|
|
17735
17738
|
function getTypeCacheKeys$R$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -17772,7 +17775,7 @@
|
|
|
17772
17775
|
};
|
|
17773
17776
|
|
|
17774
17777
|
const TTL$x = 120000;
|
|
17775
|
-
const VERSION$
|
|
17778
|
+
const VERSION$19$1 = "79cb5ac9f44542f683d00245fdfe500d";
|
|
17776
17779
|
const RepresentationType$P = 'RecordCollectionRepresentation';
|
|
17777
17780
|
function normalize$J(input, existing, path, luvio, store, timestamp) {
|
|
17778
17781
|
const input_records = input.records;
|
|
@@ -17796,7 +17799,7 @@
|
|
|
17796
17799
|
const select$1G = function RecordCollectionRepresentationSelect() {
|
|
17797
17800
|
return {
|
|
17798
17801
|
kind: 'Fragment',
|
|
17799
|
-
version: VERSION$
|
|
17802
|
+
version: VERSION$19$1,
|
|
17800
17803
|
private: [],
|
|
17801
17804
|
selections: [
|
|
17802
17805
|
{
|
|
@@ -17887,7 +17890,7 @@
|
|
|
17887
17890
|
const ingest$J$1 = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
17888
17891
|
const key = path.fullPath;
|
|
17889
17892
|
const ttlToUse = TTL$x;
|
|
17890
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$J, "UiApi", VERSION$
|
|
17893
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$J, "UiApi", VERSION$19$1, RepresentationType$P, equals$X);
|
|
17891
17894
|
return createLink$3(key);
|
|
17892
17895
|
};
|
|
17893
17896
|
function getTypeCacheKeys$P$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -17915,16 +17918,16 @@
|
|
|
17915
17918
|
};
|
|
17916
17919
|
|
|
17917
17920
|
const TTL$w = 30000;
|
|
17918
|
-
const VERSION$
|
|
17921
|
+
const VERSION$18$1 = "98c5b18512e48ca8d28727549507e4ba";
|
|
17919
17922
|
const RepresentationType$O = 'RecordRepresentation';
|
|
17920
|
-
function keyBuilder$
|
|
17923
|
+
function keyBuilder$1U(luvio, config) {
|
|
17921
17924
|
return keyPrefix$1 + '::' + RepresentationType$O + ':' + config.recordId;
|
|
17922
17925
|
}
|
|
17923
17926
|
function keyBuilderFromType$y(luvio, object) {
|
|
17924
17927
|
const keyParams = {
|
|
17925
17928
|
recordId: object.id
|
|
17926
17929
|
};
|
|
17927
|
-
return keyBuilder$
|
|
17930
|
+
return keyBuilder$1U(luvio, keyParams);
|
|
17928
17931
|
}
|
|
17929
17932
|
function dynamicNormalize$5(ingestParams) {
|
|
17930
17933
|
return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
|
|
@@ -17973,7 +17976,7 @@
|
|
|
17973
17976
|
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$1I();
|
|
17974
17977
|
return {
|
|
17975
17978
|
kind: 'Fragment',
|
|
17976
|
-
version: VERSION$
|
|
17979
|
+
version: VERSION$18$1,
|
|
17977
17980
|
private: [
|
|
17978
17981
|
'eTag',
|
|
17979
17982
|
'weakEtag'
|
|
@@ -18040,7 +18043,7 @@
|
|
|
18040
18043
|
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$1I();
|
|
18041
18044
|
return {
|
|
18042
18045
|
kind: 'Fragment',
|
|
18043
|
-
version: VERSION$
|
|
18046
|
+
version: VERSION$18$1,
|
|
18044
18047
|
private: [
|
|
18045
18048
|
'eTag',
|
|
18046
18049
|
'weakEtag'
|
|
@@ -18177,7 +18180,7 @@
|
|
|
18177
18180
|
}
|
|
18178
18181
|
const notifyUpdateAvailableFactory$3 = (luvio) => {
|
|
18179
18182
|
return function notifyRecordUpdateAvailable(configs) {
|
|
18180
|
-
const keys = configs.map(c => keyBuilder$
|
|
18183
|
+
const keys = configs.map(c => keyBuilder$1U(luvio, c));
|
|
18181
18184
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
18182
18185
|
};
|
|
18183
18186
|
};
|
|
@@ -19557,7 +19560,7 @@
|
|
|
19557
19560
|
kind: 'Fragment',
|
|
19558
19561
|
private: ['eTag', 'weakEtag'],
|
|
19559
19562
|
selections: createRecordSelection(childFieldDefinition),
|
|
19560
|
-
version: VERSION$
|
|
19563
|
+
version: VERSION$18$1,
|
|
19561
19564
|
},
|
|
19562
19565
|
};
|
|
19563
19566
|
}
|
|
@@ -19567,7 +19570,7 @@
|
|
|
19567
19570
|
required: childFieldDefinition.optional === true ? false : undefined,
|
|
19568
19571
|
fragment: {
|
|
19569
19572
|
kind: 'Fragment',
|
|
19570
|
-
version: VERSION$
|
|
19573
|
+
version: VERSION$1a$1,
|
|
19571
19574
|
private: [],
|
|
19572
19575
|
selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
|
|
19573
19576
|
},
|
|
@@ -19599,7 +19602,7 @@
|
|
|
19599
19602
|
kind: 'Fragment',
|
|
19600
19603
|
private: [],
|
|
19601
19604
|
selections: buildSelectionFromRecord(fieldValue),
|
|
19602
|
-
version: VERSION$
|
|
19605
|
+
version: VERSION$18$1,
|
|
19603
19606
|
},
|
|
19604
19607
|
};
|
|
19605
19608
|
}
|
|
@@ -19609,7 +19612,7 @@
|
|
|
19609
19612
|
required: undefined,
|
|
19610
19613
|
fragment: {
|
|
19611
19614
|
kind: 'Fragment',
|
|
19612
|
-
version: VERSION$
|
|
19615
|
+
version: VERSION$1a$1,
|
|
19613
19616
|
private: [],
|
|
19614
19617
|
selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
|
|
19615
19618
|
},
|
|
@@ -20167,7 +20170,7 @@
|
|
|
20167
20170
|
name: existing.apiName,
|
|
20168
20171
|
children: {},
|
|
20169
20172
|
};
|
|
20170
|
-
const recordKey = keyBuilder$
|
|
20173
|
+
const recordKey = keyBuilder$1U(luvio, {
|
|
20171
20174
|
recordId: incoming.id,
|
|
20172
20175
|
});
|
|
20173
20176
|
const trackedFieldsConfig = {
|
|
@@ -20436,7 +20439,7 @@
|
|
|
20436
20439
|
ttl: TTL$w,
|
|
20437
20440
|
representationName: RepresentationType$O,
|
|
20438
20441
|
namespace: keyPrefix$1,
|
|
20439
|
-
version: VERSION$
|
|
20442
|
+
version: VERSION$18$1,
|
|
20440
20443
|
});
|
|
20441
20444
|
return createLink$3(key);
|
|
20442
20445
|
};
|
|
@@ -20532,8 +20535,8 @@
|
|
|
20532
20535
|
};
|
|
20533
20536
|
};
|
|
20534
20537
|
|
|
20535
|
-
function keyBuilder$
|
|
20536
|
-
return keyBuilder$
|
|
20538
|
+
function keyBuilder$1T(luvio, params) {
|
|
20539
|
+
return keyBuilder$1U(luvio, {
|
|
20537
20540
|
recordId: params.urlParams.recordId
|
|
20538
20541
|
});
|
|
20539
20542
|
}
|
|
@@ -20592,12 +20595,12 @@
|
|
|
20592
20595
|
// used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
|
|
20593
20596
|
function buildRecordSelector(luvio, recordId, fields, optionalFields) {
|
|
20594
20597
|
return {
|
|
20595
|
-
recordId: keyBuilder$
|
|
20598
|
+
recordId: keyBuilder$1U(luvio, { recordId }),
|
|
20596
20599
|
node: {
|
|
20597
20600
|
kind: 'Fragment',
|
|
20598
20601
|
private: ['eTag', 'weakEtag'],
|
|
20599
20602
|
selections: buildSelectionFromFields(fields, optionalFields),
|
|
20600
|
-
version: VERSION$
|
|
20603
|
+
version: VERSION$18$1,
|
|
20601
20604
|
},
|
|
20602
20605
|
variables: {},
|
|
20603
20606
|
};
|
|
@@ -20611,7 +20614,7 @@
|
|
|
20611
20614
|
function prepareRequest$6(luvio, config) {
|
|
20612
20615
|
const { recordId, fields } = config;
|
|
20613
20616
|
// Should this go into the coersion logic?
|
|
20614
|
-
const key = keyBuilder$
|
|
20617
|
+
const key = keyBuilder$1T(luvio, createResourceParams$W(config));
|
|
20615
20618
|
const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
|
|
20616
20619
|
maxDepth: configurationForRestAdapters$1.getTrackedFieldDepthOnCacheMiss(),
|
|
20617
20620
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters$1.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
@@ -20715,17 +20718,17 @@
|
|
|
20715
20718
|
response.results.length === 1);
|
|
20716
20719
|
}
|
|
20717
20720
|
|
|
20718
|
-
const VERSION$
|
|
20721
|
+
const VERSION$17$1 = "98cce53b8d13b1883d001bbdaab24383";
|
|
20719
20722
|
|
|
20720
|
-
const nonCachedErrors$
|
|
20721
|
-
function ingestSuccessChildResourceParams$
|
|
20723
|
+
const nonCachedErrors$7 = ObjectCreate$1$1(null);
|
|
20724
|
+
function ingestSuccessChildResourceParams$7(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
|
|
20722
20725
|
const childSnapshotDataResponses = [];
|
|
20723
20726
|
let seenRecords = new StoreKeySet();
|
|
20724
20727
|
let snapshotState = 'Fulfilled';
|
|
20725
20728
|
const now = Date.now();
|
|
20726
20729
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
20727
20730
|
const childResourceParams = childResourceParamsArray[index];
|
|
20728
|
-
const childKey = keyBuilder$
|
|
20731
|
+
const childKey = keyBuilder$1T(luvio, childResourceParams);
|
|
20729
20732
|
const result = childEnvelopes[index];
|
|
20730
20733
|
const { statusCode: childStatusCode, result: childBody } = result;
|
|
20731
20734
|
if (childStatusCode === 200) {
|
|
@@ -20780,14 +20783,14 @@
|
|
|
20780
20783
|
}
|
|
20781
20784
|
// track non-cached responses so rebuilds work properly
|
|
20782
20785
|
if (childStatusCode !== 404 && childStatusCode !== 200) {
|
|
20783
|
-
nonCachedErrors$
|
|
20786
|
+
nonCachedErrors$7[childKey] = {
|
|
20784
20787
|
expiration: now + TTL$w,
|
|
20785
20788
|
response: childBody,
|
|
20786
20789
|
status: childStatusCode,
|
|
20787
20790
|
};
|
|
20788
20791
|
}
|
|
20789
20792
|
else {
|
|
20790
|
-
delete nonCachedErrors$
|
|
20793
|
+
delete nonCachedErrors$7[childKey];
|
|
20791
20794
|
}
|
|
20792
20795
|
}
|
|
20793
20796
|
const childSnapshotData = {
|
|
@@ -20801,7 +20804,7 @@
|
|
|
20801
20804
|
};
|
|
20802
20805
|
}
|
|
20803
20806
|
|
|
20804
|
-
function selectChildResourceParams$
|
|
20807
|
+
function selectChildResourceParams$7(luvio, childResources, resourceParams) {
|
|
20805
20808
|
const envelopeBodyPath = 'result';
|
|
20806
20809
|
const envelopeStatusCodePath = 'statusCode';
|
|
20807
20810
|
const envelopePath = 'results';
|
|
@@ -20812,11 +20815,11 @@
|
|
|
20812
20815
|
read: (reader) => {
|
|
20813
20816
|
// Top-level 404 lookup
|
|
20814
20817
|
const compositeSnapshot = luvio.storeLookup({
|
|
20815
|
-
recordId: keyBuilder$
|
|
20818
|
+
recordId: keyBuilder$1S(luvio, resourceParams),
|
|
20816
20819
|
node: {
|
|
20817
20820
|
kind: 'Fragment',
|
|
20818
20821
|
private: [],
|
|
20819
|
-
version: VERSION$
|
|
20822
|
+
version: VERSION$17$1,
|
|
20820
20823
|
},
|
|
20821
20824
|
variables: {},
|
|
20822
20825
|
});
|
|
@@ -20836,7 +20839,7 @@
|
|
|
20836
20839
|
reader.enterPath(i);
|
|
20837
20840
|
reader.enterPath(envelopeBodyPath);
|
|
20838
20841
|
const childResource = childResources[i];
|
|
20839
|
-
const childKey = keyBuilder$
|
|
20842
|
+
const childKey = keyBuilder$1T(luvio, childResource);
|
|
20840
20843
|
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
20841
20844
|
const childSnapshot = reader.read(buildRecordSelector(luvio, childResource.urlParams.recordId, childResource.queryParams.fields || [], childResource.queryParams.optionalFields || []));
|
|
20842
20845
|
reader.exitPath();
|
|
@@ -20882,7 +20885,7 @@
|
|
|
20882
20885
|
// has non-cached errors (since the top-level composite
|
|
20883
20886
|
// snapshot will look like an Unfulfilled snapshot
|
|
20884
20887
|
// instead of an error snapshot).
|
|
20885
|
-
const nonCachedError = nonCachedErrors$
|
|
20888
|
+
const nonCachedError = nonCachedErrors$7[childKey];
|
|
20886
20889
|
if (nonCachedError === undefined ||
|
|
20887
20890
|
nonCachedError.expiration < timestamp) {
|
|
20888
20891
|
reader.markMissingLink(childKey);
|
|
@@ -20920,8 +20923,8 @@
|
|
|
20920
20923
|
}
|
|
20921
20924
|
|
|
20922
20925
|
ObjectCreate$1$1(null);
|
|
20923
|
-
function createChildResourceParams$
|
|
20924
|
-
|
|
20926
|
+
function createChildResourceParams$b(resourceParams) {
|
|
20927
|
+
let childConfigs = [];
|
|
20925
20928
|
for (let index = 0, len = resourceParams.urlParams.recordIds.length; index < len; index += 1) {
|
|
20926
20929
|
const item = resourceParams.urlParams.recordIds[index];
|
|
20927
20930
|
childConfigs.push({
|
|
@@ -20936,12 +20939,12 @@
|
|
|
20936
20939
|
}
|
|
20937
20940
|
return childConfigs;
|
|
20938
20941
|
}
|
|
20939
|
-
function keyBuilder$
|
|
20942
|
+
function keyBuilder$1S(luvio, params) {
|
|
20940
20943
|
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 + ')';
|
|
20941
20944
|
}
|
|
20942
20945
|
function getResponseCacheKeys$T(keys, luvio, resourceParams, response) {
|
|
20943
20946
|
const childEnvelopes = response.results;
|
|
20944
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
20947
|
+
const childResourceParamsArray = createChildResourceParams$b(resourceParams);
|
|
20945
20948
|
// get children keys
|
|
20946
20949
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
20947
20950
|
const childResourceParams = childResourceParamsArray[index];
|
|
@@ -20951,7 +20954,7 @@
|
|
|
20951
20954
|
getResponseCacheKeys$U(keys, luvio, childResourceParams, childBody);
|
|
20952
20955
|
}
|
|
20953
20956
|
else if (childStatusCode === 404) {
|
|
20954
|
-
const childKey = keyBuilder$
|
|
20957
|
+
const childKey = keyBuilder$1T(luvio, childResourceParams);
|
|
20955
20958
|
keys.set(childKey, {
|
|
20956
20959
|
namespace: keyPrefix$1,
|
|
20957
20960
|
representationName: RepresentationType$O,
|
|
@@ -20961,7 +20964,7 @@
|
|
|
20961
20964
|
}
|
|
20962
20965
|
}
|
|
20963
20966
|
function ingestError$G(luvio, params, error, snapshotRefresh) {
|
|
20964
|
-
const key = keyBuilder$
|
|
20967
|
+
const key = keyBuilder$1S(luvio, params);
|
|
20965
20968
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
20966
20969
|
luvio.storeIngestError(key, errorSnapshot);
|
|
20967
20970
|
return errorSnapshot;
|
|
@@ -21006,7 +21009,7 @@
|
|
|
21006
21009
|
};
|
|
21007
21010
|
}
|
|
21008
21011
|
|
|
21009
|
-
function createChildResourceParams$
|
|
21012
|
+
function createChildResourceParams$a(config) {
|
|
21010
21013
|
const childResources = [];
|
|
21011
21014
|
const { records } = config;
|
|
21012
21015
|
for (let outerIdx = 0, numOfRecordBatches = records.length; outerIdx < numOfRecordBatches; outerIdx += 1) {
|
|
@@ -21033,17 +21036,17 @@
|
|
|
21033
21036
|
}
|
|
21034
21037
|
|
|
21035
21038
|
function adapterFragment$E(luvio, config) {
|
|
21036
|
-
const childResources = createChildResourceParams$
|
|
21039
|
+
const childResources = createChildResourceParams$a(config);
|
|
21037
21040
|
const resourceParams = createResourceParams$V(config);
|
|
21038
|
-
return selectChildResourceParams$
|
|
21041
|
+
return selectChildResourceParams$7(luvio, childResources, resourceParams);
|
|
21039
21042
|
}
|
|
21040
21043
|
|
|
21041
21044
|
function onFetchResponseSuccess$I(luvio, config, resourceParams, response, serverRequestCount = 0) {
|
|
21042
21045
|
const childEnvelopes = response.body.results;
|
|
21043
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
21046
|
+
const childResourceParamsArray = createChildResourceParams$a(config);
|
|
21044
21047
|
const snapshotStateFulfilled = 'Fulfilled';
|
|
21045
|
-
const key = keyBuilder$
|
|
21046
|
-
const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$
|
|
21048
|
+
const key = keyBuilder$1S(luvio, resourceParams);
|
|
21049
|
+
const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$7(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
|
|
21047
21050
|
const snapshot = {
|
|
21048
21051
|
recordId: key,
|
|
21049
21052
|
data: childSnapshotData,
|
|
@@ -21230,9 +21233,9 @@
|
|
|
21230
21233
|
}
|
|
21231
21234
|
|
|
21232
21235
|
const TTL$v = 30000;
|
|
21233
|
-
const VERSION$
|
|
21236
|
+
const VERSION$16$1 = "614ef19823027c07fa6deb9a149619d2";
|
|
21234
21237
|
const RepresentationType$N = 'ListRecordCollectionRepresentation';
|
|
21235
|
-
function keyBuilder$
|
|
21238
|
+
function keyBuilder$1R(luvio, config) {
|
|
21236
21239
|
return keyPrefix$1 + '::' + RepresentationType$N + ':' + (config.listViewId === null ? '' : config.listViewId) + ':' + (config.sortBy === null ? '' : '[' + config.sortBy.join(',') + ']') + ':' + config.objectApiName + ':' + (config.listViewApiName === null ? '' : config.listViewApiName);
|
|
21237
21240
|
}
|
|
21238
21241
|
function keyBuilderFromType$x(luvio, object) {
|
|
@@ -21242,10 +21245,10 @@
|
|
|
21242
21245
|
objectApiName: object.listReference.objectApiName,
|
|
21243
21246
|
listViewApiName: object.listReference.listViewApiName
|
|
21244
21247
|
};
|
|
21245
|
-
return keyBuilder$
|
|
21248
|
+
return keyBuilder$1R(luvio, keyParams);
|
|
21246
21249
|
}
|
|
21247
21250
|
function paginationKeyBuilder(luvio, config) {
|
|
21248
|
-
return keyBuilder$
|
|
21251
|
+
return keyBuilder$1R(luvio, config) + '__pagination';
|
|
21249
21252
|
}
|
|
21250
21253
|
function normalize$H(input, existing, path, luvio, store, timestamp) {
|
|
21251
21254
|
const input_records = input.records;
|
|
@@ -21272,7 +21275,7 @@
|
|
|
21272
21275
|
kind: 'Fragment',
|
|
21273
21276
|
reader: true,
|
|
21274
21277
|
synthetic: false,
|
|
21275
|
-
version: VERSION$
|
|
21278
|
+
version: VERSION$16$1,
|
|
21276
21279
|
read: (source, reader) => {
|
|
21277
21280
|
const sink = {};
|
|
21278
21281
|
if (paginationParams === undefined) {
|
|
@@ -21318,7 +21321,7 @@
|
|
|
21318
21321
|
reader.readScalar('count', metadataProperties, sink);
|
|
21319
21322
|
reader.exitPath();
|
|
21320
21323
|
reader.enterPath('fields');
|
|
21321
|
-
reader.readScalarPlural('fields', source, sink);
|
|
21324
|
+
reader.readScalarPlural('fields', source, sink, true);
|
|
21322
21325
|
reader.exitPath();
|
|
21323
21326
|
reader.enterPath('listInfoETag');
|
|
21324
21327
|
reader.readScalar('listInfoETag', source, sink);
|
|
@@ -21331,14 +21334,14 @@
|
|
|
21331
21334
|
}, source, sink);
|
|
21332
21335
|
reader.exitPath();
|
|
21333
21336
|
reader.enterPath('optionalFields');
|
|
21334
|
-
reader.readScalarPlural('optionalFields', source, sink);
|
|
21337
|
+
reader.readScalarPlural('optionalFields', source, sink, true);
|
|
21335
21338
|
reader.exitPath();
|
|
21336
21339
|
reader.enterPath('sortBy');
|
|
21337
21340
|
if (source['sortBy'] === null) {
|
|
21338
21341
|
reader.readScalar('sortBy', source, sink);
|
|
21339
21342
|
}
|
|
21340
21343
|
else {
|
|
21341
|
-
reader.readScalarPlural('sortBy', source, sink);
|
|
21344
|
+
reader.readScalarPlural('sortBy', source, sink, true);
|
|
21342
21345
|
}
|
|
21343
21346
|
reader.exitPath();
|
|
21344
21347
|
return sink;
|
|
@@ -21386,7 +21389,7 @@
|
|
|
21386
21389
|
kind: 'Fragment',
|
|
21387
21390
|
reader: true,
|
|
21388
21391
|
synthetic: false,
|
|
21389
|
-
version: VERSION$
|
|
21392
|
+
version: VERSION$16$1,
|
|
21390
21393
|
read: (source, reader) => {
|
|
21391
21394
|
const sink = {};
|
|
21392
21395
|
if (paginationParams === undefined) {
|
|
@@ -21428,7 +21431,7 @@
|
|
|
21428
21431
|
reader.readScalar('count', metadataProperties, sink);
|
|
21429
21432
|
reader.exitPath();
|
|
21430
21433
|
reader.enterPath('fields');
|
|
21431
|
-
reader.readScalarPlural('fields', source, sink);
|
|
21434
|
+
reader.readScalarPlural('fields', source, sink, true);
|
|
21432
21435
|
reader.exitPath();
|
|
21433
21436
|
reader.enterPath('listInfoETag');
|
|
21434
21437
|
reader.readScalar('listInfoETag', source, sink);
|
|
@@ -21441,14 +21444,14 @@
|
|
|
21441
21444
|
}, source, sink);
|
|
21442
21445
|
reader.exitPath();
|
|
21443
21446
|
reader.enterPath('optionalFields');
|
|
21444
|
-
reader.readScalarPlural('optionalFields', source, sink);
|
|
21447
|
+
reader.readScalarPlural('optionalFields', source, sink, true);
|
|
21445
21448
|
reader.exitPath();
|
|
21446
21449
|
reader.enterPath('sortBy');
|
|
21447
21450
|
if (source['sortBy'] === null) {
|
|
21448
21451
|
reader.readScalar('sortBy', source, sink);
|
|
21449
21452
|
}
|
|
21450
21453
|
else {
|
|
21451
|
-
reader.readScalarPlural('sortBy', source, sink);
|
|
21454
|
+
reader.readScalarPlural('sortBy', source, sink, true);
|
|
21452
21455
|
}
|
|
21453
21456
|
reader.exitPath();
|
|
21454
21457
|
return sink;
|
|
@@ -21611,7 +21614,7 @@
|
|
|
21611
21614
|
const storeMetadataParams = {
|
|
21612
21615
|
ttl: ttlToUse,
|
|
21613
21616
|
namespace: "UiApi",
|
|
21614
|
-
version: VERSION$
|
|
21617
|
+
version: VERSION$16$1,
|
|
21615
21618
|
representationName: RepresentationType$N,
|
|
21616
21619
|
};
|
|
21617
21620
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
@@ -21637,9 +21640,9 @@
|
|
|
21637
21640
|
}
|
|
21638
21641
|
}
|
|
21639
21642
|
|
|
21640
|
-
const VERSION$
|
|
21643
|
+
const VERSION$15$1 = "cf8d2eb042188974da26ffe6618cfd07";
|
|
21641
21644
|
const RepresentationType$M = 'ListUiRepresentation';
|
|
21642
|
-
function keyBuilder$
|
|
21645
|
+
function keyBuilder$1Q(luvio, config) {
|
|
21643
21646
|
return keyPrefix$1 + '::' + RepresentationType$M + ':' + (config.listViewApiName === null ? '' : config.listViewApiName) + ':' + config.objectApiName + ':' + config.type + ':' + (config.sortBy === null ? '' : '[' + config.sortBy.join(',') + ']');
|
|
21644
21647
|
}
|
|
21645
21648
|
function keyBuilderFromType$w(luvio, object) {
|
|
@@ -21649,7 +21652,7 @@
|
|
|
21649
21652
|
type: object.info.listReference.type,
|
|
21650
21653
|
sortBy: object.records.sortBy
|
|
21651
21654
|
};
|
|
21652
|
-
return keyBuilder$
|
|
21655
|
+
return keyBuilder$1Q(luvio, keyParams);
|
|
21653
21656
|
}
|
|
21654
21657
|
function normalize$G(input, existing, path, luvio, store, timestamp) {
|
|
21655
21658
|
const input_info = input.info;
|
|
@@ -21691,7 +21694,7 @@
|
|
|
21691
21694
|
} : params.records;
|
|
21692
21695
|
return {
|
|
21693
21696
|
kind: 'Fragment',
|
|
21694
|
-
version: VERSION$
|
|
21697
|
+
version: VERSION$15$1,
|
|
21695
21698
|
private: [
|
|
21696
21699
|
'eTag'
|
|
21697
21700
|
],
|
|
@@ -21722,7 +21725,7 @@
|
|
|
21722
21725
|
const ingest$G$1 = function ListUiRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
21723
21726
|
const key = keyBuilderFromType$w(luvio, input);
|
|
21724
21727
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
21725
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$G, "UiApi", VERSION$
|
|
21728
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$G, "UiApi", VERSION$15$1, RepresentationType$M, equals$U);
|
|
21726
21729
|
return createLink$3(key);
|
|
21727
21730
|
};
|
|
21728
21731
|
function getTypeCacheKeys$M$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -21910,14 +21913,14 @@
|
|
|
21910
21913
|
* @param luvio Luvio
|
|
21911
21914
|
*/
|
|
21912
21915
|
function getListInfo(luvio, listRef, storeLookup) {
|
|
21913
|
-
const key = keyBuilder$
|
|
21916
|
+
const key = keyBuilder$1V(luvio, { ...listRef });
|
|
21914
21917
|
return storeLookup({
|
|
21915
21918
|
recordId: key,
|
|
21916
21919
|
node: {
|
|
21917
21920
|
kind: 'Fragment',
|
|
21918
21921
|
selections: LIST_INFO_SELECTIONS_ETAG,
|
|
21919
21922
|
private: [],
|
|
21920
|
-
version: VERSION$
|
|
21923
|
+
version: VERSION$1c$1,
|
|
21921
21924
|
},
|
|
21922
21925
|
variables: {},
|
|
21923
21926
|
});
|
|
@@ -22037,7 +22040,7 @@
|
|
|
22037
22040
|
addDefaultFields(qualifiedField, defaultFields_);
|
|
22038
22041
|
}
|
|
22039
22042
|
}
|
|
22040
|
-
const key = keyBuilder$
|
|
22043
|
+
const key = keyBuilder$1R(luvio, {
|
|
22041
22044
|
listViewId: listInfo.eTag,
|
|
22042
22045
|
sortBy: sortBy || null,
|
|
22043
22046
|
objectApiName: listInfo.listReference.objectApiName,
|
|
@@ -22082,7 +22085,7 @@
|
|
|
22082
22085
|
function setContext$2(adapterContext) {
|
|
22083
22086
|
context$2 = adapterContext;
|
|
22084
22087
|
}
|
|
22085
|
-
function keyBuilder$
|
|
22088
|
+
function keyBuilder$1P(luvio, params) {
|
|
22086
22089
|
const query = {
|
|
22087
22090
|
objectApiName: params.urlParams.objectApiName,
|
|
22088
22091
|
listViewApiName: params.urlParams.listViewApiName,
|
|
@@ -22093,7 +22096,7 @@
|
|
|
22093
22096
|
// Check and use any default values returned from the server (i.e. sortBy)
|
|
22094
22097
|
const config = { ...params.urlParams, ...params.queryParams };
|
|
22095
22098
|
const defaults = getServerDefaults(config, context$2);
|
|
22096
|
-
return keyBuilder$
|
|
22099
|
+
return keyBuilder$1R(luvio, {
|
|
22097
22100
|
objectApiName: listReference.objectApiName,
|
|
22098
22101
|
listViewApiName: listReference.listViewApiName,
|
|
22099
22102
|
listViewId: listReference.id,
|
|
@@ -22102,7 +22105,7 @@
|
|
|
22102
22105
|
}
|
|
22103
22106
|
// If there are no matching entries in the store, then we haven't fetched any data for this list view yet.
|
|
22104
22107
|
// Assuming that listViewId is empty and continue on
|
|
22105
|
-
return keyBuilder$
|
|
22108
|
+
return keyBuilder$1R(luvio, {
|
|
22106
22109
|
objectApiName: params.urlParams.objectApiName,
|
|
22107
22110
|
listViewApiName: params.urlParams.listViewApiName,
|
|
22108
22111
|
listViewId: '',
|
|
@@ -22120,14 +22123,14 @@
|
|
|
22120
22123
|
kind: 'Fragment',
|
|
22121
22124
|
private: ['eTag', 'weakEtag'],
|
|
22122
22125
|
selections: buildSelectionFromFields(fields, optionalFields),
|
|
22123
|
-
version: VERSION$
|
|
22126
|
+
version: VERSION$18$1
|
|
22124
22127
|
},
|
|
22125
22128
|
},
|
|
22126
22129
|
}, createPaginationParams$3(params));
|
|
22127
22130
|
}
|
|
22128
22131
|
function ingestSuccess$J(luvio, resourceParams, response, snapshotRefresh) {
|
|
22129
22132
|
const { body } = response;
|
|
22130
|
-
const key = keyBuilder$
|
|
22133
|
+
const key = keyBuilder$1P(luvio, resourceParams);
|
|
22131
22134
|
luvio.storeIngest(key, ingest$H$1, body);
|
|
22132
22135
|
const optionalFields = resourceParams.queryParams.optionalFields;
|
|
22133
22136
|
if (optionalFields && optionalFields.length > 0) {
|
|
@@ -22164,12 +22167,12 @@
|
|
|
22164
22167
|
getTypeCacheKeys$N$1(storeKeyMap, luvio, response);
|
|
22165
22168
|
}
|
|
22166
22169
|
function ingestError$F(luvio, params, error, snapshotRefresh) {
|
|
22167
|
-
const key = keyBuilder$
|
|
22170
|
+
const key = keyBuilder$1P(luvio, params);
|
|
22168
22171
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
22169
22172
|
const storeMetadataParams = {
|
|
22170
22173
|
ttl: TTL$v,
|
|
22171
22174
|
namespace: keyPrefix$1,
|
|
22172
|
-
version: VERSION$
|
|
22175
|
+
version: VERSION$16$1,
|
|
22173
22176
|
representationName: RepresentationType$N
|
|
22174
22177
|
};
|
|
22175
22178
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -22242,16 +22245,16 @@
|
|
|
22242
22245
|
return snapshot.state === 'Error';
|
|
22243
22246
|
}
|
|
22244
22247
|
|
|
22245
|
-
const VERSION$
|
|
22248
|
+
const VERSION$14$1 = "3529c5f7d0eb2206c90a52c6d9f721d4";
|
|
22246
22249
|
const RepresentationType$L = 'ListViewSummaryRepresentation';
|
|
22247
|
-
function keyBuilder$
|
|
22250
|
+
function keyBuilder$1O(luvio, config) {
|
|
22248
22251
|
return keyPrefix$1 + '::' + RepresentationType$L + ':' + (config.id === null ? '' : config.id);
|
|
22249
22252
|
}
|
|
22250
22253
|
function keyBuilderFromType$v(luvio, object) {
|
|
22251
22254
|
const keyParams = {
|
|
22252
22255
|
id: object.id
|
|
22253
22256
|
};
|
|
22254
|
-
return keyBuilder$
|
|
22257
|
+
return keyBuilder$1O(luvio, keyParams);
|
|
22255
22258
|
}
|
|
22256
22259
|
function normalize$F(input, existing, path, luvio, store, timestamp) {
|
|
22257
22260
|
return input;
|
|
@@ -22259,7 +22262,7 @@
|
|
|
22259
22262
|
const select$1C = function ListViewSummaryRepresentationSelect() {
|
|
22260
22263
|
return {
|
|
22261
22264
|
kind: 'Fragment',
|
|
22262
|
-
version: VERSION$
|
|
22265
|
+
version: VERSION$14$1,
|
|
22263
22266
|
private: [],
|
|
22264
22267
|
selections: [
|
|
22265
22268
|
{
|
|
@@ -22307,7 +22310,7 @@
|
|
|
22307
22310
|
const ingest$F$1 = function ListViewSummaryRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
22308
22311
|
const key = keyBuilderFromType$v(luvio, input);
|
|
22309
22312
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
22310
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$F, "UiApi", VERSION$
|
|
22313
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$F, "UiApi", VERSION$14$1, RepresentationType$L, equals$T);
|
|
22311
22314
|
return createLink$3(key);
|
|
22312
22315
|
};
|
|
22313
22316
|
function getTypeCacheKeys$L$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -22320,9 +22323,9 @@
|
|
|
22320
22323
|
});
|
|
22321
22324
|
}
|
|
22322
22325
|
|
|
22323
|
-
const VERSION$
|
|
22326
|
+
const VERSION$13$1 = "f4c79fe066da3558499d5ee88c72abcd";
|
|
22324
22327
|
const RepresentationType$K = 'ListViewSummaryCollectionRepresentation';
|
|
22325
|
-
function keyBuilder$
|
|
22328
|
+
function keyBuilder$1N(luvio, config) {
|
|
22326
22329
|
return keyPrefix$1 + '::' + RepresentationType$K + ':' + config.objectApiName + ':' + (config.queryString === null ? '' : config.queryString) + ':' + config.recentListsOnly;
|
|
22327
22330
|
}
|
|
22328
22331
|
function keyBuilderFromType$u(luvio, object) {
|
|
@@ -22331,7 +22334,7 @@
|
|
|
22331
22334
|
queryString: object.queryString,
|
|
22332
22335
|
recentListsOnly: object.recentListsOnly
|
|
22333
22336
|
};
|
|
22334
|
-
return keyBuilder$
|
|
22337
|
+
return keyBuilder$1N(luvio, keyParams);
|
|
22335
22338
|
}
|
|
22336
22339
|
function normalize$E(input, existing, path, luvio, store, timestamp) {
|
|
22337
22340
|
const input_lists = input.lists;
|
|
@@ -22357,7 +22360,7 @@
|
|
|
22357
22360
|
kind: 'Fragment',
|
|
22358
22361
|
reader: true,
|
|
22359
22362
|
synthetic: false,
|
|
22360
|
-
version: VERSION$
|
|
22363
|
+
version: VERSION$13$1,
|
|
22361
22364
|
read: (source, reader) => {
|
|
22362
22365
|
const sink = {};
|
|
22363
22366
|
if (paginationParams === undefined) {
|
|
@@ -22574,7 +22577,7 @@
|
|
|
22574
22577
|
const storeMetadataParams = {
|
|
22575
22578
|
ttl: ttlToUse,
|
|
22576
22579
|
namespace: "UiApi",
|
|
22577
|
-
version: VERSION$
|
|
22580
|
+
version: VERSION$13$1,
|
|
22578
22581
|
representationName: RepresentationType$K,
|
|
22579
22582
|
};
|
|
22580
22583
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
@@ -22601,7 +22604,7 @@
|
|
|
22601
22604
|
}
|
|
22602
22605
|
const notifyUpdateAvailableFactory$2 = (luvio) => {
|
|
22603
22606
|
return function notifyListViewSummaryUpdateAvailable(configs) {
|
|
22604
|
-
const keys = configs.map(c => keyBuilder$
|
|
22607
|
+
const keys = configs.map(c => keyBuilder$1N(luvio, c));
|
|
22605
22608
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
22606
22609
|
};
|
|
22607
22610
|
};
|
|
@@ -22617,8 +22620,8 @@
|
|
|
22617
22620
|
const paginationParams = createPaginationParams$2(params);
|
|
22618
22621
|
return select$1B(paginationParams);
|
|
22619
22622
|
}
|
|
22620
|
-
function keyBuilder$
|
|
22621
|
-
return keyBuilder$
|
|
22623
|
+
function keyBuilder$1M(luvio, params) {
|
|
22624
|
+
return keyBuilder$1N(luvio, {
|
|
22622
22625
|
objectApiName: params.urlParams.objectApiName,
|
|
22623
22626
|
queryString: params.queryParams.q || null,
|
|
22624
22627
|
recentListsOnly: params.queryParams.recentListsOnly || false
|
|
@@ -22629,7 +22632,7 @@
|
|
|
22629
22632
|
}
|
|
22630
22633
|
function ingestSuccess$I(luvio, resourceParams, response, snapshotRefresh) {
|
|
22631
22634
|
const { body } = response;
|
|
22632
|
-
const key = keyBuilder$
|
|
22635
|
+
const key = keyBuilder$1M(luvio, resourceParams);
|
|
22633
22636
|
luvio.storeIngest(key, ingest$E$1, body);
|
|
22634
22637
|
const snapshot = luvio.storeLookup({
|
|
22635
22638
|
recordId: key,
|
|
@@ -22640,7 +22643,7 @@
|
|
|
22640
22643
|
return snapshot;
|
|
22641
22644
|
}
|
|
22642
22645
|
function ingestError$E(luvio, params, error, snapshotRefresh) {
|
|
22643
|
-
const key = keyBuilder$
|
|
22646
|
+
const key = keyBuilder$1M(luvio, params);
|
|
22644
22647
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
22645
22648
|
luvio.storeIngestError(key, errorSnapshot);
|
|
22646
22649
|
return errorSnapshot;
|
|
@@ -22669,9 +22672,9 @@
|
|
|
22669
22672
|
];
|
|
22670
22673
|
const getListViewSummaryCollection_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$T, getListViewSummaryCollection_ConfigPropertyMetadata);
|
|
22671
22674
|
const createResourceParams$S = /*#__PURE__*/ createResourceParams$Y(getListViewSummaryCollection_ConfigPropertyMetadata);
|
|
22672
|
-
function keyBuilder$
|
|
22675
|
+
function keyBuilder$1L(luvio, config) {
|
|
22673
22676
|
const resourceParams = createResourceParams$S(config);
|
|
22674
|
-
return keyBuilder$
|
|
22677
|
+
return keyBuilder$1M(luvio, resourceParams);
|
|
22675
22678
|
}
|
|
22676
22679
|
function typeCheckConfig$Y(untrustedConfig) {
|
|
22677
22680
|
const config = {};
|
|
@@ -22754,12 +22757,12 @@
|
|
|
22754
22757
|
return items.length;
|
|
22755
22758
|
}
|
|
22756
22759
|
function getPaginationMetadata$2(luvio, resourceParams) {
|
|
22757
|
-
const key = keyBuilder$
|
|
22760
|
+
const key = keyBuilder$1M(luvio, resourceParams);
|
|
22758
22761
|
const selector = {
|
|
22759
22762
|
recordId: key,
|
|
22760
22763
|
node: {
|
|
22761
22764
|
kind: 'Fragment',
|
|
22762
|
-
version: VERSION$
|
|
22765
|
+
version: VERSION$13$1,
|
|
22763
22766
|
private: [],
|
|
22764
22767
|
selections: [
|
|
22765
22768
|
{
|
|
@@ -22802,7 +22805,7 @@
|
|
|
22802
22805
|
function buildCachedSnapshotCachePolicy$K(context, storeLookup) {
|
|
22803
22806
|
const { luvio, config } = context;
|
|
22804
22807
|
const selector = {
|
|
22805
|
-
recordId: keyBuilder$
|
|
22808
|
+
recordId: keyBuilder$1L(luvio, config),
|
|
22806
22809
|
node: adapterFragment$D(luvio, config),
|
|
22807
22810
|
variables: {},
|
|
22808
22811
|
};
|
|
@@ -22832,8 +22835,8 @@
|
|
|
22832
22835
|
pageSize: queryParams.pageSize === undefined ? 50 : queryParams.pageSize
|
|
22833
22836
|
};
|
|
22834
22837
|
}
|
|
22835
|
-
function keyBuilder$
|
|
22836
|
-
return keyBuilder$
|
|
22838
|
+
function keyBuilder$1K(luvio, params) {
|
|
22839
|
+
return keyBuilder$1Q(luvio, {
|
|
22837
22840
|
listViewApiName: null,
|
|
22838
22841
|
objectApiName: params.urlParams.objectApiName,
|
|
22839
22842
|
type: "mru",
|
|
@@ -22946,7 +22949,7 @@
|
|
|
22946
22949
|
kind: 'Fragment',
|
|
22947
22950
|
private: ['eTag', 'weakEtag'],
|
|
22948
22951
|
selections: buildSelectionFromFields(...fields.getRecordSelectionFieldSets()),
|
|
22949
|
-
version: VERSION$
|
|
22952
|
+
version: VERSION$18$1,
|
|
22950
22953
|
},
|
|
22951
22954
|
},
|
|
22952
22955
|
};
|
|
@@ -22969,7 +22972,7 @@
|
|
|
22969
22972
|
function onResourceSuccess_getMruListUi(luvio, config, response) {
|
|
22970
22973
|
const { body } = response;
|
|
22971
22974
|
const listInfo = body.info;
|
|
22972
|
-
const listUiKey = keyBuilder$
|
|
22975
|
+
const listUiKey = keyBuilder$1Q(luvio, {
|
|
22973
22976
|
...listInfo.listReference,
|
|
22974
22977
|
sortBy: body.records.sortBy,
|
|
22975
22978
|
});
|
|
@@ -22993,7 +22996,7 @@
|
|
|
22993
22996
|
const listFields_ = fields || listFields(luvio, config, listInfo);
|
|
22994
22997
|
const resourceParams = createResourceParams$R(config);
|
|
22995
22998
|
const selector = {
|
|
22996
|
-
recordId: keyBuilder$
|
|
22999
|
+
recordId: keyBuilder$1K(luvio, resourceParams),
|
|
22997
23000
|
node: buildListUiFragment$1(config, listFields_),
|
|
22998
23001
|
variables: {},
|
|
22999
23002
|
};
|
|
@@ -23088,7 +23091,7 @@
|
|
|
23088
23091
|
const { body } = response;
|
|
23089
23092
|
const { listInfoETag } = body;
|
|
23090
23093
|
const fields = listFields(luvio, config, listInfo).processRecords(body.records);
|
|
23091
|
-
luvio.storeIngest(keyBuilder$
|
|
23094
|
+
luvio.storeIngest(keyBuilder$1R(luvio, {
|
|
23092
23095
|
listViewId: listInfoETag,
|
|
23093
23096
|
sortBy: body.sortBy,
|
|
23094
23097
|
objectApiName: listInfo.listReference.objectApiName,
|
|
@@ -23099,7 +23102,7 @@
|
|
|
23099
23102
|
}
|
|
23100
23103
|
function onResourceError_getMruListRecords(luvio, config, listInfo, err) {
|
|
23101
23104
|
const errorSnapshot = luvio.errorSnapshot(err, buildSnapshotRefresh_getMruListUi(luvio, config));
|
|
23102
|
-
luvio.storeIngestError(keyBuilder$
|
|
23105
|
+
luvio.storeIngestError(keyBuilder$1Q(luvio, {
|
|
23103
23106
|
...listInfo.listReference,
|
|
23104
23107
|
sortBy: config.sortBy === undefined ? null : config.sortBy,
|
|
23105
23108
|
}), errorSnapshot);
|
|
@@ -23256,7 +23259,7 @@
|
|
|
23256
23259
|
kind: 'Fragment',
|
|
23257
23260
|
private: ['eTag', 'weakEtag'],
|
|
23258
23261
|
selections: buildSelectionFromFields(...fields.getRecordSelectionFieldSets()),
|
|
23259
|
-
version: VERSION$
|
|
23262
|
+
version: VERSION$18$1,
|
|
23260
23263
|
},
|
|
23261
23264
|
},
|
|
23262
23265
|
};
|
|
@@ -23271,7 +23274,7 @@
|
|
|
23271
23274
|
return dynamicSelect$6(listRecordCollectionSelectParams, paginationParams);
|
|
23272
23275
|
}
|
|
23273
23276
|
function buildCachedSnapshot$6(luvio, storeLookup, context, config, listInfo, fields) {
|
|
23274
|
-
const listUiKey = keyBuilder$
|
|
23277
|
+
const listUiKey = keyBuilder$1Q(luvio, {
|
|
23275
23278
|
...listInfo.listReference,
|
|
23276
23279
|
sortBy: getSortBy(config, context),
|
|
23277
23280
|
});
|
|
@@ -23323,7 +23326,7 @@
|
|
|
23323
23326
|
}
|
|
23324
23327
|
function onResourceSuccess_getListUi(luvio, context, config, response) {
|
|
23325
23328
|
const { body } = response, listInfo = body.info, { listReference } = listInfo;
|
|
23326
|
-
const listUiKey = keyBuilder$
|
|
23329
|
+
const listUiKey = keyBuilder$1Q(luvio, {
|
|
23327
23330
|
...listReference,
|
|
23328
23331
|
sortBy: body.records.sortBy,
|
|
23329
23332
|
});
|
|
@@ -23451,7 +23454,7 @@
|
|
|
23451
23454
|
const { body } = response;
|
|
23452
23455
|
const { listInfoETag } = body;
|
|
23453
23456
|
const fields = listFields(luvio, config, listInfo).processRecords(body.records);
|
|
23454
|
-
luvio.storeIngest(keyBuilder$
|
|
23457
|
+
luvio.storeIngest(keyBuilder$1R(luvio, {
|
|
23455
23458
|
listViewId: listInfoETag,
|
|
23456
23459
|
sortBy: body.sortBy,
|
|
23457
23460
|
objectApiName: listInfo.listReference.objectApiName,
|
|
@@ -23462,7 +23465,7 @@
|
|
|
23462
23465
|
}
|
|
23463
23466
|
function onResourceError_getListRecords(luvio, context, config, listInfo, err) {
|
|
23464
23467
|
const errorSnapshot = luvio.errorSnapshot(err);
|
|
23465
|
-
luvio.storeIngestError(keyBuilder$
|
|
23468
|
+
luvio.storeIngestError(keyBuilder$1Q(luvio, {
|
|
23466
23469
|
...listInfo.listReference,
|
|
23467
23470
|
sortBy: getSortBy(config, context),
|
|
23468
23471
|
}), errorSnapshot);
|
|
@@ -23635,16 +23638,16 @@
|
|
|
23635
23638
|
};
|
|
23636
23639
|
|
|
23637
23640
|
const TTL$u = 900000;
|
|
23638
|
-
const VERSION$
|
|
23641
|
+
const VERSION$12$1 = "ec9370a0cd56f4769fe9ec5cd942ff30";
|
|
23639
23642
|
const RepresentationType$J = 'ObjectInfoRepresentation';
|
|
23640
|
-
function keyBuilder$
|
|
23643
|
+
function keyBuilder$1J(luvio, config) {
|
|
23641
23644
|
return keyPrefix$1 + '::' + RepresentationType$J + ':' + config.apiName;
|
|
23642
23645
|
}
|
|
23643
23646
|
function keyBuilderFromType$t(luvio, object) {
|
|
23644
23647
|
const keyParams = {
|
|
23645
23648
|
apiName: object.apiName
|
|
23646
23649
|
};
|
|
23647
|
-
return keyBuilder$
|
|
23650
|
+
return keyBuilder$1J(luvio, keyParams);
|
|
23648
23651
|
}
|
|
23649
23652
|
function normalize$D(input, existing, path, luvio, store, timestamp) {
|
|
23650
23653
|
return input;
|
|
@@ -23652,7 +23655,7 @@
|
|
|
23652
23655
|
const select$1z = function ObjectInfoRepresentationSelect() {
|
|
23653
23656
|
return {
|
|
23654
23657
|
kind: 'Fragment',
|
|
23655
|
-
version: VERSION$
|
|
23658
|
+
version: VERSION$12$1,
|
|
23656
23659
|
private: [
|
|
23657
23660
|
'eTag'
|
|
23658
23661
|
],
|
|
@@ -23763,7 +23766,7 @@
|
|
|
23763
23766
|
const ingest$D$1 = function ObjectInfoRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
23764
23767
|
const key = keyBuilderFromType$t(luvio, input);
|
|
23765
23768
|
const ttlToUse = TTL$u;
|
|
23766
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$D, "UiApi", VERSION$
|
|
23769
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$D, "UiApi", VERSION$12$1, RepresentationType$J, equals$R);
|
|
23767
23770
|
return createLink$3(key);
|
|
23768
23771
|
};
|
|
23769
23772
|
function getTypeCacheKeys$J$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -23779,8 +23782,8 @@
|
|
|
23779
23782
|
function select$1y(luvio, params) {
|
|
23780
23783
|
return select$1z();
|
|
23781
23784
|
}
|
|
23782
|
-
function keyBuilder$
|
|
23783
|
-
return keyBuilder$
|
|
23785
|
+
function keyBuilder$1I(luvio, params) {
|
|
23786
|
+
return keyBuilder$1J(luvio, {
|
|
23784
23787
|
apiName: params.urlParams.objectApiName
|
|
23785
23788
|
});
|
|
23786
23789
|
}
|
|
@@ -23789,7 +23792,7 @@
|
|
|
23789
23792
|
}
|
|
23790
23793
|
function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
|
|
23791
23794
|
const { body } = response;
|
|
23792
|
-
const key = keyBuilder$
|
|
23795
|
+
const key = keyBuilder$1I(luvio, resourceParams);
|
|
23793
23796
|
luvio.storeIngest(key, ingest$D$1, body);
|
|
23794
23797
|
const snapshot = luvio.storeLookup({
|
|
23795
23798
|
recordId: key,
|
|
@@ -23800,12 +23803,12 @@
|
|
|
23800
23803
|
return snapshot;
|
|
23801
23804
|
}
|
|
23802
23805
|
function ingestError$D(luvio, params, error, snapshotRefresh) {
|
|
23803
|
-
const key = keyBuilder$
|
|
23806
|
+
const key = keyBuilder$1I(luvio, params);
|
|
23804
23807
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
23805
23808
|
const storeMetadataParams = {
|
|
23806
23809
|
ttl: TTL$u,
|
|
23807
23810
|
namespace: keyPrefix$1,
|
|
23808
|
-
version: VERSION$
|
|
23811
|
+
version: VERSION$12$1,
|
|
23809
23812
|
representationName: RepresentationType$J
|
|
23810
23813
|
};
|
|
23811
23814
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -23831,9 +23834,9 @@
|
|
|
23831
23834
|
];
|
|
23832
23835
|
const getObjectInfo_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$R, getObjectInfo_ConfigPropertyMetadata);
|
|
23833
23836
|
const createResourceParams$Q = /*#__PURE__*/ createResourceParams$Y(getObjectInfo_ConfigPropertyMetadata);
|
|
23834
|
-
function keyBuilder$
|
|
23837
|
+
function keyBuilder$1H(luvio, config) {
|
|
23835
23838
|
const resourceParams = createResourceParams$Q(config);
|
|
23836
|
-
return keyBuilder$
|
|
23839
|
+
return keyBuilder$1I(luvio, resourceParams);
|
|
23837
23840
|
}
|
|
23838
23841
|
function typeCheckConfig$W(untrustedConfig) {
|
|
23839
23842
|
const config = {};
|
|
@@ -23889,7 +23892,7 @@
|
|
|
23889
23892
|
function buildCachedSnapshotCachePolicy$J(context, storeLookup) {
|
|
23890
23893
|
const { luvio, config } = context;
|
|
23891
23894
|
const selector = {
|
|
23892
|
-
recordId: keyBuilder$
|
|
23895
|
+
recordId: keyBuilder$1H(luvio, config),
|
|
23893
23896
|
node: adapterFragment$C(luvio, config),
|
|
23894
23897
|
variables: {},
|
|
23895
23898
|
};
|
|
@@ -23920,9 +23923,9 @@
|
|
|
23920
23923
|
})(DiscriminatorValues$4 || (DiscriminatorValues$4 = {}));
|
|
23921
23924
|
|
|
23922
23925
|
const TTL$t = 900000;
|
|
23923
|
-
const VERSION$
|
|
23926
|
+
const VERSION$11$1 = "fb515e25a89ca1ec154dc865e72b913a";
|
|
23924
23927
|
const RepresentationType$I = 'RecordLayoutRepresentation';
|
|
23925
|
-
function keyBuilder$
|
|
23928
|
+
function keyBuilder$1G(luvio, config) {
|
|
23926
23929
|
return keyPrefix$1 + '::' + RepresentationType$I + ':' + (config.recordTypeId === null ? '' : config.recordTypeId) + ':' + (config.objectApiName === null ? '' : config.objectApiName) + ':' + config.layoutType + ':' + config.mode;
|
|
23927
23930
|
}
|
|
23928
23931
|
function keyBuilderFromType$s(luvio, object) {
|
|
@@ -23932,7 +23935,7 @@
|
|
|
23932
23935
|
layoutType: object.layoutType,
|
|
23933
23936
|
mode: object.mode
|
|
23934
23937
|
};
|
|
23935
|
-
return keyBuilder$
|
|
23938
|
+
return keyBuilder$1G(luvio, keyParams);
|
|
23936
23939
|
}
|
|
23937
23940
|
function normalize$C(input, existing, path, luvio, store, timestamp) {
|
|
23938
23941
|
return input;
|
|
@@ -23940,7 +23943,7 @@
|
|
|
23940
23943
|
const select$1x = function RecordLayoutRepresentationSelect() {
|
|
23941
23944
|
return {
|
|
23942
23945
|
kind: 'Fragment',
|
|
23943
|
-
version: VERSION$
|
|
23946
|
+
version: VERSION$11$1,
|
|
23944
23947
|
private: [
|
|
23945
23948
|
'eTag'
|
|
23946
23949
|
],
|
|
@@ -23987,7 +23990,7 @@
|
|
|
23987
23990
|
const ingest$C$1 = function RecordLayoutRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
23988
23991
|
const key = keyBuilderFromType$s(luvio, input);
|
|
23989
23992
|
const ttlToUse = TTL$t;
|
|
23990
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$C, "UiApi", VERSION$
|
|
23993
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$C, "UiApi", VERSION$11$1, RepresentationType$I, equals$Q);
|
|
23991
23994
|
return createLink$3(key);
|
|
23992
23995
|
};
|
|
23993
23996
|
function getTypeCacheKeys$I$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -24023,9 +24026,9 @@
|
|
|
24023
24026
|
}
|
|
24024
24027
|
|
|
24025
24028
|
const TTL$s = 900000;
|
|
24026
|
-
const VERSION$
|
|
24029
|
+
const VERSION$10$1 = "4ba42e1fa0fb00cf78fce86082da41c9";
|
|
24027
24030
|
const RepresentationType$H = 'RecordLayoutUserStateRepresentation';
|
|
24028
|
-
function keyBuilder$
|
|
24031
|
+
function keyBuilder$1F(luvio, config) {
|
|
24029
24032
|
return keyPrefix$1 + '::' + RepresentationType$H + ':' + config.recordTypeId + ':' + config.apiName + ':' + config.layoutType + ':' + config.mode;
|
|
24030
24033
|
}
|
|
24031
24034
|
function keyBuilderFromType$r(luvio, object) {
|
|
@@ -24035,7 +24038,7 @@
|
|
|
24035
24038
|
layoutType: object.layoutType,
|
|
24036
24039
|
mode: object.mode
|
|
24037
24040
|
};
|
|
24038
|
-
return keyBuilder$
|
|
24041
|
+
return keyBuilder$1F(luvio, keyParams);
|
|
24039
24042
|
}
|
|
24040
24043
|
function normalize$B(input, existing, path, luvio, store, timestamp) {
|
|
24041
24044
|
return input;
|
|
@@ -24043,7 +24046,7 @@
|
|
|
24043
24046
|
const select$1w = function RecordLayoutUserStateRepresentationSelect() {
|
|
24044
24047
|
return {
|
|
24045
24048
|
kind: 'Fragment',
|
|
24046
|
-
version: VERSION$
|
|
24049
|
+
version: VERSION$10$1,
|
|
24047
24050
|
private: [
|
|
24048
24051
|
'apiName',
|
|
24049
24052
|
'recordTypeId',
|
|
@@ -24072,7 +24075,7 @@
|
|
|
24072
24075
|
const ingest$B$1 = function RecordLayoutUserStateRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
24073
24076
|
const key = keyBuilderFromType$r(luvio, input);
|
|
24074
24077
|
const ttlToUse = TTL$s;
|
|
24075
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$B, "UiApi", VERSION$
|
|
24078
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$B, "UiApi", VERSION$10$1, RepresentationType$H, equals$P);
|
|
24076
24079
|
return createLink$3(key);
|
|
24077
24080
|
};
|
|
24078
24081
|
function getTypeCacheKeys$H$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -24086,7 +24089,7 @@
|
|
|
24086
24089
|
}
|
|
24087
24090
|
|
|
24088
24091
|
const TTL$r = 900000;
|
|
24089
|
-
const VERSION
|
|
24092
|
+
const VERSION$$$1 = "49cdd4bc235a6094c3559cc7735b3b6d";
|
|
24090
24093
|
const RepresentationType$G = 'RecordUiRepresentation';
|
|
24091
24094
|
function normalize$A(input, existing, path, luvio, store, timestamp) {
|
|
24092
24095
|
const input_layoutUserStates = input.layoutUserStates;
|
|
@@ -24254,7 +24257,7 @@
|
|
|
24254
24257
|
const ingest$A$1 = function RecordUiRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
24255
24258
|
const key = path.fullPath;
|
|
24256
24259
|
const ttlToUse = TTL$r;
|
|
24257
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$A, "UiApi", VERSION
|
|
24260
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$A, "UiApi", VERSION$$$1, RepresentationType$G, equals$O);
|
|
24258
24261
|
return createLink$3(key);
|
|
24259
24262
|
};
|
|
24260
24263
|
|
|
@@ -24349,7 +24352,7 @@
|
|
|
24349
24352
|
return {
|
|
24350
24353
|
kind: 'Fragment',
|
|
24351
24354
|
private: ['eTag'],
|
|
24352
|
-
version: VERSION
|
|
24355
|
+
version: VERSION$$$1,
|
|
24353
24356
|
selections: [
|
|
24354
24357
|
{
|
|
24355
24358
|
kind: 'Link',
|
|
@@ -24550,7 +24553,7 @@
|
|
|
24550
24553
|
}
|
|
24551
24554
|
return recordDefs;
|
|
24552
24555
|
}
|
|
24553
|
-
function keyBuilder$
|
|
24556
|
+
function keyBuilder$1E(recordIds, layoutTypes, modes, optionalFields) {
|
|
24554
24557
|
const joinedRecordIds = recordIds.sort().join(',');
|
|
24555
24558
|
const joinedOptionalFields = optionalFields.sort().join(',');
|
|
24556
24559
|
const joinedLayoutTypes = layoutTypes.sort().join(',');
|
|
@@ -24584,7 +24587,7 @@
|
|
|
24584
24587
|
}
|
|
24585
24588
|
function prepareRequest$4(luvio, config) {
|
|
24586
24589
|
const { recordIds, layoutTypes, modes, optionalFields } = config;
|
|
24587
|
-
const key = keyBuilder$
|
|
24590
|
+
const key = keyBuilder$1E(recordIds, layoutTypes, modes, optionalFields);
|
|
24588
24591
|
const selectorKey = buildCachedSelectorKey(key);
|
|
24589
24592
|
const resourceRequest = createResourceRequest$T({
|
|
24590
24593
|
urlParams: {
|
|
@@ -24677,7 +24680,7 @@
|
|
|
24677
24680
|
const validRecordIds = [];
|
|
24678
24681
|
for (let i = 0, len = recordIds.length; i < len; i += 1) {
|
|
24679
24682
|
const recordId = recordIds[i];
|
|
24680
|
-
const recordKey = keyBuilder$
|
|
24683
|
+
const recordKey = keyBuilder$1U(luvio, { recordId });
|
|
24681
24684
|
const node = luvio.getNode(recordKey);
|
|
24682
24685
|
if (isGraphNode(node)) {
|
|
24683
24686
|
recordNodes.push(node);
|
|
@@ -24748,7 +24751,7 @@
|
|
|
24748
24751
|
function buildCachedSelectorSnapshot(context, storeLookup) {
|
|
24749
24752
|
const { config } = context;
|
|
24750
24753
|
const { recordIds, layoutTypes, modes, optionalFields } = config;
|
|
24751
|
-
const key = keyBuilder$
|
|
24754
|
+
const key = keyBuilder$1E(recordIds, layoutTypes, modes, optionalFields);
|
|
24752
24755
|
const cachedSelectorKey = buildCachedSelectorKey(key);
|
|
24753
24756
|
return storeLookup({
|
|
24754
24757
|
recordId: cachedSelectorKey,
|
|
@@ -24851,7 +24854,7 @@
|
|
|
24851
24854
|
return buildNetworkSnapshot$U(luvio, recordUiConfig).then((snapshot) => {
|
|
24852
24855
|
const refresh = buildSnapshotRefresh$3(luvio, config);
|
|
24853
24856
|
if (isErrorSnapshot(snapshot)) {
|
|
24854
|
-
var recordKey = keyBuilder$
|
|
24857
|
+
var recordKey = keyBuilder$1U(luvio, { recordId });
|
|
24855
24858
|
luvio.storeIngestError(recordKey, snapshot);
|
|
24856
24859
|
return luvio.storeBroadcast().then(() => luvio.errorSnapshot(snapshot.error, refresh));
|
|
24857
24860
|
}
|
|
@@ -25014,14 +25017,14 @@
|
|
|
25014
25017
|
const { config, luvio } = context;
|
|
25015
25018
|
// get cached copy of the record
|
|
25016
25019
|
const { recordId } = config;
|
|
25017
|
-
const storeKey = keyBuilder$
|
|
25020
|
+
const storeKey = keyBuilder$1U(luvio, { recordId });
|
|
25018
25021
|
const recordSnapshot = storeLookup({
|
|
25019
25022
|
recordId: storeKey,
|
|
25020
25023
|
node: {
|
|
25021
25024
|
kind: 'Fragment',
|
|
25022
25025
|
private: [],
|
|
25023
25026
|
selections: recordLayoutFragmentSelector,
|
|
25024
|
-
version: VERSION$
|
|
25027
|
+
version: VERSION$18$1,
|
|
25025
25028
|
},
|
|
25026
25029
|
variables: {},
|
|
25027
25030
|
});
|
|
@@ -25041,7 +25044,7 @@
|
|
|
25041
25044
|
};
|
|
25042
25045
|
const buildLayoutModeCacheSnapshot = (apiName, recordTypeId, layoutType, mode) => (context, storeLookup) => {
|
|
25043
25046
|
const { luvio } = context;
|
|
25044
|
-
const key = keyBuilder$
|
|
25047
|
+
const key = keyBuilder$1G(luvio, {
|
|
25045
25048
|
objectApiName: apiName,
|
|
25046
25049
|
recordTypeId,
|
|
25047
25050
|
layoutType,
|
|
@@ -25275,7 +25278,7 @@
|
|
|
25275
25278
|
}
|
|
25276
25279
|
const notifyChangeFactory = (luvio) => {
|
|
25277
25280
|
return function getUiApiRecordsByRecordIdNotifyChange(configs) {
|
|
25278
|
-
const keys = configs.map((c) => keyBuilder$
|
|
25281
|
+
const keys = configs.map((c) => keyBuilder$1U(luvio, coerceKeyParams(c)));
|
|
25279
25282
|
luvio.getNotifyChangeStoreEntries(keys).then((entries) => {
|
|
25280
25283
|
const responsePromises = [];
|
|
25281
25284
|
for (let i = 0, len = entries.length; i < len; i++) {
|
|
@@ -25355,16 +25358,16 @@
|
|
|
25355
25358
|
};
|
|
25356
25359
|
};
|
|
25357
25360
|
|
|
25358
|
-
const VERSION
|
|
25361
|
+
const VERSION$_$1 = "7e00c51105cbf56a79ab8fcddf462c1e";
|
|
25359
25362
|
const RepresentationType$F = 'QuickActionExecutionRepresentation';
|
|
25360
|
-
function keyBuilder$
|
|
25363
|
+
function keyBuilder$1D(luvio, config) {
|
|
25361
25364
|
return keyPrefix$1 + '::' + RepresentationType$F + ':' + config.id;
|
|
25362
25365
|
}
|
|
25363
25366
|
function keyBuilderFromType$q(luvio, object) {
|
|
25364
25367
|
const keyParams = {
|
|
25365
25368
|
id: object.id
|
|
25366
25369
|
};
|
|
25367
|
-
return keyBuilder$
|
|
25370
|
+
return keyBuilder$1D(luvio, keyParams);
|
|
25368
25371
|
}
|
|
25369
25372
|
function normalize$z(input, existing, path, luvio, store, timestamp) {
|
|
25370
25373
|
return input;
|
|
@@ -25372,7 +25375,7 @@
|
|
|
25372
25375
|
const select$1v = function QuickActionExecutionRepresentationSelect() {
|
|
25373
25376
|
return {
|
|
25374
25377
|
kind: 'Fragment',
|
|
25375
|
-
version: VERSION
|
|
25378
|
+
version: VERSION$_$1,
|
|
25376
25379
|
private: [
|
|
25377
25380
|
'eTag'
|
|
25378
25381
|
],
|
|
@@ -25445,7 +25448,7 @@
|
|
|
25445
25448
|
const ingest$z$1 = function QuickActionExecutionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
25446
25449
|
const key = keyBuilderFromType$q(luvio, input);
|
|
25447
25450
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
25448
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$z, "UiApi", VERSION
|
|
25451
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$z, "UiApi", VERSION$_$1, RepresentationType$F, equals$N);
|
|
25449
25452
|
return createLink$3(key);
|
|
25450
25453
|
};
|
|
25451
25454
|
function getTypeCacheKeys$G$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -25459,16 +25462,16 @@
|
|
|
25459
25462
|
}
|
|
25460
25463
|
|
|
25461
25464
|
const TTL$q = 900000;
|
|
25462
|
-
const VERSION$
|
|
25465
|
+
const VERSION$Z$1 = "993b0a7bce6056c4f57ed300ec153d9c";
|
|
25463
25466
|
const RepresentationType$E = 'QuickActionDefaultsRepresentation';
|
|
25464
|
-
function keyBuilder$
|
|
25467
|
+
function keyBuilder$1C(luvio, config) {
|
|
25465
25468
|
return keyPrefix$1 + '::' + RepresentationType$E + ':' + config.actionApiName;
|
|
25466
25469
|
}
|
|
25467
25470
|
function keyBuilderFromType$p(luvio, object) {
|
|
25468
25471
|
const keyParams = {
|
|
25469
25472
|
actionApiName: object.actionApiName
|
|
25470
25473
|
};
|
|
25471
|
-
return keyBuilder$
|
|
25474
|
+
return keyBuilder$1C(luvio, keyParams);
|
|
25472
25475
|
}
|
|
25473
25476
|
function dynamicNormalize$4(ingestParams) {
|
|
25474
25477
|
return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
|
|
@@ -25503,7 +25506,7 @@
|
|
|
25503
25506
|
} : params.fields;
|
|
25504
25507
|
return {
|
|
25505
25508
|
kind: 'Fragment',
|
|
25506
|
-
version: VERSION$
|
|
25509
|
+
version: VERSION$Z$1,
|
|
25507
25510
|
private: [
|
|
25508
25511
|
'eTag'
|
|
25509
25512
|
],
|
|
@@ -25566,7 +25569,7 @@
|
|
|
25566
25569
|
}
|
|
25567
25570
|
const notifyUpdateAvailableFactory = (luvio) => {
|
|
25568
25571
|
return function notifyQuickActionDefaultsUpdateAvailable(configs) {
|
|
25569
|
-
const keys = configs.map(c => keyBuilder$
|
|
25572
|
+
const keys = configs.map(c => keyBuilder$1C(luvio, c));
|
|
25570
25573
|
return luvio.notifyStoreUpdateAvailable(keys);
|
|
25571
25574
|
};
|
|
25572
25575
|
};
|
|
@@ -25593,9 +25596,9 @@
|
|
|
25593
25596
|
return undefined;
|
|
25594
25597
|
}
|
|
25595
25598
|
|
|
25596
|
-
const VERSION$
|
|
25599
|
+
const VERSION$Y$1 = "3f49d751896cf66e6e29788d8880e2cc";
|
|
25597
25600
|
const RepresentationType$D = 'PlatformActionRepresentation';
|
|
25598
|
-
function keyBuilder$
|
|
25601
|
+
function keyBuilder$1B(luvio, config) {
|
|
25599
25602
|
return keyPrefix$1 + '::' + RepresentationType$D + ':' + config.externalId + ':' + (config.relatedSourceObject === null ? '' : config.relatedSourceObject) + ':' + (config.relatedListRecordId === null ? '' : config.relatedListRecordId);
|
|
25600
25603
|
}
|
|
25601
25604
|
function keyBuilderFromType$o(luvio, object) {
|
|
@@ -25604,7 +25607,7 @@
|
|
|
25604
25607
|
relatedSourceObject: object.relatedSourceObject,
|
|
25605
25608
|
relatedListRecordId: object.relatedListRecordId
|
|
25606
25609
|
};
|
|
25607
|
-
return keyBuilder$
|
|
25610
|
+
return keyBuilder$1B(luvio, keyParams);
|
|
25608
25611
|
}
|
|
25609
25612
|
function normalize$y(input, existing, path, luvio, store, timestamp) {
|
|
25610
25613
|
return input;
|
|
@@ -25612,7 +25615,7 @@
|
|
|
25612
25615
|
const select$1u = function PlatformActionRepresentationSelect() {
|
|
25613
25616
|
return {
|
|
25614
25617
|
kind: 'Fragment',
|
|
25615
|
-
version: VERSION$
|
|
25618
|
+
version: VERSION$Y$1,
|
|
25616
25619
|
private: [
|
|
25617
25620
|
'id'
|
|
25618
25621
|
],
|
|
@@ -25793,7 +25796,7 @@
|
|
|
25793
25796
|
const ingest$y$1 = function PlatformActionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
25794
25797
|
const key = keyBuilderFromType$o(luvio, input);
|
|
25795
25798
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
25796
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$y, "UiApi", VERSION$
|
|
25799
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$y, "UiApi", VERSION$Y$1, RepresentationType$D, equals$L);
|
|
25797
25800
|
return createLink$3(key);
|
|
25798
25801
|
};
|
|
25799
25802
|
function getTypeCacheKeys$E$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -25806,16 +25809,16 @@
|
|
|
25806
25809
|
});
|
|
25807
25810
|
}
|
|
25808
25811
|
|
|
25809
|
-
const VERSION$
|
|
25812
|
+
const VERSION$X$1 = "378d506f563a4bd724b322d440df33d1";
|
|
25810
25813
|
const RepresentationType$C = 'EntityActionRepresentation';
|
|
25811
|
-
function keyBuilder$
|
|
25814
|
+
function keyBuilder$1A(luvio, config) {
|
|
25812
25815
|
return keyPrefix$1 + '::' + RepresentationType$C + ':' + config.url;
|
|
25813
25816
|
}
|
|
25814
25817
|
function keyBuilderFromType$n(luvio, object) {
|
|
25815
25818
|
const keyParams = {
|
|
25816
25819
|
url: object.url
|
|
25817
25820
|
};
|
|
25818
|
-
return keyBuilder$
|
|
25821
|
+
return keyBuilder$1A(luvio, keyParams);
|
|
25819
25822
|
}
|
|
25820
25823
|
function normalize$x(input, existing, path, luvio, store, timestamp) {
|
|
25821
25824
|
const input_actions = input.actions;
|
|
@@ -25839,7 +25842,7 @@
|
|
|
25839
25842
|
const select$1t = function EntityActionRepresentationSelect() {
|
|
25840
25843
|
return {
|
|
25841
25844
|
kind: 'Fragment',
|
|
25842
|
-
version: VERSION$
|
|
25845
|
+
version: VERSION$X$1,
|
|
25843
25846
|
private: [
|
|
25844
25847
|
'links',
|
|
25845
25848
|
'url'
|
|
@@ -25885,7 +25888,7 @@
|
|
|
25885
25888
|
const ingest$x$1 = function EntityActionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
25886
25889
|
const key = keyBuilderFromType$n(luvio, input);
|
|
25887
25890
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
25888
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "UiApi", VERSION$
|
|
25891
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$x, "UiApi", VERSION$X$1, RepresentationType$C, equals$K);
|
|
25889
25892
|
return createLink$3(key);
|
|
25890
25893
|
};
|
|
25891
25894
|
function getTypeCacheKeys$D$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -25903,7 +25906,7 @@
|
|
|
25903
25906
|
}
|
|
25904
25907
|
|
|
25905
25908
|
const TTL$p = 300000;
|
|
25906
|
-
const VERSION$
|
|
25909
|
+
const VERSION$W$1 = "e485d96c1402a9ca2f56e56485af0216";
|
|
25907
25910
|
const RepresentationType$B = 'ActionRepresentation';
|
|
25908
25911
|
function normalize$w(input, existing, path, luvio, store, timestamp) {
|
|
25909
25912
|
const input_actions = input.actions;
|
|
@@ -25930,7 +25933,7 @@
|
|
|
25930
25933
|
const select$1s = function ActionRepresentationSelect() {
|
|
25931
25934
|
return {
|
|
25932
25935
|
kind: 'Fragment',
|
|
25933
|
-
version: VERSION$
|
|
25936
|
+
version: VERSION$W$1,
|
|
25934
25937
|
private: [
|
|
25935
25938
|
'eTag',
|
|
25936
25939
|
'url'
|
|
@@ -25971,7 +25974,7 @@
|
|
|
25971
25974
|
const ingest$w$1 = function ActionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
25972
25975
|
const key = path.fullPath;
|
|
25973
25976
|
const ttlToUse = TTL$p;
|
|
25974
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "UiApi", VERSION$
|
|
25977
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$w, "UiApi", VERSION$W$1, RepresentationType$B, equals$J);
|
|
25975
25978
|
return createLink$3(key);
|
|
25976
25979
|
};
|
|
25977
25980
|
function getTypeCacheKeys$C$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -25994,15 +25997,15 @@
|
|
|
25994
25997
|
function select$1r(luvio, params) {
|
|
25995
25998
|
return select$1s();
|
|
25996
25999
|
}
|
|
25997
|
-
function keyBuilder$
|
|
26000
|
+
function keyBuilder$1z(luvio, params) {
|
|
25998
26001
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'apiNames:' + params.queryParams.apiNames + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'retrievalMode:' + params.queryParams.retrievalMode + ',' + 'sections:' + params.queryParams.sections + ')';
|
|
25999
26002
|
}
|
|
26000
26003
|
function getResponseCacheKeys$P(storeKeyMap, luvio, resourceParams, response) {
|
|
26001
|
-
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
26004
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1z(luvio, resourceParams));
|
|
26002
26005
|
}
|
|
26003
26006
|
function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
|
|
26004
26007
|
const { body } = response;
|
|
26005
|
-
const key = keyBuilder$
|
|
26008
|
+
const key = keyBuilder$1z(luvio, resourceParams);
|
|
26006
26009
|
luvio.storeIngest(key, ingest$w$1, body);
|
|
26007
26010
|
const snapshot = luvio.storeLookup({
|
|
26008
26011
|
recordId: key,
|
|
@@ -26013,12 +26016,12 @@
|
|
|
26013
26016
|
return snapshot;
|
|
26014
26017
|
}
|
|
26015
26018
|
function ingestError$C(luvio, params, error, snapshotRefresh) {
|
|
26016
|
-
const key = keyBuilder$
|
|
26019
|
+
const key = keyBuilder$1z(luvio, params);
|
|
26017
26020
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26018
26021
|
const storeMetadataParams = {
|
|
26019
26022
|
ttl: TTL$p,
|
|
26020
26023
|
namespace: keyPrefix$1,
|
|
26021
|
-
version: VERSION$
|
|
26024
|
+
version: VERSION$W$1,
|
|
26022
26025
|
representationName: RepresentationType$B
|
|
26023
26026
|
};
|
|
26024
26027
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -26048,9 +26051,9 @@
|
|
|
26048
26051
|
];
|
|
26049
26052
|
const getGlobalActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$Q, getGlobalActions_ConfigPropertyMetadata);
|
|
26050
26053
|
const createResourceParams$P = /*#__PURE__*/ createResourceParams$Y(getGlobalActions_ConfigPropertyMetadata);
|
|
26051
|
-
function keyBuilder$
|
|
26054
|
+
function keyBuilder$1y(luvio, config) {
|
|
26052
26055
|
const resourceParams = createResourceParams$P(config);
|
|
26053
|
-
return keyBuilder$
|
|
26056
|
+
return keyBuilder$1z(luvio, resourceParams);
|
|
26054
26057
|
}
|
|
26055
26058
|
function typeCheckConfig$U(untrustedConfig) {
|
|
26056
26059
|
const config = {};
|
|
@@ -26106,7 +26109,7 @@
|
|
|
26106
26109
|
function buildCachedSnapshotCachePolicy$I(context, storeLookup) {
|
|
26107
26110
|
const { luvio, config } = context;
|
|
26108
26111
|
const selector = {
|
|
26109
|
-
recordId: keyBuilder$
|
|
26112
|
+
recordId: keyBuilder$1y(luvio, config),
|
|
26110
26113
|
node: adapterFragment$B(luvio, config),
|
|
26111
26114
|
variables: {},
|
|
26112
26115
|
};
|
|
@@ -26127,16 +26130,16 @@
|
|
|
26127
26130
|
};
|
|
26128
26131
|
|
|
26129
26132
|
const TTL$o = 900000;
|
|
26130
|
-
const VERSION$
|
|
26133
|
+
const VERSION$V$1 = "35f3eec8ce7f6001c6d5d17821b75bb9";
|
|
26131
26134
|
const RepresentationType$A = 'QuickActionLayoutRepresentation';
|
|
26132
|
-
function keyBuilder$
|
|
26135
|
+
function keyBuilder$1x(luvio, config) {
|
|
26133
26136
|
return keyPrefix$1 + '::' + RepresentationType$A + ':' + config.actionApiName;
|
|
26134
26137
|
}
|
|
26135
26138
|
function keyBuilderFromType$m(luvio, object) {
|
|
26136
26139
|
const keyParams = {
|
|
26137
26140
|
actionApiName: object.actionApiName
|
|
26138
26141
|
};
|
|
26139
|
-
return keyBuilder$
|
|
26142
|
+
return keyBuilder$1x(luvio, keyParams);
|
|
26140
26143
|
}
|
|
26141
26144
|
function normalize$v(input, existing, path, luvio, store, timestamp) {
|
|
26142
26145
|
return input;
|
|
@@ -26144,7 +26147,7 @@
|
|
|
26144
26147
|
const select$1q = function QuickActionLayoutRepresentationSelect() {
|
|
26145
26148
|
return {
|
|
26146
26149
|
kind: 'Fragment',
|
|
26147
|
-
version: VERSION$
|
|
26150
|
+
version: VERSION$V$1,
|
|
26148
26151
|
private: [
|
|
26149
26152
|
'eTag'
|
|
26150
26153
|
],
|
|
@@ -26170,7 +26173,7 @@
|
|
|
26170
26173
|
const ingest$v$1 = function QuickActionLayoutRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
26171
26174
|
const key = keyBuilderFromType$m(luvio, input);
|
|
26172
26175
|
const ttlToUse = TTL$o;
|
|
26173
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "UiApi", VERSION$
|
|
26176
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$v, "UiApi", VERSION$V$1, RepresentationType$A, equals$I);
|
|
26174
26177
|
return createLink$3(key);
|
|
26175
26178
|
};
|
|
26176
26179
|
function getTypeCacheKeys$B$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -26186,8 +26189,8 @@
|
|
|
26186
26189
|
function select$1p(luvio, params) {
|
|
26187
26190
|
return select$1q();
|
|
26188
26191
|
}
|
|
26189
|
-
function keyBuilder$
|
|
26190
|
-
return keyBuilder$
|
|
26192
|
+
function keyBuilder$1w(luvio, params) {
|
|
26193
|
+
return keyBuilder$1x(luvio, {
|
|
26191
26194
|
actionApiName: params.urlParams.actionApiName
|
|
26192
26195
|
});
|
|
26193
26196
|
}
|
|
@@ -26196,7 +26199,7 @@
|
|
|
26196
26199
|
}
|
|
26197
26200
|
function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
|
|
26198
26201
|
const { body } = response;
|
|
26199
|
-
const key = keyBuilder$
|
|
26202
|
+
const key = keyBuilder$1w(luvio, resourceParams);
|
|
26200
26203
|
luvio.storeIngest(key, ingest$v$1, body);
|
|
26201
26204
|
const snapshot = luvio.storeLookup({
|
|
26202
26205
|
recordId: key,
|
|
@@ -26207,12 +26210,12 @@
|
|
|
26207
26210
|
return snapshot;
|
|
26208
26211
|
}
|
|
26209
26212
|
function ingestError$B(luvio, params, error, snapshotRefresh) {
|
|
26210
|
-
const key = keyBuilder$
|
|
26213
|
+
const key = keyBuilder$1w(luvio, params);
|
|
26211
26214
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26212
26215
|
const storeMetadataParams = {
|
|
26213
26216
|
ttl: TTL$o,
|
|
26214
26217
|
namespace: keyPrefix$1,
|
|
26215
|
-
version: VERSION$
|
|
26218
|
+
version: VERSION$V$1,
|
|
26216
26219
|
representationName: RepresentationType$A
|
|
26217
26220
|
};
|
|
26218
26221
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -26238,9 +26241,9 @@
|
|
|
26238
26241
|
];
|
|
26239
26242
|
const getQuickActionLayout_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$P, getQuickActionLayout_ConfigPropertyMetadata);
|
|
26240
26243
|
const createResourceParams$O = /*#__PURE__*/ createResourceParams$Y(getQuickActionLayout_ConfigPropertyMetadata);
|
|
26241
|
-
function keyBuilder$
|
|
26244
|
+
function keyBuilder$1v(luvio, config) {
|
|
26242
26245
|
const resourceParams = createResourceParams$O(config);
|
|
26243
|
-
return keyBuilder$
|
|
26246
|
+
return keyBuilder$1w(luvio, resourceParams);
|
|
26244
26247
|
}
|
|
26245
26248
|
function typeCheckConfig$T(untrustedConfig) {
|
|
26246
26249
|
const config = {};
|
|
@@ -26295,7 +26298,7 @@
|
|
|
26295
26298
|
function buildCachedSnapshotCachePolicy$H(context, storeLookup) {
|
|
26296
26299
|
const { luvio, config } = context;
|
|
26297
26300
|
const selector = {
|
|
26298
|
-
recordId: keyBuilder$
|
|
26301
|
+
recordId: keyBuilder$1v(luvio, config),
|
|
26299
26302
|
node: adapterFragment$A(luvio, config),
|
|
26300
26303
|
variables: {},
|
|
26301
26304
|
};
|
|
@@ -26350,15 +26353,15 @@
|
|
|
26350
26353
|
function select$1o(luvio, params) {
|
|
26351
26354
|
return select$1s();
|
|
26352
26355
|
}
|
|
26353
|
-
function keyBuilder$
|
|
26356
|
+
function keyBuilder$1u(luvio, params) {
|
|
26354
26357
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'objectApiNames:' + params.urlParams.objectApiNames + ')';
|
|
26355
26358
|
}
|
|
26356
26359
|
function getResponseCacheKeys$N(storeKeyMap, luvio, resourceParams, response) {
|
|
26357
|
-
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
26360
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1u(luvio, resourceParams));
|
|
26358
26361
|
}
|
|
26359
26362
|
function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
|
|
26360
26363
|
const { body } = response;
|
|
26361
|
-
const key = keyBuilder$
|
|
26364
|
+
const key = keyBuilder$1u(luvio, resourceParams);
|
|
26362
26365
|
luvio.storeIngest(key, ingest$w$1, body);
|
|
26363
26366
|
const snapshot = luvio.storeLookup({
|
|
26364
26367
|
recordId: key,
|
|
@@ -26369,12 +26372,12 @@
|
|
|
26369
26372
|
return snapshot;
|
|
26370
26373
|
}
|
|
26371
26374
|
function ingestError$A(luvio, params, error, snapshotRefresh) {
|
|
26372
|
-
const key = keyBuilder$
|
|
26375
|
+
const key = keyBuilder$1u(luvio, params);
|
|
26373
26376
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26374
26377
|
const storeMetadataParams = {
|
|
26375
26378
|
ttl: TTL$p,
|
|
26376
26379
|
namespace: keyPrefix$1,
|
|
26377
|
-
version: VERSION$
|
|
26380
|
+
version: VERSION$W$1,
|
|
26378
26381
|
representationName: RepresentationType$B
|
|
26379
26382
|
};
|
|
26380
26383
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -26403,9 +26406,9 @@
|
|
|
26403
26406
|
];
|
|
26404
26407
|
const getLookupActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$O, getLookupActions_ConfigPropertyMetadata);
|
|
26405
26408
|
const createResourceParams$N = /*#__PURE__*/ createResourceParams$Y(getLookupActions_ConfigPropertyMetadata);
|
|
26406
|
-
function keyBuilder$
|
|
26409
|
+
function keyBuilder$1t(luvio, config) {
|
|
26407
26410
|
const resourceParams = createResourceParams$N(config);
|
|
26408
|
-
return keyBuilder$
|
|
26411
|
+
return keyBuilder$1u(luvio, resourceParams);
|
|
26409
26412
|
}
|
|
26410
26413
|
function typeCheckConfig$S(untrustedConfig) {
|
|
26411
26414
|
const config = {};
|
|
@@ -26461,7 +26464,7 @@
|
|
|
26461
26464
|
function buildCachedSnapshotCachePolicy$G(context, storeLookup) {
|
|
26462
26465
|
const { luvio, config } = context;
|
|
26463
26466
|
const selector = {
|
|
26464
|
-
recordId: keyBuilder$
|
|
26467
|
+
recordId: keyBuilder$1t(luvio, config),
|
|
26465
26468
|
node: adapterFragment$z(luvio, config),
|
|
26466
26469
|
variables: {},
|
|
26467
26470
|
};
|
|
@@ -26484,15 +26487,15 @@
|
|
|
26484
26487
|
function select$1n(luvio, params) {
|
|
26485
26488
|
return select$1s();
|
|
26486
26489
|
}
|
|
26487
|
-
function keyBuilder$
|
|
26490
|
+
function keyBuilder$1s(luvio, params) {
|
|
26488
26491
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
26489
26492
|
}
|
|
26490
26493
|
function getResponseCacheKeys$M(storeKeyMap, luvio, resourceParams, response) {
|
|
26491
|
-
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
26494
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1s(luvio, resourceParams));
|
|
26492
26495
|
}
|
|
26493
26496
|
function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
|
|
26494
26497
|
const { body } = response;
|
|
26495
|
-
const key = keyBuilder$
|
|
26498
|
+
const key = keyBuilder$1s(luvio, resourceParams);
|
|
26496
26499
|
luvio.storeIngest(key, ingest$w$1, body);
|
|
26497
26500
|
const snapshot = luvio.storeLookup({
|
|
26498
26501
|
recordId: key,
|
|
@@ -26503,12 +26506,12 @@
|
|
|
26503
26506
|
return snapshot;
|
|
26504
26507
|
}
|
|
26505
26508
|
function ingestError$z(luvio, params, error, snapshotRefresh) {
|
|
26506
|
-
const key = keyBuilder$
|
|
26509
|
+
const key = keyBuilder$1s(luvio, params);
|
|
26507
26510
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26508
26511
|
const storeMetadataParams = {
|
|
26509
26512
|
ttl: TTL$p,
|
|
26510
26513
|
namespace: keyPrefix$1,
|
|
26511
|
-
version: VERSION$
|
|
26514
|
+
version: VERSION$W$1,
|
|
26512
26515
|
representationName: RepresentationType$B
|
|
26513
26516
|
};
|
|
26514
26517
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -26537,9 +26540,9 @@
|
|
|
26537
26540
|
];
|
|
26538
26541
|
const getObjectCreateActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$N, getObjectCreateActions_ConfigPropertyMetadata);
|
|
26539
26542
|
const createResourceParams$M = /*#__PURE__*/ createResourceParams$Y(getObjectCreateActions_ConfigPropertyMetadata);
|
|
26540
|
-
function keyBuilder$
|
|
26543
|
+
function keyBuilder$1r(luvio, config) {
|
|
26541
26544
|
const resourceParams = createResourceParams$M(config);
|
|
26542
|
-
return keyBuilder$
|
|
26545
|
+
return keyBuilder$1s(luvio, resourceParams);
|
|
26543
26546
|
}
|
|
26544
26547
|
function typeCheckConfig$R(untrustedConfig) {
|
|
26545
26548
|
const config = {};
|
|
@@ -26595,7 +26598,7 @@
|
|
|
26595
26598
|
function buildCachedSnapshotCachePolicy$F(context, storeLookup) {
|
|
26596
26599
|
const { luvio, config } = context;
|
|
26597
26600
|
const selector = {
|
|
26598
|
-
recordId: keyBuilder$
|
|
26601
|
+
recordId: keyBuilder$1r(luvio, config),
|
|
26599
26602
|
node: adapterFragment$y(luvio, config),
|
|
26600
26603
|
variables: {},
|
|
26601
26604
|
};
|
|
@@ -26615,7 +26618,7 @@
|
|
|
26615
26618
|
buildCachedSnapshotCachePolicy$F, buildNetworkSnapshotCachePolicy$F);
|
|
26616
26619
|
};
|
|
26617
26620
|
|
|
26618
|
-
const VERSION$
|
|
26621
|
+
const VERSION$U$1 = "fecd80e9e24a1c1e75fd5395cd34ff2e";
|
|
26619
26622
|
const RepresentationType$z = 'ActionOverrideRepresentation';
|
|
26620
26623
|
function normalize$u(input, existing, path, luvio, store, timestamp) {
|
|
26621
26624
|
return input;
|
|
@@ -26623,7 +26626,7 @@
|
|
|
26623
26626
|
const select$1m = function ActionOverrideRepresentationSelect() {
|
|
26624
26627
|
return {
|
|
26625
26628
|
kind: 'Fragment',
|
|
26626
|
-
version: VERSION$
|
|
26629
|
+
version: VERSION$U$1,
|
|
26627
26630
|
private: [],
|
|
26628
26631
|
opaque: true
|
|
26629
26632
|
};
|
|
@@ -26637,7 +26640,7 @@
|
|
|
26637
26640
|
const ingest$u$1 = function ActionOverrideRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
26638
26641
|
const key = path.fullPath;
|
|
26639
26642
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
26640
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "UiApi", VERSION$
|
|
26643
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$u, "UiApi", VERSION$U$1, RepresentationType$z, equals$H);
|
|
26641
26644
|
return createLink$3(key);
|
|
26642
26645
|
};
|
|
26643
26646
|
function getTypeCacheKeys$A$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -26653,15 +26656,15 @@
|
|
|
26653
26656
|
function select$1l(luvio, params) {
|
|
26654
26657
|
return select$1m();
|
|
26655
26658
|
}
|
|
26656
|
-
function keyBuilder$
|
|
26659
|
+
function keyBuilder$1q(luvio, params) {
|
|
26657
26660
|
return keyPrefix$1 + '::ActionOverrideRepresentation:(' + 'type:' + params.queryParams.type + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
26658
26661
|
}
|
|
26659
26662
|
function getResponseCacheKeys$L(storeKeyMap, luvio, resourceParams, response) {
|
|
26660
|
-
getTypeCacheKeys$A$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
26663
|
+
getTypeCacheKeys$A$1(storeKeyMap, luvio, response, () => keyBuilder$1q(luvio, resourceParams));
|
|
26661
26664
|
}
|
|
26662
26665
|
function ingestSuccess$C(luvio, resourceParams, response, snapshotRefresh) {
|
|
26663
26666
|
const { body } = response;
|
|
26664
|
-
const key = keyBuilder$
|
|
26667
|
+
const key = keyBuilder$1q(luvio, resourceParams);
|
|
26665
26668
|
luvio.storeIngest(key, ingest$u$1, body);
|
|
26666
26669
|
const snapshot = luvio.storeLookup({
|
|
26667
26670
|
recordId: key,
|
|
@@ -26672,7 +26675,7 @@
|
|
|
26672
26675
|
return snapshot;
|
|
26673
26676
|
}
|
|
26674
26677
|
function ingestError$y(luvio, params, error, snapshotRefresh) {
|
|
26675
|
-
const key = keyBuilder$
|
|
26678
|
+
const key = keyBuilder$1q(luvio, params);
|
|
26676
26679
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26677
26680
|
luvio.storeIngestError(key, errorSnapshot);
|
|
26678
26681
|
return errorSnapshot;
|
|
@@ -26698,9 +26701,9 @@
|
|
|
26698
26701
|
];
|
|
26699
26702
|
const getActionOverrides_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$M, getActionOverrides_ConfigPropertyMetadata);
|
|
26700
26703
|
const createResourceParams$L = /*#__PURE__*/ createResourceParams$Y(getActionOverrides_ConfigPropertyMetadata);
|
|
26701
|
-
function keyBuilder$
|
|
26704
|
+
function keyBuilder$1p(luvio, config) {
|
|
26702
26705
|
const resourceParams = createResourceParams$L(config);
|
|
26703
|
-
return keyBuilder$
|
|
26706
|
+
return keyBuilder$1q(luvio, resourceParams);
|
|
26704
26707
|
}
|
|
26705
26708
|
function typeCheckConfig$Q(untrustedConfig) {
|
|
26706
26709
|
const config = {};
|
|
@@ -26756,7 +26759,7 @@
|
|
|
26756
26759
|
function buildCachedSnapshotCachePolicy$E(context, storeLookup) {
|
|
26757
26760
|
const { luvio, config } = context;
|
|
26758
26761
|
const selector = {
|
|
26759
|
-
recordId: keyBuilder$
|
|
26762
|
+
recordId: keyBuilder$1p(luvio, config),
|
|
26760
26763
|
node: adapterFragment$x(luvio, config),
|
|
26761
26764
|
variables: {},
|
|
26762
26765
|
};
|
|
@@ -26780,7 +26783,7 @@
|
|
|
26780
26783
|
ttl: TTL$q,
|
|
26781
26784
|
namespace: keyPrefix$1,
|
|
26782
26785
|
representationName: RepresentationType$E,
|
|
26783
|
-
version: VERSION$
|
|
26786
|
+
version: VERSION$Z$1,
|
|
26784
26787
|
};
|
|
26785
26788
|
function merge$1(existing, incoming) {
|
|
26786
26789
|
if (existing === undefined) {
|
|
@@ -26856,8 +26859,8 @@
|
|
|
26856
26859
|
return selectFields$7(trie);
|
|
26857
26860
|
}
|
|
26858
26861
|
|
|
26859
|
-
function keyBuilder$
|
|
26860
|
-
return keyBuilder$
|
|
26862
|
+
function keyBuilder$1o(luvio, params) {
|
|
26863
|
+
return keyBuilder$1C(luvio, {
|
|
26861
26864
|
actionApiName: params.urlParams.actionApiName
|
|
26862
26865
|
});
|
|
26863
26866
|
}
|
|
@@ -26865,12 +26868,12 @@
|
|
|
26865
26868
|
getTypeCacheKeys$F$1(storeKeyMap, luvio, response);
|
|
26866
26869
|
}
|
|
26867
26870
|
function ingestError$x(luvio, params, error, snapshotRefresh) {
|
|
26868
|
-
const key = keyBuilder$
|
|
26871
|
+
const key = keyBuilder$1o(luvio, params);
|
|
26869
26872
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
26870
26873
|
const storeMetadataParams = {
|
|
26871
26874
|
ttl: TTL$q,
|
|
26872
26875
|
namespace: keyPrefix$1,
|
|
26873
|
-
version: VERSION$
|
|
26876
|
+
version: VERSION$Z$1,
|
|
26874
26877
|
representationName: RepresentationType$E
|
|
26875
26878
|
};
|
|
26876
26879
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -26897,7 +26900,7 @@
|
|
|
26897
26900
|
function buildNetworkSnapshot$N(luvio, config, options) {
|
|
26898
26901
|
const resourceParams = createResourceParams$K(config);
|
|
26899
26902
|
const request = createResourceRequest$N(resourceParams);
|
|
26900
|
-
const key = keyBuilder$
|
|
26903
|
+
const key = keyBuilder$1n(luvio, config);
|
|
26901
26904
|
const trackedFieldsConfig = {
|
|
26902
26905
|
maxDepth: configurationForRestAdapters$1.getTrackedFieldDepthOnCacheMiss(),
|
|
26903
26906
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters$1.getTrackedFieldLeafNodeIdAndNameOnly()
|
|
@@ -26935,9 +26938,9 @@
|
|
|
26935
26938
|
];
|
|
26936
26939
|
const getQuickActionDefaults_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$L, getQuickActionDefaults_ConfigPropertyMetadata);
|
|
26937
26940
|
const createResourceParams$K = /*#__PURE__*/ createResourceParams$Y(getQuickActionDefaults_ConfigPropertyMetadata);
|
|
26938
|
-
function keyBuilder$
|
|
26941
|
+
function keyBuilder$1n(luvio, config) {
|
|
26939
26942
|
const resourceParams = createResourceParams$K(config);
|
|
26940
|
-
return keyBuilder$
|
|
26943
|
+
return keyBuilder$1o(luvio, resourceParams);
|
|
26941
26944
|
}
|
|
26942
26945
|
function typeCheckConfig$P(untrustedConfig) {
|
|
26943
26946
|
const config = {};
|
|
@@ -26957,7 +26960,7 @@
|
|
|
26957
26960
|
}
|
|
26958
26961
|
function buildCachedSnapshot$5(luvio, config) {
|
|
26959
26962
|
const selector = {
|
|
26960
|
-
recordId: keyBuilder$
|
|
26963
|
+
recordId: keyBuilder$1n(luvio, config),
|
|
26961
26964
|
node: adapterFragment$w(luvio, config),
|
|
26962
26965
|
variables: {},
|
|
26963
26966
|
};
|
|
@@ -26979,7 +26982,7 @@
|
|
|
26979
26982
|
function buildCachedSnapshotCachePolicy$D(context, storeLookup) {
|
|
26980
26983
|
const { luvio, config } = context;
|
|
26981
26984
|
const selector = {
|
|
26982
|
-
recordId: keyBuilder$
|
|
26985
|
+
recordId: keyBuilder$1n(luvio, config),
|
|
26983
26986
|
node: adapterFragment$w(luvio, config),
|
|
26984
26987
|
variables: {},
|
|
26985
26988
|
};
|
|
@@ -27002,15 +27005,15 @@
|
|
|
27002
27005
|
function select$1k(luvio, params) {
|
|
27003
27006
|
return select$1s();
|
|
27004
27007
|
}
|
|
27005
|
-
function keyBuilder$
|
|
27008
|
+
function keyBuilder$1m(luvio, params) {
|
|
27006
27009
|
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 + ')';
|
|
27007
27010
|
}
|
|
27008
27011
|
function getResponseCacheKeys$J(storeKeyMap, luvio, resourceParams, response) {
|
|
27009
|
-
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
27012
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1m(luvio, resourceParams));
|
|
27010
27013
|
}
|
|
27011
27014
|
function ingestSuccess$B(luvio, resourceParams, response, snapshotRefresh) {
|
|
27012
27015
|
const { body } = response;
|
|
27013
|
-
const key = keyBuilder$
|
|
27016
|
+
const key = keyBuilder$1m(luvio, resourceParams);
|
|
27014
27017
|
luvio.storeIngest(key, ingest$w$1, body);
|
|
27015
27018
|
const snapshot = luvio.storeLookup({
|
|
27016
27019
|
recordId: key,
|
|
@@ -27021,12 +27024,12 @@
|
|
|
27021
27024
|
return snapshot;
|
|
27022
27025
|
}
|
|
27023
27026
|
function ingestError$w(luvio, params, error, snapshotRefresh) {
|
|
27024
|
-
const key = keyBuilder$
|
|
27027
|
+
const key = keyBuilder$1m(luvio, params);
|
|
27025
27028
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
27026
27029
|
const storeMetadataParams = {
|
|
27027
27030
|
ttl: TTL$p,
|
|
27028
27031
|
namespace: keyPrefix$1,
|
|
27029
|
-
version: VERSION$
|
|
27032
|
+
version: VERSION$W$1,
|
|
27030
27033
|
representationName: RepresentationType$B
|
|
27031
27034
|
};
|
|
27032
27035
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -27057,9 +27060,9 @@
|
|
|
27057
27060
|
];
|
|
27058
27061
|
const getRecordActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$K, getRecordActions_ConfigPropertyMetadata);
|
|
27059
27062
|
const createResourceParams$J = /*#__PURE__*/ createResourceParams$Y(getRecordActions_ConfigPropertyMetadata);
|
|
27060
|
-
function keyBuilder$
|
|
27063
|
+
function keyBuilder$1l(luvio, config) {
|
|
27061
27064
|
const resourceParams = createResourceParams$J(config);
|
|
27062
|
-
return keyBuilder$
|
|
27065
|
+
return keyBuilder$1m(luvio, resourceParams);
|
|
27063
27066
|
}
|
|
27064
27067
|
function typeCheckConfig$O(untrustedConfig) {
|
|
27065
27068
|
const config = {};
|
|
@@ -27119,7 +27122,7 @@
|
|
|
27119
27122
|
function buildCachedSnapshotCachePolicy$C(context, storeLookup) {
|
|
27120
27123
|
const { luvio, config } = context;
|
|
27121
27124
|
const selector = {
|
|
27122
|
-
recordId: keyBuilder$
|
|
27125
|
+
recordId: keyBuilder$1l(luvio, config),
|
|
27123
27126
|
node: adapterFragment$v(luvio, config),
|
|
27124
27127
|
variables: {},
|
|
27125
27128
|
};
|
|
@@ -27142,15 +27145,15 @@
|
|
|
27142
27145
|
function select$1j(luvio, params) {
|
|
27143
27146
|
return select$1s();
|
|
27144
27147
|
}
|
|
27145
|
-
function keyBuilder$
|
|
27148
|
+
function keyBuilder$1k(luvio, params) {
|
|
27146
27149
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'recordIds:' + params.urlParams.recordIds + ')';
|
|
27147
27150
|
}
|
|
27148
27151
|
function getResponseCacheKeys$I(storeKeyMap, luvio, resourceParams, response) {
|
|
27149
|
-
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
27152
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1k(luvio, resourceParams));
|
|
27150
27153
|
}
|
|
27151
27154
|
function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
|
|
27152
27155
|
const { body } = response;
|
|
27153
|
-
const key = keyBuilder$
|
|
27156
|
+
const key = keyBuilder$1k(luvio, resourceParams);
|
|
27154
27157
|
luvio.storeIngest(key, ingest$w$1, body);
|
|
27155
27158
|
const snapshot = luvio.storeLookup({
|
|
27156
27159
|
recordId: key,
|
|
@@ -27161,12 +27164,12 @@
|
|
|
27161
27164
|
return snapshot;
|
|
27162
27165
|
}
|
|
27163
27166
|
function ingestError$v(luvio, params, error, snapshotRefresh) {
|
|
27164
|
-
const key = keyBuilder$
|
|
27167
|
+
const key = keyBuilder$1k(luvio, params);
|
|
27165
27168
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
27166
27169
|
const storeMetadataParams = {
|
|
27167
27170
|
ttl: TTL$p,
|
|
27168
27171
|
namespace: keyPrefix$1,
|
|
27169
|
-
version: VERSION$
|
|
27172
|
+
version: VERSION$W$1,
|
|
27170
27173
|
representationName: RepresentationType$B
|
|
27171
27174
|
};
|
|
27172
27175
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -27195,9 +27198,9 @@
|
|
|
27195
27198
|
];
|
|
27196
27199
|
const getRecordEditActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$J, getRecordEditActions_ConfigPropertyMetadata);
|
|
27197
27200
|
const createResourceParams$I = /*#__PURE__*/ createResourceParams$Y(getRecordEditActions_ConfigPropertyMetadata);
|
|
27198
|
-
function keyBuilder$
|
|
27201
|
+
function keyBuilder$1j(luvio, config) {
|
|
27199
27202
|
const resourceParams = createResourceParams$I(config);
|
|
27200
|
-
return keyBuilder$
|
|
27203
|
+
return keyBuilder$1k(luvio, resourceParams);
|
|
27201
27204
|
}
|
|
27202
27205
|
function typeCheckConfig$N(untrustedConfig) {
|
|
27203
27206
|
const config = {};
|
|
@@ -27253,7 +27256,7 @@
|
|
|
27253
27256
|
function buildCachedSnapshotCachePolicy$B(context, storeLookup) {
|
|
27254
27257
|
const { luvio, config } = context;
|
|
27255
27258
|
const selector = {
|
|
27256
|
-
recordId: keyBuilder$
|
|
27259
|
+
recordId: keyBuilder$1j(luvio, config),
|
|
27257
27260
|
node: adapterFragment$u(luvio, config),
|
|
27258
27261
|
variables: {},
|
|
27259
27262
|
};
|
|
@@ -27346,15 +27349,15 @@
|
|
|
27346
27349
|
function select$1i(luvio, params) {
|
|
27347
27350
|
return select$1s();
|
|
27348
27351
|
}
|
|
27349
|
-
function keyBuilder$
|
|
27352
|
+
function keyBuilder$1i(luvio, params) {
|
|
27350
27353
|
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) + ')';
|
|
27351
27354
|
}
|
|
27352
27355
|
function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
|
|
27353
|
-
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
27356
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1i(luvio, resourceParams));
|
|
27354
27357
|
}
|
|
27355
27358
|
function ingestSuccess$z(luvio, resourceParams, response, snapshotRefresh) {
|
|
27356
27359
|
const { body } = response;
|
|
27357
|
-
const key = keyBuilder$
|
|
27360
|
+
const key = keyBuilder$1i(luvio, resourceParams);
|
|
27358
27361
|
luvio.storeIngest(key, ingest$w$1, body);
|
|
27359
27362
|
const snapshot = luvio.storeLookup({
|
|
27360
27363
|
recordId: key,
|
|
@@ -27365,12 +27368,12 @@
|
|
|
27365
27368
|
return snapshot;
|
|
27366
27369
|
}
|
|
27367
27370
|
function ingestError$u(luvio, params, error, snapshotRefresh) {
|
|
27368
|
-
const key = keyBuilder$
|
|
27371
|
+
const key = keyBuilder$1i(luvio, params);
|
|
27369
27372
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
27370
27373
|
const storeMetadataParams = {
|
|
27371
27374
|
ttl: TTL$p,
|
|
27372
27375
|
namespace: keyPrefix$1,
|
|
27373
|
-
version: VERSION$
|
|
27376
|
+
version: VERSION$W$1,
|
|
27374
27377
|
representationName: RepresentationType$B
|
|
27375
27378
|
};
|
|
27376
27379
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -27390,7 +27393,7 @@
|
|
|
27390
27393
|
};
|
|
27391
27394
|
}
|
|
27392
27395
|
|
|
27393
|
-
|
|
27396
|
+
function createChildResourceParams$9(resourceParams) {
|
|
27394
27397
|
const childConfigs = [];
|
|
27395
27398
|
for (let index = 0, len = resourceParams.body.relatedListsActionParameters.length; index < len; index += 1) {
|
|
27396
27399
|
let childConfig = {
|
|
@@ -27420,12 +27423,13 @@
|
|
|
27420
27423
|
childConfigs.push(childConfig);
|
|
27421
27424
|
}
|
|
27422
27425
|
return childConfigs;
|
|
27423
|
-
}
|
|
27424
|
-
|
|
27425
|
-
|
|
27426
|
-
|
|
27427
|
-
|
|
27428
|
-
|
|
27426
|
+
}
|
|
27427
|
+
|
|
27428
|
+
const nonCachedErrors$6 = ObjectCreate$1$1(null);
|
|
27429
|
+
function createChildResourceParams$8(resourceParams) {
|
|
27430
|
+
return createChildResourceParams$9(resourceParams);
|
|
27431
|
+
}
|
|
27432
|
+
function selectChildResourceParams$6(luvio, childResources, resourceParams) {
|
|
27429
27433
|
const envelopeBodyPath = 'result';
|
|
27430
27434
|
const envelopeStatusCodePath = 'statusCode';
|
|
27431
27435
|
const envelopePath = 'results';
|
|
@@ -27434,21 +27438,36 @@
|
|
|
27434
27438
|
reader: true,
|
|
27435
27439
|
synthetic: true,
|
|
27436
27440
|
read: (reader) => {
|
|
27441
|
+
// Top-level 404 lookup
|
|
27442
|
+
const result = reader.storeLookup(keyBuilder$1h(luvio, resourceParams));
|
|
27443
|
+
if (result.state === reader.StoreResolveResultState.Error && result.value.status === 404) {
|
|
27444
|
+
return {
|
|
27445
|
+
state: 'Error',
|
|
27446
|
+
value: result.value,
|
|
27447
|
+
};
|
|
27448
|
+
}
|
|
27437
27449
|
const sink = {};
|
|
27438
27450
|
reader.enterPath(envelopePath);
|
|
27439
27451
|
const results = [];
|
|
27440
27452
|
for (let i = 0, len = childResources.length; i < len; i += 1) {
|
|
27441
27453
|
reader.enterPath(i);
|
|
27454
|
+
reader.enterPath(envelopeBodyPath);
|
|
27442
27455
|
const childResource = childResources[i];
|
|
27443
|
-
const childKey = keyBuilder$
|
|
27456
|
+
const childKey = keyBuilder$1i(luvio, childResource);
|
|
27444
27457
|
const childFragment = select$1i();
|
|
27458
|
+
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
27445
27459
|
const childSnapshot = reader.read({
|
|
27446
27460
|
recordId: childKey,
|
|
27447
27461
|
node: childFragment,
|
|
27448
27462
|
variables: {},
|
|
27449
27463
|
});
|
|
27464
|
+
reader.exitPath();
|
|
27450
27465
|
const childSink = {};
|
|
27466
|
+
reader.markSeenId(childKey);
|
|
27451
27467
|
switch (childSnapshot.state) {
|
|
27468
|
+
case 'Stale':
|
|
27469
|
+
reader.markStale();
|
|
27470
|
+
// Stale needs envelope bodies filled in so don't break
|
|
27452
27471
|
case 'Fulfilled':
|
|
27453
27472
|
reader.enterPath(envelopeStatusCodePath);
|
|
27454
27473
|
reader.assignScalar(envelopeStatusCodePath, childSink, 200);
|
|
@@ -27458,7 +27477,6 @@
|
|
|
27458
27477
|
reader.exitPath();
|
|
27459
27478
|
break;
|
|
27460
27479
|
case 'Error':
|
|
27461
|
-
// eslint-disable-next-line no-case-declarations
|
|
27462
27480
|
const childSnapshotError = childSnapshot.error;
|
|
27463
27481
|
reader.enterPath(envelopeStatusCodePath);
|
|
27464
27482
|
reader.assignScalar(envelopeStatusCodePath, childSink, childSnapshotError.status);
|
|
@@ -27468,90 +27486,152 @@
|
|
|
27468
27486
|
reader.exitPath();
|
|
27469
27487
|
break;
|
|
27470
27488
|
case 'Unfulfilled':
|
|
27471
|
-
|
|
27489
|
+
// if child snapshot doesn't have any data then
|
|
27490
|
+
// that means the child record key is missing
|
|
27491
|
+
if (childSnapshot.data === undefined) {
|
|
27492
|
+
if (reader.isRebuilding() === false) {
|
|
27493
|
+
// not a rebuild, mark as missing and move on
|
|
27494
|
+
reader.markMissingLink(childKey);
|
|
27495
|
+
break;
|
|
27496
|
+
}
|
|
27497
|
+
// On rebuilds we have to check if there is a non-cached
|
|
27498
|
+
// error that we know about. If we don't do this then
|
|
27499
|
+
// rebuilds will go into endless refresh loop if a child
|
|
27500
|
+
// has non-cached errors (since the top-level composite
|
|
27501
|
+
// snapshot will look like an Unfulfilled snapshot
|
|
27502
|
+
// instead of an error snapshot).
|
|
27503
|
+
const nonCachedError = nonCachedErrors$6[childKey];
|
|
27504
|
+
if (nonCachedError === undefined || nonCachedError.expiration < reader.getTimeStamp()) {
|
|
27505
|
+
reader.markMissingLink(childKey);
|
|
27506
|
+
}
|
|
27507
|
+
else {
|
|
27508
|
+
// if this child error was the only reason the reader
|
|
27509
|
+
// is marked as missing then we want to undo that
|
|
27510
|
+
if (isMissingDataBeforeChildRead === false) {
|
|
27511
|
+
reader.unMarkMissing();
|
|
27512
|
+
}
|
|
27513
|
+
// put status code and body into reader path
|
|
27514
|
+
const { response: nonCachedBody, status: nonCachedStatus } = nonCachedError;
|
|
27515
|
+
reader.enterPath(envelopeStatusCodePath);
|
|
27516
|
+
reader.assignScalar(envelopeStatusCodePath, childSink, nonCachedStatus);
|
|
27517
|
+
reader.exitPath();
|
|
27518
|
+
reader.enterPath(envelopeBodyPath);
|
|
27519
|
+
reader.assignNonScalar(childSink, envelopeBodyPath, nonCachedBody);
|
|
27520
|
+
reader.exitPath();
|
|
27521
|
+
}
|
|
27522
|
+
}
|
|
27472
27523
|
break;
|
|
27473
27524
|
case 'Pending':
|
|
27474
27525
|
reader.markPending();
|
|
27475
27526
|
break;
|
|
27476
|
-
case 'Stale':
|
|
27477
|
-
reader.markStale();
|
|
27478
|
-
break;
|
|
27479
27527
|
}
|
|
27480
27528
|
ArrayPrototypePush$1.call(results, childSink);
|
|
27481
27529
|
reader.exitPath();
|
|
27482
27530
|
}
|
|
27483
27531
|
reader.assignNonScalar(sink, envelopePath, results);
|
|
27484
|
-
deepFreeze(sink);
|
|
27485
27532
|
reader.exitPath();
|
|
27486
27533
|
return sink;
|
|
27487
|
-
}
|
|
27534
|
+
}
|
|
27488
27535
|
};
|
|
27489
27536
|
}
|
|
27490
|
-
function
|
|
27491
|
-
|
|
27492
|
-
|
|
27493
|
-
'ActionRelatedListsCollectionBatchRepresentation(' +
|
|
27494
|
-
'relatedListsActionParameters:' +
|
|
27495
|
-
params.body.relatedListsActionParameters +
|
|
27496
|
-
')');
|
|
27537
|
+
function select$1h(luvio, resourceParams) {
|
|
27538
|
+
const childResources = createChildResourceParams$8(resourceParams);
|
|
27539
|
+
return selectChildResourceParams$6(luvio, childResources, resourceParams);
|
|
27497
27540
|
}
|
|
27498
|
-
function
|
|
27499
|
-
|
|
27500
|
-
|
|
27501
|
-
|
|
27502
|
-
const
|
|
27541
|
+
function keyBuilder$1h(luvio, params) {
|
|
27542
|
+
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(',') + ']' + ')';
|
|
27543
|
+
}
|
|
27544
|
+
function getResponseCacheKeys$G(keys, luvio, resourceParams, response) {
|
|
27545
|
+
const childEnvelopes = response.results;
|
|
27546
|
+
const childResourceParamsArray = createChildResourceParams$8(resourceParams);
|
|
27547
|
+
// get children keys
|
|
27548
|
+
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
27549
|
+
const childResourceParams = childResourceParamsArray[index];
|
|
27550
|
+
const childResult = childEnvelopes[index];
|
|
27551
|
+
const { statusCode: childStatusCode, result: childBody } = childResult;
|
|
27552
|
+
if (childStatusCode === 200) {
|
|
27553
|
+
getResponseCacheKeys$H(keys, luvio, childResourceParams, childBody);
|
|
27554
|
+
}
|
|
27555
|
+
else if (childStatusCode === 404) {
|
|
27556
|
+
const childKey = keyBuilder$1i(luvio, childResourceParams);
|
|
27557
|
+
keys.set(childKey, {
|
|
27558
|
+
namespace: keyPrefix$1,
|
|
27559
|
+
representationName: RepresentationType$B,
|
|
27560
|
+
mergeable: false
|
|
27561
|
+
});
|
|
27562
|
+
}
|
|
27563
|
+
}
|
|
27564
|
+
}
|
|
27565
|
+
function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes) {
|
|
27503
27566
|
const childSnapshotDataResponses = [];
|
|
27504
27567
|
let seenRecords = new StoreKeySet();
|
|
27568
|
+
let snapshotState = 'Fulfilled';
|
|
27569
|
+
const now = Date.now();
|
|
27505
27570
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
27506
27571
|
const childResourceParams = childResourceParamsArray[index];
|
|
27572
|
+
const childKey = keyBuilder$1i(luvio, childResourceParams);
|
|
27507
27573
|
const result = childEnvelopes[index];
|
|
27508
|
-
const
|
|
27509
|
-
if (
|
|
27510
|
-
const { statusCode: childStatusCode, result: childBody } = result;
|
|
27574
|
+
const { statusCode: childStatusCode, result: childBody } = result;
|
|
27575
|
+
if (childStatusCode === 200) {
|
|
27511
27576
|
const childResponse = {
|
|
27512
|
-
status:
|
|
27577
|
+
status: 200,
|
|
27513
27578
|
body: childBody,
|
|
27514
27579
|
ok: true,
|
|
27515
|
-
statusText:
|
|
27580
|
+
statusText: 'OK',
|
|
27516
27581
|
headers: {},
|
|
27517
27582
|
};
|
|
27518
27583
|
const childSnapshot = ingestSuccess$z(luvio, childResourceParams, childResponse);
|
|
27584
|
+
if (childSnapshot.state === "Stale") {
|
|
27585
|
+
snapshotState = "Stale";
|
|
27586
|
+
}
|
|
27519
27587
|
seenRecords.merge(childSnapshot.seenRecords);
|
|
27520
27588
|
seenRecords.add(childSnapshot.recordId);
|
|
27521
|
-
if (childSnapshot.state === 'Pending') {
|
|
27522
|
-
snapshotState = 'Pending';
|
|
27523
|
-
break;
|
|
27524
|
-
}
|
|
27525
27589
|
const childValue = {
|
|
27526
|
-
statusCode:
|
|
27590
|
+
statusCode: 200,
|
|
27527
27591
|
result: childSnapshot.data,
|
|
27528
27592
|
};
|
|
27529
|
-
|
|
27593
|
+
deepFreeze(childValue);
|
|
27594
|
+
ArrayPrototypePush$1.call(childSnapshotDataResponses, childValue);
|
|
27530
27595
|
}
|
|
27531
27596
|
else {
|
|
27532
|
-
const
|
|
27597
|
+
const childStatusCodeText = getFetchResponseStatusText$1(result.statusCode);
|
|
27533
27598
|
const childResponse = {
|
|
27534
27599
|
status: childStatusCode,
|
|
27535
27600
|
body: childBody,
|
|
27536
27601
|
ok: false,
|
|
27537
27602
|
statusText: childStatusCodeText,
|
|
27538
27603
|
headers: {},
|
|
27539
|
-
errorType: 'fetchResponse'
|
|
27604
|
+
errorType: 'fetchResponse'
|
|
27540
27605
|
};
|
|
27541
27606
|
ingestError$u(luvio, childResourceParams, childResponse);
|
|
27542
|
-
seenRecords.add(
|
|
27607
|
+
seenRecords.add(childKey);
|
|
27543
27608
|
const childValue = {
|
|
27544
27609
|
statusCode: childStatusCode,
|
|
27545
27610
|
result: childBody,
|
|
27546
27611
|
};
|
|
27547
|
-
|
|
27612
|
+
deepFreeze(childValue);
|
|
27613
|
+
ArrayPrototypePush$1.call(childSnapshotDataResponses, childValue);
|
|
27614
|
+
}
|
|
27615
|
+
// track non-cached responses so rebuilds work properly
|
|
27616
|
+
if (childStatusCode !== 404 && childStatusCode !== 200) {
|
|
27617
|
+
nonCachedErrors$6[childKey] = { expiration: now + TTL$p, response: childBody, status: childStatusCode };
|
|
27618
|
+
}
|
|
27619
|
+
else {
|
|
27620
|
+
delete nonCachedErrors$6[childKey];
|
|
27548
27621
|
}
|
|
27549
27622
|
}
|
|
27550
27623
|
const childSnapshotData = {
|
|
27551
|
-
results: childSnapshotDataResponses
|
|
27624
|
+
results: childSnapshotDataResponses
|
|
27552
27625
|
};
|
|
27553
27626
|
deepFreeze(childSnapshotData);
|
|
27554
|
-
return {
|
|
27627
|
+
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
27628
|
+
}
|
|
27629
|
+
function ingestSuccess$y(luvio, resourceParams, response, snapshotRefresh) {
|
|
27630
|
+
const childEnvelopes = response.body.results;
|
|
27631
|
+
const childResourceParamsArray = createChildResourceParams$8(resourceParams);
|
|
27632
|
+
const key = keyBuilder$1h(luvio, resourceParams);
|
|
27633
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes);
|
|
27634
|
+
const syntheticSnapshot = {
|
|
27555
27635
|
recordId: key,
|
|
27556
27636
|
data: childSnapshotData,
|
|
27557
27637
|
state: snapshotState,
|
|
@@ -27561,36 +27641,19 @@
|
|
|
27561
27641
|
node: select$1h(luvio, resourceParams),
|
|
27562
27642
|
variables: {},
|
|
27563
27643
|
},
|
|
27564
|
-
|
|
27644
|
+
refresh: snapshotRefresh,
|
|
27645
|
+
variables: {}
|
|
27565
27646
|
};
|
|
27647
|
+
// evict top level composite record from the store. This covers the case where a previous resource request returned a 404.
|
|
27648
|
+
luvio.storeEvict(key);
|
|
27649
|
+
return syntheticSnapshot;
|
|
27566
27650
|
}
|
|
27567
27651
|
function ingestError$t(luvio, params, error, snapshotRefresh) {
|
|
27568
|
-
const key = keyBuilder$
|
|
27652
|
+
const key = keyBuilder$1h(luvio, params);
|
|
27569
27653
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
27570
27654
|
luvio.storeIngestError(key, errorSnapshot);
|
|
27571
27655
|
return errorSnapshot;
|
|
27572
27656
|
}
|
|
27573
|
-
function getResponseCacheKeys$G(keys, luvio, resourceParams, response) {
|
|
27574
|
-
const childEnvelopes = response.results;
|
|
27575
|
-
const childResourceParamsArray = createChildResourceParams$6(resourceParams);
|
|
27576
|
-
// get children keys
|
|
27577
|
-
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
27578
|
-
const childResourceParams = childResourceParamsArray[index];
|
|
27579
|
-
const childResult = childEnvelopes[index];
|
|
27580
|
-
const { statusCode: childStatusCode, result: childBody } = childResult;
|
|
27581
|
-
if (childStatusCode === 200) {
|
|
27582
|
-
getResponseCacheKeys$H(keys, luvio, childResourceParams, childBody);
|
|
27583
|
-
}
|
|
27584
|
-
else if (childStatusCode === 404) {
|
|
27585
|
-
const childKey = keyBuilder$1j(luvio, childResourceParams);
|
|
27586
|
-
keys.set(childKey, {
|
|
27587
|
-
namespace: keyPrefix$1,
|
|
27588
|
-
representationName: childKey.split('::')[1].split(':')[0],
|
|
27589
|
-
mergeable: false,
|
|
27590
|
-
});
|
|
27591
|
-
}
|
|
27592
|
-
}
|
|
27593
|
-
}
|
|
27594
27657
|
function createResourceRequest$J(config) {
|
|
27595
27658
|
const headers = {};
|
|
27596
27659
|
return {
|
|
@@ -27612,9 +27675,9 @@
|
|
|
27612
27675
|
];
|
|
27613
27676
|
const getRelatedListsActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$I, getRelatedListsActions_ConfigPropertyMetadata);
|
|
27614
27677
|
const createResourceParams$H = /*#__PURE__*/ createResourceParams$Y(getRelatedListsActions_ConfigPropertyMetadata);
|
|
27615
|
-
function keyBuilder$
|
|
27678
|
+
function keyBuilder$1g(luvio, config) {
|
|
27616
27679
|
const resourceParams = createResourceParams$H(config);
|
|
27617
|
-
return keyBuilder$
|
|
27680
|
+
return keyBuilder$1h(luvio, resourceParams);
|
|
27618
27681
|
}
|
|
27619
27682
|
function typeCheckConfig$M(untrustedConfig) {
|
|
27620
27683
|
const config = {};
|
|
@@ -27649,7 +27712,10 @@
|
|
|
27649
27712
|
return select$1h(luvio, resourceParams);
|
|
27650
27713
|
}
|
|
27651
27714
|
function onFetchResponseSuccess$x(luvio, config, resourceParams, response) {
|
|
27652
|
-
const snapshot = ingestSuccess$y(luvio, resourceParams, response
|
|
27715
|
+
const snapshot = ingestSuccess$y(luvio, resourceParams, response, {
|
|
27716
|
+
config,
|
|
27717
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions$1)
|
|
27718
|
+
});
|
|
27653
27719
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27654
27720
|
}
|
|
27655
27721
|
function onFetchResponseError$x(luvio, config, resourceParams, response) {
|
|
@@ -27679,7 +27745,7 @@
|
|
|
27679
27745
|
function buildCachedSnapshotCachePolicy$A(context, storeLookup) {
|
|
27680
27746
|
const { luvio, config } = context;
|
|
27681
27747
|
const selector = {
|
|
27682
|
-
recordId: keyBuilder$
|
|
27748
|
+
recordId: keyBuilder$1g(luvio, config),
|
|
27683
27749
|
node: adapterFragment$t(luvio, config),
|
|
27684
27750
|
variables: {},
|
|
27685
27751
|
};
|
|
@@ -27711,9 +27777,9 @@
|
|
|
27711
27777
|
];
|
|
27712
27778
|
const getRelatedListActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$H, getRelatedListActions_ConfigPropertyMetadata);
|
|
27713
27779
|
const createResourceParams$G = /*#__PURE__*/ createResourceParams$Y(getRelatedListActions_ConfigPropertyMetadata);
|
|
27714
|
-
function keyBuilder$
|
|
27780
|
+
function keyBuilder$1f(luvio, config) {
|
|
27715
27781
|
const resourceParams = createResourceParams$G(config);
|
|
27716
|
-
return keyBuilder$
|
|
27782
|
+
return keyBuilder$1i(luvio, resourceParams);
|
|
27717
27783
|
}
|
|
27718
27784
|
function typeCheckConfig$L(untrustedConfig) {
|
|
27719
27785
|
const config = {};
|
|
@@ -27769,7 +27835,7 @@
|
|
|
27769
27835
|
function buildCachedSnapshotCachePolicy$z(context, storeLookup) {
|
|
27770
27836
|
const { luvio, config } = context;
|
|
27771
27837
|
const selector = {
|
|
27772
|
-
recordId: keyBuilder$
|
|
27838
|
+
recordId: keyBuilder$1f(luvio, config),
|
|
27773
27839
|
node: adapterFragment$s(luvio, config),
|
|
27774
27840
|
variables: {},
|
|
27775
27841
|
};
|
|
@@ -27792,15 +27858,15 @@
|
|
|
27792
27858
|
function select$1g(luvio, params) {
|
|
27793
27859
|
return select$1s();
|
|
27794
27860
|
}
|
|
27795
|
-
function keyBuilder$
|
|
27861
|
+
function keyBuilder$1e(luvio, params) {
|
|
27796
27862
|
return keyPrefix$1 + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'recordIds:' + params.urlParams.recordIds + ',' + 'relatedListRecordIds:' + params.urlParams.relatedListRecordIds + ')';
|
|
27797
27863
|
}
|
|
27798
27864
|
function getResponseCacheKeys$F(storeKeyMap, luvio, resourceParams, response) {
|
|
27799
|
-
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
27865
|
+
getTypeCacheKeys$C$1(storeKeyMap, luvio, response, () => keyBuilder$1e(luvio, resourceParams));
|
|
27800
27866
|
}
|
|
27801
27867
|
function ingestSuccess$x(luvio, resourceParams, response, snapshotRefresh) {
|
|
27802
27868
|
const { body } = response;
|
|
27803
|
-
const key = keyBuilder$
|
|
27869
|
+
const key = keyBuilder$1e(luvio, resourceParams);
|
|
27804
27870
|
luvio.storeIngest(key, ingest$w$1, body);
|
|
27805
27871
|
const snapshot = luvio.storeLookup({
|
|
27806
27872
|
recordId: key,
|
|
@@ -27811,12 +27877,12 @@
|
|
|
27811
27877
|
return snapshot;
|
|
27812
27878
|
}
|
|
27813
27879
|
function ingestError$s(luvio, params, error, snapshotRefresh) {
|
|
27814
|
-
const key = keyBuilder$
|
|
27880
|
+
const key = keyBuilder$1e(luvio, params);
|
|
27815
27881
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
27816
27882
|
const storeMetadataParams = {
|
|
27817
27883
|
ttl: TTL$p,
|
|
27818
27884
|
namespace: keyPrefix$1,
|
|
27819
|
-
version: VERSION$
|
|
27885
|
+
version: VERSION$W$1,
|
|
27820
27886
|
representationName: RepresentationType$B
|
|
27821
27887
|
};
|
|
27822
27888
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -27846,9 +27912,9 @@
|
|
|
27846
27912
|
];
|
|
27847
27913
|
const getRelatedListRecordActions_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$G, getRelatedListRecordActions_ConfigPropertyMetadata);
|
|
27848
27914
|
const createResourceParams$F = /*#__PURE__*/ createResourceParams$Y(getRelatedListRecordActions_ConfigPropertyMetadata);
|
|
27849
|
-
function keyBuilder$
|
|
27915
|
+
function keyBuilder$1d(luvio, config) {
|
|
27850
27916
|
const resourceParams = createResourceParams$F(config);
|
|
27851
|
-
return keyBuilder$
|
|
27917
|
+
return keyBuilder$1e(luvio, resourceParams);
|
|
27852
27918
|
}
|
|
27853
27919
|
function typeCheckConfig$K(untrustedConfig) {
|
|
27854
27920
|
const config = {};
|
|
@@ -27904,7 +27970,7 @@
|
|
|
27904
27970
|
function buildCachedSnapshotCachePolicy$y(context, storeLookup) {
|
|
27905
27971
|
const { luvio, config } = context;
|
|
27906
27972
|
const selector = {
|
|
27907
|
-
recordId: keyBuilder$
|
|
27973
|
+
recordId: keyBuilder$1d(luvio, config),
|
|
27908
27974
|
node: adapterFragment$r(luvio, config),
|
|
27909
27975
|
variables: {},
|
|
27910
27976
|
};
|
|
@@ -27924,7 +27990,7 @@
|
|
|
27924
27990
|
buildCachedSnapshotCachePolicy$y, buildNetworkSnapshotCachePolicy$y);
|
|
27925
27991
|
};
|
|
27926
27992
|
|
|
27927
|
-
const VERSION$
|
|
27993
|
+
const VERSION$T$1 = "a316b3bba367f54adc67d7552ed7d36d";
|
|
27928
27994
|
const RepresentationType$y = 'PageReferenceRepresentation';
|
|
27929
27995
|
function normalize$t(input, existing, path, luvio, store, timestamp) {
|
|
27930
27996
|
return input;
|
|
@@ -27932,7 +27998,7 @@
|
|
|
27932
27998
|
const select$1f = function PageReferenceRepresentationSelect() {
|
|
27933
27999
|
return {
|
|
27934
28000
|
kind: 'Fragment',
|
|
27935
|
-
version: VERSION$
|
|
28001
|
+
version: VERSION$T$1,
|
|
27936
28002
|
private: [],
|
|
27937
28003
|
opaque: true
|
|
27938
28004
|
};
|
|
@@ -27946,7 +28012,7 @@
|
|
|
27946
28012
|
const ingest$t$1 = function PageReferenceRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
27947
28013
|
const key = path.fullPath;
|
|
27948
28014
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
27949
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$t, "UiApi", VERSION$
|
|
28015
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$t, "UiApi", VERSION$T$1, RepresentationType$y, equals$G);
|
|
27950
28016
|
return createLink$3(key);
|
|
27951
28017
|
};
|
|
27952
28018
|
function getTypeCacheKeys$z$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -27960,16 +28026,16 @@
|
|
|
27960
28026
|
}
|
|
27961
28027
|
|
|
27962
28028
|
const TTL$n = 120000;
|
|
27963
|
-
const VERSION$
|
|
28029
|
+
const VERSION$S$1 = "09884ca5bf90ea4662092a4e48817081";
|
|
27964
28030
|
const RepresentationType$x = 'NavItemRepresentation';
|
|
27965
|
-
function keyBuilder$
|
|
28031
|
+
function keyBuilder$1c(luvio, config) {
|
|
27966
28032
|
return keyPrefix$1 + '::' + RepresentationType$x + ':' + config.developerName;
|
|
27967
28033
|
}
|
|
27968
28034
|
function keyBuilderFromType$l(luvio, object) {
|
|
27969
28035
|
const keyParams = {
|
|
27970
28036
|
developerName: object.developerName
|
|
27971
28037
|
};
|
|
27972
|
-
return keyBuilder$
|
|
28038
|
+
return keyBuilder$1c(luvio, keyParams);
|
|
27973
28039
|
}
|
|
27974
28040
|
function normalize$s(input, existing, path, luvio, store, timestamp) {
|
|
27975
28041
|
const input_pageReference = input.pageReference;
|
|
@@ -27991,7 +28057,7 @@
|
|
|
27991
28057
|
const select$1e = function NavItemRepresentationSelect() {
|
|
27992
28058
|
return {
|
|
27993
28059
|
kind: 'Fragment',
|
|
27994
|
-
version: VERSION$
|
|
28060
|
+
version: VERSION$S$1,
|
|
27995
28061
|
private: [],
|
|
27996
28062
|
selections: [
|
|
27997
28063
|
{
|
|
@@ -28145,7 +28211,7 @@
|
|
|
28145
28211
|
const ingest$s$1 = function NavItemRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
28146
28212
|
const key = keyBuilderFromType$l(luvio, input);
|
|
28147
28213
|
const ttlToUse = TTL$n;
|
|
28148
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$s, "UiApi", VERSION$
|
|
28214
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$s, "UiApi", VERSION$S$1, RepresentationType$x, equals$F);
|
|
28149
28215
|
return createLink$3(key);
|
|
28150
28216
|
};
|
|
28151
28217
|
function getTypeCacheKeys$y$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -28162,16 +28228,16 @@
|
|
|
28162
28228
|
}
|
|
28163
28229
|
|
|
28164
28230
|
const TTL$m = 300000;
|
|
28165
|
-
const VERSION$
|
|
28231
|
+
const VERSION$R$1 = "1781f2d3d4e413cf0c681774d82d02cd";
|
|
28166
28232
|
const RepresentationType$w = 'AppRepresentation';
|
|
28167
|
-
function keyBuilder$
|
|
28233
|
+
function keyBuilder$1b(luvio, config) {
|
|
28168
28234
|
return keyPrefix$1 + '::' + RepresentationType$w + ':' + (config.appId === null ? '' : config.appId);
|
|
28169
28235
|
}
|
|
28170
28236
|
function keyBuilderFromType$k(luvio, object) {
|
|
28171
28237
|
const keyParams = {
|
|
28172
28238
|
appId: object.appId
|
|
28173
28239
|
};
|
|
28174
|
-
return keyBuilder$
|
|
28240
|
+
return keyBuilder$1b(luvio, keyParams);
|
|
28175
28241
|
}
|
|
28176
28242
|
function normalize$r(input, existing, path, luvio, store, timestamp) {
|
|
28177
28243
|
const input_navItems = input.navItems;
|
|
@@ -28211,7 +28277,7 @@
|
|
|
28211
28277
|
const select$1d$1 = function AppRepresentationSelect() {
|
|
28212
28278
|
return {
|
|
28213
28279
|
kind: 'Fragment',
|
|
28214
|
-
version: VERSION$
|
|
28280
|
+
version: VERSION$R$1,
|
|
28215
28281
|
private: [
|
|
28216
28282
|
'eTag'
|
|
28217
28283
|
],
|
|
@@ -28403,7 +28469,7 @@
|
|
|
28403
28469
|
const ingest$r$1 = function AppRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
28404
28470
|
const key = keyBuilderFromType$k(luvio, input);
|
|
28405
28471
|
const ttlToUse = TTL$m;
|
|
28406
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$r, "UiApi", VERSION$
|
|
28472
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$r, "UiApi", VERSION$R$1, RepresentationType$w, equals$E);
|
|
28407
28473
|
return createLink$3(key);
|
|
28408
28474
|
};
|
|
28409
28475
|
function getTypeCacheKeys$x$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -28425,7 +28491,7 @@
|
|
|
28425
28491
|
}
|
|
28426
28492
|
|
|
28427
28493
|
const TTL$l = 300000;
|
|
28428
|
-
const VERSION$
|
|
28494
|
+
const VERSION$Q$1 = "a254babf0b6414315db7808a157fd9fc";
|
|
28429
28495
|
const RepresentationType$v = 'AppsRepresentation';
|
|
28430
28496
|
function normalize$q(input, existing, path, luvio, store, timestamp) {
|
|
28431
28497
|
const input_apps = input.apps;
|
|
@@ -28449,7 +28515,7 @@
|
|
|
28449
28515
|
const select$1c$1 = function AppsRepresentationSelect() {
|
|
28450
28516
|
return {
|
|
28451
28517
|
kind: 'Fragment',
|
|
28452
|
-
version: VERSION$
|
|
28518
|
+
version: VERSION$Q$1,
|
|
28453
28519
|
private: [
|
|
28454
28520
|
'eTag'
|
|
28455
28521
|
],
|
|
@@ -28484,7 +28550,7 @@
|
|
|
28484
28550
|
const ingest$q$1 = function AppsRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
28485
28551
|
const key = path.fullPath;
|
|
28486
28552
|
const ttlToUse = TTL$l;
|
|
28487
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$q, "UiApi", VERSION$
|
|
28553
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$q, "UiApi", VERSION$Q$1, RepresentationType$v, equals$D);
|
|
28488
28554
|
return createLink$3(key);
|
|
28489
28555
|
};
|
|
28490
28556
|
function getTypeCacheKeys$w$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -28504,15 +28570,15 @@
|
|
|
28504
28570
|
function select$1b$1(luvio, params) {
|
|
28505
28571
|
return select$1c$1();
|
|
28506
28572
|
}
|
|
28507
|
-
function keyBuilder$
|
|
28573
|
+
function keyBuilder$1a(luvio, params) {
|
|
28508
28574
|
return keyPrefix$1 + '::AppsRepresentation:(' + 'formFactor:' + params.queryParams.formFactor + ',' + 'userCustomizations:' + params.queryParams.userCustomizations + ')';
|
|
28509
28575
|
}
|
|
28510
28576
|
function getResponseCacheKeys$E(storeKeyMap, luvio, resourceParams, response) {
|
|
28511
|
-
getTypeCacheKeys$w$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
28577
|
+
getTypeCacheKeys$w$1(storeKeyMap, luvio, response, () => keyBuilder$1a(luvio, resourceParams));
|
|
28512
28578
|
}
|
|
28513
28579
|
function ingestSuccess$w(luvio, resourceParams, response, snapshotRefresh) {
|
|
28514
28580
|
const { body } = response;
|
|
28515
|
-
const key = keyBuilder$
|
|
28581
|
+
const key = keyBuilder$1a(luvio, resourceParams);
|
|
28516
28582
|
luvio.storeIngest(key, ingest$q$1, body);
|
|
28517
28583
|
const snapshot = luvio.storeLookup({
|
|
28518
28584
|
recordId: key,
|
|
@@ -28523,12 +28589,12 @@
|
|
|
28523
28589
|
return snapshot;
|
|
28524
28590
|
}
|
|
28525
28591
|
function ingestError$r(luvio, params, error, snapshotRefresh) {
|
|
28526
|
-
const key = keyBuilder$
|
|
28592
|
+
const key = keyBuilder$1a(luvio, params);
|
|
28527
28593
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
28528
28594
|
const storeMetadataParams = {
|
|
28529
28595
|
ttl: TTL$l,
|
|
28530
28596
|
namespace: keyPrefix$1,
|
|
28531
|
-
version: VERSION$
|
|
28597
|
+
version: VERSION$Q$1,
|
|
28532
28598
|
representationName: RepresentationType$v
|
|
28533
28599
|
};
|
|
28534
28600
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -28555,9 +28621,9 @@
|
|
|
28555
28621
|
];
|
|
28556
28622
|
const getAllApps_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$F, getAllApps_ConfigPropertyMetadata);
|
|
28557
28623
|
const createResourceParams$E = /*#__PURE__*/ createResourceParams$Y(getAllApps_ConfigPropertyMetadata);
|
|
28558
|
-
function keyBuilder$
|
|
28624
|
+
function keyBuilder$19(luvio, config) {
|
|
28559
28625
|
const resourceParams = createResourceParams$E(config);
|
|
28560
|
-
return keyBuilder$
|
|
28626
|
+
return keyBuilder$1a(luvio, resourceParams);
|
|
28561
28627
|
}
|
|
28562
28628
|
function typeCheckConfig$J(untrustedConfig) {
|
|
28563
28629
|
const config = {};
|
|
@@ -28613,7 +28679,7 @@
|
|
|
28613
28679
|
function buildCachedSnapshotCachePolicy$x(context, storeLookup) {
|
|
28614
28680
|
const { luvio, config } = context;
|
|
28615
28681
|
const selector = {
|
|
28616
|
-
recordId: keyBuilder$
|
|
28682
|
+
recordId: keyBuilder$19(luvio, config),
|
|
28617
28683
|
node: adapterFragment$q(luvio, config),
|
|
28618
28684
|
variables: {},
|
|
28619
28685
|
};
|
|
@@ -28636,8 +28702,8 @@
|
|
|
28636
28702
|
function select$1a$1(luvio, params) {
|
|
28637
28703
|
return select$1d$1();
|
|
28638
28704
|
}
|
|
28639
|
-
function keyBuilder$
|
|
28640
|
-
return keyBuilder$
|
|
28705
|
+
function keyBuilder$18$1(luvio, params) {
|
|
28706
|
+
return keyBuilder$1b(luvio, {
|
|
28641
28707
|
appId: params.urlParams.appId
|
|
28642
28708
|
});
|
|
28643
28709
|
}
|
|
@@ -28646,7 +28712,7 @@
|
|
|
28646
28712
|
}
|
|
28647
28713
|
function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
|
|
28648
28714
|
const { body } = response;
|
|
28649
|
-
const key = keyBuilder$
|
|
28715
|
+
const key = keyBuilder$18$1(luvio, resourceParams);
|
|
28650
28716
|
luvio.storeIngest(key, ingest$r$1, body);
|
|
28651
28717
|
const snapshot = luvio.storeLookup({
|
|
28652
28718
|
recordId: key,
|
|
@@ -28657,12 +28723,12 @@
|
|
|
28657
28723
|
return snapshot;
|
|
28658
28724
|
}
|
|
28659
28725
|
function ingestError$q(luvio, params, error, snapshotRefresh) {
|
|
28660
|
-
const key = keyBuilder$
|
|
28726
|
+
const key = keyBuilder$18$1(luvio, params);
|
|
28661
28727
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
28662
28728
|
const storeMetadataParams = {
|
|
28663
28729
|
ttl: TTL$m,
|
|
28664
28730
|
namespace: keyPrefix$1,
|
|
28665
|
-
version: VERSION$
|
|
28731
|
+
version: VERSION$R$1,
|
|
28666
28732
|
representationName: RepresentationType$w
|
|
28667
28733
|
};
|
|
28668
28734
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -28690,9 +28756,9 @@
|
|
|
28690
28756
|
];
|
|
28691
28757
|
const getAppDetails_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$E, getAppDetails_ConfigPropertyMetadata);
|
|
28692
28758
|
const createResourceParams$D = /*#__PURE__*/ createResourceParams$Y(getAppDetails_ConfigPropertyMetadata);
|
|
28693
|
-
function keyBuilder$
|
|
28759
|
+
function keyBuilder$17$1(luvio, config) {
|
|
28694
28760
|
const resourceParams = createResourceParams$D(config);
|
|
28695
|
-
return keyBuilder$
|
|
28761
|
+
return keyBuilder$18$1(luvio, resourceParams);
|
|
28696
28762
|
}
|
|
28697
28763
|
function typeCheckConfig$I(untrustedConfig) {
|
|
28698
28764
|
const config = {};
|
|
@@ -28748,7 +28814,7 @@
|
|
|
28748
28814
|
function buildCachedSnapshotCachePolicy$w(context, storeLookup) {
|
|
28749
28815
|
const { luvio, config } = context;
|
|
28750
28816
|
const selector = {
|
|
28751
|
-
recordId: keyBuilder$
|
|
28817
|
+
recordId: keyBuilder$17$1(luvio, config),
|
|
28752
28818
|
node: adapterFragment$p(luvio, config),
|
|
28753
28819
|
variables: {},
|
|
28754
28820
|
};
|
|
@@ -28768,11 +28834,11 @@
|
|
|
28768
28834
|
buildCachedSnapshotCachePolicy$w, buildNetworkSnapshotCachePolicy$w);
|
|
28769
28835
|
};
|
|
28770
28836
|
|
|
28771
|
-
const VERSION$
|
|
28837
|
+
const VERSION$P$1 = "f43ef90ffde4d488414d6868e3aaefcb";
|
|
28772
28838
|
const select$19$1 = function DuplicateRuleFilterItemRepresentationSelect() {
|
|
28773
28839
|
return {
|
|
28774
28840
|
kind: 'Fragment',
|
|
28775
|
-
version: VERSION$
|
|
28841
|
+
version: VERSION$P$1,
|
|
28776
28842
|
private: [
|
|
28777
28843
|
'eTag'
|
|
28778
28844
|
],
|
|
@@ -28797,12 +28863,12 @@
|
|
|
28797
28863
|
};
|
|
28798
28864
|
};
|
|
28799
28865
|
|
|
28800
|
-
const VERSION$
|
|
28866
|
+
const VERSION$O$1 = "320d7f254687278f2763d4b490dab3fb";
|
|
28801
28867
|
const select$18$1 = function DuplicateRuleFilterRepresentationSelect() {
|
|
28802
28868
|
const { selections: DuplicateRuleFilterItemRepresentation__selections, opaque: DuplicateRuleFilterItemRepresentation__opaque, } = select$19$1();
|
|
28803
28869
|
return {
|
|
28804
28870
|
kind: 'Fragment',
|
|
28805
|
-
version: VERSION$
|
|
28871
|
+
version: VERSION$O$1,
|
|
28806
28872
|
private: [
|
|
28807
28873
|
'eTag'
|
|
28808
28874
|
],
|
|
@@ -28825,11 +28891,11 @@
|
|
|
28825
28891
|
};
|
|
28826
28892
|
};
|
|
28827
28893
|
|
|
28828
|
-
const VERSION$
|
|
28894
|
+
const VERSION$N$1 = "b47b44e260e5ce777beaf3da9088997c";
|
|
28829
28895
|
const select$17$1 = function MatchRuleRepresentationSelect() {
|
|
28830
28896
|
return {
|
|
28831
28897
|
kind: 'Fragment',
|
|
28832
|
-
version: VERSION$
|
|
28898
|
+
version: VERSION$N$1,
|
|
28833
28899
|
private: [
|
|
28834
28900
|
'eTag'
|
|
28835
28901
|
],
|
|
@@ -28855,13 +28921,13 @@
|
|
|
28855
28921
|
};
|
|
28856
28922
|
};
|
|
28857
28923
|
|
|
28858
|
-
const VERSION$
|
|
28924
|
+
const VERSION$M$1 = "bb83d7210bb1d7861b6188bc5f552617";
|
|
28859
28925
|
const select$16$1 = function DuplicateRuleRepresentationSelect() {
|
|
28860
28926
|
const { selections: DuplicateRuleFilterRepresentation__selections, opaque: DuplicateRuleFilterRepresentation__opaque, } = select$18$1();
|
|
28861
28927
|
const { selections: MatchRuleRepresentation__selections, opaque: MatchRuleRepresentation__opaque, } = select$17$1();
|
|
28862
28928
|
return {
|
|
28863
28929
|
kind: 'Fragment',
|
|
28864
|
-
version: VERSION$
|
|
28930
|
+
version: VERSION$M$1,
|
|
28865
28931
|
private: [
|
|
28866
28932
|
'eTag'
|
|
28867
28933
|
],
|
|
@@ -28909,7 +28975,7 @@
|
|
|
28909
28975
|
};
|
|
28910
28976
|
|
|
28911
28977
|
const TTL$k = 900000;
|
|
28912
|
-
const VERSION$
|
|
28978
|
+
const VERSION$L$1 = "be27ee99dc0dc43a1f66b8fe98dc532c";
|
|
28913
28979
|
const RepresentationType$u = 'DuplicatesConfigurationRepresentation';
|
|
28914
28980
|
function normalize$p(input, existing, path, luvio, store, timestamp) {
|
|
28915
28981
|
return input;
|
|
@@ -28918,7 +28984,7 @@
|
|
|
28918
28984
|
const { selections: DuplicateRuleRepresentation__selections, opaque: DuplicateRuleRepresentation__opaque, } = select$16$1();
|
|
28919
28985
|
return {
|
|
28920
28986
|
kind: 'Fragment',
|
|
28921
|
-
version: VERSION$
|
|
28987
|
+
version: VERSION$L$1,
|
|
28922
28988
|
private: [
|
|
28923
28989
|
'eTag'
|
|
28924
28990
|
],
|
|
@@ -28958,7 +29024,7 @@
|
|
|
28958
29024
|
const ingest$p$1 = function DuplicatesConfigurationRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
28959
29025
|
const key = path.fullPath;
|
|
28960
29026
|
const ttlToUse = TTL$k;
|
|
28961
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$p, "UiApi", VERSION$
|
|
29027
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$p, "UiApi", VERSION$L$1, RepresentationType$u, equals$C);
|
|
28962
29028
|
return createLink$3(key);
|
|
28963
29029
|
};
|
|
28964
29030
|
function getTypeCacheKeys$v$1(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -28974,15 +29040,15 @@
|
|
|
28974
29040
|
function select$14$1(luvio, params) {
|
|
28975
29041
|
return select$15$1();
|
|
28976
29042
|
}
|
|
28977
|
-
function keyBuilder$
|
|
29043
|
+
function keyBuilder$16$1(luvio, params) {
|
|
28978
29044
|
return keyPrefix$1 + '::DuplicatesConfigurationRepresentation:(' + 'recordTypeId:' + params.queryParams.recordTypeId + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
28979
29045
|
}
|
|
28980
29046
|
function getResponseCacheKeys$C(storeKeyMap, luvio, resourceParams, response) {
|
|
28981
|
-
getTypeCacheKeys$v$1(storeKeyMap, luvio, response, () => keyBuilder$
|
|
29047
|
+
getTypeCacheKeys$v$1(storeKeyMap, luvio, response, () => keyBuilder$16$1(luvio, resourceParams));
|
|
28982
29048
|
}
|
|
28983
29049
|
function ingestSuccess$u(luvio, resourceParams, response, snapshotRefresh) {
|
|
28984
29050
|
const { body } = response;
|
|
28985
|
-
const key = keyBuilder$
|
|
29051
|
+
const key = keyBuilder$16$1(luvio, resourceParams);
|
|
28986
29052
|
luvio.storeIngest(key, ingest$p$1, body);
|
|
28987
29053
|
const snapshot = luvio.storeLookup({
|
|
28988
29054
|
recordId: key,
|
|
@@ -28993,12 +29059,12 @@
|
|
|
28993
29059
|
return snapshot;
|
|
28994
29060
|
}
|
|
28995
29061
|
function ingestError$p(luvio, params, error, snapshotRefresh) {
|
|
28996
|
-
const key = keyBuilder$
|
|
29062
|
+
const key = keyBuilder$16$1(luvio, params);
|
|
28997
29063
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
28998
29064
|
const storeMetadataParams = {
|
|
28999
29065
|
ttl: TTL$k,
|
|
29000
29066
|
namespace: keyPrefix$1,
|
|
29001
|
-
version: VERSION$
|
|
29067
|
+
version: VERSION$L$1,
|
|
29002
29068
|
representationName: RepresentationType$u
|
|
29003
29069
|
};
|
|
29004
29070
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -29025,9 +29091,9 @@
|
|
|
29025
29091
|
];
|
|
29026
29092
|
const getDuplicateConfiguration_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$1(adapterName$D, getDuplicateConfiguration_ConfigPropertyMetadata);
|
|
29027
29093
|
const createResourceParams$C = /*#__PURE__*/ createResourceParams$Y(getDuplicateConfiguration_ConfigPropertyMetadata);
|
|
29028
|
-
function keyBuilder$
|
|
29094
|
+
function keyBuilder$15$1(luvio, config) {
|
|
29029
29095
|
const resourceParams = createResourceParams$C(config);
|
|
29030
|
-
return keyBuilder$
|
|
29096
|
+
return keyBuilder$16$1(luvio, resourceParams);
|
|
29031
29097
|
}
|
|
29032
29098
|
function typeCheckConfig$H(untrustedConfig) {
|
|
29033
29099
|
const config = {};
|
|
@@ -29082,7 +29148,7 @@
|
|
|
29082
29148
|
function buildCachedSnapshotCachePolicy$v(context, storeLookup) {
|
|
29083
29149
|
const { luvio, config } = context;
|
|
29084
29150
|
const selector = {
|
|
29085
|
-
recordId: keyBuilder$
|
|
29151
|
+
recordId: keyBuilder$15$1(luvio, config),
|
|
29086
29152
|
node: adapterFragment$o(luvio, config),
|
|
29087
29153
|
variables: {},
|
|
29088
29154
|
};
|
|
@@ -29122,19 +29188,19 @@
|
|
|
29122
29188
|
return undefined;
|
|
29123
29189
|
}
|
|
29124
29190
|
|
|
29125
|
-
function keyBuilder$
|
|
29191
|
+
function keyBuilder$14$1(luvio, params) {
|
|
29126
29192
|
return keyPrefix$1 + '::RecordLayoutRepresentation:(' + 'formFactor:' + params.queryParams.formFactor + ',' + 'layoutType:' + params.queryParams.layoutType + ',' + 'mode:' + params.queryParams.mode + ',' + 'recordTypeId:' + params.queryParams.recordTypeId + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
29127
29193
|
}
|
|
29128
29194
|
function getResponseCacheKeys$B(storeKeyMap, luvio, resourceParams, response) {
|
|
29129
29195
|
getTypeCacheKeys$I$1(storeKeyMap, luvio, response);
|
|
29130
29196
|
}
|
|
29131
29197
|
function ingestError$o(luvio, params, error, snapshotRefresh) {
|
|
29132
|
-
const key = keyBuilder$
|
|
29198
|
+
const key = keyBuilder$14$1(luvio, params);
|
|
29133
29199
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
29134
29200
|
const storeMetadataParams = {
|
|
29135
29201
|
ttl: TTL$t,
|
|
29136
29202
|
namespace: keyPrefix$1,
|
|
29137
|
-
version: VERSION$
|
|
29203
|
+
version: VERSION$11$1,
|
|
29138
29204
|
representationName: RepresentationType$I
|
|
29139
29205
|
};
|
|
29140
29206
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -29156,7 +29222,7 @@
|
|
|
29156
29222
|
|
|
29157
29223
|
function onFetchResponseSuccess$r(luvio, config, resourceParams, response) {
|
|
29158
29224
|
const { body } = response;
|
|
29159
|
-
const key = keyBuilder$
|
|
29225
|
+
const key = keyBuilder$1G(luvio, config);
|
|
29160
29226
|
luvio.storeIngest(key, ingest$C$1, body);
|
|
29161
29227
|
const snapshot = luvio.storeLookup({
|
|
29162
29228
|
recordId: key,
|
|
@@ -29205,7 +29271,7 @@
|
|
|
29205
29271
|
function buildCachedSnapshotCachePolicy$u(context, storeLookup) {
|
|
29206
29272
|
const { luvio, config } = context;
|
|
29207
29273
|
const selector = {
|
|
29208
|
-
recordId: keyBuilder$
|
|
29274
|
+
recordId: keyBuilder$1G(luvio, config),
|
|
29209
29275
|
node: select$1x(),
|
|
29210
29276
|
variables: {},
|
|
29211
29277
|
};
|
|
@@ -29293,7 +29359,7 @@
|
|
|
29293
29359
|
|
|
29294
29360
|
function buildCachedSnapshot$4(luvio, config) {
|
|
29295
29361
|
const { objectApiName, recordTypeId, layoutType, mode } = config;
|
|
29296
|
-
const key = keyBuilder$
|
|
29362
|
+
const key = keyBuilder$1F(luvio, {
|
|
29297
29363
|
apiName: objectApiName,
|
|
29298
29364
|
recordTypeId,
|
|
29299
29365
|
layoutType,
|
|
@@ -29348,7 +29414,7 @@
|
|
|
29348
29414
|
}
|
|
29349
29415
|
function prepareRequest$3(luvio, config) {
|
|
29350
29416
|
const { recordTypeId, layoutType, mode, objectApiName } = config;
|
|
29351
|
-
const key = keyBuilder$
|
|
29417
|
+
const key = keyBuilder$1F(luvio, {
|
|
29352
29418
|
apiName: objectApiName,
|
|
29353
29419
|
recordTypeId,
|
|
29354
29420
|
layoutType,
|
|
@@ -29413,7 +29479,7 @@
|
|
|
29413
29479
|
const { config, luvio } = context;
|
|
29414
29480
|
const { objectApiName, recordTypeId, layoutType, mode } = config;
|
|
29415
29481
|
const selector = {
|
|
29416
|
-
recordId: keyBuilder$
|
|
29482
|
+
recordId: keyBuilder$1F(luvio, {
|
|
29417
29483
|
apiName: objectApiName,
|
|
29418
29484
|
recordTypeId,
|
|
29419
29485
|
layoutType,
|
|
@@ -29465,8 +29531,8 @@
|
|
|
29465
29531
|
buildCachedSnapshotCachePolicy$t, buildNetworkSnapshotCachePolicy$t);
|
|
29466
29532
|
};
|
|
29467
29533
|
|
|
29468
|
-
function keyBuilder$
|
|
29469
|
-
return keyBuilder$
|
|
29534
|
+
function keyBuilder$13$1(luvio, params) {
|
|
29535
|
+
return keyBuilder$1V(luvio, {
|
|
29470
29536
|
objectApiName: params.urlParams.objectApiName,
|
|
29471
29537
|
listViewApiName: params.urlParams.listViewApiName,
|
|
29472
29538
|
type: params.urlParams.listViewApiName === '__Recent' ? 'mru' : 'listView',
|
|
@@ -29476,19 +29542,12 @@
|
|
|
29476
29542
|
function select$13$1(luvio, params) {
|
|
29477
29543
|
return select$1J();
|
|
29478
29544
|
}
|
|
29479
|
-
function keyBuilder$13$1(luvio, params) {
|
|
29480
|
-
return keyBuilder$1W(luvio, {
|
|
29481
|
-
objectApiName: params.urlParams.objectApiName,
|
|
29482
|
-
listViewApiName: params.urlParams.listViewApiName,
|
|
29483
|
-
type: "listView"
|
|
29484
|
-
});
|
|
29485
|
-
}
|
|
29486
29545
|
function getResponseCacheKeys$z(storeKeyMap, luvio, resourceParams, response) {
|
|
29487
29546
|
getTypeCacheKeys$S$1(storeKeyMap, luvio, response);
|
|
29488
29547
|
}
|
|
29489
29548
|
function ingestSuccess$t(luvio, resourceParams, response, snapshotRefresh) {
|
|
29490
29549
|
const { body } = response;
|
|
29491
|
-
const key = keyBuilder$
|
|
29550
|
+
const key = keyBuilder$13$1(luvio, resourceParams);
|
|
29492
29551
|
luvio.storeIngest(key, ingest$L$1, body);
|
|
29493
29552
|
const snapshot = luvio.storeLookup({
|
|
29494
29553
|
recordId: key,
|
|
@@ -29499,12 +29558,12 @@
|
|
|
29499
29558
|
return snapshot;
|
|
29500
29559
|
}
|
|
29501
29560
|
function ingestError$n(luvio, params, error, snapshotRefresh) {
|
|
29502
|
-
const key = keyBuilder$
|
|
29561
|
+
const key = keyBuilder$13$1(luvio, params);
|
|
29503
29562
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
29504
29563
|
const storeMetadataParams = {
|
|
29505
29564
|
ttl: TTL$y,
|
|
29506
29565
|
namespace: keyPrefix$1,
|
|
29507
|
-
version: VERSION$
|
|
29566
|
+
version: VERSION$1c$1,
|
|
29508
29567
|
representationName: RepresentationType$R
|
|
29509
29568
|
};
|
|
29510
29569
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
@@ -29524,10 +29583,7 @@
|
|
|
29524
29583
|
};
|
|
29525
29584
|
}
|
|
29526
29585
|
|
|
29527
|
-
|
|
29528
|
-
|
|
29529
|
-
const nonCachedErrors$5 = ObjectCreate$1$1(null);
|
|
29530
|
-
function createChildResourceParams$5(resourceParams) {
|
|
29586
|
+
function createChildResourceParams$7(resourceParams) {
|
|
29531
29587
|
const childConfigs = [];
|
|
29532
29588
|
const { queryParams } = resourceParams;
|
|
29533
29589
|
const { names = [] } = queryParams;
|
|
@@ -29542,6 +29598,11 @@
|
|
|
29542
29598
|
}
|
|
29543
29599
|
return childConfigs;
|
|
29544
29600
|
}
|
|
29601
|
+
|
|
29602
|
+
const nonCachedErrors$5 = ObjectCreate$1$1(null);
|
|
29603
|
+
function createChildResourceParams$6(resourceParams) {
|
|
29604
|
+
return createChildResourceParams$7(resourceParams);
|
|
29605
|
+
}
|
|
29545
29606
|
function selectChildResourceParams$5(luvio, childResources, resourceParams) {
|
|
29546
29607
|
const envelopeBodyPath = 'result';
|
|
29547
29608
|
const envelopeStatusCodePath = 'statusCode';
|
|
@@ -29552,21 +29613,11 @@
|
|
|
29552
29613
|
synthetic: true,
|
|
29553
29614
|
read: (reader) => {
|
|
29554
29615
|
// Top-level 404 lookup
|
|
29555
|
-
const
|
|
29556
|
-
|
|
29557
|
-
node: {
|
|
29558
|
-
kind: 'Fragment',
|
|
29559
|
-
private: [],
|
|
29560
|
-
version: VERSION$L$1,
|
|
29561
|
-
},
|
|
29562
|
-
variables: {},
|
|
29563
|
-
});
|
|
29564
|
-
if (compositeSnapshot.state === 'Error' &&
|
|
29565
|
-
compositeSnapshot.error.errorType === 'fetchResponse' &&
|
|
29566
|
-
compositeSnapshot.error.status === 404) {
|
|
29616
|
+
const result = reader.storeLookup(keyBuilder$12$1(luvio, resourceParams));
|
|
29617
|
+
if (result.state === reader.StoreResolveResultState.Error && result.value.status === 404) {
|
|
29567
29618
|
return {
|
|
29568
|
-
state:
|
|
29569
|
-
value:
|
|
29619
|
+
state: 'Error',
|
|
29620
|
+
value: result.value,
|
|
29570
29621
|
};
|
|
29571
29622
|
}
|
|
29572
29623
|
const sink = {};
|
|
@@ -29591,7 +29642,6 @@
|
|
|
29591
29642
|
case 'Stale':
|
|
29592
29643
|
reader.markStale();
|
|
29593
29644
|
// Stale needs envelope bodies filled in so don't break
|
|
29594
|
-
// eslint-disable-next-line no-fallthrough
|
|
29595
29645
|
case 'Fulfilled':
|
|
29596
29646
|
reader.enterPath(envelopeStatusCodePath);
|
|
29597
29647
|
reader.assignScalar(envelopeStatusCodePath, childSink, 200);
|
|
@@ -29601,7 +29651,6 @@
|
|
|
29601
29651
|
reader.exitPath();
|
|
29602
29652
|
break;
|
|
29603
29653
|
case 'Error':
|
|
29604
|
-
// eslint-disable-next-line no-case-declarations
|
|
29605
29654
|
const childSnapshotError = childSnapshot.error;
|
|
29606
29655
|
reader.enterPath(envelopeStatusCodePath);
|
|
29607
29656
|
reader.assignScalar(envelopeStatusCodePath, childSink, childSnapshotError.status);
|
|
@@ -29626,8 +29675,7 @@
|
|
|
29626
29675
|
// snapshot will look like an Unfulfilled snapshot
|
|
29627
29676
|
// instead of an error snapshot).
|
|
29628
29677
|
const nonCachedError = nonCachedErrors$5[childKey];
|
|
29629
|
-
if (nonCachedError === undefined ||
|
|
29630
|
-
nonCachedError.expiration < reader.getTimeStamp()) {
|
|
29678
|
+
if (nonCachedError === undefined || nonCachedError.expiration < reader.getTimeStamp()) {
|
|
29631
29679
|
reader.markMissingLink(childKey);
|
|
29632
29680
|
}
|
|
29633
29681
|
else {
|
|
@@ -29655,29 +29703,21 @@
|
|
|
29655
29703
|
reader.exitPath();
|
|
29656
29704
|
}
|
|
29657
29705
|
reader.assignNonScalar(sink, envelopePath, results);
|
|
29658
|
-
deepFreeze(sink);
|
|
29659
29706
|
reader.exitPath();
|
|
29660
29707
|
return sink;
|
|
29661
|
-
}
|
|
29708
|
+
}
|
|
29662
29709
|
};
|
|
29663
29710
|
}
|
|
29664
29711
|
function select$12$1(luvio, resourceParams) {
|
|
29665
|
-
const childResources = createChildResourceParams$
|
|
29712
|
+
const childResources = createChildResourceParams$6(resourceParams);
|
|
29666
29713
|
return selectChildResourceParams$5(luvio, childResources, resourceParams);
|
|
29667
29714
|
}
|
|
29668
29715
|
function keyBuilder$12$1(luvio, params) {
|
|
29669
|
-
return
|
|
29670
|
-
'::ListInfoBatchRepresentation:(' +
|
|
29671
|
-
'ids:' +
|
|
29672
|
-
params.queryParams.ids +
|
|
29673
|
-
',' +
|
|
29674
|
-
'names:' +
|
|
29675
|
-
params.queryParams.names +
|
|
29676
|
-
')');
|
|
29716
|
+
return keyPrefix$1 + '::ListInfoBatchRepresentation:(' + 'ids:' + params.queryParams.ids + ',' + 'names:' + params.queryParams.names + ')';
|
|
29677
29717
|
}
|
|
29678
29718
|
function getResponseCacheKeys$y(keys, luvio, resourceParams, response) {
|
|
29679
29719
|
const childEnvelopes = response.results;
|
|
29680
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
29720
|
+
const childResourceParamsArray = createChildResourceParams$6(resourceParams);
|
|
29681
29721
|
// get children keys
|
|
29682
29722
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
29683
29723
|
const childResourceParams = childResourceParamsArray[index];
|
|
@@ -29690,13 +29730,13 @@
|
|
|
29690
29730
|
const childKey = keyBuilder$13$1(luvio, childResourceParams);
|
|
29691
29731
|
keys.set(childKey, {
|
|
29692
29732
|
namespace: keyPrefix$1,
|
|
29693
|
-
representationName:
|
|
29694
|
-
mergeable: false
|
|
29733
|
+
representationName: RepresentationType$R,
|
|
29734
|
+
mergeable: false
|
|
29695
29735
|
});
|
|
29696
29736
|
}
|
|
29697
29737
|
}
|
|
29698
29738
|
}
|
|
29699
|
-
function ingestSuccessChildResourceParams$
|
|
29739
|
+
function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, childEnvelopes) {
|
|
29700
29740
|
const childSnapshotDataResponses = [];
|
|
29701
29741
|
let seenRecords = new StoreKeySet();
|
|
29702
29742
|
let snapshotState = 'Fulfilled';
|
|
@@ -29715,8 +29755,8 @@
|
|
|
29715
29755
|
headers: {},
|
|
29716
29756
|
};
|
|
29717
29757
|
const childSnapshot = ingestSuccess$t(luvio, childResourceParams, childResponse);
|
|
29718
|
-
if (childSnapshot.state ===
|
|
29719
|
-
snapshotState =
|
|
29758
|
+
if (childSnapshot.state === "Stale") {
|
|
29759
|
+
snapshotState = "Stale";
|
|
29720
29760
|
}
|
|
29721
29761
|
seenRecords.merge(childSnapshot.seenRecords);
|
|
29722
29762
|
seenRecords.add(childSnapshot.recordId);
|
|
@@ -29724,6 +29764,7 @@
|
|
|
29724
29764
|
statusCode: 200,
|
|
29725
29765
|
result: childSnapshot.data,
|
|
29726
29766
|
};
|
|
29767
|
+
deepFreeze(childValue);
|
|
29727
29768
|
ArrayPrototypePush$1.call(childSnapshotDataResponses, childValue);
|
|
29728
29769
|
}
|
|
29729
29770
|
else {
|
|
@@ -29734,7 +29775,7 @@
|
|
|
29734
29775
|
ok: false,
|
|
29735
29776
|
statusText: childStatusCodeText,
|
|
29736
29777
|
headers: {},
|
|
29737
|
-
errorType: 'fetchResponse'
|
|
29778
|
+
errorType: 'fetchResponse'
|
|
29738
29779
|
};
|
|
29739
29780
|
ingestError$n(luvio, childResourceParams, childResponse);
|
|
29740
29781
|
seenRecords.add(childKey);
|
|
@@ -29742,31 +29783,28 @@
|
|
|
29742
29783
|
statusCode: childStatusCode,
|
|
29743
29784
|
result: childBody,
|
|
29744
29785
|
};
|
|
29786
|
+
deepFreeze(childValue);
|
|
29745
29787
|
ArrayPrototypePush$1.call(childSnapshotDataResponses, childValue);
|
|
29746
29788
|
}
|
|
29747
29789
|
// track non-cached responses so rebuilds work properly
|
|
29748
29790
|
if (childStatusCode !== 404 && childStatusCode !== 200) {
|
|
29749
|
-
nonCachedErrors$5[childKey] = {
|
|
29750
|
-
expiration: now + TTL$y,
|
|
29751
|
-
response: childBody,
|
|
29752
|
-
status: childStatusCode,
|
|
29753
|
-
};
|
|
29791
|
+
nonCachedErrors$5[childKey] = { expiration: now + TTL$y, response: childBody, status: childStatusCode };
|
|
29754
29792
|
}
|
|
29755
29793
|
else {
|
|
29756
29794
|
delete nonCachedErrors$5[childKey];
|
|
29757
29795
|
}
|
|
29758
29796
|
}
|
|
29759
29797
|
const childSnapshotData = {
|
|
29760
|
-
results: childSnapshotDataResponses
|
|
29798
|
+
results: childSnapshotDataResponses
|
|
29761
29799
|
};
|
|
29762
29800
|
deepFreeze(childSnapshotData);
|
|
29763
29801
|
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
29764
29802
|
}
|
|
29765
29803
|
function ingestSuccess$s(luvio, resourceParams, response, snapshotRefresh) {
|
|
29766
29804
|
const childEnvelopes = response.body.results;
|
|
29767
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
29805
|
+
const childResourceParamsArray = createChildResourceParams$6(resourceParams);
|
|
29768
29806
|
const key = keyBuilder$12$1(luvio, resourceParams);
|
|
29769
|
-
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$
|
|
29807
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, childEnvelopes);
|
|
29770
29808
|
const syntheticSnapshot = {
|
|
29771
29809
|
recordId: key,
|
|
29772
29810
|
data: childSnapshotData,
|
|
@@ -29778,7 +29816,7 @@
|
|
|
29778
29816
|
variables: {},
|
|
29779
29817
|
},
|
|
29780
29818
|
refresh: snapshotRefresh,
|
|
29781
|
-
variables: {}
|
|
29819
|
+
variables: {}
|
|
29782
29820
|
};
|
|
29783
29821
|
// evict top level composite record from the store. This covers the case where a previous resource request returned a 404.
|
|
29784
29822
|
luvio.storeEvict(key);
|
|
@@ -29800,6 +29838,7 @@
|
|
|
29800
29838
|
urlParams: {},
|
|
29801
29839
|
queryParams: config.queryParams,
|
|
29802
29840
|
headers,
|
|
29841
|
+
priority: 'normal',
|
|
29803
29842
|
};
|
|
29804
29843
|
}
|
|
29805
29844
|
|
|
@@ -29896,7 +29935,7 @@
|
|
|
29896
29935
|
const createResourceParams$z = /*#__PURE__*/ createResourceParams$Y(getListInfoByName_ConfigPropertyMetadata);
|
|
29897
29936
|
function keyBuilder$10$1(luvio, config) {
|
|
29898
29937
|
const resourceParams = createResourceParams$z(config);
|
|
29899
|
-
return keyBuilder$
|
|
29938
|
+
return keyBuilder$13$1(luvio, resourceParams);
|
|
29900
29939
|
}
|
|
29901
29940
|
function typeCheckConfig$D(untrustedConfig) {
|
|
29902
29941
|
const config = {};
|
|
@@ -30684,8 +30723,8 @@
|
|
|
30684
30723
|
};
|
|
30685
30724
|
|
|
30686
30725
|
const nonCachedErrors$4 = ObjectCreate$1$1(null);
|
|
30687
|
-
function createChildResourceParams$
|
|
30688
|
-
|
|
30726
|
+
function createChildResourceParams$5(resourceParams) {
|
|
30727
|
+
let childConfigs = [];
|
|
30689
30728
|
for (let index = 0, len = resourceParams.urlParams.objectApiNames.length; index < len; index += 1) {
|
|
30690
30729
|
const item = resourceParams.urlParams.objectApiNames[index];
|
|
30691
30730
|
childConfigs.push({
|
|
@@ -30720,7 +30759,7 @@
|
|
|
30720
30759
|
reader.enterPath(i);
|
|
30721
30760
|
reader.enterPath(envelopeBodyPath);
|
|
30722
30761
|
const childResource = childResources[i];
|
|
30723
|
-
const childKey = keyBuilder$
|
|
30762
|
+
const childKey = keyBuilder$1I(luvio, childResource);
|
|
30724
30763
|
const childFragment = select$1y();
|
|
30725
30764
|
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
30726
30765
|
const childSnapshot = reader.read({
|
|
@@ -30802,7 +30841,7 @@
|
|
|
30802
30841
|
};
|
|
30803
30842
|
}
|
|
30804
30843
|
function select$W$1(luvio, resourceParams) {
|
|
30805
|
-
const childResources = createChildResourceParams$
|
|
30844
|
+
const childResources = createChildResourceParams$5(resourceParams);
|
|
30806
30845
|
return selectChildResourceParams$4(luvio, childResources, resourceParams);
|
|
30807
30846
|
}
|
|
30808
30847
|
function keyBuilder$W$1(luvio, params) {
|
|
@@ -30810,7 +30849,7 @@
|
|
|
30810
30849
|
}
|
|
30811
30850
|
function getResponseCacheKeys$u(keys, luvio, resourceParams, response) {
|
|
30812
30851
|
const childEnvelopes = response.results;
|
|
30813
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
30852
|
+
const childResourceParamsArray = createChildResourceParams$5(resourceParams);
|
|
30814
30853
|
// get children keys
|
|
30815
30854
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
30816
30855
|
const childResourceParams = childResourceParamsArray[index];
|
|
@@ -30820,7 +30859,7 @@
|
|
|
30820
30859
|
getResponseCacheKeys$Q(keys, luvio, childResourceParams, childBody);
|
|
30821
30860
|
}
|
|
30822
30861
|
else if (childStatusCode === 404) {
|
|
30823
|
-
const childKey = keyBuilder$
|
|
30862
|
+
const childKey = keyBuilder$1I(luvio, childResourceParams);
|
|
30824
30863
|
keys.set(childKey, {
|
|
30825
30864
|
namespace: keyPrefix$1,
|
|
30826
30865
|
representationName: RepresentationType$J,
|
|
@@ -30829,14 +30868,14 @@
|
|
|
30829
30868
|
}
|
|
30830
30869
|
}
|
|
30831
30870
|
}
|
|
30832
|
-
function ingestSuccessChildResourceParams$
|
|
30871
|
+
function ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, childEnvelopes) {
|
|
30833
30872
|
const childSnapshotDataResponses = [];
|
|
30834
30873
|
let seenRecords = new StoreKeySet();
|
|
30835
30874
|
let snapshotState = 'Fulfilled';
|
|
30836
30875
|
const now = Date.now();
|
|
30837
30876
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
30838
30877
|
const childResourceParams = childResourceParamsArray[index];
|
|
30839
|
-
const childKey = keyBuilder$
|
|
30878
|
+
const childKey = keyBuilder$1I(luvio, childResourceParams);
|
|
30840
30879
|
const result = childEnvelopes[index];
|
|
30841
30880
|
const { statusCode: childStatusCode, result: childBody } = result;
|
|
30842
30881
|
if (childStatusCode === 200) {
|
|
@@ -30895,9 +30934,9 @@
|
|
|
30895
30934
|
}
|
|
30896
30935
|
function ingestSuccess$o(luvio, resourceParams, response, snapshotRefresh) {
|
|
30897
30936
|
const childEnvelopes = response.body.results;
|
|
30898
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
30937
|
+
const childResourceParamsArray = createChildResourceParams$5(resourceParams);
|
|
30899
30938
|
const key = keyBuilder$W$1(luvio, resourceParams);
|
|
30900
|
-
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$
|
|
30939
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, childEnvelopes);
|
|
30901
30940
|
const syntheticSnapshot = {
|
|
30902
30941
|
recordId: key,
|
|
30903
30942
|
data: childSnapshotData,
|
|
@@ -32846,7 +32885,7 @@
|
|
|
32846
32885
|
const adapterName$q = 'getRecords';
|
|
32847
32886
|
function keyBuilder$N$1(luvio, config) {
|
|
32848
32887
|
const resourceParams = createResourceParams$V(config);
|
|
32849
|
-
return keyBuilder$
|
|
32888
|
+
return keyBuilder$1S(luvio, resourceParams);
|
|
32850
32889
|
}
|
|
32851
32890
|
function onFetchResponseError$h(luvio, config, resourceParams, response) {
|
|
32852
32891
|
const snapshot = ingestError$G(luvio, resourceParams, response, {
|
|
@@ -33105,8 +33144,8 @@
|
|
|
33105
33144
|
}
|
|
33106
33145
|
|
|
33107
33146
|
const nonCachedErrors$3 = ObjectCreate$1$1(null);
|
|
33108
|
-
function createChildResourceParams$
|
|
33109
|
-
|
|
33147
|
+
function createChildResourceParams$4(resourceParams) {
|
|
33148
|
+
let childConfigs = [];
|
|
33110
33149
|
for (let index = 0, len = resourceParams.urlParams.relatedListNames.length; index < len; index += 1) {
|
|
33111
33150
|
const item = resourceParams.urlParams.relatedListNames[index];
|
|
33112
33151
|
childConfigs.push({
|
|
@@ -33227,7 +33266,7 @@
|
|
|
33227
33266
|
};
|
|
33228
33267
|
}
|
|
33229
33268
|
function select$y$1(luvio, resourceParams) {
|
|
33230
|
-
const childResources = createChildResourceParams$
|
|
33269
|
+
const childResources = createChildResourceParams$4(resourceParams);
|
|
33231
33270
|
return selectChildResourceParams$3(luvio, childResources, resourceParams);
|
|
33232
33271
|
}
|
|
33233
33272
|
function keyBuilder$K$1(luvio, params) {
|
|
@@ -33235,7 +33274,7 @@
|
|
|
33235
33274
|
}
|
|
33236
33275
|
function getResponseCacheKeys$o(keys, luvio, resourceParams, response) {
|
|
33237
33276
|
const childEnvelopes = response.results;
|
|
33238
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
33277
|
+
const childResourceParamsArray = createChildResourceParams$4(resourceParams);
|
|
33239
33278
|
// get children keys
|
|
33240
33279
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
33241
33280
|
const childResourceParams = childResourceParamsArray[index];
|
|
@@ -33254,7 +33293,7 @@
|
|
|
33254
33293
|
}
|
|
33255
33294
|
}
|
|
33256
33295
|
}
|
|
33257
|
-
function ingestSuccessChildResourceParams$
|
|
33296
|
+
function ingestSuccessChildResourceParams$3(luvio, childResourceParamsArray, childEnvelopes) {
|
|
33258
33297
|
const childSnapshotDataResponses = [];
|
|
33259
33298
|
let seenRecords = new StoreKeySet();
|
|
33260
33299
|
let snapshotState = 'Fulfilled';
|
|
@@ -33319,9 +33358,9 @@
|
|
|
33319
33358
|
}
|
|
33320
33359
|
function ingestSuccess$j(luvio, resourceParams, response, snapshotRefresh) {
|
|
33321
33360
|
const childEnvelopes = response.body.results;
|
|
33322
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
33361
|
+
const childResourceParamsArray = createChildResourceParams$4(resourceParams);
|
|
33323
33362
|
const key = keyBuilder$K$1(luvio, resourceParams);
|
|
33324
|
-
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$
|
|
33363
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$3(luvio, childResourceParamsArray, childEnvelopes);
|
|
33325
33364
|
const syntheticSnapshot = {
|
|
33326
33365
|
recordId: key,
|
|
33327
33366
|
data: childSnapshotData,
|
|
@@ -33721,7 +33760,7 @@
|
|
|
33721
33760
|
};
|
|
33722
33761
|
}
|
|
33723
33762
|
|
|
33724
|
-
function createChildResourceParams$
|
|
33763
|
+
function createChildResourceParams$3(resourceParams) {
|
|
33725
33764
|
const childConfigs = [];
|
|
33726
33765
|
for (let index = 0, len = resourceParams.urlParams.relatedListNames.length; index < len; index += 1) {
|
|
33727
33766
|
const item = resourceParams.urlParams.relatedListNames[index];
|
|
@@ -33848,7 +33887,7 @@
|
|
|
33848
33887
|
};
|
|
33849
33888
|
}
|
|
33850
33889
|
function select$v$1(luvio, resourceParams) {
|
|
33851
|
-
const childResources = createChildResourceParams$
|
|
33890
|
+
const childResources = createChildResourceParams$3(resourceParams);
|
|
33852
33891
|
return selectChildResourceParams$2(luvio, childResources, resourceParams);
|
|
33853
33892
|
}
|
|
33854
33893
|
function keyBuilder$F$1(luvio, params) {
|
|
@@ -33856,7 +33895,7 @@
|
|
|
33856
33895
|
}
|
|
33857
33896
|
function getResponseCacheKeys$m(keys, luvio, resourceParams, response) {
|
|
33858
33897
|
const childEnvelopes = response.results;
|
|
33859
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
33898
|
+
const childResourceParamsArray = createChildResourceParams$3(resourceParams);
|
|
33860
33899
|
// get children keys
|
|
33861
33900
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
33862
33901
|
const childResourceParams = childResourceParamsArray[index];
|
|
@@ -33875,7 +33914,7 @@
|
|
|
33875
33914
|
}
|
|
33876
33915
|
}
|
|
33877
33916
|
}
|
|
33878
|
-
function ingestSuccessChildResourceParams$
|
|
33917
|
+
function ingestSuccessChildResourceParams$2(luvio, childResourceParamsArray, childEnvelopes) {
|
|
33879
33918
|
const childSnapshotDataResponses = [];
|
|
33880
33919
|
let seenRecords = new StoreKeySet();
|
|
33881
33920
|
let snapshotState = 'Fulfilled';
|
|
@@ -33941,9 +33980,9 @@
|
|
|
33941
33980
|
}
|
|
33942
33981
|
function ingestSuccess$h(luvio, resourceParams, response, snapshotRefresh) {
|
|
33943
33982
|
const childEnvelopes = response.body.results;
|
|
33944
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
33983
|
+
const childResourceParamsArray = createChildResourceParams$3(resourceParams);
|
|
33945
33984
|
const key = keyBuilder$F$1(luvio, resourceParams);
|
|
33946
|
-
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$
|
|
33985
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$2(luvio, childResourceParamsArray, childEnvelopes);
|
|
33947
33986
|
const syntheticSnapshot = {
|
|
33948
33987
|
recordId: key,
|
|
33949
33988
|
data: childSnapshotData,
|
|
@@ -34601,8 +34640,8 @@
|
|
|
34601
34640
|
}
|
|
34602
34641
|
|
|
34603
34642
|
const nonCachedErrors$1 = ObjectCreate$1$1(null);
|
|
34604
|
-
function createChildResourceParams$
|
|
34605
|
-
|
|
34643
|
+
function createChildResourceParams$2(resourceParams) {
|
|
34644
|
+
let childConfigs = [];
|
|
34606
34645
|
for (let index = 0, len = resourceParams.urlParams.preferencesIds.length; index < len; index += 1) {
|
|
34607
34646
|
const item = resourceParams.urlParams.preferencesIds[index];
|
|
34608
34647
|
childConfigs.push({
|
|
@@ -34719,7 +34758,7 @@
|
|
|
34719
34758
|
};
|
|
34720
34759
|
}
|
|
34721
34760
|
function select$p$1(luvio, resourceParams) {
|
|
34722
|
-
const childResources = createChildResourceParams$
|
|
34761
|
+
const childResources = createChildResourceParams$2(resourceParams);
|
|
34723
34762
|
return selectChildResourceParams$1(luvio, childResources, resourceParams);
|
|
34724
34763
|
}
|
|
34725
34764
|
function keyBuilder$x$1(luvio, params) {
|
|
@@ -34727,7 +34766,7 @@
|
|
|
34727
34766
|
}
|
|
34728
34767
|
function getResponseCacheKeys$i(keys, luvio, resourceParams, response) {
|
|
34729
34768
|
const childEnvelopes = response.results;
|
|
34730
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
34769
|
+
const childResourceParamsArray = createChildResourceParams$2(resourceParams);
|
|
34731
34770
|
// get children keys
|
|
34732
34771
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
34733
34772
|
const childResourceParams = childResourceParamsArray[index];
|
|
@@ -34746,7 +34785,7 @@
|
|
|
34746
34785
|
}
|
|
34747
34786
|
}
|
|
34748
34787
|
}
|
|
34749
|
-
function ingestSuccessChildResourceParams$
|
|
34788
|
+
function ingestSuccessChildResourceParams$1(luvio, childResourceParamsArray, childEnvelopes) {
|
|
34750
34789
|
const childSnapshotDataResponses = [];
|
|
34751
34790
|
let seenRecords = new StoreKeySet();
|
|
34752
34791
|
let snapshotState = 'Fulfilled';
|
|
@@ -34812,9 +34851,9 @@
|
|
|
34812
34851
|
}
|
|
34813
34852
|
function ingestSuccess$d(luvio, resourceParams, response, snapshotRefresh) {
|
|
34814
34853
|
const childEnvelopes = response.body.results;
|
|
34815
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
34854
|
+
const childResourceParamsArray = createChildResourceParams$2(resourceParams);
|
|
34816
34855
|
const key = keyBuilder$x$1(luvio, resourceParams);
|
|
34817
|
-
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$
|
|
34856
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$1(luvio, childResourceParamsArray, childEnvelopes);
|
|
34818
34857
|
const syntheticSnapshot = {
|
|
34819
34858
|
recordId: key,
|
|
34820
34859
|
data: childSnapshotData,
|
|
@@ -35508,7 +35547,7 @@
|
|
|
35508
35547
|
reader.readScalar('count', metadataProperties, sink);
|
|
35509
35548
|
reader.exitPath();
|
|
35510
35549
|
reader.enterPath('fields');
|
|
35511
|
-
reader.readScalarPlural('fields', source, sink);
|
|
35550
|
+
reader.readScalarPlural('fields', source, sink, true);
|
|
35512
35551
|
reader.exitPath();
|
|
35513
35552
|
reader.enterPath('listInfoETag');
|
|
35514
35553
|
reader.readScalar('listInfoETag', source, sink);
|
|
@@ -35521,10 +35560,10 @@
|
|
|
35521
35560
|
}, source, sink);
|
|
35522
35561
|
reader.exitPath();
|
|
35523
35562
|
reader.enterPath('optionalFields');
|
|
35524
|
-
reader.readScalarPlural('optionalFields', source, sink);
|
|
35563
|
+
reader.readScalarPlural('optionalFields', source, sink, true);
|
|
35525
35564
|
reader.exitPath();
|
|
35526
35565
|
reader.enterPath('sortBy');
|
|
35527
|
-
reader.readScalarPlural('sortBy', source, sink);
|
|
35566
|
+
reader.readScalarPlural('sortBy', source, sink, true);
|
|
35528
35567
|
reader.exitPath();
|
|
35529
35568
|
reader.enterPath('where');
|
|
35530
35569
|
reader.readScalar('where', source, sink);
|
|
@@ -35731,7 +35770,7 @@
|
|
|
35731
35770
|
kind: 'Fragment',
|
|
35732
35771
|
private: ['eTag', 'weakEtag'],
|
|
35733
35772
|
selections: buildSelectionFromFields(fields, optionalFields),
|
|
35734
|
-
version: VERSION$
|
|
35773
|
+
version: VERSION$18$1
|
|
35735
35774
|
},
|
|
35736
35775
|
},
|
|
35737
35776
|
}, createPaginationParams(params));
|
|
@@ -35808,9 +35847,7 @@
|
|
|
35808
35847
|
};
|
|
35809
35848
|
}
|
|
35810
35849
|
|
|
35811
|
-
|
|
35812
|
-
const nonCachedErrors$7 = ObjectCreate$1$1(null);
|
|
35813
|
-
const createChildResourceParams$9 = (resourceParams) => {
|
|
35850
|
+
function createChildResourceParams$1(resourceParams) {
|
|
35814
35851
|
const childConfigs = [];
|
|
35815
35852
|
for (let index = 0, len = resourceParams.body.relatedListParameters.length; index < len; index += 1) {
|
|
35816
35853
|
let childConfig = {
|
|
@@ -35840,11 +35877,13 @@
|
|
|
35840
35877
|
childConfigs.push(childConfig);
|
|
35841
35878
|
}
|
|
35842
35879
|
return childConfigs;
|
|
35843
|
-
}
|
|
35844
|
-
|
|
35845
|
-
|
|
35846
|
-
|
|
35847
|
-
|
|
35880
|
+
}
|
|
35881
|
+
|
|
35882
|
+
const nonCachedErrors$8 = ObjectCreate$1$1(null);
|
|
35883
|
+
function createChildResourceParams$c(resourceParams) {
|
|
35884
|
+
return createChildResourceParams$1(resourceParams);
|
|
35885
|
+
}
|
|
35886
|
+
function selectChildResourceParams$8(luvio, childResources, resourceParams) {
|
|
35848
35887
|
const envelopeBodyPath = 'result';
|
|
35849
35888
|
const envelopeStatusCodePath = 'statusCode';
|
|
35850
35889
|
const envelopePath = 'results';
|
|
@@ -35855,8 +35894,7 @@
|
|
|
35855
35894
|
read: (reader) => {
|
|
35856
35895
|
// Top-level 404 lookup
|
|
35857
35896
|
const result = reader.storeLookup(keyBuilder$s$1(luvio, resourceParams));
|
|
35858
|
-
if (result.state === reader.StoreResolveResultState.Error &&
|
|
35859
|
-
result.value.status === 404) {
|
|
35897
|
+
if (result.state === reader.StoreResolveResultState.Error && result.value.status === 404) {
|
|
35860
35898
|
return {
|
|
35861
35899
|
state: 'Error',
|
|
35862
35900
|
value: result.value,
|
|
@@ -35884,7 +35922,6 @@
|
|
|
35884
35922
|
case 'Stale':
|
|
35885
35923
|
reader.markStale();
|
|
35886
35924
|
// Stale needs envelope bodies filled in so don't break
|
|
35887
|
-
// eslint-disable-next-line no-fallthrough
|
|
35888
35925
|
case 'Fulfilled':
|
|
35889
35926
|
reader.enterPath(envelopeStatusCodePath);
|
|
35890
35927
|
reader.assignScalar(envelopeStatusCodePath, childSink, 200);
|
|
@@ -35894,7 +35931,6 @@
|
|
|
35894
35931
|
reader.exitPath();
|
|
35895
35932
|
break;
|
|
35896
35933
|
case 'Error':
|
|
35897
|
-
// eslint-disable-next-line no-case-declarations
|
|
35898
35934
|
const childSnapshotError = childSnapshot.error;
|
|
35899
35935
|
reader.enterPath(envelopeStatusCodePath);
|
|
35900
35936
|
reader.assignScalar(envelopeStatusCodePath, childSink, childSnapshotError.status);
|
|
@@ -35918,9 +35954,8 @@
|
|
|
35918
35954
|
// has non-cached errors (since the top-level composite
|
|
35919
35955
|
// snapshot will look like an Unfulfilled snapshot
|
|
35920
35956
|
// instead of an error snapshot).
|
|
35921
|
-
const nonCachedError = nonCachedErrors$
|
|
35922
|
-
if (nonCachedError === undefined ||
|
|
35923
|
-
nonCachedError.expiration < reader.getTimeStamp()) {
|
|
35957
|
+
const nonCachedError = nonCachedErrors$8[childKey];
|
|
35958
|
+
if (nonCachedError === undefined || nonCachedError.expiration < reader.getTimeStamp()) {
|
|
35924
35959
|
reader.markMissingLink(childKey);
|
|
35925
35960
|
}
|
|
35926
35961
|
else {
|
|
@@ -35948,30 +35983,21 @@
|
|
|
35948
35983
|
reader.exitPath();
|
|
35949
35984
|
}
|
|
35950
35985
|
reader.assignNonScalar(sink, envelopePath, results);
|
|
35951
|
-
deepFreeze(sink);
|
|
35952
35986
|
reader.exitPath();
|
|
35953
35987
|
return sink;
|
|
35954
|
-
}
|
|
35988
|
+
}
|
|
35955
35989
|
};
|
|
35956
35990
|
}
|
|
35957
|
-
// HUGE BLOCK OF COPY PASTED CODE:
|
|
35958
|
-
// WE NEED TO DO THIS SO THAT THE ADAPTER CAN USE ONLY OUR OVERRIDE FILE
|
|
35959
|
-
// PLEASE DO NOT CHANGE ANYTHING HERE...
|
|
35960
35991
|
function select$m$1(luvio, resourceParams) {
|
|
35961
|
-
const childResources = createChildResourceParams$
|
|
35962
|
-
return selectChildResourceParams$
|
|
35992
|
+
const childResources = createChildResourceParams$c(resourceParams);
|
|
35993
|
+
return selectChildResourceParams$8(luvio, childResources, resourceParams);
|
|
35963
35994
|
}
|
|
35964
35995
|
function keyBuilder$s$1(luvio, params) {
|
|
35965
|
-
return
|
|
35966
|
-
'::' +
|
|
35967
|
-
'RelatedListRecordCollectionBatchRepresentation(' +
|
|
35968
|
-
'relatedListParameters:' +
|
|
35969
|
-
params.body.relatedListParameters +
|
|
35970
|
-
')');
|
|
35996
|
+
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(',') + ']' + ')';
|
|
35971
35997
|
}
|
|
35972
35998
|
function getResponseCacheKeys$f(keys, luvio, resourceParams, response) {
|
|
35973
35999
|
const childEnvelopes = response.results;
|
|
35974
|
-
const childResourceParamsArray = createChildResourceParams$
|
|
36000
|
+
const childResourceParamsArray = createChildResourceParams$c(resourceParams);
|
|
35975
36001
|
// get children keys
|
|
35976
36002
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index++) {
|
|
35977
36003
|
const childResourceParams = childResourceParamsArray[index];
|
|
@@ -35984,69 +36010,82 @@
|
|
|
35984
36010
|
const childKey = keyBuilder$t$1(luvio, childResourceParams);
|
|
35985
36011
|
keys.set(childKey, {
|
|
35986
36012
|
namespace: keyPrefix$1,
|
|
35987
|
-
representationName:
|
|
35988
|
-
mergeable: false
|
|
36013
|
+
representationName: RepresentationType$d,
|
|
36014
|
+
mergeable: false
|
|
35989
36015
|
});
|
|
35990
36016
|
}
|
|
35991
36017
|
}
|
|
35992
36018
|
}
|
|
35993
|
-
function
|
|
35994
|
-
const childEnvelopes = response.body.results;
|
|
35995
|
-
const childResourceParamsArray = createChildResourceParams$9(resourceParams);
|
|
35996
|
-
let snapshotState = 'Fulfilled';
|
|
35997
|
-
const key = keyBuilder$s$1(luvio, resourceParams);
|
|
36019
|
+
function ingestSuccessChildResourceParams$8(luvio, childResourceParamsArray, childEnvelopes) {
|
|
35998
36020
|
const childSnapshotDataResponses = [];
|
|
35999
36021
|
let seenRecords = new StoreKeySet();
|
|
36022
|
+
let snapshotState = 'Fulfilled';
|
|
36023
|
+
const now = Date.now();
|
|
36000
36024
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
36001
36025
|
const childResourceParams = childResourceParamsArray[index];
|
|
36026
|
+
const childKey = keyBuilder$t$1(luvio, childResourceParams);
|
|
36002
36027
|
const result = childEnvelopes[index];
|
|
36003
|
-
const
|
|
36004
|
-
if (
|
|
36005
|
-
const { statusCode: childStatusCode, result: childBody } = result;
|
|
36028
|
+
const { statusCode: childStatusCode, result: childBody } = result;
|
|
36029
|
+
if (childStatusCode === 200) {
|
|
36006
36030
|
const childResponse = {
|
|
36007
|
-
status:
|
|
36031
|
+
status: 200,
|
|
36008
36032
|
body: childBody,
|
|
36009
36033
|
ok: true,
|
|
36010
|
-
statusText:
|
|
36034
|
+
statusText: 'OK',
|
|
36011
36035
|
headers: {},
|
|
36012
36036
|
};
|
|
36013
36037
|
const childSnapshot = ingestSuccess$b(luvio, childResourceParams, childResponse);
|
|
36038
|
+
if (childSnapshot.state === "Stale") {
|
|
36039
|
+
snapshotState = "Stale";
|
|
36040
|
+
}
|
|
36014
36041
|
seenRecords.merge(childSnapshot.seenRecords);
|
|
36015
36042
|
seenRecords.add(childSnapshot.recordId);
|
|
36016
|
-
if (childSnapshot.state === 'Pending') {
|
|
36017
|
-
snapshotState = 'Pending';
|
|
36018
|
-
break;
|
|
36019
|
-
}
|
|
36020
36043
|
const childValue = {
|
|
36021
|
-
statusCode:
|
|
36044
|
+
statusCode: 200,
|
|
36022
36045
|
result: childSnapshot.data,
|
|
36023
36046
|
};
|
|
36024
|
-
|
|
36047
|
+
deepFreeze(childValue);
|
|
36048
|
+
ArrayPrototypePush$1.call(childSnapshotDataResponses, childValue);
|
|
36025
36049
|
}
|
|
36026
36050
|
else {
|
|
36027
|
-
const
|
|
36051
|
+
const childStatusCodeText = getFetchResponseStatusText$1(result.statusCode);
|
|
36028
36052
|
const childResponse = {
|
|
36029
36053
|
status: childStatusCode,
|
|
36030
36054
|
body: childBody,
|
|
36031
36055
|
ok: false,
|
|
36032
36056
|
statusText: childStatusCodeText,
|
|
36033
36057
|
headers: {},
|
|
36034
|
-
errorType: 'fetchResponse'
|
|
36058
|
+
errorType: 'fetchResponse'
|
|
36035
36059
|
};
|
|
36036
36060
|
ingestError$8(luvio, childResourceParams, childResponse);
|
|
36037
|
-
seenRecords.add(
|
|
36061
|
+
seenRecords.add(childKey);
|
|
36038
36062
|
const childValue = {
|
|
36039
36063
|
statusCode: childStatusCode,
|
|
36040
36064
|
result: childBody,
|
|
36041
36065
|
};
|
|
36042
|
-
|
|
36066
|
+
deepFreeze(childValue);
|
|
36067
|
+
ArrayPrototypePush$1.call(childSnapshotDataResponses, childValue);
|
|
36068
|
+
}
|
|
36069
|
+
// track non-cached responses so rebuilds work properly
|
|
36070
|
+
if (childStatusCode !== 404 && childStatusCode !== 200) {
|
|
36071
|
+
nonCachedErrors$8[childKey] = { expiration: now + TTL$a, response: childBody, status: childStatusCode };
|
|
36072
|
+
}
|
|
36073
|
+
else {
|
|
36074
|
+
delete nonCachedErrors$8[childKey];
|
|
36043
36075
|
}
|
|
36044
36076
|
}
|
|
36045
36077
|
const childSnapshotData = {
|
|
36046
|
-
results: childSnapshotDataResponses
|
|
36078
|
+
results: childSnapshotDataResponses
|
|
36047
36079
|
};
|
|
36048
36080
|
deepFreeze(childSnapshotData);
|
|
36049
|
-
return {
|
|
36081
|
+
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
36082
|
+
}
|
|
36083
|
+
function ingestSuccess$a(luvio, resourceParams, response, snapshotRefresh) {
|
|
36084
|
+
const childEnvelopes = response.body.results;
|
|
36085
|
+
const childResourceParamsArray = createChildResourceParams$c(resourceParams);
|
|
36086
|
+
const key = keyBuilder$s$1(luvio, resourceParams);
|
|
36087
|
+
const { childSnapshotData, seenRecords, snapshotState } = ingestSuccessChildResourceParams$8(luvio, childResourceParamsArray, childEnvelopes);
|
|
36088
|
+
const syntheticSnapshot = {
|
|
36050
36089
|
recordId: key,
|
|
36051
36090
|
data: childSnapshotData,
|
|
36052
36091
|
state: snapshotState,
|
|
@@ -36056,8 +36095,12 @@
|
|
|
36056
36095
|
node: select$m$1(luvio, resourceParams),
|
|
36057
36096
|
variables: {},
|
|
36058
36097
|
},
|
|
36059
|
-
|
|
36098
|
+
refresh: snapshotRefresh,
|
|
36099
|
+
variables: {}
|
|
36060
36100
|
};
|
|
36101
|
+
// evict top level composite record from the store. This covers the case where a previous resource request returned a 404.
|
|
36102
|
+
luvio.storeEvict(key);
|
|
36103
|
+
return syntheticSnapshot;
|
|
36061
36104
|
}
|
|
36062
36105
|
function ingestError$7(luvio, params, error, snapshotRefresh) {
|
|
36063
36106
|
const key = keyBuilder$s$1(luvio, params);
|
|
@@ -36071,11 +36114,11 @@
|
|
|
36071
36114
|
baseUri: '/services/data/v60.0',
|
|
36072
36115
|
basePath: '/ui-api/related-list-records/batch/' + config.urlParams.parentRecordId + '',
|
|
36073
36116
|
method: 'post',
|
|
36074
|
-
priority: 'normal',
|
|
36075
36117
|
body: config.body,
|
|
36076
36118
|
urlParams: config.urlParams,
|
|
36077
36119
|
queryParams: {},
|
|
36078
36120
|
headers,
|
|
36121
|
+
priority: 'normal',
|
|
36079
36122
|
};
|
|
36080
36123
|
}
|
|
36081
36124
|
|
|
@@ -36122,7 +36165,10 @@
|
|
|
36122
36165
|
return select$m$1(luvio, resourceParams);
|
|
36123
36166
|
}
|
|
36124
36167
|
function onFetchResponseSuccess$a(luvio, config, resourceParams, response) {
|
|
36125
|
-
const snapshot = ingestSuccess$a(luvio, resourceParams, response
|
|
36168
|
+
const snapshot = ingestSuccess$a(luvio, resourceParams, response, {
|
|
36169
|
+
config,
|
|
36170
|
+
resolve: () => buildNetworkSnapshot$i(luvio, config, snapshotRefreshOptions$1)
|
|
36171
|
+
});
|
|
36126
36172
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
36127
36173
|
}
|
|
36128
36174
|
function onFetchResponseError$9(luvio, config, resourceParams, response) {
|
|
@@ -37892,7 +37938,7 @@
|
|
|
37892
37938
|
recordTypeId,
|
|
37893
37939
|
},
|
|
37894
37940
|
});
|
|
37895
|
-
const key = keyBuilder$
|
|
37941
|
+
const key = keyBuilder$1F(luvio, {
|
|
37896
37942
|
apiName: objectApiName,
|
|
37897
37943
|
recordTypeId,
|
|
37898
37944
|
layoutType,
|
|
@@ -37946,7 +37992,7 @@
|
|
|
37946
37992
|
const createResourceParams$9 = /*#__PURE__*/ createResourceParams$Y(getListRecordsByName_ConfigPropertyMetadata);
|
|
37947
37993
|
function keyBuilder$a$1(luvio, config) {
|
|
37948
37994
|
const resourceParams = createResourceParams$9(config);
|
|
37949
|
-
return keyBuilder$
|
|
37995
|
+
return keyBuilder$1P(luvio, resourceParams);
|
|
37950
37996
|
}
|
|
37951
37997
|
function typeCheckConfig$b(untrustedConfig) {
|
|
37952
37998
|
const config = {};
|
|
@@ -38028,12 +38074,12 @@
|
|
|
38028
38074
|
return items.length;
|
|
38029
38075
|
}
|
|
38030
38076
|
function getPaginationMetadata(luvio, resourceParams) {
|
|
38031
|
-
const key = keyBuilder$
|
|
38077
|
+
const key = keyBuilder$1P(luvio, resourceParams);
|
|
38032
38078
|
const selector = {
|
|
38033
38079
|
recordId: key,
|
|
38034
38080
|
node: {
|
|
38035
38081
|
kind: 'Fragment',
|
|
38036
|
-
version: VERSION$
|
|
38082
|
+
version: VERSION$16$1,
|
|
38037
38083
|
private: [],
|
|
38038
38084
|
selections: [
|
|
38039
38085
|
{
|
|
@@ -38393,13 +38439,6 @@
|
|
|
38393
38439
|
return cacheSnapshot;
|
|
38394
38440
|
}
|
|
38395
38441
|
|
|
38396
|
-
const paramNames = {
|
|
38397
|
-
displayName: 'getLookupRecords',
|
|
38398
|
-
parameters: {
|
|
38399
|
-
required: ['fieldApiName'],
|
|
38400
|
-
optional: ['requestParams'],
|
|
38401
|
-
},
|
|
38402
|
-
};
|
|
38403
38442
|
function coerceRequestParams(untrusted) {
|
|
38404
38443
|
if (!untrustedIsObject$2(untrusted)) {
|
|
38405
38444
|
return {};
|
|
@@ -38436,8 +38475,8 @@
|
|
|
38436
38475
|
}
|
|
38437
38476
|
return coercedConfig;
|
|
38438
38477
|
}
|
|
38439
|
-
function validateAdapterConfig$8(untrustedConfig) {
|
|
38440
|
-
const config = validateAdapterConfig$9(untrustedConfig,
|
|
38478
|
+
function validateAdapterConfig$8(untrustedConfig, configPropertyNames) {
|
|
38479
|
+
const config = validateAdapterConfig$9(untrustedConfig, configPropertyNames);
|
|
38441
38480
|
if (config === null) {
|
|
38442
38481
|
return config;
|
|
38443
38482
|
}
|
|
@@ -38452,9 +38491,16 @@
|
|
|
38452
38491
|
}
|
|
38453
38492
|
|
|
38454
38493
|
const contextId$3 = `${keyPrefix$1}__${adapterName$6}`;
|
|
38494
|
+
const paramNames = {
|
|
38495
|
+
displayName: 'getLookupRecords',
|
|
38496
|
+
parameters: {
|
|
38497
|
+
required: ['fieldApiName'],
|
|
38498
|
+
optional: ['requestParams'],
|
|
38499
|
+
},
|
|
38500
|
+
};
|
|
38455
38501
|
const factory$9 = (luvio) => {
|
|
38456
38502
|
return luvio.withContext((untrustedConfig, adapterContext, requestContext) => {
|
|
38457
|
-
const config = validateAdapterConfig$8(untrustedConfig);
|
|
38503
|
+
const config = validateAdapterConfig$8(untrustedConfig, paramNames);
|
|
38458
38504
|
// Invalid or incomplete config
|
|
38459
38505
|
if (config === null) {
|
|
38460
38506
|
return null;
|
|
@@ -40109,7 +40155,7 @@
|
|
|
40109
40155
|
function onResponseSuccess$1(luvio, response, recordIngest, conflictMap) {
|
|
40110
40156
|
const { body } = response;
|
|
40111
40157
|
const selections = buildSelectionFromRecord(body);
|
|
40112
|
-
const key = keyBuilder$
|
|
40158
|
+
const key = keyBuilder$1U(luvio, {
|
|
40113
40159
|
recordId: body.id,
|
|
40114
40160
|
});
|
|
40115
40161
|
luvio.storeIngest(key, recordIngest, body);
|
|
@@ -40120,7 +40166,7 @@
|
|
|
40120
40166
|
kind: 'Fragment',
|
|
40121
40167
|
private: [],
|
|
40122
40168
|
selections,
|
|
40123
|
-
version: VERSION$
|
|
40169
|
+
version: VERSION$18$1,
|
|
40124
40170
|
},
|
|
40125
40171
|
variables: {},
|
|
40126
40172
|
});
|
|
@@ -40159,7 +40205,7 @@
|
|
|
40159
40205
|
};
|
|
40160
40206
|
|
|
40161
40207
|
function keyBuilder$1$1(luvio, params) {
|
|
40162
|
-
return keyBuilder$
|
|
40208
|
+
return keyBuilder$1U(luvio, {
|
|
40163
40209
|
recordId: params.urlParams.recordId
|
|
40164
40210
|
});
|
|
40165
40211
|
}
|
|
@@ -40347,7 +40393,7 @@
|
|
|
40347
40393
|
function onResponseSuccess(luvio, response, recordId, recordIngest, conflictMap) {
|
|
40348
40394
|
const { body } = response;
|
|
40349
40395
|
const sel = buildSelectionFromRecord(body);
|
|
40350
|
-
const key = keyBuilder$
|
|
40396
|
+
const key = keyBuilder$1U(luvio, {
|
|
40351
40397
|
recordId,
|
|
40352
40398
|
});
|
|
40353
40399
|
luvio.storeIngest(key, recordIngest, body);
|
|
@@ -40358,7 +40404,7 @@
|
|
|
40358
40404
|
kind: 'Fragment',
|
|
40359
40405
|
private: [],
|
|
40360
40406
|
selections: sel,
|
|
40361
|
-
version: VERSION$
|
|
40407
|
+
version: VERSION$18$1,
|
|
40362
40408
|
},
|
|
40363
40409
|
variables: {},
|
|
40364
40410
|
});
|
|
@@ -40407,16 +40453,16 @@
|
|
|
40407
40453
|
};
|
|
40408
40454
|
};
|
|
40409
40455
|
|
|
40410
|
-
const VERSION$
|
|
40456
|
+
const VERSION$1l = "5f97eb4f2c3f805ef9d98ba7f0530b3e";
|
|
40411
40457
|
const RepresentationType$S = 'ContentDocumentCompositeRepresentation';
|
|
40412
|
-
function keyBuilder$
|
|
40458
|
+
function keyBuilder$1W(luvio, config) {
|
|
40413
40459
|
return keyPrefix$1 + '::' + RepresentationType$S + ':' + config.contentDocumentId;
|
|
40414
40460
|
}
|
|
40415
40461
|
function keyBuilderFromType$B(luvio, object) {
|
|
40416
40462
|
const keyParams = {
|
|
40417
40463
|
contentDocumentId: object.contentDocument.id
|
|
40418
40464
|
};
|
|
40419
|
-
return keyBuilder$
|
|
40465
|
+
return keyBuilder$1W(luvio, keyParams);
|
|
40420
40466
|
}
|
|
40421
40467
|
function normalize(input, existing, path, luvio, store, timestamp) {
|
|
40422
40468
|
const input_contentDocument = input.contentDocument;
|
|
@@ -40487,7 +40533,7 @@
|
|
|
40487
40533
|
const ingest$15 = function ContentDocumentCompositeRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
40488
40534
|
const key = keyBuilderFromType$B(luvio, input);
|
|
40489
40535
|
const ttlToUse = path.ttl !== undefined ? path.ttl : 2592000000;
|
|
40490
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "UiApi", VERSION$
|
|
40536
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize, "UiApi", VERSION$1l, RepresentationType$S, equals$10);
|
|
40491
40537
|
return createLink$3(key);
|
|
40492
40538
|
};
|
|
40493
40539
|
function getTypeCacheKeys$18(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -40558,7 +40604,7 @@
|
|
|
40558
40604
|
return {
|
|
40559
40605
|
kind: 'Fragment',
|
|
40560
40606
|
private: [],
|
|
40561
|
-
version: VERSION$
|
|
40607
|
+
version: VERSION$1l,
|
|
40562
40608
|
selections: [
|
|
40563
40609
|
{
|
|
40564
40610
|
name: 'contentDocument',
|
|
@@ -40566,7 +40612,7 @@
|
|
|
40566
40612
|
fragment: {
|
|
40567
40613
|
kind: 'Fragment',
|
|
40568
40614
|
private: [],
|
|
40569
|
-
version: VERSION$
|
|
40615
|
+
version: VERSION$18$1,
|
|
40570
40616
|
selections: buildSelectionFromRecord(body.contentDocument),
|
|
40571
40617
|
},
|
|
40572
40618
|
},
|
|
@@ -40577,7 +40623,7 @@
|
|
|
40577
40623
|
fragment: {
|
|
40578
40624
|
kind: 'Fragment',
|
|
40579
40625
|
private: [],
|
|
40580
|
-
version: VERSION$
|
|
40626
|
+
version: VERSION$18$1,
|
|
40581
40627
|
selections: buildSelectionFromRecord(body.contentDocumentLinks[0] || { fields: {} }),
|
|
40582
40628
|
},
|
|
40583
40629
|
},
|
|
@@ -40587,7 +40633,7 @@
|
|
|
40587
40633
|
fragment: {
|
|
40588
40634
|
kind: 'Fragment',
|
|
40589
40635
|
private: [],
|
|
40590
|
-
version: VERSION$
|
|
40636
|
+
version: VERSION$18$1,
|
|
40591
40637
|
selections: buildSelectionFromRecord(body.contentVersion),
|
|
40592
40638
|
},
|
|
40593
40639
|
},
|
|
@@ -41325,7 +41371,7 @@
|
|
|
41325
41371
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
41326
41372
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41327
41373
|
});
|
|
41328
|
-
// version: 1.
|
|
41374
|
+
// version: 1.236.0-e3ad4839b
|
|
41329
41375
|
|
|
41330
41376
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
41331
41377
|
|
|
@@ -41460,12 +41506,14 @@
|
|
|
41460
41506
|
* For full license text, see the LICENSE.txt file
|
|
41461
41507
|
*/
|
|
41462
41508
|
|
|
41509
|
+
|
|
41463
41510
|
/**
|
|
41464
41511
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
41465
41512
|
* All rights reserved.
|
|
41466
41513
|
* For full license text, see the LICENSE.txt file
|
|
41467
41514
|
*/
|
|
41468
41515
|
|
|
41516
|
+
|
|
41469
41517
|
const { parse: parse$6, stringify: stringify$6 } = JSON;
|
|
41470
41518
|
const { join: join$2, push: push$2, unshift } = Array.prototype;
|
|
41471
41519
|
const { isArray: isArray$5 } = Array;
|
|
@@ -43055,6 +43103,7 @@
|
|
|
43055
43103
|
* For full license text, see the LICENSE.txt file
|
|
43056
43104
|
*/
|
|
43057
43105
|
|
|
43106
|
+
|
|
43058
43107
|
const GRAPHQL_ROOT_KEY$1 = `GraphQL::graphql`;
|
|
43059
43108
|
function findIds(json) {
|
|
43060
43109
|
const entries = Object.entries(json);
|
|
@@ -46285,6 +46334,7 @@
|
|
|
46285
46334
|
* For full license text, see the LICENSE.txt file
|
|
46286
46335
|
*/
|
|
46287
46336
|
|
|
46337
|
+
|
|
46288
46338
|
/* Ideally we would use AbortController but it does not exist in V8, this is a simplified version */
|
|
46289
46339
|
class LdsAbortController {
|
|
46290
46340
|
constructor() {
|
|
@@ -46379,6 +46429,7 @@
|
|
|
46379
46429
|
* For full license text, see the LICENSE.txt file
|
|
46380
46430
|
*/
|
|
46381
46431
|
|
|
46432
|
+
|
|
46382
46433
|
var DraftActionStatus;
|
|
46383
46434
|
(function (DraftActionStatus) {
|
|
46384
46435
|
DraftActionStatus["Pending"] = "pending";
|
|
@@ -48301,6 +48352,7 @@
|
|
|
48301
48352
|
* For full license text, see the LICENSE.txt file
|
|
48302
48353
|
*/
|
|
48303
48354
|
|
|
48355
|
+
|
|
48304
48356
|
class DataLoader {
|
|
48305
48357
|
constructor(batchLoadFn) {
|
|
48306
48358
|
this._batchLoadFn = batchLoadFn;
|
|
@@ -52443,6 +52495,7 @@
|
|
|
52443
52495
|
* For full license text, see the LICENSE.txt file
|
|
52444
52496
|
*/
|
|
52445
52497
|
|
|
52498
|
+
|
|
52446
52499
|
const { keys: keys$3, values: values$1, create: create$3, assign: assign$3, freeze: freeze$2 } = Object;
|
|
52447
52500
|
const { stringify: stringify$3, parse: parse$3 } = JSON;
|
|
52448
52501
|
const { shift } = Array.prototype;
|
|
@@ -52498,7 +52551,7 @@
|
|
|
52498
52551
|
* @param recordId record id
|
|
52499
52552
|
*/
|
|
52500
52553
|
function getRecordKeyForId(luvio, recordId) {
|
|
52501
|
-
return keyBuilder$
|
|
52554
|
+
return keyBuilder$1U(luvio, { recordId });
|
|
52502
52555
|
}
|
|
52503
52556
|
/**
|
|
52504
52557
|
* Drafts are stored with denormalized fields and normalized field links. This method
|
|
@@ -52563,7 +52616,7 @@
|
|
|
52563
52616
|
if (recordId === undefined) {
|
|
52564
52617
|
return request;
|
|
52565
52618
|
}
|
|
52566
|
-
const recordKey = keyBuilder$
|
|
52619
|
+
const recordKey = keyBuilder$1U(luvio, { recordId });
|
|
52567
52620
|
if (canonicalRecordStoreKey === recordKey) {
|
|
52568
52621
|
// no mapping exists -- return the request un-modified
|
|
52569
52622
|
return request;
|
|
@@ -52674,7 +52727,7 @@
|
|
|
52674
52727
|
for (let i = 0, len = allIds.length; i < len; i++) {
|
|
52675
52728
|
const recordId = allIds[i];
|
|
52676
52729
|
if (isDraftId(recordId)) {
|
|
52677
|
-
const recordKey = keyBuilder$
|
|
52730
|
+
const recordKey = keyBuilder$1U(luvio, { recordId });
|
|
52678
52731
|
const canonicalKey = env.storeGetCanonicalKey(recordKey);
|
|
52679
52732
|
if (recordKey !== canonicalKey) {
|
|
52680
52733
|
// record is no longer a draft, include the canonical id in the request
|
|
@@ -53683,7 +53736,7 @@
|
|
|
53683
53736
|
if (originalKey.startsWith(RECORD_VIEW_ENTITY_ID_PREFIX$1)) {
|
|
53684
53737
|
return RECORD_VIEW_ENTITY_ID_PREFIX$1 + recordId;
|
|
53685
53738
|
}
|
|
53686
|
-
return keyBuilder$
|
|
53739
|
+
return keyBuilder$1U(luvio, { recordId });
|
|
53687
53740
|
}
|
|
53688
53741
|
function makeRecordDenormalizingDurableStore(luvio, durableStore, getStoreRecords, getStoreMetadata) {
|
|
53689
53742
|
const getEntries = function (entries, segment) {
|
|
@@ -54057,7 +54110,7 @@
|
|
|
54057
54110
|
return this.generateId(objectInfo.keyPrefix);
|
|
54058
54111
|
}
|
|
54059
54112
|
getKeyForId(id) {
|
|
54060
|
-
return keyBuilder$
|
|
54113
|
+
return keyBuilder$1U(this.getLuvio(), { recordId: id });
|
|
54061
54114
|
}
|
|
54062
54115
|
async synthesizeDraftRecord(recordId) {
|
|
54063
54116
|
const metadata = await this.getRecordDraftMetadata(recordId, undefined);
|
|
@@ -54169,7 +54222,7 @@
|
|
|
54169
54222
|
}
|
|
54170
54223
|
synchronousIngest(response) {
|
|
54171
54224
|
const luvio = this.getLuvio();
|
|
54172
|
-
const key = keyBuilder$
|
|
54225
|
+
const key = keyBuilder$1D(luvio, {
|
|
54173
54226
|
id: response.id,
|
|
54174
54227
|
});
|
|
54175
54228
|
luvio.storeIngest(key, ingest$z$1, response);
|
|
@@ -54635,7 +54688,7 @@
|
|
|
54635
54688
|
return responseBody.contentDocument.id;
|
|
54636
54689
|
}
|
|
54637
54690
|
buildTagForTargetId(id) {
|
|
54638
|
-
return keyBuilder$
|
|
54691
|
+
return keyBuilder$1W(this.getLuvio(), {
|
|
54639
54692
|
contentDocumentId: id,
|
|
54640
54693
|
});
|
|
54641
54694
|
}
|
|
@@ -55116,6 +55169,7 @@
|
|
|
55116
55169
|
* For full license text, see the LICENSE.txt file
|
|
55117
55170
|
*/
|
|
55118
55171
|
|
|
55172
|
+
|
|
55119
55173
|
const { keys: keys$2$1, create: create$2$1, assign: assign$2, entries: entries$2 } = Object;
|
|
55120
55174
|
const { stringify: stringify$2, parse: parse$2 } = JSON;
|
|
55121
55175
|
const { push: push$1, join: join$1, slice: slice$1 } = Array.prototype;
|
|
@@ -55241,6 +55295,7 @@
|
|
|
55241
55295
|
}
|
|
55242
55296
|
|
|
55243
55297
|
// so eslint doesn't complain about nimbus
|
|
55298
|
+
/* global __nimbus */
|
|
55244
55299
|
const tasker = idleDetector.declareNotifierTaskMulti('NimbusNetworkAdapter');
|
|
55245
55300
|
const NimbusNetworkAdapter = (request, resourceRequestContext) => {
|
|
55246
55301
|
return new Promise((resolve, reject) => {
|
|
@@ -55916,6 +55971,7 @@
|
|
|
55916
55971
|
const { push: push$3, join, slice } = Array.prototype;
|
|
55917
55972
|
|
|
55918
55973
|
// so eslint doesn't complain about nimbus
|
|
55974
|
+
/* global __nimbus */
|
|
55919
55975
|
/**
|
|
55920
55976
|
* An implementation of the DraftQueue interface which serializes
|
|
55921
55977
|
* requests and sends them across the Nimbus bridge and deserializes the result.
|
|
@@ -56042,7 +56098,6 @@
|
|
|
56042
56098
|
return new Error(stringify$1$1(err));
|
|
56043
56099
|
}
|
|
56044
56100
|
const DRAFT_QUEUE_TOTAL_MERGE_ACTIONS_CALLS = 'draft-queue-total-mergeActions-calls';
|
|
56045
|
-
const DRAFT_AWARE_CREATE_CONTENT_DOCUMENT_AND_VERSION_ERROR = 'draft-aware-create-content-document-and-version-error';
|
|
56046
56101
|
function reportGraphqlQueryParseError(err) {
|
|
56047
56102
|
normalizeError$2(err);
|
|
56048
56103
|
}
|
|
@@ -56062,14 +56117,7 @@
|
|
|
56062
56117
|
else {
|
|
56063
56118
|
error = normalizeError$2(err);
|
|
56064
56119
|
}
|
|
56065
|
-
|
|
56066
|
-
const errorType = error.errorType;
|
|
56067
|
-
const tags = {
|
|
56068
|
-
errorCode,
|
|
56069
|
-
};
|
|
56070
|
-
if (errorType !== undefined) {
|
|
56071
|
-
tags.errorType = errorType;
|
|
56072
|
-
}
|
|
56120
|
+
error.errorType;
|
|
56073
56121
|
}
|
|
56074
56122
|
function reportDraftAwareContentVersionSynthesizeCalls(mimeType) {
|
|
56075
56123
|
}
|
|
@@ -56143,6 +56191,7 @@
|
|
|
56143
56191
|
}
|
|
56144
56192
|
|
|
56145
56193
|
// so eslint doesn't complain about nimbus
|
|
56194
|
+
/* global __nimbus */
|
|
56146
56195
|
function buildLdsDraftQueue(durableStore) {
|
|
56147
56196
|
if (typeof __nimbus !== 'undefined' &&
|
|
56148
56197
|
__nimbus.plugins !== undefined &&
|
|
@@ -56888,6 +56937,7 @@
|
|
|
56888
56937
|
}
|
|
56889
56938
|
|
|
56890
56939
|
// so eslint doesn't complain about nimbus
|
|
56940
|
+
/* global __nimbus */
|
|
56891
56941
|
let baseDurableStore;
|
|
56892
56942
|
function getNimbusDurableStore(plugin) {
|
|
56893
56943
|
if (baseDurableStore === undefined) {
|
|
@@ -57093,6 +57143,7 @@
|
|
|
57093
57143
|
* For full license text, see the LICENSE.txt file
|
|
57094
57144
|
*/
|
|
57095
57145
|
|
|
57146
|
+
|
|
57096
57147
|
class EventEmitter {
|
|
57097
57148
|
constructor() {
|
|
57098
57149
|
// @ts-ignore typescript doesn't like us setting this to an empty object for some reason
|
|
@@ -57875,7 +57926,7 @@
|
|
|
57875
57926
|
namespace: keyPrefix$1,
|
|
57876
57927
|
representationName: RepresentationType$O,
|
|
57877
57928
|
metadataVersion: DURABLE_METADATA_VERSION,
|
|
57878
|
-
version: VERSION$
|
|
57929
|
+
version: VERSION$18$1,
|
|
57879
57930
|
};
|
|
57880
57931
|
return this.store.writeRecords(syntheticRecords.map((record) => ({ record, metadata })), overwrite);
|
|
57881
57932
|
}
|
|
@@ -58004,7 +58055,7 @@
|
|
|
58004
58055
|
const sql = 'SELECT data, metadata FROM lds_data WHERE key IN (' +
|
|
58005
58056
|
ids.map(() => '?').join(',') +
|
|
58006
58057
|
')';
|
|
58007
|
-
const params = ids.map((id) => keyBuilder$
|
|
58058
|
+
const params = ids.map((id) => keyBuilder$1U(this.getLuvio(), { recordId: id }));
|
|
58008
58059
|
const result = await this.store.query(sql, params);
|
|
58009
58060
|
const records = [];
|
|
58010
58061
|
for (const row of result.rows) {
|
|
@@ -58033,7 +58084,7 @@
|
|
|
58033
58084
|
const params = [];
|
|
58034
58085
|
records.forEach(({ record, metadata }) => {
|
|
58035
58086
|
idsToPrime.add(record.id);
|
|
58036
|
-
const key = keyBuilder$
|
|
58087
|
+
const key = keyBuilder$1U(this.getLuvio(), { recordId: record.id });
|
|
58037
58088
|
params.push(key);
|
|
58038
58089
|
params.push(JSON.stringify(record));
|
|
58039
58090
|
params.push(JSON.stringify(metadata));
|
|
@@ -58142,6 +58193,8 @@
|
|
|
58142
58193
|
}
|
|
58143
58194
|
|
|
58144
58195
|
// so eslint doesn't complain about nimbus
|
|
58196
|
+
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
58197
|
+
/* global __nimbus */
|
|
58145
58198
|
let lazyDraftQueue;
|
|
58146
58199
|
let lazyDraftManager;
|
|
58147
58200
|
let lazyLuvio;
|
|
@@ -58293,7 +58346,7 @@
|
|
|
58293
58346
|
id: '@salesforce/lds-network-adapter',
|
|
58294
58347
|
instrument: instrument$1,
|
|
58295
58348
|
});
|
|
58296
|
-
// version: 1.
|
|
58349
|
+
// version: 1.236.0-036823f57
|
|
58297
58350
|
|
|
58298
58351
|
const { create: create$2, keys: keys$2 } = Object;
|
|
58299
58352
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -58714,6 +58767,7 @@
|
|
|
58714
58767
|
* For full license text, see the LICENSE.txt file
|
|
58715
58768
|
*/
|
|
58716
58769
|
|
|
58770
|
+
|
|
58717
58771
|
const { hasOwnProperty: ObjectPrototypeHasOwnProperty } = Object.prototype;
|
|
58718
58772
|
const { keys: ObjectKeys$1, create: ObjectCreate$1 } = Object;
|
|
58719
58773
|
const { stringify: JSONStringify } = JSON;
|
|
@@ -76206,9 +76260,7 @@
|
|
|
76206
76260
|
function buildNetworkSnapshot$2(luvio, config, options) {
|
|
76207
76261
|
const resourceParams = createResourceParams(transformConfiguration(config));
|
|
76208
76262
|
const request = createResourceRequest(resourceParams);
|
|
76209
|
-
return luvio
|
|
76210
|
-
.dispatchResourceRequest(request, options)
|
|
76211
|
-
.then((response) => {
|
|
76263
|
+
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
76212
76264
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$2(luvio, config, resourceParams, response), () => {
|
|
76213
76265
|
const cache = new StoreKeyMap();
|
|
76214
76266
|
getResponseCacheKeys$2(cache, luvio, resourceParams, response.body);
|
|
@@ -76530,6 +76582,8 @@
|
|
|
76530
76582
|
FormFactor["Small"] = "Small";
|
|
76531
76583
|
})(FormFactor || (FormFactor = {}));
|
|
76532
76584
|
|
|
76585
|
+
ObjectCreate$1(null);
|
|
76586
|
+
|
|
76533
76587
|
var LayoutType;
|
|
76534
76588
|
(function (LayoutType) {
|
|
76535
76589
|
LayoutType["Full"] = "Full";
|
|
@@ -76745,7 +76799,6 @@
|
|
|
76745
76799
|
|
|
76746
76800
|
ObjectCreate$1(null);
|
|
76747
76801
|
|
|
76748
|
-
// Copied from generated resource
|
|
76749
76802
|
ObjectCreate$1(null);
|
|
76750
76803
|
|
|
76751
76804
|
var DiscriminatorValues;
|
|
@@ -76764,56 +76817,57 @@
|
|
|
76764
76817
|
configuration: { ...configurationForGraphQLAdapters },
|
|
76765
76818
|
instrument,
|
|
76766
76819
|
});
|
|
76767
|
-
// version: 1.
|
|
76820
|
+
// version: 1.236.0-e3ad4839b
|
|
76768
76821
|
|
|
76769
76822
|
// On core the unstable adapters are re-exported with different names,
|
|
76823
|
+
// we want to match them here.
|
|
76770
76824
|
|
|
76771
76825
|
var unstableLightningRelatedListApi = /*#__PURE__*/Object.freeze({
|
|
76772
76826
|
__proto__: null,
|
|
76827
|
+
get createRecord () { return createRecord; },
|
|
76828
|
+
get deleteRecord () { return deleteRecord; },
|
|
76773
76829
|
gql: gql,
|
|
76774
76830
|
get graphql () { return graphql; },
|
|
76775
|
-
get unstable_graphql () { return graphql; },
|
|
76776
|
-
get unstable_graphql_imperative () { return graphql_imperative; },
|
|
76777
76831
|
get refreshGraphQL () { return refresh$2; },
|
|
76778
|
-
get unstable_getListUi_imperative () { return unstable_getListUi_imperative; },
|
|
76779
|
-
get unstable_getRecordActions_imperative () { return unstable_getRecordActions_imperative; },
|
|
76780
|
-
get unstable_getRecordEditActions_imperative () { return unstable_getRecordEditActions_imperative; },
|
|
76781
|
-
get unstable_getRelatedListRecordActions_imperative () { return unstable_getRelatedListRecordActions_imperative; },
|
|
76782
|
-
get unstable_getObjectCreateActions_imperative () { return unstable_getObjectCreateActions_imperative; },
|
|
76783
|
-
get unstable_getRelatedListActions_imperative () { return unstable_getRelatedListActions_imperative; },
|
|
76784
|
-
get unstable_getRelatedListsActions_imperative () { return unstable_getRelatedListsActions_imperative; },
|
|
76785
|
-
get unstable_getGlobalActions_imperative () { return unstable_getGlobalActions_imperative; },
|
|
76786
|
-
get unstable_getQuickActionDefaults_imperative () { return unstable_getQuickActionDefaults_imperative; },
|
|
76787
76832
|
get unstable_getActionOverrides_imperative () { return unstable_getActionOverrides_imperative; },
|
|
76788
|
-
get
|
|
76833
|
+
get unstable_getGlobalActions_imperative () { return unstable_getGlobalActions_imperative; },
|
|
76834
|
+
get unstable_getListUi_imperative () { return unstable_getListUi_imperative; },
|
|
76789
76835
|
get unstable_getLookupRecords_imperative () { return unstable_getLookupRecords_imperative; },
|
|
76836
|
+
get unstable_getObjectCreateActions_imperative () { return unstable_getObjectCreateActions_imperative; },
|
|
76790
76837
|
get unstable_getObjectInfo_imperative () { return unstable_getObjectInfo_imperative; },
|
|
76791
76838
|
get unstable_getObjectInfos_imperative () { return unstable_getObjectInfos_imperative; },
|
|
76792
|
-
get unstable_getPicklistValues_imperative () { return unstable_getPicklistValues_imperative; },
|
|
76793
76839
|
get unstable_getPicklistValuesByRecordType_imperative () { return unstable_getPicklistValuesByRecordType_imperative; },
|
|
76794
|
-
get
|
|
76795
|
-
get
|
|
76796
|
-
get
|
|
76840
|
+
get unstable_getPicklistValues_imperative () { return unstable_getPicklistValues_imperative; },
|
|
76841
|
+
get unstable_getQuickActionDefaults_imperative () { return unstable_getQuickActionDefaults_imperative; },
|
|
76842
|
+
get unstable_getRecordActions_imperative () { return unstable_getRecordActions_imperative; },
|
|
76843
|
+
get unstable_getRecordAvatars_imperative () { return unstable_getRecordAvatars_imperative; },
|
|
76844
|
+
get unstable_getRecordCreateDefaults_imperative () { return unstable_getRecordCreateDefaults_imperative; },
|
|
76845
|
+
get unstable_getRecordEditActions_imperative () { return unstable_getRecordEditActions_imperative; },
|
|
76797
76846
|
get unstable_getRecordTemplateClone () { return getRecordTemplateClone; },
|
|
76798
|
-
get unstable_getRecordTemplateCreate () { return getRecordTemplateCreate; },
|
|
76799
|
-
get unstable_getRecords () { return getRecords; },
|
|
76800
|
-
get unstable_getRecord_imperative () { return unstable_getRecord_imperative; },
|
|
76801
|
-
get unstable_getRecords_imperative () { return unstable_getRecords_imperative; },
|
|
76802
76847
|
get unstable_getRecordTemplateClone_imperative () { return unstable_getRecordTemplateClone_imperative; },
|
|
76848
|
+
get unstable_getRecordTemplateCreate () { return getRecordTemplateCreate; },
|
|
76803
76849
|
get unstable_getRecordTemplateCreate_imperative () { return unstable_getRecordTemplateCreate_imperative; },
|
|
76804
76850
|
get unstable_getRecordUi_imperative () { return unstable_getRecordUi_imperative; },
|
|
76805
|
-
get
|
|
76806
|
-
get
|
|
76851
|
+
get unstable_getRecord_imperative () { return unstable_getRecord_imperative; },
|
|
76852
|
+
get unstable_getRecords () { return getRecords; },
|
|
76853
|
+
get unstable_getRecords_imperative () { return unstable_getRecords_imperative; },
|
|
76807
76854
|
get unstable_getRelatedListActions () { return getRelatedListActions; },
|
|
76808
|
-
|
|
76809
|
-
unstable_refresh: refresh,
|
|
76855
|
+
get unstable_getRelatedListActions_imperative () { return unstable_getRelatedListActions_imperative; },
|
|
76810
76856
|
get unstable_getRelatedListCount_imperative () { return unstable_getRelatedListCount_imperative; },
|
|
76811
|
-
get
|
|
76857
|
+
get unstable_getRelatedListInfoBatch_imperative () { return unstable_getRelatedListInfoBatch_imperative; },
|
|
76812
76858
|
get unstable_getRelatedListInfo_imperative () { return unstable_getRelatedListInfo_imperative; },
|
|
76813
|
-
get
|
|
76814
|
-
get unstable_getRelatedListRecords_imperative () { return unstable_getRelatedListRecords_imperative; },
|
|
76859
|
+
get unstable_getRelatedListRecordActions_imperative () { return unstable_getRelatedListRecordActions_imperative; },
|
|
76815
76860
|
get unstable_getRelatedListRecordsBatch_imperative () { return unstable_getRelatedListRecordsBatch_imperative; },
|
|
76816
|
-
get
|
|
76861
|
+
get unstable_getRelatedListRecords_imperative () { return unstable_getRelatedListRecords_imperative; },
|
|
76862
|
+
get unstable_getRelatedListsActions_imperative () { return unstable_getRelatedListsActions_imperative; },
|
|
76863
|
+
get unstable_getRelatedListsCount () { return getRelatedListsCount; },
|
|
76864
|
+
get unstable_getRelatedListsCount_imperative () { return unstable_getRelatedListsCount_imperative; },
|
|
76865
|
+
get unstable_getRelatedListsInfo_imperative () { return unstable_getRelatedListsInfo_imperative; },
|
|
76866
|
+
get unstable_graphql () { return graphql; },
|
|
76867
|
+
get unstable_graphql_imperative () { return graphql_imperative; },
|
|
76868
|
+
unstable_refresh: refresh,
|
|
76869
|
+
unstable_updateRelatedListInfo: updateRelatedListInfo,
|
|
76870
|
+
get updateRecord () { return updateRecord; }
|
|
76817
76871
|
});
|
|
76818
76872
|
|
|
76819
76873
|
var ldsAdapterForwardingGate = {
|
|
@@ -76831,6 +76885,7 @@
|
|
|
76831
76885
|
* For full license text, see the LICENSE.txt file
|
|
76832
76886
|
*/
|
|
76833
76887
|
|
|
76888
|
+
|
|
76834
76889
|
const { isArray } = Array;
|
|
76835
76890
|
const { keys, freeze, create } = Object;
|
|
76836
76891
|
const { hasOwnProperty } = Object.prototype;
|
|
@@ -77237,7 +77292,7 @@
|
|
|
77237
77292
|
}
|
|
77238
77293
|
case 'CustomFieldSelection': {
|
|
77239
77294
|
if (sel.type === 'Connection') {
|
|
77240
|
-
const recordKey = keyBuilder$
|
|
77295
|
+
const recordKey = keyBuilder$1U(luvio, {
|
|
77241
77296
|
recordId: state.source.id,
|
|
77242
77297
|
});
|
|
77243
77298
|
assignConnectionSelection(luvio, builder, sink, sel, recordKey, propertyName, variables);
|
|
@@ -79011,7 +79066,7 @@
|
|
|
79011
79066
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
79012
79067
|
graphQLImperative = ldsAdapter;
|
|
79013
79068
|
});
|
|
79014
|
-
// version: 1.
|
|
79069
|
+
// version: 1.236.0-e3ad4839b
|
|
79015
79070
|
|
|
79016
79071
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
79017
79072
|
__proto__: null,
|
|
@@ -79614,6 +79669,7 @@
|
|
|
79614
79669
|
}
|
|
79615
79670
|
|
|
79616
79671
|
/* istanbul ignore file */
|
|
79672
|
+
// TODO [W-9523236]: add test coverage for this file and remove above comment
|
|
79617
79673
|
// A allowlist of methods that we allow to be proxied from another LDS instance
|
|
79618
79674
|
const allowList = ['enqueue', 'getQueueActions'];
|
|
79619
79675
|
/**
|
|
@@ -79721,6 +79777,8 @@
|
|
|
79721
79777
|
}
|
|
79722
79778
|
|
|
79723
79779
|
// LWR has a "setupLDS" bootstrap service/loader hook, we simulate this in
|
|
79780
|
+
// standalone bundle by mimicking what "setupLDS" does here and then exporting
|
|
79781
|
+
// everything from main.ts
|
|
79724
79782
|
const { luvio } = getRuntime();
|
|
79725
79783
|
setDefaultLuvio({ luvio });
|
|
79726
79784
|
|
|
@@ -79739,7 +79797,5 @@
|
|
|
79739
79797
|
exports.setUiApiRecordTTL = setUiApiRecordTTL;
|
|
79740
79798
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
79741
79799
|
|
|
79742
|
-
Object.defineProperty(exports, '__esModule', { value: true });
|
|
79743
|
-
|
|
79744
79800
|
}));
|
|
79745
|
-
// version: 1.
|
|
79801
|
+
// version: 1.236.0-036823f57
|