Skip to content

@sourceloop/task-service / Exports / EventController

Class: EventController

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new EventController(eventWorkflowMapping, eventRepository, workflowRepository)

Parameters

Name Type
eventWorkflowMapping EventWorkflowRepository
eventRepository EventRepository
workflowRepository WorkflowRepository

Defined in

services/task-service/src/controllers/event.controller.ts:25

Properties

eventRepository

Private Readonly eventRepository: EventRepository

Defined in

services/task-service/src/controllers/event.controller.ts:29


eventWorkflowMapping

Private Readonly eventWorkflowMapping: EventWorkflowRepository

Defined in

services/task-service/src/controllers/event.controller.ts:27


workflowRepository

Private Readonly workflowRepository: WorkflowRepository

Defined in

services/task-service/src/controllers/event.controller.ts:31

Methods

count

count(where?): Promise<Count>

Parameters

Name Type
where? Where<Event>

Returns

Promise<Count>

Defined in

services/task-service/src/controllers/event.controller.ts:83


find

find(filter?): Promise<Event[]>

Parameters

Name Type
filter? Filter<Event>

Returns

Promise<Event[]>

Defined in

services/task-service/src/controllers/event.controller.ts:34


findById

findById(id, filter?): Promise<Event>

Parameters

Name Type
id string
filter? FilterExcludingWhere<Event>

Returns

Promise<Event>

Defined in

services/task-service/src/controllers/event.controller.ts:58


mapEventToWorkflow

mapEventToWorkflow(eventWorkflowMapping): Promise<void>

Parameters

Name Type
eventWorkflowMapping Omit<EventWorkflow, "id">

Returns

Promise<void>

Defined in

services/task-service/src/controllers/event.controller.ts:100