Skip to content

Commit 9d64682

Browse files
algolia-botFluf22
andcommitted
fix(specs): add missing redirect property to rule consequence schema (generated)
algolia/api-clients-automation#5934 Co-authored-by: algolia-bot <accounts+algolia-api-client-bot@algolia.com> Co-authored-by: Thomas Raffray <Fluf22@users.noreply.github.com>
1 parent f47b128 commit 9d64682

3 files changed

Lines changed: 15 additions & 0 deletions

File tree

packages/client-search/model/consequence.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
import type { ConsequenceHide } from './consequenceHide';
44
import type { ConsequenceParams } from './consequenceParams';
5+
import type { ConsequenceRedirect } from './consequenceRedirect';
56
import type { Promote } from './promote';
67

78
/**
@@ -25,6 +26,8 @@ export type Consequence = {
2526
*/
2627
hide?: Array<ConsequenceHide> | undefined;
2728

29+
redirect?: ConsequenceRedirect | undefined;
30+
2831
/**
2932
* A JSON object with custom data that will be appended to the `userData` array in the response. This object isn\'t interpreted by the API and is limited to 1&nbsp;kB of minified JSON.
3033
*/
Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
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+
/**
4+
* Redirect to a virtual replica index. This consequence is only valid for rules with `scope: redirect`.
5+
*/
6+
export type ConsequenceRedirect = {
7+
/**
8+
* Name of the virtual replica index to redirect searches to.
9+
*/
10+
indexName: string;
11+
};

packages/client-search/model/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,7 @@ export * from './consequenceHide';
4646
export * from './consequenceParams';
4747
export * from './consequenceQuery';
4848
export * from './consequenceQueryObject';
49+
export * from './consequenceRedirect';
4950
export * from './createdAtResponse';
5051
export * from './cursor';
5152
export * from './deleteApiKeyResponse';

0 commit comments

Comments
 (0)