@chevre/domain 22.5.0-alpha.3 → 22.5.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.
@@ -66,7 +66,7 @@ class EventRepo {
66
66
  }
67
67
  // tslint:disable-next-line:cyclomatic-complexity max-func-body-length
68
68
  static CREATE_MONGO_CONDITIONS(conditions) {
69
- 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;
69
+ 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;
70
70
  const andConditions = [];
71
71
  const typeOfEq = conditions.typeOf;
72
72
  if (typeof typeOfEq === 'string') {
@@ -153,18 +153,17 @@ class EventRepo {
153
153
  if (Array.isArray(locationBranchCodeIn)) {
154
154
  andConditions.push({ 'location.branchCode': { $exists: true, $in: locationBranchCodeIn } });
155
155
  }
156
- // tslint:disable-next-line:no-single-line-block-comment
157
- /* istanbul ignore else */
158
- const hasOfferCatalogIdEq = (_m = (_l = conditions.hasOfferCatalog) === null || _l === void 0 ? void 0 : _l.id) === null || _m === void 0 ? void 0 : _m.$eq;
159
- if (typeof hasOfferCatalogIdEq === 'string') {
160
- andConditions.push({
161
- 'hasOfferCatalog.id': {
162
- $exists: true,
163
- $eq: hasOfferCatalogIdEq
164
- }
165
- });
166
- }
167
- const additionalPropertyElemMatch = (_o = conditions.additionalProperty) === null || _o === void 0 ? void 0 : _o.$elemMatch;
156
+ // discontinue(2024-09-30)
157
+ // const hasOfferCatalogIdEq = conditions.hasOfferCatalog?.id?.$eq;
158
+ // if (typeof hasOfferCatalogIdEq === 'string') {
159
+ // andConditions.push({
160
+ // 'hasOfferCatalog.id': {
161
+ // $exists: true,
162
+ // $eq: hasOfferCatalogIdEq
163
+ // }
164
+ // });
165
+ // }
166
+ const additionalPropertyElemMatch = (_l = conditions.additionalProperty) === null || _l === void 0 ? void 0 : _l.$elemMatch;
168
167
  if (additionalPropertyElemMatch !== undefined && additionalPropertyElemMatch !== null) {
169
168
  andConditions.push({
170
169
  additionalProperty: {
@@ -180,7 +179,7 @@ class EventRepo {
180
179
  // tslint:disable-next-line:no-single-line-block-comment
181
180
  /* istanbul ignore else */
182
181
  if (params.offers !== undefined) {
183
- const itemOfferedIdIn4event = (_q = (_p = params.offers.itemOffered) === null || _p === void 0 ? void 0 : _p.id) === null || _q === void 0 ? void 0 : _q.$in;
182
+ const itemOfferedIdIn4event = (_o = (_m = params.offers.itemOffered) === null || _m === void 0 ? void 0 : _m.id) === null || _o === void 0 ? void 0 : _o.$in;
184
183
  if (Array.isArray(itemOfferedIdIn4event)) {
185
184
  andConditions.push({
186
185
  'offers.itemOffered.id': {
@@ -230,8 +229,8 @@ class EventRepo {
230
229
  }
231
230
  }
232
231
  }
233
- const sellerMakesOfferElemMatch4event = (_t = (_s = (_r = params.offers) === null || _r === void 0 ? void 0 : _r.seller) === null || _s === void 0 ? void 0 : _s.makesOffer) === null || _t === void 0 ? void 0 : _t.$elemMatch;
234
- if (typeof ((_u = sellerMakesOfferElemMatch4event === null || sellerMakesOfferElemMatch4event === void 0 ? void 0 : sellerMakesOfferElemMatch4event['availableAtOrFrom.id']) === null || _u === void 0 ? void 0 : _u.$eq) === 'string') {
232
+ const sellerMakesOfferElemMatch4event = (_r = (_q = (_p = params.offers) === null || _p === void 0 ? void 0 : _p.seller) === null || _q === void 0 ? void 0 : _q.makesOffer) === null || _r === void 0 ? void 0 : _r.$elemMatch;
233
+ if (typeof ((_s = sellerMakesOfferElemMatch4event === null || sellerMakesOfferElemMatch4event === void 0 ? void 0 : sellerMakesOfferElemMatch4event['availableAtOrFrom.id']) === null || _s === void 0 ? void 0 : _s.$eq) === 'string') {
235
234
  andConditions.push({
236
235
  'offers.seller.makesOffer': {
237
236
  $exists: true,
@@ -239,7 +238,7 @@ class EventRepo {
239
238
  }
240
239
  });
241
240
  }
242
- const reservationForIdentifierEq = (_z = (_y = (_x = (_w = (_v = params.offers) === null || _v === void 0 ? void 0 : _v.itemOffered) === null || _w === void 0 ? void 0 : _w.serviceOutput) === null || _x === void 0 ? void 0 : _x.reservationFor) === null || _y === void 0 ? void 0 : _y.identifier) === null || _z === void 0 ? void 0 : _z.$eq;
241
+ const reservationForIdentifierEq = (_x = (_w = (_v = (_u = (_t = params.offers) === null || _t === void 0 ? void 0 : _t.itemOffered) === null || _u === void 0 ? void 0 : _u.serviceOutput) === null || _v === void 0 ? void 0 : _v.reservationFor) === null || _w === void 0 ? void 0 : _w.identifier) === null || _x === void 0 ? void 0 : _x.$eq;
243
242
  if (typeof reservationForIdentifierEq === 'string') {
244
243
  andConditions.push({
245
244
  'offers.itemOffered.serviceOutput.reservationFor.identifier': {
@@ -248,7 +247,7 @@ class EventRepo {
248
247
  }
249
248
  });
250
249
  }
251
- const reservationForArrivalBusStopBranchCodeEq = (_5 = (_4 = (_3 = (_2 = (_1 = (_0 = params.offers) === null || _0 === void 0 ? void 0 : _0.itemOffered) === null || _1 === void 0 ? void 0 : _1.serviceOutput) === null || _2 === void 0 ? void 0 : _2.reservationFor) === null || _3 === void 0 ? void 0 : _3.arrivalBusStop) === null || _4 === void 0 ? void 0 : _4.branchCode) === null || _5 === void 0 ? void 0 : _5.$eq;
250
+ const reservationForArrivalBusStopBranchCodeEq = (_3 = (_2 = (_1 = (_0 = (_z = (_y = params.offers) === null || _y === void 0 ? void 0 : _y.itemOffered) === null || _z === void 0 ? void 0 : _z.serviceOutput) === null || _0 === void 0 ? void 0 : _0.reservationFor) === null || _1 === void 0 ? void 0 : _1.arrivalBusStop) === null || _2 === void 0 ? void 0 : _2.branchCode) === null || _3 === void 0 ? void 0 : _3.$eq;
252
251
  if (typeof reservationForArrivalBusStopBranchCodeEq === 'string') {
253
252
  andConditions.push({
254
253
  'offers.itemOffered.serviceOutput.reservationFor.arrivalBusStop.branchCode': {
@@ -257,7 +256,7 @@ class EventRepo {
257
256
  }
258
257
  });
259
258
  }
260
- const reservationForDepartureBusStopBranchCodeEq = (_11 = (_10 = (_9 = (_8 = (_7 = (_6 = params.offers) === null || _6 === void 0 ? void 0 : _6.itemOffered) === null || _7 === void 0 ? void 0 : _7.serviceOutput) === null || _8 === void 0 ? void 0 : _8.reservationFor) === null || _9 === void 0 ? void 0 : _9.departureBusStop) === null || _10 === void 0 ? void 0 : _10.branchCode) === null || _11 === void 0 ? void 0 : _11.$eq;
259
+ const reservationForDepartureBusStopBranchCodeEq = (_9 = (_8 = (_7 = (_6 = (_5 = (_4 = params.offers) === null || _4 === void 0 ? void 0 : _4.itemOffered) === null || _5 === void 0 ? void 0 : _5.serviceOutput) === null || _6 === void 0 ? void 0 : _6.reservationFor) === null || _7 === void 0 ? void 0 : _7.departureBusStop) === null || _8 === void 0 ? void 0 : _8.branchCode) === null || _9 === void 0 ? void 0 : _9.$eq;
261
260
  if (typeof reservationForDepartureBusStopBranchCodeEq === 'string') {
262
261
  andConditions.push({
263
262
  'offers.itemOffered.serviceOutput.reservationFor.departureBusStop.branchCode': {
@@ -291,7 +290,7 @@ class EventRepo {
291
290
  }
292
291
  // tslint:disable-next-line:no-single-line-block-comment
293
292
  /* istanbul ignore else */
294
- const superEventLocationIdEq = (_14 = (_13 = (_12 = params.superEvent) === null || _12 === void 0 ? void 0 : _12.location) === null || _13 === void 0 ? void 0 : _13.id) === null || _14 === void 0 ? void 0 : _14.$eq;
293
+ const superEventLocationIdEq = (_12 = (_11 = (_10 = params.superEvent) === null || _10 === void 0 ? void 0 : _10.location) === null || _11 === void 0 ? void 0 : _11.id) === null || _12 === void 0 ? void 0 : _12.$eq;
295
294
  if (typeof superEventLocationIdEq === 'string') {
296
295
  andConditions.push({
297
296
  'superEvent.location.id': {
@@ -334,7 +333,7 @@ class EventRepo {
334
333
  });
335
334
  }
336
335
  }
337
- const itemOfferedIdIn = (_17 = (_16 = (_15 = params.offers) === null || _15 === void 0 ? void 0 : _15.itemOffered) === null || _16 === void 0 ? void 0 : _16.id) === null || _17 === void 0 ? void 0 : _17.$in;
336
+ const itemOfferedIdIn = (_15 = (_14 = (_13 = params.offers) === null || _13 === void 0 ? void 0 : _13.itemOffered) === null || _14 === void 0 ? void 0 : _14.id) === null || _15 === void 0 ? void 0 : _15.$in;
338
337
  if (Array.isArray(itemOfferedIdIn)) {
339
338
  andConditions.push({
340
339
  'offers.itemOffered.id': {
@@ -343,7 +342,7 @@ class EventRepo {
343
342
  }
344
343
  });
345
344
  }
346
- const itemOfferedTicketedSeatTypeOfIn = (_22 = (_21 = (_20 = (_19 = (_18 = params.offers) === null || _18 === void 0 ? void 0 : _18.itemOffered) === null || _19 === void 0 ? void 0 : _19.serviceOutput) === null || _20 === void 0 ? void 0 : _20.reservedTicket) === null || _21 === void 0 ? void 0 : _21.ticketedSeat) === null || _22 === void 0 ? void 0 : _22.typeOfs;
345
+ const itemOfferedTicketedSeatTypeOfIn = (_20 = (_19 = (_18 = (_17 = (_16 = params.offers) === null || _16 === void 0 ? void 0 : _16.itemOffered) === null || _17 === void 0 ? void 0 : _17.serviceOutput) === null || _18 === void 0 ? void 0 : _18.reservedTicket) === null || _19 === void 0 ? void 0 : _19.ticketedSeat) === null || _20 === void 0 ? void 0 : _20.typeOfs;
347
346
  if (Array.isArray(itemOfferedTicketedSeatTypeOfIn)) {
348
347
  andConditions.push({
349
348
  'offers.itemOffered.serviceOutput.reservedTicket.ticketedSeat.typeOf': {
@@ -352,7 +351,7 @@ class EventRepo {
352
351
  }
353
352
  });
354
353
  }
355
- const itemOfferedServiceTypeIdIn = (_25 = (_24 = (_23 = params.offers) === null || _23 === void 0 ? void 0 : _23.itemOffered) === null || _24 === void 0 ? void 0 : _24.serviceType) === null || _25 === void 0 ? void 0 : _25.ids;
354
+ const itemOfferedServiceTypeIdIn = (_23 = (_22 = (_21 = params.offers) === null || _21 === void 0 ? void 0 : _21.itemOffered) === null || _22 === void 0 ? void 0 : _22.serviceType) === null || _23 === void 0 ? void 0 : _23.ids;
356
355
  if (Array.isArray(itemOfferedServiceTypeIdIn)) {
357
356
  andConditions.push({
358
357
  'offers.itemOffered.serviceType.id': {
@@ -361,8 +360,8 @@ class EventRepo {
361
360
  }
362
361
  });
363
362
  }
364
- const sellerMakesOfferElemMatch = (_28 = (_27 = (_26 = params.offers) === null || _26 === void 0 ? void 0 : _26.seller) === null || _27 === void 0 ? void 0 : _27.makesOffer) === null || _28 === void 0 ? void 0 : _28.$elemMatch;
365
- if (typeof ((_29 = sellerMakesOfferElemMatch === null || sellerMakesOfferElemMatch === void 0 ? void 0 : sellerMakesOfferElemMatch['availableAtOrFrom.id']) === null || _29 === void 0 ? void 0 : _29.$eq) === 'string') {
363
+ const sellerMakesOfferElemMatch = (_26 = (_25 = (_24 = params.offers) === null || _24 === void 0 ? void 0 : _24.seller) === null || _25 === void 0 ? void 0 : _25.makesOffer) === null || _26 === void 0 ? void 0 : _26.$elemMatch;
364
+ if (typeof ((_27 = sellerMakesOfferElemMatch === null || sellerMakesOfferElemMatch === void 0 ? void 0 : sellerMakesOfferElemMatch['availableAtOrFrom.id']) === null || _27 === void 0 ? void 0 : _27.$eq) === 'string') {
366
365
  andConditions.push({
367
366
  'offers.seller.makesOffer': {
368
367
  $exists: true,
package/package.json CHANGED
@@ -9,8 +9,8 @@
9
9
  }
10
10
  ],
11
11
  "dependencies": {
12
- "@chevre/factory": "4.386.0-alpha.0",
13
- "@cinerino/sdk": "10.12.0-alpha.0",
12
+ "@chevre/factory": "4.386.0-alpha.1",
13
+ "@cinerino/sdk": "10.12.0-alpha.1",
14
14
  "@motionpicture/coa-service": "9.5.0",
15
15
  "@motionpicture/gmo-service": "5.3.0",
16
16
  "@sendgrid/mail": "6.4.0",
@@ -110,5 +110,5 @@
110
110
  "postversion": "git push origin --tags",
111
111
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
112
112
  },
113
- "version": "22.5.0-alpha.3"
113
+ "version": "22.5.0-alpha.4"
114
114
  }