@devtron-labs/devtron-fe-common-lib 1.13.0-beta-5 → 1.13.0-beta-7

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 (117) hide show
  1. package/dist/{@common-rjsf-DeeiJ2zv.js → @common-rjsf-CsUgIJpt.js} +17697 -18328
  2. package/dist/{@framer-motion-vKlTvuNq.js → @framer-motion-CR14HVwJ.js} +1 -1
  3. package/dist/{@react-dates-DsYJWeMo.js → @react-dates-z_WnuIha.js} +14 -14
  4. package/dist/{@react-select-D3FsD2uq.js → @react-select-C1KOG39W.js} +1 -1
  5. package/dist/{@react-virtualized-sticky-tree-DWN3dQyp.js → @react-virtualized-sticky-tree-DE3LznCK.js} +1 -1
  6. package/dist/{@vendor-BZ1WgRCl.js → @vendor-0Z6AwxJy.js} +13864 -13874
  7. package/dist/Common/Checkbox.d.ts +5 -0
  8. package/dist/Common/Constants.d.ts +2 -2
  9. package/dist/Common/Helper.d.ts +1 -5
  10. package/dist/Common/Toggle/Toggle.d.ts +1 -4
  11. package/dist/Common/Types.d.ts +2 -4
  12. package/dist/Common/index.d.ts +3 -2
  13. package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/services.d.ts +1 -1
  14. package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +2 -1
  15. package/dist/Shared/Components/AnnouncementBanner/AnnouncementBanner.d.ts +6 -0
  16. package/dist/Shared/Components/AnnouncementBanner/index.d.ts +1 -0
  17. package/dist/Shared/Components/Button/types.d.ts +1 -3
  18. package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +3 -0
  19. package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +1 -1
  20. package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +1 -1
  21. package/dist/Shared/Components/CICDHistory/ErrorInfoStatusBar.d.ts +2 -0
  22. package/dist/Shared/Components/CICDHistory/constants.d.ts +0 -1
  23. package/dist/Shared/Components/CICDHistory/index.d.ts +1 -0
  24. package/dist/Shared/Components/CICDHistory/service.d.ts +0 -3
  25. package/dist/Shared/Components/CICDHistory/types.d.ts +76 -10
  26. package/dist/Shared/Components/CICDHistory/utils.d.ts +3 -7
  27. package/dist/Shared/Components/Error/ErrorBar.d.ts +1 -1
  28. package/dist/Shared/Components/Error/types.d.ts +0 -4
  29. package/dist/Shared/Components/Error/utils.d.ts +0 -1
  30. package/dist/Shared/Components/FramerComponents/index.d.ts +2 -2
  31. package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
  32. package/dist/Shared/Components/Header/types.d.ts +1 -0
  33. package/dist/Shared/Components/Icon/Icon.d.ts +9 -23
  34. package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
  35. package/dist/Shared/Components/Icon/types.d.ts +1 -2
  36. package/dist/Shared/Components/InfoBlock/constants.d.ts +2 -2
  37. package/dist/Shared/Components/InfoBlock/types.d.ts +2 -2
  38. package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
  39. package/dist/Shared/Components/License/index.d.ts +1 -1
  40. package/dist/Shared/Components/License/utils.d.ts +1 -2
  41. package/dist/Shared/Components/LoadingCard.d.ts +5 -0
  42. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
  43. package/dist/Shared/Components/TabGroup/TabGroup.helpers.d.ts +1 -1
  44. package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +7 -33
  45. package/dist/Shared/Components/index.d.ts +2 -2
  46. package/dist/Shared/Helpers.d.ts +2 -2
  47. package/dist/Shared/Providers/index.d.ts +1 -1
  48. package/dist/Shared/Providers/types.d.ts +1 -11
  49. package/dist/Shared/constants.d.ts +24 -18
  50. package/dist/Shared/types.d.ts +4 -105
  51. package/dist/assets/@common-rjsf.css +1 -1
  52. package/dist/assets/{ic-checkbox-unselected.ab91cdba.svg → ic-check-grey.f556e371.svg} +4 -2
  53. package/dist/assets/ic-disconnected.551d6161.svg +29 -0
  54. package/dist/assets/ic-fast-forward.8d1a414b.svg +4 -0
  55. package/dist/assets/ic-flask.d0624c30.svg +3 -0
  56. package/dist/assets/ic-lego.1d2c5e1d.svg +3 -0
  57. package/dist/assets/{ic-caret-down-small.7c4f88bf.svg → ic-magnifying-glass.cf47bce0.svg} +1 -1
  58. package/dist/assets/ic-megaphone.b9f9a901.svg +19 -0
  59. package/dist/assets/ic-play-outline.a4f09bf9.svg +3 -0
  60. package/dist/assets/ic-strategy-blue-green.0b348d03.svg +6 -0
  61. package/dist/assets/ic-strategy-canary.db010ee7.svg +5 -0
  62. package/dist/assets/ic-strategy-recreate.f0acddaa.svg +4 -0
  63. package/dist/assets/ic-strategy-rolling.1c356cdb.svg +6 -0
  64. package/dist/assets/{ic-checkbox-hover.93e8d66a.svg → ic-timeout-red.5eda1010.svg} +4 -3
  65. package/dist/index.d.ts +0 -3
  66. package/dist/index.js +851 -876
  67. package/package.json +1 -1
  68. package/dist/Common/Checkbox/Checkbox.d.ts +0 -2
  69. package/dist/Common/Checkbox/index.d.ts +0 -1
  70. package/dist/Common/Drawer/index.d.ts +0 -1
  71. package/dist/Common/EmptyState/index.d.ts +0 -2
  72. package/dist/Shared/Components/AppStatusModal/AppStatusBody.d.ts +0 -2
  73. package/dist/Shared/Components/AppStatusModal/AppStatusContent.d.ts +0 -3
  74. package/dist/Shared/Components/AppStatusModal/AppStatusModal.component.d.ts +0 -3
  75. package/dist/Shared/Components/AppStatusModal/AppStatusModalTabList.d.ts +0 -3
  76. package/dist/Shared/Components/AppStatusModal/constants.d.ts +0 -4
  77. package/dist/Shared/Components/AppStatusModal/index.d.ts +0 -3
  78. package/dist/Shared/Components/AppStatusModal/service.d.ts +0 -4
  79. package/dist/Shared/Components/AppStatusModal/types.d.ts +0 -78
  80. package/dist/Shared/Components/AppStatusModal/utils.d.ts +0 -8
  81. package/dist/Shared/Components/DeploymentStatusBreakdown/constants.d.ts +0 -10
  82. package/dist/Shared/Components/DeploymentStatusBreakdown/index.d.ts +0 -3
  83. package/dist/Shared/Components/DeploymentStatusBreakdown/types.d.ts +0 -22
  84. package/dist/Shared/Components/DeploymentStatusBreakdown/utils.d.ts +0 -20
  85. package/dist/assets/ic-amazon-eks.13404569.svg +0 -5
  86. package/dist/assets/ic-arrow-square-out.59bb549a.svg +0 -3
  87. package/dist/assets/ic-azure-aks.a9e437d5.svg +0 -46
  88. package/dist/assets/ic-bulk-check.0f698efa.svg +0 -21
  89. package/dist/assets/ic-bulk-check.99e92f7a.svg +0 -21
  90. package/dist/assets/ic-caret-right.0ff813c2.svg +0 -3
  91. package/dist/assets/ic-celebration.77350694.svg +0 -238
  92. package/dist/assets/ic-checkbox-hover.0151d832.svg +0 -20
  93. package/dist/assets/ic-checkbox-intermediate.24c6d21d.svg +0 -22
  94. package/dist/assets/ic-checkbox-intermediate.2a2d6c49.svg +0 -22
  95. package/dist/assets/ic-checkbox-selected.47444fab.svg +0 -20
  96. package/dist/assets/ic-checkbox-selected.c5539d6f.svg +0 -20
  97. package/dist/assets/ic-checkbox-unselected.8054e3d7.svg +0 -19
  98. package/dist/assets/ic-cloud-vms.27ea954e.svg +0 -5
  99. package/dist/assets/ic-disconnect.26bad827.svg +0 -3
  100. package/dist/assets/ic-expand-right-sm.9b347d49.svg +0 -3
  101. package/dist/assets/ic-expand-sm.a9a724f8.svg +0 -3
  102. package/dist/assets/ic-gift-gradient.7690a246.svg +0 -9
  103. package/dist/assets/ic-gift.9b048fc7.svg +0 -3
  104. package/dist/assets/ic-gitlab.ac331d67.svg +0 -31
  105. package/dist/assets/ic-google-gke.07314724.svg +0 -9
  106. package/dist/assets/ic-install.28c3beec.svg +0 -3
  107. package/dist/assets/ic-k3s.7f4bf72d.svg +0 -3
  108. package/dist/assets/ic-kind.bd8ee992.svg +0 -9
  109. package/dist/assets/ic-laptop.485e21b4.svg +0 -3
  110. package/dist/assets/ic-man-on-rocket.7f67e914.svg +0 -94
  111. package/dist/assets/ic-megaphone-left.6b2a00b7.svg +0 -3
  112. package/dist/assets/ic-minikube.d9ff1575.svg +0 -9
  113. package/dist/assets/ic-mobile.7c649251.svg +0 -4
  114. package/dist/assets/ic-sparkle-color.01c0be88.svg +0 -1
  115. package/dist/assets/ic-ubuntu.fa47508f.svg +0 -4
  116. package/dist/assets/ic-user-circle.7d7152fa.svg +0 -3
  117. package/dist/assets/ic-wifi-slash.d0390749.svg +0 -3
