Skip to main content

todo

@codebolt/codeboltjs


Variable: todo

const todo: {
addTodo: (params: {
priority?: "low" | "medium" | "high";
tags?: string[];
title: string;
}) => Promise<AddTodoResponse>;
exportTodos: (params?: {
format?: "json" | "markdown";
listId?: string;
status?: string[];
}) => Promise<ExportTodosResponse>;
getAllIncompleteTodos: () => Promise<GetAllIncompleteTodosResponse>;
getTodoList: (params?: any) => Promise<GetTodoListResponse>;
importTodos: (params: {
data: string;
format?: "json" | "markdown";
listId?: string;
mergeStrategy?: "replace" | "merge";
}) => Promise<ImportTodosResponse>;
updateTodo: (params: {
id: string;
priority?: "low" | "medium" | "high";
status?: "pending" | "completed" | "processing" | "cancelled";
tags?: string[];
title?: string;
}) => Promise<UpdateTodoResponse>;
};

Defined in: packages/codeboltjs/src/modules/todo.ts:16

Type Declaration

NameTypeDescriptionDefined in
addTodo()(params: { priority?: "low" | "medium" | "high"; tags?: string[]; title: string; }) => Promise<AddTodoResponse>Function addTodo Description Adds a new todo item.packages/codeboltjs/src/modules/todo.ts:26
exportTodos()(params?: { format?: "json" | "markdown"; listId?: string; status?: string[]; }) => Promise<ExportTodosResponse>Function exportTodos Description Exports todos in the specified format.packages/codeboltjs/src/modules/todo.ts:102
getAllIncompleteTodos()() => Promise<GetAllIncompleteTodosResponse>Function getAllIncompleteTodos Description Retrieves all incomplete todo items.packages/codeboltjs/src/modules/todo.ts:82
getTodoList()(params?: any) => Promise<GetTodoListResponse>Function getTodoList Description Retrieves the todo list.packages/codeboltjs/src/modules/todo.ts:65
importTodos()(params: { data: string; format?: "json" | "markdown"; listId?: string; mergeStrategy?: "replace" | "merge"; }) => Promise<ImportTodosResponse>Function importTodos Description Imports todos from the specified format.packages/codeboltjs/src/modules/todo.ts:123
updateTodo()(params: { id: string; priority?: "low" | "medium" | "high"; status?: "pending" | "completed" | "processing" | "cancelled"; tags?: string[]; title?: string; }) => Promise<UpdateTodoResponse>Function updateTodo Description Updates an existing todo item.packages/codeboltjs/src/modules/todo.ts:48