@chevre/domain 23.2.0-alpha.62 → 23.2.0-alpha.63

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.
Files changed (178) hide show
  1. package/lib/chevre/errorHandler.js +0 -5
  2. package/lib/chevre/eventEmitter/assetTransaction.js +0 -1
  3. package/lib/chevre/eventEmitter/task.js +0 -1
  4. package/lib/chevre/eventEmitter/transaction.js +0 -1
  5. package/lib/chevre/factory/transactionNumber.js +0 -2
  6. package/lib/chevre/repo/acceptedOffer.js +0 -1
  7. package/lib/chevre/repo/acceptedPaymentMethod.js +0 -1
  8. package/lib/chevre/repo/account.js +0 -17
  9. package/lib/chevre/repo/accountTransaction.js +0 -7
  10. package/lib/chevre/repo/action.js +0 -7
  11. package/lib/chevre/repo/additionalProperty.js +0 -2
  12. package/lib/chevre/repo/advanceBookingRequirement.js +0 -1
  13. package/lib/chevre/repo/aggregateOffer.js +0 -5
  14. package/lib/chevre/repo/assetTransaction.js +0 -17
  15. package/lib/chevre/repo/authorization.js +0 -7
  16. package/lib/chevre/repo/categoryCode.js +0 -5
  17. package/lib/chevre/repo/comment.js +0 -1
  18. package/lib/chevre/repo/confirmationNumber.js +0 -4
  19. package/lib/chevre/repo/creativeWork.js +0 -6
  20. package/lib/chevre/repo/credentials.js +0 -1
  21. package/lib/chevre/repo/customer.js +0 -1
  22. package/lib/chevre/repo/customerType.js +0 -1
  23. package/lib/chevre/repo/emailMessage.js +0 -1
  24. package/lib/chevre/repo/event.js +0 -21
  25. package/lib/chevre/repo/eventSeries.js +0 -14
  26. package/lib/chevre/repo/identity.js +0 -1
  27. package/lib/chevre/repo/identityProvider.js +0 -1
  28. package/lib/chevre/repo/member.js +0 -1
  29. package/lib/chevre/repo/merchantReturnPolicy.js +0 -2
  30. package/lib/chevre/repo/mongoose/onIndexCreated.js +0 -1
  31. package/lib/chevre/repo/mongoose/schemas/task.js +0 -1
  32. package/lib/chevre/repo/movieTicketType.js +0 -6
  33. package/lib/chevre/repo/note.js +0 -1
  34. package/lib/chevre/repo/offer/unitPriceInCatalog.js +0 -2
  35. package/lib/chevre/repo/offerCatalog.js +0 -1
  36. package/lib/chevre/repo/offerCatalogItem.js +0 -1
  37. package/lib/chevre/repo/order.js +0 -39
  38. package/lib/chevre/repo/orderNumber.js +0 -4
  39. package/lib/chevre/repo/ownershipInfo.js +0 -8
  40. package/lib/chevre/repo/passport.js +0 -1
  41. package/lib/chevre/repo/paymentMethod/creditCard.js +0 -2
  42. package/lib/chevre/repo/paymentService.js +0 -2
  43. package/lib/chevre/repo/paymentServiceChannel.js +0 -1
  44. package/lib/chevre/repo/pendingReservation.js +0 -3
  45. package/lib/chevre/repo/person.js +0 -19
  46. package/lib/chevre/repo/place/busStop.js +0 -4
  47. package/lib/chevre/repo/place/movieTheater.js +0 -3
  48. package/lib/chevre/repo/place/screeningRoom.js +0 -2
  49. package/lib/chevre/repo/place/seat.js +0 -7
  50. package/lib/chevre/repo/place/section.js +0 -5
  51. package/lib/chevre/repo/potentialAction.js +0 -1
  52. package/lib/chevre/repo/priceSpecification.js +0 -6
  53. package/lib/chevre/repo/product.js +0 -2
  54. package/lib/chevre/repo/productModel.js +0 -1
  55. package/lib/chevre/repo/rateLimit/offer.js +0 -1
  56. package/lib/chevre/repo/reservation.js +0 -54
  57. package/lib/chevre/repo/role.js +0 -1
  58. package/lib/chevre/repo/seller.js +0 -3
  59. package/lib/chevre/repo/sellerReturnPolicy.js +0 -1
  60. package/lib/chevre/repo/serviceOutput.js +0 -2
  61. package/lib/chevre/repo/serviceOutputIdentifier.js +0 -1
  62. package/lib/chevre/repo/stockHolder.js +0 -2
  63. package/lib/chevre/repo/task.js +0 -7
  64. package/lib/chevre/repo/transaction.js +0 -24
  65. package/lib/chevre/repo/transactionNumberCounter.js +0 -1
  66. package/lib/chevre/repo/trip.js +0 -2
  67. package/lib/chevre/repo/webSite.js +0 -1
  68. package/lib/chevre/repository.js +0 -1
  69. package/lib/chevre/service/account.js +0 -3
  70. package/lib/chevre/service/accountTransaction/transfer.js +0 -3
  71. package/lib/chevre/service/accountTransaction.js +0 -3
  72. package/lib/chevre/service/aggregation/event/importFromCOA.js +0 -1
  73. package/lib/chevre/service/assetTransaction/cancelReservation/start.js +0 -1
  74. package/lib/chevre/service/assetTransaction/cancelReservation.js +0 -2
  75. package/lib/chevre/service/assetTransaction/moneyTransfer.js +0 -2
  76. package/lib/chevre/service/assetTransaction/pay/exportTasksById.js +0 -1
  77. package/lib/chevre/service/assetTransaction/pay/publishPaymentUrl.js +0 -2
  78. package/lib/chevre/service/assetTransaction/pay/start/factory.js +0 -1
  79. package/lib/chevre/service/assetTransaction/pay/start/preStart/validateAcceptedPaymentMethodIfNeeded.js +0 -2
  80. package/lib/chevre/service/assetTransaction/refund.js +0 -2
  81. package/lib/chevre/service/assetTransaction/registerService/potentialActions.js +0 -2
  82. package/lib/chevre/service/assetTransaction/registerService.js +0 -4
  83. package/lib/chevre/service/assetTransaction/reserve/confirm/factory.js +0 -1
  84. package/lib/chevre/service/assetTransaction/reserve/exportTasksById.js +0 -1
  85. package/lib/chevre/service/assetTransaction/reserve/start/createSubReservations.js +0 -4
  86. package/lib/chevre/service/assetTransaction/reserve/start/factory/createReservation.js +0 -2
  87. package/lib/chevre/service/assetTransaction/reserve/start.js +0 -2
  88. package/lib/chevre/service/assetTransaction/reserve/validateStartRequest/validateMemberTierIfExists.js +0 -1
  89. package/lib/chevre/service/assetTransaction/reserve/validateStartRequest/verifyTicketTokenAsNeeded.js +0 -2
  90. package/lib/chevre/service/delivery.js +1 -3
  91. package/lib/chevre/service/event/processUpdateMovieTheater.js +0 -3
  92. package/lib/chevre/service/event/saveScreeningEventSeries.js +0 -4
  93. package/lib/chevre/service/event/saveScreeningEvents.js +0 -6
  94. package/lib/chevre/service/event.js +0 -3
  95. package/lib/chevre/service/notification/factory.js +0 -2
  96. package/lib/chevre/service/notification/notifyByEmail.js +0 -2
  97. package/lib/chevre/service/notification/triggerWebhook.js +0 -2
  98. package/lib/chevre/service/offer/event/authorize/factory.js +0 -2
  99. package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre/requestedProgramMembershipUsed2permit.js +0 -1
  100. package/lib/chevre/service/offer/event/authorize.js +0 -3
  101. package/lib/chevre/service/offer/event/importFromCOA/factory.js +0 -1
  102. package/lib/chevre/service/offer/event/searchEventTicketOffers.js +0 -3
  103. package/lib/chevre/service/offer/event/searchOfferCatalogItemAvailability.js +0 -2
  104. package/lib/chevre/service/offer/event/searchOfferCatalogItems.js +0 -1
  105. package/lib/chevre/service/offer/event/searchOffersByIds.js +0 -3
  106. package/lib/chevre/service/offer/event/voidTransaction.js +0 -2
  107. package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/authorize.js +0 -2
  108. package/lib/chevre/service/offer/eventServiceByCOA/authorize/factory.js +0 -4
  109. package/lib/chevre/service/offer/eventServiceByCOA/authorize/validateAcceptedOffers.js +0 -3
  110. package/lib/chevre/service/offer/eventServiceByCOA/authorize.js +0 -1
  111. package/lib/chevre/service/offer/eventServiceByCOA/changeOffers.js +0 -2
  112. package/lib/chevre/service/offer/factory.js +0 -1
  113. package/lib/chevre/service/offer/onEventChanged.js +0 -1
  114. package/lib/chevre/service/offer/product/factory.js +0 -3
  115. package/lib/chevre/service/offer/product/searchProductOffers.js +0 -1
  116. package/lib/chevre/service/offer/product.js +0 -2
  117. package/lib/chevre/service/offer.js +0 -1
  118. package/lib/chevre/service/order/deleteOrder.js +0 -1
  119. package/lib/chevre/service/order/onAssetTransactionStatusChanged.js +0 -2
  120. package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/factory.js +0 -1
  121. package/lib/chevre/service/order/placeOrder/createPlacingOrderFromExistingTransaction.js +0 -1
  122. package/lib/chevre/service/order/placeOrder.js +0 -1
  123. package/lib/chevre/service/order/returnOrder.js +0 -1
  124. package/lib/chevre/service/order/sendOrder.js +0 -1
  125. package/lib/chevre/service/payment/any/authorize/handlePrePublishedPaymentMethodIdOnAuthorizing.js +0 -2
  126. package/lib/chevre/service/payment/any/factory.js +0 -1
  127. package/lib/chevre/service/payment/any/onRefundActionCompletedOrFailed.js +0 -1
  128. package/lib/chevre/service/payment/any/person2username.js +0 -1
  129. package/lib/chevre/service/payment/any/verifyTicketTokenAsNeeded.js +0 -2
  130. package/lib/chevre/service/payment/any.js +0 -5
  131. package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard.js +0 -1
  132. package/lib/chevre/service/payment/creditCard/refundCreditCard.js +0 -2
  133. package/lib/chevre/service/payment/creditCard/voidTransaction.js +0 -1
  134. package/lib/chevre/service/payment/factory.js +0 -1
  135. package/lib/chevre/service/payment/movieTicket/authorize.js +0 -2
  136. package/lib/chevre/service/payment/movieTicket/refundMovieTicket.js +0 -1
  137. package/lib/chevre/service/payment/movieTicket/validation.js +0 -1
  138. package/lib/chevre/service/payment/paymentCard.js +0 -1
  139. package/lib/chevre/service/product.js +0 -1
  140. package/lib/chevre/service/report/telemetry.js +0 -15
  141. package/lib/chevre/service/reserve/cancelReservation.js +0 -3
  142. package/lib/chevre/service/reserve/confirmReservation.js +0 -1
  143. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.js +0 -1
  144. package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.js +0 -1
  145. package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.js +0 -2
  146. package/lib/chevre/service/reserve/potentialActions/onReservationUsed.js +0 -1
  147. package/lib/chevre/service/reserve/searchByOrder.js +0 -1
  148. package/lib/chevre/service/reserve/useReservation.js +0 -2
  149. package/lib/chevre/service/reserveCOA/cancelReservation.js +0 -1
  150. package/lib/chevre/service/task/acceptCOAOffer.js +0 -1
  151. package/lib/chevre/service/task/confirmReserveTransaction.js +0 -3
  152. package/lib/chevre/service/task/deletePerson.js +0 -2
  153. package/lib/chevre/service/task/onAuthorizationCreated.js +0 -1
  154. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesBySeller.js +0 -1
  155. package/lib/chevre/service/task/onResourceDeleted.js +0 -1
  156. package/lib/chevre/service/task/onResourceUpdated.js +0 -5
  157. package/lib/chevre/service/task/returnPayTransaction.js +0 -1
  158. package/lib/chevre/service/task/syncResourcesFromCOA.js +0 -5
  159. package/lib/chevre/service/task.js +0 -4
  160. package/lib/chevre/service/taskHandler.js +0 -1
  161. package/lib/chevre/service/transaction/deleteTransaction.js +0 -4
  162. package/lib/chevre/service/transaction/moneyTransfer/exportTasks/factory.js +0 -3
  163. package/lib/chevre/service/transaction/moneyTransfer.js +0 -2
  164. package/lib/chevre/service/transaction/placeOrder/confirm/validation/validateMovieTicket.js +0 -2
  165. package/lib/chevre/service/transaction/placeOrder/confirm/validation.js +0 -2
  166. package/lib/chevre/service/transaction/placeOrder/confirm.js +0 -4
  167. package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.js +0 -2
  168. package/lib/chevre/service/transaction/placeOrder/start/validateStartRequest.js +0 -1
  169. package/lib/chevre/service/transaction/returnOrder/exportTasks/factory.js +0 -1
  170. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPointAward.js +0 -2
  171. package/lib/chevre/service/transaction/returnOrder/preStart/findApplicableReturnPolicy.js +0 -2
  172. package/lib/chevre/service/transaction/returnOrder/preStart.js +0 -1
  173. package/lib/chevre/service/transaction/returnOrder.js +0 -1
  174. package/lib/chevre/service/validation/validateOrder.js +0 -2
  175. package/lib/chevre/service.js +0 -3
  176. package/lib/chevre/settings.js +0 -1
  177. package/lib/index.js +0 -1
  178. package/package.json +2 -6
