@salesforce/lds-ads-bridge 1.280.0 → 1.282.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 +96 -94
- package/dist/adsBridge.js +1 -1
- package/package.json +3 -3
package/dist/ads-bridge-perf.js
CHANGED
|
@@ -21,7 +21,9 @@ const WeakSetCtor = WeakSet;
|
|
|
21
21
|
const deeplyFrozen = new WeakSetCtor();
|
|
22
22
|
function deepFreeze(value) {
|
|
23
23
|
// No need to freeze primitives or already frozen stuff
|
|
24
|
-
if (typeof value !== 'object' ||
|
|
24
|
+
if (typeof value !== 'object' ||
|
|
25
|
+
value === null ||
|
|
26
|
+
deeplyFrozen.has(value)) {
|
|
25
27
|
return;
|
|
26
28
|
}
|
|
27
29
|
deeplyFrozen.add(value);
|
|
@@ -431,7 +433,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
431
433
|
}
|
|
432
434
|
return resourceParams;
|
|
433
435
|
}
|
|
434
|
-
// engine version: 0.154.
|
|
436
|
+
// engine version: 0.154.15-db466bed
|
|
435
437
|
|
|
436
438
|
/**
|
|
437
439
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -479,7 +481,7 @@ const callbacks$1 = [];
|
|
|
479
481
|
function register(r) {
|
|
480
482
|
callbacks$1.forEach((callback) => callback(r));
|
|
481
483
|
}
|
|
482
|
-
// version: 1.
|
|
484
|
+
// version: 1.282.0-f3e0ca0c7
|
|
483
485
|
|
|
484
486
|
/**
|
|
485
487
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -4930,7 +4932,7 @@ function toSortedStringArray(value) {
|
|
|
4930
4932
|
return undefined;
|
|
4931
4933
|
}
|
|
4932
4934
|
|
|
4933
|
-
const VERSION$
|
|
4935
|
+
const VERSION$2r = "d1e589a127fb1060c89070cdb6f500b2";
|
|
4934
4936
|
function validate$1W(obj, path = 'RecordTypeInfoRepresentation') {
|
|
4935
4937
|
const v_error = (() => {
|
|
4936
4938
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -4964,10 +4966,10 @@ function validate$1W(obj, path = 'RecordTypeInfoRepresentation') {
|
|
|
4964
4966
|
})();
|
|
4965
4967
|
return v_error === undefined ? null : v_error;
|
|
4966
4968
|
}
|
|
4967
|
-
const select$
|
|
4969
|
+
const select$35 = function RecordTypeInfoRepresentationSelect() {
|
|
4968
4970
|
return {
|
|
4969
4971
|
kind: 'Fragment',
|
|
4970
|
-
version: VERSION$
|
|
4972
|
+
version: VERSION$2r,
|
|
4971
4973
|
private: [],
|
|
4972
4974
|
selections: [
|
|
4973
4975
|
{
|
|
@@ -5022,7 +5024,7 @@ function equals$16(existing, incoming) {
|
|
|
5022
5024
|
return true;
|
|
5023
5025
|
}
|
|
5024
5026
|
|
|
5025
|
-
const VERSION$
|
|
5027
|
+
const VERSION$2q = "195d918987a35f45e1aa4dce9a11d8c5";
|
|
5026
5028
|
function validate$1V(obj, path = 'FieldValueRepresentation') {
|
|
5027
5029
|
const v_error = (() => {
|
|
5028
5030
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5114,10 +5116,10 @@ function validate$1V(obj, path = 'FieldValueRepresentation') {
|
|
|
5114
5116
|
return v_error === undefined ? null : v_error;
|
|
5115
5117
|
}
|
|
5116
5118
|
const RepresentationType$$ = 'FieldValueRepresentation';
|
|
5117
|
-
const select$
|
|
5119
|
+
const select$34 = function FieldValueRepresentationSelect() {
|
|
5118
5120
|
return {
|
|
5119
5121
|
kind: 'Fragment',
|
|
5120
|
-
version: VERSION$
|
|
5122
|
+
version: VERSION$2q,
|
|
5121
5123
|
private: [],
|
|
5122
5124
|
selections: [
|
|
5123
5125
|
{
|
|
@@ -5128,7 +5130,7 @@ const select$2_ = function FieldValueRepresentationSelect() {
|
|
|
5128
5130
|
name: 'value',
|
|
5129
5131
|
kind: 'Link',
|
|
5130
5132
|
nullable: true,
|
|
5131
|
-
fragment: select$
|
|
5133
|
+
fragment: select$32()
|
|
5132
5134
|
}
|
|
5133
5135
|
]
|
|
5134
5136
|
};
|
|
@@ -5151,7 +5153,7 @@ function equals$15(existing, incoming) {
|
|
|
5151
5153
|
}
|
|
5152
5154
|
return true;
|
|
5153
5155
|
}
|
|
5154
|
-
function getTypeCacheKeys$
|
|
5156
|
+
function getTypeCacheKeys$25(rootKeySet, luvio, input, fullPathFactory) {
|
|
5155
5157
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5156
5158
|
const rootKey = fullPathFactory();
|
|
5157
5159
|
rootKeySet.set(rootKey, {
|
|
@@ -5160,12 +5162,12 @@ function getTypeCacheKeys$1$(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5160
5162
|
mergeable: false
|
|
5161
5163
|
});
|
|
5162
5164
|
if (input.value !== null && typeof input.value === 'object') {
|
|
5163
|
-
getTypeCacheKeys$
|
|
5165
|
+
getTypeCacheKeys$24(rootKeySet, luvio, input.value);
|
|
5164
5166
|
}
|
|
5165
5167
|
}
|
|
5166
5168
|
|
|
5167
5169
|
// we override the generated so we can set "mergeable: true" on the root key
|
|
5168
|
-
const getTypeCacheKeys$
|
|
5170
|
+
const getTypeCacheKeys$24 = (rootKeySet, luvio, input, _fullPathFactory) => {
|
|
5169
5171
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5170
5172
|
const rootKey = keyBuilderFromType$C(luvio, input);
|
|
5171
5173
|
rootKeySet.set(rootKey, {
|
|
@@ -5178,20 +5180,20 @@ const getTypeCacheKeys$1_ = (rootKeySet, luvio, input, _fullPathFactory) => {
|
|
|
5178
5180
|
const input_childRelationships_length = input_childRelationships_keys.length;
|
|
5179
5181
|
for (let i = 0; i < input_childRelationships_length; i++) {
|
|
5180
5182
|
const key = input_childRelationships_keys[i];
|
|
5181
|
-
getTypeCacheKeys$
|
|
5183
|
+
getTypeCacheKeys$23(rootKeySet, luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
|
|
5182
5184
|
}
|
|
5183
5185
|
const input_fields = input.fields;
|
|
5184
5186
|
const input_fields_keys = keys$1(input_fields);
|
|
5185
5187
|
const input_fields_length = input_fields_keys.length;
|
|
5186
5188
|
for (let i = 0; i < input_fields_length; i++) {
|
|
5187
5189
|
const key = input_fields_keys[i];
|
|
5188
|
-
getTypeCacheKeys$
|
|
5190
|
+
getTypeCacheKeys$25(rootKeySet, luvio, input_fields[key], () => rootKey + '__fields__' + key);
|
|
5189
5191
|
}
|
|
5190
5192
|
return rootKeySet;
|
|
5191
5193
|
};
|
|
5192
5194
|
|
|
5193
5195
|
const TTL$E = 120000;
|
|
5194
|
-
const VERSION$
|
|
5196
|
+
const VERSION$2p = "79cb5ac9f44542f683d00245fdfe500d";
|
|
5195
5197
|
function validate$1U(obj, path = 'RecordCollectionRepresentation') {
|
|
5196
5198
|
const v_error = (() => {
|
|
5197
5199
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5359,7 +5361,7 @@ function normalize$S(input, existing, path, luvio, store, timestamp) {
|
|
|
5359
5361
|
for (let i = 0; i < input_records.length; i++) {
|
|
5360
5362
|
const input_records_item = input_records[i];
|
|
5361
5363
|
let input_records_item_id = input_records_id + '__' + i;
|
|
5362
|
-
input_records[i] = ingest$
|
|
5364
|
+
input_records[i] = ingest$1$(input_records_item, {
|
|
5363
5365
|
fullPath: input_records_item_id,
|
|
5364
5366
|
propertyName: i,
|
|
5365
5367
|
parent: {
|
|
@@ -5372,10 +5374,10 @@ function normalize$S(input, existing, path, luvio, store, timestamp) {
|
|
|
5372
5374
|
}
|
|
5373
5375
|
return input;
|
|
5374
5376
|
}
|
|
5375
|
-
const select$
|
|
5377
|
+
const select$33 = function RecordCollectionRepresentationSelect() {
|
|
5376
5378
|
return {
|
|
5377
5379
|
kind: 'Fragment',
|
|
5378
|
-
version: VERSION$
|
|
5380
|
+
version: VERSION$2p,
|
|
5379
5381
|
private: [],
|
|
5380
5382
|
selections: [
|
|
5381
5383
|
{
|
|
@@ -5410,7 +5412,7 @@ const select$2Z = function RecordCollectionRepresentationSelect() {
|
|
|
5410
5412
|
name: 'records',
|
|
5411
5413
|
kind: 'Link',
|
|
5412
5414
|
plural: true,
|
|
5413
|
-
fragment: select$
|
|
5415
|
+
fragment: select$32()
|
|
5414
5416
|
}
|
|
5415
5417
|
]
|
|
5416
5418
|
};
|
|
@@ -5463,7 +5465,7 @@ function equals$14(existing, incoming) {
|
|
|
5463
5465
|
}
|
|
5464
5466
|
return true;
|
|
5465
5467
|
}
|
|
5466
|
-
const ingest$
|
|
5468
|
+
const ingest$20 = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5467
5469
|
if (process.env.NODE_ENV !== 'production') {
|
|
5468
5470
|
const validateError = validate$1U(input);
|
|
5469
5471
|
if (validateError !== null) {
|
|
@@ -5472,10 +5474,10 @@ const ingest$1W = function RecordCollectionRepresentationIngest(input, path, luv
|
|
|
5472
5474
|
}
|
|
5473
5475
|
const key = path.fullPath;
|
|
5474
5476
|
const ttlToUse = TTL$E;
|
|
5475
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$S, "UiApi", VERSION$
|
|
5477
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$S, "UiApi", VERSION$2p, RepresentationType$_, equals$14);
|
|
5476
5478
|
return createLink$1(key);
|
|
5477
5479
|
};
|
|
5478
|
-
function getTypeCacheKeys$
|
|
5480
|
+
function getTypeCacheKeys$23(rootKeySet, luvio, input, fullPathFactory) {
|
|
5479
5481
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5480
5482
|
const rootKey = fullPathFactory();
|
|
5481
5483
|
rootKeySet.set(rootKey, {
|
|
@@ -5485,7 +5487,7 @@ function getTypeCacheKeys$1Z(rootKeySet, luvio, input, fullPathFactory) {
|
|
|
5485
5487
|
});
|
|
5486
5488
|
const input_records_length = input.records.length;
|
|
5487
5489
|
for (let i = 0; i < input_records_length; i++) {
|
|
5488
|
-
getTypeCacheKeys$
|
|
5490
|
+
getTypeCacheKeys$24(rootKeySet, luvio, input.records[i]);
|
|
5489
5491
|
}
|
|
5490
5492
|
}
|
|
5491
5493
|
|
|
@@ -5500,7 +5502,7 @@ const keyBuilderFromType$D = function RecordRepresentationKeyBuilderFromType(luv
|
|
|
5500
5502
|
};
|
|
5501
5503
|
|
|
5502
5504
|
const TTL$D = 30000;
|
|
5503
|
-
const VERSION$
|
|
5505
|
+
const VERSION$2o = "98c5b18512e48ca8d28727549507e4ba";
|
|
5504
5506
|
function validate$1T(obj, path = 'RecordRepresentation') {
|
|
5505
5507
|
const v_error = (() => {
|
|
5506
5508
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5691,14 +5693,14 @@ function validate$1T(obj, path = 'RecordRepresentation') {
|
|
|
5691
5693
|
return v_error === undefined ? null : v_error;
|
|
5692
5694
|
}
|
|
5693
5695
|
const RepresentationType$Z = 'RecordRepresentation';
|
|
5694
|
-
function keyBuilder$
|
|
5696
|
+
function keyBuilder$3n(luvio, config) {
|
|
5695
5697
|
return keyPrefix + '::' + RepresentationType$Z + ':' + config.recordId;
|
|
5696
5698
|
}
|
|
5697
5699
|
function keyBuilderFromType$C(luvio, object) {
|
|
5698
5700
|
const keyParams = {
|
|
5699
5701
|
recordId: object.id
|
|
5700
5702
|
};
|
|
5701
|
-
return keyBuilder$
|
|
5703
|
+
return keyBuilder$3n(luvio, keyParams);
|
|
5702
5704
|
}
|
|
5703
5705
|
function dynamicNormalize$5(ingestParams) {
|
|
5704
5706
|
return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
|
|
@@ -5743,11 +5745,11 @@ function dynamicNormalize$5(ingestParams) {
|
|
|
5743
5745
|
return input;
|
|
5744
5746
|
};
|
|
5745
5747
|
}
|
|
5746
|
-
const select$
|
|
5747
|
-
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$
|
|
5748
|
+
const select$32 = function RecordRepresentationSelect() {
|
|
5749
|
+
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$35();
|
|
5748
5750
|
return {
|
|
5749
5751
|
kind: 'Fragment',
|
|
5750
|
-
version: VERSION$
|
|
5752
|
+
version: VERSION$2o,
|
|
5751
5753
|
private: [
|
|
5752
5754
|
'eTag',
|
|
5753
5755
|
'weakEtag'
|
|
@@ -5761,13 +5763,13 @@ const select$2Y = function RecordRepresentationSelect() {
|
|
|
5761
5763
|
name: 'childRelationships',
|
|
5762
5764
|
kind: 'Link',
|
|
5763
5765
|
map: true,
|
|
5764
|
-
fragment: select$
|
|
5766
|
+
fragment: select$33()
|
|
5765
5767
|
},
|
|
5766
5768
|
{
|
|
5767
5769
|
name: 'fields',
|
|
5768
5770
|
kind: 'Link',
|
|
5769
5771
|
map: true,
|
|
5770
|
-
fragment: select$
|
|
5772
|
+
fragment: select$34()
|
|
5771
5773
|
},
|
|
5772
5774
|
{
|
|
5773
5775
|
name: 'id',
|
|
@@ -5803,18 +5805,18 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
|
|
|
5803
5805
|
name: 'childRelationships',
|
|
5804
5806
|
kind: 'Link',
|
|
5805
5807
|
map: true,
|
|
5806
|
-
fragment: select$
|
|
5808
|
+
fragment: select$33()
|
|
5807
5809
|
} : params.childRelationships;
|
|
5808
5810
|
const fieldsPathSelection = params.fields === undefined ? {
|
|
5809
5811
|
name: 'fields',
|
|
5810
5812
|
kind: 'Link',
|
|
5811
5813
|
map: true,
|
|
5812
|
-
fragment: select$
|
|
5814
|
+
fragment: select$34()
|
|
5813
5815
|
} : params.fields;
|
|
5814
|
-
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$
|
|
5816
|
+
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$35();
|
|
5815
5817
|
return {
|
|
5816
5818
|
kind: 'Fragment',
|
|
5817
|
-
version: VERSION$
|
|
5819
|
+
version: VERSION$2o,
|
|
5818
5820
|
private: [
|
|
5819
5821
|
'eTag',
|
|
5820
5822
|
'weakEtag'
|
|
@@ -7432,7 +7434,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
7432
7434
|
kind: 'Fragment',
|
|
7433
7435
|
private: ['eTag', 'weakEtag'],
|
|
7434
7436
|
selections: createRecordSelection(childFieldDefinition),
|
|
7435
|
-
version: VERSION$
|
|
7437
|
+
version: VERSION$2o,
|
|
7436
7438
|
},
|
|
7437
7439
|
};
|
|
7438
7440
|
}
|
|
@@ -7442,7 +7444,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
7442
7444
|
required: childFieldDefinition.optional === true ? false : undefined,
|
|
7443
7445
|
fragment: {
|
|
7444
7446
|
kind: 'Fragment',
|
|
7445
|
-
version: VERSION$
|
|
7447
|
+
version: VERSION$2q,
|
|
7446
7448
|
private: [],
|
|
7447
7449
|
selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
|
|
7448
7450
|
},
|
|
@@ -7913,7 +7915,7 @@ function mergeAndRefreshLowerVersionRecord(luvio, incoming, existing, incomingTr
|
|
|
7913
7915
|
return existing;
|
|
7914
7916
|
}
|
|
7915
7917
|
function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
|
|
7916
|
-
const recordKey = keyBuilder$
|
|
7918
|
+
const recordKey = keyBuilder$3n(luvio, {
|
|
7917
7919
|
recordId: incoming.id,
|
|
7918
7920
|
});
|
|
7919
7921
|
const incomingNode = luvio.wrapNormalizedGraphNode(incoming, recordKey);
|
|
@@ -8174,7 +8176,7 @@ function createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap
|
|
|
8174
8176
|
}
|
|
8175
8177
|
function createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
|
|
8176
8178
|
return dynamicNormalize$5({
|
|
8177
|
-
childRelationships: ingest$
|
|
8179
|
+
childRelationships: ingest$20,
|
|
8178
8180
|
fields: createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap),
|
|
8179
8181
|
});
|
|
8180
8182
|
}
|
|
@@ -8210,7 +8212,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
|
|
|
8210
8212
|
ttl: TTL$D,
|
|
8211
8213
|
representationName: RepresentationType$Z,
|
|
8212
8214
|
namespace: keyPrefix,
|
|
8213
|
-
version: VERSION$
|
|
8215
|
+
version: VERSION$2o,
|
|
8214
8216
|
ingestionTimestamp: timestamp,
|
|
8215
8217
|
});
|
|
8216
8218
|
return createLink$1(key);
|
|
@@ -8307,13 +8309,13 @@ const createResourceRequest$1f = function getUiApiRecordsByRecordIdCreateResourc
|
|
|
8307
8309
|
};
|
|
8308
8310
|
};
|
|
8309
8311
|
|
|
8310
|
-
function keyBuilder$
|
|
8311
|
-
return keyBuilder$
|
|
8312
|
+
function keyBuilder$3m(luvio, params) {
|
|
8313
|
+
return keyBuilder$3n(luvio, {
|
|
8312
8314
|
recordId: params.urlParams.recordId
|
|
8313
8315
|
});
|
|
8314
8316
|
}
|
|
8315
8317
|
function getResponseCacheKeys$16(storeKeyMap, luvio, resourceParams, response) {
|
|
8316
|
-
getTypeCacheKeys$
|
|
8318
|
+
getTypeCacheKeys$24(storeKeyMap, luvio, response);
|
|
8317
8319
|
}
|
|
8318
8320
|
function createResourceRequest$1e(config) {
|
|
8319
8321
|
const headers = {};
|
|
@@ -8344,12 +8346,12 @@ const createResourceParams$14 = /*#__PURE__*/ createResourceParams(getRecord_Con
|
|
|
8344
8346
|
// used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
|
|
8345
8347
|
function buildRecordSelector(luvio, recordId, fields, optionalFields) {
|
|
8346
8348
|
return {
|
|
8347
|
-
recordId: keyBuilder$
|
|
8349
|
+
recordId: keyBuilder$3n(luvio, { recordId }),
|
|
8348
8350
|
node: {
|
|
8349
8351
|
kind: 'Fragment',
|
|
8350
8352
|
private: ['eTag', 'weakEtag'],
|
|
8351
8353
|
selections: buildSelectionFromFields(fields, optionalFields),
|
|
8352
|
-
version: VERSION$
|
|
8354
|
+
version: VERSION$2o,
|
|
8353
8355
|
},
|
|
8354
8356
|
variables: {},
|
|
8355
8357
|
};
|
|
@@ -8363,7 +8365,7 @@ function buildSnapshotRefresh$5(luvio, config) {
|
|
|
8363
8365
|
function prepareRequest$7(luvio, config) {
|
|
8364
8366
|
const { recordId, fields } = config;
|
|
8365
8367
|
// Should this go into the coersion logic?
|
|
8366
|
-
const key = keyBuilder$
|
|
8368
|
+
const key = keyBuilder$3m(luvio, createResourceParams$14(config));
|
|
8367
8369
|
const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
|
|
8368
8370
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
|
|
8369
8371
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
@@ -8436,7 +8438,7 @@ function isSingleBatchRecordResponse(response) {
|
|
|
8436
8438
|
response.results.length === 1);
|
|
8437
8439
|
}
|
|
8438
8440
|
|
|
8439
|
-
const VERSION$
|
|
8441
|
+
const VERSION$2n = "98cce53b8d13b1883d001bbdaab24383";
|
|
8440
8442
|
|
|
8441
8443
|
const nonCachedErrors$8 = ObjectCreate$1(null);
|
|
8442
8444
|
function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
|
|
@@ -8446,7 +8448,7 @@ function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, chi
|
|
|
8446
8448
|
const now = Date.now();
|
|
8447
8449
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
8448
8450
|
const childResourceParams = childResourceParamsArray[index];
|
|
8449
|
-
const childKey = keyBuilder$
|
|
8451
|
+
const childKey = keyBuilder$3m(luvio, childResourceParams);
|
|
8450
8452
|
const result = childEnvelopes[index];
|
|
8451
8453
|
const { statusCode: childStatusCode, result: childBody } = result;
|
|
8452
8454
|
if (childStatusCode === 200) {
|
|
@@ -8533,11 +8535,11 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
|
|
|
8533
8535
|
read: (reader) => {
|
|
8534
8536
|
// Top-level 404 lookup
|
|
8535
8537
|
const compositeSnapshot = luvio.storeLookup({
|
|
8536
|
-
recordId: keyBuilder$
|
|
8538
|
+
recordId: keyBuilder$3l(luvio, resourceParams),
|
|
8537
8539
|
node: {
|
|
8538
8540
|
kind: 'Fragment',
|
|
8539
8541
|
private: [],
|
|
8540
|
-
version: VERSION$
|
|
8542
|
+
version: VERSION$2n,
|
|
8541
8543
|
},
|
|
8542
8544
|
variables: {},
|
|
8543
8545
|
});
|
|
@@ -8557,7 +8559,7 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
|
|
|
8557
8559
|
reader.enterPath(i);
|
|
8558
8560
|
reader.enterPath(envelopeBodyPath);
|
|
8559
8561
|
const childResource = childResources[i];
|
|
8560
|
-
const childKey = keyBuilder$
|
|
8562
|
+
const childKey = keyBuilder$3m(luvio, childResource);
|
|
8561
8563
|
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
8562
8564
|
const childSnapshot = reader.read(buildRecordSelector(luvio, childResource.urlParams.recordId, childResource.queryParams.fields || [], childResource.queryParams.optionalFields || []));
|
|
8563
8565
|
reader.exitPath();
|
|
@@ -8657,7 +8659,7 @@ function createChildResourceParams$c(resourceParams) {
|
|
|
8657
8659
|
}
|
|
8658
8660
|
return childConfigs;
|
|
8659
8661
|
}
|
|
8660
|
-
function keyBuilder$
|
|
8662
|
+
function keyBuilder$3l(luvio, params) {
|
|
8661
8663
|
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 + ')';
|
|
8662
8664
|
}
|
|
8663
8665
|
function getResponseCacheKeys$15(keys, luvio, resourceParams, response) {
|
|
@@ -8677,7 +8679,7 @@ function getResponseCacheKeys$15(keys, luvio, resourceParams, response) {
|
|
|
8677
8679
|
getResponseCacheKeys$16(keys, luvio, childResourceParams, childBody);
|
|
8678
8680
|
}
|
|
8679
8681
|
else if (childStatusCode === 404) {
|
|
8680
|
-
const childKey = keyBuilder$
|
|
8682
|
+
const childKey = keyBuilder$3m(luvio, childResourceParams);
|
|
8681
8683
|
keys.set(childKey, {
|
|
8682
8684
|
namespace: keyPrefix,
|
|
8683
8685
|
representationName: RepresentationType$Z,
|
|
@@ -8687,7 +8689,7 @@ function getResponseCacheKeys$15(keys, luvio, resourceParams, response) {
|
|
|
8687
8689
|
}
|
|
8688
8690
|
}
|
|
8689
8691
|
function ingestError$P(luvio, params, error, snapshotRefresh) {
|
|
8690
|
-
const key = keyBuilder$
|
|
8692
|
+
const key = keyBuilder$3l(luvio, params);
|
|
8691
8693
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
8692
8694
|
luvio.storeIngestError(key, errorSnapshot);
|
|
8693
8695
|
return errorSnapshot;
|
|
@@ -8776,7 +8778,7 @@ function onFetchResponseSuccess$R(luvio, config, resourceParams, response, serve
|
|
|
8776
8778
|
}
|
|
8777
8779
|
}
|
|
8778
8780
|
const snapshotStateFulfilled = 'Fulfilled';
|
|
8779
|
-
const key = keyBuilder$
|
|
8781
|
+
const key = keyBuilder$3l(luvio, resourceParams);
|
|
8780
8782
|
const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
|
|
8781
8783
|
const snapshot = {
|
|
8782
8784
|
recordId: key,
|
|
@@ -8846,7 +8848,7 @@ function resolveConflict(luvio, map) {
|
|
|
8846
8848
|
buildNetworkSnapshot$19(luvio, config, map.serverRequestCount);
|
|
8847
8849
|
}
|
|
8848
8850
|
}
|
|
8849
|
-
const ingest$
|
|
8851
|
+
const ingest$1$ = (input, path, luvio, store, timestamp) => {
|
|
8850
8852
|
const conflictMap = {
|
|
8851
8853
|
conflicts: {},
|
|
8852
8854
|
serverRequestCount: 0,
|
|
@@ -8924,7 +8926,7 @@ const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationCon
|
|
|
8924
8926
|
},
|
|
8925
8927
|
});
|
|
8926
8928
|
const RepresentationType$S = 'ObjectInfoRepresentation';
|
|
8927
|
-
function keyBuilder$
|
|
8929
|
+
function keyBuilder$36(luvio, config) {
|
|
8928
8930
|
return keyPrefix + '::' + RepresentationType$S + ':' + config.apiName;
|
|
8929
8931
|
}
|
|
8930
8932
|
|
|
@@ -8966,12 +8968,12 @@ ObjectCreate$1(null);
|
|
|
8966
8968
|
|
|
8967
8969
|
ObjectCreate$1(null);
|
|
8968
8970
|
|
|
8969
|
-
const VERSION$
|
|
8970
|
-
const select$
|
|
8971
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
8971
|
+
const VERSION$1O = "8d2032474fb4fabdf5cf4042be9042d9";
|
|
8972
|
+
const select$20 = function WorkStepPicklistValueAttributeRepresentationSelect() {
|
|
8973
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1Y();
|
|
8972
8974
|
return {
|
|
8973
8975
|
kind: 'Fragment',
|
|
8974
|
-
version: VERSION$
|
|
8976
|
+
version: VERSION$1O,
|
|
8975
8977
|
private: [],
|
|
8976
8978
|
selections: [
|
|
8977
8979
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -8987,12 +8989,12 @@ const select$1W = function WorkStepPicklistValueAttributeRepresentationSelect()
|
|
|
8987
8989
|
};
|
|
8988
8990
|
};
|
|
8989
8991
|
|
|
8990
|
-
const VERSION$
|
|
8991
|
-
const select$
|
|
8992
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
8992
|
+
const VERSION$1N = "53893a219bc0888951863f2c44317cac";
|
|
8993
|
+
const select$1$ = function LeadStatusPicklistValueAttributesRepresentationSelect() {
|
|
8994
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1Y();
|
|
8993
8995
|
return {
|
|
8994
8996
|
kind: 'Fragment',
|
|
8995
|
-
version: VERSION$
|
|
8997
|
+
version: VERSION$1N,
|
|
8996
8998
|
private: [],
|
|
8997
8999
|
selections: [
|
|
8998
9000
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -9004,12 +9006,12 @@ const select$1V = function LeadStatusPicklistValueAttributesRepresentationSelect
|
|
|
9004
9006
|
};
|
|
9005
9007
|
};
|
|
9006
9008
|
|
|
9007
|
-
const VERSION$
|
|
9008
|
-
const select$
|
|
9009
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
9009
|
+
const VERSION$1M = "4818ec07c499784571c1012ead048c88";
|
|
9010
|
+
const select$1_ = function CaseStatusPicklistValueAttributesRepresentationSelect() {
|
|
9011
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1Y();
|
|
9010
9012
|
return {
|
|
9011
9013
|
kind: 'Fragment',
|
|
9012
|
-
version: VERSION$
|
|
9014
|
+
version: VERSION$1M,
|
|
9013
9015
|
private: [],
|
|
9014
9016
|
selections: [
|
|
9015
9017
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -9021,12 +9023,12 @@ const select$1U = function CaseStatusPicklistValueAttributesRepresentationSelect
|
|
|
9021
9023
|
};
|
|
9022
9024
|
};
|
|
9023
9025
|
|
|
9024
|
-
const VERSION$
|
|
9025
|
-
const select$
|
|
9026
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
9026
|
+
const VERSION$1L = "950a3a962acbd2b128f937d4c055a9d6";
|
|
9027
|
+
const select$1Z = function OpportunityStagePicklistValueAttributesRepresentationSelect() {
|
|
9028
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1Y();
|
|
9027
9029
|
return {
|
|
9028
9030
|
kind: 'Fragment',
|
|
9029
|
-
version: VERSION$
|
|
9031
|
+
version: VERSION$1L,
|
|
9030
9032
|
private: [],
|
|
9031
9033
|
selections: [
|
|
9032
9034
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -9057,12 +9059,12 @@ var DiscriminatorValues$4;
|
|
|
9057
9059
|
DiscriminatorValues["CaseStatus"] = "CaseStatus";
|
|
9058
9060
|
DiscriminatorValues["OpportunityStage"] = "OpportunityStage";
|
|
9059
9061
|
})(DiscriminatorValues$4 || (DiscriminatorValues$4 = {}));
|
|
9060
|
-
const VERSION$
|
|
9062
|
+
const VERSION$1K = "bd523b2343366edfc25a2dbee2c4e986";
|
|
9061
9063
|
const selectChildren$2 = function AbstractPicklistValueAttributesRepresentationSelectChildren() {
|
|
9062
|
-
const workStepPicklistValueAttributeRepresentationSelections = select$
|
|
9063
|
-
const leadStatusPicklistValueAttributesRepresentationSelections = select$
|
|
9064
|
-
const caseStatusPicklistValueAttributesRepresentationSelections = select$
|
|
9065
|
-
const opportunityStagePicklistValueAttributesRepresentationSelections = select$
|
|
9064
|
+
const workStepPicklistValueAttributeRepresentationSelections = select$20();
|
|
9065
|
+
const leadStatusPicklistValueAttributesRepresentationSelections = select$1$();
|
|
9066
|
+
const caseStatusPicklistValueAttributesRepresentationSelections = select$1_();
|
|
9067
|
+
const opportunityStagePicklistValueAttributesRepresentationSelections = select$1Z();
|
|
9066
9068
|
return {
|
|
9067
9069
|
kind: 'Fragment',
|
|
9068
9070
|
union: true,
|
|
@@ -9075,10 +9077,10 @@ const selectChildren$2 = function AbstractPicklistValueAttributesRepresentationS
|
|
|
9075
9077
|
}
|
|
9076
9078
|
};
|
|
9077
9079
|
};
|
|
9078
|
-
const select$
|
|
9080
|
+
const select$1Y = function AbstractPicklistValueAttributesRepresentationSelect() {
|
|
9079
9081
|
return {
|
|
9080
9082
|
kind: 'Fragment',
|
|
9081
|
-
version: VERSION$
|
|
9083
|
+
version: VERSION$1K,
|
|
9082
9084
|
private: [],
|
|
9083
9085
|
selections: [
|
|
9084
9086
|
{
|
|
@@ -9089,12 +9091,12 @@ const select$1S = function AbstractPicklistValueAttributesRepresentationSelect()
|
|
|
9089
9091
|
};
|
|
9090
9092
|
};
|
|
9091
9093
|
|
|
9092
|
-
const VERSION$
|
|
9093
|
-
const select$
|
|
9094
|
+
const VERSION$1J = "9e2a16a80378487f557124c771201cf9";
|
|
9095
|
+
const select$1X = function PicklistValueRepresentationSelect() {
|
|
9094
9096
|
const AbstractPicklistValueAttributesRepresentation__unionSelections = selectChildren$2();
|
|
9095
9097
|
return {
|
|
9096
9098
|
kind: 'Fragment',
|
|
9097
|
-
version: VERSION$
|
|
9099
|
+
version: VERSION$1J,
|
|
9098
9100
|
private: [],
|
|
9099
9101
|
selections: [
|
|
9100
9102
|
{
|
|
@@ -9121,12 +9123,12 @@ const select$1R = function PicklistValueRepresentationSelect() {
|
|
|
9121
9123
|
]
|
|
9122
9124
|
};
|
|
9123
9125
|
};
|
|
9124
|
-
const VERSION$
|
|
9125
|
-
const select$
|
|
9126
|
-
const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$
|
|
9126
|
+
const VERSION$1I = "0a361a49370acb4c6a31721a2057649a";
|
|
9127
|
+
const select$1W = function PicklistValuesRepresentationSelect() {
|
|
9128
|
+
const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$1X();
|
|
9127
9129
|
return {
|
|
9128
9130
|
kind: 'Fragment',
|
|
9129
|
-
version: VERSION$
|
|
9131
|
+
version: VERSION$1I,
|
|
9130
9132
|
private: [
|
|
9131
9133
|
'eTag'
|
|
9132
9134
|
],
|
|
@@ -9156,7 +9158,7 @@ const select$1Q = function PicklistValuesRepresentationSelect() {
|
|
|
9156
9158
|
};
|
|
9157
9159
|
};
|
|
9158
9160
|
|
|
9159
|
-
select$
|
|
9161
|
+
select$1W().selections;
|
|
9160
9162
|
|
|
9161
9163
|
var DiscriminatorValues$3;
|
|
9162
9164
|
(function (DiscriminatorValues) {
|
|
@@ -9286,7 +9288,7 @@ function getShallowRecord(luvio, storeRecordId) {
|
|
|
9286
9288
|
*/
|
|
9287
9289
|
function getObjectMetadata(luvio, record) {
|
|
9288
9290
|
const { data: objectInfo } = luvio.storeLookup({
|
|
9289
|
-
recordId: keyBuilder$
|
|
9291
|
+
recordId: keyBuilder$36(luvio, { apiName: record.apiName }),
|
|
9290
9292
|
node: {
|
|
9291
9293
|
kind: 'Fragment',
|
|
9292
9294
|
private: ['eTag'],
|
|
@@ -9327,7 +9329,7 @@ function getObjectMetadata(luvio, record) {
|
|
|
9327
9329
|
function fixRecordTypes(luvio, record) {
|
|
9328
9330
|
// non-master record types should always be correct
|
|
9329
9331
|
if (record.recordTypeId === MAIN_RECORD_TYPE_ID) {
|
|
9330
|
-
const key = keyBuilder$
|
|
9332
|
+
const key = keyBuilder$3n(luvio, { recordId: record.id });
|
|
9331
9333
|
const recordNode = luvio.getNode(key);
|
|
9332
9334
|
if (isGraphNode(recordNode) && recordNode.scalar('recordTypeId') !== MAIN_RECORD_TYPE_ID) {
|
|
9333
9335
|
// ignore bogus incoming record type information & keep what we have
|
|
@@ -9400,7 +9402,7 @@ class AdsBridge {
|
|
|
9400
9402
|
// Don't let incorrect ADS/RecordGVP recordTypeIds replace a valid record type in our store
|
|
9401
9403
|
// with the master record type. See W-7302870 for details.
|
|
9402
9404
|
fixRecordTypes(luvio, recordCopy);
|
|
9403
|
-
luvio.storeIngest(INGEST_KEY, ingest$
|
|
9405
|
+
luvio.storeIngest(INGEST_KEY, ingest$1$, recordCopy);
|
|
9404
9406
|
}
|
|
9405
9407
|
}
|
|
9406
9408
|
if (didIngestRecord === true) {
|
|
@@ -9413,7 +9415,7 @@ class AdsBridge {
|
|
|
9413
9415
|
*/
|
|
9414
9416
|
evict(recordId) {
|
|
9415
9417
|
const { luvio } = this;
|
|
9416
|
-
const key = keyBuilder$
|
|
9418
|
+
const key = keyBuilder$3n(luvio, { recordId });
|
|
9417
9419
|
return this.lockLdsRecordEmit(() => {
|
|
9418
9420
|
luvio.storeEvict(key);
|
|
9419
9421
|
luvio.storeBroadcast();
|
|
@@ -9428,7 +9430,7 @@ class AdsBridge {
|
|
|
9428
9430
|
*/
|
|
9429
9431
|
getTrackedFieldsForRecord(recordId) {
|
|
9430
9432
|
const { luvio } = this;
|
|
9431
|
-
const storeRecordId = keyBuilder$
|
|
9433
|
+
const storeRecordId = keyBuilder$3n(luvio, { recordId });
|
|
9432
9434
|
const recordNode = luvio.getNode(storeRecordId);
|
|
9433
9435
|
if (!isGraphNode(recordNode)) {
|
|
9434
9436
|
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.282.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",
|
|
@@ -29,7 +29,7 @@
|
|
|
29
29
|
"release:corejar": "yarn build && ../core-build/scripts/core.js --name=lds-ads-bridge"
|
|
30
30
|
},
|
|
31
31
|
"devDependencies": {
|
|
32
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
33
|
-
"@salesforce/lds-uiapi-record-utils": "^1.
|
|
32
|
+
"@salesforce/lds-adapters-uiapi": "^1.282.0",
|
|
33
|
+
"@salesforce/lds-uiapi-record-utils": "^1.282.0"
|
|
34
34
|
}
|
|
35
35
|
}
|