wedance-shared 1.0.162 → 1.0.164
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
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 { OrganizerData } from "wedance-shared";
|
|
5
|
+
import { OrganizerData, 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;
|
|
@@ -48,8 +48,8 @@ export type EventData = {
|
|
|
48
48
|
/**
|
|
49
49
|
* Organizer data is set in client side
|
|
50
50
|
*/
|
|
51
|
-
organizer
|
|
52
|
-
coOrganizers?:
|
|
51
|
+
organizer: OrganizerSummary;
|
|
52
|
+
coOrganizers?: OrganizerSummary[] | null;
|
|
53
53
|
description: string;
|
|
54
54
|
location: Location;
|
|
55
55
|
duration?: number;
|
|
@@ -170,7 +170,7 @@ export type Featured = {
|
|
|
170
170
|
/**
|
|
171
171
|
* Organizer data is set in client side
|
|
172
172
|
*/
|
|
173
|
-
organizer
|
|
173
|
+
organizer: OrganizerSummary;
|
|
174
174
|
};
|
|
175
175
|
export type PromotionStatus = "draft" | "pending_payment" | "payment_failed" | "scheduled" | "paused" | "cancelled";
|
|
176
176
|
export type FeaturedEvent = {
|
|
@@ -63,6 +63,11 @@ export type OrganizerData = {
|
|
|
63
63
|
/** ISO-3166 alpha-2, e.g. "FI". */
|
|
64
64
|
addressCountryCode?: string | null;
|
|
65
65
|
};
|
|
66
|
+
/**
|
|
67
|
+
* Lightweight organizer projection with the public info needed
|
|
68
|
+
* when an organizer is attached to an event.
|
|
69
|
+
*/
|
|
70
|
+
export type OrganizerSummary = Pick<OrganizerData, "id" | "oldId" | "name" | "logoUrl" | "city">;
|
|
66
71
|
export type OrganizerCapabilities = {
|
|
67
72
|
ticketing: boolean;
|
|
68
73
|
promotions: boolean;
|
package/dist/types/poll.d.ts
CHANGED
package/package.json
CHANGED