Skip to main content

Todo API

The todo module of the @codebolt/plugin-sdk.

import plugin from '@codebolt/plugin-sdk';

Quick Reference

MethodDescription
addTodoaddTodo
exportTodosexportTodos
getAllIncompleteTodosgetAllIncompleteTodos
getTodoListgetTodoList
importTodosimportTodos
updateTodoupdateTodo

Methods


addTodo

plugin.todo.addTodo(params: object): Promise<AddTodoResponse>

addTodo

ParameterTypeRequiredDescription
paramsobjectYesThe parameters for adding a todo.

Returns: Promise<AddTodoResponse> — A promise that resolves with the server response.

Full reference →


exportTodos

plugin.todo.exportTodos(params?: object): Promise<ExportTodosResponse>

exportTodos

ParameterTypeRequiredDescription
paramsobjectNoThe parameters for exporting todos.

Returns: Promise<ExportTodosResponse> — A promise that resolves with the exported data.

Full reference →


getAllIncompleteTodos

plugin.todo.getAllIncompleteTodos(): Promise<GetAllIncompleteTodosResponse>

getAllIncompleteTodos

No parameters.

Returns: Promise<GetAllIncompleteTodosResponse> — A promise that resolves with the server response.

Full reference →


getTodoList

plugin.todo.getTodoList(params?: any): Promise<GetTodoListResponse>

getTodoList

ParameterTypeRequiredDescription
paramsanyNoThe parameters for getting the todo list.

Returns: Promise<GetTodoListResponse> — A promise that resolves with the server response.

Full reference →


importTodos

plugin.todo.importTodos(params: object): Promise<ImportTodosResponse>

importTodos

ParameterTypeRequiredDescription
paramsobjectYesThe parameters for importing todos.

Returns: Promise<ImportTodosResponse> — A promise that resolves with the import result.

Full reference →


updateTodo

plugin.todo.updateTodo(params: object): Promise<UpdateTodoResponse>

updateTodo

ParameterTypeRequiredDescription
paramsobjectYesThe parameters for updating a todo.

Returns: Promise<UpdateTodoResponse> — A promise that resolves with the server response.

Full reference →