wedance-shared 1.0.164 → 1.0.166
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 +2 -2
- package/dist/types/pass.d.ts +5 -1
- package/dist/types/ticket.d.ts +7 -0
- package/package.json +1 -1
package/dist/types/event.d.ts
CHANGED
|
@@ -2,7 +2,7 @@ import { Timestamp } from "firebase/firestore";
|
|
|
2
2
|
import { City } from "./city.js";
|
|
3
3
|
import { EventTicket } from "./ticket.js";
|
|
4
4
|
import { UserBadge } from "./user.js";
|
|
5
|
-
import {
|
|
5
|
+
import { OrganizerSummary } from "wedance-shared";
|
|
6
6
|
export type DanceTag = "salsa" | "kizomba" | "bachata" | "zouk" | "tango" | "heels" | "hiphop" | "reggaeton" | "other";
|
|
7
7
|
export type Links = {
|
|
8
8
|
paymentLink?: string;
|
|
@@ -188,5 +188,5 @@ export type FeaturedEvent = {
|
|
|
188
188
|
createdAt: string;
|
|
189
189
|
updatedAt: string;
|
|
190
190
|
event?: Pick<EventData, "id" | "title" | "imageData" | "from" | "until">;
|
|
191
|
-
organizer?:
|
|
191
|
+
organizer?: OrganizerSummary;
|
|
192
192
|
};
|
package/dist/types/pass.d.ts
CHANGED
|
@@ -1,10 +1,14 @@
|
|
|
1
|
-
import { MonetaryAmount, ProductType } from "./ticket.js";
|
|
1
|
+
import { MonetaryAmount, ProductType, TicketTypeSummary } from "./ticket.js";
|
|
2
2
|
export interface Pass {
|
|
3
3
|
id: string;
|
|
4
4
|
userId: string;
|
|
5
5
|
originalOwnerId: string;
|
|
6
6
|
organizerId: string;
|
|
7
7
|
ticketTypeId: string;
|
|
8
|
+
/**
|
|
9
|
+
* Always populated by the server with a join. Not a column on the passes table.
|
|
10
|
+
*/
|
|
11
|
+
ticketType: TicketTypeSummary;
|
|
8
12
|
seriesId: string | null;
|
|
9
13
|
checkoutSessionId: string | null;
|
|
10
14
|
paymentId: string | null;
|
package/dist/types/ticket.d.ts
CHANGED
|
@@ -215,6 +215,13 @@ export type TicketType = EventTicketType | DropInTicketType | PassTicketType | M
|
|
|
215
215
|
*/
|
|
216
216
|
export type EventTicket = EventTicketType;
|
|
217
217
|
export type ProductType = "event" | "drop_in" | "pass" | "membership" | "course";
|
|
218
|
+
/**
|
|
219
|
+
* Lightweight ticket-type projection for joins (e.g. on a Pass) where the full
|
|
220
|
+
* {@link TicketType} is not needed.
|
|
221
|
+
*/
|
|
222
|
+
export type TicketTypeSummary = Pick<TicketTypeBase, "id" | "name" | "price_details" | "organizerId"> & {
|
|
223
|
+
productType: ProductType;
|
|
224
|
+
};
|
|
218
225
|
export type EventTicketStatus = "published" | "draft" | "sold-out" | "unavailable";
|
|
219
226
|
export type PromotionalPeriod = {
|
|
220
227
|
/**
|
package/package.json
CHANGED