@rdlabo/ionic-angular-kit 21.4.7 → 21.4.9
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/fesm2022/rdlabo-ionic-angular-kit-offline.mjs +30 -5
- package/fesm2022/rdlabo-ionic-angular-kit-offline.mjs.map +1 -1
- package/fesm2022/rdlabo-ionic-angular-kit.mjs +106 -15
- package/fesm2022/rdlabo-ionic-angular-kit.mjs.map +1 -1
- package/package.json +1 -1
- package/types/rdlabo-ionic-angular-kit-offline.d.ts +4 -0
- package/types/rdlabo-ionic-angular-kit.d.ts +7 -0
package/package.json
CHANGED
|
@@ -434,6 +434,8 @@ declare class OfflineSessionService {
|
|
|
434
434
|
activateSession(userId: number, scopeIds: readonly number[], authSubject: string | null): Promise<void>;
|
|
435
435
|
activateSession(userId: number, scopeIds: readonly number[], authSubject: string | null, lease: OfflineSessionTransitionLease): Promise<boolean>;
|
|
436
436
|
clearActiveSession(): Promise<void>;
|
|
437
|
+
/** Immediately revoke local and remote runtime access while durable cleanup is pending. */
|
|
438
|
+
revokeAccess(): void;
|
|
437
439
|
/** Disable remote pull/replay eligibility while retaining the verified local manifest. */
|
|
438
440
|
suspendRemoteSession(): Promise<void>;
|
|
439
441
|
/**
|
|
@@ -694,6 +696,8 @@ declare class OfflineSyncService {
|
|
|
694
696
|
/** Restores local outbox visibility without enabling pull or replay transport. */
|
|
695
697
|
refreshLocalSession(): Promise<void>;
|
|
696
698
|
resetSession(): Promise<void>;
|
|
699
|
+
/** Synchronously invalidate in-flight enqueue and transport work owned by the current session. */
|
|
700
|
+
revokeSession(): void;
|
|
697
701
|
enqueue<T>(request: EnqueueOfflineCommand<T>, options?: {
|
|
698
702
|
flush?: boolean;
|
|
699
703
|
}): Promise<string>;
|
|
@@ -907,6 +907,12 @@ interface KitAuthRecoveryConfig {
|
|
|
907
907
|
isUnavailableError?(error: unknown): boolean;
|
|
908
908
|
/** Optional online-recovery lifecycle used after local-only route access. */
|
|
909
909
|
remoteRecovery?: {
|
|
910
|
+
/**
|
|
911
|
+
* Delay before probing authentication again while local access remains active.
|
|
912
|
+
*
|
|
913
|
+
* @defaultValue 30000
|
|
914
|
+
*/
|
|
915
|
+
retryDelayMs?: number;
|
|
910
916
|
availability(): Observable<boolean>;
|
|
911
917
|
reauthenticate(lease: KitAuthAccessLease): Promise<KitRemoteAccessRecovery | false>;
|
|
912
918
|
};
|
|
@@ -949,6 +955,7 @@ declare class KitAuthAccessService {
|
|
|
949
955
|
/** Coordinates single-flight recovery from local-only mode to remote access. */
|
|
950
956
|
declare class KitAuthRecoveryService {
|
|
951
957
|
#private;
|
|
958
|
+
constructor();
|
|
952
959
|
/** Subscribe to the configured remote-availability stream once. */
|
|
953
960
|
initialize(): void;
|
|
954
961
|
/** Run one ordered remote recovery attempt, coalescing concurrent triggers. */
|