Skip to content

Commit 0fd9e16

Browse files
authored
feat: Add dormakaba_oracode (#101)
1 parent 840761a commit 0fd9e16

File tree

3 files changed

+62
-0
lines changed

3 files changed

+62
-0
lines changed

src/lib/seam/connect/route-types.ts

Lines changed: 53 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -904,6 +904,7 @@ export interface Routes {
904904
| 'igloohome_lock'
905905
| 'hubitat_lock'
906906
| 'four_suites_door'
907+
| 'dormakaba_oracode_door'
907908
)
908909
| ('noiseaware_activity_zone' | 'minut_sensor')
909910
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -1114,6 +1115,15 @@ export interface Routes {
11141115
device_label: string
11151116
}
11161117
| undefined
1118+
dormakaba_oracode_metadata?:
1119+
| {
1120+
door_id: number
1121+
door_name: string
1122+
device_id?: number | undefined
1123+
site_id: number
1124+
site_name: string
1125+
}
1126+
| undefined
11171127
}) &
11181128
({
11191129
code_constraints?:
@@ -1465,6 +1475,7 @@ export interface Routes {
14651475
| 'igloohome_lock'
14661476
| 'hubitat_lock'
14671477
| 'four_suites_door'
1478+
| 'dormakaba_oracode_door'
14681479
)
14691480
| ('noiseaware_activity_zone' | 'minut_sensor')
14701481
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -1496,6 +1507,7 @@ export interface Routes {
14961507
| 'igloohome_lock'
14971508
| 'hubitat_lock'
14981509
| 'four_suites_door'
1510+
| 'dormakaba_oracode_door'
14991511
)
15001512
| ('noiseaware_activity_zone' | 'minut_sensor')
15011513
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -1533,6 +1545,7 @@ export interface Routes {
15331545
| 'hubitat'
15341546
| 'controlbyweb'
15351547
| 'smartthings'
1548+
| 'dormakaba_oracode'
15361549
)
15371550
| undefined
15381551
device_ids?: string[] | undefined
@@ -1568,6 +1581,7 @@ export interface Routes {
15681581
| 'igloohome_lock'
15691582
| 'hubitat_lock'
15701583
| 'four_suites_door'
1584+
| 'dormakaba_oracode_door'
15711585
)
15721586
| ('noiseaware_activity_zone' | 'minut_sensor')
15731587
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -1778,6 +1792,15 @@ export interface Routes {
17781792
device_label: string
17791793
}
17801794
| undefined
1795+
dormakaba_oracode_metadata?:
1796+
| {
1797+
door_id: number
1798+
door_name: string
1799+
device_id?: number | undefined
1800+
site_id: number
1801+
site_name: string
1802+
}
1803+
| undefined
17811804
}) &
17821805
({
17831806
code_constraints?:
@@ -2217,6 +2240,7 @@ export interface Routes {
22172240
| 'igloohome_lock'
22182241
| 'hubitat_lock'
22192242
| 'four_suites_door'
2243+
| 'dormakaba_oracode_door'
22202244
)
22212245
| ('noiseaware_activity_zone' | 'minut_sensor')
22222246
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -2248,6 +2272,7 @@ export interface Routes {
22482272
| 'igloohome_lock'
22492273
| 'hubitat_lock'
22502274
| 'four_suites_door'
2275+
| 'dormakaba_oracode_door'
22512276
)
22522277
| ('noiseaware_activity_zone' | 'minut_sensor')
22532278
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -2285,6 +2310,7 @@ export interface Routes {
22852310
| 'hubitat'
22862311
| 'controlbyweb'
22872312
| 'smartthings'
2313+
| 'dormakaba_oracode'
22882314
)
22892315
| undefined
22902316
device_ids?: string[] | undefined
@@ -2320,6 +2346,7 @@ export interface Routes {
23202346
| 'igloohome_lock'
23212347
| 'hubitat_lock'
23222348
| 'four_suites_door'
2349+
| 'dormakaba_oracode_door'
23232350
)
23242351
| ('noiseaware_activity_zone' | 'minut_sensor')
23252352
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -2633,6 +2660,7 @@ export interface Routes {
26332660
| 'igloohome_lock'
26342661
| 'hubitat_lock'
26352662
| 'four_suites_door'
2663+
| 'dormakaba_oracode_door'
26362664
)
26372665
| ('noiseaware_activity_zone' | 'minut_sensor')
26382666
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -2664,6 +2692,7 @@ export interface Routes {
26642692
| 'igloohome_lock'
26652693
| 'hubitat_lock'
26662694
| 'four_suites_door'
2695+
| 'dormakaba_oracode_door'
26672696
)
26682697
| ('noiseaware_activity_zone' | 'minut_sensor')
26692698
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -2701,6 +2730,7 @@ export interface Routes {
27012730
| 'hubitat'
27022731
| 'controlbyweb'
27032732
| 'smartthings'
2733+
| 'dormakaba_oracode'
27042734
)
27052735
| undefined
27062736
device_ids?: string[] | undefined
@@ -3172,6 +3202,7 @@ export interface Routes {
31723202
| 'igloohome_lock'
31733203
| 'hubitat_lock'
31743204
| 'four_suites_door'
3205+
| 'dormakaba_oracode_door'
31753206
)
31763207
| ('noiseaware_activity_zone' | 'minut_sensor')
31773208
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -3382,6 +3413,15 @@ export interface Routes {
33823413
device_label: string
33833414
}
33843415
| undefined
3416+
dormakaba_oracode_metadata?:
3417+
| {
3418+
door_id: number
3419+
door_name: string
3420+
device_id?: number | undefined
3421+
site_id: number
3422+
site_name: string
3423+
}
3424+
| undefined
33853425
}) &
33863426
({
33873427
code_constraints?:
@@ -3763,6 +3803,7 @@ export interface Routes {
37633803
| 'igloohome_lock'
37643804
| 'hubitat_lock'
37653805
| 'four_suites_door'
3806+
| 'dormakaba_oracode_door'
37663807
)
37673808
| ('noiseaware_activity_zone' | 'minut_sensor')
37683809
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -3794,6 +3835,7 @@ export interface Routes {
37943835
| 'igloohome_lock'
37953836
| 'hubitat_lock'
37963837
| 'four_suites_door'
3838+
| 'dormakaba_oracode_door'
37973839
)
37983840
| ('noiseaware_activity_zone' | 'minut_sensor')
37993841
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -3831,6 +3873,7 @@ export interface Routes {
38313873
| 'hubitat'
38323874
| 'controlbyweb'
38333875
| 'smartthings'
3876+
| 'dormakaba_oracode'
38343877
)
38353878
| undefined
38363879
device_ids?: string[] | undefined
@@ -3866,6 +3909,7 @@ export interface Routes {
38663909
| 'igloohome_lock'
38673910
| 'hubitat_lock'
38683911
| 'four_suites_door'
3912+
| 'dormakaba_oracode_door'
38693913
)
38703914
| ('noiseaware_activity_zone' | 'minut_sensor')
38713915
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -4076,6 +4120,15 @@ export interface Routes {
40764120
device_label: string
40774121
}
40784122
| undefined
4123+
dormakaba_oracode_metadata?:
4124+
| {
4125+
door_id: number
4126+
door_name: string
4127+
device_id?: number | undefined
4128+
site_id: number
4129+
site_name: string
4130+
}
4131+
| undefined
40794132
}) &
40804133
({
40814134
code_constraints?:

src/lib/seam/connect/unstable/models/device-metadata.ts

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -162,5 +162,13 @@ export const device_metadata = z
162162
device_name: z.string(),
163163
device_label: z.string(),
164164
}),
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+
}),
165173
})
166174
.partial()

src/lib/seam/connect/unstable/models/device-type.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ export const LOCK_DEVICE_TYPE = {
2525
IGLOOHOME_LOCK: 'igloohome_lock',
2626
HUBITAT_LOCK: 'hubitat_lock',
2727
FOUR_SUITES_DOOR: 'four_suites_door',
28+
DORMAKABA_ORACODE_DOOR: 'dormakaba_oracode_door',
2829
} as const
2930

3031
type LockDeviceTypeFromMapping =

0 commit comments

Comments
 (0)