UNPKG

@sap/subaccount-destination-service-provider

Version:

Provide service consumption of SAP subaccount services

34 lines (33 loc) 2.25 kB
import { AbapCatalogServiceUrl, EncodingMode, ProviderUtils, ProxyType, RawDestination, ServiceCommon, DataType, ProviderDestination, Authentication, Filter } from "@sap/service-provider-apis"; export declare const API_LIST_DESTINATION_PATH = "/api/listDestinations"; export declare const ODATA_V2_CATALOG_SERVICES = "/sap/opu/odata/IWFND/CATALOGSERVICE;v=2/"; export declare const V2_SERVICES_PATH = "ServiceCollection"; export declare const V2_RECOMMENDED_SERVICES_PATH = "RecommendedServiceCollection"; export declare const ODATA_V4_CATALOG_SERVICES = "/sap/opu/odata4/iwfnd/config/default/iwfnd/catalog/0002/"; export declare const V4_SERVICES_PATH = "ServiceGroups?$expand=DefaultSystem($expand=Services)"; export declare const V4_RECOMMENDED_SERVICES_PATH = "ServiceGroups?$expand=DefaultSystem($expand=RecommendedServices)"; export declare const ANNOTATIONS_SUFFIX = "/Annotations"; export declare const APPLICATION_XML_HEADER = "application/xml"; export declare enum UsageType { CATALOG_USAGE = "odata_abap", SERVICE_HOST_USAGE = "odata_gen", FULL_URL = "full_url" } export declare enum SupportedFioriSystemType { ABAP_ON_PREM = "OnPrem" } export declare enum SupportedFioriConnectionType { ABAP_CATALOG = "abap_catalog", GENERIC_HOST = "generic_host", ODATA_SERVICE = "odata_service" } export declare const fioriSystemUsageMap: Map<SupportedFioriSystemType, UsageType>; export declare const fioriConnectionUsageMap: Map<SupportedFioriConnectionType, UsageType>; export declare const fioriAuthenticationTypeMap: Map<string, string>; export declare const SubaccountAbapCatalogServiceUrl: AbapCatalogServiceUrl; export declare const SubaccountProviderUtils: ProviderUtils; export declare function getSystemType(destinationConfiguration: RawDestination | ProviderDestination): DataType; export declare function getProxyType(destinationProxyType: string): ProxyType; export declare function buildServiceCommonResponse(encoding: EncodingMode, responseBody: string): ServiceCommon; export declare function filterDestination(destinationConfiguration: RawDestination | ProviderDestination, filter?: Filter): boolean; export declare function getCredentialsHeader(credentials?: Authentication): Record<string, string>;