wedance-shared 1.0.54 → 1.0.55
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 +7 -1
- package/package.json +1 -1
package/dist/types/ticket.d.ts
CHANGED
|
@@ -78,6 +78,11 @@ export type EventTicket = {
|
|
|
78
78
|
eventId: string;
|
|
79
79
|
quantity: number;
|
|
80
80
|
hideQuantity: boolean;
|
|
81
|
+
/**
|
|
82
|
+
* If the quantity is higher than this number, the quantity will be hidden. (E.g 10)
|
|
83
|
+
* Only applies if hideQuantity is true. Default is 0.
|
|
84
|
+
*/
|
|
85
|
+
thresholdHideQuantity: number;
|
|
81
86
|
amountSold: number;
|
|
82
87
|
coupons: CouponCode[] | null;
|
|
83
88
|
name: string;
|
|
@@ -88,7 +93,7 @@ export type EventTicket = {
|
|
|
88
93
|
endDate: string | null;
|
|
89
94
|
isTransferable: boolean;
|
|
90
95
|
isRefundable: boolean;
|
|
91
|
-
status:
|
|
96
|
+
status: EventTicketStatus;
|
|
92
97
|
/**
|
|
93
98
|
* Promotional period for the ticket
|
|
94
99
|
*/
|
|
@@ -98,6 +103,7 @@ export type EventTicket = {
|
|
|
98
103
|
*/
|
|
99
104
|
ticketType: string;
|
|
100
105
|
};
|
|
106
|
+
export type EventTicketStatus = "published" | "draft" | "sold-out" | "unavailable";
|
|
101
107
|
export type PromotionalPeriod = {
|
|
102
108
|
/**
|
|
103
109
|
* Discount amount during the promotional period. Can't be more than the price. unit: MAJOR
|
package/package.json
CHANGED