@salesforce/lds-worker-api 1.305.0 → 1.307.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.
@@ -1071,4 +1071,4 @@ if (process.env.NODE_ENV !== 'production') {
1071
1071
  }
1072
1072
 
1073
1073
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
1074
- // version: 1.305.0-ec970f4bea
1074
+ // version: 1.307.0-1e74878a83
@@ -4265,7 +4265,7 @@ function withDefaultLuvio(callback) {
4265
4265
  }
4266
4266
  callbacks.push(callback);
4267
4267
  }
4268
- // version: 1.305.0-ec970f4bea
4268
+ // version: 1.307.0-1e74878a83
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) {
@@ -15764,7 +15764,7 @@ function gql(literals, ...subs) {
15764
15764
  }
15765
15765
  return superResult;
15766
15766
  }
15767
- // version: 1.305.0-ec970f4bea
15767
+ // version: 1.307.0-1e74878a83
15768
15768
 
15769
15769
  function unwrap(data) {
15770
15770
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16693,7 +16693,7 @@ function createGraphQLWireAdapterConstructor(luvio, adapter, metadata, astResolv
16693
16693
  const { apiFamily, name } = metadata;
16694
16694
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16695
16695
  }
16696
- // version: 1.305.0-ec970f4bea
16696
+ // version: 1.307.0-1e74878a83
16697
16697
 
16698
16698
  /**
16699
16699
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -44798,7 +44798,7 @@ withDefaultLuvio((luvio) => {
44798
44798
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
44799
44799
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
44800
44800
  });
44801
- // version: 1.305.0-ec92f7304c
44801
+ // version: 1.307.0-1e4b921353
44802
44802
 
44803
44803
  var ldsIdempotencyWriteDisabled = {
44804
44804
  isOpen: function (e) {
@@ -51535,9 +51535,14 @@ var DraftQueueOperationType;
51535
51535
  DraftQueueOperationType["ItemCompleted"] = "completed";
51536
51536
  DraftQueueOperationType["ItemFailed"] = "failed";
51537
51537
  DraftQueueOperationType["ItemUpdated"] = "updated";
51538
+ /** @deprecated in 252. All Queue state changed events are consolidated in QueueStateChanged
51539
+ * Planned to be removed in 256 (W-16217436) */
51538
51540
  DraftQueueOperationType["QueueStarted"] = "started";
51541
+ /** @deprecated in 252. All Queue state changed events are consolidated in QueueStateChanged
51542
+ * Planned to be removed in 256 (W-16217436) */
51539
51543
  DraftQueueOperationType["QueueStopped"] = "stopped";
51540
- DraftQueueOperationType["QueueWaiting"] = "waiting";
51544
+ /** @since 252 */
51545
+ DraftQueueOperationType["QueueStateChanged"] = "queueStateChanged";
51541
51546
  })(DraftQueueOperationType || (DraftQueueOperationType = {}));
