wedance-shared 1.0.130 → 1.0.131
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 -0
- package/package.json +1 -1
package/dist/types/ticket.d.ts
CHANGED
|
@@ -92,6 +92,9 @@ export type TicketCouponDiscountType = "fixed" | "percentage";
|
|
|
92
92
|
*/
|
|
93
93
|
export type TicketCoupon = {
|
|
94
94
|
id: string;
|
|
95
|
+
/**
|
|
96
|
+
* @deprecated Link is made with a join table `public.coupon_ticket_types`
|
|
97
|
+
*/
|
|
95
98
|
ticketTypeId: string | null;
|
|
96
99
|
code: string;
|
|
97
100
|
discountType: TicketCouponDiscountType;
|
|
@@ -102,6 +105,7 @@ export type TicketCoupon = {
|
|
|
102
105
|
maxRedemptions: number | null;
|
|
103
106
|
redemptionCount: number;
|
|
104
107
|
};
|
|
108
|
+
export type CreateTicketCouponInput = Pick<TicketCoupon, "code" | "discountType" | "discountAmount" | "organizerId" | "startDate" | "expiryDate" | "maxRedemptions">;
|
|
105
109
|
export type EventTicket = {
|
|
106
110
|
id: string;
|
|
107
111
|
/**
|
|
@@ -122,6 +126,9 @@ export type EventTicket = {
|
|
|
122
126
|
*/
|
|
123
127
|
thresholdShowQuantity?: number | null;
|
|
124
128
|
amountSold: number;
|
|
129
|
+
/**
|
|
130
|
+
* @deprecated Replaced by TicketCoupon in ticket_coupons table
|
|
131
|
+
*/
|
|
125
132
|
coupons: CouponCode[] | null;
|
|
126
133
|
name: string;
|
|
127
134
|
description?: string;
|
package/package.json
CHANGED