UNPKG

boldsign

Version:

NodeJS client for boldsign

29 lines (28 loc) 1.44 kB
import { Authentication, Interceptor, ApiKeyAuth, ContactDetails, ContactsDetails, ContactsList, CreateContactResponse } from '../model'; import { optionsI, returnTypeI } from './'; export declare class ContactsApi { protected _basePath: string; protected _defaultHeaders: any; protected _useQuerystring: boolean; protected authentications: { default: Authentication; Bearer: ApiKeyAuth; 'X-API-KEY': ApiKeyAuth; }; protected interceptors: Interceptor[]; constructor(basePath?: string); set useQuerystring(value: boolean); set basePath(basePath: string); set defaultHeaders(defaultHeaders: any); get defaultHeaders(): any; get basePath(): string; setDefaultAuthentication(auth: Authentication): void; setApiKey(apikey: string): void; setAccessToken(accessToken: string): void; addInterceptor(interceptor: Interceptor): void; contactUserList(page: number, pageSize?: number, searchKey?: string, contactType?: 'MyContacts' | 'AllContacts', options?: optionsI): Promise<ContactsList>; createContact(contactDetails?: Array<ContactDetails>, options?: optionsI): Promise<CreateContactResponse>; deleteContacts(id: string, options?: optionsI): Promise<returnTypeI>; getContact(id: string, options?: optionsI): Promise<ContactsDetails>; updateContact(id?: string, contactDetails?: ContactDetails, options?: optionsI): Promise<returnTypeI>; }