@chevre/domain 24.0.0-alpha.72 → 24.0.0-alpha.74

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 (94) hide show
  1. package/lib/chevre/credentials.js +3 -26
  2. package/lib/chevre/errorHandler.js +48 -71
  3. package/lib/chevre/eventEmitter.js +17 -7
  4. package/lib/chevre/factory.d.ts +1 -2
  5. package/lib/chevre/factory.js +2 -26
  6. package/lib/chevre/index.js +18 -22
  7. package/lib/chevre/repo/action.d.ts +2 -2
  8. package/lib/chevre/repo/aggregateOffer.js +3 -26
  9. package/lib/chevre/repo/assetTransaction.d.ts +20 -20
  10. package/lib/chevre/repo/comment.d.ts +2 -2
  11. package/lib/chevre/repo/creativeWork.d.ts +3 -3
  12. package/lib/chevre/repo/event.d.ts +5 -5
  13. package/lib/chevre/repo/event.js +17 -7
  14. package/lib/chevre/repo/eventSeries.js +1 -24
  15. package/lib/chevre/repo/factory/reservation/createMongoConditions.d.ts +1 -1
  16. package/lib/chevre/repo/identity.d.ts +4 -4
  17. package/lib/chevre/repo/merchantReturnPolicy.d.ts +4 -4
  18. package/lib/chevre/repo/note.d.ts +1 -1
  19. package/lib/chevre/repo/noteAboutOrder.d.ts +1 -1
  20. package/lib/chevre/repo/offerCatalog.js +3 -26
  21. package/lib/chevre/repo/paymentService.d.ts +1 -1
  22. package/lib/chevre/repo/place/busStop.d.ts +1 -1
  23. package/lib/chevre/repo/place/movieTheater.d.ts +3 -3
  24. package/lib/chevre/repo/place/screeningRoom.d.ts +4 -4
  25. package/lib/chevre/repo/priceSpecification.d.ts +8 -8
  26. package/lib/chevre/repo/reservation.d.ts +2 -2
  27. package/lib/chevre/repo/role.d.ts +9 -9
  28. package/lib/chevre/repo/task.d.ts +1 -1
  29. package/lib/chevre/repo/transaction/placeOrder.d.ts +1 -1
  30. package/lib/chevre/repo/transaction/returnOrder.d.ts +1 -1
  31. package/lib/chevre/repo/transaction.d.ts +31 -31
  32. package/lib/chevre/repository.js +103 -126
  33. package/lib/chevre/service/accountTransaction.js +17 -7
  34. package/lib/chevre/service/aggregation.js +17 -7
  35. package/lib/chevre/service/assetTransaction/cancelReservation/start.d.ts +2 -2
  36. package/lib/chevre/service/assetTransaction/moneyTransfer.js +17 -7
  37. package/lib/chevre/service/assetTransaction/pay/check.js +17 -7
  38. package/lib/chevre/service/assetTransaction/pay/publishPaymentUrl.js +17 -7
  39. package/lib/chevre/service/assetTransaction/pay/searchGMOTrade.js +17 -7
  40. package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeAccount.js +17 -7
  41. package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeCreditCard.js +17 -7
  42. package/lib/chevre/service/assetTransaction/pay/start/processAuthorizeMovieTicket.js +17 -7
  43. package/lib/chevre/service/assetTransaction/registerService.js +17 -7
  44. package/lib/chevre/service/assetTransaction/reserve/start/createSubReservations.js +17 -7
  45. package/lib/chevre/service/assetTransaction/reserve/start.js +17 -7
  46. package/lib/chevre/service/assetTransaction.js +17 -7
  47. package/lib/chevre/service/delivery.js +17 -7
  48. package/lib/chevre/service/moneyTransfer.js +17 -7
  49. package/lib/chevre/service/notification/notifyByEmail.d.ts +1 -1
  50. package/lib/chevre/service/notification/notifyByEmail.js +1 -1
  51. package/lib/chevre/service/notification/sendEmailMessage.js +1 -1
  52. package/lib/chevre/service/notification/triggerWebhook.js +22 -12
  53. package/lib/chevre/service/offer/event/authorize/processStartReserve4chevre.js +17 -7
  54. package/lib/chevre/service/offer/eventServiceByCOA/acceptOffer/authorize.js +2 -2
  55. package/lib/chevre/service/offer/product.js +17 -7
  56. package/lib/chevre/service/offer.js +17 -7
  57. package/lib/chevre/service/order/confirmPayTransaction.js +17 -7
  58. package/lib/chevre/service/order/onOrderStatusChanged/onOrderCancelled/factory.d.ts +1 -1
  59. package/lib/chevre/service/order/onOrderStatusChanged/onOrderDeliveredPartially/factory.d.ts +1 -1
  60. package/lib/chevre/service/order/onOrderStatusChanged/onOrderReturned/factory.d.ts +1 -1
  61. package/lib/chevre/service/payment/any/authorize.js +17 -7
  62. package/lib/chevre/service/payment/any/processVoidPayTransaction.js +17 -7
  63. package/lib/chevre/service/payment/any/publishPaymentUrl.js +17 -7
  64. package/lib/chevre/service/payment/creditCard/authorize/handleAuthorizeError.js +1 -1
  65. package/lib/chevre/service/payment/movieTicket/payMovieTicket/processSeatInfoSync.js +1 -1
  66. package/lib/chevre/service/payment/movieTicket/refundMovieTicket/processSeatInfoSync.js +4 -4
  67. package/lib/chevre/service/payment/movieTicket/refundMovieTicket/processSeatInfoSyncCancel.js +1 -1
  68. package/lib/chevre/service/payment/paymentCard.js +17 -7
  69. package/lib/chevre/service/permit.js +17 -7
  70. package/lib/chevre/service/reserve/factory.d.ts +1 -1
  71. package/lib/chevre/service/reserveCOA/cancelReservation.js +1 -1
  72. package/lib/chevre/service/task/aggregateScreeningEvent.js +17 -7
  73. package/lib/chevre/service/task/deletePerson.js +2 -25
  74. package/lib/chevre/service/task/deleteTransaction.js +17 -7
  75. package/lib/chevre/service/task/givePointAward.js +17 -7
  76. package/lib/chevre/service/task/importEventCapacitiesFromCOA.js +17 -7
  77. package/lib/chevre/service/task/importEventsFromCOA.js +17 -7
  78. package/lib/chevre/service/task/importOffersFromCOA.js +17 -7
  79. package/lib/chevre/service/task/moneyTransfer.js +17 -7
  80. package/lib/chevre/service/task/payment/invalidatePaymentUrlByTask.js +17 -7
  81. package/lib/chevre/service/task/payment/payByTask.js +17 -7
  82. package/lib/chevre/service/task/payment/refundByTask.js +17 -7
  83. package/lib/chevre/service/task/payment/voidPaymentByTask.js +17 -7
  84. package/lib/chevre/service/task/returnPayTransaction.js +17 -7
  85. package/lib/chevre/service/task/returnPointAward.js +17 -7
  86. package/lib/chevre/service/task/returnReserveTransaction.js +17 -7
  87. package/lib/chevre/service/task.js +2 -25
  88. package/lib/chevre/service/taskHandler.js +3 -26
  89. package/lib/chevre/service/transaction/returnOrder/preStart/getReturnPolicyByProject.js +5 -5
  90. package/lib/chevre/service/transaction/returnOrder.d.ts +1 -1
  91. package/lib/chevre/service/transaction.js +17 -7
  92. package/lib/chevre/service.js +33 -23
  93. package/lib/index.js +17 -7
  94. package/package.json +10 -13
