@chevre/domain 22.14.0-alpha.24 → 22.14.0-alpha.25

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.
@@ -32,7 +32,7 @@ class ProductOfferRepo {
32
32
  this.productOfferModel = connection.model(productOffer_1.modelName, (0, productOffer_1.createSchema)());
33
33
  }
34
34
  static CREATE_MONGO_CONDITIONS(params) {
35
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l;
35
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
36
36
  const andConditions = [];
37
37
  const idEq = (_a = params.id) === null || _a === void 0 ? void 0 : _a.$eq;
38
38
  if (typeof idEq === 'string') {
@@ -54,15 +54,19 @@ class ProductOfferRepo {
54
54
  if (typeof itemOfferedIdentifierEq === 'string') {
55
55
  andConditions.push({ 'itemOffered.identifier': { $eq: itemOfferedIdentifierEq } });
56
56
  }
57
- const validForMemberTierIdentifierEq = (_j = (_h = params.validForMemberTier) === null || _h === void 0 ? void 0 : _h.identifier) === null || _j === void 0 ? void 0 : _j.$eq;
57
+ const itemOfferedIdentifierIn = (_j = (_h = params.itemOffered) === null || _h === void 0 ? void 0 : _h.identifier) === null || _j === void 0 ? void 0 : _j.$in;
58
+ if (Array.isArray(itemOfferedIdentifierIn)) {
59
+ andConditions.push({ 'itemOffered.identifier': { $in: itemOfferedIdentifierIn } });
60
+ }
61
+ const validForMemberTierIdentifierEq = (_l = (_k = params.validForMemberTier) === null || _k === void 0 ? void 0 : _k.identifier) === null || _l === void 0 ? void 0 : _l.$eq;
58
62
  if (typeof validForMemberTierIdentifierEq === 'string') {
59
63
  andConditions.push({ 'validForMemberTier.identifier': { $exists: true, $eq: validForMemberTierIdentifierEq } });
60
64
  }
61
- const validFromLte = (_k = params.validFrom) === null || _k === void 0 ? void 0 : _k.$lte;
65
+ const validFromLte = (_m = params.validFrom) === null || _m === void 0 ? void 0 : _m.$lte;
62
66
  if (validFromLte instanceof Date) {
63
67
  andConditions.push({ validFrom: { $lte: validFromLte } });
64
68
  }
65
- const validThroughGte = (_l = params.validThrough) === null || _l === void 0 ? void 0 : _l.$gte;
69
+ const validThroughGte = (_o = params.validThrough) === null || _o === void 0 ? void 0 : _o.$gte;
66
70
  if (validThroughGte instanceof Date) {
67
71
  andConditions.push({ validThrough: { $gte: validThroughGte } });
68
72
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "@aws-sdk/client-cognito-identity-provider": "3.600.0",
13
13
  "@aws-sdk/credential-providers": "3.600.0",
14
- "@chevre/factory": "4.399.0-alpha.21",
14
+ "@chevre/factory": "4.399.0-alpha.22",
15
15
  "@cinerino/sdk": "12.2.0",
16
16
  "@motionpicture/coa-service": "9.6.0",
17
17
  "@motionpicture/gmo-service": "5.4.0-alpha.1",
@@ -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": "22.14.0-alpha.24"
118
+ "version": "22.14.0-alpha.25"
119
119
  }