api

package
v0.0.16 Latest Latest
Warning

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

Go to latest
Published: Feb 22, 2022 License: MIT Imports: 15 Imported by: 0

README

NOTE: The current API client does not cover all methods and DTOs provided by the ClickUp API

Link to official documentation https://clickup20.docs.apiary.io/

For retry mechanism and correctly serves 429 status used github.com/hashicorp/go-retryablehttp.

The webhook is not implemented and WIP.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WebhookVerifier

func WebhookVerifier(secret string) func(r *http.Request) bool

Types

type API

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

func NewAPI

func NewAPI(accessToken string) *API

func (*API) AddCommentToTask

func (a *API) AddCommentToTask(ctx context.Context, newComment *AddCommentToTaskRequest) *AddCommentToTaskResponse

func (*API) CreateTask

func (a *API) CreateTask(ctx context.Context, newTask *CreateTaskRequest) *CreateTaskResponse

func (*API) FolderByID

func (a *API) FolderByID(ctx context.Context, folderID string) *FolderByIDResponse

func (*API) FolderLists

func (a *API) FolderLists(ctx context.Context, folderID string) *FolderListsReponse

func (*API) ListByID

func (a *API) ListByID(ctx context.Context, listID string) *ListByIDResponse

func (*API) ListFolders

func (a *API) ListFolders(ctx context.Context, spaceID string) *ListFoldersResponse

func (*API) ListMembersOfList

func (a *API) ListMembersOfList(ctx context.Context, listID string) *ListMembersResponse

func (*API) ListSpaces

func (a *API) ListSpaces(ctx context.Context, teamID string) *ListSpacesResponse

func (*API) ListTeams

func (a *API) ListTeams(ctx context.Context) *ListTeamsResponse

func (*API) SearchCommentsInTask

func (a *API) SearchCommentsInTask(ctx context.Context, taskID string, startTaskID string, startTaskTs int64) *ListTeamsResponse

func (*API) SearchTasksInTeam

func (a *API) SearchTasksInTeam(ctx context.Context, req *SearchTasksInTeamRequest) *SearchTasksInTeamResponse

func (*API) SpaceByID

func (a *API) SpaceByID(ctx context.Context, spaceID string) *SpaceByIDResponse

func (*API) SpaceFolderlessLists

func (a *API) SpaceFolderlessLists(ctx context.Context, spaceID string) *SpaceFolderlessListsResponse

func (*API) TaskByID

func (a *API) TaskByID(ctx context.Context, taskID string) *TaskByIDResponse

func (*API) UpdateTask

func (a *API) UpdateTask(ctx context.Context, updTask *UpdateTaskRequest) *UpdateTaskResponse

type AddCommentToTaskRequest

type AddCommentToTaskRequest struct {
	TaskID           string
	CommentText      string
	AssignToMemberID string
}

type AddCommentToTaskResponse

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

func (AddCommentToTaskResponse) DecodeOK

func (r AddCommentToTaskResponse) DecodeOK() bool

func (AddCommentToTaskResponse) IsStatus

func (r AddCommentToTaskResponse) IsStatus(in int) bool

func (AddCommentToTaskResponse) NotFound

func (r AddCommentToTaskResponse) NotFound() bool

func (*AddCommentToTaskResponse) SetDecodeErr

func (r *AddCommentToTaskResponse) SetDecodeErr(err error)

func (*AddCommentToTaskResponse) SetResponseStatusCode

func (r *AddCommentToTaskResponse) SetResponseStatusCode(in int)

func (AddCommentToTaskResponse) StatusOK

func (r AddCommentToTaskResponse) StatusOK() bool

type CreateTaskRequest

type CreateTaskRequest struct {
	ListID              string
	Name                string
	StatusName          string
	DescriptionMarkdown string
	Tags                []string
	RefTaskID           string
	AssignIDs           []string
	PriorityID          *int
}

type CreateTaskResponse

