tbarequest 0.0.1 → 0.0.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/README.md CHANGED
@@ -15,7 +15,7 @@ npm install tbarequest
15
15
  Use the `createTBACaller` function to create a function that can call the API.
16
16
 
17
17
  ```ts
18
- import { createTBACaller } from "./index";
18
+ import { createTBACaller } from "tbarequest";
19
19
 
20
20
  const tba = createTBACaller("api_key")
21
21
 
@@ -22,12 +22,6 @@ export declare const districtEndpoints: {
22
22
  schema: z.ZodArray<z.ZodObject<{
23
23
  key: z.ZodString;
24
24
  name: z.ZodString;
25
- city: z.ZodNullable<z.ZodString>;
26
- state_prov: z.ZodNullable<z.ZodString>;
27
- country: z.ZodNullable<z.ZodString>;
28
- postal_code: z.ZodNullable<z.ZodString>;
29
- website: z.ZodNullable<z.ZodString>;
30
- year: z.ZodInt;
31
25
  event_code: z.ZodString;
32
26
  event_type: z.ZodInt;
33
27
  district: z.ZodNullable<z.ZodObject<{
@@ -36,8 +30,26 @@ export declare const districtEndpoints: {
36
30
  key: z.ZodString;
37
31
  year: z.ZodInt;
38
32
  }, {}>>;
33
+ city: z.ZodNullable<z.ZodString>;
34
+ state_prov: z.ZodNullable<z.ZodString>;
35
+ country: z.ZodNullable<z.ZodString>;
39
36
  start_date: z.coerce.ZodCoercedDate;
40
37
  end_date: z.coerce.ZodCoercedDate;
38
+ year: z.ZodInt;
39
+ short_name: z.ZodNullable<z.ZodString>;
40
+ event_type_string: z.ZodString;
41
+ week: z.ZodNullable<z.ZodNumber>;
42
+ address: z.ZodNullable<z.ZodString>;
43
+ postal_code: z.ZodNullable<z.ZodString>;
44
+ gmaps_place_id: z.ZodNullable<z.ZodString>;
45
+ gmaps_url: z.ZodNullable<z.ZodString>;
46
+ lat: z.ZodNullable<z.ZodNumber>;
47
+ lng: z.ZodNullable<z.ZodNumber>;
48
+ location_name: z.ZodNullable<z.ZodString>;
49
+ timezone: z.ZodNullable<z.ZodString>;
50
+ website: z.ZodNullable<z.ZodString>;
51
+ first_event_id: z.ZodNullable<z.ZodString>;
52
+ first_event_code: z.ZodNullable<z.ZodString>;
41
53
  webcasts: z.ZodArray<z.ZodObject<{
42
54
  type: z.ZodEnum<{
43
55
  youtube: "youtube";
@@ -58,18 +70,6 @@ export declare const districtEndpoints: {
58
70
  file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
59
71
  }, {}>>;
60
72
  division_keys: z.ZodArray<z.ZodString>;
61
- short_name: z.ZodNullable<z.ZodString>;
62
- event_type_string: z.ZodString;
63
- week: z.ZodNullable<z.ZodNumber>;
64
- address: z.ZodNullable<z.ZodString>;
65
- gmaps_place_id: z.ZodNullable<z.ZodString>;
66
- gmaps_url: z.ZodNullable<z.ZodString>;
67
- lat: z.ZodNullable<z.ZodNumber>;
68
- lng: z.ZodNullable<z.ZodNumber>;
69
- location_name: z.ZodNullable<z.ZodString>;
70
- timezone: z.ZodNullable<z.ZodString>;
71
- first_event_id: z.ZodNullable<z.ZodString>;
72
- first_event_code: z.ZodNullable<z.ZodString>;
73
73
  parent_event_key: z.ZodNullable<z.ZodString>;
74
74
  playoff_type: z.ZodNullable<z.ZodInt>;
75
75
  playoff_type_string: z.ZodNullable<z.ZodString>;
@@ -4,12 +4,6 @@ export declare const eventEndpoints: {
4
4
  schema: z.ZodArray<z.ZodObject<{
5
5
  key: z.ZodString;
6
6
  name: z.ZodString;
7
- city: z.ZodNullable<z.ZodString>;
8
- state_prov: z.ZodNullable<z.ZodString>;
9
- country: z.ZodNullable<z.ZodString>;
10
- postal_code: z.ZodNullable<z.ZodString>;
11
- website: z.ZodNullable<z.ZodString>;
12
- year: z.ZodInt;
13
7
  event_code: z.ZodString;
14
8
  event_type: z.ZodInt;
15
9
  district: z.ZodNullable<z.ZodObject<{
@@ -18,8 +12,26 @@ export declare const eventEndpoints: {
18
12
  key: z.ZodString;
19
13
  year: z.ZodInt;
20
14
  }, {}>>;
15
+ city: z.ZodNullable<z.ZodString>;
16
+ state_prov: z.ZodNullable<z.ZodString>;
17
+ country: z.ZodNullable<z.ZodString>;
21
18
  start_date: z.coerce.ZodCoercedDate;
22
19
  end_date: z.coerce.ZodCoercedDate;
20
+ year: z.ZodInt;
21
+ short_name: z.ZodNullable<z.ZodString>;
22
+ event_type_string: z.ZodString;
23
+ week: z.ZodNullable<z.ZodNumber>;
24
+ address: z.ZodNullable<z.ZodString>;
25
+ postal_code: z.ZodNullable<z.ZodString>;
26
+ gmaps_place_id: z.ZodNullable<z.ZodString>;
27
+ gmaps_url: z.ZodNullable<z.ZodString>;
28
+ lat: z.ZodNullable<z.ZodNumber>;
29
+ lng: z.ZodNullable<z.ZodNumber>;
30
+ location_name: z.ZodNullable<z.ZodString>;
31
+ timezone: z.ZodNullable<z.ZodString>;
32
+ website: z.ZodNullable<z.ZodString>;
33
+ first_event_id: z.ZodNullable<z.ZodString>;
34
+ first_event_code: z.ZodNullable<z.ZodString>;
23
35
  webcasts: z.ZodArray<z.ZodObject<{
24
36
  type: z.ZodEnum<{
25
37
  youtube: "youtube";
@@ -40,18 +52,6 @@ export declare const eventEndpoints: {
40
52
  file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
41
53
  }, {}>>;
42
54
  division_keys: z.ZodArray<z.ZodString>;
43
- short_name: z.ZodNullable<z.ZodString>;
44
- event_type_string: z.ZodString;
45
- week: z.ZodNullable<z.ZodNumber>;
46
- address: z.ZodNullable<z.ZodString>;
47
- gmaps_place_id: z.ZodNullable<z.ZodString>;
48
- gmaps_url: z.ZodNullable<z.ZodString>;
49
- lat: z.ZodNullable<z.ZodNumber>;
50
- lng: z.ZodNullable<z.ZodNumber>;
51
- location_name: z.ZodNullable<z.ZodString>;
52
- timezone: z.ZodNullable<z.ZodString>;
53
- first_event_id: z.ZodNullable<z.ZodString>;
54
- first_event_code: z.ZodNullable<z.ZodString>;
55
55
  parent_event_key: z.ZodNullable<z.ZodString>;
56
56
  playoff_type: z.ZodNullable<z.ZodInt>;
57
57
  playoff_type_string: z.ZodNullable<z.ZodString>;
@@ -87,12 +87,6 @@ export declare const eventEndpoints: {
87
87
  schema: z.ZodObject<{
88
88
  key: z.ZodString;
89
89
  name: z.ZodString;
90
- city: z.ZodNullable<z.ZodString>;
91
- state_prov: z.ZodNullable<z.ZodString>;
92
- country: z.ZodNullable<z.ZodString>;
93
- postal_code: z.ZodNullable<z.ZodString>;
94
- website: z.ZodNullable<z.ZodString>;
95
- year: z.ZodInt;
96
90
  event_code: z.ZodString;
97
91
  event_type: z.ZodInt;
98
92
  district: z.ZodNullable<z.ZodObject<{
@@ -101,8 +95,26 @@ export declare const eventEndpoints: {
101
95
  key: z.ZodString;
102
96
  year: z.ZodInt;
103
97
  }, {}>>;
98
+ city: z.ZodNullable<z.ZodString>;
99
+ state_prov: z.ZodNullable<z.ZodString>;
100
+ country: z.ZodNullable<z.ZodString>;
104
101
  start_date: z.coerce.ZodCoercedDate;
105
102
  end_date: z.coerce.ZodCoercedDate;
103
+ year: z.ZodInt;
104
+ short_name: z.ZodNullable<z.ZodString>;
105
+ event_type_string: z.ZodString;
106
+ week: z.ZodNullable<z.ZodNumber>;
107
+ address: z.ZodNullable<z.ZodString>;
108
+ postal_code: z.ZodNullable<z.ZodString>;
109
+ gmaps_place_id: z.ZodNullable<z.ZodString>;
110
+ gmaps_url: z.ZodNullable<z.ZodString>;
111
+ lat: z.ZodNullable<z.ZodNumber>;
112
+ lng: z.ZodNullable<z.ZodNumber>;
113
+ location_name: z.ZodNullable<z.ZodString>;
114
+ timezone: z.ZodNullable<z.ZodString>;
115
+ website: z.ZodNullable<z.ZodString>;
116
+ first_event_id: z.ZodNullable<z.ZodString>;
117
+ first_event_code: z.ZodNullable<z.ZodString>;
106
118
  webcasts: z.ZodArray<z.ZodObject<{
107
119
  type: z.ZodEnum<{
108
120
  youtube: "youtube";
@@ -123,18 +135,6 @@ export declare const eventEndpoints: {
123
135
  file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
124
136
  }, {}>>;
125
137
  division_keys: z.ZodArray<z.ZodString>;
126
- short_name: z.ZodNullable<z.ZodString>;
127
- event_type_string: z.ZodString;
128
- week: z.ZodNullable<z.ZodNumber>;
129
- address: z.ZodNullable<z.ZodString>;
130
- gmaps_place_id: z.ZodNullable<z.ZodString>;
131
- gmaps_url: z.ZodNullable<z.ZodString>;
132
- lat: z.ZodNullable<z.ZodNumber>;
133
- lng: z.ZodNullable<z.ZodNumber>;
134
- location_name: z.ZodNullable<z.ZodString>;
135
- timezone: z.ZodNullable<z.ZodString>;
136
- first_event_id: z.ZodNullable<z.ZodString>;
137
- first_event_code: z.ZodNullable<z.ZodString>;
138
138
  parent_event_key: z.ZodNullable<z.ZodString>;
139
139
  playoff_type: z.ZodNullable<z.ZodInt>;
140
140
  playoff_type_string: z.ZodNullable<z.ZodString>;
@@ -380,9 +380,7 @@ export declare const eventEndpoints: {
380
380
  };
381
381
  "/event/{event_key}/matches": {
382
382
  schema: z.ZodArray<z.ZodObject<{
383
- time: z.ZodNullable<z.ZodNumber>;
384
383
  key: z.ZodString;
385
- event_key: z.ZodString;
386
384
  comp_level: z.ZodEnum<{
387
385
  qm: "qm";
388
386
  ef: "ef";
@@ -411,12 +409,10 @@ export declare const eventEndpoints: {
411
409
  red: "red";
412
410
  blue: "blue";
413
411
  }>;
412
+ event_key: z.ZodString;
413
+ time: z.ZodNullable<z.ZodNumber>;
414
414
  actual_time: z.ZodNullable<z.ZodNumber>;
415
415
  predicted_time: z.ZodNullable<z.ZodNumber>;
416
- videos: z.ZodArray<z.ZodObject<{
417
- type: z.ZodString;
418
- key: z.ZodString;
419
- }, {}>>;
420
416
  score_breakdown: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
421
417
  red: z.ZodObject<{
422
418
  adjust_points: z.ZodOptional<z.ZodNumber>;
@@ -13278,6 +13274,10 @@ export declare const eventEndpoints: {
13278
13274
  wallAlgaeCount: z.ZodOptional<z.ZodNumber>;
13279
13275
  }, {}>;
13280
13276
  }, {}>]>>;
13277
+ videos: z.ZodArray<z.ZodObject<{
13278
+ type: z.ZodString;
13279
+ key: z.ZodString;
13280
+ }, {}>>;
13281
13281
  }, {}>>;
13282
13282
  arguments: z.ZodTuple<[z.ZodString], null>;
13283
13283
  };
@@ -2,9 +2,7 @@ import { z } from "zod";
2
2
  export declare const matchEndpoints: {
3
3
  "/match/{match_key}": {
4
4
  schema: z.ZodObject<{
5
- time: z.ZodNullable<z.ZodNumber>;
6
5
  key: z.ZodString;
7
- event_key: z.ZodString;
8
6
  comp_level: z.ZodEnum<{
9
7
  qm: "qm";
10
8
  ef: "ef";
@@ -33,12 +31,10 @@ export declare const matchEndpoints: {
33
31
  red: "red";
34
32
  blue: "blue";
35
33
  }>;
34
+ event_key: z.ZodString;
35
+ time: z.ZodNullable<z.ZodNumber>;
36
36
  actual_time: z.ZodNullable<z.ZodNumber>;
37
37
  predicted_time: z.ZodNullable<z.ZodNumber>;
38
- videos: z.ZodArray<z.ZodObject<{
39
- type: z.ZodString;
40
- key: z.ZodString;
41
- }, {}>>;
42
38
  score_breakdown: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
43
39
  red: z.ZodObject<{
44
40
  adjust_points: z.ZodOptional<z.ZodNumber>;
@@ -12900,6 +12896,10 @@ export declare const matchEndpoints: {
12900
12896
  wallAlgaeCount: z.ZodOptional<z.ZodNumber>;
12901
12897
  }, {}>;
12902
12898
  }, {}>]>>;
12899
+ videos: z.ZodArray<z.ZodObject<{
12900
+ type: z.ZodString;
12901
+ key: z.ZodString;
12902
+ }, {}>>;
12903
12903
  }, {}>;
12904
12904
  arguments: z.ZodTuple<[z.ZodString], null>;
12905
12905
  };
@@ -94,12 +94,6 @@ export declare const teamEndpoints: {
94
94
  events: z.ZodArray<z.ZodObject<{
95
95
  key: z.ZodString;
96
96
  name: z.ZodString;
97
- city: z.ZodNullable<z.ZodString>;
98
- state_prov: z.ZodNullable<z.ZodString>;
99
- country: z.ZodNullable<z.ZodString>;
100
- postal_code: z.ZodNullable<z.ZodString>;
101
- website: z.ZodNullable<z.ZodString>;
102
- year: z.ZodInt;
103
97
  event_code: z.ZodString;
104
98
  event_type: z.ZodInt;
105
99
  district: z.ZodNullable<z.ZodObject<{
@@ -108,8 +102,26 @@ export declare const teamEndpoints: {
108
102
  key: z.ZodString;
109
103
  year: z.ZodInt;
110
104
  }, {}>>;
105
+ city: z.ZodNullable<z.ZodString>;
106
+ state_prov: z.ZodNullable<z.ZodString>;
107
+ country: z.ZodNullable<z.ZodString>;
111
108
  start_date: z.coerce.ZodCoercedDate;
112
109
  end_date: z.coerce.ZodCoercedDate;
110
+ year: z.ZodInt;
111
+ short_name: z.ZodNullable<z.ZodString>;
112
+ event_type_string: z.ZodString;
113
+ week: z.ZodNullable<z.ZodNumber>;
114
+ address: z.ZodNullable<z.ZodString>;
115
+ postal_code: z.ZodNullable<z.ZodString>;
116
+ gmaps_place_id: z.ZodNullable<z.ZodString>;
117
+ gmaps_url: z.ZodNullable<z.ZodString>;
118
+ lat: z.ZodNullable<z.ZodNumber>;
119
+ lng: z.ZodNullable<z.ZodNumber>;
120
+ location_name: z.ZodNullable<z.ZodString>;
121
+ timezone: z.ZodNullable<z.ZodString>;
122
+ website: z.ZodNullable<z.ZodString>;
123
+ first_event_id: z.ZodNullable<z.ZodString>;
124
+ first_event_code: z.ZodNullable<z.ZodString>;
113
125
  webcasts: z.ZodArray<z.ZodObject<{
114
126
  type: z.ZodEnum<{
115
127
  youtube: "youtube";
@@ -130,18 +142,6 @@ export declare const teamEndpoints: {
130
142
  file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
131
143
  }, {}>>;
132
144
  division_keys: z.ZodArray<z.ZodString>;
133
- short_name: z.ZodNullable<z.ZodString>;
134
- event_type_string: z.ZodString;
135
- week: z.ZodNullable<z.ZodNumber>;
136
- address: z.ZodNullable<z.ZodString>;
137
- gmaps_place_id: z.ZodNullable<z.ZodString>;
138
- gmaps_url: z.ZodNullable<z.ZodString>;
139
- lat: z.ZodNullable<z.ZodNumber>;
140
- lng: z.ZodNullable<z.ZodNumber>;
141
- location_name: z.ZodNullable<z.ZodString>;
142
- timezone: z.ZodNullable<z.ZodString>;
143
- first_event_id: z.ZodNullable<z.ZodString>;
144
- first_event_code: z.ZodNullable<z.ZodString>;
145
145
  parent_event_key: z.ZodNullable<z.ZodString>;
146
146
  playoff_type: z.ZodNullable<z.ZodInt>;
147
147
  playoff_type_string: z.ZodNullable<z.ZodString>;
@@ -185,12 +185,6 @@ export declare const teamEndpoints: {
185
185
  schema: z.ZodArray<z.ZodObject<{
186
186
  key: z.ZodString;
187
187
  name: z.ZodString;
188
- city: z.ZodNullable<z.ZodString>;
189
- state_prov: z.ZodNullable<z.ZodString>;
190
- country: z.ZodNullable<z.ZodString>;
191
- postal_code: z.ZodNullable<z.ZodString>;
192
- website: z.ZodNullable<z.ZodString>;
193
- year: z.ZodInt;
194
188
  event_code: z.ZodString;
195
189
  event_type: z.ZodInt;
196
190
  district: z.ZodNullable<z.ZodObject<{
@@ -199,8 +193,26 @@ export declare const teamEndpoints: {
199
193
  key: z.ZodString;
200
194
  year: z.ZodInt;
201
195
  }, {}>>;
196
+ city: z.ZodNullable<z.ZodString>;
197
+ state_prov: z.ZodNullable<z.ZodString>;
198
+ country: z.ZodNullable<z.ZodString>;
202
199
  start_date: z.coerce.ZodCoercedDate;
203
200
  end_date: z.coerce.ZodCoercedDate;
201
+ year: z.ZodInt;
202
+ short_name: z.ZodNullable<z.ZodString>;
203
+ event_type_string: z.ZodString;
204
+ week: z.ZodNullable<z.ZodNumber>;
205
+ address: z.ZodNullable<z.ZodString>;
206
+ postal_code: z.ZodNullable<z.ZodString>;
207
+ gmaps_place_id: z.ZodNullable<z.ZodString>;
208
+ gmaps_url: z.ZodNullable<z.ZodString>;
209
+ lat: z.ZodNullable<z.ZodNumber>;
210
+ lng: z.ZodNullable<z.ZodNumber>;
211
+ location_name: z.ZodNullable<z.ZodString>;
212
+ timezone: z.ZodNullable<z.ZodString>;
213
+ website: z.ZodNullable<z.ZodString>;
214
+ first_event_id: z.ZodNullable<z.ZodString>;
215
+ first_event_code: z.ZodNullable<z.ZodString>;
204
216
  webcasts: z.ZodArray<z.ZodObject<{
205
217
  type: z.ZodEnum<{
206
218
  youtube: "youtube";
@@ -221,18 +233,6 @@ export declare const teamEndpoints: {
221
233
  file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
222
234
  }, {}>>;
223
235
  division_keys: z.ZodArray<z.ZodString>;
224
- short_name: z.ZodNullable<z.ZodString>;
225
- event_type_string: z.ZodString;
226
- week: z.ZodNullable<z.ZodNumber>;
227
- address: z.ZodNullable<z.ZodString>;
228
- gmaps_place_id: z.ZodNullable<z.ZodString>;
229
- gmaps_url: z.ZodNullable<z.ZodString>;
230
- lat: z.ZodNullable<z.ZodNumber>;
231
- lng: z.ZodNullable<z.ZodNumber>;
232
- location_name: z.ZodNullable<z.ZodString>;
233
- timezone: z.ZodNullable<z.ZodString>;
234
- first_event_id: z.ZodNullable<z.ZodString>;
235
- first_event_code: z.ZodNullable<z.ZodString>;
236
236
  parent_event_key: z.ZodNullable<z.ZodString>;
237
237
  playoff_type: z.ZodNullable<z.ZodInt>;
238
238
  playoff_type_string: z.ZodNullable<z.ZodString>;
@@ -268,12 +268,6 @@ export declare const teamEndpoints: {
268
268
  schema: z.ZodArray<z.ZodObject<{
269
269
  key: z.ZodString;
270
270
  name: z.ZodString;
271
- city: z.ZodNullable<z.ZodString>;
272
- state_prov: z.ZodNullable<z.ZodString>;
273
- country: z.ZodNullable<z.ZodString>;
274
- postal_code: z.ZodNullable<z.ZodString>;
275
- website: z.ZodNullable<z.ZodString>;
276
- year: z.ZodInt;
277
271
  event_code: z.ZodString;
278
272
  event_type: z.ZodInt;
279
273
  district: z.ZodNullable<z.ZodObject<{
@@ -282,8 +276,26 @@ export declare const teamEndpoints: {
282
276
  key: z.ZodString;
283
277
  year: z.ZodInt;
284
278
  }, {}>>;
279
+ city: z.ZodNullable<z.ZodString>;
280
+ state_prov: z.ZodNullable<z.ZodString>;
281
+ country: z.ZodNullable<z.ZodString>;
285
282
  start_date: z.coerce.ZodCoercedDate;
286
283
  end_date: z.coerce.ZodCoercedDate;
284
+ year: z.ZodInt;
285
+ short_name: z.ZodNullable<z.ZodString>;
286
+ event_type_string: z.ZodString;
287
+ week: z.ZodNullable<z.ZodNumber>;
288
+ address: z.ZodNullable<z.ZodString>;
289
+ postal_code: z.ZodNullable<z.ZodString>;
290
+ gmaps_place_id: z.ZodNullable<z.ZodString>;
291
+ gmaps_url: z.ZodNullable<z.ZodString>;
292
+ lat: z.ZodNullable<z.ZodNumber>;
293
+ lng: z.ZodNullable<z.ZodNumber>;
294
+ location_name: z.ZodNullable<z.ZodString>;
295
+ timezone: z.ZodNullable<z.ZodString>;
296
+ website: z.ZodNullable<z.ZodString>;
297
+ first_event_id: z.ZodNullable<z.ZodString>;
298
+ first_event_code: z.ZodNullable<z.ZodString>;
287
299
  webcasts: z.ZodArray<z.ZodObject<{
288
300
  type: z.ZodEnum<{
289
301
  youtube: "youtube";
@@ -304,18 +316,6 @@ export declare const teamEndpoints: {
304
316
  file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
305
317
  }, {}>>;
306
318
  division_keys: z.ZodArray<z.ZodString>;
307
- short_name: z.ZodNullable<z.ZodString>;
308
- event_type_string: z.ZodString;
309
- week: z.ZodNullable<z.ZodNumber>;
310
- address: z.ZodNullable<z.ZodString>;
311
- gmaps_place_id: z.ZodNullable<z.ZodString>;
312
- gmaps_url: z.ZodNullable<z.ZodString>;
313
- lat: z.ZodNullable<z.ZodNumber>;
314
- lng: z.ZodNullable<z.ZodNumber>;
315
- location_name: z.ZodNullable<z.ZodString>;
316
- timezone: z.ZodNullable<z.ZodString>;
317
- first_event_id: z.ZodNullable<z.ZodString>;
318
- first_event_code: z.ZodNullable<z.ZodString>;
319
319
  parent_event_key: z.ZodNullable<z.ZodString>;
320
320
  playoff_type: z.ZodNullable<z.ZodInt>;
321
321
  playoff_type_string: z.ZodNullable<z.ZodString>;
@@ -409,9 +409,7 @@ export declare const teamEndpoints: {
409
409
  };
410
410
  "/team/{team_key}/event/{event_key}/matches": {
411
411
  schema: z.ZodArray<z.ZodObject<{
412
- time: z.ZodNullable<z.ZodNumber>;
413
412
  key: z.ZodString;
414
- event_key: z.ZodString;
415
413
  comp_level: z.ZodEnum<{
416
414
  qm: "qm";
417
415
  ef: "ef";
@@ -440,12 +438,10 @@ export declare const teamEndpoints: {
440
438
  red: "red";
441
439
  blue: "blue";
442
440
  }>;
441
+ event_key: z.ZodString;
442
+ time: z.ZodNullable<z.ZodNumber>;
443
443
  actual_time: z.ZodNullable<z.ZodNumber>;
444
444
  predicted_time: z.ZodNullable<z.ZodNumber>;
445
- videos: z.ZodArray<z.ZodObject<{
446
- type: z.ZodString;
447
- key: z.ZodString;
448
- }, {}>>;
449
445
  score_breakdown: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
450
446
  red: z.ZodObject<{
451
447
  adjust_points: z.ZodOptional<z.ZodNumber>;
@@ -13307,6 +13303,10 @@ export declare const teamEndpoints: {
13307
13303
  wallAlgaeCount: z.ZodOptional<z.ZodNumber>;
13308
13304
  }, {}>;
13309
13305
  }, {}>]>>;
13306
+ videos: z.ZodArray<z.ZodObject<{
13307
+ type: z.ZodString;
13308
+ key: z.ZodString;
13309
+ }, {}>>;
13310
13310
  }, {}>>;
13311
13311
  arguments: z.ZodTuple<[z.ZodString, z.ZodString], null>;
13312
13312
  };
@@ -13453,9 +13453,7 @@ export declare const teamEndpoints: {
13453
13453
  };
13454
13454
  "/team/{team_key}/matches/{year}": {
13455
13455
  schema: z.ZodArray<z.ZodObject<{
13456
- time: z.ZodNullable<z.ZodNumber>;
13457
13456
  key: z.ZodString;
13458
- event_key: z.ZodString;
13459
13457
  comp_level: z.ZodEnum<{
13460
13458
  qm: "qm";
13461
13459
  ef: "ef";
@@ -13484,12 +13482,10 @@ export declare const teamEndpoints: {
13484
13482
  red: "red";
13485
13483
  blue: "blue";
13486
13484
  }>;
13485
+ event_key: z.ZodString;
13486
+ time: z.ZodNullable<z.ZodNumber>;
13487
13487
  actual_time: z.ZodNullable<z.ZodNumber>;
13488
13488
  predicted_time: z.ZodNullable<z.ZodNumber>;
13489
- videos: z.ZodArray<z.ZodObject<{
13490
- type: z.ZodString;
13491
- key: z.ZodString;
13492
- }, {}>>;
13493
13489
  score_breakdown: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
13494
13490
  red: z.ZodObject<{
13495
13491
  adjust_points: z.ZodOptional<z.ZodNumber>;
@@ -26351,6 +26347,10 @@ export declare const teamEndpoints: {
26351
26347
  wallAlgaeCount: z.ZodOptional<z.ZodNumber>;
26352
26348
  }, {}>;
26353
26349
  }, {}>]>>;
26350
+ videos: z.ZodArray<z.ZodObject<{
26351
+ type: z.ZodString;
26352
+ key: z.ZodString;
26353
+ }, {}>>;
26354
26354
  }, {}>>;
26355
26355
  arguments: z.ZodTuple<[z.ZodString, z.ZodNumber], null>;
26356
26356
  };
@@ -39,12 +39,6 @@ export declare const Event_Simple: z.ZodObject<{
39
39
  export declare const Event: z.ZodObject<{
40
40
  key: z.ZodString;
41
41
  name: z.ZodString;
42
- city: z.ZodNullable<z.ZodString>;
43
- state_prov: z.ZodNullable<z.ZodString>;
44
- country: z.ZodNullable<z.ZodString>;
45
- postal_code: z.ZodNullable<z.ZodString>;
46
- website: z.ZodNullable<z.ZodString>;
47
- year: z.ZodInt;
48
42
  event_code: z.ZodString;
49
43
  event_type: z.ZodInt;
50
44
  district: z.ZodNullable<z.ZodObject<{
@@ -53,8 +47,26 @@ export declare const Event: z.ZodObject<{
53
47
  key: z.ZodString;
54
48
  year: z.ZodInt;
55
49
  }, {}>>;
50
+ city: z.ZodNullable<z.ZodString>;
51
+ state_prov: z.ZodNullable<z.ZodString>;
52
+ country: z.ZodNullable<z.ZodString>;
56
53
  start_date: z.coerce.ZodCoercedDate;
57
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>;
58
70
  webcasts: z.ZodArray<z.ZodObject<{
59
71
  type: z.ZodEnum<{
60
72
  youtube: "youtube";
@@ -75,18 +87,6 @@ export declare const Event: z.ZodObject<{
75
87
  file: z.ZodOptional<z.ZodNullable<z.ZodString>>;
76
88
  }, {}>>;
77
89
  division_keys: z.ZodArray<z.ZodString>;
78
- short_name: z.ZodNullable<z.ZodString>;
79
- event_type_string: z.ZodString;
80
- week: z.ZodNullable<z.ZodNumber>;
81
- address: z.ZodNullable<z.ZodString>;
82
- gmaps_place_id: z.ZodNullable<z.ZodString>;
83
- gmaps_url: z.ZodNullable<z.ZodString>;
84
- lat: z.ZodNullable<z.ZodNumber>;
85
- lng: z.ZodNullable<z.ZodNumber>;
86
- location_name: z.ZodNullable<z.ZodString>;
87
- timezone: z.ZodNullable<z.ZodString>;
88
- first_event_id: z.ZodNullable<z.ZodString>;
89
- first_event_code: z.ZodNullable<z.ZodString>;
90
90
  parent_event_key: z.ZodNullable<z.ZodString>;
91
91
  playoff_type: z.ZodNullable<z.ZodInt>;
92
92
  playoff_type_string: z.ZodNullable<z.ZodString>;
@@ -1976,9 +1976,7 @@ export declare const Match_Simple: z.ZodObject<{
1976
1976
  predicted_time: z.ZodNullable<z.ZodNumber>;
1977
1977
  }, {}>;
1978
1978
  export declare const Match: z.ZodObject<{
1979
- time: z.ZodNullable<z.ZodNumber>;
1980
1979
  key: z.ZodString;
1981
- event_key: z.ZodString;
1982
1980
  comp_level: z.ZodEnum<{
1983
1981
  qm: "qm";
1984
1982
  ef: "ef";
@@ -2007,12 +2005,10 @@ export declare const Match: z.ZodObject<{
2007
2005
  red: "red";
2008
2006
  blue: "blue";
2009
2007
  }>;
2008
+ event_key: z.ZodString;
2009
+ time: z.ZodNullable<z.ZodNumber>;
2010
2010
  actual_time: z.ZodNullable<z.ZodNumber>;
2011
2011
  predicted_time: z.ZodNullable<z.ZodNumber>;
2012
- videos: z.ZodArray<z.ZodObject<{
2013
- type: z.ZodString;
2014
- key: z.ZodString;
2015
- }, {}>>;
2016
2012
  score_breakdown: z.ZodNullable<z.ZodUnion<readonly [z.ZodObject<{
2017
2013
  red: z.ZodObject<{
2018
2014
  adjust_points: z.ZodOptional<z.ZodNumber>;
@@ -14874,4 +14870,8 @@ export declare const Match: z.ZodObject<{
14874
14870
  wallAlgaeCount: z.ZodOptional<z.ZodNumber>;
14875
14871
  }, {}>;
14876
14872
  }, {}>]>>;
14873
+ videos: z.ZodArray<z.ZodObject<{
14874
+ type: z.ZodString;
14875
+ key: z.ZodString;
14876
+ }, {}>>;
14877
14877
  }, {}>;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "tbarequest",
3
- "version": "0.0.1",
3
+ "version": "0.0.2",
4
4
  "description": "A wrapper to fetch data from The Blue Alliance API",
5
5
  "type": "module",
6
6
  "main": "dist/index.js",
@@ -13,7 +13,7 @@
13
13
  "author": "",
14
14
  "license": "MIT",
15
15
  "dependencies": {
16
- "zod": "4.0.0-beta.20250415T232143"
16
+ "zod": "4.0.0-beta.20250430T185432"
17
17
  },
18
18
  "devDependencies": {
19
19
  "dotenv": "^16.4.7",