@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.
Files changed (29) hide show
  1. package/build/cjs/src/events-v1-ticket-definition-ticket-definitions.context.d.ts +1 -1
  2. package/build/cjs/src/events-v1-ticket-definition-ticket-definitions.public.d.ts +1 -1
  3. package/build/cjs/src/events-v1-ticket-definition-ticket-definitions.public.js.map +1 -1
  4. package/build/cjs/src/events-v1-ticket-definition-ticket-definitions.types.d.ts +223 -52
  5. package/build/cjs/src/events-v1-ticket-definition-ticket-definitions.types.js.map +1 -1
  6. package/build/cjs/src/events-v1-ticket-definition-ticket-definitions.universal.d.ts +270 -59
  7. package/build/cjs/src/events-v1-ticket-definition-ticket-definitions.universal.js.map +1 -1
  8. package/build/es/src/events-v1-ticket-definition-ticket-definitions.context.d.ts +1 -1
  9. package/build/es/src/events-v1-ticket-definition-ticket-definitions.public.d.ts +1 -1
  10. package/build/es/src/events-v1-ticket-definition-ticket-definitions.public.js.map +1 -1
  11. package/build/es/src/events-v1-ticket-definition-ticket-definitions.types.d.ts +223 -52
  12. package/build/es/src/events-v1-ticket-definition-ticket-definitions.types.js.map +1 -1
  13. package/build/es/src/events-v1-ticket-definition-ticket-definitions.universal.d.ts +270 -59
  14. package/build/es/src/events-v1-ticket-definition-ticket-definitions.universal.js.map +1 -1
  15. package/build/internal/cjs/src/events-v1-ticket-definition-ticket-definitions.context.d.ts +1 -1
  16. package/build/internal/cjs/src/events-v1-ticket-definition-ticket-definitions.public.d.ts +1 -1
  17. package/build/internal/cjs/src/events-v1-ticket-definition-ticket-definitions.public.js.map +1 -1
  18. package/build/internal/cjs/src/events-v1-ticket-definition-ticket-definitions.types.d.ts +223 -52
  19. package/build/internal/cjs/src/events-v1-ticket-definition-ticket-definitions.types.js.map +1 -1
  20. package/build/internal/cjs/src/events-v1-ticket-definition-ticket-definitions.universal.d.ts +271 -59
  21. package/build/internal/cjs/src/events-v1-ticket-definition-ticket-definitions.universal.js.map +1 -1
  22. package/build/internal/es/src/events-v1-ticket-definition-ticket-definitions.context.d.ts +1 -1
  23. package/build/internal/es/src/events-v1-ticket-definition-ticket-definitions.public.d.ts +1 -1
  24. package/build/internal/es/src/events-v1-ticket-definition-ticket-definitions.public.js.map +1 -1
  25. package/build/internal/es/src/events-v1-ticket-definition-ticket-definitions.types.d.ts +223 -52
  26. package/build/internal/es/src/events-v1-ticket-definition-ticket-definitions.types.js.map +1 -1
  27. package/build/internal/es/src/events-v1-ticket-definition-ticket-definitions.universal.d.ts +271 -59
  28. package/build/internal/es/src/events-v1-ticket-definition-ticket-definitions.universal.js.map +1 -1
  29. package/package.json +2 -2
