@wix/events 1.0.160 → 1.0.162

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 (79) hide show
  1. package/build/cjs/context.d.ts +1 -0
  2. package/build/cjs/context.js +2 -1
  3. package/build/cjs/context.js.map +1 -1
  4. package/build/cjs/index.d.ts +1 -0
  5. package/build/cjs/index.js +2 -1
  6. package/build/cjs/index.js.map +1 -1
  7. package/build/cjs/index.typings.d.ts +1 -0
  8. package/build/cjs/index.typings.js +2 -1
  9. package/build/cjs/index.typings.js.map +1 -1
  10. package/build/cjs/meta.d.ts +1 -0
  11. package/build/cjs/meta.js +2 -1
  12. package/build/cjs/meta.js.map +1 -1
  13. package/build/cjs/src/events-v1-form.public.d.ts +1 -1
  14. package/build/cjs/src/events-v1-form.public.js +2 -1
  15. package/build/cjs/src/events-v1-form.public.js.map +1 -1
  16. package/build/cjs/src/events-v1-form.types.d.ts +5 -0
  17. package/build/cjs/src/events-v1-form.types.js +7 -1
  18. package/build/cjs/src/events-v1-form.types.js.map +1 -1
  19. package/build/cjs/src/events-v1-form.universal.d.ts +5 -0
  20. package/build/cjs/src/events-v1-form.universal.js +7 -1
  21. package/build/cjs/src/events-v1-form.universal.js.map +1 -1
  22. package/build/cjs/src/events-v3-ticket-definition.context.d.ts +9 -0
  23. package/build/cjs/src/events-v3-ticket-definition.context.js +82 -0
  24. package/build/cjs/src/events-v3-ticket-definition.context.js.map +1 -0
  25. package/build/cjs/src/events-v3-ticket-definition.http.d.ts +33 -0
  26. package/build/cjs/src/events-v3-ticket-definition.http.js +283 -0
  27. package/build/cjs/src/events-v3-ticket-definition.http.js.map +1 -0
  28. package/build/cjs/src/events-v3-ticket-definition.meta.d.ts +25 -0
  29. package/build/cjs/src/events-v3-ticket-definition.meta.js +161 -0
  30. package/build/cjs/src/events-v3-ticket-definition.meta.js.map +1 -0
  31. package/build/cjs/src/events-v3-ticket-definition.public.d.ts +99 -0
  32. package/build/cjs/src/events-v3-ticket-definition.public.js +76 -0
  33. package/build/cjs/src/events-v3-ticket-definition.public.js.map +1 -0
  34. package/build/cjs/src/events-v3-ticket-definition.types.d.ts +2072 -0
  35. package/build/cjs/src/events-v3-ticket-definition.types.js +303 -0
  36. package/build/cjs/src/events-v3-ticket-definition.types.js.map +1 -0
  37. package/build/cjs/src/events-v3-ticket-definition.universal.d.ts +2266 -0
  38. package/build/cjs/src/events-v3-ticket-definition.universal.js +806 -0
  39. package/build/cjs/src/events-v3-ticket-definition.universal.js.map +1 -0
  40. package/build/es/context.d.ts +1 -0
  41. package/build/es/context.js +1 -0
  42. package/build/es/context.js.map +1 -1
  43. package/build/es/index.d.ts +1 -0
  44. package/build/es/index.js +1 -0
  45. package/build/es/index.js.map +1 -1
  46. package/build/es/index.typings.d.ts +1 -0
  47. package/build/es/index.typings.js +1 -0
  48. package/build/es/index.typings.js.map +1 -1
  49. package/build/es/meta.d.ts +1 -0
  50. package/build/es/meta.js +1 -0
  51. package/build/es/meta.js.map +1 -1
  52. package/build/es/src/events-v1-form.public.d.ts +1 -1
  53. package/build/es/src/events-v1-form.public.js +1 -1
  54. package/build/es/src/events-v1-form.public.js.map +1 -1
  55. package/build/es/src/events-v1-form.types.d.ts +5 -0
  56. package/build/es/src/events-v1-form.types.js +6 -0
  57. package/build/es/src/events-v1-form.types.js.map +1 -1
  58. package/build/es/src/events-v1-form.universal.d.ts +5 -0
  59. package/build/es/src/events-v1-form.universal.js +6 -0
  60. package/build/es/src/events-v1-form.universal.js.map +1 -1
  61. package/build/es/src/events-v3-ticket-definition.context.d.ts +9 -0
  62. package/build/es/src/events-v3-ticket-definition.context.js +72 -0
  63. package/build/es/src/events-v3-ticket-definition.context.js.map +1 -0
  64. package/build/es/src/events-v3-ticket-definition.http.d.ts +33 -0
  65. package/build/es/src/events-v3-ticket-definition.http.js +273 -0
  66. package/build/es/src/events-v3-ticket-definition.http.js.map +1 -0
  67. package/build/es/src/events-v3-ticket-definition.meta.d.ts +25 -0
  68. package/build/es/src/events-v3-ticket-definition.meta.js +128 -0
  69. package/build/es/src/events-v3-ticket-definition.meta.js.map +1 -0
  70. package/build/es/src/events-v3-ticket-definition.public.d.ts +99 -0
  71. package/build/es/src/events-v3-ticket-definition.public.js +40 -0
  72. package/build/es/src/events-v3-ticket-definition.public.js.map +1 -0
  73. package/build/es/src/events-v3-ticket-definition.types.d.ts +2072 -0
  74. package/build/es/src/events-v3-ticket-definition.types.js +300 -0
  75. package/build/es/src/events-v3-ticket-definition.types.js.map +1 -0
  76. package/build/es/src/events-v3-ticket-definition.universal.d.ts +2266 -0
  77. package/build/es/src/events-v3-ticket-definition.universal.js +773 -0
  78. package/build/es/src/events-v3-ticket-definition.universal.js.map +1 -0
  79. package/package.json +2 -2
