import { pascalCase } from '@sap-cloud-sdk/util' ; import { ServiceNameFormatter } from '../../service-name-formatter' ; import { VdmActionImportBase } from '../../vdm-types' ; import { SwaggerPath } from '../../swagger-parser/swagger-types' ; import { actionImportDescription } from '../description-util' ; import { EdmxParameter } from '../../edmx-parser/common' ; import { EdmxActionImport } from '../../edmx-parser/v4' ; import { getActionImportParameters } from './action-function-parameters' ; internal export function transformActionImportBase ( edmxActionImport , edmxParameters , swaggerDefinition , formatter ) { const name = formatter . originalToActionImportName ( edmxActionImport . Name ) ; const actionImport = { originalName : edmxActionImport . Name , name , parametersTypeName : pascalCase ( `${ name }Parameters` ) } ; const parameters = getActionImportParameters ( edmxActionImport , edmxParameters , swaggerDefinition , formatter ) ; return { ... actionImport , parameters , description : actionImportDescription ( swaggerDefinition , actionImport . originalName ) } ; }