// Copyright © 2022-2026 Partium, Inc. DBA Partium import { Observable } from 'rxjs'; import { BaseService, ServiceProvider } from '../../core'; import { PartEnrichmentData } from '../models/part-enrichment-data'; /** * Service for enriching parts metadata. */ export interface PartEnrichmentService { /** * Start Metadata-Enrichment for part. * Will resolve, once the enrichment is started successfully. * Will throw an error, if starting the enrichment fails, e.g. if the part has no UPIs. * * @param partiumPartId partiumId of the part to enrich */ enrichPart(partiumPartId: string): Observable; /** * Get the enrichment-status of a part. * This function can be used repetitively after triggering the part-enrichment to poll for the current status of the enrichment. * Enrichment will usually take a few minutes, but can also last up to 30 minutes or more. * * @param partiumPartId partiumId of the part to get the enrichment-status for */ getEnrichedData(partiumPartId: string): Observable; } export declare class PartEnrichmentServiceImpl extends BaseService implements PartEnrichmentService { private httpsService; constructor(serviceProvider: ServiceProvider); onCreate(): void; enrichPart(partiumPartId: string): Observable; getEnrichedData(partiumPartId: string): Observable; }