import { AnyExpression, Connection, Document, FilterQuery, PipelineStage, mongo } from 'mongoose'; import { factory } from '../factory'; import { IDocType as IAggregateOfferDocType } from './mongoose/schemas/aggregateOffer'; type IMatchStage = PipelineStage.Match; type KeyOfUnitPriceOffer = keyof factory.unitPriceOffer.IUnitPriceOffer; type IProjection = Partial>; /** * 集計オファーリポジトリ */ export declare class AggregateOfferRepo { private readonly aggregateOfferModel; constructor(connection: Connection); static CREATE_MATCH_STAGE(params: Omit): IMatchStage[]; static CREATE_AGGREGATE_OFFERS_PROJECTION(params: IProjection): Record; findAggregateOffers(params: factory.unitPriceOffer.ISearchConditions, projection?: IProjection): Promise[]>; pushIncludedInDataCatalog(params: { project: { id: string; }; id: { $in: string[]; }; $push: { includedInDataCatalog: { $each: { id: string; }[]; }; }; }): Promise; /** * 記載カタログからカタログを除外する */ pullIncludedInDataCatalog(params: { project: { id: string; }; id?: { $nin?: string[]; }; $pull: { includedInDataCatalog: { $elemMatch: { id: { $eq: string; }; }; }; }; }): Promise; deleteById(params: { project: { id: string; }; id: string; }): Promise; getCursor(conditions: any, projection: any): import("mongoose").Cursor, IAggregateOfferDocType, import("./mongoose/virtuals").IVirtuals, {}> & IAggregateOfferDocType & Required<{ _id: string; }> & { __v: number; }, import("mongoose").QueryOptions, (Document, IAggregateOfferDocType, import("./mongoose/virtuals").IVirtuals, {}> & IAggregateOfferDocType & Required<{ _id: string; }> & { __v: number; }) | null>; unsetUnnecessaryFields(params: { filter: FilterQuery; $unset: any; }): Promise; save(params: factory.unitPriceOffer.IUnitPriceOffer & {}): Promise<{ id: string; }>; /** * コードをキーにして冪等置換(2023-12-13~) */ upsertByIdentifier(params: Omit[], options: { /** * プロダクトタイプでfilter(2026-01-30~) */ productType: factory.product.ProductType; }): Promise<{ bulkWriteResult?: mongo.BulkWriteResult; modifiedOffers?: { id: string; }[]; }>; /** * sskts専用オファー保管 */ saveManyByIdentifier4sskts(params: { project: { id: string; }; attributes: factory.aggregateOffer.ISubOffer; upsert?: boolean; }[]): Promise; /** * プロダクトIDからアドオンを除外する */ pullAddOns(params: { project: { id: string; }; addOn: { itemOffered: { id: { $in: string[]; }; }; }; }): Promise; } export {};