@salesforce/lds-worker-api 1.272.0 → 1.273.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.
@@ -1034,4 +1034,4 @@ if (process.env.NODE_ENV !== 'production') {
1034
1034
  }
1035
1035
 
1036
1036
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1037
- // version: 1.272.0-61ac36df4
1037
+ // version: 1.273.0-f97941e01
@@ -4144,7 +4144,7 @@ function withDefaultLuvio(callback) {
4144
4144
  }
4145
4145
  callbacks.push(callback);
4146
4146
  }
4147
- // version: 1.272.0-61ac36df4
4147
+ // version: 1.273.0-f97941e01
4148
4148
 
4149
4149
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4150
4150
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15652,7 +15652,7 @@ function gql(literals, ...subs) {
15652
15652
  }
15653
15653
  return superResult;
15654
15654
  }
15655
- // version: 1.272.0-61ac36df4
15655
+ // version: 1.273.0-f97941e01
15656
15656
 
15657
15657
  function unwrap(data) {
15658
15658
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16577,7 +16577,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16577
16577
  const { apiFamily, name } = metadata;
16578
16578
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16579
16579
  }
16580
- // version: 1.272.0-61ac36df4
16580
+ // version: 1.273.0-f97941e01
16581
16581
 
16582
16582
  /**
16583
16583
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -17762,7 +17762,7 @@ function getTypeCacheKeys$W$1(rootKeySet, luvio, input, fullPathFactory) {
17762
17762
  getTypeCacheKeys$X$1(rootKeySet, luvio, input.displayColumns[i], () => '');
17763
17763
  }
17764
17764
  }
17765
- const notifyUpdateAvailableFactory$4 = (luvio) => {
17765
+ const notifyUpdateAvailableFactory$5 = (luvio) => {
17766
17766
  return function notifyListInfoUpdateAvailable(configs) {
17767
17767
  const keys = configs.map(c => keyBuilder$21(luvio, c));
17768
17768
  return luvio.notifyStoreUpdateAvailable(keys);
@@ -18375,7 +18375,7 @@ function getTypeCacheKeys$S$1(rootKeySet, luvio, input, fullPathFactory) {
18375
18375
  getTypeCacheKeys$V$1(rootKeySet, luvio, input_fields[key], () => rootKey + "__fields" + "__" + key);
18376
18376
  }
18377
18377
  }
18378
- const notifyUpdateAvailableFactory$3 = (luvio) => {
18378
+ const notifyUpdateAvailableFactory$4 = (luvio) => {
18379
18379
  return function notifyRecordUpdateAvailable(configs) {
18380
18380
  const keys = configs.map(c => keyBuilder$20(luvio, c));
18381
18381
  return luvio.notifyStoreUpdateAvailable(keys);
@@ -22021,6 +22021,12 @@ function getTypeCacheKeys$R$1(rootKeySet, luvio, input, fullPathFactory) {
22021
22021
  getTypeCacheKeys$U$1(rootKeySet, luvio, input.records[i]);
22022
22022
  }
22023
22023
  }
22024
+ const notifyUpdateAvailableFactory$3 = (luvio) => {
22025
+ return function notifyListRecordCollectionUpdateAvailable(configs) {
22026
+ const keys = configs.map(c => keyBuilder$1Z(luvio, c));
22027
+ return luvio.notifyStoreUpdateAvailable(keys);
22028
+ };
22029
+ };
22024
22030
 
22025
22031
  const VERSION$15$1 = "cf8d2eb042188974da26ffe6618cfd07";
22026
22032
  const RepresentationType$Q = 'ListUiRepresentation';
@@ -25348,9 +25354,24 @@ function getFieldsFromLayoutMap(layoutMap, objectInfo) {
25348
25354
  }
25349
25355
  return dedupe$2(fields).sort();
25350
25356
  }
25357
+ /**
25358
+ * W-14696113
25359
+ * Merge fields into optionalFields and return the whole list.
25360
+ * @param {string[]} fields
25361
+ * @param {string[]} [optionalFields]
25362
+ */
25363
+ function convertToImplicitFields(fields, optionalFields) {
25364
+ const implicitFields = optionalFields || [];
25365
+ fields.forEach((field) => {
25366
+ if (!(field in implicitFields))
25367
+ implicitFields.push(field);
25368
+ });
25369
+ return implicitFields;
25370
+ }
25351
25371
  function getRecordForLayoutableEntities(luvio, refresh, recordId, layoutMap, objectInfo, configOptionalFields) {
25352
25372
  const fields = getFieldsFromLayoutMap(layoutMap, objectInfo);
25353
- return getRecord$1(luvio, refresh, recordId, fields, configOptionalFields);
25373
+ const implicitFields = convertToImplicitFields(fields, configOptionalFields);
25374
+ return getRecord$1(luvio, refresh, recordId, [], implicitFields);
25354
25375
  }
