@chevre/domain 20.2.0-alpha.50 → 20.2.0-alpha.51
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.
- package/lib/chevre/repo/creativeWork.js +13 -12
- package/package.json +3 -3
|
@@ -33,7 +33,7 @@ class MongoRepository {
|
|
|
33
33
|
}
|
|
34
34
|
// tslint:disable-next-line:max-func-body-length
|
|
35
35
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
36
|
-
var _a, _b, _c, _d, _e, _f;
|
|
36
|
+
var _a, _b, _c, _d, _e, _f, _g, _h;
|
|
37
37
|
// MongoDB検索条件
|
|
38
38
|
const andConditions = [
|
|
39
39
|
{
|
|
@@ -69,20 +69,21 @@ class MongoRepository {
|
|
|
69
69
|
if (typeof params.identifier === 'string') {
|
|
70
70
|
if (params.identifier.length > 0) {
|
|
71
71
|
andConditions.push({
|
|
72
|
-
identifier: {
|
|
73
|
-
$exists: true,
|
|
74
|
-
$regex: new RegExp(params.identifier)
|
|
75
|
-
}
|
|
72
|
+
identifier: { $regex: new RegExp(params.identifier) }
|
|
76
73
|
});
|
|
77
74
|
}
|
|
78
75
|
}
|
|
79
|
-
else
|
|
80
|
-
|
|
76
|
+
else {
|
|
77
|
+
const identifierEq = (_f = params.identifier) === null || _f === void 0 ? void 0 : _f.$eq;
|
|
78
|
+
if (typeof identifierEq === 'string') {
|
|
81
79
|
andConditions.push({
|
|
82
|
-
identifier: {
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
80
|
+
identifier: { $eq: identifierEq }
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
const identifierIn = (_g = params.identifier) === null || _g === void 0 ? void 0 : _g.$in;
|
|
84
|
+
if (Array.isArray(identifierIn)) {
|
|
85
|
+
andConditions.push({
|
|
86
|
+
identifier: { $in: identifierIn }
|
|
86
87
|
});
|
|
87
88
|
}
|
|
88
89
|
}
|
|
@@ -155,7 +156,7 @@ class MongoRepository {
|
|
|
155
156
|
});
|
|
156
157
|
}
|
|
157
158
|
}
|
|
158
|
-
const additionalPropertyElemMatch = (
|
|
159
|
+
const additionalPropertyElemMatch = (_h = params.additionalProperty) === null || _h === void 0 ? void 0 : _h.$elemMatch;
|
|
159
160
|
if (additionalPropertyElemMatch !== undefined && additionalPropertyElemMatch !== null) {
|
|
160
161
|
andConditions.push({
|
|
161
162
|
additionalProperty: {
|
package/package.json
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@chevre/factory": "4.
|
|
13
|
-
"@cinerino/sdk": "3.137.0
|
|
12
|
+
"@chevre/factory": "4.285.0",
|
|
13
|
+
"@cinerino/sdk": "3.137.0",
|
|
14
14
|
"@motionpicture/coa-service": "9.2.0",
|
|
15
15
|
"@motionpicture/gmo-service": "5.2.0",
|
|
16
16
|
"@sendgrid/mail": "6.4.0",
|
|
@@ -120,5 +120,5 @@
|
|
|
120
120
|
"postversion": "git push origin --tags",
|
|
121
121
|
"prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
|
|
122
122
|
},
|
|
123
|
-
"version": "20.2.0-alpha.
|
|
123
|
+
"version": "20.2.0-alpha.51"
|
|
124
124
|
}
|