Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -221,13 +221,15 @@ const wyze_potential_duplicate_code = common_access_code_error
})
.describe('Potential duplicate access code detected.')

const dormakaba_oracode_no_valid_user_level = common_access_code_error
const dormakaba_oracode_invalid_time_range = common_access_code_error
.extend({
error_code: z
.literal('dormakaba_oracode_no_valid_user_level')
.literal('dormakaba_oracode_invalid_time_range')
.describe(error_code_description),
})
.describe('No valid user level for Oracode.')
.describe(
'No Dormakaba Oracode user levels configured for the requested time range.',
)

const keynest_unsupported_third_party_locker = common_access_code_error
.extend({
Expand Down Expand Up @@ -262,7 +264,7 @@ const access_code_error = z
hubitat_no_free_positions_available,
wyze_duplicate_code_name,
wyze_potential_duplicate_code,
dormakaba_oracode_no_valid_user_level,
dormakaba_oracode_invalid_time_range,
kwikset_insufficient_permissions,
keynest_unsupported_third_party_locker,
])
Expand Down Expand Up @@ -332,7 +334,7 @@ const _access_code_error_map = z.object({
wyze_potential_duplicate_code: wyze_potential_duplicate_code
.optional()
.nullable(),
dormakaba_oracode_no_valid_user_level: dormakaba_oracode_no_valid_user_level
dormakaba_oracode_invalid_time_range: dormakaba_oracode_invalid_time_range
.optional()
.nullable(),
keynest_unsupported_third_party_locker: keynest_unsupported_third_party_locker
Expand Down
10 changes: 6 additions & 4 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -748,7 +748,8 @@ export default {
type: 'object',
},
{
description: 'No valid user level for Oracode.',
description:
'No Dormakaba Oracode user levels configured for the requested time range.',
properties: {
created_at: {
description:
Expand All @@ -759,7 +760,7 @@ export default {
error_code: {
description:
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
enum: ['dormakaba_oracode_no_valid_user_level'],
enum: ['dormakaba_oracode_invalid_time_range'],
type: 'string',
},
is_access_code_error: {
Expand Down Expand Up @@ -22278,7 +22279,8 @@ export default {
type: 'object',
},
{
description: 'No valid user level for Oracode.',
description:
'No Dormakaba Oracode user levels configured for the requested time range.',
properties: {
created_at: {
description:
Expand All @@ -22289,7 +22291,7 @@ export default {
error_code: {
description:
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
enum: ['dormakaba_oracode_no_valid_user_level'],
enum: ['dormakaba_oracode_invalid_time_range'],
type: 'string',
},
is_access_code_error: {
Expand Down
22 changes: 11 additions & 11 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1762,7 +1762,7 @@ export type Routes = {
/** Date and time at which Seam created the error. */
created_at?: string | undefined
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'dormakaba_oracode_no_valid_user_level'
error_code: 'dormakaba_oracode_invalid_time_range'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
Expand Down Expand Up @@ -2380,7 +2380,7 @@ export type Routes = {
/** Date and time at which Seam created the error. */
created_at?: string | undefined
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'dormakaba_oracode_no_valid_user_level'
error_code: 'dormakaba_oracode_invalid_time_range'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
Expand Down Expand Up @@ -4455,7 +4455,7 @@ export type Routes = {
/** Date and time at which Seam created the error. */
created_at?: string | undefined
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'dormakaba_oracode_no_valid_user_level'
error_code: 'dormakaba_oracode_invalid_time_range'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
Expand Down Expand Up @@ -5047,7 +5047,7 @@ export type Routes = {
/** Date and time at which Seam created the error. */
created_at?: string | undefined
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'dormakaba_oracode_no_valid_user_level'
error_code: 'dormakaba_oracode_invalid_time_range'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
Expand Down Expand Up @@ -5645,7 +5645,7 @@ export type Routes = {
/** Date and time at which Seam created the error. */
created_at?: string | undefined
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'dormakaba_oracode_no_valid_user_level'
error_code: 'dormakaba_oracode_invalid_time_range'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
Expand Down Expand Up @@ -6220,7 +6220,7 @@ export type Routes = {
/** Date and time at which Seam created the error. */
created_at?: string | undefined
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'dormakaba_oracode_no_valid_user_level'
error_code: 'dormakaba_oracode_invalid_time_range'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
Expand Down Expand Up @@ -6830,7 +6830,7 @@ export type Routes = {
/** Date and time at which Seam created the error. */
created_at?: string | undefined
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'dormakaba_oracode_no_valid_user_level'
error_code: 'dormakaba_oracode_invalid_time_range'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
Expand Down Expand Up @@ -8892,7 +8892,7 @@ export type Routes = {
/** Date and time at which Seam created the error. */
created_at?: string | undefined
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'dormakaba_oracode_no_valid_user_level'
error_code: 'dormakaba_oracode_invalid_time_range'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
Expand Down Expand Up @@ -9462,7 +9462,7 @@ export type Routes = {
/** Date and time at which Seam created the error. */
created_at?: string | undefined
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'dormakaba_oracode_no_valid_user_level'
error_code: 'dormakaba_oracode_invalid_time_range'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
Expand Down Expand Up @@ -100093,7 +100093,7 @@ export type Routes = {
/** Date and time at which Seam created the error. */
created_at?: string | undefined
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'dormakaba_oracode_no_valid_user_level'
error_code: 'dormakaba_oracode_invalid_time_range'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
Expand Down Expand Up @@ -100651,7 +100651,7 @@ export type Routes = {
/** Date and time at which Seam created the error. */
created_at?: string | undefined
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'dormakaba_oracode_no_valid_user_level'
error_code: 'dormakaba_oracode_invalid_time_range'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
Expand Down