@wix/auto_sdk_events_wix-events-v-2 1.0.57 → 1.0.58

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.
Files changed (37) hide show
  1. package/build/cjs/index.d.ts +13 -3
  2. package/build/cjs/index.js +146 -0
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/index.typings.d.ts +23 -2
  5. package/build/cjs/index.typings.js +137 -0
  6. package/build/cjs/index.typings.js.map +1 -1
  7. package/build/cjs/meta.d.ts +6 -3
  8. package/build/cjs/meta.js +102 -0
  9. package/build/cjs/meta.js.map +1 -1
  10. package/build/es/index.d.mts +13 -3
  11. package/build/es/index.mjs +145 -0
  12. package/build/es/index.mjs.map +1 -1
  13. package/build/es/index.typings.d.mts +23 -2
  14. package/build/es/index.typings.mjs +136 -0
  15. package/build/es/index.typings.mjs.map +1 -1
  16. package/build/es/meta.d.mts +6 -3
  17. package/build/es/meta.mjs +101 -0
  18. package/build/es/meta.mjs.map +1 -1
  19. package/build/internal/cjs/index.d.ts +13 -3
  20. package/build/internal/cjs/index.js +146 -0
  21. package/build/internal/cjs/index.js.map +1 -1
  22. package/build/internal/cjs/index.typings.d.ts +23 -2
  23. package/build/internal/cjs/index.typings.js +137 -0
  24. package/build/internal/cjs/index.typings.js.map +1 -1
  25. package/build/internal/cjs/meta.d.ts +6 -3
  26. package/build/internal/cjs/meta.js +102 -0
  27. package/build/internal/cjs/meta.js.map +1 -1
  28. package/build/internal/es/index.d.mts +13 -3
  29. package/build/internal/es/index.mjs +145 -0
  30. package/build/internal/es/index.mjs.map +1 -1
  31. package/build/internal/es/index.typings.d.mts +23 -2
  32. package/build/internal/es/index.typings.mjs +136 -0
  33. package/build/internal/es/index.typings.mjs.map +1 -1
  34. package/build/internal/es/meta.d.mts +6 -3
  35. package/build/internal/es/meta.mjs +101 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +2 -2
@@ -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, 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, 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, ImageStyles, InitialExpandedItems, InitialExpandedItemsWithLiterals, InitialRegistrationTypeType, InitialRegistrationTypeTypeWithLiterals, Input, InputControl, InputControlType, InputControlTypeWithLiterals, Item, ItemDataOneOf, ItemStyle, Keyword, Label, LabellingSettings, Layout, LayoutCellData, LayoutType, LayoutTypeWithLiterals, LayoutWithLiterals, LineStyle, LineStyleWithLiterals, Link, LinkData, LinkDataOneOf, LinkPreviewData, LinkPreviewDataStyles, ListEventsByCategoryRequest, ListEventsByCategoryResponse, 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, RestoreInfo, RibbonStyles, RichContent, RsvpConfirmationMessages, RsvpFormMessages, RsvpFormMessagesNegativeResponseConfirmation, RsvpFormMessagesPositiveResponseConfirmation, RsvpRegistration, Rsvps, 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, 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, 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, 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, ImageStyles, InitialExpandedItems, InitialExpandedItemsWithLiterals, InitialRegistrationTypeType, InitialRegistrationTypeTypeWithLiterals, Input, InputControl, InputControlType, InputControlTypeWithLiterals, Item, ItemDataOneOf, ItemStyle, Keyword, Label, LabellingSettings, Layout, LayoutCellData, 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, RestoreInfo, RibbonStyles, RichContent, RsvpConfirmationMessages, RsvpFormMessages, RsvpFormMessagesNegativeResponseConfirmation, RsvpFormMessagesPositiveResponseConfirmation, RsvpRegistration, Rsvps, 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, 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 {
@@ -129,6 +129,15 @@ interface CountEventsByStatusSignature {
129
129
  __applicationErrorsType?: CountEventsByStatusApplicationErrors;
130
130
  }>;
131
131
  }
