@prorobotech/openapi-k8s-toolkit 1.2.0-alpha.12 → 1.2.0-alpha.14

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.
@@ -1,4 +1,4 @@
1
1
  import { TKindIndex } from '../../../localTypes/bff/search';
2
2
  export declare const getKinds: ({ cluster }: {
3
3
  cluster: string;
4
- }) => Promise<TKindIndex>;
4
+ }) => Promise<import("axios").AxiosResponse<TKindIndex, any, {}>>;
@@ -0,0 +1,8 @@
1
+ export declare const useKinds: ({ cluster, refetchInterval, isEnabled, }: {
2
+ cluster: string;
3
+ refetchInterval?: number | false | undefined;
4
+ isEnabled?: boolean | undefined;
5
+ }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
6
+ kindIndex: import("..").TKindIndex;
7
+ kindsWithVersion: import("..").TKindWithVersion[];
8
+ }, Error>;
@@ -28,6 +28,7 @@ export type { TConnStatus, TUseListWatchQuery, TUseListWatchOptions, TUseListWat
28
28
  export { useK8sVerbs } from './hooks/useK8sVerbs';
29
29
  export { useK8sSmartResource, useManyK8sSmartResource, useSmartResourceParams } from './hooks/useK8sSmartResource';
30
30
  export { useResourceScope } from './hooks/useResourceScope';
31
+ export { useKinds } from './hooks/useKinds';
31
32
  export type { TRequestError } from './localTypes/api';
32
33
  export type { TClusterList } from './localTypes/clusterList';
33
34
  export type { TItemTypeMap, TRenderableItem, TRendererComponents, TFactoryDataK8s, TFactoryResponse, TFactoryResource, } from './localTypes/dynamicRender';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prorobotech/openapi-k8s-toolkit",
3
- "version": "1.2.0-alpha.12",
3
+ "version": "1.2.0-alpha.14",
4
4
  "description": "ProRobotech OpenAPI k8s tools",
5
5
  "main": "dist/openapi-k8s-toolkit.cjs.js",
6
6
  "module": "dist/openapi-k8s-toolkit.es.js",