@devtron-labs/devtron-fe-common-lib 1.20.3-pre-4 → 1.20.3-pre-7

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.
@@ -1,7 +1,7 @@
1
1
  import { j as n, aJ as v, aL as W, aK as K } from "./@vendor-DwGKptu5.js";
2
2
  import V, { useState as q, useEffect as Y, forwardRef as G, useMemo as E } from "react";
3
3
  import z, { getDefaultRegistry as Q } from "@rjsf/core";
4
- import { T as O, j as F, c as S, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-CeahPz46.js";
4
+ import { T as O, j as F, c as S, b as N, S as X, i as Z, g as ee, a as te, d as R, e as ne } from "./@code-editor-C-tgb5Wa.js";
5
5
  import { getUiOptions as B, getTemplate as $, getSubmitButtonOptions as re, ADDITIONAL_PROPERTY_FLAG as L, errorId as se, englishStringTranslator as ae, TranslatableString as oe, titleId as le, canExpand as ie, deepEquals as ce } from "@rjsf/utils";
6
6
  import { ReactComponent as de } from "./assets/ic-add.cfaa779b.svg";
7
7
  import { ReactComponent as ue } from "./assets/ic-warning.ecf7ff97.svg";
@@ -1,6 +1,6 @@
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, APIOptions, EnvAppsMetaDTO, GetAppsInfoForEnvProps, EnvironmentsGroupedByClustersType, AppsGroupedByProjectsType } from './Types';
3
+ import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType, CDMaterialFilterQuery, EnvironmentListHelmResponse, UserApprovalMetadataType, GlobalVariableOptionType, UserRole, APIOptions, EnvAppsMetaDTO, GetAppsInfoForEnvProps, EnvironmentsGroupedByClustersType, AppsGroupedByProjectsType, ClusterDetailListType } from './Types';
4
4
  import { ApiResourceType } from '../Pages';
5
5
  export declare const getTeamListMin: () => Promise<TeamList>;
