@chevre/domain 27.1.0-alpha.3 → 27.1.0-alpha.5
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.
|
@@ -102,8 +102,7 @@ class AdminEventRepo {
|
|
|
102
102
|
bulkWriteOps.push({ updateOne });
|
|
103
103
|
}
|
|
104
104
|
else {
|
|
105
|
-
const { id, coaInfo, description, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
106
|
-
maximumAttendeeCapacity, remainingAttendeeCapacity, checkInCount, attendeeCount, aggregateReservation, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
105
|
+
const { id: __id, coaInfo: _coaInfo, description: _description, maximumAttendeeCapacity, remainingAttendeeCapacity, checkInCount, attendeeCount, aggregateReservation, // eslint-disable-line @typescript-eslint/no-unused-vars
|
|
107
106
|
...setOnInsertFields } = $set;
|
|
108
107
|
const setOnInsert = {
|
|
109
108
|
...setOnInsertFields,
|
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
|
/**
|
|
@@ -24,7 +24,7 @@ const schemaDefinition = {
|
|
|
24
24
|
identifier: String,
|
|
25
25
|
name: mongoose_1.SchemaTypes.Mixed,
|
|
26
26
|
additionalProperty: mongoose_1.SchemaTypes.Mixed,
|
|
27
|
-
description:
|
|
27
|
+
// description: SchemaTypes.Mixed, // discontinue(2026-09-04~)
|
|
28
28
|
doorTime: Date,
|
|
29
29
|
endDate: Date,
|
|
30
30
|
eventStatus: String,
|
|
@@ -40,17 +40,6 @@ const schemaDefinition = {
|
|
|
40
40
|
aggregateReservation: mongoose_1.SchemaTypes.Mixed,
|
|
41
41
|
aggregateOffer: mongoose_1.SchemaTypes.Mixed,
|
|
42
42
|
coaInfo: mongoose_1.SchemaTypes.Mixed
|
|
43
|
-
// ↓discontinue EventSeries(2024-09-17~)
|
|
44
|
-
// alternateName: SchemaTypes.Mixed,
|
|
45
|
-
// alternativeHeadline: SchemaTypes.Mixed,
|
|
46
|
-
// duration: String,
|
|
47
|
-
// headline: SchemaTypes.Mixed,
|
|
48
|
-
// workPerformed: SchemaTypes.Mixed,
|
|
49
|
-
// videoFormat: SchemaTypes.Mixed,
|
|
50
|
-
// soundFormat: SchemaTypes.Mixed,
|
|
51
|
-
// subtitleLanguage: SchemaTypes.Mixed,
|
|
52
|
-
// dubLanguage: SchemaTypes.Mixed,
|
|
53
|
-
// kanaName: String,
|
|
54
43
|
};
|
|
55
44
|
const schemaOptions = {
|
|
56
45
|
autoIndex: settings_1.MONGO_AUTO_INDEX,
|
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.3",
|
|
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.5"
|
|
92
92
|
}
|