import type { marketplace_application_Task } from '../models/marketplace_application_Task'; import type { marketplace_application_TaskInput } from '../models/marketplace_application_TaskInput'; import type { marketplace_application_TaskList } from '../models/marketplace_application_TaskList'; import type { CancelablePromise } from '../core/CancelablePromise'; export declare class TasksService { /** * List tasks * * Lists tasks from the Tasks marketplace app installed on the workspace. * The request is proxied to the app's task API and the response shape is * defined by that app's registered resource schema. Requires the Tasks app * to be installed. * * @param limit Maximum number of tasks to return * @param nextToken Pagination cursor returned by a previous list response * @param createdBy Filter tasks by the id of the internal user that created them * @param parentTaskId Filter to the subtasks of the given parent task id * @param status Filter tasks by status * @param clientId Filter tasks by the id of the assigned client * @param internalUserId Filter tasks by the id of the assigned internal user * @param companyId Filter tasks by the id of the assigned company * * @example * await assembly.retrieveTasks(); */ static retrieveTasks({ limit, nextToken, createdBy, parentTaskId, status, clientId, internalUserId, companyId, }: { /** * Maximum number of tasks to return */ limit?: number; /** * Pagination cursor returned by a previous list response */ nextToken?: string; /** * Filter tasks by the id of the internal user that created them */ createdBy?: string; /** * Filter to the subtasks of the given parent task id */ parentTaskId?: string; /** * Filter tasks by status */ status?: 'todo' | 'inProgress' | 'completed'; /** * Filter tasks by the id of the assigned client */ clientId?: string; /** * Filter tasks by the id of the assigned internal user */ internalUserId?: string; /** * Filter tasks by the id of the assigned company */ companyId?: string; }): CancelablePromise; /** * Create a task * * Creates a task via the Tasks marketplace app installed on the workspace. * The request body is validated against the app's registered resource * schema and proxied to the app's task API. Requires the Tasks app to be * installed. * * @example * await assembly.createTask({ requestBody: ... }); */ static createTask({ requestBody, }: { /** * Task fields */ requestBody: marketplace_application_TaskInput; }): CancelablePromise; /** * Delete a task * * Deletes a task by id via the Tasks marketplace app installed on the * workspace. The request is proxied to the app's task API and returns the * deleted task marker. Requires the Tasks app to be installed. * * @param id Task id * * @example * await assembly.deleteTask({ id: ... }); */ static deleteTask({ id, }: { /** * Task id */ id: string; }): CancelablePromise; /** * Retrieve a task * * Retrieves a single task by id from the Tasks marketplace app installed on * the workspace. The request is proxied to the app's task API. Requires the * Tasks app to be installed. * * @param id Task id * * @example * await assembly.retrieveTask({ id: ... }); */ static retrieveTask({ id, }: { /** * Task id */ id: string; }): CancelablePromise; /** * Update a task * * Partially updates a task by id via the Tasks marketplace app installed on * the workspace. Only the provided fields are changed. The request is * proxied to the app's task API. Requires the Tasks app to be installed. * * @param id Task id * * @example * await assembly.updateTask({ id: ..., requestBody: ... }); */ static updateTask({ id, requestBody, }: { /** * Task id */ id: string; /** * Task fields to update */ requestBody: marketplace_application_TaskInput; }): CancelablePromise; }