wingbot 3.46.0-alpha.4 → 3.46.0-alpha.5

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "wingbot",
3
- "version": "3.46.0-alpha.4",
3
+ "version": "3.46.0-alpha.5",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -32,6 +32,7 @@ const {
32
32
  * @prop {string} [label]
33
33
  * @prop {number} [value]
34
34
  * @prop {string} [lang]
35
+ * @prop {number} [sessionStart]
35
36
  */
36
37
 
37
38
  /**
@@ -51,7 +52,6 @@ const {
51
52
  * @prop {boolean} withUser
52
53
  * @prop {string} [userId]
53
54
  * @prop {number} [feedback]
54
- * @prop {number} sessionStart
55
55
  * @prop {number} sessionDuration
56
56
  * @prop {string} [winnerAction]
57
57
  * @prop {string} [winnerIntent]
@@ -344,7 +344,7 @@ function onInteractionHandler (
344
344
  sessionStart,
345
345
  sessionDuration: sessionTs - sessionStart,
346
346
  feedback,
347
- skill: webalize(skill),
347
+ skill: (skill && webalize(skill)) || noneAction,
348
348
  snapshot,
349
349
  botId,
350
350
  winnerAction,
@@ -375,6 +375,8 @@ function onInteractionHandler (
375
375
  skill,
376
376
  lang,
377
377
  cd1: req.state.lang,
378
+ isGoto: false,
379
+ sessionStart,
378
380
  ...(hasExtendedEvents ? {} : actionMeta)
379
381
  });
380
382
 
@@ -393,6 +395,7 @@ function onInteractionHandler (
393
395
  prevAction,
394
396
  skill,
395
397
  isGoto: true,
398
+ sessionStart,
396
399
  ...langsExtension
397
400
  };
398
401
 
@@ -411,6 +414,7 @@ function onInteractionHandler (
411
414
  action: eventAction,
412
415
  label,
413
416
  value: eVal,
417
+ sessionStart,
414
418
  ...langsExtension
415
419
  }))
416
420
  );
@@ -427,6 +431,7 @@ function onInteractionHandler (
427
431
  action,
428
432
  label: text,
429
433
  value: score >= ai.confidence ? 0 : 1,
434
+ sessionStart,
430
435
  ...langsExtension
431
436
  });
432
437
  }
@@ -475,6 +480,7 @@ function onInteractionHandler (
475
480
  action,
476
481
  label,
477
482
  value,
483
+ sessionStart,
478
484
  ...langsExtension
479
485
  });
480
486
  }