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: 12 additions & 0 deletions src/lib/seam/connect/models/acs/acs-entrance.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,21 @@ const entrance_shares_zone = common_acs_entrance_warning
'Indicates that this entrance shares a zone with other entrances in Avigilon Alta and cannot be added to an access group individually.',
)

const entrance_setup_required = common_acs_entrance_warning
.extend({
warning_code: z
.literal('entrance_setup_required')
.describe(warning_code_description),
})
.describe(
'Indicates that this entrance requires additional configuration in the access control system before Seam can fully manage it.',
)

const acs_entrance_warning = z
.discriminatedUnion('warning_code', [
salto_ks_entrance_access_code_support_removed,
entrance_shares_zone,
entrance_setup_required,
])
.describe(
'Warning associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).',
Expand All @@ -62,6 +73,7 @@ const _acs_entrance_warning_map = z.object({
salto_ks_entrance_access_code_support_removed:
salto_ks_entrance_access_code_support_removed.optional().nullable(),
entrance_shares_zone: entrance_shares_zone.optional().nullable(),
entrance_setup_required: entrance_setup_required.optional().nullable(),
})

export type AcsEntranceWarningMap = z.infer<typeof _acs_entrance_warning_map>
Expand Down
54 changes: 54 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4711,6 +4711,31 @@ const openapi: OpenAPISpec = {
required: ['created_at', 'message', 'warning_code'],
type: 'object',
},
{
description:
'Indicates that this entrance requires additional configuration in the access control system before Seam can fully manage it.',
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: ['entrance_setup_required'],
type: 'string',
},
},
required: ['created_at', 'message', 'warning_code'],
type: 'object',
},
],
},
type: 'array',
Expand Down Expand Up @@ -26217,6 +26242,35 @@ const openapi: OpenAPISpec = {
],
type: 'object',
},
{
description:
'Indicates that this entrance requires additional configuration in the access control system before Seam can fully manage it.',
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: ['entrance_setup_required'],
type: 'string',
},
},
required: [
'created_at',
'message',
'warning_code',
],
type: 'object',
},
],
},
type: 'array',
Expand Down
88 changes: 88 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15569,6 +15569,14 @@ export type Routes = {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_shares_zone'
}
| {
/** Date and time at which Seam created the warning. */
created_at: string
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_setup_required'
}
)[]
/** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
latch_metadata?:
Expand Down Expand Up @@ -21115,6 +21123,14 @@ export type Routes = {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_shares_zone'
}
| {
/** Date and time at which Seam created the warning. */
created_at: string
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_setup_required'
}
)[]
/** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
latch_metadata?:
Expand Down Expand Up @@ -22730,6 +22746,14 @@ export type Routes = {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_shares_zone'
}
| {
/** Date and time at which Seam created the warning. */
created_at: string
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_setup_required'
}
)[]
/** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
latch_metadata?:
Expand Down Expand Up @@ -24757,6 +24781,14 @@ export type Routes = {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_shares_zone'
}
| {
/** Date and time at which Seam created the warning. */
created_at: string
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_setup_required'
}
)[]
/** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
latch_metadata?:
Expand Down Expand Up @@ -31220,6 +31252,14 @@ export type Routes = {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_shares_zone'
}
| {
/** Date and time at which Seam created the warning. */
created_at: string
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_setup_required'
}
)[]
/** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
latch_metadata?:
Expand Down Expand Up @@ -31468,6 +31508,14 @@ export type Routes = {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_shares_zone'
}
| {
/** Date and time at which Seam created the warning. */
created_at: string
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_setup_required'
}
)[]
/** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
latch_metadata?:
Expand Down Expand Up @@ -35260,6 +35308,14 @@ export type Routes = {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_shares_zone'
}
| {
/** Date and time at which Seam created the warning. */
created_at: string
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_setup_required'
}
)[]
/** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
latch_metadata?:
Expand Down Expand Up @@ -88457,6 +88513,14 @@ export type Routes = {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_shares_zone'
}
| {
/** Date and time at which Seam created the warning. */
created_at: string
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_setup_required'
}
)[]
/** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
latch_metadata?:
Expand Down Expand Up @@ -90734,6 +90798,14 @@ export type Routes = {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_shares_zone'
}
| {
/** Date and time at which Seam created the warning. */
created_at: string
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_setup_required'
}
)[]
/** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
latch_metadata?:
Expand Down Expand Up @@ -117177,6 +117249,14 @@ export type Routes = {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_shares_zone'
}
| {
/** Date and time at which Seam created the warning. */
created_at: string
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_setup_required'
}
)[]
/** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
latch_metadata?:
Expand Down Expand Up @@ -120202,6 +120282,14 @@ export type Routes = {
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_shares_zone'
}
| {
/** Date and time at which Seam created the warning. */
created_at: string
/** Detailed description of the warning. Provides insights into the issue and potentially how to rectify it. */
message: string
/** Unique identifier of the type of warning. Enables quick recognition and categorization of the issue. */
warning_code: 'entrance_setup_required'
}
)[]
/** Latch-specific metadata associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details). */
latch_metadata?:
Expand Down
Loading