nozbe

package
v4.0.0 Latest Latest
Warning

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

Go to latest
Published: Dec 27, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
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 NewClient

func NewClient(token *string) (*Client, error)

NewClient creates a new Nozbe API client with the provided token.

func (*Client) AddAttachment

func (c *Client) AddAttachment(commentID string, filename string, content []byte) error

AddAttachment uploads a file as an attachment to a comment.

func (*Client) CreateComment

func (c *Client) CreateComment(com *Comment) (*Comment, error)

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

func (c *Client) CreateProject(p *Project) (*Project, error)

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

func (c *Client) CreateProjectFromTemplate(templateID string) (*Project, error)

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

func (c *Client) CreateReminder(r *Reminder) (*Reminder, error)

CreateReminder creates a new reminder.

func (*Client) CreateTag

func (c *Client) CreateTag(t *Tag) (*Tag, error)

CreateTag creates a new tag.

func (*Client) CreateTagAssignment

func (c *Client) CreateTagAssignment(ta *TagAssignment) (*TagAssignment, error)

CreateTagAssignment creates a new tag assignment.

func (*Client) CreateTask

func (c *Client) CreateTask(t *Task) (*Task, error)

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

func (c *Client) CreateUser(u *User) (*User, error)

CreateUser creates a new user.

func (*Client) DeleteComment

func (c *Client) DeleteComment(id string) error

DeleteComment deletes a comment by its ID.

func (*Client) DeleteGroupAssignment

func (c *Client) DeleteGroupAssignment(id string) error

DeleteGroupAssignment deletes a group assignment by its ID.

func (*Client) DeleteProject

func (c *Client) DeleteProject(projectID string) error

DeleteProject deletes a project by its ID.

func (*Client) DeleteProjectAccess

func (c *Client) DeleteProjectAccess(id string) error

DeleteProjectAccess deletes a project access by its ID.

func (*Client) DeleteProjectGroup

func (c *Client) DeleteProjectGroup(id string) error

DeleteProjectGroup deletes a project group by its ID.

func (*Client) DeleteProjectSection

func (c *Client) DeleteProjectSection(id string) error

DeleteProjectSection deletes a project section by its ID.

func (*Client) DeleteReminder

func (c *Client) DeleteReminder(id string) error

DeleteReminder deletes a reminder by its ID.

func (*Client) DeleteTag

func (c *Client) DeleteTag(id string) error

DeleteTag deletes a tag by its ID.

func (*Client) DeleteTagAssignment

func (c *Client) DeleteTagAssignment(id string) error

DeleteTagAssignment deletes a tag assignment by its ID.

func (*Client) DeleteTask

func (c *Client) DeleteTask(id string) error

DeleteTask deletes a task by its ID.

func (*Client) DeleteTeamMember

func (c *Client) DeleteTeamMember(id string) error

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

func (c *Client) GetAttachmentContent(commentID, fileID string) ([]byte, error)

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

func (c *Client) GetComment(id string) (*Comment, error)

GetComment returns a comment by its ID.

func (*Client) GetComments

func (c *Client) GetComments() ([]Comment, error)

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

func (c *Client) GetProject(id string) (*Project, error)

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

func (c *Client) GetProjectByName(name string) (*Project, error)

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

func (c *Client) GetProjects() ([]Project, error)

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

func (c *Client) GetReminder(id string) (*Reminder, error)

GetReminder returns a reminder by its ID.

func (*Client) GetReminders

func (c *Client) GetReminders() ([]Reminder, error)

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) GetTag

func (c *Client) GetTag(id string) (*Tag, error)

GetTag returns a tag by its ID.

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) GetTags

func (c *Client) GetTags() ([]Tag, error)

GetTags returns all tags.

func (*Client) GetTagsWithParams

func (c *Client) GetTagsWithParams(params *TagQueryParams) ([]Tag, error)

GetTagsWithParams returns tags filtered by the provided parameters.

func (*Client) GetTask

func (c *Client) GetTask(id string) (*Task, error)

GetTask returns a task by its ID.

func (*Client) GetTaskEvent

func (c *Client) GetTaskEvent(id string) (*TaskEvent, error)

GetTaskEvent returns a task event by its ID.

