@devtron-labs/devtron-fe-common-lib 1.15.2 → 1.15.3-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/{@code-editor-O_mIinn2.js → @code-editor-Bd6MuRxN.js} +9230 -8913
- package/dist/{@common-rjsf-BQQNvTlX.js → @common-rjsf-DPDULtgg.js} +225 -233
- package/dist/{@framer-motion-Dchiw-Rb.js → @framer-motion-BhKAac90.js} +640 -622
- package/dist/{@moment-C_WeV3Af.js → @moment-CGWt8tF2.js} +12 -1
- package/dist/{@react-dates-D5kydtW-.js → @react-dates-CfRo6n5e.js} +2065 -2140
- package/dist/{@react-select-Cmser7OI.js → @react-select-DNDV8S9D.js} +6 -6
- package/dist/{@react-virtualized-sticky-tree-DMnFy9PE.js → @react-virtualized-sticky-tree-mXcyQzGx.js} +1 -1
- package/dist/{@vendor-STJ9h0oI.js → @vendor-CA9d7Ztm.js} +20720 -20458
- package/dist/Common/Constants.d.ts +3 -0
- 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/Tooltip/types.d.ts +1 -1
- package/dist/Common/Types.d.ts +8 -43
- package/dist/Common/index.d.ts +0 -2
- package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/BuildInfra/constants.d.ts +1 -1
- package/dist/Shared/Analytics/analytics.d.ts +2 -0
- package/dist/Shared/Components/Backdrop/Backdrop.d.ts +1 -1
- package/dist/Shared/Components/Backdrop/index.d.ts +1 -0
- package/dist/Shared/Components/Backdrop/types.d.ts +16 -2
- package/dist/Shared/Components/Backdrop/utils.d.ts +1 -0
- package/dist/Shared/Components/Badge/Badge.d.ts +3 -0
- package/dist/Shared/Components/Badge/index.d.ts +2 -0
- package/dist/Shared/Components/Badge/types.d.ts +18 -0
- package/dist/Shared/Components/Badge/utils.d.ts +7 -0
- package/dist/Shared/Components/BulkOperations/types.d.ts +1 -1
- package/dist/Shared/Components/Button/Button.component.d.ts +1 -1
- package/dist/Shared/Components/Button/types.d.ts +2 -2
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/helpers.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/types.d.ts +1 -1
- package/dist/Shared/Components/CICDHistory/DeploymentHistoryConfigDiff/utils.d.ts +3 -2
- package/dist/Shared/Components/CICDHistory/service.d.ts +1 -7
- package/dist/Shared/Components/CICDHistory/types.d.ts +3 -19
- package/dist/Shared/Components/CodeEditor/CodeEditor.constants.d.ts +1 -1
- package/dist/Shared/Components/DeploymentConfigDiff/DeploymentConfigDiff.types.d.ts +18 -1
- 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/constants.d.ts +3 -0
- package/dist/Shared/Components/DocLink/types.d.ts +1 -0
- package/dist/Shared/Components/DocLink/utils.d.ts +1 -1
- package/dist/Shared/Components/DynamicDataTable/types.d.ts +1 -1
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +1 -1
- package/dist/Shared/Components/GenericModal/GenericModal.component.d.ts +9 -0
- package/dist/Shared/Components/GenericModal/GenericModal.context.d.ts +6 -0
- package/dist/Shared/Components/GenericModal/constants.d.ts +2 -0
- package/dist/Shared/Components/GenericModal/index.d.ts +2 -0
- package/dist/Shared/Components/GenericModal/types.d.ts +37 -0
- package/dist/Shared/Components/Header/HeaderWithCreateButton/HeaderWithCreateButon.d.ts +1 -1
- package/dist/Shared/Components/Header/HeaderWithCreateButton/types.d.ts +3 -1
- package/dist/Shared/Components/Header/types.d.ts +2 -1
- package/dist/Shared/Components/Icon/Icon.d.ts +20 -1
- package/dist/Shared/Components/InvalidYAMLTippy/types.d.ts +1 -1
- package/dist/Shared/Components/Popover/types.d.ts +5 -0
- package/dist/Shared/Components/Popover/usePopover.hook.d.ts +1 -1
- package/dist/Shared/Components/ProgressBar/ProgressBar.component.d.ts +2 -0
- package/dist/Shared/Components/ProgressBar/index.d.ts +1 -0
- package/dist/Shared/Components/ProgressBar/types.d.ts +9 -0
- package/dist/Shared/Components/Security/SecurityModal/config/CodeScan.d.ts +7 -7
- package/dist/Shared/Components/Security/SecurityModal/types.d.ts +1 -1
- package/dist/Shared/Components/Security/SeverityChip.d.ts +6 -0
- package/dist/Shared/Components/Security/Vulnerabilities/types.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/common.d.ts +1 -1
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
- package/dist/Shared/Components/Switch/Switch.component.d.ts +1 -1
- package/dist/Shared/Components/Switch/types.d.ts +11 -2
- package/dist/Shared/Components/Switch/utils.d.ts +2 -2
- 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/TabGroup/TabGroup.types.d.ts +1 -1
- package/dist/Shared/Components/Table/types.d.ts +1 -1
- package/dist/Shared/Components/TargetPlatforms/types.d.ts +1 -1
- package/dist/Shared/Components/Textarea/Textarea.component.d.ts +1 -1
- package/dist/Shared/Components/Textarea/types.d.ts +17 -1
- package/dist/Shared/Components/Textarea/utils.d.ts +5 -0
- 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/Typewriter/BlinkingCursor.d.ts +1 -0
- package/dist/Shared/Components/Typewriter/index.d.ts +2 -0
- package/dist/Shared/Components/Typewriter/useTypewriter.d.ts +1 -0
- package/dist/Shared/Components/WorkflowOptionsModal/SourceTypeCard.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/constants.d.ts +75 -41
- package/dist/Shared/Components/WorkflowOptionsModal/index.d.ts +1 -0
- package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +10 -12
- package/dist/Shared/Components/WorkflowOptionsModal/utils.d.ts +13 -2
- package/dist/Shared/Components/index.d.ts +5 -0
- package/dist/Shared/Helpers.d.ts +1 -1
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +2 -2
- package/dist/Shared/Providers/index.d.ts +1 -0
- package/dist/Shared/Providers/types.d.ts +40 -12
- package/dist/Shared/Services/app.types.d.ts +7 -2
- package/dist/Shared/constants.d.ts +3 -1
- package/dist/Shared/types.d.ts +9 -3
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/ic-add.2d785695.svg +3 -0
- package/dist/assets/ic-asterisk.ab224e72.svg +3 -0
- package/dist/assets/ic-brain.838491eb.svg +3 -0
- package/dist/assets/ic-cluster-isolated.93f843b9.svg +3 -0
- package/dist/assets/{ic-cluster.71ba9e26.svg → ic-cluster.f1c3fad1.svg} +1 -1
- package/dist/assets/ic-deploy-color.73a8df48.svg +14 -0
- package/dist/assets/ic-deploy-sync.6b1cf1b1.svg +16 -0
- package/dist/assets/ic-devtron-ai.535b45ec.svg +287 -0
- package/dist/assets/ic-environment-isolated.b772ae9d.svg +3 -0
- package/dist/assets/ic-environment.e639b8f3.svg +4 -0
- package/dist/assets/ic-folder-color.7cf84356.svg +6 -0
- package/dist/assets/ic-git-branch.d6b3d950.svg +3 -0
- package/dist/assets/ic-linked-build-color.d1df5ce1.svg +7 -0
- package/dist/assets/ic-minus.416da21b.svg +3 -0
- package/dist/assets/ic-openai.6e4c9a37.svg +10 -0
- package/dist/assets/ic-paper-plane.ad7e6d2f.svg +3 -0
- package/dist/assets/ic-shapes.b7b5c28f.svg +3 -0
- package/dist/assets/ic-sparkle-ai-color.34768219.svg +11 -0
- package/dist/assets/ic-sparkle-color.a9722593.svg +18 -0
- package/dist/assets/ic-stop-fill.32ea653f.svg +8 -0
- package/dist/assets/ic-webhook.ffd8ded6.svg +21 -0
- package/dist/assets/ic-world-globe.877fa6a0.svg +3 -0
- package/dist/assets/workflow-options-modal-header.0444485e.svg +38 -0
- package/dist/index.d.ts +7 -0
- package/dist/index.js +857 -855
- package/package.json +6 -7
- 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/assets/change-source.abc9d12f.png +0 -0
- package/dist/assets/ic-add.18a93616.svg +0 -19
- package/dist/assets/ic-ci-webhook.a2ab6db6.svg +0 -42
- package/dist/assets/ic-source-build.7d776b10.svg +0 -22
- package/dist/assets/ic-source-job.a40f06cf.svg +0 -26
- package/dist/assets/ic-source-linked-build.f24ecbed.svg +0 -24
- package/dist/assets/ic-source-webhook.ee64a29a.svg +0 -22
- package/dist/assets/ic-sparkle-color.01c0be88.svg +0 -1
- package/dist/assets/select-image-source.fb911f42.png +0 -0
@@ -1,20 +1,19 @@
|
|
1
|
+
import { WorkflowNodeType } from '../../../Common/Types';
|
1
2
|
import { ChangeCIPayloadType, CIPipelineNodeType, WorkflowType } from '../../types';
|
2
3
|
import { AppConfigProps } from '../../../Pages/index';
|
3
|
-
|
4
|
+
import { GenericModalProps } from '../GenericModal';
|
5
|
+
import { IconsProps } from '../Icon';
|
6
|
+
export interface SourceTypeCardProps {
|
4
7
|
title: string;
|
5
8
|
subtitle: string;
|
6
|
-
image: string;
|
7
|
-
alt: string;
|
8
9
|
dataTestId: string;
|
9
|
-
type:
|
10
|
-
|
11
|
-
export interface SourceTypeCardProps extends LinkedCDSourceVariant {
|
12
|
-
handleCardAction: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
10
|
+
type: CIPipelineNodeType | WorkflowNodeType.WEBHOOK;
|
11
|
+
disabled?: boolean;
|
13
12
|
disableInfo: string;
|
14
|
-
|
13
|
+
icons: Pick<IconsProps, 'name' | 'color'>[];
|
14
|
+
onCardAction: (e: React.MouseEvent | React.KeyboardEvent) => void;
|
15
15
|
}
|
16
|
-
export interface WorkflowOptionsModalProps extends Required<Pick<AppConfigProps, 'isTemplateView'
|
17
|
-
handleCloseWorkflowOptionsModal: () => void;
|
16
|
+
export interface WorkflowOptionsModalProps extends Required<Pick<AppConfigProps, 'isTemplateView'>>, Pick<GenericModalProps, 'open' | 'onClose'> {
|
18
17
|
addCIPipeline: (type: CIPipelineNodeType, workflowId?: number | string) => void;
|
19
18
|
addWebhookCD: (workflowId?: number | string) => void;
|
20
19
|
addLinkedCD: (changeCIPayload?: ChangeCIPayloadType) => void;
|
@@ -23,7 +22,6 @@ export interface WorkflowOptionsModalProps extends Required<Pick<AppConfigProps,
|
|
23
22
|
changeCIPayload?: ChangeCIPayloadType;
|
24
23
|
workflows?: WorkflowType[];
|
25
24
|
getWorkflows?: () => void;
|
26
|
-
linkedCDSourceVariant?:
|
25
|
+
linkedCDSourceVariant?: Pick<SourceTypeCardProps, 'title' | 'subtitle' | 'type' | 'icons' | 'dataTestId'>;
|
27
26
|
isAppGroup?: boolean;
|
28
27
|
}
|
29
|
-
export {};
|
@@ -1,5 +1,6 @@
|
|
1
|
-
import { PipelineType } from '../../../Common/Types';
|
2
|
-
import { ChangeCIPayloadType } from '../../types';
|
1
|
+
import { PipelineType, WorkflowNodeType } from '../../../Common/Types';
|
2
|
+
import { ChangeCIPayloadType, CIPipelineNodeType } from '../../types';
|
3
|
+
import { SourceTypeCardProps, WorkflowOptionsModalProps } from './types';
|
3
4
|
export declare const getSwitchToWebhookPayload: (changeCIPayload: ChangeCIPayloadType) => {
|
4
5
|
appId: number;
|
5
6
|
pipelines: {
|
@@ -12,3 +13,13 @@ export declare const getSwitchToWebhookPayload: (changeCIPayload: ChangeCIPayloa
|
|
12
13
|
switchFromCiPipelineId: number;
|
13
14
|
}[];
|
14
15
|
};
|
16
|
+
export declare const getCurrentPipelineType: ({ workflows, changeCIPayload, }: Required<Pick<WorkflowOptionsModalProps, "workflows" | "changeCIPayload">>) => SourceTypeCardProps["type"];
|
17
|
+
export declare const getBuildWorkflowCardsConfig: ({ currentPipelineType, changeCIPayload, isAppGroup, }: {
|
18
|
+
currentPipelineType: CIPipelineNodeType | WorkflowNodeType.WEBHOOK;
|
19
|
+
} & Required<Pick<WorkflowOptionsModalProps, "changeCIPayload" | "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "dataTestId" | "disabled" | "type" | "subtitle" | "icons">[];
|
20
|
+
export declare const getReceiveWorkflowCardsConfig: ({ currentPipelineType, linkedCDSourceVariant, isAppGroup, }: {
|
21
|
+
currentPipelineType: CIPipelineNodeType | WorkflowNodeType.WEBHOOK;
|
22
|
+
} & Required<Pick<WorkflowOptionsModalProps, "linkedCDSourceVariant" | "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "dataTestId" | "disabled" | "type" | "subtitle" | "icons">[];
|
23
|
+
export declare const getJobWorkflowCardsConfig: ({ currentPipelineType, isAppGroup, }: {
|
24
|
+
currentPipelineType: CIPipelineNodeType | WorkflowNodeType.WEBHOOK;
|
25
|
+
} & Required<Pick<WorkflowOptionsModalProps, "isAppGroup">>) => Pick<SourceTypeCardProps, "title" | "dataTestId" | "disabled" | "type" | "subtitle" | "icons">[];
|
@@ -7,6 +7,7 @@ export * from './APIResponseHandler';
|
|
7
7
|
export * from './AppStatusModal';
|
8
8
|
export * from './ArtifactInfoModal';
|
9
9
|
export * from './Backdrop';
|
10
|
+
export * from './Badge';
|
10
11
|
export * from './BulkOperations';
|
11
12
|
export * from './BulkSelection';
|
12
13
|
export * from './Button';
|
@@ -40,6 +41,7 @@ export * from './FlagImage';
|
|
40
41
|
export * from './FloatingVariablesSuggestions';
|
41
42
|
export * from './FramerComponents';
|
42
43
|
export * from './GenericInfoCard';
|
44
|
+
export * from './GenericModal';
|
43
45
|
export * from './GenericSectionErrorState';
|
44
46
|
export * from './GitCommitInfoGeneric';
|
45
47
|
export * from './GitProviderIcon';
|
@@ -63,6 +65,7 @@ export * from './ModalSidebarPanel';
|
|
63
65
|
export * from './NumbersCount';
|
64
66
|
export * from './PhoneInput';
|
65
67
|
export * from './Plugin';
|
68
|
+
export * from './ProgressBar';
|
66
69
|
export { default as QRCode } from './QRCode';
|
67
70
|
export * from './ReactSelect';
|
68
71
|
export * from './RegistryIcon';
|
@@ -73,6 +76,7 @@ export * from './ShowMoreText';
|
|
73
76
|
export * from './SSOProviderIcon';
|
74
77
|
export * from './StatusComponent';
|
75
78
|
export * from './Switch';
|
79
|
+
export * from './SwitchThemeDialog';
|
76
80
|
export * from './TabGroup';
|
77
81
|
export * from './Table';
|
78
82
|
export * from './TagsKeyValueTable';
|
@@ -80,6 +84,7 @@ export * from './TargetPlatforms';
|
|
80
84
|
export * from './Textarea';
|
81
85
|
export * from './ThemeSwitcher';
|
82
86
|
export * from './ToggleResolveScopedVariables';
|
87
|
+
export * from './Typewriter';
|
83
88
|
export * from './UnsavedChanges';
|
84
89
|
export * from './UnsavedChangesDialog';
|
85
90
|
export * from './UserIdentifier';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -2,7 +2,7 @@ import { ReactElement } from 'react';
|
|
2
2
|
import { PromptProps } from 'react-router-dom';
|
3
3
|
import { StrictRJSFSchema } from '@rjsf/utils';
|
4
4
|
import { Pair } from 'yaml';
|
5
|
-
import { MaterialHistoryType } from '
|
5
|
+
import { MaterialHistoryType } from './Services/app.types';
|
6
6
|
import { ApprovalConfigDataType, MaterialInfo, SortingOrder, UserApprovalConfigType, UserApprovalInfo } from '../Common';
|
7
7
|
import { AggregatedNodes, PodMetadatum } from './Components';
|
8
8
|
import { BorderConfigType, GetTimeDifferenceParamsType, GitTriggers, IntersectionChangeHandler, IntersectionOptions, PreventOutsideFocusProps, TargetPlatformItemDTO, TargetPlatformsDTO, WebhookEventNameType } from './types';
|
@@ -1,5 +1,5 @@
|
|
1
|
-
import { USER_PREFERENCES_ATTRIBUTE_KEY } from '
|
2
|
-
import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '
|
1
|
+
import { USER_PREFERENCES_ATTRIBUTE_KEY } from './constants';
|
2
|
+
import { AppThemeType, ThemeConfigType, ThemePreferenceType } from '../../Providers/ThemeProvider/types';
|
3
3
|
import { BaseAppMetaData } from '../../Services';
|
4
4
|
import { ResourceKindType } from '../../types';
|
5
5
|
export interface GetUserPreferencesQueryParamsType {
|
@@ -2,4 +2,5 @@ export * from './ImageSelectionUtility';
|
|
2
2
|
export * from './MainContextProvider';
|
3
3
|
export * from './ThemeProvider';
|
4
4
|
export type { MainContext, ReloadVersionConfigTypes, SidePanelConfig } from './types';
|
5
|
+
export { SidePanelTab } from './types';
|
5
6
|
export * from './UserEmailProvider';
|
@@ -11,20 +11,25 @@ export interface ReloadVersionConfigTypes {
|
|
11
11
|
updateToastRef: MutableRefObject<ReturnType<typeof ToastManager.showToast>> | null;
|
12
12
|
isRefreshing: boolean;
|
13
13
|
}
|
14
|
+
export declare enum SidePanelTab {
|
15
|
+
DOCUMENTATION = "documentation",
|
16
|
+
ASK_DEVTRON = "ask-devtron"
|
17
|
+
}
|
14
18
|
export interface SidePanelConfig {
|
15
|
-
|
16
|
-
open: boolean;
|
19
|
+
state: SidePanelTab | 'closed';
|
17
20
|
/** Optional flag to reset/reinitialize the side panel state */
|
18
21
|
reinitialize?: boolean;
|
19
22
|
/** URL to documentation that should be displayed in the panel */
|
20
23
|
docLink: string | null;
|
21
24
|
}
|
22
|
-
|
23
|
-
|
25
|
+
type AIAgentContextType = {
|
26
|
+
path: string;
|
27
|
+
context: Record<string, string>;
|
28
|
+
};
|
29
|
+
type CommonMainContextProps = {
|
24
30
|
setServerMode: (serverMode: SERVER_MODE) => void;
|
25
31
|
isHelpGettingStartedClicked: boolean;
|
26
32
|
showCloseButtonAfterGettingStartedClicked: () => void;
|
27
|
-
loginCount: number;
|
28
33
|
setLoginCount: (loginCount: number) => void;
|
29
34
|
showGettingStartedCard: boolean;
|
30
35
|
setShowGettingStartedCard: (showGettingStartedCard: boolean) => void;
|
@@ -32,9 +37,8 @@ export interface MainContext {
|
|
32
37
|
setGettingStartedClicked: (isGettingStartedClicked: boolean) => void;
|
33
38
|
moduleInInstallingState: string;
|
34
39
|
setModuleInInstallingState: (moduleInInstallingState: string) => void;
|
35
|
-
installedModuleMap: MutableRefObject<Record<string, boolean>>;
|
36
40
|
currentServerInfo: {
|
37
|
-
serverInfo: ServerInfo;
|
41
|
+
serverInfo: ServerInfo | null;
|
38
42
|
fetchingServerInfo: boolean;
|
39
43
|
};
|
40
44
|
isAirgapped: boolean;
|
@@ -57,17 +61,24 @@ export interface MainContext {
|
|
57
61
|
canOnlyViewPermittedEnvOrgLevel: boolean;
|
58
62
|
viewIsPipelineRBACConfiguredNode: ReactNode;
|
59
63
|
handleOpenLicenseInfoDialog: (initialDialogType?: LicenseInfoDialogType.ABOUT | LicenseInfoDialogType.LICENSE) => void;
|
64
|
+
setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
|
65
|
+
canFetchHelmAppStatus: boolean;
|
66
|
+
setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
|
67
|
+
setAIAgentContext: (aiAgentContext: AIAgentContextType) => void;
|
68
|
+
setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
|
69
|
+
};
|
70
|
+
export type MainContext = CommonMainContextProps & ({
|
71
|
+
isLicenseDashboard?: never;
|
72
|
+
serverMode: SERVER_MODE;
|
73
|
+
loginCount: number | null;
|
74
|
+
installedModuleMap: MutableRefObject<Record<string, boolean>>;
|
60
75
|
/**
|
61
76
|
* Data is set only if showLicenseData is received as true
|
62
77
|
*/
|
63
78
|
licenseData: DevtronLicenseInfo;
|
64
|
-
setLicenseData: Dispatch<SetStateAction<DevtronLicenseInfo>>;
|
65
|
-
canFetchHelmAppStatus: boolean;
|
66
79
|
reloadVersionConfig: ReloadVersionConfigTypes;
|
67
80
|
intelligenceConfig: IntelligenceConfig;
|
68
|
-
setIntelligenceConfig: Dispatch<SetStateAction<IntelligenceConfig>>;
|
69
81
|
sidePanelConfig: SidePanelConfig;
|
70
|
-
setSidePanelConfig: Dispatch<SetStateAction<SidePanelConfig>>;
|
71
82
|
/**
|
72
83
|
* Indicates whether the current Devtron instance is running as an Enterprise edition. \
|
73
84
|
* This flag is determined based on server-side configuration.
|
@@ -78,8 +89,25 @@ export interface MainContext {
|
|
78
89
|
* Used to conditionally render or enable features that depend on fe-lib
|
79
90
|
*/
|
80
91
|
isFELibAvailable: boolean;
|
81
|
-
|
92
|
+
aiAgentContext: AIAgentContextType;
|
93
|
+
} | {
|
94
|
+
isLicenseDashboard: true;
|
95
|
+
serverMode: null;
|
96
|
+
loginCount: null;
|
97
|
+
installedModuleMap: null;
|
98
|
+
/**
|
99
|
+
* Data is set only if showLicenseData is received as true
|
100
|
+
*/
|
101
|
+
licenseData: null;
|
102
|
+
reloadVersionConfig: null;
|
103
|
+
intelligenceConfig: null;
|
104
|
+
sidePanelConfig: null;
|
105
|
+
isEnterprise: false;
|
106
|
+
isFELibAvailable: false;
|
107
|
+
aiAgentContext: null;
|
108
|
+
});
|
82
109
|
export interface MainContextProviderProps {
|
83
110
|
children: ReactNode;
|
84
111
|
value: MainContext;
|
85
112
|
}
|
113
|
+
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;
|
@@ -356,6 +356,7 @@ export declare const ANSI_UP_REGEX: RegExp;
|
|
356
356
|
*/
|
357
357
|
export declare enum ComponentSizeType {
|
358
358
|
xxs_small_icon = "xxs-small-icon",
|
359
|
+
xxxs = "xxxs",
|
359
360
|
xxs = "xxs",
|
360
361
|
xs = "xs",
|
361
362
|
small = "small",
|
@@ -429,4 +430,5 @@ export declare const VARIANT_TO_BORDER_MAP: Record<InfoBlockProps['variant'], st
|
|
429
430
|
export declare const DEPLOYMENT_STAGE_TO_NODE_MAP: Readonly<Record<DeploymentStageType, DeploymentNodeType>>;
|
430
431
|
export declare const APP_DETAILS_FALLBACK_POLLING_INTERVAL = 30000;
|
431
432
|
export declare const PROGRESSING_DEPLOYMENT_STATUS_POLLING_INTERVAL = 10000;
|
433
|
+
export declare const STRATEGY_TYPE_TO_TITLE_MAP: Record<DeploymentStrategyTypeWithDefault, string>;
|
432
434
|
export declare const CUBIC_BEZIER_CURVE: [number, number, number, number];
|
package/dist/Shared/types.d.ts
CHANGED
@@ -1,9 +1,9 @@
|
|
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
9
|
export declare enum InstallationType {
|
@@ -876,7 +876,8 @@ export declare enum CIPipelineNodeType {
|
|
876
876
|
CI = "CI",
|
877
877
|
LINKED_CI = "LINKED-CI",
|
878
878
|
JOB_CI = "JOB-CI",
|
879
|
-
LINKED_CD = "LINKED_CD"
|
879
|
+
LINKED_CD = "LINKED_CD",
|
880
|
+
CI_CD = "CI_CD"
|
880
881
|
}
|
881
882
|
export interface ChangeCIPayloadType {
|
882
883
|
appWorkflowId: number;
|
@@ -1097,4 +1098,9 @@ export interface IntelligenceConfig {
|
|
1097
1098
|
export type DeploymentStrategyType = 'CANARY' | 'ROLLING' | 'RECREATE' | 'BLUE-GREEN' | 'ROLLINGUPDATE' | 'ONDELETE';
|
1098
1099
|
export type DeploymentStrategyTypeWithDefault = DeploymentStrategyType | 'DEFAULT';
|
1099
1100
|
export type PipelineIdsVsDeploymentStrategyMap = Record<number, DeploymentStrategyTypeWithDefault>;
|
1101
|
+
export interface PipelineDeploymentStrategy {
|
1102
|
+
pipelineId: number;
|
1103
|
+
strategies: Strategy[];
|
1104
|
+
error: ServerError;
|
1105
|
+
}
|
1100
1106
|
export {};
|