UNPKG

zohobooks-sdk

Version:
24 lines (23 loc) 859 B
import { ZohoBooksApi } from "../../api"; import { ApiClient } from "common/api-client"; import { Estimate, EstimateResponse, EstimateListResponse } from "./types"; export declare class Estimates extends ApiClient { constructor(baseApi: ZohoBooksApi); create(data: Partial<Estimate>): Promise<EstimateResponse>; list(): Promise<EstimateListResponse>; get(estimateId: string): Promise<EstimateResponse>; update(estimateId: string, data: Partial<Estimate>): Promise<EstimateResponse>; delete(estimateId: string): Promise<{ code: number; message: string; }>; sendEmail(estimateId: string): Promise<{ code: number; message: string; }>; markAsSent(estimateId: string): Promise<{ code: number; message: string; }>; convertToInvoice(estimateId: string): Promise<any>; }