UNPKG

mongoose-management

Version:
24 lines (23 loc) 1.32 kB
import Prompts from '../../prompts'; import CollectionDataset from '../dataset/collection'; import ColumnDataset from '../dataset/column'; import * as main from './columnMain'; export declare type answersType = { collection?: CollectionDataset; column?: ColumnDataset; }; export declare const call: (prompts: Prompts, collection: CollectionDataset, answersMain: main.answersType, answersSubType: ("string" | "number" | "boolean" | "decimal" | "buffer" | "arrayType" | "date" | "objectId" | "mixed")[], column?: ColumnDataset | undefined) => Promise<answersType>; export declare const getQuestions: (collection: CollectionDataset, column?: ColumnDataset | undefined) => readonly any[]; export declare const evaluation: (answers: answersType) => (column: ColumnDataset) => ColumnDataset; export declare const getCollectionWithNestedSchemas: (collection: CollectionDataset) => ColumnDataset[]; export declare const whenColumn: ({ collection }: answersType) => boolean; export declare const choicesColumn: ({ collection }: answersType) => ({ name: string; short: string; value: ColumnDataset; } | { name: string; short: string; value: undefined; })[]; export declare const defaultColumn: (prevPopulate?: ColumnDataset | CollectionDataset | undefined) => ({ collection }: answersType) => number;