@devtron-labs/devtron-fe-common-lib 1.3.9 → 1.3.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.
- package/dist/{@code-editor--JGVkfVq.js → @code-editor-DNiZhAtJ.js} +3866 -3964
- package/dist/{@common-rjsf-BJZae-C6.js → @common-rjsf-mIpavv9z.js} +1 -1
- package/dist/Common/Constants.d.ts +1 -1
- package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +1 -1
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +2 -3
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/EmptyState.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/InfoCard.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/KubernetesManifest.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/Sidebar.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/Table.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/config/index.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +7 -11
- package/dist/Shared/Components/Security/SecurityModal/index.d.ts +4 -4
- package/dist/Shared/Components/Security/SecurityModal/service.d.ts +2 -2
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +12 -19
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +3 -4
- package/dist/Shared/Components/Security/SecuritySummaryCard/SecuritySummaryCard.d.ts +1 -1
- package/dist/Shared/Components/Security/SecuritySummaryCard/types.d.ts +2 -4
- package/dist/Shared/Components/Security/Vulnerabilities/Vulnerabilities.d.ts +1 -1
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +1 -17
- package/dist/Shared/Components/Security/Vulnerabilities/utils.d.ts +0 -5
- package/dist/Shared/Components/Security/utils.d.ts +6 -3
- package/dist/Shared/Providers/index.d.ts +1 -0
- package/dist/Shared/Providers/types.d.ts +1 -0
- package/dist/Shared/types.d.ts +1 -3
- package/dist/index.d.ts +0 -2
- package/dist/index.js +404 -409
- package/package.json +1 -1
@@ -2,7 +2,7 @@ import { j as n, J as A } from "./@vendor-RA_nL1Ml.js";
|
|
2
2
|
import E, { forwardRef as $ } from "react";
|
3
3
|
import L, { getDefaultRegistry as k } from "@rjsf/core";
|
4
4
|
import D from "@rjsf/validator-ajv8";
|
5
|
-
import { T as y, c as H, a as U, i as J, d as w } from "./@code-editor
|
5
|
+
import { T as y, c as H, a as U, i as J, d as w } from "./@code-editor-DNiZhAtJ.js";
|
6
6
|
import M, { components as O } from "react-select";
|
7
7
|
import { getUiOptions as B, getTemplate as I, getSubmitButtonOptions as W, ADDITIONAL_PROPERTY_FLAG as P, errorId as V, englishStringTranslator as q, TranslatableString as K, titleId as Y, canExpand as z, deepEquals as G } from "@rjsf/utils";
|
8
8
|
import { ReactComponent as Q } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
@@ -67,7 +67,7 @@ export declare const ROUTES: {
|
|
67
67
|
CD_MATERIAL_GET: string;
|
68
68
|
DEPLOYMENT_TEMPLATE_LIST: string;
|
69
69
|
INFRA_CONFIG_PROFILE: string;
|
70
|
-
|
70
|
+
SCAN_RESULT: string;
|
71
71
|
NOTIFIER: string;
|
72
72
|
APP_LIST: string;
|
73
73
|
TELEMETRY_EVENT: string;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ImageCardAccordionProps } from './types';
|
2
|
-
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, changesCard, isScanned, isScanEnabled, SecurityModalSidebar,
|
2
|
+
declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, changesCard, isScanned, isScanEnabled, SecurityModalSidebar, }: ImageCardAccordionProps) => JSX.Element;
|
3
3
|
export default ImageCardAccordion;
|
@@ -1,7 +1,7 @@
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
2
|
-
import { CDModalTabType,
|
2
|
+
import { CDModalTabType, VulnerabilityType } from '../../../Common';
|
3
3
|
import { MaterialSecurityInfoType } from '../../types';
|
4
|
-
import {
|
4
|
+
import { SidebarPropsType } from '../Security';
|
5
5
|
export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
|
6
6
|
isSecurityModuleInstalled: boolean;
|
7
7
|
artifactId: number;
|
@@ -11,7 +11,6 @@ export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
|
|
11
11
|
isScanned: boolean;
|
12
12
|
isScanEnabled: boolean;
|
13
13
|
SecurityModalSidebar: React.FC<SidebarPropsType>;
|
14
|
-
getSecurityScan: (props: Pick<AppDetailsPayload, 'appId' | 'artifactId'>) => Promise<ResponseType<ApiResponseResultType>>;
|
15
14
|
}
|
16
15
|
export interface SecurityDetailsType {
|
17
16
|
vulnerabilities: VulnerabilityType[];
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ScanResultDTO, CodeScan, DetailViewDataType, EmptyStateType, InfoCardPropsType, OpenDetailViewButtonProps, SecurityModalStateType, StatusType, TablePropsType } from '../types';
|
2
2
|
export declare const getCodeScanVulnerabilities: (data: CodeScan["vulnerability"], hidePolicy: boolean) => {
|
3
3
|
headers: ({
|
4
4
|
headerText: string;
|
@@ -97,4 +97,4 @@ export declare const getCodeScanExposedSecrets: (data: CodeScan["exposedSecrets"
|
|
97
97
|
};
|
98
98
|
export declare const getCodeScanTableData: (data: CodeScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], hidePolicy: boolean) => TablePropsType;
|
99
99
|
export declare const getCodeScanInfoCardData: (data: CodeScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
100
|
-
export declare const getCodeScanEmptyState: (data:
|
100
|
+
export declare const getCodeScanEmptyState: (data: ScanResultDTO, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
export declare const getEmptyStateValues: (data:
|
1
|
+
import { ScanResultDTO, DetailViewDataType, SecurityModalStateType } from '../types';
|
2
|
+
export declare const getEmptyStateValues: (data: ScanResultDTO, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => import('../types').EmptyStateType;
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { DetailViewDataType, ImageScan, SecurityModalStateType, TablePropsType, StatusType, InfoCardPropsType, EmptyStateType,
|
1
|
+
import { DetailViewDataType, ImageScan, SecurityModalStateType, TablePropsType, StatusType, InfoCardPropsType, EmptyStateType, ScanResultDTO, OpenDetailViewButtonProps } from '../types';
|
2
2
|
export declare const getProgressingStateForStatus: (status: StatusType["status"]) => JSX.Element;
|
3
3
|
export declare const getImageScanTableData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], hidePolicy: boolean) => TablePropsType;
|
4
4
|
export declare const getImageScanInfoCardData: (data: ImageScan, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
5
|
-
export declare const getImageScanEmptyState: (data:
|
5
|
+
export declare const getImageScanEmptyState: (data: ScanResultDTO, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { InfoCardPropsType,
|
2
|
-
export declare const getInfoCardData: (data:
|
1
|
+
import { InfoCardPropsType, ScanResultDTO, SecurityModalStateType } from '../types';
|
2
|
+
export declare const getInfoCardData: (data: ScanResultDTO, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ScanResultDTO, DetailViewDataType, EmptyStateType, InfoCardPropsType, KubernetesManifest, OpenDetailViewButtonProps, SecurityModalStateType, TablePropsType } from '../types';
|
2
2
|
export declare const getKubernetesManifestTableData: (data: KubernetesManifest, subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"]) => TablePropsType;
|
3
3
|
export declare const getKubernetesManifestInfoCardData: (data: KubernetesManifest, subCategory: SecurityModalStateType["subCategory"]) => InfoCardPropsType;
|
4
|
-
export declare const getKubernetesManifestEmptyState: (data:
|
4
|
+
export declare const getKubernetesManifestEmptyState: (data: ScanResultDTO, subCategory: SecurityModalStateType["subCategory"], detailViewData: DetailViewDataType) => EmptyStateType;
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import { SidebarDataType } from '../types';
|
2
|
-
export declare const
|
1
|
+
import { SidebarDataType, SidebarPropsType } from '../types';
|
2
|
+
export declare const getSidebarData: (categoriesConfig: SidebarPropsType["categoriesConfig"]) => SidebarDataType[];
|
@@ -1,2 +1,2 @@
|
|
1
|
-
import {
|
2
|
-
export declare const getTableData: (data:
|
1
|
+
import { ScanResultDTO, OpenDetailViewButtonProps, SecurityModalStateType, TablePropsType } from '../types';
|
2
|
+
export declare const getTableData: (data: ScanResultDTO, category: SecurityModalStateType["category"], subCategory: SecurityModalStateType["subCategory"], setDetailViewData: OpenDetailViewButtonProps["setDetailViewData"], hidePolicy: boolean) => TablePropsType;
|
@@ -1,9 +1,5 @@
|
|
1
|
-
import { SeveritiesDTO, SortOrderEnum, EmptyStateType, StatusType } from './types';
|
2
|
-
export declare const
|
3
|
-
category: "imageScan";
|
4
|
-
subCategory: "vulnerability";
|
5
|
-
detailViewData: any;
|
6
|
-
};
|
1
|
+
import { SeveritiesDTO, SortOrderEnum, EmptyStateType, StatusType, SidebarPropsType, SecurityModalStateType } from './types';
|
2
|
+
export declare const getDefaultSecurityModalState: (categoriesConfig: SidebarPropsType["categoriesConfig"]) => SecurityModalStateType;
|
7
3
|
export declare const CATEGORY_LABELS: {
|
8
4
|
readonly IMAGE_SCAN: "Image Scan";
|
9
5
|
readonly CODE_SCAN: "Code Scan";
|
@@ -16,23 +12,23 @@ export declare const SUB_CATEGORY_LABELS: {
|
|
16
12
|
readonly EXPOSED_SECRETS: "Exposed Secrets";
|
17
13
|
};
|
18
14
|
export declare const SEVERITIES: {
|
19
|
-
readonly
|
15
|
+
readonly critical: {
|
20
16
|
readonly label: "Critical";
|
21
17
|
readonly color: "#B21212";
|
22
18
|
};
|
23
|
-
readonly
|
19
|
+
readonly high: {
|
24
20
|
readonly label: "High";
|
25
21
|
readonly color: "#F33E3E";
|
26
22
|
};
|
27
|
-
readonly
|
23
|
+
readonly medium: {
|
28
24
|
readonly label: "Medium";
|
29
25
|
readonly color: "#FF7E5B";
|
30
26
|
};
|
31
|
-
readonly
|
27
|
+
readonly low: {
|
32
28
|
readonly label: "Low";
|
33
29
|
readonly color: "#FFB549";
|
34
30
|
};
|
35
|
-
readonly
|
31
|
+
readonly unknown: {
|
36
32
|
readonly label: "Unknown";
|
37
33
|
readonly color: "#B1B7BC";
|
38
34
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export { default as SecurityModal } from './SecurityModal';
|
2
|
-
export { getSecurityScanSeveritiesCount, getTotalVulnerabilityCount, parseGetResourceScanDetailsResponse,
|
3
|
-
export type {
|
4
|
-
export {
|
2
|
+
export { getSecurityScanSeveritiesCount, getTotalVulnerabilityCount, parseGetResourceScanDetailsResponse, } from './utils';
|
3
|
+
export type { ScanResultDTO, SidebarPropsType, SidebarDataChildType, SidebarDataType, GetResourceScanDetailsPayloadType, GetResourceScanDetailsResponseType, } from './types';
|
4
|
+
export { getSidebarData, getProgressingStateForStatus } from './config';
|
5
5
|
export { CATEGORY_LABELS } from './constants';
|
6
|
-
export {
|
6
|
+
export { getSecurityScan } from './service';
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ResponseType } from '../../../../Common/Types';
|
2
|
-
import {
|
3
|
-
export declare const
|
2
|
+
import { ScanResultDTO, ScanResultParamsType } from './types';
|
3
|
+
export declare const getSecurityScan: ({ appId, envId, installedAppId, artifactId, installedAppVersionHistoryId, }: ScanResultParamsType) => Promise<ResponseType<ScanResultDTO>>;
|
@@ -15,17 +15,13 @@ export interface GetResourceScanDetailsPayloadType {
|
|
15
15
|
deploymentType?: number;
|
16
16
|
isAppDetailView?: boolean;
|
17
17
|
}
|
18
|
-
export interface
|
18
|
+
export interface ScanResultParamsType {
|
19
19
|
appId?: number | string;
|
20
20
|
envId?: number | string;
|
21
21
|
installedAppId?: number | string;
|
22
22
|
artifactId?: number | string;
|
23
23
|
installedAppVersionHistoryId?: number | string;
|
24
24
|
}
|
25
|
-
export interface ExecutionDetailsPayload extends Partial<Pick<AppDetailsPayload, 'appId' | 'envId'>> {
|
26
|
-
imageScanDeployInfoId?: number | string;
|
27
|
-
artifactId?: number | string;
|
28
|
-
}
|
29
25
|
export declare const CATEGORIES: {
|
30
26
|
readonly IMAGE_SCAN: "imageScan";
|
31
27
|
readonly CODE_SCAN: "codeScan";
|
@@ -89,17 +85,16 @@ export type SecurityModalStateType = {
|
|
89
85
|
detailViewData: DetailViewDataType[];
|
90
86
|
};
|
91
87
|
export interface SidebarPropsType {
|
92
|
-
isHelmApp: boolean;
|
93
88
|
modalState: SecurityModalStateType;
|
94
89
|
setModalState: React.Dispatch<React.SetStateAction<SecurityModalStateType>>;
|
95
|
-
|
90
|
+
categoriesConfig: Record<(typeof CATEGORIES)[keyof typeof CATEGORIES] | 'imageScanLicenseRisks', boolean>;
|
96
91
|
}
|
97
92
|
export declare enum SeveritiesDTO {
|
98
|
-
CRITICAL = "
|
99
|
-
HIGH = "
|
100
|
-
MEDIUM = "
|
101
|
-
LOW = "
|
102
|
-
UNKNOWN = "
|
93
|
+
CRITICAL = "critical",
|
94
|
+
HIGH = "high",
|
95
|
+
MEDIUM = "medium",
|
96
|
+
LOW = "low",
|
97
|
+
UNKNOWN = "unknown",
|
103
98
|
FAILURES = "fail",
|
104
99
|
SUCCESSES = "success",
|
105
100
|
EXCEPTIONS = "exceptions"
|
@@ -199,21 +194,19 @@ export type KubernetesManifest = {
|
|
199
194
|
[SUB_CATEGORIES.MISCONFIGURATIONS]: GenericGroupTypeWithMisConfSummary<CodeScanMisconfigurationsListType>;
|
200
195
|
[SUB_CATEGORIES.EXPOSED_SECRETS]: GenericGroupTypeWithSummary<CodeScanExposedSecretsListType>;
|
201
196
|
} & StatusType;
|
202
|
-
export type
|
197
|
+
export type ScanResultDTO = {
|
203
198
|
scanned: boolean;
|
199
|
+
isImageScanEnabled: boolean;
|
204
200
|
[CATEGORIES.IMAGE_SCAN]: ImageScan;
|
205
201
|
[CATEGORIES.CODE_SCAN]: CodeScan;
|
206
202
|
[CATEGORIES.KUBERNETES_MANIFEST]: KubernetesManifest;
|
207
203
|
};
|
208
|
-
interface SecurityModalBaseProps
|
204
|
+
interface SecurityModalBaseProps {
|
209
205
|
isLoading: boolean;
|
210
206
|
error: ServerErrors;
|
211
|
-
responseData:
|
207
|
+
responseData: ScanResultDTO;
|
212
208
|
handleModalClose: (event?: React.MouseEvent<HTMLElement>) => void;
|
213
|
-
Sidebar
|
214
|
-
isHelmApp?: boolean;
|
215
|
-
isResourceScan?: boolean;
|
216
|
-
isSecurityScanV2Enabled: boolean;
|
209
|
+
Sidebar?: React.FC<SidebarPropsType>;
|
217
210
|
hidePolicy?: boolean;
|
218
211
|
}
|
219
212
|
export type SecurityModalPropsType = SecurityModalBaseProps;
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import {
|
1
|
+
import { ScanResultDTO, SeveritiesDTO, GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, VulnerabilityCountType } from './types';
|
2
2
|
import { SEVERITIES } from './constants';
|
3
3
|
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
|
4
4
|
color: "#B1B7BC" | "#B21212" | "#F33E3E" | "#FF7E5B" | "#FFB549" | "#1DAD70";
|
@@ -8,7 +8,7 @@ export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Part
|
|
8
8
|
export declare const stringifySeverities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => string;
|
9
9
|
export declare const getSeverityWeight: (severity: SeveritiesDTO) => number;
|
10
10
|
export declare const compareSeverity: (a: SeveritiesDTO, b: SeveritiesDTO) => number;
|
11
|
-
export declare const getSecurityScanSeveritiesCount: (data:
|
11
|
+
export declare const getSecurityScanSeveritiesCount: (data: ScanResultDTO) => {
|
12
12
|
critical: number;
|
13
13
|
high: number;
|
14
14
|
medium: number;
|
@@ -22,8 +22,7 @@ export declare const getScanCompletedEmptyState: (scanToolId: number) => {
|
|
22
22
|
children: JSX.Element;
|
23
23
|
};
|
24
24
|
export declare const compareStringAndObject: (a: string | object, b: string | object) => number;
|
25
|
-
export declare const
|
26
|
-
export declare const parseGetResourceScanDetailsResponse: (data: GetResourceScanDetailsResponseType) => ApiResponseResultType;
|
25
|
+
export declare const parseGetResourceScanDetailsResponse: (data: GetResourceScanDetailsResponseType) => ScanResultDTO;
|
27
26
|
export declare const getTotalVulnerabilityCount: (scannedResult: ImageVulnerabilityType[]) => VulnerabilityCountType;
|
28
27
|
export declare const groupByTarget: (list: ImageScanVulnerabilityType[]) => {
|
29
28
|
source: string;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { SecuritySummaryCardProps } from './types';
|
2
|
-
declare const SecuritySummaryCard: ({ severityCount, scanToolId, rootClassName,
|
2
|
+
declare const SecuritySummaryCard: ({ severityCount, scanToolId, rootClassName, SecurityModalSidebar, responseData, hidePolicy, }: SecuritySummaryCardProps) => JSX.Element;
|
3
3
|
export default SecuritySummaryCard;
|
@@ -1,12 +1,10 @@
|
|
1
1
|
import { SeverityCount } from '../../../types';
|
2
2
|
import { ImageCardAccordionProps } from '@Shared/Components/ImageCardAccordion/types';
|
3
|
-
import {
|
3
|
+
import { ScanResultDTO } from '../SecurityModal';
|
4
4
|
export type SecuritySummaryCardProps = {
|
5
5
|
severityCount: SeverityCount;
|
6
6
|
scanToolId: number;
|
7
7
|
rootClassName?: string;
|
8
|
-
|
9
|
-
isSecurityScanV2Enabled: boolean;
|
10
|
-
responseData: ApiResponseResultType;
|
8
|
+
responseData: ScanResultDTO;
|
11
9
|
hidePolicy?: boolean;
|
12
10
|
} & Pick<ImageCardAccordionProps, 'SecurityModalSidebar'>;
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { VulnerabilitiesProps } from './types';
|
2
|
-
declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, environmentId, setVulnerabilityCount, SecurityModalSidebar,
|
2
|
+
declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, environmentId, setVulnerabilityCount, SecurityModalSidebar, }: VulnerabilitiesProps) => JSX.Element;
|
3
3
|
export default Vulnerabilities;
|
@@ -1,24 +1,8 @@
|
|
1
|
-
import { ResponseType } from '../../../../Common/Types';
|
2
1
|
import { ImageCardAccordionProps } from '@Shared/Components/ImageCardAccordion/types';
|
3
2
|
import { MaterialSecurityInfoType } from '../../../types';
|
4
|
-
|
5
|
-
export interface VulnerabilitiesProps extends MaterialSecurityInfoType, Pick<ImageCardAccordionProps, 'SecurityModalSidebar' | 'getSecurityScan'> {
|
3
|
+
export interface VulnerabilitiesProps extends MaterialSecurityInfoType, Pick<ImageCardAccordionProps, 'SecurityModalSidebar'> {
|
6
4
|
artifactId: number;
|
7
5
|
applicationId: number;
|
8
6
|
environmentId: number;
|
9
7
|
setVulnerabilityCount: React.Dispatch<React.SetStateAction<number>>;
|
10
8
|
}
|
11
|
-
export interface UseGetSecurityVulnerabilitiesProps extends Pick<ImageCardAccordionProps, 'getSecurityScan'> {
|
12
|
-
artifactId: string;
|
13
|
-
appId: string;
|
14
|
-
envId: number;
|
15
|
-
isScanned: boolean;
|
16
|
-
isScanEnabled: boolean;
|
17
|
-
isScanV2Enabled: boolean;
|
18
|
-
}
|
19
|
-
export interface UseGetSecurityVulnerabilitiesReturnType {
|
20
|
-
scanDetailsLoading: boolean;
|
21
|
-
scanResultResponse: ResponseType<ApiResponseResultType>;
|
22
|
-
scanDetailsError: any;
|
23
|
-
reloadScanDetails: () => void;
|
24
|
-
}
|
@@ -1,6 +1 @@
|
|
1
|
-
import { LastExecutionResponseType, LastExecutionResultType } from '../../../types';
|
2
|
-
import { UseGetSecurityVulnerabilitiesProps, UseGetSecurityVulnerabilitiesReturnType } from './types';
|
3
1
|
export declare const getSortedVulnerabilities: (vulnerabilities: any) => any;
|
4
|
-
export declare const getParsedScanResult: (scanResult: any) => LastExecutionResultType;
|
5
|
-
export declare const parseLastExecutionResponse: (response: any) => LastExecutionResponseType;
|
6
|
-
export declare const useGetSecurityVulnerabilities: ({ artifactId, appId, envId, isScanned, isScanEnabled, isScanV2Enabled, getSecurityScan, }: UseGetSecurityVulnerabilitiesProps) => UseGetSecurityVulnerabilitiesReturnType;
|
@@ -1,5 +1,8 @@
|
|
1
1
|
import { SeverityCount } from '../../types';
|
2
|
-
import {
|
3
|
-
export declare const getTotalSeverityCount: (severityCount: SeverityCount) => number;
|
4
|
-
export declare const getSeverityCountFromSummary: (scanResultSeverities: Partial<Record<SeveritiesDTO, number>>) => SeverityCount;
|
2
|
+
import { ScanResultDTO } from './SecurityModal/types';
|
5
3
|
export declare const getCVEUrlFromCVEName: (cveName: string) => string;
|
4
|
+
export declare const getScanToolAndSeverityCount: (scanResult: ScanResultDTO) => {
|
5
|
+
scanToolId: number;
|
6
|
+
severityCount: SeverityCount;
|
7
|
+
totalCount: number;
|
8
|
+
};
|
package/dist/Shared/types.d.ts
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
2
2
|
import { ApprovalConfigDataType } from '../Common/Types';
|
3
|
-
import { OptionType, CommonNodeAttr,
|
3
|
+
import { OptionType, CommonNodeAttr, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, RefVariableType, PluginType } from '../Common';
|
4
4
|
import { BASE_CONFIGURATION_ENV_ID, EnvironmentTypeEnum, PatchOperationType } from './constants';
|
5
5
|
export declare enum EnvType {
|
6
6
|
CHART = "helm_charts",
|
@@ -440,8 +440,6 @@ export interface LastExecutionResultType {
|
|
440
440
|
scanToolId?: number;
|
441
441
|
imageScanDeployInfoId?: number;
|
442
442
|
}
|
443
|
-
export interface LastExecutionResponseType extends ResponseType<LastExecutionResultType> {
|
444
|
-
}
|
445
443
|
export interface MaterialSecurityInfoType {
|
446
444
|
isScanned: boolean;
|
447
445
|
isScanEnabled: boolean;
|
package/dist/index.d.ts
CHANGED
@@ -56,9 +56,7 @@ export interface customEnv {
|
|
56
56
|
API_BATCH_SIZE: number;
|
57
57
|
SERVICE_WORKER_TIMEOUT?: string;
|
58
58
|
HIDE_RELEASES?: boolean;
|
59
|
-
ENABLE_RESOURCE_SCAN?: boolean;
|
60
59
|
FEATURE_USER_DEFINED_GITOPS_REPO_ENABLE: boolean;
|
61
|
-
ENABLE_RESOURCE_SCAN_V2?: boolean;
|
62
60
|
HIDE_RESOURCE_WATCHER?: boolean;
|
63
61
|
ORGANIZATION_NAME: string;
|
64
62
|
FEATURE_EXTERNAL_FLUX_CD_ENABLE: boolean;
|