@seamapi/types 1.223.0 → 1.224.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 +151 -572
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +1156 -4189
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +10 -500
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +23 -1419
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js +6 -23
- package/lib/seam/connect/models/devices/capability-properties/thermostat.js.map +1 -1
- package/lib/seam/connect/models/devices/device.d.ts +31 -753
- package/lib/seam/connect/models/devices/phone.d.ts +10 -500
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +10 -500
- package/lib/seam/connect/openapi.d.ts +235 -640
- package/lib/seam/connect/openapi.js +137 -535
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +138 -1554
- package/package.json +1 -1
- package/src/lib/seam/connect/models/devices/capability-properties/thermostat.ts +37 -67
- package/src/lib/seam/connect/openapi.ts +138 -538
- package/src/lib/seam/connect/route-types.ts +924 -3228
|
@@ -1,14 +1,13 @@
|
|
|
1
1
|
import { z } from 'zod';
|
|
2
2
|
import { climate_setting, climate_setting_schedule, fan_mode_setting, hvac_mode_setting, } from '../../thermostats/index.js';
|
|
3
|
-
const
|
|
3
|
+
export const thermostat_capability_properties = z
|
|
4
|
+
.object({
|
|
4
5
|
temperature_fahrenheit: z.number(),
|
|
5
6
|
temperature_celsius: z.number(),
|
|
6
7
|
relative_humidity: z.number().min(0).max(1),
|
|
7
8
|
can_enable_automatic_heating: z.boolean(),
|
|
8
9
|
can_enable_automatic_cooling: z.boolean(),
|
|
9
10
|
available_hvac_mode_settings: z.array(hvac_mode_setting),
|
|
10
|
-
is_heating_available: z.literal(false),
|
|
11
|
-
is_cooling_available: z.literal(false),
|
|
12
11
|
is_heating: z.boolean(),
|
|
13
12
|
is_cooling: z.boolean(),
|
|
14
13
|
is_fan_running: z.boolean(),
|
|
@@ -21,35 +20,19 @@ const base_thermostat_capability_properties = z.object({
|
|
|
21
20
|
* can be derived from `default_climate_setting`, or `active_climate_setting_schedule` if one is active
|
|
22
21
|
*/
|
|
23
22
|
current_climate_setting: climate_setting,
|
|
24
|
-
default_climate_setting: climate_setting
|
|
23
|
+
default_climate_setting: climate_setting,
|
|
25
24
|
is_climate_setting_schedule_active: z.boolean(),
|
|
26
|
-
active_climate_setting_schedule: climate_setting_schedule
|
|
27
|
-
});
|
|
28
|
-
export const cooling_thermostat_capability_properties = base_thermostat_capability_properties.merge(z.object({
|
|
25
|
+
active_climate_setting_schedule: climate_setting_schedule,
|
|
29
26
|
min_cooling_set_point_celsius: z.number(),
|
|
30
27
|
min_cooling_set_point_fahrenheit: z.number(),
|
|
31
28
|
max_cooling_set_point_celsius: z.number(),
|
|
32
29
|
max_cooling_set_point_fahrenheit: z.number(),
|
|
33
|
-
is_cooling_available: z.literal(true),
|
|
34
|
-
}));
|
|
35
|
-
export const heating_thermostat_capability_properties = base_thermostat_capability_properties.merge(z.object({
|
|
36
30
|
min_heating_set_point_celsius: z.number(),
|
|
37
31
|
min_heating_set_point_fahrenheit: z.number(),
|
|
38
32
|
max_heating_set_point_celsius: z.number(),
|
|
39
33
|
max_heating_set_point_fahrenheit: z.number(),
|
|
40
|
-
is_heating_available: z.literal(true),
|
|
41
|
-
}));
|
|
42
|
-
export const heating_cooling_thermostat_capability_properties = cooling_thermostat_capability_properties
|
|
43
|
-
.merge(heating_thermostat_capability_properties)
|
|
44
|
-
.merge(z.object({
|
|
45
|
-
is_cooling_available: z.literal(true),
|
|
46
|
-
is_heating_available: z.literal(true),
|
|
47
34
|
min_heating_cooling_delta_celsius: z.number(),
|
|
48
35
|
min_heating_cooling_delta_fahrenheit: z.number(),
|
|
49
|
-
})
|
|
50
|
-
|
|
51
|
-
heating_cooling_thermostat_capability_properties.partial(),
|
|
52
|
-
heating_thermostat_capability_properties.partial(),
|
|
53
|
-
cooling_thermostat_capability_properties.partial(),
|
|
54
|
-
]);
|
|
36
|
+
})
|
|
37
|
+
.partial();
|
|
55
38
|
//# sourceMappingURL=thermostat.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"thermostat.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/thermostat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,4BAA4B,CAAA;AAEnC,MAAM,
|
|
1
|
+
{"version":3,"file":"thermostat.js","sourceRoot":"","sources":["../../../../../../src/lib/seam/connect/models/devices/capability-properties/thermostat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EACL,eAAe,EACf,wBAAwB,EACxB,gBAAgB,EAChB,iBAAiB,GAClB,MAAM,4BAA4B,CAAA;AAEnC,MAAM,CAAC,MAAM,gCAAgC,GAAG,CAAC;KAC9C,MAAM,CAAC;IACN,sBAAsB,EAAE,CAAC,CAAC,MAAM,EAAE;IAClC,mBAAmB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC/B,iBAAiB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,CAAC,CAAC;IAC3C,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAAE;IACzC,4BAA4B,EAAE,CAAC,CAAC,OAAO,EAAE;IACzC,4BAA4B,EAAE,CAAC,CAAC,KAAK,CAAC,iBAAiB,CAAC;IACxD,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,cAAc,EAAE,CAAC,CAAC,OAAO,EAAE;IAC3B,gBAAgB;IAEhB;;OAEG;IACH,mCAAmC,EAAE,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