UNPKG

@swell/cli

Version:

Swell's command line interface/utility

24 lines (23 loc) 1.22 kB
interface CreateContentFileBody { collection: string; description?: string; fields?: ContentFieldProps[]; label?: string; views?: ContentViewProps[]; } interface ContentViewProps { fields: []; id: ContentView; nav?: Record<string, any>; tabs: []; } type ContentView = 'edit' | 'list' | 'new'; type ContentType = 'asset' | 'basic_html' | 'boolean' | 'category_lookup' | 'checkbox' | 'checkboxes' | 'collection' | 'color' | 'color_scheme' | 'color_scheme_group' | 'currency' | 'customer_lookup' | 'date' | 'datetime' | 'document' | 'dropdown' | 'email' | 'field_group' | 'font_family' | 'generic_lookup' | 'html' | 'icon' | 'image' | 'long_text' | 'lookup' | 'markdown' | 'number' | 'percent' | 'phone' | 'product_lookup' | 'radio' | 'rich_html' | 'rich_text' | 'select' | 'short_text' | 'slider' | 'slug' | 'tags' | 'text' | 'textarea' | 'time' | 'toggle' | 'url' | 'variant_lookup' | 'video'; interface ContentFieldProps { id: string; label: string; type?: ContentType; } declare const parseViews: (views: string[]) => ContentViewProps[]; declare const parseFields: (fields: string[]) => ContentFieldProps[]; export { CreateContentFileBody, parseFields, parseViews };