From ce890088d7f3cd9fc32f061fb6ad72acf873f780 Mon Sep 17 00:00:00 2001 From: JTangCoveo <113382897+JTangCoveo@users.noreply.github.com> Date: Tue, 27 Feb 2024 10:03:18 -0500 Subject: [PATCH] feat(ml)!: update ExtraConfig interface (#798) * feat(ml): update ExtraConfig interface add filterConditions and sources to IndexExport interface of a model's extraConfig * feat(ml): change defintion of extraConfig interface * feat(ml): change defintion of extraConfig interface change defintion of extraConfig interface to be consistent with swagger, remove IndexExport interface BREAKING CHANGE: remove IndexExport interface --- .../MachineLearningInterfaces.ts | 22 ------------------- 1 file changed, 22 deletions(-) diff --git a/src/resources/MachineLearning/MachineLearningInterfaces.ts b/src/resources/MachineLearning/MachineLearningInterfaces.ts index d28ae002b..d67c9e87f 100644 --- a/src/resources/MachineLearning/MachineLearningInterfaces.ts +++ b/src/resources/MachineLearning/MachineLearningInterfaces.ts @@ -23,34 +23,12 @@ export interface CommerceSupport { [key: string]: any; } -export interface IndexExport { - query: string; -} - export interface DocumentContentSource { objectType: string; sourceLocations: string[]; } export interface ExtraConfig { - recommendedContentTypeFilter?: string[]; - eventConfigsTemplates?: string[]; - PageViewFiltered?: PageViewFiltered; - automaticContextDiscovery?: boolean; - blacklist?: string[]; - commerceSupport?: CommerceSupport; - filterFields?: string[]; - recommendProductGroup?: boolean; - testConfiguration?: boolean; - userContextFields?: string[]; - whitelist?: string[]; - blackList?: string[]; - queryReplacePatterns?: QueryReplacePatterns[]; - recommendationStrategy?: string; - urlReplacePatterns?: UrlReplacePatterns[]; - parsingMode?: string; - documentContentSources?: DocumentContentSource[]; - indexExport?: IndexExport; [key: string]: any; }