@devtron-labs/devtron-fe-common-lib 0.0.86-beta-17 → 0.0.87-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 (97) hide show
  1. package/dist/Common/AppStatus/constants.d.ts +0 -20
  2. package/dist/Common/AppStatus/index.d.ts +1 -0
  3. package/dist/Common/Constants.d.ts +19 -0
  4. package/dist/Common/Dialogs/Types.d.ts +17 -2
  5. package/dist/Common/EmptyState/GenericFilterEmptyState.d.ts +5 -2
  6. package/dist/Common/EmptyState/types.d.ts +13 -0
  7. package/dist/Common/Helper.d.ts +8 -0
  8. package/dist/Common/Hooks/useStateFilters/types.d.ts +1 -1
  9. package/dist/Common/Modals/Modal.d.ts +3 -0
  10. package/dist/Common/Modals/OpaqueModal.d.ts +3 -0
  11. package/dist/Common/Modals/VisibleModal.d.ts +2 -1
  12. package/dist/Common/Modals/VisibleModal2.d.ts +2 -1
  13. package/dist/Common/Pagination/index.d.ts +1 -0
  14. package/dist/Common/PopupMenu.d.ts +1 -1
  15. package/dist/Common/RJSF/templates/ButtonTemplates/AddButton.d.ts +1 -1
  16. package/dist/Common/RJSF/utils.d.ts +1 -2
  17. package/dist/Common/Types.d.ts +3 -1
  18. package/dist/Common/index.d.ts +1 -0
  19. package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +4 -0
  20. package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +5 -0
  21. package/dist/Shared/Components/CICDHistory/CDEmptyState.d.ts +14 -0
  22. package/dist/Shared/Components/CICDHistory/CiPipelineSourceConfig.d.ts +11 -0
  23. package/dist/Shared/Components/CICDHistory/DeploymentDetailSteps.d.ts +4 -0
  24. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryConfigList.component.d.ts +4 -0
  25. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts +4 -0
  26. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +4 -0
  27. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryHeader.d.ts +4 -0
  28. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistorySidebar.d.ts +4 -0
  29. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/index.d.ts +3 -0
  30. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +36 -0
  31. package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/utils.d.ts +11 -0
  32. package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +4 -0
  33. package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +3 -0
  34. package/dist/Shared/Components/CICDHistory/DetectBottom.d.ts +4 -0
  35. package/dist/Shared/Components/CICDHistory/ErrorInfoStatusBar.d.ts +3 -0
  36. package/dist/Shared/Components/CICDHistory/History.components.d.ts +5 -0
  37. package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +4 -0
  38. package/dist/Shared/Components/CICDHistory/Sidebar.d.ts +5 -0
  39. package/dist/Shared/Components/CICDHistory/StatusFilterButtonComponent.d.ts +3 -0
  40. package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +6 -0
  41. package/dist/Shared/Components/CICDHistory/constants.d.ts +45 -0
  42. package/dist/Shared/Components/CICDHistory/index.d.ts +17 -0
  43. package/dist/Shared/Components/CICDHistory/service.d.ts +28 -0
  44. package/dist/Shared/Components/CICDHistory/types.d.ts +590 -0
  45. package/dist/Shared/Components/CICDHistory/utils.d.ts +6 -0
  46. package/dist/Shared/Components/Error/ErrorBar.d.ts +4 -0
  47. package/dist/Shared/Components/Error/index.d.ts +2 -0
  48. package/dist/Shared/Components/Error/types.d.ts +9 -0
  49. package/dist/Shared/Components/Error/utils.d.ts +3 -0
  50. package/dist/Shared/Components/FeatureDescription/FeatureDescriptionModal.d.ts +3 -0
  51. package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +4 -0
  52. package/dist/Shared/Components/FeatureDescription/constant.d.ts +8 -0
  53. package/dist/Shared/Components/FeatureDescription/index.d.ts +2 -0
  54. package/dist/Shared/Components/FeatureDescription/types.d.ts +19 -0
  55. package/dist/Shared/Components/FeatureDescription/utils.d.ts +6 -0
  56. package/dist/Shared/Components/GitCommitInfoGeneric/GitCommitInfoGeneric.d.ts +4 -0
  57. package/dist/Shared/Components/GitCommitInfoGeneric/GitMaterialInfoHeader.d.ts +9 -0
  58. package/dist/Shared/Components/GitCommitInfoGeneric/index.d.ts +1 -0
  59. package/dist/Shared/Components/GitCommitInfoGeneric/types.d.ts +11 -0
  60. package/dist/Shared/Components/ImageWithFallback/ImageWithFallback.component.d.ts +4 -0
  61. package/dist/Shared/Components/ImageWithFallback/index.d.ts +2 -0
  62. package/dist/Shared/Components/ImageWithFallback/types.d.ts +12 -0
  63. package/dist/Shared/Components/ModalSidebarPanel/ModalSidebarPanel.component.d.ts +4 -0
  64. package/dist/Shared/Components/ModalSidebarPanel/index.d.ts +2 -0
  65. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +9 -0
  66. package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +5 -0
  67. package/dist/Shared/Components/index.d.ts +6 -0
  68. package/dist/Shared/Helpers.d.ts +8 -1
  69. package/dist/Shared/Providers/ImageSelectionUtility/types.d.ts +0 -1
  70. package/dist/Shared/Services/common.service.d.ts +3 -0
  71. package/dist/Shared/Services/index.d.ts +2 -0
  72. package/dist/Shared/Services/types.d.ts +13 -0
  73. package/dist/Shared/Store/IndexStore.d.ts +48 -0
  74. package/dist/Shared/Store/index.d.ts +1 -0
  75. package/dist/Shared/constants.d.ts +304 -0
  76. package/dist/Shared/index.d.ts +2 -1
  77. package/dist/Shared/types.d.ts +239 -46
  78. package/dist/Shared/validations.d.ts +4 -0
  79. package/dist/assets/index.css +1 -1
  80. package/dist/{cssMode-4c8b1851.js → cssMode-520db43c.js} +1 -1
  81. package/dist/{freemarker2-3a884ad3.js → freemarker2-8102ab8d.js} +1 -1
  82. package/dist/{handlebars-92b27a6c.js → handlebars-48b54c55.js} +1 -1
  83. package/dist/{html-d2c88c3f.js → html-57fe72de.js} +1 -1
  84. package/dist/{htmlMode-256c12ba.js → htmlMode-fad88102.js} +1 -1
  85. package/dist/{index-5b90e990.js → index-ed2ecc9f.js} +68552 -63286
  86. package/dist/index.js +416 -327
  87. package/dist/{javascript-27dd98f0.js → javascript-095bc45f.js} +1 -1
  88. package/dist/{jsonMode-3eec2c3e.js → jsonMode-53b436a9.js} +1 -1
  89. package/dist/{liquid-35a9296f.js → liquid-e4152333.js} +1 -1
  90. package/dist/{mdx-dbc7d4f1.js → mdx-9b3781e3.js} +1 -1
  91. package/dist/{python-473f1b64.js → python-ab53c9a3.js} +1 -1
  92. package/dist/{razor-598482fc.js → razor-4edb4a7d.js} +1 -1
  93. package/dist/{tsMode-998ce5b5.js → tsMode-42e8d846.js} +1 -1
  94. package/dist/{typescript-80e2d96e.js → typescript-1e5018b9.js} +1 -1
  95. package/dist/{xml-9521c196.js → xml-c55b1b7f.js} +1 -1
  96. package/dist/{yaml-1ebacc0d.js → yaml-bb2d8678.js} +1 -1
  97. package/package.json +17 -15
