wedance-shared 1.0.58 → 1.0.60

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,24 +1,26 @@
1
- type CityData = {
2
- city: "helsinki";
3
- country: "fi";
4
- coordinates: [60.1695, 24.9354];
5
- } | {
6
- city: "tampere";
7
- country: "fi";
8
- coordinates: [61.4978, 23.761];
9
- } | {
10
- city: "oulu";
11
- country: "fi";
12
- coordinates: [65.012, 25.468];
13
- };
14
- export declare const LIST_CITIES: CityData[];
15
- export type City = CityData;
16
- export type CityName = CityData["city"];
17
- export type CountryCode = CityData["country"];
1
+ export declare const LIST_CITIES: readonly [{
2
+ readonly city: "helsinki";
3
+ readonly country: "fi";
4
+ readonly coordinates: readonly [60.1695, 24.9354];
5
+ }, {
6
+ readonly city: "tampere";
7
+ readonly country: "fi";
8
+ readonly coordinates: readonly [61.4978, 23.761];
9
+ }, {
10
+ readonly city: "oulu";
11
+ readonly country: "fi";
12
+ readonly coordinates: readonly [65.012, 25.468];
13
+ }, {
14
+ readonly city: "tallinn";
15
+ readonly country: "ee";
16
+ readonly coordinates: readonly [59.437, 24.7536];
17
+ }];
18
+ export type City = (typeof LIST_CITIES)[number];
19
+ export type CityName = City["city"];
20
+ export type CountryCode = City["country"];
18
21
  export declare enum Timezone {
19
22
  FINLAND = "Europe/Helsinki",
20
23
  DENMARK = "Europe/Copenhagen",
21
24
  SWEDEN = "Europe/Stockholm",
22
25
  NORWAY = "Europe/Oslo"
23
26
  }
24
- export {};
@@ -1,18 +1,3 @@
1
- // | {
2
- // city: "oslo";
3
- // country: "no";
4
- // coordinates: [59.9139, 10.7522];
5
- // }
6
- // | {
7
- // city: "tallinn";
8
- // country: "ee";
9
- // coordinates: [59.437, 24.7536];
10
- // }
11
- // | {
12
- // city: "copenhagen";
13
- // country: "dk";
14
- // coordinates: [55.6761, 12.5683];
15
- // };
16
1
  export const LIST_CITIES = [
17
2
  {
18
3
  city: "helsinki",
@@ -28,6 +13,11 @@ export const LIST_CITIES = [
28
13
  city: "oulu",
29
14
  country: "fi",
30
15
  coordinates: [65.012, 25.468]
16
+ },
17
+ {
18
+ city: "tallinn",
19
+ country: "ee",
20
+ coordinates: [59.437, 24.7536]
31
21
  }
32
22
  // {
33
23
  // city: "oslo",
@@ -39,11 +29,6 @@ export const LIST_CITIES = [
39
29
  // country: 'se',
40
30
  // },
41
31
  // {
42
- // city: "tallinn",
43
- // country: "ee",
44
- // coordinates: [59.437, 24.7536]
45
- // },
46
- // {
47
32
  // city: "copenhagen",
48
33
  // country: "dk",
49
34
  // coordinates: [55.6761, 12.5683]
@@ -1 +1 @@
1
- {"version":3,"file":"city.js","sourceRoot":"","sources":["../../src/types/city.ts"],"names":[],"mappings":"AAgBA,MAAM;AACN,oBAAoB;AACpB,qBAAqB;AACrB,uCAAuC;AACvC,MAAM;AACN,MAAM;AACN,uBAAuB;AACvB,qBAAqB;AACrB,sCAAsC;AACtC,MAAM;AACN,MAAM;AACN,0BAA0B;AAC1B,qBAAqB;AACrB,uCAAuC;AACvC,OAAO;AAEP,MAAM,CAAC,MAAM,WAAW,GAAe;IACrC;QACE,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;KAChC;IACD;QACE,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;KAC/B;IACD;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KAC9B;IACD,IAAI;IACJ,kBAAkB;IAClB,mBAAmB;IACnB,oCAAoC;IACpC,KAAK;IACL,IAAI;IACJ,uBAAuB;IACvB,mBAAmB;IACnB,KAAK;IACL,IAAI;IACJ,qBAAqB;IACrB,mBAAmB;IACnB,mCAAmC;IACnC,KAAK;IACL,IAAI;IACJ,wBAAwB;IACxB,mBAAmB;IACnB,oCAAoC;IACpC,KAAK;CACN,CAAC;AAMF,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,uCAA2B,CAAA;IAC3B,yCAA6B,CAAA;IAC7B,uCAA2B,CAAA;IAC3B,kCAAsB,CAAA;AACxB,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB"}
1
+ {"version":3,"file":"city.js","sourceRoot":"","sources":["../../src/types/city.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,MAAM,WAAW,GAAG;IACzB;QACE,IAAI,EAAE,UAAU;QAChB,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,OAAO,EAAE,OAAO,CAAC;KAChC;IACD;QACE,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,OAAO,EAAE,MAAM,CAAC;KAC/B;IACD;QACE,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,MAAM,EAAE,MAAM,CAAC;KAC9B;IACD;QACE,IAAI,EAAE,SAAS;QACf,OAAO,EAAE,IAAI;QACb,WAAW,EAAE,CAAC,MAAM,EAAE,OAAO,CAAC;KAC/B;IACD,IAAI;IACJ,kBAAkB;IAClB,mBAAmB;IACnB,oCAAoC;IACpC,KAAK;IACL,IAAI;IACJ,uBAAuB;IACvB,mBAAmB;IACnB,KAAK;IACL,IAAI;IACJ,wBAAwB;IACxB,mBAAmB;IACnB,oCAAoC;IACpC,KAAK;CACG,CAAC;AAMX,MAAM,CAAN,IAAY,QAKX;AALD,WAAY,QAAQ;IAClB,uCAA2B,CAAA;IAC3B,yCAA6B,CAAA;IAC7B,uCAA2B,CAAA;IAC3B,kCAAsB,CAAA;AACxB,CAAC,EALW,QAAQ,KAAR,QAAQ,QAKnB"}
@@ -24,7 +24,7 @@ export type OrganizerData = {
24
24
  lastUpdated: string;
25
25
  createdAt: string;
26
26
  isFlagged: boolean;
27
- status?: "active" | "suspended" | "archived";
27
+ status: "active" | "suspended" | "archived" | "inactive";
28
28
  /**
29
29
  * From 0 to 5. 0 is the highest priority.
30
30
  */
@@ -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.58",
3
+ "version": "1.0.60",
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",