Skip to content

Commit 9ace710

Browse files
authored
Merge pull request #224 from platformsh/provide-deployment_state-at-root-level
add deployment_state to the root level environment object
2 parents fe28553 + 7afdf4a commit 9ace710

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/model/Environment.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,12 @@ export enum Status {
4444
deleting = "deleting"
4545
};
4646

47+
interface DeploymentState {
48+
crons: object;
49+
last_deployment_at: string | null;
50+
last_deployment_successful: boolean;
51+
}
52+
4753
export default class Environment extends Ressource {
4854
id: string = ""
4955
status: Status = Status.inactive;
@@ -62,6 +68,7 @@ export default class Environment extends Ressource {
6268
enable_smtp: boolean = false;
6369
has_code: boolean = false;
6470
deployment_target: string = "";
71+
deployment_state: DeploymentState | object = {};
6572
http_access = {};
6673
is_main: boolean = false;
6774
type: string = "";

0 commit comments

Comments
 (0)