resolve issues with new features
This commit is contained in:
@@ -6,6 +6,11 @@ interface ApiResponse<T> {
|
||||
data: T;
|
||||
}
|
||||
|
||||
export interface PdfSettings {
|
||||
pdf_header: string;
|
||||
pdf_footer: string;
|
||||
}
|
||||
|
||||
export const configApi = {
|
||||
getExternalLinks(): Promise<ExternalLinks> {
|
||||
return api
|
||||
@@ -17,4 +22,9 @@ export const configApi = {
|
||||
.get<ApiResponse<ServiceModeStatus>>('/api/config/service-mode')
|
||||
.then((r) => r.data.data);
|
||||
},
|
||||
getPdfSettings(): Promise<PdfSettings> {
|
||||
return api
|
||||
.get<ApiResponse<PdfSettings>>('/api/config/pdf-settings')
|
||||
.then((r) => r.data.data);
|
||||
},
|
||||
};
|
||||
|
||||
@@ -28,4 +28,12 @@ export const notificationsApi = {
|
||||
async markAllRead(): Promise<void> {
|
||||
await api.post('/api/notifications/mark-all-read');
|
||||
},
|
||||
|
||||
async dismissByType(quellTyp: string): Promise<void> {
|
||||
await api.post('/api/notifications/dismiss-by-type', { quellTyp });
|
||||
},
|
||||
|
||||
async deleteAllRead(): Promise<void> {
|
||||
await api.delete('/api/notifications/read');
|
||||
},
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user