@seamapi/http 1.14.0 → 1.16.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.
@@ -295,6 +295,19 @@ export class SeamHttpThermostats {
295
295
  })
296
296
  }
297
297
 
298
+ setHvacMode(
299
+ body?: ThermostatsSetHvacModeBody,
300
+ options: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'> = {},
301
+ ): SeamHttpRequest<ThermostatsSetHvacModeResponse, 'action_attempt'> {
302
+ return new SeamHttpRequest(this, {
303
+ path: '/thermostats/set_hvac_mode',
304
+ method: 'post',
305
+ body,
306
+ responseKey: 'action_attempt',
307
+ options,
308
+ })
309
+ }
310
+
298
311
  setTemperatureThreshold(
299
312
  body?: ThermostatsSetTemperatureThresholdBody,
300
313
  ): SeamHttpRequest<void, undefined> {
@@ -429,6 +442,18 @@ export type ThermostatsSetFanModeOptions = Pick<
429
442
  'waitForActionAttempt'
430
443
  >
431
444
 
445
+ export type ThermostatsSetHvacModeBody =
446
+ RouteRequestBody<'/thermostats/set_hvac_mode'>
447
+
448
+ export type ThermostatsSetHvacModeResponse = SetNonNullable<
449
+ Required<RouteResponse<'/thermostats/set_hvac_mode'>>
450
+ >
451
+
452
+ export type ThermostatsSetHvacModeOptions = Pick<
453
+ SeamHttpRequestOptions,
454
+ 'waitForActionAttempt'
455
+ >
456
+
432
457
  export type ThermostatsSetTemperatureThresholdBody =
433
458
  RouteRequestBody<'/thermostats/set_temperature_threshold'>
434
459
 
@@ -1,3 +1,3 @@
1
- const seamapiJavascriptHttpVersion = '1.14.0'
1
+ const seamapiJavascriptHttpVersion = '1.16.0'
2
2
 
3
3
  export default seamapiJavascriptHttpVersion