@seamapi/types 1.292.0 → 1.292.2
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 +189 -81
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +250 -659
- package/lib/seam/connect/models/thermostats/thermostat-schedule.js +16 -11
- package/lib/seam/connect/models/thermostats/thermostat-schedule.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +68 -9
- package/lib/seam/connect/openapi.js +139 -66
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +180 -649
- package/lib/seam/connect/schemas.d.ts +1 -1
- package/lib/seam/connect/schemas.js +1 -1
- package/lib/seam/connect/schemas.js.map +1 -1
- package/package.json +1 -1
- package/src/lib/seam/connect/models/thermostats/thermostat-schedule.ts +51 -44
- package/src/lib/seam/connect/openapi.ts +152 -66
- package/src/lib/seam/connect/route-types.ts +184 -836
- package/src/lib/seam/connect/schemas.ts +1 -0
|
@@ -1,36 +1,41 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
|
-
export const thermostat_schedule = z
|
|
2
|
+
export const thermostat_schedule = z
|
|
3
|
+
.object({
|
|
3
4
|
thermostat_schedule_id: z
|
|
4
5
|
.string()
|
|
5
6
|
.uuid()
|
|
6
|
-
.describe('ID of the
|
|
7
|
-
device_id: z
|
|
7
|
+
.describe('ID of the thermostat schedule.'),
|
|
8
|
+
device_id: z
|
|
9
|
+
.string()
|
|
10
|
+
.uuid()
|
|
11
|
+
.describe('ID of the desired thermostat device.'),
|
|
8
12
|
name: z
|
|
9
13
|
.string()
|
|
10
14
|
.optional()
|
|
11
|
-
.describe('User-friendly name to identify the
|
|
15
|
+
.describe('User-friendly name to identify the thermostat schedule.'),
|
|
12
16
|
climate_preset_key: z
|
|
13
17
|
.string()
|
|
14
|
-
.describe('Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the
|
|
18
|
+
.describe('Key of the [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) to use for the thermostat schedule.'),
|
|
15
19
|
max_override_period_minutes: z
|
|
16
20
|
.number()
|
|
17
21
|
.int()
|
|
18
22
|
.nonnegative()
|
|
19
|
-
.describe("Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-
|
|
23
|
+
.describe("Number of minutes for which a person at the thermostat can change the thermostat's settings after the activation of the scheduled climate preset. See also [Specifying Manual Override Permissions](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules#specifying-manual-override-permissions)."),
|
|
20
24
|
starts_at: z
|
|
21
25
|
.string()
|
|
22
26
|
.datetime()
|
|
23
|
-
.describe('Date and time at which the
|
|
27
|
+
.describe('Date and time at which the thermostat schedule starts, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.'),
|
|
24
28
|
ends_at: z
|
|
25
29
|
.string()
|
|
26
30
|
.datetime()
|
|
27
|
-
.describe('Date and time at which the
|
|
31
|
+
.describe('Date and time at which the thermostat schedule ends, in [ISO 8601](https://www.iso.org/iso-8601-date-and-time-format.html) format.'),
|
|
28
32
|
created_at: z
|
|
29
33
|
.string()
|
|
30
34
|
.datetime()
|
|
31
|
-
.describe('Date and time at which the
|
|
35
|
+
.describe('Date and time at which the thermostat schedule was created.'),
|
|
32
36
|
errors: z
|
|
33
37
|
.any()
|
|
34
|
-
.describe('Array of errors associated with the
|
|
35
|
-
})
|
|
38
|
+
.describe('Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.'),
|
|
39
|
+
})
|
|
40
|
+
.describe('Represents a [thermostat schedule](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-thermostat-schedules) that activates a configured [climate preset](https://docs.seam.co/latest/capability-guides/thermostats/creating-and-managing-climate-presets) on a [thermostat](https://docs.seam.co/latest/capability-guides/thermostats) at a specified starting time and deactivates the climate preset at a specified ending time.');
|
|
36
41
|
//# sourceMappingURL=thermostat-schedule.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thermostat-schedule.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/thermostat-schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC,
|
|
1
|
+
{"version":3,"file":"thermostat-schedule.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/thermostat-schedule.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,MAAM,CAAC,MAAM,mBAAmB,GAAG,CAAC;KACjC,MAAM,CAAC;IACN,sBAAsB,EAAE,CAAC;SACtB,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,gCAAgC,CAAC;IAC7C,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,IAAI,EAAE;SACN,QAAQ,CAAC,sCAAsC,CAAC;IACnD,IAAI,EAAE,CAAC;SACJ,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,yDAAyD,CAAC;IACtE,kBAAkB,EAAE,CAAC;SAClB,MAAM,EAAE;SACR,QAAQ,CACP,kKAAkK,CACnK;IACH,2BAA2B,EAAE,CAAC;SAC3B,MAAM,EAAE;SACR,GAAG,EAAE;SACL,WAAW,EAAE;SACb,QAAQ,CACP,mVAAmV,CACpV;IACH,SAAS,EAAE,CAAC;SACT,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,sIAAsI,CACvI;IACH,OAAO,EAAE,CAAC;SACP,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CACP,oIAAoI,CACrI;IACH,UAAU,EAAE,CAAC;SACV,MAAM,EAAE;SACR,QAAQ,EAAE;SACV,QAAQ,CAAC,6DAA6D,CAAC;IAC1E,MAAM,EAAE,CAAC;SACN,GAAG,EAAE;SACL,QAAQ,CACP,gZAAgZ,CACjZ;CACJ,CAAC;KACD,QAAQ,CACP,icAAic,CAClc,CAAA"}
|
|
@@ -3259,6 +3259,7 @@ declare const _default: {
|
|
|
3259
3259
|
properties: {
|
|
3260
3260
|
active_thermostat_schedule: {
|
|
3261
3261
|
default: null;
|
|
3262
|
+
description: string;
|
|
3262
3263
|
nullable: boolean;
|
|
3263
3264
|
properties: {
|
|
3264
3265
|
climate_preset_key: {
|
|
@@ -4082,6 +4083,7 @@ declare const _default: {
|
|
|
4082
4083
|
type: string;
|
|
4083
4084
|
};
|
|
4084
4085
|
thermostat_schedule: {
|
|
4086
|
+
description: string;
|
|
4085
4087
|
properties: {
|
|
4086
4088
|
climate_preset_key: {
|
|
4087
4089
|
description: string;
|
|
@@ -9120,7 +9122,7 @@ declare const _default: {
|
|
|
9120
9122
|
format: string;
|
|
9121
9123
|
type: string;
|
|
9122
9124
|
};
|
|
9123
|
-
|
|
9125
|
+
acs_encoder_id: {
|
|
9124
9126
|
description: string;
|
|
9125
9127
|
format: string;
|
|
9126
9128
|
type: string;
|
|
@@ -9190,14 +9192,14 @@ declare const _default: {
|
|
|
9190
9192
|
schema: {
|
|
9191
9193
|
oneOf: ({
|
|
9192
9194
|
properties: {
|
|
9193
|
-
|
|
9195
|
+
acs_encoder_ids: {
|
|
9194
9196
|
items: {
|
|
9195
9197
|
format: string;
|
|
9196
9198
|
type: string;
|
|
9197
9199
|
};
|
|
9198
9200
|
type: string;
|
|
9199
9201
|
};
|
|
9200
|
-
|
|
9202
|
+
acs_system_ids: {
|
|
9201
9203
|
items: {
|
|
9202
9204
|
format: string;
|
|
9203
9205
|
type: string;
|
|
@@ -9214,7 +9216,7 @@ declare const _default: {
|
|
|
9214
9216
|
type: string;
|
|
9215
9217
|
} | {
|
|
9216
9218
|
properties: {
|
|
9217
|
-
|
|
9219
|
+
acs_encoder_ids: {
|
|
9218
9220
|
items: {
|
|
9219
9221
|
format: string;
|
|
9220
9222
|
type: string;
|
|
@@ -9244,7 +9246,7 @@ declare const _default: {
|
|
|
9244
9246
|
format: string;
|
|
9245
9247
|
type: string;
|
|
9246
9248
|
};
|
|
9247
|
-
|
|
9249
|
+
acs_encoder_ids?: never;
|
|
9248
9250
|
};
|
|
9249
9251
|
required: string[];
|
|
9250
9252
|
type: string;
|
|
@@ -9259,9 +9261,66 @@ declare const _default: {
|
|
|
9259
9261
|
'application/json': {
|
|
9260
9262
|
schema: {
|
|
9261
9263
|
properties: {
|
|
9262
|
-
|
|
9264
|
+
acs_encoders: {
|
|
9263
9265
|
items: {
|
|
9264
|
-
|
|
9266
|
+
properties: {
|
|
9267
|
+
acs_encoder_id: {
|
|
9268
|
+
description: string;
|
|
9269
|
+
format: string;
|
|
9270
|
+
type: string;
|
|
9271
|
+
};
|
|
9272
|
+
acs_system_id: {
|
|
9273
|
+
description: string;
|
|
9274
|
+
format: string;
|
|
9275
|
+
type: string;
|
|
9276
|
+
};
|
|
9277
|
+
created_at: {
|
|
9278
|
+
description: string;
|
|
9279
|
+
format: string;
|
|
9280
|
+
type: string;
|
|
9281
|
+
};
|
|
9282
|
+
display_name: {
|
|
9283
|
+
description: string;
|
|
9284
|
+
type: string;
|
|
9285
|
+
};
|
|
9286
|
+
errors: {
|
|
9287
|
+
description: string;
|
|
9288
|
+
items: {
|
|
9289
|
+
description: string;
|
|
9290
|
+
properties: {
|
|
9291
|
+
_event_id: {
|
|
9292
|
+
description: string;
|
|
9293
|
+
format: string;
|
|
9294
|
+
type: string;
|
|
9295
|
+
};
|
|
9296
|
+
created_at: {
|
|
9297
|
+
description: string;
|
|
9298
|
+
format: string;
|
|
9299
|
+
type: string;
|
|
9300
|
+
};
|
|
9301
|
+
error_code: {
|
|
9302
|
+
description: string;
|
|
9303
|
+
enum: string[];
|
|
9304
|
+
type: string;
|
|
9305
|
+
};
|
|
9306
|
+
message: {
|
|
9307
|
+
description: string;
|
|
9308
|
+
type: string;
|
|
9309
|
+
};
|
|
9310
|
+
};
|
|
9311
|
+
required: string[];
|
|
9312
|
+
type: string;
|
|
9313
|
+
};
|
|
9314
|
+
type: string;
|
|
9315
|
+
};
|
|
9316
|
+
workspace_id: {
|
|
9317
|
+
description: string;
|
|
9318
|
+
format: string;
|
|
9319
|
+
type: string;
|
|
9320
|
+
};
|
|
9321
|
+
};
|
|
9322
|
+
required: string[];
|
|
9323
|
+
type: string;
|
|
9265
9324
|
};
|
|
9266
9325
|
type: string;
|
|
9267
9326
|
};
|
|
@@ -9313,12 +9372,12 @@ declare const _default: {
|
|
|
9313
9372
|
'application/json': {
|
|
9314
9373
|
schema: {
|
|
9315
9374
|
properties: {
|
|
9316
|
-
|
|
9375
|
+
acs_encoder_id: {
|
|
9317
9376
|
description: string;
|
|
9318
9377
|
format: string;
|
|
9319
9378
|
type: string;
|
|
9320
9379
|
};
|
|
9321
|
-
|
|
9380
|
+
acs_system_id: {
|
|
9322
9381
|
description: string;
|
|
9323
9382
|
format: string;
|
|
9324
9383
|
type: string;
|