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
24 changes: 0 additions & 24 deletions src/lib/seam/connect/models/access-codes/managed-access-code.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,14 +139,6 @@ const august_lock_invalid_code_length = common_access_code_error
})
.describe('Invalid code length for August lock.')

const august_device_programming_delay_error = common_access_code_error
.extend({
error_code: z
.literal('august_device_programming_delay')
.describe(error_code_description),
})
.describe('Access code has not yet been fully moved to the device.')

const august_lock_temporarily_offline_error = common_access_code_error
.extend({
error_code: z
Expand Down Expand Up @@ -238,7 +230,6 @@ const access_code_error = z
kwikset_unable_to_confirm_deletion,
code_modified_external_to_seam_error,
august_lock_invalid_code_length,
august_device_programming_delay_error,
august_lock_missing_keypad,
august_lock_temporarily_offline_error,
salto_ks_user_not_subscribed,
Expand Down Expand Up @@ -289,9 +280,6 @@ const _access_code_error_map = z.object({
august_lock_invalid_code_length: august_lock_invalid_code_length
.optional()
.nullable(),
august_device_programming_delay: august_device_programming_delay_error
.optional()
.nullable(),
august_lock_temporarily_offline: august_lock_temporarily_offline_error
.optional()
.nullable(),
Expand Down Expand Up @@ -340,14 +328,6 @@ const smartthings_failed_to_set_access_code_warning = common_access_code_warning
})
.describe('Failed to set code on SmartThings device.')

const august_device_programming_delay_warning = common_access_code_warning
.extend({
warning_code: z
.literal('august_device_programming_delay')
.describe(warning_code_description),
})
.describe('Access code has not yet been fully moved to the device.')

const august_lock_temporarily_offline_warning = common_access_code_warning
.extend({
warning_code: z
Expand Down Expand Up @@ -479,7 +459,6 @@ const access_code_warning = z
delay_in_setting_on_device,
delay_in_removing_from_device,
third_party_integration_detected,
august_device_programming_delay_warning,
august_lock_temporarily_offline_warning,
igloo_algopin_must_be_used_within_24_hours,
management_transferred,
Expand Down Expand Up @@ -511,9 +490,6 @@ const _access_code_warning_map = z.object({
third_party_integration_detected: third_party_integration_detected
.optional()
.nullable(),
august_device_programming_delay: august_device_programming_delay_warning
.optional()
.nullable(),
august_lock_temporarily_offline: august_lock_temporarily_offline_warning
.optional()
.nullable(),
Expand Down
112 changes: 0 additions & 112 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -482,37 +482,6 @@ const openapi: OpenAPISpec = {
required: ['message', 'is_access_code_error', 'error_code'],
type: 'object',
},
{
description:
'Access code has not yet been fully moved to 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: ['august_device_programming_delay'],
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: 'August lock is missing a keypad.',
properties: {
Expand Down Expand Up @@ -1895,31 +1864,6 @@ const openapi: OpenAPISpec = {
required: ['message', 'warning_code'],
type: 'object',
},
{
description:
'Access code has not yet been fully moved to the device.',
properties: {
created_at: {
description:
'Date and time at which Seam created the warning.',
format: 'date-time',
type: 'string',
},
message: {
description:
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
type: 'string',
},
warning_code: {
description:
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
enum: ['august_device_programming_delay'],
type: 'string',
},
},
required: ['message', 'warning_code'],
type: 'object',
},
{
description: 'August lock is temporarily offline.',
properties: {
Expand Down Expand Up @@ -27776,37 +27720,6 @@ const openapi: OpenAPISpec = {
required: ['message', 'is_access_code_error', 'error_code'],
type: 'object',
},
{
description:
'Access code has not yet been fully moved to 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: ['august_device_programming_delay'],
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: 'August lock is missing a keypad.',
properties: {
Expand Down Expand Up @@ -28878,31 +28791,6 @@ const openapi: OpenAPISpec = {
required: ['message', 'warning_code'],
type: 'object',
},
{
description:
'Access code has not yet been fully moved to the device.',
properties: {
created_at: {
description:
'Date and time at which Seam created the warning.',
format: 'date-time',
type: 'string',
},
message: {
description:
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
type: 'string',
},
warning_code: {
description:
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.',
enum: ['august_device_programming_delay'],
type: 'string',
},
},
required: ['message', 'warning_code'],
type: 'object',
},
{
description: 'August lock is temporarily offline.',
properties: {
Expand Down
Loading
Loading