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