"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.AssessmentResults = void 0;
const assessmentResultsCreate_js_1 = require("../funcs/assessmentResultsCreate.js");
const assessmentResultsDelete_js_1 = require("../funcs/assessmentResultsDelete.js");
const assessmentResultsGet_js_1 = require("../funcs/assessmentResultsGet.js");
const assessmentResultsGetAll_js_1 = require("../funcs/assessmentResultsGetAll.js");
const assessmentResultsUpdate_js_1 = require("../funcs/assessmentResultsUpdate.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 AssessmentResults extends sdks_js_1.ClientSDK {
    /**
     * Get all Assessment Results
     *
     * @remarks
     * Get all of the Assessment Results on the service provider.
     */
    async getAll(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, assessmentResultsGetAll_js_1.assessmentResultsGetAll)(this, request, options));
    }
    /**
     * Create an Assessment Result
     *
     * @remarks
     * To create an Assessment Result. The responding system must return the set of sourcedIds that have been allocated to the newly created assessmentResult record. An Assessment Line Item sourcedId and Student sourcedId MUST be provided when creating an assessmentResult.
     */
    async create(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, assessmentResultsCreate_js_1.assessmentResultsCreate)(this, request, options));
    }
    /**
     * Get an Assessment Result
     *
     * @remarks
     * Get a specific Assessment Result on the service provider. If the corresponding record cannot be located, the api will return a 404 error code and message 'Assessment result not found.'
     */
    async get(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, assessmentResultsGet_js_1.assessmentResultsGet)(this, request, options));
    }
    /**
     * Update an Assessment Result
     *
     * @remarks
     * To update an existing Assessment Result. 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, assessmentResultsUpdate_js_1.assessmentResultsUpdate)(this, request, options));
    }
    /**
     * Delete an Assessment Result
     *
     * @remarks
     * Perform a soft delete on a specific Assessment Result on the service provider. This operation changes the status of the Assessment Result to 'tobedeleted'.
     */
    async delete(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, assessmentResultsDelete_js_1.assessmentResultsDelete)(this, request, options));
    }
}
exports.AssessmentResults = AssessmentResults;
//# sourceMappingURL=assessmentresults.js.map