@sourceloop/in-mail-service / Exports / MessageRepository
Class: MessageRepository¶
Hierarchy¶
-
DefaultTransactionSoftCrudRepository
<Message
, typeofid
,MessageRelations
>↳
MessageRepository
Table of contents¶
Constructors¶
Properties¶
- attachmentRepositoryGetter
- attachments
- getCurrentUser
- groupRepositoryGetter
- groups
- meta
- metaRepositoryGetter
- thread
Methods¶
Constructors¶
constructor¶
• new MessageRepository(dataSource
, attachmentRepositoryGetter
, groupRepositoryGetter
, metaRepositoryGetter
, getCurrentUser
)
Parameters¶
Name | Type |
---|---|
dataSource |
DataSource |
attachmentRepositoryGetter |
Getter <AttachmentRepository > |
groupRepositoryGetter |
Getter <GroupRepository > |
metaRepositoryGetter |
Getter <MetaRepository > |
getCurrentUser |
Getter <undefined | IAuthUserWithPermissions <string , string , string >> |
Overrides¶
DefaultTransactionSoftCrudRepository< Message, typeof Message.prototype.id, MessageRelations \>.constructor
Defined in¶
services/in-mail-service/src/repositories/message.repository.ts:55
Properties¶
attachmentRepositoryGetter¶
• Protected
attachmentRepositoryGetter: Getter
<AttachmentRepository
>
Defined in¶
services/in-mail-service/src/repositories/message.repository.ts:59
attachments¶
• Readonly
attachments: HasManyRepositoryFactory
<Attachment
, undefined
| string
>
Defined in¶
services/in-mail-service/src/repositories/message.repository.ts:35
getCurrentUser¶
• Protected
Readonly
getCurrentUser: Getter
<undefined
| IAuthUserWithPermissions
<string
, string
, string
>>
Inherited from¶
DefaultTransactionSoftCrudRepository.getCurrentUser
Defined in¶
services/in-mail-service/src/repositories/message.repository.ts:65
groupRepositoryGetter¶
• Protected
groupRepositoryGetter: Getter
<GroupRepository
>
Defined in¶
services/in-mail-service/src/repositories/message.repository.ts:61
groups¶
• Readonly
groups: HasManyRepositoryFactory
<Group
, undefined
| string
>
Defined in¶
services/in-mail-service/src/repositories/message.repository.ts:40
meta¶
• Readonly
meta: HasManyRepositoryFactory
<Meta
, undefined
| string
>
Defined in¶
services/in-mail-service/src/repositories/message.repository.ts:45
metaRepositoryGetter¶
• Protected
metaRepositoryGetter: Getter
<MetaRepository
>
Defined in¶
services/in-mail-service/src/repositories/message.repository.ts:63
thread¶
• Readonly
thread: BelongsToAccessor
<Thread
, undefined
| string
>
Defined in¶
services/in-mail-service/src/repositories/message.repository.ts:50
Methods¶
createRelational¶
▸ createRelational(entity
, options?
): Promise
<Message
>
Parameters¶
Name | Type |
---|---|
entity |
DataObject <MessageWithRelations > |
options? |
AnyObject |
Returns¶
Promise
<Message
>
Defined in¶
services/in-mail-service/src/repositories/message.repository.ts:90