wedance-shared 1.0.165 → 1.0.166

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.
@@ -1,10 +1,14 @@
1
- import { MonetaryAmount, ProductType } from "./ticket.js";
1
+ import { MonetaryAmount, ProductType, TicketTypeSummary } from "./ticket.js";
2
2
  export interface Pass {
3
3
  id: string;
4
4
  userId: string;
5
5
  originalOwnerId: string;
6
6
  organizerId: string;
7
7
  ticketTypeId: string;
8
+ /**
9
+ * Always populated by the server with a join. Not a column on the passes table.
10
+ */
11
+ ticketType: TicketTypeSummary;
8
12
  seriesId: string | null;
9
13
  checkoutSessionId: string | null;
10
14
  paymentId: string | null;
@@ -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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.165",
3
+ "version": "1.0.166",
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",