@devtron-labs/devtron-fe-common-lib 0.2.5-beta-2 → 0.2.6
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/Common.service.d.ts +0 -6
- package/dist/Common/Constants.d.ts +2 -12
- package/dist/Common/RJSF/constants.d.ts +5 -0
- package/dist/Common/RJSF/index.d.ts +1 -0
- package/dist/Common/Security/ScanVulnerabilitiesTable.d.ts +1 -1
- package/dist/Common/Types.d.ts +2 -3
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/basicViewSchema.json.d.ts +273 -0
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/fallbackJobsNCronJobGuiSchema.json.d.ts +157 -0
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/index.d.ts +2 -0
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/types.d.ts +24 -0
- package/dist/Pages/GlobalConfigurations/DeploymentCharts/utils.d.ts +4 -0
- package/dist/Pages/GlobalConfigurations/index.d.ts +1 -0
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/types.d.ts +1 -3
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +3 -47
- package/dist/Shared/Components/ScannedObjectBar/ScannedObjectBar.d.ts +4 -0
- package/dist/Shared/Components/ScannedObjectBar/index.d.ts +1 -0
- package/dist/Shared/Components/ScannedObjectBar/types.d.ts +7 -0
- 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 +0 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +0 -16
- package/dist/Shared/Components/SelectPicker/utils.d.ts +2 -11
- package/dist/Shared/Components/Vulnerabilities/utils.d.ts +0 -1
- package/dist/Shared/Components/index.d.ts +1 -4
- package/dist/Shared/Helpers.d.ts +1 -2
- package/dist/Shared/Services/app.service.d.ts +1 -3
- package/dist/Shared/Services/app.types.d.ts +0 -116
- package/dist/Shared/constants.d.ts +0 -4
- package/dist/Shared/types.d.ts +7 -31
- package/dist/Shared/validations.d.ts +1 -3
- package/dist/assets/editor.worker-60ba9509.js +12 -0
- package/dist/assets/index.css +1 -1
- package/dist/assets/yaml.worker-3bbe780a.js +472 -0
- package/dist/{cssMode-07da02cd.js → cssMode-3a640c3a.js} +1 -1
- package/dist/{freemarker2-9fd83d43.js → freemarker2-7fcef7e9.js} +1 -1
- package/dist/{handlebars-18dccb78.js → handlebars-bb8d8c8f.js} +1 -1
- package/dist/{html-201758e1.js → html-d9d12fbc.js} +1 -1
- package/dist/{htmlMode-10964d27.js → htmlMode-6f5e366b.js} +1 -1
- package/dist/{index-8bb539c6.js → index-50b1e60a.js} +30469 -30939
- package/dist/index.d.ts +0 -2
- package/dist/index.js +482 -500
- package/dist/{javascript-4327a7e8.js → javascript-ee21afc6.js} +1 -1
- package/dist/{jsonMode-e59deb57.js → jsonMode-f243ae3a.js} +1 -1
- package/dist/{liquid-c96eb385.js → liquid-210197a2.js} +1 -1
- package/dist/{mdx-0eb9a0f4.js → mdx-47b9f654.js} +1 -1
- package/dist/{python-d79b6153.js → python-d072ae6f.js} +1 -1
- package/dist/{razor-4d69a090.js → razor-bbc7aba8.js} +1 -1
- package/dist/{tsMode-b991e21c.js → tsMode-e3a0b064.js} +1 -1
- package/dist/{typescript-0b46acf6.js → typescript-e0f3eca9.js} +1 -1
- package/dist/{xml-eb10ea00.js → xml-1408e523.js} +1 -1
- package/dist/{yaml-a9060343.js → yaml-81fab749.js} +1 -1
- package/package.json +1 -1
- package/dist/Common/Security/types.d.ts +0 -4
- package/dist/Shared/Components/Collapse/Collapse.d.ts +0 -3
- package/dist/Shared/Components/Collapse/index.d.ts +0 -2
- package/dist/Shared/Components/Collapse/types.d.ts +0 -7
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.component.d.ts +0 -3
- package/dist/Shared/Components/CollapsibleList/CollapsibleList.types.d.ts +0 -96
- package/dist/Shared/Components/CollapsibleList/index.d.ts +0 -2
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.component.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +0 -38
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffAccordion.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffMain.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffNavigation.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +0 -3
- package/dist/Shared/Components/DeploymentConfigDiff/types.d.ts +0 -69
- package/dist/Shared/Components/FilterButton/FilterButton.d.ts +0 -5
- package/dist/Shared/Components/FilterButton/index.d.ts +0 -1
- package/dist/Shared/Components/FilterButton/types.d.ts +0 -12
- package/dist/Shared/Components/FilterButton/utils.d.ts +0 -15
- package/dist/Shared/Components/KeyValueTable/constants.d.ts +0 -2
|
@@ -36,29 +36,6 @@ export interface KeyValueConfig<K extends string> {
|
|
|
36
36
|
/** An array of key-value rows. */
|
|
37
37
|
rows: KeyValueRow<K>[];
|
|
38
38
|
}
|
|
39
|
-
type ErrorUIProps = {
|
|
40
|
-
/**
|
|
41
|
-
* Indicates whether to show errors.
|
|
42
|
-
*/
|
|
43
|
-
showError: true;
|
|
44
|
-
/**
|
|
45
|
-
* @default - false
|
|
46
|
-
* If true, would validate for duplicate keys and if present would show error tooltip on the cell.
|
|
47
|
-
*/
|
|
48
|
-
validateDuplicateKeys?: boolean;
|
|
49
|
-
/**
|
|
50
|
-
* @default - false
|
|
51
|
-
* If true, would validate for rows having values but no key and if error would show error tooltip on the cell.
|
|
52
|
-
*/
|
|
53
|
-
validateEmptyKeys?: boolean;
|
|
54
|
-
} | {
|
|
55
|
-
/**
|
|
56
|
-
* Indicates whether to show errors.
|
|
57
|
-
*/
|
|
58
|
-
showError?: false;
|
|
59
|
-
validateDuplicateKeys?: never;
|
|
60
|
-
validateEmptyKeys?: never;
|
|
61
|
-
};
|
|
62
39
|
/**
|
|
63
40
|
* Type representing a mask for key-value pairs.
|
|
64
41
|
* @template K - A string representing the key type.
|
|
@@ -73,7 +50,7 @@ export type KeyValuePlaceholder<K extends string> = {
|
|
|
73
50
|
* Interface representing the properties for a key-value table component.
|
|
74
51
|
* @template K - A string representing the key type.
|
|
75
52
|
*/
|
|
76
|
-
export
|
|
53
|
+
export interface KeyValueTableProps<K extends string> {
|
|
77
54
|
/** The configuration for the key-value table. */
|
|
78
55
|
config: KeyValueConfig<K>;
|
|
79
56
|
/** An optional mask for the key-value pairs. */
|
|
@@ -83,10 +60,8 @@ export type KeyValueTableProps<K extends string> = {
|
|
|
83
60
|
isSortable?: boolean;
|
|
84
61
|
/** An optional React node for a custom header component. */
|
|
85
62
|
headerComponent?: ReactNode;
|
|
86
|
-
/** When true, data addition field will not be shown
|
|
63
|
+
/** When true, data addition field will not be shown */
|
|
87
64
|
isAdditionNotAllowed?: boolean;
|
|
88
|
-
/** When true, data add or update is disabled. */
|
|
89
|
-
readOnly?: boolean;
|
|
90
65
|
/**
|
|
91
66
|
* An optional function to handle changes in the table rows.
|
|
92
67
|
* @param rowId - The id of the row that changed.
|
|
@@ -99,23 +74,4 @@ export type KeyValueTableProps<K extends string> = {
|
|
|
99
74
|
* @param deletedRowIndex - The index of the row that was deleted.
|
|
100
75
|
*/
|
|
101
76
|
onDelete?: (deletedRowId: string | number) => void;
|
|
102
|
-
|
|
103
|
-
* The function to use to validate the value of the cell.
|
|
104
|
-
* @param value - The value to validate.
|
|
105
|
-
* @param key - The row key of the value.
|
|
106
|
-
* @param rowId - The id of the row.
|
|
107
|
-
* @returns Return true if the value is valid, otherwise false
|
|
108
|
-
* and set `showError` to `true` and provide errorMessages array to show error message.
|
|
109
|
-
*/
|
|
110
|
-
validationSchema?: (value: string, key: K, rowId: string | number) => boolean;
|
|
111
|
-
/**
|
|
112
|
-
* An array of error messages to be displayed in the cell error tooltip.
|
|
113
|
-
*/
|
|
114
|
-
errorMessages?: string[];
|
|
115
|
-
/**
|
|
116
|
-
* A callback function called when an error occurs.
|
|
117
|
-
* @param errorState - The error state, true when any cell has error, otherwise false.
|
|
118
|
-
*/
|
|
119
|
-
onError?: (errorState: boolean) => void;
|
|
120
|
-
} & ErrorUIProps;
|
|
121
|
-
export {};
|
|
77
|
+
}
|
|
@@ -0,0 +1,4 @@
|
|
|
1
|
+
import { ScannedObjectBarProps } from './types';
|
|
2
|
+
|
|
3
|
+
declare const ScannedObjectBar: ({ criticalVulnerabilitiesCount, moderateVulnerabilitiesCount, lowVulnerabilitiesCount, objectBarClassName, removeObjectCountMargin, }: ScannedObjectBarProps) => JSX.Element;
|
|
4
|
+
export default ScannedObjectBar;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { default as ScannedObjectBar } from './ScannedObjectBar';
|
|
@@ -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,
|
|
84
|
+
declare const SelectPicker: ({ error, icon, renderMenuListFooter, helperText, placeholder, label, showSelectedOptionIcon, size, disabledTippyContent, showSelectedOptionsCount, menuSize, ...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: (
|
|
9
|
+
export declare const SelectPickerOption: (props: OptionProps<SelectPickerOptionType>) => JSX.Element;
|
|
10
10
|
export declare const SelectPickerMenuList: ({ renderMenuListFooter, ...props }: MenuListProps<SelectPickerOptionType> & Pick<SelectPickerProps, 'renderMenuListFooter'>) => JSX.Element;
|
|
@@ -17,10 +17,6 @@ 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
|
-
}
|
|
24
20
|
type SelectProps = ReactSelectProps<SelectPickerOptionType>;
|
|
25
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'>> {
|
|
26
22
|
/**
|
|
@@ -74,17 +70,5 @@ export interface SelectPickerProps extends Pick<SelectProps, 'options' | 'value'
|
|
|
74
70
|
* @default 'ComponentSizeType.small'
|
|
75
71
|
*/
|
|
76
72
|
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;
|
|
89
73
|
}
|
|
90
74
|
export {};
|
|
@@ -1,13 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { StylesConfig } from 'react-select';
|
|
2
2
|
import { SelectPickerOptionType, SelectPickerProps } from './type';
|
|
3
3
|
|
|
4
|
-
export declare const getCommonSelectStyle: ({ error, size, menuSize,
|
|
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;
|
|
4
|
+
export declare const getCommonSelectStyle: ({ error, size, menuSize, }: Pick<SelectPickerProps, 'error' | 'size' | 'menuSize'>) => StylesConfig<SelectPickerOptionType>;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { LastExecutionResponseType, LastExecutionResultType } from '../../types';
|
|
2
2
|
|
|
3
|
-
export declare const getSortedVulnerabilities: (vulnerabilities: any) => any;
|
|
4
3
|
export declare const getParsedScanResult: (scanResult: any) => LastExecutionResultType;
|
|
5
4
|
export declare const parseLastExecutionResponse: (response: any) => LastExecutionResponseType;
|
|
@@ -10,6 +10,7 @@ export * from './FilterChips';
|
|
|
10
10
|
export * from './ActivityIndicator';
|
|
11
11
|
export * from './GenericSectionErrorState';
|
|
12
12
|
export * from './KeyValueList';
|
|
13
|
+
export * from './ScannedObjectBar';
|
|
13
14
|
export * from './InfoIconTippy';
|
|
14
15
|
export * from './EditableTextArea';
|
|
15
16
|
export * from './Header';
|
|
@@ -32,8 +33,4 @@ export * from './IframeContainer';
|
|
|
32
33
|
export * from './Plugin';
|
|
33
34
|
export * from './KeyValueTable';
|
|
34
35
|
export * from './SelectPicker';
|
|
35
|
-
export * from './CollapsibleList';
|
|
36
|
-
export * from './DeploymentConfigDiff';
|
|
37
36
|
export * from './DetectBottom';
|
|
38
|
-
export * from './Collapse';
|
|
39
|
-
export * from './FilterButton';
|
package/dist/Shared/Helpers.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { ReactElement } from 'react';
|
|
2
|
-
import { Pair } from 'yaml';
|
|
3
2
|
import { MaterialInfo, SortingOrder } from '../Common';
|
|
4
3
|
import { GitTriggers, IntersectionChangeHandler, IntersectionOptions, WebhookEventNameType } from './types';
|
|
5
4
|
import { AggregatedNodes, DeploymentStatusDetailsBreakdownDataType, DeploymentStatusDetailsType, PodMetadatum } from './Components';
|
|
@@ -25,8 +24,8 @@ export declare const getIsMaterialInfoAvailable: (materialInfo: MaterialInfo[])
|
|
|
25
24
|
export declare const getGitCommitInfo: (materialInfo: MaterialInfo) => GitTriggers;
|
|
26
25
|
export declare const stringComparatorBySortOrder: (a: string, b: string, sortOrder?: SortingOrder, isCaseSensitive?: boolean) => number;
|
|
27
26
|
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;
|
|
30
29
|
export declare const useIntersection: (target: React.RefObject<Element> | Element | null, options?: IntersectionOptions, callback?: IntersectionChangeHandler) => boolean;
|
|
31
30
|
export declare const isNullOrUndefined: (value: unknown) => boolean;
|
|
32
31
|
export declare const handleDisableSubmitOnEnter: (event: React.KeyboardEvent<HTMLFormElement>) => void;
|
|
@@ -1,9 +1,7 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { CIMaterialInfoType, GetCITriggerInfoParamsType, AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType } from './app.types';
|
|
1
|
+
import { CIMaterialInfoType, GetCITriggerInfoParamsType } from './app.types';
|
|
3
2
|
|
|
4
3
|
export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<CIMaterialInfoType>;
|
|
5
4
|
/**
|
|
6
5
|
* The only difference between this and getCITriggerInfo is it doesn't have env and trigger related meta info
|
|
7
6
|
*/
|
|
8
7
|
export declare const getArtifactInfo: (params: Pick<GetCITriggerInfoParamsType, 'ciArtifactId'>) => Promise<CIMaterialInfoType>;
|
|
9
|
-
export declare const getAppEnvDeploymentConfig: (params: AppEnvDeploymentConfigPayloadType, signal?: AbortSignal) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
|
|
@@ -93,120 +93,4 @@ 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
|
-
}
|
|
212
96
|
export {};
|
|
@@ -1,6 +1,3 @@
|
|
|
1
|
-
import { OptionType } from '../Common/Types';
|
|
2
|
-
import { CDMaterialSidebarType } from './types';
|
|
3
|
-
|
|
4
1
|
export declare const ARTIFACT_STATUS: {
|
|
5
2
|
PROGRESSING: string;
|
|
6
3
|
DEGRADED: string;
|
|
@@ -400,4 +397,3 @@ export declare enum SelectAllGroupedResourceIdentifiers {
|
|
|
400
397
|
allExistingAndFutureProdEnvironments = "-2",
|
|
401
398
|
allExistingAndFutureEnvironments = "-3"
|
|
402
399
|
}
|
|
403
|
-
export declare const CD_MATERIAL_SIDEBAR_TABS: OptionType<CDMaterialSidebarType, CDMaterialSidebarType>[];
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams } from '../Common';
|
|
2
|
-
import { KeyValueListType } from './Components';
|
|
3
2
|
import { EnvironmentTypeEnum, PatchOperationType } from './constants';
|
|
4
3
|
|
|
5
4
|
export declare enum EnvType {
|
|
@@ -211,10 +210,8 @@ export declare enum DefaultUserKey {
|
|
|
211
210
|
}
|
|
212
211
|
export declare enum Severity {
|
|
213
212
|
CRITICAL = "critical",
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
LOW = "low",
|
|
217
|
-
UNKNOWN = "unknown"
|
|
213
|
+
MODERATE = "moderate",
|
|
214
|
+
LOW = "low"
|
|
218
215
|
}
|
|
219
216
|
export declare enum ImagePromotionTabs {
|
|
220
217
|
REQUEST = "request",
|
|
@@ -288,10 +285,6 @@ export declare enum CIMaterialSidebarType {
|
|
|
288
285
|
CODE_SOURCE = "Code Source",
|
|
289
286
|
PARAMETERS = "Parameters"
|
|
290
287
|
}
|
|
291
|
-
export declare enum CDMaterialSidebarType {
|
|
292
|
-
IMAGE = "Image",
|
|
293
|
-
PARAMETERS = "Parameters"
|
|
294
|
-
}
|
|
295
288
|
/**
|
|
296
289
|
* @example Usage with specific enum for path & `unknown` type for value
|
|
297
290
|
* ```ts
|
|
@@ -387,19 +380,16 @@ export declare enum ResourceVersionType {
|
|
|
387
380
|
v1 = "v1",
|
|
388
381
|
alpha1 = "alpha1"
|
|
389
382
|
}
|
|
390
|
-
export interface SeverityCount {
|
|
391
|
-
critical: number;
|
|
392
|
-
high: number;
|
|
393
|
-
medium: number;
|
|
394
|
-
low: number;
|
|
395
|
-
unknown: number;
|
|
396
|
-
}
|
|
397
383
|
export declare enum PolicyKindType {
|
|
398
384
|
lockConfiguration = "lock-configuration"
|
|
399
385
|
}
|
|
400
386
|
export interface LastExecutionResultType {
|
|
401
387
|
lastExecution: string;
|
|
402
|
-
severityCount:
|
|
388
|
+
severityCount: {
|
|
389
|
+
critical: number;
|
|
390
|
+
moderate: number;
|
|
391
|
+
low: number;
|
|
392
|
+
};
|
|
403
393
|
vulnerabilities: VulnerabilityType[];
|
|
404
394
|
scanExecutionId?: number;
|
|
405
395
|
appId?: number;
|
|
@@ -546,13 +536,6 @@ export interface BatchConfigType {
|
|
|
546
536
|
export interface scrollableInterface {
|
|
547
537
|
autoBottomScroll: boolean;
|
|
548
538
|
}
|
|
549
|
-
export declare enum URLProtocolType {
|
|
550
|
-
HTTP = "http:",
|
|
551
|
-
HTTPS = "https:",
|
|
552
|
-
SSH = "ssh:",
|
|
553
|
-
SMTP = "smtp:",
|
|
554
|
-
S3 = "s3:"
|
|
555
|
-
}
|
|
556
539
|
export type BaseFilterQueryParams<T> = {
|
|
557
540
|
/**
|
|
558
541
|
* Offset for the list result
|
|
@@ -571,11 +554,4 @@ export type BaseFilterQueryParams<T> = {
|
|
|
571
554
|
*/
|
|
572
555
|
showAll?: boolean;
|
|
573
556
|
} & SortingParams<T>;
|
|
574
|
-
export interface RuntimeParamsListItemType extends KeyValueListType {
|
|
575
|
-
id: number;
|
|
576
|
-
}
|
|
577
|
-
export declare enum RuntimeParamsHeadingType {
|
|
578
|
-
KEY = "key",
|
|
579
|
-
VALUE = "value"
|
|
580
|
-
}
|
|
581
557
|
export {};
|
|
@@ -1,5 +1,3 @@
|
|
|
1
|
-
import { URLProtocolType } from './types';
|
|
2
|
-
|
|
3
1
|
export interface ValidationResponseType {
|
|
4
2
|
isValid: boolean;
|
|
5
3
|
message?: string;
|
|
@@ -22,7 +20,6 @@ export declare const validateStringLength: (value: string, maxLimit: number, min
|
|
|
22
20
|
export declare const validateRequiredPositiveNumber: (value: string | number) => ValidationResponseType;
|
|
23
21
|
export declare const validateRequiredPositiveInteger: (value: string | number) => ValidationResponseType;
|
|
24
22
|
export declare const validateURL: (url: string, allowBase64Url?: boolean) => ValidationResponseType;
|
|
25
|
-
export declare const validateProtocols: (url: string, protocols: URLProtocolType[], isRequired?: boolean) => ValidationResponseType;
|
|
26
23
|
export declare const validateIfImageExist: (url: string) => Promise<ValidationResponseType>;
|
|
27
24
|
export declare const validateUniqueKeys: (keys: string[]) => {
|
|
28
25
|
isValid: boolean;
|
|
@@ -31,3 +28,4 @@ export declare const validateUniqueKeys: (keys: string[]) => {
|
|
|
31
28
|
isValid: boolean;
|
|
32
29
|
message: string;
|
|
33
30
|
};
|
|
31
|
+
export declare const validateJSON: (json: string) => ValidationResponseType;
|