@salesforce/lds-worker-api 1.123.0 → 1.123.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.
@@ -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.123.0-0ef754c53
754
+ // version: 1.123.2-37e7786b5
@@ -3649,7 +3649,7 @@ class Luvio {
3649
3649
  return this.environment.buildStructuredKey(namespace, representationName, idValues);
3650
3650
  }
3651
3651
  }
3652
- // engine version: 0.137.6-aa20c775
3652
+ // engine version: 0.138.1-0a2e820e
3653
3653
 
3654
3654
  /**
3655
3655
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -3776,7 +3776,7 @@ function withDefaultLuvio(callback) {
3776
3776
  }
3777
3777
  callbacks.push(callback);
3778
3778
  }
3779
- // version: 1.123.0-0ef754c53
3779
+ // version: 1.123.2-37e7786b5
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.123.0-0ef754c53
15203
+ // version: 1.123.2-37e7786b5
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.123.0-0ef754c53
16116
+ // version: 1.123.2-37e7786b5
16117
16117
 
16118
16118
  /**
16119
16119
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -16196,7 +16196,7 @@ var FragmentReadResultState;
16196
16196
  ({
16197
16197
  state: FragmentReadResultState.Missing,
16198
16198
  });
16199
- // engine version: 0.137.6-aa20c775
16199
+ // engine version: 0.138.1-0a2e820e
16200
16200
 
16201
16201
  const { keys: ObjectKeys$3, freeze: ObjectFreeze$3, create: ObjectCreate$3 } = Object;
16202
16202
 
@@ -44347,7 +44347,7 @@ withDefaultLuvio((luvio) => {
44347
44347
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
44348
44348
  });
44349
44349
  });
44350
- // version: 1.123.0-d2a492f6b
44350
+ // version: 1.123.2-38c81ff00
44351
44351
 
44352
44352
  var caseSensitiveUserId = '005B0000000GR4OIAW';
44353
44353
 
@@ -45650,9 +45650,15 @@ function makeDurable(environment, { durableStore, instrumentation }) {
45650
45650
  else {
45651
45651
  ingestStagingStore.recordsMap.set(key, record);
45652
45652
  }
45653
- },
45654
- // we don't need to prime metadata
45655
- () => { });
45653
+ }, (key, metadata) => {
45654
+ if (typeof key === 'string') {
45655
+ ingestStagingStore.fallbackStringKeyInMemoryStore.metadata[key] =
45656
+ metadata;
45657
+ }
45658
+ else {
45659
+ ingestStagingStore.metadataMap.set(key, metadata);
45660
+ }
45661
+ });
45656
45662
  snapshotFromMemoryIngest = await ingestAndBroadcastFunc();
45657
45663
  })();
45658
45664
  for (const key of keysToReviveAsArray) {
@@ -51492,7 +51498,7 @@ function singlePredicateToSql(predicate, defaultAlias, isChildNotPredicate = fal
51492
51498
  const nullCheck = `json_extract("${alias}".data, '${leftPath}') ${operator === 'IN' ? 'IS' : 'IS NOT'} ?`;
51493
51499
  //if we only have a null in/nin then dont add the IN (y, z, ...)
51494
51500
  if (valueBinding.length > 0) {
51495
- sql = `json_extract("${alias}".data, '${leftPath}') ${isCaseSensitive === true ? '' : `COLLATE NOCASE`} ${operator} ${questionSql} ${includesNull ? `OR ${nullCheck}` : ''}`;
51501
+ sql = `json_extract("${alias}".data, '${leftPath}')${isCaseSensitive === true ? '' : ` COLLATE NOCASE`} ${operator} ${questionSql} ${includesNull ? `OR ${nullCheck}` : ''}`;
51496
51502
  }
51497
51503
  else {
51498
51504
  sql = `${includesNull ? nullCheck : ''}`;
@@ -51510,7 +51516,7 @@ function singlePredicateToSql(predicate, defaultAlias, isChildNotPredicate = fal
51510
51516
  sql = `'${MultiPickListValueSeparator}' || json_extract("${alias}".data, '${leftPath}') || '${MultiPickListValueSeparator}' ${operator} ${questionSql} COLLATE NOCASE`;
51511
51517
  }
51512
51518
  else {
51513
- sql = `json_extract("${alias}".data, '${leftPath}') ${operator} ${questionSql} ${isCaseSensitive === true ? '' : `COLLATE NOCASE`}`;
51519
+ sql = `json_extract("${alias}".data, '${leftPath}') ${operator} ${questionSql}${isCaseSensitive === true ? '' : ` COLLATE NOCASE`}`;
51514
51520
  }
51515
51521
  binding.push(...valueBinding);
51516
51522
  }
@@ -51698,7 +51704,7 @@ function buildJoins(config) {
51698
51704
  }
51699
51705
  else {
51700
51706
  // predicate on a path
51701
- const left = `AND json_extract("${join.to}".data, '${condition.leftPath}')`;
51707
+ const left = ` AND json_extract("${join.to}".data, '${condition.leftPath}')`;
51702
51708
  const right = `json_extract("${join.alias}".data, '${condition.rightPath}')`;
51703
51709
  joined_sql = `${left} = ${right}`;
51704
51710
  }
@@ -51710,7 +51716,7 @@ function buildJoins(config) {
51710
51716
  joinAccumulator += `
51711
51717
  ${join.type} JOIN lds_data "${join.alias}"
51712
51718
  ON "${join.alias}".key like 'UiApi::RecordRepresentation:%'
51713
- AND ${formattedJoinCondition}
51719
+ AND${formattedJoinCondition}
51714
51720
  `;
51715
51721
  return joinAccumulator;
51716
51722
  }, '');
@@ -52398,6 +52404,15 @@ function scopeToJoins(scope = '', settings) {
52398
52404
  type: 'INNER',
52399
52405
  to: 'ServiceAppointment',
52400
52406
  conditions: [
52407
+ {
52408
+ type: PredicateType.single,
52409
+ alias: 'ServiceAppointment_AssignedResource',
52410
+ leftPath: '$.apiName',
52411
+ operator: '=',
52412
+ value: 'AssignedResource',
52413
+ dataType: 'String',
52414
+ isCaseSensitive: true,
52415
+ },
52401
52416
  {
52402
52417
  leftPath: '$.id',
52403
52418
  rightPath: '$.fields.ServiceAppointmentId.value',
@@ -52410,6 +52425,15 @@ function scopeToJoins(scope = '', settings) {
52410
52425
  type: 'INNER',
52411
52426
  to: 'ServiceAppointment_AssignedResource',
52412
52427
  conditions: [
52428
+ {
52429
+ type: PredicateType.single,
52430
+ alias: 'ServiceAppointment_AssignedResource_ServiceResource',
52431
+ leftPath: '$.apiName',
52432
+ operator: '=',
52433
+ value: 'ServiceResource',
52434
+ dataType: 'String',
52435
+ isCaseSensitive: true,
52436
+ },
52413
52437
  {
52414
52438
  leftPath: '$.fields.ServiceResourceId.value',
52415
52439
  rightPath: '$.id',
@@ -52421,6 +52445,7 @@ function scopeToJoins(scope = '', settings) {
52421
52445
  operator: '=',
52422
52446
  value: settings.userId,
52423
52447
  dataType: 'String',
52448
+ isCaseSensitive: true,
52424
52449
  },
52425
52450
  ],
52426
52451
  apiName: 'ServiceResource',
@@ -59877,7 +59902,7 @@ register({
59877
59902
  id: '@salesforce/lds-network-adapter',
59878
59903
  instrument: instrument$1,
59879
59904
  });
59880
- // version: 1.123.0-0ef754c53
59905
+ // version: 1.123.2-37e7786b5
59881
59906
 
59882
59907
  const { create: create$2, keys: keys$2 } = Object;
59883
59908
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -74142,7 +74167,7 @@ register({
74142
74167
  configuration: { ...configurationForGraphQLAdapters },
74143
74168
  instrument,
74144
74169
  });
74145
- // version: 1.123.0-d2a492f6b
74170
+ // version: 1.123.2-38c81ff00
74146
74171
 
74147
74172
  // On core the unstable adapters are re-exported with different names,
74148
74173
 
@@ -76271,7 +76296,7 @@ withDefaultLuvio((luvio) => {
76271
76296
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
76272
76297
  graphQLImperative = ldsAdapter;
76273
76298
  });
76274
- // version: 1.123.0-d2a492f6b
76299
+ // version: 1.123.2-38c81ff00
76275
76300
 
76276
76301
  var gqlApi = /*#__PURE__*/Object.freeze({
76277
76302
  __proto__: null,
@@ -76953,4 +76978,4 @@ const { luvio } = getRuntime();
76953
76978
  setDefaultLuvio({ luvio });
76954
76979
 
76955
76980
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
76956
- // version: 1.123.0-0ef754c53
76981
+ // version: 1.123.2-37e7786b5
@@ -3655,7 +3655,7 @@
3655
3655
  return this.environment.buildStructuredKey(namespace, representationName, idValues);
3656
3656
  }
3657
3657
  }
