wedance-shared 1.0.248 → 1.0.249
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/dist/types/ticket.d.ts +13 -0
- package/package.json +1 -1
package/dist/types/ticket.d.ts
CHANGED
|
@@ -231,6 +231,19 @@ export type CourseTicketType = TicketTypeBase & {
|
|
|
231
231
|
* `is*TicketType` guards before reading variant-specific fields.
|
|
232
232
|
*/
|
|
233
233
|
export type TicketType = EventTicketType | DropInTicketType | PassTicketType | MembershipTicketType | CourseTicketType;
|
|
234
|
+
/**
|
|
235
|
+
* A ticket type group with its ticket types, already sorted by sortOrder.
|
|
236
|
+
*/
|
|
237
|
+
export type TicketTypeGroupWithTickets = TicketTypeGroup & {
|
|
238
|
+
ticketTypes: TicketType[];
|
|
239
|
+
};
|
|
240
|
+
/**
|
|
241
|
+
* An event's ticket types split into their groups, ready to render as-is.
|
|
242
|
+
*/
|
|
243
|
+
export type GroupedTicketTypes = {
|
|
244
|
+
groups: TicketTypeGroupWithTickets[];
|
|
245
|
+
ungrouped: TicketType[];
|
|
246
|
+
};
|
|
234
247
|
/**
|
|
235
248
|
* @deprecated Prefer the explicit {@link EventTicketType}, or {@link TicketType}
|
|
236
249
|
* when the product may not be an event. Retained for backward compatibility.
|
package/package.json
CHANGED