@wix/events 1.0.168 → 1.0.170

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 (43) hide show
  1. package/build/cjs/src/events-v1-ticket-definition.universal.d.ts +0 -7
  2. package/build/cjs/src/events-v1-ticket-definition.universal.js +0 -7
  3. package/build/cjs/src/events-v1-ticket-definition.universal.js.map +1 -1
  4. package/build/cjs/src/events-v1-ticket.http.d.ts +3 -27
  5. package/build/cjs/src/events-v1-ticket.http.js +3 -27
  6. package/build/cjs/src/events-v1-ticket.http.js.map +1 -1
  7. package/build/cjs/src/events-v1-ticket.universal.d.ts +82 -73
  8. package/build/cjs/src/events-v1-ticket.universal.js +7 -29
  9. package/build/cjs/src/events-v1-ticket.universal.js.map +1 -1
  10. package/build/cjs/src/events-v3-event.http.d.ts +54 -28
  11. package/build/cjs/src/events-v3-event.http.js +54 -28
  12. package/build/cjs/src/events-v3-event.http.js.map +1 -1
  13. package/build/cjs/src/events-v3-event.universal.d.ts +172 -66
  14. package/build/cjs/src/events-v3-event.universal.js +63 -38
  15. package/build/cjs/src/events-v3-event.universal.js.map +1 -1
  16. package/build/cjs/src/events-v3-ticket-definition.http.d.ts +9 -1
  17. package/build/cjs/src/events-v3-ticket-definition.http.js +9 -1
  18. package/build/cjs/src/events-v3-ticket-definition.http.js.map +1 -1
  19. package/build/cjs/src/events-v3-ticket-definition.universal.d.ts +19 -8
  20. package/build/cjs/src/events-v3-ticket-definition.universal.js +13 -8
  21. package/build/cjs/src/events-v3-ticket-definition.universal.js.map +1 -1
  22. package/build/es/src/events-v1-ticket-definition.universal.d.ts +0 -7
  23. package/build/es/src/events-v1-ticket-definition.universal.js +0 -7
  24. package/build/es/src/events-v1-ticket-definition.universal.js.map +1 -1
  25. package/build/es/src/events-v1-ticket.http.d.ts +3 -27
  26. package/build/es/src/events-v1-ticket.http.js +3 -27
  27. package/build/es/src/events-v1-ticket.http.js.map +1 -1
  28. package/build/es/src/events-v1-ticket.universal.d.ts +82 -73
  29. package/build/es/src/events-v1-ticket.universal.js +7 -29
  30. package/build/es/src/events-v1-ticket.universal.js.map +1 -1
  31. package/build/es/src/events-v3-event.http.d.ts +54 -28
  32. package/build/es/src/events-v3-event.http.js +54 -28
  33. package/build/es/src/events-v3-event.http.js.map +1 -1
  34. package/build/es/src/events-v3-event.universal.d.ts +172 -66
  35. package/build/es/src/events-v3-event.universal.js +63 -38
  36. package/build/es/src/events-v3-event.universal.js.map +1 -1
  37. package/build/es/src/events-v3-ticket-definition.http.d.ts +9 -1
  38. package/build/es/src/events-v3-ticket-definition.http.js +9 -1
  39. package/build/es/src/events-v3-ticket-definition.http.js.map +1 -1
  40. package/build/es/src/events-v3-ticket-definition.universal.d.ts +19 -8
  41. package/build/es/src/events-v3-ticket-definition.universal.js +13 -8
  42. package/build/es/src/events-v3-ticket-definition.universal.js.map +1 -1
  43. package/package.json +2 -2
