@wix/auto_sdk_events_ticket-definitions-v-2 1.0.0

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 (111) 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-v3-ticket-definition-ticket-definitions-v-2.context.d.ts +46 -0
  11. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js +107 -0
  12. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js.map +1 -0
  13. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.d.ts +79 -0
  14. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js +585 -0
  15. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js.map +1 -0
  16. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.d.ts +29 -0
  17. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js +237 -0
  18. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js.map +1 -0
  19. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.d.ts +148 -0
  20. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js +304 -0
  21. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js.map +1 -0
  22. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.d.ts +3643 -0
  23. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js +680 -0
  24. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js.map +1 -0
  25. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.d.ts +4147 -0
  26. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js +1293 -0
  27. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.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/package.json +3 -0
  38. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.d.ts +46 -0
  39. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js +46 -0
  40. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js.map +1 -0
  41. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.d.ts +79 -0
  42. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js +571 -0
  43. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js.map +1 -0
  44. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.d.ts +29 -0
  45. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js +200 -0
  46. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js.map +1 -0
  47. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.d.ts +148 -0
  48. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js +232 -0
  49. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js.map +1 -0
  50. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.d.ts +3643 -0
  51. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js +676 -0
  52. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js.map +1 -0
  53. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.d.ts +4147 -0
  54. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js +1255 -0
  55. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.context.d.ts +46 -0
  66. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js +107 -0
  67. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js.map +1 -0
  68. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.d.ts +79 -0
  69. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js +585 -0
  70. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js.map +1 -0
  71. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.d.ts +29 -0
  72. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js +237 -0
  73. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js.map +1 -0
  74. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.d.ts +148 -0
  75. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js +304 -0
  76. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js.map +1 -0
  77. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.d.ts +3643 -0
  78. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js +680 -0
  79. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js.map +1 -0
  80. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.d.ts +4147 -0
  81. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js +1293 -0
  82. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.d.ts +46 -0
  93. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js +46 -0
  94. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js.map +1 -0
  95. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.d.ts +79 -0
  96. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js +571 -0
  97. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js.map +1 -0
  98. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.d.ts +29 -0
  99. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js +200 -0
  100. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js.map +1 -0
  101. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.d.ts +148 -0
  102. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js +232 -0
  103. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js.map +1 -0
  104. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.d.ts +3643 -0
  105. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js +676 -0
  106. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js.map +1 -0
  107. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.d.ts +4147 -0
  108. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js +1255 -0
  109. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js.map +1 -0
  110. package/meta/package.json +3 -0
  111. package/package.json +52 -0
