wedance-shared 1.0.166 → 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.
@@ -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?: Pick<EventData, "id" | "title" | "imageData" | "from" | "until">;
195
+ event?: EventSummary;
191
196
  organizer?: OrganizerSummary;
192
197
  };
@@ -1,3 +1,4 @@
1
+ import { EventSummary } from "./event.js";
1
2
  import { MonetaryAmount, ProductType, TicketTypeSummary } from "./ticket.js";
2
3
  export interface Pass {
3
4
  id: string;
@@ -9,6 +10,11 @@ export interface Pass {
9
10
  * Always populated by the server with a join. Not a column on the passes table.
10
11
  */
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;
12
18
  seriesId: string | null;
13
19
  checkoutSessionId: string | null;
14
20
  paymentId: string | null;
@@ -31,6 +37,11 @@ export interface Pass {
31
37
  partnerFullName: string | null;
32
38
  createdAt: string;
33
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;
34
45
  }
35
46
  export interface PassRedemption {
36
47
  id: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.166",
3
+ "version": "1.0.167",
4
4
  "description": "This repository contains shared TypeScript types and interfaces used across multiple WeDance applications:",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",