UNPKG

@brontosaurus/db

Version:
10 lines (9 loc) 754 B
import { ObjectID } from "bson"; import { IResetConfig } from "../interface/reset"; import { IResetModel } from "../model/reset"; export declare const createUnsavedReset: (config: IResetConfig) => IResetModel; export declare const getResetById: (resetId: ObjectID | string) => Promise<IResetModel | null>; export declare const getResetsByAccount: (account: ObjectID | string) => Promise<IResetModel[]>; export declare const getResetsByAccountAndPage: (account: ObjectID | string, limit: number, page: number) => Promise<IResetModel[]>; export declare const getResetCountByAccount: (account: ObjectID | string) => Promise<number>; export declare const getSelectedAccountResetPages: (account: ObjectID | string, limit: number) => Promise<number>;