import { edmToTs , FunctionImportRequestBuilder , DeSerializers , transformReturnValueForEdmType , transformReturnValueForEntityList , transformReturnValueForEntity , transformReturnValueForEdmTypeList , DefaultDeSerializers , defaultDeSerializers , FunctionImportParameter } from '@sap-cloud-sdk/odata-v4' ; import { testService } from './service' ; import { TestEntity } from './TestEntity' ; import { TestEntityApi } from './TestEntityApi' ; /**
 * Type of the parameters to be passed to [[concatStrings]].
 */ export interface ConcatStringsParameters < DeSerializersT extends DeSerializers > { /**
     * Str 1.
     */ str1 : string ; /**
     * Str 2.
     */ str2 : string ; } param parameters returns export function concatStrings < DeSerializersT extends DeSerializers = DefaultDeSerializers > ( parameters , deSerializers = defaultDeSerializers as any ) { const params = { str1 : new FunctionImportParameter ( 'Str1' , 'Edm.String' , parameters . str1 ) , str2 : new FunctionImportParameter ( 'Str2' , 'Edm.String' , parameters . str2 ) } ; return new FunctionImportRequestBuilder ( '/odata/test-service' , 'concatStrings' , data => transformReturnValueForEdmType ( data , val => edmToTs ( val . value , 'Edm.String' , deSerializers ) ) , params , deSerializers ) ; } /**
 * Type of the parameters to be passed to [[getAll]].
 */ export interface GetAllParameters < DeSerializersT extends DeSerializers > { } param parameters returns export function getAll < DeSerializersT extends DeSerializers = DefaultDeSerializers > ( parameters , deSerializers = defaultDeSerializers as any ) { const params = { } ; return new FunctionImportRequestBuilder ( '/odata/test-service' , 'getAll' , data => transformReturnValueForEntityList ( data , testService ( deSerializers ) . testEntityApi ) , params , deSerializers ) ; } /**
 * Type of the parameters to be passed to [[getByKey]].
 */ export interface GetByKeyParameters < DeSerializersT extends DeSerializers > { /**
     * Param.
     */ param : number ; } param parameters returns export function getByKey < DeSerializersT extends DeSerializers = DefaultDeSerializers > ( parameters , deSerializers = defaultDeSerializers as any ) { const params = { param : new FunctionImportParameter ( 'param' , 'Edm.Int32' , parameters . param ) } ; return new FunctionImportRequestBuilder ( '/odata/test-service' , 'getByKey' , data => transformReturnValueForEntity ( data , testService ( deSerializers ) . testEntityApi ) , params , deSerializers ) ; } /**
 * Type of the parameters to be passed to [[returnCollection]].
 */ export interface ReturnCollectionParameters < DeSerializersT extends DeSerializers > { /**
     * Param.
     */ param : number ; } param parameters returns export function returnCollection < DeSerializersT extends DeSerializers = DefaultDeSerializers > ( parameters , deSerializers = defaultDeSerializers as any ) { const params = { param : new FunctionImportParameter ( 'param' , 'Edm.Int32' , parameters . param ) } ; return new FunctionImportRequestBuilder ( '/odata/test-service' , 'returnCollection' , data => transformReturnValueForEdmTypeList ( data , val => edmToTs ( val , 'Edm.Int32' , deSerializers ) ) , params , deSerializers ) ; } /**
 * Type of the parameters to be passed to [[returnInt]].
 */ export interface ReturnIntParameters < DeSerializersT extends DeSerializers > { /**
     * Param.
     */ param : number ; } param parameters returns export function returnInt < DeSerializersT extends DeSerializers = DefaultDeSerializers > ( parameters , deSerializers = defaultDeSerializers as any ) { const params = { param : new FunctionImportParameter ( 'param' , 'Edm.Int32' , parameters . param ) } ; return new FunctionImportRequestBuilder ( '/odata/test-service' , 'returnInt' , data => transformReturnValueForEdmType ( data , val => edmToTs ( val . value , 'Edm.Int32' , deSerializers ) ) , params , deSerializers ) ; } /**
 * Type of the parameters to be passed to [[returnSapCloudSdk]].
 */ export interface ReturnSapCloudSdkParameters < DeSerializersT extends DeSerializers > { } param parameters returns export function returnSapCloudSdk < DeSerializersT extends DeSerializers = DefaultDeSerializers > ( parameters , deSerializers = defaultDeSerializers as any ) { const params = { } ; return new FunctionImportRequestBuilder ( '/odata/test-service' , 'returnSapCloudSdk' , data => transformReturnValueForEdmType ( data , val => edmToTs ( val . value , 'Edm.String' , deSerializers ) ) , params , deSerializers ) ; } export const functionImports = { concatStrings , getAll , getByKey , returnCollection , returnInt , returnSapCloudSdk } ;