Skip to content

@sourceloop/scheduler-service / Exports / CalendarService

Class: CalendarService

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new CalendarService(workingHourRepository, calendarRepository)

Parameters

Name Type
workingHourRepository WorkingHourRepository
calendarRepository CalendarRepository

Defined in

services/scheduler-service/src/services/calendar.service.ts:15

Properties

calendarRepository

calendarRepository: CalendarRepository

Defined in

services/scheduler-service/src/services/calendar.service.ts:19


workingHourRepository

workingHourRepository: WorkingHourRepository

Defined in

services/scheduler-service/src/services/calendar.service.ts:17

Methods

checkPutValidations

checkPutValidations(workingHours, calendarId): Promise<void>

Parameters

Name Type
workingHours WorkingHour[]
calendarId string

Returns

Promise<void>

Defined in

services/scheduler-service/src/services/calendar.service.ts:22


createCalendar

createCalendar(calendarDTO): Promise<Calendar>

Parameters

Name Type
calendarDTO CalendarDTO

Returns

Promise<Calendar>

Defined in

services/scheduler-service/src/services/calendar.service.ts:37


deleteWorkingHours

deleteWorkingHours(workingHours, calendarId): Promise<void>

Parameters

Name Type
workingHours WorkingHour[]
calendarId string

Returns

Promise<void>

Defined in

services/scheduler-service/src/services/calendar.service.ts:60