@devtron-labs/devtron-fe-common-lib 1.9.5-beta-1 → 1.9.5-beta-3

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.
Files changed (93) hide show
  1. package/dist/{@code-editor-T6Mhnd9I.js → @code-editor-CWmHyowW.js} +7553 -7528
  2. package/dist/{@common-rjsf-nN8cdgqv.js → @common-rjsf-BxmWuuRy.js} +2 -2
  3. package/dist/{@framer-motion-d6Rrf9nF.js → @framer-motion-Cx1gSa6-.js} +1 -1
  4. package/dist/{@react-dates-ClfZGMIH.js → @react-dates-ukcBEyJ1.js} +243 -243
  5. package/dist/{@react-select-BvPf5K_D.js → @react-select-Cas7oOFN.js} +1 -1
  6. package/dist/{@react-virtualized-sticky-tree-BGA3IyDu.js → @react-virtualized-sticky-tree-DRihF7_6.js} +1 -1
  7. package/dist/{@vendor-KiGK4ZkE.js → @vendor-xG1dUtf3.js} +25097 -30904
  8. package/dist/Common/API/CoreAPI.d.ts +17 -0
  9. package/dist/Common/API/constants.d.ts +70 -0
  10. package/dist/Common/API/index.d.ts +3 -0
  11. package/dist/Common/API/types.d.ts +23 -0
  12. package/dist/Common/API/utils.d.ts +12 -0
  13. package/dist/Common/Constants.d.ts +92 -94
  14. package/dist/Common/Helper.d.ts +1 -0
  15. package/dist/Common/Tooltip/constants.d.ts +0 -1
  16. package/dist/Common/Types.d.ts +7 -4
  17. package/dist/Common/index.d.ts +1 -1
  18. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/types.d.ts +0 -38
  19. package/dist/Shared/Components/CountrySelect/CountrySelect.component.d.ts +3 -0
  20. package/dist/Shared/Components/CountrySelect/index.d.ts +1 -0
  21. package/dist/Shared/Components/CountrySelect/types.d.ts +7 -0
  22. package/dist/Shared/Components/CountrySelect/utils.d.ts +4 -0
  23. package/dist/Shared/Components/CustomInput/CustomInput.d.ts +1 -1
  24. package/dist/Shared/Components/CustomInput/types.d.ts +5 -1
  25. package/dist/Shared/Components/DevtronLicenseCard/DevtronLicenseCard.d.ts +3 -0
  26. package/dist/Shared/Components/DevtronLicenseCard/index.d.ts +3 -0
  27. package/dist/Shared/Components/DevtronLicenseCard/types.d.ts +18 -0
  28. package/dist/Shared/Components/DevtronLicenseCard/utils.d.ts +6 -0
  29. package/dist/Shared/Components/FlagImage/FlagImage.component.d.ts +3 -0
  30. package/dist/Shared/Components/FlagImage/index.d.ts +1 -0
  31. package/dist/Shared/Components/FlagImage/types.d.ts +5 -0
  32. package/dist/Shared/Components/FloatingVariablesSuggestions/FloatingVariablesSuggestions.d.ts +1 -1
  33. package/dist/Shared/Components/FloatingVariablesSuggestions/service.d.ts +1 -3
  34. package/dist/Shared/Components/FloatingVariablesSuggestions/types.d.ts +1 -2
  35. package/dist/Shared/Components/GitProviderIcon/GitProviderIcon.d.ts +1 -1
  36. package/dist/Shared/Components/GitProviderIcon/types.d.ts +3 -8
  37. package/dist/Shared/Components/Header/types.d.ts +0 -1
  38. package/dist/Shared/Components/Icon/Icon.d.ts +9 -3
  39. package/dist/Shared/Components/LoginBanner/LoginBanner.d.ts +2 -0
  40. package/dist/Shared/Components/LoginBanner/constants.d.ts +2 -0
  41. package/dist/Shared/Components/LoginBanner/index.d.ts +1 -0
  42. package/dist/Shared/Components/LoginBanner/types.d.ts +7 -0
  43. package/dist/Shared/Components/ModalSidebarPanel/types.d.ts +1 -1
  44. package/dist/Shared/Components/PhoneInput/PhoneInput.component.d.ts +3 -0
  45. package/dist/Shared/Components/PhoneInput/index.d.ts +1 -0
  46. package/dist/Shared/Components/PhoneInput/types.d.ts +11 -0
  47. package/dist/Shared/Components/ReactSelect/constants.d.ts +15 -7
  48. package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
  49. package/dist/Shared/Components/WorkflowOptionsModal/WorkflowOptionsModal.d.ts +1 -1
  50. package/dist/Shared/Components/WorkflowOptionsModal/types.d.ts +1 -2
  51. package/dist/Shared/Components/index.d.ts +6 -2
  52. package/dist/Shared/Helpers.d.ts +1 -0
  53. package/dist/Shared/Providers/types.d.ts +1 -1
  54. package/dist/Shared/Services/app.service.d.ts +1 -4
  55. package/dist/Shared/Services/common.service.d.ts +1 -2
  56. package/dist/Shared/Services/index.d.ts +0 -1
  57. package/dist/Shared/constants.d.ts +3 -0
  58. package/dist/Shared/types.d.ts +33 -0
  59. package/dist/Shared/validations.d.ts +0 -1
  60. package/dist/assets/@code-editor.css +1 -1
  61. package/dist/assets/@vendor.css +1 -1
  62. package/dist/assets/ic-book-open.e839bbda.svg +3 -0
  63. package/dist/assets/{ic-copy.416d85f3.svg → ic-caret-left.3df25a7c.svg} +1 -1
  64. package/dist/assets/ic-chat-circle-dots.b5afd171.svg +3 -0
  65. package/dist/assets/ic-devtron-header-logo.7dc157aa.svg +4 -0
  66. package/dist/assets/ic-devtron.aca6cbaa.svg +3 -0
  67. package/dist/assets/ic-key.56432553.svg +19 -0
  68. package/dist/assets/ic-quote.68f093fe.svg +3 -0
  69. package/dist/assets/ic-timer.ae5f10fa.svg +19 -0
  70. package/dist/index.d.ts +0 -8
  71. package/dist/index.js +806 -800
  72. package/package.json +2 -2
  73. package/dist/Common/Api.d.ts +0 -15
  74. package/dist/Common/GenericDescription/utils.d.ts +0 -1
  75. package/dist/Shared/Components/GenericInfoCard/GenericInfoCard.component.d.ts +0 -3
  76. package/dist/Shared/Components/GenericInfoCard/index.d.ts +0 -2
  77. package/dist/Shared/Components/GenericInfoCard/types.d.ts +0 -26
  78. package/dist/Shared/Components/GenericInfoCard/utils.d.ts +0 -2
  79. package/dist/Shared/Components/GitProviderIcon/utils.d.ts +0 -2
  80. package/dist/Shared/Components/GraphVisualizer/GraphVisualizer.d.ts +0 -2
  81. package/dist/Shared/Components/GraphVisualizer/components/BaseNode.d.ts +0 -2
  82. package/dist/Shared/Components/GraphVisualizer/components/DropdownNode.d.ts +0 -3
  83. package/dist/Shared/Components/GraphVisualizer/components/IconNode.d.ts +0 -3
  84. package/dist/Shared/Components/GraphVisualizer/components/TextNode.d.ts +0 -3
  85. package/dist/Shared/Components/GraphVisualizer/components/index.d.ts +0 -4
  86. package/dist/Shared/Components/GraphVisualizer/components/types.d.ts +0 -19
  87. package/dist/Shared/Components/GraphVisualizer/constants.d.ts +0 -15
  88. package/dist/Shared/Components/GraphVisualizer/index.d.ts +0 -2
  89. package/dist/Shared/Components/GraphVisualizer/types.d.ts +0 -12
  90. package/dist/Shared/Components/GraphVisualizer/utils.d.ts +0 -17
  91. package/dist/Shared/Services/template.service.d.ts +0 -2
  92. package/dist/assets/ic-card-stack.efd37c91.svg +0 -3
  93. package/dist/assets/ic-new.2c179139.svg +0 -3
