@chevre/domain 21.0.0-alpha.9 → 21.1.0-alpha.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 (110) hide show
  1. package/example/src/chevre/aggregation/aggregateSystem.ts +2 -2
  2. package/lib/chevre/factory/event.d.ts +1 -1
  3. package/lib/chevre/repo/accountingReport.d.ts +1 -1
  4. package/lib/chevre/repo/action/registerServiceInProgress.js +1 -1
  5. package/lib/chevre/repo/action.d.ts +2 -2
  6. package/lib/chevre/repo/code.d.ts +2 -2
  7. package/lib/chevre/repo/confirmationNumber.js +1 -1
  8. package/lib/chevre/repo/emailMessage.d.ts +1 -1
  9. package/lib/chevre/repo/event.d.ts +7 -1
  10. package/lib/chevre/repo/event.js +99 -26
  11. package/lib/chevre/repo/itemAvailability/screeningEvent.js +1 -1
  12. package/lib/chevre/repo/mongoose/schemas/event.js +23 -0
  13. package/lib/chevre/repo/orderNumber.js +1 -1
  14. package/lib/chevre/repo/ownershipInfo.d.ts +1 -1
  15. package/lib/chevre/repo/paymentMethod/creditCard.d.ts +3 -3
  16. package/lib/chevre/repo/person.d.ts +2 -2
  17. package/lib/chevre/repo/place.d.ts +2 -2
  18. package/lib/chevre/repo/product.d.ts +1 -1
  19. package/lib/chevre/repo/rateLimit/offer.js +1 -1
  20. package/lib/chevre/repo/reservation.d.ts +1 -1
  21. package/lib/chevre/repo/seller.d.ts +1 -1
  22. package/lib/chevre/repo/serviceOutputIdentifier.js +1 -1
  23. package/lib/chevre/repo/transactionNumber.js +1 -1
  24. package/lib/chevre/repo/trip.d.ts +1 -1
  25. package/lib/chevre/service/account.d.ts +1 -1
  26. package/lib/chevre/service/accountTransaction/deposit.d.ts +1 -1
  27. package/lib/chevre/service/accountTransaction/transfer.d.ts +1 -1
  28. package/lib/chevre/service/accountTransaction/withdraw.d.ts +1 -1
  29. package/lib/chevre/service/accountTransaction.d.ts +1 -1
  30. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.d.ts +1 -1
  31. package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.d.ts +1 -1
  32. package/lib/chevre/service/aggregation/project.d.ts +1 -1
  33. package/lib/chevre/service/assetTransaction/cancelReservation.d.ts +3 -3
  34. package/lib/chevre/service/assetTransaction/moneyTransfer.d.ts +4 -4
  35. package/lib/chevre/service/assetTransaction/pay/potentialActions.d.ts +1 -1
  36. package/lib/chevre/service/assetTransaction/pay.d.ts +7 -7
  37. package/lib/chevre/service/assetTransaction/refund.d.ts +4 -4
  38. package/lib/chevre/service/assetTransaction/registerService/factory.d.ts +1 -1
  39. package/lib/chevre/service/assetTransaction/registerService.d.ts +4 -4
  40. package/lib/chevre/service/assetTransaction/reserve/factory/price.d.ts +1 -1
  41. package/lib/chevre/service/assetTransaction/reserve/factory.d.ts +2 -2
  42. package/lib/chevre/service/assetTransaction/reserve.d.ts +6 -6
  43. package/lib/chevre/service/code.d.ts +2 -2
  44. package/lib/chevre/service/code.js +6 -1
  45. package/lib/chevre/service/delivery/factory.d.ts +1 -1
  46. package/lib/chevre/service/delivery/product/factory.d.ts +1 -1
  47. package/lib/chevre/service/delivery/reservation/factory.d.ts +1 -1
  48. package/lib/chevre/service/iam.d.ts +1 -1
  49. package/lib/chevre/service/moneyTransfer.d.ts +1 -1
  50. package/lib/chevre/service/notification.d.ts +1 -1
  51. package/lib/chevre/service/offer/event/authorize.d.ts +2 -2
  52. package/lib/chevre/service/offer/event/factory.d.ts +5 -5
  53. package/lib/chevre/service/offer/event/searchEventTicketOffers.d.ts +2 -2
  54. package/lib/chevre/service/offer/eventServiceByCOA/factory.d.ts +2 -2
  55. package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.d.ts +1 -1
  56. package/lib/chevre/service/offer/eventServiceByCOA.d.ts +2 -2
  57. package/lib/chevre/service/offer/factory.d.ts +2 -2
  58. package/lib/chevre/service/offer/moneyTransfer/authorize.d.ts +1 -1
  59. package/lib/chevre/service/offer/product.d.ts +2 -2
  60. package/lib/chevre/service/order/onOrderStatusChanged/factory.d.ts +1 -1
  61. package/lib/chevre/service/order/onOrderStatusChanged/factory.js +6 -1
  62. package/lib/chevre/service/order/onOrderStatusChanged.d.ts +2 -2
  63. package/lib/chevre/service/order/placeOrder.d.ts +1 -1
  64. package/lib/chevre/service/order/sendOrder.d.ts +1 -1
  65. package/lib/chevre/service/payment/any/factory.d.ts +1 -1
  66. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onPaid.d.ts +1 -1
  67. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onRefunded.d.ts +1 -1
  68. package/lib/chevre/service/payment/any.d.ts +3 -3
  69. package/lib/chevre/service/payment/creditCard.js +5 -0
  70. package/lib/chevre/service/payment/movieTicket.d.ts +4 -4
  71. package/lib/chevre/service/payment/paymentCard.d.ts +1 -1
  72. package/lib/chevre/service/permit.d.ts +1 -1
  73. package/lib/chevre/service/report/telemetry.d.ts +7 -7
  74. package/lib/chevre/service/reserve/cancelReservation.d.ts +1 -1
  75. package/lib/chevre/service/reserve/factory.d.ts +5 -5
  76. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +1 -1
  77. package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.d.ts +1 -1
  78. package/lib/chevre/service/reserve/potentialActions/onReservationUsed.d.ts +2 -2
  79. package/lib/chevre/service/task/aggregateScreeningEvent.d.ts +1 -1
  80. package/lib/chevre/service/task/aggregateUseActionsOnEvent.d.ts +1 -1
  81. package/lib/chevre/service/task/cancelMoneyTransfer.d.ts +1 -1
  82. package/lib/chevre/service/task/cancelPendingReservation.d.ts +1 -1
  83. package/lib/chevre/service/task/cancelReservation.d.ts +1 -1
  84. package/lib/chevre/service/task/importEventCapacitiesFromCOA.d.ts +1 -1
  85. package/lib/chevre/service/task/importEventsFromCOA.d.ts +1 -1
  86. package/lib/chevre/service/task/importOffersFromCOA.d.ts +1 -1
  87. package/lib/chevre/service/task/moneyTransfer.d.ts +1 -1
  88. package/lib/chevre/service/task/registerService.d.ts +1 -1
  89. package/lib/chevre/service/task/reserve.d.ts +1 -1
  90. package/lib/chevre/service/task.d.ts +2 -2
  91. package/lib/chevre/service/task.js +1 -1
  92. package/lib/chevre/service/transaction/moneyTransfer/potentialActions.d.ts +1 -1
  93. package/lib/chevre/service/transaction/moneyTransfer.d.ts +6 -6
  94. package/lib/chevre/service/transaction/orderProgramMembership.d.ts +1 -1
  95. package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.d.ts +1 -1
  96. package/lib/chevre/service/transaction/placeOrder.d.ts +1 -1
  97. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/moneyTransfer.d.ts +1 -1
  98. package/lib/chevre/service/transaction/placeOrderInProgress/result/acceptedOffers.d.ts +2 -2
  99. package/lib/chevre/service/transaction/placeOrderInProgress/result.d.ts +1 -1
  100. package/lib/chevre/service/transaction/placeOrderInProgress/validation.d.ts +8 -8
  101. package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +7 -7
  102. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnMoneyTransfer.d.ts +1 -1
  103. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPointAward.d.ts +1 -1
  104. package/lib/chevre/service/transaction/returnOrder/potentialActions.d.ts +1 -1
  105. package/lib/chevre/service/transaction/returnOrder.d.ts +2 -2
  106. package/lib/chevre/service/transaction/validation.d.ts +2 -2
  107. package/lib/chevre/service/transaction.d.ts +2 -2
  108. package/lib/chevre/settings.d.ts +1 -1
  109. package/lib/chevre/settings.js +7 -13
  110. package/package.json +12 -12
