@salesforce/lds-ads-bridge 1.236.0 → 1.237.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 +44 -44
- package/dist/adsBridge.js +1 -1
- package/package.json +1 -1
package/dist/ads-bridge-perf.js
CHANGED
|
@@ -475,7 +475,7 @@ const callbacks$1 = [];
|
|
|
475
475
|
function register(r) {
|
|
476
476
|
callbacks$1.forEach((callback) => callback(r));
|
|
477
477
|
}
|
|
478
|
-
// version: 1.
|
|
478
|
+
// version: 1.237.0-5cc894ce9
|
|
479
479
|
|
|
480
480
|
/**
|
|
481
481
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -4916,8 +4916,8 @@ function toSortedStringArray(value) {
|
|
|
4916
4916
|
return undefined;
|
|
4917
4917
|
}
|
|
4918
4918
|
|
|
4919
|
-
const VERSION$
|
|
4920
|
-
function validate$
|
|
4919
|
+
const VERSION$2m = "d1e589a127fb1060c89070cdb6f500b2";
|
|
4920
|
+
function validate$1F(obj, path = 'RecordTypeInfoRepresentation') {
|
|
4921
4921
|
const v_error = (() => {
|
|
4922
4922
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4923
4923
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4950,10 +4950,10 @@ function validate$1D(obj, path = 'RecordTypeInfoRepresentation') {
|
|
|
4950
4950
|
})();
|
|
4951
4951
|
return v_error === undefined ? null : v_error;
|
|
4952
4952
|
}
|
|
4953
|
-
const select$
|
|
4953
|
+
const select$2V = function RecordTypeInfoRepresentationSelect() {
|
|
4954
4954
|
return {
|
|
4955
4955
|
kind: 'Fragment',
|
|
4956
|
-
version: VERSION$
|
|
4956
|
+
version: VERSION$2m,
|
|
4957
4957
|
private: [],
|
|
4958
4958
|
selections: [
|
|
4959
4959
|
{
|
|
@@ -4979,7 +4979,7 @@ const select$2T = function RecordTypeInfoRepresentationSelect() {
|
|
|
4979
4979
|
]
|
|
4980
4980
|
};
|
|
4981
4981
|
};
|
|
4982
|
-
function equals$
|
|
4982
|
+
function equals$13(existing, incoming) {
|
|
4983
4983
|
const existing_available = existing.available;
|
|
4984
4984
|
const incoming_available = incoming.available;
|
|
4985
4985
|
if (!(existing_available === incoming_available)) {
|
|
@@ -5008,8 +5008,8 @@ function equals$11(existing, incoming) {
|
|
|
5008
5008
|
return true;
|
|
5009
5009
|
}
|
|
5010
5010
|
|
|
5011
|
-
const VERSION$
|
|
5012
|
-
function validate$
|
|
5011
|
+
const VERSION$2l = "195d918987a35f45e1aa4dce9a11d8c5";
|
|
5012
|
+
function validate$1E(obj, path = 'FieldValueRepresentation') {
|
|
5013
5013
|
const v_error = (() => {
|
|
5014
5014
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5015
5015
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5100,10 +5100,10 @@ function validate$1C(obj, path = 'FieldValueRepresentation') {
|
|
|
5100
5100
|
return v_error === undefined ? null : v_error;
|
|
5101
5101
|
}
|
|
5102
5102
|
const RepresentationType$V = 'FieldValueRepresentation';
|
|
5103
|
-
const select$
|
|
5103
|
+
const select$2U = function FieldValueRepresentationSelect() {
|
|
5104
5104
|
return {
|
|
5105
5105
|
kind: 'Fragment',
|
|
5106
|
-
version: VERSION$
|
|
5106
|
+
version: VERSION$2l,
|
|
5107
5107
|
private: [],
|
|
5108
5108
|
selections: [
|
|
5109
5109
|
{
|
|
@@ -5114,12 +5114,12 @@ const select$2S = function FieldValueRepresentationSelect() {
|
|
|
5114
5114
|
name: 'value',
|
|
5115
5115
|
kind: 'Link',
|
|
5116
5116
|
nullable: true,
|
|
5117
|
-
fragment: select$
|
|
5117
|
+
fragment: select$2S()
|
|
5118
5118
|
}
|
|
5119
5119
|
]
|
|
5120
5120
|
};
|
|
5121
5121
|
};
|
|
5122
|
-
function equals$
|
|
5122
|
+
function equals$12(existing, incoming) {
|
|
5123
5123
|
const existing_displayValue = existing.displayValue;
|
|
5124
5124
|
const incoming_displayValue = incoming.displayValue;
|
|
5125
5125
|
if (!(existing_displayValue === incoming_displayValue)) {
|
|
@@ -5177,8 +5177,8 @@ const getTypeCacheKeys$1V = (rootKeySet, luvio, input, _fullPathFactory) => {
|
|
|
5177
5177
|
};
|
|
5178
5178
|
|
|
5179
5179
|
const TTL$C = 120000;
|
|
5180
|
-
const VERSION$
|
|
5181
|
-
function validate$
|
|
5180
|
+
const VERSION$2k = "79cb5ac9f44542f683d00245fdfe500d";
|
|
5181
|
+
function validate$1D(obj, path = 'RecordCollectionRepresentation') {
|
|
5182
5182
|
const v_error = (() => {
|
|
5183
5183
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5184
5184
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5358,10 +5358,10 @@ function normalize$N(input, existing, path, luvio, store, timestamp) {
|
|
|
5358
5358
|
}
|
|
5359
5359
|
return input;
|
|
5360
5360
|
}
|
|
5361
|
-
const select$
|
|
5361
|
+
const select$2T = function RecordCollectionRepresentationSelect() {
|
|
5362
5362
|
return {
|
|
5363
5363
|
kind: 'Fragment',
|
|
5364
|
-
version: VERSION$
|
|
5364
|
+
version: VERSION$2k,
|
|
5365
5365
|
private: [],
|
|
5366
5366
|
selections: [
|
|
5367
5367
|
{
|
|
@@ -5396,12 +5396,12 @@ const select$2R = function RecordCollectionRepresentationSelect() {
|
|
|
5396
5396
|
name: 'records',
|
|
5397
5397
|
kind: 'Link',
|
|
5398
5398
|
plural: true,
|
|
5399
|
-
fragment: select$
|
|
5399
|
+
fragment: select$2S()
|
|
5400
5400
|
}
|
|
5401
5401
|
]
|
|
5402
5402
|
};
|
|
5403
5403
|
};
|
|
5404
|
-
function equals
|
|
5404
|
+
function equals$11(existing, incoming) {
|
|
5405
5405
|
const existing_count = existing.count;
|
|
5406
5406
|
const incoming_count = incoming.count;
|
|
5407
5407
|
if (!(existing_count === incoming_count)) {
|
|
@@ -5451,14 +5451,14 @@ function equals$$(existing, incoming) {
|
|
|
5451
5451
|
}
|
|
5452
5452
|
const ingest$1S = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5453
5453
|
if (process.env.NODE_ENV !== 'production') {
|
|
5454
|
-
const validateError = validate$
|
|
5454
|
+
const validateError = validate$1D(input);
|
|
5455
5455
|
if (validateError !== null) {
|
|
5456
5456
|
throw validateError;
|
|
5457
5457
|
}
|
|
5458
5458
|
}
|
|
5459
5459
|
const key = path.fullPath;
|
|
5460
5460
|
const ttlToUse = TTL$C;
|
|
5461
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$N, "UiApi", VERSION$
|
|
5461
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$N, "UiApi", VERSION$2k, RepresentationType$U, equals$11);
|
|
5462
5462
|
return createLink$1(key);
|
|
5463
5463
|
};
|
|
5464
5464
|
function getTypeCacheKeys$1U(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -5486,8 +5486,8 @@ const keyBuilderFromType$z = function RecordRepresentationKeyBuilderFromType(luv
|
|
|
5486
5486
|
};
|
|
5487
5487
|
|
|
5488
5488
|
const TTL$B = 30000;
|
|
5489
|
-
const VERSION$
|
|
5490
|
-
function validate$
|
|
5489
|
+
const VERSION$2j = "98c5b18512e48ca8d28727549507e4ba";
|
|
5490
|
+
function validate$1C(obj, path = 'RecordRepresentation') {
|
|
5491
5491
|
const v_error = (() => {
|
|
5492
5492
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5493
5493
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5617,7 +5617,7 @@ function validate$1A(obj, path = 'RecordRepresentation') {
|
|
|
5617
5617
|
const path_recordTypeInfo = path + '.recordTypeInfo';
|
|
5618
5618
|
let obj_recordTypeInfo_union0 = null;
|
|
5619
5619
|
const obj_recordTypeInfo_union0_error = (() => {
|
|
5620
|
-
const referencepath_recordTypeInfoValidationError = validate$
|
|
5620
|
+
const referencepath_recordTypeInfoValidationError = validate$1F(obj_recordTypeInfo, path_recordTypeInfo);
|
|
5621
5621
|
if (referencepath_recordTypeInfoValidationError !== null) {
|
|
5622
5622
|
let message = 'Object doesn\'t match RecordTypeInfoRepresentation (at "' + path_recordTypeInfo + '")\n';
|
|
5623
5623
|
message += referencepath_recordTypeInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5729,11 +5729,11 @@ function dynamicNormalize$5(ingestParams) {
|
|
|
5729
5729
|
return input;
|
|
5730
5730
|
};
|
|
5731
5731
|
}
|
|
5732
|
-
const select$
|
|
5733
|
-
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$
|
|
5732
|
+
const select$2S = function RecordRepresentationSelect() {
|
|
5733
|
+
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2V();
|
|
5734
5734
|
return {
|
|
5735
5735
|
kind: 'Fragment',
|
|
5736
|
-
version: VERSION$
|
|
5736
|
+
version: VERSION$2j,
|
|
5737
5737
|
private: [
|
|
5738
5738
|
'eTag',
|
|
5739
5739
|
'weakEtag'
|
|
@@ -5747,13 +5747,13 @@ const select$2Q = function RecordRepresentationSelect() {
|
|
|
5747
5747
|
name: 'childRelationships',
|
|
5748
5748
|
kind: 'Link',
|
|
5749
5749
|
map: true,
|
|
5750
|
-
fragment: select$
|
|
5750
|
+
fragment: select$2T()
|
|
5751
5751
|
},
|
|
5752
5752
|
{
|
|
5753
5753
|
name: 'fields',
|
|
5754
5754
|
kind: 'Link',
|
|
5755
5755
|
map: true,
|
|
5756
|
-
fragment: select$
|
|
5756
|
+
fragment: select$2U()
|
|
5757
5757
|
},
|
|
5758
5758
|
{
|
|
5759
5759
|
name: 'id',
|
|
@@ -5789,18 +5789,18 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
|
|
|
5789
5789
|
name: 'childRelationships',
|
|
5790
5790
|
kind: 'Link',
|
|
5791
5791
|
map: true,
|
|
5792
|
-
fragment: select$
|
|
5792
|
+
fragment: select$2T()
|
|
5793
5793
|
} : params.childRelationships;
|
|
5794
5794
|
const fieldsPathSelection = params.fields === undefined ? {
|
|
5795
5795
|
name: 'fields',
|
|
5796
5796
|
kind: 'Link',
|
|
5797
5797
|
map: true,
|
|
5798
|
-
fragment: select$
|
|
5798
|
+
fragment: select$2U()
|
|
5799
5799
|
} : params.fields;
|
|
5800
|
-
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$
|
|
5800
|
+
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2V();
|
|
5801
5801
|
return {
|
|
5802
5802
|
kind: 'Fragment',
|
|
5803
|
-
version: VERSION$
|
|
5803
|
+
version: VERSION$2j,
|
|
5804
5804
|
private: [
|
|
5805
5805
|
'eTag',
|
|
5806
5806
|
'weakEtag'
|
|
@@ -5841,7 +5841,7 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
|
|
|
5841
5841
|
]
|
|
5842
5842
|
};
|
|
5843
5843
|
};
|
|
5844
|
-
function equals$
|
|
5844
|
+
function equals$10(existing, incoming) {
|
|
5845
5845
|
const existing_weakEtag = existing.weakEtag;
|
|
5846
5846
|
const incoming_weakEtag = incoming.weakEtag;
|
|
5847
5847
|
if (!(existing_weakEtag === incoming_weakEtag)) {
|
|
@@ -5902,7 +5902,7 @@ function equals$_(existing, incoming) {
|
|
|
5902
5902
|
if (!(existing_recordTypeInfo === incoming_recordTypeInfo
|
|
5903
5903
|
|| (existing_recordTypeInfo != null &&
|
|
5904
5904
|
incoming_recordTypeInfo != null &&
|
|
5905
|
-
equals$
|
|
5905
|
+
equals$13(existing_recordTypeInfo, incoming_recordTypeInfo)))) {
|
|
5906
5906
|
return false;
|
|
5907
5907
|
}
|
|
5908
5908
|
const existing_systemModstamp = existing.systemModstamp;
|
|
@@ -7279,7 +7279,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
7279
7279
|
kind: 'Fragment',
|
|
7280
7280
|
private: ['eTag', 'weakEtag'],
|
|
7281
7281
|
selections: createRecordSelection(childFieldDefinition),
|
|
7282
|
-
version: VERSION$
|
|
7282
|
+
version: VERSION$2j,
|
|
7283
7283
|
},
|
|
7284
7284
|
};
|
|
7285
7285
|
}
|
|
@@ -7289,7 +7289,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
7289
7289
|
required: childFieldDefinition.optional === true ? false : undefined,
|
|
7290
7290
|
fragment: {
|
|
7291
7291
|
kind: 'Fragment',
|
|
7292
|
-
version: VERSION$
|
|
7292
|
+
version: VERSION$2l,
|
|
7293
7293
|
private: [],
|
|
7294
7294
|
selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
|
|
7295
7295
|
},
|
|
@@ -7932,7 +7932,7 @@ function normalize$M(input, existing, path, luvio, store, timestamp, fieldsTrie,
|
|
|
7932
7932
|
function makeIngest(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
|
|
7933
7933
|
return (input, path, luvio, store, timestamp) => {
|
|
7934
7934
|
if (process.env.NODE_ENV !== 'production') {
|
|
7935
|
-
const validateError = validate$
|
|
7935
|
+
const validateError = validate$1E(input);
|
|
7936
7936
|
if (validateError !== null) {
|
|
7937
7937
|
throw validateError;
|
|
7938
7938
|
}
|
|
@@ -7947,7 +7947,7 @@ function makeIngest(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
|
|
|
7947
7947
|
// read again after children ingested in case of a circular ref
|
|
7948
7948
|
existingRecord = store.readEntry(key);
|
|
7949
7949
|
incomingRecord = merge$2(existingRecord, incomingRecord, luvio, path);
|
|
7950
|
-
if (existingRecord === undefined || equals$
|
|
7950
|
+
if (existingRecord === undefined || equals$12(existingRecord, incomingRecord) === false) {
|
|
7951
7951
|
luvio.storePublish(key, incomingRecord);
|
|
7952
7952
|
}
|
|
7953
7953
|
return createLink$1(key);
|
|
@@ -8025,7 +8025,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
|
|
|
8025
8025
|
const childNormalize = createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap);
|
|
8026
8026
|
return (input, path, luvio, store, timestamp) => {
|
|
8027
8027
|
if (process.env.NODE_ENV !== 'production') {
|
|
8028
|
-
const validateError = validate$
|
|
8028
|
+
const validateError = validate$1C(input);
|
|
8029
8029
|
if (validateError !== null) {
|
|
8030
8030
|
throw validateError;
|
|
8031
8031
|
}
|
|
@@ -8042,7 +8042,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
|
|
|
8042
8042
|
existingRecord = store.readEntry(key);
|
|
8043
8043
|
incomingRecord = merge$3(existingRecord, incomingRecord, luvio, path, recordConflictMap);
|
|
8044
8044
|
if (existingRecord === undefined ||
|
|
8045
|
-
equals$
|
|
8045
|
+
equals$10(existingRecord, incomingRecord) === false ||
|
|
8046
8046
|
// always publish if existing record has drafts
|
|
8047
8047
|
existingRecord.drafts !==
|
|
8048
8048
|
undefined) {
|
|
@@ -8052,7 +8052,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
|
|
|
8052
8052
|
ttl: TTL$B,
|
|
8053
8053
|
representationName: RepresentationType$T,
|
|
8054
8054
|
namespace: keyPrefix,
|
|
8055
|
-
version: VERSION$
|
|
8055
|
+
version: VERSION$2j,
|
|
8056
8056
|
});
|
|
8057
8057
|
return createLink$1(key);
|
|
8058
8058
|
};
|
|
@@ -8190,7 +8190,7 @@ function buildRecordSelector(luvio, recordId, fields, optionalFields) {
|
|
|
8190
8190
|
kind: 'Fragment',
|
|
8191
8191
|
private: ['eTag', 'weakEtag'],
|
|
8192
8192
|
selections: buildSelectionFromFields(fields, optionalFields),
|
|
8193
|
-
version: VERSION$
|
|
8193
|
+
version: VERSION$2j,
|
|
8194
8194
|
},
|
|
8195
8195
|
variables: {},
|
|
8196
8196
|
};
|
|
@@ -8275,7 +8275,7 @@ function isSingleBatchRecordResponse(response) {
|
|
|
8275
8275
|
response.results.length === 1);
|
|
8276
8276
|
}
|
|
8277
8277
|
|
|
8278
|
-
const VERSION$
|
|
8278
|
+
const VERSION$2i = "98cce53b8d13b1883d001bbdaab24383";
|
|
8279
8279
|
|
|
8280
8280
|
const nonCachedErrors$8 = ObjectCreate$1(null);
|
|
8281
8281
|
function ingestSuccessChildResourceParams$8(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
|
|
@@ -8376,7 +8376,7 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
|
|
|
8376
8376
|
node: {
|
|
8377
8377
|
kind: 'Fragment',
|
|
8378
8378
|
private: [],
|
|
8379
|
-
version: VERSION$
|
|
8379
|
+
version: VERSION$2i,
|
|
8380
8380
|
},
|
|
8381
8381
|
variables: {},
|
|
8382
8382
|
});
|
package/dist/adsBridge.js
CHANGED