@seamapi/types 1.253.0 → 1.254.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 +31 -8
- package/dist/connect.cjs.map +1 -1
- package/dist/connect.d.cts +188 -52
- package/lib/seam/connect/models/devices/capability-properties/index.d.ts +5 -5
- package/lib/seam/connect/models/devices/capability-properties/thermostat.d.ts +5 -5
- package/lib/seam/connect/models/devices/device.d.ts +6 -6
- package/lib/seam/connect/models/devices/phone.d.ts +5 -5
- package/lib/seam/connect/models/devices/unmanaged-device.d.ts +5 -5
- package/lib/seam/connect/models/events/devices.d.ts +92 -2
- package/lib/seam/connect/models/events/devices.js +5 -2
- package/lib/seam/connect/models/events/devices.js.map +1 -1
- package/lib/seam/connect/models/events/seam-event.d.ts +86 -0
- package/lib/seam/connect/models/thermostats/climate-preset.d.ts +32 -3
- package/lib/seam/connect/models/thermostats/climate-preset.js +9 -1
- package/lib/seam/connect/models/thermostats/climate-preset.js.map +1 -1
- package/lib/seam/connect/openapi.d.ts +32 -0
- package/lib/seam/connect/openapi.js +13 -0
- package/lib/seam/connect/openapi.js.map +1 -1
- package/lib/seam/connect/route-types.d.ts +59 -41
- package/package.json +1 -1
- package/src/lib/seam/connect/models/events/devices.ts +5 -2
- package/src/lib/seam/connect/models/thermostats/climate-preset.ts +12 -1
- package/src/lib/seam/connect/openapi.ts +13 -0
- package/src/lib/seam/connect/route-types.ts +61 -39
|
@@ -4,7 +4,7 @@ export const climate_preset = z.object({
|
|
|
4
4
|
climate_preset_key: z.string(),
|
|
5
5
|
can_edit: z.boolean(),
|
|
6
6
|
can_delete: z.boolean(),
|
|
7
|
-
name: z.string().nullable().default(null),
|
|
7
|
+
name: z.string().nullable().default(null).optional(),
|
|
8
8
|
display_name: z.string(),
|
|
9
9
|
fan_mode_setting: fan_mode_setting.optional(),
|
|
10
10
|
hvac_mode_setting: hvac_mode_setting.optional(),
|
|
@@ -15,4 +15,12 @@ export const climate_preset = z.object({
|
|
|
15
15
|
manual_override_allowed: z.boolean(),
|
|
16
16
|
});
|
|
17
17
|
export const climate_setting = climate_preset.partial();
|
|
18
|
+
export const climate_setting_manual = climate_setting.pick({
|
|
19
|
+
fan_mode_setting: true,
|
|
20
|
+
hvac_mode_setting: true,
|
|
21
|
+
cooling_set_point_celsius: true,
|
|
22
|
+
heating_set_point_celsius: true,
|
|
23
|
+
cooling_set_point_fahrenheit: true,
|
|
24
|
+
heating_set_point_fahrenheit: true,
|
|
25
|
+
});
|
|
18
26
|
//# sourceMappingURL=climate-preset.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"climate-preset.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/climate-preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEhE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"climate-preset.js","sourceRoot":"","sources":["../../../../../src/lib/seam/connect/models/thermostats/climate-preset.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,CAAC,EAAE,MAAM,KAAK,CAAA;AAEvB,OAAO,EAAE,gBAAgB,EAAE,iBAAiB,EAAE,MAAM,YAAY,CAAA;AAEhE,MAAM,CAAC,MAAM,cAAc,GAAG,CAAC,CAAC,MAAM,CAAC;IACrC,kBAAkB,EAAE,CAAC,CAAC,MAAM,EAAE;IAC9B,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,UAAU,EAAE,CAAC,CAAC,OAAO,EAAE;IACvB,IAAI,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC,QAAQ,EAAE;IACpD,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,gBAAgB,EAAE,gBAAgB,CAAC,QAAQ,EAAE;IAC7C,iBAAiB,EAAE,iBAAiB,CAAC,QAAQ,EAAE;IAC/C,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChD,yBAAyB,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IAChD,4BAA4B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnD,4BAA4B,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,EAAE;IACnD,uBAAuB,EAAE,CAAC,CAAC,OAAO,EAAE;CACrC,CAAC,CAAA;AAIF,MAAM,CAAC,MAAM,eAAe,GAAG,cAAc,CAAC,OAAO,EAAE,CAAA;AAIvD,MAAM,CAAC,MAAM,sBAAsB,GAAG,eAAe,CAAC,IAAI,CAAC;IACzD,gBAAgB,EAAE,IAAI;IACtB,iBAAiB,EAAE,IAAI;IACvB,yBAAyB,EAAE,IAAI;IAC/B,yBAAyB,EAAE,IAAI;IAC/B,4BAA4B,EAAE,IAAI;IAClC,4BAA4B,EAAE,IAAI;CACnC,CAAC,CAAA"}
|
|
@@ -2939,6 +2939,17 @@ declare const _default: {
|
|
|
2939
2939
|
format: string;
|
|
2940
2940
|
type: string;
|
|
2941
2941
|
};
|
|
2942
|
+
climate_preset_key: {
|
|
2943
|
+
type: string;
|
|
2944
|
+
};
|
|
2945
|
+
cooling_set_point_celsius: {
|
|
2946
|
+
format: string;
|
|
2947
|
+
type: string;
|
|
2948
|
+
};
|
|
2949
|
+
cooling_set_point_fahrenheit: {
|
|
2950
|
+
format: string;
|
|
2951
|
+
type: string;
|
|
2952
|
+
};
|
|
2942
2953
|
created_at: {
|
|
2943
2954
|
format: string;
|
|
2944
2955
|
type: string;
|
|
@@ -2961,10 +2972,31 @@ declare const _default: {
|
|
|
2961
2972
|
event_type: {
|
|
2962
2973
|
type: string;
|
|
2963
2974
|
};
|
|
2975
|
+
fan_mode_setting: {
|
|
2976
|
+
type: string;
|
|
2977
|
+
};
|
|
2978
|
+
heating_set_point_celsius: {
|
|
2979
|
+
format: string;
|
|
2980
|
+
type: string;
|
|
2981
|
+
};
|
|
2982
|
+
heating_set_point_fahrenheit: {
|
|
2983
|
+
format: string;
|
|
2984
|
+
type: string;
|
|
2985
|
+
};
|
|
2986
|
+
hvac_mode_setting: {
|
|
2987
|
+
type: string;
|
|
2988
|
+
};
|
|
2989
|
+
is_fallback_climate_preset: {
|
|
2990
|
+
type: string;
|
|
2991
|
+
};
|
|
2964
2992
|
occurred_at: {
|
|
2965
2993
|
format: string;
|
|
2966
2994
|
type: string;
|
|
2967
2995
|
};
|
|
2996
|
+
thermostat_schedule_id: {
|
|
2997
|
+
format: string;
|
|
2998
|
+
type: string;
|
|
2999
|
+
};
|
|
2968
3000
|
workspace_id: {
|
|
2969
3001
|
format: string;
|
|
2970
3002
|
type: string;
|
|
@@ -3715,13 +3715,22 @@ export default {
|
|
|
3715
3715
|
acs_user_id: { format: 'uuid', type: 'string' },
|
|
3716
3716
|
action_attempt_id: { format: 'uuid', type: 'string' },
|
|
3717
3717
|
client_session_id: { format: 'uuid', type: 'string' },
|
|
3718
|
+
climate_preset_key: { type: 'string' },
|
|
3719
|
+
cooling_set_point_celsius: { format: 'float', type: 'number' },
|
|
3720
|
+
cooling_set_point_fahrenheit: { format: 'float', type: 'number' },
|
|
3718
3721
|
created_at: { format: 'date-time', type: 'string' },
|
|
3719
3722
|
device_id: { format: 'uuid', type: 'string' },
|
|
3720
3723
|
enrollment_automation_id: { format: 'uuid', type: 'string' },
|
|
3721
3724
|
event_description: { type: 'string' },
|
|
3722
3725
|
event_id: { format: 'uuid', type: 'string' },
|
|
3723
3726
|
event_type: { type: 'string' },
|
|
3727
|
+
fan_mode_setting: { type: 'string' },
|
|
3728
|
+
heating_set_point_celsius: { format: 'float', type: 'number' },
|
|
3729
|
+
heating_set_point_fahrenheit: { format: 'float', type: 'number' },
|
|
3730
|
+
hvac_mode_setting: { type: 'string' },
|
|
3731
|
+
is_fallback_climate_preset: { type: 'boolean' },
|
|
3724
3732
|
occurred_at: { format: 'date-time', type: 'string' },
|
|
3733
|
+
thermostat_schedule_id: { format: 'uuid', type: 'string' },
|
|
3725
3734
|
workspace_id: { format: 'uuid', type: 'string' },
|
|
3726
3735
|
},
|
|
3727
3736
|
required: [
|
|
@@ -11422,6 +11431,8 @@ export default {
|
|
|
11422
11431
|
'action_attempt.lock_door.failed',
|
|
11423
11432
|
'action_attempt.unlock_door.succeeded',
|
|
11424
11433
|
'action_attempt.unlock_door.failed',
|
|
11434
|
+
'thermostat.climate_preset_activated',
|
|
11435
|
+
'thermostat.manually_adjusted',
|
|
11425
11436
|
],
|
|
11426
11437
|
type: 'string',
|
|
11427
11438
|
},
|
|
@@ -11490,6 +11501,8 @@ export default {
|
|
|
11490
11501
|
'action_attempt.lock_door.failed',
|
|
11491
11502
|
'action_attempt.unlock_door.succeeded',
|
|
11492
11503
|
'action_attempt.unlock_door.failed',
|
|
11504
|
+
'thermostat.climate_preset_activated',
|
|
11505
|
+
'thermostat.manually_adjusted',
|
|
11493
11506
|
],
|
|
11494
11507
|
type: 'string',
|
|
11495
11508
|
},
|