@rdlabo/ionic-angular-kit 22.0.0-beta.pr99.sha950c83950d41 → 22.0.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/README.md +26 -20
- package/docs/offline-realtime.md +116 -1
- package/docs/storage-overlays.md +21 -10
- package/fesm2022/rdlabo-ionic-angular-kit-offline.mjs +67 -81
- package/fesm2022/rdlabo-ionic-angular-kit-offline.mjs.map +1 -1
- package/package.json +1 -1
- package/types/rdlabo-ionic-angular-kit-offline.d.ts +23 -2
package/package.json
CHANGED
|
@@ -1,3 +1,13 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* @rdlabo/ionic-angular-kit/offline is experimental.
|
|
3
|
+
*
|
|
4
|
+
* This entry point is not covered by the package's SemVer compatibility guarantee. Its public
|
|
5
|
+
* APIs, persistence schema, and synchronization behavior may change incompatibly in a minor or
|
|
6
|
+
* patch release before stabilization.
|
|
7
|
+
*
|
|
8
|
+
* @packageDocumentation
|
|
9
|
+
* @experimental
|
|
10
|
+
*/
|
|
1
11
|
import * as i0 from '@angular/core';
|
|
2
12
|
import { InjectionToken, Type, Provider, EnvironmentProviders } from '@angular/core';
|
|
3
13
|
import { RouterStateSnapshot } from '@angular/router';
|
|
@@ -497,11 +507,13 @@ interface OfflineRepository {
|
|
|
497
507
|
getCommands(scope: OfflineScope): Promise<OfflineCommand[]>;
|
|
498
508
|
getCommandsForUser?(userId: OfflinePrincipalId): Promise<OfflineCommand[]>;
|
|
499
509
|
putCommand(command: OfflineCommand): Promise<void>;
|
|
510
|
+
/** @deprecated Use {@link transactReplica} with `putCommands`. */
|
|
500
511
|
replaceCommand(command: OfflineCommand): Promise<void>;
|
|
512
|
+
/** @deprecated Use {@link transactReplica} with `removeCommandIds`. */
|
|
501
513
|
removeCommand(commandId: string): Promise<void>;
|
|
502
|
-
/**
|
|
514
|
+
/** @deprecated Use {@link transactReplica} with `putPullAttentions`. */
|
|
503
515
|
putPullAttention?(attention: OfflinePullAttention): Promise<void>;
|
|
504
|
-
/**
|
|
516
|
+
/** @deprecated Use {@link transactReplica} with `removePullAttentions`. */
|
|
505
517
|
removePullAttention?(scope: OfflineScope): Promise<void>;
|
|
506
518
|
clearUser(userId: OfflinePrincipalId): Promise<void>;
|
|
507
519
|
clearScope(scope: OfflineScope): Promise<void>;
|
|
@@ -545,9 +557,13 @@ declare class IonicOfflineRepository implements OfflineRepository {
|
|
|
545
557
|
getCommandsForUser(userId: OfflinePrincipalId): Promise<OfflineCommand[]>;
|
|
546
558
|
runReadSnapshot<T>(read: (reader: OfflineRepositoryReader) => Promise<T>): Promise<T>;
|
|
547
559
|
putCommand(command: OfflineCommand): Promise<void>;
|
|
560
|
+
/** @deprecated Use {@link transactReplica} with `putCommands`. */
|
|
548
561
|
replaceCommand(command: OfflineCommand): Promise<void>;
|
|
562
|
+
/** @deprecated Use {@link transactReplica} with `removeCommandIds`. */
|
|
549
563
|
removeCommand(commandId: string): Promise<void>;
|
|
564
|
+
/** @deprecated Use {@link transactReplica} with `putPullAttentions`. */
|
|
550
565
|
putPullAttention(attention: OfflinePullAttention): Promise<void>;
|
|
566
|
+
/** @deprecated Use {@link transactReplica} with `removePullAttentions`. */
|
|
551
567
|
removePullAttention(scope: OfflineScope): Promise<void>;
|
|
552
568
|
clearUser(userId: OfflinePrincipalId): Promise<void>;
|
|
553
569
|
clearScope(scope: OfflineScope): Promise<void>;
|
|
@@ -1612,9 +1628,13 @@ declare class SqliteOfflineRepository implements OfflineRepository {
|
|
|
1612
1628
|
runReadSnapshot<T>(read: (reader: OfflineRepositoryReader) => Promise<T>): Promise<T>;
|
|
1613
1629
|
[OFFLINE_REPOSITORY_ATOMIC_MUTATION]<T>(operation: (repository: OfflineRepository) => Promise<T>): Promise<T>;
|
|
1614
1630
|
putCommand(command: OfflineCommand): Promise<void>;
|
|
1631
|
+
/** @deprecated Use {@link transactReplica} with `putCommands`. */
|
|
1615
1632
|
replaceCommand(command: OfflineCommand): Promise<void>;
|
|
1633
|
+
/** @deprecated Use {@link transactReplica} with `removeCommandIds`. */
|
|
1616
1634
|
removeCommand(commandId: string): Promise<void>;
|
|
1635
|
+
/** @deprecated Use {@link transactReplica} with `putPullAttentions`. */
|
|
1617
1636
|
putPullAttention(attention: OfflinePullAttention): Promise<void>;
|
|
1637
|
+
/** @deprecated Use {@link transactReplica} with `removePullAttentions`. */
|
|
1618
1638
|
removePullAttention(scope: OfflineScope): Promise<void>;
|
|
1619
1639
|
clearUser(userId: OfflinePrincipalId): Promise<void>;
|
|
1620
1640
|
clearScope(scope: OfflineScope): Promise<void>;
|
|
@@ -1663,6 +1683,7 @@ type ProvideReadCacheOfflineOptions = ProvideOfflineOptionsBase & OfflineKitEncr
|
|
|
1663
1683
|
commandExecutor?: never;
|
|
1664
1684
|
replicaPuller?: never;
|
|
1665
1685
|
};
|
|
1686
|
+
/** Configuration accepted by the experimental offline runtime providers. */
|
|
1666
1687
|
type ProvideOfflineOptions = ProvideSynchronizedOfflineOptions | ProvideReadCacheOfflineOptions;
|
|
1667
1688
|
/** Starts one route-scoped offline runtime after product-owned local recovery has completed. */
|
|
1668
1689
|
declare class OfflineRouteInitializerService {
|