@devtron-labs/devtron-fe-common-lib 0.0.79-beta-7 → 0.0.79-beta-9
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/Common/Common.service.d.ts +4 -0
- package/dist/Common/Constants.d.ts +5 -1
- package/dist/Common/ResourceBrowser/Constants.d.ts +11 -0
- package/dist/Common/ResourceBrowser/Helper.d.ts +13 -0
- package/dist/Common/ResourceBrowser/ResourceBrowser.Types.d.ts +23 -0
- package/dist/Shared/Components/Header/PageHeader.d.ts +1 -1
- package/dist/Shared/Components/Header/types.d.ts +9 -7
- package/dist/Shared/types.d.ts +12 -0
- package/dist/index.js +3642 -3631
- package/package.json +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { ApiResourceType } from './ResourceBrowser/ResourceBrowser.Types';
|
|
1
2
|
import { TeamList, ResponseType, DeploymentNodeType, CDMaterialServiceEnum, CDMaterialServiceQueryParams, CDMaterialResponseType } from './Types';
|
|
2
3
|
|
|
3
4
|
export declare const getTeamListMin: () => Promise<TeamList>;
|
|
@@ -19,4 +20,7 @@ export declare function extractImage(image: string): string;
|
|
|
19
20
|
export declare function createGitCommitUrl(url: string, revision: string): string;
|
|
20
21
|
export declare function fetchChartTemplateVersions(): Promise<ResponseType<any>>;
|
|
21
22
|
export declare const getDefaultConfig: () => Promise<ResponseType>;
|
|
23
|
+
export declare function getEnvironmentListMinPublic(includeAllowedDeploymentTypes?: boolean): Promise<ResponseType<any>>;
|
|
24
|
+
export declare function getClusterListMin(): Promise<ResponseType<any>>;
|
|
25
|
+
export declare const getResourceGroupListRaw: (clusterId: string) => Promise<ResponseType<ApiResourceType>>;
|
|
22
26
|
export {};
|
|
@@ -41,6 +41,10 @@ export declare const ROUTES: {
|
|
|
41
41
|
SERVER_INFO_API: string;
|
|
42
42
|
ATTRIBUTES_USER: string;
|
|
43
43
|
UPDATE: string;
|
|
44
|
+
ENVIRONMENT_LIST_MIN: string;
|
|
45
|
+
CLUSTER: string;
|
|
46
|
+
API_RESOURCE: string;
|
|
47
|
+
GVK: string;
|
|
44
48
|
};
|
|
45
49
|
export declare enum KEY_VALUE {
|
|
46
50
|
KEY = "key",
|
|
@@ -220,5 +224,5 @@ export declare const POSTHOG_EVENT_ONBOARDING: {
|
|
|
220
224
|
SKIP_AND_EXPLORE_DEVTRON: string;
|
|
221
225
|
};
|
|
222
226
|
export declare const MAX_LOGIN_COUNT = 5;
|
|
223
|
-
export declare const BULK_EDIT_HEADER = "Bulk Edit";
|
|
224
227
|
export declare const LOGIN_COUNT = "login-count";
|
|
228
|
+
export declare const DEFAULT_ENV = "devtron-ci";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { ApiResourceGroupType, K8SObjectType } from './ResourceBrowser.Types';
|
|
2
|
+
import { AggregationKeys, NodeType } from '../../Shared';
|
|
3
|
+
|
|
4
|
+
export declare function createClusterEnvGroup<T extends Record<string, string>>(list: T[], propKey: string, optionLabel?: string, optionValue?: string): {
|
|
5
|
+
label: string;
|
|
6
|
+
options: T[];
|
|
7
|
+
isVirtualEnvironment?: boolean;
|
|
8
|
+
}[];
|
|
9
|
+
export declare function getAggregator(nodeType: NodeType, defaultAsOtherResources?: boolean): AggregationKeys;
|
|
10
|
+
export declare const processK8SObjects: (k8sObjects: ApiResourceGroupType[], selectedResourceKind?: string, disableGroupFilter?: boolean) => {
|
|
11
|
+
k8SObjectMap: Map<string, K8SObjectType>;
|
|
12
|
+
selectedResource: ApiResourceGroupType;
|
|
13
|
+
};
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
import { NodeType, Nodes } from '../../Shared';
|
|
2
|
+
|
|
3
|
+
export interface GVKType {
|
|
4
|
+
Group: string;
|
|
5
|
+
Version: string;
|
|
6
|
+
Kind: Nodes | NodeType;
|
|
7
|
+
}
|
|
8
|
+
export interface ApiResourceGroupType {
|
|
9
|
+
gvk: GVKType;
|
|
10
|
+
namespaced: boolean;
|
|
11
|
+
isGrouped?: boolean;
|
|
12
|
+
}
|
|
13
|
+
export interface ApiResourceType {
|
|
14
|
+
apiResources: ApiResourceGroupType[];
|
|
15
|
+
allowedAll: boolean;
|
|
16
|
+
}
|
|
17
|
+
export interface K8SObjectBaseType {
|
|
18
|
+
name: string;
|
|
19
|
+
isExpanded: boolean;
|
|
20
|
+
}
|
|
21
|
+
export interface K8SObjectType extends K8SObjectBaseType {
|
|
22
|
+
child: ApiResourceGroupType[];
|
|
23
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
1
|
import { PageHeaderType } from './types';
|
|
2
2
|
|
|
3
|
-
declare const PageHeader: ({ headerName, additionalHeaderInfo,
|
|
3
|
+
declare const PageHeader: ({ headerName, additionalHeaderInfo, showTabs, renderHeaderTabs, isBreadcrumbs, breadCrumbs, renderActionButtons, showCloseButton, onClose, markAsBeta, showAnnouncementHeader, tippyProps, }: PageHeaderType) => JSX.Element;
|
|
4
4
|
export default PageHeader;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResponseType } from '../../../Common';
|
|
1
|
+
import { ResponseType, TippyCustomizedProps } from '../../../Common';
|
|
2
2
|
|
|
3
3
|
export declare enum InstallationType {
|
|
4
4
|
OSS_KUBECTL = "oss_kubectl",
|
|
@@ -19,21 +19,23 @@ export declare enum ModuleStatus {
|
|
|
19
19
|
}
|
|
20
20
|
export interface PageHeaderType {
|
|
21
21
|
headerName?: string;
|
|
22
|
-
additionalHeaderInfo?: () => JSX.Element;
|
|
23
|
-
isTippyShown?: boolean;
|
|
24
|
-
tippyRedirectLink?: string;
|
|
25
22
|
showTabs?: boolean;
|
|
23
|
+
additionalHeaderInfo?: () => JSX.Element;
|
|
26
24
|
renderHeaderTabs?: () => JSX.Element;
|
|
27
25
|
isBreadcrumbs?: boolean;
|
|
28
26
|
breadCrumbs?: () => JSX.Element;
|
|
29
|
-
TippyIcon?: React.FunctionComponent<any>;
|
|
30
|
-
tippyMessage?: string;
|
|
31
|
-
onClickTippybutton?: () => void;
|
|
32
27
|
renderActionButtons?: () => JSX.Element;
|
|
33
28
|
showCloseButton?: boolean;
|
|
34
29
|
onClose?: () => void;
|
|
35
30
|
markAsBeta?: boolean;
|
|
36
31
|
showAnnouncementHeader?: boolean;
|
|
32
|
+
tippyProps?: Pick<TippyCustomizedProps, 'additionalContent'> & {
|
|
33
|
+
isTippyCustomized?: boolean;
|
|
34
|
+
tippyRedirectLink?: string;
|
|
35
|
+
TippyIcon?: React.FunctionComponent<any>;
|
|
36
|
+
tippyMessage?: string;
|
|
37
|
+
onClickTippyButton?: () => void;
|
|
38
|
+
};
|
|
37
39
|
}
|
|
38
40
|
export interface ServerInfo {
|
|
39
41
|
currentVersion: string;
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -166,3 +166,15 @@ export declare enum Nodes {
|
|
|
166
166
|
Overview = "Overview"
|
|
167
167
|
}
|
|
168
168
|
export type NodeType = keyof typeof Nodes;
|
|
169
|
+
export declare enum AggregationKeys {
|
|
170
|
+
Workloads = "Workloads",
|
|
171
|
+
Networking = "Networking",
|
|
172
|
+
'Config & Storage' = "Config & Storage",
|
|
173
|
+
RBAC = "RBAC",
|
|
174
|
+
Administration = "Administration",
|
|
175
|
+
'Custom Resource' = "Custom Resource",
|
|
176
|
+
'Other Resources' = "Other Resources",
|
|
177
|
+
Events = "Events",
|
|
178
|
+
Namespaces = "Namespaces"
|
|
179
|
+
}
|
|
180
|
+
export type AggregationKeysType = keyof typeof AggregationKeys;
|