@chevre/domain 21.37.0 → 22.0.0-alpha.0

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 (352) hide show
  1. package/example/src/chevre/findReservationByCode.ts +1 -1
  2. package/example/src/chevre/findValidAuthorization.ts +1 -1
  3. package/example/src/chevre/transaction/processPlaceOrder.ts +11 -5
  4. package/lib/chevre/repo/acceptedOffer.d.ts +1 -1
  5. package/lib/chevre/repo/acceptedOffer.js +4 -4
  6. package/lib/chevre/repo/account.d.ts +1 -1
  7. package/lib/chevre/repo/account.js +5 -5
  8. package/lib/chevre/repo/accountTitle.d.ts +1 -1
  9. package/lib/chevre/repo/accountTitle.js +3 -3
  10. package/lib/chevre/repo/accountTransaction.d.ts +1 -1
  11. package/lib/chevre/repo/accountTransaction.js +4 -4
  12. package/lib/chevre/repo/accountingReport.d.ts +1 -1
  13. package/lib/chevre/repo/accountingReport.js +4 -4
  14. package/lib/chevre/repo/action.d.ts +1 -1
  15. package/lib/chevre/repo/action.js +4 -4
  16. package/lib/chevre/repo/additionalProperty.d.ts +1 -1
  17. package/lib/chevre/repo/additionalProperty.js +4 -4
  18. package/lib/chevre/repo/aggregateOffer.d.ts +1 -1
  19. package/lib/chevre/repo/aggregateOffer.js +6 -6
  20. package/lib/chevre/repo/aggregateReservation.d.ts +1 -1
  21. package/lib/chevre/repo/aggregateReservation.js +4 -4
  22. package/lib/chevre/repo/assetTransaction.d.ts +1 -1
  23. package/lib/chevre/repo/assetTransaction.js +5 -5
  24. package/lib/chevre/repo/categoryCode.d.ts +1 -1
  25. package/lib/chevre/repo/categoryCode.js +6 -6
  26. package/lib/chevre/repo/comment.d.ts +1 -1
  27. package/lib/chevre/repo/comment.js +4 -4
  28. package/lib/chevre/repo/creativeWork.d.ts +1 -1
  29. package/lib/chevre/repo/creativeWork.js +4 -4
  30. package/lib/chevre/repo/customer.d.ts +1 -1
  31. package/lib/chevre/repo/customer.js +4 -4
  32. package/lib/chevre/repo/customerType.d.ts +1 -1
  33. package/lib/chevre/repo/customerType.js +4 -4
  34. package/lib/chevre/repo/emailMessage.d.ts +1 -1
  35. package/lib/chevre/repo/emailMessage.js +4 -4
  36. package/lib/chevre/repo/event.d.ts +1 -1
  37. package/lib/chevre/repo/event.js +5 -5
  38. package/lib/chevre/repo/member.d.ts +1 -1
  39. package/lib/chevre/repo/member.js +4 -4
  40. package/lib/chevre/repo/merchantReturnPolicy.d.ts +1 -1
  41. package/lib/chevre/repo/merchantReturnPolicy.js +4 -4
  42. package/lib/chevre/repo/note.d.ts +1 -1
  43. package/lib/chevre/repo/note.js +4 -4
  44. package/lib/chevre/repo/offer.d.ts +1 -1
  45. package/lib/chevre/repo/offer.js +7 -7
  46. package/lib/chevre/repo/offerCatalog.d.ts +1 -1
  47. package/lib/chevre/repo/offerCatalog.js +4 -4
  48. package/lib/chevre/repo/offerCatalogItem.d.ts +1 -1
  49. package/lib/chevre/repo/offerCatalogItem.js +5 -5
  50. package/lib/chevre/repo/offerItemCondition.d.ts +1 -1
  51. package/lib/chevre/repo/offerItemCondition.js +4 -4
  52. package/lib/chevre/repo/order.d.ts +1 -1
  53. package/lib/chevre/repo/order.js +5 -5
  54. package/lib/chevre/repo/orderInTransaction.d.ts +1 -1
  55. package/lib/chevre/repo/orderInTransaction.js +3 -3
  56. package/lib/chevre/repo/orderNumber.d.ts +1 -1
  57. package/lib/chevre/repo/orderNumber.js +6 -6
  58. package/lib/chevre/repo/ownershipInfo.d.ts +1 -1
  59. package/lib/chevre/repo/ownershipInfo.js +4 -4
  60. package/lib/chevre/repo/passport.d.ts +7 -0
  61. package/lib/chevre/repo/passport.js +4 -1
  62. package/lib/chevre/repo/paymentMethod/creditCard.d.ts +1 -1
  63. package/lib/chevre/repo/paymentMethod/creditCard.js +3 -3
  64. package/lib/chevre/repo/paymentService.d.ts +1 -1
  65. package/lib/chevre/repo/paymentService.js +4 -4
  66. package/lib/chevre/repo/paymentServiceProvider.d.ts +1 -1
  67. package/lib/chevre/repo/paymentServiceProvider.js +3 -3
  68. package/lib/chevre/repo/permit.d.ts +1 -1
  69. package/lib/chevre/repo/permit.js +3 -3
  70. package/lib/chevre/repo/person.d.ts +1 -1
  71. package/lib/chevre/repo/person.js +10 -10
  72. package/lib/chevre/repo/place/busStop.d.ts +1 -1
  73. package/lib/chevre/repo/place/busStop.js +4 -4
  74. package/lib/chevre/repo/place/hasPOS.d.ts +1 -1
  75. package/lib/chevre/repo/place/hasPOS.js +3 -3
  76. package/lib/chevre/repo/place/movieTheater.d.ts +1 -1
  77. package/lib/chevre/repo/place/movieTheater.js +4 -4
  78. package/lib/chevre/repo/place/screeningRoom.d.ts +1 -1
  79. package/lib/chevre/repo/place/screeningRoom.js +3 -3
  80. package/lib/chevre/repo/place/seat.d.ts +1 -1
  81. package/lib/chevre/repo/place/seat.js +4 -4
  82. package/lib/chevre/repo/place/section.d.ts +1 -1
  83. package/lib/chevre/repo/place/section.js +3 -3
  84. package/lib/chevre/repo/priceSpecification.d.ts +1 -1
  85. package/lib/chevre/repo/priceSpecification.js +5 -5
  86. package/lib/chevre/repo/product.d.ts +1 -1
  87. package/lib/chevre/repo/product.js +4 -4
  88. package/lib/chevre/repo/productModel.d.ts +1 -1
  89. package/lib/chevre/repo/productModel.js +4 -4
  90. package/lib/chevre/repo/productOffer.d.ts +1 -1
  91. package/lib/chevre/repo/productOffer.js +3 -3
  92. package/lib/chevre/repo/project.d.ts +2 -1
  93. package/lib/chevre/repo/project.js +5 -4
  94. package/lib/chevre/repo/projectMakesOffer.d.ts +1 -1
  95. package/lib/chevre/repo/projectMakesOffer.js +3 -3
  96. package/lib/chevre/repo/rateLimit/offer.d.ts +1 -1
  97. package/lib/chevre/repo/rateLimit/offer.js +9 -8
  98. package/lib/chevre/repo/reservation.d.ts +1 -1
  99. package/lib/chevre/repo/reservation.js +5 -5
  100. package/lib/chevre/repo/role.d.ts +1 -1
  101. package/lib/chevre/repo/role.js +4 -4
  102. package/lib/chevre/repo/seller.d.ts +4 -2
  103. package/lib/chevre/repo/seller.js +19 -17
  104. package/lib/chevre/repo/sellerPaymentAccepted.d.ts +1 -1
  105. package/lib/chevre/repo/sellerPaymentAccepted.js +3 -3
  106. package/lib/chevre/repo/serviceOutput.d.ts +1 -1
  107. package/lib/chevre/repo/serviceOutput.js +4 -4
  108. package/lib/chevre/repo/serviceOutputIdentifier.d.ts +1 -1
  109. package/lib/chevre/repo/serviceOutputIdentifier.js +6 -6
  110. package/lib/chevre/repo/stockHolder.d.ts +1 -1
  111. package/lib/chevre/repo/stockHolder.js +21 -21
  112. package/lib/chevre/repo/task.d.ts +1 -1
  113. package/lib/chevre/repo/task.js +5 -5
  114. package/lib/chevre/repo/telemetry.d.ts +1 -1
  115. package/lib/chevre/repo/telemetry.js +3 -3
  116. package/lib/chevre/repo/transaction.d.ts +1 -4
  117. package/lib/chevre/repo/transaction.js +6 -6
  118. package/lib/chevre/repo/transactionNumber.d.ts +1 -1
  119. package/lib/chevre/repo/transactionNumber.js +6 -6
  120. package/lib/chevre/repo/transactionProcess.d.ts +1 -1
  121. package/lib/chevre/repo/transactionProcess.js +5 -5
  122. package/lib/chevre/repo/trip.d.ts +1 -1
  123. package/lib/chevre/repo/trip.js +4 -4
  124. package/lib/chevre/repository.d.ts +64 -64
  125. package/lib/chevre/repository.js +65 -65
  126. package/lib/chevre/service/account.d.ts +2 -2
  127. package/lib/chevre/service/accountTransaction/deposit.d.ts +2 -2
  128. package/lib/chevre/service/accountTransaction/transfer.d.ts +2 -2
  129. package/lib/chevre/service/accountTransaction/withdraw.d.ts +2 -2
  130. package/lib/chevre/service/accountTransaction.d.ts +1 -1
  131. package/lib/chevre/service/aggregation/event/aggregateOffers.d.ts +10 -10
  132. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.d.ts +9 -9
  133. package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.d.ts +7 -7
  134. package/lib/chevre/service/aggregation/event/findEventOffers.d.ts +3 -3
  135. package/lib/chevre/service/aggregation/event/importFromCOA.d.ts +1 -1
  136. package/lib/chevre/service/aggregation/project.d.ts +3 -3
  137. package/lib/chevre/service/aggregation/system.d.ts +6 -6
  138. package/lib/chevre/service/assetTransaction/cancelReservation.d.ts +4 -4
  139. package/lib/chevre/service/assetTransaction/moneyTransfer.d.ts +4 -4
  140. package/lib/chevre/service/assetTransaction/moneyTransfer.js +1 -1
  141. package/lib/chevre/service/assetTransaction/pay/account/validation.d.ts +2 -2
  142. package/lib/chevre/service/assetTransaction/pay.d.ts +16 -16
  143. package/lib/chevre/service/assetTransaction/refund.d.ts +5 -5
  144. package/lib/chevre/service/assetTransaction/registerService.d.ts +8 -8
  145. package/lib/chevre/service/assetTransaction/reserve/cancel.d.ts +6 -6
  146. package/lib/chevre/service/assetTransaction/reserve/confirm.d.ts +5 -5
  147. package/lib/chevre/service/assetTransaction/reserve/exportTasksById.d.ts +2 -2
  148. package/lib/chevre/service/assetTransaction/reserve/start/createSubReservations.d.ts +5 -5
  149. package/lib/chevre/service/assetTransaction/reserve/start.d.ts +14 -14
  150. package/lib/chevre/service/assetTransaction.d.ts +2 -2
  151. package/lib/chevre/service/code.d.ts +2 -2
  152. package/lib/chevre/service/delivery.d.ts +7 -7
  153. package/lib/chevre/service/event/createEvent.d.ts +4 -4
  154. package/lib/chevre/service/event.d.ts +9 -9
  155. package/lib/chevre/service/iam.d.ts +2 -2
  156. package/lib/chevre/service/moneyTransfer.d.ts +5 -5
  157. package/lib/chevre/service/notification.d.ts +2 -2
  158. package/lib/chevre/service/offer/any.d.ts +4 -4
  159. package/lib/chevre/service/offer/any.js +2 -2
  160. package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre.d.ts +16 -16
  161. package/lib/chevre/service/offer/event/authorize.d.ts +20 -20
  162. package/lib/chevre/service/offer/event/importFromCOA.d.ts +3 -3
  163. package/lib/chevre/service/offer/event/searchEventTicketOffers.d.ts +7 -7
  164. package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4chevre.d.ts +8 -8
  165. package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4coa.d.ts +1 -1
  166. package/lib/chevre/service/offer/event/voidTransaction.d.ts +8 -8
  167. package/lib/chevre/service/offer/event/voidTransactionByActionId.d.ts +8 -8
  168. package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer.d.ts +3 -3
  169. package/lib/chevre/service/offer/eventServiceByCOA/authorize.d.ts +8 -8
  170. package/lib/chevre/service/offer/eventServiceByCOA/findAcceptAction.d.ts +2 -2
  171. package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.d.ts +1 -1
  172. package/lib/chevre/service/offer/moneyTransfer/authorize.d.ts +8 -8
  173. package/lib/chevre/service/offer/moneyTransfer/returnMoneyTransfer.d.ts +5 -5
  174. package/lib/chevre/service/offer/moneyTransfer/settleTransaction.d.ts +3 -3
  175. package/lib/chevre/service/offer/moneyTransfer/voidTransaction.d.ts +3 -3
  176. package/lib/chevre/service/offer/onEventChanged.d.ts +3 -3
  177. package/lib/chevre/service/offer/product/searchProductOffers.d.ts +3 -3
  178. package/lib/chevre/service/offer/product.d.ts +15 -15
  179. package/lib/chevre/service/offer/product.js +2 -2
  180. package/lib/chevre/service/offer.d.ts +4 -4
  181. package/lib/chevre/service/order/confirmPayTransaction.d.ts +9 -9
  182. package/lib/chevre/service/order/createAccountingReportIfNotExist.d.ts +1 -1
  183. package/lib/chevre/service/order/deleteOrder.d.ts +7 -7
  184. package/lib/chevre/service/order/findPlaceOrderTransaction.d.ts +1 -1
  185. package/lib/chevre/service/order/onAssetTransactionStatusChanged.d.ts +5 -5
  186. package/lib/chevre/service/order/onOrderStatusChanged/onOrderCancelled.d.ts +1 -1
  187. package/lib/chevre/service/order/onOrderStatusChanged/onOrderDelivered.d.ts +1 -1
  188. package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially.d.ts +1 -1
  189. package/lib/chevre/service/order/onOrderStatusChanged/onOrderInTransit.d.ts +2 -2
  190. package/lib/chevre/service/order/onOrderStatusChanged/onOrderPaymentDue.d.ts +1 -1
  191. package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/createSendEmailMessageTaskIfNotExist.d.ts +1 -1
  192. package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/processOrder.d.ts +1 -1
  193. package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing.d.ts +1 -1
  194. package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned.d.ts +2 -2
  195. package/lib/chevre/service/order/onOrderUpdated.d.ts +1 -1
  196. package/lib/chevre/service/order/payOrder.d.ts +4 -4
  197. package/lib/chevre/service/order/placeOrder/createPlacingOrderFromExistingTransaction.d.ts +3 -3
  198. package/lib/chevre/service/order/placeOrder/factory.d.ts +10 -1
  199. package/lib/chevre/service/order/placeOrder/factory.js +58 -5
  200. package/lib/chevre/service/order/placeOrder/voidAcceptedOfferIfNecessary.d.ts +1 -1
  201. package/lib/chevre/service/order/placeOrder/voidAcceptedOfferIfNecessary.js +1 -1
  202. package/lib/chevre/service/order/placeOrder.d.ts +7 -7
  203. package/lib/chevre/service/order/placeOrderWithoutTransaction.d.ts +4 -4
  204. package/lib/chevre/service/order/returnOrder.d.ts +6 -6
  205. package/lib/chevre/service/order/sendOrder.d.ts +6 -6
  206. package/lib/chevre/service/payment/any/handlePrePublishedPaymentMethodIdOnAuthorizing.d.ts +2 -2
  207. package/lib/chevre/service/payment/any/onPaid.d.ts +3 -3
  208. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onPaid.d.ts +1 -1
  209. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onRefunded.d.ts +1 -1
  210. package/lib/chevre/service/payment/any/onPaymentStatusChanged.d.ts +2 -2
  211. package/lib/chevre/service/payment/any/onRefund.d.ts +3 -3
  212. package/lib/chevre/service/payment/any/person2username.js +1 -1
  213. package/lib/chevre/service/payment/any.d.ts +18 -18
  214. package/lib/chevre/service/payment/any.js +1 -1
  215. package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard.d.ts +1 -1
  216. package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard3ds.d.ts +1 -1
  217. package/lib/chevre/service/payment/creditCard/authorize.d.ts +5 -5
  218. package/lib/chevre/service/payment/creditCard/getGMOInfoFromSeller.d.ts +3 -3
  219. package/lib/chevre/service/payment/creditCard/payCreditCard.d.ts +7 -7
  220. package/lib/chevre/service/payment/creditCard/refundCreditCard.d.ts +7 -7
  221. package/lib/chevre/service/payment/creditCard/voidTransaction.d.ts +5 -5
  222. package/lib/chevre/service/payment/faceToFace.d.ts +4 -4
  223. package/lib/chevre/service/payment/movieTicket/authorize.d.ts +8 -8
  224. package/lib/chevre/service/payment/movieTicket/checkMovieTicket.d.ts +6 -6
  225. package/lib/chevre/service/payment/movieTicket/getCredentials.d.ts +1 -1
  226. package/lib/chevre/service/payment/movieTicket/payMovieTicket.d.ts +8 -8
  227. package/lib/chevre/service/payment/movieTicket/processPurchaseNumberAuth.d.ts +2 -2
  228. package/lib/chevre/service/payment/movieTicket/processPurchaseNumberAuth.js +1 -1
  229. package/lib/chevre/service/payment/movieTicket/refundMovieTicket.d.ts +4 -4
  230. package/lib/chevre/service/payment/movieTicket/validation.d.ts +7 -7
  231. package/lib/chevre/service/payment/movieTicket/voidTransaction.d.ts +4 -4
  232. package/lib/chevre/service/payment/paymentCard.d.ts +6 -6
  233. package/lib/chevre/service/payment.d.ts +16 -16
  234. package/lib/chevre/service/permit.d.ts +2 -2
  235. package/lib/chevre/service/product.d.ts +3 -3
  236. package/lib/chevre/service/project.d.ts +17 -17
  237. package/lib/chevre/service/report/telemetry.d.ts +4 -4
  238. package/lib/chevre/service/reserve/cancelReservation.d.ts +6 -6
  239. package/lib/chevre/service/reserve/checkInReservation.d.ts +5 -5
  240. package/lib/chevre/service/reserve/confirmReservation.d.ts +5 -5
  241. package/lib/chevre/service/reserve/findByCode.d.ts +3 -3
  242. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +1 -1
  243. package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.d.ts +2 -2
  244. package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.d.ts +1 -1
  245. package/lib/chevre/service/reserve/potentialActions/onReservationUsed.d.ts +1 -1
  246. package/lib/chevre/service/reserve/searchByOrder.d.ts +3 -3
  247. package/lib/chevre/service/reserve/useReservation.d.ts +5 -5
  248. package/lib/chevre/service/reserve/verifyToken4reservation.d.ts +2 -2
  249. package/lib/chevre/service/task/acceptCOAOffer.js +6 -6
  250. package/lib/chevre/service/task/aggregateOffers.js +10 -10
  251. package/lib/chevre/service/task/aggregateScreeningEvent.js +9 -9
  252. package/lib/chevre/service/task/aggregateUseActionsOnEvent.js +7 -7
  253. package/lib/chevre/service/task/authorizePayment.js +14 -14
  254. package/lib/chevre/service/task/cancelMoneyTransfer.js +2 -2
  255. package/lib/chevre/service/task/cancelPendingReservation.js +6 -6
  256. package/lib/chevre/service/task/cancelReservation.js +6 -6
  257. package/lib/chevre/service/task/checkMovieTicket.js +6 -6
  258. package/lib/chevre/service/task/checkResource.js +4 -4
  259. package/lib/chevre/service/task/confirmMoneyTransfer.js +3 -3
  260. package/lib/chevre/service/task/confirmPayTransaction.js +9 -9
  261. package/lib/chevre/service/task/confirmRegisterService.js +3 -3
  262. package/lib/chevre/service/task/confirmRegisterServiceTransaction.d.ts +3 -3
  263. package/lib/chevre/service/task/confirmRegisterServiceTransaction.js +3 -3
  264. package/lib/chevre/service/task/confirmReserveTransaction.d.ts +6 -6
  265. package/lib/chevre/service/task/confirmReserveTransaction.js +6 -6
  266. package/lib/chevre/service/task/createAccountingReport.js +4 -4
  267. package/lib/chevre/service/task/createEvent.js +4 -4
  268. package/lib/chevre/service/task/deleteTransaction.js +11 -11
  269. package/lib/chevre/service/task/givePointAward.js +5 -5
  270. package/lib/chevre/service/task/importEventCapacitiesFromCOA.js +1 -1
  271. package/lib/chevre/service/task/importEventsFromCOA.js +7 -7
  272. package/lib/chevre/service/task/importOffersFromCOA.js +3 -3
  273. package/lib/chevre/service/task/moneyTransfer.js +3 -3
  274. package/lib/chevre/service/task/onAssetTransactionStatusChanged.js +5 -5
  275. package/lib/chevre/service/task/onAuthorizationCreated.js +10 -10
  276. package/lib/chevre/service/task/onEventChanged.js +3 -3
  277. package/lib/chevre/service/task/onOrderPaymentCompleted.js +4 -4
  278. package/lib/chevre/service/task/onResourceUpdated/onAggregateOfferUpdated.d.ts +2 -2
  279. package/lib/chevre/service/task/onResourceUpdated/onCategoryCodeUpdated.d.ts +2 -2
  280. package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.d.ts +3 -3
  281. package/lib/chevre/service/task/onResourceUpdated/onOfferCatalogUpdated.d.ts +4 -4
  282. package/lib/chevre/service/task/onResourceUpdated/onResourceDeleted.d.ts +18 -18
  283. package/lib/chevre/service/task/onResourceUpdated/syncCategoryCode.d.ts +2 -2
  284. package/lib/chevre/service/task/onResourceUpdated/syncOfferCatalog.d.ts +3 -3
  285. package/lib/chevre/service/task/onResourceUpdated.js +19 -19
  286. package/lib/chevre/service/task/pay.js +12 -12
  287. package/lib/chevre/service/task/placeOrder.js +7 -7
  288. package/lib/chevre/service/task/publishPaymentUrl.js +8 -8
  289. package/lib/chevre/service/task/refund.js +10 -10
  290. package/lib/chevre/service/task/registerService.js +3 -3
  291. package/lib/chevre/service/task/reserve.js +4 -4
  292. package/lib/chevre/service/task/returnMoneyTransfer.js +5 -5
  293. package/lib/chevre/service/task/returnOrder.js +6 -6
  294. package/lib/chevre/service/task/returnPayTransaction.js +8 -8
  295. package/lib/chevre/service/task/returnPointAward.js +5 -5
  296. package/lib/chevre/service/task/returnReserveTransaction.js +5 -5
  297. package/lib/chevre/service/task/sendEmailMessage.js +2 -2
  298. package/lib/chevre/service/task/sendOrder.js +6 -6
  299. package/lib/chevre/service/task/triggerWebhook.js +1 -1
  300. package/lib/chevre/service/task/useReservation.js +5 -5
  301. package/lib/chevre/service/task/voidMoneyTransferTransaction.js +3 -3
  302. package/lib/chevre/service/task/voidPayTransaction.js +8 -8
  303. package/lib/chevre/service/task/voidPayment.js +8 -8
  304. package/lib/chevre/service/task/voidRegisterServiceTransaction.js +3 -3
  305. package/lib/chevre/service/task/voidReserveTransaction.js +9 -9
  306. package/lib/chevre/service/task.d.ts +1 -1
  307. package/lib/chevre/service/task.js +3 -3
  308. package/lib/chevre/service/transaction/deleteTransaction.d.ts +11 -11
  309. package/lib/chevre/service/transaction/moneyTransfer.d.ts +10 -10
  310. package/lib/chevre/service/transaction/placeOrder/confirm/factory/result.d.ts +11 -0
  311. package/lib/chevre/service/transaction/placeOrder/confirm/factory/result.js +32 -0
  312. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/potentialActions/sendEmailMessage.d.ts +1 -1
  313. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/potentialActions/sendEmailMessage.js +2 -2
  314. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/potentialActions.d.ts +1 -1
  315. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/publishCode.d.ts +2 -2
  316. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/publishCode.js +1 -1
  317. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation/validateMovieTicket.d.ts +1 -1
  318. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation/validateMovieTicket.js +2 -2
  319. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation.d.ts +2 -2
  320. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation.js +2 -2
  321. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/confirm.d.ts +8 -8
  322. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/confirm.js +18 -25
  323. package/lib/chevre/service/transaction/placeOrder/exportTasksById.d.ts +17 -0
  324. package/lib/chevre/service/transaction/placeOrder/exportTasksById.js +39 -0
  325. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/publishConfirmationNumberIfNotExist.d.ts +1 -1
  326. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/publishOrderNumberIfNotExist.d.ts +3 -3
  327. package/lib/chevre/service/transaction/{placeOrderInProgress/validation → placeOrder/start}/validateStartRequest.d.ts +3 -3
  328. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/start.d.ts +4 -4
  329. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/start.js +4 -2
  330. package/lib/chevre/service/transaction/placeOrder.d.ts +8 -14
  331. package/lib/chevre/service/transaction/placeOrder.js +13 -37
  332. package/lib/chevre/service/transaction/returnOrder/preStart.d.ts +9 -9
  333. package/lib/chevre/service/transaction/returnOrder.d.ts +12 -12
  334. package/lib/chevre/service/transaction.d.ts +5 -11
  335. package/lib/chevre/service/transaction.js +13 -7
  336. package/lib/chevre/service/validation/validateOrder.d.ts +3 -3
  337. package/lib/chevre/service/validation/validateOrder.js +1 -1
  338. package/package.json +2 -2
  339. package/lib/chevre/service/transaction/placeOrderInProgress/result.d.ts +0 -24
  340. package/lib/chevre/service/transaction/placeOrderInProgress/result.js +0 -120
  341. package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +0 -9
  342. package/lib/chevre/service/transaction/placeOrderInProgress.js +0 -16
  343. /package/lib/chevre/repo/{code.d.ts → authorization.d.ts} +0 -0
  344. /package/lib/chevre/repo/{code.js → authorization.js} +0 -0
  345. /package/lib/chevre/service/{transaction/placeOrderInProgress/result → order/placeOrder/factory}/orderedItem.d.ts +0 -0
  346. /package/lib/chevre/service/{transaction/placeOrderInProgress/result → order/placeOrder/factory}/orderedItem.js +0 -0
  347. /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/potentialActions.js +0 -0
  348. /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/publishConfirmationNumberIfNotExist.js +0 -0
  349. /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/publishOrderNumberIfNotExist.js +0 -0
  350. /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/start/factory.d.ts +0 -0
  351. /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/start/factory.js +0 -0
  352. /package/lib/chevre/service/transaction/{placeOrderInProgress/validation → placeOrder/start}/validateStartRequest.js +0 -0
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.MongoRepository = void 0;
12
+ exports.OwnershipInfoRepo = void 0;
13
13
  const uuid = require("uuid");
