@salesforce/lds-ads-bridge 1.362.0 → 1.364.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
|
@@ -433,7 +433,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
433
433
|
}
|
|
434
434
|
return resourceParams;
|
|
435
435
|
}
|
|
436
|
-
// engine version: 0.158.
|
|
436
|
+
// engine version: 0.158.3-41cf8514
|
|
437
437
|
|
|
438
438
|
/**
|
|
439
439
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -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.364.0-bcc88d1970
|
|
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$2Y = "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$3D = function RecordTypeInfoRepresentationSelect() {
|
|
5067
5067
|
return {
|
|
5068
5068
|
kind: 'Fragment',
|
|
5069
|
-
version: VERSION$
|
|
5069
|
+
version: VERSION$2Y,
|
|
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$2X = "2738fe8faf98ecd076d7c4df86fd5bf0";
|
|
5125
5125
|
function validate$20(obj, path = 'FieldValueRepresentation') {
|
|
5126
5126
|
const v_error = (() => {
|
|
5127
5127
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5230,10 +5230,10 @@ function validate$20(obj, path = 'FieldValueRepresentation') {
|
|
|
5230
5230
|
return v_error === undefined ? null : v_error;
|
|
5231
5231
|
}
|
|
5232
5232
|
const RepresentationType$10 = 'FieldValueRepresentation';
|
|
5233
|
-
const select$
|
|
5233
|
+
const select$3C = function FieldValueRepresentationSelect() {
|
|
5234
5234
|
return {
|
|
5235
5235
|
kind: 'Fragment',
|
|
5236
|
-
version: VERSION$
|
|
5236
|
+
version: VERSION$2X,
|
|
5237
5237
|
private: [],
|
|
5238
5238
|
selections: [
|
|
5239
5239
|
{
|
|
@@ -5287,7 +5287,7 @@ function equals$1b(existing, incoming) {
|
|
|
5287
5287
|
}
|
|
5288
5288
|
return true;
|
|
5289
5289
|
}
|
|
5290
|
-
function getTypeCacheKeys$
|
|
5290
|
+
function getTypeCacheKeys$2x(rootKeySet, luvio, input, fullPathFactory) {
|
|
5291
5291
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5292
5292
|
const rootKey = fullPathFactory();
|
|
5293
5293
|
rootKeySet.set(rootKey, {
|
|
@@ -5296,12 +5296,12 @@ function getTypeCacheKeys$2w(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5296
5296
|
mergeable: false
|
|
5297
5297
|
});
|
|
5298
5298
|
if (!Array.isArray(input.value) && input.value !== null && typeof input.value === 'object') {
|
|
5299
|
-
getTypeCacheKeys$
|
|
5299
|
+
getTypeCacheKeys$2w(rootKeySet, luvio, input.value);
|
|
5300
5300
|
}
|
|
5301
5301
|
}
|
|
5302
5302
|
|
|
5303
5303
|
// we override the generated so we can set "mergeable: true" on the root key
|
|
5304
|
-
const getTypeCacheKeys$
|
|
5304
|
+
const getTypeCacheKeys$2w = (rootKeySet, luvio, input, _fullPathFactory) => {
|
|
5305
5305
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5306
5306
|
const rootKey = keyBuilderFromType$D(luvio, input);
|
|
5307
5307
|
rootKeySet.set(rootKey, {
|
|
@@ -5314,20 +5314,20 @@ const getTypeCacheKeys$2v = (rootKeySet, luvio, input, _fullPathFactory) => {
|
|
|
5314
5314
|
const input_childRelationships_length = input_childRelationships_keys.length;
|
|
5315
5315
|
for (let i = 0; i < input_childRelationships_length; i++) {
|
|
5316
5316
|
const key = input_childRelationships_keys[i];
|
|
5317
|
-
getTypeCacheKeys$
|
|
5317
|
+
getTypeCacheKeys$2v(rootKeySet, luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
|
|
5318
5318
|
}
|
|
5319
5319
|
const input_fields = input.fields;
|
|
5320
5320
|
const input_fields_keys = keys$1(input_fields);
|
|
5321
5321
|
const input_fields_length = input_fields_keys.length;
|
|
5322
5322
|
for (let i = 0; i < input_fields_length; i++) {
|
|
5323
5323
|
const key = input_fields_keys[i];
|
|
5324
|
-
getTypeCacheKeys$
|
|
5324
|
+
getTypeCacheKeys$2x(rootKeySet, luvio, input_fields[key], () => rootKey + '__fields__' + key);
|
|
5325
5325
|
}
|
|
5326
5326
|
return rootKeySet;
|
|
5327
5327
|
};
|
|
5328
5328
|
|
|
5329
5329
|
const TTL$G = 120000;
|
|
5330
|
-
const VERSION$
|
|
5330
|
+
const VERSION$2W = "79cb5ac9f44542f683d00245fdfe500d";
|
|
5331
5331
|
function validate$1$(obj, path = 'RecordCollectionRepresentation') {
|
|
5332
5332
|
const v_error = (() => {
|
|
5333
5333
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5495,7 +5495,7 @@ function normalize$T(input, existing, path, luvio, store, timestamp) {
|
|
|
5495
5495
|
for (let i = 0; i < input_records.length; i++) {
|
|
5496
5496
|
const input_records_item = input_records[i];
|
|
5497
5497
|
let input_records_item_id = input_records_id + '__' + i;
|
|
5498
|
-
input_records[i] = ingest$
|
|
5498
|
+
input_records[i] = ingest$2r(input_records_item, {
|
|
5499
5499
|
fullPath: input_records_item_id,
|
|
5500
5500
|
propertyName: i,
|
|
5501
5501
|
parent: {
|
|
@@ -5508,10 +5508,10 @@ function normalize$T(input, existing, path, luvio, store, timestamp) {
|
|
|
5508
5508
|
}
|
|
5509
5509
|
return input;
|
|
5510
5510
|
}
|
|
5511
|
-
const select$
|
|
5511
|
+
const select$3B = function RecordCollectionRepresentationSelect() {
|
|
5512
5512
|
return {
|
|
5513
5513
|
kind: 'Fragment',
|
|
5514
|
-
version: VERSION$
|
|
5514
|
+
version: VERSION$2W,
|
|
5515
5515
|
private: [],
|
|
5516
5516
|
selections: [
|
|
5517
5517
|
{
|
|
@@ -5546,7 +5546,7 @@ const select$3A = function RecordCollectionRepresentationSelect() {
|
|
|
5546
5546
|
name: 'records',
|
|
5547
5547
|
kind: 'Link',
|
|
5548
5548
|
plural: true,
|
|
5549
|
-
fragment: select$
|
|
5549
|
+
fragment: select$3A()
|
|
5550
5550
|
}
|
|
5551
5551
|
]
|
|
5552
5552
|
};
|
|
@@ -5599,7 +5599,7 @@ function equals$1a(existing, incoming) {
|
|
|
5599
5599
|
}
|
|
5600
5600
|
return true;
|
|
5601
5601
|
}
|
|
5602
|
-
const ingest$
|
|
5602
|
+
const ingest$2s = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5603
5603
|
if (process.env.NODE_ENV !== 'production') {
|
|
5604
5604
|
const validateError = validate$1$(input);
|
|
5605
5605
|
if (validateError !== null) {
|
|
@@ -5608,10 +5608,10 @@ const ingest$2r = function RecordCollectionRepresentationIngest(input, path, luv
|
|
|
5608
5608
|
}
|
|
5609
5609
|
const key = path.fullPath;
|
|
5610
5610
|
const ttlToUse = TTL$G;
|
|
5611
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$T, "UiApi", VERSION$
|
|
5611
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$T, "UiApi", VERSION$2W, RepresentationType$$, equals$1a);
|
|
5612
5612
|
return createLink$1(key);
|
|
5613
5613
|
};
|
|
5614
|
-
function getTypeCacheKeys$
|
|
5614
|
+
function getTypeCacheKeys$2v(rootKeySet, luvio, input, fullPathFactory) {
|
|
5615
5615
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5616
5616
|
const rootKey = fullPathFactory();
|
|
5617
5617
|
rootKeySet.set(rootKey, {
|
|
@@ -5621,7 +5621,7 @@ function getTypeCacheKeys$2u(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5621
5621
|
});
|
|
5622
5622
|
const input_records_length = input.records.length;
|
|
5623
5623
|
for (let i = 0; i < input_records_length; i++) {
|
|
5624
|
-
getTypeCacheKeys$
|
|
5624
|
+
getTypeCacheKeys$2w(rootKeySet, luvio, input.records[i]);
|
|
5625
5625
|
}
|
|
5626
5626
|
}
|
|
5627
5627
|
|
|
@@ -5636,7 +5636,7 @@ const keyBuilderFromType$E = function RecordRepresentationKeyBuilderFromType(luv
|
|
|
5636
5636
|
};
|
|
5637
5637
|
|
|
5638
5638
|
const TTL$F = 30000;
|
|
5639
|
-
const VERSION$
|
|
5639
|
+
const VERSION$2V = "98c5b18512e48ca8d28727549507e4ba";
|
|
5640
5640
|
function validate$1_(obj, path = 'RecordRepresentation') {
|
|
5641
5641
|
const v_error = (() => {
|
|
5642
5642
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5827,14 +5827,14 @@ function validate$1_(obj, path = 'RecordRepresentation') {
|
|
|
5827
5827
|
return v_error === undefined ? null : v_error;
|
|
5828
5828
|
}
|
|
5829
5829
|
const RepresentationType$_ = 'RecordRepresentation';
|
|
5830
|
-
function keyBuilder$
|
|
5830
|
+
function keyBuilder$3O(luvio, config) {
|
|
5831
5831
|
return keyPrefix + '::' + RepresentationType$_ + ':' + config.recordId;
|
|
5832
5832
|
}
|
|
5833
5833
|
function keyBuilderFromType$D(luvio, object) {
|
|
5834
5834
|
const keyParams = {
|
|
5835
5835
|
recordId: object.id
|
|
5836
5836
|
};
|
|
5837
|
-
return keyBuilder$
|
|
5837
|
+
return keyBuilder$3O(luvio, keyParams);
|
|
5838
5838
|
}
|
|
5839
5839
|
function dynamicNormalize$5(ingestParams) {
|
|
5840
5840
|
return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
|
|
@@ -5879,11 +5879,11 @@ function dynamicNormalize$5(ingestParams) {
|
|
|
5879
5879
|
return input;
|
|
5880
5880
|
};
|
|
5881
5881
|
}
|
|
5882
|
-
const select$
|
|
5883
|
-
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$
|
|
5882
|
+
const select$3A = function RecordRepresentationSelect() {
|
|
5883
|
+
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$3D();
|
|
5884
5884
|
return {
|
|
5885
5885
|
kind: 'Fragment',
|
|
5886
|
-
version: VERSION$
|
|
5886
|
+
version: VERSION$2V,
|
|
5887
5887
|
private: [
|
|
5888
5888
|
'eTag',
|
|
5889
5889
|
'weakEtag'
|
|
@@ -5897,13 +5897,13 @@ const select$3z = function RecordRepresentationSelect() {
|
|
|
5897
5897
|
name: 'childRelationships',
|
|
5898
5898
|
kind: 'Link',
|
|
5899
5899
|
map: true,
|
|
5900
|
-
fragment: select$
|
|
5900
|
+
fragment: select$3B()
|
|
5901
5901
|
},
|
|
5902
5902
|
{
|
|
5903
5903
|
name: 'fields',
|
|
5904
5904
|
kind: 'Link',
|
|
5905
5905
|
map: true,
|
|
5906
|
-
fragment: select$
|
|
5906
|
+
fragment: select$3C()
|
|
5907
5907
|
},
|
|
5908
5908
|
{
|
|
5909
5909
|
name: 'id',
|
|
@@ -5939,18 +5939,18 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
|
|
|
5939
5939
|
name: 'childRelationships',
|
|
5940
5940
|
kind: 'Link',
|
|
5941
5941
|
map: true,
|
|
5942
|
-
fragment: select$
|
|
5942
|
+
fragment: select$3B()
|
|
5943
5943
|
} : params.childRelationships;
|
|
5944
5944
|
const fieldsPathSelection = params.fields === undefined ? {
|
|
5945
5945
|
name: 'fields',
|
|
5946
5946
|
kind: 'Link',
|
|
5947
5947
|
map: true,
|
|
5948
|
-
fragment: select$
|
|
5948
|
+
fragment: select$3C()
|
|
5949
5949
|
} : params.fields;
|
|
5950
|
-
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$
|
|
5950
|
+
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$3D();
|
|
5951
5951
|
return {
|
|
5952
5952
|
kind: 'Fragment',
|
|
5953
|
-
version: VERSION$
|
|
5953
|
+
version: VERSION$2V,
|
|
5954
5954
|
private: [
|
|
5955
5955
|
'eTag',
|
|
5956
5956
|
'weakEtag'
|
|
@@ -7694,7 +7694,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
7694
7694
|
kind: 'Fragment',
|
|
7695
7695
|
private: ['eTag', 'weakEtag'],
|
|
7696
7696
|
selections: createRecordSelection(childFieldDefinition),
|
|
7697
|
-
version: VERSION$
|
|
7697
|
+
version: VERSION$2V,
|
|
7698
7698
|
},
|
|
7699
7699
|
};
|
|
7700
7700
|
}
|
|
@@ -7704,7 +7704,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
7704
7704
|
required: childFieldDefinition.optional === true ? false : undefined,
|
|
7705
7705
|
fragment: {
|
|
7706
7706
|
kind: 'Fragment',
|
|
7707
|
-
version: VERSION$
|
|
7707
|
+
version: VERSION$2X,
|
|
7708
7708
|
private: [],
|
|
7709
7709
|
selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
|
|
7710
7710
|
},
|
|
@@ -8217,7 +8217,7 @@ function mergeAndRefreshLowerVersionRecord(luvio, incoming, existing, incomingTr
|
|
|
8217
8217
|
return existing;
|
|
8218
8218
|
}
|
|
8219
8219
|
function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
|
|
8220
|
-
const recordKey = keyBuilder$
|
|
8220
|
+
const recordKey = keyBuilder$3O(luvio, {
|
|
8221
8221
|
recordId: incoming.id,
|
|
8222
8222
|
});
|
|
8223
8223
|
const incomingNode = luvio.wrapNormalizedGraphNode(incoming, recordKey);
|
|
@@ -8478,7 +8478,7 @@ function createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap
|
|
|
8478
8478
|
}
|
|
8479
8479
|
function createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
|
|
8480
8480
|
return dynamicNormalize$5({
|
|
8481
|
-
childRelationships: ingest$
|
|
8481
|
+
childRelationships: ingest$2s,
|
|
8482
8482
|
fields: createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap),
|
|
8483
8483
|
});
|
|
8484
8484
|
}
|
|
@@ -8514,7 +8514,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
|
|
|
8514
8514
|
ttl: TTL$F,
|
|
8515
8515
|
representationName: RepresentationType$_,
|
|
8516
8516
|
namespace: keyPrefix,
|
|
8517
|
-
version: VERSION$
|
|
8517
|
+
version: VERSION$2V,
|
|
8518
8518
|
ingestionTimestamp: timestamp,
|
|
8519
8519
|
});
|
|
8520
8520
|
return createLink$1(key);
|
|
@@ -8611,13 +8611,13 @@ const createResourceRequest$1h = function getUiApiRecordsByRecordIdCreateResourc
|
|
|
8611
8611
|
};
|
|
8612
8612
|
};
|
|
8613
8613
|
|
|
8614
|
-
function keyBuilder$
|
|
8615
|
-
return keyBuilder$
|
|
8614
|
+
function keyBuilder$3N(luvio, params) {
|
|
8615
|
+
return keyBuilder$3O(luvio, {
|
|
8616
8616
|
recordId: params.urlParams.recordId
|
|
8617
8617
|
});
|
|
8618
8618
|
}
|
|
8619
8619
|
function getResponseCacheKeys$17(storeKeyMap, luvio, resourceParams, response) {
|
|
8620
|
-
getTypeCacheKeys$
|
|
8620
|
+
getTypeCacheKeys$2w(storeKeyMap, luvio, response);
|
|
8621
8621
|
}
|
|
8622
8622
|
function createResourceRequest$1g(config) {
|
|
8623
8623
|
const headers = {};
|
|
@@ -8648,12 +8648,12 @@ const createResourceParams$15 = /*#__PURE__*/ createResourceParams(getRecord_Con
|
|
|
8648
8648
|
// used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
|
|
8649
8649
|
function buildRecordSelector(luvio, recordId, fields, optionalFields) {
|
|
8650
8650
|
return {
|
|
8651
|
-
recordId: keyBuilder$
|
|
8651
|
+
recordId: keyBuilder$3O(luvio, { recordId }),
|
|
8652
8652
|
node: {
|
|
8653
8653
|
kind: 'Fragment',
|
|
8654
8654
|
private: ['eTag', 'weakEtag'],
|
|
8655
8655
|
selections: buildSelectionFromFields(fields, optionalFields),
|
|
8656
|
-
version: VERSION$
|
|
8656
|
+
version: VERSION$2V,
|
|
8657
8657
|
},
|
|
8658
8658
|
variables: {},
|
|
8659
8659
|
};
|
|
@@ -8667,7 +8667,7 @@ function buildSnapshotRefresh$5(luvio, config) {
|
|
|
8667
8667
|
function prepareRequest$7(luvio, config) {
|
|
8668
8668
|
const { recordId, fields } = config;
|
|
8669
8669
|
// Should this go into the coersion logic?
|
|
8670
|
-
const key = keyBuilder$
|
|
8670
|
+
const key = keyBuilder$3N(luvio, createResourceParams$15(config));
|
|
8671
8671
|
const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
|
|
8672
8672
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
|
|
8673
8673
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
@@ -8740,7 +8740,7 @@ function isSingleBatchRecordResponse(response) {
|
|
|
8740
8740
|
response.results.length === 1);
|
|
8741
8741
|
}
|
|
8742
8742
|
|
|
8743
|
-
const VERSION$
|
|
8743
|
+
const VERSION$2U = "98cce53b8d13b1883d001bbdaab24383";
|
|
8744
8744
|
|
|
8745
8745
|
const nonCachedErrors$8 = ObjectCreate$1(null);
|
|
8746
8746
|
function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
|
|
@@ -8750,7 +8750,7 @@ function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, chi
|
|
|
8750
8750
|
const now = Date.now();
|
|
8751
8751
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
8752
8752
|
const childResourceParams = childResourceParamsArray[index];
|
|
8753
|
-
const childKey = keyBuilder$
|
|
8753
|
+
const childKey = keyBuilder$3N(luvio, childResourceParams);
|
|
8754
8754
|
const result = childEnvelopes[index];
|
|
8755
8755
|
const { statusCode: childStatusCode, result: childBody } = result;
|
|
8756
8756
|
if (childStatusCode === 200) {
|
|
@@ -8837,11 +8837,11 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
|
|
|
8837
8837
|
read: (reader) => {
|
|
8838
8838
|
// Top-level 404 lookup
|
|
8839
8839
|
const compositeSnapshot = luvio.storeLookup({
|
|
8840
|
-
recordId: keyBuilder$
|
|
8840
|
+
recordId: keyBuilder$3M(luvio, resourceParams),
|
|
8841
8841
|
node: {
|
|
8842
8842
|
kind: 'Fragment',
|
|
8843
8843
|
private: [],
|
|
8844
|
-
version: VERSION$
|
|
8844
|
+
version: VERSION$2U,
|
|
8845
8845
|
},
|
|
8846
8846
|
variables: {},
|
|
8847
8847
|
});
|
|
@@ -8861,7 +8861,7 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
|
|
|
8861
8861
|
reader.enterPath(i);
|
|
8862
8862
|
reader.enterPath(envelopeBodyPath);
|
|
8863
8863
|
const childResource = childResources[i];
|
|
8864
|
-
const childKey = keyBuilder$
|
|
8864
|
+
const childKey = keyBuilder$3N(luvio, childResource);
|
|
8865
8865
|
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
8866
8866
|
const childSnapshot = reader.read(buildRecordSelector(luvio, childResource.urlParams.recordId, childResource.queryParams.fields || [], childResource.queryParams.optionalFields || []));
|
|
8867
8867
|
reader.exitPath();
|
|
@@ -8961,7 +8961,7 @@ function createChildResourceParams$c(resourceParams) {
|
|
|
8961
8961
|
}
|
|
8962
8962
|
return childConfigs;
|
|
8963
8963
|
}
|
|
8964
|
-
function keyBuilder$
|
|
8964
|
+
function keyBuilder$3M(luvio, params) {
|
|
8965
8965
|
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 + ')';
|
|
8966
8966
|
}
|
|
8967
8967
|
function getResponseCacheKeys$16(keys, luvio, resourceParams, response) {
|
|
@@ -8981,7 +8981,7 @@ function getResponseCacheKeys$16(keys, luvio, resourceParams, response) {
|
|
|
8981
8981
|
getResponseCacheKeys$17(keys, luvio, childResourceParams, childBody);
|
|
8982
8982
|
}
|
|
8983
8983
|
else if (childStatusCode === 404) {
|
|
8984
|
-
const childKey = keyBuilder$
|
|
8984
|
+
const childKey = keyBuilder$3N(luvio, childResourceParams);
|
|
8985
8985
|
keys.set(childKey, {
|
|
8986
8986
|
namespace: keyPrefix,
|
|
8987
8987
|
representationName: RepresentationType$_,
|
|
@@ -8991,7 +8991,7 @@ function getResponseCacheKeys$16(keys, luvio, resourceParams, response) {
|
|
|
8991
8991
|
}
|
|
8992
8992
|
}
|
|
8993
8993
|
function ingestError$Q(luvio, params, error, snapshotRefresh) {
|
|
8994
|
-
const key = keyBuilder$
|
|
8994
|
+
const key = keyBuilder$3M(luvio, params);
|
|
8995
8995
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
8996
8996
|
luvio.storeIngestError(key, errorSnapshot);
|
|
8997
8997
|
return errorSnapshot;
|
|
@@ -9080,7 +9080,7 @@ function onFetchResponseSuccess$S(luvio, config, resourceParams, response, serve
|
|
|
9080
9080
|
}
|
|
9081
9081
|
}
|
|
9082
9082
|
const snapshotStateFulfilled = 'Fulfilled';
|
|
9083
|
-
const key = keyBuilder$
|
|
9083
|
+
const key = keyBuilder$3M(luvio, resourceParams);
|
|
9084
9084
|
const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
|
|
9085
9085
|
const snapshot = {
|
|
9086
9086
|
recordId: key,
|
|
@@ -9150,7 +9150,7 @@ function resolveConflict(luvio, map) {
|
|
|
9150
9150
|
buildNetworkSnapshot$1a(luvio, config, map.serverRequestCount);
|
|
9151
9151
|
}
|
|
9152
9152
|
}
|
|
9153
|
-
const ingest$
|
|
9153
|
+
const ingest$2r = (input, path, luvio, store, timestamp) => {
|
|
9154
9154
|
const conflictMap = {
|
|
9155
9155
|
conflicts: {},
|
|
9156
9156
|
serverRequestCount: 0,
|
|
@@ -9228,7 +9228,7 @@ const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationCon
|
|
|
9228
9228
|
},
|
|
9229
9229
|
});
|
|
9230
9230
|
const RepresentationType$T = 'ObjectInfoRepresentation';
|
|
9231
|
-
function keyBuilder$
|
|
9231
|
+
function keyBuilder$3x(luvio, config) {
|
|
9232
9232
|
return keyPrefix + '::' + RepresentationType$T + ':' + config.apiName;
|
|
9233
9233
|
}
|
|
9234
9234
|
|
|
@@ -9270,12 +9270,12 @@ ObjectCreate$1(null);
|
|
|
9270
9270
|
|
|
9271
9271
|
ObjectCreate$1(null);
|
|
9272
9272
|
|
|
9273
|
-
const VERSION$
|
|
9274
|
-
const select$
|
|
9275
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
9273
|
+
const VERSION$2d = "8d2032474fb4fabdf5cf4042be9042d9";
|
|
9274
|
+
const select$2r = function WorkStepPicklistValueAttributeRepresentationSelect() {
|
|
9275
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$2n();
|
|
9276
9276
|
return {
|
|
9277
9277
|
kind: 'Fragment',
|
|
9278
|
-
version: VERSION$
|
|
9278
|
+
version: VERSION$2d,
|
|
9279
9279
|
private: [],
|
|
9280
9280
|
selections: [
|
|
9281
9281
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -9291,12 +9291,12 @@ const select$2q = function WorkStepPicklistValueAttributeRepresentationSelect()
|
|
|
9291
9291
|
};
|
|
9292
9292
|
};
|
|
9293
9293
|
|
|
9294
|
-
const VERSION$
|
|
9295
|
-
const select$
|
|
9296
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
9294
|
+
const VERSION$2c = "53893a219bc0888951863f2c44317cac";
|
|
9295
|
+
const select$2q = function LeadStatusPicklistValueAttributesRepresentationSelect() {
|
|
9296
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$2n();
|
|
9297
9297
|
return {
|
|
9298
9298
|
kind: 'Fragment',
|
|
9299
|
-
version: VERSION$
|
|
9299
|
+
version: VERSION$2c,
|
|
9300
9300
|
private: [],
|
|
9301
9301
|
selections: [
|
|
9302
9302
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -9308,12 +9308,12 @@ const select$2p = function LeadStatusPicklistValueAttributesRepresentationSelect
|
|
|
9308
9308
|
};
|
|
9309
9309
|
};
|
|
9310
9310
|
|
|
9311
|
-
const VERSION$
|
|
9312
|
-
const select$
|
|
9313
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
9311
|
+
const VERSION$2b = "4818ec07c499784571c1012ead048c88";
|
|
9312
|
+
const select$2p = function CaseStatusPicklistValueAttributesRepresentationSelect() {
|
|
9313
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$2n();
|
|
9314
9314
|
return {
|
|
9315
9315
|
kind: 'Fragment',
|
|
9316
|
-
version: VERSION$
|
|
9316
|
+
version: VERSION$2b,
|
|
9317
9317
|
private: [],
|
|
9318
9318
|
selections: [
|
|
9319
9319
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -9325,12 +9325,12 @@ const select$2o = function CaseStatusPicklistValueAttributesRepresentationSelect
|
|
|
9325
9325
|
};
|
|
9326
9326
|
};
|
|
9327
9327
|
|
|
9328
|
-
const VERSION$
|
|
9329
|
-
const select$
|
|
9330
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
9328
|
+
const VERSION$2a = "950a3a962acbd2b128f937d4c055a9d6";
|
|
9329
|
+
const select$2o = function OpportunityStagePicklistValueAttributesRepresentationSelect() {
|
|
9330
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$2n();
|
|
9331
9331
|
return {
|
|
9332
9332
|
kind: 'Fragment',
|
|
9333
|
-
version: VERSION$
|
|
9333
|
+
version: VERSION$2a,
|
|
9334
9334
|
private: [],
|
|
9335
9335
|
selections: [
|
|
9336
9336
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -9361,12 +9361,12 @@ var DiscriminatorValues$4;
|
|
|
9361
9361
|
DiscriminatorValues["CaseStatus"] = "CaseStatus";
|
|
9362
9362
|
DiscriminatorValues["OpportunityStage"] = "OpportunityStage";
|
|
9363
9363
|
})(DiscriminatorValues$4 || (DiscriminatorValues$4 = {}));
|
|
9364
|
-
const VERSION$
|
|
9364
|
+
const VERSION$29 = "bd523b2343366edfc25a2dbee2c4e986";
|
|
9365
9365
|
const selectChildren$2 = function AbstractPicklistValueAttributesRepresentationSelectChildren() {
|
|
9366
|
-
const workStepPicklistValueAttributeRepresentationSelections = select$
|
|
9367
|
-
const leadStatusPicklistValueAttributesRepresentationSelections = select$
|
|
9368
|
-
const caseStatusPicklistValueAttributesRepresentationSelections = select$
|
|
9369
|
-
const opportunityStagePicklistValueAttributesRepresentationSelections = select$
|
|
9366
|
+
const workStepPicklistValueAttributeRepresentationSelections = select$2r();
|
|
9367
|
+
const leadStatusPicklistValueAttributesRepresentationSelections = select$2q();
|
|
9368
|
+
const caseStatusPicklistValueAttributesRepresentationSelections = select$2p();
|
|
9369
|
+
const opportunityStagePicklistValueAttributesRepresentationSelections = select$2o();
|
|
9370
9370
|
return {
|
|
9371
9371
|
kind: 'Fragment',
|
|
9372
9372
|
union: true,
|
|
@@ -9379,10 +9379,10 @@ const selectChildren$2 = function AbstractPicklistValueAttributesRepresentationS
|
|
|
9379
9379
|
}
|
|
9380
9380
|
};
|
|
9381
9381
|
};
|
|
9382
|
-
const select$
|
|
9382
|
+
const select$2n = function AbstractPicklistValueAttributesRepresentationSelect() {
|
|
9383
9383
|
return {
|
|
9384
9384
|
kind: 'Fragment',
|
|
9385
|
-
version: VERSION$
|
|
9385
|
+
version: VERSION$29,
|
|
9386
9386
|
private: [],
|
|
9387
9387
|
selections: [
|
|
9388
9388
|
{
|
|
@@ -9393,12 +9393,12 @@ const select$2m = function AbstractPicklistValueAttributesRepresentationSelect()
|
|
|
9393
9393
|
};
|
|
9394
9394
|
};
|
|
9395
9395
|
|
|
9396
|
-
const VERSION$
|
|
9397
|
-
const select$
|
|
9396
|
+
const VERSION$28 = "9e2a16a80378487f557124c771201cf9";
|
|
9397
|
+
const select$2m = function PicklistValueRepresentationSelect() {
|
|
9398
9398
|
const AbstractPicklistValueAttributesRepresentation__unionSelections = selectChildren$2();
|
|
9399
9399
|
return {
|
|
9400
9400
|
kind: 'Fragment',
|
|
9401
|
-
version: VERSION$
|
|
9401
|
+
version: VERSION$28,
|
|
9402
9402
|
private: [],
|
|
9403
9403
|
selections: [
|
|
9404
9404
|
{
|
|
@@ -9425,12 +9425,12 @@ const select$2l = function PicklistValueRepresentationSelect() {
|
|
|
9425
9425
|
]
|
|
9426
9426
|
};
|
|
9427
9427
|
};
|
|
9428
|
-
const VERSION$
|
|
9429
|
-
const select$
|
|
9430
|
-
const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$
|
|
9428
|
+
const VERSION$27 = "0a361a49370acb4c6a31721a2057649a";
|
|
9429
|
+
const select$2l = function PicklistValuesRepresentationSelect() {
|
|
9430
|
+
const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$2m();
|
|
9431
9431
|
return {
|
|
9432
9432
|
kind: 'Fragment',
|
|
9433
|
-
version: VERSION$
|
|
9433
|
+
version: VERSION$27,
|
|
9434
9434
|
private: [
|
|
9435
9435
|
'eTag'
|
|
9436
9436
|
],
|
|
@@ -9460,7 +9460,7 @@ const select$2k = function PicklistValuesRepresentationSelect() {
|
|
|
9460
9460
|
};
|
|
9461
9461
|
};
|
|
9462
9462
|
|
|
9463
|
-
select$
|
|
9463
|
+
select$2l().selections;
|
|
9464
9464
|
|
|
9465
9465
|
var DiscriminatorValues$3;
|
|
9466
9466
|
(function (DiscriminatorValues) {
|
|
@@ -9642,7 +9642,7 @@ function getShallowRecord(luvio, storeRecordId) {
|
|
|
9642
9642
|
*/
|
|
9643
9643
|
function getObjectMetadata(luvio, record) {
|
|
9644
9644
|
const { data: objectInfo } = luvio.storeLookup({
|
|
9645
|
-
recordId: keyBuilder$
|
|
9645
|
+
recordId: keyBuilder$3x(luvio, { apiName: record.apiName }),
|
|
9646
9646
|
node: {
|
|
9647
9647
|
kind: 'Fragment',
|
|
9648
9648
|
private: ['eTag'],
|
|
@@ -9683,7 +9683,7 @@ function getObjectMetadata(luvio, record) {
|
|
|
9683
9683
|
function fixRecordTypes(luvio, record) {
|
|
9684
9684
|
// non-master record types should always be correct
|
|
9685
9685
|
if (record.recordTypeId === MAIN_RECORD_TYPE_ID) {
|
|
9686
|
-
const key = keyBuilder$
|
|
9686
|
+
const key = keyBuilder$3O(luvio, { recordId: record.id });
|
|
9687
9687
|
const recordNode = luvio.getNode(key);
|
|
9688
9688
|
if (isGraphNode(recordNode) && recordNode.scalar('recordTypeId') !== MAIN_RECORD_TYPE_ID) {
|
|
9689
9689
|
// ignore bogus incoming record type information & keep what we have
|
|
@@ -9759,7 +9759,7 @@ class AdsBridge {
|
|
|
9759
9759
|
fixRecordTypes(luvio, recordCopy);
|
|
9760
9760
|
const recordIngest = this.recordRepresentationIngestOverride !== undefined
|
|
9761
9761
|
? this.recordRepresentationIngestOverride
|
|
9762
|
-
: ingest$
|
|
9762
|
+
: ingest$2r;
|
|
9763
9763
|
luvio.storeIngest(INGEST_KEY, recordIngest, recordCopy);
|
|
9764
9764
|
}
|
|
9765
9765
|
}
|
|
@@ -9773,7 +9773,7 @@ class AdsBridge {
|
|
|
9773
9773
|
*/
|
|
9774
9774
|
evict(recordId) {
|
|
9775
9775
|
const { luvio } = this;
|
|
9776
|
-
const key = keyBuilder$
|
|
9776
|
+
const key = keyBuilder$3O(luvio, { recordId });
|
|
9777
9777
|
return this.lockLdsRecordEmit(() => {
|
|
9778
9778
|
luvio.storeEvict(key);
|
|
9779
9779
|
luvio.storeBroadcast();
|
|
@@ -9788,7 +9788,7 @@ class AdsBridge {
|
|
|
9788
9788
|
*/
|
|
9789
9789
|
getTrackedFieldsForRecord(recordId) {
|
|
9790
9790
|
const { luvio } = this;
|
|
9791
|
-
const storeRecordId = keyBuilder$
|
|
9791
|
+
const storeRecordId = keyBuilder$3O(luvio, { recordId });
|
|
9792
9792
|
const recordNode = luvio.getNode(storeRecordId);
|
|
9793
9793
|
if (!isGraphNode(recordNode)) {
|
|
9794
9794
|
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.364.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.364.0",
|
|
34
|
+
"@salesforce/lds-runtime-mobile": "^1.364.0",
|
|
35
|
+
"@salesforce/lds-uiapi-record-utils-mobile": "^1.364.0"
|
|
36
36
|
},
|
|
37
37
|
"volta": {
|
|
38
38
|
"extends": "../../package.json"
|