wedance-shared 1.0.67 → 1.0.69
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.
- package/dist/types/festivals/festival.d.ts +9 -12
- package/dist/types/festivals/genre.d.ts +6 -0
- package/dist/types/festivals/genre.js +2 -0
- package/dist/types/festivals/genre.js.map +1 -0
- package/dist/types/festivals/user.d.ts +26 -6
- package/dist/types/organizer.d.ts +1 -6
- package/package.json +1 -1
|
@@ -1,35 +1,32 @@
|
|
|
1
|
-
import { Timestamp } from "firebase/firestore";
|
|
2
1
|
import { Links } from "../event.js";
|
|
3
|
-
import {
|
|
2
|
+
import { FestivalGenre } from "./genre.js";
|
|
4
3
|
/**
|
|
5
4
|
* This is the type of the data we get from the server
|
|
6
5
|
* */
|
|
7
6
|
export type FestivalData = {
|
|
8
7
|
id: string;
|
|
9
8
|
title: string;
|
|
10
|
-
from:
|
|
11
|
-
until:
|
|
9
|
+
from: string;
|
|
10
|
+
until: string;
|
|
12
11
|
organizerId: string[];
|
|
13
12
|
description: string;
|
|
14
13
|
location: FestivalLocation[];
|
|
15
|
-
genre
|
|
16
|
-
tags
|
|
14
|
+
genre: FestivalGenre[];
|
|
15
|
+
tags: string[];
|
|
17
16
|
imageData: FestivalImageData[];
|
|
18
17
|
priceRange?: {
|
|
19
18
|
min: number;
|
|
20
19
|
max: number;
|
|
21
20
|
currency: string;
|
|
22
|
-
};
|
|
23
|
-
createdAt:
|
|
24
|
-
updatedAt:
|
|
21
|
+
} | null;
|
|
22
|
+
createdAt: string;
|
|
23
|
+
updatedAt: string;
|
|
24
|
+
deletedAt?: string;
|
|
25
25
|
createdBy: string;
|
|
26
26
|
updatedBy: string;
|
|
27
27
|
links: Links;
|
|
28
|
-
isFree: boolean;
|
|
29
28
|
artists: FestivalArtist[];
|
|
30
|
-
tickets?: EventTicket[];
|
|
31
29
|
};
|
|
32
|
-
type FestivalGenre = "salsa" | "bachata" | "kizomba" | "zouk";
|
|
33
30
|
type FestivalImageData = {
|
|
34
31
|
url: string;
|
|
35
32
|
alt?: string;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"genre.js","sourceRoot":"","sources":["../../../src/types/festivals/genre.ts"],"names":[],"mappings":""}
|
|
@@ -5,8 +5,7 @@ export type FestivalUser = {
|
|
|
5
5
|
email: string;
|
|
6
6
|
displayName: string;
|
|
7
7
|
profilePicture?: string;
|
|
8
|
-
|
|
9
|
-
goingFestivals: string[];
|
|
8
|
+
handle: string;
|
|
10
9
|
role: Role;
|
|
11
10
|
location: {
|
|
12
11
|
city: string;
|
|
@@ -17,15 +16,14 @@ export type FestivalUser = {
|
|
|
17
16
|
longitude: number;
|
|
18
17
|
};
|
|
19
18
|
};
|
|
20
|
-
createdAt:
|
|
21
|
-
|
|
22
|
-
|
|
19
|
+
createdAt: string;
|
|
20
|
+
updatedAt: string;
|
|
21
|
+
connectedAt: string;
|
|
23
22
|
fcmTokens: string[];
|
|
24
23
|
appVersion: string;
|
|
25
24
|
deviceModel: string;
|
|
26
25
|
platform: string;
|
|
27
26
|
emailVerified: boolean;
|
|
28
|
-
stripeId?: string;
|
|
29
27
|
};
|
|
30
28
|
export interface UserAttachment {
|
|
31
29
|
id: string;
|
|
@@ -36,3 +34,25 @@ export interface UserAttachment {
|
|
|
36
34
|
uploadedAt: Timestamp;
|
|
37
35
|
type: "image" | "pdf";
|
|
38
36
|
}
|
|
37
|
+
export type UserToUserRelation = {
|
|
38
|
+
id: string;
|
|
39
|
+
followerId: string;
|
|
40
|
+
followingId: string;
|
|
41
|
+
createdAt: string;
|
|
42
|
+
updatedAt: string;
|
|
43
|
+
active: boolean;
|
|
44
|
+
snapshotUpdatedAt: string;
|
|
45
|
+
followingDisplayName: string;
|
|
46
|
+
followingAvatar: string;
|
|
47
|
+
followingHandle: string;
|
|
48
|
+
followerDisplayName: string;
|
|
49
|
+
followerAvatar: string;
|
|
50
|
+
followerHandle: string;
|
|
51
|
+
};
|
|
52
|
+
export type UserHandle = {
|
|
53
|
+
userId: string;
|
|
54
|
+
handle: string;
|
|
55
|
+
createdAt: string;
|
|
56
|
+
updatedAt: string;
|
|
57
|
+
active: boolean;
|
|
58
|
+
};
|
|
@@ -49,15 +49,10 @@ export type UserOrganizerFollow = {
|
|
|
49
49
|
lastUpdated: Timestamp;
|
|
50
50
|
};
|
|
51
51
|
export type UserEventRelation = {
|
|
52
|
-
/**
|
|
53
|
-
* Id format is `${userId}_${eventId}_${type}`
|
|
54
|
-
*/
|
|
55
52
|
id: string;
|
|
56
53
|
userId: string;
|
|
57
54
|
eventId: string;
|
|
58
55
|
type: "going" | "saved";
|
|
59
|
-
/**
|
|
60
|
-
* Date in ISO format. Timestamp in firestore.
|
|
61
|
-
*/
|
|
62
56
|
createdAt: string;
|
|
57
|
+
deletedAt?: string;
|
|
63
58
|
};
|
package/package.json
CHANGED