@@ -0,0 +1,3643 @@
1
+ export interface TicketDefinition {
2
+ /**
3
+ * Ticket definition ID.
4
+ * @readonly
5
+ */
6
+ id?: string | null;
7
+ /** Event ID to which the ticket definition belongs. */
8
+ eventId?: string | null;
9
+ /**
10
+ * Revision number, which increments by 1 each time the ticket definition is updated. To prevent conflicting changes, the existing revision must be used when updating a ticket definition.
11
+ * @readonly
12
+ */
13
+ revision?: string | null;
14
+ /**
15
+ * Date and time when the ticket definition was created.
16
+ * @readonly
17
+ */
18
+ createdDate?: Date | null;
19
+ /**
20
+ * Date and time when the ticket definition was updated.
21
+ * @readonly
22
+ */
23
+ updatedDate?: Date | null;
24
+ /** Ticket definition name. */
25
+ name?: string | null;
26
+ /** Ticket definition description. */
27
+ description?: string | null;
28
+ /** Ticket definition policy. */
29
+ policyText?: string | null;
30
+ /** Whether this ticket definition is hidden to site visitors and can't be purchased. */
31
+ hidden?: boolean;
32
+ /**
33
+ * Whether the ticket has a limited maximum quantity.
34
+ * @readonly
35
+ */
36
+ limited?: boolean;
37
+ /** The maximum number of tickets that can be sold for the event when first defining the event. If a seating map is defined after you created a ticket definition, this property is ignored and `actualLimit` is used instead. */
38
+ initialLimit?: number | null;
39
+ /**
40
+ * The maximum number of tickets that can be sold for the event after adding a seating map to the event. If no seating map is defined, this property is the same as `initialLimit`.
41
+ * @readonly
42
+ */
43
+ actualLimit?: number | null;
44
+ /** Ticket pricing method. */
45
+ pricingMethod?: PricingMethod;
46
+ /** Whether fee is included in the ticket price or customer pays it additionally at checkout. */
47
+ feeType?: Type;
48
+ /** Ticket sale period. */
49
+ salePeriod?: SalePeriod;
50
+ /**
51
+ * Ticket sale status.
52
+ * @readonly
53
+ */
54
+ saleStatus?: SaleStatusEnumStatus;
55
+ /**
56
+ * Ticket sales information. <br>
57
+ * **Note:** This field is only returned when `SALES_DETAILS` fieldset is included in the request.
58
+ */
59
+ salesDetails?: SalesDetails;
60
+ /**
61
+ * Number of tickets that can be purchased per checkout. <br>
62
+ * **Note:** If the `actuaLimit` or `salesDetails.unsoldCount` field value is smaller than `limitPerCheckout`, then it overrides this field.
63
+ * @readonly
64
+ */
65
+ limitPerCheckout?: number | null;
66
+ /** Data extensions. */
67
+ extendedFields?: ExtendedFields;
68
+ /**
69
+ * Associated event information. <br>
70
+ * **Note:** This field is only returned when `EVENT_DETAILS` fieldset is included in the request.
71
+ */
72
+ eventDetails?: EventDetails;
73
+ }
74
+ export interface SalePeriod {
75
+ /** Ticket sale start timestamp. */
76
+ startDate?: Date | null;
77
+ /** Ticket sale end timestamp. */
78
+ endDate?: Date | null;
79
+ /** Whether to display the ticket if it's not available to buy. */
80
+ displayNotOnSale?: boolean;
81
+ }
82
+ export interface PricingMethod extends PricingMethodPriceOneOf {
83
+ /** Same ticket price for everyone. */
84
+ fixedPrice?: CommonMoney;
85
+ /** Guests choose how much they'd like to pay for the ticket. You can set the minimum price, or make the ticket free(enter `0` in the request). The price can be updated to a higher amount by a guest during the checkout. */
86
+ guestPrice?: CommonMoney;
87
+ /** Sets of various ticket prices. For example, you can charge different prices for children and adults. */
88
+ pricingOptions?: PricingOptions;
89
+ /**
90
+ * Ticket price type.
91
+ * @readonly
92
+ */
93
+ pricingType?: PricingTypeEnumType;
94
+ /**
95
+ * Whether the ticket is free. To create a free ticket, enter `0` in the `pricingMethod.fixedPrice.value` field.
96
+ * @readonly
97
+ */
98
+ free?: boolean;
99
+ }
100
+ /** @oneof */
101
+ export interface PricingMethodPriceOneOf {
102
+ /** Same ticket price for everyone. */
103
+ fixedPrice?: CommonMoney;
104
+ /** Guests choose how much they'd like to pay for the ticket. You can set the minimum price, or make the ticket free(enter `0` in the request). The price can be updated to a higher amount by a guest during the checkout. */
105
+ guestPrice?: CommonMoney;
106
+ /** Sets of various ticket prices. For example, you can charge different prices for children and adults. */
107
+ pricingOptions?: PricingOptions;
108
+ }
109
+ /**
110
+ * Money.
111
+ * Default format to use. Sufficiently compliant with majority of standards: w3c, ISO 4217, ISO 20022, ISO 8583:2003.
112
+ */
113
+ export interface CommonMoney {
114
+ /** 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. */
115
+ value?: string;
116
+ /** Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD). */
117
+ currency?: string;
118
+ }
119
+ export interface PricingOptions {
120
+ /** Ticket price option details. */
121
+ optionDetails?: OptionDetails[];
122
+ }
123
+ export interface OptionDetails {
124
+ /** Ticket price option ID. */
125
+ optionId?: string | null;
126
+ /** Ticket price option name, such as "Child Ticket". */
127
+ name?: string | null;
128
+ /** Ticket price. */
129
+ price?: CommonMoney;
130
+ }
131
+ export declare enum PricingTypeEnumType {
132
+ /** Undefined pricing type. */
133
+ UNKNOWN_PRICING_TYPE = "UNKNOWN_PRICING_TYPE",
134
+ /** All money goes to a seller. Applies to all ticket pricing methods except for `guestPrice`. */
135
+ STANDARD = "STANDARD",
136
+ /** All collected money is a donation. This pricing type is automatically assigned when you select the `guestPrice` pricing method. */
137
+ DONATION = "DONATION"
138
+ }
139
+ export declare enum Type {
140
+ /** Unknown fee type. */
141
+ UNKNOWN_FEE_TYPE = "UNKNOWN_FEE_TYPE",
142
+ /** The fee is deducted from the ticket price for a seller. For example, if you're selling tickets for $10, then a ticket service fee of $0.25 will be deducted from the price and you'll get $9.75. */
143
+ FEE_INCLUDED = "FEE_INCLUDED",
144
+ /** The fee is shown in addition to the ticket price at checkout and a guest pays the fee. For example, if you sell tickets for $10, a customer will see a ticket service fee of $0.25 and will pay $10.25 in total. */
145
+ FEE_ADDED_AT_CHECKOUT = "FEE_ADDED_AT_CHECKOUT",
146
+ /** Ticket service fee is not collected. Available only for free tickets and legacy users. */
147
+ NO_FEE = "NO_FEE"
148
+ }
149
+ export declare enum SaleStatusEnumStatus {
150
+ /** Undefined sale status. */
151
+ UNKNOWN_SALE_STATUS = "UNKNOWN_SALE_STATUS",
152
+ /** Tickets are not on sale yet. */
153
+ SALE_SCHEDULED = "SALE_SCHEDULED",
154
+ /** Tickets are on sale. */
155
+ SALE_STARTED = "SALE_STARTED",
156
+ /** Tickets are not on sale. */
157
+ SALE_ENDED = "SALE_ENDED"
158
+ }
159
+ export interface SalesDetails {
160
+ /**
161
+ * Number of tickets that have not been purchased yet. The field is `null` if the ticket quantity is unlimited.
162
+ * @readonly
163
+ */
164
+ unsoldCount?: number | null;
165
+ /**
166
+ * Number of purchased tickets.
167
+ * @readonly
168
+ */
169
+ soldCount?: number | null;
170
+ /**
171
+ * Number of reserved tickets.
172
+ * @readonly
173
+ */
174
+ reservedCount?: number | null;
175
+ /**
176
+ * Whether the tickets are sold out.
177
+ * @readonly
178
+ */
179
+ soldOut?: boolean | null;
180
+ }
181
+ export interface ExtendedFields {
182
+ /**
183
+ * Extended field data. Each key corresponds to the namespace of the app that created the extended fields.
184
+ * The value of each key is structured according to the schema defined when the extended fields were configured.
185
+ *
186
+ * You can only access fields for which you have the appropriate permissions.
187
+ *
188
+ * Learn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields).
189
+ */
190
+ namespaces?: Record<string, Record<string, any>>;
191
+ }
192
+ export interface EventDetails {
193
+ /**
194
+ * Event title.
195
+ * @readonly
196
+ */
197
+ title?: string | null;
198
+ /**
199
+ * Event short description.
200
+ * @readonly
201
+ */
202
+ shortDescription?: string | null;
203
+ /**
204
+ * Event location.
205
+ * @readonly
206
+ */
207
+ location?: Location;
208
+ /**
209
+ * Event date and time settings.
210
+ * @readonly
211
+ */
212
+ dateAndTimeSettings?: DateAndTimeSettings;
213
+ /**
214
+ * Event page URL components.
215
+ * @readonly
216
+ */
217
+ eventPageUrl?: PageUrl;
218
+ /**
219
+ * Event status.
220
+ * @readonly
221
+ */
222
+ status?: Status;
223
+ }
224
+ export interface Location {
225
+ /** Location name. This value is displayed instead of the address when the location is defined as TBD by setting the `locationTbd` property to `true`. */
226
+ name?: string | null;
227
+ /** Location type. */
228
+ type?: LocationType;
229
+ /** Exact location address. */
230
+ address?: CommonAddress;
231
+ /** Whether the event location is TBD. */
232
+ locationTbd?: boolean | null;
233
+ }
234
+ export declare enum LocationType {
235
+ /** Unknown location type. */
236
+ UNKNOWN_LOCATION = "UNKNOWN_LOCATION",
237
+ /** Event is on-site at a specific physical location. */
238
+ VENUE = "VENUE",
239
+ /** Event is online, such as a virtual video conference. */
240
+ ONLINE = "ONLINE"
241
+ }
242
+ /** Physical address */
243
+ export interface CommonAddress extends CommonAddressStreetOneOf {
244
+ /** Street address. */
245
+ streetAddress?: CommonStreetAddress;
246
+ /** Primary address information (street and building number). */
247
+ addressLine?: string | null;
248
+ /** 2-letter country code in [ISO-3166 alpha-2](https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements) format. */
249
+ country?: string | null;
250
+ /** Code for a subdivision (such as state, prefecture, or province) in [ISO 3166-2](https://en.wikipedia.org/wiki/ISO_3166-2). */
251
+ subdivision?: string | null;
252
+ /** City name. */
253
+ city?: string | null;
254
+ /** Zip or postal code. */
255
+ postalCode?: string | null;
256
+ /** Secondary address information (suite or apartment number and room number). */
257
+ addressLine2?: string | null;
258
+ }
259
+ /** @oneof */
260
+ export interface CommonAddressStreetOneOf {
261
+ /** Street address. */
262
+ streetAddress?: CommonStreetAddress;
263
+ /** Primary address information (street and building number). */
264
+ addressLine?: string | null;
265
+ }
266
+ export interface CommonStreetAddress {
267
+ /** Street number. */
268
+ number?: string;
269
+ /** Street name. */
270
+ name?: string;
271
+ }
272
+ export interface CommonAddressLocation {
273
+ /** Address latitude coordinates. */
274
+ latitude?: number | null;
275
+ /** Address longitude coordinates. */
276
+ longitude?: number | null;
277
+ }
278
+ export interface CommonSubdivision {
279
+ /** Short subdivision code. */
280
+ code?: string;
281
+ /** Subdivision full name. */
282
+ name?: string;
283
+ }
284
+ export declare enum SubdivisionSubdivisionType {
285
+ UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
286
+ /** State */
287
+ ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
288
+ /** County */
289
+ ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
290
+ /** City/town */
291
+ ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
292
+ /** Neighborhood/quarter */
293
+ ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
294
+ /** Street/block */
295
+ ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
296
+ /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
297
+ COUNTRY = "COUNTRY"
298
+ }
299
+ export interface DateAndTimeSettings {
300
+ /** Whether the event date and time are TBD. */
301
+ dateAndTimeTbd?: boolean | null;
302
+ /** Message that is displayed when time and date is TBD. */
303
+ dateAndTimeTbdMessage?: string | null;
304
+ /** Event start date. */
305
+ startDate?: Date | null;
306
+ /** Event end date. */
307
+ endDate?: Date | null;
308
+ /** Event time zone ID in the [TZ database](https://www.iana.org/time-zones) format. */
309
+ timeZoneId?: string | null;
310
+ /** Whether the end date is hidden in the formatted date and time. */
311
+ hideEndDate?: boolean | null;
312
+ /** Whether the time zone is displayed in the formatted schedule. */
313
+ showTimeZone?: boolean | null;
314
+ /**
315
+ * Repeating event status.
316
+ * @readonly
317
+ */
318
+ recurrenceStatus?: RecurrenceStatusStatus;
319
+ /** Event repetitions. */
320
+ recurringEvents?: Recurrences;
321
+ /** Formatted date and time settings. */
322
+ formatted?: Formatted;
323
+ }
324
+ export declare enum RecurrenceStatusStatus {
325
+ /** Unknown recurrance status. */
326
+ UNKNOWN_STATUS = "UNKNOWN_STATUS",
327
+ /** Event happens only once and can last multiple days. */
328
+ ONE_TIME = "ONE_TIME",
329
+ /** A series of events that repeat. */
330
+ RECURRING = "RECURRING",
331
+ /** Next event in a schedule of recurring events. */
332
+ RECURRING_UPCOMING = "RECURRING_UPCOMING",
333
+ /** Latest event that ended in a schedule of recurring events. */
334
+ RECURRING_RECENTLY_ENDED = "RECURRING_RECENTLY_ENDED",
335
+ /** Latest canceled event in a schedule of recurring events */
336
+ RECURRING_RECENTLY_CANCELED = "RECURRING_RECENTLY_CANCELED"
337
+ }
338
+ export interface Recurrences {
339
+ /** Individual event dates. */
340
+ individualEventDates?: Occurrence[];
341
+ /**
342
+ * Recurring event category ID.
343
+ * @readonly
344
+ */
345
+ categoryId?: string | null;
346
+ }
347
+ export interface Occurrence {
348
+ /** Event start date. */
349
+ startDate?: Date | null;
350
+ /** Event end date. */
351
+ endDate?: Date | null;
352
+ /** Event time zone ID in the [TZ database](https://www.iana.org/time-zones) format. */
353
+ timeZoneId?: string | null;
354
+ /** Whether the time zone is displayed in a formatted schedule. */
355
+ showTimeZone?: boolean;
356
+ }
357
+ export interface Formatted {
358
+ /**
359
+ * Formatted date and time representation. <br>
360
+ * Example of formatting when an event lasts multiple days and is in the UTC time zone: `September 1, 2015 at 10:20 AM – September 5, 2015 at 12:14 PM`. <br>
361
+ * Example of formatting when an event lasts 1 day and is in the GMT+2 time zone: `February 1, 2018, 12:10 – 2:50 PM GMT+2`.
362
+ * @readonly
363
+ */
364
+ dateAndTime?: string | null;
365
+ /**
366
+ * Formatted start date of the event. Empty for TBD schedules.
367
+ * @readonly
368
+ */
369
+ startDate?: string | null;
370
+ /**
371
+ * Formatted start time of the event. Empty for TBD schedules.
372
+ * @readonly
373
+ */
374
+ startTime?: string | null;
375
+ /**
376
+ * Formatted end date of the event. Empty for TBD schedules or when the end date is hidden.
377
+ * @readonly
378
+ */
379
+ endDate?: string | null;
380
+ /**
381
+ * Formatted end time of the event. Empty for TBD schedules or when the end date is hidden.
382
+ * @readonly
383
+ */
384
+ endTime?: string | null;
385
+ }
386
+ export interface PageUrl {
387
+ /** The base URL. For premium sites, the base is the domain. For free sites, the base is the Wix site URL (for example, `https://mysite.wixsite.com/mysite`). */
388
+ base?: string;
389
+ /** The path to the page. For example, `/product-page/a-product`. */
390
+ path?: string;
391
+ }
392
+ export declare enum Status {
393
+ /** Unknown event status. */
394
+ UNKNOWN_EVENT_STATUS = "UNKNOWN_EVENT_STATUS",
395
+ /** Event is published and scheduled to start. */
396
+ UPCOMING = "UPCOMING",
397
+ /** Event has started. */
398
+ STARTED = "STARTED",
399
+ /** Event has ended. */
400
+ ENDED = "ENDED",
401
+ /** Event is canceled. */
402
+ CANCELED = "CANCELED",
403
+ /** Event is not public. */
404
+ DRAFT = "DRAFT"
405
+ }
406
+ export interface SalePeriodUpdated {
407
+ /** Ticket definition sale period after update. */
408
+ afterUpdate?: SalePeriod;
409
+ }
410
+ export interface TicketDefinitionSaleStarted {
411
+ /** Ticket definition. */
412
+ ticketDefinition?: TicketDefinition;
413
+ }
414
+ export interface TicketDefinitionSaleEnded {
415
+ /** Ticket definition. */
416
+ ticketDefinition?: TicketDefinition;
417
+ }
418
+ export interface DomainEvent extends DomainEventBodyOneOf {
419
+ createdEvent?: EntityCreatedEvent;
420
+ updatedEvent?: EntityUpdatedEvent;
421
+ deletedEvent?: EntityDeletedEvent;
422
+ actionEvent?: ActionEvent;
423
+ /**
424
+ * Unique event ID.
425
+ * Allows clients to ignore duplicate webhooks.
426
+ */
427
+ id?: string;
428
+ /**
429
+ * Assumes actions are also always typed to an entity_type
430
+ * Example: wix.stores.catalog.product, wix.bookings.session, wix.payments.transaction
431
+ */
432
+ entityFqdn?: string;
433
+ /**
434
+ * This is top level to ease client code dispatching of messages (switch on entity_fqdn+slug)
435
+ * This is although the created/updated/deleted notion is duplication of the oneof types
436
+ * Example: created/updated/deleted/started/completed/email_opened
437
+ */
438
+ slug?: string;
439
+ /** ID of the entity associated with the event. */
440
+ entityId?: string;
441
+ /** Event timestamp in [ISO-8601](https://en.wikipedia.org/wiki/ISO_8601) format and UTC time. For example: 2020-04-26T13:57:50.699Z */
442
+ eventTime?: Date | null;
443
+ /**
444
+ * Whether the event was triggered as a result of a privacy regulation application
445
+ * (for example, GDPR).
446
+ */
447
+ triggeredByAnonymizeRequest?: boolean | null;
448
+ /** If present, indicates the action that triggered the event. */
449
+ originatedFrom?: string | null;
450
+ /**
451
+ * A sequence number defining the order of updates to the underlying entity.
452
+ * For example, given that some entity was updated at 16:00 and than again at 16:01,
453
+ * it is guaranteed that the sequence number of the second update is strictly higher than the first.
454
+ * As the consumer, you can use this value to ensure that you handle messages in the correct order.
455
+ * To do so, you will need to persist this number on your end, and compare the sequence number from the
456
+ * message against the one you have stored. Given that the stored number is higher, you should ignore the message.
457
+ */
458
+ entityEventSequence?: string | null;
459
+ }
460
+ /** @oneof */
461
+ export interface DomainEventBodyOneOf {
462
+ createdEvent?: EntityCreatedEvent;
463
+ updatedEvent?: EntityUpdatedEvent;
464
+ deletedEvent?: EntityDeletedEvent;
465
+ actionEvent?: ActionEvent;
466
+ }
467
+ export interface EntityCreatedEvent {
468
+ entityAsJson?: string;
469
+ /** Indicates the event was triggered by a restore-from-trashbin operation for a previously deleted entity */
470
+ restoreInfo?: RestoreInfo;
471
+ }
472
+ export interface RestoreInfo {
473
+ deletedDate?: Date | null;
474
+ }
475
+ export interface EntityUpdatedEvent {
476
+ /**
477
+ * Since platformized APIs only expose PATCH and not PUT we can't assume that the fields sent from the client are the actual diff.
478
+ * This means that to generate a list of changed fields (as opposed to sent fields) one needs to traverse both objects.
479
+ * We don't want to impose this on all developers and so we leave this traversal to the notification recipients which need it.
480
+ */
481
+ currentEntityAsJson?: string;
482
+ }
483
+ export interface EntityDeletedEvent {
484
+ /** Entity that was deleted */
485
+ deletedEntityAsJson?: string | null;
486
+ }
487
+ export interface ActionEvent {
488
+ bodyAsJson?: string;
489
+ }
490
+ export interface MessageEnvelope {
491
+ /** App instance ID. */
492
+ instanceId?: string | null;
493
+ /** Event type. */
494
+ eventType?: string;
495
+ /** The identification type and identity data. */
496
+ identity?: IdentificationData;
497
+ /** Stringify payload. */
498
+ data?: string;
499
+ }
500
+ export interface IdentificationData extends IdentificationDataIdOneOf {
501
+ /** ID of a site visitor that has not logged in to the site. */
502
+ anonymousVisitorId?: string;
503
+ /** ID of a site visitor that has logged in to the site. */
504
+ memberId?: string;
505
+ /** ID of a Wix user (site owner, contributor, etc.). */
506
+ wixUserId?: string;
507
+ /** ID of an app. */
508
+ appId?: string;
509
+ /** @readonly */
510
+ identityType?: WebhookIdentityType;
511
+ }
512
+ /** @oneof */
513
+ export interface IdentificationDataIdOneOf {
514
+ /** ID of a site visitor that has not logged in to the site. */
515
+ anonymousVisitorId?: string;
516
+ /** ID of a site visitor that has logged in to the site. */
517
+ memberId?: string;
518
+ /** ID of a Wix user (site owner, contributor, etc.). */
519
+ wixUserId?: string;
520
+ /** ID of an app. */
521
+ appId?: string;
522
+ }
523
+ export declare enum WebhookIdentityType {
524
+ UNKNOWN = "UNKNOWN",
525
+ ANONYMOUS_VISITOR = "ANONYMOUS_VISITOR",
526
+ MEMBER = "MEMBER",
527
+ WIX_USER = "WIX_USER",
528
+ APP = "APP"
529
+ }
530
+ export interface InvalidateCache extends InvalidateCacheGetByOneOf {
531
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
532
+ metaSiteId?: string;
533
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
534
+ siteId?: string;
535
+ /** Invalidate by App */
536
+ app?: App;
537
+ /** Invalidate by page id */
538
+ page?: Page;
539
+ /** Invalidate by URI path */
540
+ uri?: URI;
541
+ /** Invalidate by file (for media files such as PDFs) */
542
+ file?: File;
543
+ /** tell us why you're invalidating the cache. You don't need to add your app name */
544
+ reason?: string | null;
545
+ /** Is local DS */
546
+ localDc?: boolean;
547
+ hardPurge?: boolean;
548
+ }
549
+ /** @oneof */
550
+ export interface InvalidateCacheGetByOneOf {
551
+ /** Invalidate by msId. NOT recommended, as this will invalidate the entire site cache! */
552
+ metaSiteId?: string;
553
+ /** Invalidate by Site ID. NOT recommended, as this will invalidate the entire site cache! */
554
+ siteId?: string;
555
+ /** Invalidate by App */
556
+ app?: App;
557
+ /** Invalidate by page id */
558
+ page?: Page;
559
+ /** Invalidate by URI path */
560
+ uri?: URI;
561
+ /** Invalidate by file (for media files such as PDFs) */
562
+ file?: File;
563
+ }
564
+ export interface App {
565
+ /** The AppDefId */
566
+ appDefId?: string;
567
+ /** The instance Id */
568
+ instanceId?: string;
569
+ }
570
+ export interface Page {
571
+ /** the msid the page is on */
572
+ metaSiteId?: string;
573
+ /** Invalidate by Page ID */
574
+ pageId?: string;
575
+ }
576
+ export interface URI {
577
+ /** the msid the URI is on */
578
+ metaSiteId?: string;
579
+ /** URI path to invalidate (e.g. page/my/path) - without leading/trailing slashes */
580
+ uriPath?: string;
581
+ }
582
+ export interface File {
583
+ /** the msid the file is related to */
584
+ metaSiteId?: string;
585
+ /** Invalidate by filename (for media files such as PDFs) */
586
+ fileName?: string;
587
+ }
588
+ export interface GetTicketDefinitionSummaryRequest {
589
+ /** Ticket definition id. */
590
+ ticketDefinitionId?: string | null;
591
+ }
592
+ export interface GetTicketDefinitionSummaryResponse {
593
+ /** Summary. */
594
+ summary?: TicketDefinitionSummary;
595
+ }
596
+ export interface TicketDefinitionSummary {
597
+ /**
598
+ * Ticket definition ID.
599
+ * @readonly
600
+ */
601
+ definitionId?: string | null;
602
+ /**
603
+ * Event ID to which the ticket definition summary belongs.
604
+ * @readonly
605
+ */
606
+ eventId?: string | null;
607
+ /**
608
+ * Date and time of the ticket definition summary latest update in `yyyy-mm-ddThh:mm:sssZ` format.
609
+ * @readonly
610
+ */
611
+ updatedDate?: Date | null;
612
+ /**
613
+ * Reserved count.
614
+ * @readonly
615
+ */
616
+ reservedCount?: number;
617
+ /**
618
+ * Sold count.
619
+ * @readonly
620
+ */
621
+ soldCount?: number;
622
+ /**
623
+ * Paid exists.
624
+ * @readonly
625
+ */
626
+ paidExists?: boolean;
627
+ }
628
+ export interface ListEventTicketingSummaryRequest {
629
+ /** Event ID. */
630
+ eventId?: string[];
631
+ }
632
+ export interface ListEventTicketingSummaryResponse {
633
+ /** Ticketing summaries. */
634
+ summaries?: EventTicketingSummary[];
635
+ }
636
+ export interface EventTicketingSummary {
637
+ /**
638
+ * Event ID to which the ticketing summary belongs.
639
+ * @readonly
640
+ */
641
+ eventId?: string | null;
642
+ /**
643
+ * Date and time of the ticketing summary latest update in `yyyy-mm-ddThh:mm:sssZ` format.
644
+ * @readonly
645
+ */
646
+ updatedDate?: Date | null;
647
+ /**
648
+ * Whether all tickets are sold for this event.
649
+ * @readonly
650
+ */
651
+ soldOut?: boolean | null;
652
+ /**
653
+ * Price of lowest priced ticket.
654
+ * @readonly
655
+ */
656
+ lowestTicketPrice?: CommonMoney;
657
+ /**
658
+ * Price of highest priced ticket.
659
+ * @readonly
660
+ */
661
+ highestTicketPrice?: CommonMoney;
662
+ /**
663
+ * Currency used in event transactions.
664
+ * @readonly
665
+ */
666
+ currency?: string | null;
667
+ /**
668
+ * Formatted price of lowest priced ticket.
669
+ * @readonly
670
+ */
671
+ lowestTicketPriceFormatted?: string | null;
672
+ /**
673
+ * Formatted price of highest priced ticket.
674
+ * @readonly
675
+ */
676
+ highestTicketPriceFormatted?: string | null;
677
+ }
678
+ export interface Empty {
679
+ }
680
+ export interface ReservationCreated {
681
+ /** Reservation created timestamp in ISO UTC format. */
682
+ timestamp?: Date | null;
683
+ /** Event ID. */
684
+ eventId?: string;
685
+ /**
686
+ * Reservation ID.
687
+ * Can be used to retrieve a reservation invoice.
688
+ */
689
+ reservationId?: string;
690
+ /** Reservation expiration timestamp. */
691
+ expires?: Date | null;
692
+ /** Reservation status. */
693
+ status?: ReservationStatus;
694
+ /** Reservation ticket quantities. */
695
+ quantities?: TicketQuantity[];
696
+ /** Reservation update timestamp. */
697
+ updatedDate?: Date | null;
698
+ /** Reservation counts. */
699
+ counts?: ReservationCount[];
700
+ }
701
+ export declare enum ReservationStatus {
702
+ /** The Reservation is pending confirmation and will expire after the expiration due time. */
703
+ RESERVATION_PENDING = "RESERVATION_PENDING",
704
+ /** The reservation is confirmed and will not expire. */
705
+ RESERVATION_CONFIRMED = "RESERVATION_CONFIRMED",
706
+ /** The reservation is canceled because of non payment. */
707
+ RESERVATION_CANCELED = "RESERVATION_CANCELED",
708
+ /** The reservation is canceled manually by the buyer. */
709
+ RESERVATION_CANCELED_MANUALLY = "RESERVATION_CANCELED_MANUALLY",
710
+ /** The reservation is expired. */
711
+ RESERVATION_EXPIRED = "RESERVATION_EXPIRED"
712
+ }
713
+ export interface TicketQuantity {
714
+ /** Ticket definition ID. */
715
+ ticketDefinitionId?: string | null;
716
+ /** Quantity. */
717
+ quantity?: number | null;
718
+ /** Quantity update timestamp. */
719
+ updatedDate?: Date | null;
720
+ }
721
+ export interface ReservationCount {
722
+ /** Reservation Count snapshot timestamp. */
723
+ timestamp?: Date | null;
724
+ /** Ticket Definition ID. */
725
+ ticketDefinitionId?: string;
726
+ /** Confirmed reservation count. */
727
+ confirmedCount?: number;
728
+ /** Pending reservation count. */
729
+ pendingCount?: number;
730
+ /** True if paid ticket reservation exist. */
731
+ paidExists?: boolean;
732
+ }
733
+ export interface ReservationUpdated {
734
+ /** Reservation updated timestamp. */
735
+ timestamp?: Date | null;
736
+ /** Event ID. */
737
+ eventId?: string;
738
+ /**
739
+ * Reservation ID.
740
+ * Can be used to retrieve a reservation invoice.
741
+ */
742
+ reservationId?: string;
743
+ /** Reservation status. */
744
+ status?: ReservationStatus;
745
+ /** Reservation expiration timestamp. */
746
+ expires?: Date | null;
747
+ /** Reservation ticket quantities. */
748
+ quantities?: TicketQuantity[];
749
+ /** Reservation update timestamp. */
750
+ updatedDate?: Date | null;
751
+ /** Reservation counts. */
752
+ counts?: ReservationCount[];
753
+ }
754
+ export interface EventDeleted {
755
+ /** Event deleted timestamp in ISO UTC format. */
756
+ timestamp?: Date | null;
757
+ /** Event ID. */
758
+ eventId?: string;
759
+ /** Event title. */
760
+ title?: string;
761
+ /** Event creator user ID. */
762
+ userId?: string | null;
763
+ }
764
+ export interface CreateTicketDefinitionRequest {
765
+ /** Ticket definition info. */
766
+ ticketDefinition: TicketDefinition;
767
+ /** Predefined sets of fields to return. */
768
+ fields?: Field[];
769
+ }
770
+ export declare enum Field {
771
+ /** Unknown requested field. */
772
+ UNKNOWN_REQUESTED_FIELD = "UNKNOWN_REQUESTED_FIELD",
773
+ /** Returns `salesDetails` in the response. */
774
+ SALES_DETAILS = "SALES_DETAILS",
775
+ /** Returns `eventDetails` in the response. */
776
+ EVENT_DETAILS = "EVENT_DETAILS"
777
+ }
778
+ export interface CreateTicketDefinitionResponse {
779
+ /** Created ticket definition. */
780
+ ticketDefinition?: TicketDefinition;
781
+ }
782
+ export interface UpdateTicketDefinitionRequest {
783
+ /** Ticket definition to update. */
784
+ ticketDefinition: TicketDefinition;
785
+ /** Predefined sets of fields to return. */
786
+ fields?: Field[];
787
+ }
788
+ export interface UpdateTicketDefinitionResponse {
789
+ /** The updated ticket definition. */
790
+ ticketDefinition?: TicketDefinition;
791
+ }
792
+ export interface GetTicketDefinitionRequest {
793
+ /** Ticket definition ID. */
794
+ ticketDefinitionId: string;
795
+ /** Predefined sets of fields to return. */
796
+ fields?: Field[];
797
+ }
798
+ export interface GetTicketDefinitionResponse {
799
+ /** The requested ticket definition. */
800
+ ticketDefinition?: TicketDefinition;
801
+ }
802
+ export interface DeleteTicketDefinitionRequest {
803
+ /** ID of the ticket definition to delete. */
804
+ ticketDefinitionId: string;
805
+ }
806
+ export interface DeleteTicketDefinitionResponse {
807
+ }
808
+ export interface ReorderTicketDefinitionsRequest extends ReorderTicketDefinitionsRequestReferenceDefinitionOneOf {
809
+ /** Move the given `definitionId` before the referenced ticket definition. */
810
+ beforeDefinitionId?: string;
811
+ /** Move the given `definitionId` after the referenced ticket definition. */
812
+ afterDefinitionId?: string;
813
+ /** Event ID. */
814
+ eventId: string;
815
+ /** Ticket definition ID. */
816
+ ticketDefinitionId: string;
817
+ }
818
+ /** @oneof */
819
+ export interface ReorderTicketDefinitionsRequestReferenceDefinitionOneOf {
820
+ /** Move the given `definitionId` before the referenced ticket definition. */
821
+ beforeDefinitionId?: string;
822
+ /** Move the given `definitionId` after the referenced ticket definition. */
823
+ afterDefinitionId?: string;
824
+ }
825
+ export interface ReorderTicketDefinitionsResponse {
826
+ }
827
+ export interface UpdateTicketDefinitionSortIndexRequest {
828
+ /** Ticket definition ID */
829
+ ticketDefinitionId?: string;
830
+ /** The revision of the ticket definition */
831
+ revision?: string;
832
+ /** the sort index of a ticket definition to set */
833
+ sortIndex?: number;
834
+ /** Requested fields. */
835
+ fields?: Field[];
836
+ }
837
+ export interface UpdateTicketDefinitionSortIndexResponse {
838
+ /** the updated ticket definition */
839
+ ticketDefinition?: TicketDefinition;
840
+ }
841
+ export interface QueryTicketDefinitionsRequest {
842
+ /** Query options. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details. */
843
+ query: QueryV2;
844
+ /** Predefined sets of fields to return. */
845
+ fields?: Field[];
846
+ }
847
+ export interface QueryV2 extends QueryV2PagingMethodOneOf {
848
+ /** Paging options to limit and skip the number of items. */
849
+ paging?: Paging;
850
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort` parameters. */
851
+ cursorPaging?: CursorPaging;
852
+ /** Filter object in the following format: <br/> `"filter" : { "fieldName1": "value1", "fieldName2":{"$operator":"value2"} }`. <br/> <br/> **Example:** <br/> `"filter" : { "id": "2224a9d1-79e6-4549-a5c5-bf7ce5aac1a5", "revision": {"$ne":"1"} }` */
853
+ filter?: Record<string, any> | null;
854
+ /** Sort object in the following format: <br/> `[{"fieldName":"sortField1"},{"fieldName":"sortField2","direction":"DESC"}]` <br/> <br/> **Example:** <br/> `[{"fieldName":"createdDate","direction":"DESC"}]` <br/> <br/> See [supported fields](https://dev.wix.com/api/rest/wix-events/policy-v2/filter-and-sort) for more information. */
855
+ sort?: Sorting[];
856
+ }
857
+ /** @oneof */
858
+ export interface QueryV2PagingMethodOneOf {
859
+ /** Paging options to limit and skip the number of items. */
860
+ paging?: Paging;
861
+ /** Cursor token pointing to a page of results. Not used in the first request. Following requests use the cursor token and not `filter` or `sort` parameters. */
862
+ cursorPaging?: CursorPaging;
863
+ }
864
+ export interface Sorting {
865
+ /** Name of the field to sort by. */
866
+ fieldName?: string;
867
+ /** Defaults to `ASC` */
868
+ order?: SortOrder;
869
+ }
870
+ export declare enum SortOrder {
871
+ ASC = "ASC",
872
+ DESC = "DESC"
873
+ }
874
+ export interface Paging {
875
+ /** Number of items to load per page. */
876
+ limit?: number | null;
877
+ /** Number of items to skip in the current sort order. */
878
+ offset?: number | null;
879
+ }
880
+ export interface CursorPaging {
881
+ /** Number of items to load per page. */
882
+ limit?: number | null;
883
+ /**
884
+ * Pointer to the next or previous page in the list of results.
885
+ * You can get the relevant cursor token
886
+ * from the `pagingMetadata` object in the previous call's response.
887
+ * Not relevant for the first request.
888
+ */
889
+ cursor?: string | null;
890
+ }
891
+ export interface QueryTicketDefinitionsResponse {
892
+ /** List of ticket definitions. */
893
+ ticketDefinitions?: TicketDefinition[];
894
+ /** Metadata for the paginated results. */
895
+ metadata?: PagingMetadataV2;
896
+ }
897
+ export interface PagingMetadataV2 {
898
+ /** Number of items returned in the response. */
899
+ count?: number | null;
900
+ /** Offset that was requested. */
901
+ offset?: number | null;
902
+ /** Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set. */
903
+ total?: number | null;
904
+ /** Flag that indicates the server failed to calculate the `total` field. */
905
+ tooManyToCount?: boolean | null;
906
+ /** Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used. */
907
+ cursors?: Cursors;
908
+ }
909
+ export interface Cursors {
910
+ /** Cursor pointing to next page in the list of results. */
911
+ next?: string | null;
912
+ /** Cursor pointing to previous page in the list of results. */
913
+ prev?: string | null;
914
+ }
915
+ export interface QueryAvailableTicketDefinitionsRequest {
916
+ /** Query options. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details. */
917
+ query: QueryV2;
918
+ /** Predefined sets of fields to return. */
919
+ fields?: Field[];
920
+ }
921
+ export interface QueryAvailableTicketDefinitionsResponse {
922
+ /** List of ticket definitions. */
923
+ ticketDefinitions?: TicketDefinition[];
924
+ /** Metadata for the paginated results. */
925
+ metadata?: PagingMetadataV2;
926
+ }
927
+ export interface CountTicketDefinitionsRequest {
928
+ /** Filter object in the following format: <br/> `"filter" : { "fieldName1": "value1" }`. */
929
+ filter?: Record<string, any> | null;
930
+ /**
931
+ * Parameters to count ticket definitions by.
932
+ *
933
+ * - Max: 20 facets.
934
+ */
935
+ facet?: string[];
936
+ }
937
+ export interface CountTicketDefinitionsResponse {
938
+ /** Metadata for the paginated results. */
939
+ metadata?: PagingMetadataV2;
940
+ /** Filter facets. */
941
+ facets?: Record<string, FacetCounts>;
942
+ }
943
+ export interface FacetCounts {
944
+ /** Facet counts aggregated per value */
945
+ counts?: Record<string, number>;
946
+ }
947
+ export interface CountAvailableTicketDefinitionsRequest {
948
+ /** Filter object in the following format: <br/> `"filter" : { "fieldName1": "value1" }`. */
949
+ filter?: Record<string, any> | null;
950
+ }
951
+ export interface CountAvailableTicketDefinitionsResponse {
952
+ /** Metadata for the paginated results. */
953
+ metadata?: PagingMetadataV2;
954
+ }
955
+ export interface BulkDeleteTicketDefinitionsByFilterRequest {
956
+ /** Filter object in the following format: <br/> `"filter" : { "fieldName1": "value1" }`. <br/> <br/> **Example:** <br/> `"filter" : { "eventId": "3d3d5c04-ece0-45a8-85f0-11a58edaa192" }` */
957
+ filter: Record<string, any> | null;
958
+ }
959
+ export interface BulkDeleteTicketDefinitionsByFilterResponse {
960
+ }
961
+ export interface ChangeCurrencyRequest {
962
+ /** Event ID. */
963
+ eventId: string;
964
+ /** Ticket price currency in 3-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. */
965
+ currency: string;
966
+ }
967
+ export interface ChangeCurrencyResponse {
968
+ }
969
+ export interface BulkCopyTicketDefinitionsByEventIdRequest {
970
+ /** Origin instance ID. */
971
+ originInstanceId?: string | null;
972
+ /** Origin Event ID. */
973
+ originEventId?: string;
974
+ /** Target Event ID. */
975
+ targetEventId?: string;
976
+ }
977
+ export interface BulkCopyTicketDefinitionsByEventIdResponse {
978
+ /** Copied ticket definitions. */
979
+ definitions?: CopiedTicketDefinition[];
980
+ }
981
+ export interface CopiedTicketDefinition {
982
+ /** Origin Ticket definition ID. */
983
+ originTicketDefinitionId?: string;
984
+ /** Ticket definition ID. */
985
+ ticketDefinitionId?: string;
986
+ }
987
+ export interface EventCanceled {
988
+ /** Event canceled timestamp in ISO UTC format. */
989
+ timestamp?: Date | null;
990
+ /** Event ID. */
991
+ eventId?: string;
992
+ /** Event title */
993
+ title?: string;
994
+ /** Event creator user ID. */
995
+ userId?: string | null;
996
+ }
997
+ export interface EventEnded {
998
+ /** Event end timestamp in ISO UTC format. */
999
+ timestamp?: Date | null;
1000
+ /** Event ID. */
1001
+ eventId?: string;
1002
+ }
1003
+ export interface EventCreated {
1004
+ /** Event created timestamp in ISO UTC format. */
1005
+ timestamp?: Date | null;
1006
+ /** Event ID. */
1007
+ eventId?: string;
1008
+ /** Event location. */
1009
+ location?: EventsLocation;
1010
+ /** Event schedule configuration. */
1011
+ scheduleConfig?: ScheduleConfig;
1012
+ /** Event title. */
1013
+ title?: string;
1014
+ /** Event creator user ID. */
1015
+ userId?: string | null;
1016
+ /** Event status. */
1017
+ status?: EventStatus;
1018
+ /** Instance ID. Indicates the original app instance which current event was derived from. */
1019
+ derivedFromInstanceId?: string | null;
1020
+ /** Event ID. Indicates the original event which current event was derived from. */
1021
+ derivedFromEventId?: string | null;
1022
+ /** Event that was created. */
1023
+ event?: Event;
1024
+ }
1025
+ export interface EventsLocation {
1026
+ /** Location name. */
1027
+ name?: string | null;
1028
+ /** Location map coordinates. */
1029
+ coordinates?: MapCoordinates;
1030
+ /** Single line address representation. */
1031
+ address?: string | null;
1032
+ /** Location type. */
1033
+ type?: LocationLocationType;
1034
+ /**
1035
+ * Full address derived from formatted single line `address`.
1036
+ * When `full_address` is used to create or update the event, deprecated `address` and `coordinates` are ignored.
1037
+ * If provided `full_address` has empty `formatted_address` or `coordinates`, it will be auto-completed using Atlas service.
1038
+ *
1039
+ * Migration notes:
1040
+ * - `full_address.formatted_address` is equivalent to `address`.
1041
+ * - `full_address.geocode` is equivalent to `coordinates`.
1042
+ */
1043
+ fullAddress?: Address;
1044
+ /**
1045
+ * Defines event location as TBD (To Be Determined).
1046
+ * When event location is not yet defined, `name` is displayed instead of location address.
1047
+ * `coordinates`, `address`, `type` and `full_address` are not required when location is TBD.
1048
+ */
1049
+ tbd?: boolean | null;
1050
+ }
1051
+ export interface MapCoordinates {
1052
+ /** Latitude. */
1053
+ lat?: number;
1054
+ /** Longitude. */
1055
+ lng?: number;
1056
+ }
1057
+ export declare enum LocationLocationType {
1058
+ VENUE = "VENUE",
1059
+ ONLINE = "ONLINE"
1060
+ }
1061
+ /** Physical address */
1062
+ export interface Address extends AddressStreetOneOf {
1063
+ /** a break down of the street to number and street name */
1064
+ streetAddress?: StreetAddress;
1065
+ /** Main address line (usually street and number) as free text */
1066
+ addressLine?: string | null;
1067
+ /** country code */
1068
+ country?: string | null;
1069
+ /** subdivision (usually state or region) code according to ISO 3166-2 */
1070
+ subdivision?: string | null;
1071
+ /** city name */
1072
+ city?: string | null;
1073
+ /** zip/postal code */
1074
+ postalCode?: string | null;
1075
+ /** Free text providing more detailed address info. Usually contains Apt, Suite, Floor */
1076
+ addressLine2?: string | null;
1077
+ /** A string containing the human-readable address of this location */
1078
+ formattedAddress?: string | null;
1079
+ /** Free text for human-to-human textual orientation aid purposes */
1080
+ hint?: string | null;
1081
+ /** coordinates of the physical address */
1082
+ geocode?: AddressLocation;
1083
+ /** country full-name */
1084
+ countryFullname?: string | null;
1085
+ /** multi-level subdivisions from top to bottom */
1086
+ subdivisions?: Subdivision[];
1087
+ }
1088
+ /** @oneof */
1089
+ export interface AddressStreetOneOf {
1090
+ /** a break down of the street to number and street name */
1091
+ streetAddress?: StreetAddress;
1092
+ /** Main address line (usually street and number) as free text */
1093
+ addressLine?: string | null;
1094
+ }
1095
+ export interface StreetAddress {
1096
+ /** street number */
1097
+ number?: string;
1098
+ /** street name */
1099
+ name?: string;
1100
+ }
1101
+ export interface AddressLocation {
1102
+ /** address latitude coordinates */
1103
+ latitude?: number | null;
1104
+ /** address longitude coordinates */
1105
+ longitude?: number | null;
1106
+ }
1107
+ export interface Subdivision {
1108
+ /** subdivision short code */
1109
+ code?: string;
1110
+ /** subdivision full-name */
1111
+ name?: string;
1112
+ }
1113
+ export declare enum SubdivisionType {
1114
+ UNKNOWN_SUBDIVISION_TYPE = "UNKNOWN_SUBDIVISION_TYPE",
1115
+ /** State */
1116
+ ADMINISTRATIVE_AREA_LEVEL_1 = "ADMINISTRATIVE_AREA_LEVEL_1",
1117
+ /** County */
1118
+ ADMINISTRATIVE_AREA_LEVEL_2 = "ADMINISTRATIVE_AREA_LEVEL_2",
1119
+ /** City/town */
1120
+ ADMINISTRATIVE_AREA_LEVEL_3 = "ADMINISTRATIVE_AREA_LEVEL_3",
1121
+ /** Neighborhood/quarter */
1122
+ ADMINISTRATIVE_AREA_LEVEL_4 = "ADMINISTRATIVE_AREA_LEVEL_4",
1123
+ /** Street/block */
1124
+ ADMINISTRATIVE_AREA_LEVEL_5 = "ADMINISTRATIVE_AREA_LEVEL_5",
1125
+ /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
1126
+ COUNTRY = "COUNTRY"
1127
+ }
1128
+ export interface ScheduleConfig {
1129
+ /**
1130
+ * Defines event as TBD (To Be Determined) schedule.
1131
+ * When event time is not yet defined, TBD message is displayed instead of event start and end times.
1132
+ * `startDate`, `endDate` and `timeZoneId` are not required when schedule is TBD.
1133
+ */
1134
+ scheduleTbd?: boolean;
1135
+ /** TBD message. */
1136
+ scheduleTbdMessage?: string | null;
1137
+ /** Event start timestamp. */
1138
+ startDate?: Date | null;
1139
+ /** Event end timestamp. */
1140
+ endDate?: Date | null;
1141
+ /** Event time zone ID in TZ database format, e.g., `EST`, `America/Los_Angeles`. */
1142
+ timeZoneId?: string | null;
1143
+ /** Whether end date is hidden in the formatted schedule. */
1144
+ endDateHidden?: boolean;
1145
+ /** Whether time zone is displayed in formatted schedule. */
1146
+ showTimeZone?: boolean;
1147
+ /** Event recurrences. */
1148
+ recurrences?: EventsRecurrences;
1149
+ }
1150
+ export interface EventsRecurrences {
1151
+ /** Event occurrences. */
1152
+ occurrences?: EventsOccurrence[];
1153
+ /**
1154
+ * Recurring event category ID.
1155
+ * @readonly
1156
+ */
1157
+ categoryId?: string | null;
1158
+ /**
1159
+ * Recurrence status.
1160
+ * @readonly
1161
+ */
1162
+ status?: EventsRecurrenceStatusStatus;
1163
+ }
1164
+ export interface EventsOccurrence {
1165
+ /** Event start timestamp. */
1166
+ startDate?: Date | null;
1167
+ /** Event end timestamp. */
1168
+ endDate?: Date | null;
1169
+ /** Event time zone ID in TZ database format, e.g., `EST`, `America/Los_Angeles`. */
1170
+ timeZoneId?: string | null;
1171
+ /** Whether time zone is displayed in formatted schedule. */
1172
+ showTimeZone?: boolean;
1173
+ }
1174
+ export declare enum EventsRecurrenceStatusStatus {
1175
+ /** Event occurs only once. */
1176
+ ONE_TIME = "ONE_TIME",
1177
+ /** Event is recurring. */
1178
+ RECURRING = "RECURRING",
1179
+ /** Marks the next upcoming occurrence of the recurring event. */
1180
+ RECURRING_NEXT = "RECURRING_NEXT",
1181
+ /** Marks the most recent ended occurrence of the recurring event. */
1182
+ RECURRING_LAST_ENDED = "RECURRING_LAST_ENDED",
1183
+ /** Marks the most recent canceled occurrence of the recurring event. */
1184
+ RECURRING_LAST_CANCELED = "RECURRING_LAST_CANCELED"
1185
+ }
1186
+ export declare enum EventStatus {
1187
+ /** Event is public and scheduled to start */
1188
+ SCHEDULED = "SCHEDULED",
1189
+ /** Event has started */
1190
+ STARTED = "STARTED",
1191
+ /** Event has ended */
1192
+ ENDED = "ENDED",
1193
+ /** Event was canceled */
1194
+ CANCELED = "CANCELED"
1195
+ }
1196
+ export interface Event {
1197
+ /**
1198
+ * Event ID.
1199
+ * @readonly
1200
+ */
1201
+ id?: string;
1202
+ /** Event location. */
1203
+ location?: EventsLocation;
1204
+ /** Event scheduling. */
1205
+ scheduling?: Scheduling;
1206
+ /** Event title. */
1207
+ title?: string;
1208
+ /** Event description. */
1209
+ description?: string;
1210
+ /** Rich-text content displayed in Wix UI - "About Event" section (HTML). */
1211
+ about?: string;
1212
+ /** Main event image. */
1213
+ mainImage?: Image;
1214
+ /** Event slug URL (generated from event title). */
1215
+ slug?: string;
1216
+ /** ISO 639-1 language code of the event (used in content translations). */
1217
+ language?: string;
1218
+ /** Event creation timestamp. */
1219
+ created?: Date | null;
1220
+ /** Event modified timestamp. */
1221
+ modified?: Date | null;
1222
+ /** Event status. */
1223
+ status?: EventStatus;
1224
+ /** RSVP or ticketing registration details. */
1225
+ registration?: Registration;
1226
+ /** "Add to calendar" URLs. */
1227
+ calendarLinks?: CalendarLinks;
1228
+ /** Event page URL components. */
1229
+ eventPageUrl?: SiteUrl;
1230
+ /** Event registration form. */
1231
+ form?: Form;
1232
+ /** Event dashboard summary of RSVP / ticket sales. */
1233
+ dashboard?: Dashboard;
1234
+ /** Instance ID of the site where event is hosted. */
1235
+ instanceId?: string;
1236
+ /** Guest list configuration. */
1237
+ guestListConfig?: GuestListConfig;
1238
+ /** Event creator user ID. */
1239
+ userId?: string;
1240
+ /** Event discussion feed. For internal use. */
1241
+ feed?: Feed;
1242
+ /** Online conferencing details. */
1243
+ onlineConferencing?: OnlineConferencing;
1244
+ /** SEO settings. */
1245
+ seoSettings?: SeoSettings;
1246
+ /** Assigned contacts label key. */
1247
+ assignedContactsLabel?: string | null;
1248
+ /** Agenda details. */
1249
+ agenda?: Agenda;
1250
+ /** Categories this event is assigned to. */
1251
+ categories?: Category[];
1252
+ /** Visual settings for event. */
1253
+ eventDisplaySettings?: EventDisplaySettings;
1254
+ /** Rich content displayed in Wix UI - "About Event" section. Successor to `about` field. */
1255
+ longDescription?: RichContent;
1256
+ }
1257
+ export interface Scheduling {
1258
+ /** Schedule configuration. */
1259
+ config?: ScheduleConfig;
1260
+ /** Formatted schedule representation. */
1261
+ formatted?: string;
1262
+ /** Formatted start date of the event (empty for TBD schedules). */
1263
+ startDateFormatted?: string;
1264
+ /** Formatted start time of the event (empty for TBD schedules). */
1265
+ startTimeFormatted?: string;
1266
+ /** Formatted end date of the event (empty for TBD schedules or when end date is hidden). */
1267
+ endDateFormatted?: string;
1268
+ /** Formatted end time of the event (empty for TBD schedules or when end date is hidden). */
1269
+ endTimeFormatted?: string;
1270
+ }
1271
+ export interface Image {
1272
+ /** WixMedia image ID. */
1273
+ id?: string | null;
1274
+ /** Image URL. */
1275
+ url?: string;
1276
+ /** Original image height. */
1277
+ height?: number | null;
1278
+ /** Original image width. */
1279
+ width?: number | null;
1280
+ /** Image alt text. Optional. */
1281
+ altText?: string | null;
1282
+ }
1283
+ export interface Registration {
1284
+ /** Event type. */
1285
+ type?: EventType;
1286
+ /** Event registration status. */
1287
+ status?: RegistrationStatus;
1288
+ /** RSVP collection details. */
1289
+ rsvpCollection?: RsvpCollection;
1290
+ /** Ticketing details. */
1291
+ ticketing?: Ticketing;
1292
+ /** External registration details. */
1293
+ external?: ExternalEvent;
1294
+ /** Types of users allowed to register. */
1295
+ restrictedTo?: VisitorType;
1296
+ /** Initial event type which was set when creating an event. */
1297
+ initialType?: EventType;
1298
+ }
1299
+ export declare enum EventType {
1300
+ /** Type not available for this request fieldset */
1301
+ NA_EVENT_TYPE = "NA_EVENT_TYPE",
1302
+ /** Registration via RSVP */
1303
+ RSVP = "RSVP",
1304
+ /** Registration via ticket purchase */
1305
+ TICKETS = "TICKETS",
1306
+ /** External registration */
1307
+ EXTERNAL = "EXTERNAL",
1308
+ /** Registration not available */
1309
+ NO_REGISTRATION = "NO_REGISTRATION"
1310
+ }
1311
+ export declare enum RegistrationStatus {
1312
+ /** Registration status is not applicable */
1313
+ NA_REGISTRATION_STATUS = "NA_REGISTRATION_STATUS",
1314
+ /** Registration to event is closed */
1315
+ CLOSED = "CLOSED",
1316
+ /** Registration to event is closed manually */
1317
+ CLOSED_MANUALLY = "CLOSED_MANUALLY",
1318
+ /** Registration is open via RSVP */
1319
+ OPEN_RSVP = "OPEN_RSVP",
1320
+ /** Registration to event waitlist is open via RSVP */
1321
+ OPEN_RSVP_WAITLIST = "OPEN_RSVP_WAITLIST",
1322
+ /** Registration is open via ticket purchase */
1323
+ OPEN_TICKETS = "OPEN_TICKETS",
1324
+ /** Registration is open via external URL */
1325
+ OPEN_EXTERNAL = "OPEN_EXTERNAL",
1326
+ /** Registration will be open via RSVP */
1327
+ SCHEDULED_RSVP = "SCHEDULED_RSVP"
1328
+ }
1329
+ export interface RsvpCollection {
1330
+ /** RSVP collection configuration. */
1331
+ config?: RsvpCollectionConfig;
1332
+ }
1333
+ export interface RsvpCollectionConfig {
1334
+ /** Defines the supported RSVP statuses. */
1335
+ rsvpStatusOptions?: RsvpStatusOptions;
1336
+ /**
1337
+ * Total guest limit available to register to the event.
1338
+ * Additional guests per RSVP are counted towards total guests.
1339
+ */
1340
+ limit?: number | null;
1341
+ /** Whether a waitlist is opened when total guest limit is reached, allowing guests to create RSVP with WAITING RSVP status. */
1342
+ waitlist?: boolean;
1343
+ /** Registration start timestamp. */
1344
+ startDate?: Date | null;
1345
+ /** Registration end timestamp. */
1346
+ endDate?: Date | null;
1347
+ }
1348
+ export declare enum RsvpStatusOptions {
1349
+ /** Only YES RSVP status is available for RSVP registration */
1350
+ YES_ONLY = "YES_ONLY",
1351
+ /** YES and NO RSVP status options are available for the registration */
1352
+ YES_AND_NO = "YES_AND_NO"
1353
+ }
1354
+ export interface Ticketing {
1355
+ /**
1356
+ * Deprecated.
1357
+ * @deprecated
1358
+ */
1359
+ lowestPrice?: string | null;
1360
+ /**
1361
+ * Deprecated.
1362
+ * @deprecated
1363
+ */
1364
+ highestPrice?: string | null;
1365
+ /** Currency used in event transactions. */
1366
+ currency?: string | null;
1367
+ /** Ticketing configuration. */
1368
+ config?: TicketingConfig;
1369
+ /**
1370
+ * Price of lowest priced ticket.
1371
+ * @readonly
1372
+ */
1373
+ lowestTicketPrice?: Money;
1374
+ /**
1375
+ * Price of highest priced ticket.
1376
+ * @readonly
1377
+ */
1378
+ highestTicketPrice?: Money;
1379
+ /**
1380
+ * Formatted price of lowest priced ticket.
1381
+ * @readonly
1382
+ */
1383
+ lowestTicketPriceFormatted?: string | null;
1384
+ /**
1385
+ * Formatted price of highest priced ticket.
1386
+ * @readonly
1387
+ */
1388
+ highestTicketPriceFormatted?: string | null;
1389
+ /**
1390
+ * Whether all tickets are sold for this event.
1391
+ * @readonly
1392
+ */
1393
+ soldOut?: boolean | null;
1394
+ }
1395
+ export interface TicketingConfig {
1396
+ /** Whether the form must be filled out separately for each ticket. */
1397
+ guestAssignedTickets?: boolean;
1398
+ /** Tax configuration. */
1399
+ taxConfig?: TaxConfig;
1400
+ /** Limit of tickets that can be purchased per order, default 20. */
1401
+ ticketLimitPerOrder?: number;
1402
+ /** Duration for which the tickets being bought are reserved. */
1403
+ reservationDurationInMinutes?: number | null;
1404
+ }
1405
+ export interface TaxConfig {
1406
+ /** Tax application settings. */
1407
+ type?: TaxType;
1408
+ /** Tax name. */
1409
+ name?: string | null;
1410
+ /** Tax rate (e.g.,`21.55`). */
1411
+ rate?: string | null;
1412
+ /** Applies taxes for donations, default true. */
1413
+ appliesToDonations?: boolean | null;
1414
+ }
1415
+ export declare enum TaxType {
1416
+ /** Tax is included in the ticket price. */
1417
+ INCLUDED = "INCLUDED",
1418
+ /** Tax is added to the order at the checkout. */
1419
+ ADDED = "ADDED",
1420
+ /** Tax is added to the final total at the checkout. */
1421
+ ADDED_AT_CHECKOUT = "ADDED_AT_CHECKOUT"
1422
+ }
1423
+ export interface Money {
1424
+ /**
1425
+ * *Deprecated:** Use `value` instead.
1426
+ * @deprecated
1427
+ */
1428
+ amount?: string;
1429
+ /** ISO 4217 format of the currency e.g., `USD`. */
1430
+ currency?: string;
1431
+ /** Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, starts with a single (-), to indicate that the amount is negative. */
1432
+ value?: string | null;
1433
+ }
1434
+ export interface ExternalEvent {
1435
+ /** External event registration URL. */
1436
+ registration?: string;
1437
+ }
1438
+ export declare enum VisitorType {
1439
+ /** Site visitor (including member) */
1440
+ VISITOR = "VISITOR",
1441
+ /** Site member */
1442
+ MEMBER = "MEMBER",
1443
+ /** Site visitor or member */
1444
+ VISITOR_OR_MEMBER = "VISITOR_OR_MEMBER"
1445
+ }
1446
+ export interface CalendarLinks {
1447
+ /** "Add to Google calendar" URL. */
1448
+ google?: string;
1449
+ /** "Download ICS calendar file" URL. */
1450
+ ics?: string;
1451
+ }
1452
+ /** Site URL components */
1453
+ export interface SiteUrl {
1454
+ /**
1455
+ * Base URL. For premium sites, this will be the domain.
1456
+ * For free sites, this would be site URL (e.g `mysite.wixsite.com/mysite`)
1457
+ */
1458
+ base?: string;
1459
+ /** The path to that page - e.g `/my-events/weekly-meetup-2` */
1460
+ path?: string;
1461
+ }
1462
+ /**
1463
+ * The form defines which elements are rendered in the Wix UI during the registration process (RSVP or checkout).
1464
+ * It also contains customizable messages and labels.
1465
+ *
1466
+ *
1467
+ * A form is an ordered list of controls (blocks), which accept guest information into a field input.
1468
+ *
1469
+ * Each control contains one or more nested inputs. For example, `Name` control has two inputs:
1470
+ * - First Name
1471
+ * - Last Name
1472
+ *
1473
+ * By default, name and email controls are always required and are pinned to the top of the form.
1474
+ */
1475
+ export interface Form {
1476
+ /** Nested fields as an ordered list. */
1477
+ controls?: InputControl[];
1478
+ /** Set of configured form messages. */
1479
+ messages?: FormMessages;
1480
+ }
1481
+ /**
1482
+ * A block of nested fields.
1483
+ * Used to aggregate similar inputs like First Name and Last Name.
1484
+ */
1485
+ export interface InputControl {
1486
+ /** Field control type. */
1487
+ type?: InputControlType;
1488
+ /** Whether control is mandatory (such as name & email). When true, only label can be changed. */
1489
+ system?: boolean;
1490
+ /**
1491
+ * Deprecated: Use `id`.
1492
+ * @deprecated
1493
+ */
1494
+ name?: string;
1495
+ /** Child inputs. */
1496
+ inputs?: Input[];
1497
+ /**
1498
+ * Deprecated: use `inputs.label`.
1499
+ * @deprecated
1500
+ */
1501
+ label?: string;
1502
+ /** Field controls are sorted by this value in ascending order. */
1503
+ orderIndex?: number;
1504
+ /** Unique control ID. */
1505
+ id?: string;
1506
+ /**
1507
+ * Whether input control is deleted.
1508
+ * @readonly
1509
+ */
1510
+ deleted?: boolean | null;
1511
+ }
1512
+ export declare enum InputControlType {
1513
+ /** Single text value field. */
1514
+ INPUT = "INPUT",
1515
+ /** Single text value field. */
1516
+ TEXTAREA = "TEXTAREA",
1517
+ /** Single-choice field of predefined values. */
1518
+ DROPDOWN = "DROPDOWN",
1519
+ /** Single-choice field of predefined values. */
1520
+ RADIO = "RADIO",
1521
+ /** Multiple-choice field of predefined values. */
1522
+ CHECKBOX = "CHECKBOX",
1523
+ /** First and last name fields. */
1524
+ NAME = "NAME",
1525
+ /** Additional guests and respective guest names fields. */
1526
+ GUEST_CONTROL = "GUEST_CONTROL",
1527
+ /** Single-line address field. */
1528
+ ADDRESS_SHORT = "ADDRESS_SHORT",
1529
+ /** Full address field. */
1530
+ ADDRESS_FULL = "ADDRESS_FULL",
1531
+ /** Year, month and day fields. */
1532
+ DATE = "DATE"
1533
+ }
1534
+ /** An input of one or multiple text values */
1535
+ export interface Input {
1536
+ /** Field name. */
1537
+ name?: string;
1538
+ /**
1539
+ * Deprecated: use `ValueType.TEXT_ARRAY`.
1540
+ * @deprecated
1541
+ */
1542
+ array?: boolean;
1543
+ /** Main field label */
1544
+ label?: string;
1545
+ /** Additional labels for multi-valued fields such as address. */
1546
+ additionalLabels?: Record<string, string>;
1547
+ /** Predefined choice options for fields, such as dropdown. */
1548
+ options?: string[];
1549
+ /** Whether field is mandatory. */
1550
+ mandatory?: boolean;
1551
+ /** Maximum number of accepted characters (relevant for text fields). */
1552
+ maxLength?: number;
1553
+ /**
1554
+ * Type which determines field format.
1555
+ * Used to validate submitted response.
1556
+ */
1557
+ type?: ValueType;
1558
+ /**
1559
+ * A maximum accepted values for array input.
1560
+ * Only applicable for inputs of valueType: TEXT_ARRAY.
1561
+ */
1562
+ maxSize?: number | null;
1563
+ /**
1564
+ * Preselected option.
1565
+ * Currently only applicable for dropdown.
1566
+ */
1567
+ defaultOptionSelection?: OptionSelection;
1568
+ /**
1569
+ * Additional labels for multi-valued fields such as address.
1570
+ * @readonly
1571
+ */
1572
+ labels?: Label[];
1573
+ }
1574
+ export declare enum ValueType {
1575
+ TEXT = "TEXT",
1576
+ NUMBER = "NUMBER",
1577
+ TEXT_ARRAY = "TEXT_ARRAY",
1578
+ DATE_TIME = "DATE_TIME",
1579
+ ADDRESS = "ADDRESS"
1580
+ }
1581
+ /**
1582
+ * Describes initially selected option when an input has multiple choices.
1583
+ * Defaults to first (0th) option if not configured.
1584
+ */
1585
+ export interface OptionSelection extends OptionSelectionSelectedOptionOneOf {
1586
+ /** 0-based index from predefined `input.options` which is selected initially. */
1587
+ optionIndex?: number;
1588
+ /**
1589
+ * Placeholder hint describing expected choices (such as "Please select").
1590
+ * Considered an empty choice.
1591
+ */
1592
+ placeholderText?: string;
1593
+ }
1594
+ /** @oneof */
1595
+ export interface OptionSelectionSelectedOptionOneOf {
1596
+ /** 0-based index from predefined `input.options` which is selected initially. */
1597
+ optionIndex?: number;
1598
+ /**
1599
+ * Placeholder hint describing expected choices (such as "Please select").
1600
+ * Considered an empty choice.
1601
+ */
1602
+ placeholderText?: string;
1603
+ }
1604
+ export interface Label {
1605
+ /** Field name. */
1606
+ name?: string;
1607
+ /** Field label. */
1608
+ label?: string;
1609
+ }
1610
+ /**
1611
+ * Defines form messages shown in UI before, during, and after registration flow.
1612
+ * It enables configuration of form titles, response labels, "thank you" messages, and call-to-action texts.
1613
+ */
1614
+ export interface FormMessages {
1615
+ /** RSVP form messages. */
1616
+ rsvp?: RsvpFormMessages;
1617
+ /** Checkout form messages. */
1618
+ checkout?: CheckoutFormMessages;
1619
+ /** Messages shown when event registration is closed. */
1620
+ registrationClosed?: RegistrationClosedMessages;
1621
+ /** Messages shown when event tickets are unavailable. */
1622
+ ticketsUnavailable?: TicketsUnavailableMessages;
1623
+ }
1624
+ export interface RsvpFormMessages {
1625
+ /** Label text indicating RSVP `YES` response. */
1626
+ rsvpYesOption?: string;
1627
+ /** Label text indicating RSVP `NO` response. */
1628
+ rsvpNoOption?: string;
1629
+ /** Messages shown for RSVP = `YES`. */
1630
+ positiveMessages?: Positive;
1631
+ /** Messages shown for RSVP = `WAITING` (when event is full and waitlist is available). */
1632
+ waitlistMessages?: Positive;
1633
+ /** Messages shown for RSVP = `NO`. */
1634
+ negativeMessages?: Negative;
1635
+ /** "Submit form" call-to-action label text. */
1636
+ submitActionLabel?: string;
1637
+ }
1638
+ /** Confirmation messages shown after registration. */
1639
+ export interface PositiveResponseConfirmation {
1640
+ /** Confirmation message title. */
1641
+ title?: string;
1642
+ /** Confirmation message text. */
1643
+ message?: string;
1644
+ /** "Add to calendar" call-to-action label text. */
1645
+ addToCalendarActionLabel?: string;
1646
+ /** "Share event" call-to-action label text. */
1647
+ shareActionLabel?: string;
1648
+ }
1649
+ /** Confirmation messages shown after registration. */
1650
+ export interface NegativeResponseConfirmation {
1651
+ /** Confirmation message title. */
1652
+ title?: string;
1653
+ /** "Share event" call-to-action label text. */
1654
+ shareActionLabel?: string;
1655
+ }
1656
+ /** Set of messages shown during registration when RSVP response is positive. */
1657
+ export interface Positive {
1658
+ /** Main form title for positive response. */
1659
+ title?: string;
1660
+ /** Confirmation messages shown after registration. */
1661
+ confirmation?: PositiveResponseConfirmation;
1662
+ }
1663
+ /** A set of messages shown during registration with negative response */
1664
+ export interface Negative {
1665
+ /** Main form title for negative response. */
1666
+ title?: string;
1667
+ /** Confirmation messages shown after registration. */
1668
+ confirmation?: NegativeResponseConfirmation;
1669
+ }
1670
+ export interface CheckoutFormMessages {
1671
+ /** Main form title for response. */
1672
+ title?: string;
1673
+ /** Submit form call-to-action label text. */
1674
+ submitActionLabel?: string;
1675
+ /** Confirmation messages shown after checkout. */
1676
+ confirmation?: ResponseConfirmation;
1677
+ }
1678
+ /** Confirmation messages shown after checkout. */
1679
+ export interface ResponseConfirmation {
1680
+ /** Confirmation message title. */
1681
+ title?: string;
1682
+ /** Confirmation message text. */
1683
+ message?: string;
1684
+ /** "Download tickets" call-to-action label text. */
1685
+ downloadTicketsLabel?: string;
1686
+ /** "Add to calendar" call-to-action label text. */
1687
+ addToCalendarLabel?: string;
1688
+ /** "Share event" call-to-action label text. */
1689
+ shareEventLabel?: string;
1690
+ }
1691
+ export interface RegistrationClosedMessages {
1692
+ /** Message shown when event registration is closed. */
1693
+ message?: string;
1694
+ /** "Explore other events" call-to-action label text. */
1695
+ exploreEventsActionLabel?: string;
1696
+ }
1697
+ export interface TicketsUnavailableMessages {
1698
+ /** Message shown when event tickets are unavailable. */
1699
+ message?: string;
1700
+ /** "Explore other events" call-to-action label text. */
1701
+ exploreEventsActionLabel?: string;
1702
+ }
1703
+ export interface Dashboard {
1704
+ /** Guest RSVP summary. */
1705
+ rsvpSummary?: RsvpSummary;
1706
+ /**
1707
+ * Summary of revenue and tickets sold.
1708
+ * (Archived orders are not included).
1709
+ */
1710
+ ticketingSummary?: TicketingSummary;
1711
+ }
1712
+ export interface RsvpSummary {
1713
+ /** Total number of RSVPs. */
1714
+ total?: number;
1715
+ /** Number of RSVPs with status `YES`. */
1716
+ yes?: number;
1717
+ /** Number of RSVPs with status `NO`. */
1718
+ no?: number;
1719
+ /** Number of RSVPs in waitlist. */
1720
+ waitlist?: number;
1721
+ }
1722
+ export interface TicketingSummary {
1723
+ /** Number of tickets sold. */
1724
+ tickets?: number;
1725
+ /**
1726
+ * Total revenue, excluding fees.
1727
+ * (taxes and payment provider fees are not deducted.)
1728
+ */
1729
+ revenue?: Money;
1730
+ /** Whether currency is locked and cannot be changed (generally occurs after the first order in the specified currency has been created). */
1731
+ currencyLocked?: boolean;
1732
+ /** Number of orders placed. */
1733
+ orders?: number;
1734
+ /** Total balance of confirmed transactions. */
1735
+ totalSales?: Money;
1736
+ }
1737
+ export interface GuestListConfig {
1738
+ /** Whether members can see other members attending the event (defaults to true). */
1739
+ publicGuestList?: boolean;
1740
+ }
1741
+ export interface Feed {
1742
+ /** Event discussion feed token. */
1743
+ token?: string;
1744
+ }
1745
+ export interface OnlineConferencing {
1746
+ config?: OnlineConferencingConfig;
1747
+ session?: OnlineConferencingSession;
1748
+ }
1749
+ export interface OnlineConferencingConfig {
1750
+ /**
1751
+ * Whether online conferencing is enabled (not supported for TBD schedules).
1752
+ * When enabled, links to join conferencing are generated and provided to guests.
1753
+ */
1754
+ enabled?: boolean;
1755
+ /** Conferencing provider ID. */
1756
+ providerId?: string | null;
1757
+ /** Conference type */
1758
+ conferenceType?: ConferenceType;
1759
+ }
1760
+ export declare enum ConferenceType {
1761
+ /** Everyone in the meeting can publish and subscribe video and audio. */
1762
+ MEETING = "MEETING",
1763
+ /** Guests can only subscribe to video and audio. */
1764
+ WEBINAR = "WEBINAR"
1765
+ }
1766
+ export interface OnlineConferencingSession {
1767
+ /**
1768
+ * Link for event host to start the online conference session.
1769
+ * @readonly
1770
+ */
1771
+ hostLink?: string;
1772
+ /**
1773
+ * Link for guests to join the online conference session.
1774
+ * @readonly
1775
+ */
1776
+ guestLink?: string;
1777
+ /**
1778
+ * The password required to join online conferencing session (when relevant).
1779
+ * @readonly
1780
+ */
1781
+ password?: string | null;
1782
+ /**
1783
+ * Indicates that session was created successfully on providers side.
1784
+ * @readonly
1785
+ */
1786
+ sessionCreated?: boolean | null;
1787
+ /**
1788
+ * Unique session id
1789
+ * @readonly
1790
+ */
1791
+ sessionId?: string | null;
1792
+ }
1793
+ export interface SeoSettings {
1794
+ /** URL slug */
1795
+ slug?: string;
1796
+ /** Advanced SEO data */
1797
+ advancedSeoData?: SeoSchema;
1798
+ /**
1799
+ * Hidden from SEO Site Map
1800
+ * @readonly
1801
+ */
1802
+ hidden?: boolean | null;
1803
+ }
1804
+ /**
1805
+ * 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.
1806
+ * The search engines use this information for ranking purposes, or to display snippets in the search results.
1807
+ * 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.
1808
+ */
1809
+ export interface SeoSchema {
1810
+ /** SEO tag information. */
1811
+ tags?: Tag[];
1812
+ /** SEO general settings. */
1813
+ settings?: Settings;
1814
+ }
1815
+ export interface Keyword {
1816
+ /** Keyword value. */
1817
+ term?: string;
1818
+ /** Whether the keyword is the main focus keyword. */
1819
+ isMain?: boolean;
1820
+ /** The source that added the keyword terms to the SEO settings. */
1821
+ origin?: string | null;
1822
+ }
1823
+ export interface Tag {
1824
+ /**
1825
+ * SEO tag type.
1826
+ *
1827
+ *
1828
+ * Supported values: `title`, `meta`, `script`, `link`.
1829
+ */
1830
+ type?: string;
1831
+ /**
1832
+ * A `{"key": "value"}` pair object where each SEO tag property (`"name"`, `"content"`, `"rel"`, `"href"`) contains a value.
1833
+ * For example: `{"name": "description", "content": "the description itself"}`.
1834
+ */
1835
+ props?: Record<string, any> | null;
1836
+ /** SEO tag meta data. For example, `{"height": 300, "width": 240}`. */
1837
+ meta?: Record<string, any> | null;
1838
+ /** SEO tag inner content. For example, `<title> inner content </title>`. */
1839
+ children?: string;
1840
+ /** Whether the tag is a custom tag. */
1841
+ custom?: boolean;
1842
+ /** Whether the tag is disabled. */
1843
+ disabled?: boolean;
1844
+ }
1845
+ export interface Settings {
1846
+ /**
1847
+ * Whether the Auto Redirect feature, which creates `301 redirects` on a slug change, is enabled.
1848
+ *
1849
+ *
1850
+ * Default: `false` (Auto Redirect is enabled.)
1851
+ */
1852
+ preventAutoRedirect?: boolean;
1853
+ /** User-selected keyword terms for a specific page. */
1854
+ keywords?: Keyword[];
1855
+ }
1856
+ export interface Agenda {
1857
+ /** Whether the schedule is enabled for the event. */
1858
+ enabled?: boolean;
1859
+ /**
1860
+ * Agenda page URL.
1861
+ * @readonly
1862
+ */
1863
+ pageUrl?: SiteUrl;
1864
+ }
1865
+ export interface Category {
1866
+ /**
1867
+ * Category ID.
1868
+ * @readonly
1869
+ */
1870
+ id?: string;
1871
+ /** Category name. */
1872
+ name?: string;
1873
+ /**
1874
+ * Date and time when category was created.
1875
+ * @readonly
1876
+ */
1877
+ createdDate?: Date | null;
1878
+ /**
1879
+ * The total number of draft and published events assigned to the category.
1880
+ * @readonly
1881
+ */
1882
+ counts?: CategoryCounts;
1883
+ /**
1884
+ * Category state. Possible values:
1885
+ *
1886
+ * `MANUAL`: Category is created manually by the user.
1887
+ * `AUTO`: Category is created automatically.
1888
+ * `RECURRING_EVENT`: Category is created automatically when publishing recurring events.
1889
+ * `HIDDEN`: Category can't be seen.
1890
+ *
1891
+ * Default: `MANUAL`.
1892
+ *
1893
+ * **Note:** The WIX_EVENTS.MANAGE_AUTO_CATEGORIES permission scope is required to use states other than `MANUAL`.
1894
+ */
1895
+ states?: CategoryStateState[];
1896
+ }
1897
+ export interface CategoryCounts {
1898
+ /** Total number of draft events assigned to the category. */
1899
+ assignedEventsCount?: number | null;
1900
+ /** Total number of published events assigned to the category. Deleted events are excluded. */
1901
+ assignedDraftEventsCount?: number | null;
1902
+ }
1903
+ export declare enum CategoryStateState {
1904
+ /** Created manually by the user. */
1905
+ MANUAL = "MANUAL",
1906
+ /** Created automatically. */
1907
+ AUTO = "AUTO",
1908
+ /** Created when publishing recurring events. */
1909
+ RECURRING_EVENT = "RECURRING_EVENT",
1910
+ /** Category is hidden. */
1911
+ HIDDEN = "HIDDEN"
1912
+ }
1913
+ export interface EventDisplaySettings {
1914
+ /** Whether event details button is hidden. Only available for events with no registration. */
1915
+ hideEventDetailsButton?: boolean | null;
1916
+ /** Disables event details page visibility. If event has an external registration configured visitors will be redirected from this page. */
1917
+ hideEventDetailsPage?: boolean | null;
1918
+ }
1919
+ export interface LabellingSettings {
1920
+ }
1921
+ export interface RichContent {
1922
+ /** Node objects representing a rich content document. */
1923
+ nodes?: Node[];
1924
+ /** Object metadata. */
1925
+ metadata?: Metadata;
1926
+ /** Global styling for header, paragraph, block quote, and code block nodes in the object. */
1927
+ documentStyle?: DocumentStyle;
1928
+ }
1929
+ export interface Node extends NodeDataOneOf {
1930
+ /** Data for a button node. */
1931
+ buttonData?: ButtonData;
1932
+ /** Data for a code block node. */
1933
+ codeBlockData?: CodeBlockData;
1934
+ /** Data for a divider node. */
1935
+ dividerData?: DividerData;
1936
+ /** Data for a file node. */
1937
+ fileData?: FileData;
1938
+ /** Data for a gallery node. */
1939
+ galleryData?: GalleryData;
1940
+ /** Data for a GIF node. */
1941
+ gifData?: GIFData;
1942
+ /** Data for a heading node. */
1943
+ headingData?: HeadingData;
1944
+ /** Data for an embedded HTML node. */
1945
+ htmlData?: HTMLData;
1946
+ /** Data for an image node. */
1947
+ imageData?: ImageData;
1948
+ /** Data for a link preview node. */
1949
+ linkPreviewData?: LinkPreviewData;
1950
+ /** @deprecated */
1951
+ mapData?: MapData;
1952
+ /** Data for a paragraph node. */
1953
+ paragraphData?: ParagraphData;
1954
+ /** Data for a poll node. */
1955
+ pollData?: PollData;
1956
+ /** Data for a text node. Used to apply decorations to text. */
1957
+ textData?: TextData;
1958
+ /** Data for an app embed node. */
1959
+ appEmbedData?: AppEmbedData;
1960
+ /** Data for a video node. */
1961
+ videoData?: VideoData;
1962
+ /** Data for an oEmbed node. */
1963
+ embedData?: EmbedData;
1964
+ /** Data for a collapsible list node. */
1965
+ collapsibleListData?: CollapsibleListData;
1966
+ /** Data for a table node. */
1967
+ tableData?: TableData;
1968
+ /** Data for a table cell node. */
1969
+ tableCellData?: TableCellData;
1970
+ /** Data for a custom external node. */
1971
+ externalData?: Record<string, any> | null;
1972
+ /** Data for an audio node. */
1973
+ audioData?: AudioData;
1974
+ /** Data for an ordered list node. */
1975
+ orderedListData?: OrderedListData;
1976
+ /** Data for a bulleted list node. */
1977
+ bulletedListData?: BulletedListData;
1978
+ /** Data for a block quote node. */
1979
+ blockquoteData?: BlockquoteData;
1980
+ /** Data for a caption node. */
1981
+ captionData?: CaptionData;
1982
+ /** LayoutData layout_data = 31; // Data for a layout node. Reserved for future use. */
1983
+ layoutCellData?: LayoutCellData;
1984
+ /** Node type. Use `APP_EMBED` for nodes that embed content from other Wix apps. Use `EMBED` to embed content in [oEmbed](https://oembed.com/) format. */
1985
+ type?: NodeType;
1986
+ /** Node ID. */
1987
+ id?: string;
1988
+ /** A list of child nodes. */
1989
+ nodes?: Node[];
1990
+ /** Padding and background color styling for the node. */
1991
+ style?: NodeStyle;
1992
+ }
1993
+ /** @oneof */
1994
+ export interface NodeDataOneOf {
1995
+ /** Data for a button node. */
1996
+ buttonData?: ButtonData;
1997
+ /** Data for a code block node. */
1998
+ codeBlockData?: CodeBlockData;
1999
+ /** Data for a divider node. */
2000
+ dividerData?: DividerData;
2001
+ /** Data for a file node. */
2002
+ fileData?: FileData;
2003
+ /** Data for a gallery node. */
2004
+ galleryData?: GalleryData;
2005
+ /** Data for a GIF node. */
2006
+ gifData?: GIFData;
2007
+ /** Data for a heading node. */
2008
+ headingData?: HeadingData;
2009
+ /** Data for an embedded HTML node. */
2010
+ htmlData?: HTMLData;
2011
+ /** Data for an image node. */
2012
+ imageData?: ImageData;
2013
+ /** Data for a link preview node. */
2014
+ linkPreviewData?: LinkPreviewData;
2015
+ /** @deprecated */
2016
+ mapData?: MapData;
2017
+ /** Data for a paragraph node. */
2018
+ paragraphData?: ParagraphData;
2019
+ /** Data for a poll node. */
2020
+ pollData?: PollData;
2021
+ /** Data for a text node. Used to apply decorations to text. */
2022
+ textData?: TextData;
2023
+ /** Data for an app embed node. */
2024
+ appEmbedData?: AppEmbedData;
2025
+ /** Data for a video node. */
2026
+ videoData?: VideoData;
2027
+ /** Data for an oEmbed node. */
2028
+ embedData?: EmbedData;
2029
+ /** Data for a collapsible list node. */
2030
+ collapsibleListData?: CollapsibleListData;
2031
+ /** Data for a table node. */
2032
+ tableData?: TableData;
2033
+ /** Data for a table cell node. */
2034
+ tableCellData?: TableCellData;
2035
+ /** Data for a custom external node. */
2036
+ externalData?: Record<string, any> | null;
2037
+ /** Data for an audio node. */
2038
+ audioData?: AudioData;
2039
+ /** Data for an ordered list node. */
2040
+ orderedListData?: OrderedListData;
2041
+ /** Data for a bulleted list node. */
2042
+ bulletedListData?: BulletedListData;
2043
+ /** Data for a block quote node. */
2044
+ blockquoteData?: BlockquoteData;
2045
+ /** Data for a caption node. */
2046
+ captionData?: CaptionData;
2047
+ /** LayoutData layout_data = 31; // Data for a layout node. Reserved for future use. */
2048
+ layoutCellData?: LayoutCellData;
2049
+ }
2050
+ export declare enum NodeType {
2051
+ PARAGRAPH = "PARAGRAPH",
2052
+ TEXT = "TEXT",
2053
+ HEADING = "HEADING",
2054
+ BULLETED_LIST = "BULLETED_LIST",
2055
+ ORDERED_LIST = "ORDERED_LIST",
2056
+ LIST_ITEM = "LIST_ITEM",
2057
+ BLOCKQUOTE = "BLOCKQUOTE",
2058
+ CODE_BLOCK = "CODE_BLOCK",
2059
+ VIDEO = "VIDEO",
2060
+ DIVIDER = "DIVIDER",
2061
+ FILE = "FILE",
2062
+ GALLERY = "GALLERY",
2063
+ GIF = "GIF",
2064
+ HTML = "HTML",
2065
+ IMAGE = "IMAGE",
2066
+ LINK_PREVIEW = "LINK_PREVIEW",
2067
+ /** @deprecated */
2068
+ MAP = "MAP",
2069
+ POLL = "POLL",
2070
+ APP_EMBED = "APP_EMBED",
2071
+ BUTTON = "BUTTON",
2072
+ COLLAPSIBLE_LIST = "COLLAPSIBLE_LIST",
2073
+ TABLE = "TABLE",
2074
+ EMBED = "EMBED",
2075
+ COLLAPSIBLE_ITEM = "COLLAPSIBLE_ITEM",
2076
+ COLLAPSIBLE_ITEM_TITLE = "COLLAPSIBLE_ITEM_TITLE",
2077
+ COLLAPSIBLE_ITEM_BODY = "COLLAPSIBLE_ITEM_BODY",
2078
+ TABLE_CELL = "TABLE_CELL",
2079
+ TABLE_ROW = "TABLE_ROW",
2080
+ EXTERNAL = "EXTERNAL",
2081
+ AUDIO = "AUDIO",
2082
+ CAPTION = "CAPTION",
2083
+ LAYOUT = "LAYOUT",
2084
+ LAYOUT_CELL = "LAYOUT_CELL"
2085
+ }
2086
+ export interface NodeStyle {
2087
+ /** The top padding value in pixels. */
2088
+ paddingTop?: string | null;
2089
+ /** The bottom padding value in pixels. */
2090
+ paddingBottom?: string | null;
2091
+ /** The background color as a hexadecimal value. */
2092
+ backgroundColor?: string | null;
2093
+ }
2094
+ export interface ButtonData {
2095
+ /** Styling for the button's container. */
2096
+ containerData?: PluginContainerData;
2097
+ /** The button type. */
2098
+ type?: ButtonDataType;
2099
+ /** Styling for the button. */
2100
+ styles?: Styles;
2101
+ /** The text to display on the button. */
2102
+ text?: string | null;
2103
+ /** Button link details. */
2104
+ link?: Link;
2105
+ }
2106
+ export interface Border {
2107
+ /** Border width in pixels. */
2108
+ width?: number | null;
2109
+ /** Border radius in pixels. */
2110
+ radius?: number | null;
2111
+ }
2112
+ export interface Colors {
2113
+ /** The text color as a hexadecimal value. */
2114
+ text?: string | null;
2115
+ /** The border color as a hexadecimal value. */
2116
+ border?: string | null;
2117
+ /** The background color as a hexadecimal value. */
2118
+ background?: string | null;
2119
+ }
2120
+ export interface PluginContainerData {
2121
+ /** The width of the node when it's displayed. */
2122
+ width?: PluginContainerDataWidth;
2123
+ /** The node's alignment within its container. */
2124
+ alignment?: PluginContainerDataAlignment;
2125
+ /** Spoiler cover settings for the node. */
2126
+ spoiler?: Spoiler;
2127
+ /** The height of the node when it's displayed. */
2128
+ height?: Height;
2129
+ /** Sets whether text should wrap around this node when it's displayed. If `textWrap` is `false`, the node takes up the width of its container. Defaults to `true` for all node types except 'DIVIVDER' where it defaults to `false`. */
2130
+ textWrap?: boolean | null;
2131
+ }
2132
+ export declare enum WidthType {
2133
+ /** Width matches the content width */
2134
+ CONTENT = "CONTENT",
2135
+ /** Small Width */
2136
+ SMALL = "SMALL",
2137
+ /** Width will match the original asset width */
2138
+ ORIGINAL = "ORIGINAL",
2139
+ /** coast-to-coast display */
2140
+ FULL_WIDTH = "FULL_WIDTH"
2141
+ }
2142
+ export interface PluginContainerDataWidth extends PluginContainerDataWidthDataOneOf {
2143
+ /**
2144
+ * One of the following predefined width options:
2145
+ * `CONTENT`: The width of the container matches the content width.
2146
+ * `SMALL`: A small width.
2147
+ * `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.
2148
+ * `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.
2149
+ */
2150
+ size?: WidthType;
2151
+ /** A custom width value in pixels. */
2152
+ custom?: string | null;
2153
+ }
2154
+ /** @oneof */
2155
+ export interface PluginContainerDataWidthDataOneOf {
2156
+ /**
2157
+ * One of the following predefined width options:
2158
+ * `CONTENT`: The width of the container matches the content width.
2159
+ * `SMALL`: A small width.
2160
+ * `ORIGINAL`: For `imageData` containers only. The width of the container matches the original image width.
2161
+ * `FULL_WIDTH`: For `imageData` containers only. The image container takes up the full width of the screen.
2162
+ */
2163
+ size?: WidthType;
2164
+ /** A custom width value in pixels. */
2165
+ custom?: string | null;
2166
+ }
2167
+ export declare enum PluginContainerDataAlignment {
2168
+ /** Center Alignment */
2169
+ CENTER = "CENTER",
2170
+ /** Left Alignment */
2171
+ LEFT = "LEFT",
2172
+ /** Right Alignment */
2173
+ RIGHT = "RIGHT"
2174
+ }
2175
+ export interface Spoiler {
2176
+ /** Sets whether the spoiler cover is enabled for this node. Defaults to `false`. */
2177
+ enabled?: boolean | null;
2178
+ /** The description displayed on top of the spoiler cover. */
2179
+ description?: string | null;
2180
+ /** The text for the button used to remove the spoiler cover. */
2181
+ buttonText?: string | null;
2182
+ }
2183
+ export interface Height {
2184
+ /** A custom height value in pixels. */
2185
+ custom?: string | null;
2186
+ }
2187
+ export declare enum ButtonDataType {
2188
+ /** Regular link button */
2189
+ LINK = "LINK",
2190
+ /** Triggers custom action that is defined in plugin configuration by the consumer */
2191
+ ACTION = "ACTION"
2192
+ }
2193
+ export interface Styles {
2194
+ /** Border attributes. */
2195
+ border?: Border;
2196
+ /** Color attributes. */
2197
+ colors?: Colors;
2198
+ }
2199
+ export interface Link extends LinkDataOneOf {
2200
+ /** The absolute URL for the linked document. */
2201
+ url?: string;
2202
+ /** The target node's ID. Used for linking to another node in this object. */
2203
+ anchor?: string;
2204
+ /**
2205
+ * he HTML `target` attribute value for the link. This property defines where the linked document opens as follows:
2206
+ * `SELF` - Default. Opens the linked document in the same frame as the link.
2207
+ * `BLANK` - Opens the linked document in a new browser tab or window.
2208
+ * `PARENT` - Opens the linked document in the link's parent frame.
2209
+ * `TOP` - Opens the linked document in the full body of the link's browser tab or window.
2210
+ */
2211
+ target?: Target;
2212
+ /** The HTML `rel` attribute value for the link. This object specifies the relationship between the current document and the linked document. */
2213
+ rel?: Rel;
2214
+ /** A serialized object used for a custom or external link panel. */
2215
+ customData?: string | null;
2216
+ }
2217
+ /** @oneof */
2218
+ export interface LinkDataOneOf {
2219
+ /** The absolute URL for the linked document. */
2220
+ url?: string;
2221
+ /** The target node's ID. Used for linking to another node in this object. */
2222
+ anchor?: string;
2223
+ }
2224
+ export declare enum Target {
2225
+ /** Opens the linked document in the same frame as it was clicked (this is default) */
2226
+ SELF = "SELF",
2227
+ /** Opens the linked document in a new window or tab */
2228
+ BLANK = "BLANK",
2229
+ /** Opens the linked document in the parent frame */
2230
+ PARENT = "PARENT",
2231
+ /** Opens the linked document in the full body of the window */
2232
+ TOP = "TOP"
2233
+ }
2234
+ export interface Rel {
2235
+ /** Indicates to search engine crawlers not to follow the link. Defaults to `false`. */
2236
+ nofollow?: boolean | null;
2237
+ /** Indicates to search engine crawlers that the link is a paid placement such as sponsored content or an advertisement. Defaults to `false`. */
2238
+ sponsored?: boolean | null;
2239
+ /** Indicates that this link is user-generated content and isn't necessarily trusted or endorsed by the page’s author. For example, a link in a fourm post. Defaults to `false`. */
2240
+ ugc?: boolean | null;
2241
+ /** Indicates that this link protect referral information from being passed to the target website. */
2242
+ noreferrer?: boolean | null;
2243
+ }
2244
+ export interface CodeBlockData {
2245
+ /** Styling for the code block's text. */
2246
+ textStyle?: TextStyle;
2247
+ }
2248
+ export interface TextStyle {
2249
+ /** Text alignment. Defaults to `AUTO`. */
2250
+ textAlignment?: TextAlignment;
2251
+ /** A CSS `line-height` value for the text expressed as a ratio relative to the font size. For example, if the font size is 20px, a `lineHeight` value of `'1.5'`` results in a line height of 30px. */
2252
+ lineHeight?: string | null;
2253
+ }
2254
+ export declare enum TextAlignment {
2255
+ /** browser default, eqivalent to `initial` */
2256
+ AUTO = "AUTO",
2257
+ /** Left align */
2258
+ LEFT = "LEFT",
2259
+ /** Right align */
2260
+ RIGHT = "RIGHT",
2261
+ /** Center align */
2262
+ CENTER = "CENTER",
2263
+ /** Text is spaced to line up its left and right edges to the left and right edges of the line box, except for the last line */
2264
+ JUSTIFY = "JUSTIFY"
2265
+ }
2266
+ export interface DividerData {
2267
+ /** Styling for the divider's container. */
2268
+ containerData?: PluginContainerData;
2269
+ /** Divider line style. */
2270
+ lineStyle?: LineStyle;
2271
+ /** Divider width. */
2272
+ width?: Width;
2273
+ /** Divider alignment. */
2274
+ alignment?: Alignment;
2275
+ }
2276
+ export declare enum LineStyle {
2277
+ /** Single Line */
2278
+ SINGLE = "SINGLE",
2279
+ /** Double Line */
2280
+ DOUBLE = "DOUBLE",
2281
+ /** Dashed Line */
2282
+ DASHED = "DASHED",
2283
+ /** Dotted Line */
2284
+ DOTTED = "DOTTED"
2285
+ }
2286
+ export declare enum Width {
2287
+ /** Large line */
2288
+ LARGE = "LARGE",
2289
+ /** Medium line */
2290
+ MEDIUM = "MEDIUM",
2291
+ /** Small line */
2292
+ SMALL = "SMALL"
2293
+ }
2294
+ export declare enum Alignment {
2295
+ /** Center alignment */
2296
+ CENTER = "CENTER",
2297
+ /** Left alignment */
2298
+ LEFT = "LEFT",
2299
+ /** Right alignment */
2300
+ RIGHT = "RIGHT"
2301
+ }
2302
+ export interface FileData {
2303
+ /** Styling for the file's container. */
2304
+ containerData?: PluginContainerData;
2305
+ /** The source for the file's data. */
2306
+ src?: FileSource;
2307
+ /** File name. */
2308
+ name?: string | null;
2309
+ /** File type. */
2310
+ type?: string | null;
2311
+ /**
2312
+ * Use `sizeInKb` instead.
2313
+ * @deprecated
2314
+ */
2315
+ size?: number | null;
2316
+ /** Settings for PDF files. */
2317
+ pdfSettings?: PDFSettings;
2318
+ /** File MIME type. */
2319
+ mimeType?: string | null;
2320
+ /** File path. */
2321
+ path?: string | null;
2322
+ /** File size in KB. */
2323
+ sizeInKb?: string | null;
2324
+ }
2325
+ export declare enum ViewMode {
2326
+ /** No PDF view */
2327
+ NONE = "NONE",
2328
+ /** Full PDF view */
2329
+ FULL = "FULL",
2330
+ /** Mini PDF view */
2331
+ MINI = "MINI"
2332
+ }
2333
+ export interface FileSource extends FileSourceDataOneOf {
2334
+ /** The absolute URL for the file's source. */
2335
+ url?: string | null;
2336
+ /**
2337
+ * Custom ID. Use `id` instead.
2338
+ * @deprecated
2339
+ */
2340
+ custom?: string | null;
2341
+ /** An ID that's resolved to a URL by a resolver function. */
2342
+ id?: string | null;
2343
+ /** Indicates whether the file's source is private. Defaults to `false`. */
2344
+ private?: boolean | null;
2345
+ }
2346
+ /** @oneof */
2347
+ export interface FileSourceDataOneOf {
2348
+ /** The absolute URL for the file's source. */
2349
+ url?: string | null;
2350
+ /**
2351
+ * Custom ID. Use `id` instead.
2352
+ * @deprecated
2353
+ */
2354
+ custom?: string | null;
2355
+ /** An ID that's resolved to a URL by a resolver function. */
2356
+ id?: string | null;
2357
+ }
2358
+ export interface PDFSettings {
2359
+ /**
2360
+ * PDF view mode. One of the following:
2361
+ * `NONE` : The PDF isn't displayed.
2362
+ * `FULL` : A full page view of the PDF is displayed.
2363
+ * `MINI` : A mini view of the PDF is displayed.
2364
+ */
2365
+ viewMode?: ViewMode;
2366
+ /** Sets whether the PDF download button is disabled. Defaults to `false`. */
2367
+ disableDownload?: boolean | null;
2368
+ /** Sets whether the PDF print button is disabled. Defaults to `false`. */
2369
+ disablePrint?: boolean | null;
2370
+ }
2371
+ export interface GalleryData {
2372
+ /** Styling for the gallery's container. */
2373
+ containerData?: PluginContainerData;
2374
+ /** The items in the gallery. */
2375
+ items?: Item[];
2376
+ /** Options for defining the gallery's appearance. */
2377
+ options?: GalleryOptions;
2378
+ /** Sets whether the gallery's expand button is disabled. Defaults to `false`. */
2379
+ disableExpand?: boolean | null;
2380
+ /** Sets whether the gallery's download button is disabled. Defaults to `false`. */
2381
+ disableDownload?: boolean | null;
2382
+ }
2383
+ export interface Media {
2384
+ /** The source for the media's data. */
2385
+ src?: FileSource;
2386
+ /** Media width in pixels. */
2387
+ width?: number | null;
2388
+ /** Media height in pixels. */
2389
+ height?: number | null;
2390
+ /** Media duration in seconds. Only relevant for audio and video files. */
2391
+ duration?: number | null;
2392
+ }
2393
+ export interface ItemImage {
2394
+ /** Image file details. */
2395
+ media?: Media;
2396
+ /** Link details for images that are links. */
2397
+ link?: Link;
2398
+ }
2399
+ export interface Video {
2400
+ /** Video file details. */
2401
+ media?: Media;
2402
+ /** Video thumbnail file details. */
2403
+ thumbnail?: Media;
2404
+ }
2405
+ export interface Item extends ItemDataOneOf {
2406
+ /** An image item. */
2407
+ image?: ItemImage;
2408
+ /** A video item. */
2409
+ video?: Video;
2410
+ /** Item title. */
2411
+ title?: string | null;
2412
+ /** Item's alternative text. */
2413
+ altText?: string | null;
2414
+ }
2415
+ /** @oneof */
2416
+ export interface ItemDataOneOf {
2417
+ /** An image item. */
2418
+ image?: ItemImage;
2419
+ /** A video item. */
2420
+ video?: Video;
2421
+ }
2422
+ export interface GalleryOptions {
2423
+ /** Gallery layout. */
2424
+ layout?: Layout;
2425
+ /** Styling for gallery items. */
2426
+ item?: ItemStyle;
2427
+ /** Styling for gallery thumbnail images. */
2428
+ thumbnails?: Thumbnails;
2429
+ }
2430
+ export declare enum LayoutType {
2431
+ /** Collage type */
2432
+ COLLAGE = "COLLAGE",
2433
+ /** Masonry type */
2434
+ MASONRY = "MASONRY",
2435
+ /** Grid type */
2436
+ GRID = "GRID",
2437
+ /** Thumbnail type */
2438
+ THUMBNAIL = "THUMBNAIL",
2439
+ /** Slider type */
2440
+ SLIDER = "SLIDER",
2441
+ /** Slideshow type */
2442
+ SLIDESHOW = "SLIDESHOW",
2443
+ /** Panorama type */
2444
+ PANORAMA = "PANORAMA",
2445
+ /** Column type */
2446
+ COLUMN = "COLUMN",
2447
+ /** Magic type */
2448
+ MAGIC = "MAGIC",
2449
+ /** Fullsize images type */
2450
+ FULLSIZE = "FULLSIZE"
2451
+ }
2452
+ export declare enum Orientation {
2453
+ /** Rows Orientation */
2454
+ ROWS = "ROWS",
2455
+ /** Columns Orientation */
2456
+ COLUMNS = "COLUMNS"
2457
+ }
2458
+ export declare enum Crop {
2459
+ /** Crop to fill */
2460
+ FILL = "FILL",
2461
+ /** Crop to fit */
2462
+ FIT = "FIT"
2463
+ }
2464
+ export declare enum ThumbnailsAlignment {
2465
+ /** Top alignment */
2466
+ TOP = "TOP",
2467
+ /** Right alignment */
2468
+ RIGHT = "RIGHT",
2469
+ /** Bottom alignment */
2470
+ BOTTOM = "BOTTOM",
2471
+ /** Left alignment */
2472
+ LEFT = "LEFT",
2473
+ /** No thumbnail */
2474
+ NONE = "NONE"
2475
+ }
2476
+ export interface Layout {
2477
+ /** Gallery layout type. */
2478
+ type?: LayoutType;
2479
+ /** Sets whether horizontal scroll is enabled. Defaults to `true` unless the layout `type` is set to `GRID` or `COLLAGE`. */
2480
+ horizontalScroll?: boolean | null;
2481
+ /** Gallery orientation. */
2482
+ orientation?: Orientation;
2483
+ /** The number of columns to display on full size screens. */
2484
+ numberOfColumns?: number | null;
2485
+ /** The number of columns to display on mobile screens. */
2486
+ mobileNumberOfColumns?: number | null;
2487
+ }
2488
+ export interface ItemStyle {
2489
+ /** Desirable dimension for each item in pixels (behvaior changes according to gallery type) */
2490
+ targetSize?: number | null;
2491
+ /** Item ratio */
2492
+ ratio?: number | null;
2493
+ /** Sets how item images are cropped. */
2494
+ crop?: Crop;
2495
+ /** The spacing between items in pixels. */
2496
+ spacing?: number | null;
2497
+ }
2498
+ export interface Thumbnails {
2499
+ /** Thumbnail alignment. */
2500
+ placement?: ThumbnailsAlignment;
2501
+ /** Spacing between thumbnails in pixels. */
2502
+ spacing?: number | null;
2503
+ }
2504
+ export interface GIFData {
2505
+ /** Styling for the GIF's container. */
2506
+ containerData?: PluginContainerData;
2507
+ /** The source of the full size GIF. */
2508
+ original?: GIF;
2509
+ /** The source of the downsized GIF. */
2510
+ downsized?: GIF;
2511
+ /** Height in pixels. */
2512
+ height?: number;
2513
+ /** Width in pixels. */
2514
+ width?: number;
2515
+ /** Type of GIF (Sticker or GIF). Defaults to `GIF`. */
2516
+ gifType?: GIFType;
2517
+ }
2518
+ export interface GIF {
2519
+ /** GIF format URL. */
2520
+ gif?: string | null;
2521
+ /** MP4 format URL. */
2522
+ mp4?: string | null;
2523
+ /** Thumbnail URL. */
2524
+ still?: string | null;
2525
+ }
2526
+ export declare enum GIFType {
2527
+ GIF = "GIF",
2528
+ STICKER = "STICKER"
2529
+ }
2530
+ export interface HeadingData {
2531
+ /** Heading level from 1-6. */
2532
+ level?: number;
2533
+ /** Styling for the heading text. */
2534
+ textStyle?: TextStyle;
2535
+ /** Indentation level from 1-4. */
2536
+ indentation?: number | null;
2537
+ }
2538
+ export interface HTMLData extends HTMLDataDataOneOf {
2539
+ /** The URL for the HTML code for the node. */
2540
+ url?: string;
2541
+ /** The HTML code for the node. */
2542
+ html?: string;
2543
+ /**
2544
+ * Whether this is an AdSense element. Use `source` instead.
2545
+ * @deprecated
2546
+ */
2547
+ isAdsense?: boolean | null;
2548
+ /** Styling for the HTML node's container. Height property is irrelevant for HTML embeds when autoHeight is set to `true`. */
2549
+ containerData?: PluginContainerData;
2550
+ /** The type of HTML code. */
2551
+ source?: Source;
2552
+ /** If container height is aligned with its content height. Defaults to `true`. */
2553
+ autoHeight?: boolean | null;
2554
+ }
2555
+ /** @oneof */
2556
+ export interface HTMLDataDataOneOf {
2557
+ /** The URL for the HTML code for the node. */
2558
+ url?: string;
2559
+ /** The HTML code for the node. */
2560
+ html?: string;
2561
+ /**
2562
+ * Whether this is an AdSense element. Use `source` instead.
2563
+ * @deprecated
2564
+ */
2565
+ isAdsense?: boolean | null;
2566
+ }
2567
+ export declare enum Source {
2568
+ HTML = "HTML",
2569
+ ADSENSE = "ADSENSE"
2570
+ }
2571
+ export interface ImageData {
2572
+ /** Styling for the image's container. */
2573
+ containerData?: PluginContainerData;
2574
+ /** Image file details. */
2575
+ image?: Media;
2576
+ /** Link details for images that are links. */
2577
+ link?: Link;
2578
+ /** Sets whether the image expands to full screen when clicked. Defaults to `false`. */
2579
+ disableExpand?: boolean | null;
2580
+ /** Image's alternative text. */
2581
+ altText?: string | null;
2582
+ /**
2583
+ * Deprecated: use Caption node instead.
2584
+ * @deprecated
2585
+ */
2586
+ caption?: string | null;
2587
+ /** Sets whether the image's download button is disabled. Defaults to `false`. */
2588
+ disableDownload?: boolean | null;
2589
+ }
2590
+ export interface LinkPreviewData {
2591
+ /** Styling for the link preview's container. */
2592
+ containerData?: PluginContainerData;
2593
+ /** Link details. */
2594
+ link?: Link;
2595
+ /** Preview title. */
2596
+ title?: string | null;
2597
+ /** Preview thumbnail URL. */
2598
+ thumbnailUrl?: string | null;
2599
+ /** Preview description. */
2600
+ description?: string | null;
2601
+ /** The preview content as HTML. */
2602
+ html?: string | null;
2603
+ }
2604
+ export interface MapData {
2605
+ /** Styling for the map's container. */
2606
+ containerData?: PluginContainerData;
2607
+ /** Map settings. */
2608
+ mapSettings?: MapSettings;
2609
+ }
2610
+ export interface MapSettings {
2611
+ /** The address to display on the map. */
2612
+ address?: string | null;
2613
+ /** Sets whether the map is draggable. */
2614
+ draggable?: boolean | null;
2615
+ /** Sets whether the location marker is visible. */
2616
+ marker?: boolean | null;
2617
+ /** Sets whether street view control is enabled. */
2618
+ streetViewControl?: boolean | null;
2619
+ /** Sets whether zoom control is enabled. */
2620
+ zoomControl?: boolean | null;
2621
+ /** Location latitude. */
2622
+ lat?: number | null;
2623
+ /** Location longitude. */
2624
+ lng?: number | null;
2625
+ /** Location name. */
2626
+ locationName?: string | null;
2627
+ /** Sets whether view mode control is enabled. */
2628
+ viewModeControl?: boolean | null;
2629
+ /** Initial zoom value. */
2630
+ initialZoom?: number | null;
2631
+ /** Map type. `HYBRID` is a combination of the `ROADMAP` and `SATELLITE` map types. */
2632
+ mapType?: MapType;
2633
+ }
2634
+ export declare enum MapType {
2635
+ /** Roadmap map type */
2636
+ ROADMAP = "ROADMAP",
2637
+ /** Satellite map type */
2638
+ SATELITE = "SATELITE",
2639
+ /** Hybrid map type */
2640
+ HYBRID = "HYBRID",
2641
+ /** Terrain map type */
2642
+ TERRAIN = "TERRAIN"
2643
+ }
2644
+ export interface ParagraphData {
2645
+ /** Styling for the paragraph text. */
2646
+ textStyle?: TextStyle;
2647
+ /** Indentation level from 1-4. */
2648
+ indentation?: number | null;
2649
+ /** Paragraph level */
2650
+ level?: number | null;
2651
+ }
2652
+ export interface PollData {
2653
+ /** Styling for the poll's container. */
2654
+ containerData?: PluginContainerData;
2655
+ /** Poll data. */
2656
+ poll?: Poll;
2657
+ /** Layout settings for the poll and voting options. */
2658
+ layout?: PollDataLayout;
2659
+ /** Styling for the poll and voting options. */
2660
+ design?: Design;
2661
+ }
2662
+ export declare enum ViewRole {
2663
+ /** Only Poll creator can view the results */
2664
+ CREATOR = "CREATOR",
2665
+ /** Anyone who voted can see the results */
2666
+ VOTERS = "VOTERS",
2667
+ /** Anyone can see the results, even if one didn't vote */
2668
+ EVERYONE = "EVERYONE"
2669
+ }
2670
+ export declare enum VoteRole {
2671
+ /** Logged in member */
2672
+ SITE_MEMBERS = "SITE_MEMBERS",
2673
+ /** Anyone */
2674
+ ALL = "ALL"
2675
+ }
2676
+ export interface Permissions {
2677
+ /** Sets who can view the poll results. */
2678
+ view?: ViewRole;
2679
+ /** Sets who can vote. */
2680
+ vote?: VoteRole;
2681
+ /** Sets whether one voter can vote multiple times. Defaults to `false`. */
2682
+ allowMultipleVotes?: boolean | null;
2683
+ }
2684
+ export interface Option {
2685
+ /** Option ID. */
2686
+ id?: string | null;
2687
+ /** Option title. */
2688
+ title?: string | null;
2689
+ /** The image displayed with the option. */
2690
+ image?: Media;
2691
+ }
2692
+ export interface PollSettings {
2693
+ /** Permissions settings for voting. */
2694
+ permissions?: Permissions;
2695
+ /** Sets whether voters are displayed in the vote results. Defaults to `true`. */
2696
+ showVoters?: boolean | null;
2697
+ /** Sets whether the vote count is displayed. Defaults to `true`. */
2698
+ showVotesCount?: boolean | null;
2699
+ }
2700
+ export declare enum PollLayoutType {
2701
+ /** List */
2702
+ LIST = "LIST",
2703
+ /** Grid */
2704
+ GRID = "GRID"
2705
+ }
2706
+ export declare enum PollLayoutDirection {
2707
+ /** Left-to-right */
2708
+ LTR = "LTR",
2709
+ /** Right-to-left */
2710
+ RTL = "RTL"
2711
+ }
2712
+ export interface PollLayout {
2713
+ /** The layout for displaying the voting options. */
2714
+ type?: PollLayoutType;
2715
+ /** The direction of the text displayed in the voting options. Text can be displayed either right-to-left or left-to-right. */
2716
+ direction?: PollLayoutDirection;
2717
+ /** Sets whether to display the main poll image. Defaults to `false`. */
2718
+ enableImage?: boolean | null;
2719
+ }
2720
+ export interface OptionLayout {
2721
+ /** Sets whether to display option images. Defaults to `false`. */
2722
+ enableImage?: boolean | null;
2723
+ }
2724
+ export declare enum BackgroundType {
2725
+ /** Color background type */
2726
+ COLOR = "COLOR",
2727
+ /** Image background type */
2728
+ IMAGE = "IMAGE",
2729
+ /** Gradiant background type */
2730
+ GRADIENT = "GRADIENT"
2731
+ }
2732
+ export interface Gradient {
2733
+ /** The gradient angle in degrees. */
2734
+ angle?: number | null;
2735
+ /** The start color as a hexademical value. */
2736
+ startColor?: string | null;
2737
+ /** The end color as a hexademical value. */
2738
+ lastColor?: string | null;
2739
+ }
2740
+ export interface Background extends BackgroundBackgroundOneOf {
2741
+ /** The background color as a hexademical value. */
2742
+ color?: string | null;
2743
+ /** An image to use for the background. */
2744
+ image?: Media;
2745
+ /** Details for a gradient background. */
2746
+ gradient?: Gradient;
2747
+ /** Background type. For each option, include the relevant details. */
2748
+ type?: BackgroundType;
2749
+ }
2750
+ /** @oneof */
2751
+ export interface BackgroundBackgroundOneOf {
2752
+ /** The background color as a hexademical value. */
2753
+ color?: string | null;
2754
+ /** An image to use for the background. */
2755
+ image?: Media;
2756
+ /** Details for a gradient background. */
2757
+ gradient?: Gradient;
2758
+ }
2759
+ export interface PollDesign {
2760
+ /** Background styling. */
2761
+ background?: Background;
2762
+ /** Border radius in pixels. */
2763
+ borderRadius?: number | null;
2764
+ }
2765
+ export interface OptionDesign {
2766
+ /** Border radius in pixels. */
2767
+ borderRadius?: number | null;
2768
+ }
2769
+ export interface Poll {
2770
+ /** Poll ID. */
2771
+ id?: string | null;
2772
+ /** Poll title. */
2773
+ title?: string | null;
2774
+ /** Poll creator ID. */
2775
+ creatorId?: string | null;
2776
+ /** Main poll image. */
2777
+ image?: Media;
2778
+ /** Voting options. */
2779
+ options?: Option[];
2780
+ /** The poll's permissions and display settings. */
2781
+ settings?: PollSettings;
2782
+ }
2783
+ export interface PollDataLayout {
2784
+ /** Poll layout settings. */
2785
+ poll?: PollLayout;
2786
+ /** Voting otpions layout settings. */
2787
+ options?: OptionLayout;
2788
+ }
2789
+ export interface Design {
2790
+ /** Styling for the poll. */
2791
+ poll?: PollDesign;
2792
+ /** Styling for voting options. */
2793
+ options?: OptionDesign;
2794
+ }
2795
+ export interface TextData {
2796
+ /** The text to apply decorations to. */
2797
+ text?: string;
2798
+ /** The decorations to apply. */
2799
+ decorations?: Decoration[];
2800
+ }
2801
+ /** Adds appearence changes to text */
2802
+ export interface Decoration extends DecorationDataOneOf {
2803
+ /** Data for an anchor link decoration. */
2804
+ anchorData?: AnchorData;
2805
+ /** Data for a color decoration. */
2806
+ colorData?: ColorData;
2807
+ /** Data for an external link decoration. */
2808
+ linkData?: LinkData;
2809
+ /** Data for a mention decoration. */
2810
+ mentionData?: MentionData;
2811
+ /** Data for a font size decoration. */
2812
+ fontSizeData?: FontSizeData;
2813
+ /** Font weight for a bold decoration. */
2814
+ fontWeightValue?: number | null;
2815
+ /** Data for an italic decoration. Defaults to `true`. */
2816
+ italicData?: boolean | null;
2817
+ /** Data for an underline decoration. Defaults to `true`. */
2818
+ underlineData?: boolean | null;
2819
+ /** Data for a spoiler decoration. */
2820
+ spoilerData?: SpoilerData;
2821
+ /** The type of decoration to apply. */
2822
+ type?: DecorationType;
2823
+ }
2824
+ /** @oneof */
2825
+ export interface DecorationDataOneOf {
2826
+ /** Data for an anchor link decoration. */
2827
+ anchorData?: AnchorData;
2828
+ /** Data for a color decoration. */
2829
+ colorData?: ColorData;
2830
+ /** Data for an external link decoration. */
2831
+ linkData?: LinkData;
2832
+ /** Data for a mention decoration. */
2833
+ mentionData?: MentionData;
2834
+ /** Data for a font size decoration. */
2835
+ fontSizeData?: FontSizeData;
2836
+ /** Font weight for a bold decoration. */
2837
+ fontWeightValue?: number | null;
2838
+ /** Data for an italic decoration. Defaults to `true`. */
2839
+ italicData?: boolean | null;
2840
+ /** Data for an underline decoration. Defaults to `true`. */
2841
+ underlineData?: boolean | null;
2842
+ /** Data for a spoiler decoration. */
2843
+ spoilerData?: SpoilerData;
2844
+ }
2845
+ export declare enum DecorationType {
2846
+ BOLD = "BOLD",
2847
+ ITALIC = "ITALIC",
2848
+ UNDERLINE = "UNDERLINE",
2849
+ SPOILER = "SPOILER",
2850
+ ANCHOR = "ANCHOR",
2851
+ MENTION = "MENTION",
2852
+ LINK = "LINK",
2853
+ COLOR = "COLOR",
2854
+ FONT_SIZE = "FONT_SIZE",
2855
+ EXTERNAL = "EXTERNAL"
2856
+ }
2857
+ export interface AnchorData {
2858
+ /** The target node's ID. */
2859
+ anchor?: string;
2860
+ }
2861
+ export interface ColorData {
2862
+ /** The text's background color as a hexadecimal value. */
2863
+ background?: string | null;
2864
+ /** The text's foreground color as a hexadecimal value. */
2865
+ foreground?: string | null;
2866
+ }
2867
+ export interface LinkData {
2868
+ /** Link details. */
2869
+ link?: Link;
2870
+ }
2871
+ export interface MentionData {
2872
+ /** The mentioned user's name. */
2873
+ name?: string;
2874
+ /** The version of the user's name that appears after the `@` character in the mention. */
2875
+ slug?: string;
2876
+ /** Mentioned user's ID. */
2877
+ id?: string | null;
2878
+ }
2879
+ export interface FontSizeData {
2880
+ /** The units used for the font size. */
2881
+ unit?: FontType;
2882
+ /** Font size value. */
2883
+ value?: number | null;
2884
+ }
2885
+ export declare enum FontType {
2886
+ PX = "PX",
2887
+ EM = "EM"
2888
+ }
2889
+ export interface SpoilerData {
2890
+ /** Spoiler ID. */
2891
+ id?: string | null;
2892
+ }
2893
+ export interface AppEmbedData extends AppEmbedDataAppDataOneOf {
2894
+ /** Data for embedded Wix Bookings content. */
2895
+ bookingData?: BookingData;
2896
+ /** Data for embedded Wix Events content. */
2897
+ eventData?: EventData;
2898
+ /** The type of Wix App content being embedded. */
2899
+ type?: AppType;
2900
+ /** The ID of the embedded content. */
2901
+ itemId?: string | null;
2902
+ /** The name of the embedded content. */
2903
+ name?: string | null;
2904
+ /**
2905
+ * Deprecated: Use `image` instead.
2906
+ * @deprecated
2907
+ */
2908
+ imageSrc?: string | null;
2909
+ /** The URL for the embedded content. */
2910
+ url?: string | null;
2911
+ /** An image for the embedded content. */
2912
+ image?: Media;
2913
+ }
2914
+ /** @oneof */
2915
+ export interface AppEmbedDataAppDataOneOf {
2916
+ /** Data for embedded Wix Bookings content. */
2917
+ bookingData?: BookingData;
2918
+ /** Data for embedded Wix Events content. */
2919
+ eventData?: EventData;
2920
+ }
2921
+ export declare enum AppType {
2922
+ PRODUCT = "PRODUCT",
2923
+ EVENT = "EVENT",
2924
+ BOOKING = "BOOKING"
2925
+ }
2926
+ export interface BookingData {
2927
+ /** Booking duration in minutes. */
2928
+ durations?: string | null;
2929
+ }
2930
+ export interface EventData {
2931
+ /** Event schedule. */
2932
+ scheduling?: string | null;
2933
+ /** Event location. */
2934
+ location?: string | null;
2935
+ }
2936
+ export interface VideoData {
2937
+ /** Styling for the video's container. */
2938
+ containerData?: PluginContainerData;
2939
+ /** Video details. */
2940
+ video?: Media;
2941
+ /** Video thumbnail details. */
2942
+ thumbnail?: Media;
2943
+ /** Sets whether the video's download button is disabled. Defaults to `false`. */
2944
+ disableDownload?: boolean | null;
2945
+ /** Video title. */
2946
+ title?: string | null;
2947
+ /** Video options. */
2948
+ options?: PlaybackOptions;
2949
+ }
2950
+ export interface PlaybackOptions {
2951
+ /** Sets whether the media will automatically start playing. */
2952
+ autoPlay?: boolean | null;
2953
+ /** Sets whether media's will be looped. */
2954
+ playInLoop?: boolean | null;
2955
+ /** Sets whether media's controls will be shown. */
2956
+ showControls?: boolean | null;
2957
+ }
2958
+ export interface EmbedData {
2959
+ /** Styling for the oEmbed node's container. */
2960
+ containerData?: PluginContainerData;
2961
+ /** An [oEmbed](https://www.oembed.com) object. */
2962
+ oembed?: Oembed;
2963
+ /** Origin asset source. */
2964
+ src?: string | null;
2965
+ }
2966
+ export interface Oembed {
2967
+ /** The resource type. */
2968
+ type?: string | null;
2969
+ /** The width of the resource specified in the `url` property in pixels. */
2970
+ width?: number | null;
2971
+ /** The height of the resource specified in the `url` property in pixels. */
2972
+ height?: number | null;
2973
+ /** Resource title. */
2974
+ title?: string | null;
2975
+ /** The source URL for the resource. */
2976
+ url?: string | null;
2977
+ /** HTML for embedding a video player. The HTML should have no padding or margins. */
2978
+ html?: string | null;
2979
+ /** The name of the author or owner of the resource. */
2980
+ authorName?: string | null;
2981
+ /** The URL for the author or owner of the resource. */
2982
+ authorUrl?: string | null;
2983
+ /** The name of the resource provider. */
2984
+ providerName?: string | null;
2985
+ /** The URL for the resource provider. */
2986
+ providerUrl?: string | null;
2987
+ /** The URL for a thumbnail image for the resource. If this property is defined, `thumbnailWidth` and `thumbnailHeight` must also be defined. */
2988
+ thumbnailUrl?: string | null;
2989
+ /** The width of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailHeight` must also be defined. */
2990
+ thumbnailWidth?: string | null;
2991
+ /** The height of the resource's thumbnail image. If this property is defined, `thumbnailUrl` and `thumbnailWidth`must also be defined. */
2992
+ thumbnailHeight?: string | null;
2993
+ /** The URL for an embedded viedo. */
2994
+ videoUrl?: string | null;
2995
+ /** The oEmbed version number. This value must be `1.0`. */
2996
+ version?: string | null;
2997
+ }
2998
+ export interface CollapsibleListData {
2999
+ /** Styling for the collapsible list's container. */
3000
+ containerData?: PluginContainerData;
3001
+ /** If `true`, only one item can be expanded at a time. Defaults to `false`. */
3002
+ expandOnlyOne?: boolean | null;
3003
+ /** Sets which items are expanded when the page loads. */
3004
+ initialExpandedItems?: InitialExpandedItems;
3005
+ /** The direction of the text in the list. Either left-to-right or right-to-left. */
3006
+ direction?: Direction;
3007
+ /** If `true`, The collapsible item will appear in search results as an FAQ. */
3008
+ isQapageData?: boolean | null;
3009
+ }
3010
+ export declare enum InitialExpandedItems {
3011
+ /** First item will be expended initally */
3012
+ FIRST = "FIRST",
3013
+ /** All items will expended initally */
3014
+ ALL = "ALL",
3015
+ /** All items collapsed initally */
3016
+ NONE = "NONE"
3017
+ }
3018
+ export declare enum Direction {
3019
+ /** Left-to-right */
3020
+ LTR = "LTR",
3021
+ /** Right-to-left */
3022
+ RTL = "RTL"
3023
+ }
3024
+ export interface TableData {
3025
+ /** Styling for the table's container. */
3026
+ containerData?: PluginContainerData;
3027
+ /** The table's dimensions. */
3028
+ dimensions?: Dimensions;
3029
+ /**
3030
+ * Deprecated: Use `rowHeader` and `columnHeader` instead.
3031
+ * @deprecated
3032
+ */
3033
+ header?: boolean | null;
3034
+ /** Sets whether the table's first row is a header. Defaults to `false`. */
3035
+ rowHeader?: boolean | null;
3036
+ /** Sets whether the table's first column is a header. Defaults to `false`. */
3037
+ columnHeader?: boolean | null;
3038
+ }
3039
+ export interface Dimensions {
3040
+ /** An array representing relative width of each column in relation to the other columns. */
3041
+ colsWidthRatio?: number[];
3042
+ /** An array representing the height of each row in pixels. */
3043
+ rowsHeight?: number[];
3044
+ /** An array representing the minimum width of each column in pixels. */
3045
+ colsMinWidth?: number[];
3046
+ }
3047
+ export interface TableCellData {
3048
+ /** Styling for the cell's background color and text alignment. */
3049
+ cellStyle?: CellStyle;
3050
+ /** The cell's border colors. */
3051
+ borderColors?: BorderColors;
3052
+ }
3053
+ export declare enum VerticalAlignment {
3054
+ /** Top alignment */
3055
+ TOP = "TOP",
3056
+ /** Middle alignment */
3057
+ MIDDLE = "MIDDLE",
3058
+ /** Bottom alignment */
3059
+ BOTTOM = "BOTTOM"
3060
+ }
3061
+ export interface CellStyle {
3062
+ /** Vertical alignment for the cell's text. */
3063
+ verticalAlignment?: VerticalAlignment;
3064
+ /** Cell background color as a hexadecimal value. */
3065
+ backgroundColor?: string | null;
3066
+ }
3067
+ export interface BorderColors {
3068
+ /** Left border color as a hexadecimal value. */
3069
+ left?: string | null;
3070
+ /** Right border color as a hexadecimal value. */
3071
+ right?: string | null;
3072
+ /** Top border color as a hexadecimal value. */
3073
+ top?: string | null;
3074
+ /** Bottom border color as a hexadecimal value. */
3075
+ bottom?: string | null;
3076
+ }
3077
+ /**
3078
+ * `NullValue` is a singleton enumeration to represent the null value for the
3079
+ * `Value` type union.
3080
+ *
3081
+ * The JSON representation for `NullValue` is JSON `null`.
3082
+ */
3083
+ export declare enum NullValue {
3084
+ /** Null value. */
3085
+ NULL_VALUE = "NULL_VALUE"
3086
+ }
3087
+ /**
3088
+ * `ListValue` is a wrapper around a repeated field of values.
3089
+ *
3090
+ * The JSON representation for `ListValue` is JSON array.
3091
+ */
3092
+ export interface ListValue {
3093
+ /** Repeated field of dynamically typed values. */
3094
+ values?: any[];
3095
+ }
3096
+ export interface AudioData {
3097
+ /** Styling for the audio node's container. */
3098
+ containerData?: PluginContainerData;
3099
+ /** Audio file details. */
3100
+ audio?: Media;
3101
+ /** Sets whether the audio node's download button is disabled. Defaults to `false`. */
3102
+ disableDownload?: boolean | null;
3103
+ /** Cover image. */
3104
+ coverImage?: Media;
3105
+ /** Track name. */
3106
+ name?: string | null;
3107
+ /** Author name. */
3108
+ authorName?: string | null;
3109
+ /** An HTML version of the audio node. */
3110
+ html?: string | null;
3111
+ }
3112
+ export interface OrderedListData {
3113
+ /** Indentation level from 0-4. */
3114
+ indentation?: number;
3115
+ /** Offset level from 0-4. */
3116
+ offset?: number | null;
3117
+ /** List start number. */
3118
+ start?: number | null;
3119
+ }
3120
+ export interface BulletedListData {
3121
+ /** Indentation level from 0-4. */
3122
+ indentation?: number;
3123
+ /** Offset level from 0-4. */
3124
+ offset?: number | null;
3125
+ }
3126
+ export interface BlockquoteData {
3127
+ /** Indentation level from 1-4. */
3128
+ indentation?: number;
3129
+ }
3130
+ export interface CaptionData {
3131
+ textStyle?: TextStyle;
3132
+ }
3133
+ export interface LayoutCellData {
3134
+ /** Size of the cell in 12 columns grid. */
3135
+ colSpan?: number | null;
3136
+ }
3137
+ export interface Metadata {
3138
+ /** Schema version. */
3139
+ version?: number;
3140
+ /**
3141
+ * When the object was created.
3142
+ * @readonly
3143
+ * @deprecated
3144
+ */
3145
+ createdTimestamp?: Date | null;
3146
+ /**
3147
+ * When the object was most recently updated.
3148
+ * @deprecated
3149
+ */
3150
+ updatedTimestamp?: Date | null;
3151
+ /** Object ID. */
3152
+ id?: string | null;
3153
+ }
3154
+ export interface DocumentStyle {
3155
+ /** Styling for H1 nodes. */
3156
+ headerOne?: TextNodeStyle;
3157
+ /** Styling for H2 nodes. */
3158
+ headerTwo?: TextNodeStyle;
3159
+ /** Styling for H3 nodes. */
3160
+ headerThree?: TextNodeStyle;
3161
+ /** Styling for H4 nodes. */
3162
+ headerFour?: TextNodeStyle;
3163
+ /** Styling for H5 nodes. */
3164
+ headerFive?: TextNodeStyle;
3165
+ /** Styling for H6 nodes. */
3166
+ headerSix?: TextNodeStyle;
3167
+ /** Styling for paragraph nodes. */
3168
+ paragraph?: TextNodeStyle;
3169
+ /** Styling for block quote nodes. */
3170
+ blockquote?: TextNodeStyle;
3171
+ /** Styling for code block nodes. */
3172
+ codeBlock?: TextNodeStyle;
3173
+ }
3174
+ export interface TextNodeStyle {
3175
+ /** The decorations to apply to the node. */
3176
+ decorations?: Decoration[];
3177
+ /** Padding and background color for the node. */
3178
+ nodeStyle?: NodeStyle;
3179
+ /** Line height for text in the node. */
3180
+ lineHeight?: string | null;
3181
+ }
3182
+ export interface EventUpdated {
3183
+ /** Event update timestamp in ISO UTC format. */
3184
+ timestamp?: Date | null;
3185
+ /** Event ID. */
3186
+ eventId?: string;
3187
+ /** Event location. */
3188
+ location?: EventsLocation;
3189
+ /** Event schedule configuration. */
3190
+ scheduleConfig?: ScheduleConfig;
3191
+ /** Event title. */
3192
+ title?: string;
3193
+ /**
3194
+ * Whether schedule configuration was updated.
3195
+ * @deprecated
3196
+ */
3197
+ scheduleConfigUpdated?: boolean;
3198
+ /** Updated event */
3199
+ event?: Event;
3200
+ }
3201
+ export interface SeatingPlanCategoriesSummaryUpdated {
3202
+ /** Seating plan id */
3203
+ seatingPlanId?: string;
3204
+ /** External seating plan id */
3205
+ externalSeatingPlanId?: string | null;
3206
+ /** Ticket counts by category */
3207
+ categories?: CategoryDetails[];
3208
+ /**
3209
+ * Summary revision.
3210
+ * @readonly
3211
+ */
3212
+ revision?: string | null;
3213
+ }
3214
+ export interface CategoryDetails {
3215
+ /**
3216
+ * Seating plan id
3217
+ * @readonly
3218
+ */
3219
+ seatingPlanId?: string | null;
3220
+ /**
3221
+ * External seating plan id
3222
+ * @readonly
3223
+ */
3224
+ externalSeatingPlanId?: string | null;
3225
+ /**
3226
+ * External category id
3227
+ * @readonly
3228
+ */
3229
+ externalCategoryId?: string | null;
3230
+ /**
3231
+ * Total capacity in the category
3232
+ * @readonly
3233
+ */
3234
+ totalCapacity?: number | null;
3235
+ /**
3236
+ * Already reserved capacity
3237
+ * @readonly
3238
+ */
3239
+ reserved?: number | null;
3240
+ }
3241
+ export interface MetaSiteSpecialEvent extends MetaSiteSpecialEventPayloadOneOf {
3242
+ /** Emitted on a meta site creation. */
3243
+ siteCreated?: SiteCreated;
3244
+ /** Emitted on a meta site transfer completion. */
3245
+ siteTransferred?: SiteTransferred;
3246
+ /** Emitted on a meta site deletion. */
3247
+ siteDeleted?: SiteDeleted;
3248
+ /** Emitted on a meta site restoration. */
3249
+ siteUndeleted?: SiteUndeleted;
3250
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
3251
+ sitePublished?: SitePublished;
3252
+ /** Emitted on a meta site unpublish. */
3253
+ siteUnpublished?: SiteUnpublished;
3254
+ /** Emitted when meta site is marked as template. */
3255
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
3256
+ /** Emitted when meta site is marked as a WixSite. */
3257
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
3258
+ /** Emitted when an application is provisioned (installed). */
3259
+ serviceProvisioned?: ServiceProvisioned;
3260
+ /** Emitted when an application is removed (uninstalled). */
3261
+ serviceRemoved?: ServiceRemoved;
3262
+ /** Emitted when meta site name (URL slug) is changed. */
3263
+ siteRenamedPayload?: SiteRenamed;
3264
+ /** Emitted when meta site was permanently deleted. */
3265
+ hardDeleted?: SiteHardDeleted;
3266
+ /** Emitted on a namespace change. */
3267
+ namespaceChanged?: NamespaceChanged;
3268
+ /** Emitted when Studio is attached. */
3269
+ studioAssigned?: StudioAssigned;
3270
+ /** Emitted when Studio is detached. */
3271
+ studioUnassigned?: StudioUnassigned;
3272
+ /** A meta site id. */
3273
+ metaSiteId?: string;
3274
+ /** A meta site version. Monotonically increasing. */
3275
+ version?: string;
3276
+ /** A timestamp of the event. */
3277
+ timestamp?: string;
3278
+ /**
3279
+ * TODO(meta-site): Change validation once validations are disabled for consumers
3280
+ * More context: https://wix.slack.com/archives/C0UHEBPFT/p1720957844413149 and https://wix.slack.com/archives/CFWKX325T/p1728892152855659
3281
+ */
3282
+ assets?: Asset[];
3283
+ }
3284
+ /** @oneof */
3285
+ export interface MetaSiteSpecialEventPayloadOneOf {
3286
+ /** Emitted on a meta site creation. */
3287
+ siteCreated?: SiteCreated;
3288
+ /** Emitted on a meta site transfer completion. */
3289
+ siteTransferred?: SiteTransferred;
3290
+ /** Emitted on a meta site deletion. */
3291
+ siteDeleted?: SiteDeleted;
3292
+ /** Emitted on a meta site restoration. */
3293
+ siteUndeleted?: SiteUndeleted;
3294
+ /** Emitted on the first* publish of the meta site (* switching from unpublished to published state). */
3295
+ sitePublished?: SitePublished;
3296
+ /** Emitted on a meta site unpublish. */
3297
+ siteUnpublished?: SiteUnpublished;
3298
+ /** Emitted when meta site is marked as template. */
3299
+ siteMarkedAsTemplate?: SiteMarkedAsTemplate;
3300
+ /** Emitted when meta site is marked as a WixSite. */
3301
+ siteMarkedAsWixSite?: SiteMarkedAsWixSite;
3302
+ /** Emitted when an application is provisioned (installed). */
3303
+ serviceProvisioned?: ServiceProvisioned;
3304
+ /** Emitted when an application is removed (uninstalled). */
3305
+ serviceRemoved?: ServiceRemoved;
3306
+ /** Emitted when meta site name (URL slug) is changed. */
3307
+ siteRenamedPayload?: SiteRenamed;
3308
+ /** Emitted when meta site was permanently deleted. */
3309
+ hardDeleted?: SiteHardDeleted;
3310
+ /** Emitted on a namespace change. */
3311
+ namespaceChanged?: NamespaceChanged;
3312
+ /** Emitted when Studio is attached. */
3313
+ studioAssigned?: StudioAssigned;
3314
+ /** Emitted when Studio is detached. */
3315
+ studioUnassigned?: StudioUnassigned;
3316
+ }
3317
+ export interface Asset {
3318
+ /** An application definition id (app_id in dev-center). For legacy reasons may be UUID or a string (from Java Enum). */
3319
+ appDefId?: string;
3320
+ /** An instance id. For legacy reasons may be UUID or a string. */
3321
+ instanceId?: string;
3322
+ /** An application state. */
3323
+ state?: State;
3324
+ }
3325
+ export declare enum State {
3326
+ UNKNOWN = "UNKNOWN",
3327
+ ENABLED = "ENABLED",
3328
+ DISABLED = "DISABLED",
3329
+ PENDING = "PENDING",
3330
+ DEMO = "DEMO"
3331
+ }
3332
+ export interface SiteCreated {
3333
+ /** A template identifier (empty if not created from a template). */
3334
+ originTemplateId?: string;
3335
+ /** An account id of the owner. */
3336
+ ownerId?: string;
3337
+ /** A context in which meta site was created. */
3338
+ context?: SiteCreatedContext;
3339
+ /**
3340
+ * A meta site id from which this site was created.
3341
+ *
3342
+ * In case of a creation from a template it's a template id.
3343
+ * In case of a site duplication ("Save As" in dashboard or duplicate in UM) it's an id of a source site.
3344
+ */
3345
+ originMetaSiteId?: string | null;
3346
+ /** A meta site name (URL slug). */
3347
+ siteName?: string;
3348
+ /** A namespace. */
3349
+ namespace?: Namespace;
3350
+ }
3351
+ export declare enum SiteCreatedContext {
3352
+ /** A valid option, we don't expose all reasons why site might be created. */
3353
+ OTHER = "OTHER",
3354
+ /** A meta site was created from template. */
3355
+ FROM_TEMPLATE = "FROM_TEMPLATE",
3356
+ /** A meta site was created by copying of the transfferred meta site. */
3357
+ DUPLICATE_BY_SITE_TRANSFER = "DUPLICATE_BY_SITE_TRANSFER",
3358
+ /** A copy of existing meta site. */
3359
+ DUPLICATE = "DUPLICATE",
3360
+ /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
3361
+ OLD_SITE_TRANSFER = "OLD_SITE_TRANSFER",
3362
+ /** deprecated A meta site was created for Flash editor. */
3363
+ FLASH = "FLASH"
3364
+ }
3365
+ export declare enum Namespace {
3366
+ UNKNOWN_NAMESPACE = "UNKNOWN_NAMESPACE",
3367
+ /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
3368
+ WIX = "WIX",
3369
+ /** ShoutOut stand alone product. These are siteless (no actual Wix site, no HtmlWeb). MetaSites with this namespace will *not* be shown in a user's site list by default. */
3370
+ SHOUT_OUT = "SHOUT_OUT",
3371
+ /** MetaSites created by the Albums product, they appear as part of the Albums app. MetaSites with this namespace will *not* be shown in a user's site list by default. */
3372
+ ALBUMS = "ALBUMS",
3373
+ /** Part of the WixStores migration flow, a user tries to migrate and gets this site to view and if the user likes it then stores removes this namespace and deletes the old site with the old stores. MetaSites with this namespace will *not* be shown in a user's site list by default. */
3374
+ WIX_STORES_TEST_DRIVE = "WIX_STORES_TEST_DRIVE",
3375
+ /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
3376
+ HOTELS = "HOTELS",
3377
+ /** Clubs siteless MetaSites, a club without a wix website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
3378
+ CLUBS = "CLUBS",
3379
+ /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
3380
+ ONBOARDING_DRAFT = "ONBOARDING_DRAFT",
3381
+ /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
3382
+ DEV_SITE = "DEV_SITE",
3383
+ /** LogoMaker websites offered to the user after logo purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
3384
+ LOGOS = "LOGOS",
3385
+ /** VideoMaker websites offered to the user after video purchase. MetaSites with this namespace will *not* be shown in a user's site list by default. */
3386
+ VIDEO_MAKER = "VIDEO_MAKER",
3387
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
3388
+ PARTNER_DASHBOARD = "PARTNER_DASHBOARD",
3389
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
3390
+ DEV_CENTER_COMPANY = "DEV_CENTER_COMPANY",
3391
+ /**
3392
+ * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
3393
+ *
3394
+ * Meta site with this namespace will *not* be shown in a user's site list by default.
3395
+ */
3396
+ HTML_DRAFT = "HTML_DRAFT",
3397
+ /**
3398
+ * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
3399
+ * Will be accessible from Site List and will not have a website app.
3400
+ * Once the user attaches a site, the site will become a regular wixsite.
3401
+ */
3402
+ SITELESS_BUSINESS = "SITELESS_BUSINESS",
3403
+ /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
3404
+ CREATOR_ECONOMY = "CREATOR_ECONOMY",
3405
+ /** It is to be used in the Business First efforts. */
3406
+ DASHBOARD_FIRST = "DASHBOARD_FIRST",
3407
+ /** Bookings business flow with no site. */
3408
+ ANYWHERE = "ANYWHERE",
3409
+ /** Namespace for Headless Backoffice with no editor */
3410
+ HEADLESS = "HEADLESS",
3411
+ /**
3412
+ * Namespace for master site that will exist in parent account that will be referenced by subaccounts
3413
+ * The site will be used for account level CSM feature for enterprise
3414
+ */
3415
+ ACCOUNT_MASTER_CMS = "ACCOUNT_MASTER_CMS",
3416
+ /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
3417
+ RISE = "RISE",
3418
+ /**
3419
+ * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
3420
+ * There's a blank site behind the scene but it's blank).
3421
+ * The Mobile company will be the owner of this namespace.
3422
+ */
3423
+ BRANDED_FIRST = "BRANDED_FIRST",
3424
+ /** Nownia.com Siteless account management for Ai Scheduling Assistant. */
3425
+ NOWNIA = "NOWNIA",
3426
+ /**
3427
+ * UGC Templates are templates that are created by users for personal use and to sale to other users.
3428
+ * The Partners company owns this namespace.
3429
+ */
3430
+ UGC_TEMPLATE = "UGC_TEMPLATE",
3431
+ /** Codux Headless Sites */
3432
+ CODUX = "CODUX",
3433
+ /** Bobb - AI Design Creator. */
3434
+ MEDIA_DESIGN_CREATOR = "MEDIA_DESIGN_CREATOR",
3435
+ /**
3436
+ * Shared Blog Site is a unique single site across Enterprise account,
3437
+ * This site will hold all Blog posts related to the Marketing product.
3438
+ */
3439
+ SHARED_BLOG_ENTERPRISE = "SHARED_BLOG_ENTERPRISE"
3440
+ }
3441
+ /** Site transferred to another user. */
3442
+ export interface SiteTransferred {
3443
+ /** A previous owner id (user that transfers meta site). */
3444
+ oldOwnerId?: string;
3445
+ /** A new owner id (user that accepts meta site). */
3446
+ newOwnerId?: string;
3447
+ }
3448
+ /** Soft deletion of the meta site. Could be restored. */
3449
+ export interface SiteDeleted {
3450
+ /** A deletion context. */
3451
+ deleteContext?: DeleteContext;
3452
+ }
3453
+ export interface DeleteContext {
3454
+ /** When the meta site was deleted. */
3455
+ dateDeleted?: Date | null;
3456
+ /** A status. */
3457
+ deleteStatus?: DeleteStatus;
3458
+ /** A reason (flow). */
3459
+ deleteOrigin?: string;
3460
+ /** A service that deleted it. */
3461
+ initiatorId?: string | null;
3462
+ }
3463
+ export declare enum DeleteStatus {
3464
+ UNKNOWN = "UNKNOWN",
3465
+ TRASH = "TRASH",
3466
+ DELETED = "DELETED",
3467
+ PENDING_PURGE = "PENDING_PURGE"
3468
+ }
3469
+ /** Restoration of the meta site. */
3470
+ export interface SiteUndeleted {
3471
+ }
3472
+ /** First publish of a meta site. Or subsequent publish after unpublish. */
3473
+ export interface SitePublished {
3474
+ }
3475
+ export interface SiteUnpublished {
3476
+ /** A list of URLs previously associated with the meta site. */
3477
+ urls?: string[];
3478
+ }
3479
+ export interface SiteMarkedAsTemplate {
3480
+ }
3481
+ export interface SiteMarkedAsWixSite {
3482
+ }
3483
+ /**
3484
+ * Represents a service provisioned a site.
3485
+ *
3486
+ * Note on `origin_instance_id`:
3487
+ * There is no guarantee that you will be able to find a meta site using `origin_instance_id`.
3488
+ * This is because of the following scenario:
3489
+ *
3490
+ * Imagine you have a template where a third-party application (TPA) includes some stub data,
3491
+ * such as a product catalog. When you create a site from this template, you inherit this
3492
+ * default product catalog. However, if the template's product catalog is modified,
3493
+ * your site will retain the catalog as it was at the time of site creation. This ensures that
3494
+ * your site remains consistent with what you initially received and does not include any
3495
+ * changes made to the original template afterward.
3496
+ * To ensure this, the TPA on the template gets a new instance_id.
3497
+ */
3498
+ export interface ServiceProvisioned {
3499
+ /** Either UUID or EmbeddedServiceType. */
3500
+ appDefId?: string;
3501
+ /** Not only UUID. Something here could be something weird. */
3502
+ instanceId?: string;
3503
+ /** An instance id from which this instance is originated. */
3504
+ originInstanceId?: string;
3505
+ /** A version. */
3506
+ version?: string | null;
3507
+ /** The origin meta site id */
3508
+ originMetaSiteId?: string | null;
3509
+ }
3510
+ export interface ServiceRemoved {
3511
+ /** Either UUID or EmbeddedServiceType. */
3512
+ appDefId?: string;
3513
+ /** Not only UUID. Something here could be something weird. */
3514
+ instanceId?: string;
3515
+ /** A version. */
3516
+ version?: string | null;
3517
+ }
3518
+ /** Rename of the site. Meaning, free public url has been changed as well. */
3519
+ export interface SiteRenamed {
3520
+ /** A new meta site name (URL slug). */
3521
+ newSiteName?: string;
3522
+ /** A previous meta site name (URL slug). */
3523
+ oldSiteName?: string;
3524
+ }
3525
+ /**
3526
+ * Hard deletion of the meta site.
3527
+ *
3528
+ * Could not be restored. Therefore it's desirable to cleanup data.
3529
+ */
3530
+ export interface SiteHardDeleted {
3531
+ /** A deletion context. */
3532
+ deleteContext?: DeleteContext;
3533
+ }
3534
+ export interface NamespaceChanged {
3535
+ /** A previous namespace. */
3536
+ oldNamespace?: Namespace;
3537
+ /** A new namespace. */
3538
+ newNamespace?: Namespace;
3539
+ }
3540
+ /** Assigned Studio editor */
3541
+ export interface StudioAssigned {
3542
+ }
3543
+ /** Unassigned Studio editor */
3544
+ export interface StudioUnassigned {
3545
+ }
3546
+ export interface GetTicketDefinitionFromTrashBinRequest {
3547
+ /** Ticket definition ID. */
3548
+ ticketDefinitionId?: string;
3549
+ /** Requested fields. Not implemented. */
3550
+ fields?: Field[];
3551
+ }
3552
+ export interface GetTicketDefinitionFromTrashBinResponse {
3553
+ /** The requested ticket definition. */
3554
+ ticketDefinition?: TicketDefinition;
3555
+ }
3556
+ export interface ScheduleLegacyTimeCapsuleTaskRequest {
3557
+ /** Definition ID. */
3558
+ ticketDefinitionId?: string;
3559
+ }
3560
+ interface CommonMoneyNonNullableFields {
3561
+ value: string;
3562
+ currency: string;
3563
+ }
3564
+ interface OptionDetailsNonNullableFields {
3565
+ price?: CommonMoneyNonNullableFields;
3566
+ }
3567
+ interface PricingOptionsNonNullableFields {
3568
+ optionDetails: OptionDetailsNonNullableFields[];
3569
+ }
3570
+ interface PricingMethodNonNullableFields {
3571
+ fixedPrice?: CommonMoneyNonNullableFields;
3572
+ guestPrice?: CommonMoneyNonNullableFields;
3573
+ pricingOptions?: PricingOptionsNonNullableFields;
3574
+ pricingType: PricingTypeEnumType;
3575
+ free: boolean;
3576
+ }
3577
+ interface SalePeriodNonNullableFields {
3578
+ displayNotOnSale: boolean;
3579
+ }
3580
+ interface CommonStreetAddressNonNullableFields {
3581
+ number: string;
3582
+ name: string;
3583
+ apt: string;
3584
+ }
3585
+ interface CommonSubdivisionNonNullableFields {
3586
+ code: string;
3587
+ name: string;
3588
+ type: SubdivisionSubdivisionType;
3589
+ }
3590
+ interface CommonAddressNonNullableFields {
3591
+ streetAddress?: CommonStreetAddressNonNullableFields;
3592
+ subdivisions: CommonSubdivisionNonNullableFields[];
3593
+ }
3594
+ interface LocationNonNullableFields {
3595
+ type: LocationType;
3596
+ address?: CommonAddressNonNullableFields;
3597
+ }
3598
+ interface OccurrenceNonNullableFields {
3599
+ showTimeZone: boolean;
3600
+ }
3601
+ interface RecurrencesNonNullableFields {
3602
+ individualEventDates: OccurrenceNonNullableFields[];
3603
+ }
3604
+ interface DateAndTimeSettingsNonNullableFields {
3605
+ recurrenceStatus: RecurrenceStatusStatus;
3606
+ recurringEvents?: RecurrencesNonNullableFields;
3607
+ }
3608
+ interface PageUrlNonNullableFields {
3609
+ base: string;
3610
+ path: string;
3611
+ }
3612
+ interface EventDetailsNonNullableFields {
3613
+ location?: LocationNonNullableFields;
3614
+ dateAndTimeSettings?: DateAndTimeSettingsNonNullableFields;
3615
+ eventPageUrl?: PageUrlNonNullableFields;
3616
+ status: Status;
3617
+ }
3618
+ interface TicketDefinitionNonNullableFields {
3619
+ hidden: boolean;
3620
+ limited: boolean;
3621
+ pricingMethod?: PricingMethodNonNullableFields;
3622
+ feeType: Type;
3623
+ salePeriod?: SalePeriodNonNullableFields;
3624
+ saleStatus: SaleStatusEnumStatus;
3625
+ sortIndex: number;
3626
+ eventDetails?: EventDetailsNonNullableFields;
3627
+ }
3628
+ export interface CreateTicketDefinitionResponseNonNullableFields {
3629
+ ticketDefinition?: TicketDefinitionNonNullableFields;
3630
+ }
3631
+ export interface UpdateTicketDefinitionResponseNonNullableFields {
3632
+ ticketDefinition?: TicketDefinitionNonNullableFields;
3633
+ }
3634
+ export interface GetTicketDefinitionResponseNonNullableFields {
3635
+ ticketDefinition?: TicketDefinitionNonNullableFields;
3636
+ }
3637
+ export interface QueryTicketDefinitionsResponseNonNullableFields {
3638
+ ticketDefinitions: TicketDefinitionNonNullableFields[];
3639
+ }
3640
+ export interface QueryAvailableTicketDefinitionsResponseNonNullableFields {
3641
+ ticketDefinitions: TicketDefinitionNonNullableFields[];
3642
+ }
3643
+ export {};