Skip to content

Commit

Permalink
feat: Add warning time_zone_does_not_match_location (#1397)
Browse files Browse the repository at this point in the history
Co-authored-by: Evan Sosenko <[email protected]>
  • Loading branch information
seambot and razor-x authored Dec 19, 2024
1 parent 0ced3c9 commit d42515e
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/seam/connect/models/acs/acs-system.ts
Original file line number Diff line number Diff line change
Expand Up @@ -178,6 +178,7 @@ const time_zone_does_not_match_location = common_acs_system_warning.extend({
.describe(
'Indicates the ACS system time zone could not be determined because the reported physical location does not match the time zone configured on the physical ACS entrances.',
),
misconfigured_acs_entrance_ids: z.array(z.string().uuid()).optional(),
})

const acs_system_warning = z
Expand All @@ -190,6 +191,9 @@ const acs_system_warning = z
export const acs_system_warning_map = z.object({
salto_ks_subscription_limit_almost_reached:
salto_ks_subscription_limit_almost_reached.optional().nullable(),
time_zone_does_not_match_location: time_zone_does_not_match_location
.optional()
.nullable(),
})

export type AcsSystemWarningMap = z.infer<typeof acs_system_warning_map>
Expand Down
4 changes: 4 additions & 0 deletions src/lib/seam/connect/openapi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -1092,6 +1092,10 @@ export default {
'Detailed description of the warning. Provides insights into the issue and potentially how to rectify it.',
type: 'string',
},
misconfigured_acs_entrance_ids: {
items: { format: 'uuid', type: 'string' },
type: 'array',
},
warning_code: {
description:
'Indicates the ACS system time zone could not be determined because the reported physical location does not match the time zone configured on the physical ACS entrances.',
Expand Down
4 changes: 4 additions & 0 deletions src/lib/seam/connect/route-types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8803,6 +8803,7 @@ export interface Routes {
message: string
/** Indicates the ACS system time zone could not be determined because the reported physical location does not match the time zone configured on the physical ACS entrances. */
warning_code: 'time_zone_does_not_match_location'
misconfigured_acs_entrance_ids?: string[] | undefined
}
>
/** Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`. */
Expand Down Expand Up @@ -8975,6 +8976,7 @@ export interface Routes {
message: string
/** Indicates the ACS system time zone could not be determined because the reported physical location does not match the time zone configured on the physical ACS entrances. */
warning_code: 'time_zone_does_not_match_location'
misconfigured_acs_entrance_ids?: string[] | undefined
}
>
/** Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`. */
Expand Down Expand Up @@ -9147,6 +9149,7 @@ export interface Routes {
message: string
/** Indicates the ACS system time zone could not be determined because the reported physical location does not match the time zone configured on the physical ACS entrances. */
warning_code: 'time_zone_does_not_match_location'
misconfigured_acs_entrance_ids?: string[] | undefined
}
>
/** Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`. */
Expand Down Expand Up @@ -37978,6 +37981,7 @@ export interface Routes {
message: string
/** Indicates the ACS system time zone could not be determined because the reported physical location does not match the time zone configured on the physical ACS entrances. */
warning_code: 'time_zone_does_not_match_location'
misconfigured_acs_entrance_ids?: string[] | undefined
}
>
/** Indicates whether it is possible to [launch enrollment automations](https://docs.seam.co/latest/capability-guides/mobile-access-in-development/issuing-mobile-credentials-from-an-access-control-system#prepare-the-phones-for-a-user-identity-to-start-receiving-mobile-credentials-using-an-enrollment-aut) for the `acs_system`. */
Expand Down

0 comments on commit d42515e

Please sign in to comment.