@@ -15,7 +15,6 @@ class SectionRepo {
15
15
  this.civicStructureModel = connection.model(civicStructure_1.modelName, (0, civicStructure_1.createSchema)());
16
16
  this.placeModel = connection.model(place_1.modelName, (0, place_1.createSchema)());
17
17
  }
18
- // tslint:disable-next-line:max-func-body-length
19
18
  static CREATE_SECTION_MONGO_CONDITIONS(searchConditions) {
20
19
  const matchStages = [{ $match: { typeOf: { $eq: factory.placeType.ScreeningRoom } } }];
21
20
  const projectIdEq = searchConditions.project?.id?.$eq;
@@ -114,7 +113,6 @@ class SectionRepo {
114
113
  }
115
114
  return matchStages;
116
115
  }
117
- // tslint:disable-next-line:max-func-body-length
118
116
  async createSection(screeningRoomSection, options) {
119
117
  const { project, parentOrganization, movieTheaterCode, roomCode } = options;
120
118
  // 施設存在確認
@@ -163,7 +161,6 @@ class SectionRepo {
163
161
  /**
164
162
  * セクションの名称と追加特性を編集する
165
163
  */
166
- // tslint:disable-next-line:max-func-body-length
167
164
  async updateSectionByBranchCode(screeningRoomSection, $unset, options) {
168
165
  const { project, parentOrganization, movieTheaterCode, roomCode } = options;
169
166
  const doc = await this.placeModel.findOneAndUpdate({
@@ -382,7 +379,6 @@ class SectionRepo {
382
379
  // }
383
380
  // return doc.toObject();
384
381
  // }
385
- // tslint:disable-next-line:max-func-body-length
386
382
  async migrateSectionIdentifier(screeningRoomSection) {
387
383
  const screeningRoom = screeningRoomSection.containedInPlace;
388
384
  if (typeof screeningRoom?.branchCode !== 'string') {
@@ -481,7 +477,6 @@ class SectionRepo {
481
477
  }
482
478
  }
483
479
  ]);
484
- // tslint:disable-next-line:no-single-line-block-comment
485
480
  /* istanbul ignore else */
486
481
  if (typeof searchConditions.limit === 'number' && searchConditions.limit > 0) {
487
482
  const page = (typeof searchConditions.page === 'number' && searchConditions.page > 0) ? searchConditions.page : 1;
@@ -19,7 +19,6 @@ class PotentialActionRepo {
19
19
  constructor(connection) {
20
20
  this.potentialActionModel = connection.model(potentialAction_1.modelName, (0, potentialAction_1.createSchema)());
21
21
  }
22
- // tslint:disable-next-line:max-func-body-length
23
22
  static CREATE_FILTER_QUERY(params) {
24
23
  const andConditions = [];
25
24
  const projectIdEq = params.project?.id?.$eq;
@@ -12,21 +12,18 @@ class PriceSpecificationRepo {
12
12
  constructor(connection) {
13
13
  this.priceSpecificationModel = connection.model(priceSpecification_1.modelName, (0, priceSpecification_1.createSchema)());
14
14
  }
15
- // tslint:disable-next-line:cyclomatic-complexity max-func-body-length
16
15
  static CREATE_MONGO_CONDITIONS(params) {
17
16
  const andConditions = [];
18
17
  const projectIdEq = params.project?.id?.$eq;
19
18
  if (typeof projectIdEq === 'string') {
20
19
  andConditions.push({ 'project.id': { $eq: projectIdEq } });
21
20
  }
22
- // tslint:disable-next-line:no-single-line-block-comment
23
21
  /* istanbul ignore else */
24
22
  if (params.id !== undefined && params.id !== null) {
25
23
  if (typeof params.id.$eq === 'string') {
26
24
  andConditions.push({ _id: { $eq: params.id.$eq } });
27
25
  }
28
26
  }
29
- // tslint:disable-next-line:no-single-line-block-comment
30
27
  /* istanbul ignore else */
31
28
  if (params.typeOf !== undefined) {
32
29
  andConditions.push({ typeOf: params.typeOf });
@@ -107,7 +104,6 @@ class PriceSpecificationRepo {
107
104
  }
108
105
  });
109
106
  }
110
- // tslint:disable-next-line:no-single-line-block-comment
111
107
  /* istanbul ignore else */
112
108
  if (params.validFrom !== undefined) {
113
109
  andConditions.push({
@@ -117,7 +113,6 @@ class PriceSpecificationRepo {
117
113
  }
118
114
  });
119
115
  }
120
- // tslint:disable-next-line:no-single-line-block-comment
121
116
  /* istanbul ignore else */
122
117
  if (params.validThrough !== undefined) {
123
118
  andConditions.push({
@@ -164,7 +159,6 @@ class PriceSpecificationRepo {
164
159
  query.limit(params.limit)
165
160
  .skip(params.limit * (page - 1));
166
161
  }
167
- // tslint:disable-next-line:no-single-line-block-comment
168
162
  /* istanbul ignore else */
169
163
  if (params.sort?.price !== undefined) {
170
164
  query.sort({ price: params.sort.price });
@@ -27,7 +27,6 @@ class ProductRepo {
27
27
  constructor(connection) {
28
28
  this.productModel = connection.model(product_1.modelName, (0, product_1.createSchema)());
29
29
  }
30
- // tslint:disable-next-line:max-func-body-length
31
30
  static CREATE_MONGO_CONDITIONS(params) {
32
31
  // MongoDB検索条件
33
32
  const andConditions = [];
@@ -171,7 +170,6 @@ class ProductRepo {
171
170
  query.limit(conditions.limit)
172
171
  .skip(conditions.limit * (page - 1));
173
172
  }
174
- // tslint:disable-next-line:no-single-line-block-comment
175
173
  /* istanbul ignore else */
176
174
  if (conditions.sort?.productID !== undefined) {
177
175
  query.sort({ productID: conditions.sort.productID });
@@ -12,7 +12,6 @@ class ProductModelRepo {
12
12
  constructor(connection) {
13
13
  this.productModelModel = connection.model(productModel_1.modelName, (0, productModel_1.createSchema)());
14
14
  }
15
- // tslint:disable-next-line:max-func-body-length
16
15
  static CREATE_MONGO_CONDITIONS(params) {
17
16
  // MongoDB検索条件
18
17
  const andConditions = [];
@@ -19,7 +19,6 @@ class OfferRateLimitRepo {
19
19
  const dateNow = moment(ratelimitKey.reservationFor.startDate);
20
20
  const unitInSeconds = Number(ratelimitKey.reservedTicket.ticketType.validRateLimit.unitInSeconds.toString());
21
21
  const validFrom = dateNow.unix() - (dateNow.unix() % unitInSeconds);
22
- // tslint:disable-next-line:max-line-length
23
22
  return `${OfferRateLimitRepo.KEY_PREFIX_NEW}:${ratelimitKey.reservedTicket.ticketType.validRateLimit.scope}:${validFrom.toString()}`;
24
23
  }
25
24
  /**
@@ -13,7 +13,6 @@ class ReservationRepo {
13
13
  constructor(connection) {
14
14
  this.reservationModel = connection.model(reservation_1.modelName, (0, reservation_1.createSchema)());
15
15
  }
16
- // tslint:disable-next-line:cyclomatic-complexity max-func-body-length
17
16
  static CREATE_MONGO_CONDITIONS(params) {
18
17
  // MongoDB検索条件
19
18
  const andConditions = [
@@ -27,12 +26,10 @@ class ReservationRepo {
27
26
  if (typeof providerIdEq === 'string') {
28
27
  andConditions.push({ 'provider.id': { $eq: providerIdEq } });
29
28
  }
30
- // tslint:disable-next-line:no-single-line-block-comment
31
29
  /* istanbul ignore else */
32
30
  if (Array.isArray(params.ids)) {
33
31
  andConditions.push({ _id: { $in: params.ids } });
34
32
  }
35
- // tslint:disable-next-line:no-single-line-block-comment
36
33
  /* istanbul ignore else */
37
34
  if (params.id !== undefined && params.id !== null) {
38
35
  if (typeof params.id.$eq === 'string') {
@@ -48,7 +45,6 @@ class ReservationRepo {
48
45
  andConditions.push({ _id: { $nin: params.id.$nin } });
49
46
  }
50
47
  }
51
- // tslint:disable-next-line:no-single-line-block-comment
52
48
  /* istanbul ignore else */
53
49
  if (Array.isArray(params.reservationNumbers)) {
54
50
  andConditions.push({
@@ -57,7 +53,6 @@ class ReservationRepo {
57
53
  }
58
54
  });
59
55
  }
60
- // tslint:disable-next-line:no-single-line-block-comment
61
56
  /* istanbul ignore else */
62
57
  if (params.reservationNumber !== undefined && params.reservationNumber !== null) {
63
58
  if (typeof params.reservationNumber === 'string') {
@@ -100,7 +95,6 @@ class ReservationRepo {
100
95
  }
101
96
  }
102
97
  }
103
- // tslint:disable-next-line:no-single-line-block-comment
104
98
  /* istanbul ignore else */
105
99
  if (params.additionalTicketText !== undefined && params.additionalTicketText !== null) {
106
100
  if (typeof params.additionalTicketText === 'string') {
@@ -169,26 +163,22 @@ class ReservationRepo {
169
163
  if (Array.isArray(reservationStatusIn)) {
170
164
  andConditions.push({ reservationStatus: { $in: reservationStatusIn } });
171
165
  }
172
- // tslint:disable-next-line:no-single-line-block-comment
173
166
  /* istanbul ignore else */
174
167
  if (Array.isArray(params.reservationStatuses)) {
175
168
  andConditions.push({ reservationStatus: { $in: params.reservationStatuses } });
176
169
  }
177
- // tslint:disable-next-line:no-single-line-block-comment
178
170
  /* istanbul ignore else */
179
171
  if (params.modifiedFrom instanceof Date) {
180
172
  andConditions.push({
181
173
  modifiedTime: { $gte: params.modifiedFrom }
182
174
  });
183
175
  }
184
- // tslint:disable-next-line:no-single-line-block-comment
185
176
  /* istanbul ignore else */
186
177
  if (params.modifiedThrough instanceof Date) {
187
178
  andConditions.push({
188
179
  modifiedTime: { $lte: params.modifiedThrough }
189
180
  });
190
181
  }
191
- // tslint:disable-next-line:no-single-line-block-comment
192
182
  /* istanbul ignore else */
193
183
  if (params.bookingFrom instanceof Date) {
194
184
  andConditions.push({
@@ -198,7 +188,6 @@ class ReservationRepo {
198
188
  }
199
189
  });
200
190
  }
201
- // tslint:disable-next-line:no-single-line-block-comment
202
191
  /* istanbul ignore else */
203
192
  if (params.bookingThrough instanceof Date) {
204
193
  andConditions.push({
@@ -258,10 +247,8 @@ class ReservationRepo {
258
247
  });
259
248
  }
260
249
  }
261
- // tslint:disable-next-line:no-single-line-block-comment
262
250
  /* istanbul ignore else */
263
251
  if (params.reservationFor !== undefined) {
264
- // tslint:disable-next-line:no-single-line-block-comment
265
252
  /* istanbul ignore else */
266
253
  if (params.reservationFor.typeOf !== undefined) {
267
254
  andConditions.push({
@@ -271,7 +258,6 @@ class ReservationRepo {
271
258
  }
272
259
  });
273
260
  }
274
- // tslint:disable-next-line:no-single-line-block-comment
275
261
  /* istanbul ignore else */
276
262
  if (Array.isArray(params.reservationFor.ids)) {
277
263
  andConditions.push({
@@ -281,10 +267,8 @@ class ReservationRepo {
281
267
  }
282
268
  });
283
269
  }
284
- // tslint:disable-next-line:no-single-line-block-comment
285
270
  /* istanbul ignore else */
286
271
  if (params.reservationFor.location !== undefined) {
287
- // tslint:disable-next-line:no-single-line-block-comment
288
272
  /* istanbul ignore else */
289
273
  if (Array.isArray(params.reservationFor.location.ids)) {
290
274
  andConditions.push({
@@ -294,7 +278,6 @@ class ReservationRepo {
294
278
  }
295
279
  });
296
280
  }
297
- // tslint:disable-next-line:no-single-line-block-comment
298
281
  /* istanbul ignore else */
299
282
  if (Array.isArray(params.reservationFor.location.branchCodes)) {
300
283
  andConditions.push({
@@ -305,7 +288,6 @@ class ReservationRepo {
305
288
  });
306
289
  }
307
290
  }
308
- // tslint:disable-next-line:no-single-line-block-comment
309
291
  /* istanbul ignore else */
310
292
  if (params.reservationFor.startFrom instanceof Date) {
311
293
  andConditions.push({
@@ -315,7 +297,6 @@ class ReservationRepo {
315
297
  }
316
298
  });
317
299
  }
318
- // tslint:disable-next-line:no-single-line-block-comment
319
300
  /* istanbul ignore else */
320
301
  if (params.reservationFor.startThrough instanceof Date) {
321
302
  andConditions.push({
@@ -325,7 +306,6 @@ class ReservationRepo {
325
306
  }
326
307
  });
327
308
  }
328
- // tslint:disable-next-line:no-single-line-block-comment
329
309
  /* istanbul ignore else */
330
310
  if (params.reservationFor.endFrom instanceof Date) {
331
311
  andConditions.push({
@@ -335,7 +315,6 @@ class ReservationRepo {
335
315
  }
336
316
  });
337
317
  }
338
- // tslint:disable-next-line:no-single-line-block-comment
339
318
  /* istanbul ignore else */
340
319
  if (params.reservationFor.endThrough instanceof Date) {
341
320
  andConditions.push({
@@ -345,10 +324,8 @@ class ReservationRepo {
345
324
  }
346
325
  });
347
326
  }
348
- // tslint:disable-next-line:no-single-line-block-comment
349
327
  /* istanbul ignore else */
350
328
  if (params.reservationFor.superEvent !== undefined) {
351
- // tslint:disable-next-line:no-single-line-block-comment
352
329
  /* istanbul ignore else */
353
330
  if (params.reservationFor.superEvent.id !== undefined) {
354
331
  andConditions.push({
@@ -358,7 +335,6 @@ class ReservationRepo {
358
335
  }
359
336
  });
360
337
  }
361
- // tslint:disable-next-line:no-single-line-block-comment
362
338
  /* istanbul ignore else */
363
339
  if (Array.isArray(params.reservationFor.superEvent.ids)) {
364
340
  andConditions.push({
@@ -368,10 +344,8 @@ class ReservationRepo {
368
344
  }
369
345
  });
370
346
  }
371
- // tslint:disable-next-line:no-single-line-block-comment
372
347
  /* istanbul ignore else */
373
348
  if (params.reservationFor.superEvent.location !== undefined) {
374
- // tslint:disable-next-line:no-single-line-block-comment
375
349
  /* istanbul ignore else */
376
350
  if (Array.isArray(params.reservationFor.superEvent.location.ids)) {
377
351
  andConditions.push({
@@ -381,7 +355,6 @@ class ReservationRepo {
381
355
  }
382
356
  });
383
357
  }
384
- // tslint:disable-next-line:no-single-line-block-comment
385
358
  /* istanbul ignore else */
386
359
  if (Array.isArray(params.reservationFor.superEvent.location.branchCodes)) {
387
360
  andConditions.push({
@@ -392,10 +365,8 @@ class ReservationRepo {
392
365
  });
393
366
  }
394
367
  }
395
- // tslint:disable-next-line:no-single-line-block-comment
396
368
  /* istanbul ignore else */
397
369
  if (params.reservationFor.superEvent.workPerformed !== undefined) {
398
- // tslint:disable-next-line:no-single-line-block-comment
399
370
  /* istanbul ignore else */
400
371
  if (Array.isArray(params.reservationFor.superEvent.workPerformed.ids)) {
401
372
  andConditions.push({
@@ -405,7 +376,6 @@ class ReservationRepo {
405
376
  }
406
377
  });
407
378
  }
408
- // tslint:disable-next-line:no-single-line-block-comment
409
379
  /* istanbul ignore else */
410
380
  if (Array.isArray(params.reservationFor.superEvent.workPerformed.identifiers)) {
411
381
  andConditions.push({
@@ -423,13 +393,10 @@ class ReservationRepo {
423
393
  break;
424
394
  default:
425
395
  }
426
- // tslint:disable-next-line:no-single-line-block-comment
427
396
  /* istanbul ignore else */
428
397
  if (params.reservedTicket !== undefined) {
429
- // tslint:disable-next-line:no-single-line-block-comment
430
398
  /* istanbul ignore else */
431
399
  if (params.reservedTicket.ticketType !== undefined) {
432
- // tslint:disable-next-line:no-single-line-block-comment
433
400
  /* istanbul ignore else */
434
401
  if (Array.isArray(params.reservedTicket.ticketType.ids)) {
435
402
  andConditions.push({
@@ -439,10 +406,8 @@ class ReservationRepo {
439
406
  }
440
407
  });
441
408
  }
442
- // tslint:disable-next-line:no-single-line-block-comment
443
409
  /* istanbul ignore else */
444
410
  if (params.reservedTicket.ticketType.category !== undefined) {
445
- // tslint:disable-next-line:no-single-line-block-comment
446
411
  /* istanbul ignore else */
447
412
  if (Array.isArray(params.reservedTicket.ticketType.category.ids)) {
448
413
  andConditions.push({
@@ -452,7 +417,6 @@ class ReservationRepo {
452
417
  }
453
418
  });
454
419
  }
455
- // tslint:disable-next-line:no-single-line-block-comment
456
420
  /* istanbul ignore else */
457
421
  if (params.reservedTicket.ticketType.category.codeValue !== undefined
458
422
  && params.reservedTicket.ticketType.category !== null) {
@@ -467,10 +431,8 @@ class ReservationRepo {
467
431
  }
468
432
  }
469
433
  }
470
- // tslint:disable-next-line:no-single-line-block-comment
471
434
  /* istanbul ignore else */
472
435
  if (params.reservedTicket.ticketedSeat !== undefined) {
473
- // tslint:disable-next-line:no-single-line-block-comment
474
436
  /* istanbul ignore else */
475
437
  if (Array.isArray(params.reservedTicket.ticketedSeat.seatNumbers)) {
476
438
  andConditions.push({
@@ -480,7 +442,6 @@ class ReservationRepo {
480
442
  }
481
443
  });
482
444
  }
483
- // tslint:disable-next-line:no-single-line-block-comment
484
445
  /* istanbul ignore else */
485
446
  if (Array.isArray(params.reservedTicket.ticketedSeat.seatRows)) {
486
447
  andConditions.push({
@@ -490,7 +451,6 @@ class ReservationRepo {
490
451
  }
491
452
  });
492
453
  }
493
- // tslint:disable-next-line:no-single-line-block-comment
494
454
  /* istanbul ignore else */
495
455
  if (Array.isArray(params.reservedTicket.ticketedSeat.seatSections)) {
496
456
  andConditions.push({
@@ -500,7 +460,6 @@ class ReservationRepo {
500
460
  }
501
461
  });
502
462
  }
503
- // tslint:disable-next-line:no-single-line-block-comment
504
463
  /* istanbul ignore else */
505
464
  const ticketedSeatSeatingTypeIn = params.reservedTicket.ticketedSeat?.seatingType?.$in;
506
465
  if (Array.isArray(ticketedSeatSeatingTypeIn)) {
@@ -557,10 +516,8 @@ class ReservationRepo {
557
516
  }
558
517
  });
559
518
  }
560
- // tslint:disable-next-line:no-single-line-block-comment
561
519
  /* istanbul ignore else */
562
520
  if (params.underName !== undefined) {
563
- // tslint:disable-next-line:no-single-line-block-comment
564
521
  /* istanbul ignore else */
565
522
  if (typeof params.underName.id === 'string' && params.underName.id.length > 0) {
566
523
  andConditions.push({
@@ -570,7 +527,6 @@ class ReservationRepo {
570
527
  }
571
528
  });
572
529
  }
573
- // tslint:disable-next-line:no-single-line-block-comment
574
530
  /* istanbul ignore else */
575
531
  if (typeof params.underName.email === 'string') {
576
532
  if (params.underName.email.length > 0) {
@@ -595,7 +551,6 @@ class ReservationRepo {
595
551
  });
596
552
  }
597
553
  }
598
- // tslint:disable-next-line:no-single-line-block-comment
599
554
  /* istanbul ignore else */
600
555
  if (typeof params.underName.name === 'string') {
601
556
  if (params.underName.name.length > 0) {
@@ -620,7 +575,6 @@ class ReservationRepo {
620
575
  });
621
576
  }
622
577
  }
623
- // tslint:disable-next-line:no-single-line-block-comment
624
578
  /* istanbul ignore else */
625
579
  if (typeof params.underName.telephone === 'string' && params.underName.telephone.length > 0) {
626
580
  andConditions.push({
@@ -630,7 +584,6 @@ class ReservationRepo {
630
584
  }
631
585
  });
632
586
  }
633
- // tslint:disable-next-line:no-single-line-block-comment
634
587
  /* istanbul ignore else */
635
588
  if (typeof params.underName.givenName === 'string') {
636
589
  if (params.underName.givenName.length > 0) {
@@ -655,7 +608,6 @@ class ReservationRepo {
655
608
  });
656
609
  }
657
610
  }
658
- // tslint:disable-next-line:no-single-line-block-comment
659
611
  /* istanbul ignore else */
660
612
  if (typeof params.underName.familyName === 'string') {
661
613
  if (params.underName.familyName.length > 0) {
@@ -680,7 +632,6 @@ class ReservationRepo {
680
632
  });
681
633
  }
682
634
  }
683
- // tslint:disable-next-line:no-single-line-block-comment
684
635
  /* istanbul ignore else */
685
636
  if (params.underName.identifier !== undefined) {
686
637
  if (Array.isArray(params.underName.identifier.$all)) {
@@ -715,7 +666,6 @@ class ReservationRepo {
715
666
  });
716
667
  }
717
668
  }
718
- // tslint:disable-next-line:no-single-line-block-comment
719
669
  /* istanbul ignore else */
720
670
  if (Array.isArray(params.underName.identifiers)) {
721
671
  andConditions.push({
@@ -726,21 +676,18 @@ class ReservationRepo {
726
676
  });
727
677
  }
728
678
  }
729
- // tslint:disable-next-line:no-single-line-block-comment
730
679
  /* istanbul ignore else */
731
680
  if (typeof params.attended === 'boolean') {
732
681
  andConditions.push({
733
682
  attended: params.attended
734
683
  });
735
684
  }
736
- // tslint:disable-next-line:no-single-line-block-comment
737
685
  /* istanbul ignore else */
738
686
  if (typeof params.checkedIn === 'boolean') {
739
687
  andConditions.push({
740
688
  checkedIn: params.checkedIn
741
689
  });
742
690
  }
743
- // tslint:disable-next-line:no-single-line-block-comment
744
691
  /* istanbul ignore else */
745
692
  if (params.additionalProperty !== undefined) {
746
693
  if (Array.isArray(params.additionalProperty.$all)) {
@@ -866,7 +813,6 @@ class ReservationRepo {
866
813
  query.limit(params.limit)
867
814
  .skip(params.limit * (page - 1));
868
815
  }
869
- // tslint:disable-next-line:no-single-line-block-comment
870
816
  /* istanbul ignore else */
871
817
  if (params.sort?.bookingTime !== undefined) {
872
818
  query.sort({ bookingTime: params.sort.bookingTime });
@@ -59,7 +59,6 @@ class RoleRepo {
59
59
  query.limit(params.limit)
60
60
  .skip(params.limit * (page - 1));
61
61
  }
62
- // tslint:disable-next-line:no-single-line-block-comment
63
62
  /* istanbul ignore else */
64
63
  if (params.sort !== undefined) {
65
64
  query.sort(params.sort);
@@ -26,7 +26,6 @@ class SellerRepo {
26
26
  constructor(connection) {
27
27
  this.sellerModel = connection.model(seller_1.modelName, (0, seller_1.createSchema)());
28
28
  }
29
- // tslint:disable-next-line:max-func-body-length
30
29
  static CREATE_MONGO_CONDITIONS(params) {
31
30
  const andConditions = [];
32
31
  const projectIdEq = params.project?.id?.$eq;
@@ -179,7 +178,6 @@ class SellerRepo {
179
178
  if (exclusion.length > 0) {
180
179
  exclusion.forEach((field) => {
181
180
  if (typeof projectStage[field] === 'string' || typeof projectStage[field] === 'object') {
182
- // tslint:disable-next-line:no-dynamic-delete
183
181
  delete projectStage[field];
184
182
  }
185
183
  });
@@ -247,7 +245,6 @@ class SellerRepo {
247
245
  : [],
248
246
  { $project: projectStage }
249
247
  ]);
250
- // tslint:disable-next-line:no-single-line-block-comment
251
248
  /* istanbul ignore else */
252
249
  if (typeof conditions.limit === 'number' && conditions.limit > 0) {
253
250
  const page = (typeof conditions.page === 'number' && conditions.page > 0) ? conditions.page : 1;
@@ -12,7 +12,6 @@ class SellerReturnPolicyRepo {
12
12
  constructor(connection) {
13
13
  this.sellerReturnPolicyModel = connection.model(sellerReturnPolicy_1.modelName, (0, sellerReturnPolicy_1.createSchema)());
14
14
  }
15
- // tslint:disable-next-line:max-func-body-length
16
15
  static CREATE_FILTER_QUERY(params) {
17
16
  const andConditions = [];
18
17
  const projectIdEq = params.project?.id?.$eq;
@@ -12,7 +12,6 @@ class ServiceOutputRepo {
12
12
  constructor(connection) {
13
13
  this.serviceOutputModel = connection.model(serviceOutput_1.modelName, (0, serviceOutput_1.createSchema)());
14
14
  }
15
- // tslint:disable-next-line:max-func-body-length
16
15
  static CREATE_MONGO_CONDITIONS(params) {
17
16
  // MongoDB検索条件
18
17
  const andConditions = [];
@@ -119,7 +118,6 @@ class ServiceOutputRepo {
119
118
  query.limit(params.limit)
120
119
  .skip(params.limit * (page - 1));
121
120
  }
122
- // tslint:disable-next-line:no-single-line-block-comment
123
121
  /* istanbul ignore else */
124
122
  // if (params.sort !== undefined) {
125
123
  // query.sort(params.sort);
@@ -3,7 +3,6 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.ServiceOutputIdentifierRepo = void 0;
4
4
  // import * as cdigit from 'cdigit';
5
5
  const moment = require("moment-timezone");
6
- // tslint:disable-next-line:no-require-imports no-var-requires
7
6
  // const fpe = require('node-fpe-v1');
8
7
  const factory = require("../factory");
9
8
  const transactionNumber_1 = require("../factory/transactionNumber");
@@ -69,7 +69,6 @@ class StockHolderRepo {
69
69
  /**
70
70
  * 座席をロックする
71
71
  */
72
- // tslint:disable-next-line:max-func-body-length
73
72
  async lock(lockKey) {
74
73
  if (!(lockKey.expires instanceof Date)) {
75
74
  throw new factory.errors.Argument('expires', 'must be Date');
@@ -253,7 +252,6 @@ class StockHolderRepo {
253
252
  /**
254
253
  * 新リポジトリを使用するかどうか
255
254
  */
256
- // tslint:disable-next-line:prefer-function-over-method
257
255
  useMongoose(params) {
258
256
  if (!(params.startDate instanceof Date)) {
259
257
  throw new factory.errors.Argument('startDate', 'must be Date');
@@ -53,7 +53,6 @@ class TaskRepo {
53
53
  constructor(connection) {
54
54
  this.taskModel = connection.model(task_2.modelName, (0, task_2.createSchema)());
55
55
  }
56
- // tslint:disable-next-line:cyclomatic-complexity max-func-body-length
57
56
  static CREATE_MONGO_CONDITIONS(params) {
58
57
  const andConditions = [];
59
58
  const idEq = params.id?.$eq;
@@ -361,7 +360,6 @@ class TaskRepo {
361
360
  .exec();
362
361
  }
363
362
  if (doc === null) {
364
- // tslint:disable-next-line:no-null-keyword
365
363
  return null;
366
364
  }
367
365
  return doc;
@@ -407,7 +405,6 @@ class TaskRepo {
407
405
  .lean() // lean(2024-09-26~)
408
406
  .exec();
409
407
  if (doc === null) {
410
- // tslint:disable-next-line:no-null-keyword
411
408
  return null;
412
409
  }
413
410
  return doc;
@@ -496,7 +493,6 @@ class TaskRepo {
496
493
  .lean()
497
494
  .exec();
498
495
  if (doc === null) {
499
- // tslint:disable-next-line:no-null-keyword
500
496
  return null;
501
497
  }
502
498
  let changedTask;
@@ -789,7 +785,6 @@ class TaskRepo {
789
785
  }));
790
786
  return { statuses };
791
787
  }
792
- // tslint:disable-next-line:max-func-body-length
793
788
  async agggregateByStatus(params) {
794
789
  const matchConditions = params.matchConditions;
795
790
  const taskStatus = params.status;
@@ -828,7 +823,6 @@ class TaskRepo {
828
823
  // console.dir(explainResult, { depth: null });
829
824
  // return;
830
825
  const aggregations = await aggregate1.exec();
831
- // tslint:disable-next-line:no-magic-numbers
832
826
  const percents = [50, 95, 99];
833
827
  if (aggregations.length === 0) {
834
828
  return {
@@ -850,7 +844,6 @@ class TaskRepo {
850
844
  const ranks4percentile = percents.map((percentile) => {
851
845
  return {
852
846
  percentile,
853
- // tslint:disable-next-line:no-magic-numbers
854
847
  rank: Math.floor(aggregations[0].taskCount * percentile / 100)
855
848
  };
856
849
  });