@sourceloop/scheduler-service / Exports / EventRepository
Class: EventRepository¶
Hierarchy¶
-
DefaultUserModifyCrudRepository
<Event
<DataObject
<Model
>>,undefined
|string
,EventRelations
,this
> & {}↳
EventRepository
Table of contents¶
Constructors¶
Properties¶
- attachmentRepositoryGetter
- attachments
- attendeeRepositoryGetter
- attendees
- calendar
- calendarRepositoryGetter
- getAuditLogRepository
- getCurrentUser
- parentEvent
Methods¶
Constructors¶
constructor¶
• new EventRepository(dataSource
, getCurrentUser
, calendarRepositoryGetter
, attendeeRepositoryGetter
, attachmentRepositoryGetter
, getAuditLogRepository
)
Parameters¶
Name | Type |
---|---|
dataSource |
DataSource |
getCurrentUser |
Getter <undefined | IAuthUserWithPermissions <string , string , string >> |
calendarRepositoryGetter |
Getter <CalendarRepository > |
attendeeRepositoryGetter |
Getter <AttendeeRepository > |
attachmentRepositoryGetter |
Getter <AttachmentRepository > |
getAuditLogRepository |
Getter <AuditLogRepository > |
Overrides¶
ConditionalAuditRepositoryMixin( DefaultUserModifyCrudRepository< Event, typeof Event.prototype.id, EventRelations \>, EventAuditOpts, ).constructor
Defined in¶
services/scheduler-service/src/repositories/event.repository.ts:59
Properties¶
attachmentRepositoryGetter¶
• Protected
attachmentRepositoryGetter: Getter
<AttachmentRepository
>
Defined in¶
services/scheduler-service/src/repositories/event.repository.ts:71
attachments¶
• Readonly
attachments: HasManyRepositoryFactory
<Attachment
, undefined
| string
>
Defined in¶
services/scheduler-service/src/repositories/event.repository.ts:54
attendeeRepositoryGetter¶
• Protected
attendeeRepositoryGetter: Getter
<AttendeeRepository
>
Defined in¶
services/scheduler-service/src/repositories/event.repository.ts:69
attendees¶
• Readonly
attendees: HasManyRepositoryFactory
<Attendee
, undefined
| string
>
Defined in¶
services/scheduler-service/src/repositories/event.repository.ts:49
calendar¶
• Readonly
calendar: BelongsToAccessor
<Calendar
, undefined
| string
>
Defined in¶
services/scheduler-service/src/repositories/event.repository.ts:39
calendarRepositoryGetter¶
• Protected
calendarRepositoryGetter: Getter
<CalendarRepository
>
Defined in¶
services/scheduler-service/src/repositories/event.repository.ts:67
getAuditLogRepository¶
• getAuditLogRepository: Getter
<AuditLogRepository
>
Defined in¶
services/scheduler-service/src/repositories/event.repository.ts:73
getCurrentUser¶
• Protected
Readonly
getCurrentUser: Getter
<undefined
| IAuthUserWithPermissions
<string
, string
, string
>>
Inherited from¶
ConditionalAuditRepositoryMixin( DefaultUserModifyCrudRepository< Event, typeof Event.prototype.id, EventRelations >, EventAuditOpts, ).getCurrentUser
Defined in¶
services/scheduler-service/src/repositories/event.repository.ts:63
parentEvent¶
• Readonly
parentEvent: BelongsToAccessor
<Event
<DataObject
<Model
>>, undefined
| string
>
Defined in¶
services/scheduler-service/src/repositories/event.repository.ts:44
Methods¶
save¶
▸ save(entity
, options?
): Promise
<Event
<DataObject
<Model
>>>
Parameters¶
Name | Type |
---|---|
entity |
Event <DataObject <Model >> |
options? |
Options |
Returns¶
Promise
<Event
<DataObject
<Model
>>>
Inherited from¶
ConditionalAuditRepositoryMixin( DefaultUserModifyCrudRepository< Event, typeof Event.prototype.id, EventRelations >, EventAuditOpts, ).save
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:13