@devtron-labs/devtron-fe-common-lib 0.0.77-beta-5 → 0.0.78-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.
Files changed (68) hide show
  1. package/dist/Common/Common.service.d.ts +1 -0
  2. package/dist/Common/Constants.d.ts +6 -1
  3. package/dist/Common/Helper.d.ts +1 -1
  4. package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcut.d.ts +2 -0
  5. package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutContext.d.ts +3 -0
  6. package/dist/Common/Hooks/UseRegisterShortcut/UseRegisterShortcutProvider.d.ts +4 -0
  7. package/dist/Common/Hooks/UseRegisterShortcut/index.d.ts +2 -0
  8. package/dist/Common/Hooks/UseRegisterShortcut/types.d.ts +8 -0
  9. package/dist/Common/Hooks/index.d.ts +1 -0
  10. package/dist/Common/ImageTags.Types.d.ts +1 -1
  11. package/dist/Common/Markdown/MarkDown.d.ts +4 -0
  12. package/dist/Common/Markdown/Types.d.ts +7 -0
  13. package/dist/Common/Markdown/index.d.ts +1 -0
  14. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +1 -1
  15. package/dist/Common/SegmentedBarChart/SegmentedBarChart.d.ts +5 -0
  16. package/dist/Common/SegmentedBarChart/constants.d.ts +5 -0
  17. package/dist/Common/SegmentedBarChart/index.d.ts +2 -0
  18. package/dist/Common/SegmentedBarChart/types.d.ts +11 -0
  19. package/dist/Common/Types.d.ts +65 -6
  20. package/dist/Common/index.d.ts +2 -0
  21. package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
  22. package/dist/Shared/Components/APIResponseHandler/types.d.ts +9 -0
  23. package/dist/Shared/Components/ActivityIndicator/ActivityIndicator.d.ts +4 -0
  24. package/dist/Shared/Components/ActivityIndicator/index.d.ts +1 -0
  25. package/dist/Shared/Components/ActivityIndicator/types.d.ts +3 -0
  26. package/dist/Shared/Components/ExcludedImageNode/ExcludedImageNode.d.ts +4 -0
  27. package/dist/Shared/Components/ExcludedImageNode/index.d.ts +1 -0
  28. package/dist/Shared/Components/ExcludedImageNode/types.d.ts +3 -0
  29. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
  30. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +21 -1
  31. package/dist/Shared/Components/ImageCard/ArtifactInfo/ArtifactInfo.d.ts +4 -0
  32. package/dist/Shared/Components/ImageCard/ArtifactInfo/index.d.ts +1 -0
  33. package/dist/Shared/Components/ImageCard/ArtifactInfo/types.d.ts +4 -0
  34. package/dist/Shared/Components/ImageCard/ImageCard.d.ts +4 -0
  35. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/DeploymentEnvState.d.ts +4 -0
  36. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/constants.d.ts +6 -0
  37. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/index.d.ts +1 -0
  38. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/types.d.ts +11 -0
  39. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/DeploymentEnvState/utils.d.ts +3 -0
  40. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/SequentialCDCardTitle.d.ts +4 -0
  41. package/dist/Shared/Components/ImageCard/SequentialCDCardTitle/index.d.ts +1 -0
  42. package/dist/Shared/Components/ImageCard/index.d.ts +3 -0
  43. package/dist/Shared/Components/ImageCard/types.d.ts +41 -0
  44. package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +4 -0
  45. package/dist/Shared/Components/ImageCardAccordion/index.d.ts +1 -0
  46. package/dist/Shared/Components/ImageCardAccordion/types.d.ts +24 -0
  47. package/dist/Shared/Components/ReactSelect/utils.d.ts +1 -0
  48. package/dist/Shared/Components/ScannedByToolModal/ScannedByToolModal.d.ts +4 -0
  49. package/dist/Shared/Components/ScannedByToolModal/index.d.ts +1 -0
  50. package/dist/Shared/Components/ScannedByToolModal/types.d.ts +3 -0
  51. package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +4 -0
  52. package/dist/Shared/Components/ScannedObjectBar/index.d.ts +1 -0
  53. package/dist/Shared/Components/ScannedObjectBar/types.d.ts +7 -0
  54. package/dist/Shared/Components/Vulnerabilities/Vulnerabilities.d.ts +4 -0
  55. package/dist/Shared/Components/Vulnerabilities/constants.d.ts +4 -0
  56. package/dist/Shared/Components/Vulnerabilities/index.d.ts +2 -0
  57. package/dist/Shared/Components/Vulnerabilities/service.d.ts +3 -0
  58. package/dist/Shared/Components/Vulnerabilities/types.d.ts +8 -0
  59. package/dist/Shared/Components/Vulnerabilities/utils.d.ts +4 -0
  60. package/dist/Shared/Components/index.d.ts +7 -0
  61. package/dist/Shared/Helpers.d.ts +8 -0
  62. package/dist/Shared/constants.d.ts +31 -0
  63. package/dist/Shared/index.d.ts +1 -0
  64. package/dist/Shared/types.d.ts +158 -0
  65. package/dist/assets/index.css +1 -1
  66. package/dist/index.d.ts +2 -0
  67. package/dist/index.js +9222 -8683
  68. package/package.json +5 -3
