@onereach/step-voice 5.0.9-fixsubflow.13 → 5.0.9-fixsubflow.15
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/Cancel.js +1 -1
- package/dst/Choice.js +1 -1
- package/dst/Conference Dial.js +1 -1
- package/dst/Custom Voice Input.js +1 -1
- package/dst/Global Command.js +3 -3
- package/dst/Hangup.js +1 -1
- package/dst/Join Conference.js +1 -1
- package/dst/Keypad Input.js +1 -1
- package/dst/Kick From Conference.js +1 -1
- package/dst/Say Message.js +1 -1
- package/dst/Send DTMF.js +1 -1
- package/dst/Transfer.js +1 -1
- package/dst/Voice Recording.js +1 -1
- package/package.json +1 -1
package/dst/Cancel.js
CHANGED
|
@@ -11,7 +11,7 @@ class VoiceCancel extends voice_1.default {
|
|
|
11
11
|
// return
|
|
12
12
|
// }
|
|
13
13
|
const call = await this.fetchData();
|
|
14
|
-
this.triggers.local(call.id
|
|
14
|
+
this.triggers.local(`in/voice/${call.id}`, async (event) => {
|
|
15
15
|
switch (event.params.type) {
|
|
16
16
|
case 'hangup':
|
|
17
17
|
await this.handleHangup(call);
|
package/dst/Choice.js
CHANGED
|
@@ -93,7 +93,7 @@ class Choice extends voice_1.default {
|
|
|
93
93
|
}
|
|
94
94
|
};
|
|
95
95
|
// There's a specific need to do so. There might be ${variable} section
|
|
96
|
-
this.triggers.local(call.id
|
|
96
|
+
this.triggers.local(`in/voice/${call.id}`, async (event) => {
|
|
97
97
|
const reportingSettingsKey = this.rptsStarted ? 'transcriptRepromptResponse' : 'transcriptResponse';
|
|
98
98
|
switch (event.params.type) {
|
|
99
99
|
case 'digit':
|
package/dst/Conference Dial.js
CHANGED
|
@@ -7,7 +7,7 @@ class ConferenceDial extends voice_1.default {
|
|
|
7
7
|
async runStep() {
|
|
8
8
|
const call = await this.fetchData();
|
|
9
9
|
this.triggers
|
|
10
|
-
.local(call.id
|
|
10
|
+
.local(`in/voice/${call.id}`, async (event) => {
|
|
11
11
|
switch (event.params.type) {
|
|
12
12
|
case 'hangup':
|
|
13
13
|
await this.handleHangup(call);
|
|
@@ -84,7 +84,7 @@ class CustomVoiceInput extends voice_1.default {
|
|
|
84
84
|
}
|
|
85
85
|
};
|
|
86
86
|
// There's a specific need to do so. There might be ${variable} section
|
|
87
|
-
this.triggers.local(call.id
|
|
87
|
+
this.triggers.local(`in/voice/${call.id}`, async (event) => {
|
|
88
88
|
const reportingSettingsKey = this.rptsStarted ? 'transcriptRepromptResponse' : 'transcriptResponse';
|
|
89
89
|
switch (event.params.type) {
|
|
90
90
|
// digit recognition removed
|
package/dst/Global Command.js
CHANGED
|
@@ -66,12 +66,12 @@ class GlobalCommand extends voice_1.default {
|
|
|
66
66
|
this.triggers.otherwise(async () => {
|
|
67
67
|
await this.initGrammar();
|
|
68
68
|
});
|
|
69
|
-
this.triggers.hook({ name: '
|
|
69
|
+
this.triggers.hook({ name: 'waitEnd', thread: 'main', sync: true }, async () => {
|
|
70
70
|
await this.sendCommands(call, [{ name: 'grammar', params: {} }]);
|
|
71
|
-
if (
|
|
71
|
+
if (this.thread.background)
|
|
72
72
|
this.end();
|
|
73
73
|
});
|
|
74
|
-
this.triggers.local(call.id
|
|
74
|
+
this.triggers.local(`in/voice/${call.id}`, async (event) => {
|
|
75
75
|
event.processed = undefined;
|
|
76
76
|
switch (event.params.type) {
|
|
77
77
|
case 'hangup': {
|
package/dst/Hangup.js
CHANGED
|
@@ -5,7 +5,7 @@ const voice_1 = tslib_1.__importDefault(require("./voice"));
|
|
|
5
5
|
class Hangup extends voice_1.default {
|
|
6
6
|
async runStep() {
|
|
7
7
|
const call = await this.fetchData();
|
|
8
|
-
this.triggers.local(call.id
|
|
8
|
+
this.triggers.local(`in/voice/${call.id}`, async (event) => {
|
|
9
9
|
switch (event.params.type) {
|
|
10
10
|
case 'hangup':
|
|
11
11
|
await this.handleHangup(call);
|
package/dst/Join Conference.js
CHANGED
|
@@ -7,7 +7,7 @@ class JoinConference extends voice_1.default {
|
|
|
7
7
|
async runStep() {
|
|
8
8
|
const call = await this.fetchData();
|
|
9
9
|
const { conferenceName, stayInConference } = this.data;
|
|
10
|
-
this.triggers.local(call.id
|
|
10
|
+
this.triggers.local(`in/voice/${call.id}`, async (event) => {
|
|
11
11
|
switch (event.params.type) {
|
|
12
12
|
case 'hangup':
|
|
13
13
|
await this.handleHangup(call);
|
package/dst/Keypad Input.js
CHANGED
|
@@ -66,7 +66,7 @@ class KeypadInput extends voice_1.default {
|
|
|
66
66
|
}
|
|
67
67
|
const repromptsList = this.buildReprompts({ prompts: this.data.prompts, allowKeypadBargeIn: keypadBargeIn });
|
|
68
68
|
const speechSections = this.buildSections({ sections: this.data.audio, textType, ttsSettings, allowKeypadBargeIn: keypadBargeIn });
|
|
69
|
-
this.triggers.local(call.id
|
|
69
|
+
this.triggers.local(`in/voice/${call.id}`, async (event) => {
|
|
70
70
|
const reportingSettingsKey = this.rptsStarted ? 'transcriptRepromptResponse' : 'transcriptResponse';
|
|
71
71
|
switch (event.params.type) {
|
|
72
72
|
case 'digits': {
|
|
@@ -7,7 +7,7 @@ class KickFromConference extends voice_1.default {
|
|
|
7
7
|
async runStep() {
|
|
8
8
|
const call = await this.fetchData();
|
|
9
9
|
const { room, user } = this.data;
|
|
10
|
-
this.triggers.local(call.id
|
|
10
|
+
this.triggers.local(`in/voice/${call.id}`, async (event) => {
|
|
11
11
|
switch (event.params.type) {
|
|
12
12
|
case 'hangup':
|
|
13
13
|
await this.handleHangup(call);
|
package/dst/Say Message.js
CHANGED
|
@@ -8,7 +8,7 @@ class SayMessage extends voice_1.default {
|
|
|
8
8
|
async runStep() {
|
|
9
9
|
const { audio, textType, tts, sensitiveData } = this.data;
|
|
10
10
|
const call = await this.fetchData();
|
|
11
|
-
this.triggers.local(call.id
|
|
11
|
+
this.triggers.local(`in/voice/${call.id}`, async (event) => {
|
|
12
12
|
switch (event.params.type) {
|
|
13
13
|
case 'hangup':
|
|
14
14
|
await this.handleHangup(call);
|
package/dst/Send DTMF.js
CHANGED
|
@@ -46,7 +46,7 @@ class SendDTMF extends voice_1.default {
|
|
|
46
46
|
afterDelay: +afterDelay
|
|
47
47
|
}
|
|
48
48
|
};
|
|
49
|
-
this.triggers.local(call.id
|
|
49
|
+
this.triggers.local(`in/voice/${call.id}`, async (event) => {
|
|
50
50
|
// if (channel.callback.id)
|
|
51
51
|
// await this.mergeFields[_conversation].set(
|
|
52
52
|
// this.takeCallback(),
|
package/dst/Transfer.js
CHANGED
|
@@ -6,7 +6,7 @@ const voice_1 = tslib_1.__importDefault(require("./voice"));
|
|
|
6
6
|
class Transfer extends voice_1.default {
|
|
7
7
|
async runStep() {
|
|
8
8
|
const call = await this.fetchData();
|
|
9
|
-
this.triggers.local(call.id
|
|
9
|
+
this.triggers.local(`in/voice/${call.id}`, async (event) => {
|
|
10
10
|
switch (event.params.type) {
|
|
11
11
|
case 'bridge': {
|
|
12
12
|
await this.transcript(call, {
|
package/dst/Voice Recording.js
CHANGED
|
@@ -23,7 +23,7 @@ class Recording extends voice_1.default {
|
|
|
23
23
|
sections
|
|
24
24
|
}
|
|
25
25
|
};
|
|
26
|
-
this.triggers.local(call.id
|
|
26
|
+
this.triggers.local(`in/voice/${call.id}`, async (event) => {
|
|
27
27
|
const url = event.params.mediaPath;
|
|
28
28
|
switch (event.params.type) {
|
|
29
29
|
case 'hangup':
|