Versions in this module Expand all Collapse all v0 v0.5.0 Mar 12, 2026 Changes in this version + func Create[T Typed](ctx context.Context, c *Client, fields Entity) (*T, error) + func DefaultConfigPath() string + func Get[T Typed](ctx context.Context, c *Client, id int, include ...string) (*T, error) + func NormalizeType(input string) string + func Search[T Typed](ctx context.Context, c *Client, where string, opts ...SearchOption) ([]T, error) + func Update[T Typed](ctx context.Context, c *Client, id int, fields Entity) (*T, error) + type APIError = api.APIError + type BaseEntity struct + CreateDate string + Creator *UserRef + CustomFields []CustomField + Description string + Effort float64 + EffortCompleted float64 + EffortToDo float64 + EndDate string + EntityState *EntityStateRef + EntityType *Ref + EntityVersion int64 + ID int + Iteration *Ref + LastEditor *UserRef + LastStateChangeDate string + ModifyDate string + Name string + NumericPriority float64 + Owner *UserRef + PlannedEndDate string + PlannedStartDate string + Priority *PriorityRef + Progress float64 + Project *Ref + Release *Ref + ResourceType string + ResponsibleTeam *Ref + StartDate string + Tags string + Team *Ref + TeamIteration *Ref + TimeRemain float64 + TimeSpent float64 + Units string + func (e BaseEntity) GetID() int + type Bug struct + Severity *Ref + UserStory *Ref + func (Bug) TPResourceType() string + type Client struct + func NewClient(domain, token string, opts ...Option) (*Client, error) + func NewClientFromConfig(opts ...Option) (*Client, error) + func (c *Client) Create(ctx context.Context, entityType string, fields Entity) (Entity, error) + func (c *Client) Delete(ctx context.Context, entityType string, id int) error + func (c *Client) Get(ctx context.Context, entityType string, id int, include ...string) (Entity, error) + func (c *Client) MetaFields(ctx context.Context, entityType string) ([]FieldInfo, error) + func (c *Client) MetaTypes(ctx context.Context) ([]TypeInfo, error) + func (c *Client) Query(ctx context.Context, entityType string, params QueryParams) (json.RawMessage, error) + func (c *Client) QueryEntity(ctx context.Context, entityType string, id int, selectExpr string) (json.RawMessage, error) + func (c *Client) Raw(ctx context.Context, method, path string, body io.Reader) ([]byte, error) + func (c *Client) ResolveType(ctx context.Context, id int) (string, error) + func (c *Client) Search(ctx context.Context, entityType, where string, opts ...SearchOption) ([]Entity, error) + func (c *Client) Update(ctx context.Context, entityType string, id int, fields Entity) (Entity, error) + type Comment struct + CreateDate string + Description string + General *Ref + ID int + Owner *UserRef + ResourceType string + func (Comment) TPResourceType() string + func (c Comment) GetID() int + type Config struct + Domain string + Token string + func LoadConfig(path string) (*Config, error) + type CustomField struct + Name string + Type string + Value any + type Entity = map[string]any + type EntityStateRef struct + ID int + Name string + NumericPriority int + ResourceType string + type Epic struct + func (Epic) TPResourceType() string + type Feature struct + Epic *Ref + func (Feature) TPResourceType() string + type FieldInfo struct + Description string + Kind FieldKind + Name string + Readable bool + Required bool + Type string + Writable bool + type FieldKind string + const FieldKindCollection + const FieldKindReference + const FieldKindValue + type Identifiable interface + GetID func() int + type Option func(*clientConfig) + func WithDebug(debug bool) Option + func WithHTTPClient(c *http.Client) Option + type PriorityRef struct + ID int + Importance int + Name string + ResourceType string + type QueryParams struct + OrderBy string + Select string + Skip int + Take int + Where string + type Ref struct + ID int + Name string + ResourceType string + type Request struct + func (Request) TPResourceType() string + type Result struct + Items []T + Next string + func Query[T any](ctx context.Context, c *Client, entityType string, params QueryParams) (*Result[T], error) + type SearchOption func(*searchOpts) + func WithOrderBy(expr string) SearchOption + func WithSelect(fields ...string) SearchOption + func WithTake(n int) SearchOption + type Task struct + UserStory *Ref + func (Task) TPResourceType() string + type TypeInfo struct + Description string + Name string + type Typed interface + TPResourceType func() string + type UserRef struct + FirstName string + FullName string + ID int + LastName string + Login string + ResourceType string + type UserStory struct + Feature *Ref + func (UserStory) TPResourceType() string v0.4.0 Feb 26, 2026 v0.3.0 Feb 13, 2026 v0.2.0 Feb 12, 2026 v0.1.0 Feb 12, 2026