@sourceloop/in-mail-service / Exports / ThreadRepository
Class: ThreadRepository¶
Hierarchy¶
Table of contents¶
Constructors¶
Properties¶
- attachmentRepositoryGetter
- attachments
- getCurrentUser
- groupRepositoryGetter
- groups
- messageRepositoryGetter
- messages
Methods¶
Constructors¶
constructor¶
• new ThreadRepository(dataSource
, messageRepositoryGetter
, groupRepositoryGetter
, attachmentRepositoryGetter
, getCurrentUser
)
Parameters¶
Name | Type |
---|---|
dataSource |
DataSource |
messageRepositoryGetter |
Getter <MessageRepository > |
groupRepositoryGetter |
Getter <GroupRepository > |
attachmentRepositoryGetter |
Getter <AttachmentRepository > |
getCurrentUser |
Getter <undefined | IAuthUserWithPermissions <string , string , string >> |
Overrides¶
DefaultUserModifyCrudRepository< Thread, typeof Thread.prototype.id \>.constructor
Defined in¶
services/in-mail-service/src/repositories/thread.repository.ts:43
Properties¶
attachmentRepositoryGetter¶
• Protected
attachmentRepositoryGetter: Getter
<AttachmentRepository
>
Defined in¶
services/in-mail-service/src/repositories/thread.repository.ts:51
attachments¶
• Readonly
attachments: HasManyRepositoryFactory
<Attachment
, undefined
| string
>
Defined in¶
services/in-mail-service/src/repositories/thread.repository.ts:38
getCurrentUser¶
• Protected
Readonly
getCurrentUser: Getter
<undefined
| IAuthUserWithPermissions
<string
, string
, string
>>
Inherited from¶
DefaultUserModifyCrudRepository.getCurrentUser
Defined in¶
services/in-mail-service/src/repositories/thread.repository.ts:53
groupRepositoryGetter¶
• Protected
groupRepositoryGetter: Getter
<GroupRepository
>
Defined in¶
services/in-mail-service/src/repositories/thread.repository.ts:49
groups¶
• Readonly
groups: HasManyRepositoryFactory
<Group
, string
>
Defined in¶
services/in-mail-service/src/repositories/thread.repository.ts:33
messageRepositoryGetter¶
• Protected
messageRepositoryGetter: Getter
<MessageRepository
>
Defined in¶
services/in-mail-service/src/repositories/thread.repository.ts:47
messages¶
• Readonly
messages: HasManyRepositoryFactory
<Message
, string
>
Defined in¶
services/in-mail-service/src/repositories/thread.repository.ts:28
Methods¶
create¶
▸ create(entity
, options?
): Promise
<Thread
>
Parameters¶
Name | Type |
---|---|
entity |
DataObject <Thread > |
options? |
Options |
Returns¶
Promise
<Thread
>
Inherited from¶
DefaultUserModifyCrudRepository.create
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:11
createAll¶
▸ createAll(entities
, options?
): Promise
<Thread
[]>
Parameters¶
Name | Type |
---|---|
entities |
DataObject <Thread >[] |
options? |
Options |
Returns¶
Promise
<Thread
[]>
Inherited from¶
DefaultUserModifyCrudRepository.createAll
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:12
incrementOrCreate¶
▸ incrementOrCreate(id
, entity
, options?
): Promise
<Thread
>
Parameters¶
Name | Type |
---|---|
id |
undefined | string |
entity |
DataObject <Thread > |
options? |
AnyObject |
Returns¶
Promise
<Thread
>
Defined in¶
services/in-mail-service/src/repositories/thread.repository.ts:69
replaceById¶
▸ replaceById(id
, data
, options?
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
id |
string |
data |
DataObject <Thread > |
options? |
Options |
Returns¶
Promise
<void
>
Inherited from¶
DefaultUserModifyCrudRepository.replaceById
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:17
save¶
▸ save(entity
, options?
): Promise
<Thread
>
Parameters¶
Name | Type |
---|---|
entity |
Thread |
options? |
Options |
Returns¶
Promise
<Thread
>
Inherited from¶
DefaultUserModifyCrudRepository.save
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:13
update¶
▸ update(entity
, options?
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
entity |
Thread |
options? |
Options |
Returns¶
Promise
<void
>
Inherited from¶
DefaultUserModifyCrudRepository.update
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:14
updateAll¶
▸ updateAll(data
, where?
, options?
): Promise
<Count
>
Parameters¶
Name | Type |
---|---|
data |
DataObject <Thread > |
where? |
Where <Thread > |
options? |
Options |
Returns¶
Promise
<Count
>
Inherited from¶
DefaultUserModifyCrudRepository.updateAll
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:15
updateById¶
▸ updateById(id
, data
, options?
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
id |
string |
data |
DataObject <Thread > |
options? |
Options |
Returns¶
Promise
<void
>
Inherited from¶
DefaultUserModifyCrudRepository.updateById
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:16