@salesforce/lds-ads-bridge 1.231.0 → 1.233.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 +148 -124
- package/dist/adsBridge.js +1 -1
- package/package.json +1 -1
package/dist/ads-bridge-perf.js
CHANGED
|
@@ -474,7 +474,7 @@ const callbacks$1 = [];
|
|
|
474
474
|
function register(r) {
|
|
475
475
|
callbacks$1.forEach((callback) => callback(r));
|
|
476
476
|
}
|
|
477
|
-
// version: 1.
|
|
477
|
+
// version: 1.233.0-8ab7ef233
|
|
478
478
|
|
|
479
479
|
/**
|
|
480
480
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -5744,8 +5744,8 @@ function toSortedStringArray(value) {
|
|
|
5744
5744
|
return undefined;
|
|
5745
5745
|
}
|
|
5746
5746
|
|
|
5747
|
-
const VERSION$
|
|
5748
|
-
function validate$
|
|
5747
|
+
const VERSION$2l = "d1e589a127fb1060c89070cdb6f500b2";
|
|
5748
|
+
function validate$1D(obj, path = 'RecordTypeInfoRepresentation') {
|
|
5749
5749
|
const v_error = (() => {
|
|
5750
5750
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5751
5751
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5778,10 +5778,10 @@ function validate$1C(obj, path = 'RecordTypeInfoRepresentation') {
|
|
|
5778
5778
|
})();
|
|
5779
5779
|
return v_error === undefined ? null : v_error;
|
|
5780
5780
|
}
|
|
5781
|
-
const select$
|
|
5781
|
+
const select$2T = function RecordTypeInfoRepresentationSelect() {
|
|
5782
5782
|
return {
|
|
5783
5783
|
kind: 'Fragment',
|
|
5784
|
-
version: VERSION$
|
|
5784
|
+
version: VERSION$2l,
|
|
5785
5785
|
private: [],
|
|
5786
5786
|
selections: [
|
|
5787
5787
|
{
|
|
@@ -5807,7 +5807,7 @@ const select$2R = function RecordTypeInfoRepresentationSelect() {
|
|
|
5807
5807
|
]
|
|
5808
5808
|
};
|
|
5809
5809
|
};
|
|
5810
|
-
function equals$
|
|
5810
|
+
function equals$11(existing, incoming) {
|
|
5811
5811
|
const existing_available = existing.available;
|
|
5812
5812
|
const incoming_available = incoming.available;
|
|
5813
5813
|
if (!(existing_available === incoming_available)) {
|
|
@@ -5836,8 +5836,8 @@ function equals$10(existing, incoming) {
|
|
|
5836
5836
|
return true;
|
|
5837
5837
|
}
|
|
5838
5838
|
|
|
5839
|
-
const VERSION$
|
|
5840
|
-
function validate$
|
|
5839
|
+
const VERSION$2k = "195d918987a35f45e1aa4dce9a11d8c5";
|
|
5840
|
+
function validate$1C(obj, path = 'FieldValueRepresentation') {
|
|
5841
5841
|
const v_error = (() => {
|
|
5842
5842
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
5843
5843
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -5928,10 +5928,10 @@ function validate$1B(obj, path = 'FieldValueRepresentation') {
|
|
|
5928
5928
|
return v_error === undefined ? null : v_error;
|
|
5929
5929
|
}
|
|
5930
5930
|
const RepresentationType$V = 'FieldValueRepresentation';
|
|
5931
|
-
const select$
|
|
5931
|
+
const select$2S = function FieldValueRepresentationSelect() {
|
|
5932
5932
|
return {
|
|
5933
5933
|
kind: 'Fragment',
|
|
5934
|
-
version: VERSION$
|
|
5934
|
+
version: VERSION$2k,
|
|
5935
5935
|
private: [],
|
|
5936
5936
|
selections: [
|
|
5937
5937
|
{
|
|
@@ -5942,12 +5942,12 @@ const select$2Q = function FieldValueRepresentationSelect() {
|
|
|
5942
5942
|
name: 'value',
|
|
5943
5943
|
kind: 'Link',
|
|
5944
5944
|
nullable: true,
|
|
5945
|
-
fragment: select$
|
|
5945
|
+
fragment: select$2Q()
|
|
5946
5946
|
}
|
|
5947
5947
|
]
|
|
5948
5948
|
};
|
|
5949
5949
|
};
|
|
5950
|
-
function equals
|
|
5950
|
+
function equals$10(existing, incoming) {
|
|
5951
5951
|
const existing_displayValue = existing.displayValue;
|
|
5952
5952
|
const incoming_displayValue = incoming.displayValue;
|
|
5953
5953
|
if (!(existing_displayValue === incoming_displayValue)) {
|
|
@@ -6005,8 +6005,8 @@ const getTypeCacheKeys$1V = (rootKeySet, luvio, input, _fullPathFactory) => {
|
|
|
6005
6005
|
};
|
|
6006
6006
|
|
|
6007
6007
|
const TTL$C = 120000;
|
|
6008
|
-
const VERSION$
|
|
6009
|
-
function validate$
|
|
6008
|
+
const VERSION$2j = "79cb5ac9f44542f683d00245fdfe500d";
|
|
6009
|
+
function validate$1B(obj, path = 'RecordCollectionRepresentation') {
|
|
6010
6010
|
const v_error = (() => {
|
|
6011
6011
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6012
6012
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6167,13 +6167,13 @@ function validate$1A(obj, path = 'RecordCollectionRepresentation') {
|
|
|
6167
6167
|
return v_error === undefined ? null : v_error;
|
|
6168
6168
|
}
|
|
6169
6169
|
const RepresentationType$U = 'RecordCollectionRepresentation';
|
|
6170
|
-
function normalize$
|
|
6170
|
+
function normalize$N(input, existing, path, luvio, store, timestamp) {
|
|
6171
6171
|
const input_records = input.records;
|
|
6172
6172
|
const input_records_id = path.fullPath + '__records';
|
|
6173
6173
|
for (let i = 0; i < input_records.length; i++) {
|
|
6174
6174
|
const input_records_item = input_records[i];
|
|
6175
6175
|
let input_records_item_id = input_records_id + '__' + i;
|
|
6176
|
-
input_records[i] = ingest$
|
|
6176
|
+
input_records[i] = ingest$1R(input_records_item, {
|
|
6177
6177
|
fullPath: input_records_item_id,
|
|
6178
6178
|
propertyName: i,
|
|
6179
6179
|
parent: {
|
|
@@ -6186,10 +6186,10 @@ function normalize$M(input, existing, path, luvio, store, timestamp) {
|
|
|
6186
6186
|
}
|
|
6187
6187
|
return input;
|
|
6188
6188
|
}
|
|
6189
|
-
const select$
|
|
6189
|
+
const select$2R = function RecordCollectionRepresentationSelect() {
|
|
6190
6190
|
return {
|
|
6191
6191
|
kind: 'Fragment',
|
|
6192
|
-
version: VERSION$
|
|
6192
|
+
version: VERSION$2j,
|
|
6193
6193
|
private: [],
|
|
6194
6194
|
selections: [
|
|
6195
6195
|
{
|
|
@@ -6224,12 +6224,12 @@ const select$2P = function RecordCollectionRepresentationSelect() {
|
|
|
6224
6224
|
name: 'records',
|
|
6225
6225
|
kind: 'Link',
|
|
6226
6226
|
plural: true,
|
|
6227
|
-
fragment: select$
|
|
6227
|
+
fragment: select$2Q()
|
|
6228
6228
|
}
|
|
6229
6229
|
]
|
|
6230
6230
|
};
|
|
6231
6231
|
};
|
|
6232
|
-
function equals
|
|
6232
|
+
function equals$$(existing, incoming) {
|
|
6233
6233
|
const existing_count = existing.count;
|
|
6234
6234
|
const incoming_count = incoming.count;
|
|
6235
6235
|
if (!(existing_count === incoming_count)) {
|
|
@@ -6277,16 +6277,16 @@ function equals$_(existing, incoming) {
|
|
|
6277
6277
|
}
|
|
6278
6278
|
return true;
|
|
6279
6279
|
}
|
|
6280
|
-
const ingest$
|
|
6280
|
+
const ingest$1S = function RecordCollectionRepresentationIngest(input, path, luvio, store, timestamp) {
|
|
6281
6281
|
if (process.env.NODE_ENV !== 'production') {
|
|
6282
|
-
const validateError = validate$
|
|
6282
|
+
const validateError = validate$1B(input);
|
|
6283
6283
|
if (validateError !== null) {
|
|
6284
6284
|
throw validateError;
|
|
6285
6285
|
}
|
|
6286
6286
|
}
|
|
6287
6287
|
const key = path.fullPath;
|
|
6288
6288
|
const ttlToUse = TTL$C;
|
|
6289
|
-
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$
|
|
6289
|
+
ingestShape(input, path, luvio, store, timestamp, ttlToUse, key, normalize$N, "UiApi", VERSION$2j, RepresentationType$U, equals$$);
|
|
6290
6290
|
return createLink$1(key);
|
|
6291
6291
|
};
|
|
6292
6292
|
function getTypeCacheKeys$1U(rootKeySet, luvio, input, fullPathFactory) {
|
|
@@ -6314,8 +6314,8 @@ const keyBuilderFromType$z = function RecordRepresentationKeyBuilderFromType(luv
|
|
|
6314
6314
|
};
|
|
6315
6315
|
|
|
6316
6316
|
const TTL$B = 30000;
|
|
6317
|
-
const VERSION$
|
|
6318
|
-
function validate$
|
|
6317
|
+
const VERSION$2i = "98c5b18512e48ca8d28727549507e4ba";
|
|
6318
|
+
function validate$1A(obj, path = 'RecordRepresentation') {
|
|
6319
6319
|
const v_error = (() => {
|
|
6320
6320
|
if (typeof obj !== 'object' || ArrayIsArray(obj) || obj === null) {
|
|
6321
6321
|
return new TypeError('Expected "object" but received "' + typeof obj + '" (at "' + path + '")');
|
|
@@ -6445,7 +6445,7 @@ function validate$1z(obj, path = 'RecordRepresentation') {
|
|
|
6445
6445
|
const path_recordTypeInfo = path + '.recordTypeInfo';
|
|
6446
6446
|
let obj_recordTypeInfo_union0 = null;
|
|
6447
6447
|
const obj_recordTypeInfo_union0_error = (() => {
|
|
6448
|
-
const referencepath_recordTypeInfoValidationError = validate$
|
|
6448
|
+
const referencepath_recordTypeInfoValidationError = validate$1D(obj_recordTypeInfo, path_recordTypeInfo);
|
|
6449
6449
|
if (referencepath_recordTypeInfoValidationError !== null) {
|
|
6450
6450
|
let message = 'Object doesn\'t match RecordTypeInfoRepresentation (at "' + path_recordTypeInfo + '")\n';
|
|
6451
6451
|
message += referencepath_recordTypeInfoValidationError.message.split('\n').map((line) => '\t' + line).join('\n');
|
|
@@ -6505,14 +6505,14 @@ function validate$1z(obj, path = 'RecordRepresentation') {
|
|
|
6505
6505
|
return v_error === undefined ? null : v_error;
|
|
6506
6506
|
}
|
|
6507
6507
|
const RepresentationType$T = 'RecordRepresentation';
|
|
6508
|
-
function keyBuilder$
|
|
6508
|
+
function keyBuilder$36(luvio, config) {
|
|
6509
6509
|
return keyPrefix + '::' + RepresentationType$T + ':' + config.recordId;
|
|
6510
6510
|
}
|
|
6511
6511
|
function keyBuilderFromType$y(luvio, object) {
|
|
6512
6512
|
const keyParams = {
|
|
6513
6513
|
recordId: object.id
|
|
6514
6514
|
};
|
|
6515
|
-
return keyBuilder$
|
|
6515
|
+
return keyBuilder$36(luvio, keyParams);
|
|
6516
6516
|
}
|
|
6517
6517
|
function dynamicNormalize$5(ingestParams) {
|
|
6518
6518
|
return function normalize_dynamic(input, existing, path, luvio, store, timestamp) {
|
|
@@ -6557,11 +6557,11 @@ function dynamicNormalize$5(ingestParams) {
|
|
|
6557
6557
|
return input;
|
|
6558
6558
|
};
|
|
6559
6559
|
}
|
|
6560
|
-
const select$
|
|
6561
|
-
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$
|
|
6560
|
+
const select$2Q = function RecordRepresentationSelect() {
|
|
6561
|
+
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2T();
|
|
6562
6562
|
return {
|
|
6563
6563
|
kind: 'Fragment',
|
|
6564
|
-
version: VERSION$
|
|
6564
|
+
version: VERSION$2i,
|
|
6565
6565
|
private: [
|
|
6566
6566
|
'eTag',
|
|
6567
6567
|
'weakEtag'
|
|
@@ -6575,13 +6575,13 @@ const select$2O = function RecordRepresentationSelect() {
|
|
|
6575
6575
|
name: 'childRelationships',
|
|
6576
6576
|
kind: 'Link',
|
|
6577
6577
|
map: true,
|
|
6578
|
-
fragment: select$
|
|
6578
|
+
fragment: select$2R()
|
|
6579
6579
|
},
|
|
6580
6580
|
{
|
|
6581
6581
|
name: 'fields',
|
|
6582
6582
|
kind: 'Link',
|
|
6583
6583
|
map: true,
|
|
6584
|
-
fragment: select$
|
|
6584
|
+
fragment: select$2S()
|
|
6585
6585
|
},
|
|
6586
6586
|
{
|
|
6587
6587
|
name: 'id',
|
|
@@ -6617,18 +6617,18 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
|
|
|
6617
6617
|
name: 'childRelationships',
|
|
6618
6618
|
kind: 'Link',
|
|
6619
6619
|
map: true,
|
|
6620
|
-
fragment: select$
|
|
6620
|
+
fragment: select$2R()
|
|
6621
6621
|
} : params.childRelationships;
|
|
6622
6622
|
const fieldsPathSelection = params.fields === undefined ? {
|
|
6623
6623
|
name: 'fields',
|
|
6624
6624
|
kind: 'Link',
|
|
6625
6625
|
map: true,
|
|
6626
|
-
fragment: select$
|
|
6626
|
+
fragment: select$2S()
|
|
6627
6627
|
} : params.fields;
|
|
6628
|
-
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$
|
|
6628
|
+
const { selections: RecordTypeInfoRepresentation__selections, opaque: RecordTypeInfoRepresentation__opaque, } = select$2T();
|
|
6629
6629
|
return {
|
|
6630
6630
|
kind: 'Fragment',
|
|
6631
|
-
version: VERSION$
|
|
6631
|
+
version: VERSION$2i,
|
|
6632
6632
|
private: [
|
|
6633
6633
|
'eTag',
|
|
6634
6634
|
'weakEtag'
|
|
@@ -6669,7 +6669,7 @@ const dynamicSelect$8 = function dynamicRecordRepresentationSelect(params) {
|
|
|
6669
6669
|
]
|
|
6670
6670
|
};
|
|
6671
6671
|
};
|
|
6672
|
-
function equals$
|
|
6672
|
+
function equals$_(existing, incoming) {
|
|
6673
6673
|
const existing_weakEtag = existing.weakEtag;
|
|
6674
6674
|
const incoming_weakEtag = incoming.weakEtag;
|
|
6675
6675
|
if (!(existing_weakEtag === incoming_weakEtag)) {
|
|
@@ -6730,7 +6730,7 @@ function equals$Z(existing, incoming) {
|
|
|
6730
6730
|
if (!(existing_recordTypeInfo === incoming_recordTypeInfo
|
|
6731
6731
|
|| (existing_recordTypeInfo != null &&
|
|
6732
6732
|
incoming_recordTypeInfo != null &&
|
|
6733
|
-
equals$
|
|
6733
|
+
equals$11(existing_recordTypeInfo, incoming_recordTypeInfo)))) {
|
|
6734
6734
|
return false;
|
|
6735
6735
|
}
|
|
6736
6736
|
const existing_systemModstamp = existing.systemModstamp;
|
|
@@ -8107,7 +8107,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
8107
8107
|
kind: 'Fragment',
|
|
8108
8108
|
private: ['eTag', 'weakEtag'],
|
|
8109
8109
|
selections: createRecordSelection(childFieldDefinition),
|
|
8110
|
-
version: VERSION$
|
|
8110
|
+
version: VERSION$2i,
|
|
8111
8111
|
},
|
|
8112
8112
|
};
|
|
8113
8113
|
}
|
|
@@ -8117,7 +8117,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
8117
8117
|
required: childFieldDefinition.optional === true ? false : undefined,
|
|
8118
8118
|
fragment: {
|
|
8119
8119
|
kind: 'Fragment',
|
|
8120
|
-
version: VERSION$
|
|
8120
|
+
version: VERSION$2k,
|
|
8121
8121
|
private: [],
|
|
8122
8122
|
selections: [DISPLAY_VALUE_SELECTION, fieldValueSelection],
|
|
8123
8123
|
},
|
|
@@ -8594,7 +8594,7 @@ function mergeRecordConflict(luvio, incoming, existing, recordConflictMap) {
|
|
|
8594
8594
|
name: existing.apiName,
|
|
8595
8595
|
children: {},
|
|
8596
8596
|
};
|
|
8597
|
-
const recordKey = keyBuilder$
|
|
8597
|
+
const recordKey = keyBuilder$36(luvio, {
|
|
8598
8598
|
recordId: incoming.id,
|
|
8599
8599
|
});
|
|
8600
8600
|
const trackedFieldsConfig = {
|
|
@@ -8739,7 +8739,7 @@ function fixDisplayValue(existing, incoming, path) {
|
|
|
8739
8739
|
}
|
|
8740
8740
|
}
|
|
8741
8741
|
|
|
8742
|
-
function normalize$
|
|
8742
|
+
function normalize$M(input, existing, path, luvio, store, timestamp, fieldsTrie, optionalFieldsTrie, recordConflictMap) {
|
|
8743
8743
|
const input_value = input.value;
|
|
8744
8744
|
const input_value_id = path.fullPath + '__value';
|
|
8745
8745
|
if (input_value !== null && typeof input_value === 'object') {
|
|
@@ -8760,14 +8760,14 @@ function normalize$L(input, existing, path, luvio, store, timestamp, fieldsTrie,
|
|
|
8760
8760
|
function makeIngest(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
|
|
8761
8761
|
return (input, path, luvio, store, timestamp) => {
|
|
8762
8762
|
if (process.env.NODE_ENV !== 'production') {
|
|
8763
|
-
const validateError = validate$
|
|
8763
|
+
const validateError = validate$1C(input);
|
|
8764
8764
|
if (validateError !== null) {
|
|
8765
8765
|
throw validateError;
|
|
8766
8766
|
}
|
|
8767
8767
|
}
|
|
8768
8768
|
const key = path.fullPath;
|
|
8769
8769
|
let existingRecord = store.readEntry(key);
|
|
8770
|
-
let incomingRecord = normalize$
|
|
8770
|
+
let incomingRecord = normalize$M(input, store.readEntry(key), {
|
|
8771
8771
|
fullPath: key,
|
|
8772
8772
|
parent: path.parent,
|
|
8773
8773
|
propertyName: path.propertyName,
|
|
@@ -8775,7 +8775,7 @@ function makeIngest(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
|
|
|
8775
8775
|
// read again after children ingested in case of a circular ref
|
|
8776
8776
|
existingRecord = store.readEntry(key);
|
|
8777
8777
|
incomingRecord = merge$2(existingRecord, incomingRecord, luvio, path);
|
|
8778
|
-
if (existingRecord === undefined || equals
|
|
8778
|
+
if (existingRecord === undefined || equals$10(existingRecord, incomingRecord) === false) {
|
|
8779
8779
|
luvio.storePublish(key, incomingRecord);
|
|
8780
8780
|
}
|
|
8781
8781
|
return createLink$1(key);
|
|
@@ -8845,7 +8845,7 @@ function createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap
|
|
|
8845
8845
|
}
|
|
8846
8846
|
function createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap) {
|
|
8847
8847
|
return dynamicNormalize$5({
|
|
8848
|
-
childRelationships: ingest$
|
|
8848
|
+
childRelationships: ingest$1S,
|
|
8849
8849
|
fields: createFieldsIngestion(fieldsTrie, optionalFieldsTrie, recordConflictMap),
|
|
8850
8850
|
});
|
|
8851
8851
|
}
|
|
@@ -8853,7 +8853,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
|
|
|
8853
8853
|
const childNormalize = createChildRecordNormalize(fieldsTrie, optionalFieldsTrie, recordConflictMap);
|
|
8854
8854
|
return (input, path, luvio, store, timestamp) => {
|
|
8855
8855
|
if (process.env.NODE_ENV !== 'production') {
|
|
8856
|
-
const validateError = validate$
|
|
8856
|
+
const validateError = validate$1A(input);
|
|
8857
8857
|
if (validateError !== null) {
|
|
8858
8858
|
throw validateError;
|
|
8859
8859
|
}
|
|
@@ -8870,7 +8870,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
|
|
|
8870
8870
|
existingRecord = store.readEntry(key);
|
|
8871
8871
|
incomingRecord = merge$3(existingRecord, incomingRecord, luvio, path, recordConflictMap);
|
|
8872
8872
|
if (existingRecord === undefined ||
|
|
8873
|
-
equals$
|
|
8873
|
+
equals$_(existingRecord, incomingRecord) === false ||
|
|
8874
8874
|
// always publish if existing record has drafts
|
|
8875
8875
|
existingRecord.drafts !==
|
|
8876
8876
|
undefined) {
|
|
@@ -8880,7 +8880,7 @@ const createRecordIngest = (fieldsTrie, optionalFieldsTrie, recordConflictMap) =
|
|
|
8880
8880
|
ttl: TTL$B,
|
|
8881
8881
|
representationName: RepresentationType$T,
|
|
8882
8882
|
namespace: keyPrefix,
|
|
8883
|
-
version: VERSION$
|
|
8883
|
+
version: VERSION$2i,
|
|
8884
8884
|
});
|
|
8885
8885
|
return createLink$1(key);
|
|
8886
8886
|
};
|
|
@@ -8976,8 +8976,8 @@ const createResourceRequest$16 = function getUiApiRecordsByRecordIdCreateResourc
|
|
|
8976
8976
|
};
|
|
8977
8977
|
};
|
|
8978
8978
|
|
|
8979
|
-
function keyBuilder$
|
|
8980
|
-
return keyBuilder$
|
|
8979
|
+
function keyBuilder$35(luvio, params) {
|
|
8980
|
+
return keyBuilder$36(luvio, {
|
|
8981
8981
|
recordId: params.urlParams.recordId
|
|
8982
8982
|
});
|
|
8983
8983
|
}
|
|
@@ -8987,7 +8987,7 @@ function getResponseCacheKeys$Z(storeKeyMap, luvio, resourceParams, response) {
|
|
|
8987
8987
|
function createResourceRequest$15(config) {
|
|
8988
8988
|
const headers = {};
|
|
8989
8989
|
return {
|
|
8990
|
-
baseUri: '/services/data/
|
|
8990
|
+
baseUri: '/services/data/v60.0',
|
|
8991
8991
|
basePath: '/ui-api/records/' + config.urlParams.recordId + '',
|
|
8992
8992
|
method: 'get',
|
|
8993
8993
|
body: null,
|
|
@@ -9008,17 +9008,17 @@ const getRecord_ConfigPropertyMetadata = [
|
|
|
9008
9008
|
generateParamConfigMetadata('pageSize', false, 1 /* QueryParameter */, 3 /* Integer */),
|
|
9009
9009
|
generateParamConfigMetadata('updateMru', false, 1 /* QueryParameter */, 1 /* Boolean */),
|
|
9010
9010
|
];
|
|
9011
|
-
const createResourceParams$
|
|
9011
|
+
const createResourceParams$Z = /*#__PURE__*/ createResourceParams(getRecord_ConfigPropertyMetadata);
|
|
9012
9012
|
|
|
9013
9013
|
// used by getUiApiRecordsBatchByRecordIds#selectChildResourceParams
|
|
9014
9014
|
function buildRecordSelector(luvio, recordId, fields, optionalFields) {
|
|
9015
9015
|
return {
|
|
9016
|
-
recordId: keyBuilder$
|
|
9016
|
+
recordId: keyBuilder$36(luvio, { recordId }),
|
|
9017
9017
|
node: {
|
|
9018
9018
|
kind: 'Fragment',
|
|
9019
9019
|
private: ['eTag', 'weakEtag'],
|
|
9020
9020
|
selections: buildSelectionFromFields(fields, optionalFields),
|
|
9021
|
-
version: VERSION$
|
|
9021
|
+
version: VERSION$2i,
|
|
9022
9022
|
},
|
|
9023
9023
|
variables: {},
|
|
9024
9024
|
};
|
|
@@ -9032,13 +9032,13 @@ function buildSnapshotRefresh$5(luvio, config) {
|
|
|
9032
9032
|
function prepareRequest$6(luvio, config) {
|
|
9033
9033
|
const { recordId, fields } = config;
|
|
9034
9034
|
// Should this go into the coersion logic?
|
|
9035
|
-
const key = keyBuilder$
|
|
9035
|
+
const key = keyBuilder$35(luvio, createResourceParams$Z(config));
|
|
9036
9036
|
const allTrackedFields = getTrackedFields(key, luvio.getNode(key), {
|
|
9037
9037
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
|
|
9038
9038
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
9039
9039
|
}, config.optionalFields);
|
|
9040
9040
|
const optionalFields = fields === undefined ? allTrackedFields : difference(allTrackedFields, fields);
|
|
9041
|
-
const resourceParams = createResourceParams$
|
|
9041
|
+
const resourceParams = createResourceParams$Z({
|
|
9042
9042
|
recordId,
|
|
9043
9043
|
fields,
|
|
9044
9044
|
optionalFields: optionalFields.length > 0 ? optionalFields : undefined,
|
|
@@ -9046,7 +9046,7 @@ function prepareRequest$6(luvio, config) {
|
|
|
9046
9046
|
const request = createResourceRequest$16(resourceParams);
|
|
9047
9047
|
return { request, key, allTrackedFields, resourceParams };
|
|
9048
9048
|
}
|
|
9049
|
-
function ingestSuccess$
|
|
9049
|
+
function ingestSuccess$P(luvio, config, key, allTrackedFields, response, serverRequestCount) {
|
|
9050
9050
|
const { body } = response;
|
|
9051
9051
|
const fields = config.fields === undefined ? [] : config.fields;
|
|
9052
9052
|
const optionalFields = config.optionalFields === undefined ? [] : config.optionalFields;
|
|
@@ -9060,16 +9060,16 @@ function ingestSuccess$O(luvio, config, key, allTrackedFields, response, serverR
|
|
|
9060
9060
|
return luvio.storeLookup(buildRecordSelector(luvio, config.recordId, fields, optionalFields), buildSnapshotRefresh$5(luvio, config));
|
|
9061
9061
|
}
|
|
9062
9062
|
function onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount) {
|
|
9063
|
-
const snapshot = ingestSuccess$
|
|
9063
|
+
const snapshot = ingestSuccess$P(luvio, config, key, allTrackedFields, response, serverRequestCount);
|
|
9064
9064
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9065
9065
|
}
|
|
9066
|
-
function ingestError$
|
|
9066
|
+
function ingestError$M(luvio, config, key, err) {
|
|
9067
9067
|
const errorSnapshot = luvio.errorSnapshot(err, buildSnapshotRefresh$5(luvio, config));
|
|
9068
9068
|
luvio.storeIngestError(key, errorSnapshot, RECORD_REPRESENTATION_ERROR_STORE_METADATA_PARAMS);
|
|
9069
9069
|
return errorSnapshot;
|
|
9070
9070
|
}
|
|
9071
9071
|
function onResourceError(luvio, config, key, err) {
|
|
9072
|
-
const errorSnapshot = ingestError$
|
|
9072
|
+
const errorSnapshot = ingestError$M(luvio, config, key, err);
|
|
9073
9073
|
return luvio.storeBroadcast().then(() => errorSnapshot);
|
|
9074
9074
|
}
|
|
9075
9075
|
function buildNetworkSnapshot$11(luvio, config, serverRequestCount = 0, options) {
|
|
@@ -9103,7 +9103,7 @@ function isSingleBatchRecordResponse(response) {
|
|
|
9103
9103
|
response.results.length === 1);
|
|
9104
9104
|
}
|
|
9105
9105
|
|
|
9106
|
-
const VERSION$
|
|
9106
|
+
const VERSION$2h = "98cce53b8d13b1883d001bbdaab24383";
|
|
9107
9107
|
|
|
9108
9108
|
const nonCachedErrors$7 = ObjectCreate$1(null);
|
|
9109
9109
|
function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount = 0) {
|
|
@@ -9113,7 +9113,7 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
|
|
|
9113
9113
|
const now = Date.now();
|
|
9114
9114
|
for (let index = 0, len = childResourceParamsArray.length; index < len; index += 1) {
|
|
9115
9115
|
const childResourceParams = childResourceParamsArray[index];
|
|
9116
|
-
const childKey = keyBuilder$
|
|
9116
|
+
const childKey = keyBuilder$35(luvio, childResourceParams);
|
|
9117
9117
|
const result = childEnvelopes[index];
|
|
9118
9118
|
const { statusCode: childStatusCode, result: childBody } = result;
|
|
9119
9119
|
if (childStatusCode === 200) {
|
|
@@ -9128,7 +9128,7 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
|
|
|
9128
9128
|
maxDepth: configurationForRestAdapters.getTrackedFieldDepthOnCacheMiss(),
|
|
9129
9129
|
onlyFetchLeafNodeIdAndName: configurationForRestAdapters.getTrackedFieldLeafNodeIdAndNameOnly(),
|
|
9130
9130
|
}, childResourceParams.queryParams.optionalFields);
|
|
9131
|
-
const childSnapshot = ingestSuccess$
|
|
9131
|
+
const childSnapshot = ingestSuccess$P(luvio, {
|
|
9132
9132
|
recordId: childResourceParams.urlParams.recordId,
|
|
9133
9133
|
fields: childResourceParams.queryParams.fields,
|
|
9134
9134
|
optionalFields: childResourceParams.queryParams.optionalFields,
|
|
@@ -9154,7 +9154,7 @@ function ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, chi
|
|
|
9154
9154
|
headers: {},
|
|
9155
9155
|
errorType: 'fetchResponse',
|
|
9156
9156
|
};
|
|
9157
|
-
ingestError$
|
|
9157
|
+
ingestError$M(luvio, {
|
|
9158
9158
|
recordId: childResourceParams.urlParams.recordId,
|
|
9159
9159
|
fields: childResourceParams.queryParams.fields,
|
|
9160
9160
|
optionalFields: childResourceParams.queryParams.optionalFields,
|
|
@@ -9200,11 +9200,11 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
|
|
|
9200
9200
|
read: (reader) => {
|
|
9201
9201
|
// Top-level 404 lookup
|
|
9202
9202
|
const compositeSnapshot = luvio.storeLookup({
|
|
9203
|
-
recordId: keyBuilder$
|
|
9203
|
+
recordId: keyBuilder$34(luvio, resourceParams),
|
|
9204
9204
|
node: {
|
|
9205
9205
|
kind: 'Fragment',
|
|
9206
9206
|
private: [],
|
|
9207
|
-
version: VERSION$
|
|
9207
|
+
version: VERSION$2h,
|
|
9208
9208
|
},
|
|
9209
9209
|
variables: {},
|
|
9210
9210
|
});
|
|
@@ -9224,7 +9224,7 @@ function selectChildResourceParams$7(luvio, childResources, resourceParams) {
|
|
|
9224
9224
|
reader.enterPath(i);
|
|
9225
9225
|
reader.enterPath(envelopeBodyPath);
|
|
9226
9226
|
const childResource = childResources[i];
|
|
9227
|
-
const childKey = keyBuilder$
|
|
9227
|
+
const childKey = keyBuilder$35(luvio, childResource);
|
|
9228
9228
|
const isMissingDataBeforeChildRead = reader.getIsDataMissing();
|
|
9229
9229
|
const childSnapshot = reader.read(buildRecordSelector(luvio, childResource.urlParams.recordId, childResource.queryParams.fields || [], childResource.queryParams.optionalFields || []));
|
|
9230
9230
|
reader.exitPath();
|
|
@@ -9324,7 +9324,7 @@ function createChildResourceParams$9(resourceParams) {
|
|
|
9324
9324
|
}
|
|
9325
9325
|
return childConfigs;
|
|
9326
9326
|
}
|
|
9327
|
-
function keyBuilder$
|
|
9327
|
+
function keyBuilder$34(luvio, params) {
|
|
9328
9328
|
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 + ')';
|
|
9329
9329
|
}
|
|
9330
9330
|
function getResponseCacheKeys$Y(keys, luvio, resourceParams, response) {
|
|
@@ -9344,7 +9344,7 @@ function getResponseCacheKeys$Y(keys, luvio, resourceParams, response) {
|
|
|
9344
9344
|
getResponseCacheKeys$Z(keys, luvio, childResourceParams, childBody);
|
|
9345
9345
|
}
|
|
9346
9346
|
else if (childStatusCode === 404) {
|
|
9347
|
-
const childKey = keyBuilder$
|
|
9347
|
+
const childKey = keyBuilder$35(luvio, childResourceParams);
|
|
9348
9348
|
keys.set(childKey, {
|
|
9349
9349
|
namespace: keyPrefix,
|
|
9350
9350
|
representationName: RepresentationType$T,
|
|
@@ -9353,8 +9353,8 @@ function getResponseCacheKeys$Y(keys, luvio, resourceParams, response) {
|
|
|
9353
9353
|
}
|
|
9354
9354
|
}
|
|
9355
9355
|
}
|
|
9356
|
-
function ingestError$
|
|
9357
|
-
const key = keyBuilder$
|
|
9356
|
+
function ingestError$L(luvio, params, error, snapshotRefresh) {
|
|
9357
|
+
const key = keyBuilder$34(luvio, params);
|
|
9358
9358
|
const errorSnapshot = luvio.errorSnapshot(error, snapshotRefresh);
|
|
9359
9359
|
luvio.storeIngestError(key, errorSnapshot);
|
|
9360
9360
|
return errorSnapshot;
|
|
@@ -9362,7 +9362,7 @@ function ingestError$K(luvio, params, error, snapshotRefresh) {
|
|
|
9362
9362
|
function createResourceRequest$14(config) {
|
|
9363
9363
|
const headers = {};
|
|
9364
9364
|
return {
|
|
9365
|
-
baseUri: '/services/data/
|
|
9365
|
+
baseUri: '/services/data/v60.0',
|
|
9366
9366
|
basePath: '/ui-api/records/batch/' + config.urlParams.recordIds + '',
|
|
9367
9367
|
method: 'get',
|
|
9368
9368
|
body: null,
|
|
@@ -9373,7 +9373,7 @@ function createResourceRequest$14(config) {
|
|
|
9373
9373
|
};
|
|
9374
9374
|
}
|
|
9375
9375
|
|
|
9376
|
-
function createResourceParams$
|
|
9376
|
+
function createResourceParams$Y(config) {
|
|
9377
9377
|
const { records: configRecords } = config;
|
|
9378
9378
|
const recordIds = [];
|
|
9379
9379
|
const resourceConfigFields = [];
|
|
@@ -9425,13 +9425,13 @@ function createChildResourceParams$8(config) {
|
|
|
9425
9425
|
return childResources;
|
|
9426
9426
|
}
|
|
9427
9427
|
|
|
9428
|
-
function adapterFragment$
|
|
9428
|
+
function adapterFragment$J(luvio, config) {
|
|
9429
9429
|
const childResources = createChildResourceParams$8(config);
|
|
9430
|
-
const resourceParams = createResourceParams$
|
|
9430
|
+
const resourceParams = createResourceParams$Y(config);
|
|
9431
9431
|
return selectChildResourceParams$7(luvio, childResources, resourceParams);
|
|
9432
9432
|
}
|
|
9433
9433
|
|
|
9434
|
-
function onFetchResponseSuccess$
|
|
9434
|
+
function onFetchResponseSuccess$N(luvio, config, resourceParams, response, serverRequestCount = 0) {
|
|
9435
9435
|
const childEnvelopes = response.body.results;
|
|
9436
9436
|
const childResourceParamsArray = createChildResourceParams$8(config);
|
|
9437
9437
|
if (process.env.NODE_ENV !== 'production') {
|
|
@@ -9443,7 +9443,7 @@ function onFetchResponseSuccess$M(luvio, config, resourceParams, response, serve
|
|
|
9443
9443
|
}
|
|
9444
9444
|
}
|
|
9445
9445
|
const snapshotStateFulfilled = 'Fulfilled';
|
|
9446
|
-
const key = keyBuilder$
|
|
9446
|
+
const key = keyBuilder$34(luvio, resourceParams);
|
|
9447
9447
|
const { childSnapshotData, seenRecords } = ingestSuccessChildResourceParams$6(luvio, childResourceParamsArray, childEnvelopes, serverRequestCount);
|
|
9448
9448
|
const snapshot = {
|
|
9449
9449
|
recordId: key,
|
|
@@ -9452,7 +9452,7 @@ function onFetchResponseSuccess$M(luvio, config, resourceParams, response, serve
|
|
|
9452
9452
|
seenRecords: seenRecords,
|
|
9453
9453
|
select: {
|
|
9454
9454
|
recordId: key,
|
|
9455
|
-
node: adapterFragment$
|
|
9455
|
+
node: adapterFragment$J(luvio, config),
|
|
9456
9456
|
variables: {},
|
|
9457
9457
|
},
|
|
9458
9458
|
refresh: {
|
|
@@ -9464,24 +9464,24 @@ function onFetchResponseSuccess$M(luvio, config, resourceParams, response, serve
|
|
|
9464
9464
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9465
9465
|
}
|
|
9466
9466
|
|
|
9467
|
-
function onFetchResponseError$
|
|
9468
|
-
const snapshot = ingestError$
|
|
9467
|
+
function onFetchResponseError$O(luvio, config, resourceParams, response) {
|
|
9468
|
+
const snapshot = ingestError$L(luvio, resourceParams, response, {
|
|
9469
9469
|
config,
|
|
9470
9470
|
resolve: () => buildNetworkSnapshot$10(luvio, config, 0, snapshotRefreshOptions),
|
|
9471
9471
|
});
|
|
9472
9472
|
return luvio.storeBroadcast().then(() => snapshot);
|
|
9473
9473
|
}
|
|
9474
9474
|
function buildNetworkSnapshot$10(luvio, config, serverRequestCount = 0, options) {
|
|
9475
|
-
const resourceParams = createResourceParams$
|
|
9475
|
+
const resourceParams = createResourceParams$Y(config);
|
|
9476
9476
|
const request = createResourceRequest$14(resourceParams);
|
|
9477
9477
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
9478
|
-
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$
|
|
9478
|
+
return luvio.handleSuccessResponse(() => onFetchResponseSuccess$N(luvio, config, resourceParams, response, serverRequestCount + 1), () => {
|
|
9479
9479
|
const cache = new StoreKeyMap();
|
|
9480
9480
|
getResponseCacheKeys$Y(cache, luvio, resourceParams, response.body);
|
|
9481
9481
|
return cache;
|
|
9482
9482
|
});
|
|
9483
9483
|
}, (response) => {
|
|
9484
|
-
return luvio.handleErrorResponse(() => onFetchResponseError$
|
|
9484
|
+
return luvio.handleErrorResponse(() => onFetchResponseError$O(luvio, config, resourceParams, response));
|
|
9485
9485
|
});
|
|
9486
9486
|
}
|
|
9487
9487
|
|
|
@@ -9513,7 +9513,7 @@ function resolveConflict(luvio, map) {
|
|
|
9513
9513
|
buildNetworkSnapshot$10(luvio, config, map.serverRequestCount);
|
|
9514
9514
|
}
|
|
9515
9515
|
}
|
|
9516
|
-
const ingest$
|
|
9516
|
+
const ingest$1R = (input, path, luvio, store, timestamp) => {
|
|
9517
9517
|
const conflictMap = {
|
|
9518
9518
|
conflicts: {},
|
|
9519
9519
|
serverRequestCount: 0,
|
|
@@ -9524,7 +9524,7 @@ const ingest$1Q = (input, path, luvio, store, timestamp) => {
|
|
|
9524
9524
|
return result;
|
|
9525
9525
|
};
|
|
9526
9526
|
|
|
9527
|
-
const adapterName$
|
|
9527
|
+
const adapterName$T = 'getListUiByApiName';
|
|
9528
9528
|
const getListUiByApiName_ConfigPropertyMetadata = [
|
|
9529
9529
|
generateParamConfigMetadata('listViewApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9530
9530
|
generateParamConfigMetadata('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1),
|
|
@@ -9534,9 +9534,9 @@ const getListUiByApiName_ConfigPropertyMetadata = [
|
|
|
9534
9534
|
generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9535
9535
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
9536
9536
|
];
|
|
9537
|
-
const getListUiByApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9537
|
+
const getListUiByApiName_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$T, getListUiByApiName_ConfigPropertyMetadata);
|
|
9538
9538
|
|
|
9539
|
-
const adapterName$
|
|
9539
|
+
const adapterName$S = 'getListUiByListViewId';
|
|
9540
9540
|
const getListUiByListViewId_ConfigPropertyMetadata = [
|
|
9541
9541
|
generateParamConfigMetadata('listViewId', true, 0 /* UrlParameter */, 0 /* String */),
|
|
9542
9542
|
generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
@@ -9545,9 +9545,9 @@ const getListUiByListViewId_ConfigPropertyMetadata = [
|
|
|
9545
9545
|
generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9546
9546
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
9547
9547
|
];
|
|
9548
|
-
const getListUiByListViewId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9548
|
+
const getListUiByListViewId_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$S, getListUiByListViewId_ConfigPropertyMetadata);
|
|
9549
9549
|
|
|
9550
|
-
const adapterName$
|
|
9550
|
+
const adapterName$Q = 'getMruListUi';
|
|
9551
9551
|
const getMruListUi_ConfigPropertyMetadata = [
|
|
9552
9552
|
generateParamConfigMetadata('objectApiName', true, 0 /* UrlParameter */, 0 /* String */, false, getObjectApiName$1),
|
|
9553
9553
|
generateParamConfigMetadata('fields', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
@@ -9556,7 +9556,7 @@ const getMruListUi_ConfigPropertyMetadata = [
|
|
|
9556
9556
|
generateParamConfigMetadata('pageToken', false, 1 /* QueryParameter */, 0 /* String */),
|
|
9557
9557
|
generateParamConfigMetadata('sortBy', false, 1 /* QueryParameter */, 0 /* String */, true, getFieldApiNamesArray),
|
|
9558
9558
|
];
|
|
9559
|
-
const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$
|
|
9559
|
+
const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig(adapterName$Q, getMruListUi_ConfigPropertyMetadata);
|
|
9560
9560
|
// make local copies of the adapter configs so we can ignore other getListUi config parameters to match
|
|
9561
9561
|
// lds222 behavior
|
|
9562
9562
|
({
|
|
@@ -9591,7 +9591,7 @@ const getMruListUi_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationCon
|
|
|
9591
9591
|
},
|
|
9592
9592
|
});
|
|
9593
9593
|
const RepresentationType$O = 'ObjectInfoRepresentation';
|
|
9594
|
-
function keyBuilder$
|
|
9594
|
+
function keyBuilder$2T(luvio, config) {
|
|
9595
9595
|
return keyPrefix + '::' + RepresentationType$O + ':' + config.apiName;
|
|
9596
9596
|
}
|
|
9597
9597
|
|
|
@@ -9631,12 +9631,33 @@ ObjectCreate$1(null);
|
|
|
9631
9631
|
|
|
9632
9632
|
ObjectCreate$1(null);
|
|
9633
9633
|
|
|
9634
|
-
const VERSION$
|
|
9635
|
-
const select$
|
|
9636
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
9634
|
+
const VERSION$1P = "8d2032474fb4fabdf5cf4042be9042d9";
|
|
9635
|
+
const select$20 = function WorkStepPicklistValueAttributeRepresentationSelect() {
|
|
9636
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1Y();
|
|
9637
9637
|
return {
|
|
9638
9638
|
kind: 'Fragment',
|
|
9639
|
-
version: VERSION$
|
|
9639
|
+
version: VERSION$1P,
|
|
9640
|
+
private: [],
|
|
9641
|
+
selections: [
|
|
9642
|
+
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
9643
|
+
{
|
|
9644
|
+
name: 'sortOrder',
|
|
9645
|
+
kind: 'Scalar'
|
|
9646
|
+
},
|
|
9647
|
+
{
|
|
9648
|
+
name: 'statusCode',
|
|
9649
|
+
kind: 'Scalar'
|
|
9650
|
+
}
|
|
9651
|
+
]
|
|
9652
|
+
};
|
|
9653
|
+
};
|
|
9654
|
+
|
|
9655
|
+
const VERSION$1O = "53893a219bc0888951863f2c44317cac";
|
|
9656
|
+
const select$1$ = function LeadStatusPicklistValueAttributesRepresentationSelect() {
|
|
9657
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1Y();
|
|
9658
|
+
return {
|
|
9659
|
+
kind: 'Fragment',
|
|
9660
|
+
version: VERSION$1O,
|
|
9640
9661
|
private: [],
|
|
9641
9662
|
selections: [
|
|
9642
9663
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -9648,12 +9669,12 @@ const select$1_ = function LeadStatusPicklistValueAttributesRepresentationSelect
|
|
|
9648
9669
|
};
|
|
9649
9670
|
};
|
|
9650
9671
|
|
|
9651
|
-
const VERSION$
|
|
9652
|
-
const select$
|
|
9653
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
9672
|
+
const VERSION$1N = "4818ec07c499784571c1012ead048c88";
|
|
9673
|
+
const select$1_ = function CaseStatusPicklistValueAttributesRepresentationSelect() {
|
|
9674
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1Y();
|
|
9654
9675
|
return {
|
|
9655
9676
|
kind: 'Fragment',
|
|
9656
|
-
version: VERSION$
|
|
9677
|
+
version: VERSION$1N,
|
|
9657
9678
|
private: [],
|
|
9658
9679
|
selections: [
|
|
9659
9680
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -9665,12 +9686,12 @@ const select$1Z = function CaseStatusPicklistValueAttributesRepresentationSelect
|
|
|
9665
9686
|
};
|
|
9666
9687
|
};
|
|
9667
9688
|
|
|
9668
|
-
const VERSION$
|
|
9669
|
-
const select$
|
|
9670
|
-
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$
|
|
9689
|
+
const VERSION$1M = "950a3a962acbd2b128f937d4c055a9d6";
|
|
9690
|
+
const select$1Z = function OpportunityStagePicklistValueAttributesRepresentationSelect() {
|
|
9691
|
+
const { selections: AbstractPicklistValueAttributesRepresentationSelections } = select$1Y();
|
|
9671
9692
|
return {
|
|
9672
9693
|
kind: 'Fragment',
|
|
9673
|
-
version: VERSION$
|
|
9694
|
+
version: VERSION$1M,
|
|
9674
9695
|
private: [],
|
|
9675
9696
|
selections: [
|
|
9676
9697
|
...AbstractPicklistValueAttributesRepresentationSelections,
|
|
@@ -9696,30 +9717,33 @@ const select$1Y = function OpportunityStagePicklistValueAttributesRepresentation
|
|
|
9696
9717
|
|
|
9697
9718
|
var DiscriminatorValues$3;
|
|
9698
9719
|
(function (DiscriminatorValues) {
|
|
9720
|
+
DiscriminatorValues["WorkStepStatus"] = "WorkStepStatus";
|
|
9699
9721
|
DiscriminatorValues["LeadStatus"] = "LeadStatus";
|
|
9700
9722
|
DiscriminatorValues["CaseStatus"] = "CaseStatus";
|
|
9701
9723
|
DiscriminatorValues["OpportunityStage"] = "OpportunityStage";
|
|
9702
9724
|
})(DiscriminatorValues$3 || (DiscriminatorValues$3 = {}));
|
|
9703
|
-
const VERSION$
|
|
9725
|
+
const VERSION$1L = "bd523b2343366edfc25a2dbee2c4e986";
|
|
9704
9726
|
const selectChildren$3 = function AbstractPicklistValueAttributesRepresentationSelectChildren() {
|
|
9705
|
-
const
|
|
9706
|
-
const
|
|
9707
|
-
const
|
|
9727
|
+
const workStepPicklistValueAttributeRepresentationSelections = select$20();
|
|
9728
|
+
const leadStatusPicklistValueAttributesRepresentationSelections = select$1$();
|
|
9729
|
+
const caseStatusPicklistValueAttributesRepresentationSelections = select$1_();
|
|
9730
|
+
const opportunityStagePicklistValueAttributesRepresentationSelections = select$1Z();
|
|
9708
9731
|
return {
|
|
9709
9732
|
kind: 'Fragment',
|
|
9710
9733
|
union: true,
|
|
9711
9734
|
discriminator: 'picklistAtrributesValueType',
|
|
9712
9735
|
unionSelections: {
|
|
9736
|
+
[DiscriminatorValues$3.WorkStepStatus]: workStepPicklistValueAttributeRepresentationSelections,
|
|
9713
9737
|
[DiscriminatorValues$3.LeadStatus]: leadStatusPicklistValueAttributesRepresentationSelections,
|
|
9714
9738
|
[DiscriminatorValues$3.CaseStatus]: caseStatusPicklistValueAttributesRepresentationSelections,
|
|
9715
9739
|
[DiscriminatorValues$3.OpportunityStage]: opportunityStagePicklistValueAttributesRepresentationSelections
|
|
9716
9740
|
}
|
|
9717
9741
|
};
|
|
9718
9742
|
};
|
|
9719
|
-
const select$
|
|
9743
|
+
const select$1Y = function AbstractPicklistValueAttributesRepresentationSelect() {
|
|
9720
9744
|
return {
|
|
9721
9745
|
kind: 'Fragment',
|
|
9722
|
-
version: VERSION$
|
|
9746
|
+
version: VERSION$1L,
|
|
9723
9747
|
private: [],
|
|
9724
9748
|
selections: [
|
|
9725
9749
|
{
|
|
@@ -9730,12 +9754,12 @@ const select$1X = function AbstractPicklistValueAttributesRepresentationSelect()
|
|
|
9730
9754
|
};
|
|
9731
9755
|
};
|
|
9732
9756
|
|
|
9733
|
-
const VERSION$
|
|
9734
|
-
const select$
|
|
9757
|
+
const VERSION$1K = "9e2a16a80378487f557124c771201cf9";
|
|
9758
|
+
const select$1X = function PicklistValueRepresentationSelect() {
|
|
9735
9759
|
const AbstractPicklistValueAttributesRepresentation__unionSelections = selectChildren$3();
|
|
9736
9760
|
return {
|
|
9737
9761
|
kind: 'Fragment',
|
|
9738
|
-
version: VERSION$
|
|
9762
|
+
version: VERSION$1K,
|
|
9739
9763
|
private: [],
|
|
9740
9764
|
selections: [
|
|
9741
9765
|
{
|
|
@@ -9762,12 +9786,12 @@ const select$1W = function PicklistValueRepresentationSelect() {
|
|
|
9762
9786
|
]
|
|
9763
9787
|
};
|
|
9764
9788
|
};
|
|
9765
|
-
const VERSION$
|
|
9766
|
-
const select$
|
|
9767
|
-
const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$
|
|
9789
|
+
const VERSION$1J = "0a361a49370acb4c6a31721a2057649a";
|
|
9790
|
+
const select$1W = function PicklistValuesRepresentationSelect() {
|
|
9791
|
+
const { selections: PicklistValueRepresentation__selections, opaque: PicklistValueRepresentation__opaque, } = select$1X();
|
|
9768
9792
|
return {
|
|
9769
9793
|
kind: 'Fragment',
|
|
9770
|
-
version: VERSION$
|
|
9794
|
+
version: VERSION$1J,
|
|
9771
9795
|
private: [
|
|
9772
9796
|
'eTag'
|
|
9773
9797
|
],
|
|
@@ -9797,7 +9821,7 @@ const select$1V = function PicklistValuesRepresentationSelect() {
|
|
|
9797
9821
|
};
|
|
9798
9822
|
};
|
|
9799
9823
|
|
|
9800
|
-
select$
|
|
9824
|
+
select$1W().selections;
|
|
9801
9825
|
|
|
9802
9826
|
var DiscriminatorValues$2;
|
|
9803
9827
|
(function (DiscriminatorValues) {
|
|
@@ -9920,7 +9944,7 @@ function getShallowRecord(luvio, storeRecordId) {
|
|
|
9920
9944
|
*/
|
|
9921
9945
|
function getObjectMetadata(luvio, record) {
|
|
9922
9946
|
const { data: objectInfo } = luvio.storeLookup({
|
|
9923
|
-
recordId: keyBuilder$
|
|
9947
|
+
recordId: keyBuilder$2T(luvio, { apiName: record.apiName }),
|
|
9924
9948
|
node: {
|
|
9925
9949
|
kind: 'Fragment',
|
|
9926
9950
|
private: ['eTag'],
|
|
@@ -9961,7 +9985,7 @@ function getObjectMetadata(luvio, record) {
|
|
|
9961
9985
|
function fixRecordTypes(luvio, record) {
|
|
9962
9986
|
// non-master record types should always be correct
|
|
9963
9987
|
if (record.recordTypeId === MASTER_RECORD_TYPE_ID) {
|
|
9964
|
-
const key = keyBuilder$
|
|
9988
|
+
const key = keyBuilder$36(luvio, { recordId: record.id });
|
|
9965
9989
|
const recordNode = luvio.getNode(key);
|
|
9966
9990
|
if (isGraphNode(recordNode) &&
|
|
9967
9991
|
recordNode.scalar('recordTypeId') !== MASTER_RECORD_TYPE_ID) {
|
|
@@ -10035,7 +10059,7 @@ class AdsBridge {
|
|
|
10035
10059
|
// Don't let incorrect ADS/RecordGVP recordTypeIds replace a valid record type in our store
|
|
10036
10060
|
// with the master record type. See W-7302870 for details.
|
|
10037
10061
|
fixRecordTypes(luvio, recordCopy);
|
|
10038
|
-
luvio.storeIngest(INGEST_KEY, ingest$
|
|
10062
|
+
luvio.storeIngest(INGEST_KEY, ingest$1R, recordCopy);
|
|
10039
10063
|
}
|
|
10040
10064
|
}
|
|
10041
10065
|
if (didIngestRecord === true) {
|
|
@@ -10048,7 +10072,7 @@ class AdsBridge {
|
|
|
10048
10072
|
*/
|
|
10049
10073
|
evict(recordId) {
|
|
10050
10074
|
const { luvio } = this;
|
|
10051
|
-
const key = keyBuilder$
|
|
10075
|
+
const key = keyBuilder$36(luvio, { recordId });
|
|
10052
10076
|
return this.lockLdsRecordEmit(() => {
|
|
10053
10077
|
luvio.storeEvict(key);
|
|
10054
10078
|
luvio.storeBroadcast();
|
|
@@ -10063,7 +10087,7 @@ class AdsBridge {
|
|
|
10063
10087
|
*/
|
|
10064
10088
|
getTrackedFieldsForRecord(recordId) {
|
|
10065
10089
|
const { luvio } = this;
|
|
10066
|
-
const storeRecordId = keyBuilder$
|
|
10090
|
+
const storeRecordId = keyBuilder$36(luvio, { recordId });
|
|
10067
10091
|
const recordNode = luvio.getNode(storeRecordId);
|
|
10068
10092
|
if (!isGraphNode(recordNode)) {
|
|
10069
10093
|
return Promise.resolve([]);
|
package/dist/adsBridge.js
CHANGED