@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.
Files changed (591) hide show
  1. package/example/src/chevre/acceptedPaymentMethodOffer/adminAcceptedPaymentMethodOffers.ts +2 -2
  2. package/example/src/chevre/actions/checkAcceptPayActions.ts +2 -2
  3. package/example/src/chevre/actions/checkAuthorizePaymentActions.ts +2 -2
  4. package/example/src/chevre/activateOptionalAggregationSettings.ts +1 -1
  5. package/example/src/chevre/adminIdentities.ts +1 -1
  6. package/example/src/chevre/aggreateOwnershipInfosByOrder.ts +1 -1
  7. package/example/src/chevre/aggregateEventPublicFields.ts +2 -2
  8. package/example/src/chevre/aggregateOfferCatalogItemList.ts +1 -1
  9. package/example/src/chevre/aggregateScreeningEventMaxVersion.ts +1 -1
  10. package/example/src/chevre/aggregation/aggregateOffersOnEvent.ts +1 -1
  11. package/example/src/chevre/aggregation/aggregateOrderOfCustomer.ts +2 -2
  12. package/example/src/chevre/aggregation/aggregateOrderOfCustomerGlobally.ts +2 -2
  13. package/example/src/chevre/aggregation/aggregateOrderOfSeatByRoyalCustomers.ts +2 -2
  14. package/example/src/chevre/aggregation/aggregateOrderOnSystem.ts +2 -2
  15. package/example/src/chevre/aggregation/aggregateReservationByProject.ts +2 -2
  16. package/example/src/chevre/aggregation/aggregateSystem.ts +1 -1
  17. package/example/src/chevre/aggregation/aggregateTasks.ts +2 -2
  18. package/example/src/chevre/aggregation/createAggregateEventTasks.ts +2 -2
  19. package/example/src/chevre/aggregation/searchAggregateReservations.ts +1 -1
  20. package/example/src/chevre/assetTransaction/checkPayTransactionsTicketToken.ts +2 -2
  21. package/example/src/chevre/assetTransaction/processReserve.ts +2 -2
  22. package/example/src/chevre/attendIfNotAttended.ts +1 -1
  23. package/example/src/chevre/authorizeEventServiceOffer.ts +1 -1
  24. package/example/src/chevre/categoryCode/checkUniqueness.ts +1 -1
  25. package/example/src/chevre/changeOrderStatus.ts +1 -1
  26. package/example/src/chevre/checkCustomerAttributesLength.ts +2 -2
  27. package/example/src/chevre/checkEventDuration.ts +2 -2
  28. package/example/src/chevre/checkPaymentServiceUniqueness.ts +1 -1
  29. package/example/src/chevre/checkProjectMembers.ts +1 -1
  30. package/example/src/chevre/checkReserveTransactionSizes.ts +2 -2
  31. package/example/src/chevre/cleanActions.ts +2 -2
  32. package/example/src/chevre/cleanReservations.ts +2 -2
  33. package/example/src/chevre/cleanTransactions.ts +2 -2
  34. package/example/src/chevre/confirmationNumber/testRandomness.ts +1 -1
  35. package/example/src/chevre/countPotentiallyExportTasks.ts +2 -2
  36. package/example/src/chevre/countTransactions.ts +1 -1
  37. package/example/src/chevre/createProject.ts +1 -1
  38. package/example/src/chevre/createTaskIfNotExistByAlternateName.ts +1 -1
  39. package/example/src/chevre/db/stats.ts +1 -1
  40. package/example/src/chevre/deleteDiscontinuedPeople.ts +2 -2
  41. package/example/src/chevre/deleteDiscontinuedPeopleByFetch.ts +1 -1
  42. package/example/src/chevre/deleteOwnershipInfosByOwnedThrough.ts +2 -2
  43. package/example/src/chevre/deleteStartDatePassedCertainPeriod.ts +2 -2
  44. package/example/src/chevre/deleteTasksByName.ts +2 -2
  45. package/example/src/chevre/emailMessage/createEmailMessageText.ts +2 -2
  46. package/example/src/chevre/event/checkEventAdditionalPropertyUniqueness.ts +2 -2
  47. package/example/src/chevre/event/importEventSeriesFromCOAByTitle.ts +1 -1
  48. package/example/src/chevre/event/importEventsFromCOAByTitle.ts +2 -2
  49. package/example/src/chevre/event/migrateEventAdditionalProperty2identifier.ts +2 -2
  50. package/example/src/chevre/event/migrateEventMaximumPhysicalAttendeeCapacity.ts +1 -1
  51. package/example/src/chevre/event/unsetSuperEventVideoFormat.ts +1 -1
  52. package/example/src/chevre/event/updateSellerMakesOffersByIdentifier.ts +2 -2
  53. package/example/src/chevre/eventSeries/unsetVideoFormat.ts +1 -1
  54. package/example/src/chevre/eventSeries/upsertScreeningEventSeriesByVersion.ts +2 -2
  55. package/example/src/chevre/findAnyEventById.ts +1 -1
  56. package/example/src/chevre/findAuthorizePaymentAction.ts +1 -1
  57. package/example/src/chevre/findAvailableChannelMovieTicket.ts +1 -1
  58. package/example/src/chevre/findCheckAction.ts +1 -1
  59. package/example/src/chevre/findCustomerByOrderNumber.ts +1 -1
  60. package/example/src/chevre/findItemListElementByCatalogId.ts +1 -1
  61. package/example/src/chevre/findItemListElementById.ts +1 -1
  62. package/example/src/chevre/findJWTSetting.ts +1 -1
  63. package/example/src/chevre/findOneAvailableHours.ts +2 -2
  64. package/example/src/chevre/findReservationByCode.ts +1 -1
  65. package/example/src/chevre/findSchedule.ts +1 -1
  66. package/example/src/chevre/giveUpStartDatePassedCertainPeriod.ts +2 -2
  67. package/example/src/chevre/identity/getCommonClients.ts +1 -1
  68. package/example/src/chevre/identity/migrateClients2oauth.ts +1 -1
  69. package/example/src/chevre/importCategoryCodesFromCOA.ts +1 -1
  70. package/example/src/chevre/importEventsFromCOA.ts +2 -2
  71. package/example/src/chevre/investigateEvents.ts +1 -1
  72. package/example/src/chevre/investigateTransaction.ts +2 -2
  73. package/example/src/chevre/isPaymentAcceptedBySeller.ts +1 -1
  74. package/example/src/chevre/issuer/adminMemberProgramTiers.ts +1 -1
  75. package/example/src/chevre/issuer/migrateIssuerUrls.ts +1 -1
  76. package/example/src/chevre/issuer/renameIssuerIdentifier.ts +1 -1
  77. package/example/src/chevre/maintenance/checkTransactionStatuses.ts +1 -1
  78. package/example/src/chevre/makeExpiredManyTasks.ts +1 -1
  79. package/example/src/chevre/makeTransactionExpired.ts +2 -2
  80. package/example/src/chevre/member/migrateMemberIdentifier.ts +2 -2
  81. package/example/src/chevre/migrateAuthorizeEventServiceOfferChevre.ts +1 -1
  82. package/example/src/chevre/migrateCancelReservationObject.ts +1 -1
  83. package/example/src/chevre/migrateCustomerAdditionalProperties.ts +2 -2
  84. package/example/src/chevre/migrateEventSellerMakesOfferAvailableAt.ts +2 -2
  85. package/example/src/chevre/migrateIdentities.ts +1 -1
  86. package/example/src/chevre/migrateProjectSettings.ts +1 -1
  87. package/example/src/chevre/migrateRoomAdditionalProperties.ts +2 -2
  88. package/example/src/chevre/migrateRoomSectionAdditionalProperties.ts +2 -2
  89. package/example/src/chevre/note/findNotes.ts +1 -1
  90. package/example/src/chevre/note/upsertNotesByIdentifier.ts +1 -1
  91. package/example/src/chevre/notifyAbortedTasksByEmail.ts +2 -2
  92. package/example/src/chevre/notifyByEmail.ts +1 -1
  93. package/example/src/chevre/offerCatalog/updateManyOfferCatalogsByIds.ts +1 -1
  94. package/example/src/chevre/offerCatalog/upsertOfferCatalogItemsByIdentifier.ts +1 -1
  95. package/example/src/chevre/offerCatalog/upsertOfferCatalogsByIdentifier.ts +1 -1
  96. package/example/src/chevre/offers/checkIncludedInCatalogCount.ts +1 -1
  97. package/example/src/chevre/offers/projectItemListElement.ts +1 -1
  98. package/example/src/chevre/offers/searchAvaialbleAppliesToMovieTicketByOfferCatalogId.ts +1 -1
  99. package/example/src/chevre/offers/searchByOfferCatalogIdWithSortIndex.ts +1 -1
  100. package/example/src/chevre/offers/searchOfferCatalogItemAvailability.ts +1 -1
  101. package/example/src/chevre/offers/upsertOffersByIdentifier.ts +1 -1
  102. package/example/src/chevre/optimizeActions.ts +2 -2
  103. package/example/src/chevre/orderNumber/testRandomness.ts +1 -1
  104. package/example/src/chevre/orders/searchOrders.ts +1 -1
  105. package/example/src/chevre/orders/searchWithUnwoundAcceptedOffers.ts +1 -1
  106. package/example/src/chevre/pendingReservation/findEventSeatOffersBySection.ts +1 -1
  107. package/example/src/chevre/person/checkUserPoolClients.ts +1 -1
  108. package/example/src/chevre/person/cleanUpCognitoUsers.ts +2 -2
  109. package/example/src/chevre/person/cleanUpCognitoUsersByFetch.ts +2 -2
  110. package/example/src/chevre/person/cleanUpCreditCard.ts +1 -1
  111. package/example/src/chevre/place/adminEntranceGates.ts +1 -1
  112. package/example/src/chevre/place/adminHasPOS.ts +1 -1
  113. package/example/src/chevre/place/aggregateSeatingTypes.ts +1 -1
  114. package/example/src/chevre/place/checkEntranceGatesCount.ts +1 -1
  115. package/example/src/chevre/place/checkSectionCount.ts +1 -1
  116. package/example/src/chevre/place/findRooms.ts +1 -1
  117. package/example/src/chevre/place/findSections.ts +1 -1
  118. package/example/src/chevre/place/findSectionsByRoom.ts +1 -1
  119. package/example/src/chevre/place/migrateSectionIdentifier.ts +2 -2
  120. package/example/src/chevre/place/seatsJson2csv.ts +1 -1
  121. package/example/src/chevre/place/upsertMovieTheatersByBranchCode.ts +1 -1
  122. package/example/src/chevre/place/upsertRoomsByBranchCode.ts +1 -1
  123. package/example/src/chevre/place/upsertSeatSectionsByBranchCode.ts +1 -1
  124. package/example/src/chevre/processAction.ts +1 -1
  125. package/example/src/chevre/processOrder.ts +2 -2
  126. package/example/src/chevre/product/findHasOfferCatalog.ts +1 -1
  127. package/example/src/chevre/productOffer/publishMemberTierToken.ts +1 -1
  128. package/example/src/chevre/project/unsetProjectSettings.ts +1 -1
  129. package/example/src/chevre/projectEventFieldsById.ts +1 -1
  130. package/example/src/chevre/projectFields.ts +1 -1
  131. package/example/src/chevre/projectFieldsById.ts +1 -1
  132. package/example/src/chevre/projectOwnershipInfoFieldsById.ts +1 -1
  133. package/example/src/chevre/pushIncludedInDataCatalog.ts +1 -1
  134. package/example/src/chevre/reExportAction.ts +2 -2
  135. package/example/src/chevre/reIndex.ts +1 -1
  136. package/example/src/chevre/recreateRefundTasks.ts +2 -2
  137. package/example/src/chevre/roles/addAdminAcceptedPaymentMethodReadPermissionIfNotExists.ts +1 -1
  138. package/example/src/chevre/roles/addAdminAcceptedPaymentMethodWritePermissionIfNotExists.ts +1 -1
  139. package/example/src/chevre/roles/addAdminEventSeriesReadPermissionIfNotExists.ts +1 -1
  140. package/example/src/chevre/roles/addAdminMovieReadPermissionIfNotExists.ts +1 -1
  141. package/example/src/chevre/roles/addAdminNotePermissionIfNotExists.ts +1 -1
  142. package/example/src/chevre/roles/addAdminPaymentServiceReadPermissionIfNotExists.ts +1 -1
  143. package/example/src/chevre/roles/addAdminProductHasOfferCatalogReadPermissionIfNotExists.ts +1 -1
  144. package/example/src/chevre/roles/addAdminRoomReadPermissionIfNotExists.ts +1 -1
  145. package/example/src/chevre/roles/addAdminRoomWritePermissionIfNotExists.ts +1 -1
  146. package/example/src/chevre/roles/addAdminSellerEventOfferIfNotExists.ts +1 -1
  147. package/example/src/chevre/roles/addProjectCreatorRole.ts +1 -1
  148. package/example/src/chevre/roles/assignGlobalRoles.ts +1 -1
  149. package/example/src/chevre/roles/findPermissions.ts +2 -2
  150. package/example/src/chevre/roles/findRoleNames.ts +2 -2
  151. package/example/src/chevre/roles/removeConsolePermissionIfExists.ts +1 -1
  152. package/example/src/chevre/roles/removePermissionFromAPIRoles.ts +1 -1
  153. package/example/src/chevre/roles/removePermissionIfExists.ts +1 -1
  154. package/example/src/chevre/saveOfferCatalogItem.ts +1 -1
  155. package/example/src/chevre/saveWebSite.ts +1 -1
  156. package/example/src/chevre/searchAcceptedOfferIds.ts +1 -1
  157. package/example/src/chevre/searchActionsByPurpose.ts +1 -1
  158. package/example/src/chevre/searchAggregateOffers.ts +1 -1
  159. package/example/src/chevre/searchAggregations.ts +1 -1
  160. package/example/src/chevre/searchAuthorizations.ts +1 -1
  161. package/example/src/chevre/searchCheckMovieTicketResultYkknInfo.ts +1 -1
  162. package/example/src/chevre/searchEventHasOfferCatalog.ts +1 -1
  163. package/example/src/chevre/searchIdsByReservationNumber.ts +1 -1
  164. package/example/src/chevre/searchOfferCatalogItemListElement.ts +1 -1
  165. package/example/src/chevre/searchOffers.ts +1 -1
  166. package/example/src/chevre/searchProducts.ts +1 -1
  167. package/example/src/chevre/searchProjects.ts +1 -1
  168. package/example/src/chevre/searchReservationsByOrder.ts +1 -1
  169. package/example/src/chevre/searchSellersByAggregate.ts +1 -1
  170. package/example/src/chevre/searchSlicedAcceptedOffersByOrderNumber.ts +1 -1
  171. package/example/src/chevre/seller/adminMakesOffer.ts +1 -1
  172. package/example/src/chevre/sendEmailMessage.ts +1 -1
  173. package/example/src/chevre/settings/addOrderNumberSetting.ts +2 -2
  174. package/example/src/chevre/settings/addTransactionNumberSetting.ts +2 -2
  175. package/example/src/chevre/stockHolder/findSeatsBySection.ts +1 -1
  176. package/example/src/chevre/stockHolder/getSize.ts +2 -2
  177. package/example/src/chevre/stockHolder/projectPendingReservation.ts +1 -1
  178. package/example/src/chevre/stockHolder/searchSeats.ts +1 -1
  179. package/example/src/chevre/task/countPotentiallyRunning.ts +1 -1
  180. package/example/src/chevre/task/countTasks.ts +1 -1
  181. package/example/src/chevre/task/deleteRunsAtPassedCertainPeriod.ts +2 -2
  182. package/example/src/chevre/task/deleteUnexpectedTasks.ts +1 -1
  183. package/example/src/chevre/task/emitRunning.ts +2 -2
  184. package/example/src/chevre/transaction/processPlaceOrder.ts +1 -1
  185. package/example/src/chevre/transaction/processReturnOrder.ts +1 -1
  186. package/example/src/chevre/transaction/startExportTasks.ts +1 -1
  187. package/example/src/chevre/transactionNumber/publishByTimestamp.ts +1 -1
  188. package/example/src/chevre/transactionNumber/testRandomness.ts +1 -1
  189. package/example/src/chevre/unsetUnnecessaryFields.ts +2 -2
  190. package/example/src/chevre/updateEventPartiallyById.ts +1 -1
  191. package/example/src/chevre/updateProjectAggregateReservation.ts +1 -1
  192. package/example/src/chevre/validateCheckMovieTicketActions.ts +2 -2
  193. package/example/src/duration.ts +1 -1
  194. package/example/src/moment.ts +1 -1
  195. package/example/src/mongoConnectionList.ts +1 -1
  196. package/example/src/objectId.ts +1 -1
  197. package/lib/chevre/credentials.js +26 -3
  198. package/lib/chevre/emailMessageBuilder.js +25 -2
  199. package/lib/chevre/errorHandler.js +26 -8
  200. package/lib/chevre/eventEmitter/assetTransaction.js +0 -1
  201. package/lib/chevre/eventEmitter/task.js +0 -1
  202. package/lib/chevre/eventEmitter/transaction.js +0 -1
  203. package/lib/chevre/eventEmitter.js +24 -1
  204. package/lib/chevre/factory/accountTransactionIdentifier.js +24 -1
  205. package/lib/chevre/factory/availableProductTypes.js +24 -1
  206. package/lib/chevre/factory/event.js +24 -1
  207. package/lib/chevre/factory/taskIdentifier.js +25 -2
  208. package/lib/chevre/factory/transactionNumber.js +29 -5
  209. package/lib/chevre/index.js +32 -9
  210. package/lib/chevre/repo/acceptedOffer.js +24 -2
  211. package/lib/chevre/repo/acceptedPaymentMethod.js +24 -2
  212. package/lib/chevre/repo/account.js +24 -18
  213. package/lib/chevre/repo/accountTitle.js +24 -1
  214. package/lib/chevre/repo/accountTransaction.js +29 -10
  215. package/lib/chevre/repo/accountingReport.js +24 -1
  216. package/lib/chevre/repo/action.js +29 -10
  217. package/lib/chevre/repo/additionalProperty.js +24 -3
  218. package/lib/chevre/repo/advanceBookingRequirement.js +24 -2
  219. package/lib/chevre/repo/aggregateOffer.js +32 -11
  220. package/lib/chevre/repo/aggregateOrder.js +24 -1
  221. package/lib/chevre/repo/aggregateReservation.js +24 -1
  222. package/lib/chevre/repo/aggregation.js +24 -1
  223. package/lib/chevre/repo/assetTransaction.js +29 -20
  224. package/lib/chevre/repo/authorization.js +30 -11
  225. package/lib/chevre/repo/categoryCode.js +24 -6
  226. package/lib/chevre/repo/comment.js +24 -2
  227. package/lib/chevre/repo/concurrentLock.js +24 -1
  228. package/lib/chevre/repo/confirmationNumber.js +8 -9
  229. package/lib/chevre/repo/creativeWork.js +24 -7
  230. package/lib/chevre/repo/credentials.js +0 -1
  231. package/lib/chevre/repo/customer.js +24 -2
  232. package/lib/chevre/repo/customerType.js +0 -1
  233. package/lib/chevre/repo/emailMessage.js +24 -2
  234. package/lib/chevre/repo/event.js +25 -23
  235. package/lib/chevre/repo/eventOffer.js +24 -1
  236. package/lib/chevre/repo/eventSellerMakesOffer.js +24 -1
  237. package/lib/chevre/repo/eventSeries.js +28 -19
  238. package/lib/chevre/repo/identity.js +24 -2
  239. package/lib/chevre/repo/identityProvider.js +24 -2
  240. package/lib/chevre/repo/issuer.js +24 -1
  241. package/lib/chevre/repo/member.js +24 -2
  242. package/lib/chevre/repo/memberProgram.js +24 -1
  243. package/lib/chevre/repo/merchantReturnPolicy.js +24 -3
  244. package/lib/chevre/repo/message.js +24 -1
  245. package/lib/chevre/repo/mongoose/onIndexCreated.js +0 -1
  246. package/lib/chevre/repo/mongoose/schemas/eventSeries.js +24 -1
  247. package/lib/chevre/repo/mongoose/schemas/member.js +24 -1
  248. package/lib/chevre/repo/mongoose/schemas/task.js +0 -1
  249. package/lib/chevre/repo/mongoose/schemas/transaction.js +24 -1
  250. package/lib/chevre/repo/movieTicketType.js +24 -7
  251. package/lib/chevre/repo/note.js +24 -2
  252. package/lib/chevre/repo/noteAboutOrder.js +24 -1
  253. package/lib/chevre/repo/offer/unitPriceInCatalog.js +24 -3
  254. package/lib/chevre/repo/offerCatalog.js +27 -5
  255. package/lib/chevre/repo/offerCatalogItem.js +24 -2
  256. package/lib/chevre/repo/offerItemCondition.js +24 -1
  257. package/lib/chevre/repo/order.js +24 -40
  258. package/lib/chevre/repo/orderInTransaction.js +24 -1
  259. package/lib/chevre/repo/orderNumber.js +31 -9
  260. package/lib/chevre/repo/ownershipInfo.js +25 -10
  261. package/lib/chevre/repo/passport.js +33 -8
  262. package/lib/chevre/repo/paymentMethod/creditCard.js +25 -4
  263. package/lib/chevre/repo/paymentService.js +24 -3
  264. package/lib/chevre/repo/paymentServiceChannel.js +24 -2
  265. package/lib/chevre/repo/paymentServiceProvider.js +24 -1
  266. package/lib/chevre/repo/pendingReservation.js +29 -6
  267. package/lib/chevre/repo/permit.js +24 -1
  268. package/lib/chevre/repo/person.js +24 -20
  269. package/lib/chevre/repo/place/busStop.js +24 -5
  270. package/lib/chevre/repo/place/entranceGate.js +24 -1
  271. package/lib/chevre/repo/place/hasPOS.js +24 -1
  272. package/lib/chevre/repo/place/movieTheater.js +24 -4
  273. package/lib/chevre/repo/place/screeningRoom.js +24 -3
  274. package/lib/chevre/repo/place/seat.js +24 -8
  275. package/lib/chevre/repo/place/section.js +24 -6
  276. package/lib/chevre/repo/potentialAction.js +24 -2
  277. package/lib/chevre/repo/priceSpecification.js +24 -7
  278. package/lib/chevre/repo/product.js +24 -3
  279. package/lib/chevre/repo/productHasOfferCatalog.js +24 -1
  280. package/lib/chevre/repo/productModel.js +24 -2
  281. package/lib/chevre/repo/productOffer.js +24 -1
  282. package/lib/chevre/repo/project.js +24 -1
  283. package/lib/chevre/repo/projectMakesOffer.js +24 -1
  284. package/lib/chevre/repo/rateLimit/offer.js +32 -7
  285. package/lib/chevre/repo/reservation.js +24 -55
  286. package/lib/chevre/repo/role.js +24 -2
  287. package/lib/chevre/repo/seller.js +24 -4
  288. package/lib/chevre/repo/sellerMakesOffer.js +24 -1
  289. package/lib/chevre/repo/sellerPaymentAccepted.js +24 -1
  290. package/lib/chevre/repo/sellerReturnPolicy.js +24 -2
  291. package/lib/chevre/repo/serviceOutput.js +24 -3
  292. package/lib/chevre/repo/serviceOutputIdentifier.js +30 -5
  293. package/lib/chevre/repo/setting/jwt.js +24 -1
  294. package/lib/chevre/repo/stockHolder.js +24 -3
  295. package/lib/chevre/repo/task.js +31 -12
  296. package/lib/chevre/repo/ticket.js +24 -1
  297. package/lib/chevre/repo/transaction.js +32 -30
  298. package/lib/chevre/repo/transactionNumber.js +31 -5
  299. package/lib/chevre/repo/transactionNumberCounter.js +24 -2
  300. package/lib/chevre/repo/transactionProcess.js +31 -5
  301. package/lib/chevre/repo/trip.js +24 -3
  302. package/lib/chevre/repo/webSite.js +25 -3
  303. package/lib/chevre/repository.js +114 -92
  304. package/lib/chevre/service/account.js +24 -4
  305. package/lib/chevre/service/accountTransaction/deposit.js +24 -1
  306. package/lib/chevre/service/accountTransaction/factory.js +24 -1
  307. package/lib/chevre/service/accountTransaction/transfer.js +24 -4
  308. package/lib/chevre/service/accountTransaction/withdraw.js +24 -1
  309. package/lib/chevre/service/accountTransaction.js +27 -7
  310. package/lib/chevre/service/aggregation/event/aggregateOffers.js +33 -7
  311. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.js +33 -7
  312. package/lib/chevre/service/aggregation/event/findEventOffers.js +24 -1
  313. package/lib/chevre/service/aggregation/event/importFromCOA.js +8 -6
  314. package/lib/chevre/service/aggregation/project.js +39 -13
  315. package/lib/chevre/service/aggregation/system.js +75 -49
  316. package/lib/chevre/service/aggregation.js +26 -3
  317. package/lib/chevre/service/assetTransaction/cancelReservation/factory.js +24 -1
  318. package/lib/chevre/service/assetTransaction/cancelReservation/start.js +24 -2
  319. package/lib/chevre/service/assetTransaction/cancelReservation/startAndConfirm.js +24 -1
  320. package/lib/chevre/service/assetTransaction/cancelReservation.js +24 -3
  321. package/lib/chevre/service/assetTransaction/cancelReservationCOA/factory.js +24 -1
  322. package/lib/chevre/service/assetTransaction/fixInformAction.js +24 -1
  323. package/lib/chevre/service/assetTransaction/moneyTransfer/potentialActions.js +24 -1
  324. package/lib/chevre/service/assetTransaction/moneyTransfer.js +31 -7
  325. package/lib/chevre/service/assetTransaction/pay/cancel.js +24 -1
  326. package/lib/chevre/service/assetTransaction/pay/check.js +25 -2
  327. package/lib/chevre/service/assetTransaction/pay/confirm.js +24 -1
  328. package/lib/chevre/service/assetTransaction/pay/exportTasksById.js +29 -4
  329. package/lib/chevre/service/assetTransaction/pay/publishPaymentUrl.js +25 -4
  330. package/lib/chevre/service/assetTransaction/pay/searchGMOTrade.js +25 -2
  331. package/lib/chevre/service/assetTransaction/pay/start/account/validation.js +24 -1
  332. package/lib/chevre/service/assetTransaction/pay/start/factory.js +24 -2
  333. package/lib/chevre/service/assetTransaction/pay/start/preStart/validateAcceptedPaymentMethodIfNeeded.js +29 -5
  334. package/lib/chevre/service/assetTransaction/pay/start/preStart/validateSeller.js +24 -1
  335. package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeAccount.js +25 -2
  336. package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeCreditCard.js +24 -1
  337. package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeMovieTicket.js +24 -1
  338. package/lib/chevre/service/assetTransaction/pay/start.js +24 -1
  339. package/lib/chevre/service/assetTransaction/refund/factory.js +24 -1
  340. package/lib/chevre/service/assetTransaction/refund/potentialActions.js +24 -1
  341. package/lib/chevre/service/assetTransaction/refund.js +29 -5
  342. package/lib/chevre/service/assetTransaction/registerService/factory.js +31 -5
  343. package/lib/chevre/service/assetTransaction/registerService/potentialActions.js +31 -7
  344. package/lib/chevre/service/assetTransaction/registerService.js +26 -7
  345. package/lib/chevre/service/assetTransaction/reserve/cancel.js +24 -1
  346. package/lib/chevre/service/assetTransaction/reserve/confirm/factory.js +0 -1
  347. package/lib/chevre/service/assetTransaction/reserve/confirm.js +24 -1
  348. package/lib/chevre/service/assetTransaction/reserve/exportTasksById.js +24 -2
  349. package/lib/chevre/service/assetTransaction/reserve/start/createSubReservations.js +40 -18
  350. package/lib/chevre/service/assetTransaction/reserve/start/factory/createPointAward.js +24 -1
  351. package/lib/chevre/service/assetTransaction/reserve/start/factory/createReservation.js +34 -10
  352. package/lib/chevre/service/assetTransaction/reserve/start/factory/createStartParams.js +24 -1
  353. package/lib/chevre/service/assetTransaction/reserve/start/factory/price.js +24 -1
  354. package/lib/chevre/service/assetTransaction/reserve/start.js +41 -17
  355. package/lib/chevre/service/assetTransaction/reserve/validateStartRequest/fixExtendedEventOffer.js +29 -3
  356. package/lib/chevre/service/assetTransaction/reserve/validateStartRequest/validateIssuedOfferIfExists.js +32 -6
  357. package/lib/chevre/service/assetTransaction/reserve/validateStartRequest/validateMemberTierIfExists.js +30 -5
  358. package/lib/chevre/service/assetTransaction/reserve/validateStartRequest/verifyTicketTokenAsNeeded.js +24 -3
  359. package/lib/chevre/service/assetTransaction/reserve/validateStartRequest.js +31 -5
  360. package/lib/chevre/service/assetTransaction/reserveCOA/cancel.js +24 -1
  361. package/lib/chevre/service/assetTransaction/reserveCOA/factory.js +24 -1
  362. package/lib/chevre/service/assetTransaction.js +30 -7
  363. package/lib/chevre/service/delivery/factory.js +30 -4
  364. package/lib/chevre/service/delivery/product/factory.js +32 -6
  365. package/lib/chevre/service/delivery/reservation/factory.js +30 -4
  366. package/lib/chevre/service/delivery.js +33 -9
  367. package/lib/chevre/service/event/processUpdateMovieTheater.js +24 -4
  368. package/lib/chevre/service/event/saveScreeningEventSeries.js +40 -18
  369. package/lib/chevre/service/event/saveScreeningEvents.js +36 -16
  370. package/lib/chevre/service/event.js +38 -15
  371. package/lib/chevre/service/moneyTransfer.js +31 -5
  372. package/lib/chevre/service/notification/factory.js +31 -7
  373. package/lib/chevre/service/notification/notifyAbortedTasksByEmail.js +29 -3
  374. package/lib/chevre/service/notification/notifyByEmail.js +25 -4
  375. package/lib/chevre/service/notification/sendEmailMessage.js +25 -2
  376. package/lib/chevre/service/notification/triggerWebhook.js +25 -4
  377. package/lib/chevre/service/offer/any.js +29 -3
  378. package/lib/chevre/service/offer/event/authorize/defaultOffer.js +24 -1
  379. package/lib/chevre/service/offer/event/authorize/factory.js +34 -10
  380. package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre/requestedProgramMembershipUsed2permit.js +24 -2
  381. package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre.js +25 -2
  382. package/lib/chevre/service/offer/event/authorize.js +24 -4
  383. package/lib/chevre/service/offer/event/checkAvailability.js +29 -3
  384. package/lib/chevre/service/offer/event/importFromCOA/factory.js +25 -3
  385. package/lib/chevre/service/offer/event/importFromCOA.js +24 -1
  386. package/lib/chevre/service/offer/event/issueEventOfferTicket.js +29 -3
  387. package/lib/chevre/service/offer/event/searchEventTicketOffers.js +24 -4
  388. package/lib/chevre/service/offer/event/searchOfferAppliesToMovieTicket.js +24 -1
  389. package/lib/chevre/service/offer/event/searchOfferCatalogItemAvailability.js +24 -3
  390. package/lib/chevre/service/offer/event/searchOfferCatalogItems.js +24 -2
  391. package/lib/chevre/service/offer/event/searchOffersByIds.js +29 -6
  392. package/lib/chevre/service/offer/event/searchPriceSpecs4event.js +24 -1
  393. package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4chevre.js +24 -1
  394. package/lib/chevre/service/offer/event/voidTransaction.js +24 -3
  395. package/lib/chevre/service/offer/event/voidTransactionByActionId.js +24 -1
  396. package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/authorize.js +25 -4
  397. package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/factory.js +24 -1
  398. package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer.js +24 -1
  399. package/lib/chevre/service/offer/eventServiceByCOA/authorize/factory.js +32 -10
  400. package/lib/chevre/service/offer/eventServiceByCOA/authorize/validateAcceptedOffers.js +24 -4
  401. package/lib/chevre/service/offer/eventServiceByCOA/authorize.js +29 -4
  402. package/lib/chevre/service/offer/eventServiceByCOA/authorizeByAcceptAction.js +24 -1
  403. package/lib/chevre/service/offer/eventServiceByCOA/changeOffers.js +29 -5
  404. package/lib/chevre/service/offer/eventServiceByCOA/findAcceptAction.js +24 -1
  405. package/lib/chevre/service/offer/factory.js +24 -2
  406. package/lib/chevre/service/offer/moneyTransfer/authorize.js +30 -4
  407. package/lib/chevre/service/offer/moneyTransfer/returnMoneyTransfer.js +31 -5
  408. package/lib/chevre/service/offer/moneyTransfer/settleTransaction.js +25 -2
  409. package/lib/chevre/service/offer/moneyTransfer/voidTransaction.js +25 -2
  410. package/lib/chevre/service/offer/onEventChanged.js +31 -6
  411. package/lib/chevre/service/offer/product/factory.js +29 -6
  412. package/lib/chevre/service/offer/product/searchProductOffers.js +24 -2
  413. package/lib/chevre/service/offer/product.js +25 -4
  414. package/lib/chevre/service/offer.js +34 -9
  415. package/lib/chevre/service/order/confirmPayTransaction.js +25 -2
  416. package/lib/chevre/service/order/createAccountingReportIfNotExist.js +32 -6
  417. package/lib/chevre/service/order/deleteOrder.js +24 -2
  418. package/lib/chevre/service/order/findPlaceOrderTransaction.js +24 -1
  419. package/lib/chevre/service/order/onAssetTransactionStatusChanged.js +29 -5
  420. package/lib/chevre/service/order/onOrderStatusChanged/onOrderCancelled/factory.js +24 -1
  421. package/lib/chevre/service/order/onOrderStatusChanged/onOrderCancelled.js +29 -3
  422. package/lib/chevre/service/order/onOrderStatusChanged/onOrderDelivered/factory.js +24 -1
  423. package/lib/chevre/service/order/onOrderStatusChanged/onOrderDelivered.js +29 -3
  424. package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially/factory.js +24 -1
  425. package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially.js +29 -3
  426. package/lib/chevre/service/order/onOrderStatusChanged/onOrderInTransit.js +29 -3
  427. package/lib/chevre/service/order/onOrderStatusChanged/onOrderPaymentDue.js +29 -3
  428. package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/createSendEmailMessageTaskIfNotExist.js +25 -2
  429. package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/factory.js +25 -3
  430. package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing/processOrder.js +30 -4
  431. package/lib/chevre/service/order/onOrderStatusChanged/onOrderProcessing.js +29 -3
  432. package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned/factory.js +24 -1
  433. package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned.js +29 -3
  434. package/lib/chevre/service/order/onOrderUpdated/factory.js +24 -1
  435. package/lib/chevre/service/order/onOrderUpdated.js +24 -1
  436. package/lib/chevre/service/order/payOrder.js +24 -1
  437. package/lib/chevre/service/order/placeOrder/createPlacingOrderFromExistingTransaction.js +24 -2
  438. package/lib/chevre/service/order/placeOrder/factory/orderedItem.js +24 -1
  439. package/lib/chevre/service/order/placeOrder/factory.js +29 -3
  440. package/lib/chevre/service/order/placeOrder/voidAcceptedOfferIfNecessary.js +5 -2
  441. package/lib/chevre/service/order/placeOrder.js +24 -2
  442. package/lib/chevre/service/order/placeOrderWithoutTransaction.js +24 -1
  443. package/lib/chevre/service/order/returnOrder.js +29 -4
  444. package/lib/chevre/service/order/sendOrder.js +29 -4
  445. package/lib/chevre/service/payment/any/authorize/fixTransactionNumber.js +24 -1
  446. package/lib/chevre/service/payment/any/authorize/handlePrePublishedPaymentMethodIdOnAuthorizing.js +29 -5
  447. package/lib/chevre/service/payment/any/factory.js +31 -6
  448. package/lib/chevre/service/payment/any/fixOrderAsNeeded.js +24 -1
  449. package/lib/chevre/service/payment/any/onPayActionCompleted.js +24 -1
  450. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onPaid.js +32 -6
  451. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onRefunded.js +30 -4
  452. package/lib/chevre/service/payment/any/onPaymentStatusChanged.js +24 -1
  453. package/lib/chevre/service/payment/any/onRefundActionCompletedOrFailed.js +24 -2
  454. package/lib/chevre/service/payment/any/person2username.js +24 -2
  455. package/lib/chevre/service/payment/any/publishPaymentUrl/fixTransactionNumberOnPublishPaymentUrl.js +24 -1
  456. package/lib/chevre/service/payment/any/verifyTicketTokenAsNeeded.js +24 -3
  457. package/lib/chevre/service/payment/any.js +26 -8
  458. package/lib/chevre/service/payment/creditCard/authorize/handleAuthorizeError.js +29 -3
  459. package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard.js +25 -3
  460. package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard3ds.js +24 -1
  461. package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard3dsResult2recipe.js +24 -1
  462. package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCardResult2recipe.js +24 -1
  463. package/lib/chevre/service/payment/creditCard/authorize.js +30 -4
  464. package/lib/chevre/service/payment/creditCard/factory.js +24 -1
  465. package/lib/chevre/service/payment/creditCard/getGMOInfoFromSeller.js +24 -1
  466. package/lib/chevre/service/payment/creditCard/payCreditCard.js +25 -2
  467. package/lib/chevre/service/payment/creditCard/refundCreditCard.js +25 -4
  468. package/lib/chevre/service/payment/creditCard/searchGMOTrade.js +25 -2
  469. package/lib/chevre/service/payment/creditCard/voidTransaction.js +25 -3
  470. package/lib/chevre/service/payment/faceToFace.js +24 -1
  471. package/lib/chevre/service/payment/factory/createPayObjectServiceOutput.js +24 -1
  472. package/lib/chevre/service/payment/factory.js +24 -2
  473. package/lib/chevre/service/payment/movieTicket/authorize.js +24 -3
  474. package/lib/chevre/service/payment/movieTicket/checkMovieTicket.js +24 -1
  475. package/lib/chevre/service/payment/movieTicket/factory.js +31 -5
  476. package/lib/chevre/service/payment/movieTicket/getCredentials.js +24 -1
  477. package/lib/chevre/service/payment/movieTicket/payMovieTicket.js +25 -2
  478. package/lib/chevre/service/payment/movieTicket/processPurchaseNumberAuth.js +30 -4
  479. package/lib/chevre/service/payment/movieTicket/refundMovieTicket.js +31 -6
  480. package/lib/chevre/service/payment/movieTicket/validation.js +29 -4
  481. package/lib/chevre/service/payment/movieTicket/voidTransaction.js +24 -1
  482. package/lib/chevre/service/payment/paymentCard.js +31 -6
  483. package/lib/chevre/service/permit.js +25 -2
  484. package/lib/chevre/service/product.js +30 -5
  485. package/lib/chevre/service/report/ownershipInfo.js +6 -3
  486. package/lib/chevre/service/report/telemetry.js +36 -25
  487. package/lib/chevre/service/report.js +25 -2
  488. package/lib/chevre/service/reserve/cancelReservation.js +31 -8
  489. package/lib/chevre/service/reserve/checkInReservation.js +29 -3
  490. package/lib/chevre/service/reserve/confirmReservation.js +29 -4
  491. package/lib/chevre/service/reserve/factory.js +24 -1
  492. package/lib/chevre/service/reserve/findByCode.js +24 -1
  493. package/lib/chevre/service/reserve/potentialActions/onPendingReservationCanceled.js +24 -1
  494. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.js +24 -2
  495. package/lib/chevre/service/reserve/potentialActions/onReservationCheckedIn.js +24 -2
  496. package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.js +24 -3
  497. package/lib/chevre/service/reserve/potentialActions/onReservationUsed.js +31 -6
  498. package/lib/chevre/service/reserve/potentialActions/onReservationsCreated.js +24 -1
  499. package/lib/chevre/service/reserve/searchByOrder.js +24 -2
  500. package/lib/chevre/service/reserve/useReservation.js +29 -5
  501. package/lib/chevre/service/reserve/verifyToken4reservation.js +24 -1
  502. package/lib/chevre/service/reserveCOA/cancelReservation.js +24 -2
  503. package/lib/chevre/service/reserveCOA/factory.js +24 -1
  504. package/lib/chevre/service/task/acceptCOAOffer.js +25 -3
  505. package/lib/chevre/service/task/aggregateOffers.js +24 -1
  506. package/lib/chevre/service/task/aggregateScreeningEvent.js +25 -2
  507. package/lib/chevre/service/task/authorizePayment.js +24 -1
  508. package/lib/chevre/service/task/cancelPendingReservation.js +25 -2
  509. package/lib/chevre/service/task/cancelReservation.js +24 -1
  510. package/lib/chevre/service/task/checkMovieTicket.js +24 -1
  511. package/lib/chevre/service/task/checkResource.js +24 -1
  512. package/lib/chevre/service/task/confirmRegisterServiceTransaction.js +29 -3
  513. package/lib/chevre/service/task/confirmReserveTransaction.js +25 -5
  514. package/lib/chevre/service/task/createAccountingReport.js +24 -1
  515. package/lib/chevre/service/task/deletePerson.js +32 -8
  516. package/lib/chevre/service/task/deleteTransaction.js +24 -1
  517. package/lib/chevre/service/task/givePointAward.js +25 -2
  518. package/lib/chevre/service/task/importEventCapacitiesFromCOA.js +26 -3
  519. package/lib/chevre/service/task/importEventsFromCOA.js +26 -3
  520. package/lib/chevre/service/task/importOffersFromCOA.js +26 -3
  521. package/lib/chevre/service/task/moneyTransfer.js +25 -2
  522. package/lib/chevre/service/task/onAuthorizationCreated.js +24 -2
  523. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByAggregateOffer.js +24 -1
  524. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByEventSeries.js +24 -1
  525. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByMovieTheater.js +24 -1
  526. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByOfferCatalog.js +24 -1
  527. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByProduct.js +24 -1
  528. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByRoom.js +24 -1
  529. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesBySeller.js +24 -2
  530. package/lib/chevre/service/task/onResourceDeleted.js +24 -2
  531. package/lib/chevre/service/task/onResourceUpdated/onAggregateOfferUpdated.js +24 -1
  532. package/lib/chevre/service/task/onResourceUpdated/onHasPOSUpdated.js +24 -1
  533. package/lib/chevre/service/task/onResourceUpdated/onOfferCatalogUpdated.js +24 -1
  534. package/lib/chevre/service/task/onResourceUpdated/syncCategoryCode.js +24 -1
  535. package/lib/chevre/service/task/onResourceUpdated/syncOfferCatalog.js +24 -1
  536. package/lib/chevre/service/task/onResourceUpdated.js +24 -6
  537. package/lib/chevre/service/task/pay.js +24 -1
  538. package/lib/chevre/service/task/payment/invalidatePaymentUrlByTask.js +25 -2
  539. package/lib/chevre/service/task/payment/payByTask.js +33 -7
  540. package/lib/chevre/service/task/payment/refundByTask.js +28 -5
  541. package/lib/chevre/service/task/payment/voidPaymentByTask.js +28 -5
  542. package/lib/chevre/service/task/publishPaymentUrl.js +24 -1
  543. package/lib/chevre/service/task/refund.js +24 -1
  544. package/lib/chevre/service/task/returnMoneyTransfer.js +24 -1
  545. package/lib/chevre/service/task/returnPayTransaction.js +30 -5
  546. package/lib/chevre/service/task/returnPointAward.js +25 -2
  547. package/lib/chevre/service/task/returnReserveTransaction.js +32 -6
  548. package/lib/chevre/service/task/sendOrder.js +24 -1
  549. package/lib/chevre/service/task/syncResourcesFromCOA.js +33 -12
  550. package/lib/chevre/service/task/voidPayment.js +24 -1
  551. package/lib/chevre/service/task/voidReserveTransaction.js +25 -2
  552. package/lib/chevre/service/task.js +30 -8
  553. package/lib/chevre/service/taskHandler/onOperationFailed/informTaskIfNeeded.js +29 -3
  554. package/lib/chevre/service/taskHandler/onOperationFailed.js +24 -1
  555. package/lib/chevre/service/taskHandler.js +34 -9
  556. package/lib/chevre/service/transaction/deleteTransaction.js +24 -5
  557. package/lib/chevre/service/transaction/moneyTransfer/exportTasks/factory.js +30 -7
  558. package/lib/chevre/service/transaction/moneyTransfer/factory.js +24 -1
  559. package/lib/chevre/service/transaction/moneyTransfer/potentialActions.js +24 -1
  560. package/lib/chevre/service/transaction/moneyTransfer.js +33 -9
  561. package/lib/chevre/service/transaction/placeOrder/confirm/factory/result.js +24 -1
  562. package/lib/chevre/service/transaction/placeOrder/confirm/potentialActions/sendEmailMessage.js +25 -2
  563. package/lib/chevre/service/transaction/placeOrder/confirm/publishCode.js +24 -1
  564. package/lib/chevre/service/transaction/placeOrder/confirm/validation/validateInvoiceReferencesOrder.js +29 -3
  565. package/lib/chevre/service/transaction/placeOrder/confirm/validation/validateMovieTicket.js +29 -5
  566. package/lib/chevre/service/transaction/placeOrder/confirm/validation/validatePrice.js +24 -1
  567. package/lib/chevre/service/transaction/placeOrder/confirm/validation.js +29 -5
  568. package/lib/chevre/service/transaction/placeOrder/confirm.js +34 -12
  569. package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.js +30 -6
  570. package/lib/chevre/service/transaction/placeOrder/exportTasksById.js +29 -3
  571. package/lib/chevre/service/transaction/placeOrder/publishConfirmationNumberIfNotExist.js +24 -1
  572. package/lib/chevre/service/transaction/placeOrder/publishOrderNumberIfNotExist.js +24 -1
  573. package/lib/chevre/service/transaction/placeOrder/start/factory.js +24 -1
  574. package/lib/chevre/service/transaction/placeOrder/start/validateStartRequest.js +25 -3
  575. package/lib/chevre/service/transaction/placeOrder/start.js +24 -1
  576. package/lib/chevre/service/transaction/returnOrder/exportTasks/factory.js +30 -5
  577. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPaymentMethod.js +25 -2
  578. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPointAward.js +24 -3
  579. package/lib/chevre/service/transaction/returnOrder/potentialActions/sendEmailMessage.js +25 -2
  580. package/lib/chevre/service/transaction/returnOrder/potentialActions.js +24 -1
  581. package/lib/chevre/service/transaction/returnOrder/preStart/findApplicableReturnPolicy.js +43 -19
  582. package/lib/chevre/service/transaction/returnOrder/preStart/getReturnPolicyByProject.js +24 -1
  583. package/lib/chevre/service/transaction/returnOrder/preStart.js +29 -4
  584. package/lib/chevre/service/transaction/returnOrder.js +29 -4
  585. package/lib/chevre/service/transaction.js +27 -4
  586. package/lib/chevre/service/validation/validateEvent.js +1 -1
  587. package/lib/chevre/service/validation/validateOrder.js +35 -11
  588. package/lib/chevre/service.js +46 -26
  589. package/lib/chevre/settings.js +0 -1
  590. package/lib/index.js +24 -2
  591. package/package.json +7 -7
