tbarequest 0.0.1
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/LICENSE +21 -0
- package/README.md +36 -0
- package/dist/index.d.ts +4 -0
- package/dist/index.js +46 -0
- package/dist/types/endpoints/districts.d.ts +173 -0
- package/dist/types/endpoints/districts.js +50 -0
- package/dist/types/endpoints/events.d.ts +13351 -0
- package/dist/types/endpoints/events.js +138 -0
- package/dist/types/endpoints/index.d.ts +26 -0
- package/dist/types/endpoints/index.js +25 -0
- package/dist/types/endpoints/insights.d.ts +34 -0
- package/dist/types/endpoints/insights.js +12 -0
- package/dist/types/endpoints/matches.d.ts +12944 -0
- package/dist/types/endpoints/matches.js +12 -0
- package/dist/types/endpoints/regionalAdvancements.d.ts +37 -0
- package/dist/types/endpoints/regionalAdvancements.js +12 -0
- package/dist/types/endpoints/status.d.ts +34 -0
- package/dist/types/endpoints/status.js +16 -0
- package/dist/types/endpoints/teams.d.ts +26447 -0
- package/dist/types/endpoints/teams.js +139 -0
- package/dist/types/index.d.ts +7 -0
- package/dist/types/index.js +1 -0
- package/dist/types/schemas/districts.d.ts +26 -0
- package/dist/types/schemas/districts.js +26 -0
- package/dist/types/schemas/events.d.ts +233 -0
- package/dist/types/schemas/events.js +107 -0
- package/dist/types/schemas/insights.d.ts +26 -0
- package/dist/types/schemas/insights.js +22 -0
- package/dist/types/schemas/matches.d.ts +14877 -0
- package/dist/types/schemas/matches.js +573 -0
- package/dist/types/schemas/regionalAdvancements.d.ts +29 -0
- package/dist/types/schemas/regionalAdvancements.js +23 -0
- package/dist/types/schemas/status.d.ts +5 -0
- package/dist/types/schemas/status.js +5 -0
- package/dist/types/schemas/teams.d.ts +51 -0
- package/dist/types/schemas/teams.js +41 -0
- package/dist/utils.d.ts +11 -0
- package/dist/utils.js +9 -0
- package/package.json +26 -0
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { Match, Match_Simple } from "../schemas/matches.js";
|
|
2
|
+
import { z } from "zod";
|
|
3
|
+
export const matchEndpoints = {
|
|
4
|
+
"/match/{match_key}": {
|
|
5
|
+
schema: Match,
|
|
6
|
+
arguments: z.tuple([z.string()]),
|
|
7
|
+
},
|
|
8
|
+
"/match/{match_key}/simple": {
|
|
9
|
+
schema: Match_Simple,
|
|
10
|
+
arguments: z.tuple([z.string()]),
|
|
11
|
+
},
|
|
12
|
+
};
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const regionalAdvancementEndpoints: {
|
|
3
|
+
"/regional_advancement/{year}": {
|
|
4
|
+
schema: z.ZodNullable<z.ZodRecord<z.ZodString, z.ZodObject<{
|
|
5
|
+
cmp: z.ZodBoolean;
|
|
6
|
+
cmp_status: z.ZodEnum<{
|
|
7
|
+
NotInvited: "NotInvited";
|
|
8
|
+
PreQualified: "PreQualified";
|
|
9
|
+
EventQualified: "EventQualified";
|
|
10
|
+
PoolQualified: "PoolQualified";
|
|
11
|
+
Declined: "Declined";
|
|
12
|
+
}>;
|
|
13
|
+
qualifying_event: z.ZodOptional<z.ZodString>;
|
|
14
|
+
qualifying_award_name: z.ZodOptional<z.ZodString>;
|
|
15
|
+
qualifying_pool_week: z.ZodOptional<z.ZodInt>;
|
|
16
|
+
}, {}>>>;
|
|
17
|
+
arguments: z.ZodTuple<[z.ZodInt], null>;
|
|
18
|
+
};
|
|
19
|
+
"/regional_advancement/{year}/rankings": {
|
|
20
|
+
schema: z.ZodArray<z.ZodObject<{
|
|
21
|
+
team_key: z.ZodString;
|
|
22
|
+
rank: z.ZodInt;
|
|
23
|
+
rookie_bonus: z.ZodOptional<z.ZodInt>;
|
|
24
|
+
point_total: z.ZodNumber;
|
|
25
|
+
single_event_bonus: z.ZodNumber;
|
|
26
|
+
event_points: z.ZodOptional<z.ZodArray<z.ZodObject<{
|
|
27
|
+
total: z.ZodNumber;
|
|
28
|
+
alliance_points: z.ZodNumber;
|
|
29
|
+
elim_points: z.ZodNumber;
|
|
30
|
+
award_points: z.ZodNumber;
|
|
31
|
+
event_key: z.ZodString;
|
|
32
|
+
qual_points: z.ZodNumber;
|
|
33
|
+
}, {}>>>;
|
|
34
|
+
}, {}>>;
|
|
35
|
+
arguments: z.ZodTuple<[z.ZodInt], null>;
|
|
36
|
+
};
|
|
37
|
+
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { Regional_Advancement, Regional_Ranking } from "../schemas/regionalAdvancements.js";
|
|
3
|
+
export const regionalAdvancementEndpoints = {
|
|
4
|
+
"/regional_advancement/{year}": {
|
|
5
|
+
schema: z.record(z.string(), Regional_Advancement).nullable(),
|
|
6
|
+
arguments: z.tuple([z.int()]),
|
|
7
|
+
},
|
|
8
|
+
"/regional_advancement/{year}/rankings": {
|
|
9
|
+
schema: z.array(Regional_Ranking),
|
|
10
|
+
arguments: z.tuple([z.int()]),
|
|
11
|
+
},
|
|
12
|
+
};
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
export declare const status: z.ZodObject<{
|
|
3
|
+
current_season: z.ZodInt;
|
|
4
|
+
max_season: z.ZodInt;
|
|
5
|
+
is_datafeed_down: z.ZodBoolean;
|
|
6
|
+
down_events: z.ZodArray<z.ZodString>;
|
|
7
|
+
ios: z.ZodObject<{
|
|
8
|
+
min_app_version: z.ZodInt;
|
|
9
|
+
latest_app_version: z.ZodInt;
|
|
10
|
+
}, {}>;
|
|
11
|
+
android: z.ZodObject<{
|
|
12
|
+
min_app_version: z.ZodInt;
|
|
13
|
+
latest_app_version: z.ZodInt;
|
|
14
|
+
}, {}>;
|
|
15
|
+
}, {}>;
|
|
16
|
+
export declare const statusEndpoints: {
|
|
17
|
+
"/status": {
|
|
18
|
+
schema: z.ZodObject<{
|
|
19
|
+
current_season: z.ZodInt;
|
|
20
|
+
max_season: z.ZodInt;
|
|
21
|
+
is_datafeed_down: z.ZodBoolean;
|
|
22
|
+
down_events: z.ZodArray<z.ZodString>;
|
|
23
|
+
ios: z.ZodObject<{
|
|
24
|
+
min_app_version: z.ZodInt;
|
|
25
|
+
latest_app_version: z.ZodInt;
|
|
26
|
+
}, {}>;
|
|
27
|
+
android: z.ZodObject<{
|
|
28
|
+
min_app_version: z.ZodInt;
|
|
29
|
+
latest_app_version: z.ZodInt;
|
|
30
|
+
}, {}>;
|
|
31
|
+
}, {}>;
|
|
32
|
+
arguments: z.ZodTuple<[], null>;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { z } from "zod";
|
|
2
|
+
import { API_Status_App_Version } from "../schemas/status.js";
|
|
3
|
+
export const status = z.object({
|
|
4
|
+
current_season: z.int(),
|
|
5
|
+
max_season: z.int(),
|
|
6
|
+
is_datafeed_down: z.boolean(),
|
|
7
|
+
down_events: z.array(z.string()),
|
|
8
|
+
ios: API_Status_App_Version,
|
|
9
|
+
android: API_Status_App_Version,
|
|
10
|
+
});
|
|
11
|
+
export const statusEndpoints = {
|
|
12
|
+
"/status": {
|
|
13
|
+
schema: status,
|
|
14
|
+
arguments: z.tuple([]),
|
|
15
|
+
},
|
|
16
|
+
};
|