random bun scripts that dont fit anywhere else
1export interface TBAApiOptions {
2 apiKey: string;
3 baseUrl?: string;
4}
5
6export interface TBAEvent {
7 address: string;
8 city: string;
9 country: string;
10 district: null | string;
11 division_keys: string[];
12 end_date: string;
13 event_code: string;
14 event_type: number;
15 event_type_string: string;
16 first_event_code: string;
17 first_event_id: null | string;
18 gmaps_place_id: string;
19 gmaps_url: string;
20 key: string;
21 lat: number;
22 lng: number;
23 location_name: string;
24 name: string;
25 parent_event_key: null | string;
26 playoff_type: number;
27 playoff_type_string: string;
28 postal_code: string;
29 short_name: string;
30 start_date: string;
31 state_prov: string;
32 timezone: string;
33 webcasts: Array<{
34 channel: string;
35 type: string;
36 }>;
37 website: null | string;
38 week: number;
39 year: number;
40}
41
42export interface TBATeam {
43 address: string | null;
44 city: string;
45 country: string;
46 gmaps_place_id: string | null;
47 gmaps_url: string | null;
48 key: string;
49 lat: number | null;
50 lng: number | null;
51 location_name: string | null;
52 motto: string | null;
53 name: string;
54 nickname: string;
55 postal_code: string | null;
56 rookie_year: number;
57 school_name: string;
58 state_prov: string;
59 team_number: number;
60 website: string | null;
61}