@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.
- package/dist/connect.cjs +17 -0
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +201 -37
- package/lib/seam/connect/resolve-action-attempt.d.ts +256 -48
- package/lib/seam/connect/routes/acs-credentials.d.ts +4 -0
- package/lib/seam/connect/routes/acs-credentials.js +8 -0
- package/lib/seam/connect/routes/acs-credentials.js.map +1 -1
- package/lib/seam/connect/routes/thermostats.d.ts +4 -0
- package/lib/seam/connect/routes/thermostats.js +9 -0
- package/lib/seam/connect/routes/thermostats.js.map +1 -1
- package/lib/version.d.ts +1 -1
- package/lib/version.js +1 -1
- package/package.json +7 -7
- package/src/lib/seam/connect/routes/acs-credentials.ts +23 -0
- package/src/lib/seam/connect/routes/thermostats.ts +25 -0
- package/src/lib/version.ts +1 -1
|
@@ -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
|
|
package/src/lib/version.ts
CHANGED