@salesforce/lds-worker-api 1.245.0 → 1.247.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/sfdc/es/ldsWorkerApi.js +117 -24
- package/dist/sfdc/es/types/cachePurging.d.ts +13 -1
- package/dist/sfdc/es/types/main.d.ts +2 -2
- package/dist/standalone/es/lds-worker-api.js +5695 -4856
- package/dist/standalone/es/types/cachePurging.d.ts +13 -1
- package/dist/standalone/es/types/main.d.ts +2 -2
- package/dist/standalone/umd/lds-worker-api.js +5695 -4855
- package/dist/standalone/umd/types/cachePurging.d.ts +13 -1
- package/dist/standalone/umd/types/main.d.ts +2 -2
- package/package.json +3 -3
|
@@ -26,13 +26,25 @@ export type ProgressUpdateCallback = (progess: EvictProgress) => void;
|
|
|
26
26
|
* @param recordIds record id array
|
|
27
27
|
* @onProgressUpdate call back to report evict progress
|
|
28
28
|
*
|
|
29
|
-
* @returns
|
|
29
|
+
* @returns evictId, call cancelEviction with it to abort the eviction.
|
|
30
30
|
*
|
|
31
31
|
* The record will not be purged if the record has draft.
|
|
32
32
|
*/
|
|
33
33
|
export declare function evictCacheRecordsByIds(recordIds: string[], onProgressUpdate: ProgressUpdateCallback): string;
|
|
34
|
+
/**
|
|
35
|
+
* Purging the db entries which passed expired time by specified days
|
|
36
|
+
* from durable store.
|
|
37
|
+
* @param expiredByDays
|
|
38
|
+
* @param onProgressUpdate
|
|
39
|
+
*
|
|
40
|
+
* @returns an evictId, call cancelEviction with it to abort the eviction.
|
|
41
|
+
*
|
|
42
|
+
* Important: records with draft, objectInfo entries will not be purged even expired by the specified days.
|
|
43
|
+
*/
|
|
44
|
+
export declare function evictExpiredCacheEntries(expiredByDays: number, onProgressUpdate: ProgressUpdateCallback): string;
|
|
34
45
|
/**
|
|
35
46
|
* Cancel the eviction by specified id.
|
|
47
|
+
* Signal to cancel the eviction if the eviction is going on.
|
|
36
48
|
* @param evictionId
|
|
37
49
|
*/
|
|
38
50
|
export declare function cancelEviction(evictionId: string): void;
|
|
@@ -5,5 +5,5 @@ import { draftQueue, draftManager } from './draftQueueImplementation';
|
|
|
5
5
|
import { setUiApiRecordTTL, setMetadataTTL } from './ttl';
|
|
6
6
|
import { registerReportObserver } from '@salesforce/lds-runtime-mobile';
|
|
7
7
|
import { createPrimingSession } from './primingApi';
|
|
8
|
-
import { evictCacheRecordsByIds, cancelEviction } from './cachePurging';
|
|
9
|
-
export { subscribeToAdapter, invokeAdapter, invokeAdapterWithMetadata, invokeAdapterWithDraftToReplace, executeAdapter, executeMutatingAdapter, nimbusDraftQueue, draftQueue, draftManager, setUiApiRecordTTL, setMetadataTTL, registerReportObserver, getImperativeAdapterNames, createPrimingSession, evictCacheRecordsByIds, cancelEviction, };
|
|
8
|
+
import { evictCacheRecordsByIds, evictExpiredCacheEntries, cancelEviction } from './cachePurging';
|
|
9
|
+
export { subscribeToAdapter, invokeAdapter, invokeAdapterWithMetadata, invokeAdapterWithDraftToReplace, executeAdapter, executeMutatingAdapter, nimbusDraftQueue, draftQueue, draftManager, setUiApiRecordTTL, setMetadataTTL, registerReportObserver, getImperativeAdapterNames, createPrimingSession, evictCacheRecordsByIds, evictExpiredCacheEntries, cancelEviction, };
|