@salesforce/lds-runtime-mobile 1.247.0 → 1.249.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.
- package/dist/main.js +437 -217
- package/dist/types/priming/SqlitePrimingStore.d.ts +0 -5
- package/dist/types/utils/ObjectInfoService.d.ts +5 -0
- package/package.json +1 -1
- package/sfdc/main.js +437 -217
- package/sfdc/types/priming/SqlitePrimingStore.d.ts +0 -5
- package/sfdc/types/utils/ObjectInfoService.d.ts +5 -0
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import type { PrimingStore, RecordWithMetadata, WriteResult } from '@salesforce/lds-priming';
|
|
2
2
|
import type { Luvio } from '@luvio/engine';
|
|
3
|
-
import type { ObjectInfoDirectoryRepresentation, ObjectInfoRepresentation } from '@salesforce/lds-adapters-uiapi';
|
|
4
3
|
import type { SqliteStore } from '@salesforce/lds-store-sql';
|
|
5
4
|
export declare class SqlitePrimingStore implements PrimingStore {
|
|
6
5
|
private readonly getLuvio;
|
|
@@ -9,8 +8,4 @@ export declare class SqlitePrimingStore implements PrimingStore {
|
|
|
9
8
|
readRecords(ids: string[]): Promise<RecordWithMetadata[]>;
|
|
10
9
|
writeRecords(records: RecordWithMetadata[], overwrite: boolean): Promise<WriteResult>;
|
|
11
10
|
private writeBatch;
|
|
12
|
-
readObjectInfoDirectory(): Promise<ObjectInfoDirectoryRepresentation | undefined>;
|
|
13
|
-
readObjectApiNames(): Promise<Set<string>>;
|
|
14
|
-
writeObjectInfoDirectory(directory: ObjectInfoDirectoryRepresentation): Promise<void>;
|
|
15
|
-
writeObjectInfos(objectInfos: ObjectInfoRepresentation[]): Promise<void>;
|
|
16
11
|
}
|
|
@@ -10,6 +10,9 @@ type ObjectInfoDirectoryConfig = Parameters<ObjectInfoDirectoryAdapterReturn>[0]
|
|
|
10
10
|
export type ObjectInfoMap = {
|
|
11
11
|
[apiName: string]: ObjectInfoRepresentation;
|
|
12
12
|
};
|
|
13
|
+
interface ObjectInfoStatus {
|
|
14
|
+
expiration: number;
|
|
15
|
+
}
|
|
13
16
|
export declare class ObjectInfoService {
|
|
14
17
|
private getObjectInfoAdapter;
|
|
15
18
|
private getObjectInfosAdapter;
|
|
@@ -31,8 +34,10 @@ export declare class ObjectInfoService {
|
|
|
31
34
|
getObjectInfos(apiNames: string[]): Promise<ObjectInfoMap>;
|
|
32
35
|
getObjectInfoDirectory(): Promise<ObjectInfoDirectoryRepresentation | undefined>;
|
|
33
36
|
ensureObjectInfoCached: (apiName: string, entry?: ObjectInfoRepresentation) => Promise<void>;
|
|
37
|
+
getCachedObjectInfoStatus: () => Promise<Map<string, ObjectInfoStatus>>;
|
|
34
38
|
private isObjectInfoInDurableStore;
|
|
35
39
|
private loadObjectInfoMaps;
|
|
40
|
+
private readObjectInfoDataFromDurableStore;
|
|
36
41
|
private updateObjectInfoMapping;
|
|
37
42
|
}
|
|
38
43
|
export {};
|