@silverbirder/caat
Version:
CaAT is the Google Apps Script Library that Calculate the Assigned Time.
31 lines (30 loc) • 668 B
TypeScript
import ICalendarApp from "../calendar/ICalendarApp";
export interface IHolidayWords {
morning: RegExp;
afternoon: RegExp;
all: RegExp;
}
export interface IGroupMember {
name: string;
match: RegExp;
}
export interface IHoliday {
morning: boolean;
afternoon: boolean;
all: boolean;
inMember: Array<string>;
toDate: Date;
title: string;
}
export interface IGroupConfig {
startDate: Date;
endDate: Date;
members: Array<IGroupMember>;
holidayWords: IHolidayWords;
}
export default interface IGroup {
id: string;
config: IGroupConfig;
calendarApp: ICalendarApp;
fetchHolidays(): Array<IHoliday>;
}