import PersonalContactInfo from '../definitions/PersonalContactInfo'; import PagingResult from '../PagingResult'; import PathSegment from '../PathSegment'; export default class Contact extends PathSegment { constructor(prv: PathSegment, id?: string, service?: any); /** * Create New Contact */ post(body: PersonalContactInfo): Promise; /** * Get Contact List */ list(query?: ListQuery): Promise>; /** * Delete Contact by ID */ delete(): Promise; /** * Get Contact by ID */ get(): Promise; /** * Update Contact by ID */ put(body: PersonalContactInfo): Promise; } export interface ListQuery { /** * Phone number in E.164 (11-digits) format with or without plus '+'. Multiple values are supported */ phoneNumber?: string; /** * If specified, only contacts whose First name or Last name start with the mentioned substring are returned. Case-insensitive */ startsWith?: string; /** * Sorts results by the specified property. The default is 'First Name' */ sortBy?: 'FirstName' | 'LastName' | 'Company'; /** * Indicates the page number to retrieve. Only positive number values are allowed. Default value is '1' */ page?: number; /** * Indicates the page size (number of items). If not specified, the value is '100' by default */ perPage?: number; }