import type { Connection, FilterQuery } from 'mongoose'; import { IDocType } from './mongoose/schemas/project'; import { factory } from '../factory'; type IKeyOfProjection = keyof factory.project.IProject; /** * プロジェクトリポジトリ * makesOfferについてはsee ProjectMakesOfferRepo */ export declare class ProjectRepo { private readonly projectModel; constructor(connection: Connection); static CREATE_MONGO_CONDITIONS(params: factory.project.ISearchConditions): FilterQuery[]; findById(params: { id: string; inclusion: IKeyOfProjection[]; }): Promise; findAlternateNameById(params: { id: string; }): Promise>; /** * プロジェクト検索 */ projectFields(conditions: factory.project.ISearchConditions, inclusion: IKeyOfProjection[]): Promise; addProjectById(params: Pick): Promise>; updateProjectById(params: { id: string; $set: { alternateName?: string; logo?: string; hasMerchantReturnPolicy?: Pick; name?: string; settings?: { sendEmailMessage?: factory.project.ISendEmailMessageSettings; sendgridApiKey?: string; }; }; $unset: Record; }): Promise; updateMakesOfferById(params: { id: string; makesOffer: factory.project.IMakesOffer[]; }): Promise; deleteById(params: { id: string; }): Promise; getCursor(conditions: FilterQuery, projection: any): import("mongoose").Cursor, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Pick & { _id: string; makesOffer?: factory.project.IMakesOffer[]; } & Required<{ _id: string; }> & { __v: number; }, import("mongoose").QueryOptions, (import("mongoose").Document, IDocType, import("./mongoose/virtuals").IVirtuals, {}> & Pick & { _id: string; makesOffer?: factory.project.IMakesOffer[]; } & Required<{ _id: string; }> & { __v: number; }) | null>; unsetUnnecessaryFields(params: { filter: any; $unset: any; }): Promise; } export {};