@wix/auto_sdk_events_ticket-definitions-v-2 1.0.20 → 1.0.21

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 (134) hide show
  1. package/build/cjs/index.d.ts +1 -0
  2. package/build/cjs/index.js +18 -0
  3. package/build/cjs/index.js.map +1 -0
  4. package/build/cjs/index.typings.d.ts +1 -0
  5. package/build/cjs/index.typings.js +18 -0
  6. package/build/cjs/index.typings.js.map +1 -0
  7. package/build/cjs/meta.d.ts +1 -0
  8. package/build/cjs/meta.js +18 -0
  9. package/build/cjs/meta.js.map +1 -0
  10. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.context.d.ts +46 -0
  11. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js +109 -0
  12. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js.map +1 -0
  13. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.d.ts +79 -0
  14. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js +585 -0
  15. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js.map +1 -0
  16. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.d.ts +29 -0
  17. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js +237 -0
  18. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js.map +1 -0
  19. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.d.ts +148 -0
  20. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js +306 -0
  21. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js.map +1 -0
  22. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.d.ts +4206 -0
  23. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js +705 -0
  24. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js.map +1 -0
  25. package/build/{events-v3-ticket-definition-ticket-definitions-v-2.universal-ww5IkE5x.d.mts → cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.d.ts} +687 -349
  26. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js +1341 -0
  27. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js.map +1 -0
  28. package/build/es/index.d.ts +1 -0
  29. package/build/es/index.js +2 -0
  30. package/build/es/index.js.map +1 -0
  31. package/build/es/index.typings.d.ts +1 -0
  32. package/build/es/index.typings.js +2 -0
  33. package/build/es/index.typings.js.map +1 -0
  34. package/build/es/meta.d.ts +1 -0
  35. package/build/es/meta.js +2 -0
  36. package/build/es/meta.js.map +1 -0
  37. package/build/es/package.json +3 -0
  38. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.d.ts +46 -0
  39. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js +46 -0
  40. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js.map +1 -0
  41. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.d.ts +79 -0
  42. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js +571 -0
  43. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js.map +1 -0
  44. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.d.ts +29 -0
  45. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js +200 -0
  46. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js.map +1 -0
  47. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.d.ts +148 -0
  48. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js +232 -0
  49. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js.map +1 -0
  50. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.d.ts +4206 -0
  51. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js +701 -0
  52. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js.map +1 -0
  53. package/build/{events-v3-ticket-definition-ticket-definitions-v-2.universal-ww5IkE5x.d.ts → es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.d.ts} +687 -349
  54. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js +1303 -0
  55. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js.map +1 -0
  56. package/build/internal/cjs/index.d.ts +1 -0
  57. package/build/internal/cjs/index.js +18 -0
  58. package/build/internal/cjs/index.js.map +1 -0
  59. package/build/internal/cjs/index.typings.d.ts +1 -0
  60. package/build/internal/cjs/index.typings.js +18 -0
  61. package/build/internal/cjs/index.typings.js.map +1 -0
  62. package/build/internal/cjs/meta.d.ts +1 -0
  63. package/build/internal/cjs/meta.js +18 -0
  64. package/build/internal/cjs/meta.js.map +1 -0
  65. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.context.d.ts +46 -0
  66. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js +109 -0
  67. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js.map +1 -0
  68. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.d.ts +79 -0
  69. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js +585 -0
  70. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js.map +1 -0
  71. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.d.ts +29 -0
  72. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js +237 -0
  73. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js.map +1 -0
  74. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.d.ts +148 -0
  75. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js +306 -0
  76. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js.map +1 -0
  77. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.d.ts +4206 -0
  78. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js +705 -0
  79. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js.map +1 -0
  80. package/build/internal/{events-v3-ticket-definition-ticket-definitions-v-2.universal-ww5IkE5x.d.ts → cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.d.ts} +687 -349
  81. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js +1341 -0
  82. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js.map +1 -0
  83. package/build/internal/es/index.d.ts +1 -0
  84. package/build/internal/es/index.js +2 -0
  85. package/build/internal/es/index.js.map +1 -0
  86. package/build/internal/es/index.typings.d.ts +1 -0
  87. package/build/internal/es/index.typings.js +2 -0
  88. package/build/internal/es/index.typings.js.map +1 -0
  89. package/build/internal/es/meta.d.ts +1 -0
  90. package/build/internal/es/meta.js +2 -0
  91. package/build/internal/es/meta.js.map +1 -0
  92. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.d.ts +46 -0
  93. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js +46 -0
  94. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js.map +1 -0
  95. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.d.ts +79 -0
  96. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js +571 -0
  97. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js.map +1 -0
  98. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.d.ts +29 -0
  99. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js +200 -0
  100. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js.map +1 -0
  101. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.d.ts +148 -0
  102. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js +232 -0
  103. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js.map +1 -0
  104. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.d.ts +4206 -0
  105. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js +701 -0
  106. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js.map +1 -0
  107. package/build/internal/{events-v3-ticket-definition-ticket-definitions-v-2.universal-ww5IkE5x.d.mts → es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.d.ts} +687 -349
  108. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js +1303 -0
  109. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js.map +1 -0
  110. package/package.json +11 -12
  111. package/build/index.d.mts +0 -179
  112. package/build/index.d.ts +0 -179
  113. package/build/index.js +0 -1885
  114. package/build/index.js.map +0 -1
  115. package/build/index.mjs +0 -1786
  116. package/build/index.mjs.map +0 -1
  117. package/build/internal/index.d.mts +0 -179
  118. package/build/internal/index.d.ts +0 -179
  119. package/build/internal/index.js +0 -1885
  120. package/build/internal/index.js.map +0 -1
  121. package/build/internal/index.mjs +0 -1786
  122. package/build/internal/index.mjs.map +0 -1
  123. package/build/internal/meta.d.mts +0 -754
  124. package/build/internal/meta.d.ts +0 -754
  125. package/build/internal/meta.js +0 -761
  126. package/build/internal/meta.js.map +0 -1
  127. package/build/internal/meta.mjs +0 -724
  128. package/build/internal/meta.mjs.map +0 -1
  129. package/build/meta.d.mts +0 -754
  130. package/build/meta.d.ts +0 -754
  131. package/build/meta.js +0 -761
  132. package/build/meta.js.map +0 -1
  133. package/build/meta.mjs +0 -724
  134. package/build/meta.mjs.map +0 -1