@@ -6,11 +6,14 @@ 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>>;
9
10
  'ic-browser': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
10
11
  'ic-build-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
12
+ 'ic-calendar': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
11
13
  'ic-cancelled': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
12
- 'ic-card-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
14
+ 'ic-caret-left': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
13
15
  'ic-cd': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
16
+ 'ic-chat-circle-dots': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
14
17
  'ic-ci-linked': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
15
18
  'ic-ci-webhook': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
16
19
  'ic-circle-loader': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -18,10 +21,11 @@ export declare const iconMap: {
18
21
  'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
19
22
  'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
20
23
  'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
21
- 'ic-copy': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
22
24
  'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
23
25
  'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
24
26
  '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>>;
25
29
  'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
26
30
  'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
27
31
  'ic-env': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -46,6 +50,7 @@ export declare const iconMap: {
46
50
  'ic-info-outline': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
47
51
  'ic-job-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
48
52
  'ic-k8s-job': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
53
+ 'ic-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
49
54
  'ic-ldap': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
50
55
  'ic-login-devtron-logo': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
51
56
  'ic-logout': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -53,7 +58,6 @@ export declare const iconMap: {
53
58
  'ic-microsoft': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
54
59
  'ic-missing': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
55
60
  'ic-monitoring': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
56
- 'ic-new': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
57
61
  'ic-node-script': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
58
62
  'ic-oidc': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
59
63
  'ic-open-box': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -62,11 +66,13 @@ export declare const iconMap: {
62
66
  'ic-out-of-sync': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
63
67
  'ic-paper-plane-color': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
64
68
  'ic-quay': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
69
+ 'ic-quote': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
65
70
  'ic-shield-check': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
66
71
  'ic-stack': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
67
72
  'ic-success': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
68
73
  'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
69
74
  'ic-timeout-two-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
75
+ 'ic-timer': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
70
76
  'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
71
77
  'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
72
78
  'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -0,0 +1,2 @@
1
+ declare const LoginBanner: () => JSX.Element;
2
+ export default LoginBanner;
@@ -0,0 +1,2 @@
1
+ import { TestimonialCardConfig } from './types';
2
+ export declare const TESTIMONIAL_CARD_DATA: TestimonialCardConfig;
@@ -0,0 +1 @@
1
+ export { default as LoginBanner } from './LoginBanner';
@@ -0,0 +1,7 @@
1
+ import { IconsProps } from 'src';
2
+ export interface TestimonialCardConfig {
3
+ quote: string;
4
+ name: string;
5
+ designation: string;
6
+ iconName: IconsProps['name'];
7
+ }
@@ -1,7 +1,7 @@
1
1
  import { ReactNode } from 'react';
2
2
  export interface ModalSidebarPanelProps {
3
3
  rootClassName?: string;
4
- heading: string | null;
4
+ heading: string;
5
5
  icon?: JSX.Element;
6
6
  children?: ReactNode;
7
7
  documentationLink: string;
@@ -0,0 +1,3 @@
1
+ import { PhoneInputProps } from './types';
2
+ declare const PhoneInput: ({ error, onChange, required, phoneNumberInputName, countryCodeSelectName, phoneValue, countryCodeSelectSize, }: PhoneInputProps) => JSX.Element;
3
+ export default PhoneInput;
@@ -0,0 +1 @@
1
+ export { default as PhoneInput } from './PhoneInput.component';
@@ -0,0 +1,11 @@
1
+ import { ComponentProps } from 'react';
2
+ import { CountrySelect } from '../CountrySelect';
3
+ export interface PhoneInputProps {
4
+ phoneValue: string;
5
+ onChange: (value: string) => void;
6
+ error?: string | null;
7
+ countryCodeSelectName: string;
8
+ phoneNumberInputName: string;
9
+ required?: boolean;
10
+ countryCodeSelectSize?: ComponentProps<typeof CountrySelect>['size'];
11
+ }
@@ -1,7 +1,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;
1
+ export declare const CommonGroupedDropdownStyles: {
2
+ container: (base: any, state: any) => any;
3
+ control: (base: any, state: any) => any;
4
+ singleValue: (base: any) => any;
5
+ option: (base: any, state: any) => any;
6
+ valueContainer: (base: any) => any;
7
+ dropdownIndicator: (base: any, state: any) => any;
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
+ };
@@ -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' | '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'> & {
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'> & {
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, isTemplateView, }: Readonly<WorkflowOptionsModalProps>) => JSX.Element;
2
+ declare const WorkflowOptionsModal: ({ handleCloseWorkflowOptionsModal, addCIPipeline, addWebhookCD, addLinkedCD, showLinkedCDSource, changeCIPayload, workflows, getWorkflows, resetChangeCIPayload, linkedCDSourceVariant, isAppGroup, }: Readonly<WorkflowOptionsModalProps>) => JSX.Element;
3
3
  export default WorkflowOptionsModal;
@@ -1,4 +1,3 @@
1
- import { AppConfigProps } from '../../../Pages/index';
2
1
  import { ChangeCIPayloadType, CIPipelineNodeType, WorkflowType } from '../../types';
3
2
  interface LinkedCDSourceVariant {
4
3
  title: string;
@@ -13,7 +12,7 @@ export interface SourceTypeCardProps extends LinkedCDSourceVariant {
13
12
  disableInfo: string;
14
13
  isDisabled?: boolean;
15
14
  }
16
- export interface WorkflowOptionsModalProps extends Required<Pick<AppConfigProps, 'isTemplateView'>> {
15
+ export interface WorkflowOptionsModalProps {
17
16
  handleCloseWorkflowOptionsModal: () => void;
18
17
  addCIPipeline: (type: CIPipelineNodeType, workflowId?: number | string) => void;
19
18
  addWebhookCD: (workflowId?: number | string) => void;
@@ -59,8 +59,6 @@ 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';
64
62
  export * from './Icon';
65
63
  export * from './StatusComponent';
66
64
  export * from './RegistryIcon';
@@ -69,4 +67,10 @@ export * from './CustomInput';
69
67
  export * from './InfoBlock';
70
68
  export * from './CodeEditorWrapper';
71
69
  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';
72
76
  export * from './Confetti';
@@ -100,4 +100,5 @@ 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;
103
104
  export {};
@@ -5,7 +5,6 @@ export interface MainContext {
5
5
  serverMode: SERVER_MODE;
6
6
  setServerMode: (serverMode: SERVER_MODE) => void;
7
7
  isHelpGettingStartedClicked: boolean;
8
- setPageOverflowEnabled: (isPageOverflowEnabled: boolean) => void;
9
8
  showCloseButtonAfterGettingStartedClicked: () => void;
10
9
  loginCount: number;
11
10
  setLoginCount: (loginCount: number) => void;
@@ -39,6 +38,7 @@ export interface MainContext {
39
38
  isManifestScanningEnabled: boolean;
40
39
  canOnlyViewPermittedEnvOrgLevel: boolean;
41
40
  viewIsPipelineRBACConfiguredNode: ReactNode;
41
+ handleOpenLicenseInfoDialog: () => void;
42
42
  }
43
43
  export interface MainContextProviderProps {
44
44
  children: ReactNode;
@@ -1,4 +1,3 @@
1
- import { AppConfigProps } from '../../Pages/index';
2
1
  import { ResponseType } from '../../Common';
3
2
  import { CIMaterialInfoType, GetCITriggerInfoParamsType, AppEnvDeploymentConfigDTO, AppEnvDeploymentConfigPayloadType } from './app.types';
4
3
  export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => Promise<CIMaterialInfoType>;
@@ -6,10 +5,8 @@ export declare const getCITriggerInfo: (params: GetCITriggerInfoParamsType) => P
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, signal, isTemplateView, appId, }: {
8
+ export declare const getAppEnvDeploymentConfig: ({ params, signal, }: {
10
9
  params: AppEnvDeploymentConfigPayloadType;
11
10
  signal?: AbortSignal;
12
- isTemplateView: AppConfigProps["isTemplateView"];
13
- appId: string | number | null;
14
11
  }) => Promise<ResponseType<AppEnvDeploymentConfigDTO>>;
15
12
  export declare const getCompareSecretsData: (params: AppEnvDeploymentConfigPayloadType[]) => Promise<AppEnvDeploymentConfigDTO[]>;
@@ -1,8 +1,7 @@
1
- import { AppConfigProps } from '../../Pages/index';
2
1
  import { EnvironmentDataValuesDTO, GetPolicyApiUrlProps, GetResourceApiUrlProps, UpdatedUserPreferencesType, UserPreferencesType } from './types';
3
2
  export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
4
3
  export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
5
- export declare const saveCDPipeline: (request: any, { isTemplateView }: Required<Pick<AppConfigProps, "isTemplateView">>) => Promise<import('../../Common').ResponseType<any>>;
4
+ export declare const saveCDPipeline: (request: any) => Promise<import('../../Common').ResponseType<any>>;
6
5
  export declare const getEnvironmentData: () => Promise<import('../../Common').ResponseType<EnvironmentDataValuesDTO>>;
7
6
  export declare const getUserPreferences: () => Promise<UserPreferencesType>;
8
7
  export declare const updateUserPreferences: (updatedUserPreferences: UpdatedUserPreferencesType, shouldThrowError?: boolean) => Promise<boolean>;
@@ -4,4 +4,3 @@ export * from './app.service';
4
4
  export * from './common.service';
5
5
  export * from './ToastManager';
6
6
  export * from './utils';
7
- export * from './template.service';
@@ -408,6 +408,8 @@ 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";
411
413
  export declare const enum DeleteComponentsName {
412
414
  Cluster = "cluster",
413
415
  Job = "job pipeline",
@@ -417,3 +419,4 @@ export declare const Routes: {
417
419
  CI_PIPELINE_PATCH: string;
418
420
  WORKFLOW: string;
419
421
  };
422
+ export declare const ENTERPRISE_SUPPORT_LINK = "enterprise@devtron.ai";
@@ -1,5 +1,6 @@
1
1
  import { Dayjs } from 'dayjs';
2
2
  import { APIOptions, ApprovalConfigDataType } from '../Common/Types';
3
+ import { ParsedCountry } from 'react-international-phone';
3
4
  import { OptionType, CommonNodeAttr, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, RefVariableType, PluginType } from '../Common';
4
5
  import { BASE_CONFIGURATION_ENV_ID, EnvironmentTypeEnum, PatchOperationType } from './constants';
5
6
  import { SelectPickerOptionType } from './Components';
@@ -875,4 +876,36 @@ export interface AppEnvIdType {
875
876
  appId: number;
876
877
  envId: number;
877
878
  }
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'];
878
911
  export {};
@@ -17,7 +17,6 @@ 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;
21
20
  export declare const validateLabelValue: (value: string) => string[];
22
21
  export declare const validateLabelKey: (key: string, skipValidationIfSpecialPrefix?: boolean) => {
23
22
  isValid: boolean;