File tree 3 files changed +37
-0
lines changed
packages/client-search/src/types
3 files changed +37
-0
lines changed Original file line number Diff line number Diff line change
1
+ export type RedirectRuleIndexMetadata = {
2
+ /**
3
+ * Source index for the redirect rule
4
+ */
5
+ readonly source : string ;
6
+
7
+ /**
8
+ * Destination index for the redirect rule
9
+ */
10
+ readonly dest : string ;
11
+
12
+ /**
13
+ * Reason for the redirect rule
14
+ */
15
+ readonly reason : string ;
16
+
17
+ /**
18
+ * Status for the redirect rule
19
+ */
20
+ readonly succeed : boolean ;
21
+
22
+ /**
23
+ * Data for the redirect rule
24
+ */
25
+ readonly data : {
26
+ /**
27
+ * Rule objectId
28
+ */
29
+ readonly ruleObjectID : string ;
30
+ } ;
31
+ } ;
Original file line number Diff line number Diff line change 1
1
import { Hit , Settings } from '.' ;
2
+ import { RedirectRuleIndexMetadata } from './RedirectRuleIndexMetadata' ;
2
3
3
4
export type SearchResponse < TObject = { } > = {
4
5
/**
@@ -224,6 +225,10 @@ export type SearchResponse<TObject = {}> = {
224
225
* as a JSON object with one field per parameter.
225
226
*/
226
227
params ?: Record < string , any > ;
228
+
229
+ redirect ?: {
230
+ index ?: RedirectRuleIndexMetadata [ ] ;
231
+ } ;
227
232
} ;
228
233
229
234
/**
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ export * from './MultipleQueriesResponse';
63
63
export * from './ObjectWithObjectID' ;
64
64
export * from './PartialUpdateObjectResponse' ;
65
65
export * from './PartialUpdateObjectsOptions' ;
66
+ export * from './RedirectRuleIndexMetadata' ;
66
67
export * from './RemoveUserIDResponse' ;
67
68
export * from './ReplaceAllObjectsOptions' ;
68
69
export * from './RequireAtLeastOne' ;
You can’t perform that action at this time.
0 commit comments