wedance-shared 1.0.41 → 1.0.42

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.
@@ -3,7 +3,7 @@ import { City } from "./city.js";
3
3
  import { OrganizerName } from "./organizer.js";
4
4
  import { EventTicket } from "./ticket.js";
5
5
  import { UserBadge } from "./user.js";
6
- export type DanceTag = "salsa" | "kizomba" | "bachata" | "zouk";
6
+ export type DanceTag = "salsa" | "kizomba" | "bachata" | "zouk" | "tango" | "heels" | "hiphop" | "reggaeton" | "other";
7
7
  export type Organizer = {
8
8
  name: OrganizerName;
9
9
  email?: string;
@@ -65,9 +65,16 @@ export type EventData = {
65
65
  going: UserBadge[] | null;
66
66
  interested: UserBadge[] | null;
67
67
  imageData: ImageData;
68
+ eventType: EventType;
68
69
  eventTickets?: EventTicket[] | null;
69
70
  lineup?: LineUpArtist[] | null;
70
71
  };
72
+ /**
73
+ * Workshop: Only workshop
74
+ * Social: Only social and possible pre-party class
75
+ * Workshop-and-social: Workshop and social when more than one workshop.
76
+ */
77
+ export type EventType = "workshop" | "social" | "workshop-and-social";
71
78
  export type EventCellType = "workshop" | "social" | "break" | "other";
72
79
  export type ScheduleItem = {
73
80
  id: string;
@@ -13,5 +13,9 @@ export type OrganizerData = {
13
13
  lastUpdated: string;
14
14
  createdAt: string;
15
15
  isFlagged: boolean;
16
+ /**
17
+ * From 0 to 5. 0 is the highest priority.
18
+ */
19
+ priority: number;
16
20
  stripeAccountId?: string | null;
17
21
  };
@@ -75,6 +75,7 @@ export type EventTicket = {
75
75
  price_details: MonetaryAmount;
76
76
  eventId: string;
77
77
  quantity: number;
78
+ hideQuantity: boolean;
78
79
  amountSold: number;
79
80
  coupons: CouponCode[] | null;
80
81
  name: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.41",
3
+ "version": "1.0.42",
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",
@@ -4,7 +4,16 @@ import { OrganizerName } from "./organizer.js";
4
4
  import { EventTicket } from "./ticket.js";
5
5
  import { UserBadge } from "./user.js";
6
6
 
7
- export type DanceTag = "salsa" | "kizomba" | "bachata" | "zouk";
7
+ export type DanceTag =
8
+ | "salsa"
9
+ | "kizomba"
10
+ | "bachata"
11
+ | "zouk"
12
+ | "tango"
13
+ | "heels"
14
+ | "hiphop"
15
+ | "reggaeton"
16
+ | "other";
8
17
 
9
18
  export type Organizer = {
10
19
  name: OrganizerName;
@@ -78,10 +87,18 @@ export type EventData = {
78
87
  going: UserBadge[] | null;
79
88
  interested: UserBadge[] | null;
80
89
  imageData: ImageData;
90
+ eventType: EventType;
81
91
  eventTickets?: EventTicket[] | null;
82
92
  lineup?: LineUpArtist[] | null;
83
93
  };
84
94
 
95
+ /**
96
+ * Workshop: Only workshop
97
+ * Social: Only social and possible pre-party class
98
+ * Workshop-and-social: Workshop and social when more than one workshop.
99
+ */
100
+ export type EventType = "workshop" | "social" | "workshop-and-social";
101
+
85
102
  export type EventCellType = "workshop" | "social" | "break" | "other";
86
103
 
87
104
  export type ScheduleItem = {
@@ -68,6 +68,10 @@ export type OrganizerData = {
68
68
  lastUpdated: string;
69
69
  createdAt: string;
70
70
  isFlagged: boolean;
71
+ /**
72
+ * From 0 to 5. 0 is the highest priority.
73
+ */
74
+ priority: number;
71
75
 
72
76
  // Stripe for connected accounts
73
77
  stripeAccountId?: string | null;
@@ -85,6 +85,7 @@ export type EventTicket = {
85
85
  price_details: MonetaryAmount;
86
86
  eventId: string;
87
87
  quantity: number;
88
+ hideQuantity: boolean;
88
89
  amountSold: number;
89
90
  coupons: CouponCode[] | null;
90
91
  name: string;