@vgroup/dialbox 0.0.80 → 0.0.82

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.
@@ -0,0 +1,17 @@
1
+ import { OnInit, OnDestroy } from '@angular/core';
2
+ import { TwilioService } from '../../service/twilio.service';
3
+ import * as i0 from "@angular/core";
4
+ export declare class IncomingCallOverlayComponent implements OnInit, OnDestroy {
5
+ private twilioService;
6
+ showOverlay: boolean;
7
+ callData: any;
8
+ private callSubscription?;
9
+ private callStateSubscription?;
10
+ constructor(twilioService: TwilioService);
11
+ ngOnInit(): void;
12
+ acceptCall(): void;
13
+ rejectCall(): void;
14
+ ngOnDestroy(): void;
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<IncomingCallOverlayComponent, never>;
16
+ static ɵcmp: i0.ɵɵComponentDeclaration<IncomingCallOverlayComponent, "lib-incoming-call-overlay", never, {}, {}, never, never, false, never>;
17
+ }
@@ -66,7 +66,6 @@ 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;
70
69
  ngOnInit(): void;
71
70
  getUserInformation(incomingCallData: any): void;
72
71
  fromEntries(entries: [string, any][]): Record<string, any>;
@@ -3,13 +3,14 @@ import * as i1 from "./dialbox.component";
3
3
  import * as i2 from "./components/call-progress/call-progress.component";
4
4
  import * as i3 from "./components/caller-id-dialog/caller-id-dialog.component";
5
5
  import * as i4 from "./components/call-progress/incoming-call/incoming-call.component";
6
- import * as i5 from "@angular/common";
7
- import * as i6 from "@angular/forms";
8
- import * as i7 from "@angular/common/http";
9
- import * as i8 from "@angular/router";
10
- import * as i9 from "@angular/platform-browser";
6
+ import * as i5 from "./components/incoming-call-overlay/incoming-call-overlay.component";
7
+ import * as i6 from "@angular/common";
8
+ import * as i7 from "@angular/forms";
9
+ import * as i8 from "@angular/common/http";
10
+ import * as i9 from "@angular/router";
11
+ import * as i10 from "@angular/platform-browser";
11
12
  export declare class DialboxModule {
12
13
  static ɵfac: i0.ɵɵFactoryDeclaration<DialboxModule, never>;
13
- static ɵmod: i0.ɵɵNgModuleDeclaration<DialboxModule, [typeof i1.DialboxComponent, typeof i2.CallProgressComponent, typeof i3.CallerIdDialogComponent, typeof i4.IncomingCallComponent], [typeof i5.CommonModule, typeof i6.FormsModule, typeof i6.ReactiveFormsModule, typeof i7.HttpClientModule, typeof i8.RouterLink, typeof i8.RouterModule, typeof i9.BrowserModule], [typeof i1.DialboxComponent, typeof i4.IncomingCallComponent, typeof i2.CallProgressComponent, typeof i3.CallerIdDialogComponent]>;
14
+ static ɵmod: i0.ɵɵNgModuleDeclaration<DialboxModule, [typeof i1.DialboxComponent, typeof i2.CallProgressComponent, typeof i3.CallerIdDialogComponent, typeof i4.IncomingCallComponent, typeof i5.IncomingCallOverlayComponent], [typeof i6.CommonModule, typeof i7.FormsModule, typeof i7.ReactiveFormsModule, typeof i8.HttpClientModule, typeof i9.RouterLink, typeof i9.RouterModule, typeof i10.BrowserModule], [typeof i1.DialboxComponent, typeof i4.IncomingCallComponent, typeof i2.CallProgressComponent, typeof i3.CallerIdDialogComponent, typeof i5.IncomingCallOverlayComponent]>;
14
15
  static ɵinj: i0.ɵɵInjectorDeclaration<DialboxModule>;
15
16
  }
@@ -15,12 +15,11 @@ export interface DialPayload {
15
15
  export declare class TwilioService {
16
16
  private http;
17
17
  private extensionService;
18
- private notificationService;
18
+ private notificationSerivce;
19
19
  openInProgressDialpad: BehaviorSubject<boolean>;
20
20
  currentCall: BehaviorSubject<Call | null>;
21
- currentCallState: BehaviorSubject<string>;
21
+ currentCallState: BehaviorSubject<any>;
22
22
  device: any;
23
- private _currentCall;
24
23
  incomingCallToken?: string;
25
24
  outgoingCallToken?: string;
26
25
  callType: BehaviorSubject<string>;
@@ -37,11 +36,8 @@ export declare class TwilioService {
37
36
  isAvailableNumber: BehaviorSubject<boolean>;
38
37
  callerIdList: BehaviorSubject<any[]>;
39
38
  triggerSMSReload: BehaviorSubject<boolean>;
40
- private isInitialized;
41
- private autoAnswer;
42
- constructor(http: HttpClient, extensionService: ExtensionService, notificationService: NotificationService);
43
- initializeTwilioDevice(): Promise<void>;
44
- private setupDevice;
39
+ constructor(http: HttpClient, extensionService: ExtensionService, notificationSerivce: NotificationService);
40
+ initializeTwilioDevice(): void;
45
41
  saveContact(payload: any): Observable<[]>;
46
42
  updateContact(payload: any): Observable<[]>;
47
43
  deleteContact(id: string): Observable<[]>;
@@ -54,24 +50,6 @@ export declare class TwilioService {
54
50
  deletePhoto(id: string): Observable<[]>;
55
51
  toggleCoutryCodeToast(val: any): Observable<[]>;
56
52
  getToNumber(dialledNo: string, isoCode: string): Observable<[]>;
57
- /**
58
- * Get the current active call
59
- */
60
- getCurrentCall(): Call | null;
61
- /**
62
- * Check if there's an active call
63
- */
64
- hasActiveCall(): boolean;
65
- /**
66
- * Set whether to automatically answer incoming calls
67
- * @param autoAnswer - Whether to automatically answer calls
68
- */
69
- setAutoAnswer(autoAnswer: boolean): void;
70
- /**
71
- * Toggle auto-answer for incoming calls
72
- * @returns The new auto-answer state
73
- */
74
- toggleAutoAnswer(): boolean;
75
53
  static ɵfac: i0.ɵɵFactoryDeclaration<TwilioService, never>;
76
54
  static ɵprov: i0.ɵɵInjectableDeclaration<TwilioService>;
77
55
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vgroup/dialbox",
3
- "version": "0.0.80",
3
+ "version": "0.0.82",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0",
package/public-api.d.ts CHANGED
@@ -3,3 +3,4 @@ export * from './lib/dialbox.module';
3
3
  export * from './lib/components/call-progress/call-progress.component';
4
4
  export * from './lib/components/call-progress/incoming-call/incoming-call.component';
5
5
  export * from './lib/components/caller-id-dialog/caller-id-dialog.component';
6
+ export * from './lib/components/incoming-call-overlay/incoming-call-overlay.component';