"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.Companies = void 0;
const crmCompaniesCreate_js_1 = require("../funcs/crmCompaniesCreate.js");
const crmCompaniesDelete_js_1 = require("../funcs/crmCompaniesDelete.js");
const crmCompaniesGet_js_1 = require("../funcs/crmCompaniesGet.js");
const crmCompaniesList_js_1 = require("../funcs/crmCompaniesList.js");
const crmCompaniesUpdate_js_1 = require("../funcs/crmCompaniesUpdate.js");
const sdks_js_1 = require("../lib/sdks.js");
const fp_js_1 = require("../types/fp.js");
const operations_js_1 = require("../types/operations.js");
class Companies extends sdks_js_1.ClientSDK {
    /**
     * List companies
     *
     * @remarks
     * List companies
     */
    async list(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, crmCompaniesList_js_1.crmCompaniesList)(this, request, options));
    }
    /**
     * Create company
     *
     * @remarks
     * Create company
     */
    async create(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, crmCompaniesCreate_js_1.crmCompaniesCreate)(this, request, options));
    }
    /**
     * Get company
     *
     * @remarks
     * Get company
     */
    async get(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, crmCompaniesGet_js_1.crmCompaniesGet)(this, request, options));
    }
    /**
     * Update company
     *
     * @remarks
     * Update company
     */
    async update(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, crmCompaniesUpdate_js_1.crmCompaniesUpdate)(this, request, options));
    }
    /**
     * Delete company
     *
     * @remarks
     * Delete company
     */
    async delete(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, crmCompaniesDelete_js_1.crmCompaniesDelete)(this, request, options));
    }
}
exports.Companies = Companies;
//# sourceMappingURL=companies.js.map