@swell/cli
Version:
Swell's command line interface/utility
16 lines (15 loc) • 1.03 kB
TypeScript
interface CreateSettingFileBody {
$schema: string;
description?: string;
fields: SettingFieldProps[];
label?: string;
}
interface SettingFieldProps {
id: string;
label: string;
type?: SettingFieldType;
}
type SettingFieldType = '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';
declare const parseFields: (fields: string[]) => SettingFieldProps[];
declare const toSettingLabel: (value: string) => string;
export { CreateSettingFileBody, parseFields, toSettingLabel };