@algolia/recommend 5.8.0 → 5.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +4 -4
- package/dist/browser.d.ts +18 -18
- package/dist/builds/browser.js +1 -1
- package/dist/builds/browser.js.map +1 -1
- package/dist/builds/browser.min.js +1 -1
- package/dist/builds/browser.min.js.map +1 -1
- package/dist/builds/browser.umd.js +2 -2
- package/dist/builds/fetch.js +1 -1
- package/dist/builds/fetch.js.map +1 -1
- package/dist/builds/node.cjs +1 -1
- package/dist/builds/node.cjs.map +1 -1
- package/dist/builds/node.js +1 -1
- package/dist/builds/node.js.map +1 -1
- package/dist/fetch.d.ts +18 -18
- package/dist/node.d.cts +18 -18
- package/dist/node.d.ts +18 -18
- package/dist/src/recommendClient.cjs +1 -1
- package/dist/src/recommendClient.cjs.map +1 -1
- package/dist/src/recommendClient.js +1 -1
- package/dist/src/recommendClient.js.map +1 -1
- package/index.d.ts +0 -1
- package/index.js +0 -1
- package/model/bannerImage.ts +1 -1
- package/model/baseIndexSettings.ts +2 -2
- package/model/baseRecommendIndexSettings.ts +1 -1
- package/model/baseSearchResponse.ts +5 -0
- package/model/index.ts +0 -1
- package/model/recommendHit.ts +1 -1
- package/model/searchRecommendRulesParams.ts +2 -2
- package/model/trendingFacetHit.ts +1 -1
- package/model/widgets.ts +5 -2
- package/package.json +7 -7
- package/model/banners.ts +0 -10
package/model/index.ts
CHANGED
|
@@ -10,7 +10,6 @@ export * from './banner';
|
|
|
10
10
|
export * from './bannerImage';
|
|
11
11
|
export * from './bannerImageUrl';
|
|
12
12
|
export * from './bannerLink';
|
|
13
|
-
export * from './banners';
|
|
14
13
|
export * from './baseIndexSettings';
|
|
15
14
|
export * from './baseRecommendIndexSettings';
|
|
16
15
|
export * from './baseRecommendRequest';
|
package/model/recommendHit.ts
CHANGED
|
@@ -15,12 +15,12 @@ export type SearchRecommendRulesParams = {
|
|
|
15
15
|
context?: string;
|
|
16
16
|
|
|
17
17
|
/**
|
|
18
|
-
* Requested page of the API response.
|
|
18
|
+
* Requested page of the API response. Algolia uses `page` and `hitsPerPage` to control how search results are displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
|
|
19
19
|
*/
|
|
20
20
|
page?: number;
|
|
21
21
|
|
|
22
22
|
/**
|
|
23
|
-
* Maximum number of hits per page.
|
|
23
|
+
* Maximum number of hits per page. Algolia uses `page` and `hitsPerPage` to control how search results are displayed ([paginated](https://www.algolia.com/doc/guides/building-search-ui/ui-and-ux-patterns/pagination/js/)). - `hitsPerPage`: sets the number of search results (_hits_) displayed per page. - `page`: specifies the page number of the search results you want to retrieve. Page numbering starts at 0, so the first page is `page=0`, the second is `page=1`, and so on. For example, to display 10 results per page starting from the third page, set `hitsPerPage` to 10 and `page` to 2.
|
|
24
24
|
*/
|
|
25
25
|
hitsPerPage?: number;
|
|
26
26
|
|
package/model/widgets.ts
CHANGED
|
@@ -1,10 +1,13 @@
|
|
|
1
1
|
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
2
|
|
|
3
|
-
import type {
|
|
3
|
+
import type { Banner } from './banner';
|
|
4
4
|
|
|
5
5
|
/**
|
|
6
6
|
* widgets returned from any rules that are applied to the current search.
|
|
7
7
|
*/
|
|
8
8
|
export type Widgets = {
|
|
9
|
-
|
|
9
|
+
/**
|
|
10
|
+
* banners defined in the merchandising studio for the given search.
|
|
11
|
+
*/
|
|
12
|
+
banners?: Array<Banner>;
|
|
10
13
|
};
|
package/package.json
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
{
|
|
2
|
-
"version": "5.
|
|
2
|
+
"version": "5.9.0",
|
|
3
3
|
"repository": {
|
|
4
4
|
"type": "git",
|
|
5
5
|
"url": "git+https://github.com/algolia/algoliasearch-client-javascript.git"
|
|
@@ -49,18 +49,18 @@
|
|
|
49
49
|
"index.d.ts"
|
|
50
50
|
],
|
|
51
51
|
"dependencies": {
|
|
52
|
-
"@algolia/client-common": "5.
|
|
53
|
-
"@algolia/requester-browser-xhr": "5.
|
|
54
|
-
"@algolia/requester-fetch": "5.
|
|
55
|
-
"@algolia/requester-node-http": "5.
|
|
52
|
+
"@algolia/client-common": "5.9.0",
|
|
53
|
+
"@algolia/requester-browser-xhr": "5.9.0",
|
|
54
|
+
"@algolia/requester-fetch": "5.9.0",
|
|
55
|
+
"@algolia/requester-node-http": "5.9.0"
|
|
56
56
|
},
|
|
57
57
|
"devDependencies": {
|
|
58
58
|
"@arethetypeswrong/cli": "0.16.4",
|
|
59
|
-
"@types/node": "22.7.
|
|
59
|
+
"@types/node": "22.7.5",
|
|
60
60
|
"publint": "0.2.11",
|
|
61
61
|
"rollup": "4.24.0",
|
|
62
62
|
"tsup": "8.3.0",
|
|
63
|
-
"typescript": "5.6.
|
|
63
|
+
"typescript": "5.6.3"
|
|
64
64
|
},
|
|
65
65
|
"engines": {
|
|
66
66
|
"node": ">= 14.0.0"
|
package/model/banners.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// Code generated by OpenAPI Generator (https://openapi-generator.tech), manual changes will be lost - read more on https://github.com/algolia/api-clients-automation. DO NOT EDIT.
|
|
2
|
-
|
|
3
|
-
import type { Banner } from './banner';
|
|
4
|
-
|
|
5
|
-
/**
|
|
6
|
-
* banners defined in the merchandising studio for the given search.
|
|
7
|
-
*/
|
|
8
|
-
export type Banners = {
|
|
9
|
-
banners?: Banner;
|
|
10
|
-
};
|