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
1 change: 1 addition & 0 deletions src/lib/seam/connect/models/acs/acs-access-group.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const acs_access_group_external_type = z.enum([
'salto_space_group',
'dormakaba_community_access_group',
'dormakaba_ambiance_access_group',
'avigilon_alta_group',
])

export type AcsAccessGroupExternalType = z.infer<
Expand Down
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 @@ -39,9 +39,20 @@ const salto_ks_entrance_access_code_support_removed =
'Indicates that a change in the reported device model has been detected for this Salto KS entrance, which may occur after an IQ hub reset. Access code support may be affected. See https://help.getseam.com/articles/5098842588-salto-ks-lock-loses-access-code-support for troubleshooting steps.',
)

const entrance_shares_zone = common_acs_entrance_warning
.extend({
warning_code: z
.literal('entrance_shares_zone')
.describe(warning_code_description),
})
.describe(
'Indicates that this entrance shares a zone with other entrances in Avigilon Alta and cannot be added to an access group individually.',
)

const acs_entrance_warning = z
.discriminatedUnion('warning_code', [
salto_ks_entrance_access_code_support_removed,
entrance_shares_zone,
])
.describe(
'Warning associated with the [entrance](https://docs.seam.co/latest/capability-guides/access-systems/retrieving-entrance-details).',
Expand All @@ -50,6 +61,7 @@ const acs_entrance_warning = z
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(),
})

export type AcsEntranceWarningMap = z.infer<typeof _acs_entrance_warning_map>
Expand Down
58 changes: 58 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3150,6 +3150,7 @@ const openapi: OpenAPISpec = {
'salto_space_group',
'dormakaba_community_access_group',
'dormakaba_ambiance_access_group',
'avigilon_alta_group',
],
type: 'string',
'x-deprecated': 'Use `external_type`.',
Expand Down Expand Up @@ -3249,6 +3250,7 @@ const openapi: OpenAPISpec = {
'salto_space_group',
'dormakaba_community_access_group',
'dormakaba_ambiance_access_group',
'avigilon_alta_group',
],
type: 'string',
},
Expand Down Expand Up @@ -4684,6 +4686,31 @@ const openapi: OpenAPISpec = {
required: ['created_at', 'message', 'warning_code'],
type: 'object',
},
{
description:
'Indicates that this entrance shares a zone with other entrances in Avigilon Alta and cannot be added to an access group individually.',
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_shares_zone'],
type: 'string',
},
},
required: ['created_at', 'message', 'warning_code'],
type: 'object',
},
],
},
type: 'array',
Expand Down Expand Up @@ -25506,6 +25533,35 @@ const openapi: OpenAPISpec = {
],
type: 'object',
},
{
description:
'Indicates that this entrance shares a zone with other entrances in Avigilon Alta and cannot be added to an access group individually.',
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_shares_zone'],
type: 'string',
},
},
required: [
'created_at',
'message',
'warning_code',
],
type: 'object',
},
],
},
type: 'array',
Expand Down Expand Up @@ -28363,6 +28419,7 @@ const openapi: OpenAPISpec = {
'salto_space_group',
'dormakaba_community_access_group',
'dormakaba_ambiance_access_group',
'avigilon_alta_group',
],
type: 'string',
'x-deprecated': 'Use `external_type`.',
Expand Down Expand Up @@ -28462,6 +28519,7 @@ const openapi: OpenAPISpec = {
'salto_space_group',
'dormakaba_community_access_group',
'dormakaba_ambiance_access_group',
'avigilon_alta_group',
],
type: 'string',
},
Expand Down
Loading
Loading