@g9tm/syncdata 1.5.2 → 1.5.4

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.
@@ -73,6 +73,12 @@ export declare class G9SyncEngine {
73
73
  discardQuarantined(localTable?: string | null, key?: string | null, signal?: AbortSignal): Promise<number>;
74
74
  getRetained(signal?: AbortSignal): Promise<G9RetainedRow[]>;
75
75
  retryRejected(localTable?: string | null, key?: string | null, signal?: AbortSignal): Promise<number>;
76
+ /**
77
+ * Gives up the local change of rejected rows and takes the server's copy (LES-0070, .NET `RevertRejectedAsync`): a row the server
78
+ * never had is removed locally, any other is fetched again by the next run with `forceReconcile` - run one after this. Nothing is
79
+ * uploaded. Omitted arguments widen the scope.
80
+ */
81
+ revertRejected(localTable?: string | null, key?: string | null, signal?: AbortSignal): Promise<number>;
76
82
  readChangeFeed(localTable: string, afterSequence: number, limit?: number, signal?: AbortSignal): Promise<G9ChangeFeedEntry[]>;
77
83
  /**
78
84
  * The change feed for one table narrowed to the keys `keyFilter` selects (plus every deletion), so a projection of one site does
@@ -236,6 +236,15 @@ export class G9SyncEngine {
236
236
  await this.initialize(signal);
237
237
  return this._store.retryRejected(localTable !== null && localTable !== void 0 ? localTable : null, key !== null && key !== void 0 ? key : null, signal);
238
238
  }
239
+ /**
240
+ * Gives up the local change of rejected rows and takes the server's copy (LES-0070, .NET `RevertRejectedAsync`): a row the server
241
+ * never had is removed locally, any other is fetched again by the next run with `forceReconcile` - run one after this. Nothing is
242
+ * uploaded. Omitted arguments widen the scope.
243
+ */
244
+ async revertRejected(localTable, key, signal) {
245
+ await this.initialize(signal);
246
+ return this._store.revertRejected(localTable !== null && localTable !== void 0 ? localTable : null, key !== null && key !== void 0 ? key : null, signal);
247
+ }
239
248
  async readChangeFeed(localTable, afterSequence, limit = 1000, signal) {
240
249
  await this.initialize(signal);
241
250
  return this._store.readChangeFeed(localTable, afterSequence, limit, signal);