package/package.json CHANGED
@@ -11,15 +11,15 @@
11
11
  "dependencies": {
12
12
  "@aws-sdk/client-cognito-identity-provider": "3.600.0",
13
13
  "@aws-sdk/credential-providers": "3.600.0",
14
- "@chevre/factory": "7.0.0-alpha.2",
15
- "@cinerino/sdk": "14.0.0-alpha.9",
14
+ "@chevre/factory": "7.0.0",
15
+ "@cinerino/sdk": "14.0.0",
16
16
  "@motionpicture/coa-service": "10.0.0",
17
17
  "@motionpicture/gmo-service": "6.0.0",
18
18
  "@sendgrid/client": "8.1.4",
19
19
  "@surfrock/sdk": "2.0.0",
20
- "debug": "^3.2.7",
20
+ "debug": "4.4.3",
21
21
  "google-libphonenumber": "^3.2.18",
22
- "http-status": "^1.5.0",
22
+ "http-status": "2.1.0",
23
23
  "jsonwebtoken": "9.0.0",
24
24
  "lodash.difference": "^4.5.0",
25
25
  "moment": "^2.29.1",
@@ -29,15 +29,13 @@
29
29
  "uniqid": "5.4.0",
30
30
  "uuid": "^3.4.0"
31
31
  },
