@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
|
@@ -38,18 +38,17 @@ const schemaOptions = {
|
|
|
38
38
|
}
|
|
39
39
|
};
|
|
40
40
|
const indexes = [
|
|
41
|
-
// [ // discontinue(2024-08-07~)
|
|
42
|
-
// { createdAt: 1 },
|
|
43
|
-
// { name: 'searchByCreatedAt' }
|
|
44
|
-
// ],
|
|
45
|
-
// [
|
|
46
|
-
// { updatedAt: 1 },
|
|
47
|
-
// { name: 'searchByUpdatedAt' }
|
|
48
|
-
// ],
|
|
49
41
|
[
|
|
50
42
|
{ 'reservationFor.startDate': 1 },
|
|
51
|
-
{
|
|
43
|
+
{
|
|
44
|
+
name: 'ttlByReservationForStartDate', // support ttl index(2026-08-11~)
|
|
45
|
+
expireAfterSeconds: 16416000 // 190 days
|
|
46
|
+
}
|
|
52
47
|
],
|
|
48
|
+
// [
|
|
49
|
+
// { 'reservationFor.startDate': 1 },
|
|
50
|
+
// { name: 'searchByReservationForStartDate' }
|
|
51
|
+
// ],
|
|
53
52
|
[
|
|
54
53
|
{ 'project.id': 1, 'reservationFor.startDate': 1 },
|
|
55
54
|
{ name: 'searchByProjectId' }
|
|
@@ -36,8 +36,15 @@ const schemaOptions = {
|
|
|
36
36
|
const indexes = [
|
|
37
37
|
[
|
|
38
38
|
{ aggregateStart: 1 },
|
|
39
|
-
{
|
|
39
|
+
{
|
|
40
|
+
name: 'ttlByAggregateStart', // support ttl index(2026-08-09~)
|
|
41
|
+
expireAfterSeconds: 15552000 // 180 days
|
|
42
|
+
}
|
|
40
43
|
],
|
|
44
|
+
// [
|
|
45
|
+
// { aggregateStart: 1 },
|
|
46
|
+
// { name: 'searchByAggregateStart' }
|
|
47
|
+
// ],
|
|
41
48
|
[
|
|
42
49
|
{ typeOf: 1, aggregateStart: 1 },
|
|
43
50
|
{ name: 'searchByTypeOf' }
|
|
@@ -54,6 +54,16 @@ const schemaOptions = {
|
|
|
54
54
|
}
|
|
55
55
|
};
|
|
56
56
|
const indexes = [
|
|
57
|
+
[
|
|
58
|
+
{ endDate: 1 },
|
|
59
|
+
{
|
|
60
|
+
name: 'ttlByEndDate', // support ttl index(2026-08-09~)
|
|
61
|
+
expireAfterSeconds: 17280000, // 200 days
|
|
62
|
+
partialFilterExpression: {
|
|
63
|
+
endDate: { $exists: true }
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
],
|
|
57
67
|
[
|
|
58
68
|
{ transactionNumber: 1 },
|
|
59
69
|
{
|
|
@@ -61,10 +71,11 @@ const indexes = [
|
|
|
61
71
|
name: 'uniqueTransactionNumber'
|
|
62
72
|
}
|
|
63
73
|
],
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
74
|
+
// discontinue(2026-08-12~)
|
|
75
|
+
// [
|
|
76
|
+
// { transactionNumber: 1, startDate: -1 },
|
|
77
|
+
// { name: 'searchByTransactionNumber' }
|
|
78
|
+
// ],
|
|
68
79
|
[
|
|
69
80
|
{ 'project.id': 1, startDate: -1 },
|
|
70
81
|
{
|
|
@@ -114,15 +125,16 @@ const indexes = [
|
|
|
114
125
|
}
|
|
115
126
|
}
|
|
116
127
|
],
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
128
|
+
// discontinue(2026-08-12~)
|
|
129
|
+
// [
|
|
130
|
+
// { 'object.provider.id': 1, startDate: -1 },
|
|
131
|
+
// {
|
|
132
|
+
// name: 'searchByObjectProviderId',
|
|
133
|
+
// partialFilterExpression: {
|
|
134
|
+
// 'object.provider.id': { $exists: true }
|
|
135
|
+
// }
|
|
136
|
+
// }
|
|
137
|
+
// ],
|
|
126
138
|
[
|
|
127
139
|
{ 'object.subReservation.id': 1, startDate: -1 },
|
|
128
140
|
{
|
|
@@ -132,24 +144,26 @@ const indexes = [
|
|
|
132
144
|
}
|
|
133
145
|
}
|
|
134
146
|
],
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
147
|
+
// discontinue(2026-08-12~)
|
|
148
|
+
// [
|
|
149
|
+
// { 'object.subReservation.reservationNumber': 1, startDate: -1 },
|
|
150
|
+
// {
|
|
151
|
+
// name: 'searchByObjectSubReservationsReservationNumber',
|
|
152
|
+
// partialFilterExpression: {
|
|
153
|
+
// 'object.subReservation.reservationNumber': { $exists: true }
|
|
154
|
+
// }
|
|
155
|
+
// }
|
|
156
|
+
// ],
|
|
157
|
+
// discontinue(2026-08-12~)
|
|
158
|
+
// [
|
|
159
|
+
// { 'object.subReservation.reservationFor.id': 1, startDate: -1 },
|
|
160
|
+
// {
|
|
161
|
+
// name: 'searchByObjectSubReservationsReservationForId',
|
|
162
|
+
// partialFilterExpression: {
|
|
163
|
+
// 'object.subReservation.reservationFor.id': { $exists: true }
|
|
164
|
+
// }
|
|
165
|
+
// }
|
|
166
|
+
// ],
|
|
153
167
|
[
|
|
154
168
|
{ 'object.subReservation.reservedTicket.ticketedSeat.seatNumber': 1, startDate: -1 },
|
|
155
169
|
{
|
|
@@ -168,15 +182,16 @@ const indexes = [
|
|
|
168
182
|
}
|
|
169
183
|
}
|
|
170
184
|
],
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
185
|
+
// discontinue(2026-08-12~)
|
|
186
|
+
// [
|
|
187
|
+
// { 'object.underName.id': 1, startDate: -1 },
|
|
188
|
+
// {
|
|
189
|
+
// name: 'searchByObjectUnderNameId',
|
|
190
|
+
// partialFilterExpression: {
|
|
191
|
+
// 'object.underName.id': { $exists: true }
|
|
192
|
+
// }
|
|
193
|
+
// }
|
|
194
|
+
// ],
|
|
180
195
|
[
|
|
181
196
|
{ 'object.reservationNumber': 1, startDate: -1 },
|
|
182
197
|
{
|
|
@@ -207,42 +222,46 @@ const indexes = [
|
|
|
207
222
|
partialFilterExpression: { 'object.reservations.reservationFor.id': { $exists: true } }
|
|
208
223
|
}
|
|
209
224
|
],
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
225
|
+
// discontinue(2026-08-12~)
|
|
226
|
+
// [
|
|
227
|
+
// { 'object.fromLocation.identifier': 1, startDate: -1 },
|
|
228
|
+
// {
|
|
229
|
+
// name: 'searchByObjectFromLocationIdentifier',
|
|
230
|
+
// partialFilterExpression: {
|
|
231
|
+
// 'object.fromLocation.identifier': { $exists: true }
|
|
232
|
+
// }
|
|
233
|
+
// }
|
|
234
|
+
// ],
|
|
235
|
+
// discontinue(2026-08-12~)
|
|
236
|
+
// [
|
|
237
|
+
// { 'object.toLocation.identifier': 1, startDate: -1 },
|
|
238
|
+
// {
|
|
239
|
+
// name: 'searchByObjectToLocationIdentifier',
|
|
240
|
+
// partialFilterExpression: {
|
|
241
|
+
// 'object.toLocation.identifier': { $exists: true }
|
|
242
|
+
// }
|
|
243
|
+
// }
|
|
244
|
+
// ],
|
|
245
|
+
// discontinue(2026-08-12~)
|
|
246
|
+
// [
|
|
247
|
+
// { 'object.pendingTransaction.identifier': 1, startDate: -1 },
|
|
248
|
+
// {
|
|
249
|
+
// name: 'searchByObjectPendingTransactionIdentifier',
|
|
250
|
+
// partialFilterExpression: {
|
|
251
|
+
// 'object.pendingTransaction.identifier': { $exists: true }
|
|
252
|
+
// }
|
|
253
|
+
// }
|
|
254
|
+
// ],
|
|
255
|
+
// discontinue(2026-08-12~)
|
|
256
|
+
// [
|
|
257
|
+
// { 'object.itemOffered.serviceOutput.identifier': 1, startDate: -1 },
|
|
258
|
+
// {
|
|
259
|
+
// name: 'searchByObjectItemOfferedServiceOutputIdentifier',
|
|
260
|
+
// partialFilterExpression: {
|
|
261
|
+
// 'object.itemOffered.serviceOutput.identifier': { $exists: true }
|
|
262
|
+
// }
|
|
263
|
+
// }
|
|
264
|
+
// ],
|
|
246
265
|
[
|
|
247
266
|
{ 'object.typeOf': 1, startDate: -1 },
|
|
248
267
|
{
|
|
@@ -58,6 +58,13 @@ const schemaOptions = {
|
|
|
58
58
|
}
|
|
59
59
|
};
|
|
60
60
|
const indexes = [
|
|
61
|
+
[
|
|
62
|
+
{ validUntil: 1 },
|
|
63
|
+
{
|
|
64
|
+
name: 'ttlByValidUntil', // support ttl index(2026-08-09~)
|
|
65
|
+
expireAfterSeconds: 86400 // 1 days
|
|
66
|
+
}
|
|
67
|
+
],
|
|
61
68
|
[
|
|
62
69
|
// コードはユニークなはず
|
|
63
70
|
{ code: 1 },
|
|
@@ -113,24 +120,24 @@ const indexes = [
|
|
|
113
120
|
}
|
|
114
121
|
}
|
|
115
122
|
],
|
|
116
|
-
[
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
],
|
|
125
|
-
[
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
],
|
|
123
|
+
// [
|
|
124
|
+
// { 'object.typeOfGood.typeOf': 1, validFrom: 1 },
|
|
125
|
+
// {
|
|
126
|
+
// name: 'searchByObjectTypeOfGoodTypeOf',
|
|
127
|
+
// partialFilterExpression: {
|
|
128
|
+
// 'object.typeOfGood.typeOf': { $exists: true }
|
|
129
|
+
// }
|
|
130
|
+
// }
|
|
131
|
+
// ],
|
|
132
|
+
// [
|
|
133
|
+
// { 'object.typeOfGood.id': 1, validFrom: 1 },
|
|
134
|
+
// {
|
|
135
|
+
// name: 'searchByObjectTypeOfGoodId',
|
|
136
|
+
// partialFilterExpression: {
|
|
137
|
+
// 'object.typeOfGood.id': { $exists: true }
|
|
138
|
+
// }
|
|
139
|
+
// }
|
|
140
|
+
// ],
|
|
134
141
|
[
|
|
135
142
|
{ 'audience.id': 1, validFrom: 1 },
|
|
136
143
|
{
|
|
@@ -44,6 +44,13 @@ const schemaOptions = {
|
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
46
|
const indexes = [
|
|
47
|
+
[
|
|
48
|
+
{ validThrough: 1 },
|
|
49
|
+
{
|
|
50
|
+
name: 'ttlByValidThrough', // support ttl index(2026-08-11~)
|
|
51
|
+
expireAfterSeconds: 0 // 0 days
|
|
52
|
+
}
|
|
53
|
+
],
|
|
47
54
|
[
|
|
48
55
|
{ validFrom: 1 },
|
|
49
56
|
{ name: 'validFrom' }
|
|
@@ -68,8 +68,15 @@ const schemaOptions = {
|
|
|
68
68
|
const indexes = [
|
|
69
69
|
[
|
|
70
70
|
{ datePublished: 1 },
|
|
71
|
-
{
|
|
71
|
+
{
|
|
72
|
+
name: 'ttlByDatePublished', // support ttl index(2026-08-09~)
|
|
73
|
+
expireAfterSeconds: 604800 // 7 days
|
|
74
|
+
}
|
|
72
75
|
],
|
|
76
|
+
// [
|
|
77
|
+
// { datePublished: 1 },
|
|
78
|
+
// { name: 'searchByDatePublished' }
|
|
79
|
+
// ],
|
|
73
80
|
[
|
|
74
81
|
{ identifier: 1, datePublished: 1 },
|
|
75
82
|
{ name: 'searchByIdentifier' }
|
|
@@ -45,6 +45,13 @@ const schemaOptions = {
|
|
|
45
45
|
}
|
|
46
46
|
};
|
|
47
47
|
const indexes = [
|
|
48
|
+
[
|
|
49
|
+
{ expires: 1 },
|
|
50
|
+
{
|
|
51
|
+
name: 'ttlByExpires', // support ttl index(2026-08-11~)
|
|
52
|
+
expireAfterSeconds: 0 // 0 days
|
|
53
|
+
}
|
|
54
|
+
],
|
|
48
55
|
[
|
|
49
56
|
{ bookingTime: -1 },
|
|
50
57
|
{ name: 'bookingTime' }
|
|
@@ -113,10 +120,10 @@ const indexes = [
|
|
|
113
120
|
}
|
|
114
121
|
}
|
|
115
122
|
],
|
|
116
|
-
[
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
]
|
|
123
|
+
// [
|
|
124
|
+
// { expires: 1 },
|
|
125
|
+
// { name: 'deleteExpiredMany' }
|
|
126
|
+
// ]
|
|
120
127
|
];
|
|
121
128
|
exports.indexes = indexes;
|
|
122
129
|
/**
|
|
@@ -32,32 +32,21 @@ interface IOnEventChanged {
|
|
|
32
32
|
informEvent2agg?: factory.project.IInformParams[];
|
|
33
33
|
}
|
|
34
34
|
export interface IStorageSettings {
|
|
35
|
-
|
|
36
|
-
deleteTransactionTaskExpiresInDays?: number;
|
|
35
|
+
deleteTransactionTaskExpiresInDays: number;
|
|
37
36
|
/**
|
|
38
37
|
* 取引保管期間(Confirmed)
|
|
39
38
|
* default:365
|
|
40
39
|
*/
|
|
41
40
|
transactionConfirmedInDays?: number;
|
|
41
|
+
/**
|
|
42
|
+
* イベント終了日時からn日後まで座席をロックする
|
|
43
|
+
*/
|
|
44
|
+
stockHoldAfterEventEndInDays?: number;
|
|
42
45
|
/**
|
|
43
46
|
* 取引保管期間(Canceled)
|
|
44
47
|
* default:7
|
|
45
48
|
*/
|
|
46
49
|
transactionCanceledInDays?: number;
|
|
47
|
-
authorizationInDays?: number;
|
|
48
|
-
actionInDays?: number;
|
|
49
|
-
assetTransactionInDays?: number;
|
|
50
|
-
taskInDays?: number;
|
|
51
|
-
eventInDays?: number;
|
|
52
|
-
/**
|
|
53
|
-
* メッセージ保管日数
|
|
54
|
-
* 2026-06-28~
|
|
55
|
-
*/
|
|
56
|
-
messageInDays?: number;
|
|
57
|
-
/**
|
|
58
|
-
* イベント終了日時からn日後まで座席をロックする
|
|
59
|
-
*/
|
|
60
|
-
stockHoldAfterEventEndInDays?: number;
|
|
61
50
|
}
|
|
62
51
|
interface IQuotaSettings {
|
|
63
52
|
codeExpiresInSecondsDefault?: number;
|
|
@@ -1,11 +1,8 @@
|
|
|
1
1
|
import { IndexDefinition, IndexOptions, Model, Schema, SchemaDefinition } from 'mongoose';
|
|
2
2
|
import { IVirtuals } from '../virtuals';
|
|
3
3
|
import { factory } from '../../../factory';
|
|
4
|
-
type IDocType =
|
|
5
|
-
|
|
6
|
-
* 非同期アクション移行前のタスクには残っている(2026-07-29時点)
|
|
7
|
-
*/
|
|
8
|
-
expires?: Date;
|
|
4
|
+
type IDocType = Pick<factory.task.ITask<factory.taskName>, 'data' | 'dateAborted' | 'description' | 'executionResults' | 'executor' | 'identifier' | 'lastTriedAt' | 'name' | 'numberOfTried' | 'project' | 'remainingNumberOfTries' | 'runsAt' | 'status'> & {
|
|
5
|
+
expires?: never;
|
|
9
6
|
};
|
|
10
7
|
type IModel = Model<IDocType, Record<string, never>, Record<string, never>, IVirtuals>;
|
|
11
8
|
type ISchemaDefinition = SchemaDefinition<IDocType>;
|