@devtron-labs/devtron-fe-common-lib 0.0.9 → 0.0.10-beta-1

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.
@@ -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,33 @@ 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
+ }
240
+
212
241
  export interface CommonNodeAttr {
213
242
  connectingCiPipelineId?: number
214
243
  parents: string | number[] | string[]
@@ -257,23 +286,30 @@ export interface CommonNodeAttr {
257
286
  approvalUsers?: string[]
258
287
  userApprovalConfig?: UserApprovalConfigType
259
288
  requestedUserId?: number
289
+ showPluginWarning?: boolean
260
290
  helmPackageName?: string
261
291
  isVirtualEnvironment?: boolean
292
+ isCITriggerBlocked?: boolean
293
+ ciBlockState?: {
294
+ action: any,
295
+ metadataField: string
296
+ }
297
+ appReleaseTagNames?: string[]
298
+ tagsEditable?: boolean
262
299
  }
263
300
 
264
-
265
301
  export interface VulnerabilityType {
266
- name: string;
267
- severity: "CRITICAL" | "MODERATE" | "LOW";
268
- package: string;
269
- version: string;
270
- fixedVersion: string;
271
- policy: string;
272
- url?: string;
302
+ name: string
303
+ severity: 'CRITICAL' | 'MODERATE' | 'LOW'
304
+ package: string
305
+ version: string
306
+ fixedVersion: string
307
+ policy: string
308
+ url?: string
273
309
  }
274
310
 
275
311
  export interface ScanVulnerabilitiesTableProps {
276
- vulnerabilities: VulnerabilityType[];
312
+ vulnerabilities: VulnerabilityType[]
277
313
  }
278
314
 
279
315
  export interface MaterialInfo {
@@ -289,33 +325,28 @@ export interface MaterialInfo {
289
325
  type?: string
290
326
  }
291
327
 
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
328
  export interface CDMaterialResponseType {
317
329
  approvalUsers: string[]
318
330
  materials: any[]
319
331
  userApprovalConfig: UserApprovalConfigType
320
332
  requestedUserId: number
333
+ tagsEditable: boolean
334
+ appReleaseTagNames: string[]
321
335
  }
336
+
337
+ export interface ReleaseTag {
338
+ id: number
339
+ tagName: string
340
+ appId: number
341
+ deleted: boolean
342
+ artifactId: number
343
+ }
344
+
345
+ export interface ImageComment {
346
+ id: number
347
+ comment: string
348
+ artifactId: number
349
+ }
350
+
351
+
352
+
@@ -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'