chore: fix typing issue
This commit is contained in:
parent
8c4939af4e
commit
43dfe6b190
2 changed files with 55 additions and 7 deletions
|
|
@ -1841,6 +1841,12 @@ export type GetScheduleNotificationsResponses = {
|
||||||
createdAt: number;
|
createdAt: number;
|
||||||
destination: {
|
destination: {
|
||||||
config: {
|
config: {
|
||||||
|
apiToken: string;
|
||||||
|
priority: -1 | 0 | 1;
|
||||||
|
type: 'pushover';
|
||||||
|
userKey: string;
|
||||||
|
devices?: string;
|
||||||
|
} | {
|
||||||
from: string;
|
from: string;
|
||||||
password: string;
|
password: string;
|
||||||
smtpHost: string;
|
smtpHost: string;
|
||||||
|
|
@ -1879,7 +1885,7 @@ export type GetScheduleNotificationsResponses = {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'slack';
|
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack';
|
||||||
updatedAt: number;
|
updatedAt: number;
|
||||||
};
|
};
|
||||||
destinationId: number;
|
destinationId: number;
|
||||||
|
|
@ -1916,6 +1922,12 @@ export type UpdateScheduleNotificationsResponses = {
|
||||||
createdAt: number;
|
createdAt: number;
|
||||||
destination: {
|
destination: {
|
||||||
config: {
|
config: {
|
||||||
|
apiToken: string;
|
||||||
|
priority: -1 | 0 | 1;
|
||||||
|
type: 'pushover';
|
||||||
|
userKey: string;
|
||||||
|
devices?: string;
|
||||||
|
} | {
|
||||||
from: string;
|
from: string;
|
||||||
password: string;
|
password: string;
|
||||||
smtpHost: string;
|
smtpHost: string;
|
||||||
|
|
@ -1954,7 +1966,7 @@ export type UpdateScheduleNotificationsResponses = {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'slack';
|
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack';
|
||||||
updatedAt: number;
|
updatedAt: number;
|
||||||
};
|
};
|
||||||
destinationId: number;
|
destinationId: number;
|
||||||
|
|
@ -1980,6 +1992,12 @@ export type ListNotificationDestinationsResponses = {
|
||||||
*/
|
*/
|
||||||
200: Array<{
|
200: Array<{
|
||||||
config: {
|
config: {
|
||||||
|
apiToken: string;
|
||||||
|
priority: -1 | 0 | 1;
|
||||||
|
type: 'pushover';
|
||||||
|
userKey: string;
|
||||||
|
devices?: string;
|
||||||
|
} | {
|
||||||
from: string;
|
from: string;
|
||||||
password: string;
|
password: string;
|
||||||
smtpHost: string;
|
smtpHost: string;
|
||||||
|
|
@ -2018,7 +2036,7 @@ export type ListNotificationDestinationsResponses = {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'slack';
|
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack';
|
||||||
updatedAt: number;
|
updatedAt: number;
|
||||||
}>;
|
}>;
|
||||||
};
|
};
|
||||||
|
|
@ -2028,6 +2046,12 @@ export type ListNotificationDestinationsResponse = ListNotificationDestinationsR
|
||||||
export type CreateNotificationDestinationData = {
|
export type CreateNotificationDestinationData = {
|
||||||
body?: {
|
body?: {
|
||||||
config: {
|
config: {
|
||||||
|
apiToken: string;
|
||||||
|
priority: -1 | 0 | 1;
|
||||||
|
type: 'pushover';
|
||||||
|
userKey: string;
|
||||||
|
devices?: string;
|
||||||
|
} | {
|
||||||
from: string;
|
from: string;
|
||||||
password: string;
|
password: string;
|
||||||
smtpHost: string;
|
smtpHost: string;
|
||||||
|
|
@ -2075,6 +2099,12 @@ export type CreateNotificationDestinationResponses = {
|
||||||
*/
|
*/
|
||||||
201: {
|
201: {
|
||||||
config: {
|
config: {
|
||||||
|
apiToken: string;
|
||||||
|
priority: -1 | 0 | 1;
|
||||||
|
type: 'pushover';
|
||||||
|
userKey: string;
|
||||||
|
devices?: string;
|
||||||
|
} | {
|
||||||
from: string;
|
from: string;
|
||||||
password: string;
|
password: string;
|
||||||
smtpHost: string;
|
smtpHost: string;
|
||||||
|
|
@ -2113,7 +2143,7 @@ export type CreateNotificationDestinationResponses = {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'slack';
|
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack';
|
||||||
updatedAt: number;
|
updatedAt: number;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -2169,6 +2199,12 @@ export type GetNotificationDestinationResponses = {
|
||||||
*/
|
*/
|
||||||
200: {
|
200: {
|
||||||
config: {
|
config: {
|
||||||
|
apiToken: string;
|
||||||
|
priority: -1 | 0 | 1;
|
||||||
|
type: 'pushover';
|
||||||
|
userKey: string;
|
||||||
|
devices?: string;
|
||||||
|
} | {
|
||||||
from: string;
|
from: string;
|
||||||
password: string;
|
password: string;
|
||||||
smtpHost: string;
|
smtpHost: string;
|
||||||
|
|
@ -2207,7 +2243,7 @@ export type GetNotificationDestinationResponses = {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'slack';
|
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack';
|
||||||
updatedAt: number;
|
updatedAt: number;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
@ -2217,6 +2253,12 @@ export type GetNotificationDestinationResponse = GetNotificationDestinationRespo
|
||||||
export type UpdateNotificationDestinationData = {
|
export type UpdateNotificationDestinationData = {
|
||||||
body?: {
|
body?: {
|
||||||
config?: {
|
config?: {
|
||||||
|
apiToken: string;
|
||||||
|
priority: -1 | 0 | 1;
|
||||||
|
type: 'pushover';
|
||||||
|
userKey: string;
|
||||||
|
devices?: string;
|
||||||
|
} | {
|
||||||
from: string;
|
from: string;
|
||||||
password: string;
|
password: string;
|
||||||
smtpHost: string;
|
smtpHost: string;
|
||||||
|
|
@ -2274,6 +2316,12 @@ export type UpdateNotificationDestinationResponses = {
|
||||||
*/
|
*/
|
||||||
200: {
|
200: {
|
||||||
config: {
|
config: {
|
||||||
|
apiToken: string;
|
||||||
|
priority: -1 | 0 | 1;
|
||||||
|
type: 'pushover';
|
||||||
|
userKey: string;
|
||||||
|
devices?: string;
|
||||||
|
} | {
|
||||||
from: string;
|
from: string;
|
||||||
password: string;
|
password: string;
|
||||||
smtpHost: string;
|
smtpHost: string;
|
||||||
|
|
@ -2312,7 +2360,7 @@ export type UpdateNotificationDestinationResponses = {
|
||||||
enabled: boolean;
|
enabled: boolean;
|
||||||
id: number;
|
id: number;
|
||||||
name: string;
|
name: string;
|
||||||
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'slack';
|
type: 'custom' | 'discord' | 'email' | 'gotify' | 'ntfy' | 'pushover' | 'slack';
|
||||||
updatedAt: number;
|
updatedAt: number;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
|
||||||
|
|
@ -68,7 +68,7 @@ const defaultValuesForType = {
|
||||||
type: "pushover" as const,
|
type: "pushover" as const,
|
||||||
userKey: "",
|
userKey: "",
|
||||||
apiToken: "",
|
apiToken: "",
|
||||||
priority: 0,
|
priority: 0 as const,
|
||||||
},
|
},
|
||||||
custom: {
|
custom: {
|
||||||
type: "custom" as const,
|
type: "custom" as const,
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue