zwift-data 1.26.0 → 1.28.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/bikeShoes.js +5 -0
- package/lib/cjs/headgears.js +10 -0
- package/lib/cjs/jerseys.js +16 -0
- package/lib/cjs/paintJobs.js +1 -1
- package/lib/cjs/routes.js +206 -6
- package/lib/cjs/runShirts.js +2 -0
- package/lib/cjs/runShoes.js +5 -0
- package/lib/cjs/runShorts.js +1 -0
- package/lib/cjs/segments.js +189 -1
- package/lib/esm/bikeShoes.js +5 -0
- package/lib/esm/headgears.js +10 -0
- package/lib/esm/jerseys.js +16 -0
- package/lib/esm/paintJobs.js +1 -1
- package/lib/esm/routes.js +206 -6
- package/lib/esm/runShirts.js +2 -0
- package/lib/esm/runShoes.js +5 -0
- package/lib/esm/runShorts.js +1 -0
- package/lib/esm/segments.js +189 -1
- package/lib/types/types.d.ts +8 -0
- package/package.json +2 -2
package/lib/types/types.d.ts
CHANGED
|
@@ -135,6 +135,10 @@ export interface Route {
|
|
|
135
135
|
* `true`, if the route is available for meetups
|
|
136
136
|
*/
|
|
137
137
|
supportsMeetups: boolean;
|
|
138
|
+
/**
|
|
139
|
+
* Url of the route on Zwifter Bikes
|
|
140
|
+
*/
|
|
141
|
+
zwifterBikesUrl?: string;
|
|
138
142
|
}
|
|
139
143
|
export type Sport = "running" | "cycling";
|
|
140
144
|
export interface Segment {
|
|
@@ -182,6 +186,10 @@ export interface Segment {
|
|
|
182
186
|
* Rating of a climb segment. Only available if `type=climb`.
|
|
183
187
|
*/
|
|
184
188
|
climbType?: "HC" | "4" | "3" | "2" | "1";
|
|
189
|
+
/**
|
|
190
|
+
* Url of the route on Zwifter Bikes
|
|
191
|
+
*/
|
|
192
|
+
zwifterBikesUrl?: string;
|
|
185
193
|
}
|
|
186
194
|
export type SegmentType = "sprint" | "climb" | "segment";
|
|
187
195
|
export interface BikeFrame {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "zwift-data",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.28.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",
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://github.com/andipaetzold/zwift-data#readme",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"@octokit/rest": "
|
|
30
|
+
"@octokit/rest": "20.0.1",
|
|
31
31
|
"@semantic-release/changelog": "6.0.3",
|
|
32
32
|
"@semantic-release/git": "10.0.1",
|
|
33
33
|
"@tsconfig/recommended": "1.0.2",
|