File tree Expand file tree Collapse file tree 3 files changed +40
-0
lines changed
packages/client-search/src/types Expand file tree Collapse file tree 3 files changed +40
-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 11import { Hit , Settings } from '.' ;
2+ import { RedirectRuleIndexMetadata } from './RedirectRuleIndexMetadata' ;
23
34export type SearchResponse < TObject = { } > = {
45 /**
@@ -224,6 +225,13 @@ export type SearchResponse<TObject = {}> = {
224225 * as a JSON object with one field per parameter.
225226 */
226227 params ?: Record < string , any > ;
228+
229+ /**
230+ * This parameter is for internal use only.
231+ */
232+ redirect ?: {
233+ index ?: RedirectRuleIndexMetadata [ ] ;
234+ } ;
227235 } ;
228236
229237 /**
Original file line number Diff line number Diff line change @@ -63,6 +63,7 @@ export * from './MultipleQueriesResponse';
6363export * from './ObjectWithObjectID' ;
6464export * from './PartialUpdateObjectResponse' ;
6565export * from './PartialUpdateObjectsOptions' ;
66+ export * from './RedirectRuleIndexMetadata' ;
6667export * from './RemoveUserIDResponse' ;
6768export * from './ReplaceAllObjectsOptions' ;
6869export * from './RequireAtLeastOne' ;
You can’t perform that action at this time.
0 commit comments