@devtron-labs/devtron-fe-common-lib 0.2.30-beta-3 → 0.2.30-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.
- package/dist/Common/Constants.d.ts +2 -0
- package/dist/Common/index.d.ts +0 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +2 -2
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +8 -9
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +2 -2
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +2 -2
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/{DeploymentConfigDiff.types.d.ts → types.d.ts} +3 -25
- package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +1 -1
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +1 -0
- package/dist/Shared/Components/Security/SecurityModal/SecurityModal.d.ts +14 -0
- package/dist/Shared/Components/Security/SecurityModal/components/IndexedTextDisplay.d.ts +4 -0
- package/dist/Shared/Components/Security/SecurityModal/components/InfoCard.d.ts +4 -0
- package/dist/Shared/Components/Security/SecurityModal/components/OpenDetailViewButton.d.ts +4 -0
- package/dist/Shared/Components/Security/SecurityModal/components/Sidebar.d.ts +4 -0
- package/dist/Shared/Components/Security/SecurityModal/components/Table.d.ts +4 -0
- package/dist/Shared/Components/Security/SecurityModal/components/index.d.ts +4 -0
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +100 -0
- package/dist/Shared/Components/Security/SecurityModal/config/EmptyState.d.ts +2 -0
- package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +4 -0
- package/dist/Shared/Components/Security/SecurityModal/config/InfoCard.d.ts +2 -0
- package/dist/Shared/Components/Security/SecurityModal/config/KubernetesManifest.d.ts +4 -0
- package/dist/Shared/Components/Security/SecurityModal/config/Sidebar.d.ts +2 -0
- package/dist/Shared/Components/Security/SecurityModal/config/Table.d.ts +2 -0
- package/dist/Shared/Components/Security/SecurityModal/config/index.d.ts +3 -0
- package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +56 -0
- package/dist/Shared/Components/Security/SecurityModal/index.d.ts +4 -0
- package/dist/Shared/Components/Security/SecurityModal/service.d.ts +5 -0
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +269 -0
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +34 -0
- package/dist/Shared/Components/Security/SecuritySummaryCard/SecuritySummaryCard.d.ts +3 -0
- package/dist/Shared/Components/Security/SecuritySummaryCard/index.d.ts +1 -0
- package/dist/Shared/Components/Security/SecuritySummaryCard/types.d.ts +16 -0
- package/dist/Shared/Components/{Vulnerabilities → Security/Vulnerabilities}/Vulnerabilities.d.ts +1 -1
- package/dist/Shared/Components/{Vulnerabilities → Security/Vulnerabilities}/index.d.ts +1 -0
- package/dist/Shared/Components/{Vulnerabilities → Security/Vulnerabilities}/service.d.ts +1 -1
- package/dist/Shared/Components/{Vulnerabilities → Security/Vulnerabilities}/types.d.ts +2 -1
- package/dist/Shared/Components/{Vulnerabilities → Security/Vulnerabilities}/utils.d.ts +1 -1
- package/dist/Shared/Components/Security/index.d.ts +3 -0
- package/dist/Shared/Components/index.d.ts +1 -1
- package/dist/Shared/Services/app.types.d.ts +1 -7
- package/dist/Shared/types.d.ts +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-CXFTwsNM.js → cssMode-_u5ZYB-Q.js} +1 -1
- package/dist/{freemarker2-DmYtjdHt.js → freemarker2-T5s8hfjd.js} +1 -1
- package/dist/{handlebars-eAvul9Gb.js → handlebars-BOI14TfF.js} +1 -1
- package/dist/{html-CZ0SvRv1.js → html-D5rCJkFR.js} +1 -1
- package/dist/{htmlMode-pSoTbnc_.js → htmlMode-ZkXKsi9b.js} +1 -1
- package/dist/{index-8KYAE4dc.js → index-D4U7W4vE.js} +33832 -32272
- package/dist/index.js +316 -312
- package/dist/{javascript-D2QAbupk.js → javascript-CaNiuZ_w.js} +1 -1
- package/dist/{jsonMode-CLdpt-Pr.js → jsonMode-B797VxQm.js} +1 -1
- package/dist/{liquid-KD66kcRt.js → liquid-2ipK-yL8.js} +1 -1
- package/dist/{mdx-B11nWVy7.js → mdx-BEwXkZN_.js} +1 -1
- package/dist/{python-CNhAJZEL.js → python-CuOXljCz.js} +1 -1
- package/dist/{razor-BkvJGu01.js → razor-DqxSvhvb.js} +1 -1
- package/dist/{tsMode-8yuvsPTz.js → tsMode-CFXBU715.js} +1 -1
- package/dist/{typescript-Cfl8lnfY.js → typescript-DRyxJPcX.js} +1 -1
- package/dist/{xml-B30K5eAQ.js → xml-C97eZhmk.js} +1 -1
- package/dist/{yaml-CH6tzVSB.js → yaml-fRy8fRMO.js} +1 -1
- package/package.json +4 -3
- package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +0 -2
- package/dist/Common/Security/types.d.ts +0 -4
- package/dist/Shared/Components/Vulnerabilities/constants.d.ts +0 -4
|
@@ -85,6 +85,8 @@ export declare const ROUTES: {
|
|
|
85
85
|
PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
|
|
86
86
|
PLUGIN_GLOBAL_LIST_V2: string;
|
|
87
87
|
PLUGIN_GLOBAL_LIST_TAGS: string;
|
|
88
|
+
K8S_RESOURCE_SECURITY: string;
|
|
89
|
+
SCAN_RESULT: string;
|
|
88
90
|
PLUGIN_LIST_MIN: string;
|
|
89
91
|
DEPLOYMENT_CHARTS_LIST: string;
|
|
90
92
|
USER_LIST_MIN: string;
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -29,7 +29,6 @@ export { default as GenericFilterEmptyState } from './EmptyState/GenericFilterEm
|
|
|
29
29
|
export * from './SearchBar';
|
|
30
30
|
export * from './SortableTableHeaderCell';
|
|
31
31
|
export { default as Toggle } from './Toggle/Toggle';
|
|
32
|
-
export { default as ScanVulnerabilitiesTable } from './Security/ScanVulnerabilitiesTable';
|
|
33
32
|
export { default as StyledRadioGroup } from './RadioGroup/RadioGroup';
|
|
34
33
|
export * from './CIPipeline.Types';
|
|
35
34
|
export * from './Policy.Types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeploymentConfigDiffProps } from './
|
|
2
|
-
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText,
|
|
1
|
+
import { DeploymentConfigDiffProps } from './types';
|
|
2
|
+
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { SortingOrder } from '../../../Common/Constants';
|
|
2
|
+
import { DeploymentConfigDiffProps } from '..';
|
|
3
|
+
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, EnvResourceType, TemplateListDTO } from '../../Services/app.types';
|
|
3
4
|
/**
|
|
4
5
|
* Retrieves the draft data from the given configuration data object.
|
|
5
6
|
*
|
|
@@ -18,16 +19,14 @@ export declare const mergeConfigDataArraysByName: (primaryArray: ConfigMapSecret
|
|
|
18
19
|
/**
|
|
19
20
|
* Generates a list of deployment configurations for application environments and identifies changes between the current and compare lists.
|
|
20
21
|
*
|
|
21
|
-
* @param
|
|
22
|
-
* @param
|
|
23
|
-
* @param
|
|
24
|
-
* @param
|
|
25
|
-
* @param params.isManifestView - A boolean that, when true, modifies the output for a manifest view.
|
|
26
|
-
* @param params.sortOrder - (Optional) The order in which to sort the deployment templates.
|
|
22
|
+
* @param currentList - The current deployment configuration list.
|
|
23
|
+
* @param compareList - The deployment configuration list to compare against.
|
|
24
|
+
* @param getNavItemHref - A function to generate navigation item URLs based on the resource type and resource name.
|
|
25
|
+
* @param sortOrder - (Optional) The order in which to sort the deployment templates.
|
|
27
26
|
*
|
|
28
27
|
* @returns An object containing the combined deployment configuration list, a collapsible navigation list, and a navigation list.
|
|
29
28
|
*/
|
|
30
|
-
export declare const getAppEnvDeploymentConfigList:
|
|
29
|
+
export declare const getAppEnvDeploymentConfigList: (currentList: AppEnvDeploymentConfigDTO, compareList: AppEnvDeploymentConfigDTO, getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string, sortOrder?: SortingOrder) => {
|
|
31
30
|
configList: DeploymentConfigDiffProps["configList"];
|
|
32
31
|
navList: DeploymentConfigDiffProps["navList"];
|
|
33
32
|
collapsibleNavList: DeploymentConfigDiffProps["collapsibleNavList"];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeploymentConfigDiffAccordionProps } from './
|
|
1
|
+
import { DeploymentConfigDiffAccordionProps } from './types';
|
|
2
2
|
export declare const DeploymentConfigDiffAccordion: import('react').ForwardRefExoticComponent<DeploymentConfigDiffAccordionProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeploymentConfigDiffMainProps } from './
|
|
2
|
-
export declare const DeploymentConfigDiffMain: ({ isLoading,
|
|
1
|
+
import { DeploymentConfigDiffMainProps } from './types';
|
|
2
|
+
export declare const DeploymentConfigDiffMain: ({ isLoading, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId, }: DeploymentConfigDiffMainProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { DeploymentConfigDiffNavigationProps } from './
|
|
2
|
-
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText,
|
|
1
|
+
import { DeploymentConfigDiffNavigationProps } from './types';
|
|
2
|
+
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
|
package/dist/Shared/Components/DeploymentConfigDiff/{DeploymentConfigDiff.types.d.ts → types.d.ts}
RENAMED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { SortingOrder } from '../../../Common/Constants';
|
|
2
|
-
import {
|
|
2
|
+
import { ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO } from '../../Services';
|
|
3
3
|
import { DeploymentHistoryDetail } from '../CICDHistory';
|
|
4
4
|
import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
|
|
5
5
|
import { SelectPickerProps } from '../SelectPicker';
|
|
@@ -35,11 +35,6 @@ export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<Coll
|
|
|
35
35
|
}
|
|
36
36
|
export interface DeploymentConfigDiffProps {
|
|
37
37
|
isLoading?: boolean;
|
|
38
|
-
errorConfig?: {
|
|
39
|
-
error: boolean;
|
|
40
|
-
code: number;
|
|
41
|
-
reload: () => void;
|
|
42
|
-
};
|
|
43
38
|
configList: DeploymentConfigListItem[];
|
|
44
39
|
headerText?: string;
|
|
45
40
|
scrollIntoViewId?: string;
|
|
@@ -57,15 +52,10 @@ export interface DeploymentConfigDiffProps {
|
|
|
57
52
|
goBackURL?: string;
|
|
58
53
|
navHeading: string;
|
|
59
54
|
navHelpText?: string;
|
|
60
|
-
tabConfig?: {
|
|
61
|
-
tabs: string[];
|
|
62
|
-
activeTab: string;
|
|
63
|
-
onClick: (tab: string) => void;
|
|
64
|
-
};
|
|
65
55
|
}
|
|
66
|
-
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText'
|
|
56
|
+
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText'> {
|
|
67
57
|
}
|
|
68
|
-
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | '
|
|
58
|
+
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'> {
|
|
69
59
|
}
|
|
70
60
|
export interface DeploymentConfigDiffAccordionProps extends Pick<CollapseProps, 'onTransitionEnd'> {
|
|
71
61
|
id: string;
|
|
@@ -76,15 +66,3 @@ export interface DeploymentConfigDiffAccordionProps extends Pick<CollapseProps,
|
|
|
76
66
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
77
67
|
}
|
|
78
68
|
export type DiffHeadingDataType<DeploymentTemplate> = DeploymentTemplate extends true ? DeploymentTemplateDTO : ConfigMapSecretDataConfigDatumDTO;
|
|
79
|
-
export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView extends true ? {
|
|
80
|
-
currentList: ManifestTemplateDTO;
|
|
81
|
-
compareList: ManifestTemplateDTO;
|
|
82
|
-
sortOrder?: never;
|
|
83
|
-
} : {
|
|
84
|
-
currentList: AppEnvDeploymentConfigDTO;
|
|
85
|
-
compareList: AppEnvDeploymentConfigDTO;
|
|
86
|
-
sortOrder?: SortingOrder;
|
|
87
|
-
}) & {
|
|
88
|
-
getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string;
|
|
89
|
-
isManifestView?: IsManifestView;
|
|
90
|
-
};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { ImageCardAccordionProps } from './types';
|
|
2
|
-
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, changesCard, isScanned, isScanEnabled, }: ImageCardAccordionProps) => JSX.Element;
|
|
2
|
+
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, changesCard, isScanned, isScanEnabled, isScanV2Enabled, }: ImageCardAccordionProps) => JSX.Element;
|
|
3
3
|
export default ImageCardAccordion;
|
|
@@ -9,6 +9,7 @@ export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
|
|
|
9
9
|
changesCard: ReactNode;
|
|
10
10
|
isScanned: boolean;
|
|
11
11
|
isScanEnabled: boolean;
|
|
12
|
+
isScanV2Enabled: boolean;
|
|
12
13
|
}
|
|
13
14
|
export interface SecurityDetailsType {
|
|
14
15
|
vulnerabilities: VulnerabilityType[];
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { default as React } from 'react';
|
|
2
|
+
import { SecurityModalPropsType } from './types';
|
|
3
|
+
/**
|
|
4
|
+
* NOTE: the security modal is split into 3 sections - ImageScan, CodeScan & Kubernetes Manifest;
|
|
5
|
+
* Each category has 1 or more subCategories from the set (Vulnerability, License, MisConfigurations & ExposedSecrets)
|
|
6
|
+
* Since each combination of category & subCategory results in the data being visualized through InfoCard & Table
|
|
7
|
+
* the components are declared & called only once and only the data (props) passed to these components differ
|
|
8
|
+
* between the different configurations of category & subCategory. Some row elements from some combinations
|
|
9
|
+
* of Category & SubCategory can allow users to view that particular data in detail (taking user to detailView)
|
|
10
|
+
* So to showcase the detail data, the data is set into detailViewData property of ModalState.
|
|
11
|
+
* For further detail please refer the types to understand the Api Response and workflow of the modal component.
|
|
12
|
+
* */
|
|
13
|
+
declare const SecurityModal: React.FC<SecurityModalPropsType>;
|
|
14
|
+
export default SecurityModal;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { PropsWithChildren } from 'react';
|
|
2
|
+
import { OpenDetailViewButtonProps } from '../types';
|
|
3
|
+
declare const OpenDetailViewButton: ({ children, detailViewData, setDetailViewData, }: PropsWithChildren<OpenDetailViewButtonProps>) => JSX.Element;
|
|
4
|
+
export default OpenDetailViewButton;
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
import { ApiResponseResultType, CodeScan, DetailViewDataType, EmptyStateType, InfoCardPropsType, OpenDetailViewButtonProps, SecurityModalStateType, StatusType, TablePropsType } from '../types';
|
|
2
|
+
export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"]) => {
|
|
3
|
+
headers: ({
|
|
4
|
+
headerText: string;
|
|
5
|
+
isSortable: boolean;
|
|
6
|
+
width: number;
|
|
7
|
+
compareFunc?: undefined;
|
|
8
|
+
defaultSortOrder?: undefined;
|
|
9
|
+
} | {
|
|
10
|
+
headerText: string;
|
|
11
|
+
isSortable: boolean;
|
|
12
|
+
width: number;
|
|
13
|
+
compareFunc: (a: import('../types').SeveritiesDTO, b: import('../types').SeveritiesDTO) => number;
|
|
14
|
+
defaultSortOrder: import('../types').SortOrderEnum;
|
|
15
|
+
})[];
|
|
16
|
+
rows: {
|
|
17
|
+
id: number;
|
|
18
|
+
expandableComponent: any;
|
|
19
|
+
cells: {
|
|
20
|
+
component: JSX.Element;
|
|
21
|
+
cellContent: string;
|
|
22
|
+
}[];
|
|
23
|
+
}[];
|
|
24
|
+
defaultSortIndex: number;
|
|
25
|
+
};
|
|
26
|
+
export declare const getCodeScanLicense: (data: CodeScan["license"]) => {
|
|
27
|
+
headers: ({
|
|
28
|
+
headerText: string;
|
|
29
|
+
isSortable: boolean;
|
|
30
|
+
width: number;
|
|
31
|
+
compareFunc?: undefined;
|
|
32
|
+
defaultSortOrder?: undefined;
|
|
33
|
+
} | {
|
|
34
|
+
headerText: string;
|
|
35
|
+
isSortable: boolean;
|
|
36
|
+
width: number;
|
|
37
|
+
compareFunc: (a: import('../types').SeveritiesDTO, b: import('../types').SeveritiesDTO) => number;
|
|
38
|
+
defaultSortOrder: import('../types').SortOrderEnum;
|
|
39
|
+
})[];
|
|
40
|
+
rows: {
|
|
41
|
+
id: number;
|
|
42
|
+
expandableComponent: any;
|
|
43
|
+
cells: {
|
|
44
|
+
component: JSX.Element;
|
|
45
|
+
cellContent: string;
|
|
46
|
+
}[];
|
|
47
|
+
}[];
|
|
48
|
+
defaultSortIndex: number;
|
|
49
|
+
};
|
|
50
|
+
export declare const getCodeScanMisconfigurations: (data: CodeScan["misConfigurations"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], lastScanTimeString: string, status: StatusType["status"], scanToolName: StatusType["scanToolName"]) => {
|
|
51
|
+
headers: ({
|
|
52
|
+
headerText: string;
|
|
53
|
+
isSortable: boolean;
|
|
54
|
+
width: number;
|
|
55
|
+
compareFunc?: undefined;
|
|
56
|
+
} | {
|
|
57
|
+
headerText: string;
|
|
58
|
+
isSortable: boolean;
|
|
59
|
+
width: number;
|
|
60
|
+
compareFunc: (a: Record<import('../types').SeveritiesDTO, number>, b: Record<import('../types').SeveritiesDTO, number>) => number;
|
|
61
|
+
})[];
|
|
62
|
+
rows: {
|
|
63
|
+
id: number;
|
|
64
|
+
expandableComponent: any;
|
|
65
|
+
cells: ({
|
|
66
|
+
component: JSX.Element;
|
|
67
|
+
cellContent: string;
|
|
68
|
+
} | {
|
|
69
|
+
component: JSX.Element;
|
|
70
|
+
cellContent: Partial<Record<import('../types').SeveritiesDTO, number>>;
|
|
71
|
+
})[];
|
|
72
|
+
}[];
|
|
73
|
+
};
|
|
74
|
+
export declare const getCodeScanExposedSecrets: (data: CodeScan["exposedSecrets"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], lastScanTimeString: string, status: StatusType["status"], scanToolName: StatusType["scanToolName"]) => {
|
|
75
|
+
headers: ({
|
|
76
|
+
headerText: string;
|
|
77
|
+
isSortable: boolean;
|
|
78
|
+
width: number;
|
|
79
|
+
compareFunc?: undefined;
|
|
80
|
+
} | {
|
|
81
|
+
headerText: string;
|
|
82
|
+
isSortable: boolean;
|
|
83
|
+
width: number;
|
|
84
|
+
compareFunc: (a: Record<import('../types').SeveritiesDTO, number>, b: Record<import('../types').SeveritiesDTO, number>) => number;
|
|
85
|
+
})[];
|
|
86
|
+
rows: {
|
|
87
|
+
id: number;
|
|
88
|
+
expandableComponent: any;
|
|
89
|
+
cells: ({
|
|
90
|
+
component: JSX.Element;
|
|
91
|
+
cellContent: string;
|
|
92
|
+
} | {
|
|
93
|
+
component: JSX.Element;
|
|
94
|
+
cellContent: Partial<Record<import('../types').SeveritiesDTO, number>>;
|
|
95
|
+
})[];
|
|
96
|
+
}[];
|
|
97
|
+
};
|
|
98
|
+
export declare const getCodeScanTableData: (data: CodeScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
|
|
99
|
+
export declare const getCodeScanInfoCardData: (data: CodeScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
|
100
|
+
export declare const getCodeScanEmptyState: (data: ApiResponseResultType, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ApiResponseResultType, DetailViewDataType, SecurityModalStateType } from '../types';
|
|
2
|
+
export declare const getEmptyStateValues: (data: ApiResponseResultType, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => import('../types').EmptyStateType;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { DetailViewDataType, ImageScan, SecurityModalStateType, TablePropsType, InfoCardPropsType, EmptyStateType, ApiResponseResultType, OpenDetailViewButtonProps } from '../types';
|
|
2
|
+
export declare const getImageScanTableData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
|
|
3
|
+
export declare const getImageScanInfoCardData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
|
4
|
+
export declare const getImageScanEmptyState: (data: ApiResponseResultType, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { InfoCardPropsType, ApiResponseResultType, SecurityModalStateType } from '../types';
|
|
2
|
+
export declare const getInfoCardData: (data: ApiResponseResultType, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ApiResponseResultType, DetailViewDataType, EmptyStateType, InfoCardPropsType, KubernetesManifest, OpenDetailViewButtonProps, SecurityModalStateType, TablePropsType } from '../types';
|
|
2
|
+
export declare const getKubernetesManifestTableData: (data: KubernetesManifest, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
|
|
3
|
+
export declare const getKubernetesManifestInfoCardData: (data: KubernetesManifest, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
|
4
|
+
export declare const getKubernetesManifestEmptyState: (data: ApiResponseResultType, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
import { ApiResponseResultType, OpenDetailViewButtonProps, SecurityModalStateType, TablePropsType } from '../types';
|
|
2
|
+
export declare const getTableData: (data: ApiResponseResultType, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
import { SeveritiesDTO, SortOrderEnum, EmptyStateType, StatusType } from './types';
|
|
2
|
+
export declare const DEFAULT_SECURITY_MODAL_STATE: {
|
|
3
|
+
category: "imageScan";
|
|
4
|
+
subCategory: "vulnerability";
|
|
5
|
+
detailViewData: any;
|
|
6
|
+
};
|
|
7
|
+
export declare const CATEGORY_LABELS: {
|
|
8
|
+
readonly IMAGE_SCAN: "Image Scan";
|
|
9
|
+
readonly CODE_SCAN: "Code Scan";
|
|
10
|
+
readonly KUBERNETES_MANIFEST: "Kubernetes Manifest";
|
|
11
|
+
};
|
|
12
|
+
export declare const SUB_CATEGORY_LABELS: {
|
|
13
|
+
readonly VULNERABILITIES: "Vulnerability";
|
|
14
|
+
readonly LICENSE: "License Risks";
|
|
15
|
+
readonly MISCONFIGURATIONS: "Misconfigurations";
|
|
16
|
+
readonly EXPOSED_SECRETS: "Exposed Secrets";
|
|
17
|
+
};
|
|
18
|
+
export declare const SEVERITIES: {
|
|
19
|
+
readonly CRITICAL: {
|
|
20
|
+
readonly label: "Critical";
|
|
21
|
+
readonly color: "#B21212";
|
|
22
|
+
};
|
|
23
|
+
readonly HIGH: {
|
|
24
|
+
readonly label: "High";
|
|
25
|
+
readonly color: "#F33E3E";
|
|
26
|
+
};
|
|
27
|
+
readonly MEDIUM: {
|
|
28
|
+
readonly label: "Medium";
|
|
29
|
+
readonly color: "#FF7E5B";
|
|
30
|
+
};
|
|
31
|
+
readonly LOW: {
|
|
32
|
+
readonly label: "Low";
|
|
33
|
+
readonly color: "#FFB549";
|
|
34
|
+
};
|
|
35
|
+
readonly UNKNOWN: {
|
|
36
|
+
readonly label: "Unknown";
|
|
37
|
+
readonly color: "#B1B7BC";
|
|
38
|
+
};
|
|
39
|
+
readonly fail: {
|
|
40
|
+
readonly label: "Failures";
|
|
41
|
+
readonly color: "#F33E3E";
|
|
42
|
+
};
|
|
43
|
+
readonly success: {
|
|
44
|
+
readonly label: "Successes";
|
|
45
|
+
readonly color: "#1DAD70";
|
|
46
|
+
};
|
|
47
|
+
readonly exceptions: {
|
|
48
|
+
readonly label: "Exceptions";
|
|
49
|
+
readonly color: "#B1B7BC";
|
|
50
|
+
};
|
|
51
|
+
};
|
|
52
|
+
export declare const ORDERED_SEVERITY_KEYS: readonly [SeveritiesDTO.CRITICAL, SeveritiesDTO.HIGH, SeveritiesDTO.MEDIUM, SeveritiesDTO.LOW, SeveritiesDTO.UNKNOWN, SeveritiesDTO.FAILURES, SeveritiesDTO.EXCEPTIONS, SeveritiesDTO.SUCCESSES];
|
|
53
|
+
export declare const SEVERITY_DEFAULT_SORT_ORDER = SortOrderEnum['DESC'];
|
|
54
|
+
export declare const SCAN_FAILED_EMPTY_STATE: EmptyStateType;
|
|
55
|
+
export declare const SCAN_IN_PROGRESS_EMPTY_STATE: EmptyStateType;
|
|
56
|
+
export declare const MAP_SCAN_TOOL_NAME_TO_SCAN_TOOL_ID: Record<StatusType['scanToolName'], number>;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { ResponseType } from '../../../../Common/Types';
|
|
2
|
+
import { ApiResponseResultType, GetResourceScanDetailsPayloadType, SecurityModalPropsType } from './types';
|
|
3
|
+
export declare const getExecutionDetails: (executionDetailPayload: SecurityModalPropsType["executionDetailsPayload"]) => Promise<ResponseType<ApiResponseResultType>>;
|
|
4
|
+
export declare const getResourceScanDetails: ({ name, namespace, clusterId, group, version, kind, appId, appType, deploymentType, isAppDetailView, }: GetResourceScanDetailsPayloadType) => Promise<ResponseType<ApiResponseResultType>>;
|
|
5
|
+
export declare const getSecurityScan: ({ appId, envId, installedAppId, artifactId, installedAppVersionHistoryId, }: SecurityModalPropsType["appDetailsPayload"]) => Promise<ResponseType<ApiResponseResultType>>;
|