@devtron-labs/devtron-fe-common-lib 1.5.8-beta-6 → 1.5.8

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 (34) hide show
  1. package/dist/{@code-editor-DXxCcqw7.js → @code-editor-DdYP4mcB.js} +4859 -5032
  2. package/dist/{@common-rjsf-CdO37-4J.js → @common-rjsf-CCroUgcN.js} +2 -2
  3. package/dist/{@framer-motion-CbfcgbXI.js → @framer-motion-kr1mEWKX.js} +1 -1
  4. package/dist/{@react-dates-CHLhA4kl.js → @react-dates-BxnR_8Dc.js} +20 -20
  5. package/dist/{@react-select-CgLj7C5f.js → @react-select-BMw3IVZf.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-Cj8etBAu.js → @react-virtualized-sticky-tree-wjj-2hWq.js} +1 -1
  7. package/dist/{@vendor-ROKJESOw.js → @vendor-Dse7HvPU.js} +3458 -3497
  8. package/dist/Common/RJSF/Form.d.ts +1 -1
  9. package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +1 -6
  10. package/dist/Pages/ResourceBrowser/constants.d.ts +0 -46
  11. package/dist/Pages/ResourceBrowser/index.d.ts +0 -1
  12. package/dist/Pages/ResourceBrowser/service.d.ts +1 -3
  13. package/dist/Pages/ResourceBrowser/types.d.ts +0 -24
  14. package/dist/Shared/Components/ConfirmationModal/index.d.ts +1 -1
  15. package/dist/Shared/Components/ConfirmationModal/types.d.ts +16 -7
  16. package/dist/Shared/Components/ConfirmationModal/utils.d.ts +2 -2
  17. package/dist/Shared/Components/ScannedByToolModal/types.d.ts +1 -2
  18. package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +2 -2
  19. package/dist/Shared/Components/Security/SecurityModal/config/Sidebar.d.ts +2 -3
  20. package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +3 -4
  21. package/dist/Shared/Components/Security/SecurityModal/types.d.ts +15 -16
  22. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  23. package/dist/Shared/Components/Security/types.d.ts +0 -1
  24. package/dist/Shared/constants.d.ts +5 -0
  25. package/dist/assets/@code-editor.css +1 -1
  26. package/dist/assets/ic-clair.ba79956f.svg +21 -0
  27. package/dist/assets/ic-trivy.d5338454.svg +25 -0
  28. package/dist/index.js +657 -661
  29. package/package.json +1 -1
  30. package/dist/Pages/ResourceBrowser/NodeDrainOptions.d.ts +0 -3
  31. package/dist/assets/ic-medium-clean-brush.cb5ff0b0.svg +0 -8
  32. package/dist/assets/ic-medium-pause.4a3c2b4e.svg +0 -3
  33. package/dist/assets/ic-medium-play.6b657ef2.svg +0 -3
  34. package/dist/assets/ic-scan-fallback.7ff5ed3b.svg +0 -4
@@ -1,3 +1,3 @@
1
1
  import { default as RJSF } from '@rjsf/core';
2
2
  import { FormProps } from './types';
3
- export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "name" | "id" | "children" | "className" | "disabled" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "target" | "action" | "autoComplete" | "tagName" | "method" | "noValidate" | "readonly" | "schema" | "uiSchema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<unknown, import('json-schema').JSONSchema7, import('@rjsf/utils').GenericObjectType>>>;
3
+ export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "name" | "id" | "children" | "className" | "disabled" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "target" | "action" | "tagName" | "autoComplete" | "method" | "noValidate" | "readonly" | "schema" | "uiSchema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<unknown, import('json-schema').JSONSchema7, import('@rjsf/utils').GenericObjectType>>>;
@@ -35,7 +35,7 @@ export interface K8sResourceListPayloadType {
35
35
  k8sRequest: ResourceListPayloadK8sRequestType;
36
36
  }
37
37
  export type K8sResourceDetailDataType = {
38
- [key: string]: string | number | object | boolean;
38
+ [key: string]: string | number | object;
39
39
  };
