/*
 * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
 */
import { academicSessionsCreate } from "../funcs/academicSessionsCreate.js";
import { academicSessionsDelete } from "../funcs/academicSessionsDelete.js";
import { academicSessionsGet } from "../funcs/academicSessionsGet.js";
import { academicSessionsGetAll } from "../funcs/academicSessionsGetAll.js";
import { academicSessionsUpdate } from "../funcs/academicSessionsUpdate.js";
import { ClientSDK } from "../lib/sdks.js";
import { unwrapAsync } from "../types/fp.js";
import { unwrapResultIterator } from "../types/operations.js";
export class AcademicSessions extends ClientSDK {
    /**
     * Get all Academic Sessions
     *
     * @remarks
     * To get all Academic Sessions on the service provider.
     */
    async getAll(request, options) {
        return unwrapResultIterator(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 unwrapAsync(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 unwrapAsync(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 unwrapAsync(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 unwrapAsync(academicSessionsDelete(this, request, options));
    }
}
//# sourceMappingURL=academicsessions.js.map