@time2win/t2w 2.1.1 → 2.1.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/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
+ ## 2.1.2 - 2025-09-18
9
+ ### Merged
10
+ Split interface to one single interface
11
+
8
12
  ## 2.1.1 - 2025-09-18
9
13
  ### Added
10
14
  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 T2WTeamResultSplit {
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;
@@ -241,7 +233,7 @@ export interface T2WResultBasic {
241
233
  racenumNumeric: number | null;
242
234
  status_id: number;
243
235
  status_text: string;
244
- splits: T2WTeamResultSplit[] | null;
236
+ splits: T2WResultSplit[] | null;
245
237
  laps: T2WLap[] | null;
246
238
  start_tod: string;
247
239
  finishtime_fromgun: string | null;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@time2win/t2w",
3
- "version": "2.1.1",
3
+ "version": "2.1.2",
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
- "publish": "npm publish --access public"
17
+ "publish:pub": "npm publish --access public"
18
18
  },
19
19
  "author": "Jonas Dorfinger",
20
20
  "license": "MIT",