@wix/auto_sdk_events_forms 1.0.22 → 1.0.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (133) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/events-v1-form-forms.context.d.ts +17 -0
  11. package/build/cjs/src/events-v1-form-forms.context.js +67 -0
  12. package/build/cjs/src/events-v1-form-forms.context.js.map +1 -0
  13. package/build/cjs/src/events-v1-form-forms.http.d.ts +22 -0
  14. package/build/cjs/src/events-v1-form-forms.http.js +653 -0
  15. package/build/cjs/src/events-v1-form-forms.http.js.map +1 -0
  16. package/build/cjs/src/events-v1-form-forms.meta.d.ts +35 -0
  17. package/build/cjs/src/events-v1-form-forms.meta.js +161 -0
  18. package/build/cjs/src/events-v1-form-forms.meta.js.map +1 -0
  19. package/build/cjs/src/events-v1-form-forms.public.d.ts +72 -0
  20. package/build/cjs/src/events-v1-form-forms.public.js +202 -0
  21. package/build/cjs/src/events-v1-form-forms.public.js.map +1 -0
  22. package/build/cjs/src/events-v1-form-forms.types.d.ts +2991 -0
  23. package/build/cjs/src/events-v1-form-forms.types.js +488 -0
  24. package/build/cjs/src/events-v1-form-forms.types.js.map +1 -0
  25. package/build/{events-v1-form-forms.universal-DsBBfrf9.d.mts → cjs/src/events-v1-form-forms.universal.d.ts} +442 -251
  26. package/build/cjs/src/events-v1-form-forms.universal.js +867 -0
  27. package/build/cjs/src/events-v1-form-forms.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/src/events-v1-form-forms.context.d.ts +17 -0
  38. package/build/es/src/events-v1-form-forms.context.js +17 -0
  39. package/build/es/src/events-v1-form-forms.context.js.map +1 -0
  40. package/build/es/src/events-v1-form-forms.http.d.ts +22 -0
  41. package/build/es/src/events-v1-form-forms.http.js +643 -0
  42. package/build/es/src/events-v1-form-forms.http.js.map +1 -0
  43. package/build/es/src/events-v1-form-forms.meta.d.ts +35 -0
  44. package/build/es/src/events-v1-form-forms.meta.js +128 -0
  45. package/build/es/src/events-v1-form-forms.meta.js.map +1 -0
  46. package/build/es/src/events-v1-form-forms.public.d.ts +72 -0
  47. package/build/es/src/events-v1-form-forms.public.js +145 -0
  48. package/build/es/src/events-v1-form-forms.public.js.map +1 -0
  49. package/build/es/src/events-v1-form-forms.types.d.ts +2991 -0
  50. package/build/es/src/events-v1-form-forms.types.js +485 -0
  51. package/build/es/src/events-v1-form-forms.types.js.map +1 -0
  52. package/build/{events-v1-form-forms.universal-DsBBfrf9.d.ts → es/src/events-v1-form-forms.universal.d.ts} +442 -251
  53. package/build/es/src/events-v1-form-forms.universal.js +833 -0
  54. package/build/es/src/events-v1-form-forms.universal.js.map +1 -0
  55. package/build/internal/cjs/index.d.ts +1 -0
  56. package/build/internal/cjs/index.js +18 -0
  57. package/build/internal/cjs/index.js.map +1 -0
  58. package/build/internal/cjs/index.typings.d.ts +1 -0
  59. package/build/internal/cjs/index.typings.js +18 -0
  60. package/build/internal/cjs/index.typings.js.map +1 -0
  61. package/build/internal/cjs/meta.d.ts +1 -0
  62. package/build/internal/cjs/meta.js +18 -0
  63. package/build/internal/cjs/meta.js.map +1 -0
  64. package/build/internal/cjs/src/events-v1-form-forms.context.d.ts +17 -0
  65. package/build/internal/cjs/src/events-v1-form-forms.context.js +67 -0
  66. package/build/internal/cjs/src/events-v1-form-forms.context.js.map +1 -0
  67. package/build/internal/cjs/src/events-v1-form-forms.http.d.ts +22 -0
  68. package/build/internal/cjs/src/events-v1-form-forms.http.js +653 -0
  69. package/build/internal/cjs/src/events-v1-form-forms.http.js.map +1 -0
  70. package/build/internal/cjs/src/events-v1-form-forms.meta.d.ts +35 -0
  71. package/build/internal/cjs/src/events-v1-form-forms.meta.js +161 -0
  72. package/build/internal/cjs/src/events-v1-form-forms.meta.js.map +1 -0
  73. package/build/internal/cjs/src/events-v1-form-forms.public.d.ts +72 -0
  74. package/build/internal/cjs/src/events-v1-form-forms.public.js +202 -0
  75. package/build/internal/cjs/src/events-v1-form-forms.public.js.map +1 -0
  76. package/build/internal/cjs/src/events-v1-form-forms.types.d.ts +2991 -0
  77. package/build/internal/cjs/src/events-v1-form-forms.types.js +488 -0
  78. package/build/internal/cjs/src/events-v1-form-forms.types.js.map +1 -0
  79. package/build/internal/{events-v1-form-forms.universal-DsBBfrf9.d.mts → cjs/src/events-v1-form-forms.universal.d.ts} +442 -251
  80. package/build/internal/cjs/src/events-v1-form-forms.universal.js +867 -0
  81. package/build/internal/cjs/src/events-v1-form-forms.universal.js.map +1 -0
  82. package/build/internal/es/index.d.ts +1 -0
  83. package/build/internal/es/index.js +2 -0
  84. package/build/internal/es/index.js.map +1 -0
  85. package/build/internal/es/index.typings.d.ts +1 -0
  86. package/build/internal/es/index.typings.js +2 -0
  87. package/build/internal/es/index.typings.js.map +1 -0
  88. package/build/internal/es/meta.d.ts +1 -0
  89. package/build/internal/es/meta.js +2 -0
  90. package/build/internal/es/meta.js.map +1 -0
  91. package/build/internal/es/src/events-v1-form-forms.context.d.ts +17 -0
  92. package/build/internal/es/src/events-v1-form-forms.context.js +17 -0
  93. package/build/internal/es/src/events-v1-form-forms.context.js.map +1 -0
  94. package/build/internal/es/src/events-v1-form-forms.http.d.ts +22 -0
  95. package/build/internal/es/src/events-v1-form-forms.http.js +643 -0
  96. package/build/internal/es/src/events-v1-form-forms.http.js.map +1 -0
  97. package/build/internal/es/src/events-v1-form-forms.meta.d.ts +35 -0
  98. package/build/internal/es/src/events-v1-form-forms.meta.js +128 -0
  99. package/build/internal/es/src/events-v1-form-forms.meta.js.map +1 -0
  100. package/build/internal/es/src/events-v1-form-forms.public.d.ts +72 -0
  101. package/build/internal/es/src/events-v1-form-forms.public.js +145 -0
  102. package/build/internal/es/src/events-v1-form-forms.public.js.map +1 -0
  103. package/build/internal/es/src/events-v1-form-forms.types.d.ts +2991 -0
  104. package/build/internal/es/src/events-v1-form-forms.types.js +485 -0
  105. package/build/internal/es/src/events-v1-form-forms.types.js.map +1 -0
  106. package/build/internal/{events-v1-form-forms.universal-DsBBfrf9.d.ts → es/src/events-v1-form-forms.universal.d.ts} +442 -251
  107. package/build/internal/es/src/events-v1-form-forms.universal.js +833 -0
  108. package/build/internal/es/src/events-v1-form-forms.universal.js.map +1 -0
  109. package/package.json +11 -12
  110. package/build/index.d.mts +0 -84
  111. package/build/index.d.ts +0 -84
  112. package/build/index.js +0 -1512
  113. package/build/index.js.map +0 -1
  114. package/build/index.mjs +0 -1435
  115. package/build/index.mjs.map +0 -1
  116. package/build/internal/index.d.mts +0 -84
  117. package/build/internal/index.d.ts +0 -84
  118. package/build/internal/index.js +0 -1512
  119. package/build/internal/index.js.map +0 -1
  120. package/build/internal/index.mjs +0 -1435
  121. package/build/internal/index.mjs.map +0 -1
  122. package/build/internal/meta.d.mts +0 -648
  123. package/build/internal/meta.d.ts +0 -648
  124. package/build/internal/meta.js +0 -800
  125. package/build/internal/meta.js.map +0 -1
  126. package/build/internal/meta.mjs +0 -767
  127. package/build/internal/meta.mjs.map +0 -1
  128. package/build/meta.d.mts +0 -648
  129. package/build/meta.d.ts +0 -648
  130. package/build/meta.js +0 -800
  131. package/build/meta.js.map +0 -1
  132. package/build/meta.mjs +0 -767
  133. package/build/meta.mjs.map +0 -1
