@onereach/step-voice 4.0.45 → 4.0.46

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.
@@ -25,11 +25,13 @@ class WaitForCall extends voice_1.default {
25
25
  const { asr, tts, endOfInputTimeout } = this.data;
26
26
  const channel = {
27
27
  headers: event.params.headers,
28
+ // @ts-ignore
29
+ botNumber: event.params.channel.to ?? 'unknown',
30
+ // @ts-ignore
31
+ endUserNumber: event.params.channel?.from ?? 'unknown',
28
32
  ...event.params.channel,
29
33
  asr: asr.getSettings(),
30
34
  tts: tts.getVoice(),
31
- botNumber: event.params.channel.to ?? 'unknown',
32
- endUserNumber: event.params.channel?.from ?? 'unknown'
33
35
  };
34
36
  delete channel.from;
35
37
  delete channel.to;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "4.0.45",
3
+ "version": "4.0.46",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",