@wix/auto_sdk_events_ticket-definitions-v-2 1.0.36 → 1.0.37

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.
@@ -14,17 +14,17 @@ interface TicketDefinition {
14
14
  */
15
15
  eventId?: string | null;
16
16
  /**
17
- * 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.
17
+ * 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.
18
18
  * @readonly
19
19
  */
20
20
  revision?: string | null;
21
21
  /**
22
- * Date and time when the ticket definition was created.
22
+ * Date and time the ticket definition was created.
23
23
  * @readonly
24
24
  */
25
25
  _createdDate?: Date | null;
26
26
  /**
27
- * Date and time when the ticket definition was updated.
27
+ * Date and time the ticket definition was updated.
28
28
  * @readonly
29
29
  */
30
30
  _updatedDate?: Date | null;
@@ -44,7 +44,7 @@ interface TicketDefinition {
44
44
  * @maxLength 1000
45
45
  */
46
46
  policyText?: string | null;
47
- /** Whether this ticket definition is hidden to site visitors and can't be purchased. */
47
+ /** Whether this ticket definition is hidden from site visitors and can't be purchased. */
48
48
  hidden?: boolean;
49
49
  /**
50
50
  * Whether the ticket has a limited maximum quantity.
@@ -60,7 +60,7 @@ interface TicketDefinition {
60
60
  actualLimit?: number | null;
61
61
  /** Ticket pricing method. */
62
62
  pricingMethod?: PricingMethod;
63
- /** Whether fee is included in the ticket price or customer pays it additionally at checkout. */
63
+ /** Type of ticket service fee to collect. */
64
64
  feeType?: FeeTypeEnumTypeWithLiterals;
65
65
  /** Ticket sale period. */
66
66
  salePeriod?: SalePeriod;
@@ -70,13 +70,13 @@ interface TicketDefinition {
70
70
  */
71
71
  saleStatus?: SaleStatusEnumStatusWithLiterals;
72
72
  /**
73
- * Ticket sales information. <br>
74
- * **Note:** This field is only returned when `SALES_DETAILS` fieldset is included in the request.
73
+ * Ticket sales information. <br> <br>
74
+ * **Note:** This field is only returned when `"SALES_DETAILS"` is specified in `field` in the request.
75
75
  */
76
76
  salesDetails?: SalesDetails;
77
77
  /**
78
- * Number of tickets that can be purchased per checkout. <br>
79
- * **Note:** If the `actuaLimit` or `salesDetails.unsoldCount` field value is smaller than `limitPerCheckout`, then it overrides this field.
78
+ * Number of tickets that can be purchased per checkout. <br> <br>
79
+ * **Note:** If the `actualLimit` or `salesDetails.unsoldCount` field value is smaller than `limitPerCheckout`, then it overrides this field.
80
80
  * @readonly
81
81
  * @max 50
82
82
  */
@@ -84,15 +84,15 @@ interface TicketDefinition {
84
84
  /** Data extensions. */
85
85
  extendedFields?: ExtendedFields;
86
86
  /**
87
- * Associated event information. <br>
88
- * **Note:** This field is only returned when `EVENT_DETAILS` fieldset is included in the request.
87
+ * Information about the even the ticket is for. <br>
88
+ * **Note:** This field is only returned when `"EVENT_DETAILS"` is specified in `field` in the request.
89
89
  */
90
90
  eventDetails?: EventDetails;
91
91
  }
92
92
  interface SalePeriod {
93
- /** Ticket sale start timestamp. */
93
+ /** Date and time the ticket sale starts. */
94
94
  startDate?: Date | null;
95
- /** Ticket sale end timestamp. */
95
+ /** Date and time the ticket sale ends. */
96
96
  endDate?: Date | null;
97
97
  /** Whether to display the ticket if it's not available to buy. */
98
98
  displayNotOnSale?: boolean;
@@ -100,7 +100,7 @@ interface SalePeriod {
100
100
  interface PricingMethod extends PricingMethodPriceOneOf {
101
101
  /** Same ticket price for everyone. */
102
102
  fixedPrice?: CommonMoney;
103
- /** Guests choose how much they'd like to pay for the ticket. You can set the minimum price, or make the ticket free(enter `0` in the request). The price can be updated to a higher amount by a guest during the checkout. */
103
+ /** 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. */
104
104
  guestPrice?: CommonMoney;
105
105
  /** Sets of various ticket prices. For example, you can charge different prices for children and adults. */
106
106
  pricingOptions?: PricingOptions;
@@ -110,7 +110,7 @@ interface PricingMethod extends PricingMethodPriceOneOf {
110
110
  */
111
111
  pricingType?: PricingTypeEnumTypeWithLiterals;
112
112
  /**
113
- * Whether the ticket is free. To create a free ticket, enter `0` in the `pricingMethod.fixedPrice.value` field.
113
+ * Whether the ticket is free. To create a free ticket, enter `"0"` in `pricingMethod.fixedPrice.value`.
114
114
  * @readonly
115
115
  */
116
116
  free?: boolean;
@@ -119,7 +119,7 @@ interface PricingMethod extends PricingMethodPriceOneOf {
119
119
  interface PricingMethodPriceOneOf {
120
120
  /** Same ticket price for everyone. */
121
121
  fixedPrice?: CommonMoney;
122
- /** Guests choose how much they'd like to pay for the ticket. You can set the minimum price, or make the ticket free(enter `0` in the request). The price can be updated to a higher amount by a guest during the checkout. */
122
+ /** 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. */
123
123
  guestPrice?: CommonMoney;
124
124
  /** Sets of various ticket prices. For example, you can charge different prices for children and adults. */
125
125
  pricingOptions?: PricingOptions;
@@ -142,7 +142,7 @@ interface CommonMoney {
142
142
  }
143
143
  interface PricingOptions {
144
144
  /**
145
- * Ticket price option details.
145
+ * Ticket price options.
146
146
  * @maxSize 100
147
147
  */
148
148
  optionDetails?: OptionDetails[];
@@ -175,11 +175,11 @@ type PricingTypeEnumTypeWithLiterals = PricingTypeEnumType | 'UNKNOWN_PRICING_TY
175
175
  declare enum FeeTypeEnumType {
176
176
  /** Unknown fee type. */
177
177
  UNKNOWN_FEE_TYPE = "UNKNOWN_FEE_TYPE",
178
- /** The fee is deducted from the ticket price for a seller. For example, if you're selling tickets for $10, then a ticket service fee of $0.25 will be deducted from the price and you'll get $9.75. */
178
+ /** The fee is deducted from the ticket price for a seller. <br><br> For example, if you're selling tickets for $10, then a ticket service fee of $0.25 will be deducted from the price and you'll get $9.75. */
179
179
  FEE_INCLUDED = "FEE_INCLUDED",
180
- /** The fee is shown in addition to the ticket price at checkout and a guest pays the fee. For example, if you sell tickets for $10, a customer will see a ticket service fee of $0.25 and will pay $10.25 in total. */
180
+ /** The fee is shown in addition to the ticket price at checkout and a guest pays the fee. <br><br> For example, if you sell tickets for $10, a customer will see a ticket service fee of $0.25 and will pay $10.25 in total. */
181
181
  FEE_ADDED_AT_CHECKOUT = "FEE_ADDED_AT_CHECKOUT",
182
- /** Ticket service fee is not collected. Available only for free tickets and legacy users. */
182
+ /** Ticket service fee isn't collected. Available only for free tickets and legacy Wix users. */
183
183
  NO_FEE = "NO_FEE"
184
184
  }
185
185
  /** @enumType */
@@ -187,18 +187,18 @@ type FeeTypeEnumTypeWithLiterals = FeeTypeEnumType | 'UNKNOWN_FEE_TYPE' | 'FEE_I
187
187
  declare enum SaleStatusEnumStatus {
188
188
  /** Undefined sale status. */
189
189
  UNKNOWN_SALE_STATUS = "UNKNOWN_SALE_STATUS",
190
- /** Tickets are not on sale yet. */
190
+ /** Tickets aren't on sale yet. */
191
191
  SALE_SCHEDULED = "SALE_SCHEDULED",
192
192
  /** Tickets are on sale. */
193
193
  SALE_STARTED = "SALE_STARTED",
194
- /** Tickets are not on sale. */
194
+ /** Tickets are no longer on sale. */
195
195
  SALE_ENDED = "SALE_ENDED"
196
196
  }
197
197
  /** @enumType */
198
198
  type SaleStatusEnumStatusWithLiterals = SaleStatusEnumStatus | 'UNKNOWN_SALE_STATUS' | 'SALE_SCHEDULED' | 'SALE_STARTED' | 'SALE_ENDED';
199
199
  interface SalesDetails {
200
200
  /**
201
- * Number of tickets that have not been purchased yet. The field is `null` if the ticket quantity is unlimited.
201
+ * Number of tickets that haven't been purchased yet. The field is `null` if the ticket quantity is unlimited.
202
202
  * @readonly
203
203
  */
204
204
  unsoldCount?: number | null;
@@ -238,7 +238,7 @@ interface EventDetails {
238
238
  */
239
239
  title?: string | null;
240
240
  /**
241
- * Event short description.
241
+ * Short description of the event.
242
242
  * @maxLength 500
243
243
  * @readonly
244
244
  */
@@ -249,7 +249,7 @@ interface EventDetails {
249
249
  */
250
250
  location?: Location;
251
251
  /**
252
- * Event date and time settings.
252
+ * Event date and time settings.
253
253
  * @readonly
254
254
  */
255
255
  dateAndTimeSettings?: DateAndTimeSettings;
@@ -768,7 +768,7 @@ interface UpdateTicketDefinitionSortIndexResponse {
768
768
  ticketDefinition?: TicketDefinition;
769
769
  }
770
770
  interface QueryTicketDefinitionsRequest {
771
- /** Query options. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details. */
771
+ /** Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language) for more details. */
772
772
  query: QueryV2;
773
773
  /**
774
774
  * Predefined sets of fields to return.
@@ -863,7 +863,7 @@ interface Cursors {
863
863
  prev?: string | null;
864
864
  }
865
865
  interface QueryAvailableTicketDefinitionsRequest {
866
- /** Query options. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details. */
866
+ /** Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language) for more details. */
867
867
  query: QueryV2;
868
868
  /**
869
869
  * Predefined sets of fields to return.
@@ -962,7 +962,7 @@ interface CopiedTicketDefinition {
962
962
  ticketDefinitionId?: string;
963
963
  }
964
964
  interface UpdateFeeTypesBasedOnSettingsRequest {
965
- /** Query options. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details. */
965
+ /** Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language) for more details. */
966
966
  query?: QueryV2;
967
967
  }
968
968
  interface UpdateFeeTypesBasedOnSettingsResponse {
@@ -1519,7 +1519,7 @@ interface Money {
1519
1519
  */
1520
1520
  amount?: string;
1521
1521
  /**
1522
- * Three-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format.
1522
+ * 3-letter currency code in [ISO-4217 alphabetic](https://en.wikipedia.org/wiki/ISO_4217#Active_codes) format. For example, `USD`.
1523
1523
  * @format CURRENCY
1524
1524
  */
1525
1525
  currency?: string;
@@ -4335,7 +4335,7 @@ interface EventTicketingSummary {
4335
4335
  */
4336
4336
  _updatedDate?: Date | null;
4337
4337
  /**
4338
- * Whether all tickets are sold for this event.
4338
+ * Whether all tickets are sold out for this event.
4339
4339
  * @readonly
4340
4340
  */
4341
4341
  soldOut?: boolean | null;
@@ -4402,9 +4402,9 @@ interface ReservationCreated {
4402
4402
  counts?: ReservationCount[];
4403
4403
  }
4404
4404
  declare enum ReservationStatus {
4405
- /** The Reservation is pending confirmation. It will expire after a certain amount of time. */
4405
+ /** The reservation is pending confirmation. It will expire after a certain amount of time. */
4406
4406
  RESERVATION_PENDING = "RESERVATION_PENDING",
4407
- /** The reservation is confirmed and will not expire. */
4407
+ /** The reservation is confirmed and won't expire. */
4408
4408
  RESERVATION_CONFIRMED = "RESERVATION_CONFIRMED",
4409
4409
  /** The reservation is canceled because it's not paid. */
4410
4410
  RESERVATION_CANCELED = "RESERVATION_CANCELED",
@@ -4600,7 +4600,7 @@ interface TicketDefinitionSaleEndedEnvelope {
4600
4600
  metadata: EventMetadata;
4601
4601
  }
4602
4602
  /**
4603
- * Triggered when a ticket sale ends. Sales details are not included in the payload.
4603
+ * Triggered when a ticket sale ends. Sales details aren't included in the response.
4604
4604
  * @permissionScope Manage Events - all permissions
4605
4605
  * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
4606
4606
  * @permissionScope Manage Events
@@ -4640,7 +4640,7 @@ interface TicketDefinitionSaleStartedEnvelope {
4640
4640
  metadata: EventMetadata;
4641
4641
  }
4642
4642
  /**
4643
- * Triggered when a ticket sale starts. Sales details are not included in the payload.
4643
+ * Triggered when a ticket sale starts. Sales details aren't included in the response.
4644
4644
  * @permissionScope Manage Events - all permissions
4645
4645
  * @permissionScopeId SCOPE.DC-EVENTS-MEGA.MANAGE-EVENTS
4646
4646
  * @permissionScope Manage Events
@@ -4679,8 +4679,7 @@ type TicketDefinitionNonNullablePaths = `hidden` | `limited` | `pricingMethod.fi
4679
4679
  /**
4680
4680
  * Creates a ticket definition.
4681
4681
  *
4682
- *
4683
- * It is allowed to create up to 100 definitions per event.
4682
+ * You may create up to 100 definitions per event.
4684
4683
  * @param ticketDefinition - Ticket definition info.
4685
4684
  * @public
4686
4685
  * @requiredField ticketDefinition
@@ -4688,7 +4687,7 @@ type TicketDefinitionNonNullablePaths = `hidden` | `limited` | `pricingMethod.fi
4688
4687
  * @requiredField ticketDefinition.feeType
4689
4688
  * @requiredField ticketDefinition.name
4690
4689
  * @requiredField ticketDefinition.pricingMethod
4691
- * @param options - Optional fields.
4690
+ * @param options - Currency info.
4692
4691
  * @permissionId WIX_EVENTS.MANAGE_TICKET_DEFINITIONS
4693
4692
  * @applicableIdentity APP
4694
4693
  * @returns Created ticket definition.
@@ -4707,7 +4706,6 @@ interface CreateTicketDefinitionOptions {
4707
4706
  /**
4708
4707
  * Updates a ticket definition.
4709
4708
  *
4710
- *
4711
4709
  * Each time the ticket definition is updated, `revision` increments by 1. The existing `revision` must be included when updating the ticket definition. This ensures you're working with the latest ticket definition and prevents unintended overwrites.
4712
4710
  * @param _id - Ticket definition ID.
4713
4711
  * @public
@@ -4738,17 +4736,17 @@ interface UpdateTicketDefinition {
4738
4736
  */
4739
4737
  eventId?: string | null;
4740
4738
  /**
4741
- * 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.
4739
+ * 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.
4742
4740
  * @readonly
4743
4741
  */
4744
4742
  revision?: string | null;
4745
4743
  /**
4746
- * Date and time when the ticket definition was created.
4744
+ * Date and time the ticket definition was created.
4747
4745
  * @readonly
4748
4746
  */
4749
4747
  _createdDate?: Date | null;
4750
4748
  /**
4751
- * Date and time when the ticket definition was updated.
4749
+ * Date and time the ticket definition was updated.
4752
4750
  * @readonly
4753
4751
  */
4754
4752
  _updatedDate?: Date | null;
@@ -4768,7 +4766,7 @@ interface UpdateTicketDefinition {
4768
4766
  * @maxLength 1000
4769
4767
  */
4770
4768
  policyText?: string | null;
4771
- /** Whether this ticket definition is hidden to site visitors and can't be purchased. */
4769
+ /** Whether this ticket definition is hidden from site visitors and can't be purchased. */
4772
4770
  hidden?: boolean;
4773
4771
  /**
4774
4772
  * Whether the ticket has a limited maximum quantity.
@@ -4784,7 +4782,7 @@ interface UpdateTicketDefinition {
4784
4782
  actualLimit?: number | null;
4785
4783
  /** Ticket pricing method. */
4786
4784
  pricingMethod?: PricingMethod;
4787
- /** Whether fee is included in the ticket price or customer pays it additionally at checkout. */
4785
+ /** Type of ticket service fee to collect. */
4788
4786
  feeType?: FeeTypeEnumTypeWithLiterals;
4789
4787
  /** Ticket sale period. */
4790
4788
  salePeriod?: SalePeriod;
@@ -4794,13 +4792,13 @@ interface UpdateTicketDefinition {
4794
4792
  */
4795
4793
  saleStatus?: SaleStatusEnumStatusWithLiterals;
4796
4794
  /**
4797
- * Ticket sales information. <br>
4798
- * **Note:** This field is only returned when `SALES_DETAILS` fieldset is included in the request.
4795
+ * Ticket sales information. <br> <br>
4796
+ * **Note:** This field is only returned when `"SALES_DETAILS"` is specified in `field` in the request.
4799
4797
  */
4800
4798
  salesDetails?: SalesDetails;
4801
4799
  /**
4802
- * Number of tickets that can be purchased per checkout. <br>
4803
- * **Note:** If the `actuaLimit` or `salesDetails.unsoldCount` field value is smaller than `limitPerCheckout`, then it overrides this field.
4800
+ * Number of tickets that can be purchased per checkout. <br> <br>
4801
+ * **Note:** If the `actualLimit` or `salesDetails.unsoldCount` field value is smaller than `limitPerCheckout`, then it overrides this field.
4804
4802
  * @readonly
4805
4803
  * @max 50
4806
4804
  */
@@ -4808,8 +4806,8 @@ interface UpdateTicketDefinition {
4808
4806
  /** Data extensions. */
4809
4807
  extendedFields?: ExtendedFields;
4810
4808
  /**
4811
- * Associated event information. <br>
4812
- * **Note:** This field is only returned when `EVENT_DETAILS` fieldset is included in the request.
4809
+ * Information about the even the ticket is for. <br>
4810
+ * **Note:** This field is only returned when `"EVENT_DETAILS"` is specified in `field` in the request.
4813
4811
  */
4814
4812
  eventDetails?: EventDetails;
4815
4813
  }
@@ -4821,7 +4819,7 @@ interface UpdateTicketDefinitionOptions {
4821
4819
  fields?: FieldWithLiterals[];
4822
4820
  }
4823
4821
  /**
4824
- * Retrieves a ticket definition by ID.
4822
+ * Retrieves a ticket definition.
4825
4823
  * @param ticketDefinitionId - Ticket definition ID.
4826
4824
  * @public
4827
4825
  * @requiredField ticketDefinitionId
@@ -4840,7 +4838,7 @@ interface GetTicketDefinitionOptions {
4840
4838
  fields?: FieldWithLiterals[];
4841
4839
  }
4842
4840
  /**
4843
- * Permanently deletes a ticket definition.
4841
+ * Deletes a ticket definition.
4844
4842
  * @param ticketDefinitionId - ID of the ticket definition to delete.
4845
4843
  * @public
4846
4844
  * @requiredField ticketDefinitionId
@@ -4850,8 +4848,8 @@ interface GetTicketDefinitionOptions {
4850
4848
  */
4851
4849
  declare function deleteTicketDefinition(ticketDefinitionId: string): Promise<void>;
4852
4850
  /**
4853
- * Changes ticket definitions order in an event dashboard and the list of available tickets in the ticket picker.
4854
- * > **Note:** It is possible to use both `beforeTicketDefinitionId` and `afterTicketDefinitionId` at the same time but only the last one defined will be executed.
4851
+ * Adjusts the order in which ticket definitions display in an event dashboard, as well as the order of available tickets displayed in the ticket picker.
4852
+ * > **Note:** You may use both `beforeTicketDefinitionId` and `afterTicketDefinitionId` but only the last one provided takes effect.
4855
4853
  * @param eventId - Event ID.
4856
4854
  * @public
4857
4855
  * @requiredField eventId
@@ -4965,9 +4963,9 @@ interface TicketDefinitionsQueryBuilder {
4965
4963
  find: () => Promise<TicketDefinitionsQueryResult>;
4966
4964
  }
4967
4965
  /**
4968
- * Retrieves a list of available ticket definitions, given the provided paging, filtering, and sorting.
4966
+ * Retrieves a list of available ticket definitions with the specified paging, filtering, and sorting.
4969
4967
  *
4970
- * This endpoint retrieves ticket definitions that aren't in the `hidden` state. The available ticket definitions can be retrieved by site visitors.
4968
+ * This method retrieves ticket definitions that aren't in the `hidden` state. The available ticket definitions can be retrieved by site visitors.
4971
4969
  *
4972
4970
  * > **Note:** You need the `WIX_EVENTS.READ_TICKET_DEFINITIONS` permission to get the `salesDetails` field values.
4973
4971
  *
@@ -4977,8 +4975,8 @@ interface TicketDefinitionsQueryBuilder {
4977
4975
  * - `paging.offset` is `0`
4978
4976
  *
4979
4977
  * For field support for filters and sorting, see [Ticket Definitions: Supported Filters and Sorting](https://dev.wix.com/docs/rest/business-solutions/events/ticket-definition-v3/filter-and-sort).
4980
- * To learn about working with _Query_ endpoints, see [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language).
4981
- * @param query - Query options. See [API Query Language](https://dev.wix.com/api/rest/getting-started/api-query-language) for more details.
4978
+ * To learn about working with _Query_ methods, see [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language).
4979
+ * @param query - Query options. See [API Query Language](https://dev.wix.com/docs/rest/articles/get-started/api-query-language) for more details.
4982
4980
  * @public
4983
4981
  * @requiredField query
4984
4982
  * @param options - Optional fields.