@devtron-labs/devtron-fe-common-lib 1.20.1-pre-1 → 1.20.1-pre-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-CywBBv09.js → @code-editor-Pqkx5T0w.js} +456 -455
- package/dist/{@common-rjsf-BAI7aimV.js → @common-rjsf-CXAL5puF.js} +1 -1
- package/dist/Shared/Hooks/useGetResourceKindsOptions/service.d.ts +0 -2
- package/dist/Shared/Hooks/useGetResourceKindsOptions/types.d.ts +2 -7
- package/dist/Shared/Hooks/useUserPreferences/types.d.ts +1 -1
- package/dist/Shared/Services/common.service.d.ts +2 -0
- package/dist/Shared/Services/types.d.ts +6 -0
- package/dist/index.js +291 -290
- package/package.json +1 -1
@@ -1,7 +1,7 @@
|
|
1
1
|
import { j as n, aI as v, aK as W, aJ as K } from "./@vendor-DMIFbFhR.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 I, 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 I, e as ne } from "./@code-editor-Pqkx5T0w.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,7 +1,5 @@
|
|
1
1
|
import { Teams } from '../../../Common/Types';
|
2
|
-
import { ClusterType } from '../../Services';
|
3
2
|
import { AppsGroupedByProjectsType, EnvironmentsGroupedByClustersType } from './types';
|
4
3
|
export declare const getAppOptionsGroupedByProjects: () => Promise<AppsGroupedByProjectsType>;
|
5
4
|
export declare const getProjectOptions: () => Promise<Pick<Teams, "id" | "name">[]>;
|
6
|
-
export declare const getClusterOptions: () => Promise<ClusterType[]>;
|
7
5
|
export declare const getEnvironmentOptionsGroupedByClusters: () => Promise<EnvironmentsGroupedByClustersType>;
|
@@ -1,6 +1,7 @@
|
|
1
1
|
import { ServerErrors } from '../../../Common/ServerError';
|
2
|
+
import { getClusterOptions } from '../../index';
|
2
3
|
import { EnvironmentType, ResourceKindType } from '../../types';
|
3
|
-
import { getAppOptionsGroupedByProjects,
|
4
|
+
import { getAppOptionsGroupedByProjects, getProjectOptions } from './service';
|
4
5
|
export interface AppType {
|
5
6
|
name: string;
|
6
7
|
}
|
@@ -13,12 +14,6 @@ export type EnvironmentsGroupedByClustersType = {
|
|
13
14
|
clusterName: EnvironmentType['cluster'];
|
14
15
|
envList: EnvironmentType[];
|
15
16
|
}[];
|
16
|
-
export interface ClusterDTO {
|
17
|
-
id: number;
|
18
|
-
cluster_name: string;
|
19
|
-
isVirtualCluster: boolean;
|
20
|
-
isProd: boolean;
|
21
|
-
}
|
22
17
|
export interface UseGetResourceKindsOptionsProps {
|
23
18
|
resourcesToFetch: Extract<ResourceKindType, ResourceKindType.devtronApplication | ResourceKindType.project | ResourceKindType.cluster | ResourceKindType.environment>[];
|
24
19
|
}
|
@@ -25,7 +25,7 @@ export interface UserResourceKindActionType {
|
|
25
25
|
[UserPreferenceResourceActions.RECENTLY_VISITED]: BaseRecentlyVisitedEntitiesTypes[];
|
26
26
|
}
|
27
27
|
export type UserPreferenceResourceType = Partial<Record<PreferredResourceKindType, UserResourceKindActionType>>;
|
28
|
-
export type CommandBarAdditionalItemsId = 'app-management-devtron-app-list' | 'app-management-helm-app-list' | 'app-management-flux-app-list' | 'app-management-argo-app-list' | `app-management-devtron-app-list-${number}
|
28
|
+
export type CommandBarAdditionalItemsId = 'app-management-devtron-app-list' | 'app-management-helm-app-list' | 'app-management-flux-app-list' | 'app-management-argo-app-list' | `app-management-devtron-app-list-${number}` | 'search-app-list-view' | `chart-list-${number}` | 'search-chart-list-view' | `helm-app-list-${number}` | 'search-helm-app-list-view' | `cluster-list-${number}` | 'search-cluster-list-view';
|
29
29
|
export interface GetUserPreferencesParsedDTO {
|
30
30
|
viewPermittedEnvOnly?: boolean;
|
31
31
|
/**
|
@@ -1,6 +1,8 @@
|
|
1
1
|
import { AppConfigProps } from '../../Pages/index';
|
2
|
+
import { ClusterType } from '..';
|
2
3
|
import { EnvironmentDataValuesDTO, GetPolicyApiUrlProps, GetResourceApiUrlProps } from './types';
|
3
4
|
export declare const getResourceApiUrl: <T>({ baseUrl, kind, version, suffix, queryParams }: GetResourceApiUrlProps<T>) => string;
|
4
5
|
export declare const getPolicyApiUrl: <T>({ kind, version, queryParams, suffix }: GetPolicyApiUrlProps<T>) => string;
|
5
6
|
export declare const saveCDPipeline: (request: any, { isTemplateView }: Required<Pick<AppConfigProps, "isTemplateView">>) => Promise<import('../../Common').ResponseType<any>>;
|
6
7
|
export declare const getEnvironmentData: () => Promise<import('../../Common').ResponseType<EnvironmentDataValuesDTO>>;
|
8
|
+
export declare const getClusterOptions: () => Promise<ClusterType[]>;
|
@@ -40,4 +40,10 @@ export interface EnvironmentDataValuesDTO extends Pick<MainContext, 'featureGitO
|
|
40
40
|
devtronManagedLicensingEnabled: boolean;
|
41
41
|
isResourceRecommendationEnabled?: boolean;
|
42
42
|
}
|
43
|
+
export interface ClusterMinDTO {
|
44
|
+
id: number;
|
45
|
+
cluster_name: string;
|
46
|
+
isVirtualCluster: boolean;
|
47
|
+
isProd: boolean;
|
48
|
+
}
|
43
49
|
export {};
|