type CreateTaskResponse struct {
	TaskID string `json:"id"`
	// contains filtered or unexported fields
}

func (CreateTaskResponse) DecodeOK

func (r CreateTaskResponse) DecodeOK() bool

func (CreateTaskResponse) IsStatus

func (r CreateTaskResponse) IsStatus(in int) bool

func (CreateTaskResponse) NotFound

func (r CreateTaskResponse) NotFound() bool

func (*CreateTaskResponse) SetDecodeErr

func (r *CreateTaskResponse) SetDecodeErr(err error)

func (*CreateTaskResponse) SetResponseStatusCode

func (r *CreateTaskResponse) SetResponseStatusCode(in int)

func (CreateTaskResponse) StatusOK

func (r CreateTaskResponse) StatusOK() bool

type FolderByIDRequest

type FolderByIDRequest struct {
	FolderID string
}

type FolderByIDResponse

type FolderByIDResponse struct {
	ID               string `json:"id"`
	Name             string `json:"name"`
	OverrideStatuses bool   `json:"override_statuses"`
	Hidden           bool   `json:"hidden"`
	Space            struct {
		ID     string `json:"id"`
		Name   string `json:"name"`
		Access bool   `json:"access"`
	} `json:"space"`
	TaskCount       int64                         `json:"task_count,string"`
	Archived        bool                          `json:"archived"`
	Statuses        []ListStatuses                `json:"statuses"`
	Lists           []FolderByIDResponse_ListItem `json:"lists"`
	PermissionLevel string                        `json:"permission_level"`
	// contains filtered or unexported fields
}

func (FolderByIDResponse) DecodeOK

func (r FolderByIDResponse) DecodeOK() bool

func (FolderByIDResponse) IsStatus

func (r FolderByIDResponse) IsStatus(in int) bool

func (FolderByIDResponse) NotFound

func (r FolderByIDResponse) NotFound() bool

func (*FolderByIDResponse) SetDecodeErr

func (r *FolderByIDResponse) SetDecodeErr(err error)

func (*FolderByIDResponse) SetResponseStatusCode

func (r *FolderByIDResponse) SetResponseStatusCode(in int)

func (FolderByIDResponse) StatusOK

func (r FolderByIDResponse) StatusOK() bool

type FolderByIDResponse_ListItem

type FolderByIDResponse_ListItem struct {
	ID               string         `json:"id"`
	Name             string         `json:"name"`
	TaskCount        int64          `json:"task_count"`
	Archived         bool           `json:"archived"`
	OverrideStatuses bool           `json:"override_statuses"`
	Statuses         []ListStatuses `json:"statuses"`
	PermissionLevel  string         `json:"permission_level"`
}

type FolderListsReponse

type FolderListsReponse struct {
	Lists []FolderListsReponse_ListItem `json:"lists"`
	// contains filtered or unexported fields
}

func (FolderListsReponse) DecodeOK

func (r FolderListsReponse) DecodeOK() bool

func (FolderListsReponse) IsStatus

func (r FolderListsReponse) IsStatus(in int) bool

func (FolderListsReponse) NotFound

func (r FolderListsReponse) NotFound() bool

func (*FolderListsReponse) SetDecodeErr

func (r *FolderListsReponse) SetDecodeErr(err error)

func (*FolderListsReponse) SetResponseStatusCode

func (r *FolderListsReponse) SetResponseStatusCode(in int)

func (FolderListsReponse) StatusOK

func (r FolderListsReponse) StatusOK() bool

type FolderListsReponse_ListItem

type FolderListsReponse_ListItem struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	Folder struct {
		ID     string `json:"id"`
		Name   string `json:"name"`
		Hidden bool   `json:"hidden"`
		Access bool   `json:"access"`
	} `json:"folder"`
	Space struct {
		ID     string `json:"id"`
		Name   string `json:"name"`
		Access bool   `json:"access"`
	} `json:"space"`
	Archived bool `json:"archived"`
}

type FolderListsRequest

