"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.ScoreScales = void 0;
const scoreScalesCreate_js_1 = require("../funcs/scoreScalesCreate.js");
const scoreScalesDelete_js_1 = require("../funcs/scoreScalesDelete.js");
const scoreScalesGet_js_1 = require("../funcs/scoreScalesGet.js");
const scoreScalesList_js_1 = require("../funcs/scoreScalesList.js");
const scoreScalesUpdate_js_1 = require("../funcs/scoreScalesUpdate.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 ScoreScales extends sdks_js_1.ClientSDK {
    /**
     * Get all Score Scales
     *
     * @remarks
     * Get all of the ScoreScales on the service provider.
     */
    async list(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, scoreScalesList_js_1.scoreScalesList)(this, request, options));
    }
    /**
     * Create a Score Scale
     *
     * @remarks
     * To create a new scoreScale. The responding system must return the set of sourcedIds that have been allocated to the newly created scoreScale records.
     */
    async create(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, scoreScalesCreate_js_1.scoreScalesCreate)(this, request, options));
    }
    /**
     * Get a Score Scale
     *
     * @remarks
     * Get a specific scoreScale on the service provider.
     */
    async get(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, scoreScalesGet_js_1.scoreScalesGet)(this, request, options));
    }
    /**
     * Update a Score Scale
     *
     * @remarks
     * To update an existing scoreScale. The sourcedId for the record to be updated is supplied by the requesting system.
     */
    async update(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, scoreScalesUpdate_js_1.scoreScalesUpdate)(this, request, options));
    }
    /**
     * Delete a Score Scale
     *
     * @remarks
     * Perform a soft delete on a specific ScoreScale on the service provider. This operation changes the status of the ScoreScale to 'tobedeleted'.
     */
    async delete(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, scoreScalesDelete_js_1.scoreScalesDelete)(this, request, options));
    }
}
exports.ScoreScales = ScoreScales;
//# sourceMappingURL=scorescales.js.map