Skip to content
Open
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
16 changes: 8 additions & 8 deletions app/client/api-client/types.gen.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down Expand Up @@ -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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,11 @@ export const PushoverForm = ({ form }: Props) => {
</SelectTrigger>
</FormControl>
<SelectContent>
<SelectItem value="-2">Lowest (-2)</SelectItem>
<SelectItem value="-1">Low (-1)</SelectItem>
<SelectItem value="0">Normal (0)</SelectItem>
<SelectItem value="1">High (1)</SelectItem>
<SelectItem value="2">Emergency (2)</SelectItem>
</SelectContent>
</Select>
<FormDescription>Message priority level.</FormDescription>
Expand Down
2 changes: 1 addition & 1 deletion app/schemas/notifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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({
Expand Down