import {ConnectOptions, Schema, SchemaOptions,PopulateOptions} from "mongoose"; export interface IBaseCrudItem { _id?: string, isDeleted?: boolean, isActive?: boolean, updated?: number, created?: number } export type CrudItemParams = { [J in keyof Partial | string]: any }; export interface GetAllParams { page?: number, pageSize?: number, sort?: string | string | CrudItemParams, filter?: string | CrudItemParams, fields?: string | CrudItemParams, lean?: boolean populate?: string | PopulateOptions | PopulateOptions[]; } export interface IOptions { connection: string, connectionId?: string useConnectionId?: string id?: string, exitOnDisconnect?: boolean config?: ConnectOptions }