@vgroup/dialbox 0.0.80 → 0.0.81
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 +13 -88
- package/esm2020/lib/service/twilio.service.mjs +41 -112
- package/fesm2015/vgroup-dialbox.mjs +51 -190
- package/fesm2015/vgroup-dialbox.mjs.map +1 -1
- package/fesm2020/vgroup-dialbox.mjs +51 -197
- package/fesm2020/vgroup-dialbox.mjs.map +1 -1
- package/lib/dialbox.component.d.ts +0 -1
- package/lib/service/twilio.service.d.ts +4 -26
- package/package.json +1 -1
|
@@ -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>;
|
|
@@ -15,12 +15,11 @@ export interface DialPayload {
|
|
|
15
15
|
export declare class TwilioService {
|
|
16
16
|
private http;
|
|
17
17
|
private extensionService;
|
|
18
|
-
private
|
|
18
|
+
private notificationSerivce;
|
|
19
19
|
openInProgressDialpad: BehaviorSubject<boolean>;
|
|
20
20
|
currentCall: BehaviorSubject<Call | null>;
|
|
21
|
-
currentCallState: BehaviorSubject<
|
|
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
|
-
|
|
41
|
-
|
|
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
|
}
|