import type { Connection, FilterQuery } from 'mongoose'; import { IDocType } from './mongoose/schemas/emailMessages'; import { factory } from '../factory'; export type IEmailMessage = IDocType & { id: string; }; export interface ISearchConditions { limit?: number; page?: number; sort?: { identifier?: factory.sortType; }; project?: { id?: { $eq?: string; }; }; id?: { $eq?: string; }; identifier?: { $eq?: string; }; about?: { identifier?: { /** * 現時点でOnEventStatusChangedしかサポートしていない * 2026-06-18 */ $eq?: factory.creativeWork.message.email.AboutIdentifier.OnEventStatusChanged; }; }; } type IKeyOfProjection = keyof IDocType; /** * Eメールメッセージリポジトリ */ export declare class EmailMessageRepo { private readonly emailMessageModel; constructor(connection: Connection); static CREATE_MONGO_CONDITIONS(params: ISearchConditions): FilterQuery[]; save(params: IEmailMessage): Promise; findEmailMessages(params: ISearchConditions, inclusion: IKeyOfProjection[]): Promise; deleteById(params: { id: string; }): Promise; } export {};