Skip to content

@sourceloop/scheduler-service / Exports / EventService

Class: EventService

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new EventService(eventAttendeeViewRepository)

Parameters

Name Type
eventAttendeeViewRepository EventAttendeeViewRepository

Defined in

services/scheduler-service/src/services/event.service.ts:16

Properties

eventAttendeeViewRepository

eventAttendeeViewRepository: EventAttendeeViewRepository

Defined in

services/scheduler-service/src/services/event.service.ts:18

Methods

addToBusyArray

addToBusyArray(busy, entityList): IStartEndTime[]

Parameters

Name Type
busy IStartEndTime[]
entityList IStartEndTime[]

Returns

IStartEndTime[]

Defined in

services/scheduler-service/src/services/event.service.ts:99


getBusyDetails

getBusyDetails(item, timeMax, timeMin): Promise<{ busy: IStartEndTime[] = busyDetails }>

Parameters

Name Type
item EventAttendeeViewItemDTO
timeMax Date
timeMin Date

Returns

Promise<{ busy: IStartEndTime[] = busyDetails }>

Defined in

services/scheduler-service/src/services/event.service.ts:21


limitTimeToBoundaryValues

limitTimeToBoundaryValues(timesObj, startTime, endTime): Promise<IStartEndTime[]>

Parameters

Name Type
timesObj IStartEndTime[]
startTime Date
endTime Date

Returns

Promise<IStartEndTime[]>

Defined in

services/scheduler-service/src/services/event.service.ts:116


validateDateForTimeZone

validateDateForTimeZone(date): boolean

Parameters

Name Type
date Date

Returns

boolean

Defined in

services/scheduler-service/src/services/event.service.ts:89