@wix/auto_sdk_events_wix-events-v-2 1.0.62 → 1.0.64

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, NonNullablePaths, EventDefinition, MaybeContext, BuildRESTFunction, BuildEventDefinition } from '@wix/sdk-types';
2
- import { Event, CreateEventOptions, CreateEventApplicationErrors, CreateEventValidationErrors, CloneEventOptions, CloneEventResponse, UpdateEventOptions, UpdateEventApplicationErrors, UpdateEventValidationErrors, PublishDraftEventOptions, PublishDraftEventResponse, PublishDraftEventApplicationErrors, CancelEventOptions, CancelEventResponse, CancelEventApplicationErrors, BulkCancelEventsByFilterOptions, DeleteEventResponse, BulkDeleteEventsByFilterOptions, QueryEventsOptions, EventsQueryBuilder, CountEventsByStatusOptions, CountEventsByStatusResponse, CountEventsByStatusApplicationErrors, ListEventsByCategoryOptions, ListEventsByCategoryResponse, GetEventOptions, GetEventBySlugOptions, GetEventBySlugResponse, EventCanceledEnvelope, EventClonedEnvelope, EventCreatedEnvelope, EventDeletedEnvelope, EventEndedEnvelope, EventPublishedEnvelope, EventReminderEnvelope, EventStartedEnvelope, EventUpdatedEnvelope } from './index.typings.mjs';
3
- export { ActionEvent, Address, AddressLocation, AddressStreetOneOf, AgendaSettings, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Background, BackgroundBackgroundOneOf, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, Badge, BadgeList, BadgeTypeType, BadgeTypeTypeWithLiterals, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BulkCancelEventsByFilterRequest, BulkCancelEventsByFilterResponse, BulkDeleteEventsByFilterRequest, BulkDeleteEventsByFilterResponse, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CalendarUrls, CancelEventRequest, CaptionData, CardStyles, CardStylesType, CardStylesTypeWithLiterals, CellStyle, CheckoutFormMessages, CheckoutType, CheckoutTypeWithLiterals, CloneEventFromOtherSiteRequest, CloneEventFromOtherSiteResponse, CloneEventRequest, CodeBlockData, CollapsibleListData, ColorData, Colors, CommonCursors, CommonPaging, CommonPagingMetadataV2, CommonQueryV2, CommonQueryV2PagingMethodOneOf, CommonSortOrder, CommonSortOrderWithLiterals, CommonSorting, ConferenceTypeType, ConferenceTypeTypeWithLiterals, CountEventsByStatusRequest, CreateEventRequest, CreateEventResponse, Crop, CropWithLiterals, CursorPaging, Cursors, DateAndTimeSettings, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeleteEventRequest, Design, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventCanceled, EventCategories, EventCategory, EventCloned, EventData, EventDisplaySettings, EventEnded, EventMetadata, EventPublished, EventReminder, EventStarted, EventsMoney, EventsQueryResult, ExportEventsRequest, ExportEventsResponse, ExternalRegistration, FacetCounts, Feed, FileData, FileSource, FileSourceDataOneOf, FindEventRequest, FindEventRequestFindByOneOf, FindEventResponse, FontSizeData, FontType, FontTypeWithLiterals, Form, FormMessages, Formatted, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetEventBySlugRequest, GetEventRequest, GetEventResponse, Gradient, GuestListSettings, GuestTypeType, GuestTypeTypeWithLiterals, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImagePosition, ImagePositionWithLiterals, ImageStyles, InitialExpandedItems, InitialExpandedItemsWithLiterals, InitialRegistrationTypeType, InitialRegistrationTypeTypeWithLiterals, Input, InputControl, InputControlType, InputControlTypeWithLiterals, Item, ItemDataOneOf, ItemStyle, Keyword, Label, LabellingSettings, Layout, LayoutCellData, LayoutData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListEventsByCategoryRequest, 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, PDFSettings, Paging, PagingMetadataV2, ParagraphData, Permissions, Placement, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, 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, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Status, StatusWithLiterals, 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, 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 } from './index.typings.mjs';
2
+ 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, CommonQueryV2, typedQueryEvents, QueryEventsOptions, EventsQueryBuilder } from './index.typings.mjs';
3
+ export { ActionEvent, Address, AddressLocation, AddressStreetOneOf, AgendaSettings, Alignment, AlignmentWithLiterals, AnchorData, AppEmbedData, AppEmbedDataAppDataOneOf, AppType, AppTypeWithLiterals, AspectRatio, AspectRatioWithLiterals, AudioData, Background, BackgroundBackgroundOneOf, BackgroundImage, BackgroundType, BackgroundTypeWithLiterals, Badge, BadgeList, BadgeTypeType, BadgeTypeTypeWithLiterals, BaseEventMetadata, BlockquoteData, BookingData, Border, BorderColors, BulkCancelEventsByFilterRequest, BulkCancelEventsByFilterResponse, BulkDeleteEventsByFilterRequest, BulkDeleteEventsByFilterResponse, BulletedListData, ButtonData, ButtonDataType, ButtonDataTypeWithLiterals, ButtonStyles, CalendarUrls, CancelEventRequest, CaptionData, CardStyles, CardStylesType, CardStylesTypeWithLiterals, CellStyle, CheckoutFormMessages, CheckoutType, CheckoutTypeWithLiterals, CloneEventFromOtherSiteRequest, CloneEventFromOtherSiteResponse, CloneEventRequest, CodeBlockData, CollapsibleListData, ColorData, Colors, CommonCursors, CommonPaging, CommonPagingMetadataV2, CommonQueryV2PagingMethodOneOf, CommonSortOrder, CommonSortOrderWithLiterals, CommonSorting, ConferenceTypeType, ConferenceTypeTypeWithLiterals, CountEventsByStatusRequest, CreateEventRequest, CreateEventResponse, Crop, CropWithLiterals, CursorPaging, Cursors, DateAndTimeSettings, Decoration, DecorationDataOneOf, DecorationType, DecorationTypeWithLiterals, DeleteEventRequest, Design, Dimensions, Direction, DirectionWithLiterals, DividerData, DividerDataAlignment, DividerDataAlignmentWithLiterals, DocumentStyle, DomainEvent, DomainEventBodyOneOf, EmbedData, Empty, EntityCreatedEvent, EntityDeletedEvent, EntityUpdatedEvent, EventCanceled, EventCategories, EventCategory, EventCloned, EventData, EventDisplaySettings, EventEnded, EventMetadata, EventPublished, EventReminder, EventStarted, EventsMoney, EventsQueryResult, ExportEventsRequest, ExportEventsResponse, ExternalRegistration, FacetCounts, Feed, FileData, FileSource, FileSourceDataOneOf, FindEventRequest, FindEventRequestFindByOneOf, FindEventResponse, FontSizeData, FontType, FontTypeWithLiterals, Form, FormMessages, Formatted, GIF, GIFData, GIFType, GIFTypeWithLiterals, GalleryData, GalleryOptions, GalleryOptionsLayout, GetEventBySlugRequest, GetEventRequest, GetEventResponse, Gradient, GuestListSettings, GuestTypeType, GuestTypeTypeWithLiterals, HTMLData, HTMLDataDataOneOf, HeadingData, Height, IdentificationData, IdentificationDataIdOneOf, Image, ImageData, ImageDataStyles, ImagePosition, ImagePositionWithLiterals, ImageStyles, InitialExpandedItems, InitialExpandedItemsWithLiterals, InitialRegistrationTypeType, InitialRegistrationTypeTypeWithLiterals, Input, InputControl, InputControlType, InputControlTypeWithLiterals, Item, ItemDataOneOf, ItemStyle, Keyword, Label, LabellingSettings, Layout, LayoutCellData, LayoutData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListEventsByCategoryRequest, 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, PDFSettings, Paging, PagingMetadataV2, ParagraphData, Permissions, Placement, PlacementWithLiterals, PlaybackOptions, PluginContainerData, PluginContainerDataAlignment, PluginContainerDataAlignmentWithLiterals, PluginContainerDataWidth, PluginContainerDataWidthDataOneOf, Poll, PollData, PollDataLayout, PollDesign, 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, SortOrder, SortOrderWithLiterals, Sorting, Source, SourceWithLiterals, Spoiler, SpoilerData, Status, StatusWithLiterals, 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, 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 } from './index.typings.mjs';
4
4
 
