app-tutor-ai-consumer 1.40.1 → 1.40.2

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.
package/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## [1.40.2](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.40.1...v1.40.2) (2025-11-24)
2
+
3
+ ### Bug Fixes
4
+
5
+ - undefined fields on message events ([f3d1bdf](https://github.com/Hotmart-Org/app-tutor-ai-consumer/commit/f3d1bdfad1efc55ee3131a0588b95260638d850a))
6
+
1
7
  ## [1.40.1](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.40.0...v1.40.1) (2025-11-18)
2
8
 
3
9
  # [1.40.0](https://github.com/Hotmart-Org/app-tutor-ai-consumer/compare/v1.39.1...v1.40.0) (2025-11-17)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "app-tutor-ai-consumer",
3
- "version": "1.40.1",
3
+ "version": "1.40.2",
4
4
  "main": "index.js",
5
5
  "scripts": {
6
6
  "dev": "rspack serve --env=development --config config/rspack/rspack.config.js",
@@ -137,7 +137,7 @@ function useSendTextMessage() {
137
137
  onSettled(data, error) {
138
138
  DataHubService.sendEvent({
139
139
  schema: new TrySendMessageSchema({
140
- messageId: data?.id,
140
+ messageId: data?.id ?? '',
141
141
  statusCode: error ? HttpCodes.BAD_REQUEST : HttpCodes.OK,
142
142
  result: error ? 'FAILURE' : 'SUCCESSFUL',
143
143
  failureDescription: error?.message,
@@ -69,8 +69,8 @@ const useSubscribeMessageReceivedEvent = () => {
69
69
  if (!isMine) {
70
70
  DataHubService.sendEvent({
71
71
  schema: new ViewAnswerMessageSchema({
72
- correlationId: data?.metadata?.correlationId,
73
- messageId: data?.id,
72
+ correlationId: data?.metadata?.correlationId ?? '',
73
+ messageId: data?.id ?? '',
74
74
  componentSource: isAgentMode
75
75
  ? ComponentSource.PRODUCT_AGENT
76
76
  : ComponentSource.HOTMART_TUTOR,