@sap/subaccount-destination-service-provider
Version:
Provide service consumption of SAP subaccount services
12 lines (11 loc) • 1.09 kB
TypeScript
import { BackendSystem, AuthenticationType as FioriAuthenticationType } from "@sap-ux/store";
import { AuthenticationType, ConnProviderParams, Credentials, ProviderDestination } from "@sap/service-provider-apis";
import { ResponseType } from "axios";
export declare function mapBackendSystemToProviderDestination(system: BackendSystem): ProviderDestination;
export declare function mapFioriAuthToAuthentication(value: FioriAuthenticationType): AuthenticationType;
export declare function filterSupportedSystems(system: BackendSystem): boolean;
export declare function mapSystemTypeToUsage(systemType: string, connectionType?: string): string;
export declare function addHeaders(responseType: ResponseType, headers?: Record<string, string>): Record<string, string>;
export declare function addAuthorizationHeader(credentials: Credentials, headers?: Record<string, string>): Record<string, string>;
export declare function buildParamsAndSendRequest(connProviderParams: ConnProviderParams, url: string): Promise<void>;
export declare function joinUrl(baseUrl: URL, extraPath: string): URL;