@devtron-labs/devtron-fe-common-lib 1.1.7-beta-7 → 1.1.7-beta-9
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/CodeEditor/CodeEditor.reducer.d.ts +2 -1
- package/dist/Common/CodeEditor/types.d.ts +2 -1
- package/dist/Common/Constants.d.ts +2 -1
- package/dist/Common/CustomTagSelector/ResizableTagTextArea.d.ts +1 -1
- package/dist/Common/CustomTagSelector/Types.d.ts +14 -19
- package/dist/Common/Helper.d.ts +1 -1
- package/dist/Common/Markdown/MarkDown.d.ts +1 -1
- package/dist/Common/RJSF/index.d.ts +1 -1
- package/dist/Common/Types.d.ts +1 -2
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/index.d.ts +2 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/types.d.ts +2 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/GUIView/utils.d.ts +6 -0
- package/dist/Pages/App/AppConfiguration/DeploymentTemplate/index.d.ts +1 -0
- package/dist/Pages/App/AppConfiguration/index.d.ts +1 -0
- package/dist/Pages/App/index.d.ts +1 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +21 -3
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/OverrideStrategyTippyContent.d.ts +2 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +7 -0
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/utils.d.ts +1 -1
- package/dist/Pages/index.d.ts +1 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +6 -0
- package/dist/Shared/Components/EnterpriseTag/EnterpriseTag.component.d.ts +2 -0
- package/dist/Shared/Components/EnterpriseTag/index.d.ts +1 -0
- package/dist/Shared/Components/SelectPicker/type.d.ts +4 -5
- package/dist/Shared/Components/index.d.ts +1 -1
- package/dist/Shared/Helpers.d.ts +5 -3
- package/dist/Shared/Hooks/useForm/useForm.d.ts +4 -0
- package/dist/Shared/Services/app.types.d.ts +4 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-DR41Vs9u.js → cssMode-BuITDEJ0.js} +1 -1
- package/dist/{freemarker2-qI-COfgJ.js → freemarker2-CITYscgU.js} +1 -1
- package/dist/{handlebars-ChT5Qivn.js → handlebars-Dc7MQ59S.js} +1 -1
- package/dist/{html-BVx8Du2s.js → html-vgoFjs0J.js} +1 -1
- package/dist/{htmlMode-BylNH3c2.js → htmlMode-Hjojbk5I.js} +1 -1
- package/dist/{index-DiUOKeIr.js → index-DRABJq8n.js} +24334 -24677
- package/dist/index.d.ts +2 -0
- package/dist/index.js +263 -262
- package/dist/{javascript-BgzIa-XV.js → javascript-BDbvTEwg.js} +1 -1
- package/dist/{jsonMode-CN9UCyxm.js → jsonMode-B9HFzY-m.js} +1 -1
- package/dist/{liquid-tJ7LBm7L.js → liquid-w7BKRkoX.js} +1 -1
- package/dist/{mdx-C5A_JAiu.js → mdx-CAIHkgxx.js} +1 -1
- package/dist/{python-BPI41TrJ.js → python-B2ivqXVk.js} +1 -1
- package/dist/{razor-DTI2Ahhg.js → razor-3xfm1RfB.js} +1 -1
- package/dist/{tsMode-CO-FB3My.js → tsMode-bsw6ih_t.js} +1 -1
- package/dist/{typescript-DTzVXLHu.js → typescript-BdTJAEbE.js} +1 -1
- package/dist/{xml-CcV89e0f.js → xml-OhEX2yHX.js} +1 -1
- package/dist/{yaml-DioGOZ10.js → yaml-Dlu34q0W.js} +1 -1
- package/package.json +1 -1
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTable.d.ts +0 -2
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTableHeader.d.ts +0 -2
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTableRow.d.ts +0 -2
- package/dist/Shared/Components/DynamicDataTable/index.d.ts +0 -2
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +0 -182
- package/dist/Shared/Components/DynamicDataTable/utils.d.ts +0 -5
- package/dist/Shared/Components/SelectTextArea/SelectTextArea.d.ts +0 -2
- package/dist/Shared/Components/SelectTextArea/index.d.ts +0 -2
- package/dist/Shared/Components/SelectTextArea/types.d.ts +0 -12
|
@@ -32,4 +32,5 @@ export declare const CodeEditorReducer: (state: CodeEditorState, action: Action)
|
|
|
32
32
|
code: string;
|
|
33
33
|
noParsing: boolean;
|
|
34
34
|
};
|
|
35
|
-
export declare const
|
|
35
|
+
export declare const parseValueToCode: (value: string, mode: string, tabSize: number) => string;
|
|
36
|
+
export declare const initialState: ({ mode, theme, value, diffView, noParsing, tabSize, }: CodeEditorInitialValueType) => CodeEditorState;
|
|
@@ -28,7 +28,7 @@ interface CodeEditorBaseInterface {
|
|
|
28
28
|
validatorSchema?: any;
|
|
29
29
|
isKubernetes?: boolean;
|
|
30
30
|
cleanData?: boolean;
|
|
31
|
-
|
|
31
|
+
schemaURI?: string;
|
|
32
32
|
/**
|
|
33
33
|
* If true, disable the in-built search of monaco editor
|
|
34
34
|
* @default false
|
|
@@ -81,6 +81,7 @@ export interface CodeEditorInitialValueType {
|
|
|
81
81
|
theme?: string;
|
|
82
82
|
value: string;
|
|
83
83
|
noParsing?: boolean;
|
|
84
|
+
tabSize: number;
|
|
84
85
|
}
|
|
85
86
|
export interface CodeEditorState {
|
|
86
87
|
mode: MODES;
|
|
@@ -4,6 +4,7 @@ export declare const Host: string;
|
|
|
4
4
|
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
|
+
export declare const DEFAULT_JSON_SCHEMA_URI = "https://json-schema.org/draft/2020-12/schema";
|
|
7
8
|
export declare const DOCUMENTATION: {
|
|
8
9
|
APP_METRICS: string;
|
|
9
10
|
APP_TAGS: string;
|
|
@@ -12,7 +13,6 @@ export declare const DOCUMENTATION: {
|
|
|
12
13
|
GLOBAL_CONFIG_BUILD_INFRA: string;
|
|
13
14
|
};
|
|
14
15
|
export declare const PATTERNS: {
|
|
15
|
-
STRING: RegExp;
|
|
16
16
|
KUBERNETES_KEY_PREFIX: RegExp;
|
|
17
17
|
KUBERNETES_KEY_NAME: RegExp;
|
|
18
18
|
START_END_ALPHANUMERIC: RegExp;
|
|
@@ -258,6 +258,7 @@ export declare const API_STATUS_CODES: {
|
|
|
258
258
|
EXPECTATION_FAILED: number;
|
|
259
259
|
UNPROCESSABLE_ENTITY: number;
|
|
260
260
|
LOCKED: number;
|
|
261
|
+
UNPROCESSABLE_CONTENT: number;
|
|
261
262
|
};
|
|
262
263
|
export declare enum SERVER_MODE {
|
|
263
264
|
EA_ONLY = "EA_ONLY",
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { ResizableTagTextAreaProps } from './Types';
|
|
2
|
-
export declare const ResizableTagTextArea: ({
|
|
2
|
+
export declare const ResizableTagTextArea: ({ className, minHeight, maxHeight, value, onChange, onBlur, onFocus, placeholder, tabIndex, refVar, dependentRef, dataTestId, handleKeyDown, disabled, disableOnBlurResizeToMinHeight, }: ResizableTagTextAreaProps) => JSX.Element;
|
|
@@ -1,20 +1,9 @@
|
|
|
1
|
-
import { DetailedHTMLProps, MutableRefObject, TextareaHTMLAttributes } from 'react';
|
|
2
1
|
import { KEY_VALUE } from '../Constants';
|
|
3
2
|
import { OptionType } from '../Types';
|
|
4
3
|
export interface SuggestedTagOptionType extends OptionType {
|
|
5
4
|
description: string;
|
|
6
5
|
propagate: boolean;
|
|
7
6
|
}
|
|
8
|
-
export declare enum DeploymentPolicy {
|
|
9
|
-
ALLOW = "allow",
|
|
10
|
-
BLOCK = "block",
|
|
11
|
-
BLOCK_PROD = "block-prod",
|
|
12
|
-
BLOCK_NON_PROD = "block-non-prod"
|
|
13
|
-
}
|
|
14
|
-
export interface VariableValueConstraintTypes {
|
|
15
|
-
choices?: string[];
|
|
16
|
-
blockCustomValue?: boolean;
|
|
17
|
-
}
|
|
18
7
|
export interface TagType {
|
|
19
8
|
id?: number;
|
|
20
9
|
key: string;
|
|
@@ -26,8 +15,6 @@ export interface TagType {
|
|
|
26
15
|
isInvalidValue?: boolean;
|
|
27
16
|
isSuggested?: boolean;
|
|
28
17
|
isPropagateDisabled?: boolean;
|
|
29
|
-
deploymentPolicy?: DeploymentPolicy;
|
|
30
|
-
valueConstraint?: VariableValueConstraintTypes;
|
|
31
18
|
}
|
|
32
19
|
export interface TagErrorType {
|
|
33
20
|
isValid: boolean;
|
|
@@ -61,16 +48,24 @@ export interface TagLabelValueSelectorType {
|
|
|
61
48
|
tagInputType?: KEY_VALUE;
|
|
62
49
|
placeholder?: string;
|
|
63
50
|
tabIndex?: number;
|
|
64
|
-
refVar?: MutableRefObject<HTMLTextAreaElement>;
|
|
65
|
-
dependentRef?: MutableRefObject<HTMLTextAreaElement>;
|
|
51
|
+
refVar?: React.MutableRefObject<HTMLTextAreaElement>;
|
|
52
|
+
dependentRef?: React.MutableRefObject<HTMLTextAreaElement>;
|
|
66
53
|
noBackDrop?: boolean;
|
|
67
54
|
}
|
|
68
|
-
export interface ResizableTagTextAreaProps
|
|
55
|
+
export interface ResizableTagTextAreaProps {
|
|
56
|
+
className?: string;
|
|
69
57
|
minHeight?: number;
|
|
70
58
|
maxHeight?: number;
|
|
71
|
-
value
|
|
72
|
-
|
|
73
|
-
|
|
59
|
+
value?: string;
|
|
60
|
+
onChange?: (e: any) => void;
|
|
61
|
+
onBlur?: (e: any) => void;
|
|
62
|
+
onFocus?: (e: any) => void;
|
|
63
|
+
placeholder?: string;
|
|
64
|
+
tabIndex?: number;
|
|
65
|
+
refVar?: React.MutableRefObject<HTMLTextAreaElement>;
|
|
66
|
+
dependentRef?: React.MutableRefObject<HTMLTextAreaElement>;
|
|
74
67
|
dataTestId?: string;
|
|
68
|
+
handleKeyDown?: any;
|
|
69
|
+
disabled?: boolean;
|
|
75
70
|
disableOnBlurResizeToMinHeight?: boolean;
|
|
76
71
|
}
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -89,7 +89,7 @@ export declare const getRegexMatchPositions: (string: string, regex: RegExp) =>
|
|
|
89
89
|
export declare const powerSetOfSubstringsFromStart: (strings: string[], regex: RegExp) => string[];
|
|
90
90
|
export declare const convertJSONPointerToJSONPath: (pointer: string) => string;
|
|
91
91
|
export declare const flatMapOfJSONPaths: (paths: string[], json: object, resultType?: JSONPathOptions["resultType"]) => string[];
|
|
92
|
-
export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) =>
|
|
92
|
+
export declare const applyCompareDiffOnUneditedDocument: (uneditedDocument: object, editedDocument: object) => any;
|
|
93
93
|
/**
|
|
94
94
|
* Returns a debounced variant of the function
|
|
95
95
|
*/
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
import { MarkDownProps } from './Types';
|
|
2
|
-
declare const MarkDown: ({ setExpandableIcon, markdown, className, breaks, disableEscapedText, ...props }: MarkDownProps) => JSX.Element;
|
|
2
|
+
declare const MarkDown: ({ setExpandableIcon, markdown: markdownProp, className, breaks, disableEscapedText, ...props }: MarkDownProps) => JSX.Element;
|
|
3
3
|
export default MarkDown;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObject } from 'react';
|
|
2
|
-
import { TippyProps } from '@tippyjs/react';
|
|
3
2
|
import { Placement } from 'tippy.js';
|
|
4
3
|
import { UserGroupDTO } from '../Pages/GlobalConfigurations';
|
|
5
4
|
import { ImageComment, ReleaseTag } from './ImageTags.Types';
|
|
@@ -66,7 +65,7 @@ export interface CheckboxProps {
|
|
|
66
65
|
id?: string;
|
|
67
66
|
dataTestId?: string;
|
|
68
67
|
}
|
|
69
|
-
export interface TippyCustomizedProps
|
|
68
|
+
export interface TippyCustomizedProps {
|
|
70
69
|
theme: TippyTheme;
|
|
71
70
|
visible?: boolean;
|
|
72
71
|
heading?: ReactNode | string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './GUIView';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './DeploymentTemplate';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './AppConfiguration';
|
package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { DraftMetadataDTO, TemplateListType } from '../../../../../../Shared/Services';
|
|
2
|
+
import { ServerErrors } from '../../../../../../Common/ServerError';
|
|
2
3
|
import { OverrideMergeStrategyType } from '../types';
|
|
3
4
|
export type DeploymentChartOptionkind = 'base' | 'env' | 'chartVersion' | 'deployment';
|
|
4
5
|
export interface DeploymentChartVersionType {
|
|
@@ -108,15 +109,15 @@ interface BaseDeploymentTemplateConfigState {
|
|
|
108
109
|
environmentConfig?: never;
|
|
109
110
|
mergeStrategy?: never;
|
|
110
111
|
}
|
|
111
|
-
|
|
112
|
+
type EnvironmentOverrideDeploymentTemplateConfigState = {
|
|
112
113
|
chartConfig?: never;
|
|
113
114
|
isOverridden: boolean;
|
|
114
115
|
environmentConfig: EnvironmentConfigType;
|
|
115
116
|
mergeStrategy: OverrideMergeStrategyType;
|
|
116
|
-
}
|
|
117
|
+
};
|
|
117
118
|
export interface DeploymentTemplateConfigCommonState extends SelectedChartDetailsType {
|
|
118
119
|
/**
|
|
119
|
-
* The first ever state of the deployment template
|
|
120
|
+
* The first ever state of the deployment template on editor
|
|
120
121
|
*/
|
|
121
122
|
originalTemplate: Record<string, string>;
|
|
122
123
|
isAppMetricsEnabled: boolean;
|
|
@@ -126,6 +127,23 @@ export interface DeploymentTemplateConfigCommonState extends SelectedChartDetail
|
|
|
126
127
|
latestDraft?: DraftMetadataDTO;
|
|
127
128
|
editorTemplate: string;
|
|
128
129
|
editorTemplateWithoutLockedKeys: string;
|
|
130
|
+
/**
|
|
131
|
+
* This final template to be applied on the deployment in string format
|
|
132
|
+
* In current editor, this may be null initially
|
|
133
|
+
*/
|
|
134
|
+
mergedTemplate: string | null;
|
|
135
|
+
/**
|
|
136
|
+
* This final template to be applied on the deployment without locked keys in string format
|
|
137
|
+
* In current editor, this may be null initially
|
|
138
|
+
*/
|
|
139
|
+
mergedTemplateWithoutLockedKeys: string | null;
|
|
140
|
+
/**
|
|
141
|
+
* This final template to be applied on the deployment in object format
|
|
142
|
+
* In current editor, this may be null initially
|
|
143
|
+
*/
|
|
144
|
+
mergedTemplateObject: Record<string, string> | null;
|
|
145
|
+
isLoadingMergedTemplate: boolean;
|
|
146
|
+
mergedTemplateError: ServerErrors | null;
|
|
129
147
|
}
|
|
130
148
|
export type DeploymentTemplateConfigState = DeploymentTemplateConfigCommonState & (BaseDeploymentTemplateConfigState | EnvironmentOverrideDeploymentTemplateConfigState);
|
|
131
149
|
type DTApplicationMetricsReadOnlyProps = {
|
|
@@ -1,2 +1,3 @@
|
|
|
1
|
-
|
|
1
|
+
import { OverrideStrategyTippyContentProps } from './types';
|
|
2
|
+
declare const OverrideStrategyTippyContent: ({ children }: OverrideStrategyTippyContentProps) => JSX.Element;
|
|
2
3
|
export default OverrideStrategyTippyContent;
|
|
@@ -20,8 +20,15 @@ export interface ConfigToolbarPopupMenuConfigType {
|
|
|
20
20
|
disabled?: boolean;
|
|
21
21
|
icon?: ReactNode | null;
|
|
22
22
|
variant?: 'default' | 'negative';
|
|
23
|
+
tooltipText?: string;
|
|
23
24
|
}
|
|
24
25
|
export declare enum ConfigToolbarPopupNodeType {
|
|
25
26
|
DISCARD_DRAFT = "discardDraft",
|
|
26
27
|
EDIT_HISTORY = "editHistory"
|
|
27
28
|
}
|
|
29
|
+
export interface OverrideStrategyTippyContentProps {
|
|
30
|
+
/**
|
|
31
|
+
* Would be rendered as li conveying the information about the merge strategy
|
|
32
|
+
*/
|
|
33
|
+
children?: ReactNode;
|
|
34
|
+
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { DeploymentStageType } from '../../../../../Shared/constants';
|
|
2
|
-
export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "
|
|
2
|
+
export declare const getDeploymentStageTitle: (stage: DeploymentStageType) => "-" | "pre-deployment" | "post-deployment" | "deployment";
|
package/dist/Pages/index.d.ts
CHANGED
|
@@ -54,6 +54,12 @@ export type CollapsibleListItem<TabType extends TabOptions = 'navLink'> = Condit
|
|
|
54
54
|
*/
|
|
55
55
|
tooltipProps?: TippyProps;
|
|
56
56
|
};
|
|
57
|
+
/**
|
|
58
|
+
* If `true`, clears query parameters during navigation.
|
|
59
|
+
*
|
|
60
|
+
* @default false
|
|
61
|
+
*/
|
|
62
|
+
clearQueryParamsOnNavigation?: boolean;
|
|
57
63
|
};
|
|
58
64
|
export interface CollapsibleListConfig<TabType extends TabOptions = 'navLink'> {
|
|
59
65
|
/**
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as EnterpriseTag } from './EnterpriseTag.component';
|
|
@@ -24,10 +24,6 @@ export interface SelectPickerOptionType<OptionValue = string | number> extends O
|
|
|
24
24
|
tooltipProps?: Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'shortcutKeyCombo'> | (Omit<TooltipProps, 'alwaysShowTippyOnHover' | 'showOnTruncate' | 'content'> & Required<Pick<TooltipProps, 'shortcutKeyCombo'>>);
|
|
25
25
|
}
|
|
26
26
|
type SelectProps<OptionValue, IsMulti extends boolean> = ReactSelectProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>;
|
|
27
|
-
export declare enum SelectPickerVariantType {
|
|
28
|
-
DEFAULT = "default",
|
|
29
|
-
BORDER_LESS = "border-less"
|
|
30
|
-
}
|
|
31
27
|
declare module 'react-select/base' {
|
|
32
28
|
interface Props<Option, IsMulti extends boolean, Group extends GroupBase<Option>> {
|
|
33
29
|
/**
|
|
@@ -59,9 +55,12 @@ declare module 'react-select/base' {
|
|
|
59
55
|
* @default 'true'
|
|
60
56
|
*/
|
|
61
57
|
showSelectedOptionIcon?: boolean;
|
|
62
|
-
variant?: SelectPickerVariantType;
|
|
63
58
|
}
|
|
64
59
|
}
|
|
60
|
+
export declare enum SelectPickerVariantType {
|
|
61
|
+
DEFAULT = "default",
|
|
62
|
+
BORDER_LESS = "border-less"
|
|
63
|
+
}
|
|
65
64
|
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption'>> & {
|
|
66
65
|
/**
|
|
67
66
|
* Error message for the select
|
|
@@ -41,6 +41,6 @@ export * from './Collapse';
|
|
|
41
41
|
export * from './Security';
|
|
42
42
|
export * from './Button';
|
|
43
43
|
export * from './InvalidYAMLTippy';
|
|
44
|
+
export * from './EnterpriseTag';
|
|
44
45
|
export * from './ConfirmationModal';
|
|
45
46
|
export * from './DiffViewer';
|
|
46
|
-
export * from './DynamicDataTable';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
2
|
import { Pair } from 'yaml';
|
|
3
|
+
import { StrictRJSFSchema } from '@rjsf/utils';
|
|
3
4
|
import { MaterialHistoryType } from '@Shared/Services/app.types';
|
|
4
5
|
import { MaterialInfo, SortingOrder, UserApprovalConfigType } from '../Common';
|
|
5
6
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, WebhookEventNameType } from './types';
|
|
@@ -66,10 +67,11 @@ export declare const getDefaultValueFromType: (value: unknown) => {};
|
|
|
66
67
|
*/
|
|
67
68
|
export declare const groupArrayByObjectKey: <T extends Record<string, any>, K extends keyof T>(array: T[], key: K) => Record<string, T[]>;
|
|
68
69
|
/**
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* @
|
|
70
|
+
* This function returns a null/zero value corresponding to @type
|
|
71
|
+
*
|
|
72
|
+
* @param type - a RJSF supported type
|
|
72
73
|
*/
|
|
74
|
+
export declare const getNullValueFromType: (type: StrictRJSFSchema["type"]) => any;
|
|
73
75
|
export declare const getLowerCaseObject: (input: any) => Record<string, any>;
|
|
74
76
|
/**
|
|
75
77
|
* @description - Function to get the webhook date
|
|
@@ -61,6 +61,10 @@ export declare const useForm: <T extends Record<keyof T, any> = {}>(options?: {
|
|
|
61
61
|
keepTouched?: boolean;
|
|
62
62
|
/** A boolean indicating whether to retain the current error state of the form fields. */
|
|
63
63
|
keepErrors?: boolean;
|
|
64
|
+
/** A boolean indicating whether the form should check for dirty state upon reset. */
|
|
65
|
+
triggerDirty?: boolean;
|
|
66
|
+
/** A boolean indicating whether the initial values of the form should be retained after reset. If false, provided formData will become initial data. */
|
|
67
|
+
keepInitialValues?: boolean;
|
|
64
68
|
}) => void;
|
|
65
69
|
/** An object representing additional form state. */
|
|
66
70
|
formState: {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { OverrideMergeStrategyType } from '../../Pages/Applications';
|
|
1
2
|
import { ReleaseTag } from '../../Common';
|
|
2
3
|
interface WebhookDataType {
|
|
3
4
|
id: number;
|
|
@@ -147,9 +148,11 @@ export declare enum CMSecretExternalType {
|
|
|
147
148
|
}
|
|
148
149
|
export interface ConfigDatum {
|
|
149
150
|
name: string;
|
|
151
|
+
mergeStrategy: OverrideMergeStrategyType;
|
|
150
152
|
type: string;
|
|
151
153
|
external: boolean;
|
|
152
154
|
data: Record<string, any>;
|
|
155
|
+
patchData: Record<string, any>;
|
|
153
156
|
defaultData: Record<string, any>;
|
|
154
157
|
global: boolean;
|
|
155
158
|
externalType: CMSecretExternalType;
|
|
@@ -172,6 +175,7 @@ export interface ConfigMapSecretDataType {
|
|
|
172
175
|
id: number;
|
|
173
176
|
appId: number;
|
|
174
177
|
configData: ConfigMapSecretDataConfigDatumDTO[];
|
|
178
|
+
isDeletable: boolean;
|
|
175
179
|
}
|
|
176
180
|
export declare enum ConfigResourceType {
|
|
177
181
|
ConfigMap = "ConfigMap",
|