@salesforce/lds-worker-api 1.332.0-dev10 → 1.332.0-dev12
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.
|
@@ -1128,4 +1128,4 @@ if (process.env.NODE_ENV !== 'production') {
|
|
|
1128
1128
|
}
|
|
1129
1129
|
|
|
1130
1130
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
1131
|
-
// version: 1.332.0-
|
|
1131
|
+
// version: 1.332.0-dev12-1b83c1669d
|
|
@@ -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-dev12-1b83c1669d
|
|
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-dev12-1b83c1669d
|
|
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-dev12-919b322e8a
|
|
33854
33854
|
|
|
33855
33855
|
/**
|
|
33856
33856
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -82098,16 +82098,22 @@ function singlePredicateToSql(predicate, defaultAlias, isChildNotPredicate = fal
|
|
|
82098
82098
|
}
|
|
82099
82099
|
}
|
|
82100
82100
|
else {
|
|
82101
|
-
|
|
82102
|
-
|
|
82103
|
-
// For pick list includes or excludeds, prefix and suffix the field value with ';' to guarantee the query accuracy.
|
|
82104
|
-
if (dataType === 'MultiPicklist' && (operator === 'LIKE' || operator === 'NOT LIKE')) {
|
|
82105
|
-
sql = buildMultiPicklistSQL(predicate, valueBinding, questionSql);
|
|
82101
|
+
if (value === null && dataType !== 'MultiPicklist') {
|
|
82102
|
+
sql = `json_extract("${alias}".data, '${leftPath}') ${operator} NULL`;
|
|
82106
82103
|
}
|
|
82107
82104
|
else {
|
|
82108
|
-
|
|
82105
|
+
const { sql: questionSql, binding: valueBinding } = handleExtractedPredicateValue(boundValue, false);
|
|
82106
|
+
// SQLite is case sensitive by default, SOQL is case in-sensitive by default
|
|
82107
|
+
// For pick list includes or excludeds, prefix and suffix the field value with ';' to guarantee the query accuracy.
|
|
82108
|
+
if (dataType === 'MultiPicklist' &&
|
|
82109
|
+
(operator === 'LIKE' || operator === 'NOT LIKE')) {
|
|
82110
|
+
sql = buildMultiPicklistSQL(predicate, valueBinding, questionSql);
|
|
82111
|
+
}
|
|
82112
|
+
else {
|
|
82113
|
+
sql = `json_extract("${alias}".data, '${leftPath}') ${operator} ${questionSql}${isCaseSensitive === true ? '' : ` COLLATE NOCASE`}`;
|
|
82114
|
+
}
|
|
82115
|
+
binding.push(...valueBinding);
|
|
82109
82116
|
}
|
|
82110
|
-
binding.push(...valueBinding);
|
|
82111
82117
|
}
|
|
82112
82118
|
}
|
|
82113
82119
|
return { sql, binding };
|
|
@@ -91385,12 +91391,21 @@ function setupObserver() {
|
|
|
91385
91391
|
|
|
91386
91392
|
|
|
91387
91393
|
const { keys: keys$7, values, create: create$6, assign: assign$6, freeze: freeze$3, entries } = Object;
|
|
91394
|
+
|
|
91395
|
+
const RECORD_TEMPLATE_CREATE_REPRESENTATION_NAME = 'RecordTemplateCreateRepresentation';
|
|
91396
|
+
const RECORD_TEMPLATE_CREATE_REPRESENTATION_PREFIX = `${API_NAMESPACE$1}::${RECORD_TEMPLATE_CREATE_REPRESENTATION_NAME}:`;
|
|
91397
|
+
function isStoreKeyRecordTemplateId(key) {
|
|
91398
|
+
return (key.indexOf(RECORD_TEMPLATE_CREATE_REPRESENTATION_PREFIX) > -1 &&
|
|
91399
|
+
key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1);
|
|
91400
|
+
}
|
|
91388
91401
|
function isStoreKeyRecordId(key) {
|
|
91389
91402
|
return key.indexOf(RECORD_ID_PREFIX$1) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1;
|
|
91390
91403
|
}
|
|
91391
91404
|
function isEntryDurableRecordRepresentation(entry, key) {
|
|
91392
91405
|
// Either a DurableRecordRepresentation or StoreRecordError can live at a record key
|
|
91393
|
-
return ((isStoreKeyRecordId(key) ||
|
|
91406
|
+
return ((isStoreKeyRecordId(key) ||
|
|
91407
|
+
isStoreKeyRecordViewEntity$1(key) ||
|
|
91408
|
+
isStoreKeyRecordTemplateId(key)) &&
|
|
91394
91409
|
entry.data.__type === undefined);
|
|
91395
91410
|
}
|
|
91396
91411
|
|
|
@@ -92867,7 +92882,7 @@ register$1({
|
|
|
92867
92882
|
id: '@salesforce/lds-network-adapter',
|
|
92868
92883
|
instrument: instrument$2,
|
|
92869
92884
|
});
|
|
92870
|
-
// version: 1.332.0-
|
|
92885
|
+
// version: 1.332.0-dev12-1b83c1669d
|
|
92871
92886
|
|
|
92872
92887
|
const { create: create$2, keys: keys$2 } = Object;
|
|
92873
92888
|
const { stringify, parse } = JSON;
|
|
@@ -115434,7 +115449,7 @@ register$1({
|
|
|
115434
115449
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
115435
115450
|
instrument: instrument$1,
|
|
115436
115451
|
});
|
|
115437
|
-
// version: 1.332.0-
|
|
115452
|
+
// version: 1.332.0-dev12-919b322e8a
|
|
115438
115453
|
|
|
115439
115454
|
// On core the unstable adapters are re-exported with different names,
|
|
115440
115455
|
// we want to match them here.
|
|
@@ -115586,7 +115601,7 @@ withDefaultLuvio((luvio) => {
|
|
|
115586
115601
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
115587
115602
|
graphQLImperative = ldsAdapter;
|
|
115588
115603
|
});
|
|
115589
|
-
// version: 1.332.0-
|
|
115604
|
+
// version: 1.332.0-dev12-919b322e8a
|
|
115590
115605
|
|
|
115591
115606
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
115592
115607
|
__proto__: null,
|
|
@@ -116378,7 +116393,7 @@ const callbacks$1 = [];
|
|
|
116378
116393
|
function register(r) {
|
|
116379
116394
|
callbacks$1.forEach((callback) => callback(r));
|
|
116380
116395
|
}
|
|
116381
|
-
// version: 1.332.0-
|
|
116396
|
+
// version: 1.332.0-dev12-1b83c1669d
|
|
116382
116397
|
|
|
116383
116398
|
/**
|
|
116384
116399
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -117441,4 +117456,4 @@ const { luvio } = getRuntime();
|
|
|
117441
117456
|
setDefaultLuvio({ luvio });
|
|
117442
117457
|
|
|
117443
117458
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
117444
|
-
// version: 1.332.0-
|
|
117459
|
+
// version: 1.332.0-dev12-1b83c1669d
|
|
@@ -4271,7 +4271,7 @@
|
|
|
4271
4271
|
}
|
|
4272
4272
|
callbacks.push(callback);
|
|
4273
4273
|
}
|
|
4274
|
-
// version: 1.332.0-
|
|
4274
|
+
// version: 1.332.0-dev12-1b83c1669d
|
|
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-dev12-1b83c1669d
|
|
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-dev12-919b322e8a
|
|
33860
33860
|
|
|
33861
33861
|
/**
|
|
33862
33862
|
* Returns true if the value acts like a Promise, i.e. has a "then" function,
|
|
@@ -82104,16 +82104,22 @@
|
|
|
82104
82104
|
}
|
|
82105
82105
|
}
|
|
82106
82106
|
else {
|
|
82107
|
-
|
|
82108
|
-
|
|
82109
|
-
// For pick list includes or excludeds, prefix and suffix the field value with ';' to guarantee the query accuracy.
|
|
82110
|
-
if (dataType === 'MultiPicklist' && (operator === 'LIKE' || operator === 'NOT LIKE')) {
|
|
82111
|
-
sql = buildMultiPicklistSQL(predicate, valueBinding, questionSql);
|
|
82107
|
+
if (value === null && dataType !== 'MultiPicklist') {
|
|
82108
|
+
sql = `json_extract("${alias}".data, '${leftPath}') ${operator} NULL`;
|
|
82112
82109
|
}
|
|
82113
82110
|
else {
|
|
82114
|
-
|
|
82111
|
+
const { sql: questionSql, binding: valueBinding } = handleExtractedPredicateValue(boundValue, false);
|
|
82112
|
+
// SQLite is case sensitive by default, SOQL is case in-sensitive by default
|
|
82113
|
+
// For pick list includes or excludeds, prefix and suffix the field value with ';' to guarantee the query accuracy.
|
|
82114
|
+
if (dataType === 'MultiPicklist' &&
|
|
82115
|
+
(operator === 'LIKE' || operator === 'NOT LIKE')) {
|
|
82116
|
+
sql = buildMultiPicklistSQL(predicate, valueBinding, questionSql);
|
|
82117
|
+
}
|
|
82118
|
+
else {
|
|
82119
|
+
sql = `json_extract("${alias}".data, '${leftPath}') ${operator} ${questionSql}${isCaseSensitive === true ? '' : ` COLLATE NOCASE`}`;
|
|
82120
|
+
}
|
|
82121
|
+
binding.push(...valueBinding);
|
|
82115
82122
|
}
|
|
82116
|
-
binding.push(...valueBinding);
|
|
82117
82123
|
}
|
|
82118
82124
|
}
|
|
82119
82125
|
return { sql, binding };
|
|
@@ -91391,12 +91397,21 @@
|
|
|
91391
91397
|
|
|
91392
91398
|
|
|
91393
91399
|
const { keys: keys$7, values, create: create$6, assign: assign$6, freeze: freeze$3, entries } = Object;
|
|
91400
|
+
|
|
91401
|
+
const RECORD_TEMPLATE_CREATE_REPRESENTATION_NAME = 'RecordTemplateCreateRepresentation';
|
|
91402
|
+
const RECORD_TEMPLATE_CREATE_REPRESENTATION_PREFIX = `${API_NAMESPACE$1}::${RECORD_TEMPLATE_CREATE_REPRESENTATION_NAME}:`;
|
|
91403
|
+
function isStoreKeyRecordTemplateId(key) {
|
|
91404
|
+
return (key.indexOf(RECORD_TEMPLATE_CREATE_REPRESENTATION_PREFIX) > -1 &&
|
|
91405
|
+
key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1);
|
|
91406
|
+
}
|
|
91394
91407
|
function isStoreKeyRecordId(key) {
|
|
91395
91408
|
return key.indexOf(RECORD_ID_PREFIX$1) > -1 && key.indexOf(RECORD_FIELDS_KEY_JUNCTION$1) === -1;
|
|
91396
91409
|
}
|
|
91397
91410
|
function isEntryDurableRecordRepresentation(entry, key) {
|
|
91398
91411
|
// Either a DurableRecordRepresentation or StoreRecordError can live at a record key
|
|
91399
|
-
return ((isStoreKeyRecordId(key) ||
|
|
91412
|
+
return ((isStoreKeyRecordId(key) ||
|
|
91413
|
+
isStoreKeyRecordViewEntity$1(key) ||
|
|
91414
|
+
isStoreKeyRecordTemplateId(key)) &&
|
|
91400
91415
|
entry.data.__type === undefined);
|
|
91401
91416
|
}
|
|
91402
91417
|
|
|
@@ -92873,7 +92888,7 @@
|
|
|
92873
92888
|
id: '@salesforce/lds-network-adapter',
|
|
92874
92889
|
instrument: instrument$2,
|
|
92875
92890
|
});
|
|
92876
|
-
// version: 1.332.0-
|
|
92891
|
+
// version: 1.332.0-dev12-1b83c1669d
|
|
92877
92892
|
|
|
92878
92893
|
const { create: create$2, keys: keys$2 } = Object;
|
|
92879
92894
|
const { stringify, parse } = JSON;
|
|
@@ -115440,7 +115455,7 @@
|
|
|
115440
115455
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
115441
115456
|
instrument: instrument$1,
|
|
115442
115457
|
});
|
|
115443
|
-
// version: 1.332.0-
|
|
115458
|
+
// version: 1.332.0-dev12-919b322e8a
|
|
115444
115459
|
|
|
115445
115460
|
// On core the unstable adapters are re-exported with different names,
|
|
115446
115461
|
// we want to match them here.
|
|
@@ -115592,7 +115607,7 @@
|
|
|
115592
115607
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
115593
115608
|
graphQLImperative = ldsAdapter;
|
|
115594
115609
|
});
|
|
115595
|
-
// version: 1.332.0-
|
|
115610
|
+
// version: 1.332.0-dev12-919b322e8a
|
|
115596
115611
|
|
|
115597
115612
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
115598
115613
|
__proto__: null,
|
|
@@ -116384,7 +116399,7 @@
|
|
|
116384
116399
|
function register(r) {
|
|
116385
116400
|
callbacks$1.forEach((callback) => callback(r));
|
|
116386
116401
|
}
|
|
116387
|
-
// version: 1.332.0-
|
|
116402
|
+
// version: 1.332.0-dev12-1b83c1669d
|
|
116388
116403
|
|
|
116389
116404
|
/**
|
|
116390
116405
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -117466,4 +117481,4 @@
|
|
|
117466
117481
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
117467
117482
|
|
|
117468
117483
|
}));
|
|
117469
|
-
// version: 1.332.0-
|
|
117484
|
+
// version: 1.332.0-dev12-1b83c1669d
|
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-dev12",
|
|
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-dev12",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.332.0-dev12",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.332.0-dev12",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.332.0-dev12",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.332.0-dev12",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.332.0-dev12",
|
|
44
|
+
"@salesforce/lds-runtime-mobile": "^1.332.0-dev12",
|
|
45
|
+
"@salesforce/nimbus-plugin-lds": "^1.332.0-dev12",
|
|
46
46
|
"ajv": "^8.11.0",
|
|
47
47
|
"glob": "^7.1.5",
|
|
48
48
|
"nimbus-types": "^2.0.0-alpha1",
|