@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.
@@ -85792,6 +85792,23 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85792
85792
  });
85793
85793
  };
85794
85794
 
85795
+ const getPlugins = async ({ cluster }) => {
85796
+ return axios.get(`/api/clusters/${cluster}/openapi-bff/plugins/getPlugins`);
85797
+ };
85798
+
85799
+ const usePluginManifest = ({
85800
+ cluster,
85801
+ refetchInterval,
85802
+ isEnabled
85803
+ }) => {
85804
+ return reactQuery.useQuery({
85805
+ queryKey: ["usePluginManifest", cluster],
85806
+ queryFn: () => getPlugins({ cluster }),
85807
+ refetchInterval: refetchInterval !== void 0 ? refetchInterval : 6e4,
85808
+ enabled: isEnabled
85809
+ });
85810
+ };
85811
+
85795
85812
  exports.BackToDefaultIcon = BackToDefaultIcon;
85796
85813
  exports.BlackholeForm = BlackholeForm;
85797
85814
  exports.BlackholeFormProvider = BlackholeFormProvider;
@@ -85931,6 +85948,7 @@ Take a look at the reducer(s) handling this action type: ${action.type}.
85931
85948
  exports.useListWatch = useListWatch;
85932
85949
  exports.useManyK8sSmartResource = useManyK8sSmartResource;
85933
85950
  exports.usePermissions = usePermissions;
85951
+ exports.usePluginManifest = usePluginManifest;
85934
85952
  exports.useResourceScope = useResourceScope;
85935
85953
  exports.useSmartResourceParams = useSmartResourceParams;
85936
85954