"use strict";
Object.defineProperty(exports, "__esModule", { value: true });
exports.deleteRegistration = exports.updateRegistration = exports.getRegistration = exports.getRegistrations = exports.createRegistration = exports.deleteEvent = exports.updateEvent = exports.getEvent = exports.searchEvents = exports.createEvent = exports.EventAccess = exports.EventAssociationEntityType = exports.EventAttendanceType = exports.EventLocationType = exports.EventStatus = exports.RegistrationRole = exports.RegistrationStatus = exports.EventsSearchFormat = exports.GetEventsInclude = exports.EventSort = exports.EventSortOrder = exports.RegistrationSort = void 0;
/* tslint:disable:interface-over-type-literal */
/**
 * Generated by orval v6.31.0 🍺
 * Do not edit manually.
 * Hub Events Service
 * OpenAPI spec version: 0.0.1
 */
const custom_client_1 = require("../custom-client");
var RegistrationSort;
(function (RegistrationSort) {
    RegistrationSort["createdAt"] = "createdAt";
    RegistrationSort["updatedAt"] = "updatedAt";
    RegistrationSort["firstName"] = "firstName";
    RegistrationSort["lastName"] = "lastName";
    RegistrationSort["username"] = "username";
})(RegistrationSort || (exports.RegistrationSort = RegistrationSort = {}));
var EventSortOrder;
(function (EventSortOrder) {
    EventSortOrder["asc"] = "asc";
    EventSortOrder["desc"] = "desc";
})(EventSortOrder || (exports.EventSortOrder = EventSortOrder = {}));
var EventSort;
(function (EventSort) {
    EventSort["title"] = "title";
    EventSort["startDateTime"] = "startDateTime";
    EventSort["createdAt"] = "createdAt";
    EventSort["updatedAt"] = "updatedAt";
})(EventSort || (exports.EventSort = EventSort = {}));
var GetEventsInclude;
(function (GetEventsInclude) {
    GetEventsInclude["associations"] = "associations";
    GetEventsInclude["creator"] = "creator";
    GetEventsInclude["location"] = "location";
    GetEventsInclude["onlineMeeting"] = "onlineMeeting";
    GetEventsInclude["registrations"] = "registrations";
})(GetEventsInclude || (exports.GetEventsInclude = GetEventsInclude = {}));
var EventsSearchFormat;
(function (EventsSearchFormat) {
    EventsSearchFormat["csv"] = "csv";
    EventsSearchFormat["json"] = "json";
})(EventsSearchFormat || (exports.EventsSearchFormat = EventsSearchFormat = {}));
var RegistrationStatus;
(function (RegistrationStatus) {
    RegistrationStatus["PENDING"] = "PENDING";
    RegistrationStatus["ACCEPTED"] = "ACCEPTED";
    RegistrationStatus["DECLINED"] = "DECLINED";
    RegistrationStatus["BLOCKED"] = "BLOCKED";
})(RegistrationStatus || (exports.RegistrationStatus = RegistrationStatus = {}));
var RegistrationRole;
(function (RegistrationRole) {
    RegistrationRole["OWNER"] = "OWNER";
    RegistrationRole["ORGANIZER"] = "ORGANIZER";
    RegistrationRole["ATTENDEE"] = "ATTENDEE";
})(RegistrationRole || (exports.RegistrationRole = RegistrationRole = {}));
var EventStatus;
(function (EventStatus) {
    EventStatus["PLANNED"] = "PLANNED";
    EventStatus["CANCELED"] = "CANCELED";
    EventStatus["REMOVED"] = "REMOVED";
})(EventStatus || (exports.EventStatus = EventStatus = {}));
var EventLocationType;
(function (EventLocationType) {
    EventLocationType["none"] = "none";
    EventLocationType["custom"] = "custom";
    EventLocationType["org"] = "org";
    EventLocationType["item"] = "item";
})(EventLocationType || (exports.EventLocationType = EventLocationType = {}));
var EventAttendanceType;
(function (EventAttendanceType) {
    EventAttendanceType["VIRTUAL"] = "VIRTUAL";
    EventAttendanceType["IN_PERSON"] = "IN_PERSON";
})(EventAttendanceType || (exports.EventAttendanceType = EventAttendanceType = {}));
var EventAssociationEntityType;
(function (EventAssociationEntityType) {
    EventAssociationEntityType["Hub_Site_Application"] = "Hub Site Application";
    EventAssociationEntityType["Hub_Initiative"] = "Hub Initiative";
    EventAssociationEntityType["Hub_Project"] = "Hub Project";
})(EventAssociationEntityType || (exports.EventAssociationEntityType = EventAssociationEntityType = {}));
var EventAccess;
(function (EventAccess) {
    EventAccess["PRIVATE"] = "PRIVATE";
    EventAccess["ORG"] = "ORG";
    EventAccess["PUBLIC"] = "PUBLIC";
})(EventAccess || (exports.EventAccess = EventAccess = {}));
/**
 * Create a new event.
 */