@@ -28,24 +28,4 @@ export declare const StatusConstants: {
28
28
  normalCase: string;
29
29
  };
30
30
  };
31
- export declare enum TIMELINE_STATUS {
32
- DEPLOYMENT_INITIATED = "DEPLOYMENT_INITIATED",
33
- GIT_COMMIT = "GIT_COMMIT",
34
- GIT_COMMIT_FAILED = "GIT_COMMIT_FAILED",
35
- KUBECTL_APPLY = "KUBECTL_APPLY",
36
- KUBECTL_APPLY_STARTED = "KUBECTL_APPLY_STARTED",
37
- KUBECTL_APPLY_SYNCED = "KUBECTL_APPLY_SYNCED",
38
- HEALTHY = "HEALTHY",
39
- APP_HEALTH = "APP_HEALTH",
40
- DEPLOYMENT_FAILED = "FAILED",
41
- FETCH_TIMED_OUT = "TIMED_OUT",
42
- UNABLE_TO_FETCH_STATUS = "UNABLE_TO_FETCH_STATUS",
43
- DEGRADED = "DEGRADED",
44
- DEPLOYMENT_SUPERSEDED = "DEPLOYMENT_SUPERSEDED",
45
- ABORTED = "ABORTED",
46
- INPROGRESS = "INPROGRESS",
47
- HELM_PACKAGE_GENERATED = "HELM_PACKAGE_GENERATED",
48
- HELM_MANIFEST_PUSHED_TO_HELM_REPO = "HELM_MANIFEST_PUSHED_TO_HELM_REPO",
49
- HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED = "HELM_MANIFEST_PUSHED_TO_HELM_REPO_FAILED"
50
- }
51
31
  export declare const YET_TO_RUN = "Yet to run";
