Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions projects/company.go
Original file line number Diff line number Diff line change
Expand Up @@ -431,8 +431,8 @@ type CompanyRequestSideload string

// List of possible sideload options for CompanyRequestSideload.
const (
CompanyRequestSideloadCompanyCustomFields CompanyRequestSideload = "customfields"
CompanyRequestSideloadCompanyCustomFieldValues CompanyRequestSideload = "customfieldcompanies"
CompanyRequestSideloadCustomFields CompanyRequestSideload = "customfields"
CompanyRequestSideloadCustomFieldValues CompanyRequestSideload = "customfieldcompanies"
)

// CompanyRequestFilters contains the filters for loading companies.
Expand Down
3 changes: 3 additions & 0 deletions projects/custom_field.go
Original file line number Diff line number Diff line change
Expand Up @@ -773,11 +773,14 @@ func (c CustomFieldListRequest) HTTPRequest(ctx context.Context, server string)
type CustomFieldListResponse struct {
request CustomFieldListRequest

// Meta contains the pagination information for the response.
Meta struct {
Page struct {
HasMore bool `json:"hasMore"`
} `json:"page"`
} `json:"meta"`

// CustomFields is the list of custom fields matching the request filters.
CustomFields []CustomField `json:"customfields"`
}

Expand Down
7 changes: 4 additions & 3 deletions projects/custom_field_value.go
Original file line number Diff line number Diff line change
Expand Up @@ -552,7 +552,7 @@ func (c CustomFieldValueGetRequest) HTTPRequest(ctx context.Context, server stri
// custom field value.
type CustomFieldValueGetResponse struct {
// CustomFieldValue is the retrieved custom field value.
CustomFieldValue CustomFieldValue
CustomFieldValue CustomFieldValue `json:"customfieldValue"`
}

// UnmarshalJSON decodes the response into the CustomFieldValue field regardless
Expand Down Expand Up @@ -700,15 +700,16 @@ func (c CustomFieldValueListRequest) HTTPRequest(ctx context.Context, server str
type CustomFieldValueListResponse struct {
request CustomFieldValueListRequest

// Meta contains the pagination information for the response.
Meta struct {
Page struct {
HasMore bool `json:"hasMore"`
} `json:"page"`
}
} `json:"meta"`

// CustomFieldValues is the list of custom field values returned by the
// request, regardless of the underlying entity type.
CustomFieldValues []CustomFieldValue
CustomFieldValues []CustomFieldValue `json:"customfieldValues"`
}

// UnmarshalJSON decodes the response into the CustomFieldValues slice
Expand Down
6 changes: 3 additions & 3 deletions projects/project.go
Original file line number Diff line number Diff line change
Expand Up @@ -651,9 +651,9 @@ type ProjectRequestSideload string

// List of possible sideload options for ProjectRequestSideload.
const (
ProjectRequestSideloadProjectCategories ProjectRequestSideload = "projectCategories"
ProjectRequestSideloadProjectCustomFields ProjectRequestSideload = "customfields"
ProjectRequestSideloadProjectCustomFieldValues ProjectRequestSideload = "customfieldprojects"
ProjectRequestSideloadProjectCategories ProjectRequestSideload = "projectCategories"
ProjectRequestSideloadCustomFields ProjectRequestSideload = "customfields"
ProjectRequestSideloadCustomFieldValues ProjectRequestSideload = "customfieldprojects"
)

// ProjectRequestFilters contains the filters for loading projects.
Expand Down
4 changes: 2 additions & 2 deletions projects/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -599,8 +599,8 @@ type TaskRequestSideload string

// List of possible sideload options for TaskRequestSideload.
const (
TaskRequestSideloadTaskCustomFields TaskRequestSideload = "customfields"
TaskRequestSideloadTaskCustomFieldValues TaskRequestSideload = "customfieldtasks"
TaskRequestSideloadCustomFields TaskRequestSideload = "customfields"
TaskRequestSideloadCustomFieldValues TaskRequestSideload = "customfieldtasks"
)

// TaskRequestFilters contains the filters for loading tasks.
Expand Down