@devtron-labs/devtron-fe-common-lib 0.3.5-beta-6 → 0.3.6-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.
Files changed (72) hide show
  1. package/dist/Common/Drawer/Drawer.d.ts +1 -1
  2. package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +2 -0
  3. package/dist/Common/Security/types.d.ts +4 -0
  4. package/dist/Common/index.d.ts +1 -0
  5. package/dist/Pages/App/AppConfigurations/utils.d.ts +1 -1
  6. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +2 -2
  7. package/dist/Shared/Components/DeploymentConfigDiff/{types.d.ts → DeploymentConfigDiff.types.d.ts} +25 -3
  8. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +9 -8
  9. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +1 -1
  10. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +2 -2
  11. package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +2 -2
  12. package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +1 -1
  13. package/dist/Shared/Components/ImageCardAccordion/ImageCardAccordion.d.ts +1 -1
  14. package/dist/Shared/Components/ImageCardAccordion/types.d.ts +1 -5
  15. package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +24 -5
  16. package/dist/Shared/Components/TabGroup/TabGroup.utils.d.ts +1 -0
  17. package/dist/Shared/Components/Vulnerabilities/Vulnerabilities.d.ts +3 -0
  18. package/dist/Shared/Components/Vulnerabilities/constants.d.ts +4 -0
  19. package/dist/Shared/Components/{Security/Vulnerabilities → Vulnerabilities}/index.d.ts +0 -1
  20. package/dist/Shared/Components/{Security/Vulnerabilities → Vulnerabilities}/service.d.ts +1 -1
  21. package/dist/Shared/Components/Vulnerabilities/types.d.ts +7 -0
  22. package/dist/Shared/Components/Vulnerabilities/utils.d.ts +4 -0
  23. package/dist/Shared/Components/index.d.ts +1 -1
  24. package/dist/Shared/Services/app.types.d.ts +7 -1
  25. package/dist/Shared/constants.d.ts +0 -4
  26. package/dist/Shared/types.d.ts +0 -1
  27. package/dist/assets/index.css +1 -1
  28. package/dist/{cssMode-BOibF7HD.js → cssMode-DyAvOBkY.js} +1 -1
  29. package/dist/{freemarker2-C7Kk_eqH.js → freemarker2-tPNqkUTQ.js} +1 -1
  30. package/dist/{handlebars-BBnvgDR9.js → handlebars-C1mESqod.js} +1 -1
  31. package/dist/{html-B5sqXWv7.js → html-Cv3tbe3V.js} +1 -1
  32. package/dist/{htmlMode-CtTJyc3B.js → htmlMode-D9FROfxJ.js} +1 -1
  33. package/dist/{index-Bbrvpbss.js → index-6HckNOg7.js} +30235 -31746
  34. package/dist/index.js +481 -494
  35. package/dist/{javascript-DlxVJjy5.js → javascript-D-S0ZH6k.js} +1 -1
  36. package/dist/{jsonMode-B4Ihu8Oo.js → jsonMode-BCOgENbK.js} +1 -1
  37. package/dist/{liquid-jBch6GLL.js → liquid-BHU4NPDq.js} +1 -1
  38. package/dist/{mdx-D4srjr2W.js → mdx-CgZj4bIA.js} +1 -1
  39. package/dist/{python-QHvao-V2.js → python-Dtb925za.js} +1 -1
  40. package/dist/{razor-BkW_FJpQ.js → razor-Bx48A-N3.js} +1 -1
  41. package/dist/{tsMode-DgXNcsFS.js → tsMode-nB_hYIwB.js} +1 -1
  42. package/dist/{typescript-Cn7KhWUf.js → typescript-Cr3j4nqE.js} +1 -1
  43. package/dist/{xml-DvPFc7eF.js → xml-D0QNf3dP.js} +1 -1
  44. package/dist/{yaml-DFUXSUUn.js → yaml-9jPH8omw.js} +1 -1
  45. package/package.json +3 -4
  46. package/dist/Shared/Components/Security/SecurityModal/SecurityModal.d.ts +0 -14
  47. package/dist/Shared/Components/Security/SecurityModal/components/IndexedTextDisplay.d.ts +0 -4
  48. package/dist/Shared/Components/Security/SecurityModal/components/InfoCard.d.ts +0 -4
  49. package/dist/Shared/Components/Security/SecurityModal/components/OpenDetailViewButton.d.ts +0 -4
  50. package/dist/Shared/Components/Security/SecurityModal/components/Table.d.ts +0 -4
  51. package/dist/Shared/Components/Security/SecurityModal/components/index.d.ts +0 -3
  52. package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +0 -100
  53. package/dist/Shared/Components/Security/SecurityModal/config/EmptyState.d.ts +0 -2
  54. package/dist/Shared/Components/Security/SecurityModal/config/ImageScan.d.ts +0 -4
  55. package/dist/Shared/Components/Security/SecurityModal/config/InfoCard.d.ts +0 -2
  56. package/dist/Shared/Components/Security/SecurityModal/config/KubernetesManifest.d.ts +0 -4
  57. package/dist/Shared/Components/Security/SecurityModal/config/Sidebar.d.ts +0 -2
  58. package/dist/Shared/Components/Security/SecurityModal/config/Table.d.ts +0 -2
  59. package/dist/Shared/Components/Security/SecurityModal/config/index.d.ts +0 -3
  60. package/dist/Shared/Components/Security/SecurityModal/constants.d.ts +0 -56
  61. package/dist/Shared/Components/Security/SecurityModal/index.d.ts +0 -6
  62. package/dist/Shared/Components/Security/SecurityModal/service.d.ts +0 -3
  63. package/dist/Shared/Components/Security/SecurityModal/types.d.ts +0 -261
  64. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +0 -34
  65. package/dist/Shared/Components/Security/SecuritySummaryCard/SecuritySummaryCard.d.ts +0 -3
  66. package/dist/Shared/Components/Security/SecuritySummaryCard/index.d.ts +0 -1
  67. package/dist/Shared/Components/Security/SecuritySummaryCard/types.d.ts +0 -11
  68. package/dist/Shared/Components/Security/Vulnerabilities/Vulnerabilities.d.ts +0 -3
  69. package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +0 -27
  70. package/dist/Shared/Components/Security/Vulnerabilities/utils.d.ts +0 -6
  71. package/dist/Shared/Components/Security/index.d.ts +0 -4
  72. package/dist/Shared/Components/Security/utils.d.ts +0 -4
