@salesforce/lds-worker-api 1.274.0 → 1.275.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.
|
@@ -1034,4 +1034,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1034
1034
|
}
|
|
1035
1035
|
|
|
1036
1036
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1037
|
-
// version: 1.
|
|
1037
|
+
// version: 1.275.0-c8b3e2f72
|
|
@@ -879,6 +879,9 @@ class StringKeyInMemoryStore {
|
|
|
879
879
|
const canonicalKey = this.getCanonicalRecordId(key);
|
|
880
880
|
delete this.records[canonicalKey];
|
|
881
881
|
}
|
|
882
|
+
keyExistsInStore(key) {
|
|
883
|
+
return this.records[key] !== undefined;
|
|
884
|
+
}
|
|
882
885
|
publishMetadata(key, storeMetadata) {
|
|
883
886
|
this.putMetadata(key, storeMetadata, true);
|
|
884
887
|
const canonicalKey = this.getCanonicalRecordId(key);
|
|
@@ -984,7 +987,7 @@ class StringKeyInMemoryStore {
|
|
|
984
987
|
// is already in L1 prior to ingestion
|
|
985
988
|
stagingStore.readEntry = (key) => {
|
|
986
989
|
const entry = originalReadEntry(key);
|
|
987
|
-
if (
|
|
990
|
+
if (entry === undefined) {
|
|
988
991
|
return upstreamStore.readEntry(key);
|
|
989
992
|
}
|
|
990
993
|
return entry;
|
|
@@ -1589,6 +1592,12 @@ class InMemoryStore {
|
|
|
1589
1592
|
const canonicalKey = this.getCanonicalRecordId(key);
|
|
1590
1593
|
this.recordsMap.delete(canonicalKey);
|
|
1591
1594
|
}
|
|
1595
|
+
keyExistsInStore(key) {
|
|
1596
|
+
if (typeof key === 'string') {
|
|
1597
|
+
return this.fallbackStringKeyInMemoryStore.keyExistsInStore(key);
|
|
1598
|
+
}
|
|
1599
|
+
return this.recordsMap.get(key) !== undefined;
|
|
1600
|
+
}
|
|
1592
1601
|
publishMetadata(key, storeMetadata) {
|
|
1593
1602
|
if (typeof key === 'string') {
|
|
1594
1603
|
this.fallbackStringKeyInMemoryStore.publishMetadata(key, storeMetadata);
|
|
@@ -3374,6 +3383,9 @@ class Environment {
|
|
|
3374
3383
|
storeRetain(keys) {
|
|
3375
3384
|
return this.store.retain(keys);
|
|
3376
3385
|
}
|
|
3386
|
+
storeKeyExists(key) {
|
|
3387
|
+
return this.store.keyExistsInStore(key);
|
|
3388
|
+
}
|
|
3377
3389
|
snapshotAvailable(snapshot) {
|
|
3378
3390
|
return (isFulfilledSnapshot$2(snapshot) || isErrorSnapshot$3(snapshot) || isStaleSnapshot$2(snapshot));
|
|
3379
3391
|
}
|
|
@@ -4016,7 +4028,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
4016
4028
|
}
|
|
4017
4029
|
return resourceParams;
|
|
4018
4030
|
}
|
|
4019
|
-
// engine version: 0.154.
|
|
4031
|
+
// engine version: 0.154.11-e144742b
|
|
4020
4032
|
|
|
4021
4033
|
/**
|
|
4022
4034
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4144,7 +4156,7 @@ function withDefaultLuvio(callback) {
|
|
|
4144
4156
|
}
|
|
4145
4157
|
callbacks.push(callback);
|
|
4146
4158
|
}
|
|
4147
|
-
// version: 1.
|
|
4159
|
+
// version: 1.275.0-c8b3e2f72
|
|
4148
4160
|
|
|
4149
4161
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4150
4162
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15652,7 +15664,7 @@ function gql(literals, ...subs) {
|
|
|
15652
15664
|
}
|
|
15653
15665
|
return superResult;
|
|
15654
15666
|
}
|
|
15655
|
-
// version: 1.
|
|
15667
|
+
// version: 1.275.0-c8b3e2f72
|
|
15656
15668
|
|
|
15657
15669
|
function unwrap(data) {
|
|
15658
15670
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16577,7 +16589,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16577
16589
|
const { apiFamily, name } = metadata;
|
|
16578
16590
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16579
16591
|
}
|
|
16580
|
-
// version: 1.
|
|
16592
|
+
// version: 1.275.0-c8b3e2f72
|
|
16581
16593
|
|
|
16582
16594
|
/**
|
|
16583
16595
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16676,7 +16688,7 @@ var TypeCheckShapes;
|
|
|
16676
16688
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16677
16689
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16678
16690
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16679
|
-
// engine version: 0.154.
|
|
16691
|
+
// engine version: 0.154.11-e144742b
|
|
16680
16692
|
|
|
16681
16693
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16682
16694
|
|
|
@@ -43470,7 +43482,7 @@ function bindExportsTo$1(luvio) {
|
|
|
43470
43482
|
const getRelatedListActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListActions', getRelatedListActionsAdapterFactory), getRelatedListActionsMetadata);
|
|
43471
43483
|
const getRelatedListCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListCount', getRelatedListCountAdapterFactory), getRelatedListCountMetadata);
|
|
43472
43484
|
const getRelatedListInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListInfo', getRelatedListInfoAdapterFactory), getRelatedListInfoMetadata);
|
|
43473
|
-
const getRelatedListInfoBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListInfoBatch', getRelatedListInfoBatchAdapterFactory), getRelatedListInfoBatchMetadata);
|
|
43485
|
+
const getRelatedListInfoBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListInfoBatch', getRelatedListInfoBatchAdapterFactory), luvio, 'getRelatedListInfoBatch'), getRelatedListInfoBatchMetadata);
|
|
43474
43486
|
const getRelatedListPreferences_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferences', getRelatedListPreferencesAdapterFactory), getRelatedListPreferencesMetadata);
|
|
43475
43487
|
const getRelatedListPreferencesBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferencesBatch', getRelatedListPreferencesBatchAdapterFactory), getRelatedListPreferencesBatchMetadata);
|
|
43476
43488
|
const getRelatedListRecordActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListRecordActions', getRelatedListRecordActionsAdapterFactory), getRelatedListRecordActionsMetadata);
|
|
@@ -43769,7 +43781,7 @@ withDefaultLuvio((luvio) => {
|
|
|
43769
43781
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListRecordCollectionUpdateAvailable', notifyUpdateAvailableFactory$4));
|
|
43770
43782
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
43771
43783
|
});
|
|
43772
|
-
// version: 1.
|
|
43784
|
+
// version: 1.275.0-7ed4653a5
|
|
43773
43785
|
|
|
43774
43786
|
var ldsIdempotencyWriteDisabled = {
|
|
43775
43787
|
isOpen: function (e) {
|
|
@@ -44679,7 +44691,7 @@ class DurableTTLStore {
|
|
|
44679
44691
|
}
|
|
44680
44692
|
}
|
|
44681
44693
|
|
|
44682
|
-
function flushInMemoryStoreValuesToDurableStore(store, durableStore,
|
|
44694
|
+
function flushInMemoryStoreValuesToDurableStore(store, durableStore, durableStoreErrorHandler, redirects, additionalDurableStoreOperations = [], enableDurableMetadataRefresh = false) {
|
|
44683
44695
|
const durableRecords = create$6(null);
|
|
44684
44696
|
const refreshedDurableRecords = create$6(null);
|
|
44685
44697
|
const evictedRecords = create$6(null);
|
|
@@ -44707,7 +44719,10 @@ function flushInMemoryStoreValuesToDurableStore(store, durableStore, crossEnviro
|
|
|
44707
44719
|
const entries = wasVisited === true || enableDurableMetadataRefresh === false
|
|
44708
44720
|
? durableRecords
|
|
44709
44721
|
: refreshedDurableRecords;
|
|
44710
|
-
|
|
44722
|
+
const isMetadataRefresh = entries === refreshedDurableRecords;
|
|
44723
|
+
setRecordTo(entries, key,
|
|
44724
|
+
// dont send record data with metadata refresh
|
|
44725
|
+
isMetadataRefresh ? undefined : record, metadata);
|
|
44711
44726
|
}
|
|
44712
44727
|
const durableStoreOperations = additionalDurableStoreOperations;
|
|
44713
44728
|
const recordKeys = keys$7(durableRecords);
|
|
@@ -44719,21 +44734,14 @@ function flushInMemoryStoreValuesToDurableStore(store, durableStore, crossEnviro
|
|
|
44719
44734
|
segment: DefaultDurableSegment,
|
|
44720
44735
|
});
|
|
44721
44736
|
}
|
|
44722
|
-
|
|
44737
|
+
const refreshKeys = keys$7(refreshedDurableRecords);
|
|
44738
|
+
if (refreshKeys.length > 0) {
|
|
44723
44739
|
// publishes with only metadata updates
|
|
44724
44740
|
durableStoreOperations.push({
|
|
44725
44741
|
type: 'setMetadata',
|
|
44726
44742
|
entries: refreshedDurableRecords,
|
|
44727
44743
|
segment: DefaultDurableSegment,
|
|
44728
44744
|
});
|
|
44729
|
-
if (crossEnvironmentNotifier !== undefined) {
|
|
44730
|
-
crossEnvironmentNotifier.notifyCrossEnvironments({
|
|
44731
|
-
data: {
|
|
44732
|
-
refreshedDurableRecords,
|
|
44733
|
-
},
|
|
44734
|
-
type: 'Update',
|
|
44735
|
-
});
|
|
44736
|
-
}
|
|
44737
44745
|
}
|
|
44738
44746
|
// redirects
|
|
44739
44747
|
redirects.forEach((value, key) => {
|
|
@@ -45035,14 +45043,17 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
45035
45043
|
}
|
|
45036
45044
|
// process metadata only refreshes
|
|
45037
45045
|
if (metadataRefreshSegmentKeys.length > 0) {
|
|
45038
|
-
const
|
|
45039
|
-
if (
|
|
45040
|
-
const
|
|
45041
|
-
|
|
45042
|
-
const
|
|
45043
|
-
|
|
45044
|
-
|
|
45045
|
-
|
|
45046
|
+
const filteredKeys = metadataRefreshSegmentKeys.filter((s) => environment.storeKeyExists(s));
|
|
45047
|
+
if (filteredKeys.length > 0) {
|
|
45048
|
+
const entries = await durableStore.getMetadata(filteredKeys, DefaultDurableSegment);
|
|
45049
|
+
if (entries !== undefined) {
|
|
45050
|
+
const entryKeys = keys$7(entries);
|
|
45051
|
+
for (let i = 0, len = entryKeys.length; i < len; i++) {
|
|
45052
|
+
const entryKey = entryKeys[i];
|
|
45053
|
+
const { metadata } = entries[entryKey];
|
|
45054
|
+
if (metadata !== undefined) {
|
|
45055
|
+
environment.putStoreMetadata(entryKey, metadata, false);
|
|
45056
|
+
}
|
|
45046
45057
|
}
|
|
45047
45058
|
}
|
|
45048
45059
|
}
|
|
@@ -45065,15 +45076,6 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
45065
45076
|
}
|
|
45066
45077
|
}
|
|
45067
45078
|
});
|
|
45068
|
-
let notifier;
|
|
45069
|
-
const getCrossEnvironmentNotifier = function () {
|
|
45070
|
-
validateNotDisposed();
|
|
45071
|
-
return notifier;
|
|
45072
|
-
};
|
|
45073
|
-
const setCrossEnvironmentNotifier = function (crossEnvironmentNotifier) {
|
|
45074
|
-
validateNotDisposed();
|
|
45075
|
-
notifier = crossEnvironmentNotifier;
|
|
45076
|
-
};
|
|
45077
45079
|
const dispose = function () {
|
|
45078
45080
|
validateNotDisposed();
|
|
45079
45081
|
disposed = true;
|
|
@@ -45126,7 +45128,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
45126
45128
|
if (stagingStore === null) {
|
|
45127
45129
|
return Promise.resolve();
|
|
45128
45130
|
}
|
|
45129
|
-
const promise = flushInMemoryStoreValuesToDurableStore(stagingStore, durableStore,
|
|
45131
|
+
const promise = flushInMemoryStoreValuesToDurableStore(stagingStore, durableStore, durableStoreErrorHandler, new Map(pendingStoreRedirects), additionalDurableStoreOperations, enableDurableMetadataRefresh);
|
|
45130
45132
|
pendingStoreRedirects.clear();
|
|
45131
45133
|
stagingStore = null;
|
|
45132
45134
|
return promise;
|
|
@@ -45496,8 +45498,6 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
45496
45498
|
handleErrorResponse: { value: handleErrorResponse },
|
|
45497
45499
|
getNotifyChangeStoreEntries: { value: getNotifyChangeStoreEntries },
|
|
45498
45500
|
notifyStoreUpdateAvailable: { value: notifyStoreUpdateAvailable },
|
|
45499
|
-
getCrossEnvironmentNotifier: { value: getCrossEnvironmentNotifier },
|
|
45500
|
-
setCrossEnvironmentNotifier: { value: setCrossEnvironmentNotifier },
|
|
45501
45501
|
});
|
|
45502
45502
|
}
|
|
45503
45503
|
|
|
@@ -61691,7 +61691,7 @@ register$1({
|
|
|
61691
61691
|
id: '@salesforce/lds-network-adapter',
|
|
61692
61692
|
instrument: instrument$2,
|
|
61693
61693
|
});
|
|
61694
|
-
// version: 1.
|
|
61694
|
+
// version: 1.275.0-c8b3e2f72
|
|
61695
61695
|
|
|
61696
61696
|
const { create: create$3, keys: keys$3 } = Object;
|
|
61697
61697
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -79451,8 +79451,7 @@ function transformConfiguration(config) {
|
|
|
79451
79451
|
function typeCheckConfig(untrustedConfig) {
|
|
79452
79452
|
const config = {};
|
|
79453
79453
|
const untrustedConfig_batchQuery = untrustedConfig.batchQuery;
|
|
79454
|
-
if (untrustedConfig_batchQuery !== undefined &&
|
|
79455
|
-
ArrayIsArray(untrustedConfig_batchQuery)) {
|
|
79454
|
+
if (untrustedConfig_batchQuery !== undefined && ArrayIsArray(untrustedConfig_batchQuery)) {
|
|
79456
79455
|
const untrustedConfig_batchQuery_array = [];
|
|
79457
79456
|
for (let i = 0, arrayLength = untrustedConfig_batchQuery.length; i < arrayLength; i++) {
|
|
79458
79457
|
const untrustedConfig_batchQuery_item = untrustedConfig_batchQuery[i];
|
|
@@ -80086,7 +80085,7 @@ register$1({
|
|
|
80086
80085
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
80087
80086
|
instrument: instrument$1,
|
|
80088
80087
|
});
|
|
80089
|
-
// version: 1.
|
|
80088
|
+
// version: 1.275.0-7ed4653a5
|
|
80090
80089
|
|
|
80091
80090
|
// On core the unstable adapters are re-exported with different names,
|
|
80092
80091
|
// we want to match them here.
|
|
@@ -82340,7 +82339,7 @@ withDefaultLuvio((luvio) => {
|
|
|
82340
82339
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
82341
82340
|
graphQLImperative = ldsAdapter;
|
|
82342
82341
|
});
|
|
82343
|
-
// version: 1.
|
|
82342
|
+
// version: 1.275.0-7ed4653a5
|
|
82344
82343
|
|
|
82345
82344
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
82346
82345
|
__proto__: null,
|
|
@@ -83038,7 +83037,7 @@ const callbacks$1 = [];
|
|
|
83038
83037
|
function register(r) {
|
|
83039
83038
|
callbacks$1.forEach((callback) => callback(r));
|
|
83040
83039
|
}
|
|
83041
|
-
// version: 1.
|
|
83040
|
+
// version: 1.275.0-c8b3e2f72
|
|
83042
83041
|
|
|
83043
83042
|
/**
|
|
83044
83043
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -87943,4 +87942,4 @@ const { luvio } = getRuntime();
|
|
|
87943
87942
|
setDefaultLuvio({ luvio });
|
|
87944
87943
|
|
|
87945
87944
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
87946
|
-
// version: 1.
|
|
87945
|
+
// version: 1.275.0-c8b3e2f72
|
|
@@ -885,6 +885,9 @@
|
|
|
885
885
|
const canonicalKey = this.getCanonicalRecordId(key);
|
|
886
886
|
delete this.records[canonicalKey];
|
|
887
887
|
}
|
|
888
|
+
keyExistsInStore(key) {
|
|
889
|
+
return this.records[key] !== undefined;
|
|
890
|
+
}
|
|
888
891
|
publishMetadata(key, storeMetadata) {
|
|
889
892
|
this.putMetadata(key, storeMetadata, true);
|
|
890
893
|
const canonicalKey = this.getCanonicalRecordId(key);
|
|
@@ -990,7 +993,7 @@
|
|
|
990
993
|
// is already in L1 prior to ingestion
|
|
991
994
|
stagingStore.readEntry = (key) => {
|
|
992
995
|
const entry = originalReadEntry(key);
|
|
993
|
-
if (
|
|
996
|
+
if (entry === undefined) {
|
|
994
997
|
return upstreamStore.readEntry(key);
|
|
995
998
|
}
|
|
996
999
|
return entry;
|
|
@@ -1595,6 +1598,12 @@
|
|
|
1595
1598
|
const canonicalKey = this.getCanonicalRecordId(key);
|
|
1596
1599
|
this.recordsMap.delete(canonicalKey);
|
|
1597
1600
|
}
|
|
1601
|
+
keyExistsInStore(key) {
|
|
1602
|
+
if (typeof key === 'string') {
|
|
1603
|
+
return this.fallbackStringKeyInMemoryStore.keyExistsInStore(key);
|
|
1604
|
+
}
|
|
1605
|
+
return this.recordsMap.get(key) !== undefined;
|
|
1606
|
+
}
|
|
1598
1607
|
publishMetadata(key, storeMetadata) {
|
|
1599
1608
|
if (typeof key === 'string') {
|
|
1600
1609
|
this.fallbackStringKeyInMemoryStore.publishMetadata(key, storeMetadata);
|
|
@@ -3380,6 +3389,9 @@
|
|
|
3380
3389
|
storeRetain(keys) {
|
|
3381
3390
|
return this.store.retain(keys);
|
|
3382
3391
|
}
|
|
3392
|
+
storeKeyExists(key) {
|
|
3393
|
+
return this.store.keyExistsInStore(key);
|
|
3394
|
+
}
|
|
3383
3395
|
snapshotAvailable(snapshot) {
|
|
3384
3396
|
return (isFulfilledSnapshot$2(snapshot) || isErrorSnapshot$3(snapshot) || isStaleSnapshot$2(snapshot));
|
|
3385
3397
|
}
|
|
@@ -4022,7 +4034,7 @@
|
|
|
4022
4034
|
}
|
|
4023
4035
|
return resourceParams;
|
|
4024
4036
|
}
|
|
4025
|
-
// engine version: 0.154.
|
|
4037
|
+
// engine version: 0.154.11-e144742b
|
|
4026
4038
|
|
|
4027
4039
|
/**
|
|
4028
4040
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4150,7 +4162,7 @@
|
|
|
4150
4162
|
}
|
|
4151
4163
|
callbacks.push(callback);
|
|
4152
4164
|
}
|
|
4153
|
-
// version: 1.
|
|
4165
|
+
// version: 1.275.0-c8b3e2f72
|
|
4154
4166
|
|
|
4155
4167
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4156
4168
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15658,7 +15670,7 @@
|
|
|
15658
15670
|
}
|
|
15659
15671
|
return superResult;
|
|
15660
15672
|
}
|
|
15661
|
-
// version: 1.
|
|
15673
|
+
// version: 1.275.0-c8b3e2f72
|
|
15662
15674
|
|
|
15663
15675
|
function unwrap(data) {
|
|
15664
15676
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16583,7 +16595,7 @@
|
|
|
16583
16595
|
const { apiFamily, name } = metadata;
|
|
16584
16596
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16585
16597
|
}
|
|
16586
|
-
// version: 1.
|
|
16598
|
+
// version: 1.275.0-c8b3e2f72
|
|
16587
16599
|
|
|
16588
16600
|
/**
|
|
16589
16601
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16682,7 +16694,7 @@
|
|
|
16682
16694
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16683
16695
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16684
16696
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16685
|
-
// engine version: 0.154.
|
|
16697
|
+
// engine version: 0.154.11-e144742b
|
|
16686
16698
|
|
|
16687
16699
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16688
16700
|
|
|
@@ -43476,7 +43488,7 @@
|
|
|
43476
43488
|
const getRelatedListActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListActions', getRelatedListActionsAdapterFactory), getRelatedListActionsMetadata);
|
|
43477
43489
|
const getRelatedListCount_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListCount', getRelatedListCountAdapterFactory), getRelatedListCountMetadata);
|
|
43478
43490
|
const getRelatedListInfo_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListInfo', getRelatedListInfoAdapterFactory), getRelatedListInfoMetadata);
|
|
43479
|
-
const getRelatedListInfoBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListInfoBatch', getRelatedListInfoBatchAdapterFactory), getRelatedListInfoBatchMetadata);
|
|
43491
|
+
const getRelatedListInfoBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapterWithPrediction(createLDSAdapter(luvio, 'getRelatedListInfoBatch', getRelatedListInfoBatchAdapterFactory), luvio, 'getRelatedListInfoBatch'), getRelatedListInfoBatchMetadata);
|
|
43480
43492
|
const getRelatedListPreferences_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferences', getRelatedListPreferencesAdapterFactory), getRelatedListPreferencesMetadata);
|
|
43481
43493
|
const getRelatedListPreferencesBatch_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListPreferencesBatch', getRelatedListPreferencesBatchAdapterFactory), getRelatedListPreferencesBatchMetadata);
|
|
43482
43494
|
const getRelatedListRecordActions_ldsAdapter = createInstrumentedAdapter(createLDSAdapter(luvio, 'getRelatedListRecordActions', getRelatedListRecordActionsAdapterFactory), getRelatedListRecordActionsMetadata);
|
|
@@ -43775,7 +43787,7 @@
|
|
|
43775
43787
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListRecordCollectionUpdateAvailable', notifyUpdateAvailableFactory$4));
|
|
43776
43788
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
43777
43789
|
});
|
|
43778
|
-
// version: 1.
|
|
43790
|
+
// version: 1.275.0-7ed4653a5
|
|
43779
43791
|
|
|
43780
43792
|
var ldsIdempotencyWriteDisabled = {
|
|
43781
43793
|
isOpen: function (e) {
|
|
@@ -44685,7 +44697,7 @@
|
|
|
44685
44697
|
}
|
|
44686
44698
|
}
|
|
44687
44699
|
|
|
44688
|
-
function flushInMemoryStoreValuesToDurableStore(store, durableStore,
|
|
44700
|
+
function flushInMemoryStoreValuesToDurableStore(store, durableStore, durableStoreErrorHandler, redirects, additionalDurableStoreOperations = [], enableDurableMetadataRefresh = false) {
|
|
44689
44701
|
const durableRecords = create$6(null);
|
|
44690
44702
|
const refreshedDurableRecords = create$6(null);
|
|
44691
44703
|
const evictedRecords = create$6(null);
|
|
@@ -44713,7 +44725,10 @@
|
|
|
44713
44725
|
const entries = wasVisited === true || enableDurableMetadataRefresh === false
|
|
44714
44726
|
? durableRecords
|
|
44715
44727
|
: refreshedDurableRecords;
|
|
44716
|
-
|
|
44728
|
+
const isMetadataRefresh = entries === refreshedDurableRecords;
|
|
44729
|
+
setRecordTo(entries, key,
|
|
44730
|
+
// dont send record data with metadata refresh
|
|
44731
|
+
isMetadataRefresh ? undefined : record, metadata);
|
|
44717
44732
|
}
|
|
44718
44733
|
const durableStoreOperations = additionalDurableStoreOperations;
|
|
44719
44734
|
const recordKeys = keys$7(durableRecords);
|
|
@@ -44725,21 +44740,14 @@
|
|
|
44725
44740
|
segment: DefaultDurableSegment,
|
|
44726
44741
|
});
|
|
44727
44742
|
}
|
|
44728
|
-
|
|
44743
|
+
const refreshKeys = keys$7(refreshedDurableRecords);
|
|
44744
|
+
if (refreshKeys.length > 0) {
|
|
44729
44745
|
// publishes with only metadata updates
|
|
44730
44746
|
durableStoreOperations.push({
|
|
44731
44747
|
type: 'setMetadata',
|
|
44732
44748
|
entries: refreshedDurableRecords,
|
|
44733
44749
|
segment: DefaultDurableSegment,
|
|
44734
44750
|
});
|
|
44735
|
-
if (crossEnvironmentNotifier !== undefined) {
|
|
44736
|
-
crossEnvironmentNotifier.notifyCrossEnvironments({
|
|
44737
|
-
data: {
|
|
44738
|
-
refreshedDurableRecords,
|
|
44739
|
-
},
|
|
44740
|
-
type: 'Update',
|
|
44741
|
-
});
|
|
44742
|
-
}
|
|
44743
44751
|
}
|
|
44744
44752
|
// redirects
|
|
44745
44753
|
redirects.forEach((value, key) => {
|
|
@@ -45041,14 +45049,17 @@
|
|
|
45041
45049
|
}
|
|
45042
45050
|
// process metadata only refreshes
|
|
45043
45051
|
if (metadataRefreshSegmentKeys.length > 0) {
|
|
45044
|
-
const
|
|
45045
|
-
if (
|
|
45046
|
-
const
|
|
45047
|
-
|
|
45048
|
-
const
|
|
45049
|
-
|
|
45050
|
-
|
|
45051
|
-
|
|
45052
|
+
const filteredKeys = metadataRefreshSegmentKeys.filter((s) => environment.storeKeyExists(s));
|
|
45053
|
+
if (filteredKeys.length > 0) {
|
|
45054
|
+
const entries = await durableStore.getMetadata(filteredKeys, DefaultDurableSegment);
|
|
45055
|
+
if (entries !== undefined) {
|
|
45056
|
+
const entryKeys = keys$7(entries);
|
|
45057
|
+
for (let i = 0, len = entryKeys.length; i < len; i++) {
|
|
45058
|
+
const entryKey = entryKeys[i];
|
|
45059
|
+
const { metadata } = entries[entryKey];
|
|
45060
|
+
if (metadata !== undefined) {
|
|
45061
|
+
environment.putStoreMetadata(entryKey, metadata, false);
|
|
45062
|
+
}
|
|
45052
45063
|
}
|
|
45053
45064
|
}
|
|
45054
45065
|
}
|
|
@@ -45071,15 +45082,6 @@
|
|
|
45071
45082
|
}
|
|
45072
45083
|
}
|
|
45073
45084
|
});
|
|
45074
|
-
let notifier;
|
|
45075
|
-
const getCrossEnvironmentNotifier = function () {
|
|
45076
|
-
validateNotDisposed();
|
|
45077
|
-
return notifier;
|
|
45078
|
-
};
|
|
45079
|
-
const setCrossEnvironmentNotifier = function (crossEnvironmentNotifier) {
|
|
45080
|
-
validateNotDisposed();
|
|
45081
|
-
notifier = crossEnvironmentNotifier;
|
|
45082
|
-
};
|
|
45083
45085
|
const dispose = function () {
|
|
45084
45086
|
validateNotDisposed();
|
|
45085
45087
|
disposed = true;
|
|
@@ -45132,7 +45134,7 @@
|
|
|
45132
45134
|
if (stagingStore === null) {
|
|
45133
45135
|
return Promise.resolve();
|
|
45134
45136
|
}
|
|
45135
|
-
const promise = flushInMemoryStoreValuesToDurableStore(stagingStore, durableStore,
|
|
45137
|
+
const promise = flushInMemoryStoreValuesToDurableStore(stagingStore, durableStore, durableStoreErrorHandler, new Map(pendingStoreRedirects), additionalDurableStoreOperations, enableDurableMetadataRefresh);
|
|
45136
45138
|
pendingStoreRedirects.clear();
|
|
45137
45139
|
stagingStore = null;
|
|
45138
45140
|
return promise;
|
|
@@ -45502,8 +45504,6 @@
|
|
|
45502
45504
|
handleErrorResponse: { value: handleErrorResponse },
|
|
45503
45505
|
getNotifyChangeStoreEntries: { value: getNotifyChangeStoreEntries },
|
|
45504
45506
|
notifyStoreUpdateAvailable: { value: notifyStoreUpdateAvailable },
|
|
45505
|
-
getCrossEnvironmentNotifier: { value: getCrossEnvironmentNotifier },
|
|
45506
|
-
setCrossEnvironmentNotifier: { value: setCrossEnvironmentNotifier },
|
|
45507
45507
|
});
|
|
45508
45508
|
}
|
|
45509
45509
|
|
|
@@ -61697,7 +61697,7 @@
|
|
|
61697
61697
|
id: '@salesforce/lds-network-adapter',
|
|
61698
61698
|
instrument: instrument$2,
|
|
61699
61699
|
});
|
|
61700
|
-
// version: 1.
|
|
61700
|
+
// version: 1.275.0-c8b3e2f72
|
|
61701
61701
|
|
|
61702
61702
|
const { create: create$3, keys: keys$3 } = Object;
|
|
61703
61703
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -79457,8 +79457,7 @@
|
|
|
79457
79457
|
function typeCheckConfig(untrustedConfig) {
|
|
79458
79458
|
const config = {};
|
|
79459
79459
|
const untrustedConfig_batchQuery = untrustedConfig.batchQuery;
|
|
79460
|
-
if (untrustedConfig_batchQuery !== undefined &&
|
|
79461
|
-
ArrayIsArray(untrustedConfig_batchQuery)) {
|
|
79460
|
+
if (untrustedConfig_batchQuery !== undefined && ArrayIsArray(untrustedConfig_batchQuery)) {
|
|
79462
79461
|
const untrustedConfig_batchQuery_array = [];
|
|
79463
79462
|
for (let i = 0, arrayLength = untrustedConfig_batchQuery.length; i < arrayLength; i++) {
|
|
79464
79463
|
const untrustedConfig_batchQuery_item = untrustedConfig_batchQuery[i];
|
|
@@ -80092,7 +80091,7 @@
|
|
|
80092
80091
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
80093
80092
|
instrument: instrument$1,
|
|
80094
80093
|
});
|
|
80095
|
-
// version: 1.
|
|
80094
|
+
// version: 1.275.0-7ed4653a5
|
|
80096
80095
|
|
|
80097
80096
|
// On core the unstable adapters are re-exported with different names,
|
|
80098
80097
|
// we want to match them here.
|
|
@@ -82346,7 +82345,7 @@
|
|
|
82346
82345
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
82347
82346
|
graphQLImperative = ldsAdapter;
|
|
82348
82347
|
});
|
|
82349
|
-
// version: 1.
|
|
82348
|
+
// version: 1.275.0-7ed4653a5
|
|
82350
82349
|
|
|
82351
82350
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
82352
82351
|
__proto__: null,
|
|
@@ -83044,7 +83043,7 @@
|
|
|
83044
83043
|
function register(r) {
|
|
83045
83044
|
callbacks$1.forEach((callback) => callback(r));
|
|
83046
83045
|
}
|
|
83047
|
-
// version: 1.
|
|
83046
|
+
// version: 1.275.0-c8b3e2f72
|
|
83048
83047
|
|
|
83049
83048
|
/**
|
|
83050
83049
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -87967,4 +87966,4 @@
|
|
|
87967
87966
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
87968
87967
|
|
|
87969
87968
|
}));
|
|
87970
|
-
// version: 1.
|
|
87969
|
+
// version: 1.275.0-c8b3e2f72
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.275.0",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/standalone/es/lds-worker-api.js",
|
|
@@ -35,15 +35,15 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
|
|
38
|
-
"@salesforce/lds-adapters-graphql": "^1.
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.
|
|
41
|
-
"@salesforce/lds-drafts": "^1.
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.
|
|
44
|
-
"@salesforce/lds-priming": "^1.
|
|
45
|
-
"@salesforce/lds-runtime-mobile": "^1.
|
|
46
|
-
"@salesforce/nimbus-plugin-lds": "^1.
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.275.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.275.0",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.275.0",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.275.0",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.275.0",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.275.0",
|
|
44
|
+
"@salesforce/lds-priming": "^1.275.0",
|
|
45
|
+
"@salesforce/lds-runtime-mobile": "^1.275.0",
|
|
46
|
+
"@salesforce/nimbus-plugin-lds": "^1.275.0",
|
|
47
47
|
"ajv": "^8.11.0",
|
|
48
48
|
"glob": "^7.1.5",
|
|
49
49
|
"nimbus-types": "^2.0.0-alpha1",
|