type FolderListsRequest struct {
	FolderID string
}

type ListByIDRequest

type ListByIDRequest struct {
	ListID string
}

type ListByIDResponse

type ListByIDResponse struct {
	ID      string `json:"id"`
	Name    string `json:"name"`
	Content string `json:"content"`
	Folder  struct {
		ID     string `json:"id"`
		Name   string `json:"name"`
		Hidden bool   `json:"hidden"`
		Access bool   `json:"access"`
	} `json:"folder"`
	Space struct {
		ID     string `json:"id"`
		Name   string `json:"name"`
		Access bool   `json:"access"`
	} `json:"space"`
	InboundAddress   string         `json:"inbound_address"`
	Archived         bool           `json:"archived"`
	OverrideStatuses bool           `json:"override_statuses"`
	Statuses         []ListStatuses `json:"statuses"`
	// contains filtered or unexported fields
}

func (ListByIDResponse) DecodeOK

func (r ListByIDResponse) DecodeOK() bool

func (ListByIDResponse) IsStatus

func (r ListByIDResponse) IsStatus(in int) bool

func (ListByIDResponse) NotFound

func (r ListByIDResponse) NotFound() bool

func (*ListByIDResponse) SetDecodeErr

func (r *ListByIDResponse) SetDecodeErr(err error)

func (*ListByIDResponse) SetResponseStatusCode

func (r *ListByIDResponse) SetResponseStatusCode(in int)

func (ListByIDResponse) StatusOK

func (r ListByIDResponse) StatusOK() bool

type ListFoldersRequest

type ListFoldersRequest struct {
	SpaceID string
}

type ListFoldersResponse

type ListFoldersResponse struct {
	Folders []struct {
		ID         string `json:"id"`
		Name       string `json:"name"`
		Orderindex int    `json:"orderindex"`
		Hidden     bool   `json:"hidden"`
		Space      struct {
			ID   string `json:"id"`
			Name string `json:"name"`
		} `json:"space"`
		TaskCount       string                               `json:"task_count"`
		Archived        bool                                 `json:"archived"`
		Statuses        []ListStatuses                       `json:"statuses"`
		Lists           []ListFoldersResponse_FolderListItem `json:"lists"`
		PermissionLevel string                               `json:"permission_level"`
	} `json:"folders"`
	// contains filtered or unexported fields
}

func (ListFoldersResponse) DecodeOK

func (r ListFoldersResponse) DecodeOK() bool

func (ListFoldersResponse) IsStatus

func (r ListFoldersResponse) IsStatus(in int) bool

func (ListFoldersResponse) NotFound

func (r ListFoldersResponse) NotFound() bool

func (*ListFoldersResponse) SetDecodeErr

func (r *ListFoldersResponse) SetDecodeErr(err error)

func (*ListFoldersResponse) SetResponseStatusCode

func (r *ListFoldersResponse) SetResponseStatusCode(in int)

func (ListFoldersResponse) StatusOK

func (r ListFoldersResponse) StatusOK() bool

type ListFoldersResponse_FolderItem

type ListFoldersResponse_FolderItem struct {
}

type ListFoldersResponse_FolderListItem

type ListFoldersResponse_FolderListItem struct {
	ID        string `json:"id"`
	Name      string `json:"name"`
	TaskCount int64  `json:"task_count"`
	Space     struct {
		ID     string `json:"id"`
		Name   string `json:"name"`
		Access bool   `json:"access"`
	} `json:"space"`
	Archived        bool           `json:"archived"`
	Statuses        []ListStatuses `json:"statuses"`
	PermissionLevel string         `json:"permission_level"`
}

type ListMembersRequest

type ListMembersRequest struct {
	ListID string
}

type ListMembersResponse

type ListMembersResponse struct {
	Members []Member `json:"members"`
	// contains filtered or unexported fields
}

func (ListMembersResponse) DecodeOK

func (r ListMembersResponse) DecodeOK() bool

func (ListMembersResponse) IsStatus

