@salesforce/lds-worker-api 1.332.0-dev8 → 1.332.0-dev9
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.
|
@@ -449,7 +449,16 @@ function invokeAdapterWithMetadata(adapterId, config, metadata, onResponse, nati
|
|
|
449
449
|
return;
|
|
450
450
|
}
|
|
451
451
|
if (adapterId === 'deleteRecord') {
|
|
452
|
-
|
|
452
|
+
draftManager.stopQueueWhileRunning(() => {
|
|
453
|
+
return new Promise((resolve) => {
|
|
454
|
+
const onResponseWrapper = (response) => {
|
|
455
|
+
resolve(response);
|
|
456
|
+
};
|
|
457
|
+
invokeAdapterWithMetadataDeleteRecord(adapter, config, metadata, onResponseWrapper, nativeAdapterRequestContext);
|
|
458
|
+
}).then((callbackValue) => {
|
|
459
|
+
onResponse(callbackValue);
|
|
460
|
+
});
|
|
461
|
+
});
|
|
453
462
|
}
|
|
454
463
|
else {
|
|
455
464
|
draftManager.stopQueueWhileRunning(() => {
|
|
@@ -1119,4 +1128,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1119
1128
|
}
|
|
1120
1129
|
|
|
1121
1130
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1122
|
-
// version: 1.332.0-
|
|
1131
|
+
// version: 1.332.0-dev9-f73e4e5940
|
|
@@ -4265,7 +4265,7 @@ function withDefaultLuvio(callback) {
|
|
|
4265
4265
|
}
|
|
4266
4266
|
callbacks.push(callback);
|
|
4267
4267
|
}
|
|
4268
|
-
// version: 1.332.0-
|
|
4268
|
+
// version: 1.332.0-dev9-f73e4e5940
|
|
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) {
|
|
@@ -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.332.0-
|
|
5216
|
+
// version: 1.332.0-dev9-f73e4e5940
|
|
5217
5217
|
|
|
5218
5218
|
/**
|
|
5219
5219
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -33850,7 +33850,7 @@ withDefaultLuvio((luvio) => {
|
|
|
33850
33850
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
33851
33851
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
33852
33852
|
});
|
|
33853
|
-
// version: 1.332.0-
|
|
33853
|
+
// version: 1.332.0-dev9-1981b1cf7c
|
|
33854
33854
|
|
|
33855
33855
|
var graphqlRecordTypeIdFixGate = {
|
|
33856
33856
|
isOpen: function (e) {
|
|
@@ -92852,7 +92852,7 @@ register$1({
|
|
|
92852
92852
|
id: '@salesforce/lds-network-adapter',
|
|
92853
92853
|
instrument: instrument$2,
|
|
92854
92854
|
});
|
|
92855
|
-
// version: 1.332.0-
|
|
92855
|
+
// version: 1.332.0-dev9-f73e4e5940
|
|
92856
92856
|
|
|
92857
92857
|
const { create: create$2, keys: keys$2 } = Object;
|
|
92858
92858
|
const { stringify, parse } = JSON;
|
|
@@ -115419,7 +115419,7 @@ register$1({
|
|
|
115419
115419
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
115420
115420
|
instrument: instrument$1,
|
|
115421
115421
|
});
|
|
115422
|
-
// version: 1.332.0-
|
|
115422
|
+
// version: 1.332.0-dev9-1981b1cf7c
|
|
115423
115423
|
|
|
115424
115424
|
// On core the unstable adapters are re-exported with different names,
|
|
115425
115425
|
// we want to match them here.
|
|
@@ -115571,7 +115571,7 @@ withDefaultLuvio((luvio) => {
|
|
|
115571
115571
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
115572
115572
|
graphQLImperative = ldsAdapter;
|
|
115573
115573
|
});
|
|
115574
|
-
// version: 1.332.0-
|
|
115574
|
+
// version: 1.332.0-dev9-1981b1cf7c
|
|
115575
115575
|
|
|
115576
115576
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
115577
115577
|
__proto__: null,
|
|
@@ -115984,7 +115984,16 @@ function invokeAdapterWithMetadata(adapterId, config, metadata, onResponse, nati
|
|
|
115984
115984
|
return;
|
|
115985
115985
|
}
|
|
115986
115986
|
if (adapterId === 'deleteRecord') {
|
|
115987
|
-
|
|
115987
|
+
draftManager.stopQueueWhileRunning(() => {
|
|
115988
|
+
return new Promise((resolve) => {
|
|
115989
|
+
const onResponseWrapper = (response) => {
|
|
115990
|
+
resolve(response);
|
|
115991
|
+
};
|
|
115992
|
+
invokeAdapterWithMetadataDeleteRecord(adapter, config, metadata, onResponseWrapper, nativeAdapterRequestContext);
|
|
115993
|
+
}).then((callbackValue) => {
|
|
115994
|
+
onResponse(callbackValue);
|
|
115995
|
+
});
|
|
115996
|
+
});
|
|
115988
115997
|
}
|
|
115989
115998
|
else {
|
|
115990
115999
|
draftManager.stopQueueWhileRunning(() => {
|
|
@@ -116354,7 +116363,7 @@ const callbacks$1 = [];
|
|
|
116354
116363
|
function register(r) {
|
|
116355
116364
|
callbacks$1.forEach((callback) => callback(r));
|
|
116356
116365
|
}
|
|
116357
|
-
// version: 1.332.0-
|
|
116366
|
+
// version: 1.332.0-dev9-f73e4e5940
|
|
116358
116367
|
|
|
116359
116368
|
/**
|
|
116360
116369
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -117417,4 +117426,4 @@ const { luvio } = getRuntime();
|
|
|
117417
117426
|
setDefaultLuvio({ luvio });
|
|
117418
117427
|
|
|
117419
117428
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
117420
|
-
// version: 1.332.0-
|
|
117429
|
+
// version: 1.332.0-dev9-f73e4e5940
|
|
@@ -4271,7 +4271,7 @@
|
|
|
4271
4271
|
}
|
|
4272
4272
|
callbacks.push(callback);
|
|
4273
4273
|
}
|
|
4274
|
-
// version: 1.332.0-
|
|
4274
|
+
// version: 1.332.0-dev9-f73e4e5940
|
|
4275
4275
|
|
|
4276
4276
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
4277
4277
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -5219,7 +5219,7 @@
|
|
|
5219
5219
|
const { apiFamily, name } = metadata;
|
|
5220
5220
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
5221
5221
|
}
|
|
5222
|
-
// version: 1.332.0-
|
|
5222
|
+
// version: 1.332.0-dev9-f73e4e5940
|
|
5223
5223
|
|
|
5224
5224
|
/**
|
|
5225
5225
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -33856,7 +33856,7 @@
|
|
|
33856
33856
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
33857
33857
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
33858
33858
|
});
|
|
33859
|
-
// version: 1.332.0-
|
|
33859
|
+
// version: 1.332.0-dev9-1981b1cf7c
|
|
33860
33860
|
|
|
33861
33861
|
var graphqlRecordTypeIdFixGate = {
|
|
33862
33862
|
isOpen: function (e) {
|
|
@@ -92858,7 +92858,7 @@
|
|
|
92858
92858
|
id: '@salesforce/lds-network-adapter',
|
|
92859
92859
|
instrument: instrument$2,
|
|
92860
92860
|
});
|
|
92861
|
-
// version: 1.332.0-
|
|
92861
|
+
// version: 1.332.0-dev9-f73e4e5940
|
|
92862
92862
|
|
|
92863
92863
|
const { create: create$2, keys: keys$2 } = Object;
|
|
92864
92864
|
const { stringify, parse } = JSON;
|
|
@@ -115425,7 +115425,7 @@
|
|
|
115425
115425
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
115426
115426
|
instrument: instrument$1,
|
|
115427
115427
|
});
|
|
115428
|
-
// version: 1.332.0-
|
|
115428
|
+
// version: 1.332.0-dev9-1981b1cf7c
|
|
115429
115429
|
|
|
115430
115430
|
// On core the unstable adapters are re-exported with different names,
|
|
115431
115431
|
// we want to match them here.
|
|
@@ -115577,7 +115577,7 @@
|
|
|
115577
115577
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
115578
115578
|
graphQLImperative = ldsAdapter;
|
|
115579
115579
|
});
|
|
115580
|
-
// version: 1.332.0-
|
|
115580
|
+
// version: 1.332.0-dev9-1981b1cf7c
|
|
115581
115581
|
|
|
115582
115582
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
115583
115583
|
__proto__: null,
|
|
@@ -115990,7 +115990,16 @@
|
|
|
115990
115990
|
return;
|
|
115991
115991
|
}
|
|
115992
115992
|
if (adapterId === 'deleteRecord') {
|
|
115993
|
-
|
|
115993
|
+
draftManager.stopQueueWhileRunning(() => {
|
|
115994
|
+
return new Promise((resolve) => {
|
|
115995
|
+
const onResponseWrapper = (response) => {
|
|
115996
|
+
resolve(response);
|
|
115997
|
+
};
|
|
115998
|
+
invokeAdapterWithMetadataDeleteRecord(adapter, config, metadata, onResponseWrapper, nativeAdapterRequestContext);
|
|
115999
|
+
}).then((callbackValue) => {
|
|
116000
|
+
onResponse(callbackValue);
|
|
116001
|
+
});
|
|
116002
|
+
});
|
|
115994
116003
|
}
|
|
115995
116004
|
else {
|
|
115996
116005
|
draftManager.stopQueueWhileRunning(() => {
|
|
@@ -116360,7 +116369,7 @@
|
|
|
116360
116369
|
function register(r) {
|
|
116361
116370
|
callbacks$1.forEach((callback) => callback(r));
|
|
116362
116371
|
}
|
|
116363
|
-
// version: 1.332.0-
|
|
116372
|
+
// version: 1.332.0-dev9-f73e4e5940
|
|
116364
116373
|
|
|
116365
116374
|
/**
|
|
116366
116375
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -117442,4 +117451,4 @@
|
|
|
117442
117451
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
117443
117452
|
|
|
117444
117453
|
}));
|
|
117445
|
-
// version: 1.332.0-
|
|
117454
|
+
// version: 1.332.0-dev9-f73e4e5940
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.332.0-
|
|
3
|
+
"version": "1.332.0-dev9",
|
|
4
4
|
"license": "SEE LICENSE IN LICENSE.txt",
|
|
5
5
|
"description": "",
|
|
6
6
|
"main": "dist/standalone/es/lds-worker-api.js",
|
|
@@ -35,14 +35,14 @@
|
|
|
35
35
|
},
|
|
36
36
|
"devDependencies": {
|
|
37
37
|
"@oat-sa/rollup-plugin-wildcard-external": "^1.0.0",
|
|
38
|
-
"@salesforce/lds-adapters-graphql": "^1.332.0-
|
|
39
|
-
"@salesforce/lds-adapters-uiapi": "^1.332.0-
|
|
40
|
-
"@salesforce/lds-default-luvio": "^1.332.0-
|
|
41
|
-
"@salesforce/lds-drafts": "^1.332.0-
|
|
42
|
-
"@salesforce/lds-graphql-parser": "^1.332.0-
|
|
43
|
-
"@salesforce/lds-luvio-engine": "^1.332.0-
|
|
44
|
-
"@salesforce/lds-runtime-mobile": "^1.332.0-
|
|
45
|
-
"@salesforce/nimbus-plugin-lds": "^1.332.0-
|
|
38
|
+
"@salesforce/lds-adapters-graphql": "^1.332.0-dev9",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.332.0-dev9",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.332.0-dev9",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.332.0-dev9",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.332.0-dev9",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.332.0-dev9",
|
|
44
|
+
"@salesforce/lds-runtime-mobile": "^1.332.0-dev9",
|
|
45
|
+
"@salesforce/nimbus-plugin-lds": "^1.332.0-dev9",
|
|
46
46
|
"ajv": "^8.11.0",
|
|
47
47
|
"glob": "^7.1.5",
|
|
48
48
|
"nimbus-types": "^2.0.0-alpha1",
|