Skip to content

Commit 6d37f40

Browse files
authored
feat: Add four_suites_door (#89)
1 parent 466cc04 commit 6d37f40

File tree

3 files changed

+46
-0
lines changed

3 files changed

+46
-0
lines changed

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

Lines changed: 41 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -889,6 +889,7 @@ export interface Routes {
889889
| 'ttlock_lock'
890890
| 'igloohome_lock'
891891
| 'hubitat_lock'
892+
| 'four_suites_door'
892893
)
893894
| ('noiseaware_activity_zone' | 'minut_sensor')
894895
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -1038,6 +1039,12 @@ export interface Routes {
10381039
}
10391040
}
10401041
| undefined
1042+
four_suites_metadata?:
1043+
| {
1044+
device_id: number
1045+
device_name: string
1046+
}
1047+
| undefined
10411048
two_n_metadata?:
10421049
| {
10431050
device_id: number
@@ -1442,6 +1449,7 @@ export interface Routes {
14421449
| 'ttlock_lock'
14431450
| 'igloohome_lock'
14441451
| 'hubitat_lock'
1452+
| 'four_suites_door'
14451453
)
14461454
| ('noiseaware_activity_zone' | 'minut_sensor')
14471455
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -1472,6 +1480,7 @@ export interface Routes {
14721480
| 'ttlock_lock'
14731481
| 'igloohome_lock'
14741482
| 'hubitat_lock'
1483+
| 'four_suites_door'
14751484
)
14761485
| ('noiseaware_activity_zone' | 'minut_sensor')
14771486
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -1485,6 +1494,7 @@ export interface Routes {
14851494
| 'brivo'
14861495
| 'butterflymx'
14871496
| 'doorking'
1497+
| 'four_suites'
14881498
| 'genie'
14891499
| 'igloo'
14901500
| 'keywe'
@@ -1542,6 +1552,7 @@ export interface Routes {
15421552
| 'ttlock_lock'
15431553
| 'igloohome_lock'
15441554
| 'hubitat_lock'
1555+
| 'four_suites_door'
15451556
)
15461557
| ('noiseaware_activity_zone' | 'minut_sensor')
15471558
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -1691,6 +1702,12 @@ export interface Routes {
16911702
}
16921703
}
16931704
| undefined
1705+
four_suites_metadata?:
1706+
| {
1707+
device_id: number
1708+
device_name: string
1709+
}
1710+
| undefined
16941711
two_n_metadata?:
16951712
| {
16961713
device_id: number
@@ -2113,6 +2130,7 @@ export interface Routes {
21132130
| 'ttlock_lock'
21142131
| 'igloohome_lock'
21152132
| 'hubitat_lock'
2133+
| 'four_suites_door'
21162134
)
21172135
| ('noiseaware_activity_zone' | 'minut_sensor')
21182136
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -2143,6 +2161,7 @@ export interface Routes {
21432161
| 'ttlock_lock'
21442162
| 'igloohome_lock'
21452163
| 'hubitat_lock'
2164+
| 'four_suites_door'
21462165
)
21472166
| ('noiseaware_activity_zone' | 'minut_sensor')
21482167
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -2156,6 +2175,7 @@ export interface Routes {
21562175
| 'brivo'
21572176
| 'butterflymx'
21582177
| 'doorking'
2178+
| 'four_suites'
21592179
| 'genie'
21602180
| 'igloo'
21612181
| 'keywe'
@@ -2213,6 +2233,7 @@ export interface Routes {
22132233
| 'ttlock_lock'
22142234
| 'igloohome_lock'
22152235
| 'hubitat_lock'
2236+
| 'four_suites_door'
22162237
)
22172238
| ('noiseaware_activity_zone' | 'minut_sensor')
22182239
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -2525,6 +2546,7 @@ export interface Routes {
25252546
| 'ttlock_lock'
25262547
| 'igloohome_lock'
25272548
| 'hubitat_lock'
2549+
| 'four_suites_door'
25282550
)
25292551
| ('noiseaware_activity_zone' | 'minut_sensor')
25302552
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -2555,6 +2577,7 @@ export interface Routes {
25552577
| 'ttlock_lock'
25562578
| 'igloohome_lock'
25572579
| 'hubitat_lock'
2580+
| 'four_suites_door'
25582581
)
25592582
| ('noiseaware_activity_zone' | 'minut_sensor')
25602583
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -2568,6 +2591,7 @@ export interface Routes {
25682591
| 'brivo'
25692592
| 'butterflymx'
25702593
| 'doorking'
2594+
| 'four_suites'
25712595
| 'genie'
25722596
| 'igloo'
25732597
| 'keywe'
@@ -3061,6 +3085,7 @@ export interface Routes {
30613085
| 'ttlock_lock'
30623086
| 'igloohome_lock'
30633087
| 'hubitat_lock'
3088+
| 'four_suites_door'
30643089
)
30653090
| ('noiseaware_activity_zone' | 'minut_sensor')
30663091
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -3210,6 +3235,12 @@ export interface Routes {
32103235
}
32113236
}
32123237
| undefined
3238+
four_suites_metadata?:
3239+
| {
3240+
device_id: number
3241+
device_name: string
3242+
}
3243+
| undefined
32133244
two_n_metadata?:
32143245
| {
32153246
device_id: number
@@ -3644,6 +3675,7 @@ export interface Routes {
36443675
| 'ttlock_lock'
36453676
| 'igloohome_lock'
36463677
| 'hubitat_lock'
3678+
| 'four_suites_door'
36473679
)
36483680
| ('noiseaware_activity_zone' | 'minut_sensor')
36493681
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -3674,6 +3706,7 @@ export interface Routes {
36743706
| 'ttlock_lock'
36753707
| 'igloohome_lock'
36763708
| 'hubitat_lock'
3709+
| 'four_suites_door'
36773710
)
36783711
| ('noiseaware_activity_zone' | 'minut_sensor')
36793712
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -3687,6 +3720,7 @@ export interface Routes {
36873720
| 'brivo'
36883721
| 'butterflymx'
36893722
| 'doorking'
3723+
| 'four_suites'
36903724
| 'genie'
36913725
| 'igloo'
36923726
| 'keywe'
@@ -3744,6 +3778,7 @@ export interface Routes {
37443778
| 'ttlock_lock'
37453779
| 'igloohome_lock'
37463780
| 'hubitat_lock'
3781+
| 'four_suites_door'
37473782
)
37483783
| ('noiseaware_activity_zone' | 'minut_sensor')
37493784
| ('ecobee_thermostat' | 'nest_thermostat')
@@ -3893,6 +3928,12 @@ export interface Routes {
38933928
}
38943929
}
38953930
| undefined
3931+
four_suites_metadata?:
3932+
| {
3933+
device_id: number
3934+
device_name: string
3935+
}
3936+
| undefined
38963937
two_n_metadata?:
38973938
| {
38983939
device_id: number

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

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -111,6 +111,10 @@ export const device_metadata = z
111111
}),
112112
}),
113113
}),
114+
four_suites_metadata: z.object({
115+
device_id: z.number(),
116+
device_name: z.string(),
117+
}),
114118

115119
two_n_metadata: z.object({
116120
device_id: z.number(),

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ export const LOCK_DEVICE_TYPE = {
2424
TTLOCK_LOCK: 'ttlock_lock',
2525
IGLOOHOME_LOCK: 'igloohome_lock',
2626
HUBITAT_LOCK: 'hubitat_lock',
27+
FOUR_SUITES_DOOR: 'four_suites_door',
2728
} as const
2829

2930
type LockDeviceTypeFromMapping =

0 commit comments

Comments
 (0)