@salesforce/lds-worker-api 1.340.0 → 1.342.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.
|
@@ -20,7 +20,7 @@ var SnapshotState$3;
|
|
|
20
20
|
SnapshotState["Stale"] = "Stale";
|
|
21
21
|
})(SnapshotState$3 || (SnapshotState$3 = {}));
|
|
22
22
|
|
|
23
|
-
const { create: create$
|
|
23
|
+
const { create: create$9, entries: entries$4, freeze: freeze$5, keys: keys$9, values: values$3, assign: assign$8 } = Object;
|
|
24
24
|
const { hasOwnProperty: hasOwnProperty$4 } = Object.prototype;
|
|
25
25
|
const { isArray: isArray$7 } = Array;
|
|
26
26
|
const { push: push$5, indexOf, slice: slice$2 } = Array.prototype;
|
|
@@ -48,12 +48,12 @@ function deepFreeze(value) {
|
|
|
48
48
|
}
|
|
49
49
|
}
|
|
50
50
|
else {
|
|
51
|
-
const keys$1 = keys$
|
|
51
|
+
const keys$1 = keys$9(value);
|
|
52
52
|
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
53
53
|
deepFreeze(value[keys$1[i]]);
|
|
54
54
|
}
|
|
55
55
|
}
|
|
56
|
-
freeze$
|
|
56
|
+
freeze$5(value);
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
function isErrorSnapshot$3(snapshot) {
|
|
@@ -319,7 +319,7 @@ function stableJSONStringify$3(node) {
|
|
|
319
319
|
if (node === null) {
|
|
320
320
|
return 'null';
|
|
321
321
|
}
|
|
322
|
-
const keys$1 = keys$
|
|
322
|
+
const keys$1 = keys$9(node).sort();
|
|
323
323
|
out = '';
|
|
324
324
|
for (i = 0; i < keys$1.length; i++) {
|
|
325
325
|
const key = keys$1[i];
|
|
@@ -587,13 +587,13 @@ function getTTLOverride$1(ttlOverrideKey, ttlOverrides, defaultTTLOverride) {
|
|
|
587
587
|
class StringKeyInMemoryStore {
|
|
588
588
|
constructor(options = {}) {
|
|
589
589
|
// public, in memory properties
|
|
590
|
-
this.records = create$
|
|
591
|
-
this.metadata = create$
|
|
592
|
-
this.visitedIds = create$
|
|
593
|
-
this.refreshedIds = create$
|
|
594
|
-
this.redirectKeys = create$
|
|
595
|
-
this.retainedIds = create$
|
|
596
|
-
this.ttlOverrides = create$
|
|
590
|
+
this.records = create$9(null);
|
|
591
|
+
this.metadata = create$9(null);
|
|
592
|
+
this.visitedIds = create$9(null);
|
|
593
|
+
this.refreshedIds = create$9(null);
|
|
594
|
+
this.redirectKeys = create$9(null);
|
|
595
|
+
this.retainedIds = create$9(null);
|
|
596
|
+
this.ttlOverrides = create$9(null);
|
|
597
597
|
this.snapshotSubscriptions = [];
|
|
598
598
|
this.trimTask = null;
|
|
599
599
|
this.pendingTrimKeys = new Set();
|
|
@@ -601,8 +601,8 @@ class StringKeyInMemoryStore {
|
|
|
601
601
|
this.watchSubscriptions = [];
|
|
602
602
|
this.eventObservers = [];
|
|
603
603
|
// private/protected
|
|
604
|
-
this.insertedIds = create$
|
|
605
|
-
this.reverseRedirectKeys = create$
|
|
604
|
+
this.insertedIds = create$9(null);
|
|
605
|
+
this.reverseRedirectKeys = create$9(null);
|
|
606
606
|
this.currentSnapshotId = 0;
|
|
607
607
|
this.scheduler = options.scheduler || buildDefaultScheduler();
|
|
608
608
|
if (options.initialData) {
|
|
@@ -615,13 +615,13 @@ class StringKeyInMemoryStore {
|
|
|
615
615
|
return this.records[this.getCanonicalRecordId(key)];
|
|
616
616
|
}
|
|
617
617
|
getNumEntries() {
|
|
618
|
-
return keys$
|
|
618
|
+
return keys$9(this.records).length;
|
|
619
619
|
}
|
|
620
620
|
readMetadata(key) {
|
|
621
621
|
return this.metadata[this.getCanonicalRecordId(key)];
|
|
622
622
|
}
|
|
623
623
|
readMetadataWhere(query) {
|
|
624
|
-
const keys$1 = keys$
|
|
624
|
+
const keys$1 = keys$9(this.metadata);
|
|
625
625
|
const results = [];
|
|
626
626
|
const hasNamespaceQuery = hasOwnProperty$4.call(query, 'namespace');
|
|
627
627
|
const hasRepresentationNameQuery = hasOwnProperty$4.call(query, 'representationName');
|
|
@@ -718,8 +718,8 @@ class StringKeyInMemoryStore {
|
|
|
718
718
|
// Note: we should always get the subscription references from this at the beginning
|
|
719
719
|
// of the function, in case the reference changes (because of an unsubscribe)
|
|
720
720
|
const { snapshotSubscriptions, watchSubscriptions, visitedIds, refreshedIds, insertedIds } = this;
|
|
721
|
-
const allVisitedIds = keys$
|
|
722
|
-
const allRefreshedIds = keys$
|
|
721
|
+
const allVisitedIds = keys$9(visitedIds);
|
|
722
|
+
const allRefreshedIds = keys$9(refreshedIds);
|
|
723
723
|
// Early exit if nothing has changed
|
|
724
724
|
if (allVisitedIds.length === 0 && allRefreshedIds.length === 0) {
|
|
725
725
|
return Promise.resolve();
|
|
@@ -762,9 +762,9 @@ class StringKeyInMemoryStore {
|
|
|
762
762
|
callback(watchCallbackEntries);
|
|
763
763
|
}
|
|
764
764
|
}
|
|
765
|
-
this.visitedIds = create$
|
|
766
|
-
this.refreshedIds = create$
|
|
767
|
-
this.insertedIds = create$
|
|
765
|
+
this.visitedIds = create$9(null);
|
|
766
|
+
this.refreshedIds = create$9(null);
|
|
767
|
+
this.insertedIds = create$9(null);
|
|
768
768
|
// the .then removes the return of an array of voids to a single void
|
|
769
769
|
return Promise.all(snapshotSubPromises).then(() => { });
|
|
770
770
|
}
|
|
@@ -956,18 +956,18 @@ class StringKeyInMemoryStore {
|
|
|
956
956
|
return this.defaultTTLOverride;
|
|
957
957
|
}
|
|
958
958
|
reset() {
|
|
959
|
-
this.records = create$
|
|
959
|
+
this.records = create$9(null);
|
|
960
960
|
this.snapshotSubscriptions = [];
|
|
961
961
|
this.watchSubscriptions = [];
|
|
962
|
-
this.visitedIds = create$
|
|
963
|
-
this.refreshedIds = create$
|
|
964
|
-
this.insertedIds = create$
|
|
965
|
-
this.redirectKeys = create$
|
|
966
|
-
this.reverseRedirectKeys = create$
|
|
967
|
-
this.retainedIds = create$
|
|
968
|
-
this.ttlOverrides = create$
|
|
962
|
+
this.visitedIds = create$9(null);
|
|
963
|
+
this.refreshedIds = create$9(null);
|
|
964
|
+
this.insertedIds = create$9(null);
|
|
965
|
+
this.redirectKeys = create$9(null);
|
|
966
|
+
this.reverseRedirectKeys = create$9(null);
|
|
967
|
+
this.retainedIds = create$9(null);
|
|
968
|
+
this.ttlOverrides = create$9(null);
|
|
969
969
|
this.trimTask = null;
|
|
970
|
-
this.metadata = create$
|
|
970
|
+
this.metadata = create$9(null);
|
|
971
971
|
this.defaultTTLOverride = undefined;
|
|
972
972
|
emitLuvioStoreEvent({ type: 'store-reset', timestamp: Date.now() }, this.eventObservers);
|
|
973
973
|
}
|
|
@@ -1226,7 +1226,7 @@ class StringKeyInMemoryStore {
|
|
|
1226
1226
|
calculateAndSetNewTTLs(storeMetadata, resetInitialDataTtls) {
|
|
1227
1227
|
if (resetInitialDataTtls === true) {
|
|
1228
1228
|
const now = Date.now();
|
|
1229
|
-
keys$
|
|
1229
|
+
keys$9(storeMetadata).forEach((key) => {
|
|
1230
1230
|
const storeMetadataEntry = storeMetadata[key];
|
|
1231
1231
|
const ttl = storeMetadataEntry.expirationTimestamp - storeMetadataEntry.ingestionTimestamp;
|
|
1232
1232
|
storeMetadataEntry.ingestionTimestamp = now;
|
|
@@ -1255,7 +1255,7 @@ function isPendingSnapshotWithNoOverlappingIds(snapshot, visitedIds, refreshedId
|
|
|
1255
1255
|
hasOverlappingIds(snapshot, visitedIds) === false);
|
|
1256
1256
|
}
|
|
1257
1257
|
function getMatchingIds(partialKey, visitedIds) {
|
|
1258
|
-
const keys$1 = keys$
|
|
1258
|
+
const keys$1 = keys$9(partialKey);
|
|
1259
1259
|
return visitedIds.filter((visitedId) => {
|
|
1260
1260
|
return keys$1.every((key) => {
|
|
1261
1261
|
return partialKey[key] === visitedId[key];
|
|
@@ -1911,8 +1911,8 @@ class InMemoryStore {
|
|
|
1911
1911
|
} while (redirectKey !== undefined);
|
|
1912
1912
|
}
|
|
1913
1913
|
isUsingStringKeys() {
|
|
1914
|
-
return (keys$
|
|
1915
|
-
keys$
|
|
1914
|
+
return (keys$9(this.fallbackStringKeyInMemoryStore.visitedIds).length !== 0 ||
|
|
1915
|
+
keys$9(this.fallbackStringKeyInMemoryStore.refreshedIds).length !== 0);
|
|
1916
1916
|
}
|
|
1917
1917
|
delegateToFallbackStringKeyStore(snapshot) {
|
|
1918
1918
|
return !isErrorSnapshot$3(snapshot) && typeof snapshot.recordId === 'string';
|
|
@@ -1954,7 +1954,7 @@ class InMemoryStore {
|
|
|
1954
1954
|
buildKeySchema(keyMetadata) {
|
|
1955
1955
|
// pull NamespacedType type out of NormalizedKeyMetadata
|
|
1956
1956
|
const { namespace: _ns, representationName: _rn, ...keyParamValues } = keyMetadata;
|
|
1957
|
-
const keySchema = keys$
|
|
1957
|
+
const keySchema = keys$9(keyParamValues).sort();
|
|
1958
1958
|
return ['namespace', 'representationName', ...keySchema];
|
|
1959
1959
|
}
|
|
1960
1960
|
serialize() {
|
|
@@ -2248,7 +2248,7 @@ class GraphNode {
|
|
|
2248
2248
|
return value;
|
|
2249
2249
|
}
|
|
2250
2250
|
keys() {
|
|
2251
|
-
return keys$
|
|
2251
|
+
return keys$9(this.data);
|
|
2252
2252
|
}
|
|
2253
2253
|
isScalar(propertyName) {
|
|
2254
2254
|
// TODO W-6900046 - merge.ts casts these to any and manually sets `data`
|
|
@@ -2683,7 +2683,7 @@ class Reader {
|
|
|
2683
2683
|
}
|
|
2684
2684
|
}
|
|
2685
2685
|
selectAllObject(record, data, visitedKeys) {
|
|
2686
|
-
const recordKeys = keys$
|
|
2686
|
+
const recordKeys = keys$9(record);
|
|
2687
2687
|
const { length } = recordKeys;
|
|
2688
2688
|
for (let i = 0; i < length; i += 1) {
|
|
2689
2689
|
const key = recordKeys[i];
|
|
@@ -2878,7 +2878,7 @@ class Reader {
|
|
|
2878
2878
|
}
|
|
2879
2879
|
const { baseSnapshotValue } = this.currentPath;
|
|
2880
2880
|
if (isDefined(baseSnapshotValue)) {
|
|
2881
|
-
this.snapshotChanged = keys$1.length !== keys$
|
|
2881
|
+
this.snapshotChanged = keys$1.length !== keys$9(baseSnapshotValue).length;
|
|
2882
2882
|
}
|
|
2883
2883
|
}
|
|
2884
2884
|
checkIfChanged(value, options) {
|
|
@@ -2922,7 +2922,7 @@ class Reader {
|
|
|
2922
2922
|
return this.markMissing();
|
|
2923
2923
|
}
|
|
2924
2924
|
const sink = (data[propertyName] = {});
|
|
2925
|
-
const keys$1 = keys$
|
|
2925
|
+
const keys$1 = keys$9(obj);
|
|
2926
2926
|
this.checkIfObjectKeysLengthChanged(keys$1);
|
|
2927
2927
|
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
2928
2928
|
const key = keys$1[i];
|
|
@@ -2933,7 +2933,7 @@ class Reader {
|
|
|
2933
2933
|
}
|
|
2934
2934
|
readLinkMap(propertyName, selection, record, data) {
|
|
2935
2935
|
const map = record[propertyName];
|
|
2936
|
-
const keys$1 = keys$
|
|
2936
|
+
const keys$1 = keys$9(map);
|
|
2937
2937
|
const sink = {};
|
|
2938
2938
|
this.checkIfObjectKeysLengthChanged(keys$1);
|
|
2939
2939
|
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
@@ -3067,7 +3067,7 @@ class Reader {
|
|
|
3067
3067
|
return;
|
|
3068
3068
|
}
|
|
3069
3069
|
const sink = (data[propertyName] = {});
|
|
3070
|
-
const keys$1 = keys$
|
|
3070
|
+
const keys$1 = keys$9(obj);
|
|
3071
3071
|
this.checkIfObjectKeysLengthChanged(keys$1);
|
|
3072
3072
|
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
3073
3073
|
const key = keys$1[i];
|
|
@@ -3300,8 +3300,8 @@ class Environment {
|
|
|
3300
3300
|
this.defaultCachePolicy = { type: 'cache-then-network' };
|
|
3301
3301
|
this.store = store;
|
|
3302
3302
|
this.networkAdapter = networkAdapter;
|
|
3303
|
-
this.adapterContextMap = create$
|
|
3304
|
-
this.typeQueryEvaluatorMap = create$
|
|
3303
|
+
this.adapterContextMap = create$9(null);
|
|
3304
|
+
this.typeQueryEvaluatorMap = create$9(null);
|
|
3305
3305
|
// bind these methods so when they get passed into the
|
|
3306
3306
|
// Store, the this reference is preserved
|
|
3307
3307
|
this.createSnapshot = this.createSnapshot.bind(this);
|
|
@@ -3401,7 +3401,7 @@ class Environment {
|
|
|
3401
3401
|
status: StoreErrorStatus$1.RESOURCE_NOT_FOUND,
|
|
3402
3402
|
error,
|
|
3403
3403
|
};
|
|
3404
|
-
freeze$
|
|
3404
|
+
freeze$5(entry);
|
|
3405
3405
|
store.publish(key, entry);
|
|
3406
3406
|
if (storeMetadataParams !== undefined) {
|
|
3407
3407
|
const { ttl, namespace, representationName, version } = storeMetadataParams;
|
|
@@ -3501,7 +3501,7 @@ class Environment {
|
|
|
3501
3501
|
// retrieve from adapterContextMap if contextId is supplied
|
|
3502
3502
|
// we will only track context of adapters that explicitly provide a contextId
|
|
3503
3503
|
if (this.adapterContextMap[contextId] === undefined) {
|
|
3504
|
-
this.adapterContextMap[contextId] = create$
|
|
3504
|
+
this.adapterContextMap[contextId] = create$9(null);
|
|
3505
3505
|
}
|
|
3506
3506
|
const contextStore = this.adapterContextMap[contextId];
|
|
3507
3507
|
const context = {
|
|
@@ -3790,13 +3790,13 @@ class Luvio {
|
|
|
3790
3790
|
// undefined values on the injected networkAdapter. So we do it here, on
|
|
3791
3791
|
// the API that those adapters call to dispatch their ResourceRequests.
|
|
3792
3792
|
const { queryParams, urlParams } = mergedResourceRequest;
|
|
3793
|
-
for (const paramKey of keys$
|
|
3793
|
+
for (const paramKey of keys$9(queryParams)) {
|
|
3794
3794
|
const value = queryParams[paramKey];
|
|
3795
3795
|
if (value === undefined) {
|
|
3796
3796
|
delete queryParams[paramKey];
|
|
3797
3797
|
}
|
|
3798
3798
|
}
|
|
3799
|
-
for (const paramKey of keys$
|
|
3799
|
+
for (const paramKey of keys$9(urlParams)) {
|
|
3800
3800
|
const value = urlParams[paramKey];
|
|
3801
3801
|
if (value === undefined) {
|
|
3802
3802
|
delete urlParams[paramKey];
|
|
@@ -4123,16 +4123,16 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
4123
4123
|
return acc;
|
|
4124
4124
|
}, {});
|
|
4125
4125
|
const resourceParams = {};
|
|
4126
|
-
if (keys$
|
|
4126
|
+
if (keys$9(urlParams).length > 0) {
|
|
4127
4127
|
resourceParams[CONFIG_PROPERTY_URL_PARAMS] = urlParams;
|
|
4128
4128
|
}
|
|
4129
|
-
if (keys$
|
|
4129
|
+
if (keys$9(queryParams).length > 0) {
|
|
4130
4130
|
resourceParams[CONFIG_PROPERTY_QUERY_PARAMS] = queryParams;
|
|
4131
4131
|
}
|
|
4132
4132
|
if (bodyParams.length > 0) {
|
|
4133
4133
|
resourceParams[CONFIG_PROPERTY_BODY] = actualBodyParams;
|
|
4134
4134
|
}
|
|
4135
|
-
if (keys$
|
|
4135
|
+
if (keys$9(headerParams).length > 0) {
|
|
4136
4136
|
resourceParams[CONFIG_PROPERTY_HEADERS] = headerParams;
|
|
4137
4137
|
}
|
|
4138
4138
|
return resourceParams;
|
|
@@ -4265,7 +4265,7 @@ function withDefaultLuvio(callback) {
|
|
|
4265
4265
|
}
|
|
4266
4266
|
callbacks.push(callback);
|
|
4267
4267
|
}
|
|
4268
|
-
// version: 1.
|
|
4268
|
+
// version: 1.342.0-651bed9637
|
|
4269
4269
|
|
|
4270
4270
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4271
4271
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -4874,7 +4874,7 @@ function createLDSAdapter(luvio, name, factory) {
|
|
|
4874
4874
|
return factory(luvio);
|
|
4875
4875
|
}
|
|
4876
4876
|
|
|
4877
|
-
const { create: create$
|
|
4877
|
+
const { create: create$8, defineProperty, defineProperties } = Object;
|
|
4878
4878
|
|
|
4879
4879
|
var SnapshotState$2;
|
|
4880
4880
|
(function (SnapshotState) {
|
|
@@ -5213,7 +5213,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
5213
5213
|
const { apiFamily, name } = metadata;
|
|
5214
5214
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5215
5215
|
}
|
|
5216
|
-
// version: 1.
|
|
5216
|
+
// version: 1.342.0-651bed9637
|
|
5217
5217
|
|
|
5218
5218
|
/**
|
|
5219
5219
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -5316,7 +5316,7 @@ var TypeCheckShapes;
|
|
|
5316
5316
|
|
|
5317
5317
|
const { keys: ObjectKeys$4, create: ObjectCreate$4 } = Object;
|
|
5318
5318
|
|
|
5319
|
-
const { assign: assign$
|
|
5319
|
+
const { assign: assign$7, create: create$7, freeze: freeze$4, isFrozen: isFrozen$4, keys: keys$8 } = Object;
|
|
5320
5320
|
|
|
5321
5321
|
/**
|
|
5322
5322
|
* Defines configuration for the module with a default value which can be overridden by the runtime environment.
|
|
@@ -5383,6 +5383,7 @@ let relatedListsPredictionsEnabled$3 = false;
|
|
|
5383
5383
|
* Determines whether to include additional PDL strategies for Related Lists
|
|
5384
5384
|
*/
|
|
5385
5385
|
let relatedListsPlusPredictionsEnabled$3 = false;
|
|
5386
|
+
let recordRepresentationIngestionOverride$3 = undefined;
|
|
5386
5387
|
/**
|
|
5387
5388
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
5388
5389
|
* Configuration for one store enabled REST adapters only.
|
|
@@ -5488,6 +5489,12 @@ const configurationForEnvironmentFactoryOverrides$3 = {
|
|
|
5488
5489
|
areRelatedListsPlusPredictionsEnabled: function () {
|
|
5489
5490
|
return relatedListsPlusPredictionsEnabled$3 === true;
|
|
5490
5491
|
},
|
|
5492
|
+
setRecordRepresentationIngestionOverride: function (ingest) {
|
|
5493
|
+
recordRepresentationIngestionOverride$3 = ingest;
|
|
5494
|
+
},
|
|
5495
|
+
getRecordRepresentationIngestionOverride: function () {
|
|
5496
|
+
return recordRepresentationIngestionOverride$3;
|
|
5497
|
+
},
|
|
5491
5498
|
// createRecord
|
|
5492
5499
|
getDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$3.getAdapter,
|
|
5493
5500
|
setDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$3.setAdapter,
|
|
@@ -5529,7 +5536,7 @@ ObjectCreate$4(null);
|
|
|
5529
5536
|
|
|
5530
5537
|
ObjectCreate$4(null);
|
|
5531
5538
|
|
|
5532
|
-
freeze$
|
|
5539
|
+
freeze$4({
|
|
5533
5540
|
name: '',
|
|
5534
5541
|
children: {},
|
|
5535
5542
|
});
|
|
@@ -5641,6 +5648,7 @@ let relatedListsPredictionsEnabled$2 = false;
|
|
|
5641
5648
|
* Determines whether to include additional PDL strategies for Related Lists
|
|
5642
5649
|
*/
|
|
5643
5650
|
let relatedListsPlusPredictionsEnabled$2 = false;
|
|
5651
|
+
let recordRepresentationIngestionOverride$2 = undefined;
|
|
5644
5652
|
/**
|
|
5645
5653
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
5646
5654
|
* Configuration for one store enabled REST adapters only.
|
|
@@ -5755,6 +5763,12 @@ const configurationForRestAdapters$2 = {
|
|
|
5755
5763
|
areRelatedListsPlusPredictionsEnabled: function () {
|
|
5756
5764
|
return relatedListsPlusPredictionsEnabled$2 === true;
|
|
5757
5765
|
},
|
|
5766
|
+
setRecordRepresentationIngestionOverride: function (ingest) {
|
|
5767
|
+
recordRepresentationIngestionOverride$2 = ingest;
|
|
5768
|
+
},
|
|
5769
|
+
getRecordRepresentationIngestionOverride: function () {
|
|
5770
|
+
return recordRepresentationIngestionOverride$2;
|
|
5771
|
+
},
|
|
5758
5772
|
// createRecord
|
|
5759
5773
|
getDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$2.getAdapter,
|
|
5760
5774
|
setDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$2.setAdapter,
|
|
@@ -6019,7 +6033,7 @@ function buildAdapterValidationConfig$3(displayName, paramsMeta) {
|
|
|
6019
6033
|
}
|
|
6020
6034
|
const keyPrefix$3 = 'UiApi';
|
|
6021
6035
|
|
|
6022
|
-
const { assign: assign$
|
|
6036
|
+
const { assign: assign$6, create: create$6, freeze: freeze$3, isFrozen: isFrozen$3, keys: keys$7 } = Object;
|
|
6023
6037
|
const { hasOwnProperty: hasOwnProperty$3 } = Object.prototype;
|
|
6024
6038
|
const { split: split$1, endsWith: endsWith$1 } = String.prototype;
|
|
6025
6039
|
const { isArray: isArray$5 } = Array;
|
|
@@ -6048,7 +6062,7 @@ function dedupe$3(value) {
|
|
|
6048
6062
|
for (let i = 0, len = value.length; i < len; i += 1) {
|
|
6049
6063
|
result[value[i]] = true;
|
|
6050
6064
|
}
|
|
6051
|
-
return keys$
|
|
6065
|
+
return keys$7(result);
|
|
6052
6066
|
}
|
|
6053
6067
|
/**
|
|
6054
6068
|
* @param source The array of string to filter
|
|
@@ -6929,14 +6943,14 @@ const getTypeCacheKeys$X$2 = (rootKeySet, luvio, input, _fullPathFactory) => {
|
|
|
6929
6943
|
mergeable: true,
|
|
6930
6944
|
});
|
|
6931
6945
|
const input_childRelationships = input.childRelationships;
|
|
6932
|
-
const input_childRelationships_keys = keys$
|
|
6946
|
+
const input_childRelationships_keys = keys$7(input_childRelationships);
|
|
6933
6947
|
const input_childRelationships_length = input_childRelationships_keys.length;
|
|
6934
6948
|
for (let i = 0; i < input_childRelationships_length; i++) {
|
|
6935
6949
|
const key = input_childRelationships_keys[i];
|
|
6936
6950
|
getTypeCacheKeys$W$2(rootKeySet, luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
|
|
6937
6951
|
}
|
|
6938
6952
|
const input_fields = input.fields;
|
|
6939
|
-
const input_fields_keys = keys$
|
|
6953
|
+
const input_fields_keys = keys$7(input_fields);
|
|
6940
6954
|
const input_fields_length = input_fields_keys.length;
|
|
6941
6955
|
for (let i = 0; i < input_fields_length; i++) {
|
|
6942
6956
|
const key = input_fields_keys[i];
|
|
@@ -8979,7 +8993,7 @@ function convertRecordFieldsArrayToTrie$1(fields, optionalFields = []) {
|
|
|
8979
8993
|
function createPathSelection$1(propertyName, fieldDefinition) {
|
|
8980
8994
|
const fieldsSelection = [];
|
|
8981
8995
|
const { children } = fieldDefinition;
|
|
8982
|
-
const childrenKeys = keys$
|
|
8996
|
+
const childrenKeys = keys$7(children);
|
|
8983
8997
|
for (let i = 0, len = childrenKeys.length; i < len; i += 1) {
|
|
8984
8998
|
const childKey = childrenKeys[i];
|
|
8985
8999
|
const childFieldDefinition = children[childKey];
|
|
@@ -9024,7 +9038,7 @@ function createPathSelection$1(propertyName, fieldDefinition) {
|
|
|
9024
9038
|
*/
|
|
9025
9039
|
function createPathSelectionFromValue$1(fields) {
|
|
9026
9040
|
const fieldsSelection = [];
|
|
9027
|
-
const fieldNames = keys$
|
|
9041
|
+
const fieldNames = keys$7(fields);
|
|
9028
9042
|
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
9029
9043
|
const fieldName = fieldNames[i];
|
|
9030
9044
|
const { value: fieldValue } = fields[fieldName];
|
|
@@ -9063,7 +9077,7 @@ function createPathSelectionFromValue$1(fields) {
|
|
|
9063
9077
|
}
|
|
9064
9078
|
function extractRecordFieldsRecursively$1(record) {
|
|
9065
9079
|
const fields = [];
|
|
9066
|
-
const fieldNames = keys$
|
|
9080
|
+
const fieldNames = keys$7(record.fields);
|
|
9067
9081
|
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
9068
9082
|
const fieldName = fieldNames[i];
|
|
9069
9083
|
const { value: fieldValue } = record.fields[fieldName];
|
|
@@ -9256,7 +9270,7 @@ function extractTrackedFieldsToTrie$1(recordId, node, root, config, visitedRecor
|
|
|
9256
9270
|
// For a spanning record that is detected to be a circular reference, we add the field along with Id and Name.
|
|
9257
9271
|
// It's possible for spanning record lookup fields to sometimes be circular, and sometimes not - depending on the value of the lookup field.
|
|
9258
9272
|
// For more information on scenarios that caused this fix: search "LDS Recursive Spanning Fields Problem" in Quip
|
|
9259
|
-
if (keys$
|
|
9273
|
+
if (keys$7(next.children).length === 0) {
|
|
9260
9274
|
addScalarFieldId$1(next);
|
|
9261
9275
|
addScalarFieldName$1(next);
|
|
9262
9276
|
}
|
|
@@ -9309,13 +9323,13 @@ function isExternalLookupFieldKey$1(spanningNode) {
|
|
|
9309
9323
|
return endsWith$1.call(spanningNode.scalar('apiName'), CUSTOM_EXTERNAL_OBJECT_FIELD_SUFFIX$1);
|
|
9310
9324
|
}
|
|
9311
9325
|
function convertTrieToFields$1(root) {
|
|
9312
|
-
if (keys$
|
|
9326
|
+
if (keys$7(root.children).length === 0) {
|
|
9313
9327
|
return [];
|
|
9314
9328
|
}
|
|
9315
9329
|
return convertTrieToFieldsRecursively$1(root);
|
|
9316
9330
|
}
|
|
9317
9331
|
function convertTrieToFieldsRecursively$1(root) {
|
|
9318
|
-
const childKeys = keys$
|
|
9332
|
+
const childKeys = keys$7(root.children);
|
|
9319
9333
|
if (childKeys.length === 0) {
|
|
9320
9334
|
if (root.name === '') {
|
|
9321
9335
|
return [];
|
|
@@ -9324,7 +9338,7 @@ function convertTrieToFieldsRecursively$1(root) {
|
|
|
9324
9338
|
}
|
|
9325
9339
|
return reduce$3.call(childKeys, (acc, cur) => concat$3.call(acc, convertTrieToFieldsRecursively$1(root.children[cur]).map((i) => `${root.name}.${i}`)), []);
|
|
9326
9340
|
}
|
|
9327
|
-
const BLANK_RECORD_FIELDS_TRIE$1 = freeze$
|
|
9341
|
+
const BLANK_RECORD_FIELDS_TRIE$1 = freeze$3({
|
|
9328
9342
|
name: '',
|
|
9329
9343
|
children: {},
|
|
9330
9344
|
});
|
|
@@ -9354,7 +9368,7 @@ const getObjectNameFromField$1 = (field) => {
|
|
|
9354
9368
|
function mergeFieldsTries$1(rootA, rootB) {
|
|
9355
9369
|
const rootAchildren = rootA.children;
|
|
9356
9370
|
const rootBchildren = rootB.children;
|
|
9357
|
-
const childBKeys = keys$
|
|
9371
|
+
const childBKeys = keys$7(rootBchildren);
|
|
9358
9372
|
for (let i = 0, len = childBKeys.length; i < len; i++) {
|
|
9359
9373
|
const childBKey = childBKeys[i];
|
|
9360
9374
|
if (rootAchildren[childBKey] === undefined) {
|
|
@@ -9514,8 +9528,8 @@ function isSuperRecordFieldTrie$1(a, b) {
|
|
|
9514
9528
|
}
|
|
9515
9529
|
const childrenA = a.children;
|
|
9516
9530
|
const childrenB = b.children;
|
|
9517
|
-
const childKeysA = keys$
|
|
9518
|
-
const childKeysB = keys$
|
|
9531
|
+
const childKeysA = keys$7(childrenA);
|
|
9532
|
+
const childKeysB = keys$7(childrenB);
|
|
9519
9533
|
const childKeysBLength = childKeysB.length;
|
|
9520
9534
|
if (childKeysBLength > childKeysA.length) {
|
|
9521
9535
|
return false;
|
|
@@ -9557,7 +9571,7 @@ function ingestRecordResponse(luvio, response, recordId, recordIngest, conflictM
|
|
|
9557
9571
|
function mergePendingFields$1(newRecord, oldRecord, existingNode) {
|
|
9558
9572
|
const mergedFields = { ...newRecord.fields };
|
|
9559
9573
|
const merged = { ...newRecord, fields: mergedFields };
|
|
9560
|
-
const existingFields = keys$
|
|
9574
|
+
const existingFields = keys$7(oldRecord.fields);
|
|
9561
9575
|
for (let i = 0, len = existingFields.length; i < len; i += 1) {
|
|
9562
9576
|
const spanningFieldName = existingFields[i];
|
|
9563
9577
|
if (newRecord.fields[spanningFieldName] === undefined) {
|
|
@@ -9725,7 +9739,7 @@ function merge$3(existing, incoming, luvio, _path, recordConflictMap) {
|
|
|
9725
9739
|
if (isGraphNode$1(node)) {
|
|
9726
9740
|
const dependencies = node.retrieve();
|
|
9727
9741
|
if (dependencies !== null) {
|
|
9728
|
-
const depKeys = keys$
|
|
9742
|
+
const depKeys = keys$7(dependencies);
|
|
9729
9743
|
for (let i = 0, len = depKeys.length; i < len; i++) {
|
|
9730
9744
|
luvio.storeEvict(depKeys[i]);
|
|
9731
9745
|
}
|
|
@@ -9872,7 +9886,7 @@ function addFieldsToStoreLink(fieldsTrie, optionalFieldsTrie, storeLink) {
|
|
|
9872
9886
|
}
|
|
9873
9887
|
for (let i = 0; i < fieldSubtries.length; i++) {
|
|
9874
9888
|
const subtrie = fieldSubtries[i];
|
|
9875
|
-
const fieldNames = keys$
|
|
9889
|
+
const fieldNames = keys$7(subtrie.children);
|
|
9876
9890
|
for (let i = 0; i < fieldNames.length; i++) {
|
|
9877
9891
|
const fieldName = fieldNames[i];
|
|
9878
9892
|
const childTrie = subtrie.children[fieldName];
|
|
@@ -9986,9 +10000,9 @@ function fulfill$1(existing, incoming) {
|
|
|
9986
10000
|
return false;
|
|
9987
10001
|
}
|
|
9988
10002
|
}
|
|
9989
|
-
const headersKeys = keys$
|
|
10003
|
+
const headersKeys = keys$7(headers);
|
|
9990
10004
|
const headersKeyLength = headersKeys.length;
|
|
9991
|
-
if (headersKeyLength !== keys$
|
|
10005
|
+
if (headersKeyLength !== keys$7(existingHeaders).length) {
|
|
9992
10006
|
return false;
|
|
9993
10007
|
}
|
|
9994
10008
|
for (let i = 0, len = headersKeyLength; i < len; i++) {
|
|
@@ -10596,7 +10610,7 @@ function buildNetworkSnapshot$15(luvio, config, serverRequestCount = 0, options)
|
|
|
10596
10610
|
|
|
10597
10611
|
// iterate through the map to build configs for network calls
|
|
10598
10612
|
function resolveConflict$1(luvio, map) {
|
|
10599
|
-
const ids = keys$
|
|
10613
|
+
const ids = keys$7(map.conflicts);
|
|
10600
10614
|
if (ids.length === 0) {
|
|
10601
10615
|
instrumentation$3.recordConflictsResolved(map.serverRequestCount);
|
|
10602
10616
|
return;
|
|
@@ -12045,18 +12059,18 @@ function listFields$1(luvio, { fields = [], optionalFields = [], sortBy, }, list
|
|
|
12045
12059
|
return {
|
|
12046
12060
|
getRecordSelectionFieldSets() {
|
|
12047
12061
|
const optionalPlusDefaultFields = { ...optionalFields_ };
|
|
12048
|
-
const fields = keys$
|
|
12062
|
+
const fields = keys$7(defaultFields_);
|
|
12049
12063
|
for (let i = 0; i < fields.length; ++i) {
|
|
12050
12064
|
const field = fields[i];
|
|
12051
12065
|
if (!fields_[field] && !defaultServerFieldStatus.missingFields[field]) {
|
|
12052
12066
|
optionalPlusDefaultFields[field] = true;
|
|
12053
12067
|
}
|
|
12054
12068
|
}
|
|
12055
|
-
return [keys$
|
|
12069
|
+
return [keys$7(fields_).sort(), keys$7(optionalPlusDefaultFields).sort()];
|
|
12056
12070
|
},
|
|
12057
12071
|
processRecords(records) {
|
|
12058
12072
|
const { missingFields } = defaultServerFieldStatus;
|
|
12059
|
-
const fields = keys$
|
|
12073
|
+
const fields = keys$7(missingFields);
|
|
12060
12074
|
for (let i = 0; i < fields.length; ++i) {
|
|
12061
12075
|
const field = fields[i], splitField = field.split('.').slice(1);
|
|
12062
12076
|
for (let i = 0; i < records.length; ++i) {
|
|
@@ -14536,7 +14550,7 @@ function getMissingRecordLookupFields$1(record, objectInfo) {
|
|
|
14536
14550
|
const lookupFields = {};
|
|
14537
14551
|
const { apiName, fields: recordFields } = record;
|
|
14538
14552
|
const { fields: objectInfoFields } = objectInfo;
|
|
14539
|
-
const objectInfoFieldNames = keys$
|
|
14553
|
+
const objectInfoFieldNames = keys$7(objectInfoFields);
|
|
14540
14554
|
for (let i = 0, len = objectInfoFieldNames.length; i < len; i += 1) {
|
|
14541
14555
|
const fieldName = objectInfoFieldNames[i];
|
|
14542
14556
|
const field = objectInfoFields[fieldName];
|
|
@@ -14555,12 +14569,12 @@ function getMissingRecordLookupFields$1(record, objectInfo) {
|
|
|
14555
14569
|
const nameField = `${apiName}.${relationshipName}.${getNameField$1(objectInfo, fieldName)}`;
|
|
14556
14570
|
lookupFields[nameField] = true;
|
|
14557
14571
|
}
|
|
14558
|
-
return keys$
|
|
14572
|
+
return keys$7(lookupFields);
|
|
14559
14573
|
}
|
|
14560
14574
|
function getRecordUiMissingRecordLookupFields$1(recordUi) {
|
|
14561
14575
|
const { records, objectInfos } = recordUi;
|
|
14562
14576
|
const recordLookupFields = {};
|
|
14563
|
-
const recordIds = keys$
|
|
14577
|
+
const recordIds = keys$7(records);
|
|
14564
14578
|
for (let i = 0, len = recordIds.length; i < len; i += 1) {
|
|
14565
14579
|
const recordId = recordIds[i];
|
|
14566
14580
|
const recordData = records[recordId];
|
|
@@ -14598,19 +14612,19 @@ function buildCachedSelectorKey$1(key) {
|
|
|
14598
14612
|
}
|
|
14599
14613
|
function eachLayout$1(recordUi, cb) {
|
|
14600
14614
|
const { layouts } = recordUi;
|
|
14601
|
-
const layoutApiNames = keys$
|
|
14615
|
+
const layoutApiNames = keys$7(layouts);
|
|
14602
14616
|
for (let a = 0, len = layoutApiNames.length; a < len; a += 1) {
|
|
14603
14617
|
const apiName = layoutApiNames[a];
|
|
14604
14618
|
const apiNameData = layouts[apiName];
|
|
14605
|
-
const recordTypeIds = keys$
|
|
14619
|
+
const recordTypeIds = keys$7(apiNameData);
|
|
14606
14620
|
for (let b = 0, recordTypeIdsLen = recordTypeIds.length; b < recordTypeIdsLen; b += 1) {
|
|
14607
14621
|
const recordTypeId = recordTypeIds[b];
|
|
14608
14622
|
const recordTypeData = apiNameData[recordTypeId];
|
|
14609
|
-
const layoutTypes = keys$
|
|
14623
|
+
const layoutTypes = keys$7(recordTypeData);
|
|
14610
14624
|
for (let c = 0, layoutTypesLen = layoutTypes.length; c < layoutTypesLen; c += 1) {
|
|
14611
14625
|
const layoutType = layoutTypes[c];
|
|
14612
14626
|
const layoutTypeData = recordTypeData[layoutType];
|
|
14613
|
-
const modes = keys$
|
|
14627
|
+
const modes = keys$7(layoutTypeData);
|
|
14614
14628
|
for (let d = 0, modesLen = modes.length; d < modesLen; d += 1) {
|
|
14615
14629
|
const mode = modes[d];
|
|
14616
14630
|
const layout = layoutTypeData[mode];
|
|
@@ -14816,14 +14830,14 @@ function buildNetworkSnapshot$12(luvio, config, dispatchContext) {
|
|
|
14816
14830
|
function publishDependencies$1(luvio, recordIds, depKeys) {
|
|
14817
14831
|
for (let i = 0, len = recordIds.length; i < len; i += 1) {
|
|
14818
14832
|
const recordDepKey = dependencyKeyBuilder$1({ recordId: recordIds[i] });
|
|
14819
|
-
const dependencies = create$
|
|
14833
|
+
const dependencies = create$6(null);
|
|
14820
14834
|
for (let j = 0, len = depKeys.length; j < len; j++) {
|
|
14821
14835
|
dependencies[depKeys[j]] = true;
|
|
14822
14836
|
}
|
|
14823
14837
|
const node = luvio.getNode(recordDepKey);
|
|
14824
14838
|
if (isGraphNode$1(node)) {
|
|
14825
14839
|
const recordDeps = node.retrieve();
|
|
14826
|
-
assign$
|
|
14840
|
+
assign$6(dependencies, recordDeps);
|
|
14827
14841
|
}
|
|
14828
14842
|
luvio.storePublish(recordDepKey, dependencies);
|
|
14829
14843
|
}
|
|
@@ -15010,11 +15024,11 @@ const recordLayoutFragmentSelector$1 = [
|
|
|
15010
15024
|
function getFieldsFromLayoutMap$1(layoutMap, objectInfo) {
|
|
15011
15025
|
let fields = [];
|
|
15012
15026
|
let optionalFields = [];
|
|
15013
|
-
const layoutTypes = keys$
|
|
15027
|
+
const layoutTypes = keys$7(layoutMap);
|
|
15014
15028
|
for (let i = 0, layoutTypesLen = layoutTypes.length; i < layoutTypesLen; i += 1) {
|
|
15015
15029
|
const layoutType = layoutTypes[i];
|
|
15016
15030
|
const modesMap = layoutMap[layoutType];
|
|
15017
|
-
const modes = keys$
|
|
15031
|
+
const modes = keys$7(modesMap);
|
|
15018
15032
|
for (let m = 0, modesLen = modes.length; m < modesLen; m += 1) {
|
|
15019
15033
|
const mode = modes[m];
|
|
15020
15034
|
const { fields: modeFields, optionalFields: modeOptionalFields } = getQualifiedFieldApiNamesFromLayout$1(modesMap[mode], objectInfo);
|
|
@@ -15051,7 +15065,7 @@ function getRecordForLayoutableEntities$1(luvio, refresh, recordId, layoutMap, o
|
|
|
15051
15065
|
return getRecord$1(luvio, refresh, recordId, [], implicitFields);
|
|
15052
15066
|
}
|
|
15053
15067
|
function getRecordForNonLayoutableEntities$1(luvio, adapterContext, refresh, recordId, objectInfo, configOptionalFields, configFields) {
|
|
15054
|
-
const fields = keys$
|
|
15068
|
+
const fields = keys$7(configFields ? configFields : {}).map((key) => `${objectInfo.apiName}.${key}`);
|
|
15055
15069
|
// W-12697744
|
|
15056
15070
|
// Set the implicit fields received from the server in adapter context
|
|
15057
15071
|
// This ensures that the implicit fields are available when data is read locally or from durable store
|
|
@@ -15290,7 +15304,7 @@ function makeRecordLayoutMap$1(luvio, config, apiName, recordTypeId, layoutTypes
|
|
|
15290
15304
|
}
|
|
15291
15305
|
const { layoutType, mode, snapshot } = container;
|
|
15292
15306
|
if (wrapper.layoutMap[layoutType] === undefined) {
|
|
15293
|
-
wrapper.layoutMap = assign$
|
|
15307
|
+
wrapper.layoutMap = assign$6({}, wrapper.layoutMap, {
|
|
15294
15308
|
[layoutType]: {},
|
|
15295
15309
|
});
|
|
15296
15310
|
}
|
|
@@ -25231,7 +25245,7 @@ function typeCheckConfig$s(untrustedConfig) {
|
|
|
25231
25245
|
}
|
|
25232
25246
|
}
|
|
25233
25247
|
if (records.length > 0) {
|
|
25234
|
-
assign$
|
|
25248
|
+
assign$6(config, { records });
|
|
25235
25249
|
}
|
|
25236
25250
|
}
|
|
25237
25251
|
return config;
|
|
@@ -30285,7 +30299,7 @@ function optimisticUpdate(cachedLayoutUserState, layoutUserStateInput) {
|
|
|
30285
30299
|
let clonedLayoutUserStateSections;
|
|
30286
30300
|
const { sectionUserStates } = layoutUserStateInput;
|
|
30287
30301
|
const { sectionUserStates: cachedSectionUserStates } = cachedLayoutUserState;
|
|
30288
|
-
const sectionUserStateKeys = keys$
|
|
30302
|
+
const sectionUserStateKeys = keys$7(sectionUserStates);
|
|
30289
30303
|
for (let i = 0, len = sectionUserStateKeys.length; i < len; i += 1) {
|
|
30290
30304
|
const sectionId = sectionUserStateKeys[i];
|
|
30291
30305
|
if (cachedSectionUserStates[sectionId] === undefined) {
|
|
@@ -33563,7 +33577,7 @@ function bindExportsTo$1(luvio) {
|
|
|
33563
33577
|
const getRecordTemplateCreate_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordTemplateCreate', configurationForEnvironmentFactoryOverrides$2.getRecordTemplateCreateAdapterFactory() ?? factory$5$1), getRecordTemplateCreateMetadata);
|
|
33564
33578
|
const getRecordUi_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordUi', configurationForEnvironmentFactoryOverrides$2.getRecordUiAdapterFactory() ?? factory$g), getRecordUiMetadata);
|
|
33565
33579
|
const getRecords_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRecords', configurationForEnvironmentFactoryOverrides$2.getRecordsAdapterFactory() ?? getRecordsAdapterFactory$1), luvio, 'getRecords'), getRecordsMetadata);
|
|
33566
|
-
const getRelatedListActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListActions', getRelatedListActionsAdapterFactory), getRelatedListActionsMetadata);
|
|
33580
|
+
const getRelatedListActions_ldsAdapter = createInstrumentedAdapter(createRelatedListPlusAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListActions', getRelatedListActionsAdapterFactory), luvio, 'getRelatedListActions'), getRelatedListActionsMetadata);
|
|
33567
33581
|
const getRelatedListCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListCount', getRelatedListCountAdapterFactory), getRelatedListCountMetadata);
|
|
33568
33582
|
const getRelatedListInfo_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListInfo', getRelatedListInfoAdapterFactory), luvio, 'getRelatedListInfo'), getRelatedListInfoMetadata);
|
|
33569
33583
|
const getRelatedListInfoBatch_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListInfoBatch', getRelatedListInfoBatchAdapterFactory), luvio, 'getRelatedListInfoBatch'), getRelatedListInfoBatchMetadata);
|
|
@@ -33880,16 +33894,7 @@ withDefaultLuvio((luvio) => {
|
|
|
33880
33894
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
33881
33895
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
33882
33896
|
});
|
|
33883
|
-
// version: 1.
|
|
33884
|
-
|
|
33885
|
-
var graphqlRecordTypeIdFixGate = {
|
|
33886
|
-
isOpen: function (e) {
|
|
33887
|
-
return e.fallback;
|
|
33888
|
-
},
|
|
33889
|
-
hasError: function () {
|
|
33890
|
-
return !0;
|
|
33891
|
-
},
|
|
33892
|
-
};
|
|
33897
|
+
// version: 1.342.0-f478af8b93
|
|
33893
33898
|
|
|
33894
33899
|
/**
|
|
33895
33900
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -45496,7 +45501,7 @@ var graphqlL2AdapterGate = {
|
|
|
45496
45501
|
const { parse: parse$4, stringify: stringify$4 } = JSON;
|
|
45497
45502
|
const { join: join$1, push: push$2, unshift } = Array.prototype;
|
|
45498
45503
|
const { isArray: isArray$3$1 } = Array;
|
|
45499
|
-
const { entries: entries$
|
|
45504
|
+
const { entries: entries$3, keys: keys$5 } = Object;
|
|
45500
45505
|
|
|
45501
45506
|
const UI_API_BASE_URI = '/services/data/v64.0/ui-api';
|
|
45502
45507
|
|
|
@@ -45561,7 +45566,7 @@ function isSpanningRecord$2(fieldValue) {
|
|
|
45561
45566
|
function mergeRecordFields$2(first, second) {
|
|
45562
45567
|
const { fields: targetFields } = first;
|
|
45563
45568
|
const { fields: sourceFields } = second;
|
|
45564
|
-
const fieldNames = keys$
|
|
45569
|
+
const fieldNames = keys$5(sourceFields);
|
|
45565
45570
|
for (let i = 0, len = fieldNames.length; i < len; i += 1) {
|
|
45566
45571
|
const fieldName = fieldNames[i];
|
|
45567
45572
|
const sourceField = sourceFields[fieldName];
|
|
@@ -45803,7 +45808,7 @@ function getFulfillingRequest(inflightRequests, resourceRequest) {
|
|
|
45803
45808
|
if (fulfill === undefined) {
|
|
45804
45809
|
return null;
|
|
45805
45810
|
}
|
|
45806
|
-
const handlersMap = entries$
|
|
45811
|
+
const handlersMap = entries$3(inflightRequests);
|
|
45807
45812
|
for (let i = 0, len = handlersMap.length; i < len; i += 1) {
|
|
45808
45813
|
const [transactionKey, handlers] = handlersMap[i];
|
|
45809
45814
|
// check fulfillment against only the first handler ([0]) because it's equal or
|
|
@@ -45968,7 +45973,7 @@ const RedirectDurableSegment = 'REDIRECT_KEYS';
|
|
|
45968
45973
|
const MessagingDurableSegment = 'MESSAGING';
|
|
45969
45974
|
const MessageNotifyStoreUpdateAvailable = 'notifyStoreUpdateAvailable';
|
|
45970
45975
|
|
|
45971
|
-
const { keys: keys$
|
|
45976
|
+
const { keys: keys$4, create: create$4, assign: assign$4, freeze: freeze$1$1 } = Object;
|
|
45972
45977
|
|
|
45973
45978
|
//Durable store error instrumentation key
|
|
45974
45979
|
const DURABLE_STORE_ERROR = 'durable-store-error';
|
|
@@ -46015,7 +46020,7 @@ function publishDurableStoreEntries(durableRecords, put, publishMetadata) {
|
|
|
46015
46020
|
if (durableRecords === undefined) {
|
|
46016
46021
|
return { revivedKeys, hadUnexpectedShape };
|
|
46017
46022
|
}
|
|
46018
|
-
const durableKeys = keys$
|
|
46023
|
+
const durableKeys = keys$4(durableRecords);
|
|
46019
46024
|
if (durableKeys.length === 0) {
|
|
46020
46025
|
// no records to revive
|
|
46021
46026
|
return { revivedKeys, hadUnexpectedShape };
|
|
@@ -46200,7 +46205,7 @@ class DurableTTLStore {
|
|
|
46200
46205
|
overrides,
|
|
46201
46206
|
};
|
|
46202
46207
|
}
|
|
46203
|
-
const keys$1 = keys$
|
|
46208
|
+
const keys$1 = keys$4(entries);
|
|
46204
46209
|
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
46205
46210
|
const key = keys$1[i];
|
|
46206
46211
|
const entry = entries[key];
|
|
@@ -46222,14 +46227,14 @@ class DurableTTLStore {
|
|
|
46222
46227
|
}
|
|
46223
46228
|
|
|
46224
46229
|
function flushInMemoryStoreValuesToDurableStore(store, durableStore, durableStoreErrorHandler, redirects, shouldFlush, additionalDurableStoreOperations = [], enableDurableMetadataRefresh = false) {
|
|
46225
|
-
const durableRecords = create$
|
|
46226
|
-
const refreshedDurableRecords = create$
|
|
46227
|
-
const evictedRecords = create$
|
|
46230
|
+
const durableRecords = create$4(null);
|
|
46231
|
+
const refreshedDurableRecords = create$4(null);
|
|
46232
|
+
const evictedRecords = create$4(null);
|
|
46228
46233
|
const { visitedIds, refreshedIds } = store.fallbackStringKeyInMemoryStore;
|
|
46229
46234
|
// TODO: W-8909393 Once metadata is stored in its own segment we need to
|
|
46230
46235
|
// call setEntries for the visitedIds on default segment and call setEntries
|
|
46231
46236
|
// on the metadata segment for the refreshedIds
|
|
46232
|
-
const keys$1 = keys$
|
|
46237
|
+
const keys$1 = keys$4({ ...visitedIds, ...refreshedIds });
|
|
46233
46238
|
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
46234
46239
|
const key = keys$1[i];
|
|
46235
46240
|
const canonicalKey = store.getCanonicalRecordId(key);
|
|
@@ -46261,7 +46266,7 @@ function flushInMemoryStoreValuesToDurableStore(store, durableStore, durableStor
|
|
|
46261
46266
|
}
|
|
46262
46267
|
}
|
|
46263
46268
|
const durableStoreOperations = additionalDurableStoreOperations;
|
|
46264
|
-
const recordKeys = keys$
|
|
46269
|
+
const recordKeys = keys$4(durableRecords);
|
|
46265
46270
|
if (recordKeys.length > 0) {
|
|
46266
46271
|
// publishes with data
|
|
46267
46272
|
durableStoreOperations.push({
|
|
@@ -46270,7 +46275,7 @@ function flushInMemoryStoreValuesToDurableStore(store, durableStore, durableStor
|
|
|
46270
46275
|
segment: DefaultDurableSegment,
|
|
46271
46276
|
});
|
|
46272
46277
|
}
|
|
46273
|
-
const refreshKeys = keys$
|
|
46278
|
+
const refreshKeys = keys$4(refreshedDurableRecords);
|
|
46274
46279
|
if (refreshKeys.length > 0) {
|
|
46275
46280
|
// publishes with only metadata updates
|
|
46276
46281
|
durableStoreOperations.push({
|
|
@@ -46292,7 +46297,7 @@ function flushInMemoryStoreValuesToDurableStore(store, durableStore, durableStor
|
|
|
46292
46297
|
});
|
|
46293
46298
|
});
|
|
46294
46299
|
// evicts
|
|
46295
|
-
const evictedKeys = keys$
|
|
46300
|
+
const evictedKeys = keys$4(evictedRecords);
|
|
46296
46301
|
if (evictedKeys.length > 0) {
|
|
46297
46302
|
durableStoreOperations.push({
|
|
46298
46303
|
type: 'evictEntries',
|
|
@@ -46396,7 +46401,7 @@ function buildRevivingStagingStore(upstreamStore) {
|
|
|
46396
46401
|
// A reviving store is only "active" during a call to `environment.storeLookup`, and will
|
|
46397
46402
|
// be used by the reader attempting to build an L1 snapshot. Immediately after the L1 rebuild
|
|
46398
46403
|
// the reviving store becomes inactive other than receiving change notifications.
|
|
46399
|
-
return create$
|
|
46404
|
+
return create$4(upstreamStore, {
|
|
46400
46405
|
readEntry: { value: readEntry },
|
|
46401
46406
|
markStale: { value: markStale },
|
|
46402
46407
|
clearStale: { value: clearStale },
|
|
@@ -46408,7 +46413,7 @@ const AdapterContextSegment = 'ADAPTER-CONTEXT';
|
|
|
46408
46413
|
const ADAPTER_CONTEXT_ID_SUFFIX = '__NAMED_CONTEXT';
|
|
46409
46414
|
async function reviveOrCreateContext(adapterId, durableStore, durableStoreErrorHandler, contextStores, pendingContextStoreKeys, onContextLoaded) {
|
|
46410
46415
|
// initialize empty context store
|
|
46411
|
-
contextStores[adapterId] = create$
|
|
46416
|
+
contextStores[adapterId] = create$4(null);
|
|
46412
46417
|
const context = {
|
|
46413
46418
|
set(key, value) {
|
|
46414
46419
|
contextStores[adapterId][key] = value;
|
|
@@ -46473,7 +46478,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
46473
46478
|
const revivingStores = new Set();
|
|
46474
46479
|
// redirects that need to be flushed to the durable store
|
|
46475
46480
|
const pendingStoreRedirects = new Map();
|
|
46476
|
-
const contextStores = create$
|
|
46481
|
+
const contextStores = create$4(null);
|
|
46477
46482
|
let initializationPromise = new Promise((resolve) => {
|
|
46478
46483
|
const finish = () => {
|
|
46479
46484
|
resolve();
|
|
@@ -46550,7 +46555,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
46550
46555
|
try {
|
|
46551
46556
|
const entries = await durableStore.getEntries(adapterContextKeysFromDifferentInstance, AdapterContextSegment);
|
|
46552
46557
|
if (entries !== undefined) {
|
|
46553
|
-
const entryKeys = keys$
|
|
46558
|
+
const entryKeys = keys$4(entries);
|
|
46554
46559
|
for (let i = 0, len = entryKeys.length; i < len; i++) {
|
|
46555
46560
|
const entryKey = entryKeys[i];
|
|
46556
46561
|
const entry = entries[entryKey];
|
|
@@ -46585,7 +46590,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
46585
46590
|
if (filteredKeys.length > 0) {
|
|
46586
46591
|
const entries = await durableStore.getMetadata(filteredKeys, DefaultDurableSegment);
|
|
46587
46592
|
if (entries !== undefined) {
|
|
46588
|
-
const entryKeys = keys$
|
|
46593
|
+
const entryKeys = keys$4(entries);
|
|
46589
46594
|
for (let i = 0, len = entryKeys.length; i < len; i++) {
|
|
46590
46595
|
const entryKey = entryKeys[i];
|
|
46591
46596
|
const { metadata } = entries[entryKey];
|
|
@@ -46957,7 +46962,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
46957
46962
|
validateNotDisposed();
|
|
46958
46963
|
const entryKeys = keys$1.map(serializeStructuredKey);
|
|
46959
46964
|
const entries = await durableStore.getEntries(entryKeys, DefaultDurableSegment);
|
|
46960
|
-
if (entries === undefined || keys$
|
|
46965
|
+
if (entries === undefined || keys$4(entries).length === 0) {
|
|
46961
46966
|
return environment.notifyStoreUpdateAvailable(keys$1);
|
|
46962
46967
|
}
|
|
46963
46968
|
const now = Date.now();
|
|
@@ -47009,7 +47014,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
47009
47014
|
const metadataKeys = keys$1.map(serializeStructuredKey);
|
|
47010
47015
|
const now = Date.now();
|
|
47011
47016
|
const entries = await durableStore.getMetadata(metadataKeys, DefaultDurableSegment);
|
|
47012
|
-
if (entries === undefined || keys$
|
|
47017
|
+
if (entries === undefined || keys$4(entries).length === 0) {
|
|
47013
47018
|
return environment.expirePossibleStaleRecords(keys$1);
|
|
47014
47019
|
}
|
|
47015
47020
|
let metaDataChanged = false;
|
|
@@ -47035,7 +47040,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
47035
47040
|
type: 'stale-while-revalidate',
|
|
47036
47041
|
staleDurationSeconds: Number.MAX_SAFE_INTEGER,
|
|
47037
47042
|
});
|
|
47038
|
-
return create$
|
|
47043
|
+
return create$4(environment, {
|
|
47039
47044
|
publishStoreMetadata: { value: publishStoreMetadata },
|
|
47040
47045
|
storeIngest: { value: storeIngest },
|
|
47041
47046
|
storeIngestError: { value: storeIngestError },
|
|
@@ -47271,7 +47276,7 @@ var QueueOperationType;
|
|
|
47271
47276
|
QueueOperationType["Update"] = "update";
|
|
47272
47277
|
})(QueueOperationType || (QueueOperationType = {}));
|
|
47273
47278
|
|
|
47274
|
-
const { keys: keys$
|
|
47279
|
+
const { keys: keys$3, create: create$3, assign: assign$3, values: values$2 } = Object;
|
|
47275
47280
|
const { stringify: stringify$3, parse: parse$3 } = JSON;
|
|
47276
47281
|
const { isArray: isArray$2$1 } = Array;
|
|
47277
47282
|
|
|
@@ -47642,7 +47647,7 @@ class DurableDraftQueue {
|
|
|
47642
47647
|
const queueOperations = handler.getQueueOperationsForCompletingDrafts(queue, action);
|
|
47643
47648
|
// write the queue operations to the store prior to ingesting the result
|
|
47644
47649
|
await this.draftStore.completeAction(queueOperations);
|
|
47645
|
-
await handler.handleActionCompleted(action, queueOperations, values$
|
|
47650
|
+
await handler.handleActionCompleted(action, queueOperations, values$2(this.handlers));
|
|
47646
47651
|
this.retryIntervalMilliseconds = 0;
|
|
47647
47652
|
this.uploadingActionId = undefined;
|
|
47648
47653
|
await this.notifyChangedListeners({
|
|
@@ -47848,7 +47853,7 @@ class DurableDraftQueue {
|
|
|
47848
47853
|
return pendingAction;
|
|
47849
47854
|
}
|
|
47850
47855
|
async setMetadata(actionId, metadata) {
|
|
47851
|
-
const keys$1 = keys$
|
|
47856
|
+
const keys$1 = keys$3(metadata);
|
|
47852
47857
|
const compatibleKeys = keys$1.filter((key) => {
|
|
47853
47858
|
const value = metadata[key];
|
|
47854
47859
|
return typeof key === 'string' && typeof value === 'string';
|
|
@@ -48015,7 +48020,7 @@ class DurableDraftStore {
|
|
|
48015
48020
|
const waitForOngoingSync = this.syncPromise || Promise.resolve();
|
|
48016
48021
|
return waitForOngoingSync.then(() => {
|
|
48017
48022
|
const { draftStore } = this;
|
|
48018
|
-
const keys$1 = keys$
|
|
48023
|
+
const keys$1 = keys$3(draftStore);
|
|
48019
48024
|
const actionArray = [];
|
|
48020
48025
|
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
48021
48026
|
const key = keys$1[i];
|
|
@@ -48040,7 +48045,7 @@ class DurableDraftStore {
|
|
|
48040
48045
|
deleteByTag(tag) {
|
|
48041
48046
|
const deleteAction = () => {
|
|
48042
48047
|
const { draftStore } = this;
|
|
48043
|
-
const keys$1 = keys$
|
|
48048
|
+
const keys$1 = keys$3(draftStore);
|
|
48044
48049
|
const durableKeys = [];
|
|
48045
48050
|
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
48046
48051
|
const key = keys$1[i];
|
|
@@ -48092,7 +48097,7 @@ class DurableDraftStore {
|
|
|
48092
48097
|
return this.enqueueAction(action);
|
|
48093
48098
|
}
|
|
48094
48099
|
getCount() {
|
|
48095
|
-
return keys$
|
|
48100
|
+
return keys$3(this.draftStore).length;
|
|
48096
48101
|
}
|
|
48097
48102
|
/**
|
|
48098
48103
|
* Runs a write operation against the draft store, if the initial
|
|
@@ -48133,7 +48138,7 @@ class DurableDraftStore {
|
|
|
48133
48138
|
return this.runQueuedOperations();
|
|
48134
48139
|
}
|
|
48135
48140
|
const { draftStore } = this;
|
|
48136
|
-
const keys$1 = keys$
|
|
48141
|
+
const keys$1 = keys$3(durableEntries);
|
|
48137
48142
|
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
48138
48143
|
const entry = durableEntries[keys$1[i]];
|
|
48139
48144
|
const action = entry.data;
|
|
@@ -48242,13 +48247,6 @@ function toQueueState(queue) {
|
|
|
48242
48247
|
}
|
|
48243
48248
|
class DraftManager {
|
|
48244
48249
|
shouldEmitEvent(event) {
|
|
48245
|
-
// Waiting events cannot be emitted prior to 252 native clients
|
|
48246
|
-
// TODO [W-16102411]: we can safely remove this backwards compatible code in 256
|
|
48247
|
-
if (isDraftQueueStateChangeEvent(event) &&
|
|
48248
|
-
event.state === DraftQueueState.Waiting &&
|
|
48249
|
-
this.listenerVersion === undefined) {
|
|
48250
|
-
return false;
|
|
48251
|
-
}
|
|
48252
48250
|
return this.draftEventsShouldBeEmitted.includes(event.type);
|
|
48253
48251
|
}
|
|
48254
48252
|
constructor(draftQueue) {
|
|
@@ -48406,7 +48404,7 @@ class DraftManager {
|
|
|
48406
48404
|
return this.buildDraftQueueItem(action);
|
|
48407
48405
|
}
|
|
48408
48406
|
isValidFieldMap(fields) {
|
|
48409
|
-
const keys$1 = keys$
|
|
48407
|
+
const keys$1 = keys$3(fields);
|
|
48410
48408
|
const validTypes = ['string', 'number', 'boolean'];
|
|
48411
48409
|
for (let i = 0; i < keys$1.length; i++) {
|
|
48412
48410
|
const key = keys$1[i];
|
|
@@ -48679,7 +48677,7 @@ function buildAdapterValidationConfig$2(displayName, paramsMeta) {
|
|
|
48679
48677
|
}
|
|
48680
48678
|
const keyPrefix$2 = 'UiApi';
|
|
48681
48679
|
|
|
48682
|
-
const { assign: assign$
|
|
48680
|
+
const { assign: assign$2, create: create$2$1, entries: entries$2, freeze: freeze$2, isFrozen: isFrozen$2, keys: keys$2$1, values: values$1 } = Object;
|
|
48683
48681
|
const { hasOwnProperty: hasOwnProperty$1 } = Object.prototype;
|
|
48684
48682
|
const { split, endsWith } = String.prototype;
|
|
48685
48683
|
const { from: from$1, isArray: isArray$1$1 } = Array;
|
|
@@ -48708,7 +48706,7 @@ function dedupe$2(value) {
|
|
|
48708
48706
|
for (let i = 0, len = value.length; i < len; i += 1) {
|
|
48709
48707
|
result[value[i]] = true;
|
|
48710
48708
|
}
|
|
48711
|
-
return keys$
|
|
48709
|
+
return keys$2$1(result);
|
|
48712
48710
|
}
|
|
48713
48711
|
/**
|
|
48714
48712
|
* @param source The array of string to filter
|
|
@@ -49478,14 +49476,14 @@ const getTypeCacheKeys$1u = (rootKeySet, luvio, input, _fullPathFactory) => {
|
|
|
49478
49476
|
mergeable: true,
|
|
49479
49477
|
});
|
|
49480
49478
|
const input_childRelationships = input.childRelationships;
|
|
49481
|
-
const input_childRelationships_keys = keys$
|
|
49479
|
+
const input_childRelationships_keys = keys$2$1(input_childRelationships);
|
|
49482
49480
|
const input_childRelationships_length = input_childRelationships_keys.length;
|
|
49483
49481
|
for (let i = 0; i < input_childRelationships_length; i++) {
|
|
49484
49482
|
const key = input_childRelationships_keys[i];
|
|
49485
49483
|
getTypeCacheKeys$1t(rootKeySet, luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
|
|
49486
49484
|
}
|
|
49487
49485
|
const input_fields = input.fields;
|
|
49488
|
-
const field_values = keys$
|
|
49486
|
+
const field_values = keys$2$1(input_fields);
|
|
49489
49487
|
const input_fields_length = field_values.length;
|
|
49490
49488
|
for (let i = 0; i < input_fields_length; i++) {
|
|
49491
49489
|
const field_value = input_fields[field_values[i]];
|
|
@@ -49775,7 +49773,7 @@ function convertRecordFieldsArrayToTrie(fields, optionalFields = []) {
|
|
|
49775
49773
|
function createPathSelection(propertyName, fieldDefinition) {
|
|
49776
49774
|
const fieldsSelection = [];
|
|
49777
49775
|
const { children } = fieldDefinition;
|
|
49778
|
-
const childrenKeys = keys$
|
|
49776
|
+
const childrenKeys = keys$2$1(children);
|
|
49779
49777
|
for (let i = 0, len = childrenKeys.length; i < len; i += 1) {
|
|
49780
49778
|
const childKey = childrenKeys[i];
|
|
49781
49779
|
const childFieldDefinition = children[childKey];
|
|
@@ -49826,7 +49824,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
49826
49824
|
*/
|
|
49827
49825
|
function createPathSelectionFromValue(fields) {
|
|
49828
49826
|
const fieldsSelections = [];
|
|
49829
|
-
const fieldNames = keys$
|
|
49827
|
+
const fieldNames = keys$2$1(fields);
|
|
49830
49828
|
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
49831
49829
|
const fieldName = fieldNames[i];
|
|
49832
49830
|
const { value: fieldValue } = fields[fieldName];
|
|
@@ -49871,7 +49869,7 @@ function createPathSelectionFromValue(fields) {
|
|
|
49871
49869
|
}
|
|
49872
49870
|
function extractRecordFieldsRecursively(record) {
|
|
49873
49871
|
const fields = [];
|
|
49874
|
-
const fieldNames = keys$
|
|
49872
|
+
const fieldNames = keys$2$1(record.fields);
|
|
49875
49873
|
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
49876
49874
|
const fieldName = fieldNames[i];
|
|
49877
49875
|
const { value: fieldValue } = record.fields[fieldName];
|
|
@@ -50132,7 +50130,7 @@ function mergePendingFields(newRecord, oldRecord) {
|
|
|
50132
50130
|
// RecordRepresentationNormalized['fields'] to include `pending:true` property
|
|
50133
50131
|
const mergedFields = { ...newRecord.fields };
|
|
50134
50132
|
const merged = { ...newRecord, fields: mergedFields };
|
|
50135
|
-
const existingFields = keys$
|
|
50133
|
+
const existingFields = keys$2$1(oldRecord.fields);
|
|
50136
50134
|
for (let i = 0, len = existingFields.length; i < len; i += 1) {
|
|
50137
50135
|
const spanningFieldName = existingFields[i];
|
|
50138
50136
|
if (newRecord.fields[spanningFieldName] === undefined) {
|
|
@@ -50249,7 +50247,7 @@ function merge$1(existing, incoming, luvio, _path, recordConflictMap) {
|
|
|
50249
50247
|
if (isGraphNode(node)) {
|
|
50250
50248
|
const dependencies = node.retrieve();
|
|
50251
50249
|
if (dependencies !== null) {
|
|
50252
|
-
const depKeys = keys$
|
|
50250
|
+
const depKeys = keys$2$1(dependencies);
|
|
50253
50251
|
for (let i = 0, len = depKeys.length; i < len; i++) {
|
|
50254
50252
|
luvio.storeEvict(depKeys[i]);
|
|
50255
50253
|
}
|
|
@@ -50401,7 +50399,7 @@ fieldNode) {
|
|
|
50401
50399
|
}
|
|
50402
50400
|
for (let i = 0; i < fieldSubtries.length; i++) {
|
|
50403
50401
|
const subtrie = fieldSubtries[i];
|
|
50404
|
-
const fieldNames = keys$
|
|
50402
|
+
const fieldNames = keys$2$1(subtrie.children);
|
|
50405
50403
|
for (let i = 0; i < fieldNames.length; i++) {
|
|
50406
50404
|
const fieldName = fieldNames[i];
|
|
50407
50405
|
const childTrie = subtrie.children[fieldName];
|
|
@@ -50523,13 +50521,13 @@ function isExternalLookupFieldKey(spanningNode) {
|
|
|
50523
50521
|
return endsWith.call(spanningNode.scalar('apiName'), CUSTOM_EXTERNAL_OBJECT_FIELD_SUFFIX);
|
|
50524
50522
|
}
|
|
50525
50523
|
function convertTrieToFields(root) {
|
|
50526
|
-
if (keys$
|
|
50524
|
+
if (keys$2$1(root.children).length === 0) {
|
|
50527
50525
|
return [];
|
|
50528
50526
|
}
|
|
50529
50527
|
return convertTrieToFieldsRecursively(root);
|
|
50530
50528
|
}
|
|
50531
50529
|
function convertTrieToFieldsRecursively(root) {
|
|
50532
|
-
const childKeys = keys$
|
|
50530
|
+
const childKeys = keys$2$1(root.children);
|
|
50533
50531
|
if (childKeys.length === 0) {
|
|
50534
50532
|
if (root.name === '') {
|
|
50535
50533
|
return [];
|
|
@@ -50538,7 +50536,7 @@ function convertTrieToFieldsRecursively(root) {
|
|
|
50538
50536
|
}
|
|
50539
50537
|
return reduce$2.call(childKeys, (acc, cur) => concat$2.call(acc, convertTrieToFieldsRecursively(root.children[cur]).map((i) => `${root.name}.${i}`)), []);
|
|
50540
50538
|
}
|
|
50541
|
-
const BLANK_RECORD_FIELDS_TRIE = freeze$
|
|
50539
|
+
const BLANK_RECORD_FIELDS_TRIE = freeze$2({
|
|
50542
50540
|
name: '',
|
|
50543
50541
|
children: {},
|
|
50544
50542
|
});
|
|
@@ -50566,7 +50564,7 @@ const getObjectNameFromField = (field) => {
|
|
|
50566
50564
|
function mergeFieldsTries(rootA, rootB) {
|
|
50567
50565
|
const rootAchildren = rootA.children;
|
|
50568
50566
|
const rootBchildren = rootB.children;
|
|
50569
|
-
const childBKeys = keys$
|
|
50567
|
+
const childBKeys = keys$2$1(rootBchildren);
|
|
50570
50568
|
for (let i = 0, len = childBKeys.length; i < len; i++) {
|
|
50571
50569
|
const childBKey = childBKeys[i];
|
|
50572
50570
|
if (rootAchildren[childBKey] === undefined) {
|
|
@@ -50721,8 +50719,8 @@ function isSuperRecordFieldTrie(a, b) {
|
|
|
50721
50719
|
}
|
|
50722
50720
|
const childrenA = a.children;
|
|
50723
50721
|
const childrenB = b.children;
|
|
50724
|
-
const childKeysA = keys$
|
|
50725
|
-
const childKeysB = keys$
|
|
50722
|
+
const childKeysA = keys$2$1(childrenA);
|
|
50723
|
+
const childKeysB = keys$2$1(childrenB);
|
|
50726
50724
|
const childKeysBLength = childKeysB.length;
|
|
50727
50725
|
if (childKeysBLength > childKeysA.length) {
|
|
50728
50726
|
return false;
|
|
@@ -50776,9 +50774,9 @@ function fulfill(existing, incoming) {
|
|
|
50776
50774
|
return false;
|
|
50777
50775
|
}
|
|
50778
50776
|
}
|
|
50779
|
-
const headersKeys = keys$
|
|
50777
|
+
const headersKeys = keys$2$1(headers);
|
|
50780
50778
|
const headersKeyLength = headersKeys.length;
|
|
50781
|
-
if (headersKeyLength !== keys$
|
|
50779
|
+
if (headersKeyLength !== keys$2$1(existingHeaders).length) {
|
|
50782
50780
|
return false;
|
|
50783
50781
|
}
|
|
50784
50782
|
for (let i = 0, len = headersKeyLength; i < len; i++) {
|
|
@@ -51411,7 +51409,7 @@ function buildNetworkSnapshot$g(luvio, config, serverRequestCount = 0, options)
|
|
|
51411
51409
|
|
|
51412
51410
|
// iterate through the map to build configs for network calls
|
|
51413
51411
|
function resolveConflict(luvio, map) {
|
|
51414
|
-
const ids = keys$
|
|
51412
|
+
const ids = keys$2$1(map.conflicts);
|
|
51415
51413
|
if (ids.length === 0) {
|
|
51416
51414
|
return;
|
|
51417
51415
|
}
|
|
@@ -52553,18 +52551,18 @@ function listFields(luvio, { fields = [], optionalFields = [], sortBy, }, listIn
|
|
|
52553
52551
|
return {
|
|
52554
52552
|
getRecordSelectionFieldSets() {
|
|
52555
52553
|
const optionalPlusDefaultFields = { ...optionalFields_ };
|
|
52556
|
-
const fields = keys$
|
|
52554
|
+
const fields = keys$2$1(defaultFields_);
|
|
52557
52555
|
for (let i = 0; i < fields.length; ++i) {
|
|
52558
52556
|
const field = fields[i];
|
|
52559
52557
|
if (!fields_[field] && !defaultServerFieldStatus.missingFields[field]) {
|
|
52560
52558
|
optionalPlusDefaultFields[field] = true;
|
|
52561
52559
|
}
|
|
52562
52560
|
}
|
|
52563
|
-
return [keys$
|
|
52561
|
+
return [keys$2$1(fields_).sort(), keys$2$1(optionalPlusDefaultFields).sort()];
|
|
52564
52562
|
},
|
|
52565
52563
|
processRecords(records) {
|
|
52566
52564
|
const { missingFields } = defaultServerFieldStatus;
|
|
52567
|
-
const fields = keys$
|
|
52565
|
+
const fields = keys$2$1(missingFields);
|
|
52568
52566
|
for (let i = 0; i < fields.length; ++i) {
|
|
52569
52567
|
const field = fields[i], splitField = field.split('.').slice(1);
|
|
52570
52568
|
for (let i = 0; i < records.length; ++i) {
|
|
@@ -54908,7 +54906,7 @@ function getMissingRecordLookupFields(record, objectInfo) {
|
|
|
54908
54906
|
const lookupFields = {};
|
|
54909
54907
|
const { apiName, fields: recordFields } = record;
|
|
54910
54908
|
const { fields: objectInfoFields } = objectInfo;
|
|
54911
|
-
const objectInfoFieldNames = keys$
|
|
54909
|
+
const objectInfoFieldNames = keys$2$1(objectInfoFields);
|
|
54912
54910
|
for (let i = 0, len = objectInfoFieldNames.length; i < len; i += 1) {
|
|
54913
54911
|
const fieldName = objectInfoFieldNames[i];
|
|
54914
54912
|
const field = objectInfoFields[fieldName];
|
|
@@ -54927,12 +54925,12 @@ function getMissingRecordLookupFields(record, objectInfo) {
|
|
|
54927
54925
|
const nameField = `${apiName}.${relationshipName}.${getNameField(objectInfo, fieldName)}`;
|
|
54928
54926
|
lookupFields[nameField] = true;
|
|
54929
54927
|
}
|
|
54930
|
-
return keys$
|
|
54928
|
+
return keys$2$1(lookupFields);
|
|
54931
54929
|
}
|
|
54932
54930
|
function getRecordUiMissingRecordLookupFields(recordUi) {
|
|
54933
54931
|
const { records, objectInfos } = recordUi;
|
|
54934
54932
|
const recordLookupFields = {};
|
|
54935
|
-
const recordIds = keys$
|
|
54933
|
+
const recordIds = keys$2$1(records);
|
|
54936
54934
|
for (let i = 0, len = recordIds.length; i < len; i += 1) {
|
|
54937
54935
|
const recordId = recordIds[i];
|
|
54938
54936
|
const recordData = records[recordId];
|
|
@@ -54970,19 +54968,19 @@ function buildCachedSelectorKey(key) {
|
|
|
54970
54968
|
}
|
|
54971
54969
|
function eachLayout(recordUi, cb) {
|
|
54972
54970
|
const { layouts } = recordUi;
|
|
54973
|
-
const layoutApiNames = keys$
|
|
54971
|
+
const layoutApiNames = keys$2$1(layouts);
|
|
54974
54972
|
for (let a = 0, len = layoutApiNames.length; a < len; a += 1) {
|
|
54975
54973
|
const apiName = layoutApiNames[a];
|
|
54976
54974
|
const apiNameData = layouts[apiName];
|
|
54977
|
-
const recordTypeIds = keys$
|
|
54975
|
+
const recordTypeIds = keys$2$1(apiNameData);
|
|
54978
54976
|
for (let b = 0, recordTypeIdsLen = recordTypeIds.length; b < recordTypeIdsLen; b += 1) {
|
|
54979
54977
|
const recordTypeId = recordTypeIds[b];
|
|
54980
54978
|
const recordTypeData = apiNameData[recordTypeId];
|
|
54981
|
-
const layoutTypes = keys$
|
|
54979
|
+
const layoutTypes = keys$2$1(recordTypeData);
|
|
54982
54980
|
for (let c = 0, layoutTypesLen = layoutTypes.length; c < layoutTypesLen; c += 1) {
|
|
54983
54981
|
const layoutType = layoutTypes[c];
|
|
54984
54982
|
const layoutTypeData = recordTypeData[layoutType];
|
|
54985
|
-
const modes = keys$
|
|
54983
|
+
const modes = keys$2$1(layoutTypeData);
|
|
54986
54984
|
for (let d = 0, modesLen = modes.length; d < modesLen; d += 1) {
|
|
54987
54985
|
const mode = modes[d];
|
|
54988
54986
|
const layout = layoutTypeData[mode];
|
|
@@ -55188,14 +55186,14 @@ function buildNetworkSnapshot$e(luvio, config, dispatchContext) {
|
|
|
55188
55186
|
function publishDependencies(luvio, recordIds, depKeys) {
|
|
55189
55187
|
for (let i = 0, len = recordIds.length; i < len; i += 1) {
|
|
55190
55188
|
const recordDepKey = dependencyKeyBuilder({ recordId: recordIds[i] });
|
|
55191
|
-
const dependencies = create$
|
|
55189
|
+
const dependencies = create$2$1(null);
|
|
55192
55190
|
for (let j = 0, len = depKeys.length; j < len; j++) {
|
|
55193
55191
|
dependencies[depKeys[j]] = true;
|
|
55194
55192
|
}
|
|
55195
55193
|
const node = luvio.getNode(recordDepKey);
|
|
55196
55194
|
if (isGraphNode(node)) {
|
|
55197
55195
|
const recordDeps = node.retrieve();
|
|
55198
|
-
assign$
|
|
55196
|
+
assign$2(dependencies, recordDeps);
|
|
55199
55197
|
}
|
|
55200
55198
|
luvio.storePublish(recordDepKey, dependencies);
|
|
55201
55199
|
}
|
|
@@ -55381,11 +55379,11 @@ const recordLayoutFragmentSelector = [
|
|
|
55381
55379
|
function getFieldsFromLayoutMap(layoutMap, objectInfo) {
|
|
55382
55380
|
let fields = [];
|
|
55383
55381
|
let optionalFields = [];
|
|
55384
|
-
const layoutTypes = keys$
|
|
55382
|
+
const layoutTypes = keys$2$1(layoutMap);
|
|
55385
55383
|
for (let i = 0, layoutTypesLen = layoutTypes.length; i < layoutTypesLen; i += 1) {
|
|
55386
55384
|
const layoutType = layoutTypes[i];
|
|
55387
55385
|
const modesMap = layoutMap[layoutType];
|
|
55388
|
-
const modes = keys$
|
|
55386
|
+
const modes = keys$2$1(modesMap);
|
|
55389
55387
|
for (let m = 0, modesLen = modes.length; m < modesLen; m += 1) {
|
|
55390
55388
|
const mode = modes[m];
|
|
55391
55389
|
const { fields: modeFields, optionalFields: modeOptionalFields } = getQualifiedFieldApiNamesFromLayout(modesMap[mode], objectInfo);
|
|
@@ -55421,7 +55419,7 @@ function getRecordForLayoutableEntities(luvio, refresh, recordId, layoutMap, obj
|
|
|
55421
55419
|
return getRecord(luvio, refresh, recordId, [], implicitFields);
|
|
55422
55420
|
}
|
|
55423
55421
|
function getRecordForNonLayoutableEntities(luvio, adapterContext, refresh, recordId, objectInfo, configOptionalFields, configFields) {
|
|
55424
|
-
const fields = keys$
|
|
55422
|
+
const fields = keys$2$1(configFields ? configFields : {}).map((key) => `${objectInfo.apiName}.${key}`);
|
|
55425
55423
|
// W-12697744
|
|
55426
55424
|
// Set the implicit fields received from the server in adapter context
|
|
55427
55425
|
// This ensures that the implicit fields are available when data is read locally or from durable store
|
|
@@ -55667,7 +55665,7 @@ function makeRecordLayoutMap(luvio, config, apiName, recordTypeId, layoutTypes,
|
|
|
55667
55665
|
}
|
|
55668
55666
|
const { layoutType, mode, snapshot } = container;
|
|
55669
55667
|
if (wrapper.layoutMap[layoutType] === undefined) {
|
|
55670
|
-
wrapper.layoutMap = assign$
|
|
55668
|
+
wrapper.layoutMap = assign$2({}, wrapper.layoutMap, {
|
|
55671
55669
|
[layoutType]: {},
|
|
55672
55670
|
});
|
|
55673
55671
|
}
|
|
@@ -56204,7 +56202,7 @@ function typeCheckConfig$9(untrustedConfig) {
|
|
|
56204
56202
|
}
|
|
56205
56203
|
}
|
|
56206
56204
|
if (records.length > 0) {
|
|
56207
|
-
assign$
|
|
56205
|
+
assign$2(config, { records });
|
|
56208
56206
|
}
|
|
56209
56207
|
}
|
|
56210
56208
|
return config;
|
|
@@ -65882,9 +65880,7 @@ function convertGraphQLToRaml$1(astNode, state) {
|
|
|
65882
65880
|
: new Map();
|
|
65883
65881
|
const { fieldsBag, trie } = createFieldsBagAndTrie$1(data, requestedFields, state);
|
|
65884
65882
|
const recordTypeId = data.ldsRecordTypeId === null ? null : data.ldsRecordTypeId.value;
|
|
65885
|
-
if (
|
|
65886
|
-
recordTypeId &&
|
|
65887
|
-
recordTypeId !== MAIN_RECORD_TYPE_ID) {
|
|
65883
|
+
if (recordTypeId && recordTypeId !== MAIN_RECORD_TYPE_ID) {
|
|
65888
65884
|
const fieldName = 'RecordTypeId';
|
|
65889
65885
|
fieldsBag[fieldName] = {
|
|
65890
65886
|
value: recordTypeId,
|
|
@@ -66220,7 +66216,7 @@ function selectType$I$1(typename, sel, fieldData, reader, key, sink, variables,
|
|
|
66220
66216
|
*/
|
|
66221
66217
|
|
|
66222
66218
|
|
|
66223
|
-
function isStoreKeyRecordId
|
|
66219
|
+
function isStoreKeyRecordId(key) {
|
|
66224
66220
|
return key.indexOf(RECORD_ID_PREFIX$1) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1;
|
|
66225
66221
|
}
|
|
66226
66222
|
function objectsDeepEqual(lhs, rhs) {
|
|
@@ -78943,7 +78939,7 @@ function getRecordKeyForId(luvio, recordId) {
|
|
|
78943
78939
|
*/
|
|
78944
78940
|
function filterOutReferenceNonScalarFields(record) {
|
|
78945
78941
|
const filteredFields = {};
|
|
78946
|
-
const fieldNames = keys$
|
|
78942
|
+
const fieldNames = keys$2$1(record.fields);
|
|
78947
78943
|
for (const fieldName of fieldNames) {
|
|
78948
78944
|
const field = record.fields[fieldName];
|
|
78949
78945
|
if (isFieldLink(field) === false && isPendingOrMissing(field) === false) {
|
|
@@ -79049,7 +79045,7 @@ function getRecordDraftEnvironment(luvio, env, { isDraftId, durableRecordStore }
|
|
|
79049
79045
|
const resolvedRequest = resolveResourceRequestIds(luvio, resourceRequest, canonicalKey);
|
|
79050
79046
|
return env.dispatchResourceRequest(resolvedRequest, context, eventObservers);
|
|
79051
79047
|
};
|
|
79052
|
-
return create$
|
|
79048
|
+
return create$2$1(env, {
|
|
79053
79049
|
dispatchResourceRequest: { value: dispatchResourceRequest },
|
|
79054
79050
|
});
|
|
79055
79051
|
}
|
|
@@ -79227,7 +79223,7 @@ function getRecordsDraftEnvironment(luvio, env, { isDraftId }) {
|
|
|
79227
79223
|
return applyDraftsToBatchResponse(resourceRequest, response, removedDraftIds);
|
|
79228
79224
|
}));
|
|
79229
79225
|
};
|
|
79230
|
-
return create$
|
|
79226
|
+
return create$2$1(env, {
|
|
79231
79227
|
dispatchResourceRequest: { value: dispatchResourceRequest },
|
|
79232
79228
|
});
|
|
79233
79229
|
}
|
|
@@ -79237,7 +79233,7 @@ function makeEnvironmentUiApiRecordDraftAware(luvio, options, env) {
|
|
|
79237
79233
|
const adapterSpecificEnvironments = synthesizers.reduce((environment, synthesizer) => {
|
|
79238
79234
|
return synthesizer(luvio, environment, options);
|
|
79239
79235
|
}, env);
|
|
79240
|
-
return create$
|
|
79236
|
+
return create$2$1(adapterSpecificEnvironments, {});
|
|
79241
79237
|
}
|
|
79242
79238
|
|
|
79243
79239
|
const HTTP_HEADER_RETRY_AFTER = 'Retry-After';
|
|
@@ -79787,7 +79783,7 @@ class UiApiActionHandler extends AbstractResourceRequestActionHandler {
|
|
|
79787
79783
|
pendingAction.data.method !== 'delete' && //'delete' action does not have fields
|
|
79788
79784
|
objectInfo) {
|
|
79789
79785
|
const appendedFields = this.getBackdatingFields(objectInfo, resolvedRequest.method, pendingAction);
|
|
79790
|
-
if (keys$
|
|
79786
|
+
if (keys$2$1(appendedFields).length > 0) {
|
|
79791
79787
|
pendingAction.data.body = {
|
|
79792
79788
|
...pendingAction.data.body,
|
|
79793
79789
|
fields: {
|
|
@@ -79801,7 +79797,7 @@ class UiApiActionHandler extends AbstractResourceRequestActionHandler {
|
|
|
79801
79797
|
}
|
|
79802
79798
|
getBackdatingFields(objectInfo, requestMethod, pendingAction) {
|
|
79803
79799
|
const fields = {};
|
|
79804
|
-
const actionFieldNames = keys$
|
|
79800
|
+
const actionFieldNames = keys$2$1(pendingAction.data.body.fields);
|
|
79805
79801
|
if (requestMethod === 'post') {
|
|
79806
79802
|
// `CreateRecord` with `CreatedDate` field
|
|
79807
79803
|
if (isBackdatingFieldEditable(objectInfo, DEFAULT_FIELD_CREATED_DATE$1, 'createable', actionFieldNames)) {
|
|
@@ -79847,7 +79843,7 @@ class UiApiActionHandler extends AbstractResourceRequestActionHandler {
|
|
|
79847
79843
|
return;
|
|
79848
79844
|
}
|
|
79849
79845
|
const objectInfo = objectInfoMap[apiName];
|
|
79850
|
-
const optionalFields = values$
|
|
79846
|
+
const optionalFields = values$1(objectInfo.fields).map((field) => `${apiName}.${field.apiName}`);
|
|
79851
79847
|
await getAdapterData(this.getRecordAdapter, {
|
|
79852
79848
|
recordId: referenceFieldInfo.id,
|
|
79853
79849
|
optionalFields,
|
|
@@ -79866,7 +79862,7 @@ class UiApiActionHandler extends AbstractResourceRequestActionHandler {
|
|
|
79866
79862
|
const referenceToInfos = fieldInfo.referenceToInfos;
|
|
79867
79863
|
const apiNames = referenceToInfos.map((referenceToInfo) => referenceToInfo.apiName);
|
|
79868
79864
|
const objectInfoMap = await this.objectInfoService.getObjectInfos(apiNames);
|
|
79869
|
-
for (const objectInfo of values$
|
|
79865
|
+
for (const objectInfo of values$1(objectInfoMap)) {
|
|
79870
79866
|
const { apiName, keyPrefix } = objectInfo;
|
|
79871
79867
|
if (keyPrefix !== null && id.startsWith(keyPrefix)) {
|
|
79872
79868
|
return apiName;
|
|
@@ -79952,7 +79948,7 @@ class UiApiActionHandler extends AbstractResourceRequestActionHandler {
|
|
|
79952
79948
|
let resolvedUrlParams = request.urlParams;
|
|
79953
79949
|
if (request.method === 'post' || request.method === 'patch') {
|
|
79954
79950
|
const bodyFields = resolvedBody.fields;
|
|
79955
|
-
const fieldNames = keys$
|
|
79951
|
+
const fieldNames = keys$2$1(bodyFields);
|
|
79956
79952
|
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
79957
79953
|
const fieldName = fieldNames[i];
|
|
79958
79954
|
const fieldValue = bodyFields[fieldName];
|
|
@@ -80108,7 +80104,7 @@ class UiApiDraftRecordService {
|
|
|
80108
80104
|
};
|
|
80109
80105
|
}
|
|
80110
80106
|
const referenceFields = [];
|
|
80111
|
-
const fieldNames = keys$
|
|
80107
|
+
const fieldNames = keys$2$1(fields);
|
|
80112
80108
|
const unexpectedFields = [];
|
|
80113
80109
|
for (const field of fieldNames) {
|
|
80114
80110
|
const fieldInfo = objectInfo.fields[field];
|
|
@@ -80170,11 +80166,13 @@ class UiApiDraftRecordService {
|
|
|
80170
80166
|
|
|
80171
80167
|
const QUICK_ACTION_HANDLER = 'QUICK_ACTION_HANDLER';
|
|
80172
80168
|
class QuickActionExecutionRepresentationHandler extends AbstractResourceRequestActionHandler {
|
|
80173
|
-
constructor(getLuvio, draftRecordService, draftQueue, networkAdapter, isDraftId, sideEffectService) {
|
|
80169
|
+
constructor(getLuvio, draftRecordService, draftQueue, networkAdapter, isDraftId, sideEffectService, objectInfoService, getRecord) {
|
|
80174
80170
|
super(draftQueue, networkAdapter, getLuvio, draftRecordService);
|
|
80175
80171
|
this.draftRecordService = draftRecordService;
|
|
80176
80172
|
this.isDraftId = isDraftId;
|
|
80177
80173
|
this.sideEffectService = sideEffectService;
|
|
80174
|
+
this.objectInfoService = objectInfoService;
|
|
80175
|
+
this.getRecord = getRecord;
|
|
80178
80176
|
this.handlerId = QUICK_ACTION_HANDLER;
|
|
80179
80177
|
draftRecordService.registerRecordHandler(this);
|
|
80180
80178
|
}
|
|
@@ -80206,6 +80204,30 @@ class QuickActionExecutionRepresentationHandler extends AbstractResourceRequestA
|
|
|
80206
80204
|
});
|
|
80207
80205
|
luvio.storeIngest(key, ingest$B$2, response);
|
|
80208
80206
|
}
|
|
80207
|
+
async handleActionCompleted(action, queueOperations) {
|
|
80208
|
+
await super.handleActionCompleted(action, queueOperations);
|
|
80209
|
+
this.getLuvio();
|
|
80210
|
+
const canonicalId = action.response.body.id;
|
|
80211
|
+
this.buildTagForTargetId(canonicalId);
|
|
80212
|
+
const prefix = canonicalId.substring(0, 3);
|
|
80213
|
+
if (prefix.length !== 3) {
|
|
80214
|
+
// if we can't get a prefix, don't do the rest
|
|
80215
|
+
return;
|
|
80216
|
+
}
|
|
80217
|
+
const apiName = await this.objectInfoService.apiNameForPrefix(prefix);
|
|
80218
|
+
const objectInfo = await this.objectInfoService.getObjectInfo(apiName);
|
|
80219
|
+
if (!objectInfo) {
|
|
80220
|
+
return;
|
|
80221
|
+
}
|
|
80222
|
+
await this.getRecord({ recordId: canonicalId, fields: this.allFields(objectInfo) });
|
|
80223
|
+
}
|
|
80224
|
+
allFields(objectInfo) {
|
|
80225
|
+
let fields = [];
|
|
80226
|
+
Object.keys(objectInfo.fields).forEach((fieldName) => {
|
|
80227
|
+
fields.push(objectInfo.apiName + '.' + fieldName);
|
|
80228
|
+
});
|
|
80229
|
+
return fields;
|
|
80230
|
+
}
|
|
80209
80231
|
mergeRequestBody() {
|
|
80210
80232
|
throw Error('mergeActions not supported for QuickActionExecutionRepresentationHandler');
|
|
80211
80233
|
}
|
|
@@ -80456,7 +80478,7 @@ function createContentDocumentAndVersionDraftAdapterFactory(luvio, binaryStore,
|
|
|
80456
80478
|
...trimmedDownData.contentVersion,
|
|
80457
80479
|
fields: cvFields,
|
|
80458
80480
|
};
|
|
80459
|
-
freeze$
|
|
80481
|
+
freeze$2(trimmedDownData);
|
|
80460
80482
|
eventEmitter({ type: 'create-content-document-and-version-draft-finished' });
|
|
80461
80483
|
return {
|
|
80462
80484
|
state: 'Fulfilled',
|
|
@@ -81390,7 +81412,7 @@ function dateTimePredicate(input, operator, field, alias) {
|
|
|
81390
81412
|
return predicate;
|
|
81391
81413
|
}
|
|
81392
81414
|
else if (literal !== undefined) {
|
|
81393
|
-
const isAvailableLiteral = values$
|
|
81415
|
+
const isAvailableLiteral = values$1(DateLiteral).includes(literal);
|
|
81394
81416
|
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
81395
81417
|
if (!isAvailableLiteral)
|
|
81396
81418
|
throw new Error(`${literal} is not a valid DateLiteral`);
|
|
@@ -81404,7 +81426,7 @@ function dateTimePredicate(input, operator, field, alias) {
|
|
|
81404
81426
|
}
|
|
81405
81427
|
function dateTimeRange(input, op, field, alias) {
|
|
81406
81428
|
const dateFunction = field.dataType === 'DateTime' ? 'datetime' : 'date';
|
|
81407
|
-
const key = keys$
|
|
81429
|
+
const key = keys$2$1(input)[0];
|
|
81408
81430
|
let operator = op;
|
|
81409
81431
|
if (operator === '=')
|
|
81410
81432
|
operator = 'BETWEEN';
|
|
@@ -81704,7 +81726,7 @@ function filterToPredicates(where, recordType, alias, objectInfoMap, joins, draf
|
|
|
81704
81726
|
if (!where)
|
|
81705
81727
|
return [];
|
|
81706
81728
|
let predicates = [];
|
|
81707
|
-
const fields = keys$
|
|
81729
|
+
const fields = keys$2$1(where);
|
|
81708
81730
|
for (const field of fields) {
|
|
81709
81731
|
if (field === 'and' || field === 'or') {
|
|
81710
81732
|
predicates.push(processCompoundPredicate(field, where[field], recordType, alias, objectInfoMap, joins));
|
|
@@ -81757,7 +81779,7 @@ function filterToPredicates(where, recordType, alias, objectInfoMap, joins, draf
|
|
|
81757
81779
|
}
|
|
81758
81780
|
else {
|
|
81759
81781
|
// @W-12618378 polymorphic query sometimes does not work as expected on server. The GQL on certain entities could fail.
|
|
81760
|
-
const entityNames = keys$
|
|
81782
|
+
const entityNames = keys$2$1(where[field]);
|
|
81761
81783
|
const polyPredicatesGroups = entityNames
|
|
81762
81784
|
.filter((entityName) => fieldInfo.referenceToInfos.some((referenceInfo) => referenceInfo.apiName === entityName))
|
|
81763
81785
|
.map((entityName) => {
|
|
@@ -81792,7 +81814,7 @@ function filterToPredicates(where, recordType, alias, objectInfoMap, joins, draf
|
|
|
81792
81814
|
}
|
|
81793
81815
|
else {
|
|
81794
81816
|
//`field` match the filedInfo's apiName
|
|
81795
|
-
for (const [op, value] of entries$
|
|
81817
|
+
for (const [op, value] of entries$2(where[field])) {
|
|
81796
81818
|
const operator = operatorToSql(op);
|
|
81797
81819
|
/**
|
|
81798
81820
|
Two types ID processing might be needed. Draft ID swapping is optional, which depends on DraftFunctions existence.
|
|
@@ -82303,7 +82325,7 @@ function dedupeJoins(joins) {
|
|
|
82303
82325
|
for (const join of joins) {
|
|
82304
82326
|
deduped[join.alias + join.to] = join;
|
|
82305
82327
|
}
|
|
82306
|
-
return values$
|
|
82328
|
+
return values$1(deduped);
|
|
82307
82329
|
}
|
|
82308
82330
|
function buildJoins(config) {
|
|
82309
82331
|
let sql = '';
|
|
@@ -82978,7 +83000,7 @@ function depth(json, currentLevel = 0) {
|
|
|
82978
83000
|
if (typeof json !== 'object') {
|
|
82979
83001
|
return currentLevel;
|
|
82980
83002
|
}
|
|
82981
|
-
const keys = keys$
|
|
83003
|
+
const keys = keys$2$1(json);
|
|
82982
83004
|
if (keys.length === 0)
|
|
82983
83005
|
return 0;
|
|
82984
83006
|
const depths = keys.map((key) => {
|
|
@@ -82991,7 +83013,7 @@ function flatten(previous, current) {
|
|
|
82991
83013
|
return previous.concat(current);
|
|
82992
83014
|
}
|
|
82993
83015
|
function findFieldInfo(objectInfo, fieldName) {
|
|
82994
|
-
return values$
|
|
83016
|
+
return values$1(objectInfo.fields).find((field) => field.apiName === fieldName ||
|
|
82995
83017
|
(field.dataType === 'Reference' && field.relationshipName === fieldName));
|
|
82996
83018
|
}
|
|
82997
83019
|
async function readIngestionTimestampForKey(key, query) {
|
|
@@ -83031,14 +83053,14 @@ function orderByToPredicate(orderBy, recordType, alias, objectInfoMap, joins) {
|
|
|
83031
83053
|
return predicates;
|
|
83032
83054
|
const isSpanning = depth(orderBy) > 2;
|
|
83033
83055
|
if (isSpanning) {
|
|
83034
|
-
const keys = keys$
|
|
83056
|
+
const keys = keys$2$1(orderBy);
|
|
83035
83057
|
for (let i = 0, len = keys.length; i < len; i++) {
|
|
83036
83058
|
const key = keys[i];
|
|
83037
83059
|
const parentFields = objectInfoMap[recordType].fields;
|
|
83038
|
-
const fieldInfo = values$
|
|
83060
|
+
const fieldInfo = values$1(parentFields).find(findSpanningField(key));
|
|
83039
83061
|
if (fieldInfo && fieldInfo.referenceToInfos.length > 0) {
|
|
83040
83062
|
const { apiName } = fieldInfo.referenceToInfos[0];
|
|
83041
|
-
const parentFieldInfo = values$
|
|
83063
|
+
const parentFieldInfo = values$1(objectInfoMap[recordType].fields).find(findSpanningField(fieldInfo.apiName));
|
|
83042
83064
|
if (parentFieldInfo !== undefined) {
|
|
83043
83065
|
const path = {
|
|
83044
83066
|
leftPath: `$.fields.${parentFieldInfo.apiName}.value`,
|
|
@@ -83061,7 +83083,7 @@ function orderByToPredicate(orderBy, recordType, alias, objectInfoMap, joins) {
|
|
|
83061
83083
|
}
|
|
83062
83084
|
}
|
|
83063
83085
|
else {
|
|
83064
|
-
const keys = keys$
|
|
83086
|
+
const keys = keys$2$1(orderBy);
|
|
83065
83087
|
for (let i = 0, len = keys.length; i < len; i++) {
|
|
83066
83088
|
const key = keys[i];
|
|
83067
83089
|
if (!objectInfoMap[recordType])
|
|
@@ -84356,7 +84378,7 @@ function buildKeyStringForRecordQuery(operation, variables, argumentNodes, curre
|
|
|
84356
84378
|
variables,
|
|
84357
84379
|
fragmentMap: {},
|
|
84358
84380
|
});
|
|
84359
|
-
const filteredArgumentNodes = assign$
|
|
84381
|
+
const filteredArgumentNodes = assign$2([], argumentNodes).filter((node) => node.name.value !== 'first' && node.name.value !== 'after');
|
|
84360
84382
|
const argumentString = filteredArgumentNodes.length > 0
|
|
84361
84383
|
? '__' + serializeFieldArguments$1(filteredArgumentNodes, variables)
|
|
84362
84384
|
: '';
|
|
@@ -84379,7 +84401,7 @@ function addResolversToSchema(schema, polyFields) {
|
|
|
84379
84401
|
let baseRecord = undefined;
|
|
84380
84402
|
// Concrete types for Polymorphic field
|
|
84381
84403
|
const polyTypes = [];
|
|
84382
|
-
for (const type of values$
|
|
84404
|
+
for (const type of values$1(schema.getTypeMap())) {
|
|
84383
84405
|
if (type.name === 'Record') {
|
|
84384
84406
|
recordInterface = type;
|
|
84385
84407
|
}
|
|
@@ -84392,7 +84414,7 @@ function addResolversToSchema(schema, polyFields) {
|
|
|
84392
84414
|
if (polyFields.find((fieldTypeName) => fieldTypeName === type.name) !== undefined) {
|
|
84393
84415
|
polyTypes.push(type);
|
|
84394
84416
|
}
|
|
84395
|
-
const fields = values$
|
|
84417
|
+
const fields = values$1(type.getFields());
|
|
84396
84418
|
// initialize the fields of current type with default behavior
|
|
84397
84419
|
for (const field of fields) {
|
|
84398
84420
|
field.resolve = defaultFieldResolver;
|
|
@@ -84771,7 +84793,7 @@ function generateRecordQueries(schema, objectInfoMap) {
|
|
|
84771
84793
|
// use a set to not allow duplicate scalars causing error(s)
|
|
84772
84794
|
let addedTypedScalars = new Set();
|
|
84773
84795
|
let allPolymorphicFieldTypeNames = new Set();
|
|
84774
|
-
for (const name of keys$
|
|
84796
|
+
for (const name of keys$2$1(objectInfoMap)) {
|
|
84775
84797
|
const objectInfo = objectInfoMap[name];
|
|
84776
84798
|
const { apiName } = objectInfo;
|
|
84777
84799
|
const type = schema.getType(apiName);
|
|
@@ -84840,7 +84862,7 @@ function createNewRecordQuery(schema, objectInfo, objectInfoMap) {
|
|
|
84840
84862
|
const { apiName, childRelationships, fields: fieldsRepresentation } = objectInfo;
|
|
84841
84863
|
typedScalars.add(`${apiName}_Filter`);
|
|
84842
84864
|
typedScalars.add(`${apiName}_OrderBy`);
|
|
84843
|
-
const { fields, polymorphicFieldTypeNames } = makeRecordField(values$
|
|
84865
|
+
const { fields, polymorphicFieldTypeNames } = makeRecordField(values$1(fieldsRepresentation), objectInfo, objectInfoMap, parentRelationshipFields, 'Missing');
|
|
84844
84866
|
// handles child relationship
|
|
84845
84867
|
const { spanningRecordConnections, typedScalars: spanningConnectionTypedScalars } = makeSpanningRecordConnections(schema, childRelationships, objectInfoMap, parentRelationshipFields);
|
|
84846
84868
|
typedScalars = new Set([...typedScalars, ...spanningConnectionTypedScalars]);
|
|
@@ -84898,8 +84920,8 @@ function extendExistingRecordType(schema, type, objectInfo, objectInfoMap) {
|
|
|
84898
84920
|
// use a set to not allow duplicate scalars causing error(s)
|
|
84899
84921
|
let typedScalars = new Set();
|
|
84900
84922
|
let parentRelationshipFields = new Set();
|
|
84901
|
-
const existingFields = keys$
|
|
84902
|
-
const missingFields = values$
|
|
84923
|
+
const existingFields = keys$2$1(type.getFields());
|
|
84924
|
+
const missingFields = values$1(objectInfo.fields).filter((field) => {
|
|
84903
84925
|
return (existingFields.includes(field.apiName) === false ||
|
|
84904
84926
|
(field.relationshipName !== null && field.referenceToInfos.length > 0));
|
|
84905
84927
|
});
|
|
@@ -84981,7 +85003,7 @@ function makeSpanningRecordConnections(schema, childRelationships, objectInfoMap
|
|
|
84981
85003
|
function makeRecordField(fieldRepresentations, objectInfo, objectInfoMap, existingParentRelationships, recordTypeInSchema, existingFields = []) {
|
|
84982
85004
|
const polymorphicFieldTypeNames = new Set();
|
|
84983
85005
|
let fields = ``;
|
|
84984
|
-
for (const field of values$
|
|
85006
|
+
for (const field of values$1(fieldRepresentations)) {
|
|
84985
85007
|
if (!fieldsStaticallyAdded.includes(field.apiName) && recordTypeInSchema === 'Missing') {
|
|
84986
85008
|
fields += `${field.apiName}: ${graphqlTypeForField(field, objectInfo)}\n`;
|
|
84987
85009
|
}
|
|
@@ -85549,7 +85571,7 @@ function isMineScopeAvailable(apiNamePath, pathToObjectApiNamesMap, objectInfos)
|
|
|
85549
85571
|
const objectInfo = objectInfos[apiName[0]];
|
|
85550
85572
|
if (!objectInfo)
|
|
85551
85573
|
return false;
|
|
85552
|
-
return values$
|
|
85574
|
+
return values$1(objectInfo.fields).some((fieldInfo) => {
|
|
85553
85575
|
return (fieldInfo.apiName === 'OwnerId' &&
|
|
85554
85576
|
fieldInfo.referenceToInfos.some((referenceToInfo) => {
|
|
85555
85577
|
return referenceToInfo.apiName === 'User';
|
|
@@ -85759,7 +85781,7 @@ async function resolveObjectInfos(objectInfotree, pathToObjectApiNamesMap, start
|
|
|
85759
85781
|
// eslint-disable-next-line
|
|
85760
85782
|
throw new Error(`Unable to resolve ObjectInfo(s) for ${Array.from(startNodes)}`);
|
|
85761
85783
|
}
|
|
85762
|
-
if (keys$
|
|
85784
|
+
if (keys$2$1(objectInfos).length < startNodes.size) {
|
|
85763
85785
|
// eslint-disable-next-line
|
|
85764
85786
|
throw new Error(`Unable to resolve ObjectInfo(s) for ${Array.from(startNodes)}`);
|
|
85765
85787
|
}
|
|
@@ -86787,7 +86809,7 @@ function removeSyntheticFields(result, query) {
|
|
|
86787
86809
|
output.data.uiapi = { ...output.data.uiapi };
|
|
86788
86810
|
output.data.uiapi.query = { ...output.data.uiapi.query };
|
|
86789
86811
|
const outputApiParent = output.data.uiapi.query;
|
|
86790
|
-
const keys = keys$
|
|
86812
|
+
const keys = keys$2$1(nodeJson);
|
|
86791
86813
|
keys.forEach((recordName) => {
|
|
86792
86814
|
const outputApi = {};
|
|
86793
86815
|
// Each connectionSelection's maps its name or alias to one of returned records. The record name could be `apiName' or alias
|
|
@@ -86807,7 +86829,7 @@ function removeSyntheticFields(result, query) {
|
|
|
86807
86829
|
* @param jsonOutput JsonObject which will be populated with properties. It would only contains properties defined in 'FieldNode'
|
|
86808
86830
|
*/
|
|
86809
86831
|
function createUserJsonOutput(selection, jsonInput, jsonOutput) {
|
|
86810
|
-
const keys = keys$
|
|
86832
|
+
const keys = keys$2$1(jsonInput);
|
|
86811
86833
|
if (selection.selectionSet) {
|
|
86812
86834
|
createjsonOutput(selection.selectionSet.selections, jsonInput, jsonOutput);
|
|
86813
86835
|
}
|
|
@@ -86816,7 +86838,7 @@ function createUserJsonOutput(selection, jsonInput, jsonOutput) {
|
|
|
86816
86838
|
}
|
|
86817
86839
|
}
|
|
86818
86840
|
function createjsonOutput(selections, jsonInput, jsonOutput) {
|
|
86819
|
-
const keys = keys$
|
|
86841
|
+
const keys = keys$2$1(jsonInput);
|
|
86820
86842
|
selections.filter(isFieldNode).forEach((subSelection) => {
|
|
86821
86843
|
const fieldName = subSelection.alias ? subSelection.alias.value : subSelection.name.value;
|
|
86822
86844
|
if (keys.includes(fieldName)) {
|
|
@@ -87224,7 +87246,7 @@ function findRecordQueryContainsFieldType(recordQueryNode, fieldNames) {
|
|
|
87224
87246
|
*/
|
|
87225
87247
|
function findFieldTypeInObjectInfo(objectInfos, fieldType) {
|
|
87226
87248
|
let fieldsWithDataType = [];
|
|
87227
|
-
keys$
|
|
87249
|
+
keys$2$1(objectInfos).filter((recordType) => {
|
|
87228
87250
|
for (const field in objectInfos[recordType].fields) {
|
|
87229
87251
|
if (objectInfos[recordType].fields[field].dataType === fieldType) {
|
|
87230
87252
|
fieldsWithDataType.push(field);
|
|
@@ -87255,7 +87277,7 @@ const replaceDraftIdsInVariables = (variables, draftFunctions, unmappedDraftIDs)
|
|
|
87255
87277
|
}
|
|
87256
87278
|
else if (typeof object === 'object' && object !== null) {
|
|
87257
87279
|
let source = object;
|
|
87258
|
-
return keys$
|
|
87280
|
+
return keys$2$1(source).reduce((acc, key) => {
|
|
87259
87281
|
acc[key] = replace(source[key]);
|
|
87260
87282
|
return acc;
|
|
87261
87283
|
}, {});
|
|
@@ -87264,7 +87286,7 @@ const replaceDraftIdsInVariables = (variables, draftFunctions, unmappedDraftIDs)
|
|
|
87264
87286
|
return object;
|
|
87265
87287
|
}
|
|
87266
87288
|
};
|
|
87267
|
-
let newVariables = keys$
|
|
87289
|
+
let newVariables = keys$2$1(variables).reduce((acc, key) => {
|
|
87268
87290
|
acc[key] = replace(variables[key]);
|
|
87269
87291
|
return acc;
|
|
87270
87292
|
}, {});
|
|
@@ -87719,16 +87741,16 @@ const recordIdGenerator = (id) => {
|
|
|
87719
87741
|
*/
|
|
87720
87742
|
|
|
87721
87743
|
|
|
87722
|
-
const { keys: keys$
|
|
87744
|
+
const { keys: keys$1$1, create: create$1$1, assign: assign$1$1, entries: entries$1 } = Object;
|
|
87723
87745
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
87724
87746
|
const { push: push$3, join, slice } = Array.prototype;
|
|
87725
87747
|
const { isArray: isArray$4, from } = Array;
|
|
87726
87748
|
|
|
87727
87749
|
function ldsParamsToString(params) {
|
|
87728
|
-
const returnParams = create$
|
|
87729
|
-
const keys$1 = keys$
|
|
87730
|
-
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
87731
|
-
const key = keys$1[i];
|
|
87750
|
+
const returnParams = create$1$1(null);
|
|
87751
|
+
const keys$1$1$1 = keys$1$1(params);
|
|
87752
|
+
for (let i = 0, len = keys$1$1$1.length; i < len; i++) {
|
|
87753
|
+
const key = keys$1$1$1[i];
|
|
87732
87754
|
const value = params[key];
|
|
87733
87755
|
if (value === undefined) {
|
|
87734
87756
|
// filter out params that have no value
|
|
@@ -87743,7 +87765,7 @@ function ldsParamsToString(params) {
|
|
|
87743
87765
|
else {
|
|
87744
87766
|
returnParams[key] = `${value}`;
|
|
87745
87767
|
}
|
|
87746
|
-
if (isObject(value) === true && keys$
|
|
87768
|
+
if (isObject(value) === true && keys$1$1(value).length > 0) {
|
|
87747
87769
|
returnParams[key] = stringify$1(value);
|
|
87748
87770
|
}
|
|
87749
87771
|
}
|
|
@@ -88142,7 +88164,7 @@ function buildAggregateUiUrl(params, resourceRequest) {
|
|
|
88142
88164
|
optionalFields,
|
|
88143
88165
|
};
|
|
88144
88166
|
const queryString = [];
|
|
88145
|
-
for (const [key, value] of entries$
|
|
88167
|
+
for (const [key, value] of entries$1(mergedParams)) {
|
|
88146
88168
|
if (value !== undefined) {
|
|
88147
88169
|
queryString.push(`${key}=${isArray$4(value) ? value.join(',') : value}`);
|
|
88148
88170
|
}
|
|
@@ -88158,7 +88180,7 @@ function isSpanningRecord(fieldValue) {
|
|
|
88158
88180
|
function mergeRecordFields(first, second) {
|
|
88159
88181
|
const { fields: targetFields } = first;
|
|
88160
88182
|
const { fields: sourceFields } = second;
|
|
88161
|
-
const fieldNames = keys$
|
|
88183
|
+
const fieldNames = keys$1$1(sourceFields);
|
|
88162
88184
|
for (let i = 0, len = fieldNames.length; i < len; i += 1) {
|
|
88163
88185
|
const fieldName = fieldNames[i];
|
|
88164
88186
|
const sourceField = sourceFields[fieldName];
|
|
@@ -88318,7 +88340,7 @@ function calculateEstimatedTotalUrlLength(request) {
|
|
|
88318
88340
|
const { baseUri, basePath, queryParams } = request;
|
|
88319
88341
|
let url = `${baseUri}${basePath}`;
|
|
88320
88342
|
if (queryParams) {
|
|
88321
|
-
const queryParamString = entries$
|
|
88343
|
+
const queryParamString = entries$1(queryParams)
|
|
88322
88344
|
.map(([key, value]) => `${key}=${value}`)
|
|
88323
88345
|
.join('&');
|
|
88324
88346
|
if (queryParamString) {
|
|
@@ -88749,7 +88771,7 @@ function instrumentDraftQueue(queue) {
|
|
|
88749
88771
|
logError: false,
|
|
88750
88772
|
});
|
|
88751
88773
|
};
|
|
88752
|
-
const overriddenQueue = create$
|
|
88774
|
+
const overriddenQueue = create$2$1(queue, { mergeActions: { value: mergeActions } });
|
|
88753
88775
|
overriddenQueue.registerOnChangedListener((draftQueueEvent) => {
|
|
88754
88776
|
switch (draftQueueEvent.type) {
|
|
88755
88777
|
case DraftQueueEventType.QueueStateChanged: {
|
|
@@ -88887,7 +88909,7 @@ function enableObjectInfoCaching(env, ensureObjectInfoCached) {
|
|
|
88887
88909
|
function dataIsObjectInfo(key, data) {
|
|
88888
88910
|
return incomingObjectInfos.has(key);
|
|
88889
88911
|
}
|
|
88890
|
-
return create$
|
|
88912
|
+
return create$2$1(env, {
|
|
88891
88913
|
handleSuccessResponse: { value: handleSuccessResponse },
|
|
88892
88914
|
storePublish: { value: storePublish },
|
|
88893
88915
|
});
|
|
@@ -88988,8 +89010,8 @@ class ObjectInfoService {
|
|
|
88988
89010
|
}
|
|
88989
89011
|
};
|
|
88990
89012
|
// Local in-memory cache for apiName to key prefixes
|
|
88991
|
-
this.apiNameToKeyPrefixMemoryCache = create$
|
|
88992
|
-
this.keyPrefixToApiNameMemoryCache = create$
|
|
89013
|
+
this.apiNameToKeyPrefixMemoryCache = create$2$1(null);
|
|
89014
|
+
this.keyPrefixToApiNameMemoryCache = create$2$1(null);
|
|
88993
89015
|
}
|
|
88994
89016
|
/**
|
|
88995
89017
|
* Size of return map not necessarily correlated with number of inputs. The
|
|
@@ -89145,7 +89167,7 @@ function registerReportObserver(reportObserver) {
|
|
|
89145
89167
|
};
|
|
89146
89168
|
}
|
|
89147
89169
|
|
|
89148
|
-
const { keys: keys$
|
|
89170
|
+
const { keys: keys$6, create: create$5, assign: assign$5, entries, values } = Object;
|
|
89149
89171
|
const { stringify: stringify$5, parse: parse$5 } = JSON;
|
|
89150
89172
|
|
|
89151
89173
|
function selectColumnsFromTableWhereKeyIn(columnNames, table, keyColumnName, whereIn) {
|
|
@@ -89212,7 +89234,7 @@ class LdsDataTable {
|
|
|
89212
89234
|
},
|
|
89213
89235
|
conflictColumns: this.conflictColumnNames,
|
|
89214
89236
|
columns: this.columnNames,
|
|
89215
|
-
rows: keys$
|
|
89237
|
+
rows: keys$6(entries).reduce((rows, key) => {
|
|
89216
89238
|
const entry = entries[key];
|
|
89217
89239
|
const { data, metadata } = entry;
|
|
89218
89240
|
const row = [key, stringify$5(data), metadata ? stringify$5(metadata) : null];
|
|
@@ -89231,7 +89253,7 @@ class LdsDataTable {
|
|
|
89231
89253
|
type: 'setMetadata',
|
|
89232
89254
|
},
|
|
89233
89255
|
columns: [COLUMN_NAME_METADATA$1],
|
|
89234
|
-
values: keys$
|
|
89256
|
+
values: keys$6(entries).reduce((values, key) => {
|
|
89235
89257
|
const { metadata } = entries[key];
|
|
89236
89258
|
const row = [metadata ? stringify$5(metadata) : null];
|
|
89237
89259
|
values[key] = row;
|
|
@@ -89321,7 +89343,7 @@ class LdsInternalDataTable {
|
|
|
89321
89343
|
},
|
|
89322
89344
|
conflictColumns: this.conflictColumnNames,
|
|
89323
89345
|
columns: this.columnNames,
|
|
89324
|
-
rows: keys$
|
|
89346
|
+
rows: keys$6(entries).reduce((rows, key) => {
|
|
89325
89347
|
const entry = entries[key];
|
|
89326
89348
|
const { data, metadata } = entry;
|
|
89327
89349
|
const row = [key, stringify$5(data)];
|
|
@@ -89347,7 +89369,7 @@ class LdsInternalDataTable {
|
|
|
89347
89369
|
type: 'setMetadata',
|
|
89348
89370
|
},
|
|
89349
89371
|
columns: [COLUMN_NAME_METADATA],
|
|
89350
|
-
values: keys$
|
|
89372
|
+
values: keys$6(entries).reduce((values, key) => {
|
|
89351
89373
|
const { metadata } = entries[key];
|
|
89352
89374
|
const row = [metadata ? stringify$5(metadata) : null];
|
|
89353
89375
|
values[key] = row;
|
|
@@ -89356,7 +89378,7 @@ class LdsInternalDataTable {
|
|
|
89356
89378
|
};
|
|
89357
89379
|
}
|
|
89358
89380
|
metadataToUpdateSQLQueries(entries, segment) {
|
|
89359
|
-
return keys$
|
|
89381
|
+
return keys$6(entries).reduce((accu, key) => {
|
|
89360
89382
|
const { metadata } = entries[key];
|
|
89361
89383
|
if (metadata !== undefined) {
|
|
89362
89384
|
accu.push({
|
|
@@ -89430,7 +89452,7 @@ class NimbusSqliteStore {
|
|
|
89430
89452
|
.finally(() => tasker.done());
|
|
89431
89453
|
}
|
|
89432
89454
|
setEntries(entries, segment) {
|
|
89433
|
-
if (keys$
|
|
89455
|
+
if (keys$6(entries).length === 0) {
|
|
89434
89456
|
return Promise.resolve();
|
|
89435
89457
|
}
|
|
89436
89458
|
const table = this.getTable(segment);
|
|
@@ -89438,7 +89460,7 @@ class NimbusSqliteStore {
|
|
|
89438
89460
|
return this.batchOperationAsPromise([upsertOperation]);
|
|
89439
89461
|
}
|
|
89440
89462
|
setMetadata(entries, segment) {
|
|
89441
|
-
if (keys$
|
|
89463
|
+
if (keys$6(entries).length === 0) {
|
|
89442
89464
|
return Promise.resolve();
|
|
89443
89465
|
}
|
|
89444
89466
|
const table = this.getTable(segment);
|
|
@@ -89448,13 +89470,13 @@ class NimbusSqliteStore {
|
|
|
89448
89470
|
batchOperations(operations) {
|
|
89449
89471
|
const sqliteOperations = operations.reduce((acc, cur) => {
|
|
89450
89472
|
if (cur.type === 'setEntries') {
|
|
89451
|
-
if (keys$
|
|
89473
|
+
if (keys$6(cur.entries).length > 0) {
|
|
89452
89474
|
const table = this.getTable(cur.segment);
|
|
89453
89475
|
acc.push(table.entriesToUpsertOperations(cur.entries, cur.segment));
|
|
89454
89476
|
}
|
|
89455
89477
|
}
|
|
89456
89478
|
else if (cur.type === 'setMetadata') {
|
|
89457
|
-
if (keys$
|
|
89479
|
+
if (keys$6(cur.entries).length > 0) {
|
|
89458
89480
|
const table = this.getTable(cur.segment);
|
|
89459
89481
|
acc.push(table.metadataToUpdateOperations(cur.entries, cur.segment));
|
|
89460
89482
|
}
|
|
@@ -89577,7 +89599,7 @@ class AbstractKeyValueDataTable {
|
|
|
89577
89599
|
},
|
|
89578
89600
|
conflictColumns: this.conflictColumnNames,
|
|
89579
89601
|
columns: this.columnNames,
|
|
89580
|
-
rows: keys$
|
|
89602
|
+
rows: keys$6(entries).reduce((rows, key) => {
|
|
89581
89603
|
const entry = entries[key];
|
|
89582
89604
|
rows.push([key, stringify$5(entry.data)]);
|
|
89583
89605
|
return rows;
|
|
@@ -89745,7 +89767,7 @@ function makeEnvironmentGraphqlAware(environment) {
|
|
|
89745
89767
|
}
|
|
89746
89768
|
return environment.applyCachePolicy(luvio, adapterRequestContext, buildSnapshotContext, localBuildCachedSnapshot, buildNetworkSnapshot);
|
|
89747
89769
|
};
|
|
89748
|
-
return create$
|
|
89770
|
+
return create$2$1(environment, {
|
|
89749
89771
|
rebuildSnapshot: { value: rebuildSnapshot },
|
|
89750
89772
|
applyCachePolicy: { value: applyCachePolicy },
|
|
89751
89773
|
setDefaultCachePolicy: { value: environment.setDefaultCachePolicy.bind(environment) },
|
|
@@ -91166,7 +91188,7 @@ async function aggressiveTrim(data, deallocateFn, options = {}) {
|
|
|
91166
91188
|
const batchSize = options.batchSize !== undefined ? options.batchSize : DEFAULT_MAX_BATCH_SIZE;
|
|
91167
91189
|
let deallocatedCount = 0;
|
|
91168
91190
|
const { pendingTrimKeys, retainedIds, storeRecords } = data;
|
|
91169
|
-
const storeKeyLength = keys$
|
|
91191
|
+
const storeKeyLength = keys$2$1(storeRecords).length;
|
|
91170
91192
|
if (storeKeyLength <= maxStoreRecords) {
|
|
91171
91193
|
return { deallocatedCount, trimKeysSkipped: pendingTrimKeys };
|
|
91172
91194
|
}
|
|
@@ -91242,78 +91264,6 @@ function setupObserver() {
|
|
|
91242
91264
|
}
|
|
91243
91265
|
}
|
|
91244
91266
|
|
|
91245
|
-
/**
|
|
91246
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
91247
|
-
* All rights reserved.
|
|
91248
|
-
* For full license text, see the LICENSE.txt file
|
|
91249
|
-
*/
|
|
91250
|
-
|
|
91251
|
-
|
|
91252
|
-
const { keys: keys$7, values, create: create$6, assign: assign$6, freeze: freeze$3, entries } = Object;
|
|
91253
|
-
function isStoreKeyRecordId(key) {
|
|
91254
|
-
return key.indexOf(RECORD_ID_PREFIX$1) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1;
|
|
91255
|
-
}
|
|
91256
|
-
function isEntryDurableRecordRepresentation(entry, key) {
|
|
91257
|
-
// Either a DurableRecordRepresentation or StoreRecordError can live at a record key
|
|
91258
|
-
return ((isStoreKeyRecordId(key) || isStoreKeyRecordViewEntity$1(key)) &&
|
|
91259
|
-
entry.data.__type === undefined);
|
|
91260
|
-
}
|
|
91261
|
-
|
|
91262
|
-
// TODO [W-15983267]: this is here for backwards compatibility from <252 and can be removed in 256
|
|
91263
|
-
// This HOF ensures that missing links that are stored in the "links" property in the durable store get restored to the "fields" property.
|
|
91264
|
-
// this code is necessary for backwards compatibility with records that were stored in the durable store before the "links" property was removed.
|
|
91265
|
-
function makeDurableStoreBackwardsCompatible(durableStore) {
|
|
91266
|
-
const getEntries = function (entries, segment) {
|
|
91267
|
-
// this HOF only inspects records in the default segment
|
|
91268
|
-
if (segment !== DefaultDurableSegment) {
|
|
91269
|
-
return durableStore.getEntries(entries, segment);
|
|
91270
|
-
}
|
|
91271
|
-
const { length: entriesLength } = entries;
|
|
91272
|
-
if (entriesLength === 0) {
|
|
91273
|
-
return Promise.resolve({});
|
|
91274
|
-
}
|
|
91275
|
-
// call base getEntries
|
|
91276
|
-
return durableStore.getEntries(entries, segment).then((durableEntries) => {
|
|
91277
|
-
if (durableEntries === undefined) {
|
|
91278
|
-
return undefined;
|
|
91279
|
-
}
|
|
91280
|
-
const returnEntries = create$6(null);
|
|
91281
|
-
const keys$1 = keys$7(durableEntries);
|
|
91282
|
-
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
91283
|
-
const key = keys$1[i];
|
|
91284
|
-
const value = durableEntries[key];
|
|
91285
|
-
if (value === undefined) {
|
|
91286
|
-
continue;
|
|
91287
|
-
}
|
|
91288
|
-
if (isEntryDurableRecordRepresentation(value, key)) {
|
|
91289
|
-
const record = value.data;
|
|
91290
|
-
const { links } = record;
|
|
91291
|
-
if (links !== undefined) {
|
|
91292
|
-
const missingLinks = keys$7(links);
|
|
91293
|
-
for (let j = 0, len = missingLinks.length; j < len; j++) {
|
|
91294
|
-
const fieldName = missingLinks[j];
|
|
91295
|
-
const link = links[fieldName];
|
|
91296
|
-
if (link !== undefined && link.isMissing === true) {
|
|
91297
|
-
record.fields[fieldName] = {
|
|
91298
|
-
__state: { isMissing: true },
|
|
91299
|
-
value: undefined,
|
|
91300
|
-
displayValue: undefined,
|
|
91301
|
-
};
|
|
91302
|
-
}
|
|
91303
|
-
}
|
|
91304
|
-
delete record.links;
|
|
91305
|
-
}
|
|
91306
|
-
}
|
|
91307
|
-
returnEntries[key] = value;
|
|
91308
|
-
}
|
|
91309
|
-
return returnEntries;
|
|
91310
|
-
});
|
|
91311
|
-
};
|
|
91312
|
-
return create$6(durableStore, {
|
|
91313
|
-
getEntries: { value: getEntries, writable: true },
|
|
91314
|
-
});
|
|
91315
|
-
}
|
|
91316
|
-
|
|
91317
91267
|
function select$1$1(luvio, config) {
|
|
91318
91268
|
const { query, variables, operationName } = config;
|
|
91319
91269
|
return select$2$1(luvio, query, variables, operationName);
|
|
@@ -91881,7 +91831,7 @@ class SideEffectStore {
|
|
|
91881
91831
|
if (idsToFetch.size > 0) {
|
|
91882
91832
|
const effects = await durableStore.getEntries(Array.from(idsToFetch), SIDE_EFFECT_SEGMENT);
|
|
91883
91833
|
if (effects !== undefined) {
|
|
91884
|
-
keys$
|
|
91834
|
+
keys$2$1(effects).forEach((effectId) => {
|
|
91885
91835
|
const effect = effects[effectId].data;
|
|
91886
91836
|
const key = effect.uniqueId;
|
|
91887
91837
|
this.allEffects.set(key, effect);
|
|
@@ -91935,7 +91885,7 @@ class SideEffectStore {
|
|
|
91935
91885
|
if (effects === undefined) {
|
|
91936
91886
|
return;
|
|
91937
91887
|
}
|
|
91938
|
-
keys$
|
|
91888
|
+
keys$2$1(effects).forEach((effectId) => {
|
|
91939
91889
|
const effect = effects[effectId].data;
|
|
91940
91890
|
const key = effect.uniqueId;
|
|
91941
91891
|
this.allEffects.set(key, effect);
|
|
@@ -92006,7 +91956,7 @@ class SideEffectService {
|
|
|
92006
91956
|
const draftFields = await this.synthesizeFieldsFromParts(fields, apiName);
|
|
92007
91957
|
const timestampString = new Date(timestamp).toISOString();
|
|
92008
91958
|
const systemFields = this.generateSystemFields(timestampString, id);
|
|
92009
|
-
assign$
|
|
91959
|
+
assign$2(draftFields, systemFields);
|
|
92010
91960
|
const objectInfo = await this.ensureObjectInfo(apiName);
|
|
92011
91961
|
this.fillMissingFields(draftFields, objectInfo);
|
|
92012
91962
|
let recordTypeId = this.determineRecordTypeId(fields, objectInfo);
|
|
@@ -92068,7 +92018,7 @@ class SideEffectService {
|
|
|
92068
92018
|
async synthesizeFieldsFromParts(fields, apiName) {
|
|
92069
92019
|
const objectInfo = await this.ensureObjectInfo(apiName);
|
|
92070
92020
|
const recordFields = {};
|
|
92071
|
-
for (const fieldName of keys$
|
|
92021
|
+
for (const fieldName of keys$2$1(fields)) {
|
|
92072
92022
|
const draftField = fields[fieldName] ?? null;
|
|
92073
92023
|
recordFields[fieldName] = { value: draftField, displayValue: null };
|
|
92074
92024
|
const fieldInfo = objectInfo.fields[fieldName];
|
|
@@ -92091,7 +92041,7 @@ class SideEffectService {
|
|
|
92091
92041
|
let patchedFields = await this.synthesizeFieldsFromParts(fields, apiName);
|
|
92092
92042
|
if (existingRecord) {
|
|
92093
92043
|
const nameFields = this.getCompoundNameFields(existingRecord, patchedFields, objectInfo);
|
|
92094
|
-
assign$
|
|
92044
|
+
assign$2(patchedFields, nameFields);
|
|
92095
92045
|
this.patchIfExists(DEFAULT_FIELD_LAST_MODIFIED_BY_ID, { value: this.userId, displayValue: null }, existingRecord.fields, patchedFields);
|
|
92096
92046
|
this.patchIfExists(DEFAULT_FIELD_LAST_MODIFIED_BY, {
|
|
92097
92047
|
value: this.createLink(buildRecordRepKeyFromId$1(this.userId)),
|
|
@@ -92149,7 +92099,7 @@ class SideEffectService {
|
|
|
92149
92099
|
changedNameFields[fieldName] = fieldValue;
|
|
92150
92100
|
}
|
|
92151
92101
|
}
|
|
92152
|
-
if (keys$
|
|
92102
|
+
if (keys$2$1(changedNameFields).length > 0) {
|
|
92153
92103
|
const newNameValue = filteredNameFields
|
|
92154
92104
|
.map((key) => {
|
|
92155
92105
|
if (changedNameFields[key] !== undefined) {
|
|
@@ -92270,7 +92220,7 @@ class UpdateRecordEffectHandler {
|
|
|
92270
92220
|
}
|
|
92271
92221
|
const patchedFields = effect.recordPatch.fields;
|
|
92272
92222
|
if (patchedFields) {
|
|
92273
|
-
const fieldNames = keys$
|
|
92223
|
+
const fieldNames = keys$2$1(patchedFields);
|
|
92274
92224
|
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
92275
92225
|
const fieldName = fieldNames[i];
|
|
92276
92226
|
// don't apply server values to draft created records
|
|
@@ -92429,7 +92379,7 @@ function removeEffects(record) {
|
|
|
92429
92379
|
return undefined;
|
|
92430
92380
|
}
|
|
92431
92381
|
const updatedFields = {};
|
|
92432
|
-
const fieldNames = keys$
|
|
92382
|
+
const fieldNames = keys$2$1(fields);
|
|
92433
92383
|
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
92434
92384
|
const fieldName = fieldNames[i];
|
|
92435
92385
|
const field = fields[fieldName];
|
|
@@ -92469,7 +92419,7 @@ function createLink$3(key) {
|
|
|
92469
92419
|
|
|
92470
92420
|
function enableSideEffectsOnEnvironment(env, sideEffectStore) {
|
|
92471
92421
|
const storePublish = function (key, data) {
|
|
92472
|
-
if (isStoreKeyRecordId
|
|
92422
|
+
if (isStoreKeyRecordId(key) === false || isStoreRecordError$1(data)) {
|
|
92473
92423
|
return env.storePublish(key, data);
|
|
92474
92424
|
}
|
|
92475
92425
|
const effects = sideEffectStore.getEffects(key);
|
|
@@ -92526,7 +92476,7 @@ class DurableRecordStore {
|
|
|
92526
92476
|
if (entries === undefined) {
|
|
92527
92477
|
return directory;
|
|
92528
92478
|
}
|
|
92529
|
-
keys$
|
|
92479
|
+
keys$2$1(entries).forEach((key) => {
|
|
92530
92480
|
const { data: record, metadata } = entries[key];
|
|
92531
92481
|
if (isStoreRecordError(record)) {
|
|
92532
92482
|
return;
|
|
@@ -92561,13 +92511,13 @@ let lazyGetRecords;
|
|
|
92561
92511
|
let lazySideEffectStore;
|
|
92562
92512
|
let lazySideEffectService;
|
|
92563
92513
|
const shouldFlush = (key, value) => {
|
|
92564
|
-
if (!isStoreKeyRecordId
|
|
92514
|
+
if (!isStoreKeyRecordId(key)) {
|
|
92565
92515
|
return { flushValue: true };
|
|
92566
92516
|
}
|
|
92567
92517
|
if (value && typeof value === 'object') {
|
|
92568
92518
|
const fields = value.fields;
|
|
92569
92519
|
if (fields && typeof fields === 'object') {
|
|
92570
|
-
const keys = keys$
|
|
92520
|
+
const keys = keys$2$1(fields);
|
|
92571
92521
|
for (const key of keys) {
|
|
92572
92522
|
const field = fields[key];
|
|
92573
92523
|
if (fields && field.__state && field.__state.pending === true) {
|
|
@@ -92603,7 +92553,7 @@ function getRuntime() {
|
|
|
92603
92553
|
lazyNetworkAdapter = platformNetworkAdapter(makeNetworkAdapterChunkRecordFields(NimbusNetworkAdapter, {
|
|
92604
92554
|
reportChunkCandidateUrlLength: reportChunkCandidateUrlLength,
|
|
92605
92555
|
}));
|
|
92606
|
-
lazyDurableStore =
|
|
92556
|
+
lazyDurableStore = getNimbusDurableStore();
|
|
92607
92557
|
lazyDurableRecordStore = new DurableRecordStore(lazyDurableStore, () => lazyLuvio);
|
|
92608
92558
|
// specific adapters
|
|
92609
92559
|
const internalAdapterStore = new InMemoryStore();
|
|
@@ -92626,7 +92576,7 @@ function getRuntime() {
|
|
|
92626
92576
|
const draftService = new UiApiDraftRecordService(() => lazyLuvio, lazyDurableStore, lazyObjectInfoService, newRecordId, lazySideEffectStore, lazyDurableRecordStore);
|
|
92627
92577
|
const uiApiRecordHandler = new UiApiActionHandler(() => lazyLuvio, lazyNetworkAdapter, lazyDraftQueue, getRecord, lazyObjectInfoService, isGenerated, draftService, lazySideEffectService, lazyDurableRecordStore);
|
|
92628
92578
|
uiApiRecordHandler.setSideEffectHooks(sfsSideEffectHooks);
|
|
92629
|
-
const quickActionHandler = new QuickActionExecutionRepresentationHandler(() => lazyLuvio, draftService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, lazySideEffectService);
|
|
92579
|
+
const quickActionHandler = new QuickActionExecutionRepresentationHandler(() => lazyLuvio, draftService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, lazySideEffectService, lazyObjectInfoService, getRecord);
|
|
92630
92580
|
const updateRecordQuickActionHandler = new UpdateRecordQuickActionExecutionRepresentationHandler(() => lazyLuvio, draftService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, lazySideEffectService);
|
|
92631
92581
|
const contentDocumentCompositeActionHandler = new ContentDocumentCompositeRepresentationActionHandler(() => lazyLuvio, userId, draftService, lazyObjectInfoService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, NimbusBinaryStore, lazySideEffectService);
|
|
92632
92582
|
lazyDraftQueue.addHandler(uiApiRecordHandler);
|
|
@@ -92697,6 +92647,7 @@ function getRuntime() {
|
|
|
92697
92647
|
configuration.setGetRelatedListRecordsAdapterFactory(getRelatedListRecordsAdapterFactory);
|
|
92698
92648
|
configuration.setGetRelatedListRecordsBatchAdapterFactory(getRelatedListRecordsBatchAdapterFactory);
|
|
92699
92649
|
configuration.setGetSearchResultsAdapterFactory(getSearchResultsAdapterFactory);
|
|
92650
|
+
configuration.setRecordRepresentationIngestionOverride(ingest$1o);
|
|
92700
92651
|
configureUIAPIGraphQL(registration);
|
|
92701
92652
|
});
|
|
92702
92653
|
withRegistration('@salesforce/lds-adapters-uiapi/graphql', configureUIAPIGraphQL);
|
|
@@ -92732,7 +92683,7 @@ register$1({
|
|
|
92732
92683
|
id: '@salesforce/lds-network-adapter',
|
|
92733
92684
|
instrument: instrument$2,
|
|
92734
92685
|
});
|
|
92735
|
-
// version: 1.
|
|
92686
|
+
// version: 1.342.0-651bed9637
|
|
92736
92687
|
|
|
92737
92688
|
const { create: create$2, keys: keys$2 } = Object;
|
|
92738
92689
|
const { stringify, parse } = JSON;
|
|
@@ -114162,6 +114113,7 @@ let relatedListsPredictionsEnabled$1 = false;
|
|
|
114162
114113
|
* Determines whether to include additional PDL strategies for Related Lists
|
|
114163
114114
|
*/
|
|
114164
114115
|
let relatedListsPlusPredictionsEnabled$1 = false;
|
|
114116
|
+
let recordRepresentationIngestionOverride$1 = undefined;
|
|
114165
114117
|
/**
|
|
114166
114118
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
114167
114119
|
* Configuration for one store enabled REST adapters only.
|
|
@@ -114267,6 +114219,12 @@ const configurationForRestAdapters$1 = {
|
|
|
114267
114219
|
areRelatedListsPlusPredictionsEnabled: function () {
|
|
114268
114220
|
return relatedListsPlusPredictionsEnabled$1 === true;
|
|
114269
114221
|
},
|
|
114222
|
+
setRecordRepresentationIngestionOverride: function (ingest) {
|
|
114223
|
+
recordRepresentationIngestionOverride$1 = ingest;
|
|
114224
|
+
},
|
|
114225
|
+
getRecordRepresentationIngestionOverride: function () {
|
|
114226
|
+
return recordRepresentationIngestionOverride$1;
|
|
114227
|
+
},
|
|
114270
114228
|
// createRecord
|
|
114271
114229
|
getDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$1.getAdapter,
|
|
114272
114230
|
setDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter$1.setAdapter,
|
|
@@ -115309,7 +115267,7 @@ register$1({
|
|
|
115309
115267
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
115310
115268
|
instrument: instrument$1,
|
|
115311
115269
|
});
|
|
115312
|
-
// version: 1.
|
|
115270
|
+
// version: 1.342.0-f478af8b93
|
|
115313
115271
|
|
|
115314
115272
|
// On core the unstable adapters are re-exported with different names,
|
|
115315
115273
|
// we want to match them here.
|
|
@@ -115461,7 +115419,7 @@ withDefaultLuvio((luvio) => {
|
|
|
115461
115419
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
115462
115420
|
graphQLImperative = ldsAdapter;
|
|
115463
115421
|
});
|
|
115464
|
-
// version: 1.
|
|
115422
|
+
// version: 1.342.0-f478af8b93
|
|
115465
115423
|
|
|
115466
115424
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
115467
115425
|
__proto__: null,
|
|
@@ -115874,7 +115832,16 @@ function invokeAdapterWithMetadata(adapterId, config, metadata, onResponse, nati
|
|
|
115874
115832
|
return;
|
|
115875
115833
|
}
|
|
115876
115834
|
if (adapterId === 'deleteRecord') {
|
|
115877
|
-
|
|
115835
|
+
draftManager.stopQueueWhileRunning(() => {
|
|
115836
|
+
return new Promise((resolve) => {
|
|
115837
|
+
const onResponseWrapper = (response) => {
|
|
115838
|
+
resolve(response);
|
|
115839
|
+
};
|
|
115840
|
+
invokeAdapterWithMetadataDeleteRecord(adapter, config, metadata, onResponseWrapper, nativeAdapterRequestContext);
|
|
115841
|
+
}).then((callbackValue) => {
|
|
115842
|
+
onResponse(callbackValue);
|
|
115843
|
+
});
|
|
115844
|
+
});
|
|
115878
115845
|
}
|
|
115879
115846
|
else {
|
|
115880
115847
|
draftManager.stopQueueWhileRunning(() => {
|
|
@@ -116244,7 +116211,7 @@ const callbacks$1 = [];
|
|
|
116244
116211
|
function register(r) {
|
|
116245
116212
|
callbacks$1.forEach((callback) => callback(r));
|
|
116246
116213
|
}
|
|
116247
|
-
// version: 1.
|
|
116214
|
+
// version: 1.342.0-651bed9637
|
|
116248
116215
|
|
|
116249
116216
|
/**
|
|
116250
116217
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -116318,6 +116285,7 @@ let relatedListsPredictionsEnabled = false;
|
|
|
116318
116285
|
* Determines whether to include additional PDL strategies for Related Lists
|
|
116319
116286
|
*/
|
|
116320
116287
|
let relatedListsPlusPredictionsEnabled = false;
|
|
116288
|
+
let recordRepresentationIngestionOverride = undefined;
|
|
116321
116289
|
/**
|
|
116322
116290
|
* Defines the configuration API and is exposed internally as well as externally.
|
|
116323
116291
|
* Configuration for one store enabled REST adapters only.
|
|
@@ -116423,6 +116391,12 @@ const configurationForRestAdapters = {
|
|
|
116423
116391
|
areRelatedListsPlusPredictionsEnabled: function () {
|
|
116424
116392
|
return relatedListsPlusPredictionsEnabled === true;
|
|
116425
116393
|
},
|
|
116394
|
+
setRecordRepresentationIngestionOverride: function (ingest) {
|
|
116395
|
+
recordRepresentationIngestionOverride = ingest;
|
|
116396
|
+
},
|
|
116397
|
+
getRecordRepresentationIngestionOverride: function () {
|
|
116398
|
+
return recordRepresentationIngestionOverride;
|
|
116399
|
+
},
|
|
116426
116400
|
// createRecord
|
|
116427
116401
|
getDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter.getAdapter,
|
|
116428
116402
|
setDraftAwareCreateRecordAdapter: configurableCreateRecordAdapter.setAdapter,
|
|
@@ -117317,4 +117291,4 @@ const { luvio } = getRuntime();
|
|
|
117317
117291
|
setDefaultLuvio({ luvio });
|
|
117318
117292
|
|
|
117319
117293
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
117320
|
-
// version: 1.
|
|
117294
|
+
// version: 1.342.0-651bed9637
|