import { NamedProperties, ProgressEventsPromise, PromiseWithProgressEvents, Scalar } from "@objectif-lune/core"; import { WrongDataMapperConfigurationType } from "../../api/common/errors"; import { type ValidationResult } from "../../api/interfaces/connect-types"; import { ArtefactIdOrName } from "../../api/interfaces/connect-types/artefacts"; import { DataMapping } from "../../api/interfaces/services"; import type { ConnectServerErrorMessage } from "../rest-related-types"; import { ConnectService } from "./ConnectService"; /** * @see {@link https://help.uplandsoftware.com/objectiflune/en/olconnect-api/2025.2/Cookbook/REST_API_Reference/Data_Mapping_Service.html | Data Mapping Service cookbook} */ export declare class DataMappingService extends ConnectService implements DataMapping { static handleBadRequest(notFoundMessage: ConnectServerErrorMessage): false | WrongDataMapperConfigurationType; /** * Submits a request to initiate a new Data Mapping operation and on success * returns a response containing the Id of the Data Set produced (or * Content Set for a PDF/VT to Content Set specific data mapping operation). * * @param dataMapperId the Managed File Id (or Name) of the Data Mapping configuration in File Store * @param dataFileId Managed File Id or Name of Data file in File Store * @param runtimeParameters optional additional information for the data mapping process * @throws DataMappingNotFound * @throws DataFileNotFound * @see cookbook article {@link https://help.uplandsoftware.com/objectiflune/en/olconnect-api/2025.2/Cookbook/REST_API_Reference/Data_Mapping_Service/Process_Data_Mapping_(JSON).html | Process Data Mapping (JSON) cookbook} */ createDataSetFromConfigAndDataFile(dataMapperId: ArtefactIdOrName, dataFileId: ArtefactIdOrName, runtimeParameters?: NamedProperties): ProgressEventsPromise; /** * Submits a request to initiate a new Data Mapping operation and on success * returns a response containing a {@link https://help.uplandsoftware.com/objectiflune/en/olconnect-api/2025.2/Cookbook/Technical_Overview/JSON_Structures/Specific_Structures/JSON_Data_Mapping_Validation_Result.html | JSON Data Mapping Validation Result} * * @param dataMapperId the Managed File Id (or Name) of the Data Mapping configuration in File Store * @param dataFileId Managed File Id or Name of Data file in File Store * @param runtimeParameters optional additional information for the data mapping process * @throws DataMappingNotFound * @throws DataFileNotFound * @see cookbook article {@link https://help.uplandsoftware.com/objectiflune/en/olconnect-api/2025.2/Cookbook/REST_API_Reference/Data_Mapping_Service/Process_Data_Mapping_(JSON).html | Process Data Mapping (JSON)} */ validateConfigAndDataFile(dataMapperId: ArtefactIdOrName, dataFileId: ArtefactIdOrName, runtimeParameters?: NamedProperties): PromiseWithProgressEvents; /** * Submits a request to initiate a new Data Mapping operation * returns a response containing a {@link https://help.uplandsoftware.com/objectiflune/en/olconnect-api/2025.2/Cookbook/REST_API_Reference/Data_Mapping_Service/Create_Content_Set.html | JSON Data Mapping Validation Result} * * @param dataMapperId the Managed File Id (or Name) of the Data Mapping configuration in File Store * @param dataFileId Managed File Id or Name of Data file in File Store * @throws DataMappingNotFound * @throws DataFileNotFound * @see cookbook article {@link https://help.uplandsoftware.com/objectiflune/en/olconnect-api/2025.2/Cookbook/REST_API_Reference/Data_Mapping_Service/Create_Content_Set.html | Process Data Mapping (JSON)} */ createDataSetFromDataFile(dataMapperId: ArtefactIdOrName, dataFileId: ArtefactIdOrName, options: { duplex?: string | boolean; tumble?: string | boolean; runtimeParameters?: NamedProperties; }): ProgressEventsPromise; private getResultOfOperation; private requestDataSetIdFromConfigAndDataFile; private requestDataSetIdFromDataFile; }