UNPKG

@swell/cli

Version:

Swell's command line interface/utility

23 lines (22 loc) 724 B
interface CreateModelFileBody { collection?: string; description?: string; events?: ModelEventObject; fields?: ModelFieldResponse; label?: string; } interface ModelEventObject { types?: ModelEvent[]; } interface ModelEvent { id: ModelEventID; } type ModelEventID = 'created' | 'deleted' | 'updated'; type ModelFieldResponse = Record<string, ModelFieldTypeObject>; type FieldType = 'collection' | 'currency' | 'image' | 'int' | 'link' | 'string'; interface ModelFieldTypeObject { type: FieldType; } declare const parseFields: (fields: string[]) => ModelFieldResponse; declare const parseEvents: (events: string[]) => ModelEventObject; export { CreateModelFileBody, parseEvents, parseFields };