@chevre/domain 26.0.0-alpha.41 → 26.0.0-alpha.42

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 (89) hide show
  1. package/lib/chevre/repo/action/cancel.d.ts +25 -0
  2. package/lib/chevre/repo/action/cancel.js +47 -0
  3. package/lib/chevre/repo/action/confirm.d.ts +11 -0
  4. package/lib/chevre/repo/action/confirm.js +16 -0
  5. package/lib/chevre/repo/action/order.d.ts +21 -0
  6. package/lib/chevre/repo/action/order.js +35 -0
  7. package/lib/chevre/repo/action/reserve.d.ts +21 -0
  8. package/lib/chevre/repo/action/reserve.js +37 -0
  9. package/lib/chevre/repo/action/returnAction.d.ts +11 -0
  10. package/lib/chevre/repo/action/returnAction.js +16 -0
  11. package/lib/chevre/repo/adminAction.d.ts +8 -2
  12. package/lib/chevre/repo/adminAction.js +6 -0
  13. package/lib/chevre/repo/mongoose/schemas/setting.d.ts +4 -14
  14. package/lib/chevre/repository.d.ts +0 -5
  15. package/lib/chevre/repository.js +2 -13
  16. package/lib/chevre/service/assetTransaction/pay/confirm.d.ts +0 -10
  17. package/lib/chevre/service/assetTransaction/pay/start/processAuthorize.d.ts +0 -1
  18. package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeMovieTicket.d.ts +0 -1
  19. package/lib/chevre/service/assetTransaction/pay/start.d.ts +0 -1
  20. package/lib/chevre/service/assetTransaction/refund.d.ts +0 -1
  21. package/lib/chevre/service/assetTransaction/reserve/cancel.d.ts +4 -2
  22. package/lib/chevre/service/assetTransaction/reserve/confirm.d.ts +4 -2
  23. package/lib/chevre/service/assetTransaction/reserveCOA/cancel.d.ts +7 -3
  24. package/lib/chevre/service/offer/event/authorize.d.ts +0 -1
  25. package/lib/chevre/service/offer/event/issueEventOfferTicket.d.ts +0 -1
  26. package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4chevre.d.ts +4 -2
  27. package/lib/chevre/service/offer/event/voidTransaction/processVoidTransaction4coa.d.ts +7 -3
  28. package/lib/chevre/service/offer/event/voidTransaction.d.ts +4 -2
  29. package/lib/chevre/service/offer/event/voidTransaction.js +2 -2
  30. package/lib/chevre/service/offer/event/voidTransactionByActionId.d.ts +4 -2
  31. package/lib/chevre/service/offer/event/voidTransactionByActionId.js +1 -1
  32. package/lib/chevre/service/order/confirmPayTransaction.d.ts +4 -10
  33. package/lib/chevre/service/order/confirmPayTransaction.js +3 -10
  34. package/lib/chevre/service/order/placeOrder/createPlacingOrderFromExistingTransaction.d.ts +4 -2
  35. package/lib/chevre/service/order/placeOrder/createPlacingOrderFromExistingTransaction.js +2 -2
  36. package/lib/chevre/service/order/placeOrder.d.ts +6 -4
  37. package/lib/chevre/service/order/placeOrder.js +9 -17
  38. package/lib/chevre/service/order/returnOrder.d.ts +4 -2
  39. package/lib/chevre/service/order/returnOrder.js +3 -3
  40. package/lib/chevre/service/payment/any/authorize/fixTransactionNumber.d.ts +0 -1
  41. package/lib/chevre/service/payment/any/authorize/handlePrePublishedPaymentMethodIdOnAuthorizing.d.ts +0 -1
  42. package/lib/chevre/service/payment/any/authorize.d.ts +0 -1
  43. package/lib/chevre/service/payment/any/invalidatePaymentUrl.d.ts +0 -1
  44. package/lib/chevre/service/payment/any/onPayActionCompleted.d.ts +0 -1
  45. package/lib/chevre/service/payment/any/onRefundActionCompletedOrFailed.d.ts +0 -1
  46. package/lib/chevre/service/payment/any/processVoidPayTransaction.d.ts +0 -1
  47. package/lib/chevre/service/payment/any/voidPayTransaction.d.ts +0 -1
  48. package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard.d.ts +0 -1
  49. package/lib/chevre/service/payment/creditCard/authorize/processAuthorizeCreditCard3ds.d.ts +0 -1
  50. package/lib/chevre/service/payment/creditCard/authorize.d.ts +0 -1
  51. package/lib/chevre/service/payment/creditCard/payCreditCard.d.ts +0 -1
  52. package/lib/chevre/service/payment/creditCard/refundCreditCard.d.ts +0 -1
  53. package/lib/chevre/service/payment/faceToFace.d.ts +0 -2
  54. package/lib/chevre/service/payment/movieTicket/authorize.d.ts +0 -1
  55. package/lib/chevre/service/payment/movieTicket/payMovieTicket.d.ts +0 -1
  56. package/lib/chevre/service/payment/movieTicket/refundMovieTicket.d.ts +0 -1
  57. package/lib/chevre/service/reserve/cancelReservation.d.ts +7 -3
  58. package/lib/chevre/service/reserve/cancelReservation.js +12 -22
  59. package/lib/chevre/service/reserve/checkInReservation.d.ts +4 -2
  60. package/lib/chevre/service/reserve/confirmReservation.d.ts +4 -2
  61. package/lib/chevre/service/reserve/confirmReservation.js +9 -35
  62. package/lib/chevre/service/reserve/useReservation.d.ts +2 -2
  63. package/lib/chevre/service/reserveCOA/cancelReservation.d.ts +4 -2
  64. package/lib/chevre/service/reserveCOA/cancelReservation.js +3 -3
  65. package/lib/chevre/service/task/cancelPendingReservation.js +3 -3
  66. package/lib/chevre/service/task/cancelReservation.js +3 -5
  67. package/lib/chevre/service/task/confirmPayTransaction.js +11 -12
  68. package/lib/chevre/service/task/confirmReserveTransaction.d.ts +6 -2
  69. package/lib/chevre/service/task/confirmReserveTransaction.js +9 -5
  70. package/lib/chevre/service/task/invalidatePaymentUrl.js +0 -1
  71. package/lib/chevre/service/task/onAuthorizationCreated.js +4 -13
  72. package/lib/chevre/service/task/onResourceUpdated.js +0 -2
  73. package/lib/chevre/service/task/pay.js +0 -1
  74. package/lib/chevre/service/task/payment/invalidatePaymentUrlByTask.d.ts +0 -1
  75. package/lib/chevre/service/task/payment/payByTask.d.ts +0 -1
  76. package/lib/chevre/service/task/payment/refundByTask.d.ts +0 -1
  77. package/lib/chevre/service/task/payment/voidPaymentByTask.d.ts +0 -2
  78. package/lib/chevre/service/task/placeOrder.js +8 -6
  79. package/lib/chevre/service/task/refund.js +0 -1
  80. package/lib/chevre/service/task/reserve.js +3 -6
  81. package/lib/chevre/service/task/returnOrder.js +2 -3
  82. package/lib/chevre/service/task/returnPayTransaction.js +7 -14
  83. package/lib/chevre/service/task/returnReserveTransaction.js +5 -5
  84. package/lib/chevre/service/task/useReservation.js +3 -3
  85. package/lib/chevre/service/task/voidPayment.js +0 -2
  86. package/lib/chevre/service/task/voidReserveTransaction.js +2 -2
  87. package/package.json +1 -1
  88. package/lib/chevre/repo/action.d.ts +0 -23
  89. package/lib/chevre/repo/action.js +0 -22
