@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 +1 -1
- package/dst/Custom Voice Input.js +1 -1
- package/dst/Keypad Input.js +1 -1
- package/dst/Say Message.js +2 -1
- package/dst/Transfer.js +0 -5
- package/dst/Wait For Call.js +2 -11
- package/dst/voice.js +1 -1
- package/package.json +1 -1
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
|
package/dst/Keypad Input.js
CHANGED
package/dst/Say Message.js
CHANGED
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, {
|
package/dst/Wait For Call.js
CHANGED
|
@@ -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
|
-
|
|
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 === '
|
|
420
|
+
if (repromptsList.length && reportingSettingsKey === 'transcriptReprompt') {
|
|
421
421
|
const current = repromptsList[this.rptsIndex - 1];
|
|
422
422
|
sections.push({
|
|
423
423
|
url: current?.fileName,
|