wedance-shared 1.0.232 → 1.0.234

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.
@@ -16,4 +16,4 @@ export * from "./privateClass.js";
16
16
  export * from "./revenue.js";
17
17
  export * from "./school.js";
18
18
  export * from "./transaction.js";
19
- export * from "./festivals/index.js";
19
+ export * from "./notifications.js";
@@ -17,6 +17,5 @@ export * from "./privateClass.js";
17
17
  export * from "./revenue.js";
18
18
  export * from "./school.js";
19
19
  export * from "./transaction.js";
20
- // Re-export from subdirectories
21
- export * from "./festivals/index.js";
20
+ export * from "./notifications.js";
22
21
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AAEjC,gCAAgC;AAChC,cAAc,sBAAsB,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/types/index.ts"],"names":[],"mappings":"AAAA,4CAA4C;AAC5C,cAAc,YAAY,CAAC;AAC3B,cAAc,aAAa,CAAC;AAC5B,cAAc,WAAW,CAAC;AAC1B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,gBAAgB,CAAC;AAC/B,cAAc,iBAAiB,CAAC;AAChC,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,WAAW,CAAC;AAC1B,cAAc,WAAW,CAAC;AAC1B,cAAc,mBAAmB,CAAC;AAClC,cAAc,cAAc,CAAC;AAC7B,cAAc,aAAa,CAAC;AAC5B,cAAc,kBAAkB,CAAC;AACjC,cAAc,oBAAoB,CAAC"}
@@ -0,0 +1,14 @@
1
+ export type NotificationSource = "event" | "studio";
2
+ export type NotificationType = "class_reminder" | "class_cancelled" | "class_rescheduled" | "waitlist_promoted" | "pass_expiring" | "pass_low_credits" | "studio_announcement";
3
+ export interface Notification {
4
+ id: string;
5
+ source: NotificationSource;
6
+ organizerId: string | null;
7
+ type: NotificationType;
8
+ title: string;
9
+ body: string;
10
+ metadata: Record<string, unknown> | null;
11
+ actionUrl: string | null;
12
+ isRead: boolean;
13
+ createdAt: string;
14
+ }
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=notifications.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"notifications.js","sourceRoot":"","sources":["../../src/types/notifications.ts"],"names":[],"mappings":""}
@@ -25,6 +25,7 @@ export type User = {
25
25
  fcmTokensOrg?: string[];
26
26
  fcmTokensStudio?: string[];
27
27
  notificationPreferences?: NotificationPreferences;
28
+ studioNotificationPreferences?: StudioNotificationPreferences;
28
29
  appVersion?: string;
29
30
  deviceModel?: string;
30
31
  platform?: string;
@@ -52,6 +53,12 @@ export type NotificationPreferences = {
52
53
  organizerTicketingPushNotifications?: boolean | null;
53
54
  organizerTicketingEmailNotifications?: boolean | null;
54
55
  };
56
+ export type StudioNotificationPreferences = {
57
+ classReminders: boolean;
58
+ bookingUpdates: boolean;
59
+ passReminders: boolean;
60
+ studioAnnouncements: boolean;
61
+ };
55
62
  /**
56
63
  * This is used to show who is going to the event
57
64
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.232",
3
+ "version": "1.0.234",
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",