export class Contacts { private api ; constructor ( api ) { this . api = api ; } public async getAll ( page , limit = 20 , query ? ) { try { const resp = await this . api . get ( '/api/contacts?with=contactfields' , { body : { page , limit , query } , } ) ; return resp . body ; } catch ( err ) { throw err ; } } }