@rdlabo/ionic-angular-kit 21.6.11 → 22.0.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 +31 -1321
- package/docs/auth-http.md +36 -0
- package/docs/offline-realtime.md +36 -0
- package/docs/optional-features.md +31 -0
- package/docs/storage-overlays.md +52 -0
- package/fesm2022/rdlabo-ionic-angular-kit-app-update.mjs +3 -3
- package/fesm2022/rdlabo-ionic-angular-kit-app-update.mjs.map +1 -1
- package/fesm2022/rdlabo-ionic-angular-kit-offline.mjs +194 -92
- package/fesm2022/rdlabo-ionic-angular-kit-offline.mjs.map +1 -1
- package/fesm2022/rdlabo-ionic-angular-kit-theme.mjs +3 -3
- package/fesm2022/rdlabo-ionic-angular-kit-theme.mjs.map +1 -1
- package/fesm2022/rdlabo-ionic-angular-kit.mjs +36 -32
- package/fesm2022/rdlabo-ionic-angular-kit.mjs.map +1 -1
- package/package.json +17 -17
- package/types/rdlabo-ionic-angular-kit-offline.d.ts +85 -28
- package/types/rdlabo-ionic-angular-kit.d.ts +1 -1
|
@@ -1756,10 +1756,10 @@ class IonicOfflineRepository {
|
|
|
1756
1756
|
throw new Error(`Unknown offline replica source key "${sourceKey}".`);
|
|
1757
1757
|
return schema;
|
|
1758
1758
|
}
|
|
1759
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1760
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1759
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: IonicOfflineRepository, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1760
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: IonicOfflineRepository, providedIn: 'root' }); }
|
|
1761
1761
|
}
|
|
1762
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1762
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: IonicOfflineRepository, decorators: [{
|
|
1763
1763
|
type: Injectable,
|
|
1764
1764
|
args: [{ providedIn: 'root' }]
|
|
1765
1765
|
}] });
|
|
@@ -1980,10 +1980,10 @@ class OfflineReplicaMutationCoordinator {
|
|
|
1980
1980
|
throw new Error(`Unknown offline replica source key "${sourceKey}".`);
|
|
1981
1981
|
return schema;
|
|
1982
1982
|
}
|
|
1983
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
1984
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
1983
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineReplicaMutationCoordinator, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
1984
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineReplicaMutationCoordinator, providedIn: 'root' }); }
|
|
1985
1985
|
}
|
|
1986
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
1986
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineReplicaMutationCoordinator, decorators: [{
|
|
1987
1987
|
type: Injectable,
|
|
1988
1988
|
args: [{ providedIn: 'root' }]
|
|
1989
1989
|
}] });
|
|
@@ -2647,10 +2647,10 @@ class OfflineReplicaPullService {
|
|
|
2647
2647
|
throw new Error(`Replica naturalKey is immutable for "${schema.sourceKey}".`);
|
|
2648
2648
|
}
|
|
2649
2649
|
}
|
|
2650
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2651
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2650
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineReplicaPullService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2651
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineReplicaPullService, providedIn: 'root' }); }
|
|
2652
2652
|
}
|
|
2653
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2653
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineReplicaPullService, decorators: [{
|
|
2654
2654
|
type: Injectable,
|
|
2655
2655
|
args: [{ providedIn: 'root' }]
|
|
2656
2656
|
}] });
|
|
@@ -2669,10 +2669,14 @@ function isOfflineFallbackError(error) {
|
|
|
2669
2669
|
/** Combines operating-system connectivity with observed API reachability. */
|
|
2670
2670
|
class OfflineNetworkService {
|
|
2671
2671
|
constructor() {
|
|
2672
|
-
this.#osConnected = signal(null,
|
|
2673
|
-
|
|
2674
|
-
this.#
|
|
2675
|
-
|
|
2672
|
+
this.#osConnected = signal(null, /* @ts-ignore */
|
|
2673
|
+
...(ngDevMode ? [{ debugName: "#osConnected" }] : /* istanbul ignore next */ []));
|
|
2674
|
+
this.#apiReachable = signal(null, /* @ts-ignore */
|
|
2675
|
+
...(ngDevMode ? [{ debugName: "#apiReachable" }] : /* istanbul ignore next */ []));
|
|
2676
|
+
this.#appActive = signal(true, /* @ts-ignore */
|
|
2677
|
+
...(ngDevMode ? [{ debugName: "#appActive" }] : /* istanbul ignore next */ []));
|
|
2678
|
+
this.#lifecycleRevision = signal(0, /* @ts-ignore */
|
|
2679
|
+
...(ngDevMode ? [{ debugName: "#lifecycleRevision" }] : /* istanbul ignore next */ []));
|
|
2676
2680
|
this.#networkRevision = 0;
|
|
2677
2681
|
this.#listeners = [];
|
|
2678
2682
|
this.#initialized = false;
|
|
@@ -2682,8 +2686,10 @@ class OfflineNetworkService {
|
|
|
2682
2686
|
if (this.#osConnected() === true && this.#apiReachable() === true)
|
|
2683
2687
|
return 'online';
|
|
2684
2688
|
return 'unverified';
|
|
2685
|
-
},
|
|
2686
|
-
|
|
2689
|
+
}, /* @ts-ignore */
|
|
2690
|
+
...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
2691
|
+
this.connected = computed(() => this.state() !== 'offline', /* @ts-ignore */
|
|
2692
|
+
...(ngDevMode ? [{ debugName: "connected" }] : /* istanbul ignore next */ []));
|
|
2687
2693
|
/** Whether Capacitor currently permits foreground transport work. */
|
|
2688
2694
|
this.appActive = this.#appActive.asReadonly();
|
|
2689
2695
|
/** Changes on every foreground/background transition, even when connectivity is unchanged. */
|
|
@@ -2750,10 +2756,10 @@ class OfflineNetworkService {
|
|
|
2750
2756
|
if (this.#networkRevision === revision)
|
|
2751
2757
|
this.#osConnected.set(status.connected);
|
|
2752
2758
|
}
|
|
2753
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2754
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2759
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineNetworkService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2760
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineNetworkService, providedIn: 'root' }); }
|
|
2755
2761
|
}
|
|
2756
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2762
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineNetworkService, decorators: [{
|
|
2757
2763
|
type: Injectable,
|
|
2758
2764
|
args: [{ providedIn: 'root' }]
|
|
2759
2765
|
}] });
|
|
@@ -2803,10 +2809,10 @@ class OfflineMutationAdmissionService {
|
|
|
2803
2809
|
this.#idle = null;
|
|
2804
2810
|
this.#resolveIdle = null;
|
|
2805
2811
|
}
|
|
2806
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
2807
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
2812
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationAdmissionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
2813
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationAdmissionService, providedIn: 'root' }); }
|
|
2808
2814
|
}
|
|
2809
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
2815
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationAdmissionService, decorators: [{
|
|
2810
2816
|
type: Injectable,
|
|
2811
2817
|
args: [{ providedIn: 'root' }]
|
|
2812
2818
|
}] });
|
|
@@ -2908,8 +2914,10 @@ class OfflineSyncService {
|
|
|
2908
2914
|
this.#replicaMutations = inject(OfflineReplicaMutationCoordinator);
|
|
2909
2915
|
this.#errorHandler = inject(ErrorHandler);
|
|
2910
2916
|
this.#retryRandom = inject(OFFLINE_RETRY_RANDOM);
|
|
2911
|
-
this.#commands = signal([],
|
|
2912
|
-
|
|
2917
|
+
this.#commands = signal([], /* @ts-ignore */
|
|
2918
|
+
...(ngDevMode ? [{ debugName: "#commands" }] : /* istanbul ignore next */ []));
|
|
2919
|
+
this.#pullAttentions = signal([], /* @ts-ignore */
|
|
2920
|
+
...(ngDevMode ? [{ debugName: "#pullAttentions" }] : /* istanbul ignore next */ []));
|
|
2913
2921
|
this.#knownScopes = new Map();
|
|
2914
2922
|
/** In-memory scheduling cache for scopes whose authoritative post-send pull has not completed yet. */
|
|
2915
2923
|
this.#pendingPullScopes = new Map();
|
|
@@ -2929,8 +2937,10 @@ class OfflineSyncService {
|
|
|
2929
2937
|
this.#initialized = false;
|
|
2930
2938
|
this.#lastCommandCreatedAt = 0;
|
|
2931
2939
|
this.pendingCommands = this.#commands.asReadonly();
|
|
2932
|
-
this.pendingCount = computed(() => this.pendingCommands().length,
|
|
2933
|
-
|
|
2940
|
+
this.pendingCount = computed(() => this.pendingCommands().length, /* @ts-ignore */
|
|
2941
|
+
...(ngDevMode ? [{ debugName: "pendingCount" }] : /* istanbul ignore next */ []));
|
|
2942
|
+
this.conflicts = computed(() => this.#commands().filter((command) => command.state === 'conflict'), /* @ts-ignore */
|
|
2943
|
+
...(ngDevMode ? [{ debugName: "conflicts" }] : /* istanbul ignore next */ []));
|
|
2934
2944
|
/** Durable fatal-pull attentions for the active principal, restored across restart. */
|
|
2935
2945
|
this.pullAttentions = this.#pullAttentions.asReadonly();
|
|
2936
2946
|
this.syncState = computed(() => {
|
|
@@ -2945,7 +2955,8 @@ class OfflineSyncService {
|
|
|
2945
2955
|
if (commands.some((command) => command.state === 'sending'))
|
|
2946
2956
|
return 'syncing';
|
|
2947
2957
|
return commands.length > 0 ? 'pending' : 'idle';
|
|
2948
|
-
},
|
|
2958
|
+
}, /* @ts-ignore */
|
|
2959
|
+
...(ngDevMode ? [{ debugName: "syncState" }] : /* istanbul ignore next */ []));
|
|
2949
2960
|
effect(() => {
|
|
2950
2961
|
const connected = this.#network.connected();
|
|
2951
2962
|
const appActive = this.#appActive();
|
|
@@ -4412,10 +4423,10 @@ class OfflineSyncService {
|
|
|
4412
4423
|
#scopeKey(scope) {
|
|
4413
4424
|
return `${canonicalOfflinePrincipalId(scope.userId)}:${scope.scopeId}`;
|
|
4414
4425
|
}
|
|
4415
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4416
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4426
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineSyncService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4427
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineSyncService, providedIn: 'root' }); }
|
|
4417
4428
|
}
|
|
4418
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineSyncService, decorators: [{
|
|
4419
4430
|
type: Injectable,
|
|
4420
4431
|
args: [{ providedIn: 'root' }]
|
|
4421
4432
|
}], ctorParameters: () => [] });
|
|
@@ -4466,7 +4477,8 @@ class OfflineMutationPersistenceService {
|
|
|
4466
4477
|
this.#sync = inject(OfflineSyncService);
|
|
4467
4478
|
this.#admission = inject(OfflineMutationAdmissionService);
|
|
4468
4479
|
this.#configured = this.#options.mode !== 'readCacheOnly' && this.#options.mutationPersistence !== undefined;
|
|
4469
|
-
this.#state = signal(this.#configured ? 'initializing' : 'enabled',
|
|
4480
|
+
this.#state = signal(this.#configured ? 'initializing' : 'enabled', /* @ts-ignore */
|
|
4481
|
+
...(ngDevMode ? [{ debugName: "#state" }] : /* istanbul ignore next */ []));
|
|
4470
4482
|
this.#initializePromise = null;
|
|
4471
4483
|
this.#transitionTail = settledMutationPersistence();
|
|
4472
4484
|
this.#transitionRevision = 0;
|
|
@@ -4475,9 +4487,11 @@ class OfflineMutationPersistenceService {
|
|
|
4475
4487
|
/** Whether the product configured a device-local mutation persistence preference. */
|
|
4476
4488
|
this.available = this.#configured;
|
|
4477
4489
|
/** Whether new durable Outbox mutations are currently accepted. */
|
|
4478
|
-
this.enabled = computed(() => this.#state() === 'enabled',
|
|
4490
|
+
this.enabled = computed(() => this.#state() === 'enabled', /* @ts-ignore */
|
|
4491
|
+
...(ngDevMode ? [{ debugName: "enabled" }] : /* istanbul ignore next */ []));
|
|
4479
4492
|
/** Whether Kit is draining accepted and pending mutations before disabling. */
|
|
4480
|
-
this.changing = computed(() => this.#state() === 'disabling',
|
|
4493
|
+
this.changing = computed(() => this.#state() === 'disabling', /* @ts-ignore */
|
|
4494
|
+
...(ngDevMode ? [{ debugName: "changing" }] : /* istanbul ignore next */ []));
|
|
4481
4495
|
}
|
|
4482
4496
|
#options;
|
|
4483
4497
|
#errorHandler;
|
|
@@ -4596,10 +4610,10 @@ class OfflineMutationPersistenceService {
|
|
|
4596
4610
|
throw new Error('Offline mutation persistence adapter is not provided.');
|
|
4597
4611
|
return this.#persistence;
|
|
4598
4612
|
}
|
|
4599
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4600
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4613
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationPersistenceService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4614
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationPersistenceService, providedIn: 'root' }); }
|
|
4601
4615
|
}
|
|
4602
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4616
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationPersistenceService, decorators: [{
|
|
4603
4617
|
type: Injectable,
|
|
4604
4618
|
args: [{ providedIn: 'root' }]
|
|
4605
4619
|
}] });
|
|
@@ -4614,7 +4628,8 @@ function offlineSessionManifestAllows(manifest, authSubject, scopeId) {
|
|
|
4614
4628
|
class OfflineSessionService {
|
|
4615
4629
|
constructor() {
|
|
4616
4630
|
this.#repository = inject(OFFLINE_REPOSITORY);
|
|
4617
|
-
this.#activeManifest = signal(null,
|
|
4631
|
+
this.#activeManifest = signal(null, /* @ts-ignore */
|
|
4632
|
+
...(ngDevMode ? [{ debugName: "#activeManifest" }] : /* istanbul ignore next */ []));
|
|
4618
4633
|
this.#initialized = false;
|
|
4619
4634
|
this.#localAccessThisRun = false;
|
|
4620
4635
|
this.#remoteActivatedThisRun = false;
|
|
@@ -4750,10 +4765,10 @@ class OfflineSessionService {
|
|
|
4750
4765
|
? { userId: manifest.userId, scopes: manifest.scopeIds.map((scopeId) => ({ userId: manifest.userId, scopeId })) }
|
|
4751
4766
|
: null;
|
|
4752
4767
|
}
|
|
4753
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4754
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4768
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineSessionService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4769
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineSessionService, providedIn: 'root' }); }
|
|
4755
4770
|
}
|
|
4756
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4771
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineSessionService, decorators: [{
|
|
4757
4772
|
type: Injectable,
|
|
4758
4773
|
args: [{ providedIn: 'root' }]
|
|
4759
4774
|
}] });
|
|
@@ -4790,7 +4805,8 @@ class OfflineCoordinatorService {
|
|
|
4790
4805
|
this.#sync = inject(OfflineSyncService);
|
|
4791
4806
|
this.#session = inject(OfflineSessionService);
|
|
4792
4807
|
this.#options = inject(OFFLINE_KIT_OPTIONS);
|
|
4793
|
-
this.#storageState = signal({ status: 'initializing' },
|
|
4808
|
+
this.#storageState = signal({ status: 'initializing' }, /* @ts-ignore */
|
|
4809
|
+
...(ngDevMode ? [{ debugName: "#storageState" }] : /* istanbul ignore next */ []));
|
|
4794
4810
|
this.#localInitialization = null;
|
|
4795
4811
|
this.#syncInitialization = null;
|
|
4796
4812
|
this.#runtimeInitialization = null;
|
|
@@ -4807,7 +4823,8 @@ class OfflineCoordinatorService {
|
|
|
4807
4823
|
*
|
|
4808
4824
|
* Use this (or {@link storageState}) to disable offline mutations and replica reads when storage is unavailable.
|
|
4809
4825
|
*/
|
|
4810
|
-
this.isStorageReady = computed(() => this.#storageState().status === 'ready',
|
|
4826
|
+
this.isStorageReady = computed(() => this.#storageState().status === 'ready', /* @ts-ignore */
|
|
4827
|
+
...(ngDevMode ? [{ debugName: "isStorageReady" }] : /* istanbul ignore next */ []));
|
|
4811
4828
|
this.networkState = this.#network.state;
|
|
4812
4829
|
this.syncState = this.#sync.syncState;
|
|
4813
4830
|
this.pendingCount = this.#sync.pendingCount;
|
|
@@ -4970,10 +4987,10 @@ class OfflineCoordinatorService {
|
|
|
4970
4987
|
this.#transitionTail = transition.then(() => undefined, () => undefined);
|
|
4971
4988
|
return transition;
|
|
4972
4989
|
}
|
|
4973
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
4974
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
4990
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineCoordinatorService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
4991
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineCoordinatorService, providedIn: 'root' }); }
|
|
4975
4992
|
}
|
|
4976
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
4993
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineCoordinatorService, decorators: [{
|
|
4977
4994
|
type: Injectable,
|
|
4978
4995
|
args: [{ providedIn: 'root' }]
|
|
4979
4996
|
}] });
|
|
@@ -5116,17 +5133,63 @@ async function recoverOfflineLocalReset(options) {
|
|
|
5116
5133
|
const marker = await options.markerStore.get({ key: options.markerKey });
|
|
5117
5134
|
if (marker.value !== OFFLINE_LOCAL_RESET_REQUESTED)
|
|
5118
5135
|
return false;
|
|
5136
|
+
await resetOfflineDatabases({
|
|
5137
|
+
sqliteConnection: options.sqliteConnection,
|
|
5138
|
+
databaseNames: options.kitCompatibleDatabaseNames,
|
|
5139
|
+
databaseEncryption: options.databaseEncryption ?? COMMUNITY_SQLITE_ENCRYPTED,
|
|
5140
|
+
additionalCleanup: options.additionalCleanup,
|
|
5141
|
+
});
|
|
5142
|
+
await options.markerStore.remove({ key: options.markerKey });
|
|
5143
|
+
return true;
|
|
5144
|
+
}
|
|
5145
|
+
/**
|
|
5146
|
+
* Deletes native databases once when changing their encryption mode.
|
|
5147
|
+
*
|
|
5148
|
+
* Products with a remote source of truth can use this before Angular bootstrap instead of
|
|
5149
|
+
* decrypting local replicas. The completion marker is written only after every deletion and
|
|
5150
|
+
* product cleanup succeeds, so interruption retries safely on the next cold start.
|
|
5151
|
+
*/
|
|
5152
|
+
async function migrateOfflineDatabaseEncryption(options) {
|
|
5153
|
+
if (!(options.nativePlatform ?? Capacitor.isNativePlatform()))
|
|
5154
|
+
return false;
|
|
5155
|
+
const marker = await options.markerStore.get({ key: options.markerKey });
|
|
5156
|
+
if (marker.value === options.migrationVersion)
|
|
5157
|
+
return false;
|
|
5158
|
+
await resetOfflineDatabases({
|
|
5159
|
+
sqliteConnection: options.sqliteConnection,
|
|
5160
|
+
databaseNames: options.kitCompatibleDatabaseNames,
|
|
5161
|
+
databaseEncryption: options.sourceDatabaseEncryption,
|
|
5162
|
+
additionalCleanup: options.additionalCleanup,
|
|
5163
|
+
});
|
|
5164
|
+
if (options.clearEncryptionSecret) {
|
|
5165
|
+
if (!options.sqliteConnection.clearEncryptionSecret) {
|
|
5166
|
+
throw new Error('SQLite connection does not support clearing the obsolete encryption secret.');
|
|
5167
|
+
}
|
|
5168
|
+
await options.sqliteConnection.clearEncryptionSecret();
|
|
5169
|
+
}
|
|
5170
|
+
await options.markerStore.set({ key: options.markerKey, value: options.migrationVersion });
|
|
5171
|
+
return true;
|
|
5172
|
+
}
|
|
5173
|
+
async function resetOfflineDatabases(options) {
|
|
5119
5174
|
await options.sqliteConnection.checkConnectionsConsistency();
|
|
5120
|
-
for (const databaseName of new Set(options.
|
|
5175
|
+
for (const databaseName of new Set(options.databaseNames)) {
|
|
5121
5176
|
const exists = await options.sqliteConnection.isDatabase(databaseName);
|
|
5122
|
-
if (exists.result)
|
|
5123
|
-
|
|
5124
|
-
|
|
5125
|
-
|
|
5177
|
+
if (!exists.result)
|
|
5178
|
+
continue;
|
|
5179
|
+
const databaseEncryption = await resolveOfflineDatabaseEncryption(options.sqliteConnection, databaseName, options.databaseEncryption);
|
|
5180
|
+
const connection = await options.sqliteConnection.createConnection(databaseName, databaseEncryption, databaseEncryption ? COMMUNITY_SQLITE_MODE : 'no-encryption', COMMUNITY_SQLITE_VERSION, COMMUNITY_SQLITE_READONLY);
|
|
5181
|
+
await deleteAndCloseOfflineDatabase(options.sqliteConnection, databaseName, connection);
|
|
5126
5182
|
}
|
|
5127
5183
|
await options.additionalCleanup?.();
|
|
5128
|
-
|
|
5129
|
-
|
|
5184
|
+
}
|
|
5185
|
+
async function resolveOfflineDatabaseEncryption(sqliteConnection, databaseName, configured) {
|
|
5186
|
+
if (configured !== 'detect')
|
|
5187
|
+
return configured;
|
|
5188
|
+
if (!sqliteConnection.isDatabaseEncrypted) {
|
|
5189
|
+
throw new Error('SQLite connection does not support detecting the existing database encryption mode.');
|
|
5190
|
+
}
|
|
5191
|
+
const result = await sqliteConnection.isDatabaseEncrypted(databaseName);
|
|
5192
|
+
return result.result === true;
|
|
5130
5193
|
}
|
|
5131
5194
|
async function settleOfflineResetOperation(operation) {
|
|
5132
5195
|
return new Promise((resolve) => resolve(operation())).then(() => ({ ok: true }), (error) => ({ ok: false, error }));
|
|
@@ -5264,10 +5327,10 @@ class OfflineRequestPolicyRegistry {
|
|
|
5264
5327
|
}
|
|
5265
5328
|
return null;
|
|
5266
5329
|
}
|
|
5267
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5268
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5330
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineRequestPolicyRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5331
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineRequestPolicyRegistry, providedIn: 'root' }); }
|
|
5269
5332
|
}
|
|
5270
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5333
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineRequestPolicyRegistry, decorators: [{
|
|
5271
5334
|
type: Injectable,
|
|
5272
5335
|
args: [{ providedIn: 'root' }]
|
|
5273
5336
|
}] });
|
|
@@ -5295,10 +5358,10 @@ class OfflineMutationRequestPolicyRegistry {
|
|
|
5295
5358
|
throw new OfflineMutationPolicyConflictError(request, matchCount);
|
|
5296
5359
|
return matched;
|
|
5297
5360
|
}
|
|
5298
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
5299
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
5361
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationRequestPolicyRegistry, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
5362
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationRequestPolicyRegistry, providedIn: 'root' }); }
|
|
5300
5363
|
}
|
|
5301
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
5364
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineMutationRequestPolicyRegistry, decorators: [{
|
|
5302
5365
|
type: Injectable,
|
|
5303
5366
|
args: [{ providedIn: 'root' }]
|
|
5304
5367
|
}] });
|
|
@@ -5337,8 +5400,8 @@ function isExistingCommunitySqliteConnectionError(error, database) {
|
|
|
5337
5400
|
function settleCommunitySqliteCreation(creation) {
|
|
5338
5401
|
return creation.then((database) => ({ ok: true, database }), (error) => ({ ok: false, error }));
|
|
5339
5402
|
}
|
|
5340
|
-
async function createReloadSafeCommunitySqliteDatabase(connection, databaseName) {
|
|
5341
|
-
const create = () => connection.createConnection(databaseName,
|
|
5403
|
+
async function createReloadSafeCommunitySqliteDatabase(connection, databaseName, encrypted) {
|
|
5404
|
+
const create = () => connection.createConnection(databaseName, encrypted, encrypted ? COMMUNITY_SQLITE_MODE : 'no-encryption', COMMUNITY_SQLITE_VERSION, COMMUNITY_SQLITE_READONLY);
|
|
5342
5405
|
const creation = await settleCommunitySqliteCreation(create());
|
|
5343
5406
|
if (creation.ok)
|
|
5344
5407
|
return creation.database;
|
|
@@ -5349,18 +5412,25 @@ async function createReloadSafeCommunitySqliteDatabase(connection, databaseName)
|
|
|
5349
5412
|
return create();
|
|
5350
5413
|
}
|
|
5351
5414
|
/**
|
|
5352
|
-
* Create the canonical
|
|
5415
|
+
* Create the canonical `@capacitor-community/sqlite` driver for a connection owner.
|
|
5353
5416
|
*
|
|
5354
|
-
*
|
|
5355
|
-
*
|
|
5356
|
-
*
|
|
5357
|
-
*
|
|
5358
|
-
*
|
|
5417
|
+
* Native databases are encrypted by default. Pass `encrypted: false` for plaintext. The supplied
|
|
5418
|
+
* connection is the identity and exclusive owner of its native plugin connections. Repeated calls
|
|
5419
|
+
* with the same object and the same encryption mode return the same driver so normal concurrent
|
|
5420
|
+
* access cannot be mistaken for a WebView-reload orphan. A later call with a different encryption
|
|
5421
|
+
* mode throws instead of silently reusing the cached driver. Consumers must route database access
|
|
5422
|
+
* through this driver and must not close or replace the connection while the driver is active. A
|
|
5423
|
+
* real WebView reload creates a new JavaScript owner, allowing the driver to close the native
|
|
5424
|
+
* connection orphaned by the previous owner and recreate it.
|
|
5359
5425
|
*/
|
|
5360
|
-
function createCommunitySqliteDriver(connection) {
|
|
5361
|
-
const
|
|
5362
|
-
if (
|
|
5363
|
-
|
|
5426
|
+
function createCommunitySqliteDriver(connection, encrypted = COMMUNITY_SQLITE_ENCRYPTED) {
|
|
5427
|
+
const cached = communitySqliteDrivers.get(connection);
|
|
5428
|
+
if (cached) {
|
|
5429
|
+
if (cached.encrypted !== encrypted) {
|
|
5430
|
+
throw new Error(`Cannot reuse a Community SQLite connection with a different encryption mode (cached encrypted=${String(cached.encrypted)}, requested encrypted=${String(encrypted)})`);
|
|
5431
|
+
}
|
|
5432
|
+
return cached.driver;
|
|
5433
|
+
}
|
|
5364
5434
|
const databases = new Map();
|
|
5365
5435
|
const openings = new Map();
|
|
5366
5436
|
let secretInitialization = null;
|
|
@@ -5371,6 +5441,8 @@ function createCommunitySqliteDriver(connection) {
|
|
|
5371
5441
|
return value;
|
|
5372
5442
|
};
|
|
5373
5443
|
const ensureSecret = (createEncryptionKey) => {
|
|
5444
|
+
if (!encrypted)
|
|
5445
|
+
return settledSqliteOperation();
|
|
5374
5446
|
if (secretInitialization)
|
|
5375
5447
|
return secretInitialization;
|
|
5376
5448
|
const initialization = (async () => {
|
|
@@ -5399,7 +5471,7 @@ function createCommunitySqliteDriver(connection) {
|
|
|
5399
5471
|
return currentOpening;
|
|
5400
5472
|
const opening = (async () => {
|
|
5401
5473
|
await ensureSecret(createEncryptionKey);
|
|
5402
|
-
const value = await createReloadSafeCommunitySqliteDatabase(connection, databaseName);
|
|
5474
|
+
const value = await createReloadSafeCommunitySqliteDatabase(connection, databaseName, encrypted);
|
|
5403
5475
|
await value.open();
|
|
5404
5476
|
databases.set(databaseKey, value);
|
|
5405
5477
|
return value;
|
|
@@ -5420,6 +5492,17 @@ function createCommunitySqliteDriver(connection) {
|
|
|
5420
5492
|
await openDatabase(databaseName, createEncryptionKey);
|
|
5421
5493
|
return { databaseId: databaseName };
|
|
5422
5494
|
},
|
|
5495
|
+
async executeBatch({ databaseId, statements }) {
|
|
5496
|
+
const target = database(databaseId);
|
|
5497
|
+
if (statements.length === 0)
|
|
5498
|
+
return;
|
|
5499
|
+
if (target.execute) {
|
|
5500
|
+
await target.execute(statements.join(';\n'), false);
|
|
5501
|
+
return;
|
|
5502
|
+
}
|
|
5503
|
+
for (const statement of statements)
|
|
5504
|
+
await target.run(statement, [], false);
|
|
5505
|
+
},
|
|
5423
5506
|
async execute({ databaseId, statement, values = [] }) {
|
|
5424
5507
|
await database(databaseId).run(statement, values, false);
|
|
5425
5508
|
},
|
|
@@ -5437,7 +5520,7 @@ function createCommunitySqliteDriver(connection) {
|
|
|
5437
5520
|
await database(databaseId).rollbackTransaction();
|
|
5438
5521
|
},
|
|
5439
5522
|
};
|
|
5440
|
-
communitySqliteDrivers.set(connection, driver);
|
|
5523
|
+
communitySqliteDrivers.set(connection, { driver, encrypted });
|
|
5441
5524
|
return driver;
|
|
5442
5525
|
}
|
|
5443
5526
|
const SCHEMA = [
|
|
@@ -5754,8 +5837,13 @@ class SqliteOfflineRepository {
|
|
|
5754
5837
|
createEncryptionKey: this.#wrapCreateEncryptionKey(this.#options.createEncryptionKey),
|
|
5755
5838
|
});
|
|
5756
5839
|
this.#databaseId = databaseId;
|
|
5757
|
-
|
|
5758
|
-
await this.#
|
|
5840
|
+
if (this.#sqlite.executeBatch) {
|
|
5841
|
+
await this.#sqlite.executeBatch({ databaseId, statements: SCHEMA });
|
|
5842
|
+
}
|
|
5843
|
+
else {
|
|
5844
|
+
for (const statement of SCHEMA)
|
|
5845
|
+
await this.#execute(databaseId, statement);
|
|
5846
|
+
}
|
|
5759
5847
|
const metadata = await this.#queryDatabase(databaseId, 'SELECT schema_version FROM offline_metadata WHERE id = 1');
|
|
5760
5848
|
if (metadata.length === 0) {
|
|
5761
5849
|
await this.#execute(databaseId, 'INSERT INTO offline_metadata (id, schema_version, last_user_id) VALUES (1, ?, NULL)', [
|
|
@@ -6505,10 +6593,10 @@ class SqliteOfflineRepository {
|
|
|
6505
6593
|
#stringOrNull(value) {
|
|
6506
6594
|
return value == null ? null : this.#string(value);
|
|
6507
6595
|
}
|
|
6508
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6509
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6596
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SqliteOfflineRepository, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6597
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SqliteOfflineRepository, providedIn: 'root' }); }
|
|
6510
6598
|
}
|
|
6511
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6599
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: SqliteOfflineRepository, decorators: [{
|
|
6512
6600
|
type: Injectable,
|
|
6513
6601
|
args: [{ providedIn: 'root' }]
|
|
6514
6602
|
}] });
|
|
@@ -6531,7 +6619,7 @@ const READ_CACHE_ONLY_REPLICA_PULLER = {
|
|
|
6531
6619
|
* Provide the standard scoped offline runtime.
|
|
6532
6620
|
*
|
|
6533
6621
|
* @remarks
|
|
6534
|
-
* Web uses Ionic Storage. Native iOS/Android uses
|
|
6622
|
+
* Web uses Ionic Storage. Native iOS/Android uses `@capacitor-community/sqlite`, encrypted by default. The application owns
|
|
6535
6623
|
* URL/DTO policy and command execution; the kit owns persistence, ordering, retries, and session
|
|
6536
6624
|
* isolation.
|
|
6537
6625
|
*
|
|
@@ -6540,24 +6628,38 @@ const READ_CACHE_ONLY_REPLICA_PULLER = {
|
|
|
6540
6628
|
*/
|
|
6541
6629
|
function provideOffline(options) {
|
|
6542
6630
|
const synchronized = options.mode !== 'readCacheOnly';
|
|
6631
|
+
const kitOptions = options.databaseEncryption === false
|
|
6632
|
+
? {
|
|
6633
|
+
mode: options.mode ?? 'synchronized',
|
|
6634
|
+
databaseName: options.databaseName,
|
|
6635
|
+
databaseEncryption: false,
|
|
6636
|
+
createEncryptionKey: options.createEncryptionKey,
|
|
6637
|
+
replicaSchema: options.replicaSchema,
|
|
6638
|
+
wireProtocol: options.wireProtocol,
|
|
6639
|
+
outboxLimits: options.outboxLimits,
|
|
6640
|
+
mutationPersistence: options.mutationPersistence,
|
|
6641
|
+
onStorageUnavailable: options.onStorageUnavailable,
|
|
6642
|
+
}
|
|
6643
|
+
: {
|
|
6644
|
+
mode: options.mode ?? 'synchronized',
|
|
6645
|
+
databaseName: options.databaseName,
|
|
6646
|
+
databaseEncryption: options.databaseEncryption ?? true,
|
|
6647
|
+
createEncryptionKey: options.createEncryptionKey,
|
|
6648
|
+
replicaSchema: options.replicaSchema,
|
|
6649
|
+
wireProtocol: options.wireProtocol,
|
|
6650
|
+
outboxLimits: options.outboxLimits,
|
|
6651
|
+
mutationPersistence: options.mutationPersistence,
|
|
6652
|
+
onStorageUnavailable: options.onStorageUnavailable,
|
|
6653
|
+
};
|
|
6543
6654
|
return makeEnvironmentProviders([
|
|
6544
6655
|
...(synchronized ? [options.commandExecutor, options.replicaPuller] : []),
|
|
6545
6656
|
{
|
|
6546
6657
|
provide: OFFLINE_KIT_OPTIONS,
|
|
6547
|
-
useValue:
|
|
6548
|
-
mode: options.mode ?? 'synchronized',
|
|
6549
|
-
databaseName: options.databaseName,
|
|
6550
|
-
createEncryptionKey: options.createEncryptionKey,
|
|
6551
|
-
replicaSchema: options.replicaSchema,
|
|
6552
|
-
wireProtocol: options.wireProtocol,
|
|
6553
|
-
outboxLimits: options.outboxLimits,
|
|
6554
|
-
mutationPersistence: options.mutationPersistence,
|
|
6555
|
-
onStorageUnavailable: options.onStorageUnavailable,
|
|
6556
|
-
},
|
|
6658
|
+
useValue: kitOptions,
|
|
6557
6659
|
},
|
|
6558
6660
|
{
|
|
6559
6661
|
provide: COMMUNITY_SQLITE,
|
|
6560
|
-
useValue: options.sqliteConnection ? createCommunitySqliteDriver(options.sqliteConnection) : null,
|
|
6662
|
+
useValue: options.sqliteConnection ? createCommunitySqliteDriver(options.sqliteConnection, options.databaseEncryption ?? true) : null,
|
|
6561
6663
|
},
|
|
6562
6664
|
{
|
|
6563
6665
|
provide: OFFLINE_REPOSITORY,
|
|
@@ -6746,10 +6848,10 @@ class OfflineRequestFallbackService {
|
|
|
6746
6848
|
return throwError(() => error);
|
|
6747
6849
|
}), concatMap((cached) => cached ? of(cached.clone({ headers: cached.headers.set(OFFLINE_RESPONSE_HEADER, 'local') })) : throwError(() => error)));
|
|
6748
6850
|
}
|
|
6749
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
6750
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
6851
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineRequestFallbackService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
6852
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineRequestFallbackService, providedIn: 'root' }); }
|
|
6751
6853
|
}
|
|
6752
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
6854
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: OfflineRequestFallbackService, decorators: [{
|
|
6753
6855
|
type: Injectable,
|
|
6754
6856
|
args: [{ providedIn: 'root' }]
|
|
6755
6857
|
}] });
|
|
@@ -6760,5 +6862,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.17", ngImpo
|
|
|
6760
6862
|
* Generated bundle index. Do not edit.
|
|
6761
6863
|
*/
|
|
6762
6864
|
|
|
6763
|
-
export { COMMUNITY_SQLITE, DEFAULT_OFFLINE_COMMAND_HOOKS, IonicOfflineRepository, OFFLINE_AGGREGATE_INTENT_PROJECTOR, OFFLINE_BYPASS, OFFLINE_COMMAND_EXECUTOR, OFFLINE_COMMAND_HOOKS, OFFLINE_KIT_OPTIONS, OFFLINE_MUTATION_REQUEST_POLICIES, OFFLINE_REPLICA_PROJECTOR, OFFLINE_REPLICA_PULLER, OFFLINE_REPOSITORY, OFFLINE_REQUEST_POLICIES, OFFLINE_RESPONSE_COMPLETE_HEADER, OFFLINE_RESPONSE_HEADER, OFFLINE_RETRY_RANDOM, OFFLINE_SCHEMA_VERSION, OFFLINE_SYNC_CONTEXT, OfflineCommandInFlightError, OfflineCoordinatorService, OfflineMutationPersistenceDisabledError, OfflineMutationPersistencePendingError, OfflineMutationPersistenceRequiresOnlineError, OfflineMutationPersistenceService, OfflineMutationPolicyConflictError, OfflineMutationProtocolError, OfflineMutationRequestPolicyRegistry, OfflineNetworkService, OfflineOutboxCapacityError, OfflinePayloadValidationError, OfflineReplicaMutationCoordinator, OfflineReplicaPullService, OfflineReplicaSchemaMismatchError, OfflineRequestFallbackService, OfflineRequestPolicyRegistry, OfflineSessionService, OfflineStorageUnavailableError, OfflineSyncService, SqliteOfflineRepository, assertOfflineLocalId, assertOfflineReplicaGeneratedRemoteId, assertOfflineReplicaNaturalKeyBaseline, assertSupportedOfflineMode, booleanColumn, canonicalOfflineCommandIdentity, canonicalOfflinePrincipalId, canonicalOfflineRemoteIdentity, canonicalOfflineReplicaIdentity, canonicalOfflineReplicaRowKey, commandFootprintKeys, commandIdentityFromReplicaIdentity, commandIdentityMatchesReplicaRow, createCommunitySqliteDriver, createOfflineAuthBridge, createRandomOfflineEncryptionKey, datetime, decodeOfflineReplicaValues, defineOfflineReplicaSchema, defineReplicaEntity, encodeOfflineReplicaValues, generatedId, ignored, integer, isOfflineAggregateIntentConflict, isOfflineFallbackError, isOfflineStorageUnavailableError, json, localOnly, naturalKey, normalizeOfflineNaturalKey, normalizeOfflineReplicaPullPage, nullable, offlineAggregateIntentMutations, offlineCommandLookupIdentity, offlineCommandTargetFromReplicaRow, offlineCommandWithBaseRevision, offlineGeneratedReplicaIdentity, offlineInterceptor, offlineNaturalKeyFromValues, offlineNaturalReplicaIdentity, offlineReadEmission, offlineReadSource, offlineReplicaRemoteIdentity, offlineRetryDelayMs, offlineSessionManifestAllows, parseOfflineCommandIdentity, parseOfflineMutationEnvelope, parseOfflinePrincipalId, projectOfflineReplicaValues, provideOffline, provideOfflineMutationRequestPolicy, provideOfflineRequestPolicy, real, recoverOfflineLocalReset, replicaAddressFromIdentity, requestOfflineLocalReset, requirePositiveOfflineInteger, selectOfflineRepository, serializeOfflineCommandIdentity, sha256OfflineReplicaSchema, shouldCommitOfflineCollection, supportsSynchronizedOfflineRepository, text };
|
|
6865
|
+
export { COMMUNITY_SQLITE, DEFAULT_OFFLINE_COMMAND_HOOKS, IonicOfflineRepository, OFFLINE_AGGREGATE_INTENT_PROJECTOR, OFFLINE_BYPASS, OFFLINE_COMMAND_EXECUTOR, OFFLINE_COMMAND_HOOKS, OFFLINE_KIT_OPTIONS, OFFLINE_MUTATION_REQUEST_POLICIES, OFFLINE_REPLICA_PROJECTOR, OFFLINE_REPLICA_PULLER, OFFLINE_REPOSITORY, OFFLINE_REQUEST_POLICIES, OFFLINE_RESPONSE_COMPLETE_HEADER, OFFLINE_RESPONSE_HEADER, OFFLINE_RETRY_RANDOM, OFFLINE_SCHEMA_VERSION, OFFLINE_SYNC_CONTEXT, OfflineCommandInFlightError, OfflineCoordinatorService, OfflineMutationPersistenceDisabledError, OfflineMutationPersistencePendingError, OfflineMutationPersistenceRequiresOnlineError, OfflineMutationPersistenceService, OfflineMutationPolicyConflictError, OfflineMutationProtocolError, OfflineMutationRequestPolicyRegistry, OfflineNetworkService, OfflineOutboxCapacityError, OfflinePayloadValidationError, OfflineReplicaMutationCoordinator, OfflineReplicaPullService, OfflineReplicaSchemaMismatchError, OfflineRequestFallbackService, OfflineRequestPolicyRegistry, OfflineSessionService, OfflineStorageUnavailableError, OfflineSyncService, SqliteOfflineRepository, assertOfflineLocalId, assertOfflineReplicaGeneratedRemoteId, assertOfflineReplicaNaturalKeyBaseline, assertSupportedOfflineMode, booleanColumn, canonicalOfflineCommandIdentity, canonicalOfflinePrincipalId, canonicalOfflineRemoteIdentity, canonicalOfflineReplicaIdentity, canonicalOfflineReplicaRowKey, commandFootprintKeys, commandIdentityFromReplicaIdentity, commandIdentityMatchesReplicaRow, createCommunitySqliteDriver, createOfflineAuthBridge, createRandomOfflineEncryptionKey, datetime, decodeOfflineReplicaValues, defineOfflineReplicaSchema, defineReplicaEntity, encodeOfflineReplicaValues, generatedId, ignored, integer, isOfflineAggregateIntentConflict, isOfflineFallbackError, isOfflineStorageUnavailableError, json, localOnly, migrateOfflineDatabaseEncryption, naturalKey, normalizeOfflineNaturalKey, normalizeOfflineReplicaPullPage, nullable, offlineAggregateIntentMutations, offlineCommandLookupIdentity, offlineCommandTargetFromReplicaRow, offlineCommandWithBaseRevision, offlineGeneratedReplicaIdentity, offlineInterceptor, offlineNaturalKeyFromValues, offlineNaturalReplicaIdentity, offlineReadEmission, offlineReadSource, offlineReplicaRemoteIdentity, offlineRetryDelayMs, offlineSessionManifestAllows, parseOfflineCommandIdentity, parseOfflineMutationEnvelope, parseOfflinePrincipalId, projectOfflineReplicaValues, provideOffline, provideOfflineMutationRequestPolicy, provideOfflineRequestPolicy, real, recoverOfflineLocalReset, replicaAddressFromIdentity, requestOfflineLocalReset, requirePositiveOfflineInteger, selectOfflineRepository, serializeOfflineCommandIdentity, sha256OfflineReplicaSchema, shouldCommitOfflineCollection, supportsSynchronizedOfflineRepository, text };
|
|
6764
6866
|
//# sourceMappingURL=rdlabo-ionic-angular-kit-offline.mjs.map
|