func (*Client) GetTaskEvents

func (c *Client) GetTaskEvents() ([]TaskEvent, error)

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) GetTasks

func (c *Client) GetTasks() ([]Task, error)

GetTasks returns all tasks.

func (*Client) GetTasksWithParams

func (c *Client) GetTasksWithParams(params *TaskQueryParams) ([]Task, error)

GetTasksWithParams returns tasks filtered by the provided parameters.

func (*Client) GetTeam

func (c *Client) GetTeam(teamID string) (*Team, error)

GetTeam returns a team by its ID.

func (*Client) GetTeamByName

func (c *Client) GetTeamByName(name string) (*Team, error)

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) GetTeams

func (c *Client) GetTeams() ([]Team, error)

GetTeams returns all teams.

func (*Client) GetTeamsWithParams

func (c *Client) GetTeamsWithParams(params *TeamQueryParams) ([]Team, error)

GetTeamsWithParams returns teams filtered by the provided parameters.

func (*Client) GetUser

func (c *Client) GetUser(id string) (*User, error)

GetUser returns a user by its ID.

func (*Client) GetUsers

func (c *Client) GetUsers() ([]User, error)

GetUsers returns all users.

func (*Client) GetUsersWithParams

func (c *Client) GetUsersWithParams(params *UserQueryParams) ([]User, error)

GetUsersWithParams returns users filtered by the provided parameters.

func (*Client) PollNewTasks

func (c *Client) PollNewTasks() ([]Task, error)

PollNewTasks returns new tasks since the last poll.

func (*Client) PollUpdatedTasks

func (c *Client) PollUpdatedTasks() ([]Task, error)

PollUpdatedTasks returns updated tasks since the last poll.

func (*Client) UpdateComment

func (c *Client) UpdateComment(id string, com *Comment) (*Comment, error)

UpdateComment updates an existing comment.

func (*Client) UpdateProject

func (c *Client) UpdateProject(id string, p *Project) (*Project, error)

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

func (c *Client) UpdateReminder(id string, r *Reminder) (*Reminder, error)

UpdateReminder updates an existing reminder.

func (*Client) UpdateTag

func (c *Client) UpdateTag(id string, t *Tag) (*Tag, error)

UpdateTag updates an existing tag.

func (*Client) UpdateTask

func (c *Client) UpdateTask(id string, t *Task) (*Task, error)

UpdateTask updates an existing task.

func (*Client) UpdateTeam

func (c *Client) UpdateTeam(id string, t *Team) (*Team, error)

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

func (c *Client) UpdateUser(id string, u *User) (*User, error)

UpdateUser updates an existing user.

func (*Client) UploadProjectsFromCSV

func (c *Client) UploadProjectsFromCSV(csvContent []byte) ([]Project, error)

UploadProjectsFromCSV uploads projects from a CSV file.

func (*Client) UploadTasksFromCSV

func (c *Client) UploadTasksFromCSV(csvContent []byte) ([]Task, error)

UploadTasksFromCSV uploads tasks 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

type GroupAssignmentQueryParams struct {
	GroupID   string
	ObjectID  string
	GroupType string
}

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"`
	SharedTeamID    string  `json:"shared_team_id,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

type ProjectAccessQueryParams struct {
	ProjectID string
	MemberID  string
	IsManager *bool
}

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

type ProjectGroupQueryParams struct {
	TeamID    string
	Name      string
	IsPrivate *bool
}

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

type ReminderQueryParams struct {
	TaskID     string
	IsRelative *bool
	IsAllDay   *bool
}

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

type TagAssignmentQueryParams struct {
	TagID  string
	TaskID string
}

TagAssignmentQueryParams represents query parameters for filtering tag assignments

type TagQueryParams

type TagQueryParams struct {
	TeamID     string
	Name       string
	IsFavorite *bool
}

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

type TaskEventQueryParams struct {
	TaskID   string
	AuthorID string
}

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

type TeamQueryParams struct {
	Name       string
	IsPersonal *bool
}

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

type UserQueryParams struct {
	Name          string
	IsPlaceholder *bool
}

UserQueryParams represents query parameters for filtering users

Jump to

Keyboard shortcuts

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