wedance-shared 1.0.180 → 1.0.183

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.
@@ -60,21 +60,9 @@ export type EventData = {
60
60
  * Events have international artists
61
61
  */
62
62
  isInternational: boolean;
63
- /**
64
- * Is event private? @deprecated
65
- */
66
- isPrivate?: boolean;
67
63
  hasSeveralPrices?: boolean;
68
64
  createdAt: string;
69
65
  lastUpdated?: string;
70
- /**
71
- * @deprecated Schedule will be removed in the future
72
- */
73
- publishedSchedule?: boolean;
74
- /**
75
- * @deprecated Schedule will be removed in the future
76
- */
77
- schedule?: EventSchedule | null;
78
66
  addedBy: string;
79
67
  updatedBy: string;
80
68
  paymentLink: string | null;
@@ -97,6 +85,10 @@ export type EventData = {
97
85
  * Added by the handler the active promotional period
98
86
  */
99
87
  activePromotions?: ActivePromotion[] | null;
88
+ /**
89
+ * Schedule/timetable pictures uploaded by the organizer.
90
+ */
91
+ scheduleImages?: ImageData[];
100
92
  };
101
93
  /**
102
94
  * Lightweight event projection with the basic info needed when an event is
@@ -1,5 +1,5 @@
1
1
  import { EventSummary } from "./event.js";
2
- import { MonetaryAmount, ProductType, TicketTypeSummary } from "./ticket.js";
2
+ import { MonetaryAmount, ProductType, TicketStatus, TicketTypeSummary } from "./ticket.js";
3
3
  export interface Pass {
4
4
  id: string;
5
5
  userId: string;
@@ -23,7 +23,7 @@ export interface Pass {
23
23
  creditsRemaining: number | null;
24
24
  validFrom: string;
25
25
  validUntil: string | null;
26
- status: "active" | "used_up" | "expired" | "refunded" | "suspended";
26
+ status: TicketStatus;
27
27
  paidAmount: MonetaryAmount;
28
28
  originalAmount: MonetaryAmount | null;
29
29
  appliedCoupon: {
@@ -1,5 +1,6 @@
1
1
  import { Timestamp } from "firebase/firestore";
2
- export type TicketStatus = "Confirmed" | "Void" | "Refunded" | "Expired" | "Used";
2
+ /** Ticket status. Same vocabulary as the Postgres `passes.status` column. */
3
+ export type TicketStatus = "active" | "used_up" | "expired" | "refunded" | "suspended";
3
4
  export type Ticket = {
4
5
  /**
5
6
  * ID of the ticket
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.180",
3
+ "version": "1.0.183",
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",