@devtron-labs/devtron-fe-common-lib 0.6.0-beta-1 → 0.6.0-patch-1-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/Common/Constants.d.ts +1 -1
- package/dist/Common/Helper.d.ts +0 -5
- package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +23 -0
- package/dist/Pages/ResourceBrowser/index.d.ts +1 -0
- package/dist/Pages/ResourceBrowser/service.d.ts +3 -0
- package/dist/Shared/types.d.ts +1 -29
- package/dist/Shared/validations.d.ts +0 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-DRujWwH1.js → cssMode-DIvZN9Y6.js} +1 -1
- package/dist/{freemarker2-B24zdnhx.js → freemarker2-4tsNyFW1.js} +1 -1
- package/dist/{handlebars-uOKktZdU.js → handlebars-D9lFD-KP.js} +1 -1
- package/dist/{html-CBvQkh3k.js → html-8BQb4XKb.js} +1 -1
- package/dist/{htmlMode-BX_z0JrP.js → htmlMode-I-o4EqOp.js} +1 -1
- package/dist/{index-CSLgJVob.js → index-Cc6REBHE.js} +10776 -10794
- package/dist/index.d.ts +6 -0
- package/dist/index.js +172 -174
- package/dist/{javascript-C4HFt7dx.js → javascript-CG7sDIoM.js} +1 -1
- package/dist/{jsonMode-BUjhhOyB.js → jsonMode-DhUD-Kii.js} +1 -1
- package/dist/{liquid-u8DgCLO8.js → liquid-BTPNwdY-.js} +1 -1
- package/dist/{mdx-5QP7Gku4.js → mdx-_D9arkFI.js} +1 -1
- package/dist/{python-DGxbSuAn.js → python-D2JfDERu.js} +1 -1
- package/dist/{razor-B56Y5Tw6.js → razor-D1tmEOBu.js} +1 -1
- package/dist/{tsMode-Bfp-uJIg.js → tsMode-jF1NxtXI.js} +1 -1
- package/dist/{typescript-898AqFXg.js → typescript-WAOG6Eiq.js} +1 -1
- package/dist/{xml-DnWDtusz.js → xml-DUoml4MP.js} +1 -1
- package/dist/{yaml-DezPNWWY.js → yaml-G1C2Ilkn.js} +1 -1
- package/package.json +1 -2
|
@@ -45,7 +45,6 @@ export declare const URLS: {
|
|
|
45
45
|
GLOBAL_CONFIG_SCOPED_VARIABLES: string;
|
|
46
46
|
GLOBAL_CONFIG_DEPLOYMENT_CHARTS_LIST: string;
|
|
47
47
|
NETWORK_STATUS_INTERFACE: string;
|
|
48
|
-
RESOURCE_BROWSER: string;
|
|
49
48
|
};
|
|
50
49
|
export declare const ROUTES: {
|
|
51
50
|
APP: string;
|
|
@@ -92,6 +91,7 @@ export declare const ROUTES: {
|
|
|
92
91
|
DEPLOYMENT_CHARTS_LIST: string;
|
|
93
92
|
USER_LIST_MIN: string;
|
|
94
93
|
CONFIG_DATA: string;
|
|
94
|
+
K8S_RESOURCE_LIST: string;
|
|
95
95
|
};
|
|
96
96
|
export declare enum KEY_VALUE {
|
|
97
97
|
KEY = "key",
|
package/dist/Common/Helper.d.ts
CHANGED
|
@@ -121,9 +121,4 @@ export declare function mapByKey<T = Map<any, any>>(arr: any[], id: string): T;
|
|
|
121
121
|
export declare function asyncWrap(promise: any): any[];
|
|
122
122
|
export declare const prefixZeroIfSingleDigit: (value?: number) => string | number;
|
|
123
123
|
export declare const throttle: <T extends (...args: unknown[]) => unknown>(func: T, delay?: number) => ((...args: Parameters<T>) => void);
|
|
124
|
-
export declare const getSanitizedIframe: (iframeString: string) => string;
|
|
125
|
-
/**
|
|
126
|
-
* This method adds default attributes to iframe - title, loading ="lazy", width="100%", height="100%"
|
|
127
|
-
*/
|
|
128
|
-
export declare const getIframeWithDefaultAttributes: (iframeString: string, defaultName?: string) => string;
|
|
129
124
|
export {};
|
|
@@ -18,3 +18,26 @@ export interface K8SObjectBaseType {
|
|
|
18
18
|
name: string;
|
|
19
19
|
isExpanded: boolean;
|
|
20
20
|
}
|
|
21
|
+
interface K8sRequestResourceIdentifierType {
|
|
22
|
+
groupVersionKind: GVKType;
|
|
23
|
+
namespace?: string;
|
|
24
|
+
name?: string;
|
|
25
|
+
}
|
|
26
|
+
interface ResourceListPayloadK8sRequestType {
|
|
27
|
+
resourceIdentifier: K8sRequestResourceIdentifierType;
|
|
28
|
+
patch?: string;
|
|
29
|
+
forceDelete?: boolean;
|
|
30
|
+
}
|
|
31
|
+
export interface K8sResourceListPayloadType {
|
|
32
|
+
clusterId: number;
|
|
33
|
+
filter?: string;
|
|
34
|
+
k8sRequest: ResourceListPayloadK8sRequestType;
|
|
35
|
+
}
|
|
36
|
+
export type K8sResourceDetailDataType = {
|
|
37
|
+
[key: string]: string | number | object;
|
|
38
|
+
};
|
|
39
|
+
export interface K8sResourceDetailType {
|
|
40
|
+
headers: string[];
|
|
41
|
+
data: K8sResourceDetailDataType[];
|
|
42
|
+
}
|
|
43
|
+
export {};
|
|
@@ -0,0 +1,3 @@
|
|
|
1
|
+
import { ResponseType } from '../../Common/Types';
|
|
2
|
+
import { K8sResourceDetailType, K8sResourceListPayloadType } from './ResourceBrowser.Types';
|
|
3
|
+
export declare const getK8sResourceList: (resourceListPayload: K8sResourceListPayloadType, signal?: AbortSignal) => Promise<ResponseType<K8sResourceDetailType>>;
|
package/dist/Shared/types.d.ts
CHANGED
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
import { Dayjs } from 'dayjs';
|
|
2
1
|
import { OptionType, CommonNodeAttr, ResponseType, UserApprovalConfigType, VulnerabilityType, DeploymentAppTypes, ServerErrors, SortingParams } from '../Common';
|
|
3
2
|
import { KeyValueListType } from './Components';
|
|
4
3
|
import { EnvironmentTypeEnum, PatchOperationType } from './constants';
|
|
@@ -85,8 +84,7 @@ export declare enum Nodes {
|
|
|
85
84
|
PodDisruptionBudget = "PodDisruptionBudget",
|
|
86
85
|
Event = "Event",
|
|
87
86
|
Namespace = "Namespace",
|
|
88
|
-
Overview = "Overview"
|
|
89
|
-
MonitoringDashboard = "MonitoringDashboard"
|
|
87
|
+
Overview = "Overview"
|
|
90
88
|
}
|
|
91
89
|
export type NodeType = keyof typeof Nodes;
|
|
92
90
|
export interface Node {
|
|
@@ -581,7 +579,6 @@ export declare enum ConfigurationType {
|
|
|
581
579
|
export interface BaseURLParams {
|
|
582
580
|
appId: string;
|
|
583
581
|
envId: string;
|
|
584
|
-
clusterId: string;
|
|
585
582
|
}
|
|
586
583
|
export interface ConfigKeysWithLockType {
|
|
587
584
|
config: string[];
|
|
@@ -628,29 +625,4 @@ export interface CustomRoleAndMeta {
|
|
|
628
625
|
possibleRolesMetaForCluster: MetaPossibleRoles;
|
|
629
626
|
possibleRolesMetaForJob: MetaPossibleRoles;
|
|
630
627
|
}
|
|
631
|
-
interface CommonTabArgsType {
|
|
632
|
-
name: string;
|
|
633
|
-
kind?: string;
|
|
634
|
-
url: string;
|
|
635
|
-
isSelected: boolean;
|
|
636
|
-
title?: string;
|
|
637
|
-
isDeleted?: boolean;
|
|
638
|
-
position: number;
|
|
639
|
-
iconPath?: string;
|
|
640
|
-
dynamicTitle?: string;
|
|
641
|
-
showNameOnSelect?: boolean;
|
|
642
|
-
/**
|
|
643
|
-
* @default false
|
|
644
|
-
*/
|
|
645
|
-
hideName?: boolean;
|
|
646
|
-
isAlive?: boolean;
|
|
647
|
-
lastSyncMoment?: Dayjs;
|
|
648
|
-
componentKey?: string;
|
|
649
|
-
}
|
|
650
|
-
export interface InitTabType extends CommonTabArgsType {
|
|
651
|
-
idPrefix: string;
|
|
652
|
-
}
|
|
653
|
-
export interface DynamicTabType extends CommonTabArgsType {
|
|
654
|
-
id: string;
|
|
655
|
-
}
|
|
656
628
|
export {};
|
|
@@ -42,4 +42,3 @@ export declare const validateSemanticVersioning: (version: string) => Validation
|
|
|
42
42
|
*/
|
|
43
43
|
export declare const validateDisplayName: (name: string) => ValidationResponseType;
|
|
44
44
|
export declare const validateJSON: (json: string) => ValidationResponseType;
|
|
45
|
-
export declare const validateIframe: (input: string) => ValidationResponseType;
|