40
40
  export interface K8sResourceDetailType {
41
41
  headers: string[];
@@ -45,15 +45,10 @@ export interface BulkSelectionActionWidgetProps {
45
45
  count: number;
46
46
  handleOpenBulkDeleteModal: () => void;
47
47
  handleClearBulkSelection: () => void;
48
- handleOpenCordonNodeModal: () => void;
49
- handleOpenUncordonNodeModal: () => void;
50
- handleOpenDrainNodeModal: () => void;
51
48
  handleOpenRestartWorkloadModal: () => void;
52
49
  parentRef: RefObject<HTMLDivElement>;
53
50
  showBulkRestartOption: boolean;
54
- showNodeListingOptions: boolean;
55
51
  }
56
- export type RBBulkOperationType = 'restart' | 'delete' | 'cordon' | 'uncordon' | 'drain';
57
52
  export interface CreateResourceRequestBodyType {
58
53
  appId: string;
59
54
  clusterId: number;
@@ -1,48 +1,2 @@
1
1
  import { SelectPickerOptionType } from '../../Shared/Components';
2
- import { NodeDrainRequest } from './types';
3
2
  export declare const ALL_NAMESPACE_OPTION: Readonly<Pick<SelectPickerOptionType<string>, 'value' | 'label'>>;
4
- export declare const DRAIN_NODE_MODAL_MESSAGING: {
5
- DrainIcon: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
6
- GracePeriod: {
7
- heading: string;
8
- infoText: string;
9
- };
10
- DeleteEmptyDirectoryData: {
11
- heading: string;
12
- infoText: string;
13
- };
14
- DisableEviction: {
15
- heading: string;
16
- infoText: string;
17
- };
18
- ForceDrain: {
19
- heading: string;
20
- infoText: string;
21
- };
22
- IgnoreDaemonSets: {
23
- heading: string;
24
- infoText: string;
25
- };
26
- Actions: {
27
- infoText: string;
28
- drain: string;
29
- draining: string;
30
- cancel: string;
31
- };
32
- };
33
- export declare const CORDON_NODE_MODAL_MESSAGING: {
34
- UncordonIcon: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
35
- CordonIcon: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
36
- cordonInfoText: string;
37
- uncordonInfoText: string;
38
- cordon: string;
39
- uncordon: string;
40
- cordoning: string;
41
- uncordoning: string;
42
- cancel: string;
43
- };
44
- export declare const NODE_DRAIN_OPTIONS_CHECKBOX_CONFIG: {
45
- key: Exclude<keyof NodeDrainRequest['nodeDrainOptions'], 'gracePeriodSeconds'>;
46
- infoText: string;
47
- label: string;
48
- }[];
@@ -3,4 +3,3 @@ export * from './Helper';
3
3
  export * from './constants';
4
4
  export * from './types';
5
5
  export * from './service';
6
- export { default as NodeDrainOptions } from './NodeDrainOptions';
@@ -1,10 +1,8 @@
1
1
  import { APIOptions, ResponseType } from '../../Common/Types';
2
2
  import { CreateResourceDTO, CreateResourcePayload, K8sResourceDetailType, K8sResourceListPayloadType, NodeActionRequest, ResourceListPayloadType, ResourceType } from './ResourceBrowser.Types';
3
- import { ClusterDetail, NodeCordonRequest } from './types';
3
+ import { ClusterDetail } from './types';
4
4
  export declare const getK8sResourceList: (resourceListPayload: K8sResourceListPayloadType, signal?: AbortSignal) => Promise<ResponseType<K8sResourceDetailType>>;
5
5
  export declare const createNewResource: (resourceListPayload: CreateResourcePayload) => Promise<ResponseType<CreateResourceDTO[]>>;
6
6
  export declare const deleteResource: (resourceListPayload: ResourceListPayloadType, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType<ResourceType[]>>;
7
7
  export declare const deleteNodeCapacity: (requestPayload: NodeActionRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
8
- export declare const cordonNodeCapacity: (requestPayload: NodeCordonRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
9
- export declare const drainNodeCapacity: (requestPayload: NodeActionRequest, abortControllerRef?: APIOptions["abortControllerRef"]) => Promise<ResponseType>;
10
8
  export declare const getClusterListRaw: () => Promise<ResponseType<ClusterDetail[]>>;
@@ -1,5 +1,3 @@
1
- import { Dispatch, SetStateAction, ReactElement } from 'react';
2
- import { NodeActionRequest } from './ResourceBrowser.Types';
3
1
  export declare enum ClusterFiltersType {
4
2
  ALL_CLUSTERS = "all",
5
3
  HEALTHY = "healthy",
@@ -49,25 +47,3 @@ export interface ClusterDetail extends ClusterCapacityType {
49
47
  nodeNames?: string[];
50
48
  isVirtualCluster?: boolean;
51
49
  }
52
- interface NodeCordonOptions {
53
- unschedulableDesired: boolean;
54
- }
55
- export interface NodeCordonRequest extends NodeActionRequest {
56
- nodeCordonOptions: NodeCordonOptions;
57
- }
58
- interface NodeDrainOptions {
59
- gracePeriodSeconds: number;
60
- deleteEmptyDirData: boolean;
61
- disableEviction: boolean;
62
- force: boolean;
63
- ignoreAllDaemonSets: boolean;
64
- }
65
- export interface NodeDrainRequest extends NodeActionRequest {
66
- nodeDrainOptions: NodeDrainOptions;
67
- }
68
- export interface AdditionalConfirmationModalOptionsProps<T = unknown> {
69
- optionsData: T;
70
- setOptionsData: Dispatch<SetStateAction<T>>;
71
- children?: ReactElement;
72
- }
73
- export {};
@@ -1,2 +1,2 @@
1
1
  export { default as ConfirmationModal } from './ConfirmationModal';
2
- export { ConfirmationModalVariantType, type ConfirmationModalProps } from './types';
2
+ export { ConfirmationModalVariantType } from './types';
@@ -1,4 +1,4 @@
1
- import { PropsWithChildren, ReactElement, ReactNode, SyntheticEvent } from 'react';
1
+ import { FunctionComponent, ReactNode, SVGProps, SyntheticEvent } from 'react';
2
2
  import { ButtonProps } from '../Button';
3
3
  export declare enum ConfirmationModalVariantType {
4
4
  info = "info",
@@ -6,10 +6,10 @@ export declare enum ConfirmationModalVariantType {
6
6
  warning = "warning",
7
7
  custom = "custom"
8
8
  }
9
- type CommonButtonProps<isConfig extends boolean, isCustomVariant extends boolean> = Pick<ButtonProps, 'text'> & Partial<Pick<ButtonProps, 'startIcon' | 'endIcon' | 'disabled'>> & (isConfig extends false ? {
9
+ type CommonButtonProps<isConfig extends boolean, isCustomVariant extends boolean> = Pick<ButtonProps, 'text'> & Partial<Pick<ButtonProps, 'startIcon' | 'endIcon'>> & (isConfig extends false ? Pick<ButtonProps, 'disabled'> & {
10
10
  onClick: (...args: Partial<Parameters<ButtonProps['onClick']>>) => void;
11
11
  } : {}) & (isCustomVariant extends true ? Pick<ButtonProps, 'style'> : {});
12
- interface ConfirmationConfigType {
12
+ interface CustomInputConfig {
13
13
  identifier: string;
14
14
  confirmationKeyword: string;
15
15
  }
@@ -23,24 +23,33 @@ type ButtonConfig<isConfig extends boolean, isCustomVariant extends boolean> = {
23
23
  primaryButtonConfig?: never;
24
24
  secondaryButtonConfig?: CommonButtonProps<isConfig, isCustomVariant>;
25
25
  };
26
+ type CustomInputConfigOrChildrenType = {
27
+ customInputConfig: CustomInputConfig;
28
+ children?: never;
29
+ } | {
30
+ customInputConfig?: never;
31
+ children: ReactNode;
32
+ } | {
33
+ customInputConfig?: never;
34
+ children?: never;
35
+ };
26
36
  type ButtonConfigAndVariantType<isConfig extends boolean> = {
27
37
  variant: Exclude<ConfirmationModalVariantType, ConfirmationModalVariantType.custom>;
28
38
  Icon?: never;
29
39
  buttonConfig: ButtonConfig<isConfig, false>;
30
40
  } | {
31
41
  variant: ConfirmationModalVariantType.custom;
32
- Icon: ReactElement;
42
+ Icon: FunctionComponent<SVGProps<SVGSVGElement>>;
33
43
  buttonConfig: ButtonConfig<isConfig, true>;
34
44
  };
35
- export type ConfirmationModalProps<isConfig extends boolean = false> = PropsWithChildren<{
45
+ export type ConfirmationModalProps<isConfig extends boolean = false> = {
36
46
  title: string;
37
47
  subtitle: ReactNode;
38
48
  /**
39
49
  * @default true
40
50
  */
41
51
  shouldCloseOnEscape?: boolean;
42
- confirmationConfig?: ConfirmationConfigType;
43
- }> & ButtonConfigAndVariantType<isConfig> & (isConfig extends false ? {
52
+ } & ButtonConfigAndVariantType<isConfig> & CustomInputConfigOrChildrenType & (isConfig extends false ? {
44
53
  handleClose: (e?: SyntheticEvent) => void;
45
54
  showConfirmationModal: boolean;
46
55
  } : {});
@@ -1,6 +1,6 @@
1
- import { ReactElement, ReactNode } from 'react';
1
+ import { FunctionComponent, ReactNode, SVGProps } from 'react';
2
2
  import { ConfirmationModalVariantType } from './types';
3
3
  import { ButtonStyleType } from '../Button';
4
- export declare const getIconFromVariant: (variant: ConfirmationModalVariantType) => ReactElement;
4
+ export declare const getIconFromVariant: (variant: ConfirmationModalVariantType) => FunctionComponent<SVGProps<SVGSVGElement>>;
5
5
  export declare const getConfirmationLabel: (confirmationKeyword: string) => ReactNode;
6
6
  export declare const getPrimaryButtonStyleFromVariant: (variant: ConfirmationModalVariantType) => ButtonStyleType;
@@ -1,6 +1,5 @@
1
1
  export interface ScannedByToolModalProps {
2
- scanToolName: string;
3
- scanToolUrl: string;
2
+ scanToolId?: number;
4
3
  fontSize?: number;
5
4
  spacingBetweenTextAndIcon?: number;
6
5
  }
@@ -47,7 +47,7 @@ export declare const getCodeScanLicense: (data: CodeScan["license"]) => {
47
47
  }[];
48
48
  defaultSortIndex: number;
49
49
  };
50
- export declare const getCodeScanMisconfigurations: (data: CodeScan["misConfigurations"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], lastScanTimeString: string, status: StatusType["status"], scanToolName: StatusType["scanToolName"], scanToolUrl: StatusType["scanToolUrl"]) => {
50
+ export declare const getCodeScanMisconfigurations: (data: CodeScan["misConfigurations"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], lastScanTimeString: string, status: StatusType["status"], scanToolName: StatusType["scanToolName"]) => {
51
51
  headers: ({
52
52
  headerText: string;
53
53
  isSortable: boolean;
@@ -71,7 +71,7 @@ export declare const getCodeScanMisconfigurations: (data: CodeScan["misConfigura
71
71
  })[];
72
72
  }[];
73
73
  };
74
- export declare const getCodeScanExposedSecrets: (data: CodeScan["exposedSecrets"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], lastScanTimeString: string, status: StatusType["status"], scanToolName: StatusType["scanToolName"], scanToolUrl: StatusType["scanToolUrl"]) => {
74
+ export declare const getCodeScanExposedSecrets: (data: CodeScan["exposedSecrets"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], lastScanTimeString: string, status: StatusType["status"], scanToolName: StatusType["scanToolName"]) => {
75
75
  headers: ({
76
76
  headerText: string;
77
77
  isSortable: boolean;
@@ -1,3 +1,2 @@
1
- import { ScanCategoriesWithLicense } from '../../types';
2
- import { SidebarDataType } from '../types';
3
- export declare const getSidebarData: (categoriesConfig: Record<ScanCategoriesWithLicense, boolean>) => SidebarDataType[];
1
+ import { SidebarDataType, SidebarPropsType } from '../types';
2
+ export declare const getSidebarData: (categoriesConfig: SidebarPropsType["categoriesConfig"]) => SidebarDataType[];
@@ -1,11 +1,10 @@
1
- import { SeveritiesDTO, SortOrderEnum, EmptyStateType, SecurityModalStateType } from './types';
2
- import { ScanCategoriesWithLicense } from '../types';
1
+ import { SeveritiesDTO, SortOrderEnum, EmptyStateType, StatusType, SidebarPropsType, SecurityModalStateType } from './types';
3
2
  export declare const DEFAULT_SECURITY_MODAL_IMAGE_STATE: {
4
3
  category: "imageScan";
5
4
  subCategory: "vulnerability";
6
5
  detailViewData: any;
7
6
  };
8
- export declare const getDefaultSecurityModalState: (categoriesConfig: Record<ScanCategoriesWithLicense, boolean>) => SecurityModalStateType;
7
+ export declare const getDefaultSecurityModalState: (categoriesConfig: SidebarPropsType["categoriesConfig"]) => SecurityModalStateType;
9
8
  export declare const CATEGORY_LABELS: {
10
9
  readonly IMAGE_SCAN: "Image Scan";
11
10
  readonly CODE_SCAN: "Code Scan";
@@ -55,4 +54,4 @@ export declare const ORDERED_SEVERITY_KEYS: readonly [SeveritiesDTO.CRITICAL, Se
55
54
  export declare const SEVERITY_DEFAULT_SORT_ORDER = SortOrderEnum['DESC'];
56
55
  export declare const SCAN_FAILED_EMPTY_STATE: EmptyStateType;
57
56
  export declare const SCAN_IN_PROGRESS_EMPTY_STATE: EmptyStateType;
58
- export declare const TRIVY_ICON_URL = "https://cdn.devtron.ai/images/ic-trivy.webp";
57
+ export declare const MAP_SCAN_TOOL_NAME_TO_SCAN_TOOL_ID: Record<StatusType['scanToolName'], number>;
@@ -3,7 +3,6 @@ import { GenericEmptyStateType } from '../../../../Common/Types';
3
3
  import { LastExecutionResultType, NodeType, Nodes } from '../../../types';
4
4
  import { SegmentedBarChartProps } from '../../../../Common/SegmentedBarChart';
5
5
  import { ServerErrors } from '../../../../Common/ServerError';
6
- import { ScanCategories, ScanSubCategories } from '../types';
7
6
  export interface GetResourceScanDetailsPayloadType {
8
7
  name: string;
9
8
  namespace: string;
@@ -65,15 +64,15 @@ export type TableSortStateType = {
65
64
  index: number;
66
65
  order: SortOrderEnum;
67
66
  };
67
+ export interface InfoCardPropsType {
68
+ entities: SegmentedBarChartProps['entities'];
69
+ lastScanTimeString?: string;
70
+ scanToolId?: number;
71
+ }
68
72
  export interface StatusType {
69
73
  status: 'Completed' | 'Running' | 'Failed' | 'Progressing';
70
74
  StartedOn: string;
71
- scanToolName: string;
72
- scanToolUrl: string;
73
- }
74
- export interface InfoCardPropsType extends Pick<StatusType, 'scanToolName' | 'scanToolUrl'> {
75
- entities: SegmentedBarChartProps['entities'];
76
- lastScanTimeString?: string;
75
+ scanToolName: 'TRIVY' | 'CLAIR';
77
76
  }
78
77
  export type DetailViewDataType = {
79
78
  titlePrefix: string;
@@ -81,10 +80,15 @@ export type DetailViewDataType = {
81
80
  status: StatusType['status'];
82
81
  } & TablePropsType & InfoCardPropsType;
83
82
  export type SecurityModalStateType = {
84
- category: ScanCategories;
85
- subCategory: ScanSubCategories;
83
+ category: (typeof CATEGORIES)[keyof typeof CATEGORIES];
84
+ subCategory: (typeof SUB_CATEGORIES)[keyof typeof SUB_CATEGORIES];
86
85
  detailViewData: DetailViewDataType[];
87
86
  };
87
+ export interface SidebarPropsType {
88
+ modalState: SecurityModalStateType;
89
+ setModalState: React.Dispatch<React.SetStateAction<SecurityModalStateType>>;
90
+ categoriesConfig: Record<(typeof CATEGORIES)[keyof typeof CATEGORIES] | 'imageScanLicenseRisks', boolean>;
91
+ }
88
92
  export declare enum SeveritiesDTO {
89
93
  CRITICAL = "critical",
90
94
  HIGH = "high",
@@ -197,11 +201,6 @@ export type ScanResultDTO = {
197
201
  [CATEGORIES.CODE_SCAN]: CodeScan;
198
202
  [CATEGORIES.KUBERNETES_MANIFEST]: KubernetesManifest;
199
203
  };
200
- export interface SidebarPropsType {
201
- modalState: SecurityModalStateType;
202
- setModalState: React.Dispatch<React.SetStateAction<SecurityModalStateType>>;
203
- scanResult: ScanResultDTO;
204
- }
205
204
  interface SecurityModalBaseProps {
206
205
  isLoading: boolean;
207
206
  error: ServerErrors;
@@ -220,8 +219,8 @@ export interface IndexedTextDisplayPropsType {
220
219
  export type SidebarDataChildType = {
221
220
  label: string;
222
221
  value: {
223
- category: ScanCategories;
224
- subCategory: ScanSubCategories;
222
+ category: (typeof CATEGORIES)[keyof typeof CATEGORIES];
223
+ subCategory: (typeof SUB_CATEGORIES)[keyof typeof SUB_CATEGORIES];
225
224
  };
226
225
  };
227
226
  export type SidebarDataType = {
@@ -16,7 +16,7 @@ export declare const getSecurityScanSeveritiesCount: (data: ScanResultDTO) => {
16
16
  unknown: number;
17
17
  };
18
18
  export declare const compareSeverities: (a: Record<SeveritiesDTO, number>, b: Record<SeveritiesDTO, number>) => number;
19
- export declare const getScanCompletedEmptyState: (scanToolName: string, scanToolUrl: string) => {
19
+ export declare const getScanCompletedEmptyState: (scanToolId: number) => {
20
20
  SvgImage: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
21
21
  title: string;
22
22
  children: JSX.Element;
@@ -1,7 +1,6 @@
1
1
  import { CATEGORIES, SUB_CATEGORIES } from './SecurityModal/types';
2
2
  export type ScanCategories = (typeof CATEGORIES)[keyof typeof CATEGORIES];
3
3
  export type ScanSubCategories = (typeof SUB_CATEGORIES)[keyof typeof SUB_CATEGORIES];
4
- export type ScanCategoriesWithLicense = ScanCategories | 'imageScanLicenseRisks';
5
4
  export type CategoriesConfig = {
6
5
  imageScan: boolean;
7
6
  codeScan: boolean;
@@ -13,6 +13,11 @@ export declare const STAGE_TYPE: {
13
13
  POSTCD: string;
14
14
  ROLLBACK: string;
15
15
  };
16
+ export declare const SCAN_TOOL_ID_TRIVY = 3;
17
+ /**
18
+ * @description This is only used to show mapping for clair, scan tool id for clair can be either 1 or 2
19
+ * */
20
+ export declare const SCAN_TOOL_ID_CLAIR = 2;
16
21
  export declare const IMAGE_SCAN_TOOL: {
17
22
  Clair: string;
18
23
  Trivy: string;