5
5
  declare function createEvent$1(httpClient: HttpClient): CreateEventSignature;
6
6
  interface CreateEventSignature {
@@ -8,6 +8,7 @@ interface CreateEventSignature {
8
8
  * Creates an event. <br> <br>
9
9
  * 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. <br> <br>
10
10
  * You can create the event as a draft by setting `draft` to `true`. Otherwise, the event is published right away. <br> <br>
11
+ * To create a recurring event, set `individualEventDates` in the `dateAndTimeSettings.recurringEvents` object. <br> <br>
11
12
  * The event is automatically set up to send daily summary reports of new guests to your business email.
12
13
  * @param - Event data.
13
14
  * @param - Optional fields.
@@ -96,29 +97,6 @@ interface BulkDeleteEventsByFilterSignature {
96
97
  */
97
98
  (options?: NonNullablePaths<BulkDeleteEventsByFilterOptions, `filter.filter`, 3>): Promise<void>;
98
99
  }
99
- declare function queryEvents$1(httpClient: HttpClient): QueryEventsSignature;
100
- interface QueryEventsSignature {
101
- /**
102
- * Creates a query to retrieve a list of events.
103
- *
104
- *
105
- * The `queryEvents()` method builds a query to retrieve a list of events and returns a [`EventsQueryBuilder`](https://www.wix.com/velo/reference/wix-events-v2/wixeventsv2/eventsquerybuilder) object.
106
- *
107
- * The returned object contains the query definition, which is typically used to run the query using the [`find()`](https://www.wix.com/velo/reference/wix-events-v2/wixeventsv2/eventsquerybuilder/find) method.
108
- *
109
- * You can refine the query by chaining `EventsQueryBuilder` methods onto the query. `EventsQueryBuilder` methods enable you to sort, filter, and control the results `queryEvents()` returns.
110
- *
111
- * `queryEvents()` runs with these `EventsQueryBuilder` defaults, which you can override:
112
- *
113
- * - [`skip(0)`](https://www.wix.com/velo/reference/wix-events-v2/wixeventsv2/eventsquerybuilder/skip)
114
- * - [`limit(50)`](https://www.wix.com/velo/reference/wix-events-v2/wixeventsv2/eventsquerybuilder/limit)
115
- * - [`descending("_createdDate")`](https://www.wix.com/velo/reference/wix-events-v2/wixeventsv2/eventsquerybuilder/descending)
116
- *
117
- * The methods that are chained to `queryEvents()` are applied in the order they're called. For example, if you apply `ascending('title')` and then `descending('status')`, the results are sorted first by the `title`, and then, if there are multiple results with the same `title`, the items are sorted by `status`.
118
- * @param - Optional fields.
119
- */
120
- (options?: QueryEventsOptions): EventsQueryBuilder;
121
- }
122
100
  declare function countEventsByStatus$1(httpClient: HttpClient): CountEventsByStatusSignature;
123
101
  interface CountEventsByStatusSignature {
124
102
  /**
@@ -169,6 +147,12 @@ declare const onEventReminder$1: EventDefinition<EventReminderEnvelope, "wix.eve
169
147
  declare const onEventStarted$1: EventDefinition<EventStartedEnvelope, "wix.events.v3.event_started">;
170
148
  declare const onEventUpdated$1: EventDefinition<EventUpdatedEnvelope, "wix.events.v3.event_updated">;
171
149
 
150
+ declare function customQueryEvents(httpClient: HttpClient): {
151
+ (query: CommonQueryV2): ReturnType<typeof typedQueryEvents>;
152
+ (query: CommonQueryV2, options: QueryEventsOptions): ReturnType<typeof typedQueryEvents>;
153
+ (): EventsQueryBuilder;
154
+ (options: QueryEventsOptions): EventsQueryBuilder;
155
+ };
172
156
  declare const createEvent: MaybeContext<BuildRESTFunction<typeof createEvent$1> & typeof createEvent$1>;
173
157
  declare const cloneEvent: MaybeContext<BuildRESTFunction<typeof cloneEvent$1> & typeof cloneEvent$1>;
174
158
  declare const updateEvent: MaybeContext<BuildRESTFunction<typeof updateEvent$1> & typeof updateEvent$1>;
@@ -177,11 +161,11 @@ declare const cancelEvent: MaybeContext<BuildRESTFunction<typeof cancelEvent$1>
177
161
  declare const bulkCancelEventsByFilter: MaybeContext<BuildRESTFunction<typeof bulkCancelEventsByFilter$1> & typeof bulkCancelEventsByFilter$1>;
178
162
  declare const deleteEvent: MaybeContext<BuildRESTFunction<typeof deleteEvent$1> & typeof deleteEvent$1>;
179
163
  declare const bulkDeleteEventsByFilter: MaybeContext<BuildRESTFunction<typeof bulkDeleteEventsByFilter$1> & typeof bulkDeleteEventsByFilter$1>;
180
- declare const queryEvents: MaybeContext<BuildRESTFunction<typeof queryEvents$1> & typeof queryEvents$1>;
181
164
  declare const countEventsByStatus: MaybeContext<BuildRESTFunction<typeof countEventsByStatus$1> & typeof countEventsByStatus$1>;
182
165
  declare const listEventsByCategory: MaybeContext<BuildRESTFunction<typeof listEventsByCategory$1> & typeof listEventsByCategory$1>;
183
166
  declare const getEvent: MaybeContext<BuildRESTFunction<typeof getEvent$1> & typeof getEvent$1>;
184
167
  declare const getEventBySlug: MaybeContext<BuildRESTFunction<typeof getEventBySlug$1> & typeof getEventBySlug$1>;
168
+ declare const queryEvents: MaybeContext<BuildRESTFunction<typeof customQueryEvents> & typeof customQueryEvents>;
185
169
  /**
186
170
  * Triggered when an event is canceled.
187
171
  */
@@ -225,4 +209,4 @@ declare const onEventStarted: BuildEventDefinition<typeof onEventStarted$1> & ty
225
209
  */
226
210
  declare const onEventUpdated: BuildEventDefinition<typeof onEventUpdated$1> & typeof onEventUpdated$1;
227
211
 
228
- export { BulkCancelEventsByFilterOptions, BulkDeleteEventsByFilterOptions, CancelEventApplicationErrors, CancelEventOptions, CancelEventResponse, CloneEventOptions, CloneEventResponse, CountEventsByStatusApplicationErrors, CountEventsByStatusOptions, CountEventsByStatusResponse, CreateEventApplicationErrors, CreateEventOptions, CreateEventValidationErrors, DeleteEventResponse, Event, EventCanceledEnvelope, EventClonedEnvelope, EventCreatedEnvelope, EventDeletedEnvelope, EventEndedEnvelope, EventPublishedEnvelope, 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 };
212
+ export { BulkCancelEventsByFilterOptions, BulkDeleteEventsByFilterOptions, CancelEventApplicationErrors, CancelEventOptions, CancelEventResponse, CloneEventOptions, CloneEventResponse, CommonQueryV2, CountEventsByStatusApplicationErrors, CountEventsByStatusOptions, CountEventsByStatusResponse, CreateEventApplicationErrors, CreateEventOptions, CreateEventValidationErrors, DeleteEventResponse, Event, EventCanceledEnvelope, EventClonedEnvelope, EventCreatedEnvelope, EventDeletedEnvelope, EventEndedEnvelope, EventPublishedEnvelope, 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 };
@@ -2044,6 +2044,51 @@ function queryEvents2(options) {
2044
2044
  }
2045
2045
  );
2046
2046
  }
2047
+ async function typedQueryEvents(query, options) {
2048
+ const { httpClient, sideEffects } = arguments[2];
2049
+ const payload = renameKeysFromSDKRequestToRESTRequest(
2050
+ { query, ...options },
2051
+ []
2052
+ );
2053
+ const reqOpts = queryEvents(payload);
2054
+ sideEffects?.onSiteCall?.();
2055
+ try {
2056
+ const result = await httpClient.request(reqOpts);
2057
+ sideEffects?.onSuccess?.(result);
2058
+ return renameKeysFromRESTResponseToSDKResponse(
2059
+ transformPaths2(result.data, [
2060
+ {
2061
+ transformFn: transformRESTImageToSDKImage,
2062
+ paths: [{ path: "events.mainImage" }]
2063
+ },
2064
+ {
2065
+ transformFn: transformRESTPageURLToSDKPageURL,
2066
+ paths: [
2067
+ { path: "events.eventPageUrl" },
2068
+ { path: "events.agendaSettings.pageUrl" }
2069
+ ]
2070
+ },
2071
+ {
2072
+ transformFn: transformRESTAddressToSDKAddress,
2073
+ paths: [{ path: "events.location.address" }]
2074
+ }
2075
+ ]),
2076
+ ["events.description"]
2077
+ );
2078
+ } catch (err) {
2079
+ const transformedError = sdkTransformError(
2080
+ err,
2081
+ {
2082
+ spreadPathsToArguments: {},
2083
+ explicitPathsToArguments: { query: "$[0]" },
2084
+ singleArgumentUnchanged: false
2085
+ },
2086
+ ["query", "options"]
2087
+ );
2088
+ sideEffects?.onError?.(err);
2089
+ throw transformedError;
2090
+ }
2091
+ }
2047
2092
  async function countEventsByStatus2(options) {
2048
2093
  const { httpClient, sideEffects } = arguments[1];
2049
2094
  const payload = renameKeysFromSDKRequestToRESTRequest(
@@ -2291,6 +2336,14 @@ function queryEvents3(httpClient) {
2291
2336
  { httpClient }
2292
2337
  );
2293
2338
  }
2339
+ function typedQueryEvents2(httpClient) {
2340
+ return (query, options) => typedQueryEvents(
2341
+ query,
2342
+ options,
2343
+ // @ts-ignore
2344
+ { httpClient }
2345
+ );
2346
+ }
2294
2347
  function countEventsByStatus3(httpClient) {
2295
2348
  return (options) => countEventsByStatus2(
2296
2349
  options,
@@ -2703,6 +2756,18 @@ var onEventUpdated = EventDefinition(
2703
2756
  // src/events-v3-event-wix-events-v-2.context.ts
2704
2757
  import { createRESTModule } from "@wix/sdk-runtime/rest-modules";
2705
2758
  import { createEventModule } from "@wix/sdk-runtime/event-definition-modules";
2759
+ import { createQueryOverloadRouter } from "@wix/sdk-runtime/query-method-router";
2760
+ function customQueryEvents(httpClient) {
2761
+ const router = createQueryOverloadRouter({
2762
+ builderQueryFunction: (options) => queryEvents3(httpClient)(options),
2763
+ typedQueryFunction: (query, options) => typedQueryEvents2(httpClient)(query, options),
2764
+ hasOptionsParameter: true
2765
+ });
2766
+ function overloadedQuery(queryOrOptions, options) {
2767
+ return router(...arguments);
2768
+ }
2769
+ return overloadedQuery;
2770
+ }
2706
2771
  var createEvent4 = /* @__PURE__ */ createRESTModule(createEvent3);
2707
2772
  var cloneEvent4 = /* @__PURE__ */ createRESTModule(cloneEvent3);
2708
2773
  var updateEvent4 = /* @__PURE__ */ createRESTModule(updateEvent3);
@@ -2711,11 +2776,11 @@ var cancelEvent4 = /* @__PURE__ */ createRESTModule(cancelEvent3);
2711
2776
  var bulkCancelEventsByFilter4 = /* @__PURE__ */ createRESTModule(bulkCancelEventsByFilter3);
2712
2777
  var deleteEvent4 = /* @__PURE__ */ createRESTModule(deleteEvent3);
2713
2778
  var bulkDeleteEventsByFilter4 = /* @__PURE__ */ createRESTModule(bulkDeleteEventsByFilter3);
2714
- var queryEvents4 = /* @__PURE__ */ createRESTModule(queryEvents3);
2715
2779
  var countEventsByStatus4 = /* @__PURE__ */ createRESTModule(countEventsByStatus3);
2716
2780
  var listEventsByCategory4 = /* @__PURE__ */ createRESTModule(listEventsByCategory3);
2717
2781
  var getEvent4 = /* @__PURE__ */ createRESTModule(getEvent3);
2718
2782
  var getEventBySlug4 = /* @__PURE__ */ createRESTModule(getEventBySlug3);
2783
+ var queryEvents4 = /* @__PURE__ */ createRESTModule(customQueryEvents);
2719
2784
  var onEventCanceled2 = createEventModule(onEventCanceled);
2720
2785
  var onEventCloned2 = createEventModule(onEventCloned);
2721
2786
  var onEventCreated2 = createEventModule(onEventCreated);