@sourceloop/scheduler-service / Exports / SubscriptionRepository
Class: SubscriptionRepository¶
Hierarchy¶
-
DefaultUserModifyCrudRepository
<Subscription
,undefined
|string
,SubscriptionRelations
,this
> & {}↳
SubscriptionRepository
Table of contents¶
Constructors¶
Properties¶
Methods¶
Constructors¶
constructor¶
• new SubscriptionRepository(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< Subscription, typeof Subscription.prototype.id, SubscriptionRelations \>, SubscriptionAuditOpts, ).constructor
Defined in¶
services/scheduler-service/src/repositories/subscription.repository.ts:37
Properties¶
calendar¶
• Readonly
calendar: BelongsToAccessor
<Calendar
, undefined
| string
>
Defined in¶
services/scheduler-service/src/repositories/subscription.repository.ts:32
calendarRepositoryGetter¶
• Protected
calendarRepositoryGetter: Getter
<CalendarRepository
>
Defined in¶
services/scheduler-service/src/repositories/subscription.repository.ts:45
getAuditLogRepository¶
• getAuditLogRepository: Getter
<AuditLogRepository
>
Defined in¶
services/scheduler-service/src/repositories/subscription.repository.ts:47
getCurrentUser¶
• Protected
Readonly
getCurrentUser: Getter
<undefined
| IAuthUserWithPermissions
<string
, string
, string
>>
Inherited from¶
ConditionalAuditRepositoryMixin( DefaultUserModifyCrudRepository< Subscription, typeof Subscription.prototype.id, SubscriptionRelations >, SubscriptionAuditOpts, ).getCurrentUser
Defined in¶
services/scheduler-service/src/repositories/subscription.repository.ts:41
Methods¶
save¶
▸ save(entity
, options?
): Promise
<Subscription
>
Parameters¶
Name | Type |
---|---|
entity |
Subscription |
options? |
Options |
Returns¶
Promise
<Subscription
>
Inherited from¶
ConditionalAuditRepositoryMixin( DefaultUserModifyCrudRepository< Subscription, typeof Subscription.prototype.id, SubscriptionRelations >, SubscriptionAuditOpts, ).save
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:13