import { Partie } from "./Model/Partie"; import { Organisme } from "./Model/Organisme"; import { Club } from "./Model/Club"; import { ClubDetails } from "./Model/ClubDetails"; import { Joueur } from "./Model/Joueur"; import { JoueurClassementDetails } from "./Model/JoueurClassementDetails"; import { Classement } from "./Model/Classement"; import { Historique } from "./Model/Historique"; import { UnvalidatedPartie } from "./Model/UnvalidatedPartie"; import { Equipe } from "./Model/Equipe"; import { ClassementResultEquipe } from "./Model/ClassementResultEquipe"; import { Rencontre } from "./Model/Rencontre/Rencontre"; import { VirtualPoints } from "./Model/VirtualPoints"; import { RencontreDetails } from "./Model/Rencontre/RencontreDetails"; import { Actualite } from "./Model/Actualite"; import { Division } from "./Model/Division"; import { PouleResultEquipe } from "./Model/PouleResultEquipe"; import { Epreuve, ResultatIndividuel, ClassementIndividuel, PartieIndividuelle, ClassementCriterium } from "./Model/FFTTInterfaces"; import { ResponseData } from "./Model/ResponseData.interface"; export declare class FFTTAPI { private id; private password; private apiRequest; private PREMIER_JOUR_SAISON; /** * Dates de publication des matches (on part du principe qu'il n'y aura pas de matches officiels le 30 et 31 Décembre et que la publication aura lieu le 1er Janvier ...) * mois => jour **/ private DATES_PUBLICATION; constructor(id: string, password: string); initialize(): Promise; /** * @param string type (F = Fédération, Z = Zone, L=Ligue, D=Département) * @return Organisme[] * @throws Exception\InvalidURIParametersException * @throws Exception\URIPartNotValidException * @throws NoFFTTResponseException */ getOrganismes(type?: string): Promise; /** * @param int departementId * @return Club[] * @throws Exception\InvalidURIParametersException * @throws Exception\URIPartNotValidException * @throws NoFFTTResponseException */ getClubsByDepartement(departementId: number): Promise; /** * @param string name * @return Club[] */ getClubsByName(name: string): Promise; /** * @param string clubId * @return ClubDetails * @throws ClubNotFoundException * @throws Exception\InvalidURIParametersException * @throws Exception\URIPartNotValidException * @throws NoFFTTResponseException */ getClubDetails(clubId: string): Promise; /** * @param string clubId * @return Joueur[] * @throws ClubNotFoundException * @throws Exception\InvalidURIParametersException * @throws Exception\URIPartNotValidException */ getJoueursByClub(clubId: string): Promise; /** * @param string nom * @param string prenom * @return Joueur[] * @throws Exception\InvalidURIParametersException * @throws Exception\URIPartNotValidException * @throws NoFFTTResponseException */ getJoueursByNom(nom: string, prenom?: string): Promise; /** * @param string licenceId * @return JoueurDetails * @throws Exception\InvalidURIParametersException * @throws Exception\URIPartNotValidException * @throws JoueurNotFound */ getJoueurDetailsByLicence(licenceId: string): Promise; /** * @param string licenceId * @return Classement * @throws Exception\InvalidURIParametersException * @throws Exception\URIPartNotValidException * @throws JoueurNotFound */ getClassementJoueurByLicence(licence: string): Promise; getDivisionsByEpreuve(type: string, idEpreuve: number, idOrganisme: number): Promise; /** * @param string licenceId * @return Historique[] * @throws Exception\InvalidURIParametersException * @throws Exception\URIPartNotValidException * @throws JoueurNotFound */ getHistoriqueJoueurByLicence(licenceId: string): Promise; /** * @param string joueurId * @return Partie[] * @throws Exception\InvalidURIParametersException * @throws Exception\URIPartNotValidException */ getPartiesJoueurByLicence(joueurId: string): Promise; /** * Détermine si la date d'un match est hors de la plage des dates définissant les matches comme validés/comptabilisés */ isNouveauMoisVirtuel(date: Date): boolean; /** * @param string joueurId * @return UnvalidatedPartie[] * @throws InvalidURIParametersException * @throws URIPartNotValidException */ getUnvalidatedPartiesJoueurByLicence(joueurId: string): Promise; /** * @param string joueurId * @return VirtualPoints Objet contenant les points gagnés/perdus et le classement virtuel du joueur */ getJoueurVirtualPoints(joueurId: string): Promise; /** * @param string joueurId * @return number Points mensuels gagnés/perdus */ getVirtualPoints(joueurId: string): Promise; /** * @param string clubId * @param string|null type * @return Equipe[] * @throws Exception\InvalidURIParametersException * @throws Exception\URIPartNotValidException * @throws NoFFTTResponseException */ getEquipesByClub(clubId: string, type?: string | null): Promise; /** * @param string lienDivision * @return EquipePoule[] * @throws Exception\InvalidURIParametersException * @throws Exception\URIPartNotValidException * @throws NoFFTTResponseException */ getClassementPouleByLienDivision(d1: number, action: string | null, cx_poule?: number | null, lienDivision?: string | null): Promise; /** * @param string lienDivision * @return Rencontre[] * @throws Exception\InvalidURIParametersException * @throws Exception\URIPartNotValidException * @throws NoFFTTResponseException */ getRencontrePouleByLienDivision(lienDivision: string): Promise; /** * @param Equipe equipe * @return Rencontre[] * @throws Exception\InvalidURIParametersException * @throws Exception\URIPartNotValidException * @throws NoFFTTResponseException */ getProchainesRencontresEquipe(equipe: Equipe): Promise; /** * @param string lienRencontre * @param string clubEquipeA * @param string clubEquipeB * @return RencontreDetails * @throws Exception\InvalidURIParametersException * @throws Exception\URIPartNotValidException * @throws InvalidLienRencontre * @throws NoFFTTResponseException */ getDetailsRencontreByLien(lienRencontre: string, idClubEquipeA: string, idClubEquipeB: string): Promise; /** * @return Actualite[] * @throws Exception\InvalidURIParametersException * @throws Exception\URIPartNotValidException * @throws NoFFTTResponseException */ getActualites(): Promise; /** * Récupère la liste des épreuves pour un organisme * Endpoint: xml_epreuve.php * @param organismeId - ID unique de l'organisme * @param type - Type d'épreuve (E = Equipes, I = Individuelles) * @returns Promise - Liste des épreuves */ getEpreuves(organismeId: number, type: "E" | "I"): Promise; /** * Récupère les résultats d'une épreuve individuelle * Endpoint: xml_result_indiv.php * @param epreuveId - ID de l'épreuve * @param divisionId - ID de la division * @param action - Action demandée ('poule', 'classement', 'partie') * @param groupeId - ID du groupe (optionnel) * @returns Promise - Résultats selon l'action */ getResultatsIndividuels(epreuveId: number, divisionId: number, action: "poule" | "classement" | "partie", groupeId?: number): Promise; /** * Récupère le classement général d'une division du critérium * Endpoint: xml_res_cla.php * @param divisionId - ID de la division (optionnel, sinon récupéré automatiquement) * @returns Promise - Classement de la division */ getClassementCriterium(divisionId?: number): Promise; } //# sourceMappingURL=FFTTAPI.d.ts.map