@@ -10,5 +10,5 @@ interface drawerInterface {
10
10
  parentClassName?: string;
11
11
  onEscape?: (e?: any) => void;
12
12
  }
13
- export declare const Drawer: ({ children, position, height, width, minWidth, maxWidth, parentClassName, onEscape, }: drawerInterface) => JSX.Element;
13
+ export declare const Drawer: ({ children, position, height, width, minWidth, maxWidth, parentClassName, onEscape, onClose, }: drawerInterface) => JSX.Element;
14
14
  export {};
@@ -0,0 +1,2 @@
1
+ import { ScanVulnerabilitiesTableProps } from '../Types';
2
+ export default function ScanVulnerabilitiesTable({ vulnerabilities, hidePolicy, shouldStick, }: ScanVulnerabilitiesTableProps): JSX.Element;
@@ -0,0 +1,4 @@
1
+ export declare enum VulnerabilitiesTableSortKeys {
2
+ SEVERITY = "severity",
3
+ PACKAGE = "package"
4
+ }
@@ -28,6 +28,7 @@ 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';
31
32
  export { default as StyledRadioGroup } from './RadioGroup/RadioGroup';
32
33
  export * from './CIPipeline.Types';
33
34
  export * from './Policy.Types';
@@ -1,2 +1,2 @@
1
1
  import { DeploymentStageType } from '../../../Shared/constants';
