@chevre/domain 21.37.0 → 22.0.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (356) hide show
  1. package/example/src/chevre/aggregation/aggregateSystem.ts +24 -12
  2. package/example/src/chevre/findReservationByCode.ts +1 -1
  3. package/example/src/chevre/findValidAuthorization.ts +1 -1
  4. package/example/src/chevre/transaction/processPlaceOrder.ts +11 -5
  5. package/lib/chevre/repo/acceptedOffer.d.ts +1 -1
  6. package/lib/chevre/repo/acceptedOffer.js +4 -4
  7. package/lib/chevre/repo/account.d.ts +1 -1
  8. package/lib/chevre/repo/account.js +5 -5
  9. package/lib/chevre/repo/accountTitle.d.ts +1 -1
  10. package/lib/chevre/repo/accountTitle.js +3 -3
  11. package/lib/chevre/repo/accountTransaction.d.ts +1 -1
  12. package/lib/chevre/repo/accountTransaction.js +4 -4
  13. package/lib/chevre/repo/accountingReport.d.ts +1 -1
  14. package/lib/chevre/repo/accountingReport.js +4 -4
  15. package/lib/chevre/repo/action.d.ts +1 -1
  16. package/lib/chevre/repo/action.js +4 -4
  17. package/lib/chevre/repo/additionalProperty.d.ts +1 -1
  18. package/lib/chevre/repo/additionalProperty.js +4 -4
  19. package/lib/chevre/repo/aggregateOffer.d.ts +1 -1
  20. package/lib/chevre/repo/aggregateOffer.js +6 -6
  21. package/lib/chevre/repo/aggregateReservation.d.ts +1 -1
  22. package/lib/chevre/repo/aggregateReservation.js +4 -4
  23. package/lib/chevre/repo/aggregation.d.ts +1 -0
  24. package/lib/chevre/repo/aggregation.js +1 -0
  25. package/lib/chevre/repo/assetTransaction.d.ts +1 -1
  26. package/lib/chevre/repo/assetTransaction.js +5 -5
  27. package/lib/chevre/repo/categoryCode.d.ts +1 -1
  28. package/lib/chevre/repo/categoryCode.js +6 -6
  29. package/lib/chevre/repo/comment.d.ts +1 -1
  30. package/lib/chevre/repo/comment.js +4 -4
  31. package/lib/chevre/repo/creativeWork.d.ts +1 -1
  32. package/lib/chevre/repo/creativeWork.js +4 -4
  33. package/lib/chevre/repo/customer.d.ts +1 -1
  34. package/lib/chevre/repo/customer.js +4 -4
  35. package/lib/chevre/repo/customerType.d.ts +1 -1
  36. package/lib/chevre/repo/customerType.js +4 -4
  37. package/lib/chevre/repo/emailMessage.d.ts +1 -1
  38. package/lib/chevre/repo/emailMessage.js +4 -4
  39. package/lib/chevre/repo/event.d.ts +1 -1
  40. package/lib/chevre/repo/event.js +5 -5
  41. package/lib/chevre/repo/member.d.ts +1 -1
  42. package/lib/chevre/repo/member.js +4 -4
  43. package/lib/chevre/repo/merchantReturnPolicy.d.ts +1 -1
  44. package/lib/chevre/repo/merchantReturnPolicy.js +4 -4
  45. package/lib/chevre/repo/note.d.ts +1 -1
  46. package/lib/chevre/repo/note.js +4 -4
  47. package/lib/chevre/repo/offer.d.ts +1 -1
  48. package/lib/chevre/repo/offer.js +7 -7
  49. package/lib/chevre/repo/offerCatalog.d.ts +1 -1
  50. package/lib/chevre/repo/offerCatalog.js +4 -4
  51. package/lib/chevre/repo/offerCatalogItem.d.ts +1 -1
  52. package/lib/chevre/repo/offerCatalogItem.js +5 -5
  53. package/lib/chevre/repo/offerItemCondition.d.ts +1 -1
  54. package/lib/chevre/repo/offerItemCondition.js +4 -4
  55. package/lib/chevre/repo/order.d.ts +26 -1
  56. package/lib/chevre/repo/order.js +72 -5
  57. package/lib/chevre/repo/orderInTransaction.d.ts +1 -1
  58. package/lib/chevre/repo/orderInTransaction.js +3 -3
  59. package/lib/chevre/repo/orderNumber.d.ts +1 -1
  60. package/lib/chevre/repo/orderNumber.js +6 -6
  61. package/lib/chevre/repo/ownershipInfo.d.ts +1 -1
  62. package/lib/chevre/repo/ownershipInfo.js +4 -4
  63. package/lib/chevre/repo/passport.d.ts +7 -0
  64. package/lib/chevre/repo/passport.js +4 -1
  65. package/lib/chevre/repo/paymentMethod/creditCard.d.ts +1 -1
  66. package/lib/chevre/repo/paymentMethod/creditCard.js +3 -3
  67. package/lib/chevre/repo/paymentService.d.ts +1 -1
  68. package/lib/chevre/repo/paymentService.js +4 -4
  69. package/lib/chevre/repo/paymentServiceProvider.d.ts +1 -1
  70. package/lib/chevre/repo/paymentServiceProvider.js +3 -3
  71. package/lib/chevre/repo/permit.d.ts +1 -1
  72. package/lib/chevre/repo/permit.js +3 -3
  73. package/lib/chevre/repo/person.d.ts +1 -1
  74. package/lib/chevre/repo/person.js +10 -10
  75. package/lib/chevre/repo/place/busStop.d.ts +1 -1
  76. package/lib/chevre/repo/place/busStop.js +4 -4
  77. package/lib/chevre/repo/place/hasPOS.d.ts +1 -1
  78. package/lib/chevre/repo/place/hasPOS.js +3 -3
  79. package/lib/chevre/repo/place/movieTheater.d.ts +1 -1
  80. package/lib/chevre/repo/place/movieTheater.js +4 -4
  81. package/lib/chevre/repo/place/screeningRoom.d.ts +1 -1
  82. package/lib/chevre/repo/place/screeningRoom.js +3 -3
  83. package/lib/chevre/repo/place/seat.d.ts +1 -1
  84. package/lib/chevre/repo/place/seat.js +4 -4
  85. package/lib/chevre/repo/place/section.d.ts +1 -1
  86. package/lib/chevre/repo/place/section.js +3 -3
  87. package/lib/chevre/repo/priceSpecification.d.ts +1 -1
  88. package/lib/chevre/repo/priceSpecification.js +5 -5
  89. package/lib/chevre/repo/product.d.ts +1 -1
  90. package/lib/chevre/repo/product.js +4 -4
  91. package/lib/chevre/repo/productModel.d.ts +1 -1
  92. package/lib/chevre/repo/productModel.js +4 -4
  93. package/lib/chevre/repo/productOffer.d.ts +1 -1
  94. package/lib/chevre/repo/productOffer.js +3 -3
  95. package/lib/chevre/repo/project.d.ts +2 -1
  96. package/lib/chevre/repo/project.js +5 -4
  97. package/lib/chevre/repo/projectMakesOffer.d.ts +1 -1
  98. package/lib/chevre/repo/projectMakesOffer.js +3 -3
  99. package/lib/chevre/repo/rateLimit/offer.d.ts +1 -1
  100. package/lib/chevre/repo/rateLimit/offer.js +9 -8
  101. package/lib/chevre/repo/reservation.d.ts +1 -1
  102. package/lib/chevre/repo/reservation.js +5 -5
  103. package/lib/chevre/repo/role.d.ts +1 -1
  104. package/lib/chevre/repo/role.js +4 -4
  105. package/lib/chevre/repo/seller.d.ts +4 -2
  106. package/lib/chevre/repo/seller.js +19 -17
  107. package/lib/chevre/repo/sellerPaymentAccepted.d.ts +1 -1
  108. package/lib/chevre/repo/sellerPaymentAccepted.js +3 -3
  109. package/lib/chevre/repo/serviceOutput.d.ts +1 -1
  110. package/lib/chevre/repo/serviceOutput.js +4 -4
  111. package/lib/chevre/repo/serviceOutputIdentifier.d.ts +1 -1
  112. package/lib/chevre/repo/serviceOutputIdentifier.js +6 -6
  113. package/lib/chevre/repo/stockHolder.d.ts +1 -1
  114. package/lib/chevre/repo/stockHolder.js +21 -21
  115. package/lib/chevre/repo/task.d.ts +1 -1
  116. package/lib/chevre/repo/task.js +5 -5
  117. package/lib/chevre/repo/telemetry.d.ts +1 -1
  118. package/lib/chevre/repo/telemetry.js +3 -3
  119. package/lib/chevre/repo/transaction.d.ts +1 -10
  120. package/lib/chevre/repo/transaction.js +29 -42
  121. package/lib/chevre/repo/transactionNumber.d.ts +1 -1
  122. package/lib/chevre/repo/transactionNumber.js +6 -6
  123. package/lib/chevre/repo/transactionProcess.d.ts +1 -1
  124. package/lib/chevre/repo/transactionProcess.js +5 -5
  125. package/lib/chevre/repo/trip.d.ts +1 -1
  126. package/lib/chevre/repo/trip.js +4 -4
  127. package/lib/chevre/repository.d.ts +64 -64
  128. package/lib/chevre/repository.js +65 -65
  129. package/lib/chevre/service/account.d.ts +2 -2
  130. package/lib/chevre/service/accountTransaction/deposit.d.ts +2 -2
  131. package/lib/chevre/service/accountTransaction/transfer.d.ts +2 -2
  132. package/lib/chevre/service/accountTransaction/withdraw.d.ts +2 -2
  133. package/lib/chevre/service/accountTransaction.d.ts +1 -1
  134. package/lib/chevre/service/aggregation/event/aggregateOffers.d.ts +10 -10
  135. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.d.ts +9 -9
  136. package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.d.ts +7 -7
  137. package/lib/chevre/service/aggregation/event/findEventOffers.d.ts +3 -3
  138. package/lib/chevre/service/aggregation/event/importFromCOA.d.ts +1 -1
  139. package/lib/chevre/service/aggregation/project.d.ts +3 -3
  140. package/lib/chevre/service/aggregation/system.d.ts +22 -7
  141. package/lib/chevre/service/aggregation/system.js +35 -1
  142. package/lib/chevre/service/assetTransaction/cancelReservation.d.ts +4 -4
  143. package/lib/chevre/service/assetTransaction/moneyTransfer.d.ts +4 -4
  144. package/lib/chevre/service/assetTransaction/moneyTransfer.js +1 -1
  145. package/lib/chevre/service/assetTransaction/pay/account/validation.d.ts +2 -2
  146. package/lib/chevre/service/assetTransaction/pay.d.ts +16 -16
  147. package/lib/chevre/service/assetTransaction/refund.d.ts +5 -5
  148. package/lib/chevre/service/assetTransaction/registerService.d.ts +8 -8
  149. package/lib/chevre/service/assetTransaction/reserve/cancel.d.ts +6 -6
  150. package/lib/chevre/service/assetTransaction/reserve/confirm.d.ts +5 -5
  151. package/lib/chevre/service/assetTransaction/reserve/exportTasksById.d.ts +2 -2
  152. package/lib/chevre/service/assetTransaction/reserve/start/createSubReservations.d.ts +5 -5
  153. package/lib/chevre/service/assetTransaction/reserve/start.d.ts +14 -14
  154. package/lib/chevre/service/assetTransaction.d.ts +2 -2
  155. package/lib/chevre/service/code.d.ts +2 -2
  156. package/lib/chevre/service/delivery.d.ts +7 -7
  157. package/lib/chevre/service/event/createEvent.d.ts +4 -4
  158. package/lib/chevre/service/event.d.ts +9 -9
  159. package/lib/chevre/service/iam.d.ts +2 -2
  160. package/lib/chevre/service/moneyTransfer.d.ts +5 -5
  161. package/lib/chevre/service/notification.d.ts +2 -2
  162. package/lib/chevre/service/offer/any.d.ts +4 -4
  163. package/lib/chevre/service/offer/any.js +2 -2
  164. package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre.d.ts +16 -16
  165. package/lib/chevre/service/offer/event/authorize.d.ts +20 -20
  166. package/lib/chevre/service/offer/event/importFromCOA.d.ts +3 -3
  167. package/lib/chevre/service/offer/event/searchEventTicketOffers.d.ts +7 -7
  168. package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4chevre.d.ts +8 -8
  169. package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4coa.d.ts +1 -1
  170. package/lib/chevre/service/offer/event/voidTransaction.d.ts +8 -8
  171. package/lib/chevre/service/offer/event/voidTransactionByActionId.d.ts +8 -8
  172. package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer.d.ts +3 -3
  173. package/lib/chevre/service/offer/eventServiceByCOA/authorize.d.ts +8 -8
  174. package/lib/chevre/service/offer/eventServiceByCOA/findAcceptAction.d.ts +2 -2
  175. package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.d.ts +1 -1
  176. package/lib/chevre/service/offer/moneyTransfer/authorize.d.ts +8 -8
  177. package/lib/chevre/service/offer/moneyTransfer/returnMoneyTransfer.d.ts +5 -5
  178. package/lib/chevre/service/offer/moneyTransfer/settleTransaction.d.ts +3 -3
  179. package/lib/chevre/service/offer/moneyTransfer/voidTransaction.d.ts +3 -3
  180. package/lib/chevre/service/offer/onEventChanged.d.ts +3 -3
  181. package/lib/chevre/service/offer/product/searchProductOffers.d.ts +3 -3
  182. package/lib/chevre/service/offer/product.d.ts +15 -15
  183. package/lib/chevre/service/offer/product.js +2 -2
  184. package/lib/chevre/service/offer.d.ts +4 -4
  185. package/lib/chevre/service/order/confirmPayTransaction.d.ts +9 -9
  186. package/lib/chevre/service/order/createAccountingReportIfNotExist.d.ts +1 -1
  187. package/lib/chevre/service/order/deleteOrder.d.ts +7 -7
  188. package/lib/chevre/service/order/findPlaceOrderTransaction.d.ts +1 -1
  189. package/lib/chevre/service/order/onAssetTransactionStatusChanged.d.ts +5 -5
  190. package/lib/chevre/service/order/onOrderStatusChanged/onOrderCancelled.d.ts +1 -1
  191. package/lib/chevre/service/order/onOrderStatusChanged/onOrderDelivered.d.ts +1 -1
  192. package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially.d.ts +1 -1
  193. package/lib/chevre/service/order/onOrderStatusChanged/onOrderInTransit.d.ts +2 -2
  194. package/lib/chevre/service/order/onOrderStatusChanged/onOrderPaymentDue.d.ts +1 -1
  195. package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/createSendEmailMessageTaskIfNotExist.d.ts +1 -1
  196. package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/processOrder.d.ts +1 -1
  197. package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing.d.ts +1 -1
  198. package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned.d.ts +2 -2
  199. package/lib/chevre/service/order/onOrderUpdated.d.ts +1 -1
  200. package/lib/chevre/service/order/payOrder.d.ts +4 -4
  201. package/lib/chevre/service/order/placeOrder/createPlacingOrderFromExistingTransaction.d.ts +3 -3
  202. package/lib/chevre/service/order/placeOrder/factory.d.ts +10 -1
  203. package/lib/chevre/service/order/placeOrder/factory.js +58 -5
  204. package/lib/chevre/service/order/placeOrder/voidAcceptedOfferIfNecessary.d.ts +1 -1
  205. package/lib/chevre/service/order/placeOrder/voidAcceptedOfferIfNecessary.js +1 -1
  206. package/lib/chevre/service/order/placeOrder.d.ts +7 -7
  207. package/lib/chevre/service/order/placeOrderWithoutTransaction.d.ts +4 -4
  208. package/lib/chevre/service/order/returnOrder.d.ts +6 -6
  209. package/lib/chevre/service/order/sendOrder.d.ts +6 -6
  210. package/lib/chevre/service/payment/any/handlePrePublishedPaymentMethodIdOnAuthorizing.d.ts +2 -2
  211. package/lib/chevre/service/payment/any/onPaid.d.ts +3 -3
  212. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onPaid.d.ts +1 -1
  213. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onRefunded.d.ts +1 -1
  214. package/lib/chevre/service/payment/any/onPaymentStatusChanged.d.ts +2 -2
  215. package/lib/chevre/service/payment/any/onRefund.d.ts +3 -3
  216. package/lib/chevre/service/payment/any/person2username.js +1 -1
  217. package/lib/chevre/service/payment/any.d.ts +18 -18
  218. package/lib/chevre/service/payment/any.js +1 -1
  219. package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard.d.ts +1 -1
  220. package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard3ds.d.ts +1 -1
  221. package/lib/chevre/service/payment/creditCard/authorize.d.ts +5 -5
  222. package/lib/chevre/service/payment/creditCard/getGMOInfoFromSeller.d.ts +3 -3
  223. package/lib/chevre/service/payment/creditCard/payCreditCard.d.ts +7 -7
  224. package/lib/chevre/service/payment/creditCard/refundCreditCard.d.ts +7 -7
  225. package/lib/chevre/service/payment/creditCard/voidTransaction.d.ts +5 -5
  226. package/lib/chevre/service/payment/faceToFace.d.ts +4 -4
  227. package/lib/chevre/service/payment/movieTicket/authorize.d.ts +8 -8
  228. package/lib/chevre/service/payment/movieTicket/checkMovieTicket.d.ts +6 -6
  229. package/lib/chevre/service/payment/movieTicket/getCredentials.d.ts +1 -1
  230. package/lib/chevre/service/payment/movieTicket/payMovieTicket.d.ts +8 -8
  231. package/lib/chevre/service/payment/movieTicket/processPurchaseNumberAuth.d.ts +2 -2
  232. package/lib/chevre/service/payment/movieTicket/processPurchaseNumberAuth.js +1 -1
  233. package/lib/chevre/service/payment/movieTicket/refundMovieTicket.d.ts +4 -4
  234. package/lib/chevre/service/payment/movieTicket/validation.d.ts +7 -7
  235. package/lib/chevre/service/payment/movieTicket/voidTransaction.d.ts +4 -4
  236. package/lib/chevre/service/payment/paymentCard.d.ts +6 -6
  237. package/lib/chevre/service/payment.d.ts +16 -16
  238. package/lib/chevre/service/permit.d.ts +2 -2
  239. package/lib/chevre/service/product.d.ts +3 -3
  240. package/lib/chevre/service/project.d.ts +17 -17
  241. package/lib/chevre/service/report/telemetry.d.ts +4 -4
  242. package/lib/chevre/service/reserve/cancelReservation.d.ts +6 -6
  243. package/lib/chevre/service/reserve/checkInReservation.d.ts +5 -5
  244. package/lib/chevre/service/reserve/confirmReservation.d.ts +5 -5
  245. package/lib/chevre/service/reserve/findByCode.d.ts +3 -3
  246. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +1 -1
  247. package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.d.ts +2 -2
  248. package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.d.ts +1 -1
  249. package/lib/chevre/service/reserve/potentialActions/onReservationUsed.d.ts +1 -1
  250. package/lib/chevre/service/reserve/searchByOrder.d.ts +3 -3
  251. package/lib/chevre/service/reserve/useReservation.d.ts +5 -5
  252. package/lib/chevre/service/reserve/verifyToken4reservation.d.ts +2 -2
  253. package/lib/chevre/service/task/acceptCOAOffer.js +6 -6
  254. package/lib/chevre/service/task/aggregateOffers.js +10 -10
  255. package/lib/chevre/service/task/aggregateScreeningEvent.js +9 -9
  256. package/lib/chevre/service/task/aggregateUseActionsOnEvent.js +7 -7
  257. package/lib/chevre/service/task/authorizePayment.js +14 -14
  258. package/lib/chevre/service/task/cancelMoneyTransfer.js +2 -2
  259. package/lib/chevre/service/task/cancelPendingReservation.js +6 -6
  260. package/lib/chevre/service/task/cancelReservation.js +6 -6
  261. package/lib/chevre/service/task/checkMovieTicket.js +6 -6
  262. package/lib/chevre/service/task/checkResource.js +4 -4
  263. package/lib/chevre/service/task/confirmMoneyTransfer.js +3 -3
  264. package/lib/chevre/service/task/confirmPayTransaction.js +9 -9
  265. package/lib/chevre/service/task/confirmRegisterService.js +3 -3
  266. package/lib/chevre/service/task/confirmRegisterServiceTransaction.d.ts +3 -3
  267. package/lib/chevre/service/task/confirmRegisterServiceTransaction.js +3 -3
  268. package/lib/chevre/service/task/confirmReserveTransaction.d.ts +6 -6
  269. package/lib/chevre/service/task/confirmReserveTransaction.js +6 -6
  270. package/lib/chevre/service/task/createAccountingReport.js +4 -4
  271. package/lib/chevre/service/task/createEvent.js +4 -4
  272. package/lib/chevre/service/task/deleteTransaction.js +11 -11
  273. package/lib/chevre/service/task/givePointAward.js +5 -5
  274. package/lib/chevre/service/task/importEventCapacitiesFromCOA.js +1 -1
  275. package/lib/chevre/service/task/importEventsFromCOA.js +7 -7
  276. package/lib/chevre/service/task/importOffersFromCOA.js +3 -3
  277. package/lib/chevre/service/task/moneyTransfer.js +3 -3
  278. package/lib/chevre/service/task/onAssetTransactionStatusChanged.js +5 -5
  279. package/lib/chevre/service/task/onAuthorizationCreated.js +10 -10
  280. package/lib/chevre/service/task/onEventChanged.js +3 -3
  281. package/lib/chevre/service/task/onOrderPaymentCompleted.js +4 -4
  282. package/lib/chevre/service/task/onResourceUpdated/onAggregateOfferUpdated.d.ts +2 -2
  283. package/lib/chevre/service/task/onResourceUpdated/onCategoryCodeUpdated.d.ts +2 -2
  284. package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.d.ts +3 -3
  285. package/lib/chevre/service/task/onResourceUpdated/onOfferCatalogUpdated.d.ts +4 -4
  286. package/lib/chevre/service/task/onResourceUpdated/onResourceDeleted.d.ts +18 -18
  287. package/lib/chevre/service/task/onResourceUpdated/syncCategoryCode.d.ts +2 -2
  288. package/lib/chevre/service/task/onResourceUpdated/syncOfferCatalog.d.ts +3 -3
  289. package/lib/chevre/service/task/onResourceUpdated.js +19 -19
  290. package/lib/chevre/service/task/pay.js +12 -12
  291. package/lib/chevre/service/task/placeOrder.js +7 -7
  292. package/lib/chevre/service/task/publishPaymentUrl.js +8 -8
  293. package/lib/chevre/service/task/refund.js +10 -10
  294. package/lib/chevre/service/task/registerService.js +3 -3
  295. package/lib/chevre/service/task/reserve.js +4 -4
  296. package/lib/chevre/service/task/returnMoneyTransfer.js +5 -5
  297. package/lib/chevre/service/task/returnOrder.js +6 -6
  298. package/lib/chevre/service/task/returnPayTransaction.js +8 -8
  299. package/lib/chevre/service/task/returnPointAward.js +5 -5
  300. package/lib/chevre/service/task/returnReserveTransaction.js +5 -5
  301. package/lib/chevre/service/task/sendEmailMessage.js +2 -2
  302. package/lib/chevre/service/task/sendOrder.js +6 -6
  303. package/lib/chevre/service/task/triggerWebhook.js +1 -1
  304. package/lib/chevre/service/task/useReservation.js +5 -5
  305. package/lib/chevre/service/task/voidMoneyTransferTransaction.js +3 -3
  306. package/lib/chevre/service/task/voidPayTransaction.js +8 -8
  307. package/lib/chevre/service/task/voidPayment.js +8 -8
  308. package/lib/chevre/service/task/voidRegisterServiceTransaction.js +3 -3
  309. package/lib/chevre/service/task/voidReserveTransaction.js +9 -9
  310. package/lib/chevre/service/task.d.ts +1 -1
  311. package/lib/chevre/service/task.js +3 -3
  312. package/lib/chevre/service/transaction/deleteTransaction.d.ts +11 -11
  313. package/lib/chevre/service/transaction/moneyTransfer.d.ts +10 -10
  314. package/lib/chevre/service/transaction/placeOrder/confirm/factory/result.d.ts +11 -0
  315. package/lib/chevre/service/transaction/placeOrder/confirm/factory/result.js +32 -0
  316. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/potentialActions/sendEmailMessage.d.ts +1 -1
  317. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/potentialActions/sendEmailMessage.js +2 -2
  318. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/potentialActions.d.ts +1 -1
  319. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/publishCode.d.ts +2 -2
  320. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/publishCode.js +1 -1
  321. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation/validateMovieTicket.d.ts +1 -1
  322. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation/validateMovieTicket.js +2 -2
  323. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation.d.ts +2 -2
  324. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation.js +2 -2
  325. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/confirm.d.ts +8 -8
  326. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/confirm.js +18 -25
  327. package/lib/chevre/service/transaction/placeOrder/exportTasksById.d.ts +17 -0
  328. package/lib/chevre/service/transaction/placeOrder/exportTasksById.js +39 -0
  329. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/publishConfirmationNumberIfNotExist.d.ts +1 -1
  330. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/publishOrderNumberIfNotExist.d.ts +3 -3
  331. package/lib/chevre/service/transaction/{placeOrderInProgress/validation → placeOrder/start}/validateStartRequest.d.ts +3 -3
  332. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/start.d.ts +4 -4
  333. package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/start.js +4 -2
  334. package/lib/chevre/service/transaction/placeOrder.d.ts +6 -14
  335. package/lib/chevre/service/transaction/placeOrder.js +11 -37
  336. package/lib/chevre/service/transaction/returnOrder/preStart.d.ts +9 -9
  337. package/lib/chevre/service/transaction/returnOrder.d.ts +12 -12
  338. package/lib/chevre/service/transaction.d.ts +5 -11
  339. package/lib/chevre/service/transaction.js +14 -7
  340. package/lib/chevre/service/validation/validateOrder.d.ts +3 -3
  341. package/lib/chevre/service/validation/validateOrder.js +1 -1
  342. package/package.json +5 -5
  343. package/lib/chevre/service/transaction/placeOrderInProgress/result.d.ts +0 -24
  344. package/lib/chevre/service/transaction/placeOrderInProgress/result.js +0 -120
  345. package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +0 -9
  346. package/lib/chevre/service/transaction/placeOrderInProgress.js +0 -16
  347. /package/lib/chevre/repo/{code.d.ts → authorization.d.ts} +0 -0
  348. /package/lib/chevre/repo/{code.js → authorization.js} +0 -0
  349. /package/lib/chevre/service/{transaction/placeOrderInProgress/result → order/placeOrder/factory}/orderedItem.d.ts +0 -0
  350. /package/lib/chevre/service/{transaction/placeOrderInProgress/result → order/placeOrder/factory}/orderedItem.js +0 -0
  351. /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/potentialActions.js +0 -0
  352. /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/publishConfirmationNumberIfNotExist.js +0 -0
  353. /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/publishOrderNumberIfNotExist.js +0 -0
  354. /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/start/factory.d.ts +0 -0
  355. /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/start/factory.js +0 -0
  356. /package/lib/chevre/service/transaction/{placeOrderInProgress/validation → placeOrder/start}/validateStartRequest.js +0 -0
