@onereach/step-voice 5.0.3 → 5.0.4-choiceinterpretation.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.
Files changed (2) hide show
  1. package/dst/voice.js +4 -3
  2. package/package.json +1 -1
package/dst/voice.js CHANGED
@@ -165,7 +165,7 @@ class VoiceStep extends step_1.default {
165
165
  url: section.audioUrl,
166
166
  textType,
167
167
  bargeInVoice: section.allowVoiceBargeIn,
168
- bargeInKeypad: section.allowKeypadBargeIn || allowKeypadBargeIn,
168
+ bargeInKeypad: section.allowKeypadBargeIn ?? allowKeypadBargeIn,
169
169
  ...ttsSettings
170
170
  }));
171
171
  }
@@ -176,7 +176,7 @@ class VoiceStep extends step_1.default {
176
176
  repeatMsg: prompt.item.repeat,
177
177
  fileName: prompt.item.audioUrl || '',
178
178
  allowVoiceBargeIn: prompt.item.allowVoiceBargeIn,
179
- allowKeypadBargeIn: prompt.item.allowKeypadBargeIn || allowKeypadBargeIn
179
+ allowKeypadBargeIn: prompt.item.allowKeypadBargeIn ?? allowKeypadBargeIn
180
180
  }));
181
181
  }
182
182
  buildChoices({ choices }) {
@@ -224,8 +224,9 @@ class VoiceStep extends step_1.default {
224
224
  }
225
225
  if (!lodash_1.default.isEmpty(params.phrases)) {
226
226
  const phrases = params.phrases;
227
+ const other = params.other;
227
228
  data.value = phrases[0].text;
228
- data.interpretation = phrases;
229
+ data.interpretation = [...phrases, ...other];
229
230
  }
230
231
  return data;
231
232
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "5.0.3",
3
+ "version": "5.0.4-choiceinterpretation.0",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",