import { CrudBatch } from './CrudBatch.js'; import { CrudEntry } from './CrudEntry.js'; export class CrudTransaction extends CrudBatch { constructor( /** * List of client-side changes. */ public crud: CrudEntry[], /** * Call to remove the changes from the local queue, once successfully uploaded. */ public complete: (checkpoint?: string) => Promise, /** * If null, this contains a list of changes recorded without an explicit transaction associated. */ public transactionId?: number ) { super(crud, false, complete); } }