import { ODataUri , FunctionImportParameter , FunctionImportParameters , ODataFunctionImportRequestConfig as ODataFunctionImportRequestConfigBase , RequestMethodType } from '@sap-cloud-sdk/odata-common/internal' ; import { DeSerializers } from '../de-serializers' ; internal export class ODataFunctionImportRequestConfig < DeSerializersT extends DeSerializers , ParametersT > extends ODataFunctionImportRequestConfigBase < DeSerializersT , ParametersT > { param method param defaultServicePath param functionImportName param parameters param oDataUri constructor ( method , defaultServicePath , functionImportName , parameters , oDataUri ) { super ( method , defaultServicePath , functionImportName , parameters , oDataUri ) ; } resourcePath ( ) { return `${ this . functionImportName }(${ Object . values ( this . parameters ) . map ( ( parameter ) => `${ parameter . originalName }=${ this . oDataUri . convertToUriFormat ( parameter . value , parameter . edmType ) }` ) . join ( ',' ) })` ; } queryParameters ( ) { return this . prependDollarToQueryParameters ( { format : 'json' } ) ; } }