@chevre/domain 21.18.0-alpha.5 → 21.18.0-alpha.6

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.
@@ -121,6 +121,7 @@ export declare class MongoRepository {
121
121
  deleteByOrderNumber(params: {
122
122
  orderNumber: string;
123
123
  }): Promise<void>;
124
+ count(params: factory.order.ISearchConditions): Promise<number>;
124
125
  /**
125
126
  * 注文を検索する
126
127
  */
@@ -923,12 +923,14 @@ class MongoRepository {
923
923
  .exec();
924
924
  });
925
925
  }
926
- // public async count(params: factory.order.ISearchConditions): Promise<number> {
927
- // const conditions = MongoRepository.CREATE_MONGO_CONDITIONS(params);
928
- // return this.orderModel.countDocuments((conditions.length > 0) ? { $and: conditions } : {})
929
- // .setOptions({ maxTimeMS: MONGO_MAX_TIME_MS })
930
- // .exec();
931
- // }
926
+ count(params) {
927
+ return __awaiter(this, void 0, void 0, function* () {
928
+ const conditions = MongoRepository.CREATE_MONGO_CONDITIONS(params);
929
+ return this.orderModel.countDocuments((conditions.length > 0) ? { $and: conditions } : {})
930
+ .setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
931
+ .exec();
932
+ });
933
+ }
932
934
  /**
933
935
  * 注文を検索する
934
936
  */
package/package.json CHANGED
@@ -115,5 +115,5 @@
115
115
  "postversion": "git push origin --tags",
116
116
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
117
117
  },
118
- "version": "21.18.0-alpha.5"
118
+ "version": "21.18.0-alpha.6"
119
119
  }