@@ -0,0 +1,773 @@
1
+ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, generator) {
2
+ function adopt(value) { return value instanceof P ? value : new P(function (resolve) { resolve(value); }); }
3
+ return new (P || (P = Promise))(function (resolve, reject) {
4
+ function fulfilled(value) { try { step(generator.next(value)); } catch (e) { reject(e); } }
5
+ function rejected(value) { try { step(generator["throw"](value)); } catch (e) { reject(e); } }
6
+ function step(result) { result.done ? resolve(result.value) : adopt(result.value).then(fulfilled, rejected); }
7
+ step((generator = generator.apply(thisArg, _arguments || [])).next());
8
+ });
9
+ };
10
+ import { serializer } from '@wix/metro-runtime/velo';
11
+ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
12
+ import { EventDefinition } from '@wix/sdk-types';
13
+ import * as ambassadorWixEventsV3TicketDefinition from './events-v3-ticket-definition.http';
14
+ // @ts-ignore
15
+ const _toVeloEntity = '$';
16
+ const _fromVeloEntity = '$';
17
+ export var PricingTypeEnumType;
18
+ (function (PricingTypeEnumType) {
19
+ PricingTypeEnumType["UNKNOWN_PRICING_TYPE"] = "UNKNOWN_PRICING_TYPE";
20
+ PricingTypeEnumType["STANDARD"] = "STANDARD";
21
+ PricingTypeEnumType["DONATION"] = "DONATION";
22
+ })(PricingTypeEnumType || (PricingTypeEnumType = {}));
23
+ export var Type;
24
+ (function (Type) {
25
+ Type["UNKNOWN_FEE_TYPE"] = "UNKNOWN_FEE_TYPE";
26
+ /** Seller absorbs the fee. It is deducted from the ticket price. */
27
+ Type["FEE_INCLUDED"] = "FEE_INCLUDED";
28
+ /** Fee is added to the ticket price at checkout. */
29
+ Type["FEE_ADDED_AT_CHECKOUT"] = "FEE_ADDED_AT_CHECKOUT";
30
+ /** Service fee is not collected - available only for free tickets and legacy users. */
31
+ Type["NO_FEE"] = "NO_FEE";
32
+ })(Type || (Type = {}));
33
+ export var SaleStatusEnumStatus;
34
+ (function (SaleStatusEnumStatus) {
35
+ SaleStatusEnumStatus["UNKNOWN_SALE_STATUS"] = "UNKNOWN_SALE_STATUS";
36
+ /** Ticket sale is scheduled to start */
37
+ SaleStatusEnumStatus["SALE_SCHEDULED"] = "SALE_SCHEDULED";
38
+ /** Ticket sale has started */
39
+ SaleStatusEnumStatus["SALE_STARTED"] = "SALE_STARTED";
40
+ /** Ticket sale has ended */
41
+ SaleStatusEnumStatus["SALE_ENDED"] = "SALE_ENDED";
42
+ })(SaleStatusEnumStatus || (SaleStatusEnumStatus = {}));
43
+ export var ReservationStatus;
44
+ (function (ReservationStatus) {
45
+ /**
46
+ * Reservation is pending confirmation.
47
+ * The reservation will expire after the expiration due time.
48
+ */
49
+ ReservationStatus["RESERVATION_PENDING"] = "RESERVATION_PENDING";
50
+ /** The reservation was confirmed and will not expire. */
51
+ ReservationStatus["RESERVATION_CONFIRMED"] = "RESERVATION_CONFIRMED";
52
+ /** The reservation was canceled because of non payment. */
53
+ ReservationStatus["RESERVATION_CANCELED"] = "RESERVATION_CANCELED";
54
+ /** The reservation was canceled manually by the buyer. */
55
+ ReservationStatus["RESERVATION_CANCELED_MANUALLY"] = "RESERVATION_CANCELED_MANUALLY";
56
+ /** The reservation has expired. */
57
+ ReservationStatus["RESERVATION_EXPIRED"] = "RESERVATION_EXPIRED";
58
+ })(ReservationStatus || (ReservationStatus = {}));
59
+ export var Field;
60
+ (function (Field) {
61
+ Field["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
62
+ /** Include `unsoldCount`, `soldCount`, `reservedCount` and `soldOut` in the response. */
63
+ Field["SALES_DETAILS"] = "SALES_DETAILS";
64
+ })(Field || (Field = {}));
65
+ export var SortOrder;
66
+ (function (SortOrder) {
67
+ SortOrder["ASC"] = "ASC";
68
+ SortOrder["DESC"] = "DESC";
69
+ })(SortOrder || (SortOrder = {}));
70
+ export var LocationType;
71
+ (function (LocationType) {
72
+ LocationType["VENUE"] = "VENUE";
73
+ LocationType["ONLINE"] = "ONLINE";
74
+ })(LocationType || (LocationType = {}));
75
+ export var SubdivisionType;
76
+ (function (SubdivisionType) {
77
+ SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
78
+ /** State */
79
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
80
+ /** County */
81
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
82
+ /** City/town */
83
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
84
+ /** Neighborhood/quarter */
85
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
86
+ /** Street/block */
87
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
88
+ /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
89
+ SubdivisionType["COUNTRY"] = "COUNTRY";
90
+ })(SubdivisionType || (SubdivisionType = {}));
91
+ export var Status;
92
+ (function (Status) {
93
+ /** Event occurs only once. */
94
+ Status["ONE_TIME"] = "ONE_TIME";
95
+ /** Event is recurring. */
96
+ Status["RECURRING"] = "RECURRING";
97
+ /** Marks the next upcoming occurrence of the recurring event. */
98
+ Status["RECURRING_NEXT"] = "RECURRING_NEXT";
99
+ /** Marks the most recent ended occurrence of the recurring event. */
100
+ Status["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
101
+ /** Marks the most recent canceled occurrence of the recurring event. */
102
+ Status["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
103
+ })(Status || (Status = {}));
104
+ export var EventStatus;
105
+ (function (EventStatus) {
106
+ /** Event is public and scheduled to start */
107
+ EventStatus["SCHEDULED"] = "SCHEDULED";
108
+ /** Event has started */
109
+ EventStatus["STARTED"] = "STARTED";
110
+ /** Event has ended */
111
+ EventStatus["ENDED"] = "ENDED";
112
+ /** Event was canceled */
113
+ EventStatus["CANCELED"] = "CANCELED";
114
+ /** Event is not public and needs to be published */
115
+ EventStatus["DRAFT"] = "DRAFT";
116
+ })(EventStatus || (EventStatus = {}));
117
+ export var EventType;
118
+ (function (EventType) {
119
+ /** Type not available for this request fieldset */
120
+ EventType["NA_EVENT_TYPE"] = "NA_EVENT_TYPE";
121
+ /** Registration via RSVP */
122
+ EventType["RSVP"] = "RSVP";
123
+ /** Registration via ticket purchase */
124
+ EventType["TICKETS"] = "TICKETS";
125
+ /** External registration */
126
+ EventType["EXTERNAL"] = "EXTERNAL";
127
+ /** Registration not available */
128
+ EventType["NO_REGISTRATION"] = "NO_REGISTRATION";
129
+ })(EventType || (EventType = {}));
130
+ export var RegistrationStatus;
131
+ (function (RegistrationStatus) {
132
+ /** Registration status is not applicable */
133
+ RegistrationStatus["NA_REGISTRATION_STATUS"] = "NA_REGISTRATION_STATUS";
134
+ /** Registration to event is closed */
135
+ RegistrationStatus["CLOSED"] = "CLOSED";
136
+ /** Registration to event is closed manually */
137
+ RegistrationStatus["CLOSED_MANUALLY"] = "CLOSED_MANUALLY";
138
+ /** Registration is open via RSVP */
139
+ RegistrationStatus["OPEN_RSVP"] = "OPEN_RSVP";
140
+ /** Registration to event waitlist is open via RSVP */
141
+ RegistrationStatus["OPEN_RSVP_WAITLIST"] = "OPEN_RSVP_WAITLIST";
142
+ /** Registration is open via ticket purchase */
143
+ RegistrationStatus["OPEN_TICKETS"] = "OPEN_TICKETS";
144
+ /** Registration is open via external URL */
145
+ RegistrationStatus["OPEN_EXTERNAL"] = "OPEN_EXTERNAL";
146
+ /** Registration will be open via RSVP */
147
+ RegistrationStatus["SCHEDULED_RSVP"] = "SCHEDULED_RSVP";
148
+ })(RegistrationStatus || (RegistrationStatus = {}));
149
+ export var RsvpStatusOptions;
150
+ (function (RsvpStatusOptions) {
151
+ /** Only YES RSVP status is available for RSVP registration */
152
+ RsvpStatusOptions["YES_ONLY"] = "YES_ONLY";
153
+ /** YES and NO RSVP status options are available for the registration */
154
+ RsvpStatusOptions["YES_AND_NO"] = "YES_AND_NO";
155
+ })(RsvpStatusOptions || (RsvpStatusOptions = {}));
156
+ export var TaxType;
157
+ (function (TaxType) {
158
+ /** Tax is included in the ticket price */
159
+ TaxType["INCLUDED"] = "INCLUDED";
160
+ /** Tax is added to the order at the checkout */
161
+ TaxType["ADDED"] = "ADDED";
162
+ /** Tax is added to the final total at the checkout */
163
+ TaxType["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
164
+ })(TaxType || (TaxType = {}));
165
+ export var VisitorType;
166
+ (function (VisitorType) {
167
+ /** Site visitor (including member) */
168
+ VisitorType["VISITOR"] = "VISITOR";
169
+ /** Site member */
170
+ VisitorType["MEMBER"] = "MEMBER";
171
+ /** Site visitor or member */
172
+ VisitorType["VISITOR_OR_MEMBER"] = "VISITOR_OR_MEMBER";
173
+ })(VisitorType || (VisitorType = {}));
174
+ export var InputControlType;
175
+ (function (InputControlType) {
176
+ /** Single text value field. */
177
+ InputControlType["INPUT"] = "INPUT";
178
+ /** Single text value field. */
179
+ InputControlType["TEXTAREA"] = "TEXTAREA";
180
+ /** Single-choice field of predefined values. */
181
+ InputControlType["DROPDOWN"] = "DROPDOWN";
182
+ /** Single-choice field of predefined values. */
183
+ InputControlType["RADIO"] = "RADIO";
184
+ /** Multiple-choice field of predefined values. */
185
+ InputControlType["CHECKBOX"] = "CHECKBOX";
186
+ /** First and last name fields. */
187
+ InputControlType["NAME"] = "NAME";
188
+ /** Additional guests and respective guest names fields. */
189
+ InputControlType["GUEST_CONTROL"] = "GUEST_CONTROL";
190
+ /** Single-line address field. */
191
+ InputControlType["ADDRESS_SHORT"] = "ADDRESS_SHORT";
192
+ /** Full address field. */
193
+ InputControlType["ADDRESS_FULL"] = "ADDRESS_FULL";
194
+ /** Year, month and day fields. */
195
+ InputControlType["DATE"] = "DATE";
196
+ })(InputControlType || (InputControlType = {}));
197
+ export var ValueType;
198
+ (function (ValueType) {
199
+ ValueType["TEXT"] = "TEXT";
200
+ ValueType["NUMBER"] = "NUMBER";
201
+ ValueType["TEXT_ARRAY"] = "TEXT_ARRAY";
202
+ ValueType["DATE_TIME"] = "DATE_TIME";
203
+ ValueType["ADDRESS"] = "ADDRESS";
204
+ })(ValueType || (ValueType = {}));
205
+ export var ConferenceType;
206
+ (function (ConferenceType) {
207
+ /** Everyone in the meeting can publish and subscribe video and audio. */
208
+ ConferenceType["MEETING"] = "MEETING";
209
+ /** Guests can only subscribe to video and audio. */
210
+ ConferenceType["WEBINAR"] = "WEBINAR";
211
+ })(ConferenceType || (ConferenceType = {}));
212
+ export var CategoryStateState;
213
+ (function (CategoryStateState) {
214
+ /** Created manually by the user. */
215
+ CategoryStateState["MANUAL"] = "MANUAL";
216
+ /** Created automatically. */
217
+ CategoryStateState["AUTO"] = "AUTO";
218
+ /** Created when publishing recurring events. */
219
+ CategoryStateState["RECURRING_EVENT"] = "RECURRING_EVENT";
220
+ /** Category is hidden. */
221
+ CategoryStateState["HIDDEN"] = "HIDDEN";
222
+ /** Category is used to store component events. */
223
+ CategoryStateState["COMPONENT"] = "COMPONENT";
224
+ })(CategoryStateState || (CategoryStateState = {}));
225
+ export var State;
226
+ (function (State) {
227
+ State["UNKNOWN"] = "UNKNOWN";
228
+ State["ENABLED"] = "ENABLED";
229
+ State["DISABLED"] = "DISABLED";
230
+ State["PENDING"] = "PENDING";
231
+ State["DEMO"] = "DEMO";
232
+ })(State || (State = {}));
233
+ export var SiteCreatedContext;
234
+ (function (SiteCreatedContext) {
235
+ /** A valid option, we don't expose all reasons why site might be created. */
236
+ SiteCreatedContext["OTHER"] = "OTHER";
237
+ /** A meta site was created from template. */
238
+ SiteCreatedContext["FROM_TEMPLATE"] = "FROM_TEMPLATE";
239
+ /** A meta site was created by copying of the transfferred meta site. */
240
+ SiteCreatedContext["DUPLICATE_BY_SITE_TRANSFER"] = "DUPLICATE_BY_SITE_TRANSFER";
241
+ /** A copy of existing meta site. */
242
+ SiteCreatedContext["DUPLICATE"] = "DUPLICATE";
243
+ /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
244
+ SiteCreatedContext["OLD_SITE_TRANSFER"] = "OLD_SITE_TRANSFER";
245
+ /** deprecated A meta site was created for Flash editor. */
246
+ SiteCreatedContext["FLASH"] = "FLASH";
247
+ })(SiteCreatedContext || (SiteCreatedContext = {}));
248
+ export var Namespace;
249
+ (function (Namespace) {
250
+ Namespace["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
251
+ /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
252
+ Namespace["WIX"] = "WIX";
253
+ /** 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. */
254
+ Namespace["SHOUT_OUT"] = "SHOUT_OUT";
255
+ /** 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. */
256
+ Namespace["ALBUMS"] = "ALBUMS";
257
+ /** 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. */
258
+ Namespace["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
259
+ /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
260
+ Namespace["HOTELS"] = "HOTELS";
261
+ /** 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. */
262
+ Namespace["CLUBS"] = "CLUBS";
263
+ /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
264
+ Namespace["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
265
+ /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
266
+ Namespace["DEV_SITE"] = "DEV_SITE";
267
+ /** 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. */
268
+ Namespace["LOGOS"] = "LOGOS";
269
+ /** 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. */
270
+ Namespace["VIDEO_MAKER"] = "VIDEO_MAKER";
271
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
272
+ Namespace["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
273
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
274
+ Namespace["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
275
+ /**
276
+ * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
277
+ *
278
+ * Meta site with this namespace will *not* be shown in a user's site list by default.
279
+ */
280
+ Namespace["HTML_DRAFT"] = "HTML_DRAFT";
281
+ /**
282
+ * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
283
+ * Will be accessible from Site List and will not have a website app.
284
+ * Once the user attaches a site, the site will become a regular wixsite.
285
+ */
286
+ Namespace["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
287
+ /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
288
+ Namespace["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
289
+ /** It is to be used in the Business First efforts. */
290
+ Namespace["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
291
+ /** Bookings business flow with no site. */
292
+ Namespace["ANYWHERE"] = "ANYWHERE";
293
+ /** Namespace for Headless Backoffice with no editor */
294
+ Namespace["HEADLESS"] = "HEADLESS";
295
+ /**
296
+ * Namespace for master site that will exist in parent account that will be referenced by subaccounts
297
+ * The site will be used for account level CSM feature for enterprise
298
+ */
299
+ Namespace["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
300
+ /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
301
+ Namespace["RISE"] = "RISE";
302
+ /**
303
+ * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
304
+ * There's a blank site behind the scene but it's blank).
305
+ * The Mobile company will be the owner of this namespace.
306
+ */
307
+ Namespace["BRANDED_FIRST"] = "BRANDED_FIRST";
308
+ })(Namespace || (Namespace = {}));
309
+ export var DeleteStatus;
310
+ (function (DeleteStatus) {
311
+ DeleteStatus["UNKNOWN"] = "UNKNOWN";
312
+ DeleteStatus["TRASH"] = "TRASH";
313
+ DeleteStatus["DELETED"] = "DELETED";
314
+ DeleteStatus["PENDING_PURGE"] = "PENDING_PURGE";
315
+ })(DeleteStatus || (DeleteStatus = {}));
316
+ const _bulkDeleteTicketDefinitionsByFilterRequest = {};
317
+ const _bulkDeleteTicketDefinitionsByFilterResponse = {};
318
+ const _createTicketDefinitionRequest = {};
319
+ const _createTicketDefinitionResponse = {};
320
+ const _deleteTicketDefinitionRequest = {};
321
+ const _deleteTicketDefinitionResponse = {};
322
+ const _getTicketDefinitionRequest = {};
323
+ const _getTicketDefinitionResponse = {};
324
+ const _queryTicketDefinitionsRequest = {};
325
+ const _queryTicketDefinitionsResponse = {};
326
+ const _reorderTicketDefinitionsRequest = {};
327
+ const _reorderTicketDefinitionsResponse = {};
328
+ const _updateTicketDefinitionRequest = {};
329
+ const _updateTicketDefinitionResponse = {};
330
+ export const onTicketDefinitionCreated = EventDefinition('wix.events.v3.ticket_definition_created')();
331
+ export const onTicketDefinitionUpdated = EventDefinition('wix.events.v3.ticket_definition_updated')();
332
+ export const onTicketDefinitionDeleted = EventDefinition('wix.events.v3.ticket_definition_deleted')();
333
+ /**
334
+ * Creates a ticket definition. Allowed to create up to 100 definitions per event.
335
+ * @param ticketDefinition - Ticket definition info.
336
+ * @public
337
+ * @documentationMaturity preview
338
+ * @requiredField ticketDefinition
339
+ * @requiredField ticketDefinition.eventId
340
+ * @requiredField ticketDefinition.feeType
341
+ * @requiredField ticketDefinition.name
342
+ * @requiredField ticketDefinition.pricingMethod
343
+ * @permissionScope Manage Events - all permissions
344
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
345
+ * @permissionScope Manage Ticket Definitions
346
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
347
+ * @applicableIdentity APP
348
+ * @returns Created ticket definition.
349
+ */
350
+ export function createTicketDefinition(ticketDefinition, options) {
351
+ var _a, _b, _c;
352
+ return __awaiter(this, arguments, void 0, function* () {
353
+ const requestTransformation = {
354
+ ticketDefinition: '$[0]',
355
+ fields: '$[1].fields',
356
+ };
357
+ const responseTransformation = '$.ticketDefinition';
358
+ // @ts-ignore
359
+ const { httpClient, sideEffects } = arguments[2];
360
+ const { toAmbassadorRequest } = serializer({
361
+ rootSchema: _createTicketDefinitionRequest,
362
+ depSchemas: {},
363
+ fqdnTransformation: {
364
+ paths: [...['ticketDefinition']],
365
+ transformation: _fromVeloEntity,
366
+ },
367
+ customTransformation: requestTransformation,
368
+ });
369
+ const { fromJSON } = serializer({
370
+ rootSchema: _createTicketDefinitionResponse,
371
+ depSchemas: {},
372
+ fqdnTransformation: {
373
+ paths: [...['ticketDefinition']],
374
+ transformation: _toVeloEntity,
375
+ },
376
+ customTransformation: responseTransformation,
377
+ });
378
+ const payload = toAmbassadorRequest([ticketDefinition, options]);
379
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.createTicketDefinition(payload);
380
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
381
+ try {
382
+ const result = yield httpClient.request(reqOpts);
383
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
384
+ return fromJSON(result.data);
385
+ }
386
+ catch (err) {
387
+ const transformedError = sdkTransformError(err, {
388
+ spreadPathsToArguments: {},
389
+ explicitPathsToArguments: {
390
+ ticketDefinition: '$[0]',
391
+ fields: '$[1].fields',
392
+ },
393
+ singleArgumentUnchanged: false,
394
+ }, ['ticketDefinition', 'options']);
395
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
396
+ throw transformedError;
397
+ }
398
+ });
399
+ }
400
+ /**
401
+ * Updates a ticket definition.
402
+ * Each time the ticket definition is updated, `revision` increments by 1. The existing `revision` must be included when updating the ticket definition. This ensures you're working with the latest ticket definition and prevents unintended overwrites.
403
+ * @param _id - Ticket definition ID.
404
+ * @public
405
+ * @documentationMaturity preview
406
+ * @requiredField _id
407
+ * @requiredField ticketDefinition
408
+ * @requiredField ticketDefinition.revision
409
+ * @permissionScope Manage Events - all permissions
410
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
411
+ * @permissionScope Manage Ticket Definitions
412
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
413
+ * @applicableIdentity APP
414
+ * @returns The updated ticket definition.
415
+ */
416
+ export function updateTicketDefinition(_id, ticketDefinition, options) {
417
+ var _a, _b, _c;
418
+ return __awaiter(this, arguments, void 0, function* () {
419
+ const requestTransformation = {
420
+ ticketDefinition: { '*': '$[1]', id: '$[0]' },
421
+ fields: '$[2].fields',
422
+ };
423
+ const responseTransformation = '$.ticketDefinition';
424
+ // @ts-ignore
425
+ const { httpClient, sideEffects } = arguments[3];
426
+ const { toAmbassadorRequest } = serializer({
427
+ rootSchema: _updateTicketDefinitionRequest,
428
+ depSchemas: {},
429
+ fqdnTransformation: {
430
+ paths: [...['ticketDefinition']],
431
+ transformation: _fromVeloEntity,
432
+ },
433
+ customTransformation: requestTransformation,
434
+ });
435
+ const { fromJSON } = serializer({
436
+ rootSchema: _updateTicketDefinitionResponse,
437
+ depSchemas: {},
438
+ fqdnTransformation: {
439
+ paths: [...['ticketDefinition']],
440
+ transformation: _toVeloEntity,
441
+ },
442
+ customTransformation: responseTransformation,
443
+ });
444
+ const payload = toAmbassadorRequest([_id, ticketDefinition, options]);
445
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.updateTicketDefinition(payload);
446
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
447
+ try {
448
+ const result = yield httpClient.request(reqOpts);
449
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
450
+ return fromJSON(result.data);
451
+ }
452
+ catch (err) {
453
+ const transformedError = sdkTransformError(err, {
454
+ spreadPathsToArguments: { ticketDefinition: '$[1]' },
455
+ explicitPathsToArguments: {
456
+ 'ticketDefinition.id': '$[0]',
457
+ fields: '$[2].fields',
458
+ },
459
+ singleArgumentUnchanged: false,
460
+ }, ['_id', 'ticketDefinition', 'options']);
461
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
462
+ throw transformedError;
463
+ }
464
+ });
465
+ }
466
+ /**
467
+ * Retrieves a ticket definition.
468
+ * @param ticketDefinitionId - Ticket definition ID.
469
+ * @public
470
+ * @documentationMaturity preview
471
+ * @requiredField ticketDefinitionId
472
+ * @permissionScope Manage Events - all permissions
473
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
474
+ * @permissionScope Manage Orders
475
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
476
+ * @permissionScope Manage Ticket Definitions
477
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
478
+ * @applicableIdentity APP
479
+ * @returns The requested ticket definition.
480
+ */
481
+ export function getTicketDefinition(ticketDefinitionId, options) {
482
+ var _a, _b, _c;
483
+ return __awaiter(this, arguments, void 0, function* () {
484
+ const requestTransformation = {
485
+ ticketDefinitionId: '$[0]',
486
+ fields: '$[1].fields',
487
+ };
488
+ const responseTransformation = '$.ticketDefinition';
489
+ // @ts-ignore
490
+ const { httpClient, sideEffects } = arguments[2];
491
+ const { toAmbassadorRequest } = serializer({
492
+ rootSchema: _getTicketDefinitionRequest,
493
+ depSchemas: {},
494
+ fqdnTransformation: {
495
+ paths: [],
496
+ transformation: _fromVeloEntity,
497
+ },
498
+ customTransformation: requestTransformation,
499
+ });
500
+ const { fromJSON } = serializer({
501
+ rootSchema: _getTicketDefinitionResponse,
502
+ depSchemas: {},
503
+ fqdnTransformation: {
504
+ paths: [...['ticketDefinition']],
505
+ transformation: _toVeloEntity,
506
+ },
507
+ customTransformation: responseTransformation,
508
+ });
509
+ const payload = toAmbassadorRequest([ticketDefinitionId, options]);
510
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.getTicketDefinition(payload);
511
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
512
+ try {
513
+ const result = yield httpClient.request(reqOpts);
514
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
515
+ return fromJSON(result.data);
516
+ }
517
+ catch (err) {
518
+ const transformedError = sdkTransformError(err, {
519
+ spreadPathsToArguments: {},
520
+ explicitPathsToArguments: {
521
+ ticketDefinitionId: '$[0]',
522
+ fields: '$[1].fields',
523
+ },
524
+ singleArgumentUnchanged: false,
525
+ }, ['ticketDefinitionId', 'options']);
526
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
527
+ throw transformedError;
528
+ }
529
+ });
530
+ }
531
+ /**
532
+ * Permanently deletes a ticket definition.
533
+ * @param ticketDefinitionId - ID of the ticket definition to delete.
534
+ * @public
535
+ * @documentationMaturity preview
536
+ * @requiredField ticketDefinitionId
537
+ * @permissionScope Manage Events - all permissions
538
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
539
+ * @permissionScope Manage Ticket Definitions
540
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
541
+ * @applicableIdentity APP
542
+ */
543
+ export function deleteTicketDefinition(ticketDefinitionId) {
544
+ var _a, _b, _c;
545
+ return __awaiter(this, arguments, void 0, function* () {
546
+ const requestTransformation = { ticketDefinitionId: '$[0]' };
547
+ const responseTransformation = '$';
548
+ // @ts-ignore
549
+ const { httpClient, sideEffects } = arguments[1];
550
+ const { toAmbassadorRequest } = serializer({
551
+ rootSchema: _deleteTicketDefinitionRequest,
552
+ depSchemas: {},
553
+ fqdnTransformation: {
554
+ paths: [],
555
+ transformation: _fromVeloEntity,
556
+ },
557
+ customTransformation: requestTransformation,
558
+ });
559
+ const { fromJSON } = serializer({
560
+ rootSchema: _deleteTicketDefinitionResponse,
561
+ depSchemas: {},
562
+ fqdnTransformation: {
563
+ paths: [],
564
+ transformation: _toVeloEntity,
565
+ },
566
+ customTransformation: responseTransformation,
567
+ });
568
+ const payload = toAmbassadorRequest([ticketDefinitionId]);
569
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.deleteTicketDefinition(payload);
570
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
571
+ try {
572
+ const result = yield httpClient.request(reqOpts);
573
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
574
+ }
575
+ catch (err) {
576
+ const transformedError = sdkTransformError(err, {
577
+ spreadPathsToArguments: {},
578
+ explicitPathsToArguments: { ticketDefinitionId: '$[0]' },
579
+ singleArgumentUnchanged: false,
580
+ }, ['ticketDefinitionId']);
581
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
582
+ throw transformedError;
583
+ }
584
+ });
585
+ }
586
+ /**
587
+ * Changes ticket definitions order in an event dashboard and the list of available tickets in the ticket picker.
588
+ * > **Note:** It is possible to use both `beforeTicketDefinitionId` and `afterTicketDefinitionId` at the same time but only the last one defined will be executed.
589
+ * @param eventId - Event ID.
590
+ * @public
591
+ * @documentationMaturity preview
592
+ * @requiredField eventId
593
+ * @requiredField options.ticketDefinitionId
594
+ * @permissionScope Manage Events - all permissions
595
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
596
+ * @permissionScope Manage Ticket Definitions
597
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
598
+ * @applicableIdentity APP
599
+ */
600
+ export function reorderTicketDefinitions(eventId, options) {
601
+ var _a, _b, _c;
602
+ return __awaiter(this, arguments, void 0, function* () {
603
+ const requestTransformation = {
604
+ eventId: '$[0]',
605
+ ticketDefinitionId: '$[1].ticketDefinitionId',
606
+ beforeDefinitionId: '$[1].beforeDefinitionId',
607
+ afterDefinitionId: '$[1].afterDefinitionId',
608
+ };
609
+ const responseTransformation = '$';
610
+ // @ts-ignore
611
+ const { httpClient, sideEffects } = arguments[2];
612
+ const { toAmbassadorRequest } = serializer({
613
+ rootSchema: _reorderTicketDefinitionsRequest,
614
+ depSchemas: {},
615
+ fqdnTransformation: {
616
+ paths: [],
617
+ transformation: _fromVeloEntity,
618
+ },
619
+ customTransformation: requestTransformation,
620
+ });
621
+ const { fromJSON } = serializer({
622
+ rootSchema: _reorderTicketDefinitionsResponse,
623
+ depSchemas: {},
624
+ fqdnTransformation: {
625
+ paths: [],
626
+ transformation: _toVeloEntity,
627
+ },
628
+ customTransformation: responseTransformation,
629
+ });
630
+ const payload = toAmbassadorRequest([eventId, options]);
631
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.reorderTicketDefinitions(payload);
632
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
633
+ try {
634
+ const result = yield httpClient.request(reqOpts);
635
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
636
+ }
637
+ catch (err) {
638
+ const transformedError = sdkTransformError(err, {
639
+ spreadPathsToArguments: {},
640
+ explicitPathsToArguments: {
641
+ eventId: '$[0]',
642
+ ticketDefinitionId: '$[1].ticketDefinitionId',
643
+ beforeDefinitionId: '$[1].beforeDefinitionId',
644
+ afterDefinitionId: '$[1].afterDefinitionId',
645
+ },
646
+ singleArgumentUnchanged: false,
647
+ }, ['eventId', 'options']);
648
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
649
+ throw transformedError;
650
+ }
651
+ });
652
+ }
653
+ /**
654
+ * Retrieves a list of ticket definitions, given the provided paging, filtering, and sorting.
655
+ * Query Ticket Definitions runs with these defaults, which you can override:
656
+ * - `createdDate` is sorted in `ASC` order
657
+ * - `paging.limit` is `100`
658
+ * - `paging.offset` is `0`
659
+ * For field support for filters and sorting, see [Ticket Definitions: Supported Filters and Sorting](https://dev.wix.com/api/rest/wix-events/ticket-definitions-v3/filter-and-sort).
660
+ * To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language), [Sorting and Paging](https://dev.wix.com/api/rest/getting-started/pagination), and [Field Projection](https://dev.wix.com/api/rest/getting-started/field-projection).
661
+ * @param query - Query options. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details.
662
+ * @public
663
+ * @documentationMaturity preview
664
+ * @requiredField query
665
+ * @permissionScope Manage Events - all permissions
666
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
667
+ * @permissionScope Manage Orders
668
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
669
+ * @permissionScope Manage Ticket Definitions
670
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
671
+ * @applicableIdentity APP
672
+ */
673
+ export function queryTicketDefinitions(query, options) {
674
+ var _a, _b, _c;
675
+ return __awaiter(this, arguments, void 0, function* () {
676
+ const requestTransformation = { query: '$[0]', fields: '$[1].fields' };
677
+ const responseTransformation = '$';
678
+ // @ts-ignore
679
+ const { httpClient, sideEffects } = arguments[2];
680
+ const { toAmbassadorRequest } = serializer({
681
+ rootSchema: _queryTicketDefinitionsRequest,
682
+ depSchemas: {},
683
+ fqdnTransformation: {
684
+ paths: [],
685
+ transformation: _fromVeloEntity,
686
+ },
687
+ customTransformation: requestTransformation,
688
+ });
689
+ const { fromJSON } = serializer({
690
+ rootSchema: _queryTicketDefinitionsResponse,
691
+ depSchemas: {},
692
+ fqdnTransformation: {
693
+ paths: [...['Array#ticketDefinitions']],
694
+ transformation: _toVeloEntity,
695
+ },
696
+ customTransformation: responseTransformation,
697
+ });
698
+ const payload = toAmbassadorRequest([query, options]);
699
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.queryTicketDefinitions(payload);
700
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
701
+ try {
702
+ const result = yield httpClient.request(reqOpts);
703
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
704
+ return fromJSON(result.data);
705
+ }
706
+ catch (err) {
707
+ const transformedError = sdkTransformError(err, {
708
+ spreadPathsToArguments: {},
709
+ explicitPathsToArguments: { query: '$[0]', fields: '$[1].fields' },
710
+ singleArgumentUnchanged: false,
711
+ }, ['query', 'options']);
712
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
713
+ throw transformedError;
714
+ }
715
+ });
716
+ }
717
+ /**
718
+ * Deletes multiple ticket definitions. <br> <br>
719
+ * All ticket definitions that meet the specified `filter` criteria are deleted.
720
+ * @param filter - Filter object in the following format: <br/> `"filter" : { "fieldName1": "value1" }`. <br/> <br/> **Example:** <br/> `"filter" : { "eventId": "3d3d5c04-ece0-45a8-85f0-11a58edaa192" }`
721
+ * @public
722
+ * @documentationMaturity preview
723
+ * @requiredField filter
724
+ * @permissionScope Manage Events - all permissions
725
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
726
+ * @permissionScope Manage Ticket Definitions
727
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
728
+ * @applicableIdentity APP
729
+ */
730
+ export function bulkDeleteTicketDefinitionsByFilter(filter) {
731
+ var _a, _b, _c;
732
+ return __awaiter(this, arguments, void 0, function* () {
733
+ const requestTransformation = { filter: '$[0]' };
734
+ const responseTransformation = '$';
735
+ // @ts-ignore
736
+ const { httpClient, sideEffects } = arguments[1];
737
+ const { toAmbassadorRequest } = serializer({
738
+ rootSchema: _bulkDeleteTicketDefinitionsByFilterRequest,
739
+ depSchemas: {},
740
+ fqdnTransformation: {
741
+ paths: [],
742
+ transformation: _fromVeloEntity,
743
+ },
744
+ customTransformation: requestTransformation,
745
+ });
746
+ const { fromJSON } = serializer({
747
+ rootSchema: _bulkDeleteTicketDefinitionsByFilterResponse,
748
+ depSchemas: {},
749
+ fqdnTransformation: {
750
+ paths: [],
751
+ transformation: _toVeloEntity,
752
+ },
753
+ customTransformation: responseTransformation,
754
+ });
755
+ const payload = toAmbassadorRequest([filter]);
756
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.bulkDeleteTicketDefinitionsByFilter(payload);
757
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
758
+ try {
759
+ const result = yield httpClient.request(reqOpts);
760
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
761
+ }
762
+ catch (err) {
763
+ const transformedError = sdkTransformError(err, {
764
+ spreadPathsToArguments: {},
765
+ explicitPathsToArguments: { filter: '$[0]' },
766
+ singleArgumentUnchanged: false,
767
+ }, ['filter']);
768
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
769
+ throw transformedError;
770
+ }
771
+ });
772
+ }
773
+ //# sourceMappingURL=events-v3-ticket-definition.universal.js.map