UNPKG

@chevre/domain

Version:

Chevre Domain Library for Node.js

45 lines (44 loc) 2.6 kB
import type { Connection, Document } from 'mongoose'; import * as factory from '../factory'; /** * 返品ポリシーリポジトリ */ export declare class MerchantReturnPolicyRepo { private readonly merchantReturnPolicyModel; constructor(connection: Connection); static CREATE_MONGO_CONDITIONS(params: factory.unitPriceOffer.IOfferMerchantReturnPolicySearchConditions): any[]; save(params: factory.unitPriceOffer.IOfferMerchantReturnPolicy): Promise<any>; findById(params: { id: string; }): Promise<factory.unitPriceOffer.IOfferMerchantReturnPolicy>; search(params: factory.unitPriceOffer.IOfferMerchantReturnPolicySearchConditions): Promise<factory.unitPriceOffer.IOfferMerchantReturnPolicy[]>; deleteById(params: { id: string; }): Promise<void>; deleteByProject(params: { project: { id: string; }; }): Promise<void>; getCursor(conditions: any, projection: any): import("mongoose").Cursor<Document<unknown, {}, factory.unitPriceOffer.IOfferMerchantReturnPolicy> & Pick<factory.merchantReturnPolicy.IMerchantReturnPolicy, "typeOf" | "customerRemorseReturnFees" | "customerRemorseReturnFeesMovieTicket"> & { customerRemorseReturnFees: factory.merchantReturnPolicy.ICustomerRemorseReturnFees; customerRemorseReturnFeesMovieTicket: factory.merchantReturnPolicy.ICustomerRemorseReturnFeesMovieTicket; project: Pick<factory.project.IProject, "id" | "typeOf">; additionalProperty?: import("@chevre/factory/lib/propertyValue").IPropertyValue<string>[]; id?: string; identifier: string; name?: import("@chevre/factory/lib/multilingualString").IMultilingualString; } & { _id: import("mongoose").Types.ObjectId; }, import("mongoose").QueryOptions<Document<unknown, {}, factory.unitPriceOffer.IOfferMerchantReturnPolicy> & Pick<factory.merchantReturnPolicy.IMerchantReturnPolicy, "typeOf" | "customerRemorseReturnFees" | "customerRemorseReturnFeesMovieTicket"> & { customerRemorseReturnFees: factory.merchantReturnPolicy.ICustomerRemorseReturnFees; customerRemorseReturnFeesMovieTicket: factory.merchantReturnPolicy.ICustomerRemorseReturnFeesMovieTicket; project: Pick<factory.project.IProject, "id" | "typeOf">; additionalProperty?: import("@chevre/factory/lib/propertyValue").IPropertyValue<string>[]; id?: string; identifier: string; name?: import("@chevre/factory/lib/multilingualString").IMultilingualString; } & { _id: import("mongoose").Types.ObjectId; }>>; }