import { NotificationRuleDto } from '../proxy/notification/models' import apiService from './api.service' export const getMyNotificationTypes = () => apiService.fetchData({ method: 'GET', url: `/api/app/notification-rule/my-notification-types`, }) export const getMyNotificationRules = () => apiService.fetchData({ method: 'GET', url: `/api/app/notification-rule/my-notification-rules`, }) export const postMyNotificationRule = (data: { channel: string notificationType: string isActive: boolean }) => apiService.fetchData({ method: 'POST', url: `/api/app/notification-rule/my-notification-rule`, data, }) export const deleteMyNotificationRules = (notificationType: string) => apiService.fetchData({ method: 'DELETE', url: `/api/app/notification-rule/my-notification-rules`, params: { notificationType }, })