@devtron-labs/devtron-fe-common-lib 0.3.14-beta-2 → 0.3.15-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/Helper.d.ts +0 -1
- package/dist/Common/Toggle/Toggle.d.ts +1 -2
- package/dist/Common/Types.d.ts +0 -5
- package/dist/Common/index.d.ts +0 -1
- package/dist/Pages/App/AppConfigurations/utils.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryConfigList.component.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/{DeploymentHistoryConfigDiff → DeploymentHistoryDiff}/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryHeader.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistorySidebar.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/index.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +35 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/utils.d.ts +11 -0
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/index.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +4 -2
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +10 -27
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +3 -10
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +2 -9
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +1 -1
- package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +1 -1
- package/dist/Shared/Components/ImageCardAccordion/types.d.ts +4 -1
- 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/Table.d.ts +4 -0
- package/dist/Shared/Components/Security/SecurityModal/components/index.d.ts +3 -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 +6 -0
- package/dist/Shared/Components/Security/SecurityModal/service.d.ts +3 -0
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +264 -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 +12 -0
- package/dist/Shared/Components/{Vulnerabilities → Security/Vulnerabilities}/Vulnerabilities.d.ts +1 -1
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +24 -0
- package/dist/Shared/Components/Security/Vulnerabilities/utils.d.ts +6 -0
- package/dist/Shared/Components/Security/index.d.ts +4 -0
- package/dist/Shared/Components/Security/utils.d.ts +4 -0
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -6
- package/dist/Shared/Components/index.d.ts +1 -1
- package/dist/Shared/Helpers.d.ts +0 -13
- package/dist/Shared/Services/app.service.d.ts +1 -7
- package/dist/Shared/Services/app.types.d.ts +7 -34
- package/dist/Shared/constants.d.ts +4 -0
- package/dist/Shared/types.d.ts +1 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-8G3MbCuv.js → cssMode-B75flUVR.js} +1 -1
- package/dist/{freemarker2-Cdms4rgp.js → freemarker2-CWe54stz.js} +1 -1
- package/dist/{handlebars-Dg3zpYFY.js → handlebars-rO7mEEEv.js} +1 -1
- package/dist/{html-iUPctsJZ.js → html-CwoFDRgy.js} +1 -1
- package/dist/{htmlMode-CQTplCMn.js → htmlMode-C3UVV2bH.js} +1 -1
- package/dist/{index-Cmo4Tc49.js → index-ZHrTp-NX.js} +50329 -48934
- package/dist/index.js +504 -500
- package/dist/{javascript-hGmfHDU3.js → javascript-4ewCrr0L.js} +1 -1
- package/dist/{jsonMode-Ba6fIHOv.js → jsonMode-DDK5J66q.js} +1 -1
- package/dist/{liquid-BwrItieM.js → liquid-DSbxUTYb.js} +1 -1
- package/dist/{mdx-lZEgCFP3.js → mdx-1j7UFmMS.js} +1 -1
- package/dist/{python-OCkf3aBj.js → python-CcrpriTV.js} +1 -1
- package/dist/{razor-BqWLThdb.js → razor-9VeGILnj.js} +1 -1
- package/dist/{tsMode-BQiLrbqV.js → tsMode-GmziVAdm.js} +1 -1
- package/dist/{typescript-CUOLGMm7.js → typescript-C8UX4alO.js} +1 -1
- package/dist/{xml-BIbLArL1.js → xml-uyZlQDCt.js} +1 -1
- package/dist/{yaml-vEYtbKD4.js → yaml-DNNifw2F.js} +1 -1
- package/package.json +5 -4
- package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +0 -2
- package/dist/Common/Security/types.d.ts +0 -4
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiff.d.ts +0 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +0 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +0 -6
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/index.d.ts +0 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +0 -35
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +0 -20
- package/dist/Shared/Components/Vulnerabilities/constants.d.ts +0 -4
- package/dist/Shared/Components/Vulnerabilities/service.d.ts +0 -2
- package/dist/Shared/Components/Vulnerabilities/types.d.ts +0 -7
- package/dist/Shared/Components/Vulnerabilities/utils.d.ts +0 -4
- /package/dist/Shared/Components/{Vulnerabilities → Security/Vulnerabilities}/index.d.ts +0 -0
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -120,5 +120,4 @@ export declare const DropdownIndicator: (props: any) => JSX.Element;
|
|
|
120
120
|
export declare function mapByKey<T = Map<any, any>>(arr: any[], id: string): T;
|
|
121
121
|
export declare function asyncWrap(promise: any): any[];
|
|
122
122
|
export declare const prefixZeroIfSingleDigit: (value?: number) => string | number;
|
|
123
|
-
export declare const throttle: <T extends (...args: unknown[]) => unknown>(func: T, delay?: number) => ((...args: Parameters<T>) => void);
|
|
124
123
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass,
|
|
1
|
+
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
selected?: boolean;
|
|
4
4
|
onSelect?: any;
|
|
@@ -8,6 +8,5 @@ declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dat
|
|
|
8
8
|
dataTestId?: string;
|
|
9
9
|
Icon?: any;
|
|
10
10
|
iconClass?: string;
|
|
11
|
-
throttleOnChange?: boolean;
|
|
12
11
|
}) => JSX.Element;
|
|
13
12
|
export default Toggle;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -546,11 +546,6 @@ export interface VulnerabilityType {
|
|
|
546
546
|
policy: string;
|
|
547
547
|
url?: string;
|
|
548
548
|
}
|
|
549
|
-
export interface ScanVulnerabilitiesTableProps {
|
|
550
|
-
vulnerabilities: VulnerabilityType[];
|
|
551
|
-
hidePolicy?: boolean;
|
|
552
|
-
shouldStick?: boolean;
|
|
553
|
-
}
|
|
554
549
|
export interface MaterialInfo {
|
|
555
550
|
revision: string;
|
|
556
551
|
modifiedTime: string | Date;
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -28,7 +28,6 @@ export { default as GenericFilterEmptyState } from './EmptyState/GenericFilterEm
|
|
|
28
28
|
export * from './SearchBar';
|
|
29
29
|
export * from './SortableTableHeaderCell';
|
|
30
30
|
export { default as Toggle } from './Toggle/Toggle';
|
|
31
|
-
export { default as ScanVulnerabilitiesTable } from './Security/ScanVulnerabilitiesTable';
|
|
32
31
|
export { default as StyledRadioGroup } from './RadioGroup/RadioGroup';
|
|
33
32
|
export * from './CIPipeline.Types';
|
|
34
33
|
export * from './Policy.Types';
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentStageType } from '../../../Shared/constants';
|
|
2
|
-
export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "
|
|
2
|
+
export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "-" | "pre-deployment" | "post-deployment" | "deployment";
|
package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CompareViewDeploymentType } from './types';
|
|
2
|
+
declare const DeploymentHistoryDetailedView: ({ setFullScreenView, deploymentHistoryList, setDeploymentHistoryList, renderRunSource, resourceId, }: CompareViewDeploymentType) => JSX.Element;
|
|
3
|
+
export default DeploymentHistoryDetailedView;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DeploymentTemplateHistoryType } from '../types';
|
|
2
|
-
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, sortOrder, }: DeploymentTemplateHistoryType) => JSX.Element;
|
|
2
|
+
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, comparisonBodyClassName, sortOrder, }: DeploymentTemplateHistoryType) => JSX.Element;
|
|
3
3
|
export default DeploymentHistoryDiffView;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CompareWithBaseConfiguration } from './types';
|
|
2
|
+
declare const DeploymentHistoryHeader: ({ selectedDeploymentTemplate, setSelectedDeploymentTemplate, setFullScreenView, setLoader, setPreviousConfigAvailable, renderRunSource, resourceId, }: CompareWithBaseConfiguration) => JSX.Element;
|
|
3
|
+
export default DeploymentHistoryHeader;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default as DeploymentHistoryDetailedView } from './DeploymentHistoryDetailedView';
|
|
2
|
+
export { default as DeploymentHistoryConfigList } from './DeploymentHistoryConfigList.component';
|
|
3
|
+
export { default as DeploymentHistoryDiffView } from './DeploymentHistoryDiffView';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { OptionType } from '../../../../Common';
|
|
2
|
+
import { DeploymentTemplateList, RunSourceType, RenderRunSourceType } from '../types';
|
|
3
|
+
export interface DeploymentHistoryParamsType {
|
|
4
|
+
appId: string;
|
|
5
|
+
pipelineId?: string;
|
|
6
|
+
historyComponent?: string;
|
|
7
|
+
baseConfigurationId?: string;
|
|
8
|
+
historyComponentName?: string;
|
|
9
|
+
envId?: string;
|
|
10
|
+
triggerId?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface CompareViewDeploymentType extends RenderRunSourceType {
|
|
13
|
+
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
14
|
+
deploymentHistoryList: DeploymentTemplateList[];
|
|
15
|
+
setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
|
|
16
|
+
resourceId?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface DeploymentTemplateOptions extends OptionType {
|
|
19
|
+
author: string;
|
|
20
|
+
status: string;
|
|
21
|
+
runSource?: RunSourceType;
|
|
22
|
+
}
|
|
23
|
+
export interface CompareWithBaseConfiguration extends RenderRunSourceType {
|
|
24
|
+
selectedDeploymentTemplate: DeploymentTemplateOptions;
|
|
25
|
+
setSelectedDeploymentTemplate: (selected: any) => void;
|
|
26
|
+
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
27
|
+
setLoader: React.Dispatch<React.SetStateAction<boolean>>;
|
|
28
|
+
setPreviousConfigAvailable: React.Dispatch<React.SetStateAction<boolean>>;
|
|
29
|
+
resourceId?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface TemplateConfiguration {
|
|
32
|
+
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
33
|
+
deploymentHistoryList: DeploymentTemplateList[];
|
|
34
|
+
setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
|
|
35
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export declare const dropdownStyles: {
|
|
2
|
+
menu: (base: any) => any;
|
|
3
|
+
control: (base: any) => any;
|
|
4
|
+
singleValue: (base: any) => any;
|
|
5
|
+
option: (base: any, state: any) => any;
|
|
6
|
+
valueContainer: (base: any) => any;
|
|
7
|
+
indicatorsContainer: (base: any) => any;
|
|
8
|
+
dropdownIndicator: (styles: any) => any;
|
|
9
|
+
container: (base: any, state: any) => any;
|
|
10
|
+
};
|
|
11
|
+
export declare const Option: (props: any) => JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TriggerDetailsType, TriggerOutputProps } from './types';
|
|
3
3
|
export declare const TriggerDetails: React.MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, renderTargetConfigInfo, }: TriggerDetailsType) => JSX.Element>;
|
|
4
|
-
declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom, renderTargetConfigInfo,
|
|
4
|
+
declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom, renderTargetConfigInfo, }: TriggerOutputProps) => JSX.Element;
|
|
5
5
|
export default TriggerOutput;
|
|
@@ -11,6 +11,6 @@ export * from './History.components';
|
|
|
11
11
|
export * from './utils';
|
|
12
12
|
export * from './TriggerOutput';
|
|
13
13
|
export { default as LogsRenderer } from './LogsRenderer';
|
|
14
|
-
export * from './
|
|
14
|
+
export * from './DeploymentHistoryDiff';
|
|
15
15
|
export * from './CiPipelineSourceConfig';
|
|
16
16
|
export * from './StatusFilterButtonComponent';
|
|
@@ -322,13 +322,14 @@ export interface TriggerOutputProps extends RenderRunSourceType, Pick<TriggerDet
|
|
|
322
322
|
fullScreenView: boolean;
|
|
323
323
|
triggerHistory: Map<number, History>;
|
|
324
324
|
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
325
|
+
deploymentHistoryList: DeploymentTemplateList[];
|
|
326
|
+
setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
|
|
325
327
|
deploymentAppType: DeploymentAppTypes;
|
|
326
328
|
isBlobStorageConfigured: boolean;
|
|
327
329
|
appReleaseTags: string[];
|
|
328
330
|
tagsEditable: boolean;
|
|
329
331
|
hideImageTaggingHardDelete: boolean;
|
|
330
332
|
fetchIdData: FetchIdDataStatus;
|
|
331
|
-
appName: string;
|
|
332
333
|
selectedEnvironmentName?: string;
|
|
333
334
|
renderCIListHeader?: (renderCIListHeaderProps: RenderCIListHeaderProps) => JSX.Element;
|
|
334
335
|
renderDeploymentApprovalInfo?: (userApprovalMetadata: UserApprovalMetadataType) => JSX.Element;
|
|
@@ -342,7 +343,7 @@ export interface TriggerOutputProps extends RenderRunSourceType, Pick<TriggerDet
|
|
|
342
343
|
scrollToTop: ReturnType<typeof useScrollable>[1];
|
|
343
344
|
scrollToBottom: ReturnType<typeof useScrollable>[2];
|
|
344
345
|
}
|
|
345
|
-
export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView'
|
|
346
|
+
export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentHistoryList' | 'setDeploymentHistoryList' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView'> {
|
|
346
347
|
triggerDetails: History;
|
|
347
348
|
loading: boolean;
|
|
348
349
|
userApprovalMetadata: UserApprovalMetadataType;
|
|
@@ -392,6 +393,7 @@ export interface DeploymentTemplateHistoryType {
|
|
|
392
393
|
isUnpublished?: boolean;
|
|
393
394
|
isDeleteDraft?: boolean;
|
|
394
395
|
rootClassName?: string;
|
|
396
|
+
comparisonBodyClassName?: string;
|
|
395
397
|
sortOrder?: SortingOrder;
|
|
396
398
|
}
|
|
397
399
|
export interface DeploymentHistoryDetailRes extends ResponseType {
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig,
|
|
2
|
+
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
|
|
@@ -4,12 +4,6 @@ import { DeploymentHistoryDetail } from '../CICDHistory';
|
|
|
4
4
|
import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
|
|
5
5
|
import { SelectPickerProps } from '../SelectPicker';
|
|
6
6
|
import { CollapseProps } from '../Collapse';
|
|
7
|
-
export declare enum DeploymentConfigDiffState {
|
|
8
|
-
NO_DIFF = "noDiff",
|
|
9
|
-
HAS_DIFF = "hasDiff",
|
|
10
|
-
ADDED = "added",
|
|
11
|
-
DELETED = "deleted"
|
|
12
|
-
}
|
|
13
7
|
export interface DeploymentConfigType {
|
|
14
8
|
list: DeploymentHistoryDetail;
|
|
15
9
|
heading: React.ReactNode;
|
|
@@ -17,13 +11,10 @@ export interface DeploymentConfigType {
|
|
|
17
11
|
export interface DeploymentConfigListItem {
|
|
18
12
|
id: string;
|
|
19
13
|
title: string;
|
|
20
|
-
name?: string;
|
|
21
|
-
pathType: EnvResourceType;
|
|
22
14
|
primaryConfig: DeploymentConfigType;
|
|
23
15
|
secondaryConfig: DeploymentConfigType;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
groupHeader?: string;
|
|
16
|
+
hasDiff?: boolean;
|
|
17
|
+
isDeploymentTemplate?: boolean;
|
|
27
18
|
}
|
|
28
19
|
export type DeploymentConfigDiffSelectPickerProps = {
|
|
29
20
|
type: 'string';
|
|
@@ -37,7 +28,7 @@ export type DeploymentConfigDiffSelectPickerProps = {
|
|
|
37
28
|
selectPickerProps: SelectPickerProps;
|
|
38
29
|
};
|
|
39
30
|
export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem, 'href' | 'title' | 'onClick'> {
|
|
40
|
-
|
|
31
|
+
hasDiff?: boolean;
|
|
41
32
|
}
|
|
42
33
|
export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig, 'id' | 'header' | 'noItemsText'> {
|
|
43
34
|
items: DeploymentConfigDiffNavigationItem[];
|
|
@@ -50,13 +41,11 @@ export interface DeploymentConfigDiffProps {
|
|
|
50
41
|
reload: () => void;
|
|
51
42
|
};
|
|
52
43
|
configList: DeploymentConfigListItem[];
|
|
53
|
-
showDetailedDiffState?: boolean;
|
|
54
44
|
headerText?: string;
|
|
55
45
|
scrollIntoViewId?: string;
|
|
56
46
|
selectorsConfig: {
|
|
57
47
|
primaryConfig: DeploymentConfigDiffSelectPickerProps[];
|
|
58
48
|
secondaryConfig: DeploymentConfigDiffSelectPickerProps[];
|
|
59
|
-
hideDivider?: boolean;
|
|
60
49
|
};
|
|
61
50
|
sortingConfig?: {
|
|
62
51
|
sortBy: string;
|
|
@@ -73,35 +62,29 @@ export interface DeploymentConfigDiffProps {
|
|
|
73
62
|
activeTab: string;
|
|
74
63
|
onClick: (tab: string) => void;
|
|
75
64
|
};
|
|
76
|
-
scopeVariablesConfig?: {
|
|
77
|
-
convertVariables: boolean;
|
|
78
|
-
onConvertVariablesClick: () => void;
|
|
79
|
-
};
|
|
80
|
-
renderedInDrawer?: boolean;
|
|
81
65
|
}
|
|
82
|
-
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig'
|
|
66
|
+
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig'> {
|
|
83
67
|
}
|
|
84
|
-
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'
|
|
68
|
+
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'> {
|
|
85
69
|
}
|
|
86
|
-
export
|
|
70
|
+
export interface DeploymentConfigDiffAccordionProps extends Pick<CollapseProps, 'onTransitionEnd'> {
|
|
87
71
|
id: string;
|
|
88
72
|
title: string;
|
|
89
73
|
children: React.ReactNode;
|
|
90
|
-
|
|
74
|
+
hasDiff?: boolean;
|
|
91
75
|
isExpanded?: boolean;
|
|
92
76
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
93
|
-
}
|
|
77
|
+
}
|
|
94
78
|
export type DiffHeadingDataType<DeploymentTemplate> = DeploymentTemplate extends true ? DeploymentTemplateDTO : ConfigMapSecretDataConfigDatumDTO;
|
|
95
79
|
export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView extends true ? {
|
|
96
80
|
currentList: ManifestTemplateDTO;
|
|
97
81
|
compareList: ManifestTemplateDTO;
|
|
82
|
+
sortOrder?: never;
|
|
98
83
|
} : {
|
|
99
84
|
currentList: AppEnvDeploymentConfigDTO;
|
|
100
85
|
compareList: AppEnvDeploymentConfigDTO;
|
|
86
|
+
sortOrder?: SortingOrder;
|
|
101
87
|
}) & {
|
|
102
88
|
getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string;
|
|
103
89
|
isManifestView?: IsManifestView;
|
|
104
|
-
convertVariables?: boolean;
|
|
105
|
-
currentDeploymentTemplateResolvedData?: AppEnvDeploymentConfigDTO;
|
|
106
|
-
compareDeploymentTemplateResolvedData?: AppEnvDeploymentConfigDTO;
|
|
107
90
|
};
|
|
@@ -1,7 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
3
|
-
import { ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, TemplateListDTO } from '../../Services/app.types';
|
|
4
|
-
export declare const getDeploymentTemplateData: (data: DeploymentTemplateDTO) => any;
|
|
1
|
+
import { AppEnvDeploymentConfigListParams, DeploymentConfigDiffProps } from '..';
|
|
2
|
+
import { ConfigMapSecretDataConfigDatumDTO, TemplateListDTO } from '../../Services/app.types';
|
|
5
3
|
/**
|
|
6
4
|
* Retrieves the draft data from the given configuration data object.
|
|
7
5
|
*
|
|
@@ -29,17 +27,12 @@ export declare const mergeConfigDataArraysByName: (primaryArray: ConfigMapSecret
|
|
|
29
27
|
*
|
|
30
28
|
* @returns An object containing the combined deployment configuration list, a collapsible navigation list, and a navigation list.
|
|
31
29
|
*/
|
|
32
|
-
export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView,
|
|
30
|
+
export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, sortOrder, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
|
|
33
31
|
configList: DeploymentConfigDiffProps["configList"];
|
|
34
32
|
navList: DeploymentConfigDiffProps["navList"];
|
|
35
33
|
collapsibleNavList: DeploymentConfigDiffProps["collapsibleNavList"];
|
|
36
34
|
};
|
|
37
|
-
export declare const getDeploymentTemplateValues: (deploymentTemplate: DeploymentTemplateDTO) => string;
|
|
38
35
|
export declare const getDefaultVersionAndPreviousDeploymentOptions: (data: TemplateListDTO[]) => {
|
|
39
36
|
previousDeployments: TemplateListDTO[];
|
|
40
37
|
defaultVersions: TemplateListDTO[];
|
|
41
38
|
};
|
|
42
|
-
export declare const diffStateTextMap: Record<DeploymentConfigDiffState, string>;
|
|
43
|
-
export declare const diffStateIconMap: Record<DeploymentConfigDiffState, FunctionComponent<SVGProps<SVGSVGElement>>>;
|
|
44
|
-
export declare const diffStateTooltipTextMap: Record<DeploymentConfigDiffState, string>;
|
|
45
|
-
export declare const diffStateTextColorMap: Record<DeploymentConfigDiffState, `c${string}`>;
|
|
@@ -1,9 +1,2 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare const DeploymentConfigDiffAccordion: import('react').ForwardRefExoticComponent<
|
|
3
|
-
id: string;
|
|
4
|
-
title: string;
|
|
5
|
-
children: React.ReactNode;
|
|
6
|
-
diffState: DeploymentConfigDiffState;
|
|
7
|
-
isExpanded?: boolean;
|
|
8
|
-
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
9
|
-
} & import('react').RefAttributes<HTMLDivElement>>;
|
|
1
|
+
import { DeploymentConfigDiffAccordionProps } from './DeploymentConfigDiff.types';
|
|
2
|
+
export declare const DeploymentConfigDiffAccordion: import('react').ForwardRefExoticComponent<DeploymentConfigDiffAccordionProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffMainProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiffMain: ({ isLoading, errorConfig, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId,
|
|
2
|
+
export declare const DeploymentConfigDiffMain: ({ isLoading, errorConfig, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId, }: DeploymentConfigDiffMainProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffNavigationProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig,
|
|
2
|
+
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
|
|
@@ -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, SecurityModalSidebar, getSecurityScan, }: ImageCardAccordionProps) => JSX.Element;
|
|
3
3
|
export default ImageCardAccordion;
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { default as React, ReactNode } from 'react';
|
|
2
|
-
import { CDModalTabType, VulnerabilityType } from '../../../Common';
|
|
2
|
+
import { CDModalTabType, ResponseType, VulnerabilityType } from '../../../Common';
|
|
3
3
|
import { MaterialSecurityInfoType } from '../../types';
|
|
4
|
+
import { ApiResponseResultType, AppDetailsPayload, SidebarPropsType } from '../Security';
|
|
4
5
|
export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
|
|
5
6
|
isSecurityModuleInstalled: boolean;
|
|
6
7
|
artifactId: number;
|
|
@@ -9,6 +10,8 @@ export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
|
|
|
9
10
|
changesCard: ReactNode;
|
|
10
11
|
isScanned: boolean;
|
|
11
12
|
isScanEnabled: boolean;
|
|
13
|
+
SecurityModalSidebar: React.FC<SidebarPropsType>;
|
|
14
|
+
getSecurityScan: (props: Pick<AppDetailsPayload, 'appId' | 'envId' | 'artifactId'>) => Promise<ResponseType<ApiResponseResultType>>;
|
|
12
15
|
}
|
|
13
16
|
export interface SecurityDetailsType {
|
|
14
17
|
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"], hidePolicy: boolean) => {
|
|
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"], hidePolicy: boolean) => 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"], hidePolicy: boolean) => 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"], hidePolicy: boolean) => 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,6 @@
|
|
|
1
|
+
export { default as SecurityModal } from './SecurityModal';
|
|
2
|
+
export { getSecurityScanSeveritiesCount, getTotalVulnerabilityCount, parseGetResourceScanDetailsResponse, parseExecutionDetailResponse, } from './utils';
|
|
3
|
+
export type { AppDetailsPayload, ExecutionDetailsPayload, ApiResponseResultType, SidebarPropsType, SidebarDataChildType, SidebarDataType, GetResourceScanDetailsPayloadType, GetResourceScanDetailsResponseType, } from './types';
|
|
4
|
+
export { SIDEBAR_DATA } from './config';
|
|
5
|
+
export { CATEGORY_LABELS } from './constants';
|
|
6
|
+
export { getExecutionDetails } from './service';
|