@devtron-labs/devtron-fe-common-lib 1.6.9 → 1.6.10-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.
@@ -1,7 +1,7 @@
1
1
  import { j as t, O as E } from "./@vendor-CWh7bjwl.js";
2
2
  import P, { forwardRef as $ } from "react";
3
3
  import L, { getDefaultRegistry as D } from "@rjsf/core";
4
- import { T as v, c as H, a as U, i as k, b as T, d as S, S as M } from "./@code-editor-BH51hfxq.js";
4
+ import { T as v, c as H, a as U, i as k, b as T, d as S, S as M } from "./@code-editor-D5aMgl0Y.js";
5
5
  import J, { components as C } from "react-select";
6
6
  import { ReactComponent as V } from "./assets/ic-chevron-down.fc70d7a7.svg";
7
7
  import { getUiOptions as A, getTemplate as I, getSubmitButtonOptions as W, ADDITIONAL_PROPERTY_FLAG as B, errorId as q, englishStringTranslator as K, TranslatableString as Y, titleId as z, canExpand as G, deepEquals as Q } from "@rjsf/utils";
@@ -55,6 +55,7 @@ export declare const URLS: {
55
55
  DEPLOYMENT_HISTORY_CONFIGURATIONS: string;
56
56
  GLOBAL_CONFIG_SCOPED_VARIABLES: string;
57
57
  GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: string;
58
+ GLOBAL_CONFIG_DEPLOYMENT_CHARTS_UPLOAD_CHART: string;
58
59
  NETWORK_STATUS_INTERFACE: string;
59
60
  RESOURCE_BROWSER: string;
60
61
  COMPARE_CLUSTERS: string;
@@ -1,18 +1,16 @@
1
- export type DeploymentChartListDTO = Array<{
1
+ interface DeploymentChartInfo {
2
2
  id: number;
3
3
  chartDescription?: string;
4
4
  isUserUploaded: boolean;
5
5
  name: string;
6
6
  version: string;
7
- }>;
8
- interface DeploymentChartVersionsType {
9
- id: number;
10
- version: string;
7
+ uploadedBy: string;
8
+ }
9
+ export type DeploymentChartListDTO = DeploymentChartInfo[];
10
+ export interface DeploymentChartVersionsType extends Pick<DeploymentChartInfo, 'id' | 'version' | 'uploadedBy' | 'isUserUploaded'> {
11
11
  description: string;
12
12
  }
13
- export interface DeploymentChartType {
14
- name: string;
15
- isUserUploaded: boolean;
13
+ export interface DeploymentChartType extends Pick<DeploymentChartInfo, 'name'> {
16
14
  versions: DeploymentChartVersionsType[];
17
15
  }
18
16
  export declare enum DEVTRON_DEPLOYMENT_CHART_NAMES {
@@ -0,0 +1,3 @@
1
+ import { AdditionalConfirmationModalOptionsProps } from './types';
2
+ declare const ForceDeleteOption: ({ optionsData, setOptionsData: setShouldForceDelete, children, }: AdditionalConfirmationModalOptionsProps<boolean>) => JSX.Element;
3
+ export default ForceDeleteOption;
@@ -41,6 +41,10 @@ export declare const CORDON_NODE_MODAL_MESSAGING: {
41
41
  uncordoning: string;
42
42
  cancel: string;
43
43
  };
44
+ export declare const DELETE_NODE_MODAL_MESSAGING: {
45
+ subtitle: JSX.Element;
46
+ successInfoToastMessage: string;
47
+ };
44
48
  export declare const NODE_DRAIN_OPTIONS_CHECKBOX_CONFIG: {
45
49
  key: Exclude<keyof NodeDrainRequest['nodeDrainOptions'], 'gracePeriodSeconds'>;
46
50
  infoText: string;
@@ -4,3 +4,4 @@ export * from './constants';
4
4
  export * from './types';
5
5
  export * from './service';
6
6
  export { default as NodeDrainOptions } from './NodeDrainOptions';
7
+ export { default as ForceDeleteOption } from './ForceDeleteOption';
@@ -2,7 +2,7 @@ import { ReactNode } from 'react';
2
2
  export interface DeploymentEnvStateProps {
3
3
  envStateText: string;
4
4
  title: string;
5
- tooltipContent?: string;
5
+ tooltipContent?: ReactNode;
6
6
  }
7
7
  export interface GetDeploymentEnvConfigType {
8
8
  Icon: ReactNode;
@@ -813,4 +813,8 @@ export declare const TriggerType: {
813
813
  readonly Auto: "AUTOMATIC";
814
814
  readonly Manual: "MANUAL";
815
815
  };
816
+ export interface AppEnvIdType {
817
+ appId: number;
818
+ envId: number;
819
+ }
816
820
  export {};
@@ -56,3 +56,4 @@ export declare const validateCMVolumeMountPath: (value: string) => {
56
56
  isValid: boolean;
57
57
  message: string;
58
58
  };
59
+ export declare const validateYAML: (yamlString: string, isRequired?: boolean) => ValidationResponseType;