@chevre/domain 26.0.0-alpha.8 → 26.0.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/lib/chevre/eventEmitter/task.d.ts +8 -23
- package/lib/chevre/eventEmitter/task.js +2 -2
- package/lib/chevre/repo/acceptedOffer.d.ts +0 -7
- package/lib/chevre/repo/acceptedOffer.js +27 -27
- package/lib/chevre/repo/action/acceptCOAOffer.d.ts +3 -1
- package/lib/chevre/repo/action/acceptCOAOffer.js +8 -2
- package/lib/chevre/repo/action/acceptPay.d.ts +3 -1
- package/lib/chevre/repo/action/acceptPay.js +8 -4
- package/lib/chevre/repo/action/anyAction/actionProcess.d.ts +120 -0
- package/lib/chevre/repo/action/{actionProcess.js → anyAction/actionProcess.js} +28 -157
- package/lib/chevre/repo/action/anyAction/actionRecipe.d.ts +37 -0
- package/lib/chevre/repo/action/anyAction/actionRecipe.js +53 -0
- package/lib/chevre/repo/action/authorizeInvoice.d.ts +5 -8
- package/lib/chevre/repo/action/authorizeInvoice.js +7 -4
- package/lib/chevre/repo/action/authorizeOffer.d.ts +3 -1
- package/lib/chevre/repo/action/authorizeOffer.js +7 -2
- package/lib/chevre/repo/action/authorizePaymentMethod.d.ts +3 -1
- package/lib/chevre/repo/action/authorizePaymentMethod.js +7 -4
- package/lib/chevre/repo/action/authorizeTicketedObject.d.ts +3 -1
- package/lib/chevre/repo/action/authorizeTicketedObject.js +7 -2
- package/lib/chevre/repo/action/cancel.d.ts +25 -0
- package/lib/chevre/repo/action/cancel.js +47 -0
- package/lib/chevre/repo/action/checkMovieTicket.d.ts +3 -1
- package/lib/chevre/repo/action/checkMovieTicket.js +8 -1
- package/lib/chevre/repo/action/confirm.d.ts +11 -0
- package/lib/chevre/repo/action/confirm.js +16 -0
- package/lib/chevre/repo/action/create.d.ts +10 -0
- package/lib/chevre/repo/action/create.js +17 -0
- package/lib/chevre/repo/action/inform.d.ts +38 -0
- package/lib/chevre/repo/action/inform.js +146 -0
- package/lib/chevre/repo/action/order.d.ts +21 -0
- package/lib/chevre/repo/action/order.js +35 -0
- package/lib/chevre/repo/action/pay.d.ts +3 -1
- package/lib/chevre/repo/action/pay.js +7 -4
- package/lib/chevre/repo/action/refund.d.ts +3 -1
- package/lib/chevre/repo/action/refund.js +7 -4
- package/lib/chevre/repo/action/reserve.d.ts +21 -0
- package/lib/chevre/repo/action/reserve.js +37 -0
- package/lib/chevre/repo/action/returnAction.d.ts +11 -0
- package/lib/chevre/repo/action/returnAction.js +16 -0
- package/lib/chevre/repo/action/sendEmailMessage.d.ts +10 -0
- package/lib/chevre/repo/action/sendEmailMessage.js +17 -0
- package/lib/chevre/repo/action/sendOrder.d.ts +10 -0
- package/lib/chevre/repo/action/sendOrder.js +16 -0
- package/lib/chevre/repo/action/unknown2actionError.d.ts +6 -0
- package/lib/chevre/repo/action/unknown2actionError.js +15 -0
- package/lib/chevre/repo/action/update.d.ts +48 -0
- package/lib/chevre/repo/action/update.js +166 -0
- package/lib/chevre/repo/action/use.d.ts +39 -0
- package/lib/chevre/repo/action/use.js +153 -0
- package/lib/chevre/repo/{action.d.ts → adminAction.d.ts} +11 -37
- package/lib/chevre/repo/adminAction.js +176 -0
- package/lib/chevre/repo/adminAssetTransaction.d.ts +126 -0
- package/lib/chevre/repo/adminAssetTransaction.js +491 -0
- package/lib/chevre/repo/adminAsyncAction.d.ts +2 -2
- package/lib/chevre/repo/adminScheduledTask.d.ts +1 -1
- package/lib/chevre/repo/adminTask.d.ts +25 -8
- package/lib/chevre/repo/adminTask.js +31 -32
- package/lib/chevre/repo/adminTransaction.d.ts +131 -0
- package/lib/chevre/repo/adminTransaction.js +237 -0
- package/lib/chevre/repo/aggregateAction.d.ts +8 -11
- package/lib/chevre/repo/aggregateAction.js +0 -61
- package/lib/chevre/repo/aggregateAssetTransaction.d.ts +43 -0
- package/lib/chevre/repo/aggregateAssetTransaction.js +166 -0
- package/lib/chevre/repo/aggregateTransaction.d.ts +39 -0
- package/lib/chevre/repo/aggregateTransaction.js +166 -0
- package/lib/chevre/repo/aggregateUseAction.d.ts +35 -0
- package/lib/chevre/repo/aggregateUseAction.js +164 -0
- package/lib/chevre/repo/aggregation.d.ts +0 -8
- package/lib/chevre/repo/aggregation.js +0 -10
- package/lib/chevre/repo/assetTransaction.d.ts +10 -235
- package/lib/chevre/repo/assetTransaction.js +48 -636
- package/lib/chevre/repo/asyncAction.d.ts +2 -2
- package/lib/chevre/repo/authorization.d.ts +0 -6
- package/lib/chevre/repo/authorization.js +15 -27
- package/lib/chevre/repo/message.d.ts +0 -7
- package/lib/chevre/repo/message.js +0 -38
- package/lib/chevre/repo/migrateAction.d.ts +48 -0
- package/lib/chevre/repo/migrateAction.js +32 -0
- package/lib/chevre/repo/mongoose/schemas/action/inform.d.ts +11 -0
- package/lib/chevre/repo/mongoose/schemas/action/inform.js +82 -0
- package/lib/chevre/repo/mongoose/schemas/action/update.d.ts +12 -0
- package/lib/chevre/repo/mongoose/schemas/action/update.js +112 -0
- package/lib/chevre/repo/mongoose/schemas/{ownershipInfo.d.ts → action/use.d.ts} +4 -6
- package/lib/chevre/repo/mongoose/schemas/action/use.js +92 -0
- package/lib/chevre/repo/mongoose/schemas/action.d.ts +1 -3
- package/lib/chevre/repo/mongoose/schemas/action.js +22 -7
- package/lib/chevre/repo/mongoose/schemas/actionRecipe.d.ts +1 -0
- package/lib/chevre/repo/mongoose/schemas/actionRecipe.js +19 -1
- package/lib/chevre/repo/mongoose/schemas/aggregateReservation.js +8 -9
- package/lib/chevre/repo/mongoose/schemas/aggregation.js +8 -1
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.js +95 -76
- package/lib/chevre/repo/mongoose/schemas/authorization.js +25 -18
- package/lib/chevre/repo/mongoose/schemas/event.js +7 -0
- package/lib/chevre/repo/mongoose/schemas/eventOffer.js +7 -0
- package/lib/chevre/repo/mongoose/schemas/message.js +8 -1
- package/lib/chevre/repo/mongoose/schemas/pendingReservation.js +11 -4
- package/lib/chevre/repo/mongoose/schemas/setting.d.ts +5 -16
- package/lib/chevre/repo/mongoose/schemas/task.d.ts +2 -5
- package/lib/chevre/repo/mongoose/schemas/task.js +134 -118
- package/lib/chevre/repo/mongoose/schemas/ticket.js +8 -1
- package/lib/chevre/repo/orderInTransaction.d.ts +0 -3
- package/lib/chevre/repo/orderInTransaction.js +30 -22
- package/lib/chevre/repo/scheduledTask.d.ts +4 -1
- package/lib/chevre/repo/scheduledTask.js +3 -25
- package/lib/chevre/repo/task.d.ts +44 -150
- package/lib/chevre/repo/task.js +13 -446
- package/lib/chevre/repo/taskDelayed.d.ts +74 -0
- package/lib/chevre/repo/taskDelayed.js +195 -0
- package/lib/chevre/repo/taskRunning.d.ts +35 -0
- package/lib/chevre/repo/taskRunning.js +89 -0
- package/lib/chevre/repo/ticket.d.ts +0 -6
- package/lib/chevre/repo/ticket.js +0 -11
- package/lib/chevre/repo/transaction.d.ts +1 -187
- package/lib/chevre/repo/transaction.js +2 -383
- package/lib/chevre/repository.d.ts +65 -25
- package/lib/chevre/repository.js +144 -56
- package/lib/chevre/service/aggregation/system.d.ts +9 -8
- package/lib/chevre/service/aggregation/system.js +5 -5
- package/lib/chevre/service/assetTransaction/cancelReservation/start.js +10 -17
- package/lib/chevre/service/assetTransaction/pay/confirm.d.ts +0 -10
- package/lib/chevre/service/assetTransaction/pay/start/processAuthorize.d.ts +0 -1
- package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeMovieTicket.d.ts +0 -1
- package/lib/chevre/service/assetTransaction/pay/start.d.ts +0 -1
- package/lib/chevre/service/assetTransaction/refund.d.ts +0 -1
- package/lib/chevre/service/assetTransaction/refund.js +2 -2
- package/lib/chevre/service/assetTransaction/reserve/cancel.d.ts +4 -2
- package/lib/chevre/service/assetTransaction/reserve/confirm.d.ts +4 -2
- package/lib/chevre/service/assetTransaction/reserveCOA/cancel.d.ts +8 -4
- package/lib/chevre/service/assetTransaction/reserveCOA/cancel.js +1 -1
- package/lib/chevre/service/asyncAction.d.ts +2 -2
- package/lib/chevre/service/asyncAction.js +1 -4
- package/lib/chevre/service/asyncActionHandler/onOperationFailed.d.ts +2 -2
- package/lib/chevre/service/asyncActionHandler/onOperationFailed.js +0 -2
- package/lib/chevre/service/asyncActionHandler.d.ts +4 -4
- package/lib/chevre/service/asyncActionHandler.js +11 -13
- package/lib/chevre/service/event/processUpdateMovieTheater.d.ts +4 -2
- package/lib/chevre/service/event/processUpdateMovieTheater.js +3 -3
- package/lib/chevre/service/event.d.ts +4 -2
- package/lib/chevre/service/event.js +3 -3
- package/lib/chevre/service/notification/sendEmailMessage.d.ts +4 -2
- package/lib/chevre/service/notification/sendEmailMessage.js +3 -3
- package/lib/chevre/service/notification/triggerWebhook.d.ts +4 -2
- package/lib/chevre/service/notification/triggerWebhook.js +5 -16
- package/lib/chevre/service/offer/event/authorize.d.ts +0 -1
- package/lib/chevre/service/offer/event/issueEventOfferTicket.d.ts +0 -1
- package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4chevre.d.ts +4 -2
- package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4chevre.js +1 -3
- package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4coa.d.ts +9 -5
- package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4coa.js +1 -1
- package/lib/chevre/service/offer/event/voidTransaction.d.ts +6 -4
- package/lib/chevre/service/offer/event/voidTransaction.js +7 -9
- package/lib/chevre/service/offer/event/voidTransactionByActionId.d.ts +6 -4
- package/lib/chevre/service/offer/event/voidTransactionByActionId.js +3 -15
- package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer.js +1 -1
- package/lib/chevre/service/offer/eventServiceByCOA/changeOffers.js +1 -1
- package/lib/chevre/service/offer/eventServiceByCOA/findAcceptAction.d.ts +0 -4
- package/lib/chevre/service/offer/eventServiceByCOA/findAcceptAction.js +19 -19
- package/lib/chevre/service/offer/onEventChanged.js +0 -2
- package/lib/chevre/service/order/confirmPayTransaction.d.ts +4 -10
- package/lib/chevre/service/order/confirmPayTransaction.js +7 -11
- package/lib/chevre/service/order/createAccountingReportIfNotExist.d.ts +1 -1
- package/lib/chevre/service/order/createAccountingReportIfNotExist.js +2 -56
- package/lib/chevre/service/order/deleteOrder.d.ts +2 -2
- package/lib/chevre/service/order/deleteOrder.js +1 -2
- package/lib/chevre/service/order/onAssetTransactionStatusChanged/isDeliverable.js +1 -49
- package/lib/chevre/service/order/onAssetTransactionStatusChanged/onPayTransactionConfirmed.js +2 -2
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDelivered/factory.js +2 -4
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially/factory.js +2 -4
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderInTransit.js +2 -2
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderPaymentDue.js +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/createSendEmailMessageTaskIfNotExist.js +1 -9
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/factory.d.ts +2 -2
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/factory.js +4 -8
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/processOrder.js +1 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned/factory.js +5 -11
- package/lib/chevre/service/order/onOrderUpdated/factory.js +0 -3
- package/lib/chevre/service/order/placeOrder/createPlacingOrderFromExistingTransaction.d.ts +4 -2
- package/lib/chevre/service/order/placeOrder/createPlacingOrderFromExistingTransaction.js +2 -2
- package/lib/chevre/service/order/placeOrder.d.ts +6 -4
- package/lib/chevre/service/order/placeOrder.js +9 -17
- package/lib/chevre/service/order/returnOrder.d.ts +4 -4
- package/lib/chevre/service/order/returnOrder.js +11 -43
- package/lib/chevre/service/order/sendOrder.d.ts +4 -6
- package/lib/chevre/service/order/sendOrder.js +30 -72
- package/lib/chevre/service/payment/any/authorize/fixTransactionNumber.d.ts +0 -1
- package/lib/chevre/service/payment/any/authorize/handlePrePublishedPaymentMethodIdOnAuthorizing.d.ts +0 -1
- package/lib/chevre/service/payment/any/authorize.d.ts +0 -1
- package/lib/chevre/service/payment/any/findAcceptAction.d.ts +0 -4
- package/lib/chevre/service/payment/any/findAcceptAction.js +19 -19
- package/lib/chevre/service/payment/any/findAuthorizeAction.d.ts +0 -4
- package/lib/chevre/service/payment/any/findAuthorizeAction.js +19 -19
- package/lib/chevre/service/payment/any/findCheckAction.d.ts +0 -4
- package/lib/chevre/service/payment/any/findCheckAction.js +19 -19
- package/lib/chevre/service/payment/any/invalidatePaymentUrl.d.ts +0 -1
- package/lib/chevre/service/payment/any/onPayActionCompleted.d.ts +0 -1
- package/lib/chevre/service/payment/any/onPaymentStatusChanged.js +2 -2
- package/lib/chevre/service/payment/any/onRefundActionCompletedOrFailed.d.ts +0 -1
- package/lib/chevre/service/payment/any/processVoidPayTransaction.d.ts +0 -1
- package/lib/chevre/service/payment/any/processVoidPayTransaction.js +2 -2
- package/lib/chevre/service/payment/any/publishPaymentUrl.d.ts +0 -2
- package/lib/chevre/service/payment/any/publishPaymentUrl.js +2 -2
- package/lib/chevre/service/payment/any/voidPayTransaction.d.ts +0 -1
- package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard.d.ts +0 -1
- package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard3ds.d.ts +0 -1
- package/lib/chevre/service/payment/creditCard/authorize.d.ts +0 -1
- package/lib/chevre/service/payment/creditCard/payCreditCard.d.ts +0 -1
- package/lib/chevre/service/payment/creditCard/refundCreditCard.d.ts +0 -1
- package/lib/chevre/service/payment/faceToFace.d.ts +0 -2
- package/lib/chevre/service/payment/movieTicket/authorize.d.ts +0 -1
- package/lib/chevre/service/payment/movieTicket/payMovieTicket.d.ts +0 -1
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket.d.ts +0 -1
- package/lib/chevre/service/project.d.ts +0 -6
- package/lib/chevre/service/project.js +0 -2
- package/lib/chevre/service/reserve/cancelReservation.d.ts +7 -3
- package/lib/chevre/service/reserve/cancelReservation.js +15 -25
- package/lib/chevre/service/reserve/checkInReservation.d.ts +4 -2
- package/lib/chevre/service/reserve/checkInReservation.js +2 -2
- package/lib/chevre/service/reserve/confirmReservation.d.ts +4 -2
- package/lib/chevre/service/reserve/confirmReservation.js +10 -36
- package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.js +1 -1
- package/lib/chevre/service/reserve/useReservation.d.ts +6 -2
- package/lib/chevre/service/reserve/useReservation.js +6 -24
- package/lib/chevre/service/reserveCOA/cancelReservation.d.ts +4 -2
- package/lib/chevre/service/reserveCOA/cancelReservation.js +3 -3
- package/lib/chevre/service/scheduledTask.d.ts +1 -4
- package/lib/chevre/service/scheduledTask.js +3 -10
- package/lib/chevre/service/scheduledTaskHandler/onOperationFailed.js +1 -2
- package/lib/chevre/service/scheduledTaskHandler.js +0 -13
- package/lib/chevre/service/task/acceptCOAOffer.js +1 -14
- package/lib/chevre/service/task/authorizePayment.js +1 -7
- package/lib/chevre/service/task/cancelPendingReservation.js +3 -4
- package/lib/chevre/service/task/cancelReservation.js +3 -5
- package/lib/chevre/service/task/checkMovieTicket.js +1 -7
- package/lib/chevre/service/task/checkResource.js +14 -57
- package/lib/chevre/service/task/confirmPayTransaction.js +11 -12
- package/lib/chevre/service/task/confirmReserveTransaction.d.ts +6 -2
- package/lib/chevre/service/task/confirmReserveTransaction.js +12 -7
- package/lib/chevre/service/task/createAccountingReport.js +8 -15
- package/lib/chevre/service/task/deleteTransaction.js +10 -41
- package/lib/chevre/service/task/importEventsFromCOA.js +4 -2
- package/lib/chevre/service/task/invalidatePaymentUrl.js +0 -1
- package/lib/chevre/service/task/onAuthorizationCreated.js +4 -13
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByAggregateOffer.d.ts +4 -2
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByAggregateOffer.js +4 -4
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByEventSeries.d.ts +4 -2
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByEventSeries.js +4 -4
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByMovieTheater.d.ts +4 -2
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByMovieTheater.js +4 -4
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByOfferCatalog.d.ts +4 -2
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByOfferCatalog.js +4 -4
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByProduct.d.ts +4 -2
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByProduct.js +4 -4
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByRoom.d.ts +4 -2
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByRoom.js +4 -4
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesBySeller.d.ts +4 -2
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesBySeller.js +4 -4
- package/lib/chevre/service/task/onResourceDeleted.js +4 -3
- package/lib/chevre/service/task/onResourceUpdated/onAggregateOfferUpdated.js +0 -1
- package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.js +0 -1
- package/lib/chevre/service/task/onResourceUpdated/onOfferCatalogUpdated.js +0 -1
- package/lib/chevre/service/task/onResourceUpdated.js +0 -10
- package/lib/chevre/service/task/pay.js +0 -1
- package/lib/chevre/service/task/payment/invalidatePaymentUrlByTask.d.ts +0 -1
- package/lib/chevre/service/task/payment/payByTask.d.ts +0 -1
- package/lib/chevre/service/task/payment/refundByTask.d.ts +0 -1
- package/lib/chevre/service/task/payment/voidPaymentByTask.d.ts +0 -2
- package/lib/chevre/service/task/placeOrder.js +8 -6
- package/lib/chevre/service/task/publishPaymentUrl.js +2 -13
- package/lib/chevre/service/task/refund.js +0 -1
- package/lib/chevre/service/task/reserve.js +3 -6
- package/lib/chevre/service/task/returnOrder.js +3 -7
- package/lib/chevre/service/task/returnPayTransaction.js +9 -19
- package/lib/chevre/service/task/returnReserveTransaction.js +5 -6
- package/lib/chevre/service/task/sendEmailMessage.js +2 -2
- package/lib/chevre/service/task/sendOrder.js +4 -8
- package/lib/chevre/service/task/syncResourcesFromCOA.js +31 -23
- package/lib/chevre/service/task/triggerWebhook.js +4 -2
- package/lib/chevre/service/task/useReservation.js +6 -2
- package/lib/chevre/service/task/voidPayment.js +0 -2
- package/lib/chevre/service/task/voidReserveTransaction.js +11 -13
- package/lib/chevre/service/task.d.ts +3 -22
- package/lib/chevre/service/task.js +8 -40
- package/lib/chevre/service/taskHandler/onOperationFailed/informTaskIfNeeded.js +0 -1
- package/lib/chevre/service/taskHandler/onOperationFailed.d.ts +3 -2
- package/lib/chevre/service/taskHandler/onOperationFailed.js +5 -16
- package/lib/chevre/service/taskHandler.d.ts +1 -2
- package/lib/chevre/service/taskHandler.js +7 -19
- package/lib/chevre/service/transaction/deleteTransaction/deletePayTransactionsByPlaceOrder.js +2 -2
- package/lib/chevre/service/transaction/deleteTransaction/deleteReservationsByPlaceOrder.js +2 -2
- package/lib/chevre/service/transaction/deleteTransaction.d.ts +8 -4
- package/lib/chevre/service/transaction/deleteTransaction.js +7 -7
- package/lib/chevre/service/transaction/placeOrder/confirm.js +1 -1
- package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.d.ts +1 -1
- package/lib/chevre/service/transaction/placeOrder/exportTasksById.js +11 -17
- package/lib/chevre/service/transaction/returnOrder.js +11 -17
- package/lib/chevre/service/validation/validateOrder.d.ts +0 -4
- package/lib/chevre/service/validation/validateOrder.js +3 -3
- package/lib/chevre/taskSettings.d.ts +4 -4
- package/package.json +2 -2
- package/lib/chevre/repo/action/actionProcess.d.ts +0 -147
- package/lib/chevre/repo/action/checkThing.d.ts +0 -8
- package/lib/chevre/repo/action/checkThing.js +0 -13
- package/lib/chevre/repo/action.js +0 -468
- package/lib/chevre/repo/asyncActionLegacy.d.ts +0 -23
- package/lib/chevre/repo/asyncActionLegacy.js +0 -59
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.js +0 -227
- package/lib/chevre/repo/mongoose/schemas/pendingReservationAggregate.d.ts +0 -25
- package/lib/chevre/repo/mongoose/schemas/pendingReservationAggregate.js +0 -100
- package/lib/chevre/repo/ownershipInfo.d.ts +0 -122
- package/lib/chevre/repo/ownershipInfo.js +0 -466
- package/lib/chevre/repo/scheduledTaskLegacy.d.ts +0 -19
- package/lib/chevre/repo/scheduledTaskLegacy.js +0 -42
- package/lib/chevre/repo/scheduledTaskMigration.d.ts +0 -21
- package/lib/chevre/repo/scheduledTaskMigration.js +0 -70
- package/lib/chevre/service/validation/validateEvent.d.ts +0 -11
- package/lib/chevre/service/validation/validateEvent.js +0 -21
|
@@ -1,48 +1,16 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
-
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
-
};
|
|
5
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
3
|
exports.TransactionRepo = void 0;
|
|
7
|
-
const moment_1 = __importDefault(require("moment"));
|
|
8
|
-
const transaction_1 = require("../eventEmitter/transaction");
|
|
9
4
|
const factory_1 = require("../factory");
|
|
10
5
|
const settings_1 = require("../settings");
|
|
11
|
-
const
|
|
6
|
+
const transaction_1 = require("./mongoose/schemas/transaction");
|
|
12
7
|
/**
|
|
13
8
|
* 取引リポジトリ
|
|
14
9
|
*/
|
|
15
10
|
class TransactionRepo {
|
|
16
11
|
transactionModel;
|
|
17
12
|
constructor(connection) {
|
|
18
|
-
this.transactionModel = connection.model(
|
|
19
|
-
}
|
|
20
|
-
async countPotentiallyExportTasks(params) {
|
|
21
|
-
const { endDate, limit } = params;
|
|
22
|
-
const endDateLt = endDate?.$lt;
|
|
23
|
-
if (!(endDateLt instanceof Date)) {
|
|
24
|
-
throw new factory_1.factory.errors.Argument('endDate.$lt', 'must be Date');
|
|
25
|
-
}
|
|
26
|
-
const query = this.transactionModel.countDocuments({
|
|
27
|
-
status: {
|
|
28
|
-
$in: [
|
|
29
|
-
factory_1.factory.transactionStatusType.Canceled,
|
|
30
|
-
factory_1.factory.transactionStatusType.Confirmed,
|
|
31
|
-
factory_1.factory.transactionStatusType.Expired
|
|
32
|
-
]
|
|
33
|
-
},
|
|
34
|
-
'tasksExportAction.actionStatus': {
|
|
35
|
-
$exists: true,
|
|
36
|
-
$eq: factory_1.factory.actionStatusType.PotentialActionStatus
|
|
37
|
-
},
|
|
38
|
-
endDate: { $exists: true, $lt: endDateLt }
|
|
39
|
-
});
|
|
40
|
-
if (typeof limit === 'number' && limit >= 0) {
|
|
41
|
-
query.limit(limit);
|
|
42
|
-
}
|
|
43
|
-
const count = await query.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
44
|
-
.exec();
|
|
45
|
-
return { count };
|
|
13
|
+
this.transactionModel = connection.model(transaction_1.modelName, (0, transaction_1.createSchema)());
|
|
46
14
|
}
|
|
47
15
|
/**
|
|
48
16
|
* タスク未エクスポートの取引をひとつ取得してエクスポートを開始する
|
|
@@ -101,72 +69,6 @@ class TransactionRepo {
|
|
|
101
69
|
.exec()
|
|
102
70
|
.then((doc) => (doc === null) ? null : doc);
|
|
103
71
|
}
|
|
104
|
-
/**
|
|
105
|
-
* tasksExportAction.actionStatusがActiveActionStatusのまま一定時間経過した取引について
|
|
106
|
-
* PotentialActionStatusに変更する
|
|
107
|
-
* 2025-03-10~
|
|
108
|
-
*/
|
|
109
|
-
async reExportAction(params) {
|
|
110
|
-
const { startDate } = params;
|
|
111
|
-
if (!(startDate.$lt instanceof Date)) {
|
|
112
|
-
throw new factory_1.factory.errors.Argument('startDate.$lt', 'must be Date');
|
|
113
|
-
}
|
|
114
|
-
return this.transactionModel.updateMany({
|
|
115
|
-
'tasksExportAction.actionStatus': {
|
|
116
|
-
$exists: true,
|
|
117
|
-
$eq: factory_1.factory.actionStatusType.ActiveActionStatus
|
|
118
|
-
},
|
|
119
|
-
'tasksExportAction.startDate': {
|
|
120
|
-
$exists: true,
|
|
121
|
-
$lt: startDate.$lt
|
|
122
|
-
}
|
|
123
|
-
}, {
|
|
124
|
-
$set: {
|
|
125
|
-
tasksExportAction: {
|
|
126
|
-
actionStatus: factory_1.factory.actionStatusType.PotentialActionStatus
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
})
|
|
130
|
-
.exec();
|
|
131
|
-
}
|
|
132
|
-
/**
|
|
133
|
-
* タスクエクスポートの遅延している取引について明示的にemitTransactionStatusChangedを実行する
|
|
134
|
-
*/
|
|
135
|
-
async exportTasksMany(params) {
|
|
136
|
-
const delayedTransactions = await this.transactionModel.find({
|
|
137
|
-
status: { $in: params.status.$in },
|
|
138
|
-
'tasksExportAction.actionStatus': {
|
|
139
|
-
$exists: true,
|
|
140
|
-
$eq: factory_1.factory.actionStatusType.PotentialActionStatus
|
|
141
|
-
},
|
|
142
|
-
endDate: {
|
|
143
|
-
$exists: true,
|
|
144
|
-
$lt: (0, moment_1.default)(params.now)
|
|
145
|
-
.add(-params.delayInSeconds, 'seconds')
|
|
146
|
-
.toDate()
|
|
147
|
-
}
|
|
148
|
-
})
|
|
149
|
-
.select({
|
|
150
|
-
_id: 0,
|
|
151
|
-
id: { $toString: '$_id' },
|
|
152
|
-
typeOf: 1,
|
|
153
|
-
status: 1
|
|
154
|
-
})
|
|
155
|
-
.limit(params.limit)
|
|
156
|
-
.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
157
|
-
.lean()
|
|
158
|
-
.exec();
|
|
159
|
-
if (delayedTransactions.length > 0) {
|
|
160
|
-
delayedTransactions.forEach((delayedTransaction) => {
|
|
161
|
-
transaction_1.transactionEventEmitter.emitTransactionStatusChanged({
|
|
162
|
-
id: delayedTransaction.id,
|
|
163
|
-
typeOf: delayedTransaction.typeOf,
|
|
164
|
-
status: delayedTransaction.status
|
|
165
|
-
});
|
|
166
|
-
});
|
|
167
|
-
}
|
|
168
|
-
return delayedTransactions;
|
|
169
|
-
}
|
|
170
72
|
/**
|
|
171
73
|
* set task status exported by transaction id
|
|
172
74
|
* IDでタスクをエクスポート済に変更する
|
|
@@ -189,288 +91,5 @@ class TransactionRepo {
|
|
|
189
91
|
})
|
|
190
92
|
.exec();
|
|
191
93
|
}
|
|
192
|
-
/**
|
|
193
|
-
* add(2025-03-13~)
|
|
194
|
-
*/
|
|
195
|
-
async countPotentiallyExpired(params) {
|
|
196
|
-
const { expires, limit } = params;
|
|
197
|
-
const query = this.transactionModel.countDocuments({
|
|
198
|
-
status: { $eq: factory_1.factory.transactionStatusType.InProgress },
|
|
199
|
-
expires: { $lt: expires.$lt }
|
|
200
|
-
});
|
|
201
|
-
if (typeof limit === 'number' && limit >= 0) {
|
|
202
|
-
query.limit(limit);
|
|
203
|
-
}
|
|
204
|
-
const count = await query.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
205
|
-
.exec();
|
|
206
|
-
return { count };
|
|
207
|
-
}
|
|
208
|
-
/**
|
|
209
|
-
* add(2025-03-03~)
|
|
210
|
-
*/
|
|
211
|
-
async makeOneExpiredIfExists(params) {
|
|
212
|
-
const endDate = new Date();
|
|
213
|
-
const sort = {
|
|
214
|
-
expires: factory_1.factory.sortType.Ascending
|
|
215
|
-
};
|
|
216
|
-
const doc = await this.transactionModel.findOneAndUpdate({
|
|
217
|
-
status: { $eq: factory_1.factory.transactionStatusType.InProgress },
|
|
218
|
-
expires: { $lt: params.expires.$lt }
|
|
219
|
-
}, {
|
|
220
|
-
status: factory_1.factory.transactionStatusType.Expired,
|
|
221
|
-
endDate
|
|
222
|
-
}, {
|
|
223
|
-
new: true,
|
|
224
|
-
projection: {
|
|
225
|
-
_id: 0,
|
|
226
|
-
id: { $toString: '$_id' },
|
|
227
|
-
typeOf: 1
|
|
228
|
-
}
|
|
229
|
-
})
|
|
230
|
-
.sort(sort)
|
|
231
|
-
.lean()
|
|
232
|
-
.exec();
|
|
233
|
-
if (doc === null) {
|
|
234
|
-
// no op
|
|
235
|
-
return;
|
|
236
|
-
}
|
|
237
|
-
else {
|
|
238
|
-
transaction_1.transactionEventEmitter.emitTransactionStatusChanged({
|
|
239
|
-
id: doc.id,
|
|
240
|
-
typeOf: doc.typeOf,
|
|
241
|
-
status: factory_1.factory.transactionStatusType.Expired
|
|
242
|
-
});
|
|
243
|
-
return doc;
|
|
244
|
-
}
|
|
245
|
-
}
|
|
246
|
-
/**
|
|
247
|
-
* 取引を期限切れにする
|
|
248
|
-
*/
|
|
249
|
-
async makeExpired(params) {
|
|
250
|
-
if (typeof params.limit !== 'number' || params.limit === 0) {
|
|
251
|
-
throw new factory_1.factory.errors.ArgumentNull('limit');
|
|
252
|
-
}
|
|
253
|
-
const sort = {
|
|
254
|
-
expires: factory_1.factory.sortType.Ascending
|
|
255
|
-
};
|
|
256
|
-
// IDをemitしたいのでまずリスト検索(2023-04-27~)
|
|
257
|
-
const expiringTransactions = await this.transactionModel.find({
|
|
258
|
-
status: { $eq: factory_1.factory.transactionStatusType.InProgress },
|
|
259
|
-
expires: { $lt: params.expires.$lt }
|
|
260
|
-
})
|
|
261
|
-
.select({
|
|
262
|
-
_id: 0,
|
|
263
|
-
id: { $toString: '$_id' },
|
|
264
|
-
typeOf: 1
|
|
265
|
-
})
|
|
266
|
-
.limit(params.limit)
|
|
267
|
-
.sort(sort) // sort(2025-03-03~)
|
|
268
|
-
.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
269
|
-
.lean()
|
|
270
|
-
.exec();
|
|
271
|
-
if (expiringTransactions.length > 0) {
|
|
272
|
-
// ステータスと期限を見て更新
|
|
273
|
-
await this.transactionModel.updateMany({
|
|
274
|
-
_id: { $in: expiringTransactions.map((t) => t.id) },
|
|
275
|
-
status: { $eq: factory_1.factory.transactionStatusType.InProgress },
|
|
276
|
-
expires: { $lt: params.expires.$lt }
|
|
277
|
-
}, {
|
|
278
|
-
status: factory_1.factory.transactionStatusType.Expired,
|
|
279
|
-
endDate: new Date()
|
|
280
|
-
})
|
|
281
|
-
.exec();
|
|
282
|
-
expiringTransactions.forEach((expiringTransaction) => {
|
|
283
|
-
transaction_1.transactionEventEmitter.emitTransactionStatusChanged({
|
|
284
|
-
id: expiringTransaction.id,
|
|
285
|
-
typeOf: expiringTransaction.typeOf,
|
|
286
|
-
status: factory_1.factory.transactionStatusType.Expired
|
|
287
|
-
});
|
|
288
|
-
});
|
|
289
|
-
}
|
|
290
|
-
return expiringTransactions;
|
|
291
|
-
}
|
|
292
|
-
async findByIdAndDelete(params) {
|
|
293
|
-
await this.transactionModel.findByIdAndDelete(params.id)
|
|
294
|
-
.exec();
|
|
295
|
-
}
|
|
296
|
-
async unsetUnnecessaryFields(params) {
|
|
297
|
-
return this.transactionModel.updateMany(params.filter, { $unset: params.$unset }, { timestamps: false })
|
|
298
|
-
.exec();
|
|
299
|
-
}
|
|
300
|
-
async updateById4migration(params) {
|
|
301
|
-
return this.transactionModel.updateOne({ _id: { $eq: params.id } }, params.update)
|
|
302
|
-
.exec();
|
|
303
|
-
}
|
|
304
|
-
/**
|
|
305
|
-
* 終了日時を一定期間過ぎたアクションを削除する
|
|
306
|
-
*/
|
|
307
|
-
async deleteEndDatePassedCertainPeriod(params) {
|
|
308
|
-
return this.transactionModel.deleteMany({
|
|
309
|
-
typeOf: { $eq: params.typeOf },
|
|
310
|
-
// 終了日時を一定期間過ぎたもの
|
|
311
|
-
endDate: {
|
|
312
|
-
$exists: true,
|
|
313
|
-
$gte: params.endDate.$gte,
|
|
314
|
-
$lt: params.endDate.$lt
|
|
315
|
-
}
|
|
316
|
-
})
|
|
317
|
-
.exec();
|
|
318
|
-
}
|
|
319
|
-
getCursor(conditions, projection, sort) {
|
|
320
|
-
return this.transactionModel.find(conditions, projection)
|
|
321
|
-
.sort({ startDate: (sort === factory_1.factory.sortType.Ascending) ? sort : factory_1.factory.sortType.Descending })
|
|
322
|
-
.cursor();
|
|
323
|
-
}
|
|
324
|
-
async aggregatePlaceOrder(params) {
|
|
325
|
-
const statuses = await Promise.all([
|
|
326
|
-
factory_1.factory.transactionStatusType.Confirmed,
|
|
327
|
-
factory_1.factory.transactionStatusType.Canceled,
|
|
328
|
-
factory_1.factory.transactionStatusType.Expired
|
|
329
|
-
].map(async (transactionStatus) => {
|
|
330
|
-
const matchConditions = {
|
|
331
|
-
startDate: {
|
|
332
|
-
$gte: params.startFrom,
|
|
333
|
-
$lte: params.startThrough
|
|
334
|
-
},
|
|
335
|
-
typeOf: { $eq: params.typeOf },
|
|
336
|
-
status: { $eq: transactionStatus },
|
|
337
|
-
...(typeof params.project?.id?.$ne === 'string')
|
|
338
|
-
? { 'project.id': { $ne: params.project.id.$ne } }
|
|
339
|
-
: undefined,
|
|
340
|
-
...(typeof params.clientId === 'string')
|
|
341
|
-
// customerIdentifierAll.push();
|
|
342
|
-
? {
|
|
343
|
-
'agent.identifier': {
|
|
344
|
-
$exists: true,
|
|
345
|
-
$all: [{ name: 'clientId', value: params.clientId }]
|
|
346
|
-
}
|
|
347
|
-
}
|
|
348
|
-
: undefined
|
|
349
|
-
};
|
|
350
|
-
return this.agggregateByStatus({ matchConditions, status: transactionStatus });
|
|
351
|
-
}));
|
|
352
|
-
return { statuses };
|
|
353
|
-
}
|
|
354
|
-
async agggregateByStatus(params) {
|
|
355
|
-
const matchConditions = params.matchConditions;
|
|
356
|
-
const transactionStatus = params.status;
|
|
357
|
-
const aggregations = await this.transactionModel.aggregate([
|
|
358
|
-
{
|
|
359
|
-
$match: matchConditions
|
|
360
|
-
},
|
|
361
|
-
{
|
|
362
|
-
$project: {
|
|
363
|
-
duration: { $subtract: ['$endDate', '$startDate'] },
|
|
364
|
-
status: '$status',
|
|
365
|
-
startDate: '$startDate',
|
|
366
|
-
endDate: '$endDate',
|
|
367
|
-
typeOf: '$typeOf'
|
|
368
|
-
}
|
|
369
|
-
},
|
|
370
|
-
{
|
|
371
|
-
$group: {
|
|
372
|
-
_id: '$typeOf',
|
|
373
|
-
transactionCount: { $sum: 1 },
|
|
374
|
-
maxDuration: { $max: '$duration' },
|
|
375
|
-
minDuration: { $min: '$duration' },
|
|
376
|
-
avgDuration: { $avg: '$duration' }
|
|
377
|
-
}
|
|
378
|
-
},
|
|
379
|
-
{
|
|
380
|
-
$project: {
|
|
381
|
-
_id: 0,
|
|
382
|
-
transactionCount: '$transactionCount',
|
|
383
|
-
avgDuration: '$avgDuration',
|
|
384
|
-
maxDuration: '$maxDuration',
|
|
385
|
-
minDuration: '$minDuration'
|
|
386
|
-
}
|
|
387
|
-
}
|
|
388
|
-
])
|
|
389
|
-
.exec();
|
|
390
|
-
const percents = [50, 95, 99];
|
|
391
|
-
if (aggregations.length === 0) {
|
|
392
|
-
return {
|
|
393
|
-
status: transactionStatus,
|
|
394
|
-
aggregation: {
|
|
395
|
-
transactionCount: 0,
|
|
396
|
-
avgDuration: 0,
|
|
397
|
-
maxDuration: 0,
|
|
398
|
-
minDuration: 0,
|
|
399
|
-
percentilesDuration: percents.map((percent) => {
|
|
400
|
-
return {
|
|
401
|
-
name: String(percent),
|
|
402
|
-
value: 0
|
|
403
|
-
};
|
|
404
|
-
})
|
|
405
|
-
// totalPrice: 0,
|
|
406
|
-
// maxPrice: 0,
|
|
407
|
-
// minPrice: 0,
|
|
408
|
-
// avgPrice: 0
|
|
409
|
-
}
|
|
410
|
-
};
|
|
411
|
-
}
|
|
412
|
-
const ranks4percentile = percents.map((percentile) => {
|
|
413
|
-
return {
|
|
414
|
-
percentile,
|
|
415
|
-
rank: Math.floor(aggregations[0].transactionCount * percentile / 100)
|
|
416
|
-
};
|
|
417
|
-
});
|
|
418
|
-
const aggregations2 = await this.transactionModel.aggregate([
|
|
419
|
-
{
|
|
420
|
-
$match: matchConditions
|
|
421
|
-
},
|
|
422
|
-
{
|
|
423
|
-
$project: {
|
|
424
|
-
duration: { $subtract: ['$endDate', '$startDate'] },
|
|
425
|
-
status: '$status',
|
|
426
|
-
startDate: '$startDate',
|
|
427
|
-
endDate: '$endDate',
|
|
428
|
-
typeOf: '$typeOf'
|
|
429
|
-
// result: '$result',
|
|
430
|
-
// price: {
|
|
431
|
-
// $cond: {
|
|
432
|
-
// if: { $isNumber: '$result.order.price' },
|
|
433
|
-
// then: '$result.order.price',
|
|
434
|
-
// else: 0
|
|
435
|
-
// }
|
|
436
|
-
// }
|
|
437
|
-
}
|
|
438
|
-
},
|
|
439
|
-
{ $sort: { duration: 1 } },
|
|
440
|
-
{
|
|
441
|
-
$group: {
|
|
442
|
-
_id: '$typeOf',
|
|
443
|
-
durations: { $push: '$duration' }
|
|
444
|
-
// totalPrice: { $sum: '$price' },
|
|
445
|
-
// maxPrice: { $max: '$price' },
|
|
446
|
-
// minPrice: { $min: '$price' },
|
|
447
|
-
// avgPrice: { $avg: '$price' }
|
|
448
|
-
}
|
|
449
|
-
},
|
|
450
|
-
{
|
|
451
|
-
$project: {
|
|
452
|
-
_id: 0,
|
|
453
|
-
percentilesDuration: ranks4percentile.map((rank) => {
|
|
454
|
-
return {
|
|
455
|
-
name: String(rank.percentile),
|
|
456
|
-
value: { $arrayElemAt: ['$durations', rank.rank] }
|
|
457
|
-
};
|
|
458
|
-
})
|
|
459
|
-
// totalPrice: '$totalPrice',
|
|
460
|
-
// maxPrice: '$maxPrice',
|
|
461
|
-
// minPrice: '$minPrice',
|
|
462
|
-
// avgPrice: '$avgPrice'
|
|
463
|
-
}
|
|
464
|
-
}
|
|
465
|
-
])
|
|
466
|
-
.exec();
|
|
467
|
-
return {
|
|
468
|
-
status: transactionStatus,
|
|
469
|
-
aggregation: {
|
|
470
|
-
...aggregations[0],
|
|
471
|
-
...aggregations2[0]
|
|
472
|
-
}
|
|
473
|
-
};
|
|
474
|
-
}
|
|
475
94
|
}
|
|
476
95
|
exports.TransactionRepo = TransactionRepo;
|
|
@@ -4,7 +4,6 @@
|
|
|
4
4
|
import type { AcceptedOfferRepo } from './repo/acceptedOffer';
|
|
5
5
|
import type { AccountingReportRepo } from './repo/accountingReport';
|
|
6
6
|
import type { AccountTitleRepo } from './repo/accountTitle';
|
|
7
|
-
import type { ActionRepo } from './repo/action';
|
|
8
7
|
import type { AcceptCOAOfferActionRepo } from './repo/action/acceptCOAOffer';
|
|
9
8
|
import type { AcceptPayActionRepo } from './repo/action/acceptPay';
|
|
10
9
|
import type { AuthorizeInvoiceActionRepo } from './repo/action/authorizeInvoice';
|
|
@@ -12,21 +11,31 @@ import type { AuthorizeOfferActionRepo } from './repo/action/authorizeOffer';
|
|
|
12
11
|
import type { AuthorizePaymentMethodActionRepo } from './repo/action/authorizePaymentMethod';
|
|
13
12
|
import type { AuthorizeTicketedObjectActionRepo } from './repo/action/authorizeTicketedObject';
|
|
14
13
|
import type { CheckMovieTicketActionRepo } from './repo/action/checkMovieTicket';
|
|
15
|
-
import type {
|
|
14
|
+
import type { InformActionRepo } from './repo/action/inform';
|
|
16
15
|
import type { PayActionRepo } from './repo/action/pay';
|
|
17
16
|
import type { RefundActionRepo } from './repo/action/refund';
|
|
17
|
+
import type { UpdateActionRepo } from './repo/action/update';
|
|
18
|
+
import type { UseActionRepo } from './repo/action/use';
|
|
19
|
+
import type { CancelActionRepo } from './repo/action/cancel';
|
|
20
|
+
import type { OrderActionRepo } from './repo/action/order';
|
|
21
|
+
import type { ConfirmActionRepo } from './repo/action/confirm';
|
|
18
22
|
import type { AsyncActionRepo } from './repo/asyncAction';
|
|
19
|
-
import type { AsyncActionLegacyRepo } from './repo/asyncActionLegacy';
|
|
20
23
|
import type { AdditionalPropertyRepo } from './repo/additionalProperty';
|
|
24
|
+
import type { AdminActionRepo } from './repo/adminAction';
|
|
25
|
+
import type { AdminAssetTransactionRepo } from './repo/adminAssetTransaction';
|
|
21
26
|
import type { AdminAsyncActionRepo } from './repo/adminAsyncAction';
|
|
22
27
|
import type { AdminScheduledTaskRepo } from './repo/adminScheduledTask';
|
|
23
28
|
import type { AdminTaskRepo } from './repo/adminTask';
|
|
29
|
+
import type { AdminTransactionRepo } from './repo/adminTransaction';
|
|
24
30
|
import type { AggregateActionRepo } from './repo/aggregateAction';
|
|
31
|
+
import type { AggregateUseActionRepo } from './repo/aggregateUseAction';
|
|
32
|
+
import type { AggregateAssetTransactionRepo } from './repo/aggregateAssetTransaction';
|
|
25
33
|
import type { AggregateOfferRepo } from './repo/aggregateOffer';
|
|
26
34
|
import type { AggregateOrderRepo } from './repo/aggregateOrder';
|
|
27
35
|
import type { AggregateReservationRepo } from './repo/aggregateReservation';
|
|
28
36
|
import type { AggregateScheduledTaskRepo } from './repo/aggregateScheduledTask';
|
|
29
37
|
import type { AggregateTaskRepo } from './repo/aggregateTask';
|
|
38
|
+
import type { AggregateTransactionRepo } from './repo/aggregateTransaction';
|
|
30
39
|
import type { AggregationRepo } from './repo/aggregation';
|
|
31
40
|
import type { AssetTransactionRepo } from './repo/assetTransaction';
|
|
32
41
|
import type { ReserveTransactionRepo } from './repo/assetTransaction/reserve';
|
|
@@ -57,7 +66,6 @@ import type { OfferCatalogItemRepo } from './repo/offerCatalogItem';
|
|
|
57
66
|
import type { OfferItemConditionRepo } from './repo/offerItemCondition';
|
|
58
67
|
import type { OrderRepo } from './repo/order';
|
|
59
68
|
import type { OrderInTransactionRepo } from './repo/orderInTransaction';
|
|
60
|
-
import type { OwnershipInfoRepo } from './repo/ownershipInfo';
|
|
61
69
|
import type { PassportRepo } from './repo/passport';
|
|
62
70
|
import type { PaymentServiceRepo } from './repo/paymentService';
|
|
63
71
|
import type { PaymentServiceChannelRepo } from './repo/paymentServiceChannel';
|
|
@@ -93,8 +101,8 @@ import type { RateLimitSettingRepo } from './repo/setting/rateLimit';
|
|
|
93
101
|
import type { WaiterSettingRepo } from './repo/setting/waiter';
|
|
94
102
|
import type { StockHolderRepo } from './repo/stockHolder';
|
|
95
103
|
import type { ScheduledTaskRepo } from './repo/scheduledTask';
|
|
96
|
-
import type { ScheduledTaskLegacyRepo } from './repo/scheduledTaskLegacy';
|
|
97
104
|
import type { TaskRepo } from './repo/task';
|
|
105
|
+
import type { TaskDelayedRepo } from './repo/taskDelayed';
|
|
98
106
|
import type { TicketRepo } from './repo/ticket';
|
|
99
107
|
import type { TransactionRepo } from './repo/transaction';
|
|
100
108
|
import type { PlaceOrderRepo } from './repo/transaction/placeOrder';
|
|
@@ -117,10 +125,6 @@ export type AccountTitle = AccountTitleRepo;
|
|
|
117
125
|
export declare namespace AccountTitle {
|
|
118
126
|
function createInstance(...params: ConstructorParameters<typeof AccountTitleRepo>): Promise<AccountTitleRepo>;
|
|
119
127
|
}
|
|
120
|
-
export type Action = ActionRepo;
|
|
121
|
-
export declare namespace Action {
|
|
122
|
-
function createInstance(...params: ConstructorParameters<typeof ActionRepo>): Promise<ActionRepo>;
|
|
123
|
-
}
|
|
124
128
|
export declare namespace action {
|
|
125
129
|
type AcceptCOAOffer = AcceptCOAOfferActionRepo;
|
|
126
130
|
namespace AcceptCOAOffer {
|
|
@@ -150,10 +154,6 @@ export declare namespace action {
|
|
|
150
154
|
namespace CheckMovieTicket {
|
|
151
155
|
function createInstance(...params: ConstructorParameters<typeof CheckMovieTicketActionRepo>): Promise<CheckMovieTicketActionRepo>;
|
|
152
156
|
}
|
|
153
|
-
type CheckThing = CheckThingActionRepo;
|
|
154
|
-
namespace CheckThing {
|
|
155
|
-
function createInstance(...params: ConstructorParameters<typeof CheckThingActionRepo>): Promise<CheckThingActionRepo>;
|
|
156
|
-
}
|
|
157
157
|
type Pay = PayActionRepo;
|
|
158
158
|
namespace Pay {
|
|
159
159
|
function createInstance(...params: ConstructorParameters<typeof PayActionRepo>): Promise<PayActionRepo>;
|
|
@@ -162,11 +162,43 @@ export declare namespace action {
|
|
|
162
162
|
namespace Refund {
|
|
163
163
|
function createInstance(...params: ConstructorParameters<typeof RefundActionRepo>): Promise<RefundActionRepo>;
|
|
164
164
|
}
|
|
165
|
+
type Update = UpdateActionRepo;
|
|
166
|
+
namespace Update {
|
|
167
|
+
function createInstance(...params: ConstructorParameters<typeof UpdateActionRepo>): Promise<UpdateActionRepo>;
|
|
168
|
+
}
|
|
169
|
+
type Inform = InformActionRepo;
|
|
170
|
+
namespace Inform {
|
|
171
|
+
function createInstance(...params: ConstructorParameters<typeof InformActionRepo>): Promise<InformActionRepo>;
|
|
172
|
+
}
|
|
173
|
+
type Use = UseActionRepo;
|
|
174
|
+
namespace Use {
|
|
175
|
+
function createInstance(...params: ConstructorParameters<typeof UseActionRepo>): Promise<UseActionRepo>;
|
|
176
|
+
}
|
|
177
|
+
type Cancel = CancelActionRepo;
|
|
178
|
+
namespace Cancel {
|
|
179
|
+
function createInstance(...params: ConstructorParameters<typeof CancelActionRepo>): Promise<CancelActionRepo>;
|
|
180
|
+
}
|
|
181
|
+
type Order = OrderActionRepo;
|
|
182
|
+
namespace Order {
|
|
183
|
+
function createInstance(...params: ConstructorParameters<typeof OrderActionRepo>): Promise<OrderActionRepo>;
|
|
184
|
+
}
|
|
185
|
+
type Confirm = ConfirmActionRepo;
|
|
186
|
+
namespace Confirm {
|
|
187
|
+
function createInstance(...params: ConstructorParameters<typeof ConfirmActionRepo>): Promise<ConfirmActionRepo>;
|
|
188
|
+
}
|
|
165
189
|
}
|
|
166
190
|
export type AdditionalProperty = AdditionalPropertyRepo;
|
|
167
191
|
export declare namespace AdditionalProperty {
|
|
168
192
|
function createInstance(...params: ConstructorParameters<typeof AdditionalPropertyRepo>): Promise<AdditionalPropertyRepo>;
|
|
169
193
|
}
|
|
194
|
+
export type AdminAction = AdminActionRepo;
|
|
195
|
+
export declare namespace AdminAction {
|
|
196
|
+
function createInstance(...params: ConstructorParameters<typeof AdminActionRepo>): Promise<AdminActionRepo>;
|
|
197
|
+
}
|
|
198
|
+
export type AdminAssetTransaction = AdminAssetTransactionRepo;
|
|
199
|
+
export declare namespace AdminAssetTransaction {
|
|
200
|
+
function createInstance(...params: ConstructorParameters<typeof AdminAssetTransactionRepo>): Promise<AdminAssetTransactionRepo>;
|
|
201
|
+
}
|
|
170
202
|
export type AdminAsyncAction = AdminAsyncActionRepo;
|
|
171
203
|
export declare namespace AdminAsyncAction {
|
|
172
204
|
function createInstance(...params: ConstructorParameters<typeof AdminAsyncActionRepo>): Promise<AdminAsyncActionRepo>;
|
|
@@ -179,10 +211,18 @@ export type AdminTask = AdminTaskRepo;
|
|
|
179
211
|
export declare namespace AdminTask {
|
|
180
212
|
function createInstance(...params: ConstructorParameters<typeof AdminTaskRepo>): Promise<AdminTaskRepo>;
|
|
181
213
|
}
|
|
214
|
+
export type AdminTransaction = AdminTransactionRepo;
|
|
215
|
+
export declare namespace AdminTransaction {
|
|
216
|
+
function createInstance(...params: ConstructorParameters<typeof AdminTransactionRepo>): Promise<AdminTransactionRepo>;
|
|
217
|
+
}
|
|
182
218
|
export type AggregateAction = AggregateActionRepo;
|
|
183
219
|
export declare namespace AggregateAction {
|
|
184
220
|
function createInstance(...params: ConstructorParameters<typeof AggregateActionRepo>): Promise<AggregateActionRepo>;
|
|
185
221
|
}
|
|
222
|
+
export type AggregateUseAction = AggregateUseActionRepo;
|
|
223
|
+
export declare namespace AggregateUseAction {
|
|
224
|
+
function createInstance(...params: ConstructorParameters<typeof AggregateUseActionRepo>): Promise<AggregateUseActionRepo>;
|
|
225
|
+
}
|
|
186
226
|
export type AggregateScheduledTask = AggregateScheduledTaskRepo;
|
|
187
227
|
export declare namespace AggregateScheduledTask {
|
|
188
228
|
function createInstance(...params: ConstructorParameters<typeof AggregateScheduledTaskRepo>): Promise<AggregateScheduledTaskRepo>;
|
|
@@ -191,6 +231,14 @@ export type AggregateTask = AggregateTaskRepo;
|
|
|
191
231
|
export declare namespace AggregateTask {
|
|
192
232
|
function createInstance(...params: ConstructorParameters<typeof AggregateTaskRepo>): Promise<AggregateTaskRepo>;
|
|
193
233
|
}
|
|
234
|
+
export type AggregateTransaction = AggregateTransactionRepo;
|
|
235
|
+
export declare namespace AggregateTransaction {
|
|
236
|
+
function createInstance(...params: ConstructorParameters<typeof AggregateTransactionRepo>): Promise<AggregateTransactionRepo>;
|
|
237
|
+
}
|
|
238
|
+
export type AggregateAssetTransaction = AggregateAssetTransactionRepo;
|
|
239
|
+
export declare namespace AggregateAssetTransaction {
|
|
240
|
+
function createInstance(...params: ConstructorParameters<typeof AggregateAssetTransactionRepo>): Promise<AggregateAssetTransactionRepo>;
|
|
241
|
+
}
|
|
194
242
|
export type AggregateOffer = AggregateOfferRepo;
|
|
195
243
|
export declare namespace AggregateOffer {
|
|
196
244
|
function createInstance(...params: ConstructorParameters<typeof AggregateOfferRepo>): Promise<AggregateOfferRepo>;
|
|
@@ -333,10 +381,6 @@ export type OrderNumber = OrderNumberRepo;
|
|
|
333
381
|
export declare namespace OrderNumber {
|
|
334
382
|
function createInstance(...params: ConstructorParameters<typeof OrderNumberRepo>): Promise<OrderNumberRepo>;
|
|
335
383
|
}
|
|
336
|
-
export type OwnershipInfo = OwnershipInfoRepo;
|
|
337
|
-
export declare namespace OwnershipInfo {
|
|
338
|
-
function createInstance(...params: ConstructorParameters<typeof OwnershipInfoRepo>): Promise<OwnershipInfoRepo>;
|
|
339
|
-
}
|
|
340
384
|
export type Passport = PassportRepo;
|
|
341
385
|
export declare namespace Passport {
|
|
342
386
|
function createInstance(...params: ConstructorParameters<typeof PassportRepo>): Promise<PassportRepo>;
|
|
@@ -499,22 +543,18 @@ export type ScheduledTask = ScheduledTaskRepo;
|
|
|
499
543
|
export declare namespace ScheduledTask {
|
|
500
544
|
function createInstance(...params: ConstructorParameters<typeof ScheduledTaskRepo>): Promise<ScheduledTaskRepo>;
|
|
501
545
|
}
|
|
502
|
-
export type ScheduledTaskLegacy = ScheduledTaskLegacyRepo;
|
|
503
|
-
export declare namespace ScheduledTaskLegacy {
|
|
504
|
-
function createInstance(...params: ConstructorParameters<typeof ScheduledTaskLegacyRepo>): Promise<ScheduledTaskLegacyRepo>;
|
|
505
|
-
}
|
|
506
546
|
export type Task = TaskRepo;
|
|
507
547
|
export declare namespace Task {
|
|
508
548
|
function createInstance(...params: ConstructorParameters<typeof TaskRepo>): Promise<TaskRepo>;
|
|
509
549
|
}
|
|
550
|
+
export type TaskDelayed = TaskDelayedRepo;
|
|
551
|
+
export declare namespace TaskDelayed {
|
|
552
|
+
function createInstance(...params: ConstructorParameters<typeof TaskDelayedRepo>): Promise<TaskDelayedRepo>;
|
|
553
|
+
}
|
|
510
554
|
export type AsyncAction = AsyncActionRepo;
|
|
511
555
|
export declare namespace AsyncAction {
|
|
512
556
|
function createInstance(...params: ConstructorParameters<typeof AsyncActionRepo>): Promise<AsyncActionRepo>;
|
|
513
557
|
}
|
|
514
|
-
export type AsyncActionLegacy = AsyncActionLegacyRepo;
|
|
515
|
-
export declare namespace AsyncActionLegacy {
|
|
516
|
-
function createInstance(...params: ConstructorParameters<typeof AsyncActionLegacyRepo>): Promise<AsyncActionLegacyRepo>;
|
|
517
|
-
}
|
|
518
558
|
export type Ticket = TicketRepo;
|
|
519
559
|
export declare namespace Ticket {
|
|
520
560
|
function createInstance(...params: ConstructorParameters<typeof TicketRepo>): Promise<TicketRepo>;
|