@salesforce/lds-worker-api 1.119.3 → 1.120.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.
@@ -751,4 +751,4 @@ if (process.env.NODE_ENV !== 'production') {
751
751
  }
752
752
 
753
753
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
754
- // version: 1.119.3-6c74eaafc
754
+ // version: 1.120.0-7e4457c5c
@@ -3776,7 +3776,7 @@ function withDefaultLuvio(callback) {
3776
3776
  }
3777
3777
  callbacks.push(callback);
3778
3778
  }
3779
- // version: 1.119.3-6c74eaafc
3779
+ // version: 1.120.0-7e4457c5c
3780
3780
 
3781
3781
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3782
3782
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15200,7 +15200,7 @@ function parseAndVisit(source) {
15200
15200
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15201
15201
  return luvioDocumentNode;
15202
15202
  }
15203
- // version: 1.119.3-6c74eaafc
15203
+ // version: 1.120.0-7e4457c5c
15204
15204
 
15205
15205
  function unwrap(data) {
15206
15206
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16113,7 +16113,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16113
16113
  const { apiFamily, name } = metadata;
16114
16114
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16115
16115
  }
16116
- // version: 1.119.3-6c74eaafc
16116
+ // version: 1.120.0-7e4457c5c
16117
16117
 
16118
16118
  /**
16119
16119
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -35198,7 +35198,7 @@ function deepFreeze$l(input) {
35198
35198
  }
35199
35199
 
35200
35200
  const TTL$c = 900000;
35201
- const VERSION$k$1 = "d7f25ef61c7467805940f28371ac1f20";
35201
+ const VERSION$k$1 = "c977d65d153a2b4e888ddd45fb083248";
35202
35202
  const RepresentationType$g = 'RelatedListInfoRepresentation';
35203
35203
  function keyBuilder$G$1(luvio, config) {
35204
35204
  return keyPrefix$1 + '::' + RepresentationType$g + ':' + config.relatedListId + ':' + config.parentObjectApiName + ':' + config.restrictColumnsToLayout + ':' + (config.recordTypeId === null ? '' : config.recordTypeId) + ':' + '[' + config.optionalFields.join(',') + ']' + ':' + '[' + config.fields.join(',') + ']';
@@ -35255,15 +35255,15 @@ const select$w$1 = function RelatedListInfoRepresentationSelect() {
35255
35255
  name: 'filterLogicString',
35256
35256
  kind: 'Scalar'
35257
35257
  },
35258
+ {
35259
+ name: 'filterable',
35260
+ kind: 'Scalar'
35261
+ },
35258
35262
  {
35259
35263
  name: 'filteredByInfo',
35260
35264
  kind: 'Object',
35261
35265
  opaque: true
35262
35266
  },
35263
- {
35264
- name: 'isTransientFilterable',
35265
- kind: 'Scalar'
35266
- },
35267
35267
  {
35268
35268
  name: 'label',
35269
35269
  kind: 'Scalar'
@@ -44347,7 +44347,7 @@ withDefaultLuvio((luvio) => {
44347
44347
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
44348
44348
  });
44349
44349
  });
44350
- // version: 1.119.3-82df822c5
44350
+ // version: 1.120.0-d7f610c36
44351
44351
 
44352
44352
  var caseSensitiveUserId = '005B0000000GR4OIAW';
44353
44353
 
@@ -50995,6 +50995,7 @@ function dateLiteral(literal, op, field, alias) {
50995
50995
  type: PredicateType.single,
50996
50996
  alias,
50997
50997
  dataType: field.dataType,
50998
+ isCaseSensitive: false,
50998
50999
  };
50999
51000
  }
51000
51001
 
@@ -51024,6 +51025,7 @@ function dateTimePredicate(input, operator, field, alias) {
51024
51025
  alias,
51025
51026
  dataType: field.dataType,
51026
51027
  type: PredicateType.single,
51028
+ isCaseSensitive: false,
51027
51029
  };
51028
51030
  if (value !== undefined) {
51029
51031
  return predicate;
@@ -51201,6 +51203,7 @@ function filterToPredicates(where, recordType, alias, objectInfoMap, joins) {
51201
51203
  value: entityName,
51202
51204
  dataType: 'String',
51203
51205
  type: PredicateType.single,
51206
+ isCaseSensitive: true,
51204
51207
  },
51205
51208
  ...filterToPredicates(where[field][entityName], entityName, childAlias, objectInfoMap, joins),
51206
51209
  ];
@@ -51313,8 +51316,12 @@ function createSinglePredicate(val, operator, field, alias) {
51313
51316
  value,
51314
51317
  dataType: field.dataType,
51315
51318
  type: PredicateType.single,
51319
+ isCaseSensitive: isIDField(field),
51316
51320
  };
51317
51321
  }
51322
+ function isIDField(field) {
51323
+ return field.apiName === 'Id' || field.referenceToInfos.length > 0;
51324
+ }
51318
51325
  function multiPicklistToSql(operator, value) {
51319
51326
  // Individual multipicklist terms that delimited by semicolon are stored server-side
51320
51327
  // as lexically sorted strings and treated like logical ANDs. We can approximate this
@@ -51423,7 +51430,7 @@ function singlePredicateToSql(predicate, defaultAlias, isChildNotPredicate = fal
51423
51430
  return singleNotPredicateToIncludeNulls(predicate, defaultAlias);
51424
51431
  }
51425
51432
  // handles different type of filter predicate like 'date', 'picklist', 'time', 'percent'
51426
- let { alias, leftPath, operator, value, dataType } = predicate;
51433
+ let { alias, leftPath, operator, value, dataType, isCaseSensitive } = predicate;
51427
51434
  let binding = [];
51428
51435
  let boundValue = extractPredicateValue(value, dataType);
51429
51436
  // Handles boolean type field
@@ -51466,11 +51473,11 @@ function singlePredicateToSql(predicate, defaultAlias, isChildNotPredicate = fal
51466
51473
  if (operator === 'IN' || operator === 'NOT IN') {
51467
51474
  const { sql: questionSql, binding: valueBinding, includesNull, } = handleExtractedPredicateValue(boundValue, true);
51468
51475
  // If an explicit collating sequence is required on an IN operator it should be applied to the left operand,
51469
- // like this: "x COLLATE nocase IN (y,z, ...)".
51476
+ // like this: "x COLLATE NOCASE IN (y,z, ...)".
51470
51477
  const nullCheck = `json_extract("${alias}".data, '${leftPath}') ${operator === 'IN' ? 'IS' : 'IS NOT'} ?`;
51471
51478
  //if we only have a null in/nin then dont add the IN (y, z, ...)
51472
51479
  if (valueBinding.length > 0) {
51473
- sql = `json_extract("${alias}".data, '${leftPath}') COLLATE nocase ${operator} ${questionSql} ${includesNull ? `OR ${nullCheck}` : ''}`;
51480
+ sql = `json_extract("${alias}".data, '${leftPath}') ${isCaseSensitive === true ? '' : `COLLATE NOCASE`} ${operator} ${questionSql} ${includesNull ? `OR ${nullCheck}` : ''}`;
51474
51481
  }
51475
51482
  else {
51476
51483
  sql = `${includesNull ? nullCheck : ''}`;
@@ -51485,10 +51492,10 @@ function singlePredicateToSql(predicate, defaultAlias, isChildNotPredicate = fal
51485
51492
  // SQLite is case sensitive by default, SOQL is case in-sensitive by default
51486
51493
  // For pick list includes or excludeds, prefix and suffix the field value with ';' to guarantee the query accuracy.
51487
51494
  if (dataType === 'MultiPicklist' && (operator === 'LIKE' || operator === 'NOT LIKE')) {
51488
- sql = `'${MultiPickListValueSeparator}' || json_extract("${alias}".data, '${leftPath}') || '${MultiPickListValueSeparator}' ${operator} ${questionSql} COLLATE nocase`;
51495
+ sql = `'${MultiPickListValueSeparator}' || json_extract("${alias}".data, '${leftPath}') || '${MultiPickListValueSeparator}' ${operator} ${questionSql} COLLATE NOCASE`;
51489
51496
  }
51490
51497
  else {
51491
- sql = `json_extract("${alias}".data, '${leftPath}') ${operator} ${questionSql} COLLATE nocase`;
51498
+ sql = `json_extract("${alias}".data, '${leftPath}') ${operator} ${questionSql} ${isCaseSensitive === true ? '' : `COLLATE NOCASE`}`;
51492
51499
  }
51493
51500
  binding.push(...valueBinding);
51494
51501
  }
@@ -59855,7 +59862,7 @@ register({
59855
59862
  id: '@salesforce/lds-network-adapter',
59856
59863
  instrument: instrument$1,
59857
59864
  });
59858
- // version: 1.119.3-6c74eaafc
59865
+ // version: 1.120.0-7e4457c5c
59859
59866
 
59860
59867
  const { create: create$2, keys: keys$2 } = Object;
59861
59868
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -75030,7 +75037,7 @@ register({
75030
75037
  configuration: { ...configurationForGraphQLAdapters },
75031
75038
  instrument,
75032
75039
  });
75033
- // version: 1.119.3-82df822c5
75040
+ // version: 1.120.0-d7f610c36
75034
75041
 
75035
75042
  // On core the unstable adapters are re-exported with different names,
75036
75043
 
@@ -77159,7 +77166,7 @@ withDefaultLuvio((luvio) => {
77159
77166
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
77160
77167
  graphQLImperative = ldsAdapter;
77161
77168
  });
77162
- // version: 1.119.3-82df822c5
77169
+ // version: 1.120.0-d7f610c36
77163
77170
 
77164
77171
  var gqlApi = /*#__PURE__*/Object.freeze({
77165
77172
  __proto__: null,
@@ -77841,4 +77848,4 @@ const { luvio } = getRuntime();
77841
77848
  setDefaultLuvio({ luvio });
77842
77849
 
77843
77850
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
77844
- // version: 1.119.3-6c74eaafc
77851
+ // version: 1.120.0-7e4457c5c
@@ -3782,7 +3782,7 @@
3782
3782
  }
3783
3783
  callbacks.push(callback);
3784
3784
  }
