Skip to content

@sourceloop/scheduler-service / Exports / WorkingHourRepository

Class: WorkingHourRepository

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new WorkingHourRepository(dataSource, getCurrentUser, calendarRepositoryGetter, getAuditLogRepository)

Parameters

Name Type
dataSource DataSource
getCurrentUser Getter<undefined | IAuthUserWithPermissions<string, string, string>>
calendarRepositoryGetter Getter<CalendarRepository>
getAuditLogRepository Getter<AuditLogRepository>

Overrides

ConditionalAuditRepositoryMixin( DefaultUserModifyCrudRepository< WorkingHour, typeof WorkingHour.prototype.id, WorkingHourRelations \>, WorkingHourAuditOpts, ).constructor

Defined in

services/scheduler-service/src/repositories/working-hour.repository.ts:38

Properties

calendar

Readonly calendar: BelongsToAccessor<Calendar, undefined | string>

Defined in

services/scheduler-service/src/repositories/working-hour.repository.ts:33


calendarRepositoryGetter

Protected calendarRepositoryGetter: Getter<CalendarRepository>

Defined in

services/scheduler-service/src/repositories/working-hour.repository.ts:46


getAuditLogRepository

getAuditLogRepository: Getter<AuditLogRepository>

Defined in

services/scheduler-service/src/repositories/working-hour.repository.ts:48


getCurrentUser

Protected Readonly getCurrentUser: Getter<undefined | IAuthUserWithPermissions<string, string, string>>

Inherited from

ConditionalAuditRepositoryMixin( DefaultUserModifyCrudRepository< WorkingHour, typeof WorkingHour.prototype.id, WorkingHourRelations >, WorkingHourAuditOpts, ).getCurrentUser

Defined in

services/scheduler-service/src/repositories/working-hour.repository.ts:42

Methods

save

save(entity, options?): Promise<WorkingHour>

Parameters

Name Type
entity WorkingHour
options? Options

Returns

Promise<WorkingHour>

Inherited from

ConditionalAuditRepositoryMixin( DefaultUserModifyCrudRepository< WorkingHour, typeof WorkingHour.prototype.id, WorkingHourRelations >, WorkingHourAuditOpts, ).save

Defined in

packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:13