@time2win/t2w 1.4.22 → 1.4.23
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 +4 -0
- package/index.js +2 -2
- package/models.d.ts +2 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,10 @@ 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
|
+
## 1.4.23 - 2025-05-22
|
|
9
|
+
### Added
|
|
10
|
+
field ```gender``` to team types
|
|
11
|
+
|
|
8
12
|
## 1.4.22 - 2025-04-09
|
|
9
13
|
### Added
|
|
10
14
|
wrapper methods for ```getParticipantInfos()``` and ```getIndividualResults()``` which are called by the user, internally the fetch methods will be called (prevents to call getEventData multiple times)
|
package/index.js
CHANGED
|
@@ -126,7 +126,7 @@ var Time2WinAPI = /** @class */ (function () {
|
|
|
126
126
|
_e.label = 3;
|
|
127
127
|
case 3:
|
|
128
128
|
body.list = body.list.map(function (p) {
|
|
129
|
-
return __assign(__assign({}, p), { racenumNumeric: _this.getNumericBib(p.racenum) });
|
|
129
|
+
return __assign(__assign({}, p), { racenumNumeric: _this.getNumericBib(p.racenum), gender: p.team_type });
|
|
130
130
|
});
|
|
131
131
|
resolve(body);
|
|
132
132
|
return [2 /*return*/];
|
|
@@ -177,7 +177,7 @@ var Time2WinAPI = /** @class */ (function () {
|
|
|
177
177
|
case 3:
|
|
178
178
|
body.list = body.list.map(function (p) {
|
|
179
179
|
var _a;
|
|
180
|
-
return __assign(__assign({}, p), { racenumNumeric: _this.getNumericBib(p.racenum), members: ((_a = p.members) === null || _a === void 0 ? void 0 : _a.map(function (m) {
|
|
180
|
+
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) {
|
|
181
181
|
return __assign(__assign({}, m), { racenumNumeric: _this.getNumericBib(m.racenum) });
|
|
182
182
|
})) || [] });
|
|
183
183
|
});
|
package/models.d.ts
CHANGED
|
@@ -98,6 +98,7 @@ export interface T2WTeamResultSplit {
|
|
|
98
98
|
export interface T2WTeamResult {
|
|
99
99
|
id: number;
|
|
100
100
|
team_type: gender;
|
|
101
|
+
gender: gender;
|
|
101
102
|
name_team: string;
|
|
102
103
|
organization: string | null;
|
|
103
104
|
race_id: number;
|
|
@@ -146,6 +147,7 @@ export interface T2WTeam {
|
|
|
146
147
|
name_team: string;
|
|
147
148
|
organization: string | null;
|
|
148
149
|
team_type: gender;
|
|
150
|
+
gender: gender;
|
|
149
151
|
attr_1: string | null;
|
|
150
152
|
attr_2: string | null;
|
|
151
153
|
members: T2WTeamMember[];
|