tbarequest 1.0.1 → 1.0.3
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/dist/_tsup-dts-rollup.d.ts +8738 -0
- package/dist/index.d.ts +1 -3
- package/dist/index.js +1375 -64
- package/package.json +5 -2
- package/dist/types/endpoints/districts.d.ts +0 -161
- package/dist/types/endpoints/districts.js +0 -50
- package/dist/types/endpoints/events.d.ts +0 -1500
- package/dist/types/endpoints/events.js +0 -153
- package/dist/types/endpoints/index.d.ts +0 -25
- package/dist/types/endpoints/index.js +0 -25
- package/dist/types/endpoints/insights.d.ts +0 -29
- package/dist/types/endpoints/insights.js +0 -12
- package/dist/types/endpoints/matches.d.ts +0 -1101
- package/dist/types/endpoints/matches.js +0 -23
- package/dist/types/endpoints/regionalAdvancements.d.ts +0 -32
- package/dist/types/endpoints/regionalAdvancements.js +0 -12
- package/dist/types/endpoints/status.d.ts +0 -19
- package/dist/types/endpoints/status.js +0 -16
- package/dist/types/endpoints/teams.d.ts +0 -2713
- package/dist/types/endpoints/teams.js +0 -162
- package/dist/types/index.d.ts +0 -11
- package/dist/types/index.js +0 -1
- package/dist/types/schemas/districts.d.ts +0 -25
- package/dist/types/schemas/districts.js +0 -28
- package/dist/types/schemas/events.d.ts +0 -186
- package/dist/types/schemas/events.js +0 -109
- package/dist/types/schemas/insights.d.ts +0 -21
- package/dist/types/schemas/insights.js +0 -22
- package/dist/types/schemas/matches.d.ts +0 -2781
- package/dist/types/schemas/matches.js +0 -597
- package/dist/types/schemas/regionalAdvancements.d.ts +0 -22
- package/dist/types/schemas/regionalAdvancements.js +0 -23
- package/dist/types/schemas/status.d.ts +0 -4
- package/dist/types/schemas/status.js +0 -5
- package/dist/types/schemas/teams.d.ts +0 -52
- package/dist/types/schemas/teams.js +0 -41
- package/dist/utils.d.ts +0 -11
- package/dist/utils.js +0 -9
|
@@ -1,52 +0,0 @@
|
|
|
1
|
-
export declare const Team_Simple: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
2
|
-
key: string;
|
|
3
|
-
team_number: number;
|
|
4
|
-
nickname: string;
|
|
5
|
-
name: string;
|
|
6
|
-
city: string | null;
|
|
7
|
-
state_prov: string | null;
|
|
8
|
-
country: string | null;
|
|
9
|
-
}, {}>;
|
|
10
|
-
export declare const Team: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
11
|
-
key: string;
|
|
12
|
-
team_number: number;
|
|
13
|
-
nickname: string;
|
|
14
|
-
name: string;
|
|
15
|
-
city: string | null;
|
|
16
|
-
state_prov: string | null;
|
|
17
|
-
country: string | null;
|
|
18
|
-
postal_code: string | null;
|
|
19
|
-
rookie_year: number | null;
|
|
20
|
-
website?: string | null | undefined;
|
|
21
|
-
}, {}>;
|
|
22
|
-
export declare const Award_Recipient: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
23
|
-
team_key: string | null;
|
|
24
|
-
awardee: string | null;
|
|
25
|
-
}, {}>;
|
|
26
|
-
export declare const Award: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
27
|
-
name: string;
|
|
28
|
-
award_type: number;
|
|
29
|
-
event_key: string;
|
|
30
|
-
recipient_list: {
|
|
31
|
-
team_key: string | null;
|
|
32
|
-
awardee: string | null;
|
|
33
|
-
}[];
|
|
34
|
-
year: number;
|
|
35
|
-
}, {}>;
|
|
36
|
-
export declare const Team_Robot: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
37
|
-
year: number;
|
|
38
|
-
robot_name: string;
|
|
39
|
-
key: string;
|
|
40
|
-
team_key: string;
|
|
41
|
-
}, {}>;
|
|
42
|
-
export declare const Media: import("arktype/internal/methods/object.ts").ObjectType<{
|
|
43
|
-
type: string;
|
|
44
|
-
foreign_key: string;
|
|
45
|
-
team_keys: string[];
|
|
46
|
-
details?: {
|
|
47
|
-
[x: string]: unknown;
|
|
48
|
-
} | undefined;
|
|
49
|
-
preferred?: boolean | undefined;
|
|
50
|
-
direct_url?: string | undefined;
|
|
51
|
-
view_url?: string | undefined;
|
|
52
|
-
}, {}>;
|
|
@@ -1,41 +0,0 @@
|
|
|
1
|
-
import { type } from "arktype";
|
|
2
|
-
export const Team_Simple = type({
|
|
3
|
-
key: "string",
|
|
4
|
-
team_number: "number",
|
|
5
|
-
nickname: "string",
|
|
6
|
-
name: "string",
|
|
7
|
-
city: "string | null",
|
|
8
|
-
state_prov: "string | null",
|
|
9
|
-
country: "string | null",
|
|
10
|
-
});
|
|
11
|
-
export const Team = Team_Simple.and({
|
|
12
|
-
postal_code: "string | null",
|
|
13
|
-
"website?": "string | null",
|
|
14
|
-
rookie_year: "number | null",
|
|
15
|
-
});
|
|
16
|
-
export const Award_Recipient = type({
|
|
17
|
-
team_key: "string | null",
|
|
18
|
-
awardee: "string | null",
|
|
19
|
-
});
|
|
20
|
-
export const Award = type({
|
|
21
|
-
name: "string",
|
|
22
|
-
award_type: "number",
|
|
23
|
-
event_key: "string",
|
|
24
|
-
recipient_list: Award_Recipient.array(),
|
|
25
|
-
year: "number",
|
|
26
|
-
});
|
|
27
|
-
export const Team_Robot = type({
|
|
28
|
-
year: "number",
|
|
29
|
-
robot_name: "string",
|
|
30
|
-
key: "string",
|
|
31
|
-
team_key: "string",
|
|
32
|
-
});
|
|
33
|
-
export const Media = type({
|
|
34
|
-
type: "string",
|
|
35
|
-
foreign_key: "string",
|
|
36
|
-
"details?": type({ "[string]": "unknown" }),
|
|
37
|
-
preferred: "boolean?",
|
|
38
|
-
team_keys: "string[]",
|
|
39
|
-
direct_url: "string?",
|
|
40
|
-
view_url: "string?",
|
|
41
|
-
});
|
package/dist/utils.d.ts
DELETED
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
type Success<T> = {
|
|
2
|
-
data: T;
|
|
3
|
-
error: null;
|
|
4
|
-
};
|
|
5
|
-
type Failure<E> = {
|
|
6
|
-
data: null;
|
|
7
|
-
error: E;
|
|
8
|
-
};
|
|
9
|
-
export type Result<T, E = Error> = Success<T> | Failure<E>;
|
|
10
|
-
export declare function tryCatch<T, E = Error>(promise: Promise<T>): Promise<Result<T, E>>;
|
|
11
|
-
export {};
|