Files
metabuilder/interfaces/templates.ts
2026-03-09 22:30:41 +00:00

51 lines
913 B
TypeScript

/**
* Template domain interfaces
* Used by template cards, lists, and detail pages
*/
export interface Template {
id: string
name: string
description: string
longDescription?: string
icon: string
color: string
category: TemplateCategory
difficulty: 'beginner' | 'intermediate' | 'advanced'
tags: string[]
workflows: Array<{
id: string
name: string
description: string
}>
metadata: {
featured: boolean
rating: number
downloads: number
author: string
createdAt: string
updatedAt: string
}
}
export type TemplateCategory =
| 'automation'
| 'analytics'
| 'integration'
| 'development'
| 'marketing'
| string
export interface TemplateStats {
totalTemplates: number
totalDownloads: number
averageRating: number
}
export interface TemplateCategoryInfo {
id: TemplateCategory
name: string
icon: string
templateCount: number
}