Documentation ¶
Index ¶
- Variables
- type Action
- type AppliedMetadata
- type ErrorCode
- type Event
- type EventID
- type Facet
- type FacetType
- type FacetValue
- type GetSimilarItemsInput
- type GetSimilarItemsResponse
- type HomeClickItemActionParams
- type HomeComponent
- type HomeComponentPayload
- type HomeComponentPayloadCategories
- type HomeComponentPayloadItemGroups
- type HomeComponentPayloadItems
- type HomeComponentPayloadMediaPosts
- type HomeResponse
- type Item
- type ItemCategory
- type ItemColor
- type ItemConnection
- type ItemSellingPlatform
- type ItemStatus
- type MediaPost
- type MediaPostCategory
- type PageInfo
- type QuerySuggestionsDisplayActionParams
- type QuerySuggestionsResponse
- type SearchClickItemActionParams
- type SearchDisplayItemsActionParams
- type SearchFilter
- type SearchFrom
- type SearchInput
- type SearchResponse
- type SearchSortType
- type SimilarItemsDisplayItemsActionParams
Constants ¶
This section is empty.
Variables ¶
View Source
var AllAction = []Action{ ActionDisplay, ActionClickItem, }
View Source
var AllErrorCode = []ErrorCode{ ErrorCodeNotFound, ErrorCodeInternal, }
View Source
var AllEventID = []EventID{ EventIDHome, EventIDSearch, EventIDQuerySuggestions, EventIDSimilarItems, }
View Source
var AllFacetType = []FacetType{ FacetTypeCategoryIDS, FacetTypeBrandNames, FacetTypeColors, FacetTypeMetadata, }
View Source
var AllItemColor = []ItemColor{ ItemColorWhite, ItemColorYellow, ItemColorOrange, ItemColorPink, ItemColorRed, ItemColorBeige, ItemColorSilver, ItemColorGold, ItemColorGray, ItemColorPurple, ItemColorBrown, ItemColorGreen, ItemColorBlue, ItemColorBlack, ItemColorNavy, ItemColorKhaki, ItemColorWineRed, ItemColorTransparent, }
View Source
var AllItemSellingPlatform = []ItemSellingPlatform{ ItemSellingPlatformRakuten, ItemSellingPlatformYahooShopping, ItemSellingPlatformPaypayMall, }
View Source
var AllItemStatus = []ItemStatus{ ItemStatusActive, ItemStatusInactive, }
View Source
var AllSearchFrom = []SearchFrom{ SearchFromURL, SearchFromOpenSearch, SearchFromHome, SearchFromSearch, SearchFromQuerySuggestion, SearchFromFilter, SearchFromMedia, }
View Source
var AllSearchSortType = []SearchSortType{ SearchSortTypeBestMatch, SearchSortTypePriceAsc, SearchSortTypePriceDesc, SearchSortTypeReviewCount, SearchSortTypeRating, }
Functions ¶
This section is empty.
Types ¶
type AppliedMetadata ¶
type ErrorCode ¶
type ErrorCode string
func (ErrorCode) MarshalGQL ¶
func (*ErrorCode) UnmarshalGQL ¶
type Facet ¶
type Facet struct { Title string `json:"title"` FacetType FacetType `json:"facetType"` Values []*FacetValue `json:"values"` TotalCount int `json:"totalCount"` }
type FacetType ¶
type FacetType string
func (FacetType) MarshalGQL ¶
func (*FacetType) UnmarshalGQL ¶
type FacetValue ¶
type GetSimilarItemsInput ¶
type GetSimilarItemsResponse ¶
type GetSimilarItemsResponse struct { SearchID string `json:"searchId"` ItemConnection *ItemConnection `json:"itemConnection"` }
type HomeComponent ¶
type HomeComponent struct { ID string `json:"id"` Payload HomeComponentPayload `json:"payload"` }
type HomeComponentPayload ¶
type HomeComponentPayload interface {
IsHomeComponentPayload()
}
type HomeComponentPayloadCategories ¶
type HomeComponentPayloadCategories struct { Title string `json:"title"` Categories []*ItemCategory `json:"categories"` }
func (HomeComponentPayloadCategories) IsHomeComponentPayload ¶
func (HomeComponentPayloadCategories) IsHomeComponentPayload()
type HomeComponentPayloadItemGroups ¶
type HomeComponentPayloadItemGroups struct { Title string `json:"title"` Payload []*HomeComponentPayloadItems `json:"payload"` }
func (HomeComponentPayloadItemGroups) IsHomeComponentPayload ¶
func (HomeComponentPayloadItemGroups) IsHomeComponentPayload()
type HomeComponentPayloadItems ¶
func (HomeComponentPayloadItems) IsHomeComponentPayload ¶
func (HomeComponentPayloadItems) IsHomeComponentPayload()
type HomeComponentPayloadMediaPosts ¶
type HomeComponentPayloadMediaPosts struct { Title string `json:"title"` Posts []*MediaPost `json:"posts"` }
func (HomeComponentPayloadMediaPosts) IsHomeComponentPayload ¶
func (HomeComponentPayloadMediaPosts) IsHomeComponentPayload()
type HomeResponse ¶
type HomeResponse struct {
Components []*HomeComponent `json:"components"`
}
type Item ¶
type Item struct { ID string `json:"id"` GroupID string `json:"groupID"` Name string `json:"name"` Description string `json:"description"` Status ItemStatus `json:"status"` URL string `json:"url"` AffiliateURL string `json:"affiliateUrl"` Price int `json:"price"` ImageUrls []string `json:"imageUrls"` AverageRating float64 `json:"averageRating"` ReviewCount int `json:"reviewCount"` CategoryID string `json:"categoryId"` Colors []ItemColor `json:"colors"` Platform ItemSellingPlatform `json:"platform"` SameGroupItems []*Item `json:"sameGroupItems"` }
type ItemCategory ¶
type ItemCategory struct { ID string `json:"id"` Name string `json:"name"` Level int `json:"level"` ParentID *string `json:"parentId"` ImageURL *string `json:"imageUrl"` Parent *ItemCategory `json:"parent"` Children []*ItemCategory `json:"children"` }
type ItemColor ¶
type ItemColor string
const ( ItemColorWhite ItemColor = "WHITE" ItemColorYellow ItemColor = "YELLOW" ItemColorOrange ItemColor = "ORANGE" ItemColorPink ItemColor = "PINK" ItemColorRed ItemColor = "RED" ItemColorBeige ItemColor = "BEIGE" ItemColorSilver ItemColor = "SILVER" ItemColorGold ItemColor = "GOLD" ItemColorGray ItemColor = "GRAY" ItemColorPurple ItemColor = "PURPLE" ItemColorBrown ItemColor = "BROWN" ItemColorGreen ItemColor = "GREEN" ItemColorBlue ItemColor = "BLUE" ItemColorBlack ItemColor = "BLACK" ItemColorKhaki ItemColor = "KHAKI" ItemColorWineRed ItemColor = "WINE_RED" ItemColorTransparent ItemColor = "TRANSPARENT" )
func (ItemColor) MarshalGQL ¶
func (*ItemColor) UnmarshalGQL ¶
type ItemConnection ¶
type ItemSellingPlatform ¶
type ItemSellingPlatform string
const ( ItemSellingPlatformRakuten ItemSellingPlatform = "RAKUTEN" ItemSellingPlatformYahooShopping ItemSellingPlatform = "YAHOO_SHOPPING" ItemSellingPlatformPaypayMall ItemSellingPlatform = "PAYPAY_MALL" )
func (ItemSellingPlatform) IsValid ¶
func (e ItemSellingPlatform) IsValid() bool
func (ItemSellingPlatform) MarshalGQL ¶
func (e ItemSellingPlatform) MarshalGQL(w io.Writer)
func (ItemSellingPlatform) String ¶
func (e ItemSellingPlatform) String() string
func (*ItemSellingPlatform) UnmarshalGQL ¶
func (e *ItemSellingPlatform) UnmarshalGQL(v interface{}) error
type ItemStatus ¶
type ItemStatus string
const ( ItemStatusActive ItemStatus = "ACTIVE" ItemStatusInactive ItemStatus = "INACTIVE" )
func (ItemStatus) IsValid ¶
func (e ItemStatus) IsValid() bool
func (ItemStatus) MarshalGQL ¶
func (e ItemStatus) MarshalGQL(w io.Writer)
func (ItemStatus) String ¶
func (e ItemStatus) String() string
func (*ItemStatus) UnmarshalGQL ¶
func (e *ItemStatus) UnmarshalGQL(v interface{}) error
type MediaPostCategory ¶
type SearchDisplayItemsActionParams ¶
type SearchDisplayItemsActionParams struct { SearchID string `json:"searchId"` SearchFrom SearchFrom `json:"searchFrom"` SearchInput *SearchInput `json:"searchInput"` ItemIds []string `json:"itemIds"` }
type SearchFilter ¶
type SearchFilter struct { CategoryIds []string `json:"categoryIds"` Platforms []ItemSellingPlatform `json:"platforms"` BrandNames []string `json:"brandNames"` Colors []ItemColor `json:"colors"` MinPrice *int `json:"minPrice"` MaxPrice *int `json:"maxPrice"` MinRating *int `json:"minRating"` Metadata []*AppliedMetadata `json:"metadata"` }
type SearchFrom ¶
type SearchFrom string
const ( SearchFromURL SearchFrom = "URL" SearchFromOpenSearch SearchFrom = "OPEN_SEARCH" SearchFromHome SearchFrom = "HOME" SearchFromSearch SearchFrom = "SEARCH" SearchFromQuerySuggestion SearchFrom = "QUERY_SUGGESTION" SearchFromFilter SearchFrom = "FILTER" SearchFromMedia SearchFrom = "MEDIA" )
func (SearchFrom) IsValid ¶
func (e SearchFrom) IsValid() bool
func (SearchFrom) MarshalGQL ¶
func (e SearchFrom) MarshalGQL(w io.Writer)
func (SearchFrom) String ¶
func (e SearchFrom) String() string
func (*SearchFrom) UnmarshalGQL ¶
func (e *SearchFrom) UnmarshalGQL(v interface{}) error
type SearchInput ¶
type SearchInput struct { Query string `json:"query"` SortType *SearchSortType `json:"sortType"` Filter *SearchFilter `json:"filter"` Page *int `json:"page"` PageSize *int `json:"pageSize"` }
type SearchResponse ¶
type SearchResponse struct { SearchID string `json:"searchId"` ItemConnection *ItemConnection `json:"itemConnection"` Facets []*Facet `json:"facets"` }
type SearchSortType ¶
type SearchSortType string
const ( SearchSortTypeBestMatch SearchSortType = "BEST_MATCH" SearchSortTypePriceAsc SearchSortType = "PRICE_ASC" SearchSortTypePriceDesc SearchSortType = "PRICE_DESC" SearchSortTypeReviewCount SearchSortType = "REVIEW_COUNT" SearchSortTypeRating SearchSortType = "RATING" )
func (SearchSortType) IsValid ¶
func (e SearchSortType) IsValid() bool
func (SearchSortType) MarshalGQL ¶
func (e SearchSortType) MarshalGQL(w io.Writer)
func (SearchSortType) String ¶
func (e SearchSortType) String() string
func (*SearchSortType) UnmarshalGQL ¶
func (e *SearchSortType) UnmarshalGQL(v interface{}) error
type SimilarItemsDisplayItemsActionParams ¶
type SimilarItemsDisplayItemsActionParams struct { SearchID string `json:"searchId"` GetSimilarItemsInput *GetSimilarItemsInput `json:"getSimilarItemsInput"` ItemIds []string `json:"itemIds"` }
Click to show internal directories.
Click to hide internal directories.