mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-22 10:32:40 +08:00
feat(ql3): establish 3.0 incubation baseline
This commit is contained in:
@@ -0,0 +1,24 @@
|
||||
import type { WorkerExecutionOfferJournalRecord } from '../domain/workerExecutionOffer';
|
||||
|
||||
export type WorkerExecutionOfferJournalCreateResult = 'created' | 'exists';
|
||||
|
||||
export interface WorkerExecutionOfferJournalPage {
|
||||
records: readonly WorkerExecutionOfferJournalRecord[];
|
||||
nextAfterOfferId?: string;
|
||||
}
|
||||
|
||||
export interface WorkerExecutionOfferJournal {
|
||||
create(
|
||||
record: WorkerExecutionOfferJournalRecord,
|
||||
): Promise<WorkerExecutionOfferJournalCreateResult>;
|
||||
read(offerId: string): Promise<WorkerExecutionOfferJournalRecord | undefined>;
|
||||
replace(
|
||||
record: WorkerExecutionOfferJournalRecord,
|
||||
expectedRevision: number,
|
||||
): Promise<void>;
|
||||
remove(offerId: string, expectedRevision?: number): Promise<boolean>;
|
||||
list(options?: {
|
||||
afterOfferId?: string;
|
||||
limit?: number;
|
||||
}): Promise<WorkerExecutionOfferJournalPage>;
|
||||
}
|
||||
Reference in New Issue
Block a user