@@ -1,9 +1,8 @@
1
1
  import { DevtronLicenseDTO } from '../../types';
2
- import { DevtronLicenseCardProps, DevtronLicenseInfo, LicenseStatus } from './types';
2
+ import { DevtronLicenseInfo, LicenseStatus } from './types';
3
3
  export declare const getLicenseColorsAccordingToStatus: (licenseStatus: LicenseStatus) => {
4
4
  bgColor: string;
5
5
  textColor: string;
6
6
  };
7
- export declare const parseDevtronLicenseDTOIntoLicenseCardData: <isCentralDashboard extends boolean = false>(licenseDTO: DevtronLicenseDTO<isCentralDashboard>, currentUserEmail?: isCentralDashboard extends true ? string : never) => Omit<DevtronLicenseCardProps, "appTheme">;
8
7
  export declare const parseDevtronLicenseData: (result: DevtronLicenseDTO) => DevtronLicenseInfo;
9
8
  export declare const getGateKeeperUrl: (fingerprint: string) => string;
@@ -0,0 +1,5 @@
1
+ interface LoadingCardType {
2
+ wider?: boolean;
3
+ }
4
+ declare const LoadingCard: ({ wider }: LoadingCardType) => JSX.Element;
5
+ export default LoadingCard;
@@ -1,7 +1,7 @@
1
1
  import { SEVERITIES } from './constants';
