@wix/auto_sdk_events_wix-events-v-2 1.0.61 → 1.0.63

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,13 +1,14 @@
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.js';
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.js';
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.js';
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.js';
4
4
 
5
5
  declare function createEvent$1(httpClient: HttpClient): CreateEventSignature;
6
6
  interface CreateEventSignature {
7
7
  /**
8
8
  * Creates an event. <br> <br>
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 ([SDK](https://dev.wix.com/docs/sdk/backend-modules/events/forms/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/events/form/about-the-registration-form-api)) for more information. <br> <br>
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 };
@@ -2150,6 +2150,51 @@ function queryEvents2(options) {
2150
2150
  }
2151
2151
  );
2152
2152
  }
2153
+ async function typedQueryEvents(query, options) {
2154
+ const { httpClient, sideEffects } = arguments[2];
2155
+ const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
2156
+ { query, ...options },
2157
+ []
2158
+ );
2159
+ const reqOpts = queryEvents(payload);
2160
+ sideEffects?.onSiteCall?.();
2161
+ try {
2162
+ const result = await httpClient.request(reqOpts);
2163
+ sideEffects?.onSuccess?.(result);
2164
+ return (0, import_rename_all_nested_keys.renameKeysFromRESTResponseToSDKResponse)(
2165
+ (0, import_transform_paths2.transformPaths)(result.data, [
2166
+ {
2167
+ transformFn: import_image2.transformRESTImageToSDKImage,
2168
+ paths: [{ path: "events.mainImage" }]
2169
+ },
2170
+ {
2171
+ transformFn: import_page_url2.transformRESTPageURLToSDKPageURL,
2172
+ paths: [
2173
+ { path: "events.eventPageUrl" },
2174
+ { path: "events.agendaSettings.pageUrl" }
2175
+ ]
2176
+ },
2177
+ {
2178
+ transformFn: import_address2.transformRESTAddressToSDKAddress,
2179
+ paths: [{ path: "events.location.address" }]
2180
+ }
2181
+ ]),
2182
+ ["events.description"]
2183
+ );
2184
+ } catch (err) {
2185
+ const transformedError = (0, import_transform_error.transformError)(
2186
+ err,
2187
+ {
2188
+ spreadPathsToArguments: {},
2189
+ explicitPathsToArguments: { query: "$[0]" },
2190
+ singleArgumentUnchanged: false
2191
+ },
2192
+ ["query", "options"]
2193
+ );
2194
+ sideEffects?.onError?.(err);
2195
+ throw transformedError;
2196
+ }
2197
+ }
2153
2198
  async function countEventsByStatus2(options) {
2154
2199
  const { httpClient, sideEffects } = arguments[1];
2155
2200
  const payload = (0, import_rename_all_nested_keys.renameKeysFromSDKRequestToRESTRequest)(
@@ -2397,6 +2442,14 @@ function queryEvents3(httpClient) {
2397
2442
  { httpClient }
2398
2443
  );
2399
2444
  }
2445
+ function typedQueryEvents2(httpClient) {
2446
+ return (query, options) => typedQueryEvents(
2447
+ query,
2448
+ options,
2449
+ // @ts-ignore
2450
+ { httpClient }
2451
+ );
2452
+ }
2400
2453
  function countEventsByStatus3(httpClient) {
2401
2454
  return (options) => countEventsByStatus2(
2402
2455
  options,
@@ -2809,6 +2862,18 @@ var onEventUpdated = (0, import_sdk_types.EventDefinition)(
2809
2862
  // src/events-v3-event-wix-events-v-2.context.ts
2810
2863
  var import_rest_modules3 = require("@wix/sdk-runtime/rest-modules");
2811
2864
  var import_event_definition_modules = require("@wix/sdk-runtime/event-definition-modules");
2865
+ var import_query_method_router = require("@wix/sdk-runtime/query-method-router");
2866
+ function customQueryEvents(httpClient) {
2867
+ const router = (0, import_query_method_router.createQueryOverloadRouter)({
2868
+ builderQueryFunction: (options) => queryEvents3(httpClient)(options),
2869
+ typedQueryFunction: (query, options) => typedQueryEvents2(httpClient)(query, options),
2870
+ hasOptionsParameter: true
2871
+ });
2872
+ function overloadedQuery(queryOrOptions, options) {
2873
+ return router(...arguments);
2874
+ }
2875
+ return overloadedQuery;
2876
+ }
2812
2877
  var createEvent4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(createEvent3);
2813
2878
  var cloneEvent4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(cloneEvent3);
2814
2879
  var updateEvent4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(updateEvent3);
@@ -2817,11 +2882,11 @@ var cancelEvent4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(ca
2817
2882
  var bulkCancelEventsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkCancelEventsByFilter3);
2818
2883
  var deleteEvent4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(deleteEvent3);
2819
2884
  var bulkDeleteEventsByFilter4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(bulkDeleteEventsByFilter3);
2820
- var queryEvents4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(queryEvents3);
2821
2885
  var countEventsByStatus4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(countEventsByStatus3);
2822
2886
  var listEventsByCategory4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(listEventsByCategory3);
2823
2887
  var getEvent4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getEvent3);
2824
2888
  var getEventBySlug4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(getEventBySlug3);
2889
+ var queryEvents4 = /* @__PURE__ */ (0, import_rest_modules3.createRESTModule)(customQueryEvents);
2825
2890
  var onEventCanceled2 = (0, import_event_definition_modules.createEventModule)(onEventCanceled);
2826
2891
  var onEventCloned2 = (0, import_event_definition_modules.createEventModule)(onEventCloned);
2827
2892
  var onEventCreated2 = (0, import_event_definition_modules.createEventModule)(onEventCreated);