@chevre/domain 21.0.0-alpha.8 → 21.0.0

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 (227) 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/repo/account.d.ts +0 -2
  5. package/lib/chevre/repo/account.js +6 -3
  6. package/lib/chevre/repo/accountTitle.js +5 -1
  7. package/lib/chevre/repo/accountTransaction.d.ts +0 -2
  8. package/lib/chevre/repo/accountTransaction.js +6 -3
  9. package/lib/chevre/repo/accountingReport.d.ts +1 -1
  10. package/lib/chevre/repo/accountingReport.js +6 -2
  11. package/lib/chevre/repo/action/registerServiceInProgress.js +1 -1
  12. package/lib/chevre/repo/action.d.ts +3 -4
  13. package/lib/chevre/repo/action.js +6 -3
  14. package/lib/chevre/repo/additionalProperty.js +5 -1
  15. package/lib/chevre/repo/aggregation.js +5 -1
  16. package/lib/chevre/repo/assetTransaction.d.ts +1 -2
  17. package/lib/chevre/repo/assetTransaction.js +6 -3
  18. package/lib/chevre/repo/categoryCode.js +5 -1
  19. package/lib/chevre/repo/code.d.ts +3 -3
  20. package/lib/chevre/repo/code.js +5 -1
  21. package/lib/chevre/repo/comment.js +5 -1
  22. package/lib/chevre/repo/confirmationNumber.js +1 -1
  23. package/lib/chevre/repo/creativeWork.d.ts +0 -2
  24. package/lib/chevre/repo/creativeWork.js +6 -3
  25. package/lib/chevre/repo/customer.js +5 -1
  26. package/lib/chevre/repo/emailMessage.d.ts +1 -1
  27. package/lib/chevre/repo/emailMessage.js +5 -1
  28. package/lib/chevre/repo/event.d.ts +7 -1
  29. package/lib/chevre/repo/event.js +104 -27
  30. package/lib/chevre/repo/itemAvailability/screeningEvent.js +1 -1
  31. package/lib/chevre/repo/member.js +5 -1
  32. package/lib/chevre/repo/merchantReturnPolicy.d.ts +0 -2
  33. package/lib/chevre/repo/merchantReturnPolicy.js +6 -3
  34. package/lib/chevre/repo/mongoose/onIndexCreated.d.ts +2 -0
  35. package/lib/chevre/repo/mongoose/onIndexCreated.js +11 -0
  36. package/lib/chevre/repo/mongoose/{model → schemas}/event.js +23 -0
  37. package/lib/chevre/repo/offer.js +7 -2
  38. package/lib/chevre/repo/offerCatalog.js +5 -1
  39. package/lib/chevre/repo/order.d.ts +0 -2
  40. package/lib/chevre/repo/order.js +7 -4
  41. package/lib/chevre/repo/orderNumber.js +1 -1
  42. package/lib/chevre/repo/ownershipInfo.d.ts +1 -3
  43. package/lib/chevre/repo/ownershipInfo.js +7 -4
  44. package/lib/chevre/repo/paymentMethod/creditCard.d.ts +3 -3
  45. package/lib/chevre/repo/permit.js +5 -1
  46. package/lib/chevre/repo/person.d.ts +2 -2
  47. package/lib/chevre/repo/place.d.ts +2 -2
  48. package/lib/chevre/repo/place.js +5 -1
  49. package/lib/chevre/repo/priceSpecification.js +5 -1
  50. package/lib/chevre/repo/product.d.ts +1 -1
  51. package/lib/chevre/repo/product.js +5 -1
  52. package/lib/chevre/repo/project.js +5 -1
  53. package/lib/chevre/repo/rateLimit/offer.js +1 -1
  54. package/lib/chevre/repo/reservation.d.ts +1 -1
  55. package/lib/chevre/repo/reservation.js +5 -1
  56. package/lib/chevre/repo/role.js +5 -1
  57. package/lib/chevre/repo/seller.d.ts +1 -1
  58. package/lib/chevre/repo/seller.js +5 -1
  59. package/lib/chevre/repo/serviceOutput.js +5 -1
  60. package/lib/chevre/repo/serviceOutputIdentifier.js +1 -1
  61. package/lib/chevre/repo/task.js +5 -1
  62. package/lib/chevre/repo/telemetry.js +5 -1
  63. package/lib/chevre/repo/transaction.d.ts +1 -2
  64. package/lib/chevre/repo/transaction.js +6 -3
  65. package/lib/chevre/repo/transactionNumber.js +1 -1
  66. package/lib/chevre/repo/trip.d.ts +1 -1
  67. package/lib/chevre/repo/trip.js +5 -1
  68. package/lib/chevre/service/account.d.ts +1 -1
  69. package/lib/chevre/service/accountTransaction/deposit.d.ts +1 -1
  70. package/lib/chevre/service/accountTransaction/deposit.js +0 -5
  71. package/lib/chevre/service/accountTransaction/transfer.d.ts +1 -1
  72. package/lib/chevre/service/accountTransaction/transfer.js +0 -5
  73. package/lib/chevre/service/accountTransaction/withdraw.d.ts +1 -1
  74. package/lib/chevre/service/accountTransaction/withdraw.js +0 -5
  75. package/lib/chevre/service/accountTransaction.d.ts +1 -1
  76. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.d.ts +1 -1
  77. package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.d.ts +1 -1
  78. package/lib/chevre/service/aggregation/project.d.ts +1 -1
  79. package/lib/chevre/service/assetTransaction/cancelReservation.d.ts +3 -3
  80. package/lib/chevre/service/assetTransaction/moneyTransfer.d.ts +4 -4
  81. package/lib/chevre/service/assetTransaction/moneyTransfer.js +0 -5
  82. package/lib/chevre/service/assetTransaction/pay/potentialActions.d.ts +1 -1
  83. package/lib/chevre/service/assetTransaction/pay.d.ts +7 -7
  84. package/lib/chevre/service/assetTransaction/refund.d.ts +4 -4
  85. package/lib/chevre/service/assetTransaction/refund.js +0 -5
  86. package/lib/chevre/service/assetTransaction/registerService/factory.d.ts +1 -1
  87. package/lib/chevre/service/assetTransaction/registerService.d.ts +4 -4
  88. package/lib/chevre/service/assetTransaction/registerService.js +0 -5
  89. package/lib/chevre/service/assetTransaction/reserve/factory/price.d.ts +1 -1
  90. package/lib/chevre/service/assetTransaction/reserve/factory.d.ts +2 -2
  91. package/lib/chevre/service/assetTransaction/reserve.d.ts +6 -6
  92. package/lib/chevre/service/assetTransaction/reserve.js +0 -10
  93. package/lib/chevre/service/code.d.ts +2 -2
  94. package/lib/chevre/service/code.js +6 -1
  95. package/lib/chevre/service/delivery/factory.d.ts +1 -1
  96. package/lib/chevre/service/delivery/product/factory.d.ts +1 -1
  97. package/lib/chevre/service/delivery/reservation/factory.d.ts +1 -1
  98. package/lib/chevre/service/iam.d.ts +1 -1
  99. package/lib/chevre/service/moneyTransfer.d.ts +1 -1
  100. package/lib/chevre/service/notification.d.ts +1 -1
  101. package/lib/chevre/service/offer/event/authorize.d.ts +2 -2
  102. package/lib/chevre/service/offer/event/factory.d.ts +5 -5
  103. package/lib/chevre/service/offer/event/searchEventTicketOffers.d.ts +2 -2
  104. package/lib/chevre/service/offer/eventServiceByCOA/factory.d.ts +2 -2
  105. package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.d.ts +1 -1
  106. package/lib/chevre/service/offer/eventServiceByCOA.d.ts +2 -2
  107. package/lib/chevre/service/offer/factory.d.ts +2 -2
  108. package/lib/chevre/service/offer/moneyTransfer/authorize.d.ts +1 -1
  109. package/lib/chevre/service/offer/product.d.ts +2 -2
  110. package/lib/chevre/service/order/onOrderStatusChanged/factory.d.ts +1 -1
  111. package/lib/chevre/service/order/onOrderStatusChanged/factory.js +6 -1
  112. package/lib/chevre/service/order/onOrderStatusChanged.d.ts +2 -2
  113. package/lib/chevre/service/order/placeOrder.d.ts +1 -1
  114. package/lib/chevre/service/order/sendOrder.d.ts +1 -1
  115. package/lib/chevre/service/payment/any/factory.d.ts +1 -1
  116. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onPaid.d.ts +1 -1
  117. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onRefunded.d.ts +1 -1
  118. package/lib/chevre/service/payment/any.d.ts +3 -3
  119. package/lib/chevre/service/payment/creditCard.js +5 -0
  120. package/lib/chevre/service/payment/movieTicket.d.ts +4 -4
  121. package/lib/chevre/service/payment/paymentCard.d.ts +1 -1
  122. package/lib/chevre/service/permit.d.ts +1 -1
  123. package/lib/chevre/service/report/telemetry.d.ts +7 -7
  124. package/lib/chevre/service/reserve/cancelReservation.d.ts +1 -1
  125. package/lib/chevre/service/reserve/factory.d.ts +5 -5
  126. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +1 -1
  127. package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.d.ts +1 -1
  128. package/lib/chevre/service/reserve/potentialActions/onReservationUsed.d.ts +2 -2
  129. package/lib/chevre/service/task/aggregateScreeningEvent.d.ts +1 -1
  130. package/lib/chevre/service/task/aggregateUseActionsOnEvent.d.ts +1 -1
  131. package/lib/chevre/service/task/cancelMoneyTransfer.d.ts +1 -1
  132. package/lib/chevre/service/task/cancelPendingReservation.d.ts +1 -1
  133. package/lib/chevre/service/task/cancelReservation.d.ts +1 -1
  134. package/lib/chevre/service/task/importEventCapacitiesFromCOA.d.ts +1 -1
  135. package/lib/chevre/service/task/importEventsFromCOA.d.ts +1 -1
  136. package/lib/chevre/service/task/importOffersFromCOA.d.ts +1 -1
  137. package/lib/chevre/service/task/moneyTransfer.d.ts +1 -1
  138. package/lib/chevre/service/task/registerService.d.ts +1 -1
  139. package/lib/chevre/service/task/reserve.d.ts +1 -1
  140. package/lib/chevre/service/task.d.ts +2 -2
  141. package/lib/chevre/service/task.js +1 -1
  142. package/lib/chevre/service/transaction/moneyTransfer/potentialActions.d.ts +1 -1
  143. package/lib/chevre/service/transaction/moneyTransfer.d.ts +6 -6
  144. package/lib/chevre/service/transaction/moneyTransfer.js +0 -5
  145. package/lib/chevre/service/transaction/orderProgramMembership.d.ts +1 -1
  146. package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.d.ts +1 -1
  147. package/lib/chevre/service/transaction/placeOrder.d.ts +1 -1
  148. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/moneyTransfer.d.ts +1 -1
  149. package/lib/chevre/service/transaction/placeOrderInProgress/result/acceptedOffers.d.ts +2 -2
  150. package/lib/chevre/service/transaction/placeOrderInProgress/result.d.ts +1 -1
  151. package/lib/chevre/service/transaction/placeOrderInProgress/validation.d.ts +8 -8
  152. package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +7 -7
  153. package/lib/chevre/service/transaction/placeOrderInProgress.js +2 -2
  154. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnMoneyTransfer.d.ts +1 -1
  155. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPointAward.d.ts +1 -1
  156. package/lib/chevre/service/transaction/returnOrder/potentialActions.d.ts +1 -1
  157. package/lib/chevre/service/transaction/returnOrder.d.ts +2 -2
  158. package/lib/chevre/service/transaction/returnOrder.js +1 -1
  159. package/lib/chevre/service/transaction/validation.d.ts +2 -2
  160. package/lib/chevre/service/transaction.d.ts +2 -2
  161. package/lib/chevre/settings.d.ts +1 -1
  162. package/package.json +12 -12
  163. /package/lib/chevre/repo/mongoose/{model → schemas}/account.d.ts +0 -0
  164. /package/lib/chevre/repo/mongoose/{model → schemas}/account.js +0 -0
  165. /package/lib/chevre/repo/mongoose/{model → schemas}/accountTitle.d.ts +0 -0
  166. /package/lib/chevre/repo/mongoose/{model → schemas}/accountTitle.js +0 -0
  167. /package/lib/chevre/repo/mongoose/{model → schemas}/accountTransaction.d.ts +0 -0
  168. /package/lib/chevre/repo/mongoose/{model → schemas}/accountTransaction.js +0 -0
  169. /package/lib/chevre/repo/mongoose/{model → schemas}/accountingReport.d.ts +0 -0
  170. /package/lib/chevre/repo/mongoose/{model → schemas}/accountingReport.js +0 -0
  171. /package/lib/chevre/repo/mongoose/{model → schemas}/action.d.ts +0 -0
  172. /package/lib/chevre/repo/mongoose/{model → schemas}/action.js +0 -0
  173. /package/lib/chevre/repo/mongoose/{model → schemas}/additionalProperty.d.ts +0 -0
  174. /package/lib/chevre/repo/mongoose/{model → schemas}/additionalProperty.js +0 -0
  175. /package/lib/chevre/repo/mongoose/{model → schemas}/aggregation.d.ts +0 -0
  176. /package/lib/chevre/repo/mongoose/{model → schemas}/aggregation.js +0 -0
  177. /package/lib/chevre/repo/mongoose/{model → schemas}/assetTransaction.d.ts +0 -0
  178. /package/lib/chevre/repo/mongoose/{model → schemas}/assetTransaction.js +0 -0
  179. /package/lib/chevre/repo/mongoose/{model → schemas}/authorization.d.ts +0 -0
  180. /package/lib/chevre/repo/mongoose/{model → schemas}/authorization.js +0 -0
  181. /package/lib/chevre/repo/mongoose/{model → schemas}/categoryCode.d.ts +0 -0
  182. /package/lib/chevre/repo/mongoose/{model → schemas}/categoryCode.js +0 -0
  183. /package/lib/chevre/repo/mongoose/{model → schemas}/comments.d.ts +0 -0
  184. /package/lib/chevre/repo/mongoose/{model → schemas}/comments.js +0 -0
  185. /package/lib/chevre/repo/mongoose/{model → schemas}/creativeWork.d.ts +0 -0
  186. /package/lib/chevre/repo/mongoose/{model → schemas}/creativeWork.js +0 -0
  187. /package/lib/chevre/repo/mongoose/{model → schemas}/customer.d.ts +0 -0
  188. /package/lib/chevre/repo/mongoose/{model → schemas}/customer.js +0 -0
  189. /package/lib/chevre/repo/mongoose/{model → schemas}/emailMessages.d.ts +0 -0
  190. /package/lib/chevre/repo/mongoose/{model → schemas}/emailMessages.js +0 -0
  191. /package/lib/chevre/repo/mongoose/{model → schemas}/event.d.ts +0 -0
  192. /package/lib/chevre/repo/mongoose/{model → schemas}/member.d.ts +0 -0
  193. /package/lib/chevre/repo/mongoose/{model → schemas}/member.js +0 -0
  194. /package/lib/chevre/repo/mongoose/{model → schemas}/merchantReturnPolicy.d.ts +0 -0
  195. /package/lib/chevre/repo/mongoose/{model → schemas}/merchantReturnPolicy.js +0 -0
  196. /package/lib/chevre/repo/mongoose/{model → schemas}/offer.d.ts +0 -0
  197. /package/lib/chevre/repo/mongoose/{model → schemas}/offer.js +0 -0
  198. /package/lib/chevre/repo/mongoose/{model → schemas}/offerCatalog.d.ts +0 -0
  199. /package/lib/chevre/repo/mongoose/{model → schemas}/offerCatalog.js +0 -0
  200. /package/lib/chevre/repo/mongoose/{model → schemas}/order.d.ts +0 -0
  201. /package/lib/chevre/repo/mongoose/{model → schemas}/order.js +0 -0
  202. /package/lib/chevre/repo/mongoose/{model → schemas}/ownershipInfo.d.ts +0 -0
  203. /package/lib/chevre/repo/mongoose/{model → schemas}/ownershipInfo.js +0 -0
  204. /package/lib/chevre/repo/mongoose/{model → schemas}/place.d.ts +0 -0
  205. /package/lib/chevre/repo/mongoose/{model → schemas}/place.js +0 -0
  206. /package/lib/chevre/repo/mongoose/{model → schemas}/priceSpecification.d.ts +0 -0
  207. /package/lib/chevre/repo/mongoose/{model → schemas}/priceSpecification.js +0 -0
  208. /package/lib/chevre/repo/mongoose/{model → schemas}/product.d.ts +0 -0
  209. /package/lib/chevre/repo/mongoose/{model → schemas}/product.js +0 -0
  210. /package/lib/chevre/repo/mongoose/{model → schemas}/project.d.ts +0 -0
  211. /package/lib/chevre/repo/mongoose/{model → schemas}/project.js +0 -0
  212. /package/lib/chevre/repo/mongoose/{model → schemas}/reservation.d.ts +0 -0
  213. /package/lib/chevre/repo/mongoose/{model → schemas}/reservation.js +0 -0
  214. /package/lib/chevre/repo/mongoose/{model → schemas}/role.d.ts +0 -0
  215. /package/lib/chevre/repo/mongoose/{model → schemas}/role.js +0 -0
  216. /package/lib/chevre/repo/mongoose/{model → schemas}/seller.d.ts +0 -0
  217. /package/lib/chevre/repo/mongoose/{model → schemas}/seller.js +0 -0
  218. /package/lib/chevre/repo/mongoose/{model → schemas}/serviceOutput.d.ts +0 -0
  219. /package/lib/chevre/repo/mongoose/{model → schemas}/serviceOutput.js +0 -0
  220. /package/lib/chevre/repo/mongoose/{model → schemas}/task.d.ts +0 -0
  221. /package/lib/chevre/repo/mongoose/{model → schemas}/task.js +0 -0
  222. /package/lib/chevre/repo/mongoose/{model → schemas}/telemetry.d.ts +0 -0
  223. /package/lib/chevre/repo/mongoose/{model → schemas}/telemetry.js +0 -0
  224. /package/lib/chevre/repo/mongoose/{model → schemas}/transaction.d.ts +0 -0
  225. /package/lib/chevre/repo/mongoose/{model → schemas}/transaction.js +0 -0
  226. /package/lib/chevre/repo/mongoose/{model → schemas}/trip.d.ts +0 -0
  227. /package/lib/chevre/repo/mongoose/{model → schemas}/trip.js +0 -0
