@salesforce/lds-worker-api 1.332.0-dev10 → 1.332.0-dev11
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-dev11-dc267c447c
|
|
@@ -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-dev11-dc267c447c
|
|
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-dev11-dc267c447c
|
|
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-dev11-db48bc45f8
|
|
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 };
|
|
@@ -92867,7 +92873,7 @@ register$1({
|
|
|
92867
92873
|
id: '@salesforce/lds-network-adapter',
|
|
92868
92874
|
instrument: instrument$2,
|
|
92869
92875
|
});
|
|
92870
|
-
// version: 1.332.0-
|
|
92876
|
+
// version: 1.332.0-dev11-dc267c447c
|
|
92871
92877
|
|
|
92872
92878
|
const { create: create$2, keys: keys$2 } = Object;
|
|
92873
92879
|
const { stringify, parse } = JSON;
|
|
@@ -115434,7 +115440,7 @@ register$1({
|
|
|
115434
115440
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
115435
115441
|
instrument: instrument$1,
|
|
115436
115442
|
});
|
|
115437
|
-
// version: 1.332.0-
|
|
115443
|
+
// version: 1.332.0-dev11-db48bc45f8
|
|
115438
115444
|
|
|
115439
115445
|
// On core the unstable adapters are re-exported with different names,
|
|
115440
115446
|
// we want to match them here.
|
|
@@ -115586,7 +115592,7 @@ withDefaultLuvio((luvio) => {
|
|
|
115586
115592
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
115587
115593
|
graphQLImperative = ldsAdapter;
|
|
115588
115594
|
});
|
|
115589
|
-
// version: 1.332.0-
|
|
115595
|
+
// version: 1.332.0-dev11-db48bc45f8
|
|
115590
115596
|
|
|
115591
115597
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
115592
115598
|
__proto__: null,
|
|
@@ -116378,7 +116384,7 @@ const callbacks$1 = [];
|
|
|
116378
116384
|
function register(r) {
|
|
116379
116385
|
callbacks$1.forEach((callback) => callback(r));
|
|
116380
116386
|
}
|
|
116381
|
-
// version: 1.332.0-
|
|
116387
|
+
// version: 1.332.0-dev11-dc267c447c
|
|
116382
116388
|
|
|
116383
116389
|
/**
|
|
116384
116390
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -117441,4 +117447,4 @@ const { luvio } = getRuntime();
|
|
|
117441
117447
|
setDefaultLuvio({ luvio });
|
|
117442
117448
|
|
|
117443
117449
|
export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
|
|
117444
|
-
// version: 1.332.0-
|
|
117450
|
+
// version: 1.332.0-dev11-dc267c447c
|
|
@@ -4271,7 +4271,7 @@
|
|
|
4271
4271
|
}
|
|
4272
4272
|
callbacks.push(callback);
|
|
4273
4273
|
}
|
|
4274
|
-
// version: 1.332.0-
|
|
4274
|
+
// version: 1.332.0-dev11-dc267c447c
|
|
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-dev11-dc267c447c
|
|
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-dev11-db48bc45f8
|
|
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 };
|
|
@@ -92873,7 +92879,7 @@
|
|
|
92873
92879
|
id: '@salesforce/lds-network-adapter',
|
|
92874
92880
|
instrument: instrument$2,
|
|
92875
92881
|
});
|
|
92876
|
-
// version: 1.332.0-
|
|
92882
|
+
// version: 1.332.0-dev11-dc267c447c
|
|
92877
92883
|
|
|
92878
92884
|
const { create: create$2, keys: keys$2 } = Object;
|
|
92879
92885
|
const { stringify, parse } = JSON;
|
|
@@ -115440,7 +115446,7 @@
|
|
|
115440
115446
|
configuration: { ...configurationForGraphQLAdapters$1 },
|
|
115441
115447
|
instrument: instrument$1,
|
|
115442
115448
|
});
|
|
115443
|
-
// version: 1.332.0-
|
|
115449
|
+
// version: 1.332.0-dev11-db48bc45f8
|
|
115444
115450
|
|
|
115445
115451
|
// On core the unstable adapters are re-exported with different names,
|
|
115446
115452
|
// we want to match them here.
|
|
@@ -115592,7 +115598,7 @@
|
|
|
115592
115598
|
unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
|
|
115593
115599
|
graphQLImperative = ldsAdapter;
|
|
115594
115600
|
});
|
|
115595
|
-
// version: 1.332.0-
|
|
115601
|
+
// version: 1.332.0-dev11-db48bc45f8
|
|
115596
115602
|
|
|
115597
115603
|
var gqlApi = /*#__PURE__*/Object.freeze({
|
|
115598
115604
|
__proto__: null,
|
|
@@ -116384,7 +116390,7 @@
|
|
|
116384
116390
|
function register(r) {
|
|
116385
116391
|
callbacks$1.forEach((callback) => callback(r));
|
|
116386
116392
|
}
|
|
116387
|
-
// version: 1.332.0-
|
|
116393
|
+
// version: 1.332.0-dev11-dc267c447c
|
|
116388
116394
|
|
|
116389
116395
|
/**
|
|
116390
116396
|
* Copyright (c) 2022, Salesforce, Inc.,
|
|
@@ -117466,4 +117472,4 @@
|
|
|
117466
117472
|
exports.subscribeToAdapter = subscribeToAdapter;
|
|
117467
117473
|
|
|
117468
117474
|
}));
|
|
117469
|
-
// version: 1.332.0-
|
|
117475
|
+
// version: 1.332.0-dev11-dc267c447c
|
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-dev11",
|
|
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-dev11",
|
|
39
|
+
"@salesforce/lds-adapters-uiapi": "^1.332.0-dev11",
|
|
40
|
+
"@salesforce/lds-default-luvio": "^1.332.0-dev11",
|
|
41
|
+
"@salesforce/lds-drafts": "^1.332.0-dev11",
|
|
42
|
+
"@salesforce/lds-graphql-parser": "^1.332.0-dev11",
|
|
43
|
+
"@salesforce/lds-luvio-engine": "^1.332.0-dev11",
|
|
44
|
+
"@salesforce/lds-runtime-mobile": "^1.332.0-dev11",
|
|
45
|
+
"@salesforce/nimbus-plugin-lds": "^1.332.0-dev11",
|
|
46
46
|
"ajv": "^8.11.0",
|
|
47
47
|
"glob": "^7.1.5",
|
|
48
48
|
"nimbus-types": "^2.0.0-alpha1",
|