func (r ListMembersResponse) IsStatus(in int) bool

func (ListMembersResponse) NotFound

func (r ListMembersResponse) NotFound() bool

func (*ListMembersResponse) SetDecodeErr

func (r *ListMembersResponse) SetDecodeErr(err error)

func (*ListMembersResponse) SetResponseStatusCode

func (r *ListMembersResponse) SetResponseStatusCode(in int)

func (ListMembersResponse) StatusOK

func (r ListMembersResponse) StatusOK() bool

type ListSpacesRequest

type ListSpacesRequest struct {
	TeamID string
}

type ListSpacesResponse

type ListSpacesResponse struct {
	Spaces []ListSpacesResponse_SpaceItem `json:"spaces"`
	// contains filtered or unexported fields
}

func (ListSpacesResponse) DecodeOK

func (r ListSpacesResponse) DecodeOK() bool

func (ListSpacesResponse) IsStatus

func (r ListSpacesResponse) IsStatus(in int) bool

func (ListSpacesResponse) NotFound

func (r ListSpacesResponse) NotFound() bool

func (*ListSpacesResponse) SetDecodeErr

func (r *ListSpacesResponse) SetDecodeErr(err error)

func (*ListSpacesResponse) SetResponseStatusCode

func (r *ListSpacesResponse) SetResponseStatusCode(in int)

func (ListSpacesResponse) StatusOK

func (r ListSpacesResponse) StatusOK() bool

type ListSpacesResponse_SpaceItem

type ListSpacesResponse_SpaceItem struct {
	ID       string `json:"id"`
	Name     string `json:"name"`
	Private  bool   `json:"private"`
	Statuses []struct {
		Status     string `json:"status"`
		Type       string `json:"type"`
		Orderindex int    `json:"orderindex"`
		Color      string `json:"color"`
	} `json:"statuses"`
	MultipleAssignees bool `json:"multiple_assignees"`
	Features          struct {
		DueDates struct {
			Enabled            bool `json:"enabled"`
			StartDate          bool `json:"start_date"`
			RemapDueDates      bool `json:"remap_due_dates"`
			RemapClosedDueDate bool `json:"remap_closed_due_date"`
		} `json:"due_dates"`
		TimeEstimates struct {
			Enabled bool `json:"enabled"`
		} `json:"time_estimates"`
	} `json:"features"`
}

type ListStatuses

type ListStatuses []Status

type ListTeamsRequest

type ListTeamsRequest struct {
}

type ListTeamsResponse

type ListTeamsResponse struct {
	Teams []struct {
		ID   string `json:"id"`
		Name string `json:"name"`
	} `json:"teams"`
	// contains filtered or unexported fields
}

func (ListTeamsResponse) DecodeOK

func (r ListTeamsResponse) DecodeOK() bool

func (ListTeamsResponse) IsStatus

func (r ListTeamsResponse) IsStatus(in int) bool

func (ListTeamsResponse) NotFound

func (r ListTeamsResponse) NotFound() bool

func (*ListTeamsResponse) SetDecodeErr

func (r *ListTeamsResponse) SetDecodeErr(err error)

func (*ListTeamsResponse) SetResponseStatusCode

func (r *ListTeamsResponse) SetResponseStatusCode(in int)

func (ListTeamsResponse) StatusOK

func (r ListTeamsResponse) StatusOK() bool

type Member

type Member struct {
	ID             int64  `json:"id"`
	Username       string `json:"username"`
	Email          string `json:"email"`
	Color          string `json:"color"`
	Initials       string `json:"initials"`
	ProfilePicture string `json:"profilePicture"`
}

func (*Member) IDString

func (m *Member) IDString() string

type ResponseMetadata

type ResponseMetadata interface {
	StatusOK() bool
	NotFound() bool
	IsStatus(in int) bool

	DecodeOK() bool
}

type SearchCommentsInTaskRequest

