@vgroup/dialbox 0.0.79 → 0.0.80

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.
@@ -15,7 +15,7 @@ export interface DialPayload {
15
15
  export declare class TwilioService {
16
16
  private http;
17
17
  private extensionService;
18
- private notificationSerivce;
18
+ private notificationService;
19
19
  openInProgressDialpad: BehaviorSubject<boolean>;
20
20
  currentCall: BehaviorSubject<Call | null>;
21
21
  currentCallState: BehaviorSubject<string>;
@@ -37,8 +37,11 @@ export declare class TwilioService {
37
37
  isAvailableNumber: BehaviorSubject<boolean>;
38
38
  callerIdList: BehaviorSubject<any[]>;
39
39
  triggerSMSReload: BehaviorSubject<boolean>;
40
- constructor(http: HttpClient, extensionService: ExtensionService, notificationSerivce: NotificationService);
41
- initializeTwilioDevice(): void;
40
+ private isInitialized;
41
+ private autoAnswer;
42
+ constructor(http: HttpClient, extensionService: ExtensionService, notificationService: NotificationService);
43
+ initializeTwilioDevice(): Promise<void>;
44
+ private setupDevice;
42
45
  saveContact(payload: any): Observable<[]>;
43
46
  updateContact(payload: any): Observable<[]>;
44
47
  deleteContact(id: string): Observable<[]>;
@@ -59,6 +62,16 @@ export declare class TwilioService {
59
62
  * Check if there's an active call
60
63
  */
61
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;
62
75
  static ɵfac: i0.ɵɵFactoryDeclaration<TwilioService, never>;
63
76
  static ɵprov: i0.ɵɵInjectableDeclaration<TwilioService>;
64
77
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@vgroup/dialbox",
3
- "version": "0.0.79",
3
+ "version": "0.0.80",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^15.2.0",
6
6
  "@angular/core": "^15.2.0",