@rdlabo/ionic-angular-kit 21.5.9 → 21.5.10
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/package.json
CHANGED
|
@@ -18,17 +18,19 @@ type OfflineReplicaStorageKind = 'text' | 'integer' | 'real' | 'booleanColumn' |
|
|
|
18
18
|
/** Scope partition persisted on every replica table row. */
|
|
19
19
|
type OfflineReplicaEntityScope = 'user' | 'partition';
|
|
20
20
|
/** Field projection policy for a source-model property. */
|
|
21
|
-
type OfflineReplicaFieldPolicy = 'column' | '
|
|
21
|
+
type OfflineReplicaFieldPolicy = 'column' | 'remoteId' | 'ignored';
|
|
22
22
|
/** Canonical value types accepted in a composite server-side natural key. */
|
|
23
23
|
type OfflineNaturalKeyValue = string | number;
|
|
24
24
|
/** Ordered natural-key values keyed by source-model field name. */
|
|
25
25
|
type OfflineNaturalKey = Readonly<Record<string, OfflineNaturalKeyValue>>;
|
|
26
|
+
/** Server-assigned remote identifier for a generated-identity entity. */
|
|
27
|
+
type OfflineGeneratedRemoteId = number | string;
|
|
26
28
|
/** Remote row identity. Exactly one variant is valid for a replicated entity. */
|
|
27
29
|
type OfflineReplicaRemoteIdentity = {
|
|
28
|
-
readonly
|
|
30
|
+
readonly remoteId: OfflineGeneratedRemoteId;
|
|
29
31
|
readonly naturalKey?: never;
|
|
30
32
|
} | {
|
|
31
|
-
readonly
|
|
33
|
+
readonly remoteId?: never;
|
|
32
34
|
readonly naturalKey: OfflineNaturalKey;
|
|
33
35
|
};
|
|
34
36
|
/** Runtime identity policy materialized into an entity schema. */
|
|
@@ -36,8 +38,9 @@ type OfflineReplicaIdentityDescriptor = {
|
|
|
36
38
|
readonly kind: 'localOnly';
|
|
37
39
|
readonly sourceKeys: readonly [];
|
|
38
40
|
} | {
|
|
39
|
-
readonly kind: '
|
|
41
|
+
readonly kind: 'generated';
|
|
40
42
|
readonly sourceKeys: readonly [string];
|
|
43
|
+
readonly affinity: OfflineReplicaSqliteAffinity;
|
|
41
44
|
} | {
|
|
42
45
|
readonly kind: 'naturalKey';
|
|
43
46
|
readonly sourceKeys: readonly string[];
|
|
@@ -97,11 +100,14 @@ interface OfflineReplicaColumnDef<TValue = unknown, TNullable extends ReplicaNul
|
|
|
97
100
|
readonly nullable: TNullable[typeof replicaNullableBrand];
|
|
98
101
|
};
|
|
99
102
|
}
|
|
100
|
-
/** Builder marking a source property as the server-assigned identifier. */
|
|
101
|
-
interface
|
|
102
|
-
readonly kind: '
|
|
103
|
-
readonly
|
|
103
|
+
/** Builder marking a source property as the server-assigned generated identifier. */
|
|
104
|
+
interface OfflineReplicaRemoteIdDef<TAffinity extends OfflineReplicaSqliteAffinity = OfflineReplicaSqliteAffinity> {
|
|
105
|
+
readonly kind: 'remoteId';
|
|
106
|
+
readonly affinity: TAffinity;
|
|
107
|
+
readonly __types?: TAffinity extends 'INTEGER' ? {
|
|
104
108
|
readonly value: number;
|
|
109
|
+
} : {
|
|
110
|
+
readonly value: string;
|
|
105
111
|
};
|
|
106
112
|
}
|
|
107
113
|
/** Builder excluding a source property from SQLite projection. */
|
|
@@ -114,6 +120,10 @@ interface OfflineReplicaNaturalKeyDef<TKey extends string = string> {
|
|
|
114
120
|
readonly kind: 'naturalKey';
|
|
115
121
|
readonly sourceKeys: readonly TKey[];
|
|
116
122
|
}
|
|
123
|
+
/** Explicit identity for a projection that is never synchronized to a remote row. */
|
|
124
|
+
interface OfflineReplicaLocalOnlyDef {
|
|
125
|
+
readonly kind: 'localOnly';
|
|
126
|
+
}
|
|
117
127
|
type StripNullish<T> = Exclude<T, null | undefined>;
|
|
118
128
|
type NormalizeReplicaColumnValue<T> = T extends string ? string : T extends number ? number : T extends boolean ? boolean : T extends Date ? string | Date : T;
|
|
119
129
|
type StrictNullChecksEnabled = undefined extends null ? false : true;
|
|
@@ -125,7 +135,8 @@ type ReplicaColumnNullabilityForSelect<T> = StrictNullChecksEnabled extends true
|
|
|
125
135
|
readonly [replicaNullableBrand]: 'required';
|
|
126
136
|
} : ReplicaNullableBrand;
|
|
127
137
|
type OfflineReplicaColumnDefForValue<T> = OfflineReplicaColumnDef<NormalizeReplicaColumnValue<StripNullish<T>>, ReplicaColumnNullabilityForSelect<T>>;
|
|
128
|
-
type
|
|
138
|
+
type OfflineReplicaRemoteIdDefForValue<T> = StripNullish<T> extends number ? OfflineReplicaRemoteIdDef<'INTEGER'> : StripNullish<T> extends string ? OfflineReplicaRemoteIdDef<'TEXT'> : never;
|
|
139
|
+
type OfflineReplicaFieldDefForKey<TSelect extends Record<string, unknown>, K extends keyof TSelect> = OfflineReplicaRemoteIdDefForValue<TSelect[K]> | OfflineReplicaIgnoredDef | OfflineReplicaColumnDefForValue<TSelect[K]>;
|
|
129
140
|
type ExactSelectKeys<TSelect extends Record<string, unknown>, TFields> = Exclude<keyof TFields, keyof TSelect> extends never ? (Exclude<keyof TSelect, keyof TFields> extends never ? TFields : never) : never;
|
|
130
141
|
/** Configuration accepted by {@link defineReplicaEntity}. */
|
|
131
142
|
interface OfflineReplicaEntityDefinition<TSelect extends Record<string, unknown>, TFields extends {
|
|
@@ -134,7 +145,7 @@ interface OfflineReplicaEntityDefinition<TSelect extends Record<string, unknown>
|
|
|
134
145
|
readonly table: string;
|
|
135
146
|
readonly sourceKey: string;
|
|
136
147
|
readonly scope: OfflineReplicaEntityScope;
|
|
137
|
-
readonly identity?: OfflineReplicaNaturalKeyDef<Extract<keyof TSelect, string
|
|
148
|
+
readonly identity?: OfflineReplicaNaturalKeyDef<Extract<keyof TSelect, string>> | OfflineReplicaLocalOnlyDef;
|
|
138
149
|
readonly fields: ExactSelectKeys<TSelect, TFields> & TFields;
|
|
139
150
|
}
|
|
140
151
|
/**
|
|
@@ -142,7 +153,7 @@ interface OfflineReplicaEntityDefinition<TSelect extends Record<string, unknown>
|
|
|
142
153
|
*
|
|
143
154
|
* Every key in `TSelect` must appear exactly once in `fields`, and column nullability
|
|
144
155
|
* must match the select property nullability. An entity may map at most one field with
|
|
145
|
-
* {@link
|
|
156
|
+
* {@link generatedId}; omit it for local-only projections that have no remote row identity.
|
|
146
157
|
*/
|
|
147
158
|
declare function defineReplicaEntity<TSelect extends Record<string, unknown>>(): <const TFields extends { readonly [K in keyof TSelect]: OfflineReplicaFieldDefForKey<TSelect, K>; }>(definition: OfflineReplicaEntityDefinition<TSelect, TFields>) => OfflineReplicaEntitySchema<TSelect>;
|
|
148
159
|
/** Maps a non-null string source property to a TEXT column. */
|
|
@@ -163,12 +174,15 @@ declare function nullable<TValue>(column: OfflineReplicaColumnDef<TValue, {
|
|
|
163
174
|
}>): OfflineReplicaColumnDef<TValue, {
|
|
164
175
|
readonly [replicaNullableBrand]: 'nullable';
|
|
165
176
|
}>;
|
|
166
|
-
/** Maps a source property to the
|
|
167
|
-
declare function
|
|
168
|
-
|
|
177
|
+
/** Maps a source property to the nullable generated remote-id column. */
|
|
178
|
+
declare function generatedId(kind: 'integer'): OfflineReplicaRemoteIdDef<'INTEGER'>;
|
|
179
|
+
declare function generatedId(kind: 'text'): OfflineReplicaRemoteIdDef<'TEXT'>;
|
|
180
|
+
/** Declares an ordered remote natural key used directly as the scoped SQLite primary key. */
|
|
169
181
|
declare function naturalKey<const TKey extends string>(sourceKeys: readonly TKey[]): OfflineReplicaNaturalKeyDef<TKey>;
|
|
170
|
-
/**
|
|
171
|
-
declare function
|
|
182
|
+
/** Declares a projection with a local UUID address and no Outbox identity. */
|
|
183
|
+
declare function localOnly(): OfflineReplicaLocalOnlyDef;
|
|
184
|
+
/** Rejects a generated remote id on a local-only or natural-key projection before it reaches platform storage. */
|
|
185
|
+
declare function assertOfflineReplicaGeneratedRemoteId(schema: OfflineReplicaEntitySchema<Record<string, unknown>>, value: OfflineGeneratedRemoteId | null): void;
|
|
172
186
|
/** Extracts and validates an entity's natural key in declared component order. */
|
|
173
187
|
declare function offlineNaturalKeyFromValues(schema: OfflineReplicaEntitySchema<Record<string, unknown>>, values: unknown): OfflineNaturalKey | null;
|
|
174
188
|
/** Validates a supplied natural key and returns it in schema-declared order. */
|
|
@@ -184,7 +198,7 @@ declare function ignored(reason: string): OfflineReplicaIgnoredDef;
|
|
|
184
198
|
*
|
|
185
199
|
* Only {@link OfflineReplicaFieldPolicy} `column` fields are emitted, keyed by
|
|
186
200
|
* {@link OfflineReplicaFieldDescriptor.sqliteColumnName} in descriptor order.
|
|
187
|
-
* Source properties mapped as `
|
|
201
|
+
* Source properties mapped as `remoteId` or `ignored` may be present but are not encoded.
|
|
188
202
|
*/
|
|
189
203
|
declare function encodeOfflineReplicaValues(schema: OfflineReplicaEntitySchema<Record<string, unknown>>, values: unknown): Readonly<Record<string, string | number | null>>;
|
|
190
204
|
/**
|
|
@@ -199,8 +213,8 @@ declare function decodeOfflineReplicaValues(schema: OfflineReplicaEntitySchema<R
|
|
|
199
213
|
/**
|
|
200
214
|
* Validates a source-model row and returns the canonical domain projection persisted by every repository.
|
|
201
215
|
*
|
|
202
|
-
* Fields mapped as `
|
|
203
|
-
* identical; the server identifier remains available through the replica row's dedicated `
|
|
216
|
+
* Fields mapped as `remoteId` or `ignored` are intentionally omitted. This keeps web and native row shapes
|
|
217
|
+
* identical; the server identifier remains available through the replica row's dedicated `remoteId` field.
|
|
204
218
|
*/
|
|
205
219
|
declare function projectOfflineReplicaValues(schema: OfflineReplicaEntitySchema<Record<string, unknown>>, values: unknown): Readonly<Record<string, unknown>>;
|
|
206
220
|
/** Domain payload transformed during web replica schema migration. Identity and sync metadata stay outside this shape. */
|
|
@@ -222,7 +236,7 @@ interface OfflineReplicaMigration {
|
|
|
222
236
|
/**
|
|
223
237
|
* Transforms one row's domain projection for web storage during this step.
|
|
224
238
|
* The callback receives only {@link OfflineReplicaWebMigrationRow}; it must not read or mutate
|
|
225
|
-
* `localId`, `
|
|
239
|
+
* `localId`, `remoteId`, scope, revision, or `syncState`. Return `null` to delete the row.
|
|
226
240
|
*/
|
|
227
241
|
readonly migrateWebRow: OfflineReplicaWebMigrationCallback;
|
|
228
242
|
}
|
|
@@ -258,11 +272,67 @@ declare function defineOfflineReplicaSchema(definition: OfflineReplicaSchemaDefi
|
|
|
258
272
|
*/
|
|
259
273
|
declare function sha256OfflineReplicaSchema(bundle: OfflineReplicaSchemaBundle): Promise<string>;
|
|
260
274
|
|
|
275
|
+
/** Product-agnostic authenticated principal identifier. */
|
|
276
|
+
type OfflinePrincipalId = string | number;
|
|
277
|
+
/** Type-tagged SQLite/web key; numeric 7 and text "7" never share a boundary. */
|
|
278
|
+
declare function canonicalOfflinePrincipalId(value: OfflinePrincipalId): string;
|
|
279
|
+
/** Decodes a principal previously persisted by {@link canonicalOfflinePrincipalId}. */
|
|
280
|
+
declare function parseOfflinePrincipalId(value: string): OfflinePrincipalId;
|
|
281
|
+
/** Durable address of a generated or natural-key replica row. */
|
|
282
|
+
type OfflineReplicaIdentity = {
|
|
283
|
+
readonly kind: 'generated';
|
|
284
|
+
readonly localId: string;
|
|
285
|
+
readonly remoteId: OfflineGeneratedRemoteId | null;
|
|
286
|
+
} | {
|
|
287
|
+
readonly kind: 'natural';
|
|
288
|
+
readonly naturalKey: OfflineNaturalKey;
|
|
289
|
+
} | {
|
|
290
|
+
readonly kind: 'local';
|
|
291
|
+
readonly localId: string;
|
|
292
|
+
};
|
|
293
|
+
/** Outbox address. Generated ids are resolved to the latest server id immediately before transport. */
|
|
294
|
+
type OfflineCommandIdentity = {
|
|
295
|
+
readonly kind: 'generated';
|
|
296
|
+
readonly localId: string;
|
|
297
|
+
} | {
|
|
298
|
+
readonly kind: 'natural';
|
|
299
|
+
readonly naturalKey: OfflineNaturalKey;
|
|
300
|
+
};
|
|
301
|
+
/** Stable lookup address for every replica row, including local-only projections. */
|
|
302
|
+
type OfflineReplicaAddress = OfflineCommandIdentity | {
|
|
303
|
+
readonly kind: 'local';
|
|
304
|
+
readonly localId: string;
|
|
305
|
+
};
|
|
306
|
+
/** Stable storage key for one outbox or replica row identity. */
|
|
307
|
+
declare function canonicalOfflineCommandIdentity(identity: OfflineCommandIdentity): string;
|
|
308
|
+
/** Stable storage key for one materialized replica row identity. */
|
|
309
|
+
declare function canonicalOfflineReplicaIdentity(identity: OfflineReplicaIdentity): string;
|
|
310
|
+
/** JSON persisted in SQLite/web outbox rows. */
|
|
311
|
+
declare function serializeOfflineCommandIdentity(identity: OfflineCommandIdentity): string;
|
|
312
|
+
/** Parses durable outbox identity JSON. */
|
|
313
|
+
declare function parseOfflineCommandIdentity(value: unknown): OfflineCommandIdentity;
|
|
314
|
+
/** Builds a generated replica identity. */
|
|
315
|
+
declare function offlineGeneratedReplicaIdentity(localId: string, remoteId: OfflineGeneratedRemoteId | null): OfflineReplicaIdentity;
|
|
316
|
+
/** Validates a durable local row id before it can enter either storage backend. */
|
|
317
|
+
declare function assertOfflineLocalId(value: unknown): asserts value is string;
|
|
318
|
+
/** Builds a natural replica identity from current domain values. */
|
|
319
|
+
declare function offlineNaturalReplicaIdentity(schema: OfflineReplicaEntitySchema<Record<string, unknown>>, values: unknown): OfflineReplicaIdentity;
|
|
320
|
+
/** Converts a materialized replica identity into an outbox address. */
|
|
321
|
+
declare function commandIdentityFromReplicaIdentity(identity: OfflineReplicaIdentity): OfflineCommandIdentity;
|
|
322
|
+
/** Converts a materialized row identity into its immutable repository address. */
|
|
323
|
+
declare function replicaAddressFromIdentity(identity: OfflineReplicaIdentity): OfflineReplicaAddress;
|
|
324
|
+
/** Whether a command identity addresses the given replica row. */
|
|
325
|
+
declare function commandIdentityMatchesReplicaRow(schema: OfflineReplicaEntitySchema<Record<string, unknown>>, row: {
|
|
326
|
+
readonly identity: OfflineReplicaIdentity;
|
|
327
|
+
}, commandIdentity: OfflineCommandIdentity): boolean;
|
|
328
|
+
/** Remote identity used by pull reconciliation and uniqueness checks. */
|
|
329
|
+
declare function offlineReplicaRemoteIdentity(schema: OfflineReplicaEntitySchema<Record<string, unknown>>, identity: OfflineReplicaIdentity): OfflineReplicaRemoteIdentity | null;
|
|
330
|
+
|
|
261
331
|
/** Current durable storage schema used by both web and native repositories. */
|
|
262
|
-
declare const OFFLINE_SCHEMA_VERSION =
|
|
332
|
+
declare const OFFLINE_SCHEMA_VERSION = 1;
|
|
263
333
|
/** User and partition scope of all local offline data. */
|
|
264
334
|
interface OfflineScope {
|
|
265
|
-
userId:
|
|
335
|
+
userId: OfflinePrincipalId;
|
|
266
336
|
scopeId: string;
|
|
267
337
|
}
|
|
268
338
|
/** Synchronization state of a locally materialized product replica row. */
|
|
@@ -271,12 +341,13 @@ type OfflineReplicaVisibility = 'present' | 'pending_delete';
|
|
|
271
341
|
type OfflineReplicaMutation = 'upsert' | 'delete';
|
|
272
342
|
/** Durable processing state of an outbox command. */
|
|
273
343
|
type OfflineCommandState = 'pending' | 'sending' | 'retry_wait' | 'blocked_auth' | 'rejected' | 'conflict';
|
|
274
|
-
|
|
275
|
-
interface OfflineCommand<T = unknown> extends OfflineScope {
|
|
344
|
+
interface OfflineCommandBase<T> extends OfflineScope {
|
|
276
345
|
commandId: string;
|
|
277
346
|
aggregateType: string;
|
|
278
|
-
/**
|
|
279
|
-
|
|
347
|
+
/** Replica schema source key resolved when the command is enqueued. */
|
|
348
|
+
sourceKey: string;
|
|
349
|
+
/** Stable row identity. The Outbox never persists a generated server id. */
|
|
350
|
+
identity: OfflineCommandIdentity;
|
|
280
351
|
operation: string;
|
|
281
352
|
payload: T;
|
|
282
353
|
/** Full optimistic entity value displayed while this command is pending. */
|
|
@@ -291,14 +362,13 @@ interface OfflineCommand<T = unknown> extends OfflineScope {
|
|
|
291
362
|
createdAt: number;
|
|
292
363
|
lastErrorCode: string | null;
|
|
293
364
|
}
|
|
365
|
+
type OfflineCommand<T = unknown> = OfflineCommandBase<T>;
|
|
294
366
|
/** Product replica row materialized from a versioned schema entity. */
|
|
295
|
-
interface
|
|
367
|
+
interface OfflineReplicaRowBase<TValues> extends OfflineScope {
|
|
296
368
|
/** Stable source key matching {@link OfflineReplicaEntitySchema.sourceKey}. */
|
|
297
369
|
sourceKey: string;
|
|
298
|
-
/**
|
|
299
|
-
|
|
300
|
-
/** Server-assigned identifier after a successful create, otherwise null. */
|
|
301
|
-
serverId: number | null;
|
|
370
|
+
/** Row identity matching the entity schema. Natural-key rows have no synthetic ids. */
|
|
371
|
+
identity: OfflineReplicaIdentity;
|
|
302
372
|
/** Current optimistic domain values displayed locally. */
|
|
303
373
|
values: TValues;
|
|
304
374
|
/** Last server-confirmed domain values, or null while pending. */
|
|
@@ -309,15 +379,16 @@ interface OfflineReplicaRow<TValues = unknown> extends OfflineScope {
|
|
|
309
379
|
/** Library-owned visibility; pending deletes remain durable but are hidden from product reads. */
|
|
310
380
|
visibility?: OfflineReplicaVisibility;
|
|
311
381
|
}
|
|
382
|
+
type OfflineReplicaRow<TValues = unknown> = OfflineReplicaRowBase<TValues>;
|
|
312
383
|
/** Stable address of a product replica row inside a user or partition-scoped replica. */
|
|
313
384
|
interface OfflineReplicaRowKey extends OfflineScope {
|
|
314
385
|
sourceKey: string;
|
|
315
|
-
|
|
386
|
+
identity: OfflineReplicaIdentity;
|
|
316
387
|
}
|
|
317
|
-
/** Explicit one-way release of a
|
|
318
|
-
interface
|
|
319
|
-
/** The current
|
|
320
|
-
|
|
388
|
+
/** Explicit one-way release of a generated remote id during a replica delete acknowledgement. */
|
|
389
|
+
interface OfflineReplicaRemoteIdRelease extends OfflineReplicaRowKey {
|
|
390
|
+
/** The current remote id being released; the matching put row must set `remoteId` to null. */
|
|
391
|
+
remoteId: OfflineGeneratedRemoteId;
|
|
321
392
|
}
|
|
322
393
|
/** Scope partition plus the durable replica pull cursor for that partition. */
|
|
323
394
|
interface OfflineReplicaCursor extends OfflineScope {
|
|
@@ -327,10 +398,10 @@ interface OfflineReplicaCursor extends OfflineScope {
|
|
|
327
398
|
interface OfflineReplicaTransaction {
|
|
328
399
|
putRows?: readonly OfflineReplicaRow[];
|
|
329
400
|
/**
|
|
330
|
-
* Allows only the matching `
|
|
331
|
-
* All other
|
|
401
|
+
* Allows only the matching `remoteId: current -> null` transition in `putRows`.
|
|
402
|
+
* All other remote-id changes remain immutable.
|
|
332
403
|
*/
|
|
333
|
-
|
|
404
|
+
releaseRemoteIds?: readonly OfflineReplicaRemoteIdRelease[];
|
|
334
405
|
removeRows?: readonly OfflineReplicaRowKey[];
|
|
335
406
|
putCommands?: readonly OfflineCommand[];
|
|
336
407
|
removeCommandIds?: readonly string[];
|
|
@@ -339,23 +410,23 @@ interface OfflineReplicaTransaction {
|
|
|
339
410
|
/** Durable local replica and outbox persistence contract. */
|
|
340
411
|
interface OfflineRepository {
|
|
341
412
|
initialize(): Promise<void>;
|
|
342
|
-
getLastUserId(): Promise<
|
|
343
|
-
setLastUserId(userId:
|
|
344
|
-
getSessionManifest<T>(userId:
|
|
345
|
-
putSessionManifest<T>(userId:
|
|
346
|
-
getReplicaRow<TValues = unknown>(scope: OfflineScope, sourceKey: string,
|
|
413
|
+
getLastUserId(): Promise<OfflinePrincipalId | null>;
|
|
414
|
+
setLastUserId(userId: OfflinePrincipalId): Promise<void>;
|
|
415
|
+
getSessionManifest<T>(userId: OfflinePrincipalId): Promise<T | null>;
|
|
416
|
+
putSessionManifest<T>(userId: OfflinePrincipalId, value: T): Promise<void>;
|
|
417
|
+
getReplicaRow<TValues = unknown>(scope: OfflineScope, sourceKey: string, identity: OfflineReplicaAddress): Promise<OfflineReplicaRow<TValues> | null>;
|
|
347
418
|
/** Internal durable lookup used by synchronization; includes pending-delete tombstones. */
|
|
348
|
-
getReplicaRowIncludingPendingDelete?<TValues = unknown>(scope: OfflineScope, sourceKey: string,
|
|
419
|
+
getReplicaRowIncludingPendingDelete?<TValues = unknown>(scope: OfflineScope, sourceKey: string, identity: OfflineReplicaAddress): Promise<OfflineReplicaRow<TValues> | null>;
|
|
349
420
|
getReplicaRows<TValues = unknown>(scope: OfflineScope, sourceKey: string): Promise<OfflineReplicaRow<TValues>[]>;
|
|
350
|
-
|
|
421
|
+
getReplicaRowByRemoteId<TValues = unknown>(scope: OfflineScope, sourceKey: string, remoteId: OfflineGeneratedRemoteId): Promise<OfflineReplicaRow<TValues> | null>;
|
|
351
422
|
getReplicaRowByRemoteIdentity<TValues = unknown>(scope: OfflineScope, sourceKey: string, identity: OfflineReplicaRemoteIdentity): Promise<OfflineReplicaRow<TValues> | null>;
|
|
352
423
|
getReplicaCursor(scope: OfflineScope): Promise<OfflineReplicaCursor | null>;
|
|
353
424
|
getCommands(scope: OfflineScope): Promise<OfflineCommand[]>;
|
|
354
|
-
getCommandsForUser?(userId:
|
|
425
|
+
getCommandsForUser?(userId: OfflinePrincipalId): Promise<OfflineCommand[]>;
|
|
355
426
|
putCommand(command: OfflineCommand): Promise<void>;
|
|
356
427
|
replaceCommand(command: OfflineCommand): Promise<void>;
|
|
357
428
|
removeCommand(commandId: string): Promise<void>;
|
|
358
|
-
clearUser(userId:
|
|
429
|
+
clearUser(userId: OfflinePrincipalId): Promise<void>;
|
|
359
430
|
clearScope(scope: OfflineScope): Promise<void>;
|
|
360
431
|
transactReplica(transaction: OfflineReplicaTransaction): Promise<void>;
|
|
361
432
|
}
|
|
@@ -367,22 +438,22 @@ declare function selectOfflineRepository(platform: string, webRepository: Offlin
|
|
|
367
438
|
declare class IonicOfflineRepository implements OfflineRepository {
|
|
368
439
|
#private;
|
|
369
440
|
initialize(): Promise<void>;
|
|
370
|
-
getLastUserId(): Promise<
|
|
371
|
-
setLastUserId(userId:
|
|
372
|
-
getSessionManifest<T>(userId:
|
|
373
|
-
putSessionManifest<T>(userId:
|
|
374
|
-
getReplicaRow<TValues = unknown>(scope: OfflineScope, sourceKey: string,
|
|
375
|
-
getReplicaRowIncludingPendingDelete<TValues = unknown>(scope: OfflineScope, sourceKey: string,
|
|
441
|
+
getLastUserId(): Promise<OfflinePrincipalId | null>;
|
|
442
|
+
setLastUserId(userId: OfflinePrincipalId): Promise<void>;
|
|
443
|
+
getSessionManifest<T>(userId: OfflinePrincipalId): Promise<T | null>;
|
|
444
|
+
putSessionManifest<T>(userId: OfflinePrincipalId, value: T): Promise<void>;
|
|
445
|
+
getReplicaRow<TValues = unknown>(scope: OfflineScope, sourceKey: string, identity: OfflineReplicaAddress): Promise<OfflineReplicaRow<TValues> | null>;
|
|
446
|
+
getReplicaRowIncludingPendingDelete<TValues = unknown>(scope: OfflineScope, sourceKey: string, identity: OfflineReplicaAddress): Promise<OfflineReplicaRow<TValues> | null>;
|
|
376
447
|
getReplicaRows<TValues = unknown>(scope: OfflineScope, sourceKey: string): Promise<OfflineReplicaRow<TValues>[]>;
|
|
377
|
-
|
|
448
|
+
getReplicaRowByRemoteId<TValues = unknown>(scope: OfflineScope, sourceKey: string, remoteId: OfflineGeneratedRemoteId): Promise<OfflineReplicaRow<TValues> | null>;
|
|
378
449
|
getReplicaRowByRemoteIdentity<TValues = unknown>(scope: OfflineScope, sourceKey: string, identity: OfflineReplicaRemoteIdentity): Promise<OfflineReplicaRow<TValues> | null>;
|
|
379
450
|
getReplicaCursor(scope: OfflineScope): Promise<OfflineReplicaCursor | null>;
|
|
380
451
|
getCommands(scope: OfflineScope): Promise<OfflineCommand[]>;
|
|
381
|
-
getCommandsForUser(userId:
|
|
452
|
+
getCommandsForUser(userId: OfflinePrincipalId): Promise<OfflineCommand[]>;
|
|
382
453
|
putCommand(command: OfflineCommand): Promise<void>;
|
|
383
454
|
replaceCommand(command: OfflineCommand): Promise<void>;
|
|
384
455
|
removeCommand(commandId: string): Promise<void>;
|
|
385
|
-
clearUser(userId:
|
|
456
|
+
clearUser(userId: OfflinePrincipalId): Promise<void>;
|
|
386
457
|
clearScope(scope: OfflineScope): Promise<void>;
|
|
387
458
|
transactReplica(transaction: OfflineReplicaTransaction): Promise<void>;
|
|
388
459
|
static ɵfac: i0.ɵɵFactoryDeclaration<IonicOfflineRepository, never>;
|
|
@@ -435,27 +506,29 @@ declare class OfflineReplicaPullService {
|
|
|
435
506
|
|
|
436
507
|
/** Server acknowledgement used to reconcile one optimistic local mutation. */
|
|
437
508
|
interface OfflineCommandResult {
|
|
438
|
-
/**
|
|
439
|
-
|
|
509
|
+
/** Remote id returned by a successful generated-identity mutation. */
|
|
510
|
+
remoteId?: OfflineGeneratedRemoteId;
|
|
440
511
|
serverRevision?: string | number;
|
|
441
512
|
/** Full server-confirmed domain values after applying the mutation. */
|
|
442
513
|
confirmedValues?: unknown;
|
|
443
514
|
/** Removes the local replica row after a confirmed server delete. */
|
|
444
515
|
removeReplica?: boolean;
|
|
445
516
|
/**
|
|
446
|
-
* Releases the deleted row's remote
|
|
517
|
+
* Releases the deleted row's remote identity while keeping
|
|
447
518
|
* its immutable local id for a queued recreate of the same logical target.
|
|
448
519
|
*/
|
|
449
|
-
|
|
520
|
+
clearRemoteId?: boolean;
|
|
450
521
|
response?: unknown;
|
|
451
522
|
}
|
|
452
|
-
/** Target
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
523
|
+
/** Target identity resolved from the local replica immediately before transport. */
|
|
524
|
+
type OfflineCommandTarget = {
|
|
525
|
+
readonly kind: 'generated';
|
|
526
|
+
readonly localId: string;
|
|
527
|
+
readonly remoteId: OfflineGeneratedRemoteId | null;
|
|
528
|
+
} | {
|
|
529
|
+
readonly kind: 'natural';
|
|
530
|
+
readonly naturalKey: OfflineNaturalKey;
|
|
531
|
+
};
|
|
459
532
|
/** 不透明なoperationを製品APIへ送信し、local replicaへ投影するadapter。 */
|
|
460
533
|
/** Product adapter that sends commands and projects acknowledgements into entities. */
|
|
461
534
|
interface OfflineCommandExecutor {
|
|
@@ -464,7 +537,7 @@ interface OfflineCommandExecutor {
|
|
|
464
537
|
withServerRevision(command: OfflineCommand, revision: string | number): OfflineCommand;
|
|
465
538
|
/**
|
|
466
539
|
* Removes the deleted remote row's revision from a queued recreate.
|
|
467
|
-
* Required only when `
|
|
540
|
+
* Required only when `clearRemoteId` completes while later commands remain.
|
|
468
541
|
*/
|
|
469
542
|
withoutServerRevision?(command: OfflineCommand): OfflineCommand;
|
|
470
543
|
}
|
|
@@ -472,7 +545,7 @@ interface OfflineCommandExecutor {
|
|
|
472
545
|
declare const OFFLINE_COMMAND_EXECUTOR: InjectionToken<OfflineCommandExecutor>;
|
|
473
546
|
/** Authenticated user and partition scopes currently eligible for synchronization. */
|
|
474
547
|
interface OfflineSyncSession {
|
|
475
|
-
userId:
|
|
548
|
+
userId: OfflinePrincipalId;
|
|
476
549
|
scopes: OfflineScope[];
|
|
477
550
|
}
|
|
478
551
|
/** Product adapter that exposes the currently authenticated synchronization session. */
|
|
@@ -484,6 +557,25 @@ interface OfflineSyncContext {
|
|
|
484
557
|
}
|
|
485
558
|
/** DI token for authenticated synchronization context. */
|
|
486
559
|
declare const OFFLINE_SYNC_CONTEXT: InjectionToken<OfflineSyncContext>;
|
|
560
|
+
/** Resolves the transport target from a replica row. */
|
|
561
|
+
declare function offlineCommandTargetFromReplicaRow(row: {
|
|
562
|
+
readonly identity: OfflineReplicaIdentity;
|
|
563
|
+
}): OfflineCommandTarget;
|
|
564
|
+
/** Resolves a command lookup identity from an enqueue request identity. */
|
|
565
|
+
declare function offlineCommandLookupIdentity(identity: EnqueueOfflineCommandIdentity): OfflineCommandIdentity;
|
|
566
|
+
/** Enqueue identity for generated entities. */
|
|
567
|
+
interface EnqueueOfflineGeneratedIdentity {
|
|
568
|
+
readonly kind: 'generated';
|
|
569
|
+
readonly localId: string;
|
|
570
|
+
readonly remoteId?: OfflineGeneratedRemoteId | null;
|
|
571
|
+
readonly remoteIdHint?: OfflineGeneratedRemoteId | null;
|
|
572
|
+
}
|
|
573
|
+
/** Enqueue identity for natural-key entities. */
|
|
574
|
+
interface EnqueueOfflineNaturalIdentity {
|
|
575
|
+
readonly kind: 'natural';
|
|
576
|
+
readonly naturalKey: OfflineNaturalKey;
|
|
577
|
+
}
|
|
578
|
+
type EnqueueOfflineCommandIdentity = EnqueueOfflineGeneratedIdentity | EnqueueOfflineNaturalIdentity;
|
|
487
579
|
|
|
488
580
|
/** Optional product hooks for entity projection and command cleanup. */
|
|
489
581
|
interface OfflineCommandHooks {
|
|
@@ -496,7 +588,7 @@ declare const OFFLINE_COMMAND_HOOKS: InjectionToken<OfflineCommandHooks>;
|
|
|
496
588
|
|
|
497
589
|
/** Persisted identity and partition boundary for one authenticated local replica. */
|
|
498
590
|
interface OfflineSessionManifest {
|
|
499
|
-
userId:
|
|
591
|
+
userId: OfflinePrincipalId;
|
|
500
592
|
readonly scopeIds: readonly string[];
|
|
501
593
|
/** Authentication-provider subject used to distinguish users on a shared device. */
|
|
502
594
|
authSubject: string | null;
|
|
@@ -511,8 +603,8 @@ declare class OfflineSessionService {
|
|
|
511
603
|
#private;
|
|
512
604
|
readonly activeManifest: i0.Signal<OfflineSessionManifest | null>;
|
|
513
605
|
initialize(): Promise<void>;
|
|
514
|
-
activateSession(userId:
|
|
515
|
-
activateSession(userId:
|
|
606
|
+
activateSession(userId: OfflinePrincipalId, scopeIds: readonly string[], authSubject: string | null): Promise<void>;
|
|
607
|
+
activateSession(userId: OfflinePrincipalId, scopeIds: readonly string[], authSubject: string | null, lease: OfflineSessionTransitionLease): Promise<boolean>;
|
|
516
608
|
clearActiveSession(): Promise<void>;
|
|
517
609
|
/** Immediately revoke local and remote runtime access while durable cleanup is pending. */
|
|
518
610
|
revokeAccess(): void;
|
|
@@ -543,12 +635,12 @@ declare class OfflineSessionService {
|
|
|
543
635
|
activateOfflineSession(authSubject?: string | null, lease?: OfflineSessionTransitionLease): Promise<OfflineSessionManifest | null>;
|
|
544
636
|
/** Returns the session allowed to use the local replica and append outbox commands. */
|
|
545
637
|
getLocalSession(): Promise<{
|
|
546
|
-
userId:
|
|
638
|
+
userId: OfflinePrincipalId;
|
|
547
639
|
scopes: OfflineScope[];
|
|
548
640
|
} | null>;
|
|
549
641
|
/** Returns the remotely authenticated session eligible for pull and command replay. */
|
|
550
642
|
getSession(): Promise<{
|
|
551
|
-
userId:
|
|
643
|
+
userId: OfflinePrincipalId;
|
|
552
644
|
scopes: OfflineScope[];
|
|
553
645
|
} | null>;
|
|
554
646
|
static ɵfac: i0.ɵɵFactoryDeclaration<OfflineSessionService, never>;
|
|
@@ -563,11 +655,11 @@ declare class OfflineCoordinatorService {
|
|
|
563
655
|
readonly networkState: i0.Signal<_rdlabo_ionic_angular_kit_offline.OfflineNetworkState>;
|
|
564
656
|
readonly syncState: i0.Signal<_rdlabo_ionic_angular_kit_offline.OfflineSyncState>;
|
|
565
657
|
readonly pendingCount: i0.Signal<number>;
|
|
566
|
-
readonly conflicts: i0.Signal<_rdlabo_ionic_angular_kit_offline.OfflineCommand
|
|
658
|
+
readonly conflicts: i0.Signal<_rdlabo_ionic_angular_kit_offline.OfflineCommand[]>;
|
|
567
659
|
initialize(): Promise<void>;
|
|
568
|
-
activateSession(userId:
|
|
660
|
+
activateSession(userId: OfflinePrincipalId, scopeIds: readonly string[], authSubject: string | null): Promise<void>;
|
|
569
661
|
/** Installs a remotely verified identity without starting pull or outbox replay. */
|
|
570
|
-
prepareRemoteSession(userId:
|
|
662
|
+
prepareRemoteSession(userId: OfflinePrincipalId, scopeIds: readonly string[], authSubject: string | null, authLease?: OfflineSessionTransitionLease): Promise<boolean>;
|
|
571
663
|
/** Starts pull and outbox replay after the caller has published remote access. */
|
|
572
664
|
resumeRemoteSession(): Promise<void>;
|
|
573
665
|
/**
|
|
@@ -583,7 +675,7 @@ declare class OfflineCoordinatorService {
|
|
|
583
675
|
|
|
584
676
|
/** Remote identity fields required to activate an offline session boundary. */
|
|
585
677
|
interface OfflineRemoteIdentity {
|
|
586
|
-
readonly userId:
|
|
678
|
+
readonly userId: OfflinePrincipalId;
|
|
587
679
|
readonly scopeIds: readonly string[];
|
|
588
680
|
readonly authSubject: string;
|
|
589
681
|
}
|
|
@@ -778,22 +870,22 @@ type SQLiteValue = string | number | null;
|
|
|
778
870
|
declare class SqliteOfflineRepository implements OfflineRepository {
|
|
779
871
|
#private;
|
|
780
872
|
initialize(): Promise<void>;
|
|
781
|
-
getLastUserId(): Promise<
|
|
782
|
-
setLastUserId(userId:
|
|
783
|
-
getSessionManifest<T>(userId:
|
|
784
|
-
putSessionManifest<T>(userId:
|
|
785
|
-
getReplicaRow<TValues = unknown>(scope: OfflineScope, sourceKey: string,
|
|
786
|
-
getReplicaRowIncludingPendingDelete<TValues = unknown>(scope: OfflineScope, sourceKey: string,
|
|
873
|
+
getLastUserId(): Promise<OfflinePrincipalId | null>;
|
|
874
|
+
setLastUserId(userId: OfflinePrincipalId): Promise<void>;
|
|
875
|
+
getSessionManifest<T>(userId: OfflinePrincipalId): Promise<T | null>;
|
|
876
|
+
putSessionManifest<T>(userId: OfflinePrincipalId, value: T): Promise<void>;
|
|
877
|
+
getReplicaRow<TValues = unknown>(scope: OfflineScope, sourceKey: string, identity: OfflineReplicaAddress): Promise<OfflineReplicaRow<TValues> | null>;
|
|
878
|
+
getReplicaRowIncludingPendingDelete<TValues = unknown>(scope: OfflineScope, sourceKey: string, identity: OfflineReplicaAddress): Promise<OfflineReplicaRow<TValues> | null>;
|
|
787
879
|
getReplicaRows<TValues = unknown>(scope: OfflineScope, sourceKey: string): Promise<OfflineReplicaRow<TValues>[]>;
|
|
788
|
-
|
|
880
|
+
getReplicaRowByRemoteId<TValues = unknown>(scope: OfflineScope, sourceKey: string, remoteId: OfflineGeneratedRemoteId): Promise<OfflineReplicaRow<TValues> | null>;
|
|
789
881
|
getReplicaRowByRemoteIdentity<TValues = unknown>(scope: OfflineScope, sourceKey: string, identity: OfflineReplicaRemoteIdentity): Promise<OfflineReplicaRow<TValues> | null>;
|
|
790
882
|
getReplicaCursor(scope: OfflineScope): Promise<OfflineReplicaCursor | null>;
|
|
791
883
|
getCommands(scope: OfflineScope): Promise<OfflineCommand[]>;
|
|
792
|
-
getCommandsForUser(userId:
|
|
884
|
+
getCommandsForUser(userId: OfflinePrincipalId): Promise<OfflineCommand[]>;
|
|
793
885
|
putCommand(command: OfflineCommand): Promise<void>;
|
|
794
886
|
replaceCommand(command: OfflineCommand): Promise<void>;
|
|
795
887
|
removeCommand(commandId: string): Promise<void>;
|
|
796
|
-
clearUser(userId:
|
|
888
|
+
clearUser(userId: OfflinePrincipalId): Promise<void>;
|
|
797
889
|
clearScope(scope: OfflineScope): Promise<void>;
|
|
798
890
|
transactReplica(transaction: OfflineReplicaTransaction): Promise<void>;
|
|
799
891
|
static ɵfac: i0.ɵɵFactoryDeclaration<SqliteOfflineRepository, never>;
|
|
@@ -831,20 +923,7 @@ type OfflineSyncState = 'idle' | 'pending' | 'syncing' | 'attention';
|
|
|
831
923
|
interface EnqueueOfflineCommand<T = unknown> {
|
|
832
924
|
scopeId: string;
|
|
833
925
|
aggregateType: string;
|
|
834
|
-
|
|
835
|
-
aggregateLocalId: string;
|
|
836
|
-
/**
|
|
837
|
-
* Backward-compatible explicit server-id adoption. When no replica row
|
|
838
|
-
* exists, this initializes its server mapping; use `serverIdHint` for a
|
|
839
|
-
* stale product-side read that must never create such a mapping.
|
|
840
|
-
*/
|
|
841
|
-
serverId?: number | null;
|
|
842
|
-
/**
|
|
843
|
-
* Optional consistency check for an already replicated row. It is ignored
|
|
844
|
-
* when the local row does not exist, so it cannot resurrect an
|
|
845
|
-
* AUTO_INCREMENT id after delete/recreate.
|
|
846
|
-
*/
|
|
847
|
-
serverIdHint?: number | null;
|
|
926
|
+
identity: EnqueueOfflineCommandIdentity;
|
|
848
927
|
operation: string;
|
|
849
928
|
payload: T;
|
|
850
929
|
/** Full local entity value committed to the replica before the command is exposed to the UI. */
|
|
@@ -870,9 +949,9 @@ declare class OfflineOutboxCapacityError extends Error {
|
|
|
870
949
|
/** Maintains the optimistic local replica and synchronizes its durable outbox. */
|
|
871
950
|
declare class OfflineSyncService {
|
|
872
951
|
#private;
|
|
873
|
-
readonly pendingCommands: i0.Signal<OfflineCommand
|
|
952
|
+
readonly pendingCommands: i0.Signal<OfflineCommand[]>;
|
|
874
953
|
readonly pendingCount: i0.Signal<number>;
|
|
875
|
-
readonly conflicts: i0.Signal<OfflineCommand
|
|
954
|
+
readonly conflicts: i0.Signal<OfflineCommand[]>;
|
|
876
955
|
readonly syncState: i0.Signal<OfflineSyncState>;
|
|
877
956
|
constructor();
|
|
878
957
|
initialize(): Promise<void>;
|
|
@@ -918,5 +997,5 @@ declare class OfflineRequestFallbackService {
|
|
|
918
997
|
static ɵprov: i0.ɵɵInjectableDeclaration<OfflineRequestFallbackService>;
|
|
919
998
|
}
|
|
920
999
|
|
|
921
|
-
export { COMMUNITY_SQLITE, DEFAULT_OFFLINE_COMMAND_HOOKS, IonicOfflineRepository, OFFLINE_BYPASS, OFFLINE_COMMAND_EXECUTOR, OFFLINE_COMMAND_HOOKS, OFFLINE_KIT_OPTIONS, OFFLINE_REPLICA_PULLER, OFFLINE_REPOSITORY, OFFLINE_REQUEST_POLICIES, OFFLINE_RESPONSE_HEADER, OFFLINE_SCHEMA_VERSION, OFFLINE_SYNC_CONTEXT, OfflineCoordinatorService, OfflineNetworkService, OfflineOutboxCapacityError, OfflinePayloadValidationError, OfflineReplicaPullService, OfflineRequestFallbackService, OfflineRequestPolicyRegistry, OfflineSessionService, OfflineSyncService, SqliteOfflineRepository,
|
|
922
|
-
export type { CommunitySqliteConnection, CommunitySqliteDatabase, CommunitySqliteDriver, CreateOfflineAuthBridgeOptions, EnqueueOfflineCommand, OfflineAuthBridgeConfig, OfflineAuthExchangeContext, OfflineAuthExchangePhase, OfflineAuthResumeContext, OfflineCommand, OfflineCommandExecutor, OfflineCommandHooks, OfflineCommandResult, OfflineCommandState, OfflineCommandTarget, OfflineKitOptions, OfflineLogoutAction, OfflineNaturalKey, OfflineNaturalKeyValue, OfflineNetworkState, OfflineOutboxLimits, OfflineReadRequestPlan, OfflineRemoteIdentity, OfflineReplicaChange, OfflineReplicaColumnDef, OfflineReplicaCursor, OfflineReplicaEntityDefinition, OfflineReplicaEntitySchema, OfflineReplicaEntityScope, OfflineReplicaFieldDescriptor, OfflineReplicaFieldPolicy, OfflineReplicaIdentityDescriptor, OfflineReplicaIgnoredDef, OfflineReplicaMigration, OfflineReplicaMutation, OfflineReplicaNaturalKeyDef, OfflineReplicaPullPage, OfflineReplicaPullRequest, OfflineReplicaPuller, OfflineReplicaRemoteIdentity, OfflineReplicaRow, OfflineReplicaRowKey, OfflineReplicaSchemaBundle, OfflineReplicaSchemaDefinition,
|
|
1000
|
+
export { COMMUNITY_SQLITE, DEFAULT_OFFLINE_COMMAND_HOOKS, IonicOfflineRepository, OFFLINE_BYPASS, OFFLINE_COMMAND_EXECUTOR, OFFLINE_COMMAND_HOOKS, OFFLINE_KIT_OPTIONS, OFFLINE_REPLICA_PULLER, OFFLINE_REPOSITORY, OFFLINE_REQUEST_POLICIES, OFFLINE_RESPONSE_HEADER, OFFLINE_SCHEMA_VERSION, OFFLINE_SYNC_CONTEXT, OfflineCoordinatorService, OfflineNetworkService, OfflineOutboxCapacityError, OfflinePayloadValidationError, OfflineReplicaPullService, OfflineRequestFallbackService, OfflineRequestPolicyRegistry, OfflineSessionService, OfflineSyncService, SqliteOfflineRepository, assertOfflineLocalId, assertOfflineReplicaGeneratedRemoteId, assertOfflineReplicaNaturalKeyBaseline, booleanColumn, canonicalOfflineCommandIdentity, canonicalOfflinePrincipalId, canonicalOfflineRemoteIdentity, canonicalOfflineReplicaIdentity, commandIdentityFromReplicaIdentity, commandIdentityMatchesReplicaRow, createCommunitySqliteDriver, createOfflineAuthBridge, datetime, decodeOfflineReplicaValues, defineOfflineReplicaSchema, defineReplicaEntity, encodeOfflineReplicaValues, generatedId, ignored, integer, isOfflineFallbackError, json, localOnly, naturalKey, normalizeOfflineNaturalKey, nullable, offlineCommandLookupIdentity, offlineCommandTargetFromReplicaRow, offlineGeneratedReplicaIdentity, offlineInterceptor, offlineNaturalKeyFromValues, offlineNaturalReplicaIdentity, offlineReplicaRemoteIdentity, parseOfflineCommandIdentity, parseOfflinePrincipalId, projectOfflineReplicaValues, provideOffline, provideOfflineRequestPolicy, real, replicaAddressFromIdentity, selectOfflineRepository, serializeOfflineCommandIdentity, sha256OfflineReplicaSchema, text };
|
|
1001
|
+
export type { CommunitySqliteConnection, CommunitySqliteDatabase, CommunitySqliteDriver, CreateOfflineAuthBridgeOptions, EnqueueOfflineCommand, EnqueueOfflineCommandIdentity, EnqueueOfflineGeneratedIdentity, EnqueueOfflineNaturalIdentity, OfflineAuthBridgeConfig, OfflineAuthExchangeContext, OfflineAuthExchangePhase, OfflineAuthResumeContext, OfflineCommand, OfflineCommandExecutor, OfflineCommandHooks, OfflineCommandIdentity, OfflineCommandResult, OfflineCommandState, OfflineCommandTarget, OfflineGeneratedRemoteId, OfflineKitOptions, OfflineLogoutAction, OfflineNaturalKey, OfflineNaturalKeyValue, OfflineNetworkState, OfflineOutboxLimits, OfflinePrincipalId, OfflineReadRequestPlan, OfflineRemoteIdentity, OfflineReplicaAddress, OfflineReplicaChange, OfflineReplicaColumnDef, OfflineReplicaCursor, OfflineReplicaEntityDefinition, OfflineReplicaEntitySchema, OfflineReplicaEntityScope, OfflineReplicaFieldDescriptor, OfflineReplicaFieldPolicy, OfflineReplicaIdentity, OfflineReplicaIdentityDescriptor, OfflineReplicaIgnoredDef, OfflineReplicaLocalOnlyDef, OfflineReplicaMigration, OfflineReplicaMutation, OfflineReplicaNaturalKeyDef, OfflineReplicaPullPage, OfflineReplicaPullRequest, OfflineReplicaPuller, OfflineReplicaRemoteIdDef, OfflineReplicaRemoteIdRelease, OfflineReplicaRemoteIdentity, OfflineReplicaRow, OfflineReplicaRowKey, OfflineReplicaSchemaBundle, OfflineReplicaSchemaDefinition, OfflineReplicaSqliteAffinity, OfflineReplicaStorageKind, OfflineReplicaSyncState, OfflineReplicaTransaction, OfflineReplicaVisibility, OfflineReplicaWebMigrationCallback, OfflineReplicaWebMigrationResult, OfflineReplicaWebMigrationRow, OfflineRepository, OfflineRequestPlan, OfflineRequestPolicy, OfflineResponseSource, OfflineScope, OfflineSessionManifest, OfflineSessionTransitionLease, OfflineSyncContext, OfflineSyncSession, OfflineSyncState, ProvideOfflineOptions };
|