shoal-web-sdk 1.0.111 → 1.0.112
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/sdk/sdk.gen.js
CHANGED
package/dist/sdk/types.gen.d.ts
CHANGED
|
@@ -69,7 +69,7 @@ export const useNukeEnvironmentM2M = (config) => {
|
|
|
69
69
|
export const useUpdateGraphM2M = (config) => {
|
|
70
70
|
const token = useToken();
|
|
71
71
|
const queryClient = useQueryClient();
|
|
72
|
-
const opts = { throwOnError: true, url: "/m2m/graph/{
|
|
72
|
+
const opts = { throwOnError: true, url: "/m2m/graph/{versionUUID}/{orgID}" };
|
|
73
73
|
const funcer = async (options) => {
|
|
74
74
|
const auth = isPromise(token) ? (await token) || "" : token || "";
|
|
75
75
|
const res = await updateGraphM2M({ ...opts, ...options, auth });
|
|
@@ -78,7 +78,7 @@ export const useUpdateGraphM2M = (config) => {
|
|
|
78
78
|
return useMutation({
|
|
79
79
|
mutationFn: funcer,
|
|
80
80
|
onSuccess: (res, options, c, ctx) => {
|
|
81
|
-
queryClient.invalidateQueries({ queryKey: ["m2m", "graph", options?.path?.
|
|
81
|
+
queryClient.invalidateQueries({ queryKey: ["m2m", "graph", options?.path?.versionUUID, options?.path?.orgID] });
|
|
82
82
|
config?.onSuccess && config.onSuccess(res.data, res.headers);
|
|
83
83
|
},
|
|
84
84
|
onError: config?.onError,
|