wedance-shared 1.0.58 → 1.0.59

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"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wedance-shared",
3
- "version": "1.0.58",
3
+ "version": "1.0.59",
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",