@vgroup/dialbox 0.0.76 → 0.0.78

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.
@@ -66,6 +66,7 @@ export declare class DialboxComponent implements OnInit, AfterViewInit, OnChange
66
66
  private isInitialized;
67
67
  constructor(twilioService: TwilioService, extService: ExtensionService, dialog: MatDialog, ipService: IpAddressService, extensionService: ExtensionService, router: Router);
68
68
  private initializeTwilio;
69
+ private handleIncomingCall;
69
70
  ngOnInit(): void;
70
71
  getUserInformation(incomingCallData: any): void;
71
72
  fromEntries(entries: [string, any][]): Record<string, any>;
@@ -18,8 +18,9 @@ export declare class TwilioService {
18
18
  private notificationSerivce;
19
19
  openInProgressDialpad: BehaviorSubject<boolean>;
20
20
  currentCall: BehaviorSubject<Call | null>;
21
- currentCallState: BehaviorSubject<any>;
21
+ currentCallState: BehaviorSubject<string>;
22
22
  device: any;
23
+ private _currentCall;
23
24
  incomingCallToken?: string;
24
25
  outgoingCallToken?: string;
25
26
  callType: BehaviorSubject<string>;
@@ -50,6 +51,14 @@ export declare class TwilioService {
50
51
  deletePhoto(id: string): Observable<[]>;
51
52
  toggleCoutryCodeToast(val: any): Observable<[]>;
52
53
  getToNumber(dialledNo: string, isoCode: string): Observable<[]>;
54
+ /**
55
+ * Get the current active call
56
+ */
57
+ getCurrentCall(): Call | null;
58
+ /**
59
+ * Check if there's an active call
60
+ */
61
+ hasActiveCall(): boolean;
53
62
  static ɵfac: i0.ɵɵFactoryDeclaration<TwilioService, never>;
54
63
  static ɵprov: i0.ɵɵInjectableDeclaration<TwilioService>;
55
64
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vgroup/dialbox",
3
- "version": "0.0.76",
3
+ "version": "0.0.78",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0",