-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(specs): port recommend changes (#2476)
- Loading branch information
Showing
14 changed files
with
169 additions
and
118 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
recommendedForYouQuery: | ||
allOf: | ||
- $ref: './RecommendationsRequest.yml#/baseRecommendRequest' | ||
- $ref: '#/baseRecommendedForYouQuery' | ||
|
||
recommendedForYouQueryParameters: | ||
allOf: | ||
- $ref: '../../../common/schemas/SearchParams.yml#/searchParamsObject' | ||
- $ref: '#/baseRecommendedForYouQueryParameters' | ||
|
||
baseRecommendedForYouQueryParameters: | ||
type: object | ||
properties: | ||
userToken: | ||
$ref: '../../../common/schemas/SearchParams.yml#/userToken' | ||
required: | ||
- userToken | ||
|
||
baseRecommendedForYouQuery: | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
model: | ||
$ref: '#/recommendedForYouModel' | ||
queryParameters: | ||
$ref: '#/recommendedForYouQueryParameters' | ||
fallbackParameters: | ||
$ref: '#/recommendedForYouQueryParameters' | ||
required: | ||
- model | ||
|
||
recommendedForYouModel: | ||
description: Recommended for you model. | ||
type: string | ||
enum: [recommended-for-you] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
type: object | ||
description: Rule object. | ||
additionalProperties: false | ||
properties: | ||
_metadata: | ||
type: object | ||
properties: | ||
lastUpdate: | ||
$ref: '../../../common/responses/common.yml#/updatedAt' | ||
objectID: | ||
type: string | ||
description: Unique identifier for a rule object. | ||
example: 'hide-12345' | ||
conditions: | ||
type: array | ||
description: > | ||
[Conditions](https://www.algolia.com/doc/guides/managing-results/rules/rules-overview/#conditions) required to activate a rule. You can use up to 25 conditions per rule. | ||
items: | ||
$ref: '../../../search/paths/rules/common/schemas.yml#/condition' | ||
consequence: | ||
$ref: '../../../search/paths/rules/common/schemas.yml#//consequence' | ||
description: | ||
type: string | ||
description: Description of the rule's purpose. This can be helpful for display in the Algolia dashboard. | ||
example: 'Display a promotional banner' | ||
enabled: | ||
type: boolean | ||
default: true | ||
description: Indicates whether to enable the rule. If it isn't enabled, it isn't applied at query time. | ||
required: | ||
- objectID |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
trendingFacetsQuery: | ||
allOf: | ||
- $ref: './RecommendationsRequest.yml#/baseRecommendRequest' | ||
- $ref: '#/baseTrendingFacetsQuery' | ||
|
||
baseTrendingFacetsQuery: | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
facetName: | ||
$ref: '../parameters.yml#/facetName' | ||
model: | ||
$ref: '#/trendingFacetsModel' | ||
required: | ||
- facetName | ||
|
||
trendingFacetsModel: | ||
description: Trending facets model. | ||
type: string | ||
enum: [trending-facets] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,24 @@ | ||
trendingItemsQuery: | ||
allOf: | ||
- $ref: './RecommendationsRequest.yml#/baseRecommendRequest' | ||
- $ref: '#/baseTrendingItemsQuery' | ||
|
||
baseTrendingItemsQuery: | ||
type: object | ||
additionalProperties: false | ||
properties: | ||
facetName: | ||
$ref: '../parameters.yml#/facetName' | ||
facetValue: | ||
$ref: '../parameters.yml#/facetValue' | ||
model: | ||
$ref: '#/trendingItemsModel' | ||
queryParameters: | ||
$ref: '../../../common/schemas/SearchParams.yml#/searchParamsObject' | ||
fallbackParameters: | ||
$ref: '../../../common/schemas/SearchParams.yml#/searchParamsObject' | ||
|
||
trendingItemsModel: | ||
description: Trending items model. | ||
type: string | ||
enum: [trending-items] |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.