import { ImportDeclarationStructure , StructureKind } from 'ts-morph' ; import { odataImportDeclaration } from '../imports' ; import { VdmServiceMetadata } from '../vdm-types' ; internal export function importBatchDeclarations ( service ) { return [ odataImportDeclaration ( [ 'CreateRequestBuilder' , 'DeleteRequestBuilder' , 'DeSerializers' , 'GetAllRequestBuilder' , 'GetByKeyRequestBuilder' , 'ODataBatchRequestBuilder' , 'UpdateRequestBuilder' , 'BatchChangeSet' ] , service . oDataVersion ) , { kind : StructureKind . ImportDeclaration , moduleSpecifier : '@sap-cloud-sdk/util' , namedImports : [ 'variadicArgumentToArray' ] } , { kind : StructureKind . ImportDeclaration , moduleSpecifier : './index' , namedImports : getNamedImports ( service ) } ] ; } function getNamedImports ( service ) { return service . entities . map ( e => e . className ) ; }