@devtron-labs/devtron-fe-common-lib 0.0.7-beta-51 → 0.0.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,263 +0,0 @@
1
- export interface MaterialType {
2
- name: string;
3
- type: string;
4
- value: string;
5
- gitMaterialId: number;
6
- id: number;
7
- isSelected: boolean;
8
- gitHostId: number;
9
- gitProviderId: number;
10
- regex?: string;
11
- isRegex: boolean;
12
- }
13
- export interface Githost {
14
- id: number;
15
- name: string;
16
- active: boolean;
17
- webhookSecret: string;
18
- webhookUrl: string;
19
- }
20
- export interface WebhookEvent {
21
- id: number;
22
- gitHostId: number;
23
- name: string;
24
- isActive: boolean;
25
- selectors: WebhookEventSelectors[];
26
- }
27
- interface WebhookEventSelectors {
28
- id: number;
29
- eventId: number;
30
- name: string;
31
- selector: string;
32
- toShowInCiFilter: boolean;
33
- fixValue: string;
34
- toShow: boolean;
35
- possibleValues: string;
36
- isActive: boolean;
37
- }
38
- export interface CiPipelineSourceTypeOption {
39
- label: string;
40
- value: string;
41
- isDisabled: boolean;
42
- isSelected: boolean;
43
- isWebhook: boolean;
44
- }
45
- export declare enum RefVariableType {
46
- GLOBAL = "GLOBAL",
47
- FROM_PREVIOUS_STEP = "FROM_PREVIOUS_STEP",
48
- NEW = "NEW"
49
- }
50
- export declare enum PluginType {
51
- INLINE = "INLINE",
52
- PLUGIN_REF = "REF_PLUGIN"
53
- }
54
- export declare enum ScriptType {
55
- SHELL = "SHELL",
56
- DOCKERFILE = "DOCKERFILE",
57
- CONTAINERIMAGE = "CONTAINER_IMAGE"
58
- }
59
- export declare enum MountPath {
60
- TRUE = "Yes",
61
- FALSE = "No"
62
- }
63
- export declare enum ConditionType {
64
- SKIP = "SKIP",
65
- TRIGGER = "TRIGGER",
66
- PASS = "PASS",
67
- FAIL = "FAIL"
68
- }
69
- export declare enum RefVariableStageType {
70
- PRE_CI = "PRE_CI",
71
- POST_CI = "POST_CI"
72
- }
73
- export interface VariableType {
74
- id: number;
75
- name: string;
76
- value: string;
77
- format: string;
78
- description: string;
79
- defaultValue: string;
80
- variableType: RefVariableType;
81
- refVariableStepIndex: number;
82
- refVariableName: string;
83
- refVariableStage?: RefVariableStageType;
84
- variableStepIndexInPlugin?: number;
85
- }
86
- interface CommandArgsMap {
87
- command: string;
88
- args: string[];
89
- }
90
- export interface PortMapType {
91
- portOnLocal: number;
92
- portOnContainer: number;
93
- }
94
- interface ConditionDetails {
95
- id: number;
96
- conditionOnVariable: string;
97
- conditionOperator: string;
98
- conditionType: ConditionType;
99
- conditionalValue: string;
100
- }
101
- interface InlineStepDetailType {
102
- scriptType: ScriptType;
103
- isMountCustomScript?: boolean;
104
- script?: string;
105
- dockerFileExists?: boolean;
106
- mountPath?: string;
107
- mountCodeToContainer?: boolean;
108
- mountDirectoryFromHost?: boolean;
109
- containerImagePath?: string;
110
- imagePullSecret?: string;
111
- commandArgsMap?: CommandArgsMap[];
112
- portMap?: PortMapType[];
113
- mountPathMap?: {
114
- filePathOnDisk: string;
115
- filePathOnContainer: string;
116
- }[];
117
- inputVariables?: VariableType[];
118
- outputVariables?: VariableType[];
119
- conditionDetails: ConditionDetails[];
120
- }
121
- interface PluginRefStepDetailType {
122
- id: number;
123
- pluginId: number;
124
- inputVariables?: VariableType[];
125
- outputVariables?: VariableType[];
126
- conditionDetails?: ConditionDetails[];
127
- }
128
- export interface StepType {
129
- id: number;
130
- index: number;
131
- name: string;
132
- description: string;
133
- stepType: PluginType;
134
- outputDirectoryPath: string[];
135
- inlineStepDetail?: InlineStepDetailType;
136
- pluginRefStepDetail?: PluginRefStepDetailType;
137
- triggerIfParentStageFail: boolean;
138
- isMandatory?: boolean;
139
- }
140
- export interface BuildStageType {
141
- id: number;
142
- steps: StepType[];
143
- }
144
- export declare enum CIBuildType {
145
- SELF_DOCKERFILE_BUILD_TYPE = "self-dockerfile-build",
146
- MANAGED_DOCKERFILE_BUILD_TYPE = "managed-dockerfile-build",
147
- BUILDPACK_BUILD_TYPE = "buildpack-build"
148
- }
149
- export interface BuildPackConfigType {
150
- builderId: string;
151
- language: string;
152
- languageVersion: string;
153
- projectPath: string;
154
- builderLangEnvParam?: string;
155
- currentBuilderLangEnvParam?: string;
156
- buildPacks?: any;
157
- args?: Record<string, string>;
158
- }
159
- export interface DockerBuildConfigType {
160
- dockerfileContent: string;
161
- dockerfileRelativePath: string;
162
- buildContext: string;
163
- dockerfilePath?: string;
164
- dockerfileRepository?: string;
165
- args?: Record<string, string>;
166
- targetPlatform?: any;
167
- language?: string;
168
- languageFramework?: string;
169
- }
170
- export interface CIBuildConfigType {
171
- buildPackConfig: BuildPackConfigType;
172
- ciBuildType: CIBuildType;
173
- dockerBuildConfig: DockerBuildConfigType;
174
- gitMaterialId: number;
175
- buildContextGitMaterialId: number;
176
- id?: number;
177
- }
178
- export interface DockerConfigOverrideType {
179
- dockerRegistry: string;
180
- dockerRepository: string;
181
- ciBuildConfig: CIBuildConfigType;
182
- }
183
- export interface FormType {
184
- name: string;
185
- args: {
186
- key: string;
187
- value: string;
188
- }[];
189
- materials: MaterialType[];
190
- gitHost: Githost;
191
- webhookEvents: WebhookEvent[];
192
- ciPipelineSourceTypeOptions: CiPipelineSourceTypeOption[];
193
- webhookConditionList: {
194
- selectorId: number;
195
- value: string;
196
- }[];
197
- triggerType: string;
198
- scanEnabled?: boolean;
199
- beforeDockerBuildScripts?: {
200
- id: number;
201
- name: string;
202
- outputLocation: string;
203
- script: string;
204
- isCollapsed: boolean;
205
- index: number;
206
- }[];
207
- afterDockerBuildScripts?: {
208
- id: number;
209
- name: string;
210
- outputLocation: string;
211
- script: string;
212
- isCollapsed: boolean;
213
- index: number;
214
- }[];
215
- ciPipelineEditable: true;
216
- preBuildStage?: BuildStageType;
217
- postBuildStage?: BuildStageType;
218
- isDockerConfigOverridden?: boolean;
219
- dockerConfigOverride?: DockerConfigOverrideType;
220
- }
221
- export interface ErrorObj {
222
- isValid: boolean;
223
- message: string | null;
224
- }
225
- export interface TaskErrorObj {
226
- isValid: boolean;
227
- name: ErrorObj;
228
- inlineStepDetail?: {
229
- inputVariables?: ErrorObj[];
230
- outputVariables?: ErrorObj[];
231
- };
232
- pluginRefStepDetail?: {
233
- inputVariables?: ErrorObj[];
234
- outputVariables?: ErrorObj[];
235
- };
236
- }
237
- export interface FormErrorObjectType {
238
- name: ErrorObj;
239
- materials?: MaterialType[];
240
- preBuildStage?: {
241
- isValid: boolean;
242
- steps: TaskErrorObj[];
243
- };
244
- buildStage?: {
245
- isValid: boolean;
246
- name: ErrorObj;
247
- };
248
- postBuildStage?: {
249
- isValid: boolean;
250
- steps: TaskErrorObj[];
251
- };
252
- }
253
- export interface PluginDetailType {
254
- id: number;
255
- name: string;
256
- type: string;
257
- description: string;
258
- icon: string;
259
- tags: string[];
260
- inputVariables?: VariableType[];
261
- outputVariables?: VariableType[];
262
- }
263
- export {};
@@ -1,3 +0,0 @@
1
- <svg xmlns="http://www.w3.org/2000/svg" width="24" height="24" viewBox="0 0 24 24">
2
- <path fill="#767D84" fill-rule="evenodd" d="M12 2c5.523 0 10 4.477 10 10s-4.477 10-10 10S2 17.523 2 12 6.477 2 12 2zm-.205 12.868c-.615 0-1.12.505-1.12 1.12 0 .617.505 1.121 1.12 1.121.615 0 1.12-.504 1.12-1.12 0-.616-.506-1.12-1.12-1.12zM11.863 7c-1.667 0-3.197 1.187-3.196 2.527 0 .546.41.833.888.833 1.325 0 .642-1.803 2.39-1.803.82 0 1.311.438 1.311 1.175 0 1.34-2.39 1.708-2.39 3.334 0 .438.287.915.874.915.902 0 .792-.67 1.12-1.148.438-.642 2.473-1.325 2.473-3.101 0-1.927-1.721-2.732-3.47-2.732z"/>
3
- </svg>
@@ -1,275 +0,0 @@
1
- export interface MaterialType {
2
- name: string
3
- type: string
4
- value: string
5
- gitMaterialId: number
6
- id: number
7
- isSelected: boolean
8
- gitHostId: number
9
- gitProviderId: number
10
- regex?: string
11
- isRegex: boolean
12
- }
13
-
14
- export interface Githost {
15
- id: number
16
- name: string
17
- active: boolean
18
- webhookSecret: string
19
- webhookUrl: string
20
- }
21
-
22
- export interface WebhookEvent {
23
- id: number
24
- gitHostId: number
25
- name: string
26
- isActive: boolean
27
- selectors: WebhookEventSelectors[]
28
- }
29
-
30
- interface WebhookEventSelectors {
31
- id: number
32
- eventId: number
33
- name: string
34
- selector: string
35
- toShowInCiFilter: boolean
36
- fixValue: string
37
- toShow: boolean
38
- possibleValues: string
39
- isActive: boolean
40
- }
41
-
42
- export interface CiPipelineSourceTypeOption {
43
- label: string
44
- value: string
45
- isDisabled: boolean
46
- isSelected: boolean
47
- isWebhook: boolean
48
- }
49
-
50
- export enum RefVariableType {
51
- GLOBAL = 'GLOBAL',
52
- FROM_PREVIOUS_STEP = 'FROM_PREVIOUS_STEP',
53
- NEW = 'NEW',
54
- }
55
-
56
- export enum PluginType {
57
- INLINE = 'INLINE',
58
- PLUGIN_REF = 'REF_PLUGIN',
59
- }
60
-
61
- export enum ScriptType {
62
- SHELL = 'SHELL',
63
- DOCKERFILE = 'DOCKERFILE',
64
- CONTAINERIMAGE = 'CONTAINER_IMAGE',
65
- }
66
-
67
- export enum MountPath {
68
- TRUE = 'Yes',
69
- FALSE = 'No',
70
- }
71
-
72
- export enum ConditionType {
73
- SKIP = 'SKIP',
74
- TRIGGER = 'TRIGGER',
75
- PASS = 'PASS',
76
- FAIL = 'FAIL',
77
- }
78
-
79
- export enum RefVariableStageType {
80
- PRE_CI = 'PRE_CI',
81
- POST_CI = 'POST_CI',
82
- }
83
-
84
- export interface VariableType {
85
- id: number
86
- name: string
87
- value: string
88
- format: string
89
- description: string
90
- defaultValue: string
91
- variableType: RefVariableType
92
- refVariableStepIndex: number
93
- refVariableName: string
94
- refVariableStage?: RefVariableStageType
95
- variableStepIndexInPlugin?: number
96
- }
97
-
98
- interface CommandArgsMap {
99
- command: string
100
- args: string[]
101
- }
102
-
103
- export interface PortMapType {
104
- portOnLocal: number
105
- portOnContainer: number
106
- }
107
- interface ConditionDetails {
108
- id: number
109
- conditionOnVariable: string
110
- conditionOperator: string
111
- conditionType: ConditionType
112
- conditionalValue: string
113
- }
114
-
115
- interface InlineStepDetailType {
116
- scriptType: ScriptType
117
- isMountCustomScript?: boolean
118
- script?: string
119
- dockerFileExists?: boolean
120
- mountPath?: string
121
- mountCodeToContainer?: boolean
122
- mountDirectoryFromHost?: boolean
123
- containerImagePath?: string
124
- imagePullSecret?: string
125
- commandArgsMap?: CommandArgsMap[]
126
- portMap?: PortMapType[]
127
- mountPathMap?: {
128
- filePathOnDisk: string
129
- filePathOnContainer: string
130
- }[]
131
- inputVariables?: VariableType[]
132
- outputVariables?: VariableType[]
133
- conditionDetails: ConditionDetails[]
134
- }
135
-
136
- interface PluginRefStepDetailType {
137
- id: number
138
- pluginId: number
139
- inputVariables?: VariableType[]
140
- outputVariables?: VariableType[]
141
- conditionDetails?: ConditionDetails[]
142
- }
143
-
144
- export interface StepType {
145
- id: number
146
- index: number
147
- name: string
148
- description: string
149
- stepType: PluginType
150
- outputDirectoryPath: string[]
151
- inlineStepDetail?: InlineStepDetailType
152
- pluginRefStepDetail?: PluginRefStepDetailType
153
- triggerIfParentStageFail: boolean
154
- isMandatory?: boolean
155
- }
156
-
157
- export interface BuildStageType {
158
- id: number
159
- steps: StepType[]
160
- }
161
-
162
- export enum CIBuildType {
163
- SELF_DOCKERFILE_BUILD_TYPE = 'self-dockerfile-build',
164
- MANAGED_DOCKERFILE_BUILD_TYPE = 'managed-dockerfile-build',
165
- BUILDPACK_BUILD_TYPE = 'buildpack-build',
166
- }
167
-
168
- export interface BuildPackConfigType {
169
- builderId: string
170
- language: string
171
- languageVersion: string
172
- projectPath: string
173
- builderLangEnvParam?: string
174
- currentBuilderLangEnvParam?: string
175
- buildPacks?: any
176
- args?: Record<string, string>
177
- }
178
-
179
- export interface DockerBuildConfigType {
180
- dockerfileContent: string
181
- dockerfileRelativePath: string
182
- buildContext: string
183
- dockerfilePath?: string
184
- dockerfileRepository?: string
185
- args?: Record<string, string>
186
- targetPlatform?: any
187
- language?: string
188
- languageFramework?: string
189
- }
190
-
191
- export interface CIBuildConfigType {
192
- buildPackConfig: BuildPackConfigType
193
- ciBuildType: CIBuildType
194
- dockerBuildConfig: DockerBuildConfigType
195
- gitMaterialId: number
196
- buildContextGitMaterialId: number
197
- id?: number
198
- }
199
-
200
- export interface DockerConfigOverrideType {
201
- dockerRegistry: string
202
- dockerRepository: string
203
- ciBuildConfig: CIBuildConfigType
204
- }
205
-
206
- export interface FormType {
207
- name: string
208
- args: { key: string; value: string }[]
209
- materials: MaterialType[]
210
- gitHost: Githost
211
- webhookEvents: WebhookEvent[]
212
- ciPipelineSourceTypeOptions: CiPipelineSourceTypeOption[]
213
- webhookConditionList: { selectorId: number; value: string }[]
214
- triggerType: string
215
- scanEnabled?: boolean
216
- beforeDockerBuildScripts?: {
217
- id: number
218
- name: string
219
- outputLocation: string
220
- script: string
221
- isCollapsed: boolean
222
- index: number
223
- }[]
224
- afterDockerBuildScripts?: {
225
- id: number
226
- name: string
227
- outputLocation: string
228
- script: string
229
- isCollapsed: boolean
230
- index: number
231
- }[]
232
- ciPipelineEditable: true
233
- preBuildStage?: BuildStageType
234
- postBuildStage?: BuildStageType
235
- isDockerConfigOverridden?: boolean
236
- dockerConfigOverride?: DockerConfigOverrideType
237
- }
238
-
239
- export interface ErrorObj {
240
- isValid: boolean
241
- message: string | null
242
- }
243
- export interface TaskErrorObj {
244
- isValid: boolean
245
- name: ErrorObj
246
- inlineStepDetail?: { inputVariables?: ErrorObj[]; outputVariables?: ErrorObj[] }
247
- pluginRefStepDetail?: { inputVariables?: ErrorObj[]; outputVariables?: ErrorObj[] }
248
- }
249
- export interface FormErrorObjectType {
250
- name: ErrorObj
251
- materials?: MaterialType[]
252
- preBuildStage?: {
253
- isValid: boolean
254
- steps: TaskErrorObj[]
255
- }
256
- buildStage?: {
257
- isValid: boolean
258
- name: ErrorObj
259
- }
260
- postBuildStage?: {
261
- isValid: boolean
262
- steps: TaskErrorObj[]
263
- }
264
- }
265
-
266
- export interface PluginDetailType {
267
- id: number
268
- name: string
269
- type: string
270
- description: string
271
- icon: string
272
- tags: string[]
273
- inputVariables?: VariableType[]
274
- outputVariables?: VariableType[]
275
- }