@prorobotech/openapi-k8s-toolkit 0.0.1-alpha.25 → 0.0.1-alpha.26

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,3 +1,4 @@
1
+ import { TApiResources } from '../localTypes/k8s';
1
2
  export declare const useApiResources: ({ clusterName, namespace, apiGroup, apiVersion, typeName, limit, refetchInterval, }: {
2
3
  clusterName: string;
3
4
  namespace?: string | undefined;
@@ -6,7 +7,7 @@ export declare const useApiResources: ({ clusterName, namespace, apiGroup, apiVe
6
7
  typeName: string;
7
8
  limit: string | null;
8
9
  refetchInterval?: number | false | undefined;
9
- }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<any, Error>;
10
+ }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TApiResources, Error>;
10
11
  export declare const useApiResourceSingle: ({ clusterName, namespace, apiGroup, apiVersion, typeName, entryName, refetchInterval, }: {
11
12
  clusterName: string;
12
13
  namespace?: string | undefined;
@@ -1,8 +1,30 @@
1
1
  export declare const useApisResourceTypes: ({ clusterName }: {
2
2
  clusterName: string;
3
- }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<any, Error>;
3
+ }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
4
+ apiVersion: string;
5
+ kind: string;
6
+ groups: {
7
+ name: string;
8
+ versions: {
9
+ groupVersion: string;
10
+ version: string;
11
+ }[];
12
+ preferredVersion: {
13
+ groupVersion: string;
14
+ version: string;
15
+ };
16
+ }[];
17
+ }, Error>;
4
18
  export declare const useApiResourceTypesByGroup: ({ clusterName, apiGroup, apiVersion, }: {
5
19
  clusterName: string;
6
20
  apiGroup: string;
7
21
  apiVersion: string;
8
- }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<any, Error>;
22
+ }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
23
+ apiVersion: string;
24
+ kind: string;
25
+ groupVersion: string;
26
+ resources: {
27
+ name: string;
28
+ kind: string;
29
+ }[];
30
+ }, Error>;
@@ -1,10 +1,11 @@
1
+ import { TBuiltinResources } from '../localTypes/k8s';
1
2
  export declare const useBuiltinResources: ({ clusterName, namespace, typeName, limit, refetchInterval, }: {
2
3
  clusterName: string;
3
4
  namespace?: string | undefined;
4
5
  typeName: string;
5
6
  limit: string | null;
6
7
  refetchInterval?: number | false | undefined;
7
- }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<any, Error>;
8
+ }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TBuiltinResources, Error>;
8
9
  export declare const useBuiltinResourceSingle: ({ clusterName, namespace, typeName, entryName, refetchInterval, }: {
9
10
  clusterName: string;
10
11
  namespace?: string | undefined;
@@ -1,3 +1,4 @@
1
+ import { TBuiltinResourceTypeList } from '../localTypes/k8s';
1
2
  export declare const useBuiltinResourceTypes: ({ clusterName }: {
2
3
  clusterName: string;
3
- }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<any, Error>;
4
+ }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<TBuiltinResourceTypeList, Error>;
@@ -2,4 +2,24 @@ export declare const useCrdData: ({ clusterName, apiExtensionVersion, crdName, }
2
2
  clusterName: string;
3
3
  apiExtensionVersion: string;
4
4
  crdName: string;
5
- }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<any, Error>;
5
+ }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
6
+ apiVersion: string;
7
+ metadata: {
8
+ managedFields?: any;
9
+ };
10
+ spec: {
11
+ names: {
12
+ kind: string;
13
+ singular: string;
14
+ plural: string;
15
+ };
16
+ versions: {
17
+ name: string;
18
+ additionalPrinterColumns: import("..").TAdditionalPrinterColumns;
19
+ }[];
20
+ group: string;
21
+ };
22
+ status: {
23
+ storedVersions: string[];
24
+ };
25
+ }, Error>;
@@ -6,7 +6,18 @@ export declare const useCrdResources: <T = TJSON[]>({ clusterName, namespace, ap
6
6
  apiVersion: string;
7
7
  crdName: string;
8
8
  refetchInterval?: number | false | undefined;
9
- }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<any, Error>;
9
+ }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<{
10
+ kind: string;
11
+ apiVersion: string;
12
+ metadata: {
13
+ managedFields?: any;
14
+ };
15
+ items: T;
16
+ status?: {
17
+ allowed?: boolean | undefined;
18
+ reason?: string | undefined;
19
+ } | undefined;
20
+ }, Error>;
10
21
  export declare const useCrdResourceSingle: ({ clusterName, namespace, apiGroup, apiVersion, crdName, entryName, refetchInterval, }: {
11
22
  clusterName: string;
12
23
  namespace?: string | undefined;
@@ -65,7 +65,6 @@ export type TCrdResources<T = TJSON[]> = {
65
65
  kind: string;
66
66
  apiVersion: string;
67
67
  metadata: {
68
- resourceVersion: string;
69
68
  managedFields?: any;
70
69
  };
71
70
  items: T;
@@ -5,7 +5,6 @@ export declare const parseCustomOverrides: ({ columnsOverridesData, overrideType
5
5
  kind: string;
6
6
  apiVersion: string;
7
7
  metadata: {
8
- resourceVersion: string;
9
8
  managedFields?: any;
10
9
  };
11
10
  items: import("../..").TJSON[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prorobotech/openapi-k8s-toolkit",
3
- "version": "0.0.1-alpha.25",
3
+ "version": "0.0.1-alpha.26",
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",