zwift-data 1.21.0 → 1.21.2
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/index.js +5 -1
- package/lib/cjs/jerseys.js +31 -1
- package/lib/cjs/routes.js +5 -5
- package/lib/cjs/runShirts.js +1 -1
- package/lib/cjs/runShorts.js +1 -1
- package/lib/cjs/worlds.js +2 -2
- package/lib/esm/jerseys.js +31 -1
- package/lib/esm/routes.js +5 -5
- package/lib/esm/runShirts.js +1 -1
- package/lib/esm/runShorts.js +1 -1
- package/lib/esm/worlds.js +2 -2
- package/lib/types/types.d.ts +3 -3
- package/package.json +17 -17
package/lib/cjs/index.js
CHANGED
|
@@ -1,7 +1,11 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
3
|
if (k2 === undefined) k2 = k;
|
|
4
|
-
Object.
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
5
9
|
}) : (function(o, m, k, k2) {
|
|
6
10
|
if (k2 === undefined) k2 = k;
|
|
7
11
|
o[k2] = m[k];
|
package/lib/cjs/jerseys.js
CHANGED
|
@@ -26,6 +26,11 @@ exports.jerseys = [
|
|
|
26
26
|
"SuperLeagueCommunity2021_thumb",
|
|
27
27
|
],
|
|
28
28
|
[121390527, "Tour Of Watopia", "TourOfWatopia2019_thumb"],
|
|
29
|
+
[
|
|
30
|
+
121442316,
|
|
31
|
+
"UCI Federation 2023 Hong Kong",
|
|
32
|
+
"UCIFederationHongKong2023_thumb",
|
|
33
|
+
],
|
|
29
34
|
[
|
|
30
35
|
122407386,
|
|
31
36
|
"Specialized Bicycledelics Kit",
|
|
@@ -46,6 +51,11 @@ exports.jerseys = [
|
|
|
46
51
|
"CastelliVirtualClimber_Light_thumb",
|
|
47
52
|
],
|
|
48
53
|
[173668358, "Colombia Elite", "ColombiaFederation2020_thumb"],
|
|
54
|
+
[
|
|
55
|
+
177191477,
|
|
56
|
+
"UCI Federation 2023 Argentina",
|
|
57
|
+
"UCIFederationArgentina2023_thumb",
|
|
58
|
+
],
|
|
49
59
|
[179248736, "Echelon-Cannondale-4iiii", "EchelonCannondale2021_thumb"],
|
|
50
60
|
[179750023, "Toyota", "Toyota2020_thumb"],
|
|
51
61
|
[
|
|
@@ -151,6 +161,11 @@ exports.jerseys = [
|
|
|
151
161
|
[605422273, "Power Up", "PowerUp2020_thumb"],
|
|
152
162
|
[608088435, "Garneau 2018", "Garneau2018_thumb"],
|
|
153
163
|
[608333324, "France Elite", "FrenchFederationElite2020_thumb"],
|
|
164
|
+
[
|
|
165
|
+
612633962,
|
|
166
|
+
"UCI Federation 2023 Colombia",
|
|
167
|
+
"UCIBlackFlagColombia2023_thumb",
|
|
168
|
+
],
|
|
154
169
|
[
|
|
155
170
|
614640035,
|
|
156
171
|
"Super League Tri Arena Games - Green Jersey",
|
|
@@ -259,6 +274,11 @@ exports.jerseys = [
|
|
|
259
274
|
[1022287351, "TIBCO-Silicon Valley Bank", "Tibco2020_thumb"],
|
|
260
275
|
[1025753934, "Fight ALS", "AndreGreipel2019_thumb"],
|
|
261
276
|
[1028356106, "AHDR Giant Bison", "AHDRGiantBison_thumb"],
|
|
277
|
+
[
|
|
278
|
+
1033566112,
|
|
279
|
+
"UCI Federation 2023 Czech Republic",
|
|
280
|
+
"UCIFederationCzechRepublic2023_thumb",
|
|
281
|
+
],
|
|
262
282
|
[1033576880, "Sub 8", "Sub82022_thumb"],
|
|
263
283
|
[1040478737, "2XU Cycling", "2XUCycling2021_thumb"],
|
|
264
284
|
[1055383332, "zFondo Mar 2021", "ZFondo2021Mar_thumb"],
|
|
@@ -274,7 +294,7 @@ exports.jerseys = [
|
|
|
274
294
|
[1088165651, "Collins Cup USA", "CollinsCupRed2020_thumb"],
|
|
275
295
|
[1092846644, "Zwift eFondo August", "Zwift_eFondo_Aug_thumb"],
|
|
276
296
|
[1097944869, "Computrainer", "Computrainer_thumb"],
|
|
277
|
-
[1106501889, "Scotland
|
|
297
|
+
[1106501889, "Scotland Jersey", "ScotlandKit2023_thumb"],
|
|
278
298
|
[1112024311, "UCI Federation 2023 Italy", "UCIFederationItaly2023_thumb"],
|
|
279
299
|
[1126295234, "Specialized F", "SpecializedDolmansSLPro_thumb"],
|
|
280
300
|
[1128201030, "Arkea", "ArkeaWomens2020_thumb"],
|
|
@@ -418,6 +438,11 @@ exports.jerseys = [
|
|
|
418
438
|
"SWE Cycling Member 2022",
|
|
419
439
|
"SwedenFederationSupport2022_thumb",
|
|
420
440
|
],
|
|
441
|
+
[
|
|
442
|
+
1769856110,
|
|
443
|
+
"UCI Federation 2023 Germany",
|
|
444
|
+
"UCIFederationGermany2023_thumb",
|
|
445
|
+
],
|
|
421
446
|
[1771577861, "Rapha Womens 100 2022", "RaphaWomens1002022_thumb"],
|
|
422
447
|
[1776034995, "Trek Segafredo Training", "TrekSegafredoTrain2022_thumb"],
|
|
423
448
|
[1801600368, "Tour de Zwift 2021 Kit", "TourDeZwift2021_thumb"],
|
|
@@ -549,6 +574,11 @@ exports.jerseys = [
|
|
|
549
574
|
[2411973716, "ZFondo February 2022", "ZFondo202202_thumb"],
|
|
550
575
|
[2414198484, "INEOS Energy Station", "INEOSEnergyStation2021_thumb"],
|
|
551
576
|
[2418675542, "JLT Condor", "JLT_Condor_thumb"],
|
|
577
|
+
[
|
|
578
|
+
2419799133,
|
|
579
|
+
"UCI Federation 2023 Slovenia",
|
|
580
|
+
"UCIBlackFlagSlovenia2023_thumb",
|
|
581
|
+
],
|
|
552
582
|
[2422367611, "Precision Fuel & Hydration", "Precision2022_thumb"],
|
|
553
583
|
[2422819298, "Eolo Kometa", "EoloKometa2021_thumb"],
|
|
554
584
|
[2426765558, "Black Sheep Man Ride", "BlackSheepManRide2019_thumb"],
|
package/lib/cjs/routes.js
CHANGED
|
@@ -1589,14 +1589,14 @@ exports.routes = [
|
|
|
1589
1589
|
"ocean-lava-cliffside-loop",
|
|
1590
1590
|
"watopia",
|
|
1591
1591
|
false,
|
|
1592
|
-
18.
|
|
1592
|
+
18.977,
|
|
1593
1593
|
156,
|
|
1594
1594
|
0.193,
|
|
1595
1595
|
0,
|
|
1596
|
-
|
|
1597
|
-
|
|
1598
|
-
|
|
1599
|
-
|
|
1596
|
+
0.124,
|
|
1597
|
+
0,
|
|
1598
|
+
0.124,
|
|
1599
|
+
0,
|
|
1600
1600
|
[],
|
|
1601
1601
|
[],
|
|
1602
1602
|
false,
|
package/lib/cjs/runShirts.js
CHANGED
|
@@ -75,7 +75,7 @@ exports.runShirts = [
|
|
|
75
75
|
"Super League Tri Arena Games - White Jersey",
|
|
76
76
|
"SLTRun2022white_thumb",
|
|
77
77
|
],
|
|
78
|
-
[1352916435, "Scotland
|
|
78
|
+
[1352916435, "Scotland Jersey", "Scotland2023_thumb"],
|
|
79
79
|
[1416964875, "Gosh", "Gosh2020_thumb"],
|
|
80
80
|
[1434311728, "Zwift Academy 2023", "ZARun2022_thumb"],
|
|
81
81
|
[1439027133, "Zwift Running Shirt 3", "Shirt03"],
|
package/lib/cjs/runShorts.js
CHANGED
|
@@ -36,7 +36,7 @@ exports.runShorts = [
|
|
|
36
36
|
[837111845, "Zwift Run Festival", "RunFestivalThumb"],
|
|
37
37
|
[844694699, "ZSun", "ZSunRun2022_thumb"],
|
|
38
38
|
[866715834, "ZRS Fall 2021 Shorts", "ZRS032021_thumb"],
|
|
39
|
-
[927838145, "Scotland
|
|
39
|
+
[927838145, "Scotland Jersey", "Scotland2023_thumb"],
|
|
40
40
|
[963884552, "MARATHON 20 PRIMEBLUE", "RFTO2021_thumb"],
|
|
41
41
|
[1073721685, "US Military Endurance Sports", "USMES2021_thumb"],
|
|
42
42
|
[1164162762, "Jan Frodeno Shorts", "JanFrodeno2019_thumb"],
|
package/lib/cjs/worlds.js
CHANGED
|
@@ -117,8 +117,8 @@ exports.worlds = [
|
|
|
117
117
|
name: "Scotland",
|
|
118
118
|
slug: "scotland",
|
|
119
119
|
bounds: [
|
|
120
|
-
[55.67595, -5.
|
|
121
|
-
[55.
|
|
120
|
+
[55.67595, -5.2802],
|
|
121
|
+
[55.61845, -5.17798],
|
|
122
122
|
],
|
|
123
123
|
imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_Scotland.png",
|
|
124
124
|
},
|
package/lib/esm/jerseys.js
CHANGED
|
@@ -23,6 +23,11 @@ export const jerseys = [
|
|
|
23
23
|
"SuperLeagueCommunity2021_thumb",
|
|
24
24
|
],
|
|
25
25
|
[121390527, "Tour Of Watopia", "TourOfWatopia2019_thumb"],
|
|
26
|
+
[
|
|
27
|
+
121442316,
|
|
28
|
+
"UCI Federation 2023 Hong Kong",
|
|
29
|
+
"UCIFederationHongKong2023_thumb",
|
|
30
|
+
],
|
|
26
31
|
[
|
|
27
32
|
122407386,
|
|
28
33
|
"Specialized Bicycledelics Kit",
|
|
@@ -43,6 +48,11 @@ export const jerseys = [
|
|
|
43
48
|
"CastelliVirtualClimber_Light_thumb",
|
|
44
49
|
],
|
|
45
50
|
[173668358, "Colombia Elite", "ColombiaFederation2020_thumb"],
|
|
51
|
+
[
|
|
52
|
+
177191477,
|
|
53
|
+
"UCI Federation 2023 Argentina",
|
|
54
|
+
"UCIFederationArgentina2023_thumb",
|
|
55
|
+
],
|
|
46
56
|
[179248736, "Echelon-Cannondale-4iiii", "EchelonCannondale2021_thumb"],
|
|
47
57
|
[179750023, "Toyota", "Toyota2020_thumb"],
|
|
48
58
|
[
|
|
@@ -148,6 +158,11 @@ export const jerseys = [
|
|
|
148
158
|
[605422273, "Power Up", "PowerUp2020_thumb"],
|
|
149
159
|
[608088435, "Garneau 2018", "Garneau2018_thumb"],
|
|
150
160
|
[608333324, "France Elite", "FrenchFederationElite2020_thumb"],
|
|
161
|
+
[
|
|
162
|
+
612633962,
|
|
163
|
+
"UCI Federation 2023 Colombia",
|
|
164
|
+
"UCIBlackFlagColombia2023_thumb",
|
|
165
|
+
],
|
|
151
166
|
[
|
|
152
167
|
614640035,
|
|
153
168
|
"Super League Tri Arena Games - Green Jersey",
|
|
@@ -256,6 +271,11 @@ export const jerseys = [
|
|
|
256
271
|
[1022287351, "TIBCO-Silicon Valley Bank", "Tibco2020_thumb"],
|
|
257
272
|
[1025753934, "Fight ALS", "AndreGreipel2019_thumb"],
|
|
258
273
|
[1028356106, "AHDR Giant Bison", "AHDRGiantBison_thumb"],
|
|
274
|
+
[
|
|
275
|
+
1033566112,
|
|
276
|
+
"UCI Federation 2023 Czech Republic",
|
|
277
|
+
"UCIFederationCzechRepublic2023_thumb",
|
|
278
|
+
],
|
|
259
279
|
[1033576880, "Sub 8", "Sub82022_thumb"],
|
|
260
280
|
[1040478737, "2XU Cycling", "2XUCycling2021_thumb"],
|
|
261
281
|
[1055383332, "zFondo Mar 2021", "ZFondo2021Mar_thumb"],
|
|
@@ -271,7 +291,7 @@ export const jerseys = [
|
|
|
271
291
|
[1088165651, "Collins Cup USA", "CollinsCupRed2020_thumb"],
|
|
272
292
|
[1092846644, "Zwift eFondo August", "Zwift_eFondo_Aug_thumb"],
|
|
273
293
|
[1097944869, "Computrainer", "Computrainer_thumb"],
|
|
274
|
-
[1106501889, "Scotland
|
|
294
|
+
[1106501889, "Scotland Jersey", "ScotlandKit2023_thumb"],
|
|
275
295
|
[1112024311, "UCI Federation 2023 Italy", "UCIFederationItaly2023_thumb"],
|
|
276
296
|
[1126295234, "Specialized F", "SpecializedDolmansSLPro_thumb"],
|
|
277
297
|
[1128201030, "Arkea", "ArkeaWomens2020_thumb"],
|
|
@@ -415,6 +435,11 @@ export const jerseys = [
|
|
|
415
435
|
"SWE Cycling Member 2022",
|
|
416
436
|
"SwedenFederationSupport2022_thumb",
|
|
417
437
|
],
|
|
438
|
+
[
|
|
439
|
+
1769856110,
|
|
440
|
+
"UCI Federation 2023 Germany",
|
|
441
|
+
"UCIFederationGermany2023_thumb",
|
|
442
|
+
],
|
|
418
443
|
[1771577861, "Rapha Womens 100 2022", "RaphaWomens1002022_thumb"],
|
|
419
444
|
[1776034995, "Trek Segafredo Training", "TrekSegafredoTrain2022_thumb"],
|
|
420
445
|
[1801600368, "Tour de Zwift 2021 Kit", "TourDeZwift2021_thumb"],
|
|
@@ -546,6 +571,11 @@ export const jerseys = [
|
|
|
546
571
|
[2411973716, "ZFondo February 2022", "ZFondo202202_thumb"],
|
|
547
572
|
[2414198484, "INEOS Energy Station", "INEOSEnergyStation2021_thumb"],
|
|
548
573
|
[2418675542, "JLT Condor", "JLT_Condor_thumb"],
|
|
574
|
+
[
|
|
575
|
+
2419799133,
|
|
576
|
+
"UCI Federation 2023 Slovenia",
|
|
577
|
+
"UCIBlackFlagSlovenia2023_thumb",
|
|
578
|
+
],
|
|
549
579
|
[2422367611, "Precision Fuel & Hydration", "Precision2022_thumb"],
|
|
550
580
|
[2422819298, "Eolo Kometa", "EoloKometa2021_thumb"],
|
|
551
581
|
[2426765558, "Black Sheep Man Ride", "BlackSheepManRide2019_thumb"],
|
package/lib/esm/routes.js
CHANGED
|
@@ -1586,14 +1586,14 @@ export const routes = [
|
|
|
1586
1586
|
"ocean-lava-cliffside-loop",
|
|
1587
1587
|
"watopia",
|
|
1588
1588
|
false,
|
|
1589
|
-
18.
|
|
1589
|
+
18.977,
|
|
1590
1590
|
156,
|
|
1591
1591
|
0.193,
|
|
1592
1592
|
0,
|
|
1593
|
-
|
|
1594
|
-
|
|
1595
|
-
|
|
1596
|
-
|
|
1593
|
+
0.124,
|
|
1594
|
+
0,
|
|
1595
|
+
0.124,
|
|
1596
|
+
0,
|
|
1597
1597
|
[],
|
|
1598
1598
|
[],
|
|
1599
1599
|
false,
|
package/lib/esm/runShirts.js
CHANGED
|
@@ -72,7 +72,7 @@ export const runShirts = [
|
|
|
72
72
|
"Super League Tri Arena Games - White Jersey",
|
|
73
73
|
"SLTRun2022white_thumb",
|
|
74
74
|
],
|
|
75
|
-
[1352916435, "Scotland
|
|
75
|
+
[1352916435, "Scotland Jersey", "Scotland2023_thumb"],
|
|
76
76
|
[1416964875, "Gosh", "Gosh2020_thumb"],
|
|
77
77
|
[1434311728, "Zwift Academy 2023", "ZARun2022_thumb"],
|
|
78
78
|
[1439027133, "Zwift Running Shirt 3", "Shirt03"],
|
package/lib/esm/runShorts.js
CHANGED
|
@@ -33,7 +33,7 @@ export const runShorts = [
|
|
|
33
33
|
[837111845, "Zwift Run Festival", "RunFestivalThumb"],
|
|
34
34
|
[844694699, "ZSun", "ZSunRun2022_thumb"],
|
|
35
35
|
[866715834, "ZRS Fall 2021 Shorts", "ZRS032021_thumb"],
|
|
36
|
-
[927838145, "Scotland
|
|
36
|
+
[927838145, "Scotland Jersey", "Scotland2023_thumb"],
|
|
37
37
|
[963884552, "MARATHON 20 PRIMEBLUE", "RFTO2021_thumb"],
|
|
38
38
|
[1073721685, "US Military Endurance Sports", "USMES2021_thumb"],
|
|
39
39
|
[1164162762, "Jan Frodeno Shorts", "JanFrodeno2019_thumb"],
|
package/lib/esm/worlds.js
CHANGED
|
@@ -114,8 +114,8 @@ export const worlds = [
|
|
|
114
114
|
name: "Scotland",
|
|
115
115
|
slug: "scotland",
|
|
116
116
|
bounds: [
|
|
117
|
-
[55.67595, -5.
|
|
118
|
-
[55.
|
|
117
|
+
[55.67595, -5.2802],
|
|
118
|
+
[55.61845, -5.17798],
|
|
119
119
|
],
|
|
120
120
|
imageUrl: "https://cdn.zwift.com/static/images/maps/MiniMap_Scotland.png",
|
|
121
121
|
},
|
package/lib/types/types.d.ts
CHANGED
|
@@ -29,7 +29,7 @@ export interface World {
|
|
|
29
29
|
*/
|
|
30
30
|
imageUrl: string;
|
|
31
31
|
}
|
|
32
|
-
export
|
|
32
|
+
export type WorldSlug = "bologna" | "crit-city" | "france" | "innsbruck" | "london" | "paris" | "makuri-islands" | "new-york" | "richmond" | "scotland" | "watopia" | "yorkshire";
|
|
33
33
|
export interface Route {
|
|
34
34
|
/**
|
|
35
35
|
* Zwift internal route id. Optional as the id is not present for all routes
|
|
@@ -136,7 +136,7 @@ export interface Route {
|
|
|
136
136
|
*/
|
|
137
137
|
supportsMeetups: boolean;
|
|
138
138
|
}
|
|
139
|
-
export
|
|
139
|
+
export type Sport = "running" | "cycling";
|
|
140
140
|
export interface Segment {
|
|
141
141
|
/**
|
|
142
142
|
* World the segment is in
|
|
@@ -183,7 +183,7 @@ export interface Segment {
|
|
|
183
183
|
*/
|
|
184
184
|
climbType?: "HC" | "4" | "3" | "2" | "1";
|
|
185
185
|
}
|
|
186
|
-
export
|
|
186
|
+
export type SegmentType = "sprint" | "climb" | "segment";
|
|
187
187
|
export interface BikeFrame {
|
|
188
188
|
id: number;
|
|
189
189
|
name: string;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zwift-data",
|
|
3
|
-
"version": "1.21.
|
|
3
|
+
"version": "1.21.2",
|
|
4
4
|
"description": "Data about Zwift worlds, routes and segments",
|
|
5
5
|
"main": "./lib/cjs/index.js",
|
|
6
6
|
"module": "./lib/esm/index.js",
|
|
@@ -27,24 +27,24 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/andipaetzold/zwift-data#readme",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@octokit/rest": "
|
|
31
|
-
"@semantic-release/changelog": "
|
|
32
|
-
"@semantic-release/git": "
|
|
33
|
-
"@tsconfig/recommended": "1.0.
|
|
30
|
+
"@octokit/rest": "19.0.7",
|
|
31
|
+
"@semantic-release/changelog": "6.0.2",
|
|
32
|
+
"@semantic-release/git": "10.0.1",
|
|
33
|
+
"@tsconfig/recommended": "1.0.2",
|
|
34
34
|
"@turf/turf": "6.5.0",
|
|
35
|
-
"@types/jest": "
|
|
36
|
-
"@types/lodash": "4.14.
|
|
37
|
-
"@types/node": "
|
|
38
|
-
"jest": "
|
|
35
|
+
"@types/jest": "29.4.0",
|
|
36
|
+
"@types/lodash": "4.14.191",
|
|
37
|
+
"@types/node": "18.11.18",
|
|
38
|
+
"jest": "29.4.1",
|
|
39
39
|
"lodash": "4.17.21",
|
|
40
|
-
"node-fetch": "3.
|
|
41
|
-
"prettier": "2.8.
|
|
42
|
-
"rimraf": "
|
|
43
|
-
"semantic-release": "
|
|
44
|
-
"simple-git": "
|
|
45
|
-
"ts-jest": "
|
|
46
|
-
"typedoc": "0.
|
|
47
|
-
"typescript": "4.
|
|
40
|
+
"node-fetch": "3.3.0",
|
|
41
|
+
"prettier": "2.8.3",
|
|
42
|
+
"rimraf": "4.1.2",
|
|
43
|
+
"semantic-release": "20.1.0",
|
|
44
|
+
"simple-git": "3.16.0",
|
|
45
|
+
"ts-jest": "29.0.5",
|
|
46
|
+
"typedoc": "0.23.24",
|
|
47
|
+
"typescript": "4.9.5"
|
|
48
48
|
},
|
|
49
49
|
"scripts": {
|
|
50
50
|
"prepublishOnly": "npm run build",
|