@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.
@@ -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;
@@ -825,21 +825,23 @@ class MongoRepository {
825
825
  return { offers, sortedOfferIds };
826
826
  });
827
827
  }
828
- findById(params) {
829
- return __awaiter(this, void 0, void 0, function* () {
830
- const offers = yield this.search({
831
- limit: 1,
832
- page: 1,
833
- project: { id: { $eq: params.project.id } },
834
- id: { $eq: params.id }
835
- });
836
- const unitPriceOffer = offers.shift();
837
- if (unitPriceOffer === undefined) {
838
- throw new factory.errors.NotFound(factory.offerType.Offer);
839
- }
840
- return unitPriceOffer;
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
@@ -117,5 +117,5 @@
117
117
  "postversion": "git push origin --tags",
118
118
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
119
119
  },
120
- "version": "21.8.0-alpha.54"
120
+ "version": "21.8.0-alpha.55"
121
121
  }