@@ -1,12 +1,12 @@
1
- import { IMinimizedIndividualEvent, MongoRepository as EventRepo } from '../../../repo/event';
2
- import type { MongoRepository as OfferRepo } from '../../../repo/offer';
3
- import type { MongoRepository as OfferCatalogRepo } from '../../../repo/offerCatalog';
4
- import { MongoRepository as ScreeningRoomRepo } from '../../../repo/place/screeningRoom';
5
- import type { MongoRepository as ProductRepo } from '../../../repo/product';
6
- import { RedisRepository as OfferRateLimitRepo } from '../../../repo/rateLimit/offer';
7
- import type { MongoRepository as ReservationRepo } from '../../../repo/reservation';
8
- import type { StockHolderRepository as StockHolderRepo } from '../../../repo/stockHolder';
9
- import type { MongoRepository as TaskRepo } from '../../../repo/task';
1
+ import { EventRepo, IMinimizedIndividualEvent } from '../../../repo/event';
2
+ import type { OfferRepo } from '../../../repo/offer';
3
+ import type { OfferCatalogRepo } from '../../../repo/offerCatalog';
4
+ import { ScreeningRoomRepo } from '../../../repo/place/screeningRoom';
5
+ import type { ProductRepo } from '../../../repo/product';
6
+ import { OfferRateLimitRepo } from '../../../repo/rateLimit/offer';
7
+ import type { ReservationRepo } from '../../../repo/reservation';
8
+ import type { StockHolderRepo } from '../../../repo/stockHolder';
9
+ import type { TaskRepo } from '../../../repo/task';
10
10
  import * as factory from '../../../factory';
