import client from '../client' ; import { AxiosRequestConfig } from 'axios' ; export interface RemoveArgs { id : string ; } export async function workScheduleExclusionRemove ( opts , context ) { const { id } = opts || { } ; if ( ! id ) throw new Error ( 'You should provide `id`' ) ; const res = await client . delete ( `/workschedule_exclusions/${ id }` , context ) ; return res ?. data ?. data [ 0 ] ; }