UNPKG

@lovebowls/leagueelements

Version:

League Elements package for LoveBowls

47 lines 2.36 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 PDF format and trigger download * @param {Array} matches - Array of match objects * @param {string} filename - Filename for the export (without extension) */ export function exportMatchesToPDF(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; //# sourceMappingURL=data.d.ts.map