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
12 changes: 0 additions & 12 deletions src/lib/seam/connect/models/access-codes/managed-access-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -163,14 +163,6 @@ const salto_ks_user_not_subscribed = common_access_code_error
})
.describe('Salto site user is not subscribed.')

const smartthings_no_free_slots_available = common_access_code_error
.extend({
error_code: z
.literal('smartthings_no_free_slots_available')
.describe(error_code_description),
})
.describe('No free slots available on the device.')

const wyze_duplicate_code_name = common_access_code_error
.extend({
error_code: z
Expand Down Expand Up @@ -219,7 +211,6 @@ const access_code_error = z
.discriminatedUnion('error_code', [
smartthings_failed_to_set_access_code_error,
smartthings_failed_to_set_after_multiple_retries,
smartthings_no_free_slots_available,
failed_to_set_on_device,
failed_to_remove_from_device,
duplicate_code_on_device,
Expand Down Expand Up @@ -251,9 +242,6 @@ const _access_code_error_map = z.object({
smartthings_failed_to_set_access_code_error.optional().nullable(),
smartthings_failed_to_set_after_multiple_retries:
smartthings_failed_to_set_after_multiple_retries.optional().nullable(),
smartthings_no_free_slots_available: smartthings_no_free_slots_available
.optional()
.nullable(),
failed_to_set_on_device: failed_to_set_on_device.optional().nullable(),
failed_to_remove_from_device: failed_to_remove_from_device
.optional()
Expand Down
60 changes: 0 additions & 60 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,36 +166,6 @@ const openapi: OpenAPISpec = {
required: ['message', 'is_access_code_error', 'error_code'],
type: 'object',
},
{
description: 'No free slots available on the device.',
properties: {
created_at: {
description:
'Date and time at which Seam created the error.',
format: 'date-time',
type: 'string',
},
error_code: {
description:
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
enum: ['smartthings_no_free_slots_available'],
type: 'string',
},
is_access_code_error: {
description:
'Indicates that this is an access code error.',
enum: [true],
type: 'boolean',
},
message: {
description:
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
type: 'string',
},
},
required: ['message', 'is_access_code_error', 'error_code'],
type: 'object',
},
{
description: 'Failed to set code on device.',
properties: {
Expand Down Expand Up @@ -27404,36 +27374,6 @@ const openapi: OpenAPISpec = {
required: ['message', 'is_access_code_error', 'error_code'],
type: 'object',
},
{
description: 'No free slots available on the device.',
properties: {
created_at: {
description:
'Date and time at which Seam created the error.',
format: 'date-time',
type: 'string',
},
error_code: {
description:
'Unique identifier of the type of error. Enables quick recognition and categorization of the issue.',
enum: ['smartthings_no_free_slots_available'],
type: 'string',
},
is_access_code_error: {
description:
'Indicates that this is an access code error.',
enum: [true],
type: 'boolean',
},
message: {
description:
'Detailed description of the error. Provides insights into the issue and potentially how to rectify it.',
type: 'string',
},
},
required: ['message', 'is_access_code_error', 'error_code'],
type: 'object',
},
{
description: 'Failed to set code on device.',
properties: {
Expand Down
110 changes: 0 additions & 110 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1850,16 +1850,6 @@ export type Routes = {
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'smartthings_failed_to_set_after_multiple_retries'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Indicates that this is an access code error. */
is_access_code_error: true
/** 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: 'smartthings_no_free_slots_available'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
Expand Down Expand Up @@ -2537,16 +2527,6 @@ export type Routes = {
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'smartthings_failed_to_set_after_multiple_retries'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Indicates that this is an access code error. */
is_access_code_error: true
/** 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: 'smartthings_no_free_slots_available'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
Expand Down Expand Up @@ -4996,16 +4976,6 @@ export type Routes = {
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'smartthings_failed_to_set_after_multiple_retries'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Indicates that this is an access code error. */
is_access_code_error: true
/** 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: 'smartthings_no_free_slots_available'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
Expand Down Expand Up @@ -5770,16 +5740,6 @@ export type Routes = {
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'smartthings_failed_to_set_after_multiple_retries'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Indicates that this is an access code error. */
is_access_code_error: true
/** 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: 'smartthings_no_free_slots_available'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
Expand Down Expand Up @@ -6446,16 +6406,6 @@ export type Routes = {
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'smartthings_failed_to_set_after_multiple_retries'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Indicates that this is an access code error. */
is_access_code_error: true
/** 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: 'smartthings_no_free_slots_available'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
Expand Down Expand Up @@ -7099,16 +7049,6 @@ export type Routes = {
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'smartthings_failed_to_set_after_multiple_retries'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Indicates that this is an access code error. */
is_access_code_error: true
/** 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: 'smartthings_no_free_slots_available'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
Expand Down Expand Up @@ -7787,16 +7727,6 @@ export type Routes = {
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'smartthings_failed_to_set_after_multiple_retries'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Indicates that this is an access code error. */
is_access_code_error: true
/** 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: 'smartthings_no_free_slots_available'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
Expand Down Expand Up @@ -10150,16 +10080,6 @@ export type Routes = {
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'smartthings_failed_to_set_after_multiple_retries'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Indicates that this is an access code error. */
is_access_code_error: true
/** 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: 'smartthings_no_free_slots_available'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
Expand Down Expand Up @@ -10717,16 +10637,6 @@ export type Routes = {
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'smartthings_failed_to_set_after_multiple_retries'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Indicates that this is an access code error. */
is_access_code_error: true
/** 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: 'smartthings_no_free_slots_available'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
Expand Down Expand Up @@ -128357,16 +128267,6 @@ export type Routes = {
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'smartthings_failed_to_set_after_multiple_retries'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Indicates that this is an access code error. */
is_access_code_error: true
/** 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: 'smartthings_no_free_slots_available'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
Expand Down Expand Up @@ -128910,16 +128810,6 @@ export type Routes = {
/** Unique identifier of the type of error. Enables quick recognition and categorization of the issue. */
error_code: 'smartthings_failed_to_set_after_multiple_retries'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Indicates that this is an access code error. */
is_access_code_error: true
/** 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: 'smartthings_no_free_slots_available'
}
| {
/** Detailed description of the error. Provides insights into the issue and potentially how to rectify it. */
message: string
Expand Down
Loading