@@ -0,0 +1,1303 @@
1
+ import { transformError as sdkTransformError } from '@wix/sdk-runtime/transform-error';
2
+ import { queryBuilder } from '@wix/sdk-runtime/query-builder';
3
+ import { renameKeysFromSDKRequestToRESTRequest, renameKeysFromRESTResponseToSDKResponse, } from '@wix/sdk-runtime/rename-all-nested-keys';
4
+ import * as ambassadorWixEventsV3TicketDefinition from './events-v3-ticket-definition-ticket-definitions-v-2.http.js';
5
+ // @ts-ignore
6
+ import { transformSDKAddressToRESTAddress } from '@wix/sdk-runtime/transformations/address';
7
+ import { transformRESTAddressToSDKAddress } from '@wix/sdk-runtime/transformations/address';
8
+ import { transformSDKPageURLToRESTPageURL } from '@wix/sdk-runtime/transformations/page-url';
9
+ import { transformRESTPageURLToSDKPageURL } from '@wix/sdk-runtime/transformations/page-url';
10
+ import { transformPaths } from '@wix/sdk-runtime/transformations/transform-paths';
11
+ export var PricingTypeEnumType;
12
+ (function (PricingTypeEnumType) {
13
+ /** Undefined pricing type. */
14
+ PricingTypeEnumType["UNKNOWN_PRICING_TYPE"] = "UNKNOWN_PRICING_TYPE";
15
+ /** All money goes to a seller. Applies to all ticket pricing methods except for `guestPrice`. */
16
+ PricingTypeEnumType["STANDARD"] = "STANDARD";
17
+ /** All collected money is a donation. This pricing type is automatically assigned when you select the `guestPrice` pricing method. */
18
+ PricingTypeEnumType["DONATION"] = "DONATION";
19
+ })(PricingTypeEnumType || (PricingTypeEnumType = {}));
20
+ export var FeeTypeEnumType;
21
+ (function (FeeTypeEnumType) {
22
+ /** Unknown fee type. */
23
+ FeeTypeEnumType["UNKNOWN_FEE_TYPE"] = "UNKNOWN_FEE_TYPE";
24
+ /** The fee is deducted from the ticket price for a seller. For example, if you're selling tickets for $10, then a ticket service fee of $0.25 will be deducted from the price and you'll get $9.75. */
25
+ FeeTypeEnumType["FEE_INCLUDED"] = "FEE_INCLUDED";
26
+ /** The fee is shown in addition to the ticket price at checkout and a guest pays the fee. For example, if you sell tickets for $10, a customer will see a ticket service fee of $0.25 and will pay $10.25 in total. */
27
+ FeeTypeEnumType["FEE_ADDED_AT_CHECKOUT"] = "FEE_ADDED_AT_CHECKOUT";
28
+ /** Ticket service fee is not collected. Available only for free tickets and legacy users. */
29
+ FeeTypeEnumType["NO_FEE"] = "NO_FEE";
30
+ })(FeeTypeEnumType || (FeeTypeEnumType = {}));
31
+ export var SaleStatusEnumStatus;
32
+ (function (SaleStatusEnumStatus) {
33
+ /** Undefined sale status. */
34
+ SaleStatusEnumStatus["UNKNOWN_SALE_STATUS"] = "UNKNOWN_SALE_STATUS";
35
+ /** Tickets are not on sale yet. */
36
+ SaleStatusEnumStatus["SALE_SCHEDULED"] = "SALE_SCHEDULED";
37
+ /** Tickets are on sale. */
38
+ SaleStatusEnumStatus["SALE_STARTED"] = "SALE_STARTED";
39
+ /** Tickets are not on sale. */
40
+ SaleStatusEnumStatus["SALE_ENDED"] = "SALE_ENDED";
41
+ })(SaleStatusEnumStatus || (SaleStatusEnumStatus = {}));
42
+ export var LocationType;
43
+ (function (LocationType) {
44
+ /** Unknown location type. */
45
+ LocationType["UNKNOWN_LOCATION"] = "UNKNOWN_LOCATION";
46
+ /** Event is on-site at a specific physical location. */
47
+ LocationType["VENUE"] = "VENUE";
48
+ /** Event is online, such as a virtual video conference. */
49
+ LocationType["ONLINE"] = "ONLINE";
50
+ })(LocationType || (LocationType = {}));
51
+ export var SubdivisionSubdivisionType;
52
+ (function (SubdivisionSubdivisionType) {
53
+ SubdivisionSubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
54
+ /** State */
55
+ SubdivisionSubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
56
+ /** County */
57
+ SubdivisionSubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
58
+ /** City/town */
59
+ SubdivisionSubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
60
+ /** Neighborhood/quarter */
61
+ SubdivisionSubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
62
+ /** Street/block */
63
+ SubdivisionSubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
64
+ /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
65
+ SubdivisionSubdivisionType["COUNTRY"] = "COUNTRY";
66
+ })(SubdivisionSubdivisionType || (SubdivisionSubdivisionType = {}));
67
+ export var RecurrenceStatusStatus;
68
+ (function (RecurrenceStatusStatus) {
69
+ /** Unknown recurrance status. */
70
+ RecurrenceStatusStatus["UNKNOWN_STATUS"] = "UNKNOWN_STATUS";
71
+ /** Event happens only once and can last multiple days. */
72
+ RecurrenceStatusStatus["ONE_TIME"] = "ONE_TIME";
73
+ /** A series of events that repeat. */
74
+ RecurrenceStatusStatus["RECURRING"] = "RECURRING";
75
+ /** Next event in a schedule of recurring events. */
76
+ RecurrenceStatusStatus["RECURRING_UPCOMING"] = "RECURRING_UPCOMING";
77
+ /** Latest event that ended in a schedule of recurring events. */
78
+ RecurrenceStatusStatus["RECURRING_RECENTLY_ENDED"] = "RECURRING_RECENTLY_ENDED";
79
+ /** Latest canceled event in a schedule of recurring events */
80
+ RecurrenceStatusStatus["RECURRING_RECENTLY_CANCELED"] = "RECURRING_RECENTLY_CANCELED";
81
+ })(RecurrenceStatusStatus || (RecurrenceStatusStatus = {}));
82
+ export var Status;
83
+ (function (Status) {
84
+ /** Unknown event status. */
85
+ Status["UNKNOWN_EVENT_STATUS"] = "UNKNOWN_EVENT_STATUS";
86
+ /** Event is published and scheduled to start. */
87
+ Status["UPCOMING"] = "UPCOMING";
88
+ /** Event has started. */
89
+ Status["STARTED"] = "STARTED";
90
+ /** Event has ended. */
91
+ Status["ENDED"] = "ENDED";
92
+ /** Event is canceled. */
93
+ Status["CANCELED"] = "CANCELED";
94
+ /** Event is not public. */
95
+ Status["DRAFT"] = "DRAFT";
96
+ })(Status || (Status = {}));
97
+ export var Field;
98
+ (function (Field) {
99
+ /** Unknown requested field. */
100
+ Field["UNKNOWN_REQUESTED_FIELD"] = "UNKNOWN_REQUESTED_FIELD";
101
+ /** Returns `salesDetails` in the response. */
102
+ Field["SALES_DETAILS"] = "SALES_DETAILS";
103
+ /** Returns `eventDetails` in the response. */
104
+ Field["EVENT_DETAILS"] = "EVENT_DETAILS";
105
+ })(Field || (Field = {}));
106
+ export var SortOrder;
107
+ (function (SortOrder) {
108
+ SortOrder["ASC"] = "ASC";
109
+ SortOrder["DESC"] = "DESC";
110
+ })(SortOrder || (SortOrder = {}));
111
+ export var LocationLocationType;
112
+ (function (LocationLocationType) {
113
+ LocationLocationType["VENUE"] = "VENUE";
114
+ LocationLocationType["ONLINE"] = "ONLINE";
115
+ })(LocationLocationType || (LocationLocationType = {}));
116
+ export var SubdivisionType;
117
+ (function (SubdivisionType) {
118
+ SubdivisionType["UNKNOWN_SUBDIVISION_TYPE"] = "UNKNOWN_SUBDIVISION_TYPE";
119
+ /** State */
120
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_1"] = "ADMINISTRATIVE_AREA_LEVEL_1";
121
+ /** County */
122
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_2"] = "ADMINISTRATIVE_AREA_LEVEL_2";
123
+ /** City/town */
124
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_3"] = "ADMINISTRATIVE_AREA_LEVEL_3";
125
+ /** Neighborhood/quarter */
126
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_4"] = "ADMINISTRATIVE_AREA_LEVEL_4";
127
+ /** Street/block */
128
+ SubdivisionType["ADMINISTRATIVE_AREA_LEVEL_5"] = "ADMINISTRATIVE_AREA_LEVEL_5";
129
+ /** ADMINISTRATIVE_AREA_LEVEL_0. Indicates the national political entity, and is typically the highest order type returned by the Geocoder. */
130
+ SubdivisionType["COUNTRY"] = "COUNTRY";
131
+ })(SubdivisionType || (SubdivisionType = {}));
132
+ export var EventsRecurrenceStatusStatus;
133
+ (function (EventsRecurrenceStatusStatus) {
134
+ /** Event occurs only once. */
135
+ EventsRecurrenceStatusStatus["ONE_TIME"] = "ONE_TIME";
136
+ /** Event is recurring. */
137
+ EventsRecurrenceStatusStatus["RECURRING"] = "RECURRING";
138
+ /** Marks the next upcoming occurrence of the recurring event. */
139
+ EventsRecurrenceStatusStatus["RECURRING_NEXT"] = "RECURRING_NEXT";
140
+ /** Marks the most recent ended occurrence of the recurring event. */
141
+ EventsRecurrenceStatusStatus["RECURRING_LAST_ENDED"] = "RECURRING_LAST_ENDED";
142
+ /** Marks the most recent canceled occurrence of the recurring event. */
143
+ EventsRecurrenceStatusStatus["RECURRING_LAST_CANCELED"] = "RECURRING_LAST_CANCELED";
144
+ })(EventsRecurrenceStatusStatus || (EventsRecurrenceStatusStatus = {}));
145
+ export var EventStatus;
146
+ (function (EventStatus) {
147
+ /** Event is public and scheduled to start */
148
+ EventStatus["SCHEDULED"] = "SCHEDULED";
149
+ /** Event has started */
150
+ EventStatus["STARTED"] = "STARTED";
151
+ /** Event has ended */
152
+ EventStatus["ENDED"] = "ENDED";
153
+ /** Event was canceled */
154
+ EventStatus["CANCELED"] = "CANCELED";
155
+ })(EventStatus || (EventStatus = {}));
156
+ export var EventType;
157
+ (function (EventType) {
158
+ /** Type not available for this request fieldset */
159
+ EventType["NA_EVENT_TYPE"] = "NA_EVENT_TYPE";
160
+ /** Registration via RSVP */
161
+ EventType["RSVP"] = "RSVP";
162
+ /** Registration via ticket purchase */
163
+ EventType["TICKETS"] = "TICKETS";
164
+ /** External registration */
165
+ EventType["EXTERNAL"] = "EXTERNAL";
166
+ /** Registration not available */
167
+ EventType["NO_REGISTRATION"] = "NO_REGISTRATION";
168
+ })(EventType || (EventType = {}));
169
+ export var RegistrationStatus;
170
+ (function (RegistrationStatus) {
171
+ /** Registration status is not applicable */
172
+ RegistrationStatus["NA_REGISTRATION_STATUS"] = "NA_REGISTRATION_STATUS";
173
+ /** Registration to event is closed */
174
+ RegistrationStatus["CLOSED"] = "CLOSED";
175
+ /** Registration to event is closed manually */
176
+ RegistrationStatus["CLOSED_MANUALLY"] = "CLOSED_MANUALLY";
177
+ /** Registration is open via RSVP */
178
+ RegistrationStatus["OPEN_RSVP"] = "OPEN_RSVP";
179
+ /** Registration to event waitlist is open via RSVP */
180
+ RegistrationStatus["OPEN_RSVP_WAITLIST"] = "OPEN_RSVP_WAITLIST";
181
+ /** Registration is open via ticket purchase */
182
+ RegistrationStatus["OPEN_TICKETS"] = "OPEN_TICKETS";
183
+ /** Registration is open via external URL */
184
+ RegistrationStatus["OPEN_EXTERNAL"] = "OPEN_EXTERNAL";
185
+ /** Registration will be open via RSVP */
186
+ RegistrationStatus["SCHEDULED_RSVP"] = "SCHEDULED_RSVP";
187
+ })(RegistrationStatus || (RegistrationStatus = {}));
188
+ export var RsvpStatusOptions;
189
+ (function (RsvpStatusOptions) {
190
+ /** Only YES RSVP status is available for RSVP registration */
191
+ RsvpStatusOptions["YES_ONLY"] = "YES_ONLY";
192
+ /** YES and NO RSVP status options are available for the registration */
193
+ RsvpStatusOptions["YES_AND_NO"] = "YES_AND_NO";
194
+ })(RsvpStatusOptions || (RsvpStatusOptions = {}));
195
+ export var TaxType;
196
+ (function (TaxType) {
197
+ /** Tax is included in the ticket price. */
198
+ TaxType["INCLUDED"] = "INCLUDED";
199
+ /** Tax is added to the order at the checkout. */
200
+ TaxType["ADDED"] = "ADDED";
201
+ /** Tax is added to the final total at the checkout. */
202
+ TaxType["ADDED_AT_CHECKOUT"] = "ADDED_AT_CHECKOUT";
203
+ })(TaxType || (TaxType = {}));
204
+ export var VisitorType;
205
+ (function (VisitorType) {
206
+ /** Site visitor (including member) */
207
+ VisitorType["VISITOR"] = "VISITOR";
208
+ /** Site member */
209
+ VisitorType["MEMBER"] = "MEMBER";
210
+ /** Site visitor or member */
211
+ VisitorType["VISITOR_OR_MEMBER"] = "VISITOR_OR_MEMBER";
212
+ })(VisitorType || (VisitorType = {}));
213
+ export var InputControlType;
214
+ (function (InputControlType) {
215
+ /** Single text value field. */
216
+ InputControlType["INPUT"] = "INPUT";
217
+ /** Single text value field. */
218
+ InputControlType["TEXTAREA"] = "TEXTAREA";
219
+ /** Single-choice field of predefined values. */
220
+ InputControlType["DROPDOWN"] = "DROPDOWN";
221
+ /** Single-choice field of predefined values. */
222
+ InputControlType["RADIO"] = "RADIO";
223
+ /** Multiple-choice field of predefined values. */
224
+ InputControlType["CHECKBOX"] = "CHECKBOX";
225
+ /** First and last name fields. */
226
+ InputControlType["NAME"] = "NAME";
227
+ /** Additional guests and respective guest names fields. */
228
+ InputControlType["GUEST_CONTROL"] = "GUEST_CONTROL";
229
+ /** Single-line address field. */
230
+ InputControlType["ADDRESS_SHORT"] = "ADDRESS_SHORT";
231
+ /** Full address field. */
232
+ InputControlType["ADDRESS_FULL"] = "ADDRESS_FULL";
233
+ /** Year, month and day fields. */
234
+ InputControlType["DATE"] = "DATE";
235
+ })(InputControlType || (InputControlType = {}));
236
+ export var ValueType;
237
+ (function (ValueType) {
238
+ ValueType["TEXT"] = "TEXT";
239
+ ValueType["NUMBER"] = "NUMBER";
240
+ ValueType["TEXT_ARRAY"] = "TEXT_ARRAY";
241
+ ValueType["DATE_TIME"] = "DATE_TIME";
242
+ ValueType["ADDRESS"] = "ADDRESS";
243
+ })(ValueType || (ValueType = {}));
244
+ export var ConferenceType;
245
+ (function (ConferenceType) {
246
+ /** Everyone in the meeting can publish and subscribe video and audio. */
247
+ ConferenceType["MEETING"] = "MEETING";
248
+ /** Guests can only subscribe to video and audio. */
249
+ ConferenceType["WEBINAR"] = "WEBINAR";
250
+ })(ConferenceType || (ConferenceType = {}));
251
+ export var CategoryStateState;
252
+ (function (CategoryStateState) {
253
+ /** Created manually by the user. */
254
+ CategoryStateState["MANUAL"] = "MANUAL";
255
+ /** Created automatically. */
256
+ CategoryStateState["AUTO"] = "AUTO";
257
+ /** Created when publishing recurring events. */
258
+ CategoryStateState["RECURRING_EVENT"] = "RECURRING_EVENT";
259
+ /** Category is hidden. */
260
+ CategoryStateState["HIDDEN"] = "HIDDEN";
261
+ })(CategoryStateState || (CategoryStateState = {}));
262
+ export var NodeType;
263
+ (function (NodeType) {
264
+ NodeType["PARAGRAPH"] = "PARAGRAPH";
265
+ NodeType["TEXT"] = "TEXT";
266
+ NodeType["HEADING"] = "HEADING";
267
+ NodeType["BULLETED_LIST"] = "BULLETED_LIST";
268
+ NodeType["ORDERED_LIST"] = "ORDERED_LIST";
269
+ NodeType["LIST_ITEM"] = "LIST_ITEM";
270
+ NodeType["BLOCKQUOTE"] = "BLOCKQUOTE";
271
+ NodeType["CODE_BLOCK"] = "CODE_BLOCK";
272
+ NodeType["VIDEO"] = "VIDEO";
273
+ NodeType["DIVIDER"] = "DIVIDER";
274
+ NodeType["FILE"] = "FILE";
275
+ NodeType["GALLERY"] = "GALLERY";
276
+ NodeType["GIF"] = "GIF";
277
+ NodeType["HTML"] = "HTML";
278
+ NodeType["IMAGE"] = "IMAGE";
279
+ NodeType["LINK_PREVIEW"] = "LINK_PREVIEW";
280
+ /** @deprecated */
281
+ NodeType["MAP"] = "MAP";
282
+ NodeType["POLL"] = "POLL";
283
+ NodeType["APP_EMBED"] = "APP_EMBED";
284
+ NodeType["BUTTON"] = "BUTTON";
285
+ NodeType["COLLAPSIBLE_LIST"] = "COLLAPSIBLE_LIST";
286
+ NodeType["TABLE"] = "TABLE";
287
+ NodeType["EMBED"] = "EMBED";
288
+ NodeType["COLLAPSIBLE_ITEM"] = "COLLAPSIBLE_ITEM";
289
+ NodeType["COLLAPSIBLE_ITEM_TITLE"] = "COLLAPSIBLE_ITEM_TITLE";
290
+ NodeType["COLLAPSIBLE_ITEM_BODY"] = "COLLAPSIBLE_ITEM_BODY";
291
+ NodeType["TABLE_CELL"] = "TABLE_CELL";
292
+ NodeType["TABLE_ROW"] = "TABLE_ROW";
293
+ NodeType["EXTERNAL"] = "EXTERNAL";
294
+ NodeType["AUDIO"] = "AUDIO";
295
+ NodeType["CAPTION"] = "CAPTION";
296
+ NodeType["LAYOUT"] = "LAYOUT";
297
+ NodeType["LAYOUT_CELL"] = "LAYOUT_CELL";
298
+ })(NodeType || (NodeType = {}));
299
+ export var WidthType;
300
+ (function (WidthType) {
301
+ /** Width matches the content width */
302
+ WidthType["CONTENT"] = "CONTENT";
303
+ /** Small Width */
304
+ WidthType["SMALL"] = "SMALL";
305
+ /** Width will match the original asset width */
306
+ WidthType["ORIGINAL"] = "ORIGINAL";
307
+ /** coast-to-coast display */
308
+ WidthType["FULL_WIDTH"] = "FULL_WIDTH";
309
+ })(WidthType || (WidthType = {}));
310
+ export var PluginContainerDataAlignment;
311
+ (function (PluginContainerDataAlignment) {
312
+ /** Center Alignment */
313
+ PluginContainerDataAlignment["CENTER"] = "CENTER";
314
+ /** Left Alignment */
315
+ PluginContainerDataAlignment["LEFT"] = "LEFT";
316
+ /** Right Alignment */
317
+ PluginContainerDataAlignment["RIGHT"] = "RIGHT";
318
+ })(PluginContainerDataAlignment || (PluginContainerDataAlignment = {}));
319
+ export var ButtonDataType;
320
+ (function (ButtonDataType) {
321
+ /** Regular link button */
322
+ ButtonDataType["LINK"] = "LINK";
323
+ /** Triggers custom action that is defined in plugin configuration by the consumer */
324
+ ButtonDataType["ACTION"] = "ACTION";
325
+ })(ButtonDataType || (ButtonDataType = {}));
326
+ export var Target;
327
+ (function (Target) {
328
+ /** Opens the linked document in the same frame as it was clicked (this is default) */
329
+ Target["SELF"] = "SELF";
330
+ /** Opens the linked document in a new window or tab */
331
+ Target["BLANK"] = "BLANK";
332
+ /** Opens the linked document in the parent frame */
333
+ Target["PARENT"] = "PARENT";
334
+ /** Opens the linked document in the full body of the window */
335
+ Target["TOP"] = "TOP";
336
+ })(Target || (Target = {}));
337
+ export var TextAlignment;
338
+ (function (TextAlignment) {
339
+ /** browser default, eqivalent to `initial` */
340
+ TextAlignment["AUTO"] = "AUTO";
341
+ /** Left align */
342
+ TextAlignment["LEFT"] = "LEFT";
343
+ /** Right align */
344
+ TextAlignment["RIGHT"] = "RIGHT";
345
+ /** Center align */
346
+ TextAlignment["CENTER"] = "CENTER";
347
+ /** Text is spaced to line up its left and right edges to the left and right edges of the line box, except for the last line */
348
+ TextAlignment["JUSTIFY"] = "JUSTIFY";
349
+ })(TextAlignment || (TextAlignment = {}));
350
+ export var LineStyle;
351
+ (function (LineStyle) {
352
+ /** Single Line */
353
+ LineStyle["SINGLE"] = "SINGLE";
354
+ /** Double Line */
355
+ LineStyle["DOUBLE"] = "DOUBLE";
356
+ /** Dashed Line */
357
+ LineStyle["DASHED"] = "DASHED";
358
+ /** Dotted Line */
359
+ LineStyle["DOTTED"] = "DOTTED";
360
+ })(LineStyle || (LineStyle = {}));
361
+ export var Width;
362
+ (function (Width) {
363
+ /** Large line */
364
+ Width["LARGE"] = "LARGE";
365
+ /** Medium line */
366
+ Width["MEDIUM"] = "MEDIUM";
367
+ /** Small line */
368
+ Width["SMALL"] = "SMALL";
369
+ })(Width || (Width = {}));
370
+ export var Alignment;
371
+ (function (Alignment) {
372
+ /** Center alignment */
373
+ Alignment["CENTER"] = "CENTER";
374
+ /** Left alignment */
375
+ Alignment["LEFT"] = "LEFT";
376
+ /** Right alignment */
377
+ Alignment["RIGHT"] = "RIGHT";
378
+ })(Alignment || (Alignment = {}));
379
+ export var ViewMode;
380
+ (function (ViewMode) {
381
+ /** No PDF view */
382
+ ViewMode["NONE"] = "NONE";
383
+ /** Full PDF view */
384
+ ViewMode["FULL"] = "FULL";
385
+ /** Mini PDF view */
386
+ ViewMode["MINI"] = "MINI";
387
+ })(ViewMode || (ViewMode = {}));
388
+ export var LayoutType;
389
+ (function (LayoutType) {
390
+ /** Collage type */
391
+ LayoutType["COLLAGE"] = "COLLAGE";
392
+ /** Masonry type */
393
+ LayoutType["MASONRY"] = "MASONRY";
394
+ /** Grid type */
395
+ LayoutType["GRID"] = "GRID";
396
+ /** Thumbnail type */
397
+ LayoutType["THUMBNAIL"] = "THUMBNAIL";
398
+ /** Slider type */
399
+ LayoutType["SLIDER"] = "SLIDER";
400
+ /** Slideshow type */
401
+ LayoutType["SLIDESHOW"] = "SLIDESHOW";
402
+ /** Panorama type */
403
+ LayoutType["PANORAMA"] = "PANORAMA";
404
+ /** Column type */
405
+ LayoutType["COLUMN"] = "COLUMN";
406
+ /** Magic type */
407
+ LayoutType["MAGIC"] = "MAGIC";
408
+ /** Fullsize images type */
409
+ LayoutType["FULLSIZE"] = "FULLSIZE";
410
+ })(LayoutType || (LayoutType = {}));
411
+ export var Orientation;
412
+ (function (Orientation) {
413
+ /** Rows Orientation */
414
+ Orientation["ROWS"] = "ROWS";
415
+ /** Columns Orientation */
416
+ Orientation["COLUMNS"] = "COLUMNS";
417
+ })(Orientation || (Orientation = {}));
418
+ export var Crop;
419
+ (function (Crop) {
420
+ /** Crop to fill */
421
+ Crop["FILL"] = "FILL";
422
+ /** Crop to fit */
423
+ Crop["FIT"] = "FIT";
424
+ })(Crop || (Crop = {}));
425
+ export var ThumbnailsAlignment;
426
+ (function (ThumbnailsAlignment) {
427
+ /** Top alignment */
428
+ ThumbnailsAlignment["TOP"] = "TOP";
429
+ /** Right alignment */
430
+ ThumbnailsAlignment["RIGHT"] = "RIGHT";
431
+ /** Bottom alignment */
432
+ ThumbnailsAlignment["BOTTOM"] = "BOTTOM";
433
+ /** Left alignment */
434
+ ThumbnailsAlignment["LEFT"] = "LEFT";
435
+ /** No thumbnail */
436
+ ThumbnailsAlignment["NONE"] = "NONE";
437
+ })(ThumbnailsAlignment || (ThumbnailsAlignment = {}));
438
+ export var GIFType;
439
+ (function (GIFType) {
440
+ GIFType["NORMAL"] = "NORMAL";
441
+ GIFType["STICKER"] = "STICKER";
442
+ })(GIFType || (GIFType = {}));
443
+ export var Source;
444
+ (function (Source) {
445
+ Source["HTML"] = "HTML";
446
+ Source["ADSENSE"] = "ADSENSE";
447
+ })(Source || (Source = {}));
448
+ export var Position;
449
+ (function (Position) {
450
+ /** Thumbnail positioned at the start (left in LTR layouts, right in RTL layouts) */
451
+ Position["START"] = "START";
452
+ /** Thumbnail positioned at the end (right in LTR layouts, left in RTL layouts) */
453
+ Position["END"] = "END";
454
+ /** Thumbnail positioned at the top */
455
+ Position["TOP"] = "TOP";
456
+ /** Thumbnail hidden and not displayed */
457
+ Position["HIDDEN"] = "HIDDEN";
458
+ })(Position || (Position = {}));
459
+ export var MapType;
460
+ (function (MapType) {
461
+ /** Roadmap map type */
462
+ MapType["ROADMAP"] = "ROADMAP";
463
+ /** Satellite map type */
464
+ MapType["SATELITE"] = "SATELITE";
465
+ /** Hybrid map type */
466
+ MapType["HYBRID"] = "HYBRID";
467
+ /** Terrain map type */
468
+ MapType["TERRAIN"] = "TERRAIN";
469
+ })(MapType || (MapType = {}));
470
+ export var ViewRole;
471
+ (function (ViewRole) {
472
+ /** Only Poll creator can view the results */
473
+ ViewRole["CREATOR"] = "CREATOR";
474
+ /** Anyone who voted can see the results */
475
+ ViewRole["VOTERS"] = "VOTERS";
476
+ /** Anyone can see the results, even if one didn't vote */
477
+ ViewRole["EVERYONE"] = "EVERYONE";
478
+ })(ViewRole || (ViewRole = {}));
479
+ export var VoteRole;
480
+ (function (VoteRole) {
481
+ /** Logged in member */
482
+ VoteRole["SITE_MEMBERS"] = "SITE_MEMBERS";
483
+ /** Anyone */
484
+ VoteRole["ALL"] = "ALL";
485
+ })(VoteRole || (VoteRole = {}));
486
+ export var PollLayoutType;
487
+ (function (PollLayoutType) {
488
+ /** List */
489
+ PollLayoutType["LIST"] = "LIST";
490
+ /** Grid */
491
+ PollLayoutType["GRID"] = "GRID";
492
+ })(PollLayoutType || (PollLayoutType = {}));
493
+ export var PollLayoutDirection;
494
+ (function (PollLayoutDirection) {
495
+ /** Left-to-right */
496
+ PollLayoutDirection["LTR"] = "LTR";
497
+ /** Right-to-left */
498
+ PollLayoutDirection["RTL"] = "RTL";
499
+ })(PollLayoutDirection || (PollLayoutDirection = {}));
500
+ export var BackgroundType;
501
+ (function (BackgroundType) {
502
+ /** Color background type */
503
+ BackgroundType["COLOR"] = "COLOR";
504
+ /** Image background type */
505
+ BackgroundType["IMAGE"] = "IMAGE";
506
+ /** Gradiant background type */
507
+ BackgroundType["GRADIENT"] = "GRADIENT";
508
+ })(BackgroundType || (BackgroundType = {}));
509
+ export var DecorationType;
510
+ (function (DecorationType) {
511
+ DecorationType["BOLD"] = "BOLD";
512
+ DecorationType["ITALIC"] = "ITALIC";
513
+ DecorationType["UNDERLINE"] = "UNDERLINE";
514
+ DecorationType["SPOILER"] = "SPOILER";
515
+ DecorationType["ANCHOR"] = "ANCHOR";
516
+ DecorationType["MENTION"] = "MENTION";
517
+ DecorationType["LINK"] = "LINK";
518
+ DecorationType["COLOR"] = "COLOR";
519
+ DecorationType["FONT_SIZE"] = "FONT_SIZE";
520
+ DecorationType["EXTERNAL"] = "EXTERNAL";
521
+ })(DecorationType || (DecorationType = {}));
522
+ export var FontType;
523
+ (function (FontType) {
524
+ FontType["PX"] = "PX";
525
+ FontType["EM"] = "EM";
526
+ })(FontType || (FontType = {}));
527
+ export var AppType;
528
+ (function (AppType) {
529
+ AppType["PRODUCT"] = "PRODUCT";
530
+ AppType["EVENT"] = "EVENT";
531
+ AppType["BOOKING"] = "BOOKING";
532
+ })(AppType || (AppType = {}));
533
+ export var InitialExpandedItems;
534
+ (function (InitialExpandedItems) {
535
+ /** First item will be expended initally */
536
+ InitialExpandedItems["FIRST"] = "FIRST";
537
+ /** All items will expended initally */
538
+ InitialExpandedItems["ALL"] = "ALL";
539
+ /** All items collapsed initally */
540
+ InitialExpandedItems["NONE"] = "NONE";
541
+ })(InitialExpandedItems || (InitialExpandedItems = {}));
542
+ export var Direction;
543
+ (function (Direction) {
544
+ /** Left-to-right */
545
+ Direction["LTR"] = "LTR";
546
+ /** Right-to-left */
547
+ Direction["RTL"] = "RTL";
548
+ })(Direction || (Direction = {}));
549
+ export var VerticalAlignment;
550
+ (function (VerticalAlignment) {
551
+ /** Top alignment */
552
+ VerticalAlignment["TOP"] = "TOP";
553
+ /** Middle alignment */
554
+ VerticalAlignment["MIDDLE"] = "MIDDLE";
555
+ /** Bottom alignment */
556
+ VerticalAlignment["BOTTOM"] = "BOTTOM";
557
+ })(VerticalAlignment || (VerticalAlignment = {}));
558
+ /**
559
+ * `NullValue` is a singleton enumeration to represent the null value for the
560
+ * `Value` type union.
561
+ *
562
+ * The JSON representation for `NullValue` is JSON `null`.
563
+ */
564
+ export var NullValue;
565
+ (function (NullValue) {
566
+ /** Null value. */
567
+ NullValue["NULL_VALUE"] = "NULL_VALUE";
568
+ })(NullValue || (NullValue = {}));
569
+ export var Type;
570
+ (function (Type) {
571
+ /** Unknown badge type. */
572
+ Type["UNKNOWN_BADGE_TYPE"] = "UNKNOWN_BADGE_TYPE";
573
+ /** Urgent badge type. */
574
+ Type["URGENT"] = "URGENT";
575
+ /** Informational badge type. */
576
+ Type["INFO"] = "INFO";
577
+ /** General badge type. */
578
+ Type["GENERAL"] = "GENERAL";
579
+ })(Type || (Type = {}));
580
+ export var State;
581
+ (function (State) {
582
+ State["UNKNOWN"] = "UNKNOWN";
583
+ State["ENABLED"] = "ENABLED";
584
+ State["DISABLED"] = "DISABLED";
585
+ State["PENDING"] = "PENDING";
586
+ State["DEMO"] = "DEMO";
587
+ })(State || (State = {}));
588
+ export var SiteCreatedContext;
589
+ (function (SiteCreatedContext) {
590
+ /** A valid option, we don't expose all reasons why site might be created. */
591
+ SiteCreatedContext["OTHER"] = "OTHER";
592
+ /** A meta site was created from template. */
593
+ SiteCreatedContext["FROM_TEMPLATE"] = "FROM_TEMPLATE";
594
+ /** A meta site was created by copying of the transfferred meta site. */
595
+ SiteCreatedContext["DUPLICATE_BY_SITE_TRANSFER"] = "DUPLICATE_BY_SITE_TRANSFER";
596
+ /** A copy of existing meta site. */
597
+ SiteCreatedContext["DUPLICATE"] = "DUPLICATE";
598
+ /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
599
+ SiteCreatedContext["OLD_SITE_TRANSFER"] = "OLD_SITE_TRANSFER";
600
+ /** deprecated A meta site was created for Flash editor. */
601
+ SiteCreatedContext["FLASH"] = "FLASH";
602
+ })(SiteCreatedContext || (SiteCreatedContext = {}));
603
+ export var Namespace;
604
+ (function (Namespace) {
605
+ Namespace["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
606
+ /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
607
+ Namespace["WIX"] = "WIX";
608
+ /** 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. */
609
+ Namespace["SHOUT_OUT"] = "SHOUT_OUT";
610
+ /** 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. */
611
+ Namespace["ALBUMS"] = "ALBUMS";
612
+ /** 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. */
613
+ Namespace["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
614
+ /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
615
+ Namespace["HOTELS"] = "HOTELS";
616
+ /** 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. */
617
+ Namespace["CLUBS"] = "CLUBS";
618
+ /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
619
+ Namespace["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
620
+ /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
621
+ Namespace["DEV_SITE"] = "DEV_SITE";
622
+ /** 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. */
623
+ Namespace["LOGOS"] = "LOGOS";
624
+ /** 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. */
625
+ Namespace["VIDEO_MAKER"] = "VIDEO_MAKER";
626
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
627
+ Namespace["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
628
+ /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
629
+ Namespace["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
630
+ /**
631
+ * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
632
+ *
633
+ * Meta site with this namespace will *not* be shown in a user's site list by default.
634
+ */
635
+ Namespace["HTML_DRAFT"] = "HTML_DRAFT";
636
+ /**
637
+ * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
638
+ * Will be accessible from Site List and will not have a website app.
639
+ * Once the user attaches a site, the site will become a regular wixsite.
640
+ */
641
+ Namespace["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
642
+ /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
643
+ Namespace["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
644
+ /** It is to be used in the Business First efforts. */
645
+ Namespace["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
646
+ /** Bookings business flow with no site. */
647
+ Namespace["ANYWHERE"] = "ANYWHERE";
648
+ /** Namespace for Headless Backoffice with no editor */
649
+ Namespace["HEADLESS"] = "HEADLESS";
650
+ /**
651
+ * Namespace for master site that will exist in parent account that will be referenced by subaccounts
652
+ * The site will be used for account level CSM feature for enterprise
653
+ */
654
+ Namespace["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
655
+ /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
656
+ Namespace["RISE"] = "RISE";
657
+ /**
658
+ * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
659
+ * There's a blank site behind the scene but it's blank).
660
+ * The Mobile company will be the owner of this namespace.
661
+ */
662
+ Namespace["BRANDED_FIRST"] = "BRANDED_FIRST";
663
+ /** Nownia.com Siteless account management for Ai Scheduling Assistant. */
664
+ Namespace["NOWNIA"] = "NOWNIA";
665
+ /**
666
+ * UGC Templates are templates that are created by users for personal use and to sale to other users.
667
+ * The Partners company owns this namespace.
668
+ */
669
+ Namespace["UGC_TEMPLATE"] = "UGC_TEMPLATE";
670
+ /** Codux Headless Sites */
671
+ Namespace["CODUX"] = "CODUX";
672
+ /** Bobb - AI Design Creator. */
673
+ Namespace["MEDIA_DESIGN_CREATOR"] = "MEDIA_DESIGN_CREATOR";
674
+ /**
675
+ * Shared Blog Site is a unique single site across Enterprise account,
676
+ * This site will hold all Blog posts related to the Marketing product.
677
+ */
678
+ Namespace["SHARED_BLOG_ENTERPRISE"] = "SHARED_BLOG_ENTERPRISE";
679
+ /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
680
+ Namespace["STANDALONE_FORMS"] = "STANDALONE_FORMS";
681
+ })(Namespace || (Namespace = {}));
682
+ export var DeleteStatus;
683
+ (function (DeleteStatus) {
684
+ DeleteStatus["UNKNOWN"] = "UNKNOWN";
685
+ DeleteStatus["TRASH"] = "TRASH";
686
+ DeleteStatus["DELETED"] = "DELETED";
687
+ DeleteStatus["PENDING_PURGE"] = "PENDING_PURGE";
688
+ DeleteStatus["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
689
+ })(DeleteStatus || (DeleteStatus = {}));
690
+ export var WebhookIdentityType;
691
+ (function (WebhookIdentityType) {
692
+ WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
693
+ WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
694
+ WebhookIdentityType["MEMBER"] = "MEMBER";
695
+ WebhookIdentityType["WIX_USER"] = "WIX_USER";
696
+ WebhookIdentityType["APP"] = "APP";
697
+ })(WebhookIdentityType || (WebhookIdentityType = {}));
698
+ export var ReservationStatus;
699
+ (function (ReservationStatus) {
700
+ /** The Reservation is pending confirmation and will expire after the expiration due time. */
701
+ ReservationStatus["RESERVATION_PENDING"] = "RESERVATION_PENDING";
702
+ /** The reservation is confirmed and will not expire. */
703
+ ReservationStatus["RESERVATION_CONFIRMED"] = "RESERVATION_CONFIRMED";
704
+ /** The reservation is canceled because of non payment. */
705
+ ReservationStatus["RESERVATION_CANCELED"] = "RESERVATION_CANCELED";
706
+ /** The reservation is canceled manually by the buyer. */
707
+ ReservationStatus["RESERVATION_CANCELED_MANUALLY"] = "RESERVATION_CANCELED_MANUALLY";
708
+ /** The reservation is expired. */
709
+ ReservationStatus["RESERVATION_EXPIRED"] = "RESERVATION_EXPIRED";
710
+ })(ReservationStatus || (ReservationStatus = {}));
711
+ /**
712
+ * > **Note:** This function replaces the deprecated `createTicketDefinition()` function. The deprecated function will continue to work until November 8, 2024, but it will not receive updates. To keep any existing code compatible with future changes, see the [migration instructions](https://www.wix.com/velo/reference/wix-events-v2/ticketdefinitions/createticketdefinition).
713
+ *
714
+ *
715
+ * Creates a ticket definition.
716
+ *
717
+ *
718
+ * It is allowed to create up to 100 definitions per event.
719
+ * @param ticketDefinition - Ticket definition info.
720
+ * @public
721
+ * @requiredField ticketDefinition
722
+ * @requiredField ticketDefinition.eventId
723
+ * @requiredField ticketDefinition.feeType
724
+ * @requiredField ticketDefinition.name
725
+ * @requiredField ticketDefinition.pricingMethod
726
+ * @requiredField ticketDefinition.pricingMethod.price
727
+ * @param options - Optional fields.
728
+ * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS
729
+ * @permissionScope Manage Events - all permissions
730
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
731
+ * @permissionScope Manage Events
732
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
733
+ * @permissionScope Manage Ticket Definitions
734
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
735
+ * @applicableIdentity APP
736
+ * @returns Created ticket definition.
737
+ * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.CreateTicketDefinition
738
+ */
739
+ export async function createTicketDefinition(ticketDefinition, options) {
740
+ // @ts-ignore
741
+ const { httpClient, sideEffects } = arguments[2];
742
+ const payload = transformPaths(renameKeysFromSDKRequestToRESTRequest({
743
+ ticketDefinition: ticketDefinition,
744
+ fields: options?.fields,
745
+ }), [
746
+ {
747
+ transformFn: transformSDKPageURLToRESTPageURL,
748
+ paths: [{ path: 'ticketDefinition.eventDetails.eventPageUrl' }],
749
+ },
750
+ {
751
+ transformFn: transformSDKAddressToRESTAddress,
752
+ paths: [{ path: 'ticketDefinition.eventDetails.location.address' }],
753
+ },
754
+ ]);
755
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.createTicketDefinition(payload);
756
+ sideEffects?.onSiteCall?.();
757
+ try {
758
+ const result = await httpClient.request(reqOpts);
759
+ sideEffects?.onSuccess?.(result);
760
+ return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
761
+ {
762
+ transformFn: transformRESTPageURLToSDKPageURL,
763
+ paths: [{ path: 'ticketDefinition.eventDetails.eventPageUrl' }],
764
+ },
765
+ {
766
+ transformFn: transformRESTAddressToSDKAddress,
767
+ paths: [{ path: 'ticketDefinition.eventDetails.location.address' }],
768
+ },
769
+ ]))?.ticketDefinition;
770
+ }
771
+ catch (err) {
772
+ const transformedError = sdkTransformError(err, {
773
+ spreadPathsToArguments: {},
774
+ explicitPathsToArguments: {
775
+ ticketDefinition: '$[0]',
776
+ fields: '$[1].fields',
777
+ },
778
+ singleArgumentUnchanged: false,
779
+ }, ['ticketDefinition', 'options']);
780
+ sideEffects?.onError?.(err);
781
+ throw transformedError;
782
+ }
783
+ }
784
+ /**
785
+ * > **Note:** This function replaces the deprecated `updateTicketDefinition()` function. The deprecated function will continue to work until November 8, 2024, but it will not receive updates. To keep any existing code compatible with future changes, see the [migration instructions](https://www.wix.com/velo/reference/wix-events-v2/ticketdefinitions/updateticketdefinition).
786
+ *
787
+ * Updates a ticket definition.
788
+ *
789
+ *
790
+ * 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.
791
+ * @param _id - Ticket definition ID.
792
+ * @public
793
+ * @requiredField _id
794
+ * @requiredField ticketDefinition
795
+ * @requiredField ticketDefinition.revision
796
+ * @param options - Optional fields.
797
+ * @param ticketDefinition - Ticket definition to update.
798
+ * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS
799
+ * @permissionScope Manage Events - all permissions
800
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
801
+ * @permissionScope Manage Events
802
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
803
+ * @permissionScope Manage Ticket Definitions
804
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
805
+ * @applicableIdentity APP
806
+ * @returns The updated ticket definition.
807
+ * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.UpdateTicketDefinition
808
+ */
809
+ export async function updateTicketDefinition(_id, ticketDefinition, options) {
810
+ // @ts-ignore
811
+ const { httpClient, sideEffects } = arguments[3];
812
+ const payload = transformPaths(renameKeysFromSDKRequestToRESTRequest({
813
+ ticketDefinition: { ...ticketDefinition, id: _id },
814
+ fields: options?.fields,
815
+ }), [
816
+ {
817
+ transformFn: transformSDKPageURLToRESTPageURL,
818
+ paths: [{ path: 'ticketDefinition.eventDetails.eventPageUrl' }],
819
+ },
820
+ {
821
+ transformFn: transformSDKAddressToRESTAddress,
822
+ paths: [{ path: 'ticketDefinition.eventDetails.location.address' }],
823
+ },
824
+ ]);
825
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.updateTicketDefinition(payload);
826
+ sideEffects?.onSiteCall?.();
827
+ try {
828
+ const result = await httpClient.request(reqOpts);
829
+ sideEffects?.onSuccess?.(result);
830
+ return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
831
+ {
832
+ transformFn: transformRESTPageURLToSDKPageURL,
833
+ paths: [{ path: 'ticketDefinition.eventDetails.eventPageUrl' }],
834
+ },
835
+ {
836
+ transformFn: transformRESTAddressToSDKAddress,
837
+ paths: [{ path: 'ticketDefinition.eventDetails.location.address' }],
838
+ },
839
+ ]))?.ticketDefinition;
840
+ }
841
+ catch (err) {
842
+ const transformedError = sdkTransformError(err, {
843
+ spreadPathsToArguments: { ticketDefinition: '$[1]' },
844
+ explicitPathsToArguments: {
845
+ 'ticketDefinition.id': '$[0]',
846
+ fields: '$[2].fields',
847
+ },
848
+ singleArgumentUnchanged: false,
849
+ }, ['_id', 'ticketDefinition', 'options']);
850
+ sideEffects?.onError?.(err);
851
+ throw transformedError;
852
+ }
853
+ }
854
+ /**
855
+ * > **Note:** This function replaces the deprecated `getTicketDefinition()` function. The deprecated function will continue to work until November 8, 2024, but it will not receive updates. To keep any existing code compatible with future changes, see the [migration instructions](https://www.wix.com/velo/reference/wix-events-v2/ticketdefinitions/getticketdefinition).
856
+ *
857
+ * Retrieves a ticket definition by ID.
858
+ * @param ticketDefinitionId - Ticket definition ID.
859
+ * @public
860
+ * @requiredField ticketDefinitionId
861
+ * @param options - Optional fields.
862
+ * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS
863
+ * @permissionScope Manage Events - all permissions
864
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
865
+ * @permissionScope Manage Events
866
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
867
+ * @permissionScope Manage Orders
868
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
869
+ * @permissionScope Manage Ticket Definitions
870
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
871
+ * @applicableIdentity APP
872
+ * @returns The requested ticket definition.
873
+ * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.GetTicketDefinition
874
+ */
875
+ export async function getTicketDefinition(ticketDefinitionId, options) {
876
+ // @ts-ignore
877
+ const { httpClient, sideEffects } = arguments[2];
878
+ const payload = renameKeysFromSDKRequestToRESTRequest({
879
+ ticketDefinitionId: ticketDefinitionId,
880
+ fields: options?.fields,
881
+ });
882
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.getTicketDefinition(payload);
883
+ sideEffects?.onSiteCall?.();
884
+ try {
885
+ const result = await httpClient.request(reqOpts);
886
+ sideEffects?.onSuccess?.(result);
887
+ return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
888
+ {
889
+ transformFn: transformRESTPageURLToSDKPageURL,
890
+ paths: [{ path: 'ticketDefinition.eventDetails.eventPageUrl' }],
891
+ },
892
+ {
893
+ transformFn: transformRESTAddressToSDKAddress,
894
+ paths: [{ path: 'ticketDefinition.eventDetails.location.address' }],
895
+ },
896
+ ]))?.ticketDefinition;
897
+ }
898
+ catch (err) {
899
+ const transformedError = sdkTransformError(err, {
900
+ spreadPathsToArguments: {},
901
+ explicitPathsToArguments: {
902
+ ticketDefinitionId: '$[0]',
903
+ fields: '$[1].fields',
904
+ },
905
+ singleArgumentUnchanged: false,
906
+ }, ['ticketDefinitionId', 'options']);
907
+ sideEffects?.onError?.(err);
908
+ throw transformedError;
909
+ }
910
+ }
911
+ /**
912
+ * > **Note:** This function replaces the deprecated `deleteTicketDefinition()` function. The deprecated function will continue to work until November 8, 2024, but it will not receive updates. To keep any existing code compatible with future changes, see the [migration instructions](https://www.wix.com/velo/reference/wix-events-v2/ticketdefinitions/deleteticketdefinition).
913
+ *
914
+ * Permanently deletes a ticket definition.
915
+ * @param ticketDefinitionId - ID of the ticket definition to delete.
916
+ * @public
917
+ * @requiredField ticketDefinitionId
918
+ * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS
919
+ * @permissionScope Manage Events - all permissions
920
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
921
+ * @permissionScope Manage Events
922
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
923
+ * @permissionScope Manage Ticket Definitions
924
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
925
+ * @applicableIdentity APP
926
+ * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.DeleteTicketDefinition
927
+ */
928
+ export async function deleteTicketDefinition(ticketDefinitionId) {
929
+ // @ts-ignore
930
+ const { httpClient, sideEffects } = arguments[1];
931
+ const payload = renameKeysFromSDKRequestToRESTRequest({
932
+ ticketDefinitionId: ticketDefinitionId,
933
+ });
934
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.deleteTicketDefinition(payload);
935
+ sideEffects?.onSiteCall?.();
936
+ try {
937
+ const result = await httpClient.request(reqOpts);
938
+ sideEffects?.onSuccess?.(result);
939
+ }
940
+ catch (err) {
941
+ const transformedError = sdkTransformError(err, {
942
+ spreadPathsToArguments: {},
943
+ explicitPathsToArguments: { ticketDefinitionId: '$[0]' },
944
+ singleArgumentUnchanged: false,
945
+ }, ['ticketDefinitionId']);
946
+ sideEffects?.onError?.(err);
947
+ throw transformedError;
948
+ }
949
+ }
950
+ /**
951
+ * Changes ticket definitions order in an event dashboard and the list of available tickets in the ticket picker.
952
+ * > **Note:** It is possible to use both `beforeTicketDefinitionId` and `afterTicketDefinitionId` at the same time but only the last one defined will be executed.
953
+ * @param eventId - Event ID.
954
+ * @public
955
+ * @requiredField eventId
956
+ * @requiredField options.ticketDefinitionId
957
+ * @param options - Optional fields.
958
+ * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS
959
+ * @permissionScope Manage Events - all permissions
960
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
961
+ * @permissionScope Manage Events
962
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
963
+ * @permissionScope Manage Ticket Definitions
964
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
965
+ * @applicableIdentity APP
966
+ * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.ReorderTicketDefinitions
967
+ */
968
+ export async function reorderTicketDefinitions(eventId, options) {
969
+ // @ts-ignore
970
+ const { httpClient, sideEffects } = arguments[2];
971
+ const payload = renameKeysFromSDKRequestToRESTRequest({
972
+ eventId: eventId,
973
+ ticketDefinitionId: options?.ticketDefinitionId,
974
+ beforeDefinitionId: options?.beforeDefinitionId,
975
+ afterDefinitionId: options?.afterDefinitionId,
976
+ });
977
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.reorderTicketDefinitions(payload);
978
+ sideEffects?.onSiteCall?.();
979
+ try {
980
+ const result = await httpClient.request(reqOpts);
981
+ sideEffects?.onSuccess?.(result);
982
+ }
983
+ catch (err) {
984
+ const transformedError = sdkTransformError(err, {
985
+ spreadPathsToArguments: {},
986
+ explicitPathsToArguments: {
987
+ eventId: '$[0]',
988
+ ticketDefinitionId: '$[1].ticketDefinitionId',
989
+ beforeDefinitionId: '$[1].beforeDefinitionId',
990
+ afterDefinitionId: '$[1].afterDefinitionId',
991
+ },
992
+ singleArgumentUnchanged: false,
993
+ }, ['eventId', 'options']);
994
+ sideEffects?.onError?.(err);
995
+ throw transformedError;
996
+ }
997
+ }
998
+ /**
999
+ * > **Note:** This function replaces the deprecated `listTicketDefinition()` and `queryTicketDefinitions` functions. The deprecated functions will continue to work until November 8, 2024, but it will not receive updates. To keep any existing code compatible with future changes, see the [migration instructions](https://www.wix.com/velo/reference/wix-events-v2/ticketdefinitions/queryticketdefinitions).
1000
+ *
1001
+ * Retrieves a list of ticket definitions, given the provided paging, filtering, and sorting.
1002
+ * Query Ticket Definitions runs with these defaults, which you can override:
1003
+ * - `createdDate` is sorted in `ASC` order
1004
+ * - `paging.limit` is `100`
1005
+ * - `paging.offset` is `0`
1006
+ * @public
1007
+ * @param options - Optional fields.
1008
+ * @permissionScope Manage Events - all permissions
1009
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
1010
+ * @permissionScope Manage Events
1011
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1012
+ * @permissionScope Manage Orders
1013
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
1014
+ * @permissionScope Manage Ticket Definitions
1015
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
1016
+ * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS
1017
+ * @applicableIdentity APP
1018
+ * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.QueryTicketDefinitions
1019
+ */
1020
+ export function queryTicketDefinitions(options) {
1021
+ // @ts-ignore
1022
+ const { httpClient, sideEffects } = arguments[1];
1023
+ return queryBuilder({
1024
+ func: async (payload) => {
1025
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.queryTicketDefinitions({
1026
+ ...payload,
1027
+ ...(options ?? {}),
1028
+ });
1029
+ sideEffects?.onSiteCall?.();
1030
+ try {
1031
+ const result = await httpClient.request(reqOpts);
1032
+ sideEffects?.onSuccess?.(result);
1033
+ return result;
1034
+ }
1035
+ catch (err) {
1036
+ sideEffects?.onError?.(err);
1037
+ throw err;
1038
+ }
1039
+ },
1040
+ requestTransformer: (query) => {
1041
+ const args = [query, options];
1042
+ return renameKeysFromSDKRequestToRESTRequest({
1043
+ ...args?.[1],
1044
+ query: args?.[0],
1045
+ });
1046
+ },
1047
+ responseTransformer: ({ data, }) => {
1048
+ const transformedData = renameKeysFromRESTResponseToSDKResponse(transformPaths(data, [
1049
+ {
1050
+ transformFn: transformRESTPageURLToSDKPageURL,
1051
+ paths: [{ path: 'ticketDefinitions.eventDetails.eventPageUrl' }],
1052
+ },
1053
+ {
1054
+ transformFn: transformRESTAddressToSDKAddress,
1055
+ paths: [
1056
+ { path: 'ticketDefinitions.eventDetails.location.address' },
1057
+ ],
1058
+ },
1059
+ ]));
1060
+ return {
1061
+ items: transformedData?.ticketDefinitions,
1062
+ pagingMetadata: transformedData?.metadata,
1063
+ };
1064
+ },
1065
+ errorTransformer: (err) => {
1066
+ const transformedError = sdkTransformError(err, {
1067
+ spreadPathsToArguments: {},
1068
+ explicitPathsToArguments: { query: '$[0]' },
1069
+ singleArgumentUnchanged: false,
1070
+ });
1071
+ throw transformedError;
1072
+ },
1073
+ pagingMethod: 'CURSOR',
1074
+ transformationPaths: {},
1075
+ });
1076
+ }
1077
+ /**
1078
+ * Retrieves a list of available ticket definitions, given the provided paging, filtering, and sorting.
1079
+ *
1080
+ * This endpoint retrieves ticket definitions that aren't in the `hidden` state. The available ticket definitions can be retrieved by site visitors.
1081
+ *
1082
+ * > **Note:** You need the `WIX_EVENTS.READ_TICKET_DEFINITIONS` permission to get the `salesDetails` field values.
1083
+ *
1084
+ * Query Available Ticket Definitions runs with these defaults, which you can override:
1085
+ * - `createdDate` is sorted in `ASC` order
1086
+ * - `paging.limit` is `100`
1087
+ * - `paging.offset` is `0`
1088
+ *
1089
+ * For field support for filters and sorting, see [Ticket Definitions: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-solutions/events/ticket-definition-v3/filter-and-sort).
1090
+ * To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
1091
+ * @param query - Query options. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details.
1092
+ * @public
1093
+ * @requiredField query
1094
+ * @param options - Optional fields.
1095
+ * @permissionId WIX_EVENTS.READ_AVAILABLE_TICKET_DEFINITIONS
1096
+ * @permissionScope Manage Events - all permissions
1097
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
1098
+ * @permissionScope Manage Events
1099
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1100
+ * @permissionScope Manage Orders
1101
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
1102
+ * @applicableIdentity APP
1103
+ * @applicableIdentity VISITOR
1104
+ * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.QueryAvailableTicketDefinitions
1105
+ */
1106
+ export async function queryAvailableTicketDefinitions(query, options) {
1107
+ // @ts-ignore
1108
+ const { httpClient, sideEffects } = arguments[2];
1109
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1110
+ query: query,
1111
+ fields: options?.fields,
1112
+ });
1113
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.queryAvailableTicketDefinitions(payload);
1114
+ sideEffects?.onSiteCall?.();
1115
+ try {
1116
+ const result = await httpClient.request(reqOpts);
1117
+ sideEffects?.onSuccess?.(result);
1118
+ return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
1119
+ {
1120
+ transformFn: transformRESTPageURLToSDKPageURL,
1121
+ paths: [{ path: 'ticketDefinitions.eventDetails.eventPageUrl' }],
1122
+ },
1123
+ {
1124
+ transformFn: transformRESTAddressToSDKAddress,
1125
+ paths: [{ path: 'ticketDefinitions.eventDetails.location.address' }],
1126
+ },
1127
+ ]));
1128
+ }
1129
+ catch (err) {
1130
+ const transformedError = sdkTransformError(err, {
1131
+ spreadPathsToArguments: {},
1132
+ explicitPathsToArguments: { query: '$[0]', fields: '$[1].fields' },
1133
+ singleArgumentUnchanged: false,
1134
+ }, ['query', 'options']);
1135
+ sideEffects?.onError?.(err);
1136
+ throw transformedError;
1137
+ }
1138
+ }
1139
+ /**
1140
+ * Counts ticket definitions by the `saleStatus` field, including those with the `hidden` status.
1141
+ * @public
1142
+ * @param options - Optional fields.
1143
+ * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS
1144
+ * @permissionScope Manage Events - all permissions
1145
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
1146
+ * @permissionScope Manage Events
1147
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1148
+ * @permissionScope Manage Orders
1149
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
1150
+ * @permissionScope Manage Ticket Definitions
1151
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
1152
+ * @applicableIdentity APP
1153
+ * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.CountTicketDefinitions
1154
+ */
1155
+ export async function countTicketDefinitions(options) {
1156
+ // @ts-ignore
1157
+ const { httpClient, sideEffects } = arguments[1];
1158
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1159
+ filter: options?.filter,
1160
+ facet: options?.facet,
1161
+ });
1162
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.countTicketDefinitions(payload);
1163
+ sideEffects?.onSiteCall?.();
1164
+ try {
1165
+ const result = await httpClient.request(reqOpts);
1166
+ sideEffects?.onSuccess?.(result);
1167
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1168
+ }
1169
+ catch (err) {
1170
+ const transformedError = sdkTransformError(err, {
1171
+ spreadPathsToArguments: {},
1172
+ explicitPathsToArguments: {
1173
+ filter: '$[0].filter',
1174
+ facet: '$[0].facet',
1175
+ },
1176
+ singleArgumentUnchanged: false,
1177
+ }, ['options']);
1178
+ sideEffects?.onError?.(err);
1179
+ throw transformedError;
1180
+ }
1181
+ }
1182
+ /**
1183
+ * Counts ticket definitions by the `saleStatus`, excluding those with the `hidden` status.
1184
+ * @public
1185
+ * @param options - Optional fields.
1186
+ * @permissionId WIX_EVENTS.READ_AVAILABLE_TICKET_DEFINITIONS
1187
+ * @permissionScope Manage Events - all permissions
1188
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
1189
+ * @permissionScope Manage Events
1190
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1191
+ * @permissionScope Manage Orders
1192
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
1193
+ * @applicableIdentity APP
1194
+ * @applicableIdentity VISITOR
1195
+ * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.CountAvailableTicketDefinitions
1196
+ */
1197
+ export async function countAvailableTicketDefinitions(options) {
1198
+ // @ts-ignore
1199
+ const { httpClient, sideEffects } = arguments[1];
1200
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1201
+ filter: options?.filter,
1202
+ });
1203
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.countAvailableTicketDefinitions(payload);
1204
+ sideEffects?.onSiteCall?.();
1205
+ try {
1206
+ const result = await httpClient.request(reqOpts);
1207
+ sideEffects?.onSuccess?.(result);
1208
+ return renameKeysFromRESTResponseToSDKResponse(result.data);
1209
+ }
1210
+ catch (err) {
1211
+ const transformedError = sdkTransformError(err, {
1212
+ spreadPathsToArguments: {},
1213
+ explicitPathsToArguments: { filter: '$[0].filter' },
1214
+ singleArgumentUnchanged: false,
1215
+ }, ['options']);
1216
+ sideEffects?.onError?.(err);
1217
+ throw transformedError;
1218
+ }
1219
+ }
1220
+ /**
1221
+ * Deletes multiple ticket definitions.
1222
+ *
1223
+ * All ticket definitions that meet the specified `filter` criteria are deleted.
1224
+ * @param filter - Filter object in the following format: <br/> `"filter" : { "fieldName1": "value1" }`. <br/> <br/> **Example:** <br/> `"filter" : { "eventId": "3d3d5c04-ece0-45a8-85f0-11a58edaa192" }`
1225
+ * @public
1226
+ * @requiredField filter
1227
+ * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS
1228
+ * @permissionScope Manage Events - all permissions
1229
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
1230
+ * @permissionScope Manage Events
1231
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1232
+ * @permissionScope Manage Ticket Definitions
1233
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
1234
+ * @applicableIdentity APP
1235
+ * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.BulkDeleteTicketDefinitionsByFilter
1236
+ */
1237
+ export async function bulkDeleteTicketDefinitionsByFilter(filter) {
1238
+ // @ts-ignore
1239
+ const { httpClient, sideEffects } = arguments[1];
1240
+ const payload = renameKeysFromSDKRequestToRESTRequest({ filter: filter });
1241
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.bulkDeleteTicketDefinitionsByFilter(payload);
1242
+ sideEffects?.onSiteCall?.();
1243
+ try {
1244
+ const result = await httpClient.request(reqOpts);
1245
+ sideEffects?.onSuccess?.(result);
1246
+ }
1247
+ catch (err) {
1248
+ const transformedError = sdkTransformError(err, {
1249
+ spreadPathsToArguments: {},
1250
+ explicitPathsToArguments: { filter: '$[0]' },
1251
+ singleArgumentUnchanged: false,
1252
+ }, ['filter']);
1253
+ sideEffects?.onError?.(err);
1254
+ throw transformedError;
1255
+ }
1256
+ }
1257
+ /**
1258
+ * > **Note:** This function replaces the deprecated `changeCurrency()` function. The deprecated function will continue to work until November 8, 2024, but it will not receive updates. To keep any existing code compatible with future changes, see the [migration instructions](https://www.wix.com/velo/reference/wix-events-v2/ticketdefinitions/changecurrency).
1259
+ *
1260
+ * Changes ticket price currency per event.
1261
+ * @param eventId - Event ID.
1262
+ * @public
1263
+ * @requiredField eventId
1264
+ * @requiredField options
1265
+ * @requiredField options.currency
1266
+ * @param options - Optional fields.
1267
+ * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS
1268
+ * @permissionScope Manage Events - all permissions
1269
+ * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
1270
+ * @permissionScope Manage Events
1271
+ * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1272
+ * @permissionScope Manage Ticket Definitions
1273
+ * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
1274
+ * @applicableIdentity APP
1275
+ * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.ChangeCurrency
1276
+ */
1277
+ export async function changeCurrency(eventId, options) {
1278
+ // @ts-ignore
1279
+ const { httpClient, sideEffects } = arguments[2];
1280
+ const payload = renameKeysFromSDKRequestToRESTRequest({
1281
+ eventId: eventId,
1282
+ currency: options?.currency,
1283
+ });
1284
+ const reqOpts = ambassadorWixEventsV3TicketDefinition.changeCurrency(payload);
1285
+ sideEffects?.onSiteCall?.();
1286
+ try {
1287
+ const result = await httpClient.request(reqOpts);
1288
+ sideEffects?.onSuccess?.(result);
1289
+ }
1290
+ catch (err) {
1291
+ const transformedError = sdkTransformError(err, {
1292
+ spreadPathsToArguments: {},
1293
+ explicitPathsToArguments: {
1294
+ eventId: '$[0]',
1295
+ currency: '$[1].currency',
1296
+ },
1297
+ singleArgumentUnchanged: false,
1298
+ }, ['eventId', 'options']);
1299
+ sideEffects?.onError?.(err);
1300
+ throw transformedError;
1301
+ }
1302
+ }
1303
+ //# sourceMappingURL=events-v3-ticket-definition-ticket-definitions-v-2.universal.js.map