import { saveInterface } from '../service/ConvertSchemaToInterface'; import { getAllGlueSchemas } from '../service/SchemasService'; import { SchemaResponse } from '../models/schemas/types'; import { updateImportFile } from '../service/GenerateImportFile'; export const glueSchemaController = async () => { const glueSchemas = await getAllGlueSchemas(); glueSchemas.map((sc: SchemaResponse) => { saveInterface(sc.name, sc.definition); }); updateImportFile(glueSchemas); };