14
14
  const ownershipInfo_1 = require("./mongoose/schemas/ownershipInfo");
15
15
  const errorHandler_1 = require("../errorHandler");
@@ -18,7 +18,7 @@ const settings_1 = require("../settings");
18
18
  /**
19
19
  * 所有権リポジトリ
20
20
  */
21
- class MongoRepository {
21
+ class OwnershipInfoRepo {
22
22
  constructor(connection) {
23
23
  this.ownershipInfoModel = connection.model(ownershipInfo_1.modelName, (0, ownershipInfo_1.createSchema)());
24
24
  }
@@ -282,7 +282,7 @@ class MongoRepository {
282
282
  search(params, projection) {
283
283
  var _a;
284
284
  return __awaiter(this, void 0, void 0, function* () {
285
- const conditions = MongoRepository.CREATE_MONGO_CONDITIONS(params);
285
+ const conditions = OwnershipInfoRepo.CREATE_MONGO_CONDITIONS(params);
286
286
  const query = this.ownershipInfoModel.find((conditions.length > 0) ? { $and: conditions } : {}, Object.assign({ __v: 0, createdAt: 0, updatedAt: 0 }, projection));
287
287
  if (typeof params.limit === 'number' && params.limit > 0) {
288
288
  const page = (typeof params.page === 'number' && params.page > 0) ? params.page : 1;
@@ -434,4 +434,4 @@ class MongoRepository {
434
434
  });
435
435
  }
436
436
  }
437
- exports.MongoRepository = MongoRepository;
437
+ exports.OwnershipInfoRepo = OwnershipInfoRepo;
@@ -10,6 +10,13 @@ export type IVerifiedPassport = factory.waiter.passport.IPassport & {
10
10
  };
11
11
  type ILockKey = IVerifiedPassport;
12
12
  interface IOptions {
13
+ /**
14
+ * WAITER許可証発行者
15
+ */
16
+ issuers: string[];
17
+ /**
18
+ * WAITER許可証トークンシークレット
19
+ */
13
20
  secret: string;
14
21
  passportValidator?: IPassportValidator;
15
22
  }
@@ -119,7 +119,10 @@ class PassportRepo {
119
119
  verify(params) {
120
120
  return __awaiter(this, void 0, void 0, function* () {
121
121
  return new Promise((resolve, reject) => {
122
- jwt.verify(params.token, this.options.secret, (err, decoded) => {
122
+ jwt.verify(params.token, this.options.secret, {
123
+ algorithms: ['HS256'],
124
+ issuer: this.options.issuers // add verify issuer(2024-07-08~)
125
+ }, (err, decoded) => {
123
126
  if (err instanceof Error) {
124
127
  reject(err);
125
128
  }
@@ -20,7 +20,7 @@ export interface IOptions {
20
20
  /**
21
21
  * クレジットカードリポジトリ
22
22
  */
23
- export declare class GMORepository {
23
+ export declare class CreditCardRepo {
24
24
  private readonly options;
25
25
  constructor(options: IOptions);
26
26
  /**
@@ -9,13 +9,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.GMORepository = void 0;
12
+ exports.CreditCardRepo = void 0;
13
13
  const GMO = require("@motionpicture/gmo-service");
14
14
  const factory = require("../../factory");
15
15
  /**
16
16
  * クレジットカードリポジトリ
17
17
  */
18
- class GMORepository {
18
+ class CreditCardRepo {
19
19
  constructor(options) {
20
20
  this.options = options;
21
21
  }
@@ -221,4 +221,4 @@ class GMORepository {
221
221
  });
222
222
  }
223
223
  }
224
- exports.GMORepository = GMORepository;
224
+ exports.CreditCardRepo = CreditCardRepo;
@@ -9,7 +9,7 @@ type ISearchConditions4paymentService = factory.service.paymentService.ISearchCo
9
9
  /**
10
10
  * 決済サービスリポジトリ
11
11
  */
12
- export declare class MongoRepository {
12
+ export declare class PaymentServiceRepo {
13
13
  private readonly paymentServiceModel;
14
14
  constructor(connection: Connection);
15
15
  static CREATE_MONGO_CONDITIONS(params: ISearchConditions4paymentService): FilterQuery<import("@chevre/factory/lib/service/paymentService").IService>[];
@@ -20,14 +20,14 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  return t;
21
21
  };
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.MongoRepository = void 0;
23
+ exports.PaymentServiceRepo = void 0;
24
24
  const factory = require("../factory");
25
25
  const settings_1 = require("../settings");
26
26
  const paymentService_1 = require("./mongoose/schemas/paymentService");
27
27
  /**
28
28
  * 決済サービスリポジトリ
29
29
  */
30
- class MongoRepository {
30
+ class PaymentServiceRepo {
31
31
  constructor(connection) {
32
32
  this.paymentServiceModel = connection.model(paymentService_1.modelName, (0, paymentService_1.createSchema)());
33
33
  }
@@ -198,7 +198,7 @@ class MongoRepository {
198
198
  searchPaymentServices(conditions, inclusion, exclusion) {
199
199
  var _a;
200
200
  return __awaiter(this, void 0, void 0, function* () {
201
- const andConditions = MongoRepository.CREATE_MONGO_CONDITIONS(conditions);
201
+ const andConditions = PaymentServiceRepo.CREATE_MONGO_CONDITIONS(conditions);
202
202
  let projection = {};
203
203
  if (Array.isArray(inclusion) && inclusion.length > 0) {
204
204
  inclusion.forEach((field) => {
@@ -271,4 +271,4 @@ class MongoRepository {
271
271
  });
272
272
  }
273
273
  }
274
- exports.MongoRepository = MongoRepository;
274
+ exports.PaymentServiceRepo = PaymentServiceRepo;
@@ -18,7 +18,7 @@ export type IPublicPaymentServiceByProvider = Pick<factory.service.paymentServic
18
18
  /**
19
19
  * 決済サービスプロバイダーリポジトリ
20
20
  */
21
- export declare class MongoRepository {
21
+ export declare class PaymentServiceProviderRepo {
22
22
  private readonly paymentServiceModel;
23
23
  constructor(connection: Connection);
24
24
  /**
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.MongoRepository = void 0;
12
+ exports.PaymentServiceProviderRepo = void 0;
13
13
  const mongoose_1 = require("mongoose");
14
14
  const paymentService_1 = require("./mongoose/schemas/paymentService");
15
15
  const factory = require("../factory");
@@ -17,7 +17,7 @@ const settings_1 = require("../settings");
17
17
  /**
18
18
  * 決済サービスプロバイダーリポジトリ
19
19
  */
20
- class MongoRepository {
20
+ class PaymentServiceProviderRepo {
21
21
  constructor(connection) {
22
22
  this.paymentServiceModel = connection.model(paymentService_1.modelName, (0, paymentService_1.createSchema)());
23
23
  }
@@ -235,4 +235,4 @@ class MongoRepository {
235
235
  });
236
236
  }
237
237
  }
238
- exports.MongoRepository = MongoRepository;
238
+ exports.PaymentServiceProviderRepo = PaymentServiceProviderRepo;
@@ -3,7 +3,7 @@ import * as factory from '../factory';
3
3
  /**
4
4
  * 許可証リポジトリ
5
5
  */
6
- export declare class MongoRepository {
6
+ export declare class PermitRepo {
7
7
  private readonly serviceOutputModel;
8
8
  constructor(connection: Connection);
9
9
  findByIdentifier(params: {
@@ -9,13 +9,13 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.MongoRepository = void 0;
12
+ exports.PermitRepo = void 0;
13
13
  const serviceOutput_1 = require("./mongoose/schemas/serviceOutput");
14
14
  const factory = require("../factory");
15
15
  /**
16
16
  * 許可証リポジトリ
17
17
  */
18
- class MongoRepository {
18
+ class PermitRepo {
19
19
  constructor(connection) {
20
20
  this.serviceOutputModel = connection.model(serviceOutput_1.modelName, (0, serviceOutput_1.createSchema)());
21
21
  }
@@ -69,4 +69,4 @@ class MongoRepository {
69
69
  });
70
70
  }
71
71
  }
72
- exports.MongoRepository = MongoRepository;
72
+ exports.PermitRepo = PermitRepo;
@@ -5,7 +5,7 @@ export type IPerson = factory.person.IPerson;
5
5
  /**
6
6
  * 会員リポジトリ
7
7
  */
8
- export declare class CognitoRepository {
8
+ export declare class PersonRepo {
9
9
  readonly cognitoIdentityServiceProvider: CognitoIdentityProvider;
10
10
  private readonly userPoolId;
11
11
  constructor(params: {
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.CognitoRepository = void 0;
12
+ exports.PersonRepo = void 0;
13
13
  const client_cognito_identity_provider_1 = require("@aws-sdk/client-cognito-identity-provider");
14
14
  const credential_providers_1 = require("@aws-sdk/credential-providers");
15
15
  const google_libphonenumber_1 = require("google-libphonenumber");
@@ -18,7 +18,7 @@ const awsCredentials = (0, credential_providers_1.fromEnv)();
18
18
  /**
19
19
  * 会員リポジトリ
20
20
  */
21
- class CognitoRepository {
21
+ class PersonRepo {
22
22
  constructor(params) {
23
23
  this.userPoolId = params.userPoolId;
24
24
  this.cognitoIdentityServiceProvider = new client_cognito_identity_provider_1.CognitoIdentityProvider({
@@ -74,7 +74,7 @@ class CognitoRepository {
74
74
  return profile;
75
75
  }
76
76
  static ATTRIBUTE2PERSON(params) {
77
- const profile = CognitoRepository.ATTRIBUTE2PROFILE(params);
77
+ const profile = PersonRepo.ATTRIBUTE2PROFILE(params);
78
78
  const identifier = [];
79
79
  if (typeof params.userPoolId === 'string') {
80
80
  // identifier.push(
@@ -183,7 +183,7 @@ class CognitoRepository {
183
183
  reject(err);
184
184
  }
185
185
  else {
186
- resolve(CognitoRepository.ATTRIBUTE2PROFILE({ attributes: data === null || data === void 0 ? void 0 : data.UserAttributes }));
186
+ resolve(PersonRepo.ATTRIBUTE2PROFILE({ attributes: data === null || data === void 0 ? void 0 : data.UserAttributes }));
187
187
  }
188
188
  });
189
189
  });
@@ -195,7 +195,7 @@ class CognitoRepository {
195
195
  updateProfile(params) {
196
196
  return __awaiter(this, void 0, void 0, function* () {
197
197
  return new Promise((resolve, reject) => {
198
- const userAttributes = CognitoRepository.PROFILE2ATTRIBUTE(params.profile);
198
+ const userAttributes = PersonRepo.PROFILE2ATTRIBUTE(params.profile);
199
199
  this.cognitoIdentityServiceProvider.adminUpdateUserAttributes({
200
200
  UserPoolId: this.userPoolId,
201
201
  Username: params.username,
@@ -236,7 +236,7 @@ class CognitoRepository {
236
236
  reject(new factory.errors.NotFound('User'));
237
237
  }
238
238
  else {
239
- const person = CognitoRepository.ATTRIBUTE2PERSON({
239
+ const person = PersonRepo.ATTRIBUTE2PERSON({
240
240
  username: user.Username,
241
241
  userPoolId: this.userPoolId,
242
242
  attributes: user.Attributes
@@ -262,7 +262,7 @@ class CognitoRepository {
262
262
  reject(err);
263
263
  }
264
264
  else {
265
- resolve(CognitoRepository.ATTRIBUTE2PROFILE({ attributes: data === null || data === void 0 ? void 0 : data.UserAttributes }));
265
+ resolve(PersonRepo.ATTRIBUTE2PROFILE({ attributes: data === null || data === void 0 ? void 0 : data.UserAttributes }));
266
266
  }
267
267
  });
268
268
  });
@@ -274,7 +274,7 @@ class CognitoRepository {
274
274
  updateProfileByAccessToken(params) {
275
275
  return __awaiter(this, void 0, void 0, function* () {
276
276
  return new Promise((resolve, reject) => {
277
- const userAttributes = CognitoRepository.PROFILE2ATTRIBUTE(params.profile);
277
+ const userAttributes = PersonRepo.PROFILE2ATTRIBUTE(params.profile);
278
278
  this.cognitoIdentityServiceProvider.updateUserAttributes({
279
279
  AccessToken: params.accessToken,
280
280
  UserAttributes: userAttributes
@@ -474,7 +474,7 @@ class CognitoRepository {
474
474
  }
475
475
  else {
476
476
  resolve(data.Users.map((u) => {
477
- const person = CognitoRepository.ATTRIBUTE2PERSON({
477
+ const person = PersonRepo.ATTRIBUTE2PERSON({
478
478
  username: u.Username,
479
479
  userPoolId: this.userPoolId,
480
480
  attributes: u.Attributes
@@ -488,4 +488,4 @@ class CognitoRepository {
488
488
  });
489
489
  }
490
490
  }
491
- exports.CognitoRepository = CognitoRepository;
491
+ exports.PersonRepo = PersonRepo;
@@ -3,7 +3,7 @@ import * as factory from '../../factory';
3
3
  /**
4
4
  * ターミナルリポジトリ
5
5
  */
6
- export declare class MongoRepository {
6
+ export declare class BusStopRepo {
7
7
  private readonly placeModel;
8
8
  constructor(connection: Connection);
9
9
  static CREATE_BUS_STOP_MONGO_CONDITIONS(params: factory.place.busStop.ISearchConditions): FilterQuery<import("@chevre/factory/lib/place/busStop").IPlace>[];
@@ -20,14 +20,14 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  return t;
21
21
  };
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.MongoRepository = void 0;
23
+ exports.BusStopRepo = void 0;
24
24
  const factory = require("../../factory");
25
25
  const settings_1 = require("../../settings");
26
26
  const place_1 = require("../mongoose/schemas/place");
27
27
  /**
28
28
  * ターミナルリポジトリ
29
29
  */
30
- class MongoRepository {
30
+ class BusStopRepo {
31
31
  constructor(connection) {
32
32
  this.placeModel = connection.model(place_1.modelName, (0, place_1.createSchema)());
33
33
  }
@@ -144,7 +144,7 @@ class MongoRepository {
144
144
  searchBusStops(params) {
145
145
  var _a;
146
146
  return __awaiter(this, void 0, void 0, function* () {
147
- const conditions = MongoRepository.CREATE_BUS_STOP_MONGO_CONDITIONS(params);
147
+ const conditions = BusStopRepo.CREATE_BUS_STOP_MONGO_CONDITIONS(params);
148
148
  // containsPlaceを含めるとデータサイズが大きくなるので、検索結果には含めない
149
149
  const query = this.placeModel.find((conditions.length > 0) ? { $and: conditions } : {}, {
150
150
  __v: 0,
@@ -196,4 +196,4 @@ class MongoRepository {
196
196
  });
197
197
  }
198
198
  }
199
- exports.MongoRepository = MongoRepository;
199
+ exports.BusStopRepo = BusStopRepo;
@@ -12,7 +12,7 @@ interface IOperator {
12
12
  /**
13
13
  * 施設のPOSリポジトリ
14
14
  */
15
- export declare class MongoRepository {
15
+ export declare class HasPOSRepo {
16
16
  readonly operator: IOperator;
17
17
  private readonly placeModel;
18
18
  constructor(connection: Connection, operater: IOperator);
@@ -9,7 +9,7 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.MongoRepository = void 0;
12
+ exports.HasPOSRepo = void 0;
13
13
  const mongoose_1 = require("mongoose");
14
14
  const place_1 = require("../mongoose/schemas/place");
15
15
  const factory = require("../../factory");
@@ -17,7 +17,7 @@ const settings_1 = require("../../settings");
17
17
  /**
18
18
  * 施設のPOSリポジトリ
19
19
  */
20
- class MongoRepository {
20
+ class HasPOSRepo {
21
21
  constructor(connection, operater) {
22
22
  this.placeModel = connection.model(place_1.modelName, (0, place_1.createSchema)());
23
23
  this.operator = operater;
@@ -141,4 +141,4 @@ class MongoRepository {
141
141
  });
142
142
  }
143
143
  }
144
- exports.MongoRepository = MongoRepository;
144
+ exports.HasPOSRepo = HasPOSRepo;
@@ -32,7 +32,7 @@ type IKeyOfProjectionMovieTheater = keyof factory.place.movieTheater.IPlace | '_
32
32
  /**
33
33
  * 施設リポジトリ
34
34
  */
35
- export declare class MongoRepository {
35
+ export declare class MovieTheaterRepo {
36
36
  private readonly placeModel;
37
37
  constructor(connection: Connection);
38
38
  static CREATE_MOVIE_THEATER_MONGO_CONDITIONS(params: factory.place.movieTheater.ISearchConditions): FilterQuery<import("@chevre/factory/lib/place/movieTheater").IPlace>[];
@@ -20,14 +20,14 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  return t;
21
21
  };
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.MongoRepository = void 0;
23
+ exports.MovieTheaterRepo = void 0;
24
24
  const factory = require("../../factory");
25
25
  const settings_1 = require("../../settings");
26
26
  const place_1 = require("../mongoose/schemas/place");
27
27
  /**
28
28
  * 施設リポジトリ
29
29
  */
30
- class MongoRepository {
30
+ class MovieTheaterRepo {
31
31
  constructor(connection) {
32
32
  this.placeModel = connection.model(place_1.modelName, (0, place_1.createSchema)());
33
33
  }
@@ -222,7 +222,7 @@ class MongoRepository {
222
222
  searchMovieTheaters(params, inclusion, exclusion) {
223
223
  var _a;
224
224
  return __awaiter(this, void 0, void 0, function* () {
225
- const conditions = MongoRepository.CREATE_MOVIE_THEATER_MONGO_CONDITIONS(params);
225
+ const conditions = MovieTheaterRepo.CREATE_MOVIE_THEATER_MONGO_CONDITIONS(params);
226
226
  let projection = {};
227
227
  if (Array.isArray(inclusion) && inclusion.length > 0) {
228
228
  inclusion.forEach((field) => {
@@ -308,4 +308,4 @@ class MongoRepository {
308
308
  .cursor();
309
309
  }
310
310
  }
311
- exports.MongoRepository = MongoRepository;
311
+ exports.MovieTheaterRepo = MovieTheaterRepo;
@@ -16,7 +16,7 @@ interface IUpdateScreeningRoomResult {
16
16
  /**
17
17
  * ルームリポジトリ
18
18
  */
19
- export declare class MongoRepository {
19
+ export declare class ScreeningRoomRepo {
20
20
  private readonly placeModel;
21
21
  constructor(connection: Connection);
22
22
  createScreeningRoom(screeningRoom: Omit<factory.place.screeningRoom.IPlace, 'containedInPlace' | 'containsPlace' | 'parentOrganization'> & {
@@ -9,14 +9,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.MongoRepository = void 0;
12
+ exports.ScreeningRoomRepo = void 0;
13
13
  const factory = require("../../factory");
14
14
  const settings_1 = require("../../settings");
15
15
  const place_1 = require("../mongoose/schemas/place");
16
16
  /**
17
17
  * ルームリポジトリ
18
18
  */
19
- class MongoRepository {
19
+ class ScreeningRoomRepo {
20
20
  constructor(connection) {
21
21
  this.placeModel = connection.model(place_1.modelName, (0, place_1.createSchema)());
22
22
  }
@@ -367,4 +367,4 @@ class MongoRepository {
367
367
  });
368
368
  }
369
369
  }
370
- exports.MongoRepository = MongoRepository;
370
+ exports.ScreeningRoomRepo = ScreeningRoomRepo;
@@ -15,7 +15,7 @@ interface IUpdateSeatResult {
15
15
  /**
16
16
  * 座席リポジトリ
17
17
  */
18
- export declare class MongoRepository {
18
+ export declare class SeatRepo {
19
19
  private readonly placeModel;
20
20
  constructor(connection: Connection);
21
21
  static CREATE_SEARCH_SEATS_PROJECTION(params: factory.place.seat.IProjection): {
@@ -9,14 +9,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.MongoRepository = void 0;
12
+ exports.SeatRepo = void 0;
13
13
  const factory = require("../../factory");
14
14
  const settings_1 = require("../../settings");
15
15
  const place_1 = require("../mongoose/schemas/place");
16
16
  /**
17
17
  * 座席リポジトリ
18
18
  */
19
- class MongoRepository {
19
+ class SeatRepo {
20
20
  constructor(connection) {
21
21
  this.placeModel = connection.model(place_1.modelName, (0, place_1.createSchema)());
22
22
  }
@@ -323,7 +323,7 @@ class MongoRepository {
323
323
  }
324
324
  });
325
325
  }
326
- const projectStage = MongoRepository.CREATE_SEARCH_SEATS_PROJECTION(Object.assign({}, params.$projection));
326
+ const projectStage = SeatRepo.CREATE_SEARCH_SEATS_PROJECTION(Object.assign({}, params.$projection));
327
327
  const aggregate = this.placeModel.aggregate([
328
328
  { $unwind: '$containsPlace' },
329
329
  { $unwind: '$containsPlace.containsPlace' },
@@ -369,4 +369,4 @@ class MongoRepository {
369
369
  });
370
370
  }
371
371
  }
372
- exports.MongoRepository = MongoRepository;
372
+ exports.SeatRepo = SeatRepo;
@@ -16,7 +16,7 @@ interface IUpdateSectionResult {
16
16
  /**
17
17
  * セクションリポジトリ
18
18
  */
19
- export declare class MongoRepository {
19
+ export declare class SectionRepo {
20
20
  private readonly placeModel;
21
21
  constructor(connection: Connection);
22
22
  createScreeningRoomSection(screeningRoomSection: IScreeningRoomSectionWithoutContainsPlace & {
@@ -9,14 +9,14 @@ var __awaiter = (this && this.__awaiter) || function (thisArg, _arguments, P, ge
9
9
  });
10
10
  };
11
11
  Object.defineProperty(exports, "__esModule", { value: true });
12
- exports.MongoRepository = void 0;
12
+ exports.SectionRepo = void 0;
13
13
  const factory = require("../../factory");
14
14
  const settings_1 = require("../../settings");
15
15
  const place_1 = require("../mongoose/schemas/place");
16
16
  /**
17
17
  * セクションリポジトリ
18
18
  */
19
- class MongoRepository {
19
+ class SectionRepo {
20
20
  constructor(connection) {
21
21
  this.placeModel = connection.model(place_1.modelName, (0, place_1.createSchema)());
22
22
  }
@@ -271,4 +271,4 @@ class MongoRepository {
271
271
  });
272
272
  }
273
273
  }
274
- exports.MongoRepository = MongoRepository;
274
+ exports.SectionRepo = SectionRepo;
@@ -27,7 +27,7 @@ import * as factory from '../factory';
27
27
  /**
28
28
  * 価格仕様リポジトリ
29
29
  */
30
- export declare class MongoRepository {
30
+ export declare class PriceSpecificationRepo {
31
31
  private readonly priceSpecificationModel;
32
32
  constructor(connection: Connection);
33
33
  static CREATE_MONGO_CONDITIONS<T extends factory.priceSpecificationType>(params: factory.priceSpecification.ISearchConditions<T>): any[];
@@ -20,14 +20,14 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  return t;
21
21
  };
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.MongoRepository = void 0;
23
+ exports.PriceSpecificationRepo = void 0;
24
24
  const factory = require("../factory");
25
25
  const priceSpecification_1 = require("./mongoose/schemas/priceSpecification");
26
26
  const settings_1 = require("../settings");
27
27
  /**
28
28
  * 価格仕様リポジトリ
29
29
  */
30
- class MongoRepository {
30
+ class PriceSpecificationRepo {
31
31
  constructor(connection) {
32
32
  this.priceSpecificationModel = connection.model(priceSpecification_1.modelName, (0, priceSpecification_1.createSchema)());
33
33
  }
@@ -155,7 +155,7 @@ class MongoRepository {
155
155
  }
156
156
  count(params) {
157
157
  return __awaiter(this, void 0, void 0, function* () {
158
- const conditions = MongoRepository.CREATE_MONGO_CONDITIONS(params);
158
+ const conditions = PriceSpecificationRepo.CREATE_MONGO_CONDITIONS(params);
159
159
  return this.priceSpecificationModel.countDocuments((conditions.length > 0) ? { $and: conditions } : {})
160
160
  .setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
161
161
  .exec();
@@ -164,7 +164,7 @@ class MongoRepository {
164
164
  search(params) {
165
165
  var _a;
166
166
  return __awaiter(this, void 0, void 0, function* () {
167
- const conditions = MongoRepository.CREATE_MONGO_CONDITIONS(params);
167
+ const conditions = PriceSpecificationRepo.CREATE_MONGO_CONDITIONS(params);
168
168
  const query = this.priceSpecificationModel.find((conditions.length > 0) ? { $and: conditions } : {}, {
169
169
  __v: 0,
170
170
  createdAt: 0,
@@ -254,4 +254,4 @@ class MongoRepository {
254
254
  });
255
255
  }
256
256
  }
257
- exports.MongoRepository = MongoRepository;
257
+ exports.PriceSpecificationRepo = PriceSpecificationRepo;
@@ -34,7 +34,7 @@ type IUnsetKey = keyof Pick<factory.product.IProduct, 'additionalProperty' | 'av
34
34
  /**
35
35
  * プロダクトリポジトリ
36
36
  */
37
- export declare class MongoRepository {
37
+ export declare class ProductRepo {
38
38
  private readonly productModel;
39
39
  constructor(connection: Connection);
40
40
  static CREATE_MONGO_CONDITIONS(params: ISearchConditions4product): FilterQuery<factory.product.IProduct>[];
@@ -20,14 +20,14 @@ var __rest = (this && this.__rest) || function (s, e) {
20
20
  return t;
21
21
  };
22
22
  Object.defineProperty(exports, "__esModule", { value: true });
23
- exports.MongoRepository = void 0;
23
+ exports.ProductRepo = void 0;
24
24
  const product_1 = require("./mongoose/schemas/product");
25
25
  const factory = require("../factory");
26
26
  const settings_1 = require("../settings");
27
27
  /**
28
28
  * プロダクトリポジトリ
29
29
  */
30
- class MongoRepository {
30
+ class ProductRepo {
31
31
  constructor(connection) {
32
32
  this.productModel = connection.model(product_1.modelName, (0, product_1.createSchema)());
33
33
  }
@@ -157,7 +157,7 @@ class MongoRepository {
157
157
  searchProducts(conditions, inclusion, exclusion) {
158
158
  var _a;
159
159
  return __awaiter(this, void 0, void 0, function* () {
160
- const andConditions = MongoRepository.CREATE_MONGO_CONDITIONS(conditions);
160
+ const andConditions = ProductRepo.CREATE_MONGO_CONDITIONS(conditions);
161
161
  let projection = {};
162
162
  if (Array.isArray(inclusion) && inclusion.length > 0) {
163
163
  inclusion.forEach((field) => {
@@ -349,4 +349,4 @@ class MongoRepository {
349
349
  });
350
350
  }
351
351
  }
352
- exports.MongoRepository = MongoRepository;
352
+ exports.ProductRepo = ProductRepo;
@@ -38,7 +38,7 @@ type ISearchConditions = Pick<factory.product.ISearchConditions, 'id' | 'limit'
38
38
  /**
39
39
  * プロダクトモデルリポジトリ
40
40
  */
41
- export declare class MongoRepository {
41
+ export declare class ProductModelRepo {
42
42
  private readonly productModelModel;
43
43
  constructor(connection: Connection);
44
44
  static CREATE_MONGO_CONDITIONS(params: ISearchConditions): FilterQuery<factory.product.IProduct>[];