import { TaskAssignmentsPagenationParameters , TaskAssignment } from '../models/taskAssignments.models' ; export class TaskAssignmentsAPI { harvest ; baseUrl : string ; constructor ( harvest ) { this . baseUrl = '/v2/projects' ; this . harvest = harvest ; } public list ( projectId , query ) { return this . harvest . request ( 'GET' , `${ this . baseUrl }/${ projectId }/task_assignments` , query ) ; } public create ( projectId , data ) { return this . harvest . request ( 'POST' , `${ this . baseUrl }/${ projectId }/task_assignments` , data ) ; } public get ( projectId , id ) { return this . harvest . request ( 'GET' , `${ this . baseUrl }/${ projectId }/task_assignments/${ id }` ) ; } public update ( projectId , id , data ) { return this . harvest . request ( 'PATCH' , `${ this . baseUrl }/${ projectId }/task_assignments/${ id }` , data ) ; } public delete ( projectId , id ) { return this . harvest . request ( 'DELETE' , `${ this . baseUrl }/${ projectId }/task_assignments/${ id }` ) ; } }