@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,657 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* The form defines which elements are rendered in the Wix UI during the registration process (RSVP or checkout).
|
|
3
|
+
* It also contains customizable messages and labels.
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* A form is an ordered list of controls (blocks), which accept guest information into a field input.
|
|
7
|
+
*
|
|
8
|
+
* Each control contains one or more nested inputs. For example, `Name` control has two inputs:
|
|
9
|
+
* - First Name
|
|
10
|
+
* - Last Name
|
|
11
|
+
*
|
|
12
|
+
* By default, name and email controls are always required and are pinned to the top of the form.
|
|
13
|
+
*/
|
|
14
|
+
export interface Form {
|
|
15
|
+
/** Nested fields as an ordered list. */
|
|
16
|
+
controls?: InputControl[];
|
|
17
|
+
/** Set of configured form messages. */
|
|
18
|
+
messages?: FormMessages;
|
|
19
|
+
}
|
|
20
|
+
/**
|
|
21
|
+
* A block of nested fields.
|
|
22
|
+
* Used to aggregate similar inputs like First Name and Last Name.
|
|
23
|
+
*/
|
|
24
|
+
export interface InputControl {
|
|
25
|
+
/** Field control type. */
|
|
26
|
+
type?: InputControlType;
|
|
27
|
+
/** Whether control is mandatory (such as name & email). When true, only label can be changed. */
|
|
28
|
+
system?: boolean;
|
|
29
|
+
/** Deprecated: Use `id`. */
|
|
30
|
+
name?: string;
|
|
31
|
+
/** Child inputs. */
|
|
32
|
+
inputs?: Input[];
|
|
33
|
+
/** Deprecated: use `inputs.label`. */
|
|
34
|
+
label?: string;
|
|
35
|
+
/** Field controls are sorted by this value in ascending order. */
|
|
36
|
+
orderIndex?: number;
|
|
37
|
+
/** Unique control ID. */
|
|
38
|
+
id?: string;
|
|
39
|
+
}
|
|
40
|
+
export declare enum InputControlType {
|
|
41
|
+
/** Single text value field. */
|
|
42
|
+
INPUT = "INPUT",
|
|
43
|
+
/** Single text value field. */
|
|
44
|
+
TEXTAREA = "TEXTAREA",
|
|
45
|
+
/** Single-choice field of predefined values. */
|
|
46
|
+
DROPDOWN = "DROPDOWN",
|
|
47
|
+
/** Single-choice field of predefined values. */
|
|
48
|
+
RADIO = "RADIO",
|
|
49
|
+
/** Multiple-choice field of predefined values. */
|
|
50
|
+
CHECKBOX = "CHECKBOX",
|
|
51
|
+
/** First and last name fields. */
|
|
52
|
+
NAME = "NAME",
|
|
53
|
+
/** Additional guests and respective guest names fields. */
|
|
54
|
+
GUEST_CONTROL = "GUEST_CONTROL",
|
|
55
|
+
/** Single-line address field. */
|
|
56
|
+
ADDRESS_SHORT = "ADDRESS_SHORT",
|
|
57
|
+
/** Full address field. */
|
|
58
|
+
ADDRESS_FULL = "ADDRESS_FULL",
|
|
59
|
+
/** Year, month and day fields. */
|
|
60
|
+
DATE = "DATE"
|
|
61
|
+
}
|
|
62
|
+
/** An input of one or multiple text values */
|
|
63
|
+
export interface Input {
|
|
64
|
+
/** Field name. */
|
|
65
|
+
name?: string;
|
|
66
|
+
/** Deprecated: use `ValueType.TEXT_ARRAY`. */
|
|
67
|
+
array?: boolean;
|
|
68
|
+
/** Main field label */
|
|
69
|
+
label?: string;
|
|
70
|
+
/** Additional labels for multi-valued fields such as address. */
|
|
71
|
+
additionalLabels?: Record<string, string>;
|
|
72
|
+
/** Predefined choice options for fields, such as dropdown. */
|
|
73
|
+
options?: string[];
|
|
74
|
+
/** Whether field is mandatory. */
|
|
75
|
+
mandatory?: boolean;
|
|
76
|
+
/** Maximum number of accepted characters (relevant for text fields). */
|
|
77
|
+
maxLength?: number;
|
|
78
|
+
/**
|
|
79
|
+
* Type which determines field format.
|
|
80
|
+
* Used to validate submitted response.
|
|
81
|
+
*/
|
|
82
|
+
type?: ValueType;
|
|
83
|
+
/**
|
|
84
|
+
* A maximum accepted values for array input.
|
|
85
|
+
* Only applicable for inputs of valueType: TEXT_ARRAY.
|
|
86
|
+
*/
|
|
87
|
+
maxSize?: number | null;
|
|
88
|
+
/**
|
|
89
|
+
* Preselected option.
|
|
90
|
+
* Currently only applicable for dropdown.
|
|
91
|
+
*/
|
|
92
|
+
defaultOptionSelection?: OptionSelection;
|
|
93
|
+
/**
|
|
94
|
+
* Additional labels for multi-valued fields such as address.
|
|
95
|
+
* @readonly
|
|
96
|
+
*/
|
|
97
|
+
labels?: Label[];
|
|
98
|
+
}
|
|
99
|
+
export declare enum ValueType {
|
|
100
|
+
TEXT = "TEXT",
|
|
101
|
+
NUMBER = "NUMBER",
|
|
102
|
+
TEXT_ARRAY = "TEXT_ARRAY",
|
|
103
|
+
DATE_TIME = "DATE_TIME",
|
|
104
|
+
ADDRESS = "ADDRESS"
|
|
105
|
+
}
|
|
106
|
+
/**
|
|
107
|
+
* Describes initially selected option when an input has multiple choices.
|
|
108
|
+
* Defaults to first (0th) option if not configured.
|
|
109
|
+
*/
|
|
110
|
+
export interface OptionSelection extends OptionSelectionSelectedOptionOneOf {
|
|
111
|
+
/** 0-based index from predefined `input.options` which is selected initially. */
|
|
112
|
+
optionIndex?: number;
|
|
113
|
+
/**
|
|
114
|
+
* Placeholder hint describing expected choices (such as "Please select").
|
|
115
|
+
* Considered an empty choice.
|
|
116
|
+
*/
|
|
117
|
+
placeholderText?: string;
|
|
118
|
+
}
|
|
119
|
+
/** @oneof */
|
|
120
|
+
export interface OptionSelectionSelectedOptionOneOf {
|
|
121
|
+
/** 0-based index from predefined `input.options` which is selected initially. */
|
|
122
|
+
optionIndex?: number;
|
|
123
|
+
/**
|
|
124
|
+
* Placeholder hint describing expected choices (such as "Please select").
|
|
125
|
+
* Considered an empty choice.
|
|
126
|
+
*/
|
|
127
|
+
placeholderText?: string;
|
|
128
|
+
}
|
|
129
|
+
export interface Label {
|
|
130
|
+
/** Field name. */
|
|
131
|
+
name?: string;
|
|
132
|
+
/** Field label. */
|
|
133
|
+
label?: string;
|
|
134
|
+
}
|
|
135
|
+
/**
|
|
136
|
+
* Defines form messages shown in UI before, during, and after registration flow.
|
|
137
|
+
* It enables configuration of form titles, response labels, "thank you" messages, and call-to-action texts.
|
|
138
|
+
*/
|
|
139
|
+
export interface FormMessages {
|
|
140
|
+
/** RSVP form messages. */
|
|
141
|
+
rsvp?: RsvpFormMessages;
|
|
142
|
+
/** Checkout form messages. */
|
|
143
|
+
checkout?: CheckoutFormMessages;
|
|
144
|
+
/** Messages shown when event registration is closed. */
|
|
145
|
+
registrationClosed?: RegistrationClosedMessages;
|
|
146
|
+
/** Messages shown when event tickets are unavailable. */
|
|
147
|
+
ticketsUnavailable?: TicketsUnavailableMessages;
|
|
148
|
+
}
|
|
149
|
+
export interface RsvpFormMessages {
|
|
150
|
+
/** Label text indicating RSVP `YES` response. */
|
|
151
|
+
rsvpYesOption?: string;
|
|
152
|
+
/** Label text indicating RSVP `NO` response. */
|
|
153
|
+
rsvpNoOption?: string;
|
|
154
|
+
/** Messages shown for RSVP = `YES`. */
|
|
155
|
+
positiveMessages?: Positive;
|
|
156
|
+
/** Messages shown for RSVP = `WAITING` (when event is full and waitlist is available). */
|
|
157
|
+
waitlistMessages?: Positive;
|
|
158
|
+
/** Messages shown for RSVP = `NO`. */
|
|
159
|
+
negativeMessages?: Negative;
|
|
160
|
+
/** "Submit form" call-to-action label text. */
|
|
161
|
+
submitActionLabel?: string;
|
|
162
|
+
}
|
|
163
|
+
/** Confirmation messages shown after registration. */
|
|
164
|
+
export interface PositiveResponseConfirmation {
|
|
165
|
+
/** Confirmation message title. */
|
|
166
|
+
title?: string;
|
|
167
|
+
/** Confirmation message text. */
|
|
168
|
+
message?: string;
|
|
169
|
+
/** "Add to calendar" call-to-action label text. */
|
|
170
|
+
addToCalendarActionLabel?: string;
|
|
171
|
+
/** "Share event" call-to-action label text. */
|
|
172
|
+
shareActionLabel?: string;
|
|
173
|
+
}
|
|
174
|
+
/** Confirmation messages shown after registration. */
|
|
175
|
+
export interface ResponseConfirmation {
|
|
176
|
+
/** Confirmation message title. */
|
|
177
|
+
title?: string;
|
|
178
|
+
/** "Share event" call-to-action label text. */
|
|
179
|
+
shareActionLabel?: string;
|
|
180
|
+
}
|
|
181
|
+
/** Set of messages shown during registration when RSVP response is positive. */
|
|
182
|
+
export interface Positive {
|
|
183
|
+
/** Main form title for positive response. */
|
|
184
|
+
title?: string;
|
|
185
|
+
/** Confirmation messages shown after registration. */
|
|
186
|
+
confirmation?: PositiveResponseConfirmation;
|
|
187
|
+
}
|
|
188
|
+
/** A set of messages shown during registration with negative response */
|
|
189
|
+
export interface Negative {
|
|
190
|
+
/** Main form title for negative response. */
|
|
191
|
+
title?: string;
|
|
192
|
+
/** Confirmation messages shown after registration. */
|
|
193
|
+
confirmation?: ResponseConfirmation;
|
|
194
|
+
}
|
|
195
|
+
export interface CheckoutFormMessages {
|
|
196
|
+
/** Main form title for response. */
|
|
197
|
+
title?: string;
|
|
198
|
+
/** Submit form call-to-action label text. */
|
|
199
|
+
submitActionLabel?: string;
|
|
200
|
+
}
|
|
201
|
+
export interface RegistrationClosedMessages {
|
|
202
|
+
/** Message shown when event registration is closed. */
|
|
203
|
+
message?: string;
|
|
204
|
+
/** "Explore other events" call-to-action label text. */
|
|
205
|
+
exploreEventsActionLabel?: string;
|
|
206
|
+
}
|
|
207
|
+
export interface TicketsUnavailableMessages {
|
|
208
|
+
/** Message shown when event tickets are unavailable. */
|
|
209
|
+
message?: string;
|
|
210
|
+
/** "Explore other events" call-to-action label text. */
|
|
211
|
+
exploreEventsActionLabel?: string;
|
|
212
|
+
}
|
|
213
|
+
export interface FormInputControlAdded {
|
|
214
|
+
/** Event ID. */
|
|
215
|
+
eventId?: string;
|
|
216
|
+
/** Input control. */
|
|
217
|
+
inputControl?: InputControl;
|
|
218
|
+
}
|
|
219
|
+
export interface FormInputControlUpdated {
|
|
220
|
+
/** Event ID. */
|
|
221
|
+
eventId?: string;
|
|
222
|
+
/** Input control. */
|
|
223
|
+
updatedInputControl?: InputControl;
|
|
224
|
+
}
|
|
225
|
+
export interface FormInputControlDeleted {
|
|
226
|
+
/** Event ID. */
|
|
227
|
+
eventId?: string;
|
|
228
|
+
/** Input control. */
|
|
229
|
+
deletedInputControl?: InputControl;
|
|
230
|
+
}
|
|
231
|
+
export interface GetFormRequest {
|
|
232
|
+
/** Event ID. */
|
|
233
|
+
eventId: string;
|
|
234
|
+
}
|
|
235
|
+
export interface GetFormResponse {
|
|
236
|
+
/**
|
|
237
|
+
* Currently published event form.
|
|
238
|
+
* Published form is visible to site visitors.
|
|
239
|
+
*/
|
|
240
|
+
form?: Form;
|
|
241
|
+
/**
|
|
242
|
+
* Draft event form.
|
|
243
|
+
* Not available to visitors unless published.
|
|
244
|
+
*/
|
|
245
|
+
draftForm?: Form;
|
|
246
|
+
}
|
|
247
|
+
export interface AddControlRequest extends AddControlRequestControlOneOf {
|
|
248
|
+
/** Event ID. */
|
|
249
|
+
eventId: string;
|
|
250
|
+
/** Phone number input control. */
|
|
251
|
+
phone?: PhoneControl;
|
|
252
|
+
/** Single-line or full address input control. */
|
|
253
|
+
address?: AddressControl;
|
|
254
|
+
/** Day, month, year date input control. */
|
|
255
|
+
date?: DateControl;
|
|
256
|
+
/** Additional guests input control. */
|
|
257
|
+
additionalGuests?: AdditionalGuestsControl;
|
|
258
|
+
/** Single-choice dropdown style input control. */
|
|
259
|
+
dropdown?: DropdownControl;
|
|
260
|
+
/** Multiple-choice checkbox style input control. */
|
|
261
|
+
checkbox?: CheckboxControl;
|
|
262
|
+
/** Free-form text input control. */
|
|
263
|
+
text?: TextControl;
|
|
264
|
+
/** Single-choice radio button style input control. */
|
|
265
|
+
radioButton?: RadioButtonControl;
|
|
266
|
+
}
|
|
267
|
+
/** @oneof */
|
|
268
|
+
export interface AddControlRequestControlOneOf {
|
|
269
|
+
/** Phone number input control. */
|
|
270
|
+
phone?: PhoneControl;
|
|
271
|
+
/** Single-line or full address input control. */
|
|
272
|
+
address?: AddressControl;
|
|
273
|
+
/** Day, month, year date input control. */
|
|
274
|
+
date?: DateControl;
|
|
275
|
+
/** Additional guests input control. */
|
|
276
|
+
additionalGuests?: AdditionalGuestsControl;
|
|
277
|
+
/** Single-choice dropdown style input control. */
|
|
278
|
+
dropdown?: DropdownControl;
|
|
279
|
+
/** Multiple-choice checkbox style input control. */
|
|
280
|
+
checkbox?: CheckboxControl;
|
|
281
|
+
/** Free-form text input control. */
|
|
282
|
+
text?: TextControl;
|
|
283
|
+
/** Single-choice radio button style input control. */
|
|
284
|
+
radioButton?: RadioButtonControl;
|
|
285
|
+
}
|
|
286
|
+
export interface PhoneControl {
|
|
287
|
+
/** Phone input label. */
|
|
288
|
+
label?: string;
|
|
289
|
+
/** Whether phone input is required. */
|
|
290
|
+
mandatory?: boolean;
|
|
291
|
+
}
|
|
292
|
+
export interface AddressControl {
|
|
293
|
+
/** Address control labels for each input. */
|
|
294
|
+
labels?: AddressControlLabels;
|
|
295
|
+
/** Whether address is multi-line (consisting of multiple fields such as country, city, postal code). When false, address is single-line. */
|
|
296
|
+
full?: boolean;
|
|
297
|
+
/** Whether address input is required. */
|
|
298
|
+
mandatory?: boolean;
|
|
299
|
+
}
|
|
300
|
+
export interface AddressControlLabels {
|
|
301
|
+
/** Single-line address input label. */
|
|
302
|
+
addressLine?: string;
|
|
303
|
+
/** Country input label. */
|
|
304
|
+
country?: string;
|
|
305
|
+
/** Subdivision input label. */
|
|
306
|
+
subdivision?: string;
|
|
307
|
+
/** City input label. */
|
|
308
|
+
city?: string;
|
|
309
|
+
/** Postal code input label. */
|
|
310
|
+
postalCode?: string;
|
|
311
|
+
/** Street address input label. */
|
|
312
|
+
streetAddress?: string;
|
|
313
|
+
}
|
|
314
|
+
export interface DateControl {
|
|
315
|
+
/** Input control label. */
|
|
316
|
+
label?: string;
|
|
317
|
+
/** Whether date input is required */
|
|
318
|
+
mandatory?: boolean;
|
|
319
|
+
}
|
|
320
|
+
export interface AdditionalGuestsControl {
|
|
321
|
+
/** Additional guests control labels for each input. */
|
|
322
|
+
labels?: Labels;
|
|
323
|
+
/** Whether individual guest names are required. */
|
|
324
|
+
namesMandatory?: boolean;
|
|
325
|
+
/** Maximum number of additional guests. */
|
|
326
|
+
maxGuests?: number;
|
|
327
|
+
}
|
|
328
|
+
export interface Labels {
|
|
329
|
+
/** Input label for a single guest. */
|
|
330
|
+
single?: string;
|
|
331
|
+
/** Input label for multiple guests. */
|
|
332
|
+
multiple?: string;
|
|
333
|
+
}
|
|
334
|
+
export interface DropdownControl {
|
|
335
|
+
/** Input control label. */
|
|
336
|
+
label?: string;
|
|
337
|
+
/** Predefined options guests can choose from. */
|
|
338
|
+
options?: string[];
|
|
339
|
+
/** Whether choice is required. */
|
|
340
|
+
mandatory?: boolean;
|
|
341
|
+
/** Preselected option. */
|
|
342
|
+
defaultOptionSelection?: OptionSelection;
|
|
343
|
+
}
|
|
344
|
+
export interface RadioButtonControl {
|
|
345
|
+
/** Input control label. */
|
|
346
|
+
label?: string;
|
|
347
|
+
/** Predefined options guests can choose from. */
|
|
348
|
+
options?: string[];
|
|
349
|
+
}
|
|
350
|
+
export interface CheckboxControl {
|
|
351
|
+
/** Input control label. */
|
|
352
|
+
label?: string;
|
|
353
|
+
/** Whether at least one checkbox is required. */
|
|
354
|
+
mandatory?: boolean;
|
|
355
|
+
/** Predefined options guests can choose from. */
|
|
356
|
+
options?: string[];
|
|
357
|
+
}
|
|
358
|
+
export interface TextControl {
|
|
359
|
+
/** Input control label. */
|
|
360
|
+
label?: string;
|
|
361
|
+
/** Whether text input is required. */
|
|
362
|
+
mandatory?: boolean;
|
|
363
|
+
/** Maximum number of characters allowed. */
|
|
364
|
+
maxLength?: number;
|
|
365
|
+
/** Whether input control should allow multiple lines in text. */
|
|
366
|
+
multiLine?: boolean;
|
|
367
|
+
/** Whether input control should be displayed as a comment. */
|
|
368
|
+
comment?: boolean;
|
|
369
|
+
}
|
|
370
|
+
export interface AddControlResponse {
|
|
371
|
+
/** Generated unique input control ID. */
|
|
372
|
+
id?: string;
|
|
373
|
+
/** Modified draft event form. */
|
|
374
|
+
form?: Form;
|
|
375
|
+
}
|
|
376
|
+
export interface UpdateControlRequest extends UpdateControlRequestControlOneOf {
|
|
377
|
+
/** Event ID. */
|
|
378
|
+
eventId: string;
|
|
379
|
+
/** Unique input control ID. */
|
|
380
|
+
id: string;
|
|
381
|
+
/** Index used to sort input controls in ascending order. */
|
|
382
|
+
orderIndex?: number;
|
|
383
|
+
/** Phone number input control. */
|
|
384
|
+
phone?: PhoneControl;
|
|
385
|
+
/** Single-line or full address input control. */
|
|
386
|
+
address?: AddressControl;
|
|
387
|
+
/** Day, month, year date input control. */
|
|
388
|
+
date?: DateControl;
|
|
389
|
+
/** Additional guests input control. */
|
|
390
|
+
additionalGuests?: AdditionalGuestsControl;
|
|
391
|
+
/** Single-choice dropdown style input control. */
|
|
392
|
+
dropdown?: DropdownControl;
|
|
393
|
+
/** Multiple-choice checkbox style input control. */
|
|
394
|
+
checkbox?: CheckboxControl;
|
|
395
|
+
/** Free-form text input control. */
|
|
396
|
+
text?: TextControl;
|
|
397
|
+
/** Main guest name input control. */
|
|
398
|
+
name?: NameControl;
|
|
399
|
+
/** Main guest email input control. */
|
|
400
|
+
email?: EmailControl;
|
|
401
|
+
/** Single-choice radio style input control. */
|
|
402
|
+
radioButton?: RadioButtonControl;
|
|
403
|
+
}
|
|
404
|
+
/** @oneof */
|
|
405
|
+
export interface UpdateControlRequestControlOneOf {
|
|
406
|
+
/** Phone number input control. */
|
|
407
|
+
phone?: PhoneControl;
|
|
408
|
+
/** Single-line or full address input control. */
|
|
409
|
+
address?: AddressControl;
|
|
410
|
+
/** Day, month, year date input control. */
|
|
411
|
+
date?: DateControl;
|
|
412
|
+
/** Additional guests input control. */
|
|
413
|
+
additionalGuests?: AdditionalGuestsControl;
|
|
414
|
+
/** Single-choice dropdown style input control. */
|
|
415
|
+
dropdown?: DropdownControl;
|
|
416
|
+
/** Multiple-choice checkbox style input control. */
|
|
417
|
+
checkbox?: CheckboxControl;
|
|
418
|
+
/** Free-form text input control. */
|
|
419
|
+
text?: TextControl;
|
|
420
|
+
/** Main guest name input control. */
|
|
421
|
+
name?: NameControl;
|
|
422
|
+
/** Main guest email input control. */
|
|
423
|
+
email?: EmailControl;
|
|
424
|
+
/** Single-choice radio style input control. */
|
|
425
|
+
radioButton?: RadioButtonControl;
|
|
426
|
+
}
|
|
427
|
+
export interface NameControl {
|
|
428
|
+
/** Name control labels of each input */
|
|
429
|
+
labels?: NameControlLabels;
|
|
430
|
+
}
|
|
431
|
+
export interface NameControlLabels {
|
|
432
|
+
/** First name input label */
|
|
433
|
+
firstName?: string;
|
|
434
|
+
/** Last name input label */
|
|
435
|
+
lastName?: string;
|
|
436
|
+
}
|
|
437
|
+
export interface EmailControl {
|
|
438
|
+
/** Email input label. */
|
|
439
|
+
label?: string;
|
|
440
|
+
}
|
|
441
|
+
export interface UpdateControlResponse {
|
|
442
|
+
/** Modified draft event form. */
|
|
443
|
+
form?: Form;
|
|
444
|
+
}
|
|
445
|
+
export interface DeleteControlRequest {
|
|
446
|
+
/** Event ID. */
|
|
447
|
+
eventId: string;
|
|
448
|
+
/** Unique input control ID. */
|
|
449
|
+
id: string;
|
|
450
|
+
}
|
|
451
|
+
export interface DeleteControlResponse {
|
|
452
|
+
/** Modified draft event form */
|
|
453
|
+
form?: Form;
|
|
454
|
+
}
|
|
455
|
+
export interface UpdateMessagesRequest {
|
|
456
|
+
/** Event ID. */
|
|
457
|
+
eventId: string;
|
|
458
|
+
/**
|
|
459
|
+
* Set of field paths, specifying which parts of this resource to update.
|
|
460
|
+
* When fields are empty, request is interpreted as full update.
|
|
461
|
+
* Behavior follows [google.protobuf.FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask) semantics.
|
|
462
|
+
*/
|
|
463
|
+
fields: string[];
|
|
464
|
+
/** Set of configured form messages. */
|
|
465
|
+
messages?: FormMessages;
|
|
466
|
+
}
|
|
467
|
+
export interface UpdateMessagesResponse {
|
|
468
|
+
/** Modified draft event form. */
|
|
469
|
+
form?: Form;
|
|
470
|
+
}
|
|
471
|
+
export interface PublishDraftRequest {
|
|
472
|
+
/** Event ID. */
|
|
473
|
+
eventId: string;
|
|
474
|
+
}
|
|
475
|
+
export interface PublishDraftResponse {
|
|
476
|
+
/** Published event form. */
|
|
477
|
+
form?: Form;
|
|
478
|
+
}
|
|
479
|
+
export interface EventUpdated {
|
|
480
|
+
/** Event update timestamp in ISO UTC format. */
|
|
481
|
+
timestamp?: Date;
|
|
482
|
+
/** Event ID. */
|
|
483
|
+
eventId?: string;
|
|
484
|
+
/** Event location. */
|
|
485
|
+
location?: Location;
|
|
486
|
+
/** Event schedule configuration. */
|
|
487
|
+
scheduleConfig?: ScheduleConfig;
|
|
488
|
+
/** Event title. */
|
|
489
|
+
title?: string;
|
|
490
|
+
/** Whether schedule configuration was updated. */
|
|
491
|
+
scheduleConfigUpdated?: boolean;
|
|
492
|
+
}
|
|
493
|
+
export interface Location {
|
|
494
|
+
/** Location name. */
|
|
495
|
+
name?: string | null;
|
|
496
|
+
/** Location map coordinates. */
|
|
497
|
+
coordinates?: MapCoordinates;
|
|
498
|
+
/** Single line address representation. */
|
|
499
|
+
address?: string | null;
|
|
500
|
+
/** Location type. */
|
|
501
|
+
type?: LocationType;
|
|
502
|
+
/**
|
|
503
|
+
* Full address derived from formatted single line `address`.
|
|
504
|
+
* When `full_address` is used to create or update the event, deprecated `address` and `coordinates` are ignored.
|
|
505
|
+
* If provided `full_address` has empty `formatted_address` or `coordinates`, it will be auto-completed using Atlas service.
|
|
506
|
+
*
|
|
507
|
+
* Migration notes:
|
|
508
|
+
* - `full_address.formatted_address` is equivalent to `address`.
|
|
509
|
+
* - `full_address.geocode` is equivalent to `coordinates`.
|
|
510
|
+
*/
|
|
511
|
+
fullAddress?: Address;
|
|
512
|
+
/**
|
|
513
|
+
* Defines event location as TBD (To Be Determined).
|
|
514
|
+
* When event location is not yet defined, `name` is displayed instead of location address.
|
|
515
|
+
* `coordinates`, `address`, `type` and `full_address` are not required when location is TBD.
|
|
516
|
+
*/
|
|
517
|
+
tbd?: boolean | null;
|
|
518
|
+
}
|
|
519
|
+
export interface MapCoordinates {
|
|
520
|
+
/** Latitude. */
|
|
521
|
+
lat?: number;
|
|
522
|
+
/** Longitude. */
|
|
523
|
+
lng?: number;
|
|
524
|
+
}
|
|
525
|
+
export declare enum LocationType {
|
|
526
|
+
VENUE = "VENUE",
|
|
527
|
+
ONLINE = "ONLINE"
|
|
528
|
+
}
|
|
529
|
+
/** Physical address */
|
|
530
|
+
export interface Address extends AddressStreetOneOf {
|
|
531
|
+
/** country code */
|
|
532
|
+
country?: string | null;
|
|
533
|
+
/** subdivision (usually state or region) code according to ISO 3166-2 */
|
|
534
|
+
subdivision?: string | null;
|
|
535
|
+
/** city name */
|
|
536
|
+
city?: string | null;
|
|
537
|
+
/** zip/postal code */
|
|
538
|
+
postalCode?: string | null;
|
|
539
|
+
/** Free text providing more detailed address info. Usually contains Apt, Suite, Floor */
|
|
540
|
+
addressLine2?: string | null;
|
|
541
|
+
/** A string containing the human-readable address of this location */
|
|
542
|
+
formattedAddress?: string | null;
|
|
543
|
+
/** Free text for human-to-human textual orientation aid purposes */
|
|
544
|
+
hint?: string | null;
|
|
545
|
+
/** coordinates of the physical address */
|
|
546
|
+
geocode?: AddressLocation;
|
|
547
|
+
/** country full-name */
|
|
548
|
+
countryFullname?: string | null;
|
|
549
|
+
/** multi-level subdivisions from top to bottom */
|
|
550
|
+
subdivisions?: Subdivision[];
|
|
551
|
+
/** a break down of the street to number and street name */
|
|
552
|
+
streetAddress?: StreetAddress;
|
|
553
|
+
/** Main address line (usually street and number) as free text */
|
|
554
|
+
addressLine?: string | null;
|
|
555
|
+
}
|
|
556
|
+
/** @oneof */
|
|
557
|
+
export interface AddressStreetOneOf {
|
|
558
|
+
/** a break down of the street to number and street name */
|
|
559
|
+
streetAddress?: StreetAddress;
|
|
560
|
+
/** Main address line (usually street and number) as free text */
|
|
561
|
+
addressLine?: string | null;
|
|
562
|
+
}
|
|
563
|
+
export interface StreetAddress {
|
|
564
|
+
/** street number */
|
|
565
|
+
number?: string;
|
|
566
|
+
/** street name */
|
|
567
|
+
name?: string;
|
|
568
|
+
}
|
|
569
|
+
export interface AddressLocation {
|
|
570
|
+
latitude?: number | null;
|
|
571
|
+
longitude?: number | null;
|
|
572
|
+
}
|
|
573
|
+
export interface Subdivision {
|
|
574
|
+
/** subdivision short code */
|
|
575
|
+
code?: string;
|
|
576
|
+
/** subdivision full-name */
|
|
577
|
+
name?: string;
|
|
578
|
+
}
|
|
579
|
+
export declare enum SubdivisionType {
|
|
580
|
+
UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
|
|
581
|
+
/** State */
|
|
582
|
+
ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
|
|
583
|
+
/** County */
|
|
584
|
+
ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
|
|
585
|
+
/** City/town */
|
|
586
|
+
ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
|
|
587
|
+
/** Neighborhood/quarter */
|
|
588
|
+
ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
|
|
589
|
+
/** Street/block */
|
|
590
|
+
ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
|
|
591
|
+
/** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
|
|
592
|
+
COUNTRY = "COUNTRY"
|
|
593
|
+
}
|
|
594
|
+
export interface ScheduleConfig {
|
|
595
|
+
/**
|
|
596
|
+
* Defines event as TBD (To Be Determined) schedule.
|
|
597
|
+
* When event time is not yet defined, TBD message is displayed instead of event start and end times.
|
|
598
|
+
* `startDate`, `endDate` and `timeZoneId` are not required when schedule is TBD.
|
|
599
|
+
*/
|
|
600
|
+
scheduleTbd?: boolean;
|
|
601
|
+
/** TBD message. */
|
|
602
|
+
scheduleTbdMessage?: string | null;
|
|
603
|
+
/** Event start timestamp. */
|
|
604
|
+
startDate?: Date;
|
|
605
|
+
/** Event end timestamp. */
|
|
606
|
+
endDate?: Date;
|
|
607
|
+
/** Event time zone ID in TZ database format, e.g., `EST`, `America/Los_Angeles`. */
|
|
608
|
+
timeZoneId?: string | null;
|
|
609
|
+
/** Whether end date is hidden in the formatted schedule. */
|
|
610
|
+
endDateHidden?: boolean;
|
|
611
|
+
/** Whether time zone is displayed in formatted schedule. */
|
|
612
|
+
showTimeZone?: boolean;
|
|
613
|
+
/** Event recurrences. */
|
|
614
|
+
recurrences?: Recurrences;
|
|
615
|
+
}
|
|
616
|
+
export interface Recurrences {
|
|
617
|
+
/** Event occurrences. */
|
|
618
|
+
occurrences?: Occurrence[];
|
|
619
|
+
/**
|
|
620
|
+
* Recurring event category ID.
|
|
621
|
+
* @readonly
|
|
622
|
+
*/
|
|
623
|
+
categoryId?: string | null;
|
|
624
|
+
/**
|
|
625
|
+
* Recurrence status.
|
|
626
|
+
* @readonly
|
|
627
|
+
*/
|
|
628
|
+
status?: Status;
|
|
629
|
+
}
|
|
630
|
+
export interface Occurrence {
|
|
631
|
+
/** Event start timestamp. */
|
|
632
|
+
startDate?: Date;
|
|
633
|
+
/** Event end timestamp. */
|
|
634
|
+
endDate?: Date;
|
|
635
|
+
/** Event time zone ID in TZ database format, e.g., `EST`, `America/Los_Angeles`. */
|
|
636
|
+
timeZoneId?: string | null;
|
|
637
|
+
/** Whether time zone is displayed in formatted schedule. */
|
|
638
|
+
showTimeZone?: boolean;
|
|
639
|
+
}
|
|
640
|
+
export declare enum Status {
|
|
641
|
+
/** Event occurs only once. */
|
|
642
|
+
ONE_TIME = "ONE_TIME",
|
|
643
|
+
/** Event is recurring. */
|
|
644
|
+
RECURRING = "RECURRING",
|
|
645
|
+
/** Marks the next upcoming occurrence of the recurring event. */
|
|
646
|
+
RECURRING_NEXT = "RECURRING_NEXT",
|
|
647
|
+
/** Marks the most recent ended occurrence of the recurring event. */
|
|
648
|
+
RECURRING_LAST_ENDED = "RECURRING_LAST_ENDED",
|
|
649
|
+
/** Marks the most recent canceled occurrence of the recurring event. */
|
|
650
|
+
RECURRING_LAST_CANCELED = "RECURRING_LAST_CANCELED"
|
|
651
|
+
}
|
|
652
|
+
export interface DiscardDraftRequest {
|
|
653
|
+
/** Event ID. */
|
|
654
|
+
eventId: string;
|
|
655
|
+
}
|
|
656
|
+
export interface DiscardDraftResponse {
|
|
657
|
+
}
|