This commit is contained in:
@@ -53,6 +53,33 @@ type AddonSearchResult struct {
|
||||
Author string `json:"author"`
|
||||
}
|
||||
|
||||
// DependencyReportItem is one dependency entry reported by the scraper
|
||||
type DependencyReportItem struct {
|
||||
ID string `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Version string `json:"version"`
|
||||
}
|
||||
|
||||
// DependencyReport is the scraper payload that replaces all edges for an addon
|
||||
type DependencyReport struct {
|
||||
AddonID string `json:"addonId"`
|
||||
Dependencies []DependencyReportItem `json:"dependencies"`
|
||||
}
|
||||
|
||||
// DependentsResponse lists the addons that depend on a given addon
|
||||
type DependentsResponse struct {
|
||||
AddonID string `json:"addonId"`
|
||||
Dependents []AddonSearchResult `json:"dependents"`
|
||||
Total int `json:"total"`
|
||||
}
|
||||
|
||||
// DependenciesResponse lists the addons a given addon depends on
|
||||
type DependenciesResponse struct {
|
||||
AddonID string `json:"addonId"`
|
||||
Dependencies []AddonSearchResult `json:"dependencies"`
|
||||
Total int `json:"total"`
|
||||
}
|
||||
|
||||
// SearchResponse contains the search results
|
||||
type SearchResponse struct {
|
||||
Query string `json:"query"`
|
||||
|
||||
Reference in New Issue
Block a user