import { apiGet, apiPostNoContent } from "@/api/api"; import { notificationFeedSchema, type NotificationFeed, } from "@/domain/notifications/types/notification-feed"; export const notificationsApi = { feed: async (): Promise => notificationFeedSchema.parse(await apiGet("notifications")), /** Records who acknowledged the missed response deadline in the work order's audit history. */ acknowledgeSlaBreach: (workOrderId: number): Promise => apiPostNoContent(`notifications/sla/${workOrderId}/acknowledge`), };