@chevre/domain 26.0.0-alpha.27 → 26.0.0-alpha.29

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 (48) hide show
  1. package/lib/chevre/repo/action.d.ts +3 -19
  2. package/lib/chevre/repo/action.js +0 -298
  3. package/lib/chevre/repo/adminAssetTransaction.d.ts +0 -6
  4. package/lib/chevre/repo/adminAssetTransaction.js +0 -13
  5. package/lib/chevre/repo/adminTask.d.ts +0 -8
  6. package/lib/chevre/repo/adminTask.js +0 -16
  7. package/lib/chevre/repo/aggregation.d.ts +0 -8
  8. package/lib/chevre/repo/aggregation.js +0 -10
  9. package/lib/chevre/repo/authorization.d.ts +0 -6
  10. package/lib/chevre/repo/authorization.js +0 -12
  11. package/lib/chevre/repo/message.d.ts +0 -7
  12. package/lib/chevre/repo/message.js +0 -38
  13. package/lib/chevre/repo/mongoose/schemas/action.d.ts +1 -1
  14. package/lib/chevre/repo/mongoose/schemas/action.js +1 -1
  15. package/lib/chevre/repo/mongoose/schemas/assetTransaction.js +85 -76
  16. package/lib/chevre/repo/mongoose/schemas/updateAction.d.ts +12 -0
  17. package/lib/chevre/repo/mongoose/schemas/updateAction.js +107 -0
  18. package/lib/chevre/repo/ticket.d.ts +0 -6
  19. package/lib/chevre/repo/ticket.js +0 -11
  20. package/lib/chevre/repo/updateAction.d.ts +56 -0
  21. package/lib/chevre/repo/updateAction.js +173 -0
  22. package/lib/chevre/repository.d.ts +5 -0
  23. package/lib/chevre/repository.js +12 -1
  24. package/lib/chevre/service/event/processUpdateMovieTheater.d.ts +2 -2
  25. package/lib/chevre/service/event/processUpdateMovieTheater.js +3 -3
  26. package/lib/chevre/service/event.d.ts +2 -2
  27. package/lib/chevre/service/event.js +3 -3
  28. package/lib/chevre/service/task/deleteTransaction.js +4 -35
  29. package/lib/chevre/service/task/importEventsFromCOA.js +2 -2
  30. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByAggregateOffer.d.ts +2 -2
  31. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByAggregateOffer.js +4 -4
  32. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByEventSeries.d.ts +2 -2
  33. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByEventSeries.js +4 -4
  34. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByMovieTheater.d.ts +2 -2
  35. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByMovieTheater.js +4 -4
  36. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByOfferCatalog.d.ts +2 -2
  37. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByOfferCatalog.js +4 -4
  38. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByProduct.d.ts +2 -2
  39. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByProduct.js +4 -4
  40. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByRoom.d.ts +2 -2
  41. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesByRoom.js +4 -4
  42. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesBySeller.d.ts +2 -2
  43. package/lib/chevre/service/task/onResourceDeleted/deleteResourcesBySeller.js +4 -4
  44. package/lib/chevre/service/task/onResourceDeleted.js +2 -3
  45. package/lib/chevre/service/task/syncResourcesFromCOA.js +26 -18
  46. package/lib/chevre/service/transaction/deleteTransaction.d.ts +2 -0
  47. package/lib/chevre/service/transaction/deleteTransaction.js +3 -3
  48. package/package.json +2 -2
@@ -71,7 +71,7 @@ function deleteTransactionById(params) {
71
71
  let deletedReservationNumbers = [];
72
72
  let deleteActionResult;
73
73
  let deleteOrderResult;
74
- const action = await repos.action.start(actionAttributes);
74
+ const action = await repos.updateAction.startUpdateAction(actionAttributes);
75
75
  try {
76
76
  const transactionTypeOf = transaction.typeOf;
77
77
  switch (transactionTypeOf) {
@@ -146,7 +146,7 @@ function deleteTransactionById(params) {
146
146
  }
147
147
  catch (error) {
148
148
  try {
149
- await repos.action.giveUp({ typeOf: action.typeOf, id: action.id, error });
149
+ await repos.updateAction.giveUpUpdateAction({ typeOf: action.typeOf, id: action.id, error });
150
150
  }
151
151
  catch (__) {
152
152
  // 失敗したら仕方ない
@@ -166,6 +166,6 @@ function deleteTransactionById(params) {
166
166
  deleteOrderResult // 2026-07-10~
167
167
  // ...(deleteMessagessResult !== undefined) ? { deleteMessagessResult } : undefined
168
168
  };
169
- await repos.action.completeWithVoid({ typeOf: action.typeOf, id: action.id, result: actionResult });
169
+ await repos.updateAction.completeUpdateAction({ typeOf: action.typeOf, id: action.id, result: actionResult });
170
170
  };
171
171
  }
package/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "dependencies": {
12
12
  "@aws-sdk/client-cognito-identity-provider": "3.1090.0",
13
13
  "@aws-sdk/credential-providers": "3.1090.0",
14
- "@chevre/factory": "10.3.0-alpha.4",
14
+ "@chevre/factory": "10.3.0-alpha.5",
15
15
  "@motionpicture/coa-service": "10.0.0",
16
16
  "@motionpicture/gmo-service": "6.1.0-alpha.0",
17
17
  "@sendgrid/client": "8.1.4",
@@ -88,5 +88,5 @@
88
88
  "postversion": "git push origin --tags",
89
89
  "prepublishOnly": "npm run clean && npm run build"
90
90
  },
91
- "version": "26.0.0-alpha.27"
91
+ "version": "26.0.0-alpha.29"
92
92
  }