package jira

type IssueCustomerEnvironment string

const (
	IssueCustomerEnvironmentCloud     IssueCustomerEnvironment = "cloud"
	IssueCustomerEnvironmentOnPremise IssueCustomerEnvironment = "on_premise"
)

type User struct {
	Email       string `json:"email"`
	DisplayName string `json:"display_name"`
}

type Project struct {
	Name string `json:"name"`
	Key  string `json:"key"`
}

type Comment struct {
	ID        string `json:"id"`
	CreatedAt int64  `json:"created_at"`
	UpdatedAt int64  `json:"updated_at"`
	Author    *User  `json:"author"`
	Content   string `json:"content"`
}

type IssueCustomerInfo struct {
	IssueKey    string                   `json:"issue_key"`
	Environment IssueCustomerEnvironment `json:"environment"`
	ClusterID   *string                  `json:"cluster_id,omitempty"`
	TenantID    *string                  `json:"tenant_id,omitempty"`
} // @name jira.IssueCustomerInfo
