import { authenticateRequest } from "./utils/authenticate-request";
import { createRegistration as _createRegistration, getRegistrations as _getRegistrations, getRegistration as _getRegistration, updateRegistration as _updateRegistration, deleteRegistration as _deleteRegistration, } from "./orval/api/orval-events";
/**
 * create an event registration
 *
 * @param {ICreateRegistrationParams} options
 * @return {Promise<IRegistration>}
 */
export async function createRegistration(options) {
    options.token = await authenticateRequest(options);
    return _createRegistration(options.data, options);
}
/**
 * get registrations
 *
 * @param {IGetRegistrationsParams} options
 * @return {Promise<IPagedRegistrationResponse>}
 */
export async function getRegistrations(options) {
    options.token = await authenticateRequest(options);
    return _getRegistrations(options.data, options);
}
/**
 * get a registration
 *
 * @param {IGetRegistrationParams} options
 * @return {Promise<IRegistration>}
 */
export async function getRegistration(options) {
    options.token = await authenticateRequest(options);
    return _getRegistration(options.registrationId, options);
}
/**
 * update a registration
 *
 * @param {IUpdateRegistrationParams} options
 * @return {Promise<IRegistration>}
 */
export async function updateRegistration(options) {
    options.token = await authenticateRequest(options);
    return _updateRegistration(options.registrationId, options.data, options);
}
/**
 * delete a registration
 *
 * @param {IDeleteRegistrationParams} options
 * @return {Promise<IRegistration>}
 */
export async function deleteRegistration(options) {
    options.token = await authenticateRequest(options);
    return _deleteRegistration(options.registrationId, options);
}
//# sourceMappingURL=registrations.js.map