@@ -1 +1,2 @@
1
1
  export { default as AppStatus } from './AppStatus';
2
+ export * from './utils';
@@ -7,6 +7,7 @@ export declare const DISCORD_LINK = "https://discord.devtron.ai/";
7
7
  export declare const DOCUMENTATION: {
8
8
  APP_TAGS: string;
9
9
  APP_OVERVIEW_TAGS: string;
10
+ BLOB_STORAGE: string;
10
11
  };
11
12
  export declare const PATTERNS: {
12
13
  KUBERNETES_KEY_PREFIX: RegExp;
@@ -29,12 +30,23 @@ export declare const URLS: {
29
30
  LOGS: string;
30
31
  CREATE: string;
31
32
  RELEASES: string;
33
+ DEVTRON_CHARTS: string;
34
+ APP_DEPLOYMNENT_HISTORY: string;
35
+ APP_DETAILS: string;
36
+ APP_DETAILS_K8: string;
37
+ DETAILS: string;
38
+ CD_DETAILS: string;
39
+ APP_TRIGGER: string;
40
+ GLOBAL_CONFIG_DOCKER: string;
41
+ DEPLOYMENT_HISTORY_CONFIGURATIONS: string;
32
42
  };
33
43
  export declare const ROUTES: {
44
+ APP: string;
34
45
  APP_ARTIFACT_PROMOTE_MATERIAL: string;
35
46
  PROJECT_LIST_MIN: string;
36
47
  USER_CHECK_ROLE: string;
37
48
  IMAGE_TAGGING: string;
49
+ CI_CONFIG_GET: string;
38
50
  CD_MATERIAL_GET: string;
39
51
  DEPLOYMENT_TEMPLATE_LIST: string;
40
52
  INFRA_CONFIG_PROFILE: string;
@@ -53,6 +65,13 @@ export declare const ROUTES: {
53
65
  CLUSTER_NOTE: string;
54
66
  APPLICATION_NOTE: string;
55
67
  GIT_HOST_EVENT: string;
68
+ HELM_DEPLOYMENT_STATUS_TIMELINE_INSTALLED_APP: string;
69
+ DEPLOYMENT_STATUS: string;
70
+ MANUAL_SYNC: string;
71
+ CD_CONFIG: string;
72
+ CONFIG_CD_PIPELINE: string;
73
+ MODULE_CONFIGURED: string;
74
+ RESOURCE_HISTORY_DEPLOYMENT: string;
56
75
  };
57
76
  export declare enum KEY_VALUE {
58
77
  KEY = "key",
@@ -1,6 +1,19 @@
1
1
  import { ReactNode } from 'react';
2
2
 
3
- export interface DeleteDialogProps {
3
+ type WithOrWithoutDeleteConfirmationType = {
4
+ showDeleteConfirmation: true;
5
+ /**
6
+ * If added, confirmation input is shown
7
+ */
8
+ deleteConfirmationText: string;
9
+ } | {
10
+ showDeleteConfirmation?: never;
11
+ /**
12
+ * If added, confirmation input is shown
13
+ */
14
+ deleteConfirmationText?: never;
15
+ };
16
+ export type DeleteDialogProps = {
4
17
  title: string;
5
18
  description?: string;
6
19
  closeDelete: () => void;
@@ -12,7 +25,8 @@ export interface DeleteDialogProps {
12
25
  buttonPrimaryText?: string;
13
26
  shouldStopPropagation?: boolean;
14
27
  disabled?: boolean;
15
- }
28
+ children?: ReactNode;
29
+ } & WithOrWithoutDeleteConfirmationType;
16
30
  export interface ForceDeleteDialogType {
17
31
  onClickDelete: () => void;
18
32
  closeDeleteModal: () => void;
@@ -44,3 +58,4 @@ export interface DialogFormProps {
44
58
  onSave: (event: any) => void;
45
59
  headerClassName?: string;
46
60
  }
61
+ export {};
@@ -1,4 +1,7 @@
1
- import { GenericEmptyStateType } from '../Types';
1
+ import { GenericFilterEmptyStateProps } from './types';
2
2
 
3
- declare const GenericFilterEmptyState: (props: Omit<GenericEmptyStateType, 'image' | 'title' | 'subTitle'> & Partial<Pick<GenericEmptyStateType, 'title' | 'subTitle'>>) => JSX.Element;
3
+ /**
4
+ * Empty state when no filters are applied
5
+ */
6
+ declare const GenericFilterEmptyState: ({ handleClearFilters, isButtonAvailable, renderButton, ...props }: GenericFilterEmptyStateProps) => JSX.Element;
4
7
  export default GenericFilterEmptyState;
@@ -0,0 +1,13 @@
1
+ import { GenericEmptyStateType } from '../Types';
2
+
3
+ export type GenericFilterEmptyStateProps = Omit<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'isButtonAvailable' | 'renderButton'> & Partial<Pick<GenericEmptyStateType, 'title' | 'subTitle'>> & ({
4
+ /**
5
+ * If provided, it will have priority over the isButtonAvailable prop
6
+ * and render clear filter button
7
+ */
8
+ handleClearFilters?: () => void;
9
+ isButtonAvailable?: never;
10
+ renderButton?: never;
11
+ } | (Pick<GenericEmptyStateType, 'isButtonAvailable' | 'renderButton'> & {
12
+ handleClearFilters?: never;
13
+ }));
@@ -1,3 +1,4 @@
1
+ import { scrollableInterface } from '../Shared';
1
2
  import { AsyncOptions, UseSearchString } from './Types';
2
3
  import { default as React, SyntheticEvent } from 'react';
3
4
 
@@ -86,5 +87,12 @@ export declare const compareObjectLength: (objA: any, objB: any) => boolean;
86
87
  * Return deep copy of the object
87
88
  */
88
89
  export declare function deepEqual(configA: any, configB: any): boolean;
90
+ export declare function shallowEqual(objA: any, objB: any): boolean;
91
+ export declare function useInterval(callback: any, delay: any): void;
92
+ export declare function useScrollable(options: scrollableInterface): ((e: any) => void)[];
93
+ export declare function useKeyDown(): any[];
94
+ export declare const DropdownIndicator: (props: any) => JSX.Element;
95
+ export declare function mapByKey<T = Map<any, any>>(arr: any[], id: string): T;
96
+ export declare function asyncWrap(promise: any): any[];
89
97
  export declare const prefixZeroIfSingleDigit: (value?: number) => string | number;
90
98
  export {};
@@ -2,5 +2,5 @@ import { UseUrlFiltersProps, UseUrlFiltersReturnType } from '../useUrlFilters';
2
2
 
3
3
  export interface UseStateFiltersProps<T> extends Pick<UseUrlFiltersProps<T, never>, 'initialSortKey'> {
4
4
  }
5
- export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters'> {
5
+ export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters' | 'searchKey' | 'handleSearch'> {
6
6
  }
@@ -1,4 +1,7 @@
1
1
  import { ModalType } from '../Types';
2
2
  import { default as React } from 'react';
3
3
 
4
+ /**
5
+ * @deprecated Use VisibleModal instead
6
+ */
4
7
  export declare const Modal: ({ style, children, modal, rootClassName, onClick, callbackRef, preventWheelDisable, noBackDrop, }: ModalType) => React.ReactPortal;
@@ -5,6 +5,9 @@ export interface OpaqueModalProps {
5
5
  onHide?: any;
6
6
  noBackground?: boolean;
7
7
  }
8
+ /**
9
+ * @deprecated Use VisibleModal instead
10
+ */
8
11
  export declare class OpaqueModal extends React.Component<OpaqueModalProps> {
9
12
  modalRef: HTMLElement;
10
13
  componentDidMount(): void;
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React, SyntheticEvent } from 'react';
2
2
 
3
3
  export declare class VisibleModal extends React.Component<{
4
4
  className: string;
@@ -12,5 +12,6 @@ export declare class VisibleModal extends React.Component<{
12
12
  escFunction(event: any): void;
13
13
  componentDidMount(): void;
14
14
  componentWillUnmount(): void;
15
+ handleBodyClick: (e: SyntheticEvent) => void;
15
16
  render(): React.ReactPortal;
16
17
  }
@@ -1,4 +1,4 @@
1
- import { default as React } from 'react';
1
+ import { default as React, SyntheticEvent } from 'react';
2
2
 
3
3
  export declare class VisibleModal2 extends React.Component<{
4
4
  className: string;
@@ -9,5 +9,6 @@ export declare class VisibleModal2 extends React.Component<{
9
9
  escFunction(event: any): void;
10
10
  componentDidMount(): void;
11
11
  componentWillUnmount(): void;
12
+ handleBodyClick: (e: SyntheticEvent) => void;
12
13
  render(): React.ReactPortal;
13
14
  }
@@ -1 +1,2 @@
1
1
  export { default as Pagination } from './Pagination';
2
+ export type { PaginationProps } from './types';
@@ -1,7 +1,7 @@
1
1
  import { PopupMenuBodyType, PopupMenuButtonType, PopupMenuType } from './Types';
2
2
 
3
3
  declare const PopupMenu: {
4
- ({ children, onToggleCallback, autoClose, autoPosition, }: PopupMenuType): any;
4
+ ({ children, onToggleCallback, autoClose, autoPosition, shouldPreventDefault }: PopupMenuType): any;
5
5
  Button: ({ children, disabled, rootClassName, tabIndex, onHover, isKebab, dataTestId, }: PopupMenuButtonType) => JSX.Element;
6
6
  Body: ({ children, rootClassName, style, autoWidth, preventWheelDisable, noBackDrop, }: PopupMenuBodyType) => JSX.Element;
7
7
  };
@@ -1,3 +1,3 @@
1
1
  import { IconButtonProps } from '@rjsf/utils';
2
2
 
3
- export declare const AddButton: ({ label, icon, iconType, registry, uiSchema, ...props }: IconButtonProps & Partial<Record<'label', string>>) => JSX.Element;
3
+ export declare const AddButton: ({ icon, iconType, registry, uiSchema, ...props }: IconButtonProps) => JSX.Element;
@@ -12,7 +12,7 @@ export declare const getCommonSelectStyle: (styleOverrides?: {}) => {
12
12
  valueContainer: (base: any, state: any) => any;
13
13
  loadingMessage: (base: any) => any;
14
14
  noOptionsMessage: (base: any) => any;
15
- multiValue: (base: any) => any;
15
+ multiValue: (base: any, state: any) => any;
16
16
  };
17
17
  /**
18
18
  * Returns the redirection props for a url
@@ -24,4 +24,3 @@ export declare const getRedirectionProps: (url: string) => import('react').Ancho
24
24
  * Infers the type for json schema from value type
25
25
  */
26
26
  export declare const getInferredTypeFromValueType: (value: any) => "string" | "number" | "boolean" | "object" | "array" | "null";
27
- export declare const getTippyWrapperWithContent: (content: any) => (children: any) => JSX.Element;
@@ -140,7 +140,8 @@ export interface ErrorScreenNotAuthorizedProps {
140
140
  }
141
141
  export declare enum ImageType {
142
142
  Large = "large",
143
- Medium = "medium"
143
+ Medium = "medium",
144
+ SMALL = "small"
144
145
  }
145
146
  export interface InfoColourBarType {
146
147
  message: React.ReactNode;
@@ -213,6 +214,7 @@ export interface PopupMenuType {
213
214
  onToggleCallback?: (isOpen: boolean) => void;
214
215
  autoClose?: boolean;
215
216
  autoPosition?: boolean;
217
+ shouldPreventDefault?: boolean;
216
218
  }
217
219
  export interface PopupMenuButtonType {
218
220
  children?: ReactNode;
@@ -55,3 +55,4 @@ export * from './Markdown';
55
55
  export * from './GenericDescription';
56
56
  export * from './SegmentedBarChart';
57
57
  export * from './CodeEditor';
58
+ export * from './AppStatus';
@@ -0,0 +1,4 @@
1
+ import { AppStatusDetailsChartType } from './types';
2
+
3
+ declare const AppStatusDetailsChart: ({ filterRemoveHealth, showFooter }: AppStatusDetailsChartType) => JSX.Element;
4
+ export default AppStatusDetailsChart;
@@ -0,0 +1,5 @@
1
+ import { ArtifactType, CIListItemType } from './types';
2
+
3
+ export declare const CIListItem: ({ type, userApprovalMetadata, triggeredBy, children, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, isSuperAdmin, promotionApprovalMetadata, appliedFiltersTimestamp, selectedEnvironmentName, renderCIListHeader, }: CIListItemType) => JSX.Element;
4
+ declare const Artifacts: ({ status, artifact, blobStorageEnabled, isArtifactUploaded, getArtifactPromise, ciPipelineId, artifactId, isJobView, isJobCI, imageComment, imageReleaseTags, type, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, jobCIClass, renderCIListHeader, }: ArtifactType) => JSX.Element;
5
+ export default Artifacts;
@@ -0,0 +1,14 @@
1
+ import { default as React } from 'react';
2
+
3
+ declare const CDEmptyState: ({ imgSource, title, subtitle, ActionButtonIcon, actionButtonClass, actionButtonIconRight, actionButtonText, actionHandler, dataTestId, }: {
4
+ imgSource?: string;
5
+ title?: string;
6
+ subtitle?: string;
7
+ actionButtonClass?: string;
8
+ ActionButtonIcon?: React.FunctionComponent<any>;
9
+ actionButtonIconRight?: boolean;
10
+ actionButtonText?: string;
11
+ actionHandler?: () => void;
12
+ dataTestId?: string;
13
+ }) => JSX.Element;
14
+ export default CDEmptyState;
@@ -0,0 +1,11 @@
1
+ export interface CIPipelineSourceConfigInterface {
2
+ sourceType: any;
3
+ sourceValue: any;
4
+ showTooltip?: boolean;
5
+ showIcons?: boolean;
6
+ baseText?: string;
7
+ regex?: any;
8
+ isRegex?: boolean;
9
+ primaryBranchAfterRegex?: string;
10
+ }
11
+ export declare const CiPipelineSourceConfig: ({ sourceType, sourceValue, showTooltip, showIcons, baseText, regex, isRegex, primaryBranchAfterRegex, }: CIPipelineSourceConfigInterface) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { DeploymentDetailStepsType } from './types';
2
+
3
+ declare const DeploymentDetailSteps: ({ deploymentStatus, deploymentAppType, isHelmApps, installedAppVersionHistoryId, isGitops, userApprovalMetadata, isVirtualEnvironment, processVirtualEnvironmentDeploymentData, renderDeploymentApprovalInfo, }: DeploymentDetailStepsType) => JSX.Element;
4
+ export default DeploymentDetailSteps;
@@ -0,0 +1,4 @@
1
+ import { TemplateConfiguration } from './types';
2
+
3
+ declare const DeploymentHistoryConfigList: ({ setFullScreenView, deploymentHistoryList, setDeploymentHistoryList, }: TemplateConfiguration) => JSX.Element;
4
+ export default DeploymentHistoryConfigList;
@@ -0,0 +1,4 @@
1
+ import { CompareViewDeploymentType } from './types';
2
+
3
+ declare const DeploymentHistoryDetailedView: ({ setFullScreenView, deploymentHistoryList, setDeploymentHistoryList, renderRunSource, resourceId, }: CompareViewDeploymentType) => JSX.Element;
4
+ export default DeploymentHistoryDetailedView;
@@ -0,0 +1,4 @@
1
+ import { DeploymentTemplateHistoryType } from '../types';
2
+
3
+ declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, }: DeploymentTemplateHistoryType) => JSX.Element;
4
+ export default DeploymentHistoryDiffView;
@@ -0,0 +1,4 @@
1
+ import { CompareWithBaseConfiguration } from './types';
2
+
3
+ declare const DeploymentHistoryHeader: ({ selectedDeploymentTemplate, setSelectedDeploymentTemplate, setFullScreenView, setLoader, setPreviousConfigAvailable, renderRunSource, resourceId, }: CompareWithBaseConfiguration) => JSX.Element;
4
+ export default DeploymentHistoryHeader;
@@ -0,0 +1,4 @@
1
+ import { DeploymentHistorySidebarType } from '../types';
2
+
3
+ declare const DeploymentHistorySidebar: ({ deploymentHistoryList, setDeploymentHistoryList, }: DeploymentHistorySidebarType) => JSX.Element;
4
+ export default DeploymentHistorySidebar;
@@ -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,36 @@
1
+ import { DeploymentTemplateList, RunSourceType, RenderRunSourceType } from '../types';
2
+ import { OptionType } from '../../../../Common';
3
+
4
+ export interface DeploymentHistoryParamsType {
5
+ appId: string;
6
+ pipelineId?: string;
7
+ historyComponent?: string;
8
+ baseConfigurationId?: string;
9
+ historyComponentName?: string;
10
+ envId?: string;
11
+ triggerId?: string;
12
+ }
13
+ export interface CompareViewDeploymentType extends RenderRunSourceType {
14
+ setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
15
+ deploymentHistoryList: DeploymentTemplateList[];
16
+ setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
17
+ resourceId?: number;
18
+ }
19
+ export interface DeploymentTemplateOptions extends OptionType {
20
+ author: string;
21
+ status: string;
22
+ runSource?: RunSourceType;
23
+ }
24
+ export interface CompareWithBaseConfiguration extends RenderRunSourceType {
25
+ selectedDeploymentTemplate: DeploymentTemplateOptions;
26
+ setSelectedDeploymentTemplate: (selected: any) => void;
27
+ setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
28
+ setLoader: React.Dispatch<React.SetStateAction<boolean>>;
29
+ setPreviousConfigAvailable: React.Dispatch<React.SetStateAction<boolean>>;
30
+ resourceId?: number;
31
+ }
32
+ export interface TemplateConfiguration {
33
+ setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
34
+ deploymentHistoryList: DeploymentTemplateList[];
35
+ setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
36
+ }
@@ -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;
@@ -0,0 +1,4 @@
1
+ import { DeploymentStatusDetailBreakdownType } from './types';
2
+
3
+ declare const DeploymentStatusDetailBreakdown: ({ deploymentStatusDetailsBreakdownData, isVirtualEnvironment, }: DeploymentStatusDetailBreakdownType) => JSX.Element;
4
+ export default DeploymentStatusDetailBreakdown;
@@ -0,0 +1,3 @@
1
+ import { DeploymentStatusDetailRowType } from './types';
2
+
3
+ export declare const DeploymentStatusDetailRow: ({ type, hideVerticalConnector, deploymentDetailedData, }: DeploymentStatusDetailRowType) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ declare const DetectBottom: ({ callback }: {
2
+ callback: () => void;
3
+ }) => JSX.Element;
4
+ export default DetectBottom;
@@ -0,0 +1,3 @@
1
+ import { ErrorInfoStatusBarType } from './types';
2
+
3
+ export declare const ErrorInfoStatusBar: ({ nonDeploymentError, type, errorMessage, hideVerticalConnector, hideErrorIcon, }: ErrorInfoStatusBarType) => JSX.Element;
@@ -0,0 +1,5 @@
1
+ import { GitChangesType, LogResizeButtonType, ScrollerType } from './types';
2
+
3
+ export declare const LogResizeButton: ({ fullScreenView, setFullScreenView }: LogResizeButtonType) => JSX.Element;
4
+ export declare const Scroller: ({ scrollToTop, scrollToBottom, style }: ScrollerType) => JSX.Element;
5
+ export declare const GitChanges: ({ gitTriggers, ciMaterials, artifact, userApprovalMetadata, triggeredByEmail, ciPipelineId, artifactId, imageComment, imageReleaseTags, appReleaseTagNames, tagsEditable, hideImageTaggingHardDelete, appliedFilters, appliedFiltersTimestamp, promotionApprovalMetadata, selectedEnvironmentName, renderCIListHeader, }: GitChangesType) => JSX.Element;
@@ -0,0 +1,4 @@
1
+ import { LogsRendererType } from './types';
2
+
3
+ export declare const LogsRenderer: ({ triggerDetails, isBlobStorageConfigured, parentType, }: LogsRendererType) => JSX.Element;
4
+ export default LogsRenderer;
@@ -0,0 +1,5 @@
1
+ import { SidebarType } from './types';
2
+ import { default as React } from 'react';
3
+
4
+ declare const Sidebar: React.MemoExoticComponent<({ type, filterOptions, triggerHistory, hasMore, setPagination, fetchIdData, handleViewAllHistory, children, renderRunSource, resourceId, }: SidebarType) => JSX.Element>;
5
+ export default Sidebar;
@@ -0,0 +1,3 @@
1
+ import { StatusFilterButtonType } from './types';
2
+
3
+ export declare const StatusFilterButtonComponent: ({ nodes, handleFilterClick }: StatusFilterButtonType) => JSX.Element;
@@ -0,0 +1,6 @@
1
+ import { TriggerDetailsType, TriggerOutputProps } from './types';
2
+ import { default as React } from 'react';
3
+
4
+ export declare const TriggerDetails: React.MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, }: TriggerDetailsType) => JSX.Element>;
5
+ 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, }: TriggerOutputProps) => JSX.Element;
6
+ export default TriggerOutput;
@@ -0,0 +1,45 @@
1
+ export declare const HISTORY_LABEL: {
2
+ APPLICATION: string;
3
+ ENVIRONMENT: string;
4
+ PIPELINE: string;
5
+ };
6
+ export declare const FILTER_STYLE: {
7
+ control: (base: any) => any;
8
+ dropdownIndicator: (base: any) => any;
9
+ menuPortal: (base: any) => any;
10
+ menu: (base: any, state: any) => any;
11
+ option: (base: any, state: any) => any;
12
+ container: (base: any, state: any) => any;
13
+ valueContainer: (base: any, state: any) => any;
14
+ };
15
+ export declare const GIT_BRANCH_NOT_CONFIGURED = "Not Configured";
16
+ export declare const DEFAULT_GIT_BRANCH_VALUE = "--";
17
+ export declare const TERMINAL_STATUS_MAP: {
18
+ SUCCEEDED: string;
19
+ HEALTHY: string;
20
+ RUNNING: string;
21
+ PROGRESSING: string;
22
+ STARTING: string;
23
+ INITIATING: string;
24
+ QUEUED: string;
25
+ FAILED: string;
26
+ ERROR: string;
27
+ CANCELLED: string;
28
+ UNABLE_TO_FETCH: string;
29
+ TIMED_OUT: string;
30
+ };
31
+ export declare const EVENT_STREAM_EVENTS_MAP: {
32
+ MESSAGE: string;
33
+ START_OF_STREAM: string;
34
+ END_OF_STREAM: string;
35
+ ERROR: string;
36
+ };
37
+ export declare const POD_STATUS: {
38
+ PENDING: string;
39
+ };
40
+ export declare const TIMEOUT_VALUE = "1";
41
+ export declare const WORKER_POD_BASE_URL = "/resource-browser/1/devtron-ci/pod/k8sEmptyGroup";
42
+ export declare const DEFAULT_ENV = "devtron-ci";
43
+ export declare const LOGS_RETRY_COUNT = 3;
44
+ export declare const DEPLOYMENT_STATUS_QUERY_PARAM = "deployment-status";
45
+ export declare const MANIFEST_STATUS_HEADERS: string[];
@@ -0,0 +1,17 @@
1
+ export { default as Sidebar } from './Sidebar';
2
+ export { default as Artifacts } from './Artifacts';
3
+ export { default as TriggerOutput } from './TriggerOutput';
4
+ export { default as CDEmptyState } from './CDEmptyState';
5
+ export { default as DeploymentStatusDetailBreakdown } from './DeploymentStatusBreakdown';
6
+ export { default as AppStatusDetailsChart } from './AppStatusDetailsChart';
7
+ export { default as DeploymentDetailSteps } from './DeploymentDetailSteps';
8
+ export * from './types';
9
+ export * from './service';
10
+ export * from './History.components';
11
+ export * from './utils';
12
+ export * from './TriggerOutput';
13
+ export * from './LogsRenderer';
14
+ export * from './DeploymentHistoryDiff';
15
+ export * from './CiPipelineSourceConfig';
16
+ export * from './StatusFilterButtonComponent';
17
+ export type { PodMetadatum } from './types';
@@ -0,0 +1,28 @@
1
+ import { DeploymentConfigurationsRes, DeploymentHistoryDetail, DeploymentHistoryDetailRes, DeploymentHistoryResult, DeploymentHistorySingleValue, DeploymentStatusDetailsResponse, HistoryDiffSelectorRes, ModuleConfigResponse, TriggerDetailsResponseType, TriggerHistoryParamsType } from './types';
2
+ import { ResponseType } from '../../../Common';
3
+
4
+ export declare function getTriggerDetails({ appId, envId, pipelineId, triggerId, fetchIdData, }: {
5
+ appId: any;
6
+ envId: any;
7
+ pipelineId: any;
8
+ triggerId: any;
9
+ fetchIdData: any;
10
+ }): Promise<TriggerDetailsResponseType>;
11
+ export declare const getTagDetails: (params: any) => Promise<ResponseType<any>>;
12
+ export declare const cancelCiTrigger: (params: any, isForceAbort: any) => Promise<ResponseType<any>>;
13
+ export declare const cancelPrePostCdTrigger: (pipelineId: any, workflowRunner: any) => Promise<ResponseType<any>>;
14
+ export declare function getDeploymentStatusDetail(appId: string, envId: string, showTimeline: boolean, triggerId?: string, isHelmApps?: boolean, installedAppVersionHistoryId?: number): Promise<DeploymentStatusDetailsResponse>;
15
+ export declare function getManualSync(params: {
16
+ appId: string;
17
+ envId: string;
18
+ }): Promise<ResponseType>;
19
+ export declare const getDeploymentHistoryList: (appId: string, pipelineId: string, triggerId: string) => Promise<DeploymentConfigurationsRes>;
20
+ export declare const getDeploymentHistoryDetail: (appId: string, pipelineId: string, id: string, historyComponent: string, historyComponentName: string) => Promise<DeploymentHistoryDetailRes>;
21
+ export declare const prepareDeploymentTemplateData: (rawData: any) => Record<string, DeploymentHistorySingleValue>;
22
+ export declare const preparePipelineConfigData: (rawData: any) => Record<string, DeploymentHistorySingleValue>;
23
+ export declare const prepareConfigMapAndSecretData: (rawData: any, type: string, historyData: DeploymentHistoryDetail, skipDecode?: boolean) => Record<string, DeploymentHistorySingleValue>;
24
+ export declare const prepareHistoryData: (rawData: any, historyComponent: string, skipDecode?: boolean) => DeploymentHistoryDetail;
25
+ export declare const getDeploymentDiffSelector: (pipelineId: string, historyComponent: any, baseConfigurationId: any, historyComponentName: any) => Promise<HistoryDiffSelectorRes>;
26
+ export declare function getCDBuildReport(appId: any, envId: any, pipelineId: any, workflowId: any): Promise<ResponseType<any>>;
27
+ export declare const getTriggerHistory: ({ appId, envId, pagination, releaseId, showCurrentReleaseDeployments, }: TriggerHistoryParamsType) => Promise<Pick<DeploymentHistoryResult, 'result'>>;
28
+ export declare const getModuleConfigured: (moduleName: string) => Promise<ModuleConfigResponse>;