/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { APIPromise } from "../types/async.js"; import { unwrapAsync } from "../types/fp.js"; import { PageIterator, unwrapResultIterator } from "../types/operations.js"; let accountingQuotesList$module: | Promise | undefined; const accountingQuotesList = (( ...args: Parameters< typeof import("../funcs/accountingQuotesList.js").accountingQuotesList > ) => new APIPromise( (accountingQuotesList$module ??= import( "../funcs/accountingQuotesList.js" ).catch((error: unknown) => { accountingQuotesList$module = undefined; throw error; })).then((module) => module.accountingQuotesList(...args).$inspect()), )) as typeof import("../funcs/accountingQuotesList.js").accountingQuotesList; let accountingQuotesCreate$module: | Promise | undefined; const accountingQuotesCreate = (( ...args: Parameters< typeof import("../funcs/accountingQuotesCreate.js").accountingQuotesCreate > ) => new APIPromise( (accountingQuotesCreate$module ??= import( "../funcs/accountingQuotesCreate.js" ).catch((error: unknown) => { accountingQuotesCreate$module = undefined; throw error; })).then((module) => module.accountingQuotesCreate(...args).$inspect()), )) as typeof import("../funcs/accountingQuotesCreate.js").accountingQuotesCreate; let accountingQuotesGet$module: | Promise | undefined; const accountingQuotesGet = (( ...args: Parameters< typeof import("../funcs/accountingQuotesGet.js").accountingQuotesGet > ) => new APIPromise( (accountingQuotesGet$module ??= import("../funcs/accountingQuotesGet.js") .catch((error: unknown) => { accountingQuotesGet$module = undefined; throw error; })).then((module) => module.accountingQuotesGet(...args).$inspect()), )) as typeof import("../funcs/accountingQuotesGet.js").accountingQuotesGet; let accountingQuotesUpdate$module: | Promise | undefined; const accountingQuotesUpdate = (( ...args: Parameters< typeof import("../funcs/accountingQuotesUpdate.js").accountingQuotesUpdate > ) => new APIPromise( (accountingQuotesUpdate$module ??= import( "../funcs/accountingQuotesUpdate.js" ).catch((error: unknown) => { accountingQuotesUpdate$module = undefined; throw error; })).then((module) => module.accountingQuotesUpdate(...args).$inspect()), )) as typeof import("../funcs/accountingQuotesUpdate.js").accountingQuotesUpdate; let accountingQuotesDelete$module: | Promise | undefined; const accountingQuotesDelete = (( ...args: Parameters< typeof import("../funcs/accountingQuotesDelete.js").accountingQuotesDelete > ) => new APIPromise( (accountingQuotesDelete$module ??= import( "../funcs/accountingQuotesDelete.js" ).catch((error: unknown) => { accountingQuotesDelete$module = undefined; throw error; })).then((module) => module.accountingQuotesDelete(...args).$inspect()), )) as typeof import("../funcs/accountingQuotesDelete.js").accountingQuotesDelete; export class Quotes extends ClientSDK { /** * List Quotes * * @remarks * List Quotes */ async list( request: operations.AccountingQuotesAllRequest, options?: RequestOptions, ): Promise< PageIterator > { return unwrapResultIterator(accountingQuotesList( this, request, options, )); } /** * Create Quote * * @remarks * Create Quote */ async create( request: operations.AccountingQuotesAddRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingQuotesCreate( this, request, options, )); } /** * Get Quote * * @remarks * Get Quote */ async get( request: operations.AccountingQuotesOneRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingQuotesGet( this, request, options, )); } /** * Update Quote * * @remarks * Update Quote */ async update( request: operations.AccountingQuotesUpdateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingQuotesUpdate( this, request, options, )); } /** * Delete Quote * * @remarks * Delete Quote */ async delete( request: operations.AccountingQuotesDeleteRequest, options?: RequestOptions, ): Promise { return unwrapAsync(accountingQuotesDelete( this, request, options, )); } }