Skip to content

Commit 3c69c31

Browse files
committed
feat: Sync with Seam API via 968c4659935659ccf5fb68e69ce43db5b39a9b0c
1 parent 49bacc3 commit 3c69c31

File tree

3 files changed

+24
-20
lines changed

3 files changed

+24
-20
lines changed

src/lib/seam/connect/models/access-codes/managed-access-code.ts

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -221,13 +221,15 @@ const wyze_potential_duplicate_code = common_access_code_error
221221
})
222222
.describe('Potential duplicate access code detected.')
223223

224-
const dormakaba_oracode_no_valid_user_level = common_access_code_error
224+
const dormakaba_oracode_invalid_time_range = common_access_code_error
225225
.extend({
226226
error_code: z
227-
.literal('dormakaba_oracode_no_valid_user_level')
227+
.literal('dormakaba_oracode_invalid_time_range')
228228
.describe(error_code_description),
229229
})
230-
.describe('No valid user level for Oracode.')
230+
.describe(
231+
'No Dormakaba Oracode user levels configured for the requested time range.',
232+
)
231233

232234
const keynest_unsupported_third_party_locker = common_access_code_error
233235
.extend({
@@ -262,7 +264,7 @@ const access_code_error = z
262264
hubitat_no_free_positions_available,
263265
wyze_duplicate_code_name,
264266
wyze_potential_duplicate_code,
265-
dormakaba_oracode_no_valid_user_level,
267+
dormakaba_oracode_invalid_time_range,
266268
kwikset_insufficient_permissions,
267269
keynest_unsupported_third_party_locker,
268270
])
@@ -332,7 +334,7 @@ const _access_code_error_map = z.object({
332334
wyze_potential_duplicate_code: wyze_potential_duplicate_code
333335
.optional()
334336
.nullable(),
335-
dormakaba_oracode_no_valid_user_level: dormakaba_oracode_no_valid_user_level
337+
dormakaba_oracode_invalid_time_range: dormakaba_oracode_invalid_time_range
336338
.optional()
337339
.nullable(),
338340
keynest_unsupported_third_party_locker: keynest_unsupported_third_party_locker

src/lib/seam/connect/openapi.ts

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -748,7 +748,8 @@ export default {
748748
type: 'object',
749749
},
750750
{
751-
description: 'No valid user level for Oracode.',
751+
description:
752+
'No Dormakaba Oracode user levels configured for the requested time range.',
752753
properties: {
753754
created_at: {
754755
description:
@@ -759,7 +760,7 @@ export default {
759760
error_code: {
760761
description:
761762
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
762-
enum: ['dormakaba_oracode_no_valid_user_level'],
763+
enum: ['dormakaba_oracode_invalid_time_range'],
763764
type: 'string',
764765
},
765766
is_access_code_error: {
@@ -22278,7 +22279,8 @@ export default {
2227822279
type: 'object',
2227922280
},
2228022281
{
22281-
description: 'No valid user level for Oracode.',
22282+
description:
22283+
'No Dormakaba Oracode user levels configured for the requested time range.',
2228222284
properties: {
2228322285
created_at: {
2228422286
description:
@@ -22289,7 +22291,7 @@ export default {
2228922291
error_code: {
2229022292
description:
2229122293
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
22292-
enum: ['dormakaba_oracode_no_valid_user_level'],
22294+
enum: ['dormakaba_oracode_invalid_time_range'],
2229322295
type: 'string',
2229422296
},
2229522297
is_access_code_error: {

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

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1762,7 +1762,7 @@ export type Routes = {
17621762
/** Date and time at which Seam created the error. */
17631763
created_at?: string | undefined
17641764
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
1765-
error_code: 'dormakaba_oracode_no_valid_user_level'
1765+
error_code: 'dormakaba_oracode_invalid_time_range'
17661766
}
17671767
| {
17681768
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
@@ -2380,7 +2380,7 @@ export type Routes = {
23802380
/** Date and time at which Seam created the error. */
23812381
created_at?: string | undefined
23822382
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
2383-
error_code: 'dormakaba_oracode_no_valid_user_level'
2383+
error_code: 'dormakaba_oracode_invalid_time_range'
23842384
}
23852385
| {
23862386
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
@@ -4455,7 +4455,7 @@ export type Routes = {
44554455
/** Date and time at which Seam created the error. */
44564456
created_at?: string | undefined
44574457
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
4458-
error_code: 'dormakaba_oracode_no_valid_user_level'
4458+
error_code: 'dormakaba_oracode_invalid_time_range'
44594459
}
44604460
| {
44614461
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
@@ -5047,7 +5047,7 @@ export type Routes = {
50475047
/** Date and time at which Seam created the error. */
50485048
created_at?: string | undefined
50495049
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5050-
error_code: 'dormakaba_oracode_no_valid_user_level'
5050+
error_code: 'dormakaba_oracode_invalid_time_range'
50515051
}
50525052
| {
50535053
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
@@ -5645,7 +5645,7 @@ export type Routes = {
56455645
/** Date and time at which Seam created the error. */
56465646
created_at?: string | undefined
56475647
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
5648-
error_code: 'dormakaba_oracode_no_valid_user_level'
5648+
error_code: 'dormakaba_oracode_invalid_time_range'
56495649
}
56505650
| {
56515651
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
@@ -6220,7 +6220,7 @@ export type Routes = {
62206220
/** Date and time at which Seam created the error. */
62216221
created_at?: string | undefined
62226222
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6223-
error_code: 'dormakaba_oracode_no_valid_user_level'
6223+
error_code: 'dormakaba_oracode_invalid_time_range'
62246224
}
62256225
| {
62266226
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
@@ -6830,7 +6830,7 @@ export type Routes = {
68306830
/** Date and time at which Seam created the error. */
68316831
created_at?: string | undefined
68326832
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
6833-
error_code: 'dormakaba_oracode_no_valid_user_level'
6833+
error_code: 'dormakaba_oracode_invalid_time_range'
68346834
}
68356835
| {
68366836
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
@@ -8892,7 +8892,7 @@ export type Routes = {
88928892
/** Date and time at which Seam created the error. */
88938893
created_at?: string | undefined
88948894
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
8895-
error_code: 'dormakaba_oracode_no_valid_user_level'
8895+
error_code: 'dormakaba_oracode_invalid_time_range'
88968896
}
88978897
| {
88988898
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
@@ -9462,7 +9462,7 @@ export type Routes = {
94629462
/** Date and time at which Seam created the error. */
94639463
created_at?: string | undefined
94649464
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
9465-
error_code: 'dormakaba_oracode_no_valid_user_level'
9465+
error_code: 'dormakaba_oracode_invalid_time_range'
94669466
}
94679467
| {
94689468
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
@@ -100093,7 +100093,7 @@ export type Routes = {
100093100093
/** Date and time at which Seam created the error. */
100094100094
created_at?: string | undefined
100095100095
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
100096-
error_code: 'dormakaba_oracode_no_valid_user_level'
100096+
error_code: 'dormakaba_oracode_invalid_time_range'
100097100097
}
100098100098
| {
100099100099
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
@@ -100651,7 +100651,7 @@ export type Routes = {
100651100651
/** Date and time at which Seam created the error. */
100652100652
created_at?: string | undefined
100653100653
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
100654-
error_code: 'dormakaba_oracode_no_valid_user_level'
100654+
error_code: 'dormakaba_oracode_invalid_time_range'
100655100655
}
100656100656
| {
100657100657
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */

0 commit comments

Comments
 (0)