wedance-shared 1.0.59 → 1.0.61

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.
@@ -1,13 +1,8 @@
1
1
  import { Timestamp } from "firebase/firestore";
2
2
  import { City } from "./city.js";
3
- import { OrganizerName } from "./organizer.js";
4
3
  import { EventTicket } from "./ticket.js";
5
4
  import { UserBadge } from "./user.js";
6
5
  export type DanceTag = "salsa" | "kizomba" | "bachata" | "zouk" | "tango" | "heels" | "hiphop" | "reggaeton" | "other";
7
- export type Organizer = {
8
- name: OrganizerName;
9
- email?: string;
10
- };
11
6
  export type Links = {
12
7
  paymentLink?: string;
13
8
  instagram?: string;
@@ -36,7 +31,6 @@ export type EventData = {
36
31
  until: string;
37
32
  price: number;
38
33
  priceProvided: boolean;
39
- organizer: Organizer;
40
34
  organizerId: string;
41
35
  description: string;
42
36
  location: Location;
@@ -3,7 +3,6 @@ import { City } from "./city.js";
3
3
  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" | "Salsa Borealis" | "Helsinki Dance Central" | "Urbankiz Helsinki" | "S-Dance" | "Helsinki Kizomba Studio" | "idance Helsinki" | "Dance Social" | "Tinku Latin Flavours" | "Latin Garden Helsinki" | "Tampere Social Dancing" | "Azúcar" | "Kizomba Social Tampere" | "KizLab Tampere" | "Bachata & Kizomba Oulu" | "SALSA Klubi" | "Tanssikoulu Vamos" | "Feels Oulu" | "Bachata Sensual Lovers" | "Tanssikoulu Matleena" | "Merja Tanjunen" | "Fever Dance Oslo" | "Pure Dance Official" | "Dancecity" | "Bachata Monthly" | "Salsakompaniet" | "Bachata Studio Tallinn" | "Casa De Baile" | "Havana Moderna" | "Crazy Lion Events" | "Other";
4
4
  export type OrganizerData = {
5
5
  id: string;
6
- name: OrganizerName;
7
6
  email?: string;
8
7
  website?: string;
9
8
  facebook?: string;
@@ -24,7 +23,7 @@ export type OrganizerData = {
24
23
  lastUpdated: string;
25
24
  createdAt: string;
26
25
  isFlagged: boolean;
27
- status?: "active" | "suspended" | "archived";
26
+ status: "active" | "suspended" | "archived" | "inactive";
28
27
  /**
29
28
  * From 0 to 5. 0 is the highest priority.
30
29
  */
@@ -1,7 +1,7 @@
1
1
  export type Language = {
2
2
  code: LanguageCode;
3
3
  };
4
- export type LanguageCode = "en-gb" | "fi";
4
+ export type LanguageCode = "en-gb" | "fi" | "et";
5
5
  export type DayPoll = {
6
6
  [eventId: string]: string[];
7
7
  other: string[];
@@ -73,7 +73,10 @@ export type CouponCode = {
73
73
  };
74
74
  export type EventTicket = {
75
75
  id: string;
76
- price: number;
76
+ /**
77
+ * ID of the ticket from an external system
78
+ */
79
+ externalEventTicketId: string | null | undefined;
77
80
  price_details: MonetaryAmount;
78
81
  eventId: string;
79
82
  quantity: number;
@@ -94,6 +97,8 @@ export type EventTicket = {
94
97
  isTransferable: boolean;
95
98
  isRefundable: boolean;
96
99
  status: EventTicketStatus;
100
+ createdAt: string;
101
+ updatedAt: string;
97
102
  /**
98
103
  * Promotional period for the ticket
99
104
  */
@@ -101,7 +106,11 @@ export type EventTicket = {
101
106
  /**
102
107
  * @deprecated Replaced by name
103
108
  */
104
- ticketType: string;
109
+ ticketType?: string;
110
+ /**
111
+ * @deprecated Replaced by price_details
112
+ */
113
+ price?: number;
105
114
  };
106
115
  export type EventTicketStatus = "published" | "draft" | "sold-out" | "unavailable";
107
116
  export type PromotionalPeriod = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.59",
3
+ "version": "1.0.61",
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",