@salesforce/lds-worker-api 1.266.0-dev5 → 1.266.0-dev6
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.266.0-
|
|
1037
|
+
// version: 1.266.0-dev6-db5291eb2
|
|
@@ -4012,7 +4012,7 @@ function createResourceParamsImpl(config, configMetadata) {
|
|
|
4012
4012
|
}
|
|
4013
4013
|
return resourceParams;
|
|
4014
4014
|
}
|
|
4015
|
-
// engine version: 0.154.
|
|
4015
|
+
// engine version: 0.154.7-dev3-3c8f645e
|
|
4016
4016
|
|
|
4017
4017
|
/**
|
|
4018
4018
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4140,7 +4140,7 @@ function withDefaultLuvio(callback) {
|
|
|
4140
4140
|
}
|
|
4141
4141
|
callbacks.push(callback);
|
|
4142
4142
|
}
|
|
4143
|
-
// version: 1.266.0-
|
|
4143
|
+
// version: 1.266.0-dev6-db5291eb2
|
|
4144
4144
|
|
|
4145
4145
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4146
4146
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15648,7 +15648,7 @@ function gql(literals, ...subs) {
|
|
|
15648
15648
|
}
|
|
15649
15649
|
return superResult;
|
|
15650
15650
|
}
|
|
15651
|
-
// version: 1.266.0-
|
|
15651
|
+
// version: 1.266.0-dev6-db5291eb2
|
|
15652
15652
|
|
|
15653
15653
|
function unwrap(data) {
|
|
15654
15654
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16573,7 +16573,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16573
16573
|
const { apiFamily, name } = metadata;
|
|
16574
16574
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16575
16575
|
}
|
|
16576
|
-
// version: 1.266.0-
|
|
16576
|
+
// version: 1.266.0-dev6-db5291eb2
|
|
16577
16577
|
|
|
16578
16578
|
/**
|
|
16579
16579
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16672,7 +16672,7 @@ var TypeCheckShapes;
|
|
|
16672
16672
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16673
16673
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16674
16674
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16675
|
-
// engine version: 0.154.
|
|
16675
|
+
// engine version: 0.154.7-dev3-3c8f645e
|
|
16676
16676
|
|
|
16677
16677
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16678
16678
|
|
|
@@ -21017,17 +21017,19 @@ function onResourceError(luvio, config, key, err) {
|
|
|
21017
21017
|
function buildNetworkSnapshot$13(luvio, config, serverRequestCount = 0, options) {
|
|
21018
21018
|
const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
|
|
21019
21019
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
21020
|
+
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
21021
|
+
// Komaci - a batch record request with a single record followed by a single
|
|
21022
|
+
// record request. The fulfill logic sends the same network response, so
|
|
21023
|
+
// there is some TypeScript massaging to extract the RecordRepresentation
|
|
21024
|
+
//
|
|
21025
|
+
// W-14381091 - Ensure hoisting the response body happens prior to
|
|
21026
|
+
// calling `luvio.handleSuccessResponse`, since both arguments capture
|
|
21027
|
+
// the response.
|
|
21028
|
+
if (isSingleBatchRecordResponse(response.body)) {
|
|
21029
|
+
response.body = response.body.results[0]
|
|
21030
|
+
.result;
|
|
21031
|
+
}
|
|
21020
21032
|
return luvio.handleSuccessResponse(() => {
|
|
21021
|
-
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
21022
|
-
// Komaci - a batch record request with a single record followed by a single
|
|
21023
|
-
// record request. The fulfill logic sends the same network response, so
|
|
21024
|
-
// there is some TypeScript massaging to extract the RecordRepresentation
|
|
21025
|
-
if (isSingleBatchRecordResponse(response.body)) {
|
|
21026
|
-
let recordResponse = response;
|
|
21027
|
-
recordResponse.body = response.body.results[0]
|
|
21028
|
-
.result;
|
|
21029
|
-
return onResourceSuccess(luvio, config, key, allTrackedFields, recordResponse, serverRequestCount + 1);
|
|
21030
|
-
}
|
|
21031
21033
|
return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
|
|
21032
21034
|
}, () => {
|
|
21033
21035
|
const cache = new StoreKeyMap();
|
|
@@ -43141,7 +43143,7 @@ withDefaultLuvio((luvio) => {
|
|
|
43141
43143
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
43142
43144
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
43143
43145
|
});
|
|
43144
|
-
// version: 1.266.0-
|
|
43146
|
+
// version: 1.266.0-dev6-769774ed6
|
|
43145
43147
|
|
|
43146
43148
|
var ldsIdempotencyWriteDisabled = {
|
|
43147
43149
|
isOpen: function (e) {
|
|
@@ -44650,6 +44652,10 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
44650
44652
|
}
|
|
44651
44653
|
return {};
|
|
44652
44654
|
};
|
|
44655
|
+
const getIngestStagingStore = function () {
|
|
44656
|
+
validateNotDisposed();
|
|
44657
|
+
return stagingStore === null || stagingStore === void 0 ? void 0 : stagingStore.fallbackStringKeyInMemoryStore;
|
|
44658
|
+
};
|
|
44653
44659
|
const handleSuccessResponse = async function (ingestAndBroadcastFunc, getResponseCacheKeysFunc) {
|
|
44654
44660
|
validateNotDisposed();
|
|
44655
44661
|
const cacheKeyMap = getResponseCacheKeysFunc();
|
|
@@ -44842,6 +44848,7 @@ function makeDurable(environment, { durableStore, instrumentation, useRevivingSt
|
|
|
44842
44848
|
applyCachePolicy: { value: applyCachePolicy },
|
|
44843
44849
|
getIngestStagingStoreRecords: { value: getIngestStagingStoreRecords },
|
|
44844
44850
|
getIngestStagingStoreMetadata: { value: getIngestStagingStoreMetadata },
|
|
44851
|
+
getIngestStagingStore: { value: getIngestStagingStore },
|
|
44845
44852
|
handleSuccessResponse: { value: handleSuccessResponse },
|
|
44846
44853
|
handleErrorResponse: { value: handleErrorResponse },
|
|
44847
44854
|
getNotifyChangeStoreEntries: { value: getNotifyChangeStoreEntries },
|
|
@@ -61019,7 +61026,7 @@ register$1({
|
|
|
61019
61026
|
id: '@salesforce/lds-network-adapter',
|
|
61020
61027
|
instrument: instrument$2,
|
|
61021
61028
|
});
|
|
61022
|
-
// version: 1.266.0-
|
|
61029
|
+
// version: 1.266.0-dev6-db5291eb2
|
|
61023
61030
|
|
|
61024
61031
|
const { create: create$3, keys: keys$3 } = Object;
|
|
61025
61032
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -79348,7 +79355,7 @@ register$1({
|
|
|
79348
79355
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
79349
79356
|
instrument: instrument$1,
|
|
79350
79357
|
});
|
|
79351
|
-
// version: 1.266.0-
|
|
79358
|
+
// version: 1.266.0-dev6-769774ed6
|
|
79352
79359
|
|
|
79353
79360
|
// On core the unstable adapters are re-exported with different names,
|
|
79354
79361
|
// we want to match them here.
|
|
@@ -81599,7 +81606,7 @@ withDefaultLuvio((luvio) => {
|
|
|
81599
81606
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
81600
81607
|
graphQLImperative = ldsAdapter;
|
|
81601
81608
|
});
|
|
81602
|
-
// version: 1.266.0-
|
|
81609
|
+
// version: 1.266.0-dev6-769774ed6
|
|
81603
81610
|
|
|
81604
81611
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
81605
81612
|
__proto__: null,
|
|
@@ -82297,7 +82304,7 @@ const callbacks$1 = [];
|
|
|
82297
82304
|
function register(r) {
|
|
82298
82305
|
callbacks$1.forEach((callback) => callback(r));
|
|
82299
82306
|
}
|
|
82300
|
-
// version: 1.266.0-
|
|
82307
|
+
// version: 1.266.0-dev6-db5291eb2
|
|
82301
82308
|
|
|
82302
82309
|
/**
|
|
82303
82310
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -87202,4 +87209,4 @@ const { luvio } = getRuntime();
|
|
|
87202
87209
|
setDefaultLuvio({ luvio });
|
|
87203
87210
|
|
|
87204
87211
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
87205
|
-
// version: 1.266.0-
|
|
87212
|
+
// version: 1.266.0-dev6-db5291eb2
|
|
@@ -4018,7 +4018,7 @@
|
|
|
4018
4018
|
}
|
|
4019
4019
|
return resourceParams;
|
|
4020
4020
|
}
|
|
4021
|
-
// engine version: 0.154.
|
|
4021
|
+
// engine version: 0.154.7-dev3-3c8f645e
|
|
4022
4022
|
|
|
4023
4023
|
/**
|
|
4024
4024
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -4146,7 +4146,7 @@
|
|
|
4146
4146
|
}
|
|
4147
4147
|
callbacks.push(callback);
|
|
4148
4148
|
}
|
|
4149
|
-
// version: 1.266.0-
|
|
4149
|
+
// version: 1.266.0-dev6-db5291eb2
|
|
4150
4150
|
|
|
4151
4151
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4152
4152
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15654,7 +15654,7 @@
|
|
|
15654
15654
|
}
|
|
15655
15655
|
return superResult;
|
|
15656
15656
|
}
|
|
15657
|
-
// version: 1.266.0-
|
|
15657
|
+
// version: 1.266.0-dev6-db5291eb2
|
|
15658
15658
|
|
|
15659
15659
|
function unwrap(data) {
|
|
15660
15660
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16579,7 +16579,7 @@
|
|
|
16579
16579
|
const { apiFamily, name } = metadata;
|
|
16580
16580
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16581
16581
|
}
|
|
16582
|
-
// version: 1.266.0-
|
|
16582
|
+
// version: 1.266.0-dev6-db5291eb2
|
|
16583
16583
|
|
|
16584
16584
|
/**
|
|
16585
16585
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -16678,7 +16678,7 @@
|
|
|
16678
16678
|
TypeCheckShapes[TypeCheckShapes["Integer"] = 3] = "Integer";
|
|
16679
16679
|
TypeCheckShapes[TypeCheckShapes["Unsupported"] = 4] = "Unsupported";
|
|
16680
16680
|
})(TypeCheckShapes || (TypeCheckShapes = {}));
|
|
16681
|
-
// engine version: 0.154.
|
|
16681
|
+
// engine version: 0.154.7-dev3-3c8f645e
|
|
16682
16682
|
|
|
16683
16683
|
const { keys: ObjectKeys$3, create: ObjectCreate$3 } = Object;
|
|
16684
16684
|
|
|
@@ -21023,17 +21023,19 @@
|
|
|
21023
21023
|
function buildNetworkSnapshot$13(luvio, config, serverRequestCount = 0, options) {
|
|
21024
21024
|
const { request, key, allTrackedFields, resourceParams } = prepareRequest$6(luvio, config);
|
|
21025
21025
|
return luvio.dispatchResourceRequest(request, options).then((response) => {
|
|
21026
|
+
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
21027
|
+
// Komaci - a batch record request with a single record followed by a single
|
|
21028
|
+
// record request. The fulfill logic sends the same network response, so
|
|
21029
|
+
// there is some TypeScript massaging to extract the RecordRepresentation
|
|
21030
|
+
//
|
|
21031
|
+
// W-14381091 - Ensure hoisting the response body happens prior to
|
|
21032
|
+
// calling `luvio.handleSuccessResponse`, since both arguments capture
|
|
21033
|
+
// the response.
|
|
21034
|
+
if (isSingleBatchRecordResponse(response.body)) {
|
|
21035
|
+
response.body = response.body.results[0]
|
|
21036
|
+
.result;
|
|
21037
|
+
}
|
|
21026
21038
|
return luvio.handleSuccessResponse(() => {
|
|
21027
|
-
// W-11964675 - Condition to dedupe a very specific set of requests for
|
|
21028
|
-
// Komaci - a batch record request with a single record followed by a single
|
|
21029
|
-
// record request. The fulfill logic sends the same network response, so
|
|
21030
|
-
// there is some TypeScript massaging to extract the RecordRepresentation
|
|
21031
|
-
if (isSingleBatchRecordResponse(response.body)) {
|
|
21032
|
-
let recordResponse = response;
|
|
21033
|
-
recordResponse.body = response.body.results[0]
|
|
21034
|
-
.result;
|
|
21035
|
-
return onResourceSuccess(luvio, config, key, allTrackedFields, recordResponse, serverRequestCount + 1);
|
|
21036
|
-
}
|
|
21037
21039
|
return onResourceSuccess(luvio, config, key, allTrackedFields, response, serverRequestCount + 1);
|
|
21038
21040
|
}, () => {
|
|
21039
21041
|
const cache = new StoreKeyMap();
|
|
@@ -43147,7 +43149,7 @@
|
|
|
43147
43149
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
|
|
43148
43150
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
|
|
43149
43151
|
});
|
|
43150
|
-
// version: 1.266.0-
|
|
43152
|
+
// version: 1.266.0-dev6-769774ed6
|
|
43151
43153
|
|
|
43152
43154
|
var ldsIdempotencyWriteDisabled = {
|
|
43153
43155
|
isOpen: function (e) {
|
|
@@ -44656,6 +44658,10 @@
|
|
|
44656
44658
|
}
|
|
44657
44659
|
return {};
|
|
44658
44660
|
};
|
|
44661
|
+
const getIngestStagingStore = function () {
|
|
44662
|
+
validateNotDisposed();
|
|
44663
|
+
return stagingStore === null || stagingStore === void 0 ? void 0 : stagingStore.fallbackStringKeyInMemoryStore;
|
|
44664
|
+
};
|
|
44659
44665
|
const handleSuccessResponse = async function (ingestAndBroadcastFunc, getResponseCacheKeysFunc) {
|
|
44660
44666
|
validateNotDisposed();
|
|
44661
44667
|
const cacheKeyMap = getResponseCacheKeysFunc();
|
|
@@ -44848,6 +44854,7 @@
|
|
|
44848
44854
|
applyCachePolicy: { value: applyCachePolicy },
|
|
44849
44855
|
getIngestStagingStoreRecords: { value: getIngestStagingStoreRecords },
|
|
44850
44856
|
getIngestStagingStoreMetadata: { value: getIngestStagingStoreMetadata },
|
|
44857
|
+
getIngestStagingStore: { value: getIngestStagingStore },
|
|
44851
44858
|
handleSuccessResponse: { value: handleSuccessResponse },
|
|
44852
44859
|
handleErrorResponse: { value: handleErrorResponse },
|
|
44853
44860
|
getNotifyChangeStoreEntries: { value: getNotifyChangeStoreEntries },
|
|
@@ -61025,7 +61032,7 @@
|
|
|
61025
61032
|
id: '@salesforce/lds-network-adapter',
|
|
61026
61033
|
instrument: instrument$2,
|
|
61027
61034
|
});
|
|
61028
|
-
// version: 1.266.0-
|
|
61035
|
+
// version: 1.266.0-dev6-db5291eb2
|
|
61029
61036
|
|
|
61030
61037
|
const { create: create$3, keys: keys$3 } = Object;
|
|
61031
61038
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -79354,7 +79361,7 @@
|
|
|
79354
79361
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
79355
79362
|
instrument: instrument$1,
|
|
79356
79363
|
});
|
|
79357
|
-
// version: 1.266.0-
|
|
79364
|
+
// version: 1.266.0-dev6-769774ed6
|
|
79358
79365
|
|
|
79359
79366
|
// On core the unstable adapters are re-exported with different names,
|
|
79360
79367
|
// we want to match them here.
|
|
@@ -81605,7 +81612,7 @@
|
|
|
81605
81612
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
81606
81613
|
graphQLImperative = ldsAdapter;
|
|
81607
81614
|
});
|
|
81608
|
-
// version: 1.266.0-
|
|
81615
|
+
// version: 1.266.0-dev6-769774ed6
|
|
81609
81616
|
|
|
81610
81617
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
81611
81618
|
__proto__: null,
|
|
@@ -82303,7 +82310,7 @@
|
|
|
82303
82310
|
function register(r) {
|
|
82304
82311
|
callbacks$1.forEach((callback) => callback(r));
|
|
82305
82312
|
}
|
|
82306
|
-
// version: 1.266.0-
|
|
82313
|
+
// version: 1.266.0-dev6-db5291eb2
|
|
82307
82314
|
|
|
82308
82315
|
/**
|
|
82309
82316
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -87226,4 +87233,4 @@
|
|
|
87226
87233
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
87227
87234
|
|
|
87228
87235
|
}));
|
|
87229
|
-
// version: 1.266.0-
|
|
87236
|
+
// version: 1.266.0-dev6-db5291eb2
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.266.0-
|
|
3
|
+
"version": "1.266.0-dev6",
|
|
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.266.0-
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.266.0-
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.266.0-
|
|
41
|
-
"@salesforce/lds-drafts": "^1.266.0-
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.266.0-
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.266.0-
|
|
44
|
-
"@salesforce/lds-priming": "^1.266.0-
|
|
45
|
-
"@salesforce/lds-runtime-mobile": "^1.266.0-
|
|
46
|
-
"@salesforce/nimbus-plugin-lds": "^1.266.0-
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.266.0-dev6",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.266.0-dev6",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.266.0-dev6",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.266.0-dev6",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.266.0-dev6",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.266.0-dev6",
|
|
44
|
+
"@salesforce/lds-priming": "^1.266.0-dev6",
|
|
45
|
+
"@salesforce/lds-runtime-mobile": "^1.266.0-dev6",
|
|
46
|
+
"@salesforce/nimbus-plugin-lds": "^1.266.0-dev6",
|
|
47
47
|
"ajv": "^8.11.0",
|
|
48
48
|
"glob": "^7.1.5",
|
|
49
49
|
"nimbus-types": "^2.0.0-alpha1",
|