@rdlabo/ionic-angular-kit 21.5.27 → 21.5.29

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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rdlabo/ionic-angular-kit",
3
- "version": "21.5.27",
3
+ "version": "21.5.29",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/rdlabo-team/ionic-angular-library.git"
@@ -596,6 +596,12 @@ interface OfflineCommandExecutor {
596
596
  /** Sends the command using `command.commandId` as its durable server-side idempotency key. */
597
597
  execute(command: OfflineCommand, target: OfflineCommandTarget): Promise<OfflineCommandResult>;
598
598
  withServerRevision(command: OfflineCommand, revision: string | number): OfflineCommand;
599
+ /**
600
+ * Whether this transport error authoritatively proves that this idempotency
601
+ * key did not commit. Returning true may clear an ambiguity retained from an
602
+ * earlier response-loss attempt and expose normal conflict resolution.
603
+ */
604
+ provesCommandNotCommitted?(error: unknown, command: OfflineCommand): boolean;
599
605
  /**
600
606
  * Removes the deleted remote row's revision from a queued recreate.
601
607
  * Required only when `clearRemoteId` completes while later commands remain.
@@ -1164,6 +1170,27 @@ declare class OfflineSyncService {
1164
1170
  enqueuePrepared<T>(prepare: (repository: OfflineRepository) => Promise<PreparedOfflineCommand<T>>, options?: {
1165
1171
  flush?: boolean;
1166
1172
  }): Promise<string>;
1173
+ /**
1174
+ * Prepares and commits multiple Outbox commands as one serialized replica
1175
+ * transaction under a single captured session generation.
1176
+ *
1177
+ * All entries are prepared and validated before any write. Empty batches,
1178
+ * overlapping aggregate intents, and overlapping replica footprints are
1179
+ * rejected with no durable state change.
1180
+ */
1181
+ enqueuePreparedBatch<T>(prepare: (repository: OfflineRepository) => Promise<readonly PreparedOfflineCommand<T>[]>, options?: {
1182
+ flush?: boolean;
1183
+ }): Promise<readonly string[]>;
1184
+ /**
1185
+ * Atomically replaces a resolved durable command with a newly prepared command.
1186
+ *
1187
+ * Use this after an authoritative conflict read. The old intent remains durable
1188
+ * until validation, capacity checks, optimistic projection and replacement
1189
+ * command preparation have all succeeded.
1190
+ */
1191
+ replacePrepared<T>(commandId: string, prepare: (repository: OfflineRepository) => Promise<PreparedOfflineCommand<T>>, options?: {
1192
+ flush?: boolean;
1193
+ }): Promise<string>;
1167
1194
  /**
1168
1195
  * Serializes a product-owned replica projection with enqueue and command ACK
1169
1196
  * reconciliation. For read/derive/write cache updates, prefer