@94ai/softphone 6.0.13 → 6.0.15
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/lib/index.d.ts
CHANGED
|
@@ -5230,6 +5230,7 @@ type PrepareUserAgentOptions = {
|
|
|
5230
5230
|
appKey?: string;
|
|
5231
5231
|
appSecret?: string;
|
|
5232
5232
|
openBaseUrl?: string;
|
|
5233
|
+
openGatewayUrl?: string;
|
|
5233
5234
|
sg?: '1' | '0' | string;
|
|
5234
5235
|
sgOpen?: '1' | '0';
|
|
5235
5236
|
};
|
|
@@ -5389,6 +5390,7 @@ interface UserAgentOptionsSDK {
|
|
|
5389
5390
|
agentTag?: string;
|
|
5390
5391
|
agentId?: number;
|
|
5391
5392
|
openBaseUrl?: string;
|
|
5393
|
+
openGatewayUrl?: string;
|
|
5392
5394
|
sg?: '1' | '0';
|
|
5393
5395
|
sgOpen?: '1' | '0';
|
|
5394
5396
|
token: string;
|
|
@@ -5415,7 +5417,7 @@ interface UserAgentOptionsSDK {
|
|
|
5415
5417
|
reClusterRegisterTimeout?: number;
|
|
5416
5418
|
reClusterConnectTimeout?: number;
|
|
5417
5419
|
}
|
|
5418
|
-
type ExposeAliArmsApi = `softphone-sdk-hangup` | `softphone-sdk-seats-status-change` | `softphone-sdk-accept` | `softphone-sdk-connect` | `softphone-sdk-ignore` | `softphone-sdk-incoming` | `softphone-sdk-manual-call` | 'softphone-sdk-send-star-dtmf';
|
|
5420
|
+
type ExposeAliArmsApi = `softphone-sdk-hangup` | `softphone-sdk-seats-status-change` | `softphone-sdk-accept` | `softphone-sdk-connect` | `softphone-sdk-ignore` | `softphone-sdk-incoming` | `softphone-sdk-manual-call` | `softphone-sdk-init` | 'softphone-sdk-send-star-dtmf';
|
|
5419
5421
|
type UserAgentOptions = UserAgentOptions$1 & UserAgentOptionsSDK;
|
|
5420
5422
|
type ajaxOption = {
|
|
5421
5423
|
type: 'GET' | 'POST';
|
|
@@ -5447,6 +5449,7 @@ type BusinessAttribute = Partial<{
|
|
|
5447
5449
|
taskName: string;
|
|
5448
5450
|
/** 整理中 */
|
|
5449
5451
|
processTime: string;
|
|
5452
|
+
properties: string;
|
|
5450
5453
|
/** 外呼类型 */
|
|
5451
5454
|
voiceType: VoiceType;
|
|
5452
5455
|
/** 自动接听 */
|
|
@@ -5485,7 +5488,7 @@ declare class UserAgentManager {
|
|
|
5485
5488
|
time: number;
|
|
5486
5489
|
businessInfo: Record<string, any>;
|
|
5487
5490
|
begin: number;
|
|
5488
|
-
}): void
|
|
5491
|
+
}): Promise<void>;
|
|
5489
5492
|
networkSpeed: string;
|
|
5490
5493
|
networkDelay: string;
|
|
5491
5494
|
onLine: boolean;
|
|
@@ -5511,6 +5514,7 @@ declare class UserAgentManager {
|
|
|
5511
5514
|
nodeTitle: string;
|
|
5512
5515
|
taskName: string;
|
|
5513
5516
|
processTime: string;
|
|
5517
|
+
properties: string;
|
|
5514
5518
|
voiceType: VoiceType;
|
|
5515
5519
|
autoAnswer: AutoAnswer;
|
|
5516
5520
|
popWindow: PopWindow;
|
|
@@ -5543,7 +5547,7 @@ declare class UserAgentManager {
|
|
|
5543
5547
|
*/
|
|
5544
5548
|
detectNavigatorPermissions(): void;
|
|
5545
5549
|
openApiAjax: (param: Partial<ajaxOption>) => Promise<any>;
|
|
5546
|
-
getGateway():
|
|
5550
|
+
getGateway(): string;
|
|
5547
5551
|
requestGateway: (param: Partial<ajaxOption>, needToken?: boolean) => Promise<any>;
|
|
5548
5552
|
gatewayApiAjax: (param: Partial<ajaxOption>, needToken?: boolean) => Promise<any>;
|
|
5549
5553
|
getGatewayToken(): Promise<string>;
|
|
@@ -5745,7 +5749,8 @@ declare const accumulateSec: (date: Date) => Date;
|
|
|
5745
5749
|
* @return Function 销毁计时器
|
|
5746
5750
|
*/
|
|
5747
5751
|
declare function accumulationTimer(refresh: Function): () => void;
|
|
5748
|
-
declare function getBeijingTime(): string;
|
|
5752
|
+
declare function getBeijingTime(): string;
|
|
5753
|
+
declare function toCodeString(v: any): any;
|
|
5749
5754
|
|
|
5750
5755
|
declare class CallbackAggregator {
|
|
5751
5756
|
onAggregateCallback: (info: ApiAutoIgnoreTraceInfo) => void;
|
|
@@ -5786,6 +5791,8 @@ declare class UserAgentFactory {
|
|
|
5786
5791
|
agentTag?: string;
|
|
5787
5792
|
agentId?: number;
|
|
5788
5793
|
teleai?: boolean;
|
|
5794
|
+
openGatewayUrl?: string;
|
|
5795
|
+
openBaseUrl?: string;
|
|
5789
5796
|
}): Promise<any>;
|
|
5790
5797
|
static getUserAgentManager(options?: Partial<UserAgentOptions>): UserAgentManager;
|
|
5791
5798
|
static hasUserAgentManager(): boolean;
|
|
@@ -5793,4 +5800,4 @@ declare class UserAgentFactory {
|
|
|
5793
5800
|
static dispose(): void;
|
|
5794
5801
|
}
|
|
5795
5802
|
|
|
5796
|
-
export { AfterTransferLabour, AliArms, BusinessAttribute, CallbackAggregator, HandUpInviteOption, IncomingResponse, Invitation, InvitationAcceptOptions, InvitationRejectOptions, Inviter, InviterInviteOptionsExtend as InviterInviteOptions, OutgoingRequest, PopWindow, PrepareUserAgentOptions, RegisterOptions, Registerer, RegistererOptions, RegistererRegisterOptions, RegistererUnregisterOptions, SessionByeOptions, SessionDescriptionHandler, SessionInfoOptionsExtend as SessionInfoOptions, SessionState, SimpleUser, TransportOptions, URI, UserAgent, UserAgentDelegate, UserAgentDelegateKey, UserAgentFactory, UserAgentManager, UserAgentOptions, UserAgentStatus, UserAgentStatusKey, VoiceType, accumulateSec, accumulationTimer, cleanupMedia, getBeijingTime, getDevicePermission, getMedia, getTimes, getZeorTime, pauseMedia, playMedia, requestMicroPhonePermission, stopStreamTracks, userAgentDefault, userAgentStatus };
|
|
5803
|
+
export { AfterTransferLabour, AliArms, BusinessAttribute, CallbackAggregator, HandUpInviteOption, IncomingResponse, Invitation, InvitationAcceptOptions, InvitationRejectOptions, Inviter, InviterInviteOptionsExtend as InviterInviteOptions, OutgoingRequest, PopWindow, PrepareUserAgentOptions, RegisterOptions, Registerer, RegistererOptions, RegistererRegisterOptions, RegistererUnregisterOptions, SessionByeOptions, SessionDescriptionHandler, SessionInfoOptionsExtend as SessionInfoOptions, SessionState, SimpleUser, TransportOptions, URI, UserAgent, UserAgentDelegate, UserAgentDelegateKey, UserAgentFactory, UserAgentManager, UserAgentOptions, UserAgentStatus, UserAgentStatusKey, VoiceType, accumulateSec, accumulationTimer, cleanupMedia, getBeijingTime, getDevicePermission, getMedia, getTimes, getZeorTime, pauseMedia, playMedia, requestMicroPhonePermission, stopStreamTracks, toCodeString, userAgentDefault, userAgentStatus };
|