Documentation ¶
Index ¶
- Constants
- type AutomaticLock
- type BudgetEstimate
- type ChangeTimeEntriesInvoicedRequest
- type CreateTimeEntryRequest
- type CustomField
- type DateTime
- type Error
- type EstimateBase
- type EstimateType
- type GetProjectRequest
- type GetTagsRequest
- type GetTasksRequest
- type GetTimeEntryRequest
- type Invitation
- type InvitedUser
- type Membership
- type MembershipStatus
- type OutTimeEntryRequest
- type PaginatedRequest
- type Project
- type Rate
- type Role
- type RoleEntity
- type Round
- type SummaryReportSettings
- type Tag
- type Task
- type TaskStatus
- type TimeEntriesList
- type TimeEntry
- type TimeEntryImpl
- type TimeEstimate
- type TimeInterval
- type UpdateTimeEntryRequest
- type User
- type UserSettings
- type UserStatus
- type UserTimeEntriesRequest
- type WeekStart
- type Workspace
- type WorkspaceSettings
Constants ¶
const EstimateTypeAuto = EstimateType("AUTO")
EstimateTypeAuto estimate is Auto
const EstimateTypeManual = EstimateType("MANUAL")
EstimateTypeManual estimate is Manual
const MembershipStatusActive = MembershipStatus("ACTIVE")
MembershipStatusActive membership is Active
const MembershipStatusDeclined = MembershipStatus("DECLINED")
MembershipStatusDeclined membership is Declined
const MembershipStatusInactive = MembershipStatus("INACTIVE")
MembershipStatusInactive membership is Inactive
const MembershipStatusPending = MembershipStatus("PENDING")
MembershipStatusPending membership is Pending
const TaskStatusActive = TaskStatus("ACTIVE")
TaskStatusActive task is Active
const TaskStatusDone = TaskStatus("DONE")
TaskStatusDone task is Done
const UserStatusActive = UserStatus("ACTIVE")
UserStatusActive when the user is Active
const UserStatusDeleted = UserStatus("DELETED")
UserStatusDeleted when the user is Deleted
const UserStatusPendingEmailVerification = UserStatus("PENDING_EMAIL_VERIFICATION")
UserStatusPendingEmailVerification when the user is Pending Email Verification
const WeekStartFriday = WeekStart("FRIDAY")
WeekStartFriday when start at Friday
const WeekStartMonday = WeekStart("MONDAY")
WeekStartMonday when start at Monday
const WeekStartSaturday = WeekStart("SATURDAY")
WeekStartSaturday when start at Saturday
const WeekStartSunday = WeekStart("SUNDAY")
WeekStartSunday when start at Sunday
const WeekStartThursday = WeekStart("THURSDAY")
WeekStartThursday when start at Thursday
const WeekStartTuesday = WeekStart("TUESDAY")
WeekStartTuesday when start at Tuesday
const WeekStartWednesday = WeekStart("WEDNESDAY")
WeekStartWednesday when start at Wednesday
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AutomaticLock ¶ added in v0.24.0
type AutomaticLock struct { ChangeDay string `json:"changeDay"` DayOfMonth int `json:"dayOfMonth"` FirstDay string `json:"firstDay"` OlderThanPeriod string `json:"olderThanPeriod"` OlderThanValue int `json:"olderThanValue"` Type string `json:"type"` }
AutomaticLock DTO
type BudgetEstimate ¶ added in v0.24.0
type BudgetEstimate struct { EstimateBase Estimate int `json:"estimate"` }
BudgetEstimate DTO
type ChangeTimeEntriesInvoicedRequest ¶ added in v0.24.0
type CreateTimeEntryRequest ¶
type CreateTimeEntryRequest struct { Start DateTime `json:"start,omitempty"` End *DateTime `json:"end,omitempty"` Billable bool `json:"billable,omitempty"` Description string `json:"description,omitempty"` ProjectID string `json:"projectId,omitempty"` TaskID string `json:"taskId,omitempty"` TagIDs []string `json:"tagIds,omitempty"` CustomFields []CustomField `json:"customFields,omitempty"` }
CreateTimeEntryRequest to create a time entry is created
type CustomField ¶ added in v0.24.0
CustomField DTO
type DateTime ¶
DateTime is a time presentation for parameters
func (DateTime) MarshalJSON ¶
MarshalJSON converts DateTime correctly
type EstimateBase ¶ added in v0.24.0
type EstimateBase struct { Type EstimateType `json:"type"` Active bool `json:"active"` ResetOptions *string `json:"resetOptions"` }
EstimateBase DTO
type GetProjectRequest ¶ added in v0.10.0
type GetProjectRequest struct { Name string Archived bool // contains filtered or unexported fields }
func (GetProjectRequest) AppendToQuery ¶ added in v0.10.0
func (r GetProjectRequest) AppendToQuery(u url.URL) url.URL
AppendToQuery decorates the URL with the query string needed for this Request
func (GetProjectRequest) WithPagination ¶ added in v0.10.0
func (r GetProjectRequest) WithPagination(page, size int) PaginatedRequest
WithPagination add pagination to the GetProjectRequest
type GetTagsRequest ¶ added in v0.15.0
func (GetTagsRequest) AppendToQuery ¶ added in v0.15.0
func (r GetTagsRequest) AppendToQuery(u url.URL) url.URL
AppendToQuery decorates the URL with the query string needed for this Request
func (GetTagsRequest) WithPagination ¶ added in v0.15.0
func (r GetTagsRequest) WithPagination(page, size int) PaginatedRequest
WithPagination add pagination to the GetTagsRequest
type GetTasksRequest ¶ added in v0.23.0
func (GetTasksRequest) AppendToQuery ¶ added in v0.23.0
func (r GetTasksRequest) AppendToQuery(u url.URL) url.URL
AppendToQuery decorates the URL with the query string needed for this Request
func (GetTasksRequest) WithPagination ¶ added in v0.23.0
func (r GetTasksRequest) WithPagination(page, size int) PaginatedRequest
WithPagination add pagination to the GetTasksRequest
type GetTimeEntryRequest ¶ added in v0.22.0
TimeEntryStartEndRequest to get a time entry
func (GetTimeEntryRequest) AppendToQuery ¶ added in v0.22.0
func (r GetTimeEntryRequest) AppendToQuery(u url.URL) url.URL
AppendToQuery decorates the URL with the query string needed for this Request
type Invitation ¶
type Invitation struct { Creation time.Time `json:"creation"` InvitationCode string `json:"invitationCode"` Membership Membership `json:"membership"` WorkspaceID string `json:"workspaceId"` WorkspaceName string `json:"workspaceName"` }
Invitation DTO
type InvitedUser ¶
type InvitedUser struct { ID string `json:"id"` Email string `json:"email"` Invitation Invitation `json:"invitation"` Memberships []Membership `json:"memberships"` }
InvitedUser DTO
type Membership ¶
type Membership struct { HourlyRate Rate `json:"hourlyRate"` Status MembershipStatus `json:"membershipStatus"` Type string `json:"membershipType"` Target string `json:"target"` UserID string `json:"userId"` }
Membership DTO
type OutTimeEntryRequest ¶
type OutTimeEntryRequest struct {
End DateTime `json:"end"`
}
OutTimeEntryRequest to end the current time entry
type PaginatedRequest ¶ added in v0.10.0
type PaginatedRequest interface {
WithPagination(page, size int) PaginatedRequest
}
type Project ¶
type Project struct { ID string `json:"id"` Name string `json:"name"` HourlyRate Rate `json:"hourlyRate"` ClientID string `json:"clientId"` WorkspaceID string `json:"workspaceId"` Billable bool `json:"billable"` Memberships []Membership `json:"memberships"` Color string `json:"color"` TimeEstimate TimeEstimate `json:"timeEstimate"` BudgetEstimate BudgetEstimate `json:"budgetEstimate"` Archived bool `json:"archived"` Duration string `json:"duration"` ClientName string `json:"clientName"` Note string `json:"note"` Template bool `json:"template"` Public bool `json:"public"` }
Project DTO
type Role ¶ added in v0.24.0
type Role struct { Role string `json:"role"` Entities []RoleEntity `json:"entities"` }
Role DTO
type RoleEntity ¶ added in v0.24.0
type SummaryReportSettings ¶
SummaryReportSettings DTO
type Tag ¶
type Tag struct { ID string `json:"id"` Name string `json:"name"` WorkspaceID string `json:"workspaceId"` }
Tag DTO
type Task ¶
type Task struct { AssigneeIDs []string `json:"assigneeIds"` Estimate string `json:"estimate"` ID string `json:"id"` Name string `json:"name"` ProjectID string `json:"projectId"` Billable bool `json:"billable"` HourlyRate Rate `json:"hourlyRate"` CostRate Rate `json:"costRate"` Status TaskStatus `json:"status"` }
Task DTO
type TimeEntriesList ¶
type TimeEntriesList struct { AllEntriesCount int64 `json:"allEntriesCount"` GotAllEntries bool `json:"gotAllEntries"` TimeEntriesList []TimeEntryImpl `json:"timeEntriesList"` }
TimeEntriesList DTO
type TimeEntry ¶
type TimeEntry struct { ID string `json:"id"` Billable bool `json:"billable"` Description string `json:"description"` HourlyRate Rate `json:"hourlyRate"` IsLocked bool `json:"isLocked"` Project *Project `json:"project"` ProjectID string `json:"projectId"` Tags []Tag `json:"tags"` Task *Task `json:"task"` TimeInterval TimeInterval `json:"timeInterval"` TotalBillable int64 `json:"totalBillable"` User *User `json:"user"` WorkspaceID string `json:"workspaceId"` }
TimeEntry DTO
type TimeEntryImpl ¶
type TimeEntryImpl struct { Billable bool `json:"billable"` Description string `json:"description"` ID string `json:"id"` IsLocked bool `json:"isLocked"` ProjectID string `json:"projectId"` TagIDs []string `json:"tagIds"` TaskID string `json:"taskId"` TimeInterval TimeInterval `json:"timeInterval"` UserID string `json:"userId"` WorkspaceID string `json:"workspaceId"` }
TimeEntryImpl DTO
type TimeEstimate ¶ added in v0.24.0
type TimeEstimate struct { EstimateBase Estimate string `json:"estimate"` }
TimeEstimate DTO
type TimeInterval ¶
type TimeInterval struct { Duration string `json:"duration"` End *time.Time `json:"end"` Start time.Time `json:"start"` }
TimeInterval DTO
type UpdateTimeEntryRequest ¶
type UpdateTimeEntryRequest struct { Start DateTime `json:"start,omitempty"` End *DateTime `json:"end,omitempty"` Billable bool `json:"billable,omitempty"` Description string `json:"description,omitempty"` ProjectID string `json:"projectId,omitempty"` TaskID string `json:"taskId,omitempty"` TagIDs []string `json:"tagIds,omitempty"` CustomFields []CustomField `json:"customFields,omitempty"` }
UpdateTimeEntryRequest to update a time entry
type User ¶
type User struct { ID string `json:"id"` ActiveWorkspace string `json:"activeWorkspace"` DefaultWorkspace string `json:"defaultWorkspace"` Email string `json:"email"` Memberships []Membership `json:"memberships"` Name string `json:"name"` ProfilePicture string `json:"profilePicture"` Settings UserSettings `json:"settings"` Status UserStatus `json:"status"` Roles *[]Role `json:"roles"` }
User DTO
type UserSettings ¶
type UserSettings struct { DateFormat string `json:"dateFormat"` IsCompactViewOn bool `json:"isCompactViewOn"` LongRunning bool `json:"longRunning"` SendNewsletter bool `json:"sendNewsletter"` SummaryReportSettings SummaryReportSettings `json:"summaryReportSettings"` TimeFormat string `json:"timeFormat"` TimeTrackingManual bool `json:"timeTrackingManual"` TimeZone string `json:"timeZone"` WeekStart string `json:"weekStart"` WeeklyUpdates bool `json:"weeklyUpdates"` }
UserSettings DTO
type UserTimeEntriesRequest ¶ added in v0.24.0
type UserTimeEntriesRequest struct { Description string Start *DateTime End *DateTime Project string Task string TagIDs []string ProjectRequired *bool TaskRequired *bool ConsiderDurationFormat *bool Hydrated *bool OnlyInProgress *bool // contains filtered or unexported fields }
UserTimeEntriesRequest to get entries of a user
func (UserTimeEntriesRequest) AppendToQuery ¶ added in v0.24.0
func (r UserTimeEntriesRequest) AppendToQuery(u url.URL) url.URL
AppendToQuery decorates the URL with the query string needed for this Request
func (UserTimeEntriesRequest) WithPagination ¶ added in v0.24.0
func (r UserTimeEntriesRequest) WithPagination(page, size int) PaginatedRequest
WithPagination add pagination to the UserTimeEntriesRequest
type Workspace ¶
type Workspace struct { ID string `json:"id"` Name string `json:"name"` ImageURL string `json:"imageUrl"` Settings WorkspaceSettings `json:"workspaceSettings"` HourlyRate Rate `json:"hourlyRate"` Memberships []Membership }
Workspace DTO
type WorkspaceSettings ¶
type WorkspaceSettings struct { AdminOnlyPages []string `json:"adminOnlyPages"` AutomaticLock AutomaticLock `json:"automaticLock"` CanSeeTimeSheet bool `json:"canSeeTimeSheet"` DefaultBillableProjects bool `json:"defaultBillableProjects"` ForceDescription bool `json:"forceDescription"` ForceProjects bool `json:"forceProjects"` ForceTags bool `json:"forceTags"` ForceTasks bool `json:"forceTasks"` LockTimeEntries time.Time `json:"lockTimeEntries"` OnlyAdminsCreateProject bool `json:"onlyAdminsCreateProject"` OnlyAdminsCreateTag bool `json:"onlyAdminsCreateTag"` OnlyAdminsCreateTask bool `json:"onlyAdminsCreateTask"` OnlyAdminsSeeAllTimeEntries bool `json:"onlyAdminsSeeAllTimeEntries"` OnlyAdminsSeeBillableRates bool `json:"onlyAdminsSeeBillableRates"` OnlyAdminsSeeDashboard bool `json:"onlyAdminsSeeDashboard"` OnlyAdminsSeePublicProjectsEntries bool `json:"onlyAdminsSeePublicProjectsEntries"` ProjectFavorites bool `json:"projectFavorites"` ProjectGroupingLabel string `json:"projectGroupingLabel"` ProjectPickerSpecialFilter bool `json:"projectPickerSpecialFilter"` Round Round `json:"round"` TimeRoundingInReports bool `json:"timeRoundingInReports"` TrackTimeDownToSecond bool `json:"trackTimeDownToSecond"` IsProjectPublicByDefault bool `json:"isProjectPublicByDefault"` CanSeeTracker bool `json:"canSeeTracker"` FeatureSubscriptionType string `json:"featureSubscriptionType"` }
WorkspaceSettings DTO