@@ -1,23 +0,0 @@
1
- import type { Connection } from 'mongoose';
2
- import { factory } from '../factory';
3
- import { IAction, IKeyOfProjection, ActionProcessRepo, ICancelActionAction, IActionRecipe } from './action/anyAction/actionProcess';
4
- export { ICancelActionAction };
5
- /**
6
- * 汎用アクションリポジトリで開始可能なアクションタイプ
7
- */
8
- export type StartableActionType = factory.actionType.AuthorizeAction | factory.actionType.CancelAction | factory.actionType.ConfirmAction | factory.actionType.OrderAction | factory.actionType.ReserveAction | factory.actionType.ReturnAction;
9
- export type IAvailableActionRecipe = IActionRecipe<Exclude<factory.recipe.RecipeCategory, factory.recipe.RecipeCategory.publishPaymentUrl | factory.recipe.RecipeCategory.checkMovieTicket | factory.recipe.RecipeCategory.acceptCOAOffer | factory.recipe.RecipeCategory.authorizeInvoice | factory.recipe.RecipeCategory.authorizeInvoice3ds | factory.recipe.RecipeCategory.payCreditCard | factory.recipe.RecipeCategory.payMovieTicket | factory.recipe.RecipeCategory.refundCreditCard | factory.recipe.RecipeCategory.refundMovieTicket>>;
10
- /**
11
- * アクションリポジトリ
12
- */
13
- export declare class ActionRepo extends ActionProcessRepo<IAction<StartableActionType>, IAvailableActionRecipe> {
14
- constructor(connection: Connection);
15
- /**
16
- * 汎用アクション検索
17
- */
18
- findActionsByType<T extends StartableActionType>(params: factory.action.ISearchConditions & {
19
- typeOf?: T | {
20
- $eq?: T;
21
- };
22
- }, inclusion: IKeyOfProjection[]): Promise<IAction<T>[]>;
23
- }
@@ -1,22 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ActionRepo = void 0;
4
- const actionProcess_1 = require("./action/anyAction/actionProcess");
5
- /**
6
- * アクションリポジトリ
7
- */
8
- class ActionRepo extends actionProcess_1.ActionProcessRepo {
9
- constructor(connection) {
10
- super({ connection }, {
11
- expireAfterSeconds: actionProcess_1.DEFAULT_EXPIRE_AFTER_SECONDS,
12
- recipeExpireAfterSeconds: actionProcess_1.RECIPE_DEFAULT_EXPIRE_AFTER_SECONDS
13
- });
14
- }
15
- /**
16
- * 汎用アクション検索
17
- */
18
- async findActionsByType(params, inclusion) {
19
- return (this.findAnyActions(params, inclusion));
20
- }
21
- }
22
- exports.ActionRepo = ActionRepo;