mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-20 16:07:11 +08:00
feat(ql3): establish 3.0 incubation baseline
This commit is contained in:
@@ -0,0 +1,20 @@
|
||||
import type { ApprovedRunCreationPlan } from '../domain/approvedRunAction';
|
||||
import type { ApprovedActionDispatchExecutionSnapshot } from '../domain/approvedActionDispatchExecution';
|
||||
import type { RunAttemptRecord, RunRecord } from '../domain/run';
|
||||
|
||||
export interface ApprovedRunReference {
|
||||
run: Readonly<RunRecord>;
|
||||
attempt: Readonly<RunAttemptRecord>;
|
||||
}
|
||||
|
||||
export interface CreateApprovedRunCommand {
|
||||
snapshot: Readonly<ApprovedActionDispatchExecutionSnapshot>;
|
||||
plan: Readonly<ApprovedRunCreationPlan>;
|
||||
}
|
||||
|
||||
export interface ApprovedRunActionRepository {
|
||||
/** Creates the Run aggregate and its bound success receipt atomically. */
|
||||
create(
|
||||
command: Readonly<CreateApprovedRunCommand>,
|
||||
): Promise<Readonly<ApprovedRunReference>>;
|
||||
}
|
||||
Reference in New Issue
Block a user