zwift-data 1.8.1 → 1.9.0

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/lib/cjs/worlds.js CHANGED
@@ -10,6 +10,7 @@ exports.worlds = [
10
10
  [-11.62597, 166.87747],
11
11
  [-11.70255, 167.03255],
12
12
  ],
13
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_Watopia.png",
13
14
  },
14
15
  {
15
16
  id: 2,
@@ -19,6 +20,7 @@ exports.worlds = [
19
20
  [37.5774, -77.48954],
20
21
  [37.5014, -77.394],
21
22
  ],
23
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_Richmond.png",
22
24
  },
23
25
  {
24
26
  id: 3,
@@ -28,6 +30,7 @@ exports.worlds = [
28
30
  [51.5362, -0.1776],
29
31
  [51.4601, -0.0555],
30
32
  ],
33
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_London.png",
31
34
  },
32
35
  {
33
36
  id: 4,
@@ -37,6 +40,7 @@ exports.worlds = [
37
40
  [40.81725, -74.0227],
38
41
  [40.74085, -73.9222],
39
42
  ],
43
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_NewYork.png",
40
44
  },
41
45
  {
42
46
  id: 5,
@@ -46,6 +50,7 @@ exports.worlds = [
46
50
  [47.2947, 11.3501],
47
51
  [47.2055, 11.4822],
48
52
  ],
53
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_Innsbruck.png",
49
54
  },
50
55
  {
51
56
  id: 6,
@@ -55,6 +60,7 @@ exports.worlds = [
55
60
  [44.5308037, 11.26261748],
56
61
  [44.45463821, 11.36991729102076],
57
62
  ],
63
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_Bologna.png",
58
64
  },
59
65
  {
60
66
  id: 7,
@@ -64,6 +70,7 @@ exports.worlds = [
64
70
  [54.0254, -1.632],
65
71
  [53.9491, -1.5022],
66
72
  ],
73
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_Yorkshire.png",
67
74
  },
68
75
  {
69
76
  id: 8,
@@ -73,6 +80,7 @@ exports.worlds = [
73
80
  [-10.3657, 165.7824],
74
81
  [-10.4038, 165.8207],
75
82
  ],
83
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_CritCity.png",
76
84
  },
77
85
  {
78
86
  id: 10,
@@ -82,6 +90,7 @@ exports.worlds = [
82
90
  [-21.64155, 166.1384],
83
91
  [-21.7564, 166.26125],
84
92
  ],
93
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_France.png",
85
94
  },
86
95
  {
87
96
  id: 11,
@@ -91,6 +100,7 @@ exports.worlds = [
91
100
  [48.9058, 2.2561],
92
101
  [48.82945, 2.3722],
93
102
  ],
103
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_Champs.png",
94
104
  },
95
105
  {
96
106
  id: 12,
@@ -100,5 +110,6 @@ exports.worlds = [
100
110
  [-10.73746, 165.80468],
101
111
  [-10.81405, 165.88222],
102
112
  ],
113
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_Japan.png",
103
114
  },
104
115
  ];
package/lib/esm/worlds.js CHANGED
@@ -7,6 +7,7 @@ export const worlds = [
7
7
  [-11.62597, 166.87747],
8
8
  [-11.70255, 167.03255],
9
9
  ],
10
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_Watopia.png",
10
11
  },
11
12
  {
12
13
  id: 2,
@@ -16,6 +17,7 @@ export const worlds = [
16
17
  [37.5774, -77.48954],
17
18
  [37.5014, -77.394],
18
19
  ],
20
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_Richmond.png",
19
21
  },
20
22
  {
21
23
  id: 3,
@@ -25,6 +27,7 @@ export const worlds = [
25
27
  [51.5362, -0.1776],
26
28
  [51.4601, -0.0555],
27
29
  ],
30
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_London.png",
28
31
  },
29
32
  {
30
33
  id: 4,
@@ -34,6 +37,7 @@ export const worlds = [
34
37
  [40.81725, -74.0227],
35
38
  [40.74085, -73.9222],
36
39
  ],
40
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_NewYork.png",
37
41
  },
38
42
  {
39
43
  id: 5,
@@ -43,6 +47,7 @@ export const worlds = [
43
47
  [47.2947, 11.3501],
44
48
  [47.2055, 11.4822],
45
49
  ],
50
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_Innsbruck.png",
46
51
  },
47
52
  {
48
53
  id: 6,
@@ -52,6 +57,7 @@ export const worlds = [
52
57
  [44.5308037, 11.26261748],
53
58
  [44.45463821, 11.36991729102076],
54
59
  ],
60
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_Bologna.png",
55
61
  },
56
62
  {
57
63
  id: 7,
@@ -61,6 +67,7 @@ export const worlds = [
61
67
  [54.0254, -1.632],
62
68
  [53.9491, -1.5022],
63
69
  ],
70
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_Yorkshire.png",
64
71
  },
65
72
  {
66
73
  id: 8,
@@ -70,6 +77,7 @@ export const worlds = [
70
77
  [-10.3657, 165.7824],
71
78
  [-10.4038, 165.8207],
72
79
  ],
80
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_CritCity.png",
73
81
  },
74
82
  {
75
83
  id: 10,
@@ -79,6 +87,7 @@ export const worlds = [
79
87
  [-21.64155, 166.1384],
80
88
  [-21.7564, 166.26125],
81
89
  ],
90
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_France.png",
82
91
  },
83
92
  {
84
93
  id: 11,
@@ -88,6 +97,7 @@ export const worlds = [
88
97
  [48.9058, 2.2561],
89
98
  [48.82945, 2.3722],
90
99
  ],
100
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_Champs.png",
91
101
  },
