"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.CourseComponents = void 0;
const courseComponentsDelete_js_1 = require("../funcs/courseComponentsDelete.js");
const courseComponentsGetAll_js_1 = require("../funcs/courseComponentsGetAll.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 CourseComponents extends sdks_js_1.ClientSDK {
    /**
     * Get all Course Components
     *
     * @remarks
     * To get all Course Components on the service provider.
     */
    async getAll(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, courseComponentsGetAll_js_1.courseComponentsGetAll)(this, request, options));
    }
    /**
     * Delete a Course Component
     *
     * @remarks
     * Perform a soft delete on a specific Course Component on the service provider. The operation changes the status of the Course Component to 'tobedeleted'.
     */
    async delete(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, courseComponentsDelete_js_1.courseComponentsDelete)(this, request, options));
    }
}
exports.CourseComponents = CourseComponents;
//# sourceMappingURL=coursecomponents.js.map