@@ -1,648 +0,0 @@
1
- import { al as GetFormRequest$1, am as GetFormResponse$1, an as AddControlRequest$1, a as AddControlResponse$1, az as UpdateControlRequest$1, c as UpdateControlResponse$1, aE as DeleteControlRequest$1, d as DeleteControlResponse$1, aF as UpdateMessagesRequest$1, f as UpdateMessagesResponse$1, aG as PublishDraftRequest$1, P as PublishDraftResponse$1, cO as DiscardDraftRequest$1, cP as DiscardDraftResponse$1 } from './events-v1-form-forms.universal-DsBBfrf9.mjs';
2
-
3
- /**
4
- * The form defines which elements are displayed to a site visitor during the registration process (RSVP or checkout).
5
- * It also contains customizable messages and labels.
6
- *
7
- *
8
- * A form is an ordered list of controls (blocks), which accept guest information into a field input.
9
- *
10
- * Each control contains one or more nested inputs. For example, `Name` control has two inputs:
11
- * - First Name
12
- * - Last Name
13
- *
14
- * By default, name and email controls are always required and are pinned to the top of the form.
15
- */
16
- interface Form {
17
- /** Nested fields as an ordered list. */
18
- controls?: InputControl[];
19
- /**
20
- * Set of defined form messages displayed in the UI before, during, and after a registration flow.
21
- * Includes the configuration of form titles, response labels, "thank you" messages, and call-to-action texts.
22
- */
23
- messages?: FormMessages;
24
- }
25
- /**
26
- * A block of nested fields.
27
- * Used to aggregate similar inputs like First Name and Last Name.
28
- */
29
- interface InputControl {
30
- /** Field control type. */
31
- type?: InputControlType;
32
- /** Whether the control is mandatory (such as `name` & `email`). When `true`, only the label can be changed. */
33
- system?: boolean;
34
- /**
35
- * Deprecated: Use `id` or `_id`.
36
- * @deprecated
37
- */
38
- name?: string;
39
- /** Child inputs. */
40
- inputs?: Input[];
41
- /**
42
- * *Deprecated:** Use `controls.inputs.label`.
43
- * @deprecated
44
- */
45
- label?: string;
46
- /** Field controls are sorted by this value in ascending order. */
47
- orderIndex?: number;
48
- /** Unique control ID. */
49
- id?: string;
50
- /**
51
- * Whether the input control is deleted.
52
- * @readonly
53
- */
54
- deleted?: boolean | null;
55
- }
56
- declare enum InputControlType {
57
- /** Single text value field. */
58
- INPUT = "INPUT",
59
- /** Single text value field with multiple lines. */
60
- TEXTAREA = "TEXTAREA",
61
- /** Single-choice field with predefined values. */
62
- DROPDOWN = "DROPDOWN",
63
- /** Single-choice field with predefined values. */
64
- RADIO = "RADIO",
65
- /** Multiple-choice field with predefined values. */
66
- CHECKBOX = "CHECKBOX",
67
- /** Fields for entering first and last names. */
68
- NAME = "NAME",
69
- /** Fields for additional guests and their respective names. */
70
- GUEST_CONTROL = "GUEST_CONTROL",
71
- /** Single-line address field. */
72
- ADDRESS_SHORT = "ADDRESS_SHORT",
73
- /** Full address field with multiple lines. */
74
- ADDRESS_FULL = "ADDRESS_FULL",
75
- /** Fields for entering year, month, and day. */
76
- DATE = "DATE"
77
- }
78
- /** Child inputs. */
79
- interface Input {
80
- /** Field name. */
81
- name?: string;
82
- /**
83
- * *Deprecated:** Use `controls.inputs.type.TEXT_ARRAY`.
84
- * @deprecated
85
- */
86
- array?: boolean;
87
- /** Main field label. */
88
- label?: string;
89
- /** Additional labels for multi-valued fields such as address. */
90
- additionalLabels?: Record<string, string>;
91
- /** Predefined choice options for fields, such as dropdown. */
92
- options?: string[];
93
- /** Whether field is mandatory. */
94
- mandatory?: boolean;
95
- /** Maximum number of accepted characters (relevant for text fields). */
96
- maxLength?: number;
97
- /**
98
- * Type which determines field format.
99
- * Used to validate submitted response.
100
- */
101
- type?: ValueType;
102
- /**
103
- * The maximum number of accepted values for array input.
104
- *
105
- * **Note:** Only applicable for `TEXT_ARRAY` input fields.
106
- */
107
- maxSize?: number | null;
108
- /**
109
- * Default option initially selected when an input has multiple choices.
110
- *
111
- * Defaults to first (0th) option, if not configured.
112
- * Currently only applicable for `type.dropdown`.
113
- */
114
- defaultOptionSelection?: OptionSelection;
115
- /**
116
- * Additional labels for multi-valued fields, such as address.
117
- * @readonly
118
- */
119
- labels?: Label[];
120
- }
121
- declare enum ValueType {
122
- TEXT = "TEXT",
123
- NUMBER = "NUMBER",
124
- TEXT_ARRAY = "TEXT_ARRAY",
125
- DATE_TIME = "DATE_TIME",
126
- ADDRESS = "ADDRESS"
127
- }
128
- /**
129
- * Describes initially selected option when an input has multiple choices.
130
- * Defaults to first (0th) option if not configured.
131
- */
132
- interface OptionSelection extends OptionSelectionSelectedOptionOneOf {
133
- /**
134
- * 0-based index from predefined `controls.inputs.options` which is initial selection.
135
- * @max 199
136
- */
137
- optionIndex?: number;
138
- /**
139
- * Placeholder hint describing expected choices, such as "Please select".
140
- * Considered an empty choice.
141
- * @maxLength 200
142
- */
143
- placeholderText?: string;
144
- }
145
- /** @oneof */
146
- interface OptionSelectionSelectedOptionOneOf {
147
- /**
148
- * 0-based index from predefined `controls.inputs.options` which is initial selection.
149
- * @max 199
150
- */
151
- optionIndex?: number;
152
- /**
153
- * Placeholder hint describing expected choices, such as "Please select".
154
- * Considered an empty choice.
155
- * @maxLength 200
156
- */
157
- placeholderText?: string;
158
- }
159
- interface Label {
160
- /** Field name. */
161
- name?: string;
162
- /** Field label. */
163
- label?: string;
164
- }
165
- /**
166
- * Defines form messages shown in UI before, during, and after registration flow.
167
- * It enables configuration of form titles, response labels, "thank you" messages, and call-to-action texts.
168
- */
169
- interface FormMessages {
170
- /** RSVP form ([SDK](https://dev.wix.com/docs/sdk/backend-modules/events/rsvp-v2/introduction) | [REST](https://dev.wix.com/docs/rest/business-solutions/events/rsvp-v2/introduction)) messages. */
171
- rsvp?: RsvpFormMessages;
172
- /** Checkout form messages. */
173
- checkout?: CheckoutFormMessages;
174
- /** Messages shown when event registration is closed. */
175
- registrationClosed?: RegistrationClosedMessages;
176
- /** Messages shown when event tickets are unavailable. */
177
- ticketsUnavailable?: TicketsUnavailableMessages;
178
- }
179
- interface RsvpFormMessages {
180
- /** Label text indicating RSVP's `status` is `"YES"`. */
181
- rsvpYesOption?: string;
182
- /** Label text indicating RSVP's `status` is `"NO"`. */
183
- rsvpNoOption?: string;
184
- /** Messages displayed when an RSVP's `status` is set to `"YES"`. */
185
- positiveMessages?: Positive;
186
- /** Messages displayed when an RSVP's `status` is set to `"WAITLIST"`, for when the event is full and a waitlist is available). */
187
- waitlistMessages?: Positive;
188
- /** Messages displayed when an RSVP's `status` is set to `"NO"`. */
189
- negativeMessages?: Negative;
190
- /** "Submit form" call-to-action label text. */
191
- submitActionLabel?: string;
192
- }
193
- /** Confirmation messages shown after registration. */
194
- interface PositiveResponseConfirmation {
195
- /** Confirmation message title. */
196
- title?: string;
197
- /** Confirmation message text. */
198
- message?: string;
199
- /** "Add to calendar" call-to-action label text. */
200
- addToCalendarActionLabel?: string;
201
- /** "Share event" call-to-action label text. */
202
- shareActionLabel?: string;
203
- }
204
- /** Confirmation messages shown after registration. */
205
- interface NegativeResponseConfirmation {
206
- /** Confirmation message title. */
207
- title?: string;
208
- /** "Share event" call-to-action label text. */
209
- shareActionLabel?: string;
210
- }
211
- /** Set of messages shown during registration when RSVP response is positive. */
212
- interface Positive {
213
- /** Main form title for positive response. */
214
- title?: string;
215
- /** Confirmation messages shown after registration. */
216
- confirmation?: PositiveResponseConfirmation;
217
- }
218
- /** A set of messages shown during registration with negative response */
219
- interface Negative {
220
- /** Main form title for negative response. */
221
- title?: string;
222
- /** Confirmation messages shown after registration. */
223
- confirmation?: NegativeResponseConfirmation;
224
- }
225
- interface CheckoutFormMessages {
226
- /** Main form title for response. */
227
- title?: string;
228
- /** Submit form call-to-action label text. */
229
- submitActionLabel?: string;
230
- /** Confirmation messages shown after checkout. */
231
- confirmation?: ResponseConfirmation;
232
- }
233
- /** Confirmation messages shown after checkout. */
234
- interface ResponseConfirmation {
235
- /** Confirmation message title. */
236
- title?: string;
237
- /** Confirmation message text. */
238
- message?: string;
239
- /** "Download tickets" call-to-action label text. */
240
- downloadTicketsLabel?: string;
241
- /** "Add to calendar" call-to-action label text. */
242
- addToCalendarLabel?: string;
243
- /** "Share event" call-to-action label text. */
244
- shareEventLabel?: string;
245
- }
246
- interface RegistrationClosedMessages {
247
- /** Message shown when event registration is closed. */
248
- message?: string;
249
- /** "Explore other events" call-to-action label text. */
250
- exploreEventsActionLabel?: string;
251
- }
252
- interface TicketsUnavailableMessages {
253
- /** Message shown when event tickets are unavailable. */
254
- message?: string;
255
- /** "Explore other events" call-to-action label text. */
256
- exploreEventsActionLabel?: string;
257
- }
258
- interface GetFormRequest {
259
- /**
260
- * Event ID to which the form belongs.
261
- * @format GUID
262
- */
263
- eventId: string;
264
- }
265
- interface GetFormResponse {
266
- /**
267
- * Currently published event form.
268
- * Published form is visible to site visitors.
269
- */
270
- form?: Form;
271
- /**
272
- * Draft event form.
273
- * Not available to visitors unless published.
274
- */
275
- draftForm?: Form;
276
- }
277
- interface AddControlRequest extends AddControlRequestControlOneOf {
278
- /** Phone number input control. */
279
- phone?: PhoneControl;
280
- /** Single-line or full address input control. */
281
- address?: AddressControl;
282
- /** Day, month, year date input control. */
283
- date?: DateControl;
284
- /** Additional guests input control. */
285
- additionalGuests?: AdditionalGuestsControl;
286
- /** Single-choice dropdown style input control. */
287
- dropdown?: DropdownControl;
288
- /** Multiple-choice checkbox style input control. */
289
- checkbox?: CheckboxControl;
290
- /** Free-form text input control. */
291
- text?: TextControl;
292
- /** Single-choice radio button style input control. */
293
- radioButton?: RadioButtonControl;
294
- /**
295
- * Event ID to which the form belongs.
296
- * @format GUID
297
- */
298
- eventId: string;
299
- }
300
- /** @oneof */
301
- interface AddControlRequestControlOneOf {
302
- /** Phone number input control. */
303
- phone?: PhoneControl;
304
- /** Single-line or full address input control. */
305
- address?: AddressControl;
306
- /** Day, month, year date input control. */
307
- date?: DateControl;
308
- /** Additional guests input control. */
309
- additionalGuests?: AdditionalGuestsControl;
310
- /** Single-choice dropdown style input control. */
311
- dropdown?: DropdownControl;
312
- /** Multiple-choice checkbox style input control. */
313
- checkbox?: CheckboxControl;
314
- /** Free-form text input control. */
315
- text?: TextControl;
316
- /** Single-choice radio button style input control. */
317
- radioButton?: RadioButtonControl;
318
- }
319
- interface PhoneControl {
320
- /**
321
- * Phone input label.
322
- * @maxLength 100
323
- */
324
- label?: string;
325
- /** Whether the phone input is required. */
326
- mandatory?: boolean;
327
- }
328
- interface AddressControl {
329
- /** Address control labels for each input. */
330
- labels?: AddressControlLabels;
331
- /** Whether an address is multi-line (consisting of multiple fields such as country, city, postal code). When `false`, address is single-line. */
332
- full?: boolean;
333
- /** Whether the address input is required. */
334
- mandatory?: boolean;
335
- }
336
- interface AddressControlLabels {
337
- /**
338
- * Single-line address input label.
339
- * @maxLength 100
340
- */
341
- addressLine?: string;
342
- /**
343
- * Country input label.
344
- * @maxLength 100
345
- */
346
- country?: string;
347
- /**
348
- * Subdivision input label.
349
- * @maxLength 100
350
- */
351
- subdivision?: string;
352
- /**
353
- * City input label.
354
- * @maxLength 100
355
- */
356
- city?: string;
357
- /**
358
- * Postal code input label.
359
- * @maxLength 100
360
- */
361
- postalCode?: string;
362
- /**
363
- * Street address input label.
364
- * @maxLength 100
365
- */
366
- streetAddress?: string;
367
- }
368
- interface DateControl {
369
- /**
370
- * Input control label.
371
- * @maxLength 100
372
- */
373
- label?: string;
374
- /** Whether the date input is required. */
375
- mandatory?: boolean;
376
- }
377
- interface AdditionalGuestsControl {
378
- /** Additional guests control labels for each input. */
379
- labels?: Labels;
380
- /** Whether the individual guest names are required. */
381
- namesMandatory?: boolean;
382
- /**
383
- * Maximum number of additional guests.
384
- * @min 1
385
- * @max 10
386
- */
387
- maxGuests?: number;
388
- }
389
- interface Labels {
390
- /**
391
- * Input label for a single guest.
392
- * @maxLength 200
393
- */
394
- single?: string;
395
- /**
396
- * Input label for multiple guests.
397
- * @maxLength 200
398
- */
399
- multiple?: string;
400
- }
401
- interface DropdownControl {
402
- /**
403
- * Input control label.
404
- * @maxLength 200
405
- */
406
- label?: string;
407
- /**
408
- * Predefined options guests can choose from.
409
- * @minSize 2
410
- * @maxSize 200
411
- * @maxLength 200
412
- */
413
- options?: string[];
414
- /** Whether a choice is required. */
415
- mandatory?: boolean;
416
- /**
417
- * Default option initially selected when an input has multiple choices.
418
- *
419
- * Defaults to first (0th) option, if not configured.
420
- */
421
- defaultOptionSelection?: OptionSelection;
422
- }
423
- interface RadioButtonControl {
424
- /**
425
- * Input control label.
426
- * @maxLength 200
427
- */
428
- label?: string;
429
- /**
430
- * Predefined options guests can choose from.
431
- * @minSize 2
432
- * @maxSize 200
433
- * @maxLength 200
434
- */
435
- options?: string[];
436
- }
437
- interface CheckboxControl {
438
- /**
439
- * Input control label.
440
- * @maxLength 200
441
- */
442
- label?: string;
443
- /** Whether at least one checkbox is required. */
444
- mandatory?: boolean;
445
- /**
446
- * Predefined options guests can choose from.
447
- * @minSize 1
448
- * @maxSize 200
449
- * @maxLength 200
450
- */
451
- options?: string[];
452
- }
453
- interface TextControl {
454
- /**
455
- * Input control label.
456
- * @maxLength 200
457
- */
458
- label?: string;
459
- /** Whether a text input is required. */
460
- mandatory?: boolean;
461
- /**
462
- * Maximum number of characters allowed.
463
- * @max 1000
464
- */
465
- maxLength?: number;
466
- /** Whether the input control should allow multiple lines in text. */
467
- multiLine?: boolean;
468
- /** Whether the input control should be displayed as a comment. */
469
- comment?: boolean;
470
- }
471
- interface AddControlResponse {
472
- /** Generated unique input control ID. */
473
- id?: string;
474
- /** Modified draft event form. */
475
- form?: Form;
476
- }
477
- interface UpdateControlRequest extends UpdateControlRequestControlOneOf {
478
- /** Phone number input control. */
479
- phone?: PhoneControl;
480
- /** Single-line or full address input control. */
481
- address?: AddressControl;
482
- /** Day, month, year date input control. */
483
- date?: DateControl;
484
- /** Additional guests input control. */
485
- additionalGuests?: AdditionalGuestsControl;
486
- /** Single-choice dropdown style input control. */
487
- dropdown?: DropdownControl;
488
- /** Multiple-choice checkbox style input control. */
489
- checkbox?: CheckboxControl;
490
- /** Free-form text input control. */
491
- text?: TextControl;
492
- /** Main guest name input control. */
493
- name?: NameControl;
494
- /** Main guest email input control. */
495
- email?: EmailControl;
496
- /** Single-choice radio style input control. */
497
- radioButton?: RadioButtonControl;
498
- /**
499
- * Event ID to which the form belongs.
500
- * @format GUID
501
- */
502
- eventId: string;
503
- /** Unique input control ID. */
504
- id: string;
505
- /** Index used to sort input controls in ascending order. */
506
- orderIndex?: number;
507
- }
508
- /** @oneof */
509
- interface UpdateControlRequestControlOneOf {
510
- /** Phone number input control. */
511
- phone?: PhoneControl;
512
- /** Single-line or full address input control. */
513
- address?: AddressControl;
514
- /** Day, month, year date input control. */
515
- date?: DateControl;
516
- /** Additional guests input control. */
517
- additionalGuests?: AdditionalGuestsControl;
518
- /** Single-choice dropdown style input control. */
519
- dropdown?: DropdownControl;
520
- /** Multiple-choice checkbox style input control. */
521
- checkbox?: CheckboxControl;
522
- /** Free-form text input control. */
523
- text?: TextControl;
524
- /** Main guest name input control. */
525
- name?: NameControl;
526
- /** Main guest email input control. */
527
- email?: EmailControl;
528
- /** Single-choice radio style input control. */
529
- radioButton?: RadioButtonControl;
530
- }
531
- interface NameControl {
532
- /** Name control labels of each input. */
533
- labels?: NameControlLabels;
534
- }
535
- interface NameControlLabels {
536
- /**
537
- * First name input label.
538
- * @maxLength 100
539
- */
540
- firstName?: string;
541
- /**
542
- * Last name input label .
543
- * @maxLength 100
544
- */
545
- lastName?: string;
546
- }
547
- interface EmailControl {
548
- /**
549
- * Email input label.
550
- * @maxLength 100
551
- */
552
- label?: string;
553
- }
554
- interface UpdateControlResponse {
555
- /** Modified draft event form. */
556
- form?: Form;
557
- }
558
- interface DeleteControlRequest {
559
- /**
560
- * Event ID to which the form belongs.
561
- * @format GUID
562
- */
563
- eventId: string;
564
- /**
565
- * Unique input control ID.
566
- * @maxLength 100
567
- */
568
- id: string;
569
- }
570
- interface DeleteControlResponse {
571
- /** Modified draft event form */
572
- form?: Form;
573
- }
574
- interface UpdateMessagesRequest {
575
- /**
576
- * Event ID to which the form belongs.
577
- * @format GUID
578
- */
579
- eventId: string;
580
- /**
581
- * Set of field paths, specifying which parts of this resource to update.
582
- * When fields are empty, request is interpreted as full update.
583
- * Behavior follows [google.protobuf.FieldMask](https://developers.google.com/protocol-buffers/docs/reference/google.protobuf#google.protobuf.FieldMask) semantics.
584
- */
585
- fields?: string[];
586
- /** Set of configured form messages to update. */
587
- messages?: FormMessages;
588
- }
589
- interface UpdateMessagesResponse {
590
- /** Modified draft event form. */
591
- form?: Form;
592
- }
593
- interface PublishDraftRequest {
594
- /**
595
- * Event ID to which the form belongs.
596
- * @format GUID
597
- */
598
- eventId: string;
599
- }
600
- interface PublishDraftResponse {
601
- /** Published event form. */
602
- form?: Form;
603
- }
604
- interface DiscardDraftRequest {
605
- /**
606
- * Event ID to which the form belongs.
607
- * @format GUID
608
- */
609
- eventId: string;
610
- }
611
- interface DiscardDraftResponse {
612
- }
613
-
614
- type __PublicMethodMetaInfo<K = string, M = unknown, T = unknown, S = unknown, Q = unknown, R = unknown> = {
615
- getUrl: (context: any) => string;
616
- httpMethod: K;
617
- path: string;
618
- pathParams: M;
619
- __requestType: T;
620
- __originalRequestType: S;
621
- __responseType: Q;
622
- __originalResponseType: R;
623
- };
624
- declare function getForm(): __PublicMethodMetaInfo<'GET', {
625
- eventId: string;
626
- }, GetFormRequest$1, GetFormRequest, GetFormResponse$1, GetFormResponse>;
627
- declare function addControl(): __PublicMethodMetaInfo<'POST', {
628
- eventId: string;
629
- }, AddControlRequest$1, AddControlRequest, AddControlResponse$1, AddControlResponse>;
630
- declare function updateControl(): __PublicMethodMetaInfo<'PUT', {
631
- eventId: string;
632
- id: string;
633
- }, UpdateControlRequest$1, UpdateControlRequest, UpdateControlResponse$1, UpdateControlResponse>;
634
- declare function deleteControl(): __PublicMethodMetaInfo<'DELETE', {
635
- eventId: string;
636
- id: string;
637
- }, DeleteControlRequest$1, DeleteControlRequest, DeleteControlResponse$1, DeleteControlResponse>;
638
- declare function updateMessages(): __PublicMethodMetaInfo<'PATCH', {
639
- eventId: string;
640
- }, UpdateMessagesRequest$1, UpdateMessagesRequest, UpdateMessagesResponse$1, UpdateMessagesResponse>;
641
- declare function publishDraft(): __PublicMethodMetaInfo<'POST', {
642
- eventId: string;
643
- }, PublishDraftRequest$1, PublishDraftRequest, PublishDraftResponse$1, PublishDraftResponse>;
644
- declare function discardDraft(): __PublicMethodMetaInfo<'DELETE', {
645
- eventId: string;
646
- }, DiscardDraftRequest$1, DiscardDraftRequest, DiscardDraftResponse$1, DiscardDraftResponse>;
647
-
648
- export { type __PublicMethodMetaInfo, addControl, deleteControl, discardDraft, getForm, publishDraft, updateControl, updateMessages };