import { Event } from "./events"; import { Skills } from "./skills"; import { Rankings } from "./rankings"; import { Match } from "./matches"; import { Programs } from "./programs"; /** * Fetches team by number and program. * @param number Team Number * @param program Program * * @example * const team = await robotevents.teams.get('11101B'); * const team = await robotevents.teams.get('11101B', robotevents.Programs.V5RC); * */ export declare function get(number: string, program: Programs): Promise; /** * Fetches team by RobotEvents id. * @param id RobotEvents ID * * @example * const team = await robotevents.teams.get(86313); * */ export declare function get(id: number): Promise; /** * Contains methods mirrored from RobotEvents API for /teams. */ export declare class Team { id: number; number: string; team_name: string; robot_name: string; organization: string; registered: boolean; program: { id: number; name: string; code: string; }; grade: string; location: { venue: string; address_1: string; address_2: string; city: string; region: string; postcode: string; country: string; coordinates: { lat: number; lon: number; }; }; constructor(teamData?: Object); /** * Fetches events of a team. * * @param options Object of perameters, mirrored from RobotEvents API - /teams/{id}/events * * @example * const team = await robotevents.teams.get('11101B', robotevents.Programs.V5RC); * const events = await team.events({ * sku: 'RE-V5RC-24-5557', * season: '2024-2025', * start: '2024-08-01T00:00:00Z', * end: '2022-08-05T00:00:00Z', * level: 'Signature' * }); * */ events(options?: { sku?: string; season?: string; start?: string; end?: string; level?: string; }): Promise; /** * Fetches matches of a team. * * @param options Object of perameters, mirrored from RobotEvents API - /teams/{id}/matches * * @example * const team = await robotevents.teams.get('11101B', robotevents.Programs.V5RC); * const matches = await team.matches({ * eventId: 55557, * season: '2024-2025', * round: 'finals', * instance: 1, * matchnum: 1 * }); */ matches(options?: { eventId?: number; season?: string; round?: string; instance?: number; matchnum?: number; }): Promise; /** * Fetches rankings of a team. * * @param options Object of perameters, mirrored from RobotEvents API - /teams/{id}/rankings * * @example * const team = await robotevents.teams.get('11101B', robotevents.Programs.V5RC); * const rankings = await team.rankings({ * eventId: 55557, * rank: 7, * season: "2024-2025" * }); * */ rankings(options?: { eventId?: number; rank?: number; season?: string; }): Promise; /** * Fetches skills of a team. * * @param options Object of perameters, mirrored from RobotEvents API - /teams/{id}/skills * * @example * const team = await robotevents.teams.get('11101B', robotevents.Programs.V5RC); * const skills = await team.skills({ * eventId: 55557, * type: 'driver', * season: '2024-2025' * }); * */ skills(options?: { eventId?: number; type?: string; season?: string; }): Promise; /** * Fetches awards of a team. * * @param options Object of perameters, mirrored from RobotEvents API - /teams/{id}/awards * * @example * const team = await robotevents.teams.get('11101B', robotevents.Programs.V5RC); * const awards = await team.awards({ * eventId: 55557, * season: '2024-2025' * }); * */ awards(options?: { eventId?: number; season?: string; }): Promise; }