(projectPath: string, schemaPath: string)
| 282 | } |
| 283 | |
| 284 | export async function generateSchemaModels(projectPath: string, schemaPath: string): Promise<void> { |
| 285 | const modelDir = path.join(projectPath, MODEL_ROOT_DIR); |
| 286 | const interfacesPath = path.join(projectPath, TYPE_ROOT_DIR, `interfaces.ts`); |
| 287 | await prepareDirPath(modelDir, true); |
| 288 | await prepareDirPath(interfacesPath, false); |
| 289 | |
| 290 | await generateJsonInterfaces(projectPath, schemaPath); |
| 291 | await generateModels(projectPath, schemaPath); |
| 292 | await generateEnums(projectPath, schemaPath); |
| 293 | } |
| 294 | |
| 295 | export function validateEntityName(name: string): string { |
| 296 | for (const reservedKey of RESERVED_KEYS) { |
no test coverage detected