init
This commit is contained in:
25
ui/src/domain/domain.ts
Normal file
25
ui/src/domain/domain.ts
Normal file
@@ -0,0 +1,25 @@
|
||||
import { Deployment, Pahse } from "./deployment";
|
||||
|
||||
export type Domain = {
|
||||
id: string;
|
||||
domain: string;
|
||||
crontab: string;
|
||||
access: string;
|
||||
targetAccess: string;
|
||||
targetType: string;
|
||||
expiredAt?: string;
|
||||
phase?: Pahse;
|
||||
phaseSuccess?: boolean;
|
||||
lastDeployedAt?: string;
|
||||
enabled?: boolean;
|
||||
created?: string;
|
||||
updated?: string;
|
||||
deleted?: string;
|
||||
expand?: {
|
||||
lastDeployment?: Deployment;
|
||||
};
|
||||
};
|
||||
|
||||
export const getLastDeployment = (domain: Domain): Deployment | undefined => {
|
||||
return domain.expand?.lastDeployment;
|
||||
};
|
||||
Reference in New Issue
Block a user