@seamapi/http
Advanced tools
Comparing version 1.11.1 to 1.12.0
@@ -30,2 +30,3 @@ import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect'; | ||
setFanMode(body?: ThermostatsSetFanModeBody, options?: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>): SeamHttpRequest<ThermostatsSetFanModeResponse, 'action_attempt'>; | ||
setTemperatureThreshold(body?: ThermostatsSetTemperatureThresholdBody): SeamHttpRequest<void, undefined>; | ||
updateClimatePreset(body?: ThermostatsUpdateClimatePresetBody): SeamHttpRequest<void, undefined>; | ||
@@ -66,4 +67,7 @@ } | ||
export type ThermostatsSetFanModeOptions = Pick<SeamHttpRequestOptions, 'waitForActionAttempt'>; | ||
export type ThermostatsSetTemperatureThresholdBody = RouteRequestBody<'/thermostats/set_temperature_threshold'>; | ||
export type ThermostatsSetTemperatureThresholdResponse = SetNonNullable<Required<RouteResponse<'/thermostats/set_temperature_threshold'>>>; | ||
export type ThermostatsSetTemperatureThresholdOptions = never; | ||
export type ThermostatsUpdateClimatePresetBody = RouteRequestBody<'/thermostats/update_climate_preset'>; | ||
export type ThermostatsUpdateClimatePresetResponse = SetNonNullable<Required<RouteResponse<'/thermostats/update_climate_preset'>>>; | ||
export type ThermostatsUpdateClimatePresetOptions = never; |
@@ -177,2 +177,10 @@ /* | ||
} | ||
setTemperatureThreshold(body) { | ||
return new SeamHttpRequest(this, { | ||
path: '/thermostats/set_temperature_threshold', | ||
method: 'post', | ||
body, | ||
responseKey: undefined, | ||
}); | ||
} | ||
updateClimatePreset(body) { | ||
@@ -179,0 +187,0 @@ return new SeamHttpRequest(this, { |
@@ -1,2 +0,2 @@ | ||
declare const seamapiJavascriptHttpVersion = "1.11.1"; | ||
declare const seamapiJavascriptHttpVersion = "1.12.0"; | ||
export default seamapiJavascriptHttpVersion; |
@@ -1,3 +0,3 @@ | ||
const seamapiJavascriptHttpVersion = '1.11.1'; | ||
const seamapiJavascriptHttpVersion = '1.12.0'; | ||
export default seamapiJavascriptHttpVersion; | ||
//# sourceMappingURL=version.js.map |
{ | ||
"name": "@seamapi/http", | ||
"version": "1.11.1", | ||
"version": "1.12.0", | ||
"description": "JavaScript HTTP client for the Seam API written in TypeScript.", | ||
@@ -87,3 +87,3 @@ "type": "module", | ||
"peerDependencies": { | ||
"@seamapi/types": "^1.264.2" | ||
"@seamapi/types": "^1.275.0" | ||
}, | ||
@@ -103,3 +103,3 @@ "peerDependenciesMeta": { | ||
"@seamapi/fake-seam-connect": "1.71.0", | ||
"@seamapi/types": "1.264.2", | ||
"@seamapi/types": "1.275.0", | ||
"@types/eslint": "^8.44.2", | ||
@@ -106,0 +106,0 @@ "@types/node": "^20.8.10", |
@@ -298,2 +298,13 @@ /* | ||
setTemperatureThreshold( | ||
body?: ThermostatsSetTemperatureThresholdBody, | ||
): SeamHttpRequest<void, undefined> { | ||
return new SeamHttpRequest(this, { | ||
path: '/thermostats/set_temperature_threshold', | ||
method: 'post', | ||
body, | ||
responseKey: undefined, | ||
}) | ||
} | ||
updateClimatePreset( | ||
@@ -422,2 +433,11 @@ body?: ThermostatsUpdateClimatePresetBody, | ||
export type ThermostatsSetTemperatureThresholdBody = | ||
RouteRequestBody<'/thermostats/set_temperature_threshold'> | ||
export type ThermostatsSetTemperatureThresholdResponse = SetNonNullable< | ||
Required<RouteResponse<'/thermostats/set_temperature_threshold'>> | ||
> | ||
export type ThermostatsSetTemperatureThresholdOptions = never | ||
export type ThermostatsUpdateClimatePresetBody = | ||
@@ -424,0 +444,0 @@ RouteRequestBody<'/thermostats/update_climate_preset'> |
@@ -1,3 +0,3 @@ | ||
const seamapiJavascriptHttpVersion = '1.11.1' | ||
const seamapiJavascriptHttpVersion = '1.12.0' | ||
export default seamapiJavascriptHttpVersion |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
1887077
22995