tbarequest 0.0.2 → 0.1.0
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/README.md +0 -4
- package/dist/index.d.ts +1 -2
- package/dist/index.js +5 -4
- package/dist/types/endpoints/districts.d.ts +137 -149
- package/dist/types/endpoints/districts.js +23 -23
- package/dist/types/endpoints/events.d.ts +1435 -13300
- package/dist/types/endpoints/events.js +86 -82
- package/dist/types/endpoints/index.d.ts +10 -11
- package/dist/types/endpoints/index.js +11 -11
- package/dist/types/endpoints/insights.d.ts +23 -28
- package/dist/types/endpoints/insights.js +5 -5
- package/dist/types/endpoints/matches.d.ts +1079 -12936
- package/dist/types/endpoints/matches.js +3 -3
- package/dist/types/endpoints/regionalAdvancements.d.ts +27 -31
- package/dist/types/endpoints/regionalAdvancements.js +6 -5
- package/dist/types/endpoints/status.d.ts +14 -29
- package/dist/types/endpoints/status.js +7 -7
- package/dist/types/endpoints/teams.d.ts +2614 -26376
- package/dist/types/endpoints/teams.js +67 -65
- package/dist/types/index.d.ts +4 -3
- package/dist/types/schemas/districts.d.ts +22 -23
- package/dist/types/schemas/districts.js +23 -23
- package/dist/types/schemas/events.d.ts +176 -223
- package/dist/types/schemas/events.js +93 -93
- package/dist/types/schemas/insights.d.ts +19 -24
- package/dist/types/schemas/insights.js +20 -20
- package/dist/types/schemas/matches.d.ts +2602 -14850
- package/dist/types/schemas/matches.js +483 -526
- package/dist/types/schemas/regionalAdvancements.d.ts +20 -27
- package/dist/types/schemas/regionalAdvancements.js +21 -21
- package/dist/types/schemas/status.d.ts +3 -4
- package/dist/types/schemas/status.js +4 -4
- package/dist/types/schemas/teams.d.ts +46 -45
- package/dist/types/schemas/teams.js +35 -35
- package/package.json +10 -5
|
@@ -1,233 +1,186 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
ustream: "ustream";
|
|
7
|
-
iframe: "iframe";
|
|
8
|
-
html5: "html5";
|
|
9
|
-
rtmp: "rtmp";
|
|
10
|
-
livestream: "livestream";
|
|
11
|
-
direct_link: "direct_link";
|
|
12
|
-
mms: "mms";
|
|
13
|
-
justin: "justin";
|
|
14
|
-
stemtv: "stemtv";
|
|
15
|
-
dacast: "dacast";
|
|
16
|
-
}>;
|
|
17
|
-
channel: z.ZodString;
|
|
18
|
-
date: z.ZodOptional<z.ZodNullable<z.coerce.ZodCoercedDate>>;
|
|
19
|
-
file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
1
|
+
export declare const Webcast: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
2
|
+
type: "youtube" | "twitch" | "ustream" | "iframe" | "html5" | "rtmp" | "livestream" | "direct_link" | "mms" | "justin" | "stemtv" | "dacast";
|
|
3
|
+
channel: string;
|
|
4
|
+
date?: string | null | undefined;
|
|
5
|
+
file?: string | null | undefined;
|
|
20
6
|
}, {}>;
|
|
21
|
-
export declare const Event_Simple:
|
|
22
|
-
key:
|
|
23
|
-
name:
|
|
24
|
-
event_code:
|
|
25
|
-
event_type:
|
|
26
|
-
district:
|
|
27
|
-
abbreviation:
|
|
28
|
-
display_name:
|
|
29
|
-
key:
|
|
30
|
-
year:
|
|
31
|
-
}
|
|
32
|
-
city:
|
|
33
|
-
state_prov:
|
|
34
|
-
country:
|
|
35
|
-
start_date:
|
|
36
|
-
end_date:
|
|
37
|
-
year:
|
|
7
|
+
export declare const Event_Simple: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
8
|
+
key: string;
|
|
9
|
+
name: string;
|
|
10
|
+
event_code: string;
|
|
11
|
+
event_type: number;
|
|
12
|
+
district: {
|
|
13
|
+
abbreviation: string;
|
|
14
|
+
display_name: string;
|
|
15
|
+
key: string;
|
|
16
|
+
year: number;
|
|
17
|
+
} | null;
|
|
18
|
+
city: string | null;
|
|
19
|
+
state_prov: string | null;
|
|
20
|
+
country: string | null;
|
|
21
|
+
start_date: string;
|
|
22
|
+
end_date: string;
|
|
23
|
+
year: number;
|
|
38
24
|
}, {}>;
|
|
39
|
-
export declare const Event:
|
|
40
|
-
key:
|
|
41
|
-
name:
|
|
42
|
-
event_code:
|
|
43
|
-
event_type:
|
|
44
|
-
district:
|
|
45
|
-
abbreviation:
|
|
46
|
-
display_name:
|
|
47
|
-
key:
|
|
48
|
-
year:
|
|
49
|
-
}
|
|
50
|
-
city:
|
|
51
|
-
state_prov:
|
|
52
|
-
country:
|
|
53
|
-
start_date:
|
|
54
|
-
end_date:
|
|
55
|
-
year:
|
|
56
|
-
short_name:
|
|
57
|
-
event_type_string:
|
|
58
|
-
week:
|
|
59
|
-
address:
|
|
60
|
-
postal_code:
|
|
61
|
-
gmaps_place_id:
|
|
62
|
-
gmaps_url:
|
|
63
|
-
lat:
|
|
64
|
-
lng:
|
|
65
|
-
location_name:
|
|
66
|
-
timezone:
|
|
67
|
-
website:
|
|
68
|
-
first_event_id:
|
|
69
|
-
first_event_code:
|
|
70
|
-
webcasts:
|
|
71
|
-
type:
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
mms: "mms";
|
|
81
|
-
justin: "justin";
|
|
82
|
-
stemtv: "stemtv";
|
|
83
|
-
dacast: "dacast";
|
|
84
|
-
}>;
|
|
85
|
-
channel: z.ZodString;
|
|
86
|
-
date: z.ZodOptional<z.ZodNullable<z.coerce.ZodCoercedDate>>;
|
|
87
|
-
file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
|
|
88
|
-
}, {}>>;
|
|
89
|
-
division_keys: z.ZodArray<z.ZodString>;
|
|
90
|
-
parent_event_key: z.ZodNullable<z.ZodString>;
|
|
91
|
-
playoff_type: z.ZodNullable<z.ZodInt>;
|
|
92
|
-
playoff_type_string: z.ZodNullable<z.ZodString>;
|
|
25
|
+
export declare const Event: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
26
|
+
key: string;
|
|
27
|
+
name: string;
|
|
28
|
+
event_code: string;
|
|
29
|
+
event_type: number;
|
|
30
|
+
district: {
|
|
31
|
+
abbreviation: string;
|
|
32
|
+
display_name: string;
|
|
33
|
+
key: string;
|
|
34
|
+
year: number;
|
|
35
|
+
} | null;
|
|
36
|
+
city: string | null;
|
|
37
|
+
state_prov: string | null;
|
|
38
|
+
country: string | null;
|
|
39
|
+
start_date: string;
|
|
40
|
+
end_date: string;
|
|
41
|
+
year: number;
|
|
42
|
+
short_name: string | null;
|
|
43
|
+
event_type_string: string;
|
|
44
|
+
week: number | null;
|
|
45
|
+
address: string | null;
|
|
46
|
+
postal_code: string | null;
|
|
47
|
+
gmaps_place_id: string | null;
|
|
48
|
+
gmaps_url: string | null;
|
|
49
|
+
lat: number | null;
|
|
50
|
+
lng: number | null;
|
|
51
|
+
location_name: string | null;
|
|
52
|
+
timezone: string | null;
|
|
53
|
+
website: string | null;
|
|
54
|
+
first_event_id: string | null;
|
|
55
|
+
first_event_code: string | null;
|
|
56
|
+
webcasts: {
|
|
57
|
+
type: "youtube" | "twitch" | "ustream" | "iframe" | "html5" | "rtmp" | "livestream" | "direct_link" | "mms" | "justin" | "stemtv" | "dacast";
|
|
58
|
+
channel: string;
|
|
59
|
+
date?: string | null | undefined;
|
|
60
|
+
file?: string | null | undefined;
|
|
61
|
+
}[];
|
|
62
|
+
division_keys: string[];
|
|
63
|
+
parent_event_key: string | null;
|
|
64
|
+
playoff_type: number | null;
|
|
65
|
+
playoff_type_string: string | null;
|
|
93
66
|
}, {}>;
|
|
94
|
-
export declare const WLT_Record:
|
|
95
|
-
wins:
|
|
96
|
-
losses:
|
|
97
|
-
ties:
|
|
67
|
+
export declare const WLT_Record: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
68
|
+
wins: number;
|
|
69
|
+
losses: number;
|
|
70
|
+
ties: number;
|
|
98
71
|
}, {}>;
|
|
99
|
-
export declare const Team_Event_Status_rank:
|
|
100
|
-
num_teams
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
72
|
+
export declare const Team_Event_Status_rank: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
73
|
+
num_teams?: number | null | undefined;
|
|
74
|
+
sort_order_info?: ({
|
|
75
|
+
precision: number | null;
|
|
76
|
+
name: string | null;
|
|
77
|
+
} | null)[] | undefined;
|
|
78
|
+
status?: string | null | undefined;
|
|
79
|
+
ranking?: {
|
|
80
|
+
matches_played: number | null;
|
|
81
|
+
qual_average: number | null;
|
|
82
|
+
sort_orders: number[] | null;
|
|
83
|
+
rank: number | null;
|
|
84
|
+
dq: number | null;
|
|
85
|
+
team_key: string | null;
|
|
86
|
+
} | undefined;
|
|
114
87
|
}, {}>;
|
|
115
|
-
export declare const Team_Event_Status_alliance_backup:
|
|
116
|
-
in
|
|
117
|
-
out
|
|
88
|
+
export declare const Team_Event_Status_alliance_backup: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
89
|
+
in?: string | undefined;
|
|
90
|
+
out?: string | undefined;
|
|
118
91
|
}, {}>;
|
|
119
|
-
export declare const Team_Event_Status_alliance:
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
92
|
+
export declare const Team_Event_Status_alliance: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
93
|
+
number: number;
|
|
94
|
+
pick: number;
|
|
95
|
+
name?: string | null | undefined;
|
|
96
|
+
backup?: {
|
|
97
|
+
in?: string | undefined;
|
|
98
|
+
out?: string | undefined;
|
|
99
|
+
} | null | undefined;
|
|
127
100
|
}, {}>;
|
|
128
|
-
export declare const Team_Event_Status_playoff:
|
|
129
|
-
level
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
wins: z.ZodInt;
|
|
143
|
-
losses: z.ZodInt;
|
|
144
|
-
ties: z.ZodInt;
|
|
145
|
-
}, {}>>>;
|
|
146
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
147
|
-
won: "won";
|
|
148
|
-
eliminated: "eliminated";
|
|
149
|
-
playing: "playing";
|
|
150
|
-
}>>;
|
|
151
|
-
playoff_average: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
101
|
+
export declare const Team_Event_Status_playoff: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
102
|
+
level?: "f" | "qm" | "ef" | "qf" | "sf" | undefined;
|
|
103
|
+
current_level_record?: {
|
|
104
|
+
wins: number;
|
|
105
|
+
losses: number;
|
|
106
|
+
ties: number;
|
|
107
|
+
} | null | undefined;
|
|
108
|
+
record?: {
|
|
109
|
+
wins: number;
|
|
110
|
+
losses: number;
|
|
111
|
+
ties: number;
|
|
112
|
+
} | null | undefined;
|
|
113
|
+
status?: "won" | "eliminated" | "playing" | undefined;
|
|
114
|
+
playoff_average?: number | null | undefined;
|
|
152
115
|
}, {}>;
|
|
153
|
-
export declare const Team_Event_Status:
|
|
154
|
-
alliance_status_str
|
|
155
|
-
playoff_status_str
|
|
156
|
-
overall_status_str
|
|
157
|
-
next_match_key
|
|
158
|
-
last_match_key
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
losses: z.ZodInt;
|
|
200
|
-
ties: z.ZodInt;
|
|
201
|
-
}, {}>>>;
|
|
202
|
-
status: z.ZodOptional<z.ZodEnum<{
|
|
203
|
-
won: "won";
|
|
204
|
-
eliminated: "eliminated";
|
|
205
|
-
playing: "playing";
|
|
206
|
-
}>>;
|
|
207
|
-
playoff_average: z.ZodOptional<z.ZodNullable<z.ZodNumber>>;
|
|
208
|
-
}, {}>>>;
|
|
116
|
+
export declare const Team_Event_Status: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
117
|
+
alliance_status_str?: string | undefined;
|
|
118
|
+
playoff_status_str?: string | undefined;
|
|
119
|
+
overall_status_str?: string | undefined;
|
|
120
|
+
next_match_key?: string | null | undefined;
|
|
121
|
+
last_match_key?: string | null | undefined;
|
|
122
|
+
playoff?: {
|
|
123
|
+
level?: "f" | "qm" | "ef" | "qf" | "sf" | undefined;
|
|
124
|
+
current_level_record?: {
|
|
125
|
+
wins: number;
|
|
126
|
+
losses: number;
|
|
127
|
+
ties: number;
|
|
128
|
+
} | null | undefined;
|
|
129
|
+
record?: {
|
|
130
|
+
wins: number;
|
|
131
|
+
losses: number;
|
|
132
|
+
ties: number;
|
|
133
|
+
} | null | undefined;
|
|
134
|
+
status?: "won" | "eliminated" | "playing" | undefined;
|
|
135
|
+
playoff_average?: number | null | undefined;
|
|
136
|
+
} | null | undefined;
|
|
137
|
+
qual?: {
|
|
138
|
+
num_teams?: number | null | undefined;
|
|
139
|
+
sort_order_info?: ({
|
|
140
|
+
precision: number | null;
|
|
141
|
+
name: string | null;
|
|
142
|
+
} | null)[] | undefined;
|
|
143
|
+
status?: string | null | undefined;
|
|
144
|
+
ranking?: {
|
|
145
|
+
matches_played: number | null;
|
|
146
|
+
qual_average: number | null;
|
|
147
|
+
sort_orders: number[] | null;
|
|
148
|
+
rank: number | null;
|
|
149
|
+
dq: number | null;
|
|
150
|
+
team_key: string | null;
|
|
151
|
+
} | undefined;
|
|
152
|
+
} | null | undefined;
|
|
153
|
+
alliance?: {
|
|
154
|
+
number: number;
|
|
155
|
+
pick: number;
|
|
156
|
+
name?: string | null | undefined;
|
|
157
|
+
backup?: {
|
|
158
|
+
in?: string | undefined;
|
|
159
|
+
out?: string | undefined;
|
|
160
|
+
} | null | undefined;
|
|
161
|
+
} | null | undefined;
|
|
209
162
|
}, {}>;
|
|
210
|
-
export declare const Elimination_Alliance:
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
status
|
|
219
|
-
playoff_average
|
|
220
|
-
level
|
|
221
|
-
record
|
|
222
|
-
wins:
|
|
223
|
-
losses:
|
|
224
|
-
ties:
|
|
225
|
-
}
|
|
226
|
-
current_level_record
|
|
227
|
-
wins:
|
|
228
|
-
losses:
|
|
229
|
-
ties:
|
|
230
|
-
}
|
|
231
|
-
status
|
|
232
|
-
}
|
|
163
|
+
export declare const Elimination_Alliance: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
164
|
+
declines: string[];
|
|
165
|
+
picks: string[];
|
|
166
|
+
name?: string | null | undefined;
|
|
167
|
+
backup?: {
|
|
168
|
+
in: string;
|
|
169
|
+
out: string;
|
|
170
|
+
} | null | undefined;
|
|
171
|
+
status?: {
|
|
172
|
+
playoff_average?: number | null | undefined;
|
|
173
|
+
level?: string | undefined;
|
|
174
|
+
record?: {
|
|
175
|
+
wins: number;
|
|
176
|
+
losses: number;
|
|
177
|
+
ties: number;
|
|
178
|
+
} | null | undefined;
|
|
179
|
+
current_level_record?: {
|
|
180
|
+
wins: number;
|
|
181
|
+
losses: number;
|
|
182
|
+
ties: number;
|
|
183
|
+
} | null | undefined;
|
|
184
|
+
status?: string | undefined;
|
|
185
|
+
} | undefined;
|
|
233
186
|
}, {}>;
|
|
@@ -1,107 +1,107 @@
|
|
|
1
|
-
import { z } from "zod";
|
|
2
1
|
import { District_List } from "./districts.js";
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
2
|
+
import { type } from "arktype";
|
|
3
|
+
export const Webcast = type({
|
|
4
|
+
type: "'youtube' | 'twitch' | 'ustream' | 'iframe' | 'html5' | 'rtmp' | 'livestream' | 'direct_link' | 'mms' | 'justin' | 'stemtv' | 'dacast'",
|
|
5
|
+
channel: "string",
|
|
6
|
+
"date?": "string | null",
|
|
7
|
+
file: "(string | null)?",
|
|
8
8
|
});
|
|
9
|
-
export const Event_Simple =
|
|
10
|
-
key:
|
|
11
|
-
name:
|
|
12
|
-
event_code:
|
|
13
|
-
event_type:
|
|
14
|
-
district: District_List
|
|
15
|
-
city:
|
|
16
|
-
state_prov:
|
|
17
|
-
country:
|
|
18
|
-
start_date:
|
|
19
|
-
end_date:
|
|
20
|
-
year:
|
|
9
|
+
export const Event_Simple = type({
|
|
10
|
+
key: "string",
|
|
11
|
+
name: "string",
|
|
12
|
+
event_code: "string",
|
|
13
|
+
event_type: "number",
|
|
14
|
+
district: type(District_List, "|", "null"),
|
|
15
|
+
city: "string | null",
|
|
16
|
+
state_prov: "string | null",
|
|
17
|
+
country: "string | null",
|
|
18
|
+
start_date: "string",
|
|
19
|
+
end_date: "string",
|
|
20
|
+
year: "number",
|
|
21
21
|
});
|
|
22
|
-
export const Event = Event_Simple.
|
|
23
|
-
short_name:
|
|
24
|
-
event_type_string:
|
|
25
|
-
week:
|
|
26
|
-
address:
|
|
27
|
-
postal_code:
|
|
28
|
-
gmaps_place_id:
|
|
29
|
-
gmaps_url:
|
|
30
|
-
lat:
|
|
31
|
-
lng:
|
|
32
|
-
location_name:
|
|
33
|
-
timezone:
|
|
34
|
-
website:
|
|
35
|
-
first_event_id:
|
|
36
|
-
first_event_code:
|
|
37
|
-
webcasts:
|
|
38
|
-
division_keys:
|
|
39
|
-
parent_event_key:
|
|
40
|
-
playoff_type:
|
|
41
|
-
playoff_type_string:
|
|
22
|
+
export const Event = Event_Simple.and({
|
|
23
|
+
short_name: "string | null",
|
|
24
|
+
event_type_string: "string",
|
|
25
|
+
week: "number | null",
|
|
26
|
+
address: "string | null",
|
|
27
|
+
postal_code: "string | null",
|
|
28
|
+
gmaps_place_id: "string | null",
|
|
29
|
+
gmaps_url: "string | null",
|
|
30
|
+
lat: "number | null",
|
|
31
|
+
lng: "number | null",
|
|
32
|
+
location_name: "string | null",
|
|
33
|
+
timezone: "string | null",
|
|
34
|
+
website: "string | null",
|
|
35
|
+
first_event_id: "string | null",
|
|
36
|
+
first_event_code: "string | null",
|
|
37
|
+
webcasts: Webcast.array(),
|
|
38
|
+
division_keys: "string[]",
|
|
39
|
+
parent_event_key: "string | null",
|
|
40
|
+
playoff_type: "number | null",
|
|
41
|
+
playoff_type_string: "string | null",
|
|
42
42
|
});
|
|
43
|
-
export const WLT_Record =
|
|
44
|
-
wins:
|
|
45
|
-
losses:
|
|
46
|
-
ties:
|
|
43
|
+
export const WLT_Record = type({
|
|
44
|
+
wins: "number",
|
|
45
|
+
losses: "number",
|
|
46
|
+
ties: "number",
|
|
47
47
|
});
|
|
48
48
|
// Docs don't say it is nullable, but it has been null during testing
|
|
49
|
-
export const Team_Event_Status_rank =
|
|
50
|
-
num_teams:
|
|
51
|
-
ranking:
|
|
52
|
-
matches_played:
|
|
53
|
-
qual_average:
|
|
54
|
-
sort_orders:
|
|
55
|
-
rank:
|
|
56
|
-
dq:
|
|
57
|
-
team_key:
|
|
49
|
+
export const Team_Event_Status_rank = type({
|
|
50
|
+
num_teams: "number | null",
|
|
51
|
+
ranking: type({
|
|
52
|
+
matches_played: "number | null",
|
|
53
|
+
qual_average: "number | null",
|
|
54
|
+
sort_orders: "number[] | null",
|
|
55
|
+
rank: "number | null",
|
|
56
|
+
dq: "number | null",
|
|
57
|
+
team_key: "string | null",
|
|
58
58
|
}).optional(),
|
|
59
|
-
sort_order_info:
|
|
60
|
-
precision:
|
|
61
|
-
name:
|
|
62
|
-
})
|
|
63
|
-
status:
|
|
59
|
+
sort_order_info: type({
|
|
60
|
+
precision: "number | null",
|
|
61
|
+
name: "string | null",
|
|
62
|
+
}, "|", "null").array(),
|
|
63
|
+
status: "string | null",
|
|
64
64
|
}).partial();
|
|
65
|
-
export const Team_Event_Status_alliance_backup =
|
|
66
|
-
in:
|
|
67
|
-
out:
|
|
65
|
+
export const Team_Event_Status_alliance_backup = type({
|
|
66
|
+
in: "string?",
|
|
67
|
+
out: "string?",
|
|
68
68
|
});
|
|
69
|
-
export const Team_Event_Status_alliance =
|
|
70
|
-
name:
|
|
71
|
-
number:
|
|
72
|
-
backup: Team_Event_Status_alliance_backup
|
|
73
|
-
pick:
|
|
69
|
+
export const Team_Event_Status_alliance = type({
|
|
70
|
+
name: "(string | null)?",
|
|
71
|
+
number: "number",
|
|
72
|
+
backup: type(Team_Event_Status_alliance_backup, "|", "null").optional(),
|
|
73
|
+
pick: "number",
|
|
74
74
|
});
|
|
75
|
-
export const Team_Event_Status_playoff =
|
|
76
|
-
level:
|
|
77
|
-
current_level_record: WLT_Record
|
|
78
|
-
record: WLT_Record
|
|
79
|
-
status:
|
|
80
|
-
playoff_average:
|
|
75
|
+
export const Team_Event_Status_playoff = type({
|
|
76
|
+
"level?": "'qm' | 'ef' | 'qf' | 'sf' | 'f'",
|
|
77
|
+
current_level_record: type(WLT_Record, "|", "null").optional(),
|
|
78
|
+
record: type(WLT_Record, "|", "null").optional(),
|
|
79
|
+
"status?": "'won' | 'eliminated' | 'playing'",
|
|
80
|
+
"playoff_average?": "number | null",
|
|
81
81
|
});
|
|
82
|
-
export const Team_Event_Status =
|
|
83
|
-
alliance_status_str:
|
|
84
|
-
playoff_status_str:
|
|
85
|
-
overall_status_str:
|
|
86
|
-
next_match_key:
|
|
87
|
-
last_match_key:
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
82
|
+
export const Team_Event_Status = type({
|
|
83
|
+
alliance_status_str: "string?",
|
|
84
|
+
playoff_status_str: "string?",
|
|
85
|
+
overall_status_str: "string?",
|
|
86
|
+
next_match_key: "(string | null)?",
|
|
87
|
+
last_match_key: "(string | null)?",
|
|
88
|
+
playoff: type(Team_Event_Status_playoff, "|", "null").optional(),
|
|
89
|
+
qual: type(Team_Event_Status_rank, "|", "null").optional(),
|
|
90
|
+
alliance: type(Team_Event_Status_alliance, "|", "null").optional(),
|
|
91
91
|
});
|
|
92
|
-
export const Elimination_Alliance =
|
|
93
|
-
name:
|
|
94
|
-
backup:
|
|
95
|
-
in:
|
|
96
|
-
out:
|
|
97
|
-
}).
|
|
98
|
-
declines:
|
|
99
|
-
picks:
|
|
100
|
-
status:
|
|
101
|
-
playoff_average:
|
|
102
|
-
level:
|
|
103
|
-
record: WLT_Record
|
|
104
|
-
current_level_record: WLT_Record
|
|
105
|
-
status:
|
|
92
|
+
export const Elimination_Alliance = type({
|
|
93
|
+
name: "(string | null)?",
|
|
94
|
+
backup: type({
|
|
95
|
+
in: "string",
|
|
96
|
+
out: "string",
|
|
97
|
+
}, "|", "null").optional(),
|
|
98
|
+
declines: "string[]",
|
|
99
|
+
picks: "string[]",
|
|
100
|
+
status: type({
|
|
101
|
+
playoff_average: "number | null",
|
|
102
|
+
level: "string",
|
|
103
|
+
record: type(WLT_Record, "|", "null"),
|
|
104
|
+
current_level_record: type(WLT_Record, "|", "null"),
|
|
105
|
+
status: "string",
|
|
106
106
|
}).partial().optional(),
|
|
107
107
|
});
|