@@ -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.ReservationRepo = void 0;
4
27
  const reservation_1 = require("./mongoose/schemas/reservation");
5
- const factory = require("../factory");
28
+ const factory = __importStar(require("../factory"));
6
29
  const settings_1 = require("../settings");
7
30
  /**
8
31
  * 予約リポジトリ
@@ -13,7 +36,6 @@ class ReservationRepo {
13
36
  constructor(connection) {
14
37
  this.reservationModel = connection.model(reservation_1.modelName, (0, reservation_1.createSchema)());
15
38
  }
16
- // tslint:disable-next-line:cyclomatic-complexity max-func-body-length
17
39
  static CREATE_MONGO_CONDITIONS(params) {
18
40
  // MongoDB検索条件
19
41
  const andConditions = [
@@ -27,12 +49,10 @@ class ReservationRepo {
27
49
  if (typeof providerIdEq === 'string') {
28
50
  andConditions.push({ 'provider.id': { $eq: providerIdEq } });
29
51
  }
30
- // tslint:disable-next-line:no-single-line-block-comment
31
52
  /* istanbul ignore else */
32
53
  if (Array.isArray(params.ids)) {
33
54
  andConditions.push({ _id: { $in: params.ids } });
34
55
  }
35
- // tslint:disable-next-line:no-single-line-block-comment
36
56
  /* istanbul ignore else */
