@devtron-labs/devtron-fe-common-lib 0.2.6 → 0.2.7-beta-1
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/types.d.ts +2 -2
- package/dist/Common/Constants.d.ts +12 -2
- package/dist/Common/CustomTagSelector/TagDetails.d.ts +1 -1
- package/dist/Common/CustomTagSelector/TagLabelSelect.d.ts +1 -1
- package/dist/Common/CustomTagSelector/Types.d.ts +2 -0
- package/dist/Common/RJSF/constants.d.ts +0 -5
- package/dist/Common/RJSF/index.d.ts +0 -1
- package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +1 -1
- package/dist/Common/Security/types.d.ts +4 -0
- package/dist/Common/Types.d.ts +2 -2
- package/dist/Pages/GlobalConfigurations/index.d.ts +0 -1
- package/dist/Shared/Components/CICDHistory/Artifacts.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/LogStageAccordion.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/LogsRenderer.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/TriggerOutput.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +20 -17
- package/dist/Shared/Components/CICDHistory/utils.d.ts +1 -0
- package/dist/Shared/Components/Collapse/Collapse.d.ts +3 -0
- package/dist/Shared/Components/Collapse/index.d.ts +2 -0
- package/dist/Shared/Components/Collapse/types.d.ts +7 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.component.d.ts +3 -0
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +96 -0
- package/dist/Shared/Components/CollapsibleList/index.d.ts +2 -0
- package/dist/Shared/Components/CommitChipCell/types.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +3 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +38 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +3 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +3 -0
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +3 -0
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +3 -0
- package/dist/Shared/Components/DeploymentConfigDiff/types.d.ts +69 -0
- package/dist/Shared/Components/FilterButton/FilterButton.d.ts +5 -0
- package/dist/Shared/Components/FilterButton/index.d.ts +1 -0
- package/dist/Shared/Components/FilterButton/types.d.ts +12 -0
- package/dist/Shared/Components/FilterButton/utils.d.ts +15 -0
- package/dist/Shared/Components/ImageChipCell/ImageChipCell.component.d.ts +1 -1
- package/dist/Shared/Components/ImageChipCell/types.d.ts +13 -5
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +24 -1
- 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/index.d.ts +1 -0
- package/dist/Shared/Components/SelectPicker/type.d.ts +16 -0
- package/dist/Shared/Components/SelectPicker/utils.d.ts +11 -2
- package/dist/Shared/Components/ShowMoreText/ShowMoreText.d.ts +3 -2
- package/dist/Shared/Components/ShowMoreText/index.d.ts +1 -0
- package/dist/Shared/Components/Vulnerabilities/utils.d.ts +1 -0
- package/dist/Shared/Components/index.d.ts +5 -1
- package/dist/Shared/Helpers.d.ts +7 -1
- package/dist/Shared/Services/app.service.d.ts +3 -1
- package/dist/Shared/Services/app.types.d.ts +116 -0
- package/dist/Shared/constants.d.ts +3 -0
- package/dist/Shared/types.d.ts +19 -7
- package/dist/Shared/validations.d.ts +3 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-3a640c3a.js → cssMode-2d35baf3.js} +1 -1
- package/dist/{freemarker2-7fcef7e9.js → freemarker2-801eccf9.js} +1 -1
- package/dist/{handlebars-bb8d8c8f.js → handlebars-6e296d28.js} +1 -1
- package/dist/{html-d9d12fbc.js → html-4f435985.js} +1 -1
- package/dist/{htmlMode-6f5e366b.js → htmlMode-f2200298.js} +1 -1
- package/dist/{index-50b1e60a.js → index-23d0960d.js} +30825 -30364
- package/dist/index.d.ts +2 -0
- package/dist/index.js +496 -478
- package/dist/{javascript-ee21afc6.js → javascript-275bb580.js} +1 -1
- package/dist/{jsonMode-f243ae3a.js → jsonMode-6da1b613.js} +1 -1
- package/dist/{liquid-210197a2.js → liquid-0076c56f.js} +1 -1
- package/dist/{mdx-47b9f654.js → mdx-a22f2078.js} +1 -1
- package/dist/{python-d072ae6f.js → python-e377e35a.js} +1 -1
- package/dist/{razor-bbc7aba8.js → razor-2583e71e.js} +1 -1
- package/dist/{tsMode-e3a0b064.js → tsMode-078c6213.js} +1 -1
- package/dist/{typescript-e0f3eca9.js → typescript-fe07d2c4.js} +1 -1
- package/dist/{xml-1408e523.js → xml-b10e934c.js} +1 -1
- package/dist/{yaml-81fab749.js → yaml-70947680.js} +1 -1
- package/package.json +1 -1
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/basicViewSchema.json.d.ts +0 -273
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/fallbackJobsNCronJobGuiSchema.json.d.ts +0 -157
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/index.d.ts +0 -2
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/types.d.ts +0 -24
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/utils.d.ts +0 -4
- package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +0 -4
- package/dist/Shared/Components/ScannedObjectBar/index.d.ts +0 -1
- package/dist/Shared/Components/ScannedObjectBar/types.d.ts +0 -7
- package/dist/assets/editor.worker-60ba9509.js +0 -12
- package/dist/assets/yaml.worker-3bbe780a.js +0 -472
|
@@ -60,8 +60,10 @@ export interface KeyValueTableProps<K extends string> {
|
|
|
60
60
|
isSortable?: boolean;
|
|
61
61
|
/** An optional React node for a custom header component. */
|
|
62
62
|
headerComponent?: ReactNode;
|
|
63
|
-
/** When true, data addition field will not be shown */
|
|
63
|
+
/** When true, data addition field will not be shown. */
|
|
64
64
|
isAdditionNotAllowed?: boolean;
|
|
65
|
+
/** When true, data add or update is disabled. */
|
|
66
|
+
readOnly?: boolean;
|
|
65
67
|
/**
|
|
66
68
|
* An optional function to handle changes in the table rows.
|
|
67
69
|
* @param rowId - The id of the row that changed.
|
|
@@ -74,4 +76,25 @@ export interface KeyValueTableProps<K extends string> {
|
|
|
74
76
|
* @param deletedRowIndex - The index of the row that was deleted.
|
|
75
77
|
*/
|
|
76
78
|
onDelete?: (deletedRowId: string | number) => void;
|
|
79
|
+
/**
|
|
80
|
+
* Indicates whether to show errors.
|
|
81
|
+
*/
|
|
82
|
+
showError?: boolean;
|
|
83
|
+
/**
|
|
84
|
+
* The function to use to validate the value of the cell.
|
|
85
|
+
* @param value - The value to validate.
|
|
86
|
+
* @param key - The row key of the value.
|
|
87
|
+
* @returns Return true if the value is valid, otherwise false
|
|
88
|
+
* and set `showError` to `true` and provide errorMessages array to show error message.
|
|
89
|
+
*/
|
|
90
|
+
validationSchema?: (value: string, key: K) => boolean;
|
|
91
|
+
/**
|
|
92
|
+
* An array of error messages to be displayed in the cell error tooltip.
|
|
93
|
+
*/
|
|
94
|
+
errorMessages?: string[];
|
|
95
|
+
/**
|
|
96
|
+
* A callback function called when an error occurs.
|
|
97
|
+
* @param errorState - The error state, true when any cell has error, otherwise false.
|
|
98
|
+
*/
|
|
99
|
+
onError?: (errorState: boolean) => void;
|
|
77
100
|
}
|
|
@@ -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, variant, ...props }: SelectPickerProps) => JSX.Element;
|
|
85
85
|
export default SelectPicker;
|
|
@@ -6,5 +6,5 @@ export declare const SelectPickerClearIndicator: (props: ClearIndicatorProps<Sel
|
|
|
6
6
|
export declare const SelectPickerControl: ({ icon, showSelectedOptionIcon, ...props }: ControlProps<SelectPickerOptionType> & Pick<SelectPickerProps, 'icon' | 'showSelectedOptionIcon'>) => JSX.Element;
|
|
7
7
|
export declare const SelectPickerValueContainer: ({ showSelectedOptionsCount, ...props }: ValueContainerProps<SelectPickerOptionType> & Pick<SelectPickerProps, 'showSelectedOptionsCount'>) => JSX.Element;
|
|
8
8
|
export declare const SelectPickerLoadingIndicator: () => JSX.Element;
|
|
9
|
-
export declare const SelectPickerOption: (props: OptionProps<SelectPickerOptionType>) => JSX.Element;
|
|
9
|
+
export declare const SelectPickerOption: ({ disableDescriptionEllipsis }: SelectPickerProps) => (props: OptionProps<SelectPickerOptionType>) => JSX.Element;
|
|
10
10
|
export declare const SelectPickerMenuList: ({ renderMenuListFooter, ...props }: MenuListProps<SelectPickerOptionType> & Pick<SelectPickerProps, 'renderMenuListFooter'>) => JSX.Element;
|
|
@@ -17,6 +17,10 @@ export interface SelectPickerOptionType extends OptionType<number | string, Reac
|
|
|
17
17
|
*/
|
|
18
18
|
endIcon?: ReactElement;
|
|
19
19
|
}
|
|
20
|
+
export declare enum SelectPickerVariantType {
|
|
21
|
+
DEFAULT = "default",
|
|
22
|
+
BORDERLESS = "borderless"
|
|
23
|
+
}
|
|
20
24
|
type SelectProps = ReactSelectProps<SelectPickerOptionType>;
|
|
21
25
|
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
26
|
/**
|
|
@@ -70,5 +74,17 @@ export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value'
|
|
|
70
74
|
* @default 'ComponentSizeType.small'
|
|
71
75
|
*/
|
|
72
76
|
menuSize?: ComponentSizeType;
|
|
77
|
+
/**
|
|
78
|
+
* Variant of the select.
|
|
79
|
+
*
|
|
80
|
+
* @default SelectPickerVariantType.DEFAULT
|
|
81
|
+
*/
|
|
82
|
+
variant?: SelectPickerVariantType;
|
|
83
|
+
/**
|
|
84
|
+
* Disables the ellipsis on description, it will be shown in full width, wrapped if required.
|
|
85
|
+
*
|
|
86
|
+
* @default false
|
|
87
|
+
*/
|
|
88
|
+
disableDescriptionEllipsis?: boolean;
|
|
73
89
|
}
|
|
74
90
|
export {};
|
|
@@ -1,4 +1,13 @@
|
|
|
1
|
-
import { StylesConfig } from 'react-select';
|
|
1
|
+
import { GroupBase, OptionsOrGroups, StylesConfig } from 'react-select';
|
|
2
2
|
import { SelectPickerOptionType, SelectPickerProps } from './type';
|
|
3
3
|
|
|
4
|
-
export declare const getCommonSelectStyle: ({ error, size, menuSize, }: Pick<SelectPickerProps, 'error' | 'size' | 'menuSize'>) => StylesConfig<SelectPickerOptionType>;
|
|
4
|
+
export declare const getCommonSelectStyle: ({ error, size, menuSize, variant, }: Pick<SelectPickerProps, 'error' | 'size' | 'menuSize' | 'variant'>) => StylesConfig<SelectPickerOptionType>;
|
|
5
|
+
/**
|
|
6
|
+
* Retrieves an option from the options list based on the provided value.
|
|
7
|
+
*
|
|
8
|
+
* @param optionsList - The list of options or groups of options.
|
|
9
|
+
* @param value - The value to compare against the options' values.
|
|
10
|
+
* @param defaultOption - The default option to return if no match is found.
|
|
11
|
+
* @returns The matched option or the default option if no match is found.
|
|
12
|
+
*/
|
|
13
|
+
export declare const getSelectPickerOptionByValue: (optionsList: OptionsOrGroups<SelectPickerOptionType, GroupBase<SelectPickerOptionType>>, value: string | number, defaultOption?: SelectPickerOptionType) => SelectPickerOptionType;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
interface ShowMoreTextProps {
|
|
2
2
|
text: string;
|
|
3
|
+
textClass?: string;
|
|
3
4
|
}
|
|
4
|
-
|
|
5
|
-
export
|
|
5
|
+
declare const ShowMoreText: ({ text, textClass }: ShowMoreTextProps) => JSX.Element;
|
|
6
|
+
export default ShowMoreText;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ShowMoreText } from './ShowMoreText';
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { LastExecutionResponseType, LastExecutionResultType } from '../../types';
|
|
2
2
|
|
|
3
|
+
export declare const getSortedVulnerabilities: (vulnerabilities: any) => any;
|
|
3
4
|
export declare const getParsedScanResult: (scanResult: any) => LastExecutionResultType;
|
|
4
5
|
export declare const parseLastExecutionResponse: (response: any) => LastExecutionResponseType;
|
|
@@ -10,7 +10,6 @@ export * from './FilterChips';
|
|
|
10
10
|
export * from './ActivityIndicator';
|
|
11
11
|
export * from './GenericSectionErrorState';
|
|
12
12
|
export * from './KeyValueList';
|
|
13
|
-
export * from './ScannedObjectBar';
|
|
14
13
|
export * from './InfoIconTippy';
|
|
15
14
|
export * from './EditableTextArea';
|
|
16
15
|
export * from './Header';
|
|
@@ -33,4 +32,9 @@ export * from './IframeContainer';
|
|
|
33
32
|
export * from './Plugin';
|
|
34
33
|
export * from './KeyValueTable';
|
|
35
34
|
export * from './SelectPicker';
|
|
35
|
+
export * from './ShowMoreText';
|
|
36
|
+
export * from './CollapsibleList';
|
|
37
|
+
export * from './DeploymentConfigDiff';
|
|
36
38
|
export * from './DetectBottom';
|
|
39
|
+
export * from './Collapse';
|
|
40
|
+
export * from './FilterButton';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
+
import { Pair } from 'yaml';
|
|
2
3
|
import { MaterialInfo, SortingOrder } from '../Common';
|
|
3
4
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
|
|
4
5
|
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
|
@@ -24,8 +25,8 @@ export declare const getIsMaterialInfoAvailable: (materialInfo: MaterialInfo[])
|
|
|
24
25
|
export declare const getGitCommitInfo: (materialInfo: MaterialInfo) => GitTriggers;
|
|
25
26
|
export declare const stringComparatorBySortOrder: (a: string, b: string, sortOrder?: SortingOrder, isCaseSensitive?: boolean) => number;
|
|
26
27
|
export declare const numberComparatorBySortOrder: (a: number, b: number, sortOrder?: SortingOrder) => number;
|
|
27
|
-
export declare function versionComparatorBySortOrder(a: Record<string, any>, b: Record<string, any>, compareKey: string, orderBy: SortingOrder): any;
|
|
28
28
|
export declare const getWebhookEventIcon: (eventName: WebhookEventNameType) => JSX.Element;
|
|
29
|
+
export declare const yamlComparatorBySortOrder: (a: Pair, b: Pair, sortOrder?: SortingOrder) => number;
|
|
29
30
|
export declare const useIntersection: (target: React.RefObject<Element> | Element | null, options?: IntersectionOptions, callback?: IntersectionChangeHandler) => boolean;
|
|
30
31
|
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
31
32
|
export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
|
|
@@ -37,4 +38,9 @@ export declare const decode: (data: any, isEncoded?: boolean) => {};
|
|
|
37
38
|
export declare const isTimeStringAvailable: (time: string) => boolean;
|
|
38
39
|
export declare const getTimeDifference: (startTime: string, endTime: string) => string;
|
|
39
40
|
export declare const getFileNameFromHeaders: (headers: Headers) => string;
|
|
41
|
+
/**
|
|
42
|
+
* @description - Function to open a new tab with the given url
|
|
43
|
+
* @param url - url to be opened in new tab
|
|
44
|
+
*/
|
|
45
|
+
export declare const getHandleOpenURL: (url: string) => () => void;
|
|
40
46
|
export {};
|
|
@@ -1,7 +1,9 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { ResponseType } from '../../Common';
|
|
2
|
+
import { CIMaterialInfoType, GetCITriggerInfoParamsType, AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType } from './app.types';
|
|
2
3
|
|
|
3
4
|
export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<CIMaterialInfoType>;
|
|
4
5
|
/**
|
|
5
6
|
* The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
|
|
6
7
|
*/
|
|
7
8
|
export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, 'ciArtifactId'>) => Promise<CIMaterialInfoType>;
|
|
9
|
+
export declare const getAppEnvDeploymentConfig: (params: AppEnvDeploymentConfigPayloadType, signal?: AbortSignal) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
|
|
@@ -93,4 +93,120 @@ export interface GetCITriggerInfoParamsType {
|
|
|
93
93
|
envId: number | string;
|
|
94
94
|
ciArtifactId: number | string;
|
|
95
95
|
}
|
|
96
|
+
export declare enum AppEnvDeploymentConfigType {
|
|
97
|
+
PUBLISHED_ONLY = "PublishedOnly",
|
|
98
|
+
DRAFT_ONLY = "DraftOnly",
|
|
99
|
+
PUBLISHED_WITH_DRAFT = "PublishedWithDraft",
|
|
100
|
+
PREVIOUS_DEPLOYMENTS = "PreviousDeployments",
|
|
101
|
+
DEFAULT_VERSION = "DefaultVersion"
|
|
102
|
+
}
|
|
103
|
+
export interface DraftMetadataDTO {
|
|
104
|
+
appId: number;
|
|
105
|
+
envId: number;
|
|
106
|
+
resource: number;
|
|
107
|
+
resourceName: string;
|
|
108
|
+
action: number;
|
|
109
|
+
data: string;
|
|
110
|
+
userComment: string;
|
|
111
|
+
changeProposed: boolean;
|
|
112
|
+
protectNotificationConfig: {
|
|
113
|
+
[key: string]: null;
|
|
114
|
+
};
|
|
115
|
+
draftId: number;
|
|
116
|
+
draftVersionId: number;
|
|
117
|
+
draftState: number;
|
|
118
|
+
approvers: string[];
|
|
119
|
+
canApprove: boolean;
|
|
120
|
+
commentsCount: number;
|
|
121
|
+
dataEncrypted: boolean;
|
|
122
|
+
isAppAdmin: boolean;
|
|
123
|
+
}
|
|
124
|
+
export interface ConfigDatum {
|
|
125
|
+
name: string;
|
|
126
|
+
type: string;
|
|
127
|
+
external: boolean;
|
|
128
|
+
data: Record<string, string>;
|
|
129
|
+
defaultData: Record<string, string>;
|
|
130
|
+
global: boolean;
|
|
131
|
+
externalType: string;
|
|
132
|
+
esoSecretData: {};
|
|
133
|
+
defaultESOSecretData: {};
|
|
134
|
+
secretData: Record<string, string>;
|
|
135
|
+
defaultSecretData: Record<string, string>;
|
|
136
|
+
roleARN: string;
|
|
137
|
+
subPath: boolean;
|
|
138
|
+
filePermission: string;
|
|
139
|
+
overridden: boolean;
|
|
140
|
+
mountPath?: string;
|
|
141
|
+
defaultMountPath?: string;
|
|
142
|
+
}
|
|
143
|
+
export interface ConfigMapSecretDataConfigDatumDTO extends ConfigDatum {
|
|
144
|
+
draftMetadata: DraftMetadataDTO;
|
|
145
|
+
}
|
|
146
|
+
export interface ConfigMapSecretDataType {
|
|
147
|
+
id: number;
|
|
148
|
+
appId: number;
|
|
149
|
+
configData: ConfigMapSecretDataConfigDatumDTO[];
|
|
150
|
+
}
|
|
151
|
+
export declare enum ConfigResourceType {
|
|
152
|
+
ConfigMap = "ConfigMap",
|
|
153
|
+
Secret = "Secret",
|
|
154
|
+
DeploymentTemplate = "Deployment Template"
|
|
155
|
+
}
|
|
156
|
+
export interface DeploymentTemplateDTO {
|
|
157
|
+
resourceType: ConfigResourceType.DeploymentTemplate;
|
|
158
|
+
data: {
|
|
159
|
+
[key: string]: any;
|
|
160
|
+
};
|
|
161
|
+
deploymentDraftData: ConfigMapSecretDataType | null;
|
|
162
|
+
}
|
|
163
|
+
export interface ConfigMapSecretDataDTO {
|
|
164
|
+
resourceType: Extract<ConfigResourceType, ConfigResourceType.ConfigMap | ConfigResourceType.Secret>;
|
|
165
|
+
data: ConfigMapSecretDataType;
|
|
166
|
+
}
|
|
167
|
+
export interface AppEnvDeploymentConfigDTO {
|
|
168
|
+
deploymentTemplate: DeploymentTemplateDTO | null;
|
|
169
|
+
configMapData: ConfigMapSecretDataDTO | null;
|
|
170
|
+
secretsData: ConfigMapSecretDataDTO | null;
|
|
171
|
+
isAppAdmin: boolean;
|
|
172
|
+
}
|
|
173
|
+
export interface AppEnvDeploymentConfigPayloadType {
|
|
174
|
+
appName: string;
|
|
175
|
+
envName: string;
|
|
176
|
+
configType: AppEnvDeploymentConfigType;
|
|
177
|
+
identifierId?: number;
|
|
178
|
+
pipelineId?: number;
|
|
179
|
+
resourceType?: ConfigResourceType;
|
|
180
|
+
resourceId?: number;
|
|
181
|
+
resourceName?: string;
|
|
182
|
+
}
|
|
183
|
+
export declare enum TemplateListType {
|
|
184
|
+
DefaultVersions = 1,
|
|
185
|
+
PublishedOnEnvironments = 2,
|
|
186
|
+
DeployedOnSelfEnvironment = 3,
|
|
187
|
+
DeployedOnOtherEnvironment = 4
|
|
188
|
+
}
|
|
189
|
+
export interface TemplateListDTO {
|
|
190
|
+
chartRefId: number;
|
|
191
|
+
chartVersion?: string;
|
|
192
|
+
chartType?: string;
|
|
193
|
+
type: TemplateListType;
|
|
194
|
+
environmentId?: number;
|
|
195
|
+
environmentName?: string;
|
|
196
|
+
deploymentTemplateHistoryId?: number;
|
|
197
|
+
finishedOn?: string;
|
|
198
|
+
status?: string;
|
|
199
|
+
pipelineId?: number;
|
|
200
|
+
}
|
|
201
|
+
export declare enum DraftState {
|
|
202
|
+
Init = 1,
|
|
203
|
+
Discarded = 2,
|
|
204
|
+
Published = 3,
|
|
205
|
+
AwaitApproval = 4
|
|
206
|
+
}
|
|
207
|
+
export declare enum EnvResourceType {
|
|
208
|
+
ConfigMap = "configmap",
|
|
209
|
+
Secret = "secrets",
|
|
210
|
+
DeploymentTemplate = "deployment-template"
|
|
211
|
+
}
|
|
96
212
|
export {};
|
|
@@ -347,6 +347,9 @@ export declare const statusColor: {
|
|
|
347
347
|
unabletofetch: string;
|
|
348
348
|
hibernating: string;
|
|
349
349
|
};
|
|
350
|
+
export declare const PULSATING_STATUS_MAP: {
|
|
351
|
+
[key in keyof typeof statusColor]?: boolean;
|
|
352
|
+
};
|
|
350
353
|
export declare const APP_STATUS_HEADERS: string[];
|
|
351
354
|
export declare const MATERIAL_EXCLUDE_TIPPY_TEXT = "Not available for build as this commit contains changes in excluded files or folders";
|
|
352
355
|
export declare const AppListConstants: {
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -210,8 +210,10 @@ export declare enum DefaultUserKey {
|
|
|
210
210
|
}
|
|
211
211
|
export declare enum Severity {
|
|
212
212
|
CRITICAL = "critical",
|
|
213
|
-
|
|
214
|
-
|
|
213
|
+
HIGH = "high",
|
|
214
|
+
MEDIUM = "medium",
|
|
215
|
+
LOW = "low",
|
|
216
|
+
UNKNOWN = "unknown"
|
|
215
217
|
}
|
|
216
218
|
export declare enum ImagePromotionTabs {
|
|
217
219
|
REQUEST = "request",
|
|
@@ -380,16 +382,19 @@ export declare enum ResourceVersionType {
|
|
|
380
382
|
v1 = "v1",
|
|
381
383
|
alpha1 = "alpha1"
|
|
382
384
|
}
|
|
385
|
+
export interface SeverityCount {
|
|
386
|
+
critical: number;
|
|
387
|
+
high: number;
|
|
388
|
+
medium: number;
|
|
389
|
+
low: number;
|
|
390
|
+
unknown: number;
|
|
391
|
+
}
|
|
383
392
|
export declare enum PolicyKindType {
|
|
384
393
|
lockConfiguration = "lock-configuration"
|
|
385
394
|
}
|
|
386
395
|
export interface LastExecutionResultType {
|
|
387
396
|
lastExecution: string;
|
|
388
|
-
severityCount:
|
|
389
|
-
critical: number;
|
|
390
|
-
moderate: number;
|
|
391
|
-
low: number;
|
|
392
|
-
};
|
|
397
|
+
severityCount: SeverityCount;
|
|
393
398
|
vulnerabilities: VulnerabilityType[];
|
|
394
399
|
scanExecutionId?: number;
|
|
395
400
|
appId?: number;
|
|
@@ -536,6 +541,13 @@ export interface BatchConfigType {
|
|
|
536
541
|
export interface scrollableInterface {
|
|
537
542
|
autoBottomScroll: boolean;
|
|
538
543
|
}
|
|
544
|
+
export declare enum URLProtocolType {
|
|
545
|
+
HTTP = "http:",
|
|
546
|
+
HTTPS = "https:",
|
|
547
|
+
SSH = "ssh:",
|
|
548
|
+
SMTP = "smtp:",
|
|
549
|
+
S3 = "s3:"
|
|
550
|
+
}
|
|
539
551
|
export type BaseFilterQueryParams<T> = {
|
|
540
552
|
/**
|
|
541
553
|
* Offset for the list result
|
|
@@ -1,3 +1,5 @@
|
|
|
1
|
+
import { URLProtocolType } from './types';
|
|
2
|
+
|
|
1
3
|
export interface ValidationResponseType {
|
|
2
4
|
isValid: boolean;
|
|
3
5
|
message?: string;
|
|
@@ -20,6 +22,7 @@ export declare const validateStringLength: (value: string, maxLimit: number, min
|
|
|
20
22
|
export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
|
|
21
23
|
export declare const validateRequiredPositiveInteger: (value: string | number) => ValidationResponseType;
|
|
22
24
|
export declare const validateURL: (url: string, allowBase64Url?: boolean) => ValidationResponseType;
|
|
25
|
+
export declare const validateProtocols: (url: string, protocols: URLProtocolType[], isRequired?: boolean) => ValidationResponseType;
|
|
23
26
|
export declare const validateIfImageExist: (url: string) => Promise<ValidationResponseType>;
|
|
24
27
|
export declare const validateUniqueKeys: (keys: string[]) => {
|
|
25
28
|
isValid: boolean;
|
|
@@ -28,4 +31,3 @@ export declare const validateUniqueKeys: (keys: string[]) => {
|
|
|
28
31
|
isValid: boolean;
|
|
29
32
|
message: string;
|
|
30
33
|
};
|
|
31
|
-
export declare const validateJSON: (json: string) => ValidationResponseType;
|