@chevre/domain 23.2.0-alpha.62 → 23.2.0-alpha.64
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/acceptedPaymentMethodOffer/adminAcceptedPaymentMethodOffers.ts +2 -2
- package/example/src/chevre/actions/checkAcceptPayActions.ts +2 -2
- package/example/src/chevre/actions/checkAuthorizePaymentActions.ts +2 -2
- package/example/src/chevre/activateOptionalAggregationSettings.ts +1 -1
- package/example/src/chevre/adminIdentities.ts +1 -1
- package/example/src/chevre/aggreateOwnershipInfosByOrder.ts +1 -1
- package/example/src/chevre/aggregateEventPublicFields.ts +2 -2
- package/example/src/chevre/aggregateOfferCatalogItemList.ts +1 -1
- package/example/src/chevre/aggregateScreeningEventMaxVersion.ts +1 -1
- package/example/src/chevre/aggregation/aggregateOffersOnEvent.ts +1 -1
- package/example/src/chevre/aggregation/aggregateOrderOfCustomer.ts +2 -2
- package/example/src/chevre/aggregation/aggregateOrderOfCustomerGlobally.ts +2 -2
- package/example/src/chevre/aggregation/aggregateOrderOfSeatByRoyalCustomers.ts +2 -2
- package/example/src/chevre/aggregation/aggregateOrderOnSystem.ts +2 -2
- package/example/src/chevre/aggregation/aggregateReservationByProject.ts +2 -2
- package/example/src/chevre/aggregation/aggregateSystem.ts +1 -1
- package/example/src/chevre/aggregation/aggregateTasks.ts +2 -2
- package/example/src/chevre/aggregation/createAggregateEventTasks.ts +2 -2
- package/example/src/chevre/aggregation/searchAggregateReservations.ts +1 -1
- package/example/src/chevre/assetTransaction/checkPayTransactionsTicketToken.ts +2 -2
- package/example/src/chevre/assetTransaction/processReserve.ts +2 -2
- package/example/src/chevre/attendIfNotAttended.ts +1 -1
- package/example/src/chevre/authorizeEventServiceOffer.ts +1 -1
- package/example/src/chevre/categoryCode/checkUniqueness.ts +1 -1
- package/example/src/chevre/changeOrderStatus.ts +1 -1
- package/example/src/chevre/checkCustomerAttributesLength.ts +2 -2
- package/example/src/chevre/checkEventDuration.ts +2 -2
- package/example/src/chevre/checkPaymentServiceUniqueness.ts +1 -1
- package/example/src/chevre/checkProjectMembers.ts +1 -1
- package/example/src/chevre/checkReserveTransactionSizes.ts +2 -2
- package/example/src/chevre/cleanActions.ts +2 -2
- package/example/src/chevre/cleanReservations.ts +2 -2
- package/example/src/chevre/cleanTransactions.ts +2 -2
- package/example/src/chevre/confirmationNumber/testRandomness.ts +1 -1
- package/example/src/chevre/countPotentiallyExportTasks.ts +2 -2
- package/example/src/chevre/countTransactions.ts +1 -1
- package/example/src/chevre/createProject.ts +1 -1
- package/example/src/chevre/createTaskIfNotExistByAlternateName.ts +1 -1
- package/example/src/chevre/db/stats.ts +1 -1
- package/example/src/chevre/deleteDiscontinuedPeople.ts +2 -2
- package/example/src/chevre/deleteDiscontinuedPeopleByFetch.ts +1 -1
- package/example/src/chevre/deleteOwnershipInfosByOwnedThrough.ts +2 -2
- package/example/src/chevre/deleteStartDatePassedCertainPeriod.ts +2 -2
- package/example/src/chevre/deleteTasksByName.ts +2 -2
- package/example/src/chevre/emailMessage/createEmailMessageText.ts +2 -2
- package/example/src/chevre/event/checkEventAdditionalPropertyUniqueness.ts +2 -2
- package/example/src/chevre/event/importEventSeriesFromCOAByTitle.ts +1 -1
- package/example/src/chevre/event/importEventsFromCOAByTitle.ts +2 -2
- package/example/src/chevre/event/migrateEventAdditionalProperty2identifier.ts +2 -2
- package/example/src/chevre/event/migrateEventMaximumPhysicalAttendeeCapacity.ts +1 -1
- package/example/src/chevre/event/unsetSuperEventVideoFormat.ts +1 -1
- package/example/src/chevre/event/updateSellerMakesOffersByIdentifier.ts +2 -2
- package/example/src/chevre/eventSeries/unsetVideoFormat.ts +1 -1
- package/example/src/chevre/eventSeries/upsertScreeningEventSeriesByVersion.ts +2 -2
- package/example/src/chevre/findAnyEventById.ts +1 -1
- package/example/src/chevre/findAuthorizePaymentAction.ts +1 -1
- package/example/src/chevre/findAvailableChannelMovieTicket.ts +1 -1
- package/example/src/chevre/findCheckAction.ts +1 -1
- package/example/src/chevre/findCustomerByOrderNumber.ts +1 -1
- package/example/src/chevre/findItemListElementByCatalogId.ts +1 -1
- package/example/src/chevre/findItemListElementById.ts +1 -1
- package/example/src/chevre/findJWTSetting.ts +1 -1
- package/example/src/chevre/findOneAvailableHours.ts +2 -2
- package/example/src/chevre/findReservationByCode.ts +1 -1
- package/example/src/chevre/findSchedule.ts +1 -1
- package/example/src/chevre/giveUpStartDatePassedCertainPeriod.ts +2 -2
- package/example/src/chevre/identity/getCommonClients.ts +1 -1
- package/example/src/chevre/identity/migrateClients2oauth.ts +1 -1
- package/example/src/chevre/importCategoryCodesFromCOA.ts +1 -1
- package/example/src/chevre/importEventsFromCOA.ts +2 -2
- package/example/src/chevre/investigateEvents.ts +1 -1
- package/example/src/chevre/investigateTransaction.ts +2 -2
- package/example/src/chevre/isPaymentAcceptedBySeller.ts +1 -1
- package/example/src/chevre/issuer/adminMemberProgramTiers.ts +1 -1
- package/example/src/chevre/issuer/migrateIssuerUrls.ts +1 -1
- package/example/src/chevre/issuer/renameIssuerIdentifier.ts +1 -1
- package/example/src/chevre/maintenance/checkTransactionStatuses.ts +1 -1
- package/example/src/chevre/makeExpiredManyTasks.ts +1 -1
- package/example/src/chevre/makeTransactionExpired.ts +2 -2
- package/example/src/chevre/member/migrateMemberIdentifier.ts +2 -2
- package/example/src/chevre/migrateAuthorizeEventServiceOfferChevre.ts +1 -1
- package/example/src/chevre/migrateCancelReservationObject.ts +1 -1
- package/example/src/chevre/migrateCustomerAdditionalProperties.ts +2 -2
- package/example/src/chevre/migrateEventSellerMakesOfferAvailableAt.ts +2 -2
- package/example/src/chevre/migrateIdentities.ts +1 -1
- package/example/src/chevre/migrateProjectSettings.ts +1 -1
- package/example/src/chevre/migrateRoomAdditionalProperties.ts +2 -2
- package/example/src/chevre/migrateRoomSectionAdditionalProperties.ts +2 -2
- package/example/src/chevre/note/findNotes.ts +1 -1
- package/example/src/chevre/note/upsertNotesByIdentifier.ts +1 -1
- package/example/src/chevre/notifyAbortedTasksByEmail.ts +2 -2
- package/example/src/chevre/notifyByEmail.ts +1 -1
- package/example/src/chevre/offerCatalog/updateManyOfferCatalogsByIds.ts +1 -1
- package/example/src/chevre/offerCatalog/upsertOfferCatalogItemsByIdentifier.ts +1 -1
- package/example/src/chevre/offerCatalog/upsertOfferCatalogsByIdentifier.ts +1 -1
- package/example/src/chevre/offers/checkIncludedInCatalogCount.ts +1 -1
- package/example/src/chevre/offers/projectItemListElement.ts +1 -1
- package/example/src/chevre/offers/searchAvaialbleAppliesToMovieTicketByOfferCatalogId.ts +1 -1
- package/example/src/chevre/offers/searchByOfferCatalogIdWithSortIndex.ts +1 -1
- package/example/src/chevre/offers/searchOfferCatalogItemAvailability.ts +1 -1
- package/example/src/chevre/offers/upsertOffersByIdentifier.ts +1 -1
- package/example/src/chevre/optimizeActions.ts +2 -2
- package/example/src/chevre/orderNumber/testRandomness.ts +1 -1
- package/example/src/chevre/orders/searchOrders.ts +1 -1
- package/example/src/chevre/orders/searchWithUnwoundAcceptedOffers.ts +1 -1
- package/example/src/chevre/pendingReservation/findEventSeatOffersBySection.ts +1 -1
- package/example/src/chevre/person/checkUserPoolClients.ts +1 -1
- package/example/src/chevre/person/cleanUpCognitoUsers.ts +2 -2
- package/example/src/chevre/person/cleanUpCognitoUsersByFetch.ts +2 -2
- package/example/src/chevre/person/cleanUpCreditCard.ts +1 -1
- package/example/src/chevre/place/adminEntranceGates.ts +1 -1
- package/example/src/chevre/place/adminHasPOS.ts +1 -1
- package/example/src/chevre/place/aggregateSeatingTypes.ts +1 -1
- package/example/src/chevre/place/checkEntranceGatesCount.ts +1 -1
- package/example/src/chevre/place/checkSectionCount.ts +1 -1
- package/example/src/chevre/place/findRooms.ts +1 -1
- package/example/src/chevre/place/findSections.ts +1 -1
- package/example/src/chevre/place/findSectionsByRoom.ts +1 -1
- package/example/src/chevre/place/migrateSectionIdentifier.ts +2 -2
- package/example/src/chevre/place/seatsJson2csv.ts +1 -1
- package/example/src/chevre/place/upsertMovieTheatersByBranchCode.ts +1 -1
- package/example/src/chevre/place/upsertRoomsByBranchCode.ts +1 -1
- package/example/src/chevre/place/upsertSeatSectionsByBranchCode.ts +1 -1
- package/example/src/chevre/processAction.ts +1 -1
- package/example/src/chevre/processOrder.ts +2 -2
- package/example/src/chevre/product/findHasOfferCatalog.ts +1 -1
- package/example/src/chevre/productOffer/publishMemberTierToken.ts +1 -1
- package/example/src/chevre/project/unsetProjectSettings.ts +1 -1
- package/example/src/chevre/projectEventFieldsById.ts +1 -1
- package/example/src/chevre/projectFields.ts +1 -1
- package/example/src/chevre/projectFieldsById.ts +1 -1
- package/example/src/chevre/projectOwnershipInfoFieldsById.ts +1 -1
- package/example/src/chevre/pushIncludedInDataCatalog.ts +1 -1
- package/example/src/chevre/reExportAction.ts +2 -2
- package/example/src/chevre/reIndex.ts +1 -1
- package/example/src/chevre/recreateRefundTasks.ts +2 -2
- package/example/src/chevre/roles/addAdminAcceptedPaymentMethodReadPermissionIfNotExists.ts +1 -1
- package/example/src/chevre/roles/addAdminAcceptedPaymentMethodWritePermissionIfNotExists.ts +1 -1
- package/example/src/chevre/roles/addAdminEventSeriesReadPermissionIfNotExists.ts +1 -1
- package/example/src/chevre/roles/addAdminMovieReadPermissionIfNotExists.ts +1 -1
- package/example/src/chevre/roles/addAdminNotePermissionIfNotExists.ts +1 -1
- package/example/src/chevre/roles/addAdminPaymentServiceReadPermissionIfNotExists.ts +1 -1
- package/example/src/chevre/roles/addAdminProductHasOfferCatalogReadPermissionIfNotExists.ts +1 -1
- package/example/src/chevre/roles/addAdminRoomReadPermissionIfNotExists.ts +1 -1
- package/example/src/chevre/roles/addAdminRoomWritePermissionIfNotExists.ts +1 -1
- package/example/src/chevre/roles/addAdminSellerEventOfferIfNotExists.ts +1 -1
- package/example/src/chevre/roles/addProjectCreatorRole.ts +1 -1
- package/example/src/chevre/roles/assignGlobalRoles.ts +1 -1
- package/example/src/chevre/roles/findPermissions.ts +2 -2
- package/example/src/chevre/roles/findRoleNames.ts +2 -2
- package/example/src/chevre/roles/removeConsolePermissionIfExists.ts +1 -1
- package/example/src/chevre/roles/removePermissionFromAPIRoles.ts +1 -1
- package/example/src/chevre/roles/removePermissionIfExists.ts +1 -1
- package/example/src/chevre/saveOfferCatalogItem.ts +1 -1
- package/example/src/chevre/saveWebSite.ts +1 -1
- package/example/src/chevre/searchAcceptedOfferIds.ts +1 -1
- package/example/src/chevre/searchActionsByPurpose.ts +1 -1
- package/example/src/chevre/searchAggregateOffers.ts +1 -1
- package/example/src/chevre/searchAggregations.ts +1 -1
- package/example/src/chevre/searchAuthorizations.ts +1 -1
- package/example/src/chevre/searchCheckMovieTicketResultYkknInfo.ts +1 -1
- package/example/src/chevre/searchEventHasOfferCatalog.ts +1 -1
- package/example/src/chevre/searchIdsByReservationNumber.ts +1 -1
- package/example/src/chevre/searchOfferCatalogItemListElement.ts +1 -1
- package/example/src/chevre/searchOffers.ts +1 -1
- package/example/src/chevre/searchProducts.ts +1 -1
- package/example/src/chevre/searchProjects.ts +1 -1
- package/example/src/chevre/searchReservationsByOrder.ts +1 -1
- package/example/src/chevre/searchSellersByAggregate.ts +1 -1
- package/example/src/chevre/searchSlicedAcceptedOffersByOrderNumber.ts +1 -1
- package/example/src/chevre/seller/adminMakesOffer.ts +1 -1
- package/example/src/chevre/sendEmailMessage.ts +1 -1
- package/example/src/chevre/settings/addOrderNumberSetting.ts +2 -2
- package/example/src/chevre/settings/addTransactionNumberSetting.ts +2 -2
- package/example/src/chevre/stockHolder/findSeatsBySection.ts +1 -1
- package/example/src/chevre/stockHolder/getSize.ts +2 -2
- package/example/src/chevre/stockHolder/projectPendingReservation.ts +1 -1
- package/example/src/chevre/stockHolder/searchSeats.ts +1 -1
- package/example/src/chevre/task/countPotentiallyRunning.ts +1 -1
- package/example/src/chevre/task/countTasks.ts +1 -1
- package/example/src/chevre/task/deleteRunsAtPassedCertainPeriod.ts +2 -2
- package/example/src/chevre/task/deleteUnexpectedTasks.ts +1 -1
- package/example/src/chevre/task/emitRunning.ts +2 -2
- package/example/src/chevre/transaction/processPlaceOrder.ts +1 -1
- package/example/src/chevre/transaction/processReturnOrder.ts +1 -1
- package/example/src/chevre/transaction/startExportTasks.ts +1 -1
- package/example/src/chevre/transactionNumber/publishByTimestamp.ts +1 -1
- package/example/src/chevre/transactionNumber/testRandomness.ts +1 -1
- package/example/src/chevre/unsetUnnecessaryFields.ts +2 -2
- package/example/src/chevre/updateEventPartiallyById.ts +1 -1
- package/example/src/chevre/updateProjectAggregateReservation.ts +1 -1
- package/example/src/chevre/validateCheckMovieTicketActions.ts +2 -2
- package/example/src/duration.ts +1 -1
- package/example/src/moment.ts +1 -1
- package/example/src/mongoConnectionList.ts +1 -1
- package/example/src/objectId.ts +1 -1
- package/lib/chevre/credentials.js +26 -3
- package/lib/chevre/emailMessageBuilder.js +25 -2
- package/lib/chevre/errorHandler.js +26 -8
- package/lib/chevre/eventEmitter/assetTransaction.js +0 -1
- package/lib/chevre/eventEmitter/task.js +0 -1
- package/lib/chevre/eventEmitter/transaction.js +0 -1
- package/lib/chevre/eventEmitter.js +24 -1
- package/lib/chevre/factory/accountTransactionIdentifier.js +24 -1
- package/lib/chevre/factory/availableProductTypes.js +24 -1
- package/lib/chevre/factory/event.js +24 -1
- package/lib/chevre/factory/taskIdentifier.js +25 -2
- package/lib/chevre/factory/transactionNumber.js +29 -5
- package/lib/chevre/index.js +32 -9
- package/lib/chevre/repo/acceptedOffer.js +24 -2
- package/lib/chevre/repo/acceptedPaymentMethod.js +24 -2
- package/lib/chevre/repo/account.js +24 -18
- package/lib/chevre/repo/accountTitle.js +24 -1
- package/lib/chevre/repo/accountTransaction.js +29 -10
- package/lib/chevre/repo/accountingReport.js +24 -1
- package/lib/chevre/repo/action.js +29 -10
- package/lib/chevre/repo/additionalProperty.js +24 -3
- package/lib/chevre/repo/advanceBookingRequirement.js +24 -2
- package/lib/chevre/repo/aggregateOffer.js +32 -11
- package/lib/chevre/repo/aggregateOrder.js +24 -1
- package/lib/chevre/repo/aggregateReservation.js +24 -1
- package/lib/chevre/repo/aggregation.js +24 -1
- package/lib/chevre/repo/assetTransaction.js +29 -20
- package/lib/chevre/repo/authorization.js +30 -11
- package/lib/chevre/repo/categoryCode.js +24 -6
- package/lib/chevre/repo/comment.js +24 -2
- package/lib/chevre/repo/concurrentLock.js +24 -1
- package/lib/chevre/repo/confirmationNumber.js +8 -9
- package/lib/chevre/repo/creativeWork.js +24 -7
- package/lib/chevre/repo/credentials.js +0 -1
- package/lib/chevre/repo/customer.js +24 -2
- package/lib/chevre/repo/customerType.js +0 -1
- package/lib/chevre/repo/emailMessage.js +24 -2
- package/lib/chevre/repo/event.js +25 -23
- package/lib/chevre/repo/eventOffer.js +24 -1
- package/lib/chevre/repo/eventSellerMakesOffer.js +24 -1
- package/lib/chevre/repo/eventSeries.js +28 -19
- package/lib/chevre/repo/identity.js +24 -2
- package/lib/chevre/repo/identityProvider.js +24 -2
- package/lib/chevre/repo/issuer.js +24 -1
- package/lib/chevre/repo/member.js +24 -2
- package/lib/chevre/repo/memberProgram.js +24 -1
- package/lib/chevre/repo/merchantReturnPolicy.js +24 -3
- package/lib/chevre/repo/message.js +24 -1
- package/lib/chevre/repo/mongoose/onIndexCreated.js +0 -1
- package/lib/chevre/repo/mongoose/schemas/eventSeries.js +24 -1
- package/lib/chevre/repo/mongoose/schemas/member.js +24 -1
- package/lib/chevre/repo/mongoose/schemas/task.js +0 -1
- package/lib/chevre/repo/mongoose/schemas/transaction.js +24 -1
- package/lib/chevre/repo/movieTicketType.js +24 -7
- package/lib/chevre/repo/note.js +24 -2
- package/lib/chevre/repo/noteAboutOrder.js +24 -1
- package/lib/chevre/repo/offer/unitPriceInCatalog.js +24 -3
- package/lib/chevre/repo/offerCatalog.js +27 -5
- package/lib/chevre/repo/offerCatalogItem.js +24 -2
- package/lib/chevre/repo/offerItemCondition.js +24 -1
- package/lib/chevre/repo/order.js +24 -40
- package/lib/chevre/repo/orderInTransaction.js +24 -1
- package/lib/chevre/repo/orderNumber.js +31 -9
- package/lib/chevre/repo/ownershipInfo.js +25 -10
- package/lib/chevre/repo/passport.js +33 -8
- package/lib/chevre/repo/paymentMethod/creditCard.js +25 -4
- package/lib/chevre/repo/paymentService.js +24 -3
- package/lib/chevre/repo/paymentServiceChannel.js +24 -2
- package/lib/chevre/repo/paymentServiceProvider.js +24 -1
- package/lib/chevre/repo/pendingReservation.js +29 -6
- package/lib/chevre/repo/permit.js +24 -1
- package/lib/chevre/repo/person.js +24 -20
- package/lib/chevre/repo/place/busStop.js +24 -5
- package/lib/chevre/repo/place/entranceGate.js +24 -1
- package/lib/chevre/repo/place/hasPOS.js +24 -1
- package/lib/chevre/repo/place/movieTheater.js +24 -4
- package/lib/chevre/repo/place/screeningRoom.js +24 -3
- package/lib/chevre/repo/place/seat.js +24 -8
- package/lib/chevre/repo/place/section.js +24 -6
- package/lib/chevre/repo/potentialAction.js +24 -2
- package/lib/chevre/repo/priceSpecification.js +24 -7
- package/lib/chevre/repo/product.js +24 -3
- package/lib/chevre/repo/productHasOfferCatalog.js +24 -1
- package/lib/chevre/repo/productModel.js +24 -2
- package/lib/chevre/repo/productOffer.js +24 -1
- package/lib/chevre/repo/project.js +24 -1
- package/lib/chevre/repo/projectMakesOffer.js +24 -1
- package/lib/chevre/repo/rateLimit/offer.js +32 -7
- package/lib/chevre/repo/reservation.js +24 -55
- package/lib/chevre/repo/role.js +24 -2
- package/lib/chevre/repo/seller.js +24 -4
- package/lib/chevre/repo/sellerMakesOffer.js +24 -1
- package/lib/chevre/repo/sellerPaymentAccepted.js +24 -1
- package/lib/chevre/repo/sellerReturnPolicy.js +24 -2
- package/lib/chevre/repo/serviceOutput.js +24 -3
- package/lib/chevre/repo/serviceOutputIdentifier.js +30 -5
- package/lib/chevre/repo/setting/jwt.js +24 -1
- package/lib/chevre/repo/stockHolder.js +24 -3
- package/lib/chevre/repo/task.js +31 -12
- package/lib/chevre/repo/ticket.js +24 -1
- package/lib/chevre/repo/transaction.js +32 -30
- package/lib/chevre/repo/transactionNumber.js +31 -5
- package/lib/chevre/repo/transactionNumberCounter.js +24 -2
- package/lib/chevre/repo/transactionProcess.js +31 -5
- package/lib/chevre/repo/trip.js +24 -3
- package/lib/chevre/repo/webSite.js +25 -3
- package/lib/chevre/repository.js +114 -92
- package/lib/chevre/service/account.js +24 -4
- package/lib/chevre/service/accountTransaction/deposit.js +24 -1
- package/lib/chevre/service/accountTransaction/factory.js +24 -1
- package/lib/chevre/service/accountTransaction/transfer.js +24 -4
- package/lib/chevre/service/accountTransaction/withdraw.js +24 -1
- package/lib/chevre/service/accountTransaction.js +27 -7
- package/lib/chevre/service/aggregation/event/aggregateOffers.js +33 -7
- package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +33 -7
- package/lib/chevre/service/aggregation/event/findEventOffers.js +24 -1
- package/lib/chevre/service/aggregation/event/importFromCOA.js +8 -6
- package/lib/chevre/service/aggregation/project.js +39 -13
- package/lib/chevre/service/aggregation/system.js +75 -49
- package/lib/chevre/service/aggregation.js +26 -3
- package/lib/chevre/service/assetTransaction/cancelReservation/factory.js +24 -1
- package/lib/chevre/service/assetTransaction/cancelReservation/start.js +24 -2
- package/lib/chevre/service/assetTransaction/cancelReservation/startAndConfirm.js +24 -1
- package/lib/chevre/service/assetTransaction/cancelReservation.js +24 -3
- package/lib/chevre/service/assetTransaction/cancelReservationCOA/factory.js +24 -1
- package/lib/chevre/service/assetTransaction/fixInformAction.js +24 -1
- package/lib/chevre/service/assetTransaction/moneyTransfer/potentialActions.js +24 -1
- package/lib/chevre/service/assetTransaction/moneyTransfer.js +31 -7
- package/lib/chevre/service/assetTransaction/pay/cancel.js +24 -1
- package/lib/chevre/service/assetTransaction/pay/check.js +25 -2
- package/lib/chevre/service/assetTransaction/pay/confirm.js +24 -1
- package/lib/chevre/service/assetTransaction/pay/exportTasksById.js +29 -4
- package/lib/chevre/service/assetTransaction/pay/publishPaymentUrl.js +25 -4
- package/lib/chevre/service/assetTransaction/pay/searchGMOTrade.js +25 -2
- package/lib/chevre/service/assetTransaction/pay/start/account/validation.js +24 -1
- package/lib/chevre/service/assetTransaction/pay/start/factory.js +24 -2
- package/lib/chevre/service/assetTransaction/pay/start/preStart/validateAcceptedPaymentMethodIfNeeded.js +29 -5
- package/lib/chevre/service/assetTransaction/pay/start/preStart/validateSeller.js +24 -1
- package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeAccount.js +25 -2
- package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeCreditCard.js +24 -1
- package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeMovieTicket.js +24 -1
- package/lib/chevre/service/assetTransaction/pay/start.js +24 -1
- package/lib/chevre/service/assetTransaction/refund/factory.js +24 -1
- package/lib/chevre/service/assetTransaction/refund/potentialActions.js +24 -1
- package/lib/chevre/service/assetTransaction/refund.js +29 -5
- package/lib/chevre/service/assetTransaction/registerService/factory.js +31 -5
- package/lib/chevre/service/assetTransaction/registerService/potentialActions.js +31 -7
- package/lib/chevre/service/assetTransaction/registerService.js +26 -7
- package/lib/chevre/service/assetTransaction/reserve/cancel.js +24 -1
- package/lib/chevre/service/assetTransaction/reserve/confirm/factory.js +0 -1
- package/lib/chevre/service/assetTransaction/reserve/confirm.js +24 -1
- package/lib/chevre/service/assetTransaction/reserve/exportTasksById.js +24 -2
- package/lib/chevre/service/assetTransaction/reserve/start/createSubReservations.js +40 -18
- package/lib/chevre/service/assetTransaction/reserve/start/factory/createPointAward.js +24 -1
- package/lib/chevre/service/assetTransaction/reserve/start/factory/createReservation.js +34 -10
- package/lib/chevre/service/assetTransaction/reserve/start/factory/createStartParams.js +24 -1
- package/lib/chevre/service/assetTransaction/reserve/start/factory/price.js +24 -1
- package/lib/chevre/service/assetTransaction/reserve/start.js +41 -17
- package/lib/chevre/service/assetTransaction/reserve/validateStartRequest/fixExtendedEventOffer.js +29 -3
- package/lib/chevre/service/assetTransaction/reserve/validateStartRequest/validateIssuedOfferIfExists.js +32 -6
- package/lib/chevre/service/assetTransaction/reserve/validateStartRequest/validateMemberTierIfExists.js +30 -5
- package/lib/chevre/service/assetTransaction/reserve/validateStartRequest/verifyTicketTokenAsNeeded.js +24 -3
- package/lib/chevre/service/assetTransaction/reserve/validateStartRequest.js +31 -5
- package/lib/chevre/service/assetTransaction/reserveCOA/cancel.js +24 -1
- package/lib/chevre/service/assetTransaction/reserveCOA/factory.js +24 -1
- package/lib/chevre/service/assetTransaction.js +30 -7
- package/lib/chevre/service/delivery/factory.js +30 -4
- package/lib/chevre/service/delivery/product/factory.js +32 -6
- package/lib/chevre/service/delivery/reservation/factory.js +30 -4
- package/lib/chevre/service/delivery.js +33 -9
- package/lib/chevre/service/event/processUpdateMovieTheater.js +24 -4
- package/lib/chevre/service/event/saveScreeningEventSeries.js +40 -18
- package/lib/chevre/service/event/saveScreeningEvents.js +36 -16
- package/lib/chevre/service/event.js +38 -15
- package/lib/chevre/service/moneyTransfer.js +31 -5
- package/lib/chevre/service/notification/factory.js +31 -7
- package/lib/chevre/service/notification/notifyAbortedTasksByEmail.js +29 -3
- package/lib/chevre/service/notification/notifyByEmail.js +25 -4
- package/lib/chevre/service/notification/sendEmailMessage.js +25 -2
- package/lib/chevre/service/notification/triggerWebhook.js +25 -4
- package/lib/chevre/service/offer/any.js +29 -3
- package/lib/chevre/service/offer/event/authorize/defaultOffer.js +24 -1
- package/lib/chevre/service/offer/event/authorize/factory.js +34 -10
- package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre/requestedProgramMembershipUsed2permit.js +24 -2
- package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre.js +25 -2
- package/lib/chevre/service/offer/event/authorize.js +24 -4
- package/lib/chevre/service/offer/event/checkAvailability.js +29 -3
- package/lib/chevre/service/offer/event/importFromCOA/factory.js +25 -3
- package/lib/chevre/service/offer/event/importFromCOA.js +24 -1
- package/lib/chevre/service/offer/event/issueEventOfferTicket.js +29 -3
- package/lib/chevre/service/offer/event/searchEventTicketOffers.js +24 -4
- package/lib/chevre/service/offer/event/searchOfferAppliesToMovieTicket.js +24 -1
- package/lib/chevre/service/offer/event/searchOfferCatalogItemAvailability.js +24 -3
- package/lib/chevre/service/offer/event/searchOfferCatalogItems.js +24 -2
- package/lib/chevre/service/offer/event/searchOffersByIds.js +29 -6
- package/lib/chevre/service/offer/event/searchPriceSpecs4event.js +24 -1
- package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4chevre.js +24 -1
- package/lib/chevre/service/offer/event/voidTransaction.js +24 -3
- package/lib/chevre/service/offer/event/voidTransactionByActionId.js +24 -1
- package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/authorize.js +25 -4
- package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/factory.js +24 -1
- package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer.js +24 -1
- package/lib/chevre/service/offer/eventServiceByCOA/authorize/factory.js +32 -10
- package/lib/chevre/service/offer/eventServiceByCOA/authorize/validateAcceptedOffers.js +24 -4
- package/lib/chevre/service/offer/eventServiceByCOA/authorize.js +29 -4
- package/lib/chevre/service/offer/eventServiceByCOA/authorizeByAcceptAction.js +24 -1
- package/lib/chevre/service/offer/eventServiceByCOA/changeOffers.js +29 -5
- package/lib/chevre/service/offer/eventServiceByCOA/findAcceptAction.js +24 -1
- package/lib/chevre/service/offer/factory.js +24 -2
- package/lib/chevre/service/offer/moneyTransfer/authorize.js +30 -4
- package/lib/chevre/service/offer/moneyTransfer/returnMoneyTransfer.js +31 -5
- package/lib/chevre/service/offer/moneyTransfer/settleTransaction.js +25 -2
- package/lib/chevre/service/offer/moneyTransfer/voidTransaction.js +25 -2
- package/lib/chevre/service/offer/onEventChanged.js +31 -6
- package/lib/chevre/service/offer/product/factory.js +29 -6
- package/lib/chevre/service/offer/product/searchProductOffers.js +24 -2
- package/lib/chevre/service/offer/product.js +25 -4
- package/lib/chevre/service/offer.js +34 -9
- package/lib/chevre/service/order/confirmPayTransaction.js +25 -2
- package/lib/chevre/service/order/createAccountingReportIfNotExist.js +32 -6
- package/lib/chevre/service/order/deleteOrder.js +24 -2
- package/lib/chevre/service/order/findPlaceOrderTransaction.js +24 -1
- package/lib/chevre/service/order/onAssetTransactionStatusChanged.js +29 -5
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderCancelled/factory.js +24 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderCancelled.js +29 -3
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDelivered/factory.js +24 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDelivered.js +29 -3
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially/factory.js +24 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially.js +29 -3
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderInTransit.js +29 -3
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderPaymentDue.js +29 -3
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/createSendEmailMessageTaskIfNotExist.js +25 -2
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/factory.js +25 -3
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/processOrder.js +30 -4
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing.js +29 -3
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned/factory.js +24 -1
- package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned.js +29 -3
- package/lib/chevre/service/order/onOrderUpdated/factory.js +24 -1
- package/lib/chevre/service/order/onOrderUpdated.js +24 -1
- package/lib/chevre/service/order/payOrder.js +24 -1
- package/lib/chevre/service/order/placeOrder/createPlacingOrderFromExistingTransaction.js +24 -2
- package/lib/chevre/service/order/placeOrder/factory/orderedItem.js +24 -1
- package/lib/chevre/service/order/placeOrder/factory.js +29 -3
- package/lib/chevre/service/order/placeOrder/voidAcceptedOfferIfNecessary.js +5 -2
- package/lib/chevre/service/order/placeOrder.js +24 -2
- package/lib/chevre/service/order/placeOrderWithoutTransaction.js +24 -1
- package/lib/chevre/service/order/returnOrder.js +29 -4
- package/lib/chevre/service/order/sendOrder.js +29 -4
- package/lib/chevre/service/payment/any/authorize/fixTransactionNumber.js +24 -1
- package/lib/chevre/service/payment/any/authorize/handlePrePublishedPaymentMethodIdOnAuthorizing.js +29 -5
- package/lib/chevre/service/payment/any/factory.js +31 -6
- package/lib/chevre/service/payment/any/fixOrderAsNeeded.js +24 -1
- package/lib/chevre/service/payment/any/onPayActionCompleted.js +24 -1
- package/lib/chevre/service/payment/any/onPaymentStatusChanged/onPaid.js +32 -6
- package/lib/chevre/service/payment/any/onPaymentStatusChanged/onRefunded.js +30 -4
- package/lib/chevre/service/payment/any/onPaymentStatusChanged.js +24 -1
- package/lib/chevre/service/payment/any/onRefundActionCompletedOrFailed.js +24 -2
- package/lib/chevre/service/payment/any/person2username.js +24 -2
- package/lib/chevre/service/payment/any/publishPaymentUrl/fixTransactionNumberOnPublishPaymentUrl.js +24 -1
- package/lib/chevre/service/payment/any/verifyTicketTokenAsNeeded.js +24 -3
- package/lib/chevre/service/payment/any.js +26 -8
- package/lib/chevre/service/payment/creditCard/authorize/handleAuthorizeError.js +29 -3
- package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard.js +25 -3
- package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard3ds.js +24 -1
- package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard3dsResult2recipe.js +24 -1
- package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCardResult2recipe.js +24 -1
- package/lib/chevre/service/payment/creditCard/authorize.js +30 -4
- package/lib/chevre/service/payment/creditCard/factory.js +24 -1
- package/lib/chevre/service/payment/creditCard/getGMOInfoFromSeller.js +24 -1
- package/lib/chevre/service/payment/creditCard/payCreditCard.js +25 -2
- package/lib/chevre/service/payment/creditCard/refundCreditCard.js +25 -4
- package/lib/chevre/service/payment/creditCard/searchGMOTrade.js +25 -2
- package/lib/chevre/service/payment/creditCard/voidTransaction.js +25 -3
- package/lib/chevre/service/payment/faceToFace.js +24 -1
- package/lib/chevre/service/payment/factory/createPayObjectServiceOutput.js +24 -1
- package/lib/chevre/service/payment/factory.js +24 -2
- package/lib/chevre/service/payment/movieTicket/authorize.js +24 -3
- package/lib/chevre/service/payment/movieTicket/checkMovieTicket.js +24 -1
- package/lib/chevre/service/payment/movieTicket/factory.js +31 -5
- package/lib/chevre/service/payment/movieTicket/getCredentials.js +24 -1
- package/lib/chevre/service/payment/movieTicket/payMovieTicket.js +25 -2
- package/lib/chevre/service/payment/movieTicket/processPurchaseNumberAuth.js +30 -4
- package/lib/chevre/service/payment/movieTicket/refundMovieTicket.js +31 -6
- package/lib/chevre/service/payment/movieTicket/validation.js +29 -4
- package/lib/chevre/service/payment/movieTicket/voidTransaction.js +24 -1
- package/lib/chevre/service/payment/paymentCard.js +31 -6
- package/lib/chevre/service/permit.js +25 -2
- package/lib/chevre/service/product.js +30 -5
- package/lib/chevre/service/report/ownershipInfo.js +6 -3
- package/lib/chevre/service/report/telemetry.js +36 -25
- package/lib/chevre/service/report.js +25 -2
- package/lib/chevre/service/reserve/cancelReservation.js +31 -8
- package/lib/chevre/service/reserve/checkInReservation.js +29 -3
- package/lib/chevre/service/reserve/confirmReservation.js +29 -4
- package/lib/chevre/service/reserve/factory.js +24 -1
- package/lib/chevre/service/reserve/findByCode.js +24 -1
- package/lib/chevre/service/reserve/potentialActions/onPendingReservationCanceled.js +24 -1
- package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.js +24 -2
- package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.js +24 -2
- package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.js +24 -3
- package/lib/chevre/service/reserve/potentialActions/onReservationUsed.js +31 -6
- package/lib/chevre/service/reserve/potentialActions/onReservationsCreated.js +24 -1
- package/lib/chevre/service/reserve/searchByOrder.js +24 -2
- package/lib/chevre/service/reserve/useReservation.js +29 -5
- package/lib/chevre/service/reserve/verifyToken4reservation.js +24 -1
- package/lib/chevre/service/reserveCOA/cancelReservation.js +24 -2
- package/lib/chevre/service/reserveCOA/factory.js +24 -1
- package/lib/chevre/service/task/acceptCOAOffer.js +25 -3
- package/lib/chevre/service/task/aggregateOffers.js +24 -1
- package/lib/chevre/service/task/aggregateScreeningEvent.js +25 -2
- package/lib/chevre/service/task/authorizePayment.js +24 -1
- package/lib/chevre/service/task/cancelPendingReservation.js +25 -2
- package/lib/chevre/service/task/cancelReservation.js +24 -1
- package/lib/chevre/service/task/checkMovieTicket.js +24 -1
- package/lib/chevre/service/task/checkResource.js +24 -1
- package/lib/chevre/service/task/confirmRegisterServiceTransaction.js +29 -3
- package/lib/chevre/service/task/confirmReserveTransaction.js +25 -5
- package/lib/chevre/service/task/createAccountingReport.js +24 -1
- package/lib/chevre/service/task/deletePerson.js +32 -8
- package/lib/chevre/service/task/deleteTransaction.js +24 -1
- package/lib/chevre/service/task/givePointAward.js +25 -2
- package/lib/chevre/service/task/importEventCapacitiesFromCOA.js +26 -3
- package/lib/chevre/service/task/importEventsFromCOA.js +26 -3
- package/lib/chevre/service/task/importOffersFromCOA.js +26 -3
- package/lib/chevre/service/task/moneyTransfer.js +25 -2
- package/lib/chevre/service/task/onAuthorizationCreated.js +24 -2
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByAggregateOffer.js +24 -1
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByEventSeries.js +24 -1
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByMovieTheater.js +24 -1
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByOfferCatalog.js +24 -1
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByProduct.js +24 -1
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByRoom.js +24 -1
- package/lib/chevre/service/task/onResourceDeleted/deleteResourcesBySeller.js +24 -2
- package/lib/chevre/service/task/onResourceDeleted.js +24 -2
- package/lib/chevre/service/task/onResourceUpdated/onAggregateOfferUpdated.js +24 -1
- package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.js +24 -1
- package/lib/chevre/service/task/onResourceUpdated/onOfferCatalogUpdated.js +24 -1
- package/lib/chevre/service/task/onResourceUpdated/syncCategoryCode.js +24 -1
- package/lib/chevre/service/task/onResourceUpdated/syncOfferCatalog.js +24 -1
- package/lib/chevre/service/task/onResourceUpdated.js +24 -6
- package/lib/chevre/service/task/pay.js +24 -1
- package/lib/chevre/service/task/payment/invalidatePaymentUrlByTask.js +25 -2
- package/lib/chevre/service/task/payment/payByTask.js +33 -7
- package/lib/chevre/service/task/payment/refundByTask.js +28 -5
- package/lib/chevre/service/task/payment/voidPaymentByTask.js +28 -5
- package/lib/chevre/service/task/publishPaymentUrl.js +24 -1
- package/lib/chevre/service/task/refund.js +24 -1
- package/lib/chevre/service/task/returnMoneyTransfer.js +24 -1
- package/lib/chevre/service/task/returnPayTransaction.js +30 -5
- package/lib/chevre/service/task/returnPointAward.js +25 -2
- package/lib/chevre/service/task/returnReserveTransaction.js +32 -6
- package/lib/chevre/service/task/sendOrder.js +24 -1
- package/lib/chevre/service/task/syncResourcesFromCOA.js +33 -12
- package/lib/chevre/service/task/voidPayment.js +24 -1
- package/lib/chevre/service/task/voidReserveTransaction.js +25 -2
- package/lib/chevre/service/task.js +30 -8
- package/lib/chevre/service/taskHandler/onOperationFailed/informTaskIfNeeded.js +29 -3
- package/lib/chevre/service/taskHandler/onOperationFailed.js +24 -1
- package/lib/chevre/service/taskHandler.js +34 -9
- package/lib/chevre/service/transaction/deleteTransaction.js +24 -5
- package/lib/chevre/service/transaction/moneyTransfer/exportTasks/factory.js +30 -7
- package/lib/chevre/service/transaction/moneyTransfer/factory.js +24 -1
- package/lib/chevre/service/transaction/moneyTransfer/potentialActions.js +24 -1
- package/lib/chevre/service/transaction/moneyTransfer.js +33 -9
- package/lib/chevre/service/transaction/placeOrder/confirm/factory/result.js +24 -1
- package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions/sendEmailMessage.js +25 -2
- package/lib/chevre/service/transaction/placeOrder/confirm/publishCode.js +24 -1
- package/lib/chevre/service/transaction/placeOrder/confirm/validation/validateInvoiceReferencesOrder.js +29 -3
- package/lib/chevre/service/transaction/placeOrder/confirm/validation/validateMovieTicket.js +29 -5
- package/lib/chevre/service/transaction/placeOrder/confirm/validation/validatePrice.js +24 -1
- package/lib/chevre/service/transaction/placeOrder/confirm/validation.js +29 -5
- package/lib/chevre/service/transaction/placeOrder/confirm.js +34 -12
- package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.js +30 -6
- package/lib/chevre/service/transaction/placeOrder/exportTasksById.js +29 -3
- package/lib/chevre/service/transaction/placeOrder/publishConfirmationNumberIfNotExist.js +24 -1
- package/lib/chevre/service/transaction/placeOrder/publishOrderNumberIfNotExist.js +24 -1
- package/lib/chevre/service/transaction/placeOrder/start/factory.js +24 -1
- package/lib/chevre/service/transaction/placeOrder/start/validateStartRequest.js +25 -3
- package/lib/chevre/service/transaction/placeOrder/start.js +24 -1
- package/lib/chevre/service/transaction/returnOrder/exportTasks/factory.js +30 -5
- package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPaymentMethod.js +25 -2
- package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPointAward.js +24 -3
- package/lib/chevre/service/transaction/returnOrder/potentialActions/sendEmailMessage.js +25 -2
- package/lib/chevre/service/transaction/returnOrder/potentialActions.js +24 -1
- package/lib/chevre/service/transaction/returnOrder/preStart/findApplicableReturnPolicy.js +43 -19
- package/lib/chevre/service/transaction/returnOrder/preStart/getReturnPolicyByProject.js +24 -1
- package/lib/chevre/service/transaction/returnOrder/preStart.js +29 -4
- package/lib/chevre/service/transaction/returnOrder.js +29 -4
- package/lib/chevre/service/transaction.js +27 -4
- package/lib/chevre/service/validation/validateEvent.js +1 -1
- package/lib/chevre/service/validation/validateOrder.js +35 -11
- package/lib/chevre/service.js +46 -26
- package/lib/chevre/settings.js +0 -1
- package/lib/index.js +24 -2
- package/package.json +7 -7
|
@@ -1,11 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
exports.ServiceOutputIdentifierRepo = void 0;
|
|
4
30
|
// import * as cdigit from 'cdigit';
|
|
5
|
-
const
|
|
6
|
-
// tslint:disable-next-line:no-require-imports no-var-requires
|
|
31
|
+
const moment_timezone_1 = __importDefault(require("moment-timezone"));
|
|
7
32
|
// const fpe = require('node-fpe-v1');
|
|
8
|
-
const factory = require("../factory");
|
|
33
|
+
const factory = __importStar(require("../factory"));
|
|
9
34
|
const transactionNumber_1 = require("../factory/transactionNumber");
|
|
10
35
|
const setting_1 = require("./mongoose/schemas/setting");
|
|
11
36
|
const transactionNumber_2 = require("./mongoose/schemas/transactionNumber");
|
|
@@ -25,13 +50,13 @@ class ServiceOutputIdentifierRepo {
|
|
|
25
50
|
*/
|
|
26
51
|
async issueServiceOutputIdentifier(params) {
|
|
27
52
|
const { fpeSecret, version } = await this.findSetting();
|
|
28
|
-
const timestamp =
|
|
53
|
+
const timestamp = (0, moment_timezone_1.default)(params.startDate)
|
|
29
54
|
.valueOf()
|
|
30
55
|
.toString();
|
|
31
56
|
let dataFeedExpires;
|
|
32
57
|
const dataFeedIdentifier = timestamp;
|
|
33
58
|
let incrReply;
|
|
34
|
-
dataFeedExpires =
|
|
59
|
+
dataFeedExpires = (0, moment_timezone_1.default)(params.startDate)
|
|
35
60
|
.add(1, 'minute') // ミリ秒でカウントしていくので、予約日時後1分で十分
|
|
36
61
|
.toDate();
|
|
37
62
|
incrReply = await this.counterRepo.incrementByMongo({
|
|
@@ -1,7 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.JWTSettingRepo = void 0;
|
|
4
|
-
const factory = require("../../factory");
|
|
27
|
+
const factory = __importStar(require("../../factory"));
|
|
5
28
|
const setting_1 = require("../mongoose/schemas/setting");
|
|
6
29
|
/**
|
|
7
30
|
* JWT設定リポジトリ
|
|
@@ -1,8 +1,31 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.StockHolderRepo = void 0;
|
|
4
27
|
// import type { RedisClientType } from 'redis';
|
|
5
|
-
const factory = require("../factory");
|
|
28
|
+
const factory = __importStar(require("../factory"));
|
|
6
29
|
const pendingReservation_1 = require("./pendingReservation");
|
|
7
30
|
const SEARCH_OFFERS_MAX_LENGTH = 100;
|
|
8
31
|
/**
|
|
@@ -69,7 +92,6 @@ class StockHolderRepo {
|
|
|
69
92
|
/**
|
|
70
93
|
* 座席をロックする
|
|
71
94
|
*/
|
|
72
|
-
// tslint:disable-next-line:max-func-body-length
|
|
73
95
|
async lock(lockKey) {
|
|
74
96
|
if (!(lockKey.expires instanceof Date)) {
|
|
75
97
|
throw new factory.errors.Argument('expires', 'must be Date');
|
|
@@ -253,7 +275,6 @@ class StockHolderRepo {
|
|
|
253
275
|
/**
|
|
254
276
|
* 新リポジトリを使用するかどうか
|
|
255
277
|
*/
|
|
256
|
-
// tslint:disable-next-line:prefer-function-over-method
|
|
257
278
|
useMongoose(params) {
|
|
258
279
|
if (!(params.startDate instanceof Date)) {
|
|
259
280
|
throw new factory.errors.Argument('startDate', 'must be Date');
|
package/lib/chevre/repo/task.js
CHANGED
|
@@ -1,10 +1,36 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
exports.TaskRepo = void 0;
|
|
4
|
-
const
|
|
30
|
+
const moment_1 = __importDefault(require("moment"));
|
|
5
31
|
const errorHandler_1 = require("../errorHandler");
|
|
6
32
|
const task_1 = require("../eventEmitter/task");
|
|
7
|
-
const factory = require("../factory");
|
|
33
|
+
const factory = __importStar(require("../factory"));
|
|
8
34
|
const settings_1 = require("../settings");
|
|
9
35
|
const task_2 = require("./mongoose/schemas/task");
|
|
10
36
|
/**
|
|
@@ -53,7 +79,6 @@ class TaskRepo {
|
|
|
53
79
|
constructor(connection) {
|
|
54
80
|
this.taskModel = connection.model(task_2.modelName, (0, task_2.createSchema)());
|
|
55
81
|
}
|
|
56
|
-
// tslint:disable-next-line:cyclomatic-complexity max-func-body-length
|
|
57
82
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
58
83
|
const andConditions = [];
|
|
59
84
|
const idEq = params.id?.$eq;
|
|
@@ -361,7 +386,6 @@ class TaskRepo {
|
|
|
361
386
|
.exec();
|
|
362
387
|
}
|
|
363
388
|
if (doc === null) {
|
|
364
|
-
// tslint:disable-next-line:no-null-keyword
|
|
365
389
|
return null;
|
|
366
390
|
}
|
|
367
391
|
return doc;
|
|
@@ -407,7 +431,6 @@ class TaskRepo {
|
|
|
407
431
|
.lean() // lean(2024-09-26~)
|
|
408
432
|
.exec();
|
|
409
433
|
if (doc === null) {
|
|
410
|
-
// tslint:disable-next-line:no-null-keyword
|
|
411
434
|
return null;
|
|
412
435
|
}
|
|
413
436
|
return doc;
|
|
@@ -496,7 +519,6 @@ class TaskRepo {
|
|
|
496
519
|
.lean()
|
|
497
520
|
.exec();
|
|
498
521
|
if (doc === null) {
|
|
499
|
-
// tslint:disable-next-line:no-null-keyword
|
|
500
522
|
return null;
|
|
501
523
|
}
|
|
502
524
|
let changedTask;
|
|
@@ -538,7 +560,7 @@ class TaskRepo {
|
|
|
538
560
|
* Runningのまま一定期間超過し、かつ、remainingNumberOfTries>0のタスクをReadyに変更する
|
|
539
561
|
*/
|
|
540
562
|
async retryMany(params) {
|
|
541
|
-
const lastTriedAtShoudBeLessThan =
|
|
563
|
+
const lastTriedAtShoudBeLessThan = (0, moment_1.default)()
|
|
542
564
|
.add(-params.intervalInMinutes, 'minutes')
|
|
543
565
|
.toDate();
|
|
544
566
|
const remainingNumberOfTriesGte = params.remainingNumberOfTries.$gte;
|
|
@@ -621,7 +643,7 @@ class TaskRepo {
|
|
|
621
643
|
// return doc;
|
|
622
644
|
// }
|
|
623
645
|
async abortMany(params) {
|
|
624
|
-
const lastTriedAtShoudBeLessThan =
|
|
646
|
+
const lastTriedAtShoudBeLessThan = (0, moment_1.default)()
|
|
625
647
|
.add(-params.intervalInMinutes, 'minutes')
|
|
626
648
|
.toDate();
|
|
627
649
|
return this.taskModel.updateMany({
|
|
@@ -746,7 +768,7 @@ class TaskRepo {
|
|
|
746
768
|
}
|
|
747
769
|
async countDelayedTasks(params) {
|
|
748
770
|
const { limit } = params;
|
|
749
|
-
const runsAtLt =
|
|
771
|
+
const runsAtLt = (0, moment_1.default)()
|
|
750
772
|
.add(-params.delayInSeconds, 'seconds')
|
|
751
773
|
.toDate();
|
|
752
774
|
const query = this.taskModel.countDocuments({
|
|
@@ -789,7 +811,6 @@ class TaskRepo {
|
|
|
789
811
|
}));
|
|
790
812
|
return { statuses };
|
|
791
813
|
}
|
|
792
|
-
// tslint:disable-next-line:max-func-body-length
|
|
793
814
|
async agggregateByStatus(params) {
|
|
794
815
|
const matchConditions = params.matchConditions;
|
|
795
816
|
const taskStatus = params.status;
|
|
@@ -828,7 +849,6 @@ class TaskRepo {
|
|
|
828
849
|
// console.dir(explainResult, { depth: null });
|
|
829
850
|
// return;
|
|
830
851
|
const aggregations = await aggregate1.exec();
|
|
831
|
-
// tslint:disable-next-line:no-magic-numbers
|
|
832
852
|
const percents = [50, 95, 99];
|
|
833
853
|
if (aggregations.length === 0) {
|
|
834
854
|
return {
|
|
@@ -850,7 +870,6 @@ class TaskRepo {
|
|
|
850
870
|
const ranks4percentile = percents.map((percentile) => {
|
|
851
871
|
return {
|
|
852
872
|
percentile,
|
|
853
|
-
// tslint:disable-next-line:no-magic-numbers
|
|
854
873
|
rank: Math.floor(aggregations[0].taskCount * percentile / 100)
|
|
855
874
|
};
|
|
856
875
|
});
|
|
@@ -1,7 +1,30 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.TicketRepo = void 0;
|
|
4
|
-
const factory = require("../factory");
|
|
27
|
+
const factory = __importStar(require("../factory"));
|
|
5
28
|
const settings_1 = require("../settings");
|
|
6
29
|
const ticket_1 = require("./mongoose/schemas/ticket");
|
|
7
30
|
const AVAILABLE_PROJECT_FIELDS = [
|
|
@@ -1,9 +1,35 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
exports.TransactionRepo = void 0;
|
|
4
|
-
const
|
|
30
|
+
const moment_1 = __importDefault(require("moment"));
|
|
5
31
|
const transaction_1 = require("../eventEmitter/transaction");
|
|
6
|
-
const factory = require("../factory");
|
|
32
|
+
const factory = __importStar(require("../factory"));
|
|
7
33
|
const settings_1 = require("../settings");
|
|
8
34
|
const transaction_2 = require("./mongoose/schemas/transaction");
|
|
9
35
|
const AVAILABLE_PROJECT_FIELDS = [
|
|
@@ -31,35 +57,29 @@ class TransactionRepo {
|
|
|
31
57
|
constructor(connection) {
|
|
32
58
|
this.transactionModel = connection.model(transaction_2.modelName, (0, transaction_2.createSchema)());
|
|
33
59
|
}
|
|
34
|
-
// tslint:disable-next-line:cyclomatic-complexity max-func-body-length
|
|
35
60
|
static CREATE_MONGO_CONDITIONS(params) {
|
|
36
61
|
const andConditions = [];
|
|
37
62
|
const projectIdEq = params.project?.id?.$eq;
|
|
38
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
39
63
|
/* istanbul ignore else */
|
|
40
64
|
if (typeof projectIdEq === 'string') {
|
|
41
65
|
andConditions.push({ 'project.id': { $eq: projectIdEq } });
|
|
42
66
|
}
|
|
43
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
44
67
|
/* istanbul ignore else */
|
|
45
68
|
if (typeof params.typeOf === 'string') {
|
|
46
69
|
andConditions.push({ typeOf: { $eq: params.typeOf } });
|
|
47
70
|
}
|
|
48
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
49
71
|
/* istanbul ignore else */
|
|
50
72
|
if (params.startFrom !== undefined) {
|
|
51
73
|
andConditions.push({
|
|
52
74
|
startDate: { $gte: params.startFrom }
|
|
53
75
|
});
|
|
54
76
|
}
|
|
55
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
56
77
|
/* istanbul ignore else */
|
|
57
78
|
if (params.startThrough !== undefined) {
|
|
58
79
|
andConditions.push({
|
|
59
80
|
startDate: { $lte: params.startThrough }
|
|
60
81
|
});
|
|
61
82
|
}
|
|
62
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
63
83
|
/* istanbul ignore else */
|
|
64
84
|
if (params.endFrom !== undefined) {
|
|
65
85
|
andConditions.push({
|
|
@@ -69,7 +89,6 @@ class TransactionRepo {
|
|
|
69
89
|
}
|
|
70
90
|
});
|
|
71
91
|
}
|
|
72
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
73
92
|
/* istanbul ignore else */
|
|
74
93
|
if (params.endThrough !== undefined) {
|
|
75
94
|
andConditions.push({
|
|
@@ -79,28 +98,23 @@ class TransactionRepo {
|
|
|
79
98
|
}
|
|
80
99
|
});
|
|
81
100
|
}
|
|
82
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
83
101
|
/* istanbul ignore else */
|
|
84
102
|
if (Array.isArray(params.ids)) {
|
|
85
103
|
andConditions.push({
|
|
86
104
|
_id: { $in: params.ids }
|
|
87
105
|
});
|
|
88
106
|
}
|
|
89
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
90
107
|
/* istanbul ignore else */
|
|
91
108
|
if (Array.isArray(params.statuses)) {
|
|
92
109
|
andConditions.push({ status: { $in: params.statuses } });
|
|
93
110
|
}
|
|
94
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
95
111
|
/* istanbul ignore else */
|
|
96
112
|
const statusIn = params.status?.$in;
|
|
97
113
|
if (Array.isArray(statusIn)) {
|
|
98
114
|
andConditions.push({ status: { $in: statusIn } });
|
|
99
115
|
}
|
|
100
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
101
116
|
/* istanbul ignore else */
|
|
102
117
|
if (params.agent !== undefined) {
|
|
103
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
104
118
|
/* istanbul ignore else */
|
|
105
119
|
if (params.agent.typeOf !== undefined) {
|
|
106
120
|
andConditions.push({
|
|
@@ -110,7 +124,6 @@ class TransactionRepo {
|
|
|
110
124
|
}
|
|
111
125
|
});
|
|
112
126
|
}
|
|
113
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
114
127
|
/* istanbul ignore else */
|
|
115
128
|
if (Array.isArray(params.agent.ids)) {
|
|
116
129
|
andConditions.push({
|
|
@@ -120,7 +133,6 @@ class TransactionRepo {
|
|
|
120
133
|
}
|
|
121
134
|
});
|
|
122
135
|
}
|
|
123
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
124
136
|
/* istanbul ignore else */
|
|
125
137
|
if (Array.isArray(params.agent.identifiers)) {
|
|
126
138
|
andConditions.push({
|
|
@@ -164,13 +176,11 @@ class TransactionRepo {
|
|
|
164
176
|
// }
|
|
165
177
|
}
|
|
166
178
|
const tasksExportActionStatusIn = params.tasksExportAction?.actionStatus?.$in;
|
|
167
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
168
179
|
/* istanbul ignore else */
|
|
169
180
|
if (Array.isArray(tasksExportActionStatusIn)) {
|
|
170
181
|
andConditions.push({ 'tasksExportAction.actionStatus': { $exists: true, $in: tasksExportActionStatusIn } });
|
|
171
182
|
}
|
|
172
183
|
const tasksExportActionStatusEq = params.tasksExportAction?.actionStatus?.$eq;
|
|
173
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
174
184
|
/* istanbul ignore else */
|
|
175
185
|
if (typeof tasksExportActionStatusEq === 'string') {
|
|
176
186
|
andConditions.push({ 'tasksExportAction.actionStatus': { $exists: true, $eq: tasksExportActionStatusEq } });
|
|
@@ -197,13 +207,10 @@ class TransactionRepo {
|
|
|
197
207
|
}
|
|
198
208
|
break;
|
|
199
209
|
case factory.transactionType.ReturnOrder:
|
|
200
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
201
210
|
/* istanbul ignore else */
|
|
202
211
|
if (params.object !== undefined) {
|
|
203
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
204
212
|
/* istanbul ignore else */
|
|
205
213
|
if (params.object.order !== undefined) {
|
|
206
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
207
214
|
/* istanbul ignore else */
|
|
208
215
|
if (Array.isArray(params.object.order.orderNumbers)) {
|
|
209
216
|
andConditions.push({
|
|
@@ -234,7 +241,7 @@ class TransactionRepo {
|
|
|
234
241
|
|| typeOf === factory.transactionType.ReturnOrder) {
|
|
235
242
|
// expiresInSecondsの指定があれば優先して適用する(2022-11-25~)
|
|
236
243
|
if (typeof params.expiresInSeconds === 'number' && params.expiresInSeconds > 0) {
|
|
237
|
-
expires =
|
|
244
|
+
expires = (0, moment_1.default)(startDate)
|
|
238
245
|
.add(params.expiresInSeconds, 'seconds')
|
|
239
246
|
.toDate();
|
|
240
247
|
}
|
|
@@ -520,8 +527,8 @@ class TransactionRepo {
|
|
|
520
527
|
throw new factory.errors.Argument('Transaction id', 'Already canceled');
|
|
521
528
|
}
|
|
522
529
|
else {
|
|
523
|
-
if (
|
|
524
|
-
.isSameOrBefore(
|
|
530
|
+
if ((0, moment_1.default)(expires)
|
|
531
|
+
.isSameOrBefore((0, moment_1.default)(endDate))) {
|
|
525
532
|
throw new factory.errors.Argument('Transaction id', 'potentially expired');
|
|
526
533
|
}
|
|
527
534
|
throw new factory.errors.NotFound(this.transactionModel.modelName, `${params.typeOf} ${factory.transactionStatusType.InProgress} not found`);
|
|
@@ -615,7 +622,6 @@ class TransactionRepo {
|
|
|
615
622
|
return query.setOptions({ maxTimeMS: settings_1.MONGO_MAX_TIME_MS })
|
|
616
623
|
.lean() // 2024-08-26~
|
|
617
624
|
.exec()
|
|
618
|
-
// tslint:disable-next-line:no-null-keyword
|
|
619
625
|
.then((doc) => (doc === null) ? null : doc);
|
|
620
626
|
}
|
|
621
627
|
// discontinue(2025-03-10~)
|
|
@@ -708,7 +714,7 @@ class TransactionRepo {
|
|
|
708
714
|
},
|
|
709
715
|
endDate: {
|
|
710
716
|
$exists: true,
|
|
711
|
-
$lt:
|
|
717
|
+
$lt: (0, moment_1.default)(params.now)
|
|
712
718
|
.add(-params.delayInSeconds, 'seconds')
|
|
713
719
|
.toDate()
|
|
714
720
|
}
|
|
@@ -941,7 +947,6 @@ class TransactionRepo {
|
|
|
941
947
|
query.limit(params.limit)
|
|
942
948
|
.skip(params.limit * (page - 1));
|
|
943
949
|
}
|
|
944
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
945
950
|
/* istanbul ignore else */
|
|
946
951
|
if (params.sort?.startDate !== undefined) {
|
|
947
952
|
query.sort({ startDate: params.sort.startDate });
|
|
@@ -1046,7 +1051,6 @@ class TransactionRepo {
|
|
|
1046
1051
|
}));
|
|
1047
1052
|
return { statuses };
|
|
1048
1053
|
}
|
|
1049
|
-
// tslint:disable-next-line:max-func-body-length
|
|
1050
1054
|
async agggregateByStatus(params) {
|
|
1051
1055
|
const matchConditions = params.matchConditions;
|
|
1052
1056
|
const transactionStatus = params.status;
|
|
@@ -1083,7 +1087,6 @@ class TransactionRepo {
|
|
|
1083
1087
|
}
|
|
1084
1088
|
])
|
|
1085
1089
|
.exec();
|
|
1086
|
-
// tslint:disable-next-line:no-magic-numbers
|
|
1087
1090
|
const percents = [50, 95, 99];
|
|
1088
1091
|
if (aggregations.length === 0) {
|
|
1089
1092
|
return {
|
|
@@ -1109,7 +1112,6 @@ class TransactionRepo {
|
|
|
1109
1112
|
const ranks4percentile = percents.map((percentile) => {
|
|
1110
1113
|
return {
|
|
1111
1114
|
percentile,
|
|
1112
|
-
// tslint:disable-next-line:no-magic-numbers
|
|
1113
1115
|
rank: Math.floor(aggregations[0].transactionCount * percentile / 100)
|
|
1114
1116
|
};
|
|
1115
1117
|
});
|
|
@@ -1,8 +1,34 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
exports.TransactionNumberRepo = void 0;
|
|
4
|
-
const
|
|
5
|
-
const factory = require("../factory");
|
|
30
|
+
const moment_timezone_1 = __importDefault(require("moment-timezone"));
|
|
31
|
+
const factory = __importStar(require("../factory"));
|
|
6
32
|
const transactionNumber_1 = require("../factory/transactionNumber");
|
|
7
33
|
const setting_1 = require("./mongoose/schemas/setting");
|
|
8
34
|
const transactionNumber_2 = require("./mongoose/schemas/transactionNumber");
|
|
@@ -22,13 +48,13 @@ class TransactionNumberRepo {
|
|
|
22
48
|
*/
|
|
23
49
|
async publishByTimestamp(params) {
|
|
24
50
|
const { fpeSecret, version, validFrom } = await this.findSetting();
|
|
25
|
-
const timestamp =
|
|
51
|
+
const timestamp = (0, moment_timezone_1.default)(params.startDate)
|
|
26
52
|
.valueOf()
|
|
27
53
|
.toString();
|
|
28
54
|
let dataFeedExpires;
|
|
29
55
|
const dataFeedIdentifier = timestamp;
|
|
30
56
|
let incrReply;
|
|
31
|
-
dataFeedExpires =
|
|
57
|
+
dataFeedExpires = (0, moment_timezone_1.default)(params.startDate)
|
|
32
58
|
.add(1, 'minute') // ミリ秒でカウントしていくので、予約日時後1分で十分
|
|
33
59
|
.toDate();
|
|
34
60
|
incrReply = await this.counterRepo.incrementByMongo({
|
|
@@ -37,7 +63,7 @@ class TransactionNumberRepo {
|
|
|
37
63
|
expires: dataFeedExpires
|
|
38
64
|
});
|
|
39
65
|
let transactionNumber;
|
|
40
|
-
const useVersioning = validFrom instanceof Date &&
|
|
66
|
+
const useVersioning = validFrom instanceof Date && (0, moment_timezone_1.default)(validFrom)
|
|
41
67
|
.isSameOrBefore(params.startDate);
|
|
42
68
|
if (typeof fpeSecret === 'string' && typeof version === 'string' && useVersioning) {
|
|
43
69
|
const transactionFactory = new transactionNumber_1.TransactionNumberFactory({ fpeSecret, version });
|
|
@@ -1,9 +1,32 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
2
25
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
26
|
exports.TransactionNumberCounterRepo = void 0;
|
|
4
27
|
// import { RedisClientType } from 'redis';
|
|
5
28
|
const errorHandler_1 = require("../errorHandler");
|
|
6
|
-
const factory = require("../factory");
|
|
29
|
+
const factory = __importStar(require("../factory"));
|
|
7
30
|
const transactionNumber_1 = require("./mongoose/schemas/transactionNumber");
|
|
8
31
|
const MAX_RETRY_INCREMENT = 1;
|
|
9
32
|
/**
|
|
@@ -111,7 +134,6 @@ class TransactionNumberCounterRepo {
|
|
|
111
134
|
throw new factory.errors.NotFound('DataFeed');
|
|
112
135
|
}
|
|
113
136
|
const incrReply = doc.interactionStatistic?.userInteractionCount;
|
|
114
|
-
// tslint:disable-next-line:no-single-line-block-comment
|
|
115
137
|
/* istanbul ignore if */
|
|
116
138
|
if (typeof incrReply !== 'number') {
|
|
117
139
|
// 基本的にありえないフロー
|
|
@@ -1,11 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
|
|
14
|
+
Object.defineProperty(o, "default", { enumerable: true, value: v });
|
|
15
|
+
}) : function(o, v) {
|
|
16
|
+
o["default"] = v;
|
|
17
|
+
});
|
|
18
|
+
var __importStar = (this && this.__importStar) || function (mod) {
|
|
19
|
+
if (mod && mod.__esModule) return mod;
|
|
20
|
+
var result = {};
|
|
21
|
+
if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
|
|
22
|
+
__setModuleDefault(result, mod);
|
|
23
|
+
return result;
|
|
24
|
+
};
|
|
25
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
26
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
27
|
+
};
|
|
2
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
29
|
exports.TransactionProcessRepo = void 0;
|
|
4
|
-
const
|
|
5
|
-
const
|
|
6
|
-
const factory = require("../factory");
|
|
30
|
+
const debug_1 = __importDefault(require("debug"));
|
|
31
|
+
const moment_1 = __importDefault(require("moment"));
|
|
32
|
+
const factory = __importStar(require("../factory"));
|
|
7
33
|
const concurrentLock_1 = require("./concurrentLock");
|
|
8
|
-
const debug =
|
|
34
|
+
const debug = (0, debug_1.default)('chevre-domain:repo:transactionProcess');
|
|
9
35
|
const DEFAULT_LOCK_EXPIRES = 120;
|
|
10
36
|
/**
|
|
11
37
|
* 取引プロセスリポジトリ
|
|
@@ -25,7 +51,7 @@ class TransactionProcessRepo {
|
|
|
25
51
|
async lock(params) {
|
|
26
52
|
const key = TransactionProcessRepo.CREATE_REDIS_KEY(params);
|
|
27
53
|
const ttl = (typeof this.options.lockExpiresInSeconds === 'number') ? this.options.lockExpiresInSeconds : DEFAULT_LOCK_EXPIRES;
|
|
28
|
-
const expires =
|
|
54
|
+
const expires = (0, moment_1.default)()
|
|
29
55
|
.add(ttl, 'seconds')
|
|
30
56
|
.toDate();
|
|
31
57
|
// reimplement using concurrentLockRepo(2025-05-27~)
|