@chevre/domain 21.0.0-alpha.1 → 21.0.0-alpha.11

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 (263) hide show
  1. package/lib/chevre/errorHandler.d.ts +1 -0
  2. package/lib/chevre/errorHandler.js +6 -2
  3. package/lib/chevre/factory/event.d.ts +1 -1
  4. package/lib/chevre/index.d.ts +1 -2
  5. package/lib/chevre/index.js +1 -3
  6. package/lib/chevre/repo/account.d.ts +0 -2
  7. package/lib/chevre/repo/account.js +10 -6
  8. package/lib/chevre/repo/accountTitle.js +6 -2
  9. package/lib/chevre/repo/accountTransaction.d.ts +0 -2
  10. package/lib/chevre/repo/accountTransaction.js +9 -6
  11. package/lib/chevre/repo/accountingReport.d.ts +1 -1
  12. package/lib/chevre/repo/accountingReport.js +7 -3
  13. package/lib/chevre/repo/action/registerServiceInProgress.js +1 -1
  14. package/lib/chevre/repo/action.d.ts +3 -4
  15. package/lib/chevre/repo/action.js +9 -6
  16. package/lib/chevre/repo/additionalProperty.js +8 -4
  17. package/lib/chevre/repo/aggregation.js +6 -2
  18. package/lib/chevre/repo/assetTransaction.d.ts +1 -2
  19. package/lib/chevre/repo/assetTransaction.js +9 -6
  20. package/lib/chevre/repo/categoryCode.js +8 -4
  21. package/lib/chevre/repo/code.d.ts +3 -3
  22. package/lib/chevre/repo/code.js +10 -5
  23. package/lib/chevre/repo/comment.js +8 -4
  24. package/lib/chevre/repo/confirmationNumber.js +1 -1
  25. package/lib/chevre/repo/creativeWork.d.ts +0 -2
  26. package/lib/chevre/repo/creativeWork.js +9 -6
  27. package/lib/chevre/repo/customer.js +8 -4
  28. package/lib/chevre/repo/emailMessage.d.ts +1 -1
  29. package/lib/chevre/repo/emailMessage.js +8 -4
  30. package/lib/chevre/repo/event.d.ts +1 -1
  31. package/lib/chevre/repo/event.js +8 -4
  32. package/lib/chevre/repo/itemAvailability/screeningEvent.js +1 -1
  33. package/lib/chevre/repo/member.js +16 -9
  34. package/lib/chevre/repo/merchantReturnPolicy.d.ts +0 -2
  35. package/lib/chevre/repo/merchantReturnPolicy.js +9 -6
  36. package/lib/chevre/repo/mongoose/onIndexCreated.d.ts +2 -0
  37. package/lib/chevre/repo/mongoose/onIndexCreated.js +11 -0
  38. package/lib/chevre/repo/mongoose/schemas/account.d.ts +54 -0
  39. package/lib/chevre/repo/mongoose/{model → schemas}/account.js +4 -14
  40. package/lib/chevre/repo/mongoose/schemas/accountTitle.d.ts +64 -0
  41. package/lib/chevre/repo/mongoose/{model → schemas}/accountTitle.js +10 -35
  42. package/lib/chevre/repo/mongoose/schemas/accountTransaction.d.ts +67 -0
  43. package/lib/chevre/repo/mongoose/{model → schemas}/accountTransaction.js +9 -19
  44. package/lib/chevre/repo/mongoose/schemas/accountingReport.d.ts +58 -0
  45. package/lib/chevre/repo/mongoose/{model → schemas}/accountingReport.js +7 -17
  46. package/lib/chevre/repo/mongoose/schemas/action.d.ts +73 -0
  47. package/lib/chevre/repo/mongoose/{model → schemas}/action.js +17 -27
  48. package/lib/chevre/repo/mongoose/schemas/additionalProperty.d.ts +60 -0
  49. package/lib/chevre/repo/mongoose/{model → schemas}/additionalProperty.js +7 -17
  50. package/lib/chevre/repo/mongoose/schemas/aggregation.d.ts +54 -0
  51. package/lib/chevre/repo/mongoose/{model → schemas}/aggregation.js +4 -14
  52. package/lib/chevre/repo/mongoose/schemas/assetTransaction.d.ts +72 -0
  53. package/lib/chevre/repo/mongoose/{model → schemas}/assetTransaction.js +13 -23
  54. package/lib/chevre/repo/mongoose/schemas/authorization.d.ts +61 -0
  55. package/lib/chevre/repo/mongoose/{model → schemas}/authorization.js +6 -16
  56. package/lib/chevre/repo/mongoose/schemas/categoryCode.d.ts +64 -0
  57. package/lib/chevre/repo/mongoose/{model → schemas}/categoryCode.js +9 -19
  58. package/lib/chevre/repo/mongoose/schemas/comments.d.ts +65 -0
  59. package/lib/chevre/repo/mongoose/{model → schemas}/comments.js +9 -19
  60. package/lib/chevre/repo/mongoose/schemas/creativeWork.d.ts +73 -0
  61. package/lib/chevre/repo/mongoose/{model → schemas}/creativeWork.js +10 -20
  62. package/lib/chevre/repo/mongoose/schemas/customer.d.ts +64 -0
  63. package/lib/chevre/repo/mongoose/{model → schemas}/customer.js +8 -18
  64. package/lib/chevre/repo/mongoose/schemas/emailMessages.d.ts +62 -0
  65. package/lib/chevre/repo/mongoose/{model → schemas}/emailMessages.js +8 -18
  66. package/lib/chevre/repo/mongoose/{model → schemas}/event.d.ts +26 -2
  67. package/lib/chevre/repo/mongoose/{model → schemas}/event.js +24 -34
  68. package/lib/chevre/repo/mongoose/schemas/member.d.ts +58 -0
  69. package/lib/chevre/repo/mongoose/{model → schemas}/member.js +6 -16
  70. package/lib/chevre/repo/mongoose/schemas/merchantReturnPolicy.d.ts +62 -0
  71. package/lib/chevre/repo/mongoose/{model → schemas}/merchantReturnPolicy.js +7 -17
  72. package/lib/chevre/repo/mongoose/schemas/offer.d.ts +83 -0
  73. package/lib/chevre/repo/mongoose/{model → schemas}/offer.js +28 -38
  74. package/lib/chevre/repo/mongoose/schemas/offerCatalog.d.ts +64 -0
  75. package/lib/chevre/repo/mongoose/{model → schemas}/offerCatalog.js +11 -21
  76. package/lib/chevre/repo/mongoose/schemas/order.d.ts +77 -0
  77. package/lib/chevre/repo/mongoose/{model → schemas}/order.js +15 -25
  78. package/lib/chevre/repo/mongoose/schemas/ownershipInfo.d.ts +64 -0
  79. package/lib/chevre/repo/mongoose/{model → schemas}/ownershipInfo.js +9 -19
  80. package/lib/chevre/repo/mongoose/schemas/place.d.ts +76 -0
  81. package/lib/chevre/repo/mongoose/{model → schemas}/place.js +17 -27
  82. package/lib/chevre/repo/mongoose/schemas/priceSpecification.d.ts +66 -0
  83. package/lib/chevre/repo/mongoose/{model → schemas}/priceSpecification.js +9 -19
  84. package/lib/chevre/repo/mongoose/schemas/product.d.ts +67 -0
  85. package/lib/chevre/repo/mongoose/{model → schemas}/product.js +14 -24
  86. package/lib/chevre/repo/mongoose/schemas/project.d.ts +63 -0
  87. package/lib/chevre/repo/mongoose/{model → schemas}/project.js +7 -17
  88. package/lib/chevre/repo/mongoose/{model → schemas}/reservation.d.ts +26 -2
  89. package/lib/chevre/repo/mongoose/{model → schemas}/reservation.js +15 -25
  90. package/lib/chevre/repo/mongoose/schemas/role.d.ts +57 -0
  91. package/lib/chevre/repo/mongoose/{model → schemas}/role.js +4 -14
  92. package/lib/chevre/repo/mongoose/schemas/seller.d.ts +67 -0
  93. package/lib/chevre/repo/mongoose/{model → schemas}/seller.js +12 -22
  94. package/lib/chevre/repo/mongoose/schemas/serviceOutput.d.ts +57 -0
  95. package/lib/chevre/repo/mongoose/{model → schemas}/serviceOutput.js +5 -15
  96. package/lib/chevre/repo/mongoose/schemas/task.d.ts +65 -0
  97. package/lib/chevre/repo/mongoose/{model → schemas}/task.js +7 -17
  98. package/lib/chevre/repo/mongoose/schemas/telemetry.d.ts +62 -0
  99. package/lib/chevre/repo/mongoose/{model → schemas}/telemetry.js +9 -19
  100. package/lib/chevre/repo/mongoose/schemas/transaction.d.ts +70 -0
  101. package/lib/chevre/repo/mongoose/{model → schemas}/transaction.js +12 -22
  102. package/lib/chevre/repo/mongoose/schemas/trip.d.ts +57 -0
  103. package/lib/chevre/repo/mongoose/{model → schemas}/trip.js +5 -15
  104. package/lib/chevre/repo/mongoose/writeConcern.d.ts +3 -0
  105. package/lib/chevre/repo/mongoose/writeConcern.js +5 -0
  106. package/lib/chevre/repo/offer.js +11 -6
  107. package/lib/chevre/repo/offerCatalog.js +8 -4
  108. package/lib/chevre/repo/order.d.ts +0 -2
  109. package/lib/chevre/repo/order.js +12 -9
  110. package/lib/chevre/repo/orderNumber.js +1 -1
  111. package/lib/chevre/repo/ownershipInfo.d.ts +1 -3
  112. package/lib/chevre/repo/ownershipInfo.js +10 -7
  113. package/lib/chevre/repo/paymentMethod/creditCard.d.ts +3 -3
  114. package/lib/chevre/repo/permit.js +6 -2
  115. package/lib/chevre/repo/person.d.ts +2 -2
  116. package/lib/chevre/repo/place.d.ts +2 -2
  117. package/lib/chevre/repo/place.js +16 -12
  118. package/lib/chevre/repo/priceSpecification.js +8 -4
  119. package/lib/chevre/repo/product.d.ts +1 -1
  120. package/lib/chevre/repo/product.js +8 -4
  121. package/lib/chevre/repo/project.js +7 -3
  122. package/lib/chevre/repo/rateLimit/offer.js +1 -1
  123. package/lib/chevre/repo/reservation.d.ts +1 -1
  124. package/lib/chevre/repo/reservation.js +8 -21
  125. package/lib/chevre/repo/role.js +8 -4
  126. package/lib/chevre/repo/seller.d.ts +1 -1
  127. package/lib/chevre/repo/seller.js +8 -4
  128. package/lib/chevre/repo/serviceOutput.js +8 -4
  129. package/lib/chevre/repo/serviceOutputIdentifier.js +1 -1
  130. package/lib/chevre/repo/task.js +8 -4
  131. package/lib/chevre/repo/telemetry.js +6 -2
  132. package/lib/chevre/repo/transaction.d.ts +1 -2
  133. package/lib/chevre/repo/transaction.js +9 -6
  134. package/lib/chevre/repo/transactionNumber.js +1 -1
  135. package/lib/chevre/repo/trip.d.ts +1 -1
  136. package/lib/chevre/repo/trip.js +8 -4
  137. package/lib/chevre/service/account.d.ts +1 -1
  138. package/lib/chevre/service/accountTransaction/deposit.d.ts +1 -1
  139. package/lib/chevre/service/accountTransaction/deposit.js +0 -5
  140. package/lib/chevre/service/accountTransaction/transfer.d.ts +1 -1
  141. package/lib/chevre/service/accountTransaction/transfer.js +0 -5
  142. package/lib/chevre/service/accountTransaction/withdraw.d.ts +1 -1
  143. package/lib/chevre/service/accountTransaction/withdraw.js +0 -5
  144. package/lib/chevre/service/accountTransaction.d.ts +1 -1
  145. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.d.ts +1 -1
  146. package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.d.ts +1 -1
  147. package/lib/chevre/service/aggregation/project.d.ts +1 -1
  148. package/lib/chevre/service/assetTransaction/cancelReservation.d.ts +3 -3
  149. package/lib/chevre/service/assetTransaction/moneyTransfer.d.ts +4 -4
  150. package/lib/chevre/service/assetTransaction/moneyTransfer.js +0 -5
  151. package/lib/chevre/service/assetTransaction/pay/potentialActions.d.ts +1 -1
  152. package/lib/chevre/service/assetTransaction/pay.d.ts +7 -7
  153. package/lib/chevre/service/assetTransaction/refund.d.ts +4 -4
  154. package/lib/chevre/service/assetTransaction/refund.js +0 -5
  155. package/lib/chevre/service/assetTransaction/registerService/factory.d.ts +1 -1
  156. package/lib/chevre/service/assetTransaction/registerService.d.ts +4 -4
  157. package/lib/chevre/service/assetTransaction/registerService.js +0 -5
  158. package/lib/chevre/service/assetTransaction/reserve/factory/price.d.ts +1 -1
  159. package/lib/chevre/service/assetTransaction/reserve/factory.d.ts +2 -2
  160. package/lib/chevre/service/assetTransaction/reserve.d.ts +6 -6
  161. package/lib/chevre/service/assetTransaction/reserve.js +0 -10
  162. package/lib/chevre/service/code.d.ts +2 -2
  163. package/lib/chevre/service/code.js +6 -1
  164. package/lib/chevre/service/delivery/factory.d.ts +1 -1
  165. package/lib/chevre/service/delivery/product/factory.d.ts +1 -1
  166. package/lib/chevre/service/delivery/reservation/factory.d.ts +1 -1
  167. package/lib/chevre/service/iam.d.ts +1 -1
  168. package/lib/chevre/service/moneyTransfer.d.ts +1 -1
  169. package/lib/chevre/service/notification.d.ts +1 -1
  170. package/lib/chevre/service/offer/event/authorize.d.ts +2 -2
  171. package/lib/chevre/service/offer/event/factory.d.ts +5 -5
  172. package/lib/chevre/service/offer/event/searchEventTicketOffers.d.ts +2 -2
  173. package/lib/chevre/service/offer/eventServiceByCOA/factory.d.ts +2 -2
  174. package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.d.ts +1 -1
  175. package/lib/chevre/service/offer/eventServiceByCOA.d.ts +2 -2
  176. package/lib/chevre/service/offer/factory.d.ts +2 -2
  177. package/lib/chevre/service/offer/moneyTransfer/authorize.d.ts +1 -1
  178. package/lib/chevre/service/offer/product.d.ts +2 -2
  179. package/lib/chevre/service/order/onOrderStatusChanged/factory.d.ts +1 -1
  180. package/lib/chevre/service/order/onOrderStatusChanged/factory.js +6 -1
  181. package/lib/chevre/service/order/onOrderStatusChanged.d.ts +2 -2
  182. package/lib/chevre/service/order/placeOrder.d.ts +1 -1
  183. package/lib/chevre/service/order/sendOrder.d.ts +1 -1
  184. package/lib/chevre/service/payment/any/factory.d.ts +1 -1
  185. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onPaid.d.ts +1 -1
  186. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onRefunded.d.ts +1 -1
  187. package/lib/chevre/service/payment/any.d.ts +3 -3
  188. package/lib/chevre/service/payment/creditCard.js +5 -0
  189. package/lib/chevre/service/payment/movieTicket.d.ts +4 -4
  190. package/lib/chevre/service/payment/paymentCard.d.ts +1 -1
  191. package/lib/chevre/service/permit.d.ts +1 -1
  192. package/lib/chevre/service/report/ownershipInfo.js +4 -0
  193. package/lib/chevre/service/report/telemetry.d.ts +7 -7
  194. package/lib/chevre/service/reserve/cancelReservation.d.ts +1 -1
  195. package/lib/chevre/service/reserve/factory.d.ts +5 -5
  196. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +1 -1
  197. package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.d.ts +1 -1
  198. package/lib/chevre/service/reserve/potentialActions/onReservationUsed.d.ts +2 -2
  199. package/lib/chevre/service/task/aggregateScreeningEvent.d.ts +1 -1
  200. package/lib/chevre/service/task/aggregateUseActionsOnEvent.d.ts +1 -1
  201. package/lib/chevre/service/task/cancelMoneyTransfer.d.ts +1 -1
  202. package/lib/chevre/service/task/cancelPendingReservation.d.ts +1 -1
  203. package/lib/chevre/service/task/cancelReservation.d.ts +1 -1
  204. package/lib/chevre/service/task/importEventCapacitiesFromCOA.d.ts +1 -1
  205. package/lib/chevre/service/task/importEventsFromCOA.d.ts +1 -1
  206. package/lib/chevre/service/task/importOffersFromCOA.d.ts +1 -1
  207. package/lib/chevre/service/task/moneyTransfer.d.ts +1 -1
  208. package/lib/chevre/service/task/registerService.d.ts +1 -1
  209. package/lib/chevre/service/task/reserve.d.ts +1 -1
  210. package/lib/chevre/service/task.d.ts +2 -2
  211. package/lib/chevre/service/task.js +1 -1
  212. package/lib/chevre/service/transaction/moneyTransfer/potentialActions.d.ts +1 -1
  213. package/lib/chevre/service/transaction/moneyTransfer.d.ts +6 -6
  214. package/lib/chevre/service/transaction/moneyTransfer.js +0 -5
  215. package/lib/chevre/service/transaction/orderProgramMembership.d.ts +1 -1
  216. package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.d.ts +1 -1
  217. package/lib/chevre/service/transaction/placeOrder.d.ts +1 -1
  218. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/moneyTransfer.d.ts +1 -1
  219. package/lib/chevre/service/transaction/placeOrderInProgress/result/acceptedOffers.d.ts +2 -2
  220. package/lib/chevre/service/transaction/placeOrderInProgress/result.d.ts +1 -1
  221. package/lib/chevre/service/transaction/placeOrderInProgress/validation.d.ts +8 -8
  222. package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +7 -7
  223. package/lib/chevre/service/transaction/placeOrderInProgress.js +2 -2
  224. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnMoneyTransfer.d.ts +1 -1
  225. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPointAward.d.ts +1 -1
  226. package/lib/chevre/service/transaction/returnOrder/potentialActions.d.ts +1 -1
  227. package/lib/chevre/service/transaction/returnOrder.d.ts +2 -2
  228. package/lib/chevre/service/transaction/returnOrder.js +1 -1
  229. package/lib/chevre/service/transaction/validation.d.ts +2 -2
  230. package/lib/chevre/service/transaction.d.ts +2 -2
  231. package/lib/chevre/settings.d.ts +1 -1
  232. package/package.json +11 -11
  233. package/lib/chevre/repo/mongoose/model/account.d.ts +0 -30
  234. package/lib/chevre/repo/mongoose/model/accountTitle.d.ts +0 -40
  235. package/lib/chevre/repo/mongoose/model/accountTransaction.d.ts +0 -43
  236. package/lib/chevre/repo/mongoose/model/accountingReport.d.ts +0 -34
  237. package/lib/chevre/repo/mongoose/model/action.d.ts +0 -49
  238. package/lib/chevre/repo/mongoose/model/additionalProperty.d.ts +0 -36
  239. package/lib/chevre/repo/mongoose/model/aggregation.d.ts +0 -30
  240. package/lib/chevre/repo/mongoose/model/assetTransaction.d.ts +0 -48
  241. package/lib/chevre/repo/mongoose/model/authorization.d.ts +0 -37
  242. package/lib/chevre/repo/mongoose/model/categoryCode.d.ts +0 -40
  243. package/lib/chevre/repo/mongoose/model/comments.d.ts +0 -41
  244. package/lib/chevre/repo/mongoose/model/creativeWork.d.ts +0 -49
  245. package/lib/chevre/repo/mongoose/model/customer.d.ts +0 -40
  246. package/lib/chevre/repo/mongoose/model/emailMessages.d.ts +0 -38
  247. package/lib/chevre/repo/mongoose/model/member.d.ts +0 -34
  248. package/lib/chevre/repo/mongoose/model/merchantReturnPolicy.d.ts +0 -38
  249. package/lib/chevre/repo/mongoose/model/offer.d.ts +0 -59
  250. package/lib/chevre/repo/mongoose/model/offerCatalog.d.ts +0 -40
  251. package/lib/chevre/repo/mongoose/model/order.d.ts +0 -53
  252. package/lib/chevre/repo/mongoose/model/ownershipInfo.d.ts +0 -40
  253. package/lib/chevre/repo/mongoose/model/place.d.ts +0 -52
  254. package/lib/chevre/repo/mongoose/model/priceSpecification.d.ts +0 -42
  255. package/lib/chevre/repo/mongoose/model/product.d.ts +0 -43
  256. package/lib/chevre/repo/mongoose/model/project.d.ts +0 -39
  257. package/lib/chevre/repo/mongoose/model/role.d.ts +0 -33
  258. package/lib/chevre/repo/mongoose/model/seller.d.ts +0 -43
  259. package/lib/chevre/repo/mongoose/model/serviceOutput.d.ts +0 -33
  260. package/lib/chevre/repo/mongoose/model/task.d.ts +0 -41
  261. package/lib/chevre/repo/mongoose/model/telemetry.d.ts +0 -38
  262. package/lib/chevre/repo/mongoose/model/transaction.d.ts +0 -46
  263. package/lib/chevre/repo/mongoose/model/trip.d.ts +0 -33
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../../../../factory';
2
- export declare type WebAPIIdentifier = factory.service.webAPI.Identifier;
2
+ export type WebAPIIdentifier = factory.service.webAPI.Identifier;
3
3
  export declare function createReturnMoneyTransferActions(params: {
4
4
  order: factory.order.IOrder;
5
5
  returnOrderActionParams?: factory.transaction.returnOrder.IReturnOrderActionParams;
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../../../../factory';
2
- export declare type IAction = factory.action.IAction<factory.action.IAttributes<factory.actionType, any, any>>;
2
+ export type IAction = factory.action.IAction<factory.action.IAttributes<factory.actionType, any, any>>;
3
3
  /**
4
4
  * ポイント特典返却アクションを作成する
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../../../factory';
2
- export declare type IAction = factory.action.IAction<factory.action.IAttributes<factory.actionType, any, any>>;
2
+ export type IAction = factory.action.IAction<factory.action.IAttributes<factory.actionType, any, any>>;
3
3
  /**
4
4
  * 取引のポストアクションを作成する
5
5
  */
@@ -15,8 +15,8 @@ export interface IStartOperationRepos {
15
15
  seller: SellerRepo;
16
16
  transaction: TransactionRepo;
17
17
  }
18
- export declare type IStartOperation<T> = (repos: IStartOperationRepos) => Promise<T>;
19
- export declare type ITaskAndTransactionOperation<T> = (repos: {
18
+ export type IStartOperation<T> = (repos: IStartOperationRepos) => Promise<T>;
19
+ export type ITaskAndTransactionOperation<T> = (repos: {
20
20
  task: TaskRepo;
21
21
  transaction: TransactionRepo;
22
22
  }) => Promise<T>;
@@ -81,7 +81,7 @@ function start(params) {
81
81
  returnOrderTransaction = yield repos.transaction.start(returnOrderAttributes);
82
82
  }
83
83
  catch (error) {
84
- if (error.name === 'MongoError') {
84
+ if ((0, errorHandler_1.isMongoError)(error)) {
85
85
  // 同一取引に対して返品取引を作成しようとすると、MongoDBでE11000 duplicate key errorが発生する
86
86
  // tslint:disable-next-line:no-single-line-block-comment
87
87
  /* istanbul ignore else */
@@ -1,8 +1,8 @@
1
1
  import * as factory from '../../factory';
2
- export declare type IPassportValidator = (params: {
2
+ export type IPassportValidator = (params: {
3
3
  passport: factory.waiter.passport.IPassport;
4
4
  }) => boolean;
5
- export declare type IStartParams = (factory.transaction.placeOrder.IStartParamsWithoutDetail | factory.transaction.moneyTransfer.IStartParamsWithoutDetail) & {
5
+ export type IStartParams = (factory.transaction.placeOrder.IStartParamsWithoutDetail | factory.transaction.moneyTransfer.IStartParamsWithoutDetail) & {
6
6
  passportValidator?: IPassportValidator;
7
7
  };
8
8
  export declare function validateWaiterPassport(params: IStartParams): Promise<factory.waiter.passport.IPassport | undefined>;
@@ -8,7 +8,7 @@ import * as MoneyTransferTransactionService from './transaction/moneyTransfer';
8
8
  import * as PlaceOrderTransactionService from './transaction/placeOrder';
9
9
  import * as PlaceOrderInProgressTransactionService from './transaction/placeOrderInProgress';
10
10
  import * as ReturnOrderTransactionService from './transaction/returnOrder';
11
- export declare type ITransactionOperation<T> = (repos: {
11
+ export type ITransactionOperation<T> = (repos: {
12
12
  transaction: TransactionRepo;
13
13
  }) => Promise<T>;
14
14
  export import moneyTransfer = MoneyTransferTransactionService;
@@ -25,7 +25,7 @@ export declare function updateAgent(params: {
25
25
  telephoneRegion?: string;
26
26
  };
27
27
  }): ITransactionOperation<factory.transaction.placeOrder.ICustomer>;
28
- export declare type IExportTasksOperation<T> = (repos: {
28
+ export type IExportTasksOperation<T> = (repos: {
29
29
  task: TaskRepo;
30
30
  transaction: TransactionRepo;
31
31
  }) => Promise<T>;
@@ -13,7 +13,7 @@ export declare const TRANSACTION_CONFIRMED_STORAGE_PERIOD_IN_DAYS: number;
13
13
  */
14
14
  export declare const TRANSACTION_CANCELED_STORAGE_PERIOD_IN_DAYS: number;
15
15
  export declare const DEFAULT_SENDER_EMAIL: string;
16
- export declare type ISettings = factory.project.ISettings & {
16
+ export type ISettings = factory.project.ISettings & {
17
17
  onReservationStatusChanged: {
18
18
  informReservation?: factory.project.IInformParams[];
19
19
  };
package/package.json CHANGED
@@ -15,16 +15,13 @@
15
15
  "@motionpicture/gmo-service": "5.2.0",
16
16
  "@sendgrid/mail": "6.4.0",
17
17
  "@surfrock/sdk": "1.2.0-alpha.0",
18
- "@waiter/domain": "5.1.0",
19
- "JSONStream": "^1.3.5",
20
- "aws-sdk": "^2.984.0",
18
+ "@waiter/domain": "6.1.0",
21
19
  "azure-storage": "^2.10.4",
22
20
  "cdigit": "2.6.7",
23
21
  "debug": "^3.2.7",
24
22
  "google-libphonenumber": "^3.2.18",
25
23
  "http-status": "^1.5.0",
26
- "json2csv": "^4.5.4",
27
- "jsonwebtoken": "^8.5.1",
24
+ "jsonwebtoken": "9.0.0",
28
25
  "lodash.difference": "^4.5.0",
29
26
  "moment": "^2.29.1",
30
27
  "moment-range": "^4.0.2",
@@ -41,12 +38,12 @@
41
38
  "@types/google-libphonenumber": "^7.4.19",
42
39
  "@types/http-status": "^0.2.30",
43
40
  "@types/json2csv": "^4.5.1",
44
- "@types/jsonwebtoken": "^7.2.8",
41
+ "@types/jsonwebtoken": "9.0.1",
45
42
  "@types/lodash.difference": "^4.5.6",
46
43
  "@types/mocha": "^5.2.7",
47
44
  "@types/moment-timezone": "^0.5.30",
48
45
  "@types/nock": "^9.3.1",
49
- "@types/node": "10.17.60",
46
+ "@types/node": "14.18.42",
50
47
  "@types/power-assert": "^1.5.3",
51
48
  "@types/pug": "^2.0.4",
52
49
  "@types/redis": "^2.8.32",
@@ -57,9 +54,11 @@
57
54
  "@types/sinon-mongoose": "^1.3.11",
58
55
  "@types/uniqid": "^4.1.3",
59
56
  "@types/uuid": "^3.4.10",
57
+ "aws-sdk": "2.1348.0",
60
58
  "coveralls": "^3.1.0",
61
59
  "csvtojson": "^2.0.10",
62
60
  "googleapis": "^85.0.0",
61
+ "json2csv": "4.5.4",
63
62
  "mocha": "^5.2.0",
64
63
  "mongoose": "6.10.4",
65
64
  "nock": "^9.6.1",
@@ -74,15 +73,16 @@
74
73
  "ts-node": "^10.9.1",
75
74
  "tslint": "^6.1.3",
76
75
  "tslint-microsoft-contrib": "^6.2.0",
77
- "typescript": "^4.8.4"
76
+ "typescript": "5.0.3"
78
77
  },
79
78
  "peerDependencies": {
79
+ "aws-sdk": "^2.0.0",
80
80
  "mongoose": "^6.0.0",
81
81
  "redis": "^3.1.2"
82
82
  },
83
83
  "engines": {
84
- "node": ">=10.0.0",
85
- "npm": ">=5.3.0"
84
+ "node": ">=14.0.0",
85
+ "npm": ">=6.0.0"
86
86
  },
87
87
  "keywords": [],
88
88
  "license": "ISC",
@@ -120,5 +120,5 @@
120
120
  "postversion": "git push origin --tags",
121
121
  "prepublishOnly": "npm run clean && npm run build && npm test && npm run doc"
122
122
  },
123
- "version": "21.0.0-alpha.1"
123
+ "version": "21.0.0-alpha.11"
124
124
  }
@@ -1,30 +0,0 @@
1
- import * as mongoose from 'mongoose';
2
- declare const modelName = "Account";
3
- /**
4
- * 口座スキーマ
5
- */
6
- declare const schema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any>, {}, {}, {}, {}, mongoose.ResolveSchemaOptions<{
7
- collection: string;
8
- id: true;
9
- read: string;
10
- writeConcern: import("mongodb").WriteConcern;
11
- strict: false;
12
- useNestedStrict: boolean;
13
- timestamps: {
14
- createdAt: string;
15
- updatedAt: string;
16
- };
17
- toJSON: {
18
- getters: false;
19
- virtuals: false;
20
- minimize: false;
21
- versionKey: false;
22
- };
23
- toObject: {
24
- getters: false;
25
- virtuals: true;
26
- minimize: false;
27
- versionKey: false;
28
- };
29
- }>, {}>;
30
- export { modelName, schema };
@@ -1,40 +0,0 @@
1
- import * as mongoose from 'mongoose';
2
- declare const modelName = "AccountTitle";
3
- /**
4
- * 勘定科目スキーマ
5
- */
6
- declare const schema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any>, {}, {}, {}, {}, mongoose.ResolveSchemaOptions<{
7
- collection: string;
8
- id: true;
9
- read: string;
10
- writeConcern: import("mongodb").WriteConcern;
11
- timestamps: {
12
- createdAt: string;
13
- updatedAt: string;
14
- };
15
- toJSON: {
16
- getters: false;
17
- virtuals: false;
18
- minimize: false;
19
- versionKey: false;
20
- };
21
- toObject: {
22
- getters: false;
23
- virtuals: true;
24
- minimize: false;
25
- versionKey: false;
26
- };
27
- }>, {
28
- typeOf: string;
29
- name?: string | undefined;
30
- project?: any;
31
- codeValue?: string | undefined;
32
- alternateName?: string | undefined;
33
- description?: string | undefined;
34
- inCodeSet?: any;
35
- hasCategoryCode?: any;
36
- inDefinedTermSet?: any;
37
- hasDefinedTerm?: any;
38
- additionalProperty?: any;
39
- }>;
40
- export { modelName, schema };
@@ -1,43 +0,0 @@
1
- import * as mongoose from 'mongoose';
2
- declare const modelName = "AccountTransaction";
3
- /**
4
- * 口座取引スキーマ
5
- */
6
- declare const schema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any>, {}, {}, {}, {}, mongoose.ResolveSchemaOptions<{
7
- collection: string;
8
- id: true;
9
- read: string;
10
- writeConcern: import("mongodb").WriteConcern;
11
- strict: true;
12
- useNestedStrict: boolean;
13
- timestamps: {
14
- createdAt: string;
15
- updatedAt: string;
16
- };
17
- toJSON: {
18
- getters: false;
19
- virtuals: false;
20
- minimize: false;
21
- versionKey: false;
22
- };
23
- toObject: {
24
- getters: false;
25
- virtuals: true;
26
- minimize: false;
27
- versionKey: false;
28
- };
29
- }>, {
30
- typeOf: string;
31
- status: string;
32
- transactionNumber: string;
33
- object?: any;
34
- expires?: Date | undefined;
35
- project?: any;
36
- identifier?: string | undefined;
37
- agent?: any;
38
- recipient?: any;
39
- startDate?: Date | undefined;
40
- endDate?: Date | undefined;
41
- potentialActions?: any;
42
- }>;
43
- export { modelName, schema };
@@ -1,34 +0,0 @@
1
- import * as mongoose from 'mongoose';
2
- declare const modelName = "AccountingReport";
3
- /**
4
- * 経理レポートスキーマ
5
- */
6
- declare const schema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any>, {}, {}, {}, {}, mongoose.ResolveSchemaOptions<{
7
- collection: string;
8
- id: true;
9
- read: string;
10
- writeConcern: import("mongodb").WriteConcern;
11
- strict: false;
12
- useNestedStrict: boolean;
13
- timestamps: {
14
- createdAt: string;
15
- updatedAt: string;
16
- };
17
- toJSON: {
18
- getters: false;
19
- virtuals: false;
20
- minimize: false;
21
- versionKey: false;
22
- };
23
- toObject: {
24
- getters: false;
25
- virtuals: true;
26
- minimize: false;
27
- versionKey: false;
28
- };
29
- }>, {
30
- hasPart: (typeof mongoose.Schema.Types.Mixed)[];
31
- mainEntity: typeof mongoose.Schema.Types.Mixed;
32
- project: typeof mongoose.Schema.Types.Mixed;
33
- }>;
34
- export { modelName, schema };
@@ -1,49 +0,0 @@
1
- import * as mongoose from 'mongoose';
2
- declare const modelName = "Action";
3
- /**
4
- * アクションスキーマ
5
- */
6
- declare const schema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any>, {}, {}, {}, {}, mongoose.ResolveSchemaOptions<{
7
- collection: string;
8
- id: true;
9
- read: string;
10
- writeConcern: import("mongodb").WriteConcern;
11
- strict: true;
12
- useNestedStrict: boolean;
13
- timestamps: {
14
- createdAt: string;
15
- updatedAt: string;
16
- };
17
- toJSON: {
18
- getters: false;
19
- virtuals: false;
20
- minimize: false;
21
- versionKey: false;
22
- };
23
- toObject: {
24
- getters: false;
25
- virtuals: true;
26
- minimize: false;
27
- versionKey: false;
28
- };
29
- }>, {
30
- object?: any;
31
- typeOf?: string | undefined;
32
- error?: any;
33
- project?: any;
34
- description?: string | undefined;
35
- agent?: any;
36
- recipient?: any;
37
- startDate?: Date | undefined;
38
- endDate?: Date | undefined;
39
- potentialActions?: any;
40
- fromLocation?: any;
41
- toLocation?: any;
42
- actionStatus?: string | undefined;
43
- result?: any;
44
- purpose?: any;
45
- amount?: any;
46
- instrument?: any;
47
- location?: any;
48
- }>;
49
- export { modelName, schema };
@@ -1,36 +0,0 @@
1
- import * as mongoose from 'mongoose';
2
- declare const modelName = "AdditionalProperty";
3
- /**
4
- * 追加特性スキーマ
5
- */
6
- declare const schema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any>, {}, {}, {}, {}, mongoose.ResolveSchemaOptions<{
7
- collection: string;
8
- id: true;
9
- read: string;
10
- writeConcern: import("mongodb").WriteConcern;
11
- strict: true;
12
- useNestedStrict: boolean;
13
- timestamps: {
14
- createdAt: string;
15
- updatedAt: string;
16
- };
17
- toJSON: {
18
- getters: false;
19
- virtuals: false;
20
- minimize: false;
21
- versionKey: false;
22
- };
23
- toObject: {
24
- getters: false;
25
- virtuals: true;
26
- minimize: false;
27
- versionKey: false;
28
- };
29
- }>, {
30
- typeOf: string;
31
- codeValue: string;
32
- name?: any;
33
- project?: any;
34
- inCodeSet?: any;
35
- }>;
36
- export { modelName, schema };
@@ -1,30 +0,0 @@
1
- import * as mongoose from 'mongoose';
2
- declare const modelName = "Aggregation";
3
- /**
4
- * 集計スキーマ
5
- */
6
- declare const schema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any>, {}, {}, {}, {}, mongoose.ResolveSchemaOptions<{
7
- collection: string;
8
- id: true;
9
- read: string;
10
- writeConcern: import("mongodb").WriteConcern;
11
- strict: false;
12
- useNestedStrict: boolean;
13
- timestamps: {
14
- createdAt: string;
15
- updatedAt: string;
16
- };
17
- toJSON: {
18
- getters: false;
19
- virtuals: false;
20
- minimize: false;
21
- versionKey: false;
22
- };
23
- toObject: {
24
- getters: false;
25
- virtuals: true;
26
- minimize: false;
27
- versionKey: false;
28
- };
29
- }>, {}>;
30
- export { modelName, schema };
@@ -1,48 +0,0 @@
1
- import * as mongoose from 'mongoose';
2
- declare const modelName = "AssetTransaction";
3
- /**
4
- * 資産取引スキーマ
5
- */
6
- declare const schema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any>, {}, {}, {}, {}, mongoose.ResolveSchemaOptions<{
7
- collection: string;
8
- id: true;
9
- read: string;
10
- writeConcern: import("mongodb").WriteConcern;
11
- strict: true;
12
- useNestedStrict: boolean;
13
- timestamps: {
14
- createdAt: string;
15
- updatedAt: string;
16
- };
17
- toJSON: {
18
- getters: false;
19
- virtuals: false;
20
- minimize: false;
21
- versionKey: false;
22
- };
23
- toObject: {
24
- getters: false;
25
- virtuals: true;
26
- minimize: false;
27
- versionKey: false;
28
- };
29
- }>, {
30
- object?: any;
31
- typeOf?: string | undefined;
32
- status?: string | undefined;
33
- expires?: Date | undefined;
34
- error?: any;
35
- project?: any;
36
- agent?: any;
37
- recipient?: any;
38
- startDate?: Date | undefined;
39
- endDate?: Date | undefined;
40
- potentialActions?: any;
41
- transactionNumber?: string | undefined;
42
- tasksExportationStatus?: string | undefined;
43
- tasksExportedAt?: Date | undefined;
44
- result?: any;
45
- location?: any;
46
- seller?: any;
47
- }>;
48
- export { modelName, schema };
@@ -1,37 +0,0 @@
1
- import * as mongoose from 'mongoose';
2
- declare const modelName = "Authorization";
3
- /**
4
- * 認可スキーマ
5
- */
6
- declare const schema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any>, {}, {}, {}, {}, mongoose.ResolveSchemaOptions<{
7
- collection: string;
8
- id: true;
9
- read: string;
10
- writeConcern: import("mongodb").WriteConcern;
11
- strict: true;
12
- useNestedStrict: boolean;
13
- timestamps: {
14
- createdAt: string;
15
- updatedAt: string;
16
- };
17
- toJSON: {
18
- getters: false;
19
- virtuals: false;
20
- minimize: false;
21
- versionKey: false;
22
- };
23
- toObject: {
24
- getters: false;
25
- virtuals: true;
26
- minimize: false;
27
- versionKey: false;
28
- };
29
- }>, {
30
- object?: any;
31
- typeOf?: string | undefined;
32
- project?: any;
33
- code?: string | undefined;
34
- validFrom?: Date | undefined;
35
- validUntil?: Date | undefined;
36
- }>;
37
- export { modelName, schema };
@@ -1,40 +0,0 @@
1
- import * as mongoose from 'mongoose';
2
- declare const modelName = "CategoryCode";
3
- /**
4
- * カテゴリーコードスキーマ
5
- */
6
- declare const schema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any>, {}, {}, {}, {}, mongoose.ResolveSchemaOptions<{
7
- collection: string;
8
- id: true;
9
- read: string;
10
- writeConcern: import("mongodb").WriteConcern;
11
- strict: true;
12
- useNestedStrict: boolean;
13
- timestamps: {
14
- createdAt: string;
15
- updatedAt: string;
16
- };
17
- toJSON: {
18
- getters: false;
19
- virtuals: false;
20
- minimize: false;
21
- versionKey: false;
22
- };
23
- toObject: {
24
- getters: false;
25
- virtuals: true;
26
- minimize: false;
27
- versionKey: false;
28
- };
29
- }>, {
30
- typeOf: string;
31
- codeValue: string;
32
- additionalProperty: any[];
33
- name?: any;
34
- project?: any;
35
- inCodeSet?: any;
36
- paymentMethod?: any;
37
- color?: string | undefined;
38
- image?: string | undefined;
39
- }>;
40
- export { modelName, schema };
@@ -1,41 +0,0 @@
1
- import * as mongoose from 'mongoose';
2
- declare const modelName = "Comment";
3
- /**
4
- * コメントスキーマ
5
- */
6
- declare const schema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any>, {}, {}, {}, {}, mongoose.ResolveSchemaOptions<{
7
- collection: string;
8
- id: true;
9
- read: string;
10
- writeConcern: import("mongodb").WriteConcern;
11
- strict: true;
12
- useNestedStrict: boolean;
13
- timestamps: {
14
- createdAt: string;
15
- updatedAt: string;
16
- };
17
- toJSON: {
18
- getters: false;
19
- virtuals: false;
20
- minimize: false;
21
- versionKey: false;
22
- };
23
- toObject: {
24
- getters: false;
25
- virtuals: true;
26
- minimize: false;
27
- versionKey: false;
28
- };
29
- }>, {
30
- text: string;
31
- typeOf: string;
32
- additionalProperty: any[];
33
- commentCount: number;
34
- mentions: any[];
35
- project?: any;
36
- about?: any;
37
- author?: any;
38
- dateCreated?: Date | undefined;
39
- dateModified?: Date | undefined;
40
- }>;
41
- export { modelName, schema };
@@ -1,49 +0,0 @@
1
- import * as mongoose from 'mongoose';
2
- declare const modelName = "CreativeWork";
3
- /**
4
- * 作品スキーマ
5
- */
6
- declare const schema: mongoose.Schema<any, mongoose.Model<any, any, any, any, any>, {}, {}, {}, {}, mongoose.ResolveSchemaOptions<{
7
- collection: string;
8
- id: true;
9
- read: string;
10
- writeConcern: import("mongodb").WriteConcern;
11
- strict: true;
12
- useNestedStrict: boolean;
13
- timestamps: {
14
- createdAt: string;
15
- updatedAt: string;
16
- };
17
- toJSON: {
18
- getters: false;
19
- virtuals: false;
20
- minimize: false;
21
- versionKey: false;
22
- };
23
- toObject: {
24
- getters: false;
25
- virtuals: true;
26
- minimize: false;
27
- versionKey: false;
28
- };
29
- }>, {
30
- typeOf: string;
31
- name?: any;
32
- project?: any;
33
- alternateName?: string | undefined;
34
- description?: string | undefined;
35
- additionalProperty?: any;
36
- identifier?: string | undefined;
37
- duration?: string | undefined;
38
- alternativeHeadline?: string | undefined;
39
- copyrightHolder?: any;
40
- copyrightYear?: number | undefined;
41
- datePublished?: Date | undefined;
42
- distributor?: any;
43
- headline?: string | undefined;
44
- license?: string | undefined;
45
- thumbnailUrl?: string | undefined;
46
- contentRating?: string | undefined;
47
- offers?: any;
48
- }>;
49
- export { modelName, schema };