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

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,33 +211,6 @@ export interface UserApprovalMetadataType {
209
211
  requestedUserData: ApprovalUserDataType
210
212
  }
211
213
 
212
-
213
- export interface CDMaterialType {
214
- index: number
215
- id: string
216
- materialInfo: MaterialInfo[]
217
- tab: CDModalTabType
218
- scanEnabled: boolean
219
- scanned: boolean
220
- vulnerabilitiesLoading: boolean
221
- lastExecution: string //timestamp
222
- vulnerabilities: VulnerabilityType[]
223
- vulnerable: boolean
224
- deployedTime: string
225
- deployedBy?: string
226
- wfrId?: number
227
- buildTime: string
228
- image: string
229
- isSelected: boolean
230
- showSourceInfo: boolean
231
- latest: boolean
232
- runningOnParentCd?: boolean
233
- userApprovalMetadata?: UserApprovalMetadataType
234
- triggeredBy?: number
235
- imageComment?: ImageComment
236
- imageReleaseTags?: ReleaseTag[]
237
- }
238
-
239
214
  export interface CommonNodeAttr {
240
215
  connectingCiPipelineId?: number
241
216
  parents: string | number[] | string[]
@@ -284,25 +259,28 @@ export interface CommonNodeAttr {
284
259
  approvalUsers?: string[]
285
260
  userApprovalConfig?: UserApprovalConfigType
286
261
  requestedUserId?: number
262
+ showPluginWarning?: boolean
287
263
  helmPackageName?: string
288
264
  isVirtualEnvironment?: boolean
289
- appReleaseTagNames?: string[]
290
- tagsEditable?: boolean
265
+ isCITriggerBlocked?: boolean
266
+ ciBlockState?: {
267
+ action: any,
268
+ metadataField: string
269
+ }
291
270
  }
292
271
 
293
-
294
272
  export interface VulnerabilityType {
295
- name: string;
296
- severity: "CRITICAL" | "MODERATE" | "LOW";
297
- package: string;
298
- version: string;
299
- fixedVersion: string;
300
- policy: string;
301
- url?: string;
273
+ name: string
274
+ severity: 'CRITICAL' | 'MODERATE' | 'LOW'
275
+ package: string
276
+ version: string
277
+ fixedVersion: string
278
+ policy: string
279
+ url?: string
302
280
  }
303
281
 
304
282
  export interface ScanVulnerabilitiesTableProps {
305
- vulnerabilities: VulnerabilityType[];
283
+ vulnerabilities: VulnerabilityType[]
306
284
  }
307
285
 
308
286
  export interface MaterialInfo {
@@ -318,28 +296,33 @@ export interface MaterialInfo {
318
296
  type?: string
319
297
  }
320
298
 
299
+ export interface CDMaterialType {
300
+ index: number
301
+ id: string
302
+ materialInfo: MaterialInfo[]
303
+ tab: CDModalTabType
304
+ scanEnabled: boolean
305
+ scanned: boolean
306
+ vulnerabilitiesLoading: boolean
307
+ lastExecution: string //timestamp
308
+ vulnerabilities: VulnerabilityType[]
309
+ vulnerable: boolean
310
+ deployedTime: string
311
+ deployedBy?: string
312
+ wfrId?: number
313
+ buildTime: string
314
+ image: string
315
+ isSelected: boolean
316
+ showSourceInfo: boolean
317
+ latest: boolean
318
+ runningOnParentCd?: boolean
319
+ userApprovalMetadata?: UserApprovalMetadataType
320
+ triggeredBy?: number
321
+ }
322
+
321
323
  export interface CDMaterialResponseType {
322
324
  approvalUsers: string[]
323
325
  materials: any[]
324
326
  userApprovalConfig: UserApprovalConfigType
325
327
  requestedUserId: number
326
- tagsEditable: boolean
327
- appReleaseTagNames: string[]
328
- }
329
-
330
- export interface ReleaseTag {
331
- id: number
332
- tagName: string
333
- appId: number
334
- deleted: boolean
335
- artifactId: number
336
- }
337
-
338
- export interface ImageComment {
339
- id: number
340
- comment: string
341
- artifactId: number
342
- }
343
-
344
-
345
-
328
+ }
@@ -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'