@onereach/step-voice 5.0.9-fixsubflow.11 → 5.0.9-fixsubflow.12
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 +1 -1
- package/dst/Hangup.js +1 -1
- package/dst/Initiate Call.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(
|
|
14
|
+
this.triggers.local(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(
|
|
96
|
+
this.triggers.local(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(
|
|
10
|
+
.local(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(
|
|
87
|
+
this.triggers.local(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
|
@@ -71,7 +71,7 @@ class GlobalCommand extends voice_1.default {
|
|
|
71
71
|
if (!this.thread.ending)
|
|
72
72
|
this.end();
|
|
73
73
|
});
|
|
74
|
-
this.triggers.local(
|
|
74
|
+
this.triggers.local(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(
|
|
8
|
+
this.triggers.local(call.id, async (event) => {
|
|
9
9
|
switch (event.params.type) {
|
|
10
10
|
case 'hangup':
|
|
11
11
|
await this.handleHangup(call);
|
package/dst/Initiate Call.js
CHANGED
|
@@ -49,7 +49,7 @@ class InitiateCall extends voice_1.default {
|
|
|
49
49
|
async waitForCall() {
|
|
50
50
|
const { asr, tts, from: botNumber, endUserNumber, sipHost, sipUser, sipPassword, timeout, headers, enableSpoofCallerId, spoofCallerId, isAMD, otherCallRef, otherCallRefThread } = this.data;
|
|
51
51
|
const call = await this.fetchData();
|
|
52
|
-
this.triggers.
|
|
52
|
+
this.triggers.once(`in/voice/${call.id}/event`, async (event) => {
|
|
53
53
|
switch (event.params.type) {
|
|
54
54
|
case 'is_flow_ready': {
|
|
55
55
|
// TODO this.exitFlow({is_ready : true}) should be enough
|
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(
|
|
10
|
+
this.triggers.local(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(
|
|
69
|
+
this.triggers.local(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(
|
|
10
|
+
this.triggers.local(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(
|
|
11
|
+
this.triggers.local(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(
|
|
49
|
+
this.triggers.local(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(
|
|
9
|
+
this.triggers.local(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(
|
|
26
|
+
this.triggers.local(call.id, async (event) => {
|
|
27
27
|
const url = event.params.mediaPath;
|
|
28
28
|
switch (event.params.type) {
|
|
29
29
|
case 'hangup':
|