Skip to content

Commit 2f7f067

Browse files
algolia-botFluf22
andcommitted
fix(specs): update search api specs [skip-bc] (generated)
algolia/api-clients-automation#3760 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Thomas Raffray <[email protected]>
1 parent b4b21bb commit 2f7f067

File tree

9 files changed

+18
-42
lines changed

9 files changed

+18
-42
lines changed

packages/algoliasearch/lite/model/highlightResult.ts

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

33
import type { HighlightResultOption } from './highlightResultOption';
44

5-
export type HighlightResult =
6-
| HighlightResultOption
7-
| HighlightResultOption[]
8-
| Record<string, HighlightResultOption>
9-
| { [key: string]: HighlightResult };
5+
export type HighlightResult = HighlightResult[] | HighlightResultOption | { [key: string]: HighlightResult };

packages/algoliasearch/lite/model/searchPagination.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ export type SearchPagination = {
44
/**
55
* Page of search results to retrieve.
66
*/
7-
page: number;
7+
page?: number;
88

99
/**
1010
* Number of results (hits).
1111
*/
12-
nbHits: number;
12+
nbHits?: number;
1313

1414
/**
1515
* Number of pages of results.
1616
*/
17-
nbPages: number;
17+
nbPages?: number;
1818

1919
/**
2020
* Number of hits per page.
2121
*/
22-
hitsPerPage: number;
22+
hitsPerPage?: number;
2323
};

packages/algoliasearch/lite/model/snippetResult.ts

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

33
import type { SnippetResultOption } from './snippetResultOption';
44

5-
export type SnippetResult =
6-
| Record<string, SnippetResultOption>
7-
| SnippetResultOption
8-
| SnippetResultOption[]
9-
| { [key: string]: SnippetResult };
5+
export type SnippetResult = SnippetResult[] | SnippetResultOption | { [key: string]: SnippetResult };

packages/client-search/model/highlightResult.ts

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

33
import type { HighlightResultOption } from './highlightResultOption';
44

5-
export type HighlightResult =
6-
| HighlightResultOption
7-
| HighlightResultOption[]
8-
| Record<string, HighlightResultOption>
9-
| { [key: string]: HighlightResult };
5+
export type HighlightResult = HighlightResult[] | HighlightResultOption | { [key: string]: HighlightResult };

packages/client-search/model/searchPagination.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ export type SearchPagination = {
44
/**
55
* Page of search results to retrieve.
66
*/
7-
page: number;
7+
page?: number;
88

99
/**
1010
* Number of results (hits).
1111
*/
12-
nbHits: number;
12+
nbHits?: number;
1313

1414
/**
1515
* Number of pages of results.
1616
*/
17-
nbPages: number;
17+
nbPages?: number;
1818

1919
/**
2020
* Number of hits per page.
2121
*/
22-
hitsPerPage: number;
22+
hitsPerPage?: number;
2323
};

packages/client-search/model/snippetResult.ts

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

33
import type { SnippetResultOption } from './snippetResultOption';
44

5-
export type SnippetResult =
6-
| Record<string, SnippetResultOption>
7-
| SnippetResultOption
8-
| SnippetResultOption[]
9-
| { [key: string]: SnippetResult };
5+
export type SnippetResult = SnippetResult[] | SnippetResultOption | { [key: string]: SnippetResult };

packages/recommend/model/highlightResult.ts

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

33
import type { HighlightResultOption } from './highlightResultOption';
44

5-
export type HighlightResult =
6-
| HighlightResultOption
7-
| HighlightResultOption[]
8-
| Record<string, HighlightResultOption>
9-
| { [key: string]: HighlightResult };
5+
export type HighlightResult = HighlightResult[] | HighlightResultOption | { [key: string]: HighlightResult };

packages/recommend/model/searchPagination.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,20 @@ export type SearchPagination = {
44
/**
55
* Page of search results to retrieve.
66
*/
7-
page: number;
7+
page?: number;
88

99
/**
1010
* Number of results (hits).
1111
*/
12-
nbHits: number;
12+
nbHits?: number;
1313

1414
/**
1515
* Number of pages of results.
1616
*/
17-
nbPages: number;
17+
nbPages?: number;
1818

1919
/**
2020
* Number of hits per page.
2121
*/
22-
hitsPerPage: number;
22+
hitsPerPage?: number;
2323
};

packages/recommend/model/snippetResult.ts

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

33
import type { SnippetResultOption } from './snippetResultOption';
44

5-
export type SnippetResult =
6-
| Record<string, SnippetResultOption>
7-
| SnippetResultOption
8-
| SnippetResultOption[]
9-
| { [key: string]: SnippetResult };
5+
export type SnippetResult = SnippetResult[] | SnippetResultOption | { [key: string]: SnippetResult };

0 commit comments

Comments
 (0)