@salesforce/lds-runtime-mobile 1.365.0 → 1.367.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.
@@ -20,6 +20,7 @@ export declare class QuickActionExecutionRepresentationHandler extends AbstractQ
20
20
  private readonly objectInfoService;
21
21
  private readonly getRecord;
22
22
  handlerId: string;
23
+ private readonly instrumentation;
23
24
  constructor(getLuvio: () => Luvio, draftRecordService: UiApiDraftRecordService, draftQueue: DraftQueue, networkAdapter: NetworkAdapter, isDraftId: (targetId: string) => boolean, sideEffectService: SideEffectService, objectInfoService: ObjectInfoService, getRecord: Adapter<GetRecordConfig, RecordRepresentation>);
24
25
  draftActionToSideEffects(queueEntry: DraftAction<PerformQuickActionResourceRequest, QuickActionExecutionRepresentation>): Promise<SideEffect[]>;
25
26
  getIdFromRequest(request: ResourceRequest): Promise<string>;
@@ -28,6 +29,7 @@ export declare class QuickActionExecutionRepresentationHandler extends AbstractQ
28
29
  buildCacheKeysFromResponse(_response: QuickActionExecutionRepresentation): DurableStoreKeyMetadataMap;
29
30
  synchronousIngest(response: QuickActionExecutionRepresentation): void;
30
31
  handleActionCompleted(action: CompletedDraftAction<ResourceRequest, QuickActionExecutionRepresentation>, queueOperations: QueueOperation[]): Promise<void>;
32
+ private fetchRecordIntoStoreFromCompletedAction;
31
33
  private allFields;
32
34
  mergeRequestBody<T>(): T;
33
35
  }
@@ -1,7 +1,7 @@
1
1
  import type { QueryInstrumentation } from '../graphql/instrumentLimits';
2
2
  export declare const O11Y_NAMESPACE_LDS_MOBILE = "lds-mobile";
3
3
  export declare const DRAFT_QUEUE_TOTAL_MERGE_ACTIONS_CALLS = "draft-queue-total-mergeActions-calls";
4
- export declare const ldsMobileInstrumentation: import("o11y/dist/modules/o11y/client/interfaces").Instrumentation;
4
+ export declare const ldsMobileInstrumentation: any;
5
5
  export declare function reportGraphqlQueryParseError(err: unknown): void;
6
6
  export declare function reportGraphqlSqlEvalPreconditionError(err: unknown): void;
7
7
  export declare function reportGraphqlCreateSnapshotError(err: unknown): void;
@@ -0,0 +1 @@
1
+ export declare function initializeOneStore(): void;
@@ -0,0 +1,3 @@
1
+ import { IFetchService } from '@luvio/service-fetch-network/v1';
2
+ import { type ServiceDescriptor } from '@luvio/utils';
3
+ export declare function buildNimbusFetchServiceDescriptor(): ServiceDescriptor<IFetchService, 'fetch', '1.0'>;
@@ -6,7 +6,7 @@ import type { PrimingStore } from './PrimingStore';
6
6
  import type { LdsRecordRefresher } from './LdsRecordRefresher';
7
7
  import type { ObservabilityContext } from '@salesforce/nimbus-plugin-lds';
8
8
  import { EventEmitter } from './Emitter';
9
- export declare const instrumentation: import("o11y/dist/modules/o11y/client/interfaces").Instrumentation;
9
+ export declare const instrumentation: any;
10
10
  export interface PrimingSessionConfig {
11
11
  store: PrimingStore;
12
12
  recordLoader: RecordLoader;
@@ -15,7 +15,10 @@ export interface Runtime {
15
15
  }) => PrimingSession;
16
16
  nimbusSqliteStore: NimbusSqliteStore;
17
17
  }
18
+ export type RuntimeConfig = {
19
+ primeUser?: boolean;
20
+ };
18
21
  /**
19
22
  * This returns the LDS on Mobile Runtime singleton object.
20
23
  */
21
- export declare function getRuntime(): Runtime;
24
+ export declare function getRuntime({ primeUser }?: RuntimeConfig): Runtime;
@@ -1,7 +1,7 @@
1
1
  import { SideEffect } from '../drafts/sideEffects';
2
2
  import type { CreateSideEffectHook, DeleteSideEffectHook, UpdateSideEffectHook } from '../drafts/records/actionHandlers/SideEffectHook';
3
3
  import { DurableRecordStore } from '../durableStore/DurableRecordStore';
4
- export declare const instrumentation: import("o11y/dist/modules/o11y/client/interfaces").Instrumentation;
4
+ export declare const instrumentation: any;
5
5
  export declare class ProductConsumedCreatedHook implements CreateSideEffectHook {
6
6
  on: 'post';
7
7
  apiName: string;