import { Weekday } from "@prisma/client";

export const NUMBER_OF_TIMESHEETS_TO_RETURN = 2;
export const DAILY_LIMIT_HOURS  = 8;
export const WEEKLY_LIMIT_HOURS = 40;
export const PAY_PERIOD_ANCHOR  = 2023-12-17;
export const ANCHOR_ISO         = '2023-12-17';
export const PERIOD_DAYS        = 14;
export const PERIODS_PER_YEAR   = 26;
export const MS_PER_DAY         = 86_400_000;
export const MS_PER_WEEK        = 7 * 24 * 60 * 60 * 1000;


//REGEX CONSTANTS
export const DATE_ISO_FORMAT = /^\d{4}-\d{2}-\d{2}$/;
export const HH_MM_REGEX     = /^([01]\d|2[0-3]):[0-5]\d$/;


export const WEEKDAY: Weekday[] = ['SUN', 'MON', 'TUE', 'WED', 'THU', 'FRI', 'SAT'];