2
- export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "-" | "pre-deployment" | "post-deployment" | "deployment";
2
+ export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "pre-deployment" | "post-deployment" | "deployment" | "-";
@@ -1,2 +1,2 @@
1
- import { DeploymentConfigDiffProps } from './types';
2
- export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
1
+ import { DeploymentConfigDiffProps } from './DeploymentConfigDiff.types';
2
+ export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
@@ -1,5 +1,5 @@
1
1
  import { SortingOrder } from '../../../Common/Constants';
2
- import { ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO } from '../../Services';
2
+ import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType, ManifestTemplateDTO } from '../../Services';
3
3
  import { DeploymentHistoryDetail } from '../CICDHistory';
4
4
  import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
5
5
  import { SelectPickerProps } from '../SelectPicker';
@@ -35,6 +35,11 @@ export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<Coll
35
35
  }
36
36
  export interface DeploymentConfigDiffProps {
37
37
  isLoading?: boolean;
38
+ errorConfig?: {
39
+ error: boolean;
40
+ code: number;
41
+ reload: () => void;
42
+ };
38
43
  configList: DeploymentConfigListItem[];
39
44
  headerText?: string;
40
45
  scrollIntoViewId?: string;
@@ -52,10 +57,15 @@ export interface DeploymentConfigDiffProps {
52
57
  goBackURL?: string;
53
58
  navHeading: string;
54
59
  navHelpText?: string;
60
+ tabConfig?: {
61
+ tabs: string[];
62
+ activeTab: string;
63
+ onClick: (tab: string) => void;
64
+ };
55
65
  }
56
- export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText'> {
66
+ export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig'> {
57
67
  }
58
- export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'> {
68
+ export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'> {
59
69
  }
60
70
  export interface DeploymentConfigDiffAccordionProps extends Pick<CollapseProps, 'onTransitionEnd'> {
61
71
  id: string;
@@ -66,3 +76,15 @@ export interface DeploymentConfigDiffAccordionProps extends Pick<CollapseProps,
66
76
  onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
67
77
  }
68
78
  export type DiffHeadingDataType<DeploymentTemplate> = DeploymentTemplate extends true ? DeploymentTemplateDTO : ConfigMapSecretDataConfigDatumDTO;
79
+ export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView extends true ? {
80
+ currentList: ManifestTemplateDTO;
81
+ compareList: ManifestTemplateDTO;
82
+ sortOrder?: never;
83
+ } : {
84
+ currentList: AppEnvDeploymentConfigDTO;
85
+ compareList: AppEnvDeploymentConfigDTO;
86
+ sortOrder?: SortingOrder;
87
+ }) & {
88
+ getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string;
89
+ isManifestView?: IsManifestView;
90
+ };
@@ -1,6 +1,5 @@
1
- import { SortingOrder } from '../../../Common/Constants';
2
- import { DeploymentConfigDiffProps } from '..';
3
- import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, EnvResourceType, TemplateListDTO } from '../../Services/app.types';
1
+ import { AppEnvDeploymentConfigListParams, DeploymentConfigDiffProps } from '..';
2
+ import { ConfigMapSecretDataConfigDatumDTO, TemplateListDTO } from '../../Services/app.types';
4
3
  /**
5
4
  * Retrieves the draft data from the given configuration data object.
6
5
  *
@@ -19,14 +18,16 @@ export declare const mergeConfigDataArraysByName: (primaryArray: ConfigMapSecret
19
18
  /**
20
19
  * Generates a list of deployment configurations for application environments and identifies changes between the current and compare lists.
21
20
  *
22
- * @param currentList - The current deployment configuration list.
23
- * @param compareList - The deployment configuration list to compare against.
24
- * @param getNavItemHref - A function to generate navigation item URLs based on the resource type and resource name.
25
- * @param sortOrder - (Optional) The order in which to sort the deployment templates.
21
+ * @param params - An object containing the following properties:
22
+ * @param params.currentList - The current deployment configuration list.
23
+ * @param params.compareList - The deployment configuration list to compare against.
24
+ * @param params.getNavItemHref - A function to generate navigation item URLs based on the resource type and resource name.
25
+ * @param params.isManifestView - A boolean that, when true, modifies the output for a manifest view.
26
+ * @param params.sortOrder - (Optional) The order in which to sort the deployment templates.
26
27
  *
27
28
  * @returns An object containing the combined deployment configuration list, a collapsible navigation list, and a navigation list.
28
29
  */