51542
51547
  /**
51543
51548
  * Converts the internal DraftAction's ResourceRequest into
@@ -51633,8 +51638,6 @@ class DraftManager {
51633
51638
  return DraftQueueOperationType.QueueStarted;
51634
51639
  case DraftQueueState.Stopped:
51635
51640
  return DraftQueueOperationType.QueueStopped;
51636
- case DraftQueueState.Waiting:
51637
- return DraftQueueOperationType.QueueWaiting;
51638
51641
  default:
51639
51642
  throw Error('Unsupported event type');
51640
51643
  }
@@ -51807,7 +51810,12 @@ class DraftManager {
51807
51810
  const managerState = await this.getQueue();
51808
51811
  let operationType, item;
51809
51812
  if (isDraftQueueStateChangeEvent(event)) {
51810
- operationType = this.draftQueueStateToOperationType(event.state);
51813
+ if (this.listenerVersion === undefined) {
51814
+ operationType = this.draftQueueStateToOperationType(event.state);
51815
+ }
51816
+ else {
51817
+ operationType = DraftQueueOperationType.QueueStateChanged;
51818
+ }
51811
51819
  }
51812
51820
  else {
51813
51821
  const { action, type } = event;
@@ -63918,7 +63926,7 @@ register$1({
63918
63926
  id: '@salesforce/lds-network-adapter',
63919
63927
  instrument: instrument$2,
63920
63928
  });
63921
- // version: 1.305.0-ec970f4bea
63929
+ // version: 1.307.0-1e74878a83
63922
63930
 
63923
63931
  const { create: create$3, keys: keys$3 } = Object;
63924
63932
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -83954,7 +83962,7 @@ register$1({
83954
83962
  configuration: { ...configurationForGraphQLAdapters$1 },
83955
83963
  instrument: instrument$1,
83956
83964
  });
83957
- // version: 1.305.0-ec92f7304c
83965
+ // version: 1.307.0-1e4b921353
83958
83966
 
83959
83967
  // On core the unstable adapters are re-exported with different names,
83960
83968
  // we want to match them here.
@@ -86210,7 +86218,7 @@ withDefaultLuvio((luvio) => {
86210
86218
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
86211
86219
  graphQLImperative = ldsAdapter;
86212
86220
  });
86213
- // version: 1.305.0-ec92f7304c
86221
+ // version: 1.307.0-1e4b921353
86214
86222
 
86215
86223
  var gqlApi = /*#__PURE__*/Object.freeze({
86216
86224
  __proto__: null,
@@ -86945,7 +86953,7 @@ const callbacks$1 = [];
86945
86953
  function register(r) {
86946
86954
  callbacks$1.forEach((callback) => callback(r));
86947
86955
  }
86948
- // version: 1.305.0-ec970f4bea
86956
+ // version: 1.307.0-1e74878a83
86949
86957
 
86950
86958
  /**
86951
86959
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -91907,4 +91915,4 @@ const { luvio } = getRuntime();
91907
91915
  setDefaultLuvio({ luvio });
91908
91916
 
91909
91917
  export { createPrimingSession, draftManager, draftQueue, evictCacheRecordsByIds, evictExpiredCacheEntries, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToMerge, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, registerReportObserver, setMetadataTTL, setUiApiRecordTTL, stopEviction, subscribeToAdapter };
91910
- // version: 1.305.0-ec970f4bea
91918
+ // version: 1.307.0-1e74878a83
@@ -4271,7 +4271,7 @@
4271
4271
  }
4272
4272
  callbacks.push(callback);
4273
4273
  }
4274
- // version: 1.305.0-ec970f4bea
4274
+ // version: 1.307.0-1e74878a83
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) {
@@ -15770,7 +15770,7 @@
15770
15770
  }
15771
15771
  return superResult;
15772
15772
  }
15773
- // version: 1.305.0-ec970f4bea
15773
+ // version: 1.307.0-1e74878a83
15774
15774
 
15775
15775
  function unwrap(data) {
15776
15776
  // The lwc-luvio bindings import a function from lwc called "unwrap".
@@ -16699,7 +16699,7 @@
16699
16699
  const { apiFamily, name } = metadata;
16700
16700
  return createGraphQLWireAdapterConstructor$1(adapter, `${apiFamily}.${name}`, luvio, astResolver);
16701
16701
  }
16702
- // version: 1.305.0-ec970f4bea
16702
+ // version: 1.307.0-1e74878a83
16703
16703
 
16704
16704
  /**
16705
16705
  * Copyright (c) 2022, Salesforce, Inc.,
@@ -44804,7 +44804,7 @@
44804
44804
  throttle(60, 60000, setupNotifyAllListRecordUpdateAvailable(luvio));
44805
44805
  throttle(60, 60000, setupNotifyAllListInfoSummaryUpdateAvailable(luvio));
44806
44806
  });
44807
- // version: 1.305.0-ec92f7304c
44807
+ // version: 1.307.0-1e4b921353
44808
44808
 
44809
44809
  var ldsIdempotencyWriteDisabled = {
44810
44810
  isOpen: function (e) {
@@ -51541,9 +51541,14 @@
51541
51541
  DraftQueueOperationType["ItemCompleted"] = "completed";
51542
51542
  DraftQueueOperationType["ItemFailed"] = "failed";
51543
51543
  DraftQueueOperationType["ItemUpdated"] = "updated";
51544
+ /** @deprecated in 252. All Queue state changed events are consolidated in QueueStateChanged
51545
+ * Planned to be removed in 256 (W-16217436) */
51544
51546
  DraftQueueOperationType["QueueStarted"] = "started";
51547
+ /** @deprecated in 252. All Queue state changed events are consolidated in QueueStateChanged
51548
+ * Planned to be removed in 256 (W-16217436) */
51545
51549
  DraftQueueOperationType["QueueStopped"] = "stopped";
51546
- DraftQueueOperationType["QueueWaiting"] = "waiting";
51550
+ /** @since 252 */
51551
+ DraftQueueOperationType["QueueStateChanged"] = "queueStateChanged";
51547
51552
  })(DraftQueueOperationType || (DraftQueueOperationType = {}));
