@devtron-labs/devtron-fe-common-lib 0.6.1-beta-1 → 0.6.1-beta-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.
Files changed (26) hide show
  1. package/dist/Common/Constants.d.ts +1 -0
  2. package/dist/Common/Hooks/useUrlFilters/types.d.ts +0 -1
  3. package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +1 -1
  4. package/dist/Pages/ResourceBrowser/ResourceBrowser.Types.d.ts +23 -0
  5. package/dist/Pages/ResourceBrowser/index.d.ts +1 -0
  6. package/dist/Pages/ResourceBrowser/service.d.ts +3 -0
  7. package/dist/Shared/Components/SelectPicker/type.d.ts +1 -1
  8. package/dist/assets/index.css +1 -1
  9. package/dist/{cssMode-CUmYQxLz.js → cssMode-CatRJmef.js} +1 -1
  10. package/dist/{freemarker2-CwOpDCVs.js → freemarker2-2iBVXYr3.js} +1 -1
  11. package/dist/{handlebars-BZ0E1hiy.js → handlebars-C2FaFPfe.js} +1 -1
  12. package/dist/{html-CIcBuYxG.js → html-DOr6ttXW.js} +1 -1
  13. package/dist/{htmlMode-D6CnxQmw.js → htmlMode-BQ7hldbr.js} +1 -1
  14. package/dist/{index-C-yipnXk.js → index-B0mAwnhe.js} +3149 -3155
  15. package/dist/index.js +153 -152
  16. package/dist/{javascript-D1824o0r.js → javascript-DmOg6UiG.js} +1 -1
  17. package/dist/{jsonMode-dzChYL5x.js → jsonMode-nNjX16J3.js} +1 -1
  18. package/dist/{liquid-ykLXGtZD.js → liquid-BWJZro1t.js} +1 -1
  19. package/dist/{mdx-DMLBOCGI.js → mdx-C2EOVTAT.js} +1 -1
  20. package/dist/{python-CAybSjZ4.js → python-BHjQ4C-H.js} +1 -1
  21. package/dist/{razor-CRWTug_f.js → razor-DSvr4zI0.js} +1 -1
  22. package/dist/{tsMode-CMbot5_p.js → tsMode-BVLzQoCy.js} +1 -1
  23. package/dist/{typescript-B-VQV9_Z.js → typescript-B8hGtHZb.js} +1 -1
  24. package/dist/{xml-G9juaMC_.js → xml-D_J_iu79.js} +1 -1
  25. package/dist/{yaml-CoqLVwfu.js → yaml-BTY8Oxy8.js} +1 -1
  26. package/package.json +1 -1
@@ -92,6 +92,7 @@ export declare const ROUTES: {
92
92
  DEPLOYMENT_CHARTS_LIST: string;
93
93
  USER_LIST_MIN: string;
94
94
  CONFIG_DATA: string;
95
+ K8S_RESOURCE_LIST: string;
95
96
  };
96
97
  export declare enum KEY_VALUE {
97
98
  KEY = "key",
@@ -8,7 +8,6 @@ export interface UseUrlFiltersProps<T, K> {
8
8
  * Callback function for parsing the search params
9
9
  */
10
10
  parseSearchParams?: (searchParams: URLSearchParams) => K;
11
- localStorageKey?: string;
12
11
  }
13
12
  export type UseUrlFiltersReturnType<T, K = unknown> = K & {
14
13
  /**
@@ -16,5 +16,5 @@ import { UseUrlFiltersProps, UseUrlFiltersReturnType } from './types';
16
16
  * ```
17
17
  *
18
18
  */
19
- declare const useUrlFilters: <T = string, K = unknown>({ initialSortKey, parseSearchParams, localStorageKey, }?: UseUrlFiltersProps<T, K>) => UseUrlFiltersReturnType<T, K>;
19
+ declare const useUrlFilters: <T = string, K = unknown>({ initialSortKey, parseSearchParams, }?: UseUrlFiltersProps<T, K>) => UseUrlFiltersReturnType<T, K>;
20
20
  export default useUrlFilters;
@@ -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>>;
@@ -168,7 +168,7 @@ export type SelectPickerProps<OptionValue = number | string, IsMulti extends boo
168
168
  export type SelectPickerGroupHeadingProps<OptionValue> = GroupHeadingProps<SelectPickerOptionType<OptionValue>> & {
169
169
  isGroupHeadingSelectable: boolean;
170
170
  };
171
- export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight' | 'optionListError' | 'reloadOptionList' | 'isOptionDisabled'> {
171
+ export interface FilterSelectPickerProps extends Required<Pick<SelectPickerProps<number | string, true>, 'options' | 'isDisabled' | 'placeholder' | 'isLoading'>>, Pick<SelectPickerProps<number | string, true>, 'selectRef' | 'inputId' | 'menuPosition' | 'autoFocus' | 'shouldMenuAlignRight' | 'optionListError' | 'reloadOptionList'> {
172
172
  appliedFilterOptions: SelectPickerOptionType[];
173
173
  handleApplyFilter: (filtersToApply: SelectPickerOptionType<number | string>[]) => void;
174
174
  }