3785
- // version: 1.119.3-6c74eaafc
3785
+ // version: 1.120.0-7e4457c5c
3786
3786
 
3787
3787
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
3788
3788
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15206,7 +15206,7 @@
15206
15206
  updateReferenceMapWithKnownKey(ast, luvioDocumentNode);
15207
15207
  return luvioDocumentNode;
15208
15208
  }
15209
- // version: 1.119.3-6c74eaafc
15209
+ // version: 1.120.0-7e4457c5c
15210
15210
 
15211
15211
  function unwrap(data) {
15212
15212
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16119,7 +16119,7 @@
16119
16119
  const { apiFamily, name } = metadata;
16120
16120
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16121
16121
  }
16122
- // version: 1.119.3-6c74eaafc
16122
+ // version: 1.120.0-7e4457c5c
16123
16123
 
16124
16124
  /**
16125
16125
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -35204,7 +35204,7 @@
35204
35204
  }
35205
35205
 
35206
35206
  const TTL$c = 900000;
35207
- const VERSION$k$1 = "d7f25ef61c7467805940f28371ac1f20";
35207
+ const VERSION$k$1 = "c977d65d153a2b4e888ddd45fb083248";
35208
35208
  const RepresentationType$g = 'RelatedListInfoRepresentation';
35209
35209
  function keyBuilder$G$1(luvio, config) {
35210
35210
  return keyPrefix$1 + '::' + RepresentationType$g + ':' + config.relatedListId + ':' + config.parentObjectApiName + ':' + config.restrictColumnsToLayout + ':' + (config.recordTypeId === null ? '' : config.recordTypeId) + ':' + '[' + config.optionalFields.join(',') + ']' + ':' + '[' + config.fields.join(',') + ']';
@@ -35261,15 +35261,15 @@
35261
35261
  name: 'filterLogicString',
35262
35262
  kind: 'Scalar'
35263
35263
  },
35264
+ {
35265
+ name: 'filterable',
35266
+ kind: 'Scalar'
35267
+ },
35264
35268
  {
35265
35269
  name: 'filteredByInfo',
35266
35270
  kind: 'Object',
35267
35271
  opaque: true
35268
35272
  },
35269
- {
35270
- name: 'isTransientFilterable',
35271
- kind: 'Scalar'
35272
- },
35273
35273
  {
35274
35274
  name: 'label',
35275
35275
  kind: 'Scalar'
@@ -44353,7 +44353,7 @@
44353
44353
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
44354
44354
  });
44355
44355
  });
44356
- // version: 1.119.3-82df822c5
44356
+ // version: 1.120.0-d7f610c36
44357
44357
 
44358
44358
  var caseSensitiveUserId = '005B0000000GR4OIAW';
44359
44359
 
@@ -51001,6 +51001,7 @@
51001
51001
  type: PredicateType.single,
51002
51002
  alias,
51003
51003
  dataType: field.dataType,
51004
+ isCaseSensitive: false,
51004
51005
  };
51005
51006
  }
51006
51007
 
@@ -51030,6 +51031,7 @@
51030
51031
  alias,
51031
51032
  dataType: field.dataType,
51032
51033
  type: PredicateType.single,
51034
+ isCaseSensitive: false,
51033
51035
  };
51034
51036
  if (value !== undefined) {
51035
51037
  return predicate;
@@ -51207,6 +51209,7 @@
51207
51209
  value: entityName,
51208
51210
  dataType: 'String',
51209
51211
  type: PredicateType.single,
51212
+ isCaseSensitive: true,
51210
51213
  },
51211
51214
  ...filterToPredicates(where[field][entityName], entityName, childAlias, objectInfoMap, joins),
51212
51215
  ];
@@ -51319,8 +51322,12 @@
51319
51322
  value,
51320
51323
  dataType: field.dataType,
51321
51324
  type: PredicateType.single,
51325
+ isCaseSensitive: isIDField(field),
51322
51326
  };
51323
51327
  }
51328
+ function isIDField(field) {
51329
+ return field.apiName === 'Id' || field.referenceToInfos.length > 0;
51330
+ }
51324
51331
  function multiPicklistToSql(operator, value) {
51325
51332
  // Individual multipicklist terms that delimited by semicolon are stored server-side
51326
51333
  // as lexically sorted strings and treated like logical ANDs. We can approximate this
@@ -51429,7 +51436,7 @@
51429
51436
  return singleNotPredicateToIncludeNulls(predicate, defaultAlias);
51430
51437
  }
51431
51438
  // handles different type of filter predicate like 'date', 'picklist', 'time', 'percent'
51432
- let { alias, leftPath, operator, value, dataType } = predicate;
51439
+ let { alias, leftPath, operator, value, dataType, isCaseSensitive } = predicate;
51433
51440
  let binding = [];
51434
51441
  let boundValue = extractPredicateValue(value, dataType);
51435
51442
  // Handles boolean type field
@@ -51472,11 +51479,11 @@
51472
51479
  if (operator === 'IN' || operator === 'NOT IN') {
51473
51480
  const { sql: questionSql, binding: valueBinding, includesNull, } = handleExtractedPredicateValue(boundValue, true);
51474
51481
  // If an explicit collating sequence is required on an IN operator it should be applied to the left operand,
51475
- // like this: "x COLLATE nocase IN (y,z, ...)".
51482
+ // like this: "x COLLATE NOCASE IN (y,z, ...)".
51476
51483
  const nullCheck = `json_extract("${alias}".data, '${leftPath}') ${operator === 'IN' ? 'IS' : 'IS NOT'} ?`;
51477
51484
  //if we only have a null in/nin then dont add the IN (y, z, ...)
51478
51485
  if (valueBinding.length > 0) {
51479
- sql = `json_extract("${alias}".data, '${leftPath}') COLLATE nocase ${operator} ${questionSql} ${includesNull ? `OR ${nullCheck}` : ''}`;
51486
+ sql = `json_extract("${alias}".data, '${leftPath}') ${isCaseSensitive === true ? '' : `COLLATE NOCASE`} ${operator} ${questionSql} ${includesNull ? `OR ${nullCheck}` : ''}`;
51480
51487
  }
51481
51488
  else {
51482
51489
  sql = `${includesNull ? nullCheck : ''}`;
@@ -51491,10 +51498,10 @@
51491
51498
  // SQLite is case sensitive by default, SOQL is case in-sensitive by default
51492
51499
  // For pick list includes or excludeds, prefix and suffix the field value with ';' to guarantee the query accuracy.
51493
51500
  if (dataType === 'MultiPicklist' && (operator === 'LIKE' || operator === 'NOT LIKE')) {
51494
- sql = `'${MultiPickListValueSeparator}' || json_extract("${alias}".data, '${leftPath}') || '${MultiPickListValueSeparator}' ${operator} ${questionSql} COLLATE nocase`;
51501
+ sql = `'${MultiPickListValueSeparator}' || json_extract("${alias}".data, '${leftPath}') || '${MultiPickListValueSeparator}' ${operator} ${questionSql} COLLATE NOCASE`;
51495
51502
  }
51496
51503
  else {
51497
- sql = `json_extract("${alias}".data, '${leftPath}') ${operator} ${questionSql} COLLATE nocase`;
51504
+ sql = `json_extract("${alias}".data, '${leftPath}') ${operator} ${questionSql} ${isCaseSensitive === true ? '' : `COLLATE NOCASE`}`;
51498
51505
  }
51499
51506
  binding.push(...valueBinding);
51500
51507
  }
@@ -59861,7 +59868,7 @@
59861
59868
  id: '@salesforce/lds-network-adapter',
59862
59869
  instrument: instrument$1,
59863
59870
  });
59864
- // version: 1.119.3-6c74eaafc
59871
+ // version: 1.120.0-7e4457c5c
59865
59872
 
59866
59873
  const { create: create$2, keys: keys$2 } = Object;
59867
59874
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -75036,7 +75043,7 @@
75036
75043
  configuration: { ...configurationForGraphQLAdapters },
75037
75044
  instrument,
75038
75045
  });
75039
- // version: 1.119.3-82df822c5
75046
+ // version: 1.120.0-d7f610c36
75040
75047
 
75041
75048
  // On core the unstable adapters are re-exported with different names,
75042
75049
 
@@ -77165,7 +77172,7 @@
77165
77172
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
77166
77173
  graphQLImperative = ldsAdapter;
77167
77174
  });
77168
- // version: 1.119.3-82df822c5
77175
+ // version: 1.120.0-d7f610c36
77169
77176
 
77170
77177
  var gqlApi = /*#__PURE__*/Object.freeze({
77171
77178
  __proto__: null,
@@ -77864,4 +77871,4 @@
77864
77871
  Object.defineProperty(exports, '__esModule', { value: true });
77865
77872
 
77866
77873
  }));
77867
- // version: 1.119.3-6c74eaafc
77874
+ // version: 1.120.0-7e4457c5c
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.119.3",
3
+ "version": "1.120.0",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/umd/lds-worker-api.js",