@salesforce/lds-worker-api 1.341.0 → 1.343.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.343.0-f39f04aaf6
|
|
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.343.0-f39f04aaf6
|
|
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.
|
|
@@ -5536,7 +5536,7 @@ ObjectCreate$4(null);
|
|
|
5536
5536
|
|
|
5537
5537
|
ObjectCreate$4(null);
|
|
5538
5538
|
|
|
5539
|
-
freeze$
|
|
5539
|
+
freeze$4({
|
|
5540
5540
|
name: '',
|
|
5541
5541
|
children: {},
|
|
5542
5542
|
});
|
|
@@ -6033,7 +6033,7 @@ function buildAdapterValidationConfig$3(displayName, paramsMeta) {
|
|
|
6033
6033
|
}
|
|
6034
6034
|
const keyPrefix$3 = 'UiApi';
|
|
6035
6035
|
|
|
6036
|
-
const { assign: assign$
|
|
6036
|
+
const { assign: assign$6, create: create$6, freeze: freeze$3, isFrozen: isFrozen$3, keys: keys$7 } = Object;
|
|
6037
6037
|
const { hasOwnProperty: hasOwnProperty$3 } = Object.prototype;
|
|
6038
6038
|
const { split: split$1, endsWith: endsWith$1 } = String.prototype;
|
|
6039
6039
|
const { isArray: isArray$5 } = Array;
|
|
@@ -6062,7 +6062,7 @@ function dedupe$3(value) {
|
|
|
6062
6062
|
for (let i = 0, len = value.length; i < len; i += 1) {
|
|
6063
6063
|
result[value[i]] = true;
|
|
6064
6064
|
}
|
|
6065
|
-
return keys$
|
|
6065
|
+
return keys$7(result);
|
|
6066
6066
|
}
|
|
6067
6067
|
/**
|
|
6068
6068
|
* @param source The array of string to filter
|
|
@@ -6943,14 +6943,14 @@ const getTypeCacheKeys$X$2 = (rootKeySet, luvio, input, _fullPathFactory) => {
|
|
|
6943
6943
|
mergeable: true,
|
|
6944
6944
|
});
|
|
6945
6945
|
const input_childRelationships = input.childRelationships;
|
|
6946
|
-
const input_childRelationships_keys = keys$
|
|
6946
|
+
const input_childRelationships_keys = keys$7(input_childRelationships);
|
|
6947
6947
|
const input_childRelationships_length = input_childRelationships_keys.length;
|
|
6948
6948
|
for (let i = 0; i < input_childRelationships_length; i++) {
|
|
6949
6949
|
const key = input_childRelationships_keys[i];
|
|
6950
6950
|
getTypeCacheKeys$W$2(rootKeySet, luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
|
|
6951
6951
|
}
|
|
6952
6952
|
const input_fields = input.fields;
|
|
6953
|
-
const input_fields_keys = keys$
|
|
6953
|
+
const input_fields_keys = keys$7(input_fields);
|
|
6954
6954
|
const input_fields_length = input_fields_keys.length;
|
|
6955
6955
|
for (let i = 0; i < input_fields_length; i++) {
|
|
6956
6956
|
const key = input_fields_keys[i];
|
|
@@ -8993,7 +8993,7 @@ function convertRecordFieldsArrayToTrie$1(fields, optionalFields = []) {
|
|
|
8993
8993
|
function createPathSelection$1(propertyName, fieldDefinition) {
|
|
8994
8994
|
const fieldsSelection = [];
|
|
8995
8995
|
const { children } = fieldDefinition;
|
|
8996
|
-
const childrenKeys = keys$
|
|
8996
|
+
const childrenKeys = keys$7(children);
|
|
8997
8997
|
for (let i = 0, len = childrenKeys.length; i < len; i += 1) {
|
|
8998
8998
|
const childKey = childrenKeys[i];
|
|
8999
8999
|
const childFieldDefinition = children[childKey];
|
|
@@ -9038,7 +9038,7 @@ function createPathSelection$1(propertyName, fieldDefinition) {
|
|
|
9038
9038
|
*/
|
|
9039
9039
|
function createPathSelectionFromValue$1(fields) {
|
|
9040
9040
|
const fieldsSelection = [];
|
|
9041
|
-
const fieldNames = keys$
|
|
9041
|
+
const fieldNames = keys$7(fields);
|
|
9042
9042
|
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
9043
9043
|
const fieldName = fieldNames[i];
|
|
9044
9044
|
const { value: fieldValue } = fields[fieldName];
|
|
@@ -9077,7 +9077,7 @@ function createPathSelectionFromValue$1(fields) {
|
|
|
9077
9077
|
}
|
|
9078
9078
|
function extractRecordFieldsRecursively$1(record) {
|
|
9079
9079
|
const fields = [];
|
|
9080
|
-
const fieldNames = keys$
|
|
9080
|
+
const fieldNames = keys$7(record.fields);
|
|
9081
9081
|
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
9082
9082
|
const fieldName = fieldNames[i];
|
|
9083
9083
|
const { value: fieldValue } = record.fields[fieldName];
|
|
@@ -9270,7 +9270,7 @@ function extractTrackedFieldsToTrie$1(recordId, node, root, config, visitedRecor
|
|
|
9270
9270
|
// For a spanning record that is detected to be a circular reference, we add the field along with Id and Name.
|
|
9271
9271
|
// It's possible for spanning record lookup fields to sometimes be circular, and sometimes not - depending on the value of the lookup field.
|
|
9272
9272
|
// For more information on scenarios that caused this fix: search "LDS Recursive Spanning Fields Problem" in Quip
|
|
9273
|
-
if (keys$
|
|
9273
|
+
if (keys$7(next.children).length === 0) {
|
|
9274
9274
|
addScalarFieldId$1(next);
|
|
9275
9275
|
addScalarFieldName$1(next);
|
|
9276
9276
|
}
|
|
@@ -9323,13 +9323,13 @@ function isExternalLookupFieldKey$1(spanningNode) {
|
|
|
9323
9323
|
return endsWith$1.call(spanningNode.scalar('apiName'), CUSTOM_EXTERNAL_OBJECT_FIELD_SUFFIX$1);
|
|
9324
9324
|
}
|
|
9325
9325
|
function convertTrieToFields$1(root) {
|
|
9326
|
-
if (keys$
|
|
9326
|
+
if (keys$7(root.children).length === 0) {
|
|
9327
9327
|
return [];
|
|
9328
9328
|
}
|
|
9329
9329
|
return convertTrieToFieldsRecursively$1(root);
|
|
9330
9330
|
}
|
|
9331
9331
|
function convertTrieToFieldsRecursively$1(root) {
|
|
9332
|
-
const childKeys = keys$
|
|
9332
|
+
const childKeys = keys$7(root.children);
|
|
9333
9333
|
if (childKeys.length === 0) {
|
|
9334
9334
|
if (root.name === '') {
|
|
9335
9335
|
return [];
|
|
@@ -9338,7 +9338,7 @@ function convertTrieToFieldsRecursively$1(root) {
|
|
|
9338
9338
|
}
|
|
9339
9339
|
return reduce$3.call(childKeys, (acc, cur) => concat$3.call(acc, convertTrieToFieldsRecursively$1(root.children[cur]).map((i) => `${root.name}.${i}`)), []);
|
|
9340
9340
|
}
|
|
9341
|
-
const BLANK_RECORD_FIELDS_TRIE$1 = freeze$
|
|
9341
|
+
const BLANK_RECORD_FIELDS_TRIE$1 = freeze$3({
|
|
9342
9342
|
name: '',
|
|
9343
9343
|
children: {},
|
|
9344
9344
|
});
|
|
@@ -9368,7 +9368,7 @@ const getObjectNameFromField$1 = (field) => {
|
|
|
9368
9368
|
function mergeFieldsTries$1(rootA, rootB) {
|
|
9369
9369
|
const rootAchildren = rootA.children;
|
|
9370
9370
|
const rootBchildren = rootB.children;
|
|
9371
|
-
const childBKeys = keys$
|
|
9371
|
+
const childBKeys = keys$7(rootBchildren);
|
|
9372
9372
|
for (let i = 0, len = childBKeys.length; i < len; i++) {
|
|
9373
9373
|
const childBKey = childBKeys[i];
|
|
9374
9374
|
if (rootAchildren[childBKey] === undefined) {
|
|
@@ -9528,8 +9528,8 @@ function isSuperRecordFieldTrie$1(a, b) {
|
|
|
9528
9528
|
}
|
|
9529
9529
|
const childrenA = a.children;
|
|
9530
9530
|
const childrenB = b.children;
|
|
9531
|
-
const childKeysA = keys$
|
|
9532
|
-
const childKeysB = keys$
|
|
9531
|
+
const childKeysA = keys$7(childrenA);
|
|
9532
|
+
const childKeysB = keys$7(childrenB);
|
|
9533
9533
|
const childKeysBLength = childKeysB.length;
|
|
9534
9534
|
if (childKeysBLength > childKeysA.length) {
|
|
9535
9535
|
return false;
|
|
@@ -9571,7 +9571,7 @@ function ingestRecordResponse(luvio, response, recordId, recordIngest, conflictM
|
|
|
9571
9571
|
function mergePendingFields$1(newRecord, oldRecord, existingNode) {
|
|
9572
9572
|
const mergedFields = { ...newRecord.fields };
|
|
9573
9573
|
const merged = { ...newRecord, fields: mergedFields };
|
|
9574
|
-
const existingFields = keys$
|
|
9574
|
+
const existingFields = keys$7(oldRecord.fields);
|
|
9575
9575
|
for (let i = 0, len = existingFields.length; i < len; i += 1) {
|
|
9576
9576
|
const spanningFieldName = existingFields[i];
|
|
9577
9577
|
if (newRecord.fields[spanningFieldName] === undefined) {
|
|
@@ -9739,7 +9739,7 @@ function merge$3(existing, incoming, luvio, _path, recordConflictMap) {
|
|
|
9739
9739
|
if (isGraphNode$1(node)) {
|
|
9740
9740
|
const dependencies = node.retrieve();
|
|
9741
9741
|
if (dependencies !== null) {
|
|
9742
|
-
const depKeys = keys$
|
|
9742
|
+
const depKeys = keys$7(dependencies);
|
|
9743
9743
|
for (let i = 0, len = depKeys.length; i < len; i++) {
|
|
9744
9744
|
luvio.storeEvict(depKeys[i]);
|
|
9745
9745
|
}
|
|
@@ -9886,7 +9886,7 @@ function addFieldsToStoreLink(fieldsTrie, optionalFieldsTrie, storeLink) {
|
|
|
9886
9886
|
}
|
|
9887
9887
|
for (let i = 0; i < fieldSubtries.length; i++) {
|
|
9888
9888
|
const subtrie = fieldSubtries[i];
|
|
9889
|
-
const fieldNames = keys$
|
|
9889
|
+
const fieldNames = keys$7(subtrie.children);
|
|
9890
9890
|
for (let i = 0; i < fieldNames.length; i++) {
|
|
9891
9891
|
const fieldName = fieldNames[i];
|
|
9892
9892
|
const childTrie = subtrie.children[fieldName];
|
|
@@ -10000,9 +10000,9 @@ function fulfill$1(existing, incoming) {
|
|
|
10000
10000
|
return false;
|
|
10001
10001
|
}
|
|
10002
10002
|
}
|
|
10003
|
-
const headersKeys = keys$
|
|
10003
|
+
const headersKeys = keys$7(headers);
|
|
10004
10004
|
const headersKeyLength = headersKeys.length;
|
|
10005
|
-
if (headersKeyLength !== keys$
|
|
10005
|
+
if (headersKeyLength !== keys$7(existingHeaders).length) {
|
|
10006
10006
|
return false;
|
|
10007
10007
|
}
|
|
10008
10008
|
for (let i = 0, len = headersKeyLength; i < len; i++) {
|
|
@@ -10610,7 +10610,7 @@ function buildNetworkSnapshot$15(luvio, config, serverRequestCount = 0, options)
|
|
|
10610
10610
|
|
|
10611
10611
|
// iterate through the map to build configs for network calls
|
|
10612
10612
|
function resolveConflict$1(luvio, map) {
|
|
10613
|
-
const ids = keys$
|
|
10613
|
+
const ids = keys$7(map.conflicts);
|
|
10614
10614
|
if (ids.length === 0) {
|
|
10615
10615
|
instrumentation$3.recordConflictsResolved(map.serverRequestCount);
|
|
10616
10616
|
return;
|
|
@@ -12059,18 +12059,18 @@ function listFields$1(luvio, { fields = [], optionalFields = [], sortBy, }, list
|
|
|
12059
12059
|
return {
|
|
12060
12060
|
getRecordSelectionFieldSets() {
|
|
12061
12061
|
const optionalPlusDefaultFields = { ...optionalFields_ };
|
|
12062
|
-
const fields = keys$
|
|
12062
|
+
const fields = keys$7(defaultFields_);
|
|
12063
12063
|
for (let i = 0; i < fields.length; ++i) {
|
|
12064
12064
|
const field = fields[i];
|
|
12065
12065
|
if (!fields_[field] && !defaultServerFieldStatus.missingFields[field]) {
|
|
12066
12066
|
optionalPlusDefaultFields[field] = true;
|
|
12067
12067
|
}
|
|
12068
12068
|
}
|
|
12069
|
-
return [keys$
|
|
12069
|
+
return [keys$7(fields_).sort(), keys$7(optionalPlusDefaultFields).sort()];
|
|
12070
12070
|
},
|
|
12071
12071
|
processRecords(records) {
|
|
12072
12072
|
const { missingFields } = defaultServerFieldStatus;
|
|
12073
|
-
const fields = keys$
|
|
12073
|
+
const fields = keys$7(missingFields);
|
|
12074
12074
|
for (let i = 0; i < fields.length; ++i) {
|
|
12075
12075
|
const field = fields[i], splitField = field.split('.').slice(1);
|
|
12076
12076
|
for (let i = 0; i < records.length; ++i) {
|
|
@@ -14550,7 +14550,7 @@ function getMissingRecordLookupFields$1(record, objectInfo) {
|
|
|
14550
14550
|
const lookupFields = {};
|
|
14551
14551
|
const { apiName, fields: recordFields } = record;
|
|
14552
14552
|
const { fields: objectInfoFields } = objectInfo;
|
|
14553
|
-
const objectInfoFieldNames = keys$
|
|
14553
|
+
const objectInfoFieldNames = keys$7(objectInfoFields);
|
|
14554
14554
|
for (let i = 0, len = objectInfoFieldNames.length; i < len; i += 1) {
|
|
14555
14555
|
const fieldName = objectInfoFieldNames[i];
|
|
14556
14556
|
const field = objectInfoFields[fieldName];
|
|
@@ -14569,12 +14569,12 @@ function getMissingRecordLookupFields$1(record, objectInfo) {
|
|
|
14569
14569
|
const nameField = `${apiName}.${relationshipName}.${getNameField$1(objectInfo, fieldName)}`;
|
|
14570
14570
|
lookupFields[nameField] = true;
|
|
14571
14571
|
}
|
|
14572
|
-
return keys$
|
|
14572
|
+
return keys$7(lookupFields);
|
|
14573
14573
|
}
|
|
14574
14574
|
function getRecordUiMissingRecordLookupFields$1(recordUi) {
|
|
14575
14575
|
const { records, objectInfos } = recordUi;
|
|
14576
14576
|
const recordLookupFields = {};
|
|
14577
|
-
const recordIds = keys$
|
|
14577
|
+
const recordIds = keys$7(records);
|
|
14578
14578
|
for (let i = 0, len = recordIds.length; i < len; i += 1) {
|
|
14579
14579
|
const recordId = recordIds[i];
|
|
14580
14580
|
const recordData = records[recordId];
|
|
@@ -14612,19 +14612,19 @@ function buildCachedSelectorKey$1(key) {
|
|
|
14612
14612
|
}
|
|
14613
14613
|
function eachLayout$1(recordUi, cb) {
|
|
14614
14614
|
const { layouts } = recordUi;
|
|
14615
|
-
const layoutApiNames = keys$
|
|
14615
|
+
const layoutApiNames = keys$7(layouts);
|
|
14616
14616
|
for (let a = 0, len = layoutApiNames.length; a < len; a += 1) {
|
|
14617
14617
|
const apiName = layoutApiNames[a];
|
|
14618
14618
|
const apiNameData = layouts[apiName];
|
|
14619
|
-
const recordTypeIds = keys$
|
|
14619
|
+
const recordTypeIds = keys$7(apiNameData);
|
|
14620
14620
|
for (let b = 0, recordTypeIdsLen = recordTypeIds.length; b < recordTypeIdsLen; b += 1) {
|
|
14621
14621
|
const recordTypeId = recordTypeIds[b];
|
|
14622
14622
|
const recordTypeData = apiNameData[recordTypeId];
|
|
14623
|
-
const layoutTypes = keys$
|
|
14623
|
+
const layoutTypes = keys$7(recordTypeData);
|
|
14624
14624
|
for (let c = 0, layoutTypesLen = layoutTypes.length; c < layoutTypesLen; c += 1) {
|
|
14625
14625
|
const layoutType = layoutTypes[c];
|
|
14626
14626
|
const layoutTypeData = recordTypeData[layoutType];
|
|
14627
|
-
const modes = keys$
|
|
14627
|
+
const modes = keys$7(layoutTypeData);
|
|
14628
14628
|
for (let d = 0, modesLen = modes.length; d < modesLen; d += 1) {
|
|
14629
14629
|
const mode = modes[d];
|
|
14630
14630
|
const layout = layoutTypeData[mode];
|
|
@@ -14830,14 +14830,14 @@ function buildNetworkSnapshot$12(luvio, config, dispatchContext) {
|
|
|
14830
14830
|
function publishDependencies$1(luvio, recordIds, depKeys) {
|
|
14831
14831
|
for (let i = 0, len = recordIds.length; i < len; i += 1) {
|
|
14832
14832
|
const recordDepKey = dependencyKeyBuilder$1({ recordId: recordIds[i] });
|
|
14833
|
-
const dependencies = create$
|
|
14833
|
+
const dependencies = create$6(null);
|
|
14834
14834
|
for (let j = 0, len = depKeys.length; j < len; j++) {
|
|
14835
14835
|
dependencies[depKeys[j]] = true;
|
|
14836
14836
|
}
|
|
14837
14837
|
const node = luvio.getNode(recordDepKey);
|
|
14838
14838
|
if (isGraphNode$1(node)) {
|
|
14839
14839
|
const recordDeps = node.retrieve();
|
|
14840
|
-
assign$
|
|
14840
|
+
assign$6(dependencies, recordDeps);
|
|
14841
14841
|
}
|
|
14842
14842
|
luvio.storePublish(recordDepKey, dependencies);
|
|
14843
14843
|
}
|
|
@@ -15024,11 +15024,11 @@ const recordLayoutFragmentSelector$1 = [
|
|
|
15024
15024
|
function getFieldsFromLayoutMap$1(layoutMap, objectInfo) {
|
|
15025
15025
|
let fields = [];
|
|
15026
15026
|
let optionalFields = [];
|
|
15027
|
-
const layoutTypes = keys$
|
|
15027
|
+
const layoutTypes = keys$7(layoutMap);
|
|
15028
15028
|
for (let i = 0, layoutTypesLen = layoutTypes.length; i < layoutTypesLen; i += 1) {
|
|
15029
15029
|
const layoutType = layoutTypes[i];
|
|
15030
15030
|
const modesMap = layoutMap[layoutType];
|
|
15031
|
-
const modes = keys$
|
|
15031
|
+
const modes = keys$7(modesMap);
|
|
15032
15032
|
for (let m = 0, modesLen = modes.length; m < modesLen; m += 1) {
|
|
15033
15033
|
const mode = modes[m];
|
|
15034
15034
|
const { fields: modeFields, optionalFields: modeOptionalFields } = getQualifiedFieldApiNamesFromLayout$1(modesMap[mode], objectInfo);
|
|
@@ -15065,7 +15065,7 @@ function getRecordForLayoutableEntities$1(luvio, refresh, recordId, layoutMap, o
|
|
|
15065
15065
|
return getRecord$1(luvio, refresh, recordId, [], implicitFields);
|
|
15066
15066
|
}
|
|
15067
15067
|
function getRecordForNonLayoutableEntities$1(luvio, adapterContext, refresh, recordId, objectInfo, configOptionalFields, configFields) {
|
|
15068
|
-
const fields = keys$
|
|
15068
|
+
const fields = keys$7(configFields ? configFields : {}).map((key) => `${objectInfo.apiName}.${key}`);
|
|
15069
15069
|
// W-12697744
|
|
15070
15070
|
// Set the implicit fields received from the server in adapter context
|
|
15071
15071
|
// This ensures that the implicit fields are available when data is read locally or from durable store
|
|
@@ -15304,7 +15304,7 @@ function makeRecordLayoutMap$1(luvio, config, apiName, recordTypeId, layoutTypes
|
|
|
15304
15304
|
}
|
|
15305
15305
|
const { layoutType, mode, snapshot } = container;
|
|
15306
15306
|
if (wrapper.layoutMap[layoutType] === undefined) {
|
|
15307
|
-
wrapper.layoutMap = assign$
|
|
15307
|
+
wrapper.layoutMap = assign$6({}, wrapper.layoutMap, {
|
|
15308
15308
|
[layoutType]: {},
|
|
15309
15309
|
});
|
|
15310
15310
|
}
|
|
@@ -25245,7 +25245,7 @@ function typeCheckConfig$s(untrustedConfig) {
|
|
|
25245
25245
|
}
|
|
25246
25246
|
}
|
|
25247
25247
|
if (records.length > 0) {
|
|
25248
|
-
assign$
|
|
25248
|
+
assign$6(config, { records });
|
|
25249
25249
|
}
|
|
25250
25250
|
}
|
|
25251
25251
|
return config;
|
|
@@ -30299,7 +30299,7 @@ function optimisticUpdate(cachedLayoutUserState, layoutUserStateInput) {
|
|
|
30299
30299
|
let clonedLayoutUserStateSections;
|
|
30300
30300
|
const { sectionUserStates } = layoutUserStateInput;
|
|
30301
30301
|
const { sectionUserStates: cachedSectionUserStates } = cachedLayoutUserState;
|
|
30302
|
-
const sectionUserStateKeys = keys$
|
|
30302
|
+
const sectionUserStateKeys = keys$7(sectionUserStates);
|
|
30303
30303
|
for (let i = 0, len = sectionUserStateKeys.length; i < len; i += 1) {
|
|
30304
30304
|
const sectionId = sectionUserStateKeys[i];
|
|
30305
30305
|
if (cachedSectionUserStates[sectionId] === undefined) {
|
|
@@ -33577,7 +33577,7 @@ function bindExportsTo$1(luvio) {
|
|
|
33577
33577
|
const getRecordTemplateCreate_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordTemplateCreate', configurationForEnvironmentFactoryOverrides$2.getRecordTemplateCreateAdapterFactory() ?? factory$5$1), getRecordTemplateCreateMetadata);
|
|
33578
33578
|
const getRecordUi_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRecordUi', configurationForEnvironmentFactoryOverrides$2.getRecordUiAdapterFactory() ?? factory$g), getRecordUiMetadata);
|
|
33579
33579
|
const getRecords_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRecords', configurationForEnvironmentFactoryOverrides$2.getRecordsAdapterFactory() ?? getRecordsAdapterFactory$1), luvio, 'getRecords'), getRecordsMetadata);
|
|
33580
|
-
const getRelatedListActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListActions', getRelatedListActionsAdapterFactory), getRelatedListActionsMetadata);
|
|
33580
|
+
const getRelatedListActions_ldsAdapter = createInstrumentedAdapter(createRelatedListPlusAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListActions', getRelatedListActionsAdapterFactory), luvio, 'getRelatedListActions'), getRelatedListActionsMetadata);
|
|
33581
33581
|
const getRelatedListCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListCount', getRelatedListCountAdapterFactory), getRelatedListCountMetadata);
|
|
33582
33582
|
const getRelatedListInfo_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListInfo', getRelatedListInfoAdapterFactory), luvio, 'getRelatedListInfo'), getRelatedListInfoMetadata);
|
|
33583
33583
|
const getRelatedListInfoBatch_ldsAdapter = createInstrumentedAdapter(createRelatedListAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListInfoBatch', getRelatedListInfoBatchAdapterFactory), luvio, 'getRelatedListInfoBatch'), getRelatedListInfoBatchMetadata);
|
|
@@ -33894,16 +33894,7 @@ withDefaultLuvio((luvio) => {
|
|
|
33894
33894
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
33895
33895
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
33896
33896
|
});
|
|
33897
|
-
// version: 1.
|
|
33898
|
-
|
|
33899
|
-
var graphqlRecordTypeIdFixGate = {
|
|
33900
|
-
isOpen: function (e) {
|
|
33901
|
-
return e.fallback;
|
|
33902
|
-
},
|
|
33903
|
-
hasError: function () {
|
|
33904
|
-
return !0;
|
|
33905
|
-
},
|
|
33906
|
-
};
|
|
33897
|
+
// version: 1.343.0-823df4356c
|
|
33907
33898
|
|
|
33908
33899
|
/**
|
|
33909
33900
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -45493,6 +45484,15 @@ var graphqlL2AdapterGate = {
|
|
|
45493
45484
|
},
|
|
45494
45485
|
};
|
|
45495
45486
|
|
|
45487
|
+
var productConsumedSideEffectsKillSwitch = {
|
|
45488
|
+
isOpen: function (e) {
|
|
45489
|
+
return e.fallback;
|
|
45490
|
+
},
|
|
45491
|
+
hasError: function () {
|
|
45492
|
+
return !0;
|
|
45493
|
+
},
|
|
45494
|
+
};
|
|
45495
|
+
|
|
45496
45496
|
/**
|
|
45497
45497
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
45498
45498
|
* All rights reserved.
|
|
@@ -45510,7 +45510,7 @@ var graphqlL2AdapterGate = {
|
|
|
45510
45510
|
const { parse: parse$4, stringify: stringify$4 } = JSON;
|
|
45511
45511
|
const { join: join$1, push: push$2, unshift } = Array.prototype;
|
|
45512
45512
|
const { isArray: isArray$3$1 } = Array;
|
|
45513
|
-
const { entries: entries$
|
|
45513
|
+
const { entries: entries$3, keys: keys$5 } = Object;
|
|
45514
45514
|
|
|
45515
45515
|
const UI_API_BASE_URI = '/services/data/v64.0/ui-api';
|
|
45516
45516
|
|
|
@@ -45575,7 +45575,7 @@ function isSpanningRecord$2(fieldValue) {
|
|
|
45575
45575
|
function mergeRecordFields$2(first, second) {
|
|
45576
45576
|
const { fields: targetFields } = first;
|
|
45577
45577
|
const { fields: sourceFields } = second;
|
|
45578
|
-
const fieldNames = keys$
|
|
45578
|
+
const fieldNames = keys$5(sourceFields);
|
|
45579
45579
|
for (let i = 0, len = fieldNames.length; i < len; i += 1) {
|
|
45580
45580
|
const fieldName = fieldNames[i];
|
|
45581
45581
|
const sourceField = sourceFields[fieldName];
|
|
@@ -45817,7 +45817,7 @@ function getFulfillingRequest(inflightRequests, resourceRequest) {
|
|
|
45817
45817
|
if (fulfill === undefined) {
|
|
45818
45818
|
return null;
|
|
45819
45819
|
}
|
|
45820
|
-
const handlersMap = entries$
|
|
45820
|
+
const handlersMap = entries$3(inflightRequests);
|
|
45821
45821
|
for (let i = 0, len = handlersMap.length; i < len; i += 1) {
|
|
45822
45822
|
const [transactionKey, handlers] = handlersMap[i];
|
|
45823
45823
|
// check fulfillment against only the first handler ([0]) because it's equal or
|
|
@@ -45982,7 +45982,7 @@ const RedirectDurableSegment = 'REDIRECT_KEYS';
|
|
|
45982
45982
|
const MessagingDurableSegment = 'MESSAGING';
|
|
45983
45983
|
const MessageNotifyStoreUpdateAvailable = 'notifyStoreUpdateAvailable';
|
|
45984
45984
|
|
|
45985
|
-
const { keys: keys$
|
|
45985
|
+
const { keys: keys$4, create: create$4, assign: assign$4, freeze: freeze$1$1 } = Object;
|
|
45986
45986
|
|
|
45987
45987
|
//Durable store error instrumentation key
|
|
45988
45988
|
const DURABLE_STORE_ERROR = 'durable-store-error';
|
|
@@ -46029,7 +46029,7 @@ function publishDurableStoreEntries(durableRecords, put, publishMetadata) {
|
|
|
46029
46029
|
if (durableRecords === undefined) {
|
|
46030
46030
|
return { revivedKeys, hadUnexpectedShape };
|
|
46031
46031
|
}
|
|
46032
|
-
const durableKeys = keys$
|
|
46032
|
+
const durableKeys = keys$4(durableRecords);
|
|
46033
46033
|
if (durableKeys.length === 0) {
|
|
46034
46034
|
// no records to revive
|
|
46035
46035
|
return { revivedKeys, hadUnexpectedShape };
|
|
@@ -46214,7 +46214,7 @@ class DurableTTLStore {
|
|
|
46214
46214
|
overrides,
|
|
46215
46215
|
};
|
|
46216
46216
|
}
|
|
46217
|
-
const keys$1 = keys$
|
|
46217
|
+
const keys$1 = keys$4(entries);
|
|
46218
46218
|
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
46219
46219
|
const key = keys$1[i];
|
|
46220
46220
|
const entry = entries[key];
|
|
@@ -46236,14 +46236,14 @@ class DurableTTLStore {
|
|
|
46236
46236
|
}
|
|
46237
46237
|
|
|
46238
46238
|
function flushInMemoryStoreValuesToDurableStore(store, durableStore, durableStoreErrorHandler, redirects, shouldFlush, additionalDurableStoreOperations = [], enableDurableMetadataRefresh = false) {
|
|
46239
|
-
const durableRecords = create$
|
|
46240
|
-
const refreshedDurableRecords = create$
|
|
46241
|
-
const evictedRecords = create$
|
|
46239
|
+
const durableRecords = create$4(null);
|
|
46240
|
+
const refreshedDurableRecords = create$4(null);
|
|
46241
|
+
const evictedRecords = create$4(null);
|
|
46242
46242
|
const { visitedIds, refreshedIds } = store.fallbackStringKeyInMemoryStore;
|
|
46243
46243
|
// TODO: W-8909393 Once metadata is stored in its own segment we need to
|
|
46244
46244
|
// call setEntries for the visitedIds on default segment and call setEntries
|
|
46245
46245
|
// on the metadata segment for the refreshedIds
|
|
46246
|
-
const keys$1 = keys$
|
|
46246
|
+
const keys$1 = keys$4({ ...visitedIds, ...refreshedIds });
|
|
46247
46247
|
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
46248
46248
|
const key = keys$1[i];
|
|
46249
46249
|
const canonicalKey = store.getCanonicalRecordId(key);
|
|
@@ -46275,7 +46275,7 @@ function flushInMemoryStoreValuesToDurableStore(store, durableStore, durableStor
|
|
|
46275
46275
|
}
|
|
46276
46276
|
}
|
|
46277
46277
|
const durableStoreOperations = additionalDurableStoreOperations;
|
|
46278
|
-
const recordKeys = keys$
|
|
46278
|
+
const recordKeys = keys$4(durableRecords);
|
|
46279
46279
|
if (recordKeys.length > 0) {
|
|
46280
46280
|
// publishes with data
|
|
46281
46281
|
durableStoreOperations.push({
|
|
@@ -46284,7 +46284,7 @@ function flushInMemoryStoreValuesToDurableStore(store, durableStore, durableStor
|
|
|
46284
46284
|
segment: DefaultDurableSegment,
|
|
46285
46285
|
});
|
|
46286
46286
|
}
|
|
46287
|
-
const refreshKeys = keys$
|
|
46287
|
+
const refreshKeys = keys$4(refreshedDurableRecords);
|
|
46288
46288
|
if (refreshKeys.length > 0) {
|
|
46289
46289
|
// publishes with only metadata updates
|
|
46290
46290
|
durableStoreOperations.push({
|
|
@@ -46306,7 +46306,7 @@ function flushInMemoryStoreValuesToDurableStore(store, durableStore, durableStor
|
|
|
46306
46306
|
});
|
|
46307
46307
|
});
|
|
46308
46308
|
// evicts
|
|
46309
|
-
const evictedKeys = keys$
|
|
46309
|
+
const evictedKeys = keys$4(evictedRecords);
|
|
46310
46310
|
if (evictedKeys.length > 0) {
|
|
46311
46311
|
durableStoreOperations.push({
|
|
46312
46312
|
type: 'evictEntries',
|
|
@@ -46410,7 +46410,7 @@ function buildRevivingStagingStore(upstreamStore) {
|
|
|
46410
46410
|
// A reviving store is only "active" during a call to `environment.storeLookup`, and will
|
|
46411
46411
|
// be used by the reader attempting to build an L1 snapshot. Immediately after the L1 rebuild
|
|
46412
46412
|
// the reviving store becomes inactive other than receiving change notifications.
|
|
46413
|
-
return create$
|
|
46413
|
+
return create$4(upstreamStore, {
|
|
46414
46414
|
readEntry: { value: readEntry },
|
|
46415
46415
|
markStale: { value: markStale },
|
|
46416
46416
|
clearStale: { value: clearStale },
|
|
@@ -46422,7 +46422,7 @@ const AdapterContextSegment = 'ADAPTER-CONTEXT';
|
|
|
46422
46422
|
const ADAPTER_CONTEXT_ID_SUFFIX = '__NAMED_CONTEXT';
|
|
46423
46423
|
async function reviveOrCreateContext(adapterId, durableStore, durableStoreErrorHandler, contextStores, pendingContextStoreKeys, onContextLoaded) {
|
|
46424
46424
|
// initialize empty context store
|
|
46425
|
-
contextStores[adapterId] = create$
|
|
46425
|
+
contextStores[adapterId] = create$4(null);
|
|
46426
46426
|
const context = {
|
|
46427
46427
|
set(key, value) {
|
|
46428
46428
|
contextStores[adapterId][key] = value;
|
|
@@ -46487,7 +46487,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
46487
46487
|
const revivingStores = new Set();
|
|
46488
46488
|
// redirects that need to be flushed to the durable store
|
|
46489
46489
|
const pendingStoreRedirects = new Map();
|
|
46490
|
-
const contextStores = create$
|
|
46490
|
+
const contextStores = create$4(null);
|
|
46491
46491
|
let initializationPromise = new Promise((resolve) => {
|
|
46492
46492
|
const finish = () => {
|
|
46493
46493
|
resolve();
|
|
@@ -46564,7 +46564,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
46564
46564
|
try {
|
|
46565
46565
|
const entries = await durableStore.getEntries(adapterContextKeysFromDifferentInstance, AdapterContextSegment);
|
|
46566
46566
|
if (entries !== undefined) {
|
|
46567
|
-
const entryKeys = keys$
|
|
46567
|
+
const entryKeys = keys$4(entries);
|
|
46568
46568
|
for (let i = 0, len = entryKeys.length; i < len; i++) {
|
|
46569
46569
|
const entryKey = entryKeys[i];
|
|
46570
46570
|
const entry = entries[entryKey];
|
|
@@ -46599,7 +46599,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
46599
46599
|
if (filteredKeys.length > 0) {
|
|
46600
46600
|
const entries = await durableStore.getMetadata(filteredKeys, DefaultDurableSegment);
|
|
46601
46601
|
if (entries !== undefined) {
|
|
46602
|
-
const entryKeys = keys$
|
|
46602
|
+
const entryKeys = keys$4(entries);
|
|
46603
46603
|
for (let i = 0, len = entryKeys.length; i < len; i++) {
|
|
46604
46604
|
const entryKey = entryKeys[i];
|
|
46605
46605
|
const { metadata } = entries[entryKey];
|
|
@@ -46971,7 +46971,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
46971
46971
|
validateNotDisposed();
|
|
46972
46972
|
const entryKeys = keys$1.map(serializeStructuredKey);
|
|
46973
46973
|
const entries = await durableStore.getEntries(entryKeys, DefaultDurableSegment);
|
|
46974
|
-
if (entries === undefined || keys$
|
|
46974
|
+
if (entries === undefined || keys$4(entries).length === 0) {
|
|
46975
46975
|
return environment.notifyStoreUpdateAvailable(keys$1);
|
|
46976
46976
|
}
|
|
46977
46977
|
const now = Date.now();
|
|
@@ -47023,7 +47023,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
47023
47023
|
const metadataKeys = keys$1.map(serializeStructuredKey);
|
|
47024
47024
|
const now = Date.now();
|
|
47025
47025
|
const entries = await durableStore.getMetadata(metadataKeys, DefaultDurableSegment);
|
|
47026
|
-
if (entries === undefined || keys$
|
|
47026
|
+
if (entries === undefined || keys$4(entries).length === 0) {
|
|
47027
47027
|
return environment.expirePossibleStaleRecords(keys$1);
|
|
47028
47028
|
}
|
|
47029
47029
|
let metaDataChanged = false;
|
|
@@ -47049,7 +47049,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
47049
47049
|
type: 'stale-while-revalidate',
|
|
47050
47050
|
staleDurationSeconds: Number.MAX_SAFE_INTEGER,
|
|
47051
47051
|
});
|
|
47052
|
-
return create$
|
|
47052
|
+
return create$4(environment, {
|
|
47053
47053
|
publishStoreMetadata: { value: publishStoreMetadata },
|
|
47054
47054
|
storeIngest: { value: storeIngest },
|
|
47055
47055
|
storeIngestError: { value: storeIngestError },
|
|
@@ -47285,7 +47285,7 @@ var QueueOperationType;
|
|
|
47285
47285
|
QueueOperationType["Update"] = "update";
|
|
47286
47286
|
})(QueueOperationType || (QueueOperationType = {}));
|
|
47287
47287
|
|
|
47288
|
-
const { keys: keys$
|
|
47288
|
+
const { keys: keys$3, create: create$3, assign: assign$3, values: values$2 } = Object;
|
|
47289
47289
|
const { stringify: stringify$3, parse: parse$3 } = JSON;
|
|
47290
47290
|
const { isArray: isArray$2$1 } = Array;
|
|
47291
47291
|
|
|
@@ -47656,7 +47656,7 @@ class DurableDraftQueue {
|
|
|
47656
47656
|
const queueOperations = handler.getQueueOperationsForCompletingDrafts(queue, action);
|
|
47657
47657
|
// write the queue operations to the store prior to ingesting the result
|
|
47658
47658
|
await this.draftStore.completeAction(queueOperations);
|
|
47659
|
-
await handler.handleActionCompleted(action, queueOperations, values$
|
|
47659
|
+
await handler.handleActionCompleted(action, queueOperations, values$2(this.handlers));
|
|
47660
47660
|
this.retryIntervalMilliseconds = 0;
|
|
47661
47661
|
this.uploadingActionId = undefined;
|
|
47662
47662
|
await this.notifyChangedListeners({
|
|
@@ -47862,7 +47862,7 @@ class DurableDraftQueue {
|
|
|
47862
47862
|
return pendingAction;
|
|
47863
47863
|
}
|
|
47864
47864
|
async setMetadata(actionId, metadata) {
|
|
47865
|
-
const keys$1 = keys$
|
|
47865
|
+
const keys$1 = keys$3(metadata);
|
|
47866
47866
|
const compatibleKeys = keys$1.filter((key) => {
|
|
47867
47867
|
const value = metadata[key];
|
|
47868
47868
|
return typeof key === 'string' && typeof value === 'string';
|
|
@@ -48029,7 +48029,7 @@ class DurableDraftStore {
|
|
|
48029
48029
|
const waitForOngoingSync = this.syncPromise || Promise.resolve();
|
|
48030
48030
|
return waitForOngoingSync.then(() => {
|
|
48031
48031
|
const { draftStore } = this;
|
|
48032
|
-
const keys$1 = keys$
|
|
48032
|
+
const keys$1 = keys$3(draftStore);
|
|
48033
48033
|
const actionArray = [];
|
|
48034
48034
|
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
48035
48035
|
const key = keys$1[i];
|
|
@@ -48054,7 +48054,7 @@ class DurableDraftStore {
|
|
|
48054
48054
|
deleteByTag(tag) {
|
|
48055
48055
|
const deleteAction = () => {
|
|
48056
48056
|
const { draftStore } = this;
|
|
48057
|
-
const keys$1 = keys$
|
|
48057
|
+
const keys$1 = keys$3(draftStore);
|
|
48058
48058
|
const durableKeys = [];
|
|
48059
48059
|
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
48060
48060
|
const key = keys$1[i];
|
|
@@ -48106,7 +48106,7 @@ class DurableDraftStore {
|
|
|
48106
48106
|
return this.enqueueAction(action);
|
|
48107
48107
|
}
|
|
48108
48108
|
getCount() {
|
|
48109
|
-
return keys$
|
|
48109
|
+
return keys$3(this.draftStore).length;
|
|
48110
48110
|
}
|
|
48111
48111
|
/**
|
|
48112
48112
|
* Runs a write operation against the draft store, if the initial
|
|
@@ -48147,7 +48147,7 @@ class DurableDraftStore {
|
|
|
48147
48147
|
return this.runQueuedOperations();
|
|
48148
48148
|
}
|
|
48149
48149
|
const { draftStore } = this;
|
|
48150
|
-
const keys$1 = keys$
|
|
48150
|
+
const keys$1 = keys$3(durableEntries);
|
|
48151
48151
|
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
48152
48152
|
const entry = durableEntries[keys$1[i]];
|
|
48153
48153
|
const action = entry.data;
|
|
@@ -48205,13 +48205,6 @@ var DraftQueueOperationType;
|
|
|
48205
48205
|
DraftQueueOperationType["ItemCompleted"] = "completed";
|
|
48206
48206
|
DraftQueueOperationType["ItemFailed"] = "failed";
|
|
48207
48207
|
DraftQueueOperationType["ItemUpdated"] = "updated";
|
|
48208
|
-
/** @deprecated in 252. All Queue state changed events are consolidated in QueueStateChanged
|
|
48209
|
-
* Planned to be removed in 256 (W-16217436) */
|
|
48210
|
-
DraftQueueOperationType["QueueStarted"] = "started";
|
|
48211
|
-
/** @deprecated in 252. All Queue state changed events are consolidated in QueueStateChanged
|
|
48212
|
-
* Planned to be removed in 256 (W-16217436) */
|
|
48213
|
-
DraftQueueOperationType["QueueStopped"] = "stopped";
|
|
48214
|
-
/** @since 252 */
|
|
48215
48208
|
DraftQueueOperationType["QueueStateChanged"] = "queueStateChanged";
|
|
48216
48209
|
})(DraftQueueOperationType || (DraftQueueOperationType = {}));
|
|
48217
48210
|
/**
|
|
@@ -48256,13 +48249,6 @@ function toQueueState(queue) {
|
|
|
48256
48249
|
}
|
|
48257
48250
|
class DraftManager {
|
|
48258
48251
|
shouldEmitEvent(event) {
|
|
48259
|
-
// Waiting events cannot be emitted prior to 252 native clients
|
|
48260
|
-
// TODO [W-16102411]: we can safely remove this backwards compatible code in 256
|
|
48261
|
-
if (isDraftQueueStateChangeEvent(event) &&
|
|
48262
|
-
event.state === DraftQueueState.Waiting &&
|
|
48263
|
-
this.listenerVersion === undefined) {
|
|
48264
|
-
return false;
|
|
48265
|
-
}
|
|
48266
48252
|
return this.draftEventsShouldBeEmitted.includes(event.type);
|
|
48267
48253
|
}
|
|
48268
48254
|
constructor(draftQueue) {
|
|
@@ -48302,16 +48288,6 @@ class DraftManager {
|
|
|
48302
48288
|
throw Error('Unsupported event type');
|
|
48303
48289
|
}
|
|
48304
48290
|
}
|
|
48305
|
-
draftQueueStateToOperationType(state) {
|
|
48306
|
-
switch (state) {
|
|
48307
|
-
case DraftQueueState.Started:
|
|
48308
|
-
return DraftQueueOperationType.QueueStarted;
|
|
48309
|
-
case DraftQueueState.Stopped:
|
|
48310
|
-
return DraftQueueOperationType.QueueStopped;
|
|
48311
|
-
default:
|
|
48312
|
-
throw Error('Unsupported event type');
|
|
48313
|
-
}
|
|
48314
|
-
}
|
|
48315
48291
|
/**
|
|
48316
48292
|
* Enqueue a custom action on the DraftQueue for a handler
|
|
48317
48293
|
* @param handler the handler's id
|
|
@@ -48373,8 +48349,7 @@ class DraftManager {
|
|
|
48373
48349
|
*
|
|
48374
48350
|
* @param listener The listener closure to subscribe to changes
|
|
48375
48351
|
*/
|
|
48376
|
-
registerDraftQueueChangedListener(listener,
|
|
48377
|
-
this.listenerVersion = version;
|
|
48352
|
+
registerDraftQueueChangedListener(listener, _version = undefined) {
|
|
48378
48353
|
this.listeners.push(listener);
|
|
48379
48354
|
return () => {
|
|
48380
48355
|
this.listeners = this.listeners.filter((l) => {
|
|
@@ -48420,7 +48395,7 @@ class DraftManager {
|
|
|
48420
48395
|
return this.buildDraftQueueItem(action);
|
|
48421
48396
|
}
|
|
48422
48397
|
isValidFieldMap(fields) {
|
|
48423
|
-
const keys$1 = keys$
|
|
48398
|
+
const keys$1 = keys$3(fields);
|
|
48424
48399
|
const validTypes = ['string', 'number', 'boolean'];
|
|
48425
48400
|
for (let i = 0; i < keys$1.length; i++) {
|
|
48426
48401
|
const key = keys$1[i];
|
|
@@ -48490,12 +48465,7 @@ class DraftManager {
|
|
|
48490
48465
|
const managerState = await this.getQueue();
|
|
48491
48466
|
let operationType, item;
|
|
48492
48467
|
if (isDraftQueueStateChangeEvent(event)) {
|
|
48493
|
-
|
|
48494
|
-
operationType = this.draftQueueStateToOperationType(event.state);
|
|
48495
|
-
}
|
|
48496
|
-
else {
|
|
48497
|
-
operationType = DraftQueueOperationType.QueueStateChanged;
|
|
48498
|
-
}
|
|
48468
|
+
operationType = DraftQueueOperationType.QueueStateChanged;
|
|
48499
48469
|
}
|
|
48500
48470
|
else {
|
|
48501
48471
|
const { action, type } = event;
|
|
@@ -48693,7 +48663,7 @@ function buildAdapterValidationConfig$2(displayName, paramsMeta) {
|
|
|
48693
48663
|
}
|
|
48694
48664
|
const keyPrefix$2 = 'UiApi';
|
|
48695
48665
|
|
|
48696
|
-
const { assign: assign$
|
|
48666
|
+
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;
|
|
48697
48667
|
const { hasOwnProperty: hasOwnProperty$1 } = Object.prototype;
|
|
48698
48668
|
const { split, endsWith } = String.prototype;
|
|
48699
48669
|
const { from: from$1, isArray: isArray$1$1 } = Array;
|
|
@@ -48722,7 +48692,7 @@ function dedupe$2(value) {
|
|
|
48722
48692
|
for (let i = 0, len = value.length; i < len; i += 1) {
|
|
48723
48693
|
result[value[i]] = true;
|
|
48724
48694
|
}
|
|
48725
|
-
return keys$
|
|
48695
|
+
return keys$2$1(result);
|
|
48726
48696
|
}
|
|
48727
48697
|
/**
|
|
48728
48698
|
* @param source The array of string to filter
|
|
@@ -49492,14 +49462,14 @@ const getTypeCacheKeys$1u = (rootKeySet, luvio, input, _fullPathFactory) => {
|
|
|
49492
49462
|
mergeable: true,
|
|
49493
49463
|
});
|
|
49494
49464
|
const input_childRelationships = input.childRelationships;
|
|
49495
|
-
const input_childRelationships_keys = keys$
|
|
49465
|
+
const input_childRelationships_keys = keys$2$1(input_childRelationships);
|
|
49496
49466
|
const input_childRelationships_length = input_childRelationships_keys.length;
|
|
49497
49467
|
for (let i = 0; i < input_childRelationships_length; i++) {
|
|
49498
49468
|
const key = input_childRelationships_keys[i];
|
|
49499
49469
|
getTypeCacheKeys$1t(rootKeySet, luvio, input_childRelationships[key], () => rootKey + '__childRelationships' + '__' + key);
|
|
49500
49470
|
}
|
|
49501
49471
|
const input_fields = input.fields;
|
|
49502
|
-
const field_values = keys$
|
|
49472
|
+
const field_values = keys$2$1(input_fields);
|
|
49503
49473
|
const input_fields_length = field_values.length;
|
|
49504
49474
|
for (let i = 0; i < input_fields_length; i++) {
|
|
49505
49475
|
const field_value = input_fields[field_values[i]];
|
|
@@ -49789,7 +49759,7 @@ function convertRecordFieldsArrayToTrie(fields, optionalFields = []) {
|
|
|
49789
49759
|
function createPathSelection(propertyName, fieldDefinition) {
|
|
49790
49760
|
const fieldsSelection = [];
|
|
49791
49761
|
const { children } = fieldDefinition;
|
|
49792
|
-
const childrenKeys = keys$
|
|
49762
|
+
const childrenKeys = keys$2$1(children);
|
|
49793
49763
|
for (let i = 0, len = childrenKeys.length; i < len; i += 1) {
|
|
49794
49764
|
const childKey = childrenKeys[i];
|
|
49795
49765
|
const childFieldDefinition = children[childKey];
|
|
@@ -49840,7 +49810,7 @@ function createPathSelection(propertyName, fieldDefinition) {
|
|
|
49840
49810
|
*/
|
|
49841
49811
|
function createPathSelectionFromValue(fields) {
|
|
49842
49812
|
const fieldsSelections = [];
|
|
49843
|
-
const fieldNames = keys$
|
|
49813
|
+
const fieldNames = keys$2$1(fields);
|
|
49844
49814
|
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
49845
49815
|
const fieldName = fieldNames[i];
|
|
49846
49816
|
const { value: fieldValue } = fields[fieldName];
|
|
@@ -49885,7 +49855,7 @@ function createPathSelectionFromValue(fields) {
|
|
|
49885
49855
|
}
|
|
49886
49856
|
function extractRecordFieldsRecursively(record) {
|
|
49887
49857
|
const fields = [];
|
|
49888
|
-
const fieldNames = keys$
|
|
49858
|
+
const fieldNames = keys$2$1(record.fields);
|
|
49889
49859
|
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
49890
49860
|
const fieldName = fieldNames[i];
|
|
49891
49861
|
const { value: fieldValue } = record.fields[fieldName];
|
|
@@ -50146,7 +50116,7 @@ function mergePendingFields(newRecord, oldRecord) {
|
|
|
50146
50116
|
// RecordRepresentationNormalized['fields'] to include `pending:true` property
|
|
50147
50117
|
const mergedFields = { ...newRecord.fields };
|
|
50148
50118
|
const merged = { ...newRecord, fields: mergedFields };
|
|
50149
|
-
const existingFields = keys$
|
|
50119
|
+
const existingFields = keys$2$1(oldRecord.fields);
|
|
50150
50120
|
for (let i = 0, len = existingFields.length; i < len; i += 1) {
|
|
50151
50121
|
const spanningFieldName = existingFields[i];
|
|
50152
50122
|
if (newRecord.fields[spanningFieldName] === undefined) {
|
|
@@ -50263,7 +50233,7 @@ function merge$1(existing, incoming, luvio, _path, recordConflictMap) {
|
|
|
50263
50233
|
if (isGraphNode(node)) {
|
|
50264
50234
|
const dependencies = node.retrieve();
|
|
50265
50235
|
if (dependencies !== null) {
|
|
50266
|
-
const depKeys = keys$
|
|
50236
|
+
const depKeys = keys$2$1(dependencies);
|
|
50267
50237
|
for (let i = 0, len = depKeys.length; i < len; i++) {
|
|
50268
50238
|
luvio.storeEvict(depKeys[i]);
|
|
50269
50239
|
}
|
|
@@ -50415,7 +50385,7 @@ fieldNode) {
|
|
|
50415
50385
|
}
|
|
50416
50386
|
for (let i = 0; i < fieldSubtries.length; i++) {
|
|
50417
50387
|
const subtrie = fieldSubtries[i];
|
|
50418
|
-
const fieldNames = keys$
|
|
50388
|
+
const fieldNames = keys$2$1(subtrie.children);
|
|
50419
50389
|
for (let i = 0; i < fieldNames.length; i++) {
|
|
50420
50390
|
const fieldName = fieldNames[i];
|
|
50421
50391
|
const childTrie = subtrie.children[fieldName];
|
|
@@ -50537,13 +50507,13 @@ function isExternalLookupFieldKey(spanningNode) {
|
|
|
50537
50507
|
return endsWith.call(spanningNode.scalar('apiName'), CUSTOM_EXTERNAL_OBJECT_FIELD_SUFFIX);
|
|
50538
50508
|
}
|
|
50539
50509
|
function convertTrieToFields(root) {
|
|
50540
|
-
if (keys$
|
|
50510
|
+
if (keys$2$1(root.children).length === 0) {
|
|
50541
50511
|
return [];
|
|
50542
50512
|
}
|
|
50543
50513
|
return convertTrieToFieldsRecursively(root);
|
|
50544
50514
|
}
|
|
50545
50515
|
function convertTrieToFieldsRecursively(root) {
|
|
50546
|
-
const childKeys = keys$
|
|
50516
|
+
const childKeys = keys$2$1(root.children);
|
|
50547
50517
|
if (childKeys.length === 0) {
|
|
50548
50518
|
if (root.name === '') {
|
|
50549
50519
|
return [];
|
|
@@ -50552,7 +50522,7 @@ function convertTrieToFieldsRecursively(root) {
|
|
|
50552
50522
|
}
|
|
50553
50523
|
return reduce$2.call(childKeys, (acc, cur) => concat$2.call(acc, convertTrieToFieldsRecursively(root.children[cur]).map((i) => `${root.name}.${i}`)), []);
|
|
50554
50524
|
}
|
|
50555
|
-
const BLANK_RECORD_FIELDS_TRIE = freeze$
|
|
50525
|
+
const BLANK_RECORD_FIELDS_TRIE = freeze$2({
|
|
50556
50526
|
name: '',
|
|
50557
50527
|
children: {},
|
|
50558
50528
|
});
|
|
@@ -50580,7 +50550,7 @@ const getObjectNameFromField = (field) => {
|
|
|
50580
50550
|
function mergeFieldsTries(rootA, rootB) {
|
|
50581
50551
|
const rootAchildren = rootA.children;
|
|
50582
50552
|
const rootBchildren = rootB.children;
|
|
50583
|
-
const childBKeys = keys$
|
|
50553
|
+
const childBKeys = keys$2$1(rootBchildren);
|
|
50584
50554
|
for (let i = 0, len = childBKeys.length; i < len; i++) {
|
|
50585
50555
|
const childBKey = childBKeys[i];
|
|
50586
50556
|
if (rootAchildren[childBKey] === undefined) {
|
|
@@ -50735,8 +50705,8 @@ function isSuperRecordFieldTrie(a, b) {
|
|
|
50735
50705
|
}
|
|
50736
50706
|
const childrenA = a.children;
|
|
50737
50707
|
const childrenB = b.children;
|
|
50738
|
-
const childKeysA = keys$
|
|
50739
|
-
const childKeysB = keys$
|
|
50708
|
+
const childKeysA = keys$2$1(childrenA);
|
|
50709
|
+
const childKeysB = keys$2$1(childrenB);
|
|
50740
50710
|
const childKeysBLength = childKeysB.length;
|
|
50741
50711
|
if (childKeysBLength > childKeysA.length) {
|
|
50742
50712
|
return false;
|
|
@@ -50790,9 +50760,9 @@ function fulfill(existing, incoming) {
|
|
|
50790
50760
|
return false;
|
|
50791
50761
|
}
|
|
50792
50762
|
}
|
|
50793
|
-
const headersKeys = keys$
|
|
50763
|
+
const headersKeys = keys$2$1(headers);
|
|
50794
50764
|
const headersKeyLength = headersKeys.length;
|
|
50795
|
-
if (headersKeyLength !== keys$
|
|
50765
|
+
if (headersKeyLength !== keys$2$1(existingHeaders).length) {
|
|
50796
50766
|
return false;
|
|
50797
50767
|
}
|
|
50798
50768
|
for (let i = 0, len = headersKeyLength; i < len; i++) {
|
|
@@ -51425,7 +51395,7 @@ function buildNetworkSnapshot$g(luvio, config, serverRequestCount = 0, options)
|
|
|
51425
51395
|
|
|
51426
51396
|
// iterate through the map to build configs for network calls
|
|
51427
51397
|
function resolveConflict(luvio, map) {
|
|
51428
|
-
const ids = keys$
|
|
51398
|
+
const ids = keys$2$1(map.conflicts);
|
|
51429
51399
|
if (ids.length === 0) {
|
|
51430
51400
|
return;
|
|
51431
51401
|
}
|
|
@@ -52567,18 +52537,18 @@ function listFields(luvio, { fields = [], optionalFields = [], sortBy, }, listIn
|
|
|
52567
52537
|
return {
|
|
52568
52538
|
getRecordSelectionFieldSets() {
|
|
52569
52539
|
const optionalPlusDefaultFields = { ...optionalFields_ };
|
|
52570
|
-
const fields = keys$
|
|
52540
|
+
const fields = keys$2$1(defaultFields_);
|
|
52571
52541
|
for (let i = 0; i < fields.length; ++i) {
|
|
52572
52542
|
const field = fields[i];
|
|
52573
52543
|
if (!fields_[field] && !defaultServerFieldStatus.missingFields[field]) {
|
|
52574
52544
|
optionalPlusDefaultFields[field] = true;
|
|
52575
52545
|
}
|
|
52576
52546
|
}
|
|
52577
|
-
return [keys$
|
|
52547
|
+
return [keys$2$1(fields_).sort(), keys$2$1(optionalPlusDefaultFields).sort()];
|
|
52578
52548
|
},
|
|
52579
52549
|
processRecords(records) {
|
|
52580
52550
|
const { missingFields } = defaultServerFieldStatus;
|
|
52581
|
-
const fields = keys$
|
|
52551
|
+
const fields = keys$2$1(missingFields);
|
|
52582
52552
|
for (let i = 0; i < fields.length; ++i) {
|
|
52583
52553
|
const field = fields[i], splitField = field.split('.').slice(1);
|
|
52584
52554
|
for (let i = 0; i < records.length; ++i) {
|
|
@@ -54922,7 +54892,7 @@ function getMissingRecordLookupFields(record, objectInfo) {
|
|
|
54922
54892
|
const lookupFields = {};
|
|
54923
54893
|
const { apiName, fields: recordFields } = record;
|
|
54924
54894
|
const { fields: objectInfoFields } = objectInfo;
|
|
54925
|
-
const objectInfoFieldNames = keys$
|
|
54895
|
+
const objectInfoFieldNames = keys$2$1(objectInfoFields);
|
|
54926
54896
|
for (let i = 0, len = objectInfoFieldNames.length; i < len; i += 1) {
|
|
54927
54897
|
const fieldName = objectInfoFieldNames[i];
|
|
54928
54898
|
const field = objectInfoFields[fieldName];
|
|
@@ -54941,12 +54911,12 @@ function getMissingRecordLookupFields(record, objectInfo) {
|
|
|
54941
54911
|
const nameField = `${apiName}.${relationshipName}.${getNameField(objectInfo, fieldName)}`;
|
|
54942
54912
|
lookupFields[nameField] = true;
|
|
54943
54913
|
}
|
|
54944
|
-
return keys$
|
|
54914
|
+
return keys$2$1(lookupFields);
|
|
54945
54915
|
}
|
|
54946
54916
|
function getRecordUiMissingRecordLookupFields(recordUi) {
|
|
54947
54917
|
const { records, objectInfos } = recordUi;
|
|
54948
54918
|
const recordLookupFields = {};
|
|
54949
|
-
const recordIds = keys$
|
|
54919
|
+
const recordIds = keys$2$1(records);
|
|
54950
54920
|
for (let i = 0, len = recordIds.length; i < len; i += 1) {
|
|
54951
54921
|
const recordId = recordIds[i];
|
|
54952
54922
|
const recordData = records[recordId];
|
|
@@ -54984,19 +54954,19 @@ function buildCachedSelectorKey(key) {
|
|
|
54984
54954
|
}
|
|
54985
54955
|
function eachLayout(recordUi, cb) {
|
|
54986
54956
|
const { layouts } = recordUi;
|
|
54987
|
-
const layoutApiNames = keys$
|
|
54957
|
+
const layoutApiNames = keys$2$1(layouts);
|
|
54988
54958
|
for (let a = 0, len = layoutApiNames.length; a < len; a += 1) {
|
|
54989
54959
|
const apiName = layoutApiNames[a];
|
|
54990
54960
|
const apiNameData = layouts[apiName];
|
|
54991
|
-
const recordTypeIds = keys$
|
|
54961
|
+
const recordTypeIds = keys$2$1(apiNameData);
|
|
54992
54962
|
for (let b = 0, recordTypeIdsLen = recordTypeIds.length; b < recordTypeIdsLen; b += 1) {
|
|
54993
54963
|
const recordTypeId = recordTypeIds[b];
|
|
54994
54964
|
const recordTypeData = apiNameData[recordTypeId];
|
|
54995
|
-
const layoutTypes = keys$
|
|
54965
|
+
const layoutTypes = keys$2$1(recordTypeData);
|
|
54996
54966
|
for (let c = 0, layoutTypesLen = layoutTypes.length; c < layoutTypesLen; c += 1) {
|
|
54997
54967
|
const layoutType = layoutTypes[c];
|
|
54998
54968
|
const layoutTypeData = recordTypeData[layoutType];
|
|
54999
|
-
const modes = keys$
|
|
54969
|
+
const modes = keys$2$1(layoutTypeData);
|
|
55000
54970
|
for (let d = 0, modesLen = modes.length; d < modesLen; d += 1) {
|
|
55001
54971
|
const mode = modes[d];
|
|
55002
54972
|
const layout = layoutTypeData[mode];
|
|
@@ -55202,14 +55172,14 @@ function buildNetworkSnapshot$e(luvio, config, dispatchContext) {
|
|
|
55202
55172
|
function publishDependencies(luvio, recordIds, depKeys) {
|
|
55203
55173
|
for (let i = 0, len = recordIds.length; i < len; i += 1) {
|
|
55204
55174
|
const recordDepKey = dependencyKeyBuilder({ recordId: recordIds[i] });
|
|
55205
|
-
const dependencies = create$
|
|
55175
|
+
const dependencies = create$2$1(null);
|
|
55206
55176
|
for (let j = 0, len = depKeys.length; j < len; j++) {
|
|
55207
55177
|
dependencies[depKeys[j]] = true;
|
|
55208
55178
|
}
|
|
55209
55179
|
const node = luvio.getNode(recordDepKey);
|
|
55210
55180
|
if (isGraphNode(node)) {
|
|
55211
55181
|
const recordDeps = node.retrieve();
|
|
55212
|
-
assign$
|
|
55182
|
+
assign$2(dependencies, recordDeps);
|
|
55213
55183
|
}
|
|
55214
55184
|
luvio.storePublish(recordDepKey, dependencies);
|
|
55215
55185
|
}
|
|
@@ -55395,11 +55365,11 @@ const recordLayoutFragmentSelector = [
|
|
|
55395
55365
|
function getFieldsFromLayoutMap(layoutMap, objectInfo) {
|
|
55396
55366
|
let fields = [];
|
|
55397
55367
|
let optionalFields = [];
|
|
55398
|
-
const layoutTypes = keys$
|
|
55368
|
+
const layoutTypes = keys$2$1(layoutMap);
|
|
55399
55369
|
for (let i = 0, layoutTypesLen = layoutTypes.length; i < layoutTypesLen; i += 1) {
|
|
55400
55370
|
const layoutType = layoutTypes[i];
|
|
55401
55371
|
const modesMap = layoutMap[layoutType];
|
|
55402
|
-
const modes = keys$
|
|
55372
|
+
const modes = keys$2$1(modesMap);
|
|
55403
55373
|
for (let m = 0, modesLen = modes.length; m < modesLen; m += 1) {
|
|
55404
55374
|
const mode = modes[m];
|
|
55405
55375
|
const { fields: modeFields, optionalFields: modeOptionalFields } = getQualifiedFieldApiNamesFromLayout(modesMap[mode], objectInfo);
|
|
@@ -55435,7 +55405,7 @@ function getRecordForLayoutableEntities(luvio, refresh, recordId, layoutMap, obj
|
|
|
55435
55405
|
return getRecord(luvio, refresh, recordId, [], implicitFields);
|
|
55436
55406
|
}
|
|
55437
55407
|
function getRecordForNonLayoutableEntities(luvio, adapterContext, refresh, recordId, objectInfo, configOptionalFields, configFields) {
|
|
55438
|
-
const fields = keys$
|
|
55408
|
+
const fields = keys$2$1(configFields ? configFields : {}).map((key) => `${objectInfo.apiName}.${key}`);
|
|
55439
55409
|
// W-12697744
|
|
55440
55410
|
// Set the implicit fields received from the server in adapter context
|
|
55441
55411
|
// This ensures that the implicit fields are available when data is read locally or from durable store
|
|
@@ -55681,7 +55651,7 @@ function makeRecordLayoutMap(luvio, config, apiName, recordTypeId, layoutTypes,
|
|
|
55681
55651
|
}
|
|
55682
55652
|
const { layoutType, mode, snapshot } = container;
|
|
55683
55653
|
if (wrapper.layoutMap[layoutType] === undefined) {
|
|
55684
|
-
wrapper.layoutMap = assign$
|
|
55654
|
+
wrapper.layoutMap = assign$2({}, wrapper.layoutMap, {
|
|
55685
55655
|
[layoutType]: {},
|
|
55686
55656
|
});
|
|
55687
55657
|
}
|
|
@@ -56218,7 +56188,7 @@ function typeCheckConfig$9(untrustedConfig) {
|
|
|
56218
56188
|
}
|
|
56219
56189
|
}
|
|
56220
56190
|
if (records.length > 0) {
|
|
56221
|
-
assign$
|
|
56191
|
+
assign$2(config, { records });
|
|
56222
56192
|
}
|
|
56223
56193
|
}
|
|
56224
56194
|
return config;
|
|
@@ -65896,9 +65866,7 @@ function convertGraphQLToRaml$1(astNode, state) {
|
|
|
65896
65866
|
: new Map();
|
|
65897
65867
|
const { fieldsBag, trie } = createFieldsBagAndTrie$1(data, requestedFields, state);
|
|
65898
65868
|
const recordTypeId = data.ldsRecordTypeId === null ? null : data.ldsRecordTypeId.value;
|
|
65899
|
-
if (
|
|
65900
|
-
recordTypeId &&
|
|
65901
|
-
recordTypeId !== MAIN_RECORD_TYPE_ID) {
|
|
65869
|
+
if (recordTypeId && recordTypeId !== MAIN_RECORD_TYPE_ID) {
|
|
65902
65870
|
const fieldName = 'RecordTypeId';
|
|
65903
65871
|
fieldsBag[fieldName] = {
|
|
65904
65872
|
value: recordTypeId,
|
|
@@ -66234,7 +66202,7 @@ function selectType$I$1(typename, sel, fieldData, reader, key, sink, variables,
|
|
|
66234
66202
|
*/
|
|
66235
66203
|
|
|
66236
66204
|
|
|
66237
|
-
function isStoreKeyRecordId
|
|
66205
|
+
function isStoreKeyRecordId(key) {
|
|
66238
66206
|
return key.indexOf(RECORD_ID_PREFIX$1) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1;
|
|
66239
66207
|
}
|
|
66240
66208
|
function objectsDeepEqual(lhs, rhs) {
|
|
@@ -78957,7 +78925,7 @@ function getRecordKeyForId(luvio, recordId) {
|
|
|
78957
78925
|
*/
|
|
78958
78926
|
function filterOutReferenceNonScalarFields(record) {
|
|
78959
78927
|
const filteredFields = {};
|
|
78960
|
-
const fieldNames = keys$
|
|
78928
|
+
const fieldNames = keys$2$1(record.fields);
|
|
78961
78929
|
for (const fieldName of fieldNames) {
|
|
78962
78930
|
const field = record.fields[fieldName];
|
|
78963
78931
|
if (isFieldLink(field) === false && isPendingOrMissing(field) === false) {
|
|
@@ -79063,7 +79031,7 @@ function getRecordDraftEnvironment(luvio, env, { isDraftId, durableRecordStore }
|
|
|
79063
79031
|
const resolvedRequest = resolveResourceRequestIds(luvio, resourceRequest, canonicalKey);
|
|
79064
79032
|
return env.dispatchResourceRequest(resolvedRequest, context, eventObservers);
|
|
79065
79033
|
};
|
|
79066
|
-
return create$
|
|
79034
|
+
return create$2$1(env, {
|
|
79067
79035
|
dispatchResourceRequest: { value: dispatchResourceRequest },
|
|
79068
79036
|
});
|
|
79069
79037
|
}
|
|
@@ -79241,7 +79209,7 @@ function getRecordsDraftEnvironment(luvio, env, { isDraftId }) {
|
|
|
79241
79209
|
return applyDraftsToBatchResponse(resourceRequest, response, removedDraftIds);
|
|
79242
79210
|
}));
|
|
79243
79211
|
};
|
|
79244
|
-
return create$
|
|
79212
|
+
return create$2$1(env, {
|
|
79245
79213
|
dispatchResourceRequest: { value: dispatchResourceRequest },
|
|
79246
79214
|
});
|
|
79247
79215
|
}
|
|
@@ -79251,7 +79219,7 @@ function makeEnvironmentUiApiRecordDraftAware(luvio, options, env) {
|
|
|
79251
79219
|
const adapterSpecificEnvironments = synthesizers.reduce((environment, synthesizer) => {
|
|
79252
79220
|
return synthesizer(luvio, environment, options);
|
|
79253
79221
|
}, env);
|
|
79254
|
-
return create$
|
|
79222
|
+
return create$2$1(adapterSpecificEnvironments, {});
|
|
79255
79223
|
}
|
|
79256
79224
|
|
|
79257
79225
|
const HTTP_HEADER_RETRY_AFTER = 'Retry-After';
|
|
@@ -79801,7 +79769,7 @@ class UiApiActionHandler extends AbstractResourceRequestActionHandler {
|
|
|
79801
79769
|
pendingAction.data.method !== 'delete' && //'delete' action does not have fields
|
|
79802
79770
|
objectInfo) {
|
|
79803
79771
|
const appendedFields = this.getBackdatingFields(objectInfo, resolvedRequest.method, pendingAction);
|
|
79804
|
-
if (keys$
|
|
79772
|
+
if (keys$2$1(appendedFields).length > 0) {
|
|
79805
79773
|
pendingAction.data.body = {
|
|
79806
79774
|
...pendingAction.data.body,
|
|
79807
79775
|
fields: {
|
|
@@ -79815,7 +79783,7 @@ class UiApiActionHandler extends AbstractResourceRequestActionHandler {
|
|
|
79815
79783
|
}
|
|
79816
79784
|
getBackdatingFields(objectInfo, requestMethod, pendingAction) {
|
|
79817
79785
|
const fields = {};
|
|
79818
|
-
const actionFieldNames = keys$
|
|
79786
|
+
const actionFieldNames = keys$2$1(pendingAction.data.body.fields);
|
|
79819
79787
|
if (requestMethod === 'post') {
|
|
79820
79788
|
// `CreateRecord` with `CreatedDate` field
|
|
79821
79789
|
if (isBackdatingFieldEditable(objectInfo, DEFAULT_FIELD_CREATED_DATE$1, 'createable', actionFieldNames)) {
|
|
@@ -79861,7 +79829,7 @@ class UiApiActionHandler extends AbstractResourceRequestActionHandler {
|
|
|
79861
79829
|
return;
|
|
79862
79830
|
}
|
|
79863
79831
|
const objectInfo = objectInfoMap[apiName];
|
|
79864
|
-
const optionalFields = values$
|
|
79832
|
+
const optionalFields = values$1(objectInfo.fields).map((field) => `${apiName}.${field.apiName}`);
|
|
79865
79833
|
await getAdapterData(this.getRecordAdapter, {
|
|
79866
79834
|
recordId: referenceFieldInfo.id,
|
|
79867
79835
|
optionalFields,
|
|
@@ -79880,7 +79848,7 @@ class UiApiActionHandler extends AbstractResourceRequestActionHandler {
|
|
|
79880
79848
|
const referenceToInfos = fieldInfo.referenceToInfos;
|
|
79881
79849
|
const apiNames = referenceToInfos.map((referenceToInfo) => referenceToInfo.apiName);
|
|
79882
79850
|
const objectInfoMap = await this.objectInfoService.getObjectInfos(apiNames);
|
|
79883
|
-
for (const objectInfo of values$
|
|
79851
|
+
for (const objectInfo of values$1(objectInfoMap)) {
|
|
79884
79852
|
const { apiName, keyPrefix } = objectInfo;
|
|
79885
79853
|
if (keyPrefix !== null && id.startsWith(keyPrefix)) {
|
|
79886
79854
|
return apiName;
|
|
@@ -79966,7 +79934,7 @@ class UiApiActionHandler extends AbstractResourceRequestActionHandler {
|
|
|
79966
79934
|
let resolvedUrlParams = request.urlParams;
|
|
79967
79935
|
if (request.method === 'post' || request.method === 'patch') {
|
|
79968
79936
|
const bodyFields = resolvedBody.fields;
|
|
79969
|
-
const fieldNames = keys$
|
|
79937
|
+
const fieldNames = keys$2$1(bodyFields);
|
|
79970
79938
|
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
79971
79939
|
const fieldName = fieldNames[i];
|
|
79972
79940
|
const fieldValue = bodyFields[fieldName];
|
|
@@ -80122,7 +80090,7 @@ class UiApiDraftRecordService {
|
|
|
80122
80090
|
};
|
|
80123
80091
|
}
|
|
80124
80092
|
const referenceFields = [];
|
|
80125
|
-
const fieldNames = keys$
|
|
80093
|
+
const fieldNames = keys$2$1(fields);
|
|
80126
80094
|
const unexpectedFields = [];
|
|
80127
80095
|
for (const field of fieldNames) {
|
|
80128
80096
|
const fieldInfo = objectInfo.fields[field];
|
|
@@ -80184,11 +80152,13 @@ class UiApiDraftRecordService {
|
|
|
80184
80152
|
|
|
80185
80153
|
const QUICK_ACTION_HANDLER = 'QUICK_ACTION_HANDLER';
|
|
80186
80154
|
class QuickActionExecutionRepresentationHandler extends AbstractResourceRequestActionHandler {
|
|
80187
|
-
constructor(getLuvio, draftRecordService, draftQueue, networkAdapter, isDraftId, sideEffectService) {
|
|
80155
|
+
constructor(getLuvio, draftRecordService, draftQueue, networkAdapter, isDraftId, sideEffectService, objectInfoService, getRecord) {
|
|
80188
80156
|
super(draftQueue, networkAdapter, getLuvio, draftRecordService);
|
|
80189
80157
|
this.draftRecordService = draftRecordService;
|
|
80190
80158
|
this.isDraftId = isDraftId;
|
|
80191
80159
|
this.sideEffectService = sideEffectService;
|
|
80160
|
+
this.objectInfoService = objectInfoService;
|
|
80161
|
+
this.getRecord = getRecord;
|
|
80192
80162
|
this.handlerId = QUICK_ACTION_HANDLER;
|
|
80193
80163
|
draftRecordService.registerRecordHandler(this);
|
|
80194
80164
|
}
|
|
@@ -80220,6 +80190,30 @@ class QuickActionExecutionRepresentationHandler extends AbstractResourceRequestA
|
|
|
80220
80190
|
});
|
|
80221
80191
|
luvio.storeIngest(key, ingest$B$2, response);
|
|
80222
80192
|
}
|
|
80193
|
+
async handleActionCompleted(action, queueOperations) {
|
|
80194
|
+
await super.handleActionCompleted(action, queueOperations);
|
|
80195
|
+
this.getLuvio();
|
|
80196
|
+
const canonicalId = action.response.body.id;
|
|
80197
|
+
this.buildTagForTargetId(canonicalId);
|
|
80198
|
+
const prefix = canonicalId.substring(0, 3);
|
|
80199
|
+
if (prefix.length !== 3) {
|
|
80200
|
+
// if we can't get a prefix, don't do the rest
|
|
80201
|
+
return;
|
|
80202
|
+
}
|
|
80203
|
+
const apiName = await this.objectInfoService.apiNameForPrefix(prefix);
|
|
80204
|
+
const objectInfo = await this.objectInfoService.getObjectInfo(apiName);
|
|
80205
|
+
if (!objectInfo) {
|
|
80206
|
+
return;
|
|
80207
|
+
}
|
|
80208
|
+
await this.getRecord({ recordId: canonicalId, fields: this.allFields(objectInfo) });
|
|
80209
|
+
}
|
|
80210
|
+
allFields(objectInfo) {
|
|
80211
|
+
let fields = [];
|
|
80212
|
+
Object.keys(objectInfo.fields).forEach((fieldName) => {
|
|
80213
|
+
fields.push(objectInfo.apiName + '.' + fieldName);
|
|
80214
|
+
});
|
|
80215
|
+
return fields;
|
|
80216
|
+
}
|
|
80223
80217
|
mergeRequestBody() {
|
|
80224
80218
|
throw Error('mergeActions not supported for QuickActionExecutionRepresentationHandler');
|
|
80225
80219
|
}
|
|
@@ -80470,7 +80464,7 @@ function createContentDocumentAndVersionDraftAdapterFactory(luvio, binaryStore,
|
|
|
80470
80464
|
...trimmedDownData.contentVersion,
|
|
80471
80465
|
fields: cvFields,
|
|
80472
80466
|
};
|
|
80473
|
-
freeze$
|
|
80467
|
+
freeze$2(trimmedDownData);
|
|
80474
80468
|
eventEmitter({ type: 'create-content-document-and-version-draft-finished' });
|
|
80475
80469
|
return {
|
|
80476
80470
|
state: 'Fulfilled',
|
|
@@ -81404,7 +81398,7 @@ function dateTimePredicate(input, operator, field, alias) {
|
|
|
81404
81398
|
return predicate;
|
|
81405
81399
|
}
|
|
81406
81400
|
else if (literal !== undefined) {
|
|
81407
|
-
const isAvailableLiteral = values$
|
|
81401
|
+
const isAvailableLiteral = values$1(DateLiteral).includes(literal);
|
|
81408
81402
|
// eslint-disable-next-line @salesforce/lds/no-error-in-production
|
|
81409
81403
|
if (!isAvailableLiteral)
|
|
81410
81404
|
throw new Error(`${literal} is not a valid DateLiteral`);
|
|
@@ -81418,7 +81412,7 @@ function dateTimePredicate(input, operator, field, alias) {
|
|
|
81418
81412
|
}
|
|
81419
81413
|
function dateTimeRange(input, op, field, alias) {
|
|
81420
81414
|
const dateFunction = field.dataType === 'DateTime' ? 'datetime' : 'date';
|
|
81421
|
-
const key = keys$
|
|
81415
|
+
const key = keys$2$1(input)[0];
|
|
81422
81416
|
let operator = op;
|
|
81423
81417
|
if (operator === '=')
|
|
81424
81418
|
operator = 'BETWEEN';
|
|
@@ -81718,7 +81712,7 @@ function filterToPredicates(where, recordType, alias, objectInfoMap, joins, draf
|
|
|
81718
81712
|
if (!where)
|
|
81719
81713
|
return [];
|
|
81720
81714
|
let predicates = [];
|
|
81721
|
-
const fields = keys$
|
|
81715
|
+
const fields = keys$2$1(where);
|
|
81722
81716
|
for (const field of fields) {
|
|
81723
81717
|
if (field === 'and' || field === 'or') {
|
|
81724
81718
|
predicates.push(processCompoundPredicate(field, where[field], recordType, alias, objectInfoMap, joins));
|
|
@@ -81771,7 +81765,7 @@ function filterToPredicates(where, recordType, alias, objectInfoMap, joins, draf
|
|
|
81771
81765
|
}
|
|
81772
81766
|
else {
|
|
81773
81767
|
// @W-12618378 polymorphic query sometimes does not work as expected on server. The GQL on certain entities could fail.
|
|
81774
|
-
const entityNames = keys$
|
|
81768
|
+
const entityNames = keys$2$1(where[field]);
|
|
81775
81769
|
const polyPredicatesGroups = entityNames
|
|
81776
81770
|
.filter((entityName) => fieldInfo.referenceToInfos.some((referenceInfo) => referenceInfo.apiName === entityName))
|
|
81777
81771
|
.map((entityName) => {
|
|
@@ -81806,7 +81800,7 @@ function filterToPredicates(where, recordType, alias, objectInfoMap, joins, draf
|
|
|
81806
81800
|
}
|
|
81807
81801
|
else {
|
|
81808
81802
|
//`field` match the filedInfo's apiName
|
|
81809
|
-
for (const [op, value] of entries$
|
|
81803
|
+
for (const [op, value] of entries$2(where[field])) {
|
|
81810
81804
|
const operator = operatorToSql(op);
|
|
81811
81805
|
/**
|
|
81812
81806
|
Two types ID processing might be needed. Draft ID swapping is optional, which depends on DraftFunctions existence.
|
|
@@ -82123,16 +82117,22 @@ function singlePredicateToSql(predicate, defaultAlias, isChildNotPredicate = fal
|
|
|
82123
82117
|
}
|
|
82124
82118
|
}
|
|
82125
82119
|
else {
|
|
82126
|
-
|
|
82127
|
-
|
|
82128
|
-
// For pick list includes or excludeds, prefix and suffix the field value with ';' to guarantee the query accuracy.
|
|
82129
|
-
if (dataType === 'MultiPicklist' && (operator === 'LIKE' || operator === 'NOT LIKE')) {
|
|
82130
|
-
sql = buildMultiPicklistSQL(predicate, valueBinding, questionSql);
|
|
82120
|
+
if (value === null && dataType !== 'MultiPicklist') {
|
|
82121
|
+
sql = `json_extract("${alias}".data, '${leftPath}') ${operator} NULL`;
|
|
82131
82122
|
}
|
|
82132
82123
|
else {
|
|
82133
|
-
|
|
82124
|
+
const { sql: questionSql, binding: valueBinding } = handleExtractedPredicateValue(boundValue, false);
|
|
82125
|
+
// SQLite is case sensitive by default, SOQL is case in-sensitive by default
|
|
82126
|
+
// For pick list includes or excludeds, prefix and suffix the field value with ';' to guarantee the query accuracy.
|
|
82127
|
+
if (dataType === 'MultiPicklist' &&
|
|
82128
|
+
(operator === 'LIKE' || operator === 'NOT LIKE')) {
|
|
82129
|
+
sql = buildMultiPicklistSQL(predicate, valueBinding, questionSql);
|
|
82130
|
+
}
|
|
82131
|
+
else {
|
|
82132
|
+
sql = `json_extract("${alias}".data, '${leftPath}') ${operator} ${questionSql}${isCaseSensitive === true ? '' : ` COLLATE NOCASE`}`;
|
|
82133
|
+
}
|
|
82134
|
+
binding.push(...valueBinding);
|
|
82134
82135
|
}
|
|
82135
|
-
binding.push(...valueBinding);
|
|
82136
82136
|
}
|
|
82137
82137
|
}
|
|
82138
82138
|
return { sql, binding };
|
|
@@ -82317,7 +82317,7 @@ function dedupeJoins(joins) {
|
|
|
82317
82317
|
for (const join of joins) {
|
|
82318
82318
|
deduped[join.alias + join.to] = join;
|
|
82319
82319
|
}
|
|
82320
|
-
return values$
|
|
82320
|
+
return values$1(deduped);
|
|
82321
82321
|
}
|
|
82322
82322
|
function buildJoins(config) {
|
|
82323
82323
|
let sql = '';
|
|
@@ -82992,7 +82992,7 @@ function depth(json, currentLevel = 0) {
|
|
|
82992
82992
|
if (typeof json !== 'object') {
|
|
82993
82993
|
return currentLevel;
|
|
82994
82994
|
}
|
|
82995
|
-
const keys = keys$
|
|
82995
|
+
const keys = keys$2$1(json);
|
|
82996
82996
|
if (keys.length === 0)
|
|
82997
82997
|
return 0;
|
|
82998
82998
|
const depths = keys.map((key) => {
|
|
@@ -83005,7 +83005,7 @@ function flatten(previous, current) {
|
|
|
83005
83005
|
return previous.concat(current);
|
|
83006
83006
|
}
|
|
83007
83007
|
function findFieldInfo(objectInfo, fieldName) {
|
|
83008
|
-
return values$
|
|
83008
|
+
return values$1(objectInfo.fields).find((field) => field.apiName === fieldName ||
|
|
83009
83009
|
(field.dataType === 'Reference' && field.relationshipName === fieldName));
|
|
83010
83010
|
}
|
|
83011
83011
|
async function readIngestionTimestampForKey(key, query) {
|
|
@@ -83045,14 +83045,14 @@ function orderByToPredicate(orderBy, recordType, alias, objectInfoMap, joins) {
|
|
|
83045
83045
|
return predicates;
|
|
83046
83046
|
const isSpanning = depth(orderBy) > 2;
|
|
83047
83047
|
if (isSpanning) {
|
|
83048
|
-
const keys = keys$
|
|
83048
|
+
const keys = keys$2$1(orderBy);
|
|
83049
83049
|
for (let i = 0, len = keys.length; i < len; i++) {
|
|
83050
83050
|
const key = keys[i];
|
|
83051
83051
|
const parentFields = objectInfoMap[recordType].fields;
|
|
83052
|
-
const fieldInfo = values$
|
|
83052
|
+
const fieldInfo = values$1(parentFields).find(findSpanningField(key));
|
|
83053
83053
|
if (fieldInfo && fieldInfo.referenceToInfos.length > 0) {
|
|
83054
83054
|
const { apiName } = fieldInfo.referenceToInfos[0];
|
|
83055
|
-
const parentFieldInfo = values$
|
|
83055
|
+
const parentFieldInfo = values$1(objectInfoMap[recordType].fields).find(findSpanningField(fieldInfo.apiName));
|
|
83056
83056
|
if (parentFieldInfo !== undefined) {
|
|
83057
83057
|
const path = {
|
|
83058
83058
|
leftPath: `$.fields.${parentFieldInfo.apiName}.value`,
|
|
@@ -83075,7 +83075,7 @@ function orderByToPredicate(orderBy, recordType, alias, objectInfoMap, joins) {
|
|
|
83075
83075
|
}
|
|
83076
83076
|
}
|
|
83077
83077
|
else {
|
|
83078
|
-
const keys = keys$
|
|
83078
|
+
const keys = keys$2$1(orderBy);
|
|
83079
83079
|
for (let i = 0, len = keys.length; i < len; i++) {
|
|
83080
83080
|
const key = keys[i];
|
|
83081
83081
|
if (!objectInfoMap[recordType])
|
|
@@ -84370,7 +84370,7 @@ function buildKeyStringForRecordQuery(operation, variables, argumentNodes, curre
|
|
|
84370
84370
|
variables,
|
|
84371
84371
|
fragmentMap: {},
|
|
84372
84372
|
});
|
|
84373
|
-
const filteredArgumentNodes = assign$
|
|
84373
|
+
const filteredArgumentNodes = assign$2([], argumentNodes).filter((node) => node.name.value !== 'first' && node.name.value !== 'after');
|
|
84374
84374
|
const argumentString = filteredArgumentNodes.length > 0
|
|
84375
84375
|
? '__' + serializeFieldArguments$1(filteredArgumentNodes, variables)
|
|
84376
84376
|
: '';
|
|
@@ -84393,7 +84393,7 @@ function addResolversToSchema(schema, polyFields) {
|
|
|
84393
84393
|
let baseRecord = undefined;
|
|
84394
84394
|
// Concrete types for Polymorphic field
|
|
84395
84395
|
const polyTypes = [];
|
|
84396
|
-
for (const type of values$
|
|
84396
|
+
for (const type of values$1(schema.getTypeMap())) {
|
|
84397
84397
|
if (type.name === 'Record') {
|
|
84398
84398
|
recordInterface = type;
|
|
84399
84399
|
}
|
|
@@ -84406,7 +84406,7 @@ function addResolversToSchema(schema, polyFields) {
|
|
|
84406
84406
|
if (polyFields.find((fieldTypeName) => fieldTypeName === type.name) !== undefined) {
|
|
84407
84407
|
polyTypes.push(type);
|
|
84408
84408
|
}
|
|
84409
|
-
const fields = values$
|
|
84409
|
+
const fields = values$1(type.getFields());
|
|
84410
84410
|
// initialize the fields of current type with default behavior
|
|
84411
84411
|
for (const field of fields) {
|
|
84412
84412
|
field.resolve = defaultFieldResolver;
|
|
@@ -84785,7 +84785,7 @@ function generateRecordQueries(schema, objectInfoMap) {
|
|
|
84785
84785
|
// use a set to not allow duplicate scalars causing error(s)
|
|
84786
84786
|
let addedTypedScalars = new Set();
|
|
84787
84787
|
let allPolymorphicFieldTypeNames = new Set();
|
|
84788
|
-
for (const name of keys$
|
|
84788
|
+
for (const name of keys$2$1(objectInfoMap)) {
|
|
84789
84789
|
const objectInfo = objectInfoMap[name];
|
|
84790
84790
|
const { apiName } = objectInfo;
|
|
84791
84791
|
const type = schema.getType(apiName);
|
|
@@ -84854,7 +84854,7 @@ function createNewRecordQuery(schema, objectInfo, objectInfoMap) {
|
|
|
84854
84854
|
const { apiName, childRelationships, fields: fieldsRepresentation } = objectInfo;
|
|
84855
84855
|
typedScalars.add(`${apiName}_Filter`);
|
|
84856
84856
|
typedScalars.add(`${apiName}_OrderBy`);
|
|
84857
|
-
const { fields, polymorphicFieldTypeNames } = makeRecordField(values$
|
|
84857
|
+
const { fields, polymorphicFieldTypeNames } = makeRecordField(values$1(fieldsRepresentation), objectInfo, objectInfoMap, parentRelationshipFields, 'Missing');
|
|
84858
84858
|
// handles child relationship
|
|
84859
84859
|
const { spanningRecordConnections, typedScalars: spanningConnectionTypedScalars } = makeSpanningRecordConnections(schema, childRelationships, objectInfoMap, parentRelationshipFields);
|
|
84860
84860
|
typedScalars = new Set([...typedScalars, ...spanningConnectionTypedScalars]);
|
|
@@ -84912,8 +84912,8 @@ function extendExistingRecordType(schema, type, objectInfo, objectInfoMap) {
|
|
|
84912
84912
|
// use a set to not allow duplicate scalars causing error(s)
|
|
84913
84913
|
let typedScalars = new Set();
|
|
84914
84914
|
let parentRelationshipFields = new Set();
|
|
84915
|
-
const existingFields = keys$
|
|
84916
|
-
const missingFields = values$
|
|
84915
|
+
const existingFields = keys$2$1(type.getFields());
|
|
84916
|
+
const missingFields = values$1(objectInfo.fields).filter((field) => {
|
|
84917
84917
|
return (existingFields.includes(field.apiName) === false ||
|
|
84918
84918
|
(field.relationshipName !== null && field.referenceToInfos.length > 0));
|
|
84919
84919
|
});
|
|
@@ -84995,7 +84995,7 @@ function makeSpanningRecordConnections(schema, childRelationships, objectInfoMap
|
|
|
84995
84995
|
function makeRecordField(fieldRepresentations, objectInfo, objectInfoMap, existingParentRelationships, recordTypeInSchema, existingFields = []) {
|
|
84996
84996
|
const polymorphicFieldTypeNames = new Set();
|
|
84997
84997
|
let fields = ``;
|
|
84998
|
-
for (const field of values$
|
|
84998
|
+
for (const field of values$1(fieldRepresentations)) {
|
|
84999
84999
|
if (!fieldsStaticallyAdded.includes(field.apiName) && recordTypeInSchema === 'Missing') {
|
|
85000
85000
|
fields += `${field.apiName}: ${graphqlTypeForField(field, objectInfo)}\n`;
|
|
85001
85001
|
}
|
|
@@ -85563,7 +85563,7 @@ function isMineScopeAvailable(apiNamePath, pathToObjectApiNamesMap, objectInfos)
|
|
|
85563
85563
|
const objectInfo = objectInfos[apiName[0]];
|
|
85564
85564
|
if (!objectInfo)
|
|
85565
85565
|
return false;
|
|
85566
|
-
return values$
|
|
85566
|
+
return values$1(objectInfo.fields).some((fieldInfo) => {
|
|
85567
85567
|
return (fieldInfo.apiName === 'OwnerId' &&
|
|
85568
85568
|
fieldInfo.referenceToInfos.some((referenceToInfo) => {
|
|
85569
85569
|
return referenceToInfo.apiName === 'User';
|
|
@@ -85773,7 +85773,7 @@ async function resolveObjectInfos(objectInfotree, pathToObjectApiNamesMap, start
|
|
|
85773
85773
|
// eslint-disable-next-line
|
|
85774
85774
|
throw new Error(`Unable to resolve ObjectInfo(s) for ${Array.from(startNodes)}`);
|
|
85775
85775
|
}
|
|
85776
|
-
if (keys$
|
|
85776
|
+
if (keys$2$1(objectInfos).length < startNodes.size) {
|
|
85777
85777
|
// eslint-disable-next-line
|
|
85778
85778
|
throw new Error(`Unable to resolve ObjectInfo(s) for ${Array.from(startNodes)}`);
|
|
85779
85779
|
}
|
|
@@ -86801,7 +86801,7 @@ function removeSyntheticFields(result, query) {
|
|
|
86801
86801
|
output.data.uiapi = { ...output.data.uiapi };
|
|
86802
86802
|
output.data.uiapi.query = { ...output.data.uiapi.query };
|
|
86803
86803
|
const outputApiParent = output.data.uiapi.query;
|
|
86804
|
-
const keys = keys$
|
|
86804
|
+
const keys = keys$2$1(nodeJson);
|
|
86805
86805
|
keys.forEach((recordName) => {
|
|
86806
86806
|
const outputApi = {};
|
|
86807
86807
|
// Each connectionSelection's maps its name or alias to one of returned records. The record name could be `apiName' or alias
|
|
@@ -86821,7 +86821,7 @@ function removeSyntheticFields(result, query) {
|
|
|
86821
86821
|
* @param jsonOutput JsonObject which will be populated with properties. It would only contains properties defined in 'FieldNode'
|
|
86822
86822
|
*/
|
|
86823
86823
|
function createUserJsonOutput(selection, jsonInput, jsonOutput) {
|
|
86824
|
-
const keys = keys$
|
|
86824
|
+
const keys = keys$2$1(jsonInput);
|
|
86825
86825
|
if (selection.selectionSet) {
|
|
86826
86826
|
createjsonOutput(selection.selectionSet.selections, jsonInput, jsonOutput);
|
|
86827
86827
|
}
|
|
@@ -86830,7 +86830,7 @@ function createUserJsonOutput(selection, jsonInput, jsonOutput) {
|
|
|
86830
86830
|
}
|
|
86831
86831
|
}
|
|
86832
86832
|
function createjsonOutput(selections, jsonInput, jsonOutput) {
|
|
86833
|
-
const keys = keys$
|
|
86833
|
+
const keys = keys$2$1(jsonInput);
|
|
86834
86834
|
selections.filter(isFieldNode).forEach((subSelection) => {
|
|
86835
86835
|
const fieldName = subSelection.alias ? subSelection.alias.value : subSelection.name.value;
|
|
86836
86836
|
if (keys.includes(fieldName)) {
|
|
@@ -87238,7 +87238,7 @@ function findRecordQueryContainsFieldType(recordQueryNode, fieldNames) {
|
|
|
87238
87238
|
*/
|
|
87239
87239
|
function findFieldTypeInObjectInfo(objectInfos, fieldType) {
|
|
87240
87240
|
let fieldsWithDataType = [];
|
|
87241
|
-
keys$
|
|
87241
|
+
keys$2$1(objectInfos).filter((recordType) => {
|
|
87242
87242
|
for (const field in objectInfos[recordType].fields) {
|
|
87243
87243
|
if (objectInfos[recordType].fields[field].dataType === fieldType) {
|
|
87244
87244
|
fieldsWithDataType.push(field);
|
|
@@ -87269,7 +87269,7 @@ const replaceDraftIdsInVariables = (variables, draftFunctions, unmappedDraftIDs)
|
|
|
87269
87269
|
}
|
|
87270
87270
|
else if (typeof object === 'object' && object !== null) {
|
|
87271
87271
|
let source = object;
|
|
87272
|
-
return keys$
|
|
87272
|
+
return keys$2$1(source).reduce((acc, key) => {
|
|
87273
87273
|
acc[key] = replace(source[key]);
|
|
87274
87274
|
return acc;
|
|
87275
87275
|
}, {});
|
|
@@ -87278,7 +87278,7 @@ const replaceDraftIdsInVariables = (variables, draftFunctions, unmappedDraftIDs)
|
|
|
87278
87278
|
return object;
|
|
87279
87279
|
}
|
|
87280
87280
|
};
|
|
87281
|
-
let newVariables = keys$
|
|
87281
|
+
let newVariables = keys$2$1(variables).reduce((acc, key) => {
|
|
87282
87282
|
acc[key] = replace(variables[key]);
|
|
87283
87283
|
return acc;
|
|
87284
87284
|
}, {});
|
|
@@ -87733,16 +87733,16 @@ const recordIdGenerator = (id) => {
|
|
|
87733
87733
|
*/
|
|
87734
87734
|
|
|
87735
87735
|
|
|
87736
|
-
const { keys: keys$
|
|
87736
|
+
const { keys: keys$1$1, create: create$1$1, assign: assign$1$1, entries: entries$1 } = Object;
|
|
87737
87737
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
87738
87738
|
const { push: push$3, join, slice } = Array.prototype;
|
|
87739
87739
|
const { isArray: isArray$4, from } = Array;
|
|
87740
87740
|
|
|
87741
87741
|
function ldsParamsToString(params) {
|
|
87742
|
-
const returnParams = create$
|
|
87743
|
-
const keys$1 = keys$
|
|
87744
|
-
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
87745
|
-
const key = keys$1[i];
|
|
87742
|
+
const returnParams = create$1$1(null);
|
|
87743
|
+
const keys$1$1$1 = keys$1$1(params);
|
|
87744
|
+
for (let i = 0, len = keys$1$1$1.length; i < len; i++) {
|
|
87745
|
+
const key = keys$1$1$1[i];
|
|
87746
87746
|
const value = params[key];
|
|
87747
87747
|
if (value === undefined) {
|
|
87748
87748
|
// filter out params that have no value
|
|
@@ -87757,7 +87757,7 @@ function ldsParamsToString(params) {
|
|
|
87757
87757
|
else {
|
|
87758
87758
|
returnParams[key] = `${value}`;
|
|
87759
87759
|
}
|
|
87760
|
-
if (isObject(value) === true && keys$
|
|
87760
|
+
if (isObject(value) === true && keys$1$1(value).length > 0) {
|
|
87761
87761
|
returnParams[key] = stringify$1(value);
|
|
87762
87762
|
}
|
|
87763
87763
|
}
|
|
@@ -88156,7 +88156,7 @@ function buildAggregateUiUrl(params, resourceRequest) {
|
|
|
88156
88156
|
optionalFields,
|
|
88157
88157
|
};
|
|
88158
88158
|
const queryString = [];
|
|
88159
|
-
for (const [key, value] of entries$
|
|
88159
|
+
for (const [key, value] of entries$1(mergedParams)) {
|
|
88160
88160
|
if (value !== undefined) {
|
|
88161
88161
|
queryString.push(`${key}=${isArray$4(value) ? value.join(',') : value}`);
|
|
88162
88162
|
}
|
|
@@ -88172,7 +88172,7 @@ function isSpanningRecord(fieldValue) {
|
|
|
88172
88172
|
function mergeRecordFields(first, second) {
|
|
88173
88173
|
const { fields: targetFields } = first;
|
|
88174
88174
|
const { fields: sourceFields } = second;
|
|
88175
|
-
const fieldNames = keys$
|
|
88175
|
+
const fieldNames = keys$1$1(sourceFields);
|
|
88176
88176
|
for (let i = 0, len = fieldNames.length; i < len; i += 1) {
|
|
88177
88177
|
const fieldName = fieldNames[i];
|
|
88178
88178
|
const sourceField = sourceFields[fieldName];
|
|
@@ -88332,7 +88332,7 @@ function calculateEstimatedTotalUrlLength(request) {
|
|
|
88332
88332
|
const { baseUri, basePath, queryParams } = request;
|
|
88333
88333
|
let url = `${baseUri}${basePath}`;
|
|
88334
88334
|
if (queryParams) {
|
|
88335
|
-
const queryParamString = entries$
|
|
88335
|
+
const queryParamString = entries$1(queryParams)
|
|
88336
88336
|
.map(([key, value]) => `${key}=${value}`)
|
|
88337
88337
|
.join('&');
|
|
88338
88338
|
if (queryParamString) {
|
|
@@ -88763,7 +88763,7 @@ function instrumentDraftQueue(queue) {
|
|
|
88763
88763
|
logError: false,
|
|
88764
88764
|
});
|
|
88765
88765
|
};
|
|
88766
|
-
const overriddenQueue = create$
|
|
88766
|
+
const overriddenQueue = create$2$1(queue, { mergeActions: { value: mergeActions } });
|
|
88767
88767
|
overriddenQueue.registerOnChangedListener((draftQueueEvent) => {
|
|
88768
88768
|
switch (draftQueueEvent.type) {
|
|
88769
88769
|
case DraftQueueEventType.QueueStateChanged: {
|
|
@@ -88901,7 +88901,7 @@ function enableObjectInfoCaching(env, ensureObjectInfoCached) {
|
|
|
88901
88901
|
function dataIsObjectInfo(key, data) {
|
|
88902
88902
|
return incomingObjectInfos.has(key);
|
|
88903
88903
|
}
|
|
88904
|
-
return create$
|
|
88904
|
+
return create$2$1(env, {
|
|
88905
88905
|
handleSuccessResponse: { value: handleSuccessResponse },
|
|
88906
88906
|
storePublish: { value: storePublish },
|
|
88907
88907
|
});
|
|
@@ -89002,8 +89002,8 @@ class ObjectInfoService {
|
|
|
89002
89002
|
}
|
|
89003
89003
|
};
|
|
89004
89004
|
// Local in-memory cache for apiName to key prefixes
|
|
89005
|
-
this.apiNameToKeyPrefixMemoryCache = create$
|
|
89006
|
-
this.keyPrefixToApiNameMemoryCache = create$
|
|
89005
|
+
this.apiNameToKeyPrefixMemoryCache = create$2$1(null);
|
|
89006
|
+
this.keyPrefixToApiNameMemoryCache = create$2$1(null);
|
|
89007
89007
|
}
|
|
89008
89008
|
/**
|
|
89009
89009
|
* Size of return map not necessarily correlated with number of inputs. The
|
|
@@ -89159,7 +89159,7 @@ function registerReportObserver(reportObserver) {
|
|
|
89159
89159
|
};
|
|
89160
89160
|
}
|
|
89161
89161
|
|
|
89162
|
-
const { keys: keys$
|
|
89162
|
+
const { keys: keys$6, create: create$5, assign: assign$5, entries, values } = Object;
|
|
89163
89163
|
const { stringify: stringify$5, parse: parse$5 } = JSON;
|
|
89164
89164
|
|
|
89165
89165
|
function selectColumnsFromTableWhereKeyIn(columnNames, table, keyColumnName, whereIn) {
|
|
@@ -89226,7 +89226,7 @@ class LdsDataTable {
|
|
|
89226
89226
|
},
|
|
89227
89227
|
conflictColumns: this.conflictColumnNames,
|
|
89228
89228
|
columns: this.columnNames,
|
|
89229
|
-
rows: keys$
|
|
89229
|
+
rows: keys$6(entries).reduce((rows, key) => {
|
|
89230
89230
|
const entry = entries[key];
|
|
89231
89231
|
const { data, metadata } = entry;
|
|
89232
89232
|
const row = [key, stringify$5(data), metadata ? stringify$5(metadata) : null];
|
|
@@ -89245,7 +89245,7 @@ class LdsDataTable {
|
|
|
89245
89245
|
type: 'setMetadata',
|
|
89246
89246
|
},
|
|
89247
89247
|
columns: [COLUMN_NAME_METADATA$1],
|
|
89248
|
-
values: keys$
|
|
89248
|
+
values: keys$6(entries).reduce((values, key) => {
|
|
89249
89249
|
const { metadata } = entries[key];
|
|
89250
89250
|
const row = [metadata ? stringify$5(metadata) : null];
|
|
89251
89251
|
values[key] = row;
|
|
@@ -89335,7 +89335,7 @@ class LdsInternalDataTable {
|
|
|
89335
89335
|
},
|
|
89336
89336
|
conflictColumns: this.conflictColumnNames,
|
|
89337
89337
|
columns: this.columnNames,
|
|
89338
|
-
rows: keys$
|
|
89338
|
+
rows: keys$6(entries).reduce((rows, key) => {
|
|
89339
89339
|
const entry = entries[key];
|
|
89340
89340
|
const { data, metadata } = entry;
|
|
89341
89341
|
const row = [key, stringify$5(data)];
|
|
@@ -89361,7 +89361,7 @@ class LdsInternalDataTable {
|
|
|
89361
89361
|
type: 'setMetadata',
|
|
89362
89362
|
},
|
|
89363
89363
|
columns: [COLUMN_NAME_METADATA],
|
|
89364
|
-
values: keys$
|
|
89364
|
+
values: keys$6(entries).reduce((values, key) => {
|
|
89365
89365
|
const { metadata } = entries[key];
|
|
89366
89366
|
const row = [metadata ? stringify$5(metadata) : null];
|
|
89367
89367
|
values[key] = row;
|
|
@@ -89370,7 +89370,7 @@ class LdsInternalDataTable {
|
|
|
89370
89370
|
};
|
|
89371
89371
|
}
|
|
89372
89372
|
metadataToUpdateSQLQueries(entries, segment) {
|
|
89373
|
-
return keys$
|
|
89373
|
+
return keys$6(entries).reduce((accu, key) => {
|
|
89374
89374
|
const { metadata } = entries[key];
|
|
89375
89375
|
if (metadata !== undefined) {
|
|
89376
89376
|
accu.push({
|
|
@@ -89444,7 +89444,7 @@ class NimbusSqliteStore {
|
|
|
89444
89444
|
.finally(() => tasker.done());
|
|
89445
89445
|
}
|
|
89446
89446
|
setEntries(entries, segment) {
|
|
89447
|
-
if (keys$
|
|
89447
|
+
if (keys$6(entries).length === 0) {
|
|
89448
89448
|
return Promise.resolve();
|
|
89449
89449
|
}
|
|
89450
89450
|
const table = this.getTable(segment);
|
|
@@ -89452,7 +89452,7 @@ class NimbusSqliteStore {
|
|
|
89452
89452
|
return this.batchOperationAsPromise([upsertOperation]);
|
|
89453
89453
|
}
|
|
89454
89454
|
setMetadata(entries, segment) {
|
|
89455
|
-
if (keys$
|
|
89455
|
+
if (keys$6(entries).length === 0) {
|
|
89456
89456
|
return Promise.resolve();
|
|
89457
89457
|
}
|
|
89458
89458
|
const table = this.getTable(segment);
|
|
@@ -89462,13 +89462,13 @@ class NimbusSqliteStore {
|
|
|
89462
89462
|
batchOperations(operations) {
|
|
89463
89463
|
const sqliteOperations = operations.reduce((acc, cur) => {
|
|
89464
89464
|
if (cur.type === 'setEntries') {
|
|
89465
|
-
if (keys$
|
|
89465
|
+
if (keys$6(cur.entries).length > 0) {
|
|
89466
89466
|
const table = this.getTable(cur.segment);
|
|
89467
89467
|
acc.push(table.entriesToUpsertOperations(cur.entries, cur.segment));
|
|
89468
89468
|
}
|
|
89469
89469
|
}
|
|
89470
89470
|
else if (cur.type === 'setMetadata') {
|
|
89471
|
-
if (keys$
|
|
89471
|
+
if (keys$6(cur.entries).length > 0) {
|
|
89472
89472
|
const table = this.getTable(cur.segment);
|
|
89473
89473
|
acc.push(table.metadataToUpdateOperations(cur.entries, cur.segment));
|
|
89474
89474
|
}
|
|
@@ -89591,7 +89591,7 @@ class AbstractKeyValueDataTable {
|
|
|
89591
89591
|
},
|
|
89592
89592
|
conflictColumns: this.conflictColumnNames,
|
|
89593
89593
|
columns: this.columnNames,
|
|
89594
|
-
rows: keys$
|
|
89594
|
+
rows: keys$6(entries).reduce((rows, key) => {
|
|
89595
89595
|
const entry = entries[key];
|
|
89596
89596
|
rows.push([key, stringify$5(entry.data)]);
|
|
89597
89597
|
return rows;
|
|
@@ -89759,7 +89759,7 @@ function makeEnvironmentGraphqlAware(environment) {
|
|
|
89759
89759
|
}
|
|
89760
89760
|
return environment.applyCachePolicy(luvio, adapterRequestContext, buildSnapshotContext, localBuildCachedSnapshot, buildNetworkSnapshot);
|
|
89761
89761
|
};
|
|
89762
|
-
return create$
|
|
89762
|
+
return create$2$1(environment, {
|
|
89763
89763
|
rebuildSnapshot: { value: rebuildSnapshot },
|
|
89764
89764
|
applyCachePolicy: { value: applyCachePolicy },
|
|
89765
89765
|
setDefaultCachePolicy: { value: environment.setDefaultCachePolicy.bind(environment) },
|
|
@@ -91180,7 +91180,7 @@ async function aggressiveTrim(data, deallocateFn, options = {}) {
|
|
|
91180
91180
|
const batchSize = options.batchSize !== undefined ? options.batchSize : DEFAULT_MAX_BATCH_SIZE;
|
|
91181
91181
|
let deallocatedCount = 0;
|
|
91182
91182
|
const { pendingTrimKeys, retainedIds, storeRecords } = data;
|
|
91183
|
-
const storeKeyLength = keys$
|
|
91183
|
+
const storeKeyLength = keys$2$1(storeRecords).length;
|
|
91184
91184
|
if (storeKeyLength <= maxStoreRecords) {
|
|
91185
91185
|
return { deallocatedCount, trimKeysSkipped: pendingTrimKeys };
|
|
91186
91186
|
}
|
|
@@ -91256,78 +91256,6 @@ function setupObserver() {
|
|
|
91256
91256
|
}
|
|
91257
91257
|
}
|
|
91258
91258
|
|
|
91259
|
-
/**
|
|
91260
|
-
* Copyright (c) 2022, Salesforce, Inc.,
|
|
91261
|
-
* All rights reserved.
|
|
91262
|
-
* For full license text, see the LICENSE.txt file
|
|
91263
|
-
*/
|
|
91264
|
-
|
|
91265
|
-
|
|
91266
|
-
const { keys: keys$7, values, create: create$6, assign: assign$6, freeze: freeze$3, entries } = Object;
|
|
91267
|
-
function isStoreKeyRecordId(key) {
|
|
91268
|
-
return key.indexOf(RECORD_ID_PREFIX$1) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1;
|
|
91269
|
-
}
|
|
91270
|
-
function isEntryDurableRecordRepresentation(entry, key) {
|
|
91271
|
-
// Either a DurableRecordRepresentation or StoreRecordError can live at a record key
|
|
91272
|
-
return ((isStoreKeyRecordId(key) || isStoreKeyRecordViewEntity$1(key)) &&
|
|
91273
|
-
entry.data.__type === undefined);
|
|
91274
|
-
}
|
|
91275
|
-
|
|
91276
|
-
// TODO [W-15983267]: this is here for backwards compatibility from <252 and can be removed in 256
|
|
91277
|
-
// This HOF ensures that missing links that are stored in the "links" property in the durable store get restored to the "fields" property.
|
|
91278
|
-
// this code is necessary for backwards compatibility with records that were stored in the durable store before the "links" property was removed.
|
|
91279
|
-
function makeDurableStoreBackwardsCompatible(durableStore) {
|
|
91280
|
-
const getEntries = function (entries, segment) {
|
|
91281
|
-
// this HOF only inspects records in the default segment
|
|
91282
|
-
if (segment !== DefaultDurableSegment) {
|
|
91283
|
-
return durableStore.getEntries(entries, segment);
|
|
91284
|
-
}
|
|
91285
|
-
const { length: entriesLength } = entries;
|
|
91286
|
-
if (entriesLength === 0) {
|
|
91287
|
-
return Promise.resolve({});
|
|
91288
|
-
}
|
|
91289
|
-
// call base getEntries
|
|
91290
|
-
return durableStore.getEntries(entries, segment).then((durableEntries) => {
|
|
91291
|
-
if (durableEntries === undefined) {
|
|
91292
|
-
return undefined;
|
|
91293
|
-
}
|
|
91294
|
-
const returnEntries = create$6(null);
|
|
91295
|
-
const keys$1 = keys$7(durableEntries);
|
|
91296
|
-
for (let i = 0, len = keys$1.length; i < len; i++) {
|
|
91297
|
-
const key = keys$1[i];
|
|
91298
|
-
const value = durableEntries[key];
|
|
91299
|
-
if (value === undefined) {
|
|
91300
|
-
continue;
|
|
91301
|
-
}
|
|
91302
|
-
if (isEntryDurableRecordRepresentation(value, key)) {
|
|
91303
|
-
const record = value.data;
|
|
91304
|
-
const { links } = record;
|
|
91305
|
-
if (links !== undefined) {
|
|
91306
|
-
const missingLinks = keys$7(links);
|
|
91307
|
-
for (let j = 0, len = missingLinks.length; j < len; j++) {
|
|
91308
|
-
const fieldName = missingLinks[j];
|
|
91309
|
-
const link = links[fieldName];
|
|
91310
|
-
if (link !== undefined && link.isMissing === true) {
|
|
91311
|
-
record.fields[fieldName] = {
|
|
91312
|
-
__state: { isMissing: true },
|
|
91313
|
-
value: undefined,
|
|
91314
|
-
displayValue: undefined,
|
|
91315
|
-
};
|
|
91316
|
-
}
|
|
91317
|
-
}
|
|
91318
|
-
delete record.links;
|
|
91319
|
-
}
|
|
91320
|
-
}
|
|
91321
|
-
returnEntries[key] = value;
|
|
91322
|
-
}
|
|
91323
|
-
return returnEntries;
|
|
91324
|
-
});
|
|
91325
|
-
};
|
|
91326
|
-
return create$6(durableStore, {
|
|
91327
|
-
getEntries: { value: getEntries, writable: true },
|
|
91328
|
-
});
|
|
91329
|
-
}
|
|
91330
|
-
|
|
91331
91259
|
function select$1$1(luvio, config) {
|
|
91332
91260
|
const { query, variables, operationName } = config;
|
|
91333
91261
|
return select$2$1(luvio, query, variables, operationName);
|
|
@@ -91895,7 +91823,7 @@ class SideEffectStore {
|
|
|
91895
91823
|
if (idsToFetch.size > 0) {
|
|
91896
91824
|
const effects = await durableStore.getEntries(Array.from(idsToFetch), SIDE_EFFECT_SEGMENT);
|
|
91897
91825
|
if (effects !== undefined) {
|
|
91898
|
-
keys$
|
|
91826
|
+
keys$2$1(effects).forEach((effectId) => {
|
|
91899
91827
|
const effect = effects[effectId].data;
|
|
91900
91828
|
const key = effect.uniqueId;
|
|
91901
91829
|
this.allEffects.set(key, effect);
|
|
@@ -91949,7 +91877,7 @@ class SideEffectStore {
|
|
|
91949
91877
|
if (effects === undefined) {
|
|
91950
91878
|
return;
|
|
91951
91879
|
}
|
|
91952
|
-
keys$
|
|
91880
|
+
keys$2$1(effects).forEach((effectId) => {
|
|
91953
91881
|
const effect = effects[effectId].data;
|
|
91954
91882
|
const key = effect.uniqueId;
|
|
91955
91883
|
this.allEffects.set(key, effect);
|
|
@@ -92020,7 +91948,7 @@ class SideEffectService {
|
|
|
92020
91948
|
const draftFields = await this.synthesizeFieldsFromParts(fields, apiName);
|
|
92021
91949
|
const timestampString = new Date(timestamp).toISOString();
|
|
92022
91950
|
const systemFields = this.generateSystemFields(timestampString, id);
|
|
92023
|
-
assign$
|
|
91951
|
+
assign$2(draftFields, systemFields);
|
|
92024
91952
|
const objectInfo = await this.ensureObjectInfo(apiName);
|
|
92025
91953
|
this.fillMissingFields(draftFields, objectInfo);
|
|
92026
91954
|
let recordTypeId = this.determineRecordTypeId(fields, objectInfo);
|
|
@@ -92082,7 +92010,7 @@ class SideEffectService {
|
|
|
92082
92010
|
async synthesizeFieldsFromParts(fields, apiName) {
|
|
92083
92011
|
const objectInfo = await this.ensureObjectInfo(apiName);
|
|
92084
92012
|
const recordFields = {};
|
|
92085
|
-
for (const fieldName of keys$
|
|
92013
|
+
for (const fieldName of keys$2$1(fields)) {
|
|
92086
92014
|
const draftField = fields[fieldName] ?? null;
|
|
92087
92015
|
recordFields[fieldName] = { value: draftField, displayValue: null };
|
|
92088
92016
|
const fieldInfo = objectInfo.fields[fieldName];
|
|
@@ -92105,7 +92033,7 @@ class SideEffectService {
|
|
|
92105
92033
|
let patchedFields = await this.synthesizeFieldsFromParts(fields, apiName);
|
|
92106
92034
|
if (existingRecord) {
|
|
92107
92035
|
const nameFields = this.getCompoundNameFields(existingRecord, patchedFields, objectInfo);
|
|
92108
|
-
assign$
|
|
92036
|
+
assign$2(patchedFields, nameFields);
|
|
92109
92037
|
this.patchIfExists(DEFAULT_FIELD_LAST_MODIFIED_BY_ID, { value: this.userId, displayValue: null }, existingRecord.fields, patchedFields);
|
|
92110
92038
|
this.patchIfExists(DEFAULT_FIELD_LAST_MODIFIED_BY, {
|
|
92111
92039
|
value: this.createLink(buildRecordRepKeyFromId$1(this.userId)),
|
|
@@ -92163,7 +92091,7 @@ class SideEffectService {
|
|
|
92163
92091
|
changedNameFields[fieldName] = fieldValue;
|
|
92164
92092
|
}
|
|
92165
92093
|
}
|
|
92166
|
-
if (keys$
|
|
92094
|
+
if (keys$2$1(changedNameFields).length > 0) {
|
|
92167
92095
|
const newNameValue = filteredNameFields
|
|
92168
92096
|
.map((key) => {
|
|
92169
92097
|
if (changedNameFields[key] !== undefined) {
|
|
@@ -92284,7 +92212,7 @@ class UpdateRecordEffectHandler {
|
|
|
92284
92212
|
}
|
|
92285
92213
|
const patchedFields = effect.recordPatch.fields;
|
|
92286
92214
|
if (patchedFields) {
|
|
92287
|
-
const fieldNames = keys$
|
|
92215
|
+
const fieldNames = keys$2$1(patchedFields);
|
|
92288
92216
|
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
92289
92217
|
const fieldName = fieldNames[i];
|
|
92290
92218
|
// don't apply server values to draft created records
|
|
@@ -92443,7 +92371,7 @@ function removeEffects(record) {
|
|
|
92443
92371
|
return undefined;
|
|
92444
92372
|
}
|
|
92445
92373
|
const updatedFields = {};
|
|
92446
|
-
const fieldNames = keys$
|
|
92374
|
+
const fieldNames = keys$2$1(fields);
|
|
92447
92375
|
for (let i = 0, len = fieldNames.length; i < len; i++) {
|
|
92448
92376
|
const fieldName = fieldNames[i];
|
|
92449
92377
|
const field = fields[fieldName];
|
|
@@ -92483,7 +92411,7 @@ function createLink$3(key) {
|
|
|
92483
92411
|
|
|
92484
92412
|
function enableSideEffectsOnEnvironment(env, sideEffectStore) {
|
|
92485
92413
|
const storePublish = function (key, data) {
|
|
92486
|
-
if (isStoreKeyRecordId
|
|
92414
|
+
if (isStoreKeyRecordId(key) === false || isStoreRecordError$1(data)) {
|
|
92487
92415
|
return env.storePublish(key, data);
|
|
92488
92416
|
}
|
|
92489
92417
|
const effects = sideEffectStore.getEffects(key);
|
|
@@ -92540,7 +92468,7 @@ class DurableRecordStore {
|
|
|
92540
92468
|
if (entries === undefined) {
|
|
92541
92469
|
return directory;
|
|
92542
92470
|
}
|
|
92543
|
-
keys$
|
|
92471
|
+
keys$2$1(entries).forEach((key) => {
|
|
92544
92472
|
const { data: record, metadata } = entries[key];
|
|
92545
92473
|
if (isStoreRecordError(record)) {
|
|
92546
92474
|
return;
|
|
@@ -92554,10 +92482,18 @@ function isStoreRecordError(storeRecord) {
|
|
|
92554
92482
|
return storeRecord.__type === 'error';
|
|
92555
92483
|
}
|
|
92556
92484
|
|
|
92557
|
-
|
|
92558
|
-
|
|
92559
|
-
|
|
92560
|
-
|
|
92485
|
+
function createSfsSideEffectHooks(durableRecordStore) {
|
|
92486
|
+
if (productConsumedSideEffectsKillSwitch.isOpen({ fallback: false })) {
|
|
92487
|
+
return [];
|
|
92488
|
+
}
|
|
92489
|
+
return [
|
|
92490
|
+
// SFS FSCore needs to implement code to bypass it's existing "side effect" code for Product Consumed.
|
|
92491
|
+
// W-17683696 is the work that will enable the code below after FSCore's W-17422735 is completed.
|
|
92492
|
+
// new ProductConsumedCreatedHook(),
|
|
92493
|
+
// new ProductConsumedUpdatedHook(durableRecordStore),
|
|
92494
|
+
// new ProductConsumedDeletedHook(durableRecordStore),
|
|
92495
|
+
];
|
|
92496
|
+
}
|
|
92561
92497
|
|
|
92562
92498
|
// so eslint doesn't complain about nimbus
|
|
92563
92499
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
@@ -92575,13 +92511,13 @@ let lazyGetRecords;
|
|
|
92575
92511
|
let lazySideEffectStore;
|
|
92576
92512
|
let lazySideEffectService;
|
|
92577
92513
|
const shouldFlush = (key, value) => {
|
|
92578
|
-
if (!isStoreKeyRecordId
|
|
92514
|
+
if (!isStoreKeyRecordId(key)) {
|
|
92579
92515
|
return { flushValue: true };
|
|
92580
92516
|
}
|
|
92581
92517
|
if (value && typeof value === 'object') {
|
|
92582
92518
|
const fields = value.fields;
|
|
92583
92519
|
if (fields && typeof fields === 'object') {
|
|
92584
|
-
const keys = keys$
|
|
92520
|
+
const keys = keys$2$1(fields);
|
|
92585
92521
|
for (const key of keys) {
|
|
92586
92522
|
const field = fields[key];
|
|
92587
92523
|
if (fields && field.__state && field.__state.pending === true) {
|
|
@@ -92617,7 +92553,7 @@ function getRuntime() {
|
|
|
92617
92553
|
lazyNetworkAdapter = platformNetworkAdapter(makeNetworkAdapterChunkRecordFields(NimbusNetworkAdapter, {
|
|
92618
92554
|
reportChunkCandidateUrlLength: reportChunkCandidateUrlLength,
|
|
92619
92555
|
}));
|
|
92620
|
-
lazyDurableStore =
|
|
92556
|
+
lazyDurableStore = getNimbusDurableStore();
|
|
92621
92557
|
lazyDurableRecordStore = new DurableRecordStore(lazyDurableStore, () => lazyLuvio);
|
|
92622
92558
|
// specific adapters
|
|
92623
92559
|
const internalAdapterStore = new InMemoryStore();
|
|
@@ -92639,8 +92575,8 @@ function getRuntime() {
|
|
|
92639
92575
|
lazySideEffectService = new SideEffectService(lazyDurableRecordStore, lazyObjectInfoService, userId, formatDisplayValue);
|
|
92640
92576
|
const draftService = new UiApiDraftRecordService(() => lazyLuvio, lazyDurableStore, lazyObjectInfoService, newRecordId, lazySideEffectStore, lazyDurableRecordStore);
|
|
92641
92577
|
const uiApiRecordHandler = new UiApiActionHandler(() => lazyLuvio, lazyNetworkAdapter, lazyDraftQueue, getRecord, lazyObjectInfoService, isGenerated, draftService, lazySideEffectService, lazyDurableRecordStore);
|
|
92642
|
-
uiApiRecordHandler.setSideEffectHooks(
|
|
92643
|
-
const quickActionHandler = new QuickActionExecutionRepresentationHandler(() => lazyLuvio, draftService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, lazySideEffectService);
|
|
92578
|
+
uiApiRecordHandler.setSideEffectHooks(createSfsSideEffectHooks());
|
|
92579
|
+
const quickActionHandler = new QuickActionExecutionRepresentationHandler(() => lazyLuvio, draftService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, lazySideEffectService, lazyObjectInfoService, getRecord);
|
|
92644
92580
|
const updateRecordQuickActionHandler = new UpdateRecordQuickActionExecutionRepresentationHandler(() => lazyLuvio, draftService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, lazySideEffectService);
|
|
92645
92581
|
const contentDocumentCompositeActionHandler = new ContentDocumentCompositeRepresentationActionHandler(() => lazyLuvio, userId, draftService, lazyObjectInfoService, lazyDraftQueue, lazyNetworkAdapter, isGenerated, NimbusBinaryStore, lazySideEffectService);
|
|
92646
92582
|
lazyDraftQueue.addHandler(uiApiRecordHandler);
|
|
@@ -92747,7 +92683,7 @@ register$1({
|
|
|
92747
92683
|
id: '@salesforce/lds-network-adapter',
|
|
92748
92684
|
instrument: instrument$2,
|
|
92749
92685
|
});
|
|
92750
|
-
// version: 1.
|
|
92686
|
+
// version: 1.343.0-f39f04aaf6
|
|
92751
92687
|
|
|
92752
92688
|
const { create: create$2, keys: keys$2 } = Object;
|
|
92753
92689
|
const { stringify, parse } = JSON;
|
|
@@ -115331,7 +115267,7 @@ register$1({
|
|
|
115331
115267
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
115332
115268
|
instrument: instrument$1,
|
|
115333
115269
|
});
|
|
115334
|
-
// version: 1.
|
|
115270
|
+
// version: 1.343.0-823df4356c
|
|
115335
115271
|
|
|
115336
115272
|
// On core the unstable adapters are re-exported with different names,
|
|
115337
115273
|
// we want to match them here.
|
|
@@ -115483,7 +115419,7 @@ withDefaultLuvio((luvio) => {
|
|
|
115483
115419
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
115484
115420
|
graphQLImperative = ldsAdapter;
|
|
115485
115421
|
});
|
|
115486
|
-
// version: 1.
|
|
115422
|
+
// version: 1.343.0-823df4356c
|
|
115487
115423
|
|
|
115488
115424
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
115489
115425
|
__proto__: null,
|
|
@@ -116275,7 +116211,7 @@ const callbacks$1 = [];
|
|
|
116275
116211
|
function register(r) {
|
|
116276
116212
|
callbacks$1.forEach((callback) => callback(r));
|
|
116277
116213
|
}
|
|
116278
|
-
// version: 1.
|
|
116214
|
+
// version: 1.343.0-f39f04aaf6
|
|
116279
116215
|
|
|
116280
116216
|
/**
|
|
116281
116217
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -117355,4 +117291,4 @@ const { luvio } = getRuntime();
|
|
|
117355
117291
|
setDefaultLuvio({ luvio });
|
|
117356
117292
|
|
|
117357
117293
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
117358
|
-
// version: 1.
|
|
117294
|
+
// version: 1.343.0-f39f04aaf6
|