/**
 * Helpers for working with AMQ season ids.
 *
 * In the source data + schema, `seasonId` is stored as an integer 0..3:
 * - 0 = Winter
 * - 1 = Spring
 * - 2 = Summer
 * - 3 = Fall
 */
export type AmqSeasonId = 0 | 1 | 2 | 3;

export function seasonName(seasonId: number | AmqSeasonId): string {
	switch (seasonId) {
		case 0:
			return "Winter";
		case 1:
			return "Spring";
		case 2:
			return "Summer";
		case 3:
			return "Fall";
		default:
			return `Season ${seasonId}`;
	}
}
