Documentation
¶
Index ¶
- Constants
- type Attachment
- type Client
- func (c *Client) AddAttachment(commentID string, filename string, content []byte) error
- func (c *Client) CreateComment(com *Comment) (*Comment, error)
- func (c *Client) CreateGroupAssignment(ga *GroupAssignment) (*GroupAssignment, error)
- func (c *Client) CreateProject(p *Project) (*Project, error)
- func (c *Client) CreateProjectAccess(pa *ProjectAccess) (*ProjectAccess, error)
- func (c *Client) CreateProjectFromTemplate(templateID string) (*Project, error)
- func (c *Client) CreateProjectGroup(pg *ProjectGroup) (*ProjectGroup, error)
- func (c *Client) CreateProjectSection(ps *ProjectSection) (*ProjectSection, error)
- func (c *Client) CreateReminder(r *Reminder) (*Reminder, error)
- func (c *Client) CreateTag(t *Tag) (*Tag, error)
- func (c *Client) CreateTagAssignment(ta *TagAssignment) (*TagAssignment, error)
- func (c *Client) CreateTask(t *Task) (*Task, error)
- func (c *Client) CreateTeamMember(tm *TeamMember) (*TeamMember, error)
- func (c *Client) CreateUser(u *User) (*User, error)
- func (c *Client) DeleteComment(id string) error
- func (c *Client) DeleteGroupAssignment(id string) error
- func (c *Client) DeleteProject(projectID string) error
- func (c *Client) DeleteProjectAccess(id string) error
- func (c *Client) DeleteProjectGroup(id string) error
- func (c *Client) DeleteProjectSection(id string) error
- func (c *Client) DeleteReminder(id string) error
- func (c *Client) DeleteTag(id string) error
- func (c *Client) DeleteTagAssignment(id string) error
- func (c *Client) DeleteTask(id string) error
- func (c *Client) DeleteTeamMember(id string) error
- func (c *Client) GetAttachment(commentID, fileID string) (*Attachment, error)
- func (c *Client) GetAttachmentContent(commentID, fileID string) ([]byte, error)
- func (c *Client) GetAttachments(commentID string) ([]Attachment, error)
- func (c *Client) GetComment(id string) (*Comment, error)
- func (c *Client) GetComments() ([]Comment, error)
- func (c *Client) GetCommentsWithParams(params *CommentQueryParams) ([]Comment, error)
- func (c *Client) GetGroupAssignment(id string) (*GroupAssignment, error)
- func (c *Client) GetGroupAssignments() ([]GroupAssignment, error)
- func (c *Client) GetGroupAssignmentsWithParams(params *GroupAssignmentQueryParams) ([]GroupAssignment, error)
- func (c *Client) GetProject(id string) (*Project, error)
- func (c *Client) GetProjectAccess(id string) (*ProjectAccess, error)
- func (c *Client) GetProjectAccesses() ([]ProjectAccess, error)
- func (c *Client) GetProjectAccessesWithParams(params *ProjectAccessQueryParams) ([]ProjectAccess, error)
- func (c *Client) GetProjectByName(name string) (*Project, error)
- func (c *Client) GetProjectGroup(id string) (*ProjectGroup, error)
- func (c *Client) GetProjectGroups() ([]ProjectGroup, error)
- func (c *Client) GetProjectGroupsWithParams(params *ProjectGroupQueryParams) ([]ProjectGroup, error)
- func (c *Client) GetProjectSection(id string) (*ProjectSection, error)
- func (c *Client) GetProjectSections() ([]ProjectSection, error)
- func (c *Client) GetProjectSectionsWithParams(params *ProjectSectionQueryParams) ([]ProjectSection, error)
- func (c *Client) GetProjects() ([]Project, error)
- func (c *Client) GetProjectsWithParams(params *ProjectQueryParams) ([]Project, error)
- func (c *Client) GetReminder(id string) (*Reminder, error)
- func (c *Client) GetReminders() ([]Reminder, error)
- func (c *Client) GetRemindersWithParams(params *ReminderQueryParams) ([]Reminder, error)
- func (c *Client) GetTag(id string) (*Tag, error)
- func (c *Client) GetTagAssignment(id string) (*TagAssignment, error)
- func (c *Client) GetTagAssignments() ([]TagAssignment, error)
- func (c *Client) GetTagAssignmentsWithParams(params *TagAssignmentQueryParams) ([]TagAssignment, error)
- func (c *Client) GetTags() ([]Tag, error)
- func (c *Client) GetTagsWithParams(params *TagQueryParams) ([]Tag, error)
- func (c *Client) GetTask(id string) (*Task, error)
- func (c *Client) GetTaskEvent(id string) (*TaskEvent, error)
- func (c *Client) GetTaskEvents() ([]TaskEvent, error)
- func (c *Client) GetTaskEventsWithParams(params *TaskEventQueryParams) ([]TaskEvent, error)
- func (c *Client) GetTasks() ([]Task, error)
- func (c *Client) GetTasksWithParams(params *TaskQueryParams) ([]Task, error)
- func (c *Client) GetTeam(teamID string) (*Team, error)
- func (c *Client) GetTeamByName(name string) (*Team, error)
- func (c *Client) GetTeamMember(id string) (*TeamMember, error)
- func (c *Client) GetTeamMembers() ([]TeamMember, error)
- func (c *Client) GetTeamMembersWithParams(params *TeamMemberQueryParams) ([]TeamMember, error)
- func (c *Client) GetTeams() ([]Team, error)
- func (c *Client) GetTeamsWithParams(params *TeamQueryParams) ([]Team, error)
- func (c *Client) GetUser(id string) (*User, error)
- func (c *Client) GetUsers() ([]User, error)
- func (c *Client) GetUsersWithParams(params *UserQueryParams) ([]User, error)
- func (c *Client) PollNewTasks() ([]Task, error)
- func (c *Client) PollUpdatedTasks() ([]Task, error)
- func (c *Client) UpdateComment(id string, com *Comment) (*Comment, error)
- func (c *Client) UpdateProject(id string, p *Project) (*Project, error)
- func (c *Client) UpdateProjectAccess(id string, pa *ProjectAccess) (*ProjectAccess, error)
- func (c *Client) UpdateProjectGroup(id string, pg *ProjectGroup) (*ProjectGroup, error)
- func (c *Client) UpdateProjectSection(id string, ps *ProjectSection) (*ProjectSection, error)
- func (c *Client) UpdateReminder(id string, r *Reminder) (*Reminder, error)
- func (c *Client) UpdateTag(id string, t *Tag) (*Tag, error)
- func (c *Client) UpdateTask(id string, t *Task) (*Task, error)
- func (c *Client) UpdateTeam(id string, t *Team) (*Team, error)
- func (c *Client) UpdateTeamMember(id string, tm *TeamMember) (*TeamMember, error)
- func (c *Client) UpdateUser(id string, u *User) (*User, error)
- func (c *Client) UploadProjectsFromCSV(csvContent []byte) ([]Project, error)
- func (c *Client) UploadTasksFromCSV(csvContent []byte) ([]Task, error)
- type Comment
- type CommentQueryParams
- type GroupAssignment
- type GroupAssignmentQueryParams
- type Project
- type ProjectAccess
- type ProjectAccessQueryParams
- type ProjectGroup
- type ProjectGroupQueryParams
- type ProjectQueryParams
- type ProjectSection
- type ProjectSectionQueryParams
- type Reminder
- type ReminderQueryParams
- type Tag
- type TagAssignment
- type TagAssignmentQueryParams
- type TagQueryParams
- type Task
- type TaskEvent
- type TaskEventQueryParams
- type TaskQueryParams
- type Team
- type TeamMember
- type TeamMemberQueryParams
- type TeamQueryParams
- type User
- type UserQueryParams
Constants ¶
const HostURL = "https://api4.nozbe.com/v1/api"
HostURL is the base URL for the Nozbe API v1.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Attachment ¶
type Attachment struct {
ID string `json:"id,omitempty"`
AuthorID string `json:"author_id,omitempty"`
Status string `json:"status,omitempty"`
Name string `json:"name"`
MimeType string `json:"mime_type,omitempty"`
CreatedAt int64 `json:"created_at,omitempty"`
Size int `json:"size,omitempty"`
}
Attachment represents a file attached to a comment.
type Client ¶
type Client struct {
// HostURL is the base URL for the API.
HostURL string
// HTTPClient is the HTTP client used to make requests.
HTTPClient *http.Client
// Token is the API token used for authentication.
Token string
}
Client is the Nozbe API client.
func (*Client) AddAttachment ¶
AddAttachment uploads a file as an attachment to a comment.
func (*Client) CreateComment ¶
CreateComment creates a new comment.
func (*Client) CreateGroupAssignment ¶
func (c *Client) CreateGroupAssignment(ga *GroupAssignment) (*GroupAssignment, error)
CreateGroupAssignment creates a new group assignment.
func (*Client) CreateProject ¶
CreateProject creates a new project.
func (*Client) CreateProjectAccess ¶
func (c *Client) CreateProjectAccess(pa *ProjectAccess) (*ProjectAccess, error)
CreateProjectAccess creates a new project access.
func (*Client) CreateProjectFromTemplate ¶
CreateProjectFromTemplate creates a new project from a template.
func (*Client) CreateProjectGroup ¶
func (c *Client) CreateProjectGroup(pg *ProjectGroup) (*ProjectGroup, error)
CreateProjectGroup creates a new project group.
func (*Client) CreateProjectSection ¶
func (c *Client) CreateProjectSection(ps *ProjectSection) (*ProjectSection, error)
CreateProjectSection creates a new project section.
func (*Client) CreateReminder ¶
CreateReminder creates a new reminder.
func (*Client) CreateTagAssignment ¶
func (c *Client) CreateTagAssignment(ta *TagAssignment) (*TagAssignment, error)
CreateTagAssignment creates a new tag assignment.
func (*Client) CreateTask ¶
CreateTask creates a new task.
func (*Client) CreateTeamMember ¶
func (c *Client) CreateTeamMember(tm *TeamMember) (*TeamMember, error)
CreateTeamMember creates a new team member.
func (*Client) CreateUser ¶
CreateUser creates a new user.
func (*Client) DeleteComment ¶
DeleteComment deletes a comment by its ID.
func (*Client) DeleteGroupAssignment ¶
DeleteGroupAssignment deletes a group assignment by its ID.
func (*Client) DeleteProject ¶
DeleteProject deletes a project by its ID.
func (*Client) DeleteProjectAccess ¶
DeleteProjectAccess deletes a project access by its ID.
func (*Client) DeleteProjectGroup ¶
DeleteProjectGroup deletes a project group by its ID.
func (*Client) DeleteProjectSection ¶
DeleteProjectSection deletes a project section by its ID.
func (*Client) DeleteReminder ¶
DeleteReminder deletes a reminder by its ID.
func (*Client) DeleteTagAssignment ¶
DeleteTagAssignment deletes a tag assignment by its ID.
func (*Client) DeleteTask ¶
DeleteTask deletes a task by its ID.
func (*Client) DeleteTeamMember ¶
DeleteTeamMember deletes a team member by its ID.
func (*Client) GetAttachment ¶
func (c *Client) GetAttachment(commentID, fileID string) (*Attachment, error)
GetAttachment returns a specific attachment by its ID.
func (*Client) GetAttachmentContent ¶
GetAttachmentContent returns the binary content of an attachment.
func (*Client) GetAttachments ¶
func (c *Client) GetAttachments(commentID string) ([]Attachment, error)
GetAttachments returns all attachments for a comment.
func (*Client) GetComment ¶
GetComment returns a comment by its ID.
func (*Client) GetComments ¶
GetComments returns all comments.
func (*Client) GetCommentsWithParams ¶
func (c *Client) GetCommentsWithParams(params *CommentQueryParams) ([]Comment, error)
GetCommentsWithParams returns comments filtered by the provided parameters.
func (*Client) GetGroupAssignment ¶
func (c *Client) GetGroupAssignment(id string) (*GroupAssignment, error)
GetGroupAssignment returns a group assignment by its ID.
func (*Client) GetGroupAssignments ¶
func (c *Client) GetGroupAssignments() ([]GroupAssignment, error)
GetGroupAssignments returns all group assignments.
func (*Client) GetGroupAssignmentsWithParams ¶
func (c *Client) GetGroupAssignmentsWithParams(params *GroupAssignmentQueryParams) ([]GroupAssignment, error)
GetGroupAssignmentsWithParams returns group assignments filtered by the provided parameters.
func (*Client) GetProject ¶
GetProject returns a project by its ID.
func (*Client) GetProjectAccess ¶
func (c *Client) GetProjectAccess(id string) (*ProjectAccess, error)
GetProjectAccess returns a project access by its ID.
func (*Client) GetProjectAccesses ¶
func (c *Client) GetProjectAccesses() ([]ProjectAccess, error)
GetProjectAccesses returns all project accesses.
func (*Client) GetProjectAccessesWithParams ¶
func (c *Client) GetProjectAccessesWithParams(params *ProjectAccessQueryParams) ([]ProjectAccess, error)
GetProjectAccessesWithParams returns project accesses filtered by the provided parameters.
func (*Client) GetProjectByName ¶
GetProjectByName returns a project by its name. Note: This method uses a specific query to find a project by name equality.
func (*Client) GetProjectGroup ¶
func (c *Client) GetProjectGroup(id string) (*ProjectGroup, error)
GetProjectGroup returns a project group by its ID.
func (*Client) GetProjectGroups ¶
func (c *Client) GetProjectGroups() ([]ProjectGroup, error)
GetProjectGroups returns all project groups.
func (*Client) GetProjectGroupsWithParams ¶
func (c *Client) GetProjectGroupsWithParams(params *ProjectGroupQueryParams) ([]ProjectGroup, error)
GetProjectGroupsWithParams returns project groups filtered by the provided parameters.
func (*Client) GetProjectSection ¶
func (c *Client) GetProjectSection(id string) (*ProjectSection, error)
GetProjectSection returns a project section by its ID.
func (*Client) GetProjectSections ¶
func (c *Client) GetProjectSections() ([]ProjectSection, error)
GetProjectSections returns all project sections.
func (*Client) GetProjectSectionsWithParams ¶
func (c *Client) GetProjectSectionsWithParams(params *ProjectSectionQueryParams) ([]ProjectSection, error)
GetProjectSectionsWithParams returns project sections filtered by the provided parameters.
func (*Client) GetProjects ¶
GetProjects returns all projects.
func (*Client) GetProjectsWithParams ¶
func (c *Client) GetProjectsWithParams(params *ProjectQueryParams) ([]Project, error)
GetProjectsWithParams returns projects filtered by the provided parameters.
func (*Client) GetReminder ¶
GetReminder returns a reminder by its ID.
func (*Client) GetReminders ¶
GetReminders returns all reminders.
func (*Client) GetRemindersWithParams ¶
func (c *Client) GetRemindersWithParams(params *ReminderQueryParams) ([]Reminder, error)
GetRemindersWithParams returns reminders filtered by the provided parameters.
func (*Client) GetTagAssignment ¶
func (c *Client) GetTagAssignment(id string) (*TagAssignment, error)
GetTagAssignment returns a tag assignment by its ID.
func (*Client) GetTagAssignments ¶
func (c *Client) GetTagAssignments() ([]TagAssignment, error)
GetTagAssignments returns all tag assignments.
func (*Client) GetTagAssignmentsWithParams ¶
func (c *Client) GetTagAssignmentsWithParams(params *TagAssignmentQueryParams) ([]TagAssignment, error)
GetTagAssignmentsWithParams returns tag assignments filtered by the provided parameters.
func (*Client) GetTagsWithParams ¶
func (c *Client) GetTagsWithParams(params *TagQueryParams) ([]Tag, error)
GetTagsWithParams returns tags filtered by the provided parameters.
func (*Client) GetTaskEvent ¶
GetTaskEvent returns a task event by its ID.
func (*Client) GetTaskEvents ¶
GetTaskEvents returns all task events.
func (*Client) GetTaskEventsWithParams ¶
func (c *Client) GetTaskEventsWithParams(params *TaskEventQueryParams) ([]TaskEvent, error)
GetTaskEventsWithParams returns task events filtered by the provided parameters.
func (*Client) GetTasksWithParams ¶
func (c *Client) GetTasksWithParams(params *TaskQueryParams) ([]Task, error)
GetTasksWithParams returns tasks filtered by the provided parameters.
func (*Client) GetTeamByName ¶
GetTeamByName returns a team by its name. Note: This method uses a specific query to find a team by name equality.
func (*Client) GetTeamMember ¶
func (c *Client) GetTeamMember(id string) (*TeamMember, error)
GetTeamMember returns a team member by its ID.
func (*Client) GetTeamMembers ¶
func (c *Client) GetTeamMembers() ([]TeamMember, error)
Team Members GetTeamMembers returns all team members.
func (*Client) GetTeamMembersWithParams ¶
func (c *Client) GetTeamMembersWithParams(params *TeamMemberQueryParams) ([]TeamMember, error)
GetTeamMembersWithParams returns team members filtered by the provided parameters.
func (*Client) GetTeamsWithParams ¶
func (c *Client) GetTeamsWithParams(params *TeamQueryParams) ([]Team, error)
GetTeamsWithParams returns teams filtered by the provided parameters.
func (*Client) GetUsersWithParams ¶
func (c *Client) GetUsersWithParams(params *UserQueryParams) ([]User, error)
GetUsersWithParams returns users filtered by the provided parameters.
func (*Client) PollNewTasks ¶
PollNewTasks returns new tasks since the last poll.
func (*Client) PollUpdatedTasks ¶
PollUpdatedTasks returns updated tasks since the last poll.
func (*Client) UpdateComment ¶
UpdateComment updates an existing comment.
func (*Client) UpdateProject ¶
UpdateProject updates an existing project.
func (*Client) UpdateProjectAccess ¶
func (c *Client) UpdateProjectAccess(id string, pa *ProjectAccess) (*ProjectAccess, error)
UpdateProjectAccess updates an existing project access.
func (*Client) UpdateProjectGroup ¶
func (c *Client) UpdateProjectGroup(id string, pg *ProjectGroup) (*ProjectGroup, error)
UpdateProjectGroup updates an existing project group.
func (*Client) UpdateProjectSection ¶
func (c *Client) UpdateProjectSection(id string, ps *ProjectSection) (*ProjectSection, error)
UpdateProjectSection updates an existing project section.
func (*Client) UpdateReminder ¶
UpdateReminder updates an existing reminder.
func (*Client) UpdateTask ¶
UpdateTask updates an existing task.
func (*Client) UpdateTeam ¶
UpdateTeam updates an existing team.
func (*Client) UpdateTeamMember ¶
func (c *Client) UpdateTeamMember(id string, tm *TeamMember) (*TeamMember, error)
UpdateTeamMember updates an existing team member.
func (*Client) UpdateUser ¶
UpdateUser updates an existing user.
func (*Client) UploadProjectsFromCSV ¶
UploadProjectsFromCSV uploads projects from a CSV file.
type Comment ¶
type Comment struct {
ID string `json:"id,omitempty"`
Body string `json:"body"`
TaskID string `json:"task_id"`
AuthorID string `json:"author_id"`
CreatedAt int64 `json:"created_at"`
EditedAt int64 `json:"edited_at,omitempty"`
IsDeleted bool `json:"is_deleted,omitempty"`
IsPinned bool `json:"is_pinned,omitempty"`
IsTeam bool `json:"is_team,omitempty"`
Extra string `json:"extra,omitempty"`
Reactions string `json:"reactions,omitempty"`
}
Comment represents a comment on a task.
type CommentQueryParams ¶
type CommentQueryParams struct {
TaskID string
AuthorID string
IsPinned *bool
IsDeleted *bool
IsTeam *bool
}
CommentQueryParams represents query parameters for filtering comments
type GroupAssignment ¶
type GroupAssignment struct {
ID string `json:"id,omitempty"`
GroupID string `json:"group_id"`
ObjectID string `json:"object_id"`
GroupType string `json:"group_type"`
}
GroupAssignment represents an assignment of an object to a group.
type GroupAssignmentQueryParams ¶
GroupAssignmentQueryParams represents query parameters for filtering group assignments
type Project ¶
type Project struct {
ID string `json:"id,omitempty"`
Name string `json:"name"`
TeamID string `json:"team_id"`
AuthorID string `json:"author_id,omitempty"`
CreatedAt int64 `json:"created_at,omitempty"`
EndedAt int64 `json:"ended_at,omitempty"`
LastEventAt int64 `json:"last_event_at,omitempty"`
LastSeenEventAt int64 `json:"last_seen_event_at,omitempty"`
IsOpen bool `json:"is_open,omitempty"`
IsFavorite bool `json:"is_favorite,omitempty"`
IsSingleActions bool `json:"is_single_actions,omitempty"`
IsTemplate bool `json:"is_template,omitempty"`
Color string `json:"color,omitempty"`
TeamColor string `json:"team_color,omitempty"`
Description string `json:"description,omitempty"`
Extra string `json:"extra,omitempty"`
Preferences string `json:"preferences,omitempty"`
SidebarPosition float32 `json:"sidebar_position,omitempty"`
}
Project represents a Nozbe project.
type ProjectAccess ¶
type ProjectAccess struct {
ID string `json:"id,omitempty"`
ProjectID string `json:"project_id"`
MemberID string `json:"member_id"`
IsManager bool `json:"is_manager"`
}
ProjectAccess represents access rights for a project.
type ProjectAccessQueryParams ¶
ProjectAccessQueryParams represents query parameters for filtering project accesses
type ProjectGroup ¶
type ProjectGroup struct {
ID string `json:"id,omitempty"`
TeamID string `json:"team_id"`
Name string `json:"name"`
IsPrivate bool `json:"is_private"`
}
ProjectGroup represents a group of Nozbe projects.
type ProjectGroupQueryParams ¶
ProjectGroupQueryParams represents query parameters for filtering project groups
type ProjectQueryParams ¶
type ProjectQueryParams struct {
TeamID string
Name string
IsOpen *bool
IsFavorite *bool
IsSingleActions *bool
IsTemplate *bool
}
ProjectQueryParams represents query parameters for filtering projects
type ProjectSection ¶
type ProjectSection struct {
ID string `json:"id,omitempty"`
ProjectID string `json:"project_id"`
Name string `json:"name"`
CreatedAt int64 `json:"created_at,omitempty"`
ArchivedAt int64 `json:"archived_at,omitempty"`
Position float32 `json:"position,omitempty"`
}
ProjectSection represents a section within a Nozbe project.
type ProjectSectionQueryParams ¶
type ProjectSectionQueryParams struct {
ProjectID string
}
ProjectSectionQueryParams represents query parameters for filtering project sections
type Reminder ¶
type Reminder struct {
ID string `json:"id,omitempty"`
TaskID string `json:"task_id"`
RemindAt int64 `json:"remind_at"`
IsRelative bool `json:"is_relative"`
IsAllDay bool `json:"is_all_day"`
}
Reminder represents a task reminder.
type ReminderQueryParams ¶
ReminderQueryParams represents query parameters for filtering reminders
type Tag ¶
type Tag struct {
ID string `json:"id,omitempty"`
TeamID string `json:"team_id,omitempty"`
Name string `json:"name"`
Color string `json:"color,omitempty"`
TeamColor string `json:"team_color,omitempty"`
Icon string `json:"icon,omitempty"`
IsFavorite bool `json:"is_favorite,omitempty"`
SidebarPosition float32 `json:"sidebar_position,omitempty"`
ArchivedAt int64 `json:"archived_at,omitempty"`
Preferences string `json:"preferences,omitempty"`
}
Tag represents a Nozbe tag.
type TagAssignment ¶
type TagAssignment struct {
ID string `json:"id,omitempty"`
TagID string `json:"tag_id"`
TaskID string `json:"task_id"`
}
TagAssignment represents a tag assigned to a task.
type TagAssignmentQueryParams ¶
TagAssignmentQueryParams represents query parameters for filtering tag assignments
type TagQueryParams ¶
TagQueryParams represents query parameters for filtering tags
type Task ¶
type Task struct {
ID string `json:"id,omitempty"`
Name string `json:"name"`
ProjectID string `json:"project_id,omitempty"`
ProjectSectionID string `json:"project_section_id,omitempty"`
AuthorID string `json:"author_id,omitempty"`
ResponsibleID string `json:"responsible_id,omitempty"`
RecurrenceID string `json:"recurrence_id,omitempty"`
CreatedAt int64 `json:"created_at,omitempty"`
LastModified int64 `json:"last_modified,omitempty"`
DueAt int64 `json:"due_at,omitempty"`
EndedAt int64 `json:"ended_at,omitempty"`
LastActivityAt int64 `json:"last_activity_at,omitempty"`
LastSeenActivityAt int64 `json:"last_seen_activity_at,omitempty"`
LastReviewedAt int64 `json:"last_reviewed_at,omitempty"`
ReviewTriggeredAt int64 `json:"review_triggered_at,omitempty"`
ReviewReason string `json:"review_reason,omitempty"`
IsFollowed bool `json:"is_followed,omitempty"`
IsAbandoned bool `json:"is_abandoned,omitempty"`
IsAllDay bool `json:"is_all_day,omitempty"`
ProjectPosition float32 `json:"project_position,omitempty"`
PriorityPosition float32 `json:"priority_position,omitempty"`
MissedRepeats int `json:"missed_repeats,omitempty"`
TimeNeeded int64 `json:"time_needed,omitempty"`
TimeSpent int64 `json:"time_spent,omitempty"`
Type string `json:"type,omitempty"`
Extra string `json:"extra,omitempty"`
}
Task represents a Nozbe task.
type TaskEvent ¶
type TaskEvent struct {
ID string `json:"id,omitempty"`
TaskID string `json:"task_id"`
AuthorID string `json:"author_id"`
CreatedAt int64 `json:"created_at"`
LastModified int64 `json:"last_modified,omitempty"`
Change string `json:"change"`
Integration string `json:"integration,omitempty"`
}
TaskEvent represents an event related to a task.
type TaskEventQueryParams ¶
TaskEventQueryParams represents query parameters for filtering task events
type TaskQueryParams ¶
type TaskQueryParams struct {
ProjectID string
ProjectSectionID string
ResponsibleID string
RecurrenceID string
ReviewReason string
Type string
IsFollowed *bool
IsAbandoned *bool
IsAllDay *bool
}
TaskQueryParams represents query parameters for filtering tasks
type Team ¶
type Team struct {
ID string `json:"id,omitempty"`
Name string `json:"name"`
IsPersonal bool `json:"is_personal"`
Color string `json:"color"`
AvatarUrl string `json:"avatar_url,omitempty"`
Limits string `json:"limits,omitempty"`
PlanInfo string `json:"plan_info,omitempty"`
SidebarPosition float32 `json:"sidebar_position,omitempty"`
}
Team represents a Nozbe team.
type TeamMember ¶
type TeamMember struct {
ID string `json:"id,omitempty"`
TeamID string `json:"team_id"`
UserID string `json:"user_id"`
Alias string `json:"alias,omitempty"`
Description string `json:"description,omitempty"`
Role string `json:"role"`
Status string `json:"status"`
IsFavorite bool `json:"is_favorite,omitempty"`
SidebarPosition float32 `json:"sidebar_position,omitempty"`
ContactInfo string `json:"contact_info,omitempty"`
}
TeamMember represents a member of a Nozbe team.
type TeamMemberQueryParams ¶
type TeamMemberQueryParams struct {
TeamID string
UserID string
Role string
Status string
IsFavorite *bool
}
TeamMemberQueryParams represents query parameters for filtering team members
type TeamQueryParams ¶
TeamQueryParams represents query parameters for filtering teams
type User ¶
type User struct {
ID string `json:"id,omitempty"`
Name string `json:"name"`
Color string `json:"color"`
IsPlaceholder bool `json:"is_placeholder"`
InvitationEmail string `json:"invitation_email,omitempty"`
AvatarUrl string `json:"avatar_url,omitempty"`
TimeZone string `json:"time_zone,omitempty"`
}
User represents a Nozbe user.
type UserQueryParams ¶
UserQueryParams represents query parameters for filtering users