@chevre/domain 20.13.0-alpha.0 → 20.13.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.
|
@@ -22,7 +22,7 @@ class MongoRepository {
|
|
|
22
22
|
}
|
|
23
23
|
// tslint:disable-next-line:cyclomatic-complexity max-func-body-length
|
|
24
24
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
25
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50;
|
|
25
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39, _40, _41, _42, _43, _44, _45, _46, _47, _48, _49, _50, _51, _52, _53;
|
|
26
26
|
const andConditions = [];
|
|
27
27
|
const projectIdEq = (_b = (_a = params.project) === null || _a === void 0 ? void 0 : _a.id) === null || _b === void 0 ? void 0 : _b.$eq;
|
|
28
28
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
@@ -207,10 +207,10 @@ class MongoRepository {
|
|
|
207
207
|
}
|
|
208
208
|
});
|
|
209
209
|
}
|
|
210
|
-
const objectAcceptedOfferSeatNumberIn = (_22 = (_21 = (_20 = (_19 = params.object) === null || _19 === void 0 ? void 0 : _19.acceptedOffer) === null || _20 === void 0 ? void 0 : _20.
|
|
210
|
+
const objectAcceptedOfferSeatNumberIn = (_25 = (_24 = (_23 = (_22 = (_21 = (_20 = (_19 = params.object) === null || _19 === void 0 ? void 0 : _19.acceptedOffer) === null || _20 === void 0 ? void 0 : _20.itemOffered) === null || _21 === void 0 ? void 0 : _21.serviceOutput) === null || _22 === void 0 ? void 0 : _22.reservedTicket) === null || _23 === void 0 ? void 0 : _23.ticketedSeat) === null || _24 === void 0 ? void 0 : _24.seatNumber) === null || _25 === void 0 ? void 0 : _25.$in;
|
|
211
211
|
if (Array.isArray(objectAcceptedOfferSeatNumberIn)) {
|
|
212
212
|
andConditions.push({
|
|
213
|
-
'object.acceptedOffer.ticketedSeat.seatNumber': {
|
|
213
|
+
'object.acceptedOffer.itemOffered.serviceOutput.reservedTicket.ticketedSeat.seatNumber': {
|
|
214
214
|
$exists: true,
|
|
215
215
|
$in: objectAcceptedOfferSeatNumberIn
|
|
216
216
|
}
|
|
@@ -224,7 +224,7 @@ class MongoRepository {
|
|
|
224
224
|
});
|
|
225
225
|
}
|
|
226
226
|
else {
|
|
227
|
-
const typeOfEq = (
|
|
227
|
+
const typeOfEq = (_26 = params.typeOf) === null || _26 === void 0 ? void 0 : _26.$eq;
|
|
228
228
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
229
229
|
/* istanbul ignore else */
|
|
230
230
|
if (typeof typeOfEq === 'string') {
|
|
@@ -233,7 +233,7 @@ class MongoRepository {
|
|
|
233
233
|
});
|
|
234
234
|
}
|
|
235
235
|
}
|
|
236
|
-
const actionStatusIn = (
|
|
236
|
+
const actionStatusIn = (_27 = params.actionStatus) === null || _27 === void 0 ? void 0 : _27.$in;
|
|
237
237
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
238
238
|
/* istanbul ignore else */
|
|
239
239
|
if (Array.isArray(actionStatusIn)) {
|
|
@@ -264,7 +264,7 @@ class MongoRepository {
|
|
|
264
264
|
startDate: { $lte: startDateLte }
|
|
265
265
|
});
|
|
266
266
|
}
|
|
267
|
-
const fromLocationTypeOfIn = (
|
|
267
|
+
const fromLocationTypeOfIn = (_29 = (_28 = params.fromLocation) === null || _28 === void 0 ? void 0 : _28.typeOf) === null || _29 === void 0 ? void 0 : _29.$in;
|
|
268
268
|
if (Array.isArray(fromLocationTypeOfIn)) {
|
|
269
269
|
andConditions.push({
|
|
270
270
|
'fromLocation.typeOf': {
|
|
@@ -273,7 +273,7 @@ class MongoRepository {
|
|
|
273
273
|
}
|
|
274
274
|
});
|
|
275
275
|
}
|
|
276
|
-
const fromLocationAccountNumberIn = (
|
|
276
|
+
const fromLocationAccountNumberIn = (_31 = (_30 = params.fromLocation) === null || _30 === void 0 ? void 0 : _30.accountNumber) === null || _31 === void 0 ? void 0 : _31.$in;
|
|
277
277
|
if (Array.isArray(fromLocationAccountNumberIn)) {
|
|
278
278
|
andConditions.push({
|
|
279
279
|
'fromLocation.accountNumber': {
|
|
@@ -282,7 +282,7 @@ class MongoRepository {
|
|
|
282
282
|
}
|
|
283
283
|
});
|
|
284
284
|
}
|
|
285
|
-
const fromLocationAccountTypeIn = (
|
|
285
|
+
const fromLocationAccountTypeIn = (_33 = (_32 = params.fromLocation) === null || _32 === void 0 ? void 0 : _32.accountType) === null || _33 === void 0 ? void 0 : _33.$in;
|
|
286
286
|
if (Array.isArray(fromLocationAccountTypeIn)) {
|
|
287
287
|
andConditions.push({
|
|
288
288
|
'fromLocation.accountType': {
|
|
@@ -291,7 +291,7 @@ class MongoRepository {
|
|
|
291
291
|
}
|
|
292
292
|
});
|
|
293
293
|
}
|
|
294
|
-
const toLocationTypeOfIn = (
|
|
294
|
+
const toLocationTypeOfIn = (_35 = (_34 = params.toLocation) === null || _34 === void 0 ? void 0 : _34.typeOf) === null || _35 === void 0 ? void 0 : _35.$in;
|
|
295
295
|
if (Array.isArray(toLocationTypeOfIn)) {
|
|
296
296
|
andConditions.push({
|
|
297
297
|
'toLocation.typeOf': {
|
|
@@ -300,7 +300,7 @@ class MongoRepository {
|
|
|
300
300
|
}
|
|
301
301
|
});
|
|
302
302
|
}
|
|
303
|
-
const toLocationAccountNumberIn = (
|
|
303
|
+
const toLocationAccountNumberIn = (_37 = (_36 = params.toLocation) === null || _36 === void 0 ? void 0 : _36.accountNumber) === null || _37 === void 0 ? void 0 : _37.$in;
|
|
304
304
|
if (Array.isArray(toLocationAccountNumberIn)) {
|
|
305
305
|
andConditions.push({
|
|
306
306
|
'toLocation.accountNumber': {
|
|
@@ -309,7 +309,7 @@ class MongoRepository {
|
|
|
309
309
|
}
|
|
310
310
|
});
|
|
311
311
|
}
|
|
312
|
-
const toLocationAccountTypeIn = (
|
|
312
|
+
const toLocationAccountTypeIn = (_39 = (_38 = params.toLocation) === null || _38 === void 0 ? void 0 : _38.accountType) === null || _39 === void 0 ? void 0 : _39.$in;
|
|
313
313
|
if (Array.isArray(toLocationAccountTypeIn)) {
|
|
314
314
|
andConditions.push({
|
|
315
315
|
'toLocation.accountType': {
|
|
@@ -318,7 +318,7 @@ class MongoRepository {
|
|
|
318
318
|
}
|
|
319
319
|
});
|
|
320
320
|
}
|
|
321
|
-
const purposeTypeOfIn = (
|
|
321
|
+
const purposeTypeOfIn = (_41 = (_40 = params.purpose) === null || _40 === void 0 ? void 0 : _40.typeOf) === null || _41 === void 0 ? void 0 : _41.$in;
|
|
322
322
|
if (Array.isArray(purposeTypeOfIn)) {
|
|
323
323
|
andConditions.push({
|
|
324
324
|
'purpose.typeOf': {
|
|
@@ -327,7 +327,7 @@ class MongoRepository {
|
|
|
327
327
|
}
|
|
328
328
|
});
|
|
329
329
|
}
|
|
330
|
-
const purposeIdIn = (
|
|
330
|
+
const purposeIdIn = (_43 = (_42 = params.purpose) === null || _42 === void 0 ? void 0 : _42.id) === null || _43 === void 0 ? void 0 : _43.$in;
|
|
331
331
|
if (Array.isArray(purposeIdIn)) {
|
|
332
332
|
andConditions.push({
|
|
333
333
|
'purpose.id': {
|
|
@@ -336,7 +336,7 @@ class MongoRepository {
|
|
|
336
336
|
}
|
|
337
337
|
});
|
|
338
338
|
}
|
|
339
|
-
const purposeOrderNumberIn = (
|
|
339
|
+
const purposeOrderNumberIn = (_45 = (_44 = params.purpose) === null || _44 === void 0 ? void 0 : _44.orderNumber) === null || _45 === void 0 ? void 0 : _45.$in;
|
|
340
340
|
if (Array.isArray(purposeOrderNumberIn)) {
|
|
341
341
|
andConditions.push({
|
|
342
342
|
'purpose.orderNumber': {
|
|
@@ -345,7 +345,7 @@ class MongoRepository {
|
|
|
345
345
|
}
|
|
346
346
|
});
|
|
347
347
|
}
|
|
348
|
-
const resultTypeOfIn = (
|
|
348
|
+
const resultTypeOfIn = (_47 = (_46 = params.result) === null || _46 === void 0 ? void 0 : _46.typeOf) === null || _47 === void 0 ? void 0 : _47.$in;
|
|
349
349
|
if (Array.isArray(resultTypeOfIn)) {
|
|
350
350
|
andConditions.push({
|
|
351
351
|
'result.typeOf': {
|
|
@@ -354,7 +354,7 @@ class MongoRepository {
|
|
|
354
354
|
}
|
|
355
355
|
});
|
|
356
356
|
}
|
|
357
|
-
const resultIdIn = (
|
|
357
|
+
const resultIdIn = (_49 = (_48 = params.result) === null || _48 === void 0 ? void 0 : _48.id) === null || _49 === void 0 ? void 0 : _49.$in;
|
|
358
358
|
if (Array.isArray(resultIdIn)) {
|
|
359
359
|
andConditions.push({
|
|
360
360
|
'result.id': {
|
|
@@ -363,7 +363,7 @@ class MongoRepository {
|
|
|
363
363
|
}
|
|
364
364
|
});
|
|
365
365
|
}
|
|
366
|
-
const resultOrderNumberIn = (
|
|
366
|
+
const resultOrderNumberIn = (_51 = (_50 = params.result) === null || _50 === void 0 ? void 0 : _50.orderNumber) === null || _51 === void 0 ? void 0 : _51.$in;
|
|
367
367
|
if (Array.isArray(resultOrderNumberIn)) {
|
|
368
368
|
andConditions.push({
|
|
369
369
|
'result.orderNumber': {
|
|
@@ -372,7 +372,7 @@ class MongoRepository {
|
|
|
372
372
|
}
|
|
373
373
|
});
|
|
374
374
|
}
|
|
375
|
-
const resultCodeIn = (
|
|
375
|
+
const resultCodeIn = (_53 = (_52 = params.result) === null || _52 === void 0 ? void 0 : _52.code) === null || _53 === void 0 ? void 0 : _53.$in;
|
|
376
376
|
if (Array.isArray(resultCodeIn)) {
|
|
377
377
|
andConditions.push({
|
|
378
378
|
'result.code': {
|
|
@@ -152,10 +152,10 @@ schema.index({ 'object.event.id': 1, startDate: -1 }, {
|
|
|
152
152
|
'object.event.id': { $exists: true }
|
|
153
153
|
}
|
|
154
154
|
});
|
|
155
|
-
schema.index({ 'object.acceptedOffer.ticketedSeat.seatNumber': 1, startDate: -1 }, {
|
|
156
|
-
name: '
|
|
155
|
+
schema.index({ 'object.acceptedOffer.itemOffered.serviceOutput.reservedTicket.ticketedSeat.seatNumber': 1, startDate: -1 }, {
|
|
156
|
+
name: 'searchByObjectAcceptedOfferItemOfferedServiceOutputSeatNumber',
|
|
157
157
|
partialFilterExpression: {
|
|
158
|
-
'object.acceptedOffer.ticketedSeat.seatNumber': { $exists: true }
|
|
158
|
+
'object.acceptedOffer.itemOffered.serviceOutput.reservedTicket.ticketedSeat.seatNumber': { $exists: true }
|
|
159
159
|
}
|
|
160
160
|
});
|
|
161
161
|
schema.index({ 'object.orderNumber': 1, startDate: -1 }, {
|
package/package.json
CHANGED
|
@@ -9,8 +9,8 @@
|
|
|
9
9
|
}
|
|
10
10
|
],
|
|
11
11
|
"dependencies": {
|
|
12
|
-
"@chevre/factory": "4.308.0-alpha.
|
|
13
|
-
"@cinerino/sdk": "3.152.0-alpha.
|
|
12
|
+
"@chevre/factory": "4.308.0-alpha.1",
|
|
13
|
+
"@cinerino/sdk": "3.152.0-alpha.2",
|
|
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.13.0-alpha.
|
|
123
|
+
"version": "20.13.0-alpha.1"
|
|
124
124
|
}
|