chore: build
ci-web / test (push) Canceled after 0s
ci-api / test (push) Successful in 26m5s

This commit is contained in:
Xor290
2026-08-18 22:06:23 +02:00
parent 47a11b6601
commit e19fa4e82c
8 changed files with 167 additions and 46 deletions
+12
View File
@@ -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'),
}