@chevre/domain 23.2.0-alpha.5 → 23.2.0-alpha.6
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.
|
@@ -50,7 +50,7 @@ class CreativeWorkRepo {
|
|
|
50
50
|
}
|
|
51
51
|
// tslint:disable-next-line:max-func-body-length
|
|
52
52
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m;
|
|
53
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
|
|
54
54
|
const andConditions = [
|
|
55
55
|
{ typeOf: { $eq: factory.creativeWorkType.Movie } }
|
|
56
56
|
];
|
|
@@ -90,6 +90,10 @@ class CreativeWorkRepo {
|
|
|
90
90
|
if (Array.isArray(identifierIn)) {
|
|
91
91
|
andConditions.push({ identifier: { $in: identifierIn } });
|
|
92
92
|
}
|
|
93
|
+
const identifierRegex = (_k = params.identifier) === null || _k === void 0 ? void 0 : _k.$regex;
|
|
94
|
+
if (typeof identifierRegex === 'string' && identifierRegex !== '') {
|
|
95
|
+
andConditions.push({ identifier: { $regex: new RegExp(identifierRegex) } });
|
|
96
|
+
}
|
|
93
97
|
}
|
|
94
98
|
if (typeof params.name === 'string' && params.name.length > 0) {
|
|
95
99
|
// 多言語名称対応(2022-07-11~)
|
|
@@ -111,15 +115,15 @@ class CreativeWorkRepo {
|
|
|
111
115
|
if (params.datePublishedThrough !== undefined) {
|
|
112
116
|
andConditions.push({ datePublished: { $exists: true, $lte: params.datePublishedThrough } });
|
|
113
117
|
}
|
|
114
|
-
const offersAvailableFrom = (
|
|
118
|
+
const offersAvailableFrom = (_l = params.offers) === null || _l === void 0 ? void 0 : _l.availableFrom;
|
|
115
119
|
if (offersAvailableFrom instanceof Date) {
|
|
116
120
|
andConditions.push({ 'offers.availabilityEnds': { $exists: true, $gte: offersAvailableFrom } });
|
|
117
121
|
}
|
|
118
|
-
const offersAvailableThrough = (
|
|
122
|
+
const offersAvailableThrough = (_m = params.offers) === null || _m === void 0 ? void 0 : _m.availableThrough;
|
|
119
123
|
if (offersAvailableThrough instanceof Date) {
|
|
120
124
|
andConditions.push({ 'offers.availabilityStarts': { $exists: true, $lte: offersAvailableThrough } });
|
|
121
125
|
}
|
|
122
|
-
const additionalPropertyElemMatch = (
|
|
126
|
+
const additionalPropertyElemMatch = (_o = params.additionalProperty) === null || _o === void 0 ? void 0 : _o.$elemMatch;
|
|
123
127
|
if (additionalPropertyElemMatch !== undefined && additionalPropertyElemMatch !== null) {
|
|
124
128
|
andConditions.push({
|
|
125
129
|
additionalProperty: {
|
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.4.0-alpha.
|
|
14
|
+
"@chevre/factory": "5.4.0-alpha.9",
|
|
15
15
|
"@cinerino/sdk": "12.12.1",
|
|
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.2.0-alpha.
|
|
118
|
+
"version": "23.2.0-alpha.6"
|
|
119
119
|
}
|