type SearchCommentsInTaskRequest struct {
	TaskID      string
	StartTaskID string
	StartTimeTS int64
}

type SearchCommentsInTaskResponse

type SearchCommentsInTaskResponse struct {
	Comments []struct {
		ID          string `json:"id"`
		CommentText string `json:"comment_text"`
		Assignee    *struct {
			ID             int64  `json:"id"`
			Username       string `json:"username"`
			Email          string `json:"email"`
			Color          string `json:"color"`
			Initials       string `json:"initials"`
			ProfilePicture string `json:"profilePicture"`
		} `json:"assignee"`
		AssignedBy *struct {
			ID             int64  `json:"id"`
			Username       string `json:"username"`
			Email          string `json:"email"`
			Color          string `json:"color"`
			Initials       string `json:"initials"`
			ProfilePicture string `json:"profilePicture"`
		} `json:"assigned_by"`
		User struct {
			ID             int64  `json:"id"`
			Username       string `json:"username"`
			Email          string `json:"email"`
			Color          string `json:"color"`
			Initials       string `json:"initials"`
			ProfilePicture string `json:"profilePicture"`
		} `json:"user"`
		DateAt int64 `json:"date,string"`
	} `json:"comments"`
}

type SearchTasksInTeamRequest

type SearchTasksInTeamRequest struct {
	TeamID string

	FolderIDs       []string
	SpaceIDs        []string
	ListIDs         []string
	OrderBy         string
	DateUpdatedGtTs int64
	Page            int
	StatuseNames    []string
	AssignUserIDs   []string
	IncludeClosed   bool
	IncludeSubtasks bool
}

type SearchTasksInTeamResponse

type SearchTasksInTeamResponse struct {
	Tasks []Task `json:"tasks"`
	// contains filtered or unexported fields
}

func (SearchTasksInTeamResponse) DecodeOK

func (r SearchTasksInTeamResponse) DecodeOK() bool

func (SearchTasksInTeamResponse) IsStatus

func (r SearchTasksInTeamResponse) IsStatus(in int) bool

func (SearchTasksInTeamResponse) NotFound

func (r SearchTasksInTeamResponse) NotFound() bool

func (*SearchTasksInTeamResponse) SetDecodeErr

func (r *SearchTasksInTeamResponse) SetDecodeErr(err error)

func (*SearchTasksInTeamResponse) SetResponseStatusCode

func (r *SearchTasksInTeamResponse) SetResponseStatusCode(in int)

func (SearchTasksInTeamResponse) StatusOK

func (r SearchTasksInTeamResponse) StatusOK() bool

type SearchTasksRequest

type SearchTasksRequest struct {
	ListID          string
	OrderBy         string
	DateUpdatedGtTs int64
	Page            int
	StatuseNames    []string
	AssignUserIDs   []string

	IncludeClosed   bool
	IncludeSubtasks bool
}

type SearchTasksResponse

type SearchTasksResponse struct {
	Tasks []Task `json:"tasks"`
}

type SpaceByIDRequest

type SpaceByIDRequest struct {
	SpaceID string
}

type SpaceByIDResponse

type SpaceByIDResponse struct {
	ID       string `json:"id"`
	Name     string `json:"name"`
	Private  bool   `json:"private"`
	Statuses []struct {
		Status     string `json:"status"`
		Type       string `json:"type"`
		Orderindex int    `json:"orderindex"`
		Color      string `json:"color"`
	} `json:"statuses"`
	MultipleAssignees bool `json:"multiple_assignees"`
	Features          struct {
		DueDates struct {
			Enabled            bool `json:"enabled"`
			StartDate          bool `json:"start_date"`
			RemapDueDates      bool `json:"remap_due_dates"`
			RemapClosedDueDate bool `json:"remap_closed_due_date"`
		} `json:"due_dates"`
		TimeEstimates struct {
			Enabled bool `json:"enabled"`
		} `json:"time_estimates"`
	} `json:"features,omitempty"`
	// contains filtered or unexported fields
}

