shoal-web-sdk 0.0.152 → 0.0.153
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
|
@@ -753,7 +753,7 @@ export const requestSignedUploadUrl = (options) => {
|
|
|
753
753
|
type: 'http'
|
|
754
754
|
}
|
|
755
755
|
],
|
|
756
|
-
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/
|
|
756
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/signed-upload-url',
|
|
757
757
|
...options
|
|
758
758
|
});
|
|
759
759
|
};
|
package/dist/sdk/types.gen.d.ts
CHANGED
|
@@ -2532,13 +2532,9 @@ export type RequestSignedUploadUrlData = {
|
|
|
2532
2532
|
* A version number with in an environment.
|
|
2533
2533
|
*/
|
|
2534
2534
|
version: string;
|
|
2535
|
-
/**
|
|
2536
|
-
* The node ID this source ZIP is associated with.
|
|
2537
|
-
*/
|
|
2538
|
-
nodeUUID: string;
|
|
2539
2535
|
};
|
|
2540
2536
|
query?: never;
|
|
2541
|
-
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/
|
|
2537
|
+
url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/signed-upload-url';
|
|
2542
2538
|
};
|
|
2543
2539
|
export type RequestSignedUploadUrlErrors = {
|
|
2544
2540
|
/**
|
package/dist/sdk/zod.gen.d.ts
CHANGED
|
@@ -2710,7 +2710,6 @@ export declare const zRequestSignedUploadUrlData: z.ZodObject<{
|
|
|
2710
2710
|
projectHandle: z.ZodString;
|
|
2711
2711
|
environmentHandle: z.ZodString;
|
|
2712
2712
|
version: z.ZodString;
|
|
2713
|
-
nodeUUID: z.ZodUUID;
|
|
2714
2713
|
}, z.core.$strip>;
|
|
2715
2714
|
query: z.ZodOptional<z.ZodNever>;
|
|
2716
2715
|
}, z.core.$strip>;
|
package/dist/sdk/zod.gen.js
CHANGED
|
@@ -1124,8 +1124,7 @@ export const zRequestSignedUploadUrlData = z.object({
|
|
|
1124
1124
|
spaceHandle: z.string(),
|
|
1125
1125
|
projectHandle: z.string(),
|
|
1126
1126
|
environmentHandle: z.string(),
|
|
1127
|
-
version: z.string()
|
|
1128
|
-
nodeUUID: z.uuid()
|
|
1127
|
+
version: z.string()
|
|
1129
1128
|
}),
|
|
1130
1129
|
query: z.optional(z.never())
|
|
1131
1130
|
});
|
|
@@ -928,7 +928,7 @@ export const useVersionStatus = (options) => {
|
|
|
928
928
|
export const useRequestSignedUploadUrl = (config) => {
|
|
929
929
|
const token = useToken();
|
|
930
930
|
const queryClient = useQueryClient();
|
|
931
|
-
const opts = { throwOnError: true, url: "/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/
|
|
931
|
+
const opts = { throwOnError: true, url: "/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/signed-upload-url" };
|
|
932
932
|
const funcer = async (options) => {
|
|
933
933
|
const auth = isPromise(token) ? (await token) || "" : token || "";
|
|
934
934
|
const res = await requestSignedUploadUrl({ ...opts, ...options, auth });
|
|
@@ -937,7 +937,7 @@ export const useRequestSignedUploadUrl = (config) => {
|
|
|
937
937
|
return useMutation({
|
|
938
938
|
mutationFn: funcer,
|
|
939
939
|
onSuccess: (res, options, c, ctx) => {
|
|
940
|
-
queryClient.invalidateQueries({ queryKey: [options?.path?.spaceHandle, options?.path?.projectHandle, options?.path?.environmentHandle, options?.path?.version, "graph", "
|
|
940
|
+
queryClient.invalidateQueries({ queryKey: [options?.path?.spaceHandle, options?.path?.projectHandle, options?.path?.environmentHandle, options?.path?.version, "graph", "signed-upload-url"] });
|
|
941
941
|
config?.onSuccess && config.onSuccess(res);
|
|
942
942
|
},
|
|
943
943
|
onError: config?.onError,
|