@seamapi/http 1.43.0 → 1.45.0

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.
@@ -232,6 +232,19 @@ export class SeamHttpSpaces {
232
232
  })
233
233
  }
234
234
 
235
+ getRelated(
236
+ parameters?: SpacesGetRelatedParameters,
237
+ options: SpacesGetRelatedOptions = {},
238
+ ): SpacesGetRelatedRequest {
239
+ return new SeamHttpRequest(this, {
240
+ pathname: '/spaces/get_related',
241
+ method: 'POST',
242
+ body: parameters,
243
+ responseKey: 'batch',
244
+ options,
245
+ })
246
+ }
247
+
235
248
  list(
236
249
  parameters?: SpacesListParameters,
237
250
  options: SpacesListOptions = {},
@@ -381,6 +394,28 @@ export type SpacesGetRequest = SeamHttpRequest<SpacesGetResponse, 'space'>
381
394
  // eslint-disable-next-line @typescript-eslint/no-empty-interface
382
395
  export interface SpacesGetOptions {}
383
396
 
397
+ export type SpacesGetRelatedParameters = RouteRequestBody<'/spaces/get_related'>
398
+
399
+ /**
400
+ * @deprecated Use SpacesGetRelatedParameters instead.
401
+ */
402
+ export type SpacesGetRelatedParams = SpacesGetRelatedParameters
403
+
404
+ /**
405
+ * @deprecated Use SpacesGetRelatedRequest instead.
406
+ */
407
+ export type SpacesGetRelatedResponse = SetNonNullable<
408
+ Required<RouteResponse<'/spaces/get_related'>>
409
+ >
410
+
411
+ export type SpacesGetRelatedRequest = SeamHttpRequest<
412
+ SpacesGetRelatedResponse,
413
+ 'batch'
414
+ >
415
+
416
+ // eslint-disable-next-line @typescript-eslint/no-empty-interface
417
+ export interface SpacesGetRelatedOptions {}
418
+
384
419
  export type SpacesListParameters = RouteRequestParams<'/spaces/list'>
385
420
 
386
421
  /**
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '1.43.0'
1
+ const seamapiJavascriptHttpVersion = '1.45.0'
2
2
 
3
3
  export default seamapiJavascriptHttpVersion