Skip to content

Commit 94eddab

Browse files
committed
chore: generated code for commit fcf03308ce27f02d6f10841c843ea46cda749738.
Co-authored-by: algolia-bot <[email protected]>
1 parent 5f68ea6 commit 94eddab

Some content is hidden

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

53 files changed

+216
-193
lines changed
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export type Direction = 'asc' | 'desc';

packages/client-analytics/model/models.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
export * from './direction';
12
export * from './errorBase';
23
export * from './getAverageClickPositionResponse';
34
export * from './getAverageClickPositionResponseDates';
@@ -30,6 +31,7 @@ export * from './getTopFiltersNoResultsValues';
3031
export * from './getTopHitsResponse';
3132
export * from './getTopSearchesResponse';
3233
export * from './getUsersCountResponse';
34+
export * from './orderBy';
3335
export * from './topHitsResponse';
3436
export * from './topHitsResponseHits';
3537
export * from './topHitsResponseWithAnalytics';
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
export type OrderBy =
2+
| 'averageClickPosition'
3+
| 'clickThroughRate'
4+
| 'conversionRate'
5+
| 'searchCount';

packages/client-analytics/src/analyticsApi.ts

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ import type {
1212
QueryParameters,
1313
} from '@experimental-api-clients-automation/client-common';
1414

15+
import type { Direction } from '../model/direction';
1516
import type { GetAverageClickPositionResponse } from '../model/getAverageClickPositionResponse';
1617
import type { GetClickPositionsResponse } from '../model/getClickPositionsResponse';
1718
import type { GetClickThroughRateResponse } from '../model/getClickThroughRateResponse';
@@ -29,6 +30,7 @@ import type { GetTopFiltersNoResultsResponse } from '../model/getTopFiltersNoRes
2930
import type { GetTopHitsResponse } from '../model/getTopHitsResponse';
3031
import type { GetTopSearchesResponse } from '../model/getTopSearchesResponse';
3132
import type { GetUsersCountResponse } from '../model/getUsersCountResponse';
33+
import type { OrderBy } from '../model/orderBy';
3234

