@salesforce/lds-worker-api 1.309.0 → 1.310.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.
|
@@ -1071,4 +1071,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1071
1071
|
}
|
|
1072
1072
|
|
|
1073
1073
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1074
|
-
// version: 1.
|
|
1074
|
+
// version: 1.310.0-6f61f12f95
|
|
@@ -4265,7 +4265,7 @@ function withDefaultLuvio(callback) {
|
|
|
4265
4265
|
}
|
|
4266
4266
|
callbacks.push(callback);
|
|
4267
4267
|
}
|
|
4268
|
-
// version: 1.
|
|
4268
|
+
// version: 1.310.0-6f61f12f95
|
|
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) {
|
|
@@ -15764,7 +15764,7 @@ function gql(literals, ...subs) {
|
|
|
15764
15764
|
}
|
|
15765
15765
|
return superResult;
|
|
15766
15766
|
}
|
|
15767
|
-
// version: 1.
|
|
15767
|
+
// version: 1.310.0-6f61f12f95
|
|
15768
15768
|
|
|
15769
15769
|
function unwrap(data) {
|
|
15770
15770
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16693,7 +16693,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
|
|
|
16693
16693
|
const { apiFamily, name } = metadata;
|
|
16694
16694
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16695
16695
|
}
|
|
16696
|
-
// version: 1.
|
|
16696
|
+
// version: 1.310.0-6f61f12f95
|
|
16697
16697
|
|
|
16698
16698
|
/**
|
|
16699
16699
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -40966,7 +40966,7 @@ const performUpdateRecordQuickAction_ConfigPropertyMetadata = [
|
|
|
40966
40966
|
generateParamConfigMetadata$2('actionApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
40967
40967
|
generateParamConfigMetadata$2('allowSaveOnDuplicate', false, 2 /* Body */, 1 /* Boolean */),
|
|
40968
40968
|
generateParamConfigMetadata$2('apiName', true, 2 /* Body */, 0 /* String */),
|
|
40969
|
-
generateParamConfigMetadata$2('contextId', false, 2 /* Body */, 0 /* String
|
|
40969
|
+
generateParamConfigMetadata$2('contextId', false, 2 /* Body */, 0 /* String */, false, getRecordId18),
|
|
40970
40970
|
generateParamConfigMetadata$2('fields', true, 2 /* Body */, 4 /* Unsupported */),
|
|
40971
40971
|
];
|
|
40972
40972
|
const performUpdateRecordQuickAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$8, performUpdateRecordQuickAction_ConfigPropertyMetadata);
|
|
@@ -41012,7 +41012,8 @@ function validateAdapterConfig$b(untrustedConfig, configPropertyNames) {
|
|
|
41012
41012
|
if (!untrustedIsObject$2(untrustedConfig)) {
|
|
41013
41013
|
return null;
|
|
41014
41014
|
}
|
|
41015
|
-
const
|
|
41015
|
+
const coercedConfig = coerceConfig$1(untrustedConfig, performUpdateRecordQuickAction_ConfigPropertyMetadata);
|
|
41016
|
+
const config = typeCheckConfig$d(coercedConfig);
|
|
41016
41017
|
if (!areRequiredParametersPresent$1(config, configPropertyNames)) {
|
|
41017
41018
|
return null;
|
|
41018
41019
|
}
|
|
@@ -41086,7 +41087,7 @@ const performQuickAction_ConfigPropertyMetadata = [
|
|
|
41086
41087
|
generateParamConfigMetadata$2('actionApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
41087
41088
|
generateParamConfigMetadata$2('allowSaveOnDuplicate', false, 2 /* Body */, 1 /* Boolean */),
|
|
41088
41089
|
generateParamConfigMetadata$2('apiName', true, 2 /* Body */, 0 /* String */),
|
|
41089
|
-
generateParamConfigMetadata$2('contextId', false, 2 /* Body */, 0 /* String
|
|
41090
|
+
generateParamConfigMetadata$2('contextId', false, 2 /* Body */, 0 /* String */, false, getRecordId18),
|
|
41090
41091
|
generateParamConfigMetadata$2('fields', true, 2 /* Body */, 4 /* Unsupported */),
|
|
41091
41092
|
];
|
|
41092
41093
|
const performQuickAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$7, performQuickAction_ConfigPropertyMetadata);
|
|
@@ -41132,7 +41133,8 @@ function validateAdapterConfig$a(untrustedConfig, configPropertyNames) {
|
|
|
41132
41133
|
if (!untrustedIsObject$2(untrustedConfig)) {
|
|
41133
41134
|
return null;
|
|
41134
41135
|
}
|
|
41135
|
-
const
|
|
41136
|
+
const coercedConfig = coerceConfig$1(untrustedConfig, performQuickAction_ConfigPropertyMetadata);
|
|
41137
|
+
const config = typeCheckConfig$c(coercedConfig);
|
|
41136
41138
|
if (!areRequiredParametersPresent$1(config, configPropertyNames)) {
|
|
41137
41139
|
return null;
|
|
41138
41140
|
}
|
|
@@ -44798,7 +44800,7 @@ withDefaultLuvio((luvio) => {
|
|
|
44798
44800
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
44799
44801
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
44800
44802
|
});
|
|
44801
|
-
// version: 1.
|
|
44803
|
+
// version: 1.310.0-51b4ab090c
|
|
44802
44804
|
|
|
44803
44805
|
var ldsIdempotencyWriteDisabled = {
|
|
44804
44806
|
isOpen: function (e) {
|
|
@@ -52695,14 +52697,22 @@ function buildRecordFieldValueRepresentationsFromDraftFields(luvio, apiName, fie
|
|
|
52695
52697
|
if (fieldInfo !== undefined) {
|
|
52696
52698
|
const { dataType } = fieldInfo;
|
|
52697
52699
|
recordFields[fieldName].displayValue = formatDisplayValue(draftField, dataType);
|
|
52700
|
+
// for a DateTime field, we are going to convert the string to an ISOString value.
|
|
52698
52701
|
if (dataType === 'DateTime' &&
|
|
52699
52702
|
draftField !== null &&
|
|
52700
52703
|
typeof draftField === 'string') {
|
|
52701
|
-
|
|
52702
|
-
|
|
52704
|
+
// if it is empty string, then convert it to null.
|
|
52705
|
+
if (draftField === '') {
|
|
52706
|
+
recordFields[fieldName].value = null;
|
|
52703
52707
|
}
|
|
52704
|
-
|
|
52705
|
-
|
|
52708
|
+
else {
|
|
52709
|
+
// attempt to convert it to ISO string value
|
|
52710
|
+
try {
|
|
52711
|
+
recordFields[fieldName].value = new Date(draftField).toISOString();
|
|
52712
|
+
}
|
|
52713
|
+
catch (e) {
|
|
52714
|
+
throw Error('date field value not valid');
|
|
52715
|
+
}
|
|
52706
52716
|
}
|
|
52707
52717
|
}
|
|
52708
52718
|
}
|
|
@@ -63930,7 +63940,7 @@ register$1({
|
|
|
63930
63940
|
id: '@salesforce/lds-network-adapter',
|
|
63931
63941
|
instrument: instrument$2,
|
|
63932
63942
|
});
|
|
63933
|
-
// version: 1.
|
|
63943
|
+
// version: 1.310.0-6f61f12f95
|
|
63934
63944
|
|
|
63935
63945
|
const { create: create$3, keys: keys$3 } = Object;
|
|
63936
63946
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -83966,7 +83976,7 @@ register$1({
|
|
|
83966
83976
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
83967
83977
|
instrument: instrument$1,
|
|
83968
83978
|
});
|
|
83969
|
-
// version: 1.
|
|
83979
|
+
// version: 1.310.0-51b4ab090c
|
|
83970
83980
|
|
|
83971
83981
|
// On core the unstable adapters are re-exported with different names,
|
|
83972
83982
|
// we want to match them here.
|
|
@@ -86222,7 +86232,7 @@ withDefaultLuvio((luvio) => {
|
|
|
86222
86232
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
86223
86233
|
graphQLImperative = ldsAdapter;
|
|
86224
86234
|
});
|
|
86225
|
-
// version: 1.
|
|
86235
|
+
// version: 1.310.0-51b4ab090c
|
|
86226
86236
|
|
|
86227
86237
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
86228
86238
|
__proto__: null,
|
|
@@ -86957,7 +86967,7 @@ const callbacks$1 = [];
|
|
|
86957
86967
|
function register(r) {
|
|
86958
86968
|
callbacks$1.forEach((callback) => callback(r));
|
|
86959
86969
|
}
|
|
86960
|
-
// version: 1.
|
|
86970
|
+
// version: 1.310.0-6f61f12f95
|
|
86961
86971
|
|
|
86962
86972
|
/**
|
|
86963
86973
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -91919,4 +91929,4 @@ const { luvio } = getRuntime();
|
|
|
91919
91929
|
setDefaultLuvio({ luvio });
|
|
91920
91930
|
|
|
91921
91931
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
91922
|
-
// version: 1.
|
|
91932
|
+
// version: 1.310.0-6f61f12f95
|
|
@@ -4271,7 +4271,7 @@
|
|
|
4271
4271
|
}
|
|
4272
4272
|
callbacks.push(callback);
|
|
4273
4273
|
}
|
|
4274
|
-
// version: 1.
|
|
4274
|
+
// version: 1.310.0-6f61f12f95
|
|
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) {
|
|
@@ -15770,7 +15770,7 @@
|
|
|
15770
15770
|
}
|
|
15771
15771
|
return superResult;
|
|
15772
15772
|
}
|
|
15773
|
-
// version: 1.
|
|
15773
|
+
// version: 1.310.0-6f61f12f95
|
|
15774
15774
|
|
|
15775
15775
|
function unwrap(data) {
|
|
15776
15776
|
// The lwc-luvio bindings import a function from lwc called "unwrap".
|
|
@@ -16699,7 +16699,7 @@
|
|
|
16699
16699
|
const { apiFamily, name } = metadata;
|
|
16700
16700
|
return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
|
|
16701
16701
|
}
|
|
16702
|
-
// version: 1.
|
|
16702
|
+
// version: 1.310.0-6f61f12f95
|
|
16703
16703
|
|
|
16704
16704
|
/**
|
|
16705
16705
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -40972,7 +40972,7 @@
|
|
|
40972
40972
|
generateParamConfigMetadata$2('actionApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
40973
40973
|
generateParamConfigMetadata$2('allowSaveOnDuplicate', false, 2 /* Body */, 1 /* Boolean */),
|
|
40974
40974
|
generateParamConfigMetadata$2('apiName', true, 2 /* Body */, 0 /* String */),
|
|
40975
|
-
generateParamConfigMetadata$2('contextId', false, 2 /* Body */, 0 /* String
|
|
40975
|
+
generateParamConfigMetadata$2('contextId', false, 2 /* Body */, 0 /* String */, false, getRecordId18),
|
|
40976
40976
|
generateParamConfigMetadata$2('fields', true, 2 /* Body */, 4 /* Unsupported */),
|
|
40977
40977
|
];
|
|
40978
40978
|
const performUpdateRecordQuickAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$8, performUpdateRecordQuickAction_ConfigPropertyMetadata);
|
|
@@ -41018,7 +41018,8 @@
|
|
|
41018
41018
|
if (!untrustedIsObject$2(untrustedConfig)) {
|
|
41019
41019
|
return null;
|
|
41020
41020
|
}
|
|
41021
|
-
const
|
|
41021
|
+
const coercedConfig = coerceConfig$1(untrustedConfig, performUpdateRecordQuickAction_ConfigPropertyMetadata);
|
|
41022
|
+
const config = typeCheckConfig$d(coercedConfig);
|
|
41022
41023
|
if (!areRequiredParametersPresent$1(config, configPropertyNames)) {
|
|
41023
41024
|
return null;
|
|
41024
41025
|
}
|
|
@@ -41092,7 +41093,7 @@
|
|
|
41092
41093
|
generateParamConfigMetadata$2('actionApiName', true, 0 /* UrlParameter */, 0 /* String */),
|
|
41093
41094
|
generateParamConfigMetadata$2('allowSaveOnDuplicate', false, 2 /* Body */, 1 /* Boolean */),
|
|
41094
41095
|
generateParamConfigMetadata$2('apiName', true, 2 /* Body */, 0 /* String */),
|
|
41095
|
-
generateParamConfigMetadata$2('contextId', false, 2 /* Body */, 0 /* String
|
|
41096
|
+
generateParamConfigMetadata$2('contextId', false, 2 /* Body */, 0 /* String */, false, getRecordId18),
|
|
41096
41097
|
generateParamConfigMetadata$2('fields', true, 2 /* Body */, 4 /* Unsupported */),
|
|
41097
41098
|
];
|
|
41098
41099
|
const performQuickAction_ConfigPropertyNames = /*#__PURE__*/ buildAdapterValidationConfig$2(adapterName$7, performQuickAction_ConfigPropertyMetadata);
|
|
@@ -41138,7 +41139,8 @@
|
|
|
41138
41139
|
if (!untrustedIsObject$2(untrustedConfig)) {
|
|
41139
41140
|
return null;
|
|
41140
41141
|
}
|
|
41141
|
-
const
|
|
41142
|
+
const coercedConfig = coerceConfig$1(untrustedConfig, performQuickAction_ConfigPropertyMetadata);
|
|
41143
|
+
const config = typeCheckConfig$c(coercedConfig);
|
|
41142
41144
|
if (!areRequiredParametersPresent$1(config, configPropertyNames)) {
|
|
41143
41145
|
return null;
|
|
41144
41146
|
}
|
|
@@ -44804,7 +44806,7 @@
|
|
|
44804
44806
|
throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
|
|
44805
44807
|
throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
|
|
44806
44808
|
});
|
|
44807
|
-
// version: 1.
|
|
44809
|
+
// version: 1.310.0-51b4ab090c
|
|
44808
44810
|
|
|
44809
44811
|
var ldsIdempotencyWriteDisabled = {
|
|
44810
44812
|
isOpen: function (e) {
|
|
@@ -52701,14 +52703,22 @@
|
|
|
52701
52703
|
if (fieldInfo !== undefined) {
|
|
52702
52704
|
const { dataType } = fieldInfo;
|
|
52703
52705
|
recordFields[fieldName].displayValue = formatDisplayValue(draftField, dataType);
|
|
52706
|
+
// for a DateTime field, we are going to convert the string to an ISOString value.
|
|
52704
52707
|
if (dataType === 'DateTime' &&
|
|
52705
52708
|
draftField !== null &&
|
|
52706
52709
|
typeof draftField === 'string') {
|
|
52707
|
-
|
|
52708
|
-
|
|
52710
|
+
// if it is empty string, then convert it to null.
|
|
52711
|
+
if (draftField === '') {
|
|
52712
|
+
recordFields[fieldName].value = null;
|
|
52709
52713
|
}
|
|
52710
|
-
|
|
52711
|
-
|
|
52714
|
+
else {
|
|
52715
|
+
// attempt to convert it to ISO string value
|
|
52716
|
+
try {
|
|
52717
|
+
recordFields[fieldName].value = new Date(draftField).toISOString();
|
|
52718
|
+
}
|
|
52719
|
+
catch (e) {
|
|
52720
|
+
throw Error('date field value not valid');
|
|
52721
|
+
}
|
|
52712
52722
|
}
|
|
52713
52723
|
}
|
|
52714
52724
|
}
|
|
@@ -63936,7 +63946,7 @@
|
|
|
63936
63946
|
id: '@salesforce/lds-network-adapter',
|
|
63937
63947
|
instrument: instrument$2,
|
|
63938
63948
|
});
|
|
63939
|
-
// version: 1.
|
|
63949
|
+
// version: 1.310.0-6f61f12f95
|
|
63940
63950
|
|
|
63941
63951
|
const { create: create$3, keys: keys$3 } = Object;
|
|
63942
63952
|
const { stringify: stringify$1, parse: parse$1 } = JSON;
|
|
@@ -83972,7 +83982,7 @@
|
|
|
83972
83982
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
83973
83983
|
instrument: instrument$1,
|
|
83974
83984
|
});
|
|
83975
|
-
// version: 1.
|
|
83985
|
+
// version: 1.310.0-51b4ab090c
|
|
83976
83986
|
|
|
83977
83987
|
// On core the unstable adapters are re-exported with different names,
|
|
83978
83988
|
// we want to match them here.
|
|
@@ -86228,7 +86238,7 @@
|
|
|
86228
86238
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
86229
86239
|
graphQLImperative = ldsAdapter;
|
|
86230
86240
|
});
|
|
86231
|
-
// version: 1.
|
|
86241
|
+
// version: 1.310.0-51b4ab090c
|
|
86232
86242
|
|
|
86233
86243
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
86234
86244
|
__proto__: null,
|
|
@@ -86963,7 +86973,7 @@
|
|
|
86963
86973
|
function register(r) {
|
|
86964
86974
|
callbacks$1.forEach((callback) => callback(r));
|
|
86965
86975
|
}
|
|
86966
|
-
// version: 1.
|
|
86976
|
+
// version: 1.310.0-6f61f12f95
|
|
86967
86977
|
|
|
86968
86978
|
/**
|
|
86969
86979
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -91944,4 +91954,4 @@
|
|
|
91944
91954
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
91945
91955
|
|
|
91946
91956
|
}));
|
|
91947
|
-
// version: 1.
|
|
91957
|
+
// version: 1.310.0-6f61f12f95
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@salesforce/lds-worker-api",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.310.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.310.0",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.310.0",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.310.0",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.310.0",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.310.0",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.310.0",
|
|
44
|
+
"@salesforce/lds-priming": "^1.310.0",
|
|
45
|
+
"@salesforce/lds-runtime-mobile": "^1.310.0",
|
|
46
|
+
"@salesforce/nimbus-plugin-lds": "^1.310.0",
|
|
47
47
|
"ajv": "^8.11.0",
|
|
48
48
|
"glob": "^7.1.5",
|
|
49
49
|
"nimbus-types": "^2.0.0-alpha1",
|