@salesforce/lwc-adapters-uiapi 1.180.0 → 1.181.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.
package/dist/main.js
CHANGED
|
@@ -8026,7 +8026,7 @@ function validate$1I(obj, path = 'ListColumnRepresentation') {
|
|
|
8026
8026
|
})();
|
|
8027
8027
|
return v_error === undefined ? null : v_error;
|
|
8028
8028
|
}
|
|
8029
|
-
const select$
|
|
8029
|
+
const select$2V = function ListColumnRepresentationSelect() {
|
|
8030
8030
|
return {
|
|
8031
8031
|
kind: 'Fragment',
|
|
8032
8032
|
version: VERSION$2o,
|
|
@@ -8088,7 +8088,7 @@ function validate$1H(obj, path = 'ListFilterByInfoRepresentation') {
|
|
|
8088
8088
|
})();
|
|
8089
8089
|
return v_error === undefined ? null : v_error;
|
|
8090
8090
|
}
|
|
8091
|
-
const select$
|
|
8091
|
+
const select$2U = function ListFilterByInfoRepresentationSelect() {
|
|
8092
8092
|
return {
|
|
8093
8093
|
kind: 'Fragment',
|
|
8094
8094
|
version: VERSION$2n,
|
|
@@ -8186,7 +8186,7 @@ function validate$1G(obj, path = 'ListReferenceRepresentation') {
|
|
|
8186
8186
|
})();
|
|
8187
8187
|
return v_error === undefined ? null : v_error;
|
|
8188
8188
|
}
|
|
8189
|
-
const select$
|
|
8189
|
+
const select$2T = function ListReferenceRepresentationSelect() {
|
|
8190
8190
|
return {
|
|
8191
8191
|
kind: 'Fragment',
|
|
8192
8192
|
version: VERSION$2m,
|
|
@@ -8280,7 +8280,7 @@ function validate$1F(obj, path = 'ListOrderByInfoRepresentation') {
|
|
|
8280
8280
|
})();
|
|
8281
8281
|
return v_error === undefined ? null : v_error;
|
|
8282
8282
|
}
|
|
8283
|
-
const select$
|
|
8283
|
+
const select$2S = function ListOrderByInfoRepresentationSelect() {
|
|
8284
8284
|
return {
|
|
8285
8285
|
kind: 'Fragment',
|
|
8286
8286
|
version: VERSION$2l,
|
|
@@ -8321,7 +8321,7 @@ function validate$1E(obj, path = 'ListScopeEntityRepresentation') {
|
|
|
8321
8321
|
})();
|
|
8322
8322
|
return v_error === undefined ? null : v_error;
|
|
8323
8323
|
}
|
|
8324
|
-
const select$
|
|
8324
|
+
const select$2R = function ListScopeEntityRepresentationSelect() {
|
|
8325
8325
|
return {
|
|
8326
8326
|
kind: 'Fragment',
|
|
8327
8327
|
version: VERSION$2k,
|
|
@@ -8363,7 +8363,7 @@ function validate$1D(obj, path = 'ListScopeRelatedEntityRepresentation') {
|
|
|
8363
8363
|
})();
|
|
8364
8364
|
return v_error === undefined ? null : v_error;
|
|
8365
8365
|
}
|
|
8366
|
-
const select$
|
|
8366
|
+
const select$2Q = function ListScopeRelatedEntityRepresentationSelect() {
|
|
8367
8367
|
return {
|
|
8368
8368
|
kind: 'Fragment',
|
|
8369
8369
|
version: VERSION$2j,
|
|
@@ -8462,9 +8462,9 @@ function validate$1C(obj, path = 'ListScopeRepresentation') {
|
|
|
8462
8462
|
})();
|
|
8463
8463
|
return v_error === undefined ? null : v_error;
|
|
8464
8464
|
}
|
|
8465
|
-
const select$
|
|
8466
|
-
const { selections: ListScopeEntityRepresentation__selections, opaque: ListScopeEntityRepresentation__opaque, } = select$
|
|
8467
|
-
const { selections: ListScopeRelatedEntityRepresentation__selections, opaque: ListScopeRelatedEntityRepresentation__opaque, } = select$
|
|
8465
|
+
const select$2P = function ListScopeRepresentationSelect() {
|
|
8466
|
+
const { selections: ListScopeEntityRepresentation__selections, opaque: ListScopeEntityRepresentation__opaque, } = select$2R();
|
|
8467
|
+
const { selections: ListScopeRelatedEntityRepresentation__selections, opaque: ListScopeRelatedEntityRepresentation__opaque, } = select$2Q();
|
|
8468
8468
|
return {
|
|
8469
8469
|
kind: 'Fragment',
|
|
8470
8470
|
version: VERSION$2i,
|
|
@@ -8531,7 +8531,7 @@ function validate$1B(obj, path = 'ListUserPreferenceRepresentation') {
|
|
|
8531
8531
|
})();
|
|
8532
8532
|
return v_error === undefined ? null : v_error;
|
|
8533
8533
|
}
|
|
8534
|
-
const select$
|
|
8534
|
+
const select$2O = function ListUserPreferenceRepresentationSelect() {
|
|
8535
8535
|
return {
|
|
8536
8536
|
kind: 'Fragment',
|
|
8537
8537
|
version: VERSION$2h,
|
|
@@ -8769,13 +8769,13 @@ function keyBuilderFromType$z(luvio, object) {
|
|
|
8769
8769
|
function normalize$N(input, existing, path, luvio, store, timestamp) {
|
|
8770
8770
|
return input;
|
|
8771
8771
|
}
|
|
8772
|
-
const select$
|
|
8773
|
-
const { selections: ListColumnRepresentation__selections, opaque: ListColumnRepresentation__opaque, } = select$
|
|
8774
|
-
const { selections: ListFilterByInfoRepresentation__selections, opaque: ListFilterByInfoRepresentation__opaque, } = select$
|
|
8775
|
-
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$
|
|
8776
|
-
const { selections: ListOrderByInfoRepresentation__selections, opaque: ListOrderByInfoRepresentation__opaque, } = select$
|
|
8777
|
-
const { selections: ListScopeRepresentation__selections, opaque: ListScopeRepresentation__opaque, } = select$
|
|
8778
|
-
const { selections: ListUserPreferenceRepresentation__selections, opaque: ListUserPreferenceRepresentation__opaque, } = select$
|
|
8772
|
+
const select$2N = function ListInfoRepresentationSelect() {
|
|
8773
|
+
const { selections: ListColumnRepresentation__selections, opaque: ListColumnRepresentation__opaque, } = select$2V();
|
|
8774
|
+
const { selections: ListFilterByInfoRepresentation__selections, opaque: ListFilterByInfoRepresentation__opaque, } = select$2U();
|
|
8775
|
+
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$2T();
|
|
8776
|
+
const { selections: ListOrderByInfoRepresentation__selections, opaque: ListOrderByInfoRepresentation__opaque, } = select$2S();
|
|
8777
|
+
const { selections: ListScopeRepresentation__selections, opaque: ListScopeRepresentation__opaque, } = select$2P();
|
|
8778
|
+
const { selections: ListUserPreferenceRepresentation__selections, opaque: ListUserPreferenceRepresentation__opaque, } = select$2O();
|
|
8779
8779
|
return {
|
|
8780
8780
|
kind: 'Fragment',
|
|
8781
8781
|
version: VERSION$2g,
|
|
@@ -8939,7 +8939,7 @@ function validate$1z(obj, path = 'RecordTypeInfoRepresentation') {
|
|
|
8939
8939
|
})();
|
|
8940
8940
|
return v_error === undefined ? null : v_error;
|
|
8941
8941
|
}
|
|
8942
|
-
const select$
|
|
8942
|
+
const select$2M = function RecordTypeInfoRepresentationSelect() {
|
|
8943
8943
|
return {
|
|
8944
8944
|
kind: 'Fragment',
|
|
8945
8945
|
version: VERSION$2f,
|
|
@@ -9106,7 +9106,7 @@ function normalize$M(input, existing, path, luvio, store, timestamp) {
|
|
|
9106
9106
|
}
|
|
9107
9107
|
return input;
|
|
9108
9108
|
}
|
|
9109
|
-
const select$
|
|
9109
|
+
const select$2L = function FieldValueRepresentationSelect() {
|
|
9110
9110
|
return {
|
|
9111
9111
|
kind: 'Fragment',
|
|
9112
9112
|
version: VERSION$2e,
|
|
@@ -9120,7 +9120,7 @@ const select$2K = function FieldValueRepresentationSelect() {
|
|
|
9120
9120
|
name: 'value',
|
|
9121
9121
|
kind: 'Link',
|
|
9122
9122
|
nullable: true,
|
|
9123
|
-
fragment: select$
|
|
9123
|
+
fragment: select$2J()
|
|
9124
9124
|
}
|
|
9125
9125
|
]
|
|
9126
9126
|
};
|
|
@@ -9401,7 +9401,7 @@ function normalize$L(input, existing, path, luvio, store, timestamp) {
|
|
|
9401
9401
|
}
|
|
9402
9402
|
return input;
|
|
9403
9403
|
}
|
|
9404
|
-
const select$
|
|
9404
|
+
const select$2K = function RecordCollectionRepresentationSelect() {
|
|
9405
9405
|
return {
|
|
9406
9406
|
kind: 'Fragment',
|
|
9407
9407
|
version: VERSION$2d,
|
|
@@ -9439,7 +9439,7 @@ const select$2J = function RecordCollectionRepresentationSelect() {
|
|
|
9439
9439
|
name: 'records',
|
|
9440
9440
|
kind: 'Link',
|
|
9441
9441
|
plural: true,
|
|
9442
|
-
fragment: select$
|
|
9442
|
+
fragment: select$2J()
|
|
9443
9443
|
}
|
|
9444
9444
|
]
|
|
9445
9445
|
};
|
|
@@ -9790,8 +9790,8 @@ function dynamicNormalize$5(ingestParams) {
|
|
|
9790
9790
|
return input;
|
|
9791
9791
|
};
|
|
9792
9792
|
}
|
|
9793
|
-
const select$
|
|
9794
|
-
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$
|
|
9793
|
+
const select$2J = function RecordRepresentationSelect() {
|
|
9794
|
+
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2M();
|
|
9795
9795
|
return {
|
|
9796
9796
|
kind: 'Fragment',
|
|
9797
9797
|
version: VERSION$2c,
|
|
@@ -9808,13 +9808,13 @@ const select$2I = function RecordRepresentationSelect() {
|
|
|
9808
9808
|
name: 'childRelationships',
|
|
9809
9809
|
kind: 'Link',
|
|
9810
9810
|
map: true,
|
|
9811
|
-
fragment: select$
|
|
9811
|
+
fragment: select$2K()
|
|
9812
9812
|
},
|
|
9813
9813
|
{
|
|
9814
9814
|
name: 'fields',
|
|
9815
9815
|
kind: 'Link',
|
|
9816
9816
|
map: true,
|
|
9817
|
-
fragment: select$
|
|
9817
|
+
fragment: select$2L()
|
|
9818
9818
|
},
|
|
9819
9819
|
{
|
|
9820
9820
|
name: 'id',
|
|
@@ -9850,15 +9850,15 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
|
|
|
9850
9850
|
name: 'childRelationships',
|
|
9851
9851
|
kind: 'Link',
|
|
9852
9852
|
map: true,
|
|
9853
|
-
fragment: select$
|
|
9853
|
+
fragment: select$2K()
|
|
9854
9854
|
} : params.childRelationships;
|
|
9855
9855
|
const fieldsPathSelection = params.fields === undefined ? {
|
|
9856
9856
|
name: 'fields',
|
|
9857
9857
|
kind: 'Link',
|
|
9858
9858
|
map: true,
|
|
9859
|
-
fragment: select$
|
|
9859
|
+
fragment: select$2L()
|
|
9860
9860
|
} : params.fields;
|
|
9861
|
-
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$
|
|
9861
|
+
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2M();
|
|
9862
9862
|
return {
|
|
9863
9863
|
kind: 'Fragment',
|
|
9864
9864
|
version: VERSION$2c,
|
|
@@ -12274,7 +12274,7 @@ function mergeAndRefreshLowerVersionRecord(luvio, incoming, existing, incomingTr
|
|
|
12274
12274
|
};
|
|
12275
12275
|
}
|
|
12276
12276
|
else {
|
|
12277
|
-
buildNetworkSnapshot
|
|
12277
|
+
buildNetworkSnapshot$10(luvio, {
|
|
12278
12278
|
recordId: incoming.id,
|
|
12279
12279
|
optionalFields: convertTrieToFields(incomingTrackedFieldsTrieRoot),
|
|
12280
12280
|
});
|
|
@@ -12663,9 +12663,9 @@ function isSingleRecordRequest(urlParams) {
|
|
|
12663
12663
|
return hasOwnProperty.call(urlParams, 'recordId');
|
|
12664
12664
|
}
|
|
12665
12665
|
|
|
12666
|
-
const createResourceRequest$
|
|
12666
|
+
const createResourceRequest$15 = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
|
|
12667
12667
|
return {
|
|
12668
|
-
...createResourceRequest$
|
|
12668
|
+
...createResourceRequest$14(config),
|
|
12669
12669
|
fulfill: fulfill,
|
|
12670
12670
|
};
|
|
12671
12671
|
};
|
|
@@ -12675,10 +12675,10 @@ function keyBuilder$30(luvio, params) {
|
|
|
12675
12675
|
recordId: params.urlParams.recordId
|
|
12676
12676
|
});
|
|
12677
12677
|
}
|
|
12678
|
-
function getResponseCacheKeys$
|
|
12678
|
+
function getResponseCacheKeys$Y(storeKeyMap, luvio, resourceParams, response) {
|
|
12679
12679
|
getTypeCacheKeys$1T(storeKeyMap, luvio, response);
|
|
12680
12680
|
}
|
|
12681
|
-
function createResourceRequest$
|
|
12681
|
+
function createResourceRequest$14(config) {
|
|
12682
12682
|
const headers = {};
|
|
12683
12683
|
return {
|
|
12684
12684
|
baseUri: '/services/data/v59.0',
|
|
@@ -12758,7 +12758,7 @@ const oneOfConfigPropertiesIdentifier$1 = [
|
|
|
12758
12758
|
'fields',
|
|
12759
12759
|
'optionalFields'
|
|
12760
12760
|
];
|
|
12761
|
-
function createResourceParams$
|
|
12761
|
+
function createResourceParams$X(config) {
|
|
12762
12762
|
const resourceParams = {
|
|
12763
12763
|
urlParams: {
|
|
12764
12764
|
recordId: config.recordId
|
|
@@ -12769,7 +12769,7 @@ function createResourceParams$W(config) {
|
|
|
12769
12769
|
};
|
|
12770
12770
|
return resourceParams;
|
|
12771
12771
|
}
|
|
12772
|
-
function coerceConfig$
|
|
12772
|
+
function coerceConfig$C(config) {
|
|
12773
12773
|
const coercedConfig = {};
|
|
12774
12774
|
const recordId = getRecordId18(config.recordId);
|
|
12775
12775
|
if (recordId !== undefined) {
|
|
@@ -12809,7 +12809,7 @@ function coerceConfig$B(config) {
|
|
|
12809
12809
|
}
|
|
12810
12810
|
return coercedConfig;
|
|
12811
12811
|
}
|
|
12812
|
-
function typeCheckConfig$
|
|
12812
|
+
function typeCheckConfig$11(untrustedConfig) {
|
|
12813
12813
|
const config = {};
|
|
12814
12814
|
const untrustedConfig_recordId = untrustedConfig.recordId;
|
|
12815
12815
|
if (typeof untrustedConfig_recordId === 'string') {
|
|
@@ -12891,15 +12891,15 @@ function typeCheckConfig$10(untrustedConfig) {
|
|
|
12891
12891
|
}
|
|
12892
12892
|
return config;
|
|
12893
12893
|
}
|
|
12894
|
-
function validateAdapterConfig$
|
|
12894
|
+
function validateAdapterConfig$12(untrustedConfig, configPropertyNames) {
|
|
12895
12895
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
12896
12896
|
return null;
|
|
12897
12897
|
}
|
|
12898
12898
|
if (process.env.NODE_ENV !== 'production') {
|
|
12899
12899
|
validateConfig(untrustedConfig, configPropertyNames, oneOfConfigPropertiesIdentifier$1);
|
|
12900
12900
|
}
|
|
12901
|
-
const coercedConfig = coerceConfig$
|
|
12902
|
-
const config = typeCheckConfig$
|
|
12901
|
+
const coercedConfig = coerceConfig$C(untrustedConfig);
|
|
12902
|
+
const config = typeCheckConfig$11(coercedConfig);
|
|
12903
12903
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
12904
12904
|
return null;
|
|
12905
12905
|
}
|
|
@@ -12927,27 +12927,27 @@ function buildRecordSelector(luvio, recordId, fields, optionalFields) {
|
|
|
12927
12927
|
function buildSnapshotRefresh$5(luvio, config) {
|
|
12928
12928
|
return {
|
|
12929
12929
|
config,
|
|
12930
|
-
resolve: () => buildNetworkSnapshot
|
|
12930
|
+
resolve: () => buildNetworkSnapshot$10(luvio, config),
|
|
12931
12931
|
};
|
|
12932
12932
|
}
|
|
12933
12933
|
function prepareRequest$6(luvio, config) {
|
|
12934
12934
|
const { recordId, fields } = config;
|
|
12935
12935
|
// Should this go into the coersion logic?
|
|
12936
|
-
const key = keyBuilder$30(luvio, createResourceParams$
|
|
12936
|
+
const key = keyBuilder$30(luvio, createResourceParams$X(config));
|
|
12937
12937
|
const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
|
|
12938
12938
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
|
|
12939
12939
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
12940
12940
|
}, config.optionalFields);
|
|
12941
12941
|
const optionalFields = fields === undefined ? allTrackedFields : difference(allTrackedFields, fields);
|
|
12942
|
-
const resourceParams = createResourceParams$
|
|
12942
|
+
const resourceParams = createResourceParams$X({
|
|
12943
12943
|
recordId,
|
|
12944
12944
|
fields,
|
|
12945
12945
|
optionalFields: optionalFields.length > 0 ? optionalFields : undefined,
|
|
12946
12946
|
});
|
|
12947
|
-
const request = createResourceRequest$
|
|
12947
|
+
const request = createResourceRequest$15(resourceParams);
|
|
12948
12948
|
return { request, key, allTrackedFields, resourceParams };
|
|
12949
12949
|
}
|
|
12950
|
-
function ingestSuccess$
|
|
12950
|
+
function ingestSuccess$N(luvio, config, key, allTrackedFields, response, serverRequestCount) {
|
|
12951
12951
|
const { body } = response;
|
|
12952
12952
|
const fields = config.fields === undefined ? [] : config.fields;
|
|
12953
12953
|
const optionalFields = config.optionalFields === undefined ? [] : config.optionalFields;
|
|
@@ -12961,7 +12961,7 @@ function ingestSuccess$M(luvio, config, key, allTrackedFields, response, serverR
|
|
|
12961
12961
|
return luvio.storeLookup(buildRecordSelector(luvio, config.recordId, fields, optionalFields), buildSnapshotRefresh$5(luvio, config));
|
|
12962
12962
|
}
|
|
12963
12963
|
function onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount) {
|
|
12964
|
-
const snapshot = ingestSuccess$
|
|
12964
|
+
const snapshot = ingestSuccess$N(luvio, config, key, allTrackedFields, response, serverRequestCount);
|
|
12965
12965
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
12966
12966
|
}
|
|
12967
12967
|
function ingestError$K(luvio, config, key, err) {
|
|
@@ -12973,7 +12973,7 @@ function onResourceError(luvio, config, key, err) {
|
|
|
12973
12973
|
const errorSnapshot = ingestError$K(luvio, config, key, err);
|
|
12974
12974
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
12975
12975
|
}
|
|
12976
|
-
function buildNetworkSnapshot
|
|
12976
|
+
function buildNetworkSnapshot$10(luvio, config, serverRequestCount = 0, options) {
|
|
12977
12977
|
const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
|
|
12978
12978
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
12979
12979
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -12990,7 +12990,7 @@ function buildNetworkSnapshot$$(luvio, config, serverRequestCount = 0, options)
|
|
|
12990
12990
|
return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
|
|
12991
12991
|
}, () => {
|
|
12992
12992
|
const cache = new StoreKeyMap();
|
|
12993
|
-
getResponseCacheKeys$
|
|
12993
|
+
getResponseCacheKeys$Y(cache, luvio, resourceParams, response.body);
|
|
12994
12994
|
return cache;
|
|
12995
12995
|
});
|
|
12996
12996
|
}, (err) => {
|
|
@@ -13027,7 +13027,7 @@ function buildNetworkSnapshotCachePolicy$P(context, coercedAdapterRequestContext
|
|
|
13027
13027
|
priority: networkPriority,
|
|
13028
13028
|
};
|
|
13029
13029
|
}
|
|
13030
|
-
return buildNetworkSnapshot
|
|
13030
|
+
return buildNetworkSnapshot$10(luvio, config, 0, dispatchOptions);
|
|
13031
13031
|
}
|
|
13032
13032
|
function getRecordByFields(luvio, config, requestContext) {
|
|
13033
13033
|
return luvio.applyCachePolicy(requestContext || {}, { config, luvio }, buildCachedSnapshotCachePolicy$O, buildNetworkSnapshotCachePolicy$P);
|
|
@@ -13062,7 +13062,7 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
|
|
|
13062
13062
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
|
|
13063
13063
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
13064
13064
|
}, childResourceParams.queryParams.optionalFields);
|
|
13065
|
-
const childSnapshot = ingestSuccess$
|
|
13065
|
+
const childSnapshot = ingestSuccess$N(luvio, {
|
|
13066
13066
|
recordId: childResourceParams.urlParams.recordId,
|
|
13067
13067
|
fields: childResourceParams.queryParams.fields,
|
|
13068
13068
|
optionalFields: childResourceParams.queryParams.optionalFields,
|
|
@@ -13261,7 +13261,7 @@ function createChildResourceParams$9(resourceParams) {
|
|
|
13261
13261
|
function keyBuilder$2$(luvio, params) {
|
|
13262
13262
|
return keyPrefix + '::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 + ')';
|
|
13263
13263
|
}
|
|
13264
|
-
function getResponseCacheKeys$
|
|
13264
|
+
function getResponseCacheKeys$X(keys, luvio, resourceParams, response) {
|
|
13265
13265
|
const childEnvelopes = response.results;
|
|
13266
13266
|
const childResourceParamsArray = createChildResourceParams$9(resourceParams);
|
|
13267
13267
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -13275,7 +13275,7 @@ function getResponseCacheKeys$W(keys, luvio, resourceParams, response) {
|
|
|
13275
13275
|
const childResult = childEnvelopes[index];
|
|
13276
13276
|
const { statusCode: childStatusCode, result: childBody } = childResult;
|
|
13277
13277
|
if (childStatusCode === 200) {
|
|
13278
|
-
getResponseCacheKeys$
|
|
13278
|
+
getResponseCacheKeys$Y(keys, luvio, childResourceParams, childBody);
|
|
13279
13279
|
}
|
|
13280
13280
|
else if (childStatusCode === 404) {
|
|
13281
13281
|
const childKey = keyBuilder$30(luvio, childResourceParams);
|
|
@@ -13293,7 +13293,7 @@ function ingestError$J(luvio, params, error, snapshotRefresh) {
|
|
|
13293
13293
|
luvio.storeIngestError(key, errorSnapshot);
|
|
13294
13294
|
return errorSnapshot;
|
|
13295
13295
|
}
|
|
13296
|
-
function createResourceRequest$
|
|
13296
|
+
function createResourceRequest$13(config) {
|
|
13297
13297
|
const headers = {};
|
|
13298
13298
|
return {
|
|
13299
13299
|
baseUri: '/services/data/v59.0',
|
|
@@ -13307,7 +13307,7 @@ function createResourceRequest$12(config) {
|
|
|
13307
13307
|
};
|
|
13308
13308
|
}
|
|
13309
13309
|
|
|
13310
|
-
function createResourceParams$
|
|
13310
|
+
function createResourceParams$W(config) {
|
|
13311
13311
|
const { records: configRecords } = config;
|
|
13312
13312
|
const recordIds = [];
|
|
13313
13313
|
const resourceConfigFields = [];
|
|
@@ -13361,7 +13361,7 @@ function createChildResourceParams$8(config) {
|
|
|
13361
13361
|
|
|
13362
13362
|
function adapterFragment$H(luvio, config) {
|
|
13363
13363
|
const childResources = createChildResourceParams$8(config);
|
|
13364
|
-
const resourceParams = createResourceParams$
|
|
13364
|
+
const resourceParams = createResourceParams$W(config);
|
|
13365
13365
|
return selectChildResourceParams$7(luvio, childResources, resourceParams);
|
|
13366
13366
|
}
|
|
13367
13367
|
|
|
@@ -13391,7 +13391,7 @@ function onFetchResponseSuccess$L(luvio, config, resourceParams, response, serve
|
|
|
13391
13391
|
},
|
|
13392
13392
|
refresh: {
|
|
13393
13393
|
config,
|
|
13394
|
-
resolve: () => buildNetworkSnapshot
|
|
13394
|
+
resolve: () => buildNetworkSnapshot$$(luvio, config, serverRequestCount, snapshotRefreshOptions),
|
|
13395
13395
|
},
|
|
13396
13396
|
variables: {},
|
|
13397
13397
|
};
|
|
@@ -13401,17 +13401,17 @@ function onFetchResponseSuccess$L(luvio, config, resourceParams, response, serve
|
|
|
13401
13401
|
function onFetchResponseError$M(luvio, config, resourceParams, response) {
|
|
13402
13402
|
const snapshot = ingestError$J(luvio, resourceParams, response, {
|
|
13403
13403
|
config,
|
|
13404
|
-
resolve: () => buildNetworkSnapshot
|
|
13404
|
+
resolve: () => buildNetworkSnapshot$$(luvio, config, 0, snapshotRefreshOptions),
|
|
13405
13405
|
});
|
|
13406
13406
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
13407
13407
|
}
|
|
13408
|
-
function buildNetworkSnapshot
|
|
13409
|
-
const resourceParams = createResourceParams$
|
|
13410
|
-
const request = createResourceRequest$
|
|
13408
|
+
function buildNetworkSnapshot$$(luvio, config, serverRequestCount = 0, options) {
|
|
13409
|
+
const resourceParams = createResourceParams$W(config);
|
|
13410
|
+
const request = createResourceRequest$13(resourceParams);
|
|
13411
13411
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
13412
13412
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$L(luvio, config, resourceParams, response, serverRequestCount + 1), () => {
|
|
13413
13413
|
const cache = new StoreKeyMap();
|
|
13414
|
-
getResponseCacheKeys$
|
|
13414
|
+
getResponseCacheKeys$X(cache, luvio, resourceParams, response.body);
|
|
13415
13415
|
return cache;
|
|
13416
13416
|
});
|
|
13417
13417
|
}, (response) => {
|
|
@@ -13432,7 +13432,7 @@ function resolveConflict(luvio, map) {
|
|
|
13432
13432
|
recordId,
|
|
13433
13433
|
optionalFields: convertTrieToFields(map.conflicts[recordId].trackedFields),
|
|
13434
13434
|
};
|
|
13435
|
-
buildNetworkSnapshot
|
|
13435
|
+
buildNetworkSnapshot$10(luvio, config, map.serverRequestCount);
|
|
13436
13436
|
}
|
|
13437
13437
|
else {
|
|
13438
13438
|
const records = reduce.call(ids, (acc, id) => {
|
|
@@ -13444,7 +13444,7 @@ function resolveConflict(luvio, map) {
|
|
|
13444
13444
|
return acc;
|
|
13445
13445
|
}, []);
|
|
13446
13446
|
const config = { records };
|
|
13447
|
-
buildNetworkSnapshot
|
|
13447
|
+
buildNetworkSnapshot$$(luvio, config, map.serverRequestCount);
|
|
13448
13448
|
}
|
|
13449
13449
|
}
|
|
13450
13450
|
|
|
@@ -13949,8 +13949,8 @@ function normalize$J(input, existing, path, luvio, store, timestamp) {
|
|
|
13949
13949
|
}
|
|
13950
13950
|
return input;
|
|
13951
13951
|
}
|
|
13952
|
-
const select$
|
|
13953
|
-
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$
|
|
13952
|
+
const select$2I = function ListRecordCollectionRepresentationSelect(paginationParams) {
|
|
13953
|
+
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$2T();
|
|
13954
13954
|
return {
|
|
13955
13955
|
kind: 'Fragment',
|
|
13956
13956
|
reader: true,
|
|
@@ -13975,7 +13975,7 @@ const select$2H = function ListRecordCollectionRepresentationSelect(paginationPa
|
|
|
13975
13975
|
reader.readSingleLink(i, {
|
|
13976
13976
|
name: 'records',
|
|
13977
13977
|
kind: 'Link',
|
|
13978
|
-
fragment: select$
|
|
13978
|
+
fragment: select$2J()
|
|
13979
13979
|
}, itemsSource, allSink, i - startOffset);
|
|
13980
13980
|
if (reader.getIsDataMissing() === false) {
|
|
13981
13981
|
itemsSink[i - startOffset] = allSink[i - startOffset];
|
|
@@ -14062,9 +14062,9 @@ const dynamicSelect$7 = function dynamicListRecordCollectionRepresentationSelect
|
|
|
14062
14062
|
const recordsPathSelection = params.records === undefined ? {
|
|
14063
14063
|
name: 'records',
|
|
14064
14064
|
kind: 'Link',
|
|
14065
|
-
fragment: select$
|
|
14065
|
+
fragment: select$2J()
|
|
14066
14066
|
} : params.records;
|
|
14067
|
-
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$
|
|
14067
|
+
const { selections: ListReferenceRepresentation__selections, opaque: ListReferenceRepresentation__opaque, } = select$2T();
|
|
14068
14068
|
return {
|
|
14069
14069
|
kind: 'Fragment',
|
|
14070
14070
|
reader: true,
|
|
@@ -14400,12 +14400,12 @@ const dynamicSelect$6 = function dynamicListUiRepresentationSelect(params, pagin
|
|
|
14400
14400
|
const infoPathSelection = params.info === undefined ? {
|
|
14401
14401
|
name: 'info',
|
|
14402
14402
|
kind: 'Link',
|
|
14403
|
-
fragment: select$
|
|
14403
|
+
fragment: select$2N()
|
|
14404
14404
|
} : params.info;
|
|
14405
14405
|
const recordsPathSelection = params.records === undefined ? {
|
|
14406
14406
|
name: 'records',
|
|
14407
14407
|
kind: 'Link',
|
|
14408
|
-
fragment: select$
|
|
14408
|
+
fragment: select$2I(paginationParams)
|
|
14409
14409
|
} : params.records;
|
|
14410
14410
|
return {
|
|
14411
14411
|
kind: 'Fragment',
|
|
@@ -14486,7 +14486,7 @@ function createPaginationParams$5(params) {
|
|
|
14486
14486
|
pageSize: queryParams.pageSize === undefined ? 50 : queryParams.pageSize
|
|
14487
14487
|
};
|
|
14488
14488
|
}
|
|
14489
|
-
function createResourceRequest$
|
|
14489
|
+
function createResourceRequest$12(config) {
|
|
14490
14490
|
const headers = {};
|
|
14491
14491
|
return {
|
|
14492
14492
|
baseUri: '/services/data/v59.0',
|
|
@@ -14535,7 +14535,7 @@ const getListUiByApiName_ConfigPropertyNames = {
|
|
|
14535
14535
|
optional: ['fields', 'optionalFields', 'pageSize', 'pageToken', 'sortBy']
|
|
14536
14536
|
}
|
|
14537
14537
|
};
|
|
14538
|
-
function createResourceParams$
|
|
14538
|
+
function createResourceParams$V(config) {
|
|
14539
14539
|
const resourceParams = {
|
|
14540
14540
|
urlParams: {
|
|
14541
14541
|
listViewApiName: config.listViewApiName, objectApiName: config.objectApiName
|
|
@@ -14546,7 +14546,7 @@ function createResourceParams$U(config) {
|
|
|
14546
14546
|
};
|
|
14547
14547
|
return resourceParams;
|
|
14548
14548
|
}
|
|
14549
|
-
function coerceConfig$
|
|
14549
|
+
function coerceConfig$B(config) {
|
|
14550
14550
|
const coercedConfig = {};
|
|
14551
14551
|
const listViewApiName = config.listViewApiName;
|
|
14552
14552
|
if (listViewApiName !== undefined) {
|
|
@@ -14578,7 +14578,7 @@ function coerceConfig$A(config) {
|
|
|
14578
14578
|
}
|
|
14579
14579
|
return coercedConfig;
|
|
14580
14580
|
}
|
|
14581
|
-
function typeCheckConfig
|
|
14581
|
+
function typeCheckConfig$10(untrustedConfig) {
|
|
14582
14582
|
const config = {};
|
|
14583
14583
|
const untrustedConfig_listViewApiName = untrustedConfig.listViewApiName;
|
|
14584
14584
|
if (typeof untrustedConfig_listViewApiName === 'string') {
|
|
@@ -14631,15 +14631,15 @@ function typeCheckConfig$$(untrustedConfig) {
|
|
|
14631
14631
|
}
|
|
14632
14632
|
return config;
|
|
14633
14633
|
}
|
|
14634
|
-
function validateAdapterConfig$
|
|
14634
|
+
function validateAdapterConfig$11(untrustedConfig, configPropertyNames) {
|
|
14635
14635
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
14636
14636
|
return null;
|
|
14637
14637
|
}
|
|
14638
14638
|
if (process.env.NODE_ENV !== 'production') {
|
|
14639
14639
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
14640
14640
|
}
|
|
14641
|
-
const coercedConfig = coerceConfig$
|
|
14642
|
-
const config = typeCheckConfig
|
|
14641
|
+
const coercedConfig = coerceConfig$B(untrustedConfig);
|
|
14642
|
+
const config = typeCheckConfig$10(coercedConfig);
|
|
14643
14643
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
14644
14644
|
return null;
|
|
14645
14645
|
}
|
|
@@ -14653,7 +14653,7 @@ function createPaginationParams$4(params) {
|
|
|
14653
14653
|
pageSize: queryParams.pageSize === undefined ? 50 : queryParams.pageSize
|
|
14654
14654
|
};
|
|
14655
14655
|
}
|
|
14656
|
-
function createResourceRequest$
|
|
14656
|
+
function createResourceRequest$11(config) {
|
|
14657
14657
|
const headers = {};
|
|
14658
14658
|
return {
|
|
14659
14659
|
baseUri: '/services/data/v59.0',
|
|
@@ -14674,7 +14674,7 @@ const getListUiByListViewId_ConfigPropertyNames = {
|
|
|
14674
14674
|
optional: ['fields', 'optionalFields', 'pageSize', 'pageToken', 'sortBy']
|
|
14675
14675
|
}
|
|
14676
14676
|
};
|
|
14677
|
-
function createResourceParams$
|
|
14677
|
+
function createResourceParams$U(config) {
|
|
14678
14678
|
const resourceParams = {
|
|
14679
14679
|
urlParams: {
|
|
14680
14680
|
listViewId: config.listViewId
|
|
@@ -14685,7 +14685,7 @@ function createResourceParams$T(config) {
|
|
|
14685
14685
|
};
|
|
14686
14686
|
return resourceParams;
|
|
14687
14687
|
}
|
|
14688
|
-
function coerceConfig$
|
|
14688
|
+
function coerceConfig$A(config) {
|
|
14689
14689
|
const coercedConfig = {};
|
|
14690
14690
|
const listViewId = config.listViewId;
|
|
14691
14691
|
if (listViewId !== undefined) {
|
|
@@ -14713,7 +14713,7 @@ function coerceConfig$z(config) {
|
|
|
14713
14713
|
}
|
|
14714
14714
|
return coercedConfig;
|
|
14715
14715
|
}
|
|
14716
|
-
function typeCheckConfig
|
|
14716
|
+
function typeCheckConfig$$(untrustedConfig) {
|
|
14717
14717
|
const config = {};
|
|
14718
14718
|
const untrustedConfig_listViewId = untrustedConfig.listViewId;
|
|
14719
14719
|
if (typeof untrustedConfig_listViewId === 'string') {
|
|
@@ -14762,22 +14762,22 @@ function typeCheckConfig$_(untrustedConfig) {
|
|
|
14762
14762
|
}
|
|
14763
14763
|
return config;
|
|
14764
14764
|
}
|
|
14765
|
-
function validateAdapterConfig
|
|
14765
|
+
function validateAdapterConfig$10(untrustedConfig, configPropertyNames) {
|
|
14766
14766
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
14767
14767
|
return null;
|
|
14768
14768
|
}
|
|
14769
14769
|
if (process.env.NODE_ENV !== 'production') {
|
|
14770
14770
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
14771
14771
|
}
|
|
14772
|
-
const coercedConfig = coerceConfig$
|
|
14773
|
-
const config = typeCheckConfig
|
|
14772
|
+
const coercedConfig = coerceConfig$A(untrustedConfig);
|
|
14773
|
+
const config = typeCheckConfig$$(coercedConfig);
|
|
14774
14774
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
14775
14775
|
return null;
|
|
14776
14776
|
}
|
|
14777
14777
|
return config;
|
|
14778
14778
|
}
|
|
14779
14779
|
|
|
14780
|
-
function createResourceRequest
|
|
14780
|
+
function createResourceRequest$10(config) {
|
|
14781
14781
|
const headers = {};
|
|
14782
14782
|
return {
|
|
14783
14783
|
baseUri: '/services/data/v59.0',
|
|
@@ -14834,11 +14834,11 @@ function getListReference(query, context) {
|
|
|
14834
14834
|
/**
|
|
14835
14835
|
* Reader selections to copy a list info
|
|
14836
14836
|
*/
|
|
14837
|
-
const LIST_INFO_SELECTIONS = select$
|
|
14837
|
+
const LIST_INFO_SELECTIONS = select$2N().selections;
|
|
14838
14838
|
/**
|
|
14839
14839
|
* List info private memebers
|
|
14840
14840
|
*/
|
|
14841
|
-
select$
|
|
14841
|
+
select$2N().private;
|
|
14842
14842
|
const LIST_INFO_SELECTIONS_ETAG = [
|
|
14843
14843
|
...LIST_INFO_SELECTIONS,
|
|
14844
14844
|
{ kind: 'Scalar', name: 'eTag' },
|
|
@@ -15051,7 +15051,7 @@ function keyBuilder$2U(luvio, params) {
|
|
|
15051
15051
|
});
|
|
15052
15052
|
}
|
|
15053
15053
|
|
|
15054
|
-
function select$
|
|
15054
|
+
function select$2E(luvio, params) {
|
|
15055
15055
|
const { fields = [], optionalFields = [] } = params.queryParams;
|
|
15056
15056
|
return dynamicSelect$7({
|
|
15057
15057
|
records: {
|
|
@@ -15066,7 +15066,7 @@ function select$2D(luvio, params) {
|
|
|
15066
15066
|
},
|
|
15067
15067
|
}, createPaginationParams$3(params));
|
|
15068
15068
|
}
|
|
15069
|
-
function ingestSuccess$
|
|
15069
|
+
function ingestSuccess$K(luvio, resourceParams, response, snapshotRefresh) {
|
|
15070
15070
|
const { body } = response;
|
|
15071
15071
|
const key = keyBuilder$2U(luvio, resourceParams);
|
|
15072
15072
|
luvio.storeIngest(key, ingest$1N, body);
|
|
@@ -15077,7 +15077,7 @@ function ingestSuccess$J(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
15077
15077
|
}
|
|
15078
15078
|
const snapshot = luvio.storeLookup({
|
|
15079
15079
|
recordId: key,
|
|
15080
|
-
node: select$
|
|
15080
|
+
node: select$2E(luvio, resourceParams),
|
|
15081
15081
|
variables: {},
|
|
15082
15082
|
}, snapshotRefresh);
|
|
15083
15083
|
return snapshot;
|
|
@@ -15101,7 +15101,7 @@ function createPaginationParams$3(params) {
|
|
|
15101
15101
|
pageSize: queryParams.pageSize === undefined ? 50 : queryParams.pageSize
|
|
15102
15102
|
};
|
|
15103
15103
|
}
|
|
15104
|
-
function getResponseCacheKeys$
|
|
15104
|
+
function getResponseCacheKeys$U(storeKeyMap, luvio, resourceParams, response) {
|
|
15105
15105
|
getTypeCacheKeys$1Q(storeKeyMap, luvio, response);
|
|
15106
15106
|
}
|
|
15107
15107
|
function ingestError$G(luvio, params, error, snapshotRefresh) {
|
|
@@ -15116,7 +15116,7 @@ function ingestError$G(luvio, params, error, snapshotRefresh) {
|
|
|
15116
15116
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
15117
15117
|
return errorSnapshot;
|
|
15118
15118
|
}
|
|
15119
|
-
function createResourceRequest
|
|
15119
|
+
function createResourceRequest$$(config) {
|
|
15120
15120
|
const headers = {};
|
|
15121
15121
|
return {
|
|
15122
15122
|
baseUri: '/services/data/v59.0',
|
|
@@ -15246,7 +15246,7 @@ function keyBuilderFromType$u(luvio, object) {
|
|
|
15246
15246
|
function normalize$H(input, existing, path, luvio, store, timestamp) {
|
|
15247
15247
|
return input;
|
|
15248
15248
|
}
|
|
15249
|
-
const select$
|
|
15249
|
+
const select$2D = function ListViewSummaryRepresentationSelect() {
|
|
15250
15250
|
return {
|
|
15251
15251
|
kind: 'Fragment',
|
|
15252
15252
|
version: VERSION$28,
|
|
@@ -15551,7 +15551,7 @@ function normalize$G(input, existing, path, luvio, store, timestamp) {
|
|
|
15551
15551
|
}
|
|
15552
15552
|
return input;
|
|
15553
15553
|
}
|
|
15554
|
-
const select$
|
|
15554
|
+
const select$2C = function ListViewSummaryCollectionRepresentationSelect(paginationParams) {
|
|
15555
15555
|
return {
|
|
15556
15556
|
kind: 'Fragment',
|
|
15557
15557
|
reader: true,
|
|
@@ -15576,7 +15576,7 @@ const select$2B = function ListViewSummaryCollectionRepresentationSelect(paginat
|
|
|
15576
15576
|
reader.readSingleLink(i, {
|
|
15577
15577
|
name: 'lists',
|
|
15578
15578
|
kind: 'Link',
|
|
15579
|
-
fragment: select$
|
|
15579
|
+
fragment: select$2D()
|
|
15580
15580
|
}, itemsSource, allSink, i - startOffset);
|
|
15581
15581
|
if (reader.getIsDataMissing() === false) {
|
|
15582
15582
|
itemsSink[i - startOffset] = allSink[i - startOffset];
|
|
@@ -15818,9 +15818,9 @@ function createPaginationParams$2(params) {
|
|
|
15818
15818
|
pageSize: queryParams.pageSize === undefined ? 20 : queryParams.pageSize
|
|
15819
15819
|
};
|
|
15820
15820
|
}
|
|
15821
|
-
function select$
|
|
15821
|
+
function select$2B(luvio, params) {
|
|
15822
15822
|
const paginationParams = createPaginationParams$2(params);
|
|
15823
|
-
return select$
|
|
15823
|
+
return select$2C(paginationParams);
|
|
15824
15824
|
}
|
|
15825
15825
|
function keyBuilder$2R(luvio, params) {
|
|
15826
15826
|
return keyBuilder$2S(luvio, {
|
|
@@ -15829,16 +15829,16 @@ function keyBuilder$2R(luvio, params) {
|
|
|
15829
15829
|
recentListsOnly: params.queryParams.recentListsOnly || false
|
|
15830
15830
|
});
|
|
15831
15831
|
}
|
|
15832
|
-
function getResponseCacheKeys$
|
|
15832
|
+
function getResponseCacheKeys$T(storeKeyMap, luvio, resourceParams, response) {
|
|
15833
15833
|
getTypeCacheKeys$1N(storeKeyMap, luvio, response);
|
|
15834
15834
|
}
|
|
15835
|
-
function ingestSuccess$
|
|
15835
|
+
function ingestSuccess$J(luvio, resourceParams, response, snapshotRefresh) {
|
|
15836
15836
|
const { body } = response;
|
|
15837
15837
|
const key = keyBuilder$2R(luvio, resourceParams);
|
|
15838
15838
|
luvio.storeIngest(key, ingest$1K, body);
|
|
15839
15839
|
const snapshot = luvio.storeLookup({
|
|
15840
15840
|
recordId: key,
|
|
15841
|
-
node: select$
|
|
15841
|
+
node: select$2B(luvio, resourceParams),
|
|
15842
15842
|
variables: {},
|
|
15843
15843
|
}, snapshotRefresh);
|
|
15844
15844
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -15855,7 +15855,7 @@ function ingestError$F(luvio, params, error, snapshotRefresh) {
|
|
|
15855
15855
|
luvio.storeIngestError(key, errorSnapshot);
|
|
15856
15856
|
return errorSnapshot;
|
|
15857
15857
|
}
|
|
15858
|
-
function createResourceRequest$
|
|
15858
|
+
function createResourceRequest$_(config) {
|
|
15859
15859
|
const headers = {};
|
|
15860
15860
|
return {
|
|
15861
15861
|
baseUri: '/services/data/v59.0',
|
|
@@ -15876,7 +15876,7 @@ const getListViewSummaryCollection_ConfigPropertyNames = {
|
|
|
15876
15876
|
optional: ['pageSize', 'pageToken', 'q', 'recentListsOnly']
|
|
15877
15877
|
}
|
|
15878
15878
|
};
|
|
15879
|
-
function createResourceParams$
|
|
15879
|
+
function createResourceParams$T(config) {
|
|
15880
15880
|
const resourceParams = {
|
|
15881
15881
|
urlParams: {
|
|
15882
15882
|
objectApiName: config.objectApiName
|
|
@@ -15887,7 +15887,7 @@ function createResourceParams$S(config) {
|
|
|
15887
15887
|
};
|
|
15888
15888
|
return resourceParams;
|
|
15889
15889
|
}
|
|
15890
|
-
function coerceConfig$
|
|
15890
|
+
function coerceConfig$z(config) {
|
|
15891
15891
|
const coercedConfig = {};
|
|
15892
15892
|
const objectApiName = getObjectApiName$1(config.objectApiName);
|
|
15893
15893
|
if (objectApiName !== undefined) {
|
|
@@ -15912,10 +15912,10 @@ function coerceConfig$y(config) {
|
|
|
15912
15912
|
return coercedConfig;
|
|
15913
15913
|
}
|
|
15914
15914
|
function keyBuilder$2Q(luvio, config) {
|
|
15915
|
-
const resourceParams = createResourceParams$
|
|
15915
|
+
const resourceParams = createResourceParams$T(config);
|
|
15916
15916
|
return keyBuilder$2R(luvio, resourceParams);
|
|
15917
15917
|
}
|
|
15918
|
-
function typeCheckConfig$
|
|
15918
|
+
function typeCheckConfig$_(untrustedConfig) {
|
|
15919
15919
|
const config = {};
|
|
15920
15920
|
const untrustedConfig_objectApiName = untrustedConfig.objectApiName;
|
|
15921
15921
|
if (typeof untrustedConfig_objectApiName === 'string') {
|
|
@@ -15939,47 +15939,47 @@ function typeCheckConfig$Z(untrustedConfig) {
|
|
|
15939
15939
|
}
|
|
15940
15940
|
return config;
|
|
15941
15941
|
}
|
|
15942
|
-
function validateAdapterConfig
|
|
15942
|
+
function validateAdapterConfig$$(untrustedConfig, configPropertyNames) {
|
|
15943
15943
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
15944
15944
|
return null;
|
|
15945
15945
|
}
|
|
15946
15946
|
if (process.env.NODE_ENV !== 'production') {
|
|
15947
15947
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
15948
15948
|
}
|
|
15949
|
-
const coercedConfig = coerceConfig$
|
|
15950
|
-
const config = typeCheckConfig$
|
|
15949
|
+
const coercedConfig = coerceConfig$z(untrustedConfig);
|
|
15950
|
+
const config = typeCheckConfig$_(coercedConfig);
|
|
15951
15951
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
15952
15952
|
return null;
|
|
15953
15953
|
}
|
|
15954
15954
|
return config;
|
|
15955
15955
|
}
|
|
15956
15956
|
function adapterFragment$E(luvio, config) {
|
|
15957
|
-
const resourceParams = createResourceParams$
|
|
15958
|
-
return select$
|
|
15957
|
+
const resourceParams = createResourceParams$T(config);
|
|
15958
|
+
return select$2B(luvio, resourceParams);
|
|
15959
15959
|
}
|
|
15960
15960
|
function onFetchResponseSuccess$I(luvio, config, resourceParams, response) {
|
|
15961
|
-
const snapshot = ingestSuccess$
|
|
15961
|
+
const snapshot = ingestSuccess$J(luvio, resourceParams, response, {
|
|
15962
15962
|
config,
|
|
15963
|
-
resolve: () => buildNetworkSnapshot$
|
|
15963
|
+
resolve: () => buildNetworkSnapshot$Y(luvio, config, snapshotRefreshOptions)
|
|
15964
15964
|
});
|
|
15965
15965
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15966
15966
|
}
|
|
15967
15967
|
function onFetchResponseError$J(luvio, config, resourceParams, response) {
|
|
15968
15968
|
const snapshot = ingestError$F(luvio, resourceParams, response, {
|
|
15969
15969
|
config,
|
|
15970
|
-
resolve: () => buildNetworkSnapshot$
|
|
15970
|
+
resolve: () => buildNetworkSnapshot$Y(luvio, config, snapshotRefreshOptions)
|
|
15971
15971
|
});
|
|
15972
15972
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
15973
15973
|
}
|
|
15974
15974
|
function prepareRequest$5(luvio, config, resourceParams, cacheSnapshot) {
|
|
15975
15975
|
if (cacheSnapshot === undefined) {
|
|
15976
|
-
return createResourceRequest$
|
|
15976
|
+
return createResourceRequest$_(resourceParams);
|
|
15977
15977
|
}
|
|
15978
15978
|
const [newToken, newPageSize] = minimizePaginationParams$1(luvio, resourceParams, cacheSnapshot);
|
|
15979
15979
|
if (newToken === undefined) {
|
|
15980
|
-
return createResourceRequest$
|
|
15980
|
+
return createResourceRequest$_(resourceParams);
|
|
15981
15981
|
}
|
|
15982
|
-
return createResourceRequest$
|
|
15982
|
+
return createResourceRequest$_(createResourceParams$T({
|
|
15983
15983
|
...config,
|
|
15984
15984
|
pageSize: newPageSize,
|
|
15985
15985
|
pageToken: newToken
|
|
@@ -16046,14 +16046,14 @@ function getPaginationMetadata$2(luvio, resourceParams) {
|
|
|
16046
16046
|
}
|
|
16047
16047
|
return node.data.__metadata;
|
|
16048
16048
|
}
|
|
16049
|
-
function buildNetworkSnapshot$
|
|
16050
|
-
const resourceParams = createResourceParams$
|
|
16049
|
+
function buildNetworkSnapshot$Y(luvio, config, options, cacheSnapshot) {
|
|
16050
|
+
const resourceParams = createResourceParams$T(config);
|
|
16051
16051
|
const request = prepareRequest$5(luvio, config, resourceParams, cacheSnapshot);
|
|
16052
16052
|
return luvio.dispatchResourceRequest(request, options)
|
|
16053
16053
|
.then((response) => {
|
|
16054
16054
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$I(luvio, config, resourceParams, response), () => {
|
|
16055
16055
|
const cache = new StoreKeyMap();
|
|
16056
|
-
getResponseCacheKeys$
|
|
16056
|
+
getResponseCacheKeys$T(cache, luvio, resourceParams, response.body);
|
|
16057
16057
|
return cache;
|
|
16058
16058
|
});
|
|
16059
16059
|
}, (response) => {
|
|
@@ -16075,7 +16075,7 @@ function buildNetworkSnapshotCachePolicy$M(context, coercedAdapterRequestContext
|
|
|
16075
16075
|
priority: networkPriority
|
|
16076
16076
|
};
|
|
16077
16077
|
}
|
|
16078
|
-
return buildNetworkSnapshot$
|
|
16078
|
+
return buildNetworkSnapshot$Y(luvio, config, dispatchOptions, cacheSnapshot);
|
|
16079
16079
|
}
|
|
16080
16080
|
function buildCachedSnapshotCachePolicy$L(context, storeLookup) {
|
|
16081
16081
|
const { luvio, config } = context;
|
|
@@ -16086,7 +16086,7 @@ function buildCachedSnapshotCachePolicy$L(context, storeLookup) {
|
|
|
16086
16086
|
};
|
|
16087
16087
|
const cacheSnapshot = storeLookup(selector, {
|
|
16088
16088
|
config,
|
|
16089
|
-
resolve: () => buildNetworkSnapshot$
|
|
16089
|
+
resolve: () => buildNetworkSnapshot$Y(luvio, config, snapshotRefreshOptions)
|
|
16090
16090
|
});
|
|
16091
16091
|
if (isUnfulfilledSnapshot$1(cacheSnapshot) && cacheSnapshot.data !== undefined) {
|
|
16092
16092
|
context.cacheSnapshot = cacheSnapshot;
|
|
@@ -16094,7 +16094,7 @@ function buildCachedSnapshotCachePolicy$L(context, storeLookup) {
|
|
|
16094
16094
|
return cacheSnapshot;
|
|
16095
16095
|
}
|
|
16096
16096
|
const getListViewSummaryCollectionAdapterFactory = (luvio) => function UiApi__getListViewSummaryCollection(untrustedConfig, requestContext) {
|
|
16097
|
-
const config = validateAdapterConfig
|
|
16097
|
+
const config = validateAdapterConfig$$(untrustedConfig, getListViewSummaryCollection_ConfigPropertyNames);
|
|
16098
16098
|
// Invalid or incomplete config
|
|
16099
16099
|
if (config === null) {
|
|
16100
16100
|
return null;
|
|
@@ -16118,7 +16118,7 @@ function keyBuilder$2P(luvio, params) {
|
|
|
16118
16118
|
sortBy: params.queryParams.sortBy || null
|
|
16119
16119
|
});
|
|
16120
16120
|
}
|
|
16121
|
-
function createResourceRequest$
|
|
16121
|
+
function createResourceRequest$Z(config) {
|
|
16122
16122
|
const headers = {};
|
|
16123
16123
|
return {
|
|
16124
16124
|
baseUri: '/services/data/v59.0',
|
|
@@ -16139,7 +16139,7 @@ const getMruListUi_ConfigPropertyNames = {
|
|
|
16139
16139
|
optional: ['fields', 'optionalFields', 'pageSize', 'pageToken', 'sortBy']
|
|
16140
16140
|
}
|
|
16141
16141
|
};
|
|
16142
|
-
function createResourceParams$
|
|
16142
|
+
function createResourceParams$S(config) {
|
|
16143
16143
|
const resourceParams = {
|
|
16144
16144
|
urlParams: {
|
|
16145
16145
|
objectApiName: config.objectApiName
|
|
@@ -16150,7 +16150,7 @@ function createResourceParams$R(config) {
|
|
|
16150
16150
|
};
|
|
16151
16151
|
return resourceParams;
|
|
16152
16152
|
}
|
|
16153
|
-
function coerceConfig$
|
|
16153
|
+
function coerceConfig$y(config) {
|
|
16154
16154
|
const coercedConfig = {};
|
|
16155
16155
|
const objectApiName = getObjectApiName$1(config.objectApiName);
|
|
16156
16156
|
if (objectApiName !== undefined) {
|
|
@@ -16178,7 +16178,7 @@ function coerceConfig$x(config) {
|
|
|
16178
16178
|
}
|
|
16179
16179
|
return coercedConfig;
|
|
16180
16180
|
}
|
|
16181
|
-
function typeCheckConfig$
|
|
16181
|
+
function typeCheckConfig$Z(untrustedConfig) {
|
|
16182
16182
|
const config = {};
|
|
16183
16183
|
const untrustedConfig_objectApiName = untrustedConfig.objectApiName;
|
|
16184
16184
|
if (typeof untrustedConfig_objectApiName === 'string') {
|
|
@@ -16227,22 +16227,22 @@ function typeCheckConfig$Y(untrustedConfig) {
|
|
|
16227
16227
|
}
|
|
16228
16228
|
return config;
|
|
16229
16229
|
}
|
|
16230
|
-
function validateAdapterConfig$
|
|
16230
|
+
function validateAdapterConfig$_(untrustedConfig, configPropertyNames) {
|
|
16231
16231
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
16232
16232
|
return null;
|
|
16233
16233
|
}
|
|
16234
16234
|
if (process.env.NODE_ENV !== 'production') {
|
|
16235
16235
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
16236
16236
|
}
|
|
16237
|
-
const coercedConfig = coerceConfig$
|
|
16238
|
-
const config = typeCheckConfig$
|
|
16237
|
+
const coercedConfig = coerceConfig$y(untrustedConfig);
|
|
16238
|
+
const config = typeCheckConfig$Z(coercedConfig);
|
|
16239
16239
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
16240
16240
|
return null;
|
|
16241
16241
|
}
|
|
16242
16242
|
return config;
|
|
16243
16243
|
}
|
|
16244
16244
|
|
|
16245
|
-
function createResourceRequest$
|
|
16245
|
+
function createResourceRequest$Y(config) {
|
|
16246
16246
|
const headers = {};
|
|
16247
16247
|
return {
|
|
16248
16248
|
baseUri: '/services/data/v59.0',
|
|
@@ -16296,7 +16296,7 @@ const getMruListUi_ConfigPropertyNames_augmented = {
|
|
|
16296
16296
|
},
|
|
16297
16297
|
};
|
|
16298
16298
|
function buildListUiFragment$1(config, fields) {
|
|
16299
|
-
const resourceParams = createResourceParams$
|
|
16299
|
+
const resourceParams = createResourceParams$S(config);
|
|
16300
16300
|
const paginationParams = createPaginationParams$1(resourceParams);
|
|
16301
16301
|
const recordSelectParams = {
|
|
16302
16302
|
records: {
|
|
@@ -16351,7 +16351,7 @@ function onResourceError_getMruListUi(luvio, config, err) {
|
|
|
16351
16351
|
}
|
|
16352
16352
|
function buildCachedSnapshot$8(luvio, storeLookup, config, listInfo, fields) {
|
|
16353
16353
|
const listFields_ = fields || listFields(luvio, config, listInfo);
|
|
16354
|
-
const resourceParams = createResourceParams$
|
|
16354
|
+
const resourceParams = createResourceParams$S(config);
|
|
16355
16355
|
const selector = {
|
|
16356
16356
|
recordId: keyBuilder$2P(luvio, resourceParams),
|
|
16357
16357
|
node: buildListUiFragment$1(config, listFields_),
|
|
@@ -16367,8 +16367,8 @@ function buildCachedSnapshot$8(luvio, storeLookup, config, listInfo, fields) {
|
|
|
16367
16367
|
* @param config wire config
|
|
16368
16368
|
*/
|
|
16369
16369
|
function buildNetworkSnapshot_getMruListUi(luvio, config, dispatchOptions) {
|
|
16370
|
-
const params = createResourceParams$
|
|
16371
|
-
const request = createResourceRequest$
|
|
16370
|
+
const params = createResourceParams$S(config);
|
|
16371
|
+
const request = createResourceRequest$Z(params);
|
|
16372
16372
|
return luvio.dispatchResourceRequest(request, dispatchOptions).then((response) => {
|
|
16373
16373
|
const { body } = response;
|
|
16374
16374
|
// response might have records.sortBy in csv format but keyBuilder/ingestion
|
|
@@ -16395,7 +16395,7 @@ function prepareRequest_getMruListRecords(luvio, config, listInfo, snapshot) {
|
|
|
16395
16395
|
pageToken,
|
|
16396
16396
|
sortBy,
|
|
16397
16397
|
};
|
|
16398
|
-
const request = createResourceRequest$
|
|
16398
|
+
const request = createResourceRequest$Y({
|
|
16399
16399
|
urlParams: {
|
|
16400
16400
|
objectApiName: config.objectApiName,
|
|
16401
16401
|
},
|
|
@@ -16543,7 +16543,7 @@ function buildNetworkListUiSnapshot$1(context, coercedAdapterRequestContext) {
|
|
|
16543
16543
|
return buildNetworkSnapshot_getMruListRecords(luvio, config, listInfo, dispatchOptions, listUi);
|
|
16544
16544
|
}
|
|
16545
16545
|
const factory$j = (luvio) => function getMruListUi(untrustedConfig, requestContext) {
|
|
16546
|
-
const config = validateAdapterConfig$
|
|
16546
|
+
const config = validateAdapterConfig$_(untrustedConfig, getMruListUi_ConfigPropertyNames_augmented);
|
|
16547
16547
|
if (config === null) {
|
|
16548
16548
|
return null;
|
|
16549
16549
|
}
|
|
@@ -16600,11 +16600,11 @@ function buildListUiFragment(config, context, fields) {
|
|
|
16600
16600
|
const defaultedConfig = { ...getServerDefaults(config, context), ...config };
|
|
16601
16601
|
let paginationParams;
|
|
16602
16602
|
if (isGetListUiByListViewIdConfig(defaultedConfig)) {
|
|
16603
|
-
const resourceParams = createResourceParams$
|
|
16603
|
+
const resourceParams = createResourceParams$U(defaultedConfig);
|
|
16604
16604
|
paginationParams = createPaginationParams$4(resourceParams);
|
|
16605
16605
|
}
|
|
16606
16606
|
else if (isGetListUiByApiNameConfig(defaultedConfig)) {
|
|
16607
|
-
const resourceParams = createResourceParams$
|
|
16607
|
+
const resourceParams = createResourceParams$V(defaultedConfig);
|
|
16608
16608
|
paginationParams =
|
|
16609
16609
|
createPaginationParams$5(resourceParams);
|
|
16610
16610
|
}
|
|
@@ -16661,7 +16661,7 @@ function prepareRequest_getListUi(config) {
|
|
|
16661
16661
|
};
|
|
16662
16662
|
let request;
|
|
16663
16663
|
if (isGetListUiByApiNameConfig(config)) {
|
|
16664
|
-
request = createResourceRequest$
|
|
16664
|
+
request = createResourceRequest$12({
|
|
16665
16665
|
urlParams: {
|
|
16666
16666
|
listViewApiName: config.listViewApiName,
|
|
16667
16667
|
objectApiName: config.objectApiName,
|
|
@@ -16670,7 +16670,7 @@ function prepareRequest_getListUi(config) {
|
|
|
16670
16670
|
});
|
|
16671
16671
|
}
|
|
16672
16672
|
else if (isGetListUiByListViewIdConfig(config)) {
|
|
16673
|
-
request = createResourceRequest$
|
|
16673
|
+
request = createResourceRequest$11({
|
|
16674
16674
|
urlParams: { listViewId: config.listViewId },
|
|
16675
16675
|
queryParams,
|
|
16676
16676
|
});
|
|
@@ -16746,7 +16746,7 @@ function prepareRequest_getListRecords(luvio, context, config, listInfo, snapsho
|
|
|
16746
16746
|
};
|
|
16747
16747
|
let request;
|
|
16748
16748
|
if (isGetListUiByApiNameConfig(config)) {
|
|
16749
|
-
request = createResourceRequest
|
|
16749
|
+
request = createResourceRequest$$({
|
|
16750
16750
|
urlParams: {
|
|
16751
16751
|
listViewApiName: config.listViewApiName,
|
|
16752
16752
|
objectApiName: config.objectApiName,
|
|
@@ -16755,7 +16755,7 @@ function prepareRequest_getListRecords(luvio, context, config, listInfo, snapsho
|
|
|
16755
16755
|
});
|
|
16756
16756
|
}
|
|
16757
16757
|
else if (isGetListUiByListViewIdConfig(config)) {
|
|
16758
|
-
request = createResourceRequest
|
|
16758
|
+
request = createResourceRequest$10({
|
|
16759
16759
|
urlParams: { listViewId: config.listViewId },
|
|
16760
16760
|
queryParams,
|
|
16761
16761
|
});
|
|
@@ -16933,9 +16933,9 @@ function looksLikeGetMruListUiConfig(untrustedConfig) {
|
|
|
16933
16933
|
}
|
|
16934
16934
|
function validateGetListUiConfig(untrustedConfig) {
|
|
16935
16935
|
return looksLikeGetListUiByApiNameConfig(untrustedConfig)
|
|
16936
|
-
? validateAdapterConfig$
|
|
16936
|
+
? validateAdapterConfig$11(untrustedConfig, getListUiByApiName_ConfigPropertyNames_augmented)
|
|
16937
16937
|
: looksLikeGetListUiByListViewIdConfig(untrustedConfig)
|
|
16938
|
-
? validateAdapterConfig
|
|
16938
|
+
? validateAdapterConfig$10(untrustedConfig, getListUiByListViewId_ConfigPropertyNames_augmented)
|
|
16939
16939
|
: null;
|
|
16940
16940
|
}
|
|
16941
16941
|
// the listViewApiName value to pass to getListUi() to request the MRU list
|
|
@@ -17787,7 +17787,7 @@ function keyBuilderFromType$s(luvio, object) {
|
|
|
17787
17787
|
function normalize$F(input, existing, path, luvio, store, timestamp) {
|
|
17788
17788
|
return input;
|
|
17789
17789
|
}
|
|
17790
|
-
const select$
|
|
17790
|
+
const select$2A = function ObjectInfoRepresentationSelect() {
|
|
17791
17791
|
return {
|
|
17792
17792
|
kind: 'Fragment',
|
|
17793
17793
|
version: VERSION$26,
|
|
@@ -17938,24 +17938,24 @@ function getTypeCacheKeys$1M(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
17938
17938
|
});
|
|
17939
17939
|
}
|
|
17940
17940
|
|
|
17941
|
-
function select$
|
|
17942
|
-
return select$
|
|
17941
|
+
function select$2z(luvio, params) {
|
|
17942
|
+
return select$2A();
|
|
17943
17943
|
}
|
|
17944
17944
|
function keyBuilder$2N(luvio, params) {
|
|
17945
17945
|
return keyBuilder$2O(luvio, {
|
|
17946
17946
|
apiName: params.urlParams.objectApiName
|
|
17947
17947
|
});
|
|
17948
17948
|
}
|
|
17949
|
-
function getResponseCacheKeys$
|
|
17949
|
+
function getResponseCacheKeys$S(storeKeyMap, luvio, resourceParams, response) {
|
|
17950
17950
|
getTypeCacheKeys$1M(storeKeyMap, luvio, response);
|
|
17951
17951
|
}
|
|
17952
|
-
function ingestSuccess$
|
|
17952
|
+
function ingestSuccess$I(luvio, resourceParams, response, snapshotRefresh) {
|
|
17953
17953
|
const { body } = response;
|
|
17954
17954
|
const key = keyBuilder$2N(luvio, resourceParams);
|
|
17955
17955
|
luvio.storeIngest(key, ingest$1J, body);
|
|
17956
17956
|
const snapshot = luvio.storeLookup({
|
|
17957
17957
|
recordId: key,
|
|
17958
|
-
node: select$
|
|
17958
|
+
node: select$2z(),
|
|
17959
17959
|
variables: {},
|
|
17960
17960
|
}, snapshotRefresh);
|
|
17961
17961
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -17978,7 +17978,7 @@ function ingestError$E(luvio, params, error, snapshotRefresh) {
|
|
|
17978
17978
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
17979
17979
|
return errorSnapshot;
|
|
17980
17980
|
}
|
|
17981
|
-
function createResourceRequest$
|
|
17981
|
+
function createResourceRequest$X(config) {
|
|
17982
17982
|
const headers = {};
|
|
17983
17983
|
return {
|
|
17984
17984
|
baseUri: '/services/data/v59.0',
|
|
@@ -17999,7 +17999,7 @@ const getObjectInfo_ConfigPropertyNames = {
|
|
|
17999
17999
|
optional: []
|
|
18000
18000
|
}
|
|
18001
18001
|
};
|
|
18002
|
-
function createResourceParams$
|
|
18002
|
+
function createResourceParams$R(config) {
|
|
18003
18003
|
const resourceParams = {
|
|
18004
18004
|
urlParams: {
|
|
18005
18005
|
objectApiName: config.objectApiName
|
|
@@ -18007,7 +18007,7 @@ function createResourceParams$Q(config) {
|
|
|
18007
18007
|
};
|
|
18008
18008
|
return resourceParams;
|
|
18009
18009
|
}
|
|
18010
|
-
function coerceConfig$
|
|
18010
|
+
function coerceConfig$x(config) {
|
|
18011
18011
|
const coercedConfig = {};
|
|
18012
18012
|
const objectApiName = getObjectApiName$1(config.objectApiName);
|
|
18013
18013
|
if (objectApiName !== undefined) {
|
|
@@ -18016,10 +18016,10 @@ function coerceConfig$w(config) {
|
|
|
18016
18016
|
return coercedConfig;
|
|
18017
18017
|
}
|
|
18018
18018
|
function keyBuilder$2M(luvio, config) {
|
|
18019
|
-
const resourceParams = createResourceParams$
|
|
18019
|
+
const resourceParams = createResourceParams$R(config);
|
|
18020
18020
|
return keyBuilder$2N(luvio, resourceParams);
|
|
18021
18021
|
}
|
|
18022
|
-
function typeCheckConfig$
|
|
18022
|
+
function typeCheckConfig$Y(untrustedConfig) {
|
|
18023
18023
|
const config = {};
|
|
18024
18024
|
const untrustedConfig_objectApiName = untrustedConfig.objectApiName;
|
|
18025
18025
|
if (typeof untrustedConfig_objectApiName === 'string') {
|
|
@@ -18027,46 +18027,46 @@ function typeCheckConfig$X(untrustedConfig) {
|
|
|
18027
18027
|
}
|
|
18028
18028
|
return config;
|
|
18029
18029
|
}
|
|
18030
|
-
function validateAdapterConfig$
|
|
18030
|
+
function validateAdapterConfig$Z(untrustedConfig, configPropertyNames) {
|
|
18031
18031
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
18032
18032
|
return null;
|
|
18033
18033
|
}
|
|
18034
18034
|
if (process.env.NODE_ENV !== 'production') {
|
|
18035
18035
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
18036
18036
|
}
|
|
18037
|
-
const coercedConfig = coerceConfig$
|
|
18038
|
-
const config = typeCheckConfig$
|
|
18037
|
+
const coercedConfig = coerceConfig$x(untrustedConfig);
|
|
18038
|
+
const config = typeCheckConfig$Y(coercedConfig);
|
|
18039
18039
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
18040
18040
|
return null;
|
|
18041
18041
|
}
|
|
18042
18042
|
return config;
|
|
18043
18043
|
}
|
|
18044
18044
|
function adapterFragment$D(luvio, config) {
|
|
18045
|
-
createResourceParams$
|
|
18046
|
-
return select$
|
|
18045
|
+
createResourceParams$R(config);
|
|
18046
|
+
return select$2z();
|
|
18047
18047
|
}
|
|
18048
18048
|
function onFetchResponseSuccess$H(luvio, config, resourceParams, response) {
|
|
18049
|
-
const snapshot = ingestSuccess$
|
|
18049
|
+
const snapshot = ingestSuccess$I(luvio, resourceParams, response, {
|
|
18050
18050
|
config,
|
|
18051
|
-
resolve: () => buildNetworkSnapshot$
|
|
18051
|
+
resolve: () => buildNetworkSnapshot$X(luvio, config, snapshotRefreshOptions)
|
|
18052
18052
|
});
|
|
18053
18053
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18054
18054
|
}
|
|
18055
18055
|
function onFetchResponseError$I(luvio, config, resourceParams, response) {
|
|
18056
18056
|
const snapshot = ingestError$E(luvio, resourceParams, response, {
|
|
18057
18057
|
config,
|
|
18058
|
-
resolve: () => buildNetworkSnapshot$
|
|
18058
|
+
resolve: () => buildNetworkSnapshot$X(luvio, config, snapshotRefreshOptions)
|
|
18059
18059
|
});
|
|
18060
18060
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
18061
18061
|
}
|
|
18062
|
-
function buildNetworkSnapshot$
|
|
18063
|
-
const resourceParams = createResourceParams$
|
|
18064
|
-
const request = createResourceRequest$
|
|
18062
|
+
function buildNetworkSnapshot$X(luvio, config, options) {
|
|
18063
|
+
const resourceParams = createResourceParams$R(config);
|
|
18064
|
+
const request = createResourceRequest$X(resourceParams);
|
|
18065
18065
|
return luvio.dispatchResourceRequest(request, options)
|
|
18066
18066
|
.then((response) => {
|
|
18067
18067
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$H(luvio, config, resourceParams, response), () => {
|
|
18068
18068
|
const cache = new StoreKeyMap();
|
|
18069
|
-
getResponseCacheKeys$
|
|
18069
|
+
getResponseCacheKeys$S(cache, luvio, resourceParams, response.body);
|
|
18070
18070
|
return cache;
|
|
18071
18071
|
});
|
|
18072
18072
|
}, (response) => {
|
|
@@ -18088,7 +18088,7 @@ function buildNetworkSnapshotCachePolicy$L(context, coercedAdapterRequestContext
|
|
|
18088
18088
|
priority: networkPriority
|
|
18089
18089
|
};
|
|
18090
18090
|
}
|
|
18091
|
-
return buildNetworkSnapshot$
|
|
18091
|
+
return buildNetworkSnapshot$X(luvio, config, dispatchOptions);
|
|
18092
18092
|
}
|
|
18093
18093
|
function buildCachedSnapshotCachePolicy$K(context, storeLookup) {
|
|
18094
18094
|
const { luvio, config } = context;
|
|
@@ -18099,12 +18099,12 @@ function buildCachedSnapshotCachePolicy$K(context, storeLookup) {
|
|
|
18099
18099
|
};
|
|
18100
18100
|
const cacheSnapshot = storeLookup(selector, {
|
|
18101
18101
|
config,
|
|
18102
|
-
resolve: () => buildNetworkSnapshot$
|
|
18102
|
+
resolve: () => buildNetworkSnapshot$X(luvio, config, snapshotRefreshOptions)
|
|
18103
18103
|
});
|
|
18104
18104
|
return cacheSnapshot;
|
|
18105
18105
|
}
|
|
18106
18106
|
const getObjectInfoAdapterFactory = (luvio) => function UiApi__getObjectInfo(untrustedConfig, requestContext) {
|
|
18107
|
-
const config = validateAdapterConfig$
|
|
18107
|
+
const config = validateAdapterConfig$Z(untrustedConfig, getObjectInfo_ConfigPropertyNames);
|
|
18108
18108
|
// Invalid or incomplete config
|
|
18109
18109
|
if (config === null) {
|
|
18110
18110
|
return null;
|
|
@@ -18545,7 +18545,7 @@ function keyBuilderFromType$r(luvio, object) {
|
|
|
18545
18545
|
function normalize$E(input, existing, path, luvio, store, timestamp) {
|
|
18546
18546
|
return input;
|
|
18547
18547
|
}
|
|
18548
|
-
const select$
|
|
18548
|
+
const select$2y = function RecordLayoutRepresentationSelect() {
|
|
18549
18549
|
return {
|
|
18550
18550
|
kind: 'Fragment',
|
|
18551
18551
|
version: VERSION$25,
|
|
@@ -18719,7 +18719,7 @@ function keyBuilderFromType$q(luvio, object) {
|
|
|
18719
18719
|
function normalize$D(input, existing, path, luvio, store, timestamp) {
|
|
18720
18720
|
return input;
|
|
18721
18721
|
}
|
|
18722
|
-
const select$
|
|
18722
|
+
const select$2x = function RecordLayoutUserStateRepresentationSelect() {
|
|
18723
18723
|
return {
|
|
18724
18724
|
kind: 'Fragment',
|
|
18725
18725
|
version: VERSION$24,
|
|
@@ -19081,7 +19081,7 @@ const ingest$1G = function RecordUiRepresentationIngest(input, path, luvio, stor
|
|
|
19081
19081
|
return createLink$1(key);
|
|
19082
19082
|
};
|
|
19083
19083
|
|
|
19084
|
-
function createResourceRequest$
|
|
19084
|
+
function createResourceRequest$W(config) {
|
|
19085
19085
|
const headers = {};
|
|
19086
19086
|
return {
|
|
19087
19087
|
baseUri: '/services/data/v59.0',
|
|
@@ -19117,7 +19117,7 @@ function getRecordId18Array(value) {
|
|
|
19117
19117
|
return dedupe(array).sort();
|
|
19118
19118
|
}
|
|
19119
19119
|
|
|
19120
|
-
function coerceConfig$
|
|
19120
|
+
function coerceConfig$w(config) {
|
|
19121
19121
|
const coercedConfig = {};
|
|
19122
19122
|
const recordIds = getRecordId18Array(config.recordIds);
|
|
19123
19123
|
if (recordIds !== undefined) {
|
|
@@ -19153,7 +19153,7 @@ function coerceConfig$v(config) {
|
|
|
19153
19153
|
}
|
|
19154
19154
|
return coercedConfig;
|
|
19155
19155
|
}
|
|
19156
|
-
function typeCheckConfig$
|
|
19156
|
+
function typeCheckConfig$X(untrustedConfig) {
|
|
19157
19157
|
const config = {};
|
|
19158
19158
|
const untrustedConfig_recordIds = untrustedConfig.recordIds;
|
|
19159
19159
|
if (ArrayIsArray$1(untrustedConfig_recordIds)) {
|
|
@@ -19224,24 +19224,24 @@ function typeCheckConfig$W(untrustedConfig) {
|
|
|
19224
19224
|
}
|
|
19225
19225
|
return config;
|
|
19226
19226
|
}
|
|
19227
|
-
function validateAdapterConfig$
|
|
19227
|
+
function validateAdapterConfig$Y(untrustedConfig, configPropertyNames) {
|
|
19228
19228
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
19229
19229
|
return null;
|
|
19230
19230
|
}
|
|
19231
19231
|
if (process.env.NODE_ENV !== 'production') {
|
|
19232
19232
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
19233
19233
|
}
|
|
19234
|
-
const coercedConfig = coerceConfig$
|
|
19235
|
-
const config = typeCheckConfig$
|
|
19234
|
+
const coercedConfig = coerceConfig$w(untrustedConfig);
|
|
19235
|
+
const config = typeCheckConfig$X(coercedConfig);
|
|
19236
19236
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
19237
19237
|
return null;
|
|
19238
19238
|
}
|
|
19239
19239
|
return config;
|
|
19240
19240
|
}
|
|
19241
19241
|
|
|
19242
|
-
const layoutSelections$2 = select$
|
|
19243
|
-
const objectInfoPathSelection = select$
|
|
19244
|
-
const layoutUserStatePathSelector = select$
|
|
19242
|
+
const layoutSelections$2 = select$2y();
|
|
19243
|
+
const objectInfoPathSelection = select$2A();
|
|
19244
|
+
const layoutUserStatePathSelector = select$2x();
|
|
19245
19245
|
function buildRecordUiSelector(recordDefs, layoutTypes, modes, recordOptionalFields) {
|
|
19246
19246
|
const layoutTypeSelections = [];
|
|
19247
19247
|
for (let i = 0, len = layoutTypes.length; i < len; i += 1) {
|
|
@@ -19500,7 +19500,7 @@ function keyBuilder$2J(recordIds, layoutTypes, modes, optionalFields) {
|
|
|
19500
19500
|
function buildSnapshotRefresh$4(luvio, config) {
|
|
19501
19501
|
return {
|
|
19502
19502
|
config,
|
|
19503
|
-
resolve: () => buildNetworkSnapshot$
|
|
19503
|
+
resolve: () => buildNetworkSnapshot$W(luvio, config),
|
|
19504
19504
|
};
|
|
19505
19505
|
}
|
|
19506
19506
|
function markRecordUiNulledOutLookupFields(recordLookupFields, recordNodes) {
|
|
@@ -19526,7 +19526,7 @@ function prepareRequest$4(luvio, config) {
|
|
|
19526
19526
|
const { recordIds, layoutTypes, modes, optionalFields } = config;
|
|
19527
19527
|
const key = keyBuilder$2J(recordIds, layoutTypes, modes, optionalFields);
|
|
19528
19528
|
const selectorKey = buildCachedSelectorKey(key);
|
|
19529
|
-
const resourceRequest = createResourceRequest$
|
|
19529
|
+
const resourceRequest = createResourceRequest$W({
|
|
19530
19530
|
urlParams: {
|
|
19531
19531
|
recordIds,
|
|
19532
19532
|
},
|
|
@@ -19654,7 +19654,7 @@ function onFetchResponseError$H(luvio, config, selectorKey, key, err) {
|
|
|
19654
19654
|
return errorSnapshot;
|
|
19655
19655
|
});
|
|
19656
19656
|
}
|
|
19657
|
-
function buildNetworkSnapshot$
|
|
19657
|
+
function buildNetworkSnapshot$W(luvio, config, dispatchContext) {
|
|
19658
19658
|
const { key, resourceRequest, selectorKey } = prepareRequest$4(luvio, config);
|
|
19659
19659
|
return luvio
|
|
19660
19660
|
.dispatchResourceRequest(resourceRequest, dispatchContext)
|
|
@@ -19721,10 +19721,10 @@ function buildNetworkRecordUiRepresentationSnapshot(context, coercedAdapterReque
|
|
|
19721
19721
|
priority: networkPriority,
|
|
19722
19722
|
};
|
|
19723
19723
|
}
|
|
19724
|
-
return buildNetworkSnapshot$
|
|
19724
|
+
return buildNetworkSnapshot$W(context.luvio, context.config, dispatchOptions);
|
|
19725
19725
|
}
|
|
19726
19726
|
function coerceConfigWithDefaults$3(untrustedConfig) {
|
|
19727
|
-
const config = validateAdapterConfig$
|
|
19727
|
+
const config = validateAdapterConfig$Y(untrustedConfig, GET_RECORDUI_ADAPTER_CONFIG);
|
|
19728
19728
|
if (config === null) {
|
|
19729
19729
|
return null;
|
|
19730
19730
|
}
|
|
@@ -19767,7 +19767,7 @@ var LayoutMode;
|
|
|
19767
19767
|
})(LayoutMode || (LayoutMode = {}));
|
|
19768
19768
|
|
|
19769
19769
|
const DEFAULT_MODE = LayoutMode.View;
|
|
19770
|
-
const layoutSelections$1 = select$
|
|
19770
|
+
const layoutSelections$1 = select$2y();
|
|
19771
19771
|
function buildSnapshotRefresh$3(luvio, config) {
|
|
19772
19772
|
return {
|
|
19773
19773
|
config,
|
|
@@ -19784,7 +19784,7 @@ function refresh$1(luvio, config) {
|
|
|
19784
19784
|
modes,
|
|
19785
19785
|
optionalFields,
|
|
19786
19786
|
};
|
|
19787
|
-
return buildNetworkSnapshot$
|
|
19787
|
+
return buildNetworkSnapshot$W(luvio, recordUiConfig).then((snapshot) => {
|
|
19788
19788
|
const refresh = buildSnapshotRefresh$3(luvio, config);
|
|
19789
19789
|
if (isErrorSnapshot(snapshot)) {
|
|
19790
19790
|
var recordKey = keyBuilder$31(luvio, { recordId });
|
|
@@ -19891,7 +19891,7 @@ function getRecord$1(luvio, refresh, recordId, layoutMap, objectInfo, configOpti
|
|
|
19891
19891
|
}
|
|
19892
19892
|
return recordSnapshotOrPromise;
|
|
19893
19893
|
}
|
|
19894
|
-
function buildNetworkSnapshot$
|
|
19894
|
+
function buildNetworkSnapshot$V(context, coercedAdapterRequestContext) {
|
|
19895
19895
|
const { config, luvio } = context;
|
|
19896
19896
|
const { recordId } = config;
|
|
19897
19897
|
const optionalFields = config.optionalFields === undefined ? [] : dedupe(config.optionalFields).sort();
|
|
@@ -19916,7 +19916,7 @@ function buildNetworkSnapshot$U(context, coercedAdapterRequestContext) {
|
|
|
19916
19916
|
fields: context.fields,
|
|
19917
19917
|
optionalFields,
|
|
19918
19918
|
};
|
|
19919
|
-
return buildNetworkSnapshot
|
|
19919
|
+
return buildNetworkSnapshot$10(luvio, recordConfig, 0, coercedAdapterRequestContext).then((snapshot) => {
|
|
19920
19920
|
snapshot.refresh = refresh;
|
|
19921
19921
|
return snapshot;
|
|
19922
19922
|
});
|
|
@@ -19929,7 +19929,7 @@ function buildNetworkSnapshot$U(context, coercedAdapterRequestContext) {
|
|
|
19929
19929
|
modes,
|
|
19930
19930
|
optionalFields,
|
|
19931
19931
|
};
|
|
19932
|
-
return buildNetworkSnapshot$
|
|
19932
|
+
return buildNetworkSnapshot$W(luvio, recordUiConfig, dispatchOptions).then((snapshot) => processRecordUiRepresentation(luvio, refresh, recordId, modes, snapshot, optionalFields));
|
|
19933
19933
|
}
|
|
19934
19934
|
function buildRecordLayoutCachedSnapshot(context, storeLookup) {
|
|
19935
19935
|
const { config, luvio } = context;
|
|
@@ -20003,7 +20003,7 @@ function makeCacheOnlySnapshot(luvio, config, cachedSnapshot) {
|
|
|
20003
20003
|
function makeNetworkOnlySnapshot(luvio, config, requestContext) {
|
|
20004
20004
|
return luvio.applyCachePolicy(requestContext || {}, { config, luvio }, () => {
|
|
20005
20005
|
return undefined;
|
|
20006
|
-
}, buildNetworkSnapshot$
|
|
20006
|
+
}, buildNetworkSnapshot$V);
|
|
20007
20007
|
}
|
|
20008
20008
|
function getRecordLayoutType(luvio, config, requestContext) {
|
|
20009
20009
|
// lookup record layout
|
|
@@ -20030,7 +20030,7 @@ function getRecordLayoutType(luvio, config, requestContext) {
|
|
|
20030
20030
|
const recordTypeId = getRecordTypeId$2(record);
|
|
20031
20031
|
const modes = config.modes === undefined ? [DEFAULT_MODE] : config.modes;
|
|
20032
20032
|
return makeRecordLayoutMap(luvio, config, objectInfoSnapshot.data.apiName, recordTypeId, layoutTypes, modes).then((recordLayoutMap) => {
|
|
20033
|
-
return luvio.applyCachePolicy(requestContext || {}, { config, luvio }, buildRecordLayoutSnapshot(recordLayoutMap, luvio, config, recordLayoutSnapshot, objectInfoSnapshot), buildNetworkSnapshot$
|
|
20033
|
+
return luvio.applyCachePolicy(requestContext || {}, { config, luvio }, buildRecordLayoutSnapshot(recordLayoutMap, luvio, config, recordLayoutSnapshot, objectInfoSnapshot), buildNetworkSnapshot$V);
|
|
20034
20034
|
});
|
|
20035
20035
|
});
|
|
20036
20036
|
});
|
|
@@ -20156,7 +20156,7 @@ function createResourceRequestFromRepresentation(representation, optionalFields)
|
|
|
20156
20156
|
optionalFields,
|
|
20157
20157
|
},
|
|
20158
20158
|
};
|
|
20159
|
-
return createResourceRequest$
|
|
20159
|
+
return createResourceRequest$15(config);
|
|
20160
20160
|
}
|
|
20161
20161
|
// eslint-disable-next-line @salesforce/lds/no-invalid-todo
|
|
20162
20162
|
// TODO: this should probably be code generated in RecordRepresentation
|
|
@@ -20220,7 +20220,7 @@ const notifyChangeFactory = (luvio) => {
|
|
|
20220
20220
|
};
|
|
20221
20221
|
const factory$g = (luvio) => function getRecord(untrustedConfig, requestContext) {
|
|
20222
20222
|
// standard config validation and coercion
|
|
20223
|
-
const config = validateAdapterConfig$
|
|
20223
|
+
const config = validateAdapterConfig$12(untrustedConfig, GET_RECORD_ADAPTER_CONFIG);
|
|
20224
20224
|
if (config === null) {
|
|
20225
20225
|
return null;
|
|
20226
20226
|
}
|
|
@@ -20332,7 +20332,7 @@ function keyBuilderFromType$p(luvio, object) {
|
|
|
20332
20332
|
function normalize$B(input, existing, path, luvio, store, timestamp) {
|
|
20333
20333
|
return input;
|
|
20334
20334
|
}
|
|
20335
|
-
const select$
|
|
20335
|
+
const select$2w = function QuickActionExecutionRepresentationSelect() {
|
|
20336
20336
|
return {
|
|
20337
20337
|
kind: 'Fragment',
|
|
20338
20338
|
version: VERSION$22,
|
|
@@ -20795,7 +20795,7 @@ function keyBuilderFromType$o(luvio, object) {
|
|
|
20795
20795
|
function normalize$A(input, existing, path, luvio, store, timestamp) {
|
|
20796
20796
|
return input;
|
|
20797
20797
|
}
|
|
20798
|
-
const select$
|
|
20798
|
+
const select$2v = function PlatformActionRepresentationSelect() {
|
|
20799
20799
|
return {
|
|
20800
20800
|
kind: 'Fragment',
|
|
20801
20801
|
version: VERSION$21,
|
|
@@ -21083,7 +21083,7 @@ function normalize$z(input, existing, path, luvio, store, timestamp) {
|
|
|
21083
21083
|
}
|
|
21084
21084
|
return input;
|
|
21085
21085
|
}
|
|
21086
|
-
const select$
|
|
21086
|
+
const select$2u = function EntityActionRepresentationSelect() {
|
|
21087
21087
|
return {
|
|
21088
21088
|
kind: 'Fragment',
|
|
21089
21089
|
version: VERSION$20,
|
|
@@ -21096,7 +21096,7 @@ const select$2t = function EntityActionRepresentationSelect() {
|
|
|
21096
21096
|
name: 'actions',
|
|
21097
21097
|
kind: 'Link',
|
|
21098
21098
|
plural: true,
|
|
21099
|
-
fragment: select$
|
|
21099
|
+
fragment: select$2v()
|
|
21100
21100
|
}
|
|
21101
21101
|
]
|
|
21102
21102
|
};
|
|
@@ -21230,7 +21230,7 @@ function normalize$y(input, existing, path, luvio, store, timestamp) {
|
|
|
21230
21230
|
}
|
|
21231
21231
|
return input;
|
|
21232
21232
|
}
|
|
21233
|
-
const select$
|
|
21233
|
+
const select$2t = function ActionRepresentationSelect() {
|
|
21234
21234
|
return {
|
|
21235
21235
|
kind: 'Fragment',
|
|
21236
21236
|
version: VERSION$1$,
|
|
@@ -21243,7 +21243,7 @@ const select$2s = function ActionRepresentationSelect() {
|
|
|
21243
21243
|
name: 'actions',
|
|
21244
21244
|
kind: 'Link',
|
|
21245
21245
|
map: true,
|
|
21246
|
-
fragment: select$
|
|
21246
|
+
fragment: select$2u()
|
|
21247
21247
|
}
|
|
21248
21248
|
]
|
|
21249
21249
|
};
|
|
@@ -21318,22 +21318,22 @@ function getTypeCacheKeys$1G(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
21318
21318
|
}
|
|
21319
21319
|
}
|
|
21320
21320
|
|
|
21321
|
-
function select$
|
|
21322
|
-
return select$
|
|
21321
|
+
function select$2s(luvio, params) {
|
|
21322
|
+
return select$2t();
|
|
21323
21323
|
}
|
|
21324
21324
|
function keyBuilder$2F(luvio, params) {
|
|
21325
21325
|
return keyPrefix + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'apiNames:' + params.queryParams.apiNames + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'retrievalMode:' + params.queryParams.retrievalMode + ',' + 'sections:' + params.queryParams.sections + ')';
|
|
21326
21326
|
}
|
|
21327
|
-
function getResponseCacheKeys$
|
|
21327
|
+
function getResponseCacheKeys$R(storeKeyMap, luvio, resourceParams, response) {
|
|
21328
21328
|
getTypeCacheKeys$1G(storeKeyMap, luvio, response, () => keyBuilder$2F(luvio, resourceParams));
|
|
21329
21329
|
}
|
|
21330
|
-
function ingestSuccess$
|
|
21330
|
+
function ingestSuccess$H(luvio, resourceParams, response, snapshotRefresh) {
|
|
21331
21331
|
const { body } = response;
|
|
21332
21332
|
const key = keyBuilder$2F(luvio, resourceParams);
|
|
21333
21333
|
luvio.storeIngest(key, ingest$1C, body);
|
|
21334
21334
|
const snapshot = luvio.storeLookup({
|
|
21335
21335
|
recordId: key,
|
|
21336
|
-
node: select$
|
|
21336
|
+
node: select$2s(),
|
|
21337
21337
|
variables: {},
|
|
21338
21338
|
}, snapshotRefresh);
|
|
21339
21339
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -21356,7 +21356,7 @@ function ingestError$D(luvio, params, error, snapshotRefresh) {
|
|
|
21356
21356
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
21357
21357
|
return errorSnapshot;
|
|
21358
21358
|
}
|
|
21359
|
-
function createResourceRequest$
|
|
21359
|
+
function createResourceRequest$V(config) {
|
|
21360
21360
|
const headers = {};
|
|
21361
21361
|
return {
|
|
21362
21362
|
baseUri: '/services/data/v59.0',
|
|
@@ -21399,7 +21399,7 @@ const getGlobalActions_ConfigPropertyNames = {
|
|
|
21399
21399
|
optional: ['actionTypes', 'apiNames', 'formFactor', 'retrievalMode', 'sections']
|
|
21400
21400
|
}
|
|
21401
21401
|
};
|
|
21402
|
-
function createResourceParams$
|
|
21402
|
+
function createResourceParams$Q(config) {
|
|
21403
21403
|
const resourceParams = {
|
|
21404
21404
|
queryParams: {
|
|
21405
21405
|
actionTypes: config.actionTypes, apiNames: config.apiNames, formFactor: config.formFactor, retrievalMode: config.retrievalMode, sections: config.sections
|
|
@@ -21407,7 +21407,7 @@ function createResourceParams$P(config) {
|
|
|
21407
21407
|
};
|
|
21408
21408
|
return resourceParams;
|
|
21409
21409
|
}
|
|
21410
|
-
function coerceConfig$
|
|
21410
|
+
function coerceConfig$v(config) {
|
|
21411
21411
|
const coercedConfig = {};
|
|
21412
21412
|
const actionTypes = config.actionTypes;
|
|
21413
21413
|
if (actionTypes !== undefined) {
|
|
@@ -21432,10 +21432,10 @@ function coerceConfig$u(config) {
|
|
|
21432
21432
|
return coercedConfig;
|
|
21433
21433
|
}
|
|
21434
21434
|
function keyBuilder$2E(luvio, config) {
|
|
21435
|
-
const resourceParams = createResourceParams$
|
|
21435
|
+
const resourceParams = createResourceParams$Q(config);
|
|
21436
21436
|
return keyBuilder$2F(luvio, resourceParams);
|
|
21437
21437
|
}
|
|
21438
|
-
function typeCheckConfig$
|
|
21438
|
+
function typeCheckConfig$W(untrustedConfig) {
|
|
21439
21439
|
const config = {};
|
|
21440
21440
|
const untrustedConfig_actionTypes = untrustedConfig.actionTypes;
|
|
21441
21441
|
if (ArrayIsArray$1(untrustedConfig_actionTypes)) {
|
|
@@ -21480,46 +21480,46 @@ function typeCheckConfig$V(untrustedConfig) {
|
|
|
21480
21480
|
}
|
|
21481
21481
|
return config;
|
|
21482
21482
|
}
|
|
21483
|
-
function validateAdapterConfig$
|
|
21483
|
+
function validateAdapterConfig$X(untrustedConfig, configPropertyNames) {
|
|
21484
21484
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
21485
21485
|
return null;
|
|
21486
21486
|
}
|
|
21487
21487
|
if (process.env.NODE_ENV !== 'production') {
|
|
21488
21488
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
21489
21489
|
}
|
|
21490
|
-
const coercedConfig = coerceConfig$
|
|
21491
|
-
const config = typeCheckConfig$
|
|
21490
|
+
const coercedConfig = coerceConfig$v(untrustedConfig);
|
|
21491
|
+
const config = typeCheckConfig$W(coercedConfig);
|
|
21492
21492
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
21493
21493
|
return null;
|
|
21494
21494
|
}
|
|
21495
21495
|
return config;
|
|
21496
21496
|
}
|
|
21497
21497
|
function adapterFragment$C(luvio, config) {
|
|
21498
|
-
createResourceParams$
|
|
21499
|
-
return select$
|
|
21498
|
+
createResourceParams$Q(config);
|
|
21499
|
+
return select$2s();
|
|
21500
21500
|
}
|
|
21501
21501
|
function onFetchResponseSuccess$F(luvio, config, resourceParams, response) {
|
|
21502
|
-
const snapshot = ingestSuccess$
|
|
21502
|
+
const snapshot = ingestSuccess$H(luvio, resourceParams, response, {
|
|
21503
21503
|
config,
|
|
21504
|
-
resolve: () => buildNetworkSnapshot$
|
|
21504
|
+
resolve: () => buildNetworkSnapshot$U(luvio, config, snapshotRefreshOptions)
|
|
21505
21505
|
});
|
|
21506
21506
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
21507
21507
|
}
|
|
21508
21508
|
function onFetchResponseError$G(luvio, config, resourceParams, response) {
|
|
21509
21509
|
const snapshot = ingestError$D(luvio, resourceParams, response, {
|
|
21510
21510
|
config,
|
|
21511
|
-
resolve: () => buildNetworkSnapshot$
|
|
21511
|
+
resolve: () => buildNetworkSnapshot$U(luvio, config, snapshotRefreshOptions)
|
|
21512
21512
|
});
|
|
21513
21513
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
21514
21514
|
}
|
|
21515
|
-
function buildNetworkSnapshot$
|
|
21516
|
-
const resourceParams = createResourceParams$
|
|
21517
|
-
const request = createResourceRequest$
|
|
21515
|
+
function buildNetworkSnapshot$U(luvio, config, options) {
|
|
21516
|
+
const resourceParams = createResourceParams$Q(config);
|
|
21517
|
+
const request = createResourceRequest$V(resourceParams);
|
|
21518
21518
|
return luvio.dispatchResourceRequest(request, options)
|
|
21519
21519
|
.then((response) => {
|
|
21520
21520
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$F(luvio, config, resourceParams, response), () => {
|
|
21521
21521
|
const cache = new StoreKeyMap();
|
|
21522
|
-
getResponseCacheKeys$
|
|
21522
|
+
getResponseCacheKeys$R(cache, luvio, resourceParams, response.body);
|
|
21523
21523
|
return cache;
|
|
21524
21524
|
});
|
|
21525
21525
|
}, (response) => {
|
|
@@ -21541,7 +21541,7 @@ function buildNetworkSnapshotCachePolicy$K(context, coercedAdapterRequestContext
|
|
|
21541
21541
|
priority: networkPriority
|
|
21542
21542
|
};
|
|
21543
21543
|
}
|
|
21544
|
-
return buildNetworkSnapshot$
|
|
21544
|
+
return buildNetworkSnapshot$U(luvio, config, dispatchOptions);
|
|
21545
21545
|
}
|
|
21546
21546
|
function buildCachedSnapshotCachePolicy$J(context, storeLookup) {
|
|
21547
21547
|
const { luvio, config } = context;
|
|
@@ -21552,12 +21552,12 @@ function buildCachedSnapshotCachePolicy$J(context, storeLookup) {
|
|
|
21552
21552
|
};
|
|
21553
21553
|
const cacheSnapshot = storeLookup(selector, {
|
|
21554
21554
|
config,
|
|
21555
|
-
resolve: () => buildNetworkSnapshot$
|
|
21555
|
+
resolve: () => buildNetworkSnapshot$U(luvio, config, snapshotRefreshOptions)
|
|
21556
21556
|
});
|
|
21557
21557
|
return cacheSnapshot;
|
|
21558
21558
|
}
|
|
21559
21559
|
const getGlobalActionsAdapterFactory = (luvio) => function UiApi__getGlobalActions(untrustedConfig, requestContext) {
|
|
21560
|
-
const config = validateAdapterConfig$
|
|
21560
|
+
const config = validateAdapterConfig$X(untrustedConfig, getGlobalActions_ConfigPropertyNames);
|
|
21561
21561
|
// Invalid or incomplete config
|
|
21562
21562
|
if (config === null) {
|
|
21563
21563
|
return null;
|
|
@@ -21607,7 +21607,7 @@ function keyBuilderFromType$m(luvio, object) {
|
|
|
21607
21607
|
function normalize$x(input, existing, path, luvio, store, timestamp) {
|
|
21608
21608
|
return input;
|
|
21609
21609
|
}
|
|
21610
|
-
const select$
|
|
21610
|
+
const select$2r = function QuickActionLayoutRepresentationSelect() {
|
|
21611
21611
|
return {
|
|
21612
21612
|
kind: 'Fragment',
|
|
21613
21613
|
version: VERSION$1_,
|
|
@@ -21673,24 +21673,24 @@ function getTypeCacheKeys$1F(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
21673
21673
|
});
|
|
21674
21674
|
}
|
|
21675
21675
|
|
|
21676
|
-
function select$
|
|
21677
|
-
return select$
|
|
21676
|
+
function select$2q(luvio, params) {
|
|
21677
|
+
return select$2r();
|
|
21678
21678
|
}
|
|
21679
21679
|
function keyBuilder$2C(luvio, params) {
|
|
21680
21680
|
return keyBuilder$2D(luvio, {
|
|
21681
21681
|
actionApiName: params.urlParams.actionApiName
|
|
21682
21682
|
});
|
|
21683
21683
|
}
|
|
21684
|
-
function getResponseCacheKeys$
|
|
21684
|
+
function getResponseCacheKeys$Q(storeKeyMap, luvio, resourceParams, response) {
|
|
21685
21685
|
getTypeCacheKeys$1F(storeKeyMap, luvio, response);
|
|
21686
21686
|
}
|
|
21687
|
-
function ingestSuccess$
|
|
21687
|
+
function ingestSuccess$G(luvio, resourceParams, response, snapshotRefresh) {
|
|
21688
21688
|
const { body } = response;
|
|
21689
21689
|
const key = keyBuilder$2C(luvio, resourceParams);
|
|
21690
21690
|
luvio.storeIngest(key, ingest$1B, body);
|
|
21691
21691
|
const snapshot = luvio.storeLookup({
|
|
21692
21692
|
recordId: key,
|
|
21693
|
-
node: select$
|
|
21693
|
+
node: select$2q(),
|
|
21694
21694
|
variables: {},
|
|
21695
21695
|
}, snapshotRefresh);
|
|
21696
21696
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -21713,7 +21713,7 @@ function ingestError$C(luvio, params, error, snapshotRefresh) {
|
|
|
21713
21713
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
21714
21714
|
return errorSnapshot;
|
|
21715
21715
|
}
|
|
21716
|
-
function createResourceRequest$
|
|
21716
|
+
function createResourceRequest$U(config) {
|
|
21717
21717
|
const headers = {};
|
|
21718
21718
|
return {
|
|
21719
21719
|
baseUri: '/services/data/v59.0',
|
|
@@ -21734,7 +21734,7 @@ const getQuickActionLayout_ConfigPropertyNames = {
|
|
|
21734
21734
|
optional: []
|
|
21735
21735
|
}
|
|
21736
21736
|
};
|
|
21737
|
-
function createResourceParams$
|
|
21737
|
+
function createResourceParams$P(config) {
|
|
21738
21738
|
const resourceParams = {
|
|
21739
21739
|
urlParams: {
|
|
21740
21740
|
actionApiName: config.actionApiName
|
|
@@ -21743,10 +21743,10 @@ function createResourceParams$O(config) {
|
|
|
21743
21743
|
return resourceParams;
|
|
21744
21744
|
}
|
|
21745
21745
|
function keyBuilder$2B(luvio, config) {
|
|
21746
|
-
const resourceParams = createResourceParams$
|
|
21746
|
+
const resourceParams = createResourceParams$P(config);
|
|
21747
21747
|
return keyBuilder$2C(luvio, resourceParams);
|
|
21748
21748
|
}
|
|
21749
|
-
function typeCheckConfig$
|
|
21749
|
+
function typeCheckConfig$V(untrustedConfig) {
|
|
21750
21750
|
const config = {};
|
|
21751
21751
|
const untrustedConfig_actionApiName = untrustedConfig.actionApiName;
|
|
21752
21752
|
if (typeof untrustedConfig_actionApiName === 'string') {
|
|
@@ -21754,45 +21754,45 @@ function typeCheckConfig$U(untrustedConfig) {
|
|
|
21754
21754
|
}
|
|
21755
21755
|
return config;
|
|
21756
21756
|
}
|
|
21757
|
-
function validateAdapterConfig$
|
|
21757
|
+
function validateAdapterConfig$W(untrustedConfig, configPropertyNames) {
|
|
21758
21758
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
21759
21759
|
return null;
|
|
21760
21760
|
}
|
|
21761
21761
|
if (process.env.NODE_ENV !== 'production') {
|
|
21762
21762
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
21763
21763
|
}
|
|
21764
|
-
const config = typeCheckConfig$
|
|
21764
|
+
const config = typeCheckConfig$V(untrustedConfig);
|
|
21765
21765
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
21766
21766
|
return null;
|
|
21767
21767
|
}
|
|
21768
21768
|
return config;
|
|
21769
21769
|
}
|
|
21770
21770
|
function adapterFragment$B(luvio, config) {
|
|
21771
|
-
createResourceParams$
|
|
21772
|
-
return select$
|
|
21771
|
+
createResourceParams$P(config);
|
|
21772
|
+
return select$2q();
|
|
21773
21773
|
}
|
|
21774
21774
|
function onFetchResponseSuccess$E(luvio, config, resourceParams, response) {
|
|
21775
|
-
const snapshot = ingestSuccess$
|
|
21775
|
+
const snapshot = ingestSuccess$G(luvio, resourceParams, response, {
|
|
21776
21776
|
config,
|
|
21777
|
-
resolve: () => buildNetworkSnapshot$
|
|
21777
|
+
resolve: () => buildNetworkSnapshot$T(luvio, config, snapshotRefreshOptions)
|
|
21778
21778
|
});
|
|
21779
21779
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
21780
21780
|
}
|
|
21781
21781
|
function onFetchResponseError$F(luvio, config, resourceParams, response) {
|
|
21782
21782
|
const snapshot = ingestError$C(luvio, resourceParams, response, {
|
|
21783
21783
|
config,
|
|
21784
|
-
resolve: () => buildNetworkSnapshot$
|
|
21784
|
+
resolve: () => buildNetworkSnapshot$T(luvio, config, snapshotRefreshOptions)
|
|
21785
21785
|
});
|
|
21786
21786
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
21787
21787
|
}
|
|
21788
|
-
function buildNetworkSnapshot$
|
|
21789
|
-
const resourceParams = createResourceParams$
|
|
21790
|
-
const request = createResourceRequest$
|
|
21788
|
+
function buildNetworkSnapshot$T(luvio, config, options) {
|
|
21789
|
+
const resourceParams = createResourceParams$P(config);
|
|
21790
|
+
const request = createResourceRequest$U(resourceParams);
|
|
21791
21791
|
return luvio.dispatchResourceRequest(request, options)
|
|
21792
21792
|
.then((response) => {
|
|
21793
21793
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$E(luvio, config, resourceParams, response), () => {
|
|
21794
21794
|
const cache = new StoreKeyMap();
|
|
21795
|
-
getResponseCacheKeys$
|
|
21795
|
+
getResponseCacheKeys$Q(cache, luvio, resourceParams, response.body);
|
|
21796
21796
|
return cache;
|
|
21797
21797
|
});
|
|
21798
21798
|
}, (response) => {
|
|
@@ -21814,7 +21814,7 @@ function buildNetworkSnapshotCachePolicy$J(context, coercedAdapterRequestContext
|
|
|
21814
21814
|
priority: networkPriority
|
|
21815
21815
|
};
|
|
21816
21816
|
}
|
|
21817
|
-
return buildNetworkSnapshot$
|
|
21817
|
+
return buildNetworkSnapshot$T(luvio, config, dispatchOptions);
|
|
21818
21818
|
}
|
|
21819
21819
|
function buildCachedSnapshotCachePolicy$I(context, storeLookup) {
|
|
21820
21820
|
const { luvio, config } = context;
|
|
@@ -21825,12 +21825,12 @@ function buildCachedSnapshotCachePolicy$I(context, storeLookup) {
|
|
|
21825
21825
|
};
|
|
21826
21826
|
const cacheSnapshot = storeLookup(selector, {
|
|
21827
21827
|
config,
|
|
21828
|
-
resolve: () => buildNetworkSnapshot$
|
|
21828
|
+
resolve: () => buildNetworkSnapshot$T(luvio, config, snapshotRefreshOptions)
|
|
21829
21829
|
});
|
|
21830
21830
|
return cacheSnapshot;
|
|
21831
21831
|
}
|
|
21832
21832
|
const getQuickActionLayoutAdapterFactory = (luvio) => function UiApi__getQuickActionLayout(untrustedConfig, requestContext) {
|
|
21833
|
-
const config = validateAdapterConfig$
|
|
21833
|
+
const config = validateAdapterConfig$W(untrustedConfig, getQuickActionLayout_ConfigPropertyNames);
|
|
21834
21834
|
// Invalid or incomplete config
|
|
21835
21835
|
if (config === null) {
|
|
21836
21836
|
return null;
|
|
@@ -21839,22 +21839,22 @@ const getQuickActionLayoutAdapterFactory = (luvio) => function UiApi__getQuickAc
|
|
|
21839
21839
|
buildCachedSnapshotCachePolicy$I, buildNetworkSnapshotCachePolicy$J);
|
|
21840
21840
|
};
|
|
21841
21841
|
|
|
21842
|
-
function select$
|
|
21843
|
-
return select$
|
|
21842
|
+
function select$2p(luvio, params) {
|
|
21843
|
+
return select$2t();
|
|
21844
21844
|
}
|
|
21845
21845
|
function keyBuilder$2A(luvio, params) {
|
|
21846
21846
|
return keyPrefix + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'objectApiNames:' + params.urlParams.objectApiNames + ')';
|
|
21847
21847
|
}
|
|
21848
|
-
function getResponseCacheKeys$
|
|
21848
|
+
function getResponseCacheKeys$P(storeKeyMap, luvio, resourceParams, response) {
|
|
21849
21849
|
getTypeCacheKeys$1G(storeKeyMap, luvio, response, () => keyBuilder$2A(luvio, resourceParams));
|
|
21850
21850
|
}
|
|
21851
|
-
function ingestSuccess$
|
|
21851
|
+
function ingestSuccess$F(luvio, resourceParams, response, snapshotRefresh) {
|
|
21852
21852
|
const { body } = response;
|
|
21853
21853
|
const key = keyBuilder$2A(luvio, resourceParams);
|
|
21854
21854
|
luvio.storeIngest(key, ingest$1C, body);
|
|
21855
21855
|
const snapshot = luvio.storeLookup({
|
|
21856
21856
|
recordId: key,
|
|
21857
|
-
node: select$
|
|
21857
|
+
node: select$2p(),
|
|
21858
21858
|
variables: {},
|
|
21859
21859
|
}, snapshotRefresh);
|
|
21860
21860
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -21877,7 +21877,7 @@ function ingestError$B(luvio, params, error, snapshotRefresh) {
|
|
|
21877
21877
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
21878
21878
|
return errorSnapshot;
|
|
21879
21879
|
}
|
|
21880
|
-
function createResourceRequest$
|
|
21880
|
+
function createResourceRequest$T(config) {
|
|
21881
21881
|
const headers = {};
|
|
21882
21882
|
return {
|
|
21883
21883
|
baseUri: '/services/data/v59.0',
|
|
@@ -21930,7 +21930,7 @@ const getLookupActions_ConfigPropertyNames = {
|
|
|
21930
21930
|
optional: ['actionTypes', 'formFactor', 'sections']
|
|
21931
21931
|
}
|
|
21932
21932
|
};
|
|
21933
|
-
function createResourceParams$
|
|
21933
|
+
function createResourceParams$O(config) {
|
|
21934
21934
|
const resourceParams = {
|
|
21935
21935
|
urlParams: {
|
|
21936
21936
|
objectApiNames: config.objectApiNames
|
|
@@ -21941,7 +21941,7 @@ function createResourceParams$N(config) {
|
|
|
21941
21941
|
};
|
|
21942
21942
|
return resourceParams;
|
|
21943
21943
|
}
|
|
21944
|
-
function coerceConfig$
|
|
21944
|
+
function coerceConfig$u(config) {
|
|
21945
21945
|
const coercedConfig = {};
|
|
21946
21946
|
const objectApiNames = getSortedObjectApiNamesArray(config.objectApiNames);
|
|
21947
21947
|
if (objectApiNames !== undefined) {
|
|
@@ -21962,10 +21962,10 @@ function coerceConfig$t(config) {
|
|
|
21962
21962
|
return coercedConfig;
|
|
21963
21963
|
}
|
|
21964
21964
|
function keyBuilder$2z(luvio, config) {
|
|
21965
|
-
const resourceParams = createResourceParams$
|
|
21965
|
+
const resourceParams = createResourceParams$O(config);
|
|
21966
21966
|
return keyBuilder$2A(luvio, resourceParams);
|
|
21967
21967
|
}
|
|
21968
|
-
function typeCheckConfig$
|
|
21968
|
+
function typeCheckConfig$U(untrustedConfig) {
|
|
21969
21969
|
const config = {};
|
|
21970
21970
|
const untrustedConfig_objectApiNames = untrustedConfig.objectApiNames;
|
|
21971
21971
|
if (ArrayIsArray$1(untrustedConfig_objectApiNames)) {
|
|
@@ -22006,46 +22006,46 @@ function typeCheckConfig$T(untrustedConfig) {
|
|
|
22006
22006
|
}
|
|
22007
22007
|
return config;
|
|
22008
22008
|
}
|
|
22009
|
-
function validateAdapterConfig$
|
|
22009
|
+
function validateAdapterConfig$V(untrustedConfig, configPropertyNames) {
|
|
22010
22010
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
22011
22011
|
return null;
|
|
22012
22012
|
}
|
|
22013
22013
|
if (process.env.NODE_ENV !== 'production') {
|
|
22014
22014
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
22015
22015
|
}
|
|
22016
|
-
const coercedConfig = coerceConfig$
|
|
22017
|
-
const config = typeCheckConfig$
|
|
22016
|
+
const coercedConfig = coerceConfig$u(untrustedConfig);
|
|
22017
|
+
const config = typeCheckConfig$U(coercedConfig);
|
|
22018
22018
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
22019
22019
|
return null;
|
|
22020
22020
|
}
|
|
22021
22021
|
return config;
|
|
22022
22022
|
}
|
|
22023
22023
|
function adapterFragment$A(luvio, config) {
|
|
22024
|
-
createResourceParams$
|
|
22025
|
-
return select$
|
|
22024
|
+
createResourceParams$O(config);
|
|
22025
|
+
return select$2p();
|
|
22026
22026
|
}
|
|
22027
22027
|
function onFetchResponseSuccess$D(luvio, config, resourceParams, response) {
|
|
22028
|
-
const snapshot = ingestSuccess$
|
|
22028
|
+
const snapshot = ingestSuccess$F(luvio, resourceParams, response, {
|
|
22029
22029
|
config,
|
|
22030
|
-
resolve: () => buildNetworkSnapshot$
|
|
22030
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions)
|
|
22031
22031
|
});
|
|
22032
22032
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22033
22033
|
}
|
|
22034
22034
|
function onFetchResponseError$E(luvio, config, resourceParams, response) {
|
|
22035
22035
|
const snapshot = ingestError$B(luvio, resourceParams, response, {
|
|
22036
22036
|
config,
|
|
22037
|
-
resolve: () => buildNetworkSnapshot$
|
|
22037
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions)
|
|
22038
22038
|
});
|
|
22039
22039
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22040
22040
|
}
|
|
22041
|
-
function buildNetworkSnapshot$
|
|
22042
|
-
const resourceParams = createResourceParams$
|
|
22043
|
-
const request = createResourceRequest$
|
|
22041
|
+
function buildNetworkSnapshot$S(luvio, config, options) {
|
|
22042
|
+
const resourceParams = createResourceParams$O(config);
|
|
22043
|
+
const request = createResourceRequest$T(resourceParams);
|
|
22044
22044
|
return luvio.dispatchResourceRequest(request, options)
|
|
22045
22045
|
.then((response) => {
|
|
22046
22046
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$D(luvio, config, resourceParams, response), () => {
|
|
22047
22047
|
const cache = new StoreKeyMap();
|
|
22048
|
-
getResponseCacheKeys$
|
|
22048
|
+
getResponseCacheKeys$P(cache, luvio, resourceParams, response.body);
|
|
22049
22049
|
return cache;
|
|
22050
22050
|
});
|
|
22051
22051
|
}, (response) => {
|
|
@@ -22067,7 +22067,7 @@ function buildNetworkSnapshotCachePolicy$I(context, coercedAdapterRequestContext
|
|
|
22067
22067
|
priority: networkPriority
|
|
22068
22068
|
};
|
|
22069
22069
|
}
|
|
22070
|
-
return buildNetworkSnapshot$
|
|
22070
|
+
return buildNetworkSnapshot$S(luvio, config, dispatchOptions);
|
|
22071
22071
|
}
|
|
22072
22072
|
function buildCachedSnapshotCachePolicy$H(context, storeLookup) {
|
|
22073
22073
|
const { luvio, config } = context;
|
|
@@ -22078,12 +22078,12 @@ function buildCachedSnapshotCachePolicy$H(context, storeLookup) {
|
|
|
22078
22078
|
};
|
|
22079
22079
|
const cacheSnapshot = storeLookup(selector, {
|
|
22080
22080
|
config,
|
|
22081
|
-
resolve: () => buildNetworkSnapshot$
|
|
22081
|
+
resolve: () => buildNetworkSnapshot$S(luvio, config, snapshotRefreshOptions)
|
|
22082
22082
|
});
|
|
22083
22083
|
return cacheSnapshot;
|
|
22084
22084
|
}
|
|
22085
22085
|
const getLookupActionsAdapterFactory = (luvio) => function UiApi__getLookupActions(untrustedConfig, requestContext) {
|
|
22086
|
-
const config = validateAdapterConfig$
|
|
22086
|
+
const config = validateAdapterConfig$V(untrustedConfig, getLookupActions_ConfigPropertyNames);
|
|
22087
22087
|
// Invalid or incomplete config
|
|
22088
22088
|
if (config === null) {
|
|
22089
22089
|
return null;
|
|
@@ -22092,22 +22092,22 @@ const getLookupActionsAdapterFactory = (luvio) => function UiApi__getLookupActio
|
|
|
22092
22092
|
buildCachedSnapshotCachePolicy$H, buildNetworkSnapshotCachePolicy$I);
|
|
22093
22093
|
};
|
|
22094
22094
|
|
|
22095
|
-
function select$
|
|
22096
|
-
return select$
|
|
22095
|
+
function select$2o(luvio, params) {
|
|
22096
|
+
return select$2t();
|
|
22097
22097
|
}
|
|
22098
22098
|
function keyBuilder$2y(luvio, params) {
|
|
22099
22099
|
return keyPrefix + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
22100
22100
|
}
|
|
22101
|
-
function getResponseCacheKeys$
|
|
22101
|
+
function getResponseCacheKeys$O(storeKeyMap, luvio, resourceParams, response) {
|
|
22102
22102
|
getTypeCacheKeys$1G(storeKeyMap, luvio, response, () => keyBuilder$2y(luvio, resourceParams));
|
|
22103
22103
|
}
|
|
22104
|
-
function ingestSuccess$
|
|
22104
|
+
function ingestSuccess$E(luvio, resourceParams, response, snapshotRefresh) {
|
|
22105
22105
|
const { body } = response;
|
|
22106
22106
|
const key = keyBuilder$2y(luvio, resourceParams);
|
|
22107
22107
|
luvio.storeIngest(key, ingest$1C, body);
|
|
22108
22108
|
const snapshot = luvio.storeLookup({
|
|
22109
22109
|
recordId: key,
|
|
22110
|
-
node: select$
|
|
22110
|
+
node: select$2o(),
|
|
22111
22111
|
variables: {},
|
|
22112
22112
|
}, snapshotRefresh);
|
|
22113
22113
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -22130,7 +22130,7 @@ function ingestError$A(luvio, params, error, snapshotRefresh) {
|
|
|
22130
22130
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
22131
22131
|
return errorSnapshot;
|
|
22132
22132
|
}
|
|
22133
|
-
function createResourceRequest$
|
|
22133
|
+
function createResourceRequest$S(config) {
|
|
22134
22134
|
const headers = {};
|
|
22135
22135
|
return {
|
|
22136
22136
|
baseUri: '/services/data/v59.0',
|
|
@@ -22151,7 +22151,7 @@ const getObjectCreateActions_ConfigPropertyNames = {
|
|
|
22151
22151
|
optional: ['actionTypes', 'formFactor', 'sections']
|
|
22152
22152
|
}
|
|
22153
22153
|
};
|
|
22154
|
-
function createResourceParams$
|
|
22154
|
+
function createResourceParams$N(config) {
|
|
22155
22155
|
const resourceParams = {
|
|
22156
22156
|
urlParams: {
|
|
22157
22157
|
objectApiName: config.objectApiName
|
|
@@ -22162,7 +22162,7 @@ function createResourceParams$M(config) {
|
|
|
22162
22162
|
};
|
|
22163
22163
|
return resourceParams;
|
|
22164
22164
|
}
|
|
22165
|
-
function coerceConfig$
|
|
22165
|
+
function coerceConfig$t(config) {
|
|
22166
22166
|
const coercedConfig = {};
|
|
22167
22167
|
const objectApiName = getObjectApiName$1(config.objectApiName);
|
|
22168
22168
|
if (objectApiName !== undefined) {
|
|
@@ -22183,10 +22183,10 @@ function coerceConfig$s(config) {
|
|
|
22183
22183
|
return coercedConfig;
|
|
22184
22184
|
}
|
|
22185
22185
|
function keyBuilder$2x(luvio, config) {
|
|
22186
|
-
const resourceParams = createResourceParams$
|
|
22186
|
+
const resourceParams = createResourceParams$N(config);
|
|
22187
22187
|
return keyBuilder$2y(luvio, resourceParams);
|
|
22188
22188
|
}
|
|
22189
|
-
function typeCheckConfig$
|
|
22189
|
+
function typeCheckConfig$T(untrustedConfig) {
|
|
22190
22190
|
const config = {};
|
|
22191
22191
|
const untrustedConfig_objectApiName = untrustedConfig.objectApiName;
|
|
22192
22192
|
if (typeof untrustedConfig_objectApiName === 'string') {
|
|
@@ -22220,46 +22220,46 @@ function typeCheckConfig$S(untrustedConfig) {
|
|
|
22220
22220
|
}
|
|
22221
22221
|
return config;
|
|
22222
22222
|
}
|
|
22223
|
-
function validateAdapterConfig$
|
|
22223
|
+
function validateAdapterConfig$U(untrustedConfig, configPropertyNames) {
|
|
22224
22224
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
22225
22225
|
return null;
|
|
22226
22226
|
}
|
|
22227
22227
|
if (process.env.NODE_ENV !== 'production') {
|
|
22228
22228
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
22229
22229
|
}
|
|
22230
|
-
const coercedConfig = coerceConfig$
|
|
22231
|
-
const config = typeCheckConfig$
|
|
22230
|
+
const coercedConfig = coerceConfig$t(untrustedConfig);
|
|
22231
|
+
const config = typeCheckConfig$T(coercedConfig);
|
|
22232
22232
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
22233
22233
|
return null;
|
|
22234
22234
|
}
|
|
22235
22235
|
return config;
|
|
22236
22236
|
}
|
|
22237
22237
|
function adapterFragment$z(luvio, config) {
|
|
22238
|
-
createResourceParams$
|
|
22239
|
-
return select$
|
|
22238
|
+
createResourceParams$N(config);
|
|
22239
|
+
return select$2o();
|
|
22240
22240
|
}
|
|
22241
22241
|
function onFetchResponseSuccess$C(luvio, config, resourceParams, response) {
|
|
22242
|
-
const snapshot = ingestSuccess$
|
|
22242
|
+
const snapshot = ingestSuccess$E(luvio, resourceParams, response, {
|
|
22243
22243
|
config,
|
|
22244
|
-
resolve: () => buildNetworkSnapshot$
|
|
22244
|
+
resolve: () => buildNetworkSnapshot$R(luvio, config, snapshotRefreshOptions)
|
|
22245
22245
|
});
|
|
22246
22246
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22247
22247
|
}
|
|
22248
22248
|
function onFetchResponseError$D(luvio, config, resourceParams, response) {
|
|
22249
22249
|
const snapshot = ingestError$A(luvio, resourceParams, response, {
|
|
22250
22250
|
config,
|
|
22251
|
-
resolve: () => buildNetworkSnapshot$
|
|
22251
|
+
resolve: () => buildNetworkSnapshot$R(luvio, config, snapshotRefreshOptions)
|
|
22252
22252
|
});
|
|
22253
22253
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22254
22254
|
}
|
|
22255
|
-
function buildNetworkSnapshot$
|
|
22256
|
-
const resourceParams = createResourceParams$
|
|
22257
|
-
const request = createResourceRequest$
|
|
22255
|
+
function buildNetworkSnapshot$R(luvio, config, options) {
|
|
22256
|
+
const resourceParams = createResourceParams$N(config);
|
|
22257
|
+
const request = createResourceRequest$S(resourceParams);
|
|
22258
22258
|
return luvio.dispatchResourceRequest(request, options)
|
|
22259
22259
|
.then((response) => {
|
|
22260
22260
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$C(luvio, config, resourceParams, response), () => {
|
|
22261
22261
|
const cache = new StoreKeyMap();
|
|
22262
|
-
getResponseCacheKeys$
|
|
22262
|
+
getResponseCacheKeys$O(cache, luvio, resourceParams, response.body);
|
|
22263
22263
|
return cache;
|
|
22264
22264
|
});
|
|
22265
22265
|
}, (response) => {
|
|
@@ -22281,7 +22281,7 @@ function buildNetworkSnapshotCachePolicy$H(context, coercedAdapterRequestContext
|
|
|
22281
22281
|
priority: networkPriority
|
|
22282
22282
|
};
|
|
22283
22283
|
}
|
|
22284
|
-
return buildNetworkSnapshot$
|
|
22284
|
+
return buildNetworkSnapshot$R(luvio, config, dispatchOptions);
|
|
22285
22285
|
}
|
|
22286
22286
|
function buildCachedSnapshotCachePolicy$G(context, storeLookup) {
|
|
22287
22287
|
const { luvio, config } = context;
|
|
@@ -22292,12 +22292,12 @@ function buildCachedSnapshotCachePolicy$G(context, storeLookup) {
|
|
|
22292
22292
|
};
|
|
22293
22293
|
const cacheSnapshot = storeLookup(selector, {
|
|
22294
22294
|
config,
|
|
22295
|
-
resolve: () => buildNetworkSnapshot$
|
|
22295
|
+
resolve: () => buildNetworkSnapshot$R(luvio, config, snapshotRefreshOptions)
|
|
22296
22296
|
});
|
|
22297
22297
|
return cacheSnapshot;
|
|
22298
22298
|
}
|
|
22299
22299
|
const getObjectCreateActionsAdapterFactory = (luvio) => function UiApi__getObjectCreateActions(untrustedConfig, requestContext) {
|
|
22300
|
-
const config = validateAdapterConfig$
|
|
22300
|
+
const config = validateAdapterConfig$U(untrustedConfig, getObjectCreateActions_ConfigPropertyNames);
|
|
22301
22301
|
// Invalid or incomplete config
|
|
22302
22302
|
if (config === null) {
|
|
22303
22303
|
return null;
|
|
@@ -22324,7 +22324,7 @@ const RepresentationType$E = 'ActionOverrideRepresentation';
|
|
|
22324
22324
|
function normalize$w(input, existing, path, luvio, store, timestamp) {
|
|
22325
22325
|
return input;
|
|
22326
22326
|
}
|
|
22327
|
-
const select$
|
|
22327
|
+
const select$2n = function ActionOverrideRepresentationSelect() {
|
|
22328
22328
|
return {
|
|
22329
22329
|
kind: 'Fragment',
|
|
22330
22330
|
version: VERSION$1Z,
|
|
@@ -22378,22 +22378,22 @@ function getTypeCacheKeys$1E(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
22378
22378
|
});
|
|
22379
22379
|
}
|
|
22380
22380
|
|
|
22381
|
-
function select$
|
|
22382
|
-
return select$
|
|
22381
|
+
function select$2m(luvio, params) {
|
|
22382
|
+
return select$2n();
|
|
22383
22383
|
}
|
|
22384
22384
|
function keyBuilder$2w(luvio, params) {
|
|
22385
22385
|
return keyPrefix + '::ActionOverrideRepresentation:(' + 'type:' + params.queryParams.type + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
22386
22386
|
}
|
|
22387
|
-
function getResponseCacheKeys$
|
|
22387
|
+
function getResponseCacheKeys$N(storeKeyMap, luvio, resourceParams, response) {
|
|
22388
22388
|
getTypeCacheKeys$1E(storeKeyMap, luvio, response, () => keyBuilder$2w(luvio, resourceParams));
|
|
22389
22389
|
}
|
|
22390
|
-
function ingestSuccess$
|
|
22390
|
+
function ingestSuccess$D(luvio, resourceParams, response, snapshotRefresh) {
|
|
22391
22391
|
const { body } = response;
|
|
22392
22392
|
const key = keyBuilder$2w(luvio, resourceParams);
|
|
22393
22393
|
luvio.storeIngest(key, ingest$1A, body);
|
|
22394
22394
|
const snapshot = luvio.storeLookup({
|
|
22395
22395
|
recordId: key,
|
|
22396
|
-
node: select$
|
|
22396
|
+
node: select$2m(),
|
|
22397
22397
|
variables: {},
|
|
22398
22398
|
}, snapshotRefresh);
|
|
22399
22399
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -22410,7 +22410,7 @@ function ingestError$z(luvio, params, error, snapshotRefresh) {
|
|
|
22410
22410
|
luvio.storeIngestError(key, errorSnapshot);
|
|
22411
22411
|
return errorSnapshot;
|
|
22412
22412
|
}
|
|
22413
|
-
function createResourceRequest$
|
|
22413
|
+
function createResourceRequest$R(config) {
|
|
22414
22414
|
const headers = {};
|
|
22415
22415
|
return {
|
|
22416
22416
|
baseUri: '/services/data/v59.0',
|
|
@@ -22431,7 +22431,7 @@ const getActionOverrides_ConfigPropertyNames = {
|
|
|
22431
22431
|
optional: ['type']
|
|
22432
22432
|
}
|
|
22433
22433
|
};
|
|
22434
|
-
function createResourceParams$
|
|
22434
|
+
function createResourceParams$M(config) {
|
|
22435
22435
|
const resourceParams = {
|
|
22436
22436
|
urlParams: {
|
|
22437
22437
|
objectApiName: config.objectApiName
|
|
@@ -22442,7 +22442,7 @@ function createResourceParams$L(config) {
|
|
|
22442
22442
|
};
|
|
22443
22443
|
return resourceParams;
|
|
22444
22444
|
}
|
|
22445
|
-
function coerceConfig$
|
|
22445
|
+
function coerceConfig$s(config) {
|
|
22446
22446
|
const coercedConfig = {};
|
|
22447
22447
|
const objectApiName = getObjectApiName$1(config.objectApiName);
|
|
22448
22448
|
if (objectApiName !== undefined) {
|
|
@@ -22455,10 +22455,10 @@ function coerceConfig$r(config) {
|
|
|
22455
22455
|
return coercedConfig;
|
|
22456
22456
|
}
|
|
22457
22457
|
function keyBuilder$2v(luvio, config) {
|
|
22458
|
-
const resourceParams = createResourceParams$
|
|
22458
|
+
const resourceParams = createResourceParams$M(config);
|
|
22459
22459
|
return keyBuilder$2w(luvio, resourceParams);
|
|
22460
22460
|
}
|
|
22461
|
-
function typeCheckConfig$
|
|
22461
|
+
function typeCheckConfig$S(untrustedConfig) {
|
|
22462
22462
|
const config = {};
|
|
22463
22463
|
const untrustedConfig_objectApiName = untrustedConfig.objectApiName;
|
|
22464
22464
|
if (typeof untrustedConfig_objectApiName === 'string') {
|
|
@@ -22470,46 +22470,46 @@ function typeCheckConfig$R(untrustedConfig) {
|
|
|
22470
22470
|
}
|
|
22471
22471
|
return config;
|
|
22472
22472
|
}
|
|
22473
|
-
function validateAdapterConfig$
|
|
22473
|
+
function validateAdapterConfig$T(untrustedConfig, configPropertyNames) {
|
|
22474
22474
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
22475
22475
|
return null;
|
|
22476
22476
|
}
|
|
22477
22477
|
if (process.env.NODE_ENV !== 'production') {
|
|
22478
22478
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
22479
22479
|
}
|
|
22480
|
-
const coercedConfig = coerceConfig$
|
|
22481
|
-
const config = typeCheckConfig$
|
|
22480
|
+
const coercedConfig = coerceConfig$s(untrustedConfig);
|
|
22481
|
+
const config = typeCheckConfig$S(coercedConfig);
|
|
22482
22482
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
22483
22483
|
return null;
|
|
22484
22484
|
}
|
|
22485
22485
|
return config;
|
|
22486
22486
|
}
|
|
22487
22487
|
function adapterFragment$y(luvio, config) {
|
|
22488
|
-
createResourceParams$
|
|
22489
|
-
return select$
|
|
22488
|
+
createResourceParams$M(config);
|
|
22489
|
+
return select$2m();
|
|
22490
22490
|
}
|
|
22491
22491
|
function onFetchResponseSuccess$B(luvio, config, resourceParams, response) {
|
|
22492
|
-
const snapshot = ingestSuccess$
|
|
22492
|
+
const snapshot = ingestSuccess$D(luvio, resourceParams, response, {
|
|
22493
22493
|
config,
|
|
22494
|
-
resolve: () => buildNetworkSnapshot$
|
|
22494
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions)
|
|
22495
22495
|
});
|
|
22496
22496
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22497
22497
|
}
|
|
22498
22498
|
function onFetchResponseError$C(luvio, config, resourceParams, response) {
|
|
22499
22499
|
const snapshot = ingestError$z(luvio, resourceParams, response, {
|
|
22500
22500
|
config,
|
|
22501
|
-
resolve: () => buildNetworkSnapshot$
|
|
22501
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions)
|
|
22502
22502
|
});
|
|
22503
22503
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22504
22504
|
}
|
|
22505
|
-
function buildNetworkSnapshot$
|
|
22506
|
-
const resourceParams = createResourceParams$
|
|
22507
|
-
const request = createResourceRequest$
|
|
22505
|
+
function buildNetworkSnapshot$Q(luvio, config, options) {
|
|
22506
|
+
const resourceParams = createResourceParams$M(config);
|
|
22507
|
+
const request = createResourceRequest$R(resourceParams);
|
|
22508
22508
|
return luvio.dispatchResourceRequest(request, options)
|
|
22509
22509
|
.then((response) => {
|
|
22510
22510
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$B(luvio, config, resourceParams, response), () => {
|
|
22511
22511
|
const cache = new StoreKeyMap();
|
|
22512
|
-
getResponseCacheKeys$
|
|
22512
|
+
getResponseCacheKeys$N(cache, luvio, resourceParams, response.body);
|
|
22513
22513
|
return cache;
|
|
22514
22514
|
});
|
|
22515
22515
|
}, (response) => {
|
|
@@ -22531,7 +22531,7 @@ function buildNetworkSnapshotCachePolicy$G(context, coercedAdapterRequestContext
|
|
|
22531
22531
|
priority: networkPriority
|
|
22532
22532
|
};
|
|
22533
22533
|
}
|
|
22534
|
-
return buildNetworkSnapshot$
|
|
22534
|
+
return buildNetworkSnapshot$Q(luvio, config, dispatchOptions);
|
|
22535
22535
|
}
|
|
22536
22536
|
function buildCachedSnapshotCachePolicy$F(context, storeLookup) {
|
|
22537
22537
|
const { luvio, config } = context;
|
|
@@ -22542,12 +22542,12 @@ function buildCachedSnapshotCachePolicy$F(context, storeLookup) {
|
|
|
22542
22542
|
};
|
|
22543
22543
|
const cacheSnapshot = storeLookup(selector, {
|
|
22544
22544
|
config,
|
|
22545
|
-
resolve: () => buildNetworkSnapshot$
|
|
22545
|
+
resolve: () => buildNetworkSnapshot$Q(luvio, config, snapshotRefreshOptions)
|
|
22546
22546
|
});
|
|
22547
22547
|
return cacheSnapshot;
|
|
22548
22548
|
}
|
|
22549
22549
|
const getActionOverridesAdapterFactory = (luvio) => function UiApi__getActionOverrides(untrustedConfig, requestContext) {
|
|
22550
|
-
const config = validateAdapterConfig$
|
|
22550
|
+
const config = validateAdapterConfig$T(untrustedConfig, getActionOverrides_ConfigPropertyNames);
|
|
22551
22551
|
// Invalid or incomplete config
|
|
22552
22552
|
if (config === null) {
|
|
22553
22553
|
return null;
|
|
@@ -22634,7 +22634,7 @@ const dynamicSelect$5 = function dynamicQuickActionDefaultsRepresentationSelect(
|
|
|
22634
22634
|
name: 'fields',
|
|
22635
22635
|
kind: 'Link',
|
|
22636
22636
|
map: true,
|
|
22637
|
-
fragment: select$
|
|
22637
|
+
fragment: select$2L()
|
|
22638
22638
|
} : params.fields;
|
|
22639
22639
|
return {
|
|
22640
22640
|
kind: 'Fragment',
|
|
@@ -22791,7 +22791,7 @@ function keyBuilder$2t(luvio, params) {
|
|
|
22791
22791
|
actionApiName: params.urlParams.actionApiName
|
|
22792
22792
|
});
|
|
22793
22793
|
}
|
|
22794
|
-
function getResponseCacheKeys$
|
|
22794
|
+
function getResponseCacheKeys$M(storeKeyMap, luvio, resourceParams, response) {
|
|
22795
22795
|
getTypeCacheKeys$1D(storeKeyMap, luvio, response);
|
|
22796
22796
|
}
|
|
22797
22797
|
function ingestError$y(luvio, params, error, snapshotRefresh) {
|
|
@@ -22806,7 +22806,7 @@ function ingestError$y(luvio, params, error, snapshotRefresh) {
|
|
|
22806
22806
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
22807
22807
|
return errorSnapshot;
|
|
22808
22808
|
}
|
|
22809
|
-
function createResourceRequest$
|
|
22809
|
+
function createResourceRequest$Q(config) {
|
|
22810
22810
|
const headers = {};
|
|
22811
22811
|
return {
|
|
22812
22812
|
baseUri: '/services/data/v59.0',
|
|
@@ -22821,12 +22821,12 @@ function createResourceRequest$P(config) {
|
|
|
22821
22821
|
}
|
|
22822
22822
|
|
|
22823
22823
|
function adapterFragment$x(luvio, config) {
|
|
22824
|
-
const resourceParams = createResourceParams$
|
|
22824
|
+
const resourceParams = createResourceParams$L(config);
|
|
22825
22825
|
return selectFields$6(luvio, resourceParams);
|
|
22826
22826
|
}
|
|
22827
|
-
function buildNetworkSnapshot$
|
|
22828
|
-
const resourceParams = createResourceParams$
|
|
22829
|
-
const request = createResourceRequest$
|
|
22827
|
+
function buildNetworkSnapshot$P(luvio, config, options) {
|
|
22828
|
+
const resourceParams = createResourceParams$L(config);
|
|
22829
|
+
const request = createResourceRequest$Q(resourceParams);
|
|
22830
22830
|
const key = keyBuilder$2s(luvio, config);
|
|
22831
22831
|
const trackedFieldsConfig = {
|
|
22832
22832
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
|
|
@@ -22852,7 +22852,7 @@ function buildNetworkSnapshot$O(luvio, config, options) {
|
|
|
22852
22852
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22853
22853
|
}, () => {
|
|
22854
22854
|
const cache = new StoreKeyMap();
|
|
22855
|
-
getResponseCacheKeys$
|
|
22855
|
+
getResponseCacheKeys$M(cache, luvio, resourceParams, response.body);
|
|
22856
22856
|
return cache;
|
|
22857
22857
|
});
|
|
22858
22858
|
}, (response) => {
|
|
@@ -22869,7 +22869,7 @@ const getQuickActionDefaults_ConfigPropertyNames = {
|
|
|
22869
22869
|
optional: ['optionalFields', 'parentRecordId']
|
|
22870
22870
|
}
|
|
22871
22871
|
};
|
|
22872
|
-
function createResourceParams$
|
|
22872
|
+
function createResourceParams$L(config) {
|
|
22873
22873
|
const resourceParams = {
|
|
22874
22874
|
urlParams: {
|
|
22875
22875
|
actionApiName: config.actionApiName
|
|
@@ -22880,7 +22880,7 @@ function createResourceParams$K(config) {
|
|
|
22880
22880
|
};
|
|
22881
22881
|
return resourceParams;
|
|
22882
22882
|
}
|
|
22883
|
-
function coerceConfig$
|
|
22883
|
+
function coerceConfig$r(config) {
|
|
22884
22884
|
const coercedConfig = {};
|
|
22885
22885
|
const actionApiName = getObjectApiName$1(config.actionApiName);
|
|
22886
22886
|
if (actionApiName !== undefined) {
|
|
@@ -22897,10 +22897,10 @@ function coerceConfig$q(config) {
|
|
|
22897
22897
|
return coercedConfig;
|
|
22898
22898
|
}
|
|
22899
22899
|
function keyBuilder$2s(luvio, config) {
|
|
22900
|
-
const resourceParams = createResourceParams$
|
|
22900
|
+
const resourceParams = createResourceParams$L(config);
|
|
22901
22901
|
return keyBuilder$2t(luvio, resourceParams);
|
|
22902
22902
|
}
|
|
22903
|
-
function typeCheckConfig$
|
|
22903
|
+
function typeCheckConfig$R(untrustedConfig) {
|
|
22904
22904
|
const config = {};
|
|
22905
22905
|
const untrustedConfig_actionApiName = untrustedConfig.actionApiName;
|
|
22906
22906
|
if (typeof untrustedConfig_actionApiName === 'string') {
|
|
@@ -22923,15 +22923,15 @@ function typeCheckConfig$Q(untrustedConfig) {
|
|
|
22923
22923
|
}
|
|
22924
22924
|
return config;
|
|
22925
22925
|
}
|
|
22926
|
-
function validateAdapterConfig$
|
|
22926
|
+
function validateAdapterConfig$S(untrustedConfig, configPropertyNames) {
|
|
22927
22927
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
22928
22928
|
return null;
|
|
22929
22929
|
}
|
|
22930
22930
|
if (process.env.NODE_ENV !== 'production') {
|
|
22931
22931
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
22932
22932
|
}
|
|
22933
|
-
const coercedConfig = coerceConfig$
|
|
22934
|
-
const config = typeCheckConfig$
|
|
22933
|
+
const coercedConfig = coerceConfig$r(untrustedConfig);
|
|
22934
|
+
const config = typeCheckConfig$R(coercedConfig);
|
|
22935
22935
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
22936
22936
|
return null;
|
|
22937
22937
|
}
|
|
@@ -22945,13 +22945,13 @@ function buildCachedSnapshot$6(luvio, config) {
|
|
|
22945
22945
|
};
|
|
22946
22946
|
return luvio.storeLookup(selector, {
|
|
22947
22947
|
config,
|
|
22948
|
-
resolve: () => buildNetworkSnapshot$
|
|
22948
|
+
resolve: () => buildNetworkSnapshot$P(luvio, config, snapshotRefreshOptions)
|
|
22949
22949
|
});
|
|
22950
22950
|
}
|
|
22951
22951
|
function onFetchResponseError$B(luvio, config, resourceParams, response) {
|
|
22952
22952
|
const snapshot = ingestError$y(luvio, resourceParams, response, {
|
|
22953
22953
|
config,
|
|
22954
|
-
resolve: () => buildNetworkSnapshot$
|
|
22954
|
+
resolve: () => buildNetworkSnapshot$P(luvio, config, snapshotRefreshOptions)
|
|
22955
22955
|
});
|
|
22956
22956
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
22957
22957
|
}
|
|
@@ -22970,7 +22970,7 @@ function buildNetworkSnapshotCachePolicy$F(context, coercedAdapterRequestContext
|
|
|
22970
22970
|
priority: networkPriority
|
|
22971
22971
|
};
|
|
22972
22972
|
}
|
|
22973
|
-
return buildNetworkSnapshot$
|
|
22973
|
+
return buildNetworkSnapshot$P(luvio, config, dispatchOptions);
|
|
22974
22974
|
}
|
|
22975
22975
|
function buildCachedSnapshotCachePolicy$E(context, storeLookup) {
|
|
22976
22976
|
const { luvio, config } = context;
|
|
@@ -22981,12 +22981,12 @@ function buildCachedSnapshotCachePolicy$E(context, storeLookup) {
|
|
|
22981
22981
|
};
|
|
22982
22982
|
const cacheSnapshot = storeLookup(selector, {
|
|
22983
22983
|
config,
|
|
22984
|
-
resolve: () => buildNetworkSnapshot$
|
|
22984
|
+
resolve: () => buildNetworkSnapshot$P(luvio, config, snapshotRefreshOptions)
|
|
22985
22985
|
});
|
|
22986
22986
|
return cacheSnapshot;
|
|
22987
22987
|
}
|
|
22988
22988
|
const getQuickActionDefaultsAdapterFactory = (luvio) => function UiApi__getQuickActionDefaults(untrustedConfig, requestContext) {
|
|
22989
|
-
const config = validateAdapterConfig$
|
|
22989
|
+
const config = validateAdapterConfig$S(untrustedConfig, getQuickActionDefaults_ConfigPropertyNames);
|
|
22990
22990
|
// Invalid or incomplete config
|
|
22991
22991
|
if (config === null) {
|
|
22992
22992
|
return null;
|
|
@@ -22995,22 +22995,22 @@ const getQuickActionDefaultsAdapterFactory = (luvio) => function UiApi__getQuick
|
|
|
22995
22995
|
buildCachedSnapshotCachePolicy$E, buildNetworkSnapshotCachePolicy$F);
|
|
22996
22996
|
};
|
|
22997
22997
|
|
|
22998
|
-
function select$
|
|
22999
|
-
return select$
|
|
22998
|
+
function select$2l(luvio, params) {
|
|
22999
|
+
return select$2t();
|
|
23000
23000
|
}
|
|
23001
23001
|
function keyBuilder$2r(luvio, params) {
|
|
23002
23002
|
return keyPrefix + '::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 + ')';
|
|
23003
23003
|
}
|
|
23004
|
-
function getResponseCacheKeys$
|
|
23004
|
+
function getResponseCacheKeys$L(storeKeyMap, luvio, resourceParams, response) {
|
|
23005
23005
|
getTypeCacheKeys$1G(storeKeyMap, luvio, response, () => keyBuilder$2r(luvio, resourceParams));
|
|
23006
23006
|
}
|
|
23007
|
-
function ingestSuccess$
|
|
23007
|
+
function ingestSuccess$C(luvio, resourceParams, response, snapshotRefresh) {
|
|
23008
23008
|
const { body } = response;
|
|
23009
23009
|
const key = keyBuilder$2r(luvio, resourceParams);
|
|
23010
23010
|
luvio.storeIngest(key, ingest$1C, body);
|
|
23011
23011
|
const snapshot = luvio.storeLookup({
|
|
23012
23012
|
recordId: key,
|
|
23013
|
-
node: select$
|
|
23013
|
+
node: select$2l(),
|
|
23014
23014
|
variables: {},
|
|
23015
23015
|
}, snapshotRefresh);
|
|
23016
23016
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -23033,7 +23033,7 @@ function ingestError$x(luvio, params, error, snapshotRefresh) {
|
|
|
23033
23033
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
23034
23034
|
return errorSnapshot;
|
|
23035
23035
|
}
|
|
23036
|
-
function createResourceRequest$
|
|
23036
|
+
function createResourceRequest$P(config) {
|
|
23037
23037
|
const headers = {};
|
|
23038
23038
|
return {
|
|
23039
23039
|
baseUri: '/services/data/v59.0',
|
|
@@ -23058,7 +23058,7 @@ const getRecordActions_ConfigPropertyNames = {
|
|
|
23058
23058
|
optional: ['actionTypes', 'apiNames', 'formFactor', 'retrievalMode', 'sections']
|
|
23059
23059
|
}
|
|
23060
23060
|
};
|
|
23061
|
-
function createResourceParams$
|
|
23061
|
+
function createResourceParams$K(config) {
|
|
23062
23062
|
const resourceParams = {
|
|
23063
23063
|
urlParams: {
|
|
23064
23064
|
recordIds: config.recordIds
|
|
@@ -23069,7 +23069,7 @@ function createResourceParams$J(config) {
|
|
|
23069
23069
|
};
|
|
23070
23070
|
return resourceParams;
|
|
23071
23071
|
}
|
|
23072
|
-
function coerceConfig$
|
|
23072
|
+
function coerceConfig$q(config) {
|
|
23073
23073
|
const coercedConfig = {};
|
|
23074
23074
|
const recordIds = getRecordId18Array(config.recordIds);
|
|
23075
23075
|
if (recordIds !== undefined) {
|
|
@@ -23098,10 +23098,10 @@ function coerceConfig$p(config) {
|
|
|
23098
23098
|
return coercedConfig;
|
|
23099
23099
|
}
|
|
23100
23100
|
function keyBuilder$2q(luvio, config) {
|
|
23101
|
-
const resourceParams = createResourceParams$
|
|
23101
|
+
const resourceParams = createResourceParams$K(config);
|
|
23102
23102
|
return keyBuilder$2r(luvio, resourceParams);
|
|
23103
23103
|
}
|
|
23104
|
-
function typeCheckConfig$
|
|
23104
|
+
function typeCheckConfig$Q(untrustedConfig) {
|
|
23105
23105
|
const config = {};
|
|
23106
23106
|
const untrustedConfig_recordIds = untrustedConfig.recordIds;
|
|
23107
23107
|
if (ArrayIsArray$1(untrustedConfig_recordIds)) {
|
|
@@ -23157,15 +23157,15 @@ function typeCheckConfig$P(untrustedConfig) {
|
|
|
23157
23157
|
}
|
|
23158
23158
|
return config;
|
|
23159
23159
|
}
|
|
23160
|
-
function validateAdapterConfig$
|
|
23160
|
+
function validateAdapterConfig$R(untrustedConfig, configPropertyNames) {
|
|
23161
23161
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
23162
23162
|
return null;
|
|
23163
23163
|
}
|
|
23164
23164
|
if (process.env.NODE_ENV !== 'production') {
|
|
23165
23165
|
validateConfig(untrustedConfig, configPropertyNames, oneOfConfigPropertiesIdentifier);
|
|
23166
23166
|
}
|
|
23167
|
-
const coercedConfig = coerceConfig$
|
|
23168
|
-
const config = typeCheckConfig$
|
|
23167
|
+
const coercedConfig = coerceConfig$q(untrustedConfig);
|
|
23168
|
+
const config = typeCheckConfig$Q(coercedConfig);
|
|
23169
23169
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
23170
23170
|
return null;
|
|
23171
23171
|
}
|
|
@@ -23176,31 +23176,31 @@ function validateAdapterConfig$Q(untrustedConfig, configPropertyNames) {
|
|
|
23176
23176
|
return config;
|
|
23177
23177
|
}
|
|
23178
23178
|
function adapterFragment$w(luvio, config) {
|
|
23179
|
-
createResourceParams$
|
|
23180
|
-
return select$
|
|
23179
|
+
createResourceParams$K(config);
|
|
23180
|
+
return select$2l();
|
|
23181
23181
|
}
|
|
23182
23182
|
function onFetchResponseSuccess$A(luvio, config, resourceParams, response) {
|
|
23183
|
-
const snapshot = ingestSuccess$
|
|
23183
|
+
const snapshot = ingestSuccess$C(luvio, resourceParams, response, {
|
|
23184
23184
|
config,
|
|
23185
|
-
resolve: () => buildNetworkSnapshot$
|
|
23185
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions)
|
|
23186
23186
|
});
|
|
23187
23187
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
23188
23188
|
}
|
|
23189
23189
|
function onFetchResponseError$A(luvio, config, resourceParams, response) {
|
|
23190
23190
|
const snapshot = ingestError$x(luvio, resourceParams, response, {
|
|
23191
23191
|
config,
|
|
23192
|
-
resolve: () => buildNetworkSnapshot$
|
|
23192
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions)
|
|
23193
23193
|
});
|
|
23194
23194
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
23195
23195
|
}
|
|
23196
|
-
function buildNetworkSnapshot$
|
|
23197
|
-
const resourceParams = createResourceParams$
|
|
23198
|
-
const request = createResourceRequest$
|
|
23196
|
+
function buildNetworkSnapshot$O(luvio, config, options) {
|
|
23197
|
+
const resourceParams = createResourceParams$K(config);
|
|
23198
|
+
const request = createResourceRequest$P(resourceParams);
|
|
23199
23199
|
return luvio.dispatchResourceRequest(request, options)
|
|
23200
23200
|
.then((response) => {
|
|
23201
23201
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$A(luvio, config, resourceParams, response), () => {
|
|
23202
23202
|
const cache = new StoreKeyMap();
|
|
23203
|
-
getResponseCacheKeys$
|
|
23203
|
+
getResponseCacheKeys$L(cache, luvio, resourceParams, response.body);
|
|
23204
23204
|
return cache;
|
|
23205
23205
|
});
|
|
23206
23206
|
}, (response) => {
|
|
@@ -23222,7 +23222,7 @@ function buildNetworkSnapshotCachePolicy$E(context, coercedAdapterRequestContext
|
|
|
23222
23222
|
priority: networkPriority
|
|
23223
23223
|
};
|
|
23224
23224
|
}
|
|
23225
|
-
return buildNetworkSnapshot$
|
|
23225
|
+
return buildNetworkSnapshot$O(luvio, config, dispatchOptions);
|
|
23226
23226
|
}
|
|
23227
23227
|
function buildCachedSnapshotCachePolicy$D(context, storeLookup) {
|
|
23228
23228
|
const { luvio, config } = context;
|
|
@@ -23233,12 +23233,12 @@ function buildCachedSnapshotCachePolicy$D(context, storeLookup) {
|
|
|
23233
23233
|
};
|
|
23234
23234
|
const cacheSnapshot = storeLookup(selector, {
|
|
23235
23235
|
config,
|
|
23236
|
-
resolve: () => buildNetworkSnapshot$
|
|
23236
|
+
resolve: () => buildNetworkSnapshot$O(luvio, config, snapshotRefreshOptions)
|
|
23237
23237
|
});
|
|
23238
23238
|
return cacheSnapshot;
|
|
23239
23239
|
}
|
|
23240
23240
|
const getRecordActionsAdapterFactory = (luvio) => function UiApi__getRecordActions(untrustedConfig, requestContext) {
|
|
23241
|
-
const config = validateAdapterConfig$
|
|
23241
|
+
const config = validateAdapterConfig$R(untrustedConfig, getRecordActions_ConfigPropertyNames);
|
|
23242
23242
|
// Invalid or incomplete config
|
|
23243
23243
|
if (config === null) {
|
|
23244
23244
|
return null;
|
|
@@ -23247,22 +23247,22 @@ const getRecordActionsAdapterFactory = (luvio) => function UiApi__getRecordActio
|
|
|
23247
23247
|
buildCachedSnapshotCachePolicy$D, buildNetworkSnapshotCachePolicy$E);
|
|
23248
23248
|
};
|
|
23249
23249
|
|
|
23250
|
-
function select$
|
|
23251
|
-
return select$
|
|
23250
|
+
function select$2k(luvio, params) {
|
|
23251
|
+
return select$2t();
|
|
23252
23252
|
}
|
|
23253
23253
|
function keyBuilder$2p(luvio, params) {
|
|
23254
23254
|
return keyPrefix + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'recordIds:' + params.urlParams.recordIds + ')';
|
|
23255
23255
|
}
|
|
23256
|
-
function getResponseCacheKeys$
|
|
23256
|
+
function getResponseCacheKeys$K(storeKeyMap, luvio, resourceParams, response) {
|
|
23257
23257
|
getTypeCacheKeys$1G(storeKeyMap, luvio, response, () => keyBuilder$2p(luvio, resourceParams));
|
|
23258
23258
|
}
|
|
23259
|
-
function ingestSuccess$
|
|
23259
|
+
function ingestSuccess$B(luvio, resourceParams, response, snapshotRefresh) {
|
|
23260
23260
|
const { body } = response;
|
|
23261
23261
|
const key = keyBuilder$2p(luvio, resourceParams);
|
|
23262
23262
|
luvio.storeIngest(key, ingest$1C, body);
|
|
23263
23263
|
const snapshot = luvio.storeLookup({
|
|
23264
23264
|
recordId: key,
|
|
23265
|
-
node: select$
|
|
23265
|
+
node: select$2k(),
|
|
23266
23266
|
variables: {},
|
|
23267
23267
|
}, snapshotRefresh);
|
|
23268
23268
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -23285,7 +23285,7 @@ function ingestError$w(luvio, params, error, snapshotRefresh) {
|
|
|
23285
23285
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
23286
23286
|
return errorSnapshot;
|
|
23287
23287
|
}
|
|
23288
|
-
function createResourceRequest$
|
|
23288
|
+
function createResourceRequest$O(config) {
|
|
23289
23289
|
const headers = {};
|
|
23290
23290
|
return {
|
|
23291
23291
|
baseUri: '/services/data/v59.0',
|
|
@@ -23306,7 +23306,7 @@ const getRecordEditActions_ConfigPropertyNames = {
|
|
|
23306
23306
|
optional: ['actionTypes', 'formFactor', 'sections']
|
|
23307
23307
|
}
|
|
23308
23308
|
};
|
|
23309
|
-
function createResourceParams$
|
|
23309
|
+
function createResourceParams$J(config) {
|
|
23310
23310
|
const resourceParams = {
|
|
23311
23311
|
urlParams: {
|
|
23312
23312
|
recordIds: config.recordIds
|
|
@@ -23317,7 +23317,7 @@ function createResourceParams$I(config) {
|
|
|
23317
23317
|
};
|
|
23318
23318
|
return resourceParams;
|
|
23319
23319
|
}
|
|
23320
|
-
function coerceConfig$
|
|
23320
|
+
function coerceConfig$p(config) {
|
|
23321
23321
|
const coercedConfig = {};
|
|
23322
23322
|
const recordIds = getRecordId18Array(config.recordIds);
|
|
23323
23323
|
if (recordIds !== undefined) {
|
|
@@ -23338,10 +23338,10 @@ function coerceConfig$o(config) {
|
|
|
23338
23338
|
return coercedConfig;
|
|
23339
23339
|
}
|
|
23340
23340
|
function keyBuilder$2o(luvio, config) {
|
|
23341
|
-
const resourceParams = createResourceParams$
|
|
23341
|
+
const resourceParams = createResourceParams$J(config);
|
|
23342
23342
|
return keyBuilder$2p(luvio, resourceParams);
|
|
23343
23343
|
}
|
|
23344
|
-
function typeCheckConfig$
|
|
23344
|
+
function typeCheckConfig$P(untrustedConfig) {
|
|
23345
23345
|
const config = {};
|
|
23346
23346
|
const untrustedConfig_recordIds = untrustedConfig.recordIds;
|
|
23347
23347
|
if (ArrayIsArray$1(untrustedConfig_recordIds)) {
|
|
@@ -23382,46 +23382,46 @@ function typeCheckConfig$O(untrustedConfig) {
|
|
|
23382
23382
|
}
|
|
23383
23383
|
return config;
|
|
23384
23384
|
}
|
|
23385
|
-
function validateAdapterConfig$
|
|
23385
|
+
function validateAdapterConfig$Q(untrustedConfig, configPropertyNames) {
|
|
23386
23386
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
23387
23387
|
return null;
|
|
23388
23388
|
}
|
|
23389
23389
|
if (process.env.NODE_ENV !== 'production') {
|
|
23390
23390
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
23391
23391
|
}
|
|
23392
|
-
const coercedConfig = coerceConfig$
|
|
23393
|
-
const config = typeCheckConfig$
|
|
23392
|
+
const coercedConfig = coerceConfig$p(untrustedConfig);
|
|
23393
|
+
const config = typeCheckConfig$P(coercedConfig);
|
|
23394
23394
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
23395
23395
|
return null;
|
|
23396
23396
|
}
|
|
23397
23397
|
return config;
|
|
23398
23398
|
}
|
|
23399
23399
|
function adapterFragment$v(luvio, config) {
|
|
23400
|
-
createResourceParams$
|
|
23401
|
-
return select$
|
|
23400
|
+
createResourceParams$J(config);
|
|
23401
|
+
return select$2k();
|
|
23402
23402
|
}
|
|
23403
23403
|
function onFetchResponseSuccess$z(luvio, config, resourceParams, response) {
|
|
23404
|
-
const snapshot = ingestSuccess$
|
|
23404
|
+
const snapshot = ingestSuccess$B(luvio, resourceParams, response, {
|
|
23405
23405
|
config,
|
|
23406
|
-
resolve: () => buildNetworkSnapshot$
|
|
23406
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions)
|
|
23407
23407
|
});
|
|
23408
23408
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
23409
23409
|
}
|
|
23410
23410
|
function onFetchResponseError$z(luvio, config, resourceParams, response) {
|
|
23411
23411
|
const snapshot = ingestError$w(luvio, resourceParams, response, {
|
|
23412
23412
|
config,
|
|
23413
|
-
resolve: () => buildNetworkSnapshot$
|
|
23413
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions)
|
|
23414
23414
|
});
|
|
23415
23415
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
23416
23416
|
}
|
|
23417
|
-
function buildNetworkSnapshot$
|
|
23418
|
-
const resourceParams = createResourceParams$
|
|
23419
|
-
const request = createResourceRequest$
|
|
23417
|
+
function buildNetworkSnapshot$N(luvio, config, options) {
|
|
23418
|
+
const resourceParams = createResourceParams$J(config);
|
|
23419
|
+
const request = createResourceRequest$O(resourceParams);
|
|
23420
23420
|
return luvio.dispatchResourceRequest(request, options)
|
|
23421
23421
|
.then((response) => {
|
|
23422
23422
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$z(luvio, config, resourceParams, response), () => {
|
|
23423
23423
|
const cache = new StoreKeyMap();
|
|
23424
|
-
getResponseCacheKeys$
|
|
23424
|
+
getResponseCacheKeys$K(cache, luvio, resourceParams, response.body);
|
|
23425
23425
|
return cache;
|
|
23426
23426
|
});
|
|
23427
23427
|
}, (response) => {
|
|
@@ -23443,7 +23443,7 @@ function buildNetworkSnapshotCachePolicy$D(context, coercedAdapterRequestContext
|
|
|
23443
23443
|
priority: networkPriority
|
|
23444
23444
|
};
|
|
23445
23445
|
}
|
|
23446
|
-
return buildNetworkSnapshot$
|
|
23446
|
+
return buildNetworkSnapshot$N(luvio, config, dispatchOptions);
|
|
23447
23447
|
}
|
|
23448
23448
|
function buildCachedSnapshotCachePolicy$C(context, storeLookup) {
|
|
23449
23449
|
const { luvio, config } = context;
|
|
@@ -23454,12 +23454,12 @@ function buildCachedSnapshotCachePolicy$C(context, storeLookup) {
|
|
|
23454
23454
|
};
|
|
23455
23455
|
const cacheSnapshot = storeLookup(selector, {
|
|
23456
23456
|
config,
|
|
23457
|
-
resolve: () => buildNetworkSnapshot$
|
|
23457
|
+
resolve: () => buildNetworkSnapshot$N(luvio, config, snapshotRefreshOptions)
|
|
23458
23458
|
});
|
|
23459
23459
|
return cacheSnapshot;
|
|
23460
23460
|
}
|
|
23461
23461
|
const getRecordEditActionsAdapterFactory = (luvio) => function UiApi__getRecordEditActions(untrustedConfig, requestContext) {
|
|
23462
|
-
const config = validateAdapterConfig$
|
|
23462
|
+
const config = validateAdapterConfig$Q(untrustedConfig, getRecordEditActions_ConfigPropertyNames);
|
|
23463
23463
|
// Invalid or incomplete config
|
|
23464
23464
|
if (config === null) {
|
|
23465
23465
|
return null;
|
|
@@ -23538,22 +23538,22 @@ function validate$15(obj, path = 'ActionRelatedListSingleBatchInputRepresentatio
|
|
|
23538
23538
|
return v_error === undefined ? null : v_error;
|
|
23539
23539
|
}
|
|
23540
23540
|
|
|
23541
|
-
function select$
|
|
23542
|
-
return select$
|
|
23541
|
+
function select$2j(luvio, params) {
|
|
23542
|
+
return select$2t();
|
|
23543
23543
|
}
|
|
23544
23544
|
function keyBuilder$2n(luvio, params) {
|
|
23545
23545
|
return keyPrefix + '::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) + ')';
|
|
23546
23546
|
}
|
|
23547
|
-
function getResponseCacheKeys$
|
|
23547
|
+
function getResponseCacheKeys$J(storeKeyMap, luvio, resourceParams, response) {
|
|
23548
23548
|
getTypeCacheKeys$1G(storeKeyMap, luvio, response, () => keyBuilder$2n(luvio, resourceParams));
|
|
23549
23549
|
}
|
|
23550
|
-
function ingestSuccess$
|
|
23550
|
+
function ingestSuccess$A(luvio, resourceParams, response, snapshotRefresh) {
|
|
23551
23551
|
const { body } = response;
|
|
23552
23552
|
const key = keyBuilder$2n(luvio, resourceParams);
|
|
23553
23553
|
luvio.storeIngest(key, ingest$1C, body);
|
|
23554
23554
|
const snapshot = luvio.storeLookup({
|
|
23555
23555
|
recordId: key,
|
|
23556
|
-
node: select$
|
|
23556
|
+
node: select$2j(),
|
|
23557
23557
|
variables: {},
|
|
23558
23558
|
}, snapshotRefresh);
|
|
23559
23559
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -23576,7 +23576,7 @@ function ingestError$v(luvio, params, error, snapshotRefresh) {
|
|
|
23576
23576
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
23577
23577
|
return errorSnapshot;
|
|
23578
23578
|
}
|
|
23579
|
-
function createResourceRequest$
|
|
23579
|
+
function createResourceRequest$N(config) {
|
|
23580
23580
|
const headers = {};
|
|
23581
23581
|
return {
|
|
23582
23582
|
baseUri: '/services/data/v59.0',
|
|
@@ -23624,7 +23624,7 @@ const createChildResourceParams$7 = (resourceParams) => {
|
|
|
23624
23624
|
// HUGE BLOCK OF COPY PASTED CODE:
|
|
23625
23625
|
// WE NEED TO DO THIS SO THAT THE ADAPTER CAN USE ONLY OUR OVERRIDE FILE
|
|
23626
23626
|
// PLEASE DO NOT CHANGE ANYTHING HERE...
|
|
23627
|
-
function select$
|
|
23627
|
+
function select$2i(luvio, resourceParams) {
|
|
23628
23628
|
const childResources = createChildResourceParams$7(resourceParams);
|
|
23629
23629
|
const envelopeBodyPath = 'result';
|
|
23630
23630
|
const envelopeStatusCodePath = 'statusCode';
|
|
@@ -23641,7 +23641,7 @@ function select$2h(luvio, resourceParams) {
|
|
|
23641
23641
|
reader.enterPath(i);
|
|
23642
23642
|
const childResource = childResources[i];
|
|
23643
23643
|
const childKey = keyBuilder$2n(luvio, childResource);
|
|
23644
|
-
const childFragment = select$
|
|
23644
|
+
const childFragment = select$2j();
|
|
23645
23645
|
const childSnapshot = reader.read({
|
|
23646
23646
|
recordId: childKey,
|
|
23647
23647
|
node: childFragment,
|
|
@@ -23695,7 +23695,7 @@ function keyBuilder$2m(luvio, params) {
|
|
|
23695
23695
|
params.body.relatedListsActionParameters +
|
|
23696
23696
|
')');
|
|
23697
23697
|
}
|
|
23698
|
-
function ingestSuccess$
|
|
23698
|
+
function ingestSuccess$z(luvio, resourceParams, response, _snapshotRefresh) {
|
|
23699
23699
|
const childEnvelopes = response.body.results;
|
|
23700
23700
|
const childResourceParamsArray = createChildResourceParams$7(resourceParams);
|
|
23701
23701
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -23723,7 +23723,7 @@ function ingestSuccess$y(luvio, resourceParams, response, _snapshotRefresh) {
|
|
|
23723
23723
|
statusText: childStatusCodeText,
|
|
23724
23724
|
headers: {},
|
|
23725
23725
|
};
|
|
23726
|
-
const childSnapshot = ingestSuccess$
|
|
23726
|
+
const childSnapshot = ingestSuccess$A(luvio, childResourceParams, childResponse);
|
|
23727
23727
|
seenRecords.merge(childSnapshot.seenRecords);
|
|
23728
23728
|
seenRecords.add(childSnapshot.recordId);
|
|
23729
23729
|
if (childSnapshot.state === 'Pending') {
|
|
@@ -23766,7 +23766,7 @@ function ingestSuccess$y(luvio, resourceParams, response, _snapshotRefresh) {
|
|
|
23766
23766
|
seenRecords: seenRecords,
|
|
23767
23767
|
select: {
|
|
23768
23768
|
recordId: key,
|
|
23769
|
-
node: select$
|
|
23769
|
+
node: select$2i(luvio, resourceParams),
|
|
23770
23770
|
variables: {},
|
|
23771
23771
|
},
|
|
23772
23772
|
variables: {},
|
|
@@ -23778,7 +23778,7 @@ function ingestError$u(luvio, params, error, snapshotRefresh) {
|
|
|
23778
23778
|
luvio.storeIngestError(key, errorSnapshot);
|
|
23779
23779
|
return errorSnapshot;
|
|
23780
23780
|
}
|
|
23781
|
-
function getResponseCacheKeys$
|
|
23781
|
+
function getResponseCacheKeys$I(keys, luvio, resourceParams, response) {
|
|
23782
23782
|
const childEnvelopes = response.results;
|
|
23783
23783
|
const childResourceParamsArray = createChildResourceParams$7(resourceParams);
|
|
23784
23784
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -23795,7 +23795,7 @@ function getResponseCacheKeys$H(keys, luvio, resourceParams, response) {
|
|
|
23795
23795
|
const childResult = childEnvelopes[index];
|
|
23796
23796
|
const { statusCode: childStatusCode, result: childBody } = childResult;
|
|
23797
23797
|
if (childStatusCode === 200) {
|
|
23798
|
-
getResponseCacheKeys$
|
|
23798
|
+
getResponseCacheKeys$J(keys, luvio, childResourceParams, childBody);
|
|
23799
23799
|
}
|
|
23800
23800
|
else if (childStatusCode === 404) {
|
|
23801
23801
|
const childKey = keyBuilder$2n(luvio, childResourceParams);
|
|
@@ -23807,7 +23807,7 @@ function getResponseCacheKeys$H(keys, luvio, resourceParams, response) {
|
|
|
23807
23807
|
}
|
|
23808
23808
|
}
|
|
23809
23809
|
}
|
|
23810
|
-
function createResourceRequest$
|
|
23810
|
+
function createResourceRequest$M(config) {
|
|
23811
23811
|
const headers = {};
|
|
23812
23812
|
return {
|
|
23813
23813
|
baseUri: '/services/data/v59.0',
|
|
@@ -23828,7 +23828,7 @@ const getRelatedListsActions_ConfigPropertyNames = {
|
|
|
23828
23828
|
optional: []
|
|
23829
23829
|
}
|
|
23830
23830
|
};
|
|
23831
|
-
function createResourceParams$
|
|
23831
|
+
function createResourceParams$I(config) {
|
|
23832
23832
|
const resourceParams = {
|
|
23833
23833
|
urlParams: {
|
|
23834
23834
|
recordIds: config.recordIds
|
|
@@ -23839,7 +23839,7 @@ function createResourceParams$H(config) {
|
|
|
23839
23839
|
};
|
|
23840
23840
|
return resourceParams;
|
|
23841
23841
|
}
|
|
23842
|
-
function coerceConfig$
|
|
23842
|
+
function coerceConfig$o(config) {
|
|
23843
23843
|
const coercedConfig = {};
|
|
23844
23844
|
const recordIds = getRecordId18Array(config.recordIds);
|
|
23845
23845
|
if (recordIds !== undefined) {
|
|
@@ -23852,10 +23852,10 @@ function coerceConfig$n(config) {
|
|
|
23852
23852
|
return coercedConfig;
|
|
23853
23853
|
}
|
|
23854
23854
|
function keyBuilder$2l(luvio, config) {
|
|
23855
|
-
const resourceParams = createResourceParams$
|
|
23855
|
+
const resourceParams = createResourceParams$I(config);
|
|
23856
23856
|
return keyBuilder$2m(luvio, resourceParams);
|
|
23857
23857
|
}
|
|
23858
|
-
function typeCheckConfig$
|
|
23858
|
+
function typeCheckConfig$O(untrustedConfig) {
|
|
23859
23859
|
const config = {};
|
|
23860
23860
|
const untrustedConfig_recordIds = untrustedConfig.recordIds;
|
|
23861
23861
|
if (ArrayIsArray$1(untrustedConfig_recordIds)) {
|
|
@@ -23882,43 +23882,43 @@ function typeCheckConfig$N(untrustedConfig) {
|
|
|
23882
23882
|
}
|
|
23883
23883
|
return config;
|
|
23884
23884
|
}
|
|
23885
|
-
function validateAdapterConfig$
|
|
23885
|
+
function validateAdapterConfig$P(untrustedConfig, configPropertyNames) {
|
|
23886
23886
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
23887
23887
|
return null;
|
|
23888
23888
|
}
|
|
23889
23889
|
if (process.env.NODE_ENV !== 'production') {
|
|
23890
23890
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
23891
23891
|
}
|
|
23892
|
-
const coercedConfig = coerceConfig$
|
|
23893
|
-
const config = typeCheckConfig$
|
|
23892
|
+
const coercedConfig = coerceConfig$o(untrustedConfig);
|
|
23893
|
+
const config = typeCheckConfig$O(coercedConfig);
|
|
23894
23894
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
23895
23895
|
return null;
|
|
23896
23896
|
}
|
|
23897
23897
|
return config;
|
|
23898
23898
|
}
|
|
23899
23899
|
function adapterFragment$u(luvio, config) {
|
|
23900
|
-
const resourceParams = createResourceParams$
|
|
23901
|
-
return select$
|
|
23900
|
+
const resourceParams = createResourceParams$I(config);
|
|
23901
|
+
return select$2i(luvio, resourceParams);
|
|
23902
23902
|
}
|
|
23903
23903
|
function onFetchResponseSuccess$y(luvio, config, resourceParams, response) {
|
|
23904
|
-
const snapshot = ingestSuccess$
|
|
23904
|
+
const snapshot = ingestSuccess$z(luvio, resourceParams, response);
|
|
23905
23905
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
23906
23906
|
}
|
|
23907
23907
|
function onFetchResponseError$y(luvio, config, resourceParams, response) {
|
|
23908
23908
|
const snapshot = ingestError$u(luvio, resourceParams, response, {
|
|
23909
23909
|
config,
|
|
23910
|
-
resolve: () => buildNetworkSnapshot$
|
|
23910
|
+
resolve: () => buildNetworkSnapshot$M(luvio, config, snapshotRefreshOptions)
|
|
23911
23911
|
});
|
|
23912
23912
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
23913
23913
|
}
|
|
23914
|
-
function buildNetworkSnapshot$
|
|
23915
|
-
const resourceParams = createResourceParams$
|
|
23916
|
-
const request = createResourceRequest$
|
|
23914
|
+
function buildNetworkSnapshot$M(luvio, config, options) {
|
|
23915
|
+
const resourceParams = createResourceParams$I(config);
|
|
23916
|
+
const request = createResourceRequest$M(resourceParams);
|
|
23917
23917
|
return luvio.dispatchResourceRequest(request, options)
|
|
23918
23918
|
.then((response) => {
|
|
23919
23919
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$y(luvio, config, resourceParams, response), () => {
|
|
23920
23920
|
const cache = new StoreKeyMap();
|
|
23921
|
-
getResponseCacheKeys$
|
|
23921
|
+
getResponseCacheKeys$I(cache, luvio, resourceParams, response.body);
|
|
23922
23922
|
return cache;
|
|
23923
23923
|
});
|
|
23924
23924
|
}, (response) => {
|
|
@@ -23940,7 +23940,7 @@ function buildNetworkSnapshotCachePolicy$C(context, coercedAdapterRequestContext
|
|
|
23940
23940
|
priority: networkPriority
|
|
23941
23941
|
};
|
|
23942
23942
|
}
|
|
23943
|
-
return buildNetworkSnapshot$
|
|
23943
|
+
return buildNetworkSnapshot$M(luvio, config, dispatchOptions);
|
|
23944
23944
|
}
|
|
23945
23945
|
function buildCachedSnapshotCachePolicy$B(context, storeLookup) {
|
|
23946
23946
|
const { luvio, config } = context;
|
|
@@ -23951,12 +23951,12 @@ function buildCachedSnapshotCachePolicy$B(context, storeLookup) {
|
|
|
23951
23951
|
};
|
|
23952
23952
|
const cacheSnapshot = storeLookup(selector, {
|
|
23953
23953
|
config,
|
|
23954
|
-
resolve: () => buildNetworkSnapshot$
|
|
23954
|
+
resolve: () => buildNetworkSnapshot$M(luvio, config, snapshotRefreshOptions)
|
|
23955
23955
|
});
|
|
23956
23956
|
return cacheSnapshot;
|
|
23957
23957
|
}
|
|
23958
23958
|
const getRelatedListsActionsAdapterFactory = (luvio) => function UiApi__getRelatedListsActions(untrustedConfig, requestContext) {
|
|
23959
|
-
const config = validateAdapterConfig$
|
|
23959
|
+
const config = validateAdapterConfig$P(untrustedConfig, getRelatedListsActions_ConfigPropertyNames);
|
|
23960
23960
|
// Invalid or incomplete config
|
|
23961
23961
|
if (config === null) {
|
|
23962
23962
|
return null;
|
|
@@ -23972,7 +23972,7 @@ const getRelatedListActions_ConfigPropertyNames = {
|
|
|
23972
23972
|
optional: ['actionTypes', 'apiNames', 'formFactor', 'retrievalMode', 'sections']
|
|
23973
23973
|
}
|
|
23974
23974
|
};
|
|
23975
|
-
function createResourceParams$
|
|
23975
|
+
function createResourceParams$H(config) {
|
|
23976
23976
|
const resourceParams = {
|
|
23977
23977
|
urlParams: {
|
|
23978
23978
|
recordIds: config.recordIds, relatedListId: config.relatedListId
|
|
@@ -23996,7 +23996,7 @@ function createResourceParams$G(config) {
|
|
|
23996
23996
|
}
|
|
23997
23997
|
return resourceParams;
|
|
23998
23998
|
}
|
|
23999
|
-
function coerceConfig$
|
|
23999
|
+
function coerceConfig$n(config) {
|
|
24000
24000
|
const coercedConfig = {};
|
|
24001
24001
|
const recordIds = getRecordId18Array(config.recordIds);
|
|
24002
24002
|
if (recordIds !== undefined) {
|
|
@@ -24029,10 +24029,10 @@ function coerceConfig$m(config) {
|
|
|
24029
24029
|
return coercedConfig;
|
|
24030
24030
|
}
|
|
24031
24031
|
function keyBuilder$2k(luvio, config) {
|
|
24032
|
-
const resourceParams = createResourceParams$
|
|
24032
|
+
const resourceParams = createResourceParams$H(config);
|
|
24033
24033
|
return keyBuilder$2n(luvio, resourceParams);
|
|
24034
24034
|
}
|
|
24035
|
-
function typeCheckConfig$
|
|
24035
|
+
function typeCheckConfig$N(untrustedConfig) {
|
|
24036
24036
|
const config = {};
|
|
24037
24037
|
const untrustedConfig_recordIds = untrustedConfig.recordIds;
|
|
24038
24038
|
if (ArrayIsArray$1(untrustedConfig_recordIds)) {
|
|
@@ -24092,46 +24092,46 @@ function typeCheckConfig$M(untrustedConfig) {
|
|
|
24092
24092
|
}
|
|
24093
24093
|
return config;
|
|
24094
24094
|
}
|
|
24095
|
-
function validateAdapterConfig$
|
|
24095
|
+
function validateAdapterConfig$O(untrustedConfig, configPropertyNames) {
|
|
24096
24096
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
24097
24097
|
return null;
|
|
24098
24098
|
}
|
|
24099
24099
|
if (process.env.NODE_ENV !== 'production') {
|
|
24100
24100
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
24101
24101
|
}
|
|
24102
|
-
const coercedConfig = coerceConfig$
|
|
24103
|
-
const config = typeCheckConfig$
|
|
24102
|
+
const coercedConfig = coerceConfig$n(untrustedConfig);
|
|
24103
|
+
const config = typeCheckConfig$N(coercedConfig);
|
|
24104
24104
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
24105
24105
|
return null;
|
|
24106
24106
|
}
|
|
24107
24107
|
return config;
|
|
24108
24108
|
}
|
|
24109
24109
|
function adapterFragment$t(luvio, config) {
|
|
24110
|
-
createResourceParams$
|
|
24111
|
-
return select$
|
|
24110
|
+
createResourceParams$H(config);
|
|
24111
|
+
return select$2j();
|
|
24112
24112
|
}
|
|
24113
24113
|
function onFetchResponseSuccess$x(luvio, config, resourceParams, response) {
|
|
24114
|
-
const snapshot = ingestSuccess$
|
|
24114
|
+
const snapshot = ingestSuccess$A(luvio, resourceParams, response, {
|
|
24115
24115
|
config,
|
|
24116
|
-
resolve: () => buildNetworkSnapshot$
|
|
24116
|
+
resolve: () => buildNetworkSnapshot$L(luvio, config, snapshotRefreshOptions)
|
|
24117
24117
|
});
|
|
24118
24118
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
24119
24119
|
}
|
|
24120
24120
|
function onFetchResponseError$x(luvio, config, resourceParams, response) {
|
|
24121
24121
|
const snapshot = ingestError$v(luvio, resourceParams, response, {
|
|
24122
24122
|
config,
|
|
24123
|
-
resolve: () => buildNetworkSnapshot$
|
|
24123
|
+
resolve: () => buildNetworkSnapshot$L(luvio, config, snapshotRefreshOptions)
|
|
24124
24124
|
});
|
|
24125
24125
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
24126
24126
|
}
|
|
24127
|
-
function buildNetworkSnapshot$
|
|
24128
|
-
const resourceParams = createResourceParams$
|
|
24129
|
-
const request = createResourceRequest$
|
|
24127
|
+
function buildNetworkSnapshot$L(luvio, config, options) {
|
|
24128
|
+
const resourceParams = createResourceParams$H(config);
|
|
24129
|
+
const request = createResourceRequest$N(resourceParams);
|
|
24130
24130
|
return luvio.dispatchResourceRequest(request, options)
|
|
24131
24131
|
.then((response) => {
|
|
24132
24132
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$x(luvio, config, resourceParams, response), () => {
|
|
24133
24133
|
const cache = new StoreKeyMap();
|
|
24134
|
-
getResponseCacheKeys$
|
|
24134
|
+
getResponseCacheKeys$J(cache, luvio, resourceParams, response.body);
|
|
24135
24135
|
return cache;
|
|
24136
24136
|
});
|
|
24137
24137
|
}, (response) => {
|
|
@@ -24153,7 +24153,7 @@ function buildNetworkSnapshotCachePolicy$B(context, coercedAdapterRequestContext
|
|
|
24153
24153
|
priority: networkPriority
|
|
24154
24154
|
};
|
|
24155
24155
|
}
|
|
24156
|
-
return buildNetworkSnapshot$
|
|
24156
|
+
return buildNetworkSnapshot$L(luvio, config, dispatchOptions);
|
|
24157
24157
|
}
|
|
24158
24158
|
function buildCachedSnapshotCachePolicy$A(context, storeLookup) {
|
|
24159
24159
|
const { luvio, config } = context;
|
|
@@ -24164,12 +24164,12 @@ function buildCachedSnapshotCachePolicy$A(context, storeLookup) {
|
|
|
24164
24164
|
};
|
|
24165
24165
|
const cacheSnapshot = storeLookup(selector, {
|
|
24166
24166
|
config,
|
|
24167
|
-
resolve: () => buildNetworkSnapshot$
|
|
24167
|
+
resolve: () => buildNetworkSnapshot$L(luvio, config, snapshotRefreshOptions)
|
|
24168
24168
|
});
|
|
24169
24169
|
return cacheSnapshot;
|
|
24170
24170
|
}
|
|
24171
24171
|
const getRelatedListActionsAdapterFactory = (luvio) => function UiApi__getRelatedListActions(untrustedConfig, requestContext) {
|
|
24172
|
-
const config = validateAdapterConfig$
|
|
24172
|
+
const config = validateAdapterConfig$O(untrustedConfig, getRelatedListActions_ConfigPropertyNames);
|
|
24173
24173
|
// Invalid or incomplete config
|
|
24174
24174
|
if (config === null) {
|
|
24175
24175
|
return null;
|
|
@@ -24178,22 +24178,22 @@ const getRelatedListActionsAdapterFactory = (luvio) => function UiApi__getRelate
|
|
|
24178
24178
|
buildCachedSnapshotCachePolicy$A, buildNetworkSnapshotCachePolicy$B);
|
|
24179
24179
|
};
|
|
24180
24180
|
|
|
24181
|
-
function select$
|
|
24182
|
-
return select$
|
|
24181
|
+
function select$2h(luvio, params) {
|
|
24182
|
+
return select$2t();
|
|
24183
24183
|
}
|
|
24184
24184
|
function keyBuilder$2j(luvio, params) {
|
|
24185
24185
|
return keyPrefix + '::ActionRepresentation:(' + 'actionTypes:' + params.queryParams.actionTypes + ',' + 'formFactor:' + params.queryParams.formFactor + ',' + 'sections:' + params.queryParams.sections + ',' + 'recordIds:' + params.urlParams.recordIds + ',' + 'relatedListRecordIds:' + params.urlParams.relatedListRecordIds + ')';
|
|
24186
24186
|
}
|
|
24187
|
-
function getResponseCacheKeys$
|
|
24187
|
+
function getResponseCacheKeys$H(storeKeyMap, luvio, resourceParams, response) {
|
|
24188
24188
|
getTypeCacheKeys$1G(storeKeyMap, luvio, response, () => keyBuilder$2j(luvio, resourceParams));
|
|
24189
24189
|
}
|
|
24190
|
-
function ingestSuccess$
|
|
24190
|
+
function ingestSuccess$y(luvio, resourceParams, response, snapshotRefresh) {
|
|
24191
24191
|
const { body } = response;
|
|
24192
24192
|
const key = keyBuilder$2j(luvio, resourceParams);
|
|
24193
24193
|
luvio.storeIngest(key, ingest$1C, body);
|
|
24194
24194
|
const snapshot = luvio.storeLookup({
|
|
24195
24195
|
recordId: key,
|
|
24196
|
-
node: select$
|
|
24196
|
+
node: select$2h(),
|
|
24197
24197
|
variables: {},
|
|
24198
24198
|
}, snapshotRefresh);
|
|
24199
24199
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -24216,7 +24216,7 @@ function ingestError$t(luvio, params, error, snapshotRefresh) {
|
|
|
24216
24216
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
24217
24217
|
return errorSnapshot;
|
|
24218
24218
|
}
|
|
24219
|
-
function createResourceRequest$
|
|
24219
|
+
function createResourceRequest$L(config) {
|
|
24220
24220
|
const headers = {};
|
|
24221
24221
|
return {
|
|
24222
24222
|
baseUri: '/services/data/v59.0',
|
|
@@ -24237,7 +24237,7 @@ const getRelatedListRecordActions_ConfigPropertyNames = {
|
|
|
24237
24237
|
optional: ['actionTypes', 'formFactor', 'sections']
|
|
24238
24238
|
}
|
|
24239
24239
|
};
|
|
24240
|
-
function createResourceParams$
|
|
24240
|
+
function createResourceParams$G(config) {
|
|
24241
24241
|
const resourceParams = {
|
|
24242
24242
|
urlParams: {
|
|
24243
24243
|
recordIds: config.recordIds, relatedListRecordIds: config.relatedListRecordIds
|
|
@@ -24248,7 +24248,7 @@ function createResourceParams$F(config) {
|
|
|
24248
24248
|
};
|
|
24249
24249
|
return resourceParams;
|
|
24250
24250
|
}
|
|
24251
|
-
function coerceConfig$
|
|
24251
|
+
function coerceConfig$m(config) {
|
|
24252
24252
|
const coercedConfig = {};
|
|
24253
24253
|
const recordIds = getRecordId18Array(config.recordIds);
|
|
24254
24254
|
if (recordIds !== undefined) {
|
|
@@ -24273,10 +24273,10 @@ function coerceConfig$l(config) {
|
|
|
24273
24273
|
return coercedConfig;
|
|
24274
24274
|
}
|
|
24275
24275
|
function keyBuilder$2i(luvio, config) {
|
|
24276
|
-
const resourceParams = createResourceParams$
|
|
24276
|
+
const resourceParams = createResourceParams$G(config);
|
|
24277
24277
|
return keyBuilder$2j(luvio, resourceParams);
|
|
24278
24278
|
}
|
|
24279
|
-
function typeCheckConfig$
|
|
24279
|
+
function typeCheckConfig$M(untrustedConfig) {
|
|
24280
24280
|
const config = {};
|
|
24281
24281
|
const untrustedConfig_recordIds = untrustedConfig.recordIds;
|
|
24282
24282
|
if (ArrayIsArray$1(untrustedConfig_recordIds)) {
|
|
@@ -24328,46 +24328,46 @@ function typeCheckConfig$L(untrustedConfig) {
|
|
|
24328
24328
|
}
|
|
24329
24329
|
return config;
|
|
24330
24330
|
}
|
|
24331
|
-
function validateAdapterConfig$
|
|
24331
|
+
function validateAdapterConfig$N(untrustedConfig, configPropertyNames) {
|
|
24332
24332
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
24333
24333
|
return null;
|
|
24334
24334
|
}
|
|
24335
24335
|
if (process.env.NODE_ENV !== 'production') {
|
|
24336
24336
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
24337
24337
|
}
|
|
24338
|
-
const coercedConfig = coerceConfig$
|
|
24339
|
-
const config = typeCheckConfig$
|
|
24338
|
+
const coercedConfig = coerceConfig$m(untrustedConfig);
|
|
24339
|
+
const config = typeCheckConfig$M(coercedConfig);
|
|
24340
24340
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
24341
24341
|
return null;
|
|
24342
24342
|
}
|
|
24343
24343
|
return config;
|
|
24344
24344
|
}
|
|
24345
24345
|
function adapterFragment$s(luvio, config) {
|
|
24346
|
-
createResourceParams$
|
|
24347
|
-
return select$
|
|
24346
|
+
createResourceParams$G(config);
|
|
24347
|
+
return select$2h();
|
|
24348
24348
|
}
|
|
24349
24349
|
function onFetchResponseSuccess$w(luvio, config, resourceParams, response) {
|
|
24350
|
-
const snapshot = ingestSuccess$
|
|
24350
|
+
const snapshot = ingestSuccess$y(luvio, resourceParams, response, {
|
|
24351
24351
|
config,
|
|
24352
|
-
resolve: () => buildNetworkSnapshot$
|
|
24352
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions)
|
|
24353
24353
|
});
|
|
24354
24354
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
24355
24355
|
}
|
|
24356
24356
|
function onFetchResponseError$w(luvio, config, resourceParams, response) {
|
|
24357
24357
|
const snapshot = ingestError$t(luvio, resourceParams, response, {
|
|
24358
24358
|
config,
|
|
24359
|
-
resolve: () => buildNetworkSnapshot$
|
|
24359
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions)
|
|
24360
24360
|
});
|
|
24361
24361
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
24362
24362
|
}
|
|
24363
|
-
function buildNetworkSnapshot$
|
|
24364
|
-
const resourceParams = createResourceParams$
|
|
24365
|
-
const request = createResourceRequest$
|
|
24363
|
+
function buildNetworkSnapshot$K(luvio, config, options) {
|
|
24364
|
+
const resourceParams = createResourceParams$G(config);
|
|
24365
|
+
const request = createResourceRequest$L(resourceParams);
|
|
24366
24366
|
return luvio.dispatchResourceRequest(request, options)
|
|
24367
24367
|
.then((response) => {
|
|
24368
24368
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$w(luvio, config, resourceParams, response), () => {
|
|
24369
24369
|
const cache = new StoreKeyMap();
|
|
24370
|
-
getResponseCacheKeys$
|
|
24370
|
+
getResponseCacheKeys$H(cache, luvio, resourceParams, response.body);
|
|
24371
24371
|
return cache;
|
|
24372
24372
|
});
|
|
24373
24373
|
}, (response) => {
|
|
@@ -24389,7 +24389,7 @@ function buildNetworkSnapshotCachePolicy$A(context, coercedAdapterRequestContext
|
|
|
24389
24389
|
priority: networkPriority
|
|
24390
24390
|
};
|
|
24391
24391
|
}
|
|
24392
|
-
return buildNetworkSnapshot$
|
|
24392
|
+
return buildNetworkSnapshot$K(luvio, config, dispatchOptions);
|
|
24393
24393
|
}
|
|
24394
24394
|
function buildCachedSnapshotCachePolicy$z(context, storeLookup) {
|
|
24395
24395
|
const { luvio, config } = context;
|
|
@@ -24400,12 +24400,12 @@ function buildCachedSnapshotCachePolicy$z(context, storeLookup) {
|
|
|
24400
24400
|
};
|
|
24401
24401
|
const cacheSnapshot = storeLookup(selector, {
|
|
24402
24402
|
config,
|
|
24403
|
-
resolve: () => buildNetworkSnapshot$
|
|
24403
|
+
resolve: () => buildNetworkSnapshot$K(luvio, config, snapshotRefreshOptions)
|
|
24404
24404
|
});
|
|
24405
24405
|
return cacheSnapshot;
|
|
24406
24406
|
}
|
|
24407
24407
|
const getRelatedListRecordActionsAdapterFactory = (luvio) => function UiApi__getRelatedListRecordActions(untrustedConfig, requestContext) {
|
|
24408
|
-
const config = validateAdapterConfig$
|
|
24408
|
+
const config = validateAdapterConfig$N(untrustedConfig, getRelatedListRecordActions_ConfigPropertyNames);
|
|
24409
24409
|
// Invalid or incomplete config
|
|
24410
24410
|
if (config === null) {
|
|
24411
24411
|
return null;
|
|
@@ -24460,7 +24460,7 @@ const RepresentationType$C = 'PageReferenceRepresentation';
|
|
|
24460
24460
|
function normalize$v(input, existing, path, luvio, store, timestamp) {
|
|
24461
24461
|
return input;
|
|
24462
24462
|
}
|
|
24463
|
-
const select$
|
|
24463
|
+
const select$2g = function PageReferenceRepresentationSelect() {
|
|
24464
24464
|
return {
|
|
24465
24465
|
kind: 'Fragment',
|
|
24466
24466
|
version: VERSION$1X,
|
|
@@ -24752,7 +24752,7 @@ function normalize$u(input, existing, path, luvio, store, timestamp) {
|
|
|
24752
24752
|
}
|
|
24753
24753
|
return input;
|
|
24754
24754
|
}
|
|
24755
|
-
const select$
|
|
24755
|
+
const select$2f = function NavItemRepresentationSelect() {
|
|
24756
24756
|
return {
|
|
24757
24757
|
kind: 'Fragment',
|
|
24758
24758
|
version: VERSION$1W,
|
|
@@ -24814,7 +24814,7 @@ const select$2e = function NavItemRepresentationSelect() {
|
|
|
24814
24814
|
name: 'pageReference',
|
|
24815
24815
|
kind: 'Link',
|
|
24816
24816
|
nullable: true,
|
|
24817
|
-
fragment: select$
|
|
24817
|
+
fragment: select$2g()
|
|
24818
24818
|
},
|
|
24819
24819
|
{
|
|
24820
24820
|
name: 'standardType',
|
|
@@ -25199,7 +25199,7 @@ function normalize$t(input, existing, path, luvio, store, timestamp) {
|
|
|
25199
25199
|
}
|
|
25200
25200
|
return input;
|
|
25201
25201
|
}
|
|
25202
|
-
const select$
|
|
25202
|
+
const select$2e = function AppRepresentationSelect() {
|
|
25203
25203
|
return {
|
|
25204
25204
|
kind: 'Fragment',
|
|
25205
25205
|
version: VERSION$1V,
|
|
@@ -25260,7 +25260,7 @@ const select$2d = function AppRepresentationSelect() {
|
|
|
25260
25260
|
name: 'navItems',
|
|
25261
25261
|
kind: 'Link',
|
|
25262
25262
|
plural: true,
|
|
25263
|
-
fragment: select$
|
|
25263
|
+
fragment: select$2f()
|
|
25264
25264
|
},
|
|
25265
25265
|
{
|
|
25266
25266
|
name: 'selected',
|
|
@@ -25278,7 +25278,7 @@ const select$2d = function AppRepresentationSelect() {
|
|
|
25278
25278
|
name: 'userNavItems',
|
|
25279
25279
|
kind: 'Link',
|
|
25280
25280
|
plural: true,
|
|
25281
|
-
fragment: select$
|
|
25281
|
+
fragment: select$2f()
|
|
25282
25282
|
}
|
|
25283
25283
|
]
|
|
25284
25284
|
};
|
|
@@ -25486,7 +25486,7 @@ function normalize$s(input, existing, path, luvio, store, timestamp) {
|
|
|
25486
25486
|
}
|
|
25487
25487
|
return input;
|
|
25488
25488
|
}
|
|
25489
|
-
const select$
|
|
25489
|
+
const select$2d = function AppsRepresentationSelect() {
|
|
25490
25490
|
return {
|
|
25491
25491
|
kind: 'Fragment',
|
|
25492
25492
|
version: VERSION$1U,
|
|
@@ -25498,7 +25498,7 @@ const select$2c = function AppsRepresentationSelect() {
|
|
|
25498
25498
|
name: 'apps',
|
|
25499
25499
|
kind: 'Link',
|
|
25500
25500
|
plural: true,
|
|
25501
|
-
fragment: select$
|
|
25501
|
+
fragment: select$2e()
|
|
25502
25502
|
}
|
|
25503
25503
|
]
|
|
25504
25504
|
};
|
|
@@ -25565,22 +25565,22 @@ function getTypeCacheKeys$1z(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
25565
25565
|
}
|
|
25566
25566
|
}
|
|
25567
25567
|
|
|
25568
|
-
function select$
|
|
25569
|
-
return select$
|
|
25568
|
+
function select$2c(luvio, params) {
|
|
25569
|
+
return select$2d();
|
|
25570
25570
|
}
|
|
25571
25571
|
function keyBuilder$2f(luvio, params) {
|
|
25572
25572
|
return keyPrefix + '::AppsRepresentation:(' + 'formFactor:' + params.queryParams.formFactor + ',' + 'userCustomizations:' + params.queryParams.userCustomizations + ')';
|
|
25573
25573
|
}
|
|
25574
|
-
function getResponseCacheKeys$
|
|
25574
|
+
function getResponseCacheKeys$G(storeKeyMap, luvio, resourceParams, response) {
|
|
25575
25575
|
getTypeCacheKeys$1z(storeKeyMap, luvio, response, () => keyBuilder$2f(luvio, resourceParams));
|
|
25576
25576
|
}
|
|
25577
|
-
function ingestSuccess$
|
|
25577
|
+
function ingestSuccess$x(luvio, resourceParams, response, snapshotRefresh) {
|
|
25578
25578
|
const { body } = response;
|
|
25579
25579
|
const key = keyBuilder$2f(luvio, resourceParams);
|
|
25580
25580
|
luvio.storeIngest(key, ingest$1w, body);
|
|
25581
25581
|
const snapshot = luvio.storeLookup({
|
|
25582
25582
|
recordId: key,
|
|
25583
|
-
node: select$
|
|
25583
|
+
node: select$2c(),
|
|
25584
25584
|
variables: {},
|
|
25585
25585
|
}, snapshotRefresh);
|
|
25586
25586
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -25603,7 +25603,7 @@ function ingestError$s(luvio, params, error, snapshotRefresh) {
|
|
|
25603
25603
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
25604
25604
|
return errorSnapshot;
|
|
25605
25605
|
}
|
|
25606
|
-
function createResourceRequest$
|
|
25606
|
+
function createResourceRequest$K(config) {
|
|
25607
25607
|
const headers = {};
|
|
25608
25608
|
return {
|
|
25609
25609
|
baseUri: '/services/data/v59.0',
|
|
@@ -25624,7 +25624,7 @@ const getAllApps_ConfigPropertyNames = {
|
|
|
25624
25624
|
optional: ['userCustomizations']
|
|
25625
25625
|
}
|
|
25626
25626
|
};
|
|
25627
|
-
function createResourceParams$
|
|
25627
|
+
function createResourceParams$F(config) {
|
|
25628
25628
|
const resourceParams = {
|
|
25629
25629
|
queryParams: {
|
|
25630
25630
|
formFactor: config.formFactor, userCustomizations: config.userCustomizations
|
|
@@ -25632,7 +25632,7 @@ function createResourceParams$E(config) {
|
|
|
25632
25632
|
};
|
|
25633
25633
|
return resourceParams;
|
|
25634
25634
|
}
|
|
25635
|
-
function coerceConfig$
|
|
25635
|
+
function coerceConfig$l(config) {
|
|
25636
25636
|
const coercedConfig = {};
|
|
25637
25637
|
const formFactor = coerceFormFactor(config.formFactor);
|
|
25638
25638
|
if (formFactor !== undefined) {
|
|
@@ -25645,10 +25645,10 @@ function coerceConfig$k(config) {
|
|
|
25645
25645
|
return coercedConfig;
|
|
25646
25646
|
}
|
|
25647
25647
|
function keyBuilder$2e(luvio, config) {
|
|
25648
|
-
const resourceParams = createResourceParams$
|
|
25648
|
+
const resourceParams = createResourceParams$F(config);
|
|
25649
25649
|
return keyBuilder$2f(luvio, resourceParams);
|
|
25650
25650
|
}
|
|
25651
|
-
function typeCheckConfig$
|
|
25651
|
+
function typeCheckConfig$L(untrustedConfig) {
|
|
25652
25652
|
const config = {};
|
|
25653
25653
|
const untrustedConfig_formFactor = untrustedConfig.formFactor;
|
|
25654
25654
|
if (typeof untrustedConfig_formFactor === 'string') {
|
|
@@ -25660,46 +25660,46 @@ function typeCheckConfig$K(untrustedConfig) {
|
|
|
25660
25660
|
}
|
|
25661
25661
|
return config;
|
|
25662
25662
|
}
|
|
25663
|
-
function validateAdapterConfig$
|
|
25663
|
+
function validateAdapterConfig$M(untrustedConfig, configPropertyNames) {
|
|
25664
25664
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
25665
25665
|
return null;
|
|
25666
25666
|
}
|
|
25667
25667
|
if (process.env.NODE_ENV !== 'production') {
|
|
25668
25668
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
25669
25669
|
}
|
|
25670
|
-
const coercedConfig = coerceConfig$
|
|
25671
|
-
const config = typeCheckConfig$
|
|
25670
|
+
const coercedConfig = coerceConfig$l(untrustedConfig);
|
|
25671
|
+
const config = typeCheckConfig$L(coercedConfig);
|
|
25672
25672
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
25673
25673
|
return null;
|
|
25674
25674
|
}
|
|
25675
25675
|
return config;
|
|
25676
25676
|
}
|
|
25677
25677
|
function adapterFragment$r(luvio, config) {
|
|
25678
|
-
createResourceParams$
|
|
25679
|
-
return select$
|
|
25678
|
+
createResourceParams$F(config);
|
|
25679
|
+
return select$2c();
|
|
25680
25680
|
}
|
|
25681
25681
|
function onFetchResponseSuccess$v(luvio, config, resourceParams, response) {
|
|
25682
|
-
const snapshot = ingestSuccess$
|
|
25682
|
+
const snapshot = ingestSuccess$x(luvio, resourceParams, response, {
|
|
25683
25683
|
config,
|
|
25684
|
-
resolve: () => buildNetworkSnapshot$
|
|
25684
|
+
resolve: () => buildNetworkSnapshot$J(luvio, config, snapshotRefreshOptions)
|
|
25685
25685
|
});
|
|
25686
25686
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25687
25687
|
}
|
|
25688
25688
|
function onFetchResponseError$v(luvio, config, resourceParams, response) {
|
|
25689
25689
|
const snapshot = ingestError$s(luvio, resourceParams, response, {
|
|
25690
25690
|
config,
|
|
25691
|
-
resolve: () => buildNetworkSnapshot$
|
|
25691
|
+
resolve: () => buildNetworkSnapshot$J(luvio, config, snapshotRefreshOptions)
|
|
25692
25692
|
});
|
|
25693
25693
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25694
25694
|
}
|
|
25695
|
-
function buildNetworkSnapshot$
|
|
25696
|
-
const resourceParams = createResourceParams$
|
|
25697
|
-
const request = createResourceRequest$
|
|
25695
|
+
function buildNetworkSnapshot$J(luvio, config, options) {
|
|
25696
|
+
const resourceParams = createResourceParams$F(config);
|
|
25697
|
+
const request = createResourceRequest$K(resourceParams);
|
|
25698
25698
|
return luvio.dispatchResourceRequest(request, options)
|
|
25699
25699
|
.then((response) => {
|
|
25700
25700
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$v(luvio, config, resourceParams, response), () => {
|
|
25701
25701
|
const cache = new StoreKeyMap();
|
|
25702
|
-
getResponseCacheKeys$
|
|
25702
|
+
getResponseCacheKeys$G(cache, luvio, resourceParams, response.body);
|
|
25703
25703
|
return cache;
|
|
25704
25704
|
});
|
|
25705
25705
|
}, (response) => {
|
|
@@ -25721,7 +25721,7 @@ function buildNetworkSnapshotCachePolicy$z(context, coercedAdapterRequestContext
|
|
|
25721
25721
|
priority: networkPriority
|
|
25722
25722
|
};
|
|
25723
25723
|
}
|
|
25724
|
-
return buildNetworkSnapshot$
|
|
25724
|
+
return buildNetworkSnapshot$J(luvio, config, dispatchOptions);
|
|
25725
25725
|
}
|
|
25726
25726
|
function buildCachedSnapshotCachePolicy$y(context, storeLookup) {
|
|
25727
25727
|
const { luvio, config } = context;
|
|
@@ -25732,12 +25732,12 @@ function buildCachedSnapshotCachePolicy$y(context, storeLookup) {
|
|
|
25732
25732
|
};
|
|
25733
25733
|
const cacheSnapshot = storeLookup(selector, {
|
|
25734
25734
|
config,
|
|
25735
|
-
resolve: () => buildNetworkSnapshot$
|
|
25735
|
+
resolve: () => buildNetworkSnapshot$J(luvio, config, snapshotRefreshOptions)
|
|
25736
25736
|
});
|
|
25737
25737
|
return cacheSnapshot;
|
|
25738
25738
|
}
|
|
25739
25739
|
const getAllAppsAdapterFactory = (luvio) => function UiApi__getAllApps(untrustedConfig, requestContext) {
|
|
25740
|
-
const config = validateAdapterConfig$
|
|
25740
|
+
const config = validateAdapterConfig$M(untrustedConfig, getAllApps_ConfigPropertyNames);
|
|
25741
25741
|
// Invalid or incomplete config
|
|
25742
25742
|
if (config === null) {
|
|
25743
25743
|
return null;
|
|
@@ -25746,24 +25746,24 @@ const getAllAppsAdapterFactory = (luvio) => function UiApi__getAllApps(untrusted
|
|
|
25746
25746
|
buildCachedSnapshotCachePolicy$y, buildNetworkSnapshotCachePolicy$z);
|
|
25747
25747
|
};
|
|
25748
25748
|
|
|
25749
|
-
function select$
|
|
25750
|
-
return select$
|
|
25749
|
+
function select$2a(luvio, params) {
|
|
25750
|
+
return select$2e();
|
|
25751
25751
|
}
|
|
25752
25752
|
function keyBuilder$2b(luvio, params) {
|
|
25753
25753
|
return keyBuilder$2g(luvio, {
|
|
25754
25754
|
appId: params.urlParams.appId
|
|
25755
25755
|
});
|
|
25756
25756
|
}
|
|
25757
|
-
function getResponseCacheKeys$
|
|
25757
|
+
function getResponseCacheKeys$E(storeKeyMap, luvio, resourceParams, response) {
|
|
25758
25758
|
getTypeCacheKeys$1A(storeKeyMap, luvio, response);
|
|
25759
25759
|
}
|
|
25760
|
-
function ingestSuccess$
|
|
25760
|
+
function ingestSuccess$v(luvio, resourceParams, response, snapshotRefresh) {
|
|
25761
25761
|
const { body } = response;
|
|
25762
25762
|
const key = keyBuilder$2b(luvio, resourceParams);
|
|
25763
25763
|
luvio.storeIngest(key, ingest$1x, body);
|
|
25764
25764
|
const snapshot = luvio.storeLookup({
|
|
25765
25765
|
recordId: key,
|
|
25766
|
-
node: select$
|
|
25766
|
+
node: select$2a(),
|
|
25767
25767
|
variables: {},
|
|
25768
25768
|
}, snapshotRefresh);
|
|
25769
25769
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -25786,7 +25786,7 @@ function ingestError$q(luvio, params, error, snapshotRefresh) {
|
|
|
25786
25786
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
25787
25787
|
return errorSnapshot;
|
|
25788
25788
|
}
|
|
25789
|
-
function createResourceRequest$
|
|
25789
|
+
function createResourceRequest$I(config) {
|
|
25790
25790
|
const headers = {};
|
|
25791
25791
|
return {
|
|
25792
25792
|
baseUri: '/services/data/v59.0',
|
|
@@ -25807,7 +25807,7 @@ const getAppDetails_ConfigPropertyNames = {
|
|
|
25807
25807
|
optional: ['userCustomizations']
|
|
25808
25808
|
}
|
|
25809
25809
|
};
|
|
25810
|
-
function createResourceParams$
|
|
25810
|
+
function createResourceParams$D(config) {
|
|
25811
25811
|
const resourceParams = {
|
|
25812
25812
|
urlParams: {
|
|
25813
25813
|
appId: config.appId
|
|
@@ -25818,7 +25818,7 @@ function createResourceParams$C(config) {
|
|
|
25818
25818
|
};
|
|
25819
25819
|
return resourceParams;
|
|
25820
25820
|
}
|
|
25821
|
-
function coerceConfig$
|
|
25821
|
+
function coerceConfig$k(config) {
|
|
25822
25822
|
const coercedConfig = {};
|
|
25823
25823
|
const appId = config.appId;
|
|
25824
25824
|
if (appId !== undefined) {
|
|
@@ -25835,10 +25835,10 @@ function coerceConfig$j(config) {
|
|
|
25835
25835
|
return coercedConfig;
|
|
25836
25836
|
}
|
|
25837
25837
|
function keyBuilder$2a(luvio, config) {
|
|
25838
|
-
const resourceParams = createResourceParams$
|
|
25838
|
+
const resourceParams = createResourceParams$D(config);
|
|
25839
25839
|
return keyBuilder$2b(luvio, resourceParams);
|
|
25840
25840
|
}
|
|
25841
|
-
function typeCheckConfig$
|
|
25841
|
+
function typeCheckConfig$J(untrustedConfig) {
|
|
25842
25842
|
const config = {};
|
|
25843
25843
|
const untrustedConfig_appId = untrustedConfig.appId;
|
|
25844
25844
|
if (typeof untrustedConfig_appId === 'string') {
|
|
@@ -25854,46 +25854,46 @@ function typeCheckConfig$I(untrustedConfig) {
|
|
|
25854
25854
|
}
|
|
25855
25855
|
return config;
|
|
25856
25856
|
}
|
|
25857
|
-
function validateAdapterConfig$
|
|
25857
|
+
function validateAdapterConfig$K(untrustedConfig, configPropertyNames) {
|
|
25858
25858
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
25859
25859
|
return null;
|
|
25860
25860
|
}
|
|
25861
25861
|
if (process.env.NODE_ENV !== 'production') {
|
|
25862
25862
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
25863
25863
|
}
|
|
25864
|
-
const coercedConfig = coerceConfig$
|
|
25865
|
-
const config = typeCheckConfig$
|
|
25864
|
+
const coercedConfig = coerceConfig$k(untrustedConfig);
|
|
25865
|
+
const config = typeCheckConfig$J(coercedConfig);
|
|
25866
25866
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
25867
25867
|
return null;
|
|
25868
25868
|
}
|
|
25869
25869
|
return config;
|
|
25870
25870
|
}
|
|
25871
25871
|
function adapterFragment$p(luvio, config) {
|
|
25872
|
-
createResourceParams$
|
|
25873
|
-
return select$
|
|
25872
|
+
createResourceParams$D(config);
|
|
25873
|
+
return select$2a();
|
|
25874
25874
|
}
|
|
25875
25875
|
function onFetchResponseSuccess$t(luvio, config, resourceParams, response) {
|
|
25876
|
-
const snapshot = ingestSuccess$
|
|
25876
|
+
const snapshot = ingestSuccess$v(luvio, resourceParams, response, {
|
|
25877
25877
|
config,
|
|
25878
|
-
resolve: () => buildNetworkSnapshot$
|
|
25878
|
+
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions)
|
|
25879
25879
|
});
|
|
25880
25880
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25881
25881
|
}
|
|
25882
25882
|
function onFetchResponseError$t(luvio, config, resourceParams, response) {
|
|
25883
25883
|
const snapshot = ingestError$q(luvio, resourceParams, response, {
|
|
25884
25884
|
config,
|
|
25885
|
-
resolve: () => buildNetworkSnapshot$
|
|
25885
|
+
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions)
|
|
25886
25886
|
});
|
|
25887
25887
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
25888
25888
|
}
|
|
25889
|
-
function buildNetworkSnapshot$
|
|
25890
|
-
const resourceParams = createResourceParams$
|
|
25891
|
-
const request = createResourceRequest$
|
|
25889
|
+
function buildNetworkSnapshot$H(luvio, config, options) {
|
|
25890
|
+
const resourceParams = createResourceParams$D(config);
|
|
25891
|
+
const request = createResourceRequest$I(resourceParams);
|
|
25892
25892
|
return luvio.dispatchResourceRequest(request, options)
|
|
25893
25893
|
.then((response) => {
|
|
25894
25894
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$t(luvio, config, resourceParams, response), () => {
|
|
25895
25895
|
const cache = new StoreKeyMap();
|
|
25896
|
-
getResponseCacheKeys$
|
|
25896
|
+
getResponseCacheKeys$E(cache, luvio, resourceParams, response.body);
|
|
25897
25897
|
return cache;
|
|
25898
25898
|
});
|
|
25899
25899
|
}, (response) => {
|
|
@@ -25915,7 +25915,7 @@ function buildNetworkSnapshotCachePolicy$x(context, coercedAdapterRequestContext
|
|
|
25915
25915
|
priority: networkPriority
|
|
25916
25916
|
};
|
|
25917
25917
|
}
|
|
25918
|
-
return buildNetworkSnapshot$
|
|
25918
|
+
return buildNetworkSnapshot$H(luvio, config, dispatchOptions);
|
|
25919
25919
|
}
|
|
25920
25920
|
function buildCachedSnapshotCachePolicy$w(context, storeLookup) {
|
|
25921
25921
|
const { luvio, config } = context;
|
|
@@ -25926,12 +25926,12 @@ function buildCachedSnapshotCachePolicy$w(context, storeLookup) {
|
|
|
25926
25926
|
};
|
|
25927
25927
|
const cacheSnapshot = storeLookup(selector, {
|
|
25928
25928
|
config,
|
|
25929
|
-
resolve: () => buildNetworkSnapshot$
|
|
25929
|
+
resolve: () => buildNetworkSnapshot$H(luvio, config, snapshotRefreshOptions)
|
|
25930
25930
|
});
|
|
25931
25931
|
return cacheSnapshot;
|
|
25932
25932
|
}
|
|
25933
25933
|
const getAppDetailsAdapterFactory = (luvio) => function UiApi__getAppDetails(untrustedConfig, requestContext) {
|
|
25934
|
-
const config = validateAdapterConfig$
|
|
25934
|
+
const config = validateAdapterConfig$K(untrustedConfig, getAppDetails_ConfigPropertyNames);
|
|
25935
25935
|
// Invalid or incomplete config
|
|
25936
25936
|
if (config === null) {
|
|
25937
25937
|
return null;
|
|
@@ -25974,7 +25974,7 @@ function validate$10(obj, path = 'DuplicateRuleFilterItemRepresentation') {
|
|
|
25974
25974
|
})();
|
|
25975
25975
|
return v_error === undefined ? null : v_error;
|
|
25976
25976
|
}
|
|
25977
|
-
const select$
|
|
25977
|
+
const select$29 = function DuplicateRuleFilterItemRepresentationSelect() {
|
|
25978
25978
|
return {
|
|
25979
25979
|
kind: 'Fragment',
|
|
25980
25980
|
version: VERSION$1T,
|
|
@@ -26041,8 +26041,8 @@ function validate$$(obj, path = 'DuplicateRuleFilterRepresentation') {
|
|
|
26041
26041
|
})();
|
|
26042
26042
|
return v_error === undefined ? null : v_error;
|
|
26043
26043
|
}
|
|
26044
|
-
const select$
|
|
26045
|
-
const { selections: DuplicateRuleFilterItemRepresentation__selections, opaque: DuplicateRuleFilterItemRepresentation__opaque, } = select$
|
|
26044
|
+
const select$28 = function DuplicateRuleFilterRepresentationSelect() {
|
|
26045
|
+
const { selections: DuplicateRuleFilterItemRepresentation__selections, opaque: DuplicateRuleFilterItemRepresentation__opaque, } = select$29();
|
|
26046
26046
|
return {
|
|
26047
26047
|
kind: 'Fragment',
|
|
26048
26048
|
version: VERSION$1S,
|
|
@@ -26109,7 +26109,7 @@ function validate$_(obj, path = 'MatchRuleRepresentation') {
|
|
|
26109
26109
|
})();
|
|
26110
26110
|
return v_error === undefined ? null : v_error;
|
|
26111
26111
|
}
|
|
26112
|
-
const select$
|
|
26112
|
+
const select$27 = function MatchRuleRepresentationSelect() {
|
|
26113
26113
|
return {
|
|
26114
26114
|
kind: 'Fragment',
|
|
26115
26115
|
version: VERSION$1R,
|
|
@@ -26226,9 +26226,9 @@ function validate$Z(obj, path = 'DuplicateRuleRepresentation') {
|
|
|
26226
26226
|
})();
|
|
26227
26227
|
return v_error === undefined ? null : v_error;
|
|
26228
26228
|
}
|
|
26229
|
-
const select$
|
|
26230
|
-
const { selections: DuplicateRuleFilterRepresentation__selections, opaque: DuplicateRuleFilterRepresentation__opaque, } = select$
|
|
26231
|
-
const { selections: MatchRuleRepresentation__selections, opaque: MatchRuleRepresentation__opaque, } = select$
|
|
26229
|
+
const select$26 = function DuplicateRuleRepresentationSelect() {
|
|
26230
|
+
const { selections: DuplicateRuleFilterRepresentation__selections, opaque: DuplicateRuleFilterRepresentation__opaque, } = select$28();
|
|
26231
|
+
const { selections: MatchRuleRepresentation__selections, opaque: MatchRuleRepresentation__opaque, } = select$27();
|
|
26232
26232
|
return {
|
|
26233
26233
|
kind: 'Fragment',
|
|
26234
26234
|
version: VERSION$1Q,
|
|
@@ -26339,8 +26339,8 @@ const RepresentationType$y = 'DuplicatesConfigurationRepresentation';
|
|
|
26339
26339
|
function normalize$r(input, existing, path, luvio, store, timestamp) {
|
|
26340
26340
|
return input;
|
|
26341
26341
|
}
|
|
26342
|
-
const select$
|
|
26343
|
-
const { selections: DuplicateRuleRepresentation__selections, opaque: DuplicateRuleRepresentation__opaque, } = select$
|
|
26342
|
+
const select$25 = function DuplicatesConfigurationRepresentationSelect() {
|
|
26343
|
+
const { selections: DuplicateRuleRepresentation__selections, opaque: DuplicateRuleRepresentation__opaque, } = select$26();
|
|
26344
26344
|
return {
|
|
26345
26345
|
kind: 'Fragment',
|
|
26346
26346
|
version: VERSION$1P,
|
|
@@ -26420,22 +26420,22 @@ function getTypeCacheKeys$1y(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
26420
26420
|
});
|
|
26421
26421
|
}
|
|
26422
26422
|
|
|
26423
|
-
function select$
|
|
26424
|
-
return select$
|
|
26423
|
+
function select$24(luvio, params) {
|
|
26424
|
+
return select$25();
|
|
26425
26425
|
}
|
|
26426
26426
|
function keyBuilder$29(luvio, params) {
|
|
26427
26427
|
return keyPrefix + '::DuplicatesConfigurationRepresentation:(' + 'recordTypeId:' + params.queryParams.recordTypeId + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
26428
26428
|
}
|
|
26429
|
-
function getResponseCacheKeys$
|
|
26429
|
+
function getResponseCacheKeys$D(storeKeyMap, luvio, resourceParams, response) {
|
|
26430
26430
|
getTypeCacheKeys$1y(storeKeyMap, luvio, response, () => keyBuilder$29(luvio, resourceParams));
|
|
26431
26431
|
}
|
|
26432
|
-
function ingestSuccess$
|
|
26432
|
+
function ingestSuccess$u(luvio, resourceParams, response, snapshotRefresh) {
|
|
26433
26433
|
const { body } = response;
|
|
26434
26434
|
const key = keyBuilder$29(luvio, resourceParams);
|
|
26435
26435
|
luvio.storeIngest(key, ingest$1v, body);
|
|
26436
26436
|
const snapshot = luvio.storeLookup({
|
|
26437
26437
|
recordId: key,
|
|
26438
|
-
node: select$
|
|
26438
|
+
node: select$24(),
|
|
26439
26439
|
variables: {},
|
|
26440
26440
|
}, snapshotRefresh);
|
|
26441
26441
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -26458,7 +26458,7 @@ function ingestError$p(luvio, params, error, snapshotRefresh) {
|
|
|
26458
26458
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
26459
26459
|
return errorSnapshot;
|
|
26460
26460
|
}
|
|
26461
|
-
function createResourceRequest$
|
|
26461
|
+
function createResourceRequest$H(config) {
|
|
26462
26462
|
const headers = {};
|
|
26463
26463
|
return {
|
|
26464
26464
|
baseUri: '/services/data/v59.0',
|
|
@@ -26479,7 +26479,7 @@ const getDuplicateConfiguration_ConfigPropertyNames = {
|
|
|
26479
26479
|
optional: ['recordTypeId']
|
|
26480
26480
|
}
|
|
26481
26481
|
};
|
|
26482
|
-
function createResourceParams$
|
|
26482
|
+
function createResourceParams$C(config) {
|
|
26483
26483
|
const resourceParams = {
|
|
26484
26484
|
urlParams: {
|
|
26485
26485
|
objectApiName: config.objectApiName
|
|
@@ -26491,10 +26491,10 @@ function createResourceParams$B(config) {
|
|
|
26491
26491
|
return resourceParams;
|
|
26492
26492
|
}
|
|
26493
26493
|
function keyBuilder$28(luvio, config) {
|
|
26494
|
-
const resourceParams = createResourceParams$
|
|
26494
|
+
const resourceParams = createResourceParams$C(config);
|
|
26495
26495
|
return keyBuilder$29(luvio, resourceParams);
|
|
26496
26496
|
}
|
|
26497
|
-
function typeCheckConfig$
|
|
26497
|
+
function typeCheckConfig$I(untrustedConfig) {
|
|
26498
26498
|
const config = {};
|
|
26499
26499
|
const untrustedConfig_objectApiName = untrustedConfig.objectApiName;
|
|
26500
26500
|
if (typeof untrustedConfig_objectApiName === 'string') {
|
|
@@ -26506,45 +26506,45 @@ function typeCheckConfig$H(untrustedConfig) {
|
|
|
26506
26506
|
}
|
|
26507
26507
|
return config;
|
|
26508
26508
|
}
|
|
26509
|
-
function validateAdapterConfig$
|
|
26509
|
+
function validateAdapterConfig$J(untrustedConfig, configPropertyNames) {
|
|
26510
26510
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
26511
26511
|
return null;
|
|
26512
26512
|
}
|
|
26513
26513
|
if (process.env.NODE_ENV !== 'production') {
|
|
26514
26514
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
26515
26515
|
}
|
|
26516
|
-
const config = typeCheckConfig$
|
|
26516
|
+
const config = typeCheckConfig$I(untrustedConfig);
|
|
26517
26517
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
26518
26518
|
return null;
|
|
26519
26519
|
}
|
|
26520
26520
|
return config;
|
|
26521
26521
|
}
|
|
26522
26522
|
function adapterFragment$o(luvio, config) {
|
|
26523
|
-
createResourceParams$
|
|
26524
|
-
return select$
|
|
26523
|
+
createResourceParams$C(config);
|
|
26524
|
+
return select$24();
|
|
26525
26525
|
}
|
|
26526
26526
|
function onFetchResponseSuccess$s(luvio, config, resourceParams, response) {
|
|
26527
|
-
const snapshot = ingestSuccess$
|
|
26527
|
+
const snapshot = ingestSuccess$u(luvio, resourceParams, response, {
|
|
26528
26528
|
config,
|
|
26529
|
-
resolve: () => buildNetworkSnapshot$
|
|
26529
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions)
|
|
26530
26530
|
});
|
|
26531
26531
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
26532
26532
|
}
|
|
26533
26533
|
function onFetchResponseError$s(luvio, config, resourceParams, response) {
|
|
26534
26534
|
const snapshot = ingestError$p(luvio, resourceParams, response, {
|
|
26535
26535
|
config,
|
|
26536
|
-
resolve: () => buildNetworkSnapshot$
|
|
26536
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions)
|
|
26537
26537
|
});
|
|
26538
26538
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
26539
26539
|
}
|
|
26540
|
-
function buildNetworkSnapshot$
|
|
26541
|
-
const resourceParams = createResourceParams$
|
|
26542
|
-
const request = createResourceRequest$
|
|
26540
|
+
function buildNetworkSnapshot$G(luvio, config, options) {
|
|
26541
|
+
const resourceParams = createResourceParams$C(config);
|
|
26542
|
+
const request = createResourceRequest$H(resourceParams);
|
|
26543
26543
|
return luvio.dispatchResourceRequest(request, options)
|
|
26544
26544
|
.then((response) => {
|
|
26545
26545
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$s(luvio, config, resourceParams, response), () => {
|
|
26546
26546
|
const cache = new StoreKeyMap();
|
|
26547
|
-
getResponseCacheKeys$
|
|
26547
|
+
getResponseCacheKeys$D(cache, luvio, resourceParams, response.body);
|
|
26548
26548
|
return cache;
|
|
26549
26549
|
});
|
|
26550
26550
|
}, (response) => {
|
|
@@ -26566,7 +26566,7 @@ function buildNetworkSnapshotCachePolicy$w(context, coercedAdapterRequestContext
|
|
|
26566
26566
|
priority: networkPriority
|
|
26567
26567
|
};
|
|
26568
26568
|
}
|
|
26569
|
-
return buildNetworkSnapshot$
|
|
26569
|
+
return buildNetworkSnapshot$G(luvio, config, dispatchOptions);
|
|
26570
26570
|
}
|
|
26571
26571
|
function buildCachedSnapshotCachePolicy$v(context, storeLookup) {
|
|
26572
26572
|
const { luvio, config } = context;
|
|
@@ -26577,12 +26577,12 @@ function buildCachedSnapshotCachePolicy$v(context, storeLookup) {
|
|
|
26577
26577
|
};
|
|
26578
26578
|
const cacheSnapshot = storeLookup(selector, {
|
|
26579
26579
|
config,
|
|
26580
|
-
resolve: () => buildNetworkSnapshot$
|
|
26580
|
+
resolve: () => buildNetworkSnapshot$G(luvio, config, snapshotRefreshOptions)
|
|
26581
26581
|
});
|
|
26582
26582
|
return cacheSnapshot;
|
|
26583
26583
|
}
|
|
26584
26584
|
const getDuplicateConfigurationAdapterFactory = (luvio) => function UiApi__getDuplicateConfiguration(untrustedConfig, requestContext) {
|
|
26585
|
-
const config = validateAdapterConfig$
|
|
26585
|
+
const config = validateAdapterConfig$J(untrustedConfig, getDuplicateConfiguration_ConfigPropertyNames);
|
|
26586
26586
|
// Invalid or incomplete config
|
|
26587
26587
|
if (config === null) {
|
|
26588
26588
|
return null;
|
|
@@ -26594,7 +26594,7 @@ const getDuplicateConfigurationAdapterFactory = (luvio) => function UiApi__getDu
|
|
|
26594
26594
|
function keyBuilder$27(luvio, params) {
|
|
26595
26595
|
return keyPrefix + '::RecordLayoutRepresentation:(' + 'formFactor:' + params.queryParams.formFactor + ',' + 'layoutType:' + params.queryParams.layoutType + ',' + 'mode:' + params.queryParams.mode + ',' + 'recordTypeId:' + params.queryParams.recordTypeId + ',' + 'objectApiName:' + params.urlParams.objectApiName + ')';
|
|
26596
26596
|
}
|
|
26597
|
-
function getResponseCacheKeys$
|
|
26597
|
+
function getResponseCacheKeys$C(storeKeyMap, luvio, resourceParams, response) {
|
|
26598
26598
|
getTypeCacheKeys$1L(storeKeyMap, luvio, response);
|
|
26599
26599
|
}
|
|
26600
26600
|
function ingestError$o(luvio, params, error, snapshotRefresh) {
|
|
@@ -26609,7 +26609,7 @@ function ingestError$o(luvio, params, error, snapshotRefresh) {
|
|
|
26609
26609
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
26610
26610
|
return errorSnapshot;
|
|
26611
26611
|
}
|
|
26612
|
-
function createResourceRequest$
|
|
26612
|
+
function createResourceRequest$G(config) {
|
|
26613
26613
|
const headers = {};
|
|
26614
26614
|
return {
|
|
26615
26615
|
baseUri: '/services/data/v59.0',
|
|
@@ -26649,11 +26649,11 @@ function onFetchResponseSuccess$r(luvio, config, resourceParams, response) {
|
|
|
26649
26649
|
luvio.storeIngest(key, ingest$1I, body);
|
|
26650
26650
|
const snapshot = luvio.storeLookup({
|
|
26651
26651
|
recordId: key,
|
|
26652
|
-
node: select$
|
|
26652
|
+
node: select$2y(),
|
|
26653
26653
|
variables: {},
|
|
26654
26654
|
}, {
|
|
26655
26655
|
config,
|
|
26656
|
-
resolve: () => buildNetworkSnapshot$
|
|
26656
|
+
resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions),
|
|
26657
26657
|
});
|
|
26658
26658
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
26659
26659
|
}
|
|
@@ -26667,8 +26667,8 @@ const getLayout_ConfigPropertyNames = {
|
|
|
26667
26667
|
},
|
|
26668
26668
|
};
|
|
26669
26669
|
|
|
26670
|
-
function validateAdapterConfig$
|
|
26671
|
-
const config = validateAdapterConfig$
|
|
26670
|
+
function validateAdapterConfig$I(untrustedConfig, _configPropertyNames) {
|
|
26671
|
+
const config = validateAdapterConfig$H(untrustedConfig, getLayout_ConfigPropertyNames);
|
|
26672
26672
|
if (config === null) {
|
|
26673
26673
|
return null;
|
|
26674
26674
|
}
|
|
@@ -26695,16 +26695,16 @@ function buildCachedSnapshotCachePolicy$u(context, storeLookup) {
|
|
|
26695
26695
|
const { luvio, config } = context;
|
|
26696
26696
|
const selector = {
|
|
26697
26697
|
recordId: keyBuilder$2L(luvio, config),
|
|
26698
|
-
node: select$
|
|
26698
|
+
node: select$2y(),
|
|
26699
26699
|
variables: {},
|
|
26700
26700
|
};
|
|
26701
26701
|
return storeLookup(selector, {
|
|
26702
26702
|
config,
|
|
26703
|
-
resolve: () => buildNetworkSnapshot$
|
|
26703
|
+
resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions),
|
|
26704
26704
|
});
|
|
26705
26705
|
}
|
|
26706
26706
|
|
|
26707
|
-
function createResourceParams$
|
|
26707
|
+
function createResourceParams$B(config) {
|
|
26708
26708
|
const resourceParams = {
|
|
26709
26709
|
urlParams: {
|
|
26710
26710
|
objectApiName: config.objectApiName
|
|
@@ -26715,7 +26715,7 @@ function createResourceParams$A(config) {
|
|
|
26715
26715
|
};
|
|
26716
26716
|
return resourceParams;
|
|
26717
26717
|
}
|
|
26718
|
-
function coerceConfig$
|
|
26718
|
+
function coerceConfig$j(config) {
|
|
26719
26719
|
const coercedConfig = {};
|
|
26720
26720
|
const objectApiName = getObjectApiName$1(config.objectApiName);
|
|
26721
26721
|
if (objectApiName !== undefined) {
|
|
@@ -26739,7 +26739,7 @@ function coerceConfig$i(config) {
|
|
|
26739
26739
|
}
|
|
26740
26740
|
return coercedConfig;
|
|
26741
26741
|
}
|
|
26742
|
-
function typeCheckConfig$
|
|
26742
|
+
function typeCheckConfig$H(untrustedConfig) {
|
|
26743
26743
|
const config = {};
|
|
26744
26744
|
const untrustedConfig_objectApiName = untrustedConfig.objectApiName;
|
|
26745
26745
|
if (typeof untrustedConfig_objectApiName === 'string') {
|
|
@@ -26763,15 +26763,15 @@ function typeCheckConfig$G(untrustedConfig) {
|
|
|
26763
26763
|
}
|
|
26764
26764
|
return config;
|
|
26765
26765
|
}
|
|
26766
|
-
function validateAdapterConfig$
|
|
26766
|
+
function validateAdapterConfig$H(untrustedConfig, configPropertyNames) {
|
|
26767
26767
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
26768
26768
|
return null;
|
|
26769
26769
|
}
|
|
26770
26770
|
if (process.env.NODE_ENV !== 'production') {
|
|
26771
26771
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
26772
26772
|
}
|
|
26773
|
-
const coercedConfig = coerceConfig$
|
|
26774
|
-
const config = typeCheckConfig$
|
|
26773
|
+
const coercedConfig = coerceConfig$j(untrustedConfig);
|
|
26774
|
+
const config = typeCheckConfig$H(coercedConfig);
|
|
26775
26775
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
26776
26776
|
return null;
|
|
26777
26777
|
}
|
|
@@ -26780,18 +26780,18 @@ function validateAdapterConfig$G(untrustedConfig, configPropertyNames) {
|
|
|
26780
26780
|
function onFetchResponseError$r(luvio, config, resourceParams, response) {
|
|
26781
26781
|
const snapshot = ingestError$o(luvio, resourceParams, response, {
|
|
26782
26782
|
config,
|
|
26783
|
-
resolve: () => buildNetworkSnapshot$
|
|
26783
|
+
resolve: () => buildNetworkSnapshot$F(luvio, config, snapshotRefreshOptions)
|
|
26784
26784
|
});
|
|
26785
26785
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
26786
26786
|
}
|
|
26787
|
-
function buildNetworkSnapshot$
|
|
26788
|
-
const resourceParams = createResourceParams$
|
|
26789
|
-
const request = createResourceRequest$
|
|
26787
|
+
function buildNetworkSnapshot$F(luvio, config, options) {
|
|
26788
|
+
const resourceParams = createResourceParams$B(config);
|
|
26789
|
+
const request = createResourceRequest$G(resourceParams);
|
|
26790
26790
|
return luvio.dispatchResourceRequest(request, options)
|
|
26791
26791
|
.then((response) => {
|
|
26792
26792
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$r(luvio, config, resourceParams, response), () => {
|
|
26793
26793
|
const cache = new StoreKeyMap();
|
|
26794
|
-
getResponseCacheKeys$
|
|
26794
|
+
getResponseCacheKeys$C(cache, luvio, resourceParams, response.body);
|
|
26795
26795
|
return cache;
|
|
26796
26796
|
});
|
|
26797
26797
|
}, (response) => {
|
|
@@ -26813,10 +26813,10 @@ function buildNetworkSnapshotCachePolicy$v(context, coercedAdapterRequestContext
|
|
|
26813
26813
|
priority: networkPriority
|
|
26814
26814
|
};
|
|
26815
26815
|
}
|
|
26816
|
-
return buildNetworkSnapshot$
|
|
26816
|
+
return buildNetworkSnapshot$F(luvio, config, dispatchOptions);
|
|
26817
26817
|
}
|
|
26818
26818
|
const getLayoutAdapterFactory = (luvio) => function UiApi__getLayout(untrustedConfig, requestContext) {
|
|
26819
|
-
const config = validateAdapterConfig$
|
|
26819
|
+
const config = validateAdapterConfig$I(untrustedConfig);
|
|
26820
26820
|
// Invalid or incomplete config
|
|
26821
26821
|
if (config === null) {
|
|
26822
26822
|
return null;
|
|
@@ -26825,10 +26825,10 @@ const getLayoutAdapterFactory = (luvio) => function UiApi__getLayout(untrustedCo
|
|
|
26825
26825
|
buildCachedSnapshotCachePolicy$u, buildNetworkSnapshotCachePolicy$v);
|
|
26826
26826
|
};
|
|
26827
26827
|
|
|
26828
|
-
function getResponseCacheKeys$
|
|
26828
|
+
function getResponseCacheKeys$B(storeKeyMap, luvio, resourceParams, response) {
|
|
26829
26829
|
getTypeCacheKeys$1K(storeKeyMap, luvio, response);
|
|
26830
26830
|
}
|
|
26831
|
-
function createResourceRequest$
|
|
26831
|
+
function createResourceRequest$F(config) {
|
|
26832
26832
|
const headers = {};
|
|
26833
26833
|
return {
|
|
26834
26834
|
baseUri: '/services/data/v59.0',
|
|
@@ -26852,16 +26852,16 @@ function buildCachedSnapshot$5(luvio, config) {
|
|
|
26852
26852
|
});
|
|
26853
26853
|
const selector = {
|
|
26854
26854
|
recordId: key,
|
|
26855
|
-
node: select$
|
|
26855
|
+
node: select$2x(),
|
|
26856
26856
|
variables: {},
|
|
26857
26857
|
};
|
|
26858
26858
|
return luvio.storeLookup(selector, {
|
|
26859
26859
|
config,
|
|
26860
|
-
resolve: () => buildNetworkSnapshot$
|
|
26860
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config),
|
|
26861
26861
|
});
|
|
26862
26862
|
}
|
|
26863
26863
|
|
|
26864
|
-
function buildNetworkSnapshot$
|
|
26864
|
+
function buildNetworkSnapshot$E(luvio, config, context) {
|
|
26865
26865
|
const { resourceParams, request, key } = prepareRequest$3(luvio, config);
|
|
26866
26866
|
return luvio
|
|
26867
26867
|
.dispatchResourceRequest(request, context)
|
|
@@ -26870,7 +26870,7 @@ function buildNetworkSnapshot$D(luvio, config, context) {
|
|
|
26870
26870
|
return onFetchResponseSuccess$q(luvio, config, key, response);
|
|
26871
26871
|
}, () => {
|
|
26872
26872
|
const cache = new StoreKeyMap();
|
|
26873
|
-
getResponseCacheKeys$
|
|
26873
|
+
getResponseCacheKeys$B(cache, luvio, resourceParams, response.body);
|
|
26874
26874
|
return cache;
|
|
26875
26875
|
});
|
|
26876
26876
|
}, (error) => {
|
|
@@ -26892,7 +26892,7 @@ function onFetchResponseSuccess$q(luvio, config, key, response) {
|
|
|
26892
26892
|
function onFetchResponseError$q(luvio, config, key, error) {
|
|
26893
26893
|
const errorSnapshot = luvio.errorSnapshot(error, {
|
|
26894
26894
|
config,
|
|
26895
|
-
resolve: () => buildNetworkSnapshot$
|
|
26895
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config),
|
|
26896
26896
|
});
|
|
26897
26897
|
luvio.storeIngestError(key, errorSnapshot);
|
|
26898
26898
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
@@ -26913,12 +26913,12 @@ function prepareRequest$3(luvio, config) {
|
|
|
26913
26913
|
recordTypeId: config.recordTypeId,
|
|
26914
26914
|
},
|
|
26915
26915
|
};
|
|
26916
|
-
const request = createResourceRequest$
|
|
26916
|
+
const request = createResourceRequest$F(resourceParams);
|
|
26917
26917
|
return { resourceParams, request, key };
|
|
26918
26918
|
}
|
|
26919
26919
|
|
|
26920
|
-
function validateAdapterConfig$
|
|
26921
|
-
const config = validateAdapterConfig$
|
|
26920
|
+
function validateAdapterConfig$G(untrustedConfig, configPropertyNames) {
|
|
26921
|
+
const config = validateAdapterConfig$F(untrustedConfig, configPropertyNames);
|
|
26922
26922
|
if (config === null) {
|
|
26923
26923
|
return null;
|
|
26924
26924
|
}
|
|
@@ -26970,16 +26970,16 @@ function buildCachedSnapshotCachePolicy$t(context, storeLookup) {
|
|
|
26970
26970
|
layoutType,
|
|
26971
26971
|
mode,
|
|
26972
26972
|
}),
|
|
26973
|
-
node: select$
|
|
26973
|
+
node: select$2x(),
|
|
26974
26974
|
variables: {},
|
|
26975
26975
|
};
|
|
26976
26976
|
return storeLookup(selector, {
|
|
26977
26977
|
config,
|
|
26978
|
-
resolve: () => buildNetworkSnapshot$
|
|
26978
|
+
resolve: () => buildNetworkSnapshot$E(luvio, config),
|
|
26979
26979
|
});
|
|
26980
26980
|
}
|
|
26981
26981
|
|
|
26982
|
-
function coerceConfig$
|
|
26982
|
+
function coerceConfig$i(config) {
|
|
26983
26983
|
const coercedConfig = {};
|
|
26984
26984
|
const objectApiName = getObjectApiName$1(config.objectApiName);
|
|
26985
26985
|
if (objectApiName !== undefined) {
|
|
@@ -27003,7 +27003,7 @@ function coerceConfig$h(config) {
|
|
|
27003
27003
|
}
|
|
27004
27004
|
return coercedConfig;
|
|
27005
27005
|
}
|
|
27006
|
-
function typeCheckConfig$
|
|
27006
|
+
function typeCheckConfig$G(untrustedConfig) {
|
|
27007
27007
|
const config = {};
|
|
27008
27008
|
const untrustedConfig_objectApiName = untrustedConfig.objectApiName;
|
|
27009
27009
|
if (typeof untrustedConfig_objectApiName === 'string') {
|
|
@@ -27027,15 +27027,15 @@ function typeCheckConfig$F(untrustedConfig) {
|
|
|
27027
27027
|
}
|
|
27028
27028
|
return config;
|
|
27029
27029
|
}
|
|
27030
|
-
function validateAdapterConfig$
|
|
27030
|
+
function validateAdapterConfig$F(untrustedConfig, configPropertyNames) {
|
|
27031
27031
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
27032
27032
|
return null;
|
|
27033
27033
|
}
|
|
27034
27034
|
if (process.env.NODE_ENV !== 'production') {
|
|
27035
27035
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
27036
27036
|
}
|
|
27037
|
-
const coercedConfig = coerceConfig$
|
|
27038
|
-
const config = typeCheckConfig$
|
|
27037
|
+
const coercedConfig = coerceConfig$i(untrustedConfig);
|
|
27038
|
+
const config = typeCheckConfig$G(coercedConfig);
|
|
27039
27039
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
27040
27040
|
return null;
|
|
27041
27041
|
}
|
|
@@ -27056,10 +27056,10 @@ function buildNetworkSnapshotCachePolicy$u(context, coercedAdapterRequestContext
|
|
|
27056
27056
|
priority: networkPriority
|
|
27057
27057
|
};
|
|
27058
27058
|
}
|
|
27059
|
-
return buildNetworkSnapshot$
|
|
27059
|
+
return buildNetworkSnapshot$E(luvio, config, dispatchOptions);
|
|
27060
27060
|
}
|
|
27061
27061
|
const getLayoutUserStateAdapterFactory = (luvio) => function UiApi__getLayoutUserState(untrustedConfig, requestContext) {
|
|
27062
|
-
const config = validateAdapterConfig$
|
|
27062
|
+
const config = validateAdapterConfig$G(untrustedConfig, getLayoutUserState_ConfigPropertyNames);
|
|
27063
27063
|
// Invalid or incomplete config
|
|
27064
27064
|
if (config === null) {
|
|
27065
27065
|
return null;
|
|
@@ -27076,8 +27076,8 @@ function keyBuilder$26(luvio, params) {
|
|
|
27076
27076
|
});
|
|
27077
27077
|
}
|
|
27078
27078
|
|
|
27079
|
-
function select$
|
|
27080
|
-
return select$
|
|
27079
|
+
function select$23(luvio, params) {
|
|
27080
|
+
return select$2N();
|
|
27081
27081
|
}
|
|
27082
27082
|
function keyBuilder$25(luvio, params) {
|
|
27083
27083
|
return keyBuilder$32(luvio, {
|
|
@@ -27086,16 +27086,16 @@ function keyBuilder$25(luvio, params) {
|
|
|
27086
27086
|
type: "listView"
|
|
27087
27087
|
});
|
|
27088
27088
|
}
|
|
27089
|
-
function getResponseCacheKeys$
|
|
27089
|
+
function getResponseCacheKeys$A(storeKeyMap, luvio, resourceParams, response) {
|
|
27090
27090
|
getTypeCacheKeys$1V(storeKeyMap, luvio, response);
|
|
27091
27091
|
}
|
|
27092
|
-
function ingestSuccess$
|
|
27092
|
+
function ingestSuccess$t(luvio, resourceParams, response, snapshotRefresh) {
|
|
27093
27093
|
const { body } = response;
|
|
27094
27094
|
const key = keyBuilder$26(luvio, resourceParams);
|
|
27095
27095
|
luvio.storeIngest(key, ingest$1R, body);
|
|
27096
27096
|
const snapshot = luvio.storeLookup({
|
|
27097
27097
|
recordId: key,
|
|
27098
|
-
node: select$
|
|
27098
|
+
node: select$23(),
|
|
27099
27099
|
variables: {},
|
|
27100
27100
|
}, snapshotRefresh);
|
|
27101
27101
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -27118,7 +27118,7 @@ function ingestError$n(luvio, params, error, snapshotRefresh) {
|
|
|
27118
27118
|
luvio.storeIngestError(key, errorSnapshot, storeMetadataParams);
|
|
27119
27119
|
return errorSnapshot;
|
|
27120
27120
|
}
|
|
27121
|
-
function createResourceRequest$
|
|
27121
|
+
function createResourceRequest$E(config) {
|
|
27122
27122
|
const headers = {};
|
|
27123
27123
|
return {
|
|
27124
27124
|
baseUri: '/services/data/v59.0',
|
|
@@ -27185,7 +27185,7 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
|
|
|
27185
27185
|
reader.enterPath(envelopeBodyPath);
|
|
27186
27186
|
const childResource = childResources[i];
|
|
27187
27187
|
const childKey = keyBuilder$25(luvio, childResource);
|
|
27188
|
-
const childFragment = select$
|
|
27188
|
+
const childFragment = select$23();
|
|
27189
27189
|
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
27190
27190
|
const childSnapshot = reader.read({
|
|
27191
27191
|
recordId: childKey,
|
|
@@ -27269,7 +27269,7 @@ function selectChildResourceParams$6(luvio, childResources, resourceParams) {
|
|
|
27269
27269
|
},
|
|
27270
27270
|
};
|
|
27271
27271
|
}
|
|
27272
|
-
function select$
|
|
27272
|
+
function select$22(luvio, resourceParams) {
|
|
27273
27273
|
const childResources = createChildResourceParams$6(resourceParams);
|
|
27274
27274
|
return selectChildResourceParams$6(luvio, childResources, resourceParams);
|
|
27275
27275
|
}
|
|
@@ -27283,7 +27283,7 @@ function keyBuilder$24(luvio, params) {
|
|
|
27283
27283
|
params.queryParams.names +
|
|
27284
27284
|
')');
|
|
27285
27285
|
}
|
|
27286
|
-
function getResponseCacheKeys$
|
|
27286
|
+
function getResponseCacheKeys$z(keys, luvio, resourceParams, response) {
|
|
27287
27287
|
const childEnvelopes = response.results;
|
|
27288
27288
|
const childResourceParamsArray = createChildResourceParams$6(resourceParams);
|
|
27289
27289
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -27300,7 +27300,7 @@ function getResponseCacheKeys$y(keys, luvio, resourceParams, response) {
|
|
|
27300
27300
|
const childResult = childEnvelopes[index];
|
|
27301
27301
|
const { statusCode: childStatusCode, result: childBody } = childResult;
|
|
27302
27302
|
if (childStatusCode === 200) {
|
|
27303
|
-
getResponseCacheKeys$
|
|
27303
|
+
getResponseCacheKeys$A(keys, luvio, childResourceParams, childBody);
|
|
27304
27304
|
}
|
|
27305
27305
|
else if (childStatusCode === 404) {
|
|
27306
27306
|
const childKey = keyBuilder$25(luvio, childResourceParams);
|
|
@@ -27330,7 +27330,7 @@ function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, chi
|
|
|
27330
27330
|
statusText: 'OK',
|
|
27331
27331
|
headers: {},
|
|
27332
27332
|
};
|
|
27333
|
-
const childSnapshot = ingestSuccess$
|
|
27333
|
+
const childSnapshot = ingestSuccess$t(luvio, childResourceParams, childResponse);
|
|
27334
27334
|
if (childSnapshot.state === 'Stale') {
|
|
27335
27335
|
snapshotState = 'Stale';
|
|
27336
27336
|
}
|
|
@@ -27378,7 +27378,7 @@ function ingestSuccessChildResourceParams$5(luvio, childResourceParamsArray, chi
|
|
|
27378
27378
|
deepFreeze(childSnapshotData);
|
|
27379
27379
|
return { childSnapshotData: childSnapshotData, seenRecords, snapshotState };
|
|
27380
27380
|
}
|
|
27381
|
-
function ingestSuccess$
|
|
27381
|
+
function ingestSuccess$s(luvio, resourceParams, response, snapshotRefresh) {
|
|
27382
27382
|
const childEnvelopes = response.body.results;
|
|
27383
27383
|
const childResourceParamsArray = createChildResourceParams$6(resourceParams);
|
|
27384
27384
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -27398,7 +27398,7 @@ function ingestSuccess$r(luvio, resourceParams, response, snapshotRefresh) {
|
|
|
27398
27398
|
seenRecords: seenRecords,
|
|
27399
27399
|
select: {
|
|
27400
27400
|
recordId: key,
|
|
27401
|
-
node: select$
|
|
27401
|
+
node: select$22(luvio, resourceParams),
|
|
27402
27402
|
variables: {},
|
|
27403
27403
|
},
|
|
27404
27404
|
refresh: snapshotRefresh,
|
|
@@ -27414,7 +27414,7 @@ function ingestError$m(luvio, params, error, snapshotRefresh) {
|
|
|
27414
27414
|
luvio.storeIngestError(key, errorSnapshot);
|
|
27415
27415
|
return errorSnapshot;
|
|
27416
27416
|
}
|
|
27417
|
-
function createResourceRequest$
|
|
27417
|
+
function createResourceRequest$D(config) {
|
|
27418
27418
|
const headers = {};
|
|
27419
27419
|
return {
|
|
27420
27420
|
baseUri: '/services/data/v59.0',
|
|
@@ -27434,7 +27434,7 @@ const getListInfosByName_ConfigPropertyNames = {
|
|
|
27434
27434
|
optional: ['ids', 'names']
|
|
27435
27435
|
}
|
|
27436
27436
|
};
|
|
27437
|
-
function createResourceParams$
|
|
27437
|
+
function createResourceParams$A(config) {
|
|
27438
27438
|
const resourceParams = {
|
|
27439
27439
|
queryParams: {
|
|
27440
27440
|
ids: config.ids, names: config.names
|
|
@@ -27443,10 +27443,10 @@ function createResourceParams$z(config) {
|
|
|
27443
27443
|
return resourceParams;
|
|
27444
27444
|
}
|
|
27445
27445
|
function keyBuilder$23(luvio, config) {
|
|
27446
|
-
const resourceParams = createResourceParams$
|
|
27446
|
+
const resourceParams = createResourceParams$A(config);
|
|
27447
27447
|
return keyBuilder$24(luvio, resourceParams);
|
|
27448
27448
|
}
|
|
27449
|
-
function typeCheckConfig$
|
|
27449
|
+
function typeCheckConfig$F(untrustedConfig) {
|
|
27450
27450
|
const config = {};
|
|
27451
27451
|
const untrustedConfig_ids = untrustedConfig.ids;
|
|
27452
27452
|
if (ArrayIsArray$1(untrustedConfig_ids)) {
|
|
@@ -27472,45 +27472,45 @@ function typeCheckConfig$E(untrustedConfig) {
|
|
|
27472
27472
|
}
|
|
27473
27473
|
return config;
|
|
27474
27474
|
}
|
|
27475
|
-
function validateAdapterConfig$
|
|
27475
|
+
function validateAdapterConfig$E(untrustedConfig, configPropertyNames) {
|
|
27476
27476
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
27477
27477
|
return null;
|
|
27478
27478
|
}
|
|
27479
27479
|
if (process.env.NODE_ENV !== 'production') {
|
|
27480
27480
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
27481
27481
|
}
|
|
27482
|
-
const config = typeCheckConfig$
|
|
27482
|
+
const config = typeCheckConfig$F(untrustedConfig);
|
|
27483
27483
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
27484
27484
|
return null;
|
|
27485
27485
|
}
|
|
27486
27486
|
return config;
|
|
27487
27487
|
}
|
|
27488
27488
|
function adapterFragment$n(luvio, config) {
|
|
27489
|
-
const resourceParams = createResourceParams$
|
|
27490
|
-
return select$
|
|
27489
|
+
const resourceParams = createResourceParams$A(config);
|
|
27490
|
+
return select$22(luvio, resourceParams);
|
|
27491
27491
|
}
|
|
27492
27492
|
function onFetchResponseSuccess$p(luvio, config, resourceParams, response) {
|
|
27493
|
-
const snapshot = ingestSuccess$
|
|
27493
|
+
const snapshot = ingestSuccess$s(luvio, resourceParams, response, {
|
|
27494
27494
|
config,
|
|
27495
|
-
resolve: () => buildNetworkSnapshot$
|
|
27495
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
|
|
27496
27496
|
});
|
|
27497
27497
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27498
27498
|
}
|
|
27499
27499
|
function onFetchResponseError$p(luvio, config, resourceParams, response) {
|
|
27500
27500
|
const snapshot = ingestError$m(luvio, resourceParams, response, {
|
|
27501
27501
|
config,
|
|
27502
|
-
resolve: () => buildNetworkSnapshot$
|
|
27502
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
|
|
27503
27503
|
});
|
|
27504
27504
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27505
27505
|
}
|
|
27506
|
-
function buildNetworkSnapshot$
|
|
27507
|
-
const resourceParams = createResourceParams$
|
|
27508
|
-
const request = createResourceRequest$
|
|
27506
|
+
function buildNetworkSnapshot$D(luvio, config, options) {
|
|
27507
|
+
const resourceParams = createResourceParams$A(config);
|
|
27508
|
+
const request = createResourceRequest$D(resourceParams);
|
|
27509
27509
|
return luvio.dispatchResourceRequest(request, options)
|
|
27510
27510
|
.then((response) => {
|
|
27511
27511
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$p(luvio, config, resourceParams, response), () => {
|
|
27512
27512
|
const cache = new StoreKeyMap();
|
|
27513
|
-
getResponseCacheKeys$
|
|
27513
|
+
getResponseCacheKeys$z(cache, luvio, resourceParams, response.body);
|
|
27514
27514
|
return cache;
|
|
27515
27515
|
});
|
|
27516
27516
|
}, (response) => {
|
|
@@ -27532,7 +27532,7 @@ function buildNetworkSnapshotCachePolicy$t(context, coercedAdapterRequestContext
|
|
|
27532
27532
|
priority: networkPriority
|
|
27533
27533
|
};
|
|
27534
27534
|
}
|
|
27535
|
-
return buildNetworkSnapshot$
|
|
27535
|
+
return buildNetworkSnapshot$D(luvio, config, dispatchOptions);
|
|
27536
27536
|
}
|
|
27537
27537
|
function buildCachedSnapshotCachePolicy$s(context, storeLookup) {
|
|
27538
27538
|
const { luvio, config } = context;
|
|
@@ -27543,12 +27543,12 @@ function buildCachedSnapshotCachePolicy$s(context, storeLookup) {
|
|
|
27543
27543
|
};
|
|
27544
27544
|
const cacheSnapshot = storeLookup(selector, {
|
|
27545
27545
|
config,
|
|
27546
|
-
resolve: () => buildNetworkSnapshot$
|
|
27546
|
+
resolve: () => buildNetworkSnapshot$D(luvio, config, snapshotRefreshOptions)
|
|
27547
27547
|
});
|
|
27548
27548
|
return cacheSnapshot;
|
|
27549
27549
|
}
|
|
27550
27550
|
const getListInfosByNameAdapterFactory = (luvio) => function UiApi__getListInfosByName(untrustedConfig, requestContext) {
|
|
27551
|
-
const config = validateAdapterConfig$
|
|
27551
|
+
const config = validateAdapterConfig$E(untrustedConfig, getListInfosByName_ConfigPropertyNames);
|
|
27552
27552
|
// Invalid or incomplete config
|
|
27553
27553
|
if (config === null) {
|
|
27554
27554
|
return null;
|
|
@@ -27564,7 +27564,7 @@ const getListInfoByName_ConfigPropertyNames = {
|
|
|
27564
27564
|
optional: []
|
|
27565
27565
|
}
|
|
27566
27566
|
};
|
|
27567
|
-
function createResourceParams$
|
|
27567
|
+
function createResourceParams$z(config) {
|
|
27568
27568
|
const resourceParams = {
|
|
27569
27569
|
urlParams: {
|
|
27570
27570
|
listViewApiName: config.listViewApiName, objectApiName: config.objectApiName
|
|
@@ -27573,10 +27573,10 @@ function createResourceParams$y(config) {
|
|
|
27573
27573
|
return resourceParams;
|
|
27574
27574
|
}
|
|
27575
27575
|
function keyBuilder$22(luvio, config) {
|
|
27576
|
-
const resourceParams = createResourceParams$
|
|
27576
|
+
const resourceParams = createResourceParams$z(config);
|
|
27577
27577
|
return keyBuilder$26(luvio, resourceParams);
|
|
27578
27578
|
}
|
|
27579
|
-
function typeCheckConfig$
|
|
27579
|
+
function typeCheckConfig$E(untrustedConfig) {
|
|
27580
27580
|
const config = {};
|
|
27581
27581
|
const untrustedConfig_listViewApiName = untrustedConfig.listViewApiName;
|
|
27582
27582
|
if (typeof untrustedConfig_listViewApiName === 'string') {
|
|
@@ -27588,45 +27588,45 @@ function typeCheckConfig$D(untrustedConfig) {
|
|
|
27588
27588
|
}
|
|
27589
27589
|
return config;
|
|
27590
27590
|
}
|
|
27591
|
-
function validateAdapterConfig$
|
|
27591
|
+
function validateAdapterConfig$D(untrustedConfig, configPropertyNames) {
|
|
27592
27592
|
if (!untrustedIsObject(untrustedConfig)) {
|
|
27593
27593
|
return null;
|
|
27594
27594
|
}
|
|
27595
27595
|
if (process.env.NODE_ENV !== 'production') {
|
|
27596
27596
|
validateConfig(untrustedConfig, configPropertyNames);
|
|
27597
27597
|
}
|
|
27598
|
-
const config = typeCheckConfig$
|
|
27598
|
+
const config = typeCheckConfig$E(untrustedConfig);
|
|
27599
27599
|
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
27600
27600
|
return null;
|
|
27601
27601
|
}
|
|
27602
27602
|
return config;
|
|
27603
27603
|
}
|
|
27604
27604
|
function adapterFragment$m(luvio, config) {
|
|
27605
|
-
createResourceParams$
|
|
27606
|
-
return select$
|
|
27605
|
+
createResourceParams$z(config);
|
|
27606
|
+
return select$23();
|
|
27607
27607
|
}
|
|
27608
27608
|
function onFetchResponseSuccess$o(luvio, config, resourceParams, response) {
|
|
27609
|
-
const snapshot = ingestSuccess$
|
|
27609
|
+
const snapshot = ingestSuccess$t(luvio, resourceParams, response, {
|
|
27610
27610
|
config,
|
|
27611
|
-
resolve: () => buildNetworkSnapshot$
|
|
27611
|
+
resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions)
|
|
27612
27612
|
});
|
|
27613
27613
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27614
27614
|
}
|
|
27615
27615
|
function onFetchResponseError$o(luvio, config, resourceParams, response) {
|
|
27616
27616
|
const snapshot = ingestError$n(luvio, resourceParams, response, {
|
|
27617
27617
|
config,
|
|
27618
|
-
resolve: () => buildNetworkSnapshot$
|
|
27618
|
+
resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions)
|
|
27619
27619
|
});
|
|
27620
27620
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
27621
27621
|
}
|
|
27622
|
-
function buildNetworkSnapshot$
|
|
27623
|
-
const resourceParams = createResourceParams$
|
|
27624
|
-
const request = createResourceRequest$
|
|
27622
|
+
function buildNetworkSnapshot$C(luvio, config, options) {
|
|
27623
|
+
const resourceParams = createResourceParams$z(config);
|
|
27624
|
+
const request = createResourceRequest$E(resourceParams);
|
|
27625
27625
|
return luvio.dispatchResourceRequest(request, options)
|
|
27626
27626
|
.then((response) => {
|
|
27627
27627
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$o(luvio, config, resourceParams, response), () => {
|
|
27628
27628
|
const cache = new StoreKeyMap();
|
|
27629
|
-
getResponseCacheKeys$
|
|
27629
|
+
getResponseCacheKeys$A(cache, luvio, resourceParams, response.body);
|
|
27630
27630
|
return cache;
|
|
27631
27631
|
});
|
|
27632
27632
|
}, (response) => {
|
|
@@ -27648,7 +27648,7 @@ function buildNetworkSnapshotCachePolicy$s(context, coercedAdapterRequestContext
|
|
|
27648
27648
|
priority: networkPriority
|
|
27649
27649
|
};
|
|
27650
27650
|
}
|
|
27651
|
-
return buildNetworkSnapshot$
|
|
27651
|
+
return buildNetworkSnapshot$C(luvio, config, dispatchOptions);
|
|
27652
27652
|
}
|
|
27653
27653
|
function buildCachedSnapshotCachePolicy$r(context, storeLookup) {
|
|
27654
27654
|
const { luvio, config } = context;
|
|
@@ -27659,12 +27659,12 @@ function buildCachedSnapshotCachePolicy$r(context, storeLookup) {
|
|
|
27659
27659
|
};
|
|
27660
27660
|
const cacheSnapshot = storeLookup(selector, {
|
|
27661
27661
|
config,
|
|
27662
|
-
resolve: () => buildNetworkSnapshot$
|
|
27662
|
+
resolve: () => buildNetworkSnapshot$C(luvio, config, snapshotRefreshOptions)
|
|
27663
27663
|
});
|
|
27664
27664
|
return cacheSnapshot;
|
|
27665
27665
|
}
|
|
27666
27666
|
const getListInfoByNameAdapterFactory = (luvio) => function UiApi__getListInfoByName(untrustedConfig, requestContext) {
|
|
27667
|
-
const config = validateAdapterConfig$
|
|
27667
|
+
const config = validateAdapterConfig$D(untrustedConfig, getListInfoByName_ConfigPropertyNames);
|
|
27668
27668
|
// Invalid or incomplete config
|
|
27669
27669
|
if (config === null) {
|
|
27670
27670
|
return null;
|
|
@@ -27673,6 +27673,196 @@ const getListInfoByNameAdapterFactory = (luvio) => function UiApi__getListInfoBy
|
|
|
27673
27673
|
buildCachedSnapshotCachePolicy$r, buildNetworkSnapshotCachePolicy$s);
|
|
27674
27674
|
};
|
|
27675
27675
|
|
|
27676
|
+
function select$21(luvio, params) {
|
|
27677
|
+
return select$2N();
|
|
27678
|
+
}
|
|
27679
|
+
function getResponseCacheKeys$y(storeKeyMap, luvio, resourceParams, response) {
|
|
27680
|
+
getTypeCacheKeys$1V(storeKeyMap, luvio, response);
|
|
27681
|
+
}
|
|
27682
|
+
function ingestSuccess$r(luvio, resourceParams, response) {
|
|
27683
|
+
const { body } = response;
|
|
27684
|
+
const key = keyBuilderFromType$z(luvio, body);
|
|
27685
|
+
luvio.storeIngest(key, ingest$1R, body);
|
|
27686
|
+
const snapshot = luvio.storeLookup({
|
|
27687
|
+
recordId: key,
|
|
27688
|
+
node: select$21(),
|
|
27689
|
+
variables: {},
|
|
27690
|
+
});
|
|
27691
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
27692
|
+
if (snapshot.state !== 'Fulfilled') {
|
|
27693
|
+
throw new Error('Invalid network response. Expected resource response to result in Fulfilled snapshot');
|
|
27694
|
+
}
|
|
27695
|
+
}
|
|
27696
|
+
deepFreeze(snapshot.data);
|
|
27697
|
+
return snapshot;
|
|
27698
|
+
}
|
|
27699
|
+
function createResourceRequest$C(config) {
|
|
27700
|
+
const headers = {};
|
|
27701
|
+
return {
|
|
27702
|
+
baseUri: '/services/data/v59.0',
|
|
27703
|
+
basePath: '/ui-api/list-info/' + config.urlParams.objectApiName + '/' + config.urlParams.listViewApiName + '',
|
|
27704
|
+
method: 'patch',
|
|
27705
|
+
body: config.body,
|
|
27706
|
+
urlParams: config.urlParams,
|
|
27707
|
+
queryParams: {},
|
|
27708
|
+
headers,
|
|
27709
|
+
priority: 'normal',
|
|
27710
|
+
};
|
|
27711
|
+
}
|
|
27712
|
+
|
|
27713
|
+
const updateListInfoByName_ConfigPropertyNames = {
|
|
27714
|
+
displayName: 'updateListInfoByName',
|
|
27715
|
+
parameters: {
|
|
27716
|
+
required: ['listViewApiName', 'objectApiName'],
|
|
27717
|
+
optional: ['filterLogicString', 'filteredByInfo', 'label', 'scope', 'visibility']
|
|
27718
|
+
}
|
|
27719
|
+
};
|
|
27720
|
+
function createResourceParams$y(config) {
|
|
27721
|
+
const resourceParams = {
|
|
27722
|
+
urlParams: {
|
|
27723
|
+
listViewApiName: config.listViewApiName, objectApiName: config.objectApiName
|
|
27724
|
+
},
|
|
27725
|
+
body: {}
|
|
27726
|
+
};
|
|
27727
|
+
if (config['filterLogicString'] !== undefined) {
|
|
27728
|
+
resourceParams.body['filterLogicString'] = config['filterLogicString'];
|
|
27729
|
+
}
|
|
27730
|
+
if (config['filteredByInfo'] !== undefined) {
|
|
27731
|
+
resourceParams.body['filteredByInfo'] = config['filteredByInfo'];
|
|
27732
|
+
}
|
|
27733
|
+
if (config['label'] !== undefined) {
|
|
27734
|
+
resourceParams.body['label'] = config['label'];
|
|
27735
|
+
}
|
|
27736
|
+
if (config['scope'] !== undefined) {
|
|
27737
|
+
resourceParams.body['scope'] = config['scope'];
|
|
27738
|
+
}
|
|
27739
|
+
if (config['visibility'] !== undefined) {
|
|
27740
|
+
resourceParams.body['visibility'] = config['visibility'];
|
|
27741
|
+
}
|
|
27742
|
+
return resourceParams;
|
|
27743
|
+
}
|
|
27744
|
+
function coerceConfig$h(config) {
|
|
27745
|
+
const coercedConfig = {};
|
|
27746
|
+
const listViewApiName = config.listViewApiName;
|
|
27747
|
+
if (listViewApiName !== undefined) {
|
|
27748
|
+
coercedConfig.listViewApiName = listViewApiName;
|
|
27749
|
+
}
|
|
27750
|
+
const objectApiName = getObjectApiName$1(config.objectApiName);
|
|
27751
|
+
if (objectApiName !== undefined) {
|
|
27752
|
+
coercedConfig.objectApiName = objectApiName;
|
|
27753
|
+
}
|
|
27754
|
+
const filterLogicString = config.filterLogicString;
|
|
27755
|
+
if (filterLogicString !== undefined) {
|
|
27756
|
+
coercedConfig.filterLogicString = filterLogicString;
|
|
27757
|
+
}
|
|
27758
|
+
const filteredByInfo = config.filteredByInfo;
|
|
27759
|
+
if (filteredByInfo !== undefined) {
|
|
27760
|
+
coercedConfig.filteredByInfo = filteredByInfo;
|
|
27761
|
+
}
|
|
27762
|
+
const label = config.label;
|
|
27763
|
+
if (label !== undefined) {
|
|
27764
|
+
coercedConfig.label = label;
|
|
27765
|
+
}
|
|
27766
|
+
const scope = config.scope;
|
|
27767
|
+
if (scope !== undefined) {
|
|
27768
|
+
coercedConfig.scope = scope;
|
|
27769
|
+
}
|
|
27770
|
+
const visibility = config.visibility;
|
|
27771
|
+
if (visibility !== undefined) {
|
|
27772
|
+
coercedConfig.visibility = visibility;
|
|
27773
|
+
}
|
|
27774
|
+
return coercedConfig;
|
|
27775
|
+
}
|
|
27776
|
+
function typeCheckConfig$D(untrustedConfig) {
|
|
27777
|
+
const config = {};
|
|
27778
|
+
const untrustedConfig_listViewApiName = untrustedConfig.listViewApiName;
|
|
27779
|
+
if (typeof untrustedConfig_listViewApiName === 'string') {
|
|
27780
|
+
config.listViewApiName = untrustedConfig_listViewApiName;
|
|
27781
|
+
}
|
|
27782
|
+
const untrustedConfig_objectApiName = untrustedConfig.objectApiName;
|
|
27783
|
+
if (typeof untrustedConfig_objectApiName === 'string') {
|
|
27784
|
+
config.objectApiName = untrustedConfig_objectApiName;
|
|
27785
|
+
}
|
|
27786
|
+
const untrustedConfig_filterLogicString = untrustedConfig.filterLogicString;
|
|
27787
|
+
if (typeof untrustedConfig_filterLogicString === 'string') {
|
|
27788
|
+
config.filterLogicString = untrustedConfig_filterLogicString;
|
|
27789
|
+
}
|
|
27790
|
+
if (untrustedConfig_filterLogicString === null) {
|
|
27791
|
+
config.filterLogicString = untrustedConfig_filterLogicString;
|
|
27792
|
+
}
|
|
27793
|
+
const untrustedConfig_filteredByInfo = untrustedConfig.filteredByInfo;
|
|
27794
|
+
if (ArrayIsArray$1(untrustedConfig_filteredByInfo)) {
|
|
27795
|
+
const untrustedConfig_filteredByInfo_array = [];
|
|
27796
|
+
for (let i = 0, arrayLength = untrustedConfig_filteredByInfo.length; i < arrayLength; i++) {
|
|
27797
|
+
const untrustedConfig_filteredByInfo_item = untrustedConfig_filteredByInfo[i];
|
|
27798
|
+
const referenceListFilterByInfoRepresentationValidationError = validate$1H(untrustedConfig_filteredByInfo_item);
|
|
27799
|
+
if (referenceListFilterByInfoRepresentationValidationError === null) {
|
|
27800
|
+
untrustedConfig_filteredByInfo_array.push(untrustedConfig_filteredByInfo_item);
|
|
27801
|
+
}
|
|
27802
|
+
}
|
|
27803
|
+
config.filteredByInfo = untrustedConfig_filteredByInfo_array;
|
|
27804
|
+
}
|
|
27805
|
+
const untrustedConfig_label = untrustedConfig.label;
|
|
27806
|
+
if (typeof untrustedConfig_label === 'string') {
|
|
27807
|
+
config.label = untrustedConfig_label;
|
|
27808
|
+
}
|
|
27809
|
+
const untrustedConfig_scope = untrustedConfig.scope;
|
|
27810
|
+
const referenceListScopeRepresentationValidationError = validate$1C(untrustedConfig_scope);
|
|
27811
|
+
if (referenceListScopeRepresentationValidationError === null) {
|
|
27812
|
+
config.scope = untrustedConfig_scope;
|
|
27813
|
+
}
|
|
27814
|
+
if (untrustedConfig_scope === null) {
|
|
27815
|
+
config.scope = untrustedConfig_scope;
|
|
27816
|
+
}
|
|
27817
|
+
const untrustedConfig_visibility = untrustedConfig.visibility;
|
|
27818
|
+
if (typeof untrustedConfig_visibility === 'string') {
|
|
27819
|
+
config.visibility = untrustedConfig_visibility;
|
|
27820
|
+
}
|
|
27821
|
+
return config;
|
|
27822
|
+
}
|
|
27823
|
+
function validateAdapterConfig$C(untrustedConfig, configPropertyNames) {
|
|
27824
|
+
if (!untrustedIsObject(untrustedConfig)) {
|
|
27825
|
+
return null;
|
|
27826
|
+
}
|
|
27827
|
+
if (process.env.NODE_ENV !== 'production') {
|
|
27828
|
+
validateConfig(untrustedConfig, configPropertyNames);
|
|
27829
|
+
}
|
|
27830
|
+
const coercedConfig = coerceConfig$h(untrustedConfig);
|
|
27831
|
+
const config = typeCheckConfig$D(coercedConfig);
|
|
27832
|
+
if (!areRequiredParametersPresent(config, configPropertyNames)) {
|
|
27833
|
+
return null;
|
|
27834
|
+
}
|
|
27835
|
+
return config;
|
|
27836
|
+
}
|
|
27837
|
+
function buildNetworkSnapshot$B(luvio, config, options) {
|
|
27838
|
+
const resourceParams = createResourceParams$y(config);
|
|
27839
|
+
const request = createResourceRequest$C(resourceParams);
|
|
27840
|
+
return luvio.dispatchResourceRequest(request, options)
|
|
27841
|
+
.then((response) => {
|
|
27842
|
+
return luvio.handleSuccessResponse(() => {
|
|
27843
|
+
const snapshot = ingestSuccess$r(luvio, resourceParams, response);
|
|
27844
|
+
return luvio.storeBroadcast().then(() => snapshot);
|
|
27845
|
+
}, () => {
|
|
27846
|
+
const cache = new StoreKeyMap();
|
|
27847
|
+
getResponseCacheKeys$y(cache, luvio, resourceParams, response.body);
|
|
27848
|
+
return cache;
|
|
27849
|
+
});
|
|
27850
|
+
}, (response) => {
|
|
27851
|
+
deepFreeze(response);
|
|
27852
|
+
throw response;
|
|
27853
|
+
});
|
|
27854
|
+
}
|
|
27855
|
+
const updateListInfoByNameAdapterFactory = (luvio) => {
|
|
27856
|
+
return function updateListInfoByName(untrustedConfig) {
|
|
27857
|
+
const config = validateAdapterConfig$C(untrustedConfig, updateListInfoByName_ConfigPropertyNames);
|
|
27858
|
+
// Invalid or incomplete config
|
|
27859
|
+
if (config === null) {
|
|
27860
|
+
throw new Error('Invalid config for "updateListInfoByName"');
|
|
27861
|
+
}
|
|
27862
|
+
return buildNetworkSnapshot$B(luvio, config);
|
|
27863
|
+
};
|
|
27864
|
+
};
|
|
27865
|
+
|
|
27676
27866
|
const TTL$n = 120000;
|
|
27677
27867
|
const VERSION$1N = "756779d0d7e137dd72c743544afbad82";
|
|
27678
27868
|
function validate$X(obj, path = 'NavItemsRepresentation') {
|
|
@@ -27764,7 +27954,7 @@ const select$20 = function NavItemsRepresentationSelect() {
|
|
|
27764
27954
|
name: 'navItems',
|
|
27765
27955
|
kind: 'Link',
|
|
27766
27956
|
plural: true,
|
|
27767
|
-
fragment: select$
|
|
27957
|
+
fragment: select$2f()
|
|
27768
27958
|
},
|
|
27769
27959
|
{
|
|
27770
27960
|
name: 'nextPageUrl',
|
|
@@ -28087,7 +28277,7 @@ function selectChildResourceParams$5(luvio, childResources, resourceParams) {
|
|
|
28087
28277
|
reader.enterPath(envelopeBodyPath);
|
|
28088
28278
|
const childResource = childResources[i];
|
|
28089
28279
|
const childKey = keyBuilder$2N(luvio, childResource);
|
|
28090
|
-
const childFragment = select$
|
|
28280
|
+
const childFragment = select$2z();
|
|
28091
28281
|
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
28092
28282
|
const childSnapshot = reader.read({
|
|
28093
28283
|
recordId: childKey,
|
|
@@ -28188,7 +28378,7 @@ function getResponseCacheKeys$w(keys, luvio, resourceParams, response) {
|
|
|
28188
28378
|
const childResult = childEnvelopes[index];
|
|
28189
28379
|
const { statusCode: childStatusCode, result: childBody } = childResult;
|
|
28190
28380
|
if (childStatusCode === 200) {
|
|
28191
|
-
getResponseCacheKeys$
|
|
28381
|
+
getResponseCacheKeys$S(keys, luvio, childResourceParams, childBody);
|
|
28192
28382
|
}
|
|
28193
28383
|
else if (childStatusCode === 404) {
|
|
28194
28384
|
const childKey = keyBuilder$2N(luvio, childResourceParams);
|
|
@@ -28218,7 +28408,7 @@ function ingestSuccessChildResourceParams$4(luvio, childResourceParamsArray, chi
|
|
|
28218
28408
|
statusText: 'OK',
|
|
28219
28409
|
headers: {},
|
|
28220
28410
|
};
|
|
28221
|
-
const childSnapshot = ingestSuccess$
|
|
28411
|
+
const childSnapshot = ingestSuccess$I(luvio, childResourceParams, childResponse);
|
|
28222
28412
|
if (childSnapshot.state === "Stale") {
|
|
28223
28413
|
snapshotState = "Stale";
|
|
28224
28414
|
}
|
|
@@ -31340,7 +31530,7 @@ const getRecords_ConfigPropertyNames = {
|
|
|
31340
31530
|
};
|
|
31341
31531
|
|
|
31342
31532
|
function keyBuilder$1S(luvio, config) {
|
|
31343
|
-
const resourceParams = createResourceParams$
|
|
31533
|
+
const resourceParams = createResourceParams$W(config);
|
|
31344
31534
|
return keyBuilder$2$(luvio, resourceParams);
|
|
31345
31535
|
}
|
|
31346
31536
|
function onFetchResponseError$i(luvio, config, resourceParams, response) {
|
|
@@ -31351,13 +31541,13 @@ function onFetchResponseError$i(luvio, config, resourceParams, response) {
|
|
|
31351
31541
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
31352
31542
|
}
|
|
31353
31543
|
function buildNetworkSnapshot$u(luvio, config, options) {
|
|
31354
|
-
const resourceParams = createResourceParams$
|
|
31355
|
-
const request = createResourceRequest$
|
|
31544
|
+
const resourceParams = createResourceParams$W(config);
|
|
31545
|
+
const request = createResourceRequest$13(resourceParams);
|
|
31356
31546
|
return luvio.dispatchResourceRequest(request, options)
|
|
31357
31547
|
.then((response) => {
|
|
31358
31548
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$L(luvio, config, resourceParams, response), () => {
|
|
31359
31549
|
const cache = new StoreKeyMap();
|
|
31360
|
-
getResponseCacheKeys$
|
|
31550
|
+
getResponseCacheKeys$X(cache, luvio, resourceParams, response.body);
|
|
31361
31551
|
return cache;
|
|
31362
31552
|
});
|
|
31363
31553
|
}, (response) => {
|
|
@@ -35209,7 +35399,7 @@ const dynamicSelect$4 = function dynamicRelatedListRecordCollectionRepresentatio
|
|
|
35209
35399
|
const recordsPathSelection = params.records === undefined ? {
|
|
35210
35400
|
name: 'records',
|
|
35211
35401
|
kind: 'Link',
|
|
35212
|
-
fragment: select$
|
|
35402
|
+
fragment: select$2J()
|
|
35213
35403
|
} : params.records;
|
|
35214
35404
|
const { selections: RelatedListReferenceRepresentation__selections, opaque: RelatedListReferenceRepresentation__opaque, } = select$1G();
|
|
35215
35405
|
return {
|
|
@@ -54801,7 +54991,7 @@ const factory$e = (luvio) => function graphql(untrustedConfig, requestContext) {
|
|
|
54801
54991
|
};
|
|
54802
54992
|
|
|
54803
54993
|
function select$5(luvio, params) {
|
|
54804
|
-
return select$
|
|
54994
|
+
return select$2w();
|
|
54805
54995
|
}
|
|
54806
54996
|
function getResponseCacheKeys$9(storeKeyMap, luvio, resourceParams, response) {
|
|
54807
54997
|
getTypeCacheKeys$1J(storeKeyMap, luvio, response);
|
|
@@ -54958,7 +55148,7 @@ const performUpdateRecordQuickActionAdapterFactory = (luvio) => {
|
|
|
54958
55148
|
const factory$d = performUpdateRecordQuickActionAdapterFactory;
|
|
54959
55149
|
|
|
54960
55150
|
function select$4(luvio, params) {
|
|
54961
|
-
return select$
|
|
55151
|
+
return select$2w();
|
|
54962
55152
|
}
|
|
54963
55153
|
function getResponseCacheKeys$8(storeKeyMap, luvio, resourceParams, response) {
|
|
54964
55154
|
getTypeCacheKeys$1J(storeKeyMap, luvio, response);
|
|
@@ -55127,7 +55317,7 @@ function buildNetworkSnapshot$9(luvio, config, options, cacheSnapshot) {
|
|
|
55127
55317
|
}
|
|
55128
55318
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$1(luvio, config, resourceParams, response), () => {
|
|
55129
55319
|
const cache = new StoreKeyMap();
|
|
55130
|
-
getResponseCacheKeys$
|
|
55320
|
+
getResponseCacheKeys$U(cache, luvio, resourceParams, response.body);
|
|
55131
55321
|
return cache;
|
|
55132
55322
|
});
|
|
55133
55323
|
}, (response) => {
|
|
@@ -55226,10 +55416,10 @@ function validateAdapterConfig$9(untrustedConfig, configPropertyNames) {
|
|
|
55226
55416
|
}
|
|
55227
55417
|
function adapterFragment$1(luvio, config) {
|
|
55228
55418
|
const resourceParams = createResourceParams$8(config);
|
|
55229
|
-
return select$
|
|
55419
|
+
return select$2E(luvio, resourceParams);
|
|
55230
55420
|
}
|
|
55231
55421
|
function onFetchResponseSuccess$2(luvio, config, resourceParams, response) {
|
|
55232
|
-
const snapshot = ingestSuccess$
|
|
55422
|
+
const snapshot = ingestSuccess$K(luvio, resourceParams, response, {
|
|
55233
55423
|
config,
|
|
55234
55424
|
resolve: () => buildNetworkSnapshot$9(luvio, config, snapshotRefreshOptions)
|
|
55235
55425
|
});
|
|
@@ -55244,13 +55434,13 @@ function onFetchResponseError$1(luvio, config, resourceParams, response) {
|
|
|
55244
55434
|
}
|
|
55245
55435
|
function prepareRequest$1(luvio, config, resourceParams, cacheSnapshot) {
|
|
55246
55436
|
if (cacheSnapshot === undefined) {
|
|
55247
|
-
return createResourceRequest
|
|
55437
|
+
return createResourceRequest$$(resourceParams);
|
|
55248
55438
|
}
|
|
55249
55439
|
const [newToken, newPageSize] = minimizePaginationParams(luvio, resourceParams, cacheSnapshot);
|
|
55250
55440
|
if (newToken === undefined) {
|
|
55251
|
-
return createResourceRequest
|
|
55441
|
+
return createResourceRequest$$(resourceParams);
|
|
55252
55442
|
}
|
|
55253
|
-
return createResourceRequest
|
|
55443
|
+
return createResourceRequest$$(createResourceParams$8({
|
|
55254
55444
|
...config,
|
|
55255
55445
|
pageSize: newPageSize,
|
|
55256
55446
|
pageToken: newToken
|
|
@@ -56458,8 +56648,8 @@ function validateAdapterConfig$6(untrustedConfig, configPropertyNames) {
|
|
|
56458
56648
|
}
|
|
56459
56649
|
|
|
56460
56650
|
const contextId$2 = `${keyPrefix}__${adapterName$3}`;
|
|
56461
|
-
const layoutSelections = select$
|
|
56462
|
-
const objectInfoSelections = select$
|
|
56651
|
+
const layoutSelections = select$2y();
|
|
56652
|
+
const objectInfoSelections = select$2A();
|
|
56463
56653
|
function buildSelector(resp) {
|
|
56464
56654
|
const recordSelections = buildSelectionFromRecord(resp.record);
|
|
56465
56655
|
return [
|
|
@@ -56718,7 +56908,7 @@ const select$3 = function RecordTemplateCloneRepresentationSelect() {
|
|
|
56718
56908
|
name: 'fields',
|
|
56719
56909
|
kind: 'Link',
|
|
56720
56910
|
map: true,
|
|
56721
|
-
fragment: select$
|
|
56911
|
+
fragment: select$2L()
|
|
56722
56912
|
},
|
|
56723
56913
|
{
|
|
56724
56914
|
name: 'recordTypeId',
|
|
@@ -56732,7 +56922,7 @@ const dynamicSelect$3 = function dynamicRecordTemplateCloneRepresentationSelect(
|
|
|
56732
56922
|
name: 'fields',
|
|
56733
56923
|
kind: 'Link',
|
|
56734
56924
|
map: true,
|
|
56735
|
-
fragment: select$
|
|
56925
|
+
fragment: select$2L()
|
|
56736
56926
|
} : params.fields;
|
|
56737
56927
|
return {
|
|
56738
56928
|
kind: 'Fragment',
|
|
@@ -56913,7 +57103,7 @@ const dynamicSelect$2 = function dynamicRecordDefaultsTemplateCloneRepresentatio
|
|
|
56913
57103
|
name: 'objectInfos',
|
|
56914
57104
|
kind: 'Link',
|
|
56915
57105
|
map: true,
|
|
56916
|
-
fragment: select$
|
|
57106
|
+
fragment: select$2A()
|
|
56917
57107
|
} : params.objectInfos;
|
|
56918
57108
|
const recordPathSelection = params.record === undefined ? {
|
|
56919
57109
|
name: 'record',
|
|
@@ -57433,7 +57623,7 @@ const select$1 = function RecordTemplateCreateRepresentationSelect() {
|
|
|
57433
57623
|
name: 'fields',
|
|
57434
57624
|
kind: 'Link',
|
|
57435
57625
|
map: true,
|
|
57436
|
-
fragment: select$
|
|
57626
|
+
fragment: select$2L()
|
|
57437
57627
|
},
|
|
57438
57628
|
{
|
|
57439
57629
|
name: 'recordTypeId',
|
|
@@ -57447,7 +57637,7 @@ const dynamicSelect$1 = function dynamicRecordTemplateCreateRepresentationSelect
|
|
|
57447
57637
|
name: 'fields',
|
|
57448
57638
|
kind: 'Link',
|
|
57449
57639
|
map: true,
|
|
57450
|
-
fragment: select$
|
|
57640
|
+
fragment: select$2L()
|
|
57451
57641
|
} : params.fields;
|
|
57452
57642
|
return {
|
|
57453
57643
|
kind: 'Fragment',
|
|
@@ -57619,7 +57809,7 @@ const dynamicSelect = function dynamicRecordDefaultsTemplateCreateRepresentation
|
|
|
57619
57809
|
name: 'objectInfos',
|
|
57620
57810
|
kind: 'Link',
|
|
57621
57811
|
map: true,
|
|
57622
|
-
fragment: select$
|
|
57812
|
+
fragment: select$2A()
|
|
57623
57813
|
} : params.objectInfos;
|
|
57624
57814
|
const recordPathSelection = params.record === undefined ? {
|
|
57625
57815
|
name: 'record',
|
|
@@ -59067,6 +59257,7 @@ let graphql;
|
|
|
59067
59257
|
let graphqlBatch;
|
|
59068
59258
|
let performQuickAction;
|
|
59069
59259
|
let performUpdateRecordQuickAction;
|
|
59260
|
+
let updateListInfoByName;
|
|
59070
59261
|
let updateRecord;
|
|
59071
59262
|
let updateRecordAvatar;
|
|
59072
59263
|
function bindExportsTo(luvio) {
|
|
@@ -59131,6 +59322,7 @@ function bindExportsTo(luvio) {
|
|
|
59131
59322
|
graphqlBatch: createWireAdapterConstructor(factory$f(luvio), "graphqlBatch", luvio),
|
|
59132
59323
|
performQuickAction: unwrapSnapshotData(factory$c),
|
|
59133
59324
|
performUpdateRecordQuickAction: unwrapSnapshotData(factory$d),
|
|
59325
|
+
updateListInfoByName: unwrapSnapshotData(updateListInfoByNameAdapterFactory),
|
|
59134
59326
|
updateRecord: unwrapSnapshotData(factory$2),
|
|
59135
59327
|
updateRecordAvatar: unwrapSnapshotData(factory$8)
|
|
59136
59328
|
};
|
|
@@ -59193,6 +59385,7 @@ withDefaultLuvio((luvio) => {
|
|
|
59193
59385
|
graphqlBatch,
|
|
59194
59386
|
performQuickAction,
|
|
59195
59387
|
performUpdateRecordQuickAction,
|
|
59388
|
+
updateListInfoByName,
|
|
59196
59389
|
updateRecord,
|
|
59197
59390
|
updateRecordAvatar
|
|
59198
59391
|
} = bindExportsTo(luvio));
|
|
@@ -59205,4 +59398,4 @@ withDefaultLuvio((luvio) => {
|
|
|
59205
59398
|
refresh = bindWireRefresh(luvio);
|
|
59206
59399
|
});
|
|
59207
59400
|
|
|
59208
|
-
export { MRU, createContentDocumentAndVersion, createContentVersion, createRecord, createRecordInputFilteredByEditedFields, deleteRecord, generateRecordInputForCreate, generateRecordInputForUpdate, getActionOverrides, getAllApps, getAppDetails, getDuplicateConfiguration, getDuplicates, getFieldDisplayValue$1 as getFieldDisplayValue, getFieldValue, getGlobalActions, getKeywordSearchResults, getLayout, getLayoutUserState, getListInfoByName, getListInfosByName, getListRecordsByName, getListUi, getLookupActions, getLookupMetadata, getLookupRecords, getNavItems, getObjectCreateActions, getObjectInfo, getObjectInfos, getPicklistValues, getPicklistValuesByRecordType, getQuickActionDefaults, getQuickActionLayout, getRecord, getRecordActions, getRecordAvatars, getRecordCreateDefaults, getRecordEditActions, getRecordInput, getRecordNotifyChange, getRecordTemplateClone, getRecordTemplateCreate, getRecordUi, getRecords, getRelatedListActions, getRelatedListCount, getRelatedListInfo, getRelatedListInfoBatch, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListRecordActions, getRelatedListRecords, getRelatedListRecordsBatch, getRelatedListsActions, getRelatedListsCount, getRelatedListsInfo, getSearchFilterMetadata, getSearchFilterOptions, getSearchResults, graphql, graphqlBatch, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, updateRecord, updateRecordAvatar };
|
|
59401
|
+
export { MRU, createContentDocumentAndVersion, createContentVersion, createRecord, createRecordInputFilteredByEditedFields, deleteRecord, generateRecordInputForCreate, generateRecordInputForUpdate, getActionOverrides, getAllApps, getAppDetails, getDuplicateConfiguration, getDuplicates, getFieldDisplayValue$1 as getFieldDisplayValue, getFieldValue, getGlobalActions, getKeywordSearchResults, getLayout, getLayoutUserState, getListInfoByName, getListInfosByName, getListRecordsByName, getListUi, getLookupActions, getLookupMetadata, getLookupRecords, getNavItems, getObjectCreateActions, getObjectInfo, getObjectInfos, getPicklistValues, getPicklistValuesByRecordType, getQuickActionDefaults, getQuickActionLayout, getRecord, getRecordActions, getRecordAvatars, getRecordCreateDefaults, getRecordEditActions, getRecordInput, getRecordNotifyChange, getRecordTemplateClone, getRecordTemplateCreate, getRecordUi, getRecords, getRelatedListActions, getRelatedListCount, getRelatedListInfo, getRelatedListInfoBatch, getRelatedListPreferences, getRelatedListPreferencesBatch, getRelatedListRecordActions, getRelatedListRecords, getRelatedListRecordsBatch, getRelatedListsActions, getRelatedListsCount, getRelatedListsInfo, getSearchFilterMetadata, getSearchFilterOptions, getSearchResults, graphql, graphqlBatch, notifyRecordUpdateAvailable, performQuickAction, performUpdateRecordQuickAction, refresh, updateListInfoByName, updateRecord, updateRecordAvatar };
|