51548
51553
  /**
51549
51554
  * Converts the internal DraftAction's ResourceRequest into
@@ -51639,8 +51644,6 @@
51639
51644
  return DraftQueueOperationType.QueueStarted;
51640
51645
  case DraftQueueState.Stopped:
51641
51646
  return DraftQueueOperationType.QueueStopped;
51642
- case DraftQueueState.Waiting:
51643
- return DraftQueueOperationType.QueueWaiting;
51644
51647
  default:
51645
51648
  throw Error('Unsupported event type');
51646
51649
  }
@@ -51813,7 +51816,12 @@
51813
51816
  const managerState = await this.getQueue();
51814
51817
  let operationType, item;
51815
51818
  if (isDraftQueueStateChangeEvent(event)) {
51816
- operationType = this.draftQueueStateToOperationType(event.state);
51819
+ if (this.listenerVersion === undefined) {
51820
+ operationType = this.draftQueueStateToOperationType(event.state);
51821
+ }
51822
+ else {
51823
+ operationType = DraftQueueOperationType.QueueStateChanged;
51824
+ }
51817
51825
  }
51818
51826
  else {
51819
51827
  const { action, type } = event;
@@ -63924,7 +63932,7 @@
63924
63932
  id: '@salesforce/lds-network-adapter',
63925
63933
  instrument: instrument$2,
63926
63934
  });
63927
- // version: 1.305.0-ec970f4bea
63935
+ // version: 1.307.0-1e74878a83
63928
63936
 
63929
63937
  const { create: create$3, keys: keys$3 } = Object;
63930
63938
  const { stringify: stringify$1, parse: parse$1 } = JSON;
@@ -83960,7 +83968,7 @@
83960
83968
  configuration: { ...configurationForGraphQLAdapters$1 },
83961
83969
  instrument: instrument$1,
83962
83970
  });
83963
- // version: 1.305.0-ec92f7304c
83971
+ // version: 1.307.0-1e4b921353
83964
83972
 
83965
83973
  // On core the unstable adapters are re-exported with different names,
83966
83974
  // we want to match them here.
@@ -86216,7 +86224,7 @@
86216
86224
  unstable_graphQL_imperative = createImperativeAdapter(luvio, createInstrumentedAdapter(ldsAdapter, adapterMetadata), adapterMetadata);
86217
86225
  graphQLImperative = ldsAdapter;
86218
86226
  });
86219
- // version: 1.305.0-ec92f7304c
86227
+ // version: 1.307.0-1e4b921353
86220
86228
 
86221
86229
  var gqlApi = /*#__PURE__*/Object.freeze({
86222
86230
  __proto__: null,
@@ -86951,7 +86959,7 @@
86951
86959
  function register(r) {
86952
86960
  callbacks$1.forEach((callback) => callback(r));
86953
86961
  }
86954
- // version: 1.305.0-ec970f4bea
86962
+ // version: 1.307.0-1e74878a83
86955
86963
 
86956
86964
  /**
86957
86965
  * Returns true if the value acts like a Promise, i.e. has a "then" function,
@@ -91932,4 +91940,4 @@
91932
91940
  exports.subscribeToAdapter = subscribeToAdapter;
91933
91941
 
91934
91942
  }));
91935
- // version: 1.305.0-ec970f4bea
91943
+ // version: 1.307.0-1e74878a83
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@salesforce/lds-worker-api",
3
- "version": "1.305.0",
3
+ "version": "1.307.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.305.0",
39
- "@salesforce/lds-adapters-uiapi": "^1.305.0",
40
- "@salesforce/lds-default-luvio": "^1.305.0",
41
- "@salesforce/lds-drafts": "^1.305.0",
42
- "@salesforce/lds-graphql-parser": "^1.305.0",
43
- "@salesforce/lds-luvio-engine": "^1.305.0",
44
- "@salesforce/lds-priming": "^1.305.0",
45
- "@salesforce/lds-runtime-mobile": "^1.305.0",
46
- "@salesforce/nimbus-plugin-lds": "^1.305.0",
38
+ "@salesforce/lds-adapters-graphql": "^1.307.0",
39
+ "@salesforce/lds-adapters-uiapi": "^1.307.0",
40
+ "@salesforce/lds-default-luvio": "^1.307.0",
41
+ "@salesforce/lds-drafts": "^1.307.0",
42
+ "@salesforce/lds-graphql-parser": "^1.307.0",
43
+ "@salesforce/lds-luvio-engine": "^1.307.0",
44
+ "@salesforce/lds-priming": "^1.307.0",
45
+ "@salesforce/lds-runtime-mobile": "^1.307.0",
46
+ "@salesforce/nimbus-plugin-lds": "^1.307.0",
47
47
  "ajv": "^8.11.0",
48
48
  "glob": "^7.1.5",
49
49
  "nimbus-types": "^2.0.0-alpha1",