func (SpaceByIDResponse) DecodeOK

func (r SpaceByIDResponse) DecodeOK() bool

func (SpaceByIDResponse) IsStatus

func (r SpaceByIDResponse) IsStatus(in int) bool

func (SpaceByIDResponse) NotFound

func (r SpaceByIDResponse) NotFound() bool

func (*SpaceByIDResponse) SetDecodeErr

func (r *SpaceByIDResponse) SetDecodeErr(err error)

func (*SpaceByIDResponse) SetResponseStatusCode

func (r *SpaceByIDResponse) SetResponseStatusCode(in int)

func (SpaceByIDResponse) StatusOK

func (r SpaceByIDResponse) StatusOK() bool

type SpaceFolderlessListsRequest

type SpaceFolderlessListsRequest struct {
	SpaceID string
}

type SpaceFolderlessListsResponse

type SpaceFolderlessListsResponse struct {
	Lists []SpaceFolderlessListsResponse_ListItem `json:"lists"`
	// contains filtered or unexported fields
}

func (SpaceFolderlessListsResponse) DecodeOK

func (r SpaceFolderlessListsResponse) DecodeOK() bool

func (SpaceFolderlessListsResponse) IsStatus

func (r SpaceFolderlessListsResponse) IsStatus(in int) bool

func (SpaceFolderlessListsResponse) NotFound

func (r SpaceFolderlessListsResponse) NotFound() bool

func (*SpaceFolderlessListsResponse) SetDecodeErr

func (r *SpaceFolderlessListsResponse) SetDecodeErr(err error)

func (*SpaceFolderlessListsResponse) SetResponseStatusCode

func (r *SpaceFolderlessListsResponse) SetResponseStatusCode(in int)

func (SpaceFolderlessListsResponse) StatusOK

func (r SpaceFolderlessListsResponse) StatusOK() bool

type SpaceFolderlessListsResponse_ListItem

type SpaceFolderlessListsResponse_ListItem struct {
	ID     string `json:"id"`
	Name   string `json:"name"`
	Folder struct {
		ID     string `json:"id"`
		Name   string `json:"name"`
		Hidden bool   `json:"hidden"`
		Access bool   `json:"access"`
	} `json:"folder"`
	Space struct {
		ID     string `json:"id"`
		Name   string `json:"name"`
		Access bool   `json:"access"`
	} `json:"space"`
	Archived bool `json:"archived"`
}

type Status

type Status struct {
	ID     string `json:"id"`
	Status string `json:"status"`
	// Orderindex int    `json:"orderindex"`
	Color string `json:"color"`
	Type  string `json:"type"`
}

type Task

type Task struct {
	ID          string  `json:"id"`
	CustomID    *string `json:"custom_id"`
	Name        string  `json:"name"`
	TextContent string  `json:"text_content"`
	Description string  `json:"description"`
	Status      struct {
		Status string `json:"status"`
		Type   string `json:"type"`
	} `json:"status"`
	DateCreatedTs  int64   `json:"date_created,string"`
	DateUpdatedTs  int64   `json:"date_updated,string"`
	DateClosedTs   *int64  `json:"date_closed,string"`
	TimeEstimateMs *int64  `json:"time_estimate"`
	DueDate        *int64  `json:"due_date,string"`
	StartDate      *int64  `json:"start_date,string"`
	Parent         *string `json:"parent"`

	Archived bool `json:"archived"`
	Creator  struct {
		ID             int64  `json:"id"`
		Username       string `json:"username"`
		Color          string `json:"color"`
		Email          string `json:"email"`
		ProfilePicture string `json:"profilePicture"`
	} `json:"creator"`
	Assignees []struct {
		ID       int64  `json:"id"`
		Username string `json:"username"`
		Color    string `json:"color"`
		Initials string `json:"initials"`
		Email    string `json:"email"`
	} `json:"assignees"`

	Tags []struct {
		Name string `json:"name"`
	} `json:"tags"`

	LinkedTasks []struct {
		TaskID      string `json:"task_id"`
		LinkID      string `json:"link_id"`
		DateCreated int64  `json:"date_created,string"`
		Userid      int64  `json:"userid,string"`
	} `json:"linked_tasks"`
	TeamID          string `json:"team_id"`
	URL             string `json:"url"`
	PermissionLevel string `json:"permission_level"`
	List            struct {
		ID   string `json:"id"`
		Name string `json:"name"`
	} `json:"list"`
	Project struct {
		ID   string `json:"id"`
		Name string `json:"name"`
	} `json:"project"`
	Folder struct {
		ID   string `json:"id"`
		Name string `json:"name"`
	} `json:"folder"`
	Space struct {
		ID string `json:"id"`
	} `json:"space"`

	Priority *struct {
		ID   int    `json:"id,string"`
		Name string `json:"priority"`
	} `json:"priority"`
}

