@onereach/step-voice 6.1.26-VOIC1449.8 → 6.1.26

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/dst/Choice.js CHANGED
@@ -102,7 +102,7 @@ class Choice extends voice_1.default {
102
102
  event,
103
103
  speechSections,
104
104
  repromptsList,
105
- reportingSettingsKey
105
+ reportingSettingsKey: this.rptsStarted ? 'transcriptReprompt' : 'transcriptPrompt'
106
106
  });
107
107
  switch (event.params.type) {
108
108
  case 'digit':
@@ -93,7 +93,7 @@ class CustomVoiceInput extends voice_1.default {
93
93
  event,
94
94
  speechSections,
95
95
  repromptsList,
96
- reportingSettingsKey
96
+ reportingSettingsKey: this.rptsStarted ? 'transcriptReprompt' : 'transcriptPrompt'
97
97
  });
98
98
  switch (event.params.type) {
99
99
  // digit recognition removed
@@ -75,7 +75,7 @@ class KeypadInput extends voice_1.default {
75
75
  event,
76
76
  speechSections,
77
77
  repromptsList,
78
- reportingSettingsKey
78
+ reportingSettingsKey: this.rptsStarted ? 'transcriptReprompt' : 'transcriptPrompt'
79
79
  });
80
80
  switch (event.params.type) {
81
81
  case 'digits': {
@@ -22,7 +22,8 @@ class SayMessage extends voice_1.default {
22
22
  await this.handleInterruption({
23
23
  call,
24
24
  event,
25
- speechSections
25
+ speechSections,
26
+ reportingSettingsKey: 'transcript'
26
27
  });
27
28
  switch (event.params.type) {
28
29
  case 'hangup':
package/dst/Transfer.js CHANGED
@@ -77,11 +77,6 @@ class Transfer extends voice_1.default {
77
77
  timeout
78
78
  }
79
79
  };
80
- console.log('transfer otherwise', {
81
- data: { ...this.data },
82
- headers,
83
- command
84
- });
85
80
  const muteAfterTransfer = !!muteRecording;
86
81
  await this.pauseRecording(call, command, { muteStep: muteAfterTransfer, muteBot: muteAfterTransfer, muteUser: muteAfterTransfer });
87
82
  await this.transcript(call, {
@@ -23,8 +23,6 @@ class WaitForCall extends voice_1.default {
23
23
  }
24
24
  async onCall(event) {
25
25
  const { asr, tts, endOfInputTimeout } = this.data;
26
- this.log.debug('ON_CALL_X', event);
27
- console.log('ON_CALL_X', { event });
28
26
  const call = {
29
27
  headers: event.params.headers,
30
28
  // @ts-expect-error
@@ -38,20 +36,13 @@ class WaitForCall extends voice_1.default {
38
36
  delete call.from;
39
37
  delete call.to;
40
38
  const presetTime = (Number(endOfInputTimeout) || 0) * 60 * 1000;
41
- const { sessionId: previousSessionId = '', beginningSessionId = '', } = event?.reporting ?? {};
42
39
  await this.session.start({
43
40
  timeout: presetTime || defaultSessionTimeout,
44
41
  reporting: {
45
42
  settingsKey: 'session',
46
43
  startedBy: 'Visitor',
47
- sessionType: 'Phone',
48
- previousSessionId,
49
- beginningSessionId
50
- },
51
- reportingSessions: [{
52
- previousSessionId,
53
- beginningSessionId
54
- }]
44
+ sessionType: 'Phone'
45
+ }
55
46
  });
56
47
  await this.startConversation(call);
57
48
  await this.transcript(call, {
package/dst/voice.js CHANGED
@@ -417,7 +417,7 @@ class VoiceStep extends step_1.default {
417
417
  if (!interruptionMetadata)
418
418
  return;
419
419
  const sections = [];
420
- if (repromptsList.length && reportingSettingsKey === 'transcriptRepromptResponse') {
420
+ if (repromptsList.length && reportingSettingsKey === 'transcriptReprompt') {
421
421
  const current = repromptsList[this.rptsIndex - 1];
422
422
  sections.push({
423
423
  url: current?.fileName,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "6.1.26-VOIC1449.8",
3
+ "version": "6.1.26",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",