wedance-shared 1.0.25 → 1.0.26

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