@salesforce/lds-ads-bridge 1.251.0 → 1.253.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 +128 -128
- package/dist/adsBridge.js +1 -1
- package/package.json +1 -1
package/dist/ads-bridge-perf.js
CHANGED
|
@@ -430,7 +430,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
430
430
|
}
|
|
431
431
|
return resourceParams;
|
|
432
432
|
}
|
|
433
|
-
// engine version: 0.
|
|
433
|
+
// engine version: 0.153.0-32ab5c05
|
|
434
434
|
|
|
435
435
|
/**
|
|
436
436
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -478,7 +478,7 @@ const callbacks$1 = [];
|
|
|
478
478
|
function register(r) {
|
|
479
479
|
callbacks$1.forEach((callback) => callback(r));
|
|
480
480
|
}
|
|
481
|
-
// version: 1.
|
|
481
|
+
// version: 1.253.0-5f7477b3b
|
|
482
482
|
|
|
483
483
|
/**
|
|
484
484
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -4919,8 +4919,8 @@ function toSortedStringArray(value) {
|
|
|
4919
4919
|
return undefined;
|
|
4920
4920
|
}
|
|
4921
4921
|
|
|
4922
|
-
const VERSION$
|
|
4923
|
-
function validate$
|
|
4922
|
+
const VERSION$2i = "d1e589a127fb1060c89070cdb6f500b2";
|
|
4923
|
+
function validate$1O(obj, path = 'RecordTypeInfoRepresentation') {
|
|
4924
4924
|
const v_error = (() => {
|
|
4925
4925
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
4926
4926
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -4953,10 +4953,10 @@ function validate$1K(obj, path = 'RecordTypeInfoRepresentation') {
|
|
|
4953
4953
|
})();
|
|
4954
4954
|
return v_error === undefined ? null : v_error;
|
|
4955
4955
|
}
|
|
4956
|
-
const select$
|
|
4956
|
+
const select$2V = function RecordTypeInfoRepresentationSelect() {
|
|
4957
4957
|
return {
|
|
4958
4958
|
kind: 'Fragment',
|
|
4959
|
-
version: VERSION$
|
|
4959
|
+
version: VERSION$2i,
|
|
4960
4960
|
private: [],
|
|
4961
4961
|
selections: [
|
|
4962
4962
|
{
|
|
@@ -4982,7 +4982,7 @@ const select$2W = function RecordTypeInfoRepresentationSelect() {
|
|
|
4982
4982
|
]
|
|
4983
4983
|
};
|
|
4984
4984
|
};
|
|
4985
|
-
function equals$
|
|
4985
|
+
function equals$13(existing, incoming) {
|
|
4986
4986
|
const existing_available = existing.available;
|
|
4987
4987
|
const incoming_available = incoming.available;
|
|
4988
4988
|
if (!(existing_available === incoming_available)) {
|
|
@@ -5011,8 +5011,8 @@ function equals$14(existing, incoming) {
|
|
|
5011
5011
|
return true;
|
|
5012
5012
|
}
|
|
5013
5013
|
|
|
5014
|
-
const VERSION$
|
|
5015
|
-
function validate$
|
|
5014
|
+
const VERSION$2h = "195d918987a35f45e1aa4dce9a11d8c5";
|
|
5015
|
+
function validate$1N(obj, path = 'FieldValueRepresentation') {
|
|
5016
5016
|
const v_error = (() => {
|
|
5017
5017
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5018
5018
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5103,10 +5103,10 @@ function validate$1J(obj, path = 'FieldValueRepresentation') {
|
|
|
5103
5103
|
return v_error === undefined ? null : v_error;
|
|
5104
5104
|
}
|
|
5105
5105
|
const RepresentationType$Y = 'FieldValueRepresentation';
|
|
5106
|
-
const select$
|
|
5106
|
+
const select$2U = function FieldValueRepresentationSelect() {
|
|
5107
5107
|
return {
|
|
5108
5108
|
kind: 'Fragment',
|
|
5109
|
-
version: VERSION$
|
|
5109
|
+
version: VERSION$2h,
|
|
5110
5110
|
private: [],
|
|
5111
5111
|
selections: [
|
|
5112
5112
|
{
|
|
@@ -5117,12 +5117,12 @@ const select$2V = function FieldValueRepresentationSelect() {
|
|
|
5117
5117
|
name: 'value',
|
|
5118
5118
|
kind: 'Link',
|
|
5119
5119
|
nullable: true,
|
|
5120
|
-
fragment: select$
|
|
5120
|
+
fragment: select$2S()
|
|
5121
5121
|
}
|
|
5122
5122
|
]
|
|
5123
5123
|
};
|
|
5124
5124
|
};
|
|
5125
|
-
function equals$
|
|
5125
|
+
function equals$12(existing, incoming) {
|
|
5126
5126
|
const existing_displayValue = existing.displayValue;
|
|
5127
5127
|
const incoming_displayValue = incoming.displayValue;
|
|
5128
5128
|
if (!(existing_displayValue === incoming_displayValue)) {
|
|
@@ -5180,8 +5180,8 @@ const getTypeCacheKeys$1X = (rootKeySet, luvio, input, _fullPathFactory) => {
|
|
|
5180
5180
|
};
|
|
5181
5181
|
|
|
5182
5182
|
const TTL$D = 120000;
|
|
5183
|
-
const VERSION$
|
|
5184
|
-
function validate$
|
|
5183
|
+
const VERSION$2g = "79cb5ac9f44542f683d00245fdfe500d";
|
|
5184
|
+
function validate$1M(obj, path = 'RecordCollectionRepresentation') {
|
|
5185
5185
|
const v_error = (() => {
|
|
5186
5186
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5187
5187
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5342,13 +5342,13 @@ function validate$1I(obj, path = 'RecordCollectionRepresentation') {
|
|
|
5342
5342
|
return v_error === undefined ? null : v_error;
|
|
5343
5343
|
}
|
|
5344
5344
|
const RepresentationType$X = 'RecordCollectionRepresentation';
|
|
5345
|
-
function normalize$
|
|
5345
|
+
function normalize$P(input, existing, path, luvio, store, timestamp) {
|
|
5346
5346
|
const input_records = input.records;
|
|
5347
5347
|
const input_records_id = path.fullPath + '__records';
|
|
5348
5348
|
for (let i = 0; i < input_records.length; i++) {
|
|
5349
5349
|
const input_records_item = input_records[i];
|
|
5350
5350
|
let input_records_item_id = input_records_id + '__' + i;
|
|
5351
|
-
input_records[i] = ingest$
|
|
5351
|
+
input_records[i] = ingest$1S(input_records_item, {
|
|
5352
5352
|
fullPath: input_records_item_id,
|
|
5353
5353
|
propertyName: i,
|
|
5354
5354
|
parent: {
|
|
@@ -5361,10 +5361,10 @@ function normalize$Q(input, existing, path, luvio, store, timestamp) {
|
|
|
5361
5361
|
}
|
|
5362
5362
|
return input;
|
|
5363
5363
|
}
|
|
5364
|
-
const select$
|
|
5364
|
+
const select$2T = function RecordCollectionRepresentationSelect() {
|
|
5365
5365
|
return {
|
|
5366
5366
|
kind: 'Fragment',
|
|
5367
|
-
version: VERSION$
|
|
5367
|
+
version: VERSION$2g,
|
|
5368
5368
|
private: [],
|
|
5369
5369
|
selections: [
|
|
5370
5370
|
{
|
|
@@ -5399,12 +5399,12 @@ const select$2U = function RecordCollectionRepresentationSelect() {
|
|
|
5399
5399
|
name: 'records',
|
|
5400
5400
|
kind: 'Link',
|
|
5401
5401
|
plural: true,
|
|
5402
|
-
fragment: select$
|
|
5402
|
+
fragment: select$2S()
|
|
5403
5403
|
}
|
|
5404
5404
|
]
|
|
5405
5405
|
};
|
|
5406
5406
|
};
|
|
5407
|
-
function equals$
|
|
5407
|
+
function equals$11(existing, incoming) {
|
|
5408
5408
|
const existing_count = existing.count;
|
|
5409
5409
|
const incoming_count = incoming.count;
|
|
5410
5410
|
if (!(existing_count === incoming_count)) {
|
|
@@ -5452,16 +5452,16 @@ function equals$12(existing, incoming) {
|
|
|
5452
5452
|
}
|
|
5453
5453
|
return true;
|
|
5454
5454
|
}
|
|
5455
|
-
const ingest$
|
|
5455
|
+
const ingest$1T = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
5456
5456
|
if (process.env.NODE_ENV !== 'production') {
|
|
5457
|
-
const validateError = validate$
|
|
5457
|
+
const validateError = validate$1M(input);
|
|
5458
5458
|
if (validateError !== null) {
|
|
5459
5459
|
throw validateError;
|
|
5460
5460
|
}
|
|
5461
5461
|
}
|
|
5462
5462
|
const key = path.fullPath;
|
|
5463
5463
|
const ttlToUse = TTL$D;
|
|
5464
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
5464
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$P, "UiApi", VERSION$2g, RepresentationType$X, equals$11);
|
|
5465
5465
|
return createLink$1(key);
|
|
5466
5466
|
};
|
|
5467
5467
|
function getTypeCacheKeys$1W(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -5489,8 +5489,8 @@ const keyBuilderFromType$B = function RecordRepresentationKeyBuilderFromType(luv
|
|
|
5489
5489
|
};
|
|
5490
5490
|
|
|
5491
5491
|
const TTL$C = 30000;
|
|
5492
|
-
const VERSION$
|
|
5493
|
-
function validate$
|
|
5492
|
+
const VERSION$2f = "98c5b18512e48ca8d28727549507e4ba";
|
|
5493
|
+
function validate$1L(obj, path = 'RecordRepresentation') {
|
|
5494
5494
|
const v_error = (() => {
|
|
5495
5495
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5496
5496
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5620,7 +5620,7 @@ function validate$1H(obj, path = 'RecordRepresentation') {
|
|
|
5620
5620
|
const path_recordTypeInfo = path + '.recordTypeInfo';
|
|
5621
5621
|
let obj_recordTypeInfo_union0 = null;
|
|
5622
5622
|
const obj_recordTypeInfo_union0_error = (() => {
|
|
5623
|
-
const referencepath_recordTypeInfoValidationError = validate$
|
|
5623
|
+
const referencepath_recordTypeInfoValidationError = validate$1O(obj_recordTypeInfo, path_recordTypeInfo);
|
|
5624
5624
|
if (referencepath_recordTypeInfoValidationError !== null) {
|
|
5625
5625
|
let message = 'Object doesn\'t match RecordTypeInfoRepresentation (at "' + path_recordTypeInfo + '")\n';
|
|
5626
5626
|
message += referencepath_recordTypeInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -5680,14 +5680,14 @@ function validate$1H(obj, path = 'RecordRepresentation') {
|
|
|
5680
5680
|
return v_error === undefined ? null : v_error;
|
|
5681
5681
|
}
|
|
5682
5682
|
const RepresentationType$W = 'RecordRepresentation';
|
|
5683
|
-
function keyBuilder$
|
|
5683
|
+
function keyBuilder$3a(luvio, config) {
|
|
5684
5684
|
return keyPrefix + '::' + RepresentationType$W + ':' + config.recordId;
|
|
5685
5685
|
}
|
|
5686
5686
|
function keyBuilderFromType$A(luvio, object) {
|
|
5687
5687
|
const keyParams = {
|
|
5688
5688
|
recordId: object.id
|
|
5689
5689
|
};
|
|
5690
|
-
return keyBuilder$
|
|
5690
|
+
return keyBuilder$3a(luvio, keyParams);
|
|
5691
5691
|
}
|
|
5692
5692
|
function dynamicNormalize$5(ingestParams) {
|
|
5693
5693
|
return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
|
|
@@ -5732,11 +5732,11 @@ function dynamicNormalize$5(ingestParams) {
|
|
|
5732
5732
|
return input;
|
|
5733
5733
|
};
|
|
5734
5734
|
}
|
|
5735
|
-
const select$
|
|
5736
|
-
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$
|
|
5735
|
+
const select$2S = function RecordRepresentationSelect() {
|
|
5736
|
+
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2V();
|
|
5737
5737
|
return {
|
|
5738
5738
|
kind: 'Fragment',
|
|
5739
|
-
version: VERSION$
|
|
5739
|
+
version: VERSION$2f,
|
|
5740
5740
|
private: [
|
|
5741
5741
|
'eTag',
|
|
5742
5742
|
'weakEtag'
|
|
@@ -5750,13 +5750,13 @@ const select$2T = function RecordRepresentationSelect() {
|
|
|
5750
5750
|
name: 'childRelationships',
|
|
5751
5751
|
kind: 'Link',
|
|
5752
5752
|
map: true,
|
|
5753
|
-
fragment: select$
|
|
5753
|
+
fragment: select$2T()
|
|
5754
5754
|
},
|
|
5755
5755
|
{
|
|
5756
5756
|
name: 'fields',
|
|
5757
5757
|
kind: 'Link',
|
|
5758
5758
|
map: true,
|
|
5759
|
-
fragment: select$
|
|
5759
|
+
fragment: select$2U()
|
|
5760
5760
|
},
|
|
5761
5761
|
{
|
|
5762
5762
|
name: 'id',
|
|
@@ -5792,18 +5792,18 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
|
|
|
5792
5792
|
name: 'childRelationships',
|
|
5793
5793
|
kind: 'Link',
|
|
5794
5794
|
map: true,
|
|
5795
|
-
fragment: select$
|
|
5795
|
+
fragment: select$2T()
|
|
5796
5796
|
} : params.childRelationships;
|
|
5797
5797
|
const fieldsPathSelection = params.fields === undefined ? {
|
|
5798
5798
|
name: 'fields',
|
|
5799
5799
|
kind: 'Link',
|
|
5800
5800
|
map: true,
|
|
5801
|
-
fragment: select$
|
|
5801
|
+
fragment: select$2U()
|
|
5802
5802
|
} : params.fields;
|
|
5803
|
-
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$
|
|
5803
|
+
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2V();
|
|
5804
5804
|
return {
|
|
5805
5805
|
kind: 'Fragment',
|
|
5806
|
-
version: VERSION$
|
|
5806
|
+
version: VERSION$2f,
|
|
5807
5807
|
private: [
|
|
5808
5808
|
'eTag',
|
|
5809
5809
|
'weakEtag'
|
|
@@ -5844,7 +5844,7 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
|
|
|
5844
5844
|
]
|
|
5845
5845
|
};
|
|
5846
5846
|
};
|
|
5847
|
-
function equals$
|
|
5847
|
+
function equals$10(existing, incoming) {
|
|
5848
5848
|
const existing_weakEtag = existing.weakEtag;
|
|
5849
5849
|
const incoming_weakEtag = incoming.weakEtag;
|
|
5850
5850
|
if (!(existing_weakEtag === incoming_weakEtag)) {
|
|
@@ -5905,7 +5905,7 @@ function equals$11(existing, incoming) {
|
|
|
5905
5905
|
if (!(existing_recordTypeInfo === incoming_recordTypeInfo
|
|
5906
5906
|
|| (existing_recordTypeInfo != null &&
|
|
5907
5907
|
incoming_recordTypeInfo != null &&
|
|
5908
|
-
equals$
|
|
5908
|
+
equals$13(existing_recordTypeInfo, incoming_recordTypeInfo)))) {
|
|
5909
5909
|
return false;
|
|
5910
5910
|
}
|
|
5911
5911
|
const existing_systemModstamp = existing.systemModstamp;
|
|
@@ -7282,7 +7282,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
7282
7282
|
kind: 'Fragment',
|
|
7283
7283
|
private: ['eTag', 'weakEtag'],
|
|
7284
7284
|
selections: createRecordSelection(childFieldDefinition),
|
|
7285
|
-
version: VERSION$
|
|
7285
|
+
version: VERSION$2f,
|
|
7286
7286
|
},
|
|
7287
7287
|
};
|
|
7288
7288
|
}
|
|
@@ -7292,7 +7292,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
7292
7292
|
required: childFieldDefinition.optional === true ? false : undefined,
|
|
7293
7293
|
fragment: {
|
|
7294
7294
|
kind: 'Fragment',
|
|
7295
|
-
version: VERSION$
|
|
7295
|
+
version: VERSION$2h,
|
|
7296
7296
|
private: [],
|
|
7297
7297
|
selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
|
|
7298
7298
|
},
|
|
@@ -7762,7 +7762,7 @@ function mergeAndRefreshLowerVersionRecord(luvio, incoming, existing, incomingTr
|
|
|
7762
7762
|
return existing;
|
|
7763
7763
|
}
|
|
7764
7764
|
function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
|
|
7765
|
-
const recordKey = keyBuilder$
|
|
7765
|
+
const recordKey = keyBuilder$3a(luvio, {
|
|
7766
7766
|
recordId: incoming.id,
|
|
7767
7767
|
});
|
|
7768
7768
|
const incomingNode = luvio.wrapNormalizedGraphNode(incoming, recordKey);
|
|
@@ -7917,7 +7917,7 @@ function fixDisplayValue(existing, incoming, path) {
|
|
|
7917
7917
|
}
|
|
7918
7918
|
}
|
|
7919
7919
|
|
|
7920
|
-
function normalize$
|
|
7920
|
+
function normalize$O(input, existing, path, luvio, store, timestamp, fieldsTrie, optionalFieldsTrie, recordConflictMap) {
|
|
7921
7921
|
const input_value = input.value;
|
|
7922
7922
|
const input_value_id = path.fullPath + '__value';
|
|
7923
7923
|
if (input_value !== null && typeof input_value === 'object') {
|
|
@@ -7938,14 +7938,14 @@ function normalize$P(input, existing, path, luvio, store, timestamp, fieldsTrie,
|
|
|
7938
7938
|
function makeIngest(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
|
|
7939
7939
|
return (input, path, luvio, store, timestamp) => {
|
|
7940
7940
|
if (process.env.NODE_ENV !== 'production') {
|
|
7941
|
-
const validateError = validate$
|
|
7941
|
+
const validateError = validate$1N(input);
|
|
7942
7942
|
if (validateError !== null) {
|
|
7943
7943
|
throw validateError;
|
|
7944
7944
|
}
|
|
7945
7945
|
}
|
|
7946
7946
|
const key = path.fullPath;
|
|
7947
7947
|
let existingRecord = store.readEntry(key);
|
|
7948
|
-
let incomingRecord = normalize$
|
|
7948
|
+
let incomingRecord = normalize$O(input, store.readEntry(key), {
|
|
7949
7949
|
fullPath: key,
|
|
7950
7950
|
parent: path.parent,
|
|
7951
7951
|
propertyName: path.propertyName,
|
|
@@ -7953,7 +7953,7 @@ function makeIngest(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
|
|
|
7953
7953
|
// read again after children ingested in case of a circular ref
|
|
7954
7954
|
existingRecord = store.readEntry(key);
|
|
7955
7955
|
incomingRecord = merge$2(existingRecord, incomingRecord, luvio, path);
|
|
7956
|
-
if (existingRecord === undefined || equals$
|
|
7956
|
+
if (existingRecord === undefined || equals$12(existingRecord, incomingRecord) === false) {
|
|
7957
7957
|
luvio.storePublish(key, incomingRecord);
|
|
7958
7958
|
}
|
|
7959
7959
|
return createLink$1(key);
|
|
@@ -8023,7 +8023,7 @@ function createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap
|
|
|
8023
8023
|
}
|
|
8024
8024
|
function createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
|
|
8025
8025
|
return dynamicNormalize$5({
|
|
8026
|
-
childRelationships: ingest$
|
|
8026
|
+
childRelationships: ingest$1T,
|
|
8027
8027
|
fields: createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap),
|
|
8028
8028
|
});
|
|
8029
8029
|
}
|
|
@@ -8031,7 +8031,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
|
|
|
8031
8031
|
const childNormalize = createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap);
|
|
8032
8032
|
return (input, path, luvio, store, timestamp) => {
|
|
8033
8033
|
if (process.env.NODE_ENV !== 'production') {
|
|
8034
|
-
const validateError = validate$
|
|
8034
|
+
const validateError = validate$1L(input);
|
|
8035
8035
|
if (validateError !== null) {
|
|
8036
8036
|
throw validateError;
|
|
8037
8037
|
}
|
|
@@ -8049,7 +8049,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
|
|
|
8049
8049
|
existingRecord = store.readEntry(key);
|
|
8050
8050
|
incomingRecord = merge$3(existingRecord, incomingRecord, luvio, path, recordConflictMap);
|
|
8051
8051
|
if (existingRecord === undefined ||
|
|
8052
|
-
equals$
|
|
8052
|
+
equals$10(existingRecord, incomingRecord) === false ||
|
|
8053
8053
|
// always publish if existing record has drafts
|
|
8054
8054
|
existingRecord.drafts !==
|
|
8055
8055
|
undefined) {
|
|
@@ -8059,7 +8059,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
|
|
|
8059
8059
|
ttl: TTL$C,
|
|
8060
8060
|
representationName: RepresentationType$W,
|
|
8061
8061
|
namespace: keyPrefix,
|
|
8062
|
-
version: VERSION$
|
|
8062
|
+
version: VERSION$2f,
|
|
8063
8063
|
});
|
|
8064
8064
|
return createLink$1(key);
|
|
8065
8065
|
};
|
|
@@ -8155,8 +8155,8 @@ const createResourceRequest$1c = function getUiApiRecordsByRecordIdCreateResourc
|
|
|
8155
8155
|
};
|
|
8156
8156
|
};
|
|
8157
8157
|
|
|
8158
|
-
function keyBuilder$
|
|
8159
|
-
return keyBuilder$
|
|
8158
|
+
function keyBuilder$39(luvio, params) {
|
|
8159
|
+
return keyBuilder$3a(luvio, {
|
|
8160
8160
|
recordId: params.urlParams.recordId
|
|
8161
8161
|
});
|
|
8162
8162
|
}
|
|
@@ -8187,17 +8187,17 @@ const getRecord_ConfigPropertyMetadata = [
|
|
|
8187
8187
|
generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
8188
8188
|
generateParamConfigMetadata('updateMru', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
8189
8189
|
];
|
|
8190
|
-
const createResourceParams$
|
|
8190
|
+
const createResourceParams$11 = /*#__PURE__*/ createResourceParams(getRecord_ConfigPropertyMetadata);
|
|
8191
8191
|
|
|
8192
8192
|
// used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
|
|
8193
8193
|
function buildRecordSelector(luvio, recordId, fields, optionalFields) {
|
|
8194
8194
|
return {
|
|
8195
|
-
recordId: keyBuilder$
|
|
8195
|
+
recordId: keyBuilder$3a(luvio, { recordId }),
|
|
8196
8196
|
node: {
|
|
8197
8197
|
kind: 'Fragment',
|
|
8198
8198
|
private: ['eTag', 'weakEtag'],
|
|
8199
8199
|
selections: buildSelectionFromFields(fields, optionalFields),
|
|
8200
|
-
version: VERSION$
|
|
8200
|
+
version: VERSION$2f,
|
|
8201
8201
|
},
|
|
8202
8202
|
variables: {},
|
|
8203
8203
|
};
|
|
@@ -8211,13 +8211,13 @@ function buildSnapshotRefresh$5(luvio, config) {
|
|
|
8211
8211
|
function prepareRequest$6(luvio, config) {
|
|
8212
8212
|
const { recordId, fields } = config;
|
|
8213
8213
|
// Should this go into the coersion logic?
|
|
8214
|
-
const key = keyBuilder$
|
|
8214
|
+
const key = keyBuilder$39(luvio, createResourceParams$11(config));
|
|
8215
8215
|
const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
|
|
8216
8216
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
|
|
8217
8217
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
8218
8218
|
}, config.optionalFields);
|
|
8219
8219
|
const optionalFields = fields === undefined ? allTrackedFields : difference(allTrackedFields, fields);
|
|
8220
|
-
const resourceParams = createResourceParams$
|
|
8220
|
+
const resourceParams = createResourceParams$11({
|
|
8221
8221
|
recordId,
|
|
8222
8222
|
fields,
|
|
8223
8223
|
optionalFields: optionalFields.length > 0 ? optionalFields : undefined,
|
|
@@ -8225,7 +8225,7 @@ function prepareRequest$6(luvio, config) {
|
|
|
8225
8225
|
const request = createResourceRequest$1c(resourceParams);
|
|
8226
8226
|
return { request, key, allTrackedFields, resourceParams };
|
|
8227
8227
|
}
|
|
8228
|
-
function ingestSuccess$
|
|
8228
|
+
function ingestSuccess$T(luvio, config, key, allTrackedFields, response, serverRequestCount) {
|
|
8229
8229
|
const { body } = response;
|
|
8230
8230
|
const fields = config.fields === undefined ? [] : config.fields;
|
|
8231
8231
|
const optionalFields = config.optionalFields === undefined ? [] : config.optionalFields;
|
|
@@ -8239,16 +8239,16 @@ function ingestSuccess$U(luvio, config, key, allTrackedFields, response, serverR
|
|
|
8239
8239
|
return luvio.storeLookup(buildRecordSelector(luvio, config.recordId, fields, optionalFields), buildSnapshotRefresh$5(luvio, config));
|
|
8240
8240
|
}
|
|
8241
8241
|
function onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount) {
|
|
8242
|
-
const snapshot = ingestSuccess$
|
|
8242
|
+
const snapshot = ingestSuccess$T(luvio, config, key, allTrackedFields, response, serverRequestCount);
|
|
8243
8243
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8244
8244
|
}
|
|
8245
|
-
function ingestError$
|
|
8245
|
+
function ingestError$N(luvio, config, key, err) {
|
|
8246
8246
|
const errorSnapshot = luvio.errorSnapshot(err, buildSnapshotRefresh$5(luvio, config));
|
|
8247
8247
|
luvio.storeIngestError(key, errorSnapshot, RECORD_REPRESENTATION_ERROR_STORE_METADATA_PARAMS);
|
|
8248
8248
|
return errorSnapshot;
|
|
8249
8249
|
}
|
|
8250
8250
|
function onResourceError(luvio, config, key, err) {
|
|
8251
|
-
const errorSnapshot = ingestError$
|
|
8251
|
+
const errorSnapshot = ingestError$N(luvio, config, key, err);
|
|
8252
8252
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
8253
8253
|
}
|
|
8254
8254
|
function buildNetworkSnapshot$17(luvio, config, serverRequestCount = 0, options) {
|
|
@@ -8282,7 +8282,7 @@ function isSingleBatchRecordResponse(response) {
|
|
|
8282
8282
|
response.results.length === 1);
|
|
8283
8283
|
}
|
|
8284
8284
|
|
|
8285
|
-
const VERSION$
|
|
8285
|
+
const VERSION$2e = "98cce53b8d13b1883d001bbdaab24383";
|
|
8286
8286
|
|
|
8287
8287
|
const nonCachedErrors$8 = ObjectCreate$1(null);
|
|
8288
8288
|
function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
|
|
@@ -8292,7 +8292,7 @@ function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, chi
|
|
|
8292
8292
|
const now = Date.now();
|
|
8293
8293
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
8294
8294
|
const childResourceParams = childResourceParamsArray[index];
|
|
8295
|
-
const childKey = keyBuilder$
|
|
8295
|
+
const childKey = keyBuilder$39(luvio, childResourceParams);
|
|
8296
8296
|
const result = childEnvelopes[index];
|
|
8297
8297
|
const { statusCode: childStatusCode, result: childBody } = result;
|
|
8298
8298
|
if (childStatusCode === 200) {
|
|
@@ -8307,7 +8307,7 @@ function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, chi
|
|
|
8307
8307
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
|
|
8308
8308
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
8309
8309
|
}, childResourceParams.queryParams.optionalFields);
|
|
8310
|
-
const childSnapshot = ingestSuccess$
|
|
8310
|
+
const childSnapshot = ingestSuccess$T(luvio, {
|
|
8311
8311
|
recordId: childResourceParams.urlParams.recordId,
|
|
8312
8312
|
fields: childResourceParams.queryParams.fields,
|
|
8313
8313
|
optionalFields: childResourceParams.queryParams.optionalFields,
|
|
@@ -8333,7 +8333,7 @@ function ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, chi
|
|
|
8333
8333
|
headers: {},
|
|
8334
8334
|
errorType: 'fetchResponse',
|
|
8335
8335
|
};
|
|
8336
|
-
ingestError$
|
|
8336
|
+
ingestError$N(luvio, {
|
|
8337
8337
|
recordId: childResourceParams.urlParams.recordId,
|
|
8338
8338
|
fields: childResourceParams.queryParams.fields,
|
|
8339
8339
|
optionalFields: childResourceParams.queryParams.optionalFields,
|
|
@@ -8379,11 +8379,11 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
|
|
|
8379
8379
|
read: (reader) => {
|
|
8380
8380
|
// Top-level 404 lookup
|
|
8381
8381
|
const compositeSnapshot = luvio.storeLookup({
|
|
8382
|
-
recordId: keyBuilder$
|
|
8382
|
+
recordId: keyBuilder$38(luvio, resourceParams),
|
|
8383
8383
|
node: {
|
|
8384
8384
|
kind: 'Fragment',
|
|
8385
8385
|
private: [],
|
|
8386
|
-
version: VERSION$
|
|
8386
|
+
version: VERSION$2e,
|
|
8387
8387
|
},
|
|
8388
8388
|
variables: {},
|
|
8389
8389
|
});
|
|
@@ -8403,7 +8403,7 @@ function selectChildResourceParams$8(luvio, childResources, resourceParams) {
|
|
|
8403
8403
|
reader.enterPath(i);
|
|
8404
8404
|
reader.enterPath(envelopeBodyPath);
|
|
8405
8405
|
const childResource = childResources[i];
|
|
8406
|
-
const childKey = keyBuilder$
|
|
8406
|
+
const childKey = keyBuilder$39(luvio, childResource);
|
|
8407
8407
|
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
8408
8408
|
const childSnapshot = reader.read(buildRecordSelector(luvio, childResource.urlParams.recordId, childResource.queryParams.fields || [], childResource.queryParams.optionalFields || []));
|
|
8409
8409
|
reader.exitPath();
|
|
@@ -8503,7 +8503,7 @@ function createChildResourceParams$c(resourceParams) {
|
|
|
8503
8503
|
}
|
|
8504
8504
|
return childConfigs;
|
|
8505
8505
|
}
|
|
8506
|
-
function keyBuilder$
|
|
8506
|
+
function keyBuilder$38(luvio, params) {
|
|
8507
8507
|
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 + ')';
|
|
8508
8508
|
}
|
|
8509
8509
|
function getResponseCacheKeys$12(keys, luvio, resourceParams, response) {
|
|
@@ -8523,7 +8523,7 @@ function getResponseCacheKeys$12(keys, luvio, resourceParams, response) {
|
|
|
8523
8523
|
getResponseCacheKeys$13(keys, luvio, childResourceParams, childBody);
|
|
8524
8524
|
}
|
|
8525
8525
|
else if (childStatusCode === 404) {
|
|
8526
|
-
const childKey = keyBuilder$
|
|
8526
|
+
const childKey = keyBuilder$39(luvio, childResourceParams);
|
|
8527
8527
|
keys.set(childKey, {
|
|
8528
8528
|
namespace: keyPrefix,
|
|
8529
8529
|
representationName: RepresentationType$W,
|
|
@@ -8532,8 +8532,8 @@ function getResponseCacheKeys$12(keys, luvio, resourceParams, response) {
|
|
|
8532
8532
|
}
|
|
8533
8533
|
}
|
|
8534
8534
|
}
|
|
8535
|
-
function ingestError$
|
|
8536
|
-
const key = keyBuilder$
|
|
8535
|
+
function ingestError$M(luvio, params, error, snapshotRefresh) {
|
|
8536
|
+
const key = keyBuilder$38(luvio, params);
|
|
8537
8537
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
8538
8538
|
luvio.storeIngestError(key, errorSnapshot);
|
|
8539
8539
|
return errorSnapshot;
|
|
@@ -8552,7 +8552,7 @@ function createResourceRequest$1a(config) {
|
|
|
8552
8552
|
};
|
|
8553
8553
|
}
|
|
8554
8554
|
|
|
8555
|
-
function createResourceParams$
|
|
8555
|
+
function createResourceParams$10(config) {
|
|
8556
8556
|
const { records: configRecords } = config;
|
|
8557
8557
|
const recordIds = [];
|
|
8558
8558
|
const resourceConfigFields = [];
|
|
@@ -8604,13 +8604,13 @@ function createChildResourceParams$b(config) {
|
|
|
8604
8604
|
return childResources;
|
|
8605
8605
|
}
|
|
8606
8606
|
|
|
8607
|
-
function adapterFragment$
|
|
8607
|
+
function adapterFragment$K(luvio, config) {
|
|
8608
8608
|
const childResources = createChildResourceParams$b(config);
|
|
8609
|
-
const resourceParams = createResourceParams$
|
|
8609
|
+
const resourceParams = createResourceParams$10(config);
|
|
8610
8610
|
return selectChildResourceParams$8(luvio, childResources, resourceParams);
|
|
8611
8611
|
}
|
|
8612
8612
|
|
|
8613
|
-
function onFetchResponseSuccess$
|
|
8613
|
+
function onFetchResponseSuccess$O(luvio, config, resourceParams, response, serverRequestCount = 0) {
|
|
8614
8614
|
const childEnvelopes = response.body.results;
|
|
8615
8615
|
const childResourceParamsArray = createChildResourceParams$b(config);
|
|
8616
8616
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -8622,7 +8622,7 @@ function onFetchResponseSuccess$P(luvio, config, resourceParams, response, serve
|
|
|
8622
8622
|
}
|
|
8623
8623
|
}
|
|
8624
8624
|
const snapshotStateFulfilled = 'Fulfilled';
|
|
8625
|
-
const key = keyBuilder$
|
|
8625
|
+
const key = keyBuilder$38(luvio, resourceParams);
|
|
8626
8626
|
const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$9(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
|
|
8627
8627
|
const snapshot = {
|
|
8628
8628
|
recordId: key,
|
|
@@ -8631,7 +8631,7 @@ function onFetchResponseSuccess$P(luvio, config, resourceParams, response, serve
|
|
|
8631
8631
|
seenRecords: seenRecords,
|
|
8632
8632
|
select: {
|
|
8633
8633
|
recordId: key,
|
|
8634
|
-
node: adapterFragment$
|
|
8634
|
+
node: adapterFragment$K(luvio, config),
|
|
8635
8635
|
variables: {},
|
|
8636
8636
|
},
|
|
8637
8637
|
refresh: {
|
|
@@ -8643,24 +8643,24 @@ function onFetchResponseSuccess$P(luvio, config, resourceParams, response, serve
|
|
|
8643
8643
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8644
8644
|
}
|
|
8645
8645
|
|
|
8646
|
-
function onFetchResponseError$
|
|
8647
|
-
const snapshot = ingestError$
|
|
8646
|
+
function onFetchResponseError$P(luvio, config, resourceParams, response) {
|
|
8647
|
+
const snapshot = ingestError$M(luvio, resourceParams, response, {
|
|
8648
8648
|
config,
|
|
8649
8649
|
resolve: () => buildNetworkSnapshot$16(luvio, config, 0, snapshotRefreshOptions),
|
|
8650
8650
|
});
|
|
8651
8651
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
8652
8652
|
}
|
|
8653
8653
|
function buildNetworkSnapshot$16(luvio, config, serverRequestCount = 0, options) {
|
|
8654
|
-
const resourceParams = createResourceParams$
|
|
8654
|
+
const resourceParams = createResourceParams$10(config);
|
|
8655
8655
|
const request = createResourceRequest$1a(resourceParams);
|
|
8656
8656
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
8657
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
8657
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$O(luvio, config, resourceParams, response, serverRequestCount + 1), () => {
|
|
8658
8658
|
const cache = new StoreKeyMap();
|
|
8659
8659
|
getResponseCacheKeys$12(cache, luvio, resourceParams, response.body);
|
|
8660
8660
|
return cache;
|
|
8661
8661
|
});
|
|
8662
8662
|
}, (response) => {
|
|
8663
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
8663
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$P(luvio, config, resourceParams, response));
|
|
8664
8664
|
});
|
|
8665
8665
|
}
|
|
8666
8666
|
|
|
@@ -8692,7 +8692,7 @@ function resolveConflict(luvio, map) {
|
|
|
8692
8692
|
buildNetworkSnapshot$16(luvio, config, map.serverRequestCount);
|
|
8693
8693
|
}
|
|
8694
8694
|
}
|
|
8695
|
-
const ingest$
|
|
8695
|
+
const ingest$1S = (input, path, luvio, store, timestamp) => {
|
|
8696
8696
|
const conflictMap = {
|
|
8697
8697
|
conflicts: {},
|
|
8698
8698
|
serverRequestCount: 0,
|
|
@@ -8703,7 +8703,7 @@ const ingest$1T = (input, path, luvio, store, timestamp) => {
|
|
|
8703
8703
|
return result;
|
|
8704
8704
|
};
|
|
8705
8705
|
|
|
8706
|
-
const adapterName$
|
|
8706
|
+
const adapterName$Y = 'getListUiByApiName';
|
|
8707
8707
|
const getListUiByApiName_ConfigPropertyMetadata = [
|
|
8708
8708
|
generateParamConfigMetadata('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8709
8709
|
generateParamConfigMetadata('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1),
|
|
@@ -8713,9 +8713,9 @@ const getListUiByApiName_ConfigPropertyMetadata = [
|
|
|
8713
8713
|
generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
|
|
8714
8714
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
8715
8715
|
];
|
|
8716
|
-
const getListUiByApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8716
|
+
const getListUiByApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Y, getListUiByApiName_ConfigPropertyMetadata);
|
|
8717
8717
|
|
|
8718
|
-
const adapterName$
|
|
8718
|
+
const adapterName$X = 'getListUiByListViewId';
|
|
8719
8719
|
const getListUiByListViewId_ConfigPropertyMetadata = [
|
|
8720
8720
|
generateParamConfigMetadata('listViewId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
8721
8721
|
generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
@@ -8724,9 +8724,9 @@ const getListUiByListViewId_ConfigPropertyMetadata = [
|
|
|
8724
8724
|
generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
|
|
8725
8725
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
8726
8726
|
];
|
|
8727
|
-
const getListUiByListViewId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8727
|
+
const getListUiByListViewId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$X, getListUiByListViewId_ConfigPropertyMetadata);
|
|
8728
8728
|
|
|
8729
|
-
const adapterName$
|
|
8729
|
+
const adapterName$V = 'getMruListUi';
|
|
8730
8730
|
const getMruListUi_ConfigPropertyMetadata = [
|
|
8731
8731
|
generateParamConfigMetadata('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1),
|
|
8732
8732
|
generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
@@ -8735,7 +8735,7 @@ const getMruListUi_ConfigPropertyMetadata = [
|
|
|
8735
8735
|
generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
|
|
8736
8736
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
8737
8737
|
];
|
|
8738
|
-
const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
8738
|
+
const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$V, getMruListUi_ConfigPropertyMetadata);
|
|
8739
8739
|
// make local copies of the adapter configs so we can ignore other getListUi config parameters to match
|
|
8740
8740
|
// lds222 behavior
|
|
8741
8741
|
({
|
|
@@ -8770,7 +8770,7 @@ const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationCon
|
|
|
8770
8770
|
},
|
|
8771
8771
|
});
|
|
8772
8772
|
const RepresentationType$R = 'ObjectInfoRepresentation';
|
|
8773
|
-
function keyBuilder$
|
|
8773
|
+
function keyBuilder$2X(luvio, config) {
|
|
8774
8774
|
return keyPrefix + '::' + RepresentationType$R + ':' + config.apiName;
|
|
8775
8775
|
}
|
|
8776
8776
|
|
|
@@ -8812,12 +8812,12 @@ ObjectCreate$1(null);
|
|
|
8812
8812
|
|
|
8813
8813
|
ObjectCreate$1(null);
|
|
8814
8814
|
|
|
8815
|
-
const VERSION$
|
|
8816
|
-
const select$
|
|
8817
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
8815
|
+
const VERSION$1I = "8d2032474fb4fabdf5cf4042be9042d9";
|
|
8816
|
+
const select$1V = function WorkStepPicklistValueAttributeRepresentationSelect() {
|
|
8817
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1R();
|
|
8818
8818
|
return {
|
|
8819
8819
|
kind: 'Fragment',
|
|
8820
|
-
version: VERSION$
|
|
8820
|
+
version: VERSION$1I,
|
|
8821
8821
|
private: [],
|
|
8822
8822
|
selections: [
|
|
8823
8823
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -8833,12 +8833,12 @@ const select$1W = function WorkStepPicklistValueAttributeRepresentationSelect()
|
|
|
8833
8833
|
};
|
|
8834
8834
|
};
|
|
8835
8835
|
|
|
8836
|
-
const VERSION$
|
|
8837
|
-
const select$
|
|
8838
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
8836
|
+
const VERSION$1H = "53893a219bc0888951863f2c44317cac";
|
|
8837
|
+
const select$1U = function LeadStatusPicklistValueAttributesRepresentationSelect() {
|
|
8838
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1R();
|
|
8839
8839
|
return {
|
|
8840
8840
|
kind: 'Fragment',
|
|
8841
|
-
version: VERSION$
|
|
8841
|
+
version: VERSION$1H,
|
|
8842
8842
|
private: [],
|
|
8843
8843
|
selections: [
|
|
8844
8844
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -8850,12 +8850,12 @@ const select$1V = function LeadStatusPicklistValueAttributesRepresentationSelect
|
|
|
8850
8850
|
};
|
|
8851
8851
|
};
|
|
8852
8852
|
|
|
8853
|
-
const VERSION$
|
|
8854
|
-
const select$
|
|
8855
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
8853
|
+
const VERSION$1G = "4818ec07c499784571c1012ead048c88";
|
|
8854
|
+
const select$1T = function CaseStatusPicklistValueAttributesRepresentationSelect() {
|
|
8855
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1R();
|
|
8856
8856
|
return {
|
|
8857
8857
|
kind: 'Fragment',
|
|
8858
|
-
version: VERSION$
|
|
8858
|
+
version: VERSION$1G,
|
|
8859
8859
|
private: [],
|
|
8860
8860
|
selections: [
|
|
8861
8861
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -8867,12 +8867,12 @@ const select$1U = function CaseStatusPicklistValueAttributesRepresentationSelect
|
|
|
8867
8867
|
};
|
|
8868
8868
|
};
|
|
8869
8869
|
|
|
8870
|
-
const VERSION$
|
|
8871
|
-
const select$
|
|
8872
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
8870
|
+
const VERSION$1F = "950a3a962acbd2b128f937d4c055a9d6";
|
|
8871
|
+
const select$1S = function OpportunityStagePicklistValueAttributesRepresentationSelect() {
|
|
8872
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1R();
|
|
8873
8873
|
return {
|
|
8874
8874
|
kind: 'Fragment',
|
|
8875
|
-
version: VERSION$
|
|
8875
|
+
version: VERSION$1F,
|
|
8876
8876
|
private: [],
|
|
8877
8877
|
selections: [
|
|
8878
8878
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -8903,12 +8903,12 @@ var DiscriminatorValues$4;
|
|
|
8903
8903
|
DiscriminatorValues["CaseStatus"] = "CaseStatus";
|
|
8904
8904
|
DiscriminatorValues["OpportunityStage"] = "OpportunityStage";
|
|
8905
8905
|
})(DiscriminatorValues$4 || (DiscriminatorValues$4 = {}));
|
|
8906
|
-
const VERSION$
|
|
8906
|
+
const VERSION$1E = "bd523b2343366edfc25a2dbee2c4e986";
|
|
8907
8907
|
const selectChildren$2 = function AbstractPicklistValueAttributesRepresentationSelectChildren() {
|
|
8908
|
-
const workStepPicklistValueAttributeRepresentationSelections = select$
|
|
8909
|
-
const leadStatusPicklistValueAttributesRepresentationSelections = select$
|
|
8910
|
-
const caseStatusPicklistValueAttributesRepresentationSelections = select$
|
|
8911
|
-
const opportunityStagePicklistValueAttributesRepresentationSelections = select$
|
|
8908
|
+
const workStepPicklistValueAttributeRepresentationSelections = select$1V();
|
|
8909
|
+
const leadStatusPicklistValueAttributesRepresentationSelections = select$1U();
|
|
8910
|
+
const caseStatusPicklistValueAttributesRepresentationSelections = select$1T();
|
|
8911
|
+
const opportunityStagePicklistValueAttributesRepresentationSelections = select$1S();
|
|
8912
8912
|
return {
|
|
8913
8913
|
kind: 'Fragment',
|
|
8914
8914
|
union: true,
|
|
@@ -8921,10 +8921,10 @@ const selectChildren$2 = function AbstractPicklistValueAttributesRepresentationS
|
|
|
8921
8921
|
}
|
|
8922
8922
|
};
|
|
8923
8923
|
};
|
|
8924
|
-
const select$
|
|
8924
|
+
const select$1R = function AbstractPicklistValueAttributesRepresentationSelect() {
|
|
8925
8925
|
return {
|
|
8926
8926
|
kind: 'Fragment',
|
|
8927
|
-
version: VERSION$
|
|
8927
|
+
version: VERSION$1E,
|
|
8928
8928
|
private: [],
|
|
8929
8929
|
selections: [
|
|
8930
8930
|
{
|
|
@@ -8935,12 +8935,12 @@ const select$1S = function AbstractPicklistValueAttributesRepresentationSelect()
|
|
|
8935
8935
|
};
|
|
8936
8936
|
};
|
|
8937
8937
|
|
|
8938
|
-
const VERSION$
|
|
8939
|
-
const select$
|
|
8938
|
+
const VERSION$1D = "9e2a16a80378487f557124c771201cf9";
|
|
8939
|
+
const select$1Q = function PicklistValueRepresentationSelect() {
|
|
8940
8940
|
const AbstractPicklistValueAttributesRepresentation__unionSelections = selectChildren$2();
|
|
8941
8941
|
return {
|
|
8942
8942
|
kind: 'Fragment',
|
|
8943
|
-
version: VERSION$
|
|
8943
|
+
version: VERSION$1D,
|
|
8944
8944
|
private: [],
|
|
8945
8945
|
selections: [
|
|
8946
8946
|
{
|
|
@@ -8967,12 +8967,12 @@ const select$1R = function PicklistValueRepresentationSelect() {
|
|
|
8967
8967
|
]
|
|
8968
8968
|
};
|
|
8969
8969
|
};
|
|
8970
|
-
const VERSION$
|
|
8971
|
-
const select$
|
|
8972
|
-
const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$
|
|
8970
|
+
const VERSION$1C = "0a361a49370acb4c6a31721a2057649a";
|
|
8971
|
+
const select$1P = function PicklistValuesRepresentationSelect() {
|
|
8972
|
+
const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$1Q();
|
|
8973
8973
|
return {
|
|
8974
8974
|
kind: 'Fragment',
|
|
8975
|
-
version: VERSION$
|
|
8975
|
+
version: VERSION$1C,
|
|
8976
8976
|
private: [
|
|
8977
8977
|
'eTag'
|
|
8978
8978
|
],
|
|
@@ -9002,7 +9002,7 @@ const select$1Q = function PicklistValuesRepresentationSelect() {
|
|
|
9002
9002
|
};
|
|
9003
9003
|
};
|
|
9004
9004
|
|
|
9005
|
-
select$
|
|
9005
|
+
select$1P().selections;
|
|
9006
9006
|
|
|
9007
9007
|
var DiscriminatorValues$3;
|
|
9008
9008
|
(function (DiscriminatorValues) {
|
|
@@ -9132,7 +9132,7 @@ function getShallowRecord(luvio, storeRecordId) {
|
|
|
9132
9132
|
*/
|
|
9133
9133
|
function getObjectMetadata(luvio, record) {
|
|
9134
9134
|
const { data: objectInfo } = luvio.storeLookup({
|
|
9135
|
-
recordId: keyBuilder$
|
|
9135
|
+
recordId: keyBuilder$2X(luvio, { apiName: record.apiName }),
|
|
9136
9136
|
node: {
|
|
9137
9137
|
kind: 'Fragment',
|
|
9138
9138
|
private: ['eTag'],
|
|
@@ -9173,7 +9173,7 @@ function getObjectMetadata(luvio, record) {
|
|
|
9173
9173
|
function fixRecordTypes(luvio, record) {
|
|
9174
9174
|
// non-master record types should always be correct
|
|
9175
9175
|
if (record.recordTypeId === MASTER_RECORD_TYPE_ID) {
|
|
9176
|
-
const key = keyBuilder$
|
|
9176
|
+
const key = keyBuilder$3a(luvio, { recordId: record.id });
|
|
9177
9177
|
const recordNode = luvio.getNode(key);
|
|
9178
9178
|
if (isGraphNode(recordNode) &&
|
|
9179
9179
|
recordNode.scalar('recordTypeId') !== MASTER_RECORD_TYPE_ID) {
|
|
@@ -9247,7 +9247,7 @@ class AdsBridge {
|
|
|
9247
9247
|
// Don't let incorrect ADS/RecordGVP recordTypeIds replace a valid record type in our store
|
|
9248
9248
|
// with the master record type. See W-7302870 for details.
|
|
9249
9249
|
fixRecordTypes(luvio, recordCopy);
|
|
9250
|
-
luvio.storeIngest(INGEST_KEY, ingest$
|
|
9250
|
+
luvio.storeIngest(INGEST_KEY, ingest$1S, recordCopy);
|
|
9251
9251
|
}
|
|
9252
9252
|
}
|
|
9253
9253
|
if (didIngestRecord === true) {
|
|
@@ -9260,7 +9260,7 @@ class AdsBridge {
|
|
|
9260
9260
|
*/
|
|
9261
9261
|
evict(recordId) {
|
|
9262
9262
|
const { luvio } = this;
|
|
9263
|
-
const key = keyBuilder$
|
|
9263
|
+
const key = keyBuilder$3a(luvio, { recordId });
|
|
9264
9264
|
return this.lockLdsRecordEmit(() => {
|
|
9265
9265
|
luvio.storeEvict(key);
|
|
9266
9266
|
luvio.storeBroadcast();
|
|
@@ -9275,7 +9275,7 @@ class AdsBridge {
|
|
|
9275
9275
|
*/
|
|
9276
9276
|
getTrackedFieldsForRecord(recordId) {
|
|
9277
9277
|
const { luvio } = this;
|
|
9278
|
-
const storeRecordId = keyBuilder$
|
|
9278
|
+
const storeRecordId = keyBuilder$3a(luvio, { recordId });
|
|
9279
9279
|
const recordNode = luvio.getNode(storeRecordId);
|
|
9280
9280
|
if (!isGraphNode(recordNode)) {
|
|
9281
9281
|
return Promise.resolve([]);
|
package/dist/adsBridge.js
CHANGED