wedance-shared 1.0.165 → 1.0.167
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/event.d.ts +6 -1
- package/dist/types/pass.d.ts +16 -1
- package/dist/types/ticket.d.ts +7 -0
- package/package.json +1 -1
package/dist/types/event.d.ts
CHANGED
|
@@ -97,6 +97,11 @@ export type EventData = {
|
|
|
97
97
|
*/
|
|
98
98
|
activePromotions?: ActivePromotion[] | null;
|
|
99
99
|
};
|
|
100
|
+
/**
|
|
101
|
+
* Lightweight event projection with the basic info needed when an event is
|
|
102
|
+
* attached to another record (e.g. a Pass). Populated server-side via a join.
|
|
103
|
+
*/
|
|
104
|
+
export type EventSummary = Pick<EventData, "id" | "title" | "imageData" | "from" | "until">;
|
|
100
105
|
/**
|
|
101
106
|
* Workshop: Only workshop
|
|
102
107
|
* Social: Only social and possible pre-party class
|
|
@@ -187,6 +192,6 @@ export type FeaturedEvent = {
|
|
|
187
192
|
createdBy: string | null;
|
|
188
193
|
createdAt: string;
|
|
189
194
|
updatedAt: string;
|
|
190
|
-
event?:
|
|
195
|
+
event?: EventSummary;
|
|
191
196
|
organizer?: OrganizerSummary;
|
|
192
197
|
};
|
package/dist/types/pass.d.ts
CHANGED
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { EventSummary } from "./event.js";
|
|
2
|
+
import { MonetaryAmount, ProductType, TicketTypeSummary } from "./ticket.js";
|
|
2
3
|
export interface Pass {
|
|
3
4
|
id: string;
|
|
4
5
|
userId: string;
|
|
5
6
|
originalOwnerId: string;
|
|
6
7
|
organizerId: string;
|
|
7
8
|
ticketTypeId: string;
|
|
9
|
+
/**
|
|
10
|
+
* Always populated by the server with a join. Not a column on the passes table.
|
|
11
|
+
*/
|
|
12
|
+
ticketType: TicketTypeSummary;
|
|
13
|
+
/**
|
|
14
|
+
* Populated by the server with a join when productType is "event".
|
|
15
|
+
* Not a column on the passes table.
|
|
16
|
+
*/
|
|
17
|
+
event?: EventSummary | null;
|
|
8
18
|
seriesId: string | null;
|
|
9
19
|
checkoutSessionId: string | null;
|
|
10
20
|
paymentId: string | null;
|
|
@@ -27,6 +37,11 @@ export interface Pass {
|
|
|
27
37
|
partnerFullName: string | null;
|
|
28
38
|
createdAt: string;
|
|
29
39
|
updatedAt: string;
|
|
40
|
+
/**
|
|
41
|
+
* For users without an account, the guest email and full name are stored here.
|
|
42
|
+
*/
|
|
43
|
+
guestEmail: string | null;
|
|
44
|
+
guestFullName: string | null;
|
|
30
45
|
}
|
|
31
46
|
export interface PassRedemption {
|
|
32
47
|
id: string;
|
package/dist/types/ticket.d.ts
CHANGED
|
@@ -215,6 +215,13 @@ export type TicketType = EventTicketType | DropInTicketType | PassTicketType | M
|
|
|
215
215
|
*/
|
|
216
216
|
export type EventTicket = EventTicketType;
|
|
217
217
|
export type ProductType = "event" | "drop_in" | "pass" | "membership" | "course";
|
|
218
|
+
/**
|
|
219
|
+
* Lightweight ticket-type projection for joins (e.g. on a Pass) where the full
|
|
220
|
+
* {@link TicketType} is not needed.
|
|
221
|
+
*/
|
|
222
|
+
export type TicketTypeSummary = Pick<TicketTypeBase, "id" | "name" | "price_details" | "organizerId"> & {
|
|
223
|
+
productType: ProductType;
|
|
224
|
+
};
|
|
218
225
|
export type EventTicketStatus = "published" | "draft" | "sold-out" | "unavailable";
|
|
219
226
|
export type PromotionalPeriod = {
|
|
220
227
|
/**
|
package/package.json
CHANGED