chore: build
This commit is contained in:
@@ -147,6 +147,16 @@ export interface AlertSettings {
|
||||
telegram_chat_id: string
|
||||
}
|
||||
|
||||
export interface AlertChannelResult {
|
||||
ok: boolean
|
||||
error?: string
|
||||
}
|
||||
|
||||
export interface TestAlertSettingsResponse {
|
||||
discord?: AlertChannelResult
|
||||
telegram?: AlertChannelResult
|
||||
}
|
||||
|
||||
export interface AppDownload {
|
||||
name: string
|
||||
size_bytes: number
|
||||
@@ -232,6 +242,8 @@ export const api = {
|
||||
getAlertSettings: () => request<AlertSettings>('GET', '/profile/alerts'),
|
||||
setAlertSettings: (settings: AlertSettings) =>
|
||||
request<AlertSettings>('POST', '/profile/alerts', settings),
|
||||
testAlertSettings: (settings: AlertSettings) =>
|
||||
request<TestAlertSettingsResponse>('POST', '/profile/alerts/test', settings),
|
||||
|
||||
listAppDownloads: () => request<AppDownloadsResponse>('GET', '/apps'),
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user