@wix/events 1.0.11 → 1.0.13
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.
- package/build/cjs/index.d.ts +5 -0
- package/build/cjs/index.js +6 -1
- package/build/cjs/index.js.map +1 -1
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.public.d.ts +6 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.public.js +27 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.public.js.map +1 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.d.ts +353 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js +237 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js.map +1 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.public.d.ts +13 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.public.js +63 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.public.js.map +1 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.universal.d.ts +490 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.universal.js +600 -0
- package/build/cjs/src/events-schedule-v1-schedule-item-schedule.universal.js.map +1 -0
- package/build/cjs/src/events-schedule-v1-schedule-item.http.d.ts +49 -0
- package/build/cjs/src/events-schedule-v1-schedule-item.http.js +485 -0
- package/build/cjs/src/events-schedule-v1-schedule-item.http.js.map +1 -0
- package/build/cjs/src/events-schedule-v1-schedule-item.types.d.ts +318 -0
- package/build/cjs/src/events-schedule-v1-schedule-item.types.js +27 -0
- package/build/cjs/src/events-schedule-v1-schedule-item.types.js.map +1 -0
- package/build/cjs/src/events-v1-category.http.d.ts +35 -0
- package/build/cjs/src/events-v1-category.http.js +592 -0
- package/build/cjs/src/events-v1-category.http.js.map +1 -0
- package/build/cjs/src/events-v1-category.public.d.ts +17 -0
- package/build/cjs/src/events-v1-category.public.js +87 -0
- package/build/cjs/src/events-v1-category.public.js.map +1 -0
- package/build/cjs/src/events-v1-category.types.d.ts +234 -0
- package/build/cjs/src/events-v1-category.types.js +27 -0
- package/build/cjs/src/events-v1-category.types.js.map +1 -0
- package/build/cjs/src/events-v1-category.universal.d.ts +399 -0
- package/build/cjs/src/events-v1-category.universal.js +778 -0
- package/build/cjs/src/events-v1-category.universal.js.map +1 -0
- package/build/cjs/src/events-v1-event.http.d.ts +90 -0
- package/build/cjs/src/events-v1-event.http.js +932 -0
- package/build/cjs/src/events-v1-event.http.js.map +1 -0
- package/build/cjs/src/events-v1-event.public.d.ts +19 -0
- package/build/cjs/src/events-v1-event.public.js +112 -0
- package/build/cjs/src/events-v1-event.public.js.map +1 -0
- package/build/cjs/src/events-v1-event.types.d.ts +1473 -0
- package/build/cjs/src/events-v1-event.types.js +198 -0
- package/build/cjs/src/events-v1-event.types.js.map +1 -0
- package/build/cjs/src/events-v1-event.universal.d.ts +1784 -0
- package/build/cjs/src/events-v1-event.universal.js +1130 -0
- package/build/cjs/src/events-v1-event.universal.js.map +1 -0
- package/build/cjs/src/events-v1-form.http.d.ts +25 -0
- package/build/cjs/src/events-v1-form.http.js +431 -0
- package/build/cjs/src/events-v1-form.http.js.map +1 -0
- package/build/cjs/src/events-v1-form.public.d.ts +11 -0
- package/build/cjs/src/events-v1-form.public.js +53 -0
- package/build/cjs/src/events-v1-form.public.js.map +1 -0
- package/build/cjs/src/events-v1-form.types.d.ts +657 -0
- package/build/cjs/src/events-v1-form.types.js +69 -0
- package/build/cjs/src/events-v1-form.types.js.map +1 -0
- package/build/cjs/src/events-v1-form.universal.d.ts +778 -0
- package/build/cjs/src/events-v1-form.universal.js +528 -0
- package/build/cjs/src/events-v1-form.universal.js.map +1 -0
- package/build/cjs/src/events-v2-policy.universal.d.ts +8 -1
- package/build/cjs/src/events-v2-policy.universal.js +8 -1
- package/build/cjs/src/events-v2-policy.universal.js.map +1 -1
- package/build/es/index.d.ts +5 -0
- package/build/es/index.js +5 -0
- package/build/es/index.js.map +1 -1
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.public.d.ts +6 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.public.js +18 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.public.js.map +1 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.d.ts +353 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js +212 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js.map +1 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule.public.d.ts +13 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule.public.js +48 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule.public.js.map +1 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule.universal.d.ts +490 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule.universal.js +569 -0
- package/build/es/src/events-schedule-v1-schedule-item-schedule.universal.js.map +1 -0
- package/build/es/src/events-schedule-v1-schedule-item.http.d.ts +49 -0
- package/build/es/src/events-schedule-v1-schedule-item.http.js +470 -0
- package/build/es/src/events-schedule-v1-schedule-item.http.js.map +1 -0
- package/build/es/src/events-schedule-v1-schedule-item.types.d.ts +318 -0
- package/build/es/src/events-schedule-v1-schedule-item.types.js +24 -0
- package/build/es/src/events-schedule-v1-schedule-item.types.js.map +1 -0
- package/build/es/src/events-v1-category.http.d.ts +35 -0
- package/build/es/src/events-v1-category.http.js +576 -0
- package/build/es/src/events-v1-category.http.js.map +1 -0
- package/build/es/src/events-v1-category.public.d.ts +17 -0
- package/build/es/src/events-v1-category.public.js +68 -0
- package/build/es/src/events-v1-category.public.js.map +1 -0
- package/build/es/src/events-v1-category.types.d.ts +234 -0
- package/build/es/src/events-v1-category.types.js +24 -0
- package/build/es/src/events-v1-category.types.js.map +1 -0
- package/build/es/src/events-v1-category.universal.d.ts +399 -0
- package/build/es/src/events-v1-category.universal.js +743 -0
- package/build/es/src/events-v1-category.universal.js.map +1 -0
- package/build/es/src/events-v1-event.http.d.ts +90 -0
- package/build/es/src/events-v1-event.http.js +914 -0
- package/build/es/src/events-v1-event.http.js.map +1 -0
- package/build/es/src/events-v1-event.public.d.ts +19 -0
- package/build/es/src/events-v1-event.public.js +78 -0
- package/build/es/src/events-v1-event.public.js.map +1 -0
- package/build/es/src/events-v1-event.types.d.ts +1473 -0
- package/build/es/src/events-v1-event.types.js +195 -0
- package/build/es/src/events-v1-event.types.js.map +1 -0
- package/build/es/src/events-v1-event.universal.d.ts +1784 -0
- package/build/es/src/events-v1-event.universal.js +1093 -0
- package/build/es/src/events-v1-event.universal.js.map +1 -0
- package/build/es/src/events-v1-form.http.d.ts +25 -0
- package/build/es/src/events-v1-form.http.js +421 -0
- package/build/es/src/events-v1-form.http.js.map +1 -0
- package/build/es/src/events-v1-form.public.d.ts +11 -0
- package/build/es/src/events-v1-form.public.js +38 -0
- package/build/es/src/events-v1-form.public.js.map +1 -0
- package/build/es/src/events-v1-form.types.d.ts +657 -0
- package/build/es/src/events-v1-form.types.js +66 -0
- package/build/es/src/events-v1-form.types.js.map +1 -0
- package/build/es/src/events-v1-form.universal.d.ts +778 -0
- package/build/es/src/events-v1-form.universal.js +499 -0
- package/build/es/src/events-v1-form.universal.js.map +1 -0
- package/build/es/src/events-v2-policy.universal.d.ts +8 -1
- package/build/es/src/events-v2-policy.universal.js +8 -1
- package/build/es/src/events-v2-policy.universal.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,1784 @@
|
|
|
1
|
+
export declare const __debug: {
|
|
2
|
+
verboseLogging: {
|
|
3
|
+
on: () => boolean;
|
|
4
|
+
off: () => boolean;
|
|
5
|
+
};
|
|
6
|
+
};
|
|
7
|
+
export interface Event {
|
|
8
|
+
/**
|
|
9
|
+
* Event ID.
|
|
10
|
+
* @readonly
|
|
11
|
+
*/
|
|
12
|
+
_id?: string;
|
|
13
|
+
/** Event location. */
|
|
14
|
+
location?: Location;
|
|
15
|
+
/** Event scheduling. */
|
|
16
|
+
scheduling?: Scheduling;
|
|
17
|
+
/** Event title. */
|
|
18
|
+
title?: string;
|
|
19
|
+
/** Event description. */
|
|
20
|
+
description?: string;
|
|
21
|
+
/** Rich-text content displayed in Wix UI - "About Event" section (HTML). */
|
|
22
|
+
about?: string;
|
|
23
|
+
/** Main event image. */
|
|
24
|
+
mainImage?: string;
|
|
25
|
+
/** Event slug URL (generated from event title). */
|
|
26
|
+
slug?: string;
|
|
27
|
+
/** ISO 639-1 language code of the event (used in content translations). */
|
|
28
|
+
language?: string;
|
|
29
|
+
/** Event creation timestamp. */
|
|
30
|
+
created?: Date;
|
|
31
|
+
/** Event modified timestamp. */
|
|
32
|
+
modified?: Date;
|
|
33
|
+
/** Event status. */
|
|
34
|
+
status?: EventStatus;
|
|
35
|
+
/** RSVP or ticketing registration details. */
|
|
36
|
+
registration?: Registration;
|
|
37
|
+
/** "Add to calendar" URLs. */
|
|
38
|
+
calendarLinks?: CalendarLinks;
|
|
39
|
+
/** Event page URL components. */
|
|
40
|
+
eventPageUrl?: SiteUrl;
|
|
41
|
+
/** Event registration form. */
|
|
42
|
+
form?: Form;
|
|
43
|
+
/** Event dashboard summary of RSVP / ticket sales. */
|
|
44
|
+
dashboard?: Dashboard;
|
|
45
|
+
/** Instance ID of the site where event is hosted. */
|
|
46
|
+
instanceId?: string;
|
|
47
|
+
/** Guest list configuration. */
|
|
48
|
+
guestListConfig?: GuestListConfig;
|
|
49
|
+
/** Event creator user ID. */
|
|
50
|
+
userId?: string;
|
|
51
|
+
/** Event discussion feed. For internal use. */
|
|
52
|
+
feed?: Feed;
|
|
53
|
+
/** Online conferencing details. */
|
|
54
|
+
onlineConferencing?: OnlineConferencing;
|
|
55
|
+
/** SEO settings. */
|
|
56
|
+
seoSettings?: SeoSettings;
|
|
57
|
+
/** Assigned contacts label key. */
|
|
58
|
+
assignedContactsLabel?: string | null;
|
|
59
|
+
/** Agenda details. */
|
|
60
|
+
agenda?: Agenda;
|
|
61
|
+
/** Categories this event is assigned to. */
|
|
62
|
+
categories?: Category[];
|
|
63
|
+
}
|
|
64
|
+
export interface Location {
|
|
65
|
+
/** Location name. */
|
|
66
|
+
name?: string | null;
|
|
67
|
+
/** Location map coordinates. */
|
|
68
|
+
coordinates?: MapCoordinates;
|
|
69
|
+
/** Single line address representation. */
|
|
70
|
+
address?: string | null;
|
|
71
|
+
/** Location type. */
|
|
72
|
+
type?: LocationType;
|
|
73
|
+
/**
|
|
74
|
+
* Full address derived from formatted single line `address`.
|
|
75
|
+
* When `full_address` is used to create or update the event, deprecated `address` and `coordinates` are ignored.
|
|
76
|
+
* If provided `full_address` has empty `formatted_address` or `coordinates`, it will be auto-completed using Atlas service.
|
|
77
|
+
*
|
|
78
|
+
* Migration notes:
|
|
79
|
+
* - `full_address.formatted_address` is equivalent to `address`.
|
|
80
|
+
* - `full_address.geocode` is equivalent to `coordinates`.
|
|
81
|
+
*/
|
|
82
|
+
fullAddress?: Address;
|
|
83
|
+
/**
|
|
84
|
+
* Defines event location as TBD (To Be Determined).
|
|
85
|
+
* When event location is not yet defined, `name` is displayed instead of location address.
|
|
86
|
+
* `coordinates`, `address`, `type` and `full_address` are not required when location is TBD.
|
|
87
|
+
*/
|
|
88
|
+
tbd?: boolean | null;
|
|
89
|
+
}
|
|
90
|
+
export interface MapCoordinates {
|
|
91
|
+
/** Latitude. */
|
|
92
|
+
lat?: number;
|
|
93
|
+
/** Longitude. */
|
|
94
|
+
lng?: number;
|
|
95
|
+
}
|
|
96
|
+
export declare enum LocationType {
|
|
97
|
+
VENUE = "VENUE",
|
|
98
|
+
ONLINE = "ONLINE"
|
|
99
|
+
}
|
|
100
|
+
/** Physical address */
|
|
101
|
+
export interface Address extends AddressStreetOneOf {
|
|
102
|
+
/** country code */
|
|
103
|
+
country?: string | null;
|
|
104
|
+
/** subdivision (usually state or region) code according to ISO 3166-2 */
|
|
105
|
+
subdivision?: string | null;
|
|
106
|
+
/** city name */
|
|
107
|
+
city?: string | null;
|
|
108
|
+
/** zip/postal code */
|
|
109
|
+
postalCode?: string | null;
|
|
110
|
+
/** Free text providing more detailed address info. Usually contains Apt, Suite, Floor */
|
|
111
|
+
addressLine2?: string | null;
|
|
112
|
+
/** a break down of the street to number and street name */
|
|
113
|
+
streetAddress?: StreetAddress;
|
|
114
|
+
/** Main address line (usually street and number) as free text */
|
|
115
|
+
addressLine1?: string | null;
|
|
116
|
+
}
|
|
117
|
+
/** @oneof */
|
|
118
|
+
export interface AddressStreetOneOf {
|
|
119
|
+
/** a break down of the street to number and street name */
|
|
120
|
+
streetAddress?: StreetAddress;
|
|
121
|
+
/** Main address line (usually street and number) as free text */
|
|
122
|
+
addressLine?: string | null;
|
|
123
|
+
}
|
|
124
|
+
export interface StreetAddress {
|
|
125
|
+
/** street number */
|
|
126
|
+
number?: string;
|
|
127
|
+
/** street name */
|
|
128
|
+
name?: string;
|
|
129
|
+
}
|
|
130
|
+
export interface AddressLocation {
|
|
131
|
+
latitude?: number | null;
|
|
132
|
+
longitude?: number | null;
|
|
133
|
+
}
|
|
134
|
+
export interface Subdivision {
|
|
135
|
+
/** subdivision short code */
|
|
136
|
+
code?: string;
|
|
137
|
+
/** subdivision full-name */
|
|
138
|
+
name?: string;
|
|
139
|
+
}
|
|
140
|
+
export declare enum SubdivisionType {
|
|
141
|
+
UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
|
|
142
|
+
/** State */
|
|
143
|
+
ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
|
|
144
|
+
/** County */
|
|
145
|
+
ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
|
|
146
|
+
/** City/town */
|
|
147
|
+
ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
|
|
148
|
+
/** Neighborhood/quarter */
|
|
149
|
+
ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
|
|
150
|
+
/** Street/block */
|
|
151
|
+
ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
|
|
152
|
+
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
153
|
+
COUNTRY = "COUNTRY"
|
|
154
|
+
}
|
|
155
|
+
export interface Scheduling {
|
|
156
|
+
/** Schedule configuration. */
|
|
157
|
+
config?: ScheduleConfig;
|
|
158
|
+
/** Formatted schedule representation. */
|
|
159
|
+
formatted?: string;
|
|
160
|
+
/** Formatted start date of the event (empty for TBD schedules). */
|
|
161
|
+
startDateFormatted?: string;
|
|
162
|
+
/** Formatted start time of the event (empty for TBD schedules). */
|
|
163
|
+
startTimeFormatted?: string;
|
|
164
|
+
}
|
|
165
|
+
export interface ScheduleConfig {
|
|
166
|
+
/**
|
|
167
|
+
* Defines event as TBD (To Be Determined) schedule.
|
|
168
|
+
* When event time is not yet defined, TBD message is displayed instead of event start and end times.
|
|
169
|
+
* `startDate`, `endDate` and `timeZoneId` are not required when schedule is TBD.
|
|
170
|
+
*/
|
|
171
|
+
scheduleTbd?: boolean;
|
|
172
|
+
/** TBD message. */
|
|
173
|
+
scheduleTbdMessage?: string | null;
|
|
174
|
+
/** Event start timestamp. */
|
|
175
|
+
startDate?: Date;
|
|
176
|
+
/** Event end timestamp. */
|
|
177
|
+
endDate?: Date;
|
|
178
|
+
/** Event time zone ID in TZ database format, e.g., `EST`, `America/Los_Angeles`. */
|
|
179
|
+
timeZoneId?: string | null;
|
|
180
|
+
/** Whether end date is hidden in the formatted schedule. */
|
|
181
|
+
endDateHidden?: boolean;
|
|
182
|
+
/** Whether time zone is displayed in formatted schedule. */
|
|
183
|
+
showTimeZone?: boolean;
|
|
184
|
+
/** Event recurrences. */
|
|
185
|
+
recurrences?: Recurrences;
|
|
186
|
+
}
|
|
187
|
+
export interface Recurrences {
|
|
188
|
+
/** Event occurrences. */
|
|
189
|
+
occurrences?: Occurrence[];
|
|
190
|
+
/**
|
|
191
|
+
* Recurring event category ID.
|
|
192
|
+
* @readonly
|
|
193
|
+
*/
|
|
194
|
+
categoryId?: string | null;
|
|
195
|
+
/**
|
|
196
|
+
* Recurrence status.
|
|
197
|
+
* @readonly
|
|
198
|
+
*/
|
|
199
|
+
status?: Status;
|
|
200
|
+
}
|
|
201
|
+
export interface Occurrence {
|
|
202
|
+
/** Event start timestamp. */
|
|
203
|
+
startDate?: Date;
|
|
204
|
+
/** Event end timestamp. */
|
|
205
|
+
endDate?: Date;
|
|
206
|
+
/** Event time zone ID in TZ database format, e.g., `EST`, `America/Los_Angeles`. */
|
|
207
|
+
timeZoneId?: string | null;
|
|
208
|
+
/** Whether time zone is displayed in formatted schedule. */
|
|
209
|
+
showTimeZone?: boolean;
|
|
210
|
+
}
|
|
211
|
+
export declare enum Status {
|
|
212
|
+
/** Event occurs only once. */
|
|
213
|
+
ONE_TIME = "ONE_TIME",
|
|
214
|
+
/** Event is recurring. */
|
|
215
|
+
RECURRING = "RECURRING",
|
|
216
|
+
/** Marks the next upcoming occurrence of the recurring event. */
|
|
217
|
+
RECURRING_NEXT = "RECURRING_NEXT",
|
|
218
|
+
/** Marks the most recent ended occurrence of the recurring event. */
|
|
219
|
+
RECURRING_LAST_ENDED = "RECURRING_LAST_ENDED",
|
|
220
|
+
/** Marks the most recent canceled occurrence of the recurring event. */
|
|
221
|
+
RECURRING_LAST_CANCELED = "RECURRING_LAST_CANCELED"
|
|
222
|
+
}
|
|
223
|
+
export declare enum EventStatus {
|
|
224
|
+
/** Event is public and scheduled to start */
|
|
225
|
+
SCHEDULED = "SCHEDULED",
|
|
226
|
+
/** Event has started */
|
|
227
|
+
STARTED = "STARTED",
|
|
228
|
+
/** Event has ended */
|
|
229
|
+
ENDED = "ENDED",
|
|
230
|
+
/** Event was canceled */
|
|
231
|
+
CANCELED = "CANCELED",
|
|
232
|
+
/** Event is not public and needs to be published */
|
|
233
|
+
DRAFT = "DRAFT"
|
|
234
|
+
}
|
|
235
|
+
export interface Registration {
|
|
236
|
+
/** Event type. */
|
|
237
|
+
type?: EventType;
|
|
238
|
+
/** Event registration status. */
|
|
239
|
+
status?: RegistrationStatus;
|
|
240
|
+
/** RSVP collection details. */
|
|
241
|
+
rsvpCollection?: RsvpCollection;
|
|
242
|
+
/** Ticketing details. */
|
|
243
|
+
ticketing?: Ticketing;
|
|
244
|
+
/** External registration details. */
|
|
245
|
+
external?: ExternalEvent;
|
|
246
|
+
/** Types of users allowed to register. */
|
|
247
|
+
restrictedTo?: VisitorType;
|
|
248
|
+
/** Initial event type which was set when creating an event. */
|
|
249
|
+
initialType?: EventType;
|
|
250
|
+
}
|
|
251
|
+
export declare enum EventType {
|
|
252
|
+
/** Type not available for this request fieldset */
|
|
253
|
+
NA_EVENT_TYPE = "NA_EVENT_TYPE",
|
|
254
|
+
/** Registration via RSVP */
|
|
255
|
+
RSVP = "RSVP",
|
|
256
|
+
/** Registration via ticket purchase */
|
|
257
|
+
TICKETS = "TICKETS",
|
|
258
|
+
/** External registration */
|
|
259
|
+
EXTERNAL = "EXTERNAL",
|
|
260
|
+
/** Registration not available */
|
|
261
|
+
NO_REGISTRATION = "NO_REGISTRATION"
|
|
262
|
+
}
|
|
263
|
+
export declare enum RegistrationStatus {
|
|
264
|
+
/** Registration status is not applicable */
|
|
265
|
+
NA_REGISTRATION_STATUS = "NA_REGISTRATION_STATUS",
|
|
266
|
+
/** Registration to event is closed */
|
|
267
|
+
CLOSED = "CLOSED",
|
|
268
|
+
/** Registration to event is closed manually */
|
|
269
|
+
CLOSED_MANUALLY = "CLOSED_MANUALLY",
|
|
270
|
+
/** Registration is open via RSVP */
|
|
271
|
+
OPEN_RSVP = "OPEN_RSVP",
|
|
272
|
+
/** Registration to event waitlist is open via RSVP */
|
|
273
|
+
OPEN_RSVP_WAITLIST = "OPEN_RSVP_WAITLIST",
|
|
274
|
+
/** Registration is open via ticket purchase */
|
|
275
|
+
OPEN_TICKETS = "OPEN_TICKETS",
|
|
276
|
+
/** Registration is open via external URL */
|
|
277
|
+
OPEN_EXTERNAL = "OPEN_EXTERNAL",
|
|
278
|
+
/** Registration will be open via RSVP */
|
|
279
|
+
SCHEDULED_RSVP = "SCHEDULED_RSVP"
|
|
280
|
+
}
|
|
281
|
+
export interface RsvpCollection {
|
|
282
|
+
/** RSVP collection configuration. */
|
|
283
|
+
config?: RsvpCollectionConfig;
|
|
284
|
+
}
|
|
285
|
+
export interface RsvpCollectionConfig {
|
|
286
|
+
/** Defines the supported RSVP statuses. */
|
|
287
|
+
rsvpStatusOptions?: RsvpStatusOptions;
|
|
288
|
+
/**
|
|
289
|
+
* Total guest limit available to register to the event.
|
|
290
|
+
* Additional guests per RSVP are counted towards total guests.
|
|
291
|
+
*/
|
|
292
|
+
limit?: number | null;
|
|
293
|
+
/** Whether a waitlist is opened when total guest limit is reached, allowing guests to create RSVP with WAITING RSVP status. */
|
|
294
|
+
waitlist?: boolean;
|
|
295
|
+
/** Registration start timestamp. */
|
|
296
|
+
startDate?: Date;
|
|
297
|
+
/** Registration end timestamp. */
|
|
298
|
+
endDate?: Date;
|
|
299
|
+
}
|
|
300
|
+
export declare enum RsvpStatusOptions {
|
|
301
|
+
/** Only YES RSVP status is available for RSVP registration */
|
|
302
|
+
YES_ONLY = "YES_ONLY",
|
|
303
|
+
/** YES and NO RSVP status options are available for the registration */
|
|
304
|
+
YES_AND_NO = "YES_AND_NO"
|
|
305
|
+
}
|
|
306
|
+
export interface Ticketing {
|
|
307
|
+
/** Deprecated. */
|
|
308
|
+
lowestPrice?: string | null;
|
|
309
|
+
/** Deprecated. */
|
|
310
|
+
highestPrice?: string | null;
|
|
311
|
+
/** Currency used in event transactions. */
|
|
312
|
+
currency?: string | null;
|
|
313
|
+
/** Ticketing configuration. */
|
|
314
|
+
config?: TicketingConfig;
|
|
315
|
+
/**
|
|
316
|
+
* Price of lowest priced ticket.
|
|
317
|
+
* @readonly
|
|
318
|
+
*/
|
|
319
|
+
lowestTicketPrice?: Money;
|
|
320
|
+
/**
|
|
321
|
+
* Price of highest priced ticket.
|
|
322
|
+
* @readonly
|
|
323
|
+
*/
|
|
324
|
+
highestTicketPrice?: Money;
|
|
325
|
+
/**
|
|
326
|
+
* Formatted price of lowest priced ticket.
|
|
327
|
+
* @readonly
|
|
328
|
+
*/
|
|
329
|
+
lowestTicketPriceFormatted?: string | null;
|
|
330
|
+
/**
|
|
331
|
+
* Formatted price of highest priced ticket.
|
|
332
|
+
* @readonly
|
|
333
|
+
*/
|
|
334
|
+
highestTicketPriceFormatted?: string | null;
|
|
335
|
+
/**
|
|
336
|
+
* Whether all tickets are sold for this event.
|
|
337
|
+
* @readonly
|
|
338
|
+
*/
|
|
339
|
+
soldOut?: boolean | null;
|
|
340
|
+
}
|
|
341
|
+
export interface TicketingConfig {
|
|
342
|
+
/** Whether the form must be filled out separately for each ticket. */
|
|
343
|
+
guestAssignedTickets?: boolean;
|
|
344
|
+
/** Tax configuration. */
|
|
345
|
+
taxConfig?: TaxConfig;
|
|
346
|
+
/** Limit of tickets that can be purchased per order, default 20. */
|
|
347
|
+
ticketLimitPerOrder?: number;
|
|
348
|
+
}
|
|
349
|
+
export interface TaxConfig {
|
|
350
|
+
/** Tax application settings. */
|
|
351
|
+
type?: TaxType;
|
|
352
|
+
/** Tax name. */
|
|
353
|
+
name?: string | null;
|
|
354
|
+
/** Tax rate (e.g.,`21.55`). */
|
|
355
|
+
rate?: string | null;
|
|
356
|
+
/** Applies taxes for donations, default true. */
|
|
357
|
+
appliesToDonations?: boolean | null;
|
|
358
|
+
}
|
|
359
|
+
export declare enum TaxType {
|
|
360
|
+
/** Tax is included in the ticket price */
|
|
361
|
+
INCLUDED = "INCLUDED",
|
|
362
|
+
/** Tax is added to the order at the checkout */
|
|
363
|
+
ADDED = "ADDED",
|
|
364
|
+
/** Tax is added to the final total at the checkout */
|
|
365
|
+
ADDED_AT_CHECKOUT = "ADDED_AT_CHECKOUT"
|
|
366
|
+
}
|
|
367
|
+
export interface Money {
|
|
368
|
+
/** Decimal amount representation. Deprecated, use `value` instead. */
|
|
369
|
+
amount?: string;
|
|
370
|
+
/** ISO 4217 format of the currency i.e. `USD`. */
|
|
371
|
+
currency?: string;
|
|
372
|
+
/** Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative. */
|
|
373
|
+
value?: string | null;
|
|
374
|
+
}
|
|
375
|
+
export interface ExternalEvent {
|
|
376
|
+
/** External event registration URL. */
|
|
377
|
+
registration?: string;
|
|
378
|
+
}
|
|
379
|
+
export declare enum VisitorType {
|
|
380
|
+
/** Site visitor (including member) */
|
|
381
|
+
VISITOR = "VISITOR",
|
|
382
|
+
/** Site member */
|
|
383
|
+
MEMBER = "MEMBER",
|
|
384
|
+
/** Site visitor or member */
|
|
385
|
+
VISITOR_OR_MEMBER = "VISITOR_OR_MEMBER"
|
|
386
|
+
}
|
|
387
|
+
export interface CalendarLinks {
|
|
388
|
+
/** "Add to Google calendar" URL. */
|
|
389
|
+
google?: string;
|
|
390
|
+
/** "Download ICS calendar file" URL. */
|
|
391
|
+
ics?: string;
|
|
392
|
+
}
|
|
393
|
+
/** Site URL components */
|
|
394
|
+
export interface SiteUrl {
|
|
395
|
+
/**
|
|
396
|
+
* Base URL. For premium sites, this will be the domain.
|
|
397
|
+
* For free sites, this would be site URL (e.g `mysite.wixsite.com/mysite`)
|
|
398
|
+
*/
|
|
399
|
+
base?: string;
|
|
400
|
+
/** The path to that page - e.g `/my-events/weekly-meetup-2` */
|
|
401
|
+
path?: string;
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* The form defines which elements are rendered in the Wix UI during the registration process (RSVP or checkout).
|
|
405
|
+
* It also contains customizable messages and labels.
|
|
406
|
+
*
|
|
407
|
+
*
|
|
408
|
+
* A form is an ordered list of controls (blocks), which accept guest information into a field input.
|
|
409
|
+
*
|
|
410
|
+
* Each control contains one or more nested inputs. For example, `Name` control has two inputs:
|
|
411
|
+
* - First Name
|
|
412
|
+
* - Last Name
|
|
413
|
+
*
|
|
414
|
+
* By default, name and email controls are always required and are pinned to the top of the form.
|
|
415
|
+
*/
|
|
416
|
+
export interface Form {
|
|
417
|
+
/** Nested fields as an ordered list. */
|
|
418
|
+
controls?: InputControl[];
|
|
419
|
+
/** Set of configured form messages. */
|
|
420
|
+
messages?: FormMessages;
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* A block of nested fields.
|
|
424
|
+
* Used to aggregate similar inputs like First Name and Last Name.
|
|
425
|
+
*/
|
|
426
|
+
export interface InputControl {
|
|
427
|
+
/** Field control type. */
|
|
428
|
+
type?: InputControlType;
|
|
429
|
+
/** Whether control is mandatory (such as name & email). When true, only label can be changed. */
|
|
430
|
+
system?: boolean;
|
|
431
|
+
/** Deprecated: Use `id`. */
|
|
432
|
+
name?: string;
|
|
433
|
+
/** Child inputs. */
|
|
434
|
+
inputs?: Input[];
|
|
435
|
+
/** Deprecated: use `inputs.label`. */
|
|
436
|
+
label?: string;
|
|
437
|
+
/** Field controls are sorted by this value in ascending order. */
|
|
438
|
+
orderIndex?: number;
|
|
439
|
+
/** Unique control ID. */
|
|
440
|
+
_id?: string;
|
|
441
|
+
}
|
|
442
|
+
export declare enum InputControlType {
|
|
443
|
+
/** Single text value field. */
|
|
444
|
+
INPUT = "INPUT",
|
|
445
|
+
/** Single text value field. */
|
|
446
|
+
TEXTAREA = "TEXTAREA",
|
|
447
|
+
/** Single-choice field of predefined values. */
|
|
448
|
+
DROPDOWN = "DROPDOWN",
|
|
449
|
+
/** Single-choice field of predefined values. */
|
|
450
|
+
RADIO = "RADIO",
|
|
451
|
+
/** Multiple-choice field of predefined values. */
|
|
452
|
+
CHECKBOX = "CHECKBOX",
|
|
453
|
+
/** First and last name fields. */
|
|
454
|
+
NAME = "NAME",
|
|
455
|
+
/** Additional guests and respective guest names fields. */
|
|
456
|
+
GUEST_CONTROL = "GUEST_CONTROL",
|
|
457
|
+
/** Single-line address field. */
|
|
458
|
+
ADDRESS_SHORT = "ADDRESS_SHORT",
|
|
459
|
+
/** Full address field. */
|
|
460
|
+
ADDRESS_FULL = "ADDRESS_FULL",
|
|
461
|
+
/** Year, month and day fields. */
|
|
462
|
+
DATE = "DATE"
|
|
463
|
+
}
|
|
464
|
+
/** An input of one or multiple text values */
|
|
465
|
+
export interface Input {
|
|
466
|
+
/** Field name. */
|
|
467
|
+
name?: string;
|
|
468
|
+
/** Deprecated: use `ValueType.TEXT_ARRAY`. */
|
|
469
|
+
array?: boolean;
|
|
470
|
+
/** Main field label */
|
|
471
|
+
label?: string;
|
|
472
|
+
/** Additional labels for multi-valued fields such as address. */
|
|
473
|
+
additionalLabels?: Record<string, string>;
|
|
474
|
+
/** Predefined choice options for fields, such as dropdown. */
|
|
475
|
+
options?: string[];
|
|
476
|
+
/** Whether field is mandatory. */
|
|
477
|
+
mandatory?: boolean;
|
|
478
|
+
/** Maximum number of accepted characters (relevant for text fields). */
|
|
479
|
+
maxLength?: number;
|
|
480
|
+
/**
|
|
481
|
+
* Type which determines field format.
|
|
482
|
+
* Used to validate submitted response.
|
|
483
|
+
*/
|
|
484
|
+
type?: ValueType;
|
|
485
|
+
/**
|
|
486
|
+
* A maximum accepted values for array input.
|
|
487
|
+
* Only applicable for inputs of valueType: TEXT_ARRAY.
|
|
488
|
+
*/
|
|
489
|
+
maxSize?: number | null;
|
|
490
|
+
/**
|
|
491
|
+
* Preselected option.
|
|
492
|
+
* Currently only applicable for dropdown.
|
|
493
|
+
*/
|
|
494
|
+
defaultOptionSelection?: OptionSelection;
|
|
495
|
+
/**
|
|
496
|
+
* Additional labels for multi-valued fields such as address.
|
|
497
|
+
* @readonly
|
|
498
|
+
*/
|
|
499
|
+
labels?: Label[];
|
|
500
|
+
}
|
|
501
|
+
export declare enum ValueType {
|
|
502
|
+
TEXT = "TEXT",
|
|
503
|
+
NUMBER = "NUMBER",
|
|
504
|
+
TEXT_ARRAY = "TEXT_ARRAY",
|
|
505
|
+
DATE_TIME = "DATE_TIME",
|
|
506
|
+
ADDRESS = "ADDRESS"
|
|
507
|
+
}
|
|
508
|
+
/**
|
|
509
|
+
* Describes initially selected option when an input has multiple choices.
|
|
510
|
+
* Defaults to first (0th) option if not configured.
|
|
511
|
+
*/
|
|
512
|
+
export interface OptionSelection extends OptionSelectionSelectedOptionOneOf {
|
|
513
|
+
/** 0-based index from predefined `input.options` which is selected initially. */
|
|
514
|
+
optionIndex?: number;
|
|
515
|
+
/**
|
|
516
|
+
* Placeholder hint describing expected choices (such as "Please select").
|
|
517
|
+
* Considered an empty choice.
|
|
518
|
+
*/
|
|
519
|
+
placeholderText?: string;
|
|
520
|
+
}
|
|
521
|
+
/** @oneof */
|
|
522
|
+
export interface OptionSelectionSelectedOptionOneOf {
|
|
523
|
+
/** 0-based index from predefined `input.options` which is selected initially. */
|
|
524
|
+
optionIndex?: number;
|
|
525
|
+
/**
|
|
526
|
+
* Placeholder hint describing expected choices (such as "Please select").
|
|
527
|
+
* Considered an empty choice.
|
|
528
|
+
*/
|
|
529
|
+
placeholderText?: string;
|
|
530
|
+
}
|
|
531
|
+
export interface Label {
|
|
532
|
+
/** Field name. */
|
|
533
|
+
name?: string;
|
|
534
|
+
/** Field label. */
|
|
535
|
+
label?: string;
|
|
536
|
+
}
|
|
537
|
+
/**
|
|
538
|
+
* Defines form messages shown in UI before, during, and after registration flow.
|
|
539
|
+
* It enables configuration of form titles, response labels, "thank you" messages, and call-to-action texts.
|
|
540
|
+
*/
|
|
541
|
+
export interface FormMessages {
|
|
542
|
+
/** RSVP form messages. */
|
|
543
|
+
rsvp?: RsvpFormMessages;
|
|
544
|
+
/** Checkout form messages. */
|
|
545
|
+
checkout?: CheckoutFormMessages;
|
|
546
|
+
/** Messages shown when event registration is closed. */
|
|
547
|
+
registrationClosed?: RegistrationClosedMessages;
|
|
548
|
+
/** Messages shown when event tickets are unavailable. */
|
|
549
|
+
ticketsUnavailable?: TicketsUnavailableMessages;
|
|
550
|
+
}
|
|
551
|
+
export interface RsvpFormMessages {
|
|
552
|
+
/** Label text indicating RSVP `YES` response. */
|
|
553
|
+
rsvpYesOption?: string;
|
|
554
|
+
/** Label text indicating RSVP `NO` response. */
|
|
555
|
+
rsvpNoOption?: string;
|
|
556
|
+
/** Messages shown for RSVP = `YES`. */
|
|
557
|
+
positiveMessages?: Positive;
|
|
558
|
+
/** Messages shown for RSVP = `WAITING` (when event is full and waitlist is available). */
|
|
559
|
+
waitlistMessages?: Positive;
|
|
560
|
+
/** Messages shown for RSVP = `NO`. */
|
|
561
|
+
negativeMessages?: Negative;
|
|
562
|
+
/** "Submit form" call-to-action label text. */
|
|
563
|
+
submitActionLabel?: string;
|
|
564
|
+
}
|
|
565
|
+
/** Confirmation messages shown after registration. */
|
|
566
|
+
export interface PositiveResponseConfirmation {
|
|
567
|
+
/** Confirmation message title. */
|
|
568
|
+
title?: string;
|
|
569
|
+
/** Confirmation message text. */
|
|
570
|
+
message?: string;
|
|
571
|
+
/** "Add to calendar" call-to-action label text. */
|
|
572
|
+
addToCalendarActionLabel?: string;
|
|
573
|
+
/** "Share event" call-to-action label text. */
|
|
574
|
+
shareActionLabel?: string;
|
|
575
|
+
}
|
|
576
|
+
/** Confirmation messages shown after registration. */
|
|
577
|
+
export interface ResponseConfirmation {
|
|
578
|
+
/** Confirmation message title. */
|
|
579
|
+
title?: string;
|
|
580
|
+
/** "Share event" call-to-action label text. */
|
|
581
|
+
shareActionLabel?: string;
|
|
582
|
+
}
|
|
583
|
+
/** Set of messages shown during registration when RSVP response is positive. */
|
|
584
|
+
export interface Positive {
|
|
585
|
+
/** Main form title for positive response. */
|
|
586
|
+
title?: string;
|
|
587
|
+
/** Confirmation messages shown after registration. */
|
|
588
|
+
confirmation?: PositiveResponseConfirmation;
|
|
589
|
+
}
|
|
590
|
+
/** A set of messages shown during registration with negative response */
|
|
591
|
+
export interface Negative {
|
|
592
|
+
/** Main form title for negative response. */
|
|
593
|
+
title?: string;
|
|
594
|
+
/** Confirmation messages shown after registration. */
|
|
595
|
+
confirmation?: ResponseConfirmation;
|
|
596
|
+
}
|
|
597
|
+
export interface CheckoutFormMessages {
|
|
598
|
+
/** Main form title for response. */
|
|
599
|
+
title?: string;
|
|
600
|
+
/** Submit form call-to-action label text. */
|
|
601
|
+
submitActionLabel?: string;
|
|
602
|
+
}
|
|
603
|
+
export interface RegistrationClosedMessages {
|
|
604
|
+
/** Message shown when event registration is closed. */
|
|
605
|
+
message?: string;
|
|
606
|
+
/** "Explore other events" call-to-action label text. */
|
|
607
|
+
exploreEventsActionLabel?: string;
|
|
608
|
+
}
|
|
609
|
+
export interface TicketsUnavailableMessages {
|
|
610
|
+
/** Message shown when event tickets are unavailable. */
|
|
611
|
+
message?: string;
|
|
612
|
+
/** "Explore other events" call-to-action label text. */
|
|
613
|
+
exploreEventsActionLabel?: string;
|
|
614
|
+
}
|
|
615
|
+
export interface Dashboard {
|
|
616
|
+
/** Guest RSVP summary. */
|
|
617
|
+
rsvpSummary?: RsvpSummary;
|
|
618
|
+
/**
|
|
619
|
+
* Summary of revenue and tickets sold.
|
|
620
|
+
* (Archived orders are not included).
|
|
621
|
+
*/
|
|
622
|
+
ticketingSummary?: TicketingSummary;
|
|
623
|
+
}
|
|
624
|
+
export interface RsvpSummary {
|
|
625
|
+
/** Total number of RSVPs. */
|
|
626
|
+
total?: number;
|
|
627
|
+
/** Number of RSVPs with status `YES`. */
|
|
628
|
+
yes?: number;
|
|
629
|
+
/** Number of RSVPs with status `NO`. */
|
|
630
|
+
no?: number;
|
|
631
|
+
/** Number of RSVPs in waitlist. */
|
|
632
|
+
waitlist?: number;
|
|
633
|
+
}
|
|
634
|
+
export interface TicketingSummary {
|
|
635
|
+
/** Number of tickets sold. */
|
|
636
|
+
tickets?: number;
|
|
637
|
+
/**
|
|
638
|
+
* Total revenue, excluding fees.
|
|
639
|
+
* (taxes and payment provider fees are not deducted.)
|
|
640
|
+
*/
|
|
641
|
+
revenue?: Money;
|
|
642
|
+
/** Whether currency is locked and cannot be changed (generally occurs after the first order in the specified currency has been created). */
|
|
643
|
+
currencyLocked?: boolean;
|
|
644
|
+
/** Number of orders placed. */
|
|
645
|
+
orders?: number;
|
|
646
|
+
/** Total balance of confirmed transactions. */
|
|
647
|
+
totalSales?: Money;
|
|
648
|
+
}
|
|
649
|
+
export interface GuestListConfig {
|
|
650
|
+
/** Whether members can see other members attending the event (defaults to true). */
|
|
651
|
+
publicGuestList?: boolean;
|
|
652
|
+
}
|
|
653
|
+
export interface Feed {
|
|
654
|
+
/** Event discussion feed token. */
|
|
655
|
+
token?: string;
|
|
656
|
+
}
|
|
657
|
+
export interface OnlineConferencing {
|
|
658
|
+
config?: OnlineConferencingConfig;
|
|
659
|
+
session?: OnlineConferencingSession;
|
|
660
|
+
}
|
|
661
|
+
export interface OnlineConferencingConfig {
|
|
662
|
+
/**
|
|
663
|
+
* Whether online conferencing is enabled (not supported for TBD schedules).
|
|
664
|
+
* When enabled, links to join conferencing are generated and provided to guests.
|
|
665
|
+
*/
|
|
666
|
+
enabled?: boolean;
|
|
667
|
+
/** Conferencing provider ID. */
|
|
668
|
+
providerId?: string | null;
|
|
669
|
+
/** Conference type */
|
|
670
|
+
conferenceType?: ConferenceType;
|
|
671
|
+
}
|
|
672
|
+
export declare enum ConferenceType {
|
|
673
|
+
/** Everyone in the meeting can publish and subscribe video and audio. */
|
|
674
|
+
MEETING = "MEETING",
|
|
675
|
+
/** Guests can only subscribe to video and audio. */
|
|
676
|
+
WEBINAR = "WEBINAR"
|
|
677
|
+
}
|
|
678
|
+
export interface OnlineConferencingSession {
|
|
679
|
+
/**
|
|
680
|
+
* Link for event host to start the online conference session.
|
|
681
|
+
* @readonly
|
|
682
|
+
*/
|
|
683
|
+
hostLink?: string;
|
|
684
|
+
/**
|
|
685
|
+
* Link for guests to join the online conference session.
|
|
686
|
+
* @readonly
|
|
687
|
+
*/
|
|
688
|
+
guestLink?: string;
|
|
689
|
+
/**
|
|
690
|
+
* The password required to join online conferencing session (when relevant).
|
|
691
|
+
* @readonly
|
|
692
|
+
*/
|
|
693
|
+
password?: string | null;
|
|
694
|
+
/**
|
|
695
|
+
* Indicates that session was created successfully on providers side.
|
|
696
|
+
* @readonly
|
|
697
|
+
*/
|
|
698
|
+
sessionCreated?: boolean | null;
|
|
699
|
+
/**
|
|
700
|
+
* Unique session id
|
|
701
|
+
* @readonly
|
|
702
|
+
*/
|
|
703
|
+
sessionId?: string | null;
|
|
704
|
+
}
|
|
705
|
+
export interface SeoSettings {
|
|
706
|
+
/** URL slug */
|
|
707
|
+
slug?: string;
|
|
708
|
+
/** Advanced SEO data */
|
|
709
|
+
advancedSeoData?: SeoSchema;
|
|
710
|
+
/**
|
|
711
|
+
* Hidden from SEO Site Map
|
|
712
|
+
* @readonly
|
|
713
|
+
*/
|
|
714
|
+
hidden?: boolean | null;
|
|
715
|
+
}
|
|
716
|
+
/**
|
|
717
|
+
* The SEO schema object contains data about different types of meta tags. It makes sure that the information about your page is presented properly to search engines.
|
|
718
|
+
* The search engines use this information for ranking purposes, or to display snippets in the search results.
|
|
719
|
+
* This data will override other sources of tags (for example patterns) and will be included in the <head> section of the HTML document, while not being displayed on the page itself.
|
|
720
|
+
*/
|
|
721
|
+
export interface SeoSchema {
|
|
722
|
+
/** SEO tags information. */
|
|
723
|
+
tags?: Tag[];
|
|
724
|
+
/** SEO general settings. */
|
|
725
|
+
settings?: Settings;
|
|
726
|
+
}
|
|
727
|
+
export interface Tag {
|
|
728
|
+
/**
|
|
729
|
+
* SEO tag type.
|
|
730
|
+
*
|
|
731
|
+
*
|
|
732
|
+
* Supported values: `title`, `meta`, `script`, `link`.
|
|
733
|
+
*/
|
|
734
|
+
type?: string;
|
|
735
|
+
/**
|
|
736
|
+
* A `{'key':'value'} pair object where each SEO tag property (`'name'`, `'content'`, `'rel'`, `'href'`) contains a value.
|
|
737
|
+
* For example: `{'name': 'description', 'content': 'the description itself'}`.
|
|
738
|
+
*/
|
|
739
|
+
props?: Record<string, any> | null;
|
|
740
|
+
/** SEO tag meta data. For example, `{height: 300, width: 240}`. */
|
|
741
|
+
meta?: Record<string, any> | null;
|
|
742
|
+
/** SEO tag inner content. For example, `<title> inner content </title>`. */
|
|
743
|
+
children?: string;
|
|
744
|
+
/** Whether the tag is a custom tag. */
|
|
745
|
+
custom?: boolean;
|
|
746
|
+
/** Whether the tag is disabled. */
|
|
747
|
+
disabled?: boolean;
|
|
748
|
+
}
|
|
749
|
+
export interface Settings {
|
|
750
|
+
/**
|
|
751
|
+
* Whether the auto redirects feature creating `301 redirects` on a slug change is enabled.
|
|
752
|
+
*
|
|
753
|
+
*
|
|
754
|
+
* Default: enabled
|
|
755
|
+
*/
|
|
756
|
+
preventAutoRedirect?: boolean;
|
|
757
|
+
}
|
|
758
|
+
export interface Agenda {
|
|
759
|
+
enabled?: boolean;
|
|
760
|
+
/**
|
|
761
|
+
* Agenda page URL.
|
|
762
|
+
* @readonly
|
|
763
|
+
*/
|
|
764
|
+
pageUrl?: SiteUrl;
|
|
765
|
+
}
|
|
766
|
+
export interface Category {
|
|
767
|
+
/**
|
|
768
|
+
* Category ID.
|
|
769
|
+
* @readonly
|
|
770
|
+
*/
|
|
771
|
+
_id?: string;
|
|
772
|
+
/** Category name. */
|
|
773
|
+
name?: string;
|
|
774
|
+
/**
|
|
775
|
+
* Category creation timestamp.
|
|
776
|
+
* @readonly
|
|
777
|
+
*/
|
|
778
|
+
_createdDate?: Date;
|
|
779
|
+
/**
|
|
780
|
+
* Assigned events count. Deleted events are excluded.
|
|
781
|
+
* @readonly
|
|
782
|
+
*/
|
|
783
|
+
assignedEventsCount?: number | null;
|
|
784
|
+
/** @readonly */
|
|
785
|
+
counts?: CategoryCounts;
|
|
786
|
+
/**
|
|
787
|
+
* Category state. Default - MANUAL.
|
|
788
|
+
* WIX_EVENTS.MANAGE_AUTO_CATEGORIES permission is required to use other states.
|
|
789
|
+
* Field will be ignored on update requests.
|
|
790
|
+
*/
|
|
791
|
+
states?: State[];
|
|
792
|
+
}
|
|
793
|
+
export interface CategoryCounts {
|
|
794
|
+
/** Assigned events count. Deleted events are excluded. */
|
|
795
|
+
assignedEventsCount?: number | null;
|
|
796
|
+
/** Assigned draft events count. */
|
|
797
|
+
assignedDraftEventsCount?: number | null;
|
|
798
|
+
}
|
|
799
|
+
export declare enum State {
|
|
800
|
+
/** Created manually by the user. */
|
|
801
|
+
MANUAL = "MANUAL",
|
|
802
|
+
/** Created automatically. */
|
|
803
|
+
AUTO = "AUTO",
|
|
804
|
+
/** Created when publishing recurring events. */
|
|
805
|
+
RECURRING_EVENT = "RECURRING_EVENT",
|
|
806
|
+
/** Category is hidden. */
|
|
807
|
+
HIDDEN = "HIDDEN",
|
|
808
|
+
/** Category is used to store component events. */
|
|
809
|
+
COMPONENT = "COMPONENT"
|
|
810
|
+
}
|
|
811
|
+
export interface EventStarted {
|
|
812
|
+
/** Event start timestamp in ISO UTC format. */
|
|
813
|
+
timestamp?: Date;
|
|
814
|
+
/** Event ID. */
|
|
815
|
+
eventId?: string;
|
|
816
|
+
}
|
|
817
|
+
export interface EventReminder {
|
|
818
|
+
/** Reminder timestamp in ISO UTC format. */
|
|
819
|
+
timestamp?: Date;
|
|
820
|
+
/** Event ID. */
|
|
821
|
+
eventId?: string;
|
|
822
|
+
/** Event location. */
|
|
823
|
+
location?: Location;
|
|
824
|
+
/** Event schedule configuration. */
|
|
825
|
+
scheduleConfig?: ScheduleConfig;
|
|
826
|
+
/** Event title. */
|
|
827
|
+
title?: string;
|
|
828
|
+
/** Event creator user ID. */
|
|
829
|
+
userId?: string | null;
|
|
830
|
+
/** Time until the event starts (currently, reminder is triggered 1 day before event starts). */
|
|
831
|
+
startsIn?: TimeDuration;
|
|
832
|
+
}
|
|
833
|
+
/**
|
|
834
|
+
* A coarse-grained representation of time duration divided into whole constituting components of days, hours, and minutes.
|
|
835
|
+
* For example, 25.5 hours duration is represented as `{ days: 1, hours: 1, minutes: 30 }`.
|
|
836
|
+
*/
|
|
837
|
+
export interface TimeDuration {
|
|
838
|
+
/** Number of days */
|
|
839
|
+
days?: number;
|
|
840
|
+
/** Number of hours */
|
|
841
|
+
hours?: number;
|
|
842
|
+
/** Number of minutes */
|
|
843
|
+
minutes?: number;
|
|
844
|
+
}
|
|
845
|
+
export interface EventEnded {
|
|
846
|
+
/** Event end timestamp in ISO UTC format. */
|
|
847
|
+
timestamp?: Date;
|
|
848
|
+
/** Event ID. */
|
|
849
|
+
eventId?: string;
|
|
850
|
+
}
|
|
851
|
+
export interface QueryEventsRequest {
|
|
852
|
+
/** Number of items to skip. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
|
|
853
|
+
offset?: number;
|
|
854
|
+
/** Number of items to load per page. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
|
|
855
|
+
limit?: number;
|
|
856
|
+
/**
|
|
857
|
+
* Controls which event properties are returned. See [Fieldset](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_event-fieldset).
|
|
858
|
+
* Some fields require additional computation that affects latency.
|
|
859
|
+
* Use minimum set of required fieldset for best performance.
|
|
860
|
+
*/
|
|
861
|
+
fieldset?: EventFieldset[];
|
|
862
|
+
/** 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). */
|
|
863
|
+
filter?: Record<string, any> | null;
|
|
864
|
+
/**
|
|
865
|
+
* Filter facets to include in the response.
|
|
866
|
+
* See [supported facets](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
|
|
867
|
+
*/
|
|
868
|
+
facet?: string[];
|
|
869
|
+
/** User ID filter, by default any */
|
|
870
|
+
userId?: string[];
|
|
871
|
+
/**
|
|
872
|
+
* Sort order, defaults to `"created:asc"`.
|
|
873
|
+
* See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
|
|
874
|
+
*/
|
|
875
|
+
sort?: string;
|
|
876
|
+
/**
|
|
877
|
+
* Whether draft events should be returned in the response.
|
|
878
|
+
* Requires WIX_EVENTS.MANAGE_EVENTS permission.
|
|
879
|
+
*/
|
|
880
|
+
includeDrafts?: boolean;
|
|
881
|
+
}
|
|
882
|
+
export declare enum EventFieldset {
|
|
883
|
+
FULL = "FULL",
|
|
884
|
+
/** Include `description`, `mainImage` and `calendarLinks` in the response. */
|
|
885
|
+
DETAILS = "DETAILS",
|
|
886
|
+
/** Include `about` event rich text in the response. */
|
|
887
|
+
TEXTS = "TEXTS",
|
|
888
|
+
/** Include `registration` in the response. */
|
|
889
|
+
REGISTRATION = "REGISTRATION",
|
|
890
|
+
/** Include `eventPageUrl` in the response. */
|
|
891
|
+
URLS = "URLS",
|
|
892
|
+
/** Include `form` in the response. */
|
|
893
|
+
FORM = "FORM",
|
|
894
|
+
/** Include `dashboard` in the response. */
|
|
895
|
+
DASHBOARD = "DASHBOARD",
|
|
896
|
+
/** Include `feed` in the response. */
|
|
897
|
+
FEED = "FEED",
|
|
898
|
+
/** Include `onlineConferencing` in the response. */
|
|
899
|
+
ONLINE_CONFERENCING_SESSION = "ONLINE_CONFERENCING_SESSION",
|
|
900
|
+
/** Include `seoSettings` in the response. */
|
|
901
|
+
SEO_SETTINGS = "SEO_SETTINGS",
|
|
902
|
+
/** Include `agendaSettings` in the response. */
|
|
903
|
+
AGENDA = "AGENDA",
|
|
904
|
+
/** Include `categories` in the response. */
|
|
905
|
+
CATEGORIES = "CATEGORIES"
|
|
906
|
+
}
|
|
907
|
+
export interface QueryEventsResponse {
|
|
908
|
+
/** Total number of events that match the given filters. */
|
|
909
|
+
total?: number;
|
|
910
|
+
/** Offset. */
|
|
911
|
+
offset?: number;
|
|
912
|
+
/** Limit. */
|
|
913
|
+
limit?: number;
|
|
914
|
+
/** Events list */
|
|
915
|
+
events?: Event[];
|
|
916
|
+
/** Filter facets. */
|
|
917
|
+
facets?: Record<string, FacetCounts>;
|
|
918
|
+
}
|
|
919
|
+
export interface FacetCounts {
|
|
920
|
+
/** Facet counts aggregated per value */
|
|
921
|
+
counts?: Record<string, number>;
|
|
922
|
+
}
|
|
923
|
+
export interface QueryEventsV2Request {
|
|
924
|
+
query?: QueryV2;
|
|
925
|
+
/**
|
|
926
|
+
* Controls which event properties are returned. See [Fieldset](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_event-fieldset).
|
|
927
|
+
* Some fields require additional computation that affects latency.
|
|
928
|
+
* Use minimum set of required fieldset for best performance.
|
|
929
|
+
*/
|
|
930
|
+
fieldset?: EventFieldset[];
|
|
931
|
+
/**
|
|
932
|
+
* Filter facets to include in the response.
|
|
933
|
+
* See [supported facets](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
|
|
934
|
+
*/
|
|
935
|
+
facet?: string[];
|
|
936
|
+
/**
|
|
937
|
+
* Whether draft events should be returned in the response.
|
|
938
|
+
* Requires WIX_EVENTS.MANAGE_EVENTS permission.
|
|
939
|
+
*/
|
|
940
|
+
includeDrafts?: boolean;
|
|
941
|
+
}
|
|
942
|
+
export interface QueryV2 extends QueryV2PagingMethodOneOf {
|
|
943
|
+
/** 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). */
|
|
944
|
+
filter?: Record<string, any> | null;
|
|
945
|
+
/**
|
|
946
|
+
* Sort object in the form [{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]
|
|
947
|
+
* See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
|
|
948
|
+
*/
|
|
949
|
+
sort?: Sorting[];
|
|
950
|
+
/**
|
|
951
|
+
* Pointer to page of results using offset.
|
|
952
|
+
* See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).
|
|
953
|
+
*/
|
|
954
|
+
paging?: Paging;
|
|
955
|
+
}
|
|
956
|
+
/** @oneof */
|
|
957
|
+
export interface QueryV2PagingMethodOneOf {
|
|
958
|
+
/**
|
|
959
|
+
* Pointer to page of results using offset.
|
|
960
|
+
* See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).
|
|
961
|
+
*/
|
|
962
|
+
paging?: Paging;
|
|
963
|
+
}
|
|
964
|
+
export interface Sorting {
|
|
965
|
+
/** Name of the field to sort by */
|
|
966
|
+
fieldName?: string;
|
|
967
|
+
/** Sort order (ASC/DESC). Defaults to ASC */
|
|
968
|
+
order?: SortOrder;
|
|
969
|
+
}
|
|
970
|
+
export declare enum SortOrder {
|
|
971
|
+
ASC = "ASC",
|
|
972
|
+
DESC = "DESC"
|
|
973
|
+
}
|
|
974
|
+
export interface Paging {
|
|
975
|
+
/** Number of items to load per page. */
|
|
976
|
+
limit?: number | null;
|
|
977
|
+
/** Number of items to skip in the current sort order. */
|
|
978
|
+
offset?: number | null;
|
|
979
|
+
}
|
|
980
|
+
export interface QueryEventsV2Response {
|
|
981
|
+
pagingMetadata?: PagingMetadataV2;
|
|
982
|
+
/** Events list */
|
|
983
|
+
events?: Event[];
|
|
984
|
+
/** Filter facets. */
|
|
985
|
+
facets?: Record<string, FacetCounts>;
|
|
986
|
+
}
|
|
987
|
+
export interface PagingMetadataV2 {
|
|
988
|
+
/** Number of items returned in the response. */
|
|
989
|
+
count?: number | null;
|
|
990
|
+
/** Offset that was requested. */
|
|
991
|
+
offset?: number | null;
|
|
992
|
+
/** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
|
|
993
|
+
total?: number | null;
|
|
994
|
+
/** Flag that indicates the server failed to calculate the `total` field. */
|
|
995
|
+
tooManyToCount?: boolean | null;
|
|
996
|
+
/** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
|
|
997
|
+
cursors?: Cursors;
|
|
998
|
+
}
|
|
999
|
+
export interface Cursors {
|
|
1000
|
+
/** Cursor pointing to next page in the list of results. */
|
|
1001
|
+
next?: string | null;
|
|
1002
|
+
/** Cursor pointing to previous page in the list of results. */
|
|
1003
|
+
prev?: string | null;
|
|
1004
|
+
}
|
|
1005
|
+
export interface ListEventsRequest {
|
|
1006
|
+
/** Number of items to skip. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
|
|
1007
|
+
offset?: number;
|
|
1008
|
+
/** Number of items to load per page. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
|
|
1009
|
+
limit?: number;
|
|
1010
|
+
/**
|
|
1011
|
+
* Controls which event properties are returned. See [Fieldset](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_event-fieldset).
|
|
1012
|
+
* Some fields require additional computation that affects latency of the service.
|
|
1013
|
+
* Use minimum set of required fieldset for best performance.
|
|
1014
|
+
*/
|
|
1015
|
+
fieldset?: EventFieldset[];
|
|
1016
|
+
/** Event status. */
|
|
1017
|
+
status?: EventStatus[];
|
|
1018
|
+
/** Event URL slug. */
|
|
1019
|
+
slug?: string;
|
|
1020
|
+
/**
|
|
1021
|
+
* Filter facets to include in the response.
|
|
1022
|
+
* See [supported facets](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
|
|
1023
|
+
*/
|
|
1024
|
+
facet?: string[];
|
|
1025
|
+
/** User ID filter, by default any */
|
|
1026
|
+
userId?: string[];
|
|
1027
|
+
/**
|
|
1028
|
+
* Sort order, defaults to `"created:asc"`.
|
|
1029
|
+
* See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
|
|
1030
|
+
*/
|
|
1031
|
+
sort?: string;
|
|
1032
|
+
/** Category filter. */
|
|
1033
|
+
categoryFilter?: CategoryFilter;
|
|
1034
|
+
/**
|
|
1035
|
+
* Whether draft events should be returned in the response.
|
|
1036
|
+
* Requires WIX_EVENTS.MANAGE_EVENTS permission.
|
|
1037
|
+
*/
|
|
1038
|
+
includeDrafts?: boolean;
|
|
1039
|
+
/** Recurrence status filter. */
|
|
1040
|
+
recurrenceStatus?: Status[];
|
|
1041
|
+
/** Recurring group id filter. */
|
|
1042
|
+
recurringGroupId?: string[];
|
|
1043
|
+
}
|
|
1044
|
+
export interface UserFilter {
|
|
1045
|
+
/** User who is related to event */
|
|
1046
|
+
userId?: string;
|
|
1047
|
+
/** Relation of user to event */
|
|
1048
|
+
relation?: Relation[];
|
|
1049
|
+
}
|
|
1050
|
+
export declare enum Relation {
|
|
1051
|
+
/**
|
|
1052
|
+
* User is attending the event.
|
|
1053
|
+
* User has RSVP with status YES or has ordered tickets.
|
|
1054
|
+
*/
|
|
1055
|
+
ATTENDING = "ATTENDING"
|
|
1056
|
+
}
|
|
1057
|
+
export interface CategoryFilter {
|
|
1058
|
+
/**
|
|
1059
|
+
* If true - only categorised events will be returned.
|
|
1060
|
+
* If false - only not categorised events will be returned.
|
|
1061
|
+
*/
|
|
1062
|
+
categorised?: boolean | null;
|
|
1063
|
+
/** Category id filter. */
|
|
1064
|
+
categoryId?: string[];
|
|
1065
|
+
/** Category states filter. Default - any state. */
|
|
1066
|
+
states?: State[];
|
|
1067
|
+
}
|
|
1068
|
+
export interface ListEventsResponse {
|
|
1069
|
+
/** Total number of events that match the given filters. */
|
|
1070
|
+
total?: number;
|
|
1071
|
+
/** Offset. */
|
|
1072
|
+
offset?: number;
|
|
1073
|
+
/** Limit. */
|
|
1074
|
+
limit?: number;
|
|
1075
|
+
/** Events list. */
|
|
1076
|
+
events?: Event[];
|
|
1077
|
+
/** Filter facets. */
|
|
1078
|
+
facets?: Record<string, FacetCounts>;
|
|
1079
|
+
}
|
|
1080
|
+
export interface ListUserEventsRequest {
|
|
1081
|
+
paging?: Paging;
|
|
1082
|
+
/**
|
|
1083
|
+
* Sort order, defaults to `"created:asc"`.
|
|
1084
|
+
* See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
|
|
1085
|
+
*/
|
|
1086
|
+
sort?: Sorting[];
|
|
1087
|
+
/** Event status. */
|
|
1088
|
+
status?: EventStatus[];
|
|
1089
|
+
/**
|
|
1090
|
+
* Wix user filter, by default any.
|
|
1091
|
+
* Allows to filter events by user relation to the event among all wix sites.
|
|
1092
|
+
*/
|
|
1093
|
+
userFilter?: UserFilter;
|
|
1094
|
+
/**
|
|
1095
|
+
* Filter facets to include in the response.
|
|
1096
|
+
* See [supported facets](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
|
|
1097
|
+
*/
|
|
1098
|
+
facet?: string[];
|
|
1099
|
+
}
|
|
1100
|
+
export interface ListUserEventsResponse {
|
|
1101
|
+
pagingMetadata?: PagingMetadataV2;
|
|
1102
|
+
/** Events list. */
|
|
1103
|
+
events?: Event[];
|
|
1104
|
+
/** Filter facets. */
|
|
1105
|
+
facets?: Record<string, FacetCounts>;
|
|
1106
|
+
}
|
|
1107
|
+
export interface ListCategoryEventsRequest {
|
|
1108
|
+
/** Category ID */
|
|
1109
|
+
categoryId: string;
|
|
1110
|
+
paging?: Paging;
|
|
1111
|
+
/**
|
|
1112
|
+
* Controls which event properties are returned. See [Fieldset](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_event-fieldset).
|
|
1113
|
+
* Some fields require additional computation that affects latency of the service.
|
|
1114
|
+
* Use minimum set of required fieldset for best performance.
|
|
1115
|
+
*/
|
|
1116
|
+
fieldset?: EventFieldset[];
|
|
1117
|
+
}
|
|
1118
|
+
export interface ListCategoryEventsResponse {
|
|
1119
|
+
pagingMetadata?: PagingMetadataV2;
|
|
1120
|
+
/** Events list. */
|
|
1121
|
+
events?: Event[];
|
|
1122
|
+
}
|
|
1123
|
+
export interface GetEventRequest extends GetEventRequestGetByOneOf {
|
|
1124
|
+
/**
|
|
1125
|
+
* Controls which event properties are returned. See [Fieldset](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_event-fieldset).
|
|
1126
|
+
* Some fields require additional computation that affects latency.
|
|
1127
|
+
* Use minimum set of required fieldset for best performance.
|
|
1128
|
+
*/
|
|
1129
|
+
fieldset?: EventFieldset[];
|
|
1130
|
+
/** Event ID. */
|
|
1131
|
+
_id?: string | null;
|
|
1132
|
+
/** URL slug. */
|
|
1133
|
+
slug?: string | null;
|
|
1134
|
+
}
|
|
1135
|
+
/** @oneof */
|
|
1136
|
+
export interface GetEventRequestGetByOneOf {
|
|
1137
|
+
/** Event ID. */
|
|
1138
|
+
_id?: string | null;
|
|
1139
|
+
/** URL slug. */
|
|
1140
|
+
slug?: string | null;
|
|
1141
|
+
}
|
|
1142
|
+
export interface GetEventResponse {
|
|
1143
|
+
/** Event. */
|
|
1144
|
+
event?: Event;
|
|
1145
|
+
}
|
|
1146
|
+
export interface FindEventRequest extends FindEventRequestFindByOneOf {
|
|
1147
|
+
/**
|
|
1148
|
+
* Controls which event properties are returned. See [Fieldset](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_event-fieldset).
|
|
1149
|
+
* Some fields require additional computation that affects latency.
|
|
1150
|
+
* Use minimum set of required fieldset for best performance.
|
|
1151
|
+
*/
|
|
1152
|
+
fieldset?: EventFieldset[];
|
|
1153
|
+
/** Event ID. */
|
|
1154
|
+
_id?: string | null;
|
|
1155
|
+
/** URL slug. */
|
|
1156
|
+
slug?: string | null;
|
|
1157
|
+
}
|
|
1158
|
+
/** @oneof */
|
|
1159
|
+
export interface FindEventRequestFindByOneOf {
|
|
1160
|
+
/** Event ID. */
|
|
1161
|
+
_id?: string | null;
|
|
1162
|
+
/** URL slug. */
|
|
1163
|
+
slug?: string | null;
|
|
1164
|
+
}
|
|
1165
|
+
export interface FindEventResponse {
|
|
1166
|
+
/** Event. */
|
|
1167
|
+
event?: Event;
|
|
1168
|
+
}
|
|
1169
|
+
export interface CreateEventV2Request {
|
|
1170
|
+
/** Event data. */
|
|
1171
|
+
event: EventData;
|
|
1172
|
+
/**
|
|
1173
|
+
* Content language code in ISO 639-1 format.
|
|
1174
|
+
* Used for translating ticket PDF labels, registration form, automatic emails, etc.
|
|
1175
|
+
* Supported languages: ar, bg, cs, da, de, el, en, es, fi, fr, he, hi, hu, id, it, ja, ko, ms, nl, no, pl, pt, ro, ru, sv, th, tl, tr, uk, zh.
|
|
1176
|
+
* Defaults to en.
|
|
1177
|
+
*/
|
|
1178
|
+
language?: string | null;
|
|
1179
|
+
/** Whether event should be created as draft. Draft events are hidden from site visitors. */
|
|
1180
|
+
draft?: boolean;
|
|
1181
|
+
}
|
|
1182
|
+
export interface EventData {
|
|
1183
|
+
/** Event title. */
|
|
1184
|
+
title?: string | null;
|
|
1185
|
+
/** Event description. */
|
|
1186
|
+
description?: string | null;
|
|
1187
|
+
/**
|
|
1188
|
+
* Event location.
|
|
1189
|
+
* Address is required for non TBD event.
|
|
1190
|
+
* Location name is required for TBD event.
|
|
1191
|
+
*/
|
|
1192
|
+
location?: Location;
|
|
1193
|
+
/** Event schedule configuration */
|
|
1194
|
+
scheduleConfig?: ScheduleConfig;
|
|
1195
|
+
/**
|
|
1196
|
+
* Main event image. Printed in ticket PDF.
|
|
1197
|
+
* Currently, only images previously saved in Wix Media are supported.
|
|
1198
|
+
*/
|
|
1199
|
+
mainImage?: string;
|
|
1200
|
+
/** RSVP collection configuration. Can be used to set limits. */
|
|
1201
|
+
rsvpCollectionConfig?: RsvpCollectionConfig;
|
|
1202
|
+
/** Guest list configuration */
|
|
1203
|
+
guestListConfig?: GuestListConfig;
|
|
1204
|
+
/** Rich-text content for About Event section (HTML). */
|
|
1205
|
+
about?: string | null;
|
|
1206
|
+
/** Registration configuration */
|
|
1207
|
+
registrationConfig?: RegistrationConfig;
|
|
1208
|
+
/** Online conferencing configuration */
|
|
1209
|
+
onlineConferencingConfig?: OnlineConferencingConfig;
|
|
1210
|
+
/** SEO settings */
|
|
1211
|
+
seoSettings?: SeoSettings;
|
|
1212
|
+
/** Agenda configuration */
|
|
1213
|
+
agenda?: Agenda;
|
|
1214
|
+
}
|
|
1215
|
+
export interface RegistrationConfig {
|
|
1216
|
+
/** External event registration URL (for external events only). */
|
|
1217
|
+
externalRegistrationUrl?: string | null;
|
|
1218
|
+
/** Whether registration is closed. */
|
|
1219
|
+
pausedRegistration?: boolean;
|
|
1220
|
+
/** Ticketing configuration. */
|
|
1221
|
+
ticketingConfig?: TicketingConfig;
|
|
1222
|
+
/** Types of users allowed to register. */
|
|
1223
|
+
restrictedTo?: VisitorType;
|
|
1224
|
+
/** Whether registration is disabled. */
|
|
1225
|
+
disabledRegistration?: boolean;
|
|
1226
|
+
/**
|
|
1227
|
+
* Initial event type. Only RSVP and TICKETS are allowed when creating an event.
|
|
1228
|
+
* Updating this field is not allowed.
|
|
1229
|
+
*/
|
|
1230
|
+
initialType?: EventType;
|
|
1231
|
+
}
|
|
1232
|
+
export interface CreateEventV2Response {
|
|
1233
|
+
/** Created event. */
|
|
1234
|
+
event?: Event;
|
|
1235
|
+
}
|
|
1236
|
+
export interface EventCreated {
|
|
1237
|
+
/** Event created timestamp in ISO UTC format. */
|
|
1238
|
+
timestamp?: Date;
|
|
1239
|
+
/** Event ID. */
|
|
1240
|
+
eventId?: string;
|
|
1241
|
+
/** Event location. */
|
|
1242
|
+
location?: Location;
|
|
1243
|
+
/** Event schedule configuration. */
|
|
1244
|
+
scheduleConfig?: ScheduleConfig;
|
|
1245
|
+
/** Event title. */
|
|
1246
|
+
title?: string;
|
|
1247
|
+
/** Event creator user ID. */
|
|
1248
|
+
userId?: string | null;
|
|
1249
|
+
/** Event status. */
|
|
1250
|
+
status?: EventStatus;
|
|
1251
|
+
/** Instance ID. Indicates the original app instance which current event was derived from. */
|
|
1252
|
+
derivedFromInstanceId?: string | null;
|
|
1253
|
+
/** Event ID. Indicates the original event which current event was derived from. */
|
|
1254
|
+
derivedFromEventId?: string | null;
|
|
1255
|
+
}
|
|
1256
|
+
export interface EventPublished {
|
|
1257
|
+
/** Event publish timestamp in ISO UTC format. */
|
|
1258
|
+
timestamp?: Date;
|
|
1259
|
+
/** Event ID. */
|
|
1260
|
+
eventId?: string;
|
|
1261
|
+
/** Event status. */
|
|
1262
|
+
status?: EventStatus;
|
|
1263
|
+
/**
|
|
1264
|
+
* Event ID. Indicates the original event which current event was derived from.
|
|
1265
|
+
* Can be used to track the original event and add missing information.
|
|
1266
|
+
*/
|
|
1267
|
+
derivedFromEventId?: string | null;
|
|
1268
|
+
}
|
|
1269
|
+
export interface CopyEventRequest {
|
|
1270
|
+
/** Event ID. */
|
|
1271
|
+
eventId: string;
|
|
1272
|
+
/**
|
|
1273
|
+
* If true, event will be copied as draft.
|
|
1274
|
+
* Otherwise copied event will be published, unless it is draft.
|
|
1275
|
+
*/
|
|
1276
|
+
draft?: boolean;
|
|
1277
|
+
}
|
|
1278
|
+
export interface CopyEventResponse {
|
|
1279
|
+
/** Copied event. */
|
|
1280
|
+
event?: Event;
|
|
1281
|
+
}
|
|
1282
|
+
export interface EventCopied {
|
|
1283
|
+
/** Event created timestamp in ISO UTC format. */
|
|
1284
|
+
timestamp?: Date;
|
|
1285
|
+
/** Event ID. */
|
|
1286
|
+
eventId?: string;
|
|
1287
|
+
/** Event location. */
|
|
1288
|
+
location?: Location;
|
|
1289
|
+
/** Event schedule configuration. */
|
|
1290
|
+
scheduleConfig?: ScheduleConfig;
|
|
1291
|
+
/** Event title. */
|
|
1292
|
+
title?: string;
|
|
1293
|
+
/** Event creator user ID. */
|
|
1294
|
+
userId?: string | null;
|
|
1295
|
+
/** Event status. */
|
|
1296
|
+
status?: EventStatus;
|
|
1297
|
+
/** Instance ID. Indicates the original app instance which current event was derived from. */
|
|
1298
|
+
derivedFromInstanceId?: string | null;
|
|
1299
|
+
/** Event ID. Indicates the original event which current event was derived from. */
|
|
1300
|
+
derivedFromEventId?: string | null;
|
|
1301
|
+
/**
|
|
1302
|
+
* Map of copied ticket definitions from original event.
|
|
1303
|
+
* Key represents ticket def id in the original event.
|
|
1304
|
+
* Value represents ticket def id in the newly created event.
|
|
1305
|
+
*/
|
|
1306
|
+
ticketDefinitions?: Record<string, string>;
|
|
1307
|
+
}
|
|
1308
|
+
export interface CopyEventV2Request {
|
|
1309
|
+
/** Event ID. */
|
|
1310
|
+
_id: string;
|
|
1311
|
+
/** Event data to update (partial) */
|
|
1312
|
+
event?: EventData;
|
|
1313
|
+
/**
|
|
1314
|
+
* Set of field paths to update.
|
|
1315
|
+
* <!--ONLY:REST-->
|
|
1316
|
+
* Fields will be auto-populated from the `event` entity unless added to the request explicitly.
|
|
1317
|
+
* <!--END:ONLY:REST-->
|
|
1318
|
+
* Behavior follows [google.protobuf.FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask) semantics.
|
|
1319
|
+
*/
|
|
1320
|
+
fields?: string[];
|
|
1321
|
+
/**
|
|
1322
|
+
* If true, event will be copied as draft.
|
|
1323
|
+
* Otherwise copied event will be published, unless it is draft.
|
|
1324
|
+
*/
|
|
1325
|
+
draft?: boolean;
|
|
1326
|
+
}
|
|
1327
|
+
export interface CopyEventV2Response {
|
|
1328
|
+
/** Copied event. */
|
|
1329
|
+
event?: Event;
|
|
1330
|
+
}
|
|
1331
|
+
export interface UpdateEventRequest {
|
|
1332
|
+
/** Event ID. */
|
|
1333
|
+
_id: string;
|
|
1334
|
+
/** Event data to update (partial) */
|
|
1335
|
+
event?: EventData;
|
|
1336
|
+
/**
|
|
1337
|
+
* Set of field paths to update.
|
|
1338
|
+
* <!--ONLY:REST-->
|
|
1339
|
+
* Fields will be auto-populated from the `event` entity unless added to the request explicitly.
|
|
1340
|
+
* <!--END:ONLY:REST-->
|
|
1341
|
+
* Behavior follows [google.protobuf.FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask) semantics.
|
|
1342
|
+
*/
|
|
1343
|
+
fields?: string[];
|
|
1344
|
+
/**
|
|
1345
|
+
* Content language code in ISO 639-1 format.
|
|
1346
|
+
* Used for translating ticket PDF labels, registration form, automatic emails, etc.
|
|
1347
|
+
* Supported languages: ar, bg, cs, da, de, el, en, es, fi, fr, he, hi, hu, id, it, ja, ko, ms, nl, no, pl, pt, ro, ru, sv, th, tl, tr, uk, zh.
|
|
1348
|
+
* Defaults to en.
|
|
1349
|
+
*/
|
|
1350
|
+
language?: string | null;
|
|
1351
|
+
}
|
|
1352
|
+
export interface UpdateEventResponse {
|
|
1353
|
+
/** Updated event. */
|
|
1354
|
+
event?: Event;
|
|
1355
|
+
}
|
|
1356
|
+
export interface EventUpdated {
|
|
1357
|
+
/** Event update timestamp in ISO UTC format. */
|
|
1358
|
+
timestamp?: Date;
|
|
1359
|
+
/** Event ID. */
|
|
1360
|
+
eventId?: string;
|
|
1361
|
+
/** Event location. */
|
|
1362
|
+
location?: Location;
|
|
1363
|
+
/** Event schedule configuration. */
|
|
1364
|
+
scheduleConfig?: ScheduleConfig;
|
|
1365
|
+
/** Event title. */
|
|
1366
|
+
title?: string;
|
|
1367
|
+
/** Whether schedule configuration was updated. */
|
|
1368
|
+
scheduleConfigUpdated?: boolean;
|
|
1369
|
+
}
|
|
1370
|
+
export interface PublishDraftEventRequest {
|
|
1371
|
+
/** Event ID. */
|
|
1372
|
+
_id: string;
|
|
1373
|
+
}
|
|
1374
|
+
export interface PublishDraftEventResponse {
|
|
1375
|
+
/** Published event. */
|
|
1376
|
+
event?: Event;
|
|
1377
|
+
}
|
|
1378
|
+
export interface CancelEventRequest {
|
|
1379
|
+
/** Event ID. */
|
|
1380
|
+
_id: string;
|
|
1381
|
+
}
|
|
1382
|
+
export interface CancelEventResponse {
|
|
1383
|
+
/** Canceled event. */
|
|
1384
|
+
event?: Event;
|
|
1385
|
+
}
|
|
1386
|
+
export interface EventCanceled {
|
|
1387
|
+
/** Event canceled timestamp in ISO UTC format. */
|
|
1388
|
+
timestamp?: Date;
|
|
1389
|
+
/** Event ID. */
|
|
1390
|
+
eventId?: string;
|
|
1391
|
+
/** Event title */
|
|
1392
|
+
title?: string;
|
|
1393
|
+
/** Event creator user ID. */
|
|
1394
|
+
userId?: string | null;
|
|
1395
|
+
}
|
|
1396
|
+
export interface BulkCancelEventsRequest {
|
|
1397
|
+
/** 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). */
|
|
1398
|
+
filter: Record<string, any> | null;
|
|
1399
|
+
}
|
|
1400
|
+
export interface BulkCancelEventsResponse {
|
|
1401
|
+
}
|
|
1402
|
+
export interface DeleteEventRequest {
|
|
1403
|
+
/** Event ID. */
|
|
1404
|
+
_id: string;
|
|
1405
|
+
}
|
|
1406
|
+
export interface DeleteEventResponse {
|
|
1407
|
+
/** Deleted event ID. */
|
|
1408
|
+
_id?: string;
|
|
1409
|
+
}
|
|
1410
|
+
export interface EventDeleted {
|
|
1411
|
+
/** Event deleted timestamp in ISO UTC format. */
|
|
1412
|
+
timestamp?: Date;
|
|
1413
|
+
/** Event ID. */
|
|
1414
|
+
eventId?: string;
|
|
1415
|
+
/** Event title. */
|
|
1416
|
+
title?: string;
|
|
1417
|
+
/** Event creator user ID. */
|
|
1418
|
+
userId?: string | null;
|
|
1419
|
+
}
|
|
1420
|
+
export interface BulkDeleteEventsRequest {
|
|
1421
|
+
/** 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). */
|
|
1422
|
+
filter: Record<string, any> | null;
|
|
1423
|
+
}
|
|
1424
|
+
export interface BulkDeleteEventsResponse {
|
|
1425
|
+
}
|
|
1426
|
+
export interface GetRecurringEventStateRequest {
|
|
1427
|
+
/** Recurring event category id. */
|
|
1428
|
+
categoryId?: string;
|
|
1429
|
+
}
|
|
1430
|
+
export interface GetRecurringEventStateResponse {
|
|
1431
|
+
/** Recurring event category id. */
|
|
1432
|
+
categoryId?: string | null;
|
|
1433
|
+
inconsistentState?: boolean;
|
|
1434
|
+
actual?: RecurringEventState;
|
|
1435
|
+
desired?: RecurringEventState;
|
|
1436
|
+
}
|
|
1437
|
+
export interface RecurringEventState {
|
|
1438
|
+
recurringNext?: RecurringEventDetails;
|
|
1439
|
+
recurringLastEnded?: RecurringEventDetails;
|
|
1440
|
+
recurringLastCanceled?: RecurringEventDetails;
|
|
1441
|
+
}
|
|
1442
|
+
export interface RecurringEventDetails {
|
|
1443
|
+
eventId?: string | null;
|
|
1444
|
+
/** Event slug */
|
|
1445
|
+
slug?: string | null;
|
|
1446
|
+
/** Event start timestamp. */
|
|
1447
|
+
startDate?: Date;
|
|
1448
|
+
/** Event end timestamp. */
|
|
1449
|
+
endDate?: Date;
|
|
1450
|
+
recurrenceStatus?: Status;
|
|
1451
|
+
}
|
|
1452
|
+
export interface UpdateRecurringStatusRequest {
|
|
1453
|
+
/** Recurring event category id. */
|
|
1454
|
+
categoryId?: string;
|
|
1455
|
+
}
|
|
1456
|
+
export interface UpdateRecurringStatusResponse {
|
|
1457
|
+
}
|
|
1458
|
+
/**
|
|
1459
|
+
* Retrieves a list of up to 1,000 events, given the provided [paging](https://dev.wix.com/api/rest/getting-started/pagination), [filtering and sorting](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
|
|
1460
|
+
* @public
|
|
1461
|
+
* @documentationMaturity preview
|
|
1462
|
+
*/
|
|
1463
|
+
export declare function query(options?: QueryOptions): Promise<QueryEventsResponse>;
|
|
1464
|
+
export interface QueryOptions {
|
|
1465
|
+
/** Number of items to skip. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
|
|
1466
|
+
offset?: number;
|
|
1467
|
+
/** Number of items to load per page. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
|
|
1468
|
+
limit?: number;
|
|
1469
|
+
/**
|
|
1470
|
+
* Controls which event properties are returned. See [Fieldset](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_event-fieldset).
|
|
1471
|
+
* Some fields require additional computation that affects latency.
|
|
1472
|
+
* Use minimum set of required fieldset for best performance.
|
|
1473
|
+
*/
|
|
1474
|
+
fieldset?: EventFieldset[];
|
|
1475
|
+
/** 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). */
|
|
1476
|
+
filter?: Record<string, any> | null;
|
|
1477
|
+
/**
|
|
1478
|
+
* Filter facets to include in the response.
|
|
1479
|
+
* See [supported facets](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
|
|
1480
|
+
*/
|
|
1481
|
+
facet?: string[];
|
|
1482
|
+
/** User ID filter, by default any */
|
|
1483
|
+
userId?: string[];
|
|
1484
|
+
/**
|
|
1485
|
+
* Sort order, defaults to `"created:asc"`.
|
|
1486
|
+
* See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
|
|
1487
|
+
*/
|
|
1488
|
+
sort?: string;
|
|
1489
|
+
/**
|
|
1490
|
+
* Whether draft events should be returned in the response.
|
|
1491
|
+
* Requires WIX_EVENTS.MANAGE_EVENTS permission.
|
|
1492
|
+
*/
|
|
1493
|
+
includeDrafts?: boolean;
|
|
1494
|
+
}
|
|
1495
|
+
/**
|
|
1496
|
+
* Retrieves a list of up to 1,000 events, given the provided paging, filtering and sorting.
|
|
1497
|
+
*
|
|
1498
|
+
* ** Important **:
|
|
1499
|
+
* - All results are for one specific business, resolved from the request context.
|
|
1500
|
+
*
|
|
1501
|
+
* Query object support:
|
|
1502
|
+
* - `filter` - supported, see [filtering and sorting](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
|
|
1503
|
+
* - `sort` - supported, see [filtering and sorting](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
|
|
1504
|
+
* - `paging` - supported, see [paging](https://dev.wix.com/api/rest/getting-started/pagination).
|
|
1505
|
+
* - `fields` - not supported.
|
|
1506
|
+
* - `fieldsets` - not supported, use request-level `fieldset` instead.
|
|
1507
|
+
* - `cursorPaging` - not supported, use offset pagination instead.
|
|
1508
|
+
*
|
|
1509
|
+
* Defaults:
|
|
1510
|
+
* - When filter is not specified, returns all events that caller is authorized to read.
|
|
1511
|
+
* - When sorting is not specified, defaults to `created` in `DESC` order.
|
|
1512
|
+
* @public
|
|
1513
|
+
* @documentationMaturity preview
|
|
1514
|
+
*/
|
|
1515
|
+
export declare function queryEventsV2(options?: QueryEventsV2Options): Promise<QueryEventsV2Response>;
|
|
1516
|
+
export interface QueryEventsV2Options {
|
|
1517
|
+
query?: QueryV2;
|
|
1518
|
+
/**
|
|
1519
|
+
* Controls which event properties are returned. See [Fieldset](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_event-fieldset).
|
|
1520
|
+
* Some fields require additional computation that affects latency.
|
|
1521
|
+
* Use minimum set of required fieldset for best performance.
|
|
1522
|
+
*/
|
|
1523
|
+
fieldset?: EventFieldset[];
|
|
1524
|
+
/**
|
|
1525
|
+
* Filter facets to include in the response.
|
|
1526
|
+
* See [supported facets](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
|
|
1527
|
+
*/
|
|
1528
|
+
facet?: string[];
|
|
1529
|
+
/**
|
|
1530
|
+
* Whether draft events should be returned in the response.
|
|
1531
|
+
* Requires WIX_EVENTS.MANAGE_EVENTS permission.
|
|
1532
|
+
*/
|
|
1533
|
+
includeDrafts?: boolean;
|
|
1534
|
+
}
|
|
1535
|
+
/**
|
|
1536
|
+
* Retrieves a list of up to 100 events, given the provided [paging](https://dev.wix.com/api/rest/getting-started/pagination), [filtering & sorting](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
|
|
1537
|
+
* @public
|
|
1538
|
+
* @documentationMaturity preview
|
|
1539
|
+
*/
|
|
1540
|
+
export declare function listEvents(options?: ListEventsOptions): Promise<ListEventsResponse>;
|
|
1541
|
+
export interface ListEventsOptions {
|
|
1542
|
+
/** Number of items to skip. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
|
|
1543
|
+
offset?: number;
|
|
1544
|
+
/** Number of items to load per page. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
|
|
1545
|
+
limit?: number;
|
|
1546
|
+
/**
|
|
1547
|
+
* Controls which event properties are returned. See [Fieldset](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_event-fieldset).
|
|
1548
|
+
* Some fields require additional computation that affects latency of the service.
|
|
1549
|
+
* Use minimum set of required fieldset for best performance.
|
|
1550
|
+
*/
|
|
1551
|
+
fieldset?: EventFieldset[];
|
|
1552
|
+
/** Event status. */
|
|
1553
|
+
status?: EventStatus[];
|
|
1554
|
+
/** Event URL slug. */
|
|
1555
|
+
slug?: string;
|
|
1556
|
+
/**
|
|
1557
|
+
* Filter facets to include in the response.
|
|
1558
|
+
* See [supported facets](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
|
|
1559
|
+
*/
|
|
1560
|
+
facet?: string[];
|
|
1561
|
+
/** User ID filter, by default any */
|
|
1562
|
+
userId?: string[];
|
|
1563
|
+
/**
|
|
1564
|
+
* Sort order, defaults to `"created:asc"`.
|
|
1565
|
+
* See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_list-query-events).
|
|
1566
|
+
*/
|
|
1567
|
+
sort?: string;
|
|
1568
|
+
/** Category filter. */
|
|
1569
|
+
categoryFilter?: CategoryFilter;
|
|
1570
|
+
/**
|
|
1571
|
+
* Whether draft events should be returned in the response.
|
|
1572
|
+
* Requires WIX_EVENTS.MANAGE_EVENTS permission.
|
|
1573
|
+
*/
|
|
1574
|
+
includeDrafts?: boolean;
|
|
1575
|
+
/** Recurrence status filter. */
|
|
1576
|
+
recurrenceStatus?: Status[];
|
|
1577
|
+
/** Recurring group id filter. */
|
|
1578
|
+
recurringGroupId?: string[];
|
|
1579
|
+
}
|
|
1580
|
+
/**
|
|
1581
|
+
* Retrieves a list of up to 100 events, given the provided [paging](https://dev.wix.com/api/rest/getting-started/pagination) and category_id.
|
|
1582
|
+
* Events are sorted by the sort index defined by CategoryManagement.
|
|
1583
|
+
* @param categoryId - Category ID
|
|
1584
|
+
* @public
|
|
1585
|
+
* @documentationMaturity preview
|
|
1586
|
+
* @requiredField categoryId
|
|
1587
|
+
*/
|
|
1588
|
+
export declare function listCategoryEvents(categoryId: string, options?: ListCategoryEventsOptions): Promise<ListCategoryEventsResponse>;
|
|
1589
|
+
export interface ListCategoryEventsOptions {
|
|
1590
|
+
paging?: Paging;
|
|
1591
|
+
/**
|
|
1592
|
+
* Controls which event properties are returned. See [Fieldset](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_event-fieldset).
|
|
1593
|
+
* Some fields require additional computation that affects latency of the service.
|
|
1594
|
+
* Use minimum set of required fieldset for best performance.
|
|
1595
|
+
*/
|
|
1596
|
+
fieldset?: EventFieldset[];
|
|
1597
|
+
}
|
|
1598
|
+
/**
|
|
1599
|
+
* Retrieves an event by ID or URL slug.
|
|
1600
|
+
* @public
|
|
1601
|
+
* @documentationMaturity preview
|
|
1602
|
+
* @requiredField GetEventRequest
|
|
1603
|
+
*/
|
|
1604
|
+
export declare function getEvent(options?: GetEventOptions): Promise<GetEventResponse>;
|
|
1605
|
+
export interface GetEventOptions {
|
|
1606
|
+
/** Event ID. */
|
|
1607
|
+
_id?: string | null;
|
|
1608
|
+
/** URL slug. */
|
|
1609
|
+
slug?: string | null;
|
|
1610
|
+
/**
|
|
1611
|
+
* Controls which event properties are returned. See [Fieldset](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_event-fieldset).
|
|
1612
|
+
* Some fields require additional computation that affects latency.
|
|
1613
|
+
* Use minimum set of required fieldset for best performance.
|
|
1614
|
+
*/
|
|
1615
|
+
fieldset?: EventFieldset[];
|
|
1616
|
+
}
|
|
1617
|
+
/**
|
|
1618
|
+
* Finds an event by ID or URL slug. In contrast to Get Event endpoint which returns not found error,
|
|
1619
|
+
* Find Event returns empty response when an event is not found.
|
|
1620
|
+
* @public
|
|
1621
|
+
* @documentationMaturity preview
|
|
1622
|
+
* @requiredField FindEventRequest
|
|
1623
|
+
*/
|
|
1624
|
+
export declare function findEvent(options?: FindEventOptions): Promise<FindEventResponse>;
|
|
1625
|
+
export interface FindEventOptions {
|
|
1626
|
+
/** Event ID. */
|
|
1627
|
+
_id?: string | null;
|
|
1628
|
+
/** URL slug. */
|
|
1629
|
+
slug?: string | null;
|
|
1630
|
+
/**
|
|
1631
|
+
* Controls which event properties are returned. See [Fieldset](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_event-fieldset).
|
|
1632
|
+
* Some fields require additional computation that affects latency.
|
|
1633
|
+
* Use minimum set of required fieldset for best performance.
|
|
1634
|
+
*/
|
|
1635
|
+
fieldset?: EventFieldset[];
|
|
1636
|
+
}
|
|
1637
|
+
/**
|
|
1638
|
+
* Creates a new event, with a default registration form in the given language.
|
|
1639
|
+
* Default registration form includes first name, last name, and email inputs.
|
|
1640
|
+
* To learn more about registration form and customize it, see [Registration Form](https://dev.wix.com/api/rest/wix-events/wix-events/registration-form/about-the-registration-form-api).
|
|
1641
|
+
* The event is automatically configured to send daily summary reports of new registrations to site business email.
|
|
1642
|
+
* RegistrationConfig.initialType is required - allowed value when creating is RSVP or TICKETS.
|
|
1643
|
+
* @param event - Event data.
|
|
1644
|
+
* @public
|
|
1645
|
+
* @documentationMaturity preview
|
|
1646
|
+
* @requiredField event
|
|
1647
|
+
* @requiredField event.location
|
|
1648
|
+
* @requiredField event.scheduleConfig
|
|
1649
|
+
* @requiredField event.title
|
|
1650
|
+
*/
|
|
1651
|
+
export declare function createEventV2(event: EventData, options?: CreateEventV2Options): Promise<CreateEventV2Response>;
|
|
1652
|
+
export interface CreateEventV2Options {
|
|
1653
|
+
/**
|
|
1654
|
+
* Content language code in ISO 639-1 format.
|
|
1655
|
+
* Used for translating ticket PDF labels, registration form, automatic emails, etc.
|
|
1656
|
+
* Supported languages: ar, bg, cs, da, de, el, en, es, fi, fr, he, hi, hu, id, it, ja, ko, ms, nl, no, pl, pt, ro, ru, sv, th, tl, tr, uk, zh.
|
|
1657
|
+
* Defaults to en.
|
|
1658
|
+
*/
|
|
1659
|
+
language?: string | null;
|
|
1660
|
+
/** Whether event should be created as draft. Draft events are hidden from site visitors. */
|
|
1661
|
+
draft?: boolean;
|
|
1662
|
+
}
|
|
1663
|
+
/**
|
|
1664
|
+
* Copies an event, including its registration form, notifications and tickets configuration - scheduled two weeks from the original event.
|
|
1665
|
+
* Multilingual translations are also copied to the new event.
|
|
1666
|
+
*
|
|
1667
|
+
* When an event with same title already exists, appends (1), (2), ... to it. For example, copying an event titled "My Event" creates "My Event (1)".
|
|
1668
|
+
* Very long event titles are cropped: "Daily stand-up ev... (2)".
|
|
1669
|
+
* @param eventId - Event ID.
|
|
1670
|
+
* @public
|
|
1671
|
+
* @documentationMaturity preview
|
|
1672
|
+
* @requiredField eventId
|
|
1673
|
+
*/
|
|
1674
|
+
export declare function copy(eventId: string, options?: CopyOptions): Promise<CopyEventResponse>;
|
|
1675
|
+
export interface CopyOptions {
|
|
1676
|
+
/**
|
|
1677
|
+
* If true, event will be copied as draft.
|
|
1678
|
+
* Otherwise copied event will be published, unless it is draft.
|
|
1679
|
+
*/
|
|
1680
|
+
draft?: boolean;
|
|
1681
|
+
}
|
|
1682
|
+
/**
|
|
1683
|
+
* Copies an event, including its registration form, notifications and tickets configuration - scheduled two weeks from the original event.
|
|
1684
|
+
* Multilingual translations are also copied to the new event.
|
|
1685
|
+
* Supports partial update of the original event fields. See [Partial Updates](https://dev.wix.com/api/rest/wix-events/wix-events/partial-updates) for more information.
|
|
1686
|
+
*
|
|
1687
|
+
* When an event with same title already exists, appends (1), (2), ... to it. For example, copying an event titled "My Event" creates "My Event (1)".
|
|
1688
|
+
* Very long event titles are cropped: "Daily stand-up ev... (2)".
|
|
1689
|
+
* @param _id - Event ID.
|
|
1690
|
+
* @public
|
|
1691
|
+
* @documentationMaturity preview
|
|
1692
|
+
* @requiredField _id
|
|
1693
|
+
*/
|
|
1694
|
+
export declare function copyEventV2(_id: string, options?: CopyEventV2Options): Promise<CopyEventV2Response>;
|
|
1695
|
+
export interface CopyEventV2Options {
|
|
1696
|
+
/** Event data to update (partial) */
|
|
1697
|
+
event?: EventData;
|
|
1698
|
+
/**
|
|
1699
|
+
* Set of field paths to update.
|
|
1700
|
+
* <!--ONLY:REST-->
|
|
1701
|
+
* Fields will be auto-populated from the `event` entity unless added to the request explicitly.
|
|
1702
|
+
* <!--END:ONLY:REST-->
|
|
1703
|
+
* Behavior follows [google.protobuf.FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask) semantics.
|
|
1704
|
+
*/
|
|
1705
|
+
fields?: string[];
|
|
1706
|
+
/**
|
|
1707
|
+
* If true, event will be copied as draft.
|
|
1708
|
+
* Otherwise copied event will be published, unless it is draft.
|
|
1709
|
+
*/
|
|
1710
|
+
draft?: boolean;
|
|
1711
|
+
}
|
|
1712
|
+
/**
|
|
1713
|
+
* Updates an event's parameters. See [Partial Updates](https://dev.wix.com/api/rest/wix-events/wix-events/partial-updates) for more information.
|
|
1714
|
+
* @param _id - Event ID.
|
|
1715
|
+
* @public
|
|
1716
|
+
* @documentationMaturity preview
|
|
1717
|
+
* @requiredField _id
|
|
1718
|
+
*/
|
|
1719
|
+
export declare function updateEvent(_id: string, options?: UpdateEventOptions): Promise<UpdateEventResponse>;
|
|
1720
|
+
export interface UpdateEventOptions {
|
|
1721
|
+
/** Event data to update (partial) */
|
|
1722
|
+
event?: EventData;
|
|
1723
|
+
/**
|
|
1724
|
+
* Set of field paths to update.
|
|
1725
|
+
* <!--ONLY:REST-->
|
|
1726
|
+
* Fields will be auto-populated from the `event` entity unless added to the request explicitly.
|
|
1727
|
+
* <!--END:ONLY:REST-->
|
|
1728
|
+
* Behavior follows [google.protobuf.FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask) semantics.
|
|
1729
|
+
*/
|
|
1730
|
+
fields?: string[];
|
|
1731
|
+
/**
|
|
1732
|
+
* Content language code in ISO 639-1 format.
|
|
1733
|
+
* Used for translating ticket PDF labels, registration form, automatic emails, etc.
|
|
1734
|
+
* Supported languages: ar, bg, cs, da, de, el, en, es, fi, fr, he, hi, hu, id, it, ja, ko, ms, nl, no, pl, pt, ro, ru, sv, th, tl, tr, uk, zh.
|
|
1735
|
+
* Defaults to en.
|
|
1736
|
+
*/
|
|
1737
|
+
language?: string | null;
|
|
1738
|
+
}
|
|
1739
|
+
/**
|
|
1740
|
+
* Publishes draft event so that it becomes available to site visitors.
|
|
1741
|
+
* If recurring events are set, category with state RECURRING_EVENT will be created.
|
|
1742
|
+
* All recurring events will be assigned to this category.
|
|
1743
|
+
* @param _id - Event ID.
|
|
1744
|
+
* @public
|
|
1745
|
+
* @documentationMaturity preview
|
|
1746
|
+
* @requiredField _id
|
|
1747
|
+
*/
|
|
1748
|
+
export declare function publishDraftEvent(_id: string): Promise<PublishDraftEventResponse>;
|
|
1749
|
+
/**
|
|
1750
|
+
* Cancels an event and closes registration.
|
|
1751
|
+
* If event cancellation notifications are enabled, canceling an event automatically sends cancellation emails and/or push notifications to registered guests.
|
|
1752
|
+
* @param _id - Event ID.
|
|
1753
|
+
* @public
|
|
1754
|
+
* @documentationMaturity preview
|
|
1755
|
+
* @requiredField _id
|
|
1756
|
+
*/
|
|
1757
|
+
export declare function cancelEvent(_id: string): Promise<CancelEventResponse>;
|
|
1758
|
+
/**
|
|
1759
|
+
* Cancels events by filter.
|
|
1760
|
+
* If event cancellation notifications are enabled, canceling an event automatically sends cancellation emails and/or push notifications to registered guests.
|
|
1761
|
+
* @param filter - 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).
|
|
1762
|
+
* @public
|
|
1763
|
+
* @documentationMaturity preview
|
|
1764
|
+
* @requiredField filter
|
|
1765
|
+
*/
|
|
1766
|
+
export declare function bulkCancelEvents(filter: Record<string, any> | null): Promise<void>;
|
|
1767
|
+
/**
|
|
1768
|
+
* Deletes an event.
|
|
1769
|
+
* Deleted events are not returned via API. The only way to retrieve them is via GDPR access request.
|
|
1770
|
+
* @param _id - Event ID.
|
|
1771
|
+
* @public
|
|
1772
|
+
* @documentationMaturity preview
|
|
1773
|
+
* @requiredField _id
|
|
1774
|
+
*/
|
|
1775
|
+
export declare function deleteEvent(_id: string): Promise<DeleteEventResponse>;
|
|
1776
|
+
/**
|
|
1777
|
+
* Deletes events by filter.
|
|
1778
|
+
* Deleted events are not returned via API. The only way to retrieve them is via GDPR access request.
|
|
1779
|
+
* @param filter - 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).
|
|
1780
|
+
* @public
|
|
1781
|
+
* @documentationMaturity preview
|
|
1782
|
+
* @requiredField filter
|
|
1783
|
+
*/
|
|
1784
|
+
export declare function bulkDeleteEvents(filter: Record<string, any> | null): Promise<void>;
|