wedance-shared 1.0.40 → 1.0.42
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 +8 -1
- package/dist/types/organizer.d.ts +5 -0
- package/dist/types/ticket.d.ts +2 -1
- package/package.json +1 -1
- package/src/types/event.ts +18 -1
- package/src/types/organizer.ts +7 -0
- package/src/types/ticket.ts +3 -3
package/dist/types/event.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { City } from "./city.js";
|
|
|
3
3
|
import { OrganizerName } from "./organizer.js";
|
|
4
4
|
import { EventTicket } from "./ticket.js";
|
|
5
5
|
import { UserBadge } from "./user.js";
|
|
6
|
-
export type DanceTag = "salsa" | "kizomba" | "bachata" | "zouk";
|
|
6
|
+
export type DanceTag = "salsa" | "kizomba" | "bachata" | "zouk" | "tango" | "heels" | "hiphop" | "reggaeton" | "other";
|
|
7
7
|
export type Organizer = {
|
|
8
8
|
name: OrganizerName;
|
|
9
9
|
email?: string;
|
|
@@ -65,9 +65,16 @@ export type EventData = {
|
|
|
65
65
|
going: UserBadge[] | null;
|
|
66
66
|
interested: UserBadge[] | null;
|
|
67
67
|
imageData: ImageData;
|
|
68
|
+
eventType: EventType;
|
|
68
69
|
eventTickets?: EventTicket[] | null;
|
|
69
70
|
lineup?: LineUpArtist[] | null;
|
|
70
71
|
};
|
|
72
|
+
/**
|
|
73
|
+
* Workshop: Only workshop
|
|
74
|
+
* Social: Only social and possible pre-party class
|
|
75
|
+
* Workshop-and-social: Workshop and social when more than one workshop.
|
|
76
|
+
*/
|
|
77
|
+
export type EventType = "workshop" | "social" | "workshop-and-social";
|
|
71
78
|
export type EventCellType = "workshop" | "social" | "break" | "other";
|
|
72
79
|
export type ScheduleItem = {
|
|
73
80
|
id: string;
|
package/dist/types/ticket.d.ts
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Timestamp } from "firebase/firestore";
|
|
2
|
-
export type TicketStatus = "Confirmed" | "
|
|
2
|
+
export type TicketStatus = "Confirmed" | "Void" | "Refunded" | "Expired" | "Used";
|
|
3
3
|
export type Ticket = {
|
|
4
4
|
/**
|
|
5
5
|
* ID of the ticket
|
|
@@ -75,6 +75,7 @@ export type EventTicket = {
|
|
|
75
75
|
price_details: MonetaryAmount;
|
|
76
76
|
eventId: string;
|
|
77
77
|
quantity: number;
|
|
78
|
+
hideQuantity: boolean;
|
|
78
79
|
amountSold: number;
|
|
79
80
|
coupons: CouponCode[] | null;
|
|
80
81
|
name: string;
|
package/package.json
CHANGED
package/src/types/event.ts
CHANGED
|
@@ -4,7 +4,16 @@ import { OrganizerName } from "./organizer.js";
|
|
|
4
4
|
import { EventTicket } from "./ticket.js";
|
|
5
5
|
import { UserBadge } from "./user.js";
|
|
6
6
|
|
|
7
|
-
export type DanceTag =
|
|
7
|
+
export type DanceTag =
|
|
8
|
+
| "salsa"
|
|
9
|
+
| "kizomba"
|
|
10
|
+
| "bachata"
|
|
11
|
+
| "zouk"
|
|
12
|
+
| "tango"
|
|
13
|
+
| "heels"
|
|
14
|
+
| "hiphop"
|
|
15
|
+
| "reggaeton"
|
|
16
|
+
| "other";
|
|
8
17
|
|
|
9
18
|
export type Organizer = {
|
|
10
19
|
name: OrganizerName;
|
|
@@ -78,10 +87,18 @@ export type EventData = {
|
|
|
78
87
|
going: UserBadge[] | null;
|
|
79
88
|
interested: UserBadge[] | null;
|
|
80
89
|
imageData: ImageData;
|
|
90
|
+
eventType: EventType;
|
|
81
91
|
eventTickets?: EventTicket[] | null;
|
|
82
92
|
lineup?: LineUpArtist[] | null;
|
|
83
93
|
};
|
|
84
94
|
|
|
95
|
+
/**
|
|
96
|
+
* Workshop: Only workshop
|
|
97
|
+
* Social: Only social and possible pre-party class
|
|
98
|
+
* Workshop-and-social: Workshop and social when more than one workshop.
|
|
99
|
+
*/
|
|
100
|
+
export type EventType = "workshop" | "social" | "workshop-and-social";
|
|
101
|
+
|
|
85
102
|
export type EventCellType = "workshop" | "social" | "break" | "other";
|
|
86
103
|
|
|
87
104
|
export type ScheduleItem = {
|
package/src/types/organizer.ts
CHANGED
|
@@ -68,4 +68,11 @@ export type OrganizerData = {
|
|
|
68
68
|
lastUpdated: string;
|
|
69
69
|
createdAt: string;
|
|
70
70
|
isFlagged: boolean;
|
|
71
|
+
/**
|
|
72
|
+
* From 0 to 5. 0 is the highest priority.
|
|
73
|
+
*/
|
|
74
|
+
priority: number;
|
|
75
|
+
|
|
76
|
+
// Stripe for connected accounts
|
|
77
|
+
stripeAccountId?: string | null;
|
|
71
78
|
};
|
package/src/types/ticket.ts
CHANGED
|
@@ -2,11 +2,10 @@ import { Timestamp } from "firebase/firestore";
|
|
|
2
2
|
|
|
3
3
|
export type TicketStatus =
|
|
4
4
|
| "Confirmed"
|
|
5
|
-
| "
|
|
5
|
+
| "Void"
|
|
6
6
|
| "Refunded"
|
|
7
7
|
| "Expired"
|
|
8
|
-
| "Used"
|
|
9
|
-
| "Transferred";
|
|
8
|
+
| "Used";
|
|
10
9
|
|
|
11
10
|
export type Ticket = {
|
|
12
11
|
/**
|
|
@@ -86,6 +85,7 @@ export type EventTicket = {
|
|
|
86
85
|
price_details: MonetaryAmount;
|
|
87
86
|
eventId: string;
|
|
88
87
|
quantity: number;
|
|
88
|
+
hideQuantity: boolean;
|
|
89
89
|
amountSold: number;
|
|
90
90
|
coupons: CouponCode[] | null;
|
|
91
91
|
name: string;
|