@wix/auto_sdk_events_ticket-definitions-v-2 1.0.27 → 1.0.29

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 (133) hide show
  1. package/build/{internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.d.ts → events-v3-ticket-definition-ticket-definitions-v-2.universal-DqIhKaqR.d.mts} +416 -760
  2. package/build/{cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.d.ts → events-v3-ticket-definition-ticket-definitions-v-2.universal-DqIhKaqR.d.ts} +416 -760
  3. package/build/index.d.mts +184 -0
  4. package/build/index.d.ts +184 -0
  5. package/build/index.js +1894 -0
  6. package/build/index.js.map +1 -0
  7. package/build/index.mjs +1795 -0
  8. package/build/index.mjs.map +1 -0
  9. package/build/internal/{es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.d.ts → events-v3-ticket-definition-ticket-definitions-v-2.universal-DqIhKaqR.d.mts} +416 -760
  10. package/build/{es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.d.ts → internal/events-v3-ticket-definition-ticket-definitions-v-2.universal-DqIhKaqR.d.ts} +416 -760
  11. package/build/internal/index.d.mts +184 -0
  12. package/build/internal/index.d.ts +184 -0
  13. package/build/internal/index.js +1894 -0
  14. package/build/internal/index.js.map +1 -0
  15. package/build/internal/index.mjs +1795 -0
  16. package/build/internal/index.mjs.map +1 -0
  17. package/build/internal/meta.d.mts +782 -0
  18. package/build/internal/meta.d.ts +782 -0
  19. package/build/internal/meta.js +767 -0
  20. package/build/internal/meta.js.map +1 -0
  21. package/build/internal/meta.mjs +730 -0
  22. package/build/internal/meta.mjs.map +1 -0
  23. package/build/meta.d.mts +782 -0
  24. package/build/meta.d.ts +782 -0
  25. package/build/meta.js +767 -0
  26. package/build/meta.js.map +1 -0
  27. package/build/meta.mjs +730 -0
  28. package/build/meta.mjs.map +1 -0
  29. package/package.json +12 -11
  30. package/build/cjs/index.d.ts +0 -1
  31. package/build/cjs/index.js +0 -18
  32. package/build/cjs/index.js.map +0 -1
  33. package/build/cjs/index.typings.d.ts +0 -1
  34. package/build/cjs/index.typings.js +0 -18
  35. package/build/cjs/index.typings.js.map +0 -1
  36. package/build/cjs/meta.d.ts +0 -1
  37. package/build/cjs/meta.js +0 -18
  38. package/build/cjs/meta.js.map +0 -1
  39. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.context.d.ts +0 -46
  40. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js +0 -109
  41. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js.map +0 -1
  42. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.d.ts +0 -79
  43. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js +0 -585
  44. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js.map +0 -1
  45. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.d.ts +0 -29
  46. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js +0 -237
  47. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js.map +0 -1
  48. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.d.ts +0 -148
  49. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js +0 -306
  50. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js.map +0 -1
  51. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.d.ts +0 -4495
  52. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js +0 -710
  53. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js.map +0 -1
  54. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js +0 -1346
  55. package/build/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js.map +0 -1
  56. package/build/es/index.d.ts +0 -1
  57. package/build/es/index.js +0 -2
  58. package/build/es/index.js.map +0 -1
  59. package/build/es/index.typings.d.ts +0 -1
  60. package/build/es/index.typings.js +0 -2
  61. package/build/es/index.typings.js.map +0 -1
  62. package/build/es/meta.d.ts +0 -1
  63. package/build/es/meta.js +0 -2
  64. package/build/es/meta.js.map +0 -1
  65. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.d.ts +0 -46
  66. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js +0 -46
  67. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js.map +0 -1
  68. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.d.ts +0 -79
  69. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js +0 -571
  70. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js.map +0 -1
  71. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.d.ts +0 -29
  72. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js +0 -200
  73. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js.map +0 -1
  74. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.d.ts +0 -148
  75. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js +0 -232
  76. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js.map +0 -1
  77. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.d.ts +0 -4495
  78. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js +0 -706
  79. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js.map +0 -1
  80. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js +0 -1308
  81. package/build/es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js.map +0 -1
  82. package/build/internal/cjs/index.d.ts +0 -1
  83. package/build/internal/cjs/index.js +0 -18
  84. package/build/internal/cjs/index.js.map +0 -1
  85. package/build/internal/cjs/index.typings.d.ts +0 -1
  86. package/build/internal/cjs/index.typings.js +0 -18
  87. package/build/internal/cjs/index.typings.js.map +0 -1
  88. package/build/internal/cjs/meta.d.ts +0 -1
  89. package/build/internal/cjs/meta.js +0 -18
  90. package/build/internal/cjs/meta.js.map +0 -1
  91. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.context.d.ts +0 -46
  92. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js +0 -109
  93. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js.map +0 -1
  94. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.d.ts +0 -79
  95. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js +0 -585
  96. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js.map +0 -1
  97. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.d.ts +0 -29
  98. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js +0 -237
  99. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js.map +0 -1
  100. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.d.ts +0 -148
  101. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js +0 -306
  102. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js.map +0 -1
  103. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.d.ts +0 -4495
  104. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js +0 -710
  105. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js.map +0 -1
  106. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js +0 -1346
  107. package/build/internal/cjs/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js.map +0 -1
  108. package/build/internal/es/index.d.ts +0 -1
  109. package/build/internal/es/index.js +0 -2
  110. package/build/internal/es/index.js.map +0 -1
  111. package/build/internal/es/index.typings.d.ts +0 -1
  112. package/build/internal/es/index.typings.js +0 -2
  113. package/build/internal/es/index.typings.js.map +0 -1
  114. package/build/internal/es/meta.d.ts +0 -1
  115. package/build/internal/es/meta.js +0 -2
  116. package/build/internal/es/meta.js.map +0 -1
  117. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.d.ts +0 -46
  118. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js +0 -46
  119. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.context.js.map +0 -1
  120. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.d.ts +0 -79
  121. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js +0 -571
  122. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.http.js.map +0 -1
  123. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.d.ts +0 -29
  124. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js +0 -200
  125. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.meta.js.map +0 -1
  126. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.d.ts +0 -148
  127. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js +0 -232
  128. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.public.js.map +0 -1
  129. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.d.ts +0 -4495
  130. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js +0 -706
  131. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.types.js.map +0 -1
  132. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js +0 -1308
  133. package/build/internal/es/src/events-v3-ticket-definition-ticket-definitions-v-2.universal.js.map +0 -1
