UNPKG

tanam

Version:

Pluggable CMS for Firebase

38 lines (37 loc) 1.05 kB
export declare type DocumentFieldFormElement = 'input-text' | 'input-number' | 'textbox-plain' | 'textbox-rich' | 'image' | 'document-reference' | 'date' | 'date-time' | 'slide-toggle'; export declare type DocumentFieldValidator = 'required'; export interface DocumentField { key: string; title: string; isTitle?: boolean; type: DocumentFieldFormElement; documentType?: string; defaultValue?: any; validators: DocumentFieldValidator[]; } export interface DocumentCount { published: number; unpublished: number; scheduled: number; } export interface DocumentType { id: string; title: string; slug: string; standalone: boolean; documentStatusDefault: 'published' | 'unpublished'; description: string; icon: string; fields: DocumentField[]; documentCount: DocumentCount; updated: any; created: any; } export interface DocumentTypeQueryOptions { limit?: number; orderBy?: { field: string; sortOrder: 'asc' | 'desc'; }; startAfter?: any; }