wedance-shared 1.0.149 → 1.0.151
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 +12 -0
- package/dist/types/ticket.d.ts +9 -1
- package/package.json +1 -1
package/dist/types/pass.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { MonetaryAmount } from "./ticket.js";
|
|
1
2
|
export interface Pass {
|
|
2
3
|
id: string;
|
|
3
4
|
userId: string;
|
|
@@ -13,6 +14,17 @@ export interface Pass {
|
|
|
13
14
|
validFrom: string;
|
|
14
15
|
validUntil: string | null;
|
|
15
16
|
status: "active" | "used_up" | "expired" | "refunded" | "suspended";
|
|
17
|
+
paidAmount: MonetaryAmount;
|
|
18
|
+
originalAmount: MonetaryAmount | null;
|
|
19
|
+
appliedCoupon: {
|
|
20
|
+
id: string;
|
|
21
|
+
code: string | null;
|
|
22
|
+
discountType: "fixed" | "percentage";
|
|
23
|
+
discountAmount: number | null;
|
|
24
|
+
discountPercentage: number | null;
|
|
25
|
+
} | null;
|
|
26
|
+
partySize: number;
|
|
27
|
+
partnerFullName: string | null;
|
|
16
28
|
createdAt: string;
|
|
17
29
|
updatedAt: string;
|
|
18
30
|
}
|
package/dist/types/ticket.d.ts
CHANGED
|
@@ -139,6 +139,13 @@ export type EventTicket = {
|
|
|
139
139
|
* @deprecated Replaced by price_details
|
|
140
140
|
*/
|
|
141
141
|
price?: number;
|
|
142
|
+
productType: string;
|
|
143
|
+
credits: number | null;
|
|
144
|
+
validityDays: number | null;
|
|
145
|
+
validFrom: string | null;
|
|
146
|
+
validUntil: string | null;
|
|
147
|
+
organizerId: string;
|
|
148
|
+
seriesId: string | null;
|
|
142
149
|
};
|
|
143
150
|
export type EventTicketStatus = "published" | "draft" | "sold-out" | "unavailable";
|
|
144
151
|
export type PromotionalPeriod = {
|
|
@@ -234,7 +241,8 @@ export type CheckoutSession = {
|
|
|
234
241
|
application_fee_amount: number | null;
|
|
235
242
|
transfer_data_destination: string | null;
|
|
236
243
|
quantity: number;
|
|
237
|
-
event_id: string;
|
|
244
|
+
event_id: string | null;
|
|
245
|
+
organizer_id: string;
|
|
238
246
|
event_ticket_id: string;
|
|
239
247
|
discount_code: string | null;
|
|
240
248
|
discount_code_id: string | null;
|
package/package.json
CHANGED