@@ -1,1308 +0,0 @@
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 with multiple lines. */
218
- InputControlType["TEXTAREA"] = "TEXTAREA";
219
- /** Single-choice field with predefined values. */
220
- InputControlType["DROPDOWN"] = "DROPDOWN";
221
- /** Single-choice field with predefined values. */
222
- InputControlType["RADIO"] = "RADIO";
223
- /** Multiple-choice field with predefined values. */
224
- InputControlType["CHECKBOX"] = "CHECKBOX";
225
- /** Fields for entering first and last names. */
226
- InputControlType["NAME"] = "NAME";
227
- /** Fields for additional guests and their respective names. */
228
- InputControlType["GUEST_CONTROL"] = "GUEST_CONTROL";
229
- /** Single-line address field. */
230
- InputControlType["ADDRESS_SHORT"] = "ADDRESS_SHORT";
231
- /** Full address field with multiple lines. */
232
- InputControlType["ADDRESS_FULL"] = "ADDRESS_FULL";
233
- /** Fields for entering year, month, and day. */
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["STRIKETHROUGH"] = "STRIKETHROUGH";
522
- })(DecorationType || (DecorationType = {}));
523
- export var FontType;
524
- (function (FontType) {
525
- FontType["PX"] = "PX";
526
- FontType["EM"] = "EM";
527
- })(FontType || (FontType = {}));
528
- export var AppType;
529
- (function (AppType) {
530
- AppType["PRODUCT"] = "PRODUCT";
531
- AppType["EVENT"] = "EVENT";
532
- AppType["BOOKING"] = "BOOKING";
533
- })(AppType || (AppType = {}));
534
- export var InitialExpandedItems;
535
- (function (InitialExpandedItems) {
536
- /** First item will be expended initally */
537
- InitialExpandedItems["FIRST"] = "FIRST";
538
- /** All items will expended initally */
539
- InitialExpandedItems["ALL"] = "ALL";
540
- /** All items collapsed initally */
541
- InitialExpandedItems["NONE"] = "NONE";
542
- })(InitialExpandedItems || (InitialExpandedItems = {}));
543
- export var Direction;
544
- (function (Direction) {
545
- /** Left-to-right */
546
- Direction["LTR"] = "LTR";
547
- /** Right-to-left */
548
- Direction["RTL"] = "RTL";
549
- })(Direction || (Direction = {}));
550
- export var VerticalAlignment;
551
- (function (VerticalAlignment) {
552
- /** Top alignment */
553
- VerticalAlignment["TOP"] = "TOP";
554
- /** Middle alignment */
555
- VerticalAlignment["MIDDLE"] = "MIDDLE";
556
- /** Bottom alignment */
557
- VerticalAlignment["BOTTOM"] = "BOTTOM";
558
- })(VerticalAlignment || (VerticalAlignment = {}));
559
- /**
560
- * `NullValue` is a singleton enumeration to represent the null value for the
561
- * `Value` type union.
562
- *
563
- * The JSON representation for `NullValue` is JSON `null`.
564
- */
565
- export var NullValue;
566
- (function (NullValue) {
567
- /** Null value. */
568
- NullValue["NULL_VALUE"] = "NULL_VALUE";
569
- })(NullValue || (NullValue = {}));
570
- export var Type;
571
- (function (Type) {
572
- /** Unknown badge type. */
573
- Type["UNKNOWN_BADGE_TYPE"] = "UNKNOWN_BADGE_TYPE";
574
- /** 1st priority badge type. */
575
- Type["FIRST_PRIORITY"] = "FIRST_PRIORITY";
576
- /** 2nd priority badge type. */
577
- Type["SECOND_PRIORITY"] = "SECOND_PRIORITY";
578
- /** 3rd priority badge type. */
579
- Type["THIRD_PRIORITY"] = "THIRD_PRIORITY";
580
- })(Type || (Type = {}));
581
- export var State;
582
- (function (State) {
583
- State["UNKNOWN"] = "UNKNOWN";
584
- State["ENABLED"] = "ENABLED";
585
- State["DISABLED"] = "DISABLED";
586
- State["PENDING"] = "PENDING";
587
- State["DEMO"] = "DEMO";
588
- })(State || (State = {}));
589
- export var SiteCreatedContext;
590
- (function (SiteCreatedContext) {
591
- /** A valid option, we don't expose all reasons why site might be created. */
592
- SiteCreatedContext["OTHER"] = "OTHER";
593
- /** A meta site was created from template. */
594
- SiteCreatedContext["FROM_TEMPLATE"] = "FROM_TEMPLATE";
595
- /** A meta site was created by copying of the transfferred meta site. */
596
- SiteCreatedContext["DUPLICATE_BY_SITE_TRANSFER"] = "DUPLICATE_BY_SITE_TRANSFER";
597
- /** A copy of existing meta site. */
598
- SiteCreatedContext["DUPLICATE"] = "DUPLICATE";
599
- /** A meta site was created as a transfferred site (copy of the original), old flow, should die soon. */
600
- SiteCreatedContext["OLD_SITE_TRANSFER"] = "OLD_SITE_TRANSFER";
601
- /** deprecated A meta site was created for Flash editor. */
602
- SiteCreatedContext["FLASH"] = "FLASH";
603
- })(SiteCreatedContext || (SiteCreatedContext = {}));
604
- export var Namespace;
605
- (function (Namespace) {
606
- Namespace["UNKNOWN_NAMESPACE"] = "UNKNOWN_NAMESPACE";
607
- /** Default namespace for UGC sites. MetaSites with this namespace will be shown in a user's site list by default. */
608
- Namespace["WIX"] = "WIX";
609
- /** 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. */
610
- Namespace["SHOUT_OUT"] = "SHOUT_OUT";
611
- /** 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. */
612
- Namespace["ALBUMS"] = "ALBUMS";
613
- /** 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. */
614
- Namespace["WIX_STORES_TEST_DRIVE"] = "WIX_STORES_TEST_DRIVE";
615
- /** Hotels standalone (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
616
- Namespace["HOTELS"] = "HOTELS";
617
- /** 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. */
618
- Namespace["CLUBS"] = "CLUBS";
619
- /** A partially created ADI website. MetaSites with this namespace will *not* be shown in a user's site list by default. */
620
- Namespace["ONBOARDING_DRAFT"] = "ONBOARDING_DRAFT";
621
- /** AppBuilder for AppStudio / shmite (c). MetaSites with this namespace will *not* be shown in a user's site list by default. */
622
- Namespace["DEV_SITE"] = "DEV_SITE";
623
- /** 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. */
624
- Namespace["LOGOS"] = "LOGOS";
625
- /** 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. */
626
- Namespace["VIDEO_MAKER"] = "VIDEO_MAKER";
627
- /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
628
- Namespace["PARTNER_DASHBOARD"] = "PARTNER_DASHBOARD";
629
- /** MetaSites with this namespace will *not* be shown in a user's site list by default. */
630
- Namespace["DEV_CENTER_COMPANY"] = "DEV_CENTER_COMPANY";
631
- /**
632
- * A draft created by HTML editor on open. Upon "first save" it will be moved to be of WIX domain.
633
- *
634
- * Meta site with this namespace will *not* be shown in a user's site list by default.
635
- */
636
- Namespace["HTML_DRAFT"] = "HTML_DRAFT";
637
- /**
638
- * the user-journey for Fitness users who want to start from managing their business instead of designing their website.
639
- * Will be accessible from Site List and will not have a website app.
640
- * Once the user attaches a site, the site will become a regular wixsite.
641
- */
642
- Namespace["SITELESS_BUSINESS"] = "SITELESS_BUSINESS";
643
- /** Belongs to "strategic products" company. Supports new product in the creator's economy space. */
644
- Namespace["CREATOR_ECONOMY"] = "CREATOR_ECONOMY";
645
- /** It is to be used in the Business First efforts. */
646
- Namespace["DASHBOARD_FIRST"] = "DASHBOARD_FIRST";
647
- /** Bookings business flow with no site. */
648
- Namespace["ANYWHERE"] = "ANYWHERE";
649
- /** Namespace for Headless Backoffice with no editor */
650
- Namespace["HEADLESS"] = "HEADLESS";
651
- /**
652
- * Namespace for master site that will exist in parent account that will be referenced by subaccounts
653
- * The site will be used for account level CSM feature for enterprise
654
- */
655
- Namespace["ACCOUNT_MASTER_CMS"] = "ACCOUNT_MASTER_CMS";
656
- /** Rise.ai Siteless account management for Gift Cards and Store Credit. */
657
- Namespace["RISE"] = "RISE";
658
- /**
659
- * As part of the branded app new funnel, users now can create a meta site that will be branded app first.
660
- * There's a blank site behind the scene but it's blank).
661
- * The Mobile company will be the owner of this namespace.
662
- */
663
- Namespace["BRANDED_FIRST"] = "BRANDED_FIRST";
664
- /** Nownia.com Siteless account management for Ai Scheduling Assistant. */
665
- Namespace["NOWNIA"] = "NOWNIA";
666
- /**
667
- * UGC Templates are templates that are created by users for personal use and to sale to other users.
668
- * The Partners company owns this namespace.
669
- */
670
- Namespace["UGC_TEMPLATE"] = "UGC_TEMPLATE";
671
- /** Codux Headless Sites */
672
- Namespace["CODUX"] = "CODUX";
673
- /** Bobb - AI Design Creator. */
674
- Namespace["MEDIA_DESIGN_CREATOR"] = "MEDIA_DESIGN_CREATOR";
675
- /**
676
- * Shared Blog Site is a unique single site across Enterprise account,
677
- * This site will hold all Blog posts related to the Marketing product.
678
- */
679
- Namespace["SHARED_BLOG_ENTERPRISE"] = "SHARED_BLOG_ENTERPRISE";
680
- /** Standalone forms (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
681
- Namespace["STANDALONE_FORMS"] = "STANDALONE_FORMS";
682
- /** Standalone events (siteless). MetaSites with this namespace will *not* be shown in a user's site list by default. */
683
- Namespace["STANDALONE_EVENTS"] = "STANDALONE_EVENTS";
684
- /** MIMIR - Siteless account for MIMIR Ai Job runner. */
685
- Namespace["MIMIR"] = "MIMIR";
686
- })(Namespace || (Namespace = {}));
687
- export var DeleteStatus;
688
- (function (DeleteStatus) {
689
- DeleteStatus["UNKNOWN"] = "UNKNOWN";
690
- DeleteStatus["TRASH"] = "TRASH";
691
- DeleteStatus["DELETED"] = "DELETED";
692
- DeleteStatus["PENDING_PURGE"] = "PENDING_PURGE";
693
- DeleteStatus["PURGED_EXTERNALLY"] = "PURGED_EXTERNALLY";
694
- })(DeleteStatus || (DeleteStatus = {}));
695
- export var WebhookIdentityType;
696
- (function (WebhookIdentityType) {
697
- WebhookIdentityType["UNKNOWN"] = "UNKNOWN";
698
- WebhookIdentityType["ANONYMOUS_VISITOR"] = "ANONYMOUS_VISITOR";
699
- WebhookIdentityType["MEMBER"] = "MEMBER";
700
- WebhookIdentityType["WIX_USER"] = "WIX_USER";
701
- WebhookIdentityType["APP"] = "APP";
702
- })(WebhookIdentityType || (WebhookIdentityType = {}));
703
- export var ReservationStatus;
704
- (function (ReservationStatus) {
705
- /** The Reservation is pending confirmation. It will expire after a certain amount of time. */
706
- ReservationStatus["RESERVATION_PENDING"] = "RESERVATION_PENDING";
707
- /** The reservation is confirmed and will not expire. */
708
- ReservationStatus["RESERVATION_CONFIRMED"] = "RESERVATION_CONFIRMED";
709
- /** The reservation is canceled because it's not paid. */
710
- ReservationStatus["RESERVATION_CANCELED"] = "RESERVATION_CANCELED";
711
- /** The reservation is canceled manually by the buyer. */
712
- ReservationStatus["RESERVATION_CANCELED_MANUALLY"] = "RESERVATION_CANCELED_MANUALLY";
713
- /** The reservation has expired. */
714
- ReservationStatus["RESERVATION_EXPIRED"] = "RESERVATION_EXPIRED";
715
- })(ReservationStatus || (ReservationStatus = {}));
716
- /**
717
- * > **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).
718
- *
719
- *
720
- * Creates a ticket definition.
721
- *
722
- *
723
- * It is allowed to create up to 100 definitions per event.
724
- * @param ticketDefinition - Ticket definition info.
725
- * @public
726
- * @requiredField ticketDefinition
727
- * @requiredField ticketDefinition.eventId
728
- * @requiredField ticketDefinition.feeType
729
- * @requiredField ticketDefinition.name
730
- * @requiredField ticketDefinition.pricingMethod
731
- * @requiredField ticketDefinition.pricingMethod.price
732
- * @param options - Optional fields.
733
- * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS
734
- * @permissionScope Manage Events - all permissions
735
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
736
- * @permissionScope Manage Events
737
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
738
- * @permissionScope Manage Ticket Definitions
739
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
740
- * @applicableIdentity APP
741
- * @returns Created ticket definition.
742
- * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.CreateTicketDefinition
743
- */
744
- export async function createTicketDefinition(ticketDefinition, options) {
745
- // @ts-ignore
746
- const { httpClient, sideEffects } = arguments[2];
747
- const payload = transformPaths(renameKeysFromSDKRequestToRESTRequest({
748
- ticketDefinition: ticketDefinition,
749
- fields: options?.fields,
750
- }), [
751
- {
752
- transformFn: transformSDKPageURLToRESTPageURL,
753
- paths: [{ path: 'ticketDefinition.eventDetails.eventPageUrl' }],
754
- },
755
- {
756
- transformFn: transformSDKAddressToRESTAddress,
757
- paths: [{ path: 'ticketDefinition.eventDetails.location.address' }],
758
- },
759
- ]);
760
- const reqOpts = ambassadorWixEventsV3TicketDefinition.createTicketDefinition(payload);
761
- sideEffects?.onSiteCall?.();
762
- try {
763
- const result = await httpClient.request(reqOpts);
764
- sideEffects?.onSuccess?.(result);
765
- return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
766
- {
767
- transformFn: transformRESTPageURLToSDKPageURL,
768
- paths: [{ path: 'ticketDefinition.eventDetails.eventPageUrl' }],
769
- },
770
- {
771
- transformFn: transformRESTAddressToSDKAddress,
772
- paths: [{ path: 'ticketDefinition.eventDetails.location.address' }],
773
- },
774
- ]))?.ticketDefinition;
775
- }
776
- catch (err) {
777
- const transformedError = sdkTransformError(err, {
778
- spreadPathsToArguments: {},
779
- explicitPathsToArguments: {
780
- ticketDefinition: '$[0]',
781
- fields: '$[1].fields',
782
- },
783
- singleArgumentUnchanged: false,
784
- }, ['ticketDefinition', 'options']);
785
- sideEffects?.onError?.(err);
786
- throw transformedError;
787
- }
788
- }
789
- /**
790
- * > **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).
791
- *
792
- * Updates a ticket definition.
793
- *
794
- *
795
- * 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.
796
- * @param _id - Ticket definition ID.
797
- * @public
798
- * @requiredField _id
799
- * @requiredField ticketDefinition
800
- * @requiredField ticketDefinition.revision
801
- * @param options - Optional fields.
802
- * @param ticketDefinition - Ticket definition to update.
803
- * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS
804
- * @permissionScope Manage Events - all permissions
805
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
806
- * @permissionScope Manage Events
807
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
808
- * @permissionScope Manage Ticket Definitions
809
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
810
- * @applicableIdentity APP
811
- * @returns The updated ticket definition.
812
- * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.UpdateTicketDefinition
813
- */
814
- export async function updateTicketDefinition(_id, ticketDefinition, options) {
815
- // @ts-ignore
816
- const { httpClient, sideEffects } = arguments[3];
817
- const payload = transformPaths(renameKeysFromSDKRequestToRESTRequest({
818
- ticketDefinition: { ...ticketDefinition, id: _id },
819
- fields: options?.fields,
820
- }), [
821
- {
822
- transformFn: transformSDKPageURLToRESTPageURL,
823
- paths: [{ path: 'ticketDefinition.eventDetails.eventPageUrl' }],
824
- },
825
- {
826
- transformFn: transformSDKAddressToRESTAddress,
827
- paths: [{ path: 'ticketDefinition.eventDetails.location.address' }],
828
- },
829
- ]);
830
- const reqOpts = ambassadorWixEventsV3TicketDefinition.updateTicketDefinition(payload);
831
- sideEffects?.onSiteCall?.();
832
- try {
833
- const result = await httpClient.request(reqOpts);
834
- sideEffects?.onSuccess?.(result);
835
- return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
836
- {
837
- transformFn: transformRESTPageURLToSDKPageURL,
838
- paths: [{ path: 'ticketDefinition.eventDetails.eventPageUrl' }],
839
- },
840
- {
841
- transformFn: transformRESTAddressToSDKAddress,
842
- paths: [{ path: 'ticketDefinition.eventDetails.location.address' }],
843
- },
844
- ]))?.ticketDefinition;
845
- }
846
- catch (err) {
847
- const transformedError = sdkTransformError(err, {
848
- spreadPathsToArguments: { ticketDefinition: '$[1]' },
849
- explicitPathsToArguments: {
850
- 'ticketDefinition.id': '$[0]',
851
- fields: '$[2].fields',
852
- },
853
- singleArgumentUnchanged: false,
854
- }, ['_id', 'ticketDefinition', 'options']);
855
- sideEffects?.onError?.(err);
856
- throw transformedError;
857
- }
858
- }
859
- /**
860
- * > **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).
861
- *
862
- * Retrieves a ticket definition by ID.
863
- * @param ticketDefinitionId - Ticket definition ID.
864
- * @public
865
- * @requiredField ticketDefinitionId
866
- * @param options - Optional fields.
867
- * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS
868
- * @permissionScope Manage Events - all permissions
869
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
870
- * @permissionScope Manage Events
871
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
872
- * @permissionScope Manage Orders
873
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
874
- * @permissionScope Manage Ticket Definitions
875
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
876
- * @applicableIdentity APP
877
- * @returns The requested ticket definition.
878
- * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.GetTicketDefinition
879
- */
880
- export async function getTicketDefinition(ticketDefinitionId, options) {
881
- // @ts-ignore
882
- const { httpClient, sideEffects } = arguments[2];
883
- const payload = renameKeysFromSDKRequestToRESTRequest({
884
- ticketDefinitionId: ticketDefinitionId,
885
- fields: options?.fields,
886
- });
887
- const reqOpts = ambassadorWixEventsV3TicketDefinition.getTicketDefinition(payload);
888
- sideEffects?.onSiteCall?.();
889
- try {
890
- const result = await httpClient.request(reqOpts);
891
- sideEffects?.onSuccess?.(result);
892
- return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
893
- {
894
- transformFn: transformRESTPageURLToSDKPageURL,
895
- paths: [{ path: 'ticketDefinition.eventDetails.eventPageUrl' }],
896
- },
897
- {
898
- transformFn: transformRESTAddressToSDKAddress,
899
- paths: [{ path: 'ticketDefinition.eventDetails.location.address' }],
900
- },
901
- ]))?.ticketDefinition;
902
- }
903
- catch (err) {
904
- const transformedError = sdkTransformError(err, {
905
- spreadPathsToArguments: {},
906
- explicitPathsToArguments: {
907
- ticketDefinitionId: '$[0]',
908
- fields: '$[1].fields',
909
- },
910
- singleArgumentUnchanged: false,
911
- }, ['ticketDefinitionId', 'options']);
912
- sideEffects?.onError?.(err);
913
- throw transformedError;
914
- }
915
- }
916
- /**
917
- * > **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).
918
- *
919
- * Permanently deletes a ticket definition.
920
- * @param ticketDefinitionId - ID of the ticket definition to delete.
921
- * @public
922
- * @requiredField ticketDefinitionId
923
- * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS
924
- * @permissionScope Manage Events - all permissions
925
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
926
- * @permissionScope Manage Events
927
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
928
- * @permissionScope Manage Ticket Definitions
929
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
930
- * @applicableIdentity APP
931
- * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.DeleteTicketDefinition
932
- */
933
- export async function deleteTicketDefinition(ticketDefinitionId) {
934
- // @ts-ignore
935
- const { httpClient, sideEffects } = arguments[1];
936
- const payload = renameKeysFromSDKRequestToRESTRequest({
937
- ticketDefinitionId: ticketDefinitionId,
938
- });
939
- const reqOpts = ambassadorWixEventsV3TicketDefinition.deleteTicketDefinition(payload);
940
- sideEffects?.onSiteCall?.();
941
- try {
942
- const result = await httpClient.request(reqOpts);
943
- sideEffects?.onSuccess?.(result);
944
- }
945
- catch (err) {
946
- const transformedError = sdkTransformError(err, {
947
- spreadPathsToArguments: {},
948
- explicitPathsToArguments: { ticketDefinitionId: '$[0]' },
949
- singleArgumentUnchanged: false,
950
- }, ['ticketDefinitionId']);
951
- sideEffects?.onError?.(err);
952
- throw transformedError;
953
- }
954
- }
955
- /**
956
- * Changes ticket definitions order in an event dashboard and the list of available tickets in the ticket picker.
957
- * > **Note:** It is possible to use both `beforeTicketDefinitionId` and `afterTicketDefinitionId` at the same time but only the last one defined will be executed.
958
- * @param eventId - Event ID.
959
- * @public
960
- * @requiredField eventId
961
- * @requiredField options.ticketDefinitionId
962
- * @param options - Optional fields.
963
- * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS
964
- * @permissionScope Manage Events - all permissions
965
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
966
- * @permissionScope Manage Events
967
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
968
- * @permissionScope Manage Ticket Definitions
969
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
970
- * @applicableIdentity APP
971
- * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.ReorderTicketDefinitions
972
- */
973
- export async function reorderTicketDefinitions(eventId, options) {
974
- // @ts-ignore
975
- const { httpClient, sideEffects } = arguments[2];
976
- const payload = renameKeysFromSDKRequestToRESTRequest({
977
- eventId: eventId,
978
- ticketDefinitionId: options?.ticketDefinitionId,
979
- beforeDefinitionId: options?.beforeDefinitionId,
980
- afterDefinitionId: options?.afterDefinitionId,
981
- });
982
- const reqOpts = ambassadorWixEventsV3TicketDefinition.reorderTicketDefinitions(payload);
983
- sideEffects?.onSiteCall?.();
984
- try {
985
- const result = await httpClient.request(reqOpts);
986
- sideEffects?.onSuccess?.(result);
987
- }
988
- catch (err) {
989
- const transformedError = sdkTransformError(err, {
990
- spreadPathsToArguments: {},
991
- explicitPathsToArguments: {
992
- eventId: '$[0]',
993
- ticketDefinitionId: '$[1].ticketDefinitionId',
994
- beforeDefinitionId: '$[1].beforeDefinitionId',
995
- afterDefinitionId: '$[1].afterDefinitionId',
996
- },
997
- singleArgumentUnchanged: false,
998
- }, ['eventId', 'options']);
999
- sideEffects?.onError?.(err);
1000
- throw transformedError;
1001
- }
1002
- }
1003
- /**
1004
- * > **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).
1005
- *
1006
- * Retrieves a list of ticket definitions, given the provided paging, filtering, and sorting.
1007
- * Query Ticket Definitions runs with these defaults, which you can override:
1008
- * - `createdDate` is sorted in `ASC` order
1009
- * - `paging.limit` is `100`
1010
- * - `paging.offset` is `0`
1011
- * @public
1012
- * @param options - Optional fields.
1013
- * @permissionScope Manage Events - all permissions
1014
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
1015
- * @permissionScope Manage Events
1016
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1017
- * @permissionScope Manage Orders
1018
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
1019
- * @permissionScope Manage Ticket Definitions
1020
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
1021
- * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS
1022
- * @applicableIdentity APP
1023
- * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.QueryTicketDefinitions
1024
- */
1025
- export function queryTicketDefinitions(options) {
1026
- // @ts-ignore
1027
- const { httpClient, sideEffects } = arguments[1];
1028
- return queryBuilder({
1029
- func: async (payload) => {
1030
- const reqOpts = ambassadorWixEventsV3TicketDefinition.queryTicketDefinitions({
1031
- ...payload,
1032
- ...(options ?? {}),
1033
- });
1034
- sideEffects?.onSiteCall?.();
1035
- try {
1036
- const result = await httpClient.request(reqOpts);
1037
- sideEffects?.onSuccess?.(result);
1038
- return result;
1039
- }
1040
- catch (err) {
1041
- sideEffects?.onError?.(err);
1042
- throw err;
1043
- }
1044
- },
1045
- requestTransformer: (query) => {
1046
- const args = [query, options];
1047
- return renameKeysFromSDKRequestToRESTRequest({
1048
- ...args?.[1],
1049
- query: args?.[0],
1050
- });
1051
- },
1052
- responseTransformer: ({ data, }) => {
1053
- const transformedData = renameKeysFromRESTResponseToSDKResponse(transformPaths(data, [
1054
- {
1055
- transformFn: transformRESTPageURLToSDKPageURL,
1056
- paths: [{ path: 'ticketDefinitions.eventDetails.eventPageUrl' }],
1057
- },
1058
- {
1059
- transformFn: transformRESTAddressToSDKAddress,
1060
- paths: [
1061
- { path: 'ticketDefinitions.eventDetails.location.address' },
1062
- ],
1063
- },
1064
- ]));
1065
- return {
1066
- items: transformedData?.ticketDefinitions,
1067
- pagingMetadata: transformedData?.metadata,
1068
- };
1069
- },
1070
- errorTransformer: (err) => {
1071
- const transformedError = sdkTransformError(err, {
1072
- spreadPathsToArguments: {},
1073
- explicitPathsToArguments: { query: '$[0]' },
1074
- singleArgumentUnchanged: false,
1075
- });
1076
- throw transformedError;
1077
- },
1078
- pagingMethod: 'CURSOR',
1079
- transformationPaths: {},
1080
- });
1081
- }
1082
- /**
1083
- * Retrieves a list of available ticket definitions, given the provided paging, filtering, and sorting.
1084
- *
1085
- * This endpoint retrieves ticket definitions that aren't in the `hidden` state. The available ticket definitions can be retrieved by site visitors.
1086
- *
1087
- * > **Note:** You need the `WIX_EVENTS.READ_TICKET_DEFINITIONS` permission to get the `salesDetails` field values.
1088
- *
1089
- * Query Available Ticket Definitions runs with these defaults, which you can override:
1090
- * - `createdDate` is sorted in `ASC` order
1091
- * - `paging.limit` is `100`
1092
- * - `paging.offset` is `0`
1093
- *
1094
- * 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).
1095
- * To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
1096
- * @param query - Query options. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details.
1097
- * @public
1098
- * @requiredField query
1099
- * @param options - Optional fields.
1100
- * @permissionId WIX_EVENTS.READ_AVAILABLE_TICKET_DEFINITIONS
1101
- * @permissionScope Manage Events - all permissions
1102
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
1103
- * @permissionScope Manage Events
1104
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1105
- * @permissionScope Manage Orders
1106
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
1107
- * @applicableIdentity APP
1108
- * @applicableIdentity VISITOR
1109
- * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.QueryAvailableTicketDefinitions
1110
- */
1111
- export async function queryAvailableTicketDefinitions(query, options) {
1112
- // @ts-ignore
1113
- const { httpClient, sideEffects } = arguments[2];
1114
- const payload = renameKeysFromSDKRequestToRESTRequest({
1115
- query: query,
1116
- fields: options?.fields,
1117
- });
1118
- const reqOpts = ambassadorWixEventsV3TicketDefinition.queryAvailableTicketDefinitions(payload);
1119
- sideEffects?.onSiteCall?.();
1120
- try {
1121
- const result = await httpClient.request(reqOpts);
1122
- sideEffects?.onSuccess?.(result);
1123
- return renameKeysFromRESTResponseToSDKResponse(transformPaths(result.data, [
1124
- {
1125
- transformFn: transformRESTPageURLToSDKPageURL,
1126
- paths: [{ path: 'ticketDefinitions.eventDetails.eventPageUrl' }],
1127
- },
1128
- {
1129
- transformFn: transformRESTAddressToSDKAddress,
1130
- paths: [{ path: 'ticketDefinitions.eventDetails.location.address' }],
1131
- },
1132
- ]));
1133
- }
1134
- catch (err) {
1135
- const transformedError = sdkTransformError(err, {
1136
- spreadPathsToArguments: {},
1137
- explicitPathsToArguments: { query: '$[0]', fields: '$[1].fields' },
1138
- singleArgumentUnchanged: false,
1139
- }, ['query', 'options']);
1140
- sideEffects?.onError?.(err);
1141
- throw transformedError;
1142
- }
1143
- }
1144
- /**
1145
- * Counts ticket definitions by the `saleStatus` field, including those with the `hidden` status.
1146
- * @public
1147
- * @param options - Optional fields.
1148
- * @permissionId WIX_EVENTS.READ_TICKET_DEFINITIONS
1149
- * @permissionScope Manage Events - all permissions
1150
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
1151
- * @permissionScope Manage Events
1152
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1153
- * @permissionScope Manage Orders
1154
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
1155
- * @permissionScope Manage Ticket Definitions
1156
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
1157
- * @applicableIdentity APP
1158
- * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.CountTicketDefinitions
1159
- */
1160
- export async function countTicketDefinitions(options) {
1161
- // @ts-ignore
1162
- const { httpClient, sideEffects } = arguments[1];
1163
- const payload = renameKeysFromSDKRequestToRESTRequest({
1164
- filter: options?.filter,
1165
- facet: options?.facet,
1166
- });
1167
- const reqOpts = ambassadorWixEventsV3TicketDefinition.countTicketDefinitions(payload);
1168
- sideEffects?.onSiteCall?.();
1169
- try {
1170
- const result = await httpClient.request(reqOpts);
1171
- sideEffects?.onSuccess?.(result);
1172
- return renameKeysFromRESTResponseToSDKResponse(result.data);
1173
- }
1174
- catch (err) {
1175
- const transformedError = sdkTransformError(err, {
1176
- spreadPathsToArguments: {},
1177
- explicitPathsToArguments: {
1178
- filter: '$[0].filter',
1179
- facet: '$[0].facet',
1180
- },
1181
- singleArgumentUnchanged: false,
1182
- }, ['options']);
1183
- sideEffects?.onError?.(err);
1184
- throw transformedError;
1185
- }
1186
- }
1187
- /**
1188
- * Counts ticket definitions by the `saleStatus`, excluding those with the `hidden` status.
1189
- * @public
1190
- * @param options - Optional fields.
1191
- * @permissionId WIX_EVENTS.READ_AVAILABLE_TICKET_DEFINITIONS
1192
- * @permissionScope Manage Events - all permissions
1193
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
1194
- * @permissionScope Manage Events
1195
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1196
- * @permissionScope Manage Orders
1197
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-ORDERS
1198
- * @applicableIdentity APP
1199
- * @applicableIdentity VISITOR
1200
- * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.CountAvailableTicketDefinitions
1201
- */
1202
- export async function countAvailableTicketDefinitions(options) {
1203
- // @ts-ignore
1204
- const { httpClient, sideEffects } = arguments[1];
1205
- const payload = renameKeysFromSDKRequestToRESTRequest({
1206
- filter: options?.filter,
1207
- });
1208
- const reqOpts = ambassadorWixEventsV3TicketDefinition.countAvailableTicketDefinitions(payload);
1209
- sideEffects?.onSiteCall?.();
1210
- try {
1211
- const result = await httpClient.request(reqOpts);
1212
- sideEffects?.onSuccess?.(result);
1213
- return renameKeysFromRESTResponseToSDKResponse(result.data);
1214
- }
1215
- catch (err) {
1216
- const transformedError = sdkTransformError(err, {
1217
- spreadPathsToArguments: {},
1218
- explicitPathsToArguments: { filter: '$[0].filter' },
1219
- singleArgumentUnchanged: false,
1220
- }, ['options']);
1221
- sideEffects?.onError?.(err);
1222
- throw transformedError;
1223
- }
1224
- }
1225
- /**
1226
- * Deletes multiple ticket definitions.
1227
- *
1228
- * All ticket definitions that meet the specified `filter` criteria are deleted.
1229
- * @param filter - Filter object in the following format: <br/> `"filter" : { "fieldName1": "value1" }`. <br/> <br/> **Example:** <br/> `"filter" : { "eventId": "3d3d5c04-ece0-45a8-85f0-11a58edaa192" }`
1230
- * @public
1231
- * @requiredField filter
1232
- * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS
1233
- * @permissionScope Manage Events - all permissions
1234
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
1235
- * @permissionScope Manage Events
1236
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1237
- * @permissionScope Manage Ticket Definitions
1238
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
1239
- * @applicableIdentity APP
1240
- * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.BulkDeleteTicketDefinitionsByFilter
1241
- */
1242
- export async function bulkDeleteTicketDefinitionsByFilter(filter) {
1243
- // @ts-ignore
1244
- const { httpClient, sideEffects } = arguments[1];
1245
- const payload = renameKeysFromSDKRequestToRESTRequest({ filter: filter });
1246
- const reqOpts = ambassadorWixEventsV3TicketDefinition.bulkDeleteTicketDefinitionsByFilter(payload);
1247
- sideEffects?.onSiteCall?.();
1248
- try {
1249
- const result = await httpClient.request(reqOpts);
1250
- sideEffects?.onSuccess?.(result);
1251
- }
1252
- catch (err) {
1253
- const transformedError = sdkTransformError(err, {
1254
- spreadPathsToArguments: {},
1255
- explicitPathsToArguments: { filter: '$[0]' },
1256
- singleArgumentUnchanged: false,
1257
- }, ['filter']);
1258
- sideEffects?.onError?.(err);
1259
- throw transformedError;
1260
- }
1261
- }
1262
- /**
1263
- * > **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).
1264
- *
1265
- * Changes ticket price currency per event.
1266
- * @param eventId - Event ID.
1267
- * @public
1268
- * @requiredField eventId
1269
- * @requiredField options
1270
- * @requiredField options.currency
1271
- * @param options - Optional fields.
1272
- * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS
1273
- * @permissionScope Manage Events - all permissions
1274
- * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
1275
- * @permissionScope Manage Events
1276
- * @permissionScopeId SCOPE.EVENTS.MANAGE-EVENTS
1277
- * @permissionScope Manage Ticket Definitions
1278
- * @permissionScopeId SCOPE.DC-EVENTS.MANAGE-TICKET-DEF
1279
- * @applicableIdentity APP
1280
- * @fqn wix.events.ticketdef.v3.TicketDefinitionManagement.ChangeCurrency
1281
- */
1282
- export async function changeCurrency(eventId, options) {
1283
- // @ts-ignore
1284
- const { httpClient, sideEffects } = arguments[2];
1285
- const payload = renameKeysFromSDKRequestToRESTRequest({
1286
- eventId: eventId,
1287
- currency: options?.currency,
1288
- });
1289
- const reqOpts = ambassadorWixEventsV3TicketDefinition.changeCurrency(payload);
1290
- sideEffects?.onSiteCall?.();
1291
- try {
1292
- const result = await httpClient.request(reqOpts);
1293
- sideEffects?.onSuccess?.(result);
1294
- }
1295
- catch (err) {
1296
- const transformedError = sdkTransformError(err, {
1297
- spreadPathsToArguments: {},
1298
- explicitPathsToArguments: {
1299
- eventId: '$[0]',
1300
- currency: '$[1].currency',
1301
- },
1302
- singleArgumentUnchanged: false,
1303
- }, ['eventId', 'options']);
1304
- sideEffects?.onError?.(err);
1305
- throw transformedError;
1306
- }
1307
- }
1308
- //# sourceMappingURL=events-v3-ticket-definition-ticket-definitions-v-2.universal.js.map