shoal-web-sdk 0.0.88 → 0.0.89
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
|
@@ -334,6 +334,10 @@ export type Expired = boolean;
|
|
|
334
334
|
* An invite UUID.
|
|
335
335
|
*/
|
|
336
336
|
export type InviteUuid = string;
|
|
337
|
+
/**
|
|
338
|
+
* A version UUID.
|
|
339
|
+
*/
|
|
340
|
+
export type VersionUuid = string;
|
|
337
341
|
/**
|
|
338
342
|
* A version number with in an environment.
|
|
339
343
|
*/
|
|
@@ -410,10 +414,13 @@ export type GetServiceHealthResponse = GetServiceHealthResponses[keyof GetServic
|
|
|
410
414
|
export type FetchGraphM2mData = {
|
|
411
415
|
body?: never;
|
|
412
416
|
path: {
|
|
413
|
-
|
|
417
|
+
/**
|
|
418
|
+
* A version UUID.
|
|
419
|
+
*/
|
|
420
|
+
versionUUID: string;
|
|
414
421
|
};
|
|
415
422
|
query?: never;
|
|
416
|
-
url: '/
|
|
423
|
+
url: '/m2m/graph/{versionUUID}';
|
|
417
424
|
};
|
|
418
425
|
export type FetchGraphM2mErrors = {
|
|
419
426
|
/**
|
package/dist/sdk/zod.gen.d.ts
CHANGED
|
@@ -934,6 +934,10 @@ export declare const zExpired: z.ZodBoolean;
|
|
|
934
934
|
* An invite UUID.
|
|
935
935
|
*/
|
|
936
936
|
export declare const zInviteUuid: z.ZodUUID;
|
|
937
|
+
/**
|
|
938
|
+
* A version UUID.
|
|
939
|
+
*/
|
|
940
|
+
export declare const zVersionUuid: z.ZodUUID;
|
|
937
941
|
/**
|
|
938
942
|
* A version number with in an environment.
|
|
939
943
|
*/
|
|
@@ -1010,7 +1014,7 @@ export declare const zGetServiceHealthResponse: z.ZodObject<{
|
|
|
1010
1014
|
export declare const zFetchGraphM2mData: z.ZodObject<{
|
|
1011
1015
|
body: z.ZodOptional<z.ZodNever>;
|
|
1012
1016
|
path: z.ZodObject<{
|
|
1013
|
-
|
|
1017
|
+
versionUUID: z.ZodUUID;
|
|
1014
1018
|
}, z.core.$strip>;
|
|
1015
1019
|
query: z.ZodOptional<z.ZodNever>;
|
|
1016
1020
|
}, z.core.$strip>;
|
package/dist/sdk/zod.gen.js
CHANGED
|
@@ -400,6 +400,10 @@ export const zExpired = z.boolean();
|
|
|
400
400
|
* An invite UUID.
|
|
401
401
|
*/
|
|
402
402
|
export const zInviteUuid = z.uuid();
|
|
403
|
+
/**
|
|
404
|
+
* A version UUID.
|
|
405
|
+
*/
|
|
406
|
+
export const zVersionUuid = z.uuid();
|
|
403
407
|
/**
|
|
404
408
|
* A version number with in an environment.
|
|
405
409
|
*/
|
|
@@ -474,7 +478,7 @@ export const zGetServiceHealthResponse = zHealthResponse;
|
|
|
474
478
|
export const zFetchGraphM2mData = z.object({
|
|
475
479
|
body: z.optional(z.never()),
|
|
476
480
|
path: z.object({
|
|
477
|
-
|
|
481
|
+
versionUUID: z.uuid()
|
|
478
482
|
}),
|
|
479
483
|
query: z.optional(z.never())
|
|
480
484
|
});
|
|
@@ -27,7 +27,7 @@ export const useGetServiceHealth = (options) => {
|
|
|
27
27
|
export const useFetchGraphM2M = (options) => {
|
|
28
28
|
const token = useToken();
|
|
29
29
|
let { enabled, ...rest } = options || { enabled: true };
|
|
30
|
-
const opts = { throwOnError: true, url: "/
|
|
30
|
+
const opts = { throwOnError: true, url: "/m2m/graph/{versionUUID}" };
|
|
31
31
|
const funcer = async () => {
|
|
32
32
|
const auth = isPromise(token) ? (await token) || "" : token || "";
|
|
33
33
|
if (isPromise(token) && !token)
|
|
@@ -38,7 +38,7 @@ export const useFetchGraphM2M = (options) => {
|
|
|
38
38
|
if (!token)
|
|
39
39
|
enabled = false;
|
|
40
40
|
return useQuery({
|
|
41
|
-
queryKey: ["m2m", "graph", options?.path?.
|
|
41
|
+
queryKey: ["m2m", "graph", options?.path?.versionUUID, options.query ?? {}],
|
|
42
42
|
queryFn: funcer,
|
|
43
43
|
enabled,
|
|
44
44
|
retry: false,
|