@wix/auto_sdk_events_wix-events-v-2 1.0.56 → 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 +824 -2
  8. package/build/cjs/meta.js +640 -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 +824 -2
  17. package/build/es/meta.mjs +581 -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 +824 -2
  26. package/build/internal/cjs/meta.js +640 -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 +824 -2
  35. package/build/internal/es/meta.mjs +581 -0
  36. package/build/internal/es/meta.mjs.map +1 -1
  37. package/package.json +3 -3
@@ -3555,7 +3555,7 @@ interface ListEventsByCategoryRequest {
3555
3555
  * Category ID.
3556
3556
  * @format GUID
3557
3557
  */
3558
- categoryId?: string;
3558
+ categoryId: string;
3559
3559
  /** Paging options to limit and skip the number of items. */
3560
3560
  paging?: CommonPaging;
3561
3561
  /**
@@ -4668,6 +4668,27 @@ interface CountEventsByStatusOptions {
4668
4668
  */
4669
4669
  includeDrafts?: boolean;
4670
4670
  }
4671
+ /**
4672
+ * Retrieves a list of up to 100 events that belong to the same event category.
4673
+ * @param categoryId - Category ID.
4674
+ * @public
4675
+ * @documentationMaturity preview
4676
+ * @requiredField categoryId
4677
+ * @param options - Optional fields.
4678
+ * @permissionId WIX_EVENTS.READ_EVENTS
4679
+ * @applicableIdentity APP
4680
+ * @fqn wix.events.events.v3.EventManagement.ListEventsByCategory
4681
+ */
4682
+ declare function listEventsByCategory(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>>;
4683
+ interface ListEventsByCategoryOptions {
4684
+ /** Paging options to limit and skip the number of items. */
4685
+ paging?: CommonPaging;
4686
+ /**
4687
+ * Predefined sets of fields to return. If both `fields` and `fieldsets` are sent in the request, the union of both lists is returned.
4688
+ * @maxSize 20
4689
+ */
4690
+ fields?: RequestedFieldsWithLiterals[];
4691
+ }
4671
4692
  /**
4672
4693
  * Retrieves an event by ID.
4673
4694
  * @param eventId - Event ID.
@@ -4705,4 +4726,4 @@ interface GetEventBySlugOptions {
4705
4726
  fields?: RequestedFieldsWithLiterals[];
4706
4727
  }
4707
4728
 
4708
- export { type ActionEvent, type Address, type AddressLocation, type AddressStreetOneOf, type AgendaSettings, Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, BackgroundType, type BackgroundTypeWithLiterals, type Badge, type BadgeList, BadgeTypeType, type BadgeTypeTypeWithLiterals, type BaseEventMetadata, type BlockquoteData, type BookingData, type Border, type BorderColors, type BulkCancelEventsByFilterOptions, type BulkCancelEventsByFilterRequest, type BulkCancelEventsByFilterResponse, type BulkDeleteEventsByFilterOptions, type BulkDeleteEventsByFilterRequest, type BulkDeleteEventsByFilterResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CalendarUrls, type CancelEventApplicationErrors, type CancelEventOptions, type CancelEventRequest, type CancelEventResponse, type CaptionData, type CardStyles, CardStylesType, type CardStylesTypeWithLiterals, type CellStyle, type CheckoutFormMessages, CheckoutType, type CheckoutTypeWithLiterals, type CloneEventFromOtherSiteRequest, type CloneEventFromOtherSiteResponse, type CloneEventOptions, type CloneEventRequest, type CloneEventResponse, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, type CommonCursors, type CommonPaging, type CommonPagingMetadataV2, type CommonQueryV2, type CommonQueryV2PagingMethodOneOf, CommonSortOrder, type CommonSortOrderWithLiterals, type CommonSorting, ConferenceTypeType, type ConferenceTypeTypeWithLiterals, type CountEventsByStatusApplicationErrors, type CountEventsByStatusOptions, type CountEventsByStatusRequest, type CountEventsByStatusResponse, type CreateEventApplicationErrors, type CreateEventOptions, type CreateEventRequest, type CreateEventResponse, type CreateEventValidationErrors, Crop, type CropWithLiterals, type CursorPaging, type Cursors, type DateAndTimeSettings, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeleteEventRequest, type DeleteEventResponse, type Design, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type EmbedData, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type Event, type EventCanceled, type EventCanceledEnvelope, type EventCategories, type EventCategory, type EventCloned, type EventClonedEnvelope, type EventCreatedEnvelope, type EventData, type EventDeletedEnvelope, type EventDisplaySettings, type EventEnded, type EventEndedEnvelope, type EventMetadata, type EventPublished, type EventPublishedEnvelope, type EventReminder, type EventReminderEnvelope, type EventStarted, type EventStartedEnvelope, type EventUpdatedEnvelope, type EventsMoney, type EventsQueryBuilder, type EventsQueryResult, type ExportEventsRequest, type ExportEventsResponse, type ExternalRegistration, type FacetCounts, type Feed, type FileData, type FileSource, type FileSourceDataOneOf, type FindEventRequest, type FindEventRequestFindByOneOf, type FindEventResponse, type FontSizeData, FontType, type FontTypeWithLiterals, type Form, type FormMessages, type Formatted, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetEventBySlugOptions, type GetEventBySlugRequest, type GetEventBySlugResponse, type GetEventOptions, type GetEventRequest, type GetEventResponse, type Gradient, type GuestListSettings, GuestTypeType, type GuestTypeTypeWithLiterals, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataStyles, type ImageStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, InitialRegistrationTypeType, type InitialRegistrationTypeTypeWithLiterals, type Input, type InputControl, InputControlType, type InputControlTypeWithLiterals, type Item, type ItemDataOneOf, type ItemStyle, type Keyword, type Label, type LabellingSettings, Layout, type LayoutCellData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListEventsByCategoryRequest, type ListEventsByCategoryResponse, type ListUserEventsRequest, type ListUserEventsResponse, type ListValue, type Location, LocationType, type LocationTypeWithLiterals, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MentionData, type MessageEnvelope, type Metadata, type Money, type Negative, type NegativeResponseConfirmation, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Occurrence, type Oembed, type OnlineConferencing, type OnlineConferencingSession, type Option, type OptionDesign, type OptionLayout, type OptionSelection, type OptionSelectionSelectedOptionOneOf, type OrderedListData, Orientation, type OrientationWithLiterals, type PDFSettings, type Paging, type PagingMetadataV2, type ParagraphData, type Permissions, Placement, type PlacementWithLiterals, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, type PollSettings, Position, type PositionWithLiterals, type Positive, type PositiveResponseConfirmation, type PricingData, type PublishDraftEventApplicationErrors, type PublishDraftEventOptions, type PublishDraftEventRequest, type PublishDraftEventResponse, type QueryEventsApplicationErrors, type QueryEventsOptions, type QueryEventsRequest, type QueryEventsResponse, type QueryV2, type QueryV2PagingMethodOneOf, RecurrenceStatusStatus, type RecurrenceStatusStatusWithLiterals, type Recurrences, type Registration, type RegistrationClosedMessages, RegistrationStatusStatus, type RegistrationStatusStatusWithLiterals, RegistrationTypeType, type RegistrationTypeTypeWithLiterals, type Rel, Relation, type RelationWithLiterals, RequestedFields, type RequestedFieldsWithLiterals, Resizing, type ResizingWithLiterals, type ResponseConfirmation, ResponseType, type ResponseTypeWithLiterals, type RestoreInfo, type RibbonStyles, type RichContent, type RsvpConfirmationMessages, type RsvpFormMessages, type RsvpFormMessagesNegativeResponseConfirmation, type RsvpFormMessagesPositiveResponseConfirmation, type RsvpRegistration, type Rsvps, type SeoSchema, type SeoSettings, type Settings, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, Status, type StatusWithLiterals, type StreetAddress, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type Subdivision, SubdivisionType, type SubdivisionTypeWithLiterals, type Summaries, type TableCellData, type TableData, type Tag, Target, type TargetWithLiterals, type TaxSettings, TaxType, type TaxTypeWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, type Tickets, type TicketsConfirmationMessages, type TicketsRegistration, type TicketsUnavailableMessages, type TimeDuration, Type, type TypeWithLiterals, type UpdateEventApplicationErrors, type UpdateEventOptions, type UpdateEventRequest, type UpdateEventResponse, type UpdateEventValidationErrors, type UserFilter, ValueType, type ValueTypeWithLiterals, VerticalAlignment, type VerticalAlignmentWithLiterals, type Video, type VideoData, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, bulkCancelEventsByFilter, bulkDeleteEventsByFilter, cancelEvent, cloneEvent, countEventsByStatus, createEvent, deleteEvent, getEvent, getEventBySlug, onEventCanceled, onEventCloned, onEventCreated, onEventDeleted, onEventEnded, onEventPublished, onEventReminder, onEventStarted, onEventUpdated, publishDraftEvent, queryEvents, updateEvent };
4729
+ export { type ActionEvent, type Address, type AddressLocation, type AddressStreetOneOf, type AgendaSettings, Alignment, type AlignmentWithLiterals, type AnchorData, type AppEmbedData, type AppEmbedDataAppDataOneOf, AppType, type AppTypeWithLiterals, AspectRatio, type AspectRatioWithLiterals, type AudioData, type Background, type BackgroundBackgroundOneOf, BackgroundType, type BackgroundTypeWithLiterals, type Badge, type BadgeList, BadgeTypeType, type BadgeTypeTypeWithLiterals, type BaseEventMetadata, type BlockquoteData, type BookingData, type Border, type BorderColors, type BulkCancelEventsByFilterOptions, type BulkCancelEventsByFilterRequest, type BulkCancelEventsByFilterResponse, type BulkDeleteEventsByFilterOptions, type BulkDeleteEventsByFilterRequest, type BulkDeleteEventsByFilterResponse, type BulletedListData, type ButtonData, ButtonDataType, type ButtonDataTypeWithLiterals, type ButtonStyles, type CalendarUrls, type CancelEventApplicationErrors, type CancelEventOptions, type CancelEventRequest, type CancelEventResponse, type CaptionData, type CardStyles, CardStylesType, type CardStylesTypeWithLiterals, type CellStyle, type CheckoutFormMessages, CheckoutType, type CheckoutTypeWithLiterals, type CloneEventFromOtherSiteRequest, type CloneEventFromOtherSiteResponse, type CloneEventOptions, type CloneEventRequest, type CloneEventResponse, type CodeBlockData, type CollapsibleListData, type ColorData, type Colors, type CommonCursors, type CommonPaging, type CommonPagingMetadataV2, type CommonQueryV2, type CommonQueryV2PagingMethodOneOf, CommonSortOrder, type CommonSortOrderWithLiterals, type CommonSorting, ConferenceTypeType, type ConferenceTypeTypeWithLiterals, type CountEventsByStatusApplicationErrors, type CountEventsByStatusOptions, type CountEventsByStatusRequest, type CountEventsByStatusResponse, type CreateEventApplicationErrors, type CreateEventOptions, type CreateEventRequest, type CreateEventResponse, type CreateEventValidationErrors, Crop, type CropWithLiterals, type CursorPaging, type Cursors, type DateAndTimeSettings, type Decoration, type DecorationDataOneOf, DecorationType, type DecorationTypeWithLiterals, type DeleteEventRequest, type DeleteEventResponse, type Design, type Dimensions, Direction, type DirectionWithLiterals, type DividerData, DividerDataAlignment, type DividerDataAlignmentWithLiterals, type DocumentStyle, type DomainEvent, type DomainEventBodyOneOf, type EmbedData, type Empty, type EntityCreatedEvent, type EntityDeletedEvent, type EntityUpdatedEvent, type Event, type EventCanceled, type EventCanceledEnvelope, type EventCategories, type EventCategory, type EventCloned, type EventClonedEnvelope, type EventCreatedEnvelope, type EventData, type EventDeletedEnvelope, type EventDisplaySettings, type EventEnded, type EventEndedEnvelope, type EventMetadata, type EventPublished, type EventPublishedEnvelope, type EventReminder, type EventReminderEnvelope, type EventStarted, type EventStartedEnvelope, type EventUpdatedEnvelope, type EventsMoney, type EventsQueryBuilder, type EventsQueryResult, type ExportEventsRequest, type ExportEventsResponse, type ExternalRegistration, type FacetCounts, type Feed, type FileData, type FileSource, type FileSourceDataOneOf, type FindEventRequest, type FindEventRequestFindByOneOf, type FindEventResponse, type FontSizeData, FontType, type FontTypeWithLiterals, type Form, type FormMessages, type Formatted, type GIF, type GIFData, GIFType, type GIFTypeWithLiterals, type GalleryData, type GalleryOptions, type GalleryOptionsLayout, type GetEventBySlugOptions, type GetEventBySlugRequest, type GetEventBySlugResponse, type GetEventOptions, type GetEventRequest, type GetEventResponse, type Gradient, type GuestListSettings, GuestTypeType, type GuestTypeTypeWithLiterals, type HTMLData, type HTMLDataDataOneOf, type HeadingData, type Height, type IdentificationData, type IdentificationDataIdOneOf, type Image, type ImageData, type ImageDataStyles, type ImageStyles, InitialExpandedItems, type InitialExpandedItemsWithLiterals, InitialRegistrationTypeType, type InitialRegistrationTypeTypeWithLiterals, type Input, type InputControl, InputControlType, type InputControlTypeWithLiterals, type Item, type ItemDataOneOf, type ItemStyle, type Keyword, type Label, type LabellingSettings, Layout, type LayoutCellData, LayoutType, type LayoutTypeWithLiterals, type LayoutWithLiterals, LineStyle, type LineStyleWithLiterals, type Link, type LinkData, type LinkDataOneOf, type LinkPreviewData, type LinkPreviewDataStyles, type ListEventsByCategoryOptions, type ListEventsByCategoryRequest, type ListEventsByCategoryResponse, type ListUserEventsRequest, type ListUserEventsResponse, type ListValue, type Location, LocationType, type LocationTypeWithLiterals, type MapData, type MapSettings, MapType, type MapTypeWithLiterals, type Media, type MentionData, type MessageEnvelope, type Metadata, type Money, type Negative, type NegativeResponseConfirmation, type Node, type NodeDataOneOf, type NodeStyle, NodeType, type NodeTypeWithLiterals, NullValue, type NullValueWithLiterals, type Occurrence, type Oembed, type OnlineConferencing, type OnlineConferencingSession, type Option, type OptionDesign, type OptionLayout, type OptionSelection, type OptionSelectionSelectedOptionOneOf, type OrderedListData, Orientation, type OrientationWithLiterals, type PDFSettings, type Paging, type PagingMetadataV2, type ParagraphData, type Permissions, Placement, type PlacementWithLiterals, type PlaybackOptions, type PluginContainerData, PluginContainerDataAlignment, type PluginContainerDataAlignmentWithLiterals, type PluginContainerDataWidth, type PluginContainerDataWidthDataOneOf, type Poll, type PollData, type PollDataLayout, type PollDesign, type PollLayout, PollLayoutDirection, type PollLayoutDirectionWithLiterals, PollLayoutType, type PollLayoutTypeWithLiterals, type PollSettings, Position, type PositionWithLiterals, type Positive, type PositiveResponseConfirmation, type PricingData, type PublishDraftEventApplicationErrors, type PublishDraftEventOptions, type PublishDraftEventRequest, type PublishDraftEventResponse, type QueryEventsApplicationErrors, type QueryEventsOptions, type QueryEventsRequest, type QueryEventsResponse, type QueryV2, type QueryV2PagingMethodOneOf, RecurrenceStatusStatus, type RecurrenceStatusStatusWithLiterals, type Recurrences, type Registration, type RegistrationClosedMessages, RegistrationStatusStatus, type RegistrationStatusStatusWithLiterals, RegistrationTypeType, type RegistrationTypeTypeWithLiterals, type Rel, Relation, type RelationWithLiterals, RequestedFields, type RequestedFieldsWithLiterals, Resizing, type ResizingWithLiterals, type ResponseConfirmation, ResponseType, type ResponseTypeWithLiterals, type RestoreInfo, type RibbonStyles, type RichContent, type RsvpConfirmationMessages, type RsvpFormMessages, type RsvpFormMessagesNegativeResponseConfirmation, type RsvpFormMessagesPositiveResponseConfirmation, type RsvpRegistration, type Rsvps, type SeoSchema, type SeoSettings, type Settings, SortOrder, type SortOrderWithLiterals, type Sorting, Source, type SourceWithLiterals, type Spoiler, type SpoilerData, Status, type StatusWithLiterals, type StreetAddress, type Styles, type StylesBorder, StylesPosition, type StylesPositionWithLiterals, type Subdivision, SubdivisionType, type SubdivisionTypeWithLiterals, type Summaries, type TableCellData, type TableData, type Tag, Target, type TargetWithLiterals, type TaxSettings, TaxType, type TaxTypeWithLiterals, TextAlignment, type TextAlignmentWithLiterals, type TextData, type TextNodeStyle, type TextStyle, type Thumbnails, ThumbnailsAlignment, type ThumbnailsAlignmentWithLiterals, type Tickets, type TicketsConfirmationMessages, type TicketsRegistration, type TicketsUnavailableMessages, type TimeDuration, Type, type TypeWithLiterals, type UpdateEventApplicationErrors, type UpdateEventOptions, type UpdateEventRequest, type UpdateEventResponse, type UpdateEventValidationErrors, type UserFilter, ValueType, type ValueTypeWithLiterals, VerticalAlignment, type VerticalAlignmentWithLiterals, type Video, type VideoData, ViewMode, type ViewModeWithLiterals, ViewRole, type ViewRoleWithLiterals, VoteRole, type VoteRoleWithLiterals, WebhookIdentityType, type WebhookIdentityTypeWithLiterals, Width, WidthType, type WidthTypeWithLiterals, type WidthWithLiterals, bulkCancelEventsByFilter, bulkDeleteEventsByFilter, cancelEvent, cloneEvent, countEventsByStatus, createEvent, deleteEvent, getEvent, getEventBySlug, listEventsByCategory, onEventCanceled, onEventCloned, onEventCreated, onEventDeleted, onEventEnded, onEventPublished, onEventReminder, onEventStarted, onEventUpdated, publishDraftEvent, queryEvents, updateEvent };
@@ -824,6 +824,88 @@ function countEventsByStatus(payload) {
824
824
  }
825
825
  return __countEventsByStatus;
826
826
  }
827
+ function listEventsByCategory(payload) {
828
+ function __listEventsByCategory({ host }) {
829
+ const metadata = {
830
+ entityFqdn: "wix.events.v3.event",
831
+ method: "GET",
832
+ methodFqn: "wix.events.events.v3.EventManagement.ListEventsByCategory",
833
+ packageName: PACKAGE_NAME,
834
+ migrationOptions: {
835
+ optInTransformResponse: true
836
+ },
837
+ url: resolveWixEventsEventsV3EventManagementUrl({
838
+ protoPath: "/v3/events/category/{categoryId}",
839
+ data: payload,
840
+ host
841
+ }),
842
+ params: toURLSearchParams(payload),
843
+ transformResponse: (payload2) => transformPaths(payload2, [
844
+ {
845
+ transformFn: transformRESTTimestampToSDKTimestamp,
846
+ paths: [
847
+ { path: "events.createdDate" },
848
+ { path: "events.updatedDate" },
849
+ { path: "events.publishedDate" },
850
+ { path: "events.dateAndTimeSettings.startDate" },
851
+ { path: "events.dateAndTimeSettings.endDate" },
852
+ {
853
+ path: "events.dateAndTimeSettings.recurringEvents.individualEventDates.startDate"
854
+ },
855
+ {
856
+ path: "events.dateAndTimeSettings.recurringEvents.individualEventDates.endDate"
857
+ },
858
+ { path: "events.mainImage.urlExpirationDate" },
859
+ { path: "events.registration.rsvp.startDate" },
860
+ { path: "events.registration.rsvp.endDate" },
861
+ { path: "events.categories.categories.createdDate" },
862
+ { path: "events.description.metadata.createdTimestamp" },
863
+ { path: "events.description.metadata.updatedTimestamp" },
864
+ { path: "events.badges.badges.functionUpdateDate" }
865
+ ]
866
+ },
867
+ {
868
+ transformFn: transformRESTFloatToSDKFloat,
869
+ paths: [
870
+ { path: "events.location.address.geocode.latitude" },
871
+ { path: "events.location.address.geocode.longitude" },
872
+ {
873
+ path: "events.description.nodes.galleryData.items.image.media.duration"
874
+ },
875
+ {
876
+ path: "events.description.nodes.galleryData.items.video.media.duration"
877
+ },
878
+ {
879
+ path: "events.description.nodes.galleryData.items.video.thumbnail.duration"
880
+ },
881
+ {
882
+ path: "events.description.nodes.galleryData.options.item.ratio"
883
+ },
884
+ { path: "events.description.nodes.imageData.image.duration" },
885
+ { path: "events.description.nodes.mapData.mapSettings.lat" },
886
+ { path: "events.description.nodes.mapData.mapSettings.lng" },
887
+ { path: "events.description.nodes.pollData.poll.image.duration" },
888
+ {
889
+ path: "events.description.nodes.pollData.poll.options.image.duration"
890
+ },
891
+ {
892
+ path: "events.description.nodes.pollData.design.poll.background.image.duration"
893
+ },
894
+ { path: "events.description.nodes.appEmbedData.image.duration" },
895
+ { path: "events.description.nodes.videoData.video.duration" },
896
+ { path: "events.description.nodes.videoData.thumbnail.duration" },
897
+ { path: "events.description.nodes.audioData.audio.duration" },
898
+ {
899
+ path: "events.description.nodes.audioData.coverImage.duration"
900
+ }
901
+ ]
902
+ }
903
+ ])
904
+ };
905
+ return metadata;
906
+ }
907
+ return __listEventsByCategory;
908
+ }
827
909
  function getEvent(payload) {
828
910
  function __getEvent({ host }) {
829
911
  const metadata = {
@@ -1884,6 +1966,59 @@ async function countEventsByStatus2(options) {
1884
1966
  throw transformedError;
1885
1967
  }
1886
1968
  }
1969
+ async function listEventsByCategory2(categoryId, options) {
1970
+ const { httpClient, sideEffects } = arguments[2];
1971
+ const payload = renameKeysFromSDKRequestToRESTRequest(
1972
+ {
1973
+ categoryId,
1974
+ paging: options?.paging,
1975
+ fields: options?.fields
1976
+ },
1977
+ []
1978
+ );
1979
+ const reqOpts = listEventsByCategory(payload);
1980
+ sideEffects?.onSiteCall?.();
1981
+ try {
1982
+ const result = await httpClient.request(reqOpts);
1983
+ sideEffects?.onSuccess?.(result);
1984
+ return renameKeysFromRESTResponseToSDKResponse(
1985
+ transformPaths2(result.data, [
1986
+ {
1987
+ transformFn: transformRESTImageToSDKImage,
1988
+ paths: [{ path: "events.mainImage" }]
1989
+ },
1990
+ {
1991
+ transformFn: transformRESTPageURLToSDKPageURL,
1992
+ paths: [
1993
+ { path: "events.eventPageUrl" },
1994
+ { path: "events.agendaSettings.pageUrl" }
1995
+ ]
1996
+ },
1997
+ {
1998
+ transformFn: transformRESTAddressToSDKAddress,
1999
+ paths: [{ path: "events.location.address" }]
2000
+ }
2001
+ ]),
2002
+ ["events.description"]
2003
+ );
2004
+ } catch (err) {
2005
+ const transformedError = sdkTransformError(
2006
+ err,
2007
+ {
2008
+ spreadPathsToArguments: {},
2009
+ explicitPathsToArguments: {
2010
+ categoryId: "$[0]",
2011
+ paging: "$[1].paging",
2012
+ fields: "$[1].fields"
2013
+ },
2014
+ singleArgumentUnchanged: false
2015
+ },
2016
+ ["categoryId", "options"]
2017
+ );
2018
+ sideEffects?.onError?.(err);
2019
+ throw transformedError;
2020
+ }
2021
+ }
1887
2022
  async function getEvent2(eventId, options) {
1888
2023
  const { httpClient, sideEffects } = arguments[2];
1889
2024
  const payload = renameKeysFromSDKRequestToRESTRequest(
@@ -2042,6 +2177,7 @@ export {
2042
2177
  deleteEvent2 as deleteEvent,
2043
2178
  getEvent2 as getEvent,
2044
2179
  getEventBySlug2 as getEventBySlug,
2180
+ listEventsByCategory2 as listEventsByCategory,
2045
2181
  publishDraftEvent2 as publishDraftEvent,
2046
2182
  queryEvents2 as queryEvents,
2047
2183
  updateEvent2 as updateEvent