wingbot 3.46.0-alpha.8 → 3.46.0-alpha.9

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.8",
3
+ "version": "3.46.0-alpha.9",
4
4
  "description": "Enterprise Messaging Bot Conversation Engine",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -32,7 +32,6 @@ const {
32
32
  * @prop {string} [label]
33
33
  * @prop {number} [value]
34
34
  * @prop {string} [lang]
35
- * @prop {number} [sessionStart]
36
35
  */
37
36
 
38
37
  /**
@@ -53,7 +52,6 @@ const {
53
52
  * @prop {boolean} withUser
54
53
  * @prop {string} [userId]
55
54
  * @prop {number} [feedback]
56
- * @prop {number} sessionDuration
57
55
  * @prop {string} [winnerAction]
58
56
  * @prop {string} [winnerIntent]
59
57
  * @prop {string[]|string} [winnerEntities]
@@ -64,8 +62,6 @@ const {
64
62
  * @prop {string[]|string} [entities]
65
63
  * @prop {string[]|string} allActions
66
64
  * @prop {boolean} nonInteractive
67
- * @prop {string} [snapshot]
68
- * @prop {string} [botId]
69
65
  *
70
66
  * @typedef {Event & ConversationEventExtension} ConversationEvent
71
67
  */
@@ -75,7 +71,6 @@ const {
75
71
  * @prop {string} [lastAction]
76
72
  * @prop {string} [prevAction]
77
73
  * @prop {string} [skill]
78
- * @prop {number} sessionDuration
79
74
  * @prop {string[]|string} allActions
80
75
  * @prop {boolean} nonInteractive
81
76
  * @prop {boolean} isGoto
@@ -297,7 +292,8 @@ function onInteractionHandler (
297
292
  didHandover,
298
293
  feedback,
299
294
  timeZone,
300
- sessionStart
295
+ sessionStart,
296
+ sessionDuration: sessionTs - sessionStart
301
297
  };
302
298
 
303
299
  let sessionPromise;
@@ -380,12 +376,8 @@ function onInteractionHandler (
380
376
  isPostback,
381
377
  didHandover,
382
378
  withUser,
383
- sessionStart,
384
- sessionDuration: sessionTs - sessionStart,
385
379
  feedback,
386
380
  skill: useSkill,
387
- snapshot,
388
- botId,
389
381
  winnerAction,
390
382
  winnerIntent,
391
383
  winnerEntities: asArray(winnerEntities.map((e) => e.entity)),
@@ -414,7 +406,6 @@ function onInteractionHandler (
414
406
  prevAction: lastAction,
415
407
  skill: useSkill,
416
408
  isGoto: false,
417
- sessionDuration: timestamp - sessionStart,
418
409
  withUser,
419
410
  ...langsExtension,
420
411
  ...(hasExtendedEvents ? {} : actionMeta)
@@ -435,7 +426,6 @@ function onInteractionHandler (
435
426
  prevAction,
436
427
  skill: useSkill,
437
428
  isGoto: true,
438
- sessionDuration: timestamp - sessionStart,
439
429
  ...langsExtension
440
430
  };
441
431