@wix/events 1.0.13 → 1.0.14

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 (195) hide show
  1. package/build/cjs/index.d.ts +6 -1
  2. package/build/cjs/index.js +7 -2
  3. package/build/cjs/index.js.map +1 -1
  4. package/build/cjs/src/events-guests-v1-guest.http.d.ts +1 -4
  5. package/build/cjs/src/events-guests-v1-guest.http.js +27 -5
  6. package/build/cjs/src/events-guests-v1-guest.http.js.map +1 -1
  7. package/build/cjs/src/events-guests-v1-guest.public.d.ts +2 -2
  8. package/build/cjs/src/events-guests-v1-guest.public.js +2 -2
  9. package/build/cjs/src/events-guests-v1-guest.public.js.map +1 -1
  10. package/build/cjs/src/events-guests-v1-guest.types.d.ts +57 -43
  11. package/build/cjs/src/events-guests-v1-guest.types.js +9 -9
  12. package/build/cjs/src/events-guests-v1-guest.types.js.map +1 -1
  13. package/build/cjs/src/events-guests-v1-guest.universal.d.ts +60 -46
  14. package/build/cjs/src/events-guests-v1-guest.universal.js +12 -12
  15. package/build/cjs/src/events-guests-v1-guest.universal.js.map +1 -1
  16. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.d.ts +49 -0
  17. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.js +485 -0
  18. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.js.map +1 -0
  19. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.d.ts +318 -0
  20. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.js +27 -0
  21. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.js.map +1 -0
  22. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js +1 -1
  23. package/build/cjs/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js.map +1 -1
  24. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.http.d.ts +49 -0
  25. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.http.js +485 -0
  26. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.http.js.map +1 -0
  27. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.types.d.ts +318 -0
  28. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.types.js +27 -0
  29. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.types.js.map +1 -0
  30. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.universal.js +1 -1
  31. package/build/cjs/src/events-schedule-v1-schedule-item-schedule.universal.js.map +1 -1
  32. package/build/cjs/src/events-v1-order-checkout.http.d.ts +65 -0
  33. package/build/cjs/src/events-v1-order-checkout.http.js +1026 -0
  34. package/build/cjs/src/events-v1-order-checkout.http.js.map +1 -0
  35. package/build/cjs/src/events-v1-order-checkout.public.d.ts +12 -0
  36. package/build/cjs/src/events-v1-order-checkout.public.js +68 -0
  37. package/build/cjs/src/events-v1-order-checkout.public.js.map +1 -0
  38. package/build/cjs/src/events-v1-order-checkout.types.d.ts +1271 -0
  39. package/build/cjs/src/events-v1-order-checkout.types.js +145 -0
  40. package/build/cjs/src/events-v1-order-checkout.types.js.map +1 -0
  41. package/build/cjs/src/events-v1-order-checkout.universal.d.ts +1439 -0
  42. package/build/cjs/src/events-v1-order-checkout.universal.js +698 -0
  43. package/build/cjs/src/events-v1-order-checkout.universal.js.map +1 -0
  44. package/build/cjs/src/events-v1-order-orders.http.d.ts +79 -0
  45. package/build/cjs/src/events-v1-order-orders.http.js +1040 -0
  46. package/build/cjs/src/events-v1-order-orders.http.js.map +1 -0
  47. package/build/cjs/src/events-v1-order-orders.public.d.ts +10 -0
  48. package/build/cjs/src/events-v1-order-orders.public.js +56 -0
  49. package/build/cjs/src/events-v1-order-orders.public.js.map +1 -0
  50. package/build/cjs/src/events-v1-order-orders.types.d.ts +1271 -0
  51. package/build/cjs/src/events-v1-order-orders.types.js +145 -0
  52. package/build/cjs/src/events-v1-order-orders.types.js.map +1 -0
  53. package/build/cjs/src/events-v1-order-orders.universal.d.ts +1397 -0
  54. package/build/cjs/src/events-v1-order-orders.universal.js +599 -0
  55. package/build/cjs/src/events-v1-order-orders.universal.js.map +1 -0
  56. package/build/cjs/src/events-v1-rsvp.http.d.ts +20 -0
  57. package/build/cjs/src/events-v1-rsvp.http.js +577 -0
  58. package/build/cjs/src/events-v1-rsvp.http.js.map +1 -0
  59. package/build/cjs/src/events-v1-rsvp.public.d.ts +13 -0
  60. package/build/cjs/src/events-v1-rsvp.public.js +64 -0
  61. package/build/cjs/src/events-v1-rsvp.public.js.map +1 -0
  62. package/build/cjs/src/events-v1-rsvp.types.d.ts +453 -0
  63. package/build/cjs/src/events-v1-rsvp.types.js +44 -0
  64. package/build/cjs/src/events-v1-rsvp.types.js.map +1 -0
  65. package/build/cjs/src/events-v1-rsvp.universal.d.ts +652 -0
  66. package/build/cjs/src/events-v1-rsvp.universal.js +632 -0
  67. package/build/cjs/src/events-v1-rsvp.universal.js.map +1 -0
  68. package/build/cjs/src/events-v1-ticket-definition.http.d.ts +42 -0
  69. package/build/cjs/src/events-v1-ticket-definition.http.js +472 -0
  70. package/build/cjs/src/events-v1-ticket-definition.http.js.map +1 -0
  71. package/build/cjs/src/events-v1-ticket-definition.public.d.ts +11 -0
  72. package/build/cjs/src/events-v1-ticket-definition.public.js +55 -0
  73. package/build/cjs/src/events-v1-ticket-definition.public.js.map +1 -0
  74. package/build/cjs/src/events-v1-ticket-definition.types.d.ts +435 -0
  75. package/build/cjs/src/events-v1-ticket-definition.types.js +54 -0
  76. package/build/cjs/src/events-v1-ticket-definition.types.js.map +1 -0
  77. package/build/cjs/src/events-v1-ticket-definition.universal.d.ts +614 -0
  78. package/build/cjs/src/events-v1-ticket-definition.universal.js +527 -0
  79. package/build/cjs/src/events-v1-ticket-definition.universal.js.map +1 -0
  80. package/build/cjs/src/events-v1-ticket.http.d.ts +31 -0
  81. package/build/cjs/src/events-v1-ticket.http.js +496 -0
  82. package/build/cjs/src/events-v1-ticket.http.js.map +1 -0
  83. package/build/cjs/src/events-v1-ticket.public.d.ts +10 -0
  84. package/build/cjs/src/events-v1-ticket.public.js +47 -0
  85. package/build/cjs/src/events-v1-ticket.public.js.map +1 -0
  86. package/build/cjs/src/events-v1-ticket.types.d.ts +448 -0
  87. package/build/cjs/src/events-v1-ticket.types.js +76 -0
  88. package/build/cjs/src/events-v1-ticket.types.js.map +1 -0
  89. package/build/cjs/src/events-v1-ticket.universal.d.ts +590 -0
  90. package/build/cjs/src/events-v1-ticket.universal.js +552 -0
  91. package/build/cjs/src/events-v1-ticket.universal.js.map +1 -0
  92. package/build/cjs/src/events-v2-policy.http.d.ts +28 -7
  93. package/build/cjs/src/events-v2-policy.http.js +28 -7
  94. package/build/cjs/src/events-v2-policy.http.js.map +1 -1
  95. package/build/cjs/src/events-v2-policy.universal.d.ts +53 -37
  96. package/build/cjs/src/events-v2-policy.universal.js +21 -7
  97. package/build/cjs/src/events-v2-policy.universal.js.map +1 -1
  98. package/build/es/index.d.ts +6 -1
  99. package/build/es/index.js +6 -1
  100. package/build/es/index.js.map +1 -1
  101. package/build/es/src/events-guests-v1-guest.http.d.ts +1 -4
  102. package/build/es/src/events-guests-v1-guest.http.js +27 -5
  103. package/build/es/src/events-guests-v1-guest.http.js.map +1 -1
  104. package/build/es/src/events-guests-v1-guest.public.d.ts +2 -2
  105. package/build/es/src/events-guests-v1-guest.public.js +1 -1
  106. package/build/es/src/events-guests-v1-guest.public.js.map +1 -1
  107. package/build/es/src/events-guests-v1-guest.types.d.ts +57 -43
  108. package/build/es/src/events-guests-v1-guest.types.js +8 -8
  109. package/build/es/src/events-guests-v1-guest.types.js.map +1 -1
  110. package/build/es/src/events-guests-v1-guest.universal.d.ts +60 -46
  111. package/build/es/src/events-guests-v1-guest.universal.js +11 -11
  112. package/build/es/src/events-guests-v1-guest.universal.js.map +1 -1
  113. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.d.ts +49 -0
  114. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.js +470 -0
  115. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.http.js.map +1 -0
  116. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.d.ts +318 -0
  117. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.js +24 -0
  118. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.types.js.map +1 -0
  119. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js +1 -1
  120. package/build/es/src/events-schedule-v1-schedule-item-schedule-bookmarks.universal.js.map +1 -1
  121. package/build/es/src/events-schedule-v1-schedule-item-schedule.http.d.ts +49 -0
  122. package/build/es/src/events-schedule-v1-schedule-item-schedule.http.js +470 -0
  123. package/build/es/src/events-schedule-v1-schedule-item-schedule.http.js.map +1 -0
  124. package/build/es/src/events-schedule-v1-schedule-item-schedule.types.d.ts +318 -0
  125. package/build/es/src/events-schedule-v1-schedule-item-schedule.types.js +24 -0
  126. package/build/es/src/events-schedule-v1-schedule-item-schedule.types.js.map +1 -0
  127. package/build/es/src/events-schedule-v1-schedule-item-schedule.universal.js +1 -1
  128. package/build/es/src/events-schedule-v1-schedule-item-schedule.universal.js.map +1 -1
  129. package/build/es/src/events-v1-order-checkout.http.d.ts +65 -0
  130. package/build/es/src/events-v1-order-checkout.http.js +1009 -0
  131. package/build/es/src/events-v1-order-checkout.http.js.map +1 -0
  132. package/build/es/src/events-v1-order-checkout.public.d.ts +12 -0
  133. package/build/es/src/events-v1-order-checkout.public.js +43 -0
  134. package/build/es/src/events-v1-order-checkout.public.js.map +1 -0
  135. package/build/es/src/events-v1-order-checkout.types.d.ts +1271 -0
  136. package/build/es/src/events-v1-order-checkout.types.js +142 -0
  137. package/build/es/src/events-v1-order-checkout.types.js.map +1 -0
  138. package/build/es/src/events-v1-order-checkout.universal.d.ts +1439 -0
  139. package/build/es/src/events-v1-order-checkout.universal.js +668 -0
  140. package/build/es/src/events-v1-order-checkout.universal.js.map +1 -0
  141. package/build/es/src/events-v1-order-orders.http.d.ts +79 -0
  142. package/build/es/src/events-v1-order-orders.http.js +1023 -0
  143. package/build/es/src/events-v1-order-orders.http.js.map +1 -0
  144. package/build/es/src/events-v1-order-orders.public.d.ts +10 -0
  145. package/build/es/src/events-v1-order-orders.public.js +33 -0
  146. package/build/es/src/events-v1-order-orders.public.js.map +1 -0
  147. package/build/es/src/events-v1-order-orders.types.d.ts +1271 -0
  148. package/build/es/src/events-v1-order-orders.types.js +142 -0
  149. package/build/es/src/events-v1-order-orders.types.js.map +1 -0
  150. package/build/es/src/events-v1-order-orders.universal.d.ts +1397 -0
  151. package/build/es/src/events-v1-order-orders.universal.js +571 -0
  152. package/build/es/src/events-v1-order-orders.universal.js.map +1 -0
  153. package/build/es/src/events-v1-rsvp.http.d.ts +20 -0
  154. package/build/es/src/events-v1-rsvp.http.js +565 -0
  155. package/build/es/src/events-v1-rsvp.http.js.map +1 -0
  156. package/build/es/src/events-v1-rsvp.public.d.ts +13 -0
  157. package/build/es/src/events-v1-rsvp.public.js +48 -0
  158. package/build/es/src/events-v1-rsvp.public.js.map +1 -0
  159. package/build/es/src/events-v1-rsvp.types.d.ts +453 -0
  160. package/build/es/src/events-v1-rsvp.types.js +41 -0
  161. package/build/es/src/events-v1-rsvp.types.js.map +1 -0
  162. package/build/es/src/events-v1-rsvp.universal.d.ts +652 -0
  163. package/build/es/src/events-v1-rsvp.universal.js +601 -0
  164. package/build/es/src/events-v1-rsvp.universal.js.map +1 -0
  165. package/build/es/src/events-v1-ticket-definition.http.d.ts +42 -0
  166. package/build/es/src/events-v1-ticket-definition.http.js +462 -0
  167. package/build/es/src/events-v1-ticket-definition.http.js.map +1 -0
  168. package/build/es/src/events-v1-ticket-definition.public.d.ts +11 -0
  169. package/build/es/src/events-v1-ticket-definition.public.js +38 -0
  170. package/build/es/src/events-v1-ticket-definition.public.js.map +1 -0
  171. package/build/es/src/events-v1-ticket-definition.types.d.ts +435 -0
  172. package/build/es/src/events-v1-ticket-definition.types.js +51 -0
  173. package/build/es/src/events-v1-ticket-definition.types.js.map +1 -0
  174. package/build/es/src/events-v1-ticket-definition.universal.d.ts +614 -0
  175. package/build/es/src/events-v1-ticket-definition.universal.js +498 -0
  176. package/build/es/src/events-v1-ticket-definition.universal.js.map +1 -0
  177. package/build/es/src/events-v1-ticket.http.d.ts +31 -0
  178. package/build/es/src/events-v1-ticket.http.js +487 -0
  179. package/build/es/src/events-v1-ticket.http.js.map +1 -0
  180. package/build/es/src/events-v1-ticket.public.d.ts +10 -0
  181. package/build/es/src/events-v1-ticket.public.js +33 -0
  182. package/build/es/src/events-v1-ticket.public.js.map +1 -0
  183. package/build/es/src/events-v1-ticket.types.d.ts +448 -0
  184. package/build/es/src/events-v1-ticket.types.js +73 -0
  185. package/build/es/src/events-v1-ticket.types.js.map +1 -0
  186. package/build/es/src/events-v1-ticket.universal.d.ts +590 -0
  187. package/build/es/src/events-v1-ticket.universal.js +524 -0
  188. package/build/es/src/events-v1-ticket.universal.js.map +1 -0
  189. package/build/es/src/events-v2-policy.http.d.ts +28 -7
  190. package/build/es/src/events-v2-policy.http.js +28 -7
  191. package/build/es/src/events-v2-policy.http.js.map +1 -1
  192. package/build/es/src/events-v2-policy.universal.d.ts +53 -37
  193. package/build/es/src/events-v2-policy.universal.js +21 -7
  194. package/build/es/src/events-v2-policy.universal.js.map +1 -1
  195. package/package.json +2 -2
