-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.d.ts
40 lines (35 loc) · 853 Bytes
/
index.d.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
export class ScheduleConfiguration {
constructor (
workingDays: number[],
workingHoursStart: string,
workingHoursEnd: string,
breakHoursStart: string,
breakHoursEnd: string,
)
getWorkingDays (): number[]
getWorkingHoursStart (): string
getWorkingHoursEnd (): string
getBreakHoursStart (): string
getBreakHoursEnd (): string
}
export const WeekDays = {
SUNDAY: 0,
MONDAY: 1,
TUESDAY: 2,
WEDNESDAY: 3,
THURSDAY: 4,
FRIDAY: 5,
SATURDAY: 6
}
export class Appointment {
constructor (startTime: Date, duration: string)
get date (): Date
set date (value: Date): void
get endTime (): Date
get duration (): string
}
export class Schedule {
constructor (config: ScheduleConfiguration)
getAvailableTimeSlots (appointment: Appointment): string[]
addAppointment (appointment: Appointment): void
}