@devtron-labs/devtron-fe-common-lib 1.8.2-beta-4 → 1.8.2-beta-6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (34) hide show
  1. package/dist/{@code-editor-DAX_tz5C.js → @code-editor-hufLMePq.js} +2174 -2168
  2. package/dist/{@common-rjsf-CVXN3g04.js → @common-rjsf-8glbE4nj.js} +1 -1
  3. package/dist/Common/CodeEditor/types.d.ts +1 -1
  4. package/dist/Common/Common.service.d.ts +8 -1
  5. package/dist/Common/Constants.d.ts +1 -0
  6. package/dist/Common/Hooks/UseRegisterShortcut/utils.d.ts +1 -1
  7. package/dist/Common/Hooks/UseSuperAdmin/UseSuperAdmin.d.ts +6 -0
  8. package/dist/Common/Hooks/UseSuperAdmin/types.d.ts +3 -0
  9. package/dist/Common/Hooks/index.d.ts +1 -1
  10. package/dist/Common/RJSF/Form.d.ts +1 -1
  11. package/dist/Common/Toggle/Toggle.d.ts +1 -2
  12. package/dist/Common/Types.d.ts +2 -20
  13. package/dist/Pages/Applications/DevtronApps/Details/AppConfigurations/DeploymentTemplate/types.d.ts +4 -0
  14. package/dist/Pages/Applications/DevtronApps/Details/CDPipeline/types.d.ts +1 -1
  15. package/dist/Shared/Components/CICDHistory/constants.d.ts +1 -1
  16. package/dist/Shared/Components/CICDHistory/types.d.ts +8 -0
  17. package/dist/Shared/Components/GenericSectionErrorState/GenericSectionErrorState.component.d.ts +1 -1
  18. package/dist/Shared/Components/GenericSectionErrorState/types.d.ts +18 -5
  19. package/dist/Shared/Components/Icon/Icon.d.ts +0 -2
  20. package/dist/Shared/Components/InfoBlock/types.d.ts +2 -2
  21. package/dist/Shared/Components/Security/SecurityModal/utils.d.ts +2 -2
  22. package/dist/Shared/Providers/types.d.ts +15 -1
  23. package/dist/Shared/Services/common.service.d.ts +2 -1
  24. package/dist/Shared/Services/types.d.ts +6 -0
  25. package/dist/Shared/Store/IndexStore.d.ts +1 -1
  26. package/dist/Shared/types.d.ts +3 -24
  27. package/dist/index.d.ts +3 -0
  28. package/dist/index.js +761 -759
  29. package/package.json +1 -1
  30. package/dist/Common/Hooks/UseGetUserRoles/UseGetUserRoles.d.ts +0 -7
  31. package/dist/Common/Hooks/UseGetUserRoles/index.d.ts +0 -1
  32. package/dist/Common/Hooks/UseGetUserRoles/types.d.ts +0 -7
  33. package/dist/assets/ic-crown.868ff2a9.svg +0 -3
  34. package/dist/assets/ic-user-key.523f6939.svg +0 -4
@@ -1,7 +1,7 @@
1
1
  import { j as n, J as y, e as k, b as W } from "./@vendor-CIA81cZg.js";
2
2
  import J, { forwardRef as V, useMemo as P } from "react";
3
3
  import K, { getDefaultRegistry as q } from "@rjsf/core";
4
- import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-DAX_tz5C.js";
4
+ import { T as F, j as N, c as v, b as S, a as Y, i as z, d as w, e as E, S as G } from "./@code-editor-hufLMePq.js";
5
5
  import Q, { components as D } from "react-select";
6
6
  import { ReactComponent as X } from "./assets/ic-chevron-down.fc70d7a7.svg";
7
7
  import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as Z, ADDITIONAL_PROPERTY_FLAG as L, errorId as ee, englishStringTranslator as te, TranslatableString as ne, titleId as re, canExpand as se, deepEquals as ae } from "@rjsf/utils";
@@ -74,7 +74,7 @@ export interface CodeEditorHeaderComposition {
74
74
  ValidationError?: React.FC<any>;
75
75
  Clipboard?: React.FC<any>;
76
76
  }
