import { EstimateMessagesPagenationParameters , EstimateMessage } from '../models/estimateMessages.models' ; export class EstimateMessagesAPI { harvest ; baseUrl : string ; constructor ( harvest ) { this . baseUrl = '/v2/estimates' ; this . harvest = harvest ; } public list ( estimateId , query ) { return this . harvest . request ( 'GET' , `${ this . baseUrl }/${ estimateId }/messages` , query ) ; } public create ( estimateId , data ) { return this . harvest . request ( 'POST' , `${ this . baseUrl }/${ estimateId }/messages` , data ) ; } public delete ( estimateId , id ) { return this . harvest . request ( 'DELETE' , `${ this . baseUrl }/${ estimateId }/messages/${ id }` ) ; } }