wedance-shared 1.0.25 → 1.0.27

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.
@@ -6,15 +6,32 @@ export type FestivalUser = {
6
6
  displayName: string;
7
7
  profilePicture?: string;
8
8
  favoriteFestivals: string[];
9
+ goingFestivals: string[];
9
10
  role: Role;
10
- basedIn?: string;
11
+ location: {
12
+ city: string;
13
+ country: string;
14
+ countryCode: string;
15
+ coordinates: {
16
+ latitude: number;
17
+ longitude: number;
18
+ };
19
+ };
11
20
  createdAt: Timestamp;
12
21
  lastUpdated: Timestamp;
13
22
  lastConnected: Timestamp;
14
- fcmTokens?: string[];
23
+ fcmTokens: string[];
15
24
  appVersion: string;
16
25
  deviceModel: string;
17
26
  platform: string;
18
27
  emailVerified: boolean;
19
28
  stripeId?: string;
20
29
  };
30
+ export interface UserAttachment {
31
+ id: string;
32
+ userId: string;
33
+ name: string;
34
+ eventId: string;
35
+ url: string;
36
+ uploadedAt: Timestamp;
37
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.25",
3
+ "version": "1.0.27",
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",
@@ -7,19 +7,37 @@ export type FestivalUser = {
7
7
  displayName: string;
8
8
  profilePicture?: string;
9
9
  favoriteFestivals: string[];
10
+ goingFestivals: string[];
10
11
  role: Role;
11
12
 
12
- // User can set a city, a country or whatever they want to be called
13
- basedIn?: string;
13
+ // Location details
14
+ location: {
15
+ city: string;
16
+ country: string;
17
+ countryCode: string;
18
+ coordinates: {
19
+ latitude: number;
20
+ longitude: number;
21
+ };
22
+ };
14
23
 
15
24
  createdAt: Timestamp;
16
25
  lastUpdated: Timestamp;
17
26
  lastConnected: Timestamp;
18
27
 
19
- fcmTokens?: string[];
28
+ fcmTokens: string[];
20
29
  appVersion: string;
21
30
  deviceModel: string;
22
31
  platform: string;
23
32
  emailVerified: boolean;
24
33
  stripeId?: string;
25
34
  };
35
+
36
+ export interface UserAttachment {
37
+ id: string; // Firestore document ID
38
+ userId: string;
39
+ name: string;
40
+ eventId: string; // Optional if not always tied to an event
41
+ url: string;
42
+ uploadedAt: Timestamp; // Or Date, depending on usage
43
+ }