@devtron-labs/devtron-fe-common-lib 0.1.16-beta-6 → 0.1.16-beta-7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/Common/Api.d.ts +1 -1
- package/dist/Common/CIPipeline.Types.d.ts +4 -1
- package/dist/Common/Constants.d.ts +2 -2
- package/dist/Common/CustomInput/Types.d.ts +2 -2
- package/dist/Common/Modals/VisibleModal.d.ts +1 -1
- package/dist/Common/Modals/VisibleModal2.d.ts +1 -1
- package/dist/Common/MultiSelectCustomization.d.ts +1 -1
- package/dist/Common/Types.d.ts +2 -2
- package/dist/Shared/Components/DetectBottom/DetectBottom.component.d.ts +2 -1
- package/dist/Shared/Components/EditImageFormField/EditImageFormField.d.ts +4 -0
- package/dist/Shared/Components/EditImageFormField/constants.d.ts +6 -0
- package/dist/Shared/Components/EditImageFormField/index.d.ts +2 -0
- package/dist/Shared/Components/EditImageFormField/types.d.ts +18 -0
- package/dist/Shared/Components/FilterChips/FilterChips.component.d.ts +1 -1
- package/dist/Shared/Components/FilterChips/types.d.ts +6 -18
- package/dist/Shared/Components/Plugin/service.d.ts +3 -1
- package/dist/Shared/Components/Plugin/types.d.ts +5 -2
- package/dist/Shared/Components/Plugin/utils.d.ts +3 -0
- package/dist/Shared/Components/SelectPicker/SelectPicker.component.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +10 -1
- package/dist/Shared/Components/index.d.ts +1 -0
- package/dist/Shared/Hooks/index.d.ts +0 -1
- package/dist/Shared/Services/common.service.d.ts +2 -3
- package/dist/Shared/Services/types.d.ts +4 -15
- package/dist/Shared/constants.d.ts +1 -9
- package/dist/Shared/types.d.ts +1 -7
- package/dist/Shared/validations.d.ts +3 -0
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-3e6ec700.js → cssMode-5222472b.js} +1 -1
- package/dist/{freemarker2-5b5ee393.js → freemarker2-86e00522.js} +1 -1
- package/dist/{handlebars-bf398b6d.js → handlebars-6a922d2a.js} +1 -1
- package/dist/{html-b35def4f.js → html-b4158742.js} +1 -1
- package/dist/{htmlMode-48e61b21.js → htmlMode-d8c49ab0.js} +1 -1
- package/dist/{index-109adc1e.js → index-6d3a3314.js} +24109 -24004
- package/dist/index.js +389 -386
- package/dist/{javascript-27a2b43d.js → javascript-80dc4c2a.js} +1 -1
- package/dist/{jsonMode-950b6194.js → jsonMode-771da968.js} +1 -1
- package/dist/{liquid-c64aed12.js → liquid-12cc259d.js} +1 -1
- package/dist/{mdx-479da7c4.js → mdx-3e169bed.js} +1 -1
- package/dist/{python-7b9f7243.js → python-7abb639f.js} +1 -1
- package/dist/{razor-7aeb2aac.js → razor-0c1382cc.js} +1 -1
- package/dist/{tsMode-43b9c3bb.js → tsMode-bc8858f6.js} +1 -1
- package/dist/{typescript-1166a256.js → typescript-0f031a62.js} +1 -1
- package/dist/{xml-8a093524.js → xml-86ca1795.js} +1 -1
- package/dist/{yaml-0ad40107.js → yaml-71afa4d4.js} +1 -1
- package/package.json +1 -1
- package/dist/Shared/Hooks/useGetResourceKindsOptions/index.d.ts +0 -2
- package/dist/Shared/Hooks/useGetResourceKindsOptions/service.d.ts +0 -9
- package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +0 -31
- package/dist/Shared/Hooks/useGetResourceKindsOptions/useGetResourceKindsOptions.d.ts +0 -16
- package/dist/Shared/Hooks/useGetResourceKindsOptions/utils.d.ts +0 -4
package/dist/Common/Api.d.ts
CHANGED
|
@@ -4,7 +4,7 @@ import { ResponseType, APIOptions } from './Types';
|
|
|
4
4
|
export declare const post: (url: string, data: object, options?: APIOptions, isMultipartRequest?: boolean) => Promise<ResponseType>;
|
|
5
5
|
export declare const put: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
|
|
6
6
|
export declare const patch: (url: string, data: object, options?: APIOptions) => Promise<ResponseType>;
|
|
7
|
-
export declare const get: (url: string, options?: APIOptions) => Promise<ResponseType
|
|
7
|
+
export declare const get: <T = any>(url: string, options?: APIOptions) => Promise<ResponseType<T>>;
|
|
8
8
|
export declare const trash: (url: string, data?: object, options?: APIOptions) => Promise<ResponseType>;
|
|
9
9
|
/**
|
|
10
10
|
* Aborts the previous request before triggering next request
|
|
@@ -77,6 +77,7 @@ export interface VariableType {
|
|
|
77
77
|
format: string;
|
|
78
78
|
description: string;
|
|
79
79
|
defaultValue: string;
|
|
80
|
+
allowEmptyValue: boolean;
|
|
80
81
|
variableType: RefVariableType;
|
|
81
82
|
refVariableStepIndex: number;
|
|
82
83
|
refVariableName: string;
|
|
@@ -98,7 +99,7 @@ interface ConditionDetails {
|
|
|
98
99
|
conditionType: ConditionType;
|
|
99
100
|
conditionalValue: string;
|
|
100
101
|
}
|
|
101
|
-
interface InlineStepDetailType {
|
|
102
|
+
export interface InlineStepDetailType {
|
|
102
103
|
scriptType: ScriptType;
|
|
103
104
|
isMountCustomScript?: boolean;
|
|
104
105
|
script?: string;
|
|
@@ -117,6 +118,8 @@ interface InlineStepDetailType {
|
|
|
117
118
|
inputVariables?: VariableType[];
|
|
118
119
|
outputVariables?: VariableType[];
|
|
119
120
|
conditionDetails: ConditionDetails[];
|
|
121
|
+
storeScriptAt?: string;
|
|
122
|
+
mountCodeToContainerPath?: string;
|
|
120
123
|
}
|
|
121
124
|
interface PluginRefStepDetailType {
|
|
122
125
|
id: number;
|
|
@@ -75,11 +75,10 @@ export declare const ROUTES: {
|
|
|
75
75
|
CONFIG_CD_PIPELINE: string;
|
|
76
76
|
MODULE_CONFIGURED: string;
|
|
77
77
|
RESOURCE_HISTORY_DEPLOYMENT: string;
|
|
78
|
-
APP_LIST_MIN: string;
|
|
79
|
-
CLUSTER_LIST_MIN: string;
|
|
80
78
|
PLUGIN_GLOBAL_LIST_DETAIL_V2: string;
|
|
81
79
|
PLUGIN_GLOBAL_LIST_V2: string;
|
|
82
80
|
PLUGIN_GLOBAL_LIST_TAGS: string;
|
|
81
|
+
PLUGIN_LIST_MIN: string;
|
|
83
82
|
};
|
|
84
83
|
export declare enum KEY_VALUE {
|
|
85
84
|
KEY = "key",
|
|
@@ -269,3 +268,4 @@ export declare const DATE_TIME_FORMATS: {
|
|
|
269
268
|
DD_MMM_YYYY_HH_MM: string;
|
|
270
269
|
DD_MMM_YYYY: string;
|
|
271
270
|
};
|
|
271
|
+
export declare const SEMANTIC_VERSION_DOCUMENTATION_LINK = "https://semver.org/";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { default as React, HTMLInputTypeAttribute, InputHTMLAttributes } from 'react';
|
|
1
|
+
import { default as React, HTMLInputTypeAttribute, InputHTMLAttributes, ReactNode } from 'react';
|
|
2
2
|
|
|
3
3
|
export interface CustomInputProps {
|
|
4
4
|
name: string;
|
|
@@ -17,7 +17,7 @@ export interface CustomInputProps {
|
|
|
17
17
|
autoFocus?: boolean;
|
|
18
18
|
rootClassName?: string;
|
|
19
19
|
error?: string[] | string;
|
|
20
|
-
helperText?:
|
|
20
|
+
helperText?: ReactNode;
|
|
21
21
|
handleOnBlur?: (e: any) => void;
|
|
22
22
|
readOnly?: boolean;
|
|
23
23
|
noTrim?: boolean;
|
package/dist/Common/Types.d.ts
CHANGED
|
@@ -177,10 +177,10 @@ export interface RadioGroupItemProps {
|
|
|
177
177
|
export interface RadioGroupInterface {
|
|
178
178
|
name: string;
|
|
179
179
|
onChange: any;
|
|
180
|
-
className?: string;
|
|
181
180
|
initialTab: string;
|
|
182
|
-
disabled: boolean;
|
|
183
181
|
children: ReactNode;
|
|
182
|
+
disabled?: boolean;
|
|
183
|
+
className?: string;
|
|
184
184
|
}
|
|
185
185
|
export interface RadioInterface {
|
|
186
186
|
children: ReactNode;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface DetectBottomProps {
|
|
2
2
|
callback: () => void;
|
|
3
|
+
hasError?: boolean;
|
|
3
4
|
}
|
|
4
|
-
declare const DetectBottom: ({ callback }: DetectBottomProps) => JSX.Element;
|
|
5
|
+
declare const DetectBottom: ({ callback, hasError }: DetectBottomProps) => JSX.Element;
|
|
5
6
|
export default DetectBottom;
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { EditImageFormFieldProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const EditImageFormField: ({ defaultIcon, errorMessage, handleError, url, handleURLChange, ariaLabelPrefix, dataTestIdPrefix, altText, }: EditImageFormFieldProps) => JSX.Element;
|
|
4
|
+
export default EditImageFormField;
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
import { ReactNode } from 'react';
|
|
2
|
+
|
|
3
|
+
export interface EditImageFormFieldProps {
|
|
4
|
+
defaultIcon: ReactNode;
|
|
5
|
+
errorMessage: string;
|
|
6
|
+
handleError: (error: string) => void;
|
|
7
|
+
url: string;
|
|
8
|
+
handleURLChange: (url: string) => void;
|
|
9
|
+
altText: string;
|
|
10
|
+
ariaLabelPrefix: string;
|
|
11
|
+
dataTestIdPrefix: string;
|
|
12
|
+
}
|
|
13
|
+
export interface FallbackImageProps extends Pick<EditImageFormFieldProps, 'defaultIcon'> {
|
|
14
|
+
/**
|
|
15
|
+
* @default - false
|
|
16
|
+
*/
|
|
17
|
+
showEditIcon?: boolean;
|
|
18
|
+
}
|
|
@@ -3,5 +3,5 @@ import { FilterChipsProps } from './types';
|
|
|
3
3
|
/**
|
|
4
4
|
* Component for rendering the applied filter chips
|
|
5
5
|
*/
|
|
6
|
-
declare const FilterChips: <T = Record<string, unknown>>({ filterConfig, clearFilters, onRemoveFilter, getFormattedLabel, getFormattedValue, className, clearButtonClassName,
|
|
6
|
+
declare const FilterChips: <T = Record<string, unknown>>({ filterConfig, clearFilters, onRemoveFilter, getFormattedLabel, getFormattedValue, className, clearButtonClassName, shouldHideLabel, }: FilterChipsProps<T>) => JSX.Element;
|
|
7
7
|
export default FilterChips;
|
|
@@ -21,33 +21,17 @@ export interface FilterChipProps {
|
|
|
21
21
|
* If passed, the label will be formatted accordingly
|
|
22
22
|
*/
|
|
23
23
|
getFormattedValue?: (filterKey: string, filterValue: unknown) => ReactNode;
|
|
24
|
-
showRemoveIcon: boolean;
|
|
25
24
|
/**
|
|
26
25
|
* If true, would hide the label
|
|
27
26
|
* @default false
|
|
28
27
|
*/
|
|
29
28
|
shouldHideLabel?: boolean;
|
|
30
29
|
}
|
|
31
|
-
export
|
|
30
|
+
export interface FilterChipsProps<T = Record<string, unknown>> extends Pick<FilterChipProps, 'getFormattedLabel' | 'getFormattedValue' | 'shouldHideLabel'> {
|
|
32
31
|
/**
|
|
33
32
|
* Current filter configuration
|
|
34
33
|
*/
|
|
35
34
|
filterConfig: T;
|
|
36
|
-
/**
|
|
37
|
-
* Class name for the container
|
|
38
|
-
*/
|
|
39
|
-
className?: string;
|
|
40
|
-
} & ({
|
|
41
|
-
/**
|
|
42
|
-
* If false, anything related to removing filters is not shown
|
|
43
|
-
* @default 'true'
|
|
44
|
-
*/
|
|
45
|
-
showClearAndRemove: false;
|
|
46
|
-
clearFilters?: never;
|
|
47
|
-
onRemoveFilter?: never;
|
|
48
|
-
clearButtonClassName?: never;
|
|
49
|
-
} | {
|
|
50
|
-
showClearAndRemove?: true;
|
|
51
35
|
/**
|
|
52
36
|
* Callback handler for removing the filters
|
|
53
37
|
*/
|
|
@@ -56,8 +40,12 @@ export type FilterChipsProps<T = Record<string, unknown>> = Pick<FilterChipProps
|
|
|
56
40
|
* Handler for removing a applied filter
|
|
57
41
|
*/
|
|
58
42
|
onRemoveFilter: (filterConfig: T) => void;
|
|
43
|
+
/**
|
|
44
|
+
* Class name for the container
|
|
45
|
+
*/
|
|
46
|
+
className?: string;
|
|
59
47
|
/**
|
|
60
48
|
* Class name for the clear filter button
|
|
61
49
|
*/
|
|
62
50
|
clearButtonClassName?: string;
|
|
63
|
-
}
|
|
51
|
+
}
|
|
@@ -1,5 +1,7 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResponseType } from '../../../Common';
|
|
2
|
+
import { GetPluginStoreDataReturnType, GetPluginStoreDataServiceParamsType, MinParentPluginDTO, PluginDetailServiceParamsType } from './types';
|
|
2
3
|
|
|
3
4
|
export declare const getPluginsDetail: ({ appId, parentPluginIds, pluginIds, shouldShowError, }: PluginDetailServiceParamsType) => Promise<Pick<GetPluginStoreDataReturnType, 'pluginStore'>>;
|
|
4
5
|
export declare const getPluginStoreData: ({ searchKey, selectedTags, appId, offset, signal, }: GetPluginStoreDataServiceParamsType) => Promise<GetPluginStoreDataReturnType>;
|
|
5
6
|
export declare const getAvailablePluginTags: (appId: number) => Promise<string[]>;
|
|
7
|
+
export declare const getParentPluginList: (appId?: number) => Promise<ResponseType<MinParentPluginDTO[]>>;
|
|
@@ -45,6 +45,9 @@ export interface ParentPluginDTO {
|
|
|
45
45
|
type: PluginCreationType;
|
|
46
46
|
icon: string;
|
|
47
47
|
pluginVersions: PluginVersionsDTO;
|
|
48
|
+
pluginIdentifier: string;
|
|
49
|
+
}
|
|
50
|
+
export interface MinParentPluginDTO extends Pick<ParentPluginDTO, 'id' | 'name' | 'icon'> {
|
|
48
51
|
}
|
|
49
52
|
export interface PluginDetailDTO {
|
|
50
53
|
parentPlugins: ParentPluginDTO[];
|
|
@@ -66,11 +69,11 @@ export interface PluginDetailPayloadType extends Pick<PluginDetailServiceParamsT
|
|
|
66
69
|
export interface PluginListFiltersType extends Pick<BaseFilterQueryParams<unknown>, 'searchKey'> {
|
|
67
70
|
selectedTags: string[];
|
|
68
71
|
}
|
|
69
|
-
interface ParentPluginType extends Pick<ParentPluginDTO, 'id' | 'name' | 'description' | 'type' | 'icon'> {
|
|
72
|
+
interface ParentPluginType extends Pick<ParentPluginDTO, 'id' | 'name' | 'description' | 'type' | 'icon' | 'pluginIdentifier'> {
|
|
70
73
|
latestVersionId: MinimalPluginVersionDataDTO['id'];
|
|
71
74
|
pluginVersions: MinimalPluginVersionDataDTO[];
|
|
72
75
|
}
|
|
73
|
-
interface DetailedPluginVersionType extends Pick<MinimalPluginVersionDataDTO, 'id' | 'description' | 'name' | 'pluginVersion'>, Pick<DetailedPluginVersionDTO, 'tags' | 'isLatest' | 'inputVariables' | 'outputVariables' | 'updatedBy' | 'docLink'>, Pick<ParentPluginType, 'icon' | 'type'> {
|
|
76
|
+
interface DetailedPluginVersionType extends Pick<MinimalPluginVersionDataDTO, 'id' | 'description' | 'name' | 'pluginVersion'>, Pick<DetailedPluginVersionDTO, 'tags' | 'isLatest' | 'inputVariables' | 'outputVariables' | 'updatedBy' | 'docLink'>, Pick<ParentPluginType, 'icon' | 'type' | 'pluginIdentifier'> {
|
|
74
77
|
parentPluginId: ParentPluginType['id'];
|
|
75
78
|
}
|
|
76
79
|
export interface PluginDataStoreType {
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { OptionProps } from 'react-select';
|
|
2
|
+
import { OptionType } from '../../../Common/Types';
|
|
1
3
|
import { ParentPluginDTO, PluginDataStoreType } from './types';
|
|
2
4
|
|
|
3
5
|
export declare const parsePluginDetailsDTOIntoPluginStore: (pluginData: ParentPluginDTO[]) => PluginDataStoreType;
|
|
@@ -14,6 +16,7 @@ export declare const pluginTagSelectStyles: {
|
|
|
14
16
|
group: (base: any) => any;
|
|
15
17
|
groupHeading: (base: any) => any;
|
|
16
18
|
};
|
|
19
|
+
export declare const PluginTagOption: (props: OptionProps<OptionType, true>) => JSX.Element;
|
|
17
20
|
/**
|
|
18
21
|
* @description This method takes the initial plugin data store and updates the keys with the target parent plugin store and plugin version store
|
|
19
22
|
*/
|
|
@@ -81,5 +81,5 @@ import { SelectPickerProps } from './type';
|
|
|
81
81
|
* <SelectPicker ... showSelectedOptionsCount />
|
|
82
82
|
* ```
|
|
83
83
|
*/
|
|
84
|
-
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, ...props }: SelectPickerProps) => JSX.Element;
|
|
84
|
+
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, optionListError, reloadOptionList, ...props }: SelectPickerProps) => JSX.Element;
|
|
85
85
|
export default SelectPicker;
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ServerErrors } from '../../../Common/ServerError';
|
|
1
2
|
import { OptionType } from '../../../Common/Types';
|
|
2
3
|
import { ComponentSizeType } from '../../constants';
|
|
3
4
|
import { ReactElement, ReactNode } from 'react';
|
|
@@ -18,7 +19,7 @@ export interface SelectPickerOptionType extends OptionType<number | string, Reac
|
|
|
18
19
|
endIcon?: ReactElement;
|
|
19
20
|
}
|
|
20
21
|
type SelectProps = ReactSelectProps<SelectPickerOptionType>;
|
|
21
|
-
export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'isLoading' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder'>, Required<Pick<SelectProps, 'classNamePrefix' | 'inputId' | 'name'>> {
|
|
22
|
+
export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'isLoading' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'autoFocus' | 'onKeyDown'>, Required<Pick<SelectProps, 'classNamePrefix' | 'inputId' | 'name'>> {
|
|
22
23
|
/**
|
|
23
24
|
* Icon to be rendered in the control
|
|
24
25
|
*/
|
|
@@ -70,5 +71,13 @@ export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value'
|
|
|
70
71
|
* @default 'ComponentSizeType.small'
|
|
71
72
|
*/
|
|
72
73
|
menuSize?: ComponentSizeType;
|
|
74
|
+
/**
|
|
75
|
+
* If true, would show generic section error state as no options message
|
|
76
|
+
*/
|
|
77
|
+
optionListError?: ServerErrors;
|
|
78
|
+
/**
|
|
79
|
+
* Would reload the option list when called in case optionListError is present
|
|
80
|
+
*/
|
|
81
|
+
reloadOptionList?: () => void;
|
|
73
82
|
}
|
|
74
83
|
export {};
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GetResourceApiUrlProps } from './types';
|
|
2
2
|
|
|
3
|
-
export declare const getResourceApiUrl: <T>({ baseUrl, kind, version,
|
|
4
|
-
export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
|
|
3
|
+
export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, queryParams }: GetResourceApiUrlProps<T>) => string;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { getUrlWithSearchParams } from '../../Common';
|
|
2
|
-
import {
|
|
2
|
+
import { ResourceKindType, ResourceVersionType } from '../types';
|
|
3
3
|
|
|
4
4
|
export interface ClusterType {
|
|
5
5
|
id: number;
|
|
@@ -9,20 +9,9 @@ export interface ClusterType {
|
|
|
9
9
|
*/
|
|
10
10
|
isVirtual: boolean;
|
|
11
11
|
}
|
|
12
|
-
|
|
13
|
-
* T => Type of query params
|
|
14
|
-
* K => Type of kind
|
|
15
|
-
* P => Type of version
|
|
16
|
-
*/
|
|
17
|
-
interface BaseGetApiUrlProps<T, K extends ResourceKindType | PolicyKindType, P extends ResourceVersionType> {
|
|
12
|
+
export interface GetResourceApiUrlProps<T> {
|
|
18
13
|
baseUrl: string;
|
|
19
|
-
kind:
|
|
20
|
-
version:
|
|
21
|
-
suffix?: string;
|
|
14
|
+
kind: ResourceKindType;
|
|
15
|
+
version: ResourceVersionType;
|
|
22
16
|
queryParams?: T extends Parameters<typeof getUrlWithSearchParams>[1] ? T : never;
|
|
23
17
|
}
|
|
24
|
-
export interface GetResourceApiUrlProps<T> extends BaseGetApiUrlProps<T, ResourceKindType, ResourceVersionType> {
|
|
25
|
-
}
|
|
26
|
-
export interface GetPolicyApiUrlProps<T> extends Omit<BaseGetApiUrlProps<T, PolicyKindType, ResourceVersionType>, 'baseUrl'> {
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
@@ -362,12 +362,4 @@ export declare enum ComponentSizeType {
|
|
|
362
362
|
medium = "medium",
|
|
363
363
|
large = "large"
|
|
364
364
|
}
|
|
365
|
-
|
|
366
|
-
* Identifiers for grouped / all resources
|
|
367
|
-
*/
|
|
368
|
-
export declare enum SelectAllGroupedResourceIdentifiers {
|
|
369
|
-
allProjects = "-1",
|
|
370
|
-
allExistingAndFutureNonProdEnvironments = "-1",
|
|
371
|
-
allExistingAndFutureProdEnvironments = "-2",
|
|
372
|
-
allExistingAndFutureEnvironments = "-3"
|
|
373
|
-
}
|
|
365
|
+
export declare const POP_UP_MENU_MODAL_ID = "popup";
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -360,21 +360,15 @@ export declare enum ResourceKindType {
|
|
|
360
360
|
tenant = "tenant",
|
|
361
361
|
installation = "installation",
|
|
362
362
|
environment = "environment",
|
|
363
|
-
cdPipeline = "cd-pipeline"
|
|
364
|
-
project = "project"
|
|
363
|
+
cdPipeline = "cd-pipeline"
|
|
365
364
|
}
|
|
366
365
|
/**
|
|
367
366
|
* Versions support for the resources on BE
|
|
368
|
-
*
|
|
369
|
-
* TODO: Rename to ApiVersionType
|
|
370
367
|
*/
|
|
371
368
|
export declare enum ResourceVersionType {
|
|
372
369
|
v1 = "v1",
|
|
373
370
|
alpha1 = "alpha1"
|
|
374
371
|
}
|
|
375
|
-
export declare enum PolicyKindType {
|
|
376
|
-
lockConfiguration = "lock-configuration"
|
|
377
|
-
}
|
|
378
372
|
export interface LastExecutionResultType {
|
|
379
373
|
lastExecution: string;
|
|
380
374
|
severityCount: {
|
|
@@ -12,6 +12,7 @@ export declare const MESSAGES: {
|
|
|
12
12
|
VALID_POSITIVE_NUMBER: string;
|
|
13
13
|
VALID_POSITIVE_INTEGER: string;
|
|
14
14
|
MAX_SAFE_INTEGER: string;
|
|
15
|
+
INVALID_SEMANTIC_VERSION: string;
|
|
15
16
|
};
|
|
16
17
|
export declare const requiredField: (value: string) => ValidationResponseType;
|
|
17
18
|
export declare const validateName: (name: string) => ValidationResponseType;
|
|
@@ -28,3 +29,5 @@ export declare const validateUniqueKeys: (keys: string[]) => {
|
|
|
28
29
|
isValid: boolean;
|
|
29
30
|
message: string;
|
|
30
31
|
};
|
|
32
|
+
export declare const validateSemanticVersioning: (version: string) => ValidationResponseType;
|
|
33
|
+
export declare const validateDisplayName: (name: string) => ValidationResponseType;
|