@prorobotech/openapi-k8s-toolkit 1.2.1-alpha.1 → 1.2.1-alpha.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.
@@ -0,0 +1,4 @@
1
+ import { TPluginManifest } from '../../../localTypes/bff/plugins';
2
+ export declare const getPlugins: ({ cluster }: {
3
+ cluster: string;
4
+ }) => Promise<import("axios").AxiosResponse<TPluginManifest, any, {}>>;
@@ -0,0 +1,5 @@
1
+ export declare const usePluginManifest: ({ cluster, refetchInterval, isEnabled, }: {
2
+ cluster: string;
3
+ refetchInterval?: number | false | undefined;
4
+ isEnabled?: boolean | undefined;
5
+ }) => import("@tanstack/react-query/build/legacy/types").UseQueryResult<import("axios").AxiosResponse<import("..").TPluginManifest, any, {}>, Error>;
@@ -29,6 +29,7 @@ export { useK8sVerbs } from './hooks/useK8sVerbs';
29
29
  export { useK8sSmartResource, useManyK8sSmartResource, useSmartResourceParams } from './hooks/useK8sSmartResource';
30
30
  export { useResourceScope } from './hooks/useResourceScope';
31
31
  export { useKinds } from './hooks/useKinds';
32
+ export { usePluginManifest } from './hooks/usePlugins';
32
33
  export type { TRequestError } from './localTypes/api';
33
34
  export type { TClusterList } from './localTypes/clusterList';
34
35
  export type { TItemTypeMap, TRenderableItem, TRendererComponents, TFactoryDataK8s, TFactoryResponse, TFactoryResource, } from './localTypes/dynamicRender';
@@ -40,6 +41,7 @@ export type { TMarketPlacePanel, TMarketPlacePanelResource, TMarketPlacePanelRes
40
41
  export type { TAdditionalPrinterColumns, TAdditionalPrinterColumnsUndefinedValues, TAdditionalPrinterColumnsTrimLengths, TAdditionalPrinterColumnsColWidths, } from './localTypes/richTable';
41
42
  export type { TFilterIfApiInstanceNamespaceScopedReq, TFilterIfApiInstanceNamespaceScopedRes, TFilterIfBuiltInInstanceNamespaceScopedReq, TFilterIfBuiltInInstanceNamespaceScopedRes, } from './localTypes/bff/scopes';
42
43
  export type { TVersionEntry, TKindItem, TKindIndex } from './localTypes/bff/search';
44
+ export type { TPluginManifestEntry, TPluginManifest } from './localTypes/bff/plugins';
43
45
  export type { TGetDerefedSwaggerRes } from './localTypes/bff/swagger';
44
46
  export type { TKindWithVersion } from './localTypes/search';
45
47
  export type { TNavigationResource } from './localTypes/navigations';
@@ -0,0 +1,6 @@
1
+ export type TPluginManifestEntry = {
2
+ name: string;
3
+ entry: string;
4
+ exposedModule: string;
5
+ };
6
+ export type TPluginManifest = Record<string, TPluginManifestEntry>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@prorobotech/openapi-k8s-toolkit",
3
- "version": "1.2.1-alpha.1",
3
+ "version": "1.2.1-alpha.2",
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",