File tree 7 files changed +866
-2
lines changed
7 files changed +866
-2
lines changed Original file line number Diff line number Diff line change @@ -34,6 +34,8 @@ export {
34
34
seam_event as event ,
35
35
seam_event_type as event_type ,
36
36
fan_mode_setting ,
37
+ geolocation ,
38
+ location ,
37
39
lock_device_type ,
38
40
access_code as managed_access_code ,
39
41
device as managed_device ,
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ export const acs_system_capability_flags = z.object({
27
27
) ,
28
28
} )
29
29
30
- export const location = z . object ( {
30
+ export const acs_location = z . object ( {
31
31
time_zone : z
32
32
. string ( )
33
33
. nullable ( )
@@ -274,7 +274,7 @@ export const acs_system = z
274
274
deprecated: Use \`external_type_display_name\`.
275
275
---
276
276
` ) ,
277
- location,
277
+ location : acs_location ,
278
278
name : z
279
279
. string ( )
280
280
. describe (
Original file line number Diff line number Diff line change @@ -9,6 +9,7 @@ export * from './connected-accounts/index.js'
9
9
export * from './custom-metadata.js'
10
10
export * from './devices/index.js'
11
11
export * from './events/index.js'
12
+ export * from './locations/index.js'
12
13
export * from './noise-sensors/index.js'
13
14
export * from './pagination.js'
14
15
export * from './phone-number.js'
Original file line number Diff line number Diff line change
1
+ export * from './location.js'
Original file line number Diff line number Diff line change
1
+ import { z } from 'zod'
2
+
3
+ export const geolocation = z . object ( {
4
+ latitude : z . number ( ) ,
5
+ longitude : z . number ( ) ,
6
+ } )
7
+
8
+ export const location = z . object ( {
9
+ location_id : z
10
+ . string ( )
11
+ . uuid ( )
12
+ . describe ( 'Unique identifier for the location.' ) ,
13
+ workspace_id : z
14
+ . string ( )
15
+ . uuid ( )
16
+ . describe (
17
+ 'Unique identifier for the Seam workspace associated with the location.' ,
18
+ ) ,
19
+ display_name : z . string ( ) . describe ( 'Display name of the location.' ) ,
20
+ geolocation : geolocation
21
+ . optional ( )
22
+ . describe ( 'Geographical location of the location.' ) ,
23
+ time_zone : z . string ( ) . optional ( ) . describe ( 'Time zone of the location.' ) ,
24
+ created_at : z
25
+ . string ( )
26
+ . datetime ( )
27
+ . describe ( 'Date and time at which the location object was created.' ) ,
28
+ } )
29
+
30
+ export type Location = z . infer < typeof location >
You can’t perform that action at this time.
0 commit comments