mirror of
https://github.com/johndoe6345789/metabuilder.git
synced 2026-04-24 13:54:57 +00:00
51 lines
913 B
TypeScript
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
|
|
}
|