@@ -18,4 +18,5 @@ export declare const genericCDMaterialsService: (serviceType: CDMaterialServiceE
18
18
  export declare function extractImage(image: string): string;
19
19
  export declare function createGitCommitUrl(url: string, revision: string): string;
20
20
  export declare function fetchChartTemplateVersions(): Promise<ResponseType<any>>;
21
+ export declare const getDefaultConfig: () => Promise<ResponseType>;
21
22
  export {};
@@ -27,12 +27,15 @@ export declare const URLS: {
27
27
  APP_LIST_HELM: string;
28
28
  };
29
29
  export declare const ROUTES: {
30
+ APP_ARTIFACT_PROMOTE_MATERIAL: string;
30
31
  PROJECT_LIST_MIN: string;
31
32
  USER_CHECK_ROLE: string;
32
33
  IMAGE_TAGGING: string;
33
34
  CD_MATERIAL_GET: string;
34
35
  DEPLOYMENT_TEMPLATE_LIST: string;
35
36
  INFRA_CONFIG_PROFILE: string;
37
+ SECURITY_SCAN_EXECUTION_DETAILS: string;
38
+ NOTIFIER: string;
36
39
  APP_LIST: string;
37
40
  TELEMETRY_EVENT: string;
38
41
  SERVER_INFO_API: string;
@@ -111,7 +114,8 @@ export declare enum MODES {
111
114
  }
112
115
  export declare enum APPROVAL_MODAL_TYPE {
113
116
  CONFIG = "CONFIG",
114
- DEPLOYMENT = "DEPLOYMENT"
117
+ DEPLOYMENT = "DEPLOYMENT",
118
+ IMAGE_PROMOTION = "IMAGE-PROMOTION"
115
119
  }
116
120
  export declare const MAX_Z_INDEX = 2147483647;
117
121
  export declare const SELECTED_APPROVAL_TAB_STATE: {
@@ -191,6 +195,7 @@ export declare enum ReactSelectInputAction {
191
195
  removeValue = "remove-value"
192
196
  }
193
197
  export declare const ZERO_TIME_STRING = "0001-01-01T00:00:00Z";
198
+ export declare const EXCLUDED_FALSY_VALUES: readonly [any, any, "", number];
194
199
  export declare const API_STATUS_CODES: {
195
200
  UNAUTHORIZED: number;
196
201
  PERMISSION_DENIED: number;
@@ -8,7 +8,7 @@ interface ConditionalWrapper<T> {
8
8
  children: T;
9
9
  }
10
10
  export declare const ConditionalWrap: React.FC<ConditionalWrapper<any>>;
11
- export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 1 | 0 | -1;
11
+ export declare function sortCallback(key: string, a: any, b: any, isCaseSensitive?: boolean): 0 | 1 | -1;
12
12
  export declare const stopPropagation: (event: any) => void;
13
13
  export declare function useThrottledEffect(callback: any, delay: any, deps?: any[]): void;
14
14
  export declare function getRandomColor(email: string): string;
@@ -0,0 +1,2 @@
1
+ declare const useRegisterShortcut: () => import('./types').UseRegisterShortcutContextType;
2
+ export default useRegisterShortcut;
@@ -0,0 +1,3 @@
1
+ import { UseRegisterShortcutContextType } from './types';
2
+
3
+ export declare const context: import('react').Context<UseRegisterShortcutContextType>;
@@ -0,0 +1,4 @@
1
+ import { UseRegisterShortcutProviderType } from './types';
2
+
3
+ declare const UseRegisterShortcutProvider: ({ children }: UseRegisterShortcutProviderType) => JSX.Element;
4
+ export default UseRegisterShortcutProvider;
@@ -0,0 +1,2 @@
1
+ export { default as useRegisterShortcut } from './UseRegisterShortcut';
2
+ export { default as UseRegisterShortcutProvider } from './UseRegisterShortcutProvider';
@@ -0,0 +1,8 @@
1
+ /// <reference types="react" />
2
+ export interface UseRegisterShortcutContextType {
3
+ registerShortcut: boolean;
4
+ setRegisterShortcut: (allowShortcut: boolean) => void;
5
+ }
6
+ export interface UseRegisterShortcutProviderType {
7
+ children: React.ReactElement;
8
+ }
@@ -2,3 +2,4 @@ export { useSuperAdmin } from './UseSuperAdmin/UseSuperAdmin';
2
2
  export { useClickOutside } from './UseClickOutside/UseClickOutside';
3
3
  export { useWindowSize } from './UseWindowSize/UseWindowSize';
4
4
  export * from './useUrlFilters';
5
+ export * from './UseRegisterShortcut';
@@ -34,7 +34,7 @@ export interface ImageButtonType {
34
34
  onHardDeleteClick?: any;
35
35
  tagId: number;
36
36
  softDeleteTags: any;
37
- isSuperAdmin: any;
37
+ isSuperAdmin: boolean;
38
38
  duplicateTag?: boolean;
39
39
  hideHardDelete?: boolean;
40
40
  }
@@ -0,0 +1,4 @@
1
+ import { MarkDownProps } from './Types';
2
+
3
+ declare const MarkDown: ({ setExpandableIcon, markdown, className, breaks, disableEscapedText, ...props }: MarkDownProps) => JSX.Element;
4
+ export default MarkDown;
@@ -0,0 +1,7 @@
1
+ export interface MarkDownProps {
2
+ setExpandableIcon?: (showExpandedIcon: boolean) => void;
3
+ markdown: string;
4
+ className?: string;
5
+ breaks?: boolean;
6
+ disableEscapedText?: boolean;
7
+ }
@@ -0,0 +1 @@
1
+ export { default as MarkDown } from './MarkDown';
@@ -1,3 +1,3 @@
1
1
  import { ScanVulnerabilitiesTableProps } from '../Types';
2
2
 
3
- export default function ScanVulnerabilitiesTable({ vulnerabilities }: ScanVulnerabilitiesTableProps): JSX.Element;
3
+ export default function ScanVulnerabilitiesTable({ vulnerabilities, hidePolicy, shouldStick }: ScanVulnerabilitiesTableProps): JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { SegmentedBarChartProps } from './types';
2
+ import { default as React } from 'react';
3
+
4
+ declare const SegmentedBarChart: React.FC<SegmentedBarChartProps>;
5
+ export default SegmentedBarChart;
@@ -0,0 +1,5 @@
1
+ export declare const FALLBACK_ENTITY: {
2
+ color: string;
3
+ label: string;
4
+ value: number;
5
+ };
@@ -0,0 +1,2 @@
1
+ export { default as SegmentedBarChart } from './SegmentedBarChart';
2
+ export { type SegmentedBarChartProps } from './types';
@@ -0,0 +1,11 @@
1
+ export type Entity = {
2
+ color: string;
3
+ label: string;
4
+ value: number;
5
+ };
6
+ export interface SegmentedBarChartProps {
7
+ entities: NonNullable<Entity[]>;
8
+ rootClassName?: string;
9
+ countClassName?: string;
10
+ labelClassName?: string;
11
+ }
@@ -1,3 +1,4 @@
1
+ import { RegistryType } from '../Shared';
1
2
  import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, SortingOrder, TaskErrorObj } from '.';
2
3
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
3
4
  import { Placement } from 'tippy.js';
@@ -52,6 +53,7 @@ export interface CheckboxProps {
52
53
  onChange: (event: any) => void;
53
54
  isChecked: boolean;
54
55
  value: 'CHECKED' | 'INTERMEDIATE' | 'BULK_CHECKED';
56
+ name?: string;
55
57
  disabled?: boolean;
56
58
  tabIndex?: number;
57
59
  rootClassName?: string;
@@ -268,6 +270,34 @@ export declare enum FilterStates {
268
270
  export declare enum MaterialDataSource {
269
271
  EXTERNAL = "ext"
270
272
  }
273
+ export declare enum ImagePromotionRuntimeState {
274
+ AWAITING = "AWAITING",
275
+ PROMOTED = "PROMOTED",
276
+ CANCELLED = "CANCELLED",
277
+ STALE = "STALE"
278
+ }
279
+ export interface ImagePromotionPolicyApprovalMetadata {
280
+ approverCount: number;
281
+ allowRequesterFromApprove: boolean;
282
+ allowImageBuilderFromApprove: boolean;
283
+ allowApproverFromDeploy: boolean;
284
+ }
285
+ export interface ImagePromotionPolicyInfoType {
286
+ name: string;
287
+ id: number;
288
+ description: string;
289
+ conditions: FilterConditionsInfo[];
290
+ approvalMetadata: ImagePromotionPolicyApprovalMetadata;
291
+ }
292
+ export interface PromotionApprovalMetadataType {
293
+ approvalRequestId: number;
294
+ approvalRuntimeState: ImagePromotionRuntimeState;
295
+ approvedUsersData: ApprovalUserDataType[];
296
+ requestedUserData: ApprovalUserDataType;
297
+ policy: ImagePromotionPolicyInfoType;
298
+ promotedFrom?: string;
299
+ promotedFromType?: CDMaterialResourceQuery;
300
+ }
271
301
  export interface DeploymentWindowArtifactMetadata {
272
302
  id: number;
273
303
  name: string;
@@ -299,7 +329,7 @@ export interface CDMaterialType {
299
329
  imageReleaseTags?: ReleaseTag[];
300
330
  artifactStatus?: string;
301
331
  filterState: FilterStates;
302
- registryType?: string;
332
+ registryType?: RegistryType;
303
333
  imagePath?: string;
304
334
  registryName?: string;
305
335
  scanToolId?: number;
@@ -309,14 +339,28 @@ export interface CDMaterialType {
309
339
  createdTime?: string;
310
340
  deployed?: boolean;
311
341
  dataSource?: MaterialDataSource;
342
+ /**
343
+ * The below two keys: `promotionApprovalMetaData`, `deployedOnEnvironments` are used in image promotion
344
+ * and may not be available to cater other use-cases.
345
+ */
346
+ promotionApprovalMetadata?: PromotionApprovalMetadataType;
347
+ deployedOnEnvironments?: string[];
312
348
  deploymentWindowArtifactMetadata?: DeploymentWindowArtifactMetadata;
313
349
  }
314
350
  export declare enum CDMaterialServiceEnum {
315
351
  ROLLBACK = "rollback",
316
- CD_MATERIALS = "cd-materials"
352
+ CD_MATERIALS = "cd-materials",
353
+ IMAGE_PROMOTION = "image-promotion"
317
354
  }
318
355
  export declare enum CDMaterialResourceQuery {
319
- PENDING_APPROVAL = "PENDING_APPROVAL"
356
+ PENDING_APPROVAL = "PENDING_APPROVAL",
357
+ PROMOTION_APPROVAL_PENDING_NODE = "PROMOTION_APPROVAL_PENDING_NODE",
358
+ CI = "CI",
359
+ ENVIRONMENT = "ENVIRONMENT",
360
+ WEBHOOK = "WEBHOOK",
361
+ LINKED_CI = "LINKED-CI",
362
+ CI_JOB = "CI-JOB",
363
+ LINKED_CD = "LINKED-CD"
320
364
  }
321
365
  export declare enum CDMaterialFilterQuery {
322
366
  RESOURCE = "ELIGIBLE_RESOURCES",
@@ -327,6 +371,11 @@ export interface CDMaterialServiceQueryParams {
327
371
  offset?: number;
328
372
  size?: number;
329
373
  resource?: CDMaterialResourceQuery;
374
+ resourceName?: string;
375
+ resourceId?: number;
376
+ workflowId?: number;
377
+ appId?: number;
378
+ pendingForCurrentUser?: boolean;
330
379
  filter?: CDMaterialFilterQuery;
331
380
  }
332
381
  export interface DownstreamNodesEnvironmentsType {
@@ -398,6 +447,7 @@ export interface CommonNodeAttr {
398
447
  deploymentAppCreated?: boolean;
399
448
  isLast?: boolean;
400
449
  downstreamEnvironments?: DownstreamNodesEnvironmentsType[];
450
+ cipipelineId?: number;
401
451
  isDeploymentBlocked?: boolean;
402
452
  }
403
453
  export declare enum DeploymentAppTypes {
@@ -417,6 +467,8 @@ export interface VulnerabilityType {
417
467
  }
418
468
  export interface ScanVulnerabilitiesTableProps {
419
469
  vulnerabilities: VulnerabilityType[];
470
+ hidePolicy?: boolean;
471
+ shouldStick?: boolean;
420
472
  }
421
473
  export interface MaterialInfo {
422
474
  revision: string;
@@ -447,7 +499,7 @@ export interface FilterConditionsListType {
447
499
  export interface CDMaterialsApprovalInfo {
448
500
  approvalUsers: string[];
449
501
  userApprovalConfig: UserApprovalConfigType;
450
- requestedUserId: number;
502
+ canApproverDeploy: boolean;
451
503
  }
452
504
  export interface CDMaterialsMetaInfo {
453
505
  tagsEditable: boolean;
@@ -455,9 +507,16 @@ export interface CDMaterialsMetaInfo {
455
507
  hideImageTaggingHardDelete: boolean;
456
508
  resourceFilters?: FilterConditionsListType[];
457
509
  totalCount: number;
458
- canApproverDeploy: boolean;
510
+ /**
511
+ * This is the ID of user that has request the material
512
+ */
513
+ requestedUserId: number;
514
+ }
515
+ export interface ImagePromotionMaterialInfo {
516
+ isApprovalPendingForPromotion: boolean;
517
+ imagePromotionApproverEmails: string[];
459
518
  }
460
- export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo {
519
+ export interface CDMaterialResponseType extends CDMaterialsMetaInfo, CDMaterialsApprovalInfo, ImagePromotionMaterialInfo {
461
520
  materials: CDMaterialType[];
462
521
  }
463
522
  export interface InputDetailType {
@@ -50,3 +50,5 @@ export * from './AddCDButton';
50
50
  export * from './CustomInput';
51
51
  export * from './DraggableWrapper';
52
52
  export * from './Pagination';
53
+ export * from './Markdown';
54
+ export * from './SegmentedBarChart';
@@ -1,4 +1,4 @@
1
1
  import { APIResponseHandlerProps } from './types';
2
2
 
3
- declare const APIResponseHandler: ({ isLoading, progressingProps, error, notAuthorized, notFoundText, reloadProps, children, }: APIResponseHandlerProps) => JSX.Element;
3
+ declare const APIResponseHandler: ({ isLoading, progressingProps, customLoader, error, notAuthorized, notFoundText, reloadProps, genericSectionErrorProps, children, }: APIResponseHandlerProps) => JSX.Element;
4
4
  export default APIResponseHandler;
@@ -1,3 +1,4 @@
1
+ import { GenericSectionErrorStateProps } from '../GenericSectionErrorState/types';
1
2
  import { GenericEmptyStateType, ProgressingProps, ReloadType, ServerErrors } from '../../../Common';
2
3
  import { ReactNode } from 'react';
3
4
 
@@ -14,6 +15,10 @@ export interface APIResponseHandlerProps {
14
15
  * If loading is true, would load send these props to Progressing component
15
16
  */
16
17
  progressingProps?: ProgressingProps;
18
+ /**
19
+ * If given, would show this component instead of default Progressing component
20
+ */
21
+ customLoader?: ReactNode;
17
22
  /**
18
23
  * If true and isLoading is false would show default Reload component
19
24
  * In case error code is 404 show default 404 page using GenericEmptyState
@@ -31,6 +36,10 @@ export interface APIResponseHandlerProps {
31
36
  * If given, on Error, would load these props
32
37
  */
33
38
  reloadProps?: ReloadType;
39
+ /**
40
+ * If given, would show this component instead of default Error component
41
+ */
42
+ genericSectionErrorProps?: GenericSectionErrorStateProps;
34
43
  /**
35
44
  * If no Error and no Loading, would load this component
36
45
  */
@@ -0,0 +1,4 @@
1
+ import { ActivityIndicatorProps } from './types';
2
+
3
+ declare const ActivityIndicator: ({ rootClassName }: ActivityIndicatorProps) => JSX.Element;
4
+ export default ActivityIndicator;
@@ -0,0 +1 @@
1
+ export { default as ActivityIndicator } from './ActivityIndicator';
@@ -0,0 +1,3 @@
1
+ export interface ActivityIndicatorProps {
2
+ rootClassName?: string;
3
+ }
@@ -0,0 +1,4 @@
1
+ import { ExcludedImageNodeProps } from './types';
2
+
3
+ declare const ExcludedImageNode: ({ image }: ExcludedImageNodeProps) => JSX.Element;
4
+ export default ExcludedImageNode;
@@ -0,0 +1 @@
1
+ export { default as ExcludedImageNode } from './ExcludedImageNode';
@@ -0,0 +1,3 @@
1
+ export interface ExcludedImageNodeProps {
2
+ image: string;
3
+ }
@@ -1,4 +1,4 @@
1
1
  import { GenericSectionErrorStateProps } from './types';
2
2
 
3
- declare const GenericSectionErrorState: ({ reload, withBorder }: GenericSectionErrorStateProps) => JSX.Element;
3
+ declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, }: GenericSectionErrorStateProps) => JSX.Element;
4
4
  export default GenericSectionErrorState;
@@ -2,11 +2,31 @@ export interface GenericSectionErrorStateProps {
2
2
  /**
3
3
  * Handler for reloading the section
4
4
  */
5
- reload: () => void;
5
+ reload?: () => void;
6
6
  /**
7
7
  * If true, border is added to the section
8
8
  *
9
9
  * @default false
10
10
  */
11
11
  withBorder?: boolean;
12
+ /**
13
+ * @default 'Failed to load'
14
+ */
15
+ title?: string;
16
+ /**
17
+ * @default 'We could not load the information on this page.'
18
+ */
19
+ subTitle?: string;
20
+ /**
21
+ * @default 'Please reload or try again later'
22
+ */
23
+ description?: string;
24
+ /**
25
+ * @default 'Reload'
26
+ */
27
+ buttonText?: string;
28
+ /**
29
+ * to be applied on parent div
30
+ */
31
+ rootClassName?: string;
12
32
  }
@@ -0,0 +1,4 @@
1
+ import { ArtifactInfoProps } from '../types';
2
+
3
+ declare const ArtifactInfo: ({ imagePath, registryName, registryType, image, deployedTime, deployedBy, isRollbackTrigger, excludedImagePathNode, approvalChecksNode, approvalInfoTippy, }: ArtifactInfoProps) => JSX.Element;
4
+ export default ArtifactInfo;
@@ -0,0 +1 @@
1
+ export { default as ArtifactInfo } from './ArtifactInfo';
@@ -0,0 +1,4 @@
1
+ import { ArtifactInfoProps } from '../types';
2
+
3
+ export interface ImagePathTippyContentProps extends Pick<ArtifactInfoProps, 'imagePath' | 'registryName'> {
4
+ }
@@ -0,0 +1,4 @@
1
+ import { ImageCardProps } from './types';
2
+
3
+ declare const ImageCard: ({ testIdLocator, cta, sequentialCDCardTitleProps, artifactInfoProps, imageTagContainerProps, children, rootClassName, materialInfoRootClassName, }: ImageCardProps) => JSX.Element;
4
+ export default ImageCard;
@@ -0,0 +1,4 @@
1
+ import { DeploymentEnvStateProps } from './types';
2
+
3
+ declare const DeploymentEnvState: ({ envStateText, title, tooltipContent }: DeploymentEnvStateProps) => JSX.Element;
4
+ export default DeploymentEnvState;
@@ -0,0 +1,6 @@
1
+ export declare const DEPLOYMENT_ENV_TEXT: {
2
+ ACTIVE: string;
3
+ VIRTUAL_ENV: string;
4
+ FAILED: string;
5
+ DEPLOYING: string;
6
+ };
@@ -0,0 +1 @@
1
+ export { default as DeploymentEnvState } from './DeploymentEnvState';
@@ -0,0 +1,11 @@
1
+ import { ReactNode } from 'react';
2
+
3
+ export interface DeploymentEnvStateProps {
4
+ envStateText: string;
5
+ title: string;
6
+ tooltipContent?: string;
7
+ }
8
+ export interface GetDeploymentEnvConfigType {
9
+ Icon: ReactNode;
10
+ stateClassName: string;
11
+ }
@@ -0,0 +1,3 @@
1
+ import { GetDeploymentEnvConfigType } from './types';
2
+
3
+ export declare const getDeploymentEnvConfig: (envStateText: string) => GetDeploymentEnvConfigType;
@@ -0,0 +1,4 @@
1
+ import { SequentialCDCardTitleProps } from '../types';
2
+
3
+ declare const SequentialCDCardTitle: ({ isLatest, isRunningOnParentCD, artifactStatus, environmentName, parentEnvironmentName, stageType, showLatestTag, isVirtualEnvironment, deployedOn, additionalInfo, }: SequentialCDCardTitleProps) => JSX.Element;
4
+ export default SequentialCDCardTitle;
@@ -0,0 +1 @@
1
+ export { default as SequentialCDCardTitle } from './SequentialCDCardTitle';
@@ -0,0 +1,3 @@
1
+ export { default as ImageCard } from './ImageCard';
2
+ export * from './types';
3
+ export * from './ArtifactInfo';
@@ -0,0 +1,41 @@
1
+ import { RegistryType } from '../..';
2
+ import { ImageTaggingContainerType } from '../../../Common';
3
+ import { ReactNode } from 'react';
4
+
5
+ export interface ArtifactInfoProps {
6
+ imagePath: string;
7
+ registryName: string;
8
+ registryType: RegistryType;
9
+ image: string;
10
+ deployedTime: string;
11
+ deployedBy: string;
12
+ isRollbackTrigger: boolean;
13
+ excludedImagePathNode: ReactNode;
14
+ approvalChecksNode?: ReactNode;
15
+ approvalInfoTippy?: ReactNode;
16
+ }
17
+ export interface SequentialCDCardTitleProps {
18
+ isLatest: boolean;
19
+ isRunningOnParentCD: boolean;
20
+ artifactStatus: string;
21
+ stageType: string;
22
+ showLatestTag: boolean;
23
+ isVirtualEnvironment: boolean;
24
+ deployedOn?: string[];
25
+ environmentName?: string;
26
+ parentEnvironmentName?: string;
27
+ additionalInfo?: ReactNode;
28
+ }
29
+ export interface ImageCardProps {
30
+ testIdLocator: string;
31
+ sequentialCDCardTitleProps: SequentialCDCardTitleProps;
32
+ cta: ReactNode;
33
+ artifactInfoProps: ArtifactInfoProps;
34
+ imageTagContainerProps: ImageTaggingContainerType;
35
+ /**
36
+ * Meant for ImageCardAccordion
37
+ */
38
+ children?: ReactNode;
39
+ rootClassName?: string;
40
+ materialInfoRootClassName?: string;
41
+ }
@@ -0,0 +1,4 @@
1
+ import { ImageCardAccordionProps } from './types';
2
+
3
+ declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, changesCard, isScanned, isScanEnabled, }: ImageCardAccordionProps) => JSX.Element;
4
+ export default ImageCardAccordion;
@@ -0,0 +1 @@
1
+ export { default as ImageCardAccordion } from './ImageCardAccordion';
@@ -0,0 +1,24 @@
1
+ import { MaterialSecurityInfoType } from '../../types';
2
+ import { CDModalTabType, VulnerabilityType } from '../../../Common';
3
+ import { default as React, ReactNode } from 'react';
4
+
5
+ export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
6
+ isSecurityModuleInstalled: boolean;
7
+ artifactId: number;
8
+ applicationId: number;
9
+ environmentId: number;
10
+ changesCard: ReactNode;
11
+ isScanned: boolean;
12
+ isScanEnabled: boolean;
13
+ }
14
+ export interface SecurityDetailsType {
15
+ vulnerabilities: VulnerabilityType[];
16
+ scanToolId: number;
17
+ lastExecution: string;
18
+ }
19
+ export interface AccordionItemProps {
20
+ currentTab: CDModalTabType;
21
+ activeTab: CDModalTabType;
22
+ setActiveTab: React.Dispatch<React.SetStateAction<CDModalTabType>>;
23
+ buttonText: string;
24
+ }
@@ -12,3 +12,4 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
12
12
  export declare const getCustomOptionSelectionStyle: (styleOverrides?: {}) => (base: any, state: any) => any;
13
13
  export declare const SelectOption: (props: any) => JSX.Element;
14
14
  export declare const LoadingIndicator: () => JSX.Element;
15
+ export declare const GroupHeading: (props: any) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { ScannedByToolModalProps } from './types';
2
+
3
+ declare const ScannedByToolModal: ({ scanToolId }: ScannedByToolModalProps) => JSX.Element;
4
+ export default ScannedByToolModal;
@@ -0,0 +1 @@
1
+ export { default as ScannedByToolModal } from './ScannedByToolModal';
@@ -0,0 +1,3 @@
1
+ export interface ScannedByToolModalProps {
2
+ scanToolId?: number;
3
+ }
@@ -0,0 +1,4 @@
1
+ import { ScannedObjectBarProps } from './types';
2
+
3
+ declare const ScannedObjectBar: ({ criticalVulnerabilitiesCount, moderateVulnerabilitiesCount, lowVulnerabilitiesCount, objectBarClassName, removeObjectCountMargin, }: ScannedObjectBarProps) => JSX.Element;
4
+ export default ScannedObjectBar;
@@ -0,0 +1 @@
1
+ export { default as ScannedObjectBar } from './ScannedObjectBar';
@@ -0,0 +1,7 @@
1
+ export interface ScannedObjectBarProps {
2
+ criticalVulnerabilitiesCount: number;
3
+ moderateVulnerabilitiesCount: number;
4
+ lowVulnerabilitiesCount: number;
5
+ objectBarClassName?: string;
6
+ removeObjectCountMargin?: boolean;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { VulnerabilitiesProps } from './types';
2
+
3
+ declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, environmentId, setVulnerabilityCount, }: VulnerabilitiesProps) => JSX.Element;
4
+ export default Vulnerabilities;
@@ -0,0 +1,4 @@
1
+ export declare const NO_VULNERABILITY_TEXT: {
2
+ SECURED: string;
3
+ NO_VULNERABILITY_FOUND: string;
4
+ };
@@ -0,0 +1,2 @@
1
+ export { default as Vulnerabilities } from './Vulnerabilities';
2
+ export * from './utils';
@@ -0,0 +1,3 @@
1
+ import { LastExecutionResponseType } from '../../types';
2
+
3
+ export declare function getLastExecutionByArtifactAppEnv(artifactId: string | number, appId: number | string, envId: number | string): Promise<LastExecutionResponseType>;
@@ -0,0 +1,8 @@
1
+ import { MaterialSecurityInfoType } from '../../types';
2
+
3
+ export interface VulnerabilitiesProps extends MaterialSecurityInfoType {
4
+ artifactId: number;
5
+ applicationId: number;
6
+ environmentId: number;
7
+ setVulnerabilityCount: React.Dispatch<React.SetStateAction<number>>;
8
+ }
@@ -0,0 +1,4 @@
1
+ import { LastExecutionResponseType, LastExecutionResultType } from '../../types';
2
+
3
+ export declare const getParsedScanResult: (scanResult: any) => LastExecutionResultType;
4
+ export declare const parseLastExecutionResponse: (response: any) => LastExecutionResponseType;