@@ -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: {
@@ -64,7 +64,12 @@ function getOrderWithToken(params) {
64
64
  reject(err);
65
65
  }
66
66
  else {
67
- resolve(encoded);
67
+ if (typeof encoded !== 'string') {
68
+ reject(new factory.errors.ServiceUnavailable('order cannot be signed unexpectedly'));
69
+ }
70
+ else {
71
+ resolve(encoded);
72
+ }
68
73
  }
69
74
  });
70
75
  });
@@ -1,8 +1,8 @@
1
1
  import { RedisRepository as RegisterServiceInProgressRepo } from '../../repo/action/registerServiceInProgress';
2
2
  import { MongoRepository as TaskRepo } from '../../repo/task';
3
3
  import * as factory from '../../factory';
4
- declare type IPlaceOrderTransaction = factory.transaction.ITransaction<factory.transactionType.PlaceOrder>;
5
- declare type IReturnOrderTransaction = factory.transaction.ITransaction<factory.transactionType.ReturnOrder>;
4
+ type IPlaceOrderTransaction = factory.transaction.ITransaction<factory.transactionType.PlaceOrder>;
5
+ type IReturnOrderTransaction = factory.transaction.ITransaction<factory.transactionType.ReturnOrder>;
6
6
  export declare function onOrderStatusChanged(params: {
7
7
  order: factory.order.IOrder;
8
8
  placeOrderTransaction?: IPlaceOrderTransaction;
@@ -5,7 +5,7 @@ import { MongoRepository as OrderRepo } from '../../repo/order';
5
5
  import { MongoRepository as TaskRepo } from '../../repo/task';
6
6
  import { MongoRepository as TransactionRepo } from '../../repo/transaction';
7
7
  import * as factory from '../../factory';
8
- declare type IExternalOrder = Pick<factory.order.IOrder, 'project' | 'typeOf' | 'seller' | 'customer' | 'confirmationNumber' | 'orderNumber' | 'price' | 'priceCurrency' | 'orderDate' | 'name' | 'orderStatus' | 'orderedItem' | 'paymentMethods'>;
8
+ type IExternalOrder = Pick<factory.order.IOrder, 'project' | 'typeOf' | 'seller' | 'customer' | 'confirmationNumber' | 'orderNumber' | 'price' | 'priceCurrency' | 'orderDate' | 'name' | 'orderStatus' | 'orderedItem' | 'paymentMethods'>;
9
9
  /**
10
10
  * 注文取引なしに注文を作成する
11
11
  */
@@ -5,7 +5,7 @@ import { MongoRepository as OwnershipInfoRepo } from '../../repo/ownershipInfo';
5
5
  import { MongoRepository as TaskRepo } from '../../repo/task';
6
6
  import { MongoRepository as TransactionRepo } from '../../repo/transaction';
7
7
  import * as factory from '../../factory';
8
- declare type ISendOperation<T> = (repos: {
8
+ type ISendOperation<T> = (repos: {
9
9
  action: ActionRepo;
10
10
  order: OrderRepo;
11
11
  ownershipInfo: OwnershipInfoRepo;
@@ -9,7 +9,7 @@ export interface IOnPaymentStatusChangedRefundAction {
9
9
  typeOf: factory.actionType.RefundAction;
10
10
  object: factory.invoice.IInvoice[];
11
11
  }
12
- export declare type IOnPaymentStatusChangedParams = IOnPaymentStatusChangedPayAction | IOnPaymentStatusChangedRefundAction;
12
+ export type IOnPaymentStatusChangedParams = IOnPaymentStatusChangedPayAction | IOnPaymentStatusChangedRefundAction;
13
13
  export declare function creatPayTransactionStartParams(params: {
14
14
  accountId?: string;
15
15
  object: factory.action.authorize.paymentMethod.any.IObject;
@@ -1,6 +1,6 @@
1
1
  import { MongoRepository as AccountingReportRepo } from '../../../../repo/accountingReport';
2
2
  import * as factory from '../../../../factory';
3
- export declare type IOptimizedPayAction = factory.report.accountingReport.IOptimizedPayAction;
3
+ export type IOptimizedPayAction = factory.report.accountingReport.IOptimizedPayAction;
4
4
  export declare function onPaid(params: IOptimizedPayAction): (repos: {
5
5
  accountingReport: AccountingReportRepo;
6
6
  }) => Promise<void>;
@@ -1,6 +1,6 @@
1
1
  import { MongoRepository as AccountingReportRepo } from '../../../../repo/accountingReport';
2
2
  import * as factory from '../../../../factory';
3
- export declare type IOptimizedRefundAction = factory.report.accountingReport.IOptimizedRefundAction;
3
+ export type IOptimizedRefundAction = factory.report.accountingReport.IOptimizedRefundAction;
4
4
  export declare function onRefunded(params: IOptimizedRefundAction): (repos: {
5
5
  accountingReport: AccountingReportRepo;
6
6
  }) => Promise<void>;
@@ -16,7 +16,7 @@ import { RedisRepository as TransactionNumberRepo } from '../../repo/transaction
16
16
  import * as PayTransactionService from '../assetTransaction/pay';
17
17
  import { onPaymentStatusChanged } from './any/onPaymentStatusChanged';
18
18
  import { person2username } from './any/person2username';
19
- declare type IAuthorizePaymentAction = factory.action.authorize.paymentMethod.any.IAction;
19
+ type IAuthorizePaymentAction = factory.action.authorize.paymentMethod.any.IAction;
20
20
  /**
21
21
  * 決済承認中止
22
22
  * タスクから決済承認を取り消す
@@ -68,7 +68,7 @@ interface IAuthorizeRepos {
68
68
  transaction: TransactionRepo;
69
69
  transactionNumber: TransactionNumberRepo;
70
70
  }
71
- declare type IAuthorizeOperation<T> = (repos: IAuthorizeRepos) => Promise<T>;
71
+ type IAuthorizeOperation<T> = (repos: IAuthorizeRepos) => Promise<T>;
72
72
  interface IPublishPaymentUrlRepos {
73
73
  assetTransaction: AssetTransactionRepo;
74
74
  person: PersonRepo;
@@ -78,7 +78,7 @@ interface IPublishPaymentUrlRepos {
78
78
  transaction: TransactionRepo;
79
79
  transactionNumber: TransactionNumberRepo;
80
80
  }
81
- declare type IPublishPaymentUrlOperation<T> = (repos: IPublishPaymentUrlRepos) => Promise<T>;
81
+ type IPublishPaymentUrlOperation<T> = (repos: IPublishPaymentUrlRepos) => Promise<T>;
82
82
  /**
83
83
  * 外部決済ロケーションを発行する
84
84
  */
@@ -15,6 +15,7 @@ exports.voidTransaction = exports.searchGMOTrade = exports.refundCreditCard = ex
15
15
  */
16
16
  const GMO = require("@motionpicture/gmo-service");
17
17
  const createDebug = require("debug");
18
+ const http_status_1 = require("http-status");
18
19
  const credentials_1 = require("../../credentials");
19
20
  const factory = require("../../factory");
20
21
  const onPaid_1 = require("./any/onPaid");
@@ -181,6 +182,10 @@ function handleAuthorizeError(error) {
181
182
  // const uri: string | undefined = error.requestOptions?.uri;
182
183
  handledError = new factory.errors.GatewayTimeout(`Gateway Timeout. name:${error.name} type:${error.type} message:${error.message}`);
183
184
  }
185
+ // 決済代行側が4xxを返却した場合
186
+ if (typeof error.code === 'number' && error.code < http_status_1.INTERNAL_SERVER_ERROR) {
187
+ handledError = new factory.errors.Argument('payment', `bad request code:${error.code} message:${error.message}`);
188
+ }
184
189
  return handledError;
185
190
  }
186
191
  /**
@@ -14,7 +14,7 @@ interface ICheckOperationRepos {
14
14
  project: ProjectRepo;
15
15
  seller: SellerRepo;
16
16
  }
17
- declare type ICheckOperation<T> = (repos: ICheckOperationRepos) => Promise<T>;
17
+ type ICheckOperation<T> = (repos: ICheckOperationRepos) => Promise<T>;
18
18
  interface IPayOperationRepos {
19
19
  action: ActionRepo;
20
20
  accountingReport: AccountingReportRepo;
@@ -24,7 +24,7 @@ interface IPayOperationRepos {
24
24
  seller: SellerRepo;
25
25
  task: TaskRepo;
26
26
  }
27
- declare type IPayOperation<T> = (repos: IPayOperationRepos) => Promise<T>;
27
+ type IPayOperation<T> = (repos: IPayOperationRepos) => Promise<T>;
28
28
  interface IRefundOperationRepos {
29
29
  action: ActionRepo;
30
30
  accountingReport: AccountingReportRepo;
@@ -33,7 +33,7 @@ interface IRefundOperationRepos {
33
33
  seller: SellerRepo;
34
34
  task: TaskRepo;
35
35
  }
36
- declare type IRefundOperation<T> = (repos: IRefundOperationRepos) => Promise<T>;
36
+ type IRefundOperation<T> = (repos: IRefundOperationRepos) => Promise<T>;
37
37
  /**
38
38
  * MovieTicket認証
39
39
  */
@@ -66,7 +66,7 @@ declare function voidTransaction(params: factory.task.voidPayment.IData): (repos
66
66
  seller: SellerRepo;
67
67
  task: TaskRepo;
68
68
  }) => Promise<void>;
69
- declare type IPayAction = factory.action.trade.pay.IAction;
69
+ type IPayAction = factory.action.trade.pay.IAction;
70
70
  /**
71
71
  * MovieTicket着券
72
72
  */
@@ -6,7 +6,7 @@ import { MongoRepository as ProductRepo } from '../../repo/product';
6
6
  import { MongoRepository as ProjectRepo } from '../../repo/project';
7
7
  import { MongoRepository as TaskRepo } from '../../repo/task';
8
8
  import { RedisRepository as TransactionNumberRepo } from '../../repo/transactionNumber';
9
- declare type IPendingTransaction = Pick<factory.account.transaction.withdraw.ITransaction, 'id' | 'transactionNumber' | 'typeOf'>;
9
+ type IPendingTransaction = Pick<factory.account.transaction.withdraw.ITransaction, 'id' | 'transactionNumber' | 'typeOf'>;
10
10
  declare function authorize(params: factory.assetTransaction.pay.IStartParamsWithoutDetail, paymentServiceId: string): (repos: {
11
11
  product: ProductRepo;
12
12
  project: ProjectRepo;
@@ -30,7 +30,7 @@ export declare function activate(params: {
30
30
  }): (repos: {
31
31
  serviceOutput: ServiceOutputRepo;
32
32
  }) => Promise<factory.permit.IPermit>;
33
- declare type IPermitWithAccountDetail = Omit<factory.permit.IPermit, 'paymentAccount'> & {
33
+ type IPermitWithAccountDetail = Omit<factory.permit.IPermit, 'paymentAccount'> & {
34
34
  paymentAccount?: factory.permit.IPaymentAccountWithDetail;
35
35
  };
36
36
  /**
@@ -4,29 +4,29 @@
4
4
  */
5
5
  import * as repository from '../../repository';
6
6
  import * as factory from '../../factory';
7
- export declare type TelemetryOperation<T> = (repos: {
7
+ export type TelemetryOperation<T> = (repos: {
8
8
  telemetry: repository.Telemetry;
9
9
  }) => Promise<T>;
10
- export declare type TaskOperation<T> = (repos: {
10
+ export type TaskOperation<T> = (repos: {
11
11
  task: repository.Task;
12
12
  }) => Promise<T>;
13
- export declare type TransactionOperation<T> = (repos: {
13
+ export type TransactionOperation<T> = (repos: {
14
14
  transaction: repository.Transaction;
15
15
  }) => Promise<T>;
16
- export declare type TaskAndTransactionOperation<T> = (repos: {
16
+ export type TaskAndTransactionOperation<T> = (repos: {
17
17
  task: repository.Task;
18
18
  transaction: repository.Transaction;
19
19
  }) => Promise<T>;
20
- export declare type TaskAndTransactionAndActionOperation<T> = (repos: {
20
+ export type TaskAndTransactionAndActionOperation<T> = (repos: {
21
21
  task: repository.Task;
22
22
  transaction: repository.Transaction;
23
23
  action: repository.Action;
24
24
  }) => Promise<T>;
25
- export declare type TransactionAndActionOperation<T> = (repos: {
25
+ export type TransactionAndActionOperation<T> = (repos: {
26
26
  transaction: repository.Transaction;
27
27
  action: repository.Action;
28
28
  }) => Promise<T>;
29
- export declare type TaskAndTelemetryAndTransactionOperation<T> = (repos: {
29
+ export type TaskAndTelemetryAndTransactionOperation<T> = (repos: {
30
30
  task: repository.Task;
31
31
  telemetry: repository.Telemetry;
32
32
  transaction: repository.Transaction;
@@ -5,7 +5,7 @@ import { RedisRepository as ScreeningEventAvailabilityRepo } from '../../repo/it
5
5
  import { RedisRepository as OfferRateLimitRepo } from '../../repo/rateLimit/offer';
6
6
  import { MongoRepository as ReservationRepo } from '../../repo/reservation';
7
7
  import { MongoRepository as TaskRepo } from '../../repo/task';
8
- declare type IObjectSubReservation = factory.assetTransaction.reserve.IObjectSubReservation;
8
+ type IObjectSubReservation = factory.assetTransaction.reserve.IObjectSubReservation;
9
9
  /**
10
10
  * 進行中の予約をキャンセルする
11
11
  */
@@ -1,11 +1,11 @@
1
1
  import * as factory from '../../factory';
2
- declare type IEventReservation = factory.reservation.IReservation<factory.reservationType.EventReservation>;
2
+ type IEventReservation = factory.reservation.IReservation<factory.reservationType.EventReservation>;
3
3
  export declare function maskUnderName(reservation: IEventReservation): IEventReservation;
4
4
  export interface IProject {
5
5
  id: string;
6
6
  typeOf: factory.organizationType.Project;
7
7
  }
8
- export declare type ISubReservation = Omit<IEventReservation, 'broker' | 'project' | 'reservationFor' | 'reservationNumber' | 'reservationStatus' | 'underName'>;
8
+ export type ISubReservation = Omit<IEventReservation, 'broker' | 'project' | 'reservationFor' | 'reservationNumber' | 'reservationStatus' | 'underName'>;
9
9
  /**
10
10
  * 確定予約通知
11
11
  */
@@ -56,8 +56,8 @@ export interface IReservation4informUsed {
56
56
  dateUsed?: Date;
57
57
  };
58
58
  }
59
- export declare type IReservation4inform = IReservationPackage4informConfirmed | IReservation4informCanceled | IReservation4informCheckedIn | IReservation4informUsed;
60
- export declare type IInformObject = IReservation4inform[];
61
- export declare type InformReservationActionattributes = factory.action.interact.inform.IAttributes<IInformObject, any>;
59
+ export type IReservation4inform = IReservationPackage4informConfirmed | IReservation4informCanceled | IReservation4informCheckedIn | IReservation4informUsed;
60
+ export type IInformObject = IReservation4inform[];
61
+ export type InformReservationActionattributes = factory.action.interact.inform.IAttributes<IInformObject, any>;
62
62
  export declare const NUM_TRY_INFORM_RESERVATION: number;
63
63
  export {};
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../../../factory';
2
2
  import { MongoRepository as TaskRepo } from '../../../repo/task';
3
- declare type IEventReservation = factory.reservation.IReservation<factory.reservationType.EventReservation>;
3
+ type IEventReservation = factory.reservation.IReservation<factory.reservationType.EventReservation>;
4
4
  /**
5
5
  * 予約取消後のアクション
6
6
  */
@@ -3,7 +3,7 @@
3
3
  */
4
4
  import * as factory from '../../../factory';
5
5
  import { MongoRepository as TaskRepo } from '../../../repo/task';
6
- declare type IEventReservation = factory.reservation.IReservation<factory.reservationType.EventReservation>;
6
+ type IEventReservation = factory.reservation.IReservation<factory.reservationType.EventReservation>;
7
7
  /**
8
8
  * 予約確定後のアクション
9
9
  */
@@ -1,7 +1,7 @@
1
1
  import * as factory from '../../../factory';
2
2
  import { MongoRepository as TaskRepo } from '../../../repo/task';
3
- declare type IEventReservation = factory.reservation.IReservation<factory.reservationType.EventReservation>;
4
- export declare type IUseReservationAction = factory.action.consume.use.reservation.IAction;
3
+ type IEventReservation = factory.reservation.IReservation<factory.reservationType.EventReservation>;
4
+ export type IUseReservationAction = factory.action.consume.use.reservation.IAction;
5
5
  /**
6
6
  * 予約使用
7
7
  */
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../../factory';
2
2
  import { IConnectionSettings } from '../task';
3
- export declare type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
3
+ export type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
4
4
  /**
5
5
  * タスク実行関数
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../../factory';
2
2
  import { IConnectionSettings } from '../task';
3
- export declare type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
3
+ export type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
4
4
  /**
5
5
  * タスク実行関数
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../../factory';
2
2
  import { IConnectionSettings } from '../task';
3
- export declare type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
3
+ export type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
4
4
  /**
5
5
  * タスク実行関数
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../../factory';
2
2
  import { IConnectionSettings } from '../task';
3
- export declare type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
3
+ export type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
4
4
  /**
5
5
  * タスク実行関数
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../../factory';
2
2
  import { IConnectionSettings } from '../task';
3
- export declare type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
3
+ export type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
4
4
  /**
5
5
  * タスク実行関数
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../../factory';
2
2
  import { IConnectionSettings } from '../task';
3
- export declare type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
3
+ export type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
4
4
  /**
5
5
  * タスク実行関数
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../../factory';
2
2
  import { IConnectionSettings } from '../task';
3
- export declare type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
3
+ export type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
4
4
  /**
5
5
  * タスク実行関数
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../../factory';
2
2
  import { IConnectionSettings } from '../task';
3
- export declare type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
3
+ export type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
4
4
  /**
5
5
  * タスク実行関数
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../../factory';
2
2
  import { IConnectionSettings } from '../task';
3
- export declare type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
3
+ export type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
4
4
  /**
5
5
  * タスク実行関数
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../../factory';
2
2
  import { IConnectionSettings } from '../task';
3
- export declare type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
3
+ export type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
4
4
  /**
5
5
  * タスク実行関数
6
6
  */
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../../factory';
2
2
  import { IConnectionSettings } from '../task';
3
- export declare type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
3
+ export type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
4
4
  /**
5
5
  * タスク実行関数
6
6
  */