Skip to content

Commit 71cdb13

Browse files
committed
fix(specs): multiple clients fixes (generated)
algolia/api-clients-automation#3971 Co-authored-by: algolia-bot <[email protected]>
1 parent 916b1fe commit 71cdb13

File tree

8 files changed

+20
-5
lines changed

8 files changed

+20
-5
lines changed

packages/algoliasearch/lite/model/baseGetApiKeyResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export type BaseGetApiKeyResponse = {
44
/**
55
* API key.
66
*/
7-
value?: string;
7+
value: string;
88

99
/**
1010
* Timestamp when the object was created, in milliseconds since the Unix epoch.

packages/algoliasearch/lite/model/baseSearchResponse.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ export type BaseSearchResponse = Record<string, any> & {
2828

2929
exhaustive?: Exhaustive;
3030

31+
/**
32+
* Rules applied to the query.
33+
*/
34+
appliedRules?: Array<Record<string, unknown>>;
35+
3136
/**
3237
* See the `facetsCount` field of the `exhaustive` object in the response.
3338
*/

packages/client-abtesting/model/aBTestConfiguration.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ import type { Outliers } from './outliers';
88
* A/B test configuration.
99
*/
1010
export type ABTestConfiguration = {
11-
outliers: Outliers;
11+
outliers?: Outliers;
1212

1313
emptySearch?: EmptySearch;
1414

packages/client-abtesting/model/variant.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ export type Variant = {
4747
/**
4848
* Description for this variant.
4949
*/
50-
description: string;
50+
description?: string;
5151

5252
/**
5353
* Estimated number of searches required to achieve the desired statistical significance. The A/B test configuration must include a `mininmumDetectableEffect` setting for this number to be included in the response.

packages/client-search/model/baseGetApiKeyResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ export type BaseGetApiKeyResponse = {
44
/**
55
* API key.
66
*/
7-
value?: string;
7+
value: string;
88

99
/**
1010
* Timestamp when the object was created, in milliseconds since the Unix epoch.

packages/client-search/model/baseSearchResponse.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ export type BaseSearchResponse = Record<string, any> & {
2828

2929
exhaustive?: Exhaustive;
3030

31+
/**
32+
* Rules applied to the query.
33+
*/
34+
appliedRules?: Array<Record<string, unknown>>;
35+
3136
/**
3237
* See the `facetsCount` field of the `exhaustive` object in the response.
3338
*/

packages/client-search/model/getObjectsResponse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ export type GetObjectsResponse<T = Record<string, any>> = {
44
/**
55
* Retrieved records.
66
*/
7-
results: T[];
7+
results?: T[];
88
};

packages/recommend/model/baseSearchResponse.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,11 @@ export type BaseSearchResponse = Record<string, any> & {
2828

2929
exhaustive?: Exhaustive;
3030

31+
/**
32+
* Rules applied to the query.
33+
*/
34+
appliedRules?: Array<Record<string, unknown>>;
35+
3136
/**
3237
* See the `facetsCount` field of the `exhaustive` object in the response.
3338
*/

0 commit comments

Comments
 (0)