diff --git a/app/client/api-client/types.gen.ts b/app/client/api-client/types.gen.ts index 0c356714..eb1ec1f4 100644 --- a/app/client/api-client/types.gen.ts +++ b/app/client/api-client/types.gen.ts @@ -2970,7 +2970,7 @@ export type GetScheduleNotificationsResponses = { config: | { apiToken: string; - priority: -1 | 0 | 1; + priority: -1 | -2 | 0 | 1 | 2; type: "pushover"; userKey: string; devices?: string; @@ -3080,7 +3080,7 @@ export type UpdateScheduleNotificationsResponses = { config: | { apiToken: string; - priority: -1 | 0 | 1; + priority: -1 | -2 | 0 | 1 | 2; type: "pushover"; userKey: string; devices?: string; @@ -3655,7 +3655,7 @@ export type ListNotificationDestinationsResponses = { config: | { apiToken: string; - priority: -1 | 0 | 1; + priority: -1 | -2 | 0 | 1 | 2; type: "pushover"; userKey: string; devices?: string; @@ -3736,7 +3736,7 @@ export type CreateNotificationDestinationData = { config: | { apiToken: string; - priority: -1 | 0 | 1; + priority: -1 | -2 | 0 | 1 | 2; type: "pushover"; userKey: string; devices?: string; @@ -3815,7 +3815,7 @@ export type CreateNotificationDestinationResponses = { config: | { apiToken: string; - priority: -1 | 0 | 1; + priority: -1 | -2 | 0 | 1 | 2; type: "pushover"; userKey: string; devices?: string; @@ -3943,7 +3943,7 @@ export type GetNotificationDestinationResponses = { config: | { apiToken: string; - priority: -1 | 0 | 1; + priority: -1 | -2 | 0 | 1 | 2; type: "pushover"; userKey: string; devices?: string; @@ -4024,7 +4024,7 @@ export type UpdateNotificationDestinationData = { config?: | { apiToken: string; - priority: -1 | 0 | 1; + priority: -1 | -2 | 0 | 1 | 2; type: "pushover"; userKey: string; devices?: string; @@ -4113,7 +4113,7 @@ export type UpdateNotificationDestinationResponses = { config: | { apiToken: string; - priority: -1 | 0 | 1; + priority: -1 | -2 | 0 | 1 | 2; type: "pushover"; userKey: string; devices?: string; diff --git a/app/client/modules/notifications/components/notification-forms/pushover-form.tsx b/app/client/modules/notifications/components/notification-forms/pushover-form.tsx index e49dd2e6..0351afe4 100644 --- a/app/client/modules/notifications/components/notification-forms/pushover-form.tsx +++ b/app/client/modules/notifications/components/notification-forms/pushover-form.tsx @@ -71,9 +71,11 @@ export const PushoverForm = ({ form }: Props) => { + Lowest (-2) Low (-1) Normal (0) High (1) + Emergency (2) Message priority level. diff --git a/app/schemas/notifications.ts b/app/schemas/notifications.ts index e5cc379a..2411ddd8 100644 --- a/app/schemas/notifications.ts +++ b/app/schemas/notifications.ts @@ -64,7 +64,7 @@ export const pushoverNotificationConfigSchema = type({ userKey: "string", apiToken: "string", devices: "string?", - priority: "-1 | 0 | 1", + priority: "-2 | -1 | 0 | 1 | 2", }); export const telegramNotificationConfigSchema = type({