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.
@@ -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?: OrganizerData;
52
- coOrganizers?: OrganizerData[] | null;
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?: OrganizerData;
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;
@@ -35,6 +35,7 @@ export type Poll = {
35
35
  createdAt: string;
36
36
  updatedAt: string;
37
37
  status: "draft" | "published" | "archived";
38
+ cities: string[];
38
39
  };
39
40
  /**
40
41
  * Answer value per question type:
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.162",
3
+ "version": "1.0.164",
4
4
  "description": "This repository contains shared TypeScript types and interfaces used across multiple WeDance applications:",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",