@webex/plugin-meetings 3.0.0-beta.172 → 3.0.0-beta.173

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@webex/plugin-meetings",
3
- "version": "3.0.0-beta.172",
3
+ "version": "3.0.0-beta.173",
4
4
  "description": "",
5
5
  "license": "Cisco EULA (https://www.cisco.com/c/en/us/products/end-user-license-agreement.html)",
6
6
  "contributors": [
@@ -32,12 +32,12 @@
32
32
  "build": "yarn run -T tsc --declaration true --declarationDir ./dist/types"
33
33
  },
34
34
  "devDependencies": {
35
- "@webex/plugin-meetings": "3.0.0-beta.172",
36
- "@webex/test-helper-chai": "3.0.0-beta.172",
37
- "@webex/test-helper-mocha": "3.0.0-beta.172",
38
- "@webex/test-helper-mock-webex": "3.0.0-beta.172",
39
- "@webex/test-helper-retry": "3.0.0-beta.172",
40
- "@webex/test-helper-test-users": "3.0.0-beta.172",
35
+ "@webex/plugin-meetings": "3.0.0-beta.173",
36
+ "@webex/test-helper-chai": "3.0.0-beta.173",
37
+ "@webex/test-helper-mocha": "3.0.0-beta.173",
38
+ "@webex/test-helper-mock-webex": "3.0.0-beta.173",
39
+ "@webex/test-helper-retry": "3.0.0-beta.173",
40
+ "@webex/test-helper-test-users": "3.0.0-beta.173",
41
41
  "chai": "^4.3.4",
42
42
  "chai-as-promised": "^7.1.1",
43
43
  "jsdom-global": "3.0.2",
@@ -46,19 +46,19 @@
46
46
  "typescript": "^4.7.4"
47
47
  },
48
48
  "dependencies": {
49
- "@webex/common": "3.0.0-beta.172",
49
+ "@webex/common": "3.0.0-beta.173",
50
50
  "@webex/internal-media-core": "1.39.1",
51
- "@webex/internal-plugin-conversation": "3.0.0-beta.172",
52
- "@webex/internal-plugin-device": "3.0.0-beta.172",
53
- "@webex/internal-plugin-llm": "3.0.0-beta.172",
54
- "@webex/internal-plugin-mercury": "3.0.0-beta.172",
55
- "@webex/internal-plugin-metrics": "3.0.0-beta.172",
56
- "@webex/internal-plugin-support": "3.0.0-beta.172",
57
- "@webex/internal-plugin-user": "3.0.0-beta.172",
58
- "@webex/media-helpers": "3.0.0-beta.172",
59
- "@webex/plugin-people": "3.0.0-beta.172",
60
- "@webex/plugin-rooms": "3.0.0-beta.172",
61
- "@webex/webex-core": "3.0.0-beta.172",
51
+ "@webex/internal-plugin-conversation": "3.0.0-beta.173",
52
+ "@webex/internal-plugin-device": "3.0.0-beta.173",
53
+ "@webex/internal-plugin-llm": "3.0.0-beta.173",
54
+ "@webex/internal-plugin-mercury": "3.0.0-beta.173",
55
+ "@webex/internal-plugin-metrics": "3.0.0-beta.173",
56
+ "@webex/internal-plugin-support": "3.0.0-beta.173",
57
+ "@webex/internal-plugin-user": "3.0.0-beta.173",
58
+ "@webex/media-helpers": "3.0.0-beta.173",
59
+ "@webex/plugin-people": "3.0.0-beta.173",
60
+ "@webex/plugin-rooms": "3.0.0-beta.173",
61
+ "@webex/webex-core": "3.0.0-beta.173",
62
62
  "ampersand-collection": "^2.0.2",
63
63
  "bowser": "^2.11.0",
64
64
  "btoa": "^1.2.1",
@@ -1815,6 +1815,7 @@ export default class Meeting extends StatelessWebexPlugin {
1815
1815
  dialOut: {
1816
1816
  status: this.dialOutDeviceStatus,
1817
1817
  attendeeId: dialOutPstnDevice?.attendeeId,
1818
+ reason: dialOutPstnDevice?.reason,
1818
1819
  },
1819
1820
  }
1820
1821
  );
@@ -572,6 +572,88 @@ describe('plugin-meetings', () => {
572
572
  assert.equal(meeting.isReactionsSupported(), true);
573
573
  });
574
574
  });
575
+
576
+ describe('#pstnUpdate', () => {
577
+
578
+ beforeEach(()=> {
579
+ meeting.locusInfo.self = {state: 'IDLE'};
580
+ meeting.dialOutUrl = "dialout:///8167d5ec-40c8-49b8-b49a-8717dbaa7d3a";
581
+ })
582
+
583
+ it('checks event MEETING_SELF_PHONE_AUDIO_UPDATE can return reason', () => {
584
+ const fakePayload = {
585
+ newSelf: {
586
+ pstnDevices: [{
587
+ attendeeId: 'test-id',
588
+ url: "dialout:///8167d5ec-40c8-49b8-b49a-8717dbaa7d3a",
589
+ deviceType: "PROVISIONAL",
590
+ state: 'LEFT',
591
+ reason: 'FAILURE'
592
+ }]
593
+ }
594
+ };
595
+
596
+ meeting.pstnUpdate(fakePayload);
597
+
598
+ assert.calledWith(
599
+ TriggerProxy.trigger,
600
+ sinon.match.instanceOf(Meeting),
601
+ {
602
+ file: 'meeting/index',
603
+ function: 'setUpLocusSelfListener',
604
+ },
605
+ EVENT_TRIGGERS.MEETING_SELF_PHONE_AUDIO_UPDATE,
606
+ {
607
+ dialIn: {
608
+ status: '',
609
+ attendeeId: undefined,
610
+ },
611
+ dialOut: {
612
+ status: 'LEFT',
613
+ attendeeId: 'test-id',
614
+ reason: 'FAILURE',
615
+ },
616
+ }
617
+ );
618
+ });
619
+
620
+ it('checks event MEETING_SELF_PHONE_AUDIO_UPDATE can return undefined reason', () => {
621
+ const fakePayload = {
622
+ newSelf: {
623
+ pstnDevices: [{
624
+ attendeeId: 'test-id',
625
+ url: "dialout:///8167d5ec-40c8-49b8-b49a-8717dbaa7d3a",
626
+ deviceType: "PROVISIONAL",
627
+ state: 'LEFT',
628
+ }]
629
+ }
630
+ };
631
+
632
+ meeting.pstnUpdate(fakePayload);
633
+
634
+ assert.calledWith(
635
+ TriggerProxy.trigger,
636
+ sinon.match.instanceOf(Meeting),
637
+ {
638
+ file: 'meeting/index',
639
+ function: 'setUpLocusSelfListener',
640
+ },
641
+ EVENT_TRIGGERS.MEETING_SELF_PHONE_AUDIO_UPDATE,
642
+ {
643
+ dialIn: {
644
+ status: '',
645
+ attendeeId: undefined,
646
+ },
647
+ dialOut: {
648
+ status: 'LEFT',
649
+ attendeeId: 'test-id',
650
+ reason: undefined,
651
+ },
652
+ }
653
+ );
654
+ });
655
+ });
656
+
575
657
  describe('#processRelayEvent', () => {
576
658
  it('should process a Reaction event type', () => {
577
659
  meeting.isReactionsSupported = sinon.stub().returns(true);