37
57
  if (params.id !== undefined && params.id !== null) {
38
58
  if (typeof params.id.$eq === 'string') {
@@ -48,7 +68,6 @@ class ReservationRepo {
48
68
  andConditions.push({ _id: { $nin: params.id.$nin } });
49
69
  }
50
70
  }
51
- // tslint:disable-next-line:no-single-line-block-comment
52
71
  /* istanbul ignore else */
53
72
  if (Array.isArray(params.reservationNumbers)) {
54
73
  andConditions.push({
@@ -57,7 +76,6 @@ class ReservationRepo {
57
76
  }
58
77
  });
59
78
  }
60
- // tslint:disable-next-line:no-single-line-block-comment
61
79
  /* istanbul ignore else */
62
80
  if (params.reservationNumber !== undefined && params.reservationNumber !== null) {
63
81
  if (typeof params.reservationNumber === 'string') {
@@ -100,7 +118,6 @@ class ReservationRepo {
100
118
  }
101
119
  }
102
120
  }
103
- // tslint:disable-next-line:no-single-line-block-comment
104
121
  /* istanbul ignore else */
105
122
  if (params.additionalTicketText !== undefined && params.additionalTicketText !== null) {
106
123
  if (typeof params.additionalTicketText === 'string') {
@@ -169,26 +186,22 @@ class ReservationRepo {
169
186
  if (Array.isArray(reservationStatusIn)) {
170
187
  andConditions.push({ reservationStatus: { $in: reservationStatusIn } });
171
188
  }
172
- // tslint:disable-next-line:no-single-line-block-comment
173
189
  /* istanbul ignore else */
174
190
  if (Array.isArray(params.reservationStatuses)) {
175
191
  andConditions.push({ reservationStatus: { $in: params.reservationStatuses } });
176
192
  }
177
- // tslint:disable-next-line:no-single-line-block-comment
178
193
  /* istanbul ignore else */
179
194
  if (params.modifiedFrom instanceof Date) {
180
195
  andConditions.push({
181
196
  modifiedTime: { $gte: params.modifiedFrom }
182
197
  });
183
198
  }
184
- // tslint:disable-next-line:no-single-line-block-comment
185
199
  /* istanbul ignore else */
186
200
  if (params.modifiedThrough instanceof Date) {
187
201
  andConditions.push({
188
202
  modifiedTime: { $lte: params.modifiedThrough }
189
203
  });
190
204
  }
191
- // tslint:disable-next-line:no-single-line-block-comment
192
205
  /* istanbul ignore else */
193
206
  if (params.bookingFrom instanceof Date) {
194
207
  andConditions.push({
@@ -198,7 +211,6 @@ class ReservationRepo {
198
211
  }
199
212
  });
200
213
  }
201
- // tslint:disable-next-line:no-single-line-block-comment
202
214
  /* istanbul ignore else */
203
215
  if (params.bookingThrough instanceof Date) {
204
216
  andConditions.push({
@@ -258,10 +270,8 @@ class ReservationRepo {
258
270
  });
259
271
  }
260
272
  }
261
- // tslint:disable-next-line:no-single-line-block-comment
262
273
  /* istanbul ignore else */
263
274
  if (params.reservationFor !== undefined) {
264
- // tslint:disable-next-line:no-single-line-block-comment
265
275
  /* istanbul ignore else */
266
276
  if (params.reservationFor.typeOf !== undefined) {
267
277
  andConditions.push({
@@ -271,7 +281,6 @@ class ReservationRepo {
271
281
  }
272
282
  });
273
283
  }
274
- // tslint:disable-next-line:no-single-line-block-comment
275
284
  /* istanbul ignore else */
276
285
  if (Array.isArray(params.reservationFor.ids)) {
277
286
  andConditions.push({
@@ -281,10 +290,8 @@ class ReservationRepo {
281
290
  }
282
291
  });
283
292
  }
284
- // tslint:disable-next-line:no-single-line-block-comment
285
293
  /* istanbul ignore else */
286
294
  if (params.reservationFor.location !== undefined) {
287
- // tslint:disable-next-line:no-single-line-block-comment
288
295
  /* istanbul ignore else */
289
296
  if (Array.isArray(params.reservationFor.location.ids)) {
290
297
  andConditions.push({
@@ -294,7 +301,6 @@ class ReservationRepo {
294
301
  }
295
302
  });
296
303
  }
297
- // tslint:disable-next-line:no-single-line-block-comment
298
304
  /* istanbul ignore else */
299
305
  if (Array.isArray(params.reservationFor.location.branchCodes)) {
300
306
  andConditions.push({
@@ -305,7 +311,6 @@ class ReservationRepo {
305
311
  });
306
312
  }
307
313
  }
308
- // tslint:disable-next-line:no-single-line-block-comment
309
314
  /* istanbul ignore else */
310
315
  if (params.reservationFor.startFrom instanceof Date) {
311
316
  andConditions.push({
@@ -315,7 +320,6 @@ class ReservationRepo {
315
320
  }
316
321
  });
317
322
  }
318
- // tslint:disable-next-line:no-single-line-block-comment
319
323
  /* istanbul ignore else */
320
324
  if (params.reservationFor.startThrough instanceof Date) {
321
325
  andConditions.push({
@@ -325,7 +329,6 @@ class ReservationRepo {
325
329
  }
326
330
  });
327
331
  }
328
- // tslint:disable-next-line:no-single-line-block-comment
329
332
  /* istanbul ignore else */
330
333
  if (params.reservationFor.endFrom instanceof Date) {
331
334
  andConditions.push({
@@ -335,7 +338,6 @@ class ReservationRepo {
335
338
  }
336
339
  });
337
340
  }
338
- // tslint:disable-next-line:no-single-line-block-comment
339
341
  /* istanbul ignore else */
340
342
  if (params.reservationFor.endThrough instanceof Date) {
341
343
  andConditions.push({
@@ -345,10 +347,8 @@ class ReservationRepo {
345
347
  }
346
348
  });
347
349
  }
348
- // tslint:disable-next-line:no-single-line-block-comment
349
350
  /* istanbul ignore else */
350
351
  if (params.reservationFor.superEvent !== undefined) {
351
- // tslint:disable-next-line:no-single-line-block-comment
352
352
  /* istanbul ignore else */
353
353
  if (params.reservationFor.superEvent.id !== undefined) {
354
354
  andConditions.push({
@@ -358,7 +358,6 @@ class ReservationRepo {
358
358
  }
359
359
  });
360
360
  }
361
- // tslint:disable-next-line:no-single-line-block-comment
362
361
  /* istanbul ignore else */
363
362
  if (Array.isArray(params.reservationFor.superEvent.ids)) {
364
363
  andConditions.push({
@@ -368,10 +367,8 @@ class ReservationRepo {
368
367
  }
369
368
  });
370
369
  }
371
- // tslint:disable-next-line:no-single-line-block-comment
372
370
  /* istanbul ignore else */
373
371
  if (params.reservationFor.superEvent.location !== undefined) {
374
- // tslint:disable-next-line:no-single-line-block-comment
375
372
  /* istanbul ignore else */
376
373
  if (Array.isArray(params.reservationFor.superEvent.location.ids)) {
377
374
  andConditions.push({
@@ -381,7 +378,6 @@ class ReservationRepo {
381
378
  }
382
379
  });
383
380
  }
384
- // tslint:disable-next-line:no-single-line-block-comment
385
381
  /* istanbul ignore else */
386
382
  if (Array.isArray(params.reservationFor.superEvent.location.branchCodes)) {
387
383
  andConditions.push({
@@ -392,10 +388,8 @@ class ReservationRepo {
392
388
  });
393
389
  }
394
390
  }
395
- // tslint:disable-next-line:no-single-line-block-comment
396
391
  /* istanbul ignore else */
397
392
  if (params.reservationFor.superEvent.workPerformed !== undefined) {
398
- // tslint:disable-next-line:no-single-line-block-comment
399
393
  /* istanbul ignore else */
400
394
  if (Array.isArray(params.reservationFor.superEvent.workPerformed.ids)) {
401
395
  andConditions.push({
@@ -405,7 +399,6 @@ class ReservationRepo {
405
399
  }
406
400
  });
407
401
  }
408
- // tslint:disable-next-line:no-single-line-block-comment
409
402
  /* istanbul ignore else */
410
403
  if (Array.isArray(params.reservationFor.superEvent.workPerformed.identifiers)) {
411
404
  andConditions.push({
@@ -423,13 +416,10 @@ class ReservationRepo {
423
416
  break;
424
417
  default:
425
418
  }
426
- // tslint:disable-next-line:no-single-line-block-comment
427
419
  /* istanbul ignore else */
428
420
  if (params.reservedTicket !== undefined) {
429
- // tslint:disable-next-line:no-single-line-block-comment
430
421
  /* istanbul ignore else */
431
422
  if (params.reservedTicket.ticketType !== undefined) {
432
- // tslint:disable-next-line:no-single-line-block-comment
433
423
  /* istanbul ignore else */
434
424
  if (Array.isArray(params.reservedTicket.ticketType.ids)) {
435
425
  andConditions.push({
@@ -439,10 +429,8 @@ class ReservationRepo {
439
429
  }
440
430
  });
441
431
  }
442
- // tslint:disable-next-line:no-single-line-block-comment
443
432
  /* istanbul ignore else */
444
433
  if (params.reservedTicket.ticketType.category !== undefined) {
445
- // tslint:disable-next-line:no-single-line-block-comment
446
434
  /* istanbul ignore else */
447
435
  if (Array.isArray(params.reservedTicket.ticketType.category.ids)) {
448
436
  andConditions.push({
@@ -452,7 +440,6 @@ class ReservationRepo {
452
440
  }
453
441
  });
454
442
  }
455
- // tslint:disable-next-line:no-single-line-block-comment
456
443
  /* istanbul ignore else */
457
444
  if (params.reservedTicket.ticketType.category.codeValue !== undefined
458
445
  && params.reservedTicket.ticketType.category !== null) {
@@ -467,10 +454,8 @@ class ReservationRepo {
467
454
  }
468
455
  }
469
456
  }
470
- // tslint:disable-next-line:no-single-line-block-comment
471
457
  /* istanbul ignore else */
472
458
  if (params.reservedTicket.ticketedSeat !== undefined) {
473
- // tslint:disable-next-line:no-single-line-block-comment
474
459
  /* istanbul ignore else */
475
460
  if (Array.isArray(params.reservedTicket.ticketedSeat.seatNumbers)) {
476
461
  andConditions.push({
@@ -480,7 +465,6 @@ class ReservationRepo {
480
465
  }
481
466
  });
482
467
  }
483
- // tslint:disable-next-line:no-single-line-block-comment
484
468
  /* istanbul ignore else */
485
469
  if (Array.isArray(params.reservedTicket.ticketedSeat.seatRows)) {
486
470
  andConditions.push({
@@ -490,7 +474,6 @@ class ReservationRepo {
490
474
  }
491
475
  });
492
476
  }
493
- // tslint:disable-next-line:no-single-line-block-comment
494
477
  /* istanbul ignore else */
495
478
  if (Array.isArray(params.reservedTicket.ticketedSeat.seatSections)) {
496
479
  andConditions.push({
@@ -500,7 +483,6 @@ class ReservationRepo {
500
483
  }
501
484
  });
502
485
  }
503
- // tslint:disable-next-line:no-single-line-block-comment
504
486
  /* istanbul ignore else */
505
487
  const ticketedSeatSeatingTypeIn = params.reservedTicket.ticketedSeat?.seatingType?.$in;
506
488
  if (Array.isArray(ticketedSeatSeatingTypeIn)) {
@@ -557,10 +539,8 @@ class ReservationRepo {
557
539
  }
558
540
  });
559
541
  }
560
- // tslint:disable-next-line:no-single-line-block-comment
561
542
  /* istanbul ignore else */
562
543
  if (params.underName !== undefined) {
563
- // tslint:disable-next-line:no-single-line-block-comment
564
544
  /* istanbul ignore else */
565
545
  if (typeof params.underName.id === 'string' && params.underName.id.length > 0) {
566
546
  andConditions.push({
@@ -570,7 +550,6 @@ class ReservationRepo {
570
550
  }
571
551
  });
572
552
  }
573
- // tslint:disable-next-line:no-single-line-block-comment
574
553
  /* istanbul ignore else */
575
554
  if (typeof params.underName.email === 'string') {
576
555
  if (params.underName.email.length > 0) {
@@ -595,7 +574,6 @@ class ReservationRepo {
595
574
  });
596
575
  }
597
576
  }
598
- // tslint:disable-next-line:no-single-line-block-comment
599
577
  /* istanbul ignore else */
600
578
  if (typeof params.underName.name === 'string') {
601
579
  if (params.underName.name.length > 0) {
@@ -620,7 +598,6 @@ class ReservationRepo {
620
598
  });
621
599
  }
622
600
  }
623
- // tslint:disable-next-line:no-single-line-block-comment
624
601
  /* istanbul ignore else */
625
602
  if (typeof params.underName.telephone === 'string' && params.underName.telephone.length > 0) {
626
603
  andConditions.push({
@@ -630,7 +607,6 @@ class ReservationRepo {
630
607
  }
631
608
  });
632
609
  }
633
- // tslint:disable-next-line:no-single-line-block-comment
634
610
  /* istanbul ignore else */
635
611
  if (typeof params.underName.givenName === 'string') {
636
612
  if (params.underName.givenName.length > 0) {
@@ -655,7 +631,6 @@ class ReservationRepo {
655
631
  });
656
632
  }
657
633
  }
658
- // tslint:disable-next-line:no-single-line-block-comment
659
634
  /* istanbul ignore else */
660
635
  if (typeof params.underName.familyName === 'string') {
661
636
  if (params.underName.familyName.length > 0) {
@@ -680,7 +655,6 @@ class ReservationRepo {
680
655
  });
681
656
  }
682
657
  }
683
- // tslint:disable-next-line:no-single-line-block-comment
684
658
  /* istanbul ignore else */
685
659
  if (params.underName.identifier !== undefined) {
686
660
  if (Array.isArray(params.underName.identifier.$all)) {
@@ -715,7 +689,6 @@ class ReservationRepo {
715
689
  });
716
690
  }
717
691
  }
718
- // tslint:disable-next-line:no-single-line-block-comment
719
692
  /* istanbul ignore else */
720
693
  if (Array.isArray(params.underName.identifiers)) {
721
694
  andConditions.push({
@@ -726,21 +699,18 @@ class ReservationRepo {
726
699
  });
727
700
  }
728
701
  }
729
- // tslint:disable-next-line:no-single-line-block-comment
730
702
  /* istanbul ignore else */
731
703
  if (typeof params.attended === 'boolean') {
732
704
  andConditions.push({
733
705
  attended: params.attended
734
706
  });
735
707
  }
736
- // tslint:disable-next-line:no-single-line-block-comment
737
708
  /* istanbul ignore else */
738
709
  if (typeof params.checkedIn === 'boolean') {
739
710
  andConditions.push({
740
711
  checkedIn: params.checkedIn
741
712
  });
742
713
  }
743
- // tslint:disable-next-line:no-single-line-block-comment
744
714
  /* istanbul ignore else */
745
715
  if (params.additionalProperty !== undefined) {
746
716
  if (Array.isArray(params.additionalProperty.$all)) {
@@ -866,7 +836,6 @@ class ReservationRepo {
866
836
  query.limit(params.limit)
867
837
  .skip(params.limit * (page - 1));
868
838
  }
869
- // tslint:disable-next-line:no-single-line-block-comment
870
839
  /* istanbul ignore else */
871
840
  if (params.sort?.bookingTime !== undefined) {
872
841
  query.sort({ bookingTime: params.sort.bookingTime });
@@ -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.RoleRepo = void 0;
4
- const factory = require("../factory");
27
+ const factory = __importStar(require("../factory"));
5
28
  const settings_1 = require("../settings");
6
29
  const role_1 = require("./mongoose/schemas/role");
7
30
  const AVAILABLE_PROJECT_FIELDS = [
@@ -59,7 +82,6 @@ class RoleRepo {
59
82
  query.limit(params.limit)
60
83
  .skip(params.limit * (page - 1));
61
84
  }
62
- // tslint:disable-next-line:no-single-line-block-comment
63
85
  /* istanbul ignore else */
64
86
  if (params.sort !== undefined) {
65
87
  query.sort(params.sort);
@@ -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.SellerRepo = void 0;
4
27
  const mongoose_1 = require("mongoose");
5
28
  const seller_1 = require("./mongoose/schemas/seller");
6
- const factory = require("../factory");
29
+ const factory = __importStar(require("../factory"));
7
30
  const settings_1 = require("../settings");
8
31
  const AVAILABLE_PROJECT_FIELDS = [
9
32
  'additionalProperty',
@@ -26,7 +49,6 @@ class SellerRepo {
26
49
  constructor(connection) {
27
50
  this.sellerModel = connection.model(seller_1.modelName, (0, seller_1.createSchema)());
28
51
  }
29
- // tslint:disable-next-line:max-func-body-length
30
52
  static CREATE_MONGO_CONDITIONS(params) {
31
53
  const andConditions = [];
32
54
  const projectIdEq = params.project?.id?.$eq;
@@ -179,7 +201,6 @@ class SellerRepo {
179
201
  if (exclusion.length > 0) {
180
202
  exclusion.forEach((field) => {
181
203
  if (typeof projectStage[field] === 'string' || typeof projectStage[field] === 'object') {
182
- // tslint:disable-next-line:no-dynamic-delete
183
204
  delete projectStage[field];
184
205
  }
185
206
  });
@@ -247,7 +268,6 @@ class SellerRepo {
247
268
  : [],
248
269
  { $project: projectStage }
249
270
  ]);
250
- // tslint:disable-next-line:no-single-line-block-comment
251
271
  /* istanbul ignore else */
252
272
  if (typeof conditions.limit === 'number' && conditions.limit > 0) {
253
273
  const page = (typeof conditions.page === 'number' && conditions.page > 0) ? conditions.page : 1;
@@ -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.SellerMakesOfferRepo = void 0;
4
27
  const mongoose_1 = require("mongoose");
5
- const factory = require("../factory");
28
+ const factory = __importStar(require("../factory"));
6
29
  const settings_1 = require("../settings");
7
30
  const seller_1 = require("./mongoose/schemas/seller");
8
31
  /**
@@ -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.SellerPaymentAcceptedRepo = void 0;
4
27
  const mongoose_1 = require("mongoose");
5
28
  const seller_1 = require("./mongoose/schemas/seller");
6
- const factory = require("../factory");
29
+ const factory = __importStar(require("../factory"));
7
30
  const settings_1 = require("../settings");
8
31
  /**
9
32
  * 販売者対応決済方法リポジトリ
@@ -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.SellerReturnPolicyRepo = void 0;
4
27
  const sellerReturnPolicy_1 = require("./mongoose/schemas/sellerReturnPolicy");
5
- const factory = require("../factory");
28
+ const factory = __importStar(require("../factory"));
6
29
  const settings_1 = require("../settings");
7
30
  /**
8
31
  * 販売者返品ポリシーリポジトリ
@@ -12,7 +35,6 @@ class SellerReturnPolicyRepo {
12
35
  constructor(connection) {
13
36
  this.sellerReturnPolicyModel = connection.model(sellerReturnPolicy_1.modelName, (0, sellerReturnPolicy_1.createSchema)());
14
37
  }
15
- // tslint:disable-next-line:max-func-body-length
16
38
  static CREATE_FILTER_QUERY(params) {
17
39
  const andConditions = [];
18
40
  const projectIdEq = params.project?.id?.$eq;
@@ -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.ServiceOutputRepo = void 0;
4
27
  const serviceOutput_1 = require("./mongoose/schemas/serviceOutput");
5
- const factory = require("../factory");
28
+ const factory = __importStar(require("../factory"));
6
29
  const settings_1 = require("../settings");
7
30
  /**
8
31
  * サービスアウトプットリポジトリ
@@ -12,7 +35,6 @@ class ServiceOutputRepo {
12
35
  constructor(connection) {
13
36
  this.serviceOutputModel = connection.model(serviceOutput_1.modelName, (0, serviceOutput_1.createSchema)());
14
37
  }
15
- // tslint:disable-next-line:max-func-body-length
16
38
  static CREATE_MONGO_CONDITIONS(params) {
17
39
  // MongoDB検索条件
18
40
  const andConditions = [];
@@ -119,7 +141,6 @@ class ServiceOutputRepo {
119
141
  query.limit(params.limit)
120
142
  .skip(params.limit * (page - 1));
121
143
  }
122
- // tslint:disable-next-line:no-single-line-block-comment
123
144
  /* istanbul ignore else */
124
145
  // if (params.sort !== undefined) {
125
146
  // query.sort(params.sort);