import { apiClient } from '../../ApiClient'; import { NOTIFICATIONS_LIST, NOTIFICATIONS_MARK_READ, NOTIFICATIONS_MARK_ALL_READ, } from '@archer/api-interface/endpoints/customer-api'; import type { NotificationResponse } from '@archer/api-interface/schemas/customer-api/response'; export const notificationsApi = { async list(): Promise { return apiClient.get(NOTIFICATIONS_LIST.path); }, async markRead(id: string): Promise { return apiClient.patch( NOTIFICATIONS_MARK_READ.path.replace(':id', id), ); }, async markAllRead(): Promise<{ count: number }> { return apiClient.post<{ count: number }>(NOTIFICATIONS_MARK_ALL_READ.path); }, };