@94ai/softphone 6.0.9 → 6.0.11
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
|
@@ -5101,6 +5101,74 @@ declare class SimpleUser {
|
|
|
5101
5101
|
message(destination: string, message: string): Promise<void>;
|
|
5102
5102
|
}
|
|
5103
5103
|
|
|
5104
|
+
/**
|
|
5105
|
+
* 默认连接配置
|
|
5106
|
+
*/
|
|
5107
|
+
declare const userAgentDefault: Partial<UserAgentOptions$1>;
|
|
5108
|
+
declare const userAgentStatus: UserAgentStatus;
|
|
5109
|
+
declare enum AutoAnswer {
|
|
5110
|
+
NO = "0",
|
|
5111
|
+
YES = "1"
|
|
5112
|
+
}
|
|
5113
|
+
declare enum PopWindow {
|
|
5114
|
+
NO = "0",
|
|
5115
|
+
YES = "1"
|
|
5116
|
+
}
|
|
5117
|
+
/** 外呼类型 */
|
|
5118
|
+
declare enum VoiceType {
|
|
5119
|
+
/**
|
|
5120
|
+
* AI外呼 "111-"
|
|
5121
|
+
*/
|
|
5122
|
+
MULTI_AI = "1",
|
|
5123
|
+
/**
|
|
5124
|
+
* 语音通知
|
|
5125
|
+
*/
|
|
5126
|
+
MULTI_VOICE_NOTIFY = "2",
|
|
5127
|
+
/**
|
|
5128
|
+
* 预测式外呼 "333-"
|
|
5129
|
+
*/
|
|
5130
|
+
MULTI_PRETEST = "3",
|
|
5131
|
+
/**
|
|
5132
|
+
* 坐席人工外呼(快速外呼) "444-"
|
|
5133
|
+
*/
|
|
5134
|
+
LABOUR = "4",
|
|
5135
|
+
/**
|
|
5136
|
+
* 坐席AI外呼 "555-"
|
|
5137
|
+
*/
|
|
5138
|
+
AI = "5",
|
|
5139
|
+
/**
|
|
5140
|
+
* 新语音通知
|
|
5141
|
+
*/
|
|
5142
|
+
NEW_VOICE_NOTIFY = "6",
|
|
5143
|
+
/**
|
|
5144
|
+
* 语音测试 "666-"
|
|
5145
|
+
*/
|
|
5146
|
+
VOICE_TEST = "7",
|
|
5147
|
+
/**
|
|
5148
|
+
* 呼入转接AI
|
|
5149
|
+
*/
|
|
5150
|
+
CALL_IN_AI = "8",
|
|
5151
|
+
/**
|
|
5152
|
+
* 呼入转接人工 "777-"
|
|
5153
|
+
*/
|
|
5154
|
+
CALL_IN_LABOUR = "9",
|
|
5155
|
+
/**
|
|
5156
|
+
* 视频外呼
|
|
5157
|
+
*/
|
|
5158
|
+
MOVIE_CALL = "10",
|
|
5159
|
+
/**
|
|
5160
|
+
* 线路呼叫测试
|
|
5161
|
+
*/
|
|
5162
|
+
GATEWAY_TEST_CALL = "11"
|
|
5163
|
+
}
|
|
5164
|
+
/** 接听类型 */
|
|
5165
|
+
declare enum AfterTransferLabour {
|
|
5166
|
+
/** 直接接听 */
|
|
5167
|
+
DIRECT_ANSWER = "1",
|
|
5168
|
+
/** 先监听后手动接听 */
|
|
5169
|
+
LISTEN_FIRST_AND_THEN_ANSWER_MANUALLY = "2"
|
|
5170
|
+
}
|
|
5171
|
+
|
|
5104
5172
|
type InviterInviteOptionsExtend = InviterInviteOptions & {
|
|
5105
5173
|
extraHeaders?: string[];
|
|
5106
5174
|
};
|
|
@@ -5353,7 +5421,42 @@ type ajaxOption = {
|
|
|
5353
5421
|
url: string;
|
|
5354
5422
|
data: Record<string, any>;
|
|
5355
5423
|
contentType: string;
|
|
5356
|
-
};
|
|
5424
|
+
};
|
|
5425
|
+
/** 软电话业务属性 */
|
|
5426
|
+
type BusinessAttribute = Partial<{
|
|
5427
|
+
/** sip签入头 */
|
|
5428
|
+
sipRegisterMessage: Record<string, any>;
|
|
5429
|
+
/** callid */
|
|
5430
|
+
cid: string;
|
|
5431
|
+
/** 当前通话唯一标识 */
|
|
5432
|
+
callId: string;
|
|
5433
|
+
/** 外呼号码编号 */
|
|
5434
|
+
numberId: string;
|
|
5435
|
+
/** 任务Id */
|
|
5436
|
+
taskId: string;
|
|
5437
|
+
/** 用户明文手机号 */
|
|
5438
|
+
userPhone: string;
|
|
5439
|
+
/** 来电号码 */
|
|
5440
|
+
phoneNumber: string;
|
|
5441
|
+
/** 话术名称 */
|
|
5442
|
+
templateTitle: string;
|
|
5443
|
+
/** 最新节点名称 */
|
|
5444
|
+
nodeTitle: string;
|
|
5445
|
+
/** 任务名称 */
|
|
5446
|
+
taskName: string;
|
|
5447
|
+
/** 整理中 */
|
|
5448
|
+
processTime: string;
|
|
5449
|
+
/** 外呼类型 */
|
|
5450
|
+
voiceType: VoiceType;
|
|
5451
|
+
/** 自动接听 */
|
|
5452
|
+
autoAnswer: AutoAnswer;
|
|
5453
|
+
/** 来电弹屏 **/
|
|
5454
|
+
popWindow: PopWindow;
|
|
5455
|
+
/** 转接后人工类型 (1:直接接听 2:先监听后手动接听) */
|
|
5456
|
+
afterTransferLabour: AfterTransferLabour;
|
|
5457
|
+
tag: string;
|
|
5458
|
+
numberTag: string;
|
|
5459
|
+
}>;
|
|
5357
5460
|
|
|
5358
5461
|
/**
|
|
5359
5462
|
* 代理实例类
|
|
@@ -5362,6 +5465,7 @@ declare class UserAgentManager {
|
|
|
5362
5465
|
#private;
|
|
5363
5466
|
token: string;
|
|
5364
5467
|
get armsReportFlag(): boolean;
|
|
5468
|
+
set armsReportFlag(value: boolean);
|
|
5365
5469
|
/**
|
|
5366
5470
|
* 坐席讲话音量
|
|
5367
5471
|
*/
|
|
@@ -5393,7 +5497,25 @@ declare class UserAgentManager {
|
|
|
5393
5497
|
get agentTag(): string;
|
|
5394
5498
|
get agentExtension(): string;
|
|
5395
5499
|
get agentId(): number;
|
|
5396
|
-
get businessAttribute():
|
|
5500
|
+
get businessAttribute(): Partial<Partial<{
|
|
5501
|
+
sipRegisterMessage: Record<string, any>;
|
|
5502
|
+
cid: string;
|
|
5503
|
+
callId: string;
|
|
5504
|
+
numberId: string;
|
|
5505
|
+
taskId: string;
|
|
5506
|
+
userPhone: string;
|
|
5507
|
+
phoneNumber: string;
|
|
5508
|
+
templateTitle: string;
|
|
5509
|
+
nodeTitle: string;
|
|
5510
|
+
taskName: string;
|
|
5511
|
+
processTime: string;
|
|
5512
|
+
voiceType: VoiceType;
|
|
5513
|
+
autoAnswer: AutoAnswer;
|
|
5514
|
+
popWindow: PopWindow;
|
|
5515
|
+
afterTransferLabour: AfterTransferLabour;
|
|
5516
|
+
tag: string;
|
|
5517
|
+
numberTag: string;
|
|
5518
|
+
}>>;
|
|
5397
5519
|
/**
|
|
5398
5520
|
* 每次来电是否自动接听
|
|
5399
5521
|
*/
|
|
@@ -5564,12 +5686,6 @@ declare class UserAgentManager {
|
|
|
5564
5686
|
}, options?: InviterInviteOptionsExtend): Promise<Inviter>;
|
|
5565
5687
|
}
|
|
5566
5688
|
|
|
5567
|
-
/**
|
|
5568
|
-
* 默认连接配置
|
|
5569
|
-
*/
|
|
5570
|
-
declare const userAgentDefault: Partial<UserAgentOptions$1>;
|
|
5571
|
-
declare const userAgentStatus: UserAgentStatus;
|
|
5572
|
-
|
|
5573
5689
|
/**
|
|
5574
5690
|
* 获取音频标签
|
|
5575
5691
|
* @param id Element id
|
|
@@ -5675,4 +5791,4 @@ declare class UserAgentFactory {
|
|
|
5675
5791
|
static dispose(): void;
|
|
5676
5792
|
}
|
|
5677
5793
|
|
|
5678
|
-
export { AliArms, CallbackAggregator, HandUpInviteOption, IncomingResponse, Invitation, InvitationAcceptOptions, InvitationRejectOptions, Inviter, InviterInviteOptionsExtend as InviterInviteOptions, OutgoingRequest, PrepareUserAgentOptions, RegisterOptions, Registerer, RegistererOptions, RegistererRegisterOptions, RegistererUnregisterOptions, SessionByeOptions, SessionDescriptionHandler, SessionInfoOptionsExtend as SessionInfoOptions, SessionState, SimpleUser, TransportOptions, URI, UserAgent, UserAgentDelegate, UserAgentDelegateKey, UserAgentFactory, UserAgentManager, UserAgentOptions, UserAgentStatus, UserAgentStatusKey, accumulateSec, accumulationTimer, cleanupMedia, getBeijingTime, getDevicePermission, getMedia, getTimes, getZeorTime, pauseMedia, playMedia, requestMicroPhonePermission, stopStreamTracks, userAgentDefault, userAgentStatus };
|
|
5794
|
+
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 };
|