92
102
  {
93
103
  id: 12,
@@ -97,5 +107,6 @@ export const worlds = [
97
107
  [-10.73746, 165.80468],
98
108
  [-10.81405, 165.88222],
99
109
  ],
110
+ imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_Japan.png",
100
111
  },
101
112
  ];
@@ -1,2 +1,2 @@
1
1
  import { Achievements } from "./types";
2
- export declare const achievements: Achievements[];
2
+ export declare const achievements: ReadonlyArray<Achievements>;
@@ -1,2 +1,2 @@
1
1
  import { BikeFrame } from "./types";
2
- export declare const bikeFrames: BikeFrame[];
2
+ export declare const bikeFrames: ReadonlyArray<BikeFrame>;
@@ -1,2 +1,2 @@
1
1
  import { BikeFrontWheel } from "./types";
2
- export declare const bikeFrontWheels: BikeFrontWheel[];
2
+ export declare const bikeFrontWheels: ReadonlyArray<BikeFrontWheel>;
@@ -1,2 +1,2 @@
1
1
  import { BikeRearWheel } from "./types";
2
- export declare const bikeRearWheels: BikeRearWheel[];
2
+ export declare const bikeRearWheels: ReadonlyArray<BikeRearWheel>;
@@ -1,2 +1,2 @@
1
1
  import { BikeShoe } from "./types";
2
- export declare const bikeShoes: BikeShoe[];
2
+ export declare const bikeShoes: ReadonlyArray<BikeShoe>;
@@ -1,2 +1,2 @@
1
1
  import { Challenge } from "./types";
2
- export declare const challenges: Challenge[];
2
+ export declare const challenges: ReadonlyArray<Challenge>;
@@ -1,2 +1,2 @@
1
1
  import { Glass } from "./types";
2
- export declare const glasses: Glass[];
2
+ export declare const glasses: ReadonlyArray<Glass>;
@@ -1,2 +1,2 @@
1
1
  import { Headgear } from "./types";
2
- export declare const headgears: Headgear[];
2
+ export declare const headgears: ReadonlyArray<Headgear>;
@@ -1,2 +1,2 @@
1
1
  import { Jersey } from "./types";
2
- export declare const jerseys: Jersey[];
2
+ export declare const jerseys: ReadonlyArray<Jersey>;
@@ -1,2 +1,2 @@
1
1
  import { NotableMomentType } from "./types";
2
- export declare const notableMomentTypes: NotableMomentType[];
2
+ export declare const notableMomentTypes: ReadonlyArray<NotableMomentType>;
@@ -1,2 +1,2 @@
1
1
  import { PaintJob } from "./types";
2
- export declare const paintJobs: PaintJob[];
2
+ export declare const paintJobs: ReadonlyArray<PaintJob>;
@@ -1,2 +1,2 @@
1
1
  import { Route } from "./types";
2
- export declare const routes: Route[];
2
+ export declare const routes: ReadonlyArray<Route>;
@@ -1,2 +1,2 @@
1
1
  import { RunShirt } from "./types";
2
- export declare const runShirts: RunShirt[];
2
+ export declare const runShirts: ReadonlyArray<RunShirt>;
@@ -1,2 +1,2 @@
1
1
  import { RunShoe } from "./types";
2
- export declare const runShoes: RunShoe[];
2
+ export declare const runShoes: ReadonlyArray<RunShoe>;
@@ -1,2 +1,2 @@
1
1
  import { RunShort } from "./types";
2
- export declare const runShorts: RunShort[];
2
+ export declare const runShorts: ReadonlyArray<RunShort>;
@@ -1,2 +1,2 @@
1
1
  import { Sock } from "./types";
2
- export declare const socks: Sock[];
2
+ export declare const socks: ReadonlyArray<Sock>;
@@ -1,2 +1,2 @@
1
1
  import { TrainingPlan } from "./types";
2
- export declare const trainingPlans: TrainingPlan[];
2
+ export declare const trainingPlans: ReadonlyArray<TrainingPlan>;
@@ -24,6 +24,10 @@ export interface World {
24
24
  longitude: number
25
25
  ]
26
26
  ];
27
+ /**
28
+ * URL to the image of the world
29
+ */
30
+ imageUrl: string;
27
31
  }
28
32
  export declare type WorldSlug = "bologna" | "crit-city" | "france" | "innsbruck" | "london" | "paris" | "makuri-islands" | "new-york" | "richmond" | "watopia" | "yorkshire";
29
33
  export interface Route {
@@ -82,7 +86,7 @@ export interface Route {
82
86
  /**
83
87
  * Official segments on the route sorted by appearance. Segments are listed multiple times if they are ridden multiple times.
84
88
  */
85
- segments: string[];
89
+ segments: ReadonlyArray<string>;
86
90
  /**
87
91
  * Id of the corresponding strava segment
88
92
  */
@@ -102,7 +106,7 @@ export interface Route {
102
106
  /**
103
107
  * Types of sport that can complete this route
104
108
  */
105
- sports: Sport[];
109
+ sports: ReadonlyArray<Sport>;
106
110
  /**
107
111
  * `true`, if the route can not be selected in the start screen and can only be ridden in events
108
112
  */
@@ -1,2 +1,2 @@
1
1
  import { UnlockableCategory } from "./types";
2
- export declare const unlockableCategories: UnlockableCategory[];
2
+ export declare const unlockableCategories: ReadonlyArray<UnlockableCategory>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "zwift-data",
3
- "version": "1.8.1",
3
+ "version": "1.9.0",
4
4
  "description": "Data about Zwift worlds, routes and segments",
5
5
  "main": "./lib/cjs/index.js",
6
6
  "module": "./lib/esm/index.js",