-
Notifications
You must be signed in to change notification settings - Fork 157
Expand file tree
/
Copy pathtypes.ts
More file actions
113 lines (102 loc) · 2.38 KB
/
types.ts
File metadata and controls
113 lines (102 loc) · 2.38 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
/* The scope `internal_system` isn't a valid scope in the API. Env vars with
* this scope can't be set by end users.
* New features can use this scope to pass data to lagoon builds as a "hack."
*/
export enum InternalEnvVariableScope {
INTERNAL_SYSTEM = 'internal_system',
}
export enum DeployType {
BRANCH = 'branch',
PULLREQUEST = 'pullrequest',
PROMOTE = 'promote'
}
export enum DeploymentSourceType {
API = 'api',
WEBHOOK = 'webhook'
}
export enum DeploymentBuildType {
BUILD = 'build',
VARIABLES = 'variables'
}
export enum TaskStatusType {
NEW = 'new',
PENDING = 'pending',
RUNNING = 'running',
CANCELLED = 'cancelled',
ERROR = 'error',
FAILED = 'failed',
COMPLETE = 'complete',
QUEUED = 'queued',
ACTIVE = 'active',
SUCCEEDED = 'succeeded',
}
export enum TaskSourceType {
API = 'api'
}
export enum AuditSourceType {
API = 'api',
CLI = 'cli',
UI = 'ui'
}
export enum AuditType {
BACKUP = 'backup',
BULKDEPLOYMENT = 'bulkdeployment',
DEPLOYMENT = 'deployment',
DEPLOYTARGET = 'deploytarget',
DEPLOYTARGETCONFIG = 'deploytargetconfig',
ENVIRONMENT = 'environment',
GROUP = 'group',
NOTIFICATION = 'notification',
ORGANIZATION = 'organization',
PROJECT = 'project',
SSHKEY = 'sshkey',
TASK = 'task',
USER = 'user',
VARIABLE = 'variable',
FILE = 'file',
}
export enum RouteType {
STANDARD = 'standard',
STANDBY = 'standby',
ACTIVE = 'active'
}
export enum RouteSource {
API = 'api',
YAML = 'yaml',
AUTOGENERATED = 'autogenerated'
}
export interface DeployData {
baseBranchName?: string,
baseSha?: string,
branchName: string,
buildName: string,
buildPriority?: number,
buildVariables?: Array<{name: string, value: string}>,
bulkId?: string,
bulkName?: string,
headBranchName?: string,
headSha?: string,
projectName: string,
promoteSourceEnvironment?: string,
pullrequestNumber?: number,
pullrequestTitle?: string,
pullrequestUrl?: string,
repoName?: string,
repoUrl?: string,
sha?: string,
sourceType: DeploymentSourceType,
sourceUser?: string,
buildType?: DeploymentBuildType,
type: DeployType;
}
export interface RemoveData {
branch?: string;
branchName?: string;
forceDeleteProductionEnvironment?: boolean;
openshiftProjectName?: string;
projectName: string;
pullrequest?: string;
pullrequestNumber?: number;
pullrequestTitle?: string;
type: DeployType;
}