import { ICreateNotificationTemplateDto } from '@notifire/shared' ; import { api } from './api.client' ; export async function createTemplate ( data ) { return api . post ( `/v1/notification-templates` , data ) ; } export async function updateTemplate ( templateId , data ) { return api . put ( `/v1/notification-templates/${ templateId }` , data ) ; } export async function getTemplateById ( id ) { return api . get ( `/v1/notification-templates/${ id }` ) ; } export async function updateTemplateStatus ( templateId , active ) { return api . put ( `/v1/notification-templates/${ templateId }/status` , { active } ) ; }