iracing-api
Version:
Javascript client for iracing API
119 lines (118 loc) • 3.36 kB
TypeScript
import * as z from 'zod';
export declare const CountrySchema: z.ZodObject<{
countryName: z.ZodString;
countryCode: z.ZodString;
}, "strip", z.ZodTypeAny, {
countryName: string;
countryCode: string;
}, {
countryName: string;
countryCode: string;
}>;
export type Country = z.infer<typeof CountrySchema>;
export declare const LevelSchema: z.ZodObject<{
licenseId: z.ZodNumber;
licenseGroup: z.ZodNumber;
license: z.ZodString;
shortName: z.ZodString;
licenseLetter: z.ZodString;
color: z.ZodString;
}, "strip", z.ZodTypeAny, {
color: string;
shortName: string;
licenseId: number;
licenseGroup: number;
license: string;
licenseLetter: string;
}, {
color: string;
shortName: string;
licenseId: number;
licenseGroup: number;
license: string;
licenseLetter: string;
}>;
export type Level = z.infer<typeof LevelSchema>;
export declare const LicenseSchema: z.ZodObject<{
licenseGroup: z.ZodNumber;
groupName: z.ZodString;
minNumRaces: z.ZodUnion<[z.ZodNumber, z.ZodNull]>;
participationCredits: z.ZodNumber;
minSrToFastTrack: z.ZodUnion<[z.ZodNumber, z.ZodNull]>;
levels: z.ZodArray<z.ZodObject<{
licenseId: z.ZodNumber;
licenseGroup: z.ZodNumber;
license: z.ZodString;
shortName: z.ZodString;
licenseLetter: z.ZodString;
color: z.ZodString;
}, "strip", z.ZodTypeAny, {
color: string;
shortName: string;
licenseId: number;
licenseGroup: number;
license: string;
licenseLetter: string;
}, {
color: string;
shortName: string;
licenseId: number;
licenseGroup: number;
license: string;
licenseLetter: string;
}>, "many">;
minNumTt: z.ZodUnion<[z.ZodNumber, z.ZodNull]>;
}, "strip", z.ZodTypeAny, {
groupName: string;
licenseGroup: number;
minNumRaces: number | null;
participationCredits: number;
minSrToFastTrack: number | null;
levels: {
color: string;
shortName: string;
licenseId: number;
licenseGroup: number;
license: string;
licenseLetter: string;
}[];
minNumTt: number | null;
}, {
groupName: string;
licenseGroup: number;
minNumRaces: number | null;
participationCredits: number;
minSrToFastTrack: number | null;
levels: {
color: string;
shortName: string;
licenseId: number;
licenseGroup: number;
license: string;
licenseLetter: string;
}[];
minNumTt: number | null;
}>;
export type License = z.infer<typeof LicenseSchema>;
export declare const GetClubHistoryParamsSchema: z.ZodObject<{
seasonYear: z.ZodNumber;
seasonQuarter: z.ZodNumber;
}, "strip", z.ZodTypeAny, {
seasonYear: number;
seasonQuarter: number;
}, {
seasonYear: number;
seasonQuarter: number;
}>;
export type GetClubHistoryParams = z.infer<typeof GetClubHistoryParamsSchema>;
export declare const GetDriversParamsSchema: z.ZodObject<{
searchTerm: z.ZodString;
leagueId: z.ZodOptional<z.ZodNumber>;
}, "strip", z.ZodTypeAny, {
searchTerm: string;
leagueId?: number | undefined;
}, {
searchTerm: string;
leagueId?: number | undefined;
}>;
export type GetDriversParams = z.infer<typeof GetDriversParamsSchema>;