@chevre/domain 22.14.0-alpha.1 → 22.14.0-alpha.2

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.
@@ -35,7 +35,7 @@ class NoteRepo {
35
35
  this.noteModel = connection.model(note_1.modelName, (0, note_1.createSchema)());
36
36
  }
37
37
  static CREATE_MONGO_CONDITIONS(params) {
38
- var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q;
38
+ var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s;
39
39
  const andConditions = [];
40
40
  const idIn = (_a = params.id) === null || _a === void 0 ? void 0 : _a.$in;
41
41
  if (Array.isArray(idIn)) {
@@ -65,11 +65,15 @@ class NoteRepo {
65
65
  if (Array.isArray(aboutOrderNumberIn)) {
66
66
  andConditions.push({ 'about.orderNumber': { $exists: true, $in: aboutOrderNumberIn } });
67
67
  }
68
- const identifierEq = (_p = params.identifier) === null || _p === void 0 ? void 0 : _p.$eq;
68
+ const aboutTypeOfEq = (_q = (_p = params.about) === null || _p === void 0 ? void 0 : _p.typeOf) === null || _q === void 0 ? void 0 : _q.$eq;
69
+ if (typeof aboutTypeOfEq === 'string') {
70
+ andConditions.push({ 'about.typeOf': { $eq: aboutTypeOfEq } });
71
+ }
72
+ const identifierEq = (_r = params.identifier) === null || _r === void 0 ? void 0 : _r.$eq;
69
73
  if (typeof identifierEq === 'string') {
70
74
  andConditions.push({ identifier: { $eq: identifierEq } });
71
75
  }
72
- const identifierIn = (_q = params.identifier) === null || _q === void 0 ? void 0 : _q.$in;
76
+ const identifierIn = (_s = params.identifier) === null || _s === void 0 ? void 0 : _s.$in;
73
77
  if (Array.isArray(identifierIn)) {
74
78
  andConditions.push({ identifier: { $in: identifierIn } });
75
79
  }
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.1",
14
+ "@chevre/factory": "4.399.0-alpha.2",
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.1"
118
+ "version": "22.14.0-alpha.2"
119
119
  }