@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.
- package/dist/Common/Constants.d.ts +1 -0
- package/dist/Common/Hooks/useUrlFilters/types.d.ts +0 -1
- package/dist/Common/Hooks/useUrlFilters/useUrlFilters.d.ts +1 -1
- 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/Components/SelectPicker/type.d.ts +1 -1
- package/dist/assets/index.css +1 -1
- package/dist/{cssMode-CUmYQxLz.js → cssMode-CatRJmef.js} +1 -1
- package/dist/{freemarker2-CwOpDCVs.js → freemarker2-2iBVXYr3.js} +1 -1
- package/dist/{handlebars-BZ0E1hiy.js → handlebars-C2FaFPfe.js} +1 -1
- package/dist/{html-CIcBuYxG.js → html-DOr6ttXW.js} +1 -1
- package/dist/{htmlMode-D6CnxQmw.js → htmlMode-BQ7hldbr.js} +1 -1
- package/dist/{index-C-yipnXk.js → index-B0mAwnhe.js} +3149 -3155
- package/dist/index.js +153 -152
- package/dist/{javascript-D1824o0r.js → javascript-DmOg6UiG.js} +1 -1
- package/dist/{jsonMode-dzChYL5x.js → jsonMode-nNjX16J3.js} +1 -1
- package/dist/{liquid-ykLXGtZD.js → liquid-BWJZro1t.js} +1 -1
- package/dist/{mdx-DMLBOCGI.js → mdx-C2EOVTAT.js} +1 -1
- package/dist/{python-CAybSjZ4.js → python-BHjQ4C-H.js} +1 -1
- package/dist/{razor-CRWTug_f.js → razor-DSvr4zI0.js} +1 -1
- package/dist/{tsMode-CMbot5_p.js → tsMode-BVLzQoCy.js} +1 -1
- package/dist/{typescript-B-VQV9_Z.js → typescript-B8hGtHZb.js} +1 -1
- package/dist/{xml-G9juaMC_.js → xml-D_J_iu79.js} +1 -1
- package/dist/{yaml-CoqLVwfu.js → yaml-BTY8Oxy8.js} +1 -1
- package/package.json +1 -1
|
@@ -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,
|
|
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 {};
|
|
@@ -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'
|
|
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
|
}
|