3335
export * from '../model/models';
3436
export const apiClientVersion = '0.0.5';
@@ -1734,15 +1736,11 @@ export type GetTopSearchesProps = {
17341736
/**
17351737
* Reorder the results.
17361738
*/
1737-
orderBy?:
1738-
| 'averageClickPosition'
1739-
| 'clickThroughRate'
1740-
| 'conversionRate'
1741-
| 'searchCount';
1739+
orderBy?: OrderBy;
17421740
/**
17431741
* The sorting of the result.
17441742
*/
1745-
direction?: 'asc' | 'desc';
1743+
direction?: Direction;
17461744
/**
17471745
* Number of records to return. Limit is the size of the page.
17481746
*/
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* An eventType can be a click, a conversion, or a view.
3+
*/
4+
5+
export type EventType = 'click' | 'conversion' | 'view';

packages/client-insights/model/insightEvent.ts

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1+
import type { EventType } from './eventType';
2+
13
/**
24
* Insights event.
35
*/
46
export type InsightEvent = {
5-
/**
6-
* An eventType can be a click, a conversion, or a view.
7-
*/
8-
eventType: InsightEventEventType;
7+
eventType: EventType;
98
/**
109
* A user-defined string used to categorize events.
1110
*/
@@ -39,5 +38,3 @@ export type InsightEvent = {
3938
*/
4039
positions?: number[];
4140
};
42-
43-
export type InsightEventEventType = 'click' | 'conversion' | 'view';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
export * from './errorBase';
2+
export * from './eventType';
23
export * from './insightEvent';
34
export * from './insightEvents';
45
export * from './pushEventsResponse';

packages/client-predict/model/models.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,10 +2,12 @@ export * from './affinities';
22
export * from './errorBase';
33
export * from './fetchUserProfileResponse';
44
export * from './funnelStage';
5+
export * from './modelsToRetrieve';
56
export * from './params';
67
export * from './predictions';
78
export * from './predictionsAffinities';
89
export * from './predictionsFunnelStage';
910
export * from './predictionsOrderValue';
1011
export * from './properties';
1112
export * from './segments';
13+
export * from './typesToRetrieve';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export type ModelsToRetrieve = 'affinities' | 'funnel_stage' | 'order_value';
Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,16 @@
1+
import type { ModelsToRetrieve } from './modelsToRetrieve';
2+
import type { TypesToRetrieve } from './typesToRetrieve';
3+
14
/**
25
* Object with models and types to retrieve.
36
*/
47
export type Params = {
58
/**
69
* List with model types for which to retrieve predictions.
710
*/
8-
modelsToRetrieve?: ParamsModelsToRetrieve[];
11+
modelsToRetrieve?: ModelsToRetrieve[];
912
/**
1013
* List with types to be retrieved.
1114
*/
12-
typesToRetrieve?: ParamsTypesToRetrieve[];
15+
typesToRetrieve?: TypesToRetrieve[];
1316
};
14-
15-
export type ParamsModelsToRetrieve =
16-
| 'affinities'
17-
| 'funnel_stage'
18-
| 'order_value';
19-
20-
export type ParamsTypesToRetrieve = 'properties' | 'segments';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export type TypesToRetrieve = 'properties' | 'segments';
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
1+
import type { LogLevel } from './logLevel';
2+
13
export type LogFile = {
24
/**
35
* Date and time of creation of the record.
46
*/
57
timestamp: string;
6-
/**
7-
* Type of the record, can be one of three values (INFO, SKIP or ERROR).
8-
*/
9-
level: LogFileLevel;
8+
level: LogLevel;
109
/**
1110
* Detailed description of what happened.
1211
*/
@@ -16,5 +15,3 @@ export type LogFile = {
1615
*/
1716
contextLevel: number;
1817
};
19-
20-
export type LogFileLevel = 'ERROR' | 'INFO' | 'SKIP';
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* Type of the record, can be one of three values (INFO, SKIP or ERROR).
3+
*/
4+
5+
export type LogLevel = 'ERROR' | 'INFO' | 'SKIP';

packages/client-query-suggestions/model/models.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
export * from './errorBase';
22
export * from './indexName';
33
export * from './logFile';
4+
export * from './logLevel';
45
export * from './querySuggestionsIndex';
56
export * from './querySuggestionsIndexParam';
67
export * from './querySuggestionsIndexWithIndexParam';
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export type AdvancedSyntaxFeatures = 'exactPhrase' | 'excludeWords';
Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
export type AlternativesAsExact =
2+
| 'ignorePlurals'
3+
| 'multiWordsSynonym'
4+
| 'singleWordSynonym';
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
1-
import type { AroundRadiusOneOf } from './aroundRadiusOneOf';
1+
import type { AroundRadiusAll } from './aroundRadiusAll';
22

3-
export type AroundRadius = AroundRadiusOneOf | number;
3+
export type AroundRadius = AroundRadiusAll | number;
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
export type AroundRadiusAll = 'all';
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* Controls how the exact ranking criterion is computed when the query contains only one word.
3+
*/
4+
5+
export type ExactOnSingleWordQuery = 'attribute' | 'none' | 'word';
Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1+
import type { TaskStatus } from './taskStatus';
2+
13
export type GetTaskResponse = {
2-
status: GetTaskResponseStatus;
4+
status: TaskStatus;
35
};
4-
5-
export type GetTaskResponseStatus = 'notPublished' | 'published';
Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import type { MatchLevel } from './matchLevel';
2+
13
/**
24
* Highlighted attributes.
35
*/
@@ -6,10 +8,7 @@ export type HighlightResult = {
68
* Markup text with occurrences highlighted.
79
*/
810
value?: string;
9-
/**
10-
* Indicates how well the attribute matched the search query.
11-
*/
12-
matchLevel?: HighlightResultMatchLevel;
11+
matchLevel?: MatchLevel;
1312
/**
1413
* List of words from the query that matched the object.
1514
*/
@@ -19,5 +18,3 @@ export type HighlightResult = {
1918
*/
2019
fullyHighlighted?: boolean;
2120
};
22-
23-
export type HighlightResultMatchLevel = 'full' | 'none' | 'partial';

packages/client-search/model/indexSettingsAsSearchParams.ts

Lines changed: 13 additions & 49 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,10 @@
1+
import type { AdvancedSyntaxFeatures } from './advancedSyntaxFeatures';
2+
import type { AlternativesAsExact } from './alternativesAsExact';
3+
import type { ExactOnSingleWordQuery } from './exactOnSingleWordQuery';
4+
import type { QueryType } from './queryType';
5+
import type { RemoveWordsIfNoResults } from './removeWordsIfNoResults';
6+
import type { TypoTolerance } from './typoTolerance';
7+
18
export type IndexSettingsAsSearchParams = {
29
/**
310
* The complete list of attributes used for searching.
@@ -67,10 +74,7 @@ export type IndexSettingsAsSearchParams = {
6774
* Minimum number of characters a word in the query string must contain to accept matches with 2 typos.
6875
*/
6976
minWordSizefor2Typos?: number;
70-
/**
71-
* Controls whether typo tolerance is enabled and how it is applied.
72-
*/
73-
typoTolerance?: IndexSettingsAsSearchParamsTypoTolerance;
77+
typoTolerance?: TypoTolerance;
7478
/**
7579
* Whether to allow typos on numbers (\"numeric tokens\") in the query string.
7680
*/
@@ -111,14 +115,8 @@ export type IndexSettingsAsSearchParams = {
111115
* Enable the Personalization feature.
112116
*/
113117
enablePersonalization?: boolean;
114-
/**
115-
* Controls if and how query words are interpreted as prefixes.
116-
*/
117-
queryType?: IndexSettingsAsSearchParamsQueryType;
118-
/**
119-
* Selects a strategy to remove words from the query when it doesn\'t match any hits.
120-
*/
121-
removeWordsIfNoResults?: IndexSettingsAsSearchParamsRemoveWordsIfNoResults;
118+
queryType?: QueryType;
119+
removeWordsIfNoResults?: RemoveWordsIfNoResults;
122120
/**
123121
* Enables the advanced query syntax.
124122
*/
@@ -131,18 +129,15 @@ export type IndexSettingsAsSearchParams = {
131129
* List of attributes on which you want to disable the exact ranking criterion.
132130
*/
133131
disableExactOnAttributes?: string[];
134-
/**
135-
* Controls how the exact ranking criterion is computed when the query contains only one word.
136-
*/
137-
exactOnSingleWordQuery?: IndexSettingsAsSearchParamsExactOnSingleWordQuery;
132+
exactOnSingleWordQuery?: ExactOnSingleWordQuery;
138133
/**
139134
* List of alternatives that should be considered an exact match by the exact ranking criterion.
140135
*/
141-
alternativesAsExact?: IndexSettingsAsSearchParamsAlternativesAsExact[];
136+
alternativesAsExact?: AlternativesAsExact[];
142137
/**
143138
* Allows you to specify which advanced syntax features are active when ‘advancedSyntax\' is enabled.
144139
*/
145-
advancedSyntaxFeatures?: IndexSettingsAsSearchParamsAdvancedSyntaxFeatures[];
140+
advancedSyntaxFeatures?: AdvancedSyntaxFeatures[];
146141
/**
147142
* Enables de-duplication or grouping of results.
148143
*/
@@ -176,34 +171,3 @@ export type IndexSettingsAsSearchParams = {
176171
*/
177172
renderingContent?: Record<string, any>;
178173
};
179-
180-
export type IndexSettingsAsSearchParamsTypoTolerance =
181-
| 'false'
182-
| 'min'
183-
| 'strict'
184-
| 'true';
185-
186-
export type IndexSettingsAsSearchParamsQueryType =
187-
| 'prefixAll'
188-
| 'prefixLast'
189-
| 'prefixNone';
190-
191-
export type IndexSettingsAsSearchParamsRemoveWordsIfNoResults =
192-
| 'allOptional'
193-
| 'firstWords'
194-
| 'lastWords'
195-
| 'none';
196-
197-
export type IndexSettingsAsSearchParamsExactOnSingleWordQuery =
198-
| 'attribute'
199-
| 'none'
200-
| 'word';
201-
202-
export type IndexSettingsAsSearchParamsAlternativesAsExact =
203-
| 'ignorePlurals'
204-
| 'multiWordsSynonym'
205-
| 'singleWordSynonym';
206-
207-
export type IndexSettingsAsSearchParamsAdvancedSyntaxFeatures =
208-
| 'exactPhrase'
209-
| 'excludeWords';
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* Indicates how well the attribute matched the search query.
3+
*/
4+
5+
export type MatchLevel = 'full' | 'none' | 'partial';

packages/client-search/model/models.ts

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
11
export * from './acl';
22
export * from './action';
33
export * from './addApiKeyResponse';
4+
export * from './advancedSyntaxFeatures';
5+
export * from './alternativesAsExact';
46
export * from './anchoring';
57
export * from './apiKey';
68
export * from './aroundRadius';
7-
export * from './aroundRadiusOneOf';
9+
export * from './aroundRadiusAll';
810
export * from './assignUserIdParams';
911
export * from './attributeOrBuiltInOperation';
1012
export * from './automaticFacetFilter';
@@ -40,6 +42,7 @@ export * from './dictionaryLanguage';
4042
export * from './dictionarySettingsParams';
4143
export * from './dictionaryType';
4244
export * from './errorBase';
45+
export * from './exactOnSingleWordQuery';
4346
export * from './getDictionarySettingsResponse';
4447
export * from './getLogsResponse';
4548
export * from './getLogsResponseInnerQueries';
@@ -60,6 +63,7 @@ export * from './listClustersResponse';
6063
export * from './listIndicesResponse';
6164
export * from './listUserIdsResponse';
6265
export * from './logType';
66+
export * from './matchLevel';
6367
export * from './multipleBatchOperation';
6468
export * from './multipleBatchResponse';
6569
export * from './multipleGetObjectsParams';
@@ -72,9 +76,11 @@ export * from './operationIndexParams';
7276
export * from './operationType';
7377
export * from './params';
7478
export * from './promote';
79+
export * from './queryType';
7580
export * from './rankingInfo';
7681
export * from './rankingInfoMatchedGeoLocation';
7782
export * from './removeUserIdResponse';
83+
export * from './removeWordsIfNoResults';
7884
export * from './replaceSourceResponse';
7985
export * from './requiredSearchParams';
8086
export * from './rule';
@@ -103,7 +109,9 @@ export * from './standardEntries';
103109
export * from './synonymHit';
104110
export * from './synonymHitHighlightResult';
105111
export * from './synonymType';
112+
export * from './taskStatus';
106113
export * from './timeRange';
114+
export * from './typoTolerance';
107115
export * from './updateApiKeyResponse';
108116
export * from './updatedAtResponse';
109117
export * from './updatedAtWithObjectIdResponse';
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
/**
2+
* Controls if and how query words are interpreted as prefixes.
3+
*/
4+
5+
export type QueryType = 'prefixAll' | 'prefixLast' | 'prefixNone';
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/**
2+
* Selects a strategy to remove words from the query when it doesn\'t match any hits.
3+
*/
4+
5+
export type RemoveWordsIfNoResults =
6+
| 'allOptional'
7+
| 'firstWords'
8+
| 'lastWords'
9+
| 'none';

0 commit comments

Comments
 (0)