@chevre/domain 20.3.0-alpha.0 → 20.3.0-alpha.1
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.
|
@@ -12,9 +12,10 @@ async function main() {
|
|
|
12
12
|
const catalogs = await offerCatalogRepo.search({
|
|
13
13
|
limit: 100,
|
|
14
14
|
page: 1,
|
|
15
|
-
id: { $in: ['0001'] },
|
|
15
|
+
// id: { $in: ['0001'] },
|
|
16
16
|
itemListElement: {
|
|
17
17
|
id: {
|
|
18
|
+
$all: ['901', '3001']
|
|
18
19
|
// $in: ['1001'],
|
|
19
20
|
// $nin: ['1005']
|
|
20
21
|
}
|
|
@@ -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, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r;
|
|
36
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t;
|
|
37
37
|
// MongoDB検索条件
|
|
38
38
|
const andConditions = [];
|
|
39
39
|
const projectIdEq = (_b = (_a = params.project) === null || _a === void 0 ? void 0 : _a.id) === null || _b === void 0 ? void 0 : _b.$eq;
|
|
@@ -87,7 +87,16 @@ class MongoRepository {
|
|
|
87
87
|
}
|
|
88
88
|
});
|
|
89
89
|
}
|
|
90
|
-
const
|
|
90
|
+
const itemListElementIdAll = (_m = (_l = params.itemListElement) === null || _l === void 0 ? void 0 : _l.id) === null || _m === void 0 ? void 0 : _m.$all;
|
|
91
|
+
if (Array.isArray(itemListElementIdAll)) {
|
|
92
|
+
andConditions.push({
|
|
93
|
+
'itemListElement.id': {
|
|
94
|
+
$exists: true,
|
|
95
|
+
$all: itemListElementIdAll
|
|
96
|
+
}
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
const itemOfferedTypeOfEq = (_p = (_o = params.itemOffered) === null || _o === void 0 ? void 0 : _o.typeOf) === null || _p === void 0 ? void 0 : _p.$eq;
|
|
91
100
|
if (typeof itemOfferedTypeOfEq === 'string') {
|
|
92
101
|
andConditions.push({
|
|
93
102
|
'itemOffered.typeOf': {
|
|
@@ -96,7 +105,7 @@ class MongoRepository {
|
|
|
96
105
|
}
|
|
97
106
|
});
|
|
98
107
|
}
|
|
99
|
-
const itemOfferedServiceTypeCodeValueEq = (
|
|
108
|
+
const itemOfferedServiceTypeCodeValueEq = (_s = (_r = (_q = params.itemOffered) === null || _q === void 0 ? void 0 : _q.serviceType) === null || _r === void 0 ? void 0 : _r.codeValue) === null || _s === void 0 ? void 0 : _s.$eq;
|
|
100
109
|
if (typeof itemOfferedServiceTypeCodeValueEq === 'string') {
|
|
101
110
|
andConditions.push({
|
|
102
111
|
'itemOffered.serviceType.codeValue': {
|
|
@@ -105,7 +114,7 @@ class MongoRepository {
|
|
|
105
114
|
}
|
|
106
115
|
});
|
|
107
116
|
}
|
|
108
|
-
const additionalPropertyElemMatch = (
|
|
117
|
+
const additionalPropertyElemMatch = (_t = params.additionalProperty) === null || _t === void 0 ? void 0 : _t.$elemMatch;
|
|
109
118
|
if (additionalPropertyElemMatch !== undefined && additionalPropertyElemMatch !== null) {
|
|
110
119
|
andConditions.push({
|
|
111
120
|
additionalProperty: {
|
package/package.json
CHANGED
|
@@ -9,7 +9,7 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@chevre/factory": "4.
|
|
12
|
+
"@chevre/factory": "4.288.0-alpha.0",
|
|
13
13
|
"@cinerino/sdk": "3.138.1",
|
|
14
14
|
"@motionpicture/coa-service": "9.2.0",
|
|
15
15
|
"@motionpicture/gmo-service": "5.2.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.3.0-alpha.
|
|
123
|
+
"version": "20.3.0-alpha.1"
|
|
124
124
|
}
|