@salesforce/lds-worker-api 1.257.0 → 1.259.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.259.0-921ca6033
|
|
@@ -20,7 +20,7 @@ var SnapshotState$3;
|
|
|
20
20
|
SnapshotState["Stale"] = "Stale";
|
|
21
21
|
})(SnapshotState$3 || (SnapshotState$3 = {}));
|
|
22
22
|
|
|
23
|
-
const { create: create$b, entries: entries$5, freeze: freeze$6, keys: keys$c, values: values$5 } = Object;
|
|
23
|
+
const { create: create$b, entries: entries$5, freeze: freeze$6, keys: keys$c, values: values$5, assign: assign$a } = Object;
|
|
24
24
|
const { hasOwnProperty: hasOwnProperty$3 } = Object.prototype;
|
|
25
25
|
const { isArray: isArray$9 } = Array;
|
|
26
26
|
const { push: push$5, indexOf, slice: slice$2 } = Array.prototype;
|
|
@@ -974,12 +974,37 @@ class StringKeyInMemoryStore {
|
|
|
974
974
|
}
|
|
975
975
|
}
|
|
976
976
|
buildIngestionStagingStore() {
|
|
977
|
-
const
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
977
|
+
const stagingStore = new StringKeyInMemoryStore();
|
|
978
|
+
const upstreamStore = this;
|
|
979
|
+
const originalReadEntry = stagingStore.readEntry.bind(stagingStore);
|
|
980
|
+
const originalReadMetadata = stagingStore.readMetadata.bind(stagingStore);
|
|
981
|
+
const originalEvict = stagingStore.evict.bind(stagingStore);
|
|
982
|
+
// the staging store will read from the upstream store if it doesn't have the data
|
|
983
|
+
// this is because some adapters will only do partial ingests if they determine data
|
|
984
|
+
// is already in L1 prior to ingestion
|
|
985
|
+
stagingStore.readEntry = (key) => {
|
|
986
|
+
const entry = originalReadEntry(key);
|
|
987
|
+
if (!entry) {
|
|
988
|
+
return upstreamStore.readEntry(key);
|
|
989
|
+
}
|
|
990
|
+
return entry;
|
|
991
|
+
};
|
|
992
|
+
stagingStore.readMetadata = (key) => {
|
|
993
|
+
const metadata = originalReadMetadata(key);
|
|
994
|
+
if (!metadata) {
|
|
995
|
+
return upstreamStore.readMetadata(key);
|
|
996
|
+
}
|
|
997
|
+
return metadata;
|
|
998
|
+
};
|
|
999
|
+
stagingStore.evict = (key) => {
|
|
1000
|
+
originalEvict(key);
|
|
1001
|
+
upstreamStore.evict(key);
|
|
1002
|
+
};
|
|
1003
|
+
stagingStore.ttlOverrides = upstreamStore.ttlOverrides;
|
|
1004
|
+
stagingStore.defaultTTLOverride = upstreamStore.defaultTTLOverride;
|
|
1005
|
+
stagingStore.redirectKeys = upstreamStore.redirectKeys;
|
|
1006
|
+
stagingStore.reverseRedirectKeys = upstreamStore.reverseRedirectKeys;
|
|
1007
|
+
return stagingStore;
|
|
983
1008
|
}
|
|
984
1009
|
// private/protected methodss
|
|
985
1010
|
/**
|
|
@@ -3976,7 +4001,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
3976
4001
|
}
|
|
3977
4002
|
return resourceParams;
|
|
3978
4003
|
}
|
|
3979
|
-
// engine version: 0.154.
|
|
4004
|
+
// engine version: 0.154.4-7ff4ac46
|
|
3980
4005
|
|
|
3981
4006
|
/**
|
|
3982
4007
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4104,7 +4129,7 @@ function withDefaultLuvio(callback) {
|
|
|
4104
4129
|
}
|
|
4105
4130
|
callbacks.push(callback);
|
|
4106
4131
|
}
|
|
4107
|
-
// version: 1.
|
|
4132
|
+
// version: 1.259.0-921ca6033
|
|
4108
4133
|
|
|
4109
4134
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4110
4135
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15612,7 +15637,7 @@ function gql(literals, ...subs) {
|
|
|
15612
15637
|
}
|
|
15613
15638
|
return superResult;
|
|
15614
15639
|
}
|
|
15615
|
-
// version: 1.
|
|
15640
|
+
// version: 1.259.0-921ca6033
|
|
15616
15641
|
|
|
15617
15642
|
function unwrap(data) {
|
|
15618
15643
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16537,7 +16562,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16537
16562
|
const { apiFamily, name } = metadata;
|
|
16538
16563
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16539
16564
|
}
|
|
16540
|
-
// version: 1.
|
|
16565
|
+
// version: 1.259.0-921ca6033
|
|
16541
16566
|
|
|
16542
16567
|
/**
|
|
16543
16568
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16636,7 +16661,7 @@ var TypeCheckShapes;
|
|
|
16636
16661
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16637
16662
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16638
16663
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16639
|
-
// engine version: 0.154.
|
|
16664
|
+
// engine version: 0.154.4-7ff4ac46
|
|
16640
16665
|
|
|
16641
16666
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16642
16667
|
|
|
@@ -42950,7 +42975,7 @@ withDefaultLuvio((luvio) => {
|
|
|
42950
42975
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
42951
42976
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
42952
42977
|
});
|
|
42953
|
-
// version: 1.
|
|
42978
|
+
// version: 1.259.0-54a7811b5
|
|
42954
42979
|
|
|
42955
42980
|
var ldsIdempotencyWriteDisabled = {
|
|
42956
42981
|
isOpen: function (e) {
|
|
@@ -43861,21 +43886,27 @@ function flushInMemoryStoreValuesToDurableStore(store, durableStore, durableStor
|
|
|
43861
43886
|
const durableRecords = create$6(null);
|
|
43862
43887
|
const refreshedDurableRecords = create$6(null);
|
|
43863
43888
|
const evictedRecords = create$6(null);
|
|
43864
|
-
const {
|
|
43889
|
+
const { visitedIds, refreshedIds } = store.fallbackStringKeyInMemoryStore;
|
|
43865
43890
|
// TODO: W-8909393 Once metadata is stored in its own segment we need to
|
|
43866
43891
|
// call setEntries for the visitedIds on default segment and call setEntries
|
|
43867
43892
|
// on the metadata segment for the refreshedIds
|
|
43868
43893
|
const keys$1 = keys$7({ ...visitedIds, ...refreshedIds });
|
|
43869
43894
|
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
43870
43895
|
const key = keys$1[i];
|
|
43871
|
-
const
|
|
43896
|
+
const canonicalKey = store.getCanonicalRecordId(key);
|
|
43897
|
+
// this record has been redirected, evict the original
|
|
43898
|
+
if (canonicalKey !== key) {
|
|
43899
|
+
evictedRecords[key] = true;
|
|
43900
|
+
continue;
|
|
43901
|
+
}
|
|
43902
|
+
const record = store.readEntry(key);
|
|
43872
43903
|
const wasVisited = visitedIds[key] !== undefined;
|
|
43873
43904
|
// this record has been evicted, evict from DS
|
|
43874
43905
|
if (wasVisited && record === undefined) {
|
|
43875
43906
|
evictedRecords[key] = true;
|
|
43876
43907
|
continue;
|
|
43877
43908
|
}
|
|
43878
|
-
const metadata =
|
|
43909
|
+
const metadata = store.readMetadata(key);
|
|
43879
43910
|
const entries = wasVisited === true || enableDurableMetadataRefresh === false
|
|
43880
43911
|
? durableRecords
|
|
43881
43912
|
: refreshedDurableRecords;
|
|
@@ -44306,17 +44337,17 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
44306
44337
|
};
|
|
44307
44338
|
const getNode = function (key) {
|
|
44308
44339
|
validateNotDisposed();
|
|
44309
|
-
if (stagingStore
|
|
44310
|
-
|
|
44340
|
+
if (stagingStore !== null) {
|
|
44341
|
+
return environment.getNode(key, stagingStore);
|
|
44311
44342
|
}
|
|
44312
|
-
return environment.getNode(key
|
|
44343
|
+
return environment.getNode(key);
|
|
44313
44344
|
};
|
|
44314
44345
|
const wrapNormalizedGraphNode = function (normalized, key) {
|
|
44315
44346
|
validateNotDisposed();
|
|
44316
|
-
if (stagingStore
|
|
44317
|
-
|
|
44347
|
+
if (stagingStore !== null) {
|
|
44348
|
+
return environment.wrapNormalizedGraphNode(normalized, key, stagingStore);
|
|
44318
44349
|
}
|
|
44319
|
-
return environment.wrapNormalizedGraphNode(normalized, key
|
|
44350
|
+
return environment.wrapNormalizedGraphNode(normalized, key);
|
|
44320
44351
|
};
|
|
44321
44352
|
const rebuildSnapshot = function (snapshot, onRebuild) {
|
|
44322
44353
|
validateNotDisposed();
|
|
@@ -45958,6 +45989,7 @@ function isScalarDataType(type) {
|
|
|
45958
45989
|
'Email',
|
|
45959
45990
|
'TextArea',
|
|
45960
45991
|
'Percent',
|
|
45992
|
+
'EncryptedString',
|
|
45961
45993
|
].includes(type);
|
|
45962
45994
|
}
|
|
45963
45995
|
|
|
@@ -49208,6 +49240,10 @@ class AbstractResourceRequestActionHandler {
|
|
|
49208
49240
|
...updatedAction.data.body.fields,
|
|
49209
49241
|
LastModifiedDate: new Date(updatedAction.timestamp).toISOString(),
|
|
49210
49242
|
};
|
|
49243
|
+
if (this.hasIdempotencySupport() &&
|
|
49244
|
+
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY]) {
|
|
49245
|
+
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
49246
|
+
}
|
|
49211
49247
|
shouldRetry = true;
|
|
49212
49248
|
actionDataChanged = true;
|
|
49213
49249
|
}
|
|
@@ -52819,6 +52855,8 @@ function dataTypeToType(objectInfoDataType, apiName) {
|
|
|
52819
52855
|
return 'PercentValue';
|
|
52820
52856
|
case 'Int':
|
|
52821
52857
|
return 'IntValue';
|
|
52858
|
+
case 'EncryptedString':
|
|
52859
|
+
return 'EncryptedStringValue';
|
|
52822
52860
|
// ! do the rest of the custom types
|
|
52823
52861
|
default:
|
|
52824
52862
|
return 'String';
|
|
@@ -57684,7 +57722,10 @@ function isErrorResponse(response) {
|
|
|
57684
57722
|
* @returns the merged record
|
|
57685
57723
|
*/
|
|
57686
57724
|
function mergeAggregateUiResponse(response, mergeFunc) {
|
|
57687
|
-
|
|
57725
|
+
if (response.ok === false) {
|
|
57726
|
+
return response;
|
|
57727
|
+
}
|
|
57728
|
+
const body = response.body;
|
|
57688
57729
|
try {
|
|
57689
57730
|
if (body === null ||
|
|
57690
57731
|
body === undefined ||
|
|
@@ -60586,7 +60627,7 @@ register$1({
|
|
|
60586
60627
|
id: '@salesforce/lds-network-adapter',
|
|
60587
60628
|
instrument: instrument$2,
|
|
60588
60629
|
});
|
|
60589
|
-
// version: 1.
|
|
60630
|
+
// version: 1.259.0-921ca6033
|
|
60590
60631
|
|
|
60591
60632
|
const { create: create$3, keys: keys$3 } = Object;
|
|
60592
60633
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -78915,7 +78956,7 @@ register$1({
|
|
|
78915
78956
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
78916
78957
|
instrument: instrument$1,
|
|
78917
78958
|
});
|
|
78918
|
-
// version: 1.
|
|
78959
|
+
// version: 1.259.0-54a7811b5
|
|
78919
78960
|
|
|
78920
78961
|
// On core the unstable adapters are re-exported with different names,
|
|
78921
78962
|
// we want to match them here.
|
|
@@ -81166,7 +81207,7 @@ withDefaultLuvio((luvio) => {
|
|
|
81166
81207
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
81167
81208
|
graphQLImperative = ldsAdapter;
|
|
81168
81209
|
});
|
|
81169
|
-
// version: 1.
|
|
81210
|
+
// version: 1.259.0-54a7811b5
|
|
81170
81211
|
|
|
81171
81212
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
81172
81213
|
__proto__: null,
|
|
@@ -81864,7 +81905,7 @@ const callbacks$1 = [];
|
|
|
81864
81905
|
function register(r) {
|
|
81865
81906
|
callbacks$1.forEach((callback) => callback(r));
|
|
81866
81907
|
}
|
|
81867
|
-
// version: 1.
|
|
81908
|
+
// version: 1.259.0-921ca6033
|
|
81868
81909
|
|
|
81869
81910
|
/**
|
|
81870
81911
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -86769,4 +86810,4 @@ const { luvio } = getRuntime();
|
|
|
86769
86810
|
setDefaultLuvio({ luvio });
|
|
86770
86811
|
|
|
86771
86812
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
86772
|
-
// version: 1.
|
|
86813
|
+
// version: 1.259.0-921ca6033
|
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
SnapshotState["Stale"] = "Stale";
|
|
27
27
|
})(SnapshotState$3 || (SnapshotState$3 = {}));
|
|
28
28
|
|
|
29
|
-
const { create: create$b, entries: entries$5, freeze: freeze$6, keys: keys$c, values: values$5 } = Object;
|
|
29
|
+
const { create: create$b, entries: entries$5, freeze: freeze$6, keys: keys$c, values: values$5, assign: assign$a } = Object;
|
|
30
30
|
const { hasOwnProperty: hasOwnProperty$3 } = Object.prototype;
|
|
31
31
|
const { isArray: isArray$9 } = Array;
|
|
32
32
|
const { push: push$5, indexOf, slice: slice$2 } = Array.prototype;
|
|
@@ -980,12 +980,37 @@
|
|
|
980
980
|
}
|
|
981
981
|
}
|
|
982
982
|
buildIngestionStagingStore() {
|
|
983
|
-
const
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
983
|
+
const stagingStore = new StringKeyInMemoryStore();
|
|
984
|
+
const upstreamStore = this;
|
|
985
|
+
const originalReadEntry = stagingStore.readEntry.bind(stagingStore);
|
|
986
|
+
const originalReadMetadata = stagingStore.readMetadata.bind(stagingStore);
|
|
987
|
+
const originalEvict = stagingStore.evict.bind(stagingStore);
|
|
988
|
+
// the staging store will read from the upstream store if it doesn't have the data
|
|
989
|
+
// this is because some adapters will only do partial ingests if they determine data
|
|
990
|
+
// is already in L1 prior to ingestion
|
|
991
|
+
stagingStore.readEntry = (key) => {
|
|
992
|
+
const entry = originalReadEntry(key);
|
|
993
|
+
if (!entry) {
|
|
994
|
+
return upstreamStore.readEntry(key);
|
|
995
|
+
}
|
|
996
|
+
return entry;
|
|
997
|
+
};
|
|
998
|
+
stagingStore.readMetadata = (key) => {
|
|
999
|
+
const metadata = originalReadMetadata(key);
|
|
1000
|
+
if (!metadata) {
|
|
1001
|
+
return upstreamStore.readMetadata(key);
|
|
1002
|
+
}
|
|
1003
|
+
return metadata;
|
|
1004
|
+
};
|
|
1005
|
+
stagingStore.evict = (key) => {
|
|
1006
|
+
originalEvict(key);
|
|
1007
|
+
upstreamStore.evict(key);
|
|
1008
|
+
};
|
|
1009
|
+
stagingStore.ttlOverrides = upstreamStore.ttlOverrides;
|
|
1010
|
+
stagingStore.defaultTTLOverride = upstreamStore.defaultTTLOverride;
|
|
1011
|
+
stagingStore.redirectKeys = upstreamStore.redirectKeys;
|
|
1012
|
+
stagingStore.reverseRedirectKeys = upstreamStore.reverseRedirectKeys;
|
|
1013
|
+
return stagingStore;
|
|
989
1014
|
}
|
|
990
1015
|
// private/protected methodss
|
|
991
1016
|
/**
|
|
@@ -3982,7 +4007,7 @@
|
|
|
3982
4007
|
}
|
|
3983
4008
|
return resourceParams;
|
|
3984
4009
|
}
|
|
3985
|
-
// engine version: 0.154.
|
|
4010
|
+
// engine version: 0.154.4-7ff4ac46
|
|
3986
4011
|
|
|
3987
4012
|
/**
|
|
3988
4013
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4110,7 +4135,7 @@
|
|
|
4110
4135
|
}
|
|
4111
4136
|
callbacks.push(callback);
|
|
4112
4137
|
}
|
|
4113
|
-
// version: 1.
|
|
4138
|
+
// version: 1.259.0-921ca6033
|
|
4114
4139
|
|
|
4115
4140
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4116
4141
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15618,7 +15643,7 @@
|
|
|
15618
15643
|
}
|
|
15619
15644
|
return superResult;
|
|
15620
15645
|
}
|
|
15621
|
-
// version: 1.
|
|
15646
|
+
// version: 1.259.0-921ca6033
|
|
15622
15647
|
|
|
15623
15648
|
function unwrap(data) {
|
|
15624
15649
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16543,7 +16568,7 @@
|
|
|
16543
16568
|
const { apiFamily, name } = metadata;
|
|
16544
16569
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16545
16570
|
}
|
|
16546
|
-
// version: 1.
|
|
16571
|
+
// version: 1.259.0-921ca6033
|
|
16547
16572
|
|
|
16548
16573
|
/**
|
|
16549
16574
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16642,7 +16667,7 @@
|
|
|
16642
16667
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16643
16668
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16644
16669
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16645
|
-
// engine version: 0.154.
|
|
16670
|
+
// engine version: 0.154.4-7ff4ac46
|
|
16646
16671
|
|
|
16647
16672
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16648
16673
|
|
|
@@ -42956,7 +42981,7 @@
|
|
|
42956
42981
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
42957
42982
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
42958
42983
|
});
|
|
42959
|
-
// version: 1.
|
|
42984
|
+
// version: 1.259.0-54a7811b5
|
|
42960
42985
|
|
|
42961
42986
|
var ldsIdempotencyWriteDisabled = {
|
|
42962
42987
|
isOpen: function (e) {
|
|
@@ -43867,21 +43892,27 @@
|
|
|
43867
43892
|
const durableRecords = create$6(null);
|
|
43868
43893
|
const refreshedDurableRecords = create$6(null);
|
|
43869
43894
|
const evictedRecords = create$6(null);
|
|
43870
|
-
const {
|
|
43895
|
+
const { visitedIds, refreshedIds } = store.fallbackStringKeyInMemoryStore;
|
|
43871
43896
|
// TODO: W-8909393 Once metadata is stored in its own segment we need to
|
|
43872
43897
|
// call setEntries for the visitedIds on default segment and call setEntries
|
|
43873
43898
|
// on the metadata segment for the refreshedIds
|
|
43874
43899
|
const keys$1 = keys$7({ ...visitedIds, ...refreshedIds });
|
|
43875
43900
|
for (let i = 0, len = keys$1.length; i < len; i += 1) {
|
|
43876
43901
|
const key = keys$1[i];
|
|
43877
|
-
const
|
|
43902
|
+
const canonicalKey = store.getCanonicalRecordId(key);
|
|
43903
|
+
// this record has been redirected, evict the original
|
|
43904
|
+
if (canonicalKey !== key) {
|
|
43905
|
+
evictedRecords[key] = true;
|
|
43906
|
+
continue;
|
|
43907
|
+
}
|
|
43908
|
+
const record = store.readEntry(key);
|
|
43878
43909
|
const wasVisited = visitedIds[key] !== undefined;
|
|
43879
43910
|
// this record has been evicted, evict from DS
|
|
43880
43911
|
if (wasVisited && record === undefined) {
|
|
43881
43912
|
evictedRecords[key] = true;
|
|
43882
43913
|
continue;
|
|
43883
43914
|
}
|
|
43884
|
-
const metadata =
|
|
43915
|
+
const metadata = store.readMetadata(key);
|
|
43885
43916
|
const entries = wasVisited === true || enableDurableMetadataRefresh === false
|
|
43886
43917
|
? durableRecords
|
|
43887
43918
|
: refreshedDurableRecords;
|
|
@@ -44312,17 +44343,17 @@
|
|
|
44312
44343
|
};
|
|
44313
44344
|
const getNode = function (key) {
|
|
44314
44345
|
validateNotDisposed();
|
|
44315
|
-
if (stagingStore
|
|
44316
|
-
|
|
44346
|
+
if (stagingStore !== null) {
|
|
44347
|
+
return environment.getNode(key, stagingStore);
|
|
44317
44348
|
}
|
|
44318
|
-
return environment.getNode(key
|
|
44349
|
+
return environment.getNode(key);
|
|
44319
44350
|
};
|
|
44320
44351
|
const wrapNormalizedGraphNode = function (normalized, key) {
|
|
44321
44352
|
validateNotDisposed();
|
|
44322
|
-
if (stagingStore
|
|
44323
|
-
|
|
44353
|
+
if (stagingStore !== null) {
|
|
44354
|
+
return environment.wrapNormalizedGraphNode(normalized, key, stagingStore);
|
|
44324
44355
|
}
|
|
44325
|
-
return environment.wrapNormalizedGraphNode(normalized, key
|
|
44356
|
+
return environment.wrapNormalizedGraphNode(normalized, key);
|
|
44326
44357
|
};
|
|
44327
44358
|
const rebuildSnapshot = function (snapshot, onRebuild) {
|
|
44328
44359
|
validateNotDisposed();
|
|
@@ -45964,6 +45995,7 @@
|
|
|
45964
45995
|
'Email',
|
|
45965
45996
|
'TextArea',
|
|
45966
45997
|
'Percent',
|
|
45998
|
+
'EncryptedString',
|
|
45967
45999
|
].includes(type);
|
|
45968
46000
|
}
|
|
45969
46001
|
|
|
@@ -49214,6 +49246,10 @@
|
|
|
49214
49246
|
...updatedAction.data.body.fields,
|
|
49215
49247
|
LastModifiedDate: new Date(updatedAction.timestamp).toISOString(),
|
|
49216
49248
|
};
|
|
49249
|
+
if (this.hasIdempotencySupport() &&
|
|
49250
|
+
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY]) {
|
|
49251
|
+
updatedAction.data.headers[HTTP_HEADER_IDEMPOTENCY_KEY] = uuidv4();
|
|
49252
|
+
}
|
|
49217
49253
|
shouldRetry = true;
|
|
49218
49254
|
actionDataChanged = true;
|
|
49219
49255
|
}
|
|
@@ -52825,6 +52861,8 @@
|
|
|
52825
52861
|
return 'PercentValue';
|
|
52826
52862
|
case 'Int':
|
|
52827
52863
|
return 'IntValue';
|
|
52864
|
+
case 'EncryptedString':
|
|
52865
|
+
return 'EncryptedStringValue';
|
|
52828
52866
|
// ! do the rest of the custom types
|
|
52829
52867
|
default:
|
|
52830
52868
|
return 'String';
|
|
@@ -57690,7 +57728,10 @@
|
|
|
57690
57728
|
* @returns the merged record
|
|
57691
57729
|
*/
|
|
57692
57730
|
function mergeAggregateUiResponse(response, mergeFunc) {
|
|
57693
|
-
|
|
57731
|
+
if (response.ok === false) {
|
|
57732
|
+
return response;
|
|
57733
|
+
}
|
|
57734
|
+
const body = response.body;
|
|
57694
57735
|
try {
|
|
57695
57736
|
if (body === null ||
|
|
57696
57737
|
body === undefined ||
|
|
@@ -60592,7 +60633,7 @@
|
|
|
60592
60633
|
id: '@salesforce/lds-network-adapter',
|
|
60593
60634
|
instrument: instrument$2,
|
|
60594
60635
|
});
|
|
60595
|
-
// version: 1.
|
|
60636
|
+
// version: 1.259.0-921ca6033
|
|
60596
60637
|
|
|
60597
60638
|
const { create: create$3, keys: keys$3 } = Object;
|
|
60598
60639
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -78921,7 +78962,7 @@
|
|
|
78921
78962
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
78922
78963
|
instrument: instrument$1,
|
|
78923
78964
|
});
|
|
78924
|
-
// version: 1.
|
|
78965
|
+
// version: 1.259.0-54a7811b5
|
|
78925
78966
|
|
|
78926
78967
|
// On core the unstable adapters are re-exported with different names,
|
|
78927
78968
|
// we want to match them here.
|
|
@@ -81172,7 +81213,7 @@
|
|
|
81172
81213
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
81173
81214
|
graphQLImperative = ldsAdapter;
|
|
81174
81215
|
});
|
|
81175
|
-
// version: 1.
|
|
81216
|
+
// version: 1.259.0-54a7811b5
|
|
81176
81217
|
|
|
81177
81218
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
81178
81219
|
__proto__: null,
|
|
@@ -81870,7 +81911,7 @@
|
|
|
81870
81911
|
function register(r) {
|
|
81871
81912
|
callbacks$1.forEach((callback) => callback(r));
|
|
81872
81913
|
}
|
|
81873
|
-
// version: 1.
|
|
81914
|
+
// version: 1.259.0-921ca6033
|
|
81874
81915
|
|
|
81875
81916
|
/**
|
|
81876
81917
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -86793,4 +86834,4 @@
|
|
|
86793
86834
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
86794
86835
|
|
|
86795
86836
|
}));
|
|
86796
|
-
// version: 1.
|
|
86837
|
+
// version: 1.259.0-921ca6033
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.259.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.259.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.259.0",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.259.0",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.259.0",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.259.0",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.259.0",
|
|
44
|
+
"@salesforce/lds-priming": "^1.259.0",
|
|
45
|
+
"@salesforce/lds-runtime-mobile": "^1.259.0",
|
|
46
|
+
"@salesforce/nimbus-plugin-lds": "^1.259.0",
|
|
47
47
|
"ajv": "^8.11.0",
|
|
48
48
|
"glob": "^7.1.5",
|
|
49
49
|
"nimbus-types": "^2.0.0-alpha1",
|