@time2win/t2w 1.4.14 → 1.4.15
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/models.d.ts +31 -50
- 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.15 - 2024-10-14
|
|
9
|
+
### Added
|
|
10
|
+
```T2WParticipantBasic``` to abstract combined properties of ```T2WParticipantInfo``` and ```T2WIndividualResult```
|
|
11
|
+
|
|
8
12
|
## 1.4.14 - 2024-10-14
|
|
9
13
|
### Changed
|
|
10
14
|
type of ```category_id``` of ```T2WParticipantInfo``` to ```number | null```
|
package/models.d.ts
CHANGED
|
@@ -140,33 +140,11 @@ export interface T2WIndividualResultResponse {
|
|
|
140
140
|
count_total: number;
|
|
141
141
|
list: T2WIndividualResult[];
|
|
142
142
|
}
|
|
143
|
-
export interface T2WIndividualResult {
|
|
143
|
+
export interface T2WIndividualResult extends T2WParticipantBasic {
|
|
144
144
|
pos_overall: number;
|
|
145
145
|
pos_gender: number;
|
|
146
146
|
pos_category: number;
|
|
147
|
-
category_id: number | null;
|
|
148
|
-
category_name: string | null;
|
|
149
|
-
name_first: string;
|
|
150
|
-
name_last: string;
|
|
151
147
|
name_full: string;
|
|
152
|
-
organization: string;
|
|
153
|
-
birthdate: Date | null;
|
|
154
|
-
gender: 'M' | 'F' | 'U';
|
|
155
|
-
country_code: string;
|
|
156
|
-
attr_extra: string | null;
|
|
157
|
-
attr_commentary: string | null;
|
|
158
|
-
attr_affiliation: string | null;
|
|
159
|
-
team_id: number | null;
|
|
160
|
-
team_name: string | null;
|
|
161
|
-
id: number;
|
|
162
|
-
race_id: number;
|
|
163
|
-
race_name: string;
|
|
164
|
-
wave_id: number | null;
|
|
165
|
-
wave_name: string | null;
|
|
166
|
-
racenum: string | null;
|
|
167
|
-
racenumNumeric: number | null;
|
|
168
|
-
status_id: number;
|
|
169
|
-
status_text: string;
|
|
170
148
|
splits: T2WIndividualResultSplit[] | null;
|
|
171
149
|
laps: T2WLap[] | null;
|
|
172
150
|
start_tod: string;
|
|
@@ -206,21 +184,45 @@ export interface T2WContactInfo {
|
|
|
206
184
|
address_zipcode: string;
|
|
207
185
|
address_country: string;
|
|
208
186
|
}
|
|
209
|
-
export interface T2WParticipantInfo {
|
|
187
|
+
export interface T2WParticipantInfo extends T2WParticipantBasic {
|
|
188
|
+
pricecat_id: number | null;
|
|
189
|
+
pricecat_name: string | null;
|
|
190
|
+
start_personal: string | null;
|
|
191
|
+
order_id: number | null;
|
|
192
|
+
order_date: Date | null;
|
|
193
|
+
order_terms_1: boolean | null;
|
|
194
|
+
order_terms_2: boolean | null;
|
|
195
|
+
order_terms_3: boolean | null;
|
|
196
|
+
name: string;
|
|
197
|
+
city: string | null;
|
|
198
|
+
age: number | null;
|
|
199
|
+
year: number | null;
|
|
200
|
+
contactinfo: T2WContactInfo | null;
|
|
201
|
+
extra_fields: T2WParticipantExtraFields;
|
|
202
|
+
}
|
|
203
|
+
interface T2WParticipantBasic {
|
|
210
204
|
id: number;
|
|
205
|
+
racenum: string | null;
|
|
206
|
+
racenumNumeric: number | null;
|
|
211
207
|
race_id: number;
|
|
212
208
|
race_name: string;
|
|
213
209
|
wave_id: number | null;
|
|
214
210
|
wave_name: string | null;
|
|
215
211
|
wave_start: string | null;
|
|
212
|
+
category_id: number | null;
|
|
213
|
+
category_name: string | null;
|
|
214
|
+
team_id: number | null;
|
|
215
|
+
team_name: string | null;
|
|
216
216
|
status_id: number;
|
|
217
217
|
status_text: string;
|
|
218
218
|
checkin_status_id: number;
|
|
219
219
|
checkin_status_text: string;
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
220
|
+
name_first: string;
|
|
221
|
+
name_last: string;
|
|
222
|
+
organization: string | null;
|
|
223
|
+
birthdate: Date | null;
|
|
224
|
+
gender: 'M' | 'F' | 'U';
|
|
225
|
+
country_code: string;
|
|
224
226
|
attr_extra: string | null;
|
|
225
227
|
attr_commentary: string | null;
|
|
226
228
|
attr_affiliation: string | null;
|
|
@@ -228,28 +230,6 @@ export interface T2WParticipantInfo {
|
|
|
228
230
|
attr_2: string | null;
|
|
229
231
|
attr_3: string | null;
|
|
230
232
|
attr_4: string | null;
|
|
231
|
-
start_personal: string | null;
|
|
232
|
-
order_id: number | null;
|
|
233
|
-
order_date: Date | null;
|
|
234
|
-
order_terms_1: boolean | null;
|
|
235
|
-
order_terms_2: boolean | null;
|
|
236
|
-
order_terms_3: boolean | null;
|
|
237
|
-
name_first: string;
|
|
238
|
-
name_last: string;
|
|
239
|
-
name: string;
|
|
240
|
-
city: string | null;
|
|
241
|
-
organization: string | null;
|
|
242
|
-
gender: 'M' | 'F' | 'U';
|
|
243
|
-
birthdate: Date | null;
|
|
244
|
-
age: number | null;
|
|
245
|
-
year: number | null;
|
|
246
|
-
country_code: string;
|
|
247
|
-
category_id: number | null;
|
|
248
|
-
category_name: string | null;
|
|
249
|
-
contactinfo: T2WContactInfo | null;
|
|
250
|
-
team_id: number | null;
|
|
251
|
-
team_name: string | null;
|
|
252
|
-
extra_fields: T2WParticipantExtraFields;
|
|
253
233
|
}
|
|
254
234
|
export declare enum RaceStatus {
|
|
255
235
|
FINISHED = 1,
|
|
@@ -268,3 +248,4 @@ export declare enum RaceStatus {
|
|
|
268
248
|
CHECKED_IN = 50,
|
|
269
249
|
PENALTY = 60
|
|
270
250
|
}
|
|
251
|
+
export {};
|