@salesforce/lds-ads-bridge 1.246.0 → 1.248.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/ads-bridge-perf.js +99 -99
- package/dist/adsBridge.js +1 -1
- package/package.json +1 -1
package/dist/ads-bridge-perf.js
CHANGED
|
@@ -427,7 +427,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
427
427
|
}
|
|
428
428
|
return resourceParams;
|
|
429
429
|
}
|
|
430
|
-
// engine version: 0.
|
|
430
|
+
// engine version: 0.151.1-fc3a996e
|
|
431
431
|
|
|
432
432
|
/**
|
|
433
433
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -475,7 +475,7 @@ const callbacks$1 = [];
|
|
|
475
475
|
function register(r) {
|
|
476
476
|
callbacks$1.forEach((callback) => callback(r));
|
|
477
477
|
}
|
|
478
|
-
// version: 1.
|
|
478
|
+
// version: 1.248.0-1f7f01112
|
|
479
479
|
|
|
480
480
|
/**
|
|
481
481
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -4916,7 +4916,7 @@ function toSortedStringArray(value) {
|
|
|
4916
4916
|
return undefined;
|
|
4917
4917
|
}
|
|
4918
4918
|
|
|
4919
|
-
const VERSION$
|
|
4919
|
+
const VERSION$2o = "d1e589a127fb1060c89070cdb6f500b2";
|
|
4920
4920
|
function validate$1L(obj, path = 'RecordTypeInfoRepresentation') {
|
|
4921
4921
|
const v_error = (() => {
|
|
4922
4922
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4953,7 +4953,7 @@ function validate$1L(obj, path = 'RecordTypeInfoRepresentation') {
|
|
|
4953
4953
|
const select$2$ = function RecordTypeInfoRepresentationSelect() {
|
|
4954
4954
|
return {
|
|
4955
4955
|
kind: 'Fragment',
|
|
4956
|
-
version: VERSION$
|
|
4956
|
+
version: VERSION$2o,
|
|
4957
4957
|
private: [],
|
|
4958
4958
|
selections: [
|
|
4959
4959
|
{
|
|
@@ -5008,7 +5008,7 @@ function equals$16(existing, incoming) {
|
|
|
5008
5008
|
return true;
|
|
5009
5009
|
}
|
|
5010
5010
|
|
|
5011
|
-
const VERSION$
|
|
5011
|
+
const VERSION$2n = "195d918987a35f45e1aa4dce9a11d8c5";
|
|
5012
5012
|
function validate$1K(obj, path = 'FieldValueRepresentation') {
|
|
5013
5013
|
const v_error = (() => {
|
|
5014
5014
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5103,7 +5103,7 @@ const RepresentationType$Y = 'FieldValueRepresentation';
|
|
|
5103
5103
|
const select$2_ = function FieldValueRepresentationSelect() {
|
|
5104
5104
|
return {
|
|
5105
5105
|
kind: 'Fragment',
|
|
5106
|
-
version: VERSION$
|
|
5106
|
+
version: VERSION$2n,
|
|
5107
5107
|
private: [],
|
|
5108
5108
|
selections: [
|
|
5109
5109
|
{
|
|
@@ -5137,7 +5137,7 @@ function equals$15(existing, incoming) {
|
|
|
5137
5137
|
}
|
|
5138
5138
|
return true;
|
|
5139
5139
|
}
|
|
5140
|
-
function getTypeCacheKeys$
|
|
5140
|
+
function getTypeCacheKeys$1Y(rootKeySet, luvio, input, fullPathFactory) {
|
|
5141
5141
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5142
5142
|
const rootKey = fullPathFactory();
|
|
5143
5143
|
rootKeySet.set(rootKey, {
|
|
@@ -5146,12 +5146,12 @@ function getTypeCacheKeys$1Z(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5146
5146
|
mergeable: false
|
|
5147
5147
|
});
|
|
5148
5148
|
if (input.value !== null && typeof input.value === 'object') {
|
|
5149
|
-
getTypeCacheKeys$
|
|
5149
|
+
getTypeCacheKeys$1X(rootKeySet, luvio, input.value);
|
|
5150
5150
|
}
|
|
5151
5151
|
}
|
|
5152
5152
|
|
|
5153
5153
|
// we override the generated so we can set "mergeable: true" on the root key
|
|
5154
|
-
const getTypeCacheKeys$
|
|
5154
|
+
const getTypeCacheKeys$1X = (rootKeySet, luvio, input, _fullPathFactory) => {
|
|
5155
5155
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5156
5156
|
const rootKey = keyBuilderFromType$A(luvio, input);
|
|
5157
5157
|
rootKeySet.set(rootKey, {
|
|
@@ -5164,20 +5164,20 @@ const getTypeCacheKeys$1Y = (rootKeySet, luvio, input, _fullPathFactory) => {
|
|
|
5164
5164
|
const input_childRelationships_length = input_childRelationships_keys.length;
|
|
5165
5165
|
for (let i = 0; i < input_childRelationships_length; i++) {
|
|
5166
5166
|
const key = input_childRelationships_keys[i];
|
|
5167
|
-
getTypeCacheKeys$
|
|
5167
|
+
getTypeCacheKeys$1W(rootKeySet, luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
|
|
5168
5168
|
}
|
|
5169
5169
|
const input_fields = input.fields;
|
|
5170
5170
|
const input_fields_keys = keys$1(input_fields);
|
|
5171
5171
|
const input_fields_length = input_fields_keys.length;
|
|
5172
5172
|
for (let i = 0; i < input_fields_length; i++) {
|
|
5173
5173
|
const key = input_fields_keys[i];
|
|
5174
|
-
getTypeCacheKeys$
|
|
5174
|
+
getTypeCacheKeys$1Y(rootKeySet, luvio, input_fields[key], () => rootKey + '__fields__' + key);
|
|
5175
5175
|
}
|
|
5176
5176
|
return rootKeySet;
|
|
5177
5177
|
};
|
|
5178
5178
|
|
|
5179
5179
|
const TTL$D = 120000;
|
|
5180
|
-
const VERSION$
|
|
5180
|
+
const VERSION$2m = "79cb5ac9f44542f683d00245fdfe500d";
|
|
5181
5181
|
function validate$1J(obj, path = 'RecordCollectionRepresentation') {
|
|
5182
5182
|
const v_error = (() => {
|
|
5183
5183
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5345,7 +5345,7 @@ function normalize$Q(input, existing, path, luvio, store, timestamp) {
|
|
|
5345
5345
|
for (let i = 0; i < input_records.length; i++) {
|
|
5346
5346
|
const input_records_item = input_records[i];
|
|
5347
5347
|
let input_records_item_id = input_records_id + '__' + i;
|
|
5348
|
-
input_records[i] = ingest$
|
|
5348
|
+
input_records[i] = ingest$1T(input_records_item, {
|
|
5349
5349
|
fullPath: input_records_item_id,
|
|
5350
5350
|
propertyName: i,
|
|
5351
5351
|
parent: {
|
|
@@ -5361,7 +5361,7 @@ function normalize$Q(input, existing, path, luvio, store, timestamp) {
|
|
|
5361
5361
|
const select$2Z = function RecordCollectionRepresentationSelect() {
|
|
5362
5362
|
return {
|
|
5363
5363
|
kind: 'Fragment',
|
|
5364
|
-
version: VERSION$
|
|
5364
|
+
version: VERSION$2m,
|
|
5365
5365
|
private: [],
|
|
5366
5366
|
selections: [
|
|
5367
5367
|
{
|
|
@@ -5449,7 +5449,7 @@ function equals$14(existing, incoming) {
|
|
|
5449
5449
|
}
|
|
5450
5450
|
return true;
|
|
5451
5451
|
}
|
|
5452
|
-
const ingest$
|
|
5452
|
+
const ingest$1U = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5453
5453
|
if (process.env.NODE_ENV !== 'production') {
|
|
5454
5454
|
const validateError = validate$1J(input);
|
|
5455
5455
|
if (validateError !== null) {
|
|
@@ -5458,10 +5458,10 @@ const ingest$1V = function RecordCollectionRepresentationIngest(input, path, luv
|
|
|
5458
5458
|
}
|
|
5459
5459
|
const key = path.fullPath;
|
|
5460
5460
|
const ttlToUse = TTL$D;
|
|
5461
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$Q, "UiApi", VERSION$
|
|
5461
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$Q, "UiApi", VERSION$2m, RepresentationType$X, equals$14);
|
|
5462
5462
|
return createLink$1(key);
|
|
5463
5463
|
};
|
|
5464
|
-
function getTypeCacheKeys$
|
|
5464
|
+
function getTypeCacheKeys$1W(rootKeySet, luvio, input, fullPathFactory) {
|
|
5465
5465
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5466
5466
|
const rootKey = fullPathFactory();
|
|
5467
5467
|
rootKeySet.set(rootKey, {
|
|
@@ -5471,7 +5471,7 @@ function getTypeCacheKeys$1X(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5471
5471
|
});
|
|
5472
5472
|
const input_records_length = input.records.length;
|
|
5473
5473
|
for (let i = 0; i < input_records_length; i++) {
|
|
5474
|
-
getTypeCacheKeys$
|
|
5474
|
+
getTypeCacheKeys$1X(rootKeySet, luvio, input.records[i]);
|
|
5475
5475
|
}
|
|
5476
5476
|
}
|
|
5477
5477
|
|
|
@@ -5486,7 +5486,7 @@ const keyBuilderFromType$B = function RecordRepresentationKeyBuilderFromType(luv
|
|
|
5486
5486
|
};
|
|
5487
5487
|
|
|
5488
5488
|
const TTL$C = 30000;
|
|
5489
|
-
const VERSION$
|
|
5489
|
+
const VERSION$2l = "98c5b18512e48ca8d28727549507e4ba";
|
|
5490
5490
|
function validate$1I(obj, path = 'RecordRepresentation') {
|
|
5491
5491
|
const v_error = (() => {
|
|
5492
5492
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5733,7 +5733,7 @@ const select$2Y = function RecordRepresentationSelect() {
|
|
|
5733
5733
|
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2$();
|
|
5734
5734
|
return {
|
|
5735
5735
|
kind: 'Fragment',
|
|
5736
|
-
version: VERSION$
|
|
5736
|
+
version: VERSION$2l,
|
|
5737
5737
|
private: [
|
|
5738
5738
|
'eTag',
|
|
5739
5739
|
'weakEtag'
|
|
@@ -5800,7 +5800,7 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
|
|
|
5800
5800
|
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2$();
|
|
5801
5801
|
return {
|
|
5802
5802
|
kind: 'Fragment',
|
|
5803
|
-
version: VERSION$
|
|
5803
|
+
version: VERSION$2l,
|
|
5804
5804
|
private: [
|
|
5805
5805
|
'eTag',
|
|
5806
5806
|
'weakEtag'
|
|
@@ -7279,7 +7279,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
7279
7279
|
kind: 'Fragment',
|
|
7280
7280
|
private: ['eTag', 'weakEtag'],
|
|
7281
7281
|
selections: createRecordSelection(childFieldDefinition),
|
|
7282
|
-
version: VERSION$
|
|
7282
|
+
version: VERSION$2l,
|
|
7283
7283
|
},
|
|
7284
7284
|
};
|
|
7285
7285
|
}
|
|
@@ -7289,7 +7289,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
7289
7289
|
required: childFieldDefinition.optional === true ? false : undefined,
|
|
7290
7290
|
fragment: {
|
|
7291
7291
|
kind: 'Fragment',
|
|
7292
|
-
version: VERSION$
|
|
7292
|
+
version: VERSION$2n,
|
|
7293
7293
|
private: [],
|
|
7294
7294
|
selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
|
|
7295
7295
|
},
|
|
@@ -7447,7 +7447,7 @@ function extractTrackedFieldsToTrie(recordId, node, root, config, visitedRecordI
|
|
|
7447
7447
|
extractTrackedFieldsToTrie(spanningLink.data.__ref, spanning, next, config, spanningVisitedRecordIds, depth + 1);
|
|
7448
7448
|
// For a spanning record that is detected to be a circular reference, we add the field along with Id and Name.
|
|
7449
7449
|
// It's possible for spanning record lookup fields to sometimes be circular, and sometimes not - depending on the value of the lookup field.
|
|
7450
|
-
// For more information on scenarios that caused this fix:
|
|
7450
|
+
// For more information on scenarios that caused this fix: search "LDS Recursive Spanning Fields Problem" in Quip
|
|
7451
7451
|
if (keys$1(next.children).length === 0) {
|
|
7452
7452
|
addScalarFieldId(next);
|
|
7453
7453
|
addScalarFieldName(next);
|
|
@@ -7746,7 +7746,7 @@ function mergeAndRefreshLowerVersionRecord(luvio, incoming, existing, incomingTr
|
|
|
7746
7746
|
};
|
|
7747
7747
|
}
|
|
7748
7748
|
else {
|
|
7749
|
-
buildNetworkSnapshot$
|
|
7749
|
+
buildNetworkSnapshot$17(luvio, {
|
|
7750
7750
|
recordId: incoming.id,
|
|
7751
7751
|
optionalFields: convertTrieToFields(incomingTrackedFieldsTrieRoot),
|
|
7752
7752
|
});
|
|
@@ -8017,7 +8017,7 @@ function createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap
|
|
|
8017
8017
|
}
|
|
8018
8018
|
function createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
|
|
8019
8019
|
return dynamicNormalize$5({
|
|
8020
|
-
childRelationships: ingest$
|
|
8020
|
+
childRelationships: ingest$1U,
|
|
8021
8021
|
fields: createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap),
|
|
8022
8022
|
});
|
|
8023
8023
|
}
|
|
@@ -8053,7 +8053,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
|
|
|
8053
8053
|
ttl: TTL$C,
|
|
8054
8054
|
representationName: RepresentationType$W,
|
|
8055
8055
|
namespace: keyPrefix,
|
|
8056
|
-
version: VERSION$
|
|
8056
|
+
version: VERSION$2l,
|
|
8057
8057
|
});
|
|
8058
8058
|
return createLink$1(key);
|
|
8059
8059
|
};
|
|
@@ -8142,9 +8142,9 @@ function isRestrictedPathCondition(existingPath, path) {
|
|
|
8142
8142
|
(existingPath.includes('/records') && path.includes('/record-ui')));
|
|
8143
8143
|
}
|
|
8144
8144
|
|
|
8145
|
-
const createResourceRequest$
|
|
8145
|
+
const createResourceRequest$1c = function getUiApiRecordsByRecordIdCreateResourceRequest(config) {
|
|
8146
8146
|
return {
|
|
8147
|
-
...createResourceRequest$
|
|
8147
|
+
...createResourceRequest$1b(config),
|
|
8148
8148
|
fulfill: fulfill,
|
|
8149
8149
|
};
|
|
8150
8150
|
};
|
|
@@ -8154,10 +8154,10 @@ function keyBuilder$3a(luvio, params) {
|
|
|
8154
8154
|
recordId: params.urlParams.recordId
|
|
8155
8155
|
});
|
|
8156
8156
|
}
|
|
8157
|
-
function getResponseCacheKeys$
|
|
8158
|
-
getTypeCacheKeys$
|
|
8157
|
+
function getResponseCacheKeys$13(storeKeyMap, luvio, resourceParams, response) {
|
|
8158
|
+
getTypeCacheKeys$1X(storeKeyMap, luvio, response);
|
|
8159
8159
|
}
|
|
8160
|
-
function createResourceRequest$
|
|
8160
|
+
function createResourceRequest$1b(config) {
|
|
8161
8161
|
const headers = {};
|
|
8162
8162
|
return {
|
|
8163
8163
|
baseUri: '/services/data/v60.0',
|
|
@@ -8181,7 +8181,7 @@ const getRecord_ConfigPropertyMetadata = [
|
|
|
8181
8181
|
generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
8182
8182
|
generateParamConfigMetadata('updateMru', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
8183
8183
|
];
|
|
8184
|
-
const createResourceParams$
|
|
8184
|
+
const createResourceParams$12 = /*#__PURE__*/ createResourceParams(getRecord_ConfigPropertyMetadata);
|
|
8185
8185
|
|
|
8186
8186
|
// used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
|
|
8187
8187
|
function buildRecordSelector(luvio, recordId, fields, optionalFields) {
|
|
@@ -8191,7 +8191,7 @@ function buildRecordSelector(luvio, recordId, fields, optionalFields) {
|
|
|
8191
8191
|
kind: 'Fragment',
|
|
8192
8192
|
private: ['eTag', 'weakEtag'],
|
|
8193
8193
|
selections: buildSelectionFromFields(fields, optionalFields),
|
|
8194
|
-
version: VERSION$
|
|
8194
|
+
version: VERSION$2l,
|
|
8195
8195
|
},
|
|
8196
8196
|
variables: {},
|
|
8197
8197
|
};
|
|
@@ -8199,27 +8199,27 @@ function buildRecordSelector(luvio, recordId, fields, optionalFields) {
|
|
|
8199
8199
|
function buildSnapshotRefresh$5(luvio, config) {
|
|
8200
8200
|
return {
|
|
8201
8201
|
config,
|
|
8202
|
-
resolve: () => buildNetworkSnapshot$
|
|
8202
|
+
resolve: () => buildNetworkSnapshot$17(luvio, config),
|
|
8203
8203
|
};
|
|
8204
8204
|
}
|
|
8205
8205
|
function prepareRequest$6(luvio, config) {
|
|
8206
8206
|
const { recordId, fields } = config;
|
|
8207
8207
|
// Should this go into the coersion logic?
|
|
8208
|
-
const key = keyBuilder$3a(luvio, createResourceParams$
|
|
8208
|
+
const key = keyBuilder$3a(luvio, createResourceParams$12(config));
|
|
8209
8209
|
const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
|
|
8210
8210
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
|
|
8211
8211
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
8212
8212
|
}, config.optionalFields);
|
|
8213
8213
|
const optionalFields = fields === undefined ? allTrackedFields : difference(allTrackedFields, fields);
|
|
8214
|
-
const resourceParams = createResourceParams$
|
|
8214
|
+
const resourceParams = createResourceParams$12({
|
|
8215
8215
|
recordId,
|
|
8216
8216
|
fields,
|
|
8217
8217
|
optionalFields: optionalFields.length > 0 ? optionalFields : undefined,
|
|
8218
8218
|
});
|
|
8219
|
-
const request = createResourceRequest$
|
|
8219
|
+
const request = createResourceRequest$1c(resourceParams);
|
|
8220
8220
|
return { request, key, allTrackedFields, resourceParams };
|
|
8221
8221
|
}
|
|
8222
|
-
function ingestSuccess$
|
|
8222
|
+
function ingestSuccess$U(luvio, config, key, allTrackedFields, response, serverRequestCount) {
|
|
8223
8223
|
const { body } = response;
|
|
8224
8224
|
const fields = config.fields === undefined ? [] : config.fields;
|
|
8225
8225
|
const optionalFields = config.optionalFields === undefined ? [] : config.optionalFields;
|
|
@@ -8233,7 +8233,7 @@ function ingestSuccess$S(luvio, config, key, allTrackedFields, response, serverR
|
|
|
8233
8233
|
return luvio.storeLookup(buildRecordSelector(luvio, config.recordId, fields, optionalFields), buildSnapshotRefresh$5(luvio, config));
|
|
8234
8234
|
}
|
|
8235
8235
|
function onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount) {
|
|
8236
|
-
const snapshot = ingestSuccess$
|
|
8236
|
+
const snapshot = ingestSuccess$U(luvio, config, key, allTrackedFields, response, serverRequestCount);
|
|
8237
8237
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8238
8238
|
}
|
|
8239
8239
|
function ingestError$O(luvio, config, key, err) {
|
|
@@ -8245,7 +8245,7 @@ function onResourceError(luvio, config, key, err) {
|
|
|
8245
8245
|
const errorSnapshot = ingestError$O(luvio, config, key, err);
|
|
8246
8246
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
8247
8247
|
}
|
|
8248
|
-
function buildNetworkSnapshot$
|
|
8248
|
+
function buildNetworkSnapshot$17(luvio, config, serverRequestCount = 0, options) {
|
|
8249
8249
|
const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
|
|
8250
8250
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
8251
8251
|
return luvio.handleSuccessResponse(() => {
|
|
@@ -8262,7 +8262,7 @@ function buildNetworkSnapshot$14(luvio, config, serverRequestCount = 0, options)
|
|
|
8262
8262
|
return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
|
|
8263
8263
|
}, () => {
|
|
8264
8264
|
const cache = new StoreKeyMap();
|
|
8265
|
-
getResponseCacheKeys$
|
|
8265
|
+
getResponseCacheKeys$13(cache, luvio, resourceParams, response.body);
|
|
8266
8266
|
return cache;
|
|
8267
8267
|
});
|
|
8268
8268
|
}, (err) => {
|
|
@@ -8276,10 +8276,10 @@ function isSingleBatchRecordResponse(response) {
|
|
|
8276
8276
|
response.results.length === 1);
|
|
8277
8277
|
}
|
|
8278
8278
|
|
|
8279
|
-
const VERSION$
|
|
8279
|
+
const VERSION$2k = "98cce53b8d13b1883d001bbdaab24383";
|
|
8280
8280
|
|
|
8281
8281
|
const nonCachedErrors$8 = ObjectCreate$1(null);
|
|
8282
|
-
function ingestSuccessChildResourceParams$
|
|
8282
|
+
function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
|
|
8283
8283
|
const childSnapshotDataResponses = [];
|
|
8284
8284
|
let seenRecords = new StoreKeySet();
|
|
8285
8285
|
let snapshotState = 'Fulfilled';
|
|
@@ -8301,7 +8301,7 @@ function ingestSuccessChildResourceParams$8(luvio, childResourceParamsArray, chi
|
|
|
8301
8301
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
|
|
8302
8302
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
8303
8303
|
}, childResourceParams.queryParams.optionalFields);
|
|
8304
|
-
const childSnapshot = ingestSuccess$
|
|
8304
|
+
const childSnapshot = ingestSuccess$U(luvio, {
|
|
8305
8305
|
recordId: childResourceParams.urlParams.recordId,
|
|
8306
8306
|
fields: childResourceParams.queryParams.fields,
|
|
8307
8307
|
optionalFields: childResourceParams.queryParams.optionalFields,
|
|
@@ -8377,7 +8377,7 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
|
|
|
8377
8377
|
node: {
|
|
8378
8378
|
kind: 'Fragment',
|
|
8379
8379
|
private: [],
|
|
8380
|
-
version: VERSION$
|
|
8380
|
+
version: VERSION$2k,
|
|
8381
8381
|
},
|
|
8382
8382
|
variables: {},
|
|
8383
8383
|
});
|
|
@@ -8500,7 +8500,7 @@ function createChildResourceParams$c(resourceParams) {
|
|
|
8500
8500
|
function keyBuilder$39(luvio, params) {
|
|
8501
8501
|
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 + ')';
|
|
8502
8502
|
}
|
|
8503
|
-
function getResponseCacheKeys
|
|
8503
|
+
function getResponseCacheKeys$12(keys, luvio, resourceParams, response) {
|
|
8504
8504
|
const childEnvelopes = response.results;
|
|
8505
8505
|
const childResourceParamsArray = createChildResourceParams$c(resourceParams);
|
|
8506
8506
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -8514,7 +8514,7 @@ function getResponseCacheKeys$$(keys, luvio, resourceParams, response) {
|
|
|
8514
8514
|
const childResult = childEnvelopes[index];
|
|
8515
8515
|
const { statusCode: childStatusCode, result: childBody } = childResult;
|
|
8516
8516
|
if (childStatusCode === 200) {
|
|
8517
|
-
getResponseCacheKeys$
|
|
8517
|
+
getResponseCacheKeys$13(keys, luvio, childResourceParams, childBody);
|
|
8518
8518
|
}
|
|
8519
8519
|
else if (childStatusCode === 404) {
|
|
8520
8520
|
const childKey = keyBuilder$3a(luvio, childResourceParams);
|
|
@@ -8532,7 +8532,7 @@ function ingestError$N(luvio, params, error, snapshotRefresh) {
|
|
|
8532
8532
|
luvio.storeIngestError(key, errorSnapshot);
|
|
8533
8533
|
return errorSnapshot;
|
|
8534
8534
|
}
|
|
8535
|
-
function createResourceRequest$
|
|
8535
|
+
function createResourceRequest$1a(config) {
|
|
8536
8536
|
const headers = {};
|
|
8537
8537
|
return {
|
|
8538
8538
|
baseUri: '/services/data/v60.0',
|
|
@@ -8546,7 +8546,7 @@ function createResourceRequest$17(config) {
|
|
|
8546
8546
|
};
|
|
8547
8547
|
}
|
|
8548
8548
|
|
|
8549
|
-
function createResourceParams
|
|
8549
|
+
function createResourceParams$11(config) {
|
|
8550
8550
|
const { records: configRecords } = config;
|
|
8551
8551
|
const recordIds = [];
|
|
8552
8552
|
const resourceConfigFields = [];
|
|
@@ -8600,7 +8600,7 @@ function createChildResourceParams$b(config) {
|
|
|
8600
8600
|
|
|
8601
8601
|
function adapterFragment$L(luvio, config) {
|
|
8602
8602
|
const childResources = createChildResourceParams$b(config);
|
|
8603
|
-
const resourceParams = createResourceParams
|
|
8603
|
+
const resourceParams = createResourceParams$11(config);
|
|
8604
8604
|
return selectChildResourceParams$8(luvio, childResources, resourceParams);
|
|
8605
8605
|
}
|
|
8606
8606
|
|
|
@@ -8617,7 +8617,7 @@ function onFetchResponseSuccess$P(luvio, config, resourceParams, response, serve
|
|
|
8617
8617
|
}
|
|
8618
8618
|
const snapshotStateFulfilled = 'Fulfilled';
|
|
8619
8619
|
const key = keyBuilder$39(luvio, resourceParams);
|
|
8620
|
-
const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$
|
|
8620
|
+
const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
|
|
8621
8621
|
const snapshot = {
|
|
8622
8622
|
recordId: key,
|
|
8623
8623
|
data: childSnapshotData,
|
|
@@ -8630,7 +8630,7 @@ function onFetchResponseSuccess$P(luvio, config, resourceParams, response, serve
|
|
|
8630
8630
|
},
|
|
8631
8631
|
refresh: {
|
|
8632
8632
|
config,
|
|
8633
|
-
resolve: () => buildNetworkSnapshot$
|
|
8633
|
+
resolve: () => buildNetworkSnapshot$16(luvio, config, serverRequestCount, snapshotRefreshOptions),
|
|
8634
8634
|
},
|
|
8635
8635
|
variables: {},
|
|
8636
8636
|
};
|
|
@@ -8640,17 +8640,17 @@ function onFetchResponseSuccess$P(luvio, config, resourceParams, response, serve
|
|
|
8640
8640
|
function onFetchResponseError$Q(luvio, config, resourceParams, response) {
|
|
8641
8641
|
const snapshot = ingestError$N(luvio, resourceParams, response, {
|
|
8642
8642
|
config,
|
|
8643
|
-
resolve: () => buildNetworkSnapshot$
|
|
8643
|
+
resolve: () => buildNetworkSnapshot$16(luvio, config, 0, snapshotRefreshOptions),
|
|
8644
8644
|
});
|
|
8645
8645
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8646
8646
|
}
|
|
8647
|
-
function buildNetworkSnapshot$
|
|
8648
|
-
const resourceParams = createResourceParams
|
|
8649
|
-
const request = createResourceRequest$
|
|
8647
|
+
function buildNetworkSnapshot$16(luvio, config, serverRequestCount = 0, options) {
|
|
8648
|
+
const resourceParams = createResourceParams$11(config);
|
|
8649
|
+
const request = createResourceRequest$1a(resourceParams);
|
|
8650
8650
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
8651
8651
|
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$P(luvio, config, resourceParams, response, serverRequestCount + 1), () => {
|
|
8652
8652
|
const cache = new StoreKeyMap();
|
|
8653
|
-
getResponseCacheKeys
|
|
8653
|
+
getResponseCacheKeys$12(cache, luvio, resourceParams, response.body);
|
|
8654
8654
|
return cache;
|
|
8655
8655
|
});
|
|
8656
8656
|
}, (response) => {
|
|
@@ -8671,7 +8671,7 @@ function resolveConflict(luvio, map) {
|
|
|
8671
8671
|
recordId,
|
|
8672
8672
|
optionalFields: convertTrieToFields(map.conflicts[recordId].trackedFields),
|
|
8673
8673
|
};
|
|
8674
|
-
buildNetworkSnapshot$
|
|
8674
|
+
buildNetworkSnapshot$17(luvio, config, map.serverRequestCount);
|
|
8675
8675
|
}
|
|
8676
8676
|
else {
|
|
8677
8677
|
const records = reduce.call(ids, (acc, id) => {
|
|
@@ -8683,10 +8683,10 @@ function resolveConflict(luvio, map) {
|
|
|
8683
8683
|
return acc;
|
|
8684
8684
|
}, []);
|
|
8685
8685
|
const config = { records };
|
|
8686
|
-
buildNetworkSnapshot$
|
|
8686
|
+
buildNetworkSnapshot$16(luvio, config, map.serverRequestCount);
|
|
8687
8687
|
}
|
|
8688
8688
|
}
|
|
8689
|
-
const ingest$
|
|
8689
|
+
const ingest$1T = (input, path, luvio, store, timestamp) => {
|
|
8690
8690
|
const conflictMap = {
|
|
8691
8691
|
conflicts: {},
|
|
8692
8692
|
serverRequestCount: 0,
|
|
@@ -8697,7 +8697,7 @@ const ingest$1U = (input, path, luvio, store, timestamp) => {
|
|
|
8697
8697
|
return result;
|
|
8698
8698
|
};
|
|
8699
8699
|
|
|
8700
|
-
const adapterName$
|
|
8700
|
+
const adapterName$Z = 'getListUiByApiName';
|
|
8701
8701
|
const getListUiByApiName_ConfigPropertyMetadata = [
|
|
8702
8702
|
generateParamConfigMetadata('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8703
8703
|
generateParamConfigMetadata('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1),
|
|
@@ -8707,9 +8707,9 @@ const getListUiByApiName_ConfigPropertyMetadata = [
|
|
|
8707
8707
|
generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
|
|
8708
8708
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
8709
8709
|
];
|
|
8710
|
-
const getListUiByApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8710
|
+
const getListUiByApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Z, getListUiByApiName_ConfigPropertyMetadata);
|
|
8711
8711
|
|
|
8712
|
-
const adapterName$
|
|
8712
|
+
const adapterName$Y = 'getListUiByListViewId';
|
|
8713
8713
|
const getListUiByListViewId_ConfigPropertyMetadata = [
|
|
8714
8714
|
generateParamConfigMetadata('listViewId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8715
8715
|
generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
@@ -8718,9 +8718,9 @@ const getListUiByListViewId_ConfigPropertyMetadata = [
|
|
|
8718
8718
|
generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
|
|
8719
8719
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
8720
8720
|
];
|
|
8721
|
-
const getListUiByListViewId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8721
|
+
const getListUiByListViewId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Y, getListUiByListViewId_ConfigPropertyMetadata);
|
|
8722
8722
|
|
|
8723
|
-
const adapterName$
|
|
8723
|
+
const adapterName$W = 'getMruListUi';
|
|
8724
8724
|
const getMruListUi_ConfigPropertyMetadata = [
|
|
8725
8725
|
generateParamConfigMetadata('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1),
|
|
8726
8726
|
generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
@@ -8729,7 +8729,7 @@ const getMruListUi_ConfigPropertyMetadata = [
|
|
|
8729
8729
|
generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
|
|
8730
8730
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
8731
8731
|
];
|
|
8732
|
-
const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8732
|
+
const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$W, getMruListUi_ConfigPropertyMetadata);
|
|
8733
8733
|
// make local copies of the adapter configs so we can ignore other getListUi config parameters to match
|
|
8734
8734
|
// lds222 behavior
|
|
8735
8735
|
({
|
|
@@ -8806,12 +8806,12 @@ ObjectCreate$1(null);
|
|
|
8806
8806
|
|
|
8807
8807
|
ObjectCreate$1(null);
|
|
8808
8808
|
|
|
8809
|
-
const VERSION$
|
|
8810
|
-
const select$
|
|
8811
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
8809
|
+
const VERSION$1O = "8d2032474fb4fabdf5cf4042be9042d9";
|
|
8810
|
+
const select$1$ = function WorkStepPicklistValueAttributeRepresentationSelect() {
|
|
8811
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1X();
|
|
8812
8812
|
return {
|
|
8813
8813
|
kind: 'Fragment',
|
|
8814
|
-
version: VERSION$
|
|
8814
|
+
version: VERSION$1O,
|
|
8815
8815
|
private: [],
|
|
8816
8816
|
selections: [
|
|
8817
8817
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -8827,12 +8827,12 @@ const select$20 = function WorkStepPicklistValueAttributeRepresentationSelect()
|
|
|
8827
8827
|
};
|
|
8828
8828
|
};
|
|
8829
8829
|
|
|
8830
|
-
const VERSION$
|
|
8831
|
-
const select$
|
|
8832
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
8830
|
+
const VERSION$1N = "53893a219bc0888951863f2c44317cac";
|
|
8831
|
+
const select$1_ = function LeadStatusPicklistValueAttributesRepresentationSelect() {
|
|
8832
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1X();
|
|
8833
8833
|
return {
|
|
8834
8834
|
kind: 'Fragment',
|
|
8835
|
-
version: VERSION$
|
|
8835
|
+
version: VERSION$1N,
|
|
8836
8836
|
private: [],
|
|
8837
8837
|
selections: [
|
|
8838
8838
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -8844,12 +8844,12 @@ const select$1$ = function LeadStatusPicklistValueAttributesRepresentationSelect
|
|
|
8844
8844
|
};
|
|
8845
8845
|
};
|
|
8846
8846
|
|
|
8847
|
-
const VERSION$
|
|
8848
|
-
const select$
|
|
8849
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
8847
|
+
const VERSION$1M = "4818ec07c499784571c1012ead048c88";
|
|
8848
|
+
const select$1Z = function CaseStatusPicklistValueAttributesRepresentationSelect() {
|
|
8849
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1X();
|
|
8850
8850
|
return {
|
|
8851
8851
|
kind: 'Fragment',
|
|
8852
|
-
version: VERSION$
|
|
8852
|
+
version: VERSION$1M,
|
|
8853
8853
|
private: [],
|
|
8854
8854
|
selections: [
|
|
8855
8855
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -8861,12 +8861,12 @@ const select$1_ = function CaseStatusPicklistValueAttributesRepresentationSelect
|
|
|
8861
8861
|
};
|
|
8862
8862
|
};
|
|
8863
8863
|
|
|
8864
|
-
const VERSION$
|
|
8865
|
-
const select$
|
|
8866
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
8864
|
+
const VERSION$1L = "950a3a962acbd2b128f937d4c055a9d6";
|
|
8865
|
+
const select$1Y = function OpportunityStagePicklistValueAttributesRepresentationSelect() {
|
|
8866
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1X();
|
|
8867
8867
|
return {
|
|
8868
8868
|
kind: 'Fragment',
|
|
8869
|
-
version: VERSION$
|
|
8869
|
+
version: VERSION$1L,
|
|
8870
8870
|
private: [],
|
|
8871
8871
|
selections: [
|
|
8872
8872
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -8897,12 +8897,12 @@ var DiscriminatorValues$3;
|
|
|
8897
8897
|
DiscriminatorValues["CaseStatus"] = "CaseStatus";
|
|
8898
8898
|
DiscriminatorValues["OpportunityStage"] = "OpportunityStage";
|
|
8899
8899
|
})(DiscriminatorValues$3 || (DiscriminatorValues$3 = {}));
|
|
8900
|
-
const VERSION$
|
|
8900
|
+
const VERSION$1K = "bd523b2343366edfc25a2dbee2c4e986";
|
|
8901
8901
|
const selectChildren$3 = function AbstractPicklistValueAttributesRepresentationSelectChildren() {
|
|
8902
|
-
const workStepPicklistValueAttributeRepresentationSelections = select$
|
|
8903
|
-
const leadStatusPicklistValueAttributesRepresentationSelections = select$
|
|
8904
|
-
const caseStatusPicklistValueAttributesRepresentationSelections = select$
|
|
8905
|
-
const opportunityStagePicklistValueAttributesRepresentationSelections = select$
|
|
8902
|
+
const workStepPicklistValueAttributeRepresentationSelections = select$1$();
|
|
8903
|
+
const leadStatusPicklistValueAttributesRepresentationSelections = select$1_();
|
|
8904
|
+
const caseStatusPicklistValueAttributesRepresentationSelections = select$1Z();
|
|
8905
|
+
const opportunityStagePicklistValueAttributesRepresentationSelections = select$1Y();
|
|
8906
8906
|
return {
|
|
8907
8907
|
kind: 'Fragment',
|
|
8908
8908
|
union: true,
|
|
@@ -8915,10 +8915,10 @@ const selectChildren$3 = function AbstractPicklistValueAttributesRepresentationS
|
|
|
8915
8915
|
}
|
|
8916
8916
|
};
|
|
8917
8917
|
};
|
|
8918
|
-
const select$
|
|
8918
|
+
const select$1X = function AbstractPicklistValueAttributesRepresentationSelect() {
|
|
8919
8919
|
return {
|
|
8920
8920
|
kind: 'Fragment',
|
|
8921
|
-
version: VERSION$
|
|
8921
|
+
version: VERSION$1K,
|
|
8922
8922
|
private: [],
|
|
8923
8923
|
selections: [
|
|
8924
8924
|
{
|
|
@@ -8929,12 +8929,12 @@ const select$1Y = function AbstractPicklistValueAttributesRepresentationSelect()
|
|
|
8929
8929
|
};
|
|
8930
8930
|
};
|
|
8931
8931
|
|
|
8932
|
-
const VERSION$
|
|
8933
|
-
const select$
|
|
8932
|
+
const VERSION$1J = "9e2a16a80378487f557124c771201cf9";
|
|
8933
|
+
const select$1W = function PicklistValueRepresentationSelect() {
|
|
8934
8934
|
const AbstractPicklistValueAttributesRepresentation__unionSelections = selectChildren$3();
|
|
8935
8935
|
return {
|
|
8936
8936
|
kind: 'Fragment',
|
|
8937
|
-
version: VERSION$
|
|
8937
|
+
version: VERSION$1J,
|
|
8938
8938
|
private: [],
|
|
8939
8939
|
selections: [
|
|
8940
8940
|
{
|
|
@@ -8961,12 +8961,12 @@ const select$1X = function PicklistValueRepresentationSelect() {
|
|
|
8961
8961
|
]
|
|
8962
8962
|
};
|
|
8963
8963
|
};
|
|
8964
|
-
const VERSION$
|
|
8965
|
-
const select$
|
|
8966
|
-
const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$
|
|
8964
|
+
const VERSION$1I = "0a361a49370acb4c6a31721a2057649a";
|
|
8965
|
+
const select$1V = function PicklistValuesRepresentationSelect() {
|
|
8966
|
+
const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$1W();
|
|
8967
8967
|
return {
|
|
8968
8968
|
kind: 'Fragment',
|
|
8969
|
-
version: VERSION$
|
|
8969
|
+
version: VERSION$1I,
|
|
8970
8970
|
private: [
|
|
8971
8971
|
'eTag'
|
|
8972
8972
|
],
|
|
@@ -8996,7 +8996,7 @@ const select$1W = function PicklistValuesRepresentationSelect() {
|
|
|
8996
8996
|
};
|
|
8997
8997
|
};
|
|
8998
8998
|
|
|
8999
|
-
select$
|
|
8999
|
+
select$1V().selections;
|
|
9000
9000
|
|
|
9001
9001
|
var DiscriminatorValues$2;
|
|
9002
9002
|
(function (DiscriminatorValues) {
|
|
@@ -9235,7 +9235,7 @@ class AdsBridge {
|
|
|
9235
9235
|
// Don't let incorrect ADS/RecordGVP recordTypeIds replace a valid record type in our store
|
|
9236
9236
|
// with the master record type. See W-7302870 for details.
|
|
9237
9237
|
fixRecordTypes(luvio, recordCopy);
|
|
9238
|
-
luvio.storeIngest(INGEST_KEY, ingest$
|
|
9238
|
+
luvio.storeIngest(INGEST_KEY, ingest$1T, recordCopy);
|
|
9239
9239
|
}
|
|
9240
9240
|
}
|
|
9241
9241
|
if (didIngestRecord === true) {
|
package/dist/adsBridge.js
CHANGED