@@ -1,5 +1,8 @@
1
1
  export interface TicketDefinition {
2
- /** Ticket definition ID. */
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
- /** Event ID associated with the ticket. */
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,9 +50,13 @@ export interface Money {
43
50
  /**
44
51
  * Three-letter currency code in
45
52
  * [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
53
+ * @format CURRENCY
46
54
  */
47
55
  currency?: string;
48
- /** 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. */
56
+ /**
57
+ * 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.
58
+ * @format DECIMAL_VALUE
59
+ */
49
60
  value?: string | null;
50
61
  }
51
62
  export interface Dashboard {
@@ -131,9 +142,16 @@ export interface PricingOptions {
131
142
  options?: PricingOption[];
132
143
  }
133
144
  export interface PricingOption {
134
- /** Ticket pricing option ID. */
145
+ /**
146
+ * Ticket pricing option ID.
147
+ * @format GUID
148
+ */
135
149
  _id?: string | null;
136
- /** Ticket pricing option name. */
150
+ /**
151
+ * Ticket pricing option name.
152
+ * @minLength 1
153
+ * @maxLength 200
154
+ */
137
155
  name?: string | null;
138
156
  /** Ticket pricing option price. */
139
157
  price?: Money;
@@ -145,20 +163,29 @@ export declare enum Type {
145
163
  export interface QueryTicketDefinitionsRequest {
146
164
  /** Offset. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
147
165
  offset?: number;
148
- /** Limit. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
166
+ /**
167
+ * Limit. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).
168
+ * @max 100
169
+ */
149
170
  limit?: number;
150
- /** 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). */
171
+ /**
172
+ * 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).
173
+ * @maxSize 20
174
+ */
151
175
  fieldset?: TicketDefinitionFieldset[];
152
176
  /** 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). */
153
177
  filter?: Record<string, any> | null;
154
178
  /**
155
179
  * Sort order. Defaults to: "created:asc".
156
180
  * 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).
181
+ * @maxLength 100
157
182
  */
158
183
  sort?: string;
159
184
  /**
160
185
  * Filter facets to include in the response.
161
186
  * 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).
187
+ * @maxLength 20
188
+ * @maxSize 10
162
189
  */
163
190
  facet?: string[];
164
191
  }
@@ -173,7 +200,10 @@ export interface QueryTicketDefinitionsResponse {
173
200
  total?: number;
174
201
  /** Offset. */
175
202
  offset?: number;
176
- /** Limit. */
203
+ /**
204
+ * Limit.
205
+ * @max 100
206
+ */
177
207
  limit?: number;
178
208
  /** Ticket definitions. */
179
209
  definitions?: TicketDefinition[];
@@ -218,7 +248,10 @@ export interface QueryV2PagingMethodOneOf {
218
248
  cursorPaging?: CursorPaging;
219
249
  }
220
250
  export interface Sorting {
221
- /** Name of the field to sort by. */
251
+ /**
252
+ * Name of the field to sort by.
253
+ * @maxLength 512
254
+ */
222
255
  fieldName?: string;
223
256
  /** Sort order. */
224
257
  order?: SortOrder;
@@ -234,13 +267,17 @@ export interface Paging {
234
267
  offset?: number | null;
235
268
  }
236
269
  export interface CursorPaging {
237
- /** Maximum number of items to return in the results. */
270
+ /**
271
+ * Maximum number of items to return in the results.
272
+ * @max 100
273
+ */
238
274
  limit?: number | null;
239
275
  /**
240
276
  * Pointer to the next or previous page in the list of results.
241
277
  *
242
278
  * Pass the relevant cursor token from the `pagingMetadata` object in the previous call's response.
243
279
  * Not relevant for the first request.
280
+ * @maxLength 16000
244
281
  */
245
282
  cursor?: string | null;
246
283
  }
@@ -263,17 +300,30 @@ export interface PagingMetadataV2 {
263
300
  cursors?: Cursors;
264
301
  }
265
302
  export interface Cursors {
266
- /** Cursor string pointing to the next page in the list of results. */
303
+ /**
304
+ * Cursor string pointing to the next page in the list of results.
305
+ * @maxLength 16000
306
+ */
267
307
  next?: string | null;
268
- /** Cursor pointing to the previous page in the list of results. */
308
+ /**
309
+ * Cursor pointing to the previous page in the list of results.
310
+ * @maxLength 16000
311
+ */
269
312
  prev?: string | null;
270
313
  }
271
314
  export interface ListTicketDefinitionsRequest {
272
- /** Event ID. */
315
+ /**
316
+ * Event ID.
317
+ * @format GUID
318
+ * @maxSize 100
319
+ */
273
320
  eventId?: string[];
274
321
  /** Offset. */
275
322
  offset?: number;
276
- /** Paging limit. */
323
+ /**
324
+ * Paging limit.
325
+ * @max 100
326
+ */
277
327
  limit?: number;
278
328
  /**
279
329
  * Predefined sets of fields to return.
@@ -282,29 +332,41 @@ export interface ListTicketDefinitionsRequest {
282
332
  *
283
333
  * Default: If `fieldset` is omitted from the request, `id`, `price`, `free`, `name`, `limitPerCheckout`, `orderIndex`, `eventId`.
284
334
  *
335
+ * @maxSize 20
285
336
  */
286
337
  fieldset?: TicketDefinitionFieldset[];
287
- /** Event creator ID. */
338
+ /**
339
+ * Event creator ID.
340
+ * @format GUID
341
+ * @maxSize 1
342
+ */
288
343
  eventCreatorId?: string[];
289
344
  /**
290
345
  * Filter by ticket definition state.
291
346
  *
292
347
  * Supported values: `"VISIBLE"`, `"HIDDEN"`, `"FREE"`, `"PAID"`
348
+ * @maxSize 20
293
349
  */
294
350
  state?: State[];
295
351
  /**
296
352
  * Sort order.
297
353
  *
298
354
  * Default: `"created"`:`"asc"`
355
+ * @maxLength 100
299
356
  */
300
357
  sort?: string;
301
358
  /**
302
359
  * Ticket sale status.
303
360
  *
304
361
  * Supported values: `"SALE_SCHEDULED"`, `"SALE_STARTED"`, `"SALE_ENDED"`
362
+ * @maxSize 5
305
363
  */
306
364
  saleStatus?: TicketSaleStatus[];
307
- /** Filter facets. */
365
+ /**
366
+ * Filter facets.
367
+ * @maxLength 20
368
+ * @maxSize 10
369
+ */
308
370
  facet?: string[];
309
371
  }
310
372
  export declare enum State {
@@ -342,7 +404,10 @@ export interface ResponseMetaData {
342
404
  total?: number;
343
405
  }
344
406
  export interface GetTicketDefinitionRequest {
345
- /** Ticket definition ID. */
407
+ /**
408
+ * Ticket definition ID.
409
+ * @format GUID
410
+ */
346
411
  definitionId: string;
347
412
  /**
348
413
  * Predefined sets of fields to return.
@@ -350,6 +415,7 @@ export interface GetTicketDefinitionRequest {
350
415
  * - `POLICY`: Returns `policy`.
351
416
  *
352
417
  * Default: If `fieldset` is omitted from the request, `id`, `price`, `free`, `name`, `limitPerCheckout`, `orderIndex`, `eventId`.
418
+ * @maxSize 20
353
419
  */
354
420
  fieldset?: TicketDefinitionFieldset[];
355
421
  }
@@ -358,17 +424,26 @@ export interface GetTicketDefinitionResponse {
358
424
  definition?: TicketDefinition;
359
425
  }
360
426
  export interface CreateTicketDefinitionRequest {
361
- /** Event ID. */
427
+ /**
428
+ * Event ID.
429
+ * @format GUID
430
+ */
362
431
  eventId: string;
363
432
  /** Ticket definition data. */
364
433
  definition: TicketDefinitionData;
365
434
  }
366
435
  export interface TicketDefinitionData {
367
- /** Ticket name. */
436
+ /**
437
+ * Ticket name.
438
+ * @maxLength 30
439
+ */
368
440
  name?: string | null;
369
441
  /** Ticket price. */
370
442
  price?: Money;
371
- /** Ticket description. */
443
+ /**
444
+ * Ticket description.
445
+ * @maxLength 500
446
+ */
372
447
  description?: string | null;
373
448
  /** Whether this ticket type is limited in quantity. */
374
449
  limited?: boolean;
@@ -380,7 +455,10 @@ export interface TicketDefinitionData {
380
455
  quantity?: number | null;
381
456
  /** Custom sort index for manual tickets ordering implementation. */
382
457
  orderIndex?: number;
383
- /** Policy information in plain text (as listed on the ticket). */
458
+ /**
459
+ * Policy information in plain text (as listed on the ticket).
460
+ * @maxLength 1000
461
+ */
384
462
  policy?: string | null;
385
463
  /** Whether this ticket type is hidden to customers and cannot be purchased. */
386
464
  hidden?: boolean;
@@ -398,25 +476,46 @@ export interface CreateTicketDefinitionResponse {
398
476
  export interface TicketDefinitionCreated {
399
477
  /** Ticket Definition created timestamp in ISO UTC format. */
400
478
  timestamp?: Date | null;
401
- /** Ticket Definition ID. */
479
+ /**
480
+ * Ticket Definition ID.
481
+ * @format GUID
482
+ */
402
483
  ticketDefinitionId?: string;
403
- /** Event ID. */
484
+ /**
485
+ * Event ID.
486
+ * @format GUID
487
+ */
404
488
  eventId?: string;
405
489
  /** Originated from. */
406
490
  originatedFrom?: OriginatedFrom;
407
491
  }
408
492
  export interface OriginatedFrom {
409
- /** Instance ID. Indicates the original app instance which current entity originated from. */
493
+ /**
494
+ * Instance ID. Indicates the original app instance which current entity originated from.
495
+ * @format GUID
496
+ */
410
497
  instanceId?: string;
411
- /** Event ID. Indicates the original event which current entity originated from. */
498
+ /**
499
+ * Event ID. Indicates the original event which current entity originated from.
500
+ * @format GUID
501
+ */
412
502
  eventId?: string;
413
- /** Event ID. Indicates the original entity which current entity originated from. */
503
+ /**
504
+ * Event ID. Indicates the original entity which current entity originated from.
505
+ * @format GUID
506
+ */
414
507
  entityId?: string;
415
508
  }
416
509
  export interface UpdateTicketDefinitionRequest {
417
- /** Event ID. */
510
+ /**
511
+ * Event ID.
512
+ * @format GUID
513
+ */
418
514
  eventId: string;
419
- /** Ticket definition ID. */
515
+ /**
516
+ * Ticket definition ID.
517
+ * @format GUID
518
+ */
420
519
  definitionId: string;
421
520
  /** Ticket definition data. */
422
521
  definition?: TicketDefinitionData;
@@ -430,9 +529,15 @@ export interface UpdateTicketDefinitionResponse {
430
529
  export interface TicketDefinitionUpdated {
431
530
  /** Ticket definition updated timestamp in ISO UTC format. */
432
531
  timestamp?: Date | null;
433
- /** Ticket definition ID. */
532
+ /**
533
+ * Ticket definition ID.
534
+ * @format GUID
535
+ */
434
536
  ticketDefinitionId?: string;
435
- /** Event ID. */
537
+ /**
538
+ * Event ID.
539
+ * @format GUID
540
+ */
436
541
  eventId?: string;
437
542
  }
438
543
  export interface DeleteTicketDefinitionRequest extends DeleteTicketDefinitionRequestDeleteOneOf {
@@ -440,7 +545,10 @@ export interface DeleteTicketDefinitionRequest extends DeleteTicketDefinitionReq
440
545
  byId?: ById;
441
546
  /** Whether to delete all event tickets. */
442
547
  all?: boolean;
443
- /** Event ID. */
548
+ /**
549
+ * Event ID.
550
+ * @format GUID
551
+ */
444
552
  eventId: string;
445
553
  }
446
554
  /** @oneof */
@@ -451,7 +559,12 @@ export interface DeleteTicketDefinitionRequestDeleteOneOf {
451
559
  all?: boolean;
452
560
  }
453
561
  export interface ById {
454
- /** Ticket definition IDs. */
562
+ /**
563
+ * Ticket definition IDs.
564
+ * @format GUID
565
+ * @minSize 1
566
+ * @maxSize 100
567
+ */
455
568
  definitionId?: string[];
456
569
  }
457
570
  export interface DeleteTicketDefinitionResponse {
@@ -459,15 +572,28 @@ export interface DeleteTicketDefinitionResponse {
459
572
  export interface TicketDefinitionDeleted {
460
573
  /** Ticket definition deleted timestamp in ISO UTC format. */
461
574
  timestamp?: Date | null;
462
- /** Ticket definition ID. */
575
+ /**
576
+ * Ticket definition ID.
577
+ * @format GUID
578
+ */
463
579
  ticketDefinitionId?: string;
464
- /** Event ID. */
580
+ /**
581
+ * Event ID.
582
+ * @format GUID
583
+ */
465
584
  eventId?: string;
466
585
  }
467
586
  export interface ChangeCurrencyRequest {
468
- /** Event ID. */
587
+ /**
588
+ * Event ID.
589
+ * @format GUID
590
+ */
469
591
  eventId?: string;
470
- /** Event currency, in 3-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. */
592
+ /**
593
+ * Event currency, in 3-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
594
+ * @minLength 3
595
+ * @maxLength 3
596
+ */
471
597
  currency: string;
472
598
  }
473
599
  export interface ChangeCurrencyResponse {
@@ -475,9 +601,15 @@ export interface ChangeCurrencyResponse {
475
601
  export interface BulkCopyTicketDefinitionsByEventIdRequest {
476
602
  /** Origin instance ID. */
477
603
  originInstanceId?: string | null;
478
- /** Origin Event ID. */
604
+ /**
605
+ * Origin Event ID.
606
+ * @format GUID
607
+ */
479
608
  originEventId?: string;
480
- /** Target Event ID. */
609
+ /**
610
+ * Target Event ID.
611
+ * @format GUID
612
+ */
481
613
  targetEventId?: string;
482
614
  }
483
615
  export interface BulkCopyTicketDefinitionsByEventIdResponse {
@@ -497,9 +629,15 @@ export interface PaidTicketDefinitionExistsResponse {
497
629
  paidExists?: boolean;
498
630
  }
499
631
  export interface MessageEnvelope {
500
- /** App instance ID. */
632
+ /**
633
+ * App instance ID.
634
+ * @format GUID
635
+ */
501
636
  instanceId?: string | null;
502
- /** Event type. */
637
+ /**
638
+ * Event type.
639
+ * @maxLength 150
640
+ */
503
641
  eventType?: string;
504
642
  /** The identification type and identity data. */
505
643
  identity?: IdentificationData;
@@ -507,26 +645,50 @@ export interface MessageEnvelope {
507
645
  data?: string;
508
646
  }
509
647
  export interface IdentificationData extends IdentificationDataIdOneOf {
510
- /** ID of a site visitor that has not logged in to the site. */
648
+ /**
649
+ * ID of a site visitor that has not logged in to the site.
650
+ * @format GUID
651
+ */
511
652
  anonymousVisitorId?: string;
512
- /** ID of a site visitor that has logged in to the site. */
653
+ /**
654
+ * ID of a site visitor that has logged in to the site.
655
+ * @format GUID
656
+ */
513
657
  memberId?: string;
514
- /** ID of a Wix user (site owner, contributor, etc.). */
658
+ /**
659
+ * ID of a Wix user (site owner, contributor, etc.).
660
+ * @format GUID
661
+ */
515
662
  wixUserId?: string;
516
- /** ID of an app. */
663
+ /**
664
+ * ID of an app.
665
+ * @format GUID
666
+ */
517
667
  appId?: string;
518
668
  /** @readonly */
519
669
  identityType?: WebhookIdentityType;
520
670
  }
521
671
  /** @oneof */
522
672
  export interface IdentificationDataIdOneOf {
523
- /** ID of a site visitor that has not logged in to the site. */
673
+ /**
674
+ * ID of a site visitor that has not logged in to the site.
675
+ * @format GUID
676
+ */
524
677
  anonymousVisitorId?: string;
525
- /** ID of a site visitor that has logged in to the site. */
678
+ /**
679
+ * ID of a site visitor that has logged in to the site.
680
+ * @format GUID
681
+ */
526
682
  memberId?: string;
527
- /** ID of a Wix user (site owner, contributor, etc.). */
683
+ /**
684
+ * ID of a Wix user (site owner, contributor, etc.).
685
+ * @format GUID
686
+ */
528
687
  wixUserId?: string;
529
- /** ID of an app. */
688
+ /**
689
+ * ID of an app.
690
+ * @format GUID
691
+ */
530
692
  appId?: string;
531
693
  }
532
694
  export declare enum WebhookIdentityType {
@@ -610,9 +772,15 @@ export interface UpdateTicketDefinitionResponseNonNullableFields {
610
772
  definition?: TicketDefinitionNonNullableFields;
611
773
  }
612
774
  export interface BaseEventMetadata {
613
- /** App instance ID. */
775
+ /**
776
+ * App instance ID.
777
+ * @format GUID
778
+ */
614
779
  instanceId?: string | null;
615
- /** Event type. */
780
+ /**
781
+ * Event type.
782
+ * @maxLength 150
783
+ */
616
784
  eventType?: string;
617
785
  /** The identification type and identity data. */
618
786
  identity?: IdentificationData;
@@ -706,20 +874,29 @@ export declare function queryTicketDefinitions(options?: QueryTicketDefinitionsO
706
874
  export interface QueryTicketDefinitionsOptions {
707
875
  /** Offset. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
708
876
  offset?: number;
709
- /** Limit. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination). */
877
+ /**
878
+ * Limit. See [Pagination](https://dev.wix.com/api/rest/getting-started/pagination).
879
+ * @max 100
880
+ */
710
881
  limit?: number;
711
- /** 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). */
882
+ /**
883
+ * 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).
884
+ * @maxSize 20
885
+ */
712
886
  fieldset?: TicketDefinitionFieldset[];
713
887
  /** 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). */
714
888
  filter?: Record<string, any> | null;
715
889
  /**
716
890
  * Sort order. Defaults to: "created:asc".
717
891
  * 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).
892
+ * @maxLength 100
718
893
  */
719
894
  sort?: string;
720
895
  /**
721
896
  * Filter facets to include in the response.
722
897
  * 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).
898
+ * @maxLength 20
899
+ * @maxSize 10
723
900
  */
724
901
  facet?: string[];
725
902
  }
@@ -811,11 +988,18 @@ export interface DefinitionsQueryBuilder {
811
988
  */
812
989
  export declare function listTicketDefinitions(options?: ListTicketDefinitionsOptions): Promise<ListTicketDefinitionsResponse & ListTicketDefinitionsResponseNonNullableFields>;
813
990
  export interface ListTicketDefinitionsOptions {
814
- /** Event ID. */
991
+ /**
992
+ * Event ID.
993
+ * @format GUID
994
+ * @maxSize 100
995
+ */
815
996
  eventId?: string[];
816
997
  /** Offset. */
817
998
  offset?: number;
818
- /** Paging limit. */
999
+ /**
1000
+ * Paging limit.
1001
+ * @max 100
1002
+ */
819
1003
  limit?: number;
820
1004
  /**
821
1005
  * Predefined sets of fields to return.
@@ -823,14 +1007,20 @@ export interface ListTicketDefinitionsOptions {
823
1007
  * - `POLICY`: Returns `policy`.
824
1008
  *
825
1009
  * Default: If `fieldset` is omitted from the request, `id`, `price`, `free`, `name`, `limitPerCheckout`, `orderIndex`, `eventId`.
1010
+ * @maxSize 20
826
1011
  */
827
1012
  fieldset?: TicketDefinitionFieldset[];
828
- /** Event creator ID. */
1013
+ /**
1014
+ * Event creator ID.
1015
+ * @format GUID
1016
+ * @maxSize 1
1017
+ */
829
1018
  eventCreatorId?: string[];
830
1019
  /**
831
1020
  * Filter by ticket definition state.
832
1021
  *
833
1022
  * Supported values: `"VISIBLE"`, `"HIDDEN"`, `"FREE"`, `"PAID"`
1023
+ * @maxSize 20
834
1024
  */
835
1025
  state?: State[];
836
1026
  /**
@@ -843,15 +1033,21 @@ export interface ListTicketDefinitionsOptions {
843
1033
  *
844
1034
  *
845
1035
  *
1036
+ * @maxLength 100
846
1037
  */
847
1038
  sort?: string;
848
1039
  /**
849
1040
  * Ticket sale status.
850
1041
  *
851
1042
  * Supported values: `"SALE_SCHEDULED"`, `"SALE_STARTED"`, `"SALE_ENDED"`
1043
+ * @maxSize 5
852
1044
  */
853
1045
  saleStatus?: TicketSaleStatus[];
854
- /** Filter facets. */
1046
+ /**
1047
+ * Filter facets.
1048
+ * @maxLength 20
1049
+ * @maxSize 10
1050
+ */
855
1051
  facet?: string[];
856
1052
  }
857
1053
  /**
@@ -894,6 +1090,7 @@ export interface GetTicketDefinitionOptions {
894
1090
  * - `POLICY`: Returns `policy`.
895
1091
  *
896
1092
  * Default: If `fieldset` is omitted from the request, `id`, `price`, `free`, `name`, `limitPerCheckout`, `orderIndex`, `eventId`.
1093
+ * @maxSize 20
897
1094
  */
898
1095
  fieldset?: TicketDefinitionFieldset[];
899
1096
  }
@@ -1006,7 +1203,14 @@ export interface UpdateTicketDefinitionOptions {
1006
1203
  * @targetRemovalDate 2024-12-01
1007
1204
  */
1008
1205
  export declare function deleteTicketDefinition(eventId: string, options?: DeleteTicketDefinitionOptions): Promise<void>;
1009
- export interface DeleteTicketDefinitionOptions extends DeleteTicketDefinitionRequestDeleteOneOf {
1206
+ export interface DeleteTicketDefinitionOptions extends DeleteTicketDefinitionOptionsDeleteOneOf {
1207
+ /** Ticket definitions to delete. */
1208
+ byId?: ById;
1209
+ /** Whether to delete all event tickets. */
1210
+ all?: boolean;
1211
+ }
1212
+ /** @oneof */
1213
+ export interface DeleteTicketDefinitionOptionsDeleteOneOf {
1010
1214
  /** Ticket definitions to delete. */
1011
1215
  byId?: ById;
1012
1216
  /** Whether to delete all event tickets. */
@@ -1042,9 +1246,16 @@ export interface DeleteTicketDefinitionOptions extends DeleteTicketDefinitionReq
1042
1246
  */
1043
1247
  export declare function changeCurrency(options?: ChangeCurrencyOptions): Promise<void>;
1044
1248
  export interface ChangeCurrencyOptions {
1045
- /** Event ID. */
1249
+ /**
1250
+ * Event ID.
1251
+ * @format GUID
1252
+ */
1046
1253
  eventId?: string;
1047
- /** Event currency, in 3-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. */
1254
+ /**
1255
+ * Event currency, in 3-letter [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
1256
+ * @minLength 3
1257
+ * @maxLength 3
1258
+ */
1048
1259
  currency: string;
1049
1260
  }
1050
1261
  export {};