mirror of
https://github.com/seerr-team/seerr.git
synced 2025-12-23 23:58:07 -05:00
* feat(notifications): added telegram thread id's * undid unwanted formatting * chore: remove manual translations * style: conformed formatting * fix: add missing migration * fix: corrected erroneous migration
42 lines
1.2 KiB
TypeScript
42 lines
1.2 KiB
TypeScript
import type { NotificationAgentKey } from '@server/lib/settings';
|
|
|
|
export interface UserSettingsGeneralResponse {
|
|
username?: string;
|
|
email?: string;
|
|
discordId?: string;
|
|
locale?: string;
|
|
discoverRegion?: string;
|
|
streamingRegion?: string;
|
|
originalLanguage?: string;
|
|
movieQuotaLimit?: number;
|
|
movieQuotaDays?: number;
|
|
tvQuotaLimit?: number;
|
|
tvQuotaDays?: number;
|
|
globalMovieQuotaDays?: number;
|
|
globalMovieQuotaLimit?: number;
|
|
globalTvQuotaLimit?: number;
|
|
globalTvQuotaDays?: number;
|
|
watchlistSyncMovies?: boolean;
|
|
watchlistSyncTv?: boolean;
|
|
}
|
|
|
|
export type NotificationAgentTypes = Record<NotificationAgentKey, number>;
|
|
export interface UserSettingsNotificationsResponse {
|
|
emailEnabled?: boolean;
|
|
pgpKey?: string;
|
|
discordEnabled?: boolean;
|
|
discordEnabledTypes?: number;
|
|
discordId?: string;
|
|
pushbulletAccessToken?: string;
|
|
pushoverApplicationToken?: string;
|
|
pushoverUserKey?: string;
|
|
pushoverSound?: string;
|
|
telegramEnabled?: boolean;
|
|
telegramBotUsername?: string;
|
|
telegramChatId?: string;
|
|
telegramMessageThreadId?: string;
|
|
telegramSendSilently?: boolean;
|
|
webPushEnabled?: boolean;
|
|
notificationTypes: Partial<NotificationAgentTypes>;
|
|
}
|