@seamapi/types 0.30.1 → 1.0.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.
@@ -1,9 +1,13 @@
1
1
  import { z } from 'zod'
2
2
 
3
+ export const hvac_mode_setting = z.enum(['off', 'heat', 'cool', 'heat_cool'])
4
+
5
+ export type HvacModeSetting = z.infer<typeof hvac_mode_setting>
6
+
3
7
  export const climate_setting = z.object({
4
8
  automatic_heating_enabled: z.boolean(),
5
9
  automatic_cooling_enabled: z.boolean(),
6
- hvac_mode_setting: z.enum(['off', 'heat', 'cool', 'heatcool']),
10
+ hvac_mode_setting,
7
11
  cooling_set_point_celsius: z.number().optional(),
8
12
  heating_set_point_celsius: z.number().optional(),
9
13
  cooling_set_point_fahrenheit: z.number().optional(),
@@ -25,10 +29,6 @@ export const climate_setting_schedule = z
25
29
  })
26
30
  .merge(climate_setting.partial())
27
31
 
28
- export const hvac_mode_setting = z.enum(['off', 'heat', 'cool', 'heatcool'])
29
-
30
- export type HvacModeSetting = z.infer<typeof hvac_mode_setting>
31
-
32
32
  const base_thermostat_capability_properties = z.object({
33
33
  temperature_fahrenheit: z.number(),
34
34
  temperature_celsius: z.number(),
@@ -162,5 +162,13 @@ export const device_metadata = z
162
162
  device_name: z.string(),
163
163
  device_label: z.string(),
164
164
  }),
165
+
166
+ dormakaba_oracode_metadata: z.object({
167
+ door_id: z.number(),
168
+ door_name: z.string(),
169
+ device_id: z.number().optional(),
170
+ site_id: z.number(),
171
+ site_name: z.string(),
172
+ }),
165
173
  })
166
174
  .partial()
@@ -25,6 +25,7 @@ export const LOCK_DEVICE_TYPE = {
25
25
  IGLOOHOME_LOCK: 'igloohome_lock',
26
26
  HUBITAT_LOCK: 'hubitat_lock',
27
27
  FOUR_SUITES_DOOR: 'four_suites_door',
28
+ DORMAKABA_ORACODE_DOOR: 'dormakaba_oracode_door',
28
29
  } as const
29
30
 
30
31
  type LockDeviceTypeFromMapping =