Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface AdapterInstance

An instance of a AdapterFactory

Hierarchy

Index

Properties

client

client: any

A pre-configured got object

create

create: function

POST an item of a type to Todoist

param
returns

Type declaration

    • (data: any): Promise<any>
    • Parameters

      • data: any

      Returns Promise<any>

query

query: function

Returns items of a type based on a query. Returns all items when qeurr is falsy.

param
returns

Type declaration

    • (query: string, key: string): Promise<any>
    • Parameters

      • query: string
      • key: string

      Returns Promise<any>

remove

remove: function

API call to delete a single item.

param
returns

Type declaration

    • (id: number): Promise<any>
    • Parameters

      • id: number

      Returns Promise<any>

token

token: string

The API token.

type

type: "task" | "project" | "label"

The resource type.

update

update: function

POST an item of a type to Todoist replacing a known value

param
param
returns

Type declaration

    • (id: number, data: any): Promise<any>
    • Parameters

      • id: number
      • data: any

      Returns Promise<any>

uri

uri: string

The todoist api url

Generated using TypeDoc