@cfxlabsinc/b2b-services
    Preparing search index...

    One row of a document index: a file, or a folder that holds them.

    type DocumentNode = {
        contentType: string | null;
        createdAt: Date;
        folder: string;
        id: string;
        key: string | null;
        kind: DocumentKind;
        name: string;
        size: number | null;
        status: "ACTIVE" | "DELETED";
        type: DocumentType;
        updatedAt: Date;
        updatedByUserId: string | null;
        updatedByUserName: string | null;
    }
    Index
    contentType: string | null

    Null for a folder, and for a file written without one.

    createdAt: Date
    folder: string

    The parent folder's path, segments joined with /; "" is the root.

    id: string

    The document's public id: bdoc_…, cdoc_….

    key: string | null

    The object's S3 key; null for a folder.

    kind: DocumentKind
    name: string

    The file's or folder's own path segment.

    size: number | null

    In bytes; null for a folder.

    status: "ACTIVE" | "DELETED"
    type: DocumentType
    updatedAt: Date
    updatedByUserId: string | null

    The dashboard user's public id; null when the last writer was not one.

    updatedByUserName: string | null