import { DocumentType } from "./document"; export type Collection = { id: string; url: string; urlId: string; name: string | null; description: string | null; sort: CollectionSort; icon: string | null; index: string | null; color: string; permission: string | null; sharing: boolean; createdAt: Date; updatedAt: Date; deletedAt: Date | null; createdById: string; documents: NavigationNode[]; isPrivate: boolean; documentsCount?: number; }; export type CollectionSort = { field: string; direction: "asc" | "desc"; }; export type NavigationNode = { id: string; title: string; url: string; children: NavigationNode[]; childrenCount: number; o?: string | null; isDraft?: boolean; type?: DocumentType; icon?: string | null; parentDocumentId?: string; };