wedance-shared 1.0.17 → 1.0.19
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/event.d.ts +1 -0
- 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 +20 -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/event.ts +1 -0
- package/src/festivals/festival.ts +83 -0
- package/src/festivals/user.ts +25 -0
- package/src/index.ts +2 -0
package/README.md
CHANGED
package/dist/event.d.ts
CHANGED
|
@@ -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,20 @@
|
|
|
1
|
+
import { Timestamp } from "@react-native-firebase/firestore";
|
|
2
|
+
import { Role } from "../user";
|
|
3
|
+
export type FestivalUser = {
|
|
4
|
+
id: string;
|
|
5
|
+
email: string;
|
|
6
|
+
displayName: string;
|
|
7
|
+
profilePicture?: string;
|
|
8
|
+
favoriteFestivals: string[];
|
|
9
|
+
role: Role;
|
|
10
|
+
basedIn?: string;
|
|
11
|
+
createdAt: Timestamp;
|
|
12
|
+
lastUpdated: Timestamp;
|
|
13
|
+
lastConnected: Timestamp;
|
|
14
|
+
fcmTokens?: string[];
|
|
15
|
+
appVersion: string;
|
|
16
|
+
deviceModel: string;
|
|
17
|
+
platform: string;
|
|
18
|
+
emailVerified: boolean;
|
|
19
|
+
stripeId?: string;
|
|
20
|
+
};
|
|
@@ -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/event.ts
CHANGED
|
@@ -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,25 @@
|
|
|
1
|
+
import { Timestamp } from "@react-native-firebase/firestore";
|
|
2
|
+
import { Role } from "../user";
|
|
3
|
+
|
|
4
|
+
export type FestivalUser = {
|
|
5
|
+
id: string;
|
|
6
|
+
email: string;
|
|
7
|
+
displayName: string;
|
|
8
|
+
profilePicture?: string;
|
|
9
|
+
favoriteFestivals: string[];
|
|
10
|
+
role: Role;
|
|
11
|
+
|
|
12
|
+
// User can set a city, a country or whatever they want to be called
|
|
13
|
+
basedIn?: string;
|
|
14
|
+
|
|
15
|
+
createdAt: Timestamp;
|
|
16
|
+
lastUpdated: Timestamp;
|
|
17
|
+
lastConnected: Timestamp;
|
|
18
|
+
|
|
19
|
+
fcmTokens?: string[];
|
|
20
|
+
appVersion: string;
|
|
21
|
+
deviceModel: string;
|
|
22
|
+
platform: string;
|
|
23
|
+
emailVerified: boolean;
|
|
24
|
+
stripeId?: string;
|
|
25
|
+
};
|