@onereach/step-voice 7.0.0-VOIC1406.7 → 7.0.1-VOIC1419.0

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
@@ -273,4 +273,3 @@ class Choice extends voice_1.default {
273
273
  }
274
274
  }
275
275
  exports.default = Choice;
276
- // --------------------------------------------------------------------
@@ -8,6 +8,7 @@ interface INPUT {
8
8
  recordDurationSeconds: string;
9
9
  isTerminateOnSilence: boolean;
10
10
  silenceHits: string;
11
+ disableDefaultBeepSound: boolean;
11
12
  }
12
13
  interface EVENT extends VoiceEvent {
13
14
  mediaPath: string;
@@ -9,12 +9,13 @@ class Recording extends voice_1.default {
9
9
  const { tts, sensitiveData, textType } = this.data;
10
10
  const ttsSettings = tts.getSettings(call.tts);
11
11
  const sections = this.buildSections({ sections: this.data.audio, textType, ttsSettings });
12
- sections.push({
13
- // TODO make this configurable?
14
- url: 'https://bot-service-recordings.s3.us-west-2.amazonaws.com/beep_sound.wav',
15
- bargeInVoice: false,
16
- bargeInKeypad: false
17
- });
12
+ if (!this.data?.disableDefaultBeepSound) {
13
+ sections.push({
14
+ url: 'https://bot-service-recordings.s3.us-west-2.amazonaws.com/beep_sound.wav',
15
+ bargeInVoice: false,
16
+ bargeInKeypad: false
17
+ });
18
+ }
18
19
  const command = {
19
20
  name: 'start-record',
20
21
  params: {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "7.0.0-VOIC1406.7",
3
+ "version": "7.0.1-VOIC1419.0",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",
@@ -56,7 +56,7 @@
56
56
  "pub": "./scripts/publish.sh",
57
57
  "pub-prerelease": "./scripts/publish-prerelease.sh",
58
58
  "update-module-versions": "./scripts/update-module-versions.sh",
59
- "patch-steps": "./scripts/update-steps-versions patch",
59
+ "patch-steps": "./scripts/update-steps-versions.sh patch",
60
60
  "test": "jest --forceExit"
61
61
  },
62
62
  "repository": {