/* * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT. */ import { crmContactsCreate } from "../funcs/crmContactsCreate.js"; import { crmContactsDelete } from "../funcs/crmContactsDelete.js"; import { crmContactsGet } from "../funcs/crmContactsGet.js"; import { crmContactsList } from "../funcs/crmContactsList.js"; import { crmContactsUpdate } from "../funcs/crmContactsUpdate.js"; import { ClientSDK, RequestOptions } from "../lib/sdks.js"; import * as operations from "../models/operations/index.js"; import { unwrapAsync } from "../types/fp.js"; export class Contacts extends ClientSDK { /** * List contacts * * @remarks * List contacts */ async list( request: operations.CrmContactsAllRequest, options?: RequestOptions, ): Promise { return unwrapAsync(crmContactsList( this, request, options, )); } /** * Create contact * * @remarks * Create contact */ async create( request: operations.CrmContactsAddRequest, options?: RequestOptions, ): Promise { return unwrapAsync(crmContactsCreate( this, request, options, )); } /** * Get contact * * @remarks * Get contact */ async get( request: operations.CrmContactsOneRequest, options?: RequestOptions, ): Promise { return unwrapAsync(crmContactsGet( this, request, options, )); } /** * Update contact * * @remarks * Update contact */ async update( request: operations.CrmContactsUpdateRequest, options?: RequestOptions, ): Promise { return unwrapAsync(crmContactsUpdate( this, request, options, )); } /** * Delete contact * * @remarks * Delete contact */ async delete( request: operations.CrmContactsDeleteRequest, options?: RequestOptions, ): Promise { return unwrapAsync(crmContactsDelete( this, request, options, )); } }