@salesforce/lds-ads-bridge 1.345.0 → 1.347.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 +92 -92
- package/dist/adsBridge.js +1 -1
- package/package.json +4 -4
package/dist/ads-bridge-perf.js
CHANGED
|
@@ -481,7 +481,7 @@ const callbacks$1 = [];
|
|
|
481
481
|
function register(r) {
|
|
482
482
|
callbacks$1.forEach((callback) => callback(r));
|
|
483
483
|
}
|
|
484
|
-
// version: 1.
|
|
484
|
+
// version: 1.347.0-ef72dda80d
|
|
485
485
|
|
|
486
486
|
/**
|
|
487
487
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -5029,7 +5029,7 @@ function toSortedStringArray(value) {
|
|
|
5029
5029
|
return undefined;
|
|
5030
5030
|
}
|
|
5031
5031
|
|
|
5032
|
-
const VERSION$
|
|
5032
|
+
const VERSION$2N = "d1e589a127fb1060c89070cdb6f500b2";
|
|
5033
5033
|
function validate$21(obj, path = 'RecordTypeInfoRepresentation') {
|
|
5034
5034
|
const v_error = (() => {
|
|
5035
5035
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5063,10 +5063,10 @@ function validate$21(obj, path = 'RecordTypeInfoRepresentation') {
|
|
|
5063
5063
|
})();
|
|
5064
5064
|
return v_error === undefined ? null : v_error;
|
|
5065
5065
|
}
|
|
5066
|
-
const select$
|
|
5066
|
+
const select$3s = function RecordTypeInfoRepresentationSelect() {
|
|
5067
5067
|
return {
|
|
5068
5068
|
kind: 'Fragment',
|
|
5069
|
-
version: VERSION$
|
|
5069
|
+
version: VERSION$2N,
|
|
5070
5070
|
private: [],
|
|
5071
5071
|
selections: [
|
|
5072
5072
|
{
|
|
@@ -5121,7 +5121,7 @@ function equals$1c(existing, incoming) {
|
|
|
5121
5121
|
return true;
|
|
5122
5122
|
}
|
|
5123
5123
|
|
|
5124
|
-
const VERSION$
|
|
5124
|
+
const VERSION$2M = "195d918987a35f45e1aa4dce9a11d8c5";
|
|
5125
5125
|
function validate$20(obj, path = 'FieldValueRepresentation') {
|
|
5126
5126
|
const v_error = (() => {
|
|
5127
5127
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5213,10 +5213,10 @@ function validate$20(obj, path = 'FieldValueRepresentation') {
|
|
|
5213
5213
|
return v_error === undefined ? null : v_error;
|
|
5214
5214
|
}
|
|
5215
5215
|
const RepresentationType$10 = 'FieldValueRepresentation';
|
|
5216
|
-
const select$
|
|
5216
|
+
const select$3r = function FieldValueRepresentationSelect() {
|
|
5217
5217
|
return {
|
|
5218
5218
|
kind: 'Fragment',
|
|
5219
|
-
version: VERSION$
|
|
5219
|
+
version: VERSION$2M,
|
|
5220
5220
|
private: [],
|
|
5221
5221
|
selections: [
|
|
5222
5222
|
{
|
|
@@ -5227,7 +5227,7 @@ const select$3n = function FieldValueRepresentationSelect() {
|
|
|
5227
5227
|
name: 'value',
|
|
5228
5228
|
kind: 'Link',
|
|
5229
5229
|
nullable: true,
|
|
5230
|
-
fragment: select$
|
|
5230
|
+
fragment: select$3p()
|
|
5231
5231
|
}
|
|
5232
5232
|
]
|
|
5233
5233
|
};
|
|
@@ -5250,7 +5250,7 @@ function equals$1b(existing, incoming) {
|
|
|
5250
5250
|
}
|
|
5251
5251
|
return true;
|
|
5252
5252
|
}
|
|
5253
|
-
function getTypeCacheKeys$
|
|
5253
|
+
function getTypeCacheKeys$2m(rootKeySet, luvio, input, fullPathFactory) {
|
|
5254
5254
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5255
5255
|
const rootKey = fullPathFactory();
|
|
5256
5256
|
rootKeySet.set(rootKey, {
|
|
@@ -5259,12 +5259,12 @@ function getTypeCacheKeys$2i(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5259
5259
|
mergeable: false
|
|
5260
5260
|
});
|
|
5261
5261
|
if (input.value !== null && typeof input.value === 'object') {
|
|
5262
|
-
getTypeCacheKeys$
|
|
5262
|
+
getTypeCacheKeys$2l(rootKeySet, luvio, input.value);
|
|
5263
5263
|
}
|
|
5264
5264
|
}
|
|
5265
5265
|
|
|
5266
5266
|
// we override the generated so we can set "mergeable: true" on the root key
|
|
5267
|
-
const getTypeCacheKeys$
|
|
5267
|
+
const getTypeCacheKeys$2l = (rootKeySet, luvio, input, _fullPathFactory) => {
|
|
5268
5268
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5269
5269
|
const rootKey = keyBuilderFromType$D(luvio, input);
|
|
5270
5270
|
rootKeySet.set(rootKey, {
|
|
@@ -5277,20 +5277,20 @@ const getTypeCacheKeys$2h = (rootKeySet, luvio, input, _fullPathFactory) => {
|
|
|
5277
5277
|
const input_childRelationships_length = input_childRelationships_keys.length;
|
|
5278
5278
|
for (let i = 0; i < input_childRelationships_length; i++) {
|
|
5279
5279
|
const key = input_childRelationships_keys[i];
|
|
5280
|
-
getTypeCacheKeys$
|
|
5280
|
+
getTypeCacheKeys$2k(rootKeySet, luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
|
|
5281
5281
|
}
|
|
5282
5282
|
const input_fields = input.fields;
|
|
5283
5283
|
const input_fields_keys = keys$1(input_fields);
|
|
5284
5284
|
const input_fields_length = input_fields_keys.length;
|
|
5285
5285
|
for (let i = 0; i < input_fields_length; i++) {
|
|
5286
5286
|
const key = input_fields_keys[i];
|
|
5287
|
-
getTypeCacheKeys$
|
|
5287
|
+
getTypeCacheKeys$2m(rootKeySet, luvio, input_fields[key], () => rootKey + '__fields__' + key);
|
|
5288
5288
|
}
|
|
5289
5289
|
return rootKeySet;
|
|
5290
5290
|
};
|
|
5291
5291
|
|
|
5292
5292
|
const TTL$G = 120000;
|
|
5293
|
-
const VERSION$
|
|
5293
|
+
const VERSION$2L = "79cb5ac9f44542f683d00245fdfe500d";
|
|
5294
5294
|
function validate$1$(obj, path = 'RecordCollectionRepresentation') {
|
|
5295
5295
|
const v_error = (() => {
|
|
5296
5296
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5458,7 +5458,7 @@ function normalize$T(input, existing, path, luvio, store, timestamp) {
|
|
|
5458
5458
|
for (let i = 0; i < input_records.length; i++) {
|
|
5459
5459
|
const input_records_item = input_records[i];
|
|
5460
5460
|
let input_records_item_id = input_records_id + '__' + i;
|
|
5461
|
-
input_records[i] = ingest$
|
|
5461
|
+
input_records[i] = ingest$2g(input_records_item, {
|
|
5462
5462
|
fullPath: input_records_item_id,
|
|
5463
5463
|
propertyName: i,
|
|
5464
5464
|
parent: {
|
|
@@ -5471,10 +5471,10 @@ function normalize$T(input, existing, path, luvio, store, timestamp) {
|
|
|
5471
5471
|
}
|
|
5472
5472
|
return input;
|
|
5473
5473
|
}
|
|
5474
|
-
const select$
|
|
5474
|
+
const select$3q = function RecordCollectionRepresentationSelect() {
|
|
5475
5475
|
return {
|
|
5476
5476
|
kind: 'Fragment',
|
|
5477
|
-
version: VERSION$
|
|
5477
|
+
version: VERSION$2L,
|
|
5478
5478
|
private: [],
|
|
5479
5479
|
selections: [
|
|
5480
5480
|
{
|
|
@@ -5509,7 +5509,7 @@ const select$3m = function RecordCollectionRepresentationSelect() {
|
|
|
5509
5509
|
name: 'records',
|
|
5510
5510
|
kind: 'Link',
|
|
5511
5511
|
plural: true,
|
|
5512
|
-
fragment: select$
|
|
5512
|
+
fragment: select$3p()
|
|
5513
5513
|
}
|
|
5514
5514
|
]
|
|
5515
5515
|
};
|
|
@@ -5562,7 +5562,7 @@ function equals$1a(existing, incoming) {
|
|
|
5562
5562
|
}
|
|
5563
5563
|
return true;
|
|
5564
5564
|
}
|
|
5565
|
-
const ingest$
|
|
5565
|
+
const ingest$2h = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5566
5566
|
if (process.env.NODE_ENV !== 'production') {
|
|
5567
5567
|
const validateError = validate$1$(input);
|
|
5568
5568
|
if (validateError !== null) {
|
|
@@ -5571,10 +5571,10 @@ const ingest$2d = function RecordCollectionRepresentationIngest(input, path, luv
|
|
|
5571
5571
|
}
|
|
5572
5572
|
const key = path.fullPath;
|
|
5573
5573
|
const ttlToUse = TTL$G;
|
|
5574
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$T, "UiApi", VERSION$
|
|
5574
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$T, "UiApi", VERSION$2L, RepresentationType$$, equals$1a);
|
|
5575
5575
|
return createLink$1(key);
|
|
5576
5576
|
};
|
|
5577
|
-
function getTypeCacheKeys$
|
|
5577
|
+
function getTypeCacheKeys$2k(rootKeySet, luvio, input, fullPathFactory) {
|
|
5578
5578
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5579
5579
|
const rootKey = fullPathFactory();
|
|
5580
5580
|
rootKeySet.set(rootKey, {
|
|
@@ -5584,7 +5584,7 @@ function getTypeCacheKeys$2g(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5584
5584
|
});
|
|
5585
5585
|
const input_records_length = input.records.length;
|
|
5586
5586
|
for (let i = 0; i < input_records_length; i++) {
|
|
5587
|
-
getTypeCacheKeys$
|
|
5587
|
+
getTypeCacheKeys$2l(rootKeySet, luvio, input.records[i]);
|
|
5588
5588
|
}
|
|
5589
5589
|
}
|
|
5590
5590
|
|
|
@@ -5599,7 +5599,7 @@ const keyBuilderFromType$E = function RecordRepresentationKeyBuilderFromType(luv
|
|
|
5599
5599
|
};
|
|
5600
5600
|
|
|
5601
5601
|
const TTL$F = 30000;
|
|
5602
|
-
const VERSION$
|
|
5602
|
+
const VERSION$2K = "98c5b18512e48ca8d28727549507e4ba";
|
|
5603
5603
|
function validate$1_(obj, path = 'RecordRepresentation') {
|
|
5604
5604
|
const v_error = (() => {
|
|
5605
5605
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5790,14 +5790,14 @@ function validate$1_(obj, path = 'RecordRepresentation') {
|
|
|
5790
5790
|
return v_error === undefined ? null : v_error;
|
|
5791
5791
|
}
|
|
5792
5792
|
const RepresentationType$_ = 'RecordRepresentation';
|
|
5793
|
-
function keyBuilder$
|
|
5793
|
+
function keyBuilder$3E(luvio, config) {
|
|
5794
5794
|
return keyPrefix + '::' + RepresentationType$_ + ':' + config.recordId;
|
|
5795
5795
|
}
|
|
5796
5796
|
function keyBuilderFromType$D(luvio, object) {
|
|
5797
5797
|
const keyParams = {
|
|
5798
5798
|
recordId: object.id
|
|
5799
5799
|
};
|
|
5800
|
-
return keyBuilder$
|
|
5800
|
+
return keyBuilder$3E(luvio, keyParams);
|
|
5801
5801
|
}
|
|
5802
5802
|
function dynamicNormalize$5(ingestParams) {
|
|
5803
5803
|
return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
|
|
@@ -5842,11 +5842,11 @@ function dynamicNormalize$5(ingestParams) {
|
|
|
5842
5842
|
return input;
|
|
5843
5843
|
};
|
|
5844
5844
|
}
|
|
5845
|
-
const select$
|
|
5846
|
-
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$
|
|
5845
|
+
const select$3p = function RecordRepresentationSelect() {
|
|
5846
|
+
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$3s();
|
|
5847
5847
|
return {
|
|
5848
5848
|
kind: 'Fragment',
|
|
5849
|
-
version: VERSION$
|
|
5849
|
+
version: VERSION$2K,
|
|
5850
5850
|
private: [
|
|
5851
5851
|
'eTag',
|
|
5852
5852
|
'weakEtag'
|
|
@@ -5860,13 +5860,13 @@ const select$3l = function RecordRepresentationSelect() {
|
|
|
5860
5860
|
name: 'childRelationships',
|
|
5861
5861
|
kind: 'Link',
|
|
5862
5862
|
map: true,
|
|
5863
|
-
fragment: select$
|
|
5863
|
+
fragment: select$3q()
|
|
5864
5864
|
},
|
|
5865
5865
|
{
|
|
5866
5866
|
name: 'fields',
|
|
5867
5867
|
kind: 'Link',
|
|
5868
5868
|
map: true,
|
|
5869
|
-
fragment: select$
|
|
5869
|
+
fragment: select$3r()
|
|
5870
5870
|
},
|
|
5871
5871
|
{
|
|
5872
5872
|
name: 'id',
|
|
@@ -5902,18 +5902,18 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
|
|
|
5902
5902
|
name: 'childRelationships',
|
|
5903
5903
|
kind: 'Link',
|
|
5904
5904
|
map: true,
|
|
5905
|
-
fragment: select$
|
|
5905
|
+
fragment: select$3q()
|
|
5906
5906
|
} : params.childRelationships;
|
|
5907
5907
|
const fieldsPathSelection = params.fields === undefined ? {
|
|
5908
5908
|
name: 'fields',
|
|
5909
5909
|
kind: 'Link',
|
|
5910
5910
|
map: true,
|
|
5911
|
-
fragment: select$
|
|
5911
|
+
fragment: select$3r()
|
|
5912
5912
|
} : params.fields;
|
|
5913
|
-
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$
|
|
5913
|
+
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$3s();
|
|
5914
5914
|
return {
|
|
5915
5915
|
kind: 'Fragment',
|
|
5916
|
-
version: VERSION$
|
|
5916
|
+
version: VERSION$2K,
|
|
5917
5917
|
private: [
|
|
5918
5918
|
'eTag',
|
|
5919
5919
|
'weakEtag'
|
|
@@ -7657,7 +7657,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
7657
7657
|
kind: 'Fragment',
|
|
7658
7658
|
private: ['eTag', 'weakEtag'],
|
|
7659
7659
|
selections: createRecordSelection(childFieldDefinition),
|
|
7660
|
-
version: VERSION$
|
|
7660
|
+
version: VERSION$2K,
|
|
7661
7661
|
},
|
|
7662
7662
|
};
|
|
7663
7663
|
}
|
|
@@ -7667,7 +7667,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
7667
7667
|
required: childFieldDefinition.optional === true ? false : undefined,
|
|
7668
7668
|
fragment: {
|
|
7669
7669
|
kind: 'Fragment',
|
|
7670
|
-
version: VERSION$
|
|
7670
|
+
version: VERSION$2M,
|
|
7671
7671
|
private: [],
|
|
7672
7672
|
selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
|
|
7673
7673
|
},
|
|
@@ -8177,7 +8177,7 @@ function mergeAndRefreshLowerVersionRecord(luvio, incoming, existing, incomingTr
|
|
|
8177
8177
|
return existing;
|
|
8178
8178
|
}
|
|
8179
8179
|
function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
|
|
8180
|
-
const recordKey = keyBuilder$
|
|
8180
|
+
const recordKey = keyBuilder$3E(luvio, {
|
|
8181
8181
|
recordId: incoming.id,
|
|
8182
8182
|
});
|
|
8183
8183
|
const incomingNode = luvio.wrapNormalizedGraphNode(incoming, recordKey);
|
|
@@ -8438,7 +8438,7 @@ function createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap
|
|
|
8438
8438
|
}
|
|
8439
8439
|
function createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
|
|
8440
8440
|
return dynamicNormalize$5({
|
|
8441
|
-
childRelationships: ingest$
|
|
8441
|
+
childRelationships: ingest$2h,
|
|
8442
8442
|
fields: createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap),
|
|
8443
8443
|
});
|
|
8444
8444
|
}
|
|
@@ -8474,7 +8474,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
|
|
|
8474
8474
|
ttl: TTL$F,
|
|
8475
8475
|
representationName: RepresentationType$_,
|
|
8476
8476
|
namespace: keyPrefix,
|
|
8477
|
-
version: VERSION$
|
|
8477
|
+
version: VERSION$2K,
|
|
8478
8478
|
ingestionTimestamp: timestamp,
|
|
8479
8479
|
});
|
|
8480
8480
|
return createLink$1(key);
|
|
@@ -8571,13 +8571,13 @@ const createResourceRequest$1h = function getUiApiRecordsByRecordIdCreateResourc
|
|
|
8571
8571
|
};
|
|
8572
8572
|
};
|
|
8573
8573
|
|
|
8574
|
-
function keyBuilder$
|
|
8575
|
-
return keyBuilder$
|
|
8574
|
+
function keyBuilder$3D(luvio, params) {
|
|
8575
|
+
return keyBuilder$3E(luvio, {
|
|
8576
8576
|
recordId: params.urlParams.recordId
|
|
8577
8577
|
});
|
|
8578
8578
|
}
|
|
8579
8579
|
function getResponseCacheKeys$17(storeKeyMap, luvio, resourceParams, response) {
|
|
8580
|
-
getTypeCacheKeys$
|
|
8580
|
+
getTypeCacheKeys$2l(storeKeyMap, luvio, response);
|
|
8581
8581
|
}
|
|
8582
8582
|
function createResourceRequest$1g(config) {
|
|
8583
8583
|
const headers = {};
|
|
@@ -8608,12 +8608,12 @@ const createResourceParams$15 = /*#__PURE__*/ createResourceParams(getRecord_Con
|
|
|
8608
8608
|
// used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
|
|
8609
8609
|
function buildRecordSelector(luvio, recordId, fields, optionalFields) {
|
|
8610
8610
|
return {
|
|
8611
|
-
recordId: keyBuilder$
|
|
8611
|
+
recordId: keyBuilder$3E(luvio, { recordId }),
|
|
8612
8612
|
node: {
|
|
8613
8613
|
kind: 'Fragment',
|
|
8614
8614
|
private: ['eTag', 'weakEtag'],
|
|
8615
8615
|
selections: buildSelectionFromFields(fields, optionalFields),
|
|
8616
|
-
version: VERSION$
|
|
8616
|
+
version: VERSION$2K,
|
|
8617
8617
|
},
|
|
8618
8618
|
variables: {},
|
|
8619
8619
|
};
|
|
@@ -8627,7 +8627,7 @@ function buildSnapshotRefresh$5(luvio, config) {
|
|
|
8627
8627
|
function prepareRequest$7(luvio, config) {
|
|
8628
8628
|
const { recordId, fields } = config;
|
|
8629
8629
|
// Should this go into the coersion logic?
|
|
8630
|
-
const key = keyBuilder$
|
|
8630
|
+
const key = keyBuilder$3D(luvio, createResourceParams$15(config));
|
|
8631
8631
|
const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
|
|
8632
8632
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
|
|
8633
8633
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
@@ -8700,7 +8700,7 @@ function isSingleBatchRecordResponse(response) {
|
|
|
8700
8700
|
response.results.length === 1);
|
|
8701
8701
|
}
|
|
8702
8702
|
|
|
8703
|
-
const VERSION$
|
|
8703
|
+
const VERSION$2J = "98cce53b8d13b1883d001bbdaab24383";
|
|
8704
8704
|
|
|
8705
8705
|
const nonCachedErrors$8 = ObjectCreate$1(null);
|
|
8706
8706
|
function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
|
|
@@ -8710,7 +8710,7 @@ function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, chi
|
|
|
8710
8710
|
const now = Date.now();
|
|
8711
8711
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
8712
8712
|
const childResourceParams = childResourceParamsArray[index];
|
|
8713
|
-
const childKey = keyBuilder$
|
|
8713
|
+
const childKey = keyBuilder$3D(luvio, childResourceParams);
|
|
8714
8714
|
const result = childEnvelopes[index];
|
|
8715
8715
|
const { statusCode: childStatusCode, result: childBody } = result;
|
|
8716
8716
|
if (childStatusCode === 200) {
|
|
@@ -8797,11 +8797,11 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
|
|
|
8797
8797
|
read: (reader) => {
|
|
8798
8798
|
// Top-level 404 lookup
|
|
8799
8799
|
const compositeSnapshot = luvio.storeLookup({
|
|
8800
|
-
recordId: keyBuilder$
|
|
8800
|
+
recordId: keyBuilder$3C(luvio, resourceParams),
|
|
8801
8801
|
node: {
|
|
8802
8802
|
kind: 'Fragment',
|
|
8803
8803
|
private: [],
|
|
8804
|
-
version: VERSION$
|
|
8804
|
+
version: VERSION$2J,
|
|
8805
8805
|
},
|
|
8806
8806
|
variables: {},
|
|
8807
8807
|
});
|
|
@@ -8821,7 +8821,7 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
|
|
|
8821
8821
|
reader.enterPath(i);
|
|
8822
8822
|
reader.enterPath(envelopeBodyPath);
|
|
8823
8823
|
const childResource = childResources[i];
|
|
8824
|
-
const childKey = keyBuilder$
|
|
8824
|
+
const childKey = keyBuilder$3D(luvio, childResource);
|
|
8825
8825
|
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
8826
8826
|
const childSnapshot = reader.read(buildRecordSelector(luvio, childResource.urlParams.recordId, childResource.queryParams.fields || [], childResource.queryParams.optionalFields || []));
|
|
8827
8827
|
reader.exitPath();
|
|
@@ -8921,7 +8921,7 @@ function createChildResourceParams$c(resourceParams) {
|
|
|
8921
8921
|
}
|
|
8922
8922
|
return childConfigs;
|
|
8923
8923
|
}
|
|
8924
|
-
function keyBuilder$
|
|
8924
|
+
function keyBuilder$3C(luvio, params) {
|
|
8925
8925
|
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 + ')';
|
|
8926
8926
|
}
|
|
8927
8927
|
function getResponseCacheKeys$16(keys, luvio, resourceParams, response) {
|
|
@@ -8941,7 +8941,7 @@ function getResponseCacheKeys$16(keys, luvio, resourceParams, response) {
|
|
|
8941
8941
|
getResponseCacheKeys$17(keys, luvio, childResourceParams, childBody);
|
|
8942
8942
|
}
|
|
8943
8943
|
else if (childStatusCode === 404) {
|
|
8944
|
-
const childKey = keyBuilder$
|
|
8944
|
+
const childKey = keyBuilder$3D(luvio, childResourceParams);
|
|
8945
8945
|
keys.set(childKey, {
|
|
8946
8946
|
namespace: keyPrefix,
|
|
8947
8947
|
representationName: RepresentationType$_,
|
|
@@ -8951,7 +8951,7 @@ function getResponseCacheKeys$16(keys, luvio, resourceParams, response) {
|
|
|
8951
8951
|
}
|
|
8952
8952
|
}
|
|
8953
8953
|
function ingestError$Q(luvio, params, error, snapshotRefresh) {
|
|
8954
|
-
const key = keyBuilder$
|
|
8954
|
+
const key = keyBuilder$3C(luvio, params);
|
|
8955
8955
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
8956
8956
|
luvio.storeIngestError(key, errorSnapshot);
|
|
8957
8957
|
return errorSnapshot;
|
|
@@ -9040,7 +9040,7 @@ function onFetchResponseSuccess$S(luvio, config, resourceParams, response, serve
|
|
|
9040
9040
|
}
|
|
9041
9041
|
}
|
|
9042
9042
|
const snapshotStateFulfilled = 'Fulfilled';
|
|
9043
|
-
const key = keyBuilder$
|
|
9043
|
+
const key = keyBuilder$3C(luvio, resourceParams);
|
|
9044
9044
|
const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
|
|
9045
9045
|
const snapshot = {
|
|
9046
9046
|
recordId: key,
|
|
@@ -9110,7 +9110,7 @@ function resolveConflict(luvio, map) {
|
|
|
9110
9110
|
buildNetworkSnapshot$1a(luvio, config, map.serverRequestCount);
|
|
9111
9111
|
}
|
|
9112
9112
|
}
|
|
9113
|
-
const ingest$
|
|
9113
|
+
const ingest$2g = (input, path, luvio, store, timestamp) => {
|
|
9114
9114
|
const conflictMap = {
|
|
9115
9115
|
conflicts: {},
|
|
9116
9116
|
serverRequestCount: 0,
|
|
@@ -9188,7 +9188,7 @@ const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationCon
|
|
|
9188
9188
|
},
|
|
9189
9189
|
});
|
|
9190
9190
|
const RepresentationType$T = 'ObjectInfoRepresentation';
|
|
9191
|
-
function keyBuilder$
|
|
9191
|
+
function keyBuilder$3n(luvio, config) {
|
|
9192
9192
|
return keyPrefix + '::' + RepresentationType$T + ':' + config.apiName;
|
|
9193
9193
|
}
|
|
9194
9194
|
|
|
@@ -9230,12 +9230,12 @@ ObjectCreate$1(null);
|
|
|
9230
9230
|
|
|
9231
9231
|
ObjectCreate$1(null);
|
|
9232
9232
|
|
|
9233
|
-
const VERSION$
|
|
9234
|
-
const select$
|
|
9235
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
9233
|
+
const VERSION$22 = "8d2032474fb4fabdf5cf4042be9042d9";
|
|
9234
|
+
const select$2g = function WorkStepPicklistValueAttributeRepresentationSelect() {
|
|
9235
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$2c();
|
|
9236
9236
|
return {
|
|
9237
9237
|
kind: 'Fragment',
|
|
9238
|
-
version: VERSION$
|
|
9238
|
+
version: VERSION$22,
|
|
9239
9239
|
private: [],
|
|
9240
9240
|
selections: [
|
|
9241
9241
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -9251,12 +9251,12 @@ const select$2c = function WorkStepPicklistValueAttributeRepresentationSelect()
|
|
|
9251
9251
|
};
|
|
9252
9252
|
};
|
|
9253
9253
|
|
|
9254
|
-
const VERSION$
|
|
9255
|
-
const select$
|
|
9256
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
9254
|
+
const VERSION$21 = "53893a219bc0888951863f2c44317cac";
|
|
9255
|
+
const select$2f = function LeadStatusPicklistValueAttributesRepresentationSelect() {
|
|
9256
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$2c();
|
|
9257
9257
|
return {
|
|
9258
9258
|
kind: 'Fragment',
|
|
9259
|
-
version: VERSION$
|
|
9259
|
+
version: VERSION$21,
|
|
9260
9260
|
private: [],
|
|
9261
9261
|
selections: [
|
|
9262
9262
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -9268,12 +9268,12 @@ const select$2b = function LeadStatusPicklistValueAttributesRepresentationSelect
|
|
|
9268
9268
|
};
|
|
9269
9269
|
};
|
|
9270
9270
|
|
|
9271
|
-
const VERSION$
|
|
9272
|
-
const select$
|
|
9273
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
9271
|
+
const VERSION$20 = "4818ec07c499784571c1012ead048c88";
|
|
9272
|
+
const select$2e = function CaseStatusPicklistValueAttributesRepresentationSelect() {
|
|
9273
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$2c();
|
|
9274
9274
|
return {
|
|
9275
9275
|
kind: 'Fragment',
|
|
9276
|
-
version: VERSION$
|
|
9276
|
+
version: VERSION$20,
|
|
9277
9277
|
private: [],
|
|
9278
9278
|
selections: [
|
|
9279
9279
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -9285,12 +9285,12 @@ const select$2a = function CaseStatusPicklistValueAttributesRepresentationSelect
|
|
|
9285
9285
|
};
|
|
9286
9286
|
};
|
|
9287
9287
|
|
|
9288
|
-
const VERSION$
|
|
9289
|
-
const select$
|
|
9290
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
9288
|
+
const VERSION$1$ = "950a3a962acbd2b128f937d4c055a9d6";
|
|
9289
|
+
const select$2d = function OpportunityStagePicklistValueAttributesRepresentationSelect() {
|
|
9290
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$2c();
|
|
9291
9291
|
return {
|
|
9292
9292
|
kind: 'Fragment',
|
|
9293
|
-
version: VERSION$
|
|
9293
|
+
version: VERSION$1$,
|
|
9294
9294
|
private: [],
|
|
9295
9295
|
selections: [
|
|
9296
9296
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -9321,12 +9321,12 @@ var DiscriminatorValues$4;
|
|
|
9321
9321
|
DiscriminatorValues["CaseStatus"] = "CaseStatus";
|
|
9322
9322
|
DiscriminatorValues["OpportunityStage"] = "OpportunityStage";
|
|
9323
9323
|
})(DiscriminatorValues$4 || (DiscriminatorValues$4 = {}));
|
|
9324
|
-
const VERSION$
|
|
9324
|
+
const VERSION$1_ = "bd523b2343366edfc25a2dbee2c4e986";
|
|
9325
9325
|
const selectChildren$2 = function AbstractPicklistValueAttributesRepresentationSelectChildren() {
|
|
9326
|
-
const workStepPicklistValueAttributeRepresentationSelections = select$
|
|
9327
|
-
const leadStatusPicklistValueAttributesRepresentationSelections = select$
|
|
9328
|
-
const caseStatusPicklistValueAttributesRepresentationSelections = select$
|
|
9329
|
-
const opportunityStagePicklistValueAttributesRepresentationSelections = select$
|
|
9326
|
+
const workStepPicklistValueAttributeRepresentationSelections = select$2g();
|
|
9327
|
+
const leadStatusPicklistValueAttributesRepresentationSelections = select$2f();
|
|
9328
|
+
const caseStatusPicklistValueAttributesRepresentationSelections = select$2e();
|
|
9329
|
+
const opportunityStagePicklistValueAttributesRepresentationSelections = select$2d();
|
|
9330
9330
|
return {
|
|
9331
9331
|
kind: 'Fragment',
|
|
9332
9332
|
union: true,
|
|
@@ -9339,10 +9339,10 @@ const selectChildren$2 = function AbstractPicklistValueAttributesRepresentationS
|
|
|
9339
9339
|
}
|
|
9340
9340
|
};
|
|
9341
9341
|
};
|
|
9342
|
-
const select$
|
|
9342
|
+
const select$2c = function AbstractPicklistValueAttributesRepresentationSelect() {
|
|
9343
9343
|
return {
|
|
9344
9344
|
kind: 'Fragment',
|
|
9345
|
-
version: VERSION$
|
|
9345
|
+
version: VERSION$1_,
|
|
9346
9346
|
private: [],
|
|
9347
9347
|
selections: [
|
|
9348
9348
|
{
|
|
@@ -9353,12 +9353,12 @@ const select$28 = function AbstractPicklistValueAttributesRepresentationSelect()
|
|
|
9353
9353
|
};
|
|
9354
9354
|
};
|
|
9355
9355
|
|
|
9356
|
-
const VERSION$
|
|
9357
|
-
const select$
|
|
9356
|
+
const VERSION$1Z = "9e2a16a80378487f557124c771201cf9";
|
|
9357
|
+
const select$2b = function PicklistValueRepresentationSelect() {
|
|
9358
9358
|
const AbstractPicklistValueAttributesRepresentation__unionSelections = selectChildren$2();
|
|
9359
9359
|
return {
|
|
9360
9360
|
kind: 'Fragment',
|
|
9361
|
-
version: VERSION$
|
|
9361
|
+
version: VERSION$1Z,
|
|
9362
9362
|
private: [],
|
|
9363
9363
|
selections: [
|
|
9364
9364
|
{
|
|
@@ -9385,12 +9385,12 @@ const select$27 = function PicklistValueRepresentationSelect() {
|
|
|
9385
9385
|
]
|
|
9386
9386
|
};
|
|
9387
9387
|
};
|
|
9388
|
-
const VERSION$
|
|
9389
|
-
const select$
|
|
9390
|
-
const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$
|
|
9388
|
+
const VERSION$1Y = "0a361a49370acb4c6a31721a2057649a";
|
|
9389
|
+
const select$2a = function PicklistValuesRepresentationSelect() {
|
|
9390
|
+
const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$2b();
|
|
9391
9391
|
return {
|
|
9392
9392
|
kind: 'Fragment',
|
|
9393
|
-
version: VERSION$
|
|
9393
|
+
version: VERSION$1Y,
|
|
9394
9394
|
private: [
|
|
9395
9395
|
'eTag'
|
|
9396
9396
|
],
|
|
@@ -9420,7 +9420,7 @@ const select$26 = function PicklistValuesRepresentationSelect() {
|
|
|
9420
9420
|
};
|
|
9421
9421
|
};
|
|
9422
9422
|
|
|
9423
|
-
select$
|
|
9423
|
+
select$2a().selections;
|
|
9424
9424
|
|
|
9425
9425
|
var DiscriminatorValues$3;
|
|
9426
9426
|
(function (DiscriminatorValues) {
|
|
@@ -9602,7 +9602,7 @@ function getShallowRecord(luvio, storeRecordId) {
|
|
|
9602
9602
|
*/
|
|
9603
9603
|
function getObjectMetadata(luvio, record) {
|
|
9604
9604
|
const { data: objectInfo } = luvio.storeLookup({
|
|
9605
|
-
recordId: keyBuilder$
|
|
9605
|
+
recordId: keyBuilder$3n(luvio, { apiName: record.apiName }),
|
|
9606
9606
|
node: {
|
|
9607
9607
|
kind: 'Fragment',
|
|
9608
9608
|
private: ['eTag'],
|
|
@@ -9643,7 +9643,7 @@ function getObjectMetadata(luvio, record) {
|
|
|
9643
9643
|
function fixRecordTypes(luvio, record) {
|
|
9644
9644
|
// non-master record types should always be correct
|
|
9645
9645
|
if (record.recordTypeId === MAIN_RECORD_TYPE_ID) {
|
|
9646
|
-
const key = keyBuilder$
|
|
9646
|
+
const key = keyBuilder$3E(luvio, { recordId: record.id });
|
|
9647
9647
|
const recordNode = luvio.getNode(key);
|
|
9648
9648
|
if (isGraphNode(recordNode) && recordNode.scalar('recordTypeId') !== MAIN_RECORD_TYPE_ID) {
|
|
9649
9649
|
// ignore bogus incoming record type information & keep what we have
|
|
@@ -9719,7 +9719,7 @@ class AdsBridge {
|
|
|
9719
9719
|
fixRecordTypes(luvio, recordCopy);
|
|
9720
9720
|
const recordIngest = this.recordRepresentationIngestOverride !== undefined
|
|
9721
9721
|
? this.recordRepresentationIngestOverride
|
|
9722
|
-
: ingest$
|
|
9722
|
+
: ingest$2g;
|
|
9723
9723
|
luvio.storeIngest(INGEST_KEY, recordIngest, recordCopy);
|
|
9724
9724
|
}
|
|
9725
9725
|
}
|
|
@@ -9733,7 +9733,7 @@ class AdsBridge {
|
|
|
9733
9733
|
*/
|
|
9734
9734
|
evict(recordId) {
|
|
9735
9735
|
const { luvio } = this;
|
|
9736
|
-
const key = keyBuilder$
|
|
9736
|
+
const key = keyBuilder$3E(luvio, { recordId });
|
|
9737
9737
|
return this.lockLdsRecordEmit(() => {
|
|
9738
9738
|
luvio.storeEvict(key);
|
|
9739
9739
|
luvio.storeBroadcast();
|
|
@@ -9748,7 +9748,7 @@ class AdsBridge {
|
|
|
9748
9748
|
*/
|
|
9749
9749
|
getTrackedFieldsForRecord(recordId) {
|
|
9750
9750
|
const { luvio } = this;
|
|
9751
|
-
const storeRecordId = keyBuilder$
|
|
9751
|
+
const storeRecordId = keyBuilder$3E(luvio, { recordId });
|
|
9752
9752
|
const recordNode = luvio.getNode(storeRecordId);
|
|
9753
9753
|
if (!isGraphNode(recordNode)) {
|
|
9754
9754
|
return Promise.resolve([]);
|
package/dist/adsBridge.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-ads-bridge",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.347.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "Bridge to sync data between LDS and ADS",
|
|
6
6
|
"main": "dist/adsBridge.js",
|
|
@@ -30,9 +30,9 @@
|
|
|
30
30
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-ads-bridge"
|
|
31
31
|
},
|
|
32
32
|
"devDependencies": {
|
|
33
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
34
|
-
"@salesforce/lds-runtime-mobile": "^1.
|
|
35
|
-
"@salesforce/lds-uiapi-record-utils-mobile": "^1.
|
|
33
|
+
"@salesforce/lds-adapters-uiapi": "^1.347.0",
|
|
34
|
+
"@salesforce/lds-runtime-mobile": "^1.347.0",
|
|
35
|
+
"@salesforce/lds-uiapi-record-utils-mobile": "^1.347.0"
|
|
36
36
|
},
|
|
37
37
|
"volta": {
|
|
38
38
|
"extends": "../../package.json"
|