3658
- // engine version: 0.137.6-aa20c775
3658
+ // engine version: 0.138.1-0a2e820e
3659
3659
 
3660
3660
  /**
3661
3661
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -3782,7 +3782,7 @@
3782
3782
  }
3783
3783
  callbacks.push(callback);
3784
3784
  }
3785
- // version: 1.123.0-0ef754c53
3785
+ // version: 1.123.2-37e7786b5
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.123.0-0ef754c53
15209
+ // version: 1.123.2-37e7786b5
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.123.0-0ef754c53
16122
+ // version: 1.123.2-37e7786b5
16123
16123
 
16124
16124
  /**
16125
16125
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -16202,7 +16202,7 @@
16202
16202
  ({
16203
16203
  state: FragmentReadResultState.Missing,
16204
16204
  });
16205
- // engine version: 0.137.6-aa20c775
16205
+ // engine version: 0.138.1-0a2e820e
16206
16206
 
16207
16207
  const { keys: ObjectKeys$3, freeze: ObjectFreeze$3, create: ObjectCreate$3 } = Object;
16208
16208
 
@@ -44353,7 +44353,7 @@
44353
44353
  dropFunction: instrumentation$2.notifyRecordUpdateAvailableDropped,
44354
44354
  });
44355
44355
  });
44356
- // version: 1.123.0-d2a492f6b
44356
+ // version: 1.123.2-38c81ff00
44357
44357
 
44358
44358
  var caseSensitiveUserId = '005B0000000GR4OIAW';
44359
44359
 
@@ -45656,9 +45656,15 @@
45656
45656
  else {
45657
45657
  ingestStagingStore.recordsMap.set(key, record);
45658
45658
  }
45659
- },
45660
- // we don't need to prime metadata
45661
- () => { });
45659
+ }, (key, metadata) => {
45660
+ if (typeof key === 'string') {
45661
+ ingestStagingStore.fallbackStringKeyInMemoryStore.metadata[key] =
45662
+ metadata;
45663
+ }
45664
+ else {
45665
+ ingestStagingStore.metadataMap.set(key, metadata);
45666
+ }
45667
+ });
45662
45668
  snapshotFromMemoryIngest = await ingestAndBroadcastFunc();
45663
45669
  })();
45664
45670
  for (const key of keysToReviveAsArray) {
@@ -51498,7 +51504,7 @@
51498
51504
  const nullCheck = `json_extract("${alias}".data, '${leftPath}') ${operator === 'IN' ? 'IS' : 'IS NOT'} ?`;
51499
51505
  //if we only have a null in/nin then dont add the IN (y, z, ...)
51500
51506
  if (valueBinding.length > 0) {
51501
- sql = `json_extract("${alias}".data, '${leftPath}') ${isCaseSensitive === true ? '' : `COLLATE NOCASE`} ${operator} ${questionSql} ${includesNull ? `OR ${nullCheck}` : ''}`;
51507
+ sql = `json_extract("${alias}".data, '${leftPath}')${isCaseSensitive === true ? '' : ` COLLATE NOCASE`} ${operator} ${questionSql} ${includesNull ? `OR ${nullCheck}` : ''}`;
51502
51508
  }
51503
51509
  else {
51504
51510
  sql = `${includesNull ? nullCheck : ''}`;
@@ -51516,7 +51522,7 @@
51516
51522
  sql = `'${MultiPickListValueSeparator}' || json_extract("${alias}".data, '${leftPath}') || '${MultiPickListValueSeparator}' ${operator} ${questionSql} COLLATE NOCASE`;
51517
51523
  }
51518
51524
  else {
51519
- sql = `json_extract("${alias}".data, '${leftPath}') ${operator} ${questionSql} ${isCaseSensitive === true ? '' : `COLLATE NOCASE`}`;
51525
+ sql = `json_extract("${alias}".data, '${leftPath}') ${operator} ${questionSql}${isCaseSensitive === true ? '' : ` COLLATE NOCASE`}`;
51520
51526
  }
51521
51527
  binding.push(...valueBinding);
51522
51528
  }
@@ -51704,7 +51710,7 @@
51704
51710
  }
51705
51711
  else {
51706
51712
  // predicate on a path
51707
- const left = `AND json_extract("${join.to}".data, '${condition.leftPath}')`;
51713
+ const left = ` AND json_extract("${join.to}".data, '${condition.leftPath}')`;
51708
51714
  const right = `json_extract("${join.alias}".data, '${condition.rightPath}')`;
51709
51715
  joined_sql = `${left} = ${right}`;
51710
51716
  }
@@ -51716,7 +51722,7 @@
51716
51722
  joinAccumulator += `
51717
51723
  ${join.type} JOIN lds_data "${join.alias}"
51718
51724
  ON "${join.alias}".key like 'UiApi::RecordRepresentation:%'
51719
- AND ${formattedJoinCondition}
51725
+ AND${formattedJoinCondition}
51720
51726
  `;
51721
51727
  return joinAccumulator;
51722
51728
  }, '');
@@ -52404,6 +52410,15 @@
52404
52410
  type: 'INNER',
52405
52411
  to: 'ServiceAppointment',
52406
52412
  conditions: [
52413
+ {
52414
+ type: PredicateType.single,
52415
+ alias: 'ServiceAppointment_AssignedResource',
52416
+ leftPath: '$.apiName',
52417
+ operator: '=',
52418
+ value: 'AssignedResource',
52419
+ dataType: 'String',
52420
+ isCaseSensitive: true,
52421
+ },
52407
52422
  {
52408
52423
  leftPath: '$.id',
52409
52424
  rightPath: '$.fields.ServiceAppointmentId.value',
@@ -52416,6 +52431,15 @@
52416
52431
  type: 'INNER',
52417
52432
  to: 'ServiceAppointment_AssignedResource',
52418
52433
  conditions: [
52434
+ {
52435
+ type: PredicateType.single,
52436
+ alias: 'ServiceAppointment_AssignedResource_ServiceResource',
52437
+ leftPath: '$.apiName',
52438
+ operator: '=',
52439
+ value: 'ServiceResource',
52440
+ dataType: 'String',
52441
+ isCaseSensitive: true,
52442
+ },
52419
52443
  {
52420
52444
  leftPath: '$.fields.ServiceResourceId.value',
52421
52445
  rightPath: '$.id',
@@ -52427,6 +52451,7 @@
52427
52451
  operator: '=',
52428
52452
  value: settings.userId,
52429
52453
  dataType: 'String',
52454
+ isCaseSensitive: true,
52430
52455
  },
52431
52456
  ],
52432
52457
  apiName: 'ServiceResource',
@@ -59883,7 +59908,7 @@
59883
59908
  id: '@salesforce/lds-network-adapter',
59884
59909
  instrument: instrument$1,
59885
59910
  });
59886
- // version: 1.123.0-0ef754c53
59911
+ // version: 1.123.2-37e7786b5
59887
59912
 
59888
59913
  const { create: create$2, keys: keys$2 } = Object;
59889
59914
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -74148,7 +74173,7 @@
74148
74173
  configuration: { ...configurationForGraphQLAdapters },
74149
74174
  instrument,
74150
74175
  });
74151
- // version: 1.123.0-d2a492f6b
74176
+ // version: 1.123.2-38c81ff00
74152
74177
 
74153
74178
  // On core the unstable adapters are re-exported with different names,
74154
74179
 
@@ -76277,7 +76302,7 @@
76277
76302
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
76278
76303
  graphQLImperative = ldsAdapter;
76279
76304
  });
76280
- // version: 1.123.0-d2a492f6b
76305
+ // version: 1.123.2-38c81ff00
76281
76306
 
76282
76307
  var gqlApi = /*#__PURE__*/Object.freeze({
76283
76308
  __proto__: null,
@@ -76976,4 +77001,4 @@
76976
77001
  Object.defineProperty(exports, '__esModule', { value: true });
76977
77002
 
76978
77003
  }));
76979
- // version: 1.123.0-0ef754c53
77004
+ // version: 1.123.2-37e7786b5
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.123.0",
3
+ "version": "1.123.2",
4
4
  "license": "SEE LICENSE IN LICENSE.txt",
5
5
  "description": "",
6
6
  "main": "dist/standalone/umd/lds-worker-api.js",