convertHubResponse
Converts the response format returned by the Hub Indexer V3 API to a common format
Parameters
Parameter | Type | Default | Notes |
---|---|---|---|
request Required | ISearchParams |
the ISearchParams instance used to invoke the request |
|
response Optional | any | { data: [], meta: {} } |
the JSON returned by the Hub Indexer V3 API |
defaultAuthentication Optional | UserSession |
a default UserSession instance that can be used for the next() request if none provided |
Returns
Property | Type | Notes |
---|---|---|
number | ||
string | ||
Optional | IContentAggregations |
Function defined in search/src/content/helpers/convert-hub-response.ts:23