@chevre/domain 23.0.0-alpha.22 → 23.0.0-alpha.23

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,17 +32,21 @@ class IssuerRepo {
32
32
  this.issuerModel = connection.model(issuer_1.modelName, (0, issuer_1.createSchema)());
33
33
  }
34
34
  static CREATE_MONGO_CONDITIONS(params) {
35
- var _a, _b, _c, _d;
35
+ var _a, _b, _c, _d, _e;
36
36
  const andConditions = [];
37
37
  const projectIdEq = (_b = (_a = params.project) === null || _a === void 0 ? void 0 : _a.id) === null || _b === void 0 ? void 0 : _b.$eq;
38
38
  if (typeof projectIdEq === 'string') {
39
39
  andConditions.push({ 'project.id': { $eq: projectIdEq } });
40
40
  }
41
- const identifiereEq = (_c = params.identifier) === null || _c === void 0 ? void 0 : _c.$eq;
42
- if (typeof identifiereEq === 'string') {
43
- andConditions.push({ identifier: { $eq: identifiereEq } });
41
+ const identifierEq = (_c = params.identifier) === null || _c === void 0 ? void 0 : _c.$eq;
42
+ if (typeof identifierEq === 'string') {
43
+ andConditions.push({ identifier: { $eq: identifierEq } });
44
44
  }
45
- const idEq = (_d = params.id) === null || _d === void 0 ? void 0 : _d.$eq;
45
+ const identifierIn = (_d = params.identifier) === null || _d === void 0 ? void 0 : _d.$in;
46
+ if (Array.isArray(identifierIn)) {
47
+ andConditions.push({ identifier: { $in: identifierIn } });
48
+ }
49
+ const idEq = (_e = params.id) === null || _e === void 0 ? void 0 : _e.$eq;
46
50
  if (typeof idEq === 'string') {
47
51
  andConditions.push({ _id: { $eq: idEq } });
48
52
  }
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": "5.2.0-alpha.0",
14
+ "@chevre/factory": "5.2.0-alpha.1",
15
15
  "@cinerino/sdk": "12.6.0-alpha.5",
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": "23.0.0-alpha.22"
118
+ "version": "23.0.0-alpha.23"
119
119
  }