@devtron-labs/devtron-fe-common-lib 0.0.83 → 0.0.84-beta-2
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/Api.d.ts +1 -1
- package/dist/Common/AppStatus/constants.d.ts +0 -20
- package/dist/Common/AppStatus/index.d.ts +1 -0
- package/dist/Common/Constants.d.ts +19 -0
- package/dist/Common/EmptyState/GenericFilterEmptyState.d.ts +4 -0
- package/dist/Common/Helper.d.ts +9 -0
- package/dist/Common/Hooks/index.d.ts +1 -0
- package/dist/Common/Hooks/useStateFilters/index.d.ts +2 -0
- package/dist/Common/Hooks/useStateFilters/types.d.ts +6 -0
- package/dist/Common/Hooks/useStateFilters/useStateFilters.d.ts +17 -0
- package/dist/Common/Hooks/useUrlFilters/types.d.ts +1 -1
- package/dist/Common/Pagination/index.d.ts +1 -0
- package/dist/Common/SearchBar/SearchBar.component.d.ts +1 -1
- package/dist/Common/SearchBar/types.d.ts +4 -0
- package/dist/Common/Types.d.ts +24 -4
- package/dist/Common/index.d.ts +2 -0
- package/dist/Shared/Components/APIResponseHandler/APIResponseHandler.d.ts +1 -1
- package/dist/Shared/Components/APIResponseHandler/types.d.ts +7 -2
- package/dist/Shared/Components/ButtonWithSelector/ButtonWithSelector.d.ts +1 -1
- package/dist/Shared/Components/ButtonWithSelector/types.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/AppStatusDetailsChart.d.ts +4 -0
- package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +5 -0
- package/dist/Shared/Components/CICDHistory/CDEmptyState.d.ts +14 -0
- package/dist/Shared/Components/CICDHistory/CiPipelineSourceConfig.d.ts +11 -0
- package/dist/Shared/Components/CICDHistory/DeploymentDetailSteps.d.ts +4 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryConfigList.component.d.ts +4 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts +4 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +4 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryHeader.d.ts +4 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistorySidebar.d.ts +4 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/index.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +36 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/utils.d.ts +11 -0
- package/dist/Shared/Components/CICDHistory/DeploymentStatusBreakdown.d.ts +4 -0
- package/dist/Shared/Components/CICDHistory/DeploymentStatusDetailRow.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DetectBottom.d.ts +4 -0
- package/dist/Shared/Components/CICDHistory/ErrorInfoStatusBar.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/History.components.d.ts +5 -0
- package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +4 -0
- package/dist/Shared/Components/CICDHistory/Sidebar.d.ts +5 -0
- package/dist/Shared/Components/CICDHistory/StatusFilterButtonComponent.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +6 -0
- package/dist/Shared/Components/CICDHistory/constants.d.ts +45 -0
- package/dist/Shared/Components/CICDHistory/index.d.ts +16 -0
- package/dist/Shared/Components/CICDHistory/service.d.ts +28 -0
- package/dist/Shared/Components/CICDHistory/types.d.ts +588 -0
- package/dist/Shared/Components/CICDHistory/utils.d.ts +4 -0
- package/dist/Shared/Components/Error/ErrorBar.d.ts +4 -0
- package/dist/Shared/Components/Error/index.d.ts +2 -0
- package/dist/Shared/Components/Error/types.d.ts +9 -0
- package/dist/Shared/Components/Error/utils.d.ts +3 -0
- package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -1
- package/dist/Shared/Components/FilterChips/types.d.ts +11 -3
- package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
- package/dist/Shared/Components/GenericSectionErrorState/index.d.ts +1 -0
- package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +6 -0
- package/dist/Shared/Components/GitCommitInfoGeneric/GitCommitInfoGeneric.d.ts +4 -0
- package/dist/Shared/Components/GitCommitInfoGeneric/GitMaterialInfoHeader.d.ts +9 -0
- package/dist/Shared/Components/GitCommitInfoGeneric/index.d.ts +1 -0
- package/dist/Shared/Components/GitCommitInfoGeneric/types.d.ts +11 -0
- package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +5 -0
- package/dist/Shared/Components/index.d.ts +3 -0
- package/dist/Shared/Helpers.d.ts +10 -3
- package/dist/Shared/Store/IndexStore.d.ts +48 -0
- package/dist/Shared/Store/index.d.ts +1 -0
- package/dist/Shared/constants.d.ts +300 -0
- package/dist/Shared/index.d.ts +1 -1
- package/dist/Shared/types.d.ts +200 -46
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-8a600c5b.js → cssMode-0af60876.js} +1 -1
- package/dist/{freemarker2-60c395cd.js → freemarker2-6d9d36ec.js} +1 -1
- package/dist/{handlebars-568f0889.js → handlebars-5027acc4.js} +1 -1
- package/dist/{html-87e582fb.js → html-a15fdc40.js} +1 -1
- package/dist/{htmlMode-01b5ce2f.js → htmlMode-cd16b79f.js} +1 -1
- package/dist/{index-acaa9ba9.js → index-c9bfe6ec.js} +56406 -51292
- package/dist/index.js +399 -318
- package/dist/{javascript-aa227f90.js → javascript-7a025257.js} +1 -1
- package/dist/{jsonMode-e32a9b16.js → jsonMode-39c4f3a6.js} +1 -1
- package/dist/{liquid-07058c2d.js → liquid-71a84cb6.js} +1 -1
- package/dist/{mdx-fbabfc29.js → mdx-db94c1dc.js} +1 -1
- package/dist/{python-149edaae.js → python-5db35aea.js} +1 -1
- package/dist/{razor-e47457e6.js → razor-7fa3ed18.js} +1 -1
- package/dist/{tsMode-84ef2c9a.js → tsMode-ba699574.js} +1 -1
- package/dist/{typescript-030f68fd.js → typescript-0ceaf5ef.js} +1 -1
- package/dist/{xml-5811dc34.js → xml-55ba3b31.js} +1 -1
- package/dist/{yaml-e1a6e74e.js → yaml-61552090.js} +1 -1
- package/package.json +17 -15
package/dist/Common/Api.d.ts
CHANGED
|
@@ -13,4 +13,4 @@ export declare const abortPreviousRequests: <T>(callback: () => Promise<T>, abor
|
|
|
13
13
|
/**
|
|
14
14
|
* Returns true if the error is due to a aborted request
|
|
15
15
|
*/
|
|
16
|
-
export declare const getIsRequestAborted: (error: any) =>
|
|
16
|
+
export declare const getIsRequestAborted: (error: any) => any;
|
|
@@ -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";
|
|
@@ -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",
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { GenericEmptyStateType } from '../Types';
|
|
2
|
+
|
|
3
|
+
declare const GenericFilterEmptyState: (props: Omit<GenericEmptyStateType, 'image' | 'title' | 'subTitle'> & Partial<Pick<GenericEmptyStateType, 'title' | 'subTitle'>>) => JSX.Element;
|
|
4
|
+
export default GenericFilterEmptyState;
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -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,4 +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[];
|
|
97
|
+
export declare const prefixZeroIfSingleDigit: (value?: number) => string | number;
|
|
89
98
|
export {};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { UseUrlFiltersProps, UseUrlFiltersReturnType } from '../useUrlFilters';
|
|
2
|
+
|
|
3
|
+
export interface UseStateFiltersProps<T> extends Pick<UseUrlFiltersProps<T, never>, 'initialSortKey'> {
|
|
4
|
+
}
|
|
5
|
+
export interface UseStateFiltersReturnType<T> extends Pick<UseUrlFiltersReturnType<T>, 'sortBy' | 'sortOrder' | 'handleSorting' | 'clearFilters'> {
|
|
6
|
+
}
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UseStateFiltersProps, UseStateFiltersReturnType } from './types';
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Generic hook for implementing state based pagination, search, sorting.
|
|
5
|
+
* Sister method of [useUrlFilters](https://github.com/devtron-labs/devtron-fe-common-lib/blob/main/src/Common/Hooks/useUrlFilters/useUrlFilters.ts)
|
|
6
|
+
*
|
|
7
|
+
* The exposed handlers can be consumed directly without the need for explicit state management
|
|
8
|
+
*
|
|
9
|
+
* @example Usage with custom type for sort keys and initial sort key:
|
|
10
|
+
* ```tsx
|
|
11
|
+
* const { sortBy, sortOrder } = useUrlFilters<'email' | 'name'>({ initialSortKey: 'email' })
|
|
12
|
+
* ```
|
|
13
|
+
*
|
|
14
|
+
* To be extended to be used with pagination and search as and when required
|
|
15
|
+
*/
|
|
16
|
+
declare const useStateFilters: <T = string>({ initialSortKey, }?: UseStateFiltersProps<T>) => UseStateFiltersReturnType<T>;
|
|
17
|
+
export default useStateFilters;
|
|
@@ -34,5 +34,5 @@ import { SearchBarProps } from './types';
|
|
|
34
34
|
* <SearchBar inputProps={{ placeholder: 'Enter search text' }} />
|
|
35
35
|
* ```
|
|
36
36
|
*/
|
|
37
|
-
declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, }: SearchBarProps) => JSX.Element;
|
|
37
|
+
declare const SearchBar: ({ initialSearchText, handleSearchChange, handleEnter, inputProps, containerClassName, shouldDebounce, debounceTimeout, noBackgroundAndBorder, }: SearchBarProps) => JSX.Element;
|
|
38
38
|
export default SearchBar;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -28,9 +28,9 @@ export interface APIOptions {
|
|
|
28
28
|
signal?: AbortSignal;
|
|
29
29
|
preventAutoLogout?: boolean;
|
|
30
30
|
}
|
|
31
|
-
export interface OptionType {
|
|
32
|
-
|
|
33
|
-
|
|
31
|
+
export interface OptionType<T = string, K = string> {
|
|
32
|
+
value: T;
|
|
33
|
+
label: K;
|
|
34
34
|
}
|
|
35
35
|
export declare enum TippyTheme {
|
|
36
36
|
black = "black",
|
|
@@ -116,7 +116,7 @@ export interface GenericEmptyStateType {
|
|
|
116
116
|
layout?: 'row' | 'column';
|
|
117
117
|
contentClassName?: string;
|
|
118
118
|
}
|
|
119
|
-
export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'renderButton' | 'imageType'>, Pick<ErrorScreenManagerProps, 'reload'> {
|
|
119
|
+
export interface ErrorPageType extends Pick<GenericEmptyStateType, 'image' | 'title' | 'subTitle' | 'renderButton' | 'imageType'>, Pick<ErrorScreenManagerProps, 'reload' | 'redirectURL'> {
|
|
120
120
|
code: number;
|
|
121
121
|
heightToDeduct?: number;
|
|
122
122
|
redirectURL?: string;
|
|
@@ -128,6 +128,10 @@ export interface ErrorScreenManagerProps {
|
|
|
128
128
|
subtitle?: React.ReactChild;
|
|
129
129
|
reloadClass?: string;
|
|
130
130
|
heightToDeduct?: number;
|
|
131
|
+
/**
|
|
132
|
+
* Would be used to redirect URL in case of 404
|
|
133
|
+
* @default - APP_LIST
|
|
134
|
+
*/
|
|
131
135
|
redirectURL?: string;
|
|
132
136
|
}
|
|
133
137
|
export interface ErrorScreenNotAuthorizedProps {
|
|
@@ -306,6 +310,14 @@ export interface DeploymentWindowArtifactMetadata {
|
|
|
306
310
|
name: string;
|
|
307
311
|
type: DEPLOYMENT_WINDOW_TYPE;
|
|
308
312
|
}
|
|
313
|
+
export interface ArtifactReleaseMappingType {
|
|
314
|
+
id: number;
|
|
315
|
+
identifier: string;
|
|
316
|
+
releaseVersion: string;
|
|
317
|
+
name: string;
|
|
318
|
+
kind: string;
|
|
319
|
+
version: string;
|
|
320
|
+
}
|
|
309
321
|
export interface CDMaterialType {
|
|
310
322
|
index: number;
|
|
311
323
|
id: string;
|
|
@@ -349,6 +361,14 @@ export interface CDMaterialType {
|
|
|
349
361
|
promotionApprovalMetadata?: PromotionApprovalMetadataType;
|
|
350
362
|
deployedOnEnvironments?: string[];
|
|
351
363
|
deploymentWindowArtifactMetadata?: DeploymentWindowArtifactMetadata;
|
|
364
|
+
/**
|
|
365
|
+
* Will only be present in case of release
|
|
366
|
+
*/
|
|
367
|
+
configuredInReleases: ArtifactReleaseMappingType[];
|
|
368
|
+
/**
|
|
369
|
+
* Would currently only be received in case of release
|
|
370
|
+
*/
|
|
371
|
+
appWorkflowId: number;
|
|
352
372
|
}
|
|
353
373
|
export declare enum CDMaterialServiceEnum {
|
|
354
374
|
ROLLBACK = "rollback",
|
package/dist/Common/index.d.ts
CHANGED
|
@@ -26,6 +26,7 @@ export { default as InfoColourBar } from './InfoColorBar/InfoColourbar';
|
|
|
26
26
|
export * from './Common.service';
|
|
27
27
|
export * from './Checkbox';
|
|
28
28
|
export { default as GenericEmptyState } from './EmptyState/GenericEmptyState';
|
|
29
|
+
export { default as GenericFilterEmptyState } from './EmptyState/GenericFilterEmptyState';
|
|
29
30
|
export * from './SearchBar';
|
|
30
31
|
export * from './SortableTableHeaderCell';
|
|
31
32
|
export { default as Toggle } from './Toggle/Toggle';
|
|
@@ -54,3 +55,4 @@ export * from './Markdown';
|
|
|
54
55
|
export * from './GenericDescription';
|
|
55
56
|
export * from './SegmentedBarChart';
|
|
56
57
|
export * from './CodeEditor';
|
|
58
|
+
export * from './AppStatus';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { APIResponseHandlerProps } from './types';
|
|
2
2
|
|
|
3
|
-
declare const APIResponseHandler: ({ isLoading, progressingProps, customLoader, error, notAuthorized, notFoundText, reloadProps, genericSectionErrorProps, children, }: APIResponseHandlerProps) => JSX.Element;
|
|
3
|
+
declare const APIResponseHandler: ({ isLoading, progressingProps, customLoader, error, notAuthorized, notFoundText, reloadProps, genericSectionErrorProps, errorScreenManagerProps, children, }: APIResponseHandlerProps) => JSX.Element;
|
|
4
4
|
export default APIResponseHandler;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { GenericSectionErrorStateProps } from '../GenericSectionErrorState/types';
|
|
2
|
-
import { GenericEmptyStateType, ProgressingProps, ReloadType, ServerErrors } from '../../../Common';
|
|
2
|
+
import { ErrorScreenManagerProps, GenericEmptyStateType, ProgressingProps, ReloadType, ServerErrors } from '../../../Common';
|
|
3
3
|
import { ReactNode } from 'react';
|
|
4
4
|
|
|
5
5
|
export interface EmptyPageTextType {
|
|
@@ -37,9 +37,14 @@ export interface APIResponseHandlerProps {
|
|
|
37
37
|
*/
|
|
38
38
|
reloadProps?: ReloadType;
|
|
39
39
|
/**
|
|
40
|
-
* If given, would show
|
|
40
|
+
* If given, would show GenericSectionErrorState instead of default Reload component
|
|
41
41
|
*/
|
|
42
42
|
genericSectionErrorProps?: GenericSectionErrorStateProps;
|
|
43
|
+
/**
|
|
44
|
+
* If given, would show ErrorScreenManager component instead of Reload component
|
|
45
|
+
* Priority of error states are: genericSectionErrorProps > errorScreenManagerProps > Reload component
|
|
46
|
+
*/
|
|
47
|
+
errorScreenManagerProps?: ErrorScreenManagerProps;
|
|
43
48
|
/**
|
|
44
49
|
* If no Error and no Loading, would load this component
|
|
45
50
|
*/
|
|
@@ -14,5 +14,5 @@ import { ButtonWithSelectorProps } from './types';
|
|
|
14
14
|
* </ButtonWithSelector>
|
|
15
15
|
* ```
|
|
16
16
|
*/
|
|
17
|
-
declare const ButtonWithSelector: ({ content, onClick, children, className, popUpBodyClassName, showPopUp, }: ButtonWithSelectorProps) => JSX.Element;
|
|
17
|
+
declare const ButtonWithSelector: ({ content, onClick, children, className, popUpBodyClassName, showPopUp, disabled, }: ButtonWithSelectorProps) => JSX.Element;
|
|
18
18
|
export default ButtonWithSelector;
|
|
@@ -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;
|
package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts
ADDED
|
@@ -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;
|
package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts
ADDED
|
@@ -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,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,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,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,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, syncState, triggerHistory, setFullScreenView, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, selectedEnvironmentName, 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,16 @@
|
|
|
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';
|
|
@@ -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>;
|