Skip to content

@sourceloop/task-service / Exports / TaskUserTaskController

Class: TaskUserTaskController

Table of contents

Constructors

Properties

Methods

Constructors

constructor

new TaskUserTaskController(userTaskService, taskRepo, userTaskRepo)

Parameters

Name Type
userTaskService IUserTaskService
taskRepo TaskRepository
userTaskRepo UserTaskRepository

Defined in

services/task-service/src/controllers/task-user-task.controller.ts:35

Properties

taskRepo

Private Readonly taskRepo: TaskRepository

Defined in

services/task-service/src/controllers/task-user-task.controller.ts:39


userTaskRepo

Private Readonly userTaskRepo: UserTaskRepository

Defined in

services/task-service/src/controllers/task-user-task.controller.ts:41


userTaskService

Private Readonly userTaskService: IUserTaskService

Defined in

services/task-service/src/controllers/task-user-task.controller.ts:37

Methods

completeTask

completeTask(id, userTaskId): Promise<void>

Parameters

Name Type
id string
userTaskId string

Returns

Promise<void>

Defined in

services/task-service/src/controllers/task-user-task.controller.ts:43


count

count(taskId, where?): Promise<Count>

Parameters

Name Type
taskId string
where? Where<UserTask>

Returns

Promise<Count>

Defined in

services/task-service/src/controllers/task-user-task.controller.ts:119


delete

delete(where?): Promise<void>

Parameters

Name Type
where? Where<UserTask>

Returns

Promise<void>

Defined in

services/task-service/src/controllers/task-user-task.controller.ts:159


deleteById

deleteById(id): Promise<void>

Parameters

Name Type
id string

Returns

Promise<void>

Defined in

services/task-service/src/controllers/task-user-task.controller.ts:141


find

find(taskId, filter?): Promise<UserTask[]>

Parameters

Name Type
taskId string
filter? Filter<UserTask>

Returns

Promise<UserTask[]>

Defined in

services/task-service/src/controllers/task-user-task.controller.ts:57


findById

findById(taskId, userTaskId, filter?): Promise<UserTask>

Parameters

Name Type
taskId string
userTaskId string
filter? FilterExcludingWhere<UserTask>

Returns

Promise<UserTask>

Defined in

services/task-service/src/controllers/task-user-task.controller.ts:84