asana

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewConnector

func NewConnector() (*sdk.ConnectorPlugin, error)

Types

type CreateTaskOperation

type CreateTaskOperation struct {
	// contains filtered or unexported fields
}

func NewCreateTaskOperation

func NewCreateTaskOperation() *CreateTaskOperation

func (*CreateTaskOperation) GetInfo

func (c *CreateTaskOperation) GetInfo() *sdk.OperationInfo

func (*CreateTaskOperation) Run

func (c *CreateTaskOperation) Run(ctx *sdk.RunContext) (sdk.JSON, error)

func (*CreateTaskOperation) Test

func (c *CreateTaskOperation) Test(ctx *sdk.RunContext) (sdk.JSON, error)

type CurrentStatus

type CurrentStatus struct {
	GID          string `json:"gid"`
	ResourceType string `json:"resource_type"`
	Title        string `json:"title"`
	Text         string `json:"text"`
	HTMLText     string `json:"html_text"`
	Color        string `json:"color"`
	Author       *User  `json:"author"`
	CreatedAt    string `json:"created_at"`
	CreatedBy    *User  `json:"created_by"`
	ModifiedAt   string `json:"modified_at"`
}

type CurrentStatusUpdate

type CurrentStatusUpdate struct {
	GID             string `json:"gid"`
	ResourceType    string `json:"resource_type"`
	Title           string `json:"title"`
	ResourceSubtype string `json:"resource_subtype"`
}

type CustomField

type CustomField struct {
	GID                     string       `json:"gid"`
	ResourceType            string       `json:"resource_type"`
	Name                    string       `json:"name"`
	ResourceSubtype         string       `json:"resource_subtype"`
	Type                    string       `json:"type"`
	EnumOptions             []EnumOption `json:"enum_options"`
	Enabled                 bool         `json:"enabled"`
	RepresentationType      string       `json:"representation_type"`
	IDPrefix                string       `json:"id_prefix"`
	IsFormulaField          bool         `json:"is_formula_field"`
	DateValue               *DateValue   `json:"date_value"`
	EnumValue               *EnumOption  `json:"enum_value"`
	MultiEnumValues         []EnumOption `json:"multi_enum_values"`
	NumberValue             float64      `json:"number_value"`
	TextValue               string       `json:"text_value"`
	DisplayValue            string       `json:"display_value"`
	Description             string       `json:"description,omitempty"`
	Precision               int          `json:"precision,omitempty"`
	Format                  string       `json:"format,omitempty"`
	CurrencyCode            string       `json:"currency_code,omitempty"`
	CustomLabel             string       `json:"custom_label,omitempty"`
	CustomLabelPosition     string       `json:"custom_label_position,omitempty"`
	IsGlobalToWorkspace     bool         `json:"is_global_to_workspace,omitempty"`
	HasNotificationsEnabled bool         `json:"has_notifications_enabled,omitempty"`
	AsanaCreatedField       string       `json:"asana_created_field,omitempty"`
	IsValueReadOnly         bool         `json:"is_value_read_only,omitempty"`
	CreatedBy               *User        `json:"created_by,omitempty"`
	PeopleValue             []User       `json:"people_value,omitempty"`
}

type CustomFieldSetting

type CustomFieldSetting struct {
	GID          string       `json:"gid"`
	ResourceType string       `json:"resource_type"`
	Project      *Project     `json:"project"`
	IsImportant  bool         `json:"is_important"`
	Parent       *Project     `json:"parent"`
	CustomField  *CustomField `json:"custom_field"`
}

type DateValue

type DateValue struct {
	Date     string `json:"date"`
	DateTime string `json:"date_time"`
}

type EnumOption

type EnumOption struct {
	GID          string `json:"gid"`
	ResourceType string `json:"resource_type"`
	Name         string `json:"name"`
	Enabled      bool   `json:"enabled"`
	Color        string `json:"color"`
}

type Project

type Project struct {
	GID                                string               `json:"gid"`
	ResourceType                       string               `json:"resource_type"`
	Name                               string               `json:"name"`
	Archived                           bool                 `json:"archived"`
	Color                              string               `json:"color"`
	CreatedAt                          string               `json:"created_at"`
	CurrentStatus                      *CurrentStatus       `json:"current_status"`
	CurrentStatusUpdate                *CurrentStatusUpdate `json:"current_status_update"`
	CustomFieldSettings                []CustomFieldSetting `json:"custom_field_settings"`
	DefaultView                        string               `json:"default_view"`
	DueDate                            string               `json:"due_date"`
	DueOn                              string               `json:"due_on"`
	HTMLNotes                          string               `json:"html_notes"`
	Members                            []User               `json:"members"`
	ModifiedAt                         string               `json:"modified_at"`
	Notes                              string               `json:"notes"`
	PrivacySetting                     string               `json:"privacy_setting"`
	StartOn                            string               `json:"start_on"`
	DefaultAccessLevel                 string               `json:"default_access_level"`
	MinimumAccessLevelForCustomization string               `json:"minimum_access_level_for_customization"`
	MinimumAccessLevelForSharing       string               `json:"minimum_access_level_for_sharing"`
	CustomFields                       []CustomField        `json:"custom_fields"`
	Completed                          bool                 `json:"completed"`
	CompletedAt                        string               `json:"completed_at"`
	CompletedBy                        *User                `json:"completed_by"`
	Followers                          []User               `json:"followers"`
	Owner                              *User                `json:"owner"`
	Team                               *Team                `json:"team"`
	Icon                               string               `json:"icon"`
	PermalinkURL                       string               `json:"permalink_url"`
	ProjectBrief                       *ProjectBrief        `json:"project_brief"`
	CreatedFromTemplate                *Template            `json:"created_from_template"`
	Workspace                          *Workspace           `json:"workspace"`
}

type ProjectBrief

type ProjectBrief struct {
	GID          string `json:"gid"`
	ResourceType string `json:"resource_type"`
}

type ProjectResponse

type ProjectResponse struct {
	Data []Project `json:"data"`
}

type Task

type Task struct {
	Name      string   `json:"name"`
	Workspace string   `json:"workspace"` // Add a default workspace ID
	Projects  []string `json:"projects"`
}

type Team

type Team struct {
	GID          string `json:"gid"`
	ResourceType string `json:"resource_type"`
	Name         string `json:"name"`
}

type Template

type Template struct {
	GID          string `json:"gid"`
	ResourceType string `json:"resource_type"`
	Name         string `json:"name"`
}

type User

type User struct {
	GID          string `json:"gid"`
	ResourceType string `json:"resource_type"`
	Name         string `json:"name"`
}

type Workspace

type Workspace struct {
	GID          string `json:"gid"`
	ResourceType string `json:"resource_type"`
	Name         string `json:"name"`
}

type WorkspaceNew

type WorkspaceNew struct {
	GID            string   `json:"gid"`
	ResourceType   string   `json:"resource_type"`
	Name           string   `json:"name"`
	EmailDomains   []string `json:"email_domains"`
	IsOrganization bool     `json:"is_organization"`
}

type WorkspaceResponse

type WorkspaceResponse struct {
	Data []Workspace `json:"data"`
}

Jump to

Keyboard shortcuts

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