@devtron-labs/devtron-fe-common-lib 1.20.3-beta-1 → 1.20.3-beta-2
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-23p2xPUN.js → @code-editor-3E-jL5Cb.js} +1717 -1695
- package/dist/{@common-rjsf-BKsX7g_Y.js → @common-rjsf-Dh1TkdFs.js} +1 -1
- package/dist/Common/Types.d.ts +12 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/constants.d.ts +4 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/index.d.ts +1 -0
- package/dist/Pages-Devtron-2.0/CostVisibility/Shared/types.d.ts +20 -0
- package/dist/Shared/Components/PrometheusConfigurations/PrometheusConfigCard.d.ts +1 -1
- package/dist/Shared/Components/PrometheusConfigurations/types.d.ts +0 -1
- package/dist/index.js +875 -873
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as n, aK as v, aM as J, aL as K } from "./@vendor-DceGoESd.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-
|
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-3E-jL5Cb.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";
|
package/dist/Common/Types.d.ts
CHANGED
@@ -944,6 +944,17 @@ export type EnvironmentsGroupedByClustersType = {
|
|
944
944
|
clusterName: EnvironmentType['cluster'];
|
945
945
|
envList: EnvironmentType[];
|
946
946
|
}[];
|
947
|
+
export type ClusterCostModuleConfigPayload = {
|
948
|
+
enabled: true;
|
949
|
+
config?: Record<string, any>;
|
950
|
+
} | {
|
951
|
+
enabled: false;
|
952
|
+
config?: never;
|
953
|
+
};
|
954
|
+
interface ClusterCostModuleDetailsDTO extends Pick<ClusterCostModuleConfigPayload, 'enabled' | 'config'> {
|
955
|
+
installationStatus: 'Success' | 'Installing' | 'Upgrading' | 'NotInstalled' | 'Failed';
|
956
|
+
installationError?: string;
|
957
|
+
}
|
947
958
|
export interface ClusterDetailDTO {
|
948
959
|
category: ClusterEnvironmentCategoryType;
|
949
960
|
cluster_name: string;
|
@@ -959,6 +970,7 @@ export interface ClusterDetailDTO {
|
|
959
970
|
proxyUrl: string;
|
960
971
|
toConnectWithSSHTunnel: boolean;
|
961
972
|
clusterStatus: ClusterStatusType;
|
973
|
+
costModuleConfig: ClusterCostModuleDetailsDTO;
|
962
974
|
}
|
963
975
|
export interface ClusterDetailListType extends Omit<ClusterDetailDTO, 'server_url' | 'cluster_name' | 'prometheus_url' | 'id' | 'category' | 'clusterStatus'> {
|
964
976
|
serverUrl: ClusterDetailDTO['server_url'];
|
@@ -0,0 +1,4 @@
|
|
1
|
+
import { IconName } from '../../../Shared/Components';
|
2
|
+
import { ClusterProviderType } from './types';
|
3
|
+
export declare const CLUSTER_PROVIDER_TO_ICON_NAME: Record<ClusterProviderType, IconName | null>;
|
4
|
+
export declare const CLUSTER_PROVIDER_TO_LABEL: Record<ClusterProviderType, string>;
|
@@ -1,3 +1,6 @@
|
|
1
|
+
import { ReactNode } from 'react';
|
2
|
+
import { RJSFFormSchema } from '../../../Common/RJSF';
|
3
|
+
import { ClusterDetailListType } from '../../../Common/Types';
|
1
4
|
export declare enum CostBreakdownViewType {
|
2
5
|
CLUSTERS = "clusters",
|
3
6
|
ENVIRONMENTS = "environments",
|
@@ -9,3 +12,20 @@ export declare enum CostBreakdownItemViewParamsType {
|
|
9
12
|
VIEW = "view",
|
10
13
|
DETAIL = "detail"
|
11
14
|
}
|
15
|
+
type RenderClusterFormParamsType = {
|
16
|
+
clusterDetails: ClusterDetailListType;
|
17
|
+
handleClose: () => void;
|
18
|
+
handleSuccess: () => void;
|
19
|
+
};
|
20
|
+
export interface CostVisibilityRenderContextType {
|
21
|
+
renderClusterForm: (params: RenderClusterFormParamsType) => JSX.Element;
|
22
|
+
}
|
23
|
+
export interface CostVisibilityRenderProviderProps extends CostVisibilityRenderContextType {
|
24
|
+
children: ReactNode;
|
25
|
+
}
|
26
|
+
export type ClusterProviderType = 'AWS' | 'GCP' | 'Azure' | 'Alibaba' | 'Scaleway' | 'Oracle' | 'OTC' | 'DigitalOcean' | 'Unknown';
|
27
|
+
export interface ClusterProviderDetailsType {
|
28
|
+
clusterProvider: ClusterProviderType;
|
29
|
+
costModuleSchema: RJSFFormSchema;
|
30
|
+
}
|
31
|
+
export {};
|
@@ -1,3 +1,3 @@
|
|
1
1
|
import { PromoetheusConfigProps } from './types';
|
2
|
-
declare const PromoetheusConfigCard: ({ prometheusConfig,
|
2
|
+
declare const PromoetheusConfigCard: ({ prometheusConfig, handleOnChange, onPrometheusAuthTypeChange, }: PromoetheusConfigProps) => JSX.Element;
|
3
3
|
export default PromoetheusConfigCard;
|