@salesforce/lds-ads-bridge 1.136.7 → 1.137.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 +87 -87
- package/dist/adsBridge.js +1 -1
- package/package.json +1 -1
package/dist/ads-bridge-perf.js
CHANGED
|
@@ -387,7 +387,7 @@ const callbacks$1 = [];
|
|
|
387
387
|
function register(r) {
|
|
388
388
|
callbacks$1.forEach((callback) => callback(r));
|
|
389
389
|
}
|
|
390
|
-
// version: 1.
|
|
390
|
+
// version: 1.137.0-e074baa1f
|
|
391
391
|
|
|
392
392
|
/**
|
|
393
393
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -5436,7 +5436,7 @@ function createLink$1(ref) {
|
|
|
5436
5436
|
};
|
|
5437
5437
|
}
|
|
5438
5438
|
|
|
5439
|
-
const VERSION$
|
|
5439
|
+
const VERSION$2f = "d1e589a127fb1060c89070cdb6f500b2";
|
|
5440
5440
|
function validate$1y(obj, path = 'RecordTypeInfoRepresentation') {
|
|
5441
5441
|
const v_error = (() => {
|
|
5442
5442
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5470,10 +5470,10 @@ function validate$1y(obj, path = 'RecordTypeInfoRepresentation') {
|
|
|
5470
5470
|
})();
|
|
5471
5471
|
return v_error === undefined ? null : v_error;
|
|
5472
5472
|
}
|
|
5473
|
-
const select$
|
|
5473
|
+
const select$2L = function RecordTypeInfoRepresentationSelect() {
|
|
5474
5474
|
return {
|
|
5475
5475
|
kind: 'Fragment',
|
|
5476
|
-
version: VERSION$
|
|
5476
|
+
version: VERSION$2f,
|
|
5477
5477
|
private: [],
|
|
5478
5478
|
selections: [
|
|
5479
5479
|
{
|
|
@@ -5528,7 +5528,7 @@ function equals$Z(existing, incoming) {
|
|
|
5528
5528
|
return true;
|
|
5529
5529
|
}
|
|
5530
5530
|
|
|
5531
|
-
const VERSION$
|
|
5531
|
+
const VERSION$2e = "195d918987a35f45e1aa4dce9a11d8c5";
|
|
5532
5532
|
function validate$1x(obj, path = 'FieldValueRepresentation') {
|
|
5533
5533
|
const v_error = (() => {
|
|
5534
5534
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5620,10 +5620,10 @@ function validate$1x(obj, path = 'FieldValueRepresentation') {
|
|
|
5620
5620
|
return v_error === undefined ? null : v_error;
|
|
5621
5621
|
}
|
|
5622
5622
|
const RepresentationType$U = 'FieldValueRepresentation';
|
|
5623
|
-
const select$
|
|
5623
|
+
const select$2K = function FieldValueRepresentationSelect() {
|
|
5624
5624
|
return {
|
|
5625
5625
|
kind: 'Fragment',
|
|
5626
|
-
version: VERSION$
|
|
5626
|
+
version: VERSION$2e,
|
|
5627
5627
|
private: [],
|
|
5628
5628
|
selections: [
|
|
5629
5629
|
{
|
|
@@ -5634,7 +5634,7 @@ const select$2n = function FieldValueRepresentationSelect() {
|
|
|
5634
5634
|
name: 'value',
|
|
5635
5635
|
kind: 'Link',
|
|
5636
5636
|
nullable: true,
|
|
5637
|
-
fragment: select$
|
|
5637
|
+
fragment: select$2I()
|
|
5638
5638
|
}
|
|
5639
5639
|
]
|
|
5640
5640
|
};
|
|
@@ -5657,7 +5657,7 @@ function equals$Y(existing, incoming) {
|
|
|
5657
5657
|
}
|
|
5658
5658
|
return true;
|
|
5659
5659
|
}
|
|
5660
|
-
function getTypeCacheKeys$
|
|
5660
|
+
function getTypeCacheKeys$1U(luvio, input, fullPathFactory) {
|
|
5661
5661
|
const rootKeySet = new StoreKeyMap();
|
|
5662
5662
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5663
5663
|
const rootKey = fullPathFactory();
|
|
@@ -5667,7 +5667,7 @@ function getTypeCacheKeys$1w(luvio, input, fullPathFactory) {
|
|
|
5667
5667
|
mergeable: false
|
|
5668
5668
|
});
|
|
5669
5669
|
if (input.value !== null && typeof input.value === 'object') {
|
|
5670
|
-
const input_value = getTypeCacheKeys$
|
|
5670
|
+
const input_value = getTypeCacheKeys$1T(luvio, input.value);
|
|
5671
5671
|
rootKeySet.merge(input_value);
|
|
5672
5672
|
}
|
|
5673
5673
|
return rootKeySet;
|
|
@@ -5680,7 +5680,7 @@ const { isArray } = Array;
|
|
|
5680
5680
|
const { concat, filter, includes, push: push$1, reduce } = Array.prototype;
|
|
5681
5681
|
|
|
5682
5682
|
// we override the generated so we can set "mergeable: true" on the root key
|
|
5683
|
-
const getTypeCacheKeys$
|
|
5683
|
+
const getTypeCacheKeys$1T = (luvio, input, _fullPathFactory) => {
|
|
5684
5684
|
const rootKeySet = new StoreKeyMap();
|
|
5685
5685
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
5686
5686
|
const rootKey = keyBuilderFromType$y(luvio, input);
|
|
@@ -5694,7 +5694,7 @@ const getTypeCacheKeys$1v = (luvio, input, _fullPathFactory) => {
|
|
|
5694
5694
|
const input_childRelationships_length = input_childRelationships_keys.length;
|
|
5695
5695
|
for (let i = 0; i < input_childRelationships_length; i++) {
|
|
5696
5696
|
const key = input_childRelationships_keys[i];
|
|
5697
|
-
const cacheKeys = getTypeCacheKeys$
|
|
5697
|
+
const cacheKeys = getTypeCacheKeys$1S(luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
|
|
5698
5698
|
rootKeySet.merge(cacheKeys);
|
|
5699
5699
|
}
|
|
5700
5700
|
const input_fields = input.fields;
|
|
@@ -5702,14 +5702,14 @@ const getTypeCacheKeys$1v = (luvio, input, _fullPathFactory) => {
|
|
|
5702
5702
|
const input_fields_length = input_fields_keys.length;
|
|
5703
5703
|
for (let i = 0; i < input_fields_length; i++) {
|
|
5704
5704
|
const key = input_fields_keys[i];
|
|
5705
|
-
const cacheKeys = getTypeCacheKeys$
|
|
5705
|
+
const cacheKeys = getTypeCacheKeys$1U(luvio, input_fields[key], () => rootKey + '__fields__' + key);
|
|
5706
5706
|
rootKeySet.merge(cacheKeys);
|
|
5707
5707
|
}
|
|
5708
5708
|
return rootKeySet;
|
|
5709
5709
|
};
|
|
5710
5710
|
|
|
5711
5711
|
const TTL$B = 120000;
|
|
5712
|
-
const VERSION$
|
|
5712
|
+
const VERSION$2d = "79cb5ac9f44542f683d00245fdfe500d";
|
|
5713
5713
|
function validate$1w(obj, path = 'RecordCollectionRepresentation') {
|
|
5714
5714
|
const v_error = (() => {
|
|
5715
5715
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -5877,7 +5877,7 @@ function normalize$L(input, existing, path, luvio, store, timestamp) {
|
|
|
5877
5877
|
for (let i = 0; i < input_records.length; i++) {
|
|
5878
5878
|
const input_records_item = input_records[i];
|
|
5879
5879
|
let input_records_item_id = input_records_id + '__' + i;
|
|
5880
|
-
input_records[i] = ingest$
|
|
5880
|
+
input_records[i] = ingest$1O(input_records_item, {
|
|
5881
5881
|
fullPath: input_records_item_id,
|
|
5882
5882
|
propertyName: i,
|
|
5883
5883
|
parent: {
|
|
@@ -5890,10 +5890,10 @@ function normalize$L(input, existing, path, luvio, store, timestamp) {
|
|
|
5890
5890
|
}
|
|
5891
5891
|
return input;
|
|
5892
5892
|
}
|
|
5893
|
-
const select$
|
|
5893
|
+
const select$2J = function RecordCollectionRepresentationSelect() {
|
|
5894
5894
|
return {
|
|
5895
5895
|
kind: 'Fragment',
|
|
5896
|
-
version: VERSION$
|
|
5896
|
+
version: VERSION$2d,
|
|
5897
5897
|
private: [],
|
|
5898
5898
|
selections: [
|
|
5899
5899
|
{
|
|
@@ -5928,7 +5928,7 @@ const select$2m = function RecordCollectionRepresentationSelect() {
|
|
|
5928
5928
|
name: 'records',
|
|
5929
5929
|
kind: 'Link',
|
|
5930
5930
|
plural: true,
|
|
5931
|
-
fragment: select$
|
|
5931
|
+
fragment: select$2I()
|
|
5932
5932
|
}
|
|
5933
5933
|
]
|
|
5934
5934
|
};
|
|
@@ -5981,7 +5981,7 @@ function equals$X(existing, incoming) {
|
|
|
5981
5981
|
}
|
|
5982
5982
|
return true;
|
|
5983
5983
|
}
|
|
5984
|
-
const ingest$
|
|
5984
|
+
const ingest$1P = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5985
5985
|
if (process.env.NODE_ENV !== 'production') {
|
|
5986
5986
|
const validateError = validate$1w(input);
|
|
5987
5987
|
if (validateError !== null) {
|
|
@@ -6004,14 +6004,14 @@ const ingest$1s = function RecordCollectionRepresentationIngest(input, path, luv
|
|
|
6004
6004
|
const storeMetadataParams = {
|
|
6005
6005
|
ttl: ttlToUse,
|
|
6006
6006
|
namespace: "UiApi",
|
|
6007
|
-
version: VERSION$
|
|
6007
|
+
version: VERSION$2d,
|
|
6008
6008
|
representationName: RepresentationType$T,
|
|
6009
6009
|
};
|
|
6010
6010
|
luvio.publishStoreMetadata(key, storeMetadataParams);
|
|
6011
6011
|
}
|
|
6012
6012
|
return createLink$1(key);
|
|
6013
6013
|
};
|
|
6014
|
-
function getTypeCacheKeys$
|
|
6014
|
+
function getTypeCacheKeys$1S(luvio, input, fullPathFactory) {
|
|
6015
6015
|
const rootKeySet = new StoreKeyMap();
|
|
6016
6016
|
// root cache key (uses fullPathFactory if keyBuilderFromType isn't defined)
|
|
6017
6017
|
const rootKey = fullPathFactory();
|
|
@@ -6022,7 +6022,7 @@ function getTypeCacheKeys$1u(luvio, input, fullPathFactory) {
|
|
|
6022
6022
|
});
|
|
6023
6023
|
const input_records_length = input.records.length;
|
|
6024
6024
|
for (let i = 0; i < input_records_length; i++) {
|
|
6025
|
-
rootKeySet.merge(getTypeCacheKeys$
|
|
6025
|
+
rootKeySet.merge(getTypeCacheKeys$1T(luvio, input.records[i]));
|
|
6026
6026
|
}
|
|
6027
6027
|
return rootKeySet;
|
|
6028
6028
|
}
|
|
@@ -6038,7 +6038,7 @@ const keyBuilderFromType$z = function RecordRepresentationKeyBuilderFromType(luv
|
|
|
6038
6038
|
};
|
|
6039
6039
|
|
|
6040
6040
|
const TTL$A = 30000;
|
|
6041
|
-
const VERSION$
|
|
6041
|
+
const VERSION$2c = "98c5b18512e48ca8d28727549507e4ba";
|
|
6042
6042
|
function validate$1v(obj, path = 'RecordRepresentation') {
|
|
6043
6043
|
const v_error = (() => {
|
|
6044
6044
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
@@ -6229,14 +6229,14 @@ function validate$1v(obj, path = 'RecordRepresentation') {
|
|
|
6229
6229
|
return v_error === undefined ? null : v_error;
|
|
6230
6230
|
}
|
|
6231
6231
|
const RepresentationType$S = 'RecordRepresentation';
|
|
6232
|
-
function keyBuilder$
|
|
6232
|
+
function keyBuilder$30(luvio, config) {
|
|
6233
6233
|
return keyPrefix + '::' + RepresentationType$S + ':' + config.recordId;
|
|
6234
6234
|
}
|
|
6235
6235
|
function keyBuilderFromType$y(luvio, object) {
|
|
6236
6236
|
const keyParams = {
|
|
6237
6237
|
recordId: object.id
|
|
6238
6238
|
};
|
|
6239
|
-
return keyBuilder$
|
|
6239
|
+
return keyBuilder$30(luvio, keyParams);
|
|
6240
6240
|
}
|
|
6241
6241
|
function dynamicNormalize$5(ingestParams) {
|
|
6242
6242
|
return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
|
|
@@ -6281,11 +6281,11 @@ function dynamicNormalize$5(ingestParams) {
|
|
|
6281
6281
|
return input;
|
|
6282
6282
|
};
|
|
6283
6283
|
}
|
|
6284
|
-
const select$
|
|
6285
|
-
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$
|
|
6284
|
+
const select$2I = function RecordRepresentationSelect() {
|
|
6285
|
+
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2L();
|
|
6286
6286
|
return {
|
|
6287
6287
|
kind: 'Fragment',
|
|
6288
|
-
version: VERSION$
|
|
6288
|
+
version: VERSION$2c,
|
|
6289
6289
|
private: [
|
|
6290
6290
|
'eTag',
|
|
6291
6291
|
'weakEtag'
|
|
@@ -6299,13 +6299,13 @@ const select$2l = function RecordRepresentationSelect() {
|
|
|
6299
6299
|
name: 'childRelationships',
|
|
6300
6300
|
kind: 'Link',
|
|
6301
6301
|
map: true,
|
|
6302
|
-
fragment: select$
|
|
6302
|
+
fragment: select$2J()
|
|
6303
6303
|
},
|
|
6304
6304
|
{
|
|
6305
6305
|
name: 'fields',
|
|
6306
6306
|
kind: 'Link',
|
|
6307
6307
|
map: true,
|
|
6308
|
-
fragment: select$
|
|
6308
|
+
fragment: select$2K()
|
|
6309
6309
|
},
|
|
6310
6310
|
{
|
|
6311
6311
|
name: 'id',
|
|
@@ -6341,18 +6341,18 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
|
|
|
6341
6341
|
name: 'childRelationships',
|
|
6342
6342
|
kind: 'Link',
|
|
6343
6343
|
map: true,
|
|
6344
|
-
fragment: select$
|
|
6344
|
+
fragment: select$2J()
|
|
6345
6345
|
} : params.childRelationships;
|
|
6346
6346
|
const fieldsPathSelection = params.fields === undefined ? {
|
|
6347
6347
|
name: 'fields',
|
|
6348
6348
|
kind: 'Link',
|
|
6349
6349
|
map: true,
|
|
6350
|
-
fragment: select$
|
|
6350
|
+
fragment: select$2K()
|
|
6351
6351
|
} : params.fields;
|
|
6352
|
-
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$
|
|
6352
|
+
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2L();
|
|
6353
6353
|
return {
|
|
6354
6354
|
kind: 'Fragment',
|
|
6355
|
-
version: VERSION$
|
|
6355
|
+
version: VERSION$2c,
|
|
6356
6356
|
private: [
|
|
6357
6357
|
'eTag',
|
|
6358
6358
|
'weakEtag'
|
|
@@ -7920,7 +7920,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
7920
7920
|
kind: 'Fragment',
|
|
7921
7921
|
private: ['eTag', 'weakEtag'],
|
|
7922
7922
|
selections: createRecordSelection(childFieldDefinition),
|
|
7923
|
-
version: VERSION$
|
|
7923
|
+
version: VERSION$2c,
|
|
7924
7924
|
},
|
|
7925
7925
|
};
|
|
7926
7926
|
}
|
|
@@ -7930,7 +7930,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
7930
7930
|
required: childFieldDefinition.optional === true ? false : undefined,
|
|
7931
7931
|
fragment: {
|
|
7932
7932
|
kind: 'Fragment',
|
|
7933
|
-
version: VERSION$
|
|
7933
|
+
version: VERSION$2e,
|
|
7934
7934
|
private: [],
|
|
7935
7935
|
selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
|
|
7936
7936
|
},
|
|
@@ -8405,7 +8405,7 @@ function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
|
|
|
8405
8405
|
name: existing.apiName,
|
|
8406
8406
|
children: {},
|
|
8407
8407
|
};
|
|
8408
|
-
const recordKey = keyBuilder$
|
|
8408
|
+
const recordKey = keyBuilder$30(luvio, {
|
|
8409
8409
|
recordId: incoming.id,
|
|
8410
8410
|
});
|
|
8411
8411
|
const trackedFieldsConfig = {
|
|
@@ -8656,7 +8656,7 @@ function createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap
|
|
|
8656
8656
|
}
|
|
8657
8657
|
function createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
|
|
8658
8658
|
return dynamicNormalize$5({
|
|
8659
|
-
childRelationships: ingest$
|
|
8659
|
+
childRelationships: ingest$1P,
|
|
8660
8660
|
fields: createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap),
|
|
8661
8661
|
});
|
|
8662
8662
|
}
|
|
@@ -8691,7 +8691,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
|
|
|
8691
8691
|
ttl: TTL$A,
|
|
8692
8692
|
representationName: RepresentationType$S,
|
|
8693
8693
|
namespace: keyPrefix,
|
|
8694
|
-
version: VERSION$
|
|
8694
|
+
version: VERSION$2c,
|
|
8695
8695
|
});
|
|
8696
8696
|
return createLink$1(key);
|
|
8697
8697
|
};
|
|
@@ -8781,13 +8781,13 @@ const createResourceRequest$14 = function getUiApiRecordsByRecordIdCreateResourc
|
|
|
8781
8781
|
};
|
|
8782
8782
|
};
|
|
8783
8783
|
|
|
8784
|
-
function keyBuilder$
|
|
8785
|
-
return keyBuilder$
|
|
8784
|
+
function keyBuilder$2$(luvio, params) {
|
|
8785
|
+
return keyBuilder$30(luvio, {
|
|
8786
8786
|
recordId: params.urlParams.recordId
|
|
8787
8787
|
});
|
|
8788
8788
|
}
|
|
8789
8789
|
function getResponseCacheKeys$X(luvio, resourceParams, response) {
|
|
8790
|
-
return getTypeCacheKeys$
|
|
8790
|
+
return getTypeCacheKeys$1T(luvio, response);
|
|
8791
8791
|
}
|
|
8792
8792
|
function createResourceRequest$13(config) {
|
|
8793
8793
|
const headers = {};
|
|
@@ -8817,12 +8817,12 @@ function createResourceParams$W(config) {
|
|
|
8817
8817
|
// used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
|
|
8818
8818
|
function buildRecordSelector(luvio, recordId, fields, optionalFields) {
|
|
8819
8819
|
return {
|
|
8820
|
-
recordId: keyBuilder$
|
|
8820
|
+
recordId: keyBuilder$30(luvio, { recordId }),
|
|
8821
8821
|
node: {
|
|
8822
8822
|
kind: 'Fragment',
|
|
8823
8823
|
private: ['eTag', 'weakEtag'],
|
|
8824
8824
|
selections: buildSelectionFromFields(fields, optionalFields),
|
|
8825
|
-
version: VERSION$
|
|
8825
|
+
version: VERSION$2c,
|
|
8826
8826
|
},
|
|
8827
8827
|
variables: {},
|
|
8828
8828
|
};
|
|
@@ -8836,7 +8836,7 @@ function buildSnapshotRefresh$5(luvio, config) {
|
|
|
8836
8836
|
function prepareRequest$6(luvio, config) {
|
|
8837
8837
|
const { recordId, fields } = config;
|
|
8838
8838
|
// Should this go into the coersion logic?
|
|
8839
|
-
const key = keyBuilder$
|
|
8839
|
+
const key = keyBuilder$2$(luvio, createResourceParams$W(config));
|
|
8840
8840
|
const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
|
|
8841
8841
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
|
|
8842
8842
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
@@ -8903,7 +8903,7 @@ function isSingleBatchRecordResponse(response) {
|
|
|
8903
8903
|
response.results.length === 1);
|
|
8904
8904
|
}
|
|
8905
8905
|
|
|
8906
|
-
const VERSION$
|
|
8906
|
+
const VERSION$2b = "98cce53b8d13b1883d001bbdaab24383";
|
|
8907
8907
|
|
|
8908
8908
|
const nonCachedErrors$7 = ObjectCreate$1(null);
|
|
8909
8909
|
function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
|
|
@@ -8913,7 +8913,7 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
|
|
|
8913
8913
|
const now = Date.now();
|
|
8914
8914
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
8915
8915
|
const childResourceParams = childResourceParamsArray[index];
|
|
8916
|
-
const childKey = keyBuilder$
|
|
8916
|
+
const childKey = keyBuilder$2$(luvio, childResourceParams);
|
|
8917
8917
|
const result = childEnvelopes[index];
|
|
8918
8918
|
const { statusCode: childStatusCode, result: childBody } = result;
|
|
8919
8919
|
if (childStatusCode === 200) {
|
|
@@ -9000,11 +9000,11 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
|
|
|
9000
9000
|
read: (reader) => {
|
|
9001
9001
|
// Top-level 404 lookup
|
|
9002
9002
|
const compositeSnapshot = luvio.storeLookup({
|
|
9003
|
-
recordId: keyBuilder$
|
|
9003
|
+
recordId: keyBuilder$2_(luvio, resourceParams),
|
|
9004
9004
|
node: {
|
|
9005
9005
|
kind: 'Fragment',
|
|
9006
9006
|
private: [],
|
|
9007
|
-
version: VERSION$
|
|
9007
|
+
version: VERSION$2b,
|
|
9008
9008
|
},
|
|
9009
9009
|
variables: {},
|
|
9010
9010
|
});
|
|
@@ -9024,7 +9024,7 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
|
|
|
9024
9024
|
reader.enterPath(i);
|
|
9025
9025
|
reader.enterPath(envelopeBodyPath);
|
|
9026
9026
|
const childResource = childResources[i];
|
|
9027
|
-
const childKey = keyBuilder$
|
|
9027
|
+
const childKey = keyBuilder$2$(luvio, childResource);
|
|
9028
9028
|
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
9029
9029
|
const childSnapshot = reader.read(buildRecordSelector(luvio, childResource.urlParams.recordId, childResource.queryParams.fields || [], childResource.queryParams.optionalFields || []));
|
|
9030
9030
|
reader.exitPath();
|
|
@@ -9124,7 +9124,7 @@ function createChildResourceParams$9(resourceParams) {
|
|
|
9124
9124
|
}
|
|
9125
9125
|
return childConfigs;
|
|
9126
9126
|
}
|
|
9127
|
-
function keyBuilder$
|
|
9127
|
+
function keyBuilder$2_(luvio, params) {
|
|
9128
9128
|
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 + ')';
|
|
9129
9129
|
}
|
|
9130
9130
|
function getResponseCacheKeys$W(luvio, resourceParams, response) {
|
|
@@ -9146,7 +9146,7 @@ function getResponseCacheKeys$W(luvio, resourceParams, response) {
|
|
|
9146
9146
|
keys.merge(childKeys);
|
|
9147
9147
|
}
|
|
9148
9148
|
else if (childStatusCode === 404) {
|
|
9149
|
-
const childKey = keyBuilder$
|
|
9149
|
+
const childKey = keyBuilder$2$(luvio, childResourceParams);
|
|
9150
9150
|
keys.set(childKey, {
|
|
9151
9151
|
namespace: keyPrefix,
|
|
9152
9152
|
representationName: RepresentationType$S,
|
|
@@ -9157,7 +9157,7 @@ function getResponseCacheKeys$W(luvio, resourceParams, response) {
|
|
|
9157
9157
|
return keys;
|
|
9158
9158
|
}
|
|
9159
9159
|
function ingestError$J(luvio, params, error, snapshotRefresh) {
|
|
9160
|
-
const key = keyBuilder$
|
|
9160
|
+
const key = keyBuilder$2_(luvio, params);
|
|
9161
9161
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
9162
9162
|
luvio.storeIngestError(key, errorSnapshot);
|
|
9163
9163
|
return errorSnapshot;
|
|
@@ -9246,7 +9246,7 @@ function onFetchResponseSuccess$L(luvio, config, resourceParams, response, serve
|
|
|
9246
9246
|
}
|
|
9247
9247
|
}
|
|
9248
9248
|
const snapshotStateFulfilled = 'Fulfilled';
|
|
9249
|
-
const key = keyBuilder$
|
|
9249
|
+
const key = keyBuilder$2_(luvio, resourceParams);
|
|
9250
9250
|
const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
|
|
9251
9251
|
const snapshot = {
|
|
9252
9252
|
recordId: key,
|
|
@@ -9312,7 +9312,7 @@ function resolveConflict(luvio, map) {
|
|
|
9312
9312
|
buildNetworkSnapshot$_(luvio, config, map.serverRequestCount);
|
|
9313
9313
|
}
|
|
9314
9314
|
}
|
|
9315
|
-
const ingest$
|
|
9315
|
+
const ingest$1O = (input, path, luvio, store, timestamp) => {
|
|
9316
9316
|
const conflictMap = {
|
|
9317
9317
|
conflicts: {},
|
|
9318
9318
|
serverRequestCount: 0,
|
|
@@ -9379,7 +9379,7 @@ const getMruListUi_ConfigPropertyNames = {
|
|
|
9379
9379
|
},
|
|
9380
9380
|
});
|
|
9381
9381
|
const RepresentationType$N = 'ObjectInfoRepresentation';
|
|
9382
|
-
function keyBuilder$
|
|
9382
|
+
function keyBuilder$2N(luvio, config) {
|
|
9383
9383
|
return keyPrefix + '::' + RepresentationType$N + ':' + config.apiName;
|
|
9384
9384
|
}
|
|
9385
9385
|
|
|
@@ -9419,12 +9419,12 @@ ObjectCreate$1(null);
|
|
|
9419
9419
|
|
|
9420
9420
|
ObjectCreate$1(null);
|
|
9421
9421
|
|
|
9422
|
-
const VERSION$
|
|
9423
|
-
const select$
|
|
9424
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
9422
|
+
const VERSION$1M = "53893a219bc0888951863f2c44317cac";
|
|
9423
|
+
const select$1Z = function LeadStatusPicklistValueAttributesRepresentationSelect() {
|
|
9424
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1W();
|
|
9425
9425
|
return {
|
|
9426
9426
|
kind: 'Fragment',
|
|
9427
|
-
version: VERSION$
|
|
9427
|
+
version: VERSION$1M,
|
|
9428
9428
|
private: [],
|
|
9429
9429
|
selections: [
|
|
9430
9430
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -9436,12 +9436,12 @@ const select$1C = function LeadStatusPicklistValueAttributesRepresentationSelect
|
|
|
9436
9436
|
};
|
|
9437
9437
|
};
|
|
9438
9438
|
|
|
9439
|
-
const VERSION$
|
|
9440
|
-
const select$
|
|
9441
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
9439
|
+
const VERSION$1L = "4818ec07c499784571c1012ead048c88";
|
|
9440
|
+
const select$1Y = function CaseStatusPicklistValueAttributesRepresentationSelect() {
|
|
9441
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1W();
|
|
9442
9442
|
return {
|
|
9443
9443
|
kind: 'Fragment',
|
|
9444
|
-
version: VERSION$
|
|
9444
|
+
version: VERSION$1L,
|
|
9445
9445
|
private: [],
|
|
9446
9446
|
selections: [
|
|
9447
9447
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -9453,12 +9453,12 @@ const select$1B = function CaseStatusPicklistValueAttributesRepresentationSelect
|
|
|
9453
9453
|
};
|
|
9454
9454
|
};
|
|
9455
9455
|
|
|
9456
|
-
const VERSION$
|
|
9457
|
-
const select$
|
|
9458
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
9456
|
+
const VERSION$1K = "950a3a962acbd2b128f937d4c055a9d6";
|
|
9457
|
+
const select$1X = function OpportunityStagePicklistValueAttributesRepresentationSelect() {
|
|
9458
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1W();
|
|
9459
9459
|
return {
|
|
9460
9460
|
kind: 'Fragment',
|
|
9461
|
-
version: VERSION$
|
|
9461
|
+
version: VERSION$1K,
|
|
9462
9462
|
private: [],
|
|
9463
9463
|
selections: [
|
|
9464
9464
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -9488,11 +9488,11 @@ var DiscriminatorValues$3;
|
|
|
9488
9488
|
DiscriminatorValues["CaseStatus"] = "CaseStatus";
|
|
9489
9489
|
DiscriminatorValues["OpportunityStage"] = "OpportunityStage";
|
|
9490
9490
|
})(DiscriminatorValues$3 || (DiscriminatorValues$3 = {}));
|
|
9491
|
-
const VERSION$
|
|
9491
|
+
const VERSION$1J = "bd523b2343366edfc25a2dbee2c4e986";
|
|
9492
9492
|
const selectChildren$3 = function AbstractPicklistValueAttributesRepresentationSelectChildren() {
|
|
9493
|
-
const leadStatusPicklistValueAttributesRepresentationSelections = select$
|
|
9494
|
-
const caseStatusPicklistValueAttributesRepresentationSelections = select$
|
|
9495
|
-
const opportunityStagePicklistValueAttributesRepresentationSelections = select$
|
|
9493
|
+
const leadStatusPicklistValueAttributesRepresentationSelections = select$1Z();
|
|
9494
|
+
const caseStatusPicklistValueAttributesRepresentationSelections = select$1Y();
|
|
9495
|
+
const opportunityStagePicklistValueAttributesRepresentationSelections = select$1X();
|
|
9496
9496
|
return {
|
|
9497
9497
|
kind: 'Fragment',
|
|
9498
9498
|
union: true,
|
|
@@ -9504,10 +9504,10 @@ const selectChildren$3 = function AbstractPicklistValueAttributesRepresentationS
|
|
|
9504
9504
|
}
|
|
9505
9505
|
};
|
|
9506
9506
|
};
|
|
9507
|
-
const select$
|
|
9507
|
+
const select$1W = function AbstractPicklistValueAttributesRepresentationSelect() {
|
|
9508
9508
|
return {
|
|
9509
9509
|
kind: 'Fragment',
|
|
9510
|
-
version: VERSION$
|
|
9510
|
+
version: VERSION$1J,
|
|
9511
9511
|
private: [],
|
|
9512
9512
|
selections: [
|
|
9513
9513
|
{
|
|
@@ -9518,12 +9518,12 @@ const select$1z = function AbstractPicklistValueAttributesRepresentationSelect()
|
|
|
9518
9518
|
};
|
|
9519
9519
|
};
|
|
9520
9520
|
|
|
9521
|
-
const VERSION$
|
|
9522
|
-
const select$
|
|
9521
|
+
const VERSION$1I = "9e2a16a80378487f557124c771201cf9";
|
|
9522
|
+
const select$1V = function PicklistValueRepresentationSelect() {
|
|
9523
9523
|
const AbstractPicklistValueAttributesRepresentation__unionSelections = selectChildren$3();
|
|
9524
9524
|
return {
|
|
9525
9525
|
kind: 'Fragment',
|
|
9526
|
-
version: VERSION$
|
|
9526
|
+
version: VERSION$1I,
|
|
9527
9527
|
private: [],
|
|
9528
9528
|
selections: [
|
|
9529
9529
|
{
|
|
@@ -9550,12 +9550,12 @@ const select$1y = function PicklistValueRepresentationSelect() {
|
|
|
9550
9550
|
]
|
|
9551
9551
|
};
|
|
9552
9552
|
};
|
|
9553
|
-
const VERSION$
|
|
9554
|
-
const select$
|
|
9555
|
-
const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$
|
|
9553
|
+
const VERSION$1H = "0a361a49370acb4c6a31721a2057649a";
|
|
9554
|
+
const select$1U = function PicklistValuesRepresentationSelect() {
|
|
9555
|
+
const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$1V();
|
|
9556
9556
|
return {
|
|
9557
9557
|
kind: 'Fragment',
|
|
9558
|
-
version: VERSION$
|
|
9558
|
+
version: VERSION$1H,
|
|
9559
9559
|
private: [
|
|
9560
9560
|
'eTag'
|
|
9561
9561
|
],
|
|
@@ -9585,7 +9585,7 @@ const select$1x = function PicklistValuesRepresentationSelect() {
|
|
|
9585
9585
|
};
|
|
9586
9586
|
};
|
|
9587
9587
|
|
|
9588
|
-
select$
|
|
9588
|
+
select$1U().selections;
|
|
9589
9589
|
|
|
9590
9590
|
var DiscriminatorValues$2;
|
|
9591
9591
|
(function (DiscriminatorValues) {
|
|
@@ -9708,7 +9708,7 @@ function getShallowRecord(luvio, storeRecordId) {
|
|
|
9708
9708
|
*/
|
|
9709
9709
|
function getObjectMetadata(luvio, record) {
|
|
9710
9710
|
const { data: objectInfo } = luvio.storeLookup({
|
|
9711
|
-
recordId: keyBuilder$
|
|
9711
|
+
recordId: keyBuilder$2N(luvio, { apiName: record.apiName }),
|
|
9712
9712
|
node: {
|
|
9713
9713
|
kind: 'Fragment',
|
|
9714
9714
|
private: ['eTag'],
|
|
@@ -9749,7 +9749,7 @@ function getObjectMetadata(luvio, record) {
|
|
|
9749
9749
|
function fixRecordTypes(luvio, record) {
|
|
9750
9750
|
// non-master record types should always be correct
|
|
9751
9751
|
if (record.recordTypeId === MASTER_RECORD_TYPE_ID) {
|
|
9752
|
-
const key = keyBuilder$
|
|
9752
|
+
const key = keyBuilder$30(luvio, { recordId: record.id });
|
|
9753
9753
|
const recordNode = luvio.getNode(key);
|
|
9754
9754
|
if (isGraphNode(recordNode) &&
|
|
9755
9755
|
recordNode.scalar('recordTypeId') !== MASTER_RECORD_TYPE_ID) {
|
|
@@ -9823,7 +9823,7 @@ class AdsBridge {
|
|
|
9823
9823
|
// Don't let incorrect ADS/RecordGVP recordTypeIds replace a valid record type in our store
|
|
9824
9824
|
// with the master record type. See W-7302870 for details.
|
|
9825
9825
|
fixRecordTypes(luvio, recordCopy);
|
|
9826
|
-
luvio.storeIngest(INGEST_KEY, ingest$
|
|
9826
|
+
luvio.storeIngest(INGEST_KEY, ingest$1O, recordCopy);
|
|
9827
9827
|
}
|
|
9828
9828
|
}
|
|
9829
9829
|
if (didIngestRecord === true) {
|
|
@@ -9836,7 +9836,7 @@ class AdsBridge {
|
|
|
9836
9836
|
*/
|
|
9837
9837
|
evict(recordId) {
|
|
9838
9838
|
const { luvio } = this;
|
|
9839
|
-
const key = keyBuilder$
|
|
9839
|
+
const key = keyBuilder$30(luvio, { recordId });
|
|
9840
9840
|
return this.lockLdsRecordEmit(() => {
|
|
9841
9841
|
luvio.storeEvict(key);
|
|
9842
9842
|
luvio.storeBroadcast();
|
|
@@ -9851,7 +9851,7 @@ class AdsBridge {
|
|
|
9851
9851
|
*/
|
|
9852
9852
|
getTrackedFieldsForRecord(recordId) {
|
|
9853
9853
|
const { luvio } = this;
|
|
9854
|
-
const storeRecordId = keyBuilder$
|
|
9854
|
+
const storeRecordId = keyBuilder$30(luvio, { recordId });
|
|
9855
9855
|
const recordNode = luvio.getNode(storeRecordId);
|
|
9856
9856
|
if (!isGraphNode(recordNode)) {
|
|
9857
9857
|
return Promise.resolve([]);
|
package/dist/adsBridge.js
CHANGED