@salesforce/lds-worker-api 1.130.10 → 1.131.0-dev10

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.
@@ -1,4 +1,4 @@
1
- import type { CachePolicy, LuvioAdapterEventObserver } from '@luvio/engine';
1
+ import type { AdapterRequestContext, CachePolicy, LuvioAdapterEventObserver } from '@luvio/engine';
2
2
  import type { DraftQueueItemMetadata } from '@salesforce/lds-drafts';
3
3
  import type { NativeErrorResponse } from './responses';
4
4
  import type { ObservabilityContext } from '@salesforce/lds-runtime-mobile';
@@ -31,6 +31,12 @@ interface NativeAdapterRequestContext {
31
31
  observabilityContext?: NativeObservabilityContext;
32
32
  luvioEventObserver?: NativeLuvioEventObserver;
33
33
  }
34
+ /**
35
+ * Coerces a request context passed in from native to a luvio request context
36
+ * @param nativeRequestContext request context passed in from native
37
+ * @returns Coerced luvio request context
38
+ */
39
+ export declare function buildAdapterRequestContext(nativeRequestContext: NativeAdapterRequestContext | undefined): AdapterRequestContext | undefined;
34
40
  /**
35
41
  * Executes the adapter with the given adapterId and config. Will call onSnapshot
36
42
  * callback with data or error. Returns an unsubscribe function that should