@calimero-network/mero-react 7.0.1 → 9.0.0

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/index.cjs CHANGED
@@ -1949,9 +1949,9 @@ function useDeleteGroup() {
1949
1949
  const { mero } = useMero();
1950
1950
  const { loading, error, run } = useAsyncMutation();
1951
1951
  const deleteGroup = react.useCallback(
1952
- async (groupId, request) => {
1952
+ async (groupId) => {
1953
1953
  if (!mero) return null;
1954
- return run(() => mero.admin.deleteGroup(groupId, request));
1954
+ return run(() => mero.admin.deleteGroup(groupId));
1955
1955
  },
1956
1956
  [mero, run]
1957
1957
  );
@@ -1961,9 +1961,9 @@ function useSyncGroup() {
1961
1961
  const { mero } = useMero();
1962
1962
  const { loading, error, run } = useAsyncMutation();
1963
1963
  const syncGroup = react.useCallback(
1964
- async (groupId, request) => {
1964
+ async (groupId) => {
1965
1965
  if (!mero) return null;
1966
- return run(() => mero.admin.syncGroup(groupId, request));
1966
+ return run(() => mero.admin.syncGroup(groupId));
1967
1967
  },
1968
1968
  [mero, run]
1969
1969
  );
@@ -2054,9 +2054,9 @@ function useDeleteNamespace() {
2054
2054
  const { mero } = useMero();
2055
2055
  const { loading, error, run } = useAsyncMutation();
2056
2056
  const deleteNamespace = react.useCallback(
2057
- async (namespaceId, request) => {
2057
+ async (namespaceId) => {
2058
2058
  if (!mero) return null;
2059
- return run(() => mero.admin.deleteNamespace(namespaceId, request));
2059
+ return run(() => mero.admin.deleteNamespace(namespaceId));
2060
2060
  },
2061
2061
  [mero, run]
2062
2062
  );
@@ -2277,9 +2277,9 @@ function useInstallFromRegistry() {
2277
2277
  const { mero } = useMero();
2278
2278
  const { loading, error, run } = useAsyncMutation();
2279
2279
  const installFromRegistry = react.useCallback(
2280
- async (registryUrl, packageName, version) => {
2280
+ async (packageName, version) => {
2281
2281
  if (!mero) return null;
2282
- return run(() => mero.admin.installFromRegistry(registryUrl, packageName, version));
2282
+ return run(() => mero.admin.installApplication({ package: packageName, version }));
2283
2283
  },
2284
2284
  [mero, run]
2285
2285
  );
@@ -2348,9 +2348,9 @@ function useRetryGroupUpgrade() {
2348
2348
  const { mero } = useMero();
2349
2349
  const { loading, error, run } = useAsyncMutation();
2350
2350
  const retryGroupUpgrade = react.useCallback(
2351
- async (groupId, request) => {
2351
+ async (groupId) => {
2352
2352
  if (!mero) return null;
2353
- return run(() => mero.admin.retryGroupUpgrade(groupId, request));
2353
+ return run(() => mero.admin.retryGroupUpgrade(groupId));
2354
2354
  },
2355
2355
  [mero, run]
2356
2356
  );
@@ -2381,9 +2381,9 @@ function useDetachContextFromGroup() {
2381
2381
  const { mero } = useMero();
2382
2382
  const { loading, error, run } = useAsyncMutation();
2383
2383
  const detachContextFromGroup = react.useCallback(
2384
- async (groupId, contextId, request) => {
2384
+ async (groupId, contextId) => {
2385
2385
  if (!mero) return null;
2386
- return run(() => mero.admin.detachContextFromGroup(groupId, contextId, request));
2386
+ return run(() => mero.admin.detachContextFromGroup(groupId, contextId));
2387
2387
  },
2388
2388
  [mero, run]
2389
2389
  );