wedance-shared 1.0.156 → 1.0.158
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/pass.d.ts +2 -2
- package/dist/types/ticket.d.ts +2 -15
- package/package.json +1 -1
package/dist/types/pass.d.ts
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MonetaryAmount } from "./ticket.js";
|
|
1
|
+
import { MonetaryAmount, ProductType } from "./ticket.js";
|
|
2
2
|
export interface Pass {
|
|
3
3
|
id: string;
|
|
4
4
|
userId: string;
|
|
@@ -8,7 +8,7 @@ export interface Pass {
|
|
|
8
8
|
seriesId: string | null;
|
|
9
9
|
checkoutSessionId: string | null;
|
|
10
10
|
paymentId: string | null;
|
|
11
|
-
productType:
|
|
11
|
+
productType: ProductType;
|
|
12
12
|
creditsTotal: number | null;
|
|
13
13
|
creditsRemaining: number | null;
|
|
14
14
|
validFrom: string;
|
package/dist/types/ticket.d.ts
CHANGED
|
@@ -78,16 +78,6 @@ export type TicketTransfer = {
|
|
|
78
78
|
toUserId: string;
|
|
79
79
|
timestamp: Timestamp;
|
|
80
80
|
};
|
|
81
|
-
/**
|
|
82
|
-
* @deprecated Replaced by TicketCoupon
|
|
83
|
-
*/
|
|
84
|
-
export type CouponCode = {
|
|
85
|
-
code: string;
|
|
86
|
-
discountType: "fixed" | "percentage";
|
|
87
|
-
discountAmount: number;
|
|
88
|
-
startDate: string | null;
|
|
89
|
-
expiryDate: string | null;
|
|
90
|
-
};
|
|
91
81
|
export type EventTicket = {
|
|
92
82
|
id: string;
|
|
93
83
|
/**
|
|
@@ -108,10 +98,6 @@ export type EventTicket = {
|
|
|
108
98
|
*/
|
|
109
99
|
thresholdShowQuantity?: number | null;
|
|
110
100
|
amountSold: number;
|
|
111
|
-
/**
|
|
112
|
-
* @deprecated Replaced by TicketCoupon in ticket_coupons table
|
|
113
|
-
*/
|
|
114
|
-
coupons: CouponCode[] | null;
|
|
115
101
|
name: string;
|
|
116
102
|
description?: string;
|
|
117
103
|
maxQuantityPerPurchase?: number;
|
|
@@ -139,7 +125,7 @@ export type EventTicket = {
|
|
|
139
125
|
* @deprecated Replaced by price_details
|
|
140
126
|
*/
|
|
141
127
|
price?: number;
|
|
142
|
-
productType:
|
|
128
|
+
productType: ProductType;
|
|
143
129
|
credits: number | null;
|
|
144
130
|
validityDays: number | null;
|
|
145
131
|
validFrom: string | null;
|
|
@@ -147,6 +133,7 @@ export type EventTicket = {
|
|
|
147
133
|
organizerId: string;
|
|
148
134
|
seriesId: string | null;
|
|
149
135
|
};
|
|
136
|
+
export type ProductType = "event" | "drop_in" | "pass" | "membership" | "course";
|
|
150
137
|
export type EventTicketStatus = "published" | "draft" | "sold-out" | "unavailable";
|
|
151
138
|
export type PromotionalPeriod = {
|
|
152
139
|
/**
|
package/package.json
CHANGED