132
+ declare function listEventsByCategory$1(httpClient: HttpClient): ListEventsByCategorySignature;
133
+ interface ListEventsByCategorySignature {
134
+ /**
135
+ * Retrieves a list of up to 100 events that belong to the same event category.
136
+ * @param - Category ID.
137
+ * @param - Optional fields.
138
+ */
139
+ (categoryId: string, options?: ListEventsByCategoryOptions): Promise<NonNullablePaths<ListEventsByCategoryResponse, `events` | `events.${number}._id` | `events.${number}.location.type` | `events.${number}.dateAndTimeSettings.recurrenceStatus` | `events.${number}.slug` | `events.${number}.status` | `events.${number}.registration.type` | `events.${number}.registration.status` | `events.${number}.registration.rsvp.responseType` | `events.${number}.registration.rsvp.waitlistEnabled` | `events.${number}.registration.tickets.guestsAssignedSeparately` | `events.${number}.registration.tickets.ticketLimitPerOrder` | `events.${number}.registration.allowedGuestTypes` | `events.${number}.registration.initialType` | `events.${number}.registration.registrationPaused` | `events.${number}.registration.registrationDisabled` | `events.${number}.calendarUrls.google` | `events.${number}.calendarUrls.ics` | `events.${number}.summaries.rsvps.totalCount` | `events.${number}.summaries.rsvps.yesCount` | `events.${number}.summaries.rsvps.noCount` | `events.${number}.summaries.rsvps.waitlistCount` | `events.${number}.summaries.tickets.ticketsSold` | `events.${number}.summaries.tickets.currencyLocked` | `events.${number}.summaries.tickets.totalOrders` | `events.${number}.instanceId` | `events.${number}.guestListSettings.displayedPublicly` | `events.${number}.userId` | `events.${number}.onlineConferencing.enabled` | `events.${number}.onlineConferencing.type` | `events.${number}.onlineConferencing.session.hostLink` | `events.${number}.onlineConferencing.session.guestLink` | `events.${number}.seoSettings.slug` | `events.${number}.agendaSettings.enabled`, 6>>;
140
+ }
132
141
  declare function getEvent$1(httpClient: HttpClient): GetEventSignature;
133
142
  interface GetEventSignature {
134
143
  /**
@@ -170,6 +179,7 @@ declare const deleteEvent: MaybeContext<BuildRESTFunction<typeof deleteEvent$1>
170
179
  declare const bulkDeleteEventsByFilter: MaybeContext<BuildRESTFunction<typeof bulkDeleteEventsByFilter$1> & typeof bulkDeleteEventsByFilter$1>;
171
180
  declare const queryEvents: MaybeContext<BuildRESTFunction<typeof queryEvents$1> & typeof queryEvents$1>;
172
181
  declare const countEventsByStatus: MaybeContext<BuildRESTFunction<typeof countEventsByStatus$1> & typeof countEventsByStatus$1>;
182
+ declare const listEventsByCategory: MaybeContext<BuildRESTFunction<typeof listEventsByCategory$1> & typeof listEventsByCategory$1>;
173
183
  declare const getEvent: MaybeContext<BuildRESTFunction<typeof getEvent$1> & typeof getEvent$1>;
174
184
  declare const getEventBySlug: MaybeContext<BuildRESTFunction<typeof getEventBySlug$1> & typeof getEventBySlug$1>;
175
185
  /**
@@ -215,4 +225,4 @@ declare const onEventStarted: BuildEventDefinition<typeof onEventStarted$1> & ty
215
225
  */
216
226
  declare const onEventUpdated: BuildEventDefinition<typeof onEventUpdated$1> & typeof onEventUpdated$1;
217
227
 
218
- 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, PublishDraftEventApplicationErrors, PublishDraftEventOptions, PublishDraftEventResponse, QueryEventsOptions, UpdateEventApplicationErrors, UpdateEventOptions, UpdateEventValidationErrors, bulkCancelEventsByFilter, bulkDeleteEventsByFilter, cancelEvent, cloneEvent, countEventsByStatus, createEvent, deleteEvent, getEvent, getEventBySlug, onEventCanceled, onEventCloned, onEventCreated, onEventDeleted, onEventEnded, onEventPublished, onEventReminder, onEventStarted, onEventUpdated, publishDraftEvent, queryEvents, updateEvent };
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 };
@@ -834,6 +834,88 @@ function countEventsByStatus(payload) {
834
834
  }
