@onereach/step-voice 4.0.1 → 4.0.4
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.d.ts +4 -4
- package/dst/Cancel.js +1 -1
- package/dst/Choice.d.ts +29 -4
- package/dst/Choice.js +24 -23
- package/dst/Conference Dial.d.ts +8 -3
- package/dst/Conference Dial.js +2 -2
- package/dst/Global Command.d.ts +35 -12
- package/dst/Global Command.js +34 -36
- package/dst/Hangup.d.ts +2 -3
- package/dst/Hangup.js +1 -1
- package/dst/Idle Music.d.ts +11 -4
- package/dst/Idle Music.js +16 -16
- package/dst/Initiate Call.d.ts +2 -2
- package/dst/Initiate Call.js +21 -41
- package/dst/Join Conference.d.ts +8 -4
- package/dst/Join Conference.js +5 -6
- package/dst/Keypad Input.d.ts +34 -4
- package/dst/Keypad Input.js +14 -13
- package/dst/Kick From Conference.d.ts +8 -4
- package/dst/Kick From Conference.js +5 -6
- package/dst/Pause.d.ts +4 -4
- package/dst/Pause.js +1 -1
- package/dst/Pickup.d.ts +5 -4
- package/dst/Pickup.js +1 -1
- package/dst/Resume.d.ts +4 -4
- package/dst/Resume.js +1 -1
- package/dst/Say Message.d.ts +16 -3
- package/dst/Say Message.js +2 -2
- package/dst/Transfer.d.ts +18 -4
- package/dst/Transfer.js +3 -4
- package/dst/Voice Recording.d.ts +20 -4
- package/dst/Voice Recording.js +17 -16
- package/dst/Wait For Call.d.ts +1 -1
- package/dst/voice.d.ts +23 -15
- package/dst/voice.js +4 -2
- package/package.json +5 -4
package/dst/voice.js
CHANGED
|
@@ -17,7 +17,9 @@ class VoiceStep extends step_1.default {
|
|
|
17
17
|
}
|
|
18
18
|
async onCancel() {
|
|
19
19
|
await super.onCancel();
|
|
20
|
-
this.
|
|
20
|
+
if (this.data.handleCancel === true) {
|
|
21
|
+
this.exitStep('cancel');
|
|
22
|
+
}
|
|
21
23
|
}
|
|
22
24
|
async sendCommands({ id, type, callback }, commands) {
|
|
23
25
|
if (lodash_1.default.isEmpty(commands))
|
|
@@ -105,7 +107,7 @@ class VoiceStep extends step_1.default {
|
|
|
105
107
|
await this.updateData();
|
|
106
108
|
return eventId;
|
|
107
109
|
}
|
|
108
|
-
throwError(error) {
|
|
110
|
+
throwError(error = new Error('unknown')) {
|
|
109
111
|
throw new VoiceStepError(error.message, null, { name: error.name });
|
|
110
112
|
}
|
|
111
113
|
async handleHangup(channel) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@onereach/step-voice",
|
|
3
|
-
"version": "4.0.
|
|
3
|
+
"version": "4.0.4",
|
|
4
4
|
"author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
|
|
5
5
|
"contributors": [
|
|
6
6
|
"Roman Zolotarov",
|
|
@@ -13,19 +13,20 @@
|
|
|
13
13
|
"npm": ">= 6.0.0"
|
|
14
14
|
},
|
|
15
15
|
"dependencies": {
|
|
16
|
-
"@onereach/step-conversation": "^1.0.
|
|
16
|
+
"@onereach/step-conversation": "^1.0.32",
|
|
17
17
|
"lodash": "^4.17.21",
|
|
18
18
|
"uuid": "^8.3.2"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@onereach/flow-sdk": "^3.0.
|
|
21
|
+
"@onereach/flow-sdk": "^3.0.12",
|
|
22
22
|
"@swc/cli": "^0.1.57",
|
|
23
23
|
"@swc/core": "^1.2.196",
|
|
24
24
|
"@swc/jest": "^0.2.21",
|
|
25
25
|
"@types/jest": "^28.1.0",
|
|
26
26
|
"@types/lodash": "^4.14.182",
|
|
27
|
+
"@types/timestring": "^6.0.2",
|
|
27
28
|
"@types/uuid": "^8.3.4",
|
|
28
|
-
"aws-sdk": "^2.
|
|
29
|
+
"aws-sdk": "^2.1148.0",
|
|
29
30
|
"babel-runtime": "^6.26.0",
|
|
30
31
|
"docdash": "^1.2.0",
|
|
31
32
|
"husky": "^8.0.1",
|