@wix/auto_sdk_events_ticket-definitions-v-2 1.0.136 → 1.0.137
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.
- package/build/cjs/schemas.js +1046 -970
- package/build/cjs/schemas.js.map +1 -1
- package/build/es/schemas.mjs +1046 -970
- package/build/es/schemas.mjs.map +1 -1
- package/package.json +2 -2
- package/build/internal/cjs/index.js +0 -2390
- package/build/internal/cjs/index.js.map +0 -1
- package/build/internal/cjs/index.typings.js +0 -2011
- package/build/internal/cjs/index.typings.js.map +0 -1
- package/build/internal/cjs/meta.js +0 -1754
- package/build/internal/cjs/meta.js.map +0 -1
- package/build/internal/cjs/schemas.js +0 -2136
- package/build/internal/cjs/schemas.js.map +0 -1
- package/build/internal/es/index.mjs +0 -2256
- package/build/internal/es/index.mjs.map +0 -1
- package/build/internal/es/index.typings.mjs +0 -1882
- package/build/internal/es/index.typings.mjs.map +0 -1
- package/build/internal/es/meta.mjs +0 -1624
- package/build/internal/es/meta.mjs.map +0 -1
- package/build/internal/es/schemas.mjs +0 -2078
- package/build/internal/es/schemas.mjs.map +0 -1
package/build/cjs/schemas.js
CHANGED
|
@@ -58,85 +58,85 @@ module.exports = __toCommonJS(schemas_exports);
|
|
|
58
58
|
// src/events-v3-ticket-definition-ticket-definitions-v-2.schemas.ts
|
|
59
59
|
var z = __toESM(require("zod"));
|
|
60
60
|
var CreateTicketDefinitionRequest = /* @__PURE__ */ z.object({
|
|
61
|
-
ticketDefinition: z.object({
|
|
62
|
-
_id: z.string().describe("Ticket definition ID.").regex(
|
|
61
|
+
ticketDefinition: /* @__PURE__ */ z.object({
|
|
62
|
+
_id: /* @__PURE__ */ z.string().describe("Ticket definition ID.").regex(
|
|
63
63
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
64
64
|
"Must be a valid GUID"
|
|
65
65
|
).optional().nullable(),
|
|
66
|
-
eventId: z.string().describe("Event ID to which the ticket definition belongs.").regex(
|
|
66
|
+
eventId: /* @__PURE__ */ z.string().describe("Event ID to which the ticket definition belongs.").regex(
|
|
67
67
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
68
68
|
"Must be a valid GUID"
|
|
69
69
|
),
|
|
70
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
70
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
71
71
|
"Revision number, which increments by 1 each time the ticket definition is updated. To prevent conflicting changes, the existing `revision` must be used when updating a ticket definition."
|
|
72
72
|
).optional().nullable(),
|
|
73
|
-
_createdDate: z.date().describe("Date and time the ticket definition was created.").optional().nullable(),
|
|
74
|
-
_updatedDate: z.date().describe("Date and time the ticket definition was updated.").optional().nullable(),
|
|
75
|
-
name: z.string().describe("Ticket definition name.").min(1).max(30),
|
|
76
|
-
description: z.string().describe("Ticket definition description.").max(500).optional().nullable(),
|
|
77
|
-
policyText: z.string().describe("Ticket definition policy.").max(1e3).optional().nullable(),
|
|
78
|
-
hidden: z.boolean().describe(
|
|
73
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the ticket definition was created.").optional().nullable(),
|
|
74
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the ticket definition was updated.").optional().nullable(),
|
|
75
|
+
name: /* @__PURE__ */ z.string().describe("Ticket definition name.").min(1).max(30),
|
|
76
|
+
description: /* @__PURE__ */ z.string().describe("Ticket definition description.").max(500).optional().nullable(),
|
|
77
|
+
policyText: /* @__PURE__ */ z.string().describe("Ticket definition policy.").max(1e3).optional().nullable(),
|
|
78
|
+
hidden: /* @__PURE__ */ z.boolean().describe(
|
|
79
79
|
"Whether this ticket definition is hidden from site visitors and can't be purchased."
|
|
80
80
|
).optional(),
|
|
81
|
-
limited: z.boolean().describe("Whether the ticket has a limited maximum quantity.").optional(),
|
|
82
|
-
initialLimit: z.number().int().describe(
|
|
81
|
+
limited: /* @__PURE__ */ z.boolean().describe("Whether the ticket has a limited maximum quantity.").optional(),
|
|
82
|
+
initialLimit: /* @__PURE__ */ z.number().int().describe(
|
|
83
83
|
"The maximum number of tickets that can be sold for the event when first defining the event. If a seating map is defined after you created a ticket definition, this property is ignored and `actualLimit` is used instead. To create unlimited tickets, skip this field in the request."
|
|
84
84
|
).optional().nullable(),
|
|
85
|
-
actualLimit: z.number().int().describe(
|
|
85
|
+
actualLimit: /* @__PURE__ */ z.number().int().describe(
|
|
86
86
|
"The maximum number of tickets that can be sold for the event after adding a seating map to the event. If no seating map is defined, this property is the same as `initialLimit`."
|
|
87
87
|
).optional().nullable(),
|
|
88
|
-
pricingMethod: z.intersection(
|
|
89
|
-
z.object({
|
|
90
|
-
pricingType: z.enum(["STANDARD", "DONATION"]).optional(),
|
|
91
|
-
free: z.boolean().describe(
|
|
88
|
+
pricingMethod: /* @__PURE__ */ z.intersection(
|
|
89
|
+
/* @__PURE__ */ z.object({
|
|
90
|
+
pricingType: /* @__PURE__ */ z.enum(["STANDARD", "DONATION"]).optional(),
|
|
91
|
+
free: /* @__PURE__ */ z.boolean().describe(
|
|
92
92
|
'Whether the ticket is free. To create a free ticket, enter `"0"` in `pricingMethod.fixedPrice.value`.'
|
|
93
93
|
).optional()
|
|
94
94
|
}),
|
|
95
|
-
z.xor([
|
|
96
|
-
z.object({
|
|
97
|
-
guestPrice: z.never().optional(),
|
|
98
|
-
pricingOptions: z.never().optional(),
|
|
99
|
-
fixedPrice: z.object({
|
|
100
|
-
value: z.string().describe(
|
|
95
|
+
/* @__PURE__ */ z.xor([
|
|
96
|
+
/* @__PURE__ */ z.object({
|
|
97
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
98
|
+
pricingOptions: /* @__PURE__ */ z.never().optional(),
|
|
99
|
+
fixedPrice: /* @__PURE__ */ z.object({
|
|
100
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
101
101
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
102
102
|
).optional(),
|
|
103
|
-
currency: z.string().describe(
|
|
103
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
104
104
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
105
105
|
).optional()
|
|
106
106
|
}).describe("Same ticket price for everyone.")
|
|
107
107
|
}),
|
|
108
|
-
z.object({
|
|
109
|
-
fixedPrice: z.never().optional(),
|
|
110
|
-
pricingOptions: z.never().optional(),
|
|
111
|
-
guestPrice: z.object({
|
|
112
|
-
value: z.string().describe(
|
|
108
|
+
/* @__PURE__ */ z.object({
|
|
109
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
110
|
+
pricingOptions: /* @__PURE__ */ z.never().optional(),
|
|
111
|
+
guestPrice: /* @__PURE__ */ z.object({
|
|
112
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
113
113
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
114
114
|
).optional(),
|
|
115
|
-
currency: z.string().describe(
|
|
115
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
116
116
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
117
117
|
).optional()
|
|
118
118
|
}).describe(
|
|
119
119
|
'Guests choose how much they\'d like to pay for the ticket. You can set the minimum price, or specify `"0"` in the request to make the ticket free. The price can be updated to a higher amount by a guest during the checkout.'
|
|
120
120
|
)
|
|
121
121
|
}),
|
|
122
|
-
z.object({
|
|
123
|
-
fixedPrice: z.never().optional(),
|
|
124
|
-
guestPrice: z.never().optional(),
|
|
125
|
-
pricingOptions: z.object({
|
|
126
|
-
optionDetails: z.array(
|
|
127
|
-
z.object({
|
|
128
|
-
optionId: z.string().describe("Ticket price option ID.").regex(
|
|
122
|
+
/* @__PURE__ */ z.object({
|
|
123
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
124
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
125
|
+
pricingOptions: /* @__PURE__ */ z.object({
|
|
126
|
+
optionDetails: /* @__PURE__ */ z.array(
|
|
127
|
+
/* @__PURE__ */ z.object({
|
|
128
|
+
optionId: /* @__PURE__ */ z.string().describe("Ticket price option ID.").regex(
|
|
129
129
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
130
130
|
"Must be a valid GUID"
|
|
131
131
|
).optional().nullable(),
|
|
132
|
-
name: z.string().describe(
|
|
132
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
133
133
|
'Ticket price option name, such as "Child Ticket".'
|
|
134
134
|
).min(1).max(200).optional().nullable(),
|
|
135
|
-
price: z.object({
|
|
136
|
-
value: z.string().describe(
|
|
135
|
+
price: /* @__PURE__ */ z.object({
|
|
136
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
137
137
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
138
138
|
).optional(),
|
|
139
|
-
currency: z.string().describe(
|
|
139
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
140
140
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
141
141
|
).optional()
|
|
142
142
|
}).describe("Ticket price.").optional()
|
|
@@ -148,138 +148,148 @@ var CreateTicketDefinitionRequest = /* @__PURE__ */ z.object({
|
|
|
148
148
|
})
|
|
149
149
|
])
|
|
150
150
|
).describe("Ticket pricing method."),
|
|
151
|
-
feeType: z.enum([
|
|
152
|
-
|
|
153
|
-
|
|
151
|
+
feeType: /* @__PURE__ */ z.enum([
|
|
152
|
+
"FEE_INCLUDED",
|
|
153
|
+
"FEE_ADDED_AT_CHECKOUT",
|
|
154
|
+
"NO_FEE"
|
|
155
|
+
]),
|
|
156
|
+
salePeriod: /* @__PURE__ */ z.object({
|
|
157
|
+
startDate: /* @__PURE__ */ z.date().describe(
|
|
154
158
|
"Date and time the ticket sale starts. Rounded down to the nearest minute."
|
|
155
159
|
).optional().nullable(),
|
|
156
|
-
endDate: z.date().describe(
|
|
160
|
+
endDate: /* @__PURE__ */ z.date().describe(
|
|
157
161
|
"Date and time the ticket sale ends. Rounded down to the nearest minute."
|
|
158
162
|
).optional().nullable(),
|
|
159
|
-
displayNotOnSale: z.boolean().describe(
|
|
163
|
+
displayNotOnSale: /* @__PURE__ */ z.boolean().describe(
|
|
160
164
|
"Whether to display the ticket if it's not available to buy."
|
|
161
165
|
).optional()
|
|
162
166
|
}).describe("Ticket sale period.").optional(),
|
|
163
|
-
saleStatus: z.enum(["SALE_SCHEDULED", "SALE_STARTED", "SALE_ENDED"]).optional(),
|
|
164
|
-
salesDetails: z.object({
|
|
165
|
-
unsoldCount: z.number().int().describe(
|
|
167
|
+
saleStatus: /* @__PURE__ */ z.enum(["SALE_SCHEDULED", "SALE_STARTED", "SALE_ENDED"]).optional(),
|
|
168
|
+
salesDetails: /* @__PURE__ */ z.object({
|
|
169
|
+
unsoldCount: /* @__PURE__ */ z.number().int().describe(
|
|
166
170
|
"Number of tickets that haven't been purchased yet. The field is `null` if the ticket quantity is unlimited."
|
|
167
171
|
).optional().nullable(),
|
|
168
|
-
soldCount: z.number().int().describe("Number of purchased tickets.").optional().nullable(),
|
|
169
|
-
reservedCount: z.number().int().describe("Number of reserved tickets.").optional().nullable(),
|
|
170
|
-
soldOut: z.boolean().describe("Whether the tickets are sold out.").optional().nullable()
|
|
172
|
+
soldCount: /* @__PURE__ */ z.number().int().describe("Number of purchased tickets.").optional().nullable(),
|
|
173
|
+
reservedCount: /* @__PURE__ */ z.number().int().describe("Number of reserved tickets.").optional().nullable(),
|
|
174
|
+
soldOut: /* @__PURE__ */ z.boolean().describe("Whether the tickets are sold out.").optional().nullable()
|
|
171
175
|
}).describe(
|
|
172
176
|
"Ticket sales information. <br> <br>\n**Note:** This field is only returned when `SALES_DETAILS` is specified in `field` in the request."
|
|
173
177
|
).optional(),
|
|
174
|
-
limitPerCheckout: z.number().int().describe(
|
|
178
|
+
limitPerCheckout: /* @__PURE__ */ z.number().int().describe(
|
|
175
179
|
"Number of tickets that can be purchased per checkout. <br> <br>\n**Note:** If the `actualLimit` or `salesDetails.unsoldCount` field value is smaller than `limitPerCheckout`, then it overrides this field."
|
|
176
180
|
).min(0).max(50).optional().nullable(),
|
|
177
|
-
extendedFields: z.object({
|
|
178
|
-
namespaces:
|
|
181
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
182
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
183
|
+
/* @__PURE__ */ z.string(),
|
|
184
|
+
/* @__PURE__ */ z.record(
|
|
185
|
+
/* @__PURE__ */ z.string(),
|
|
186
|
+
/* @__PURE__ */ z.any()
|
|
187
|
+
)
|
|
188
|
+
).describe(
|
|
179
189
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
180
190
|
).optional()
|
|
181
191
|
}).describe("Data extensions.").optional(),
|
|
182
|
-
eventDetails: z.object({
|
|
183
|
-
title: z.string().describe("Event title.").min(1).max(120).optional().nullable(),
|
|
184
|
-
shortDescription: z.string().describe("Short description of the event.").max(500).optional().nullable(),
|
|
185
|
-
location: z.object({
|
|
186
|
-
name: z.string().describe(
|
|
192
|
+
eventDetails: /* @__PURE__ */ z.object({
|
|
193
|
+
title: /* @__PURE__ */ z.string().describe("Event title.").min(1).max(120).optional().nullable(),
|
|
194
|
+
shortDescription: /* @__PURE__ */ z.string().describe("Short description of the event.").max(500).optional().nullable(),
|
|
195
|
+
location: /* @__PURE__ */ z.object({
|
|
196
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
187
197
|
"Location name. This value is displayed instead of the address when the location is defined as TBD by setting the `locationTbd` property to `true`."
|
|
188
198
|
).max(50).optional().nullable(),
|
|
189
|
-
type: z.enum(["VENUE", "ONLINE"]).optional(),
|
|
190
|
-
address: z.object({
|
|
191
|
-
city: z.string().optional().nullable(),
|
|
192
|
-
subdivision: z.string().optional().nullable(),
|
|
193
|
-
country: z.string().optional().nullable(),
|
|
194
|
-
postalCode: z.string().optional().nullable(),
|
|
195
|
-
addressLine1: z.string().optional().nullable(),
|
|
196
|
-
addressLine2: z.string().optional().nullable()
|
|
199
|
+
type: /* @__PURE__ */ z.enum(["VENUE", "ONLINE"]).optional(),
|
|
200
|
+
address: /* @__PURE__ */ z.object({
|
|
201
|
+
city: /* @__PURE__ */ z.string().optional().nullable(),
|
|
202
|
+
subdivision: /* @__PURE__ */ z.string().optional().nullable(),
|
|
203
|
+
country: /* @__PURE__ */ z.string().optional().nullable(),
|
|
204
|
+
postalCode: /* @__PURE__ */ z.string().optional().nullable(),
|
|
205
|
+
addressLine1: /* @__PURE__ */ z.string().optional().nullable(),
|
|
206
|
+
addressLine2: /* @__PURE__ */ z.string().optional().nullable()
|
|
197
207
|
}).describe("Exact location address.").optional(),
|
|
198
|
-
locationTbd: z.boolean().describe("Whether the event location is TBD.").optional().nullable()
|
|
208
|
+
locationTbd: /* @__PURE__ */ z.boolean().describe("Whether the event location is TBD.").optional().nullable()
|
|
199
209
|
}).describe("Event location.").optional(),
|
|
200
|
-
dateAndTimeSettings: z.object({
|
|
201
|
-
dateAndTimeTbd: z.boolean().describe("Whether the event date and time are TBD.").optional().nullable(),
|
|
202
|
-
dateAndTimeTbdMessage: z.string().describe(
|
|
210
|
+
dateAndTimeSettings: /* @__PURE__ */ z.object({
|
|
211
|
+
dateAndTimeTbd: /* @__PURE__ */ z.boolean().describe("Whether the event date and time are TBD.").optional().nullable(),
|
|
212
|
+
dateAndTimeTbdMessage: /* @__PURE__ */ z.string().describe(
|
|
203
213
|
"Message that is displayed when time and date is TBD.\n\n**Note:** This field is only used when the `dateAndTimeTbd` field value is `true`."
|
|
204
214
|
).max(100).optional().nullable(),
|
|
205
|
-
startDate: z.date().describe(
|
|
215
|
+
startDate: /* @__PURE__ */ z.date().describe(
|
|
206
216
|
"Event start date.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
207
217
|
).optional().nullable(),
|
|
208
|
-
endDate: z.date().describe(
|
|
218
|
+
endDate: /* @__PURE__ */ z.date().describe(
|
|
209
219
|
"Event end date.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
210
220
|
).optional().nullable(),
|
|
211
|
-
timeZoneId: z.string().describe(
|
|
221
|
+
timeZoneId: /* @__PURE__ */ z.string().describe(
|
|
212
222
|
"Event time zone ID in the [TZ database](https://www.iana.org/time-zones) format.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
213
223
|
).max(100).optional().nullable(),
|
|
214
|
-
hideEndDate: z.boolean().describe(
|
|
224
|
+
hideEndDate: /* @__PURE__ */ z.boolean().describe(
|
|
215
225
|
"Whether the end date is hidden in the formatted date and time."
|
|
216
226
|
).optional().nullable(),
|
|
217
|
-
showTimeZone: z.boolean().describe(
|
|
227
|
+
showTimeZone: /* @__PURE__ */ z.boolean().describe(
|
|
218
228
|
"Whether the time zone is displayed in the formatted schedule."
|
|
219
229
|
).optional().nullable(),
|
|
220
|
-
recurrenceStatus: z.enum([
|
|
230
|
+
recurrenceStatus: /* @__PURE__ */ z.enum([
|
|
221
231
|
"ONE_TIME",
|
|
222
232
|
"RECURRING",
|
|
223
233
|
"RECURRING_UPCOMING",
|
|
224
234
|
"RECURRING_RECENTLY_ENDED",
|
|
225
235
|
"RECURRING_RECENTLY_CANCELED"
|
|
226
236
|
]).optional(),
|
|
227
|
-
recurringEvents: z.object({
|
|
228
|
-
individualEventDates: z.array(
|
|
229
|
-
z.object({
|
|
230
|
-
startDate: z.date().describe("Event start date.").optional().nullable(),
|
|
231
|
-
endDate: z.date().describe("Event end date.").optional().nullable(),
|
|
232
|
-
timeZoneId: z.string().describe(
|
|
237
|
+
recurringEvents: /* @__PURE__ */ z.object({
|
|
238
|
+
individualEventDates: /* @__PURE__ */ z.array(
|
|
239
|
+
/* @__PURE__ */ z.object({
|
|
240
|
+
startDate: /* @__PURE__ */ z.date().describe("Event start date.").optional().nullable(),
|
|
241
|
+
endDate: /* @__PURE__ */ z.date().describe("Event end date.").optional().nullable(),
|
|
242
|
+
timeZoneId: /* @__PURE__ */ z.string().describe(
|
|
233
243
|
"Event time zone ID in the [TZ database](https://www.iana.org/time-zones) format."
|
|
234
244
|
).max(100).optional().nullable(),
|
|
235
|
-
showTimeZone: z.boolean().describe(
|
|
245
|
+
showTimeZone: /* @__PURE__ */ z.boolean().describe(
|
|
236
246
|
"Whether the time zone is displayed in a formatted schedule."
|
|
237
247
|
).optional()
|
|
238
248
|
})
|
|
239
249
|
).max(1e3).optional(),
|
|
240
|
-
categoryId: z.string().describe(
|
|
250
|
+
categoryId: /* @__PURE__ */ z.string().describe(
|
|
241
251
|
"Recurring event category ID.\n\nThis read-only field is automatically generated and shared by all events in a recurring series. Use this ID to query and retrieve all occurrences of a recurring event."
|
|
242
252
|
).max(100).optional().nullable()
|
|
243
253
|
}).describe("Event repetitions.").optional(),
|
|
244
|
-
formatted: z.object({
|
|
245
|
-
dateAndTime: z.string().describe(
|
|
254
|
+
formatted: /* @__PURE__ */ z.object({
|
|
255
|
+
dateAndTime: /* @__PURE__ */ z.string().describe(
|
|
246
256
|
"Formatted date and time representation. <br>\nExample of formatting when an event lasts multiple days and is in the UTC time zone: `September 1, 2015 at 10:20 AM \u2013 September 5, 2015 at 12:14 PM`. <br>\nExample of formatting when an event lasts 1 day and is in the GMT+2 time zone: `February 1, 2018, 12:10 \u2013 2:50 PM GMT+2`."
|
|
247
257
|
).max(500).optional().nullable(),
|
|
248
|
-
startDate: z.string().describe(
|
|
258
|
+
startDate: /* @__PURE__ */ z.string().describe(
|
|
249
259
|
"Formatted start date of the event. Empty for TBD schedules."
|
|
250
260
|
).max(500).optional().nullable(),
|
|
251
|
-
startTime: z.string().describe(
|
|
261
|
+
startTime: /* @__PURE__ */ z.string().describe(
|
|
252
262
|
"Formatted start time of the event. Empty for TBD schedules."
|
|
253
263
|
).max(500).optional().nullable(),
|
|
254
|
-
endDate: z.string().describe(
|
|
264
|
+
endDate: /* @__PURE__ */ z.string().describe(
|
|
255
265
|
"Formatted end date of the event. Empty for TBD schedules or when the end date is hidden."
|
|
256
266
|
).max(500).optional().nullable(),
|
|
257
|
-
endTime: z.string().describe(
|
|
267
|
+
endTime: /* @__PURE__ */ z.string().describe(
|
|
258
268
|
"Formatted end time of the event. Empty for TBD schedules or when the end date is hidden."
|
|
259
269
|
).max(500).optional().nullable()
|
|
260
270
|
}).describe("Formatted date and time settings.").optional()
|
|
261
271
|
}).describe("Event date and time settings.").optional(),
|
|
262
|
-
eventPageUrl: z.string().describe("Event page URL components.").optional(),
|
|
263
|
-
status: z.enum(["UPCOMING", "STARTED", "ENDED", "CANCELED", "DRAFT"]).optional()
|
|
272
|
+
eventPageUrl: /* @__PURE__ */ z.string().describe("Event page URL components.").optional(),
|
|
273
|
+
status: /* @__PURE__ */ z.enum(["UPCOMING", "STARTED", "ENDED", "CANCELED", "DRAFT"]).optional()
|
|
264
274
|
}).describe(
|
|
265
275
|
"Information about the even the ticket is for. <br>\n**Note:** This field is only returned when `EVENT_DETAILS` is specified in `field` in the request."
|
|
266
276
|
).optional(),
|
|
267
|
-
seatingDetails: z.object({
|
|
268
|
-
places: z.array(
|
|
269
|
-
z.object({
|
|
270
|
-
placeId: z.string().describe(
|
|
277
|
+
seatingDetails: /* @__PURE__ */ z.object({
|
|
278
|
+
places: /* @__PURE__ */ z.array(
|
|
279
|
+
/* @__PURE__ */ z.object({
|
|
280
|
+
placeId: /* @__PURE__ */ z.string().describe(
|
|
271
281
|
"Place ID in the format `{sectionId}-{elementId}-{label}`. For example, `0-1-A5`."
|
|
272
282
|
).min(1).max(20).optional(),
|
|
273
|
-
label: z.string().describe(
|
|
283
|
+
label: /* @__PURE__ */ z.string().describe(
|
|
274
284
|
"Human-readable label for this place, such as `A1`, `12`, or `VIP1`."
|
|
275
285
|
).min(1).max(4).optional(),
|
|
276
|
-
sectionLabel: z.string().describe(
|
|
286
|
+
sectionLabel: /* @__PURE__ */ z.string().describe(
|
|
277
287
|
"High-level division of the venue, where the place is located, such as `Orchestra`, `Balcony`, or `VIP Section`."
|
|
278
288
|
).min(1).max(20).optional().nullable(),
|
|
279
|
-
elementLabel: z.string().describe(
|
|
289
|
+
elementLabel: /* @__PURE__ */ z.string().describe(
|
|
280
290
|
"Seating element within the section, such as `Row`, `Table`, or `General Admission`."
|
|
281
291
|
).min(1).max(50).optional().nullable(),
|
|
282
|
-
availableCapacity: z.number().int().describe(
|
|
292
|
+
availableCapacity: /* @__PURE__ */ z.number().int().describe(
|
|
283
293
|
"Available capacity at this place.\n\nFor general seating type returns the number of remaining spots.\n\nFor other types returns `1`. For example, if a table has 5 chairs, each chair is treated as a separate place, which has a capacity of 1."
|
|
284
294
|
).min(0).max(5e4).optional()
|
|
285
295
|
})
|
|
@@ -288,94 +298,100 @@ var CreateTicketDefinitionRequest = /* @__PURE__ */ z.object({
|
|
|
288
298
|
"Seating information including available seats and areas for this ticket definition. <br>\n**Note:** This field is only returned when `SEATING_DETAILS` is specified in `field` in the request, and when the event has a [seating plan](https://support.wix.com/en/article/wix-events-creating-a-seating-map)."
|
|
289
299
|
).optional()
|
|
290
300
|
}).describe("Ticket definition info."),
|
|
291
|
-
options: z.object({
|
|
292
|
-
fields: z.array(
|
|
301
|
+
options: /* @__PURE__ */ z.object({
|
|
302
|
+
fields: /* @__PURE__ */ z.array(
|
|
303
|
+
/* @__PURE__ */ z.enum([
|
|
304
|
+
"SALES_DETAILS",
|
|
305
|
+
"EVENT_DETAILS",
|
|
306
|
+
"SEATING_DETAILS"
|
|
307
|
+
])
|
|
308
|
+
).max(5).optional()
|
|
293
309
|
}).describe("Currency info.").optional()
|
|
294
310
|
});
|
|
295
311
|
var CreateTicketDefinitionResponse = /* @__PURE__ */ z.object({
|
|
296
|
-
_id: z.string().describe("Ticket definition ID.").regex(
|
|
312
|
+
_id: /* @__PURE__ */ z.string().describe("Ticket definition ID.").regex(
|
|
297
313
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
298
314
|
"Must be a valid GUID"
|
|
299
315
|
).optional().nullable(),
|
|
300
|
-
eventId: z.string().describe("Event ID to which the ticket definition belongs.").regex(
|
|
316
|
+
eventId: /* @__PURE__ */ z.string().describe("Event ID to which the ticket definition belongs.").regex(
|
|
301
317
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
302
318
|
"Must be a valid GUID"
|
|
303
319
|
).optional().nullable(),
|
|
304
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
320
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
305
321
|
"Revision number, which increments by 1 each time the ticket definition is updated. To prevent conflicting changes, the existing `revision` must be used when updating a ticket definition."
|
|
306
322
|
).optional().nullable(),
|
|
307
|
-
_createdDate: z.date().describe("Date and time the ticket definition was created.").optional().nullable(),
|
|
308
|
-
_updatedDate: z.date().describe("Date and time the ticket definition was updated.").optional().nullable(),
|
|
309
|
-
name: z.string().describe("Ticket definition name.").min(1).max(30).optional().nullable(),
|
|
310
|
-
description: z.string().describe("Ticket definition description.").max(500).optional().nullable(),
|
|
311
|
-
policyText: z.string().describe("Ticket definition policy.").max(1e3).optional().nullable(),
|
|
312
|
-
hidden: z.boolean().describe(
|
|
323
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the ticket definition was created.").optional().nullable(),
|
|
324
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the ticket definition was updated.").optional().nullable(),
|
|
325
|
+
name: /* @__PURE__ */ z.string().describe("Ticket definition name.").min(1).max(30).optional().nullable(),
|
|
326
|
+
description: /* @__PURE__ */ z.string().describe("Ticket definition description.").max(500).optional().nullable(),
|
|
327
|
+
policyText: /* @__PURE__ */ z.string().describe("Ticket definition policy.").max(1e3).optional().nullable(),
|
|
328
|
+
hidden: /* @__PURE__ */ z.boolean().describe(
|
|
313
329
|
"Whether this ticket definition is hidden from site visitors and can't be purchased."
|
|
314
330
|
).optional(),
|
|
315
|
-
limited: z.boolean().describe("Whether the ticket has a limited maximum quantity.").optional(),
|
|
316
|
-
initialLimit: z.number().int().describe(
|
|
331
|
+
limited: /* @__PURE__ */ z.boolean().describe("Whether the ticket has a limited maximum quantity.").optional(),
|
|
332
|
+
initialLimit: /* @__PURE__ */ z.number().int().describe(
|
|
317
333
|
"The maximum number of tickets that can be sold for the event when first defining the event. If a seating map is defined after you created a ticket definition, this property is ignored and `actualLimit` is used instead. To create unlimited tickets, skip this field in the request."
|
|
318
334
|
).optional().nullable(),
|
|
319
|
-
actualLimit: z.number().int().describe(
|
|
335
|
+
actualLimit: /* @__PURE__ */ z.number().int().describe(
|
|
320
336
|
"The maximum number of tickets that can be sold for the event after adding a seating map to the event. If no seating map is defined, this property is the same as `initialLimit`."
|
|
321
337
|
).optional().nullable(),
|
|
322
|
-
pricingMethod: z.intersection(
|
|
323
|
-
z.object({
|
|
324
|
-
pricingType: z.enum(["STANDARD", "DONATION"]).describe("Ticket price type.").optional(),
|
|
325
|
-
free: z.boolean().describe(
|
|
338
|
+
pricingMethod: /* @__PURE__ */ z.intersection(
|
|
339
|
+
/* @__PURE__ */ z.object({
|
|
340
|
+
pricingType: /* @__PURE__ */ z.enum(["STANDARD", "DONATION"]).describe("Ticket price type.").optional(),
|
|
341
|
+
free: /* @__PURE__ */ z.boolean().describe(
|
|
326
342
|
'Whether the ticket is free. To create a free ticket, enter `"0"` in `pricingMethod.fixedPrice.value`.'
|
|
327
343
|
).optional()
|
|
328
344
|
}),
|
|
329
|
-
z.xor([
|
|
330
|
-
z.object({
|
|
331
|
-
fixedPrice: z.never().optional(),
|
|
332
|
-
guestPrice: z.never().optional(),
|
|
333
|
-
pricingOptions: z.never().optional()
|
|
345
|
+
/* @__PURE__ */ z.xor([
|
|
346
|
+
/* @__PURE__ */ z.object({
|
|
347
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
348
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
349
|
+
pricingOptions: /* @__PURE__ */ z.never().optional()
|
|
334
350
|
}),
|
|
335
|
-
z.object({
|
|
336
|
-
guestPrice: z.never().optional(),
|
|
337
|
-
pricingOptions: z.never().optional(),
|
|
338
|
-
fixedPrice: z.object({
|
|
339
|
-
value: z.string().describe(
|
|
351
|
+
/* @__PURE__ */ z.object({
|
|
352
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
353
|
+
pricingOptions: /* @__PURE__ */ z.never().optional(),
|
|
354
|
+
fixedPrice: /* @__PURE__ */ z.object({
|
|
355
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
340
356
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
341
357
|
).optional(),
|
|
342
|
-
currency: z.string().describe(
|
|
358
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
343
359
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
344
360
|
).optional()
|
|
345
361
|
}).describe("Same ticket price for everyone.")
|
|
346
362
|
}),
|
|
347
|
-
z.object({
|
|
348
|
-
fixedPrice: z.never().optional(),
|
|
349
|
-
pricingOptions: z.never().optional(),
|
|
350
|
-
guestPrice: z.object({
|
|
351
|
-
value: z.string().describe(
|
|
363
|
+
/* @__PURE__ */ z.object({
|
|
364
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
365
|
+
pricingOptions: /* @__PURE__ */ z.never().optional(),
|
|
366
|
+
guestPrice: /* @__PURE__ */ z.object({
|
|
367
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
352
368
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
353
369
|
).optional(),
|
|
354
|
-
currency: z.string().describe(
|
|
370
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
355
371
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
356
372
|
).optional()
|
|
357
373
|
}).describe(
|
|
358
374
|
'Guests choose how much they\'d like to pay for the ticket. You can set the minimum price, or specify `"0"` in the request to make the ticket free. The price can be updated to a higher amount by a guest during the checkout.'
|
|
359
375
|
)
|
|
360
376
|
}),
|
|
361
|
-
z.object({
|
|
362
|
-
fixedPrice: z.never().optional(),
|
|
363
|
-
guestPrice: z.never().optional(),
|
|
364
|
-
pricingOptions: z.object({
|
|
365
|
-
optionDetails: z.array(
|
|
366
|
-
z.object({
|
|
367
|
-
optionId: z.string().describe("Ticket price option ID.").regex(
|
|
377
|
+
/* @__PURE__ */ z.object({
|
|
378
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
379
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
380
|
+
pricingOptions: /* @__PURE__ */ z.object({
|
|
381
|
+
optionDetails: /* @__PURE__ */ z.array(
|
|
382
|
+
/* @__PURE__ */ z.object({
|
|
383
|
+
optionId: /* @__PURE__ */ z.string().describe("Ticket price option ID.").regex(
|
|
368
384
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
369
385
|
"Must be a valid GUID"
|
|
370
386
|
).optional().nullable(),
|
|
371
|
-
name: z.string().describe(
|
|
387
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
372
388
|
'Ticket price option name, such as "Child Ticket".'
|
|
373
389
|
).min(1).max(200).optional().nullable(),
|
|
374
|
-
price: z.object({
|
|
375
|
-
value: z.string().describe(
|
|
390
|
+
price: /* @__PURE__ */ z.object({
|
|
391
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
376
392
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
377
393
|
).optional(),
|
|
378
|
-
currency: z.string().describe(
|
|
394
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
379
395
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
380
396
|
).optional()
|
|
381
397
|
}).describe("Ticket price.").optional()
|
|
@@ -387,136 +403,142 @@ var CreateTicketDefinitionResponse = /* @__PURE__ */ z.object({
|
|
|
387
403
|
})
|
|
388
404
|
])
|
|
389
405
|
).describe("Ticket pricing method.").optional(),
|
|
390
|
-
feeType: z.enum(["FEE_INCLUDED", "FEE_ADDED_AT_CHECKOUT", "NO_FEE"]).describe("Type of ticket service fee to collect.").optional(),
|
|
391
|
-
salePeriod: z.object({
|
|
392
|
-
startDate: z.date().describe(
|
|
406
|
+
feeType: /* @__PURE__ */ z.enum(["FEE_INCLUDED", "FEE_ADDED_AT_CHECKOUT", "NO_FEE"]).describe("Type of ticket service fee to collect.").optional(),
|
|
407
|
+
salePeriod: /* @__PURE__ */ z.object({
|
|
408
|
+
startDate: /* @__PURE__ */ z.date().describe(
|
|
393
409
|
"Date and time the ticket sale starts. Rounded down to the nearest minute."
|
|
394
410
|
).optional().nullable(),
|
|
395
|
-
endDate: z.date().describe(
|
|
411
|
+
endDate: /* @__PURE__ */ z.date().describe(
|
|
396
412
|
"Date and time the ticket sale ends. Rounded down to the nearest minute."
|
|
397
413
|
).optional().nullable(),
|
|
398
|
-
displayNotOnSale: z.boolean().describe("Whether to display the ticket if it's not available to buy.").optional()
|
|
414
|
+
displayNotOnSale: /* @__PURE__ */ z.boolean().describe("Whether to display the ticket if it's not available to buy.").optional()
|
|
399
415
|
}).describe("Ticket sale period.").optional(),
|
|
400
|
-
saleStatus: z.enum(["SALE_SCHEDULED", "SALE_STARTED", "SALE_ENDED"]).describe("Ticket sale status.").optional(),
|
|
401
|
-
salesDetails: z.object({
|
|
402
|
-
unsoldCount: z.number().int().describe(
|
|
416
|
+
saleStatus: /* @__PURE__ */ z.enum(["SALE_SCHEDULED", "SALE_STARTED", "SALE_ENDED"]).describe("Ticket sale status.").optional(),
|
|
417
|
+
salesDetails: /* @__PURE__ */ z.object({
|
|
418
|
+
unsoldCount: /* @__PURE__ */ z.number().int().describe(
|
|
403
419
|
"Number of tickets that haven't been purchased yet. The field is `null` if the ticket quantity is unlimited."
|
|
404
420
|
).optional().nullable(),
|
|
405
|
-
soldCount: z.number().int().describe("Number of purchased tickets.").optional().nullable(),
|
|
406
|
-
reservedCount: z.number().int().describe("Number of reserved tickets.").optional().nullable(),
|
|
407
|
-
soldOut: z.boolean().describe("Whether the tickets are sold out.").optional().nullable()
|
|
421
|
+
soldCount: /* @__PURE__ */ z.number().int().describe("Number of purchased tickets.").optional().nullable(),
|
|
422
|
+
reservedCount: /* @__PURE__ */ z.number().int().describe("Number of reserved tickets.").optional().nullable(),
|
|
423
|
+
soldOut: /* @__PURE__ */ z.boolean().describe("Whether the tickets are sold out.").optional().nullable()
|
|
408
424
|
}).describe(
|
|
409
425
|
"Ticket sales information. <br> <br>\n**Note:** This field is only returned when `SALES_DETAILS` is specified in `field` in the request."
|
|
410
426
|
).optional(),
|
|
411
|
-
limitPerCheckout: z.number().int().describe(
|
|
427
|
+
limitPerCheckout: /* @__PURE__ */ z.number().int().describe(
|
|
412
428
|
"Number of tickets that can be purchased per checkout. <br> <br>\n**Note:** If the `actualLimit` or `salesDetails.unsoldCount` field value is smaller than `limitPerCheckout`, then it overrides this field."
|
|
413
429
|
).min(0).max(50).optional().nullable(),
|
|
414
|
-
extendedFields: z.object({
|
|
415
|
-
namespaces:
|
|
430
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
431
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
432
|
+
/* @__PURE__ */ z.string(),
|
|
433
|
+
/* @__PURE__ */ z.record(
|
|
434
|
+
/* @__PURE__ */ z.string(),
|
|
435
|
+
/* @__PURE__ */ z.any()
|
|
436
|
+
)
|
|
437
|
+
).describe(
|
|
416
438
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
417
439
|
).optional()
|
|
418
440
|
}).describe("Data extensions.").optional(),
|
|
419
|
-
eventDetails: z.object({
|
|
420
|
-
title: z.string().describe("Event title.").min(1).max(120).optional().nullable(),
|
|
421
|
-
shortDescription: z.string().describe("Short description of the event.").max(500).optional().nullable(),
|
|
422
|
-
location: z.object({
|
|
423
|
-
name: z.string().describe(
|
|
441
|
+
eventDetails: /* @__PURE__ */ z.object({
|
|
442
|
+
title: /* @__PURE__ */ z.string().describe("Event title.").min(1).max(120).optional().nullable(),
|
|
443
|
+
shortDescription: /* @__PURE__ */ z.string().describe("Short description of the event.").max(500).optional().nullable(),
|
|
444
|
+
location: /* @__PURE__ */ z.object({
|
|
445
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
424
446
|
"Location name. This value is displayed instead of the address when the location is defined as TBD by setting the `locationTbd` property to `true`."
|
|
425
447
|
).max(50).optional().nullable(),
|
|
426
|
-
type: z.enum(["VENUE", "ONLINE"]).describe("Location type.").optional(),
|
|
427
|
-
address: z.object({
|
|
428
|
-
city: z.string().optional().nullable(),
|
|
429
|
-
subdivision: z.string().optional().nullable(),
|
|
430
|
-
country: z.string().optional().nullable(),
|
|
431
|
-
postalCode: z.string().optional().nullable(),
|
|
432
|
-
addressLine1: z.string().optional().nullable(),
|
|
433
|
-
addressLine2: z.string().optional().nullable()
|
|
448
|
+
type: /* @__PURE__ */ z.enum(["VENUE", "ONLINE"]).describe("Location type.").optional(),
|
|
449
|
+
address: /* @__PURE__ */ z.object({
|
|
450
|
+
city: /* @__PURE__ */ z.string().optional().nullable(),
|
|
451
|
+
subdivision: /* @__PURE__ */ z.string().optional().nullable(),
|
|
452
|
+
country: /* @__PURE__ */ z.string().optional().nullable(),
|
|
453
|
+
postalCode: /* @__PURE__ */ z.string().optional().nullable(),
|
|
454
|
+
addressLine1: /* @__PURE__ */ z.string().optional().nullable(),
|
|
455
|
+
addressLine2: /* @__PURE__ */ z.string().optional().nullable()
|
|
434
456
|
}).describe("Exact location address.").optional(),
|
|
435
|
-
locationTbd: z.boolean().describe("Whether the event location is TBD.").optional().nullable()
|
|
457
|
+
locationTbd: /* @__PURE__ */ z.boolean().describe("Whether the event location is TBD.").optional().nullable()
|
|
436
458
|
}).describe("Event location.").optional(),
|
|
437
|
-
dateAndTimeSettings: z.object({
|
|
438
|
-
dateAndTimeTbd: z.boolean().describe("Whether the event date and time are TBD.").optional().nullable(),
|
|
439
|
-
dateAndTimeTbdMessage: z.string().describe(
|
|
459
|
+
dateAndTimeSettings: /* @__PURE__ */ z.object({
|
|
460
|
+
dateAndTimeTbd: /* @__PURE__ */ z.boolean().describe("Whether the event date and time are TBD.").optional().nullable(),
|
|
461
|
+
dateAndTimeTbdMessage: /* @__PURE__ */ z.string().describe(
|
|
440
462
|
"Message that is displayed when time and date is TBD.\n\n**Note:** This field is only used when the `dateAndTimeTbd` field value is `true`."
|
|
441
463
|
).max(100).optional().nullable(),
|
|
442
|
-
startDate: z.date().describe(
|
|
464
|
+
startDate: /* @__PURE__ */ z.date().describe(
|
|
443
465
|
"Event start date.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
444
466
|
).optional().nullable(),
|
|
445
|
-
endDate: z.date().describe(
|
|
467
|
+
endDate: /* @__PURE__ */ z.date().describe(
|
|
446
468
|
"Event end date.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
447
469
|
).optional().nullable(),
|
|
448
|
-
timeZoneId: z.string().describe(
|
|
470
|
+
timeZoneId: /* @__PURE__ */ z.string().describe(
|
|
449
471
|
"Event time zone ID in the [TZ database](https://www.iana.org/time-zones) format.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
450
472
|
).max(100).optional().nullable(),
|
|
451
|
-
hideEndDate: z.boolean().describe(
|
|
473
|
+
hideEndDate: /* @__PURE__ */ z.boolean().describe(
|
|
452
474
|
"Whether the end date is hidden in the formatted date and time."
|
|
453
475
|
).optional().nullable(),
|
|
454
|
-
showTimeZone: z.boolean().describe(
|
|
476
|
+
showTimeZone: /* @__PURE__ */ z.boolean().describe(
|
|
455
477
|
"Whether the time zone is displayed in the formatted schedule."
|
|
456
478
|
).optional().nullable(),
|
|
457
|
-
recurrenceStatus: z.enum([
|
|
479
|
+
recurrenceStatus: /* @__PURE__ */ z.enum([
|
|
458
480
|
"ONE_TIME",
|
|
459
481
|
"RECURRING",
|
|
460
482
|
"RECURRING_UPCOMING",
|
|
461
483
|
"RECURRING_RECENTLY_ENDED",
|
|
462
484
|
"RECURRING_RECENTLY_CANCELED"
|
|
463
485
|
]).describe("Repeating event status.").optional(),
|
|
464
|
-
recurringEvents: z.object({
|
|
465
|
-
individualEventDates: z.array(
|
|
466
|
-
z.object({
|
|
467
|
-
startDate: z.date().describe("Event start date.").optional().nullable(),
|
|
468
|
-
endDate: z.date().describe("Event end date.").optional().nullable(),
|
|
469
|
-
timeZoneId: z.string().describe(
|
|
486
|
+
recurringEvents: /* @__PURE__ */ z.object({
|
|
487
|
+
individualEventDates: /* @__PURE__ */ z.array(
|
|
488
|
+
/* @__PURE__ */ z.object({
|
|
489
|
+
startDate: /* @__PURE__ */ z.date().describe("Event start date.").optional().nullable(),
|
|
490
|
+
endDate: /* @__PURE__ */ z.date().describe("Event end date.").optional().nullable(),
|
|
491
|
+
timeZoneId: /* @__PURE__ */ z.string().describe(
|
|
470
492
|
"Event time zone ID in the [TZ database](https://www.iana.org/time-zones) format."
|
|
471
493
|
).max(100).optional().nullable(),
|
|
472
|
-
showTimeZone: z.boolean().describe(
|
|
494
|
+
showTimeZone: /* @__PURE__ */ z.boolean().describe(
|
|
473
495
|
"Whether the time zone is displayed in a formatted schedule."
|
|
474
496
|
).optional()
|
|
475
497
|
})
|
|
476
498
|
).max(1e3).optional(),
|
|
477
|
-
categoryId: z.string().describe(
|
|
499
|
+
categoryId: /* @__PURE__ */ z.string().describe(
|
|
478
500
|
"Recurring event category ID.\n\nThis read-only field is automatically generated and shared by all events in a recurring series. Use this ID to query and retrieve all occurrences of a recurring event."
|
|
479
501
|
).max(100).optional().nullable()
|
|
480
502
|
}).describe("Event repetitions.").optional(),
|
|
481
|
-
formatted: z.object({
|
|
482
|
-
dateAndTime: z.string().describe(
|
|
503
|
+
formatted: /* @__PURE__ */ z.object({
|
|
504
|
+
dateAndTime: /* @__PURE__ */ z.string().describe(
|
|
483
505
|
"Formatted date and time representation. <br>\nExample of formatting when an event lasts multiple days and is in the UTC time zone: `September 1, 2015 at 10:20 AM \u2013 September 5, 2015 at 12:14 PM`. <br>\nExample of formatting when an event lasts 1 day and is in the GMT+2 time zone: `February 1, 2018, 12:10 \u2013 2:50 PM GMT+2`."
|
|
484
506
|
).max(500).optional().nullable(),
|
|
485
|
-
startDate: z.string().describe(
|
|
507
|
+
startDate: /* @__PURE__ */ z.string().describe(
|
|
486
508
|
"Formatted start date of the event. Empty for TBD schedules."
|
|
487
509
|
).max(500).optional().nullable(),
|
|
488
|
-
startTime: z.string().describe(
|
|
510
|
+
startTime: /* @__PURE__ */ z.string().describe(
|
|
489
511
|
"Formatted start time of the event. Empty for TBD schedules."
|
|
490
512
|
).max(500).optional().nullable(),
|
|
491
|
-
endDate: z.string().describe(
|
|
513
|
+
endDate: /* @__PURE__ */ z.string().describe(
|
|
492
514
|
"Formatted end date of the event. Empty for TBD schedules or when the end date is hidden."
|
|
493
515
|
).max(500).optional().nullable(),
|
|
494
|
-
endTime: z.string().describe(
|
|
516
|
+
endTime: /* @__PURE__ */ z.string().describe(
|
|
495
517
|
"Formatted end time of the event. Empty for TBD schedules or when the end date is hidden."
|
|
496
518
|
).max(500).optional().nullable()
|
|
497
519
|
}).describe("Formatted date and time settings.").optional()
|
|
498
520
|
}).describe("Event date and time settings.").optional(),
|
|
499
|
-
eventPageUrl: z.string().describe("Event page URL components.").optional(),
|
|
500
|
-
status: z.enum(["UPCOMING", "STARTED", "ENDED", "CANCELED", "DRAFT"]).describe("Event status.").optional()
|
|
521
|
+
eventPageUrl: /* @__PURE__ */ z.string().describe("Event page URL components.").optional(),
|
|
522
|
+
status: /* @__PURE__ */ z.enum(["UPCOMING", "STARTED", "ENDED", "CANCELED", "DRAFT"]).describe("Event status.").optional()
|
|
501
523
|
}).describe(
|
|
502
524
|
"Information about the even the ticket is for. <br>\n**Note:** This field is only returned when `EVENT_DETAILS` is specified in `field` in the request."
|
|
503
525
|
).optional(),
|
|
504
|
-
seatingDetails: z.object({
|
|
505
|
-
places: z.array(
|
|
506
|
-
z.object({
|
|
507
|
-
placeId: z.string().describe(
|
|
526
|
+
seatingDetails: /* @__PURE__ */ z.object({
|
|
527
|
+
places: /* @__PURE__ */ z.array(
|
|
528
|
+
/* @__PURE__ */ z.object({
|
|
529
|
+
placeId: /* @__PURE__ */ z.string().describe(
|
|
508
530
|
"Place ID in the format `{sectionId}-{elementId}-{label}`. For example, `0-1-A5`."
|
|
509
531
|
).min(1).max(20).optional(),
|
|
510
|
-
label: z.string().describe(
|
|
532
|
+
label: /* @__PURE__ */ z.string().describe(
|
|
511
533
|
"Human-readable label for this place, such as `A1`, `12`, or `VIP1`."
|
|
512
534
|
).min(1).max(4).optional(),
|
|
513
|
-
sectionLabel: z.string().describe(
|
|
535
|
+
sectionLabel: /* @__PURE__ */ z.string().describe(
|
|
514
536
|
"High-level division of the venue, where the place is located, such as `Orchestra`, `Balcony`, or `VIP Section`."
|
|
515
537
|
).min(1).max(20).optional().nullable(),
|
|
516
|
-
elementLabel: z.string().describe(
|
|
538
|
+
elementLabel: /* @__PURE__ */ z.string().describe(
|
|
517
539
|
"Seating element within the section, such as `Row`, `Table`, or `General Admission`."
|
|
518
540
|
).min(1).max(50).optional().nullable(),
|
|
519
|
-
availableCapacity: z.number().int().describe(
|
|
541
|
+
availableCapacity: /* @__PURE__ */ z.number().int().describe(
|
|
520
542
|
"Available capacity at this place.\n\nFor general seating type returns the number of remaining spots.\n\nFor other types returns `1`. For example, if a table has 5 chairs, each chair is treated as a separate place, which has a capacity of 1."
|
|
521
543
|
).min(0).max(5e4).optional()
|
|
522
544
|
})
|
|
@@ -526,94 +548,94 @@ var CreateTicketDefinitionResponse = /* @__PURE__ */ z.object({
|
|
|
526
548
|
).optional()
|
|
527
549
|
});
|
|
528
550
|
var UpdateTicketDefinitionRequest = /* @__PURE__ */ z.object({
|
|
529
|
-
_id: z.string().describe("Ticket definition ID.").regex(
|
|
551
|
+
_id: /* @__PURE__ */ z.string().describe("Ticket definition ID.").regex(
|
|
530
552
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
531
553
|
"Must be a valid GUID"
|
|
532
554
|
),
|
|
533
|
-
ticketDefinition: z.object({
|
|
534
|
-
_id: z.string().describe("Ticket definition ID.").regex(
|
|
555
|
+
ticketDefinition: /* @__PURE__ */ z.object({
|
|
556
|
+
_id: /* @__PURE__ */ z.string().describe("Ticket definition ID.").regex(
|
|
535
557
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
536
558
|
"Must be a valid GUID"
|
|
537
559
|
).optional().nullable(),
|
|
538
|
-
eventId: z.string().describe("Event ID to which the ticket definition belongs.").regex(
|
|
560
|
+
eventId: /* @__PURE__ */ z.string().describe("Event ID to which the ticket definition belongs.").regex(
|
|
539
561
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
540
562
|
"Must be a valid GUID"
|
|
541
563
|
).optional().nullable(),
|
|
542
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
564
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
543
565
|
"Revision number, which increments by 1 each time the ticket definition is updated. To prevent conflicting changes, the existing `revision` must be used when updating a ticket definition."
|
|
544
566
|
),
|
|
545
|
-
_createdDate: z.date().describe("Date and time the ticket definition was created.").optional().nullable(),
|
|
546
|
-
_updatedDate: z.date().describe("Date and time the ticket definition was updated.").optional().nullable(),
|
|
547
|
-
name: z.string().describe("Ticket definition name.").min(1).max(30).optional().nullable(),
|
|
548
|
-
description: z.string().describe("Ticket definition description.").max(500).optional().nullable(),
|
|
549
|
-
policyText: z.string().describe("Ticket definition policy.").max(1e3).optional().nullable(),
|
|
550
|
-
hidden: z.boolean().describe(
|
|
567
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the ticket definition was created.").optional().nullable(),
|
|
568
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the ticket definition was updated.").optional().nullable(),
|
|
569
|
+
name: /* @__PURE__ */ z.string().describe("Ticket definition name.").min(1).max(30).optional().nullable(),
|
|
570
|
+
description: /* @__PURE__ */ z.string().describe("Ticket definition description.").max(500).optional().nullable(),
|
|
571
|
+
policyText: /* @__PURE__ */ z.string().describe("Ticket definition policy.").max(1e3).optional().nullable(),
|
|
572
|
+
hidden: /* @__PURE__ */ z.boolean().describe(
|
|
551
573
|
"Whether this ticket definition is hidden from site visitors and can't be purchased."
|
|
552
574
|
).optional(),
|
|
553
|
-
limited: z.boolean().describe("Whether the ticket has a limited maximum quantity.").optional(),
|
|
554
|
-
initialLimit: z.number().int().describe(
|
|
575
|
+
limited: /* @__PURE__ */ z.boolean().describe("Whether the ticket has a limited maximum quantity.").optional(),
|
|
576
|
+
initialLimit: /* @__PURE__ */ z.number().int().describe(
|
|
555
577
|
"The maximum number of tickets that can be sold for the event when first defining the event. If a seating map is defined after you created a ticket definition, this property is ignored and `actualLimit` is used instead. To create unlimited tickets, skip this field in the request."
|
|
556
578
|
).optional().nullable(),
|
|
557
|
-
actualLimit: z.number().int().describe(
|
|
579
|
+
actualLimit: /* @__PURE__ */ z.number().int().describe(
|
|
558
580
|
"The maximum number of tickets that can be sold for the event after adding a seating map to the event. If no seating map is defined, this property is the same as `initialLimit`."
|
|
559
581
|
).optional().nullable(),
|
|
560
|
-
pricingMethod: z.intersection(
|
|
561
|
-
z.object({
|
|
562
|
-
pricingType: z.enum(["STANDARD", "DONATION"]).optional(),
|
|
563
|
-
free: z.boolean().describe(
|
|
582
|
+
pricingMethod: /* @__PURE__ */ z.intersection(
|
|
583
|
+
/* @__PURE__ */ z.object({
|
|
584
|
+
pricingType: /* @__PURE__ */ z.enum(["STANDARD", "DONATION"]).optional(),
|
|
585
|
+
free: /* @__PURE__ */ z.boolean().describe(
|
|
564
586
|
'Whether the ticket is free. To create a free ticket, enter `"0"` in `pricingMethod.fixedPrice.value`.'
|
|
565
587
|
).optional()
|
|
566
588
|
}),
|
|
567
|
-
z.xor([
|
|
568
|
-
z.object({
|
|
569
|
-
fixedPrice: z.never().optional(),
|
|
570
|
-
guestPrice: z.never().optional(),
|
|
571
|
-
pricingOptions: z.never().optional()
|
|
589
|
+
/* @__PURE__ */ z.xor([
|
|
590
|
+
/* @__PURE__ */ z.object({
|
|
591
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
592
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
593
|
+
pricingOptions: /* @__PURE__ */ z.never().optional()
|
|
572
594
|
}),
|
|
573
|
-
z.object({
|
|
574
|
-
guestPrice: z.never().optional(),
|
|
575
|
-
pricingOptions: z.never().optional(),
|
|
576
|
-
fixedPrice: z.object({
|
|
577
|
-
value: z.string().describe(
|
|
595
|
+
/* @__PURE__ */ z.object({
|
|
596
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
597
|
+
pricingOptions: /* @__PURE__ */ z.never().optional(),
|
|
598
|
+
fixedPrice: /* @__PURE__ */ z.object({
|
|
599
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
578
600
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
579
601
|
).optional(),
|
|
580
|
-
currency: z.string().describe(
|
|
602
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
581
603
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
582
604
|
).optional()
|
|
583
605
|
}).describe("Same ticket price for everyone.")
|
|
584
606
|
}),
|
|
585
|
-
z.object({
|
|
586
|
-
fixedPrice: z.never().optional(),
|
|
587
|
-
pricingOptions: z.never().optional(),
|
|
588
|
-
guestPrice: z.object({
|
|
589
|
-
value: z.string().describe(
|
|
607
|
+
/* @__PURE__ */ z.object({
|
|
608
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
609
|
+
pricingOptions: /* @__PURE__ */ z.never().optional(),
|
|
610
|
+
guestPrice: /* @__PURE__ */ z.object({
|
|
611
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
590
612
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
591
613
|
).optional(),
|
|
592
|
-
currency: z.string().describe(
|
|
614
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
593
615
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
594
616
|
).optional()
|
|
595
617
|
}).describe(
|
|
596
618
|
'Guests choose how much they\'d like to pay for the ticket. You can set the minimum price, or specify `"0"` in the request to make the ticket free. The price can be updated to a higher amount by a guest during the checkout.'
|
|
597
619
|
)
|
|
598
620
|
}),
|
|
599
|
-
z.object({
|
|
600
|
-
fixedPrice: z.never().optional(),
|
|
601
|
-
guestPrice: z.never().optional(),
|
|
602
|
-
pricingOptions: z.object({
|
|
603
|
-
optionDetails: z.array(
|
|
604
|
-
z.object({
|
|
605
|
-
optionId: z.string().describe("Ticket price option ID.").regex(
|
|
621
|
+
/* @__PURE__ */ z.object({
|
|
622
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
623
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
624
|
+
pricingOptions: /* @__PURE__ */ z.object({
|
|
625
|
+
optionDetails: /* @__PURE__ */ z.array(
|
|
626
|
+
/* @__PURE__ */ z.object({
|
|
627
|
+
optionId: /* @__PURE__ */ z.string().describe("Ticket price option ID.").regex(
|
|
606
628
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
607
629
|
"Must be a valid GUID"
|
|
608
630
|
).optional().nullable(),
|
|
609
|
-
name: z.string().describe(
|
|
631
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
610
632
|
'Ticket price option name, such as "Child Ticket".'
|
|
611
633
|
).min(1).max(200).optional().nullable(),
|
|
612
|
-
price: z.object({
|
|
613
|
-
value: z.string().describe(
|
|
634
|
+
price: /* @__PURE__ */ z.object({
|
|
635
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
614
636
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
615
637
|
).optional(),
|
|
616
|
-
currency: z.string().describe(
|
|
638
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
617
639
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
618
640
|
).optional()
|
|
619
641
|
}).describe("Ticket price.").optional()
|
|
@@ -625,138 +647,144 @@ var UpdateTicketDefinitionRequest = /* @__PURE__ */ z.object({
|
|
|
625
647
|
})
|
|
626
648
|
])
|
|
627
649
|
).describe("Ticket pricing method.").optional(),
|
|
628
|
-
feeType: z.enum(["FEE_INCLUDED", "FEE_ADDED_AT_CHECKOUT", "NO_FEE"]).optional(),
|
|
629
|
-
salePeriod: z.object({
|
|
630
|
-
startDate: z.date().describe(
|
|
650
|
+
feeType: /* @__PURE__ */ z.enum(["FEE_INCLUDED", "FEE_ADDED_AT_CHECKOUT", "NO_FEE"]).optional(),
|
|
651
|
+
salePeriod: /* @__PURE__ */ z.object({
|
|
652
|
+
startDate: /* @__PURE__ */ z.date().describe(
|
|
631
653
|
"Date and time the ticket sale starts. Rounded down to the nearest minute."
|
|
632
654
|
).optional().nullable(),
|
|
633
|
-
endDate: z.date().describe(
|
|
655
|
+
endDate: /* @__PURE__ */ z.date().describe(
|
|
634
656
|
"Date and time the ticket sale ends. Rounded down to the nearest minute."
|
|
635
657
|
).optional().nullable(),
|
|
636
|
-
displayNotOnSale: z.boolean().describe(
|
|
658
|
+
displayNotOnSale: /* @__PURE__ */ z.boolean().describe(
|
|
637
659
|
"Whether to display the ticket if it's not available to buy."
|
|
638
660
|
).optional()
|
|
639
661
|
}).describe("Ticket sale period.").optional(),
|
|
640
|
-
saleStatus: z.enum(["SALE_SCHEDULED", "SALE_STARTED", "SALE_ENDED"]).optional(),
|
|
641
|
-
salesDetails: z.object({
|
|
642
|
-
unsoldCount: z.number().int().describe(
|
|
662
|
+
saleStatus: /* @__PURE__ */ z.enum(["SALE_SCHEDULED", "SALE_STARTED", "SALE_ENDED"]).optional(),
|
|
663
|
+
salesDetails: /* @__PURE__ */ z.object({
|
|
664
|
+
unsoldCount: /* @__PURE__ */ z.number().int().describe(
|
|
643
665
|
"Number of tickets that haven't been purchased yet. The field is `null` if the ticket quantity is unlimited."
|
|
644
666
|
).optional().nullable(),
|
|
645
|
-
soldCount: z.number().int().describe("Number of purchased tickets.").optional().nullable(),
|
|
646
|
-
reservedCount: z.number().int().describe("Number of reserved tickets.").optional().nullable(),
|
|
647
|
-
soldOut: z.boolean().describe("Whether the tickets are sold out.").optional().nullable()
|
|
667
|
+
soldCount: /* @__PURE__ */ z.number().int().describe("Number of purchased tickets.").optional().nullable(),
|
|
668
|
+
reservedCount: /* @__PURE__ */ z.number().int().describe("Number of reserved tickets.").optional().nullable(),
|
|
669
|
+
soldOut: /* @__PURE__ */ z.boolean().describe("Whether the tickets are sold out.").optional().nullable()
|
|
648
670
|
}).describe(
|
|
649
671
|
"Ticket sales information. <br> <br>\n**Note:** This field is only returned when `SALES_DETAILS` is specified in `field` in the request."
|
|
650
672
|
).optional(),
|
|
651
|
-
limitPerCheckout: z.number().int().describe(
|
|
673
|
+
limitPerCheckout: /* @__PURE__ */ z.number().int().describe(
|
|
652
674
|
"Number of tickets that can be purchased per checkout. <br> <br>\n**Note:** If the `actualLimit` or `salesDetails.unsoldCount` field value is smaller than `limitPerCheckout`, then it overrides this field."
|
|
653
675
|
).min(0).max(50).optional().nullable(),
|
|
654
|
-
extendedFields: z.object({
|
|
655
|
-
namespaces:
|
|
676
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
677
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
678
|
+
/* @__PURE__ */ z.string(),
|
|
679
|
+
/* @__PURE__ */ z.record(
|
|
680
|
+
/* @__PURE__ */ z.string(),
|
|
681
|
+
/* @__PURE__ */ z.any()
|
|
682
|
+
)
|
|
683
|
+
).describe(
|
|
656
684
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
657
685
|
).optional()
|
|
658
686
|
}).describe("Data extensions.").optional(),
|
|
659
|
-
eventDetails: z.object({
|
|
660
|
-
title: z.string().describe("Event title.").min(1).max(120).optional().nullable(),
|
|
661
|
-
shortDescription: z.string().describe("Short description of the event.").max(500).optional().nullable(),
|
|
662
|
-
location: z.object({
|
|
663
|
-
name: z.string().describe(
|
|
687
|
+
eventDetails: /* @__PURE__ */ z.object({
|
|
688
|
+
title: /* @__PURE__ */ z.string().describe("Event title.").min(1).max(120).optional().nullable(),
|
|
689
|
+
shortDescription: /* @__PURE__ */ z.string().describe("Short description of the event.").max(500).optional().nullable(),
|
|
690
|
+
location: /* @__PURE__ */ z.object({
|
|
691
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
664
692
|
"Location name. This value is displayed instead of the address when the location is defined as TBD by setting the `locationTbd` property to `true`."
|
|
665
693
|
).max(50).optional().nullable(),
|
|
666
|
-
type: z.enum(["VENUE", "ONLINE"]).optional(),
|
|
667
|
-
address: z.object({
|
|
668
|
-
city: z.string().optional().nullable(),
|
|
669
|
-
subdivision: z.string().optional().nullable(),
|
|
670
|
-
country: z.string().optional().nullable(),
|
|
671
|
-
postalCode: z.string().optional().nullable(),
|
|
672
|
-
addressLine1: z.string().optional().nullable(),
|
|
673
|
-
addressLine2: z.string().optional().nullable()
|
|
694
|
+
type: /* @__PURE__ */ z.enum(["VENUE", "ONLINE"]).optional(),
|
|
695
|
+
address: /* @__PURE__ */ z.object({
|
|
696
|
+
city: /* @__PURE__ */ z.string().optional().nullable(),
|
|
697
|
+
subdivision: /* @__PURE__ */ z.string().optional().nullable(),
|
|
698
|
+
country: /* @__PURE__ */ z.string().optional().nullable(),
|
|
699
|
+
postalCode: /* @__PURE__ */ z.string().optional().nullable(),
|
|
700
|
+
addressLine1: /* @__PURE__ */ z.string().optional().nullable(),
|
|
701
|
+
addressLine2: /* @__PURE__ */ z.string().optional().nullable()
|
|
674
702
|
}).describe("Exact location address.").optional(),
|
|
675
|
-
locationTbd: z.boolean().describe("Whether the event location is TBD.").optional().nullable()
|
|
703
|
+
locationTbd: /* @__PURE__ */ z.boolean().describe("Whether the event location is TBD.").optional().nullable()
|
|
676
704
|
}).describe("Event location.").optional(),
|
|
677
|
-
dateAndTimeSettings: z.object({
|
|
678
|
-
dateAndTimeTbd: z.boolean().describe("Whether the event date and time are TBD.").optional().nullable(),
|
|
679
|
-
dateAndTimeTbdMessage: z.string().describe(
|
|
705
|
+
dateAndTimeSettings: /* @__PURE__ */ z.object({
|
|
706
|
+
dateAndTimeTbd: /* @__PURE__ */ z.boolean().describe("Whether the event date and time are TBD.").optional().nullable(),
|
|
707
|
+
dateAndTimeTbdMessage: /* @__PURE__ */ z.string().describe(
|
|
680
708
|
"Message that is displayed when time and date is TBD.\n\n**Note:** This field is only used when the `dateAndTimeTbd` field value is `true`."
|
|
681
709
|
).max(100).optional().nullable(),
|
|
682
|
-
startDate: z.date().describe(
|
|
710
|
+
startDate: /* @__PURE__ */ z.date().describe(
|
|
683
711
|
"Event start date.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
684
712
|
).optional().nullable(),
|
|
685
|
-
endDate: z.date().describe(
|
|
713
|
+
endDate: /* @__PURE__ */ z.date().describe(
|
|
686
714
|
"Event end date.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
687
715
|
).optional().nullable(),
|
|
688
|
-
timeZoneId: z.string().describe(
|
|
716
|
+
timeZoneId: /* @__PURE__ */ z.string().describe(
|
|
689
717
|
"Event time zone ID in the [TZ database](https://www.iana.org/time-zones) format.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
690
718
|
).max(100).optional().nullable(),
|
|
691
|
-
hideEndDate: z.boolean().describe(
|
|
719
|
+
hideEndDate: /* @__PURE__ */ z.boolean().describe(
|
|
692
720
|
"Whether the end date is hidden in the formatted date and time."
|
|
693
721
|
).optional().nullable(),
|
|
694
|
-
showTimeZone: z.boolean().describe(
|
|
722
|
+
showTimeZone: /* @__PURE__ */ z.boolean().describe(
|
|
695
723
|
"Whether the time zone is displayed in the formatted schedule."
|
|
696
724
|
).optional().nullable(),
|
|
697
|
-
recurrenceStatus: z.enum([
|
|
725
|
+
recurrenceStatus: /* @__PURE__ */ z.enum([
|
|
698
726
|
"ONE_TIME",
|
|
699
727
|
"RECURRING",
|
|
700
728
|
"RECURRING_UPCOMING",
|
|
701
729
|
"RECURRING_RECENTLY_ENDED",
|
|
702
730
|
"RECURRING_RECENTLY_CANCELED"
|
|
703
731
|
]).optional(),
|
|
704
|
-
recurringEvents: z.object({
|
|
705
|
-
individualEventDates: z.array(
|
|
706
|
-
z.object({
|
|
707
|
-
startDate: z.date().describe("Event start date.").optional().nullable(),
|
|
708
|
-
endDate: z.date().describe("Event end date.").optional().nullable(),
|
|
709
|
-
timeZoneId: z.string().describe(
|
|
732
|
+
recurringEvents: /* @__PURE__ */ z.object({
|
|
733
|
+
individualEventDates: /* @__PURE__ */ z.array(
|
|
734
|
+
/* @__PURE__ */ z.object({
|
|
735
|
+
startDate: /* @__PURE__ */ z.date().describe("Event start date.").optional().nullable(),
|
|
736
|
+
endDate: /* @__PURE__ */ z.date().describe("Event end date.").optional().nullable(),
|
|
737
|
+
timeZoneId: /* @__PURE__ */ z.string().describe(
|
|
710
738
|
"Event time zone ID in the [TZ database](https://www.iana.org/time-zones) format."
|
|
711
739
|
).max(100).optional().nullable(),
|
|
712
|
-
showTimeZone: z.boolean().describe(
|
|
740
|
+
showTimeZone: /* @__PURE__ */ z.boolean().describe(
|
|
713
741
|
"Whether the time zone is displayed in a formatted schedule."
|
|
714
742
|
).optional()
|
|
715
743
|
})
|
|
716
744
|
).max(1e3).optional(),
|
|
717
|
-
categoryId: z.string().describe(
|
|
745
|
+
categoryId: /* @__PURE__ */ z.string().describe(
|
|
718
746
|
"Recurring event category ID.\n\nThis read-only field is automatically generated and shared by all events in a recurring series. Use this ID to query and retrieve all occurrences of a recurring event."
|
|
719
747
|
).max(100).optional().nullable()
|
|
720
748
|
}).describe("Event repetitions.").optional(),
|
|
721
|
-
formatted: z.object({
|
|
722
|
-
dateAndTime: z.string().describe(
|
|
749
|
+
formatted: /* @__PURE__ */ z.object({
|
|
750
|
+
dateAndTime: /* @__PURE__ */ z.string().describe(
|
|
723
751
|
"Formatted date and time representation. <br>\nExample of formatting when an event lasts multiple days and is in the UTC time zone: `September 1, 2015 at 10:20 AM \u2013 September 5, 2015 at 12:14 PM`. <br>\nExample of formatting when an event lasts 1 day and is in the GMT+2 time zone: `February 1, 2018, 12:10 \u2013 2:50 PM GMT+2`."
|
|
724
752
|
).max(500).optional().nullable(),
|
|
725
|
-
startDate: z.string().describe(
|
|
753
|
+
startDate: /* @__PURE__ */ z.string().describe(
|
|
726
754
|
"Formatted start date of the event. Empty for TBD schedules."
|
|
727
755
|
).max(500).optional().nullable(),
|
|
728
|
-
startTime: z.string().describe(
|
|
756
|
+
startTime: /* @__PURE__ */ z.string().describe(
|
|
729
757
|
"Formatted start time of the event. Empty for TBD schedules."
|
|
730
758
|
).max(500).optional().nullable(),
|
|
731
|
-
endDate: z.string().describe(
|
|
759
|
+
endDate: /* @__PURE__ */ z.string().describe(
|
|
732
760
|
"Formatted end date of the event. Empty for TBD schedules or when the end date is hidden."
|
|
733
761
|
).max(500).optional().nullable(),
|
|
734
|
-
endTime: z.string().describe(
|
|
762
|
+
endTime: /* @__PURE__ */ z.string().describe(
|
|
735
763
|
"Formatted end time of the event. Empty for TBD schedules or when the end date is hidden."
|
|
736
764
|
).max(500).optional().nullable()
|
|
737
765
|
}).describe("Formatted date and time settings.").optional()
|
|
738
766
|
}).describe("Event date and time settings.").optional(),
|
|
739
|
-
eventPageUrl: z.string().describe("Event page URL components.").optional(),
|
|
740
|
-
status: z.enum(["UPCOMING", "STARTED", "ENDED", "CANCELED", "DRAFT"]).optional()
|
|
767
|
+
eventPageUrl: /* @__PURE__ */ z.string().describe("Event page URL components.").optional(),
|
|
768
|
+
status: /* @__PURE__ */ z.enum(["UPCOMING", "STARTED", "ENDED", "CANCELED", "DRAFT"]).optional()
|
|
741
769
|
}).describe(
|
|
742
770
|
"Information about the even the ticket is for. <br>\n**Note:** This field is only returned when `EVENT_DETAILS` is specified in `field` in the request."
|
|
743
771
|
).optional(),
|
|
744
|
-
seatingDetails: z.object({
|
|
745
|
-
places: z.array(
|
|
746
|
-
z.object({
|
|
747
|
-
placeId: z.string().describe(
|
|
772
|
+
seatingDetails: /* @__PURE__ */ z.object({
|
|
773
|
+
places: /* @__PURE__ */ z.array(
|
|
774
|
+
/* @__PURE__ */ z.object({
|
|
775
|
+
placeId: /* @__PURE__ */ z.string().describe(
|
|
748
776
|
"Place ID in the format `{sectionId}-{elementId}-{label}`. For example, `0-1-A5`."
|
|
749
777
|
).min(1).max(20).optional(),
|
|
750
|
-
label: z.string().describe(
|
|
778
|
+
label: /* @__PURE__ */ z.string().describe(
|
|
751
779
|
"Human-readable label for this place, such as `A1`, `12`, or `VIP1`."
|
|
752
780
|
).min(1).max(4).optional(),
|
|
753
|
-
sectionLabel: z.string().describe(
|
|
781
|
+
sectionLabel: /* @__PURE__ */ z.string().describe(
|
|
754
782
|
"High-level division of the venue, where the place is located, such as `Orchestra`, `Balcony`, or `VIP Section`."
|
|
755
783
|
).min(1).max(20).optional().nullable(),
|
|
756
|
-
elementLabel: z.string().describe(
|
|
784
|
+
elementLabel: /* @__PURE__ */ z.string().describe(
|
|
757
785
|
"Seating element within the section, such as `Row`, `Table`, or `General Admission`."
|
|
758
786
|
).min(1).max(50).optional().nullable(),
|
|
759
|
-
availableCapacity: z.number().int().describe(
|
|
787
|
+
availableCapacity: /* @__PURE__ */ z.number().int().describe(
|
|
760
788
|
"Available capacity at this place.\n\nFor general seating type returns the number of remaining spots.\n\nFor other types returns `1`. For example, if a table has 5 chairs, each chair is treated as a separate place, which has a capacity of 1."
|
|
761
789
|
).min(0).max(5e4).optional()
|
|
762
790
|
})
|
|
@@ -765,94 +793,100 @@ var UpdateTicketDefinitionRequest = /* @__PURE__ */ z.object({
|
|
|
765
793
|
"Seating information including available seats and areas for this ticket definition. <br>\n**Note:** This field is only returned when `SEATING_DETAILS` is specified in `field` in the request, and when the event has a [seating plan](https://support.wix.com/en/article/wix-events-creating-a-seating-map)."
|
|
766
794
|
).optional()
|
|
767
795
|
}).describe("Ticket definition to update."),
|
|
768
|
-
options: z.object({
|
|
769
|
-
fields: z.array(
|
|
796
|
+
options: /* @__PURE__ */ z.object({
|
|
797
|
+
fields: /* @__PURE__ */ z.array(
|
|
798
|
+
/* @__PURE__ */ z.enum([
|
|
799
|
+
"SALES_DETAILS",
|
|
800
|
+
"EVENT_DETAILS",
|
|
801
|
+
"SEATING_DETAILS"
|
|
802
|
+
])
|
|
803
|
+
).max(5).optional()
|
|
770
804
|
}).describe("Optional fields.").optional()
|
|
771
805
|
});
|
|
772
806
|
var UpdateTicketDefinitionResponse = /* @__PURE__ */ z.object({
|
|
773
|
-
_id: z.string().describe("Ticket definition ID.").regex(
|
|
807
|
+
_id: /* @__PURE__ */ z.string().describe("Ticket definition ID.").regex(
|
|
774
808
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
775
809
|
"Must be a valid GUID"
|
|
776
810
|
).optional().nullable(),
|
|
777
|
-
eventId: z.string().describe("Event ID to which the ticket definition belongs.").regex(
|
|
811
|
+
eventId: /* @__PURE__ */ z.string().describe("Event ID to which the ticket definition belongs.").regex(
|
|
778
812
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
779
813
|
"Must be a valid GUID"
|
|
780
814
|
).optional().nullable(),
|
|
781
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
815
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
782
816
|
"Revision number, which increments by 1 each time the ticket definition is updated. To prevent conflicting changes, the existing `revision` must be used when updating a ticket definition."
|
|
783
817
|
).optional().nullable(),
|
|
784
|
-
_createdDate: z.date().describe("Date and time the ticket definition was created.").optional().nullable(),
|
|
785
|
-
_updatedDate: z.date().describe("Date and time the ticket definition was updated.").optional().nullable(),
|
|
786
|
-
name: z.string().describe("Ticket definition name.").min(1).max(30).optional().nullable(),
|
|
787
|
-
description: z.string().describe("Ticket definition description.").max(500).optional().nullable(),
|
|
788
|
-
policyText: z.string().describe("Ticket definition policy.").max(1e3).optional().nullable(),
|
|
789
|
-
hidden: z.boolean().describe(
|
|
818
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the ticket definition was created.").optional().nullable(),
|
|
819
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the ticket definition was updated.").optional().nullable(),
|
|
820
|
+
name: /* @__PURE__ */ z.string().describe("Ticket definition name.").min(1).max(30).optional().nullable(),
|
|
821
|
+
description: /* @__PURE__ */ z.string().describe("Ticket definition description.").max(500).optional().nullable(),
|
|
822
|
+
policyText: /* @__PURE__ */ z.string().describe("Ticket definition policy.").max(1e3).optional().nullable(),
|
|
823
|
+
hidden: /* @__PURE__ */ z.boolean().describe(
|
|
790
824
|
"Whether this ticket definition is hidden from site visitors and can't be purchased."
|
|
791
825
|
).optional(),
|
|
792
|
-
limited: z.boolean().describe("Whether the ticket has a limited maximum quantity.").optional(),
|
|
793
|
-
initialLimit: z.number().int().describe(
|
|
826
|
+
limited: /* @__PURE__ */ z.boolean().describe("Whether the ticket has a limited maximum quantity.").optional(),
|
|
827
|
+
initialLimit: /* @__PURE__ */ z.number().int().describe(
|
|
794
828
|
"The maximum number of tickets that can be sold for the event when first defining the event. If a seating map is defined after you created a ticket definition, this property is ignored and `actualLimit` is used instead. To create unlimited tickets, skip this field in the request."
|
|
795
829
|
).optional().nullable(),
|
|
796
|
-
actualLimit: z.number().int().describe(
|
|
830
|
+
actualLimit: /* @__PURE__ */ z.number().int().describe(
|
|
797
831
|
"The maximum number of tickets that can be sold for the event after adding a seating map to the event. If no seating map is defined, this property is the same as `initialLimit`."
|
|
798
832
|
).optional().nullable(),
|
|
799
|
-
pricingMethod: z.intersection(
|
|
800
|
-
z.object({
|
|
801
|
-
pricingType: z.enum(["STANDARD", "DONATION"]).describe("Ticket price type.").optional(),
|
|
802
|
-
free: z.boolean().describe(
|
|
833
|
+
pricingMethod: /* @__PURE__ */ z.intersection(
|
|
834
|
+
/* @__PURE__ */ z.object({
|
|
835
|
+
pricingType: /* @__PURE__ */ z.enum(["STANDARD", "DONATION"]).describe("Ticket price type.").optional(),
|
|
836
|
+
free: /* @__PURE__ */ z.boolean().describe(
|
|
803
837
|
'Whether the ticket is free. To create a free ticket, enter `"0"` in `pricingMethod.fixedPrice.value`.'
|
|
804
838
|
).optional()
|
|
805
839
|
}),
|
|
806
|
-
z.xor([
|
|
807
|
-
z.object({
|
|
808
|
-
fixedPrice: z.never().optional(),
|
|
809
|
-
guestPrice: z.never().optional(),
|
|
810
|
-
pricingOptions: z.never().optional()
|
|
840
|
+
/* @__PURE__ */ z.xor([
|
|
841
|
+
/* @__PURE__ */ z.object({
|
|
842
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
843
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
844
|
+
pricingOptions: /* @__PURE__ */ z.never().optional()
|
|
811
845
|
}),
|
|
812
|
-
z.object({
|
|
813
|
-
guestPrice: z.never().optional(),
|
|
814
|
-
pricingOptions: z.never().optional(),
|
|
815
|
-
fixedPrice: z.object({
|
|
816
|
-
value: z.string().describe(
|
|
846
|
+
/* @__PURE__ */ z.object({
|
|
847
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
848
|
+
pricingOptions: /* @__PURE__ */ z.never().optional(),
|
|
849
|
+
fixedPrice: /* @__PURE__ */ z.object({
|
|
850
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
817
851
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
818
852
|
).optional(),
|
|
819
|
-
currency: z.string().describe(
|
|
853
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
820
854
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
821
855
|
).optional()
|
|
822
856
|
}).describe("Same ticket price for everyone.")
|
|
823
857
|
}),
|
|
824
|
-
z.object({
|
|
825
|
-
fixedPrice: z.never().optional(),
|
|
826
|
-
pricingOptions: z.never().optional(),
|
|
827
|
-
guestPrice: z.object({
|
|
828
|
-
value: z.string().describe(
|
|
858
|
+
/* @__PURE__ */ z.object({
|
|
859
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
860
|
+
pricingOptions: /* @__PURE__ */ z.never().optional(),
|
|
861
|
+
guestPrice: /* @__PURE__ */ z.object({
|
|
862
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
829
863
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
830
864
|
).optional(),
|
|
831
|
-
currency: z.string().describe(
|
|
865
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
832
866
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
833
867
|
).optional()
|
|
834
868
|
}).describe(
|
|
835
869
|
'Guests choose how much they\'d like to pay for the ticket. You can set the minimum price, or specify `"0"` in the request to make the ticket free. The price can be updated to a higher amount by a guest during the checkout.'
|
|
836
870
|
)
|
|
837
871
|
}),
|
|
838
|
-
z.object({
|
|
839
|
-
fixedPrice: z.never().optional(),
|
|
840
|
-
guestPrice: z.never().optional(),
|
|
841
|
-
pricingOptions: z.object({
|
|
842
|
-
optionDetails: z.array(
|
|
843
|
-
z.object({
|
|
844
|
-
optionId: z.string().describe("Ticket price option ID.").regex(
|
|
872
|
+
/* @__PURE__ */ z.object({
|
|
873
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
874
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
875
|
+
pricingOptions: /* @__PURE__ */ z.object({
|
|
876
|
+
optionDetails: /* @__PURE__ */ z.array(
|
|
877
|
+
/* @__PURE__ */ z.object({
|
|
878
|
+
optionId: /* @__PURE__ */ z.string().describe("Ticket price option ID.").regex(
|
|
845
879
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
846
880
|
"Must be a valid GUID"
|
|
847
881
|
).optional().nullable(),
|
|
848
|
-
name: z.string().describe(
|
|
882
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
849
883
|
'Ticket price option name, such as "Child Ticket".'
|
|
850
884
|
).min(1).max(200).optional().nullable(),
|
|
851
|
-
price: z.object({
|
|
852
|
-
value: z.string().describe(
|
|
885
|
+
price: /* @__PURE__ */ z.object({
|
|
886
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
853
887
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
854
888
|
).optional(),
|
|
855
|
-
currency: z.string().describe(
|
|
889
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
856
890
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
857
891
|
).optional()
|
|
858
892
|
}).describe("Ticket price.").optional()
|
|
@@ -864,136 +898,142 @@ var UpdateTicketDefinitionResponse = /* @__PURE__ */ z.object({
|
|
|
864
898
|
})
|
|
865
899
|
])
|
|
866
900
|
).describe("Ticket pricing method.").optional(),
|
|
867
|
-
feeType: z.enum(["FEE_INCLUDED", "FEE_ADDED_AT_CHECKOUT", "NO_FEE"]).describe("Type of ticket service fee to collect.").optional(),
|
|
868
|
-
salePeriod: z.object({
|
|
869
|
-
startDate: z.date().describe(
|
|
901
|
+
feeType: /* @__PURE__ */ z.enum(["FEE_INCLUDED", "FEE_ADDED_AT_CHECKOUT", "NO_FEE"]).describe("Type of ticket service fee to collect.").optional(),
|
|
902
|
+
salePeriod: /* @__PURE__ */ z.object({
|
|
903
|
+
startDate: /* @__PURE__ */ z.date().describe(
|
|
870
904
|
"Date and time the ticket sale starts. Rounded down to the nearest minute."
|
|
871
905
|
).optional().nullable(),
|
|
872
|
-
endDate: z.date().describe(
|
|
906
|
+
endDate: /* @__PURE__ */ z.date().describe(
|
|
873
907
|
"Date and time the ticket sale ends. Rounded down to the nearest minute."
|
|
874
908
|
).optional().nullable(),
|
|
875
|
-
displayNotOnSale: z.boolean().describe("Whether to display the ticket if it's not available to buy.").optional()
|
|
909
|
+
displayNotOnSale: /* @__PURE__ */ z.boolean().describe("Whether to display the ticket if it's not available to buy.").optional()
|
|
876
910
|
}).describe("Ticket sale period.").optional(),
|
|
877
|
-
saleStatus: z.enum(["SALE_SCHEDULED", "SALE_STARTED", "SALE_ENDED"]).describe("Ticket sale status.").optional(),
|
|
878
|
-
salesDetails: z.object({
|
|
879
|
-
unsoldCount: z.number().int().describe(
|
|
911
|
+
saleStatus: /* @__PURE__ */ z.enum(["SALE_SCHEDULED", "SALE_STARTED", "SALE_ENDED"]).describe("Ticket sale status.").optional(),
|
|
912
|
+
salesDetails: /* @__PURE__ */ z.object({
|
|
913
|
+
unsoldCount: /* @__PURE__ */ z.number().int().describe(
|
|
880
914
|
"Number of tickets that haven't been purchased yet. The field is `null` if the ticket quantity is unlimited."
|
|
881
915
|
).optional().nullable(),
|
|
882
|
-
soldCount: z.number().int().describe("Number of purchased tickets.").optional().nullable(),
|
|
883
|
-
reservedCount: z.number().int().describe("Number of reserved tickets.").optional().nullable(),
|
|
884
|
-
soldOut: z.boolean().describe("Whether the tickets are sold out.").optional().nullable()
|
|
916
|
+
soldCount: /* @__PURE__ */ z.number().int().describe("Number of purchased tickets.").optional().nullable(),
|
|
917
|
+
reservedCount: /* @__PURE__ */ z.number().int().describe("Number of reserved tickets.").optional().nullable(),
|
|
918
|
+
soldOut: /* @__PURE__ */ z.boolean().describe("Whether the tickets are sold out.").optional().nullable()
|
|
885
919
|
}).describe(
|
|
886
920
|
"Ticket sales information. <br> <br>\n**Note:** This field is only returned when `SALES_DETAILS` is specified in `field` in the request."
|
|
887
921
|
).optional(),
|
|
888
|
-
limitPerCheckout: z.number().int().describe(
|
|
922
|
+
limitPerCheckout: /* @__PURE__ */ z.number().int().describe(
|
|
889
923
|
"Number of tickets that can be purchased per checkout. <br> <br>\n**Note:** If the `actualLimit` or `salesDetails.unsoldCount` field value is smaller than `limitPerCheckout`, then it overrides this field."
|
|
890
924
|
).min(0).max(50).optional().nullable(),
|
|
891
|
-
extendedFields: z.object({
|
|
892
|
-
namespaces:
|
|
925
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
926
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
927
|
+
/* @__PURE__ */ z.string(),
|
|
928
|
+
/* @__PURE__ */ z.record(
|
|
929
|
+
/* @__PURE__ */ z.string(),
|
|
930
|
+
/* @__PURE__ */ z.any()
|
|
931
|
+
)
|
|
932
|
+
).describe(
|
|
893
933
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
894
934
|
).optional()
|
|
895
935
|
}).describe("Data extensions.").optional(),
|
|
896
|
-
eventDetails: z.object({
|
|
897
|
-
title: z.string().describe("Event title.").min(1).max(120).optional().nullable(),
|
|
898
|
-
shortDescription: z.string().describe("Short description of the event.").max(500).optional().nullable(),
|
|
899
|
-
location: z.object({
|
|
900
|
-
name: z.string().describe(
|
|
936
|
+
eventDetails: /* @__PURE__ */ z.object({
|
|
937
|
+
title: /* @__PURE__ */ z.string().describe("Event title.").min(1).max(120).optional().nullable(),
|
|
938
|
+
shortDescription: /* @__PURE__ */ z.string().describe("Short description of the event.").max(500).optional().nullable(),
|
|
939
|
+
location: /* @__PURE__ */ z.object({
|
|
940
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
901
941
|
"Location name. This value is displayed instead of the address when the location is defined as TBD by setting the `locationTbd` property to `true`."
|
|
902
942
|
).max(50).optional().nullable(),
|
|
903
|
-
type: z.enum(["VENUE", "ONLINE"]).describe("Location type.").optional(),
|
|
904
|
-
address: z.object({
|
|
905
|
-
city: z.string().optional().nullable(),
|
|
906
|
-
subdivision: z.string().optional().nullable(),
|
|
907
|
-
country: z.string().optional().nullable(),
|
|
908
|
-
postalCode: z.string().optional().nullable(),
|
|
909
|
-
addressLine1: z.string().optional().nullable(),
|
|
910
|
-
addressLine2: z.string().optional().nullable()
|
|
943
|
+
type: /* @__PURE__ */ z.enum(["VENUE", "ONLINE"]).describe("Location type.").optional(),
|
|
944
|
+
address: /* @__PURE__ */ z.object({
|
|
945
|
+
city: /* @__PURE__ */ z.string().optional().nullable(),
|
|
946
|
+
subdivision: /* @__PURE__ */ z.string().optional().nullable(),
|
|
947
|
+
country: /* @__PURE__ */ z.string().optional().nullable(),
|
|
948
|
+
postalCode: /* @__PURE__ */ z.string().optional().nullable(),
|
|
949
|
+
addressLine1: /* @__PURE__ */ z.string().optional().nullable(),
|
|
950
|
+
addressLine2: /* @__PURE__ */ z.string().optional().nullable()
|
|
911
951
|
}).describe("Exact location address.").optional(),
|
|
912
|
-
locationTbd: z.boolean().describe("Whether the event location is TBD.").optional().nullable()
|
|
952
|
+
locationTbd: /* @__PURE__ */ z.boolean().describe("Whether the event location is TBD.").optional().nullable()
|
|
913
953
|
}).describe("Event location.").optional(),
|
|
914
|
-
dateAndTimeSettings: z.object({
|
|
915
|
-
dateAndTimeTbd: z.boolean().describe("Whether the event date and time are TBD.").optional().nullable(),
|
|
916
|
-
dateAndTimeTbdMessage: z.string().describe(
|
|
954
|
+
dateAndTimeSettings: /* @__PURE__ */ z.object({
|
|
955
|
+
dateAndTimeTbd: /* @__PURE__ */ z.boolean().describe("Whether the event date and time are TBD.").optional().nullable(),
|
|
956
|
+
dateAndTimeTbdMessage: /* @__PURE__ */ z.string().describe(
|
|
917
957
|
"Message that is displayed when time and date is TBD.\n\n**Note:** This field is only used when the `dateAndTimeTbd` field value is `true`."
|
|
918
958
|
).max(100).optional().nullable(),
|
|
919
|
-
startDate: z.date().describe(
|
|
959
|
+
startDate: /* @__PURE__ */ z.date().describe(
|
|
920
960
|
"Event start date.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
921
961
|
).optional().nullable(),
|
|
922
|
-
endDate: z.date().describe(
|
|
962
|
+
endDate: /* @__PURE__ */ z.date().describe(
|
|
923
963
|
"Event end date.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
924
964
|
).optional().nullable(),
|
|
925
|
-
timeZoneId: z.string().describe(
|
|
965
|
+
timeZoneId: /* @__PURE__ */ z.string().describe(
|
|
926
966
|
"Event time zone ID in the [TZ database](https://www.iana.org/time-zones) format.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
927
967
|
).max(100).optional().nullable(),
|
|
928
|
-
hideEndDate: z.boolean().describe(
|
|
968
|
+
hideEndDate: /* @__PURE__ */ z.boolean().describe(
|
|
929
969
|
"Whether the end date is hidden in the formatted date and time."
|
|
930
970
|
).optional().nullable(),
|
|
931
|
-
showTimeZone: z.boolean().describe(
|
|
971
|
+
showTimeZone: /* @__PURE__ */ z.boolean().describe(
|
|
932
972
|
"Whether the time zone is displayed in the formatted schedule."
|
|
933
973
|
).optional().nullable(),
|
|
934
|
-
recurrenceStatus: z.enum([
|
|
974
|
+
recurrenceStatus: /* @__PURE__ */ z.enum([
|
|
935
975
|
"ONE_TIME",
|
|
936
976
|
"RECURRING",
|
|
937
977
|
"RECURRING_UPCOMING",
|
|
938
978
|
"RECURRING_RECENTLY_ENDED",
|
|
939
979
|
"RECURRING_RECENTLY_CANCELED"
|
|
940
980
|
]).describe("Repeating event status.").optional(),
|
|
941
|
-
recurringEvents: z.object({
|
|
942
|
-
individualEventDates: z.array(
|
|
943
|
-
z.object({
|
|
944
|
-
startDate: z.date().describe("Event start date.").optional().nullable(),
|
|
945
|
-
endDate: z.date().describe("Event end date.").optional().nullable(),
|
|
946
|
-
timeZoneId: z.string().describe(
|
|
981
|
+
recurringEvents: /* @__PURE__ */ z.object({
|
|
982
|
+
individualEventDates: /* @__PURE__ */ z.array(
|
|
983
|
+
/* @__PURE__ */ z.object({
|
|
984
|
+
startDate: /* @__PURE__ */ z.date().describe("Event start date.").optional().nullable(),
|
|
985
|
+
endDate: /* @__PURE__ */ z.date().describe("Event end date.").optional().nullable(),
|
|
986
|
+
timeZoneId: /* @__PURE__ */ z.string().describe(
|
|
947
987
|
"Event time zone ID in the [TZ database](https://www.iana.org/time-zones) format."
|
|
948
988
|
).max(100).optional().nullable(),
|
|
949
|
-
showTimeZone: z.boolean().describe(
|
|
989
|
+
showTimeZone: /* @__PURE__ */ z.boolean().describe(
|
|
950
990
|
"Whether the time zone is displayed in a formatted schedule."
|
|
951
991
|
).optional()
|
|
952
992
|
})
|
|
953
993
|
).max(1e3).optional(),
|
|
954
|
-
categoryId: z.string().describe(
|
|
994
|
+
categoryId: /* @__PURE__ */ z.string().describe(
|
|
955
995
|
"Recurring event category ID.\n\nThis read-only field is automatically generated and shared by all events in a recurring series. Use this ID to query and retrieve all occurrences of a recurring event."
|
|
956
996
|
).max(100).optional().nullable()
|
|
957
997
|
}).describe("Event repetitions.").optional(),
|
|
958
|
-
formatted: z.object({
|
|
959
|
-
dateAndTime: z.string().describe(
|
|
998
|
+
formatted: /* @__PURE__ */ z.object({
|
|
999
|
+
dateAndTime: /* @__PURE__ */ z.string().describe(
|
|
960
1000
|
"Formatted date and time representation. <br>\nExample of formatting when an event lasts multiple days and is in the UTC time zone: `September 1, 2015 at 10:20 AM \u2013 September 5, 2015 at 12:14 PM`. <br>\nExample of formatting when an event lasts 1 day and is in the GMT+2 time zone: `February 1, 2018, 12:10 \u2013 2:50 PM GMT+2`."
|
|
961
1001
|
).max(500).optional().nullable(),
|
|
962
|
-
startDate: z.string().describe(
|
|
1002
|
+
startDate: /* @__PURE__ */ z.string().describe(
|
|
963
1003
|
"Formatted start date of the event. Empty for TBD schedules."
|
|
964
1004
|
).max(500).optional().nullable(),
|
|
965
|
-
startTime: z.string().describe(
|
|
1005
|
+
startTime: /* @__PURE__ */ z.string().describe(
|
|
966
1006
|
"Formatted start time of the event. Empty for TBD schedules."
|
|
967
1007
|
).max(500).optional().nullable(),
|
|
968
|
-
endDate: z.string().describe(
|
|
1008
|
+
endDate: /* @__PURE__ */ z.string().describe(
|
|
969
1009
|
"Formatted end date of the event. Empty for TBD schedules or when the end date is hidden."
|
|
970
1010
|
).max(500).optional().nullable(),
|
|
971
|
-
endTime: z.string().describe(
|
|
1011
|
+
endTime: /* @__PURE__ */ z.string().describe(
|
|
972
1012
|
"Formatted end time of the event. Empty for TBD schedules or when the end date is hidden."
|
|
973
1013
|
).max(500).optional().nullable()
|
|
974
1014
|
}).describe("Formatted date and time settings.").optional()
|
|
975
1015
|
}).describe("Event date and time settings.").optional(),
|
|
976
|
-
eventPageUrl: z.string().describe("Event page URL components.").optional(),
|
|
977
|
-
status: z.enum(["UPCOMING", "STARTED", "ENDED", "CANCELED", "DRAFT"]).describe("Event status.").optional()
|
|
1016
|
+
eventPageUrl: /* @__PURE__ */ z.string().describe("Event page URL components.").optional(),
|
|
1017
|
+
status: /* @__PURE__ */ z.enum(["UPCOMING", "STARTED", "ENDED", "CANCELED", "DRAFT"]).describe("Event status.").optional()
|
|
978
1018
|
}).describe(
|
|
979
1019
|
"Information about the even the ticket is for. <br>\n**Note:** This field is only returned when `EVENT_DETAILS` is specified in `field` in the request."
|
|
980
1020
|
).optional(),
|
|
981
|
-
seatingDetails: z.object({
|
|
982
|
-
places: z.array(
|
|
983
|
-
z.object({
|
|
984
|
-
placeId: z.string().describe(
|
|
1021
|
+
seatingDetails: /* @__PURE__ */ z.object({
|
|
1022
|
+
places: /* @__PURE__ */ z.array(
|
|
1023
|
+
/* @__PURE__ */ z.object({
|
|
1024
|
+
placeId: /* @__PURE__ */ z.string().describe(
|
|
985
1025
|
"Place ID in the format `{sectionId}-{elementId}-{label}`. For example, `0-1-A5`."
|
|
986
1026
|
).min(1).max(20).optional(),
|
|
987
|
-
label: z.string().describe(
|
|
1027
|
+
label: /* @__PURE__ */ z.string().describe(
|
|
988
1028
|
"Human-readable label for this place, such as `A1`, `12`, or `VIP1`."
|
|
989
1029
|
).min(1).max(4).optional(),
|
|
990
|
-
sectionLabel: z.string().describe(
|
|
1030
|
+
sectionLabel: /* @__PURE__ */ z.string().describe(
|
|
991
1031
|
"High-level division of the venue, where the place is located, such as `Orchestra`, `Balcony`, or `VIP Section`."
|
|
992
1032
|
).min(1).max(20).optional().nullable(),
|
|
993
|
-
elementLabel: z.string().describe(
|
|
1033
|
+
elementLabel: /* @__PURE__ */ z.string().describe(
|
|
994
1034
|
"Seating element within the section, such as `Row`, `Table`, or `General Admission`."
|
|
995
1035
|
).min(1).max(50).optional().nullable(),
|
|
996
|
-
availableCapacity: z.number().int().describe(
|
|
1036
|
+
availableCapacity: /* @__PURE__ */ z.number().int().describe(
|
|
997
1037
|
"Available capacity at this place.\n\nFor general seating type returns the number of remaining spots.\n\nFor other types returns `1`. For example, if a table has 5 chairs, each chair is treated as a separate place, which has a capacity of 1."
|
|
998
1038
|
).min(0).max(5e4).optional()
|
|
999
1039
|
})
|
|
@@ -1003,98 +1043,104 @@ var UpdateTicketDefinitionResponse = /* @__PURE__ */ z.object({
|
|
|
1003
1043
|
).optional()
|
|
1004
1044
|
});
|
|
1005
1045
|
var GetTicketDefinitionRequest = /* @__PURE__ */ z.object({
|
|
1006
|
-
ticketDefinitionId: z.string().describe("Ticket definition ID.").regex(
|
|
1046
|
+
ticketDefinitionId: /* @__PURE__ */ z.string().describe("Ticket definition ID.").regex(
|
|
1007
1047
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1008
1048
|
"Must be a valid GUID"
|
|
1009
1049
|
),
|
|
1010
|
-
options: z.object({
|
|
1011
|
-
fields: z.array(
|
|
1050
|
+
options: /* @__PURE__ */ z.object({
|
|
1051
|
+
fields: /* @__PURE__ */ z.array(
|
|
1052
|
+
/* @__PURE__ */ z.enum([
|
|
1053
|
+
"SALES_DETAILS",
|
|
1054
|
+
"EVENT_DETAILS",
|
|
1055
|
+
"SEATING_DETAILS"
|
|
1056
|
+
])
|
|
1057
|
+
).max(5).optional()
|
|
1012
1058
|
}).describe("Optional fields.").optional()
|
|
1013
1059
|
});
|
|
1014
1060
|
var GetTicketDefinitionResponse = /* @__PURE__ */ z.object({
|
|
1015
|
-
_id: z.string().describe("Ticket definition ID.").regex(
|
|
1061
|
+
_id: /* @__PURE__ */ z.string().describe("Ticket definition ID.").regex(
|
|
1016
1062
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1017
1063
|
"Must be a valid GUID"
|
|
1018
1064
|
).optional().nullable(),
|
|
1019
|
-
eventId: z.string().describe("Event ID to which the ticket definition belongs.").regex(
|
|
1065
|
+
eventId: /* @__PURE__ */ z.string().describe("Event ID to which the ticket definition belongs.").regex(
|
|
1020
1066
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1021
1067
|
"Must be a valid GUID"
|
|
1022
1068
|
).optional().nullable(),
|
|
1023
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1069
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1024
1070
|
"Revision number, which increments by 1 each time the ticket definition is updated. To prevent conflicting changes, the existing `revision` must be used when updating a ticket definition."
|
|
1025
1071
|
).optional().nullable(),
|
|
1026
|
-
_createdDate: z.date().describe("Date and time the ticket definition was created.").optional().nullable(),
|
|
1027
|
-
_updatedDate: z.date().describe("Date and time the ticket definition was updated.").optional().nullable(),
|
|
1028
|
-
name: z.string().describe("Ticket definition name.").min(1).max(30).optional().nullable(),
|
|
1029
|
-
description: z.string().describe("Ticket definition description.").max(500).optional().nullable(),
|
|
1030
|
-
policyText: z.string().describe("Ticket definition policy.").max(1e3).optional().nullable(),
|
|
1031
|
-
hidden: z.boolean().describe(
|
|
1072
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the ticket definition was created.").optional().nullable(),
|
|
1073
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the ticket definition was updated.").optional().nullable(),
|
|
1074
|
+
name: /* @__PURE__ */ z.string().describe("Ticket definition name.").min(1).max(30).optional().nullable(),
|
|
1075
|
+
description: /* @__PURE__ */ z.string().describe("Ticket definition description.").max(500).optional().nullable(),
|
|
1076
|
+
policyText: /* @__PURE__ */ z.string().describe("Ticket definition policy.").max(1e3).optional().nullable(),
|
|
1077
|
+
hidden: /* @__PURE__ */ z.boolean().describe(
|
|
1032
1078
|
"Whether this ticket definition is hidden from site visitors and can't be purchased."
|
|
1033
1079
|
).optional(),
|
|
1034
|
-
limited: z.boolean().describe("Whether the ticket has a limited maximum quantity.").optional(),
|
|
1035
|
-
initialLimit: z.number().int().describe(
|
|
1080
|
+
limited: /* @__PURE__ */ z.boolean().describe("Whether the ticket has a limited maximum quantity.").optional(),
|
|
1081
|
+
initialLimit: /* @__PURE__ */ z.number().int().describe(
|
|
1036
1082
|
"The maximum number of tickets that can be sold for the event when first defining the event. If a seating map is defined after you created a ticket definition, this property is ignored and `actualLimit` is used instead. To create unlimited tickets, skip this field in the request."
|
|
1037
1083
|
).optional().nullable(),
|
|
1038
|
-
actualLimit: z.number().int().describe(
|
|
1084
|
+
actualLimit: /* @__PURE__ */ z.number().int().describe(
|
|
1039
1085
|
"The maximum number of tickets that can be sold for the event after adding a seating map to the event. If no seating map is defined, this property is the same as `initialLimit`."
|
|
1040
1086
|
).optional().nullable(),
|
|
1041
|
-
pricingMethod: z.intersection(
|
|
1042
|
-
z.object({
|
|
1043
|
-
pricingType: z.enum(["STANDARD", "DONATION"]).describe("Ticket price type.").optional(),
|
|
1044
|
-
free: z.boolean().describe(
|
|
1087
|
+
pricingMethod: /* @__PURE__ */ z.intersection(
|
|
1088
|
+
/* @__PURE__ */ z.object({
|
|
1089
|
+
pricingType: /* @__PURE__ */ z.enum(["STANDARD", "DONATION"]).describe("Ticket price type.").optional(),
|
|
1090
|
+
free: /* @__PURE__ */ z.boolean().describe(
|
|
1045
1091
|
'Whether the ticket is free. To create a free ticket, enter `"0"` in `pricingMethod.fixedPrice.value`.'
|
|
1046
1092
|
).optional()
|
|
1047
1093
|
}),
|
|
1048
|
-
z.xor([
|
|
1049
|
-
z.object({
|
|
1050
|
-
fixedPrice: z.never().optional(),
|
|
1051
|
-
guestPrice: z.never().optional(),
|
|
1052
|
-
pricingOptions: z.never().optional()
|
|
1094
|
+
/* @__PURE__ */ z.xor([
|
|
1095
|
+
/* @__PURE__ */ z.object({
|
|
1096
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
1097
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
1098
|
+
pricingOptions: /* @__PURE__ */ z.never().optional()
|
|
1053
1099
|
}),
|
|
1054
|
-
z.object({
|
|
1055
|
-
guestPrice: z.never().optional(),
|
|
1056
|
-
pricingOptions: z.never().optional(),
|
|
1057
|
-
fixedPrice: z.object({
|
|
1058
|
-
value: z.string().describe(
|
|
1100
|
+
/* @__PURE__ */ z.object({
|
|
1101
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
1102
|
+
pricingOptions: /* @__PURE__ */ z.never().optional(),
|
|
1103
|
+
fixedPrice: /* @__PURE__ */ z.object({
|
|
1104
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
1059
1105
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
1060
1106
|
).optional(),
|
|
1061
|
-
currency: z.string().describe(
|
|
1107
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
1062
1108
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
1063
1109
|
).optional()
|
|
1064
1110
|
}).describe("Same ticket price for everyone.")
|
|
1065
1111
|
}),
|
|
1066
|
-
z.object({
|
|
1067
|
-
fixedPrice: z.never().optional(),
|
|
1068
|
-
pricingOptions: z.never().optional(),
|
|
1069
|
-
guestPrice: z.object({
|
|
1070
|
-
value: z.string().describe(
|
|
1112
|
+
/* @__PURE__ */ z.object({
|
|
1113
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
1114
|
+
pricingOptions: /* @__PURE__ */ z.never().optional(),
|
|
1115
|
+
guestPrice: /* @__PURE__ */ z.object({
|
|
1116
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
1071
1117
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
1072
1118
|
).optional(),
|
|
1073
|
-
currency: z.string().describe(
|
|
1119
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
1074
1120
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
1075
1121
|
).optional()
|
|
1076
1122
|
}).describe(
|
|
1077
1123
|
'Guests choose how much they\'d like to pay for the ticket. You can set the minimum price, or specify `"0"` in the request to make the ticket free. The price can be updated to a higher amount by a guest during the checkout.'
|
|
1078
1124
|
)
|
|
1079
1125
|
}),
|
|
1080
|
-
z.object({
|
|
1081
|
-
fixedPrice: z.never().optional(),
|
|
1082
|
-
guestPrice: z.never().optional(),
|
|
1083
|
-
pricingOptions: z.object({
|
|
1084
|
-
optionDetails: z.array(
|
|
1085
|
-
z.object({
|
|
1086
|
-
optionId: z.string().describe("Ticket price option ID.").regex(
|
|
1126
|
+
/* @__PURE__ */ z.object({
|
|
1127
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
1128
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
1129
|
+
pricingOptions: /* @__PURE__ */ z.object({
|
|
1130
|
+
optionDetails: /* @__PURE__ */ z.array(
|
|
1131
|
+
/* @__PURE__ */ z.object({
|
|
1132
|
+
optionId: /* @__PURE__ */ z.string().describe("Ticket price option ID.").regex(
|
|
1087
1133
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1088
1134
|
"Must be a valid GUID"
|
|
1089
1135
|
).optional().nullable(),
|
|
1090
|
-
name: z.string().describe(
|
|
1136
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
1091
1137
|
'Ticket price option name, such as "Child Ticket".'
|
|
1092
1138
|
).min(1).max(200).optional().nullable(),
|
|
1093
|
-
price: z.object({
|
|
1094
|
-
value: z.string().describe(
|
|
1139
|
+
price: /* @__PURE__ */ z.object({
|
|
1140
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
1095
1141
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
1096
1142
|
).optional(),
|
|
1097
|
-
currency: z.string().describe(
|
|
1143
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
1098
1144
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
1099
1145
|
).optional()
|
|
1100
1146
|
}).describe("Ticket price.").optional()
|
|
@@ -1106,136 +1152,142 @@ var GetTicketDefinitionResponse = /* @__PURE__ */ z.object({
|
|
|
1106
1152
|
})
|
|
1107
1153
|
])
|
|
1108
1154
|
).describe("Ticket pricing method.").optional(),
|
|
1109
|
-
feeType: z.enum(["FEE_INCLUDED", "FEE_ADDED_AT_CHECKOUT", "NO_FEE"]).describe("Type of ticket service fee to collect.").optional(),
|
|
1110
|
-
salePeriod: z.object({
|
|
1111
|
-
startDate: z.date().describe(
|
|
1155
|
+
feeType: /* @__PURE__ */ z.enum(["FEE_INCLUDED", "FEE_ADDED_AT_CHECKOUT", "NO_FEE"]).describe("Type of ticket service fee to collect.").optional(),
|
|
1156
|
+
salePeriod: /* @__PURE__ */ z.object({
|
|
1157
|
+
startDate: /* @__PURE__ */ z.date().describe(
|
|
1112
1158
|
"Date and time the ticket sale starts. Rounded down to the nearest minute."
|
|
1113
1159
|
).optional().nullable(),
|
|
1114
|
-
endDate: z.date().describe(
|
|
1160
|
+
endDate: /* @__PURE__ */ z.date().describe(
|
|
1115
1161
|
"Date and time the ticket sale ends. Rounded down to the nearest minute."
|
|
1116
1162
|
).optional().nullable(),
|
|
1117
|
-
displayNotOnSale: z.boolean().describe("Whether to display the ticket if it's not available to buy.").optional()
|
|
1163
|
+
displayNotOnSale: /* @__PURE__ */ z.boolean().describe("Whether to display the ticket if it's not available to buy.").optional()
|
|
1118
1164
|
}).describe("Ticket sale period.").optional(),
|
|
1119
|
-
saleStatus: z.enum(["SALE_SCHEDULED", "SALE_STARTED", "SALE_ENDED"]).describe("Ticket sale status.").optional(),
|
|
1120
|
-
salesDetails: z.object({
|
|
1121
|
-
unsoldCount: z.number().int().describe(
|
|
1165
|
+
saleStatus: /* @__PURE__ */ z.enum(["SALE_SCHEDULED", "SALE_STARTED", "SALE_ENDED"]).describe("Ticket sale status.").optional(),
|
|
1166
|
+
salesDetails: /* @__PURE__ */ z.object({
|
|
1167
|
+
unsoldCount: /* @__PURE__ */ z.number().int().describe(
|
|
1122
1168
|
"Number of tickets that haven't been purchased yet. The field is `null` if the ticket quantity is unlimited."
|
|
1123
1169
|
).optional().nullable(),
|
|
1124
|
-
soldCount: z.number().int().describe("Number of purchased tickets.").optional().nullable(),
|
|
1125
|
-
reservedCount: z.number().int().describe("Number of reserved tickets.").optional().nullable(),
|
|
1126
|
-
soldOut: z.boolean().describe("Whether the tickets are sold out.").optional().nullable()
|
|
1170
|
+
soldCount: /* @__PURE__ */ z.number().int().describe("Number of purchased tickets.").optional().nullable(),
|
|
1171
|
+
reservedCount: /* @__PURE__ */ z.number().int().describe("Number of reserved tickets.").optional().nullable(),
|
|
1172
|
+
soldOut: /* @__PURE__ */ z.boolean().describe("Whether the tickets are sold out.").optional().nullable()
|
|
1127
1173
|
}).describe(
|
|
1128
1174
|
"Ticket sales information. <br> <br>\n**Note:** This field is only returned when `SALES_DETAILS` is specified in `field` in the request."
|
|
1129
1175
|
).optional(),
|
|
1130
|
-
limitPerCheckout: z.number().int().describe(
|
|
1176
|
+
limitPerCheckout: /* @__PURE__ */ z.number().int().describe(
|
|
1131
1177
|
"Number of tickets that can be purchased per checkout. <br> <br>\n**Note:** If the `actualLimit` or `salesDetails.unsoldCount` field value is smaller than `limitPerCheckout`, then it overrides this field."
|
|
1132
1178
|
).min(0).max(50).optional().nullable(),
|
|
1133
|
-
extendedFields: z.object({
|
|
1134
|
-
namespaces:
|
|
1179
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
1180
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
1181
|
+
/* @__PURE__ */ z.string(),
|
|
1182
|
+
/* @__PURE__ */ z.record(
|
|
1183
|
+
/* @__PURE__ */ z.string(),
|
|
1184
|
+
/* @__PURE__ */ z.any()
|
|
1185
|
+
)
|
|
1186
|
+
).describe(
|
|
1135
1187
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
1136
1188
|
).optional()
|
|
1137
1189
|
}).describe("Data extensions.").optional(),
|
|
1138
|
-
eventDetails: z.object({
|
|
1139
|
-
title: z.string().describe("Event title.").min(1).max(120).optional().nullable(),
|
|
1140
|
-
shortDescription: z.string().describe("Short description of the event.").max(500).optional().nullable(),
|
|
1141
|
-
location: z.object({
|
|
1142
|
-
name: z.string().describe(
|
|
1190
|
+
eventDetails: /* @__PURE__ */ z.object({
|
|
1191
|
+
title: /* @__PURE__ */ z.string().describe("Event title.").min(1).max(120).optional().nullable(),
|
|
1192
|
+
shortDescription: /* @__PURE__ */ z.string().describe("Short description of the event.").max(500).optional().nullable(),
|
|
1193
|
+
location: /* @__PURE__ */ z.object({
|
|
1194
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
1143
1195
|
"Location name. This value is displayed instead of the address when the location is defined as TBD by setting the `locationTbd` property to `true`."
|
|
1144
1196
|
).max(50).optional().nullable(),
|
|
1145
|
-
type: z.enum(["VENUE", "ONLINE"]).describe("Location type.").optional(),
|
|
1146
|
-
address: z.object({
|
|
1147
|
-
city: z.string().optional().nullable(),
|
|
1148
|
-
subdivision: z.string().optional().nullable(),
|
|
1149
|
-
country: z.string().optional().nullable(),
|
|
1150
|
-
postalCode: z.string().optional().nullable(),
|
|
1151
|
-
addressLine1: z.string().optional().nullable(),
|
|
1152
|
-
addressLine2: z.string().optional().nullable()
|
|
1197
|
+
type: /* @__PURE__ */ z.enum(["VENUE", "ONLINE"]).describe("Location type.").optional(),
|
|
1198
|
+
address: /* @__PURE__ */ z.object({
|
|
1199
|
+
city: /* @__PURE__ */ z.string().optional().nullable(),
|
|
1200
|
+
subdivision: /* @__PURE__ */ z.string().optional().nullable(),
|
|
1201
|
+
country: /* @__PURE__ */ z.string().optional().nullable(),
|
|
1202
|
+
postalCode: /* @__PURE__ */ z.string().optional().nullable(),
|
|
1203
|
+
addressLine1: /* @__PURE__ */ z.string().optional().nullable(),
|
|
1204
|
+
addressLine2: /* @__PURE__ */ z.string().optional().nullable()
|
|
1153
1205
|
}).describe("Exact location address.").optional(),
|
|
1154
|
-
locationTbd: z.boolean().describe("Whether the event location is TBD.").optional().nullable()
|
|
1206
|
+
locationTbd: /* @__PURE__ */ z.boolean().describe("Whether the event location is TBD.").optional().nullable()
|
|
1155
1207
|
}).describe("Event location.").optional(),
|
|
1156
|
-
dateAndTimeSettings: z.object({
|
|
1157
|
-
dateAndTimeTbd: z.boolean().describe("Whether the event date and time are TBD.").optional().nullable(),
|
|
1158
|
-
dateAndTimeTbdMessage: z.string().describe(
|
|
1208
|
+
dateAndTimeSettings: /* @__PURE__ */ z.object({
|
|
1209
|
+
dateAndTimeTbd: /* @__PURE__ */ z.boolean().describe("Whether the event date and time are TBD.").optional().nullable(),
|
|
1210
|
+
dateAndTimeTbdMessage: /* @__PURE__ */ z.string().describe(
|
|
1159
1211
|
"Message that is displayed when time and date is TBD.\n\n**Note:** This field is only used when the `dateAndTimeTbd` field value is `true`."
|
|
1160
1212
|
).max(100).optional().nullable(),
|
|
1161
|
-
startDate: z.date().describe(
|
|
1213
|
+
startDate: /* @__PURE__ */ z.date().describe(
|
|
1162
1214
|
"Event start date.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
1163
1215
|
).optional().nullable(),
|
|
1164
|
-
endDate: z.date().describe(
|
|
1216
|
+
endDate: /* @__PURE__ */ z.date().describe(
|
|
1165
1217
|
"Event end date.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
1166
1218
|
).optional().nullable(),
|
|
1167
|
-
timeZoneId: z.string().describe(
|
|
1219
|
+
timeZoneId: /* @__PURE__ */ z.string().describe(
|
|
1168
1220
|
"Event time zone ID in the [TZ database](https://www.iana.org/time-zones) format.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
1169
1221
|
).max(100).optional().nullable(),
|
|
1170
|
-
hideEndDate: z.boolean().describe(
|
|
1222
|
+
hideEndDate: /* @__PURE__ */ z.boolean().describe(
|
|
1171
1223
|
"Whether the end date is hidden in the formatted date and time."
|
|
1172
1224
|
).optional().nullable(),
|
|
1173
|
-
showTimeZone: z.boolean().describe(
|
|
1225
|
+
showTimeZone: /* @__PURE__ */ z.boolean().describe(
|
|
1174
1226
|
"Whether the time zone is displayed in the formatted schedule."
|
|
1175
1227
|
).optional().nullable(),
|
|
1176
|
-
recurrenceStatus: z.enum([
|
|
1228
|
+
recurrenceStatus: /* @__PURE__ */ z.enum([
|
|
1177
1229
|
"ONE_TIME",
|
|
1178
1230
|
"RECURRING",
|
|
1179
1231
|
"RECURRING_UPCOMING",
|
|
1180
1232
|
"RECURRING_RECENTLY_ENDED",
|
|
1181
1233
|
"RECURRING_RECENTLY_CANCELED"
|
|
1182
1234
|
]).describe("Repeating event status.").optional(),
|
|
1183
|
-
recurringEvents: z.object({
|
|
1184
|
-
individualEventDates: z.array(
|
|
1185
|
-
z.object({
|
|
1186
|
-
startDate: z.date().describe("Event start date.").optional().nullable(),
|
|
1187
|
-
endDate: z.date().describe("Event end date.").optional().nullable(),
|
|
1188
|
-
timeZoneId: z.string().describe(
|
|
1235
|
+
recurringEvents: /* @__PURE__ */ z.object({
|
|
1236
|
+
individualEventDates: /* @__PURE__ */ z.array(
|
|
1237
|
+
/* @__PURE__ */ z.object({
|
|
1238
|
+
startDate: /* @__PURE__ */ z.date().describe("Event start date.").optional().nullable(),
|
|
1239
|
+
endDate: /* @__PURE__ */ z.date().describe("Event end date.").optional().nullable(),
|
|
1240
|
+
timeZoneId: /* @__PURE__ */ z.string().describe(
|
|
1189
1241
|
"Event time zone ID in the [TZ database](https://www.iana.org/time-zones) format."
|
|
1190
1242
|
).max(100).optional().nullable(),
|
|
1191
|
-
showTimeZone: z.boolean().describe(
|
|
1243
|
+
showTimeZone: /* @__PURE__ */ z.boolean().describe(
|
|
1192
1244
|
"Whether the time zone is displayed in a formatted schedule."
|
|
1193
1245
|
).optional()
|
|
1194
1246
|
})
|
|
1195
1247
|
).max(1e3).optional(),
|
|
1196
|
-
categoryId: z.string().describe(
|
|
1248
|
+
categoryId: /* @__PURE__ */ z.string().describe(
|
|
1197
1249
|
"Recurring event category ID.\n\nThis read-only field is automatically generated and shared by all events in a recurring series. Use this ID to query and retrieve all occurrences of a recurring event."
|
|
1198
1250
|
).max(100).optional().nullable()
|
|
1199
1251
|
}).describe("Event repetitions.").optional(),
|
|
1200
|
-
formatted: z.object({
|
|
1201
|
-
dateAndTime: z.string().describe(
|
|
1252
|
+
formatted: /* @__PURE__ */ z.object({
|
|
1253
|
+
dateAndTime: /* @__PURE__ */ z.string().describe(
|
|
1202
1254
|
"Formatted date and time representation. <br>\nExample of formatting when an event lasts multiple days and is in the UTC time zone: `September 1, 2015 at 10:20 AM \u2013 September 5, 2015 at 12:14 PM`. <br>\nExample of formatting when an event lasts 1 day and is in the GMT+2 time zone: `February 1, 2018, 12:10 \u2013 2:50 PM GMT+2`."
|
|
1203
1255
|
).max(500).optional().nullable(),
|
|
1204
|
-
startDate: z.string().describe(
|
|
1256
|
+
startDate: /* @__PURE__ */ z.string().describe(
|
|
1205
1257
|
"Formatted start date of the event. Empty for TBD schedules."
|
|
1206
1258
|
).max(500).optional().nullable(),
|
|
1207
|
-
startTime: z.string().describe(
|
|
1259
|
+
startTime: /* @__PURE__ */ z.string().describe(
|
|
1208
1260
|
"Formatted start time of the event. Empty for TBD schedules."
|
|
1209
1261
|
).max(500).optional().nullable(),
|
|
1210
|
-
endDate: z.string().describe(
|
|
1262
|
+
endDate: /* @__PURE__ */ z.string().describe(
|
|
1211
1263
|
"Formatted end date of the event. Empty for TBD schedules or when the end date is hidden."
|
|
1212
1264
|
).max(500).optional().nullable(),
|
|
1213
|
-
endTime: z.string().describe(
|
|
1265
|
+
endTime: /* @__PURE__ */ z.string().describe(
|
|
1214
1266
|
"Formatted end time of the event. Empty for TBD schedules or when the end date is hidden."
|
|
1215
1267
|
).max(500).optional().nullable()
|
|
1216
1268
|
}).describe("Formatted date and time settings.").optional()
|
|
1217
1269
|
}).describe("Event date and time settings.").optional(),
|
|
1218
|
-
eventPageUrl: z.string().describe("Event page URL components.").optional(),
|
|
1219
|
-
status: z.enum(["UPCOMING", "STARTED", "ENDED", "CANCELED", "DRAFT"]).describe("Event status.").optional()
|
|
1270
|
+
eventPageUrl: /* @__PURE__ */ z.string().describe("Event page URL components.").optional(),
|
|
1271
|
+
status: /* @__PURE__ */ z.enum(["UPCOMING", "STARTED", "ENDED", "CANCELED", "DRAFT"]).describe("Event status.").optional()
|
|
1220
1272
|
}).describe(
|
|
1221
1273
|
"Information about the even the ticket is for. <br>\n**Note:** This field is only returned when `EVENT_DETAILS` is specified in `field` in the request."
|
|
1222
1274
|
).optional(),
|
|
1223
|
-
seatingDetails: z.object({
|
|
1224
|
-
places: z.array(
|
|
1225
|
-
z.object({
|
|
1226
|
-
placeId: z.string().describe(
|
|
1275
|
+
seatingDetails: /* @__PURE__ */ z.object({
|
|
1276
|
+
places: /* @__PURE__ */ z.array(
|
|
1277
|
+
/* @__PURE__ */ z.object({
|
|
1278
|
+
placeId: /* @__PURE__ */ z.string().describe(
|
|
1227
1279
|
"Place ID in the format `{sectionId}-{elementId}-{label}`. For example, `0-1-A5`."
|
|
1228
1280
|
).min(1).max(20).optional(),
|
|
1229
|
-
label: z.string().describe(
|
|
1281
|
+
label: /* @__PURE__ */ z.string().describe(
|
|
1230
1282
|
"Human-readable label for this place, such as `A1`, `12`, or `VIP1`."
|
|
1231
1283
|
).min(1).max(4).optional(),
|
|
1232
|
-
sectionLabel: z.string().describe(
|
|
1284
|
+
sectionLabel: /* @__PURE__ */ z.string().describe(
|
|
1233
1285
|
"High-level division of the venue, where the place is located, such as `Orchestra`, `Balcony`, or `VIP Section`."
|
|
1234
1286
|
).min(1).max(20).optional().nullable(),
|
|
1235
|
-
elementLabel: z.string().describe(
|
|
1287
|
+
elementLabel: /* @__PURE__ */ z.string().describe(
|
|
1236
1288
|
"Seating element within the section, such as `Row`, `Table`, or `General Admission`."
|
|
1237
1289
|
).min(1).max(50).optional().nullable(),
|
|
1238
|
-
availableCapacity: z.number().int().describe(
|
|
1290
|
+
availableCapacity: /* @__PURE__ */ z.number().int().describe(
|
|
1239
1291
|
"Available capacity at this place.\n\nFor general seating type returns the number of remaining spots.\n\nFor other types returns `1`. For example, if a table has 5 chairs, each chair is treated as a separate place, which has a capacity of 1."
|
|
1240
1292
|
).min(0).max(5e4).optional()
|
|
1241
1293
|
})
|
|
@@ -1245,41 +1297,41 @@ var GetTicketDefinitionResponse = /* @__PURE__ */ z.object({
|
|
|
1245
1297
|
).optional()
|
|
1246
1298
|
});
|
|
1247
1299
|
var DeleteTicketDefinitionRequest = /* @__PURE__ */ z.object({
|
|
1248
|
-
ticketDefinitionId: z.string().describe("ID of the ticket definition to delete.").regex(
|
|
1300
|
+
ticketDefinitionId: /* @__PURE__ */ z.string().describe("ID of the ticket definition to delete.").regex(
|
|
1249
1301
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1250
1302
|
"Must be a valid GUID"
|
|
1251
1303
|
)
|
|
1252
1304
|
});
|
|
1253
1305
|
var DeleteTicketDefinitionResponse = /* @__PURE__ */ z.object({});
|
|
1254
1306
|
var ReorderTicketDefinitionsRequest = /* @__PURE__ */ z.object({
|
|
1255
|
-
eventId: z.string().describe("Event ID.").regex(
|
|
1307
|
+
eventId: /* @__PURE__ */ z.string().describe("Event ID.").regex(
|
|
1256
1308
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1257
1309
|
"Must be a valid GUID"
|
|
1258
1310
|
),
|
|
1259
|
-
options: z.intersection(
|
|
1260
|
-
z.object({
|
|
1261
|
-
ticketDefinitionId: z.string().describe("Ticket definition ID.").regex(
|
|
1311
|
+
options: /* @__PURE__ */ z.intersection(
|
|
1312
|
+
/* @__PURE__ */ z.object({
|
|
1313
|
+
ticketDefinitionId: /* @__PURE__ */ z.string().describe("Ticket definition ID.").regex(
|
|
1262
1314
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1263
1315
|
"Must be a valid GUID"
|
|
1264
1316
|
)
|
|
1265
1317
|
}),
|
|
1266
|
-
z.xor([
|
|
1267
|
-
z.object({
|
|
1268
|
-
beforeDefinitionId: z.never().optional(),
|
|
1269
|
-
afterDefinitionId: z.never().optional()
|
|
1318
|
+
/* @__PURE__ */ z.xor([
|
|
1319
|
+
/* @__PURE__ */ z.object({
|
|
1320
|
+
beforeDefinitionId: /* @__PURE__ */ z.never().optional(),
|
|
1321
|
+
afterDefinitionId: /* @__PURE__ */ z.never().optional()
|
|
1270
1322
|
}),
|
|
1271
|
-
z.object({
|
|
1272
|
-
afterDefinitionId: z.never().optional(),
|
|
1273
|
-
beforeDefinitionId: z.string().describe(
|
|
1323
|
+
/* @__PURE__ */ z.object({
|
|
1324
|
+
afterDefinitionId: /* @__PURE__ */ z.never().optional(),
|
|
1325
|
+
beforeDefinitionId: /* @__PURE__ */ z.string().describe(
|
|
1274
1326
|
"Move the given `definitionId` before the referenced ticket definition."
|
|
1275
1327
|
).regex(
|
|
1276
1328
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1277
1329
|
"Must be a valid GUID"
|
|
1278
1330
|
)
|
|
1279
1331
|
}),
|
|
1280
|
-
z.object({
|
|
1281
|
-
beforeDefinitionId: z.never().optional(),
|
|
1282
|
-
afterDefinitionId: z.string().describe(
|
|
1332
|
+
/* @__PURE__ */ z.object({
|
|
1333
|
+
beforeDefinitionId: /* @__PURE__ */ z.never().optional(),
|
|
1334
|
+
afterDefinitionId: /* @__PURE__ */ z.string().describe(
|
|
1283
1335
|
"Move the given `definitionId` after the referenced ticket definition."
|
|
1284
1336
|
).regex(
|
|
1285
1337
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
@@ -1291,160 +1343,160 @@ var ReorderTicketDefinitionsRequest = /* @__PURE__ */ z.object({
|
|
|
1291
1343
|
});
|
|
1292
1344
|
var ReorderTicketDefinitionsResponse = /* @__PURE__ */ z.object({});
|
|
1293
1345
|
var QueryTicketDefinitionsRequest = /* @__PURE__ */ z.object({
|
|
1294
|
-
query: z.object({
|
|
1295
|
-
filter: z.object({
|
|
1296
|
-
_id: z.object({
|
|
1297
|
-
$eq: z.string(),
|
|
1298
|
-
$exists: z.boolean(),
|
|
1299
|
-
$gt: z.string(),
|
|
1300
|
-
$gte: z.string(),
|
|
1301
|
-
$in: z.array(z.string()),
|
|
1302
|
-
$lt: z.string(),
|
|
1303
|
-
$lte: z.string(),
|
|
1304
|
-
$ne: z.string(),
|
|
1305
|
-
$nin: z.array(z.string())
|
|
1346
|
+
query: /* @__PURE__ */ z.object({
|
|
1347
|
+
filter: /* @__PURE__ */ z.object({
|
|
1348
|
+
_id: /* @__PURE__ */ z.object({
|
|
1349
|
+
$eq: /* @__PURE__ */ z.string(),
|
|
1350
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
1351
|
+
$gt: /* @__PURE__ */ z.string(),
|
|
1352
|
+
$gte: /* @__PURE__ */ z.string(),
|
|
1353
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
1354
|
+
$lt: /* @__PURE__ */ z.string(),
|
|
1355
|
+
$lte: /* @__PURE__ */ z.string(),
|
|
1356
|
+
$ne: /* @__PURE__ */ z.string(),
|
|
1357
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string())
|
|
1306
1358
|
}).partial().strict().optional(),
|
|
1307
|
-
eventId: z.object({
|
|
1308
|
-
$eq: z.string(),
|
|
1309
|
-
$exists: z.boolean(),
|
|
1310
|
-
$gt: z.string(),
|
|
1311
|
-
$gte: z.string(),
|
|
1312
|
-
$in: z.array(z.string()),
|
|
1313
|
-
$lt: z.string(),
|
|
1314
|
-
$lte: z.string(),
|
|
1315
|
-
$ne: z.string(),
|
|
1316
|
-
$nin: z.array(z.string())
|
|
1359
|
+
eventId: /* @__PURE__ */ z.object({
|
|
1360
|
+
$eq: /* @__PURE__ */ z.string(),
|
|
1361
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
1362
|
+
$gt: /* @__PURE__ */ z.string(),
|
|
1363
|
+
$gte: /* @__PURE__ */ z.string(),
|
|
1364
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
1365
|
+
$lt: /* @__PURE__ */ z.string(),
|
|
1366
|
+
$lte: /* @__PURE__ */ z.string(),
|
|
1367
|
+
$ne: /* @__PURE__ */ z.string(),
|
|
1368
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string())
|
|
1317
1369
|
}).partial().strict().optional(),
|
|
1318
|
-
revision: z.object({
|
|
1319
|
-
$eq: z.string(),
|
|
1320
|
-
$exists: z.boolean(),
|
|
1321
|
-
$gt: z.string(),
|
|
1322
|
-
$gte: z.string(),
|
|
1323
|
-
$in: z.array(z.string()),
|
|
1324
|
-
$lt: z.string(),
|
|
1325
|
-
$lte: z.string(),
|
|
1326
|
-
$ne: z.string(),
|
|
1327
|
-
$nin: z.array(z.string())
|
|
1370
|
+
revision: /* @__PURE__ */ z.object({
|
|
1371
|
+
$eq: /* @__PURE__ */ z.string(),
|
|
1372
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
1373
|
+
$gt: /* @__PURE__ */ z.string(),
|
|
1374
|
+
$gte: /* @__PURE__ */ z.string(),
|
|
1375
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
1376
|
+
$lt: /* @__PURE__ */ z.string(),
|
|
1377
|
+
$lte: /* @__PURE__ */ z.string(),
|
|
1378
|
+
$ne: /* @__PURE__ */ z.string(),
|
|
1379
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string())
|
|
1328
1380
|
}).partial().strict().optional(),
|
|
1329
|
-
name: z.object({
|
|
1330
|
-
$eq: z.string(),
|
|
1331
|
-
$exists: z.boolean(),
|
|
1332
|
-
$gt: z.string(),
|
|
1333
|
-
$gte: z.string(),
|
|
1334
|
-
$in: z.array(z.string()),
|
|
1335
|
-
$lt: z.string(),
|
|
1336
|
-
$lte: z.string(),
|
|
1337
|
-
$ne: z.string(),
|
|
1338
|
-
$nin: z.array(z.string())
|
|
1381
|
+
name: /* @__PURE__ */ z.object({
|
|
1382
|
+
$eq: /* @__PURE__ */ z.string(),
|
|
1383
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
1384
|
+
$gt: /* @__PURE__ */ z.string(),
|
|
1385
|
+
$gte: /* @__PURE__ */ z.string(),
|
|
1386
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
1387
|
+
$lt: /* @__PURE__ */ z.string(),
|
|
1388
|
+
$lte: /* @__PURE__ */ z.string(),
|
|
1389
|
+
$ne: /* @__PURE__ */ z.string(),
|
|
1390
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string())
|
|
1339
1391
|
}).partial().strict().optional(),
|
|
1340
|
-
description: z.object({
|
|
1341
|
-
$eq: z.string(),
|
|
1342
|
-
$exists: z.boolean(),
|
|
1343
|
-
$gt: z.string(),
|
|
1344
|
-
$gte: z.string(),
|
|
1345
|
-
$in: z.array(z.string()),
|
|
1346
|
-
$lt: z.string(),
|
|
1347
|
-
$lte: z.string(),
|
|
1348
|
-
$ne: z.string(),
|
|
1349
|
-
$nin: z.array(z.string())
|
|
1392
|
+
description: /* @__PURE__ */ z.object({
|
|
1393
|
+
$eq: /* @__PURE__ */ z.string(),
|
|
1394
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
1395
|
+
$gt: /* @__PURE__ */ z.string(),
|
|
1396
|
+
$gte: /* @__PURE__ */ z.string(),
|
|
1397
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
1398
|
+
$lt: /* @__PURE__ */ z.string(),
|
|
1399
|
+
$lte: /* @__PURE__ */ z.string(),
|
|
1400
|
+
$ne: /* @__PURE__ */ z.string(),
|
|
1401
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string())
|
|
1350
1402
|
}).partial().strict().optional(),
|
|
1351
|
-
initialLimit: z.object({
|
|
1352
|
-
$eq: z.number(),
|
|
1353
|
-
$exists: z.boolean(),
|
|
1354
|
-
$gt: z.number(),
|
|
1355
|
-
$gte: z.number(),
|
|
1356
|
-
$in: z.array(z.number()),
|
|
1357
|
-
$lt: z.number(),
|
|
1358
|
-
$lte: z.number(),
|
|
1359
|
-
$ne: z.number(),
|
|
1360
|
-
$nin: z.array(z.number())
|
|
1403
|
+
initialLimit: /* @__PURE__ */ z.object({
|
|
1404
|
+
$eq: /* @__PURE__ */ z.number(),
|
|
1405
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
1406
|
+
$gt: /* @__PURE__ */ z.number(),
|
|
1407
|
+
$gte: /* @__PURE__ */ z.number(),
|
|
1408
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.number()),
|
|
1409
|
+
$lt: /* @__PURE__ */ z.number(),
|
|
1410
|
+
$lte: /* @__PURE__ */ z.number(),
|
|
1411
|
+
$ne: /* @__PURE__ */ z.number(),
|
|
1412
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.number())
|
|
1361
1413
|
}).partial().strict().optional(),
|
|
1362
|
-
"pricingMethod.fixedPrice.value": z.object({
|
|
1363
|
-
$eq: z.any(),
|
|
1364
|
-
$exists: z.boolean(),
|
|
1365
|
-
$gt: z.any(),
|
|
1366
|
-
$gte: z.any(),
|
|
1367
|
-
$in: z.array(z.any()),
|
|
1368
|
-
$lt: z.any(),
|
|
1369
|
-
$lte: z.any(),
|
|
1370
|
-
$ne: z.any(),
|
|
1371
|
-
$nin: z.array(z.any())
|
|
1414
|
+
"pricingMethod.fixedPrice.value": /* @__PURE__ */ z.object({
|
|
1415
|
+
$eq: /* @__PURE__ */ z.any(),
|
|
1416
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
1417
|
+
$gt: /* @__PURE__ */ z.any(),
|
|
1418
|
+
$gte: /* @__PURE__ */ z.any(),
|
|
1419
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.any()),
|
|
1420
|
+
$lt: /* @__PURE__ */ z.any(),
|
|
1421
|
+
$lte: /* @__PURE__ */ z.any(),
|
|
1422
|
+
$ne: /* @__PURE__ */ z.any(),
|
|
1423
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.any())
|
|
1372
1424
|
}).partial().strict().optional(),
|
|
1373
|
-
"pricingMethod.fixedPrice.currency": z.object({
|
|
1374
|
-
$eq: z.any(),
|
|
1375
|
-
$exists: z.boolean(),
|
|
1376
|
-
$gt: z.any(),
|
|
1377
|
-
$gte: z.any(),
|
|
1378
|
-
$in: z.array(z.any()),
|
|
1379
|
-
$lt: z.any(),
|
|
1380
|
-
$lte: z.any(),
|
|
1381
|
-
$ne: z.any(),
|
|
1382
|
-
$nin: z.array(z.any())
|
|
1425
|
+
"pricingMethod.fixedPrice.currency": /* @__PURE__ */ z.object({
|
|
1426
|
+
$eq: /* @__PURE__ */ z.any(),
|
|
1427
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
1428
|
+
$gt: /* @__PURE__ */ z.any(),
|
|
1429
|
+
$gte: /* @__PURE__ */ z.any(),
|
|
1430
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.any()),
|
|
1431
|
+
$lt: /* @__PURE__ */ z.any(),
|
|
1432
|
+
$lte: /* @__PURE__ */ z.any(),
|
|
1433
|
+
$ne: /* @__PURE__ */ z.any(),
|
|
1434
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.any())
|
|
1383
1435
|
}).partial().strict().optional(),
|
|
1384
|
-
_createdDate: z.object({
|
|
1385
|
-
$eq: z.string(),
|
|
1386
|
-
$exists: z.boolean(),
|
|
1387
|
-
$gt: z.string(),
|
|
1388
|
-
$gte: z.string(),
|
|
1389
|
-
$in: z.array(z.string()),
|
|
1390
|
-
$lt: z.string(),
|
|
1391
|
-
$lte: z.string(),
|
|
1392
|
-
$ne: z.string(),
|
|
1393
|
-
$nin: z.array(z.string())
|
|
1436
|
+
_createdDate: /* @__PURE__ */ z.object({
|
|
1437
|
+
$eq: /* @__PURE__ */ z.string(),
|
|
1438
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
1439
|
+
$gt: /* @__PURE__ */ z.string(),
|
|
1440
|
+
$gte: /* @__PURE__ */ z.string(),
|
|
1441
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
1442
|
+
$lt: /* @__PURE__ */ z.string(),
|
|
1443
|
+
$lte: /* @__PURE__ */ z.string(),
|
|
1444
|
+
$ne: /* @__PURE__ */ z.string(),
|
|
1445
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string())
|
|
1394
1446
|
}).partial().strict().optional(),
|
|
1395
|
-
_updatedDate: z.object({
|
|
1396
|
-
$eq: z.string(),
|
|
1397
|
-
$exists: z.boolean(),
|
|
1398
|
-
$gt: z.string(),
|
|
1399
|
-
$gte: z.string(),
|
|
1400
|
-
$in: z.array(z.string()),
|
|
1401
|
-
$lt: z.string(),
|
|
1402
|
-
$lte: z.string(),
|
|
1403
|
-
$ne: z.string(),
|
|
1404
|
-
$nin: z.array(z.string())
|
|
1447
|
+
_updatedDate: /* @__PURE__ */ z.object({
|
|
1448
|
+
$eq: /* @__PURE__ */ z.string(),
|
|
1449
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
1450
|
+
$gt: /* @__PURE__ */ z.string(),
|
|
1451
|
+
$gte: /* @__PURE__ */ z.string(),
|
|
1452
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
1453
|
+
$lt: /* @__PURE__ */ z.string(),
|
|
1454
|
+
$lte: /* @__PURE__ */ z.string(),
|
|
1455
|
+
$ne: /* @__PURE__ */ z.string(),
|
|
1456
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string())
|
|
1405
1457
|
}).partial().strict().optional(),
|
|
1406
|
-
hidden: z.object({
|
|
1407
|
-
$eq: z.boolean(),
|
|
1408
|
-
$exists: z.boolean(),
|
|
1409
|
-
$in: z.array(z.boolean()),
|
|
1410
|
-
$ne: z.boolean(),
|
|
1411
|
-
$nin: z.array(z.boolean())
|
|
1458
|
+
hidden: /* @__PURE__ */ z.object({
|
|
1459
|
+
$eq: /* @__PURE__ */ z.boolean(),
|
|
1460
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
1461
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.boolean()),
|
|
1462
|
+
$ne: /* @__PURE__ */ z.boolean(),
|
|
1463
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.boolean())
|
|
1412
1464
|
}).partial().strict().optional(),
|
|
1413
|
-
"pricingMethod.free": z.object({
|
|
1414
|
-
$eq: z.boolean(),
|
|
1415
|
-
$exists: z.boolean(),
|
|
1416
|
-
$in: z.array(z.boolean()),
|
|
1417
|
-
$ne: z.boolean(),
|
|
1418
|
-
$nin: z.array(z.boolean())
|
|
1465
|
+
"pricingMethod.free": /* @__PURE__ */ z.object({
|
|
1466
|
+
$eq: /* @__PURE__ */ z.boolean(),
|
|
1467
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
1468
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.boolean()),
|
|
1469
|
+
$ne: /* @__PURE__ */ z.boolean(),
|
|
1470
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.boolean())
|
|
1419
1471
|
}).partial().strict().optional(),
|
|
1420
|
-
"pricingMethod.pricingType": z.object({
|
|
1421
|
-
$eq: z.string(),
|
|
1422
|
-
$exists: z.boolean(),
|
|
1423
|
-
$in: z.array(z.string()),
|
|
1424
|
-
$ne: z.string(),
|
|
1425
|
-
$nin: z.array(z.string())
|
|
1472
|
+
"pricingMethod.pricingType": /* @__PURE__ */ z.object({
|
|
1473
|
+
$eq: /* @__PURE__ */ z.string(),
|
|
1474
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
1475
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
1476
|
+
$ne: /* @__PURE__ */ z.string(),
|
|
1477
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string())
|
|
1426
1478
|
}).partial().strict().optional(),
|
|
1427
|
-
feeType: z.object({
|
|
1428
|
-
$eq: z.string(),
|
|
1429
|
-
$exists: z.boolean(),
|
|
1430
|
-
$in: z.array(z.string()),
|
|
1431
|
-
$ne: z.string(),
|
|
1432
|
-
$nin: z.array(z.string())
|
|
1479
|
+
feeType: /* @__PURE__ */ z.object({
|
|
1480
|
+
$eq: /* @__PURE__ */ z.string(),
|
|
1481
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
1482
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
1483
|
+
$ne: /* @__PURE__ */ z.string(),
|
|
1484
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string())
|
|
1433
1485
|
}).partial().strict().optional(),
|
|
1434
|
-
saleStatus: z.object({
|
|
1435
|
-
$eq: z.string(),
|
|
1436
|
-
$exists: z.boolean(),
|
|
1437
|
-
$in: z.array(z.string()),
|
|
1438
|
-
$ne: z.string(),
|
|
1439
|
-
$nin: z.array(z.string())
|
|
1486
|
+
saleStatus: /* @__PURE__ */ z.object({
|
|
1487
|
+
$eq: /* @__PURE__ */ z.string(),
|
|
1488
|
+
$exists: /* @__PURE__ */ z.boolean(),
|
|
1489
|
+
$in: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()),
|
|
1490
|
+
$ne: /* @__PURE__ */ z.string(),
|
|
1491
|
+
$nin: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string())
|
|
1440
1492
|
}).partial().strict().optional(),
|
|
1441
|
-
$and: z.array(z.any()).optional(),
|
|
1442
|
-
$or: z.array(z.any()).optional(),
|
|
1443
|
-
$not: z.any().optional()
|
|
1493
|
+
$and: /* @__PURE__ */ z.array(/* @__PURE__ */ z.any()).optional(),
|
|
1494
|
+
$or: /* @__PURE__ */ z.array(/* @__PURE__ */ z.any()).optional(),
|
|
1495
|
+
$not: /* @__PURE__ */ z.any().optional()
|
|
1444
1496
|
}).strict().optional(),
|
|
1445
|
-
sort: z.array(
|
|
1446
|
-
z.object({
|
|
1447
|
-
fieldName: z.enum([
|
|
1497
|
+
sort: /* @__PURE__ */ z.array(
|
|
1498
|
+
/* @__PURE__ */ z.object({
|
|
1499
|
+
fieldName: /* @__PURE__ */ z.enum([
|
|
1448
1500
|
"_id",
|
|
1449
1501
|
"eventId",
|
|
1450
1502
|
"revision",
|
|
@@ -1461,102 +1513,108 @@ var QueryTicketDefinitionsRequest = /* @__PURE__ */ z.object({
|
|
|
1461
1513
|
"feeType",
|
|
1462
1514
|
"saleStatus"
|
|
1463
1515
|
]).optional(),
|
|
1464
|
-
order: z.enum(["ASC", "DESC"]).optional()
|
|
1516
|
+
order: /* @__PURE__ */ z.enum(["ASC", "DESC"]).optional()
|
|
1465
1517
|
})
|
|
1466
1518
|
).optional()
|
|
1467
|
-
}).catchall(z.any()).describe(
|
|
1519
|
+
}).catchall(/* @__PURE__ */ z.any()).describe(
|
|
1468
1520
|
"Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language) for more details."
|
|
1469
1521
|
),
|
|
1470
|
-
options: z.object({
|
|
1471
|
-
fields: z.array(
|
|
1522
|
+
options: /* @__PURE__ */ z.object({
|
|
1523
|
+
fields: /* @__PURE__ */ z.array(
|
|
1524
|
+
/* @__PURE__ */ z.enum([
|
|
1525
|
+
"SALES_DETAILS",
|
|
1526
|
+
"EVENT_DETAILS",
|
|
1527
|
+
"SEATING_DETAILS"
|
|
1528
|
+
])
|
|
1529
|
+
).max(5).optional()
|
|
1472
1530
|
}).describe("Optional fields.").optional()
|
|
1473
1531
|
});
|
|
1474
1532
|
var QueryTicketDefinitionsResponse = /* @__PURE__ */ z.object({
|
|
1475
|
-
ticketDefinitions: z.array(
|
|
1476
|
-
z.object({
|
|
1477
|
-
_id: z.string().describe("Ticket definition ID.").regex(
|
|
1533
|
+
ticketDefinitions: /* @__PURE__ */ z.array(
|
|
1534
|
+
/* @__PURE__ */ z.object({
|
|
1535
|
+
_id: /* @__PURE__ */ z.string().describe("Ticket definition ID.").regex(
|
|
1478
1536
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1479
1537
|
"Must be a valid GUID"
|
|
1480
1538
|
).optional().nullable(),
|
|
1481
|
-
eventId: z.string().describe("Event ID to which the ticket definition belongs.").regex(
|
|
1539
|
+
eventId: /* @__PURE__ */ z.string().describe("Event ID to which the ticket definition belongs.").regex(
|
|
1482
1540
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1483
1541
|
"Must be a valid GUID"
|
|
1484
1542
|
).optional().nullable(),
|
|
1485
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1543
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1486
1544
|
"Revision number, which increments by 1 each time the ticket definition is updated. To prevent conflicting changes, the existing `revision` must be used when updating a ticket definition."
|
|
1487
1545
|
).optional().nullable(),
|
|
1488
|
-
_createdDate: z.date().describe("Date and time the ticket definition was created.").optional().nullable(),
|
|
1489
|
-
_updatedDate: z.date().describe("Date and time the ticket definition was updated.").optional().nullable(),
|
|
1490
|
-
name: z.string().describe("Ticket definition name.").min(1).max(30).optional().nullable(),
|
|
1491
|
-
description: z.string().describe("Ticket definition description.").max(500).optional().nullable(),
|
|
1492
|
-
policyText: z.string().describe("Ticket definition policy.").max(1e3).optional().nullable(),
|
|
1493
|
-
hidden: z.boolean().describe(
|
|
1546
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the ticket definition was created.").optional().nullable(),
|
|
1547
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the ticket definition was updated.").optional().nullable(),
|
|
1548
|
+
name: /* @__PURE__ */ z.string().describe("Ticket definition name.").min(1).max(30).optional().nullable(),
|
|
1549
|
+
description: /* @__PURE__ */ z.string().describe("Ticket definition description.").max(500).optional().nullable(),
|
|
1550
|
+
policyText: /* @__PURE__ */ z.string().describe("Ticket definition policy.").max(1e3).optional().nullable(),
|
|
1551
|
+
hidden: /* @__PURE__ */ z.boolean().describe(
|
|
1494
1552
|
"Whether this ticket definition is hidden from site visitors and can't be purchased."
|
|
1495
1553
|
).optional(),
|
|
1496
|
-
limited: z.boolean().describe("Whether the ticket has a limited maximum quantity.").optional(),
|
|
1497
|
-
initialLimit: z.number().int().describe(
|
|
1554
|
+
limited: /* @__PURE__ */ z.boolean().describe("Whether the ticket has a limited maximum quantity.").optional(),
|
|
1555
|
+
initialLimit: /* @__PURE__ */ z.number().int().describe(
|
|
1498
1556
|
"The maximum number of tickets that can be sold for the event when first defining the event. If a seating map is defined after you created a ticket definition, this property is ignored and `actualLimit` is used instead. To create unlimited tickets, skip this field in the request."
|
|
1499
1557
|
).optional().nullable(),
|
|
1500
|
-
actualLimit: z.number().int().describe(
|
|
1558
|
+
actualLimit: /* @__PURE__ */ z.number().int().describe(
|
|
1501
1559
|
"The maximum number of tickets that can be sold for the event after adding a seating map to the event. If no seating map is defined, this property is the same as `initialLimit`."
|
|
1502
1560
|
).optional().nullable(),
|
|
1503
|
-
pricingMethod: z.intersection(
|
|
1504
|
-
z.object({
|
|
1505
|
-
pricingType: z.enum(["STANDARD", "DONATION"]).describe("Ticket price type.").optional(),
|
|
1506
|
-
free: z.boolean().describe(
|
|
1561
|
+
pricingMethod: /* @__PURE__ */ z.intersection(
|
|
1562
|
+
/* @__PURE__ */ z.object({
|
|
1563
|
+
pricingType: /* @__PURE__ */ z.enum(["STANDARD", "DONATION"]).describe("Ticket price type.").optional(),
|
|
1564
|
+
free: /* @__PURE__ */ z.boolean().describe(
|
|
1507
1565
|
'Whether the ticket is free. To create a free ticket, enter `"0"` in `pricingMethod.fixedPrice.value`.'
|
|
1508
1566
|
).optional()
|
|
1509
1567
|
}),
|
|
1510
|
-
z.xor([
|
|
1511
|
-
z.object({
|
|
1512
|
-
fixedPrice: z.never().optional(),
|
|
1513
|
-
guestPrice: z.never().optional(),
|
|
1514
|
-
pricingOptions: z.never().optional()
|
|
1568
|
+
/* @__PURE__ */ z.xor([
|
|
1569
|
+
/* @__PURE__ */ z.object({
|
|
1570
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
1571
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
1572
|
+
pricingOptions: /* @__PURE__ */ z.never().optional()
|
|
1515
1573
|
}),
|
|
1516
|
-
z.object({
|
|
1517
|
-
guestPrice: z.never().optional(),
|
|
1518
|
-
pricingOptions: z.never().optional(),
|
|
1519
|
-
fixedPrice: z.object({
|
|
1520
|
-
value: z.string().describe(
|
|
1574
|
+
/* @__PURE__ */ z.object({
|
|
1575
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
1576
|
+
pricingOptions: /* @__PURE__ */ z.never().optional(),
|
|
1577
|
+
fixedPrice: /* @__PURE__ */ z.object({
|
|
1578
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
1521
1579
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
1522
1580
|
).optional(),
|
|
1523
|
-
currency: z.string().describe(
|
|
1581
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
1524
1582
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
1525
1583
|
).optional()
|
|
1526
1584
|
}).describe("Same ticket price for everyone.")
|
|
1527
1585
|
}),
|
|
1528
|
-
z.object({
|
|
1529
|
-
fixedPrice: z.never().optional(),
|
|
1530
|
-
pricingOptions: z.never().optional(),
|
|
1531
|
-
guestPrice: z.object({
|
|
1532
|
-
value: z.string().describe(
|
|
1586
|
+
/* @__PURE__ */ z.object({
|
|
1587
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
1588
|
+
pricingOptions: /* @__PURE__ */ z.never().optional(),
|
|
1589
|
+
guestPrice: /* @__PURE__ */ z.object({
|
|
1590
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
1533
1591
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
1534
1592
|
).optional(),
|
|
1535
|
-
currency: z.string().describe(
|
|
1593
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
1536
1594
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
1537
1595
|
).optional()
|
|
1538
1596
|
}).describe(
|
|
1539
1597
|
'Guests choose how much they\'d like to pay for the ticket. You can set the minimum price, or specify `"0"` in the request to make the ticket free. The price can be updated to a higher amount by a guest during the checkout.'
|
|
1540
1598
|
)
|
|
1541
1599
|
}),
|
|
1542
|
-
z.object({
|
|
1543
|
-
fixedPrice: z.never().optional(),
|
|
1544
|
-
guestPrice: z.never().optional(),
|
|
1545
|
-
pricingOptions: z.object({
|
|
1546
|
-
optionDetails: z.array(
|
|
1547
|
-
z.object({
|
|
1548
|
-
optionId: z.string().describe("Ticket price option ID.").regex(
|
|
1600
|
+
/* @__PURE__ */ z.object({
|
|
1601
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
1602
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
1603
|
+
pricingOptions: /* @__PURE__ */ z.object({
|
|
1604
|
+
optionDetails: /* @__PURE__ */ z.array(
|
|
1605
|
+
/* @__PURE__ */ z.object({
|
|
1606
|
+
optionId: /* @__PURE__ */ z.string().describe("Ticket price option ID.").regex(
|
|
1549
1607
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1550
1608
|
"Must be a valid GUID"
|
|
1551
1609
|
).optional().nullable(),
|
|
1552
|
-
name: z.string().describe(
|
|
1610
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
1553
1611
|
'Ticket price option name, such as "Child Ticket".'
|
|
1554
1612
|
).min(1).max(200).optional().nullable(),
|
|
1555
|
-
price: z.object({
|
|
1556
|
-
value: z.string().describe(
|
|
1613
|
+
price: /* @__PURE__ */ z.object({
|
|
1614
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
1557
1615
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
1558
1616
|
).optional(),
|
|
1559
|
-
currency: z.string().describe(
|
|
1617
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
1560
1618
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
1561
1619
|
).optional()
|
|
1562
1620
|
}).describe("Ticket price.").optional()
|
|
@@ -1568,138 +1626,144 @@ var QueryTicketDefinitionsResponse = /* @__PURE__ */ z.object({
|
|
|
1568
1626
|
})
|
|
1569
1627
|
])
|
|
1570
1628
|
).describe("Ticket pricing method.").optional(),
|
|
1571
|
-
feeType: z.enum(["FEE_INCLUDED", "FEE_ADDED_AT_CHECKOUT", "NO_FEE"]).describe("Type of ticket service fee to collect.").optional(),
|
|
1572
|
-
salePeriod: z.object({
|
|
1573
|
-
startDate: z.date().describe(
|
|
1629
|
+
feeType: /* @__PURE__ */ z.enum(["FEE_INCLUDED", "FEE_ADDED_AT_CHECKOUT", "NO_FEE"]).describe("Type of ticket service fee to collect.").optional(),
|
|
1630
|
+
salePeriod: /* @__PURE__ */ z.object({
|
|
1631
|
+
startDate: /* @__PURE__ */ z.date().describe(
|
|
1574
1632
|
"Date and time the ticket sale starts. Rounded down to the nearest minute."
|
|
1575
1633
|
).optional().nullable(),
|
|
1576
|
-
endDate: z.date().describe(
|
|
1634
|
+
endDate: /* @__PURE__ */ z.date().describe(
|
|
1577
1635
|
"Date and time the ticket sale ends. Rounded down to the nearest minute."
|
|
1578
1636
|
).optional().nullable(),
|
|
1579
|
-
displayNotOnSale: z.boolean().describe(
|
|
1637
|
+
displayNotOnSale: /* @__PURE__ */ z.boolean().describe(
|
|
1580
1638
|
"Whether to display the ticket if it's not available to buy."
|
|
1581
1639
|
).optional()
|
|
1582
1640
|
}).describe("Ticket sale period.").optional(),
|
|
1583
|
-
saleStatus: z.enum(["SALE_SCHEDULED", "SALE_STARTED", "SALE_ENDED"]).describe("Ticket sale status.").optional(),
|
|
1584
|
-
salesDetails: z.object({
|
|
1585
|
-
unsoldCount: z.number().int().describe(
|
|
1641
|
+
saleStatus: /* @__PURE__ */ z.enum(["SALE_SCHEDULED", "SALE_STARTED", "SALE_ENDED"]).describe("Ticket sale status.").optional(),
|
|
1642
|
+
salesDetails: /* @__PURE__ */ z.object({
|
|
1643
|
+
unsoldCount: /* @__PURE__ */ z.number().int().describe(
|
|
1586
1644
|
"Number of tickets that haven't been purchased yet. The field is `null` if the ticket quantity is unlimited."
|
|
1587
1645
|
).optional().nullable(),
|
|
1588
|
-
soldCount: z.number().int().describe("Number of purchased tickets.").optional().nullable(),
|
|
1589
|
-
reservedCount: z.number().int().describe("Number of reserved tickets.").optional().nullable(),
|
|
1590
|
-
soldOut: z.boolean().describe("Whether the tickets are sold out.").optional().nullable()
|
|
1646
|
+
soldCount: /* @__PURE__ */ z.number().int().describe("Number of purchased tickets.").optional().nullable(),
|
|
1647
|
+
reservedCount: /* @__PURE__ */ z.number().int().describe("Number of reserved tickets.").optional().nullable(),
|
|
1648
|
+
soldOut: /* @__PURE__ */ z.boolean().describe("Whether the tickets are sold out.").optional().nullable()
|
|
1591
1649
|
}).describe(
|
|
1592
1650
|
"Ticket sales information. <br> <br>\n**Note:** This field is only returned when `SALES_DETAILS` is specified in `field` in the request."
|
|
1593
1651
|
).optional(),
|
|
1594
|
-
limitPerCheckout: z.number().int().describe(
|
|
1652
|
+
limitPerCheckout: /* @__PURE__ */ z.number().int().describe(
|
|
1595
1653
|
"Number of tickets that can be purchased per checkout. <br> <br>\n**Note:** If the `actualLimit` or `salesDetails.unsoldCount` field value is smaller than `limitPerCheckout`, then it overrides this field."
|
|
1596
1654
|
).min(0).max(50).optional().nullable(),
|
|
1597
|
-
extendedFields: z.object({
|
|
1598
|
-
namespaces:
|
|
1655
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
1656
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
1657
|
+
/* @__PURE__ */ z.string(),
|
|
1658
|
+
/* @__PURE__ */ z.record(
|
|
1659
|
+
/* @__PURE__ */ z.string(),
|
|
1660
|
+
/* @__PURE__ */ z.any()
|
|
1661
|
+
)
|
|
1662
|
+
).describe(
|
|
1599
1663
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
1600
1664
|
).optional()
|
|
1601
1665
|
}).describe("Data extensions.").optional(),
|
|
1602
|
-
eventDetails: z.object({
|
|
1603
|
-
title: z.string().describe("Event title.").min(1).max(120).optional().nullable(),
|
|
1604
|
-
shortDescription: z.string().describe("Short description of the event.").max(500).optional().nullable(),
|
|
1605
|
-
location: z.object({
|
|
1606
|
-
name: z.string().describe(
|
|
1666
|
+
eventDetails: /* @__PURE__ */ z.object({
|
|
1667
|
+
title: /* @__PURE__ */ z.string().describe("Event title.").min(1).max(120).optional().nullable(),
|
|
1668
|
+
shortDescription: /* @__PURE__ */ z.string().describe("Short description of the event.").max(500).optional().nullable(),
|
|
1669
|
+
location: /* @__PURE__ */ z.object({
|
|
1670
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
1607
1671
|
"Location name. This value is displayed instead of the address when the location is defined as TBD by setting the `locationTbd` property to `true`."
|
|
1608
1672
|
).max(50).optional().nullable(),
|
|
1609
|
-
type: z.enum(["VENUE", "ONLINE"]).describe("Location type.").optional(),
|
|
1610
|
-
address: z.object({
|
|
1611
|
-
city: z.string().optional().nullable(),
|
|
1612
|
-
subdivision: z.string().optional().nullable(),
|
|
1613
|
-
country: z.string().optional().nullable(),
|
|
1614
|
-
postalCode: z.string().optional().nullable(),
|
|
1615
|
-
addressLine1: z.string().optional().nullable(),
|
|
1616
|
-
addressLine2: z.string().optional().nullable()
|
|
1673
|
+
type: /* @__PURE__ */ z.enum(["VENUE", "ONLINE"]).describe("Location type.").optional(),
|
|
1674
|
+
address: /* @__PURE__ */ z.object({
|
|
1675
|
+
city: /* @__PURE__ */ z.string().optional().nullable(),
|
|
1676
|
+
subdivision: /* @__PURE__ */ z.string().optional().nullable(),
|
|
1677
|
+
country: /* @__PURE__ */ z.string().optional().nullable(),
|
|
1678
|
+
postalCode: /* @__PURE__ */ z.string().optional().nullable(),
|
|
1679
|
+
addressLine1: /* @__PURE__ */ z.string().optional().nullable(),
|
|
1680
|
+
addressLine2: /* @__PURE__ */ z.string().optional().nullable()
|
|
1617
1681
|
}).describe("Exact location address.").optional(),
|
|
1618
|
-
locationTbd: z.boolean().describe("Whether the event location is TBD.").optional().nullable()
|
|
1682
|
+
locationTbd: /* @__PURE__ */ z.boolean().describe("Whether the event location is TBD.").optional().nullable()
|
|
1619
1683
|
}).describe("Event location.").optional(),
|
|
1620
|
-
dateAndTimeSettings: z.object({
|
|
1621
|
-
dateAndTimeTbd: z.boolean().describe("Whether the event date and time are TBD.").optional().nullable(),
|
|
1622
|
-
dateAndTimeTbdMessage: z.string().describe(
|
|
1684
|
+
dateAndTimeSettings: /* @__PURE__ */ z.object({
|
|
1685
|
+
dateAndTimeTbd: /* @__PURE__ */ z.boolean().describe("Whether the event date and time are TBD.").optional().nullable(),
|
|
1686
|
+
dateAndTimeTbdMessage: /* @__PURE__ */ z.string().describe(
|
|
1623
1687
|
"Message that is displayed when time and date is TBD.\n\n**Note:** This field is only used when the `dateAndTimeTbd` field value is `true`."
|
|
1624
1688
|
).max(100).optional().nullable(),
|
|
1625
|
-
startDate: z.date().describe(
|
|
1689
|
+
startDate: /* @__PURE__ */ z.date().describe(
|
|
1626
1690
|
"Event start date.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
1627
1691
|
).optional().nullable(),
|
|
1628
|
-
endDate: z.date().describe(
|
|
1692
|
+
endDate: /* @__PURE__ */ z.date().describe(
|
|
1629
1693
|
"Event end date.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
1630
1694
|
).optional().nullable(),
|
|
1631
|
-
timeZoneId: z.string().describe(
|
|
1695
|
+
timeZoneId: /* @__PURE__ */ z.string().describe(
|
|
1632
1696
|
"Event time zone ID in the [TZ database](https://www.iana.org/time-zones) format.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
1633
1697
|
).max(100).optional().nullable(),
|
|
1634
|
-
hideEndDate: z.boolean().describe(
|
|
1698
|
+
hideEndDate: /* @__PURE__ */ z.boolean().describe(
|
|
1635
1699
|
"Whether the end date is hidden in the formatted date and time."
|
|
1636
1700
|
).optional().nullable(),
|
|
1637
|
-
showTimeZone: z.boolean().describe(
|
|
1701
|
+
showTimeZone: /* @__PURE__ */ z.boolean().describe(
|
|
1638
1702
|
"Whether the time zone is displayed in the formatted schedule."
|
|
1639
1703
|
).optional().nullable(),
|
|
1640
|
-
recurrenceStatus: z.enum([
|
|
1704
|
+
recurrenceStatus: /* @__PURE__ */ z.enum([
|
|
1641
1705
|
"ONE_TIME",
|
|
1642
1706
|
"RECURRING",
|
|
1643
1707
|
"RECURRING_UPCOMING",
|
|
1644
1708
|
"RECURRING_RECENTLY_ENDED",
|
|
1645
1709
|
"RECURRING_RECENTLY_CANCELED"
|
|
1646
1710
|
]).describe("Repeating event status.").optional(),
|
|
1647
|
-
recurringEvents: z.object({
|
|
1648
|
-
individualEventDates: z.array(
|
|
1649
|
-
z.object({
|
|
1650
|
-
startDate: z.date().describe("Event start date.").optional().nullable(),
|
|
1651
|
-
endDate: z.date().describe("Event end date.").optional().nullable(),
|
|
1652
|
-
timeZoneId: z.string().describe(
|
|
1711
|
+
recurringEvents: /* @__PURE__ */ z.object({
|
|
1712
|
+
individualEventDates: /* @__PURE__ */ z.array(
|
|
1713
|
+
/* @__PURE__ */ z.object({
|
|
1714
|
+
startDate: /* @__PURE__ */ z.date().describe("Event start date.").optional().nullable(),
|
|
1715
|
+
endDate: /* @__PURE__ */ z.date().describe("Event end date.").optional().nullable(),
|
|
1716
|
+
timeZoneId: /* @__PURE__ */ z.string().describe(
|
|
1653
1717
|
"Event time zone ID in the [TZ database](https://www.iana.org/time-zones) format."
|
|
1654
1718
|
).max(100).optional().nullable(),
|
|
1655
|
-
showTimeZone: z.boolean().describe(
|
|
1719
|
+
showTimeZone: /* @__PURE__ */ z.boolean().describe(
|
|
1656
1720
|
"Whether the time zone is displayed in a formatted schedule."
|
|
1657
1721
|
).optional()
|
|
1658
1722
|
})
|
|
1659
1723
|
).max(1e3).optional(),
|
|
1660
|
-
categoryId: z.string().describe(
|
|
1724
|
+
categoryId: /* @__PURE__ */ z.string().describe(
|
|
1661
1725
|
"Recurring event category ID.\n\nThis read-only field is automatically generated and shared by all events in a recurring series. Use this ID to query and retrieve all occurrences of a recurring event."
|
|
1662
1726
|
).max(100).optional().nullable()
|
|
1663
1727
|
}).describe("Event repetitions.").optional(),
|
|
1664
|
-
formatted: z.object({
|
|
1665
|
-
dateAndTime: z.string().describe(
|
|
1728
|
+
formatted: /* @__PURE__ */ z.object({
|
|
1729
|
+
dateAndTime: /* @__PURE__ */ z.string().describe(
|
|
1666
1730
|
"Formatted date and time representation. <br>\nExample of formatting when an event lasts multiple days and is in the UTC time zone: `September 1, 2015 at 10:20 AM \u2013 September 5, 2015 at 12:14 PM`. <br>\nExample of formatting when an event lasts 1 day and is in the GMT+2 time zone: `February 1, 2018, 12:10 \u2013 2:50 PM GMT+2`."
|
|
1667
1731
|
).max(500).optional().nullable(),
|
|
1668
|
-
startDate: z.string().describe(
|
|
1732
|
+
startDate: /* @__PURE__ */ z.string().describe(
|
|
1669
1733
|
"Formatted start date of the event. Empty for TBD schedules."
|
|
1670
1734
|
).max(500).optional().nullable(),
|
|
1671
|
-
startTime: z.string().describe(
|
|
1735
|
+
startTime: /* @__PURE__ */ z.string().describe(
|
|
1672
1736
|
"Formatted start time of the event. Empty for TBD schedules."
|
|
1673
1737
|
).max(500).optional().nullable(),
|
|
1674
|
-
endDate: z.string().describe(
|
|
1738
|
+
endDate: /* @__PURE__ */ z.string().describe(
|
|
1675
1739
|
"Formatted end date of the event. Empty for TBD schedules or when the end date is hidden."
|
|
1676
1740
|
).max(500).optional().nullable(),
|
|
1677
|
-
endTime: z.string().describe(
|
|
1741
|
+
endTime: /* @__PURE__ */ z.string().describe(
|
|
1678
1742
|
"Formatted end time of the event. Empty for TBD schedules or when the end date is hidden."
|
|
1679
1743
|
).max(500).optional().nullable()
|
|
1680
1744
|
}).describe("Formatted date and time settings.").optional()
|
|
1681
1745
|
}).describe("Event date and time settings.").optional(),
|
|
1682
|
-
eventPageUrl: z.string().describe("Event page URL components.").optional(),
|
|
1683
|
-
status: z.enum(["UPCOMING", "STARTED", "ENDED", "CANCELED", "DRAFT"]).describe("Event status.").optional()
|
|
1746
|
+
eventPageUrl: /* @__PURE__ */ z.string().describe("Event page URL components.").optional(),
|
|
1747
|
+
status: /* @__PURE__ */ z.enum(["UPCOMING", "STARTED", "ENDED", "CANCELED", "DRAFT"]).describe("Event status.").optional()
|
|
1684
1748
|
}).describe(
|
|
1685
1749
|
"Information about the even the ticket is for. <br>\n**Note:** This field is only returned when `EVENT_DETAILS` is specified in `field` in the request."
|
|
1686
1750
|
).optional(),
|
|
1687
|
-
seatingDetails: z.object({
|
|
1688
|
-
places: z.array(
|
|
1689
|
-
z.object({
|
|
1690
|
-
placeId: z.string().describe(
|
|
1751
|
+
seatingDetails: /* @__PURE__ */ z.object({
|
|
1752
|
+
places: /* @__PURE__ */ z.array(
|
|
1753
|
+
/* @__PURE__ */ z.object({
|
|
1754
|
+
placeId: /* @__PURE__ */ z.string().describe(
|
|
1691
1755
|
"Place ID in the format `{sectionId}-{elementId}-{label}`. For example, `0-1-A5`."
|
|
1692
1756
|
).min(1).max(20).optional(),
|
|
1693
|
-
label: z.string().describe(
|
|
1757
|
+
label: /* @__PURE__ */ z.string().describe(
|
|
1694
1758
|
"Human-readable label for this place, such as `A1`, `12`, or `VIP1`."
|
|
1695
1759
|
).min(1).max(4).optional(),
|
|
1696
|
-
sectionLabel: z.string().describe(
|
|
1760
|
+
sectionLabel: /* @__PURE__ */ z.string().describe(
|
|
1697
1761
|
"High-level division of the venue, where the place is located, such as `Orchestra`, `Balcony`, or `VIP Section`."
|
|
1698
1762
|
).min(1).max(20).optional().nullable(),
|
|
1699
|
-
elementLabel: z.string().describe(
|
|
1763
|
+
elementLabel: /* @__PURE__ */ z.string().describe(
|
|
1700
1764
|
"Seating element within the section, such as `Row`, `Table`, or `General Admission`."
|
|
1701
1765
|
).min(1).max(50).optional().nullable(),
|
|
1702
|
-
availableCapacity: z.number().int().describe(
|
|
1766
|
+
availableCapacity: /* @__PURE__ */ z.number().int().describe(
|
|
1703
1767
|
"Available capacity at this place.\n\nFor general seating type returns the number of remaining spots.\n\nFor other types returns `1`. For example, if a table has 5 chairs, each chair is treated as a separate place, which has a capacity of 1."
|
|
1704
1768
|
).min(0).max(5e4).optional()
|
|
1705
1769
|
})
|
|
@@ -1709,18 +1773,18 @@ var QueryTicketDefinitionsResponse = /* @__PURE__ */ z.object({
|
|
|
1709
1773
|
).optional()
|
|
1710
1774
|
})
|
|
1711
1775
|
).optional(),
|
|
1712
|
-
metadata: z.object({
|
|
1713
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
1714
|
-
offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
|
|
1715
|
-
total: z.number().int().describe(
|
|
1776
|
+
metadata: /* @__PURE__ */ z.object({
|
|
1777
|
+
count: /* @__PURE__ */ z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
1778
|
+
offset: /* @__PURE__ */ z.number().int().describe("Offset that was requested.").optional().nullable(),
|
|
1779
|
+
total: /* @__PURE__ */ z.number().int().describe(
|
|
1716
1780
|
"Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set."
|
|
1717
1781
|
).optional().nullable(),
|
|
1718
|
-
tooManyToCount: z.boolean().describe(
|
|
1782
|
+
tooManyToCount: /* @__PURE__ */ z.boolean().describe(
|
|
1719
1783
|
"Flag that indicates the server failed to calculate the `total` field."
|
|
1720
1784
|
).optional().nullable(),
|
|
1721
|
-
cursors: z.object({
|
|
1722
|
-
next: z.string().describe("Cursor pointing to next page in the list of results.").max(36).optional().nullable(),
|
|
1723
|
-
prev: z.string().describe(
|
|
1785
|
+
cursors: /* @__PURE__ */ z.object({
|
|
1786
|
+
next: /* @__PURE__ */ z.string().describe("Cursor pointing to next page in the list of results.").max(36).optional().nullable(),
|
|
1787
|
+
prev: /* @__PURE__ */ z.string().describe(
|
|
1724
1788
|
"Cursor pointing to previous page in the list of results."
|
|
1725
1789
|
).max(36).optional().nullable()
|
|
1726
1790
|
}).describe(
|
|
@@ -1729,35 +1793,35 @@ var QueryTicketDefinitionsResponse = /* @__PURE__ */ z.object({
|
|
|
1729
1793
|
}).describe("Metadata for the paginated results.").optional()
|
|
1730
1794
|
});
|
|
1731
1795
|
var QueryAvailableTicketDefinitionsRequest = /* @__PURE__ */ z.object({
|
|
1732
|
-
query: z.intersection(
|
|
1733
|
-
z.object({
|
|
1734
|
-
filter: z.record(z.string(), z.any()).describe(
|
|
1796
|
+
query: /* @__PURE__ */ z.intersection(
|
|
1797
|
+
/* @__PURE__ */ z.object({
|
|
1798
|
+
filter: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
|
|
1735
1799
|
'Filter object in the following format: <br/> `"filter" : { "fieldName1": "value1", "fieldName2":{"$operator":"value2"} }`. <br/> <br/> **Example:** <br/> `"filter" : { "id": "2224a9d1-79e6-4549-a5c5-bf7ce5aac1a5", "revision": {"$ne":"1"} }`'
|
|
1736
1800
|
).optional().nullable(),
|
|
1737
|
-
sort: z.array(
|
|
1738
|
-
z.object({
|
|
1739
|
-
fieldName: z.string().describe("Name of the field to sort by.").max(100).optional(),
|
|
1740
|
-
order: z.enum(["ASC", "DESC"]).optional()
|
|
1801
|
+
sort: /* @__PURE__ */ z.array(
|
|
1802
|
+
/* @__PURE__ */ z.object({
|
|
1803
|
+
fieldName: /* @__PURE__ */ z.string().describe("Name of the field to sort by.").max(100).optional(),
|
|
1804
|
+
order: /* @__PURE__ */ z.enum(["ASC", "DESC"]).optional()
|
|
1741
1805
|
})
|
|
1742
1806
|
).max(10).optional()
|
|
1743
1807
|
}),
|
|
1744
|
-
z.xor([
|
|
1745
|
-
z.object({
|
|
1746
|
-
paging: z.never().optional(),
|
|
1747
|
-
cursorPaging: z.never().optional()
|
|
1808
|
+
/* @__PURE__ */ z.xor([
|
|
1809
|
+
/* @__PURE__ */ z.object({
|
|
1810
|
+
paging: /* @__PURE__ */ z.never().optional(),
|
|
1811
|
+
cursorPaging: /* @__PURE__ */ z.never().optional()
|
|
1748
1812
|
}),
|
|
1749
|
-
z.object({
|
|
1750
|
-
cursorPaging: z.never().optional(),
|
|
1751
|
-
paging: z.object({
|
|
1752
|
-
limit: z.number().int().describe("Number of items to load per page.").min(0).optional().nullable(),
|
|
1753
|
-
offset: z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
|
|
1813
|
+
/* @__PURE__ */ z.object({
|
|
1814
|
+
cursorPaging: /* @__PURE__ */ z.never().optional(),
|
|
1815
|
+
paging: /* @__PURE__ */ z.object({
|
|
1816
|
+
limit: /* @__PURE__ */ z.number().int().describe("Number of items to load per page.").min(0).optional().nullable(),
|
|
1817
|
+
offset: /* @__PURE__ */ z.number().int().describe("Number of items to skip in the current sort order.").min(0).optional().nullable()
|
|
1754
1818
|
}).describe("Paging options to limit and skip the number of items.")
|
|
1755
1819
|
}),
|
|
1756
|
-
z.object({
|
|
1757
|
-
paging: z.never().optional(),
|
|
1758
|
-
cursorPaging: z.object({
|
|
1759
|
-
limit: z.number().int().describe("Number of items to load per page.").min(0).max(100).optional().nullable(),
|
|
1760
|
-
cursor: z.string().describe(
|
|
1820
|
+
/* @__PURE__ */ z.object({
|
|
1821
|
+
paging: /* @__PURE__ */ z.never().optional(),
|
|
1822
|
+
cursorPaging: /* @__PURE__ */ z.object({
|
|
1823
|
+
limit: /* @__PURE__ */ z.number().int().describe("Number of items to load per page.").min(0).max(100).optional().nullable(),
|
|
1824
|
+
cursor: /* @__PURE__ */ z.string().describe(
|
|
1761
1825
|
"Pointer to the next or previous page in the list of results.\nYou can get the relevant cursor token\nfrom the `pagingMetadata` object in the previous call's response.\nNot relevant for the first request."
|
|
1762
1826
|
).max(16e3).optional().nullable()
|
|
1763
1827
|
}).describe(
|
|
@@ -1768,96 +1832,102 @@ var QueryAvailableTicketDefinitionsRequest = /* @__PURE__ */ z.object({
|
|
|
1768
1832
|
).describe(
|
|
1769
1833
|
"Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language) for more details."
|
|
1770
1834
|
),
|
|
1771
|
-
options: z.object({
|
|
1772
|
-
fields: z.array(
|
|
1835
|
+
options: /* @__PURE__ */ z.object({
|
|
1836
|
+
fields: /* @__PURE__ */ z.array(
|
|
1837
|
+
/* @__PURE__ */ z.enum([
|
|
1838
|
+
"SALES_DETAILS",
|
|
1839
|
+
"EVENT_DETAILS",
|
|
1840
|
+
"SEATING_DETAILS"
|
|
1841
|
+
])
|
|
1842
|
+
).max(5).optional()
|
|
1773
1843
|
}).describe("Optional fields.").optional()
|
|
1774
1844
|
});
|
|
1775
1845
|
var QueryAvailableTicketDefinitionsResponse = /* @__PURE__ */ z.object({
|
|
1776
|
-
ticketDefinitions: z.array(
|
|
1777
|
-
z.object({
|
|
1778
|
-
_id: z.string().describe("Ticket definition ID.").regex(
|
|
1846
|
+
ticketDefinitions: /* @__PURE__ */ z.array(
|
|
1847
|
+
/* @__PURE__ */ z.object({
|
|
1848
|
+
_id: /* @__PURE__ */ z.string().describe("Ticket definition ID.").regex(
|
|
1779
1849
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1780
1850
|
"Must be a valid GUID"
|
|
1781
1851
|
).optional().nullable(),
|
|
1782
|
-
eventId: z.string().describe("Event ID to which the ticket definition belongs.").regex(
|
|
1852
|
+
eventId: /* @__PURE__ */ z.string().describe("Event ID to which the ticket definition belongs.").regex(
|
|
1783
1853
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1784
1854
|
"Must be a valid GUID"
|
|
1785
1855
|
).optional().nullable(),
|
|
1786
|
-
revision: z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1856
|
+
revision: /* @__PURE__ */ z.string().regex(/^-?\d+$/, "Must be a valid Int64 string").describe(
|
|
1787
1857
|
"Revision number, which increments by 1 each time the ticket definition is updated. To prevent conflicting changes, the existing `revision` must be used when updating a ticket definition."
|
|
1788
1858
|
).optional().nullable(),
|
|
1789
|
-
_createdDate: z.date().describe("Date and time the ticket definition was created.").optional().nullable(),
|
|
1790
|
-
_updatedDate: z.date().describe("Date and time the ticket definition was updated.").optional().nullable(),
|
|
1791
|
-
name: z.string().describe("Ticket definition name.").min(1).max(30).optional().nullable(),
|
|
1792
|
-
description: z.string().describe("Ticket definition description.").max(500).optional().nullable(),
|
|
1793
|
-
policyText: z.string().describe("Ticket definition policy.").max(1e3).optional().nullable(),
|
|
1794
|
-
hidden: z.boolean().describe(
|
|
1859
|
+
_createdDate: /* @__PURE__ */ z.date().describe("Date and time the ticket definition was created.").optional().nullable(),
|
|
1860
|
+
_updatedDate: /* @__PURE__ */ z.date().describe("Date and time the ticket definition was updated.").optional().nullable(),
|
|
1861
|
+
name: /* @__PURE__ */ z.string().describe("Ticket definition name.").min(1).max(30).optional().nullable(),
|
|
1862
|
+
description: /* @__PURE__ */ z.string().describe("Ticket definition description.").max(500).optional().nullable(),
|
|
1863
|
+
policyText: /* @__PURE__ */ z.string().describe("Ticket definition policy.").max(1e3).optional().nullable(),
|
|
1864
|
+
hidden: /* @__PURE__ */ z.boolean().describe(
|
|
1795
1865
|
"Whether this ticket definition is hidden from site visitors and can't be purchased."
|
|
1796
1866
|
).optional(),
|
|
1797
|
-
limited: z.boolean().describe("Whether the ticket has a limited maximum quantity.").optional(),
|
|
1798
|
-
initialLimit: z.number().int().describe(
|
|
1867
|
+
limited: /* @__PURE__ */ z.boolean().describe("Whether the ticket has a limited maximum quantity.").optional(),
|
|
1868
|
+
initialLimit: /* @__PURE__ */ z.number().int().describe(
|
|
1799
1869
|
"The maximum number of tickets that can be sold for the event when first defining the event. If a seating map is defined after you created a ticket definition, this property is ignored and `actualLimit` is used instead. To create unlimited tickets, skip this field in the request."
|
|
1800
1870
|
).optional().nullable(),
|
|
1801
|
-
actualLimit: z.number().int().describe(
|
|
1871
|
+
actualLimit: /* @__PURE__ */ z.number().int().describe(
|
|
1802
1872
|
"The maximum number of tickets that can be sold for the event after adding a seating map to the event. If no seating map is defined, this property is the same as `initialLimit`."
|
|
1803
1873
|
).optional().nullable(),
|
|
1804
|
-
pricingMethod: z.intersection(
|
|
1805
|
-
z.object({
|
|
1806
|
-
pricingType: z.enum(["STANDARD", "DONATION"]).describe("Ticket price type.").optional(),
|
|
1807
|
-
free: z.boolean().describe(
|
|
1874
|
+
pricingMethod: /* @__PURE__ */ z.intersection(
|
|
1875
|
+
/* @__PURE__ */ z.object({
|
|
1876
|
+
pricingType: /* @__PURE__ */ z.enum(["STANDARD", "DONATION"]).describe("Ticket price type.").optional(),
|
|
1877
|
+
free: /* @__PURE__ */ z.boolean().describe(
|
|
1808
1878
|
'Whether the ticket is free. To create a free ticket, enter `"0"` in `pricingMethod.fixedPrice.value`.'
|
|
1809
1879
|
).optional()
|
|
1810
1880
|
}),
|
|
1811
|
-
z.xor([
|
|
1812
|
-
z.object({
|
|
1813
|
-
fixedPrice: z.never().optional(),
|
|
1814
|
-
guestPrice: z.never().optional(),
|
|
1815
|
-
pricingOptions: z.never().optional()
|
|
1881
|
+
/* @__PURE__ */ z.xor([
|
|
1882
|
+
/* @__PURE__ */ z.object({
|
|
1883
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
1884
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
1885
|
+
pricingOptions: /* @__PURE__ */ z.never().optional()
|
|
1816
1886
|
}),
|
|
1817
|
-
z.object({
|
|
1818
|
-
guestPrice: z.never().optional(),
|
|
1819
|
-
pricingOptions: z.never().optional(),
|
|
1820
|
-
fixedPrice: z.object({
|
|
1821
|
-
value: z.string().describe(
|
|
1887
|
+
/* @__PURE__ */ z.object({
|
|
1888
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
1889
|
+
pricingOptions: /* @__PURE__ */ z.never().optional(),
|
|
1890
|
+
fixedPrice: /* @__PURE__ */ z.object({
|
|
1891
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
1822
1892
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
1823
1893
|
).optional(),
|
|
1824
|
-
currency: z.string().describe(
|
|
1894
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
1825
1895
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
1826
1896
|
).optional()
|
|
1827
1897
|
}).describe("Same ticket price for everyone.")
|
|
1828
1898
|
}),
|
|
1829
|
-
z.object({
|
|
1830
|
-
fixedPrice: z.never().optional(),
|
|
1831
|
-
pricingOptions: z.never().optional(),
|
|
1832
|
-
guestPrice: z.object({
|
|
1833
|
-
value: z.string().describe(
|
|
1899
|
+
/* @__PURE__ */ z.object({
|
|
1900
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
1901
|
+
pricingOptions: /* @__PURE__ */ z.never().optional(),
|
|
1902
|
+
guestPrice: /* @__PURE__ */ z.object({
|
|
1903
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
1834
1904
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
1835
1905
|
).optional(),
|
|
1836
|
-
currency: z.string().describe(
|
|
1906
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
1837
1907
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
1838
1908
|
).optional()
|
|
1839
1909
|
}).describe(
|
|
1840
1910
|
'Guests choose how much they\'d like to pay for the ticket. You can set the minimum price, or specify `"0"` in the request to make the ticket free. The price can be updated to a higher amount by a guest during the checkout.'
|
|
1841
1911
|
)
|
|
1842
1912
|
}),
|
|
1843
|
-
z.object({
|
|
1844
|
-
fixedPrice: z.never().optional(),
|
|
1845
|
-
guestPrice: z.never().optional(),
|
|
1846
|
-
pricingOptions: z.object({
|
|
1847
|
-
optionDetails: z.array(
|
|
1848
|
-
z.object({
|
|
1849
|
-
optionId: z.string().describe("Ticket price option ID.").regex(
|
|
1913
|
+
/* @__PURE__ */ z.object({
|
|
1914
|
+
fixedPrice: /* @__PURE__ */ z.never().optional(),
|
|
1915
|
+
guestPrice: /* @__PURE__ */ z.never().optional(),
|
|
1916
|
+
pricingOptions: /* @__PURE__ */ z.object({
|
|
1917
|
+
optionDetails: /* @__PURE__ */ z.array(
|
|
1918
|
+
/* @__PURE__ */ z.object({
|
|
1919
|
+
optionId: /* @__PURE__ */ z.string().describe("Ticket price option ID.").regex(
|
|
1850
1920
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
1851
1921
|
"Must be a valid GUID"
|
|
1852
1922
|
).optional().nullable(),
|
|
1853
|
-
name: z.string().describe(
|
|
1923
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
1854
1924
|
'Ticket price option name, such as "Child Ticket".'
|
|
1855
1925
|
).min(1).max(200).optional().nullable(),
|
|
1856
|
-
price: z.object({
|
|
1857
|
-
value: z.string().describe(
|
|
1926
|
+
price: /* @__PURE__ */ z.object({
|
|
1927
|
+
value: /* @__PURE__ */ z.string().describe(
|
|
1858
1928
|
"Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, a single (-), to indicate that the amount is negative."
|
|
1859
1929
|
).optional(),
|
|
1860
|
-
currency: z.string().describe(
|
|
1930
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
1861
1931
|
"Currency code. Must be a valid [ISO 4217](https://www.iso.org/iso-4217-currency-codes.html) currency code (e.g., USD)."
|
|
1862
1932
|
).optional()
|
|
1863
1933
|
}).describe("Ticket price.").optional()
|
|
@@ -1869,138 +1939,144 @@ var QueryAvailableTicketDefinitionsResponse = /* @__PURE__ */ z.object({
|
|
|
1869
1939
|
})
|
|
1870
1940
|
])
|
|
1871
1941
|
).describe("Ticket pricing method.").optional(),
|
|
1872
|
-
feeType: z.enum(["FEE_INCLUDED", "FEE_ADDED_AT_CHECKOUT", "NO_FEE"]).describe("Type of ticket service fee to collect.").optional(),
|
|
1873
|
-
salePeriod: z.object({
|
|
1874
|
-
startDate: z.date().describe(
|
|
1942
|
+
feeType: /* @__PURE__ */ z.enum(["FEE_INCLUDED", "FEE_ADDED_AT_CHECKOUT", "NO_FEE"]).describe("Type of ticket service fee to collect.").optional(),
|
|
1943
|
+
salePeriod: /* @__PURE__ */ z.object({
|
|
1944
|
+
startDate: /* @__PURE__ */ z.date().describe(
|
|
1875
1945
|
"Date and time the ticket sale starts. Rounded down to the nearest minute."
|
|
1876
1946
|
).optional().nullable(),
|
|
1877
|
-
endDate: z.date().describe(
|
|
1947
|
+
endDate: /* @__PURE__ */ z.date().describe(
|
|
1878
1948
|
"Date and time the ticket sale ends. Rounded down to the nearest minute."
|
|
1879
1949
|
).optional().nullable(),
|
|
1880
|
-
displayNotOnSale: z.boolean().describe(
|
|
1950
|
+
displayNotOnSale: /* @__PURE__ */ z.boolean().describe(
|
|
1881
1951
|
"Whether to display the ticket if it's not available to buy."
|
|
1882
1952
|
).optional()
|
|
1883
1953
|
}).describe("Ticket sale period.").optional(),
|
|
1884
|
-
saleStatus: z.enum(["SALE_SCHEDULED", "SALE_STARTED", "SALE_ENDED"]).describe("Ticket sale status.").optional(),
|
|
1885
|
-
salesDetails: z.object({
|
|
1886
|
-
unsoldCount: z.number().int().describe(
|
|
1954
|
+
saleStatus: /* @__PURE__ */ z.enum(["SALE_SCHEDULED", "SALE_STARTED", "SALE_ENDED"]).describe("Ticket sale status.").optional(),
|
|
1955
|
+
salesDetails: /* @__PURE__ */ z.object({
|
|
1956
|
+
unsoldCount: /* @__PURE__ */ z.number().int().describe(
|
|
1887
1957
|
"Number of tickets that haven't been purchased yet. The field is `null` if the ticket quantity is unlimited."
|
|
1888
1958
|
).optional().nullable(),
|
|
1889
|
-
soldCount: z.number().int().describe("Number of purchased tickets.").optional().nullable(),
|
|
1890
|
-
reservedCount: z.number().int().describe("Number of reserved tickets.").optional().nullable(),
|
|
1891
|
-
soldOut: z.boolean().describe("Whether the tickets are sold out.").optional().nullable()
|
|
1959
|
+
soldCount: /* @__PURE__ */ z.number().int().describe("Number of purchased tickets.").optional().nullable(),
|
|
1960
|
+
reservedCount: /* @__PURE__ */ z.number().int().describe("Number of reserved tickets.").optional().nullable(),
|
|
1961
|
+
soldOut: /* @__PURE__ */ z.boolean().describe("Whether the tickets are sold out.").optional().nullable()
|
|
1892
1962
|
}).describe(
|
|
1893
1963
|
"Ticket sales information. <br> <br>\n**Note:** This field is only returned when `SALES_DETAILS` is specified in `field` in the request."
|
|
1894
1964
|
).optional(),
|
|
1895
|
-
limitPerCheckout: z.number().int().describe(
|
|
1965
|
+
limitPerCheckout: /* @__PURE__ */ z.number().int().describe(
|
|
1896
1966
|
"Number of tickets that can be purchased per checkout. <br> <br>\n**Note:** If the `actualLimit` or `salesDetails.unsoldCount` field value is smaller than `limitPerCheckout`, then it overrides this field."
|
|
1897
1967
|
).min(0).max(50).optional().nullable(),
|
|
1898
|
-
extendedFields: z.object({
|
|
1899
|
-
namespaces:
|
|
1968
|
+
extendedFields: /* @__PURE__ */ z.object({
|
|
1969
|
+
namespaces: /* @__PURE__ */ z.record(
|
|
1970
|
+
/* @__PURE__ */ z.string(),
|
|
1971
|
+
/* @__PURE__ */ z.record(
|
|
1972
|
+
/* @__PURE__ */ z.string(),
|
|
1973
|
+
/* @__PURE__ */ z.any()
|
|
1974
|
+
)
|
|
1975
|
+
).describe(
|
|
1900
1976
|
"Extended field data. Each key corresponds to the namespace of the app that created the extended fields.\nThe value of each key is structured according to the schema defined when the extended fields were configured.\n\nYou can only access fields for which you have the appropriate permissions.\n\nLearn more about [extended fields](https://dev.wix.com/docs/rest/articles/getting-started/extended-fields)."
|
|
1901
1977
|
).optional()
|
|
1902
1978
|
}).describe("Data extensions.").optional(),
|
|
1903
|
-
eventDetails: z.object({
|
|
1904
|
-
title: z.string().describe("Event title.").min(1).max(120).optional().nullable(),
|
|
1905
|
-
shortDescription: z.string().describe("Short description of the event.").max(500).optional().nullable(),
|
|
1906
|
-
location: z.object({
|
|
1907
|
-
name: z.string().describe(
|
|
1979
|
+
eventDetails: /* @__PURE__ */ z.object({
|
|
1980
|
+
title: /* @__PURE__ */ z.string().describe("Event title.").min(1).max(120).optional().nullable(),
|
|
1981
|
+
shortDescription: /* @__PURE__ */ z.string().describe("Short description of the event.").max(500).optional().nullable(),
|
|
1982
|
+
location: /* @__PURE__ */ z.object({
|
|
1983
|
+
name: /* @__PURE__ */ z.string().describe(
|
|
1908
1984
|
"Location name. This value is displayed instead of the address when the location is defined as TBD by setting the `locationTbd` property to `true`."
|
|
1909
1985
|
).max(50).optional().nullable(),
|
|
1910
|
-
type: z.enum(["VENUE", "ONLINE"]).describe("Location type.").optional(),
|
|
1911
|
-
address: z.object({
|
|
1912
|
-
city: z.string().optional().nullable(),
|
|
1913
|
-
subdivision: z.string().optional().nullable(),
|
|
1914
|
-
country: z.string().optional().nullable(),
|
|
1915
|
-
postalCode: z.string().optional().nullable(),
|
|
1916
|
-
addressLine1: z.string().optional().nullable(),
|
|
1917
|
-
addressLine2: z.string().optional().nullable()
|
|
1986
|
+
type: /* @__PURE__ */ z.enum(["VENUE", "ONLINE"]).describe("Location type.").optional(),
|
|
1987
|
+
address: /* @__PURE__ */ z.object({
|
|
1988
|
+
city: /* @__PURE__ */ z.string().optional().nullable(),
|
|
1989
|
+
subdivision: /* @__PURE__ */ z.string().optional().nullable(),
|
|
1990
|
+
country: /* @__PURE__ */ z.string().optional().nullable(),
|
|
1991
|
+
postalCode: /* @__PURE__ */ z.string().optional().nullable(),
|
|
1992
|
+
addressLine1: /* @__PURE__ */ z.string().optional().nullable(),
|
|
1993
|
+
addressLine2: /* @__PURE__ */ z.string().optional().nullable()
|
|
1918
1994
|
}).describe("Exact location address.").optional(),
|
|
1919
|
-
locationTbd: z.boolean().describe("Whether the event location is TBD.").optional().nullable()
|
|
1995
|
+
locationTbd: /* @__PURE__ */ z.boolean().describe("Whether the event location is TBD.").optional().nullable()
|
|
1920
1996
|
}).describe("Event location.").optional(),
|
|
1921
|
-
dateAndTimeSettings: z.object({
|
|
1922
|
-
dateAndTimeTbd: z.boolean().describe("Whether the event date and time are TBD.").optional().nullable(),
|
|
1923
|
-
dateAndTimeTbdMessage: z.string().describe(
|
|
1997
|
+
dateAndTimeSettings: /* @__PURE__ */ z.object({
|
|
1998
|
+
dateAndTimeTbd: /* @__PURE__ */ z.boolean().describe("Whether the event date and time are TBD.").optional().nullable(),
|
|
1999
|
+
dateAndTimeTbdMessage: /* @__PURE__ */ z.string().describe(
|
|
1924
2000
|
"Message that is displayed when time and date is TBD.\n\n**Note:** This field is only used when the `dateAndTimeTbd` field value is `true`."
|
|
1925
2001
|
).max(100).optional().nullable(),
|
|
1926
|
-
startDate: z.date().describe(
|
|
2002
|
+
startDate: /* @__PURE__ */ z.date().describe(
|
|
1927
2003
|
"Event start date.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
1928
2004
|
).optional().nullable(),
|
|
1929
|
-
endDate: z.date().describe(
|
|
2005
|
+
endDate: /* @__PURE__ */ z.date().describe(
|
|
1930
2006
|
"Event end date.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
1931
2007
|
).optional().nullable(),
|
|
1932
|
-
timeZoneId: z.string().describe(
|
|
2008
|
+
timeZoneId: /* @__PURE__ */ z.string().describe(
|
|
1933
2009
|
"Event time zone ID in the [TZ database](https://www.iana.org/time-zones) format.\n\n**Note:** This field is only returned when the `dateAndTimeTbd` field value is `false`."
|
|
1934
2010
|
).max(100).optional().nullable(),
|
|
1935
|
-
hideEndDate: z.boolean().describe(
|
|
2011
|
+
hideEndDate: /* @__PURE__ */ z.boolean().describe(
|
|
1936
2012
|
"Whether the end date is hidden in the formatted date and time."
|
|
1937
2013
|
).optional().nullable(),
|
|
1938
|
-
showTimeZone: z.boolean().describe(
|
|
2014
|
+
showTimeZone: /* @__PURE__ */ z.boolean().describe(
|
|
1939
2015
|
"Whether the time zone is displayed in the formatted schedule."
|
|
1940
2016
|
).optional().nullable(),
|
|
1941
|
-
recurrenceStatus: z.enum([
|
|
2017
|
+
recurrenceStatus: /* @__PURE__ */ z.enum([
|
|
1942
2018
|
"ONE_TIME",
|
|
1943
2019
|
"RECURRING",
|
|
1944
2020
|
"RECURRING_UPCOMING",
|
|
1945
2021
|
"RECURRING_RECENTLY_ENDED",
|
|
1946
2022
|
"RECURRING_RECENTLY_CANCELED"
|
|
1947
2023
|
]).describe("Repeating event status.").optional(),
|
|
1948
|
-
recurringEvents: z.object({
|
|
1949
|
-
individualEventDates: z.array(
|
|
1950
|
-
z.object({
|
|
1951
|
-
startDate: z.date().describe("Event start date.").optional().nullable(),
|
|
1952
|
-
endDate: z.date().describe("Event end date.").optional().nullable(),
|
|
1953
|
-
timeZoneId: z.string().describe(
|
|
2024
|
+
recurringEvents: /* @__PURE__ */ z.object({
|
|
2025
|
+
individualEventDates: /* @__PURE__ */ z.array(
|
|
2026
|
+
/* @__PURE__ */ z.object({
|
|
2027
|
+
startDate: /* @__PURE__ */ z.date().describe("Event start date.").optional().nullable(),
|
|
2028
|
+
endDate: /* @__PURE__ */ z.date().describe("Event end date.").optional().nullable(),
|
|
2029
|
+
timeZoneId: /* @__PURE__ */ z.string().describe(
|
|
1954
2030
|
"Event time zone ID in the [TZ database](https://www.iana.org/time-zones) format."
|
|
1955
2031
|
).max(100).optional().nullable(),
|
|
1956
|
-
showTimeZone: z.boolean().describe(
|
|
2032
|
+
showTimeZone: /* @__PURE__ */ z.boolean().describe(
|
|
1957
2033
|
"Whether the time zone is displayed in a formatted schedule."
|
|
1958
2034
|
).optional()
|
|
1959
2035
|
})
|
|
1960
2036
|
).max(1e3).optional(),
|
|
1961
|
-
categoryId: z.string().describe(
|
|
2037
|
+
categoryId: /* @__PURE__ */ z.string().describe(
|
|
1962
2038
|
"Recurring event category ID.\n\nThis read-only field is automatically generated and shared by all events in a recurring series. Use this ID to query and retrieve all occurrences of a recurring event."
|
|
1963
2039
|
).max(100).optional().nullable()
|
|
1964
2040
|
}).describe("Event repetitions.").optional(),
|
|
1965
|
-
formatted: z.object({
|
|
1966
|
-
dateAndTime: z.string().describe(
|
|
2041
|
+
formatted: /* @__PURE__ */ z.object({
|
|
2042
|
+
dateAndTime: /* @__PURE__ */ z.string().describe(
|
|
1967
2043
|
"Formatted date and time representation. <br>\nExample of formatting when an event lasts multiple days and is in the UTC time zone: `September 1, 2015 at 10:20 AM \u2013 September 5, 2015 at 12:14 PM`. <br>\nExample of formatting when an event lasts 1 day and is in the GMT+2 time zone: `February 1, 2018, 12:10 \u2013 2:50 PM GMT+2`."
|
|
1968
2044
|
).max(500).optional().nullable(),
|
|
1969
|
-
startDate: z.string().describe(
|
|
2045
|
+
startDate: /* @__PURE__ */ z.string().describe(
|
|
1970
2046
|
"Formatted start date of the event. Empty for TBD schedules."
|
|
1971
2047
|
).max(500).optional().nullable(),
|
|
1972
|
-
startTime: z.string().describe(
|
|
2048
|
+
startTime: /* @__PURE__ */ z.string().describe(
|
|
1973
2049
|
"Formatted start time of the event. Empty for TBD schedules."
|
|
1974
2050
|
).max(500).optional().nullable(),
|
|
1975
|
-
endDate: z.string().describe(
|
|
2051
|
+
endDate: /* @__PURE__ */ z.string().describe(
|
|
1976
2052
|
"Formatted end date of the event. Empty for TBD schedules or when the end date is hidden."
|
|
1977
2053
|
).max(500).optional().nullable(),
|
|
1978
|
-
endTime: z.string().describe(
|
|
2054
|
+
endTime: /* @__PURE__ */ z.string().describe(
|
|
1979
2055
|
"Formatted end time of the event. Empty for TBD schedules or when the end date is hidden."
|
|
1980
2056
|
).max(500).optional().nullable()
|
|
1981
2057
|
}).describe("Formatted date and time settings.").optional()
|
|
1982
2058
|
}).describe("Event date and time settings.").optional(),
|
|
1983
|
-
eventPageUrl: z.string().describe("Event page URL components.").optional(),
|
|
1984
|
-
status: z.enum(["UPCOMING", "STARTED", "ENDED", "CANCELED", "DRAFT"]).describe("Event status.").optional()
|
|
2059
|
+
eventPageUrl: /* @__PURE__ */ z.string().describe("Event page URL components.").optional(),
|
|
2060
|
+
status: /* @__PURE__ */ z.enum(["UPCOMING", "STARTED", "ENDED", "CANCELED", "DRAFT"]).describe("Event status.").optional()
|
|
1985
2061
|
}).describe(
|
|
1986
2062
|
"Information about the even the ticket is for. <br>\n**Note:** This field is only returned when `EVENT_DETAILS` is specified in `field` in the request."
|
|
1987
2063
|
).optional(),
|
|
1988
|
-
seatingDetails: z.object({
|
|
1989
|
-
places: z.array(
|
|
1990
|
-
z.object({
|
|
1991
|
-
placeId: z.string().describe(
|
|
2064
|
+
seatingDetails: /* @__PURE__ */ z.object({
|
|
2065
|
+
places: /* @__PURE__ */ z.array(
|
|
2066
|
+
/* @__PURE__ */ z.object({
|
|
2067
|
+
placeId: /* @__PURE__ */ z.string().describe(
|
|
1992
2068
|
"Place ID in the format `{sectionId}-{elementId}-{label}`. For example, `0-1-A5`."
|
|
1993
2069
|
).min(1).max(20).optional(),
|
|
1994
|
-
label: z.string().describe(
|
|
2070
|
+
label: /* @__PURE__ */ z.string().describe(
|
|
1995
2071
|
"Human-readable label for this place, such as `A1`, `12`, or `VIP1`."
|
|
1996
2072
|
).min(1).max(4).optional(),
|
|
1997
|
-
sectionLabel: z.string().describe(
|
|
2073
|
+
sectionLabel: /* @__PURE__ */ z.string().describe(
|
|
1998
2074
|
"High-level division of the venue, where the place is located, such as `Orchestra`, `Balcony`, or `VIP Section`."
|
|
1999
2075
|
).min(1).max(20).optional().nullable(),
|
|
2000
|
-
elementLabel: z.string().describe(
|
|
2076
|
+
elementLabel: /* @__PURE__ */ z.string().describe(
|
|
2001
2077
|
"Seating element within the section, such as `Row`, `Table`, or `General Admission`."
|
|
2002
2078
|
).min(1).max(50).optional().nullable(),
|
|
2003
|
-
availableCapacity: z.number().int().describe(
|
|
2079
|
+
availableCapacity: /* @__PURE__ */ z.number().int().describe(
|
|
2004
2080
|
"Available capacity at this place.\n\nFor general seating type returns the number of remaining spots.\n\nFor other types returns `1`. For example, if a table has 5 chairs, each chair is treated as a separate place, which has a capacity of 1."
|
|
2005
2081
|
).min(0).max(5e4).optional()
|
|
2006
2082
|
})
|
|
@@ -2010,18 +2086,18 @@ var QueryAvailableTicketDefinitionsResponse = /* @__PURE__ */ z.object({
|
|
|
2010
2086
|
).optional()
|
|
2011
2087
|
})
|
|
2012
2088
|
).optional(),
|
|
2013
|
-
metadata: z.object({
|
|
2014
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
2015
|
-
offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
|
|
2016
|
-
total: z.number().int().describe(
|
|
2089
|
+
metadata: /* @__PURE__ */ z.object({
|
|
2090
|
+
count: /* @__PURE__ */ z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
2091
|
+
offset: /* @__PURE__ */ z.number().int().describe("Offset that was requested.").optional().nullable(),
|
|
2092
|
+
total: /* @__PURE__ */ z.number().int().describe(
|
|
2017
2093
|
"Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set."
|
|
2018
2094
|
).optional().nullable(),
|
|
2019
|
-
tooManyToCount: z.boolean().describe(
|
|
2095
|
+
tooManyToCount: /* @__PURE__ */ z.boolean().describe(
|
|
2020
2096
|
"Flag that indicates the server failed to calculate the `total` field."
|
|
2021
2097
|
).optional().nullable(),
|
|
2022
|
-
cursors: z.object({
|
|
2023
|
-
next: z.string().describe("Cursor pointing to next page in the list of results.").max(36).optional().nullable(),
|
|
2024
|
-
prev: z.string().describe(
|
|
2098
|
+
cursors: /* @__PURE__ */ z.object({
|
|
2099
|
+
next: /* @__PURE__ */ z.string().describe("Cursor pointing to next page in the list of results.").max(36).optional().nullable(),
|
|
2100
|
+
prev: /* @__PURE__ */ z.string().describe(
|
|
2025
2101
|
"Cursor pointing to previous page in the list of results."
|
|
2026
2102
|
).max(36).optional().nullable()
|
|
2027
2103
|
}).describe(
|
|
@@ -2030,59 +2106,59 @@ var QueryAvailableTicketDefinitionsResponse = /* @__PURE__ */ z.object({
|
|
|
2030
2106
|
}).describe("Metadata for the paginated results.").optional()
|
|
2031
2107
|
});
|
|
2032
2108
|
var CountTicketDefinitionsRequest = /* @__PURE__ */ z.object({
|
|
2033
|
-
options: z.object({
|
|
2034
|
-
filter: z.record(z.string(), z.any()).describe(
|
|
2109
|
+
options: /* @__PURE__ */ z.object({
|
|
2110
|
+
filter: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
|
|
2035
2111
|
'Filter object in the following format: <br/> `"filter" : { "fieldName1": "value1" }`.'
|
|
2036
2112
|
).optional().nullable(),
|
|
2037
|
-
facet: z.array(z.string()).max(20).optional()
|
|
2113
|
+
facet: /* @__PURE__ */ z.array(/* @__PURE__ */ z.string()).max(20).optional()
|
|
2038
2114
|
}).describe("Optional fields.").optional()
|
|
2039
2115
|
});
|
|
2040
2116
|
var CountTicketDefinitionsResponse = /* @__PURE__ */ z.object({
|
|
2041
|
-
metadata: z.object({
|
|
2042
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
2043
|
-
offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
|
|
2044
|
-
total: z.number().int().describe(
|
|
2117
|
+
metadata: /* @__PURE__ */ z.object({
|
|
2118
|
+
count: /* @__PURE__ */ z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
2119
|
+
offset: /* @__PURE__ */ z.number().int().describe("Offset that was requested.").optional().nullable(),
|
|
2120
|
+
total: /* @__PURE__ */ z.number().int().describe(
|
|
2045
2121
|
"Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set."
|
|
2046
2122
|
).optional().nullable(),
|
|
2047
|
-
tooManyToCount: z.boolean().describe(
|
|
2123
|
+
tooManyToCount: /* @__PURE__ */ z.boolean().describe(
|
|
2048
2124
|
"Flag that indicates the server failed to calculate the `total` field."
|
|
2049
2125
|
).optional().nullable(),
|
|
2050
|
-
cursors: z.object({
|
|
2051
|
-
next: z.string().describe("Cursor pointing to next page in the list of results.").max(36).optional().nullable(),
|
|
2052
|
-
prev: z.string().describe(
|
|
2126
|
+
cursors: /* @__PURE__ */ z.object({
|
|
2127
|
+
next: /* @__PURE__ */ z.string().describe("Cursor pointing to next page in the list of results.").max(36).optional().nullable(),
|
|
2128
|
+
prev: /* @__PURE__ */ z.string().describe(
|
|
2053
2129
|
"Cursor pointing to previous page in the list of results."
|
|
2054
2130
|
).max(36).optional().nullable()
|
|
2055
2131
|
}).describe(
|
|
2056
2132
|
"Cursors to navigate through the result pages using `next` and `prev`. Returned if cursor paging is used."
|
|
2057
2133
|
).optional()
|
|
2058
2134
|
}).describe("Metadata for the paginated results.").optional(),
|
|
2059
|
-
facets: z.record(
|
|
2060
|
-
z.string(),
|
|
2061
|
-
z.object({
|
|
2062
|
-
counts: z.record(z.string(), z.number().int()).describe("Facet counts aggregated per value").optional()
|
|
2135
|
+
facets: /* @__PURE__ */ z.record(
|
|
2136
|
+
/* @__PURE__ */ z.string(),
|
|
2137
|
+
/* @__PURE__ */ z.object({
|
|
2138
|
+
counts: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.number().int()).describe("Facet counts aggregated per value").optional()
|
|
2063
2139
|
})
|
|
2064
2140
|
).describe("Filter facets.").optional()
|
|
2065
2141
|
});
|
|
2066
2142
|
var CountAvailableTicketDefinitionsRequest = /* @__PURE__ */ z.object({
|
|
2067
|
-
options: z.object({
|
|
2068
|
-
filter: z.record(z.string(), z.any()).describe(
|
|
2143
|
+
options: /* @__PURE__ */ z.object({
|
|
2144
|
+
filter: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
|
|
2069
2145
|
'Filter object in the following format: <br/> `"filter" : { "fieldName1": "value1" }`.'
|
|
2070
2146
|
).optional().nullable()
|
|
2071
2147
|
}).describe("Optional fields.").optional()
|
|
2072
2148
|
});
|
|
2073
2149
|
var CountAvailableTicketDefinitionsResponse = /* @__PURE__ */ z.object({
|
|
2074
|
-
metadata: z.object({
|
|
2075
|
-
count: z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
2076
|
-
offset: z.number().int().describe("Offset that was requested.").optional().nullable(),
|
|
2077
|
-
total: z.number().int().describe(
|
|
2150
|
+
metadata: /* @__PURE__ */ z.object({
|
|
2151
|
+
count: /* @__PURE__ */ z.number().int().describe("Number of items returned in the response.").optional().nullable(),
|
|
2152
|
+
offset: /* @__PURE__ */ z.number().int().describe("Offset that was requested.").optional().nullable(),
|
|
2153
|
+
total: /* @__PURE__ */ z.number().int().describe(
|
|
2078
2154
|
"Total number of items that match the query. Returned if offset paging is used and the `tooManyToCount` flag is not set."
|
|
2079
2155
|
).optional().nullable(),
|
|
2080
|
-
tooManyToCount: z.boolean().describe(
|
|
2156
|
+
tooManyToCount: /* @__PURE__ */ z.boolean().describe(
|
|
2081
2157
|
"Flag that indicates the server failed to calculate the `total` field."
|
|
2082
2158
|
).optional().nullable(),
|
|
2083
|
-
cursors: z.object({
|
|
2084
|
-
next: z.string().describe("Cursor pointing to next page in the list of results.").max(36).optional().nullable(),
|
|
2085
|
-
prev: z.string().describe(
|
|
2159
|
+
cursors: /* @__PURE__ */ z.object({
|
|
2160
|
+
next: /* @__PURE__ */ z.string().describe("Cursor pointing to next page in the list of results.").max(36).optional().nullable(),
|
|
2161
|
+
prev: /* @__PURE__ */ z.string().describe(
|
|
2086
2162
|
"Cursor pointing to previous page in the list of results."
|
|
2087
2163
|
).max(36).optional().nullable()
|
|
2088
2164
|
}).describe(
|
|
@@ -2091,18 +2167,18 @@ var CountAvailableTicketDefinitionsResponse = /* @__PURE__ */ z.object({
|
|
|
2091
2167
|
}).describe("Metadata for the paginated results.").optional()
|
|
2092
2168
|
});
|
|
2093
2169
|
var BulkDeleteTicketDefinitionsByFilterRequest = /* @__PURE__ */ z.object({
|
|
2094
|
-
filter: z.record(z.string(), z.any()).describe(
|
|
2170
|
+
filter: /* @__PURE__ */ z.record(/* @__PURE__ */ z.string(), /* @__PURE__ */ z.any()).describe(
|
|
2095
2171
|
"Filter object. See [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language) for more details."
|
|
2096
2172
|
)
|
|
2097
2173
|
});
|
|
2098
2174
|
var BulkDeleteTicketDefinitionsByFilterResponse = /* @__PURE__ */ z.object({});
|
|
2099
2175
|
var ChangeCurrencyRequest = /* @__PURE__ */ z.object({
|
|
2100
|
-
eventId: z.string().describe("Event ID.").regex(
|
|
2176
|
+
eventId: /* @__PURE__ */ z.string().describe("Event ID.").regex(
|
|
2101
2177
|
/^[0-9a-fA-F]{8}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{4}-[0-9a-fA-F]{12}$/,
|
|
2102
2178
|
"Must be a valid GUID"
|
|
2103
2179
|
),
|
|
2104
|
-
options: z.object({
|
|
2105
|
-
currency: z.string().describe(
|
|
2180
|
+
options: /* @__PURE__ */ z.object({
|
|
2181
|
+
currency: /* @__PURE__ */ z.string().describe(
|
|
2106
2182
|
"Ticket price currency in 3-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format."
|
|
2107
2183
|
).min(3).max(3)
|
|
2108
2184
|
}).describe("Optional fields.")
|