wedance-shared 1.0.16 → 1.0.18
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/README.md +1 -0
- package/dist/analytics.d.ts +1 -1
- package/dist/event.d.ts +6 -3
- package/dist/festivals/festival.d.ts +60 -0
- package/dist/festivals/festival.js +2 -0
- package/dist/festivals/festival.js.map +1 -0
- package/dist/festivals/user.d.ts +19 -0
- package/dist/festivals/user.js +2 -0
- package/dist/festivals/user.js.map +1 -0
- package/dist/index.d.ts +2 -0
- package/dist/index.js +2 -0
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
- package/src/analytics.ts +1 -1
- package/src/event.ts +6 -3
- package/src/festivals/festival.ts +83 -0
- package/src/festivals/user.ts +20 -0
- package/src/index.ts +2 -0
package/README.md
CHANGED
package/dist/analytics.d.ts
CHANGED
package/dist/event.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Timestamp } from "@react-native-firebase/firestore";
|
|
1
2
|
import { City } from "./city";
|
|
2
3
|
import { OrganizerName } from "./organizer";
|
|
3
4
|
import { EventTicket } from "./ticket";
|
|
@@ -11,6 +12,7 @@ export type Links = {
|
|
|
11
12
|
instagram?: string;
|
|
12
13
|
facebook?: string;
|
|
13
14
|
website?: string;
|
|
15
|
+
other?: string;
|
|
14
16
|
};
|
|
15
17
|
export type Location = {
|
|
16
18
|
name: string;
|
|
@@ -109,7 +111,8 @@ export type Featured = {
|
|
|
109
111
|
/**
|
|
110
112
|
* When this promotion was created (ISO date string)
|
|
111
113
|
*/
|
|
112
|
-
createdAt:
|
|
114
|
+
createdAt: Timestamp;
|
|
115
|
+
updatedAt: Timestamp;
|
|
113
116
|
/**
|
|
114
117
|
* Whether the promotion is currently active
|
|
115
118
|
*/
|
|
@@ -118,7 +121,7 @@ export type Featured = {
|
|
|
118
121
|
* Date range of the promotion
|
|
119
122
|
*/
|
|
120
123
|
dateRange: {
|
|
121
|
-
startDate:
|
|
122
|
-
endDate:
|
|
124
|
+
startDate: Timestamp;
|
|
125
|
+
endDate: Timestamp;
|
|
123
126
|
};
|
|
124
127
|
};
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Timestamp } from "@react-native-firebase/firestore";
|
|
2
|
+
import { Links } from "../event";
|
|
3
|
+
/**
|
|
4
|
+
* This is the type of the data we get from the server
|
|
5
|
+
* */
|
|
6
|
+
export type FestivalData = {
|
|
7
|
+
id: string;
|
|
8
|
+
title: string;
|
|
9
|
+
from: Timestamp;
|
|
10
|
+
until: Timestamp;
|
|
11
|
+
organizerId: string;
|
|
12
|
+
description: string;
|
|
13
|
+
location: FestivalLocation[];
|
|
14
|
+
genre?: FestivalGenre[];
|
|
15
|
+
tags?: string[];
|
|
16
|
+
imageData: FestivalImageData;
|
|
17
|
+
countryCode: string;
|
|
18
|
+
region: Region[];
|
|
19
|
+
priceRange?: {
|
|
20
|
+
min: number;
|
|
21
|
+
max: number;
|
|
22
|
+
currency: string;
|
|
23
|
+
};
|
|
24
|
+
createdAt: Timestamp;
|
|
25
|
+
updatedAt: Timestamp;
|
|
26
|
+
createdBy: string;
|
|
27
|
+
updatedBy: string;
|
|
28
|
+
links: Links;
|
|
29
|
+
isFree: boolean;
|
|
30
|
+
artists: FestivalArtist[];
|
|
31
|
+
};
|
|
32
|
+
type FestivalGenre = "salsa" | "bachata" | "kizomba" | "zouk";
|
|
33
|
+
type FestivalImageData = {
|
|
34
|
+
url: string;
|
|
35
|
+
alt?: string;
|
|
36
|
+
blurhash?: string;
|
|
37
|
+
};
|
|
38
|
+
type FestivalLocation = {
|
|
39
|
+
id?: string;
|
|
40
|
+
city: string;
|
|
41
|
+
countryCode: string;
|
|
42
|
+
address?: string;
|
|
43
|
+
venue?: string;
|
|
44
|
+
geoLocation?: {
|
|
45
|
+
lat: number;
|
|
46
|
+
lng: number;
|
|
47
|
+
};
|
|
48
|
+
timeZone: string;
|
|
49
|
+
region?: Region[];
|
|
50
|
+
};
|
|
51
|
+
type FestivalArtist = {
|
|
52
|
+
id: string;
|
|
53
|
+
name: string;
|
|
54
|
+
image: string;
|
|
55
|
+
imageUrl: string;
|
|
56
|
+
role: FestivalArtistRole;
|
|
57
|
+
};
|
|
58
|
+
type FestivalArtistRole = "dj" | "dancer" | "mc" | "guest-dancer" | "organizer" | "media";
|
|
59
|
+
type Region = "Nordics" | "Baltics" | "Western Europe" | "Eastern Europe" | "Southern Europe" | "Central Europe" | "Asia" | "Africa";
|
|
60
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"festival.js","sourceRoot":"","sources":["../../src/festivals/festival.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Role } from "../user";
|
|
2
|
+
export type FestivalUser = {
|
|
3
|
+
id: string;
|
|
4
|
+
email: string;
|
|
5
|
+
displayName: string;
|
|
6
|
+
createdAt: string;
|
|
7
|
+
profilePicture?: string;
|
|
8
|
+
lastUpdated?: string;
|
|
9
|
+
lastConnected?: string;
|
|
10
|
+
savedEvents: string[];
|
|
11
|
+
goingEvents: string[];
|
|
12
|
+
role: Role;
|
|
13
|
+
fcmTokens?: string[];
|
|
14
|
+
appVersion?: string;
|
|
15
|
+
deviceModel?: string;
|
|
16
|
+
platform?: string;
|
|
17
|
+
emailVerified: boolean;
|
|
18
|
+
stripeId?: string;
|
|
19
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"user.js","sourceRoot":"","sources":["../../src/festivals/user.ts"],"names":[],"mappings":""}
|
package/dist/index.d.ts
CHANGED
package/dist/index.js
CHANGED
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,UAAU,CAAC;AACzB,cAAc,QAAQ,CAAC;AACvB,cAAc,QAAQ,CAAC;AACvB,cAAc,SAAS,CAAC;AACxB,cAAc,aAAa,CAAC;AAC5B,cAAc,sBAAsB,CAAC;AACrC,cAAc,kBAAkB,CAAC"}
|
package/package.json
CHANGED
package/src/analytics.ts
CHANGED
package/src/event.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { Timestamp } from "@react-native-firebase/firestore";
|
|
1
2
|
import { City } from "./city";
|
|
2
3
|
import { OrganizerName } from "./organizer";
|
|
3
4
|
import { EventTicket } from "./ticket";
|
|
@@ -14,6 +15,7 @@ export type Links = {
|
|
|
14
15
|
instagram?: string;
|
|
15
16
|
facebook?: string;
|
|
16
17
|
website?: string;
|
|
18
|
+
other?: string;
|
|
17
19
|
};
|
|
18
20
|
|
|
19
21
|
export type Location = {
|
|
@@ -125,7 +127,8 @@ export type Featured = {
|
|
|
125
127
|
/**
|
|
126
128
|
* When this promotion was created (ISO date string)
|
|
127
129
|
*/
|
|
128
|
-
createdAt:
|
|
130
|
+
createdAt: Timestamp;
|
|
131
|
+
updatedAt: Timestamp;
|
|
129
132
|
/**
|
|
130
133
|
* Whether the promotion is currently active
|
|
131
134
|
*/
|
|
@@ -134,7 +137,7 @@ export type Featured = {
|
|
|
134
137
|
* Date range of the promotion
|
|
135
138
|
*/
|
|
136
139
|
dateRange: {
|
|
137
|
-
startDate:
|
|
138
|
-
endDate:
|
|
140
|
+
startDate: Timestamp;
|
|
141
|
+
endDate: Timestamp;
|
|
139
142
|
};
|
|
140
143
|
};
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
import { Timestamp } from "@react-native-firebase/firestore";
|
|
2
|
+
import { Links } from "../event";
|
|
3
|
+
import { DanceTag } from "wedance-shared";
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* This is the type of the data we get from the server
|
|
7
|
+
* */
|
|
8
|
+
export type FestivalData = {
|
|
9
|
+
id: string;
|
|
10
|
+
title: string;
|
|
11
|
+
from: Timestamp;
|
|
12
|
+
until: Timestamp;
|
|
13
|
+
organizerId: string;
|
|
14
|
+
description: string;
|
|
15
|
+
location: FestivalLocation[];
|
|
16
|
+
|
|
17
|
+
genre?: FestivalGenre[]; // ["salsa", "bachata"]
|
|
18
|
+
tags?: string[]; // Helps with filtering (e.g., ["music", "art", "food"])
|
|
19
|
+
|
|
20
|
+
imageData: FestivalImageData;
|
|
21
|
+
|
|
22
|
+
countryCode: string; // ISO 3166-1 Alpha-2 (e.g., "SE", "FI", "EE")
|
|
23
|
+
region: Region[]; // e.g., ["Nordics"], ["Baltics"], ["Europe"]
|
|
24
|
+
|
|
25
|
+
priceRange?: { min: number; max: number; currency: string };
|
|
26
|
+
|
|
27
|
+
createdAt: Timestamp;
|
|
28
|
+
updatedAt: Timestamp;
|
|
29
|
+
|
|
30
|
+
createdBy: string;
|
|
31
|
+
updatedBy: string;
|
|
32
|
+
|
|
33
|
+
links: Links;
|
|
34
|
+
|
|
35
|
+
isFree: boolean;
|
|
36
|
+
|
|
37
|
+
artists: FestivalArtist[];
|
|
38
|
+
};
|
|
39
|
+
|
|
40
|
+
type FestivalGenre = "salsa" | "bachata" | "kizomba" | "zouk";
|
|
41
|
+
|
|
42
|
+
type FestivalImageData = {
|
|
43
|
+
url: string;
|
|
44
|
+
alt?: string;
|
|
45
|
+
blurhash?: string;
|
|
46
|
+
};
|
|
47
|
+
|
|
48
|
+
type FestivalLocation = {
|
|
49
|
+
id?: string; // Firestore auto-generates if not provided
|
|
50
|
+
city: string; // e.g., "Stockholm"
|
|
51
|
+
countryCode: string; // ISO 3166-1 (e.g., "SE" for Sweden)
|
|
52
|
+
address?: string; // Optional detailed address (e.g., "Arenavägen 75")
|
|
53
|
+
venue?: string; // Optional (e.g., "Avicii Arena")
|
|
54
|
+
geoLocation?: { lat: number; lng: number }; // For maps
|
|
55
|
+
timeZone: string; // e.g., "Europe/Stockholm"
|
|
56
|
+
region?: Region[]; // e.g., "Nordics", "Baltics"
|
|
57
|
+
};
|
|
58
|
+
|
|
59
|
+
type FestivalArtist = {
|
|
60
|
+
id: string;
|
|
61
|
+
name: string;
|
|
62
|
+
image: string;
|
|
63
|
+
imageUrl: string;
|
|
64
|
+
role: FestivalArtistRole;
|
|
65
|
+
};
|
|
66
|
+
|
|
67
|
+
type FestivalArtistRole =
|
|
68
|
+
| "dj"
|
|
69
|
+
| "dancer"
|
|
70
|
+
| "mc"
|
|
71
|
+
| "guest-dancer"
|
|
72
|
+
| "organizer"
|
|
73
|
+
| "media";
|
|
74
|
+
|
|
75
|
+
type Region =
|
|
76
|
+
| "Nordics"
|
|
77
|
+
| "Baltics"
|
|
78
|
+
| "Western Europe"
|
|
79
|
+
| "Eastern Europe"
|
|
80
|
+
| "Southern Europe"
|
|
81
|
+
| "Central Europe"
|
|
82
|
+
| "Asia"
|
|
83
|
+
| "Africa";
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { Role } from "../user";
|
|
2
|
+
|
|
3
|
+
export type FestivalUser = {
|
|
4
|
+
id: string;
|
|
5
|
+
email: string;
|
|
6
|
+
displayName: string;
|
|
7
|
+
createdAt: string;
|
|
8
|
+
profilePicture?: string;
|
|
9
|
+
lastUpdated?: string;
|
|
10
|
+
lastConnected?: string;
|
|
11
|
+
savedEvents: string[];
|
|
12
|
+
goingEvents: string[];
|
|
13
|
+
role: Role;
|
|
14
|
+
fcmTokens?: string[];
|
|
15
|
+
appVersion?: string;
|
|
16
|
+
deviceModel?: string;
|
|
17
|
+
platform?: string;
|
|
18
|
+
emailVerified: boolean;
|
|
19
|
+
stripeId?: string;
|
|
20
|
+
};
|