@devtron-labs/devtron-fe-common-lib 1.14.2 → 1.15.0-beta-2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/{@code-editor-CVEmKqGD.js → @code-editor-BOA86Jx7.js} +11052 -10723
- package/dist/{@common-rjsf-C9V3H0_L.js → @common-rjsf-CGZ8FKPl.js} +222 -230
- package/dist/{@framer-motion-eB9Rj-_8.js → @framer-motion-Dchiw-Rb.js} +3 -3
- package/dist/{@react-dates-CJpoumtu.js → @react-dates-D5kydtW-.js} +1 -1
- package/dist/{@react-select-CUbAbK6L.js → @react-select-Cmser7OI.js} +6 -6
- package/dist/{@react-virtualized-sticky-tree-Ckb5S1RC.js → @react-virtualized-sticky-tree-DMnFy9PE.js} +1 -1
- package/dist/{@vendor-4cEd9dja.js → @vendor-STJ9h0oI.js} +14016 -15910
- package/dist/Common/Constants.d.ts +4 -11
- package/dist/Common/Dialogs/Types.d.ts +0 -17
- package/dist/Common/Dialogs/index.d.ts +0 -1
- package/dist/Common/RJSF/widgets/Checkbox.d.ts +1 -1
- package/dist/Common/SegmentedControl/Segment.d.ts +1 -1
- package/dist/Common/SegmentedControl/types.d.ts +3 -2
- package/dist/Common/TippyCustomized.d.ts +1 -1
- package/dist/Common/Types.d.ts +8 -48
- package/dist/Common/index.d.ts +0 -2
- package/dist/Shared/Components/ActionMenu/types.d.ts +31 -4
- package/dist/Shared/Components/ActionMenu/useActionMenu.hook.d.ts +4 -2
- package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
- package/dist/Shared/Components/Button/constants.d.ts +1 -0
- package/dist/Shared/Components/Button/types.d.ts +14 -1
- package/dist/Shared/Components/Button/utils.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/DeploymentHistoryDiffView.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +2 -1
- package/dist/Shared/Components/CICDHistory/service.d.ts +1 -7
- package/dist/Shared/Components/CICDHistory/types.d.ts +2 -19
- package/dist/Shared/Components/CodeEditor/CodeEditor.d.ts +1 -1
- package/dist/Shared/Components/CodeEditor/CodeEditorRenderer.d.ts +1 -1
- package/dist/Shared/Components/CodeEditor/Extensions/findAndReplace.d.ts +2 -1
- package/dist/Shared/Components/CodeEditor/types.d.ts +14 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +18 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.utils.d.ts +0 -2
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiffRadioSelect.d.ts +7 -0
- package/dist/Shared/Components/DeploymentConfigDiff/index.d.ts +1 -0
- package/dist/Shared/Components/DocLink/DocLink.d.ts +2 -0
- package/dist/Shared/Components/DocLink/constants.d.ts +94 -0
- package/dist/Shared/Components/DocLink/index.d.ts +4 -0
- package/dist/Shared/Components/DocLink/types.d.ts +19 -0
- package/dist/Shared/Components/DocLink/utils.d.ts +2 -0
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTable.d.ts +1 -1
- package/dist/Shared/Components/DynamicDataTable/DynamicDataTableRow.d.ts +1 -1
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +8 -4
- package/dist/Shared/Components/FeatureDescription/types.d.ts +2 -1
- package/dist/Shared/Components/FramerComponents/index.d.ts +2 -3
- package/dist/Shared/Components/GenericInfoCard/GenericInfoCardListing.d.ts +2 -0
- package/dist/Shared/Components/GenericInfoCard/GenericInfoListSkeleton.d.ts +2 -0
- package/dist/Shared/Components/GenericInfoCard/index.d.ts +3 -1
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +13 -0
- package/dist/Shared/Components/Header/ProfileMenu.d.ts +2 -0
- package/dist/Shared/Components/Header/types.d.ts +8 -8
- package/dist/Shared/Components/Header/utils.d.ts +0 -2
- package/dist/Shared/Components/Icon/Icon.d.ts +9 -0
- package/dist/Shared/Components/InfoIconTippy/InfoIconTippy.d.ts +1 -1
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.component.d.ts +1 -1
- package/dist/Shared/Components/KeyValueTable/KeyValueTable.types.d.ts +1 -1
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +2 -1
- package/dist/Shared/Components/NumbersCount/index.d.ts +1 -0
- package/dist/Shared/Components/Popover/Popover.component.d.ts +1 -1
- package/dist/Shared/Components/Popover/types.d.ts +10 -3
- package/dist/Shared/Components/Popover/usePopover.hook.d.ts +1 -1
- package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +1 -1
- package/dist/Shared/Components/Switch/Switch.component.d.ts +3 -0
- package/dist/Shared/Components/Switch/constants.d.ts +14 -0
- package/dist/Shared/Components/Switch/index.d.ts +2 -0
- package/dist/Shared/Components/Switch/types.d.ts +111 -0
- package/dist/Shared/Components/Switch/utils.d.ts +12 -0
- package/dist/Shared/Components/SwitchThemeDialog/SwitchThemeDialog.component.d.ts +3 -0
- package/dist/Shared/Components/SwitchThemeDialog/index.d.ts +2 -0
- package/dist/Shared/Components/SwitchThemeDialog/types.d.ts +35 -0
- package/dist/Shared/Components/ThemeSwitcher/ThemeSwitcher.component.d.ts +1 -1
- package/dist/Shared/Components/ThemeSwitcher/index.d.ts +0 -1
- package/dist/Shared/Components/ThemeSwitcher/types.d.ts +1 -1
- package/dist/Shared/Components/ToggleResolveScopedVariables/ToggleResolveScopedVariables.component.d.ts +1 -1
- package/dist/Shared/Components/ToggleResolveScopedVariables/types.d.ts +1 -1
- package/dist/Shared/Components/index.d.ts +3 -1
- package/dist/Shared/Helpers.d.ts +1 -0
- package/dist/Shared/Providers/index.d.ts +1 -1
- package/dist/Shared/Providers/types.d.ts +47 -9
- package/dist/Shared/Services/app.types.d.ts +7 -2
- package/dist/Shared/constants.d.ts +3 -1
- package/dist/Shared/types.d.ts +32 -2
- package/dist/Shared/validations.d.ts +1 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/empty-create.661d9355.png +0 -0
- package/dist/assets/ic-app-template.82736707.svg +23 -0
- package/dist/assets/ic-asterisk.ab224e72.svg +3 -0
- package/dist/assets/ic-devtron-app.a8b688d3.svg +23 -0
- package/dist/assets/ic-devtron-job.1b216232.svg +10 -0
- package/dist/assets/ic-email.78fed574.svg +3 -0
- package/dist/assets/ic-key-enter.59d23056.svg +3 -0
- package/dist/assets/ic-spray-can.624b202a.svg +3 -0
- package/dist/assets/ic-world-globe.877fa6a0.svg +3 -0
- package/dist/index.js +727 -724
- package/package.json +3 -4
- package/dist/Common/Dialogs/ConfirmationDialog.d.ts +0 -11
- package/dist/Common/InfoColorBar/InfoColourbar.d.ts +0 -6
- package/dist/Common/Toggle/Toggle.d.ts +0 -18
- package/dist/Shared/Components/DiffViewer/DiffViewer.component.d.ts +0 -41
- package/dist/Shared/Components/DiffViewer/constants.d.ts +0 -2
- package/dist/Shared/Components/DiffViewer/index.d.ts +0 -1
- package/dist/Shared/Components/DiffViewer/types.d.ts +0 -9
- package/dist/Shared/Components/FramerComponents/MotionDiv.d.ts +0 -2
- package/dist/Shared/Components/LogoutCard.d.ts +0 -10
- package/dist/assets/ic-arrow-square-out.3d1a0d41.svg +0 -19
@@ -0,0 +1,35 @@
|
|
1
|
+
import { AppThemeType, useTheme } from '../../Providers';
|
2
|
+
type ThemePreferenceType = ReturnType<typeof useTheme>['themePreference'];
|
3
|
+
export type SwitchThemeDialogProps = {
|
4
|
+
/**
|
5
|
+
* @description The initial theme preference of the user fetched from api, in case of error would be null
|
6
|
+
*/
|
7
|
+
initialThemePreference: ThemePreferenceType;
|
8
|
+
handleUpdateUserThemePreference: (themePreference: ThemePreferenceType) => void;
|
9
|
+
handleClose: () => void;
|
10
|
+
} & ({
|
11
|
+
/**
|
12
|
+
* @default false
|
13
|
+
* @description Required for storybook
|
14
|
+
*/
|
15
|
+
disableAPICalls?: false;
|
16
|
+
} | {
|
17
|
+
currentUserPreferences?: never;
|
18
|
+
disableAPICalls: true;
|
19
|
+
});
|
20
|
+
export interface ThemePreferenceOptionProps {
|
21
|
+
selectedThemePreference: SwitchThemeDialogProps['initialThemePreference'];
|
22
|
+
value: SwitchThemeDialogProps['initialThemePreference'];
|
23
|
+
handleChangedThemePreference: (themePreference: SwitchThemeDialogProps['initialThemePreference']) => void;
|
24
|
+
}
|
25
|
+
export interface ThemePreferenceLabelFigureProps extends Pick<ThemePreferenceOptionProps, 'value'> {
|
26
|
+
isSelected: boolean;
|
27
|
+
}
|
28
|
+
export interface BaseLabelFigureProps extends Pick<ThemePreferenceLabelFigureProps, 'isSelected'> {
|
29
|
+
value: AppThemeType;
|
30
|
+
/**
|
31
|
+
* @default false
|
32
|
+
*/
|
33
|
+
noLeftRadius?: boolean;
|
34
|
+
}
|
35
|
+
export {};
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { ToggleResolveScopedVariablesProps } from './types';
|
2
|
-
declare const ToggleResolveScopedVariables: ({ resolveScopedVariables, handleToggleScopedVariablesView, isDisabled, showTooltip,
|
2
|
+
declare const ToggleResolveScopedVariables: ({ name, resolveScopedVariables, handleToggleScopedVariablesView, isDisabled, showTooltip, }: ToggleResolveScopedVariablesProps) => JSX.Element;
|
3
3
|
export default ToggleResolveScopedVariables;
|
@@ -1,4 +1,5 @@
|
|
1
1
|
export interface ToggleResolveScopedVariablesProps {
|
2
|
+
name: string;
|
2
3
|
resolveScopedVariables: boolean;
|
3
4
|
handleToggleScopedVariablesView: () => void;
|
4
5
|
isDisabled?: boolean;
|
@@ -6,5 +7,4 @@ export interface ToggleResolveScopedVariablesProps {
|
|
6
7
|
* @default true
|
7
8
|
*/
|
8
9
|
showTooltip?: boolean;
|
9
|
-
throttleOnChange?: boolean;
|
10
10
|
}
|
@@ -26,7 +26,7 @@ export * from './DatePicker';
|
|
26
26
|
export * from './DeploymentConfigDiff';
|
27
27
|
export * from './DeploymentStatusBreakdown';
|
28
28
|
export * from './DetectBottom';
|
29
|
-
export * from './
|
29
|
+
export * from './DocLink';
|
30
30
|
export * from './DynamicDataTable';
|
31
31
|
export * from './EditableTextArea';
|
32
32
|
export * from './EditImageFormField';
|
@@ -72,6 +72,8 @@ export * from './SelectPicker';
|
|
72
72
|
export * from './ShowMoreText';
|
73
73
|
export * from './SSOProviderIcon';
|
74
74
|
export * from './StatusComponent';
|
75
|
+
export * from './Switch';
|
76
|
+
export * from './SwitchThemeDialog';
|
75
77
|
export * from './TabGroup';
|
76
78
|
export * from './Table';
|
77
79
|
export * from './TagsKeyValueTable';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -101,4 +101,5 @@ export declare const deriveBorderRadiusAndBorderClassFromConfig: ({ borderConfig
|
|
101
101
|
export declare const getClassNameForStickyHeaderWithShadow: (isStuck: boolean, topClassName?: string) => string;
|
102
102
|
export declare const clearCookieOnLogout: () => void;
|
103
103
|
export declare const getAppDetailsURL: (appId: number | string, envId?: number | string) => string;
|
104
|
+
export declare const smoothScrollToTop: (scrollContainer: HTMLElement, targetPosition: number) => import('framer-motion').AnimationPlaybackControls;
|
104
105
|
export {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
export * from './ImageSelectionUtility';
|
2
2
|
export * from './MainContextProvider';
|
3
3
|
export * from './ThemeProvider';
|
4
|
-
export type { MainContext, ReloadVersionConfigTypes } from './types';
|
4
|
+
export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig } from './types';
|
5
5
|
export * from './UserEmailProvider';
|
@@ -11,12 +11,18 @@ export interface ReloadVersionConfigTypes {
|
|
11
11
|
updateToastRef: MutableRefObject<ReturnType<typeof ToastManager.showToast>> | null;
|
12
12
|
isRefreshing: boolean;
|
13
13
|
}
|
14
|
-
export interface
|
15
|
-
|
14
|
+
export interface SidePanelConfig {
|
15
|
+
/** Determines whether the side panel is visible */
|
16
|
+
open: boolean;
|
17
|
+
/** Optional flag to reset/reinitialize the side panel state */
|
18
|
+
reinitialize?: boolean;
|
19
|
+
/** URL to documentation that should be displayed in the panel */
|
20
|
+
docLink: string | null;
|
21
|
+
}
|
22
|
+
type CommonMainContextProps = {
|
16
23
|
setServerMode: (serverMode: SERVER_MODE) => void;
|
17
24
|
isHelpGettingStartedClicked: boolean;
|
18
25
|
showCloseButtonAfterGettingStartedClicked: () => void;
|
19
|
-
loginCount: number;
|
20
26
|
setLoginCount: (loginCount: number) => void;
|
21
27
|
showGettingStartedCard: boolean;
|
22
28
|
setShowGettingStartedCard: (showGettingStartedCard: boolean) => void;
|
@@ -24,9 +30,8 @@ export interface MainContext {
|
|
24
30
|
setGettingStartedClicked: (isGettingStartedClicked: boolean) => void;
|
25
31
|
moduleInInstallingState: string;
|
26
32
|
setModuleInInstallingState: (moduleInInstallingState: string) => void;
|
27
|
-
installedModuleMap: MutableRefObject<Record<string, boolean>>;
|
28
33
|
currentServerInfo: {
|
29
|
-
serverInfo: ServerInfo;
|
34
|
+
serverInfo: ServerInfo | null;
|
30
35
|
fetchingServerInfo: boolean;
|
31
36
|
};
|
32
37
|
isAirgapped: boolean;
|
@@ -49,17 +54,50 @@ export interface MainContext {
|
|
49
54
|
canOnlyViewPermittedEnvOrgLevel: boolean;
|
50
55
|
viewIsPipelineRBACConfiguredNode: ReactNode;
|
51
56
|
handleOpenLicenseInfoDialog: (initialDialogType?: LicenseInfoDialogType.ABOUT | LicenseInfoDialogType.LICENSE) => void;
|
57
|
+
setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
|
58
|
+
canFetchHelmAppStatus: boolean;
|
59
|
+
setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
|
60
|
+
setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
|
61
|
+
};
|
62
|
+
export type MainContext = CommonMainContextProps & ({
|
63
|
+
isLicenseDashboard?: never;
|
64
|
+
serverMode: SERVER_MODE;
|
65
|
+
loginCount: number | null;
|
66
|
+
installedModuleMap: MutableRefObject<Record<string, boolean>>;
|
52
67
|
/**
|
53
68
|
* Data is set only if showLicenseData is received as true
|
54
69
|
*/
|
55
70
|
licenseData: DevtronLicenseInfo;
|
56
|
-
setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
|
57
|
-
canFetchHelmAppStatus: boolean;
|
58
71
|
reloadVersionConfig: ReloadVersionConfigTypes;
|
59
72
|
intelligenceConfig: IntelligenceConfig;
|
60
|
-
|
61
|
-
|
73
|
+
sidePanelConfig: SidePanelConfig;
|
74
|
+
/**
|
75
|
+
* Indicates whether the current Devtron instance is running as an Enterprise edition. \
|
76
|
+
* This flag is determined based on server-side configuration.
|
77
|
+
*/
|
78
|
+
isEnterprise: boolean;
|
79
|
+
/**
|
80
|
+
* Indicates whether the fe-lib modules are available in the current instance. \
|
81
|
+
* Used to conditionally render or enable features that depend on fe-lib
|
82
|
+
*/
|
83
|
+
isFELibAvailable: boolean;
|
84
|
+
} | {
|
85
|
+
isLicenseDashboard: true;
|
86
|
+
serverMode: null;
|
87
|
+
loginCount: null;
|
88
|
+
installedModuleMap: null;
|
89
|
+
/**
|
90
|
+
* Data is set only if showLicenseData is received as true
|
91
|
+
*/
|
92
|
+
licenseData: null;
|
93
|
+
reloadVersionConfig: null;
|
94
|
+
intelligenceConfig: null;
|
95
|
+
sidePanelConfig: null;
|
96
|
+
isEnterprise: false;
|
97
|
+
isFELibAvailable: false;
|
98
|
+
});
|
62
99
|
export interface MainContextProviderProps {
|
63
100
|
children: ReactNode;
|
64
101
|
value: MainContext;
|
65
102
|
}
|
103
|
+
export {};
|
@@ -1,5 +1,5 @@
|
|
1
1
|
import { KeyValueTableData } from '../Components';
|
2
|
-
import { TargetPlatformsDTO } from '../types';
|
2
|
+
import { DeploymentStrategyType, TargetPlatformsDTO } from '../types';
|
3
3
|
import { OverrideMergeStrategyType } from '../../Pages/Applications';
|
4
4
|
import { ReleaseTag, ResponseType, UserApprovalMetadataType } from '../../Common';
|
5
5
|
interface WebhookDataType {
|
@@ -237,6 +237,9 @@ export interface PipelineConfigDataDTO {
|
|
237
237
|
data: Record<string, any>;
|
238
238
|
pipelineTriggerType: string;
|
239
239
|
Strategy: string;
|
240
|
+
updatedBy: string;
|
241
|
+
updatedOn: string;
|
242
|
+
selectedAtRuntime: boolean;
|
240
243
|
}
|
241
244
|
export interface AppEnvDeploymentConfigDTO {
|
242
245
|
deploymentTemplate: DeploymentTemplateDTO | null;
|
@@ -248,6 +251,8 @@ export interface AppEnvDeploymentConfigDTO {
|
|
248
251
|
export type AppEnvDeploymentConfigPayloadType = {
|
249
252
|
appName: string;
|
250
253
|
envName: string;
|
254
|
+
strategy?: DeploymentStrategyType;
|
255
|
+
} & ({
|
251
256
|
configType: AppEnvDeploymentConfigType;
|
252
257
|
wfrId?: number;
|
253
258
|
pipelineId?: number;
|
@@ -261,7 +266,7 @@ export type AppEnvDeploymentConfigPayloadType = {
|
|
261
266
|
pipelineId: number;
|
262
267
|
configArea: 'CdRollback' | 'DeploymentHistory';
|
263
268
|
wfrId: number;
|
264
|
-
};
|
269
|
+
});
|
265
270
|
export declare enum TemplateListType {
|
266
271
|
DefaultVersions = 1,
|
267
272
|
PublishedOnEnvironments = 2,
|
@@ -1,6 +1,6 @@
|
|
1
1
|
import { DeploymentNodeType, OptionType } from '../Common/Types';
|
2
2
|
import { InfoBlockProps } from './Components';
|
3
|
-
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, IconBaseColorType } from './types';
|
3
|
+
import { CDMaterialSidebarType, ConfigKeysWithLockType, ConfigurationType, DeploymentStrategyTypeWithDefault, IconBaseColorType } from './types';
|
4
4
|
export declare const ARTIFACT_STATUS: {
|
5
5
|
PROGRESSING: string;
|
6
6
|
DEGRADED: string;
|
@@ -429,3 +429,5 @@ export declare const VARIANT_TO_BORDER_MAP: Record<InfoBlockProps['variant'], st
|
|
429
429
|
export declare const DEPLOYMENT_STAGE_TO_NODE_MAP: Readonly<Record<DeploymentStageType, DeploymentNodeType>>;
|
430
430
|
export declare const APP_DETAILS_FALLBACK_POLLING_INTERVAL = 30000;
|
431
431
|
export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
|
432
|
+
export declare const STRATEGY_TYPE_TO_TITLE_MAP: Record<DeploymentStrategyTypeWithDefault, string>;
|
433
|
+
export declare const CUBIC_BEZIER_CURVE: [number, number, number, number];
|
package/dist/Shared/types.d.ts
CHANGED
@@ -1,11 +1,16 @@
|
|
1
1
|
import { ReactNode } from 'react';
|
2
2
|
import { ParsedCountry } from 'react-international-phone';
|
3
3
|
import { Dayjs } from 'dayjs';
|
4
|
-
import { APIOptions, ApprovalConfigDataType } from '../Common/Types';
|
4
|
+
import { APIOptions, ApprovalConfigDataType, Strategy } from '../Common/Types';
|
5
5
|
import { ReleaseMode } from '../Pages/index';
|
6
|
-
import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, VulnerabilityType } from '../Common';
|
6
|
+
import { CommonNodeAttr, DeploymentAppTypes, OptionType, PluginType, RefVariableType, SegmentedControlProps, ServerError, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, VulnerabilityType } from '../Common';
|
7
7
|
import { SelectPickerOptionType, WorkflowRunnerStatusDTO } from './Components';
|
8
8
|
import { BASE_CONFIGURATION_ENV_ID, DEPLOYMENT_STATUS, EnvironmentTypeEnum, PatchOperationType } from './constants';
|
9
|
+
export declare enum InstallationType {
|
10
|
+
OSS_KUBECTL = "oss_kubectl",
|
11
|
+
OSS_HELM = "oss_helm",
|
12
|
+
ENTERPRISE = "enterprise"
|
13
|
+
}
|
9
14
|
export declare enum EnvType {
|
10
15
|
CHART = "helm_charts",
|
11
16
|
APPLICATION = "apps"
|
@@ -829,6 +834,26 @@ export interface UploadFileProps {
|
|
829
834
|
export type Never<T> = {
|
830
835
|
[K in keyof T]?: never;
|
831
836
|
};
|
837
|
+
/**
|
838
|
+
* A utility type that filters out properties from type `T` that are of type `never`. \
|
839
|
+
* This is useful when you want to remove properties that have been marked as `never` from a type,
|
840
|
+
* effectively creating a new type without those properties.
|
841
|
+
*
|
842
|
+
* @template T - The input type from which to filter out `never` properties.
|
843
|
+
* @example
|
844
|
+
* ```typescript
|
845
|
+
* type User = {
|
846
|
+
* id: number;
|
847
|
+
* name: string;
|
848
|
+
* deleted: never;
|
849
|
+
* }
|
850
|
+
*
|
851
|
+
* type ActiveUser = OmitNever<User>; // { id: number; name: string; }
|
852
|
+
* ```
|
853
|
+
*/
|
854
|
+
export type OmitNever<T> = {
|
855
|
+
[K in keyof T as T[K] extends never ? never : K]: T[K];
|
856
|
+
};
|
832
857
|
export interface TargetPlatformItemDTO {
|
833
858
|
name: string;
|
834
859
|
}
|
@@ -1072,4 +1097,9 @@ export interface IntelligenceConfig {
|
|
1072
1097
|
export type DeploymentStrategyType = 'CANARY' | 'ROLLING' | 'RECREATE' | 'BLUE-GREEN' | 'ROLLINGUPDATE' | 'ONDELETE';
|
1073
1098
|
export type DeploymentStrategyTypeWithDefault = DeploymentStrategyType | 'DEFAULT';
|
1074
1099
|
export type PipelineIdsVsDeploymentStrategyMap = Record<number, DeploymentStrategyTypeWithDefault>;
|
1100
|
+
export interface PipelineDeploymentStrategy {
|
1101
|
+
pipelineId: number;
|
1102
|
+
strategies: Strategy[];
|
1103
|
+
error: ServerError;
|
1104
|
+
}
|
1075
1105
|
export {};
|
@@ -59,3 +59,4 @@ export declare const validateCMVolumeMountPath: (value: string) => {
|
|
59
59
|
message: string;
|
60
60
|
};
|
61
61
|
export declare const validateYAML: (yamlString: string, isRequired?: boolean) => ValidationResponseType;
|
62
|
+
export declare const validateEmail: (email: string) => ValidationResponseType;
|