From 4ec6f0a019dc5daa77e15013779da635d5a866e9 Mon Sep 17 00:00:00 2001 From: Artsem Buyak Date: Thu, 12 Oct 2023 10:53:33 -0700 Subject: [PATCH] feat: add exclution operator logic (NLU-864) --- packages/base-types/src/models/project/knowledgeBase.ts | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/base-types/src/models/project/knowledgeBase.ts b/packages/base-types/src/models/project/knowledgeBase.ts index 409d0c539..7a935c956 100644 --- a/packages/base-types/src/models/project/knowledgeBase.ts +++ b/packages/base-types/src/models/project/knowledgeBase.ts @@ -12,14 +12,14 @@ export declare enum KnowledgeBaseBooleanOperators { OR = 'or', } -export interface KnowledgeBaseTagsInclude { +export interface KnowledgeBaseTagsFilterWithOperator { items: string[]; operator?: KnowledgeBaseBooleanOperators; } export interface KnowledgeBaseTagsFilter { - include?: KnowledgeBaseTagsInclude; - exclude?: string[]; + include?: KnowledgeBaseTagsFilterWithOperator; + exclude?: KnowledgeBaseTagsFilterWithOperator; includeAllTagged?: boolean; includeAllNonTagged?: boolean; }