@chevre/domain 21.8.0-alpha.54 → 21.8.0-alpha.55
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/chevre/repo/offer.d.ts +0 -6
- package/lib/chevre/repo/offer.js +17 -15
- package/package.json +1 -1
|
@@ -82,12 +82,6 @@ export declare class MongoRepository {
|
|
|
82
82
|
*/
|
|
83
83
|
sortedOfferIds: string[];
|
|
84
84
|
}>;
|
|
85
|
-
findById(params: {
|
|
86
|
-
project: {
|
|
87
|
-
id: string;
|
|
88
|
-
};
|
|
89
|
-
id: string;
|
|
90
|
-
}): Promise<factory.unitPriceOffer.IUnitPriceOffer>;
|
|
91
85
|
findAggregateOfferById(params: {
|
|
92
86
|
project: {
|
|
93
87
|
id: string;
|
package/lib/chevre/repo/offer.js
CHANGED
|
@@ -825,21 +825,23 @@ class MongoRepository {
|
|
|
825
825
|
return { offers, sortedOfferIds };
|
|
826
826
|
});
|
|
827
827
|
}
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
842
|
-
}
|
|
828
|
+
// 不要なので廃止(2023-09-11~)
|
|
829
|
+
// public async findById(params: {
|
|
830
|
+
// project: { id: string };
|
|
831
|
+
// id: string;
|
|
832
|
+
// }): Promise<factory.unitPriceOffer.IUnitPriceOffer> {
|
|
833
|
+
// const offers = await this.search({
|
|
834
|
+
// limit: 1,
|
|
835
|
+
// page: 1,
|
|
836
|
+
// project: { id: { $eq: params.project.id } },
|
|
837
|
+
// id: { $eq: params.id }
|
|
838
|
+
// });
|
|
839
|
+
// const unitPriceOffer = offers.shift();
|
|
840
|
+
// if (unitPriceOffer === undefined) {
|
|
841
|
+
// throw new factory.errors.NotFound(factory.offerType.Offer);
|
|
842
|
+
// }
|
|
843
|
+
// return unitPriceOffer;
|
|
844
|
+
// }
|
|
843
845
|
findAggregateOfferById(params) {
|
|
844
846
|
return __awaiter(this, void 0, void 0, function* () {
|
|
845
847
|
const doc = yield this.aggregateOfferModel.findOne({
|
package/package.json
CHANGED