wedance-shared 1.0.60 → 1.0.62
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/event.d.ts +9 -6
- package/dist/types/organizer.d.ts +10 -13
- package/dist/types/other.d.ts +1 -1
- package/package.json +1 -1
package/dist/types/event.d.ts
CHANGED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import { Timestamp } from "firebase/firestore";
|
|
2
2
|
import { City } from "./city.js";
|
|
3
|
-
import { OrganizerName } from "./organizer.js";
|
|
4
3
|
import { EventTicket } from "./ticket.js";
|
|
5
4
|
import { UserBadge } from "./user.js";
|
|
5
|
+
import { OrganizerData } from "wedance-shared";
|
|
6
6
|
export type DanceTag = "salsa" | "kizomba" | "bachata" | "zouk" | "tango" | "heels" | "hiphop" | "reggaeton" | "other";
|
|
7
|
-
export type Organizer = {
|
|
8
|
-
name: OrganizerName;
|
|
9
|
-
email?: string;
|
|
10
|
-
};
|
|
11
7
|
export type Links = {
|
|
12
8
|
paymentLink?: string;
|
|
13
9
|
instagram?: string;
|
|
@@ -36,8 +32,11 @@ export type EventData = {
|
|
|
36
32
|
until: string;
|
|
37
33
|
price: number;
|
|
38
34
|
priceProvided: boolean;
|
|
39
|
-
organizer: Organizer;
|
|
40
35
|
organizerId: string;
|
|
36
|
+
/**
|
|
37
|
+
* Organizer data is set in client side
|
|
38
|
+
*/
|
|
39
|
+
organizer?: OrganizerData;
|
|
41
40
|
description: string;
|
|
42
41
|
location: Location;
|
|
43
42
|
duration?: number;
|
|
@@ -139,5 +138,9 @@ export type Featured = {
|
|
|
139
138
|
endDate: Timestamp;
|
|
140
139
|
};
|
|
141
140
|
organizerId: string;
|
|
141
|
+
/**
|
|
142
|
+
* Organizer data is set in client side
|
|
143
|
+
*/
|
|
144
|
+
organizer?: OrganizerData;
|
|
142
145
|
};
|
|
143
146
|
export type PromotionStatus = "draft" | "pending_payment" | "payment_failed" | "scheduled" | "paused" | "cancelled";
|
|
@@ -3,7 +3,7 @@ import { City } from "./city.js";
|
|
|
3
3
|
export type OrganizerName = "SOB Productions" | "Helsinki SBK" | "Avec Dance Club" | "Still Dancing" | "Tanssikoulu SalsaLatina" | "Helsinki Salsa Academy" | "BabaGen" | "Bachata Studio" | "Tanssikoulu BailaBaila" | "Petra & Otso" | "Bachata Helsinki" | "Salsa Borealis" | "Helsinki Dance Central" | "Urbankiz Helsinki" | "S-Dance" | "Helsinki Kizomba Studio" | "idance Helsinki" | "Dance Social" | "Tinku Latin Flavours" | "Latin Garden Helsinki" | "Tampere Social Dancing" | "Azúcar" | "Kizomba Social Tampere" | "KizLab Tampere" | "Bachata & Kizomba Oulu" | "SALSA Klubi" | "Tanssikoulu Vamos" | "Feels Oulu" | "Bachata Sensual Lovers" | "Tanssikoulu Matleena" | "Merja Tanjunen" | "Fever Dance Oslo" | "Pure Dance Official" | "Dancecity" | "Bachata Monthly" | "Salsakompaniet" | "Bachata Studio Tallinn" | "Casa De Baile" | "Havana Moderna" | "Crazy Lion Events" | "Other";
|
|
4
4
|
export type OrganizerData = {
|
|
5
5
|
id: string;
|
|
6
|
-
name:
|
|
6
|
+
name: string;
|
|
7
7
|
email?: string;
|
|
8
8
|
website?: string;
|
|
9
9
|
facebook?: string;
|
|
@@ -41,19 +41,16 @@ export type UserOrganizerFollow = {
|
|
|
41
41
|
follow: boolean;
|
|
42
42
|
lastUpdated: Timestamp;
|
|
43
43
|
};
|
|
44
|
-
export type
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
createdAt: Timestamp;
|
|
49
|
-
going: boolean;
|
|
50
|
-
lastUpdated: Timestamp;
|
|
51
|
-
};
|
|
52
|
-
export type UserSavedEvents = {
|
|
44
|
+
export type UserEventRelation = {
|
|
45
|
+
/**
|
|
46
|
+
* Id format is `${userId}_${eventId}_${type}`
|
|
47
|
+
*/
|
|
53
48
|
id: string;
|
|
54
49
|
userId: string;
|
|
55
50
|
eventId: string;
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
51
|
+
type: "going" | "saved";
|
|
52
|
+
/**
|
|
53
|
+
* Date in ISO format. Timestamp in firestore.
|
|
54
|
+
*/
|
|
55
|
+
createdAt: string;
|
|
59
56
|
};
|
package/dist/types/other.d.ts
CHANGED
package/package.json
CHANGED