@salesforce/lds-worker-api 1.110.1 → 1.111.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.
@@ -730,6 +730,7 @@ function createPrimingSession(config) {
730
730
  }
731
731
  return {
732
732
  enqueue: session.enqueue.bind(session),
733
+ cancel: session.cancel.bind(session),
733
734
  };
734
735
  }
735
736
 
@@ -743,4 +744,4 @@ if (process.env.NODE_ENV !== 'production') {
743
744
  }
744
745
 
745
746
  export { createPrimingSession, draftManager, draftQueue, executeAdapter, executeMutatingAdapter, getImperativeAdapterNames, invokeAdapter, invokeAdapterWithDraftToReplace, invokeAdapterWithMetadata, nimbusDraftQueue, setMetadataTTL, setUiApiRecordTTL, subscribeToAdapter };
746
- // version: 1.110.1-cc1242727
747
+ // version: 1.111.0-f30e5e921
@@ -3,7 +3,7 @@ interface PrimingError {
3
3
  code: ErrorCode;
4
4
  message: string;
5
5
  }
6
- type ErrorCode = 'precondition-error' | 'not-found' | 'service-unavailable' | 'unknown';
6
+ type ErrorCode = 'precondition-error' | 'not-found' | 'service-unavailable' | 'canceled' | 'unknown';
7
7
  interface PrimingEventHandler {
8
8
  onError?: (error: PrimingError) => void;
9
9
  onPrimed?: (ids: string[]) => void;
@@ -15,5 +15,6 @@ export interface PrimingSessionConfig {
15
15
  }
16
16
  export declare function createPrimingSession(config: PrimingSessionConfig): {
17
17
  enqueue: (work: PrimingWork) => Promise<void>;
18
+ cancel: () => void;
18
19
  };
19
20
  export {};