import type { PaginatedConciseTaskList } from "../models/PaginatedConciseTaskList"; import type { WrappedTask } from "../models/WrappedTask"; import type { WrappedTaskCreate } from "../models/WrappedTaskCreate"; import type { WrappedTaskUpdate } from "../models/WrappedTaskUpdate"; import type { CancelablePromise } from "../core/CancelablePromise"; export declare class TaskService { /** * Create a new task * Record a new task that the user intends to do. This will save the task in Dart for later access, search, etc. By default the created task will be assigned to the user, with a status of to-do, with no parent, in the Active dartboard. More information can be included in the description. * @param requestBody * @returns WrappedTask * @throws ApiError */ static createTask(requestBody: WrappedTaskCreate): CancelablePromise; /** * Retrieve an existing task * Retrieve an existing task. This will return the task's information, including the title, dartboard, status, description and others. * @param id * @returns WrappedTask Success, including the retrieved task * @throws ApiError */ static retrieveTask(id: string): CancelablePromise; /** * Update an existing task * Update certain properties of an existing task. This will save the task in Dart for later access, search, etc. Any properties that are not specified will not be changed. * @param id * @param requestBody * @returns WrappedTask Success, including the updated task * @throws ApiError */ static updateTask(id: string, requestBody: WrappedTaskUpdate): CancelablePromise; /** * Delete an existing task * Move an existing task to the trash, where it can be recovered if needed. Nothing else about the task will be changed. * @param id * @returns WrappedTask Success, including the deleted task * @throws ApiError */ static deleteTask(id: string): CancelablePromise; /** * @returns PaginatedConciseTaskList * @throws ApiError */ static listTasks({ assignee, assigneeId, dartboard, dartboardId, description, dueAtAfter, dueAtBefore, ids, limit, offset, priority, size, startAtAfter, startAtBefore, status, statusId, tag, tagId, title, type, typeId, }: { assignee?: string; assigneeId?: string; dartboard?: string; dartboardId?: string; description?: string; dueAtAfter?: string; dueAtBefore?: string; /** * Filter by IDs */ ids?: string; /** * Number of results to return per page. */ limit?: number; /** * The initial index from which to return the results. */ offset?: number; priority?: string; size?: number; startAtAfter?: string; startAtBefore?: string; status?: string; statusId?: string; tag?: string; tagId?: string; title?: string; type?: string; typeId?: string; }): CancelablePromise; }