/** * LINKURIOUS CONFIDENTIAL * Copyright Linkurious SAS 2012 - 2024 * * - Created on 2024-07-29. */ import { Request } from '../../http/request'; import { IDataSourceParams } from '../commonTypes'; import { CreateEntityResolutionMappingParams, DeleteEntityResolutionMappingParams, EntityResolutionLicenseInfo, EntityResolutionMapping, EntityResolutionMetrics, EntityResolutionServerStatus, ExplainWhyEntitiesParams, ExplainWhyRecordParams, GetEntityByIdParams, GetEntityResolutionServerStatusParams, IngestionStatus, ResolvedEntity, StartEntityResolutionTaskParams, StopEntityResolutionTaskParams, UpdateEntityResolutionMappingParams, WhyEntities, WhyRecord } from './types'; export * from './types'; export declare class EntityResolutionAPI extends Request { /** * Create a new entity resolution mapping, for a given node category. */ createEntityResolutionMapping(this: Request, params: CreateEntityResolutionMappingParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>>; /** * Update an existing entity resolution mapping, for a given node category. */ updateEntityResolutionMapping(this: Request, params: UpdateEntityResolutionMappingParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>>; /** * Delete an existing entity resolution mapping, for a given node category. */ deleteEntityResolutionMapping(params: DeleteEntityResolutionMappingParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * List all the entity resolution mappings for a given data-source. */ getEntityResolutionMappings(this: Request<{ items: EntityResolutionMapping[]; }>, params: IDataSourceParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response<{ items: EntityResolutionMapping[]; }>>; /** * Start an ingestion task on a given data-source. This task: * - Ensures all the graph indexes needed for entity resolution are created. * - Fetches all the graph nodes for each mapped category. * - Converts each fetched node into an entity resolution record. * - Sends all the converted records to the entity resolution server. * - Materializes the resolved entities in the graph database. * * The ingestion is incremental: it only fetches the graph nodes that have been modified after * the latest ingestion. * * By default, immediately returns, without waiting for the task to complete. */ startIngestion(params: StartEntityResolutionTaskParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Stop an ingestion task on a given data-source. */ stopIngestion(this: Request, params: StopEntityResolutionTaskParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Start a purge task for a given data-source. This task: * - Removes all the entity nodes/edges in the graph database. * - Deletes all the graph indexes related to entity resolution. * - Empties the data-source in the entity-resolution server. * * By default, immediately returns, without waiting for the task to complete. */ startPurge(params: StartEntityResolutionTaskParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get the status of the entity resolution ingestion, for a given data-source. */ getIngestionStatus(this: Request, params: IDataSourceParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get information about the entity resolution license, across all data-sources. */ getLicenseInfo(this: Request): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get entity resolution metrics, for a given data-source. */ getMetrics(this: Request, params: IDataSourceParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Explain why a given record resolved to an entity. */ explainWhyRecord(this: Request, params: ExplainWhyRecordParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Explain why two different entities are related. */ explainWhyEntities(this: Request, params: ExplainWhyEntitiesParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get a resolved entity by its ID */ getEntityById(this: Request, params: GetEntityByIdParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response>; /** * Get entity resolution server status */ getEntityResolutionServerStatus(this: Request<{ status: EntityResolutionServerStatus; }>, params: GetEntityResolutionServerStatusParams): Promise | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response | import("../../http/response").Response<{ status: EntityResolutionServerStatus; }>>; }