@chevre/domain 21.2.0-alpha.13 → 21.2.0-alpha.130
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/aggregateEventReservation.ts +1 -1
- package/example/src/chevre/aggregation/aggregateSystem.ts +85 -27
- package/example/src/chevre/countDelayedTasks.ts +7 -2
- package/example/src/chevre/deleteTasksByName.ts +10 -2
- package/example/src/chevre/findMovieTheaterById.ts +40 -0
- package/example/src/chevre/importEventsFromCOA.ts +3 -4
- package/example/src/chevre/lockStockHolder.ts +5 -2
- package/example/src/chevre/migrateOrderAdditionalProperties.ts +85 -0
- package/example/src/chevre/migrateScreeningEventSeriesVersion.ts +79 -0
- package/example/src/chevre/processPay.ts +5 -1
- package/example/src/chevre/processRegisterMembership.ts +8 -4
- package/example/src/chevre/processRegisterPaymentCard.ts +8 -4
- package/example/src/chevre/processReserve.ts +5 -2
- package/example/src/chevre/saveTasks.ts +13 -10
- package/example/src/chevre/searchAbortedTasks.ts +34 -0
- package/example/src/chevre/searchActions.ts +33 -0
- package/example/src/chevre/searchEventSeats.ts +5 -2
- package/example/src/chevre/searchHoldReservations.ts +38 -0
- package/example/src/chevre/searchReservationNumbersByOrderNumbers.ts +37 -1
- package/example/src/chevre/searchScreeningRooms.ts +23 -0
- package/example/src/chevre/searchSendEmailActions.ts +44 -0
- package/example/src/chevre/task/executeTasks.ts +26 -0
- package/example/src/chevre/transaction/findCreditCard.ts +1 -1
- package/example/src/chevre/transaction/orderMembershipService.ts +1 -1
- package/example/src/chevre/transaction/processReturnOrder.ts +40 -0
- package/example/src/chevre/transaction/startExportTasks.ts +2 -1
- package/example/src/chevre/updateScreeningRoom.ts +41 -0
- package/example/src/chevre/updateTransaction.ts +1 -1
- package/example/src/playOnMoment.ts +24 -0
- package/lib/chevre/credentials.d.ts +1 -0
- package/lib/chevre/credentials.js +2 -1
- package/lib/chevre/eventEmitter/assetTransaction.d.ts +21 -0
- package/lib/chevre/eventEmitter/assetTransaction.js +25 -0
- package/lib/chevre/eventEmitter/task.d.ts +18 -0
- package/lib/chevre/eventEmitter/task.js +25 -0
- package/lib/chevre/eventEmitter/transaction.d.ts +21 -0
- package/lib/chevre/eventEmitter/transaction.js +25 -0
- package/lib/chevre/eventEmitter.d.ts +4 -0
- package/lib/chevre/eventEmitter.js +9 -0
- package/lib/chevre/index.d.ts +3 -2
- package/lib/chevre/index.js +5 -3
- package/lib/chevre/repo/account.js +3 -2
- package/lib/chevre/repo/accountTransaction.d.ts +3 -1
- package/lib/chevre/repo/accountTransaction.js +3 -2
- package/lib/chevre/repo/action.d.ts +42 -2
- package/lib/chevre/repo/action.js +130 -57
- package/lib/chevre/repo/additionalProperty.js +2 -1
- package/lib/chevre/repo/aggregation.d.ts +3 -0
- package/lib/chevre/repo/aggregation.js +3 -0
- package/lib/chevre/repo/assetTransaction.d.ts +23 -8
- package/lib/chevre/repo/assetTransaction.js +253 -80
- package/lib/chevre/repo/categoryCode.d.ts +1 -1
- package/lib/chevre/repo/categoryCode.js +37 -25
- package/lib/chevre/repo/code.js +3 -2
- package/lib/chevre/repo/comment.d.ts +4 -1
- package/lib/chevre/repo/comment.js +22 -6
- package/lib/chevre/repo/confirmationNumber.d.ts +0 -1
- package/lib/chevre/repo/confirmationNumber.js +3 -15
- package/lib/chevre/repo/creativeWork.d.ts +2 -4
- package/lib/chevre/repo/creativeWork.js +35 -12
- package/lib/chevre/repo/customer.js +2 -1
- package/lib/chevre/repo/emailMessage.d.ts +1 -27
- package/lib/chevre/repo/emailMessage.js +2 -1
- package/lib/chevre/repo/event.d.ts +27 -1
- package/lib/chevre/repo/event.js +67 -33
- package/lib/chevre/repo/member.js +4 -3
- package/lib/chevre/repo/merchantReturnPolicy.d.ts +1 -3
- package/lib/chevre/repo/merchantReturnPolicy.js +2 -1
- package/lib/chevre/repo/mongoose/schemas/account.d.ts +4 -2
- package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +29 -3
- package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +31 -3
- package/lib/chevre/repo/mongoose/schemas/accountTransaction.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +13 -3
- package/lib/chevre/repo/mongoose/schemas/action.d.ts +43 -3
- package/lib/chevre/repo/mongoose/schemas/action.js +19 -1
- package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +17 -3
- package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +4 -2
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +44 -3
- package/lib/chevre/repo/mongoose/schemas/assetTransaction.js +32 -19
- package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +19 -3
- package/lib/chevre/repo/mongoose/schemas/authorization.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +25 -3
- package/lib/chevre/repo/mongoose/schemas/comments.d.ts +27 -3
- package/lib/chevre/repo/mongoose/schemas/comments.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +43 -3
- package/lib/chevre/repo/mongoose/schemas/customer.d.ts +25 -3
- package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +21 -3
- package/lib/chevre/repo/mongoose/schemas/event.d.ts +71 -3
- package/lib/chevre/repo/mongoose/schemas/holdReservation.d.ts +75 -0
- package/lib/chevre/repo/mongoose/schemas/holdReservation.js +62 -0
- package/lib/chevre/repo/mongoose/schemas/member.d.ts +13 -3
- package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +21 -3
- package/lib/chevre/repo/mongoose/schemas/offer.d.ts +65 -3
- package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +27 -3
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.d.ts +74 -0
- package/lib/chevre/repo/mongoose/schemas/offerItemCondition.js +45 -0
- package/lib/chevre/repo/mongoose/schemas/order.d.ts +51 -3
- package/lib/chevre/repo/mongoose/schemas/order.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +25 -3
- package/lib/chevre/repo/mongoose/schemas/ownershipInfo.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/place.d.ts +49 -3
- package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +29 -3
- package/lib/chevre/repo/mongoose/schemas/product.d.ts +31 -3
- package/lib/chevre/repo/mongoose/schemas/project.d.ts +23 -3
- package/lib/chevre/repo/mongoose/schemas/reservation.d.ts +63 -5
- package/lib/chevre/repo/mongoose/schemas/reservation.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/role.d.ts +11 -3
- package/lib/chevre/repo/mongoose/schemas/seller.d.ts +31 -3
- package/lib/chevre/repo/mongoose/schemas/seller.js +6 -0
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +11 -3
- package/lib/chevre/repo/mongoose/schemas/serviceOutput.js +1 -1
- package/lib/chevre/repo/mongoose/schemas/task.d.ts +30 -3
- package/lib/chevre/repo/mongoose/schemas/task.js +2 -1
- package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +21 -3
- package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +40 -3
- package/lib/chevre/repo/mongoose/schemas/transaction.js +2 -1
- package/lib/chevre/repo/mongoose/schemas/trip.d.ts +11 -3
- package/lib/chevre/repo/offer.js +3 -2
- package/lib/chevre/repo/offerCatalog.js +0 -27
- package/lib/chevre/repo/offerItemCondition.d.ts +22 -0
- package/lib/chevre/repo/offerItemCondition.js +121 -0
- package/lib/chevre/repo/order.d.ts +55 -3
- package/lib/chevre/repo/order.js +62 -10
- package/lib/chevre/repo/ownershipInfo.js +2 -7
- package/lib/chevre/repo/place.d.ts +20 -5
- package/lib/chevre/repo/place.js +63 -23
- package/lib/chevre/repo/priceSpecification.js +3 -2
- package/lib/chevre/repo/product.d.ts +1 -3
- package/lib/chevre/repo/product.js +25 -4
- package/lib/chevre/repo/project.js +2 -1
- package/lib/chevre/repo/reservation.d.ts +20 -4
- package/lib/chevre/repo/reservation.js +40 -59
- package/lib/chevre/repo/role.js +3 -2
- package/lib/chevre/repo/seller.d.ts +1 -1
- package/lib/chevre/repo/seller.js +44 -23
- package/lib/chevre/repo/serviceOutput.js +2 -1
- package/lib/chevre/repo/stockHolder.d.ts +137 -7
- package/lib/chevre/repo/stockHolder.js +527 -102
- package/lib/chevre/repo/task.d.ts +45 -2
- package/lib/chevre/repo/task.js +94 -15
- package/lib/chevre/repo/transaction.d.ts +21 -2
- package/lib/chevre/repo/transaction.js +171 -50
- package/lib/chevre/repo/trip.js +2 -1
- package/lib/chevre/repository.d.ts +5 -2
- package/lib/chevre/repository.js +8 -4
- package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +6 -2
- package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.js +8 -6
- package/lib/chevre/service/aggregation/system.d.ts +110 -23
- package/lib/chevre/service/aggregation/system.js +213 -91
- package/lib/chevre/service/assetTransaction/cancelReservation.js +1 -28
- package/lib/chevre/service/assetTransaction/moneyTransfer.js +2 -24
- package/lib/chevre/service/assetTransaction/pay/account/validation.js +1 -1
- package/lib/chevre/service/assetTransaction/pay/potentialActions.js +17 -1
- package/lib/chevre/service/assetTransaction/pay.d.ts +5 -1
- package/lib/chevre/service/assetTransaction/pay.js +20 -34
- package/lib/chevre/service/assetTransaction/refund.js +2 -24
- package/lib/chevre/service/assetTransaction/registerService.js +1 -25
- package/lib/chevre/service/assetTransaction/reserve/factory.d.ts +15 -5
- package/lib/chevre/service/assetTransaction/reserve/factory.js +122 -58
- package/lib/chevre/service/assetTransaction/reserve.d.ts +10 -1
- package/lib/chevre/service/assetTransaction/reserve.js +92 -69
- package/lib/chevre/service/assetTransaction.d.ts +6 -0
- package/lib/chevre/service/assetTransaction.js +9 -4
- package/lib/chevre/service/event.js +25 -6
- package/lib/chevre/service/notification/factory.js +2 -2
- package/lib/chevre/service/notification.d.ts +3 -1
- package/lib/chevre/service/notification.js +41 -7
- package/lib/chevre/service/offer/event/authorize.d.ts +3 -0
- package/lib/chevre/service/offer/event/authorize.js +8 -2
- package/lib/chevre/service/offer/event/factory.d.ts +3 -0
- package/lib/chevre/service/offer/event/factory.js +16 -5
- package/lib/chevre/service/offer/event/importFromCOA.js +2 -2
- package/lib/chevre/service/offer/event/voidTransaction.d.ts +2 -0
- package/lib/chevre/service/offer/event/voidTransaction.js +17 -1
- package/lib/chevre/service/offer/eventServiceByCOA.js +7 -9
- package/lib/chevre/service/offer/product.js +2 -2
- package/lib/chevre/service/offer.d.ts +16 -8
- package/lib/chevre/service/offer.js +71 -8
- package/lib/chevre/service/order/deleteOrder.d.ts +3 -1
- package/lib/chevre/service/order/deleteOrder.js +8 -8
- package/lib/chevre/service/order/onOrderStatusChanged/factory.d.ts +5 -2
- package/lib/chevre/service/order/onOrderStatusChanged/factory.js +41 -81
- package/lib/chevre/service/order/onOrderStatusChanged.js +1 -3
- package/lib/chevre/service/order/onOrderUpdated.d.ts +16 -0
- package/lib/chevre/service/order/onOrderUpdated.js +22 -0
- package/lib/chevre/service/order/placeOrder.d.ts +1 -0
- package/lib/chevre/service/order/placeOrder.js +41 -24
- package/lib/chevre/service/order/returnOrder.d.ts +1 -0
- package/lib/chevre/service/order/returnOrder.js +7 -12
- package/lib/chevre/service/order/sendOrder.d.ts +1 -0
- package/lib/chevre/service/order/sendOrder.js +7 -10
- package/lib/chevre/service/order.d.ts +2 -1
- package/lib/chevre/service/order.js +3 -1
- package/lib/chevre/service/payment/any/onPaid.js +1 -1
- package/lib/chevre/service/payment/any/onRefund.js +1 -1
- package/lib/chevre/service/payment/any.d.ts +9 -5
- package/lib/chevre/service/payment/any.js +80 -18
- package/lib/chevre/service/payment/creditCard.d.ts +1 -1
- package/lib/chevre/service/payment/creditCard.js +23 -17
- package/lib/chevre/service/payment/movieTicket/checkByIdentifier.d.ts +8 -7
- package/lib/chevre/service/payment/movieTicket/factory.d.ts +1 -1
- package/lib/chevre/service/payment/movieTicket/getCredentials.d.ts +1 -1
- package/lib/chevre/service/payment/movieTicket/getCredentials.js +1 -1
- package/lib/chevre/service/payment/movieTicket/validation.d.ts +6 -6
- package/lib/chevre/service/payment/movieTicket/validation.js +55 -32
- package/lib/chevre/service/payment/movieTicket.d.ts +2 -2
- package/lib/chevre/service/payment/movieTicket.js +7 -6
- package/lib/chevre/service/product.js +1 -5
- package/lib/chevre/service/report/telemetry.d.ts +0 -11
- package/lib/chevre/service/report/telemetry.js +21 -24
- package/lib/chevre/service/reserve/cancelReservation.d.ts +5 -3
- package/lib/chevre/service/reserve/cancelReservation.js +162 -142
- package/lib/chevre/service/reserve/checkInReservation.d.ts +9 -4
- package/lib/chevre/service/reserve/checkInReservation.js +77 -3
- package/lib/chevre/service/reserve/confirmReservation.d.ts +7 -4
- package/lib/chevre/service/reserve/confirmReservation.js +133 -58
- package/lib/chevre/service/reserve/factory.d.ts +1 -1
- package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +17 -5
- package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.js +26 -24
- package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.js +2 -3
- package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.js +2 -31
- package/lib/chevre/service/reserve/potentialActions/onReservationUsed.js +2 -3
- package/lib/chevre/service/reserve/useReservation.d.ts +7 -3
- package/lib/chevre/service/reserve/useReservation.js +61 -71
- package/lib/chevre/service/reserve/verifyToken4reservation.d.ts +15 -0
- package/lib/chevre/service/reserve/verifyToken4reservation.js +56 -0
- package/lib/chevre/service/reserve.d.ts +3 -2
- package/lib/chevre/service/reserve.js +4 -2
- package/lib/chevre/service/task/aggregateScreeningEvent.js +1 -1
- package/lib/chevre/service/task/cancelPendingReservation.js +6 -2
- package/lib/chevre/service/task/cancelReservation.js +1 -1
- package/lib/chevre/service/task/confirmRegisterServiceTransaction.js +1 -1
- package/lib/chevre/service/task/deleteTransaction.js +10 -8
- package/lib/chevre/service/task/importOffersFromCOA.js +4 -0
- package/lib/chevre/service/task/onAuthorizationCreated.d.ts +7 -0
- package/lib/chevre/service/task/onAuthorizationCreated.js +108 -0
- package/lib/chevre/service/task/onEventChanged.d.ts +7 -0
- package/lib/chevre/service/task/{deleteOrder.js → onEventChanged.js} +8 -14
- package/lib/chevre/service/task/onResourceUpdated.d.ts +7 -0
- package/lib/chevre/service/task/onResourceUpdated.js +352 -0
- package/lib/chevre/service/task/placeOrder.js +1 -1
- package/lib/chevre/service/task/reserve.js +10 -7
- package/lib/chevre/service/task/returnOrder.js +1 -1
- package/lib/chevre/service/task/returnPayTransaction.js +2 -12
- package/lib/chevre/service/task/sendOrder.js +1 -1
- package/lib/chevre/service/task/useReservation.d.ts +7 -0
- package/lib/chevre/service/task/useReservation.js +36 -0
- package/lib/chevre/service/task/voidReserveTransaction.js +4 -2
- package/lib/chevre/service/task.d.ts +9 -0
- package/lib/chevre/service/task.js +43 -4
- package/lib/chevre/service/transaction/deleteTransaction.d.ts +21 -0
- package/lib/chevre/service/transaction/deleteTransaction.js +232 -0
- package/lib/chevre/service/transaction/moneyTransfer/exportTasks/factory.js +11 -1
- package/lib/chevre/service/transaction/moneyTransfer/factory.d.ts +1 -1
- package/lib/chevre/service/transaction/moneyTransfer/factory.js +3 -1
- package/lib/chevre/service/transaction/moneyTransfer/potentialActions.d.ts +1 -0
- package/lib/chevre/service/transaction/moneyTransfer/potentialActions.js +1 -1
- package/lib/chevre/service/transaction/moneyTransfer.js +10 -13
- package/lib/chevre/service/transaction/orderProgramMembership/findCreditCard.js +1 -1
- package/lib/chevre/service/transaction/orderProgramMembership/findPaymentCardPermit.js +1 -1
- package/lib/chevre/service/transaction/orderProgramMembership.js +7 -3
- package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.js +42 -30
- package/lib/chevre/service/transaction/placeOrder.js +1 -5
- package/lib/chevre/service/transaction/placeOrderInProgress/factory.js +1 -1
- package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/moneyTransfer.d.ts +1 -0
- package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/moneyTransfer.js +1 -1
- package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/registerService.d.ts +1 -0
- package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/registerService.js +1 -1
- package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions.d.ts +1 -0
- package/lib/chevre/service/transaction/placeOrderInProgress/result/acceptedOffers.d.ts +3 -0
- package/lib/chevre/service/transaction/placeOrderInProgress/result/acceptedOffers.js +7 -3
- package/lib/chevre/service/transaction/placeOrderInProgress/result.d.ts +1 -0
- package/lib/chevre/service/transaction/placeOrderInProgress/result.js +2 -2
- package/lib/chevre/service/transaction/placeOrderInProgress/validation/validateMovieTicket.d.ts +1 -1
- package/lib/chevre/service/transaction/placeOrderInProgress/validation/validateMovieTicket.js +2 -2
- package/lib/chevre/service/transaction/placeOrderInProgress/validation.d.ts +2 -1
- package/lib/chevre/service/transaction/placeOrderInProgress/validation.js +23 -17
- package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +0 -3
- package/lib/chevre/service/transaction/placeOrderInProgress.js +28 -15
- package/lib/chevre/service/transaction/returnOrder/exportTasks/factory.js +10 -1
- package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPaymentMethod.js +25 -17
- package/lib/chevre/service/transaction/returnOrder.d.ts +4 -0
- package/lib/chevre/service/transaction/returnOrder.js +228 -36
- package/lib/chevre/service/transaction.d.ts +7 -13
- package/lib/chevre/service/transaction.js +12 -139
- package/lib/chevre/settings.d.ts +13 -1
- package/lib/chevre/settings.js +56 -6
- package/package.json +5 -5
- package/example/src/chevre/createManyEventsIfNotExist.ts +0 -205
- package/example/src/chevre/eventCatalog2eventService.ts +0 -123
- package/example/src/chevre/migrateMoneyTransferPendingTransactionIdentifier.ts +0 -96
- package/example/src/chevre/migrateMovieAdditionalProperties.ts +0 -98
- package/example/src/chevre/migrateStockHolderKeys.ts +0 -89
- package/lib/chevre/service/task/deleteAssetTransaction.d.ts +0 -12
- package/lib/chevre/service/task/deleteAssetTransaction.js +0 -65
- package/lib/chevre/service/task/deleteOrder.d.ts +0 -6
package/lib/chevre/repo/event.js
CHANGED
|
@@ -25,6 +25,7 @@ const uniqid = require("uniqid");
|
|
|
25
25
|
const factory = require("../factory");
|
|
26
26
|
const event_1 = require("./mongoose/schemas/event");
|
|
27
27
|
const errorHandler_1 = require("../errorHandler");
|
|
28
|
+
const settings_1 = require("../settings");
|
|
28
29
|
exports.PROJECTION_MINIMIZED_EVENT = {
|
|
29
30
|
project: 1,
|
|
30
31
|
_id: 1,
|
|
@@ -50,7 +51,7 @@ class MongoRepository {
|
|
|
50
51
|
}
|
|
51
52
|
// tslint:disable-next-line:cyclomatic-complexity max-func-body-length
|
|
52
53
|
static CREATE_MONGO_CONDITIONS(conditions) {
|
|
53
|
-
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37;
|
|
54
|
+
var _a, _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o, _p, _q, _r, _s, _t, _u, _v, _w, _x, _y, _z, _0, _1, _2, _3, _4, _5, _6, _7, _8, _9, _10, _11, _12, _13, _14, _15, _16, _17, _18, _19, _20, _21, _22, _23, _24, _25, _26, _27, _28, _29, _30, _31, _32, _33, _34, _35, _36, _37, _38, _39;
|
|
54
55
|
const andConditions = [{ typeOf: { $eq: conditions.typeOf } }];
|
|
55
56
|
const projectIdEq = (_b = (_a = conditions.project) === null || _a === void 0 ? void 0 : _a.id) === null || _b === void 0 ? void 0 : _b.$eq;
|
|
56
57
|
if (typeof projectIdEq === 'string') {
|
|
@@ -115,18 +116,15 @@ class MongoRepository {
|
|
|
115
116
|
}
|
|
116
117
|
const locationBranchCodeEq = (_e = (_d = conditions.location) === null || _d === void 0 ? void 0 : _d.branchCode) === null || _e === void 0 ? void 0 : _e.$eq;
|
|
117
118
|
if (typeof locationBranchCodeEq === 'string') {
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
$eq: locationBranchCodeEq
|
|
124
|
-
}
|
|
125
|
-
});
|
|
119
|
+
andConditions.push({ 'location.branchCode': { $exists: true, $eq: locationBranchCodeEq } });
|
|
120
|
+
}
|
|
121
|
+
const locationBranchCodeIn = (_g = (_f = conditions.location) === null || _f === void 0 ? void 0 : _f.branchCode) === null || _g === void 0 ? void 0 : _g.$in;
|
|
122
|
+
if (Array.isArray(locationBranchCodeIn)) {
|
|
123
|
+
andConditions.push({ 'location.branchCode': { $exists: true, $in: locationBranchCodeIn } });
|
|
126
124
|
}
|
|
127
125
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
128
126
|
/* istanbul ignore else */
|
|
129
|
-
const hasOfferCatalogIdEq = (
|
|
127
|
+
const hasOfferCatalogIdEq = (_j = (_h = conditions.hasOfferCatalog) === null || _h === void 0 ? void 0 : _h.id) === null || _j === void 0 ? void 0 : _j.$eq;
|
|
130
128
|
if (typeof hasOfferCatalogIdEq === 'string') {
|
|
131
129
|
andConditions.push({
|
|
132
130
|
'hasOfferCatalog.id': {
|
|
@@ -135,7 +133,7 @@ class MongoRepository {
|
|
|
135
133
|
}
|
|
136
134
|
});
|
|
137
135
|
}
|
|
138
|
-
const additionalPropertyElemMatch = (
|
|
136
|
+
const additionalPropertyElemMatch = (_k = conditions.additionalProperty) === null || _k === void 0 ? void 0 : _k.$elemMatch;
|
|
139
137
|
if (additionalPropertyElemMatch !== undefined && additionalPropertyElemMatch !== null) {
|
|
140
138
|
andConditions.push({
|
|
141
139
|
additionalProperty: {
|
|
@@ -151,7 +149,7 @@ class MongoRepository {
|
|
|
151
149
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
152
150
|
/* istanbul ignore else */
|
|
153
151
|
if (params.offers !== undefined) {
|
|
154
|
-
const itemOfferedIdIn4event = (
|
|
152
|
+
const itemOfferedIdIn4event = (_m = (_l = params.offers.itemOffered) === null || _l === void 0 ? void 0 : _l.id) === null || _m === void 0 ? void 0 : _m.$in;
|
|
155
153
|
if (Array.isArray(itemOfferedIdIn4event)) {
|
|
156
154
|
andConditions.push({
|
|
157
155
|
'offers.itemOffered.id': {
|
|
@@ -201,8 +199,8 @@ class MongoRepository {
|
|
|
201
199
|
}
|
|
202
200
|
}
|
|
203
201
|
}
|
|
204
|
-
const sellerMakesOfferElemMatch4event = (
|
|
205
|
-
if (typeof ((
|
|
202
|
+
const sellerMakesOfferElemMatch4event = (_q = (_p = (_o = params.offers) === null || _o === void 0 ? void 0 : _o.seller) === null || _p === void 0 ? void 0 : _p.makesOffer) === null || _q === void 0 ? void 0 : _q.$elemMatch;
|
|
203
|
+
if (typeof ((_r = sellerMakesOfferElemMatch4event === null || sellerMakesOfferElemMatch4event === void 0 ? void 0 : sellerMakesOfferElemMatch4event['availableAtOrFrom.id']) === null || _r === void 0 ? void 0 : _r.$eq) === 'string') {
|
|
206
204
|
andConditions.push({
|
|
207
205
|
'offers.seller.makesOffer': {
|
|
208
206
|
$exists: true,
|
|
@@ -210,7 +208,7 @@ class MongoRepository {
|
|
|
210
208
|
}
|
|
211
209
|
});
|
|
212
210
|
}
|
|
213
|
-
const reservationForIdentifierEq = (
|
|
211
|
+
const reservationForIdentifierEq = (_w = (_v = (_u = (_t = (_s = params.offers) === null || _s === void 0 ? void 0 : _s.itemOffered) === null || _t === void 0 ? void 0 : _t.serviceOutput) === null || _u === void 0 ? void 0 : _u.reservationFor) === null || _v === void 0 ? void 0 : _v.identifier) === null || _w === void 0 ? void 0 : _w.$eq;
|
|
214
212
|
if (typeof reservationForIdentifierEq === 'string') {
|
|
215
213
|
andConditions.push({
|
|
216
214
|
'offers.itemOffered.serviceOutput.reservationFor.identifier': {
|
|
@@ -219,7 +217,7 @@ class MongoRepository {
|
|
|
219
217
|
}
|
|
220
218
|
});
|
|
221
219
|
}
|
|
222
|
-
const reservationForArrivalBusStopBranchCodeEq = (
|
|
220
|
+
const reservationForArrivalBusStopBranchCodeEq = (_2 = (_1 = (_0 = (_z = (_y = (_x = params.offers) === null || _x === void 0 ? void 0 : _x.itemOffered) === null || _y === void 0 ? void 0 : _y.serviceOutput) === null || _z === void 0 ? void 0 : _z.reservationFor) === null || _0 === void 0 ? void 0 : _0.arrivalBusStop) === null || _1 === void 0 ? void 0 : _1.branchCode) === null || _2 === void 0 ? void 0 : _2.$eq;
|
|
223
221
|
if (typeof reservationForArrivalBusStopBranchCodeEq === 'string') {
|
|
224
222
|
andConditions.push({
|
|
225
223
|
'offers.itemOffered.serviceOutput.reservationFor.arrivalBusStop.branchCode': {
|
|
@@ -228,7 +226,7 @@ class MongoRepository {
|
|
|
228
226
|
}
|
|
229
227
|
});
|
|
230
228
|
}
|
|
231
|
-
const reservationForDepartureBusStopBranchCodeEq = (
|
|
229
|
+
const reservationForDepartureBusStopBranchCodeEq = (_8 = (_7 = (_6 = (_5 = (_4 = (_3 = params.offers) === null || _3 === void 0 ? void 0 : _3.itemOffered) === null || _4 === void 0 ? void 0 : _4.serviceOutput) === null || _5 === void 0 ? void 0 : _5.reservationFor) === null || _6 === void 0 ? void 0 : _6.departureBusStop) === null || _7 === void 0 ? void 0 : _7.branchCode) === null || _8 === void 0 ? void 0 : _8.$eq;
|
|
232
230
|
if (typeof reservationForDepartureBusStopBranchCodeEq === 'string') {
|
|
233
231
|
andConditions.push({
|
|
234
232
|
'offers.itemOffered.serviceOutput.reservationFor.departureBusStop.branchCode': {
|
|
@@ -262,7 +260,7 @@ class MongoRepository {
|
|
|
262
260
|
}
|
|
263
261
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
264
262
|
/* istanbul ignore else */
|
|
265
|
-
const superEventLocationIdEq = (
|
|
263
|
+
const superEventLocationIdEq = (_11 = (_10 = (_9 = params.superEvent) === null || _9 === void 0 ? void 0 : _9.location) === null || _10 === void 0 ? void 0 : _10.id) === null || _11 === void 0 ? void 0 : _11.$eq;
|
|
266
264
|
if (typeof superEventLocationIdEq === 'string') {
|
|
267
265
|
andConditions.push({
|
|
268
266
|
'superEvent.location.id': {
|
|
@@ -305,7 +303,7 @@ class MongoRepository {
|
|
|
305
303
|
});
|
|
306
304
|
}
|
|
307
305
|
}
|
|
308
|
-
const itemOfferedIdIn = (
|
|
306
|
+
const itemOfferedIdIn = (_14 = (_13 = (_12 = params.offers) === null || _12 === void 0 ? void 0 : _12.itemOffered) === null || _13 === void 0 ? void 0 : _13.id) === null || _14 === void 0 ? void 0 : _14.$in;
|
|
309
307
|
if (Array.isArray(itemOfferedIdIn)) {
|
|
310
308
|
andConditions.push({
|
|
311
309
|
'offers.itemOffered.id': {
|
|
@@ -314,7 +312,7 @@ class MongoRepository {
|
|
|
314
312
|
}
|
|
315
313
|
});
|
|
316
314
|
}
|
|
317
|
-
const itemOfferedTicketedSeatTypeOfIn = (
|
|
315
|
+
const itemOfferedTicketedSeatTypeOfIn = (_19 = (_18 = (_17 = (_16 = (_15 = params.offers) === null || _15 === void 0 ? void 0 : _15.itemOffered) === null || _16 === void 0 ? void 0 : _16.serviceOutput) === null || _17 === void 0 ? void 0 : _17.reservedTicket) === null || _18 === void 0 ? void 0 : _18.ticketedSeat) === null || _19 === void 0 ? void 0 : _19.typeOfs;
|
|
318
316
|
if (Array.isArray(itemOfferedTicketedSeatTypeOfIn)) {
|
|
319
317
|
andConditions.push({
|
|
320
318
|
'offers.itemOffered.serviceOutput.reservedTicket.ticketedSeat.typeOf': {
|
|
@@ -323,7 +321,7 @@ class MongoRepository {
|
|
|
323
321
|
}
|
|
324
322
|
});
|
|
325
323
|
}
|
|
326
|
-
const itemOfferedServiceTypeIdIn = (
|
|
324
|
+
const itemOfferedServiceTypeIdIn = (_22 = (_21 = (_20 = params.offers) === null || _20 === void 0 ? void 0 : _20.itemOffered) === null || _21 === void 0 ? void 0 : _21.serviceType) === null || _22 === void 0 ? void 0 : _22.ids;
|
|
327
325
|
if (Array.isArray(itemOfferedServiceTypeIdIn)) {
|
|
328
326
|
andConditions.push({
|
|
329
327
|
'offers.itemOffered.serviceType.id': {
|
|
@@ -332,8 +330,8 @@ class MongoRepository {
|
|
|
332
330
|
}
|
|
333
331
|
});
|
|
334
332
|
}
|
|
335
|
-
const sellerMakesOfferElemMatch = (
|
|
336
|
-
if (typeof ((
|
|
333
|
+
const sellerMakesOfferElemMatch = (_25 = (_24 = (_23 = params.offers) === null || _23 === void 0 ? void 0 : _23.seller) === null || _24 === void 0 ? void 0 : _24.makesOffer) === null || _25 === void 0 ? void 0 : _25.$elemMatch;
|
|
334
|
+
if (typeof ((_26 = sellerMakesOfferElemMatch === null || sellerMakesOfferElemMatch === void 0 ? void 0 : sellerMakesOfferElemMatch['availableAtOrFrom.id']) === null || _26 === void 0 ? void 0 : _26.$eq) === 'string') {
|
|
337
335
|
andConditions.push({
|
|
338
336
|
'offers.seller.makesOffer': {
|
|
339
337
|
$exists: true,
|
|
@@ -370,7 +368,7 @@ class MongoRepository {
|
|
|
370
368
|
]
|
|
371
369
|
});
|
|
372
370
|
}
|
|
373
|
-
const locationIdEq = (
|
|
371
|
+
const locationIdEq = (_28 = (_27 = params.location) === null || _27 === void 0 ? void 0 : _27.id) === null || _28 === void 0 ? void 0 : _28.$eq;
|
|
374
372
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
375
373
|
/* istanbul ignore else */
|
|
376
374
|
if (typeof locationIdEq === 'string') {
|
|
@@ -392,7 +390,7 @@ class MongoRepository {
|
|
|
392
390
|
});
|
|
393
391
|
}
|
|
394
392
|
}
|
|
395
|
-
const workPerformedIdentifierIn = (
|
|
393
|
+
const workPerformedIdentifierIn = (_29 = params.workPerformed) === null || _29 === void 0 ? void 0 : _29.identifiers;
|
|
396
394
|
// tslint:disable-next-line:no-single-line-block-comment
|
|
397
395
|
/* istanbul ignore else */
|
|
398
396
|
if (Array.isArray(workPerformedIdentifierIn)) {
|
|
@@ -400,13 +398,13 @@ class MongoRepository {
|
|
|
400
398
|
'workPerformed.identifier': { $exists: true, $in: workPerformedIdentifierIn }
|
|
401
399
|
});
|
|
402
400
|
}
|
|
403
|
-
const workPerformedVersionEq = (
|
|
401
|
+
const workPerformedVersionEq = (_31 = (_30 = params.workPerformed) === null || _30 === void 0 ? void 0 : _30.version) === null || _31 === void 0 ? void 0 : _31.$eq;
|
|
404
402
|
if (typeof workPerformedVersionEq === 'string') {
|
|
405
403
|
andConditions.push({
|
|
406
404
|
'workPerformed.version': { $exists: true, $eq: workPerformedVersionEq }
|
|
407
405
|
});
|
|
408
406
|
}
|
|
409
|
-
const videoFormatTypeOfEq = (
|
|
407
|
+
const videoFormatTypeOfEq = (_33 = (_32 = params.videoFormat) === null || _32 === void 0 ? void 0 : _32.typeOf) === null || _33 === void 0 ? void 0 : _33.$eq;
|
|
410
408
|
if (typeof videoFormatTypeOfEq === 'string') {
|
|
411
409
|
andConditions.push({
|
|
412
410
|
'videoFormat.typeOf': {
|
|
@@ -415,7 +413,7 @@ class MongoRepository {
|
|
|
415
413
|
}
|
|
416
414
|
});
|
|
417
415
|
}
|
|
418
|
-
const videoFormatTypeOfIn = (
|
|
416
|
+
const videoFormatTypeOfIn = (_35 = (_34 = params.videoFormat) === null || _34 === void 0 ? void 0 : _34.typeOf) === null || _35 === void 0 ? void 0 : _35.$in;
|
|
419
417
|
if (Array.isArray(videoFormatTypeOfIn)) {
|
|
420
418
|
andConditions.push({
|
|
421
419
|
'videoFormat.typeOf': {
|
|
@@ -424,7 +422,7 @@ class MongoRepository {
|
|
|
424
422
|
}
|
|
425
423
|
});
|
|
426
424
|
}
|
|
427
|
-
const soundFormatTypeOfEq = (
|
|
425
|
+
const soundFormatTypeOfEq = (_37 = (_36 = params.soundFormat) === null || _36 === void 0 ? void 0 : _36.typeOf) === null || _37 === void 0 ? void 0 : _37.$eq;
|
|
428
426
|
if (typeof soundFormatTypeOfEq === 'string') {
|
|
429
427
|
andConditions.push({
|
|
430
428
|
'soundFormat.typeOf': {
|
|
@@ -433,7 +431,7 @@ class MongoRepository {
|
|
|
433
431
|
}
|
|
434
432
|
});
|
|
435
433
|
}
|
|
436
|
-
const soundFormatTypeOfIn = (
|
|
434
|
+
const soundFormatTypeOfIn = (_39 = (_38 = params.soundFormat) === null || _38 === void 0 ? void 0 : _38.typeOf) === null || _39 === void 0 ? void 0 : _39.$in;
|
|
437
435
|
if (Array.isArray(soundFormatTypeOfIn)) {
|
|
438
436
|
andConditions.push({
|
|
439
437
|
'soundFormat.typeOf': {
|
|
@@ -700,7 +698,7 @@ class MongoRepository {
|
|
|
700
698
|
return __awaiter(this, void 0, void 0, function* () {
|
|
701
699
|
const conditions = MongoRepository.CREATE_MONGO_CONDITIONS(params);
|
|
702
700
|
return this.eventModel.countDocuments({ $and: conditions })
|
|
703
|
-
.setOptions({ maxTimeMS:
|
|
701
|
+
.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
704
702
|
.exec();
|
|
705
703
|
});
|
|
706
704
|
}
|
|
@@ -738,7 +736,7 @@ class MongoRepository {
|
|
|
738
736
|
// console.log(explainResult[0].queryPlanner?.winningPlan?.inputStage?.inputStage?.inputStage);
|
|
739
737
|
// console.log(explainResult);
|
|
740
738
|
// return [];
|
|
741
|
-
return query.setOptions({ maxTimeMS:
|
|
739
|
+
return query.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
742
740
|
.exec()
|
|
743
741
|
.then((docs) => docs.map((doc) => doc.toObject()));
|
|
744
742
|
});
|
|
@@ -747,7 +745,7 @@ class MongoRepository {
|
|
|
747
745
|
return __awaiter(this, void 0, void 0, function* () {
|
|
748
746
|
const conditions = MongoRepository.CREATE_MONGO_CONDITIONS(params);
|
|
749
747
|
const query = this.eventModel.distinct('_id', { $and: conditions });
|
|
750
|
-
return query.setOptions({ maxTimeMS:
|
|
748
|
+
return query.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
751
749
|
.exec();
|
|
752
750
|
});
|
|
753
751
|
}
|
|
@@ -831,6 +829,42 @@ class MongoRepository {
|
|
|
831
829
|
.exec();
|
|
832
830
|
});
|
|
833
831
|
}
|
|
832
|
+
/**
|
|
833
|
+
* 既存施設コンテンツの最大バージョンを集計する
|
|
834
|
+
*/
|
|
835
|
+
aggregateScreeningEventMaxVersion(params) {
|
|
836
|
+
var _a;
|
|
837
|
+
return __awaiter(this, void 0, void 0, function* () {
|
|
838
|
+
const aggregations = yield this.eventModel.aggregate([
|
|
839
|
+
{
|
|
840
|
+
$match: {
|
|
841
|
+
typeOf: { $eq: factory.eventType.ScreeningEventSeries },
|
|
842
|
+
'project.id': { $eq: params.project.id.$eq },
|
|
843
|
+
'workPerformed.identifier': { $exists: true, $eq: params.workPerformed.identifier.$eq },
|
|
844
|
+
'workPerformed.version': { $exists: true },
|
|
845
|
+
'location.branchCode': { $exists: true, $in: params.location.branchCode.$in }
|
|
846
|
+
}
|
|
847
|
+
},
|
|
848
|
+
{
|
|
849
|
+
$project: {
|
|
850
|
+
workPerformed: '$workPerformed',
|
|
851
|
+
version: { $toInt: '$workPerformed.version' }
|
|
852
|
+
}
|
|
853
|
+
},
|
|
854
|
+
{
|
|
855
|
+
$group: {
|
|
856
|
+
_id: '$typeOf',
|
|
857
|
+
maxVersion: { $max: '$version' }
|
|
858
|
+
}
|
|
859
|
+
}
|
|
860
|
+
])
|
|
861
|
+
.exec();
|
|
862
|
+
const maxVersion = (aggregations.length > 0)
|
|
863
|
+
? String((_a = aggregations.shift()) === null || _a === void 0 ? void 0 : _a.maxVersion)
|
|
864
|
+
: '0';
|
|
865
|
+
return { maxVersion };
|
|
866
|
+
});
|
|
867
|
+
}
|
|
834
868
|
aggregateEvent(params) {
|
|
835
869
|
return __awaiter(this, void 0, void 0, function* () {
|
|
836
870
|
const statuses = yield Promise.all([
|
|
@@ -12,6 +12,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.MongoRepository = void 0;
|
|
13
13
|
const factory = require("../factory");
|
|
14
14
|
const member_1 = require("./mongoose/schemas/member");
|
|
15
|
+
const settings_1 = require("../settings");
|
|
15
16
|
/**
|
|
16
17
|
* IAMメンバーリポジトリ
|
|
17
18
|
*/
|
|
@@ -102,7 +103,7 @@ class MongoRepository {
|
|
|
102
103
|
return __awaiter(this, void 0, void 0, function* () {
|
|
103
104
|
const conditions = MongoRepository.CREATE_MONGO_CONDITIONS(params);
|
|
104
105
|
return this.memberModel.countDocuments((conditions.length > 0) ? { $and: conditions } : {})
|
|
105
|
-
.setOptions({ maxTimeMS:
|
|
106
|
+
.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
106
107
|
.exec();
|
|
107
108
|
});
|
|
108
109
|
}
|
|
@@ -126,7 +127,7 @@ class MongoRepository {
|
|
|
126
127
|
}
|
|
127
128
|
// const explainResult = await (<any>query).explain();
|
|
128
129
|
// console.log(explainResult[0].executionStats.allPlansExecution.map((e: any) => e.executionStages.inputStage));
|
|
129
|
-
return query.setOptions({ maxTimeMS:
|
|
130
|
+
return query.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
130
131
|
.exec()
|
|
131
132
|
.then((docs) => docs.map((doc) => doc.toObject()));
|
|
132
133
|
});
|
|
@@ -227,7 +228,7 @@ class MongoRepository {
|
|
|
227
228
|
query.limit(params.limit)
|
|
228
229
|
.skip(params.limit * (page - 1));
|
|
229
230
|
}
|
|
230
|
-
const projectMembers = yield query.setOptions({ maxTimeMS:
|
|
231
|
+
const projectMembers = yield query.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
231
232
|
.exec()
|
|
232
233
|
.then((docs) => docs.map((doc) => doc.toObject()));
|
|
233
234
|
return projectMembers.map((m) => m.project.id);
|
|
@@ -31,9 +31,7 @@ export declare class MongoRepository {
|
|
|
31
31
|
private readonly merchantReturnPolicyModel;
|
|
32
32
|
constructor(connection: Connection);
|
|
33
33
|
static CREATE_MONGO_CONDITIONS(params: factory.unitPriceOffer.IOfferMerchantReturnPolicySearchConditions): any[];
|
|
34
|
-
save(params: factory.unitPriceOffer.IOfferMerchantReturnPolicy): Promise<
|
|
35
|
-
_id: unknown;
|
|
36
|
-
}>>;
|
|
34
|
+
save(params: factory.unitPriceOffer.IOfferMerchantReturnPolicy): Promise<any>;
|
|
37
35
|
findById(params: {
|
|
38
36
|
id: string;
|
|
39
37
|
}): Promise<factory.unitPriceOffer.IOfferMerchantReturnPolicy>;
|
|
@@ -23,6 +23,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
23
23
|
exports.MongoRepository = void 0;
|
|
24
24
|
const merchantReturnPolicy_1 = require("./mongoose/schemas/merchantReturnPolicy");
|
|
25
25
|
const factory = require("../factory");
|
|
26
|
+
const settings_1 = require("../settings");
|
|
26
27
|
/**
|
|
27
28
|
* 返品ポリシーリポジトリ
|
|
28
29
|
*/
|
|
@@ -144,7 +145,7 @@ class MongoRepository {
|
|
|
144
145
|
if (((_a = params.sort) === null || _a === void 0 ? void 0 : _a.identifier) !== undefined) {
|
|
145
146
|
query.sort({ identifier: params.sort.identifier });
|
|
146
147
|
}
|
|
147
|
-
return query.setOptions({ maxTimeMS:
|
|
148
|
+
return query.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
148
149
|
.exec()
|
|
149
150
|
.then((docs) => docs.map((doc) => doc.toObject()));
|
|
150
151
|
});
|
|
@@ -27,7 +27,7 @@ declare const modelName = "Account";
|
|
|
27
27
|
/**
|
|
28
28
|
* 口座スキーマ
|
|
29
29
|
*/
|
|
30
|
-
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {},
|
|
30
|
+
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
31
31
|
collection: string;
|
|
32
32
|
id: true;
|
|
33
33
|
read: string;
|
|
@@ -51,5 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
51
51
|
minimize: false;
|
|
52
52
|
versionKey: false;
|
|
53
53
|
};
|
|
54
|
-
}
|
|
54
|
+
}, {}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{}>> & Omit<import("mongoose").FlatRecord<{}> & Required<{
|
|
55
|
+
_id: unknown;
|
|
56
|
+
}>, never>>;
|
|
55
57
|
export { modelName, schema };
|
|
@@ -27,7 +27,7 @@ declare const modelName = "AccountTitle";
|
|
|
27
27
|
/**
|
|
28
28
|
* 勘定科目スキーマ
|
|
29
29
|
*/
|
|
30
|
-
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {},
|
|
30
|
+
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
31
31
|
collection: string;
|
|
32
32
|
id: true;
|
|
33
33
|
read: string;
|
|
@@ -49,7 +49,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
49
49
|
minimize: false;
|
|
50
50
|
versionKey: false;
|
|
51
51
|
};
|
|
52
|
-
}
|
|
52
|
+
}, {
|
|
53
53
|
typeOf: string;
|
|
54
54
|
name?: string | undefined;
|
|
55
55
|
project?: any;
|
|
@@ -61,5 +61,31 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
61
61
|
inDefinedTermSet?: any;
|
|
62
62
|
hasDefinedTerm?: any;
|
|
63
63
|
additionalProperty?: any;
|
|
64
|
-
}
|
|
64
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
65
|
+
typeOf: string;
|
|
66
|
+
name?: string | undefined;
|
|
67
|
+
project?: any;
|
|
68
|
+
codeValue?: string | undefined;
|
|
69
|
+
alternateName?: string | undefined;
|
|
70
|
+
description?: string | undefined;
|
|
71
|
+
inCodeSet?: any;
|
|
72
|
+
hasCategoryCode?: any;
|
|
73
|
+
inDefinedTermSet?: any;
|
|
74
|
+
hasDefinedTerm?: any;
|
|
75
|
+
additionalProperty?: any;
|
|
76
|
+
}>> & Omit<import("mongoose").FlatRecord<{
|
|
77
|
+
typeOf: string;
|
|
78
|
+
name?: string | undefined;
|
|
79
|
+
project?: any;
|
|
80
|
+
codeValue?: string | undefined;
|
|
81
|
+
alternateName?: string | undefined;
|
|
82
|
+
description?: string | undefined;
|
|
83
|
+
inCodeSet?: any;
|
|
84
|
+
hasCategoryCode?: any;
|
|
85
|
+
inDefinedTermSet?: any;
|
|
86
|
+
hasDefinedTerm?: any;
|
|
87
|
+
additionalProperty?: any;
|
|
88
|
+
}> & {
|
|
89
|
+
_id: import("mongoose").Types.ObjectId;
|
|
90
|
+
}, never>>;
|
|
65
91
|
export { modelName, schema };
|
|
@@ -27,7 +27,7 @@ declare const modelName = "AccountTransaction";
|
|
|
27
27
|
/**
|
|
28
28
|
* 口座取引スキーマ
|
|
29
29
|
*/
|
|
30
|
-
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {},
|
|
30
|
+
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
31
31
|
collection: string;
|
|
32
32
|
id: true;
|
|
33
33
|
read: string;
|
|
@@ -51,7 +51,7 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
51
51
|
minimize: false;
|
|
52
52
|
versionKey: false;
|
|
53
53
|
};
|
|
54
|
-
}
|
|
54
|
+
}, {
|
|
55
55
|
typeOf: string;
|
|
56
56
|
status: string;
|
|
57
57
|
transactionNumber: string;
|
|
@@ -64,5 +64,33 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
64
64
|
startDate?: Date | undefined;
|
|
65
65
|
endDate?: Date | undefined;
|
|
66
66
|
potentialActions?: any;
|
|
67
|
-
}
|
|
67
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
68
|
+
typeOf: string;
|
|
69
|
+
status: string;
|
|
70
|
+
transactionNumber: string;
|
|
71
|
+
object?: any;
|
|
72
|
+
expires?: Date | undefined;
|
|
73
|
+
project?: any;
|
|
74
|
+
identifier?: string | undefined;
|
|
75
|
+
agent?: any;
|
|
76
|
+
recipient?: any;
|
|
77
|
+
startDate?: Date | undefined;
|
|
78
|
+
endDate?: Date | undefined;
|
|
79
|
+
potentialActions?: any;
|
|
80
|
+
}>> & Omit<import("mongoose").FlatRecord<{
|
|
81
|
+
typeOf: string;
|
|
82
|
+
status: string;
|
|
83
|
+
transactionNumber: string;
|
|
84
|
+
object?: any;
|
|
85
|
+
expires?: Date | undefined;
|
|
86
|
+
project?: any;
|
|
87
|
+
identifier?: string | undefined;
|
|
88
|
+
agent?: any;
|
|
89
|
+
recipient?: any;
|
|
90
|
+
startDate?: Date | undefined;
|
|
91
|
+
endDate?: Date | undefined;
|
|
92
|
+
potentialActions?: any;
|
|
93
|
+
}> & {
|
|
94
|
+
_id: import("mongoose").Types.ObjectId;
|
|
95
|
+
}, never>>;
|
|
68
96
|
export { modelName, schema };
|
|
@@ -27,7 +27,7 @@ declare const modelName = "AccountingReport";
|
|
|
27
27
|
/**
|
|
28
28
|
* 経理レポートスキーマ
|
|
29
29
|
*/
|
|
30
|
-
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {},
|
|
30
|
+
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
31
31
|
collection: string;
|
|
32
32
|
id: true;
|
|
33
33
|
read: string;
|
|
@@ -51,9 +51,19 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
51
51
|
minimize: false;
|
|
52
52
|
versionKey: false;
|
|
53
53
|
};
|
|
54
|
-
}
|
|
54
|
+
}, {
|
|
55
55
|
hasPart: (typeof Schema.Types.Mixed)[];
|
|
56
56
|
mainEntity: typeof Schema.Types.Mixed;
|
|
57
57
|
project: typeof Schema.Types.Mixed;
|
|
58
|
-
}
|
|
58
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
59
|
+
hasPart: (typeof Schema.Types.Mixed)[];
|
|
60
|
+
mainEntity: typeof Schema.Types.Mixed;
|
|
61
|
+
project: typeof Schema.Types.Mixed;
|
|
62
|
+
}>> & Omit<import("mongoose").FlatRecord<{
|
|
63
|
+
hasPart: (typeof Schema.Types.Mixed)[];
|
|
64
|
+
mainEntity: typeof Schema.Types.Mixed;
|
|
65
|
+
project: typeof Schema.Types.Mixed;
|
|
66
|
+
}> & {
|
|
67
|
+
_id: import("mongoose").Types.ObjectId;
|
|
68
|
+
}, never>>;
|
|
59
69
|
export { modelName, schema };
|
|
@@ -27,7 +27,7 @@ declare const modelName = "Action";
|
|
|
27
27
|
/**
|
|
28
28
|
* アクションスキーマ
|
|
29
29
|
*/
|
|
30
|
-
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any>, {}, {}, {}, {},
|
|
30
|
+
declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, any, any>, {}, {}, {}, {}, {
|
|
31
31
|
collection: string;
|
|
32
32
|
id: true;
|
|
33
33
|
read: string;
|
|
@@ -51,10 +51,30 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
51
51
|
minimize: false;
|
|
52
52
|
versionKey: false;
|
|
53
53
|
};
|
|
54
|
-
}
|
|
54
|
+
}, {
|
|
55
55
|
object?: any;
|
|
56
|
+
error?: any;
|
|
56
57
|
typeOf?: string | undefined;
|
|
58
|
+
result?: any;
|
|
59
|
+
project?: any;
|
|
60
|
+
description?: string | undefined;
|
|
61
|
+
agent?: any;
|
|
62
|
+
recipient?: any;
|
|
63
|
+
startDate?: Date | undefined;
|
|
64
|
+
endDate?: Date | undefined;
|
|
65
|
+
potentialActions?: any;
|
|
66
|
+
fromLocation?: any;
|
|
67
|
+
toLocation?: any;
|
|
68
|
+
actionStatus?: string | undefined;
|
|
69
|
+
purpose?: any;
|
|
70
|
+
amount?: any;
|
|
71
|
+
instrument?: any;
|
|
72
|
+
location?: any;
|
|
73
|
+
}, import("mongoose").Document<unknown, {}, import("mongoose").FlatRecord<{
|
|
74
|
+
object?: any;
|
|
57
75
|
error?: any;
|
|
76
|
+
typeOf?: string | undefined;
|
|
77
|
+
result?: any;
|
|
58
78
|
project?: any;
|
|
59
79
|
description?: string | undefined;
|
|
60
80
|
agent?: any;
|
|
@@ -65,10 +85,30 @@ declare const schema: Schema<any, import("mongoose").Model<any, any, any, any, a
|
|
|
65
85
|
fromLocation?: any;
|
|
66
86
|
toLocation?: any;
|
|
67
87
|
actionStatus?: string | undefined;
|
|
88
|
+
purpose?: any;
|
|
89
|
+
amount?: any;
|
|
90
|
+
instrument?: any;
|
|
91
|
+
location?: any;
|
|
92
|
+
}>> & Omit<import("mongoose").FlatRecord<{
|
|
93
|
+
object?: any;
|
|
94
|
+
error?: any;
|
|
95
|
+
typeOf?: string | undefined;
|
|
68
96
|
result?: any;
|
|
97
|
+
project?: any;
|
|
98
|
+
description?: string | undefined;
|
|
99
|
+
agent?: any;
|
|
100
|
+
recipient?: any;
|
|
101
|
+
startDate?: Date | undefined;
|
|
102
|
+
endDate?: Date | undefined;
|
|
103
|
+
potentialActions?: any;
|
|
104
|
+
fromLocation?: any;
|
|
105
|
+
toLocation?: any;
|
|
106
|
+
actionStatus?: string | undefined;
|
|
69
107
|
purpose?: any;
|
|
70
108
|
amount?: any;
|
|
71
109
|
instrument?: any;
|
|
72
110
|
location?: any;
|
|
73
|
-
}
|
|
111
|
+
}> & {
|
|
112
|
+
_id: import("mongoose").Types.ObjectId;
|
|
113
|
+
}, never>>;
|
|
74
114
|
export { modelName, schema };
|
|
@@ -31,7 +31,7 @@ const schema = new mongoose_1.Schema({
|
|
|
31
31
|
}, {
|
|
32
32
|
collection: 'actions',
|
|
33
33
|
id: true,
|
|
34
|
-
read: '
|
|
34
|
+
read: 'primary',
|
|
35
35
|
writeConcern: writeConcern_1.writeConcern,
|
|
36
36
|
// true化(2022-11-12~)
|
|
37
37
|
strict: true,
|
|
@@ -117,6 +117,18 @@ schema.index({ 'object.id': 1, startDate: -1 }, {
|
|
|
117
117
|
'object.id': { $exists: true }
|
|
118
118
|
}
|
|
119
119
|
});
|
|
120
|
+
schema.index({ 'object.movieTickets.identifier': 1, startDate: -1 }, {
|
|
121
|
+
name: 'searchByObjectMovieTicketsIdentifier',
|
|
122
|
+
partialFilterExpression: {
|
|
123
|
+
'object.movieTickets.identifier': { $exists: true }
|
|
124
|
+
}
|
|
125
|
+
});
|
|
126
|
+
schema.index({ 'object.movieTickets.serviceOutput.reservationFor.id': 1, startDate: -1 }, {
|
|
127
|
+
name: 'searchByObjectMovieTicketsServiceOutputReservationForId',
|
|
128
|
+
partialFilterExpression: {
|
|
129
|
+
'object.movieTickets.serviceOutput.reservationFor.id': { $exists: true }
|
|
130
|
+
}
|
|
131
|
+
});
|
|
120
132
|
schema.index({ 'object.paymentMethod.accountId': 1, startDate: -1 }, {
|
|
121
133
|
name: 'searchByObjectPaymentMethodAccountId',
|
|
122
134
|
partialFilterExpression: {
|
|
@@ -177,6 +189,12 @@ schema.index({ 'object.reservationFor.id': 1, startDate: -1 }, {
|
|
|
177
189
|
'object.reservationFor.id': { $exists: true }
|
|
178
190
|
}
|
|
179
191
|
});
|
|
192
|
+
schema.index({ 'object.reservationNumber': 1, startDate: -1 }, {
|
|
193
|
+
name: 'searchByObjectReservationNumber',
|
|
194
|
+
partialFilterExpression: {
|
|
195
|
+
'object.reservationNumber': { $exists: true }
|
|
196
|
+
}
|
|
197
|
+
});
|
|
180
198
|
schema.index({ 'object.reservedTicket.ticketType.id': 1, startDate: -1 }, {
|
|
181
199
|
name: 'searchByObjectReservedTicketTicketTypeId',
|
|
182
200
|
partialFilterExpression: {
|