@time2win/t2w 2.1.1 → 2.1.3
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/models.d.ts +7 -14
- 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.3 - 2025-09-18
|
|
9
|
+
### Modified
|
|
10
|
+
Types of team_name to string | null in T2WResultBasic & T2WParticipantBasic
|
|
11
|
+
|
|
12
|
+
## 2.1.2 - 2025-09-18
|
|
13
|
+
### Merged
|
|
14
|
+
Split interface to one single interface
|
|
15
|
+
|
|
8
16
|
## 2.1.1 - 2025-09-18
|
|
9
17
|
### Added
|
|
10
18
|
T2WResultBasic interface to abstract common properties of T2WIndividualResult and T2WTeamResult
|
package/models.d.ts
CHANGED
|
@@ -87,13 +87,13 @@ export interface T2WLap {
|
|
|
87
87
|
lap_num: number;
|
|
88
88
|
teammember_id: number;
|
|
89
89
|
}
|
|
90
|
-
export interface
|
|
90
|
+
export interface T2WResultSplit {
|
|
91
91
|
distance: number;
|
|
92
|
+
split_accumulatedtime: boolean;
|
|
93
|
+
split_index: number;
|
|
94
|
+
split_name: string;
|
|
92
95
|
time: string;
|
|
93
96
|
time_ms: number | null;
|
|
94
|
-
split_name: string;
|
|
95
|
-
split_index: number;
|
|
96
|
-
split_accumulatedtime: boolean;
|
|
97
97
|
}
|
|
98
98
|
export interface T2WTeamResult extends T2WResultBasic {
|
|
99
99
|
team_type: gender;
|
|
@@ -152,14 +152,6 @@ export interface T2WIndividualResult extends T2WParticipantBasic, T2WResultBasic
|
|
|
152
152
|
speedNetto: string;
|
|
153
153
|
speedBrutto: string;
|
|
154
154
|
}
|
|
155
|
-
export interface T2WIndividualResultSplit {
|
|
156
|
-
distance: number;
|
|
157
|
-
split_accumulatedtime: boolean;
|
|
158
|
-
split_index: number;
|
|
159
|
-
split_name: string;
|
|
160
|
-
time: string;
|
|
161
|
-
time_ms: number | null;
|
|
162
|
-
}
|
|
163
155
|
export interface T2WParticipantResponse {
|
|
164
156
|
list: T2WParticipantInfo[];
|
|
165
157
|
page: number;
|
|
@@ -210,6 +202,7 @@ interface T2WParticipantBasic {
|
|
|
210
202
|
category_id: number | null;
|
|
211
203
|
category_name: string | null;
|
|
212
204
|
team_id: number | null;
|
|
205
|
+
team_name: string | null;
|
|
213
206
|
status_id: number;
|
|
214
207
|
status_text: string;
|
|
215
208
|
checkin_status_id: number;
|
|
@@ -235,13 +228,13 @@ export interface T2WResultBasic {
|
|
|
235
228
|
race_id: number;
|
|
236
229
|
race_name: string;
|
|
237
230
|
wave_id: number | null;
|
|
238
|
-
team_name: string;
|
|
231
|
+
team_name: string | null;
|
|
239
232
|
wave_name: string | null;
|
|
240
233
|
racenum: string | null;
|
|
241
234
|
racenumNumeric: number | null;
|
|
242
235
|
status_id: number;
|
|
243
236
|
status_text: string;
|
|
244
|
-
splits:
|
|
237
|
+
splits: T2WResultSplit[] | null;
|
|
245
238
|
laps: T2WLap[] | null;
|
|
246
239
|
start_tod: string;
|
|
247
240
|
finishtime_fromgun: string | null;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@time2win/t2w",
|
|
3
|
-
"version": "2.1.
|
|
3
|
+
"version": "2.1.3",
|
|
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",
|