@devtron-labs/devtron-fe-common-lib 1.9.5-beta-4 → 1.9.6-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-CJb79OaZ.js → @code-editor-0ze0wq4Z.js} +7860 -7867
- package/dist/{@common-rjsf-BQNbv8mg.js → @common-rjsf-BaGU4GjS.js} +2 -2
- package/dist/{@framer-motion-Cx1gSa6-.js → @framer-motion--UCnj55s.js} +1 -1
- package/dist/{@react-dates-ukcBEyJ1.js → @react-dates-B3_Y9Kyv.js} +243 -243
- package/dist/{@react-select-Cas7oOFN.js → @react-select-DMzK6fkF.js} +1 -1
- package/dist/{@react-virtualized-sticky-tree-DRihF7_6.js → @react-virtualized-sticky-tree-Ck5oyLp9.js} +1 -1
- package/dist/{@vendor-xG1dUtf3.js → @vendor-DXbFZ041.js} +30911 -25065
- package/dist/Common/Api.d.ts +15 -0
- package/dist/Common/Constants.d.ts +94 -92
- package/dist/Common/DeleteCINodeButton/DeleteCINodeButton.d.ts +1 -1
- package/dist/Common/DeleteCINodeButton/types.d.ts +2 -1
- package/dist/Common/DeleteCINodeButton/utils.d.ts +5 -2
- package/dist/Common/GenericDescription/utils.d.ts +1 -0
- package/dist/Common/Helper.d.ts +0 -1
- package/dist/Common/Tooltip/constants.d.ts +1 -0
- package/dist/Common/Types.d.ts +4 -7
- package/dist/Common/index.d.ts +1 -1
- package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +38 -0
- package/dist/Shared/Components/CustomInput/CustomInput.d.ts +1 -1
- package/dist/Shared/Components/CustomInput/types.d.ts +1 -5
- package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +1 -1
- package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +3 -1
- package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +2 -1
- package/dist/Shared/Components/GenericInfoCard/GenericInfoCard.component.d.ts +3 -0
- package/dist/Shared/Components/GenericInfoCard/index.d.ts +2 -0
- package/dist/Shared/Components/GenericInfoCard/types.d.ts +26 -0
- package/dist/Shared/Components/GenericInfoCard/utils.d.ts +2 -0
- package/dist/Shared/Components/GitProviderIcon/GitProviderIcon.d.ts +1 -1
- package/dist/Shared/Components/GitProviderIcon/types.d.ts +8 -3
- package/dist/Shared/Components/GitProviderIcon/utils.d.ts +2 -0
- package/dist/Shared/Components/GraphVisualizer/GraphVisualizer.d.ts +2 -0
- package/dist/Shared/Components/GraphVisualizer/components/BaseNode.d.ts +2 -0
- package/dist/Shared/Components/GraphVisualizer/components/DropdownNode.d.ts +3 -0
- package/dist/Shared/Components/GraphVisualizer/components/IconNode.d.ts +3 -0
- package/dist/Shared/Components/GraphVisualizer/components/TextNode.d.ts +3 -0
- package/dist/Shared/Components/GraphVisualizer/components/index.d.ts +4 -0
- package/dist/Shared/Components/GraphVisualizer/components/types.d.ts +19 -0
- package/dist/Shared/Components/GraphVisualizer/constants.d.ts +15 -0
- package/dist/Shared/Components/GraphVisualizer/index.d.ts +2 -0
- package/dist/Shared/Components/GraphVisualizer/types.d.ts +12 -0
- package/dist/Shared/Components/GraphVisualizer/utils.d.ts +17 -0
- package/dist/Shared/Components/Header/types.d.ts +1 -0
- package/dist/Shared/Components/Icon/Icon.d.ts +3 -9
- package/dist/Shared/Components/Icon/IconBase.d.ts +1 -1
- package/dist/Shared/Components/Icon/constants.d.ts +2 -0
- package/dist/Shared/Components/Icon/types.d.ts +2 -2
- package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +1 -1
- package/dist/Shared/Components/ReactSelect/constants.d.ts +7 -15
- package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
- package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +2 -1
- package/dist/Shared/Components/index.d.ts +2 -6
- package/dist/Shared/Helpers.d.ts +0 -1
- package/dist/Shared/Providers/types.d.ts +1 -1
- package/dist/Shared/Services/app.service.d.ts +4 -1
- package/dist/Shared/Services/common.service.d.ts +2 -1
- package/dist/Shared/Services/index.d.ts +1 -0
- package/dist/Shared/Services/template.service.d.ts +2 -0
- package/dist/Shared/constants.d.ts +0 -3
- package/dist/Shared/types.d.ts +0 -33
- package/dist/Shared/validations.d.ts +1 -0
- package/dist/assets/@code-editor.css +1 -1
- package/dist/assets/@vendor.css +1 -1
- package/dist/assets/ic-card-stack.efd37c91.svg +3 -0
- package/dist/assets/{ic-caret-left.3df25a7c.svg → ic-copy.416d85f3.svg} +1 -1
- package/dist/assets/ic-new.2c179139.svg +3 -0
- package/dist/index.d.ts +8 -0
- package/dist/index.js +800 -806
- package/package.json +2 -2
- package/dist/Common/API/CoreAPI.d.ts +0 -17
- package/dist/Common/API/constants.d.ts +0 -70
- package/dist/Common/API/index.d.ts +0 -3
- package/dist/Common/API/types.d.ts +0 -23
- package/dist/Common/API/utils.d.ts +0 -12
- package/dist/Shared/Components/CountrySelect/CountrySelect.component.d.ts +0 -3
- package/dist/Shared/Components/CountrySelect/index.d.ts +0 -1
- package/dist/Shared/Components/CountrySelect/types.d.ts +0 -7
- package/dist/Shared/Components/CountrySelect/utils.d.ts +0 -4
- package/dist/Shared/Components/DevtronLicenseCard/DevtronLicenseCard.d.ts +0 -3
- package/dist/Shared/Components/DevtronLicenseCard/index.d.ts +0 -3
- package/dist/Shared/Components/DevtronLicenseCard/types.d.ts +0 -18
- package/dist/Shared/Components/DevtronLicenseCard/utils.d.ts +0 -6
- package/dist/Shared/Components/FlagImage/FlagImage.component.d.ts +0 -3
- package/dist/Shared/Components/FlagImage/index.d.ts +0 -1
- package/dist/Shared/Components/FlagImage/types.d.ts +0 -5
- package/dist/Shared/Components/LoginBanner/LoginBanner.d.ts +0 -2
- package/dist/Shared/Components/LoginBanner/constants.d.ts +0 -2
- package/dist/Shared/Components/LoginBanner/index.d.ts +0 -1
- package/dist/Shared/Components/LoginBanner/types.d.ts +0 -7
- package/dist/Shared/Components/PhoneInput/PhoneInput.component.d.ts +0 -3
- package/dist/Shared/Components/PhoneInput/index.d.ts +0 -1
- package/dist/Shared/Components/PhoneInput/types.d.ts +0 -11
- package/dist/assets/ic-book-open.e839bbda.svg +0 -3
- package/dist/assets/ic-chat-circle-dots.b5afd171.svg +0 -3
- package/dist/assets/ic-devtron-header-logo.7dc157aa.svg +0 -4
- package/dist/assets/ic-devtron.aca6cbaa.svg +0 -3
- package/dist/assets/ic-key.56432553.svg +0 -19
- package/dist/assets/ic-quote.68f093fe.svg +0 -3
- package/dist/assets/ic-timer.ae5f10fa.svg +0 -19
@@ -6,14 +6,11 @@ export declare const iconMap: {
|
|
6
6
|
'ic-arrow-right': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
7
7
|
'ic-azure': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
8
8
|
'ic-bitbucket': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
9
|
-
'ic-book-open': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
10
9
|
'ic-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
11
10
|
'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
12
|
-
'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
13
11
|
'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
14
|
-
'ic-
|
12
|
+
'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
15
13
|
'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
16
|
-
'ic-chat-circle-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
17
14
|
'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
18
15
|
'ic-ci-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
19
16
|
'ic-circle-loader': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -21,11 +18,10 @@ export declare const iconMap: {
|
|
21
18
|
'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
22
19
|
'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
23
20
|
'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
21
|
+
'ic-copy': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
24
22
|
'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
25
23
|
'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
26
24
|
'ic-delete': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
27
|
-
'ic-devtron-header-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
28
|
-
'ic-devtron': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
29
25
|
'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
30
26
|
'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
31
27
|
'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -50,7 +46,6 @@ export declare const iconMap: {
|
|
50
46
|
'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
51
47
|
'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
52
48
|
'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
53
|
-
'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
54
49
|
'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
55
50
|
'ic-login-devtron-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
56
51
|
'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -58,6 +53,7 @@ export declare const iconMap: {
|
|
58
53
|
'ic-microsoft': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
59
54
|
'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
60
55
|
'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
56
|
+
'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
61
57
|
'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
62
58
|
'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
63
59
|
'ic-open-box': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -66,13 +62,11 @@ export declare const iconMap: {
|
|
66
62
|
'ic-out-of-sync': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
67
63
|
'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
68
64
|
'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
69
|
-
'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
70
65
|
'ic-shield-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
71
66
|
'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
72
67
|
'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
73
68
|
'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
74
69
|
'ic-timeout-two-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
75
|
-
'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
76
70
|
'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
77
71
|
'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
78
72
|
'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
|
@@ -1,2 +1,2 @@
|
|
1
1
|
import { IconBaseProps } from './types';
|
2
|
-
export declare const IconBase: ({ name, iconMap, size, tooltipProps, color
|
2
|
+
export declare const IconBase: ({ name, iconMap, size, tooltipProps, color }: IconBaseProps) => JSX.Element;
|
@@ -1,7 +1,7 @@
|
|
1
|
-
import { FC,
|
1
|
+
import { FC, SVGProps } from 'react';
|
2
2
|
import { TooltipProps } from '@Common/Tooltip/types';
|
3
3
|
type IconMap = Record<string, FC<SVGProps<SVGSVGElement>>>;
|
4
|
-
export interface IconBaseProps
|
4
|
+
export interface IconBaseProps {
|
5
5
|
/** The name of the icon to render. */
|
6
6
|
name: keyof IconMap;
|
7
7
|
/** The map containing all available icons. */
|
@@ -1,15 +1,7 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
group: (base: any) => any;
|
9
|
-
groupHeading: (base: any) => any;
|
10
|
-
menuList: (base: any) => any;
|
11
|
-
multiValue: (base: any) => any;
|
12
|
-
multiValueLabel: (base: any) => any;
|
13
|
-
placeholder: (base: any) => any;
|
14
|
-
menu: (base: any) => any;
|
15
|
-
};
|
1
|
+
import { DropdownIndicatorProps, StylesConfig } from 'react-select';
|
2
|
+
export declare const CommonGroupedDropdownStyles: StylesConfig;
|
3
|
+
export declare const APP_SELECTOR_STYLES: StylesConfig;
|
4
|
+
export declare const AppSelectorDropdownIndicator: (props: DropdownIndicatorProps) => JSX.Element;
|
5
|
+
export declare const AppSelectorNoOptionsMessage: (inputObj: {
|
6
|
+
inputValue: string;
|
7
|
+
}) => string;
|
@@ -80,7 +80,7 @@ export declare enum SelectPickerVariantType {
|
|
80
80
|
DEFAULT = "default",
|
81
81
|
BORDER_LESS = "border-less"
|
82
82
|
}
|
83
|
-
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue' | 'filterOption'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon' | 'renderOptionsFooter' | 'shouldRenderTextArea'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel' | 'menuPortalTarget'>> & Omit<FormFieldWrapperProps, 'children'> & {
|
83
|
+
export type SelectPickerProps<OptionValue = number | string, IsMulti extends boolean = false> = Pick<SelectProps<OptionValue, IsMulti>, 'name' | 'classNamePrefix' | 'options' | 'value' | 'onChange' | 'isSearchable' | 'isClearable' | 'hideSelectedOptions' | 'controlShouldRenderValue' | 'closeMenuOnSelect' | 'isDisabled' | 'isLoading' | 'required' | 'isOptionDisabled' | 'placeholder' | 'menuPosition' | 'getOptionLabel' | 'getOptionValue' | 'isOptionSelected' | 'menuIsOpen' | 'onMenuOpen' | 'onMenuClose' | 'autoFocus' | 'onBlur' | 'onKeyDown' | 'formatOptionLabel' | 'onInputChange' | 'inputValue' | 'filterOption' | 'noOptionsMessage'> & Partial<Pick<SelectProps<OptionValue, IsMulti>, 'renderMenuListFooter' | 'shouldRenderCustomOptions' | 'renderCustomOptions' | 'icon' | 'showSelectedOptionIcon' | 'renderOptionsFooter' | 'shouldRenderTextArea'>> & Required<Pick<SelectProps<OptionValue, IsMulti>, 'inputId'>> & Partial<Pick<CreatableProps<SelectPickerOptionType<OptionValue>, IsMulti, GroupBase<SelectPickerOptionType<OptionValue>>>, 'onCreateOption' | 'formatCreateLabel' | 'menuPortalTarget'>> & Omit<FormFieldWrapperProps, 'children'> & {
|
84
84
|
/**
|
85
85
|
* Custom selected options count for use cases like filters
|
86
86
|
*/
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { WorkflowOptionsModalProps } from './types';
|
2
|
-
declare const WorkflowOptionsModal: ({ handleCloseWorkflowOptionsModal, addCIPipeline, addWebhookCD, addLinkedCD, showLinkedCDSource, changeCIPayload, workflows, getWorkflows, resetChangeCIPayload, linkedCDSourceVariant, isAppGroup, }: Readonly<WorkflowOptionsModalProps>) => JSX.Element;
|
2
|
+
declare const WorkflowOptionsModal: ({ handleCloseWorkflowOptionsModal, addCIPipeline, addWebhookCD, addLinkedCD, showLinkedCDSource, changeCIPayload, workflows, getWorkflows, resetChangeCIPayload, linkedCDSourceVariant, isAppGroup, isTemplateView, }: Readonly<WorkflowOptionsModalProps>) => JSX.Element;
|
3
3
|
export default WorkflowOptionsModal;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { AppConfigProps } from '../../../Pages/index';
|
1
2
|
import { ChangeCIPayloadType, CIPipelineNodeType, WorkflowType } from '../../types';
|
2
3
|
interface LinkedCDSourceVariant {
|
3
4
|
title: string;
|
@@ -12,7 +13,7 @@ export interface SourceTypeCardProps extends LinkedCDSourceVariant {
|
|
12
13
|
disableInfo: string;
|
13
14
|
isDisabled?: boolean;
|
14
15
|
}
|
15
|
-
export interface WorkflowOptionsModalProps {
|
16
|
+
export interface WorkflowOptionsModalProps extends Required<Pick<AppConfigProps, 'isTemplateView'>> {
|
16
17
|
handleCloseWorkflowOptionsModal: () => void;
|
17
18
|
addCIPipeline: (type: CIPipelineNodeType, workflowId?: number | string) => void;
|
18
19
|
addWebhookCD: (workflowId?: number | string) => void;
|
@@ -59,6 +59,8 @@ export * from './ThemeSwitcher';
|
|
59
59
|
export * from './TargetPlatforms';
|
60
60
|
export * from './UnsavedChanges';
|
61
61
|
export * from './UnsavedChangesDialog';
|
62
|
+
export * from './GraphVisualizer';
|
63
|
+
export * from './GenericInfoCard';
|
62
64
|
export * from './Icon';
|
63
65
|
export * from './StatusComponent';
|
64
66
|
export * from './RegistryIcon';
|
@@ -67,10 +69,4 @@ export * from './CustomInput';
|
|
67
69
|
export * from './InfoBlock';
|
68
70
|
export * from './CodeEditorWrapper';
|
69
71
|
export * from './SSOProviderIcon';
|
70
|
-
export * from './Backdrop';
|
71
|
-
export * from './CountrySelect';
|
72
|
-
export * from './PhoneInput';
|
73
|
-
export * from './FlagImage';
|
74
|
-
export * from './DevtronLicenseCard';
|
75
|
-
export * from './LoginBanner';
|
76
72
|
export * from './Confetti';
|
package/dist/Shared/Helpers.d.ts
CHANGED
@@ -100,5 +100,4 @@ export declare const deriveBorderRadiusAndBorderClassFromConfig: ({ borderConfig
|
|
100
100
|
borderRadiusConfig: BorderConfigType | undefined;
|
101
101
|
}) => string;
|
102
102
|
export declare const getClassNameForStickyHeaderWithShadow: (isStuck: boolean, topClassName?: string) => string;
|
103
|
-
export declare const clearCookieOnLogout: () => void;
|
104
103
|
export {};
|
@@ -5,6 +5,7 @@ export interface MainContext {
|
|
5
5
|
serverMode: SERVER_MODE;
|
6
6
|
setServerMode: (serverMode: SERVER_MODE) => void;
|
7
7
|
isHelpGettingStartedClicked: boolean;
|
8
|
+
setPageOverflowEnabled: (isPageOverflowEnabled: boolean) => void;
|
8
9
|
showCloseButtonAfterGettingStartedClicked: () => void;
|
9
10
|
loginCount: number;
|
10
11
|
setLoginCount: (loginCount: number) => void;
|
@@ -38,7 +39,6 @@ export interface MainContext {
|
|
38
39
|
isManifestScanningEnabled: boolean;
|
39
40
|
canOnlyViewPermittedEnvOrgLevel: boolean;
|
40
41
|
viewIsPipelineRBACConfiguredNode: ReactNode;
|
41
|
-
handleOpenLicenseInfoDialog: () => void;
|
42
42
|
}
|
43
43
|
export interface MainContextProviderProps {
|
44
44
|
children: ReactNode;
|
@@ -1,3 +1,4 @@
|
|
1
|
+
import { AppConfigProps } from '../../Pages/index';
|
1
2
|
import { ResponseType } from '../../Common';
|
2
3
|
import { CIMaterialInfoType, GetCITriggerInfoParamsType, AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType } from './app.types';
|
3
4
|
export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<CIMaterialInfoType>;
|
@@ -5,8 +6,10 @@ export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => P
|
|
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>;
|
8
|
-
export declare const getAppEnvDeploymentConfig: ({ params, signal, }: {
|
9
|
+
export declare const getAppEnvDeploymentConfig: ({ params, signal, isTemplateView, appId, }: {
|
9
10
|
params: AppEnvDeploymentConfigPayloadType;
|
10
11
|
signal?: AbortSignal;
|
12
|
+
isTemplateView: AppConfigProps["isTemplateView"];
|
13
|
+
appId: string | number | null;
|
11
14
|
}) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
|
12
15
|
export declare const getCompareSecretsData: (params: AppEnvDeploymentConfigPayloadType[]) => Promise<AppEnvDeploymentConfigDTO[]>;
|
@@ -1,7 +1,8 @@
|
|
1
|
+
import { AppConfigProps } from '../../Pages/index';
|
1
2
|
import { EnvironmentDataValuesDTO, GetPolicyApiUrlProps, GetResourceApiUrlProps, UpdatedUserPreferencesType, UserPreferencesType } from './types';
|
2
3
|
export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
|
3
4
|
export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
|
4
|
-
export declare const saveCDPipeline: (request: any) => Promise<import('../../Common').ResponseType<any>>;
|
5
|
+
export declare const saveCDPipeline: (request: any, { isTemplateView }: Required<Pick<AppConfigProps, "isTemplateView">>) => Promise<import('../../Common').ResponseType<any>>;
|
5
6
|
export declare const getEnvironmentData: () => Promise<import('../../Common').ResponseType<EnvironmentDataValuesDTO>>;
|
6
7
|
export declare const getUserPreferences: () => Promise<UserPreferencesType>;
|
7
8
|
export declare const updateUserPreferences: (updatedUserPreferences: UpdatedUserPreferencesType, shouldThrowError?: boolean) => Promise<boolean>;
|
@@ -408,8 +408,6 @@ export declare const DC_DELETE_SUBTITLES: {
|
|
408
408
|
DELETE_ENVIRONMENT_SUBTITLE: string;
|
409
409
|
DELETE_CLUSTER_SUBTITLES: string;
|
410
410
|
};
|
411
|
-
export declare const EULA_LINK = "https://devtron.ai/end-user-license-agreement-eula";
|
412
|
-
export declare const CONTACT_SUPPORT_LINK = "https://share.hsforms.com/1Yp3bvPAaRCaHUEH5vtMjEQ4368n";
|
413
411
|
export declare const enum DeleteComponentsName {
|
414
412
|
Cluster = "cluster",
|
415
413
|
Job = "job pipeline",
|
@@ -419,4 +417,3 @@ export declare const Routes: {
|
|
419
417
|
CI_PIPELINE_PATCH: string;
|
420
418
|
WORKFLOW: string;
|
421
419
|
};
|
422
|
-
export declare const ENTERPRISE_SUPPORT_LINK = "enterprise@devtron.ai";
|
package/dist/Shared/types.d.ts
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
import { Dayjs } from 'dayjs';
|
2
2
|
import { APIOptions, ApprovalConfigDataType } from '../Common/Types';
|
3
|
-
import { ParsedCountry } from 'react-international-phone';
|
4
3
|
import { OptionType, CommonNodeAttr, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, RefVariableType, PluginType } from '../Common';
|
5
4
|
import { BASE_CONFIGURATION_ENV_ID, EnvironmentTypeEnum, PatchOperationType } from './constants';
|
6
5
|
import { SelectPickerOptionType } from './Components';
|
@@ -876,36 +875,4 @@ export interface AppEnvIdType {
|
|
876
875
|
appId: number;
|
877
876
|
envId: number;
|
878
877
|
}
|
879
|
-
export interface DevtronLicenseBaseDTO {
|
880
|
-
fingerprint: string | null;
|
881
|
-
isTrial: boolean | null;
|
882
|
-
/**
|
883
|
-
* In timestamp format
|
884
|
-
*/
|
885
|
-
expiry: string | null;
|
886
|
-
/**
|
887
|
-
* Can be negative, depicts time left in seconds for license to expire
|
888
|
-
*/
|
889
|
-
ttl: number | null;
|
890
|
-
/**
|
891
|
-
* Show a reminder after these many DAYS left for license to expire, i.e,
|
892
|
-
* Show if `ttl` is less than `reminderThreshold` [converted to seconds]
|
893
|
-
*/
|
894
|
-
reminderThreshold: number | null;
|
895
|
-
organisationMetadata: {
|
896
|
-
name: string | null;
|
897
|
-
domain: string | null;
|
898
|
-
} | null;
|
899
|
-
license: string | null;
|
900
|
-
}
|
901
|
-
export type DevtronLicenseDTO<isCentralDashboard extends boolean = false> = DevtronLicenseBaseDTO & (isCentralDashboard extends true ? {
|
902
|
-
claimedByUserDetails: {
|
903
|
-
firstName: string | null;
|
904
|
-
lastName: string | null;
|
905
|
-
email: string | null;
|
906
|
-
} | null;
|
907
|
-
} : {
|
908
|
-
claimedByUserDetails?: never;
|
909
|
-
});
|
910
|
-
export type CountryISO2Type = ParsedCountry['iso2'];
|
911
878
|
export {};
|
@@ -17,6 +17,7 @@ export declare const MESSAGES: {
|
|
17
17
|
INVALID_DATE: string;
|
18
18
|
DATE_BEFORE_CURRENT_TIME: string;
|
19
19
|
};
|
20
|
+
export declare const MAX_DESCRIPTION_LENGTH = 350;
|
20
21
|
export declare const validateLabelValue: (value: string) => string[];
|
21
22
|
export declare const validateLabelKey: (key: string, skipValidationIfSpecialPrefix?: boolean) => {
|
22
23
|
isValid: boolean;
|