import { GlobalOptions, APIRequestContext, FerantConfigurable } from '../../util/types'; export declare namespace todos_v1 { interface Options extends GlobalOptions { version: 'v1'; } interface TodoDue { date?: string; is_recurring?: boolean; lang?: string; string?: string; } interface TodoRelationship { id?: string; type?: string; } interface Todo { checked?: boolean; children?: string[]; commit_history?: string[]; content?: string; created_at?: string; day_order?: number; description?: string; due?: TodoDue; fid?: string; goal_id?: string; goal_order?: number; id?: string; in_history?: number; is_deleted?: number; labels?: string[]; priority?: number; queue_id?: number; relationship?: TodoRelationship; type?: string; updated_at?: string; } interface Params$Todos$List { fid?: string; } interface Params$Todos$Get { fid?: string; id?: string; } interface Params$Todos$Update { id?: string; body?: Todo; } interface Params$Todos$Create { body?: Todo; } interface Params$Todos$Delete { id?: string; } /** * Class based functionality. Functions here represent user actions. */ class Todos { context: APIRequestContext; goals: Resource$Goals; tasks: Resource$Tasks; constructor(options: GlobalOptions, ferant?: FerantConfigurable); } interface Returns$Goals$List { goals?: Todo[]; } /** * Class based functionality. Functions here represent user settings actions. */ class Resource$Goals { context: APIRequestContext; constructor(context: APIRequestContext); /** * Retrieve the stats for a whole year. * @param fid of the user. * @returns list of stats */ list(data: Params$Todos$List): Promise; /** * Retrieve a specific goal. * @param fid of the user. * @param id of the goal. * @param Todo * @returns Todo */ get(data: Params$Todos$Get): Promise; /** * Update a goal. * @param fid of the user. * @param Todo * @returns Goal */ update(data: Params$Todos$Update): Promise; /** * Create a goal. * @param fid of the user. * @param Todo * @returns Goal */ create(data: Params$Todos$Create): Promise; /** * Delete a goal. * @param id of goal. * @returns void */ delete(data: Params$Todos$Delete): Promise; } interface Returns$Tasks$List { tasks?: Todo[]; } /** * Class based functionality. Functions here represent user settings actions. */ class Resource$Tasks { context: APIRequestContext; constructor(context: APIRequestContext); /** * Retrieve the stats for a whole year. * @param fid of the user. * @returns list of stats */ list(data: Params$Todos$List): Promise; /** * Retrieve a specific task. * @param fid of the user. * @param id of the task. * @param Todo * @returns Todo */ get(data: Params$Todos$Get): Promise; /** * Create a task. * @param Todo * @returns Task */ update(data: Params$Todos$Update): Promise; /** * Create a task. * @param Todo * @returns Task */ create(data: Params$Todos$Create): Promise; /** * Delete a task. * @param id of task. * @returns void */ delete(data: Params$Todos$Delete): Promise; } }