shoal-web-sdk 0.0.174 → 0.0.176

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.
@@ -830,7 +830,7 @@ export const checkSubdomainUniqueness = (options) => {
830
830
  type: 'http'
831
831
  }
832
832
  ],
833
- url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/check-subdomain/{subdomain}',
833
+ url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/{nodeUUID}/check-subdomain/{subdomain}',
834
834
  ...options
835
835
  });
836
836
  };
@@ -588,6 +588,10 @@ export type VersionUuid = string;
588
588
  * Optional version UUID to exclude from the environment versions response.
589
589
  */
590
590
  export type ExcludeVersionUuidQuery = string;
591
+ /**
592
+ * A list of statuses.
593
+ */
594
+ export type DeploymentStatusesQuery = Array<DeploymentStatus>;
591
595
  /**
592
596
  * Optional version status to filter the environment versions response.
593
597
  */
@@ -2262,9 +2266,9 @@ export type GetEnvironmentVersionsData = {
2262
2266
  */
2263
2267
  limit?: number;
2264
2268
  /**
2265
- * Optional version status to filter the environment versions response.
2269
+ * A list of statuses.
2266
2270
  */
2267
- status?: DeploymentStatus;
2271
+ statuses?: Array<DeploymentStatus>;
2268
2272
  };
2269
2273
  url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/versions';
2270
2274
  };
@@ -2744,13 +2748,17 @@ export type CheckSubdomainUniquenessData = {
2744
2748
  * A version number with in an environment.
2745
2749
  */
2746
2750
  version: string;
2751
+ /**
2752
+ * The node ID this source ZIP is associated with.
2753
+ */
2754
+ nodeUUID: string;
2747
2755
  /**
2748
2756
  * The proxy subdomain to check for uniqueness.
2749
2757
  */
2750
2758
  subdomain: string;
2751
2759
  };
2752
2760
  query?: never;
2753
- url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/check-subdomain/{subdomain}';
2761
+ url: '/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/{nodeUUID}/check-subdomain/{subdomain}';
2754
2762
  };
2755
2763
  export type CheckSubdomainUniquenessErrors = {
2756
2764
  /**
@@ -1141,6 +1141,18 @@ export declare const zVersionUuid: z.ZodUUID;
1141
1141
  * Optional version UUID to exclude from the environment versions response.
1142
1142
  */
1143
1143
  export declare const zExcludeVersionUuidQuery: z.ZodUUID;
1144
+ /**
1145
+ * A list of statuses.
1146
+ */
1147
+ export declare const zDeploymentStatusesQuery: z.ZodArray<z.ZodEnum<{
1148
+ pending: "pending";
1149
+ prebuilding: "prebuilding";
1150
+ building: "building";
1151
+ deploying: "deploying";
1152
+ configuring: "configuring";
1153
+ succeeded: "succeeded";
1154
+ failed: "failed";
1155
+ }>>;
1144
1156
  /**
1145
1157
  * Optional version status to filter the environment versions response.
1146
1158
  */
@@ -2437,7 +2449,7 @@ export declare const zGetEnvironmentVersionsData: z.ZodObject<{
2437
2449
  query: z.ZodOptional<z.ZodObject<{
2438
2450
  page: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
2439
2451
  limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
2440
- status: z.ZodOptional<z.ZodEnum<{
2452
+ statuses: z.ZodOptional<z.ZodArray<z.ZodEnum<{
2441
2453
  pending: "pending";
2442
2454
  prebuilding: "prebuilding";
2443
2455
  building: "building";
@@ -2445,7 +2457,7 @@ export declare const zGetEnvironmentVersionsData: z.ZodObject<{
2445
2457
  configuring: "configuring";
2446
2458
  succeeded: "succeeded";
2447
2459
  failed: "failed";
2448
- }>>;
2460
+ }>>>;
2449
2461
  }, z.core.$strip>>;
2450
2462
  }, z.core.$strip>;
2451
2463
  /**
@@ -2881,6 +2893,7 @@ export declare const zCheckSubdomainUniquenessData: z.ZodObject<{
2881
2893
  projectHandle: z.ZodString;
2882
2894
  environmentHandle: z.ZodString;
2883
2895
  version: z.ZodString;
2896
+ nodeUUID: z.ZodUUID;
2884
2897
  subdomain: z.ZodString;
2885
2898
  }, z.core.$strip>;
2886
2899
  query: z.ZodOptional<z.ZodNever>;
@@ -570,6 +570,10 @@ export const zVersionUuid = z.uuid();
570
570
  * Optional version UUID to exclude from the environment versions response.
571
571
  */
572
572
  export const zExcludeVersionUuidQuery = z.uuid();
573
+ /**
574
+ * A list of statuses.
575
+ */
576
+ export const zDeploymentStatusesQuery = z.array(zDeploymentStatus);
573
577
  /**
574
578
  * Optional version status to filter the environment versions response.
575
579
  */
@@ -1065,7 +1069,7 @@ export const zGetEnvironmentVersionsData = z.object({
1065
1069
  query: z.optional(z.object({
1066
1070
  page: z.optional(z.int().gte(1)).default(1),
1067
1071
  limit: z.optional(z.int().gte(1).lte(100)).default(10),
1068
- status: z.optional(zDeploymentStatus)
1072
+ statuses: z.optional(z.array(zDeploymentStatus))
1069
1073
  }))
1070
1074
  });
1071
1075
  /**
@@ -1190,6 +1194,7 @@ export const zCheckSubdomainUniquenessData = z.object({
1190
1194
  projectHandle: z.string(),
1191
1195
  environmentHandle: z.string(),
1192
1196
  version: z.string(),
1197
+ nodeUUID: z.uuid(),
1193
1198
  subdomain: z.string()
1194
1199
  }),
1195
1200
  query: z.optional(z.never())
@@ -987,7 +987,7 @@ export const useRequestSignedUploadUrl = (config) => {
987
987
  export const useCheckSubdomainUniqueness = (options) => {
988
988
  const token = useToken();
989
989
  let { enabled, ...rest } = options || { enabled: true };
990
- const opts = { throwOnError: true, url: "/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/check-subdomain/{subdomain}" };
990
+ const opts = { throwOnError: true, url: "/auth/{spaceHandle}/{projectHandle}/{environmentHandle}/{version}/graph/{nodeUUID}/check-subdomain/{subdomain}" };
991
991
  const funcer = async () => {
992
992
  const auth = isPromise(token) ? (await token) || "" : token || "";
993
993
  if (isPromise(token) && !token)
@@ -998,7 +998,7 @@ export const useCheckSubdomainUniqueness = (options) => {
998
998
  if (!token)
999
999
  enabled = false;
1000
1000
  return useQuery({
1001
- queryKey: [options?.path?.spaceHandle, options?.path?.projectHandle, options?.path?.environmentHandle, options?.path?.version, "graph", "check-subdomain", options?.path?.subdomain, options.query ?? {}],
1001
+ queryKey: [options?.path?.spaceHandle, options?.path?.projectHandle, options?.path?.environmentHandle, options?.path?.version, "graph", options?.path?.nodeUUID, "check-subdomain", options?.path?.subdomain, options.query ?? {}],
1002
1002
  queryFn: funcer,
1003
1003
  enabled,
1004
1004
  retry: false,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoal-web-sdk",
3
- "version": "0.0.174",
3
+ "version": "0.0.176",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build-hooks": "npx tsx tanstack-codegen/generator.ts",