UNPKG

@lovebowls/leagueelements

Version:

League Elements package for LoveBowls

57 lines 3.04 kB
/** * Generate matches for existing teams in a league * @param {Array} teams - Array of team objects with _id and name * @param {Object} leagueSettings - League settings object containing timesTeamsPlayOther * @param {boolean} [allFutureMatches=true] - Whether all matches should be future matches without results * @returns {Array} Array of match objects */ export function generateMatchesForTeams(teams: any[], leagueSettings?: Object, allFutureMatches?: boolean): any[]; /** * Generate scheduled matches for league reset with scheduling parameters * @param {Array} teams - Array of team objects with _id and name * @param {Object} leagueSettings - League settings object containing timesTeamsPlayOther * @param {Object} schedulingParams - Scheduling parameters from the reset modal * @returns {Array} Array of match objects with scheduled dates and null results */ export function generateResetMatches(teams: any[], leagueSettings?: Object, schedulingParams?: Object): any[]; /** * Export matches to CSV format and trigger download * @param {Array} matches - Array of match objects * @param {string} filename - Filename for the export (without extension) */ export function exportMatchesToCSV(matches: any[], filename?: string): void; /** * Export matches to Excel format and trigger download * @param {Array} matches - Array of match objects * @param {string} filename - Filename for the export (without extension) */ export function exportMatchesToExcel(matches: any[], filename?: string): Promise<void>; /** * Export matches to Word format and trigger download * @param {Array} matches - Array of match objects * @param {string} filename - Filename for the export (without extension) */ export function exportMatchesToWord(matches: any[], filename?: string): void; /** * Export matches to JSON format and trigger download * @param {Array} matches - Array of match objects * @param {string} filename - Filename for the export (without extension) */ export function exportMatchesToJSON(matches: any[], filename?: string): void; /** * Export league table to Excel format and trigger download * @param {Array} tableData - Array of team objects from the league table * @param {string} tableFilter - Current table filter (overall, home, away, form) * @param {string} leagueName - Name of the league * @param {string} filename - Filename for the export (without extension) */ export function exportTableToExcel(tableData: any[], tableFilter?: string, leagueName?: string, filename?: string): Promise<void>; /** * Export league table to Word format and trigger download * @param {Array} tableData - Array of team objects from the league table * @param {string} tableFilter - Current table filter (overall, home, away, form) * @param {string} leagueName - Name of the league * @param {string} filename - Filename for the export (without extension) */ export function exportTableToWord(tableData: any[], tableFilter?: string, leagueName?: string, filename?: string): void; //# sourceMappingURL=data.d.ts.map