shoal-web-sdk 0.0.151 → 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.
@@ -753,7 +753,7 @@ export const requestSignedUploadUrl = (options) => {
753
753
  type: 'http'
754
754
  }
755
755
  ],
756
- url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/nodes/{nodeUUID}/signed-upload-url',
756
+ url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/signed-upload-url',
757
757
  ...options
758
758
  });
759
759
  };
@@ -297,7 +297,6 @@ export type EnvironmentVersion = {
297
297
  created_at?: string;
298
298
  last_updated_at: string;
299
299
  deployment_id?: string;
300
- deployment_name?: string;
301
300
  status: string;
302
301
  deployment_started_at?: string;
303
302
  deployment_completed_at?: string;
@@ -2533,13 +2532,9 @@ export type RequestSignedUploadUrlData = {
2533
2532
  * A version number with in an environment.
2534
2533
  */
2535
2534
  version: string;
2536
- /**
2537
- * The node ID this source ZIP is associated with.
2538
- */
2539
- nodeUUID: string;
2540
2535
  };
2541
2536
  query?: never;
2542
- url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/nodes/{nodeUUID}/signed-upload-url';
2537
+ url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/signed-upload-url';
2543
2538
  };
2544
2539
  export type RequestSignedUploadUrlErrors = {
2545
2540
  /**
@@ -459,7 +459,6 @@ export declare const zEnvironmentVersion: z.ZodObject<{
459
459
  created_at: z.ZodOptional<z.ZodISODateTime>;
460
460
  last_updated_at: z.ZodISODateTime;
461
461
  deployment_id: z.ZodOptional<z.ZodUUID>;
462
- deployment_name: z.ZodOptional<z.ZodString>;
463
462
  status: z.ZodString;
464
463
  deployment_started_at: z.ZodOptional<z.ZodISODateTime>;
465
464
  deployment_completed_at: z.ZodOptional<z.ZodISODateTime>;
@@ -477,7 +476,6 @@ export declare const zPaginatedEnvironmentVersions: z.ZodIntersection<z.ZodObjec
477
476
  created_at: z.ZodOptional<z.ZodISODateTime>;
478
477
  last_updated_at: z.ZodISODateTime;
479
478
  deployment_id: z.ZodOptional<z.ZodUUID>;
480
- deployment_name: z.ZodOptional<z.ZodString>;
481
479
  status: z.ZodString;
482
480
  deployment_started_at: z.ZodOptional<z.ZodISODateTime>;
483
481
  deployment_completed_at: z.ZodOptional<z.ZodISODateTime>;
@@ -2332,7 +2330,6 @@ export declare const zGetEnvironmentVersionsResponse: z.ZodIntersection<z.ZodObj
2332
2330
  created_at: z.ZodOptional<z.ZodISODateTime>;
2333
2331
  last_updated_at: z.ZodISODateTime;
2334
2332
  deployment_id: z.ZodOptional<z.ZodUUID>;
2335
- deployment_name: z.ZodOptional<z.ZodString>;
2336
2333
  status: z.ZodString;
2337
2334
  deployment_started_at: z.ZodOptional<z.ZodISODateTime>;
2338
2335
  deployment_completed_at: z.ZodOptional<z.ZodISODateTime>;
@@ -2713,7 +2710,6 @@ export declare const zRequestSignedUploadUrlData: z.ZodObject<{
2713
2710
  projectHandle: z.ZodString;
2714
2711
  environmentHandle: z.ZodString;
2715
2712
  version: z.ZodString;
2716
- nodeUUID: z.ZodUUID;
2717
2713
  }, z.core.$strip>;
2718
2714
  query: z.ZodOptional<z.ZodNever>;
2719
2715
  }, z.core.$strip>;
@@ -297,7 +297,6 @@ export const zEnvironmentVersion = z.object({
297
297
  created_at: z.optional(z.iso.datetime()),
298
298
  last_updated_at: z.iso.datetime(),
299
299
  deployment_id: z.optional(z.uuid()),
300
- deployment_name: z.optional(z.string()),
301
300
  status: z.string(),
302
301
  deployment_started_at: z.optional(z.iso.datetime()),
303
302
  deployment_completed_at: z.optional(z.iso.datetime()),
@@ -1125,8 +1124,7 @@ export const zRequestSignedUploadUrlData = z.object({
1125
1124
  spaceHandle: z.string(),
1126
1125
  projectHandle: z.string(),
1127
1126
  environmentHandle: z.string(),
1128
- version: z.string(),
1129
- nodeUUID: z.uuid()
1127
+ version: z.string()
1130
1128
  }),
1131
1129
  query: z.optional(z.never())
1132
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/nodes/{nodeUUID}/signed-upload-url" };
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", "nodes", options?.path?.nodeUUID, "signed-upload-url"] });
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,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoal-web-sdk",
3
- "version": "0.0.151",
3
+ "version": "0.0.153",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build-hooks": "npx tsx tanstack-codegen/generator.ts",