6
6
  export declare const SourceTypeMap: {
@@ -38,3 +38,4 @@ export declare const getGlobalVariables: ({ appId, isCD, abortControllerRef, }:
38
38
  export declare const getAppsInfoForEnv: ({ envId, appIds }: GetAppsInfoForEnvProps) => Promise<EnvAppsMetaDTO>;
39
39
  export declare const getAppOptionsGroupedByProjects: () => Promise<AppsGroupedByProjectsType>;
40
40
  export declare const getEnvironmentOptionsGroupedByClusters: () => Promise<EnvironmentsGroupedByClustersType>;
41
+ export declare const getDetailedClusterList: (clusterIds?: number[], signal?: AbortSignal) => Promise<ClusterDetailListType[]>;
@@ -4,7 +4,8 @@ import { UserGroupDTO } from '../Pages/GlobalConfigurations';
4
4
  import { ImageComment, ReleaseTag } from './ImageTags.Types';
5
5
  import { MandatoryPluginBaseStateType, RegistryType, RuntimePluginVariables, Severity, PolicyBlockInfo, TargetPlatformItemDTO, ComponentLayoutType, StatusType, DocLinkProps, DeploymentStrategyType, EnvironmentType } from '../Shared';
6
6
  import { ACTION_STATE, DEPLOYMENT_WINDOW_TYPE, DockerConfigOverrideType, RefVariableType, SortingOrder, TaskErrorObj, VariableTypeFormat } from '.';
7
- import { IllustrationName } from '../Shared/Components';
7
+ import { IllustrationName, SelectPickerOptionType } from '../Shared/Components';
8
+ import { ClusterStatusType } from '../Pages/ResourceBrowser';
8
9
  /**
9
10
  * Generic response type object with support for overriding the result type
10
11
  *
@@ -943,4 +944,28 @@ export type EnvironmentsGroupedByClustersType = {
943
944
  clusterName: EnvironmentType['cluster'];
944
945
  envList: EnvironmentType[];
945
946
  }[];
947
+ export interface ClusterDetailDTO {
948
+ category: ClusterEnvironmentCategoryType;
949
+ cluster_name: string;
950
+ description: string;
951
+ id: number;
952
+ insecureSkipTlsVerify: boolean;
953
+ installationId: number;
954
+ isProd: boolean;
955
+ isVirtualCluster: boolean;
956
+ server_url: string;
957
+ sshTunnelConfig: any;
958
+ prometheus_url: string;
959
+ proxyUrl: string;
960
+ toConnectWithSSHTunnel: boolean;
961
+ clusterStatus: ClusterStatusType;
962
+ }
963
+ export interface ClusterDetailListType extends Omit<ClusterDetailDTO, 'server_url' | 'cluster_name' | 'prometheus_url' | 'id' | 'category' | 'clusterStatus'> {
964
+ serverUrl: ClusterDetailDTO['server_url'];
965
+ clusterName: ClusterDetailDTO['cluster_name'];
966
+ prometheusUrl: ClusterDetailDTO['prometheus_url'];
967
+ clusterId: ClusterDetailDTO['id'];
968
+ category: SelectPickerOptionType;
969
+ status: ClusterStatusType;
970
+ }
946
971
  export {};
@@ -64,7 +64,7 @@ export declare const useActionMenu: <T extends string | number>({ id, position,
64
64
  itemRef?: string;
65
65
  results?: number;
66
66
  unselectable?: "on" | "off";
67
- inputMode?: "search" | "text" | "none" | "url" | "tel" | "email" | "numeric" | "decimal";
67
+ inputMode?: "search" | "text" | "none" | "url" | "decimal" | "tel" | "email" | "numeric";
68
68
  "aria-activedescendant"?: string;
69
69
  "aria-atomic"?: boolean | "true" | "false";
70
70
  "aria-autocomplete"?: "none" | "list" | "inline" | "both";
@@ -0,0 +1,3 @@
1
+ import { ClusterStatusIconProps } from './types';
2
+ declare const ClusterStatusIcon: ({ clusterStatus, isVirtualCluster }: ClusterStatusIconProps) => JSX.Element;
3
+ export default ClusterStatusIcon;
@@ -0,0 +1 @@
1
+ export { default as ClusterStatusIcon } from './ClusterStatusIcon';
@@ -0,0 +1,5 @@
1
+ import { ClusterStatusType } from '../../../Pages/ResourceBrowser';
2
+ export interface ClusterStatusIconProps {
3
+ clusterStatus: ClusterStatusType;
4
+ isVirtualCluster: boolean;
5
+ }
@@ -0,0 +1,2 @@
1
+ import { ClusterStatusType } from '../../../Pages/ResourceBrowser';
2
+ export declare const getBulletColorAccToStatus: (status: ClusterStatusType) => "bcg-5" | "bcr-5" | "bcy-5";
@@ -16,6 +16,7 @@ export * from './ButtonWithSelector';
16
16
  export * from './Charts';
17
17
  export * from './Chip';
18
18
  export * from './CICDHistory';
19
+ export * from './ClusterStatusIcon';
19
20
  export * from './CMCS';
20
21
  export * from './CodeEditor';
21
22
  export * from './Collapse';
@@ -104,4 +104,5 @@ export declare const getAppDetailsURL: (appId: number | string, envId?: number |
104
104
  export declare const smoothScrollToTop: (scrollContainer: HTMLElement, targetPosition: number) => import('framer-motion').AnimationPlaybackControls;
105
105
  export declare const getGroupVersionFromApiVersion: (apiVersion: string) => Pick<Node, "group" | "version">;
106
106
  export declare const YAMLtoJSON: (yamlString: string) => string;
107
+ export declare const formatNumberToCurrency: (value: number, currency: string) => string;
107
108
  export {};