UNPKG

@chevre/domain

Version:

Chevre Domain Library for Node.js

21 lines (20 loc) 860 B
import { Connection } from 'mongoose'; import * as factory from '../factory'; import AccountTitleModel from './mongoose/model/accountTitle'; /** * Mongoリポジトリー */ export declare class MongoRepository { readonly accountTitleModel: typeof AccountTitleModel; constructor(connection: Connection); static CREATE_MONGO_CONDITIONS(params: factory.accountTitle.ISearchConditions): any[]; save(params: factory.accountTitle.IAccountTitle): Promise<void>; findMovieByIdentifier(params: { identifier: string; }): Promise<factory.accountTitle.IAccountTitle>; count(params: factory.accountTitle.ISearchConditions): Promise<number>; search(params: factory.accountTitle.ISearchConditions): Promise<factory.accountTitle.IAccountTitle[]>; deleteByIdentifier(params: { identifier: string; }): Promise<void>; }