import { IContactCreateRequest, IContactResponse, IContactsGetParams, IContactsResponse, IContactUpdateRequest } from '../Intellipush.types'; import ApiBase from './Base'; export interface IContactModule { create(params: IContactCreateRequest): Promise; update(params: Partial): Promise; get(id: string): Promise; getContacts(params: IContactsGetParams): Promise; delete(id: string): Promise; } export default class Contact extends ApiBase implements IContactModule { prefix: string; create(params: IContactCreateRequest): Promise; update(params: IContactUpdateRequest): Promise; get(id: string): Promise; getContacts(params: IContactsGetParams): Promise; delete(id: string): Promise; }