@devtron-labs/devtron-fe-common-lib 1.3.4 → 1.3.5-beta-2
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-SuIxzZ8B.js → @code-editor-CV_fswVm.js} +4409 -4479
- package/dist/{@common-rjsf-BnSV0L5-.js → @common-rjsf-C_sf1uQ_.js} +2 -2
- package/dist/{@framer-motion-CdZdgA-3.js → @framer-motion-DHzxZlAx.js} +1 -1
- package/dist/{@react-dates-CjgLNGq7.js → @react-dates-BZU5RIqe.js} +20 -20
- package/dist/{@react-select-Bplb1slj.js → @react-select-Dx53b3Wk.js} +1 -1
- package/dist/{@vendor-dqBtmXrA.js → @vendor-BG3OpQCq.js} +3213 -3174
- package/dist/Common/CIPipeline.Types.d.ts +9 -0
- package/dist/Common/Constants.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +2 -0
- 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 +5 -5
- package/dist/Shared/Components/Security/SecurityModal/index.d.ts +4 -4
- package/dist/Shared/Components/Security/SecurityModal/service.d.ts +2 -3
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +11 -18
- 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/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +3 -1
- package/dist/Shared/types.d.ts +1 -3
- package/dist/assets/@code-editor.css +1 -1
- package/dist/index.d.ts +0 -1
- package/dist/index.js +279 -282
- package/package.json +1 -1
@@ -214,6 +214,10 @@ export interface DockerConfigOverrideType {
|
|
214
214
|
dockerRepository: string;
|
215
215
|
ciBuildConfig: CIBuildConfigType;
|
216
216
|
}
|
217
|
+
export declare enum WORKFLOW_CACHE_CONFIG_ENUM {
|
218
|
+
INHERIT = "INHERIT",
|
219
|
+
OVERRIDE = "OVERRIDE"
|
220
|
+
}
|
217
221
|
export interface FormType {
|
218
222
|
name: string;
|
219
223
|
args: {
|
@@ -252,6 +256,11 @@ export interface FormType {
|
|
252
256
|
isDockerConfigOverridden?: boolean;
|
253
257
|
dockerConfigOverride?: DockerConfigOverrideType;
|
254
258
|
isOffendingMandatoryPlugin?: boolean;
|
259
|
+
workflowCacheConfig?: {
|
260
|
+
type: WORKFLOW_CACHE_CONFIG_ENUM;
|
261
|
+
value: boolean;
|
262
|
+
globalValue: boolean;
|
263
|
+
};
|
255
264
|
}
|
256
265
|
export interface ErrorObj {
|
257
266
|
isValid: boolean;
|
@@ -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,2 +1,2 @@
|
|
1
1
|
import { DeploymentHistoryDiffDetailedProps } from './types';
|
2
|
-
export declare const DeploymentHistoryConfigDiffCompare: ({ envName, setFullScreenView, pipelineDeployments, wfrId, previousWfrId, convertVariables, setConvertVariables, triggerHistory, renderRunSource, resourceId, isCompareDeploymentConfigNotAvailable, ...props }: DeploymentHistoryDiffDetailedProps) => JSX.Element;
|
2
|
+
export declare const DeploymentHistoryConfigDiffCompare: ({ envName, setFullScreenView, pipelineDeployments: initialPipelineDeployments, wfrId, previousWfrId, convertVariables, setConvertVariables, triggerHistory: initialTriggerHistory, renderRunSource, resourceId, isCompareDeploymentConfigNotAvailable, ...props }: DeploymentHistoryDiffDetailedProps) => JSX.Element;
|
@@ -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;
|
@@ -16,23 +16,23 @@ export declare const SUB_CATEGORY_LABELS: {
|
|
16
16
|
readonly EXPOSED_SECRETS: "Exposed Secrets";
|
17
17
|
};
|
18
18
|
export declare const SEVERITIES: {
|
19
|
-
readonly
|
19
|
+
readonly critical: {
|
20
20
|
readonly label: "Critical";
|
21
21
|
readonly color: "#B21212";
|
22
22
|
};
|
23
|
-
readonly
|
23
|
+
readonly high: {
|
24
24
|
readonly label: "High";
|
25
25
|
readonly color: "#F33E3E";
|
26
26
|
};
|
27
|
-
readonly
|
27
|
+
readonly medium: {
|
28
28
|
readonly label: "Medium";
|
29
29
|
readonly color: "#FF7E5B";
|
30
30
|
};
|
31
|
-
readonly
|
31
|
+
readonly low: {
|
32
32
|
readonly label: "Low";
|
33
33
|
readonly color: "#FFB549";
|
34
34
|
};
|
35
|
-
readonly
|
35
|
+
readonly unknown: {
|
36
36
|
readonly label: "Unknown";
|
37
37
|
readonly color: "#B1B7BC";
|
38
38
|
};
|
@@ -1,6 +1,6 @@
|
|
1
1
|
export { default as SecurityModal } from './SecurityModal';
|
2
|
-
export { getSecurityScanSeveritiesCount, getTotalVulnerabilityCount, parseGetResourceScanDetailsResponse,
|
3
|
-
export type { AppDetailsPayload,
|
4
|
-
export {
|
2
|
+
export { getSecurityScanSeveritiesCount, getTotalVulnerabilityCount, parseGetResourceScanDetailsResponse, } from './utils';
|
3
|
+
export type { AppDetailsPayload, 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,2 @@
|
|
1
|
-
import {
|
2
|
-
|
3
|
-
export declare const getExecutionDetails: (executionDetailPayload: ExecutionDetailsPayload) => Promise<ResponseType<ApiResponseResultType>>;
|
1
|
+
import { ScanResultDTO, AppDetailsPayload } from './types';
|
2
|
+
export declare const getSecurityScan: ({ appId, envId, installedAppId, artifactId, installedAppVersionHistoryId, }: AppDetailsPayload) => Promise<import('../../../..').ResponseType<ScanResultDTO>>;
|
@@ -22,10 +22,6 @@ export interface AppDetailsPayload {
|
|
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], 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;
|
@@ -134,5 +134,5 @@ import { SelectPickerProps } from './type';
|
|
134
134
|
* />
|
135
135
|
* ```
|
136
136
|
*/
|
137
|
-
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, inputValue, onInputChange, isCreatable, onCreateOption, closeMenuOnSelect, shouldShowNoOptionsMessage,
|
137
|
+
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, inputValue, onInputChange, isCreatable, onCreateOption, closeMenuOnSelect, shouldShowNoOptionsMessage, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
138
138
|
export default SelectPicker;
|
@@ -55,13 +55,15 @@ declare module 'react-select/base' {
|
|
55
55
|
* @default 'true'
|
56
56
|
*/
|
57
57
|
showSelectedOptionIcon?: boolean;
|
58
|
+
/** Render function for the footer at the end of the options list. */
|
59
|
+
renderOptionsFooter?: () => ReactNode;
|
58
60
|
}
|
59
61
|
}
|
60
62
|
export declare enum SelectPickerVariantType {
|
61
63
|
DEFAULT = "default",
|
62
64
|
BORDER_LESS = "border-less"
|
63
65
|
}
|
64
|
-
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel' | 'menuPortalTarget'>> & {
|
66
|
+
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon' | 'renderOptionsFooter'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel' | 'menuPortalTarget'>> & {
|
65
67
|
/**
|
66
68
|
* Error message for the select
|
67
69
|
*/
|
package/dist/Shared/types.d.ts
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
2
|
-
import { OptionType, CommonNodeAttr,
|
2
|
+
import { OptionType, CommonNodeAttr, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, RefVariableType, PluginType } from '../Common';
|
3
3
|
import { EnvironmentTypeEnum, PatchOperationType } from './constants';
|
4
4
|
export declare enum EnvType {
|
5
5
|
CHART = "helm_charts",
|
@@ -438,8 +438,6 @@ export interface LastExecutionResultType {
|
|
438
438
|
scanToolId?: number;
|
439
439
|
imageScanDeployInfoId?: number;
|
440
440
|
}
|
441
|
-
export interface LastExecutionResponseType extends ResponseType<LastExecutionResultType> {
|
442
|
-
}
|
443
441
|
export interface MaterialSecurityInfoType {
|
444
442
|
isScanned: boolean;
|
445
443
|
isScanEnabled: boolean;
|