77
- type ActionTypes = 'changeLanguage' | 'setDiff' | 'setTheme' | 'setCode' | 'setDefaultCode' | 'setHeight';
77
+ export type ActionTypes = 'changeLanguage' | 'setDiff' | 'setTheme' | 'setCode' | 'setDefaultCode' | 'setHeight';
78
78
  export interface Action {
79
79
  type: ActionTypes;
80
80
  value: any;
@@ -1,8 +1,14 @@
1
1
  import { MutableRefObject } from 'react';
2
2
  import { RuntimeParamsAPIResponseType, RuntimePluginVariables } from '../Shared/types';
3
- import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole } from './Types';
3
+ import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType } from './Types';
4
4
  import { ApiResourceType } from '../Pages';
5
5
  export declare const getTeamListMin: () => Promise<TeamList>;
6
+ interface UserRole extends ResponseType {
7
+ result?: {
8
+ roles: string[];
9
+ superAdmin: boolean;
10
+ };
11
+ }
6
12
  export declare const SourceTypeMap: {
7
13
  BranchFixed: string;
8
14
  WEBHOOK: string;
@@ -35,3 +41,4 @@ export declare const getGlobalVariables: ({ appId, isCD, abortControllerRef, }:
35
41
  isCD?: boolean;
36
42
  abortControllerRef?: MutableRefObject<AbortController>;
37
43
  }) => Promise<GlobalVariableOptionType[]>;
44
+ export {};
@@ -118,6 +118,7 @@ export declare const ROUTES: {
118
118
  CD_TRIGGER_POST: string;
119
119
  DELETE_RESOURCE: string;
120
120
  NODE_CAPACITY: string;
121
+ ENVIRONMENT_DATA: string;
121
122
  };
122
123
  export declare enum KEY_VALUE {
123
124
  KEY = "key",
@@ -1,6 +1,6 @@
1
1
  import { ShortcutType } from './types';
2
2
  export declare const preprocessKeys: (keys: ShortcutType["keys"]) => {
3
- keys: ("Alt" | "F" | "E" | "R" | "K" | "Control" | "Shift" | "Meta" | "Escape" | "Enter")[];
3
+ keys: ("Escape" | "Control" | "Alt" | "F" | "E" | "R" | "K" | "Shift" | "Meta" | "Enter")[];
4
4
  id: string;
5
5
  };
6
6
  export declare const verifyCallbackStack: (stack: ShortcutType["callbackStack"]) => void;
@@ -0,0 +1,6 @@
1
+ import { useSuperAdminType } from './types';
2
+ /**
3
+ * @description It will return isSuperAdmin and would be set to false by default, might need few optimizations like dep, etc
4
+ * @returns {useSuperAdminType} isSuperAdmin
5
+ */
6
+ export declare const useSuperAdmin: () => useSuperAdminType;
@@ -0,0 +1,3 @@
1
+ export interface useSuperAdminType {
2
+ isSuperAdmin: boolean;
3
+ }
@@ -1,4 +1,4 @@
1
- export { useGetUserRoles } from './UseGetUserRoles';
1
+ export { useSuperAdmin } from './UseSuperAdmin/UseSuperAdmin';
2
2
  export { useClickOutside } from './UseClickOutside/UseClickOutside';
3
3
  export { useWindowSize } from './UseWindowSize/UseWindowSize';
4
4
  export * from './useUrlFilters';
@@ -1,3 +1,3 @@
1
1
  import { default as RJSF } from '@rjsf/core';
2
2
  import { FormProps } from './types';
3
- export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "name" | "id" | "children" | "className" | "disabled" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "action" | "method" | "autoComplete" | "tagName" | "noValidate" | "readonly" | "schema" | "uiSchema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "enctype" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
3
+ export declare const RJSFForm: import('react').ForwardRefExoticComponent<Pick<FormProps, "className" | "children" | "disabled" | "id" | "name" | "target" | "onFocus" | "onBlur" | "onChange" | "onSubmit" | "onError" | "autoComplete" | "noValidate" | "tagName" | "readonly" | "schema" | "uiSchema" | "formContext" | "formData" | "idPrefix" | "idSeparator" | "fields" | "templates" | "widgets" | "translateString" | "acceptcharset" | "acceptCharset" | "action" | "enctype" | "method" | "customValidate" | "extraErrors" | "extraErrorsBlockSubmit" | "noHtml5Validate" | "liveValidate" | "liveOmit" | "omitExtraData" | "showErrorList" | "transformErrors" | "focusOnFirstError" | "experimental_defaultFormStateBehavior" | "_internalFormWrapper"> & import('react').RefAttributes<RJSF<any, import('./types').RJSFFormSchema, any>>>;
@@ -1,4 +1,4 @@
1
- declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, throttleOnChange, shouldToggleValueOnLabelClick, ...props }: {
1
+ declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dataTestId, Icon, iconClass, throttleOnChange, ...props }: {
2
2
  [x: string]: any;
3
3
  selected?: boolean;
4
4
  onSelect?: any;
@@ -9,6 +9,5 @@ declare const Toggle: ({ selected, onSelect, color, rootClassName, disabled, dat
9
9
  Icon?: any;
10
10
  iconClass?: string;
11
11
  throttleOnChange?: boolean;
12
- shouldToggleValueOnLabelClick?: boolean;
13
12
  }) => JSX.Element;
14
13
  export default Toggle;
@@ -2,7 +2,7 @@ import { default as React, ReactNode, CSSProperties, ReactElement, MutableRefObj
2
2
  import { TippyProps } from '@tippyjs/react';
3
3
  import { UserGroupDTO } from '../Pages/GlobalConfigurations';
4
4
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
5
- import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ComponentLayoutType } from '../Shared';
5
+ import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ButtonProps, ComponentLayoutType } from '../Shared';
6
6
  import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
