@salesforce/lds-worker-api 1.214.0 → 1.214.2
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.
|
@@ -795,4 +795,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
795
795
|
}
|
|
796
796
|
|
|
797
797
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
798
|
-
// version: 1.214.
|
|
798
|
+
// version: 1.214.2-a5e1ff9a2
|
|
@@ -3898,7 +3898,7 @@ function withDefaultLuvio(callback) {
|
|
|
3898
3898
|
}
|
|
3899
3899
|
callbacks.push(callback);
|
|
3900
3900
|
}
|
|
3901
|
-
// version: 1.214.
|
|
3901
|
+
// version: 1.214.2-a5e1ff9a2
|
|
3902
3902
|
|
|
3903
3903
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3904
3904
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15331,7 +15331,7 @@ function parseAndVisit(source) {
|
|
|
15331
15331
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15332
15332
|
return luvioDocumentNode;
|
|
15333
15333
|
}
|
|
15334
|
-
// version: 1.214.
|
|
15334
|
+
// version: 1.214.2-a5e1ff9a2
|
|
15335
15335
|
|
|
15336
15336
|
function unwrap(data) {
|
|
15337
15337
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16254,7 +16254,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16254
16254
|
const { apiFamily, name } = metadata;
|
|
16255
16255
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16256
16256
|
}
|
|
16257
|
-
// version: 1.214.
|
|
16257
|
+
// version: 1.214.2-a5e1ff9a2
|
|
16258
16258
|
|
|
16259
16259
|
/**
|
|
16260
16260
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -17441,26 +17441,29 @@ const RECORD_ID_DECODER = 'ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456';
|
|
|
17441
17441
|
* @returns An 18-char record id, and throws error if an invalid record id was provided.
|
|
17442
17442
|
*/
|
|
17443
17443
|
function getRecordId18(value) {
|
|
17444
|
-
if (
|
|
17445
|
-
|
|
17446
|
-
|
|
17447
|
-
|
|
17448
|
-
|
|
17449
|
-
|
|
17450
|
-
|
|
17451
|
-
|
|
17452
|
-
|
|
17453
|
-
|
|
17454
|
-
|
|
17455
|
-
|
|
17456
|
-
|
|
17457
|
-
|
|
17458
|
-
decodeValue += 1 << bit;
|
|
17444
|
+
if (isString$1(value)) {
|
|
17445
|
+
if (value.length === 18) {
|
|
17446
|
+
return value;
|
|
17447
|
+
}
|
|
17448
|
+
else if (value.length === 15) {
|
|
17449
|
+
// Add the 3 character suffix
|
|
17450
|
+
let recordId = value;
|
|
17451
|
+
for (let offset = 0; offset < 15; offset += 5) {
|
|
17452
|
+
let decodeValue = 0;
|
|
17453
|
+
for (let bit = 0; bit < 5; bit++) {
|
|
17454
|
+
const c = value[offset + bit];
|
|
17455
|
+
if (c >= 'A' && c <= 'Z') {
|
|
17456
|
+
decodeValue += 1 << bit;
|
|
17457
|
+
}
|
|
17459
17458
|
}
|
|
17459
|
+
recordId += RECORD_ID_DECODER[decodeValue];
|
|
17460
17460
|
}
|
|
17461
|
-
recordId
|
|
17461
|
+
return recordId;
|
|
17462
17462
|
}
|
|
17463
|
-
|
|
17463
|
+
}
|
|
17464
|
+
else if (value === undefined || value === null) {
|
|
17465
|
+
// Not throwing here - input params might not have settled
|
|
17466
|
+
return undefined;
|
|
17464
17467
|
}
|
|
17465
17468
|
return undefined;
|
|
17466
17469
|
}
|
|
@@ -41931,7 +41934,7 @@ withDefaultLuvio((luvio) => {
|
|
|
41931
41934
|
});
|
|
41932
41935
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41933
41936
|
});
|
|
41934
|
-
// version: 1.214.
|
|
41937
|
+
// version: 1.214.2-2e2871620
|
|
41935
41938
|
|
|
41936
41939
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
41937
41940
|
|
|
@@ -58529,7 +58532,7 @@ register({
|
|
|
58529
58532
|
id: '@salesforce/lds-network-adapter',
|
|
58530
58533
|
instrument: instrument$1,
|
|
58531
58534
|
});
|
|
58532
|
-
// version: 1.214.
|
|
58535
|
+
// version: 1.214.2-a5e1ff9a2
|
|
58533
58536
|
|
|
58534
58537
|
const { create: create$2, keys: keys$2 } = Object;
|
|
58535
58538
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -76804,7 +76807,7 @@ register({
|
|
|
76804
76807
|
configuration: { ...configurationForGraphQLAdapters },
|
|
76805
76808
|
instrument,
|
|
76806
76809
|
});
|
|
76807
|
-
// version: 1.214.
|
|
76810
|
+
// version: 1.214.2-2e2871620
|
|
76808
76811
|
|
|
76809
76812
|
// On core the unstable adapters are re-exported with different names,
|
|
76810
76813
|
|
|
@@ -79051,7 +79054,7 @@ withDefaultLuvio((luvio) => {
|
|
|
79051
79054
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
79052
79055
|
graphQLImperative = ldsAdapter;
|
|
79053
79056
|
});
|
|
79054
|
-
// version: 1.214.
|
|
79057
|
+
// version: 1.214.2-2e2871620
|
|
79055
79058
|
|
|
79056
79059
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
79057
79060
|
__proto__: null,
|
|
@@ -79765,4 +79768,4 @@ const { luvio } = getRuntime();
|
|
|
79765
79768
|
setDefaultLuvio({ luvio });
|
|
79766
79769
|
|
|
79767
79770
|
export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
|
|
79768
|
-
// version: 1.214.
|
|
79771
|
+
// version: 1.214.2-a5e1ff9a2
|
|
@@ -3904,7 +3904,7 @@
|
|
|
3904
3904
|
}
|
|
3905
3905
|
callbacks.push(callback);
|
|
3906
3906
|
}
|
|
3907
|
-
// version: 1.214.
|
|
3907
|
+
// version: 1.214.2-a5e1ff9a2
|
|
3908
3908
|
|
|
3909
3909
|
// TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
|
|
3910
3910
|
function instrumentAdapter$1(createFunction, _metadata) {
|
|
@@ -15337,7 +15337,7 @@
|
|
|
15337
15337
|
updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
|
|
15338
15338
|
return luvioDocumentNode;
|
|
15339
15339
|
}
|
|
15340
|
-
// version: 1.214.
|
|
15340
|
+
// version: 1.214.2-a5e1ff9a2
|
|
15341
15341
|
|
|
15342
15342
|
function unwrap(data) {
|
|
15343
15343
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16260,7 +16260,7 @@
|
|
|
16260
16260
|
const { apiFamily, name } = metadata;
|
|
16261
16261
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16262
16262
|
}
|
|
16263
|
-
// version: 1.214.
|
|
16263
|
+
// version: 1.214.2-a5e1ff9a2
|
|
16264
16264
|
|
|
16265
16265
|
/**
|
|
16266
16266
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -17447,26 +17447,29 @@
|
|
|
17447
17447
|
* @returns An 18-char record id, and throws error if an invalid record id was provided.
|
|
17448
17448
|
*/
|
|
17449
17449
|
function getRecordId18(value) {
|
|
17450
|
-
if (
|
|
17451
|
-
|
|
17452
|
-
|
|
17453
|
-
|
|
17454
|
-
|
|
17455
|
-
|
|
17456
|
-
|
|
17457
|
-
|
|
17458
|
-
|
|
17459
|
-
|
|
17460
|
-
|
|
17461
|
-
|
|
17462
|
-
|
|
17463
|
-
|
|
17464
|
-
decodeValue += 1 << bit;
|
|
17450
|
+
if (isString$1(value)) {
|
|
17451
|
+
if (value.length === 18) {
|
|
17452
|
+
return value;
|
|
17453
|
+
}
|
|
17454
|
+
else if (value.length === 15) {
|
|
17455
|
+
// Add the 3 character suffix
|
|
17456
|
+
let recordId = value;
|
|
17457
|
+
for (let offset = 0; offset < 15; offset += 5) {
|
|
17458
|
+
let decodeValue = 0;
|
|
17459
|
+
for (let bit = 0; bit < 5; bit++) {
|
|
17460
|
+
const c = value[offset + bit];
|
|
17461
|
+
if (c >= 'A' && c <= 'Z') {
|
|
17462
|
+
decodeValue += 1 << bit;
|
|
17463
|
+
}
|
|
17465
17464
|
}
|
|
17465
|
+
recordId += RECORD_ID_DECODER[decodeValue];
|
|
17466
17466
|
}
|
|
17467
|
-
recordId
|
|
17467
|
+
return recordId;
|
|
17468
17468
|
}
|
|
17469
|
-
|
|
17469
|
+
}
|
|
17470
|
+
else if (value === undefined || value === null) {
|
|
17471
|
+
// Not throwing here - input params might not have settled
|
|
17472
|
+
return undefined;
|
|
17470
17473
|
}
|
|
17471
17474
|
return undefined;
|
|
17472
17475
|
}
|
|
@@ -41937,7 +41940,7 @@
|
|
|
41937
41940
|
});
|
|
41938
41941
|
throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory));
|
|
41939
41942
|
});
|
|
41940
|
-
// version: 1.214.
|
|
41943
|
+
// version: 1.214.2-2e2871620
|
|
41941
41944
|
|
|
41942
41945
|
var caseSensitiveUserId = '005B0000000GR4OIAW';
|
|
41943
41946
|
|
|
@@ -58535,7 +58538,7 @@
|
|
|
58535
58538
|
id: '@salesforce/lds-network-adapter',
|
|
58536
58539
|
instrument: instrument$1,
|
|
58537
58540
|
});
|
|
58538
|
-
// version: 1.214.
|
|
58541
|
+
// version: 1.214.2-a5e1ff9a2
|
|
58539
58542
|
|
|
58540
58543
|
const { create: create$2, keys: keys$2 } = Object;
|
|
58541
58544
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -76810,7 +76813,7 @@
|
|
|
76810
76813
|
configuration: { ...configurationForGraphQLAdapters },
|
|
76811
76814
|
instrument,
|
|
76812
76815
|
});
|
|
76813
|
-
// version: 1.214.
|
|
76816
|
+
// version: 1.214.2-2e2871620
|
|
76814
76817
|
|
|
76815
76818
|
// On core the unstable adapters are re-exported with different names,
|
|
76816
76819
|
|
|
@@ -79057,7 +79060,7 @@
|
|
|
79057
79060
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
79058
79061
|
graphQLImperative = ldsAdapter;
|
|
79059
79062
|
});
|
|
79060
|
-
// version: 1.214.
|
|
79063
|
+
// version: 1.214.2-2e2871620
|
|
79061
79064
|
|
|
79062
79065
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
79063
79066
|
__proto__: null,
|
|
@@ -79788,4 +79791,4 @@
|
|
|
79788
79791
|
Object.defineProperty(exports, '__esModule', { value: true });
|
|
79789
79792
|
|
|
79790
79793
|
}));
|
|
79791
|
-
// version: 1.214.
|
|
79794
|
+
// version: 1.214.2-a5e1ff9a2
|