Skip to content

Commit c93128f

Browse files
algolia-botmillotp
andcommitted
chore: generated code for commit 1e27a287. [skip ci]
algolia/api-clients-automation@1e27a28 Co-authored-by: algolia-bot <[email protected]> Co-authored-by: Pierre Millot <[email protected]>
1 parent b39792d commit c93128f

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+136
-110
lines changed

packages/algoliasearch-lite/model/baseSearchResponse.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { BaseSearchResponseFacetsStats } from './baseSearchResponseFacetsStats';
1+
import type { FacetsStats } from './facetsStats';
22

33
export type BaseSearchResponse = {
44
/**
@@ -32,11 +32,11 @@ export type BaseSearchResponse = {
3232
/**
3333
* A mapping of each facet name to the corresponding facet counts.
3434
*/
35-
facets?: { [key: string]: { [key: string]: string } };
35+
facets?: Record<string, Record<string, string>>;
3636
/**
3737
* Statistics for numerical facets.
3838
*/
39-
facets_stats?: { [key: string]: BaseSearchResponseFacetsStats };
39+
facets_stats?: Record<string, FacetsStats>;
4040
/**
4141
* Set the number of hits per page.
4242
*/

packages/algoliasearch-lite/model/baseSearchResponseFacetsStats.ts renamed to packages/algoliasearch-lite/model/facetsStats.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type BaseSearchResponseFacetsStats = {
1+
export type FacetsStats = {
22
/**
33
* The minimum value in the result set.
44
*/

packages/algoliasearch-lite/model/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@ export * from './baseBrowseResponse';
1313
export * from './baseIndexSettings';
1414
export * from './baseSearchParams';
1515
export * from './baseSearchResponse';
16-
export * from './baseSearchResponseFacetsStats';
1716
export * from './browseResponse';
1817
export * from './builtInOperation';
1918
export * from './builtInOperationType';
@@ -30,6 +29,7 @@ export * from './dictionaryType';
3029
export * from './errorBase';
3130
export * from './exactOnSingleWordQuery';
3231
export * from './facetFilters';
32+
export * from './facetsStats';
3333
export * from './fetchedIndex';
3434
export * from './highlightResult';
3535
export * from './hit';

packages/algoliasearch-lite/model/standardEntries.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,13 @@ export type StandardEntries = {
55
/**
66
* Language ISO code.
77
*/
8-
plurals?: { [key: string]: boolean } | null;
8+
plurals?: Record<string, boolean> | null;
99
/**
1010
* Language ISO code.
1111
*/
12-
stopwords?: { [key: string]: boolean } | null;
12+
stopwords?: Record<string, boolean> | null;
1313
/**
1414
* Language ISO code.
1515
*/
16-
compounds?: { [key: string]: boolean } | null;
16+
compounds?: Record<string, boolean> | null;
1717
};

packages/algoliasearch-lite/src/algoliasearchLiteClient.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -128,7 +128,7 @@ export function createAlgoliasearchLiteClient({
128128
* Perform a search operation targeting one or many indices.
129129
*
130130
* @summary Search multiple indices.
131-
* @param searchMethodParams - The searchMethodParams object.
131+
* @param searchMethodParams - The `search` requests and strategy.
132132
* @param requestOptions - The requestOptions to send along with the query, they will be merged with the transporter requestOptions.
133133
*/
134134
search(

packages/client-analytics/model/getAverageClickPositionResponseDates.ts renamed to packages/client-analytics/model/averageClickEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type GetAverageClickPositionResponseDates = {
1+
export type AverageClickEvent = {
22
/**
33
* The average of all the click count event.
44
*/

packages/client-analytics/model/getClickPositionsResponsePositions.ts renamed to packages/client-analytics/model/clickPosition.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type GetClickPositionsResponsePositions = {
1+
export type ClickPosition = {
22
/**
33
* Range of positions with the following pattern: - Positions from 1 to 10 included are displayed in separated groups. - Positions from 11 to 20 included are grouped together. - Positions from 21 and up are grouped together.
44
*/

packages/client-analytics/model/getClickThroughRateResponseDates.ts renamed to packages/client-analytics/model/clickThroughRateEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type GetClickThroughRateResponseDates = {
1+
export type ClickThroughRateEvent = {
22
/**
33
* The click-through rate.
44
*/

packages/client-analytics/model/getConversationRateResponseDates.ts renamed to packages/client-analytics/model/conversionRateEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type GetConversationRateResponseDates = {
1+
export type ConversionRateEvent = {
22
/**
33
* The click-through rate.
44
*/

packages/client-analytics/model/getAverageClickPositionResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { GetAverageClickPositionResponseDates } from './getAverageClickPositionResponseDates';
1+
import type { AverageClickEvent } from './averageClickEvent';
22

33
export type GetAverageClickPositionResponse = {
44
/**
@@ -12,5 +12,5 @@ export type GetAverageClickPositionResponse = {
1212
/**
1313
* A list of average click position with their date.
1414
*/
15-
dates: GetAverageClickPositionResponseDates[];
15+
dates: AverageClickEvent[];
1616
};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { GetClickPositionsResponsePositions } from './getClickPositionsResponsePositions';
1+
import type { ClickPosition } from './clickPosition';
22

33
export type GetClickPositionsResponse = {
44
/**
55
* A list of the click positions with their click count.
66
*/
7-
positions: GetClickPositionsResponsePositions[];
7+
positions: ClickPosition[];
88
};

packages/client-analytics/model/getClickThroughRateResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { GetClickThroughRateResponseDates } from './getClickThroughRateResponseDates';
1+
import type { ClickThroughRateEvent } from './clickThroughRateEvent';
22

33
export type GetClickThroughRateResponse = {
44
/**
@@ -16,5 +16,5 @@ export type GetClickThroughRateResponse = {
1616
/**
1717
* A list of click-through rate events with their date.
1818
*/
19-
dates: GetClickThroughRateResponseDates[];
19+
dates: ClickThroughRateEvent[];
2020
};

packages/client-analytics/model/getConversationRateResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { GetConversationRateResponseDates } from './getConversationRateResponseDates';
1+
import type { ConversionRateEvent } from './conversionRateEvent';
22

33
export type GetConversationRateResponse = {
44
/**
@@ -16,5 +16,5 @@ export type GetConversationRateResponse = {
1616
/**
1717
* A list of conversion events with their date.
1818
*/
19-
dates: GetConversationRateResponseDates[];
19+
dates: ConversionRateEvent[];
2020
};

packages/client-analytics/model/getNoClickRateResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { GetNoClickRateResponseDates } from './getNoClickRateResponseDates';
1+
import type { NoClickRateEvent } from './noClickRateEvent';
22

33
export type GetNoClickRateResponse = {
44
/**
@@ -16,5 +16,5 @@ export type GetNoClickRateResponse = {
1616
/**
1717
* A list of searches without clicks with their date, rate and counts.
1818
*/
19-
dates: GetNoClickRateResponseDates[];
19+
dates: NoClickRateEvent[];
2020
};

packages/client-analytics/model/getNoResultsRateResponse.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { GetNoResultsRateResponseDates } from './getNoResultsRateResponseDates';
1+
import type { NoResultsRateEvent } from './noResultsRateEvent';
22

33
export type GetNoResultsRateResponse = {
44
/**
@@ -16,5 +16,5 @@ export type GetNoResultsRateResponse = {
1616
/**
1717
* A list of searches without results with their date, rate and counts.
1818
*/
19-
dates: GetNoResultsRateResponseDates[];
19+
dates: NoResultsRateEvent[];
2020
};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { GetSearchesCountResponseDates } from './getSearchesCountResponseDates';
1+
import type { SearchEvent } from './searchEvent';
22

33
export type GetSearchesCountResponse = {
44
/**
@@ -8,5 +8,5 @@ export type GetSearchesCountResponse = {
88
/**
99
* A list of search events with their date and count.
1010
*/
11-
dates: GetSearchesCountResponseDates[];
11+
dates: SearchEvent[];
1212
};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { GetSearchesNoClicksResponseSearches } from './getSearchesNoClicksResponseSearches';
1+
import type { SearchNoClickEvent } from './searchNoClickEvent';
22

33
export type GetSearchesNoClicksResponse = {
44
/**
55
* A list of searches with no clicks and their count.
66
*/
7-
searches: GetSearchesNoClicksResponseSearches[];
7+
searches: SearchNoClickEvent[];
88
};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { GetSearchesNoResultsResponseSearches } from './getSearchesNoResultsResponseSearches';
1+
import type { SearchNoResultEvent } from './searchNoResultEvent';
22

33
export type GetSearchesNoResultsResponse = {
44
/**
55
* A list of searches with no results and their count.
66
*/
7-
searches: GetSearchesNoResultsResponseSearches[];
7+
searches: SearchNoResultEvent[];
88
};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { GetTopCountriesResponseCountries } from './getTopCountriesResponseCountries';
1+
import type { TopCountry } from './topCountry';
22

33
export type GetTopCountriesResponse = {
44
/**
55
* A list of countries with their count.
66
*/
7-
countries: GetTopCountriesResponseCountries[];
7+
countries: TopCountry[];
88
};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import type { GetSearchesCountResponseDates } from './getSearchesCountResponseDates';
1+
import type { UserWithDate } from './userWithDate';
22

33
export type GetUsersCountResponse = {
44
/**
@@ -8,5 +8,5 @@ export type GetUsersCountResponse = {
88
/**
99
* A list of users count with their date.
1010
*/
11-
dates: GetSearchesCountResponseDates[];
11+
dates: UserWithDate[];
1212
};
Lines changed: 15 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,26 +1,20 @@
1+
export * from './averageClickEvent';
2+
export * from './clickPosition';
3+
export * from './clickThroughRateEvent';
4+
export * from './conversionRateEvent';
15
export * from './direction';
26
export * from './errorBase';
37
export * from './getAverageClickPositionResponse';
4-
export * from './getAverageClickPositionResponseDates';
58
export * from './getClickPositionsResponse';
6-
export * from './getClickPositionsResponsePositions';
79
export * from './getClickThroughRateResponse';
8-
export * from './getClickThroughRateResponseDates';
910
export * from './getConversationRateResponse';
10-
export * from './getConversationRateResponseDates';
1111
export * from './getNoClickRateResponse';
12-
export * from './getNoClickRateResponseDates';
1312
export * from './getNoResultsRateResponse';
14-
export * from './getNoResultsRateResponseDates';
1513
export * from './getSearchesCountResponse';
16-
export * from './getSearchesCountResponseDates';
1714
export * from './getSearchesNoClicksResponse';
18-
export * from './getSearchesNoClicksResponseSearches';
1915
export * from './getSearchesNoResultsResponse';
20-
export * from './getSearchesNoResultsResponseSearches';
2116
export * from './getStatusResponse';
2217
export * from './getTopCountriesResponse';
23-
export * from './getTopCountriesResponseCountries';
2418
export * from './getTopFilterAttribute';
2519
export * from './getTopFilterAttributesResponse';
2620
export * from './getTopFilterForAttribute';
@@ -31,12 +25,20 @@ export * from './getTopFiltersNoResultsValues';
3125
export * from './getTopHitsResponse';
3226
export * from './getTopSearchesResponse';
3327
export * from './getUsersCountResponse';
28+
export * from './noClickRateEvent';
29+
export * from './noResultsRateEvent';
3430
export * from './orderBy';
31+
export * from './searchEvent';
32+
export * from './searchNoClickEvent';
33+
export * from './searchNoResultEvent';
34+
export * from './topCountry';
35+
export * from './topHit';
36+
export * from './topHitWithAnalytics';
3537
export * from './topHitsResponse';
36-
export * from './topHitsResponseHits';
3738
export * from './topHitsResponseWithAnalytics';
38-
export * from './topHitsResponseWithAnalyticsHits';
39+
export * from './topSearch';
40+
export * from './topSearchWithAnalytics';
3941
export * from './topSearchesResponse';
4042
export * from './topSearchesResponseWithAnalytics';
41-
export * from './topSearchesResponseWithAnalyticsSearches';
43+
export * from './userWithDate';
4244
export * from './clientMethodProps';

packages/client-analytics/model/getNoClickRateResponseDates.ts renamed to packages/client-analytics/model/noClickRateEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type GetNoClickRateResponseDates = {
1+
export type NoClickRateEvent = {
22
/**
33
* The click-through rate.
44
*/

packages/client-analytics/model/getNoResultsRateResponseDates.ts renamed to packages/client-analytics/model/noResultsRateEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type GetNoResultsRateResponseDates = {
1+
export type NoResultsRateEvent = {
22
/**
33
* Date of the event.
44
*/

packages/client-analytics/model/getSearchesCountResponseDates.ts renamed to packages/client-analytics/model/searchEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type GetSearchesCountResponseDates = {
1+
export type SearchEvent = {
22
/**
33
* Date of the event.
44
*/

packages/client-analytics/model/getSearchesNoClicksResponseSearches.ts renamed to packages/client-analytics/model/searchNoClickEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type GetSearchesNoClicksResponseSearches = {
1+
export type SearchNoClickEvent = {
22
/**
33
* The search query.
44
*/

packages/client-analytics/model/getSearchesNoResultsResponseSearches.ts renamed to packages/client-analytics/model/searchNoResultEvent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type GetSearchesNoResultsResponseSearches = {
1+
export type SearchNoResultEvent = {
22
/**
33
* The search query.
44
*/

packages/client-analytics/model/getTopCountriesResponseCountries.ts renamed to packages/client-analytics/model/topCountry.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type GetTopCountriesResponseCountries = {
1+
export type TopCountry = {
22
/**
33
* The country.
44
*/

packages/client-analytics/model/topHitsResponseHits.ts renamed to packages/client-analytics/model/topHit.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type TopHitsResponseHits = {
1+
export type TopHit = {
22
/**
33
* The hit.
44
*/

packages/client-analytics/model/topHitsResponseWithAnalyticsHits.ts renamed to packages/client-analytics/model/topHitWithAnalytics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type TopHitsResponseWithAnalyticsHits = {
1+
export type TopHitWithAnalytics = {
22
/**
33
* The hit.
44
*/
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { TopHitsResponseHits } from './topHitsResponseHits';
1+
import type { TopHit } from './topHit';
22

33
export type TopHitsResponse = {
44
/**
55
* A list of top hits with their count.
66
*/
7-
hits: TopHitsResponseHits[];
7+
hits: TopHit[];
88
};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { TopHitsResponseWithAnalyticsHits } from './topHitsResponseWithAnalyticsHits';
1+
import type { TopHitWithAnalytics } from './topHitWithAnalytics';
22

33
export type TopHitsResponseWithAnalytics = {
44
/**
55
* A list of top hits with their count and analytics.
66
*/
7-
hits: TopHitsResponseWithAnalyticsHits[];
7+
hits: TopHitWithAnalytics[];
88
};
Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
export type TopSearch = {
2+
/**
3+
* The search query.
4+
*/
5+
search: string;
6+
/**
7+
* The number of occurrences.
8+
*/
9+
count: number;
10+
/**
11+
* Number of hits that the search query matched.
12+
*/
13+
nbHits: number;
14+
};

packages/client-analytics/model/topSearchesResponseWithAnalyticsSearches.ts renamed to packages/client-analytics/model/topSearchWithAnalytics.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
export type TopSearchesResponseWithAnalyticsSearches = {
1+
export type TopSearchWithAnalytics = {
22
/**
33
* The search query.
44
*/
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { GetSearchesNoResultsResponseSearches } from './getSearchesNoResultsResponseSearches';
1+
import type { TopSearch } from './topSearch';
22

33
export type TopSearchesResponse = {
44
/**
55
* A list of top searches with their count.
66
*/
7-
searches: GetSearchesNoResultsResponseSearches[];
7+
searches: TopSearch[];
88
};
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
import type { TopSearchesResponseWithAnalyticsSearches } from './topSearchesResponseWithAnalyticsSearches';
1+
import type { TopSearchWithAnalytics } from './topSearchWithAnalytics';
22

33
export type TopSearchesResponseWithAnalytics = {
44
/**
55
* A list of top searches with their count and analytics.
66
*/
7-
searches: TopSearchesResponseWithAnalyticsSearches[];
7+
searches: TopSearchWithAnalytics[];
88
};

0 commit comments

Comments
 (0)