@devtron-labs/devtron-fe-common-lib 0.5.0-beta-3 → 0.5.0-beta-4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Common/Helper.d.ts +0 -1
- package/dist/Common/Toggle/Toggle.d.ts +1 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryConfigList.component.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/{DeploymentHistoryConfigDiff → DeploymentHistoryDiff}/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryHeader.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistorySidebar.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/index.d.ts +3 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/types.d.ts +35 -0
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/index.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +5 -7
- package/dist/Shared/Components/Collapse/Collapse.d.ts +1 -6
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +10 -27
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +2 -3
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +0 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -6
- package/dist/Shared/Helpers.d.ts +0 -13
- package/dist/Shared/Services/app.service.d.ts +1 -4
- package/dist/Shared/Services/app.types.d.ts +7 -31
- package/dist/Shared/types.d.ts +33 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-BlfpXcRK.js → cssMode-CUNEXhu5.js} +1 -1
- package/dist/{freemarker2-BOScfwOt.js → freemarker2-DV7POtuF.js} +1 -1
- package/dist/{handlebars-Il5XTYBA.js → handlebars-CNDtQMEk.js} +1 -1
- package/dist/{html-DVAN4oVg.js → html-J67-LThI.js} +1 -1
- package/dist/{htmlMode-2cUDXYNV.js → htmlMode-C08l0cVM.js} +1 -1
- package/dist/{index-BDmJgeUH.js → index-C4yFLnbQ.js} +29691 -29951
- package/dist/index.js +551 -556
- package/dist/{javascript-CsvkGfDF.js → javascript-DhDpkmSb.js} +1 -1
- package/dist/{jsonMode-D2OkD684.js → jsonMode-B9M2gunx.js} +1 -1
- package/dist/{liquid-Ca0-mc8F.js → liquid-AWI3tjqW.js} +1 -1
- package/dist/{mdx-C5kuaEoV.js → mdx-B4YZV7v2.js} +1 -1
- package/dist/{python-CRaFJp_v.js → python-DlT9zfRV.js} +1 -1
- package/dist/{razor-DQ6-9JDC.js → razor-DGhiFsZg.js} +1 -1
- package/dist/{tsMode-Q7tQMIUt.js → tsMode-CzwEiyV0.js} +1 -1
- package/dist/{typescript-ChSyq2A2.js → typescript-BXxjU9IA.js} +1 -1
- package/dist/{xml-Bt9p71cu.js → xml-Cru83Tz2.js} +1 -1
- package/dist/{yaml-6FqY-tTr.js → yaml-CYKBclGP.js} +1 -1
- package/package.json +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiff.d.ts +0 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryConfigDiffCompare.d.ts +0 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +0 -6
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/index.d.ts +0 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +0 -35
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +0 -20
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.constants.d.ts +0 -6
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -120,5 +120,4 @@ export declare const DropdownIndicator: (props: any) => JSX.Element;
|
|
|
120
120
|
export declare function mapByKey<T = Map<any, any>>(arr: any[], id: string): T;
|
|
121
121
|
export declare function asyncWrap(promise: any): any[];
|
|
122
122
|
export declare const prefixZeroIfSingleDigit: (value?: number) => string | number;
|
|
123
|
-
export declare const throttle: <T extends (...args: unknown[]) => unknown>(func: T, delay?: number) => ((...args: Parameters<T>) => void);
|
|
124
123
|
export {};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass,
|
|
1
|
+
declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, ...props }: {
|
|
2
2
|
[x: string]: any;
|
|
3
3
|
selected?: boolean;
|
|
4
4
|
onSelect?: any;
|
|
@@ -8,6 +8,5 @@ declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dat
|
|
|
8
8
|
dataTestId?: string;
|
|
9
9
|
Icon?: any;
|
|
10
10
|
iconClass?: string;
|
|
11
|
-
throttleOnChange?: boolean;
|
|
12
11
|
}) => JSX.Element;
|
|
13
12
|
export default Toggle;
|
package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDetailedView.d.ts
ADDED
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CompareViewDeploymentType } from './types';
|
|
2
|
+
declare const DeploymentHistoryDetailedView: ({ setFullScreenView, deploymentHistoryList, setDeploymentHistoryList, renderRunSource, resourceId, }: CompareViewDeploymentType) => JSX.Element;
|
|
3
|
+
export default DeploymentHistoryDetailedView;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DeploymentTemplateHistoryType } from '../types';
|
|
2
|
-
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName,
|
|
2
|
+
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, comparisonBodyClassName, sortOrder, }: DeploymentTemplateHistoryType) => JSX.Element;
|
|
3
3
|
export default DeploymentHistoryDiffView;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { CompareWithBaseConfiguration } from './types';
|
|
2
|
+
declare const DeploymentHistoryHeader: ({ selectedDeploymentTemplate, setSelectedDeploymentTemplate, setFullScreenView, setLoader, setPreviousConfigAvailable, renderRunSource, resourceId, }: CompareWithBaseConfiguration) => JSX.Element;
|
|
3
|
+
export default DeploymentHistoryHeader;
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
export { default as DeploymentHistoryDetailedView } from './DeploymentHistoryDetailedView';
|
|
2
|
+
export { default as DeploymentHistoryConfigList } from './DeploymentHistoryConfigList.component';
|
|
3
|
+
export { default as DeploymentHistoryDiffView } from './DeploymentHistoryDiffView';
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { OptionType } from '../../../../Common';
|
|
2
|
+
import { DeploymentTemplateList, RunSourceType, RenderRunSourceType } from '../types';
|
|
3
|
+
export interface DeploymentHistoryParamsType {
|
|
4
|
+
appId: string;
|
|
5
|
+
pipelineId?: string;
|
|
6
|
+
historyComponent?: string;
|
|
7
|
+
baseConfigurationId?: string;
|
|
8
|
+
historyComponentName?: string;
|
|
9
|
+
envId?: string;
|
|
10
|
+
triggerId?: string;
|
|
11
|
+
}
|
|
12
|
+
export interface CompareViewDeploymentType extends RenderRunSourceType {
|
|
13
|
+
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
14
|
+
deploymentHistoryList: DeploymentTemplateList[];
|
|
15
|
+
setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
|
|
16
|
+
resourceId?: number;
|
|
17
|
+
}
|
|
18
|
+
export interface DeploymentTemplateOptions extends OptionType {
|
|
19
|
+
author: string;
|
|
20
|
+
status: string;
|
|
21
|
+
runSource?: RunSourceType;
|
|
22
|
+
}
|
|
23
|
+
export interface CompareWithBaseConfiguration extends RenderRunSourceType {
|
|
24
|
+
selectedDeploymentTemplate: DeploymentTemplateOptions;
|
|
25
|
+
setSelectedDeploymentTemplate: (selected: any) => void;
|
|
26
|
+
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
27
|
+
setLoader: React.Dispatch<React.SetStateAction<boolean>>;
|
|
28
|
+
setPreviousConfigAvailable: React.Dispatch<React.SetStateAction<boolean>>;
|
|
29
|
+
resourceId?: number;
|
|
30
|
+
}
|
|
31
|
+
export interface TemplateConfiguration {
|
|
32
|
+
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
33
|
+
deploymentHistoryList: DeploymentTemplateList[];
|
|
34
|
+
setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
|
|
35
|
+
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { default as React } from 'react';
|
|
2
2
|
import { TriggerDetailsType, TriggerOutputProps } from './types';
|
|
3
3
|
export declare const TriggerDetails: React.MemoExoticComponent<({ status, startedOn, finishedOn, triggeredBy, triggeredByEmail, ciMaterials, gitTriggers, message, podStatus, type, stage, artifact, environmentName, isJobView, workerPodName, triggerMetadata, renderDeploymentHistoryTriggerMetaText, renderTargetConfigInfo, }: TriggerDetailsType) => JSX.Element>;
|
|
4
|
-
declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom, renderTargetConfigInfo,
|
|
4
|
+
declare const TriggerOutput: ({ fullScreenView, triggerHistory, setTriggerHistory, setFullScreenView, setDeploymentHistoryList, deploymentHistoryList, deploymentAppType, isBlobStorageConfigured, appReleaseTags, tagsEditable, hideImageTaggingHardDelete, fetchIdData, setFetchTriggerIdData, selectedEnvironmentName, deploymentHistoryResult, renderRunSource, renderCIListHeader, renderDeploymentApprovalInfo, processVirtualEnvironmentDeploymentData, renderVirtualHistoryArtifacts, renderDeploymentHistoryTriggerMetaText, resourceId, scrollToTop, scrollToBottom, renderTargetConfigInfo, }: TriggerOutputProps) => JSX.Element;
|
|
5
5
|
export default TriggerOutput;
|
|
@@ -11,6 +11,6 @@ export * from './History.components';
|
|
|
11
11
|
export * from './utils';
|
|
12
12
|
export * from './TriggerOutput';
|
|
13
13
|
export { default as LogsRenderer } from './LogsRenderer';
|
|
14
|
-
export * from './
|
|
14
|
+
export * from './DeploymentHistoryDiff';
|
|
15
15
|
export * from './CiPipelineSourceConfig';
|
|
16
16
|
export * from './StatusFilterButtonComponent';
|
|
@@ -322,13 +322,14 @@ export interface TriggerOutputProps extends RenderRunSourceType, Pick<TriggerDet
|
|
|
322
322
|
fullScreenView: boolean;
|
|
323
323
|
triggerHistory: Map<number, History>;
|
|
324
324
|
setFullScreenView: React.Dispatch<React.SetStateAction<boolean>>;
|
|
325
|
+
deploymentHistoryList: DeploymentTemplateList[];
|
|
326
|
+
setDeploymentHistoryList: React.Dispatch<React.SetStateAction<DeploymentTemplateList[]>>;
|
|
325
327
|
deploymentAppType: DeploymentAppTypes;
|
|
326
328
|
isBlobStorageConfigured: boolean;
|
|
327
329
|
appReleaseTags: string[];
|
|
328
330
|
tagsEditable: boolean;
|
|
329
331
|
hideImageTaggingHardDelete: boolean;
|
|
330
332
|
fetchIdData: FetchIdDataStatus;
|
|
331
|
-
appName: string;
|
|
332
333
|
selectedEnvironmentName?: string;
|
|
333
334
|
renderCIListHeader?: (renderCIListHeaderProps: RenderCIListHeaderProps) => JSX.Element;
|
|
334
335
|
renderDeploymentApprovalInfo?: (userApprovalMetadata: UserApprovalMetadataType) => JSX.Element;
|
|
@@ -342,7 +343,7 @@ export interface TriggerOutputProps extends RenderRunSourceType, Pick<TriggerDet
|
|
|
342
343
|
scrollToTop: ReturnType<typeof useScrollable>[1];
|
|
343
344
|
scrollToBottom: ReturnType<typeof useScrollable>[2];
|
|
344
345
|
}
|
|
345
|
-
export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView'
|
|
346
|
+
export interface HistoryLogsProps extends Pick<TriggerOutputProps, 'scrollToTop' | 'scrollToBottom' | 'setFullScreenView' | 'deploymentHistoryList' | 'setDeploymentHistoryList' | 'deploymentAppType' | 'isBlobStorageConfigured' | 'appReleaseTags' | 'tagsEditable' | 'hideImageTaggingHardDelete' | 'selectedEnvironmentName' | 'processVirtualEnvironmentDeploymentData' | 'renderDeploymentApprovalInfo' | 'renderCIListHeader' | 'renderVirtualHistoryArtifacts' | 'fullScreenView'> {
|
|
346
347
|
triggerDetails: History;
|
|
347
348
|
loading: boolean;
|
|
348
349
|
userApprovalMetadata: UserApprovalMetadataType;
|
|
@@ -392,11 +393,8 @@ export interface DeploymentTemplateHistoryType {
|
|
|
392
393
|
isUnpublished?: boolean;
|
|
393
394
|
isDeleteDraft?: boolean;
|
|
394
395
|
rootClassName?: string;
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
sortBy: string;
|
|
398
|
-
sortOrder: SortingOrder;
|
|
399
|
-
};
|
|
396
|
+
comparisonBodyClassName?: string;
|
|
397
|
+
sortOrder?: SortingOrder;
|
|
400
398
|
}
|
|
401
399
|
export interface DeploymentHistoryDetailRes extends ResponseType {
|
|
402
400
|
result?: DeploymentHistoryDetail;
|
|
@@ -1,7 +1,2 @@
|
|
|
1
1
|
import { CollapseProps } from './types';
|
|
2
|
-
|
|
3
|
-
* Collapse component for expanding/collapsing content with smooth transitions.
|
|
4
|
-
* Dynamically calculates and applies height based on the content, with support
|
|
5
|
-
* for callback execution when the transition ends.
|
|
6
|
-
*/
|
|
7
|
-
export declare const Collapse: ({ expand, onTransitionEnd, children }: CollapseProps) => JSX.Element;
|
|
2
|
+
export declare const Collapse: ({ expand, children }: CollapseProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig,
|
|
2
|
+
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
|
|
@@ -4,12 +4,6 @@ import { DeploymentHistoryDetail } from '../CICDHistory';
|
|
|
4
4
|
import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
|
|
5
5
|
import { SelectPickerProps } from '../SelectPicker';
|
|
6
6
|
import { CollapseProps } from '../Collapse';
|
|
7
|
-
export declare enum DeploymentConfigDiffState {
|
|
8
|
-
NO_DIFF = "noDiff",
|
|
9
|
-
HAS_DIFF = "hasDiff",
|
|
10
|
-
ADDED = "added",
|
|
11
|
-
DELETED = "deleted"
|
|
12
|
-
}
|
|
13
7
|
export interface DeploymentConfigType {
|
|
14
8
|
list: DeploymentHistoryDetail;
|
|
15
9
|
heading: React.ReactNode;
|
|
@@ -17,13 +11,10 @@ export interface DeploymentConfigType {
|
|
|
17
11
|
export interface DeploymentConfigListItem {
|
|
18
12
|
id: string;
|
|
19
13
|
title: string;
|
|
20
|
-
name?: string;
|
|
21
|
-
pathType: EnvResourceType;
|
|
22
14
|
primaryConfig: DeploymentConfigType;
|
|
23
15
|
secondaryConfig: DeploymentConfigType;
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
groupHeader?: string;
|
|
16
|
+
hasDiff?: boolean;
|
|
17
|
+
isDeploymentTemplate?: boolean;
|
|
27
18
|
}
|
|
28
19
|
export type DeploymentConfigDiffSelectPickerProps = {
|
|
29
20
|
type: 'string';
|
|
@@ -37,7 +28,7 @@ export type DeploymentConfigDiffSelectPickerProps = {
|
|
|
37
28
|
selectPickerProps: SelectPickerProps;
|
|
38
29
|
};
|
|
39
30
|
export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem, 'href' | 'title' | 'onClick'> {
|
|
40
|
-
|
|
31
|
+
hasDiff?: boolean;
|
|
41
32
|
}
|
|
42
33
|
export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig, 'id' | 'header' | 'noItemsText'> {
|
|
43
34
|
items: DeploymentConfigDiffNavigationItem[];
|
|
@@ -47,18 +38,14 @@ export interface DeploymentConfigDiffProps {
|
|
|
47
38
|
errorConfig?: {
|
|
48
39
|
error: boolean;
|
|
49
40
|
code: number;
|
|
50
|
-
message?: string;
|
|
51
|
-
redirectURL?: string;
|
|
52
41
|
reload: () => void;
|
|
53
42
|
};
|
|
54
43
|
configList: DeploymentConfigListItem[];
|
|
55
|
-
showDetailedDiffState?: boolean;
|
|
56
44
|
headerText?: string;
|
|
57
45
|
scrollIntoViewId?: string;
|
|
58
46
|
selectorsConfig: {
|
|
59
47
|
primaryConfig: DeploymentConfigDiffSelectPickerProps[];
|
|
60
48
|
secondaryConfig: DeploymentConfigDiffSelectPickerProps[];
|
|
61
|
-
hideDivider?: boolean;
|
|
62
49
|
};
|
|
63
50
|
sortingConfig?: {
|
|
64
51
|
sortBy: string;
|
|
@@ -75,33 +62,29 @@ export interface DeploymentConfigDiffProps {
|
|
|
75
62
|
activeTab: string;
|
|
76
63
|
onClick: (tab: string) => void;
|
|
77
64
|
};
|
|
78
|
-
scopeVariablesConfig?: {
|
|
79
|
-
convertVariables: boolean;
|
|
80
|
-
onConvertVariablesClick: () => void;
|
|
81
|
-
};
|
|
82
|
-
renderedInDrawer?: boolean;
|
|
83
65
|
}
|
|
84
|
-
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig'
|
|
66
|
+
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig'> {
|
|
85
67
|
}
|
|
86
|
-
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'
|
|
68
|
+
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'> {
|
|
87
69
|
}
|
|
88
|
-
export
|
|
70
|
+
export interface DeploymentConfigDiffAccordionProps extends Pick<CollapseProps, 'onTransitionEnd'> {
|
|
89
71
|
id: string;
|
|
90
72
|
title: string;
|
|
91
73
|
children: React.ReactNode;
|
|
92
|
-
|
|
74
|
+
hasDiff?: boolean;
|
|
93
75
|
isExpanded?: boolean;
|
|
94
76
|
onClick?: (e: React.MouseEvent<HTMLButtonElement>) => void;
|
|
95
|
-
}
|
|
77
|
+
}
|
|
96
78
|
export type DiffHeadingDataType<DeploymentTemplate> = DeploymentTemplate extends true ? DeploymentTemplateDTO : ConfigMapSecretDataConfigDatumDTO;
|
|
97
79
|
export type AppEnvDeploymentConfigListParams<IsManifestView> = (IsManifestView extends true ? {
|
|
98
80
|
currentList: ManifestTemplateDTO;
|
|
99
81
|
compareList: ManifestTemplateDTO;
|
|
82
|
+
sortOrder?: never;
|
|
100
83
|
} : {
|
|
101
84
|
currentList: AppEnvDeploymentConfigDTO;
|
|
102
85
|
compareList: AppEnvDeploymentConfigDTO;
|
|
86
|
+
sortOrder?: SortingOrder;
|
|
103
87
|
}) & {
|
|
104
88
|
getNavItemHref: (resourceType: EnvResourceType, resourceName: string) => string;
|
|
105
89
|
isManifestView?: IsManifestView;
|
|
106
|
-
convertVariables?: boolean;
|
|
107
90
|
};
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { DeploymentConfigDiffProps, AppEnvDeploymentConfigListParams } from '..';
|
|
2
|
-
import { ConfigMapSecretDataConfigDatumDTO,
|
|
3
|
-
export declare const getDeploymentTemplateData: (data: DeploymentTemplateDTO) => any;
|
|
2
|
+
import { ConfigMapSecretDataConfigDatumDTO, TemplateListDTO } from '../../Services/app.types';
|
|
4
3
|
/**
|
|
5
4
|
* Retrieves the draft data from the given configuration data object.
|
|
6
5
|
*
|
|
@@ -28,7 +27,7 @@ export declare const mergeConfigDataArraysByName: (primaryArray: ConfigMapSecret
|
|
|
28
27
|
*
|
|
29
28
|
* @returns An object containing the combined deployment configuration list, a collapsible navigation list, and a navigation list.
|
|
30
29
|
*/
|
|
31
|
-
export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView,
|
|
30
|
+
export declare const getAppEnvDeploymentConfigList: <ManifestView extends boolean = false>({ currentList, compareList, getNavItemHref, isManifestView, sortOrder, }: AppEnvDeploymentConfigListParams<ManifestView>) => {
|
|
32
31
|
configList: DeploymentConfigDiffProps["configList"];
|
|
33
32
|
navList: DeploymentConfigDiffProps["navList"];
|
|
34
33
|
collapsibleNavList: DeploymentConfigDiffProps["collapsibleNavList"];
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffAccordionProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiffAccordion: (
|
|
2
|
+
export declare const DeploymentConfigDiffAccordion: import('react').ForwardRefExoticComponent<DeploymentConfigDiffAccordionProps & import('react').RefAttributes<HTMLDivElement>>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffMainProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiffMain: ({ isLoading, errorConfig, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId,
|
|
2
|
+
export declare const DeploymentConfigDiffMain: ({ isLoading, errorConfig, headerText, configList, selectorsConfig, sortingConfig, scrollIntoViewId, }: DeploymentConfigDiffMainProps) => JSX.Element;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffNavigationProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig,
|
|
2
|
+
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
|
|
@@ -4,12 +4,11 @@ import { ComponentSizeType } from '../../constants';
|
|
|
4
4
|
import { MutableRefObject, ReactElement, ReactNode } from 'react';
|
|
5
5
|
import { GroupBase, GroupHeadingProps, Props as ReactSelectProps, SelectInstance } from 'react-select';
|
|
6
6
|
import { CreatableProps } from 'react-select/creatable';
|
|
7
|
-
import { TooltipProps } from '@Common/Tooltip/types';
|
|
8
7
|
export interface SelectPickerOptionType<OptionValue = string | number> extends OptionType<OptionValue, ReactNode> {
|
|
9
8
|
/**
|
|
10
9
|
* Description to be displayed for the option
|
|
11
10
|
*/
|
|
12
|
-
description?:
|
|
11
|
+
description?: string;
|
|
13
12
|
/**
|
|
14
13
|
* Icon at the start of the option
|
|
15
14
|
*/
|
|
@@ -18,10 +17,6 @@ export interface SelectPickerOptionType<OptionValue = string | number> extends O
|
|
|
18
17
|
* Icon at the end of the option
|
|
19
18
|
*/
|
|
20
19
|
endIcon?: ReactElement;
|
|
21
|
-
/**
|
|
22
|
-
* Props passed to show the tippy on option
|
|
23
|
-
*/
|
|
24
|
-
tooltipProps?: Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'shortcutKeyCombo'> | (Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'content'> & Required<Pick<TooltipProps, 'shortcutKeyCombo'>>);
|
|
25
20
|
}
|
|
26
21
|
type SelectProps<OptionValue, IsMulti extends boolean> = ReactSelectProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>;
|
|
27
22
|
declare module 'react-select/base' {
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -50,17 +50,4 @@ export declare const getIsManualApprovalSpecific: (userApprovalConfig?: Pick<Use
|
|
|
50
50
|
*/
|
|
51
51
|
export declare const getHandleOpenURL: (url: string) => () => void;
|
|
52
52
|
export declare const getDefaultValueFromType: (value: unknown) => {};
|
|
53
|
-
/**
|
|
54
|
-
* Groups an array of objects by a specified key.
|
|
55
|
-
*
|
|
56
|
-
* This function takes an array of objects and a key, and groups the objects in the array
|
|
57
|
-
* based on the value of the specified key. If an object does not have the specified key,
|
|
58
|
-
* it will be grouped under the `'UNGROUPED'` key.
|
|
59
|
-
*
|
|
60
|
-
* @param array - The array of objects to be grouped.
|
|
61
|
-
* @param key - The key of the object used to group the array.
|
|
62
|
-
* @returns An object where the keys are the unique values of the specified key in the array,
|
|
63
|
-
* and the values are arrays of objects that share the same key value.
|
|
64
|
-
*/
|
|
65
|
-
export declare const groupArrayByObjectKey: <T extends Record<string, any>, K extends keyof T>(array: T[], key: K) => Record<string, T[]>;
|
|
66
53
|
export {};
|
|
@@ -5,7 +5,4 @@ export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => P
|
|
|
5
5
|
* The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
|
|
6
6
|
*/
|
|
7
7
|
export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, "ciArtifactId">) => Promise<CIMaterialInfoType>;
|
|
8
|
-
export declare const getAppEnvDeploymentConfig: (
|
|
9
|
-
params: AppEnvDeploymentConfigPayloadType;
|
|
10
|
-
signal?: AbortSignal;
|
|
11
|
-
}) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
|
|
8
|
+
export declare const getAppEnvDeploymentConfig: (params: AppEnvDeploymentConfigPayloadType, signal?: AbortSignal) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
|
|
@@ -114,7 +114,6 @@ export interface DraftMetadataDTO {
|
|
|
114
114
|
draftId: number;
|
|
115
115
|
draftVersionId: number;
|
|
116
116
|
draftState: number;
|
|
117
|
-
draftResolvedValue: string;
|
|
118
117
|
approvers: string[];
|
|
119
118
|
canApprove: boolean;
|
|
120
119
|
commentsCount: number;
|
|
@@ -151,40 +150,26 @@ export interface ConfigMapSecretDataType {
|
|
|
151
150
|
export declare enum ConfigResourceType {
|
|
152
151
|
ConfigMap = "ConfigMap",
|
|
153
152
|
Secret = "Secret",
|
|
154
|
-
DeploymentTemplate = "Deployment Template"
|
|
155
|
-
PipelineStrategy = "Pipeline Strategy"
|
|
153
|
+
DeploymentTemplate = "Deployment Template"
|
|
156
154
|
}
|
|
157
155
|
export interface DeploymentTemplateDTO {
|
|
158
156
|
resourceType: ConfigResourceType.DeploymentTemplate;
|
|
159
|
-
data:
|
|
160
|
-
|
|
161
|
-
variableSnapshot: {
|
|
162
|
-
'Deployment Template': Record<string, string>;
|
|
157
|
+
data: {
|
|
158
|
+
[key: string]: any;
|
|
163
159
|
};
|
|
164
|
-
|
|
165
|
-
isAppMetricsEnabled?: true;
|
|
166
|
-
resolvedValue: Record<string, any>;
|
|
160
|
+
deploymentDraftData: ConfigMapSecretDataType | null;
|
|
167
161
|
}
|
|
168
162
|
export interface ConfigMapSecretDataDTO {
|
|
169
163
|
resourceType: Extract<ConfigResourceType, ConfigResourceType.ConfigMap | ConfigResourceType.Secret>;
|
|
170
164
|
data: ConfigMapSecretDataType;
|
|
171
|
-
variableSnapshot: Record<string, Record<string, string>>;
|
|
172
|
-
resolvedValue: string;
|
|
173
|
-
}
|
|
174
|
-
export interface PipelineConfigDataDTO {
|
|
175
|
-
resourceType: ConfigResourceType.PipelineStrategy;
|
|
176
|
-
data: Record<string, any>;
|
|
177
|
-
pipelineTriggerType: string;
|
|
178
|
-
Strategy: string;
|
|
179
165
|
}
|
|
180
166
|
export interface AppEnvDeploymentConfigDTO {
|
|
181
167
|
deploymentTemplate: DeploymentTemplateDTO | null;
|
|
182
168
|
configMapData: ConfigMapSecretDataDTO | null;
|
|
183
169
|
secretsData: ConfigMapSecretDataDTO | null;
|
|
184
|
-
pipelineConfigData?: PipelineConfigDataDTO;
|
|
185
170
|
isAppAdmin: boolean;
|
|
186
171
|
}
|
|
187
|
-
export
|
|
172
|
+
export interface AppEnvDeploymentConfigPayloadType {
|
|
188
173
|
appName: string;
|
|
189
174
|
envName: string;
|
|
190
175
|
configType: AppEnvDeploymentConfigType;
|
|
@@ -193,14 +178,7 @@ export type AppEnvDeploymentConfigPayloadType = {
|
|
|
193
178
|
resourceType?: ConfigResourceType;
|
|
194
179
|
resourceId?: number;
|
|
195
180
|
resourceName?: string;
|
|
196
|
-
|
|
197
|
-
} | {
|
|
198
|
-
appName: string;
|
|
199
|
-
envName: string;
|
|
200
|
-
pipelineId: number;
|
|
201
|
-
configArea: 'CdRollback' | 'DeploymentHistory';
|
|
202
|
-
wfrId: number;
|
|
203
|
-
};
|
|
181
|
+
}
|
|
204
182
|
export declare enum TemplateListType {
|
|
205
183
|
DefaultVersions = 1,
|
|
206
184
|
PublishedOnEnvironments = 2,
|
|
@@ -218,7 +196,6 @@ export interface TemplateListDTO {
|
|
|
218
196
|
finishedOn?: string;
|
|
219
197
|
status?: string;
|
|
220
198
|
pipelineId?: number;
|
|
221
|
-
wfrId?: number;
|
|
222
199
|
}
|
|
223
200
|
export interface ManifestTemplateDTO {
|
|
224
201
|
data: string;
|
|
@@ -235,7 +212,6 @@ export declare enum EnvResourceType {
|
|
|
235
212
|
ConfigMap = "configmap",
|
|
236
213
|
Secret = "secrets",
|
|
237
214
|
DeploymentTemplate = "deployment-template",
|
|
238
|
-
Manifest = "manifest"
|
|
239
|
-
PipelineStrategy = "pipeline-strategy"
|
|
215
|
+
Manifest = "manifest"
|
|
240
216
|
}
|
|
241
217
|
export {};
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -580,4 +580,37 @@ export declare enum RuntimeParamsHeadingType {
|
|
|
580
580
|
KEY = "key",
|
|
581
581
|
VALUE = "value"
|
|
582
582
|
}
|
|
583
|
+
export declare enum ACCESS_TYPE_MAP {
|
|
584
|
+
DEVTRON_APPS = "devtron-app",// devtron app work flow
|
|
585
|
+
HELM_APPS = "helm-app",// helm app work flow
|
|
586
|
+
JOBS = ""
|
|
587
|
+
}
|
|
588
|
+
export declare enum EntityTypes {
|
|
589
|
+
CHART_GROUP = "chart-group",
|
|
590
|
+
DIRECT = "apps",
|
|
591
|
+
JOB = "jobs",
|
|
592
|
+
DOCKER = "docker",
|
|
593
|
+
GIT = "git",
|
|
594
|
+
CLUSTER = "cluster",
|
|
595
|
+
NOTIFICATION = "notification"
|
|
596
|
+
}
|
|
597
|
+
export interface CustomRoles {
|
|
598
|
+
id: number;
|
|
599
|
+
roleName: string;
|
|
600
|
+
roleDisplayName: string;
|
|
601
|
+
roleDescription: string;
|
|
602
|
+
entity: EntityTypes;
|
|
603
|
+
accessType: ACCESS_TYPE_MAP.DEVTRON_APPS | ACCESS_TYPE_MAP.HELM_APPS;
|
|
604
|
+
}
|
|
605
|
+
export type MetaPossibleRoles = Record<CustomRoles['roleName'], {
|
|
606
|
+
value: CustomRoles['roleDisplayName'];
|
|
607
|
+
description: CustomRoles['roleDescription'];
|
|
608
|
+
}>;
|
|
609
|
+
export interface CustomRoleAndMeta {
|
|
610
|
+
customRoles: CustomRoles[];
|
|
611
|
+
possibleRolesMeta: MetaPossibleRoles;
|
|
612
|
+
possibleRolesMetaForHelm: MetaPossibleRoles;
|
|
613
|
+
possibleRolesMetaForCluster: MetaPossibleRoles;
|
|
614
|
+
possibleRolesMetaForJob: MetaPossibleRoles;
|
|
615
|
+
}
|
|
583
616
|
export {};
|