@wix/auto_sdk_events_ticket-definitions 1.0.3 → 1.0.5
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/src/events-v1-ticket-definition-ticket-definitions.context.d.ts +1 -1
- package/build/cjs/src/events-v1-ticket-definition-ticket-definitions.public.d.ts +1 -1
- package/build/cjs/src/events-v1-ticket-definition-ticket-definitions.public.js.map +1 -1
- package/build/cjs/src/events-v1-ticket-definition-ticket-definitions.types.d.ts +223 -52
- package/build/cjs/src/events-v1-ticket-definition-ticket-definitions.types.js.map +1 -1
- package/build/cjs/src/events-v1-ticket-definition-ticket-definitions.universal.d.ts +270 -59
- package/build/cjs/src/events-v1-ticket-definition-ticket-definitions.universal.js.map +1 -1
- package/build/es/src/events-v1-ticket-definition-ticket-definitions.context.d.ts +1 -1
- package/build/es/src/events-v1-ticket-definition-ticket-definitions.public.d.ts +1 -1
- package/build/es/src/events-v1-ticket-definition-ticket-definitions.public.js.map +1 -1
- package/build/es/src/events-v1-ticket-definition-ticket-definitions.types.d.ts +223 -52
- package/build/es/src/events-v1-ticket-definition-ticket-definitions.types.js.map +1 -1
- package/build/es/src/events-v1-ticket-definition-ticket-definitions.universal.d.ts +270 -59
- package/build/es/src/events-v1-ticket-definition-ticket-definitions.universal.js.map +1 -1
- package/build/internal/cjs/src/events-v1-ticket-definition-ticket-definitions.context.d.ts +1 -1
- package/build/internal/cjs/src/events-v1-ticket-definition-ticket-definitions.public.d.ts +1 -1
- package/build/internal/cjs/src/events-v1-ticket-definition-ticket-definitions.public.js.map +1 -1
- package/build/internal/cjs/src/events-v1-ticket-definition-ticket-definitions.types.d.ts +223 -52
- package/build/internal/cjs/src/events-v1-ticket-definition-ticket-definitions.types.js.map +1 -1
- package/build/internal/cjs/src/events-v1-ticket-definition-ticket-definitions.universal.d.ts +271 -59
- package/build/internal/cjs/src/events-v1-ticket-definition-ticket-definitions.universal.js.map +1 -1
- package/build/internal/es/src/events-v1-ticket-definition-ticket-definitions.context.d.ts +1 -1
- package/build/internal/es/src/events-v1-ticket-definition-ticket-definitions.public.d.ts +1 -1
- package/build/internal/es/src/events-v1-ticket-definition-ticket-definitions.public.js.map +1 -1
- package/build/internal/es/src/events-v1-ticket-definition-ticket-definitions.types.d.ts +223 -52
- package/build/internal/es/src/events-v1-ticket-definition-ticket-definitions.types.js.map +1 -1
- package/build/internal/es/src/events-v1-ticket-definition-ticket-definitions.universal.d.ts +271 -59
- package/build/internal/es/src/events-v1-ticket-definition-ticket-definitions.universal.js.map +1 -1
- package/package.json +2 -2
package/build/internal/cjs/src/events-v1-ticket-definition-ticket-definitions.universal.d.ts
CHANGED
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
export interface TicketDefinition {
|
|
2
|
-
/**
|
|
2
|
+
/**
|
|
3
|
+
* Ticket definition ID.
|
|
4
|
+
* @format GUID
|
|
5
|
+
*/
|
|
3
6
|
_id?: string;
|
|
4
7
|
/** Ticket price. */
|
|
5
8
|
price?: Money;
|
|
@@ -12,6 +15,7 @@ export interface TicketDefinition {
|
|
|
12
15
|
/**
|
|
13
16
|
* Limit of tickets that can be purchased per checkout.
|
|
14
17
|
* Set to 20 for unlimited ticket definition.
|
|
18
|
+
* @max 20
|
|
15
19
|
*/
|
|
16
20
|
limitPerCheckout?: number;
|
|
17
21
|
/** Custom sort index. */
|
|
@@ -20,7 +24,10 @@ export interface TicketDefinition {
|
|
|
20
24
|
policy?: string;
|
|
21
25
|
/** Sensitive dashboard data. */
|
|
22
26
|
dashboard?: Dashboard;
|
|
23
|
-
/**
|
|
27
|
+
/**
|
|
28
|
+
* Event ID associated with the ticket.
|
|
29
|
+
* @format GUID
|
|
30
|
+
*/
|
|
24
31
|
eventId?: string;
|
|
25
32
|
/**
|
|
26
33
|
* Configuration of the fixed-rate Wix ticket service fee that is applied at checkout to each ticket sold.
|
|
@@ -43,15 +50,20 @@ export interface Money {
|
|
|
43
50
|
/**
|
|
44
51
|
* @internal
|
|
45
52
|
* @internal
|
|
53
|
+
* @format DECIMAL_VALUE
|
|
46
54
|
* @deprecated
|
|
47
55
|
*/
|
|
48
56
|
amount?: string;
|
|
49
57
|
/**
|
|
50
58
|
* Three-letter currency code in
|
|
51
59
|
* [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
60
|
+
* @format CURRENCY
|
|
52
61
|
*/
|
|
53
62
|
currency?: string;
|
|
54
|
-
/**
|
|
63
|
+
/**
|
|
64
|
+
* Monetary amount. Decimal string with a period as a decimal separator (e.g., 3.99). Optionally, starts with a single (-), to indicate that the amount is negative.
|
|
65
|
+
* @format DECIMAL_VALUE
|
|
66
|
+
*/
|
|
55
67
|
value?: string | null;
|
|
56
68
|
}
|
|
57
69
|
export interface Dashboard {
|
|
@@ -137,9 +149,16 @@ export interface PricingOptions {
|
|
|
137
149
|
options?: PricingOption[];
|
|
138
150
|
}
|
|
139
151
|
export interface PricingOption {
|
|
140
|
-
/**
|
|
152
|
+
/**
|
|
153
|
+
* Ticket pricing option ID.
|
|
154
|
+
* @format GUID
|
|
155
|
+
*/
|
|
141
156
|
_id?: string | null;
|
|
142
|
-
/**
|
|
157
|
+
/**
|
|
158
|
+
* Ticket pricing option name.
|
|
159
|
+
* @minLength 1
|
|
160
|
+
* @maxLength 200
|
|
161
|
+
*/
|
|
143
162
|
name?: string | null;
|
|
144
163
|
/** Ticket pricing option price. */
|
|
145
164
|
price?: Money;
|
|
@@ -151,20 +170,29 @@ export declare enum Type {
|
|
|
151
170
|
export interface QueryTicketDefinitionsRequest {
|
|
152
171
|
/** Offset. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
|
|
153
172
|
offset?: number;
|
|
154
|
-
/**
|
|
173
|
+
/**
|
|
174
|
+
* Limit. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).
|
|
175
|
+
* @max 100
|
|
176
|
+
*/
|
|
155
177
|
limit?: number;
|
|
156
|
-
/**
|
|
178
|
+
/**
|
|
179
|
+
* Set of fields to return in the response. See [fieldsets](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_ticket-definition-fieldset).
|
|
180
|
+
* @maxSize 20
|
|
181
|
+
*/
|
|
157
182
|
fieldset?: TicketDefinitionFieldset[];
|
|
158
183
|
/** Filter. See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions). */
|
|
159
184
|
filter?: Record<string, any> | null;
|
|
160
185
|
/**
|
|
161
186
|
* Sort order. Defaults to: "created:asc".
|
|
162
187
|
* See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions).
|
|
188
|
+
* @maxLength 100
|
|
163
189
|
*/
|
|
164
190
|
sort?: string;
|
|
165
191
|
/**
|
|
166
192
|
* Filter facets to include in the response.
|
|
167
193
|
* See [supported facets](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions).
|
|
194
|
+
* @maxLength 20
|
|
195
|
+
* @maxSize 10
|
|
168
196
|
*/
|
|
169
197
|
facet?: string[];
|
|
170
198
|
}
|
|
@@ -179,7 +207,10 @@ export interface QueryTicketDefinitionsResponse {
|
|
|
179
207
|
total?: number;
|
|
180
208
|
/** Offset. */
|
|
181
209
|
offset?: number;
|
|
182
|
-
/**
|
|
210
|
+
/**
|
|
211
|
+
* Limit.
|
|
212
|
+
* @max 100
|
|
213
|
+
*/
|
|
183
214
|
limit?: number;
|
|
184
215
|
/** Ticket definitions. */
|
|
185
216
|
definitions?: TicketDefinition[];
|
|
@@ -224,7 +255,10 @@ export interface QueryV2PagingMethodOneOf {
|
|
|
224
255
|
cursorPaging?: CursorPaging;
|
|
225
256
|
}
|
|
226
257
|
export interface Sorting {
|
|
227
|
-
/**
|
|
258
|
+
/**
|
|
259
|
+
* Name of the field to sort by.
|
|
260
|
+
* @maxLength 512
|
|
261
|
+
*/
|
|
228
262
|
fieldName?: string;
|
|
229
263
|
/** Sort order. */
|
|
230
264
|
order?: SortOrder;
|
|
@@ -240,13 +274,17 @@ export interface Paging {
|
|
|
240
274
|
offset?: number | null;
|
|
241
275
|
}
|
|
242
276
|
export interface CursorPaging {
|
|
243
|
-
/**
|
|
277
|
+
/**
|
|
278
|
+
* Maximum number of items to return in the results.
|
|
279
|
+
* @max 100
|
|
280
|
+
*/
|
|
244
281
|
limit?: number | null;
|
|
245
282
|
/**
|
|
246
283
|
* Pointer to the next or previous page in the list of results.
|
|
247
284
|
*
|
|
248
285
|
* Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
|
|
249
286
|
* Not relevant for the first request.
|
|
287
|
+
* @maxLength 16000
|
|
250
288
|
*/
|
|
251
289
|
cursor?: string | null;
|
|
252
290
|
}
|
|
@@ -269,17 +307,30 @@ export interface PagingMetadataV2 {
|
|
|
269
307
|
cursors?: Cursors;
|
|
270
308
|
}
|
|
271
309
|
export interface Cursors {
|
|
272
|
-
/**
|
|
310
|
+
/**
|
|
311
|
+
* Cursor string pointing to the next page in the list of results.
|
|
312
|
+
* @maxLength 16000
|
|
313
|
+
*/
|
|
273
314
|
next?: string | null;
|
|
274
|
-
/**
|
|
315
|
+
/**
|
|
316
|
+
* Cursor pointing to the previous page in the list of results.
|
|
317
|
+
* @maxLength 16000
|
|
318
|
+
*/
|
|
275
319
|
prev?: string | null;
|
|
276
320
|
}
|
|
277
321
|
export interface ListTicketDefinitionsRequest {
|
|
278
|
-
/**
|
|
322
|
+
/**
|
|
323
|
+
* Event ID.
|
|
324
|
+
* @format GUID
|
|
325
|
+
* @maxSize 100
|
|
326
|
+
*/
|
|
279
327
|
eventId?: string[];
|
|
280
328
|
/** Offset. */
|
|
281
329
|
offset?: number;
|
|
282
|
-
/**
|
|
330
|
+
/**
|
|
331
|
+
* Paging limit.
|
|
332
|
+
* @max 100
|
|
333
|
+
*/
|
|
283
334
|
limit?: number;
|
|
284
335
|
/**
|
|
285
336
|
* Predefined sets of fields to return.
|
|
@@ -288,29 +339,41 @@ export interface ListTicketDefinitionsRequest {
|
|
|
288
339
|
*
|
|
289
340
|
* Default: If `fieldset` is omitted from the request, `id`, `price`, `free`, `name`, `limitPerCheckout`, `orderIndex`, `eventId`.
|
|
290
341
|
*
|
|
342
|
+
* @maxSize 20
|
|
291
343
|
*/
|
|
292
344
|
fieldset?: TicketDefinitionFieldset[];
|
|
293
|
-
/**
|
|
345
|
+
/**
|
|
346
|
+
* Event creator ID.
|
|
347
|
+
* @format GUID
|
|
348
|
+
* @maxSize 1
|
|
349
|
+
*/
|
|
294
350
|
eventCreatorId?: string[];
|
|
295
351
|
/**
|
|
296
352
|
* Filter by ticket definition state.
|
|
297
353
|
*
|
|
298
354
|
* Supported values: `"VISIBLE"`, `"HIDDEN"`, `"FREE"`, `"PAID"`
|
|
355
|
+
* @maxSize 20
|
|
299
356
|
*/
|
|
300
357
|
state?: State[];
|
|
301
358
|
/**
|
|
302
359
|
* Sort order.
|
|
303
360
|
*
|
|
304
361
|
* Default: `"created"`:`"asc"`
|
|
362
|
+
* @maxLength 100
|
|
305
363
|
*/
|
|
306
364
|
sort?: string;
|
|
307
365
|
/**
|
|
308
366
|
* Ticket sale status.
|
|
309
367
|
*
|
|
310
368
|
* Supported values: `"SALE_SCHEDULED"`, `"SALE_STARTED"`, `"SALE_ENDED"`
|
|
369
|
+
* @maxSize 5
|
|
311
370
|
*/
|
|
312
371
|
saleStatus?: TicketSaleStatus[];
|
|
313
|
-
/**
|
|
372
|
+
/**
|
|
373
|
+
* Filter facets.
|
|
374
|
+
* @maxLength 20
|
|
375
|
+
* @maxSize 10
|
|
376
|
+
*/
|
|
314
377
|
facet?: string[];
|
|
315
378
|
}
|
|
316
379
|
export declare enum State {
|
|
@@ -348,7 +411,10 @@ export interface ResponseMetaData {
|
|
|
348
411
|
total?: number;
|
|
349
412
|
}
|
|
350
413
|
export interface GetTicketDefinitionRequest {
|
|
351
|
-
/**
|
|
414
|
+
/**
|
|
415
|
+
* Ticket definition ID.
|
|
416
|
+
* @format GUID
|
|
417
|
+
*/
|
|
352
418
|
definitionId: string;
|
|
353
419
|
/**
|
|
354
420
|
* Predefined sets of fields to return.
|
|
@@ -356,6 +422,7 @@ export interface GetTicketDefinitionRequest {
|
|
|
356
422
|
* - `POLICY`: Returns `policy`.
|
|
357
423
|
*
|
|
358
424
|
* Default: If `fieldset` is omitted from the request, `id`, `price`, `free`, `name`, `limitPerCheckout`, `orderIndex`, `eventId`.
|
|
425
|
+
* @maxSize 20
|
|
359
426
|
*/
|
|
360
427
|
fieldset?: TicketDefinitionFieldset[];
|
|
361
428
|
}
|
|
@@ -364,17 +431,26 @@ export interface GetTicketDefinitionResponse {
|
|
|
364
431
|
definition?: TicketDefinition;
|
|
365
432
|
}
|
|
366
433
|
export interface CreateTicketDefinitionRequest {
|
|
367
|
-
/**
|
|
434
|
+
/**
|
|
435
|
+
* Event ID.
|
|
436
|
+
* @format GUID
|
|
437
|
+
*/
|
|
368
438
|
eventId: string;
|
|
369
439
|
/** Ticket definition data. */
|
|
370
440
|
definition: TicketDefinitionData;
|
|
371
441
|
}
|
|
372
442
|
export interface TicketDefinitionData {
|
|
373
|
-
/**
|
|
443
|
+
/**
|
|
444
|
+
* Ticket name.
|
|
445
|
+
* @maxLength 30
|
|
446
|
+
*/
|
|
374
447
|
name?: string | null;
|
|
375
448
|
/** Ticket price. */
|
|
376
449
|
price?: Money;
|
|
377
|
-
/**
|
|
450
|
+
/**
|
|
451
|
+
* Ticket description.
|
|
452
|
+
* @maxLength 500
|
|
453
|
+
*/
|
|
378
454
|
description?: string | null;
|
|
379
455
|
/** Whether this ticket type is limited in quantity. */
|
|
380
456
|
limited?: boolean;
|
|
@@ -386,7 +462,10 @@ export interface TicketDefinitionData {
|
|
|
386
462
|
quantity?: number | null;
|
|
387
463
|
/** Custom sort index for manual tickets ordering implementation. */
|
|
388
464
|
orderIndex?: number;
|
|
389
|
-
/**
|
|
465
|
+
/**
|
|
466
|
+
* Policy information in plain text (as listed on the ticket).
|
|
467
|
+
* @maxLength 1000
|
|
468
|
+
*/
|
|
390
469
|
policy?: string | null;
|
|
391
470
|
/** Whether this ticket type is hidden to customers and cannot be purchased. */
|
|
392
471
|
hidden?: boolean;
|
|
@@ -404,25 +483,46 @@ export interface CreateTicketDefinitionResponse {
|
|
|
404
483
|
export interface TicketDefinitionCreated {
|
|
405
484
|
/** Ticket Definition created timestamp in ISO UTC format. */
|
|
406
485
|
timestamp?: Date | null;
|
|
407
|
-
/**
|
|
486
|
+
/**
|
|
487
|
+
* Ticket Definition ID.
|
|
488
|
+
* @format GUID
|
|
489
|
+
*/
|
|
408
490
|
ticketDefinitionId?: string;
|
|
409
|
-
/**
|
|
491
|
+
/**
|
|
492
|
+
* Event ID.
|
|
493
|
+
* @format GUID
|
|
494
|
+
*/
|
|
410
495
|
eventId?: string;
|
|
411
496
|
/** Originated from. */
|
|
412
497
|
originatedFrom?: OriginatedFrom;
|
|
413
498
|
}
|
|
414
499
|
export interface OriginatedFrom {
|
|
415
|
-
/**
|
|
500
|
+
/**
|
|
501
|
+
* Instance ID. Indicates the original app instance which current entity originated from.
|
|
502
|
+
* @format GUID
|
|
503
|
+
*/
|
|
416
504
|
instanceId?: string;
|
|
417
|
-
/**
|
|
505
|
+
/**
|
|
506
|
+
* Event ID. Indicates the original event which current entity originated from.
|
|
507
|
+
* @format GUID
|
|
508
|
+
*/
|
|
418
509
|
eventId?: string;
|
|
419
|
-
/**
|
|
510
|
+
/**
|
|
511
|
+
* Event ID. Indicates the original entity which current entity originated from.
|
|
512
|
+
* @format GUID
|
|
513
|
+
*/
|
|
420
514
|
entityId?: string;
|
|
421
515
|
}
|
|
422
516
|
export interface UpdateTicketDefinitionRequest {
|
|
423
|
-
/**
|
|
517
|
+
/**
|
|
518
|
+
* Event ID.
|
|
519
|
+
* @format GUID
|
|
520
|
+
*/
|
|
424
521
|
eventId: string;
|
|
425
|
-
/**
|
|
522
|
+
/**
|
|
523
|
+
* Ticket definition ID.
|
|
524
|
+
* @format GUID
|
|
525
|
+
*/
|
|
426
526
|
definitionId: string;
|
|
427
527
|
/** Ticket definition data. */
|
|
428
528
|
definition?: TicketDefinitionData;
|
|
@@ -436,9 +536,15 @@ export interface UpdateTicketDefinitionResponse {
|
|
|
436
536
|
export interface TicketDefinitionUpdated {
|
|
437
537
|
/** Ticket definition updated timestamp in ISO UTC format. */
|
|
438
538
|
timestamp?: Date | null;
|
|
439
|
-
/**
|
|
539
|
+
/**
|
|
540
|
+
* Ticket definition ID.
|
|
541
|
+
* @format GUID
|
|
542
|
+
*/
|
|
440
543
|
ticketDefinitionId?: string;
|
|
441
|
-
/**
|
|
544
|
+
/**
|
|
545
|
+
* Event ID.
|
|
546
|
+
* @format GUID
|
|
547
|
+
*/
|
|
442
548
|
eventId?: string;
|
|
443
549
|
}
|
|
444
550
|
export interface DeleteTicketDefinitionRequest extends DeleteTicketDefinitionRequestDeleteOneOf {
|
|
@@ -446,7 +552,10 @@ export interface DeleteTicketDefinitionRequest extends DeleteTicketDefinitionReq
|
|
|
446
552
|
byId?: ById;
|
|
447
553
|
/** Whether to delete all event tickets. */
|
|
448
554
|
all?: boolean;
|
|
449
|
-
/**
|
|
555
|
+
/**
|
|
556
|
+
* Event ID.
|
|
557
|
+
* @format GUID
|
|
558
|
+
*/
|
|
450
559
|
eventId: string;
|
|
451
560
|
}
|
|
452
561
|
/** @oneof */
|
|
@@ -457,7 +566,12 @@ export interface DeleteTicketDefinitionRequestDeleteOneOf {
|
|
|
457
566
|
all?: boolean;
|
|
458
567
|
}
|
|
459
568
|
export interface ById {
|
|
460
|
-
/**
|
|
569
|
+
/**
|
|
570
|
+
* Ticket definition IDs.
|
|
571
|
+
* @format GUID
|
|
572
|
+
* @minSize 1
|
|
573
|
+
* @maxSize 100
|
|
574
|
+
*/
|
|
461
575
|
definitionId?: string[];
|
|
462
576
|
}
|
|
463
577
|
export interface DeleteTicketDefinitionResponse {
|
|
@@ -465,15 +579,28 @@ export interface DeleteTicketDefinitionResponse {
|
|
|
465
579
|
export interface TicketDefinitionDeleted {
|
|
466
580
|
/** Ticket definition deleted timestamp in ISO UTC format. */
|
|
467
581
|
timestamp?: Date | null;
|
|
468
|
-
/**
|
|
582
|
+
/**
|
|
583
|
+
* Ticket definition ID.
|
|
584
|
+
* @format GUID
|
|
585
|
+
*/
|
|
469
586
|
ticketDefinitionId?: string;
|
|
470
|
-
/**
|
|
587
|
+
/**
|
|
588
|
+
* Event ID.
|
|
589
|
+
* @format GUID
|
|
590
|
+
*/
|
|
471
591
|
eventId?: string;
|
|
472
592
|
}
|
|
473
593
|
export interface ChangeCurrencyRequest {
|
|
474
|
-
/**
|
|
594
|
+
/**
|
|
595
|
+
* Event ID.
|
|
596
|
+
* @format GUID
|
|
597
|
+
*/
|
|
475
598
|
eventId?: string;
|
|
476
|
-
/**
|
|
599
|
+
/**
|
|
600
|
+
* Event currency, in 3-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
601
|
+
* @minLength 3
|
|
602
|
+
* @maxLength 3
|
|
603
|
+
*/
|
|
477
604
|
currency: string;
|
|
478
605
|
}
|
|
479
606
|
export interface ChangeCurrencyResponse {
|
|
@@ -481,9 +608,15 @@ export interface ChangeCurrencyResponse {
|
|
|
481
608
|
export interface BulkCopyTicketDefinitionsByEventIdRequest {
|
|
482
609
|
/** Origin instance ID. */
|
|
483
610
|
originInstanceId?: string | null;
|
|
484
|
-
/**
|
|
611
|
+
/**
|
|
612
|
+
* Origin Event ID.
|
|
613
|
+
* @format GUID
|
|
614
|
+
*/
|
|
485
615
|
originEventId?: string;
|
|
486
|
-
/**
|
|
616
|
+
/**
|
|
617
|
+
* Target Event ID.
|
|
618
|
+
* @format GUID
|
|
619
|
+
*/
|
|
487
620
|
targetEventId?: string;
|
|
488
621
|
}
|
|
489
622
|
export interface BulkCopyTicketDefinitionsByEventIdResponse {
|
|
@@ -503,9 +636,15 @@ export interface PaidTicketDefinitionExistsResponse {
|
|
|
503
636
|
paidExists?: boolean;
|
|
504
637
|
}
|
|
505
638
|
export interface MessageEnvelope {
|
|
506
|
-
/**
|
|
639
|
+
/**
|
|
640
|
+
* App instance ID.
|
|
641
|
+
* @format GUID
|
|
642
|
+
*/
|
|
507
643
|
instanceId?: string | null;
|
|
508
|
-
/**
|
|
644
|
+
/**
|
|
645
|
+
* Event type.
|
|
646
|
+
* @maxLength 150
|
|
647
|
+
*/
|
|
509
648
|
eventType?: string;
|
|
510
649
|
/** The identification type and identity data. */
|
|
511
650
|
identity?: IdentificationData;
|
|
@@ -513,26 +652,50 @@ export interface MessageEnvelope {
|
|
|
513
652
|
data?: string;
|
|
514
653
|
}
|
|
515
654
|
export interface IdentificationData extends IdentificationDataIdOneOf {
|
|
516
|
-
/**
|
|
655
|
+
/**
|
|
656
|
+
* ID of a site visitor that has not logged in to the site.
|
|
657
|
+
* @format GUID
|
|
658
|
+
*/
|
|
517
659
|
anonymousVisitorId?: string;
|
|
518
|
-
/**
|
|
660
|
+
/**
|
|
661
|
+
* ID of a site visitor that has logged in to the site.
|
|
662
|
+
* @format GUID
|
|
663
|
+
*/
|
|
519
664
|
memberId?: string;
|
|
520
|
-
/**
|
|
665
|
+
/**
|
|
666
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
667
|
+
* @format GUID
|
|
668
|
+
*/
|
|
521
669
|
wixUserId?: string;
|
|
522
|
-
/**
|
|
670
|
+
/**
|
|
671
|
+
* ID of an app.
|
|
672
|
+
* @format GUID
|
|
673
|
+
*/
|
|
523
674
|
appId?: string;
|
|
524
675
|
/** @readonly */
|
|
525
676
|
identityType?: WebhookIdentityType;
|
|
526
677
|
}
|
|
527
678
|
/** @oneof */
|
|
528
679
|
export interface IdentificationDataIdOneOf {
|
|
529
|
-
/**
|
|
680
|
+
/**
|
|
681
|
+
* ID of a site visitor that has not logged in to the site.
|
|
682
|
+
* @format GUID
|
|
683
|
+
*/
|
|
530
684
|
anonymousVisitorId?: string;
|
|
531
|
-
/**
|
|
685
|
+
/**
|
|
686
|
+
* ID of a site visitor that has logged in to the site.
|
|
687
|
+
* @format GUID
|
|
688
|
+
*/
|
|
532
689
|
memberId?: string;
|
|
533
|
-
/**
|
|
690
|
+
/**
|
|
691
|
+
* ID of a Wix user (site owner, contributor, etc.).
|
|
692
|
+
* @format GUID
|
|
693
|
+
*/
|
|
534
694
|
wixUserId?: string;
|
|
535
|
-
/**
|
|
695
|
+
/**
|
|
696
|
+
* ID of an app.
|
|
697
|
+
* @format GUID
|
|
698
|
+
*/
|
|
536
699
|
appId?: string;
|
|
537
700
|
}
|
|
538
701
|
export declare enum WebhookIdentityType {
|
|
@@ -616,9 +779,15 @@ export interface UpdateTicketDefinitionResponseNonNullableFields {
|
|
|
616
779
|
definition?: TicketDefinitionNonNullableFields;
|
|
617
780
|
}
|
|
618
781
|
export interface BaseEventMetadata {
|
|
619
|
-
/**
|
|
782
|
+
/**
|
|
783
|
+
* App instance ID.
|
|
784
|
+
* @format GUID
|
|
785
|
+
*/
|
|
620
786
|
instanceId?: string | null;
|
|
621
|
-
/**
|
|
787
|
+
/**
|
|
788
|
+
* Event type.
|
|
789
|
+
* @maxLength 150
|
|
790
|
+
*/
|
|
622
791
|
eventType?: string;
|
|
623
792
|
/** The identification type and identity data. */
|
|
624
793
|
identity?: IdentificationData;
|
|
@@ -712,20 +881,29 @@ export declare function queryTicketDefinitions(options?: QueryTicketDefinitionsO
|
|
|
712
881
|
export interface QueryTicketDefinitionsOptions {
|
|
713
882
|
/** Offset. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
|
|
714
883
|
offset?: number;
|
|
715
|
-
/**
|
|
884
|
+
/**
|
|
885
|
+
* Limit. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).
|
|
886
|
+
* @max 100
|
|
887
|
+
*/
|
|
716
888
|
limit?: number;
|
|
717
|
-
/**
|
|
889
|
+
/**
|
|
890
|
+
* Set of fields to return in the response. See [fieldsets](https://dev.wix.com/api/rest/wix-events/wix-events/fieldset#wix-events_wix-events_fieldset_ticket-definition-fieldset).
|
|
891
|
+
* @maxSize 20
|
|
892
|
+
*/
|
|
718
893
|
fieldset?: TicketDefinitionFieldset[];
|
|
719
894
|
/** Filter. See [supported fields and operators](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions). */
|
|
720
895
|
filter?: Record<string, any> | null;
|
|
721
896
|
/**
|
|
722
897
|
* Sort order. Defaults to: "created:asc".
|
|
723
898
|
* See [supported fields](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions).
|
|
899
|
+
* @maxLength 100
|
|
724
900
|
*/
|
|
725
901
|
sort?: string;
|
|
726
902
|
/**
|
|
727
903
|
* Filter facets to include in the response.
|
|
728
904
|
* See [supported facets](https://dev.wix.com/api/rest/wix-events/wix-events/filter-and-sort#wix-events_wix-events_filter-and-sort_query-ticket-definitions).
|
|
905
|
+
* @maxLength 20
|
|
906
|
+
* @maxSize 10
|
|
729
907
|
*/
|
|
730
908
|
facet?: string[];
|
|
731
909
|
}
|
|
@@ -817,11 +995,18 @@ export interface DefinitionsQueryBuilder {
|
|
|
817
995
|
*/
|
|
818
996
|
export declare function listTicketDefinitions(options?: ListTicketDefinitionsOptions): Promise<ListTicketDefinitionsResponse & ListTicketDefinitionsResponseNonNullableFields>;
|
|
819
997
|
export interface ListTicketDefinitionsOptions {
|
|
820
|
-
/**
|
|
998
|
+
/**
|
|
999
|
+
* Event ID.
|
|
1000
|
+
* @format GUID
|
|
1001
|
+
* @maxSize 100
|
|
1002
|
+
*/
|
|
821
1003
|
eventId?: string[];
|
|
822
1004
|
/** Offset. */
|
|
823
1005
|
offset?: number;
|
|
824
|
-
/**
|
|
1006
|
+
/**
|
|
1007
|
+
* Paging limit.
|
|
1008
|
+
* @max 100
|
|
1009
|
+
*/
|
|
825
1010
|
limit?: number;
|
|
826
1011
|
/**
|
|
827
1012
|
* Predefined sets of fields to return.
|
|
@@ -829,14 +1014,20 @@ export interface ListTicketDefinitionsOptions {
|
|
|
829
1014
|
* - `POLICY`: Returns `policy`.
|
|
830
1015
|
*
|
|
831
1016
|
* Default: If `fieldset` is omitted from the request, `id`, `price`, `free`, `name`, `limitPerCheckout`, `orderIndex`, `eventId`.
|
|
1017
|
+
* @maxSize 20
|
|
832
1018
|
*/
|
|
833
1019
|
fieldset?: TicketDefinitionFieldset[];
|
|
834
|
-
/**
|
|
1020
|
+
/**
|
|
1021
|
+
* Event creator ID.
|
|
1022
|
+
* @format GUID
|
|
1023
|
+
* @maxSize 1
|
|
1024
|
+
*/
|
|
835
1025
|
eventCreatorId?: string[];
|
|
836
1026
|
/**
|
|
837
1027
|
* Filter by ticket definition state.
|
|
838
1028
|
*
|
|
839
1029
|
* Supported values: `"VISIBLE"`, `"HIDDEN"`, `"FREE"`, `"PAID"`
|
|
1030
|
+
* @maxSize 20
|
|
840
1031
|
*/
|
|
841
1032
|
state?: State[];
|
|
842
1033
|
/**
|
|
@@ -849,15 +1040,21 @@ export interface ListTicketDefinitionsOptions {
|
|
|
849
1040
|
*
|
|
850
1041
|
*
|
|
851
1042
|
*
|
|
1043
|
+
* @maxLength 100
|
|
852
1044
|
*/
|
|
853
1045
|
sort?: string;
|
|
854
1046
|
/**
|
|
855
1047
|
* Ticket sale status.
|
|
856
1048
|
*
|
|
857
1049
|
* Supported values: `"SALE_SCHEDULED"`, `"SALE_STARTED"`, `"SALE_ENDED"`
|
|
1050
|
+
* @maxSize 5
|
|
858
1051
|
*/
|
|
859
1052
|
saleStatus?: TicketSaleStatus[];
|
|
860
|
-
/**
|
|
1053
|
+
/**
|
|
1054
|
+
* Filter facets.
|
|
1055
|
+
* @maxLength 20
|
|
1056
|
+
* @maxSize 10
|
|
1057
|
+
*/
|
|
861
1058
|
facet?: string[];
|
|
862
1059
|
}
|
|
863
1060
|
/**
|
|
@@ -900,6 +1097,7 @@ export interface GetTicketDefinitionOptions {
|
|
|
900
1097
|
* - `POLICY`: Returns `policy`.
|
|
901
1098
|
*
|
|
902
1099
|
* Default: If `fieldset` is omitted from the request, `id`, `price`, `free`, `name`, `limitPerCheckout`, `orderIndex`, `eventId`.
|
|
1100
|
+
* @maxSize 20
|
|
903
1101
|
*/
|
|
904
1102
|
fieldset?: TicketDefinitionFieldset[];
|
|
905
1103
|
}
|
|
@@ -1012,7 +1210,14 @@ export interface UpdateTicketDefinitionOptions {
|
|
|
1012
1210
|
* @targetRemovalDate 2024-12-01
|
|
1013
1211
|
*/
|
|
1014
1212
|
export declare function deleteTicketDefinition(eventId: string, options?: DeleteTicketDefinitionOptions): Promise<void>;
|
|
1015
|
-
export interface DeleteTicketDefinitionOptions extends
|
|
1213
|
+
export interface DeleteTicketDefinitionOptions extends DeleteTicketDefinitionOptionsDeleteOneOf {
|
|
1214
|
+
/** Ticket definitions to delete. */
|
|
1215
|
+
byId?: ById;
|
|
1216
|
+
/** Whether to delete all event tickets. */
|
|
1217
|
+
all?: boolean;
|
|
1218
|
+
}
|
|
1219
|
+
/** @oneof */
|
|
1220
|
+
export interface DeleteTicketDefinitionOptionsDeleteOneOf {
|
|
1016
1221
|
/** Ticket definitions to delete. */
|
|
1017
1222
|
byId?: ById;
|
|
1018
1223
|
/** Whether to delete all event tickets. */
|
|
@@ -1048,9 +1253,16 @@ export interface DeleteTicketDefinitionOptions extends DeleteTicketDefinitionReq
|
|
|
1048
1253
|
*/
|
|
1049
1254
|
export declare function changeCurrency(options?: ChangeCurrencyOptions): Promise<void>;
|
|
1050
1255
|
export interface ChangeCurrencyOptions {
|
|
1051
|
-
/**
|
|
1256
|
+
/**
|
|
1257
|
+
* Event ID.
|
|
1258
|
+
* @format GUID
|
|
1259
|
+
*/
|
|
1052
1260
|
eventId?: string;
|
|
1053
|
-
/**
|
|
1261
|
+
/**
|
|
1262
|
+
* Event currency, in 3-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
|
|
1263
|
+
* @minLength 3
|
|
1264
|
+
* @maxLength 3
|
|
1265
|
+
*/
|
|
1054
1266
|
currency: string;
|
|
1055
1267
|
}
|
|
1056
1268
|
export {};
|