32
- "description": "Chevre Domain Library for Node.js",
33
32
  "devDependencies": {
34
33
  "@eslint/js": "9.39.4",
35
34
  "@json2csv/plainjs": "7.0.6",
36
35
  "@sendgrid/helpers": "8.0.0",
37
36
  "@size-limit/preset-big-lib": "12.0.0",
38
- "@types/debug": "0.0.30",
37
+ "@types/debug": "4.1.13",
39
38
  "@types/google-libphonenumber": "^7.4.19",
40
- "@types/http-status": "^0.2.30",
41
39
  "@types/jsonwebtoken": "9.0.1",
42
40
  "@types/lodash.difference": "^4.5.6",
43
41
  "@types/node": "22.19.7",
@@ -53,9 +51,9 @@
53
51
  "mongodb": "6.20.0",
54
52
  "mongoose": "8.23.0",
55
53
  "redis": "4.6.5",
56
- "rimraf": "2.7.1",
54
+ "rimraf": "6.1.3",
57
55
  "size-limit": "12.0.0",
58
- "typescript": "5.6.3",
56
+ "typescript": "5.9.3",
59
57
  "typescript-eslint": "8.55.0",
60
58
  "vitest": "4.0.18"
61
59
  },
@@ -64,10 +62,9 @@
64
62
  "redis": "^4.6.5"
65
63
  },
66
64
  "engines": {
67
- "node": ">=18.0.0",
65
+ "node": ">=22.0.0",
68
66
  "npm": ">=10.0.0"
69
67
  },
70
- "keywords": [],
71
68
  "license": "UNLICENSED",
72
69
  "main": "./lib/index.js",
73
70
  "types": "./lib/index.d.ts",
@@ -83,7 +80,7 @@
83
80
  "build": "tsc",
84
81
  "build:example": "tsc --watch --project tsconfig.example.json --declaration false",
85
82
  "check:all": "npm run clean && npm run build && npm run depcruise && npm run size && npm test",
86
- "clean": "rimraf ./lib \"npm-debug.log*\" ./doc ./coverage ./.nyc_output ./example/dst",
83
+ "clean": "rimraf --glob ./lib \"npm-debug.log*\" ./doc ./coverage ./.nyc_output ./example/dst",
87
84
  "depcruise": "depcruise src",
88
85
  "doc": "echo \"implementing...\" && exit 0",
89
86
  "eslint": "eslint \"src/**/*.ts\"",
@@ -96,5 +93,5 @@
96
93
  "postversion": "git push origin --tags",
97
94
  "prepublishOnly": "npm run clean && npm run build"
98
95
  },
99
- "version": "24.0.0-alpha.72"
96
+ "version": "24.0.0-alpha.74"
100
97
  }