2
2
  import { GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, ScanResultDTO, SeveritiesDTO, VulnerabilityCountType } from './types';
3
3
  export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
4
- color: "var(--R500)" | "var(--N300)" | "var(--O500)" | "var(--Y500)" | "var(--G500)" | "var(--R700)";
4
+ color: "var(--R500)" | "var(--N300)" | "var(--O500)" | "var(--G500)" | "var(--Y500)" | "var(--R700)";
5
5
  label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
6
6
  value: number;
7
7
  }[];
@@ -1,5 +1,5 @@
1
1
  import { TabGroupProps, TabProps } from './TabGroup.types';
2
- export declare const getTabIcon: ({ icon, showError, showWarning, className, size, active, iconElement, }: Pick<TabProps, "showError" | "showWarning" | "icon" | "active" | "iconElement"> & Pick<TabGroupProps, "size"> & {
2
+ export declare const getTabIcon: ({ icon, showError, showWarning, className, size, active, }: Pick<TabProps, "showError" | "showWarning" | "icon" | "active"> & Pick<TabGroupProps, "size"> & {
3
3
  className: string;
4
4
  }) => JSX.Element;
5
5
  export declare const getTabBadge: (badge: TabProps["badge"], className: string) => JSX.Element;
@@ -65,38 +65,6 @@ type TabTooltipProps = {
65
65
  shouldWrapTooltip?: never;
66
66
  tooltipProps?: never;
67
67
  };
68
- /**
69
- * Represents the properties for defining an icon in a tab group.
70
- * This type allows for three configurations:
71
- *
72
- * 1. **Icon as a functional component or string**:
73
- * - Use the `icon` property to specify either a functional component that renders an SVG or a string representing the name of the icon.
74
- * - The `iconElement` property must not be provided in this case.
75
- *
76
- * 2. **Icon as a JSX element**:
77
- * - Use the `iconElement` property to specify a JSX element representing the icon.
78
- * - The `icon` property must not be provided in this case.
79
- *
80
- * 3. **No icon**:
81
- * - Neither `icon` nor `iconElement` is provided, resulting in no icon being displayed.
82
- *
83
- */
84
- type TabGroupIconProp = {
85
- /**
86
- * A functional component rendering an SVG or a string representing the icon name. Mutually exclusive with `iconElement`.
87
- */
88
- icon: React.FunctionComponent<React.SVGProps<SVGSVGElement>> | IconName;
89
- iconElement?: never;
90
- } | {
91
- icon?: never;
92
- /**
93
- * A JSX element representing the icon. Mutually exclusive with `icon`.
94
- */
95
- iconElement: JSX.Element;
96
- } | {
97
- icon?: never;
98
- iconElement?: never;
99
- };
100
68
  export type TabProps = {
101
69
  /**
102
70
  * Unique identifier for the tab.
@@ -111,6 +79,12 @@ export type TabProps = {
111
79
  * @note - If passed as a `string[]`, it will be rendered with a bullet in-between strings.
112
80
  */
113
81
  description?: string | string[];
82
+ /**
83
+ * Icon to be displayed in the tab.
84
+ * This can either be a functional component that renders a SVG
85
+ * or a string representing the name of the icon to be rendered by the Icon component.
86
+ */
87
+ icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>> | IconName;
114
88
  /**
115
89
  * Badge number to be displayed on the tab, typically for notifications.
116
90
  */
@@ -133,7 +107,7 @@ export type TabProps = {
133
107
  * Disables the tab, preventing interaction and indicating an inactive state.
134
108
  */
135
109
  disabled?: boolean;
136
- } & ConditionalTabType & TabTooltipProps & TabGroupIconProp;
110
+ } & ConditionalTabType & TabTooltipProps;
137
111
  export interface TabGroupProps {
138
112
  /**
139
113
  * Array of tabs to be rendered.
@@ -3,8 +3,8 @@ export * from './ActionMenu';
3
3
  export * from './ActivityIndicator';
4
4
  export * from './AnimatedDeployButton';
5
5
  export * from './AnimatedTimer';
6
+ export * from './AnnouncementBanner';
6
7
  export * from './APIResponseHandler';
7
- export * from './AppStatusModal';
8
8
  export * from './ArtifactInfoModal';
9
9
  export * from './Backdrop';
10
10
  export * from './BulkOperations';
@@ -24,7 +24,6 @@ export * from './CountrySelect';
24
24
  export * from './CustomInput';
25
25
  export * from './DatePicker';
26
26
  export * from './DeploymentConfigDiff';
27
- export * from './DeploymentStatusBreakdown';
28
27
  export * from './DetectBottom';
29
28
  export * from './DiffViewer';
30
29
  export * from './DynamicDataTable';
@@ -57,6 +56,7 @@ export * from './InfoIconTippy';
57
56
  export * from './InvalidYAMLTippy';
58
57
  export * from './KeyValueTable';
59
58
  export * from './License';
59
+ export { default as LoadingCard } from './LoadingCard';
60
60
  export * from './LoginBanner';
61
61
  export * from './MaterialHistory';
62
62
  export * from './ModalSidebarPanel';
@@ -4,7 +4,7 @@ import { StrictRJSFSchema } from '@rjsf/utils';
4
4
  import { Pair } from 'yaml';
5
5
  import { MaterialHistoryType } from '@Shared/Services/app.types';
6
6
  import { ApprovalConfigDataType, MaterialInfo, SortingOrder, UserApprovalConfigType, UserApprovalInfo } from '../Common';
7
- import { AggregatedNodes, PodMetadatum } from './Components';
7
+ import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
8
8
  import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
9
9
  interface HighlightSearchTextProps {
10
10
  /**
@@ -36,6 +36,7 @@ export declare const isNullOrUndefined: (value: unknown) => boolean;
36
36
  export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
37
37
  export declare const getKeyToBooleanMapFromArray: <T extends string | number>(arr?: T[]) => Record<T, boolean>;
38
38
  export declare const renderValidInputButtonTippy: (children: ReactElement) => JSX.Element;
39
+ export declare const processDeploymentStatusDetailsData: (data?: DeploymentStatusDetailsType) => DeploymentStatusDetailsBreakdownDataType;
39
40
  export declare function aggregateNodes(nodes: any[], podMetadata: PodMetadatum[]): AggregatedNodes;
40
41
  export declare const decode: (data: any, isEncoded?: boolean) => {};
41
42
  export declare const isTimeStringAvailable: (time: string) => boolean;
@@ -100,5 +101,4 @@ export declare const deriveBorderRadiusAndBorderClassFromConfig: ({ borderConfig
100
101
  }) => string;
101
102
  export declare const getClassNameForStickyHeaderWithShadow: (isStuck: boolean, topClassName?: string) => string;
102
103
  export declare const clearCookieOnLogout: () => void;
103
- export declare const getAppDetailsURL: (appId: number | string, envId?: number | string) => string;
104
104
  export {};
@@ -1,5 +1,5 @@
1
1
  export * from './ImageSelectionUtility';
2
2
  export * from './MainContextProvider';
3
3
  export * from './ThemeProvider';
4
- export type { MainContext, ReloadVersionConfigTypes } from './types';
4
+ export type { MainContext } from './types';
5
5
  export * from './UserEmailProvider';
@@ -1,16 +1,7 @@
1
1
  import { Dispatch, MutableRefObject, ReactNode, SetStateAction } from 'react';
2
2
  import { SERVER_MODE } from '../../Common';
3
3
  import { ServerInfo } from '../Components/Header/types';
4
- import { DevtronLicenseInfo, IntelligenceConfig, LicenseInfoDialogType, ToastManager } from '..';
5
- export interface ReloadVersionConfigTypes {
6
- bgUpdated: boolean;
7
- handleAppUpdate: () => void;
8
- doesNeedRefresh: boolean;
9
- updateServiceWorker: () => Promise<void>;
10
- handleControllerChange: () => void;
11
- updateToastRef: MutableRefObject<ReturnType<typeof ToastManager.showToast>> | null;
12
- isRefreshing: boolean;
13
- }
4
+ import { DevtronLicenseInfo, IntelligenceConfig, LicenseInfoDialogType } from '..';
14
5
  export interface MainContext {
15
6
  serverMode: SERVER_MODE;
16
7
  setServerMode: (serverMode: SERVER_MODE) => void;
@@ -55,7 +46,6 @@ export interface MainContext {
55
46
  licenseData: DevtronLicenseInfo;
56
47
  setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
57
48
  canFetchHelmAppStatus: boolean;
58
- reloadVersionConfig: ReloadVersionConfigTypes;
59
49
  intelligenceConfig: IntelligenceConfig;
60
50
  setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
61
51
  }
@@ -1,6 +1,5 @@
1
- import { DeploymentNodeType, OptionType } from '../Common/Types';
2
- import { InfoBlockProps } from './Components';
3
- import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, IconBaseColorType } from './types';
1
+ import { OptionType } from '../Common/Types';
2
+ import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType } from './types';
4
3
  export declare const ARTIFACT_STATUS: {
5
4
  PROGRESSING: string;
6
5
  DEGRADED: string;
@@ -51,6 +50,28 @@ export declare enum EnvironmentTypeEnum {
51
50
  production = "Production",
52
51
  nonProduction = "Non-Production"
53
52
  }
53
+ export declare enum TIMELINE_STATUS {
54
+ DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED",
55
+ GIT_COMMIT = "GIT_COMMIT",
56
+ GIT_COMMIT_FAILED = "GIT_COMMIT_FAILED",
57
+ ARGOCD_SYNC = "ARGOCD_SYNC",
58
+ ARGOCD_SYNC_FAILED = "ARGOCD_SYNC_FAILED",
59
+ KUBECTL_APPLY = "KUBECTL_APPLY",
60
+ KUBECTL_APPLY_STARTED = "KUBECTL_APPLY_STARTED",
61
+ KUBECTL_APPLY_SYNCED = "KUBECTL_APPLY_SYNCED",
62
+ HEALTHY = "HEALTHY",
63
+ APP_HEALTH = "APP_HEALTH",
64
+ DEPLOYMENT_FAILED = "FAILED",
65
+ FETCH_TIMED_OUT = "TIMED_OUT",
66
+ UNABLE_TO_FETCH_STATUS = "UNABLE_TO_FETCH_STATUS",
67
+ DEGRADED = "DEGRADED",
68
+ DEPLOYMENT_SUPERSEDED = "DEPLOYMENT_SUPERSEDED",
69
+ ABORTED = "ABORTED",
70
+ INPROGRESS = "INPROGRESS",
71
+ HELM_PACKAGE_GENERATED = "HELM_PACKAGE_GENERATED",
72
+ HELM_MANIFEST_PUSHED_TO_HELM_REPO = "HELM_MANIFEST_PUSHED_TO_HELM_REPO",
73
+ HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED = "HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED"
74
+ }
54
75
  /**
55
76
  * Constants for NO MATCHING result
56
77
  */
@@ -414,18 +435,3 @@ export declare const Routes: {
414
435
  };
415
436
  export declare const ENTERPRISE_SUPPORT_LINK = "enterprise@devtron.ai";
416
437
  export declare const INVALID_LICENSE_KEY = "inValid";
417
- export declare enum InfoBlockVariant {
418
- ERROR = "error",
419
- HELP = "help",
420
- INFORMATION = "information",
421
- SUCCESS = "success",
422
- WARNING = "warning",
423
- NEUTRAL = "neutral"
424
- }
425
- export type InfoBlockVariantType = 'error' | 'help' | 'information' | 'success' | 'warning' | 'neutral';
426
- export declare const VARIANT_TO_BG_MAP: Record<InfoBlockProps['variant'], string>;
427
- export declare const VARIANT_TO_ICON_COLOR_MAP: Record<InfoBlockProps['variant'], IconBaseColorType>;
428
- export declare const VARIANT_TO_BORDER_MAP: Record<InfoBlockProps['variant'], string>;
429
- export declare const DEPLOYMENT_STAGE_TO_NODE_MAP: Readonly<Record<DeploymentStageType, DeploymentNodeType>>;
430
- export declare const APP_DETAILS_FALLBACK_POLLING_INTERVAL = 30000;
431
- export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
@@ -1,11 +1,9 @@
1
- import { ReactNode } from 'react';
2
1
  import { ParsedCountry } from 'react-international-phone';
3
2
  import { Dayjs } from 'dayjs';
4
3
  import { APIOptions, ApprovalConfigDataType } from '../Common/Types';
5
- import { ReleaseMode } from '../Pages/index';
6
4
  import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, VulnerabilityType } from '../Common';
7
- import { SelectPickerOptionType, WorkflowRunnerStatusDTO } from './Components';
8
- import { BASE_CONFIGURATION_ENV_ID, DEPLOYMENT_STATUS, EnvironmentTypeEnum, PatchOperationType } from './constants';
5
+ import { SelectPickerOptionType } from './Components';
6
+ import { BASE_CONFIGURATION_ENV_ID, EnvironmentTypeEnum, PatchOperationType } from './constants';
9
7
  export declare enum EnvType {
10
8
  CHART = "helm_charts",
11
9
  APPLICATION = "apps"
@@ -113,7 +111,6 @@ export interface Node {
113
111
  canBeHibernated: boolean;
114
112
  isHibernated: boolean;
115
113
  hasDrift?: boolean;
116
- status?: string;
117
114
  }
118
115
  export interface iNodes extends Array<iNode> {
119
116
  }
@@ -130,7 +127,6 @@ export interface ResourceTree {
130
127
  podMetadata: Array<PodMetaData>;
131
128
  status: string;
132
129
  resourcesSyncResult?: Record<string, string>;
133
- wfrId?: number;
134
130
  }
135
131
  export declare enum AppType {
136
132
  DEVTRON_APP = "devtron_app",
@@ -201,12 +197,6 @@ export interface AppDetails {
201
197
  chartAvatar?: string;
202
198
  fluxTemplateType?: string;
203
199
  FluxAppStatusDetail?: FluxAppStatusDetail;
204
- isPipelineTriggered?: boolean;
205
- releaseMode?: ReleaseMode;
206
- }
207
- export interface ConfigDriftModalProps extends Required<Pick<AppDetails, 'appId'>> {
208
- envId: number;
209
- handleCloseModal?: () => void;
210
200
  }
211
201
  export declare enum RegistryType {
212
202
  GIT = "git",
@@ -965,103 +955,12 @@ export declare enum RegistryCredentialsType {
965
955
  USERNAME_PASSWORD = "username_password",
966
956
  ANONYMOUS = "anonymous"
967
957
  }
968
- export interface SyncStageResourceDetail {
969
- id: number;
970
- cdWorkflowRunnerId: number;
971
- resourceGroup: string;
972
- resourceKind: string;
973
- resourceName: string;
974
- resourcePhase: string;
975
- resourceStatus: string;
976
- statusMessage: string;
977
- }
978
- export declare enum TIMELINE_STATUS {
979
- DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED",
980
- GIT_COMMIT = "GIT_COMMIT",
981
- GIT_COMMIT_FAILED = "GIT_COMMIT_FAILED",
982
- ARGOCD_SYNC = "ARGOCD_SYNC",
983
- ARGOCD_SYNC_FAILED = "ARGOCD_SYNC_FAILED",
984
- KUBECTL_APPLY = "KUBECTL_APPLY",
985
- KUBECTL_APPLY_STARTED = "KUBECTL_APPLY_STARTED",
986
- KUBECTL_APPLY_SYNCED = "KUBECTL_APPLY_SYNCED",
987
- HEALTHY = "HEALTHY",
988
- APP_HEALTH = "APP_HEALTH",
989
- DEPLOYMENT_FAILED = "FAILED",
990
- FETCH_TIMED_OUT = "TIMED_OUT",
991
- UNABLE_TO_FETCH_STATUS = "UNABLE_TO_FETCH_STATUS",
992
- DEGRADED = "DEGRADED",
993
- DEPLOYMENT_SUPERSEDED = "DEPLOYMENT_SUPERSEDED",
994
- ABORTED = "ABORTED",
995
- INPROGRESS = "INPROGRESS",
996
- HELM_PACKAGE_GENERATED = "HELM_PACKAGE_GENERATED",
997
- HELM_PACKAGE_GENERATION_FAILED = "HELM_PACKAGE_GENERATION_FAILED",
998
- HELM_MANIFEST_PUSHED_TO_HELM_REPO = "HELM_MANIFEST_PUSHED_TO_HELM_REPO",
999
- HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED = "HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED"
1000
- }
1001
- export interface DeploymentStatusDetailsTimelineType extends Pick<SyncStageResourceDetail, 'id' | 'cdWorkflowRunnerId'> {
1002
- status: TIMELINE_STATUS;
1003
- statusDetail: string;
1004
- statusTime: string;
1005
- resourceDetails?: SyncStageResourceDetail[];
1006
- }
1007
- export interface DeploymentStatusDetailsType {
1008
- deploymentFinishedOn: string;
1009
- deploymentStartedOn: string;
1010
- triggeredBy: string;
1011
- statusFetchCount: number;
1012
- statusLastFetchedAt: string;
1013
- timelines: DeploymentStatusDetailsTimelineType[];
1014
- wfrStatus?: WorkflowRunnerStatusDTO;
1015
- isDeploymentWithoutApproval: boolean;
1016
- }
1017
- export type DeploymentStatusTimelineType = TIMELINE_STATUS.DEPLOYMENT_INITIATED | TIMELINE_STATUS.GIT_COMMIT | TIMELINE_STATUS.ARGOCD_SYNC | TIMELINE_STATUS.KUBECTL_APPLY | TIMELINE_STATUS.APP_HEALTH | TIMELINE_STATUS.HELM_PACKAGE_GENERATED | TIMELINE_STATUS.HELM_MANIFEST_PUSHED_TO_HELM_REPO;
1018
- export type DeploymentStatusBreakdownItemIconType = 'success' | 'failed' | 'unknown' | 'inprogress' | 'unreachable' | 'loading' | 'disconnect' | 'timed_out' | '';
1019
- export declare enum DeploymentPhaseType {
1020
- PRE_SYNC = "PreSync",
1021
- SYNC = "Sync",
1022
- POST_SYNC = "PostSync",
1023
- SKIP = "Skip",
1024
- SYNC_FAIL = "SyncFail"
1025
- }
1026
- export interface DeploymentStatusBreakdownItemType {
1027
- icon: DeploymentStatusBreakdownItemIconType;
1028
- displayText: ReactNode;
1029
- displaySubText: string;
1030
- time: string;
1031
- /**
1032
- * Shown in accordion details if type is TIMELINE_STATUS.KUBECTL_APPLY to display resource details
1033
- */
1034
- resourceDetails?: SyncStageResourceDetail[];
1035
- isCollapsed?: boolean;
1036
- /**
1037
- * Sub-Steps in accordion details in case type is TIMELINE_STATUS.KUBECTL_APPLY
1038
- */
1039
- subSteps?: {
1040
- icon: DeploymentStatusBreakdownItemIconType;
1041
- message: string;
1042
- phase?: DeploymentPhaseType;
1043
- }[];
1044
- /**
1045
- * To be shown in accordion details below heading tile
1046
- */
1047
- timelineStatus?: ReactNode;
1048
- showHelmManifest?: boolean;
1049
- }
1050
- export interface DeploymentStatusDetailsBreakdownDataType {
1051
- deploymentStatus: (typeof DEPLOYMENT_STATUS)[keyof typeof DEPLOYMENT_STATUS];
1052
- deploymentTriggerTime: string;
1053
- deploymentEndTime: string;
1054
- triggeredBy: string;
1055
- deploymentStatusBreakdown: Partial<Record<DeploymentStatusTimelineType, DeploymentStatusBreakdownItemType>>;
1056
- errorBarConfig?: {
1057
- deploymentErrorMessage: string;
1058
- nextTimelineToProcess: DeploymentStatusTimelineType;
1059
- } | null;
1060
- }
1061
958
  export interface IntelligenceConfig {
1062
959
  clusterId: number;
1063
960
  metadata: Record<string, string>;
1064
961
  prompt: string;
1065
962
  analyticsCategory: string;
1066
963
  }
964
+ export type DeploymentStrategyType = 'CANARY' | 'ROLLING' | 'RECREATE' | 'BLUE-GREEN';
965
+ export type DeploymentStrategyTypeWithDefault = DeploymentStrategyType | 'DEFAULT';
1067
966
  export {};