@devtron-labs/devtron-fe-common-lib 0.0.9 → 0.0.10-beta-2
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.
- package/dist/Common/CIPipeline.Types.d.ts +265 -0
- package/dist/Common/Constants.d.ts +5 -0
- package/dist/Common/Dialogs/Types.d.ts +1 -0
- package/dist/Common/Helper.d.ts +1 -0
- package/dist/Common/Policy.Types.d.ts +55 -0
- package/dist/Common/Types.d.ts +51 -24
- package/dist/Common/index.d.ts +2 -0
- package/dist/index.js +6023 -224
- package/package.json +2 -1
- package/src/Assets/Icon/ic-help.svg +3 -0
- package/src/Common/CIPipeline.Types.ts +277 -0
- package/src/Common/Constants.ts +6 -0
- package/src/Common/Dialogs/DeleteDialog.tsx +45 -27
- package/src/Common/Dialogs/Types.ts +1 -0
- package/src/Common/Helper.tsx +15 -0
- package/src/Common/Policy.Types.ts +62 -0
- package/src/Common/TippyCustomized.tsx +31 -2
- package/src/Common/Types.ts +66 -34
- package/src/Common/index.ts +2 -0
- /package/src/Assets/Img/{warning-medium.svg → delete-medium.svg} +0 -0
package/src/Common/Types.ts
CHANGED
|
@@ -52,6 +52,8 @@ export interface TippyCustomizedProps {
|
|
|
52
52
|
theme: TippyTheme
|
|
53
53
|
visible?: boolean
|
|
54
54
|
heading?: ReactNode | string
|
|
55
|
+
headingInfo?: ReactNode | string
|
|
56
|
+
noHeadingBorder?: boolean
|
|
55
57
|
infoTextHeading?: string
|
|
56
58
|
placement: Placement
|
|
57
59
|
className?: string
|
|
@@ -186,7 +188,7 @@ export enum DeploymentNodeType {
|
|
|
186
188
|
PRECD = 'PRECD',
|
|
187
189
|
CD = 'CD',
|
|
188
190
|
POSTCD = 'POSTCD',
|
|
189
|
-
APPROVAL = 'APPROVAL'
|
|
191
|
+
APPROVAL = 'APPROVAL',
|
|
190
192
|
}
|
|
191
193
|
|
|
192
194
|
export interface UserApprovalConfigType {
|
|
@@ -209,6 +211,34 @@ export interface UserApprovalMetadataType {
|
|
|
209
211
|
requestedUserData: ApprovalUserDataType
|
|
210
212
|
}
|
|
211
213
|
|
|
214
|
+
|
|
215
|
+
export interface CDMaterialType {
|
|
216
|
+
index: number
|
|
217
|
+
id: string
|
|
218
|
+
materialInfo: MaterialInfo[]
|
|
219
|
+
tab: CDModalTabType
|
|
220
|
+
scanEnabled: boolean
|
|
221
|
+
scanned: boolean
|
|
222
|
+
vulnerabilitiesLoading: boolean
|
|
223
|
+
lastExecution: string //timestamp
|
|
224
|
+
vulnerabilities: VulnerabilityType[]
|
|
225
|
+
vulnerable: boolean
|
|
226
|
+
deployedTime: string
|
|
227
|
+
deployedBy?: string
|
|
228
|
+
wfrId?: number
|
|
229
|
+
buildTime: string
|
|
230
|
+
image: string
|
|
231
|
+
isSelected: boolean
|
|
232
|
+
showSourceInfo: boolean
|
|
233
|
+
latest: boolean
|
|
234
|
+
runningOnParentCd?: boolean
|
|
235
|
+
userApprovalMetadata?: UserApprovalMetadataType
|
|
236
|
+
triggeredBy?: number
|
|
237
|
+
imageComment?: ImageComment
|
|
238
|
+
imageReleaseTags?: ReleaseTag[]
|
|
239
|
+
artifactStatus?: string
|
|
240
|
+
}
|
|
241
|
+
|
|
212
242
|
export interface CommonNodeAttr {
|
|
213
243
|
connectingCiPipelineId?: number
|
|
214
244
|
parents: string | number[] | string[]
|
|
@@ -257,23 +287,30 @@ export interface CommonNodeAttr {
|
|
|
257
287
|
approvalUsers?: string[]
|
|
258
288
|
userApprovalConfig?: UserApprovalConfigType
|
|
259
289
|
requestedUserId?: number
|
|
290
|
+
showPluginWarning?: boolean
|
|
260
291
|
helmPackageName?: string
|
|
261
292
|
isVirtualEnvironment?: boolean
|
|
293
|
+
isCITriggerBlocked?: boolean
|
|
294
|
+
ciBlockState?: {
|
|
295
|
+
action: any,
|
|
296
|
+
metadataField: string
|
|
297
|
+
}
|
|
298
|
+
appReleaseTagNames?: string[]
|
|
299
|
+
tagsEditable?: boolean
|
|
262
300
|
}
|
|
263
301
|
|
|
264
|
-
|
|
265
302
|
export interface VulnerabilityType {
|
|
266
|
-
name: string
|
|
267
|
-
severity:
|
|
268
|
-
package: string
|
|
269
|
-
version: string
|
|
270
|
-
fixedVersion: string
|
|
271
|
-
policy: string
|
|
272
|
-
url?: string
|
|
303
|
+
name: string
|
|
304
|
+
severity: 'CRITICAL' | 'MODERATE' | 'LOW'
|
|
305
|
+
package: string
|
|
306
|
+
version: string
|
|
307
|
+
fixedVersion: string
|
|
308
|
+
policy: string
|
|
309
|
+
url?: string
|
|
273
310
|
}
|
|
274
311
|
|
|
275
312
|
export interface ScanVulnerabilitiesTableProps {
|
|
276
|
-
vulnerabilities: VulnerabilityType[]
|
|
313
|
+
vulnerabilities: VulnerabilityType[]
|
|
277
314
|
}
|
|
278
315
|
|
|
279
316
|
export interface MaterialInfo {
|
|
@@ -289,33 +326,28 @@ export interface MaterialInfo {
|
|
|
289
326
|
type?: string
|
|
290
327
|
}
|
|
291
328
|
|
|
292
|
-
export interface CDMaterialType {
|
|
293
|
-
index: number
|
|
294
|
-
id: string
|
|
295
|
-
materialInfo: MaterialInfo[]
|
|
296
|
-
tab: CDModalTabType
|
|
297
|
-
scanEnabled: boolean
|
|
298
|
-
scanned: boolean
|
|
299
|
-
vulnerabilitiesLoading: boolean
|
|
300
|
-
lastExecution: string //timestamp
|
|
301
|
-
vulnerabilities: VulnerabilityType[]
|
|
302
|
-
vulnerable: boolean
|
|
303
|
-
deployedTime: string
|
|
304
|
-
deployedBy?: string
|
|
305
|
-
wfrId?: number
|
|
306
|
-
buildTime: string
|
|
307
|
-
image: string
|
|
308
|
-
isSelected: boolean
|
|
309
|
-
showSourceInfo: boolean
|
|
310
|
-
latest: boolean
|
|
311
|
-
runningOnParentCd?: boolean
|
|
312
|
-
userApprovalMetadata?: UserApprovalMetadataType
|
|
313
|
-
triggeredBy?: number
|
|
314
|
-
}
|
|
315
|
-
|
|
316
329
|
export interface CDMaterialResponseType {
|
|
317
330
|
approvalUsers: string[]
|
|
318
331
|
materials: any[]
|
|
319
332
|
userApprovalConfig: UserApprovalConfigType
|
|
320
333
|
requestedUserId: number
|
|
334
|
+
tagsEditable: boolean
|
|
335
|
+
appReleaseTagNames: string[]
|
|
321
336
|
}
|
|
337
|
+
|
|
338
|
+
export interface ReleaseTag {
|
|
339
|
+
id: number
|
|
340
|
+
tagName: string
|
|
341
|
+
appId: number
|
|
342
|
+
deleted: boolean
|
|
343
|
+
artifactId: number
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
export interface ImageComment {
|
|
347
|
+
id: number
|
|
348
|
+
comment: string
|
|
349
|
+
artifactId: number
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
|
|
353
|
+
|
package/src/Common/index.ts
CHANGED
|
@@ -29,4 +29,6 @@ export { default as GenericEmptyState } from './EmptyState/GenericEmptyState'
|
|
|
29
29
|
export { default as Toggle } from './Toggle/Toggle'
|
|
30
30
|
export { default as ScanVulnerabilitiesTable } from './Security/ScanVulnerabilitiesTable'
|
|
31
31
|
export { default as StyledRadioGroup } from './RadioGroup/RadioGroup'
|
|
32
|
+
export * from './CIPipeline.Types'
|
|
33
|
+
export * from './Policy.Types'
|
|
32
34
|
export { default as DeleteComponent } from './DeleteComponentModal/DeleteComponent'
|
|
File without changes
|