/* * 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 crmListsList$module: | Promise | undefined; const crmListsList = (( ...args: Parameters ) => new APIPromise( (crmListsList$module ??= import("../funcs/crmListsList.js").catch( (error: unknown) => { crmListsList$module = undefined; throw error; }, )).then((module) => module.crmListsList(...args).$inspect()), )) as typeof import("../funcs/crmListsList.js").crmListsList; let crmListsGet$module: | Promise | undefined; const crmListsGet = (( ...args: Parameters ) => new APIPromise( (crmListsGet$module ??= import("../funcs/crmListsGet.js").catch( (error: unknown) => { crmListsGet$module = undefined; throw error; }, )).then((module) => module.crmListsGet(...args).$inspect()), )) as typeof import("../funcs/crmListsGet.js").crmListsGet; export class Lists extends ClientSDK { /** * List lists * * @remarks * List lists */ async list( request: operations.CrmListsAllRequest, options?: RequestOptions, ): Promise> { return unwrapResultIterator(crmListsList( this, request, options, )); } /** * Get list * * @remarks * Get list */ async get( request: operations.CrmListsOneRequest, options?: RequestOptions, ): Promise { return unwrapAsync(crmListsGet( this, request, options, )); } }