models

package
v0.0.0-...-9f800d1 Latest Latest
Warning

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

Go to latest
Published: Sep 16, 2024 License: ISC Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DueDate

type DueDate struct {
	Date        string `json:"date"`
	IsRecurring bool   `json:"is_recurring"`
	Lang        string `json:"lang"`
	String      string `json:"string"`
	Timezone    string `json:"timezone"`
}

type Duration

type Duration struct {
	Amount int          `json:"amount"`
	Unit   DurationUnit `json:"unit"`
}

type DurationUnit

type DurationUnit string
const (
	Minute DurationUnit = "minute"
	Day    DurationUnit = "day"
)

type IdMapping

type IdMapping struct {
	Type    StorageType
	ShortId int
	RealId  string
}

type Project

type Project struct {
	CanAssignTasks bool    `json:"can_assign_tasks"`
	ChildOrder     int32   `json:"child_order"`
	Collapsed      bool    `json:"collapsed"`
	Color          string  `json:"color"`
	CreatedAt      string  `json:"created_at"`
	ID             string  `json:"id" gorm:"primaryKey"`
	IsArchived     bool    `json:"is_archived"`
	IsDeleted      bool    `json:"is_deleted"`
	IsFavorite     bool    `json:"is_favorite"`
	Name           string  `json:"name"`
	ParentID       *string `json:"parent_id"`
	Shared         bool    `json:"shared"`
	SyncID         *string `json:"sync_id"`
	UpdatedAt      string  `json:"updated_at"`
	V2ID           string  `json:"v2_id"`
	V2ParentID     *string `json:"v2_parent_id"`
	ViewStyle      string  `json:"view_style"`
}

type StorageType

type StorageType string
const (
	StorageTypeProject StorageType = "project"
	StorageTypeTask    StorageType = "task"
)

type Task

type Task struct {
	AddedAt        string                        `json:"added_at"`
	AddedByUID     string                        `json:"added_by_uid"`
	AssignedByUID  *string                       `json:"assigned_by_uid"`
	Checked        bool                          `json:"checked"`
	ChildOrder     int32                         `json:"child_order"`
	Collapsed      bool                          `json:"collapsed"`
	CompletedAt    *string                       `json:"completed_at"`
	Content        string                        `json:"content"`
	DayOrder       int                           `json:"day_order"`
	Description    string                        `json:"description"`
	Due            *datatypes.JSONType[DueDate]  `json:"due"`
	Duration       *datatypes.JSONType[Duration] `json:"duration"`
	ID             string                        `json:"id"`
	IsDeleted      bool                          `json:"is_deleted"`
	Labels         datatypes.JSONSlice[string]   `json:"labels"`
	ParentID       *string                       `json:"parent_id"`
	Priority       int                           `json:"priority"`
	ProjectID      string                        `json:"project_id"`
	ResponsibleUID *string                       `json:"responsible_uid"`
	SectionID      *string                       `json:"section_id"`
	SyncID         *string                       `json:"sync_id"`
	UpdatedAt      string                        `json:"updated_at"`
	UserID         string                        `json:"user_id"`
	V2ID           string                        `json:"v2_id"`
	V2ParentID     *string                       `json:"v2_parent_id"`
	V2ProjectID    string                        `json:"v2_project_id"`
	V2SectionID    *string                       `json:"v2_section_id"`
}

Jump to

Keyboard shortcuts

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