835
835
  return __countEventsByStatus;
836
836
  }
837
+ function listEventsByCategory(payload) {
838
+ function __listEventsByCategory({ host }) {
839
+ const metadata = {
840
+ entityFqdn: "wix.events.v3.event",
841
+ method: "GET",
842
+ methodFqn: "wix.events.events.v3.EventManagement.ListEventsByCategory",
843
+ packageName: PACKAGE_NAME,
844
+ migrationOptions: {
845
+ optInTransformResponse: true
846
+ },
847
+ url: resolveWixEventsEventsV3EventManagementUrl({
848
+ protoPath: "/v3/events/category/{categoryId}",
849
+ data: payload,
850
+ host
851
+ }),
852
+ params: toURLSearchParams(payload),
853
+ transformResponse: (payload2) => transformPaths(payload2, [
854
+ {
855
+ transformFn: transformRESTTimestampToSDKTimestamp,
856
+ paths: [
857
+ { path: "events.createdDate" },
858
+ { path: "events.updatedDate" },
859
+ { path: "events.publishedDate" },
860
+ { path: "events.dateAndTimeSettings.startDate" },
861
+ { path: "events.dateAndTimeSettings.endDate" },
862
+ {
863
+ path: "events.dateAndTimeSettings.recurringEvents.individualEventDates.startDate"
864
+ },
865
+ {
866
+ path: "events.dateAndTimeSettings.recurringEvents.individualEventDates.endDate"
867
+ },
868
+ { path: "events.mainImage.urlExpirationDate" },
869
+ { path: "events.registration.rsvp.startDate" },
870
+ { path: "events.registration.rsvp.endDate" },
871
+ { path: "events.categories.categories.createdDate" },
872
+ { path: "events.description.metadata.createdTimestamp" },
873
+ { path: "events.description.metadata.updatedTimestamp" },
874
+ { path: "events.badges.badges.functionUpdateDate" }
875
+ ]
876
+ },
877
+ {
878
+ transformFn: transformRESTFloatToSDKFloat,
879
+ paths: [
880
+ { path: "events.location.address.geocode.latitude" },
881
+ { path: "events.location.address.geocode.longitude" },
882
+ {
883
+ path: "events.description.nodes.galleryData.items.image.media.duration"
884
+ },
885
+ {
886
+ path: "events.description.nodes.galleryData.items.video.media.duration"
887
+ },
888
+ {
889
+ path: "events.description.nodes.galleryData.items.video.thumbnail.duration"
890
+ },
891
+ {
892
+ path: "events.description.nodes.galleryData.options.item.ratio"
893
+ },
894
+ { path: "events.description.nodes.imageData.image.duration" },
895
+ { path: "events.description.nodes.mapData.mapSettings.lat" },
896
+ { path: "events.description.nodes.mapData.mapSettings.lng" },
897
+ { path: "events.description.nodes.pollData.poll.image.duration" },
898
+ {
899
+ path: "events.description.nodes.pollData.poll.options.image.duration"
900
+ },
901
+ {
902
+ path: "events.description.nodes.pollData.design.poll.background.image.duration"
903
+ },
904
+ { path: "events.description.nodes.appEmbedData.image.duration" },
905
+ { path: "events.description.nodes.videoData.video.duration" },
906
+ { path: "events.description.nodes.videoData.thumbnail.duration" },
907
+ { path: "events.description.nodes.audioData.audio.duration" },
908
+ {
909
+ path: "events.description.nodes.audioData.coverImage.duration"
910
+ }
911
+ ]
912
+ }
913
+ ])
914
+ };
915
+ return metadata;
916
+ }
917
+ return __listEventsByCategory;
918
+ }
837
919
  function getEvent(payload) {
838
920
  function __getEvent({ host }) {
839
921
  const metadata = {
@@ -1894,6 +1976,59 @@ async function countEventsByStatus2(options) {
1894
1976
  throw transformedError;
1895
1977
  }
1896
1978
  }
1979
+ async function listEventsByCategory2(categoryId, options) {
1980
+ const { httpClient, sideEffects } = arguments[2];
1981
+ const payload = renameKeysFromSDKRequestToRESTRequest(
1982
+ {
1983
+ categoryId,
1984
+ paging: options?.paging,
1985
+ fields: options?.fields
1986
+ },
1987
+ []
1988
+ );
1989
+ const reqOpts = listEventsByCategory(payload);
1990
+ sideEffects?.onSiteCall?.();
1991
+ try {
1992
+ const result = await httpClient.request(reqOpts);
1993
+ sideEffects?.onSuccess?.(result);
1994
+ return renameKeysFromRESTResponseToSDKResponse(
1995
+ transformPaths2(result.data, [
1996
+ {
1997
+ transformFn: transformRESTImageToSDKImage,
1998
+ paths: [{ path: "events.mainImage" }]
1999
+ },
2000
+ {
2001
+ transformFn: transformRESTPageURLToSDKPageURL,
2002
+ paths: [
2003
+ { path: "events.eventPageUrl" },
2004
+ { path: "events.agendaSettings.pageUrl" }
2005
+ ]
2006
+ },
2007
+ {
2008
+ transformFn: transformRESTAddressToSDKAddress,
2009
+ paths: [{ path: "events.location.address" }]
2010
+ }
2011
+ ]),
2012
+ ["events.description"]
2013
+ );
2014
+ } catch (err) {
2015
+ const transformedError = sdkTransformError(
2016
+ err,
2017
+ {
2018
+ spreadPathsToArguments: {},
2019
+ explicitPathsToArguments: {
2020
+ categoryId: "$[0]",
2021
+ paging: "$[1].paging",
2022
+ fields: "$[1].fields"
2023
+ },
2024
+ singleArgumentUnchanged: false
2025
+ },
2026
+ ["categoryId", "options"]
2027
+ );
2028
+ sideEffects?.onError?.(err);
2029
+ throw transformedError;
2030
+ }
2031
+ }
1897
2032
  async function getEvent2(eventId, options) {
1898
2033
  const { httpClient, sideEffects } = arguments[2];
1899
2034
  const payload = renameKeysFromSDKRequestToRESTRequest(
@@ -2061,6 +2196,14 @@ function countEventsByStatus3(httpClient) {
2061
2196
  { httpClient }
2062
2197
  );
2063
2198
  }
2199
+ function listEventsByCategory3(httpClient) {
2200
+ return (categoryId, options) => listEventsByCategory2(
2201
+ categoryId,
2202
+ options,
2203
+ // @ts-ignore
2204
+ { httpClient }
2205
+ );
2206
+ }
2064
2207
  function getEvent3(httpClient) {
2065
2208
  return (eventId, options) => getEvent2(
2066
2209
  eventId,
@@ -2450,6 +2593,7 @@ var deleteEvent4 = /* @__PURE__ */ createRESTModule(deleteEvent3);
2450
2593
  var bulkDeleteEventsByFilter4 = /* @__PURE__ */ createRESTModule(bulkDeleteEventsByFilter3);
2451
2594
  var queryEvents4 = /* @__PURE__ */ createRESTModule(queryEvents3);
2452
2595
  var countEventsByStatus4 = /* @__PURE__ */ createRESTModule(countEventsByStatus3);
2596
+ var listEventsByCategory4 = /* @__PURE__ */ createRESTModule(listEventsByCategory3);
2453
2597
  var getEvent4 = /* @__PURE__ */ createRESTModule(getEvent3);
2454
2598
  var getEventBySlug4 = /* @__PURE__ */ createRESTModule(getEventBySlug3);
2455
2599
  var onEventCanceled2 = createEventModule(onEventCanceled);
@@ -2529,6 +2673,7 @@ export {
2529
2673
  deleteEvent4 as deleteEvent,
2530
2674
  getEvent4 as getEvent,
2531
2675
  getEventBySlug4 as getEventBySlug,
2676
+ listEventsByCategory4 as listEventsByCategory,
2532
2677
  onEventCanceled2 as onEventCanceled,
2533
2678
  onEventCloned2 as onEventCloned,
2534
2679
  onEventCreated2 as onEventCreated,