mirror of
https://github.com/whyour/qinglong.git
synced 2026-09-20 16:07:11 +08:00
21 lines
743 B
TypeScript
21 lines
743 B
TypeScript
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>>;
|
|
}
|