@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
package/lib/chevre/service.js
CHANGED
|
@@ -1,22 +1,45 @@
|
|
|
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.factory = exports.transaction = exports.task = exports.reserve = exports.report = exports.project = exports.permit = exports.payment = exports.order = exports.offer = exports.notification = exports.iam = exports.event = exports.delivery = exports.assetTransaction = exports.aggregation = exports.accountTransaction = exports.account = void 0;
|
|
4
27
|
/**
|
|
5
28
|
* service module
|
|
6
29
|
*/
|
|
7
|
-
const AccountTransactionIdentifierFactory = require("./factory/accountTransactionIdentifier");
|
|
8
|
-
const EventFactory = require("./factory/event");
|
|
9
|
-
const OrderFactory = require("./factory/order");
|
|
10
|
-
const ReservedAgentIdentifireNamesFactory = require("./factory/reservedAgentIdentifireNames");
|
|
11
|
-
const TaskIdentifierFactory = require("./factory/taskIdentifier");
|
|
12
|
-
const TransactionFactory = require("./factory/transaction");
|
|
30
|
+
const AccountTransactionIdentifierFactory = __importStar(require("./factory/accountTransactionIdentifier"));
|
|
31
|
+
const EventFactory = __importStar(require("./factory/event"));
|
|
32
|
+
const OrderFactory = __importStar(require("./factory/order"));
|
|
33
|
+
const ReservedAgentIdentifireNamesFactory = __importStar(require("./factory/reservedAgentIdentifireNames"));
|
|
34
|
+
const TaskIdentifierFactory = __importStar(require("./factory/taskIdentifier"));
|
|
35
|
+
const TransactionFactory = __importStar(require("./factory/transaction"));
|
|
13
36
|
// import all lazily(2023-10-11~)
|
|
14
37
|
var account;
|
|
15
38
|
(function (account) {
|
|
16
39
|
let service;
|
|
17
40
|
async function createService() {
|
|
18
41
|
if (service === undefined) {
|
|
19
|
-
service = await Promise.resolve().then(() => require('./service/account'));
|
|
42
|
+
service = await Promise.resolve().then(() => __importStar(require('./service/account')));
|
|
20
43
|
}
|
|
21
44
|
return service;
|
|
22
45
|
}
|
|
@@ -27,7 +50,7 @@ var accountTransaction;
|
|
|
27
50
|
let service;
|
|
28
51
|
async function createService() {
|
|
29
52
|
if (service === undefined) {
|
|
30
|
-
service = await Promise.resolve().then(() => require('./service/accountTransaction'));
|
|
53
|
+
service = await Promise.resolve().then(() => __importStar(require('./service/accountTransaction')));
|
|
31
54
|
}
|
|
32
55
|
return service;
|
|
33
56
|
}
|
|
@@ -38,7 +61,7 @@ var aggregation;
|
|
|
38
61
|
let service;
|
|
39
62
|
async function createService() {
|
|
40
63
|
if (service === undefined) {
|
|
41
|
-
service = await Promise.resolve().then(() => require('./service/aggregation'));
|
|
64
|
+
service = await Promise.resolve().then(() => __importStar(require('./service/aggregation')));
|
|
42
65
|
}
|
|
43
66
|
return service;
|
|
44
67
|
}
|
|
@@ -49,7 +72,7 @@ var assetTransaction;
|
|
|
49
72
|
let service;
|
|
50
73
|
async function createService() {
|
|
51
74
|
if (service === undefined) {
|
|
52
|
-
service = await Promise.resolve().then(() => require('./service/assetTransaction'));
|
|
75
|
+
service = await Promise.resolve().then(() => __importStar(require('./service/assetTransaction')));
|
|
53
76
|
}
|
|
54
77
|
return service;
|
|
55
78
|
}
|
|
@@ -69,7 +92,7 @@ var delivery;
|
|
|
69
92
|
let service;
|
|
70
93
|
async function createService() {
|
|
71
94
|
if (service === undefined) {
|
|
72
|
-
service = await Promise.resolve().then(() => require('./service/delivery'));
|
|
95
|
+
service = await Promise.resolve().then(() => __importStar(require('./service/delivery')));
|
|
73
96
|
}
|
|
74
97
|
return service;
|
|
75
98
|
}
|
|
@@ -80,7 +103,7 @@ var event;
|
|
|
80
103
|
let service;
|
|
81
104
|
async function createService() {
|
|
82
105
|
if (service === undefined) {
|
|
83
|
-
service = await Promise.resolve().then(() => require('./service/event'));
|
|
106
|
+
service = await Promise.resolve().then(() => __importStar(require('./service/event')));
|
|
84
107
|
}
|
|
85
108
|
return service;
|
|
86
109
|
}
|
|
@@ -91,7 +114,7 @@ var iam;
|
|
|
91
114
|
let service;
|
|
92
115
|
async function createService() {
|
|
93
116
|
if (service === undefined) {
|
|
94
|
-
service = await Promise.resolve().then(() => require('./service/iam'));
|
|
117
|
+
service = await Promise.resolve().then(() => __importStar(require('./service/iam')));
|
|
95
118
|
}
|
|
96
119
|
return service;
|
|
97
120
|
}
|
|
@@ -102,7 +125,7 @@ var notification;
|
|
|
102
125
|
let service;
|
|
103
126
|
async function createService() {
|
|
104
127
|
if (service === undefined) {
|
|
105
|
-
service = await Promise.resolve().then(() => require('./service/notification'));
|
|
128
|
+
service = await Promise.resolve().then(() => __importStar(require('./service/notification')));
|
|
106
129
|
}
|
|
107
130
|
return service;
|
|
108
131
|
}
|
|
@@ -113,7 +136,7 @@ var offer;
|
|
|
113
136
|
let service;
|
|
114
137
|
async function createService() {
|
|
115
138
|
if (service === undefined) {
|
|
116
|
-
service = await Promise.resolve().then(() => require('./service/offer'));
|
|
139
|
+
service = await Promise.resolve().then(() => __importStar(require('./service/offer')));
|
|
117
140
|
}
|
|
118
141
|
return service;
|
|
119
142
|
}
|
|
@@ -124,7 +147,7 @@ var order;
|
|
|
124
147
|
let service;
|
|
125
148
|
async function createService() {
|
|
126
149
|
if (service === undefined) {
|
|
127
|
-
service = await Promise.resolve().then(() => require('./service/order'));
|
|
150
|
+
service = await Promise.resolve().then(() => __importStar(require('./service/order')));
|
|
128
151
|
}
|
|
129
152
|
return service;
|
|
130
153
|
}
|
|
@@ -137,7 +160,7 @@ var payment;
|
|
|
137
160
|
let service;
|
|
138
161
|
async function createService() {
|
|
139
162
|
if (service === undefined) {
|
|
140
|
-
service = await Promise.resolve().then(() => require('./service/payment/any'));
|
|
163
|
+
service = await Promise.resolve().then(() => __importStar(require('./service/payment/any')));
|
|
141
164
|
}
|
|
142
165
|
return service;
|
|
143
166
|
}
|
|
@@ -149,7 +172,7 @@ var permit;
|
|
|
149
172
|
let service;
|
|
150
173
|
async function createService() {
|
|
151
174
|
if (service === undefined) {
|
|
152
|
-
service = await Promise.resolve().then(() => require('./service/permit'));
|
|
175
|
+
service = await Promise.resolve().then(() => __importStar(require('./service/permit')));
|
|
153
176
|
}
|
|
154
177
|
return service;
|
|
155
178
|
}
|
|
@@ -160,7 +183,7 @@ var project;
|
|
|
160
183
|
let service;
|
|
161
184
|
async function createService() {
|
|
162
185
|
if (service === undefined) {
|
|
163
|
-
service = await Promise.resolve().then(() => require('./service/project'));
|
|
186
|
+
service = await Promise.resolve().then(() => __importStar(require('./service/project')));
|
|
164
187
|
}
|
|
165
188
|
return service;
|
|
166
189
|
}
|
|
@@ -171,7 +194,7 @@ var report;
|
|
|
171
194
|
let service;
|
|
172
195
|
async function createService() {
|
|
173
196
|
if (service === undefined) {
|
|
174
|
-
service = await Promise.resolve().then(() => require('./service/report'));
|
|
197
|
+
service = await Promise.resolve().then(() => __importStar(require('./service/report')));
|
|
175
198
|
}
|
|
176
199
|
return service;
|
|
177
200
|
}
|
|
@@ -182,7 +205,7 @@ var reserve;
|
|
|
182
205
|
let service;
|
|
183
206
|
async function createService() {
|
|
184
207
|
if (service === undefined) {
|
|
185
|
-
service = await Promise.resolve().then(() => require('./service/reserve'));
|
|
208
|
+
service = await Promise.resolve().then(() => __importStar(require('./service/reserve')));
|
|
186
209
|
}
|
|
187
210
|
return service;
|
|
188
211
|
}
|
|
@@ -193,7 +216,7 @@ var task;
|
|
|
193
216
|
let service;
|
|
194
217
|
async function createService() {
|
|
195
218
|
if (service === undefined) {
|
|
196
|
-
service = await Promise.resolve().then(() => require('./service/task'));
|
|
219
|
+
service = await Promise.resolve().then(() => __importStar(require('./service/task')));
|
|
197
220
|
}
|
|
198
221
|
return service;
|
|
199
222
|
}
|
|
@@ -204,7 +227,7 @@ var transaction;
|
|
|
204
227
|
let service;
|
|
205
228
|
async function createService() {
|
|
206
229
|
if (service === undefined) {
|
|
207
|
-
service = await Promise.resolve().then(() => require('./service/transaction'));
|
|
230
|
+
service = await Promise.resolve().then(() => __importStar(require('./service/transaction')));
|
|
208
231
|
}
|
|
209
232
|
return service;
|
|
210
233
|
}
|
|
@@ -213,12 +236,9 @@ var transaction;
|
|
|
213
236
|
var factory;
|
|
214
237
|
(function (factory) {
|
|
215
238
|
factory.accountTransactionIdentifier = AccountTransactionIdentifierFactory;
|
|
216
|
-
// tslint:disable-next-line:no-shadowed-variable
|
|
217
239
|
factory.event = EventFactory;
|
|
218
|
-
// tslint:disable-next-line:no-shadowed-variable
|
|
219
240
|
factory.order = OrderFactory;
|
|
220
241
|
factory.reservedAgentIdentifireNames = ReservedAgentIdentifireNamesFactory;
|
|
221
242
|
factory.taskIdentifier = TaskIdentifierFactory;
|
|
222
|
-
// tslint:disable-next-line:no-shadowed-variable
|
|
223
243
|
factory.transaction = TransactionFactory;
|
|
224
244
|
})(factory || (exports.factory = factory = {}));
|
package/lib/chevre/settings.js
CHANGED
|
@@ -33,7 +33,6 @@ class Settings {
|
|
|
33
33
|
exports.Settings = Settings;
|
|
34
34
|
exports.MONGO_MAX_TIME_MS = (typeof process.env.MONGO_MAX_TIME_MS === 'string')
|
|
35
35
|
? Number(process.env.MONGO_MAX_TIME_MS)
|
|
36
|
-
// tslint:disable-next-line:no-magic-numbers
|
|
37
36
|
: 10000;
|
|
38
37
|
exports.MONGO_READ_PREFERENCE = (typeof process.env.MONGO_READ_PREFERENCE === 'string')
|
|
39
38
|
? process.env.MONGO_READ_PREFERENCE
|
package/lib/index.js
CHANGED
|
@@ -1,9 +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.chevre = void 0;
|
|
4
|
-
// tslint:disable:max-classes-per-file completed-docs
|
|
5
27
|
/**
|
|
6
28
|
* domain index
|
|
7
29
|
*/
|
|
8
|
-
const chevre = require("./chevre/index");
|
|
30
|
+
const chevre = __importStar(require("./chevre/index"));
|
|
9
31
|
exports.chevre = chevre;
|
package/package.json
CHANGED
|
@@ -49,6 +49,7 @@
|
|
|
49
49
|
"@types/sinon-mongoose": "^1.3.11",
|
|
50
50
|
"@types/uniqid": "^4.1.3",
|
|
51
51
|
"@types/uuid": "^3.4.10",
|
|
52
|
+
"@vitest/coverage-v8": "4.0.18",
|
|
52
53
|
"coveralls": "^3.1.0",
|
|
53
54
|
"csvtojson": "^2.0.10",
|
|
54
55
|
"eslint": "9.39.2",
|
|
@@ -64,10 +65,9 @@
|
|
|
64
65
|
"sinon": "4.5.0",
|
|
65
66
|
"sinon-mongoose": "^2.3.0",
|
|
66
67
|
"ts-node": "^10.9.1",
|
|
67
|
-
"tslint": "^6.1.3",
|
|
68
|
-
"tslint-microsoft-contrib": "^6.2.0",
|
|
69
68
|
"typescript": "5.6.3",
|
|
70
|
-
"typescript-eslint": "8.55.0"
|
|
69
|
+
"typescript-eslint": "8.55.0",
|
|
70
|
+
"vitest": "4.0.18"
|
|
71
71
|
},
|
|
72
72
|
"peerDependencies": {
|
|
73
73
|
"mongoose": "^8.0.0",
|
|
@@ -100,19 +100,19 @@
|
|
|
100
100
|
"scripts": {
|
|
101
101
|
"build": "tsc",
|
|
102
102
|
"build:example": "tsc --watch --project tsconfig.example.json --declaration false",
|
|
103
|
-
"check": "npm run tslint",
|
|
104
103
|
"clean": "rimraf ./lib \"npm-debug.log*\" ./doc ./coverage ./.nyc_output ./example/dst",
|
|
105
104
|
"doc": "echo \"implementing...\" && exit 0",
|
|
106
105
|
"eslint": "eslint src/**/*.ts",
|
|
107
106
|
"mocha": "mocha",
|
|
108
107
|
"nyc": "nyc mocha \"src/**/*.spec.ts\"",
|
|
109
108
|
"coverage": "npm run nyc && nyc report --reporter=text-lcov | coveralls",
|
|
110
|
-
"
|
|
111
|
-
"
|
|
109
|
+
"coverage:vitest": "vitest run --coverage",
|
|
110
|
+
"test": "npm run eslint && npm run coverage",
|
|
111
|
+
"test:vitest": "vitest",
|
|
112
112
|
"preversion": "npm run clean && npm run build && npm test && npm run doc",
|
|
113
113
|
"version": "git add -A",
|
|
114
114
|
"postversion": "git push origin --tags",
|
|
115
115
|
"prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
|
|
116
116
|
},
|
|
117
|
-
"version": "23.2.0-alpha.
|
|
117
|
+
"version": "23.2.0-alpha.64"
|
|
118
118
|
}
|