@devtron-labs/devtron-fe-common-lib 0.5.0-beta-1 → 0.5.0-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 +0 -3
- package/dist/Common/Types.d.ts +6 -2
- package/dist/Pages/App/AppConfigurations/index.d.ts +1 -0
- package/dist/Pages/App/AppConfigurations/utils.d.ts +2 -0
- package/dist/Pages/{Applications/DevtronApps/Details → App}/index.d.ts +0 -1
- package/dist/Pages/{Applications/DevtronApps/Details/CDPipeline → CDPipeline}/types.d.ts +4 -4
- package/dist/Pages/index.d.ts +2 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -4
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +1 -2
- package/dist/Shared/Components/SelectPicker/type.d.ts +2 -2
- package/dist/Shared/Components/TabGroup/TabGroup.types.d.ts +1 -9
- package/dist/Shared/Components/index.d.ts +0 -1
- package/dist/Shared/Hooks/useForm/useForm.d.ts +26 -29
- package/dist/Shared/Hooks/useForm/useForm.types.d.ts +8 -15
- package/dist/Shared/Hooks/useForm/useForm.utils.d.ts +1 -1
- package/dist/Shared/Services/app.types.d.ts +22 -35
- package/dist/Shared/constants.d.ts +1 -3
- package/dist/Shared/types.d.ts +5 -12
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-CcDx4N1V.js → cssMode-BvJvbKaA.js} +1 -1
- package/dist/{freemarker2-DeqGz2I9.js → freemarker2-C9G7ETHh.js} +1 -1
- package/dist/{handlebars-DqyEZAW0.js → handlebars-C220dYre.js} +1 -1
- package/dist/{html-Dbv5mKnu.js → html-DMWsDYdC.js} +1 -1
- package/dist/{htmlMode-DKIS0Wp1.js → htmlMode-vxi6rcmt.js} +1 -1
- package/dist/{index-Bk95C8WS.js → index-DpTHdQ8I.js} +22619 -22785
- package/dist/index.js +554 -573
- package/dist/{javascript-CcKm78Rp.js → javascript-Cs1fcN1y.js} +1 -1
- package/dist/{jsonMode-D9SaAYqJ.js → jsonMode-ChyGkUIW.js} +1 -1
- package/dist/{liquid-DYLkezXd.js → liquid-s1gUByg2.js} +1 -1
- package/dist/{mdx-B8NW5l-H.js → mdx-hAEnWIBP.js} +1 -1
- package/dist/{python-fSby07Yv.js → python-D6LyLagZ.js} +1 -1
- package/dist/{razor-fivLNmXW.js → razor-CIGtW1vf.js} +1 -1
- package/dist/{tsMode-c6h3SHwD.js → tsMode-DNwZI3lD.js} +1 -1
- package/dist/{typescript-MiiYpzPG.js → typescript-BmntBc8x.js} +1 -1
- package/dist/{xml-DVLT2zo0.js → xml-CBrqQ3DR.js} +1 -1
- package/dist/{yaml-BGAuLRlJ.js → yaml-UA3rVhIU.js} +1 -1
- package/package.json +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/DTApplicationMetricsFormField.d.ts +0 -3
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/constants.d.ts +0 -2
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/index.d.ts +0 -4
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/service.d.ts +0 -4
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +0 -171
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +0 -2
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/constants.d.ts +0 -5
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/index.d.ts +0 -5
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +0 -27
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +0 -2
- package/dist/Pages/Applications/DevtronApps/index.d.ts +0 -1
- package/dist/Pages/Applications/index.d.ts +0 -1
- package/dist/Shared/Components/InvalidYAMLTippy/InvalidYAMLTippyWrapper.d.ts +0 -3
- package/dist/Shared/Components/InvalidYAMLTippy/constants.d.ts +0 -1
- package/dist/Shared/Components/InvalidYAMLTippy/index.d.ts +0 -2
- package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +0 -6
- package/dist/Shared/Components/InvalidYAMLTippy/utils.d.ts +0 -2
- package/dist/Shared/Components/SelectPicker/constants.d.ts +0 -5
- /package/dist/Pages/{Applications/DevtronApps/Details/CDPipeline → CDPipeline}/index.d.ts +0 -0
|
@@ -5,7 +5,6 @@ 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;
|
|
9
8
|
APP_TAGS: string;
|
|
10
9
|
APP_OVERVIEW_TAGS: string;
|
|
11
10
|
BLOB_STORAGE: string;
|
|
@@ -49,7 +48,6 @@ export declare const URLS: {
|
|
|
49
48
|
export declare const ROUTES: {
|
|
50
49
|
APP: string;
|
|
51
50
|
APP_ARTIFACT_PROMOTE_MATERIAL: string;
|
|
52
|
-
APP_TEMPLATE_DATA: string;
|
|
53
51
|
PROJECT_LIST_MIN: string;
|
|
54
52
|
USER_CHECK_ROLE: string;
|
|
55
53
|
IMAGE_TAGGING: string;
|
|
@@ -252,7 +250,6 @@ export declare const API_STATUS_CODES: {
|
|
|
252
250
|
PERMISSION_DENIED: number;
|
|
253
251
|
NOT_FOUND: number;
|
|
254
252
|
EXPECTATION_FAILED: number;
|
|
255
|
-
LOCKED: number;
|
|
256
253
|
};
|
|
257
254
|
export declare enum SERVER_MODE {
|
|
258
255
|
EA_ONLY = "EA_ONLY",
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -661,8 +661,6 @@ export interface AppEnvironment {
|
|
|
661
661
|
isProtected?: boolean;
|
|
662
662
|
pipelineId?: number;
|
|
663
663
|
latestCdWorkflowRunnerId?: number;
|
|
664
|
-
commits?: string[];
|
|
665
|
-
ciArtifactId?: number;
|
|
666
664
|
}
|
|
667
665
|
export interface Strategy {
|
|
668
666
|
deploymentTemplate: string;
|
|
@@ -781,6 +779,12 @@ export interface CiPipeline {
|
|
|
781
779
|
isOffendingMandatoryPlugin?: boolean;
|
|
782
780
|
pipelineType?: string;
|
|
783
781
|
}
|
|
782
|
+
export interface DeploymentChartVersionType {
|
|
783
|
+
chartRefId: number;
|
|
784
|
+
chartVersion: string;
|
|
785
|
+
chartType: string;
|
|
786
|
+
type: number;
|
|
787
|
+
}
|
|
784
788
|
export interface ChartVersionAndTypeSelectorProps {
|
|
785
789
|
setSelectedChartRefId: React.Dispatch<React.SetStateAction<number>>;
|
|
786
790
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { getDeploymentStageTitle } from './utils';
|
|
@@ -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;
|
package/dist/Pages/index.d.ts
CHANGED
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, sortOrder, }: DeploymentTemplateHistoryType) => JSX.Element;
|
|
3
3
|
export default DeploymentHistoryDiffView;
|
|
@@ -394,10 +394,7 @@ export interface DeploymentTemplateHistoryType {
|
|
|
394
394
|
isDeleteDraft?: boolean;
|
|
395
395
|
rootClassName?: string;
|
|
396
396
|
comparisonBodyClassName?: string;
|
|
397
|
-
|
|
398
|
-
sortBy: string;
|
|
399
|
-
sortOrder: SortingOrder;
|
|
400
|
-
};
|
|
397
|
+
sortOrder?: SortingOrder;
|
|
401
398
|
}
|
|
402
399
|
export interface DeploymentHistoryDetailRes extends ResponseType {
|
|
403
400
|
result?: DeploymentHistoryDetail;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { SortingOrder } from '../../../Common/Constants';
|
|
2
|
-
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType } from '../../Services';
|
|
3
|
-
import { ManifestTemplateDTO } from '../../../Pages/Applications';
|
|
2
|
+
import { AppEnvDeploymentConfigDTO, ConfigMapSecretDataConfigDatumDTO, DeploymentTemplateDTO, EnvResourceType, ManifestTemplateDTO } from '../../Services';
|
|
4
3
|
import { DeploymentHistoryDetail } from '../CICDHistory';
|
|
5
4
|
import { CollapsibleListConfig, CollapsibleListItem } from '../CollapsibleList';
|
|
6
5
|
import { SelectPickerProps } from '../SelectPicker';
|
|
@@ -74,11 +74,11 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
|
|
|
74
74
|
*/
|
|
75
75
|
customSelectedOptionsCount?: number;
|
|
76
76
|
/**
|
|
77
|
-
*
|
|
77
|
+
* Height of the dropdown
|
|
78
78
|
*
|
|
79
79
|
* @default 'ComponentSizeType.medium'
|
|
80
80
|
*/
|
|
81
|
-
size?: Extract<ComponentSizeType, ComponentSizeType.medium | ComponentSizeType.large
|
|
81
|
+
size?: Extract<ComponentSizeType, ComponentSizeType.medium | ComponentSizeType.large>;
|
|
82
82
|
/**
|
|
83
83
|
* Content to be shown in a tippy when disabled
|
|
84
84
|
*/
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
import { LinkProps, NavLinkProps } from 'react-router-dom';
|
|
2
2
|
import { ComponentSizeType } from '../../constants';
|
|
3
3
|
import { DataAttributes } from '../../types';
|
|
4
|
-
import { TooltipProps } from '@Common/Tooltip/types';
|
|
5
4
|
type TabComponentProps<TabTypeProps> = TabTypeProps & DataAttributes;
|
|
6
5
|
type ConditionalTabType = {
|
|
7
6
|
/**
|
|
@@ -57,13 +56,6 @@ type ConditionalTabType = {
|
|
|
57
56
|
*/
|
|
58
57
|
active?: never | false;
|
|
59
58
|
};
|
|
60
|
-
type TabTooltipProps = {
|
|
61
|
-
shouldWrapTooltip: boolean;
|
|
62
|
-
tooltipProps: TooltipProps;
|
|
63
|
-
} | {
|
|
64
|
-
shouldWrapTooltip?: never;
|
|
65
|
-
tooltipProps?: never;
|
|
66
|
-
};
|
|
67
59
|
export type TabProps = {
|
|
68
60
|
/**
|
|
69
61
|
* Unique identifier for the tab.
|
|
@@ -105,7 +97,7 @@ export type TabProps = {
|
|
|
105
97
|
* Disables the tab, preventing interaction and indicating an inactive state.
|
|
106
98
|
*/
|
|
107
99
|
disabled?: boolean;
|
|
108
|
-
} & ConditionalTabType
|
|
100
|
+
} & ConditionalTabType;
|
|
109
101
|
export interface TabGroupProps {
|
|
110
102
|
/**
|
|
111
103
|
* Array of tabs to be rendered.
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { UseFormSubmitHandler, UseFormValidations
|
|
1
|
+
import { ChangeEvent, FormEvent } from 'react';
|
|
2
|
+
import { UseFormSubmitHandler, UseFormValidations } from './useForm.types';
|
|
3
3
|
/**
|
|
4
4
|
* A custom hook to manage form state, validation, and submission handling.
|
|
5
5
|
*
|
|
@@ -16,19 +16,20 @@ export declare const useForm: <T extends Record<keyof T, any> = {}>(options?: {
|
|
|
16
16
|
* - 'onBlur': Validation occurs when the input loses focus.
|
|
17
17
|
* @default 'onChange'
|
|
18
18
|
*/
|
|
19
|
-
validationMode?: "onChange" | "onBlur"
|
|
19
|
+
validationMode?: "onChange" | "onBlur";
|
|
20
20
|
}) => {
|
|
21
21
|
/** The current form data. */
|
|
22
22
|
data: T;
|
|
23
23
|
/** An object containing validation errors for each form field. */
|
|
24
|
-
errors: Partial<Record<keyof T, string[]>>;
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
24
|
+
errors: Partial<Record<keyof T, string | string[]>>;
|
|
25
|
+
/**
|
|
26
|
+
* Registers form input fields with onChange, onBlur and onFocus handlers.
|
|
27
|
+
*
|
|
28
|
+
* @param name - The key of the form field to register.
|
|
29
|
+
* @param sanitizeFn - An optional function to sanitize the input value.
|
|
30
|
+
* @returns An object containing form field `name`, `onChange`, `onBlur` and `onFocus` event handlers.
|
|
31
|
+
*/
|
|
32
|
+
register: <V extends unknown = string, S extends unknown = unknown>(name: keyof T, sanitizeFn?: (value: V) => S, registerOptions?: {
|
|
32
33
|
/**
|
|
33
34
|
* Prevents the input value from being trimmed.
|
|
34
35
|
*
|
|
@@ -38,30 +39,26 @@ export declare const useForm: <T extends Record<keyof T, any> = {}>(options?: {
|
|
|
38
39
|
* @default false - By default, the input will be trimmed.
|
|
39
40
|
*/
|
|
40
41
|
noTrim?: boolean;
|
|
41
|
-
/** A boolean flag indicating if the input is a custom component. */
|
|
42
|
-
isCustomComponent?: CustomComponent;
|
|
43
42
|
}) => {
|
|
44
|
-
onChange: (e:
|
|
43
|
+
onChange: (e: ChangeEvent<HTMLInputElement>) => void;
|
|
45
44
|
onBlur: () => void;
|
|
46
45
|
onFocus: () => void;
|
|
47
46
|
name: keyof T;
|
|
48
47
|
};
|
|
49
|
-
|
|
48
|
+
/**
|
|
49
|
+
* Handles form submission, validates all form fields, and calls the provided `onValid` function if valid.
|
|
50
|
+
*
|
|
51
|
+
* @param onValid - A function to handle valid form data on submission.
|
|
52
|
+
* @returns The event handler for form submission.
|
|
53
|
+
*/
|
|
54
|
+
handleSubmit: (onValid: UseFormSubmitHandler<T>) => (e: FormEvent<HTMLFormElement>) => void;
|
|
55
|
+
/**
|
|
56
|
+
* Manually triggers validation for specific form fields.
|
|
57
|
+
*
|
|
58
|
+
* @param name - The key(s) of the form field(s) to validate.
|
|
59
|
+
* @returns The validation error(s), if any.
|
|
60
|
+
*/
|
|
50
61
|
trigger: (name: keyof T | (keyof T)[]) => (string | string[]) | (string | string[])[];
|
|
51
|
-
setValue: (name: keyof T, value: T[keyof T], valueOptions?: {
|
|
52
|
-
/** A boolean indicating whether to mark the field as dirty after setting the value. */
|
|
53
|
-
shouldDirty?: boolean;
|
|
54
|
-
/** A boolean indicating whether to mark the field as touched after setting the value. */
|
|
55
|
-
shouldTouch?: boolean;
|
|
56
|
-
}) => void;
|
|
57
|
-
reset: (formData: T, resetOptions?: {
|
|
58
|
-
/** A boolean indicating whether to retain the current dirty state of the form fields. */
|
|
59
|
-
keepDirty?: boolean;
|
|
60
|
-
/** A boolean indicating whether to retain the current touched state of the form fields. */
|
|
61
|
-
keepTouched?: boolean;
|
|
62
|
-
/** A boolean indicating whether to retain the current error state of the form fields. */
|
|
63
|
-
keepErrors?: boolean;
|
|
64
|
-
}) => void;
|
|
65
62
|
/** An object representing additional form state. */
|
|
66
63
|
formState: {
|
|
67
64
|
/** An object indicating which fields have been touched (interacted with). */
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { FormEvent } from 'react';
|
|
2
2
|
/**
|
|
3
3
|
* Describes the "required" validation rule.
|
|
4
4
|
* It can be a simple boolean or an object containing a boolean value and an error message.
|
|
@@ -24,10 +24,10 @@ type ValidationPattern = {
|
|
|
24
24
|
* If validation fails, an error message is provided.
|
|
25
25
|
*/
|
|
26
26
|
type ValidationCustom = {
|
|
27
|
-
isValid: (value:
|
|
27
|
+
isValid: (value: string) => boolean;
|
|
28
28
|
message: string;
|
|
29
29
|
} | {
|
|
30
|
-
isValid: (value:
|
|
30
|
+
isValid: (value: string) => boolean;
|
|
31
31
|
message: string;
|
|
32
32
|
}[];
|
|
33
33
|
/**
|
|
@@ -41,9 +41,9 @@ export interface UseFormValidation {
|
|
|
41
41
|
}
|
|
42
42
|
/**
|
|
43
43
|
* Represents the structure for form validation errors.
|
|
44
|
-
* Maps each field to an array of error messages.
|
|
44
|
+
* Maps each field to an error message or an array of error messages.
|
|
45
45
|
*/
|
|
46
|
-
export type UseFormErrors<T> = Partial<Record<keyof T, string[]>>;
|
|
46
|
+
export type UseFormErrors<T> = Partial<Record<keyof T, string | string[]>>;
|
|
47
47
|
/**
|
|
48
48
|
* Represents the fields that have been modified ("dirty") in the form.
|
|
49
49
|
* Maps each field to a boolean value indicating whether it has been changed.
|
|
@@ -58,19 +58,12 @@ export type TouchedFields<T> = Partial<Record<keyof T, boolean>>;
|
|
|
58
58
|
* Defines the structure for form validations.
|
|
59
59
|
* Maps each form field to its corresponding validation rules.
|
|
60
60
|
*/
|
|
61
|
-
export type UseFormValidations<T extends {}> =
|
|
61
|
+
export type UseFormValidations<T extends {}> = Partial<Record<keyof T, UseFormValidation>>;
|
|
62
62
|
/**
|
|
63
63
|
* Describes the function signature for handling form submission.
|
|
64
64
|
*
|
|
65
65
|
* @param data - The form data collected during submission.
|
|
66
|
-
* @param e - The event, optionally passed when
|
|
66
|
+
* @param e - The form event, optionally passed when the form is submitted.
|
|
67
67
|
*/
|
|
68
|
-
export type UseFormSubmitHandler<T extends {}> = (data: T, e?:
|
|
69
|
-
/**
|
|
70
|
-
* A type defining the function signature for handling form validation errors.
|
|
71
|
-
*
|
|
72
|
-
* @param errors - An object containing the validation errors for form fields.
|
|
73
|
-
* @param e - The event, optionally passed when `handleSubmit` is called.
|
|
74
|
-
*/
|
|
75
|
-
export type UseFormErrorHandler<T extends {}> = (errors: UseFormErrors<T>, e?: BaseSyntheticEvent) => void;
|
|
68
|
+
export type UseFormSubmitHandler<T extends {}> = (data: T, e?: FormEvent<HTMLFormElement>) => void;
|
|
76
69
|
export {};
|
|
@@ -7,4 +7,4 @@ import { UseFormValidation } from './useForm.types';
|
|
|
7
7
|
* @param validation - The validation rules for the form field.
|
|
8
8
|
* @returns Returns error message(s) or null if valid.
|
|
9
9
|
*/
|
|
10
|
-
export declare const checkValidation: <T extends Record<keyof T, any> = {}>(value: T[keyof T], validation: UseFormValidation) => string[] | null;
|
|
10
|
+
export declare const checkValidation: <T extends Record<keyof T, any> = {}>(value: T[keyof T], validation: UseFormValidation) => string | string[] | null;
|
|
@@ -99,23 +99,12 @@ export declare enum AppEnvDeploymentConfigType {
|
|
|
99
99
|
PREVIOUS_DEPLOYMENTS = "PreviousDeployments",
|
|
100
100
|
DEFAULT_VERSION = "DefaultVersion"
|
|
101
101
|
}
|
|
102
|
-
export declare enum DraftState {
|
|
103
|
-
Init = 1,
|
|
104
|
-
Discarded = 2,
|
|
105
|
-
Published = 3,
|
|
106
|
-
AwaitApproval = 4
|
|
107
|
-
}
|
|
108
|
-
export declare enum DraftAction {
|
|
109
|
-
Add = 1,
|
|
110
|
-
Update = 2,
|
|
111
|
-
Delete = 3
|
|
112
|
-
}
|
|
113
102
|
export interface DraftMetadataDTO {
|
|
114
103
|
appId: number;
|
|
115
104
|
envId: number;
|
|
116
105
|
resource: number;
|
|
117
106
|
resourceName: string;
|
|
118
|
-
action:
|
|
107
|
+
action: number;
|
|
119
108
|
data: string;
|
|
120
109
|
userComment: string;
|
|
121
110
|
changeProposed: boolean;
|
|
@@ -124,44 +113,31 @@ export interface DraftMetadataDTO {
|
|
|
124
113
|
};
|
|
125
114
|
draftId: number;
|
|
126
115
|
draftVersionId: number;
|
|
127
|
-
draftState:
|
|
116
|
+
draftState: number;
|
|
128
117
|
approvers: string[];
|
|
129
118
|
canApprove: boolean;
|
|
130
119
|
commentsCount: number;
|
|
131
120
|
dataEncrypted: boolean;
|
|
132
121
|
isAppAdmin: boolean;
|
|
133
122
|
}
|
|
134
|
-
export declare enum CMSecretExternalType {
|
|
135
|
-
Internal = "",
|
|
136
|
-
KubernetesConfigMap = "KubernetesConfigMap",
|
|
137
|
-
KubernetesSecret = "KubernetesSecret",
|
|
138
|
-
AWSSecretsManager = "AWSSecretsManager",
|
|
139
|
-
AWSSystemManager = "AWSSystemManager",
|
|
140
|
-
HashiCorpVault = "HashiCorpVault",
|
|
141
|
-
ESO_GoogleSecretsManager = "ESO_GoogleSecretsManager",
|
|
142
|
-
ESO_AWSSecretsManager = "ESO_AWSSecretsManager",
|
|
143
|
-
ESO_AzureSecretsManager = "ESO_AzureSecretsManager",
|
|
144
|
-
ESO_HashiCorpVault = "ESO_HashiCorpVault"
|
|
145
|
-
}
|
|
146
123
|
export interface ConfigDatum {
|
|
147
124
|
name: string;
|
|
148
125
|
type: string;
|
|
149
126
|
external: boolean;
|
|
150
|
-
data: Record<string,
|
|
151
|
-
defaultData: Record<string,
|
|
127
|
+
data: Record<string, string>;
|
|
128
|
+
defaultData: Record<string, string>;
|
|
152
129
|
global: boolean;
|
|
153
|
-
externalType:
|
|
154
|
-
esoSecretData:
|
|
155
|
-
defaultESOSecretData:
|
|
156
|
-
secretData: Record<string,
|
|
157
|
-
defaultSecretData: Record<string,
|
|
130
|
+
externalType: string;
|
|
131
|
+
esoSecretData: {};
|
|
132
|
+
defaultESOSecretData: {};
|
|
133
|
+
secretData: Record<string, string>;
|
|
134
|
+
defaultSecretData: Record<string, string>;
|
|
158
135
|
roleARN: string;
|
|
159
136
|
subPath: boolean;
|
|
160
137
|
filePermission: string;
|
|
161
138
|
overridden: boolean;
|
|
162
|
-
mountPath
|
|
163
|
-
defaultMountPath
|
|
164
|
-
esoSubPath: string[];
|
|
139
|
+
mountPath?: string;
|
|
140
|
+
defaultMountPath?: string;
|
|
165
141
|
}
|
|
166
142
|
export interface ConfigMapSecretDataConfigDatumDTO extends ConfigDatum {
|
|
167
143
|
draftMetadata: DraftMetadataDTO;
|
|
@@ -221,6 +197,17 @@ export interface TemplateListDTO {
|
|
|
221
197
|
status?: string;
|
|
222
198
|
pipelineId?: number;
|
|
223
199
|
}
|
|
200
|
+
export interface ManifestTemplateDTO {
|
|
201
|
+
data: string;
|
|
202
|
+
resolvedData: string;
|
|
203
|
+
variableSnapshot: null;
|
|
204
|
+
}
|
|
205
|
+
export declare enum DraftState {
|
|
206
|
+
Init = 1,
|
|
207
|
+
Discarded = 2,
|
|
208
|
+
Published = 3,
|
|
209
|
+
AwaitApproval = 4
|
|
210
|
+
}
|
|
224
211
|
export declare enum EnvResourceType {
|
|
225
212
|
ConfigMap = "configmap",
|
|
226
213
|
Secret = "secrets",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { OptionType } from '../Common/Types';
|
|
2
|
-
import { CDMaterialSidebarType
|
|
2
|
+
import { CDMaterialSidebarType } from './types';
|
|
3
3
|
export declare const ARTIFACT_STATUS: {
|
|
4
4
|
PROGRESSING: string;
|
|
5
5
|
DEGRADED: string;
|
|
@@ -411,5 +411,3 @@ export declare enum SelectAllGroupedResourceIdentifiers {
|
|
|
411
411
|
}
|
|
412
412
|
export declare const CD_MATERIAL_SIDEBAR_TABS: OptionType<CDMaterialSidebarType, CDMaterialSidebarType>[];
|
|
413
413
|
export declare const TRIGGER_STATUS_PROGRESSING: string[];
|
|
414
|
-
export declare const CONFIGURATION_TYPE_VALUES: ConfigurationType[];
|
|
415
|
-
export declare const DEFAULT_LOCKED_KEYS_CONFIG: Readonly<ConfigKeysWithLockType>;
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -572,18 +572,6 @@ export type BaseFilterQueryParams<T> = {
|
|
|
572
572
|
*/
|
|
573
573
|
showAll?: boolean;
|
|
574
574
|
} & SortingParams<T>;
|
|
575
|
-
export declare enum ConfigurationType {
|
|
576
|
-
GUI = "GUI",
|
|
577
|
-
YAML = "YAML"
|
|
578
|
-
}
|
|
579
|
-
export interface BaseURLParams {
|
|
580
|
-
appId: string;
|
|
581
|
-
envId: string;
|
|
582
|
-
}
|
|
583
|
-
export interface ConfigKeysWithLockType {
|
|
584
|
-
config: string[];
|
|
585
|
-
allowed: boolean;
|
|
586
|
-
}
|
|
587
575
|
export type DataAttributes = Record<`data-${string}`, unknown>;
|
|
588
576
|
export interface RuntimeParamsListItemType extends KeyValueListType {
|
|
589
577
|
id: number;
|
|
@@ -592,4 +580,9 @@ export declare enum RuntimeParamsHeadingType {
|
|
|
592
580
|
KEY = "key",
|
|
593
581
|
VALUE = "value"
|
|
594
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
|
+
}
|
|
595
588
|
export {};
|