@sinch/mcp
Version:
Sinch MCP server
14 lines • 644 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.formatListAllTemplatesResponse = void 0;
const formatListAllTemplatesResponse = (data) => {
return (data.templates ?? []).map((template) => ({
id: template.id,
description: template.description,
version: template.version,
defaultTranslation: template.default_translation,
translations: template.translations?.map((t) => `${t.language_code} (version "${t.version}")`),
}));
};
exports.formatListAllTemplatesResponse = formatListAllTemplatesResponse;
//# sourceMappingURL=format-list-all-templates-response.js.map