wedance-shared 1.0.39 → 1.0.40

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.
@@ -13,8 +13,6 @@ export type User = {
13
13
  savedEvents: string[];
14
14
  goingEvents: string[];
15
15
  role: Role;
16
- managerCity?: City;
17
- organiser?: OrganizerName;
18
16
  city: City | null;
19
17
  followingOrganisers: OrganizerName[];
20
18
  favoriteDance?: DanceTag;
@@ -30,6 +28,9 @@ export type User = {
30
28
  id: string;
31
29
  url: string;
32
30
  };
31
+ managerCity?: City;
32
+ organiserId?: string | null;
33
+ organiser?: OrganizerName;
33
34
  };
34
35
  export type NotificationPreferences = {
35
36
  all: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.39",
3
+ "version": "1.0.40",
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",
package/src/types/user.ts CHANGED
@@ -15,8 +15,6 @@ export type User = {
15
15
  savedEvents: string[];
16
16
  goingEvents: string[];
17
17
  role: Role;
18
- managerCity?: City;
19
- organiser?: OrganizerName;
20
18
  city: City | null;
21
19
  followingOrganisers: OrganizerName[];
22
20
  favoriteDance?: DanceTag;
@@ -32,6 +30,12 @@ export type User = {
32
30
  id: string;
33
31
  url: string;
34
32
  };
33
+
34
+ // Organiser and manager
35
+ managerCity?: City;
36
+ organiserId?: string | null;
37
+ // Deprecated
38
+ organiser?: OrganizerName;
35
39
  };
36
40
 
37
41
  export type NotificationPreferences = {