Skip to content

@sourceloop/scheduler-service / Exports / AttachmentRepository

Class: AttachmentRepository

Hierarchy

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new AttachmentRepository(dataSource, getCurrentUser, eventRepositoryGetter, getAuditLogRepository)

Parameters

Name Type
dataSource DataSource
getCurrentUser Getter<undefined | IAuthUserWithPermissions<string, string, string>>
eventRepositoryGetter Getter<EventRepository>
getAuditLogRepository Getter<AuditLogRepository>

Overrides

ConditionalAuditRepositoryMixin( DefaultUserModifyCrudRepository< Attachment, typeof Attachment.prototype.id, AttachmentRelations \>, AttachementAuditOpts, ).constructor

Defined in

services/scheduler-service/src/repositories/attachment.repository.ts:38

Properties

event

Readonly event: BelongsToAccessor<Event<DataObject<Model>>, undefined | string>

Defined in

services/scheduler-service/src/repositories/attachment.repository.ts:33


eventRepositoryGetter

Protected eventRepositoryGetter: Getter<EventRepository>

Defined in

services/scheduler-service/src/repositories/attachment.repository.ts:46


getAuditLogRepository

getAuditLogRepository: Getter<AuditLogRepository>

Defined in

services/scheduler-service/src/repositories/attachment.repository.ts:48


getCurrentUser

Protected Readonly getCurrentUser: Getter<undefined | IAuthUserWithPermissions<string, string, string>>

Inherited from

ConditionalAuditRepositoryMixin( DefaultUserModifyCrudRepository< Attachment, typeof Attachment.prototype.id, AttachmentRelations >, AttachementAuditOpts, ).getCurrentUser

Defined in

services/scheduler-service/src/repositories/attachment.repository.ts:42

Methods

save

save(entity, options?): Promise<Attachment>

Parameters

Name Type
entity Attachment
options? Options

Returns

Promise<Attachment>

Inherited from

ConditionalAuditRepositoryMixin( DefaultUserModifyCrudRepository< Attachment, typeof Attachment.prototype.id, AttachmentRelations >, AttachementAuditOpts, ).save

Defined in

packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:13