25355
25376
  function getRecordForNonLayoutableEntities(luvio, adapterContext, refresh, recordId, objectInfo, configOptionalFields, configFields) {
25356
25377
  const fields = keys$a(configFields ? configFields : {}).map((key) => `${objectInfo.apiName}.${key}`);
@@ -25765,7 +25786,7 @@ const factory$f = (luvio) => {
25765
25786
 
25766
25787
  const notifyUpdateAvailableFactory$1 = (luvio) => {
25767
25788
  return function notifyListInfoUpdateAvailable(configs) {
25768
- const generated_notifyUpdateAvailable = notifyUpdateAvailableFactory$4(luvio);
25789
+ const generated_notifyUpdateAvailable = notifyUpdateAvailableFactory$5(luvio);
25769
25790
  // Taken from getUiApiListInfoByListViewApiNameAndObjectApiName/keyBuilder artifact
25770
25791
  // We automatically set the type based on the listViewApiName, and we need to do the same
25771
25792
  // here for key matching and validation
@@ -43146,15 +43167,16 @@ withDefaultLuvio((luvio) => {
43146
43167
  allowFunction: instrumentation$3.getRecordNotifyChangeAllowed,
43147
43168
  dropFunction: instrumentation$3.getRecordNotifyChangeDropped,
43148
43169
  });
43149
- throttle(60, 60000, createLDSAdapter(luvio, 'notifyRecordUpdateAvailable', notifyUpdateAvailableFactory$3), {
43170
+ throttle(60, 60000, createLDSAdapter(luvio, 'notifyRecordUpdateAvailable', notifyUpdateAvailableFactory$4), {
43150
43171
  allowFunction: instrumentation$3.notifyRecordUpdateAvailableAllowed,
43151
43172
  dropFunction: instrumentation$3.notifyRecordUpdateAvailableDropped,
43152
43173
  });
43153
43174
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$2));
43154
43175
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
43176
+ throttle(60, 60000, createLDSAdapter(luvio, 'notifyListRecordCollectionUpdateAvailable', notifyUpdateAvailableFactory$3));
43155
43177
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
43156
43178
  });
43157
- // version: 1.272.0-579ff1ba0
43179
+ // version: 1.273.0-daa4f720d
43158
43180
 
43159
43181
  var ldsIdempotencyWriteDisabled = {
43160
43182
  isOpen: function (e) {
@@ -61086,7 +61108,7 @@ register$1({
61086
61108
  id: '@salesforce/lds-network-adapter',
61087
61109
  instrument: instrument$2,
61088
61110
  });
61089
- // version: 1.272.0-61ac36df4
61111
+ // version: 1.273.0-f97941e01
61090
61112
 
61091
61113
  const { create: create$3, keys: keys$3 } = Object;
61092
61114
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -79481,7 +79503,7 @@ register$1({
79481
79503
  configuration: { ...configurationForGraphQLAdapters$1 },
79482
79504
  instrument: instrument$1,
79483
79505
  });
79484
- // version: 1.272.0-579ff1ba0
79506
+ // version: 1.273.0-daa4f720d
79485
79507
 
79486
79508
  // On core the unstable adapters are re-exported with different names,
79487
79509
  // we want to match them here.
@@ -81735,7 +81757,7 @@ withDefaultLuvio((luvio) => {
81735
81757
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
81736
81758
  graphQLImperative = ldsAdapter;
81737
81759
  });
81738
- // version: 1.272.0-579ff1ba0
81760
+ // version: 1.273.0-daa4f720d
81739
81761
 
81740
81762
  var gqlApi = /*#__PURE__*/Object.freeze({
81741
81763
  __proto__: null,
@@ -82433,7 +82455,7 @@ const callbacks$1 = [];
82433
82455
  function register(r) {
82434
82456
  callbacks$1.forEach((callback) => callback(r));
82435
82457
  }
82436
- // version: 1.272.0-61ac36df4
82458
+ // version: 1.273.0-f97941e01
82437
82459
 
82438
82460
  /**
82439
82461
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -87338,4 +87360,4 @@ const { luvio } = getRuntime();
87338
87360
  setDefaultLuvio({ luvio });
87339
87361
 
87340
87362
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
87341
- // version: 1.272.0-61ac36df4
87363
+ // version: 1.273.0-f97941e01
@@ -4150,7 +4150,7 @@
4150
4150
  }
4151
4151
  callbacks.push(callback);
4152
4152
  }
4153
- // version: 1.272.0-61ac36df4
4153
+ // version: 1.273.0-f97941e01
4154
4154
 
4155
4155
  // TODO [TD-0081508]: once that TD is fulfilled we can probably change this file
4156
4156
  function instrumentAdapter$1(createFunction, _metadata) {
@@ -15658,7 +15658,7 @@
15658
15658
  }
15659
15659
  return superResult;
15660
15660
  }
15661
- // version: 1.272.0-61ac36df4
15661
+ // version: 1.273.0-f97941e01
15662
15662
 
15663
15663
  function unwrap(data) {
15664
15664
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16583,7 +16583,7 @@
16583
16583
  const { apiFamily, name } = metadata;
16584
16584
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16585
16585
  }
16586
- // version: 1.272.0-61ac36df4
16586
+ // version: 1.273.0-f97941e01
16587
16587
 
16588
16588
  /**
16589
16589
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -17768,7 +17768,7 @@
17768
17768
  getTypeCacheKeys$X$1(rootKeySet, luvio, input.displayColumns[i], () => '');
17769
17769
  }
17770
17770
  }
17771
- const notifyUpdateAvailableFactory$4 = (luvio) => {
17771
+ const notifyUpdateAvailableFactory$5 = (luvio) => {
17772
17772
  return function notifyListInfoUpdateAvailable(configs) {
17773
17773
  const keys = configs.map(c => keyBuilder$21(luvio, c));
17774
17774
  return luvio.notifyStoreUpdateAvailable(keys);
@@ -18381,7 +18381,7 @@
18381
18381
  getTypeCacheKeys$V$1(rootKeySet, luvio, input_fields[key], () => rootKey + "__fields" + "__" + key);
18382
18382
  }
18383
18383
  }
18384
- const notifyUpdateAvailableFactory$3 = (luvio) => {
18384
+ const notifyUpdateAvailableFactory$4 = (luvio) => {
18385
18385
  return function notifyRecordUpdateAvailable(configs) {
18386
18386
  const keys = configs.map(c => keyBuilder$20(luvio, c));
18387
18387
  return luvio.notifyStoreUpdateAvailable(keys);
@@ -22027,6 +22027,12 @@
22027
22027
  getTypeCacheKeys$U$1(rootKeySet, luvio, input.records[i]);
22028
22028
  }
22029
22029
  }
22030
+ const notifyUpdateAvailableFactory$3 = (luvio) => {
22031
+ return function notifyListRecordCollectionUpdateAvailable(configs) {
22032
+ const keys = configs.map(c => keyBuilder$1Z(luvio, c));
22033
+ return luvio.notifyStoreUpdateAvailable(keys);
22034
+ };
22035
+ };
22030
22036
 
22031
22037
  const VERSION$15$1 = "cf8d2eb042188974da26ffe6618cfd07";
22032
22038
  const RepresentationType$Q = 'ListUiRepresentation';
@@ -25354,9 +25360,24 @@
25354
25360
  }
25355
25361
  return dedupe$2(fields).sort();
25356
25362
  }
25363
+ /**
25364
+ * W-14696113
25365
+ * Merge fields into optionalFields and return the whole list.
25366
+ * @param {string[]} fields
25367
+ * @param {string[]} [optionalFields]
25368
+ */
25369
+ function convertToImplicitFields(fields, optionalFields) {
25370
+ const implicitFields = optionalFields || [];
25371
+ fields.forEach((field) => {
25372
+ if (!(field in implicitFields))
25373
+ implicitFields.push(field);
25374
+ });
25375
+ return implicitFields;
25376
+ }
25357
25377
  function getRecordForLayoutableEntities(luvio, refresh, recordId, layoutMap, objectInfo, configOptionalFields) {
25358
25378
  const fields = getFieldsFromLayoutMap(layoutMap, objectInfo);
25359
- return getRecord$1(luvio, refresh, recordId, fields, configOptionalFields);
25379
+ const implicitFields = convertToImplicitFields(fields, configOptionalFields);
25380
+ return getRecord$1(luvio, refresh, recordId, [], implicitFields);
25360
25381
  }
25361
25382
  function getRecordForNonLayoutableEntities(luvio, adapterContext, refresh, recordId, objectInfo, configOptionalFields, configFields) {
25362
25383
  const fields = keys$a(configFields ? configFields : {}).map((key) => `${objectInfo.apiName}.${key}`);
@@ -25771,7 +25792,7 @@
25771
25792
 
25772
25793
  const notifyUpdateAvailableFactory$1 = (luvio) => {
25773
25794
  return function notifyListInfoUpdateAvailable(configs) {
25774
- const generated_notifyUpdateAvailable = notifyUpdateAvailableFactory$4(luvio);
25795
+ const generated_notifyUpdateAvailable = notifyUpdateAvailableFactory$5(luvio);
25775
25796
  // Taken from getUiApiListInfoByListViewApiNameAndObjectApiName/keyBuilder artifact
25776
25797
  // We automatically set the type based on the listViewApiName, and we need to do the same
25777
25798
  // here for key matching and validation
@@ -43152,15 +43173,16 @@
43152
43173
  allowFunction: instrumentation$3.getRecordNotifyChangeAllowed,
43153
43174
  dropFunction: instrumentation$3.getRecordNotifyChangeDropped,
43154
43175
  });
43155
- throttle(60, 60000, createLDSAdapter(luvio, 'notifyRecordUpdateAvailable', notifyUpdateAvailableFactory$3), {
43176
+ throttle(60, 60000, createLDSAdapter(luvio, 'notifyRecordUpdateAvailable', notifyUpdateAvailableFactory$4), {
43156
43177
  allowFunction: instrumentation$3.notifyRecordUpdateAvailableAllowed,
43157
43178
  dropFunction: instrumentation$3.notifyRecordUpdateAvailableDropped,
43158
43179
  });
43159
43180
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyListViewSummaryUpdateAvailable', notifyUpdateAvailableFactory$2));
43160
43181
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyListInfoUpdateAvailable', notifyUpdateAvailableFactory$1));
43182
+ throttle(60, 60000, createLDSAdapter(luvio, 'notifyListRecordCollectionUpdateAvailable', notifyUpdateAvailableFactory$3));
43161
43183
  throttle(60, 60000, createLDSAdapter(luvio, 'notifyQuickActionDefaultsUpdateAvailable', notifyUpdateAvailableFactory));
43162
43184
  });
43163
- // version: 1.272.0-579ff1ba0
43185
+ // version: 1.273.0-daa4f720d
43164
43186
 
43165
43187
  var ldsIdempotencyWriteDisabled = {
43166
43188
  isOpen: function (e) {
@@ -61092,7 +61114,7 @@
61092
61114
  id: '@salesforce/lds-network-adapter',
61093
61115
  instrument: instrument$2,
61094
61116
  });
61095
- // version: 1.272.0-61ac36df4
61117
+ // version: 1.273.0-f97941e01
61096
61118
 
61097
61119
  const { create: create$3, keys: keys$3 } = Object;
61098
61120
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -79487,7 +79509,7 @@
79487
79509
  configuration: { ...configurationForGraphQLAdapters$1 },
79488
79510
  instrument: instrument$1,
79489
79511
  });
79490
- // version: 1.272.0-579ff1ba0
79512
+ // version: 1.273.0-daa4f720d
79491
79513
 
79492
79514
  // On core the unstable adapters are re-exported with different names,
79493
79515
  // we want to match them here.
@@ -81741,7 +81763,7 @@
81741
81763
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
81742
81764
  graphQLImperative = ldsAdapter;
81743
81765
  });
81744
- // version: 1.272.0-579ff1ba0
81766
+ // version: 1.273.0-daa4f720d
81745
81767
 
81746
81768
  var gqlApi = /*#__PURE__*/Object.freeze({
81747
81769
  __proto__: null,
@@ -82439,7 +82461,7 @@
82439
82461
  function register(r) {
82440
82462
  callbacks$1.forEach((callback) => callback(r));
82441
82463
  }
82442
- // version: 1.272.0-61ac36df4
82464
+ // version: 1.273.0-f97941e01
82443
82465
 
82444
82466
  /**
82445
82467
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -87362,4 +87384,4 @@
87362
87384
  exports.subscribeToAdapter = subscribeToAdapter;
87363
87385
 
87364
87386
  }));
87365
- // version: 1.272.0-61ac36df4
87387
+ // version: 1.273.0-f97941e01
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.272.0",
3
+ "version": "1.273.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.272.0",
39
- "@salesforce/lds-adapters-uiapi": "^1.272.0",
40
- "@salesforce/lds-default-luvio": "^1.272.0",
41
- "@salesforce/lds-drafts": "^1.272.0",
42
- "@salesforce/lds-graphql-parser": "^1.272.0",
43
- "@salesforce/lds-luvio-engine": "^1.272.0",
44
- "@salesforce/lds-priming": "^1.272.0",
45
- "@salesforce/lds-runtime-mobile": "^1.272.0",
46
- "@salesforce/nimbus-plugin-lds": "^1.272.0",
38
+ "@salesforce/lds-adapters-graphql": "^1.273.0",
39
+ "@salesforce/lds-adapters-uiapi": "^1.273.0",
40
+ "@salesforce/lds-default-luvio": "^1.273.0",
41
+ "@salesforce/lds-drafts": "^1.273.0",
42
+ "@salesforce/lds-graphql-parser": "^1.273.0",
43
+ "@salesforce/lds-luvio-engine": "^1.273.0",
44
+ "@salesforce/lds-priming": "^1.273.0",
45
+ "@salesforce/lds-runtime-mobile": "^1.273.0",
46
+ "@salesforce/nimbus-plugin-lds": "^1.273.0",
47
47
  "ajv": "^8.11.0",
48
48
  "glob": "^7.1.5",
49
49
  "nimbus-types": "^2.0.0-alpha1",