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