29
- export declare const getAppEnvDeploymentConfigList: (currentList: AppEnvDeploymentConfigDTO, compareList: AppEnvDeploymentConfigDTO, getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string, sortOrder?: SortingOrder) => {
30
+ export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, sortOrder, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
30
31
  configList: DeploymentConfigDiffProps["configList"];
31
32
  navList: DeploymentConfigDiffProps["navList"];
32
33
  collapsibleNavList: DeploymentConfigDiffProps["collapsibleNavList"];
@@ -1,2 +1,2 @@
1
- import { DeploymentConfigDiffAccordionProps } from './types';
1
+ import { DeploymentConfigDiffAccordionProps } from './DeploymentConfigDiff.types';
2
2
  export declare const DeploymentConfigDiffAccordion: import('react').ForwardRefExoticComponent<DeploymentConfigDiffAccordionProps & import('react').RefAttributes<HTMLDivElement>>;
@@ -1,2 +1,2 @@
1
- import { DeploymentConfigDiffMainProps } from './types';
2
- export declare const DeploymentConfigDiffMain: ({ isLoading, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId, }: DeploymentConfigDiffMainProps) => JSX.Element;
1
+ import { DeploymentConfigDiffMainProps } from './DeploymentConfigDiff.types';
2
+ export declare const DeploymentConfigDiffMain: ({ isLoading, errorConfig, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId, }: DeploymentConfigDiffMainProps) => JSX.Element;
@@ -1,2 +1,2 @@
1
- import { DeploymentConfigDiffNavigationProps } from './types';
2
- export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
1
+ import { DeploymentConfigDiffNavigationProps } from './DeploymentConfigDiff.types';
2
+ export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
@@ -1,3 +1,3 @@
1
1
  export * from './DeploymentConfigDiff.component';
2
- export * from './types';
2
+ export * from './DeploymentConfigDiff.types';
3
3
  export * from './DeploymentConfigDiff.utils';
@@ -1,3 +1,3 @@
1
1
  import { ImageCardAccordionProps } from './types';
2
- declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, changesCard, isScanned, isScanEnabled, isScanV2Enabled, SecurityModalSidebar, getSecurityScan, }: ImageCardAccordionProps) => JSX.Element;
2
+ declare const ImageCardAccordion: ({ isSecurityModuleInstalled, artifactId, applicationId, environmentId, changesCard, isScanned, isScanEnabled, }: ImageCardAccordionProps) => JSX.Element;
3
3
  export default ImageCardAccordion;
@@ -1,7 +1,6 @@
1
1
  import { default as React, ReactNode } from 'react';
2
- import { CDModalTabType, ResponseType, VulnerabilityType } from '../../../Common';
2
+ import { CDModalTabType, VulnerabilityType } from '../../../Common';
3
3
  import { MaterialSecurityInfoType } from '../../types';
4
- import { ApiResponseResultType, AppDetailsPayload, SidebarPropsType } from '../Security';
5
4
  export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
6
5
  isSecurityModuleInstalled: boolean;
7
6
  artifactId: number;
@@ -10,9 +9,6 @@ export interface ImageCardAccordionProps extends MaterialSecurityInfoType {
10
9
  changesCard: ReactNode;
11
10
  isScanned: boolean;
12
11
  isScanEnabled: boolean;
13
- isScanV2Enabled: boolean;
14
- SecurityModalSidebar: React.FC<SidebarPropsType>;
15
- getSecurityScan: ({ appId, envId, artifactId }: AppDetailsPayload) => Promise<ResponseType<ApiResponseResultType>>;
16
12
  }
