Skip to content

@sourceloop/scheduler-service / Exports / CalendarRepository

Class: CalendarRepository

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new CalendarRepository(dataSource, getCurrentUser, eventRepositoryGetter, workingHourRepositoryGetter, SubscriptionRepositoryGetter, getAuditLogRepository)

Parameters

Name Type
dataSource DataSource
getCurrentUser Getter<undefined | IAuthUserWithPermissions<string, string, string>>
eventRepositoryGetter Getter<EventRepository>
workingHourRepositoryGetter Getter<WorkingHourRepository>
SubscriptionRepositoryGetter Getter<SubscriptionRepository>
getAuditLogRepository Getter<AuditLogRepository>

Overrides

ConditionalAuditRepositoryMixin( DefaultUserModifyCrudRepository< Calendar, typeof Calendar.prototype.id, CalendarRelations \>, CalenderAuditOpts, ).constructor

Defined in

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

Properties

SubscriptionRepositoryGetter

Protected SubscriptionRepositoryGetter: Getter<SubscriptionRepository>

Defined in

services/scheduler-service/src/repositories/calendar.repository.ts:72


eventRepositoryGetter

Protected eventRepositoryGetter: Getter<EventRepository>

Defined in

services/scheduler-service/src/repositories/calendar.repository.ts:68


events

Readonly events: HasManyRepositoryFactory<Event<DataObject<Model>>, undefined | string>

Defined in

services/scheduler-service/src/repositories/calendar.repository.ts:45


getAuditLogRepository

getAuditLogRepository: Getter<AuditLogRepository>

Defined in

services/scheduler-service/src/repositories/calendar.repository.ts:74


getCurrentUser

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

Inherited from

ConditionalAuditRepositoryMixin( DefaultUserModifyCrudRepository< Calendar, typeof Calendar.prototype.id, CalendarRelations >, CalenderAuditOpts, ).getCurrentUser

Defined in

services/scheduler-service/src/repositories/calendar.repository.ts:64


subscriptions

Readonly subscriptions: HasManyRepositoryFactory<Subscription, undefined | string>

Defined in

services/scheduler-service/src/repositories/calendar.repository.ts:55


workingHourRepositoryGetter

Protected workingHourRepositoryGetter: Getter<WorkingHourRepository>

Defined in

services/scheduler-service/src/repositories/calendar.repository.ts:70


workingHours

Readonly workingHours: HasManyRepositoryFactory<WorkingHour, undefined | string>

Defined in

services/scheduler-service/src/repositories/calendar.repository.ts:50

Methods

save

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

Parameters

Name Type
entity Calendar
options? Options

Returns

Promise<Calendar>

Inherited from

ConditionalAuditRepositoryMixin( DefaultUserModifyCrudRepository< Calendar, typeof Calendar.prototype.id, CalendarRelations >, CalenderAuditOpts, ).save

Defined in

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