wedance-shared 1.0.11 → 1.0.13
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/city.d.ts +4 -0
- package/dist/city.js +10 -5
- package/dist/city.js.map +1 -1
- package/dist/event.d.ts +41 -0
- package/dist/organizer.d.ts +1 -1
- package/dist/ticket.d.ts +2 -3
- package/package.json +1 -1
- package/src/city.ts +16 -6
- package/src/event.ts +42 -0
- package/src/organizer.ts +7 -0
- package/src/ticket.ts +2 -3
package/dist/city.d.ts
CHANGED
|
@@ -18,6 +18,10 @@ type CityData = {
|
|
|
18
18
|
city: "copenhagen";
|
|
19
19
|
country: "dk";
|
|
20
20
|
coordinates: [55.6761, 12.5683];
|
|
21
|
+
} | {
|
|
22
|
+
city: "oulu";
|
|
23
|
+
country: "fi";
|
|
24
|
+
coordinates: [65.012, 25.468];
|
|
21
25
|
};
|
|
22
26
|
export declare const LIST_CITIES: CityData[];
|
|
23
27
|
export type City = CityData;
|
package/dist/city.js
CHANGED
|
@@ -2,17 +2,17 @@ export const LIST_CITIES = [
|
|
|
2
2
|
{
|
|
3
3
|
city: "helsinki",
|
|
4
4
|
country: "fi",
|
|
5
|
-
coordinates: [60.1695, 24.9354]
|
|
5
|
+
coordinates: [60.1695, 24.9354]
|
|
6
6
|
},
|
|
7
7
|
{
|
|
8
8
|
city: "tampere",
|
|
9
9
|
country: "fi",
|
|
10
|
-
coordinates: [61.4978, 23.761]
|
|
10
|
+
coordinates: [61.4978, 23.761]
|
|
11
11
|
},
|
|
12
12
|
{
|
|
13
13
|
city: "oslo",
|
|
14
14
|
country: "no",
|
|
15
|
-
coordinates: [59.9139, 10.7522]
|
|
15
|
+
coordinates: [59.9139, 10.7522]
|
|
16
16
|
},
|
|
17
17
|
// {
|
|
18
18
|
// city: 'stockholm',
|
|
@@ -21,13 +21,18 @@ export const LIST_CITIES = [
|
|
|
21
21
|
{
|
|
22
22
|
city: "tallinn",
|
|
23
23
|
country: "ee",
|
|
24
|
-
coordinates: [59.437, 24.7536]
|
|
24
|
+
coordinates: [59.437, 24.7536]
|
|
25
25
|
},
|
|
26
26
|
{
|
|
27
27
|
city: "copenhagen",
|
|
28
28
|
country: "dk",
|
|
29
|
-
coordinates: [55.6761, 12.5683]
|
|
29
|
+
coordinates: [55.6761, 12.5683]
|
|
30
30
|
},
|
|
31
|
+
{
|
|
32
|
+
city: "oulu",
|
|
33
|
+
country: "fi",
|
|
34
|
+
coordinates: [65.012, 25.468]
|
|
35
|
+
}
|
|
31
36
|
];
|
|
32
37
|
export var Timezone;
|
|
33
38
|
(function (Timezone) {
|
package/dist/city.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"city.js","sourceRoot":"","sources":["../src/city.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"city.js","sourceRoot":"","sources":["../src/city.ts"],"names":[],"mappings":"AAgCA,MAAM,CAAC,MAAM,WAAW,GAAe;IACrC;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,OAAO,EAAE,OAAO,CAAC;KAChC;IACD,IAAI;IACJ,uBAAuB;IACvB,mBAAmB;IACnB,KAAK;IACL;QACE,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;KAC/B;IACD;QACE,IAAI,EAAE,YAAY;QAClB,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;KAChC;IACD;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KAC9B;CACF,CAAC;AAMF,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/event.d.ts
CHANGED
|
@@ -81,3 +81,44 @@ export type LineUpArtist = {
|
|
|
81
81
|
image: string;
|
|
82
82
|
imageUrl: string;
|
|
83
83
|
};
|
|
84
|
+
export type Featured = {
|
|
85
|
+
/**
|
|
86
|
+
* ID of the promotion
|
|
87
|
+
*/
|
|
88
|
+
id: string;
|
|
89
|
+
/**
|
|
90
|
+
* ID of the event being promoted
|
|
91
|
+
*/
|
|
92
|
+
eventId: string;
|
|
93
|
+
/**
|
|
94
|
+
* Cities where this promotion should be shown
|
|
95
|
+
*/
|
|
96
|
+
cities: City["city"][];
|
|
97
|
+
/**
|
|
98
|
+
* Priority level for displaying multiple featured events (higher = more prominent)
|
|
99
|
+
*/
|
|
100
|
+
priority: number;
|
|
101
|
+
/**
|
|
102
|
+
* Optional custom promotion message
|
|
103
|
+
*/
|
|
104
|
+
promotionalText?: string;
|
|
105
|
+
/**
|
|
106
|
+
* Who created this promotion
|
|
107
|
+
*/
|
|
108
|
+
createdBy: string;
|
|
109
|
+
/**
|
|
110
|
+
* When this promotion was created (ISO date string)
|
|
111
|
+
*/
|
|
112
|
+
createdAt: string;
|
|
113
|
+
/**
|
|
114
|
+
* Whether the promotion is currently active
|
|
115
|
+
*/
|
|
116
|
+
isActive: boolean;
|
|
117
|
+
/**
|
|
118
|
+
* Date range of the promotion
|
|
119
|
+
*/
|
|
120
|
+
dateRange: {
|
|
121
|
+
startDate: string;
|
|
122
|
+
endDate: string;
|
|
123
|
+
};
|
|
124
|
+
};
|
package/dist/organizer.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { City } from "./city";
|
|
2
|
-
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" | "Anton Kargaltsev" | "Salsa Borealis" | "Helsinki Dance Central" | "Ted's Kizomba" | "Urbankiz Helsinki" | "Azembora" | "S-Dance" | "Helsinki Kizomba Studio" | "idance Helsinki" | "Tampere Social Dance" | "Azúcar" | "DJ Pies Locos" | "Kizomba Social Tampere" | "Fever Dance Oslo" | "Pure Dance Official" | "Dancecity" | "Bachata Monthly" | "Salsakompaniet" | "Bachata Studio Tallinn" | "Casa De Baile" | "Havana Moderna" | "Other";
|
|
2
|
+
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" | "Anton Kargaltsev" | "Salsa Borealis" | "Helsinki Dance Central" | "Ted's Kizomba" | "Urbankiz Helsinki" | "Azembora" | "S-Dance" | "Helsinki Kizomba Studio" | "idance Helsinki" | "Tampere Social Dance" | "Azúcar" | "DJ Pies Locos" | "Kizomba Social Tampere" | "Bachata & Kizomba Oulu" | "SALSA Klubi" | "Tanssikoulu Vamos" | "Feels Oulu" | "Fever Dance Oslo" | "Pure Dance Official" | "Dancecity" | "Bachata Monthly" | "Salsakompaniet" | "Bachata Studio Tallinn" | "Casa De Baile" | "Havana Moderna" | "Other";
|
|
3
3
|
export type OrganizerData = {
|
|
4
4
|
id: string;
|
|
5
5
|
name: OrganizerName;
|
package/dist/ticket.d.ts
CHANGED
|
@@ -58,10 +58,9 @@ export type Payment = {
|
|
|
58
58
|
amount: number;
|
|
59
59
|
amount_capturable: number;
|
|
60
60
|
amount_details: {
|
|
61
|
-
tip:
|
|
62
|
-
amount_received: number;
|
|
63
|
-
};
|
|
61
|
+
tip: any;
|
|
64
62
|
};
|
|
63
|
+
amount_received: number;
|
|
65
64
|
application: string | null;
|
|
66
65
|
application_fee_amount: number | null;
|
|
67
66
|
automatic_payment_methods: {
|
package/package.json
CHANGED
package/src/city.ts
CHANGED
|
@@ -23,23 +23,28 @@ type CityData =
|
|
|
23
23
|
city: "copenhagen";
|
|
24
24
|
country: "dk";
|
|
25
25
|
coordinates: [55.6761, 12.5683];
|
|
26
|
+
}
|
|
27
|
+
| {
|
|
28
|
+
city: "oulu";
|
|
29
|
+
country: "fi";
|
|
30
|
+
coordinates: [65.012, 25.468];
|
|
26
31
|
};
|
|
27
32
|
|
|
28
33
|
export const LIST_CITIES: CityData[] = [
|
|
29
34
|
{
|
|
30
35
|
city: "helsinki",
|
|
31
36
|
country: "fi",
|
|
32
|
-
coordinates: [60.1695, 24.9354]
|
|
37
|
+
coordinates: [60.1695, 24.9354]
|
|
33
38
|
},
|
|
34
39
|
{
|
|
35
40
|
city: "tampere",
|
|
36
41
|
country: "fi",
|
|
37
|
-
coordinates: [61.4978, 23.761]
|
|
42
|
+
coordinates: [61.4978, 23.761]
|
|
38
43
|
},
|
|
39
44
|
{
|
|
40
45
|
city: "oslo",
|
|
41
46
|
country: "no",
|
|
42
|
-
coordinates: [59.9139, 10.7522]
|
|
47
|
+
coordinates: [59.9139, 10.7522]
|
|
43
48
|
},
|
|
44
49
|
// {
|
|
45
50
|
// city: 'stockholm',
|
|
@@ -48,13 +53,18 @@ export const LIST_CITIES: CityData[] = [
|
|
|
48
53
|
{
|
|
49
54
|
city: "tallinn",
|
|
50
55
|
country: "ee",
|
|
51
|
-
coordinates: [59.437, 24.7536]
|
|
56
|
+
coordinates: [59.437, 24.7536]
|
|
52
57
|
},
|
|
53
58
|
{
|
|
54
59
|
city: "copenhagen",
|
|
55
60
|
country: "dk",
|
|
56
|
-
coordinates: [55.6761, 12.5683]
|
|
61
|
+
coordinates: [55.6761, 12.5683]
|
|
57
62
|
},
|
|
63
|
+
{
|
|
64
|
+
city: "oulu",
|
|
65
|
+
country: "fi",
|
|
66
|
+
coordinates: [65.012, 25.468]
|
|
67
|
+
}
|
|
58
68
|
];
|
|
59
69
|
|
|
60
70
|
export type City = CityData;
|
|
@@ -65,5 +75,5 @@ export enum Timezone {
|
|
|
65
75
|
FINLAND = "Europe/Helsinki",
|
|
66
76
|
DENMARK = "Europe/Copenhagen",
|
|
67
77
|
SWEDEN = "Europe/Stockholm",
|
|
68
|
-
NORWAY = "Europe/Oslo"
|
|
78
|
+
NORWAY = "Europe/Oslo"
|
|
69
79
|
}
|
package/src/event.ts
CHANGED
|
@@ -96,3 +96,45 @@ export type LineUpArtist = {
|
|
|
96
96
|
image: string;
|
|
97
97
|
imageUrl: string;
|
|
98
98
|
};
|
|
99
|
+
|
|
100
|
+
export type Featured = {
|
|
101
|
+
/**
|
|
102
|
+
* ID of the promotion
|
|
103
|
+
*/
|
|
104
|
+
id: string;
|
|
105
|
+
/**
|
|
106
|
+
* ID of the event being promoted
|
|
107
|
+
*/
|
|
108
|
+
eventId: string;
|
|
109
|
+
/**
|
|
110
|
+
* Cities where this promotion should be shown
|
|
111
|
+
*/
|
|
112
|
+
cities: City["city"][];
|
|
113
|
+
/**
|
|
114
|
+
* Priority level for displaying multiple featured events (higher = more prominent)
|
|
115
|
+
*/
|
|
116
|
+
priority: number;
|
|
117
|
+
/**
|
|
118
|
+
* Optional custom promotion message
|
|
119
|
+
*/
|
|
120
|
+
promotionalText?: string;
|
|
121
|
+
/**
|
|
122
|
+
* Who created this promotion
|
|
123
|
+
*/
|
|
124
|
+
createdBy: string;
|
|
125
|
+
/**
|
|
126
|
+
* When this promotion was created (ISO date string)
|
|
127
|
+
*/
|
|
128
|
+
createdAt: string;
|
|
129
|
+
/**
|
|
130
|
+
* Whether the promotion is currently active
|
|
131
|
+
*/
|
|
132
|
+
isActive: boolean;
|
|
133
|
+
/**
|
|
134
|
+
* Date range of the promotion
|
|
135
|
+
*/
|
|
136
|
+
dateRange: {
|
|
137
|
+
startDate: string;
|
|
138
|
+
endDate: string;
|
|
139
|
+
};
|
|
140
|
+
};
|
package/src/organizer.ts
CHANGED
|
@@ -27,6 +27,13 @@ export type OrganizerName =
|
|
|
27
27
|
| "Azúcar"
|
|
28
28
|
| "DJ Pies Locos"
|
|
29
29
|
| "Kizomba Social Tampere"
|
|
30
|
+
|
|
31
|
+
// OULU
|
|
32
|
+
| "Bachata & Kizomba Oulu"
|
|
33
|
+
| "SALSA Klubi"
|
|
34
|
+
| "Tanssikoulu Vamos"
|
|
35
|
+
| "Feels Oulu"
|
|
36
|
+
|
|
30
37
|
// OSLO
|
|
31
38
|
| "Fever Dance Oslo"
|
|
32
39
|
| "Pure Dance Official"
|
package/src/ticket.ts
CHANGED
|
@@ -69,10 +69,9 @@ export type Payment = {
|
|
|
69
69
|
amount: number;
|
|
70
70
|
amount_capturable: number;
|
|
71
71
|
amount_details: {
|
|
72
|
-
tip:
|
|
73
|
-
amount_received: number;
|
|
74
|
-
};
|
|
72
|
+
tip: any;
|
|
75
73
|
};
|
|
74
|
+
amount_received: number;
|
|
76
75
|
application: string | null;
|
|
77
76
|
application_fee_amount: number | null;
|
|
78
77
|
automatic_payment_methods: {
|