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.
@@ -176,7 +176,7 @@ export const updateGraphM2M = (options) => {
176
176
  type: 'apiKey'
177
177
  }
178
178
  ],
179
- url: '/m2m/graph/{orgID}/{versionUUID}',
179
+ url: '/m2m/graph/{versionUUID}/{orgID}',
180
180
  ...options,
181
181
  headers: {
182
182
  'Content-Type': 'application/json',
@@ -1585,7 +1585,7 @@ export type UpdateGraphM2mData = {
1585
1585
  versionUUID: string;
1586
1586
  };
1587
1587
  query?: never;
1588
- url: '/m2m/graph/{orgID}/{versionUUID}';
1588
+ url: '/m2m/graph/{versionUUID}/{orgID}';
1589
1589
  };
1590
1590
  export type UpdateGraphM2mErrors = {
1591
1591
  /**
@@ -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/{orgID}/{versionUUID}" };
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?.orgID, options?.path?.versionUUID] });
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoal-web-sdk",
3
- "version": "1.0.111",
3
+ "version": "1.0.112",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build-hooks": "npx tsx tanstack-codegen/generator.ts",