@time2win/t2w 2.1.2 → 2.1.4
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/CHANGELOG.md +8 -0
- package/index.js +2 -2
- package/models.d.ts +3 -2
- package/package.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,14 @@ All notable changes to this project will be documented in this file.
|
|
|
5
5
|
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
|
|
6
6
|
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
|
|
7
7
|
|
|
8
|
+
## 2.1.4 - 2025-09-18
|
|
9
|
+
### Renamed
|
|
10
|
+
name_team to team_name
|
|
11
|
+
|
|
12
|
+
## 2.1.3 - 2025-09-18
|
|
13
|
+
### Modified
|
|
14
|
+
Types of team_name to string | null in T2WResultBasic & T2WParticipantBasic
|
|
15
|
+
|
|
8
16
|
## 2.1.2 - 2025-09-18
|
|
9
17
|
### Merged
|
|
10
18
|
Split interface to one single interface
|
package/index.js
CHANGED
|
@@ -178,7 +178,7 @@ var Time2WinAPI = /** @class */ (function () {
|
|
|
178
178
|
_f.label = 3;
|
|
179
179
|
case 3:
|
|
180
180
|
body.list = ((_e = body.list) === null || _e === void 0 ? void 0 : _e.map(function (p) {
|
|
181
|
-
return __assign(__assign({}, p), { racenumNumeric: _this.getNumericBib(p.racenum), gender: p.team_type });
|
|
181
|
+
return __assign(__assign({}, p), { racenumNumeric: _this.getNumericBib(p.racenum), gender: p.team_type, team_name: p.name_team });
|
|
182
182
|
})) || [];
|
|
183
183
|
resolve(body);
|
|
184
184
|
return [2 /*return*/];
|
|
@@ -231,7 +231,7 @@ var Time2WinAPI = /** @class */ (function () {
|
|
|
231
231
|
case 3:
|
|
232
232
|
body.list = ((_e = body.list) === null || _e === void 0 ? void 0 : _e.map(function (p) {
|
|
233
233
|
var _a;
|
|
234
|
-
return __assign(__assign({}, p), { racenumNumeric: _this.getNumericBib(p.racenum), gender: p.team_type, members: ((_a = p.members) === null || _a === void 0 ? void 0 : _a.map(function (m) {
|
|
234
|
+
return __assign(__assign({}, p), { racenumNumeric: _this.getNumericBib(p.racenum), gender: p.team_type, team_name: p.name_team, members: ((_a = p.members) === null || _a === void 0 ? void 0 : _a.map(function (m) {
|
|
235
235
|
return __assign(__assign({}, m), { racenumNumeric: _this.getNumericBib(m.racenum) });
|
|
236
236
|
})) || [] });
|
|
237
237
|
})) || [];
|
package/models.d.ts
CHANGED
|
@@ -124,7 +124,7 @@ export interface T2WTeam {
|
|
|
124
124
|
wave_start: string | null;
|
|
125
125
|
status_id: number;
|
|
126
126
|
status_text: string;
|
|
127
|
-
|
|
127
|
+
team_name: string;
|
|
128
128
|
organization: string | null;
|
|
129
129
|
team_type: gender;
|
|
130
130
|
gender: gender;
|
|
@@ -202,6 +202,7 @@ interface T2WParticipantBasic {
|
|
|
202
202
|
category_id: number | null;
|
|
203
203
|
category_name: string | null;
|
|
204
204
|
team_id: number | null;
|
|
205
|
+
team_name: string | null;
|
|
205
206
|
status_id: number;
|
|
206
207
|
status_text: string;
|
|
207
208
|
checkin_status_id: number;
|
|
@@ -227,7 +228,7 @@ export interface T2WResultBasic {
|
|
|
227
228
|
race_id: number;
|
|
228
229
|
race_name: string;
|
|
229
230
|
wave_id: number | null;
|
|
230
|
-
team_name: string;
|
|
231
|
+
team_name: string | null;
|
|
231
232
|
wave_name: string | null;
|
|
232
233
|
racenum: string | null;
|
|
233
234
|
racenumNumeric: number | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@time2win/t2w",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.4",
|
|
4
4
|
"description": "providing latest-state models and advanced methods to interact with the T2W API",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"time2win",
|
|
@@ -14,7 +14,7 @@
|
|
|
14
14
|
"start:dev": "nodemon --watch src src/test.ts",
|
|
15
15
|
"start": "node dist/index.js",
|
|
16
16
|
"build": "tsc",
|
|
17
|
-
"
|
|
17
|
+
"pub": "npm publish --access public"
|
|
18
18
|
},
|
|
19
19
|
"author": "Jonas Dorfinger",
|
|
20
20
|
"license": "MIT",
|