@devtron-labs/devtron-fe-common-lib 0.6.0-patch-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.
@@ -91,6 +91,7 @@ export declare const ROUTES: {
91
91
  DEPLOYMENT_CHARTS_LIST: string;
92
92
  USER_LIST_MIN: string;
93
93
  CONFIG_DATA: string;
94
+ K8S_RESOURCE_LIST: string;
94
95
  };
95
96
  export declare enum KEY_VALUE {
96
97
  KEY = "key",
@@ -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 {};
@@ -1,2 +1,3 @@
1
1
  export * from './ResourceBrowser.Types';
2
2
  export * from './Helper';
3
+ export * from './service';
@@ -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>>;