wedance-shared 1.0.248 → 1.0.250

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.
@@ -4,10 +4,6 @@ export type OrganizerName = "SOB Productions" | "Helsinki SBK" | "Avec Dance Clu
4
4
  export type OrganizerData = {
5
5
  id: string;
6
6
  friendlyId: string;
7
- /**
8
- * ID from firebase firestore
9
- */
10
- oldId?: string | null;
11
7
  name: string;
12
8
  email?: string;
13
9
  website?: string;
@@ -83,7 +79,7 @@ export type OrganizerData = {
83
79
  * Lightweight organizer projection with the public info needed
84
80
  * when an organizer is attached to an event.
85
81
  */
86
- export type OrganizerSummary = Pick<OrganizerData, "id" | "oldId" | "name" | "logoUrl" | "city">;
82
+ export type OrganizerSummary = Pick<OrganizerData, "id" | "name" | "logoUrl" | "city">;
87
83
  export type OrganizerCapabilities = {
88
84
  ticketing: boolean;
89
85
  promotions: boolean;
@@ -117,7 +113,6 @@ export type UserOrganizerRelation = {
117
113
  logoUrl: string | null;
118
114
  city: string;
119
115
  country: string;
120
- oldId?: string | null;
121
116
  };
122
117
  };
123
118
  export type OrganizerApplicationStatus = "pending" | "approved" | "rejected";
@@ -231,6 +231,19 @@ export type CourseTicketType = TicketTypeBase & {
231
231
  * `is*TicketType` guards before reading variant-specific fields.
232
232
  */
233
233
  export type TicketType = EventTicketType | DropInTicketType | PassTicketType | MembershipTicketType | CourseTicketType;
234
+ /**
235
+ * A ticket type group with its ticket types, already sorted by sortOrder.
236
+ */
237
+ export type TicketTypeGroupWithTickets = TicketTypeGroup & {
238
+ ticketTypes: TicketType[];
239
+ };
240
+ /**
241
+ * An event's ticket types split into their groups, ready to render as-is.
242
+ */
243
+ export type GroupedTicketTypes = {
244
+ groups: TicketTypeGroupWithTickets[];
245
+ ungrouped: TicketType[];
246
+ };
234
247
  /**
235
248
  * @deprecated Prefer the explicit {@link EventTicketType}, or {@link TicketType}
236
249
  * when the product may not be an event. Retained for backward compatibility.
@@ -41,10 +41,6 @@ export type User = {
41
41
  };
42
42
  export type UserSummary = Pick<User, "id" | "displayName" | "profilePicture" | "email" | "firstName" | "lastName">;
43
43
  export type NotificationPreferences = {
44
- /**
45
- * @deprecated Use eventUpdates, eventReminders, eventDiscussions instead
46
- */
47
- all: boolean;
48
44
  eventUpdates: boolean;
49
45
  eventReminders: boolean;
50
46
  eventDiscussions: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.248",
3
+ "version": "1.0.250",
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",