@@ -0,0 +1,668 @@
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, transformError } from '@wix/metro-runtime/velo';
11
+ import * as ambassadorWixEventsV1Order from './events-v1-order-checkout.http';
12
+ let __verbose = false;
13
+ function __log(...args) {
14
+ __verbose && console.log(...args);
15
+ }
16
+ function __inspect(obj) {
17
+ return obj;
18
+ }
19
+ export const __debug = {
20
+ verboseLogging: {
21
+ on: () => (__verbose = true),
22
+ off: () => (__verbose = false),
23
+ },
24
+ };
25
+ const _toVeloEntity = '$';
26
+ const _fromVeloEntity = '$';
27
+ export var SubdivisionType;
28
+ (function (SubdivisionType) {
29
+ SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
30
+ /** State */
31
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
32
+ /** County */
33
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
34
+ /** City/town */
35
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
36
+ /** Neighborhood/quarter */
37
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
38
+ /** Street/block */
39
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
40
+ /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
41
+ SubdivisionType["COUNTRY"] = "COUNTRY";
42
+ })(SubdivisionType || (SubdivisionType = {}));
43
+ export var OrderStatus;
44
+ (function (OrderStatus) {
45
+ /** Order status not available for this request fieldset */
46
+ OrderStatus["NA_ORDER_STATUS"] = "NA_ORDER_STATUS";
47
+ /** Order is confirmed, no payment required */
48
+ OrderStatus["FREE"] = "FREE";
49
+ /** Order was paid but payment gateway suspended the payment. Eventually changes to PAID */
50
+ OrderStatus["PENDING"] = "PENDING";
51
+ /** Order paid via payment gateway */
52
+ OrderStatus["PAID"] = "PAID";
53
+ /** Order confirmed but has to be paid via offline payment and status manually updated to PAID */
54
+ OrderStatus["OFFLINE_PENDING"] = "OFFLINE_PENDING";
55
+ /** Order is awaiting for payment in Cashier */
56
+ OrderStatus["INITIATED"] = "INITIATED";
57
+ /** Order was canceled */
58
+ OrderStatus["CANCELED"] = "CANCELED";
59
+ /** Order payment was declined */
60
+ OrderStatus["DECLINED"] = "DECLINED";
61
+ })(OrderStatus || (OrderStatus = {}));
62
+ export var ChannelType;
63
+ (function (ChannelType) {
64
+ /** Buyer created order via one of the online channels (website, mobile app, etc.) */
65
+ ChannelType["ONLINE"] = "ONLINE";
66
+ /** Order created and money collected by the sales person */
67
+ ChannelType["OFFLINE_POS"] = "OFFLINE_POS";
68
+ })(ChannelType || (ChannelType = {}));
69
+ export var TaxType;
70
+ (function (TaxType) {
71
+ /** Tax is included in the ticket price */
72
+ TaxType["INCLUDED"] = "INCLUDED";
73
+ /** Tax is added to the order at the checkout */
74
+ TaxType["ADDED"] = "ADDED";
75
+ /** Tax is added to the final total at the checkout */
76
+ TaxType["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
77
+ })(TaxType || (TaxType = {}));
78
+ export var FeeName;
79
+ (function (FeeName) {
80
+ /** Wix service fee charges applied to the line item. */
81
+ FeeName["WIX_FEE"] = "WIX_FEE";
82
+ })(FeeName || (FeeName = {}));
83
+ export var FeeType;
84
+ (function (FeeType) {
85
+ /** Fee is added to the ticket price at checkout */
86
+ FeeType["FEE_ADDED"] = "FEE_ADDED";
87
+ /** Seller absorbs the fee. It is deducted from the ticket price */
88
+ FeeType["FEE_INCLUDED"] = "FEE_INCLUDED";
89
+ /** Fee is added to the ticket price at checkout */
90
+ FeeType["FEE_ADDED_AT_CHECKOUT"] = "FEE_ADDED_AT_CHECKOUT";
91
+ })(FeeType || (FeeType = {}));
92
+ export var OrderType;
93
+ (function (OrderType) {
94
+ /** Buyer form is used for all tickets */
95
+ OrderType["UNASSIGNED_TICKETS"] = "UNASSIGNED_TICKETS";
96
+ /** Each order ticket has its own form */
97
+ OrderType["ASSIGNED_TICKETS"] = "ASSIGNED_TICKETS";
98
+ })(OrderType || (OrderType = {}));
99
+ export var OrderFieldset;
100
+ (function (OrderFieldset) {
101
+ /** Include tickets in response */
102
+ OrderFieldset["TICKETS"] = "TICKETS";
103
+ /** Include order details: status, first_name, last_name, email, created, etc. */
104
+ OrderFieldset["DETAILS"] = "DETAILS";
105
+ /** Include checkout_form */
106
+ OrderFieldset["FORM"] = "FORM";
107
+ /** Include invoice */
108
+ OrderFieldset["INVOICE"] = "INVOICE";
109
+ })(OrderFieldset || (OrderFieldset = {}));
110
+ export var OrderTag;
111
+ (function (OrderTag) {
112
+ /** Return only confirmed orders */
113
+ OrderTag["CONFIRMED"] = "CONFIRMED";
114
+ /** Return only unconfirmed orders */
115
+ OrderTag["UNCONFIRMED"] = "UNCONFIRMED";
116
+ /** Return only member orders */
117
+ OrderTag["MEMBER"] = "MEMBER";
118
+ /** Return only archived orders */
119
+ OrderTag["ARCHIVED"] = "ARCHIVED";
120
+ /** Return only non archived orders */
121
+ OrderTag["NON_ARCHIVED"] = "NON_ARCHIVED";
122
+ /** Return only orders with all guests checked-in */
123
+ OrderTag["FULLY_CHECKED_IN"] = "FULLY_CHECKED_IN";
124
+ /** Return only orders with no guests checked-in */
125
+ OrderTag["NOT_FULLY_CHECKED_IN"] = "NOT_FULLY_CHECKED_IN";
126
+ })(OrderTag || (OrderTag = {}));
127
+ export var ReservationStatus;
128
+ (function (ReservationStatus) {
129
+ /**
130
+ * Reservation is pending confirmation.
131
+ * The reservation will expire after the expiration due time.
132
+ */
133
+ ReservationStatus["RESERVATION_PENDING"] = "RESERVATION_PENDING";
134
+ /** The reservation was confirmed and will not expire. */
135
+ ReservationStatus["RESERVATION_CONFIRMED"] = "RESERVATION_CONFIRMED";
136
+ /** The reservation was canceled because of non payment. */
137
+ ReservationStatus["RESERVATION_CANCELED"] = "RESERVATION_CANCELED";
138
+ /** The reservation was canceled manually by the buyer. */
139
+ ReservationStatus["RESERVATION_CANCELED_MANUALLY"] = "RESERVATION_CANCELED_MANUALLY";
140
+ /** The reservation has expired. */
141
+ ReservationStatus["RESERVATION_EXPIRED"] = "RESERVATION_EXPIRED";
142
+ })(ReservationStatus || (ReservationStatus = {}));
143
+ export var State;
144
+ (function (State) {
145
+ State["INCLUDE_HIDDEN_NOT_ON_SALE"] = "INCLUDE_HIDDEN_NOT_ON_SALE";
146
+ })(State || (State = {}));
147
+ export var TicketSaleStatus;
148
+ (function (TicketSaleStatus) {
149
+ /** Ticket sale is scheduled to start */
150
+ TicketSaleStatus["SALE_SCHEDULED"] = "SALE_SCHEDULED";
151
+ /** Ticket sale has started */
152
+ TicketSaleStatus["SALE_STARTED"] = "SALE_STARTED";
153
+ /** Ticket sale has ended */
154
+ TicketSaleStatus["SALE_ENDED"] = "SALE_ENDED";
155
+ })(TicketSaleStatus || (TicketSaleStatus = {}));
156
+ export var Type;
157
+ (function (Type) {
158
+ Type["STANDARD"] = "STANDARD";
159
+ Type["DONATION"] = "DONATION";
160
+ })(Type || (Type = {}));
161
+ export var TicketDefinitionFieldset;
162
+ (function (TicketDefinitionFieldset) {
163
+ /** Include policy in the response. */
164
+ TicketDefinitionFieldset["POLICY"] = "POLICY";
165
+ /** Include dashboard in the response. */
166
+ TicketDefinitionFieldset["DASHBOARD"] = "DASHBOARD";
167
+ })(TicketDefinitionFieldset || (TicketDefinitionFieldset = {}));
168
+ const _cancelReservationRequest = {};
169
+ const _cancelReservationResponse = {};
170
+ const _checkoutRequest = { guests: '_guest' };
171
+ const _checkoutResponse = { order: '_order' };
172
+ const _createReservationRequest = {};
173
+ const _createReservationResponse = {};
174
+ const _formattedAddress = { address: 'wix.common.Address' };
175
+ const _formResponse = { inputValues: '_inputValue' };
176
+ const _getCheckoutOptionsRequest = {};
177
+ const _getCheckoutOptionsResponse = {};
178
+ const _getInvoiceRequest = {};
179
+ const _getInvoiceResponse = {};
180
+ const _guest = { form: '_formResponse' };
181
+ const _guestDetails = { form: '_formResponse' };
182
+ const _inputValue = { address: '_formattedAddress' };
183
+ const _listAvailableTicketsRequest = {};
184
+ const _listAvailableTicketsResponse = {};
185
+ const _order = { checkoutForm: '_formResponse', tickets: '_ticketingTicket' };
186
+ const _queryAvailableTicketsRequest = {};
187
+ const _queryAvailableTicketsResponse = {};
188
+ const _ticketingTicket = { guestDetails: '_guestDetails' };
189
+ const _updateCheckoutRequest = { guests: '_guest' };
190
+ const _updateCheckoutResponse = { order: '_order' };
191
+ /**
192
+ * Returns checkout meta data used in checkout UX.
193
+ * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
194
+ * @public
195
+ * @documentationMaturity preview
196
+ */
197
+ export function getCheckoutOptions() {
198
+ var _a, _b, _c;
199
+ return __awaiter(this, arguments, void 0, function* () {
200
+ const requestTransformation = {};
201
+ const responseTransformation = '$';
202
+ // @ts-ignore
203
+ const { httpClient, sideEffects } = arguments[0];
204
+ const { toAmbassadorRequest } = serializer({
205
+ rootSchema: _getCheckoutOptionsRequest,
206
+ depSchemas: {},
207
+ fqdnTransformation: {
208
+ paths: [],
209
+ transformation: _fromVeloEntity,
210
+ },
211
+ customTransformation: requestTransformation,
212
+ });
213
+ const { fromJSON } = serializer({
214
+ rootSchema: _getCheckoutOptionsResponse,
215
+ depSchemas: {},
216
+ fqdnTransformation: {
217
+ paths: [],
218
+ transformation: _toVeloEntity,
219
+ },
220
+ customTransformation: responseTransformation,
221
+ });
222
+ const payload = toAmbassadorRequest([]);
223
+ const reqOpts = ambassadorWixEventsV1Order.getCheckoutOptions(payload);
224
+ __log(`"GetCheckoutOptions" sending request with: ${__inspect(reqOpts)}`);
225
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
226
+ try {
227
+ const result = yield httpClient.request(reqOpts);
228
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
229
+ return fromJSON(result.data);
230
+ }
231
+ catch (err) {
232
+ const transformedError = transformError(err, requestTransformation, []);
233
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
234
+ throw transformedError;
235
+ }
236
+ });
237
+ }
238
+ /**
239
+ * Returns tickets available to reserve.
240
+ * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
241
+ * @public
242
+ * @documentationMaturity preview
243
+ * @param options - An object representing the available options for retrieving a list of tickets available for reservation.
244
+ */
245
+ export function listAvailableTickets(options) {
246
+ var _a, _b, _c;
247
+ return __awaiter(this, arguments, void 0, function* () {
248
+ const requestTransformation = {
249
+ eventId: '$[0].eventId',
250
+ offset: '$[0].offset',
251
+ limit: '$[0].limit',
252
+ sort: '$[0].sort',
253
+ state: '$[0].state',
254
+ };
255
+ const responseTransformation = '$';
256
+ // @ts-ignore
257
+ const { httpClient, sideEffects } = arguments[1];
258
+ const { toAmbassadorRequest } = serializer({
259
+ rootSchema: _listAvailableTicketsRequest,
260
+ depSchemas: {},
261
+ fqdnTransformation: {
262
+ paths: [],
263
+ transformation: _fromVeloEntity,
264
+ },
265
+ customTransformation: requestTransformation,
266
+ });
267
+ const { fromJSON } = serializer({
268
+ rootSchema: _listAvailableTicketsResponse,
269
+ depSchemas: {},
270
+ fqdnTransformation: {
271
+ paths: [],
272
+ transformation: _toVeloEntity,
273
+ },
274
+ customTransformation: responseTransformation,
275
+ });
276
+ const payload = toAmbassadorRequest([options]);
277
+ const reqOpts = ambassadorWixEventsV1Order.listAvailableTickets(payload);
278
+ __log(`"ListAvailableTickets" sending request with: ${__inspect(reqOpts)}`);
279
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
280
+ try {
281
+ const result = yield httpClient.request(reqOpts);
282
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
283
+ return fromJSON(result.data);
284
+ }
285
+ catch (err) {
286
+ const transformedError = transformError(err, requestTransformation, [
287
+ 'options',
288
+ ]);
289
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
290
+ throw transformedError;
291
+ }
292
+ });
293
+ }
294
+ /**
295
+ * Returns tickets available to reserve.
296
+ * > Note: The fieldsets in this function are restricted and only run if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
297
+ * @public
298
+ * @documentationMaturity preview
299
+ * @param options - An object representing the available options for retrieving a list of tickets available for reservation.
300
+ */
301
+ export function queryAvailableTickets(options) {
302
+ var _a, _b, _c;
303
+ return __awaiter(this, arguments, void 0, function* () {
304
+ const requestTransformation = {
305
+ offset: '$[0].offset',
306
+ limit: '$[0].limit',
307
+ filter: '$[0].filter',
308
+ fieldset: '$[0].fieldset',
309
+ sort: '$[0].sort',
310
+ };
311
+ const responseTransformation = '$';
312
+ // @ts-ignore
313
+ const { httpClient, sideEffects } = arguments[1];
314
+ const { toAmbassadorRequest } = serializer({
315
+ rootSchema: _queryAvailableTicketsRequest,
316
+ depSchemas: {},
317
+ fqdnTransformation: {
318
+ paths: [],
319
+ transformation: _fromVeloEntity,
320
+ },
321
+ customTransformation: requestTransformation,
322
+ });
323
+ const { fromJSON } = serializer({
324
+ rootSchema: _queryAvailableTicketsResponse,
325
+ depSchemas: {},
326
+ fqdnTransformation: {
327
+ paths: [],
328
+ transformation: _toVeloEntity,
329
+ },
330
+ customTransformation: responseTransformation,
331
+ });
332
+ const payload = toAmbassadorRequest([options]);
333
+ const reqOpts = ambassadorWixEventsV1Order.queryAvailableTickets(payload);
334
+ __log(`"QueryAvailableTickets" sending request with: ${__inspect(reqOpts)}`);
335
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
336
+ try {
337
+ const result = yield httpClient.request(reqOpts);
338
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
339
+ return fromJSON(result.data);
340
+ }
341
+ catch (err) {
342
+ const transformedError = transformError(err, requestTransformation, [
343
+ 'options',
344
+ ]);
345
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
346
+ throw transformedError;
347
+ }
348
+ });
349
+ }
350
+ /**
351
+ * Reserves tickets for 20 minutes.
352
+ * Reserved tickets are deducted from tickets stock and cannot be bought by another party.
353
+ * When the reservation expires, the tickets are added back in the stock.
354
+ * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
355
+ * @param eventId - Event ID.
356
+ * @public
357
+ * @documentationMaturity preview
358
+ * @requiredField eventId
359
+ * @param options - An object representing the available options for creating a reservation.
360
+ */
361
+ export function createReservation(eventId, options) {
362
+ var _a, _b, _c;
363
+ return __awaiter(this, arguments, void 0, function* () {
364
+ const requestTransformation = {
365
+ eventId: '$[0]',
366
+ ticketQuantities: '$[1].ticketQuantities',
367
+ ignoreLimits: '$[1].ignoreLimits',
368
+ allowHiddenTickets: '$[1].allowHiddenTickets',
369
+ };
370
+ const responseTransformation = '$';
371
+ // @ts-ignore
372
+ const { httpClient, sideEffects } = arguments[2];
373
+ const { toAmbassadorRequest } = serializer({
374
+ rootSchema: _createReservationRequest,
375
+ depSchemas: {},
376
+ fqdnTransformation: {
377
+ paths: [],
378
+ transformation: _fromVeloEntity,
379
+ },
380
+ customTransformation: requestTransformation,
381
+ });
382
+ const { fromJSON } = serializer({
383
+ rootSchema: _createReservationResponse,
384
+ depSchemas: {},
385
+ fqdnTransformation: {
386
+ paths: [],
387
+ transformation: _toVeloEntity,
388
+ },
389
+ customTransformation: responseTransformation,
390
+ });
391
+ const payload = toAmbassadorRequest([eventId, options]);
392
+ const reqOpts = ambassadorWixEventsV1Order.createReservation(payload);
393
+ __log(`"CreateReservation" sending request with: ${__inspect(reqOpts)}`);
394
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
395
+ try {
396
+ const result = yield httpClient.request(reqOpts);
397
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
398
+ return fromJSON(result.data);
399
+ }
400
+ catch (err) {
401
+ const transformedError = transformError(err, requestTransformation, [
402
+ 'eventId',
403
+ 'options',
404
+ ]);
405
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
406
+ throw transformedError;
407
+ }
408
+ });
409
+ }
410
+ /**
411
+ * Cancels ticket reservation and returns tickets to stock.
412
+ *
413
+ * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
414
+ * @public
415
+ * @documentationMaturity preview
416
+ * @requiredField identifiers
417
+ * @requiredField identifiers.eventId
418
+ * @requiredField identifiers.id
419
+ * @param identifiers - An object containing identifiers for the reservation to be cancelled.
420
+ */
421
+ export function cancelReservation(identifiers) {
422
+ var _a, _b, _c;
423
+ return __awaiter(this, arguments, void 0, function* () {
424
+ const requestTransformation = { eventId: '$[0].eventId', id: '$[0]._id' };
425
+ const responseTransformation = '$';
426
+ // @ts-ignore
427
+ const { httpClient, sideEffects } = arguments[1];
428
+ const { toAmbassadorRequest } = serializer({
429
+ rootSchema: _cancelReservationRequest,
430
+ depSchemas: {},
431
+ fqdnTransformation: {
432
+ paths: [],
433
+ transformation: _fromVeloEntity,
434
+ },
435
+ customTransformation: requestTransformation,
436
+ });
437
+ const { fromJSON } = serializer({
438
+ rootSchema: _cancelReservationResponse,
439
+ depSchemas: {},
440
+ fqdnTransformation: {
441
+ paths: [],
442
+ transformation: _toVeloEntity,
443
+ },
444
+ customTransformation: responseTransformation,
445
+ });
446
+ const payload = toAmbassadorRequest([identifiers]);
447
+ const reqOpts = ambassadorWixEventsV1Order.cancelReservation(payload);
448
+ __log(`"CancelReservation" sending request with: ${__inspect(reqOpts)}`);
449
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
450
+ try {
451
+ const result = yield httpClient.request(reqOpts);
452
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
453
+ return fromJSON(result.data);
454
+ }
455
+ catch (err) {
456
+ const transformedError = transformError(err, requestTransformation, [
457
+ 'identifiers',
458
+ ]);
459
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
460
+ throw transformedError;
461
+ }
462
+ });
463
+ }
464
+ /**
465
+ * Generates a preview of a reservation invoice, including the given coupon or pricing plan.
466
+ * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
467
+ * @public
468
+ * @documentationMaturity preview
469
+ * @requiredField identifiers
470
+ * @requiredField identifiers.eventId
471
+ * @requiredField identifiers.reservationId
472
+ * @param options - An object representing the available options for generating a preview of a reservation invoice.
473
+ * @param identifiers - An object containing identifiers for the reservation invoice preview to be generated.
474
+ */
475
+ export function getInvoice(identifiers, options) {
476
+ var _a, _b, _c;
477
+ return __awaiter(this, arguments, void 0, function* () {
478
+ const requestTransformation = {
479
+ eventId: '$[0].eventId',
480
+ reservationId: '$[0].reservationId',
481
+ withDiscount: '$[1].withDiscount',
482
+ paidPlanBenefit: '$[1].paidPlanBenefit',
483
+ };
484
+ const responseTransformation = '$';
485
+ // @ts-ignore
486
+ const { httpClient, sideEffects } = arguments[2];
487
+ const { toAmbassadorRequest } = serializer({
488
+ rootSchema: _getInvoiceRequest,
489
+ depSchemas: {},
490
+ fqdnTransformation: {
491
+ paths: [],
492
+ transformation: _fromVeloEntity,
493
+ },
494
+ customTransformation: requestTransformation,
495
+ });
496
+ const { fromJSON } = serializer({
497
+ rootSchema: _getInvoiceResponse,
498
+ depSchemas: {},
499
+ fqdnTransformation: {
500
+ paths: [],
501
+ transformation: _toVeloEntity,
502
+ },
503
+ customTransformation: responseTransformation,
504
+ });
505
+ const payload = toAmbassadorRequest([identifiers, options]);
506
+ const reqOpts = ambassadorWixEventsV1Order.getInvoice(payload);
507
+ __log(`"GetInvoice" sending request with: ${__inspect(reqOpts)}`);
508
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
509
+ try {
510
+ const result = yield httpClient.request(reqOpts);
511
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
512
+ return fromJSON(result.data);
513
+ }
514
+ catch (err) {
515
+ const transformedError = transformError(err, requestTransformation, [
516
+ 'identifiers',
517
+ 'options',
518
+ ]);
519
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
520
+ throw transformedError;
521
+ }
522
+ });
523
+ }
524
+ /**
525
+ * Checkout reserved tickets.
526
+ * Creates order and associates it with a site contact.
527
+ * Guest details must be sent according to Registration Form input fields.
528
+ * (To change an existing "INITIATED, "PENDING", or "OFFLINE_PENDING" order, call the [Update Checkout](https://dev.wix.com/api/rest/wix-events/wix-events/checkout/update-checkout) endpoint).
529
+ * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
530
+ * @param eventId - Event ID.
531
+ * @public
532
+ * @documentationMaturity preview
533
+ * @requiredField eventId
534
+ * @requiredField options.guests.form
535
+ * @param options - An object representing the available options for checking out a reserved ticket.
536
+ */
537
+ export function checkout(eventId, options) {
538
+ var _a, _b, _c;
539
+ return __awaiter(this, arguments, void 0, function* () {
540
+ const requestTransformation = {
541
+ eventId: '$[0]',
542
+ reservationId: '$[1].reservationId',
543
+ memberId: '$[1].memberId',
544
+ discount: '$[1].discount',
545
+ buyer: '$[1].buyer',
546
+ guests: '$[1].guests',
547
+ paidPlanBenefit: '$[1].paidPlanBenefit',
548
+ options: '$[1].options',
549
+ };
550
+ const responseTransformation = '$';
551
+ // @ts-ignore
552
+ const { httpClient, sideEffects } = arguments[2];
553
+ const { toAmbassadorRequest } = serializer({
554
+ rootSchema: _checkoutRequest,
555
+ depSchemas: { _formResponse, _formattedAddress, _guest, _inputValue },
556
+ fqdnTransformation: {
557
+ paths: [],
558
+ transformation: _fromVeloEntity,
559
+ },
560
+ customTransformation: requestTransformation,
561
+ });
562
+ const { fromJSON } = serializer({
563
+ rootSchema: _checkoutResponse,
564
+ depSchemas: {
565
+ _formResponse,
566
+ _formattedAddress,
567
+ _guestDetails,
568
+ _inputValue,
569
+ _order,
570
+ _ticketingTicket,
571
+ },
572
+ fqdnTransformation: {
573
+ paths: [...['order']],
574
+ transformation: _toVeloEntity,
575
+ },
576
+ customTransformation: responseTransformation,
577
+ });
578
+ const payload = toAmbassadorRequest([eventId, options]);
579
+ const reqOpts = ambassadorWixEventsV1Order.checkout(payload);
580
+ __log(`"Checkout" sending request with: ${__inspect(reqOpts)}`);
581
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
582
+ try {
583
+ const result = yield httpClient.request(reqOpts);
584
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
585
+ return fromJSON(result.data);
586
+ }
587
+ catch (err) {
588
+ const transformedError = transformError(err, requestTransformation, [
589
+ 'eventId',
590
+ 'options',
591
+ ]);
592
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
593
+ throw transformedError;
594
+ }
595
+ });
596
+ }
597
+ /**
598
+ * Updates order and tickets (supported only for unconfirmed orders).
599
+ * Guest details must be sent according to Registration Form input fields.
600
+ * > Note: This function is restricted and only runs if you elevate permissions using the [wix-auth.elevate()](https://www.wix.com/velo/reference/wix-auth/elevate) function.
601
+ * @public
602
+ * @documentationMaturity preview
603
+ * @requiredField identifiers
604
+ * @requiredField identifiers.eventId
605
+ * @requiredField identifiers.orderNumber
606
+ * @param options - An object representing the available options for updating an order and tickets.
607
+ * @param identifiers - An object containing identifiers for the order and tickets to be updated.
608
+ */
609
+ export function updateCheckout(identifiers, options) {
610
+ var _a, _b, _c;
611
+ return __awaiter(this, arguments, void 0, function* () {
612
+ const requestTransformation = {
613
+ eventId: '$[0].eventId',
614
+ orderNumber: '$[0].orderNumber',
615
+ buyer: '$[1].buyer',
616
+ guests: '$[1].guests',
617
+ memberId: '$[1].memberId',
618
+ discount: '$[1].discount',
619
+ paidPlanBenefit: '$[1].paidPlanBenefit',
620
+ };
621
+ const responseTransformation = '$';
622
+ // @ts-ignore
623
+ const { httpClient, sideEffects } = arguments[2];
624
+ const { toAmbassadorRequest } = serializer({
625
+ rootSchema: _updateCheckoutRequest,
626
+ depSchemas: { _formResponse, _formattedAddress, _guest, _inputValue },
627
+ fqdnTransformation: {
628
+ paths: [],
629
+ transformation: _fromVeloEntity,
630
+ },
631
+ customTransformation: requestTransformation,
632
+ });
633
+ const { fromJSON } = serializer({
634
+ rootSchema: _updateCheckoutResponse,
635
+ depSchemas: {
636
+ _formResponse,
637
+ _formattedAddress,
638
+ _guestDetails,
639
+ _inputValue,
640
+ _order,
641
+ _ticketingTicket,
642
+ },
643
+ fqdnTransformation: {
644
+ paths: [...['order']],
645
+ transformation: _toVeloEntity,
646
+ },
647
+ customTransformation: responseTransformation,
648
+ });
649
+ const payload = toAmbassadorRequest([identifiers, options]);
650
+ const reqOpts = ambassadorWixEventsV1Order.updateCheckout(payload);
651
+ __log(`"UpdateCheckout" sending request with: ${__inspect(reqOpts)}`);
652
+ (_a = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSiteCall) === null || _a === void 0 ? void 0 : _a.call(sideEffects);
653
+ try {
654
+ const result = yield httpClient.request(reqOpts);
655
+ (_b = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onSuccess) === null || _b === void 0 ? void 0 : _b.call(sideEffects, result);
656
+ return fromJSON(result.data);
657
+ }
658
+ catch (err) {
659
+ const transformedError = transformError(err, requestTransformation, [
660
+ 'identifiers',
661
+ 'options',
662
+ ]);
663
+ (_c = sideEffects === null || sideEffects === void 0 ? void 0 : sideEffects.onError) === null || _c === void 0 ? void 0 : _c.call(sideEffects, err);
664
+ throw transformedError;
665
+ }
666
+ });
667
+ }
668
+ //# sourceMappingURL=events-v1-order-checkout.universal.js.map