import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
import { Event, CreateEventOptions, CreateEventApplicationErrors, CreateEventValidationErrors, CloneEventOptions, CloneEventResponse, UpdateEventOptions, UpdateEventApplicationErrors, UpdateEventValidationErrors, PublishDraftEventOptions, PublishDraftEventResponse, PublishDraftEventApplicationErrors, CancelEventOptions, CancelEventResponse, CancelEventApplicationErrors, BulkCancelEventsByFilterOptions, DeleteEventResponse, BulkDeleteEventsByFilterOptions, CountEventsByStatusOptions, CountEventsByStatusResponse, CountEventsByStatusApplicationErrors, ListEventsByCategoryOptions, ListEventsByCategoryResponse, GetEventOptions, GetEventBySlugOptions, GetEventBySlugResponse, EventCanceledEnvelope, EventClonedEnvelope, EventCreatedEnvelope, EventDeletedEnvelope, EventEndedEnvelope, EventPublishedEnvelope, EventReminderEnvelope, EventStartedEnvelope, EventUpdatedEnvelope, EventQuery, QueryEventsOptions, typedQueryEvents, EventsQueryBuilder } from './index.typings.js';
export { AccountInfo, AccountInfoMetadata, ActionEvent, Address, AddressLocation, AddressStreetOneOf, AgendaSettings, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Backdrop, BackdropType, BackdropTypeWithLiterals, Background, BackgroundGradient, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, Badge, BadgeList, BadgeTypeType, BadgeTypeTypeWithLiterals, Banner, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BorderWidths, BulkCancelEventsByFilterRequest, BulkCancelEventsByFilterResponse, BulkDeleteEventsByFilterRequest, BulkDeleteEventsByFilterResponse, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CalendarUrls, CancelEventRequest, CaptionData, CardData, CardDataBackground, CardDataBackgroundType, CardDataBackgroundTypeWithLiterals, CardStyles, CardStylesType, CardStylesTypeWithLiterals, CellStyle, CheckoutFormMessages, CheckoutType, CheckoutTypeWithLiterals, CloneEventFromOtherSiteRequest, CloneEventFromOtherSiteResponse, CloneEventRequest, CodeBlockData, CollapsibleListData, ColorData, Colors, ColumnSize, ColumnSizeWithLiterals, CommonCursors, CommonPaging, CommonPagingMetadataV2, CommonQueryV2, CommonQueryV2PagingMethodOneOf, CommonQueryWithEntityContext, CommonSortOrder, CommonSortOrderWithLiterals, CommonSorting, ConferenceTypeType, ConferenceTypeTypeWithLiterals, CountEventsByStatusRequest, CreateEventRequest, CreateEventResponse, Crop, CropWithLiterals, CursorPaging, Cursors, DateAndTimeSettings, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeleteEventRequest, Design, DesignTarget, DesignTargetWithLiterals, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventCanceled, EventCategories, EventCategory, EventCloned, EventData, EventDisplaySettings, EventEnded, EventMetadata, EventPublished, EventQuerySpec, EventReminder, EventStarted, EventsMoney, EventsQueryResult, ExportEventsRequest, ExportEventsResponse, ExternalRegistration, FacetCounts, Feed, FileData, FileSource, FileSourceDataOneOf, FindEventRequest, FindEventRequestFindByOneOf, FindEventResponse, FontFamilyData, FontSizeData, FontType, FontTypeWithLiterals, Form, FormMessages, Formatted, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetEventBySlugRequest, GetEventRequest, GetEventResponse, Gradient, GradientType, GradientTypeWithLiterals, GuestListSettings, GuestTypeType, GuestTypeTypeWithLiterals, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImagePosition, ImagePositionPosition, ImagePositionPositionWithLiterals, ImagePositionWithLiterals, ImageScalingScaling, ImageScalingScalingWithLiterals, ImageStyles, Indentation, IndentationWithLiterals, InitialExpandedItems, InitialExpandedItemsWithLiterals, InitialRegistrationTypeType, InitialRegistrationTypeTypeWithLiterals, Input, InputControl, InputControlType, InputControlTypeWithLiterals, Item, ItemDataOneOf, ItemStyle, Keyword, Label, LabellingSettings, Layout, LayoutCellData, LayoutData, LayoutDataBackground, LayoutDataBackgroundImage, LayoutDataBackgroundType, LayoutDataBackgroundTypeWithLiterals, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListEventsByCategoryRequest, ListStyle, ListStyleWithLiterals, ListUserEventsRequest, ListUserEventsResponse, ListValue, Location, LocationType, LocationTypeWithLiterals, MapData, MapSettings, MapType, MapTypeWithLiterals, Media, MentionData, MessageEnvelope, Metadata, Money, Negative, NegativeResponseConfirmation, Node, NodeDataOneOf, NodeStyle, NodeType, NodeTypeWithLiterals, NullValue, NullValueWithLiterals, Occurrence, Oembed, OnlineConferencing, OnlineConferencingSession, Option, OptionDesign, OptionLayout, OptionSelection, OptionSelectionSelectedOptionOneOf, OrderedListData, Orientation, OrientationWithLiterals, Origin, OriginWithLiterals, PDFSettings, Paging, PagingMetadataV2, ParagraphData, Permissions, Placement, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, PollDesignBackground, PollDesignBackgroundBackgroundOneOf, PollDesignBackgroundType, PollDesignBackgroundTypeWithLiterals, PollLayout, PollLayoutDirection, PollLayoutDirectionWithLiterals, PollLayoutType, PollLayoutTypeWithLiterals, PollSettings, Position, PositionWithLiterals, Positive, PositiveResponseConfirmation, PricingData, PublishDraftEventRequest, QueryEventsApplicationErrors, QueryEventsRequest, QueryEventsResponse, QueryV2, QueryV2PagingMethodOneOf, RecurrenceStatusStatus, RecurrenceStatusStatusWithLiterals, Recurrences, Registration, RegistrationClosedMessages, RegistrationStatusStatus, RegistrationStatusStatusWithLiterals, RegistrationTypeType, RegistrationTypeTypeWithLiterals, Rel, Relation, RelationWithLiterals, RequestedFields, RequestedFieldsWithLiterals, Resizing, ResizingWithLiterals, ResponseConfirmation, ResponseType, ResponseTypeWithLiterals, ResponsivenessBehaviour, ResponsivenessBehaviourWithLiterals, RestoreInfo, RibbonStyles, RichContent, RsvpConfirmationMessages, RsvpFormMessages, RsvpFormMessagesNegativeResponseConfirmation, RsvpFormMessagesPositiveResponseConfirmation, RsvpRegistration, Rsvps, Scaling, ScalingWithLiterals, SeoSchema, SeoSettings, Settings, ShapeData, ShapeDataStyles, SmartBlockCellData, SmartBlockData, SmartBlockDataType, SmartBlockDataTypeWithLiterals, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Status, StatusWithLiterals, Stop, StreetAddress, Styles, StylesBorder, StylesPosition, StylesPositionWithLiterals, Subdivision, SubdivisionType, SubdivisionTypeWithLiterals, Summaries, TableCellData, TableData, Tag, Target, TargetWithLiterals, TaxSettings, TaxType, TaxTypeWithLiterals, TextAlignment, TextAlignmentWithLiterals, TextData, TextNodeStyle, TextStyle, Thumbnails, ThumbnailsAlignment, ThumbnailsAlignmentWithLiterals, Tickets, TicketsConfirmationMessages, TicketsRegistration, TicketsUnavailableMessages, TimeDuration, TocData, Type, TypeWithLiterals, UpdateEventRequest, UpdateEventResponse, UserFilter, ValueType, ValueTypeWithLiterals, VerticalAlignment, VerticalAlignmentAlignment, VerticalAlignmentAlignmentWithLiterals, VerticalAlignmentWithLiterals, Video, VideoData, ViewMode, ViewModeWithLiterals, ViewRole, ViewRoleWithLiterals, VoteRole, VoteRoleWithLiterals, WebhookIdentityType, WebhookIdentityTypeWithLiterals, Width, WidthType, WidthTypeWithLiterals, WidthWithLiterals, utils } from './index.typings.js';
declare function createEvent$1(httpClient: HttpClient): CreateEventSignature;
interface CreateEventSignature {
/**
* Creates an event.
* The event includes a default registration form in the selected language, which consists of input fields for first name, last name, and email. See the [Registration Form API](https://dev.wix.com/docs/rest/business-solutions/events/form/about-the-registration-form-api) for more information.
* You can create the event as a draft by setting `draft` to `true`. Otherwise, the event is published right away.
* To create a recurring event, set `individualEventDates` in the `dateAndTimeSettings.recurringEvents` object.
* The event is automatically set up to send daily summary reports of new guests to your business email.
* @param - Event data.
* @param - Optional fields.
* @returns Created event.
*/
(event: NonNullablePaths, options?: CreateEventOptions): Promise & {
__applicationErrorsType?: CreateEventApplicationErrors;
__validationErrorsType?: CreateEventValidationErrors;
}>;
}
declare function cloneEvent$1(httpClient: HttpClient): CloneEventSignature;
interface CloneEventSignature {
/**
* Clones an event, including the registration form, notifications, multilingual translations and ticket configuration from the original event.
* The new event's date is automatically set to 14 days from the original event date.
* If an event with the same `title` already exists, the new event's `title` gets a sequence number. For example, if you clone an event named `"Leather Crafting 101"`, the new event's title is `"Leather Crafting 101 (1)"`.
* You can change the required entity field values while cloning an event.
* @param - Event ID.
* @param - Optional fields.
*/
(eventId: string, options?: CloneEventOptions): Promise>;
}
declare function updateEvent$1(httpClient: HttpClient): UpdateEventSignature;
interface UpdateEventSignature {
/**
* Updates an event.
* @param - Event ID.
* @param - Optional fields.
* @returns Updated event.
*/
(_id: string, options?: UpdateEventOptions): Promise & {
__applicationErrorsType?: UpdateEventApplicationErrors;
__validationErrorsType?: UpdateEventValidationErrors;
}>;
}
declare function publishDraftEvent$1(httpClient: HttpClient): PublishDraftEventSignature;
interface PublishDraftEventSignature {
/**
* Publishes a draft event to your live site. Once published, the event's status changes from `"DRAFT"` to `"UPCOMING"`.
* It's impossible to revert the `"DRAFT"` status after publishing. The only option is to clone the event, then delete the original.
* @param - Event ID.
* @param - Optional fields.
*/
(eventId: string, options?: PublishDraftEventOptions): Promise & {
__applicationErrorsType?: PublishDraftEventApplicationErrors;
}>;
}
declare function cancelEvent$1(httpClient: HttpClient): CancelEventSignature;
interface CancelEventSignature {
/**
* Cancels an event.
* After cancellation, registration for an event is closed. To reuse the event, call Clone Event and Publish Event to publish it again.
* If event cancellation notifications are enabled, canceling an event automatically triggers the sending of cancellation emails and/or push notifications to registered guests.
* @param - Event ID.
* @param - Optional fields.
*/
(eventId: string, options?: CancelEventOptions): Promise & {
__applicationErrorsType?: CancelEventApplicationErrors;
}>;
}
declare function bulkCancelEventsByFilter$1(httpClient: HttpClient): BulkCancelEventsByFilterSignature;
interface BulkCancelEventsByFilterSignature {
/**
* Cancels multiple events that meet the specified criteria.
* After cancellation, registration for an event is closed. To reuse the event, call Clone Event and Publish Event to publish it again.
* If event cancellation notifications are enabled, canceling an event automatically triggers the sending of cancellation emails and/or push notifications to registered guests.
* @param - Optional fields.
*/
(options?: NonNullablePaths): Promise;
}
declare function deleteEvent$1(httpClient: HttpClient): DeleteEventSignature;
interface DeleteEventSignature {
/**
* Deletes an event.
* You can retrieve the deleted event through a GDPR access request.
* @param - Event ID.
*/
(eventId: string): Promise>;
}
declare function bulkDeleteEventsByFilter$1(httpClient: HttpClient): BulkDeleteEventsByFilterSignature;
interface BulkDeleteEventsByFilterSignature {
/**
* Deletes multiple events that meet the specified criteria.
* You can retrieve the deleted events through a GDPR access request.
* @param - Optional fields.
*/
(options?: NonNullablePaths): Promise;
}
declare function countEventsByStatus$1(httpClient: HttpClient): CountEventsByStatusSignature;
interface CountEventsByStatusSignature {
/**
* Counts events by status.
* @param - Optional fields.
*/
(options?: CountEventsByStatusOptions): Promise;
}
declare function listEventsByCategory$1(httpClient: HttpClient): ListEventsByCategorySignature;
interface ListEventsByCategorySignature {
/**
* Retrieves a list of up to 100 events that belong to the same event category.
* @param - Category ID.
* @param - Optional fields.
*/
(categoryId: string, options?: ListEventsByCategoryOptions): Promise>;
}
declare function getEvent$1(httpClient: HttpClient): GetEventSignature;
interface GetEventSignature {
/**
* Retrieves an event by ID.
* @param - Event ID.
* @param - Optional fields.
* @returns Event.
*/
(eventId: string, options?: GetEventOptions): Promise>;
}
declare function getEventBySlug$1(httpClient: HttpClient): GetEventBySlugSignature;
interface GetEventBySlugSignature {
/**
* Retrieves an event by the slug URL.
*
* The slug is the end of an event URL that refers to a specific event. For example, if an event's URL is `https://example.com/events/event/{my-event-slug}`, the slug is `my-event-slug`.
* @param - URL slug.
* @param - Optional fields.
*/
(slug: string, options?: GetEventBySlugOptions): Promise>;
}
declare const onEventCanceled$1: EventDefinition;
declare const onEventCloned$1: EventDefinition;
declare const onEventCreated$1: EventDefinition;
declare const onEventDeleted$1: EventDefinition;
declare const onEventEnded$1: EventDefinition;
declare const onEventPublished$1: EventDefinition;
declare const onEventReminder$1: EventDefinition;
declare const onEventStarted$1: EventDefinition;
declare const onEventUpdated$1: EventDefinition;
declare function customQueryEvents(httpClient: HttpClient): {
(query: EventQuery, options?: QueryEventsOptions): ReturnType;
(options?: QueryEventsOptions): EventsQueryBuilder;
};
declare const createEvent: MaybeContext & typeof createEvent$1>;
declare const cloneEvent: MaybeContext & typeof cloneEvent$1>;
declare const updateEvent: MaybeContext & typeof updateEvent$1>;
declare const publishDraftEvent: MaybeContext & typeof publishDraftEvent$1>;
declare const cancelEvent: MaybeContext & typeof cancelEvent$1>;
declare const bulkCancelEventsByFilter: MaybeContext & typeof bulkCancelEventsByFilter$1>;
declare const deleteEvent: MaybeContext & typeof deleteEvent$1>;
declare const bulkDeleteEventsByFilter: MaybeContext & typeof bulkDeleteEventsByFilter$1>;
declare const countEventsByStatus: MaybeContext & typeof countEventsByStatus$1>;
declare const listEventsByCategory: MaybeContext & typeof listEventsByCategory$1>;
declare const getEvent: MaybeContext & typeof getEvent$1>;
declare const getEventBySlug: MaybeContext & typeof getEventBySlug$1>;
declare const queryEvents: MaybeContext & typeof customQueryEvents>;
/**
* Triggered when an event is canceled.
*/
declare const onEventCanceled: BuildEventDefinition & typeof onEventCanceled$1;
/**
* Triggered when an event is cloned.
*/
declare const onEventCloned: BuildEventDefinition & typeof onEventCloned$1;
/**
* Triggered when an event is created.
*/
declare const onEventCreated: BuildEventDefinition & typeof onEventCreated$1;
/**
* Triggered when an event is deleted.
*/
declare const onEventDeleted: BuildEventDefinition & typeof onEventDeleted$1;
/**
* Triggered when an event has ended.
*/
declare const onEventEnded: BuildEventDefinition & typeof onEventEnded$1;
/**
* Triggered when an event is published.
*/
declare const onEventPublished: BuildEventDefinition & typeof onEventPublished$1;
/**
* Triggered when a certain amount of time is left until the event. In total there are 6 reminders:
* - 7 days
* - 3 days
* - 1 day
* - 2 hours
* - 1 hour
* - 30 minutes
*/
declare const onEventReminder: BuildEventDefinition & typeof onEventReminder$1;
/**
* Triggered when an event has started.
*/
declare const onEventStarted: BuildEventDefinition & typeof onEventStarted$1;
/**
* Triggered when an event is updated.
*/
declare const onEventUpdated: BuildEventDefinition & typeof onEventUpdated$1;
export { BulkCancelEventsByFilterOptions, BulkDeleteEventsByFilterOptions, CancelEventApplicationErrors, CancelEventOptions, CancelEventResponse, CloneEventOptions, CloneEventResponse, CountEventsByStatusApplicationErrors, CountEventsByStatusOptions, CountEventsByStatusResponse, CreateEventApplicationErrors, CreateEventOptions, CreateEventValidationErrors, DeleteEventResponse, Event, EventCanceledEnvelope, EventClonedEnvelope, EventCreatedEnvelope, EventDeletedEnvelope, EventEndedEnvelope, EventPublishedEnvelope, EventQuery, EventReminderEnvelope, EventStartedEnvelope, EventUpdatedEnvelope, EventsQueryBuilder, GetEventBySlugOptions, GetEventBySlugResponse, GetEventOptions, ListEventsByCategoryOptions, ListEventsByCategoryResponse, PublishDraftEventApplicationErrors, PublishDraftEventOptions, PublishDraftEventResponse, QueryEventsOptions, UpdateEventApplicationErrors, UpdateEventOptions, UpdateEventValidationErrors, bulkCancelEventsByFilter, bulkDeleteEventsByFilter, cancelEvent, cloneEvent, countEventsByStatus, createEvent, deleteEvent, getEvent, getEventBySlug, listEventsByCategory, onEventCanceled, onEventCloned, onEventCreated, onEventDeleted, onEventEnded, onEventPublished, onEventReminder, onEventStarted, onEventUpdated, publishDraftEvent, queryEvents, updateEvent };