@@ -18,7 +18,9 @@ import {
1818 VideoDeviceInfo ,
1919 AudioDeviceInfo ,
2020 RoomLocator ,
21- TeamsMeetingIdLocator
21+ TeamsMeetingIdLocator ,
22+ ConnectionState ,
23+ ConnectionStateChangedEvent
2224} from '@azure/communication-calling' ;
2325/* @conditional -compile-remove(unsupported-browser) */
2426import { EnvironmentInfo } from '@azure/communication-calling' ;
@@ -33,13 +35,7 @@ import {
3335 UnknownIdentifierKind
3436} from '@azure/communication-common' ;
3537/* @conditional -compile-remove(calling-beta-sdk) */
36- import {
37- GroupChatCallLocator ,
38- MeetingLocator ,
39- PushNotificationData ,
40- ConnectionState ,
41- ConnectionStateChangedEvent
42- } from '@azure/communication-calling' ;
38+ import { GroupChatCallLocator , MeetingLocator , PushNotificationData } from '@azure/communication-calling' ;
4339import {
4440 CallState ,
4541 CallClientState ,
@@ -273,7 +269,6 @@ function createMockCall(mockCallId: string): CallState {
273269export class MockCallAgent implements CallAgent {
274270 calls : Call [ ] = [ ] ;
275271 displayName = undefined ;
276- /* @conditional -compile-remove(calling-beta-sdk) */
277272 connectionState = 'Disconnected' as ConnectionState ;
278273 kind = 'CallAgent' as CallAgentKind ;
279274 emitter = new EventEmitter ( ) ;
@@ -311,15 +306,13 @@ export class MockCallAgent implements CallAgent {
311306 }
312307 on ( event : 'incomingCall' , listener : IncomingCallEvent ) : void ;
313308 on ( event : 'callsUpdated' , listener : CollectionUpdatedEvent < Call > ) : void ;
314- /* @conditional -compile-remove(calling-beta-sdk) */
315309 on ( event : 'connectionStateChanged' , listener : ConnectionStateChangedEvent ) : void ;
316310 // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
317311 on ( event : any , listener : any ) : void {
318312 this . emitter . on ( event , listener ) ;
319313 }
320314 off ( event : 'incomingCall' , listener : IncomingCallEvent ) : void ;
321315 off ( event : 'callsUpdated' , listener : CollectionUpdatedEvent < Call > ) : void ;
322- /* @conditional -compile-remove(calling-beta-sdk) */
323316 off ( event : 'connectionStateChanged' , listener : ConnectionStateChangedEvent ) : void ;
324317 // eslint-disable-next-line @typescript-eslint/no-explicit-any, @typescript-eslint/explicit-module-boundary-types
325318 off ( event : any , listener : any ) : void {
0 commit comments