wedance-shared 1.0.63 → 1.0.65
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/city.d.ts +8 -0
- package/dist/types/city.js +10 -4
- package/dist/types/city.js.map +1 -1
- package/dist/types/event.d.ts +1 -0
- package/dist/types/organizer.d.ts +7 -0
- package/dist/types/other.d.ts +4 -2
- package/dist/types/user.d.ts +2 -0
- package/package.json +1 -1
package/dist/types/city.d.ts
CHANGED
|
@@ -14,6 +14,14 @@ export declare const LIST_CITIES: readonly [{
|
|
|
14
14
|
readonly city: "tallinn";
|
|
15
15
|
readonly country: "ee";
|
|
16
16
|
readonly coordinates: readonly [59.437, 24.7536];
|
|
17
|
+
}, {
|
|
18
|
+
readonly city: "stockholm";
|
|
19
|
+
readonly country: "se";
|
|
20
|
+
readonly coordinates: readonly [59.3327, 18.0656];
|
|
21
|
+
}, {
|
|
22
|
+
readonly city: "paris";
|
|
23
|
+
readonly country: "fr";
|
|
24
|
+
readonly coordinates: readonly [48.8575, 2.3514];
|
|
17
25
|
}];
|
|
18
26
|
export type City = (typeof LIST_CITIES)[number];
|
|
19
27
|
export type CityName = City["city"];
|
package/dist/types/city.js
CHANGED
|
@@ -18,6 +18,16 @@ export const LIST_CITIES = [
|
|
|
18
18
|
city: "tallinn",
|
|
19
19
|
country: "ee",
|
|
20
20
|
coordinates: [59.437, 24.7536]
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
city: "stockholm",
|
|
24
|
+
country: "se",
|
|
25
|
+
coordinates: [59.3327, 18.0656]
|
|
26
|
+
},
|
|
27
|
+
{
|
|
28
|
+
city: "paris",
|
|
29
|
+
country: "fr",
|
|
30
|
+
coordinates: [48.8575, 2.3514]
|
|
21
31
|
}
|
|
22
32
|
// {
|
|
23
33
|
// city: "oslo",
|
|
@@ -25,10 +35,6 @@ export const LIST_CITIES = [
|
|
|
25
35
|
// coordinates: [59.9139, 10.7522]
|
|
26
36
|
// },
|
|
27
37
|
// {
|
|
28
|
-
// city: 'stockholm',
|
|
29
|
-
// country: 'se',
|
|
30
|
-
// },
|
|
31
|
-
// {
|
|
32
38
|
// city: "copenhagen",
|
|
33
39
|
// country: "dk",
|
|
34
40
|
// coordinates: [55.6761, 12.5683]
|
package/dist/types/city.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"city.js","sourceRoot":"","sources":["../../src/types/city.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB;QACE,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;KAChC;IACD;QACE,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;KAC/B;IACD;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KAC9B;IACD;QACE,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;KAC/B;IACD,IAAI;
|
|
1
|
+
{"version":3,"file":"city.js","sourceRoot":"","sources":["../../src/types/city.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB;QACE,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;KAChC;IACD;QACE,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;KAC/B;IACD;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KAC9B;IACD;QACE,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;KAC/B;IACD;QACE,IAAI,EAAE,WAAW;QACjB,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;KAChC;IACD;QACE,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;KAC/B;IACD,IAAI;IACJ,kBAAkB;IAClB,mBAAmB;IACnB,oCAAoC;IACpC,KAAK;IACL,IAAI;IACJ,wBAAwB;IACxB,mBAAmB;IACnB,oCAAoC;IACpC,KAAK;CACG,CAAC;AAMX,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,uCAA2B,CAAA;IAC3B,yCAA6B,CAAA;IAC7B,uCAA2B,CAAA;IAC3B,kCAAsB,CAAA;AACxB,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB"}
|
package/dist/types/event.d.ts
CHANGED
|
@@ -25,6 +25,7 @@ export type OrganizerData = {
|
|
|
25
25
|
createdAt: string;
|
|
26
26
|
isFlagged: boolean;
|
|
27
27
|
status: "active" | "suspended" | "archived" | "inactive";
|
|
28
|
+
capabilities: OrganizerCapabilities;
|
|
28
29
|
/**
|
|
29
30
|
* From 0 to 5. 0 is the highest priority.
|
|
30
31
|
*/
|
|
@@ -33,6 +34,12 @@ export type OrganizerData = {
|
|
|
33
34
|
eventsCount?: number;
|
|
34
35
|
stripeAccountId?: string | null;
|
|
35
36
|
};
|
|
37
|
+
export type OrganizerCapabilities = {
|
|
38
|
+
ticketing: boolean;
|
|
39
|
+
promotions: boolean;
|
|
40
|
+
pushNotifications: boolean;
|
|
41
|
+
analytics: boolean;
|
|
42
|
+
};
|
|
36
43
|
export type UserOrganizerFollow = {
|
|
37
44
|
id: string;
|
|
38
45
|
userId: string;
|
package/dist/types/other.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
export type Language = {
|
|
2
2
|
code: LanguageCode;
|
|
3
3
|
};
|
|
4
|
-
export type LanguageCode = "en-gb" | "fi" | "et";
|
|
4
|
+
export type LanguageCode = "en-gb" | "fi" | "et" | "fr" | "sv";
|
|
5
5
|
export type DayPoll = {
|
|
6
6
|
[eventId: string]: string[];
|
|
7
7
|
other: string[];
|
|
@@ -13,7 +13,9 @@ export type WeekendPoll = {
|
|
|
13
13
|
saturday: DayPoll;
|
|
14
14
|
};
|
|
15
15
|
export type FeatureFlags = {
|
|
16
|
-
|
|
16
|
+
tallinn: boolean;
|
|
17
|
+
stockholm: boolean;
|
|
18
|
+
paris: boolean;
|
|
17
19
|
};
|
|
18
20
|
export type RemoteConfigMessageType = {
|
|
19
21
|
severity: "info" | "warning";
|
package/dist/types/user.d.ts
CHANGED
|
@@ -2,6 +2,7 @@ import { City } from "./city.js";
|
|
|
2
2
|
import { DanceTag } from "./event.js";
|
|
3
3
|
import { OrganizerName } from "./organizer.js";
|
|
4
4
|
import { Ticket } from "./ticket.js";
|
|
5
|
+
import { LanguageCode } from "./other.js";
|
|
5
6
|
export type Role = "admin" | "manager" | "organiser" | "user" | "checkin";
|
|
6
7
|
export type User = {
|
|
7
8
|
id: string;
|
|
@@ -21,6 +22,7 @@ export type User = {
|
|
|
21
22
|
role: Role;
|
|
22
23
|
city: City | null;
|
|
23
24
|
favoriteDance?: DanceTag;
|
|
25
|
+
language: LanguageCode;
|
|
24
26
|
fcmTokens?: string[];
|
|
25
27
|
notificationPreferences?: NotificationPreferences;
|
|
26
28
|
appVersion?: string;
|
package/package.json
CHANGED