@sourceloop/task-service / Exports / EventWorkflowRepository
Class: EventWorkflowRepository¶
Hierarchy¶
-
DefaultUserModifyCrudRepository
<EventWorkflow
, typeofid
>↳
EventWorkflowRepository
Table of contents¶
Constructors¶
Properties¶
Methods¶
Constructors¶
constructor¶
• new EventWorkflowRepository(dataSource
, userGetter
, eventWorkflow
)
Parameters¶
Name | Type |
---|---|
dataSource |
DataSource |
userGetter |
Getter <IAuthUserWithPermissions <string , string , string >> |
eventWorkflow |
typeof Entity & { prototype : EventWorkflow } |
Overrides¶
DefaultUserModifyCrudRepository< EventWorkflow, typeof EventWorkflow.prototype.id \>.constructor
Defined in¶
services/task-service/src/repositories/event-workflow.repository.ts:15
Properties¶
eventWorkflow¶
• Private
Readonly
eventWorkflow: typeof Entity
& { prototype
: EventWorkflow
}
Defined in¶
services/task-service/src/repositories/event-workflow.repository.ts:21
getCurrentUser¶
• Protected
Readonly
getCurrentUser: Getter
<undefined
| IAuthUserWithPermissions
<string
, string
, string
>>
Inherited from¶
DefaultUserModifyCrudRepository.getCurrentUser
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:7
userGetter¶
• Private
userGetter: Getter
<IAuthUserWithPermissions
<string
, string
, string
>>
Defined in¶
services/task-service/src/repositories/event-workflow.repository.ts:19
Methods¶
create¶
▸ create(entity
, options?
): Promise
<EventWorkflow
>
Parameters¶
Name | Type |
---|---|
entity |
DataObject <EventWorkflow > |
options? |
Options |
Returns¶
Promise
<EventWorkflow
>
Inherited from¶
DefaultUserModifyCrudRepository.create
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:11
createAll¶
▸ createAll(entities
, options?
): Promise
<EventWorkflow
[]>
Parameters¶
Name | Type |
---|---|
entities |
DataObject <EventWorkflow >[] |
options? |
Options |
Returns¶
Promise
<EventWorkflow
[]>
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 <EventWorkflow > |
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
<EventWorkflow
>
Parameters¶
Name | Type |
---|---|
entity |
EventWorkflow |
options? |
Options |
Returns¶
Promise
<EventWorkflow
>
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 |
EventWorkflow |
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 <EventWorkflow > |
where? |
Where <EventWorkflow > |
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 <EventWorkflow > |
options? |
Options |
Returns¶
Promise
<void
>
Inherited from¶
DefaultUserModifyCrudRepository.updateById
Defined in¶
packages/core/dist/repositories/default-user-modify-crud.repository.base.d.ts:16