certimate/ui/src/domain/deployment.ts
2024-08-29 21:41:55 +08:00

35 lines
549 B
TypeScript

import { Domain } from "./domain";
export type Deployment = {
id: string;
domain: string;
log: {
apply?: Log[];
check?: Log[];
deploy?: Log[];
};
phase: Pahse;
phaseSuccess: boolean;
deployedAt: string;
created: string;
updated: string;
expand: {
domain?: Domain;
};
};
export type Pahse = "apply" | "check" | "deploy";
export type Log = {
time: string;
message: string;
error: string;
info?: string[];
};
export type DeploymentListReq = {
domain?: string;
page?: number;
perPage?: number;
};