Skip to content

Commit

Permalink
fix: thermostat_schedule errors type (#1414)
Browse files Browse the repository at this point in the history
  • Loading branch information
seambot authored Jan 3, 2025
1 parent 0138334 commit 582828a
Show file tree
Hide file tree
Showing 3 changed files with 90 additions and 17 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,12 @@ export const thermostat_schedule = z
.datetime()
.describe('Date and time at which the thermostat schedule was created.'),
errors: z
.any()
.array(
z.object({
error_code: z.string(),
message: z.string(),
}),
)
.describe(
'Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.',
),
Expand Down
20 changes: 20 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5319,6 +5319,15 @@ export default {
errors: {
description:
'Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.',
items: {
properties: {
error_code: { type: 'string' },
message: { type: 'string' },
},
required: ['error_code', 'message'],
type: 'object',
},
type: 'array',
},
max_override_period_minutes: {
description:
Expand Down Expand Up @@ -5357,6 +5366,7 @@ export default {
'starts_at',
'ends_at',
'created_at',
'errors',
],
type: 'object',
},
Expand Down Expand Up @@ -10161,6 +10171,15 @@ export default {
errors: {
description:
'Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it.',
items: {
properties: {
error_code: { type: 'string' },
message: { type: 'string' },
},
required: ['error_code', 'message'],
type: 'object',
},
type: 'array',
},
max_override_period_minutes: {
description:
Expand Down Expand Up @@ -10199,6 +10218,7 @@ export default {
'starts_at',
'ends_at',
'created_at',
'errors',
],
type: 'object',
},
Expand Down
80 changes: 64 additions & 16 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13163,7 +13163,10 @@ export interface Routes {
/** Date and time at which the thermostat schedule was created. */
created_at: string
/** Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
errors?: any
errors: Array<{
error_code: string
message: string
}>
} | null)
| undefined
min_cooling_set_point_celsius?: number | undefined
Expand Down Expand Up @@ -14049,7 +14052,10 @@ export interface Routes {
/** Date and time at which the thermostat schedule was created. */
created_at: string
/** Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
errors?: any
errors: Array<{
error_code: string
message: string
}>
} | null)
| undefined
min_cooling_set_point_celsius?: number | undefined
Expand Down Expand Up @@ -18025,7 +18031,10 @@ export interface Routes {
/** Date and time at which the thermostat schedule was created. */
created_at: string
/** Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
errors?: any
errors: Array<{
error_code: string
message: string
}>
} | null)
| undefined
min_cooling_set_point_celsius?: number | undefined
Expand Down Expand Up @@ -18727,7 +18736,10 @@ export interface Routes {
/** Date and time at which the thermostat schedule was created. */
created_at: string
/** Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
errors?: any
errors: Array<{
error_code: string
message: string
}>
} | null)
| undefined
min_cooling_set_point_celsius?: number | undefined
Expand Down Expand Up @@ -19613,7 +19625,10 @@ export interface Routes {
/** Date and time at which the thermostat schedule was created. */
created_at: string
/** Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
errors?: any
errors: Array<{
error_code: string
message: string
}>
} | null)
| undefined
min_cooling_set_point_celsius?: number | undefined
Expand Down Expand Up @@ -20315,7 +20330,10 @@ export interface Routes {
/** Date and time at which the thermostat schedule was created. */
created_at: string
/** Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
errors?: any
errors: Array<{
error_code: string
message: string
}>
} | null)
| undefined
min_cooling_set_point_celsius?: number | undefined
Expand Down Expand Up @@ -23131,7 +23149,10 @@ export interface Routes {
/** Date and time at which the thermostat schedule was created. */
created_at: string
/** Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
errors?: any
errors: Array<{
error_code: string
message: string
}>
} | null)
| undefined
min_cooling_set_point_celsius?: number | undefined
Expand Down Expand Up @@ -23833,7 +23854,10 @@ export interface Routes {
/** Date and time at which the thermostat schedule was created. */
created_at: string
/** Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
errors?: any
errors: Array<{
error_code: string
message: string
}>
} | null)
| undefined
min_cooling_set_point_celsius?: number | undefined
Expand Down Expand Up @@ -29613,7 +29637,10 @@ export interface Routes {
/** Date and time at which the thermostat schedule was created. */
created_at: string
/** Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
errors?: any
errors: Array<{
error_code: string
message: string
}>
} | null)
| undefined
min_cooling_set_point_celsius?: number | undefined
Expand Down Expand Up @@ -32411,7 +32438,10 @@ export interface Routes {
/** Date and time at which the thermostat schedule was created. */
created_at: string
/** Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
errors?: any
errors: Array<{
error_code: string
message: string
}>
} | null)
| undefined
min_cooling_set_point_celsius?: number | undefined
Expand Down Expand Up @@ -33113,7 +33143,10 @@ export interface Routes {
/** Date and time at which the thermostat schedule was created. */
created_at: string
/** Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
errors?: any
errors: Array<{
error_code: string
message: string
}>
} | null)
| undefined
min_cooling_set_point_celsius?: number | undefined
Expand Down Expand Up @@ -34180,7 +34213,10 @@ export interface Routes {
/** Date and time at which the thermostat schedule was created. */
created_at: string
/** Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
errors?: any
errors: Array<{
error_code: string
message: string
}>
}
}
}
Expand Down Expand Up @@ -34228,7 +34264,10 @@ export interface Routes {
/** Date and time at which the thermostat schedule was created. */
created_at: string
/** Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
errors?: any
errors: Array<{
error_code: string
message: string
}>
}
}
}
Expand Down Expand Up @@ -34265,7 +34304,10 @@ export interface Routes {
/** Date and time at which the thermostat schedule was created. */
created_at: string
/** Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
errors?: any
errors: Array<{
error_code: string
message: string
}>
}>
}
}
Expand Down Expand Up @@ -37165,7 +37207,10 @@ export interface Routes {
/** Date and time at which the thermostat schedule was created. */
created_at: string
/** Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
errors?: any
errors: Array<{
error_code: string
message: string
}>
} | null)
| undefined
min_cooling_set_point_celsius?: number | undefined
Expand Down Expand Up @@ -37869,7 +37914,10 @@ export interface Routes {
/** Date and time at which the thermostat schedule was created. */
created_at: string
/** Array of errors associated with the thermostat schedule. Each error object within the array contains two fields: `error_code` and `message`. `error_code` is a string that uniquely identifies the type of error, enabling quick recognition and categorization of the issue. `message` provides a more detailed description of the error, offering insights into the issue and potentially how to rectify it. */
errors?: any
errors: Array<{
error_code: string
message: string
}>
} | null)
| undefined
min_cooling_set_point_celsius?: number | undefined
Expand Down

0 comments on commit 582828a

Please sign in to comment.