*/ public function tasksOf(int $jobId): array; /** * Which of the job's tasks are pinned to the Kanban board, by task id. * * @return array */ public function pinnedTaskIds(int $jobId): array; /** * Null when the task does not exist or belongs to another job. */ public function findTask(int $jobId, int $taskId): ?TaskSummary; /** * A task as time is recorded on it, or null when there is no such task. */ public function bookableTask(int $taskId): ?BookableTask; /** * @param list $taskIds * @return list In job number, then task id order. */ public function bookableTasks(array $taskIds): array; /** * Ids of tasks assigned to the user that are not done, on jobs that are * not locked. * * @return list */ public function assignedOpenTaskIds(int $userId): array; /** * Tasks on unlocked jobs whose job number, job name or task name * contains the term; only jobs the user is a member of when given. * * @return list */ public function searchBookableTasks(string $term, ?int $onlyMemberUserId = null, int $limit = 8): array; }