todoist

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 7, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnector

func NewConnector() (*sdk.ConnectorPlugin, error)

Types

type Collaborator

type Collaborator struct {
	ID    string `json:"id"`
	Name  string `json:"name"`
	Email string `json:"email"`
}

type CreateProject

type CreateProject struct {
	Name       string  `json:"name"`
	Color      *string `json:"color"`
	IsFavorite *bool   `json:"is_favorite"`
	ViewStyle  *string `json:"view_style"`
	ParentID   *string `json:"parent_id"`
}

type CreateProjectOperation

type CreateProjectOperation struct {
	// contains filtered or unexported fields
}

func NewCreateProjectOperation

func NewCreateProjectOperation() *CreateProjectOperation

func (*CreateProjectOperation) GetInfo

func (*CreateProjectOperation) Run

func (*CreateProjectOperation) Test

type CreateTaskOperation

type CreateTaskOperation struct {
	// contains filtered or unexported fields
}

func NewCreateTaskOperation

func NewCreateTaskOperation() *CreateTaskOperation

func (*CreateTaskOperation) GetInfo

func (c *CreateTaskOperation) GetInfo() *sdk.OperationInfo

func (*CreateTaskOperation) Run

func (c *CreateTaskOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*CreateTaskOperation) Test

func (c *CreateTaskOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type Due

type Due struct {
	Date        string `json:"date"`
	IsRecurring bool   `json:"is_recurring"`
	Datetime    string `json:"datetime"`
	String      string `json:"string"`
	Timezone    string `json:"timezone"`
}

type Duration

type Duration struct {
	Amount int    `json:"amount"`
	Unit   string `json:"unit"`
}

type GetActiveTaskOperation

type GetActiveTaskOperation struct {
	// contains filtered or unexported fields
}

func NewGetActiveTaskOperation

func NewGetActiveTaskOperation() *GetActiveTaskOperation

func (*GetActiveTaskOperation) GetInfo

func (*GetActiveTaskOperation) Run

func (*GetActiveTaskOperation) Test

type GetProjectOperation

type GetProjectOperation struct {
	// contains filtered or unexported fields
}

func NewGetProjectOperation

func NewGetProjectOperation() *GetProjectOperation

func (*GetProjectOperation) GetInfo

func (c *GetProjectOperation) GetInfo() *sdk.OperationInfo

func (*GetProjectOperation) Run

func (c *GetProjectOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*GetProjectOperation) Test

func (c *GetProjectOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type ListProjectCollaboratorsOperation

type ListProjectCollaboratorsOperation struct {
	// contains filtered or unexported fields
}

func NewListProjectCollaboratorsOperation

func NewListProjectCollaboratorsOperation() *ListProjectCollaboratorsOperation

func (*ListProjectCollaboratorsOperation) GetInfo

func (*ListProjectCollaboratorsOperation) Run

func (*ListProjectCollaboratorsOperation) Test

type ListProjectsOperation

type ListProjectsOperation struct {
	// contains filtered or unexported fields
}

func NewListProjectsOperation

func NewListProjectsOperation() *ListProjectsOperation

func (*ListProjectsOperation) GetInfo

func (c *ListProjectsOperation) GetInfo() *sdk.OperationInfo

func (*ListProjectsOperation) Run

func (*ListProjectsOperation) Test

func (c *ListProjectsOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type ListTasksOperation

type ListTasksOperation struct {
	// contains filtered or unexported fields
}

func NewListTasksOperation

func NewListTasksOperation() *ListTasksOperation

func (*ListTasksOperation) GetInfo

func (c *ListTasksOperation) GetInfo() *sdk.OperationInfo

func (*ListTasksOperation) Run

func (c *ListTasksOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*ListTasksOperation) Test

func (c *ListTasksOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type Project

type Project struct {
	ID             string  `json:"id"`
	Name           string  `json:"name"`
	CommentCount   int     `json:"comment_count"`
	Order          int     `json:"order"`
	Color          string  `json:"color"`
	IsShared       bool    `json:"is_shared"`
	IsFavorite     bool    `json:"is_favorite"`
	IsInboxProject bool    `json:"is_inbox_project"`
	IsTeamInbox    bool    `json:"is_team_inbox"`
	ViewStyle      string  `json:"view_style"`
	URL            string  `json:"url"`
	ParentID       *string `json:"parent_id"`
}

type ProjectSection

type ProjectSection struct {
	ID        string `json:"id"`
	ProjectID string `json:"project_id"`
	Order     int    `json:"order"`
	Name      string `json:"name"`
}

type Task

type Task struct {
	CreatorID    string   `json:"creator_id"`
	CreatedAt    string   `json:"created_at"`
	AssigneeID   string   `json:"assignee_id"`
	AssignerID   string   `json:"assigner_id"`
	CommentCount int      `json:"comment_count"`
	IsCompleted  bool     `json:"is_completed"`
	Content      string   `json:"content"`
	Description  string   `json:"description"`
	Due          Due      `json:"due"`
	Duration     Duration `json:"duration"`
	ID           string   `json:"id"`
	Labels       []string `json:"labels"`
	Order        int      `json:"order"`
	Priority     int      `json:"priority"`
	ProjectID    string   `json:"project_id"`
	SectionID    string   `json:"section_id"`
	ParentID     string   `json:"parent_id"`
	URL          string   `json:"url"`
}

type TaskCompletedTrigger

type TaskCompletedTrigger struct {
	// contains filtered or unexported fields
}

func NewTaskCompletedTrigger

func NewTaskCompletedTrigger() *TaskCompletedTrigger

NewTaskCompletedTrigger creates a new TaskCompletedTrigger object.

func (TaskCompletedTrigger) GetInfo

func (t TaskCompletedTrigger) GetInfo() *sdk.TriggerInfo

func (TaskCompletedTrigger) OnDisabled

func (t TaskCompletedTrigger) OnDisabled(ctx *sdk.RunContext) error

func (TaskCompletedTrigger) OnEnabled

func (t TaskCompletedTrigger) OnEnabled(ctx *sdk.RunContext) error

func (TaskCompletedTrigger) Run

func (TaskCompletedTrigger) Test

func (t TaskCompletedTrigger) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type UpdateProject

type UpdateProject struct {
	Name       *string `json:"name"`
	Color      *string `json:"color"`
	IsFavorite *bool   `json:"is_favorite"`
	ViewStyle  *string `json:"view_style"`
}

type UpdateProjectOperation

type UpdateProjectOperation struct {
	// contains filtered or unexported fields
}

func NewUpdateProjectOperation

func NewUpdateProjectOperation() *UpdateProjectOperation

func (*UpdateProjectOperation) GetInfo

func (*UpdateProjectOperation) Run

func (*UpdateProjectOperation) Test

type UpdateTask

type UpdateTask struct {
	Content     string     `json:"content"`
	Description *string    `json:"description"`
	Labels      []string   `json:"labels"`
	Priority    *int       `json:"priority"`
	Order       *string    `json:"order"`
	DueDate     *time.Time `json:"dueDate"`
	Duration    *int       `json:"duration"`
}

type UpdateTaskOperation

type UpdateTaskOperation struct {
	// contains filtered or unexported fields
}

func NewUpdateTaskOperation

func NewUpdateTaskOperation() *UpdateTaskOperation

func (*UpdateTaskOperation) GetInfo

func (c *UpdateTaskOperation) GetInfo() *sdk.OperationInfo

func (*UpdateTaskOperation) Run

func (c *UpdateTaskOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*UpdateTaskOperation) Test

func (c *UpdateTaskOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL