// Copyright © 2022-2026 Partium, Inc. DBA Partium import { PFile } from '../../core'; import { ImageCropArea } from './image-crop-area'; /** @deprecated use the text attribute instead */ export declare enum TEXT_SEARCH_TYPE { SEMANTIC = "semanticText", EXACT = "exactText" } /** @deprecated use the text attribute instead */ export type TextSearchQueries = { [key in TEXT_SEARCH_TYPE]?: string; }; /** * Search-Input for searches */ export interface SearchInput { /** needed for a new search-session (can not be changed for existing search-session) */ organizationName: string; /** needed for a new search-session (can not be changed for existing search-session) */ searchLanguage: string; /** needed to continue an existing search-session */ searchSessionId?: string; /** @deprecated use the text attribute instead*/ searchQueries?: TextSearchQueries; text?: string; /** * either searchImageAssetId or searchImage can be set to perform image-search. * An imageId obtained via AssetService.uploadImage (or from a previous search-response) * can be passed here to reuse an already uploaded image without uploading it again. */ searchImageAssetId?: string; /** either searchImageAssetId or searchImage can be set to perform image-search */ searchImage?: PFile; searchImageCropArea?: ImageCropArea; /** ids of hierarchy-nodes to filter for */ hierarchyFilters?: string[]; /** filter-names and filter-values to add as filters */ attributeFilters?: Record; /** Search for parts, similar to the one with the given id (can not be combined with any other search input, such as text, image or filter) */ similarTo?: { id?: string; partiumId?: string; }; /** Search for parts, that are duplicates of the one with the given id (can not be combined with any other search input, such as text, image or filter) */ duplicateOf?: { id?: string; partiumId?: string; }; /** Search for parts, that have related parts or are suggestions for relations/duplicates. */ hasRelatedParts?: boolean; }