"use strict";
/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
Object.defineProperty(exports, "__esModule", { value: true });
exports.AcademicSessions = void 0;
const academicSessionsCreate_js_1 = require("../funcs/academicSessionsCreate.js");
const academicSessionsDelete_js_1 = require("../funcs/academicSessionsDelete.js");
const academicSessionsGet_js_1 = require("../funcs/academicSessionsGet.js");
const academicSessionsGetAll_js_1 = require("../funcs/academicSessionsGetAll.js");
const academicSessionsUpdate_js_1 = require("../funcs/academicSessionsUpdate.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 AcademicSessions extends sdks_js_1.ClientSDK {
    /**
     * Get all Academic Sessions
     *
     * @remarks
     * To get all Academic Sessions on the service provider.
     */
    async getAll(request, options) {
        return (0, operations_js_1.unwrapResultIterator)((0, academicSessionsGetAll_js_1.academicSessionsGetAll)(this, request, options));
    }
    /**
     * Create an Academic Session
     *
     * @remarks
     * To create a new academic session. The responding system must return the set of sourcedIds that have been allocated to the newly created academicSession record.
     */
    async create(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, academicSessionsCreate_js_1.academicSessionsCreate)(this, request, options));
    }
    /**
     * Get a specific Academic Session
     *
     * @remarks
     * Get a specific Academic Session on the service provider. If the corresponding record cannot be located, the api will return a 404 error code and message 'Academic session not found.'
     */
    async get(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, academicSessionsGet_js_1.academicSessionsGet)(this, request, options));
    }
    /**
     * Update an Academic Session
     *
     * @remarks
     * To update an existing Academic Session. 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, academicSessionsUpdate_js_1.academicSessionsUpdate)(this, request, options));
    }
    /**
     * Delete an Academic Session
     *
     * @remarks
     * Perform a soft delete on a specific Academic Session on the service provider. This operation changes the status of the Academic Session to 'tobedeleted'.
     */
    async delete(request, options) {
        return (0, fp_js_1.unwrapAsync)((0, academicSessionsDelete_js_1.academicSessionsDelete)(this, request, options));
    }
}
exports.AcademicSessions = AcademicSessions;
//# sourceMappingURL=academicsessions.js.map