@devtron-labs/devtron-fe-common-lib 1.3.1 → 1.3.2-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.
- package/dist/{@code-editor-CWAcl7z_.js → @code-editor-CUAwqT3V.js} +1506 -1496
- package/dist/{@common-rjsf-E1JyUW15.js → @common-rjsf-BIT011zH.js} +1 -1
- package/dist/Common/Helper.d.ts +1 -0
- package/dist/Common/SegmentedBarChart/types.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/Authorization/index.d.ts +1 -0
- package/dist/Pages/GlobalConfigurations/Authorization/types.d.ts +6 -0
- package/dist/Pages/ResourceBrowser/types.d.ts +39 -0
- package/dist/index.js +335 -333
- package/package.json +1 -1
@@ -2,7 +2,7 @@ import { j as n, J as A } from "./@vendor-BG3OpQCq.js";
|
|
2
2
|
import E, { forwardRef as $ } from "react";
|
3
3
|
import L, { getDefaultRegistry as k } from "@rjsf/core";
|
4
4
|
import D from "@rjsf/validator-ajv8";
|
5
|
-
import { T as y, c as H, a as J, d as w } from "./@code-editor-
|
5
|
+
import { T as y, c as H, a as J, d as w } from "./@code-editor-CUAwqT3V.js";
|
6
6
|
import M, { components as O } from "react-select";
|
7
7
|
import { getUiOptions as B, getTemplate as I, getSubmitButtonOptions as U, ADDITIONAL_PROPERTY_FLAG as P, errorId as W, englishStringTranslator as V, TranslatableString as q, titleId as K, canExpand as Y, deepEquals as z } from "@rjsf/utils";
|
8
8
|
import { ReactComponent as G } from "./assets/ic-chevron-down.fc70d7a7.svg";
|
package/dist/Common/Helper.d.ts
CHANGED
@@ -24,6 +24,7 @@ export declare const reportIssue: () => void;
|
|
24
24
|
export declare function useEffectAfterMount(cb: any, dependencies: any): void;
|
25
25
|
export declare function getCookie(sKey: any): string;
|
26
26
|
export declare function handleUTCTime(ts: string, isRelativeTime?: boolean): string;
|
27
|
+
export declare const getFormattedUTCTimeForExport: (timeToConvert: string, fallback?: string) => string;
|
27
28
|
export declare function useSearchString(): UseSearchString;
|
28
29
|
export declare const closeOnEscKeyPressed: (e: any, actionClose: () => void) => void;
|
29
30
|
export declare function useJsonYaml(value: any, tabSize?: number, language?: string, shouldRun?: boolean): any[];
|
@@ -1,5 +1,6 @@
|
|
1
1
|
export * from './constants';
|
2
2
|
export type { UserListFilterParams, UserRoleGroup, UserGroupDTO, UserGroupType } from './types';
|
3
|
+
export { UserTypeToFetchType } from './types';
|
3
4
|
export * from './shared';
|
4
5
|
export * from './service';
|
5
6
|
export { getUserAndApiTokenOption } from './utils';
|
@@ -1,10 +1,16 @@
|
|
1
1
|
import { BaseFilterQueryParams } from '../../../Shared';
|
2
2
|
import { UserListSortableKeys, UserStatus } from './constants';
|
3
|
+
export declare enum UserTypeToFetchType {
|
4
|
+
includeDeleted = "includeDeleted",
|
5
|
+
excludeDelete = "excludeDelete",
|
6
|
+
onlyDeleted = "onlyDeleted"
|
7
|
+
}
|
3
8
|
export type UserListFilterParams = BaseFilterQueryParams<UserListSortableKeys> & {
|
4
9
|
/**
|
5
10
|
* Selected statuses (if any)
|
6
11
|
*/
|
7
12
|
status: UserStatus[];
|
13
|
+
typeToFetch?: UserTypeToFetchType;
|
8
14
|
};
|
9
15
|
export interface UserMinType {
|
10
16
|
id: number;
|
@@ -8,3 +8,42 @@ export declare enum ClusterStatusType {
|
|
8
8
|
UNHEALTHY = "unhealthy",
|
9
9
|
CONNECTION_FAILED = "connection failed"
|
10
10
|
}
|
11
|
+
export interface ResourceDetail {
|
12
|
+
name: string;
|
13
|
+
capacity: string;
|
14
|
+
allocatable: string;
|
15
|
+
usage: string;
|
16
|
+
request: string;
|
17
|
+
limit: string;
|
18
|
+
usagePercentage: string;
|
19
|
+
requestPercentage: string;
|
20
|
+
limitPercentage: string;
|
21
|
+
}
|
22
|
+
export interface NodeTaintType {
|
23
|
+
effect: string;
|
24
|
+
key: string;
|
25
|
+
value: string;
|
26
|
+
}
|
27
|
+
export interface NodeDetailsType {
|
28
|
+
nodeName: string;
|
29
|
+
nodeGroup: string;
|
30
|
+
taints?: NodeTaintType[];
|
31
|
+
}
|
32
|
+
export interface ClusterCapacityType {
|
33
|
+
name: string;
|
34
|
+
nodeCount: number;
|
35
|
+
nodeK8sVersions: string[];
|
36
|
+
cpu: ResourceDetail;
|
37
|
+
memory: ResourceDetail;
|
38
|
+
serverVersion: string;
|
39
|
+
nodeDetails?: NodeDetailsType[];
|
40
|
+
nodeErrors: Record<string, string>[];
|
41
|
+
status?: ClusterStatusType;
|
42
|
+
isProd: boolean;
|
43
|
+
}
|
44
|
+
export interface ClusterDetail extends ClusterCapacityType {
|
45
|
+
id: number;
|
46
|
+
errorInNodeListing: string;
|
47
|
+
nodeNames?: string[];
|
48
|
+
isVirtualCluster?: boolean;
|
49
|
+
}
|