@devtron-labs/devtron-fe-common-lib 0.5.1-beta-1 → 0.5.1-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/Constants.d.ts +3 -0
- package/dist/Common/Policy.Types.d.ts +0 -14
- package/dist/Common/Types.d.ts +2 -6
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/DTApplicationMetricsFormField.d.ts +3 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/constants.d.ts +2 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/index.d.ts +4 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/service.d.ts +4 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +171 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +2 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/constants.d.ts +5 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/index.d.ts +5 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +27 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +2 -0
- package/dist/Pages/{CDPipeline → Applications/DevtronApps/Details/CDPipeline}/types.d.ts +4 -4
- package/dist/Pages/{App → Applications/DevtronApps/Details}/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/index.d.ts +1 -0
- package/dist/Pages/Applications/index.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/Descriptor.d.ts +2 -2
- package/dist/Pages/GlobalConfigurations/BuildInfra/types.d.ts +1 -1
- package/dist/Pages/index.d.ts +1 -2
- package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
- package/dist/Shared/Components/Button/types.d.ts +6 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +4 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +4 -2
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/FeatureTitleWithInfo.d.ts +1 -1
- package/dist/Shared/Components/FeatureDescription/index.d.ts +0 -1
- package/dist/Shared/Components/FeatureDescription/types.d.ts +0 -6
- package/dist/Shared/Components/InvalidYAMLTippy/InvalidYAMLTippyWrapper.d.ts +3 -0
- package/dist/Shared/Components/InvalidYAMLTippy/constants.d.ts +1 -0
- package/dist/Shared/Components/InvalidYAMLTippy/index.d.ts +2 -0
- package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +6 -0
- package/dist/Shared/Components/InvalidYAMLTippy/utils.d.ts +2 -0
- package/dist/Shared/Components/Plugin/service.d.ts +3 -3
- package/dist/Shared/Components/Plugin/types.d.ts +1 -4
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/constants.d.ts +5 -0
- package/dist/Shared/Components/SelectPicker/type.d.ts +15 -23
- package/dist/Shared/Components/SelectPicker/utils.d.ts +1 -2
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +9 -1
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Hooks/useForm/useForm.d.ts +29 -26
- package/dist/Shared/Hooks/useForm/useForm.types.d.ts +15 -8
- package/dist/Shared/Hooks/useForm/useForm.utils.d.ts +1 -1
- package/dist/Shared/Services/app.types.d.ts +35 -22
- package/dist/Shared/constants.d.ts +3 -1
- package/dist/Shared/types.d.ts +13 -4
- package/dist/Shared/validations.d.ts +0 -3
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-C-8NCRVi.js → cssMode-BqR6v0o8.js} +1 -1
- package/dist/{freemarker2-VwlfxSVj.js → freemarker2-DYWfv8gN.js} +1 -1
- package/dist/{handlebars-DTdwp5Q_.js → handlebars-6KNd_Je9.js} +1 -1
- package/dist/{html-BMP6mYoe.js → html-CqjYZdxh.js} +1 -1
- package/dist/{htmlMode-C3iSGN9S.js → htmlMode-DRyo9_8x.js} +1 -1
- package/dist/{index-qo_57pVO.js → index-8Yo61zsh.js} +24188 -24018
- package/dist/index.js +534 -515
- package/dist/{javascript-DTYUPJW2.js → javascript-CtcTdTtt.js} +1 -1
- package/dist/{jsonMode-CSV24tpD.js → jsonMode-Cdfccbgv.js} +1 -1
- package/dist/{liquid-BLRIE4ke.js → liquid-DN3O5mMC.js} +1 -1
- package/dist/{mdx-8YGlyJjq.js → mdx-DBs7Pljs.js} +1 -1
- package/dist/{python-DJq97ytD.js → python-BzN8Ala5.js} +1 -1
- package/dist/{razor-mlnUPUkS.js → razor-C7L_MpUQ.js} +1 -1
- package/dist/{tsMode-Dzwysbxg.js → tsMode-CMVpC480.js} +1 -1
- package/dist/{typescript-DpicryHs.js → typescript-DLQwIb2p.js} +1 -1
- package/dist/{xml-CTgEAmpj.js → xml-XzjtqiNv.js} +1 -1
- package/dist/{yaml-B1IgP7z6.js → yaml-Cn5iucCx.js} +1 -1
- package/package.json +1 -1
- package/dist/Pages/App/AppConfigurations/index.d.ts +0 -1
- package/dist/Pages/App/AppConfigurations/utils.d.ts +0 -2
- /package/dist/Pages/{CDPipeline → Applications/DevtronApps/Details/CDPipeline}/index.d.ts +0 -0
|
@@ -5,6 +5,7 @@ export declare const DOCUMENTATION_HOME_PAGE = "https://docs.devtron.ai";
|
|
|
5
5
|
export declare const DOCUMENTATION_VERSION = "/v/v0.7";
|
|
6
6
|
export declare const DISCORD_LINK = "https://discord.devtron.ai/";
|
|
7
7
|
export declare const DOCUMENTATION: {
|
|
8
|
+
APP_METRICS: string;
|
|
8
9
|
APP_TAGS: string;
|
|
9
10
|
APP_OVERVIEW_TAGS: string;
|
|
10
11
|
BLOB_STORAGE: string;
|
|
@@ -48,6 +49,7 @@ export declare const URLS: {
|
|
|
48
49
|
export declare const ROUTES: {
|
|
49
50
|
APP: string;
|
|
50
51
|
APP_ARTIFACT_PROMOTE_MATERIAL: string;
|
|
52
|
+
APP_TEMPLATE_DATA: string;
|
|
51
53
|
PROJECT_LIST_MIN: string;
|
|
52
54
|
USER_CHECK_ROLE: string;
|
|
53
55
|
IMAGE_TAGGING: string;
|
|
@@ -250,6 +252,7 @@ export declare const API_STATUS_CODES: {
|
|
|
250
252
|
PERMISSION_DENIED: number;
|
|
251
253
|
NOT_FOUND: number;
|
|
252
254
|
EXPECTATION_FAILED: number;
|
|
255
|
+
LOCKED: number;
|
|
253
256
|
};
|
|
254
257
|
export declare enum SERVER_MODE {
|
|
255
258
|
EA_ONLY = "EA_ONLY",
|
|
@@ -5,11 +5,6 @@ import { ResponseType } from './Types';
|
|
|
5
5
|
export declare enum ApplyPolicyToStage {
|
|
6
6
|
PRE_CI = "PRE_CI",
|
|
7
7
|
POST_CI = "POST_CI",
|
|
8
|
-
PRE_CD = "PRE_CD",
|
|
9
|
-
POST_CD = "POST_CD",
|
|
10
|
-
/**
|
|
11
|
-
* @deprecated in mandatory plugin policy v2
|
|
12
|
-
*/
|
|
13
8
|
PRE_OR_POST_CI = "PRE_OR_POST_CI"
|
|
14
9
|
}
|
|
15
10
|
export declare enum PluginRequiredStage {
|
|
@@ -51,17 +46,8 @@ export interface ProcessPluginDataReturnType {
|
|
|
51
46
|
mandatoryPluginsError?: ServerErrors;
|
|
52
47
|
}
|
|
53
48
|
export declare enum ConsequenceAction {
|
|
54
|
-
/**
|
|
55
|
-
* This is used if the policy is enforced immediately.
|
|
56
|
-
*/
|
|
57
49
|
BLOCK = "BLOCK",
|
|
58
|
-
/**
|
|
59
|
-
* This is used if the policy will be enforced after a certain timestamp.
|
|
60
|
-
*/
|
|
61
50
|
ALLOW_UNTIL_TIME = "ALLOW_UNTIL_TIME",
|
|
62
|
-
/**
|
|
63
|
-
* This is used if the policy is not enforced yet (just to show waring).
|
|
64
|
-
*/
|
|
65
51
|
ALLOW_FOREVER = "ALLOW_FOREVER"
|
|
66
52
|
}
|
|
67
53
|
export interface ConsequenceType {
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -661,6 +661,8 @@ export interface AppEnvironment {
|
|
|
661
661
|
isProtected?: boolean;
|
|
662
662
|
pipelineId?: number;
|
|
663
663
|
latestCdWorkflowRunnerId?: number;
|
|
664
|
+
commits?: string[];
|
|
665
|
+
ciArtifactId?: number;
|
|
664
666
|
}
|
|
665
667
|
export interface Strategy {
|
|
666
668
|
deploymentTemplate: string;
|
|
@@ -779,12 +781,6 @@ export interface CiPipeline {
|
|
|
779
781
|
isOffendingMandatoryPlugin?: boolean;
|
|
780
782
|
pipelineType?: string;
|
|
781
783
|
}
|
|
782
|
-
export interface DeploymentChartVersionType {
|
|
783
|
-
chartRefId: number;
|
|
784
|
-
chartVersion: string;
|
|
785
|
-
chartType: string;
|
|
786
|
-
type: number;
|
|
787
|
-
}
|
|
788
784
|
export interface ChartVersionAndTypeSelectorProps {
|
|
789
785
|
setSelectedChartRefId: React.Dispatch<React.SetStateAction<number>>;
|
|
790
786
|
}
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { DTApplicationMetricsFormFieldProps } from './types';
|
|
2
|
+
declare const DTApplicationMetricsFormField: ({ showApplicationMetrics, isLoading, selectedChart, isDisabled, toggleAppMetrics, isAppMetricsEnabled, onlyShowCurrentStatus, parsingError, restoreLastSavedYAML, }: DTApplicationMetricsFormFieldProps) => JSX.Element;
|
|
3
|
+
export default DTApplicationMetricsFormField;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ResponseType } from '../../../../../../Common/Types';
|
|
2
|
+
import { GetDeploymentManifestProps, GetResolvedDeploymentTemplateProps, GetResolvedDeploymentTemplateReturnType, ResolvedDeploymentTemplateDTO } from './types';
|
|
3
|
+
export declare const getDeploymentManifest: (params: GetDeploymentManifestProps, abortSignal?: AbortSignal) => Promise<ResponseType<ResolvedDeploymentTemplateDTO>>;
|
|
4
|
+
export declare const getResolvedDeploymentTemplate: (params: GetResolvedDeploymentTemplateProps, signal?: AbortSignal) => Promise<GetResolvedDeploymentTemplateReturnType>;
|
package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts
ADDED
|
@@ -0,0 +1,171 @@
|
|
|
1
|
+
import { DraftMetadataDTO, TemplateListType } from '../../../../../../Shared/Services';
|
|
2
|
+
import { OverrideMergeStrategyType } from '../types';
|
|
3
|
+
export type DeploymentChartOptionkind = 'base' | 'env' | 'chartVersion' | 'deployment';
|
|
4
|
+
export interface DeploymentChartVersionType {
|
|
5
|
+
id: number | string;
|
|
6
|
+
version: string;
|
|
7
|
+
/**
|
|
8
|
+
* BEWARE: This field may or may not exist, not sure why it was there in first place
|
|
9
|
+
*/
|
|
10
|
+
chartRefId?: number;
|
|
11
|
+
type: number;
|
|
12
|
+
deploymentTemplateHistoryId: number;
|
|
13
|
+
pipelineId: number;
|
|
14
|
+
environmentId: number;
|
|
15
|
+
name: string;
|
|
16
|
+
description?: string;
|
|
17
|
+
isAppMetricsSupported: boolean;
|
|
18
|
+
userUploaded?: boolean;
|
|
19
|
+
}
|
|
20
|
+
export interface DeploymentChartOptionType extends DeploymentChartVersionType {
|
|
21
|
+
value: string | number;
|
|
22
|
+
label: string;
|
|
23
|
+
kind?: DeploymentChartOptionkind;
|
|
24
|
+
}
|
|
25
|
+
export interface ChartMetadataType {
|
|
26
|
+
chartDescription: string;
|
|
27
|
+
}
|
|
28
|
+
export interface GetResolvedDeploymentTemplateReturnType {
|
|
29
|
+
resolvedData: string;
|
|
30
|
+
data: string;
|
|
31
|
+
areVariablesPresent: boolean;
|
|
32
|
+
}
|
|
33
|
+
export declare enum ValuesAndManifestFlagDTO {
|
|
34
|
+
DEPLOYMENT_TEMPLATE = 1,
|
|
35
|
+
MANIFEST = 2
|
|
36
|
+
}
|
|
37
|
+
type GetResolvedDeploymentTemplateCustomValuesPayloadType = {
|
|
38
|
+
/**
|
|
39
|
+
* String to be resolved
|
|
40
|
+
*/
|
|
41
|
+
values: string;
|
|
42
|
+
type?: never;
|
|
43
|
+
deploymentTemplateHistoryId?: never;
|
|
44
|
+
pipelineId?: never;
|
|
45
|
+
};
|
|
46
|
+
type GetHistoricResolvedDeploymentTemplatePayloadType = {
|
|
47
|
+
values?: never;
|
|
48
|
+
type: TemplateListType;
|
|
49
|
+
deploymentTemplateHistoryId: number;
|
|
50
|
+
pipelineId: number;
|
|
51
|
+
};
|
|
52
|
+
type GetDeploymentTemplateAndManifestBasePayload = {
|
|
53
|
+
appId: number;
|
|
54
|
+
/**
|
|
55
|
+
* EnvId for the given VALUE
|
|
56
|
+
*/
|
|
57
|
+
envId?: number;
|
|
58
|
+
chartRefId: number;
|
|
59
|
+
} & (GetHistoricResolvedDeploymentTemplatePayloadType | GetResolvedDeploymentTemplateCustomValuesPayloadType);
|
|
60
|
+
export type GetResolvedDeploymentTemplatePayloadType = {
|
|
61
|
+
valuesAndManifestFlag: ValuesAndManifestFlagDTO.DEPLOYMENT_TEMPLATE;
|
|
62
|
+
} & GetDeploymentTemplateAndManifestBasePayload;
|
|
63
|
+
export type GetResolvedDeploymentTemplateProps = GetResolvedDeploymentTemplatePayloadType;
|
|
64
|
+
export type GetDeploymentManifestProps = GetDeploymentTemplateAndManifestBasePayload;
|
|
65
|
+
export type GetDeploymentManifestPayloadType = {
|
|
66
|
+
valuesAndManifestFlag: ValuesAndManifestFlagDTO.MANIFEST;
|
|
67
|
+
} & GetDeploymentTemplateAndManifestBasePayload;
|
|
68
|
+
export interface ResolvedDeploymentTemplateDTO {
|
|
69
|
+
/**
|
|
70
|
+
* Template with encoded variables
|
|
71
|
+
*/
|
|
72
|
+
data: string;
|
|
73
|
+
/**
|
|
74
|
+
* Template with resolved variables
|
|
75
|
+
*/
|
|
76
|
+
resolvedData: string;
|
|
77
|
+
variableSnapshot: Record<string, string>;
|
|
78
|
+
}
|
|
79
|
+
export interface ManifestTemplateDTO extends Pick<ResolvedDeploymentTemplateDTO, 'data'> {
|
|
80
|
+
}
|
|
81
|
+
interface DeploymentTemplateChartConfigType {
|
|
82
|
+
id: number;
|
|
83
|
+
/**
|
|
84
|
+
* Not consumed on UI just need to send in payload while update
|
|
85
|
+
*/
|
|
86
|
+
refChartTemplate: string;
|
|
87
|
+
/**
|
|
88
|
+
* Not consumed on UI just need to send in payload while update
|
|
89
|
+
*/
|
|
90
|
+
refChartTemplateVersion: string;
|
|
91
|
+
chartRefId: number;
|
|
92
|
+
readme: string;
|
|
93
|
+
}
|
|
94
|
+
export interface SelectedChartDetailsType {
|
|
95
|
+
selectedChartRefId: number;
|
|
96
|
+
selectedChart: DeploymentChartVersionType;
|
|
97
|
+
}
|
|
98
|
+
interface EnvironmentConfigType {
|
|
99
|
+
id: number;
|
|
100
|
+
status: number;
|
|
101
|
+
manualReviewed: boolean;
|
|
102
|
+
active: boolean;
|
|
103
|
+
namespace: string;
|
|
104
|
+
}
|
|
105
|
+
interface BaseDeploymentTemplateConfigState {
|
|
106
|
+
chartConfig: DeploymentTemplateChartConfigType;
|
|
107
|
+
isOverridden?: never;
|
|
108
|
+
environmentConfig?: never;
|
|
109
|
+
mergeStrategy?: never;
|
|
110
|
+
}
|
|
111
|
+
interface EnvironmentOverrideDeploymentTemplateConfigState {
|
|
112
|
+
chartConfig?: never;
|
|
113
|
+
isOverridden: boolean;
|
|
114
|
+
environmentConfig: EnvironmentConfigType;
|
|
115
|
+
mergeStrategy: OverrideMergeStrategyType;
|
|
116
|
+
}
|
|
117
|
+
export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
|
|
118
|
+
/**
|
|
119
|
+
* The first ever state of the deployment template
|
|
120
|
+
*/
|
|
121
|
+
originalTemplate: Record<string, string>;
|
|
122
|
+
isAppMetricsEnabled: boolean;
|
|
123
|
+
readme: string;
|
|
124
|
+
schema: Record<string, string>;
|
|
125
|
+
guiSchema: string;
|
|
126
|
+
latestDraft?: DraftMetadataDTO;
|
|
127
|
+
editorTemplate: string;
|
|
128
|
+
editorTemplateWithoutLockedKeys: string;
|
|
129
|
+
}
|
|
130
|
+
export type DeploymentTemplateConfigState = DeploymentTemplateConfigCommonState & (BaseDeploymentTemplateConfigState | EnvironmentOverrideDeploymentTemplateConfigState);
|
|
131
|
+
type DTApplicationMetricsReadOnlyProps = {
|
|
132
|
+
isLoading?: never;
|
|
133
|
+
selectedChart?: never;
|
|
134
|
+
isDisabled?: never;
|
|
135
|
+
toggleAppMetrics?: never;
|
|
136
|
+
/**
|
|
137
|
+
* @default - false
|
|
138
|
+
* If true, would only text depicting the information whether the application metrics is enabled or not
|
|
139
|
+
*/
|
|
140
|
+
onlyShowCurrentStatus: true;
|
|
141
|
+
parsingError?: never;
|
|
142
|
+
restoreLastSavedYAML?: never;
|
|
143
|
+
};
|
|
144
|
+
type DTApplicationMetricsParseErrorProps = {
|
|
145
|
+
parsingError: string;
|
|
146
|
+
restoreLastSavedYAML: () => void;
|
|
147
|
+
} | {
|
|
148
|
+
parsingError?: never;
|
|
149
|
+
restoreLastSavedYAML?: never;
|
|
150
|
+
};
|
|
151
|
+
type DTApplicationMetricsActionProps = {
|
|
152
|
+
isLoading: boolean;
|
|
153
|
+
selectedChart: DeploymentChartVersionType;
|
|
154
|
+
isDisabled: boolean;
|
|
155
|
+
toggleAppMetrics: () => void;
|
|
156
|
+
onlyShowCurrentStatus?: false;
|
|
157
|
+
} & DTApplicationMetricsParseErrorProps;
|
|
158
|
+
export type DTApplicationMetricsFormFieldProps = {
|
|
159
|
+
isAppMetricsEnabled: boolean;
|
|
160
|
+
showApplicationMetrics: boolean;
|
|
161
|
+
} & (DTApplicationMetricsActionProps | DTApplicationMetricsReadOnlyProps);
|
|
162
|
+
export declare enum CompareFromApprovalOptionsValuesType {
|
|
163
|
+
APPROVAL_PENDING = 1,
|
|
164
|
+
VALUES_FROM_DRAFT = 2
|
|
165
|
+
}
|
|
166
|
+
export declare enum DryRunEditorMode {
|
|
167
|
+
APPROVAL_PENDING = "approvalPending",
|
|
168
|
+
VALUES_FROM_DRAFT = "valuesFromDraft",
|
|
169
|
+
PUBLISHED_VALUES = "publishedValues"
|
|
170
|
+
}
|
|
171
|
+
export {};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
import { ReactNode, SyntheticEvent } from 'react';
|
|
2
|
+
export declare enum ConfigHeaderTabType {
|
|
3
|
+
VALUES = "values",
|
|
4
|
+
INHERITED = "inherited",
|
|
5
|
+
DRY_RUN = "dryRun"
|
|
6
|
+
}
|
|
7
|
+
export declare enum ProtectConfigTabsType {
|
|
8
|
+
PUBLISHED = "published",
|
|
9
|
+
COMPARE = "compare",
|
|
10
|
+
EDIT_DRAFT = "editDraft"
|
|
11
|
+
}
|
|
12
|
+
export declare enum OverrideMergeStrategyType {
|
|
13
|
+
PATCH = "patch",
|
|
14
|
+
REPLACE = "replace"
|
|
15
|
+
}
|
|
16
|
+
export interface ConfigToolbarPopupMenuConfigType {
|
|
17
|
+
text: string;
|
|
18
|
+
onClick: (event: SyntheticEvent) => void;
|
|
19
|
+
dataTestId: string;
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
icon?: ReactNode | null;
|
|
22
|
+
variant?: 'default' | 'negative';
|
|
23
|
+
}
|
|
24
|
+
export declare enum ConfigToolbarPopupNodeType {
|
|
25
|
+
DISCARD_DRAFT = "discardDraft",
|
|
26
|
+
EDIT_HISTORY = "editHistory"
|
|
27
|
+
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
import { BuildStageType, FormType } from '
|
|
2
|
-
import { DeploymentAppTypes, UserApprovalConfigType } from '
|
|
3
|
-
import { DeploymentStrategy } from '
|
|
4
|
-
import { EnvListMinDTO } from '
|
|
1
|
+
import { BuildStageType, FormType } from '../../../../../Common/CIPipeline.Types';
|
|
2
|
+
import { DeploymentAppTypes, UserApprovalConfigType } from '../../../../../Common/Types';
|
|
3
|
+
import { DeploymentStrategy } from '../../../../../Shared/Components';
|
|
4
|
+
import { EnvListMinDTO } from '../../../../../Shared/types';
|
|
5
5
|
interface ConfigSecretType {
|
|
6
6
|
label: string;
|
|
7
7
|
value: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './Details';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DevtronApps';
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import {
|
|
2
|
-
declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }:
|
|
1
|
+
import { DescriptorProps } from './types';
|
|
2
|
+
declare const Descriptor: ({ additionalContainerClasses, breadCrumbs, children, tippyInfoText, tippyAdditionalContent, }: DescriptorProps) => JSX.Element;
|
|
3
3
|
export default Descriptor;
|
package/dist/Pages/index.d.ts
CHANGED
|
@@ -63,5 +63,5 @@ import { ButtonProps } from './types';
|
|
|
63
63
|
* <Button icon={<ICCube />} ariaLabel="Label" />
|
|
64
64
|
* ```
|
|
65
65
|
*/
|
|
66
|
-
declare const Button: ({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, ...props }: ButtonProps) => JSX.Element;
|
|
66
|
+
declare const Button: ({ dataTestId, text, variant, size, style, startIcon, endIcon, disabled, isLoading, showTooltip, tooltipProps, icon, ariaLabel, showAriaLabelInTippy, fullWidth, ...props }: ButtonProps) => JSX.Element;
|
|
67
67
|
export default Button;
|
|
@@ -74,6 +74,12 @@ export type ButtonProps = ({
|
|
|
74
74
|
* @default false
|
|
75
75
|
*/
|
|
76
76
|
disabled?: boolean;
|
|
77
|
+
/**
|
|
78
|
+
* Determines if the button should expand to fill the full width of its container.
|
|
79
|
+
*
|
|
80
|
+
* @default false
|
|
81
|
+
*/
|
|
82
|
+
fullWidth?: boolean;
|
|
77
83
|
} & ({
|
|
78
84
|
/**
|
|
79
85
|
* If true, the tooltip is shown for the button
|
package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DeploymentTemplateHistoryType } from '../types';
|
|
2
|
-
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, comparisonBodyClassName,
|
|
2
|
+
declare const DeploymentHistoryDiffView: ({ currentConfiguration, baseTemplateConfiguration, previousConfigAvailable, isUnpublished, isDeleteDraft, rootClassName, comparisonBodyClassName, sortingConfig, }: DeploymentTemplateHistoryType) => JSX.Element;
|
|
3
3
|
export default DeploymentHistoryDiffView;
|
|
@@ -394,7 +394,10 @@ export interface DeploymentTemplateHistoryType {
|
|
|
394
394
|
isDeleteDraft?: boolean;
|
|
395
395
|
rootClassName?: string;
|
|
396
396
|
comparisonBodyClassName?: string;
|
|
397
|
-
|
|
397
|
+
sortingConfig?: {
|
|
398
|
+
sortBy: string;
|
|
399
|
+
sortOrder: SortingOrder;
|
|
400
|
+
};
|
|
398
401
|
}
|
|
399
402
|
export interface DeploymentHistoryDetailRes extends ResponseType {
|
|
400
403
|
result?: DeploymentHistoryDetail;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
|
|
2
|
+
export declare const DeploymentConfigDiff: ({ isLoading, configList, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, errorConfig, ...resProps }: DeploymentConfigDiffProps) => JSX.Element;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { SortingOrder } from '../../../Common/Constants';
|
|
2
|
-
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType
|
|
2
|
+
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType } from '../../Services';
|
|
3
|
+
import { ManifestTemplateDTO } from '../../../Pages/Applications';
|
|
3
4
|
import { DeploymentHistoryDetail } from '../CICDHistory';
|
|
4
5
|
import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
|
|
5
6
|
import { SelectPickerProps } from '../SelectPicker';
|
|
@@ -28,6 +29,7 @@ export type DeploymentConfigDiffSelectPickerProps = {
|
|
|
28
29
|
selectPickerProps: SelectPickerProps;
|
|
29
30
|
};
|
|
30
31
|
export interface DeploymentConfigDiffNavigationItem extends Pick<CollapsibleListItem, 'href' | 'title' | 'onClick'> {
|
|
32
|
+
Icon?: React.FunctionComponent<React.SVGProps<SVGSVGElement>>;
|
|
31
33
|
hasDiff?: boolean;
|
|
32
34
|
}
|
|
33
35
|
export interface DeploymentConfigDiffNavigationCollapsibleItem extends Pick<CollapsibleListConfig, 'id' | 'header' | 'noItemsText'> {
|
|
@@ -63,7 +65,7 @@ export interface DeploymentConfigDiffProps {
|
|
|
63
65
|
onClick: (tab: string) => void;
|
|
64
66
|
};
|
|
65
67
|
}
|
|
66
|
-
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig'> {
|
|
68
|
+
export interface DeploymentConfigDiffNavigationProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'navList' | 'collapsibleNavList' | 'goBackURL' | 'navHeading' | 'navHelpText' | 'tabConfig' | 'errorConfig'> {
|
|
67
69
|
}
|
|
68
70
|
export interface DeploymentConfigDiffMainProps extends Pick<DeploymentConfigDiffProps, 'isLoading' | 'errorConfig' | 'headerText' | 'configList' | 'scrollIntoViewId' | 'selectorsConfig' | 'sortingConfig'> {
|
|
69
71
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentConfigDiffNavigationProps } from './DeploymentConfigDiff.types';
|
|
2
|
-
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
|
|
2
|
+
export declare const DeploymentConfigDiffNavigation: ({ isLoading, collapsibleNavList, navList, goBackURL, navHeading, navHelpText, tabConfig, errorConfig, }: DeploymentConfigDiffNavigationProps) => JSX.Element;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { DescriptorProps } from './types';
|
|
2
|
-
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent,
|
|
2
|
+
declare const FeatureTitleWithInfo: ({ additionalContainerClasses, breadCrumbs, children, iconClassName, title, renderDescriptionContent, closeModalText, docLink, SVGImage, showInfoIconTippy, docLinkText, dataTestId, additionalContent, }: DescriptorProps) => JSX.Element;
|
|
3
3
|
export default FeatureTitleWithInfo;
|
|
@@ -20,10 +20,4 @@ export interface DescriptorProps extends FeatureDescriptionModalProps {
|
|
|
20
20
|
docLinkText?: string;
|
|
21
21
|
dataTestId?: string;
|
|
22
22
|
additionalContent?: ReactNode;
|
|
23
|
-
/**
|
|
24
|
-
* If true, the info icon is displayed which when clicked shows the feature description modal
|
|
25
|
-
*
|
|
26
|
-
* @default false
|
|
27
|
-
*/
|
|
28
|
-
showInfoIcon?: boolean;
|
|
29
23
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const DEFAULT_INVALID_YAML_ERROR = "The provided YAML is invalid. Please provide valid YAML.";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ResponseType } from '../../../Common';
|
|
2
|
-
import {
|
|
3
|
-
export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds, signal, shouldShowError,
|
|
2
|
+
import { GetPluginStoreDataReturnType, GetPluginStoreDataServiceParamsType, MinParentPluginDTO, PluginDetailServiceParamsType } from './types';
|
|
3
|
+
export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds, signal, shouldShowError, }: PluginDetailServiceParamsType) => Promise<Pick<GetPluginStoreDataReturnType, "pluginStore">>;
|
|
4
4
|
export declare const getPluginStoreData: ({ searchKey, selectedTags, appId, offset, signal, }: GetPluginStoreDataServiceParamsType) => Promise<GetPluginStoreDataReturnType>;
|
|
5
5
|
export declare const getAvailablePluginTags: (appId: number) => Promise<string[]>;
|
|
6
|
-
export declare const getParentPluginList: (
|
|
6
|
+
export declare const getParentPluginList: (appId?: number) => Promise<ResponseType<MinParentPluginDTO[]>>;
|
|
@@ -13,7 +13,6 @@ export interface PluginAPIBaseQueryParamsType {
|
|
|
13
13
|
export interface GetPluginTagsPayloadType extends PluginAPIBaseQueryParamsType {
|
|
14
14
|
}
|
|
15
15
|
export interface GetParentPluginListPayloadType extends PluginAPIBaseQueryParamsType {
|
|
16
|
-
type?: 'ALL';
|
|
17
16
|
}
|
|
18
17
|
export interface PluginTagNamesDTO {
|
|
19
18
|
tagNames: string[];
|
|
@@ -51,7 +50,7 @@ export interface ParentPluginDTO {
|
|
|
51
50
|
pluginVersions: PluginVersionsDTO;
|
|
52
51
|
pluginIdentifier: string;
|
|
53
52
|
}
|
|
54
|
-
export interface MinParentPluginDTO extends Pick<ParentPluginDTO, 'id' | 'name' | 'icon'
|
|
53
|
+
export interface MinParentPluginDTO extends Pick<ParentPluginDTO, 'id' | 'name' | 'icon'> {
|
|
55
54
|
}
|
|
56
55
|
export interface PluginDetailDTO {
|
|
57
56
|
parentPlugins: ParentPluginDTO[];
|
|
@@ -61,7 +60,6 @@ export interface PluginDetailServiceParamsType {
|
|
|
61
60
|
appId: number;
|
|
62
61
|
pluginIds?: number[];
|
|
63
62
|
parentPluginIds?: number[];
|
|
64
|
-
parentPluginIdentifiers?: string[];
|
|
65
63
|
/**
|
|
66
64
|
* @default true
|
|
67
65
|
*/
|
|
@@ -71,7 +69,6 @@ export interface PluginDetailServiceParamsType {
|
|
|
71
69
|
export interface PluginDetailPayloadType extends Pick<PluginDetailServiceParamsType, 'appId'> {
|
|
72
70
|
pluginId?: PluginDetailServiceParamsType['pluginIds'];
|
|
73
71
|
parentPluginId?: PluginDetailServiceParamsType['parentPluginIds'];
|
|
74
|
-
parentPluginIdentifier?: PluginDetailServiceParamsType['parentPluginIdentifiers'][number];
|
|
75
72
|
}
|
|
76
73
|
export interface PluginListFiltersType extends Pick<BaseFilterQueryParams<unknown>, 'searchKey'> {
|
|
77
74
|
selectedTags: string[];
|
|
@@ -134,5 +134,5 @@ import { SelectPickerProps } from './type';
|
|
|
134
134
|
* />
|
|
135
135
|
* ```
|
|
136
136
|
*/
|
|
137
|
-
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, inputValue, onInputChange, isCreatable, onCreateOption, closeMenuOnSelect,
|
|
137
|
+
declare const SelectPicker: <OptionValue, IsMulti extends boolean>({ error, icon, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, menuPosition, variant, disableDescriptionEllipsis, multiSelectProps, isMulti, name, classNamePrefix, shouldRenderCustomOptions, isSearchable, selectRef, shouldMenuAlignRight, fullWidth, customSelectedOptionsCount, renderMenuListFooter, inputValue, onInputChange, isCreatable, onCreateOption, closeMenuOnSelect, ...props }: SelectPickerProps<OptionValue, IsMulti>) => JSX.Element;
|
|
138
138
|
export default SelectPicker;
|
|
@@ -2,7 +2,7 @@ import { DropdownIndicatorProps, ControlProps, OptionProps, ClearIndicatorProps,
|
|
|
2
2
|
import { SelectPickerGroupHeadingProps, SelectPickerOptionType, SelectPickerProps } from './type';
|
|
3
3
|
export declare const SelectPickerDropdownIndicator: <OptionValue>(props: DropdownIndicatorProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
|
4
4
|
export declare const SelectPickerClearIndicator: <OptionValue>(props: ClearIndicatorProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
|
5
|
-
export declare const SelectPickerControl: <OptionValue>(props: ControlProps<SelectPickerOptionType<OptionValue>>) => JSX.Element;
|
|
5
|
+
export declare const SelectPickerControl: <OptionValue, IsMulti extends boolean>({ icon, showSelectedOptionIcon, ...props }: ControlProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "icon" | "showSelectedOptionIcon">) => JSX.Element;
|
|
6
6
|
export declare const SelectPickerValueContainer: <OptionValue, IsMulti extends boolean>({ showSelectedOptionsCount, customSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "showSelectedOptionsCount" | "customSelectedOptionsCount">) => JSX.Element;
|
|
7
7
|
export declare const SelectPickerLoadingIndicator: () => JSX.Element;
|
|
8
8
|
export declare const SelectPickerOption: <OptionValue, IsMulti extends boolean>({ disableDescriptionEllipsis, ...props }: OptionProps<SelectPickerOptionType<OptionValue>> & Pick<SelectPickerProps<OptionValue, IsMulti>, "disableDescriptionEllipsis">) => JSX.Element;
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import { CSSProperties } from 'react';
|
|
2
|
+
import { SelectPickerProps } from './type';
|
|
3
|
+
export declare const SELECT_PICKER_FONT_SIZE_MAP: Record<SelectPickerProps['size'], CSSProperties['fontSize']>;
|
|
4
|
+
export declare const SELECT_PICKER_ICON_SIZE_MAP: Record<SelectPickerProps['size'], Pick<CSSProperties, 'width' | 'height'>>;
|
|
5
|
+
export declare const SELECT_PICKER_CONTROL_SIZE_MAP: Record<SelectPickerProps['size'], CSSProperties['minHeight']>;
|