(specRoot: string)
| 47 | } |
| 48 | |
| 49 | export async function writeFilesToServiceSpecFolder(specRoot: string) { |
| 50 | await cleanUp(specRoot); |
| 51 | const contentCloud = await fetchApiContent('API_BUSINESS_PARTNER'); |
| 52 | await writeServiceDefintion( |
| 53 | specRoot, |
| 54 | contentCloud, |
| 55 | 'API_BUSINESS_PARTNER.edmx' |
| 56 | ); |
| 57 | const contentOp = await fetchApiContent('OP_API_BUSINESS_PARTNER_SRV'); |
| 58 | await writeServiceDefintion( |
| 59 | specRoot, |
| 60 | contentOp, |
| 61 | 'OP_API_BUSINESS_PARTNER_SRV.edmx' |
| 62 | ); |
| 63 | await createServiceMapping(specRoot); |
| 64 | } |
| 65 | |
| 66 | async function cleanUp(specRoot: string) { |
| 67 | await rm(specRoot, { recursive: true }); |
no test coverage detected