@@ -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
  */
@@ -12,10 +12,10 @@ export interface IConnectionSettings {
12
12
  */
13
13
  redisClient?: redis.RedisClient;
14
14
  }
15
- export declare type TaskOperation<T> = (repos: {
15
+ export type TaskOperation<T> = (repos: {
16
16
  task: TaskRepo;
17
17
  }) => Promise<T>;
18
- export declare type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
18
+ export type IOperation<T> = (settings: IConnectionSettings) => Promise<T>;
19
19
  /**
20
20
  * タスク名でタスクをひとつ実行する
21
21
  */
@@ -53,7 +53,7 @@ function execute(task) {
53
53
  const taskRepo = new task_1.MongoRepository(settings.connection);
54
54
  try {
55
55
  // タスク名の関数が定義されていなければ、TypeErrorとなる
56
- const { call } = yield Promise.resolve().then(() => require(`./task/${task.name}`));
56
+ const { call } = yield Promise.resolve(`${`./task/${task.name}`}`).then(s => require(s));
57
57
  yield call(task.data)(settings);
58
58
  const result = {
59
59
  executedAt: now,
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../../../factory';
2
- export declare type IAuthorizeMoneyTransferOffer = factory.action.authorize.offer.moneyTransfer.IAction;
2
+ export type IAuthorizeMoneyTransferOffer = factory.action.authorize.offer.moneyTransfer.IAction;
3
3
  /**
4
4
  * 取引のポストアクションを作成する
5
5
  */
@@ -19,17 +19,17 @@ export interface IStartOperationRepos {
19
19
  transactionNumber: TransactionNumberRepo;
20
20
  assetTransaction: AssetTransactionRepo;
21
21
  }
22
- export declare type IStartOperation<T> = (repos: IStartOperationRepos) => Promise<T>;
23
- export declare type ITaskAndTransactionOperation<T> = (repos: {
22
+ export type IStartOperation<T> = (repos: IStartOperationRepos) => Promise<T>;
23
+ export type ITaskAndTransactionOperation<T> = (repos: {
24
24
  task: TaskRepo;
25
25
  transaction: TransactionRepo;
26
26
  }) => Promise<T>;
27
- export declare type IConfirmOperation<T> = (repos: {
27
+ export type IConfirmOperation<T> = (repos: {
28
28
  action: ActionRepo;
29
29
  transaction: TransactionRepo;
30
30
  }) => Promise<T>;
31
- export declare type IPassportValidator = IWaiterPassportValidator;
32
- export declare type IStartParams = factory.transaction.moneyTransfer.IStartParamsWithoutDetail & {
31
+ export type IPassportValidator = IWaiterPassportValidator;
32
+ export type IStartParams = factory.transaction.moneyTransfer.IStartParamsWithoutDetail & {
33
33
  passportValidator?: IPassportValidator;
34
34
  };
35
35
  /**
@@ -37,7 +37,7 @@ export declare type IStartParams = factory.transaction.moneyTransfer.IStartParam
37
37
  * 通貨転送資産取引サービスを利用して転送取引を開始する
38
38
  */
39
39
  export declare function start(params: IStartParams): IStartOperation<factory.transaction.moneyTransfer.ITransaction>;
40
- export declare type IAuthorizeOperation<T> = (repos: {
40
+ export type IAuthorizeOperation<T> = (repos: {
41
41
  action: ActionRepo;
42
42
  order: OrderRepo;
43
43
  product: ProductRepo;
@@ -42,7 +42,7 @@ interface IOrderOperationRepos {
42
42
  transaction: TransactionRepo;
43
43
  transactionNumber: TransactionNumberRepo;
44
44
  }
45
- declare type IOrderOperation<T> = (repos: IOrderOperationRepos) => Promise<T>;
45
+ type IOrderOperation<T> = (repos: IOrderOperationRepos) => Promise<T>;
46
46
  /**
47
47
  * メンバーシップ注文
48
48
  */
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../../../../factory';
2
- export declare type IPlaceOrderTransactionAsInformObject = Pick<factory.transaction.ITransaction<factory.transactionType.PlaceOrder>, 'id' | 'typeOf' | 'agent' | 'endDate' | 'expires' | 'project' | 'seller' | 'result' | 'startDate' | 'status'>;
2
+ export type IPlaceOrderTransactionAsInformObject = Pick<factory.transaction.ITransaction<factory.transactionType.PlaceOrder>, 'id' | 'typeOf' | 'agent' | 'endDate' | 'expires' | 'project' | 'seller' | 'result' | 'startDate' | 'status'>;
3
3
  /**
4
4
  * 取引のタスクを作成する
5
5
  */
@@ -1,6 +1,6 @@
1
1
  import { MongoRepository as TaskRepo } from '../../repo/task';
2
2
  import { MongoRepository as TransactionRepo } from '../../repo/transaction';
3
- export declare type ITaskAndTransactionOperation<T> = (repos: {
3
+ export type ITaskAndTransactionOperation<T> = (repos: {
4
4
  task: TaskRepo;
5
5
  transaction: TransactionRepo;
6
6
  }) => Promise<T>;
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../../../../factory';
2
- export declare type IAuthorizeMoneyTransferOffer = factory.action.authorize.offer.moneyTransfer.IAction;
2
+ export type IAuthorizeMoneyTransferOffer = factory.action.authorize.offer.moneyTransfer.IAction;
3
3
  export declare function createMoneyTransferActions(params: {
4
4
  order: factory.order.IOrder;
5
5
  transaction: factory.transaction.placeOrder.ITransaction;
@@ -1,6 +1,6 @@
1
1
  import * as factory from '../../../../factory';
2
- export declare type IAuthorizeMoneyTransferOffer = factory.action.authorize.offer.moneyTransfer.IAction;
3
- export declare type IAuthorizeSeatReservationOffer = factory.action.authorize.offer.seatReservation.IAction<factory.service.webAPI.Identifier>;
2
+ export type IAuthorizeMoneyTransferOffer = factory.action.authorize.offer.moneyTransfer.IAction;
3
+ export type IAuthorizeSeatReservationOffer = factory.action.authorize.offer.seatReservation.IAction<factory.service.webAPI.Identifier>;
4
4
  export declare function createReservationAcceptedOffers(params: {
5
5
  transaction: factory.transaction.placeOrder.ITransaction;
6
6
  }): {
@@ -1,5 +1,5 @@
1
1
  import * as factory from '../../../factory';
2
- export declare type IAuthorizeAnyPaymentResult = factory.action.authorize.paymentMethod.any.IResult;
2
+ export type IAuthorizeAnyPaymentResult = factory.action.authorize.paymentMethod.any.IResult;
3
3
  /**
4
4
  * 注文を生成する
5
5
  */
@@ -1,16 +1,16 @@
1
1
  import * as factory from '../../../factory';
2
- export declare type IAuthorizeAnyPaymentResult = factory.action.authorize.paymentMethod.any.IResult;
3
- export declare type IAuthorizeSeatReservationOffer = factory.action.authorize.offer.seatReservation.IAction<factory.service.webAPI.Identifier>;
4
- export declare type IAuthorizeSeatReservationOfferResult = factory.action.authorize.offer.seatReservation.IResult<factory.service.webAPI.Identifier>;
5
- export declare type IAuthorizeActionResultBySeller = factory.action.authorize.offer.product.IResult | IAuthorizeSeatReservationOfferResult | factory.action.authorize.award.point.IResult;
6
- export declare type IUnitPriceSpecification = factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType.UnitPriceSpecification>;
2
+ export type IAuthorizeAnyPaymentResult = factory.action.authorize.paymentMethod.any.IResult;
3
+ export type IAuthorizeSeatReservationOffer = factory.action.authorize.offer.seatReservation.IAction<factory.service.webAPI.Identifier>;
4
+ export type IAuthorizeSeatReservationOfferResult = factory.action.authorize.offer.seatReservation.IResult<factory.service.webAPI.Identifier>;
5
+ export type IAuthorizeActionResultBySeller = factory.action.authorize.offer.product.IResult | IAuthorizeSeatReservationOfferResult | factory.action.authorize.award.point.IResult;
6
+ export type IUnitPriceSpecification = factory.priceSpecification.IPriceSpecification<factory.priceSpecificationType.UnitPriceSpecification>;
7
7
  /**
8
8
  * 取引が確定可能な状態かどうかをチェックする
9
9
  */
10
10
  export declare function validateTransaction(transaction: factory.transaction.placeOrder.ITransaction): void;
11
- export declare type IConfirmationNumberGenerator = (order: factory.order.IOrder) => string;
12
- export declare type IOrderURLGenerator = (order: factory.order.IOrder) => string;
13
- export declare type IResultOrderParams = factory.transaction.placeOrder.IResultOrderParams & {
11
+ export type IConfirmationNumberGenerator = (order: factory.order.IOrder) => string;
12
+ export type IOrderURLGenerator = (order: factory.order.IOrder) => string;
13
+ export type IResultOrderParams = factory.transaction.placeOrder.IResultOrderParams & {
14
14
  /**
15
15
  * 注文日時
16
16
  */
@@ -15,7 +15,7 @@ export interface IStartOperationRepos {
15
15
  seller: SellerRepo;
16
16
  transaction: TransactionRepo;
17
17
  }
18
- export declare type IStartOperation<T> = (repos: IStartOperationRepos) => Promise<T>;
18
+ export type IStartOperation<T> = (repos: IStartOperationRepos) => Promise<T>;
19
19
  export interface IConfirmOperationRepos {
20
20
  action: ActionRepo;
21
21
  emailMessage?: EmailMessageRepo;
@@ -24,9 +24,9 @@ export interface IConfirmOperationRepos {
24
24
  orderNumber: OrderNumberRepo;
25
25
  confirmationNumber: ConfirmationNumberRepo;
26
26
  }
27
- export declare type IConfirmOperation<T> = (repos: IConfirmOperationRepos) => Promise<T>;
28
- export declare type IPassportValidator = IWaiterPassportValidator;
29
- export declare type IStartParams = factory.transaction.placeOrder.IStartParamsWithoutDetail & {
27
+ export type IConfirmOperation<T> = (repos: IConfirmOperationRepos) => Promise<T>;
28
+ export type IPassportValidator = IWaiterPassportValidator;
29
+ export type IStartParams = factory.transaction.placeOrder.IStartParamsWithoutDetail & {
30
30
  passportValidator?: IPassportValidator;
31
31
  broker?: factory.order.IBroker;
32
32
  validateSeller?: boolean;
@@ -35,8 +35,8 @@ export declare type IStartParams = factory.transaction.placeOrder.IStartParamsWi
35
35
  * 取引開始
36
36
  */
37
37
  export declare function start(params: IStartParams): IStartOperation<factory.transaction.placeOrder.ITransaction>;
38
- export declare type IOrderURLGenerator = (order: factory.order.IOrder) => string;
39
- export declare type IResultOrderParams = factory.transaction.placeOrder.IResultOrderParams & {
38
+ export type IOrderURLGenerator = (order: factory.order.IOrder) => string;
39
+ export type IResultOrderParams = factory.transaction.placeOrder.IResultOrderParams & {
40
40
  /**
41
41
  * 注文日時
42
42
  */
@@ -53,7 +53,7 @@ export declare type IResultOrderParams = factory.transaction.placeOrder.IResultO
53
53
  minValue?: number;
54
54
  };
55
55
  };
56
- export declare type IConfirmParams = factory.transaction.placeOrder.IConfirmParams & {
56
+ export type IConfirmParams = factory.transaction.placeOrder.IConfirmParams & {
57
57
  project: {
58
58
  id: string;
59
59
  };
@@ -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>;
@@ -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
  };
@@ -3,20 +3,14 @@ Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.settings = exports.USE_PAY_ASSET_TRANSACTION_SYNC_PROCESSING = exports.USE_ASSET_TRANSACTION_SYNC_PROCESSING = exports.DEFAULT_PAYMENT_METHOD_TYPE_FOR_CREDIT_CARD = exports.DEFAULT_SENDER_EMAIL = exports.TRANSACTION_CANCELED_STORAGE_PERIOD_IN_DAYS = exports.TRANSACTION_CONFIRMED_STORAGE_PERIOD_IN_DAYS = exports.ASSET_TRANSACTION_STORAGE_PERIOD_IN_DAYS = exports.ABORTED_TASKS_WITHOUT_REPORT = void 0;
4
4
  const factory = require("./factory");
5
5
  const transactionWebhookUrls = (typeof process.env.INFORM_TRANSACTION_URL === 'string')
6
- ? process.env.INFORM_TRANSACTION_URL.split(',')
6
+ ? process.env.INFORM_TRANSACTION_URL.split(' ')
7
7
  : [];
8
8
  const informOrderUrls = (typeof process.env.INFORM_ORDER_URL === 'string')
9
- ? process.env.INFORM_ORDER_URL.split(',')
9
+ ? process.env.INFORM_ORDER_URL.split(' ')
10
10
  : [];
11
- // const informPaymentUrls = (typeof process.env.INFORM_PAYMENT_URL === 'string')
12
- // ? process.env.INFORM_PAYMENT_URL.split(',')
13
- // : [];
14
11
  const informReservationUrls = (typeof process.env.INFORM_RESERVATION_URL === 'string')
15
- ? process.env.INFORM_RESERVATION_URL.split(',')
12
+ ? process.env.INFORM_RESERVATION_URL.split(' ')
16
13
  : [];
17
- // const informUseReservationUrls = (typeof process.env.INFORM_USE_RESERVATION_URL === 'string')
18
- // ? process.env.INFORM_USE_RESERVATION_URL.split(',')
19
- // : [];
20
14
  // tslint:disable-next-line:no-magic-numbers
21
15
  const triggerWebhookTimeout = (process.env.TRIGGER_WEBHOOK_TIMEOUT !== undefined) ? Number(process.env.TRIGGER_WEBHOOK_TIMEOUT) : 15000;
22
16
  const MAXIMUM_RESERVATION_GRACE_PERIOD_IN_DAYS = (typeof process.env.MAXIMUM_RESERVATION_GRACE_PERIOD_IN_DAYS === 'string')
@@ -24,7 +18,7 @@ const MAXIMUM_RESERVATION_GRACE_PERIOD_IN_DAYS = (typeof process.env.MAXIMUM_RES
24
18
  // tslint:disable-next-line:no-magic-numbers
25
19
  : 93;
26
20
  exports.ABORTED_TASKS_WITHOUT_REPORT = (typeof process.env.ABORTED_TASKS_WITHOUT_REPORT === 'string')
27
- ? process.env.ABORTED_TASKS_WITHOUT_REPORT.split(',')
21
+ ? process.env.ABORTED_TASKS_WITHOUT_REPORT.split(' ')
28
22
  : [];
29
23
  const MAX_NUM_CREDIT_CARD_PAYMENT_METHOD = (typeof process.env.MAX_NUM_CREDIT_CARD_PAYMENT_METHOD === 'string')
30
24
  ? Number(process.env.MAX_NUM_CREDIT_CARD_PAYMENT_METHOD)
@@ -95,9 +89,9 @@ exports.settings = Object.assign(Object.assign({ transactionWebhookUrls, onOrder
95
89
  }, maximumReservationGracePeriodInDays: MAXIMUM_RESERVATION_GRACE_PERIOD_IN_DAYS, userPoolIdOld: String(process.env.USERPOOL_ID_OLD), userPoolIdNew: String(process.env.USERPOOL_ID_NEW) }, (typeof MAX_NUM_CREDIT_CARD_PAYMENT_METHOD === 'number')
96
90
  ? { maxNumCreditCardPaymentMethod: MAX_NUM_CREDIT_CARD_PAYMENT_METHOD }
97
91
  : undefined), { useAggregateEntranceGateProjects: (typeof process.env.USE_AGGREGATE_ENTRANCE_GATE_PROJECTS === 'string')
98
- ? process.env.USE_AGGREGATE_ENTRANCE_GATE_PROJECTS.split(',')
92
+ ? process.env.USE_AGGREGATE_ENTRANCE_GATE_PROJECTS.split(' ')
99
93
  : [], useAggregateOfferProjects: (typeof process.env.USE_AGGREGATE_OFFER_PROJECTS === 'string')
100
- ? process.env.USE_AGGREGATE_OFFER_PROJECTS.split(',')
94
+ ? process.env.USE_AGGREGATE_OFFER_PROJECTS.split(' ')
101
95
  : [], useOfferRateLimitProjects: (typeof process.env.USE_OFFER_RATE_LIMIT_PROJECTS === 'string')
102
- ? process.env.USE_OFFER_RATE_LIMIT_PROJECTS.split(',')
96
+ ? process.env.USE_OFFER_RATE_LIMIT_PROJECTS.split(' ')
103
97
  : [] });
package/package.json CHANGED
@@ -9,20 +9,19 @@
9
9
  }
10
10
  ],
11
11
  "dependencies": {
12
- "@chevre/factory": "4.309.1",
13
- "@cinerino/sdk": "3.153.0",
12
+ "@chevre/factory": "4.310.0",
13
+ "@cinerino/sdk": "3.154.0",
14
14
  "@motionpicture/coa-service": "9.2.0",
15
15
  "@motionpicture/gmo-service": "5.2.0",
16
16
  "@sendgrid/mail": "6.4.0",
17
- "@surfrock/sdk": "1.2.0-alpha.0",
18
- "@waiter/domain": "5.1.0",
17
+ "@surfrock/sdk": "1.2.0",
18
+ "@waiter/domain": "6.1.0",
19
19
  "azure-storage": "^2.10.4",
20
20
  "cdigit": "2.6.7",
21
21
  "debug": "^3.2.7",
22
22
  "google-libphonenumber": "^3.2.18",
23
23
  "http-status": "^1.5.0",
24
- "json2csv": "^4.5.4",
25
- "jsonwebtoken": "^8.5.1",
24
+ "jsonwebtoken": "9.0.0",
26
25
  "lodash.difference": "^4.5.0",
27
26
  "moment": "^2.29.1",
28
27
  "moment-range": "^4.0.2",
@@ -39,12 +38,12 @@
39
38
  "@types/google-libphonenumber": "^7.4.19",
40
39
  "@types/http-status": "^0.2.30",
41
40
  "@types/json2csv": "^4.5.1",
42
- "@types/jsonwebtoken": "^7.2.8",
41
+ "@types/jsonwebtoken": "9.0.1",
43
42
  "@types/lodash.difference": "^4.5.6",
44
43
  "@types/mocha": "^5.2.7",
45
44
  "@types/moment-timezone": "^0.5.30",
46
45
  "@types/nock": "^9.3.1",
47
- "@types/node": "10.17.60",
46
+ "@types/node": "14.18.42",
48
47
  "@types/power-assert": "^1.5.3",
49
48
  "@types/pug": "^2.0.4",
50
49
  "@types/redis": "^2.8.32",
@@ -59,6 +58,7 @@
59
58
  "coveralls": "^3.1.0",
60
59
  "csvtojson": "^2.0.10",
61
60
  "googleapis": "^85.0.0",
61
+ "json2csv": "4.5.4",
62
62
  "mocha": "^5.2.0",
63
63
  "mongoose": "6.10.4",
64
64
  "nock": "^9.6.1",
@@ -73,7 +73,7 @@
73
73
  "ts-node": "^10.9.1",
74
74
  "tslint": "^6.1.3",
75
75
  "tslint-microsoft-contrib": "^6.2.0",
76
- "typescript": "^4.8.4"
76
+ "typescript": "5.0.3"
77
77
  },
78
78
  "peerDependencies": {
79
79
  "aws-sdk": "^2.0.0",
@@ -81,8 +81,8 @@
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.9"
123
+ "version": "21.1.0-alpha.0"
124
124
  }