@onereach/step-voice 6.1.8 → 6.1.9

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.
@@ -2,6 +2,8 @@ import VoiceStep, { TODO, VoiceEvent } from './voice';
2
2
  interface INPUT {
3
3
  conferenceName: string;
4
4
  stayInConference: boolean;
5
+ volumeIn?: number;
6
+ volumeOut?: number;
5
7
  }
6
8
  export default class JoinConference extends VoiceStep<INPUT, TODO, VoiceEvent & {
7
9
  user: string;
@@ -6,7 +6,7 @@ const voice_1 = tslib_1.__importDefault(require("./voice"));
6
6
  class JoinConference extends voice_1.default {
7
7
  async runStep() {
8
8
  const call = await this.fetchData();
9
- const { conferenceName, stayInConference } = this.data;
9
+ const { conferenceName, stayInConference, volumeIn, volumeOut } = this.data;
10
10
  this.triggers.local(`in/voice/${call.id}`, async (event) => {
11
11
  switch (event.params.type) {
12
12
  case 'hangup':
@@ -50,7 +50,9 @@ class JoinConference extends voice_1.default {
50
50
  params: {
51
51
  room: conferenceName,
52
52
  flags: [call.vv >= 3 ? 'mandatory_member_endconf' : 'endconf'],
53
- stayInConference
53
+ stayInConference,
54
+ volumeIn,
55
+ volumeOut
54
56
  }
55
57
  };
56
58
  await this.sendCommands(call, [command]);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@onereach/step-voice",
3
- "version": "6.1.8",
3
+ "version": "6.1.9",
4
4
  "author": "Roman Zolotarov <roman.zolotarov@onereach.com>",
5
5
  "contributors": [
6
6
  "Roman Zolotarov",