Skip to content

Commit

Permalink
feat(statements): add subFeature parameter to ListStatementParams (#845)
Browse files Browse the repository at this point in the history
  • Loading branch information
aboissinot-coveo authored Aug 13, 2024
1 parent ae10494 commit 4d1b923
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 1 deletion.
5 changes: 5 additions & 0 deletions src/resources/Enums.ts
Original file line number Diff line number Diff line change
Expand Up @@ -761,6 +761,11 @@ export enum StatementsFeature {
QueryParamOverride = 'queryParamOverride',
}

export enum StatementsSubFeature {
QueryParamOverride = 'queryParamOverride',
QuerySuggestParamOverride = 'querySuggestParamOverride',
}

export enum ResultRankingsKind {
featuredResults = 'featured_result',
rankingExpression = 'ranking_expression',
Expand Down
6 changes: 5 additions & 1 deletion src/resources/Pipelines/Statements/StatementsInterfaces.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Paginated} from '../../BaseInterfaces.js';
import {ListStatementSortBy, StatementsFeature} from '../../Enums.js';
import {ListStatementSortBy, StatementsFeature, StatementsSubFeature} from '../../Enums.js';
import {ConditionModel} from '../Conditions/index.js';

export interface StatementModel {
Expand Down Expand Up @@ -128,6 +128,10 @@ export interface ListStatementParams extends Paginated {
* The query pipeline feature to match.
*/
feature?: StatementsFeature;
/**
* The query pipeline sub-feature to match.
*/
subFeature?: StatementsSubFeature;
/**
* The unique identifier of the target Coveo Cloud organization.
*/
Expand Down

0 comments on commit 4d1b923

Please sign in to comment.