@vgroup/dialbox 0.0.78 → 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.
- package/esm2020/lib/dialbox.component.mjs +11 -11
- package/esm2020/lib/service/twilio.service.mjs +97 -56
- package/fesm2015/vgroup-dialbox.mjs +105 -64
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +105 -64
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/service/twilio.service.d.ts +16 -3
- package/package.json +1 -1
|
@@ -15,7 +15,7 @@ export interface DialPayload {
|
|
|
15
15
|
export declare class TwilioService {
|
|
16
16
|
private http;
|
|
17
17
|
private extensionService;
|
|
18
|
-
private
|
|
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
|
-
|
|
41
|
-
|
|
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
|
}
|