@chevre/domain 27.1.0-alpha.3 → 27.1.0-alpha.4
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/event.js +28 -28
- package/lib/chevre/repo/eventSeries.js +24 -24
- package/package.json +2 -2
package/lib/chevre/repo/event.js
CHANGED
|
@@ -117,25 +117,25 @@ class EventRepo {
|
|
|
117
117
|
switch (conditions.typeOf) {
|
|
118
118
|
case factory_1.factory.eventType.ScreeningEvent: {
|
|
119
119
|
params = conditions;
|
|
120
|
-
/* istanbul ignore else */
|
|
121
|
-
if (typeof params.name === 'string' && params.name.length > 0) {
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
}
|
|
120
|
+
// /* istanbul ignore else */
|
|
121
|
+
// if (typeof params.name === 'string' && params.name.length > 0) {
|
|
122
|
+
// andConditions.push({
|
|
123
|
+
// $or: [
|
|
124
|
+
// {
|
|
125
|
+
// 'name.ja': {
|
|
126
|
+
// $exists: true,
|
|
127
|
+
// $regex: new RegExp(params.name)
|
|
128
|
+
// }
|
|
129
|
+
// },
|
|
130
|
+
// {
|
|
131
|
+
// 'name.en': {
|
|
132
|
+
// $exists: true,
|
|
133
|
+
// $regex: new RegExp(params.name)
|
|
134
|
+
// }
|
|
135
|
+
// }
|
|
136
|
+
// ]
|
|
137
|
+
// });
|
|
138
|
+
// }
|
|
139
139
|
/* istanbul ignore else */
|
|
140
140
|
const superEventLocationIdEq = params.superEvent?.location?.id?.$eq;
|
|
141
141
|
if (typeof superEventLocationIdEq === 'string') {
|
|
@@ -194,15 +194,15 @@ class EventRepo {
|
|
|
194
194
|
}
|
|
195
195
|
});
|
|
196
196
|
}
|
|
197
|
-
const itemOfferedServiceTypeIdIn = params.offers?.itemOffered?.serviceType?.ids;
|
|
198
|
-
if (Array.isArray(itemOfferedServiceTypeIdIn)) {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
}
|
|
197
|
+
// const itemOfferedServiceTypeIdIn = params.offers?.itemOffered?.serviceType?.ids;
|
|
198
|
+
// if (Array.isArray(itemOfferedServiceTypeIdIn)) {
|
|
199
|
+
// andConditions.push({
|
|
200
|
+
// 'offers.itemOffered.serviceType.id': {
|
|
201
|
+
// $exists: true,
|
|
202
|
+
// $in: itemOfferedServiceTypeIdIn
|
|
203
|
+
// }
|
|
204
|
+
// });
|
|
205
|
+
// }
|
|
206
206
|
const sellerMakesOfferElemMatch = params.offers?.seller?.makesOffer?.$elemMatch;
|
|
207
207
|
if (typeof sellerMakesOfferElemMatch?.['availableAtOrFrom.id']?.$eq === 'string') {
|
|
208
208
|
andConditions.push({
|
|
@@ -34,12 +34,12 @@ class EventSeriesRepo {
|
|
|
34
34
|
if (Array.isArray(idIn)) {
|
|
35
35
|
andConditions.push({ _id: { $in: idIn } });
|
|
36
36
|
}
|
|
37
|
-
/* istanbul ignore else */
|
|
38
|
-
if (Array.isArray(conditions.eventStatuses)) {
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
}
|
|
37
|
+
// /* istanbul ignore else */
|
|
38
|
+
// if (Array.isArray(conditions.eventStatuses)) {
|
|
39
|
+
// andConditions.push({
|
|
40
|
+
// eventStatus: { $in: conditions.eventStatuses }
|
|
41
|
+
// });
|
|
42
|
+
// }
|
|
43
43
|
/* istanbul ignore else */
|
|
44
44
|
if (conditions.inSessionFrom !== undefined) {
|
|
45
45
|
andConditions.push({
|
|
@@ -158,24 +158,24 @@ class EventSeriesRepo {
|
|
|
158
158
|
if (Array.isArray(videoFormatTypeOfIn)) {
|
|
159
159
|
andConditions.push({ 'subEvent.videoFormat': { $exists: true, $in: videoFormatTypeOfIn } });
|
|
160
160
|
}
|
|
161
|
-
const soundFormatTypeOfEq = conditions.soundFormat?.typeOf?.$eq;
|
|
162
|
-
if (typeof soundFormatTypeOfEq === 'string') {
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
}
|
|
170
|
-
const soundFormatTypeOfIn = conditions.soundFormat?.typeOf?.$in;
|
|
171
|
-
if (Array.isArray(soundFormatTypeOfIn)) {
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
}
|
|
161
|
+
// const soundFormatTypeOfEq = conditions.soundFormat?.typeOf?.$eq;
|
|
162
|
+
// if (typeof soundFormatTypeOfEq === 'string') {
|
|
163
|
+
// andConditions.push({
|
|
164
|
+
// 'soundFormat.typeOf': {
|
|
165
|
+
// $exists: true,
|
|
166
|
+
// $eq: soundFormatTypeOfEq
|
|
167
|
+
// }
|
|
168
|
+
// });
|
|
169
|
+
// }
|
|
170
|
+
// const soundFormatTypeOfIn = conditions.soundFormat?.typeOf?.$in;
|
|
171
|
+
// if (Array.isArray(soundFormatTypeOfIn)) {
|
|
172
|
+
// andConditions.push({
|
|
173
|
+
// 'soundFormat.typeOf': {
|
|
174
|
+
// $exists: true,
|
|
175
|
+
// $in: soundFormatTypeOfIn
|
|
176
|
+
// }
|
|
177
|
+
// });
|
|
178
|
+
// }
|
|
179
179
|
return andConditions;
|
|
180
180
|
}
|
|
181
181
|
/**
|
package/package.json
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"dependencies": {
|
|
12
12
|
"@aws-sdk/client-cognito-identity-provider": "3.1090.0",
|
|
13
13
|
"@aws-sdk/credential-providers": "3.1090.0",
|
|
14
|
-
"@chevre/factory": "10.5.0-alpha.
|
|
14
|
+
"@chevre/factory": "10.5.0-alpha.2",
|
|
15
15
|
"@motionpicture/coa-service": "10.0.0",
|
|
16
16
|
"@motionpicture/gmo-service": "6.1.0-alpha.0",
|
|
17
17
|
"@sendgrid/client": "8.1.4",
|
|
@@ -88,5 +88,5 @@
|
|
|
88
88
|
"postversion": "git push origin --tags",
|
|
89
89
|
"prepublishOnly": "npm run clean && npm run build"
|
|
90
90
|
},
|
|
91
|
-
"version": "27.1.0-alpha.
|
|
91
|
+
"version": "27.1.0-alpha.4"
|
|
92
92
|
}
|