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
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ export type ConnectedAccountError = z.infer<typeof connected_account_error>

export type ConnectedAccountWarning = z.infer<typeof connected_account_warning>

const _connected_account_error_map = z.object({
export const connected_account_error_map = z.object({
account_disconnected: account_disconnected.nullable().optional(),
bridge_disconnected: bridge_disconnected.nullable().optional(),
salto_ks_subscription_limit_exceeded: salto_ks_subscription_limit_exceeded
Expand All @@ -135,7 +135,7 @@ const _connected_account_error_map = z.object({
})

export type ConnectedAccountErrorMap = z.infer<
typeof _connected_account_error_map
typeof connected_account_error_map
>

export const unknown_issue_with_connected_account =
Expand Down Expand Up @@ -240,7 +240,7 @@ const connected_account_warning = z
])
.describe('Warning associated with the connected account.')

const _connected_account_warning_map = z.object({
export const connected_account_warning_map = z.object({
scheduled_maintenance_window: scheduled_maintenance_window
.nullable()
.optional(),
Expand All @@ -256,7 +256,7 @@ const _connected_account_warning_map = z.object({
})

export type ConnectedAccountWarningMap = z.infer<
typeof _connected_account_warning_map
typeof connected_account_warning_map
>

export const connected_account = z.object({
Expand Down
8 changes: 4 additions & 4 deletions src/lib/seam/connect/models/devices/device.ts
Original file line number Diff line number Diff line change
Expand Up @@ -215,7 +215,7 @@ export const device_error = z

export type DeviceError = z.infer<typeof device_error>

const _device_error_map = z.object({
export const device_error_map = z.object({
device_offline: device_offline.optional().nullable(),
device_removed: device_removed.optional().nullable(),
hub_disconnected: hub_disconnected.optional().nullable(),
Expand All @@ -238,7 +238,7 @@ const _device_error_map = z.object({
lockly_missing_wifi_bridge: lockly_missing_wifi_bridge.optional().nullable(),
})

export type DeviceErrorMap = z.infer<typeof _device_error_map>
export type DeviceErrorMap = z.infer<typeof device_error_map>

const warning_code_description =
'Unique identifier of the type of warning. Enables quick recognition and categorization of the issue.'
Expand Down Expand Up @@ -524,7 +524,7 @@ const device_warning = z.discriminatedUnion('warning_code', [

export type DeviceWarning = z.infer<typeof device_warning>

const _device_warning_map = z.object({
export const device_warning_map = z.object({
partial_backup_access_code_pool: partial_backup_access_code_pool
.optional()
.nullable(),
Expand Down Expand Up @@ -577,7 +577,7 @@ const _device_warning_map = z.object({
max_access_codes_reached: max_access_codes_reached.optional().nullable(),
})

export type DeviceWarningMap = z.infer<typeof _device_warning_map>
export type DeviceWarningMap = z.infer<typeof device_warning_map>

export const device_provider_info = z
.object({
Expand Down
Loading