Skip to content

Commit c63dda9

Browse files
Haroenvnunomaduro
authored andcommitted
feat(rule): add group promotes
doesn't have a test yet, but allows you to base on top of this. fixes #1155
1 parent a91bf8e commit c63dda9

File tree

1 file changed

+10
-0
lines changed
  • packages/client-search/src/types

1 file changed

+10
-0
lines changed

packages/client-search/src/types/Rule.ts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,16 @@ export type ConsequencePromote = {
8787
* Promoted rank for the object (zero-based).
8888
*/
8989
readonly position: number;
90+
} | {
91+
/**
92+
* List of unique identifiers for the objects to promote.
93+
*/
94+
readonly objectIDs: string[];
95+
96+
/**
97+
* Promoted start rank for the objects (zero-based).
98+
*/
99+
readonly position: number;
90100
};
91101

92102
export type ConsequenceParams = {

0 commit comments

Comments
 (0)