@seamapi/http 1.4.0 → 1.6.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 +64 -28
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +189 -34
- package/dist/index.cjs +1 -1
- package/dist/index.cjs.map +1 -1
- package/lib/seam/connect/resolve-action-attempt.d.ts +180 -0
- package/lib/seam/connect/routes/acs-credentials.d.ts +4 -0
- package/lib/seam/connect/routes/acs-credentials.js +9 -0
- package/lib/seam/connect/routes/acs-credentials.js.map +1 -1
- package/lib/seam/connect/routes/index.d.ts +1 -1
- package/lib/seam/connect/routes/index.js +1 -1
- package/lib/seam/connect/routes/index.js.map +1 -1
- package/lib/seam/connect/routes/thermostats-schedules.d.ts +37 -0
- package/lib/seam/connect/routes/{thermostats-climate-setting-schedules.js → thermostats-schedules.js} +16 -16
- package/lib/seam/connect/routes/thermostats-schedules.js.map +1 -0
- package/lib/seam/connect/routes/thermostats.d.ts +22 -6
- package/lib/seam/connect/routes/thermostats.js +38 -5
- 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 +4 -4
- package/src/lib/seam/connect/routes/acs-credentials.ts +25 -0
- package/src/lib/seam/connect/routes/index.ts +1 -1
- package/src/lib/seam/connect/routes/{thermostats-climate-setting-schedules.ts → thermostats-schedules.ts} +55 -64
- package/src/lib/seam/connect/routes/thermostats.ts +100 -12
- package/src/lib/version.ts +1 -1
- package/lib/seam/connect/routes/thermostats-climate-setting-schedules.d.ts +0 -37
- package/lib/seam/connect/routes/thermostats-climate-setting-schedules.js.map +0 -1
|
@@ -35,7 +35,7 @@ import type { SetNonNullable } from 'lib/types.js'
|
|
|
35
35
|
|
|
36
36
|
import { SeamHttpClientSessions } from './client-sessions.js'
|
|
37
37
|
|
|
38
|
-
export class
|
|
38
|
+
export class SeamHttpThermostatsSchedules {
|
|
39
39
|
client: Client
|
|
40
40
|
readonly defaults: Required<SeamHttpRequestOptions>
|
|
41
41
|
|
|
@@ -48,23 +48,23 @@ export class SeamHttpThermostatsClimateSettingSchedules {
|
|
|
48
48
|
static fromClient(
|
|
49
49
|
client: SeamHttpOptionsWithClient['client'],
|
|
50
50
|
options: Omit<SeamHttpOptionsWithClient, 'client'> = {},
|
|
51
|
-
):
|
|
51
|
+
): SeamHttpThermostatsSchedules {
|
|
52
52
|
const constructorOptions = { ...options, client }
|
|
53
53
|
if (!isSeamHttpOptionsWithClient(constructorOptions)) {
|
|
54
54
|
throw new SeamHttpInvalidOptionsError('Missing client')
|
|
55
55
|
}
|
|
56
|
-
return new
|
|
56
|
+
return new SeamHttpThermostatsSchedules(constructorOptions)
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
static fromApiKey(
|
|
60
60
|
apiKey: SeamHttpOptionsWithApiKey['apiKey'],
|
|
61
61
|
options: Omit<SeamHttpOptionsWithApiKey, 'apiKey'> = {},
|
|
62
|
-
):
|
|
62
|
+
): SeamHttpThermostatsSchedules {
|
|
63
63
|
const constructorOptions = { ...options, apiKey }
|
|
64
64
|
if (!isSeamHttpOptionsWithApiKey(constructorOptions)) {
|
|
65
65
|
throw new SeamHttpInvalidOptionsError('Missing apiKey')
|
|
66
66
|
}
|
|
67
|
-
return new
|
|
67
|
+
return new SeamHttpThermostatsSchedules(constructorOptions)
|
|
68
68
|
}
|
|
69
69
|
|
|
70
70
|
static fromClientSessionToken(
|
|
@@ -73,19 +73,19 @@ export class SeamHttpThermostatsClimateSettingSchedules {
|
|
|
73
73
|
SeamHttpOptionsWithClientSessionToken,
|
|
74
74
|
'clientSessionToken'
|
|
75
75
|
> = {},
|
|
76
|
-
):
|
|
76
|
+
): SeamHttpThermostatsSchedules {
|
|
77
77
|
const constructorOptions = { ...options, clientSessionToken }
|
|
78
78
|
if (!isSeamHttpOptionsWithClientSessionToken(constructorOptions)) {
|
|
79
79
|
throw new SeamHttpInvalidOptionsError('Missing clientSessionToken')
|
|
80
80
|
}
|
|
81
|
-
return new
|
|
81
|
+
return new SeamHttpThermostatsSchedules(constructorOptions)
|
|
82
82
|
}
|
|
83
83
|
|
|
84
84
|
static async fromPublishableKey(
|
|
85
85
|
publishableKey: string,
|
|
86
86
|
userIdentifierKey: string,
|
|
87
87
|
options: SeamHttpFromPublishableKeyOptions = {},
|
|
88
|
-
): Promise<
|
|
88
|
+
): Promise<SeamHttpThermostatsSchedules> {
|
|
89
89
|
warnOnInsecureuserIdentifierKey(userIdentifierKey)
|
|
90
90
|
const clientOptions = parseOptions({ ...options, publishableKey })
|
|
91
91
|
if (isSeamHttpOptionsWithClient(clientOptions)) {
|
|
@@ -98,10 +98,7 @@ export class SeamHttpThermostatsClimateSettingSchedules {
|
|
|
98
98
|
const { token } = await clientSessions.getOrCreate({
|
|
99
99
|
user_identifier_key: userIdentifierKey,
|
|
100
100
|
})
|
|
101
|
-
return
|
|
102
|
-
token,
|
|
103
|
-
options,
|
|
104
|
-
)
|
|
101
|
+
return SeamHttpThermostatsSchedules.fromClientSessionToken(token, options)
|
|
105
102
|
}
|
|
106
103
|
|
|
107
104
|
static fromConsoleSessionToken(
|
|
@@ -111,14 +108,14 @@ export class SeamHttpThermostatsClimateSettingSchedules {
|
|
|
111
108
|
SeamHttpOptionsWithConsoleSessionToken,
|
|
112
109
|
'consoleSessionToken' | 'workspaceId'
|
|
113
110
|
> = {},
|
|
114
|
-
):
|
|
111
|
+
): SeamHttpThermostatsSchedules {
|
|
115
112
|
const constructorOptions = { ...options, consoleSessionToken, workspaceId }
|
|
116
113
|
if (!isSeamHttpOptionsWithConsoleSessionToken(constructorOptions)) {
|
|
117
114
|
throw new SeamHttpInvalidOptionsError(
|
|
118
115
|
'Missing consoleSessionToken or workspaceId',
|
|
119
116
|
)
|
|
120
117
|
}
|
|
121
|
-
return new
|
|
118
|
+
return new SeamHttpThermostatsSchedules(constructorOptions)
|
|
122
119
|
}
|
|
123
120
|
|
|
124
121
|
static fromPersonalAccessToken(
|
|
@@ -128,14 +125,14 @@ export class SeamHttpThermostatsClimateSettingSchedules {
|
|
|
128
125
|
SeamHttpOptionsWithPersonalAccessToken,
|
|
129
126
|
'personalAccessToken' | 'workspaceId'
|
|
130
127
|
> = {},
|
|
131
|
-
):
|
|
128
|
+
): SeamHttpThermostatsSchedules {
|
|
132
129
|
const constructorOptions = { ...options, personalAccessToken, workspaceId }
|
|
133
130
|
if (!isSeamHttpOptionsWithPersonalAccessToken(constructorOptions)) {
|
|
134
131
|
throw new SeamHttpInvalidOptionsError(
|
|
135
132
|
'Missing personalAccessToken or workspaceId',
|
|
136
133
|
)
|
|
137
134
|
}
|
|
138
|
-
return new
|
|
135
|
+
return new SeamHttpThermostatsSchedules(constructorOptions)
|
|
139
136
|
}
|
|
140
137
|
|
|
141
138
|
async updateClientSessionToken(
|
|
@@ -158,24 +155,24 @@ export class SeamHttpThermostatsClimateSettingSchedules {
|
|
|
158
155
|
}
|
|
159
156
|
|
|
160
157
|
create(
|
|
161
|
-
body?:
|
|
158
|
+
body?: ThermostatsSchedulesCreateBody,
|
|
162
159
|
): SeamHttpRequest<
|
|
163
|
-
|
|
164
|
-
'
|
|
160
|
+
ThermostatsSchedulesCreateResponse,
|
|
161
|
+
'thermostat_schedule'
|
|
165
162
|
> {
|
|
166
163
|
return new SeamHttpRequest(this, {
|
|
167
|
-
path: '/thermostats/
|
|
164
|
+
path: '/thermostats/schedules/create',
|
|
168
165
|
method: 'post',
|
|
169
166
|
body,
|
|
170
|
-
responseKey: '
|
|
167
|
+
responseKey: 'thermostat_schedule',
|
|
171
168
|
})
|
|
172
169
|
}
|
|
173
170
|
|
|
174
171
|
delete(
|
|
175
|
-
body?:
|
|
172
|
+
body?: ThermostatsSchedulesDeleteParams,
|
|
176
173
|
): SeamHttpRequest<void, undefined> {
|
|
177
174
|
return new SeamHttpRequest(this, {
|
|
178
|
-
path: '/thermostats/
|
|
175
|
+
path: '/thermostats/schedules/delete',
|
|
179
176
|
method: 'post',
|
|
180
177
|
body,
|
|
181
178
|
responseKey: undefined,
|
|
@@ -183,38 +180,32 @@ export class SeamHttpThermostatsClimateSettingSchedules {
|
|
|
183
180
|
}
|
|
184
181
|
|
|
185
182
|
get(
|
|
186
|
-
body?:
|
|
187
|
-
): SeamHttpRequest<
|
|
188
|
-
ThermostatsClimateSettingSchedulesGetResponse,
|
|
189
|
-
'climate_setting_schedule'
|
|
190
|
-
> {
|
|
183
|
+
body?: ThermostatsSchedulesGetParams,
|
|
184
|
+
): SeamHttpRequest<ThermostatsSchedulesGetResponse, 'thermostat_schedule'> {
|
|
191
185
|
return new SeamHttpRequest(this, {
|
|
192
|
-
path: '/thermostats/
|
|
186
|
+
path: '/thermostats/schedules/get',
|
|
193
187
|
method: 'post',
|
|
194
188
|
body,
|
|
195
|
-
responseKey: '
|
|
189
|
+
responseKey: 'thermostat_schedule',
|
|
196
190
|
})
|
|
197
191
|
}
|
|
198
192
|
|
|
199
193
|
list(
|
|
200
|
-
body?:
|
|
201
|
-
): SeamHttpRequest<
|
|
202
|
-
ThermostatsClimateSettingSchedulesListResponse,
|
|
203
|
-
'climate_setting_schedules'
|
|
204
|
-
> {
|
|
194
|
+
body?: ThermostatsSchedulesListParams,
|
|
195
|
+
): SeamHttpRequest<ThermostatsSchedulesListResponse, 'thermostat_schedules'> {
|
|
205
196
|
return new SeamHttpRequest(this, {
|
|
206
|
-
path: '/thermostats/
|
|
197
|
+
path: '/thermostats/schedules/list',
|
|
207
198
|
method: 'post',
|
|
208
199
|
body,
|
|
209
|
-
responseKey: '
|
|
200
|
+
responseKey: 'thermostat_schedules',
|
|
210
201
|
})
|
|
211
202
|
}
|
|
212
203
|
|
|
213
204
|
update(
|
|
214
|
-
body?:
|
|
205
|
+
body?: ThermostatsSchedulesUpdateBody,
|
|
215
206
|
): SeamHttpRequest<void, undefined> {
|
|
216
207
|
return new SeamHttpRequest(this, {
|
|
217
|
-
path: '/thermostats/
|
|
208
|
+
path: '/thermostats/schedules/update',
|
|
218
209
|
method: 'post',
|
|
219
210
|
body,
|
|
220
211
|
responseKey: undefined,
|
|
@@ -222,47 +213,47 @@ export class SeamHttpThermostatsClimateSettingSchedules {
|
|
|
222
213
|
}
|
|
223
214
|
}
|
|
224
215
|
|
|
225
|
-
export type
|
|
226
|
-
RouteRequestBody<'/thermostats/
|
|
216
|
+
export type ThermostatsSchedulesCreateBody =
|
|
217
|
+
RouteRequestBody<'/thermostats/schedules/create'>
|
|
227
218
|
|
|
228
|
-
export type
|
|
229
|
-
Required<RouteResponse<'/thermostats/
|
|
219
|
+
export type ThermostatsSchedulesCreateResponse = SetNonNullable<
|
|
220
|
+
Required<RouteResponse<'/thermostats/schedules/create'>>
|
|
230
221
|
>
|
|
231
222
|
|
|
232
|
-
export type
|
|
223
|
+
export type ThermostatsSchedulesCreateOptions = never
|
|
233
224
|
|
|
234
|
-
export type
|
|
235
|
-
RouteRequestBody<'/thermostats/
|
|
225
|
+
export type ThermostatsSchedulesDeleteParams =
|
|
226
|
+
RouteRequestBody<'/thermostats/schedules/delete'>
|
|
236
227
|
|
|
237
|
-
export type
|
|
238
|
-
Required<RouteResponse<'/thermostats/
|
|
228
|
+
export type ThermostatsSchedulesDeleteResponse = SetNonNullable<
|
|
229
|
+
Required<RouteResponse<'/thermostats/schedules/delete'>>
|
|
239
230
|
>
|
|
240
231
|
|
|
241
|
-
export type
|
|
232
|
+
export type ThermostatsSchedulesDeleteOptions = never
|
|
242
233
|
|
|
243
|
-
export type
|
|
244
|
-
RouteRequestBody<'/thermostats/
|
|
234
|
+
export type ThermostatsSchedulesGetParams =
|
|
235
|
+
RouteRequestBody<'/thermostats/schedules/get'>
|
|
245
236
|
|
|
246
|
-
export type
|
|
247
|
-
Required<RouteResponse<'/thermostats/
|
|
237
|
+
export type ThermostatsSchedulesGetResponse = SetNonNullable<
|
|
238
|
+
Required<RouteResponse<'/thermostats/schedules/get'>>
|
|
248
239
|
>
|
|
249
240
|
|
|
250
|
-
export type
|
|
241
|
+
export type ThermostatsSchedulesGetOptions = never
|
|
251
242
|
|
|
252
|
-
export type
|
|
253
|
-
RouteRequestBody<'/thermostats/
|
|
243
|
+
export type ThermostatsSchedulesListParams =
|
|
244
|
+
RouteRequestBody<'/thermostats/schedules/list'>
|
|
254
245
|
|
|
255
|
-
export type
|
|
256
|
-
Required<RouteResponse<'/thermostats/
|
|
246
|
+
export type ThermostatsSchedulesListResponse = SetNonNullable<
|
|
247
|
+
Required<RouteResponse<'/thermostats/schedules/list'>>
|
|
257
248
|
>
|
|
258
249
|
|
|
259
|
-
export type
|
|
250
|
+
export type ThermostatsSchedulesListOptions = never
|
|
260
251
|
|
|
261
|
-
export type
|
|
262
|
-
RouteRequestBody<'/thermostats/
|
|
252
|
+
export type ThermostatsSchedulesUpdateBody =
|
|
253
|
+
RouteRequestBody<'/thermostats/schedules/update'>
|
|
263
254
|
|
|
264
|
-
export type
|
|
265
|
-
Required<RouteResponse<'/thermostats/
|
|
255
|
+
export type ThermostatsSchedulesUpdateResponse = SetNonNullable<
|
|
256
|
+
Required<RouteResponse<'/thermostats/schedules/update'>>
|
|
266
257
|
>
|
|
267
258
|
|
|
268
|
-
export type
|
|
259
|
+
export type ThermostatsSchedulesUpdateOptions = never
|
|
@@ -34,7 +34,7 @@ import { SeamHttpRequest } from 'lib/seam/connect/seam-http-request.js'
|
|
|
34
34
|
import type { SetNonNullable } from 'lib/types.js'
|
|
35
35
|
|
|
36
36
|
import { SeamHttpClientSessions } from './client-sessions.js'
|
|
37
|
-
import {
|
|
37
|
+
import { SeamHttpThermostatsSchedules } from './thermostats-schedules.js'
|
|
38
38
|
|
|
39
39
|
export class SeamHttpThermostats {
|
|
40
40
|
client: Client
|
|
@@ -155,11 +155,24 @@ export class SeamHttpThermostats {
|
|
|
155
155
|
await clientSessions.get()
|
|
156
156
|
}
|
|
157
157
|
|
|
158
|
-
get
|
|
159
|
-
return
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
158
|
+
get schedules(): SeamHttpThermostatsSchedules {
|
|
159
|
+
return SeamHttpThermostatsSchedules.fromClient(this.client, this.defaults)
|
|
160
|
+
}
|
|
161
|
+
|
|
162
|
+
activateClimatePreset(
|
|
163
|
+
body?: ThermostatsActivateClimatePresetBody,
|
|
164
|
+
options: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'> = {},
|
|
165
|
+
): SeamHttpRequest<
|
|
166
|
+
ThermostatsActivateClimatePresetResponse,
|
|
167
|
+
'action_attempt'
|
|
168
|
+
> {
|
|
169
|
+
return new SeamHttpRequest(this, {
|
|
170
|
+
path: '/thermostats/activate_climate_preset',
|
|
171
|
+
method: 'post',
|
|
172
|
+
body,
|
|
173
|
+
responseKey: 'action_attempt',
|
|
174
|
+
options,
|
|
175
|
+
})
|
|
163
176
|
}
|
|
164
177
|
|
|
165
178
|
cool(
|
|
@@ -175,6 +188,28 @@ export class SeamHttpThermostats {
|
|
|
175
188
|
})
|
|
176
189
|
}
|
|
177
190
|
|
|
191
|
+
createClimatePreset(
|
|
192
|
+
body?: ThermostatsCreateClimatePresetBody,
|
|
193
|
+
): SeamHttpRequest<ThermostatsCreateClimatePresetResponse, 'climate_preset'> {
|
|
194
|
+
return new SeamHttpRequest(this, {
|
|
195
|
+
path: '/thermostats/create_climate_preset',
|
|
196
|
+
method: 'post',
|
|
197
|
+
body,
|
|
198
|
+
responseKey: 'climate_preset',
|
|
199
|
+
})
|
|
200
|
+
}
|
|
201
|
+
|
|
202
|
+
deleteClimatePreset(
|
|
203
|
+
body?: ThermostatsDeleteClimatePresetBody,
|
|
204
|
+
): SeamHttpRequest<void, undefined> {
|
|
205
|
+
return new SeamHttpRequest(this, {
|
|
206
|
+
path: '/thermostats/delete_climate_preset',
|
|
207
|
+
method: 'post',
|
|
208
|
+
body,
|
|
209
|
+
responseKey: undefined,
|
|
210
|
+
})
|
|
211
|
+
}
|
|
212
|
+
|
|
178
213
|
get(
|
|
179
214
|
body?: ThermostatsGetParams,
|
|
180
215
|
): SeamHttpRequest<ThermostatsGetResponse, 'thermostat'> {
|
|
@@ -236,6 +271,17 @@ export class SeamHttpThermostats {
|
|
|
236
271
|
})
|
|
237
272
|
}
|
|
238
273
|
|
|
274
|
+
setFallbackClimatePreset(
|
|
275
|
+
body?: ThermostatsSetFallbackClimatePresetBody,
|
|
276
|
+
): SeamHttpRequest<void, undefined> {
|
|
277
|
+
return new SeamHttpRequest(this, {
|
|
278
|
+
path: '/thermostats/set_fallback_climate_preset',
|
|
279
|
+
method: 'post',
|
|
280
|
+
body,
|
|
281
|
+
responseKey: undefined,
|
|
282
|
+
})
|
|
283
|
+
}
|
|
284
|
+
|
|
239
285
|
setFanMode(
|
|
240
286
|
body?: ThermostatsSetFanModeBody,
|
|
241
287
|
options: Pick<SeamHttpRequestOptions, 'waitForActionAttempt'> = {},
|
|
@@ -249,9 +295,11 @@ export class SeamHttpThermostats {
|
|
|
249
295
|
})
|
|
250
296
|
}
|
|
251
297
|
|
|
252
|
-
|
|
298
|
+
updateClimatePreset(
|
|
299
|
+
body?: ThermostatsUpdateClimatePresetBody,
|
|
300
|
+
): SeamHttpRequest<void, undefined> {
|
|
253
301
|
return new SeamHttpRequest(this, {
|
|
254
|
-
path: '/thermostats/
|
|
302
|
+
path: '/thermostats/update_climate_preset',
|
|
255
303
|
method: 'post',
|
|
256
304
|
body,
|
|
257
305
|
responseKey: undefined,
|
|
@@ -259,6 +307,18 @@ export class SeamHttpThermostats {
|
|
|
259
307
|
}
|
|
260
308
|
}
|
|
261
309
|
|
|
310
|
+
export type ThermostatsActivateClimatePresetBody =
|
|
311
|
+
RouteRequestBody<'/thermostats/activate_climate_preset'>
|
|
312
|
+
|
|
313
|
+
export type ThermostatsActivateClimatePresetResponse = SetNonNullable<
|
|
314
|
+
Required<RouteResponse<'/thermostats/activate_climate_preset'>>
|
|
315
|
+
>
|
|
316
|
+
|
|
317
|
+
export type ThermostatsActivateClimatePresetOptions = Pick<
|
|
318
|
+
SeamHttpRequestOptions,
|
|
319
|
+
'waitForActionAttempt'
|
|
320
|
+
>
|
|
321
|
+
|
|
262
322
|
export type ThermostatsCoolBody = RouteRequestBody<'/thermostats/cool'>
|
|
263
323
|
|
|
264
324
|
export type ThermostatsCoolResponse = SetNonNullable<
|
|
@@ -270,6 +330,24 @@ export type ThermostatsCoolOptions = Pick<
|
|
|
270
330
|
'waitForActionAttempt'
|
|
271
331
|
>
|
|
272
332
|
|
|
333
|
+
export type ThermostatsCreateClimatePresetBody =
|
|
334
|
+
RouteRequestBody<'/thermostats/create_climate_preset'>
|
|
335
|
+
|
|
336
|
+
export type ThermostatsCreateClimatePresetResponse = SetNonNullable<
|
|
337
|
+
Required<RouteResponse<'/thermostats/create_climate_preset'>>
|
|
338
|
+
>
|
|
339
|
+
|
|
340
|
+
export type ThermostatsCreateClimatePresetOptions = never
|
|
341
|
+
|
|
342
|
+
export type ThermostatsDeleteClimatePresetBody =
|
|
343
|
+
RouteRequestBody<'/thermostats/delete_climate_preset'>
|
|
344
|
+
|
|
345
|
+
export type ThermostatsDeleteClimatePresetResponse = SetNonNullable<
|
|
346
|
+
Required<RouteResponse<'/thermostats/delete_climate_preset'>>
|
|
347
|
+
>
|
|
348
|
+
|
|
349
|
+
export type ThermostatsDeleteClimatePresetOptions = never
|
|
350
|
+
|
|
273
351
|
export type ThermostatsGetParams = RouteRequestBody<'/thermostats/get'>
|
|
274
352
|
|
|
275
353
|
export type ThermostatsGetResponse = SetNonNullable<
|
|
@@ -319,6 +397,15 @@ export type ThermostatsOffOptions = Pick<
|
|
|
319
397
|
'waitForActionAttempt'
|
|
320
398
|
>
|
|
321
399
|
|
|
400
|
+
export type ThermostatsSetFallbackClimatePresetBody =
|
|
401
|
+
RouteRequestBody<'/thermostats/set_fallback_climate_preset'>
|
|
402
|
+
|
|
403
|
+
export type ThermostatsSetFallbackClimatePresetResponse = SetNonNullable<
|
|
404
|
+
Required<RouteResponse<'/thermostats/set_fallback_climate_preset'>>
|
|
405
|
+
>
|
|
406
|
+
|
|
407
|
+
export type ThermostatsSetFallbackClimatePresetOptions = never
|
|
408
|
+
|
|
322
409
|
export type ThermostatsSetFanModeBody =
|
|
323
410
|
RouteRequestBody<'/thermostats/set_fan_mode'>
|
|
324
411
|
|
|
@@ -331,10 +418,11 @@ export type ThermostatsSetFanModeOptions = Pick<
|
|
|
331
418
|
'waitForActionAttempt'
|
|
332
419
|
>
|
|
333
420
|
|
|
334
|
-
export type
|
|
421
|
+
export type ThermostatsUpdateClimatePresetBody =
|
|
422
|
+
RouteRequestBody<'/thermostats/update_climate_preset'>
|
|
335
423
|
|
|
336
|
-
export type
|
|
337
|
-
Required<RouteResponse<'/thermostats/
|
|
424
|
+
export type ThermostatsUpdateClimatePresetResponse = SetNonNullable<
|
|
425
|
+
Required<RouteResponse<'/thermostats/update_climate_preset'>>
|
|
338
426
|
>
|
|
339
427
|
|
|
340
|
-
export type
|
|
428
|
+
export type ThermostatsUpdateClimatePresetOptions = never
|
package/src/lib/version.ts
CHANGED
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
import type { RouteRequestBody, RouteResponse } from '@seamapi/types/connect';
|
|
2
|
-
import { type Client } from '../../../../lib/seam/connect/client.js';
|
|
3
|
-
import { type SeamHttpFromPublishableKeyOptions, type SeamHttpOptions, type SeamHttpOptionsWithApiKey, type SeamHttpOptionsWithClient, type SeamHttpOptionsWithClientSessionToken, type SeamHttpOptionsWithConsoleSessionToken, type SeamHttpOptionsWithPersonalAccessToken, type SeamHttpRequestOptions } from '../../../../lib/seam/connect/options.js';
|
|
4
|
-
import { SeamHttpRequest } from '../../../../lib/seam/connect/seam-http-request.js';
|
|
5
|
-
import type { SetNonNullable } from '../../../../lib/types.js';
|
|
6
|
-
export declare class SeamHttpThermostatsClimateSettingSchedules {
|
|
7
|
-
client: Client;
|
|
8
|
-
readonly defaults: Required<SeamHttpRequestOptions>;
|
|
9
|
-
constructor(apiKeyOrOptions?: string | SeamHttpOptions);
|
|
10
|
-
static fromClient(client: SeamHttpOptionsWithClient['client'], options?: Omit<SeamHttpOptionsWithClient, 'client'>): SeamHttpThermostatsClimateSettingSchedules;
|
|
11
|
-
static fromApiKey(apiKey: SeamHttpOptionsWithApiKey['apiKey'], options?: Omit<SeamHttpOptionsWithApiKey, 'apiKey'>): SeamHttpThermostatsClimateSettingSchedules;
|
|
12
|
-
static fromClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken'], options?: Omit<SeamHttpOptionsWithClientSessionToken, 'clientSessionToken'>): SeamHttpThermostatsClimateSettingSchedules;
|
|
13
|
-
static fromPublishableKey(publishableKey: string, userIdentifierKey: string, options?: SeamHttpFromPublishableKeyOptions): Promise<SeamHttpThermostatsClimateSettingSchedules>;
|
|
14
|
-
static fromConsoleSessionToken(consoleSessionToken: SeamHttpOptionsWithConsoleSessionToken['consoleSessionToken'], workspaceId: SeamHttpOptionsWithConsoleSessionToken['workspaceId'], options?: Omit<SeamHttpOptionsWithConsoleSessionToken, 'consoleSessionToken' | 'workspaceId'>): SeamHttpThermostatsClimateSettingSchedules;
|
|
15
|
-
static fromPersonalAccessToken(personalAccessToken: SeamHttpOptionsWithPersonalAccessToken['personalAccessToken'], workspaceId: SeamHttpOptionsWithPersonalAccessToken['workspaceId'], options?: Omit<SeamHttpOptionsWithPersonalAccessToken, 'personalAccessToken' | 'workspaceId'>): SeamHttpThermostatsClimateSettingSchedules;
|
|
16
|
-
updateClientSessionToken(clientSessionToken: SeamHttpOptionsWithClientSessionToken['clientSessionToken']): Promise<void>;
|
|
17
|
-
create(body?: ThermostatsClimateSettingSchedulesCreateBody): SeamHttpRequest<ThermostatsClimateSettingSchedulesCreateResponse, 'climate_setting_schedule'>;
|
|
18
|
-
delete(body?: ThermostatsClimateSettingSchedulesDeleteParams): SeamHttpRequest<void, undefined>;
|
|
19
|
-
get(body?: ThermostatsClimateSettingSchedulesGetParams): SeamHttpRequest<ThermostatsClimateSettingSchedulesGetResponse, 'climate_setting_schedule'>;
|
|
20
|
-
list(body?: ThermostatsClimateSettingSchedulesListParams): SeamHttpRequest<ThermostatsClimateSettingSchedulesListResponse, 'climate_setting_schedules'>;
|
|
21
|
-
update(body?: ThermostatsClimateSettingSchedulesUpdateBody): SeamHttpRequest<void, undefined>;
|
|
22
|
-
}
|
|
23
|
-
export type ThermostatsClimateSettingSchedulesCreateBody = RouteRequestBody<'/thermostats/climate_setting_schedules/create'>;
|
|
24
|
-
export type ThermostatsClimateSettingSchedulesCreateResponse = SetNonNullable<Required<RouteResponse<'/thermostats/climate_setting_schedules/create'>>>;
|
|
25
|
-
export type ThermostatsClimateSettingSchedulesCreateOptions = never;
|
|
26
|
-
export type ThermostatsClimateSettingSchedulesDeleteParams = RouteRequestBody<'/thermostats/climate_setting_schedules/delete'>;
|
|
27
|
-
export type ThermostatsClimateSettingSchedulesDeleteResponse = SetNonNullable<Required<RouteResponse<'/thermostats/climate_setting_schedules/delete'>>>;
|
|
28
|
-
export type ThermostatsClimateSettingSchedulesDeleteOptions = never;
|
|
29
|
-
export type ThermostatsClimateSettingSchedulesGetParams = RouteRequestBody<'/thermostats/climate_setting_schedules/get'>;
|
|
30
|
-
export type ThermostatsClimateSettingSchedulesGetResponse = SetNonNullable<Required<RouteResponse<'/thermostats/climate_setting_schedules/get'>>>;
|
|
31
|
-
export type ThermostatsClimateSettingSchedulesGetOptions = never;
|
|
32
|
-
export type ThermostatsClimateSettingSchedulesListParams = RouteRequestBody<'/thermostats/climate_setting_schedules/list'>;
|
|
33
|
-
export type ThermostatsClimateSettingSchedulesListResponse = SetNonNullable<Required<RouteResponse<'/thermostats/climate_setting_schedules/list'>>>;
|
|
34
|
-
export type ThermostatsClimateSettingSchedulesListOptions = never;
|
|
35
|
-
export type ThermostatsClimateSettingSchedulesUpdateBody = RouteRequestBody<'/thermostats/climate_setting_schedules/update'>;
|
|
36
|
-
export type ThermostatsClimateSettingSchedulesUpdateResponse = SetNonNullable<Required<RouteResponse<'/thermostats/climate_setting_schedules/update'>>>;
|
|
37
|
-
export type ThermostatsClimateSettingSchedulesUpdateOptions = never;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"thermostats-climate-setting-schedules.js","sourceRoot":"","sources":["../../../../src/lib/seam/connect/routes/thermostats-climate-setting-schedules.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAIH,OAAO,EACL,mCAAmC,EACnC,+BAA+B,GAChC,MAAM,0BAA0B,CAAA;AACjC,OAAO,EAAe,YAAY,EAAE,MAAM,4BAA4B,CAAA;AACtE,OAAO,EACL,2BAA2B,EAC3B,2BAA2B,EAC3B,uCAAuC,EACvC,wCAAwC,EACxC,wCAAwC,EAExC,2BAA2B,GAQ5B,MAAM,6BAA6B,CAAA;AACpC,OAAO,EACL,6BAA6B,EAC7B,YAAY,GACb,MAAM,mCAAmC,CAAA;AAC1C,OAAO,EAAE,eAAe,EAAE,MAAM,uCAAuC,CAAA;AAGvE,OAAO,EAAE,sBAAsB,EAAE,MAAM,sBAAsB,CAAA;AAE7D,MAAM,OAAO,0CAA0C;IAIrD,YAAY,kBAA4C,EAAE;QACxD,MAAM,OAAO,GAAG,YAAY,CAAC,eAAe,CAAC,CAAA;QAC7C,IAAI,CAAC,MAAM,GAAG,QAAQ,IAAI,OAAO,CAAC,CAAC,CAAC,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,YAAY,CAAC,OAAO,CAAC,CAAA;QAC1E,IAAI,CAAC,QAAQ,GAAG,6BAA6B,CAAC,OAAO,CAAC,CAAA;IACxD,CAAC;IAED,MAAM,CAAC,UAAU,CACf,MAA2C,EAC3C,UAAqD,EAAE;QAEvD,MAAM,kBAAkB,GAAG,EAAE,GAAG,OAAO,EAAE,MAAM,EAAE,CAAA;QACjD,IAAI,CAAC,2BAA2B,CAAC,kBAAkB,CAAC,EAAE,CAAC;YACrD,MAAM,IAAI,2BAA2B,CAAC,gBAAgB,CAAC,CAAA;QACzD,CAAC;QACD,OAAO,IAAI,0CAA0C,CAAC,kBAAkB,CAAC,CAAA;IAC3E,CAAC;IAED,MAAM,CAAC,UAAU,C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