@chevre/domain 21.0.0-alpha.10 → 21.0.0-alpha.12

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 (104) hide show
  1. package/lib/chevre/factory/event.d.ts +1 -1
  2. package/lib/chevre/repo/accountingReport.d.ts +1 -1
  3. package/lib/chevre/repo/action/registerServiceInProgress.js +1 -1
  4. package/lib/chevre/repo/action.d.ts +2 -2
  5. package/lib/chevre/repo/code.d.ts +2 -2
  6. package/lib/chevre/repo/confirmationNumber.js +1 -1
  7. package/lib/chevre/repo/emailMessage.d.ts +1 -1
  8. package/lib/chevre/repo/event.d.ts +1 -1
  9. package/lib/chevre/repo/itemAvailability/screeningEvent.js +1 -1
  10. package/lib/chevre/repo/orderNumber.js +1 -1
  11. package/lib/chevre/repo/ownershipInfo.d.ts +1 -1
  12. package/lib/chevre/repo/paymentMethod/creditCard.d.ts +3 -3
  13. package/lib/chevre/repo/person.d.ts +2 -2
  14. package/lib/chevre/repo/place.d.ts +2 -2
  15. package/lib/chevre/repo/product.d.ts +1 -1
  16. package/lib/chevre/repo/rateLimit/offer.js +1 -1
  17. package/lib/chevre/repo/reservation.d.ts +1 -1
  18. package/lib/chevre/repo/seller.d.ts +1 -1
  19. package/lib/chevre/repo/serviceOutputIdentifier.js +1 -1
  20. package/lib/chevre/repo/transactionNumber.js +1 -1
  21. package/lib/chevre/repo/trip.d.ts +1 -1
  22. package/lib/chevre/service/account.d.ts +1 -1
  23. package/lib/chevre/service/accountTransaction/deposit.d.ts +1 -1
  24. package/lib/chevre/service/accountTransaction/transfer.d.ts +1 -1
  25. package/lib/chevre/service/accountTransaction/withdraw.d.ts +1 -1
  26. package/lib/chevre/service/accountTransaction.d.ts +1 -1
  27. package/lib/chevre/service/aggregation/event/aggregateScreeningEvent.d.ts +1 -1
  28. package/lib/chevre/service/aggregation/event/aggregateUseActionsOnEvent.d.ts +1 -1
  29. package/lib/chevre/service/aggregation/project.d.ts +1 -1
  30. package/lib/chevre/service/assetTransaction/cancelReservation.d.ts +3 -3
  31. package/lib/chevre/service/assetTransaction/moneyTransfer.d.ts +4 -4
  32. package/lib/chevre/service/assetTransaction/pay/potentialActions.d.ts +1 -1
  33. package/lib/chevre/service/assetTransaction/pay.d.ts +7 -7
  34. package/lib/chevre/service/assetTransaction/refund.d.ts +4 -4
  35. package/lib/chevre/service/assetTransaction/registerService/factory.d.ts +1 -1
  36. package/lib/chevre/service/assetTransaction/registerService.d.ts +4 -4
  37. package/lib/chevre/service/assetTransaction/reserve/factory/price.d.ts +1 -1
  38. package/lib/chevre/service/assetTransaction/reserve/factory.d.ts +2 -2
  39. package/lib/chevre/service/assetTransaction/reserve.d.ts +6 -6
  40. package/lib/chevre/service/code.d.ts +2 -2
  41. package/lib/chevre/service/delivery/factory.d.ts +1 -1
  42. package/lib/chevre/service/delivery/product/factory.d.ts +1 -1
  43. package/lib/chevre/service/delivery/reservation/factory.d.ts +1 -1
  44. package/lib/chevre/service/iam.d.ts +1 -1
  45. package/lib/chevre/service/moneyTransfer.d.ts +1 -1
  46. package/lib/chevre/service/notification.d.ts +1 -1
  47. package/lib/chevre/service/offer/event/authorize.d.ts +2 -2
  48. package/lib/chevre/service/offer/event/factory.d.ts +5 -5
  49. package/lib/chevre/service/offer/event/searchEventTicketOffers.d.ts +2 -2
  50. package/lib/chevre/service/offer/eventServiceByCOA/factory.d.ts +2 -2
  51. package/lib/chevre/service/offer/eventServiceByCOA/validateAcceptedOffers.d.ts +1 -1
  52. package/lib/chevre/service/offer/eventServiceByCOA.d.ts +2 -2
  53. package/lib/chevre/service/offer/factory.d.ts +2 -2
  54. package/lib/chevre/service/offer/moneyTransfer/authorize.d.ts +1 -1
  55. package/lib/chevre/service/offer/product.d.ts +2 -2
  56. package/lib/chevre/service/order/onOrderStatusChanged/factory.d.ts +1 -1
  57. package/lib/chevre/service/order/onOrderStatusChanged.d.ts +2 -2
  58. package/lib/chevre/service/order/placeOrder.d.ts +1 -1
  59. package/lib/chevre/service/order/sendOrder.d.ts +1 -1
  60. package/lib/chevre/service/payment/any/factory.d.ts +1 -1
  61. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onPaid.d.ts +1 -1
  62. package/lib/chevre/service/payment/any/onPaymentStatusChanged/onRefunded.d.ts +1 -1
  63. package/lib/chevre/service/payment/any.d.ts +3 -3
  64. package/lib/chevre/service/payment/creditCard.js +5 -0
  65. package/lib/chevre/service/payment/movieTicket.d.ts +4 -4
  66. package/lib/chevre/service/payment/paymentCard.d.ts +1 -1
  67. package/lib/chevre/service/permit.d.ts +1 -1
  68. package/lib/chevre/service/report/telemetry.d.ts +7 -7
  69. package/lib/chevre/service/reserve/cancelReservation.d.ts +1 -1
  70. package/lib/chevre/service/reserve/factory.d.ts +5 -5
  71. package/lib/chevre/service/reserve/potentialActions/onReservationCanceled.d.ts +1 -1
  72. package/lib/chevre/service/reserve/potentialActions/onReservationConfirmed.d.ts +1 -1
  73. package/lib/chevre/service/reserve/potentialActions/onReservationUsed.d.ts +2 -2
  74. package/lib/chevre/service/task/aggregateScreeningEvent.d.ts +1 -1
  75. package/lib/chevre/service/task/aggregateUseActionsOnEvent.d.ts +1 -1
  76. package/lib/chevre/service/task/cancelMoneyTransfer.d.ts +1 -1
  77. package/lib/chevre/service/task/cancelPendingReservation.d.ts +1 -1
  78. package/lib/chevre/service/task/cancelReservation.d.ts +1 -1
  79. package/lib/chevre/service/task/importEventCapacitiesFromCOA.d.ts +1 -1
  80. package/lib/chevre/service/task/importEventsFromCOA.d.ts +1 -1
  81. package/lib/chevre/service/task/importOffersFromCOA.d.ts +1 -1
  82. package/lib/chevre/service/task/moneyTransfer.d.ts +1 -1
  83. package/lib/chevre/service/task/registerService.d.ts +1 -1
  84. package/lib/chevre/service/task/reserve.d.ts +1 -1
  85. package/lib/chevre/service/task.d.ts +2 -2
  86. package/lib/chevre/service/task.js +1 -1
  87. package/lib/chevre/service/transaction/moneyTransfer/potentialActions.d.ts +1 -1
  88. package/lib/chevre/service/transaction/moneyTransfer.d.ts +6 -6
  89. package/lib/chevre/service/transaction/orderProgramMembership.d.ts +1 -1
  90. package/lib/chevre/service/transaction/placeOrder/exportTasks/factory.d.ts +1 -1
  91. package/lib/chevre/service/transaction/placeOrder.d.ts +1 -1
  92. package/lib/chevre/service/transaction/placeOrderInProgress/potentialActions/moneyTransfer.d.ts +1 -1
  93. package/lib/chevre/service/transaction/placeOrderInProgress/result/acceptedOffers.d.ts +2 -2
  94. package/lib/chevre/service/transaction/placeOrderInProgress/result.d.ts +1 -1
  95. package/lib/chevre/service/transaction/placeOrderInProgress/validation.d.ts +8 -8
  96. package/lib/chevre/service/transaction/placeOrderInProgress.d.ts +7 -7
  97. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnMoneyTransfer.d.ts +1 -1
  98. package/lib/chevre/service/transaction/returnOrder/potentialActions/returnPointAward.d.ts +1 -1
  99. package/lib/chevre/service/transaction/returnOrder/potentialActions.d.ts +1 -1
  100. package/lib/chevre/service/transaction/returnOrder.d.ts +2 -2
  101. package/lib/chevre/service/transaction/validation.d.ts +2 -2
  102. package/lib/chevre/service/transaction.d.ts +2 -2
  103. package/lib/chevre/settings.d.ts +1 -1
  104. package/package.json +6 -6
@@ -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
  };
package/package.json CHANGED
@@ -14,7 +14,7 @@
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",
17
+ "@surfrock/sdk": "1.2.0",
18
18
  "@waiter/domain": "6.1.0",
19
19
  "azure-storage": "^2.10.4",
20
20
  "cdigit": "2.6.7",
@@ -43,7 +43,7 @@
43
43
  "@types/mocha": "^5.2.7",
44
44
  "@types/moment-timezone": "^0.5.30",
45
45
  "@types/nock": "^9.3.1",
46
- "@types/node": "10.17.60",
46
+ "@types/node": "14.18.42",
47
47
  "@types/power-assert": "^1.5.3",
48
48
  "@types/pug": "^2.0.4",
49
49
  "@types/redis": "^2.8.32",
@@ -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.10"
123
+ "version": "21.0.0-alpha.12"
124
124
  }