7
7
  /**
8
8
  * Generic response type object with support for overriding the result type
@@ -158,6 +158,7 @@ interface InfoColourBarTextConfigType {
158
158
  * If given would be shown below the heading (if given)
159
159
  */
160
160
  description: string;
161
+ actionButtonConfig?: ButtonProps;
161
162
  }
162
163
  type InfoColourBarMessageProp = {
163
164
  message: ReactNode;
@@ -917,23 +918,4 @@ export type GlobalVariableOptionType = Omit<GlobalVariableDTO, 'name'> & {
917
918
  value: string;
918
919
  variableType: Extract<RefVariableType, RefVariableType.GLOBAL>;
919
920
  };
920
- export interface UserRole extends ResponseType {
921
- result?: {
922
- roles: string[];
923
- superAdmin: boolean;
924
- /**
925
- * Defines if a user is access manager and can manage all access
926
- */
927
- canManageAllAccess?: boolean;
928
- };
929
- }
930
- export declare enum ActionTypes {
931
- MANAGER = "manager",
932
- ADMIN = "admin",
933
- TRIGGER = "trigger",
934
- VIEW = "view",
935
- UPDATE = "update",
936
- EDIT = "edit",
937
- APPROVER = "approver"
938
- }
939
921
  export {};
@@ -96,6 +96,10 @@ export interface SelectedChartDetailsType {
96
96
  selectedChartRefId: number;
97
97
  selectedChart: DeploymentChartVersionType;
98
98
  }
99
+ export declare enum PipelineMigratedFromType {
100
+ HELM_RELEASE = "helmRelease",
101
+ ARGO_APPLICATION = "argoApplication"
102
+ }
99
103
  interface EnvironmentConfigType {
100
104
  id: number;
101
105
  status: number;
@@ -28,7 +28,7 @@ export interface CustomTagType {
28
28
  }
29
29
  export declare enum ReleaseMode {
30
30
  NEW_DEPLOYMENT = "create",
31
- MIGRATE_HELM = "link"
31
+ MIGRATE_EXTERNAL_APPS = "link"
32
32
  }
33
33
  export interface CDFormType {
34
34
  name: string;
@@ -81,6 +81,6 @@ export declare const TERMINAL_STATUS_COLOR_CLASS_MAP: {
81
81
  readonly [x: string]: "cr-5" | "cg-5" | "co-5";
82
82
  };
83
83
  export declare const PROGRESSING_STATUS: {
84
- readonly [x: string]: "progressing" | "starting" | "initiating" | "queued" | "running";
84
+ readonly [x: string]: "running" | "progressing" | "starting" | "initiating" | "queued";
85
85
  };
86
86
  export declare const FAILED_WORKFLOW_STAGE_STATUS_MAP: Record<Extract<WorkflowStageStatusType, WorkflowStageStatusType.ABORTED | WorkflowStageStatusType.FAILED | WorkflowStageStatusType.TIMEOUT>, true>;
@@ -519,6 +519,14 @@ export interface StatusFilterButtonType {
519
519
  handleFilterClick?: (selectedFilter: string) => void;
520
520
  maxInlineFiltersCount?: number;
521
521
  }
522
+ export declare enum NodeStatusDTO {
523
+ Healthy = "Healthy",
524
+ Progressing = "Progressing",
525
+ Unknown = "Unknown",
526
+ Suspended = "Suspended",
527
+ Degraded = "Degraded",
528
+ Missing = "Missing"
529
+ }
522
530
  export declare enum NodeStatus {
523
531
  Degraded = "degraded",
524
532
  Healthy = "healthy",
@@ -1,3 +1,3 @@
1
1
  import { GenericSectionErrorStateProps } from './types';
2
- declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, useInfoIcon, }: GenericSectionErrorStateProps) => JSX.Element;
2
+ declare const GenericSectionErrorState: ({ reload, withBorder, title, subTitle, description, buttonText, rootClassName, useInfoIcon, progressingProps, }: GenericSectionErrorStateProps) => JSX.Element;
3
3
  export default GenericSectionErrorState;
@@ -1,4 +1,6 @@
1
- export interface GenericSectionErrorStateProps {
1
+ import { ReactNode } from 'react';
2
+ import { ProgressingProps } from '../../../Common/Types';
3
+ export type GenericSectionErrorStateProps = {
2
4
  /**
3
5
  * Handler for reloading the section
4
6
  */
@@ -16,11 +18,11 @@ export interface GenericSectionErrorStateProps {
16
18
  /**
17
19
  * @default 'We could not load the information on this page.'
18
20
  */
19
- subTitle?: string;
21
+ subTitle?: ReactNode;
20
22
  /**
21
23
  * @default 'Please reload or try again later'
22
24
  */
23
- description?: string;
25
+ description?: ReactNode;
24
26
  /**
25
27
  * @default 'Reload'
26
28
  */
@@ -29,10 +31,21 @@ export interface GenericSectionErrorStateProps {
29
31
  * to be applied on parent div
30
32
  */
31
33
  rootClassName?: string;
34
+ } & ({
35
+ /**
36
+ * If provided, would render the Progressing component with given props instead of error icon
37
+ */
38
+ progressingProps: ProgressingProps;
39
+ useInfoIcon?: never;
40
+ } | {
41
+ progressingProps?: never;
32
42
  /**
33
43
  * If true, info icon would be used instead of error
34
44
  *
35
45
  * @default false
36
46
  */
37
- useInfoIcon?: boolean;
38
- }
47
+ useInfoIcon: boolean;
48
+ } | {
49
+ progressingProps?: never;
50
+ useInfoIcon?: never;
51
+ });
@@ -15,7 +15,6 @@ export declare const iconMap: {
15
15
  'ic-close-small': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
16
16
  'ic-code': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
17
17
  'ic-container': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
18
- 'ic-crown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
19
18
  'ic-cube': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
20
19
  'ic-dockerhub': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
21
20
  'ic-ecr': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
@@ -54,7 +53,6 @@ export declare const iconMap: {
54
53
  'ic-suspended': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
55
54
  'ic-timeout-two-dash': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
56
55
  'ic-unknown': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
57
- 'ic-user-key': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
58
56
  'ic-warning': import('react').FunctionComponent<import('react').SVGProps<SVGSVGElement>>;
59
57
  };
60
58
  export type IconName = keyof typeof iconMap;
@@ -1,7 +1,7 @@
1
1
  import { ComponentSizeType } from '../../constants';
2
2
  import { BorderConfigType, ComponentLayoutType } from '../../types';
3
3
  import { ReactElement, ReactNode } from 'react';
4
- import { ButtonProps } from '../Button';
4
+ import { ButtonComponentType, ButtonProps } from '../Button';
5
5
  export type InfoBlockProps = {
6
6
  /**
7
7
  * @default 'row'
@@ -19,7 +19,7 @@ export type InfoBlockProps = {
19
19
  * If given would override the default icon derived from type
20
20
  */
21
21
  customIcon?: ReactElement;
22
- buttonProps?: ButtonProps;
22
+ buttonProps?: ButtonProps<ButtonComponentType>;
23
23
  borderConfig?: BorderConfigType;
24
24
  borderRadiusConfig?: BorderConfigType;
25
25
  } & ({
@@ -1,8 +1,8 @@
1
1
  import { ScanResultDTO, SeveritiesDTO, GetResourceScanDetailsResponseType, ImageScanVulnerabilityType, ImageVulnerabilityType, VulnerabilityCountType } from './types';
2
2
  import { SEVERITIES } from './constants';
3
3
  export declare const mapSeveritiesToSegmentedBarChartEntities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => {
4
- color: "var(--N300)" | "var(--R700)" | "var(--R500)" | "var(--O500)" | "var(--Y500)" | "var(--G500)";
5
- label: "Critical" | "High" | "Medium" | "Low" | "Unknown" | "Failures" | "Successes" | "Exceptions";
4
+ color: "var(--G500)" | "var(--N300)" | "var(--R700)" | "var(--R500)" | "var(--O500)" | "var(--Y500)";
5
+ label: "Unknown" | "Critical" | "High" | "Medium" | "Low" | "Failures" | "Successes" | "Exceptions";
6
6
  value: number;
7
7
  }[];
8
8
  export declare const stringifySeverities: (severities: Partial<Record<keyof typeof SEVERITIES, number>>) => string;
@@ -22,8 +22,22 @@ export interface MainContext {
22
22
  };
23
23
  isAirgapped: boolean;
24
24
  isSuperAdmin: boolean;
25
+ featureGitOpsFlags: {
26
+ /**
27
+ * Would define whether gitops (Global config tab) feature is enabled or not
28
+ */
29
+ isFeatureGitOpsEnabled: boolean;
30
+ /**
31
+ * Would define whether user can select allow custom repo in gitops global config
32
+ */
33
+ isFeatureUserDefinedGitOpsEnabled: boolean;
34
+ /**
35
+ * Feature flag for Migrate to devtron from argo cd
36
+ */
37
+ isFeatureArgoCdMigrationEnabled: boolean;
38
+ };
25
39
  isManifestScanningEnabled: boolean;
26
- isOrgLevelRBACViewEnforced: boolean;
40
+ canOnlyViewPermittedEnvOrgLevel: boolean;
27
41
  viewIsPipelineRBACConfiguredNode: ReactNode;
28
42
  }
29
43
  export interface MainContextProviderProps {
@@ -1,6 +1,7 @@
1
- import { GetPolicyApiUrlProps, GetResourceApiUrlProps, UserPreferencesType } from './types';
1
+ import { EnvironmentDataValuesDTO, GetPolicyApiUrlProps, GetResourceApiUrlProps, UserPreferencesType } from './types';
2
2
  export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
3
3
  export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
4
4
  export declare const saveCDPipeline: (request: any) => Promise<import('../../Common').ResponseType<any>>;
5
+ export declare const getEnvironmentData: () => Promise<import('../../Common').ResponseType<EnvironmentDataValuesDTO>>;
5
6
  export declare const getUserPreferences: () => Promise<UserPreferencesType>;
6
7
  export declare const updateUserPreferences: (updatedUserPreferences: UserPreferencesType, shouldThrowError?: boolean) => Promise<boolean>;
@@ -1,3 +1,4 @@
1
+ import { MainContext } from '../Providers';
1
2
  import { getUrlWithSearchParams } from '../../Common';
2
3
  import { PolicyKindType, ResourceKindType, ResourceVersionType, ViewIsPipelineRBACConfiguredRadioTabs } from '../types';
3
4
  import { USER_PREFERENCES_ATTRIBUTE_KEY } from './constants';
@@ -29,6 +30,11 @@ export interface GetResourceApiUrlProps<T> extends BaseGetApiUrlProps<T, Resourc
29
30
  }
30
31
  export interface GetPolicyApiUrlProps<T> extends Omit<BaseGetApiUrlProps<T, PolicyKindType, ResourceVersionType>, 'baseUrl'> {
31
32
  }
33
+ export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitOpsFlags'> {
34
+ isAirGapEnvironment: boolean;
35
+ isManifestScanningEnabled: boolean;
36
+ canOnlyViewPermittedEnvOrgLevel: boolean;
37
+ }
32
38
  export interface GetUserPreferencesQueryParamsType {
33
39
  key: typeof USER_PREFERENCES_ATTRIBUTE_KEY;
34
40
  }
@@ -1,6 +1,6 @@
1
1
  import { AppDetails, AppType, EnvDetails, Node, PodMetaData, iNode } from '../types';
2
2
  export declare function getiNodesByRootNodeWithChildNodes(_nodes: Array<Node>, rootNodes: Array<iNode>, podMetadata?: Array<PodMetaData>): Array<iNode>;
3
- export declare const reduceKindStatus: (aggregatedStatus: string, newStatus: string) => "healthy" | "progressing" | "degraded";
3
+ export declare const reduceKindStatus: (aggregatedStatus: string, newStatus: string) => "progressing" | "healthy" | "degraded";
4
4
  export declare function getiNodesByKindWithChildNodes(_nodes: Array<Node>, _kind: string): Array<iNode>;
5
5
  export declare function getPodsRootParentNameAndStatus(_nodes: Array<Node>): Array<[string, string]>;
6
6
  export declare const getPodsForRootNodeName: (_rootNode: string, _treeNodes: Array<Node>) => Array<iNode>;
@@ -2,7 +2,6 @@ import { Dayjs } from 'dayjs';
2
2
  import { APIOptions, ApprovalConfigDataType } from '../Common/Types';
3
3
  import { OptionType, CommonNodeAttr, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams, TriggerBlockType, ValueConstraintType, VariableType, RefVariableType, PluginType } from '../Common';
4
4
  import { BASE_CONFIGURATION_ENV_ID, EnvironmentTypeEnum, PatchOperationType } from './constants';
5
- import { SelectPickerOptionType } from './Components';
6
5
  export declare enum EnvType {
7
6
  CHART = "helm_charts",
8
7
  APPLICATION = "apps"
@@ -641,26 +640,11 @@ export type MetaPossibleRoles = Record<CustomRoles['roleName'], {
641
640
  }>;
642
641
  export interface CustomRoleAndMeta {
643
642
  customRoles: CustomRoles[];
644
- possibleRolesMetaForDevtron: MetaPossibleRoles;
645
- possibleJobRoles: SelectPickerOptionType<string>[];
643
+ possibleRolesMeta: MetaPossibleRoles;
644
+ possibleRolesMetaForHelm: MetaPossibleRoles;
646
645
  possibleRolesMetaForCluster: MetaPossibleRoles;
646
+ possibleRolesMetaForJob: MetaPossibleRoles;
647
647
  }
648
- export interface UserRoleConfig {
649
- baseRole: string;
650
- /**
651
- * Only for devtron apps
652
- */
653
- additionalRoles?: Set<string>;
654
- /**
655
- * Only for devtron apps
656
- */
657
- accessManagerRoles?: Set<string>;
658
- }
659
- export type RoleType = keyof UserRoleConfig;
660
- export type RoleSelectorOptionType = Pick<SelectPickerOptionType, 'label' | 'description'> & {
661
- value: string;
662
- roleType: RoleType;
663
- };
664
648
  interface CommonTabArgsType {
665
649
  /**
666
650
  * Name for the tab.
@@ -844,11 +828,6 @@ export declare enum ViewIsPipelineRBACConfiguredRadioTabs {
844
828
  ALL_ENVIRONMENTS = "All environments",
845
829
  ACCESS_ONLY = "Access only"
846
830
  }
847
- export interface EnvironmentDataValuesDTO {
848
- isAirGapEnvironment: boolean;
849
- isManifestScanningEnabled: boolean;
850
- canOnlyViewPermittedEnvOrgLevel: boolean;
851
- }
852
831
  export type ComponentLayoutType = 'row' | 'column';
853
832
  export interface BorderConfigType {
854
833
  /**
package/dist/index.d.ts CHANGED
@@ -53,6 +53,9 @@ export interface customEnv {
53
53
  ENABLE_EXTERNAL_ARGO_CD: boolean;
54
54
  API_BATCH_SIZE: number;
55
55
  SERVICE_WORKER_TIMEOUT?: string;
56
+ /**
57
+ * @default false
58
+ */
56
59
  FEATURE_USER_DEFINED_GITOPS_REPO_ENABLE: boolean;
57
60
  ORGANIZATION_NAME: string;
58
61
  FEATURE_EXTERNAL_FLUX_CD_ENABLE: boolean;