@sourceloop/chat-service / Exports / AttachmentFileRepository
Class: AttachmentFileRepository¶
Hierarchy¶
-
DefaultUserModifyCrudRepository
<AttachmentFile
, typeofid
,AttachmentFileRelations
>↳
AttachmentFileRepository
Table of contents¶
Constructors¶
Properties¶
Methods¶
Constructors¶
constructor¶
• new AttachmentFileRepository(dataSource
, getCurrentUser
, messageRepositoryGetter
)
Parameters¶
Name | Type |
---|---|
dataSource |
DataSource |
getCurrentUser |
Getter <undefined | IAuthUserWithPermissions <string , string , string >> |
messageRepositoryGetter |
Getter <MessageRepository > |
Overrides¶
DefaultUserModifyCrudRepository< AttachmentFile, typeof AttachmentFile.prototype.id, AttachmentFileRelations \>.constructor
Defined in¶
services/chat-service/src/repositories/attachment-file.repository.ts:23
Properties¶
getCurrentUser¶
• Protected
Readonly
getCurrentUser: Getter
<undefined
| IAuthUserWithPermissions
<string
, string
, string
>>
Inherited from¶
DefaultUserModifyCrudRepository.getCurrentUser
Defined in¶
services/chat-service/src/repositories/attachment-file.repository.ts:26
message¶
• Readonly
message: BelongsToAccessor
<Message
, undefined
| string
>
Defined in¶
services/chat-service/src/repositories/attachment-file.repository.ts:19
messageRepositoryGetter¶
• Protected
messageRepositoryGetter: Getter
<MessageRepository
>
Defined in¶
services/chat-service/src/repositories/attachment-file.repository.ts:30
Methods¶
create¶
▸ create(entity
, options?
): Promise
<AttachmentFile
>
Parameters¶
Name | Type |
---|---|
entity |
DataObject <AttachmentFile > |
options? |
Options |
Returns¶
Promise
<AttachmentFile
>
Inherited from¶
DefaultUserModifyCrudRepository.create
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:11
createAll¶
▸ createAll(entities
, options?
): Promise
<AttachmentFile
[]>
Parameters¶
Name | Type |
---|---|
entities |
DataObject <AttachmentFile >[] |
options? |
Options |
Returns¶
Promise
<AttachmentFile
[]>
Inherited from¶
DefaultUserModifyCrudRepository.createAll
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:12
replaceById¶
▸ replaceById(id
, data
, options?
): Promise
<void
>
Parameters¶
Name | Type |
---|---|
id |
undefined | string |
data |
DataObject <AttachmentFile > |
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
<AttachmentFile
>
Parameters¶
Name | Type |
---|---|
entity |
AttachmentFile |
options? |
Options |
Returns¶
Promise
<AttachmentFile
>
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 |
AttachmentFile |
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 <AttachmentFile > |
where? |
Where <AttachmentFile > |
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 |
undefined | string |
data |
DataObject <AttachmentFile > |
options? |
Options |
Returns¶
Promise
<void
>
Inherited from¶
DefaultUserModifyCrudRepository.updateById
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:16