@devtron-labs/devtron-fe-common-lib 0.2.29 → 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/CustomInput/CustomInput.d.ts +1 -1
- package/dist/Common/CustomInput/Types.d.ts +0 -1
- package/dist/Common/index.d.ts +0 -1
- package/dist/Pages/App/AppConfigurations/index.d.ts +1 -0
- package/dist/Pages/App/AppConfigurations/utils.d.ts +2 -0
- package/dist/Pages/App/index.d.ts +1 -0
- package/dist/Pages/index.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +2 -2
- package/dist/Shared/Components/CICDHistory/types.d.ts +18 -3
- 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/types.d.ts +2 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-BCvjcr6k.js → cssMode-_u5ZYB-Q.js} +1 -1
- package/dist/{freemarker2-D5fFRDtL.js → freemarker2-T5s8hfjd.js} +1 -1
- package/dist/{handlebars-BQfW9cYp.js → handlebars-BOI14TfF.js} +1 -1
- package/dist/{html-DJzt8c8G.js → html-D5rCJkFR.js} +1 -1
- package/dist/{htmlMode-CWQZVMIo.js → htmlMode-ZkXKsi9b.js} +1 -1
- package/dist/{index-Dhw5KJkK.js → index-D4U7W4vE.js} +34189 -32523
- package/dist/index.js +307 -302
- package/dist/{javascript-lE3RVgXw.js → javascript-CaNiuZ_w.js} +1 -1
- package/dist/{jsonMode-37uXRNaa.js → jsonMode-B797VxQm.js} +1 -1
- package/dist/{liquid-Cdz3cKAn.js → liquid-2ipK-yL8.js} +1 -1
- package/dist/{mdx-B9QdDZxA.js → mdx-BEwXkZN_.js} +1 -1
- package/dist/{python-CI1H-j8j.js → python-CuOXljCz.js} +1 -1
- package/dist/{razor-B_-vMKgy.js → razor-DqxSvhvb.js} +1 -1
- package/dist/{tsMode-B3hHIuEe.js → tsMode-CFXBU715.js} +1 -1
- package/dist/{typescript-qhEmkDLZ.js → typescript-DRyxJPcX.js} +1 -1
- package/dist/{xml-B_by1NJk.js → xml-C97eZhmk.js} +1 -1
- package/dist/{yaml-BCdVkgEZ.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
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { ApiResponseResultType, SeveritiesDTO, GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, VulnerabilityCountType } from './types';
|
|
2
|
+
import { SEVERITIES } from './constants';
|
|
3
|
+
export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
|
|
4
|
+
color: "#B1B7BC" | "#B21212" | "#F33E3E" | "#FF7E5B" | "#FFB549" | "#1DAD70";
|
|
5
|
+
label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
|
|
6
|
+
value: number;
|
|
7
|
+
}[];
|
|
8
|
+
export declare const stringifySeverities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => string;
|
|
9
|
+
export declare const getSeverityWeight: (severity: SeveritiesDTO) => number;
|
|
10
|
+
export declare const compareSeverity: (a: SeveritiesDTO, b: SeveritiesDTO) => number;
|
|
11
|
+
export declare const getSecurityScanSeveritiesCount: (data: ApiResponseResultType) => {
|
|
12
|
+
critical: number;
|
|
13
|
+
high: number;
|
|
14
|
+
medium: number;
|
|
15
|
+
low: number;
|
|
16
|
+
unknown: number;
|
|
17
|
+
};
|
|
18
|
+
export declare const compareSeverities: (a: Record<SeveritiesDTO, number>, b: Record<SeveritiesDTO, number>) => number;
|
|
19
|
+
export declare const getScanCompletedEmptyState: (scanToolId: number) => {
|
|
20
|
+
SvgImage: import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
|
21
|
+
title: string;
|
|
22
|
+
children: JSX.Element;
|
|
23
|
+
};
|
|
24
|
+
export declare const compareStringAndObject: (a: string | object, b: string | object) => number;
|
|
25
|
+
export declare const parseExecutionDetailResponse: (scanResult: any) => ApiResponseResultType;
|
|
26
|
+
export declare const parseGetResourceScanDetailsResponse: (data: GetResourceScanDetailsResponseType) => ApiResponseResultType;
|
|
27
|
+
export declare const getTotalVulnerabilityCount: (scannedResult: ImageVulnerabilityType[]) => VulnerabilityCountType;
|
|
28
|
+
export declare const groupByTarget: (list: ImageScanVulnerabilityType[]) => {
|
|
29
|
+
source: string;
|
|
30
|
+
list: ImageScanVulnerabilityType[];
|
|
31
|
+
summary: {
|
|
32
|
+
severities: Partial<Record<SeveritiesDTO, number>>;
|
|
33
|
+
};
|
|
34
|
+
}[];
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as SecuritySummaryCard } from './SecuritySummaryCard';
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { SeverityCount } from '../../../types';
|
|
2
|
+
import { AppDetailsPayload, ExecutionDetailsPayload } from '../SecurityModal';
|
|
3
|
+
interface ExecutionDetailsPayloadType {
|
|
4
|
+
executionDetailsPayload: ExecutionDetailsPayload;
|
|
5
|
+
appDetailsPayload?: never;
|
|
6
|
+
}
|
|
7
|
+
interface AppDetailsPayloadType {
|
|
8
|
+
executionDetailsPayload?: never;
|
|
9
|
+
appDetailsPayload: AppDetailsPayload;
|
|
10
|
+
}
|
|
11
|
+
export type SecuritySummaryCardProps = {
|
|
12
|
+
severityCount: SeverityCount;
|
|
13
|
+
scanToolId: number;
|
|
14
|
+
rootClassName?: string;
|
|
15
|
+
} & (ExecutionDetailsPayloadType | AppDetailsPayloadType);
|
|
16
|
+
export {};
|
package/dist/Shared/Components/{Vulnerabilities → Security/Vulnerabilities}/Vulnerabilities.d.ts
RENAMED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { VulnerabilitiesProps } from './types';
|
|
2
|
-
declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, environmentId, setVulnerabilityCount, }: VulnerabilitiesProps) => JSX.Element;
|
|
2
|
+
declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, environmentId, setVulnerabilityCount, isScanV2Enabled, }: VulnerabilitiesProps) => JSX.Element;
|
|
3
3
|
export default Vulnerabilities;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
import { LastExecutionResponseType } from '
|
|
1
|
+
import { LastExecutionResponseType } from '../../../types';
|
|
2
2
|
export declare function getLastExecutionByArtifactAppEnv(artifactId: string | number, appId: number | string, envId: number | string): Promise<LastExecutionResponseType>;
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
-
import { MaterialSecurityInfoType } from '
|
|
1
|
+
import { MaterialSecurityInfoType } from '../../../types';
|
|
2
2
|
export interface VulnerabilitiesProps extends MaterialSecurityInfoType {
|
|
3
3
|
artifactId: number;
|
|
4
4
|
applicationId: number;
|
|
5
5
|
environmentId: number;
|
|
6
6
|
setVulnerabilityCount: React.Dispatch<React.SetStateAction<number>>;
|
|
7
|
+
isScanV2Enabled: boolean;
|
|
7
8
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { LastExecutionResponseType, LastExecutionResultType } from '
|
|
1
|
+
import { LastExecutionResponseType, LastExecutionResultType } from '../../../types';
|
|
2
2
|
export declare const getSortedVulnerabilities: (vulnerabilities: any) => any;
|
|
3
3
|
export declare const getParsedScanResult: (scanResult: any) => LastExecutionResultType;
|
|
4
4
|
export declare const parseLastExecutionResponse: (response: any) => LastExecutionResponseType;
|
|
@@ -5,7 +5,6 @@ export * from './ImageCard';
|
|
|
5
5
|
export * from './ImageCardAccordion';
|
|
6
6
|
export * from './ExcludedImageNode';
|
|
7
7
|
export * from './ScannedByToolModal';
|
|
8
|
-
export * from './Vulnerabilities';
|
|
9
8
|
export * from './FilterChips';
|
|
10
9
|
export * from './ActivityIndicator';
|
|
11
10
|
export * from './GenericSectionErrorState';
|
|
@@ -40,4 +39,5 @@ export * from './TabGroup';
|
|
|
40
39
|
export * from './EditImageFormField';
|
|
41
40
|
export * from './Collapse';
|
|
42
41
|
export * from './FilterButton';
|
|
42
|
+
export * from './Security';
|
|
43
43
|
export * from './Button';
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -371,6 +371,7 @@ export declare enum ResourceKindType {
|
|
|
371
371
|
cluster = "cluster",
|
|
372
372
|
release = "release",
|
|
373
373
|
releaseTrack = "release-track",
|
|
374
|
+
releaseChannel = "release-channel",
|
|
374
375
|
tenant = "tenant",
|
|
375
376
|
installation = "installation",
|
|
376
377
|
environment = "environment",
|
|
@@ -412,6 +413,7 @@ export interface LastExecutionResultType {
|
|
|
412
413
|
scanned?: boolean;
|
|
413
414
|
scanEnabled?: boolean;
|
|
414
415
|
scanToolId?: number;
|
|
416
|
+
imageScanDeployInfoId?: number;
|
|
415
417
|
}
|
|
416
418
|
export interface LastExecutionResponseType extends ResponseType<LastExecutionResultType> {
|
|
417
419
|
}
|