import { edmToTs , ActionImportRequestBuilder , ActionImportParameter , transformReturnValueForEntity , transformReturnValueForEdmType , DeSerializers , DefaultDeSerializers , defaultDeSerializers } 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 [[createTestEntityById]].
 */ export interface CreateTestEntityByIdParameters < DeSerializersT extends DeSerializers > { /**
     * Id.
     */ id : number ; } param parameters returns export function createTestEntityById < DeSerializersT extends DeSerializers = DefaultDeSerializers > ( parameters , deSerializers = defaultDeSerializers as any ) { const params = { id : new ActionImportParameter ( 'id' , 'Edm.Int32' , parameters . id ) } ; return new ActionImportRequestBuilder ( '/odata/test-service' , 'createTestEntityById' , data => transformReturnValueForEntity ( data , testService ( deSerializers ) . testEntityApi ) , params , deSerializers ) ; } /**
 * Type of the parameters to be passed to [[createTestEntityByIdReturnId]].
 */ export interface CreateTestEntityByIdReturnIdParameters < DeSerializersT extends DeSerializers > { /**
     * Id.
     */ id : number ; } param parameters returns export function createTestEntityByIdReturnId < DeSerializersT extends DeSerializers = DefaultDeSerializers > ( parameters , deSerializers = defaultDeSerializers as any ) { const params = { id : new ActionImportParameter ( 'id' , 'Edm.Int32' , parameters . id ) } ; return new ActionImportRequestBuilder ( '/odata/test-service' , 'createTestEntityByIdReturnId' , data => transformReturnValueForEdmType ( data , val => edmToTs ( val . value , 'Edm.Int32' , deSerializers ) ) , params , deSerializers ) ; } export const actionImports = { createTestEntityById , createTestEntityByIdReturnId } ;