ue-softphone-sdk 5.0.2 → 5.0.3
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/README.md +97 -2
- package/dist/lib/types/index.d.ts +4 -0
- package/dist/lib/types/sdk/sdk-facade.d.ts +2 -0
- package/dist/lib/types/sdk/types.d.ts +3 -0
- package/dist/lib/types/sdk/webrtc-api.d.ts +5 -0
- package/dist/lib/types/webrtc/webrtc-adapter.d.ts +3 -0
- package/dist/lib/ue-soft-phone.min.js +1 -1
- package/dist/types/index.d.ts +4 -0
- package/dist/types/sdk/sdk-facade.d.ts +2 -0
- package/dist/types/sdk/types.d.ts +3 -0
- package/dist/types/sdk/webrtc-api.d.ts +5 -0
- package/dist/types/webrtc/webrtc-adapter.d.ts +3 -0
- package/dist/ue-softphone-sdk.js +1 -1
- package/package.json +1 -1
package/dist/types/index.d.ts
CHANGED
|
@@ -45,6 +45,8 @@ export default class ueSoftphone {
|
|
|
45
45
|
disconnect(): Promise<void>;
|
|
46
46
|
isConnected(): boolean;
|
|
47
47
|
sendDTMF(tone: string): void;
|
|
48
|
+
setMicrophoneEnabled(input: boolean | import("./sdk/types").SetMicrophoneEnabledParams): boolean;
|
|
49
|
+
isMicrophoneEnabled(): boolean;
|
|
48
50
|
};
|
|
49
51
|
get call(): {
|
|
50
52
|
callout(params: import("./sdk/types").DialoutParams): Promise<any>;
|
|
@@ -74,6 +76,8 @@ export default class ueSoftphone {
|
|
|
74
76
|
disconnect(): Promise<void>;
|
|
75
77
|
isConnected(): boolean;
|
|
76
78
|
sendDTMF(tone: string): void;
|
|
79
|
+
setMicrophoneEnabled(input: boolean | import("./sdk/types").SetMicrophoneEnabledParams): boolean;
|
|
80
|
+
isMicrophoneEnabled(): boolean;
|
|
77
81
|
};
|
|
78
82
|
destroy(callbacks?: DestroyCallbacks): void;
|
|
79
83
|
}
|
|
@@ -40,4 +40,6 @@ export declare const bindWebrtcFacade: (store: any, initWebrtcEvent: (extras: an
|
|
|
40
40
|
disconnect(): Promise<void>;
|
|
41
41
|
isConnected(): boolean;
|
|
42
42
|
sendDTMF(tone: string): void;
|
|
43
|
+
setMicrophoneEnabled(input: boolean | import("./types").SetMicrophoneEnabledParams): boolean;
|
|
44
|
+
isMicrophoneEnabled(): boolean;
|
|
43
45
|
};
|
|
@@ -85,6 +85,9 @@ export interface HoldOrUnHoldParams extends TypeTarget, SuccessFailCallbacks {
|
|
|
85
85
|
export interface MuteOrUnMuteParams extends TypeTarget, SuccessFailCallbacks {
|
|
86
86
|
direction: String;
|
|
87
87
|
}
|
|
88
|
+
export interface SetMicrophoneEnabledParams extends SuccessFailCallbacks {
|
|
89
|
+
enabled: boolean;
|
|
90
|
+
}
|
|
88
91
|
export interface TransferParams extends SuccessFailCallbacks {
|
|
89
92
|
type: String;
|
|
90
93
|
number: String;
|
|
@@ -1,14 +1,19 @@
|
|
|
1
|
+
import type { SetMicrophoneEnabledParams } from "./types";
|
|
1
2
|
interface WebPhoneApiDependencies {
|
|
2
3
|
getWebPhone: () => any;
|
|
3
4
|
getAgentExtras: () => any;
|
|
5
|
+
getInitOptions: () => any;
|
|
4
6
|
initWebrtcEvent: (extras: any) => Promise<void>;
|
|
5
7
|
onAccept: () => void;
|
|
6
8
|
}
|
|
9
|
+
type SetMicrophoneEnabledInput = boolean | SetMicrophoneEnabledParams;
|
|
7
10
|
export declare const createWebPhoneApi: (deps: WebPhoneApiDependencies) => {
|
|
8
11
|
accept(): void;
|
|
9
12
|
connect(): Promise<void>;
|
|
10
13
|
disconnect(): Promise<void>;
|
|
11
14
|
isConnected(): boolean;
|
|
12
15
|
sendDTMF(tone: string): void;
|
|
16
|
+
setMicrophoneEnabled(input: SetMicrophoneEnabledInput): boolean;
|
|
17
|
+
isMicrophoneEnabled(): boolean;
|
|
13
18
|
};
|
|
14
19
|
export {};
|
|
@@ -2,5 +2,8 @@ import { UeWebrtc as SharedWebrtc } from "ue-webrtc";
|
|
|
2
2
|
export type WebrtcOptions = ConstructorParameters<typeof SharedWebrtc>[0];
|
|
3
3
|
export default class UeWebrtc extends SharedWebrtc {
|
|
4
4
|
constructor(options: WebrtcOptions);
|
|
5
|
+
private getLocalAudioTrack;
|
|
6
|
+
setMicrophoneEnabled(enabled: boolean): boolean;
|
|
7
|
+
isMicrophoneEnabled(): boolean;
|
|
5
8
|
ueUnregisterWebrtc(): Promise<boolean | void>;
|
|
6
9
|
}
|