import { Destination , DestinationFetchOptions } from '@sap-cloud-sdk/connectivity' ; import { HttpResponse } from '@sap-cloud-sdk/http-client' ; import { ODataRequestConfig } from '../request' ; import { MethodRequestBuilder } from './request-builder-base' ; typeparam internal export abstract class ActionFunctionImportRequestBuilderBase < ReturnT , RequestConfigT extends ODataRequestConfig > extends MethodRequestBuilder < RequestConfigT > { param responseTransformer param requestConfig protected constructor ( readonly responseTransformer , requestConfig ) { super ( requestConfig ) ; } param destination returns async execute ( destination ) { return this . executeRaw ( destination ) . then ( response => this . responseTransformer ( response . data ) ) ; } param destination returns async executeRaw ( destination ) { return this . build ( destination ) . then ( request => request . execute ( ) ) ; } }