import { EndpointResponseCallback, NamedProperties, NameValueList, RestResponseStreamBody, UnrecognisedServerError } from "@objectif-lune/core"; import { ArtefactId, OLConnectRestClientContract } from "../../api/interfaces/connect-types"; import { DownloadResult } from "../../api/interfaces/connect-types/filestore"; import { PropertiesWithIdList } from "../../api/interfaces/connect-types/properties"; import { IdentifierList } from "../../rest/rest-related-types"; import { ConnectServerErrorHandler, ConnectServerErrorMessage } from "../rest-related-types"; export declare abstract class ConnectService { protected readonly olConnectRestClient: OLConnectRestClientContract; static readonly SERVICES_BASE_PATH = "/rest/serverengine"; static readonly SERVICES_WORKFLOW_PATH: string; static createConnectError(errorMessage: ConnectServerErrorMessage): UnrecognisedServerError; static fetchIdentifiers(identifierList: IdentifierList): number[]; static flatten(nameValueList: NameValueList): Record; static NamedPropertiesToNameValueList(jsonNamedProperties: Record): NameValueList; static propertiesWithIdListToNameValueList(propertiesList: PropertiesWithIdList): { id: number; properties: NameValueList; }[]; constructor(olConnectRestClient: OLConnectRestClientContract); protected static readonly ResolveBodyAsUndefined: EndpointResponseCallback; protected static readonly ResolveBodyAsString: EndpointResponseCallback; protected static readonly ResolveBodyAsArtefactId: EndpointResponseCallback; protected static readonly ResolveBodyAsBoolean: EndpointResponseCallback; protected static readonly ResolveBodyAsJson: EndpointResponseCallback; protected static readonly ResolveDownloadResult: EndpointResponseCallback; protected static readonly RejectBadRequest: EndpointResponseCallback; protected static readonly RejectNotFound: EndpointResponseCallback; protected static createServerErrorHandler(...connectServerErrorHandlers: ConnectServerErrorHandler[]): EndpointResponseCallback; protected deleteArtefact(label: string, urlPath: string, pathParameters?: Array, queryParameters?: NamedProperties): Promise; protected fetchJSON(label: string, urlPath: string, pathParameters?: Array, queryParameters?: NamedProperties, notFoundHandler?: EndpointResponseCallback): Promise; protected fetchIdentifiers(label: string, urlPath: string, pathParameters?: Array, queryParameters?: NamedProperties): Promise; protected createContent(label: string, urlPath: string, payload: NamedProperties, pathParameters?: Array, queryParameters?: NamedProperties): Promise; protected postJSON(label: string, urlPath: string, payload: unknown, pathParameters?: Array, queryParameters?: NamedProperties): Promise; protected postAndRetrieveJSON(label: string, urlPath: string, payload: NamedProperties, pathParameters?: Array, queryParameters?: NamedProperties, badRequestHandler?: EndpointResponseCallback): Promise; protected updateFromJSON(label: string, urlPath: string, payload: unknown, pathParameters?: Array, queryParameters?: NamedProperties): Promise; protected fetchProperties(label: string, urlPath: string, pathParameters: Array, notFoundHandler?: EndpointResponseCallback): Promise>; protected updateProperties(artefactId: ArtefactId, properties: Record, label: string, urlPath: string, pathParameters: Array): Promise; protected updateMultipleProperties(properties: PropertiesWithIdList, label: string, urlPath: string, pathParameters: Array): Promise; /** * Check OL Connect version. * * @since 0.9.15 * * @param {string} minimumYear * @param {string} minimumVersion * @returns {Promise} either return true for valid or current version */ IsMinConnectVersion(minimumYear: number, minimumVersion: number): Promise; protected EnsureMinConnectVersion(feature: string, minimumYear: number, minimumVersion: number): Promise; }