11
11
  export interface IAggregateScreeningEventRepos {
12
12
  event: EventRepo;
@@ -1,10 +1,10 @@
1
- import type { MongoRepository as ActionRepo } from '../../../repo/action';
2
- import type { MongoRepository as AggregateReservationRepo } from '../../../repo/aggregateReservation';
3
- import type { MongoRepository as EventRepo } from '../../../repo/event';
4
- import type { MongoRepository as OfferRepo } from '../../../repo/offer';
5
- import type { MongoRepository as OfferCatalogRepo } from '../../../repo/offerCatalog';
6
- import type { MongoRepository as MovieTheaterRepo } from '../../../repo/place/movieTheater';
7
- import type { MongoRepository as ProductRepo } from '../../../repo/product';
1
+ import type { ActionRepo } from '../../../repo/action';
2
+ import type { AggregateReservationRepo } from '../../../repo/aggregateReservation';
3
+ import type { EventRepo } from '../../../repo/event';
4
+ import type { OfferRepo } from '../../../repo/offer';
5
+ import type { OfferCatalogRepo } from '../../../repo/offerCatalog';
6
+ import type { MovieTheaterRepo } from '../../../repo/place/movieTheater';
7
+ import type { ProductRepo } from '../../../repo/product';
8
8
  export type IAggregateOperation<T> = (repos: {
9
9
  action: ActionRepo;
10
10
  aggregateReservation: AggregateReservationRepo;
@@ -1,7 +1,7 @@
1
1
  import type { IMinimizedIndividualEvent } from '../../../repo/event';
2
- import type { IUnitPriceOfferFromAggregateOffer, MongoRepository as OfferRepo } from '../../../repo/offer';
3
- import type { MongoRepository as OfferCatalogRepo } from '../../../repo/offerCatalog';
4
- import type { MongoRepository as ProductRepo } from '../../../repo/product';
2
+ import type { IUnitPriceOfferFromAggregateOffer, OfferRepo } from '../../../repo/offer';
3
+ import type { OfferCatalogRepo } from '../../../repo/offerCatalog';
4
+ import type { ProductRepo } from '../../../repo/product';
5
5
  import * as factory from '../../../factory';
6
6
  /**
7
7
  * 興行オファー検索
@@ -1,4 +1,4 @@
1
- import type { MongoRepository as EventRepo } from '../../../repo/event';
1
+ import type { EventRepo } from '../../../repo/event';
2
2
  import * as factory from '../../../factory';
3
3
  /**
4
4
  * イベント席数を更新する
@@ -1,6 +1,6 @@
1
- import type { MongoRepository as ProjectRepo } from '../../repo/project';
2
- import type { MongoRepository as ReservationRepo } from '../../repo/reservation';
3
- import type { MongoRepository as TaskRepo } from '../../repo/task';
1
+ import type { ProjectRepo } from '../../repo/project';
2
+ import type { ReservationRepo } from '../../repo/reservation';
3
+ import type { TaskRepo } from '../../repo/task';
4
4
  export type IAggregateOperation<T> = (repos: {
5
5
  project: ProjectRepo;
6
6
  reservation: ReservationRepo;
@@ -1,9 +1,10 @@
1
- import type { MongoRepository as ActionRepo } from '../../repo/action';
1
+ import type { ActionRepo } from '../../repo/action';
2
2
  import { AggregationRepo } from '../../repo/aggregation';
3
- import type { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransaction';
4
- import type { MongoRepository as EventRepo } from '../../repo/event';
5
- import type { MongoRepository as TasKRepo } from '../../repo/task';
6
- import type { MongoRepository as TransactionRepo } from '../../repo/transaction';
3
+ import type { AssetTransactionRepo } from '../../repo/assetTransaction';
4
+ import type { EventRepo } from '../../repo/event';
5
+ import { OrderRepo } from '../../repo/order';
6
+ import type { TaskRepo } from '../../repo/task';
7
+ import type { TransactionRepo } from '../../repo/transaction';
7
8
  type AggregateDurationUnit = 'days' | 'hours';
8
9
  declare function aggregateEvent(params: {
9
10
  aggregateDurationUnit: AggregateDurationUnit;
@@ -16,6 +17,20 @@ declare function aggregateEvent(params: {
16
17
  aggregationCount: number;
17
18
  aggregateDuration: string;
18
19
  }>;
20
+ /**
21
+ * 注文集計
22
+ */
23
+ declare function aggregateOrder(params: {
24
+ aggregateDurationUnit: AggregateDurationUnit;
25
+ aggregationCount: number;
26
+ excludedProjectId?: string;
27
+ }): (repos: {
28
+ agregation: AggregationRepo;
29
+ order: OrderRepo;
30
+ }) => Promise<{
31
+ aggregationCount: number;
32
+ aggregateDuration: string;
33
+ }>;
19
34
  /**
20
35
  * 注文取引集計
21
36
  */
@@ -179,9 +194,9 @@ declare function aggregateTask(params: {
179
194
  excludedProjectId?: string;
180
195
  }): (repos: {
181
196
  agregation: AggregationRepo;
182
- task: TasKRepo;
197
+ task: TaskRepo;
183
198
  }) => Promise<{
184
199
  aggregationCount: number;
185
200
  aggregateDuration: string;
186
201
  }>;
187
- export { aggregateAuthorizeEventServiceOfferAction, aggregateAuthorizeOrderAction, aggregateAuthorizePaymentAction, aggregateCancelReservationAction, aggregateCheckMovieTicketAction, aggregateEvent, aggregateOrderAction, aggregatePayMovieTicketAction, aggregatePayTransaction, aggregatePlaceOrder, aggregateReserveAction, aggregateReserveTransaction, aggregateTask, aggregateUseAction };
202
+ export { aggregateAuthorizeEventServiceOfferAction, aggregateAuthorizeOrderAction, aggregateAuthorizePaymentAction, aggregateCancelReservationAction, aggregateCheckMovieTicketAction, aggregateEvent, aggregateOrder, aggregateOrderAction, aggregatePayMovieTicketAction, aggregatePayTransaction, aggregatePlaceOrder, aggregateReserveAction, aggregateReserveTransaction, aggregateTask, aggregateUseAction };
@@ -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.aggregateUseAction = exports.aggregateTask = exports.aggregateReserveTransaction = exports.aggregateReserveAction = exports.aggregatePlaceOrder = exports.aggregatePayTransaction = exports.aggregatePayMovieTicketAction = exports.aggregateOrderAction = exports.aggregateEvent = exports.aggregateCheckMovieTicketAction = exports.aggregateCancelReservationAction = exports.aggregateAuthorizePaymentAction = exports.aggregateAuthorizeOrderAction = exports.aggregateAuthorizeEventServiceOfferAction = void 0;
12
+ exports.aggregateUseAction = exports.aggregateTask = exports.aggregateReserveTransaction = exports.aggregateReserveAction = exports.aggregatePlaceOrder = exports.aggregatePayTransaction = exports.aggregatePayMovieTicketAction = exports.aggregateOrderAction = exports.aggregateOrder = exports.aggregateEvent = exports.aggregateCheckMovieTicketAction = exports.aggregateCancelReservationAction = exports.aggregateAuthorizePaymentAction = exports.aggregateAuthorizeOrderAction = exports.aggregateAuthorizeEventServiceOfferAction = void 0;
13
13
  const createDebug = require("debug");
14
14
  const moment = require("moment-timezone");
15
15
  const factory = require("../../factory");
@@ -49,6 +49,40 @@ function aggregateEvent(params) {
49
49
  });
50
50
  }
51
51
  exports.aggregateEvent = aggregateEvent;
52
+ /**
53
+ * 注文集計
54
+ */
55
+ function aggregateOrder(params) {
56
+ return (repos) => __awaiter(this, void 0, void 0, function* () {
57
+ const aggregateDate = new Date();
58
+ const aggregateDuration = moment.duration(1, params.aggregateDurationUnit)
59
+ .toISOString();
60
+ let i = -1;
61
+ while (i < params.aggregationCount) {
62
+ i += 1;
63
+ const startFrom = moment(aggregateDate)
64
+ .utc()
65
+ // .tz('Asia/Tokyo')
66
+ .add(-i, params.aggregateDurationUnit)
67
+ .startOf(params.aggregateDurationUnit)
68
+ .toDate();
69
+ const startThrough = moment(aggregateDate)
70
+ .utc()
71
+ // .tz('Asia/Tokyo')
72
+ .add(-i, params.aggregateDurationUnit)
73
+ .endOf(params.aggregateDurationUnit)
74
+ .toDate();
75
+ const aggregateResult = yield repos.order.aggregateOrder({
76
+ project: { id: { $ne: params.excludedProjectId } },
77
+ orderDate: { $gte: startFrom, $lte: startThrough }
78
+ });
79
+ debug('aggregateOrder:result', aggregateResult, startFrom);
80
+ yield repos.agregation.saveAggregation(Object.assign({ typeOf: aggregation_1.AggregationType.AggregateOrder, project: { id: '*', typeOf: factory.organizationType.Project }, aggregateDuration, aggregateStart: startFrom, aggregateDate }, aggregateResult));
81
+ }
82
+ return { aggregationCount: i, aggregateDuration };
83
+ });
84
+ }
85
+ exports.aggregateOrder = aggregateOrder;
52
86
  /**
53
87
  * 注文取引集計
54
88
  */
@@ -1,8 +1,8 @@
1
1
  import * as factory from '../../factory';
2
- import type { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransaction';
3
- import type { MongoRepository as ProjectRepo } from '../../repo/project';
4
- import type { MongoRepository as ReservationRepo } from '../../repo/reservation';
5
- import type { MongoRepository as TaskRepo } from '../../repo/task';
2
+ import type { AssetTransactionRepo } from '../../repo/assetTransaction';
3
+ import type { ProjectRepo } from '../../repo/project';
4
+ import type { ReservationRepo } from '../../repo/reservation';
5
+ import type { TaskRepo } from '../../repo/task';
6
6
  export type IStartOperation<T> = (repos: {
7
7
  project: ProjectRepo;
8
8
  reservation: ReservationRepo;
@@ -1,8 +1,8 @@
1
1
  import * as factory from '../../factory';
2
- import type { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransaction';
3
- import type { MongoRepository as ProductRepo } from '../../repo/product';
4
- import type { MongoRepository as ProjectRepo } from '../../repo/project';
5
- import type { MongoRepository as TaskRepo } from '../../repo/task';
2
+ import type { AssetTransactionRepo } from '../../repo/assetTransaction';
3
+ import type { ProductRepo } from '../../repo/product';
4
+ import type { ProjectRepo } from '../../repo/project';
5
+ import type { TaskRepo } from '../../repo/task';
6
6
  export type IStartOperation<T> = (repos: {
7
7
  product: ProductRepo;
8
8
  project: ProjectRepo;
@@ -16,7 +16,7 @@ exports.exportTasksById = exports.cancel = exports.confirm = exports.start = voi
16
16
  const moment = require("moment");
17
17
  const factory = require("../../factory");
18
18
  const pecorinoapi = require("../../pecorinoapi");
19
- // import type { RedisRepository as TransactionNumberRepo } from '../../repo/transactionNumber';
19
+ // import type { TransactionNumberRepo } from '../../repo/transactionNumber';
20
20
  const MoneyTransferService = require("../moneyTransfer");
21
21
  const potentialActions_1 = require("./moneyTransfer/potentialActions");
22
22
  /**
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * ペイメントカード決済取引バリデーション
3
3
  */
4
- import type { MongoRepository as PaymentAcceptedRepo } from '../../../../repo/sellerPaymentAccepted';
4
+ import type { SellerPaymentAcceptedRepo } from '../../../../repo/sellerPaymentAccepted';
5
5
  import * as factory from '../../../../factory';
6
6
  export declare function validateAccount(params: factory.assetTransaction.pay.IStartParamsWithoutDetail): (repos: {
7
- paymentAccepted: PaymentAcceptedRepo;
7
+ paymentAccepted: SellerPaymentAcceptedRepo;
8
8
  }) => Promise<void>;
@@ -3,24 +3,24 @@
3
3
  */
4
4
  import * as GMO from '@motionpicture/gmo-service';
5
5
  import * as factory from '../../factory';
6
- import type { MongoRepository as AcceptedOfferRepo } from '../../repo/acceptedOffer';
7
- import type { MongoRepository as AccountingReportRepo } from '../../repo/accountingReport';
8
- import type { MongoRepository as ActionRepo } from '../../repo/action';
9
- import type { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransaction';
10
- import type { MongoRepository as EventRepo } from '../../repo/event';
11
- import type { MongoRepository as OrderRepo } from '../../repo/order';
12
- import type { MongoRepository as PaymentServiceRepo } from '../../repo/paymentService';
13
- import type { MongoRepository as PaymentServiceProviderRepo } from '../../repo/paymentServiceProvider';
14
- import type { MongoRepository as ProductRepo } from '../../repo/product';
15
- import type { MongoRepository as PaymentAcceptedRepo } from '../../repo/sellerPaymentAccepted';
16
- import type { MongoRepository as TaskRepo } from '../../repo/task';
6
+ import type { AcceptedOfferRepo } from '../../repo/acceptedOffer';
7
+ import type { AccountingReportRepo } from '../../repo/accountingReport';
8
+ import type { ActionRepo } from '../../repo/action';
9
+ import type { AssetTransactionRepo } from '../../repo/assetTransaction';
10
+ import type { EventRepo } from '../../repo/event';
11
+ import type { OrderRepo } from '../../repo/order';
12
+ import type { PaymentServiceRepo } from '../../repo/paymentService';
13
+ import type { PaymentServiceProviderRepo } from '../../repo/paymentServiceProvider';
14
+ import type { ProductRepo } from '../../repo/product';
15
+ import type { SellerPaymentAcceptedRepo } from '../../repo/sellerPaymentAccepted';
16
+ import type { TaskRepo } from '../../repo/task';
17
17
  import * as CreditCardPayment from '../payment/creditCard';
18
18
  import * as MovieTicketPayment from '../payment/movieTicket';
19
19
  export interface IStartOperationRepos {
20
20
  accountingReport: AccountingReportRepo;
21
21
  action: ActionRepo;
22
22
  event: EventRepo;
23
- paymentAccepted: PaymentAcceptedRepo;
23
+ paymentAccepted: SellerPaymentAcceptedRepo;
24
24
  paymentService: PaymentServiceRepo;
25
25
  paymentServiceProvider: PaymentServiceProviderRepo;
26
26
  product: ProductRepo;
@@ -49,20 +49,20 @@ export type IExportTasksOperation<T> = (repos: {
49
49
  export type ICheckOperation<T> = (repos: {
50
50
  action: ActionRepo;
51
51
  event: EventRepo;
52
- paymentAccepted: PaymentAcceptedRepo;
52
+ paymentAccepted: SellerPaymentAcceptedRepo;
53
53
  paymentService: PaymentServiceRepo;
54
54
  paymentServiceProvider: PaymentServiceProviderRepo;
55
55
  }) => Promise<T>;
56
56
  export type IPublishPaymentUrlOperation<T> = (repos: {
57
57
  action: ActionRepo;
58
- paymentAccepted: PaymentAcceptedRepo;
58
+ paymentAccepted: SellerPaymentAcceptedRepo;
59
59
  paymentService: PaymentServiceRepo;
60
60
  paymentServiceProvider: PaymentServiceProviderRepo;
61
61
  }) => Promise<T>;
62
62
  export type IInvalidatePaymentUrlOperation<T> = (repos: {
63
63
  accountingReport: AccountingReportRepo;
64
64
  action: ActionRepo;
65
- paymentAccepted: PaymentAcceptedRepo;
65
+ paymentAccepted: SellerPaymentAcceptedRepo;
66
66
  paymentService: PaymentServiceRepo;
67
67
  paymentServiceProvider: PaymentServiceProviderRepo;
68
68
  task: TaskRepo;
@@ -160,7 +160,7 @@ export declare function exportTasksById(params: {
160
160
  export declare function searchGMOTrade(params: {
161
161
  transactionNumber: string;
162
162
  }): (repos: {
163
- paymentAccepted: PaymentAcceptedRepo;
163
+ paymentAccepted: SellerPaymentAcceptedRepo;
164
164
  paymentService: PaymentServiceRepo;
165
165
  paymentServiceProvider: PaymentServiceProviderRepo;
166
166
  assetTransaction: AssetTransactionRepo;
@@ -1,9 +1,9 @@
1
1
  import * as factory from '../../factory';
2
- import type { MongoRepository as ActionRepo } from '../../repo/action';
3
- import type { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransaction';
4
- import type { MongoRepository as PaymentServiceRepo } from '../../repo/paymentService';
5
- import type { MongoRepository as ProductRepo } from '../../repo/product';
6
- import type { MongoRepository as TaskRepo } from '../../repo/task';
2
+ import type { ActionRepo } from '../../repo/action';
3
+ import type { AssetTransactionRepo } from '../../repo/assetTransaction';
4
+ import type { PaymentServiceRepo } from '../../repo/paymentService';
5
+ import type { ProductRepo } from '../../repo/product';
6
+ import type { TaskRepo } from '../../repo/task';
7
7
  export interface IStartOperationRepos {
8
8
  action: ActionRepo;
9
9
  paymentService: PaymentServiceRepo;
@@ -1,12 +1,12 @@
1
1
  import * as factory from '../../factory';
2
- import type { MongoRepository as AccountRepo } from '../../repo/account';
3
- import type { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransaction';
4
- import type { MongoRepository as OfferRepo } from '../../repo/offer';
5
- import type { MongoRepository as OfferCatalogRepo } from '../../repo/offerCatalog';
6
- import type { MongoRepository as ProductRepo } from '../../repo/product';
7
- import type { MongoRepository as ProjectRepo } from '../../repo/project';
8
- import type { MongoRepository as ServiceOutputRepo } from '../../repo/serviceOutput';
9
- import type { MongoRepository as TaskRepo } from '../../repo/task';
2
+ import type { AccountRepo } from '../../repo/account';
3
+ import type { AssetTransactionRepo } from '../../repo/assetTransaction';
4
+ import type { OfferRepo } from '../../repo/offer';
5
+ import type { OfferCatalogRepo } from '../../repo/offerCatalog';
6
+ import type { ProductRepo } from '../../repo/product';
7
+ import type { ProjectRepo } from '../../repo/project';
8
+ import type { ServiceOutputRepo } from '../../repo/serviceOutput';
9
+ import type { TaskRepo } from '../../repo/task';
10
10
  export type IStartOperation<T> = (repos: {
11
11
  account: AccountRepo;
12
12
  offer: OfferRepo;
@@ -1,9 +1,9 @@
1
- import type { MongoRepository as ActionRepo } from '../../../repo/action';
2
- import type { MongoRepository as AssetTransactionRepo } from '../../../repo/assetTransaction';
3
- import type { RedisRepository as OfferRateLimitRepo } from '../../../repo/rateLimit/offer';
4
- import type { MongoRepository as ReservationRepo } from '../../../repo/reservation';
5
- import type { StockHolderRepository as StockHolderRepo } from '../../../repo/stockHolder';
6
- import type { MongoRepository as TaskRepo } from '../../../repo/task';
1
+ import type { ActionRepo } from '../../../repo/action';
2
+ import type { AssetTransactionRepo } from '../../../repo/assetTransaction';
3
+ import type { OfferRateLimitRepo } from '../../../repo/rateLimit/offer';
4
+ import type { ReservationRepo } from '../../../repo/reservation';
5
+ import type { StockHolderRepo } from '../../../repo/stockHolder';
6
+ import type { TaskRepo } from '../../../repo/task';
7
7
  type ICancelOperation<T> = (repos: {
8
8
  action: ActionRepo;
9
9
  stockHolder: StockHolderRepo;
@@ -1,9 +1,9 @@
1
1
  import * as factory from '../../../factory';
2
- import type { MongoRepository as ActionRepo } from '../../../repo/action';
3
- import type { MongoRepository as AssetTransactionRepo } from '../../../repo/assetTransaction';
4
- import type { MongoRepository as OrderRepo } from '../../../repo/order';
5
- import type { MongoRepository as ReservationRepo } from '../../../repo/reservation';
6
- import type { MongoRepository as TaskRepo } from '../../../repo/task';
2
+ import type { ActionRepo } from '../../../repo/action';
3
+ import type { AssetTransactionRepo } from '../../../repo/assetTransaction';
4
+ import type { OrderRepo } from '../../../repo/order';
5
+ import type { ReservationRepo } from '../../../repo/reservation';
6
+ import type { TaskRepo } from '../../../repo/task';
7
7
  interface IConfirmRepo {
8
8
  action: ActionRepo;
9
9
  assetTransaction: AssetTransactionRepo;
@@ -1,5 +1,5 @@
1
- import type { MongoRepository as AssetTransactionRepo } from '../../../repo/assetTransaction';
2
- import type { MongoRepository as TaskRepo } from '../../../repo/task';
1
+ import type { AssetTransactionRepo } from '../../../repo/assetTransaction';
2
+ import type { TaskRepo } from '../../../repo/task';
3
3
  type ITaskAndTransactionOperation<T> = (repos: {
4
4
  task: TaskRepo;
5
5
  assetTransaction: AssetTransactionRepo;
@@ -1,10 +1,10 @@
1
1
  import * as factory from '../../../../factory';
2
2
  import type { IMinimizedIndividualEvent } from '../../../../repo/event';
3
- import type { MongoRepository as OfferRepo } from '../../../../repo/offer';
4
- import type { MongoRepository as OfferCatalogRepo } from '../../../../repo/offerCatalog';
5
- import type { MongoRepository as PaymentServiceRepo } from '../../../../repo/paymentService';
6
- import type { MongoRepository as ProductRepo } from '../../../../repo/product';
7
- import type { MongoRepository as ProductOfferRepo } from '../../../../repo/productOffer';
3
+ import type { OfferRepo } from '../../../../repo/offer';
4
+ import type { OfferCatalogRepo } from '../../../../repo/offerCatalog';
5
+ import type { PaymentServiceRepo } from '../../../../repo/paymentService';
6
+ import type { ProductRepo } from '../../../../repo/product';
7
+ import type { ProductOfferRepo } from '../../../../repo/productOffer';
8
8
  type IObjectSubReservation = factory.assetTransaction.reserve.IObjectSubReservation;
9
9
  declare function createSubReservations(params: {
10
10
  acceptedOffers: factory.assetTransaction.reserve.IAcceptedTicketOfferWithoutDetail[];
@@ -1,18 +1,18 @@
1
1
  import * as factory from '../../../factory';
2
- import type { MongoRepository as AssetTransactionRepo } from '../../../repo/assetTransaction';
3
- import type { IMinimizedIndividualEvent, MongoRepository as EventRepo } from '../../../repo/event';
4
- import type { MongoRepository as OfferRepo } from '../../../repo/offer';
5
- import type { MongoRepository as OfferCatalogRepo } from '../../../repo/offerCatalog';
6
- import type { MongoRepository as OfferCatalogItemRepo } from '../../../repo/offerCatalogItem';
7
- import type { MongoRepository as PaymentServiceRepo } from '../../../repo/paymentService';
8
- import type { MongoRepository as SeatRepo } from '../../../repo/place/seat';
9
- import type { MongoRepository as PriceSpecificationRepo } from '../../../repo/priceSpecification';
10
- import type { MongoRepository as ProductRepo } from '../../../repo/product';
11
- import type { MongoRepository as ProductOfferRepo } from '../../../repo/productOffer';
12
- import type { MongoRepository as ProjectRepo } from '../../../repo/project';
13
- import type { RedisRepository as OfferRateLimitRepo } from '../../../repo/rateLimit/offer';
14
- import type { StockHolderRepository as StockHolderRepo } from '../../../repo/stockHolder';
15
- import type { MongoRepository as TaskRepo } from '../../../repo/task';
2
+ import type { AssetTransactionRepo } from '../../../repo/assetTransaction';
3
+ import type { EventRepo, IMinimizedIndividualEvent } from '../../../repo/event';
4
+ import type { OfferRepo } from '../../../repo/offer';
5
+ import type { OfferCatalogRepo } from '../../../repo/offerCatalog';
6
+ import type { OfferCatalogItemRepo } from '../../../repo/offerCatalogItem';
7
+ import type { PaymentServiceRepo } from '../../../repo/paymentService';
8
+ import type { SeatRepo } from '../../../repo/place/seat';
9
+ import type { PriceSpecificationRepo } from '../../../repo/priceSpecification';
10
+ import type { ProductRepo } from '../../../repo/product';
11
+ import type { ProductOfferRepo } from '../../../repo/productOffer';
12
+ import type { ProjectRepo } from '../../../repo/project';
13
+ import type { OfferRateLimitRepo } from '../../../repo/rateLimit/offer';
14
+ import type { StockHolderRepo } from '../../../repo/stockHolder';
15
+ import type { TaskRepo } from '../../../repo/task';
16
16
  interface IStartOperationRepos {
17
17
  stockHolder: StockHolderRepo;
18
18
  event: EventRepo;
@@ -2,8 +2,8 @@
2
2
  * 取引サービス
3
3
  */
4
4
  import * as factory from '../factory';
5
- import type { MongoRepository as AssetTransactionRepo } from '../repo/assetTransaction';
6
- import type { MongoRepository as TaskRepo } from '../repo/task';
5
+ import type { AssetTransactionRepo } from '../repo/assetTransaction';
6
+ import type { TaskRepo } from '../repo/task';
7
7
  import * as CancelReservationTransactionService from './assetTransaction/cancelReservation';
8
8
  import * as MoneyTransferTransactionService from './assetTransaction/moneyTransfer';
9
9
  import * as PayTransactionService from './assetTransaction/pay';
@@ -1,5 +1,5 @@
1
- import type { MongoRepository as ActionRepo } from '../repo/action';
2
- import type { AuthorizationRepo, ICode } from '../repo/code';
1
+ import type { ActionRepo } from '../repo/action';
2
+ import type { AuthorizationRepo, ICode } from '../repo/authorization';
3
3
  import type { TicketRepo } from '../repo/ticket';
4
4
  import * as factory from '../factory';
5
5
  type IToken = string;
@@ -1,15 +1,15 @@
1
1
  import * as factory from '../factory';
2
- import type { MongoRepository as ActionRepo } from '../repo/action';
3
- import type { MongoRepository as AssetRepo } from '../repo/assetTransaction';
4
- import type { MongoRepository as ProductRepo } from '../repo/product';
5
- import type { MongoRepository as ProjectRepo } from '../repo/project';
6
- import type { RedisRepository as TransactionNumberRepo } from '../repo/transactionNumber';
2
+ import type { ActionRepo } from '../repo/action';
3
+ import type { AssetTransactionRepo } from '../repo/assetTransaction';
4
+ import type { ProductRepo } from '../repo/product';
5
+ import type { ProjectRepo } from '../repo/project';
6
+ import type { TransactionNumberRepo } from '../repo/transactionNumber';
7
7
  /**
8
8
  * 特典付与
9
9
  */
10
10
  declare function givePointAward(params: factory.task.IData<factory.taskName.GivePointAward>): (repos: {
11
11
  action: ActionRepo;
12
- assetTransaction: AssetRepo;
12
+ assetTransaction: AssetTransactionRepo;
13
13
  product: ProductRepo;
14
14
  project: ProjectRepo;
15
15
  transactionNumber: TransactionNumberRepo;
@@ -19,7 +19,7 @@ declare function givePointAward(params: factory.task.IData<factory.taskName.Give
19
19
  */
20
20
  declare function returnPointAward(params: factory.task.IData<factory.taskName.ReturnPointAward>): (repos: {
21
21
  action: ActionRepo;
22
- assetTransaction: AssetRepo;
22
+ assetTransaction: AssetTransactionRepo;
23
23
  product: ProductRepo;
24
24
  project: ProjectRepo;
25
25
  transactionNumber: TransactionNumberRepo;
@@ -1,8 +1,8 @@
1
1
  import * as factory from '../../factory';
2
- import type { MongoRepository as ActionRepo } from '../../repo/action';
3
- import type { MongoRepository as EventRepo } from '../../repo/event';
4
- import type { MongoRepository as MovieTheaterRepo } from '../../repo/place/movieTheater';
5
- import type { MongoRepository as TaskRepo } from '../../repo/task';
2
+ import type { ActionRepo } from '../../repo/action';
3
+ import type { EventRepo } from '../../repo/event';
4
+ import type { MovieTheaterRepo } from '../../repo/place/movieTheater';
5
+ import type { TaskRepo } from '../../repo/task';
6
6
  export declare function createEvent(params: factory.task.createEvent.IData): (repos: {
7
7
  action: ActionRepo;
8
8
  event: EventRepo;
@@ -1,12 +1,12 @@
1
- import type { MongoRepository as ActionRepo } from '../repo/action';
2
- import type { MongoRepository as CategoryCodeRepo } from '../repo/categoryCode';
3
- import type { MongoRepository as CreativeWorkRepo } from '../repo/creativeWork';
4
- import type { MongoRepository as EventRepo } from '../repo/event';
5
- import type { MongoRepository as MovieTheaterRepo } from '../repo/place/movieTheater';
6
- import type { MongoRepository as ScreeningRoomRepo } from '../repo/place/screeningRoom';
7
- import type { MongoRepository as ProjectRepo } from '../repo/project';
8
- import type { MongoRepository as SellerRepo } from '../repo/seller';
9
- import type { MongoRepository as TaskRepo } from '../repo/task';
1
+ import type { ActionRepo } from '../repo/action';
2
+ import type { CategoryCodeRepo } from '../repo/categoryCode';
3
+ import type { CreativeWorkRepo } from '../repo/creativeWork';
4
+ import type { EventRepo } from '../repo/event';
5
+ import type { MovieTheaterRepo } from '../repo/place/movieTheater';
6
+ import type { ScreeningRoomRepo } from '../repo/place/screeningRoom';
7
+ import type { ProjectRepo } from '../repo/project';
8
+ import type { SellerRepo } from '../repo/seller';
9
+ import type { TaskRepo } from '../repo/task';
10
10
  import * as factory from '../factory';
11
11
  import { createEvent } from './event/createEvent';
12
12
  interface IImportFromCOAParams {
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * IAMサービス
3
3
  */
4
- import type { MongoRepository as MemberRepo } from '../repo/member';
5
- import type { MongoRepository as RoleRepo } from '../repo/role';
4
+ import type { MemberRepo } from '../repo/member';
5
+ import type { RoleRepo } from '../repo/role';
6
6
  import * as factory from '../factory';
7
7
  export type IPermission = string;
8
8
  /**
@@ -1,9 +1,9 @@
1
1
  import * as factory from '../factory';
2
- import type { MongoRepository as ActionRepo } from '../repo/action';
3
- import type { MongoRepository as AssetTransactionRepo } from '../repo/assetTransaction';
4
- import type { MongoRepository as ProductRepo } from '../repo/product';
5
- import type { MongoRepository as ProjectRepo } from '../repo/project';
6
- import type { RedisRepository as TransactionNumberRepo } from '../repo/transactionNumber';
2
+ import type { ActionRepo } from '../repo/action';
3
+ import type { AssetTransactionRepo } from '../repo/assetTransaction';
4
+ import type { ProductRepo } from '../repo/product';
5
+ import type { ProjectRepo } from '../repo/project';
6
+ import type { TransactionNumberRepo } from '../repo/transactionNumber';
7
7
  export type IAuthorizeOperation<T> = (repos: {
8
8
  product: ProductRepo;
9
9
  project: ProjectRepo;
@@ -1,7 +1,7 @@
1
1
  import * as factory from '../factory';
2
- import type { MongoRepository as ActionRepo } from '../repo/action';
2
+ import type { ActionRepo } from '../repo/action';
3
3
  import type { MessageRepo } from '../repo/message';
4
- import type { MongoRepository as ProjectRepo } from '../repo/project';
4
+ import type { ProjectRepo } from '../repo/project';
5
5
  type ILineNotifyOperation<T> = (repos: {
6
6
  useFetchAPI: boolean;
7
7
  }) => Promise<T>;
@@ -1,8 +1,8 @@
1
1
  import * as factory from '../../factory';
2
- import type { MongoRepository as OrderInTransactionRepo } from '../../repo/orderInTransaction';
3
- import type { RedisRepository as OrderNumberRepo } from '../../repo/orderNumber';
4
- import type { MongoRepository as ProjectRepo } from '../../repo/project';
5
- import type { MongoRepository as TransactionRepo } from '../../repo/transaction';
2
+ import type { OrderInTransactionRepo } from '../../repo/orderInTransaction';
3
+ import type { OrderNumberRepo } from '../../repo/orderNumber';
4
+ import type { ProjectRepo } from '../../repo/project';
5
+ import type { TransactionRepo } from '../../repo/transaction';
6
6
  interface IAcceptOfferOperationRepos {
7
7
  orderInTransaction: OrderInTransactionRepo;
8
8
  orderNumber: OrderNumberRepo;
@@ -12,12 +12,12 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.voidAcceptedOffer = exports.acceptOffer = void 0;
13
13
  const createDebug = require("debug");
14
14
  const factory = require("../../factory");
15
- const placeOrderInProgress_1 = require("../transaction/placeOrderInProgress");
15
+ const publishOrderNumberIfNotExist_1 = require("../transaction/placeOrder/publishOrderNumberIfNotExist");
16
16
  const debug = createDebug('chevre-domain:service:offer');
17
17
  function acceptOffer(params) {
18
18
  return (repos) => __awaiter(this, void 0, void 0, function* () {
19
19
  const now = new Date();
20
- const orderNumber = yield (0, placeOrderInProgress_1.publishOrderNumberIfNotExist)({
20
+ const orderNumber = yield (0, publishOrderNumberIfNotExist_1.publishOrderNumberIfNotExist)({
21
21
  project: { id: params.project.id },
22
22
  id: params.purpose.id,
23
23
  object: { orderDate: now }