17
13
  export interface SecurityDetailsType {
18
14
  vulnerabilities: VulnerabilityType[];
@@ -4,7 +4,7 @@ import { DataAttributes } from '../../types';
4
4
  type TabComponentProps<TabTypeProps> = TabTypeProps & DataAttributes;
5
5
  type ConditionalTabType = {
6
6
  /**
7
- * Type of the tab, either `button`, `link` or `navLink`.
7
+ * Type of the tab, either `button`, `link`, `navLink` or `block`.
8
8
  */
9
9
  tabType: 'button';
10
10
  /**
@@ -17,7 +17,7 @@ type ConditionalTabType = {
17
17
  active?: boolean;
18
18
  } | {
19
19
  /**
20
- * Type of the tab, either `button`, `link` or `navLink`.
20
+ * Type of the tab, either `button`, `link`, `navLink` or `block`.
21
21
  */
22
22
  tabType: 'navLink';
23
23
  /**
@@ -27,10 +27,10 @@ type ConditionalTabType = {
27
27
  /**
28
28
  * Active state is determined by matching the URL.
29
29
  */
30
- active?: false;
30
+ active?: never | false;
31
31
  } | {
32
32
  /**
33
- * Type of the tab, either `button`, `link` or `navLink`.
33
+ * Type of the tab, either `button`, `link`, `navLink` or `block`.
34
34
  */
35
35
  tabType: 'link';
36
36
  /**
@@ -41,6 +41,20 @@ type ConditionalTabType = {
41
41
  * Indicates if the tab is currently active.
42
42
  */
43
43
  active?: boolean;
44
+ } | {
45
+ /**
46
+ * Type of the tab, either `button`, `link`, `navLink` or `block`.
47
+ * @note When `tabType` is set to `block`, the tab becomes non-interactive. It won't be active and will not have hover states.
48
+ */
49
+ tabType: 'block';
50
+ /**
51
+ * Props passed to div component.
52
+ */
53
+ props?: TabComponentProps<Omit<React.ComponentProps<'div'>, 'className' | 'style'>>;
54
+ /**
55
+ * Indicates if the tab is currently active.
56
+ */
57
+ active?: never | false;
44
58
  };
45
59
  export type TabProps = {
46
60
  /**
@@ -51,6 +65,11 @@ export type TabProps = {
51
65
  * Text label for the tab.
52
66
  */
53
67
  label: string;
68
+ /**
69
+ * Description for the tab.
70
+ * @note - If passed as a `string[]`, it will be rendered with a bullet in-between strings.
71
+ */
72
+ description?: string | string[];
54
73
  /**
55
74
  * Icon component to be displayed in the tab.
56
75
  * This should be a functional component that renders an SVG.
@@ -92,7 +111,7 @@ export interface TabGroupProps {
92
111
  * Size of the tabs.
93
112
  * @default ComponentSizeType.large
94
113
  */
95
- size?: ComponentSizeType.large | ComponentSizeType.medium;
114
+ size?: ComponentSizeType.large | ComponentSizeType.medium | ComponentSizeType.xl;
96
115
  /**
97
116
  * Optional component to be rendered on the right side of the tab list.
98
117
  */
@@ -5,3 +5,4 @@ export declare const getClassNameBySizeMap: ({ hideTopPadding, alignActiveBorder
5
5
  badgeClassName: string;
6
6
  }>;
7
7
  export declare const getIconColorClassMap: ({ active }: Pick<TabProps, "active">) => Record<TabProps["iconType"], string>;
8
+ export declare const tabGroupClassMap: Record<TabGroupProps['size'], string>;
@@ -0,0 +1,3 @@
1
+ import { VulnerabilitiesProps } from './types';
2
+ declare const Vulnerabilities: ({ isScanned, isScanEnabled, artifactId, applicationId, environmentId, setVulnerabilityCount, }: VulnerabilitiesProps) => JSX.Element;
3
+ export default Vulnerabilities;
@@ -0,0 +1,4 @@
1
+ export declare const NO_VULNERABILITY_TEXT: {
2
+ SECURED: string;
3
+ NO_VULNERABILITY_FOUND: string;
4
+ };
@@ -1,3 +1,2 @@
1
1
  export { default as Vulnerabilities } from './Vulnerabilities';
2
2
  export * from './utils';
3
- export * from './service';
@@ -1,2 +1,2 @@
1
- import { LastExecutionResponseType } from '../../../types';
1
+ import { LastExecutionResponseType } from '../../types';
2
2
  export declare function getLastExecutionByArtifactAppEnv(artifactId: string | number, appId: number | string, envId: number | string): Promise<LastExecutionResponseType>;
@@ -0,0 +1,7 @@
1
+ import { MaterialSecurityInfoType } from '../../types';
2
+ export interface VulnerabilitiesProps extends MaterialSecurityInfoType {
3
+ artifactId: number;
4
+ applicationId: number;
5
+ environmentId: number;
6
+ setVulnerabilityCount: React.Dispatch<React.SetStateAction<number>>;
7
+ }
@@ -0,0 +1,4 @@
1
+ import { LastExecutionResponseType, LastExecutionResultType } from '../../types';
2
+ export declare const getSortedVulnerabilities: (vulnerabilities: any) => any;
3
+ export declare const getParsedScanResult: (scanResult: any) => LastExecutionResultType;
4
+ export declare const parseLastExecutionResponse: (response: any) => LastExecutionResponseType;
@@ -5,6 +5,7 @@ export * from './ImageCard';
5
5
  export * from './ImageCardAccordion';
6
6
  export * from './ExcludedImageNode';
7
7
  export * from './ScannedByToolModal';
8
+ export * from './Vulnerabilities';
8
9
  export * from './FilterChips';
9
10
  export * from './ActivityIndicator';
10
11
  export * from './GenericSectionErrorState';
@@ -39,5 +40,4 @@ export * from './TabGroup';
39
40
  export * from './EditImageFormField';
40
41
  export * from './Collapse';
41
42
  export * from './FilterButton';
42
- export * from './Security';
43
43
  export * from './Button';
@@ -197,6 +197,11 @@ export interface TemplateListDTO {
197
197
  status?: string;
198
198
  pipelineId?: number;
199
199
  }
200
+ export interface ManifestTemplateDTO {
201
+ data: string;
202
+ resolvedData: string;
203
+ variableSnapshot: null;
204
+ }
200
205
  export declare enum DraftState {
201
206
  Init = 1,
202
207
  Discarded = 2,
@@ -206,6 +211,7 @@ export declare enum DraftState {
206
211
  export declare enum EnvResourceType {
207
212
  ConfigMap = "configmap",
208
213
  Secret = "secrets",
209
- DeploymentTemplate = "deployment-template"
214
+ DeploymentTemplate = "deployment-template",
215
+ Manifest = "manifest"
210
216
  }
211
217
  export {};
@@ -14,10 +14,6 @@ export declare const STAGE_TYPE: {
14
14
  ROLLBACK: string;
15
15
  };
16
16
  export declare const SCAN_TOOL_ID_TRIVY = 3;
17
- /**
18
- * @description This is only used to show mapping for clair, scan tool id for clair can be either 1 or 2
19
- * */
20
- export declare const SCAN_TOOL_ID_CLAIR = 2;
21
17
  export declare const IMAGE_SCAN_TOOL: {
22
18
  Clair: string;
23
19
  Trivy: string;
@@ -413,7 +413,6 @@ export interface LastExecutionResultType {
413
413
  scanned?: boolean;
414
414
  scanEnabled?: boolean;
415
415
  scanToolId?: number;
416
- imageScanDeployInfoId?: number;
417
416
  }
418
417
  export interface LastExecutionResponseType extends ResponseType<LastExecutionResultType> {
419
418
  }