const createEvent = (iCreateEvent, options) => {
    return (0, custom_client_1.customClient)({
        url: `/api/events/v1/events`,
        method: "POST",
        headers: { "Content-Type": "application/json" },
        data: iCreateEvent,
    }, options);
};
exports.createEvent = createEvent;
/**
 * Search for events matching request criteria.
 */
const searchEvents = (iSearchEvents, options) => {
    return (0, custom_client_1.customClient)({
        url: `/api/events/v1/events/search`,
        method: "POST",
        headers: { "Content-Type": "application/json" },
        data: iSearchEvents,
    }, options);
};
exports.searchEvents = searchEvents;
/**
 * Get a single event.
 */
const getEvent = (id, options) => {
    return (0, custom_client_1.customClient)({ url: `/api/events/v1/events/${id}`, method: "GET" }, options);
};
exports.getEvent = getEvent;
/**
 * Update an existing event.
 */
const updateEvent = (id, iUpdateEvent, options) => {
    return (0, custom_client_1.customClient)({
        url: `/api/events/v1/events/${id}`,
        method: "PATCH",
        headers: { "Content-Type": "application/json" },
        data: iUpdateEvent,
    }, options);
};
exports.updateEvent = updateEvent;
/**
 * Delete an existing event.
 */
const deleteEvent = (id, options) => {
    return (0, custom_client_1.customClient)({ url: `/api/events/v1/events/${id}`, method: "DELETE" }, options);
};
exports.deleteEvent = deleteEvent;
/**
 * Create a new registration.
 */
const createRegistration = (iCreateRegistration, options) => {
    return (0, custom_client_1.customClient)({
        url: `/api/events/v1/registrations`,
        method: "POST",
        headers: { "Content-Type": "application/json" },
        data: iCreateRegistration,
    }, options);
};
exports.createRegistration = createRegistration;
/**
 * Get a list of registrations matching request criteria.
 */
const getRegistrations = (params, options) => {
    return (0, custom_client_1.customClient)({ url: `/api/events/v1/registrations`, method: "GET", params }, options);
};
exports.getRegistrations = getRegistrations;
/**
 * Get a registration by id.
 */
const getRegistration = (id, options) => {
    return (0, custom_client_1.customClient)({ url: `/api/events/v1/registrations/${id}`, method: "GET" }, options);
};
exports.getRegistration = getRegistration;
/**
 * Update a registration by id.
 */
const updateRegistration = (id, iUpdateRegistration, options) => {
    return (0, custom_client_1.customClient)({
        url: `/api/events/v1/registrations/${id}`,
        method: "PATCH",
        headers: { "Content-Type": "application/json" },
        data: iUpdateRegistration,
    }, options);
};
exports.updateRegistration = updateRegistration;
/**
 * Delete a registration by id.
 */
const deleteRegistration = (id, options) => {
    return (0, custom_client_1.customClient)({ url: `/api/events/v1/registrations/${id}`, method: "DELETE" }, options);
};
exports.deleteRegistration = deleteRegistration;
//# sourceMappingURL=orval-events.js.map