@@ -9,8 +9,11 @@ export interface V3Event {
9
9
  location?: Location;
10
10
  /** Event date and time settings. */
11
11
  dateAndTimeSettings?: DateAndTimeSettings;
12
+ /** Event title. */
12
13
  title?: string | null;
14
+ /** Short description that appears under the event title. */
13
15
  shortDescription?: string | null;
16
+ /** Detailed description of an event. You can enter the description using rich text format (add various types of markups, such as underlines, italics, bolding, color codes, bullet lists, and links by using HTML formatting tags). */
14
17
  detailedDescription?: string | null;
15
18
  /** Main event image. */
16
19
  mainImage?: string;
@@ -29,7 +32,15 @@ export interface V3Event {
29
32
  * @readonly
30
33
  */
31
34
  _updatedDate?: Date;
32
- /** @readonly */
35
+ /**
36
+ * Event status:
37
+ *
38
+ * - `UPCOMING`: Event is published and scheduled to start.
39
+ * - `STARTED`: Event has started.
40
+ * - `ENDED`: Event has ended.
41
+ * - `CANCELED`: Event is canceled.
42
+ * - `DRAFT`: Event is not published.
43
+ * @readonly */
33
44
  status?: Status;
34
45
  /** RSVP or ticketing registration details. */
35
46
  registration?: Registration;
@@ -71,7 +82,14 @@ export interface V3Event {
71
82
  eventDisplaySettings?: V3EventDisplaySettings;
72
83
  }
73
84
  export interface Location {
85
+ /** Location name. This value is displayed instead of the address when the location is defined as TBD by setting the `locationTbd` property to `true`. */
74
86
  name?: string | null;
87
+ /**
88
+ * Location type:
89
+ *
90
+ * - `VENUE`: The event is on-site at a specific physical location.
91
+ * - `ONLINE`: The event is online, such as a virtual video conference.
92
+ */
75
93
  type?: LocationType;
76
94
  /** Exact location address. */
77
95
  address?: CommonAddress;
@@ -144,6 +162,7 @@ export declare enum SubdivisionSubdivisionType {
144
162
  export interface DateAndTimeSettings {
145
163
  /** Whether the event date and time are TBD. */
146
164
  dateAndTimeTbd?: boolean | null;
165
+ /** Message that is displayed when time and date is TBD. */
147
166
  dateAndTimeTbdMessage?: string | null;
148
167
  /** Event start date in `yyyy-mm-ddThh:mm:sssZ` format. */
149
168
  startDate?: Date;
@@ -155,7 +174,15 @@ export interface DateAndTimeSettings {
155
174
  hideEndDate?: boolean | null;
156
175
  /** Whether the time zone is displayed in the formatted schedule. */
157
176
  showTimeZone?: boolean | null;
158
- /** @readonly */
177
+ /**
178
+ * Repeating event status. Possible values:
179
+ *
180
+ * - `ONE_TIME`: The event happens only once and can last multiple days.
181
+ * - `RECURRING`: A series of events that repeat.
182
+ * - `RECURRING_UPCOMING`: Next event in a schedule of recurring events.
183
+ * - `RECURRING_RECENTLY_ENDED`: Latest event that ended in a schedule of recurring events.
184
+ * - `RECURRING_RECENTLY_CANCELED`: Latest canceled event tin a schedule of recurring events.
185
+ * @readonly */
159
186
  recurrenceStatus?: RecurrenceStatusStatus;
160
187
  /** Event repetitions. */
161
188
  recurringEvents?: Recurrences;
@@ -177,6 +204,7 @@ export declare enum RecurrenceStatusStatus {
177
204
  RECURRING_RECENTLY_CANCELED = "RECURRING_RECENTLY_CANCELED"
178
205
  }
179
206
  export interface Recurrences {
207
+ /** Individual event dates info. */
180
208
  individualEventDates?: Occurrence[];
181
209
  /**
182
210
  * Recurring event category ID.
@@ -195,7 +223,12 @@ export interface Occurrence {
195
223
  showTimeZone?: boolean;
196
224
  }
197
225
  export interface Formatted {
198
- /** @readonly */
226
+ /**
227
+ * Formatted date and time representation.
228
+ *
229
+ * Example of formatting when an event lasts multiple days and is in the UTC time zone: `September 1, 2015 at 10:20 AM – September 5, 2015 at 12:14 PM`.
230
+ * Example of formatting when an event lasts 1 day and is in the GMT+2 time zone: `February 1, 2018, 12:10 – 2:50 PM GMT+2`.
231
+ * @readonly */
199
232
  dateAndTime?: string | null;
200
233
  /**
201
234
  * Formatted start date of the event. Empty for TBD schedules.
@@ -233,9 +266,28 @@ export declare enum Status {
233
266
  DRAFT = "DRAFT"
234
267
  }
235
268
  export interface Registration {
236
- /** @readonly */
269
+ /**
270
+ * Current registration type:
271
+ *
272
+ * - `RSVP`: Guests register by RSVPing to the event.
273
+ * - `TICKETING`: Guests register by buying tickets.
274
+ * - `EXTERNAL`: Guests register externally using some other site or platform.
275
+ * - `NONE`: No registration is required, all guests can attend. This registration type is for only displaying the event details on a site.
276
+ *
277
+ * The property value might change to `EXTERNAL` or `NONE` after initial event creation, depending on any additional configuration applied to the event.
278
+ * @readonly */
237
279
  type?: RegistrationTypeType;
238
- /** @readonly */
280
+ /**
281
+ * Registration status. Possible values:
282
+ *
283
+ * - `CLOSED_AUTOMATICALLY`: Registration is closed after tickets are sold out.
284
+ * - `CLOSED_MANUALLY`: Registration is closed when the `registration.registrationDisabled` property is set to `true`.
285
+ * - `OPEN_RSVP`: Guests can start RSVPing to the event.
286
+ * - `OPEN_RSVP_WAITLIST_ONLY`: Guest list has reached the maximum, new guests are added to a waitlist.
287
+ * - `OPEN_TICKETS`: Guests can buy tickets to the event.
288
+ * - `OPEN_EXTERNAL`: Guests register on a different page or web address.
289
+ * - `SCHEDULED_RSVP`: Registration via RSVP is scheduled for the future.
290
+ * @readonly */
239
291
  status?: RegistrationStatusStatus;
240
292
  /** RSVP registration details. */
241
293
  rsvp?: RsvpRegistration;
@@ -243,7 +295,21 @@ export interface Registration {
243
295
  tickets?: TicketsRegistration;
244
296
  /** External registration details. */
245
297
  external?: ExternalRegistration;
298
+ /**
299
+ * Types of guests allowed to register. Possible values:
300
+ *
301
+ * - `VISITOR_OR_MEMBER`: All site visitors can RSVP to the event.
302
+ * - `MEMBER`: Only people who have signed up as members of your site are able to RSVP to the event.
303
+ */
246
304
  allowedGuestTypes?: GuestTypeType;
305
+ /**
306
+ * Initial event type which is set when creating an event. Possible values:
307
+ *
308
+ * - `RSVP`: Guests register by RSVPing to the event.
309
+ * - `TICKETING`: Guests register by buying tickets.
310
+ *
311
+ * This property value never changes.
312
+ */
247
313
  initialType?: InitialRegistrationTypeType;
248
314
  /** Whether the registration is paused. */
249
315
  registrationPaused?: boolean;
@@ -302,6 +368,10 @@ export declare enum ResponseType {
302
368
  export interface TicketsRegistration {
303
369
  /** Whether the registration form must be filled out separately for each ticket. */
304
370
  guestsAssignedSeparately?: boolean;
371
+ /**
372
+ * Ticket limit per order.
373
+ * Default: 20 tickets.
374
+ */
305
375
  ticketLimitPerOrder?: number;
306
376
  /** Ticket price currency. */
307
377
  currency?: string | null;
@@ -339,8 +409,16 @@ export interface Money {
339
409
  formattedValue?: string | null;
340
410
  }
341
411
  export interface TaxSettings {
412
+ /**
413
+ * Tax application settings:
414
+ *
415
+ * - `INCLUDED_IN_PRICE`: Deduct the fee from the ticket price for a seller. For example, if you're selling tickets for $10, a service fee of $0.25 is deducted from the price and you'll get $9.75.
416
+ * - `ADDED_AT_CHECKOUT`: Show the fee iin addition to the ticket price at checkout and a guest pays the fee. For example, if you sell tickets for $10, a customer sees a service fee of $0.25 and pays $10.25 in total.
417
+ */
342
418
  type?: TaxType;
419
+ /** Tax name. */
343
420
  name?: string | null;
421
+ /** Tax rate (for example,`21.55`). */
344
422
  rate?: string | null;
345
423
  /** Apply tax to donations. */
346
424
  appliedToDonations?: boolean | null;
@@ -693,6 +771,12 @@ export interface OnlineConferencing {
693
771
  enabled?: boolean;
694
772
  /** Conference host ID. */
695
773
  providerId?: string | null;
774
+ /**
775
+ * Conference type. Possible values:
776
+ *
777
+ * - `MEETING`: Guests can do some actions during the conference, for example talk, turn on camera and show their screen.
778
+ * - `WEBINAR`: Guests can only watch the conference.
779
+ */
696
780
  type?: ConferenceTypeType;
697
781
  /** Online conferencing session information. */
698
782
  session?: OnlineConferencingSession;
@@ -1079,7 +1163,7 @@ export interface V3EventCanceled {
1079
1163
  userId?: string | null;
1080
1164
  }
1081
1165
  export interface BulkCancelEventsByFilterRequest {
1082
- /** Filter. See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events). */
1166
+ /** Filter. */
1083
1167
  filter?: QueryV2;
1084
1168
  }
1085
1169
  export interface QueryV2 extends QueryV2PagingMethodOneOf {
@@ -3795,17 +3879,21 @@ export declare const onEventUpdated: EventDefinition<DomainUpdatedEvent<V3Event>
3795
3879
  export declare const onEventCanceled: EventDefinition<DomainActionEvent<V3EventCanceled>, "wix.events.v3.event_event_canceled">;
3796
3880
  export declare const onEventDeleted: EventDefinition<DomainDeletedEvent<V3Event>, "wix.events.v3.event_deleted">;
3797
3881
  /**
3798
- * Creates an event. <br> <br>
3799
- * The event includes a default registration form in the selected language, which consists of input fields for first name, last name, and email. See [Registration Form](https://dev.wix.com/api/rest/wix-events/wix-events/registration-form/about-the-registration-form-api) for more information. <br> <br>
3800
- * You can create the event as a draft by setting the `draft` value to `true`. Otherwise, the event is published right away. <br> <br>
3882
+ * Creates an event.
3883
+ *
3884
+ *
3885
+ * The event includes a default registration form in the selected language, which consists of input fields for first name, last name, and email. See [Registration Form](https://www.wix.com/velo/reference/wix-events-v2/forms/introduction) for more information.
3886
+ *
3887
+ * You can create the event as a draft by setting the draft value to true. Otherwise, the event is published right away.
3888
+ *
3801
3889
  * The event is automatically set up to send daily summary reports of new guests to your business email.
3802
3890
  * @param event - Event data.
3803
3891
  * @public
3804
- * @documentationMaturity preview
3805
3892
  * @requiredField event
3806
3893
  * @requiredField event.dateAndTimeSettings
3807
3894
  * @requiredField event.location
3808
3895
  * @requiredField event.title
3896
+ * @param options - Optional fields.
3809
3897
  * @permissionScope Manage Events - all permissions
3810
3898
  * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
3811
3899
  * @permissionScope Manage Events
@@ -3834,14 +3922,15 @@ export interface CreateEventOptions {
3834
3922
  fields?: RequestedFields[];
3835
3923
  }
3836
3924
  /**
3837
- * Clones an event, including the registration form, notifications, multilingual translations and ticket configuration from the original event. <br> <br>
3838
- * The new event's date is automatically set to 14 days from the original event date. <br> <br>
3839
- * If an event with the same title already exists, the new event's title gets a sequence number. For example, if you clone an event named "Leather Crafting 101", the new event's title is "Leather Crafting 101 (1)". <br> <br>
3840
- * You can change the required entity field values while cloning an event. See [Partial Updates](https://dev.wix.com/api/rest/wix-events/wix-events/partial-updates) for more information.
3925
+ * Clones an event, including the registration form, notifications, multilingual translations and ticket configuration from the original event.
3926
+ *
3927
+ *
3928
+ * The new event's date is automatically set to 14 days from the original event date.
3929
+ * If an event with the same title already exists, the new event's title gets a sequence number. For example, if you clone an event named "Leather Crafting 101", the new event's title is "Leather Crafting 101 (1)". You can change the required entity field values while cloning an event.
3841
3930
  * @param eventId - Event ID.
3842
3931
  * @public
3843
- * @documentationMaturity preview
3844
3932
  * @requiredField eventId
3933
+ * @param options - Optional fields.
3845
3934
  * @permissionScope Manage Events - all permissions
3846
3935
  * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
3847
3936
  * @permissionScope Manage Events
@@ -3874,8 +3963,8 @@ export interface CloneEventOptions {
3874
3963
  * Updates an event.
3875
3964
  * @param _id - Event ID.
3876
3965
  * @public
3877
- * @documentationMaturity preview
3878
3966
  * @requiredField _id
3967
+ * @param options - Optional fields.
3879
3968
  * @permissionScope Manage Events - all permissions
3880
3969
  * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
3881
3970
  * @permissionScope Manage Events
@@ -3885,6 +3974,7 @@ export interface CloneEventOptions {
3885
3974
  */
3886
3975
  export declare function updateEvent(_id: string, options?: UpdateEventOptions): Promise<V3Event & NonNullable<UpdateEventResponseNonNullableFields>['event']>;
3887
3976
  export interface UpdateEventOptions {
3977
+ /** Event to update. */
3888
3978
  event: {
3889
3979
  /**
3890
3980
  * Event ID.
@@ -3895,8 +3985,11 @@ export interface UpdateEventOptions {
3895
3985
  location?: Location;
3896
3986
  /** Event date and time settings. */
3897
3987
  dateAndTimeSettings?: DateAndTimeSettings;
3988
+ /** Event title. */
3898
3989
  title?: string | null;
3990
+ /** Short description that appears under the event title. */
3899
3991
  shortDescription?: string | null;
3992
+ /** Detailed description of an event. You can enter the description using rich text format (add various types of markups, such as underlines, italics, bolding, color codes, bullet lists, and links by using HTML formatting tags). */
3900
3993
  detailedDescription?: string | null;
3901
3994
  /** Main event image. */
3902
3995
  mainImage?: string;
@@ -3915,7 +4008,16 @@ export interface UpdateEventOptions {
3915
4008
  * @readonly
3916
4009
  */
3917
4010
  _updatedDate?: Date;
3918
- /** @readonly */
4011
+ /**
4012
+ * Event status. Possible values:
4013
+ *
4014
+ * - `UPCOMING`: The event is published and scheduled to start.
4015
+ * - `STARTED`: The event has started.
4016
+ * - `ENDED`: The event has ended.
4017
+ * - `CANCELED`: The event is canceled.
4018
+ * - `DRAFT`: The event is not published.
4019
+ * @readonly
4020
+ */
3919
4021
  status?: Status;
3920
4022
  /** RSVP or ticketing registration details. */
3921
4023
  registration?: Registration;
@@ -3973,12 +4075,14 @@ export interface UpdateEventOptions {
3973
4075
  fields?: RequestedFields[];
3974
4076
  }
3975
4077
  /**
3976
- * Publishes a draft event to your live site. Once published, the event's status changes from `DRAFT` to `UPCOMING`. <br> <br>
3977
- * It's impossible to revert the `DRAFT` status after publishing. The only option is to clone the event, then delete the original one.
4078
+ * Publishes a draft event to your live site. Once published, the event's status changes from `DRAFT` to `UPCOMING.`
4079
+ *
4080
+ *
4081
+ * It's impossible to revert the `DRAFT` status after publishing. The only option is to clone the event, and then delete the original one.
3978
4082
  * @param eventId - Event ID.
3979
4083
  * @public
3980
- * @documentationMaturity preview
3981
4084
  * @requiredField eventId
4085
+ * @param options - Optional fields.
3982
4086
  * @permissionScope Manage Events - all permissions
3983
4087
  * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
3984
4088
  * @permissionScope Manage Events
@@ -4004,13 +4108,15 @@ export interface PublishDraftEventOptions {
4004
4108
  fields?: RequestedFields[];
4005
4109
  }
4006
4110
  /**
4007
- * Cancels an event. <br> <br>
4008
- * After cancellation, registration for an event is closed. To reuse the event, [copy]() and [publish]() it again. <br> <br>
4111
+ * Cancels an event.
4112
+ *
4113
+ *
4114
+ * After cancellation, registration for an event is closed. To reuse the event, [clone](https://www.wix.com/velo/reference/wix-events-v2/wixeventsv2/cloneevent) and [publish](https://www.wix.com/velo/reference/wix-events-v2/wixeventsv2/publishdraftevent) it again.
4009
4115
  * If event cancellation notifications are enabled, canceling an event automatically triggers the sending of cancellation emails and/or push notifications to registered guests.
4010
4116
  * @param eventId - Event ID.
4011
4117
  * @public
4012
- * @documentationMaturity preview
4013
4118
  * @requiredField eventId
4119
+ * @param options - Optional fields.
4014
4120
  * @permissionScope Manage Events - all permissions
4015
4121
  * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
4016
4122
  * @permissionScope Manage Events
@@ -4036,12 +4142,14 @@ export interface CancelEventOptions {
4036
4142
  fields?: RequestedFields[];
4037
4143
  }
4038
4144
  /**
4039
- * Cancels multiple events that meet the given criteria. <br> <br>
4040
- * After cancellation, registration for an event is closed. To reuse the event, [clone]() and [publish]() it again. <br> <br>
4145
+ * Cancels multiple events that meet the given criteria.
4146
+ *
4147
+ *
4148
+ * After cancellation, registration for an event is closed. To reuse the event, [clone](https://www.wix.com/velo/reference/wix-events-v2/wixeventsv2/cloneevent) and [publish](https://www.wix.com/velo/reference/wix-events-v2/wixeventsv2/publishdraftevent) it again.
4041
4149
  * If event cancellation notifications are enabled, canceling an event automatically triggers the sending of cancellation emails and/or push notifications to registered guests.
4042
4150
  * @public
4043
- * @documentationMaturity preview
4044
4151
  * @requiredField options.filter.filter
4152
+ * @param options - Optional fields.
4045
4153
  * @permissionScope Manage Events - all permissions
4046
4154
  * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
4047
4155
  * @permissionScope Manage Events
@@ -4050,7 +4158,7 @@ export interface CancelEventOptions {
4050
4158
  */
4051
4159
  export declare function bulkCancelEventsByFilter(options?: BulkCancelEventsByFilterOptions): Promise<void>;
4052
4160
  export interface BulkCancelEventsByFilterOptions {
4053
- /** Filter. See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events). */
4161
+ /** Filter. */
4054
4162
  filter?: QueryV2;
4055
4163
  }
4056
4164
  /**
@@ -4058,7 +4166,6 @@ export interface BulkCancelEventsByFilterOptions {
4058
4166
  * You can retrieve the deleted event through a GDPR access request.
4059
4167
  * @param eventId - Event ID.
4060
4168
  * @public
4061
- * @documentationMaturity preview
4062
4169
  * @requiredField eventId
4063
4170
  * @permissionScope Manage Events - all permissions
4064
4171
  * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
@@ -4068,11 +4175,13 @@ export interface BulkCancelEventsByFilterOptions {
4068
4175
  */
4069
4176
  export declare function deleteEvent(eventId: string): Promise<DeleteEventResponse & DeleteEventResponseNonNullableFields>;
4070
4177
  /**
4071
- * Permanently deletes multiple events that meet the given criteria. <br> <br>
4178
+ * Permanently deletes multiple events that meet the given criteria.
4179
+ *
4180
+ *
4072
4181
  * You can retrieve the deleted events through a GDPR access request.
4073
4182
  * @public
4074
- * @documentationMaturity preview
4075
4183
  * @requiredField options.filter.filter
4184
+ * @param options - Optional fields.
4076
4185
  * @permissionScope Manage Events - all permissions
4077
4186
  * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
4078
4187
  * @permissionScope Manage Events
@@ -4085,15 +4194,24 @@ export interface BulkDeleteEventsByFilterOptions {
4085
4194
  filter?: QueryV2;
4086
4195
  }
4087
4196
  /**
4088
- * Retrieves a list of events, given the provided paging, filtering, and sorting.
4089
- * Query Events runs with these defaults, which you can override:
4090
- * - `createdDate` is sorted in `ASC` order
4091
- * - `paging.limit` is `100`
4092
- * - `paging.offset` is `0`
4093
- * For field support for filters and sorting, see [Events v3: Supported Filters and Sorting](https://dev.wix.com/api/rest/wix-events/events-v3/filter-and-sort).
4094
- * To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language), [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination), and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
4197
+ * Creates a query to retrieve a list of events.
4198
+ *
4199
+ *
4200
+ * The `queryEvents()` function 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.
4201
+ *
4202
+ * 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) function.
4203
+ *
4204
+ * You can refine the query by chaining `EventsQueryBuilder` functions onto the query. `EventsQueryBuilder` functions enable you to sort, filter, and control the results `queryEvents()` returns.
4205
+ *
4206
+ * `queryEvents()` runs with these `EventsQueryBuilder` defaults, which you can override:
4207
+ *
4208
+ * - [`skip(0)`](https://www.wix.com/velo/reference/wix-events-v2/wixeventsv2/eventsquerybuilder/skip)
4209
+ * - [`limit(50)`](https://www.wix.com/velo/reference/wix-events-v2/wixeventsv2/eventsquerybuilder/limit)
4210
+ * - [`descending("_createdDate")`](https://www.wix.com/velo/reference/wix-events-v2/wixeventsv2/eventsquerybuilder/descending)
4211
+ *
4212
+ * The functions 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`.
4095
4213
  * @public
4096
- * @documentationMaturity preview
4214
+ * @param options - Optional fields.
4097
4215
  * @permissionScope Read Events - all read permissions
4098
4216
  * @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
4099
4217
  * @permissionScope Manage Bookings Services and Settings
@@ -4151,60 +4269,43 @@ export interface EventsQueryResult extends QueryOffsetResult {
4151
4269
  export interface EventsQueryBuilder {
4152
4270
  /** @param propertyName - Property whose value is compared with `value`.
4153
4271
  * @param value - Value to compare against.
4154
- * @documentationMaturity preview
4155
4272
  */
4156
4273
  eq: (propertyName: '_id' | 'dateAndTimeSettings.startDate' | 'dateAndTimeSettings.endDate' | 'title' | 'slug' | '_createdDate' | '_updatedDate' | 'status' | 'registration.initialType' | 'userId', value: any) => EventsQueryBuilder;
4157
4274
  /** @param propertyName - Property whose value is compared with `value`.
4158
4275
  * @param value - Value to compare against.
4159
- * @documentationMaturity preview
4160
4276
  */
4161
4277
  ne: (propertyName: '_id' | 'dateAndTimeSettings.startDate' | 'dateAndTimeSettings.endDate' | 'title' | 'slug' | '_createdDate' | '_updatedDate' | 'status' | 'userId', value: any) => EventsQueryBuilder;
4162
4278
  /** @param propertyName - Property whose value is compared with `value`.
4163
4279
  * @param value - Value to compare against.
4164
- * @documentationMaturity preview
4165
4280
  */
4166
4281
  ge: (propertyName: 'dateAndTimeSettings.startDate' | 'dateAndTimeSettings.endDate' | '_createdDate' | '_updatedDate', value: any) => EventsQueryBuilder;
4167
4282
  /** @param propertyName - Property whose value is compared with `value`.
4168
4283
  * @param value - Value to compare against.
4169
- * @documentationMaturity preview
4170
4284
  */
4171
4285
  gt: (propertyName: 'dateAndTimeSettings.startDate' | 'dateAndTimeSettings.endDate' | '_createdDate' | '_updatedDate', value: any) => EventsQueryBuilder;
4172
4286
  /** @param propertyName - Property whose value is compared with `value`.
4173
4287
  * @param value - Value to compare against.
4174
- * @documentationMaturity preview
4175
4288
  */
4176
4289
  le: (propertyName: 'dateAndTimeSettings.startDate' | 'dateAndTimeSettings.endDate' | '_createdDate' | '_updatedDate', value: any) => EventsQueryBuilder;
4177
4290
  /** @param propertyName - Property whose value is compared with `value`.
4178
4291
  * @param value - Value to compare against.
4179
- * @documentationMaturity preview
4180
4292
  */
4181
4293
  lt: (propertyName: 'dateAndTimeSettings.startDate' | 'dateAndTimeSettings.endDate' | '_createdDate' | '_updatedDate', value: any) => EventsQueryBuilder;
4182
- /** @documentationMaturity preview */
4183
4294
  in: (propertyName: '_id' | 'dateAndTimeSettings.startDate' | 'dateAndTimeSettings.endDate' | 'title' | 'slug' | '_createdDate' | '_updatedDate' | 'status' | 'userId', value: any) => EventsQueryBuilder;
4184
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
4185
- * @documentationMaturity preview
4186
- */
4295
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
4187
4296
  ascending: (...propertyNames: Array<'_id' | 'dateAndTimeSettings.startDate' | 'dateAndTimeSettings.endDate' | 'title' | 'slug' | '_createdDate' | '_updatedDate'>) => EventsQueryBuilder;
4188
- /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments.
4189
- * @documentationMaturity preview
4190
- */
4297
+ /** @param propertyNames - Properties used in the sort. To sort by multiple properties, pass properties as additional arguments. */
4191
4298
  descending: (...propertyNames: Array<'_id' | 'dateAndTimeSettings.startDate' | 'dateAndTimeSettings.endDate' | 'title' | 'slug' | '_createdDate' | '_updatedDate'>) => EventsQueryBuilder;
4192
- /** @param limit - Number of items to return, which is also the `pageSize` of the results object.
4193
- * @documentationMaturity preview
4194
- */
4299
+ /** @param limit - Number of items to return, which is also the `pageSize` of the results object. */
4195
4300
  limit: (limit: number) => EventsQueryBuilder;
4196
- /** @param skip - Number of items to skip in the query results before returning the results.
4197
- * @documentationMaturity preview
4198
- */
4301
+ /** @param skip - Number of items to skip in the query results before returning the results. */
4199
4302
  skip: (skip: number) => EventsQueryBuilder;
4200
- /** @documentationMaturity preview */
4201
4303
  find: () => Promise<EventsQueryResult>;
4202
4304
  }
4203
4305
  /**
4204
4306
  * Counts events by status.
4205
- * To learn about working with _query_ endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language), [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination), and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
4206
4307
  * @public
4207
- * @documentationMaturity preview
4308
+ * @param options - Optional fields.
4208
4309
  * @permissionScope Read Events - all read permissions
4209
4310
  * @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
4210
4311
  * @permissionScope Manage Bookings Services and Settings
@@ -4241,8 +4342,8 @@ export interface CountEventsByStatusOptions {
4241
4342
  * Retrieves an event by ID.
4242
4343
  * @param eventId - Event ID.
4243
4344
  * @public
4244
- * @documentationMaturity preview
4245
4345
  * @requiredField eventId
4346
+ * @param options - Optional fields.
4246
4347
  * @permissionScope Read Events - all read permissions
4247
4348
  * @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
4248
4349
  * @permissionScope Manage Bookings Services and Settings
@@ -4279,11 +4380,14 @@ export interface GetEventOptions {
4279
4380
  fields?: RequestedFields[];
4280
4381
  }
4281
4382
  /**
4282
- * Retrieves an event by the slug URL.
4383
+ * Retrieves an event by the `slug` URL.
4384
+ *
4385
+ *
4386
+ * The slug is the end of an event URL that refers to a specific event. For example, if an events' URL is `https://example.com/events/event/{my-event-slug}`, the slug is `my-event-slug`.
4283
4387
  * @param slug - URL slug.
4284
4388
  * @public
4285
- * @documentationMaturity preview
4286
4389
  * @requiredField slug
4390
+ * @param options - Optional fields.
4287
4391
  * @permissionScope Read Events - all read permissions
4288
4392
  * @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
4289
4393
  * @permissionScope Manage Bookings Services and Settings
@@ -4319,10 +4423,12 @@ export interface GetEventBySlugOptions {
4319
4423
  fields?: RequestedFields[];
4320
4424
  }
4321
4425
  /**
4322
- * Finds an event by ID or URL slug. In contrast to Get Event endpoint which returns not found error,
4323
- * Find Event returns empty response when an event is not found.
4426
+ * Finds an event by ID or URL slug.
4427
+ *
4428
+ *
4429
+ * Unlike the [`getEvent`](https://www.wix.com/velo/reference/wix-events-v2/wixeventsv2/getevent) function, which returns a "not found" error, `findEvent()` returns an empty response when an event is not found.
4324
4430
  * @public
4325
- * @documentationMaturity preview
4431
+ * @param options - Optional fields.
4326
4432
  * @permissionScope Read Events - all read permissions
4327
4433
  * @permissionScopeId SCOPE.DC-EVENTS-MEGA.READ-EVENTS
4328
4434
  * @permissionScope Manage Bookings Services and Settings