import type { Connection, FilterQuery } from 'mongoose'; import { factory } from '../factory'; import { IDocType } from './mongoose/schemas/paymentServiceChannel'; export type ISavingChannel = Pick & { id?: never; }; type IServiceChannelWithId = factory.serviceChannel.IServiceChannel & { id: string; }; type IKeyOfProjection = keyof IDocType; /** * 決済サービスチャネル管理リポジトリ */ export declare class AdminPaymentServiceChannelRepo { private readonly paymentServiceChannelModel; constructor(connection: Connection); static CREATE_MONGO_CONDITIONS(params: factory.serviceChannel.ISearchConditions): FilterQuery[]; /** * 決済サービスチャネル保管 * 編集の場合、credentialsのみ変更可能 */ savePaymentServiceChannel(params: { id?: string; attributes: ISavingChannel; }): Promise<{ id: string; }>; findPaymentServiceChannels(conditions: factory.serviceChannel.ISearchConditions, inclusion: IKeyOfProjection[]): Promise; deletePaymentServiceChannelById(params: { id: string; project: { id: string; }; }): Promise; unsetUnnecessaryFields(params: { filter: any; $unset: any; }): Promise; } export {};