@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
@@ -4,7 +4,7 @@
4
4
  import * as factory from '../../factory';
5
5
  import { MongoRepository as AccountRepo } from '../../repo/account';
6
6
  import { MongoRepository as AccountTransactionRepo } from '../../repo/accountTransaction';
7
- export declare type IStartOperation<T> = (repos: {
7
+ export type IStartOperation<T> = (repos: {
8
8
  account: AccountRepo;
9
9
  accountTransaction: AccountTransactionRepo;
10
10
  }) => Promise<T>;
@@ -45,11 +45,6 @@ function start(params) {
45
45
  transaction = yield repos.accountTransaction.startByIdentifier(startParams);
46
46
  }
47
47
  catch (error) {
48
- // tslint:disable-next-line:no-single-line-block-comment
49
- /* istanbul ignore next */
50
- if (error.name === 'MongoError') {
51
- // no op
52
- }
53
48
  throw error;
54
49
  }
55
50
  const pendingTransaction = {
@@ -4,7 +4,7 @@
4
4
  import * as factory from '../../factory';
5
5
  import { MongoRepository as AccountRepo } from '../../repo/account';
6
6
  import { MongoRepository as AccountTransactionRepo } from '../../repo/accountTransaction';
7
- export declare type IStartOperation<T> = (repos: {
7
+ export type IStartOperation<T> = (repos: {
8
8
  account: AccountRepo;
9
9
  accountTransaction: AccountTransactionRepo;
10
10
  }) => Promise<T>;
@@ -70,11 +70,6 @@ function start(params) {
70
70
  transaction = yield repos.accountTransaction.startByIdentifier(startParams);
71
71
  }
72
72
  catch (error) {
73
- // tslint:disable-next-line:no-single-line-block-comment
74
- /* istanbul ignore next */
75
- if (error.name === 'MongoError') {
76
- // no op
77
- }
78
73
  throw error;
79
74
  }
80
75
  const pendingTransaction = {
@@ -4,7 +4,7 @@
4
4
  import * as factory from '../../factory';
5
5
  import { MongoRepository as AccountRepo } from '../../repo/account';
6
6
  import { MongoRepository as AccountTransactionRepo } from '../../repo/accountTransaction';
7
- export declare type IStartOperation<T> = (repos: {
7
+ export type IStartOperation<T> = (repos: {
8
8
  account: AccountRepo;
9
9
  accountTransaction: AccountTransactionRepo;
10
10
  }) => Promise<T>;
@@ -52,11 +52,6 @@ function start(params) {
52
52
  transaction = yield repos.accountTransaction.startByIdentifier(startParams);
53
53
  }
54
54
  catch (error) {
55
- // tslint:disable-next-line:no-single-line-block-comment
56
- /* istanbul ignore next */
57
- if (error.name === 'MongoError') {
58
- // no op
59
- }
60
55
  throw error;
61
56
  }
62
57
  const pendingTransaction = {
@@ -6,7 +6,7 @@ import * as factory from '../factory';
6
6
  import * as DepositTransactionService from './accountTransaction/deposit';
7
7
  import * as TransferTransactionService from './accountTransaction/transfer';
8
8
  import * as WithdrawTransactionService from './accountTransaction/withdraw';
9
- declare type IConfirmOperation<T> = (repos: {
9
+ type IConfirmOperation<T> = (repos: {
10
10
  accountTransaction: AccountTransactionRepo;
11
11
  }) => Promise<T>;
12
12
  /**
@@ -9,7 +9,7 @@ import { RedisRepository as OfferRateLimitRepo } from '../../../repo/rateLimit/o
9
9
  import { MongoRepository as ReservationRepo } from '../../../repo/reservation';
10
10
  import { MongoRepository as TaskRepo } from '../../../repo/task';
11
11
  import * as factory from '../../../factory';
12
- export declare type IAggregateScreeningEventOperation<T> = (repos: {
12
+ export type IAggregateScreeningEventOperation<T> = (repos: {
13
13
  event: EventRepo;
14
14
  eventAvailability: EventAvailabilityRepo;
15
15
  offer: OfferRepo;
@@ -3,7 +3,7 @@ import { MongoRepository as EventRepo } from '../../../repo/event';
3
3
  import { MongoRepository as OfferRepo } from '../../../repo/offer';
4
4
  import { MongoRepository as PlaceRepo } from '../../../repo/place';
5
5
  import { MongoRepository as ProductRepo } from '../../../repo/product';
6
- export declare type IAggregateOperation<T> = (repos: {
6
+ export type IAggregateOperation<T> = (repos: {
7
7
  action: ActionRepo;
8
8
  event: EventRepo;
9
9
  offer: OfferRepo;
@@ -1,7 +1,7 @@
1
1
  import { MongoRepository as ProjectRepo } from '../../repo/project';
2
2
  import { MongoRepository as ReservationRepo } from '../../repo/reservation';
3
3
  import { MongoRepository as TaskRepo } from '../../repo/task';
4
- export declare type IAggregateOperation<T> = (repos: {
4
+ export type IAggregateOperation<T> = (repos: {
5
5
  project: ProjectRepo;
6
6
  reservation: ReservationRepo;
7
7
  task: TaskRepo;
@@ -3,16 +3,16 @@ import { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransac
3
3
  import { MongoRepository as ProjectRepo } from '../../repo/project';
4
4
  import { MongoRepository as ReservationRepo } from '../../repo/reservation';
5
5
  import { MongoRepository as TaskRepo } from '../../repo/task';
6
- export declare type IStartOperation<T> = (repos: {
6
+ export type IStartOperation<T> = (repos: {
7
7
  project: ProjectRepo;
8
8
  reservation: ReservationRepo;
9
9
  assetTransaction: AssetTransactionRepo;
10
10
  }) => Promise<T>;
11
- export declare type ITaskAndTransactionOperation<T> = (repos: {
11
+ export type ITaskAndTransactionOperation<T> = (repos: {
12
12
  task: TaskRepo;
13
13
  assetTransaction: AssetTransactionRepo;
14
14
  }) => Promise<T>;
15
- export declare type ITransactionOperation<T> = (repos: {
15
+ export type ITransactionOperation<T> = (repos: {
16
16
  assetTransaction: AssetTransactionRepo;
17
17
  }) => Promise<T>;
18
18
  /**
@@ -3,19 +3,19 @@ import { MongoRepository as AssetTransactionRepo } from '../../repo/assetTransac
3
3
  import { MongoRepository as ProductRepo } from '../../repo/product';
4
4
  import { MongoRepository as ProjectRepo } from '../../repo/project';
5
5
  import { MongoRepository as TaskRepo } from '../../repo/task';
6
- export declare type IStartOperation<T> = (repos: {
6
+ export type IStartOperation<T> = (repos: {
7
7
  product: ProductRepo;
8
8
  project: ProjectRepo;
9
9
  assetTransaction: AssetTransactionRepo;
10
10
  }) => Promise<T>;
11
- export declare type ITaskAndTransactionOperation<T> = (repos: {
11
+ export type ITaskAndTransactionOperation<T> = (repos: {
12
12
  task: TaskRepo;
13
13
  assetTransaction: AssetTransactionRepo;
14
14
  }) => Promise<T>;
15
- export declare type IConfirmOperation<T> = (repos: {
15
+ export type IConfirmOperation<T> = (repos: {
16
16
  assetTransaction: AssetTransactionRepo;
17
17
  }) => Promise<T>;
18
- export declare type ICancelOperation<T> = (repos: {
18
+ export type ICancelOperation<T> = (repos: {
19
19
  assetTransaction: AssetTransactionRepo;
20
20
  }) => Promise<T>;
21
21
  /**
@@ -87,11 +87,6 @@ function start(params) {
87
87
  // });
88
88
  }
89
89
  catch (error) {
90
- // tslint:disable-next-line:no-single-line-block-comment
91
- /* istanbul ignore next */
92
- if (error.name === 'MongoError') {
93
- // no op
94
- }
95
90
  throw error;
96
91
  }
97
92
  return transaction;
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../../../factory';
2
- export declare type IUnitPriceSpecification = factory.unitPriceOffer.IUnitPriceOfferPriceSpecification;
2
+ export type IUnitPriceSpecification = factory.unitPriceOffer.IUnitPriceOfferPriceSpecification;
3
3
  /**
4
4
  * 取引のポストアクションを作成する
5
5
  */
@@ -25,7 +25,7 @@ export interface IStartOperationRepos {
25
25
  assetTransaction: AssetTransactionRepo;
26
26
  task: TaskRepo;
27
27
  }
28
- export declare type IStartOperation<T> = (repos: IStartOperationRepos) => Promise<T>;
28
+ export type IStartOperation<T> = (repos: IStartOperationRepos) => Promise<T>;
29
29
  export interface ICancelRepos {
30
30
  action: ActionRepo;
31
31
  accountingReport: AccountingReportRepo;
@@ -35,7 +35,7 @@ export interface ICancelRepos {
35
35
  seller: SellerRepo;
36
36
  task: TaskRepo;
37
37
  }
38
- export declare type ICancelOperation<T> = (repos: ICancelRepos) => Promise<T>;
38
+ export type ICancelOperation<T> = (repos: ICancelRepos) => Promise<T>;
39
39
  export interface IConfirmRepos {
40
40
  action: ActionRepo;
41
41
  accountingReport: AccountingReportRepo;
@@ -47,25 +47,25 @@ export interface IConfirmRepos {
47
47
  seller: SellerRepo;
48
48
  task: TaskRepo;
49
49
  }
50
- export declare type IConfirmOperation<T> = (repos: IConfirmRepos) => Promise<T>;
51
- export declare type IExportTasksOperation<T> = (repos: {
50
+ export type IConfirmOperation<T> = (repos: IConfirmRepos) => Promise<T>;
51
+ export type IExportTasksOperation<T> = (repos: {
52
52
  task: TaskRepo;
53
53
  assetTransaction: AssetTransactionRepo;
54
54
  }) => Promise<T>;
55
- export declare type ICheckOperation<T> = (repos: {
55
+ export type ICheckOperation<T> = (repos: {
56
56
  action: ActionRepo;
57
57
  event: EventRepo;
58
58
  product: ProductRepo;
59
59
  project: ProjectRepo;
60
60
  seller: SellerRepo;
61
61
  }) => Promise<T>;
62
- export declare type IPublishPaymentUrlOperation<T> = (repos: {
62
+ export type IPublishPaymentUrlOperation<T> = (repos: {
63
63
  person: PersonRepo;
64
64
  product: ProductRepo;
65
65
  project: ProjectRepo;
66
66
  seller: SellerRepo;
67
67
  }) => Promise<T>;
68
- export declare type IInvalidatePaymentUrlOperation<T> = (repos: {
68
+ export type IInvalidatePaymentUrlOperation<T> = (repos: {
69
69
  accountingReport: AccountingReportRepo;
70
70
  action: ActionRepo;
71
71
  product: ProductRepo;
@@ -8,14 +8,14 @@ export interface IStartOperationRepos {
8
8
  product: ProductRepo;
9
9
  assetTransaction: AssetTransactionRepo;
10
10
  }
11
- export declare type IStartOperation<T> = (repos: IStartOperationRepos) => Promise<T>;
12
- export declare type ICancelOperation<T> = (repos: {
11
+ export type IStartOperation<T> = (repos: IStartOperationRepos) => Promise<T>;
12
+ export type ICancelOperation<T> = (repos: {
13
13
  assetTransaction: AssetTransactionRepo;
14
14
  }) => Promise<T>;
15
- export declare type IConfirmOperation<T> = (repos: {
15
+ export type IConfirmOperation<T> = (repos: {
16
16
  assetTransaction: AssetTransactionRepo;
17
17
  }) => Promise<T>;
18
- export declare type IExportTasksOperation<T> = (repos: {
18
+ export type IExportTasksOperation<T> = (repos: {
19
19
  task: TaskRepo;
20
20
  assetTransaction: AssetTransactionRepo;
21
21
  }) => Promise<T>;
@@ -68,11 +68,6 @@ function start(params) {
68
68
  }
69
69
  }
70
70
  catch (error) {
71
- // tslint:disable-next-line:no-single-line-block-comment
72
- /* istanbul ignore next */
73
- if (error.name === 'MongoError') {
74
- // no op
75
- }
76
71
  throw error;
77
72
  }
78
73
  return transaction;
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../../../factory';
2
- export declare type IUnitPriceSpecification = factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType.UnitPriceSpecification>;
2
+ export type IUnitPriceSpecification = factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType.UnitPriceSpecification>;
3
3
  /**
4
4
  * ポイント特典を作成する
5
5
  */
@@ -7,7 +7,7 @@ import { MongoRepository as ProductRepo } from '../../repo/product';
7
7
  import { MongoRepository as ProjectRepo } from '../../repo/project';
8
8
  import { MongoRepository as ServiceOutputRepo } from '../../repo/serviceOutput';
9
9
  import { MongoRepository as TaskRepo } from '../../repo/task';
10
- export declare type IStartOperation<T> = (repos: {
10
+ export type IStartOperation<T> = (repos: {
11
11
  account: AccountRepo;
12
12
  offer: OfferRepo;
13
13
  offerCatalog: OfferCatalogRepo;
@@ -16,13 +16,13 @@ export declare type IStartOperation<T> = (repos: {
16
16
  project: ProjectRepo;
17
17
  assetTransaction: AssetTransactionRepo;
18
18
  }) => Promise<T>;
19
- export declare type ICancelOperation<T> = (repos: {
19
+ export type ICancelOperation<T> = (repos: {
20
20
  assetTransaction: AssetTransactionRepo;
21
21
  }) => Promise<T>;
22
- export declare type IConfirmOperation<T> = (repos: {
22
+ export type IConfirmOperation<T> = (repos: {
23
23
  assetTransaction: AssetTransactionRepo;
24
24
  }) => Promise<T>;
25
- export declare type IExportTasksOperation<T> = (repos: {
25
+ export type IExportTasksOperation<T> = (repos: {
26
26
  task: TaskRepo;
27
27
  assetTransaction: AssetTransactionRepo;
28
28
  }) => Promise<T>;
@@ -71,11 +71,6 @@ function start(params) {
71
71
  transaction = yield repos.assetTransaction.start(startParams);
72
72
  }
73
73
  catch (error) {
74
- // tslint:disable-next-line:no-single-line-block-comment
75
- /* istanbul ignore next */
76
- if (error.name === 'MongoError') {
77
- // no op
78
- }
79
74
  throw error;
80
75
  }
81
76
  // 必要あれば在庫確認など
@@ -2,7 +2,7 @@
2
2
  * 予約価格ファクトリー
3
3
  */
4
4
  import * as factory from '../../../../factory';
5
- export declare type IAcceptedAddOn = Pick<factory.offer.IAddOn, 'id' | 'identifier' | 'itemOffered' | 'priceCurrency' | 'typeOf' | 'validFrom' | 'validThrough'> & {
5
+ export type IAcceptedAddOn = Pick<factory.offer.IAddOn, 'id' | 'identifier' | 'itemOffered' | 'priceCurrency' | 'typeOf' | 'validFrom' | 'validThrough'> & {
6
6
  priceSpecification: factory.product.ITicketUnitPriceComponent;
7
7
  };
8
8
  export declare function createPrice(params: {
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../../../factory';
2
2
  import { IAcceptedAddOn } from './factory/price';
3
- declare type IObjectSubReservation = factory.assetTransaction.reserve.IObjectSubReservation;
3
+ type IObjectSubReservation = factory.assetTransaction.reserve.IObjectSubReservation;
4
4
  export { IAcceptedAddOn };
5
5
  export declare function createStartParams(params: factory.assetTransaction.reserve.IStartParamsWithoutDetail & {
6
6
  reservationNumber: string;
@@ -43,7 +43,7 @@ export declare function createAdditionalTicketText(params: {
43
43
  acceptedOffer: factory.assetTransaction.reserve.IAcceptedTicketOfferWithoutDetail;
44
44
  reservedTicket: factory.reservation.ITicket;
45
45
  }): string | undefined;
46
- export declare type IUnitPriceSpecification = factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType.UnitPriceSpecification>;
46
+ export type IUnitPriceSpecification = factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType.UnitPriceSpecification>;
47
47
  export declare function createReservationFor(params: factory.event.screeningEvent.IEvent | factory.event.event.IEvent): factory.assetTransaction.reserve.IReservationFor;
48
48
  export declare function createReservation(params: {
49
49
  project: {
@@ -27,7 +27,7 @@ export interface IStartOperationRepos {
27
27
  task: TaskRepo;
28
28
  assetTransaction: AssetTransactionRepo;
29
29
  }
30
- export declare type IStartOperation<T> = (repos: IStartOperationRepos) => Promise<T>;
30
+ export type IStartOperation<T> = (repos: IStartOperationRepos) => Promise<T>;
31
31
  export interface IAddReservationsOperationRepos {
32
32
  eventAvailability: ScreeningEventAvailabilityRepo;
33
33
  event: EventRepo;
@@ -41,8 +41,8 @@ export interface IAddReservationsOperationRepos {
41
41
  task: TaskRepo;
42
42
  assetTransaction: AssetTransactionRepo;
43
43
  }
44
- export declare type IAddReservationsOperation<T> = (repos: IAddReservationsOperationRepos) => Promise<T>;
45
- export declare type ICancelOperation<T> = (repos: {
44
+ export type IAddReservationsOperation<T> = (repos: IAddReservationsOperationRepos) => Promise<T>;
45
+ export type ICancelOperation<T> = (repos: {
46
46
  action: ActionRepo;
47
47
  eventAvailability: ScreeningEventAvailabilityRepo;
48
48
  offerRateLimit: OfferRateLimitRepo;
@@ -50,7 +50,7 @@ export declare type ICancelOperation<T> = (repos: {
50
50
  task: TaskRepo;
51
51
  assetTransaction: AssetTransactionRepo;
52
52
  }) => Promise<T>;
53
- export declare type ITaskAndTransactionOperation<T> = (repos: {
53
+ export type ITaskAndTransactionOperation<T> = (repos: {
54
54
  task: TaskRepo;
55
55
  assetTransaction: AssetTransactionRepo;
56
56
  }) => Promise<T>;
@@ -61,8 +61,8 @@ interface IConfirmRepo {
61
61
  reservation: ReservationRepo;
62
62
  task: TaskRepo;
63
63
  }
64
- export declare type IConfirmOperation<T> = (repos: IConfirmRepo) => Promise<T>;
65
- declare type IStartParams = factory.assetTransaction.reserve.IStartParamsWithoutDetail & {
64
+ export type IConfirmOperation<T> = (repos: IConfirmRepo) => Promise<T>;
65
+ type IStartParams = factory.assetTransaction.reserve.IStartParamsWithoutDetail & {
66
66
  /**
67
67
  * 承認アクションを介した場合に検索済のイベント
68
68
  */
@@ -61,11 +61,6 @@ function start(params) {
61
61
  transaction = yield repos.assetTransaction.start(startParams);
62
62
  }
63
63
  catch (error) {
64
- // tslint:disable-next-line:no-single-line-block-comment
65
- /* istanbul ignore next */
66
- if (error.name === 'MongoError') {
67
- // no op
68
- }
69
64
  throw error;
70
65
  }
71
66
  // 指定があれば予約追加
@@ -160,11 +155,6 @@ function addReservations(params) {
160
155
  yield (0, cancelReservation_1.processUnlockOfferRateLimit)({ reservation, reservationFor })(repos);
161
156
  })));
162
157
  }
163
- // tslint:disable-next-line:no-single-line-block-comment
164
- /* istanbul ignore next */
165
- if (error.name === 'MongoError') {
166
- // no op
167
- }
168
158
  throw error;
169
159
  }
170
160
  // 座席指定でも座席ロック
@@ -1,8 +1,8 @@
1
1
  import { MongoRepository as ActionRepo } from '../repo/action';
2
2
  import { MongoRepository as AuthorizationRepo } from '../repo/code';
3
3
  import * as factory from '../factory';
4
- export declare type IToken = string;
5
- export declare type ICode = string;
4
+ export type IToken = string;
5
+ export type ICode = string;
6
6
  /**
7
7
  * コードをトークンに変換する
8
8
  */
@@ -48,7 +48,12 @@ function getToken(params) {
48
48
  reject(err);
49
49
  }
50
50
  else {
51
- resolve(encoded);
51
+ if (typeof encoded !== 'string') {
52
+ reject(new factory.errors.ServiceUnavailable('authorization.object cannot be signed unexpectedly'));
53
+ }
54
+ else {
55
+ resolve(encoded);
56
+ }
52
57
  }
53
58
  });
54
59
  });
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../../factory';
2
- export declare type IOwnershipInfo = factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>;
2
+ export type IOwnershipInfo = factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>;
3
3
  /**
4
4
  * 注文から所有権を作成する
5
5
  */
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../../../factory';
2
- export declare type IOwnershipInfo = factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>;
2
+ export type IOwnershipInfo = factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>;
3
3
  export declare function createProductOwnershipInfo(params: {
4
4
  project: {
5
5
  typeOf: factory.organizationType.Project;
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../../../factory';
2
- export declare type IOwnershipInfo = factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>;
2
+ export type IOwnershipInfo = factory.ownershipInfo.IOwnershipInfo<factory.ownershipInfo.IGood>;
3
3
  export declare function createReservationOwnershipInfo(params: {
4
4
  project: {
5
5
  typeOf: factory.organizationType.Project;
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import { MongoRepository as MemberRepo } from '../repo/member';
5
5
  import { MongoRepository as RoleRepo } from '../repo/role';
6
- export declare type IPermission = string;
6
+ export type IPermission = string;
7
7
  /**
8
8
  * プロジェクトメンバーの権限を検索する
9
9
  */
@@ -4,7 +4,7 @@ import { MongoRepository as AssetTransactionRepo } from '../repo/assetTransactio
4
4
  import { MongoRepository as ProductRepo } from '../repo/product';
5
5
  import { MongoRepository as ProjectRepo } from '../repo/project';
6
6
  import { RedisRepository as TransactionNumberRepo } from '../repo/transactionNumber';
7
- export declare type IAuthorizeOperation<T> = (repos: {
7
+ export type IAuthorizeOperation<T> = (repos: {
8
8
  product: ProductRepo;
9
9
  project: ProjectRepo;
10
10
  assetTransaction: AssetTransactionRepo;
@@ -1,7 +1,7 @@
1
1
  import * as factory from '../factory';
2
2
  import { MongoRepository as ActionRepo } from '../repo/action';
3
3
  import { MongoRepository as ProjectRepo } from '../repo/project';
4
- export declare type Operation<T> = () => Promise<T>;
4
+ export type Operation<T> = () => Promise<T>;
5
5
  /**
6
6
  * Eメールメッセージを送信する
7
7
  * https://sendgrid.com/docs/API_Reference/Web_API_v3/Mail/errors.html
@@ -32,8 +32,8 @@ interface IAuthorizeRepos {
32
32
  transaction: TransactionRepo;
33
33
  transactionNumber: TransactionNumberRepo;
34
34
  }
35
- declare type IAuthorizeOperation<T> = (repos: IAuthorizeRepos) => Promise<T>;
36
- declare type IAuthorizeOfferAction = factory.action.authorize.offer.seatReservation.IAction<factory.service.webAPI.Identifier>;
35
+ type IAuthorizeOperation<T> = (repos: IAuthorizeRepos) => Promise<T>;
36
+ type IAuthorizeOfferAction = factory.action.authorize.offer.seatReservation.IAction<factory.service.webAPI.Identifier>;
37
37
  /**
38
38
  * イベントオファー承認
39
39
  */
@@ -1,10 +1,10 @@
1
1
  import * as COA from '@motionpicture/coa-service';
2
2
  import * as factory from '../../../factory';
3
3
  import { IMinimizedIndividualEvent } from '../../../factory/event';
4
- export declare type IReservationFor = factory.reservation.IReservationFor<factory.reservationType.EventReservation>;
5
- export declare type IUnitPriceSpecification = factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType.UnitPriceSpecification>;
6
- export declare type IObjectWithoutDetail = factory.action.authorize.offer.seatReservation.IObjectWithoutDetail4chevre;
7
- export declare type IObjectWithDetail = factory.action.authorize.offer.seatReservation.IObject<factory.service.webAPI.Identifier.Chevre>;
4
+ export type IReservationFor = factory.reservation.IReservationFor<factory.reservationType.EventReservation>;
5
+ export type IUnitPriceSpecification = factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType.UnitPriceSpecification>;
6
+ export type IObjectWithoutDetail = factory.action.authorize.offer.seatReservation.IObjectWithoutDetail4chevre;
7
+ export type IObjectWithDetail = factory.action.authorize.offer.seatReservation.IObject<factory.service.webAPI.Identifier.Chevre>;
8
8
  export declare function createReserveTransactionStartParams(params: {
9
9
  project: {
10
10
  id: string;
@@ -23,7 +23,7 @@ export declare function createAuthorizeSeatReservationActionAttributes(params: {
23
23
  export declare function acceptedOffers2amount(params: {
24
24
  acceptedOffers: IResultAcceptedOffer[];
25
25
  }): number;
26
- declare type IResultAcceptedOffer = factory.action.authorize.offer.seatReservation.IResultAcceptedOffer;
26
+ type IResultAcceptedOffer = factory.action.authorize.offer.seatReservation.IResultAcceptedOffer;
27
27
  export declare function responseBody2acceptedOffers4result(params: {
28
28
  responseBody: factory.assetTransaction.reserve.ITransaction;
29
29
  event: IMinimizedIndividualEvent<factory.eventType.ScreeningEvent>;
@@ -11,8 +11,8 @@ interface ISearchEventTicketOffersRepos {
11
11
  offerRateLimit: OfferRateLimitRepo;
12
12
  product: ProductRepo;
13
13
  }
14
- declare type ISearchEventTicketOffersOperation<T> = (repos: ISearchEventTicketOffersRepos) => Promise<T>;
15
- declare type ITicketOfferWithSortIndex = factory.product.ITicketOffer;
14
+ type ISearchEventTicketOffersOperation<T> = (repos: ISearchEventTicketOffersRepos) => Promise<T>;
15
+ type ITicketOfferWithSortIndex = factory.product.ITicketOffer;
16
16
  /**
17
17
  * 興行オファー検索
18
18
  */
@@ -1,7 +1,7 @@
1
1
  import * as factory from '../../../factory';
2
2
  import { IMinimizedIndividualEvent } from '../../../factory/event';
3
3
  export import WebAPIIdentifier = factory.service.webAPI.Identifier;
4
- export declare type IAcceptedOffer4COA = factory.action.authorize.offer.seatReservation.IAcceptedOffer<factory.service.webAPI.Identifier.COA>;
4
+ export type IAcceptedOffer4COA = factory.action.authorize.offer.seatReservation.IAcceptedOffer<factory.service.webAPI.Identifier.COA>;
5
5
  export declare function createAuthorizeSeatReservationActionAttributes(params: {
6
6
  acceptedOffers: factory.action.authorize.offer.seatReservation.IAcceptedOffer<factory.service.webAPI.Identifier.COA>[];
7
7
  event: factory.event.IEvent<factory.eventType.ScreeningEvent>;
@@ -14,7 +14,7 @@ export declare function offers2resultPrice(offers: IAcceptedOffer4COA[]): {
14
14
  price: number;
15
15
  eligibleMonetaryAmount: factory.offer.IEligibleMonetaryAmount[];
16
16
  };
17
- declare type IResultAcceptedOffer = factory.action.authorize.offer.seatReservation.IResultAcceptedOffer;
17
+ type IResultAcceptedOffer = factory.action.authorize.offer.seatReservation.IResultAcceptedOffer;
18
18
  /**
19
19
  * COA仮予約結果から注文アイテムを生成する
20
20
  */
@@ -1,7 +1,7 @@
1
1
  import * as factory from '../../../factory';
2
2
  import { MongoRepository as OfferRepo } from '../../../repo/offer';
3
3
  import { IAcceptedOffer4COA } from './factory';
4
- export declare type IAcceptedOfferBeforeAuthorize4COA = factory.action.authorize.offer.seatReservation.IAcceptedOfferBeforeAuthorize4COA;
4
+ export type IAcceptedOfferBeforeAuthorize4COA = factory.action.authorize.offer.seatReservation.IAcceptedOfferBeforeAuthorize4COA;
5
5
  /**
6
6
  * 受け入れらたオファーの内容を検証
7
7
  */
@@ -13,8 +13,8 @@ interface IAuthorizeRepos {
13
13
  offer: OfferRepo;
14
14
  transaction: TransactionRepo;
15
15
  }
16
- export declare type IAuthorizeOperation<T> = (repos: IAuthorizeRepos) => Promise<T>;
17
- export declare type IAuthorizeOfferAction = factory.action.authorize.offer.seatReservation.IAction<WebAPIIdentifier.COA>;
16
+ export type IAuthorizeOperation<T> = (repos: IAuthorizeRepos) => Promise<T>;
17
+ export type IAuthorizeOfferAction = factory.action.authorize.offer.seatReservation.IAction<WebAPIIdentifier.COA>;
18
18
  /**
19
19
  * COA興行オファー承認
20
20
  */
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../../factory';
2
- declare type IMovieTicketTypeChargeSpecification = factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType.MovieTicketTypeChargeSpecification>;
3
- declare type ICategoryCodeChargeSpecification = factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType.CategoryCodeChargeSpecification>;
2
+ type IMovieTicketTypeChargeSpecification = factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType.MovieTicketTypeChargeSpecification>;
3
+ type ICategoryCodeChargeSpecification = factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType.CategoryCodeChargeSpecification>;
4
4
  declare function createCompoundPriceSpec4event(params: {
5
5
  eligibleQuantity: factory.quantitativeValue.IQuantitativeValue<factory.unitCode.C62>;
6
6
  offer: factory.unitPriceOffer.IUnitPriceOffer;
@@ -13,7 +13,7 @@ interface IAuthorizeRepos {
13
13
  transaction: TransactionRepo;
14
14
  transactionNumber: TransactionNumberRepo;
15
15
  }
16
- declare type IAuthorizeOperation<T> = (repos: IAuthorizeRepos) => Promise<T>;
16
+ type IAuthorizeOperation<T> = (repos: IAuthorizeRepos) => Promise<T>;
17
17
  export declare function authorize(params: {
18
18
  project: {
19
19
  id: string;
@@ -29,7 +29,7 @@ export interface IAuthorizeOperationRepos {
29
29
  transaction: TransactionRepo;
30
30
  transactionNumber: TransactionNumberRepo;
31
31
  }
32
- export declare type IAuthorizeOperation<T> = (repos: IAuthorizeOperationRepos) => Promise<T>;
32
+ export type IAuthorizeOperation<T> = (repos: IAuthorizeOperationRepos) => Promise<T>;
33
33
  export declare const ERROR_MESSAGE_ALREADY_REGISTERED = "Already registered";
34
34
  /**
35
35
  * プロダクトオファーを検索する
@@ -62,7 +62,7 @@ export declare function search(params: {
62
62
  offers: factory.product.ITicketOffer[];
63
63
  product: factory.product.IProduct;
64
64
  }>;
65
- export declare type IAuthorizeOfferAction = factory.action.authorize.offer.product.IAction;
65
+ export type IAuthorizeOfferAction = factory.action.authorize.offer.product.IAction;
66
66
  /**
67
67
  * サービス(Chevreプロダクト)オファー承認
68
68
  */
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../../../factory';
2
- declare type IOrderWithToken = factory.order.IOrder & {
2
+ type IOrderWithToken = factory.order.IOrder & {
3
3
  token: string;
4
4
  };
5
5
  export declare function getOrderWithToken(params: {