@chevre/domain 24.0.0-alpha.16 → 24.0.0-alpha.18

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 (41) hide show
  1. package/lib/chevre/repo/action/acceptCOAOffer.d.ts +23 -0
  2. package/lib/chevre/repo/action/acceptCOAOffer.js +64 -0
  3. package/lib/chevre/repo/action/acceptPay.d.ts +8 -0
  4. package/lib/chevre/repo/action/acceptPay.js +13 -0
  5. package/lib/chevre/repo/action/actionProcess.d.ts +115 -0
  6. package/lib/chevre/repo/action/actionProcess.js +293 -0
  7. package/lib/chevre/repo/action/authorizeOffer.d.ts +21 -0
  8. package/lib/chevre/repo/action/authorizeOffer.js +85 -0
  9. package/lib/chevre/repo/action/checkMovieTicket.d.ts +55 -0
  10. package/lib/chevre/repo/action/checkMovieTicket.js +145 -0
  11. package/lib/chevre/repo/action/checkThing.d.ts +8 -0
  12. package/lib/chevre/repo/action/checkThing.js +13 -0
  13. package/lib/chevre/repo/action.d.ts +9 -249
  14. package/lib/chevre/repo/action.js +308 -708
  15. package/lib/chevre/repo/aggregateAction.d.ts +102 -0
  16. package/lib/chevre/repo/aggregateAction.js +379 -0
  17. package/lib/chevre/repository.d.ts +27 -0
  18. package/lib/chevre/repository.js +60 -2
  19. package/lib/chevre/service/aggregation/system.d.ts +10 -10
  20. package/lib/chevre/service/aggregation/system.js +9 -9
  21. package/lib/chevre/service/assetTransaction/pay/check.d.ts +5 -4
  22. package/lib/chevre/service/assetTransaction/pay/publishPaymentUrl.d.ts +5 -2
  23. package/lib/chevre/service/assetTransaction/pay/publishPaymentUrl.js +3 -3
  24. package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer.d.ts +14 -3
  25. package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer.js +1 -1
  26. package/lib/chevre/service/offer/eventServiceByCOA/authorize.d.ts +4 -2
  27. package/lib/chevre/service/offer/eventServiceByCOA/authorizeByAcceptAction.js +21 -13
  28. package/lib/chevre/service/offer/eventServiceByCOA/changeOffers.js +17 -8
  29. package/lib/chevre/service/offer/eventServiceByCOA/findAcceptAction.d.ts +2 -2
  30. package/lib/chevre/service/payment/any/findAcceptAction.d.ts +2 -2
  31. package/lib/chevre/service/payment/any/findAcceptAction.js +2 -2
  32. package/lib/chevre/service/payment/any/findCheckAction.d.ts +7 -6
  33. package/lib/chevre/service/payment/any/findCheckAction.js +2 -2
  34. package/lib/chevre/service/payment/any/publishPaymentUrl.d.ts +2 -0
  35. package/lib/chevre/service/payment/movieTicket/checkMovieTicket.d.ts +3 -3
  36. package/lib/chevre/service/payment/movieTicket/checkMovieTicket.js +3 -3
  37. package/lib/chevre/service/task/acceptCOAOffer.js +5 -2
  38. package/lib/chevre/service/task/checkMovieTicket.js +3 -3
  39. package/lib/chevre/service/task/checkResource.js +2 -2
  40. package/lib/chevre/service/task/publishPaymentUrl.js +4 -2
  41. package/package.json +1 -1
@@ -27,6 +27,7 @@ exports.call = call;
27
27
  const factory = __importStar(require("../../factory"));
28
28
  const acceptedPaymentMethod_1 = require("../../repo/acceptedPaymentMethod");
29
29
  const action_1 = require("../../repo/action");
30
+ const acceptPay_1 = require("../../repo/action/acceptPay");
30
31
  const assetTransaction_1 = require("../../repo/assetTransaction");
31
32
  const authorization_1 = require("../../repo/authorization");
32
33
  const event_1 = require("../../repo/event");
@@ -54,7 +55,7 @@ function call(params) {
54
55
  if (!options.executeById) {
55
56
  return;
56
57
  }
57
- const actionRepo = new action_1.ActionRepo(connection);
58
+ const actionRepo = new acceptPay_1.AcceptPayActionRepo(connection);
58
59
  // const transactionProcessRepo = new TransactionProcessRepo(redisClient, { lockExpiresInSeconds: 120 });
59
60
  try {
60
61
  await (0, any_1.publishPaymentUrl)({
@@ -63,7 +64,8 @@ function call(params) {
63
64
  sameAs: { id: params.id }
64
65
  })({
65
66
  acceptedPaymentMethod: new acceptedPaymentMethod_1.AcceptedPaymentMethodRepo(connection),
66
- action: actionRepo,
67
+ action: new action_1.ActionRepo(connection),
68
+ acceptPayAction: actionRepo,
67
69
  assetTransaction: new assetTransaction_1.AssetTransactionRepo(connection),
68
70
  authorization: new authorization_1.AuthorizationRepo(connection),
69
71
  event: new event_1.EventRepo(connection),
package/package.json CHANGED
@@ -99,5 +99,5 @@
99
99
  "postversion": "git push origin --tags",
100
100
  "prepublishOnly": "npm run clean && npm run build"
101
101
  },
102
- "version": "24.0.0-alpha.16"
102
+ "version": "24.0.0-alpha.18"
103
103
  }