UNPKG

notarize-node-client

Version:
30 lines (29 loc) 870 B
import type { Notarize, NotarizeOptions } from './'; import type { Document } from './transaction'; export declare class DocumentApi { client: Notarize; constructor(client: Notarize, options?: NotarizeOptions); get(id: string, documentId: string): Promise<{ success: boolean; document?: Document; errors?: string[]; }>; update(id: string, doc: { name?: string; trackingId?: string; customerCanAnnotate?: boolean; notarizationRequired?: boolean; identityConfirmationRequired?: boolean; witnessRequired?: boolean; authorizationHeader?: string; }): Promise<{ success: boolean; document?: Document; errors?: string[]; }>; delete(id: string): Promise<{ success: boolean; error?: string; message?: string; }>; }