wedance-shared 1.0.66 → 1.0.68
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.
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import { Timestamp } from "firebase/firestore";
|
|
2
2
|
import { Links } from "../event.js";
|
|
3
|
-
import { EventTicket } from "../ticket.js";
|
|
4
3
|
/**
|
|
5
4
|
* This is the type of the data we get from the server
|
|
6
5
|
* */
|
|
@@ -19,15 +18,13 @@ export type FestivalData = {
|
|
|
19
18
|
min: number;
|
|
20
19
|
max: number;
|
|
21
20
|
currency: string;
|
|
22
|
-
};
|
|
23
|
-
createdAt: Timestamp;
|
|
24
|
-
updatedAt: Timestamp;
|
|
21
|
+
} | null;
|
|
22
|
+
createdAt: Timestamp | string;
|
|
23
|
+
updatedAt: Timestamp | string;
|
|
25
24
|
createdBy: string;
|
|
26
25
|
updatedBy: string;
|
|
27
26
|
links: Links;
|
|
28
|
-
isFree: boolean;
|
|
29
27
|
artists: FestivalArtist[];
|
|
30
|
-
tickets?: EventTicket[];
|
|
31
28
|
};
|
|
32
29
|
type FestivalGenre = "salsa" | "bachata" | "kizomba" | "zouk";
|
|
33
30
|
type FestivalImageData = {
|
|
@@ -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: Timestamp;
|
|
21
|
-
lastUpdated: Timestamp;
|
|
22
|
-
lastConnected: Timestamp;
|
|
19
|
+
createdAt: Timestamp | string;
|
|
20
|
+
lastUpdated: Timestamp | string;
|
|
21
|
+
lastConnected: Timestamp | 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/dist/types/ticket.d.ts
CHANGED
|
@@ -45,6 +45,10 @@ export type Ticket = {
|
|
|
45
45
|
refundedAt?: string;
|
|
46
46
|
createdAt: Timestamp;
|
|
47
47
|
updatedAt: Timestamp;
|
|
48
|
+
couple?: {
|
|
49
|
+
isCoupleTicket: boolean;
|
|
50
|
+
partnerFullName?: string;
|
|
51
|
+
} | null;
|
|
48
52
|
/**
|
|
49
53
|
* @deprecated Replaced by originalOwnerId
|
|
50
54
|
*/
|
|
@@ -99,6 +103,10 @@ export type EventTicket = {
|
|
|
99
103
|
status: EventTicketStatus;
|
|
100
104
|
createdAt: string;
|
|
101
105
|
updatedAt: string;
|
|
106
|
+
couple?: {
|
|
107
|
+
isCoupleTicket: boolean;
|
|
108
|
+
requirePartnerFullName: boolean;
|
|
109
|
+
} | null;
|
|
102
110
|
/**
|
|
103
111
|
* Promotional period for the ticket
|
|
104
112
|
*/
|
package/package.json
CHANGED