Versions in this module Expand all Collapse all v0 v0.0.2 Feb 21, 2024 Changes in this version + type Client struct + AccountID string + BasePath string + Client http.Client + Token string + UserAgent string + func NewClient(PAT string, accountID string, userAgent string) *Client + func (c *Client) CreateTimeEntry(body CreateTimeEntryBody) (TimeEntry, error) + func (c *Client) Delete(urlTail string) error + func (c *Client) DeleteTimeEntry(id uint64) error + func (c *Client) Get(urlTail string) (*http.Response, error) + func (c *Client) GetCompany() (Company, error) + func (c *Client) GetMe() (User, error) + func (c *Client) GetMyProjectAssignments(params GetProjectAssignmentParameters) (ProjectAssignmentResponse, error) + func (c *Client) GetTimeEntries(params GetTimeEntryParameters) (TimeEntryResponse, error) + func (c *Client) GetTimeEntry(id uint64) (TimeEntry, error) + func (c *Client) Patch(urlTail string, body any) (*http.Response, error) + func (c *Client) Post(urlTail string, body any) (*http.Response, error) + func (c *Client) RestartTimeEntryTimer(id uint64) (TimeEntry, error) + func (c *Client) StopTimeEntryTimer(id uint64) (TimeEntry, error) + func (c *Client) UpdateCompany(params CompanyUpdateParameters) (Company, error) + func (c *Client) UpdateTimeEntry(timeEntryId uint64, body UpdateTimeEntryBody) (TimeEntry, error) + type Company struct + ApprovalFeature bool + BaseUri string + Clock string + ColorScheme string + CurrencyCodeDisplay string + CurrencySymbolDisplay string + DateFormat string + DecimalSymbol string + EstimateFeature bool + ExpenseFeature bool + FullDomain string + InvoiceFeature bool + IsActive bool + Name string + PlanType string + ThousandsSeparator string + TimeFormat string + WantsTimestampTimers bool + WeekStartDay string + WeeklyCapacity int + type CompanyUpdateParameters struct + WantsTimestampTimers *bool + WeeklyCapacity *int + type CreateTimeEntryBody interface + GetTimeEntryBodyParams func() string + IsValid func() bool + type CreateTimeEntryBodyDuration struct + ExternalReference *ExternalReference + Hours *float64 + Notes string + ProjectID int + SpentDate Date + TaskID int + UserID *int + func (b CreateTimeEntryBodyDuration) GetTimeEntryBodyParams() string + func (b CreateTimeEntryBodyDuration) IsValid() bool + type CreateTimeEntryBodyStartEnd struct + EndedTime *KitchenTime + ExternalReference *ExternalReference + Notes string + ProjectID int + SpentDate Date + StartedTime *KitchenTime + TaskID int + UserID *int + func (b CreateTimeEntryBodyStartEnd) GetTimeEntryBodyParams() string + func (b CreateTimeEntryBodyStartEnd) IsValid() bool + type Date struct + func (s *Date) UnmarshalJSON(input []byte) error + func (s Date) MarshalJSON() ([]byte, error) + type ErrorCodeResponse struct + Message string + StatusCode int + func (e ErrorCodeResponse) Error() string + type ExternalReference struct + AccountID int + GroupID int + ID int + Permalink string + Service string + ServiceIconURL string + type GetProjectAssignmentParameters struct + Page int + PerPage int + UpdatedSince time.Time + type GetTimeEntryParameters struct + ClientID int + ExternalReferenceID string + From Date + IsBilled bool + IsRunning bool + Page int + PerPage int + ProjectID int + TaskID int + To Date + UpdatedSince time.Time + UserID int + type KitchenTime struct + func (kitchenTime *KitchenTime) UnmarshalJSON(b []byte) error + func (kitchenTime KitchenTime) MarshalJSON() ([]byte, error) + type Pagination struct + Links struct{ ... } + NextPage *int + Page int + PerPage int + PreviousPage *int + TotalEntries int + TotalPages int + type ProjectAssignment struct + Budget float64 + Client ProjectAssignmentClient + CreatedAt time.Time + HourlyRate float64 + ID int + IsActive bool + IsProjectManager bool + Project ProjectAssignmentProject + TaskAssignments []TaskAssignment + UpdatedAt time.Time + UseDefaultRates bool + type ProjectAssignmentClient struct + ID int + Name string + type ProjectAssignmentProject struct + Code string + ID int + Name string + type ProjectAssignmentResponse struct + ProjectAssignments []ProjectAssignment + type TaskAssignment struct + Billable bool + Budget float64 + CreatedAt time.Time + HourlyRate float64 + ID int + IsActive bool + Project TaskAssignmentProject + Task TaskAssignmentTask + UpdatedAt time.Time + type TaskAssignmentProject struct + Code string + ID int + Name string + type TaskAssignmentTask struct + ID int + Name string + type TimeEntry struct + Billable bool + BillableRate float64 + Budgeted bool + Client struct{ ... } + CostRate float64 + CreatedAt time.Time + EndedTime *KitchenTime + ExternalReference ExternalReference + Hours float64 + HoursWithoutTimer float64 + ID uint64 + Invoice struct{ ... } + IsBilled bool + IsClosed bool + IsLocked bool + IsRunning bool + LockedReason string + Notes string + Project struct{ ... } + RoundedHours float64 + SpentDate Date + StartedTime *KitchenTime + Task struct{ ... } + TaskAssignment TaskAssignment + TimerStartedAt time.Time + UpdatedAt time.Time + User struct{ ... } + UserAssignment UserAssignment + type TimeEntryResponse struct + TimeEntries []TimeEntry + type UpdateTimeEntryBody struct + EndedTime *KitchenTime + ExternalReference *ExternalReference + Hours *float64 + Notes *string + ProjectID *int + SpentDate *Date + StartedTime *KitchenTime + TaskID *int + func (b UpdateTimeEntryBody) GetTimeEntryBodyParams() string + func (b UpdateTimeEntryBody) IsValid() bool + type User struct + AccessRoles []string + AvatarURL string + CostRate float64 + CreatedAt time.Time + DefaultHourlyRate float64 + Email string + FirstName string + HasAccessToAllFutureProjects bool + ID int + IsActive bool + IsContractor bool + LastName string + Roles []string + Telephone string + Timezone string + UpdatedAt time.Time + WeeklyCapacity int + type UserAssignment struct + Budget float64 + CreatedAt time.Time + HourlyRate float64 + ID int + IsActive bool + IsProjectManager bool + Project struct{ ... } + UpdatedAt time.Time + UseDefaultRates bool + User struct{ ... } v0.0.1 Feb 21, 2024