wedance-shared 1.0.128 → 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/index.d.ts +1 -0
- package/dist/types/index.js +1 -0
- package/dist/types/index.js.map +1 -1
- package/dist/types/ticket.d.ts +26 -0
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
package/dist/types/index.js
CHANGED
|
@@ -8,6 +8,7 @@ export * from "./other.js";
|
|
|
8
8
|
export * from "./analytics.js";
|
|
9
9
|
export * from "./infoBanner.js";
|
|
10
10
|
export * from "./wedancePosts.js";
|
|
11
|
+
export * from "./support.js";
|
|
11
12
|
// Re-export from subdirectories
|
|
12
13
|
export * from "./festivals/index.js";
|
|
13
14
|
//# sourceMappingURL=index.js.map
|
package/dist/types/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAE7B,gCAAgC;AAChC,cAAc,sBAAsB,CAAC"}
|
package/dist/types/ticket.d.ts
CHANGED
|
@@ -76,6 +76,9 @@ export type TicketTransfer = {
|
|
|
76
76
|
toUserId: string;
|
|
77
77
|
timestamp: Timestamp;
|
|
78
78
|
};
|
|
79
|
+
/**
|
|
80
|
+
* @deprecated Replaced by TicketCoupon
|
|
81
|
+
*/
|
|
79
82
|
export type CouponCode = {
|
|
80
83
|
code: string;
|
|
81
84
|
discountType: "fixed" | "percentage";
|
|
@@ -83,6 +86,26 @@ export type CouponCode = {
|
|
|
83
86
|
startDate: string | null;
|
|
84
87
|
expiryDate: string | null;
|
|
85
88
|
};
|
|
89
|
+
export type TicketCouponDiscountType = "fixed" | "percentage";
|
|
90
|
+
/**
|
|
91
|
+
* Row shape for `public.ticket_coupons`.
|
|
92
|
+
*/
|
|
93
|
+
export type TicketCoupon = {
|
|
94
|
+
id: string;
|
|
95
|
+
/**
|
|
96
|
+
* @deprecated Link is made with a join table `public.coupon_ticket_types`
|
|
97
|
+
*/
|
|
98
|
+
ticketTypeId: string | null;
|
|
99
|
+
code: string;
|
|
100
|
+
discountType: TicketCouponDiscountType;
|
|
101
|
+
discountAmount: number;
|
|
102
|
+
startDate: string | null;
|
|
103
|
+
expiryDate: string | null;
|
|
104
|
+
organizerId: string | null;
|
|
105
|
+
maxRedemptions: number | null;
|
|
106
|
+
redemptionCount: number;
|
|
107
|
+
};
|
|
108
|
+
export type CreateTicketCouponInput = Pick<TicketCoupon, "code" | "discountType" | "discountAmount" | "organizerId" | "startDate" | "expiryDate" | "maxRedemptions">;
|
|
86
109
|
export type EventTicket = {
|
|
87
110
|
id: string;
|
|
88
111
|
/**
|
|
@@ -103,6 +126,9 @@ export type EventTicket = {
|
|
|
103
126
|
*/
|
|
104
127
|
thresholdShowQuantity?: number | null;
|
|
105
128
|
amountSold: number;
|
|
129
|
+
/**
|
|
130
|
+
* @deprecated Replaced by TicketCoupon in ticket_coupons table
|
|
131
|
+
*/
|
|
106
132
|
coupons: CouponCode[] | null;
|
|
107
133
|
name: string;
|
|
108
134
|
description?: string;
|
package/package.json
CHANGED