shoal-web-sdk 1.0.69 → 1.0.71

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.
@@ -1527,7 +1527,7 @@ export declare const getProjectEnvironmentsQueryKey: (options: Options<GetProjec
1527
1527
  tags?: ReadonlyArray<string>;
1528
1528
  }];
1529
1529
  /**
1530
- * Get paginated environments for a project, ordered with active environments first and soft deleted environments last.
1530
+ * Get paginated environments for a project, optionally filtered by status and searched by name or handle, ordered with active environments first and soft deleted environments last.
1531
1531
  */
1532
1532
  export declare const getProjectEnvironmentsOptions: (options: Options<GetProjectEnvironmentsData>) => import("@tanstack/react-query").OmitKeyof<import("@tanstack/react-query").UseQueryOptions<import("../types.gen").PaginatedEnvironments, Error, import("../types.gen").PaginatedEnvironments, [Pick<Options<GetProjectEnvironmentsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
1533
1533
  _id: string;
@@ -1551,7 +1551,7 @@ export declare const getProjectEnvironmentsOptions: (options: Options<GetProject
1551
1551
  };
1552
1552
  export declare const getProjectEnvironmentsInfiniteQueryKey: (options: Options<GetProjectEnvironmentsData>) => QueryKey<Options<GetProjectEnvironmentsData>>;
1553
1553
  /**
1554
- * Get paginated environments for a project, ordered with active environments first and soft deleted environments last.
1554
+ * Get paginated environments for a project, optionally filtered by status and searched by name or handle, ordered with active environments first and soft deleted environments last.
1555
1555
  */
1556
1556
  export declare const getProjectEnvironmentsInfiniteOptions: (options: Options<GetProjectEnvironmentsData>) => import("@tanstack/react-query").UseInfiniteQueryOptions<import("../types.gen").PaginatedEnvironments, import("../types.gen").ErrorResponse, InfiniteData<import("../types.gen").PaginatedEnvironments, unknown>, QueryKey<Options<GetProjectEnvironmentsData>>, number | Pick<Pick<Options<GetProjectEnvironmentsData>, "query" | "body" | "headers" | "path" | "baseUrl"> & {
1557
1557
  _id: string;
@@ -1517,7 +1517,7 @@ export const getProjectOverviewOptions = (options) => {
1517
1517
  };
1518
1518
  export const getProjectEnvironmentsQueryKey = (options) => createQueryKey('getProjectEnvironments', options);
1519
1519
  /**
1520
- * Get paginated environments for a project, ordered with active environments first and soft deleted environments last.
1520
+ * Get paginated environments for a project, optionally filtered by status and searched by name or handle, ordered with active environments first and soft deleted environments last.
1521
1521
  */
1522
1522
  export const getProjectEnvironmentsOptions = (options) => {
1523
1523
  return queryOptions({
@@ -1535,7 +1535,7 @@ export const getProjectEnvironmentsOptions = (options) => {
1535
1535
  };
1536
1536
  export const getProjectEnvironmentsInfiniteQueryKey = (options) => createQueryKey('getProjectEnvironments', options, true);
1537
1537
  /**
1538
- * Get paginated environments for a project, ordered with active environments first and soft deleted environments last.
1538
+ * Get paginated environments for a project, optionally filtered by status and searched by name or handle, ordered with active environments first and soft deleted environments last.
1539
1539
  */
1540
1540
  export const getProjectEnvironmentsInfiniteOptions = (options) => {
1541
1541
  return infiniteQueryOptions(
@@ -279,7 +279,7 @@ export declare const createProject: <ThrowOnError extends boolean = false>(optio
279
279
  */
280
280
  export declare const getProjectOverview: <ThrowOnError extends boolean = false>(options: Options<GetProjectOverviewData, ThrowOnError>) => import("./client").RequestResult<GetProjectOverviewResponses, GetProjectOverviewErrors, ThrowOnError, "fields">;
281
281
  /**
282
- * Get paginated environments for a project, ordered with active environments first and soft deleted environments last.
282
+ * Get paginated environments for a project, optionally filtered by status and searched by name or handle, ordered with active environments first and soft deleted environments last.
283
283
  */
284
284
  export declare const getProjectEnvironments: <ThrowOnError extends boolean = false>(options: Options<GetProjectEnvironmentsData, ThrowOnError>) => import("./client").RequestResult<GetProjectEnvironmentsResponses, GetProjectEnvironmentsErrors, ThrowOnError, "fields">;
285
285
  /**
@@ -1354,7 +1354,7 @@ export const getProjectOverview = (options) => {
1354
1354
  });
1355
1355
  };
1356
1356
  /**
1357
- * Get paginated environments for a project, ordered with active environments first and soft deleted environments last.
1357
+ * Get paginated environments for a project, optionally filtered by status and searched by name or handle, ordered with active environments first and soft deleted environments last.
1358
1358
  */
1359
1359
  export const getProjectEnvironments = (options) => {
1360
1360
  return (options.client ?? client).get({
@@ -340,6 +340,10 @@ export type EnvironmentOverview = {
340
340
  * True when this environment has been deleted and is pending purge. It keeps its handle while in this state, so creating or cloning onto the handle must either restore it or destroy it first.
341
341
  */
342
342
  softDelete?: boolean;
343
+ /**
344
+ * When this environment is due to be purged. Only present while softDelete is true.
345
+ */
346
+ scheduleDeleteAt?: string;
343
347
  };
344
348
  export type AccountIdentity = {
345
349
  id: string;
@@ -914,6 +918,10 @@ export type PlanPriceResponse = {
914
918
  */
915
919
  interval: string;
916
920
  };
921
+ /**
922
+ * The lifecycle state of an environment. `active` covers environments that are not soft deleted, `inactive` covers soft deleted environments pending purge, and `all` covers both.
923
+ */
924
+ export type EnvironmentStatus = 'active' | 'inactive' | 'all';
917
925
  export type DeploymentStatus = 'pending' | 'prebuilding' | 'building' | 'deploying' | 'configuring' | 'succeeded' | 'failed';
918
926
  export type DeploymentStatusInformation = {
919
927
  status?: DeploymentStatus;
@@ -1151,6 +1159,10 @@ export type Search = string;
1151
1159
  * The order results will appear in.
1152
1160
  */
1153
1161
  export type Order = 'asc' | 'desc';
1162
+ /**
1163
+ * Filter environments by lifecycle state.
1164
+ */
1165
+ export type EnvironmentStatusQuery = EnvironmentStatus;
1154
1166
  /**
1155
1167
  * Page number (1-based).
1156
1168
  */
@@ -3983,6 +3995,14 @@ export type GetProjectEnvironmentsData = {
3983
3995
  projectHandle: string;
3984
3996
  };
3985
3997
  query?: {
3998
+ /**
3999
+ * Filter environments by lifecycle state.
4000
+ */
4001
+ status?: EnvironmentStatus;
4002
+ /**
4003
+ * Search value for a searchable field on an endpoint.
4004
+ */
4005
+ search?: string;
3986
4006
  /**
3987
4007
  * Page number (1-based).
3988
4008
  */
@@ -384,6 +384,7 @@ export declare const zEnvironmentOverview: z.ZodObject<{
384
384
  versions: z.ZodInt;
385
385
  blueprintId: z.ZodOptional<z.ZodUUID>;
386
386
  softDelete: z.ZodOptional<z.ZodBoolean>;
387
+ scheduleDeleteAt: z.ZodOptional<z.ZodISODateTime>;
387
388
  }, z.core.$strip>;
388
389
  export declare const zPaginatedEnvironments: z.ZodIntersection<z.ZodObject<{
389
390
  page: z.ZodInt;
@@ -400,6 +401,7 @@ export declare const zPaginatedEnvironments: z.ZodIntersection<z.ZodObject<{
400
401
  versions: z.ZodInt;
401
402
  blueprintId: z.ZodOptional<z.ZodUUID>;
402
403
  softDelete: z.ZodOptional<z.ZodBoolean>;
404
+ scheduleDeleteAt: z.ZodOptional<z.ZodISODateTime>;
403
405
  }, z.core.$strip>>;
404
406
  }, z.core.$strip>>;
405
407
  export declare const zAccountIdentity: z.ZodObject<{
@@ -2025,6 +2027,14 @@ export declare const zPlanPriceResponse: z.ZodObject<{
2025
2027
  currency: z.ZodString;
2026
2028
  interval: z.ZodString;
2027
2029
  }, z.core.$strip>;
2030
+ /**
2031
+ * The lifecycle state of an environment. `active` covers environments that are not soft deleted, `inactive` covers soft deleted environments pending purge, and `all` covers both.
2032
+ */
2033
+ export declare const zEnvironmentStatus: z.ZodEnum<{
2034
+ active: "active";
2035
+ inactive: "inactive";
2036
+ all: "all";
2037
+ }>;
2028
2038
  export declare const zDeploymentStatus: z.ZodEnum<{
2029
2039
  pending: "pending";
2030
2040
  prebuilding: "prebuilding";
@@ -2400,6 +2410,14 @@ export declare const zOrder: z.ZodEnum<{
2400
2410
  asc: "asc";
2401
2411
  desc: "desc";
2402
2412
  }>;
2413
+ /**
2414
+ * Filter environments by lifecycle state.
2415
+ */
2416
+ export declare const zEnvironmentStatusQuery: z.ZodEnum<{
2417
+ active: "active";
2418
+ inactive: "inactive";
2419
+ all: "all";
2420
+ }>;
2403
2421
  /**
2404
2422
  * Page number (1-based).
2405
2423
  */
@@ -5158,6 +5176,12 @@ export declare const zGetProjectEnvironmentsData: z.ZodObject<{
5158
5176
  projectHandle: z.ZodString;
5159
5177
  }, z.core.$strip>;
5160
5178
  query: z.ZodOptional<z.ZodObject<{
5179
+ status: z.ZodOptional<z.ZodEnum<{
5180
+ active: "active";
5181
+ inactive: "inactive";
5182
+ all: "all";
5183
+ }>>;
5184
+ search: z.ZodOptional<z.ZodString>;
5161
5185
  page: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
5162
5186
  limit: z.ZodDefault<z.ZodOptional<z.ZodInt>>;
5163
5187
  }, z.core.$strip>>;
@@ -5180,6 +5204,7 @@ export declare const zGetProjectEnvironmentsResponse: z.ZodIntersection<z.ZodObj
5180
5204
  versions: z.ZodInt;
5181
5205
  blueprintId: z.ZodOptional<z.ZodUUID>;
5182
5206
  softDelete: z.ZodOptional<z.ZodBoolean>;
5207
+ scheduleDeleteAt: z.ZodOptional<z.ZodISODateTime>;
5183
5208
  }, z.core.$strip>>;
5184
5209
  }, z.core.$strip>>;
5185
5210
  export declare const zCreateEnvironmentData: z.ZodObject<{
@@ -5208,6 +5233,7 @@ export declare const zCreateEnvironmentResponse: z.ZodObject<{
5208
5233
  versions: z.ZodInt;
5209
5234
  blueprintId: z.ZodOptional<z.ZodUUID>;
5210
5235
  softDelete: z.ZodOptional<z.ZodBoolean>;
5236
+ scheduleDeleteAt: z.ZodOptional<z.ZodISODateTime>;
5211
5237
  }, z.core.$strip>;
5212
5238
  export declare const zCreateSecretData: z.ZodObject<{
5213
5239
  body: z.ZodObject<{
@@ -5282,6 +5308,7 @@ export declare const zGetEnvironmentOverviewResponse: z.ZodObject<{
5282
5308
  versions: z.ZodInt;
5283
5309
  blueprintId: z.ZodOptional<z.ZodUUID>;
5284
5310
  softDelete: z.ZodOptional<z.ZodBoolean>;
5311
+ scheduleDeleteAt: z.ZodOptional<z.ZodISODateTime>;
5285
5312
  }, z.core.$strip>;
5286
5313
  export declare const zGetEnvironmentVersionsData: z.ZodObject<{
5287
5314
  body: z.ZodOptional<z.ZodNever>;
@@ -5578,6 +5605,7 @@ export declare const zCloneEnvironmentResponse: z.ZodObject<{
5578
5605
  versions: z.ZodInt;
5579
5606
  blueprintId: z.ZodOptional<z.ZodUUID>;
5580
5607
  softDelete: z.ZodOptional<z.ZodBoolean>;
5608
+ scheduleDeleteAt: z.ZodOptional<z.ZodISODateTime>;
5581
5609
  }, z.core.$strip>;
5582
5610
  export declare const zGetGraphOverviewData: z.ZodObject<{
5583
5611
  body: z.ZodOptional<z.ZodNever>;
@@ -285,7 +285,8 @@ export const zEnvironmentOverview = z.object({
285
285
  updatedAt: z.iso.datetime(),
286
286
  versions: z.int(),
287
287
  blueprintId: z.optional(z.uuid()),
288
- softDelete: z.optional(z.boolean())
288
+ softDelete: z.optional(z.boolean()),
289
+ scheduleDeleteAt: z.optional(z.iso.datetime())
289
290
  });
290
291
  export const zPaginatedEnvironments = zPagination.and(z.object({
291
292
  environments: z.array(zEnvironmentOverview)
@@ -830,6 +831,14 @@ export const zPlanPriceResponse = z.object({
830
831
  currency: z.string(),
831
832
  interval: z.string()
832
833
  });
834
+ /**
835
+ * The lifecycle state of an environment. `active` covers environments that are not soft deleted, `inactive` covers soft deleted environments pending purge, and `all` covers both.
836
+ */
837
+ export const zEnvironmentStatus = z.enum([
838
+ 'active',
839
+ 'inactive',
840
+ 'all'
841
+ ]);
833
842
  export const zDeploymentStatus = z.enum([
834
843
  'pending',
835
844
  'prebuilding',
@@ -1101,6 +1110,10 @@ export const zOrder = z.enum([
1101
1110
  'asc',
1102
1111
  'desc'
1103
1112
  ]);
1113
+ /**
1114
+ * Filter environments by lifecycle state.
1115
+ */
1116
+ export const zEnvironmentStatusQuery = zEnvironmentStatus;
1104
1117
  /**
1105
1118
  * Page number (1-based).
1106
1119
  */
@@ -1962,6 +1975,8 @@ export const zGetProjectEnvironmentsData = z.object({
1962
1975
  projectHandle: z.string()
1963
1976
  }),
1964
1977
  query: z.optional(z.object({
1978
+ status: z.optional(zEnvironmentStatus),
1979
+ search: z.optional(z.string()),
1965
1980
  page: z.optional(z.int().gte(1)).default(1),
1966
1981
  limit: z.optional(z.int().gte(1).lte(100)).default(10)
1967
1982
  }))
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shoal-web-sdk",
3
- "version": "1.0.69",
3
+ "version": "1.0.71",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "build-hooks": "npx tsx tanstack-codegen/generator.ts",