Skip to content

Commit 26dd2de

Browse files
algolia-botmillotp
andcommitted
chore: generated code for commit d2b0f7d6. [skip ci]
algolia/api-clients-automation@d2b0f7d Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent a45c839 commit 26dd2de

18 files changed

+140
-64
lines changed

packages/algoliasearch/builds/models.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ import {
5959
RemoveStopWords,
6060
RemoveWordsIfNoResults,
6161
RenderingContent,
62+
SearchPagination,
6263
SearchParams,
6364
SearchParamsObject,
6465
SearchParamsQuery,
@@ -148,6 +149,7 @@ export {
148149
SearchParamsObject,
149150
SearchParamsQuery,
150151
SemanticSearch,
152+
SearchPagination,
151153
SnippetResult,
152154
SnippetResultOption,
153155
SortRemainingBy,

packages/algoliasearch/lite/model/baseSearchResponse.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ export type BaseSearchResponse = Record<string, any> & {
5353
*/
5454
facets_stats?: Record<string, FacetsStats>;
5555

56-
/**
57-
* Number of hits per page.
58-
*/
59-
hitsPerPage: number;
60-
6156
/**
6257
* Index name used for the query.
6358
*/
@@ -73,26 +68,11 @@ export type BaseSearchResponse = Record<string, any> & {
7368
*/
7469
message?: string;
7570

76-
/**
77-
* Number of results (hits).
78-
*/
79-
nbHits: number;
80-
81-
/**
82-
* Number of pages of results.
83-
*/
84-
nbPages: number;
85-
8671
/**
8772
* Number of hits selected and sorted by the relevant sort algorithm.
8873
*/
8974
nbSortedHits?: number;
9075

91-
/**
92-
* Page of search results to retrieve.
93-
*/
94-
page: number;
95-
9676
/**
9777
* Post-[normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean) query string that will be searched.
9878
*/
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
export type BrowsePagination = {
4+
/**
5+
* Page of search results to retrieve.
6+
*/
7+
page?: number;
8+
9+
/**
10+
* Number of results (hits).
11+
*/
12+
nbHits?: number;
13+
14+
/**
15+
* Number of pages of results.
16+
*/
17+
nbPages?: number;
18+
19+
/**
20+
* Number of hits per page.
21+
*/
22+
hitsPerPage?: number;
23+
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
// 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.
22

33
import type { BaseSearchResponse } from './baseSearchResponse';
4+
import type { BrowsePagination } from './browsePagination';
45
import type { Cursor } from './cursor';
56
import type { SearchHits } from './searchHits';
67

78
export type BrowseResponse<T = Record<string, any>> = BaseSearchResponse &
9+
BrowsePagination &
810
Cursor &
911
SearchHits<T>;

packages/algoliasearch/lite/model/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,7 @@ export * from './baseSearchParams';
1717
export * from './baseSearchParamsWithoutQuery';
1818
export * from './baseSearchResponse';
1919
export * from './boughtTogetherQuery';
20+
export * from './browsePagination';
2021
export * from './browseParamsObject';
2122
export * from './browseResponse';
2223
export * from './consequenceParams';
@@ -84,6 +85,7 @@ export * from './searchForHits';
8485
export * from './searchForHitsOptions';
8586
export * from './searchHits';
8687
export * from './searchMethodParams';
88+
export * from './searchPagination';
8789
export * from './searchParams';
8890
export * from './searchParamsObject';
8991
export * from './searchParamsQuery';

packages/algoliasearch/lite/model/recommendationsResults.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22

33
import type { BaseSearchResponse } from './baseSearchResponse';
44
import type { RecommendationsHits } from './recommendationsHits';
5+
import type { SearchPagination } from './searchPagination';
56

6-
export type RecommendationsResults = BaseSearchResponse & RecommendationsHits;
7+
export type RecommendationsResults = BaseSearchResponse &
8+
RecommendationsHits &
9+
SearchPagination;
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
export type SearchPagination = {
4+
/**
5+
* Page of search results to retrieve.
6+
*/
7+
page: number;
8+
9+
/**
10+
* Number of results (hits).
11+
*/
12+
nbHits: number;
13+
14+
/**
15+
* Number of pages of results.
16+
*/
17+
nbPages: number;
18+
19+
/**
20+
* Number of hits per page.
21+
*/
22+
hitsPerPage: number;
23+
};

packages/algoliasearch/lite/model/searchResponse.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import type { BaseSearchResponse } from './baseSearchResponse';
44
import type { SearchHits } from './searchHits';
5+
import type { SearchPagination } from './searchPagination';
56

67
export type SearchResponse<T = Record<string, any>> = BaseSearchResponse &
7-
SearchHits<T>;
8+
SearchHits<T> &
9+
SearchPagination;

packages/client-search/model/baseSearchResponse.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ export type BaseSearchResponse = Record<string, any> & {
5353
*/
5454
facets_stats?: Record<string, FacetsStats>;
5555

56-
/**
57-
* Number of hits per page.
58-
*/
59-
hitsPerPage: number;
60-
6156
/**
6257
* Index name used for the query.
6358
*/
@@ -73,26 +68,11 @@ export type BaseSearchResponse = Record<string, any> & {
7368
*/
7469
message?: string;
7570

76-
/**
77-
* Number of results (hits).
78-
*/
79-
nbHits: number;
80-
81-
/**
82-
* Number of pages of results.
83-
*/
84-
nbPages: number;
85-
8671
/**
8772
* Number of hits selected and sorted by the relevant sort algorithm.
8873
*/
8974
nbSortedHits?: number;
9075

91-
/**
92-
* Page of search results to retrieve.
93-
*/
94-
page: number;
95-
9676
/**
9777
* Post-[normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean) query string that will be searched.
9878
*/
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
export type BrowsePagination = {
4+
/**
5+
* Page of search results to retrieve.
6+
*/
7+
page?: number;
8+
9+
/**
10+
* Number of results (hits).
11+
*/
12+
nbHits?: number;
13+
14+
/**
15+
* Number of pages of results.
16+
*/
17+
nbPages?: number;
18+
19+
/**
20+
* Number of hits per page.
21+
*/
22+
hitsPerPage?: number;
23+
};
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
// 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.
22

33
import type { BaseSearchResponse } from './baseSearchResponse';
4+
import type { BrowsePagination } from './browsePagination';
45
import type { Cursor } from './cursor';
56
import type { SearchHits } from './searchHits';
67

78
export type BrowseResponse<T = Record<string, any>> = BaseSearchResponse &
9+
BrowsePagination &
810
Cursor &
911
SearchHits<T>;

packages/client-search/model/index.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export * from './batchParams';
2828
export * from './batchRequest';
2929
export * from './batchResponse';
3030
export * from './batchWriteParams';
31+
export * from './browsePagination';
3132
export * from './browseParams';
3233
export * from './browseParamsObject';
3334
export * from './browseResponse';
@@ -127,6 +128,7 @@ export * from './searchForHits';
127128
export * from './searchForHitsOptions';
128129
export * from './searchHits';
129130
export * from './searchMethodParams';
131+
export * from './searchPagination';
130132
export * from './searchParams';
131133
export * from './searchParamsObject';
132134
export * from './searchParamsQuery';
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
export type SearchPagination = {
4+
/**
5+
* Page of search results to retrieve.
6+
*/
7+
page: number;
8+
9+
/**
10+
* Number of results (hits).
11+
*/
12+
nbHits: number;
13+
14+
/**
15+
* Number of pages of results.
16+
*/
17+
nbPages: number;
18+
19+
/**
20+
* Number of hits per page.
21+
*/
22+
hitsPerPage: number;
23+
};

packages/client-search/model/searchResponse.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22

33
import type { BaseSearchResponse } from './baseSearchResponse';
44
import type { SearchHits } from './searchHits';
5+
import type { SearchPagination } from './searchPagination';
56

67
export type SearchResponse<T = Record<string, any>> = BaseSearchResponse &
7-
SearchHits<T>;
8+
SearchHits<T> &
9+
SearchPagination;

packages/recommend/model/baseSearchResponse.ts

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -53,11 +53,6 @@ export type BaseSearchResponse = Record<string, any> & {
5353
*/
5454
facets_stats?: Record<string, FacetsStats>;
5555

56-
/**
57-
* Number of hits per page.
58-
*/
59-
hitsPerPage: number;
60-
6156
/**
6257
* Index name used for the query.
6358
*/
@@ -73,26 +68,11 @@ export type BaseSearchResponse = Record<string, any> & {
7368
*/
7469
message?: string;
7570

76-
/**
77-
* Number of results (hits).
78-
*/
79-
nbHits: number;
80-
81-
/**
82-
* Number of pages of results.
83-
*/
84-
nbPages: number;
85-
8671
/**
8772
* Number of hits selected and sorted by the relevant sort algorithm.
8873
*/
8974
nbSortedHits?: number;
9075

91-
/**
92-
* Page of search results to retrieve.
93-
*/
94-
page: number;
95-
9676
/**
9777
* Post-[normalization](https://www.algolia.com/doc/guides/managing-results/optimize-search-results/handling-natural-languages-nlp/#what-does-normalization-mean) query string that will be searched.
9878
*/

packages/recommend/model/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ export * from './relatedQuery';
6969
export * from './removeStopWords';
7070
export * from './removeWordsIfNoResults';
7171
export * from './renderingContent';
72+
export * from './searchPagination';
7273
export * from './searchParams';
7374
export * from './searchParamsObject';
7475
export * from './searchParamsQuery';

packages/recommend/model/recommendationsResults.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,8 @@
22

33
import type { BaseSearchResponse } from './baseSearchResponse';
44
import type { RecommendationsHits } from './recommendationsHits';
5+
import type { SearchPagination } from './searchPagination';
56

6-
export type RecommendationsResults = BaseSearchResponse & RecommendationsHits;
7+
export type RecommendationsResults = BaseSearchResponse &
8+
RecommendationsHits &
9+
SearchPagination;
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
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+
export type SearchPagination = {
4+
/**
5+
* Page of search results to retrieve.
6+
*/
7+
page: number;
8+
9+
/**
10+
* Number of results (hits).
11+
*/
12+
nbHits: number;
13+
14+
/**
15+
* Number of pages of results.
16+
*/
17+
nbPages: number;
18+
19+
/**
20+
* Number of hits per page.
21+
*/
22+
hitsPerPage: number;
23+
};

0 commit comments

Comments
 (0)