From 4d1b923b785e91c2ed423b85133994f9e46d93ea Mon Sep 17 00:00:00 2001 From: Antoine Boissinot <133259861+aboissinot-coveo@users.noreply.github.com> Date: Tue, 13 Aug 2024 10:30:12 -0400 Subject: [PATCH] feat(statements): add subFeature parameter to ListStatementParams (#845) --- src/resources/Enums.ts | 5 +++++ src/resources/Pipelines/Statements/StatementsInterfaces.ts | 6 +++++- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/resources/Enums.ts b/src/resources/Enums.ts index 610c58ec8..0b40a7adc 100644 --- a/src/resources/Enums.ts +++ b/src/resources/Enums.ts @@ -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', diff --git a/src/resources/Pipelines/Statements/StatementsInterfaces.ts b/src/resources/Pipelines/Statements/StatementsInterfaces.ts index fce58f2f1..cd41afea9 100644 --- a/src/resources/Pipelines/Statements/StatementsInterfaces.ts +++ b/src/resources/Pipelines/Statements/StatementsInterfaces.ts @@ -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 { @@ -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. */