func (*Task) ListLinkedTaskIDs

func (r *Task) ListLinkedTaskIDs() []string

func (Task) ListTags

func (r Task) ListTags() []string

type TaskByIDRequest

type TaskByIDRequest struct {
	TaskID string
}

type TaskByIDResponse

type TaskByIDResponse struct {
	Task
	// contains filtered or unexported fields
}

func (TaskByIDResponse) DecodeOK

func (r TaskByIDResponse) DecodeOK() bool

func (TaskByIDResponse) IsStatus

func (r TaskByIDResponse) IsStatus(in int) bool

func (TaskByIDResponse) NotFound

func (r TaskByIDResponse) NotFound() bool

func (*TaskByIDResponse) SetDecodeErr

func (r *TaskByIDResponse) SetDecodeErr(err error)

func (*TaskByIDResponse) SetResponseStatusCode

func (r *TaskByIDResponse) SetResponseStatusCode(in int)

func (TaskByIDResponse) StatusOK

func (r TaskByIDResponse) StatusOK() bool

type TaskMembersRequest

type TaskMembersRequest struct {
	TaskID string
}

type TaskMembersResponse

type TaskMembersResponse struct {
	Members []Member `json:"members"`
}

type TaskMembersResponse_Member

type TaskMembersResponse_Member struct {
	Member
}

type UpdateTaskRequest

type UpdateTaskRequest struct {
	TaskID          string
	Name            string
	Description     string
	Priority        *int
	StatusName      string
	TimeEstimateMs  int64
	AssigneeAdds    []int64
	AssigneeRemoves []int64
	DueDate         int64
	StartDate       int64
}

//////////////////// Update Task ////////////////////

type UpdateTaskResponse

type UpdateTaskResponse struct {
	Task
	// contains filtered or unexported fields
}

func (UpdateTaskResponse) DecodeOK

func (r UpdateTaskResponse) DecodeOK() bool

func (UpdateTaskResponse) IsStatus

func (r UpdateTaskResponse) IsStatus(in int) bool

func (UpdateTaskResponse) NotFound

func (r UpdateTaskResponse) NotFound() bool

func (*UpdateTaskResponse) SetDecodeErr

func (r *UpdateTaskResponse) SetDecodeErr(err error)

func (*UpdateTaskResponse) SetResponseStatusCode

func (r *UpdateTaskResponse) SetResponseStatusCode(in int)

func (UpdateTaskResponse) StatusOK

func (r UpdateTaskResponse) StatusOK() bool

type WebhookMessage

type WebhookMessage struct {
	WebhookID    string          `json:"webhook_id"`
	EventName    string          `json:"event"`
	HistoryItems json.RawMessage `json:"history_items"`
	TaskID       *string         `json:"task_id"`
	SpaceID      *string         `json:"space_id"`
	ListID       *string         `json:"list_id"`
	FolderID     *string         `json:"folder_id"`
}

func ParseWebhook

func ParseWebhook(req *http.Request) *WebhookMessage

Jump to

Keyboard shortcuts

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