@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.
- package/example/src/chevre/findReservationByCode.ts +1 -1
- package/example/src/chevre/findValidAuthorization.ts +1 -1
- package/example/src/chevre/transaction/processPlaceOrder.ts +11 -5
- package/lib/chevre/repo/acceptedOffer.d.ts +1 -1
- package/lib/chevre/repo/acceptedOffer.js +4 -4
- package/lib/chevre/repo/account.d.ts +1 -1
- package/lib/chevre/repo/account.js +5 -5
- package/lib/chevre/repo/accountTitle.d.ts +1 -1
- package/lib/chevre/repo/accountTitle.js +3 -3
- package/lib/chevre/repo/accountTransaction.d.ts +1 -1
- package/lib/chevre/repo/accountTransaction.js +4 -4
- package/lib/chevre/repo/accountingReport.d.ts +1 -1
- package/lib/chevre/repo/accountingReport.js +4 -4
- package/lib/chevre/repo/action.d.ts +1 -1
- package/lib/chevre/repo/action.js +4 -4
- package/lib/chevre/repo/additionalProperty.d.ts +1 -1
- package/lib/chevre/repo/additionalProperty.js +4 -4
- package/lib/chevre/repo/aggregateOffer.d.ts +1 -1
- package/lib/chevre/repo/aggregateOffer.js +6 -6
- package/lib/chevre/repo/aggregateReservation.d.ts +1 -1
- package/lib/chevre/repo/aggregateReservation.js +4 -4
- package/lib/chevre/repo/assetTransaction.d.ts +1 -1
- package/lib/chevre/repo/assetTransaction.js +5 -5
- package/lib/chevre/repo/categoryCode.d.ts +1 -1
- package/lib/chevre/repo/categoryCode.js +6 -6
- package/lib/chevre/repo/comment.d.ts +1 -1
- package/lib/chevre/repo/comment.js +4 -4
- package/lib/chevre/repo/creativeWork.d.ts +1 -1
- package/lib/chevre/repo/creativeWork.js +4 -4
- package/lib/chevre/repo/customer.d.ts +1 -1
- package/lib/chevre/repo/customer.js +4 -4
- package/lib/chevre/repo/customerType.d.ts +1 -1
- package/lib/chevre/repo/customerType.js +4 -4
- package/lib/chevre/repo/emailMessage.d.ts +1 -1
- package/lib/chevre/repo/emailMessage.js +4 -4
- package/lib/chevre/repo/event.d.ts +1 -1
- package/lib/chevre/repo/event.js +5 -5
- package/lib/chevre/repo/member.d.ts +1 -1
- package/lib/chevre/repo/member.js +4 -4
- package/lib/chevre/repo/merchantReturnPolicy.d.ts +1 -1
- package/lib/chevre/repo/merchantReturnPolicy.js +4 -4
- package/lib/chevre/repo/note.d.ts +1 -1
- package/lib/chevre/repo/note.js +4 -4
- package/lib/chevre/repo/offer.d.ts +1 -1
- package/lib/chevre/repo/offer.js +7 -7
- package/lib/chevre/repo/offerCatalog.d.ts +1 -1
- package/lib/chevre/repo/offerCatalog.js +4 -4
- package/lib/chevre/repo/offerCatalogItem.d.ts +1 -1
- package/lib/chevre/repo/offerCatalogItem.js +5 -5
- package/lib/chevre/repo/offerItemCondition.d.ts +1 -1
- package/lib/chevre/repo/offerItemCondition.js +4 -4
- package/lib/chevre/repo/order.d.ts +1 -1
- package/lib/chevre/repo/order.js +5 -5
- package/lib/chevre/repo/orderInTransaction.d.ts +1 -1
- package/lib/chevre/repo/orderInTransaction.js +3 -3
- package/lib/chevre/repo/orderNumber.d.ts +1 -1
- package/lib/chevre/repo/orderNumber.js +6 -6
- package/lib/chevre/repo/ownershipInfo.d.ts +1 -1
- package/lib/chevre/repo/ownershipInfo.js +4 -4
- package/lib/chevre/repo/passport.d.ts +7 -0
- package/lib/chevre/repo/passport.js +4 -1
- package/lib/chevre/repo/paymentMethod/creditCard.d.ts +1 -1
- package/lib/chevre/repo/paymentMethod/creditCard.js +3 -3
- package/lib/chevre/repo/paymentService.d.ts +1 -1
- package/lib/chevre/repo/paymentService.js +4 -4
- package/lib/chevre/repo/paymentServiceProvider.d.ts +1 -1
- package/lib/chevre/repo/paymentServiceProvider.js +3 -3
- package/lib/chevre/repo/permit.d.ts +1 -1
- package/lib/chevre/repo/permit.js +3 -3
- package/lib/chevre/repo/person.d.ts +1 -1
- package/lib/chevre/repo/person.js +10 -10
- package/lib/chevre/repo/place/busStop.d.ts +1 -1
- package/lib/chevre/repo/place/busStop.js +4 -4
- package/lib/chevre/repo/place/hasPOS.d.ts +1 -1
- package/lib/chevre/repo/place/hasPOS.js +3 -3
- package/lib/chevre/repo/place/movieTheater.d.ts +1 -1
- package/lib/chevre/repo/place/movieTheater.js +4 -4
- package/lib/chevre/repo/place/screeningRoom.d.ts +1 -1
- package/lib/chevre/repo/place/screeningRoom.js +3 -3
- package/lib/chevre/repo/place/seat.d.ts +1 -1
- package/lib/chevre/repo/place/seat.js +4 -4
- package/lib/chevre/repo/place/section.d.ts +1 -1
- package/lib/chevre/repo/place/section.js +3 -3
- package/lib/chevre/repo/priceSpecification.d.ts +1 -1
- package/lib/chevre/repo/priceSpecification.js +5 -5
- package/lib/chevre/repo/product.d.ts +1 -1
- package/lib/chevre/repo/product.js +4 -4
- package/lib/chevre/repo/productModel.d.ts +1 -1
- package/lib/chevre/repo/productModel.js +4 -4
- package/lib/chevre/repo/productOffer.d.ts +1 -1
- package/lib/chevre/repo/productOffer.js +3 -3
- package/lib/chevre/repo/project.d.ts +2 -1
- package/lib/chevre/repo/project.js +5 -4
- package/lib/chevre/repo/projectMakesOffer.d.ts +1 -1
- package/lib/chevre/repo/projectMakesOffer.js +3 -3
- package/lib/chevre/repo/rateLimit/offer.d.ts +1 -1
- package/lib/chevre/repo/rateLimit/offer.js +9 -8
- package/lib/chevre/repo/reservation.d.ts +1 -1
- package/lib/chevre/repo/reservation.js +5 -5
- package/lib/chevre/repo/role.d.ts +1 -1
- package/lib/chevre/repo/role.js +4 -4
- package/lib/chevre/repo/seller.d.ts +4 -2
- package/lib/chevre/repo/seller.js +19 -17
- package/lib/chevre/repo/sellerPaymentAccepted.d.ts +1 -1
- package/lib/chevre/repo/sellerPaymentAccepted.js +3 -3
- package/lib/chevre/repo/serviceOutput.d.ts +1 -1
- package/lib/chevre/repo/serviceOutput.js +4 -4
- package/lib/chevre/repo/serviceOutputIdentifier.d.ts +1 -1
- package/lib/chevre/repo/serviceOutputIdentifier.js +6 -6
- package/lib/chevre/repo/stockHolder.d.ts +1 -1
- package/lib/chevre/repo/stockHolder.js +21 -21
- package/lib/chevre/repo/task.d.ts +1 -1
- package/lib/chevre/repo/task.js +5 -5
- package/lib/chevre/repo/telemetry.d.ts +1 -1
- package/lib/chevre/repo/telemetry.js +3 -3
- package/lib/chevre/repo/transaction.d.ts +1 -4
- package/lib/chevre/repo/transaction.js +6 -6
- package/lib/chevre/repo/transactionNumber.d.ts +1 -1
- package/lib/chevre/repo/transactionNumber.js +6 -6
- package/lib/chevre/repo/transactionProcess.d.ts +1 -1
- package/lib/chevre/repo/transactionProcess.js +5 -5
- package/lib/chevre/repo/trip.d.ts +1 -1
- package/lib/chevre/repo/trip.js +4 -4
- package/lib/chevre/repository.d.ts +64 -64
- package/lib/chevre/repository.js +65 -65
- package/lib/chevre/service/account.d.ts +2 -2
- package/lib/chevre/service/accountTransaction/deposit.d.ts +2 -2
- package/lib/chevre/service/accountTransaction/transfer.d.ts +2 -2
- package/lib/chevre/service/accountTransaction/withdraw.d.ts +2 -2
- package/lib/chevre/service/accountTransaction.d.ts +1 -1
- package/lib/chevre/service/aggregation/event/aggregateOffers.d.ts +10 -10
- package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.d.ts +9 -9
- package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.d.ts +7 -7
- package/lib/chevre/service/aggregation/event/findEventOffers.d.ts +3 -3
- package/lib/chevre/service/aggregation/event/importFromCOA.d.ts +1 -1
- package/lib/chevre/service/aggregation/project.d.ts +3 -3
- package/lib/chevre/service/aggregation/system.d.ts +6 -6
- package/lib/chevre/service/assetTransaction/cancelReservation.d.ts +4 -4
- package/lib/chevre/service/assetTransaction/moneyTransfer.d.ts +4 -4
- package/lib/chevre/service/assetTransaction/moneyTransfer.js +1 -1
- package/lib/chevre/service/assetTransaction/pay/account/validation.d.ts +2 -2
- package/lib/chevre/service/assetTransaction/pay.d.ts +16 -16
- package/lib/chevre/service/assetTransaction/refund.d.ts +5 -5
- package/lib/chevre/service/assetTransaction/registerService.d.ts +8 -8
- package/lib/chevre/service/assetTransaction/reserve/cancel.d.ts +6 -6
- package/lib/chevre/service/assetTransaction/reserve/confirm.d.ts +5 -5
- package/lib/chevre/service/assetTransaction/reserve/exportTasksById.d.ts +2 -2
- package/lib/chevre/service/assetTransaction/reserve/start/createSubReservations.d.ts +5 -5
- package/lib/chevre/service/assetTransaction/reserve/start.d.ts +14 -14
- package/lib/chevre/service/assetTransaction.d.ts +2 -2
- package/lib/chevre/service/code.d.ts +2 -2
- package/lib/chevre/service/delivery.d.ts +7 -7
- package/lib/chevre/service/event/createEvent.d.ts +4 -4
- package/lib/chevre/service/event.d.ts +9 -9
- package/lib/chevre/service/iam.d.ts +2 -2
- package/lib/chevre/service/moneyTransfer.d.ts +5 -5
- package/lib/chevre/service/notification.d.ts +2 -2
- package/lib/chevre/service/offer/any.d.ts +4 -4
- package/lib/chevre/service/offer/any.js +2 -2
- package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre.d.ts +16 -16
- package/lib/chevre/service/offer/event/authorize.d.ts +20 -20
- package/lib/chevre/service/offer/event/importFromCOA.d.ts +3 -3
- package/lib/chevre/service/offer/event/searchEventTicketOffers.d.ts +7 -7
- package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4chevre.d.ts +8 -8
- package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4coa.d.ts +1 -1
- package/lib/chevre/service/offer/event/voidTransaction.d.ts +8 -8
- package/lib/chevre/service/offer/event/voidTransactionByActionId.d.ts +8 -8
- package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer.d.ts +3 -3
- package/lib/chevre/service/offer/eventServiceByCOA/authorize.d.ts +8 -8
- package/lib/chevre/service/offer/eventServiceByCOA/findAcceptAction.d.ts +2 -2
- package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.d.ts +1 -1
- package/lib/chevre/service/offer/moneyTransfer/authorize.d.ts +8 -8
- package/lib/chevre/service/offer/moneyTransfer/returnMoneyTransfer.d.ts +5 -5
- package/lib/chevre/service/offer/moneyTransfer/settleTransaction.d.ts +3 -3
- package/lib/chevre/service/offer/moneyTransfer/voidTransaction.d.ts +3 -3
- package/lib/chevre/service/offer/onEventChanged.d.ts +3 -3
- package/lib/chevre/service/offer/product/searchProductOffers.d.ts +3 -3
- package/lib/chevre/service/offer/product.d.ts +15 -15
- package/lib/chevre/service/offer/product.js +2 -2
- package/lib/chevre/service/offer.d.ts +4 -4
- package/lib/chevre/service/order/confirmPayTransaction.d.ts +9 -9
- package/lib/chevre/service/order/createAccountingReportIfNotExist.d.ts +1 -1
- package/lib/chevre/service/order/deleteOrder.d.ts +7 -7
- package/lib/chevre/service/order/findPlaceOrderTransaction.d.ts +1 -1
- package/lib/chevre/service/order/onAssetTransactionStatusChanged.d.ts +5 -5
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderCancelled.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDelivered.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderInTransit.d.ts +2 -2
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderPaymentDue.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/createSendEmailMessageTaskIfNotExist.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/processOrder.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing.d.ts +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned.d.ts +2 -2
- package/lib/chevre/service/order/onOrderUpdated.d.ts +1 -1
- package/lib/chevre/service/order/payOrder.d.ts +4 -4
- package/lib/chevre/service/order/placeOrder/createPlacingOrderFromExistingTransaction.d.ts +3 -3
- package/lib/chevre/service/order/placeOrder/factory.d.ts +10 -1
- package/lib/chevre/service/order/placeOrder/factory.js +58 -5
- package/lib/chevre/service/order/placeOrder/voidAcceptedOfferIfNecessary.d.ts +1 -1
- package/lib/chevre/service/order/placeOrder/voidAcceptedOfferIfNecessary.js +1 -1
- package/lib/chevre/service/order/placeOrder.d.ts +7 -7
- package/lib/chevre/service/order/placeOrderWithoutTransaction.d.ts +4 -4
- package/lib/chevre/service/order/returnOrder.d.ts +6 -6
- package/lib/chevre/service/order/sendOrder.d.ts +6 -6
- package/lib/chevre/service/payment/any/handlePrePublishedPaymentMethodIdOnAuthorizing.d.ts +2 -2
- package/lib/chevre/service/payment/any/onPaid.d.ts +3 -3
- package/lib/chevre/service/payment/any/onPaymentStatusChanged/onPaid.d.ts +1 -1
- package/lib/chevre/service/payment/any/onPaymentStatusChanged/onRefunded.d.ts +1 -1
- package/lib/chevre/service/payment/any/onPaymentStatusChanged.d.ts +2 -2
- package/lib/chevre/service/payment/any/onRefund.d.ts +3 -3
- package/lib/chevre/service/payment/any/person2username.js +1 -1
- package/lib/chevre/service/payment/any.d.ts +18 -18
- package/lib/chevre/service/payment/any.js +1 -1
- package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard.d.ts +1 -1
- package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard3ds.d.ts +1 -1
- package/lib/chevre/service/payment/creditCard/authorize.d.ts +5 -5
- package/lib/chevre/service/payment/creditCard/getGMOInfoFromSeller.d.ts +3 -3
- package/lib/chevre/service/payment/creditCard/payCreditCard.d.ts +7 -7
- package/lib/chevre/service/payment/creditCard/refundCreditCard.d.ts +7 -7
- package/lib/chevre/service/payment/creditCard/voidTransaction.d.ts +5 -5
- package/lib/chevre/service/payment/faceToFace.d.ts +4 -4
- package/lib/chevre/service/payment/movieTicket/authorize.d.ts +8 -8
- package/lib/chevre/service/payment/movieTicket/checkMovieTicket.d.ts +6 -6
- package/lib/chevre/service/payment/movieTicket/getCredentials.d.ts +1 -1
- package/lib/chevre/service/payment/movieTicket/payMovieTicket.d.ts +8 -8
- package/lib/chevre/service/payment/movieTicket/processPurchaseNumberAuth.d.ts +2 -2
- package/lib/chevre/service/payment/movieTicket/processPurchaseNumberAuth.js +1 -1
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket.d.ts +4 -4
- package/lib/chevre/service/payment/movieTicket/validation.d.ts +7 -7
- package/lib/chevre/service/payment/movieTicket/voidTransaction.d.ts +4 -4
- package/lib/chevre/service/payment/paymentCard.d.ts +6 -6
- package/lib/chevre/service/payment.d.ts +16 -16
- package/lib/chevre/service/permit.d.ts +2 -2
- package/lib/chevre/service/product.d.ts +3 -3
- package/lib/chevre/service/project.d.ts +17 -17
- package/lib/chevre/service/report/telemetry.d.ts +4 -4
- package/lib/chevre/service/reserve/cancelReservation.d.ts +6 -6
- package/lib/chevre/service/reserve/checkInReservation.d.ts +5 -5
- package/lib/chevre/service/reserve/confirmReservation.d.ts +5 -5
- package/lib/chevre/service/reserve/findByCode.d.ts +3 -3
- package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +1 -1
- package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.d.ts +2 -2
- package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.d.ts +1 -1
- package/lib/chevre/service/reserve/potentialActions/onReservationUsed.d.ts +1 -1
- package/lib/chevre/service/reserve/searchByOrder.d.ts +3 -3
- package/lib/chevre/service/reserve/useReservation.d.ts +5 -5
- package/lib/chevre/service/reserve/verifyToken4reservation.d.ts +2 -2
- package/lib/chevre/service/task/acceptCOAOffer.js +6 -6
- package/lib/chevre/service/task/aggregateOffers.js +10 -10
- package/lib/chevre/service/task/aggregateScreeningEvent.js +9 -9
- package/lib/chevre/service/task/aggregateUseActionsOnEvent.js +7 -7
- package/lib/chevre/service/task/authorizePayment.js +14 -14
- package/lib/chevre/service/task/cancelMoneyTransfer.js +2 -2
- package/lib/chevre/service/task/cancelPendingReservation.js +6 -6
- package/lib/chevre/service/task/cancelReservation.js +6 -6
- package/lib/chevre/service/task/checkMovieTicket.js +6 -6
- package/lib/chevre/service/task/checkResource.js +4 -4
- package/lib/chevre/service/task/confirmMoneyTransfer.js +3 -3
- package/lib/chevre/service/task/confirmPayTransaction.js +9 -9
- package/lib/chevre/service/task/confirmRegisterService.js +3 -3
- package/lib/chevre/service/task/confirmRegisterServiceTransaction.d.ts +3 -3
- package/lib/chevre/service/task/confirmRegisterServiceTransaction.js +3 -3
- package/lib/chevre/service/task/confirmReserveTransaction.d.ts +6 -6
- package/lib/chevre/service/task/confirmReserveTransaction.js +6 -6
- package/lib/chevre/service/task/createAccountingReport.js +4 -4
- package/lib/chevre/service/task/createEvent.js +4 -4
- package/lib/chevre/service/task/deleteTransaction.js +11 -11
- package/lib/chevre/service/task/givePointAward.js +5 -5
- package/lib/chevre/service/task/importEventCapacitiesFromCOA.js +1 -1
- package/lib/chevre/service/task/importEventsFromCOA.js +7 -7
- package/lib/chevre/service/task/importOffersFromCOA.js +3 -3
- package/lib/chevre/service/task/moneyTransfer.js +3 -3
- package/lib/chevre/service/task/onAssetTransactionStatusChanged.js +5 -5
- package/lib/chevre/service/task/onAuthorizationCreated.js +10 -10
- package/lib/chevre/service/task/onEventChanged.js +3 -3
- package/lib/chevre/service/task/onOrderPaymentCompleted.js +4 -4
- package/lib/chevre/service/task/onResourceUpdated/onAggregateOfferUpdated.d.ts +2 -2
- package/lib/chevre/service/task/onResourceUpdated/onCategoryCodeUpdated.d.ts +2 -2
- package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.d.ts +3 -3
- package/lib/chevre/service/task/onResourceUpdated/onOfferCatalogUpdated.d.ts +4 -4
- package/lib/chevre/service/task/onResourceUpdated/onResourceDeleted.d.ts +18 -18
- package/lib/chevre/service/task/onResourceUpdated/syncCategoryCode.d.ts +2 -2
- package/lib/chevre/service/task/onResourceUpdated/syncOfferCatalog.d.ts +3 -3
- package/lib/chevre/service/task/onResourceUpdated.js +19 -19
- package/lib/chevre/service/task/pay.js +12 -12
- package/lib/chevre/service/task/placeOrder.js +7 -7
- package/lib/chevre/service/task/publishPaymentUrl.js +8 -8
- package/lib/chevre/service/task/refund.js +10 -10
- package/lib/chevre/service/task/registerService.js +3 -3
- package/lib/chevre/service/task/reserve.js +4 -4
- package/lib/chevre/service/task/returnMoneyTransfer.js +5 -5
- package/lib/chevre/service/task/returnOrder.js +6 -6
- package/lib/chevre/service/task/returnPayTransaction.js +8 -8
- package/lib/chevre/service/task/returnPointAward.js +5 -5
- package/lib/chevre/service/task/returnReserveTransaction.js +5 -5
- package/lib/chevre/service/task/sendEmailMessage.js +2 -2
- package/lib/chevre/service/task/sendOrder.js +6 -6
- package/lib/chevre/service/task/triggerWebhook.js +1 -1
- package/lib/chevre/service/task/useReservation.js +5 -5
- package/lib/chevre/service/task/voidMoneyTransferTransaction.js +3 -3
- package/lib/chevre/service/task/voidPayTransaction.js +8 -8
- package/lib/chevre/service/task/voidPayment.js +8 -8
- package/lib/chevre/service/task/voidRegisterServiceTransaction.js +3 -3
- package/lib/chevre/service/task/voidReserveTransaction.js +9 -9
- package/lib/chevre/service/task.d.ts +1 -1
- package/lib/chevre/service/task.js +3 -3
- package/lib/chevre/service/transaction/deleteTransaction.d.ts +11 -11
- package/lib/chevre/service/transaction/moneyTransfer.d.ts +10 -10
- package/lib/chevre/service/transaction/placeOrder/confirm/factory/result.d.ts +11 -0
- package/lib/chevre/service/transaction/placeOrder/confirm/factory/result.js +32 -0
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/potentialActions/sendEmailMessage.d.ts +1 -1
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/potentialActions/sendEmailMessage.js +2 -2
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/potentialActions.d.ts +1 -1
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/publishCode.d.ts +2 -2
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/publishCode.js +1 -1
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation/validateMovieTicket.d.ts +1 -1
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation/validateMovieTicket.js +2 -2
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation.d.ts +2 -2
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/validation.js +2 -2
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/confirm.d.ts +8 -8
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/confirm.js +18 -25
- package/lib/chevre/service/transaction/placeOrder/exportTasksById.d.ts +17 -0
- package/lib/chevre/service/transaction/placeOrder/exportTasksById.js +39 -0
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/publishConfirmationNumberIfNotExist.d.ts +1 -1
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/publishOrderNumberIfNotExist.d.ts +3 -3
- package/lib/chevre/service/transaction/{placeOrderInProgress/validation → placeOrder/start}/validateStartRequest.d.ts +3 -3
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/start.d.ts +4 -4
- package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/start.js +4 -2
- package/lib/chevre/service/transaction/placeOrder.d.ts +8 -14
- package/lib/chevre/service/transaction/placeOrder.js +13 -37
- package/lib/chevre/service/transaction/returnOrder/preStart.d.ts +9 -9
- package/lib/chevre/service/transaction/returnOrder.d.ts +12 -12
- package/lib/chevre/service/transaction.d.ts +5 -11
- package/lib/chevre/service/transaction.js +13 -7
- package/lib/chevre/service/validation/validateOrder.d.ts +3 -3
- package/lib/chevre/service/validation/validateOrder.js +1 -1
- package/package.json +2 -2
- package/lib/chevre/service/transaction/placeOrderInProgress/result.d.ts +0 -24
- package/lib/chevre/service/transaction/placeOrderInProgress/result.js +0 -120
- package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +0 -9
- package/lib/chevre/service/transaction/placeOrderInProgress.js +0 -16
- /package/lib/chevre/repo/{code.d.ts → authorization.d.ts} +0 -0
- /package/lib/chevre/repo/{code.js → authorization.js} +0 -0
- /package/lib/chevre/service/{transaction/placeOrderInProgress/result → order/placeOrder/factory}/orderedItem.d.ts +0 -0
- /package/lib/chevre/service/{transaction/placeOrderInProgress/result → order/placeOrder/factory}/orderedItem.js +0 -0
- /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder/confirm}/potentialActions.js +0 -0
- /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/publishConfirmationNumberIfNotExist.js +0 -0
- /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/publishOrderNumberIfNotExist.js +0 -0
- /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/start/factory.d.ts +0 -0
- /package/lib/chevre/service/transaction/{placeOrderInProgress → placeOrder}/start/factory.js +0 -0
- /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.
|
|
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
|
|
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 =
|
|
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.
|
|
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,
|
|
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
|
}
|
|
@@ -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.
|
|
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
|
|
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.
|
|
224
|
+
exports.CreditCardRepo = CreditCardRepo;
|
|
@@ -9,7 +9,7 @@ type ISearchConditions4paymentService = factory.service.paymentService.ISearchCo
|
|
|
9
9
|
/**
|
|
10
10
|
* 決済サービスリポジトリ
|
|
11
11
|
*/
|
|
12
|
-
export declare class
|
|
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.
|
|
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
|
|
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 =
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
238
|
+
exports.PaymentServiceProviderRepo = PaymentServiceProviderRepo;
|
|
@@ -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.
|
|
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
|
|
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.
|
|
72
|
+
exports.PermitRepo = PermitRepo;
|
|
@@ -5,7 +5,7 @@ export type IPerson = factory.person.IPerson;
|
|
|
5
5
|
/**
|
|
6
6
|
* 会員リポジトリ
|
|
7
7
|
*/
|
|
8
|
-
export declare class
|
|
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.
|
|
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
|
|
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 =
|
|
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(
|
|
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 =
|
|
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 =
|
|
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(
|
|
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 =
|
|
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 =
|
|
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.
|
|
491
|
+
exports.PersonRepo = PersonRepo;
|
|
@@ -3,7 +3,7 @@ import * as factory from '../../factory';
|
|
|
3
3
|
/**
|
|
4
4
|
* ターミナルリポジトリ
|
|
5
5
|
*/
|
|
6
|
-
export declare class
|
|
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.
|
|
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
|
|
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 =
|
|
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.
|
|
199
|
+
exports.BusStopRepo = BusStopRepo;
|
|
@@ -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.
|
|
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
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
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 =
|
|
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.
|
|
311
|
+
exports.MovieTheaterRepo = MovieTheaterRepo;
|
|
@@ -16,7 +16,7 @@ interface IUpdateScreeningRoomResult {
|
|
|
16
16
|
/**
|
|
17
17
|
* ルームリポジトリ
|
|
18
18
|
*/
|
|
19
|
-
export declare class
|
|
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.
|
|
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
|
|
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.
|
|
370
|
+
exports.ScreeningRoomRepo = ScreeningRoomRepo;
|
|
@@ -15,7 +15,7 @@ interface IUpdateSeatResult {
|
|
|
15
15
|
/**
|
|
16
16
|
* 座席リポジトリ
|
|
17
17
|
*/
|
|
18
|
-
export declare class
|
|
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.
|
|
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
|
|
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 =
|
|
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.
|
|
372
|
+
exports.SeatRepo = SeatRepo;
|
|
@@ -16,7 +16,7 @@ interface IUpdateSectionResult {
|
|
|
16
16
|
/**
|
|
17
17
|
* セクションリポジトリ
|
|
18
18
|
*/
|
|
19
|
-
export declare class
|
|
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.
|
|
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
|
|
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.
|
|
274
|
+
exports.SectionRepo = SectionRepo;
|
|
@@ -27,7 +27,7 @@ import * as factory from '../factory';
|
|
|
27
27
|
/**
|
|
28
28
|
* 価格仕様リポジトリ
|
|
29
29
|
*/
|
|
30
|
-
export declare class
|
|
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.
|
|
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
|
|
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 =
|
|
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 =
|
|
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.
|
|
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
|
|
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.
|
|
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
|
|
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 =
|
|
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.
|
|
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
|
|
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>[];
|