/* 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
 */
import { customClient } from "../custom-client";
export var RegistrationSort;
(function (RegistrationSort) {
    RegistrationSort["createdAt"] = "createdAt";
    RegistrationSort["updatedAt"] = "updatedAt";
    RegistrationSort["firstName"] = "firstName";
    RegistrationSort["lastName"] = "lastName";
    RegistrationSort["username"] = "username";
})(RegistrationSort || (RegistrationSort = {}));
export var EventSortOrder;
(function (EventSortOrder) {
    EventSortOrder["asc"] = "asc";
    EventSortOrder["desc"] = "desc";
})(EventSortOrder || (EventSortOrder = {}));
export var EventSort;
(function (EventSort) {
    EventSort["title"] = "title";
    EventSort["startDateTime"] = "startDateTime";
    EventSort["createdAt"] = "createdAt";
    EventSort["updatedAt"] = "updatedAt";
})(EventSort || (EventSort = {}));
export var GetEventsInclude;
(function (GetEventsInclude) {
    GetEventsInclude["associations"] = "associations";
    GetEventsInclude["creator"] = "creator";
    GetEventsInclude["location"] = "location";
    GetEventsInclude["onlineMeeting"] = "onlineMeeting";
    GetEventsInclude["registrations"] = "registrations";
})(GetEventsInclude || (GetEventsInclude = {}));
export var EventsSearchFormat;
(function (EventsSearchFormat) {
    EventsSearchFormat["csv"] = "csv";
    EventsSearchFormat["json"] = "json";
})(EventsSearchFormat || (EventsSearchFormat = {}));
export var RegistrationStatus;
(function (RegistrationStatus) {
    RegistrationStatus["PENDING"] = "PENDING";
    RegistrationStatus["ACCEPTED"] = "ACCEPTED";
    RegistrationStatus["DECLINED"] = "DECLINED";
    RegistrationStatus["BLOCKED"] = "BLOCKED";
})(RegistrationStatus || (RegistrationStatus = {}));
export var RegistrationRole;
(function (RegistrationRole) {
    RegistrationRole["OWNER"] = "OWNER";
    RegistrationRole["ORGANIZER"] = "ORGANIZER";
    RegistrationRole["ATTENDEE"] = "ATTENDEE";
})(RegistrationRole || (RegistrationRole = {}));
export var EventStatus;
(function (EventStatus) {
    EventStatus["PLANNED"] = "PLANNED";
    EventStatus["CANCELED"] = "CANCELED";
    EventStatus["REMOVED"] = "REMOVED";
})(EventStatus || (EventStatus = {}));
export var EventLocationType;
(function (EventLocationType) {
    EventLocationType["none"] = "none";
    EventLocationType["custom"] = "custom";
    EventLocationType["org"] = "org";
    EventLocationType["item"] = "item";
})(EventLocationType || (EventLocationType = {}));
export var EventAttendanceType;
(function (EventAttendanceType) {
    EventAttendanceType["VIRTUAL"] = "VIRTUAL";
    EventAttendanceType["IN_PERSON"] = "IN_PERSON";
})(EventAttendanceType || (EventAttendanceType = {}));
export var EventAssociationEntityType;
(function (EventAssociationEntityType) {
    EventAssociationEntityType["Hub_Site_Application"] = "Hub Site Application";
    EventAssociationEntityType["Hub_Initiative"] = "Hub Initiative";
    EventAssociationEntityType["Hub_Project"] = "Hub Project";
})(EventAssociationEntityType || (EventAssociationEntityType = {}));
export var EventAccess;
(function (EventAccess) {
    EventAccess["PRIVATE"] = "PRIVATE";
    EventAccess["ORG"] = "ORG";
    EventAccess["PUBLIC"] = "PUBLIC";
})(EventAccess || (EventAccess = {}));
/**
 * Create a new event.
 */
export const createEvent = (iCreateEvent, options) => {
    return customClient({
        url: `/api/events/v1/events`,
        method: "POST",
        headers: { "Content-Type": "application/json" },
        data: iCreateEvent,
    }, options);
};
/**
 * Search for events matching request criteria.
 */
export const searchEvents = (iSearchEvents, options) => {
    return customClient({
        url: `/api/events/v1/events/search`,
        method: "POST",
        headers: { "Content-Type": "application/json" },
        data: iSearchEvents,
    }, options);
};
/**
 * Get a single event.
 */
export const getEvent = (id, options) => {
    return customClient({ url: `/api/events/v1/events/${id}`, method: "GET" }, options);
};
/**
 * Update an existing event.
 */
export const updateEvent = (id, iUpdateEvent, options) => {
    return customClient({
        url: `/api/events/v1/events/${id}`,
        method: "PATCH",
        headers: { "Content-Type": "application/json" },
        data: iUpdateEvent,
    }, options);
};
/**
 * Delete an existing event.
 */
export const deleteEvent = (id, options) => {
    return customClient({ url: `/api/events/v1/events/${id}`, method: "DELETE" }, options);
};
/**
 * Create a new registration.
 */
export const createRegistration = (iCreateRegistration, options) => {
    return customClient({
        url: `/api/events/v1/registrations`,
        method: "POST",
        headers: { "Content-Type": "application/json" },
        data: iCreateRegistration,
    }, options);
};
/**
 * Get a list of registrations matching request criteria.
 */
export const getRegistrations = (params, options) => {
    return customClient({ url: `/api/events/v1/registrations`, method: "GET", params }, options);
};
/**
 * Get a registration by id.
 */
export const getRegistration = (id, options) => {
    return customClient({ url: `/api/events/v1/registrations/${id}`, method: "GET" }, options);
};
/**
 * Update a registration by id.
 */
export const updateRegistration = (id, iUpdateRegistration, options) => {
    return customClient({
        url: `/api/events/v1/registrations/${id}`,
        method: "PATCH",
        headers: { "Content-Type": "application/json" },
        data: iUpdateRegistration,
    }, options);
};
/**
 * Delete a registration by id.
 */
export const deleteRegistration = (id, options) => {
    return customClient({ url: `/api/events/v1/registrations/${id}`, method: "DELETE" }, options);
};
//# sourceMappingURL=orval-events.js.map