UNPKG

@sap-ux/system-access

Version:

Reusable module allowing to access systems using the store or prompts.

28 lines 1.29 kB
import type { Logger } from '@sap-ux/logger'; import type { AbapTarget, DestinationAbapTarget, UrlAbapTarget } from '../types'; import type { AbapServiceProvider, AxiosRequestConfig, ProviderConfiguration } from '@sap-ux/axios-extension'; /** * Check if it is a url target. * * @param target target configuration * @returns true if it is a UrlAbapTarget */ export declare function isUrlTarget(target: AbapTarget): target is UrlAbapTarget; /** * Check if it is a destination target. * * @param target target configuration * @returns true if it is a DestinationAbapTarget */ export declare function isDestinationTarget(target: AbapTarget): target is DestinationAbapTarget; /** * Create an instance of an ABAP service provider connected to the given target configuration. * * @param target - target configuration * @param requestOptions - additional AxiosRequestOptions * @param prompt - prompt the user for missing information * @param logger - optional reference to the logger instance * @returns service instance */ export declare function createAbapServiceProvider(target: AbapTarget, requestOptions: (AxiosRequestConfig & Partial<ProviderConfiguration>) | undefined, prompt: boolean, logger: Logger): Promise<AbapServiceProvider>; //# sourceMappingURL=connect.d.ts.map