@alicloud/dyvmsapi20170525 3.2.0 → 4.1.0
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/dist/client.d.ts +117 -61
- package/dist/client.js +671 -103
- package/dist/client.js.map +1 -1
- package/dist/models/CloudCreateAgentRequest.d.ts +200 -0
- package/dist/models/CloudCreateAgentRequest.js +106 -0
- package/dist/models/CloudCreateAgentRequest.js.map +1 -0
- package/dist/models/CloudCreateAgentResponse.d.ts +19 -0
- package/dist/models/CloudCreateAgentResponse.js +69 -0
- package/dist/models/CloudCreateAgentResponse.js.map +1 -0
- package/dist/models/CloudCreateAgentResponseBody.d.ts +304 -0
- package/dist/models/CloudCreateAgentResponseBody.js +190 -0
- package/dist/models/CloudCreateAgentResponseBody.js.map +1 -0
- package/dist/models/CloudCreateTaskRequest.d.ts +430 -0
- package/dist/models/CloudCreateTaskRequest.js +164 -0
- package/dist/models/CloudCreateTaskRequest.js.map +1 -0
- package/dist/models/CloudCreateTaskResponse.d.ts +19 -0
- package/dist/models/CloudCreateTaskResponse.js +69 -0
- package/dist/models/CloudCreateTaskResponse.js.map +1 -0
- package/dist/models/CloudCreateTaskResponseBody.d.ts +192 -0
- package/dist/models/CloudCreateTaskResponseBody.js +146 -0
- package/dist/models/CloudCreateTaskResponseBody.js.map +1 -0
- package/dist/models/CloudImportTaskTelRequest.d.ts +161 -0
- package/dist/models/CloudImportTaskTelRequest.js +114 -0
- package/dist/models/CloudImportTaskTelRequest.js.map +1 -0
- package/dist/models/{QueryVirtualNumberResponse.d.ts → CloudImportTaskTelResponse.d.ts} +3 -3
- package/dist/models/{QueryVirtualNumberResponse.js → CloudImportTaskTelResponse.js} +6 -6
- package/dist/models/{QueryVirtualNumberResponse.js.map → CloudImportTaskTelResponse.js.map} +1 -1
- package/dist/models/CloudImportTaskTelResponseBody.d.ts +82 -0
- package/dist/models/CloudImportTaskTelResponseBody.js +96 -0
- package/dist/models/CloudImportTaskTelResponseBody.js.map +1 -0
- package/dist/models/CloudImportTaskTelShrinkRequest.d.ts +101 -0
- package/dist/models/CloudImportTaskTelShrinkRequest.js +82 -0
- package/dist/models/CloudImportTaskTelShrinkRequest.js.map +1 -0
- package/dist/models/CloudStartTaskRequest.d.ts +36 -0
- package/dist/models/{QueryVirtualNumberRequest.js → CloudStartTaskRequest.js} +8 -12
- package/dist/models/CloudStartTaskRequest.js.map +1 -0
- package/dist/models/CloudStartTaskResponse.d.ts +19 -0
- package/dist/models/{QueryVirtualNumberResponseBody.js → CloudStartTaskResponse.js} +17 -10
- package/dist/models/CloudStartTaskResponse.js.map +1 -0
- package/dist/models/CloudStartTaskResponseBody.d.ts +50 -0
- package/dist/models/CloudStartTaskResponseBody.js +88 -0
- package/dist/models/CloudStartTaskResponseBody.js.map +1 -0
- package/dist/models/CloudUpdateTaskRequest.d.ts +404 -0
- package/dist/models/CloudUpdateTaskRequest.js +158 -0
- package/dist/models/CloudUpdateTaskRequest.js.map +1 -0
- package/dist/models/CloudUpdateTaskResponse.d.ts +19 -0
- package/dist/models/CloudUpdateTaskResponse.js +69 -0
- package/dist/models/CloudUpdateTaskResponse.js.map +1 -0
- package/dist/models/CloudUpdateTaskResponseBody.d.ts +192 -0
- package/dist/models/CloudUpdateTaskResponseBody.js +146 -0
- package/dist/models/CloudUpdateTaskResponseBody.js.map +1 -0
- package/dist/models/GetHotlineQualificationByOrderResponseBody.d.ts +0 -2
- package/dist/models/GetHotlineQualificationByOrderResponseBody.js +0 -2
- package/dist/models/GetHotlineQualificationByOrderResponseBody.js.map +1 -1
- package/dist/models/model.d.ts +24 -3
- package/dist/models/model.js +53 -10
- package/dist/models/model.js.map +1 -1
- package/package.json +1 -1
- package/src/client.ts +902 -184
- package/src/models/CloudCreateAgentRequest.ts +261 -0
- package/src/models/{QueryVirtualNumberResponse.ts → CloudCreateAgentResponse.ts} +4 -4
- package/src/models/CloudCreateAgentResponseBody.ts +420 -0
- package/src/models/CloudCreateTaskRequest.ts +549 -0
- package/src/models/CloudCreateTaskResponse.ts +40 -0
- package/src/models/CloudCreateTaskResponseBody.ts +284 -0
- package/src/models/CloudImportTaskTelRequest.ts +221 -0
- package/src/models/CloudImportTaskTelResponse.ts +40 -0
- package/src/models/CloudImportTaskTelResponseBody.ts +124 -0
- package/src/models/CloudImportTaskTelShrinkRequest.ts +138 -0
- package/src/models/{QueryVirtualNumberRequest.ts → CloudStartTaskRequest.ts} +14 -33
- package/src/models/CloudStartTaskResponse.ts +40 -0
- package/src/models/CloudStartTaskResponseBody.ts +84 -0
- package/src/models/CloudUpdateTaskRequest.ts +517 -0
- package/src/models/CloudUpdateTaskResponse.ts +40 -0
- package/src/models/CloudUpdateTaskResponseBody.ts +284 -0
- package/src/models/GetHotlineQualificationByOrderResponseBody.ts +0 -2
- package/src/models/model.ts +24 -3
- package/dist/models/QueryVirtualNumberRequest.d.ts +0 -51
- package/dist/models/QueryVirtualNumberRequest.js.map +0 -1
- package/dist/models/QueryVirtualNumberResponseBody.d.ts +0 -51
- package/dist/models/QueryVirtualNumberResponseBody.js.map +0 -1
- package/src/models/QueryVirtualNumberResponseBody.ts +0 -68
|
@@ -0,0 +1,549 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
export class CloudCreateTaskRequest extends $dara.Model {
|
|
6
|
+
/**
|
|
7
|
+
* @remarks
|
|
8
|
+
* 外呼组号;callGroupType=2时必填。注:一个外呼组可以绑定到多个任务,但只能同时运行一个任务中
|
|
9
|
+
*
|
|
10
|
+
* @example
|
|
11
|
+
* 33
|
|
12
|
+
*/
|
|
13
|
+
agentGroup?: string;
|
|
14
|
+
/**
|
|
15
|
+
* @remarks
|
|
16
|
+
* 座席超时时间;单位秒数,默认10秒,取值范围5 ~ 60
|
|
17
|
+
*
|
|
18
|
+
* @example
|
|
19
|
+
* 52
|
|
20
|
+
*/
|
|
21
|
+
agentTimeout?: number;
|
|
22
|
+
/**
|
|
23
|
+
* @remarks
|
|
24
|
+
* 初始化预计客户接通率;默认50,取值范围1~100,预热阶段的呼叫,按照此接通率计算呼叫频率
|
|
25
|
+
*
|
|
26
|
+
* @example
|
|
27
|
+
* 59
|
|
28
|
+
*/
|
|
29
|
+
answerRate?: number;
|
|
30
|
+
/**
|
|
31
|
+
* @remarks
|
|
32
|
+
* 0.关闭 1.开启,默认开启。开启:任务中的号码呼叫完后,任务自动完成,状态设置为结束,关闭:任务中的号码呼叫完后,任务自动暂停,状态设置为暂停注:任务在结束状态时无法再次启动。
|
|
33
|
+
*
|
|
34
|
+
* @example
|
|
35
|
+
* 0
|
|
36
|
+
*/
|
|
37
|
+
autoComplete?: number;
|
|
38
|
+
/**
|
|
39
|
+
* @remarks
|
|
40
|
+
* 0.关闭 1.自动删除。任务数超出最大任务数限制时,是否自动删除已完成的最早创建的任务,值为1代表自动删除。注:autoDelete不是任务属性,只在接口调用时生效
|
|
41
|
+
*
|
|
42
|
+
* @example
|
|
43
|
+
* 0
|
|
44
|
+
*/
|
|
45
|
+
autoDelete?: number;
|
|
46
|
+
/**
|
|
47
|
+
* @remarks
|
|
48
|
+
* 定时开始;0.关闭 1.开启,默认关闭。值为1时autoStartDay和autoStartTime参数才生效,并且至少设置其中的一个
|
|
49
|
+
*
|
|
50
|
+
* @example
|
|
51
|
+
* 0
|
|
52
|
+
*/
|
|
53
|
+
autoStart?: number;
|
|
54
|
+
/**
|
|
55
|
+
* @remarks
|
|
56
|
+
* 定时开始日期;autoStart=1时生效。参数不传入时默认在当天的autoStartTime定时启动。格式:yyyy-MM-dd,如:2017-01-01
|
|
57
|
+
*
|
|
58
|
+
* @example
|
|
59
|
+
* 2026-01-01
|
|
60
|
+
*/
|
|
61
|
+
autoStartDay?: string;
|
|
62
|
+
/**
|
|
63
|
+
* @remarks
|
|
64
|
+
* 定时开始时间;autoStart=1时生效。参数不传入时默认在autoStartDay的00:00:00定时启动。格式:HH:mm:ss,如:08:00:00
|
|
65
|
+
*
|
|
66
|
+
* @example
|
|
67
|
+
* 08:00:00
|
|
68
|
+
*/
|
|
69
|
+
autoStartTime?: string;
|
|
70
|
+
/**
|
|
71
|
+
* @remarks
|
|
72
|
+
* 定时完成;0.关闭 1.开启,默认关闭。值为1时autoStopDay和autoStopTime参数才生效,并且至少设置其中的一个
|
|
73
|
+
*
|
|
74
|
+
* @example
|
|
75
|
+
* 0
|
|
76
|
+
*/
|
|
77
|
+
autoStop?: number;
|
|
78
|
+
/**
|
|
79
|
+
* @remarks
|
|
80
|
+
* 定时完成日期;autoStop=1时生效。参数不传入时默认在当天的autoStopTime定时完成。格式:yyyy-MM-dd,如:2017-01-01
|
|
81
|
+
*
|
|
82
|
+
* @example
|
|
83
|
+
* 2026-01-01
|
|
84
|
+
*/
|
|
85
|
+
autoStopDay?: string;
|
|
86
|
+
/**
|
|
87
|
+
* @remarks
|
|
88
|
+
* 定时完成时间;autoStop=1时生效。参数不传入时默认在autoStopDay的23:59:59定时完成。格式:HH:mm:ss,如:17:00:00
|
|
89
|
+
*
|
|
90
|
+
* @example
|
|
91
|
+
* 17:00:00
|
|
92
|
+
*/
|
|
93
|
+
autoStopTime?: string;
|
|
94
|
+
/**
|
|
95
|
+
* @remarks
|
|
96
|
+
* 0.连续呼叫 1.间隔呼叫,默认连续呼叫。配合定时开始(autoStart)和定时结束(autoStop)参数使用,如任务需要在每天的特定时间段内呼叫则开启间隔呼叫方式
|
|
97
|
+
*
|
|
98
|
+
* @example
|
|
99
|
+
* 0
|
|
100
|
+
*/
|
|
101
|
+
autoTaskType?: number;
|
|
102
|
+
/**
|
|
103
|
+
* @remarks
|
|
104
|
+
* 间隔呼叫时间段;autoTaskType=1时必填。呼叫的时间段配置。参数格式:时间条件编号。支持多个,多个使用英文","逗号隔开,如:9,22。注:时间条件列表可通过查询时间条件设置列表接口获取
|
|
105
|
+
*
|
|
106
|
+
* @example
|
|
107
|
+
* 9,22
|
|
108
|
+
*/
|
|
109
|
+
autoTriggerTimeStrategy?: string;
|
|
110
|
+
/**
|
|
111
|
+
* @remarks
|
|
112
|
+
* 指定座席方式;1.座席工号列表 2.外呼组,默认座席工号列表注:任务创建后不支持修改
|
|
113
|
+
*
|
|
114
|
+
* @example
|
|
115
|
+
* 1
|
|
116
|
+
*/
|
|
117
|
+
callGroupType?: number;
|
|
118
|
+
/**
|
|
119
|
+
* @remarks
|
|
120
|
+
* 座席当日接听的通话个数上限,使用方式详见下方说明;JsonArray格式 [{"cnos":["2000","2001"],"limit":"5"}注:使用座席当日接听数限制功能需开启企业配置,功能开启并且配置上限后系统才开始统计当日接听数
|
|
121
|
+
*
|
|
122
|
+
* @example
|
|
123
|
+
* [{"cnos":["2000","2001"],"limit":"5"}]
|
|
124
|
+
*/
|
|
125
|
+
callLimitStrategy?: string;
|
|
126
|
+
/**
|
|
127
|
+
* @remarks
|
|
128
|
+
* 数据结构为Json格式```{"strategy":[{"sort":1,"type":"retryCall", "desc":0},{"sort":2,"type":"firstCall","orderType":0}]}```格式说明:sort是重试号码和未呼叫号码的呼叫顺序 type:retryCall重试号码、firstCall未呼叫号码当type=retryCall,desc:0.优先呼叫待重呼轮次数值较小的号码,即轮次靠前(如第1轮、第2轮)的号码先被呼叫 1.优先呼叫待重呼轮次数值较大的号码,即轮次靠后(如第5轮、第4轮)的号码先被呼叫当type=firstCall时,orderType:随机呼叫,0顺序(优先级) 1随机 2顺序(导入时间)
|
|
129
|
+
*
|
|
130
|
+
* @example
|
|
131
|
+
* 0
|
|
132
|
+
*/
|
|
133
|
+
callPriorityStrategy?: string;
|
|
134
|
+
/**
|
|
135
|
+
* @remarks
|
|
136
|
+
* 1.直连座席 2.AI转人工 直连座席模式:客户接听后直接分配座席,无空闲座席可溢出语音导航(需配置语音导航),保障高优先级客户直连体验 AI转人工:客户接入后,优先进入语音导航中配置的智能体机器人,按交互结果决定是否转接座席,提升自动化覆盖率,降低人工成本
|
|
137
|
+
*
|
|
138
|
+
* @example
|
|
139
|
+
* 1
|
|
140
|
+
*/
|
|
141
|
+
callRouteStrategy?: number;
|
|
142
|
+
/**
|
|
143
|
+
* @remarks
|
|
144
|
+
* 座席分配规则;1.随机 2.顺序 3.座席未进线最大时(从上一次呼叫结束到当前的总时长) 4.座席状态[空闲]最长时长(座席最近一次切换为空闲状态的持续时长),默认随机
|
|
145
|
+
*
|
|
146
|
+
* @example
|
|
147
|
+
* 1
|
|
148
|
+
*/
|
|
149
|
+
callStrategy?: string;
|
|
150
|
+
/**
|
|
151
|
+
* @remarks
|
|
152
|
+
* 座席通道变量。JsonArray格式;最大支持5个变量。默认空值, 示例:[{"name":"abcdefg","value":"${cdr_enterprise_id}"}] 注:单个字段值的长度不能超过1000个字符。变量会以SIP_HEADER的形式设置到座席侧通道
|
|
153
|
+
*
|
|
154
|
+
* @example
|
|
155
|
+
* [{"name":"abcdefg","value":"${cdr_enterprise_id}"}]
|
|
156
|
+
*/
|
|
157
|
+
callVariables?: string;
|
|
158
|
+
/**
|
|
159
|
+
* @remarks
|
|
160
|
+
* 外显规则;customerClidType=2时生效。Json格式,外显号码选择规则:默认区号,是否匹配省会等;如:{"defaultAreaCode":"010", "isMatchCapital":"1"}。不建议使用
|
|
161
|
+
*
|
|
162
|
+
* @example
|
|
163
|
+
* {"defaultAreaCode":"010", "isMatchCapital":"1"}
|
|
164
|
+
*/
|
|
165
|
+
clidProperty?: string;
|
|
166
|
+
/**
|
|
167
|
+
* @remarks
|
|
168
|
+
* 座席工号列表;callGroupType=1时必填。支持多个座席工号,多个之间使用英文逗号\\",\\"分隔注:一个座席只能在一个运行中的任务中
|
|
169
|
+
*
|
|
170
|
+
* @example
|
|
171
|
+
* 1111,2222
|
|
172
|
+
*/
|
|
173
|
+
cnos?: string;
|
|
174
|
+
/**
|
|
175
|
+
* @remarks
|
|
176
|
+
* 任务维度限制最大并发数,实际并发不会超过最大并发限制。type=1时,配置成0表示不限制,座席数量少于10时建议配置该参数
|
|
177
|
+
*
|
|
178
|
+
* @example
|
|
179
|
+
* 0
|
|
180
|
+
*/
|
|
181
|
+
concurrency?: number;
|
|
182
|
+
/**
|
|
183
|
+
* @remarks
|
|
184
|
+
* 客户侧外显规则;customerClidsCategory=1或2时生效。1.随机 2.按区号,默认随机。不建议使用
|
|
185
|
+
*
|
|
186
|
+
* @example
|
|
187
|
+
* 1
|
|
188
|
+
*/
|
|
189
|
+
customerClidType?: number;
|
|
190
|
+
/**
|
|
191
|
+
* @remarks
|
|
192
|
+
* 外显号码比例配置内容;customerClidsCategory=1且customerClidWeightFlag=1时生效。JsonArray格式 [{"number":"123,345","weight":"5"}, {"number":"567,789","weight":"5"}],不建议使用
|
|
193
|
+
*
|
|
194
|
+
* @example
|
|
195
|
+
* [{"number":"123,345","weight":"5"}, {"number":"567,789","weight":"5"}]
|
|
196
|
+
*/
|
|
197
|
+
customerClidWeight?: string;
|
|
198
|
+
/**
|
|
199
|
+
* @remarks
|
|
200
|
+
* 外显号码比例配置开关;customerClidsCategory=1时生效。0.关闭 1.开启,默认关闭。不建议使用
|
|
201
|
+
*
|
|
202
|
+
* @example
|
|
203
|
+
* 0
|
|
204
|
+
*/
|
|
205
|
+
customerClidWeightFlag?: number;
|
|
206
|
+
/**
|
|
207
|
+
* @remarks
|
|
208
|
+
* 客户侧外显号码列表;customerClidsCategory=1或2时必填。支持多个,多个直接使用英文逗号\\",\\"分隔。不建议使用
|
|
209
|
+
*
|
|
210
|
+
* @example
|
|
211
|
+
* 7744331,7744332
|
|
212
|
+
*/
|
|
213
|
+
customerClids?: string;
|
|
214
|
+
/**
|
|
215
|
+
* @remarks
|
|
216
|
+
* 客户侧外显号码类型;1.外显固话 2.外显手机号 4.外显号码池 5.外显导航注:推荐使用外显导航,可以灵活调整和控制外显策略。其他类型将逐步下线
|
|
217
|
+
*
|
|
218
|
+
* @example
|
|
219
|
+
* 1
|
|
220
|
+
*/
|
|
221
|
+
customerClidsCategory?: number;
|
|
222
|
+
/**
|
|
223
|
+
* @remarks
|
|
224
|
+
* 客户侧外显号码池名称或外显导航标识;customerClidsCategory=4或5时必填。customerClidsCategory=4时customerClidsGroup传号码池名称。customerClidsCategory=5时customerClidsGroup传外显导航标识
|
|
225
|
+
*
|
|
226
|
+
* @example
|
|
227
|
+
* 示例值示例值
|
|
228
|
+
*/
|
|
229
|
+
customerClidsGroup?: string;
|
|
230
|
+
/**
|
|
231
|
+
* @remarks
|
|
232
|
+
* 客户侧等待音;客户接听后呼叫座席,等待座席接听时播放的语音,默认为空白音。支持公共语音和企业语音,值为语音文件的path,如:60000011533526918819
|
|
233
|
+
*
|
|
234
|
+
* @example
|
|
235
|
+
* 60000011533526918819
|
|
236
|
+
*/
|
|
237
|
+
customerMoh?: string;
|
|
238
|
+
/**
|
|
239
|
+
* @remarks
|
|
240
|
+
* 客户超时时间;单位秒数,默认30秒,取值范围5 ~ 60
|
|
241
|
+
*
|
|
242
|
+
* @example
|
|
243
|
+
* 30
|
|
244
|
+
*/
|
|
245
|
+
customerTimeout?: number;
|
|
246
|
+
/**
|
|
247
|
+
* @remarks
|
|
248
|
+
* 客户侧提示音;客户接听后呼转座席前播放的语音,提示音播放完成后再找座席,默认无提示音。支持公共语音和企业语音,值为语音文件的path,如:60000011533526918819
|
|
249
|
+
*
|
|
250
|
+
* @example
|
|
251
|
+
* 60000011533526918819
|
|
252
|
+
*/
|
|
253
|
+
customerVoice?: string;
|
|
254
|
+
/**
|
|
255
|
+
* @remarks
|
|
256
|
+
* 任务描述;需进行UTF-8格式的URLEncode编码,长度小于200字
|
|
257
|
+
*
|
|
258
|
+
* @example
|
|
259
|
+
* Task Description
|
|
260
|
+
*/
|
|
261
|
+
description?: string;
|
|
262
|
+
/**
|
|
263
|
+
* @remarks
|
|
264
|
+
* 呼叫中心 id
|
|
265
|
+
*
|
|
266
|
+
* This parameter is required.
|
|
267
|
+
*
|
|
268
|
+
* @example
|
|
269
|
+
* 36
|
|
270
|
+
*/
|
|
271
|
+
enterpriseId?: number;
|
|
272
|
+
/**
|
|
273
|
+
* @remarks
|
|
274
|
+
* 定时完成时强制结束任务;autoStop=1时生效。0.关闭 1.开启,默认关闭。开启配置后,当任务到定时完成时间时无论任务中的号码是否已经呼完,均将任务状态设置为结束。适用于对数据有呼叫时间限制的场景。注:任务在结束状态时无法再次启动。
|
|
275
|
+
*
|
|
276
|
+
* @example
|
|
277
|
+
* 0
|
|
278
|
+
*/
|
|
279
|
+
forceEndFlag?: number;
|
|
280
|
+
/**
|
|
281
|
+
* @remarks
|
|
282
|
+
* 暂停后重新预热;0.关闭,1开启,默认开启,任务暂停后是否需要重新预热
|
|
283
|
+
*
|
|
284
|
+
* @example
|
|
285
|
+
* 0
|
|
286
|
+
*/
|
|
287
|
+
isRewarm?: number;
|
|
288
|
+
/**
|
|
289
|
+
* @remarks
|
|
290
|
+
* 语音导航Id;参数ivrId和ivrName二选一,同时传入时ivrId生效,在创建自动外呼任务时ivrId或ivrName必选其一。预测外呼使用场景:如果客户接听后未在特定时间内(默认2秒)找到可用座席,通话将溢出到语音导航继续排队找座席。同时支持在呼转座席,座席未接听时也溢出到语音导航,需要开启企业配置生效自动外呼使用场景:客户接听后,转到的语音导航
|
|
291
|
+
*
|
|
292
|
+
* @example
|
|
293
|
+
* 42
|
|
294
|
+
*/
|
|
295
|
+
ivrId?: number;
|
|
296
|
+
/**
|
|
297
|
+
* @remarks
|
|
298
|
+
* 语音导航名称;参数ivrId和ivrName二选一,同时传入时ivrId生效,在创建自动外呼任务时ivrId或ivrName必选其一。
|
|
299
|
+
*
|
|
300
|
+
* @example
|
|
301
|
+
* IvrName1
|
|
302
|
+
*/
|
|
303
|
+
ivrName?: string;
|
|
304
|
+
/**
|
|
305
|
+
* @remarks
|
|
306
|
+
* 座席最长等待时间;默认40秒,最小10,最大600,允许座席空闲的最大时间。任务执行过程中,如果座席平均空闲时间大于maxWaitTime,每次呼叫个数会增加
|
|
307
|
+
*
|
|
308
|
+
* @example
|
|
309
|
+
* 40
|
|
310
|
+
*/
|
|
311
|
+
maxWaitTime?: number;
|
|
312
|
+
/**
|
|
313
|
+
* @remarks
|
|
314
|
+
* 最小可用座席数;默认为10,取值范围1 ~ 10。任务内可用座席数小于当前值时,任务自动暂停,避免骚扰
|
|
315
|
+
*
|
|
316
|
+
* @example
|
|
317
|
+
* 10
|
|
318
|
+
*/
|
|
319
|
+
minAvailableAgentCount?: number;
|
|
320
|
+
/**
|
|
321
|
+
* @remarks
|
|
322
|
+
* 任务名称;需进行UTF-8格式的URLEncode编码,长度小于50字
|
|
323
|
+
*
|
|
324
|
+
* This parameter is required.
|
|
325
|
+
*
|
|
326
|
+
* @example
|
|
327
|
+
* taskName
|
|
328
|
+
*/
|
|
329
|
+
name?: string;
|
|
330
|
+
ownerId?: number;
|
|
331
|
+
/**
|
|
332
|
+
* @remarks
|
|
333
|
+
* 超呼率;默认值为100,取值范围50~400
|
|
334
|
+
*
|
|
335
|
+
* @example
|
|
336
|
+
* 55
|
|
337
|
+
*/
|
|
338
|
+
predictAdjust?: number;
|
|
339
|
+
/**
|
|
340
|
+
* @remarks
|
|
341
|
+
* 骚扰率;默认值为1,取值范围为大于0,小于等于20,支持小数,精确到小数点两位。值越小呼叫的号码越少,值越大呼叫的号码越多,座席利用率越高
|
|
342
|
+
*
|
|
343
|
+
* @example
|
|
344
|
+
* 17.62
|
|
345
|
+
*/
|
|
346
|
+
quotiety?: number;
|
|
347
|
+
resourceOwnerAccount?: string;
|
|
348
|
+
resourceOwnerId?: number;
|
|
349
|
+
/**
|
|
350
|
+
* @remarks
|
|
351
|
+
* 重试策略;「基础模式」数据结构为Json格式```{"retry":2,"strategy":[{"round":1,"time":"1-1-1"},{"round":2,"time":"2-2-2"}]}```格式说明:retry是重试次数,round是第几次重试,time是第几次重试间隔的时间:1-1-1,第一个1是天,第二个1是小时,第三个1是分钟「高级模式」高级模式需要开启「号码状态识别」服务数据结构为JsonArray格式 ```[{"condition":{"sipCause":[710,719]},"retry":1,"sort":1,"strategy":[{"round":1,"time":"0-0-10"}]},{"condition":{"sipCause":[800]},"retry":1,"sort":2,"strategy":[{"round":2,"time":"0-0-10"}]}]```格式说明:condition是重试条件,sort是重试条件的顺序,其余字段与基础模式一致 注:基础模式和高级模式的区分根据传入的参数格式自动识别。基于首次呼叫时间重试时,每轮的重试时间必须大于上一轮的时间
|
|
352
|
+
*
|
|
353
|
+
* @example
|
|
354
|
+
* {"retry":2,"strategy":[{"round":1,"time":"1-1-1"},{"round":2,"time":"2-2-2"}]}
|
|
355
|
+
*/
|
|
356
|
+
retryStrategy?: string;
|
|
357
|
+
/**
|
|
358
|
+
* @remarks
|
|
359
|
+
* 任务仅当天生效;0.关闭 1.开启,删除待重试的数据和待呼叫的数据 2.开启,删除待重试的数据 3.开启,删除待呼叫的数据,默认关闭
|
|
360
|
+
*
|
|
361
|
+
* @example
|
|
362
|
+
* 0
|
|
363
|
+
*/
|
|
364
|
+
retryStrategyOnlyToday?: number;
|
|
365
|
+
/**
|
|
366
|
+
* @remarks
|
|
367
|
+
* 重试策略时间类型;配置重试策略时生效。 1.基于首次呼叫时间 2.基于上次呼叫时间,默认基于首次呼叫时间
|
|
368
|
+
*
|
|
369
|
+
* @example
|
|
370
|
+
* 1
|
|
371
|
+
*/
|
|
372
|
+
retryStrategyTimeType?: number;
|
|
373
|
+
/**
|
|
374
|
+
* @remarks
|
|
375
|
+
* 任务模板名称;通过任务模板可以实现对任务参数的统一管理以及简化接口传参,多个任务可以使用同一个模板管理参数,接口只需要传入任务间有差异的参数。参数生效规则:接口传入的参数优先。示例说明:如果接口传了参数autoStart=1和参数templateName=testTemplate,接口传入的参数autoStart生效。如果接口未传入autoStart参数或者传入的autoStart参数是空值,那么模版中的参数生效。注:任务模板可通过任务模板接口进行管理
|
|
376
|
+
*
|
|
377
|
+
* @example
|
|
378
|
+
* TemplateName
|
|
379
|
+
*/
|
|
380
|
+
templateName?: string;
|
|
381
|
+
/**
|
|
382
|
+
* @remarks
|
|
383
|
+
* 禁呼时间;在特定的时间段内禁止呼叫。参数格式:时间条件编号。支持多个,多个使用英文","逗号隔开,如:9,22。注:时间条件列表可通过查询时间条件设置列表接口获取
|
|
384
|
+
*
|
|
385
|
+
* @example
|
|
386
|
+
* 9,22
|
|
387
|
+
*/
|
|
388
|
+
timeStrategy?: string;
|
|
389
|
+
/**
|
|
390
|
+
* @remarks
|
|
391
|
+
* 1.预测外呼任务 2.自动外呼任务。外呼任务创建后任务类型不支持修改
|
|
392
|
+
*
|
|
393
|
+
* This parameter is required.
|
|
394
|
+
*
|
|
395
|
+
* @example
|
|
396
|
+
* 1
|
|
397
|
+
*/
|
|
398
|
+
type?: number;
|
|
399
|
+
/**
|
|
400
|
+
* @remarks
|
|
401
|
+
* 任务自定义字段。JsonArray格式;数组的每个元素只支持传递一组键值对,传递多组只取第一组,如 {"key", "value"}。 默认空值,示例:[{"name":"1234"},{"name1":"12345"}] 注:单个字段值的长度不能超过1000个字符
|
|
402
|
+
*
|
|
403
|
+
* @example
|
|
404
|
+
* [{"name":"1234"},{"name1":"12345"}]
|
|
405
|
+
*/
|
|
406
|
+
userFields?: string;
|
|
407
|
+
/**
|
|
408
|
+
* @remarks
|
|
409
|
+
* 任务预热时间;默认300秒, 取值范围60 ~ 600
|
|
410
|
+
*
|
|
411
|
+
* @example
|
|
412
|
+
* 93
|
|
413
|
+
*/
|
|
414
|
+
warmUpDuration?: number;
|
|
415
|
+
/**
|
|
416
|
+
* @remarks
|
|
417
|
+
* 座席整理时间;默认30秒,取值范围1~10800,整理时间会影响每次呼叫的个数,值越大,呼叫号码个数会减小
|
|
418
|
+
*
|
|
419
|
+
* @example
|
|
420
|
+
* 30
|
|
421
|
+
*/
|
|
422
|
+
wrapup?: number;
|
|
423
|
+
static names(): { [key: string]: string } {
|
|
424
|
+
return {
|
|
425
|
+
agentGroup: 'AgentGroup',
|
|
426
|
+
agentTimeout: 'AgentTimeout',
|
|
427
|
+
answerRate: 'AnswerRate',
|
|
428
|
+
autoComplete: 'AutoComplete',
|
|
429
|
+
autoDelete: 'AutoDelete',
|
|
430
|
+
autoStart: 'AutoStart',
|
|
431
|
+
autoStartDay: 'AutoStartDay',
|
|
432
|
+
autoStartTime: 'AutoStartTime',
|
|
433
|
+
autoStop: 'AutoStop',
|
|
434
|
+
autoStopDay: 'AutoStopDay',
|
|
435
|
+
autoStopTime: 'AutoStopTime',
|
|
436
|
+
autoTaskType: 'AutoTaskType',
|
|
437
|
+
autoTriggerTimeStrategy: 'AutoTriggerTimeStrategy',
|
|
438
|
+
callGroupType: 'CallGroupType',
|
|
439
|
+
callLimitStrategy: 'CallLimitStrategy',
|
|
440
|
+
callPriorityStrategy: 'CallPriorityStrategy',
|
|
441
|
+
callRouteStrategy: 'CallRouteStrategy',
|
|
442
|
+
callStrategy: 'CallStrategy',
|
|
443
|
+
callVariables: 'CallVariables',
|
|
444
|
+
clidProperty: 'ClidProperty',
|
|
445
|
+
cnos: 'Cnos',
|
|
446
|
+
concurrency: 'Concurrency',
|
|
447
|
+
customerClidType: 'CustomerClidType',
|
|
448
|
+
customerClidWeight: 'CustomerClidWeight',
|
|
449
|
+
customerClidWeightFlag: 'CustomerClidWeightFlag',
|
|
450
|
+
customerClids: 'CustomerClids',
|
|
451
|
+
customerClidsCategory: 'CustomerClidsCategory',
|
|
452
|
+
customerClidsGroup: 'CustomerClidsGroup',
|
|
453
|
+
customerMoh: 'CustomerMoh',
|
|
454
|
+
customerTimeout: 'CustomerTimeout',
|
|
455
|
+
customerVoice: 'CustomerVoice',
|
|
456
|
+
description: 'Description',
|
|
457
|
+
enterpriseId: 'EnterpriseId',
|
|
458
|
+
forceEndFlag: 'ForceEndFlag',
|
|
459
|
+
isRewarm: 'IsRewarm',
|
|
460
|
+
ivrId: 'IvrId',
|
|
461
|
+
ivrName: 'IvrName',
|
|
462
|
+
maxWaitTime: 'MaxWaitTime',
|
|
463
|
+
minAvailableAgentCount: 'MinAvailableAgentCount',
|
|
464
|
+
name: 'Name',
|
|
465
|
+
ownerId: 'OwnerId',
|
|
466
|
+
predictAdjust: 'PredictAdjust',
|
|
467
|
+
quotiety: 'Quotiety',
|
|
468
|
+
resourceOwnerAccount: 'ResourceOwnerAccount',
|
|
469
|
+
resourceOwnerId: 'ResourceOwnerId',
|
|
470
|
+
retryStrategy: 'RetryStrategy',
|
|
471
|
+
retryStrategyOnlyToday: 'RetryStrategyOnlyToday',
|
|
472
|
+
retryStrategyTimeType: 'RetryStrategyTimeType',
|
|
473
|
+
templateName: 'TemplateName',
|
|
474
|
+
timeStrategy: 'TimeStrategy',
|
|
475
|
+
type: 'Type',
|
|
476
|
+
userFields: 'UserFields',
|
|
477
|
+
warmUpDuration: 'WarmUpDuration',
|
|
478
|
+
wrapup: 'Wrapup',
|
|
479
|
+
};
|
|
480
|
+
}
|
|
481
|
+
|
|
482
|
+
static types(): { [key: string]: any } {
|
|
483
|
+
return {
|
|
484
|
+
agentGroup: 'string',
|
|
485
|
+
agentTimeout: 'number',
|
|
486
|
+
answerRate: 'number',
|
|
487
|
+
autoComplete: 'number',
|
|
488
|
+
autoDelete: 'number',
|
|
489
|
+
autoStart: 'number',
|
|
490
|
+
autoStartDay: 'string',
|
|
491
|
+
autoStartTime: 'string',
|
|
492
|
+
autoStop: 'number',
|
|
493
|
+
autoStopDay: 'string',
|
|
494
|
+
autoStopTime: 'string',
|
|
495
|
+
autoTaskType: 'number',
|
|
496
|
+
autoTriggerTimeStrategy: 'string',
|
|
497
|
+
callGroupType: 'number',
|
|
498
|
+
callLimitStrategy: 'string',
|
|
499
|
+
callPriorityStrategy: 'string',
|
|
500
|
+
callRouteStrategy: 'number',
|
|
501
|
+
callStrategy: 'string',
|
|
502
|
+
callVariables: 'string',
|
|
503
|
+
clidProperty: 'string',
|
|
504
|
+
cnos: 'string',
|
|
505
|
+
concurrency: 'number',
|
|
506
|
+
customerClidType: 'number',
|
|
507
|
+
customerClidWeight: 'string',
|
|
508
|
+
customerClidWeightFlag: 'number',
|
|
509
|
+
customerClids: 'string',
|
|
510
|
+
customerClidsCategory: 'number',
|
|
511
|
+
customerClidsGroup: 'string',
|
|
512
|
+
customerMoh: 'string',
|
|
513
|
+
customerTimeout: 'number',
|
|
514
|
+
customerVoice: 'string',
|
|
515
|
+
description: 'string',
|
|
516
|
+
enterpriseId: 'number',
|
|
517
|
+
forceEndFlag: 'number',
|
|
518
|
+
isRewarm: 'number',
|
|
519
|
+
ivrId: 'number',
|
|
520
|
+
ivrName: 'string',
|
|
521
|
+
maxWaitTime: 'number',
|
|
522
|
+
minAvailableAgentCount: 'number',
|
|
523
|
+
name: 'string',
|
|
524
|
+
ownerId: 'number',
|
|
525
|
+
predictAdjust: 'number',
|
|
526
|
+
quotiety: 'number',
|
|
527
|
+
resourceOwnerAccount: 'string',
|
|
528
|
+
resourceOwnerId: 'number',
|
|
529
|
+
retryStrategy: 'string',
|
|
530
|
+
retryStrategyOnlyToday: 'number',
|
|
531
|
+
retryStrategyTimeType: 'number',
|
|
532
|
+
templateName: 'string',
|
|
533
|
+
timeStrategy: 'string',
|
|
534
|
+
type: 'number',
|
|
535
|
+
userFields: 'string',
|
|
536
|
+
warmUpDuration: 'number',
|
|
537
|
+
wrapup: 'number',
|
|
538
|
+
};
|
|
539
|
+
}
|
|
540
|
+
|
|
541
|
+
validate() {
|
|
542
|
+
super.validate();
|
|
543
|
+
}
|
|
544
|
+
|
|
545
|
+
constructor(map?: { [key: string]: any }) {
|
|
546
|
+
super(map);
|
|
547
|
+
}
|
|
548
|
+
}
|
|
549
|
+
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
// This file is auto-generated, don't edit it
|
|
2
|
+
import * as $dara from '@darabonba/typescript';
|
|
3
|
+
import { CloudCreateTaskResponseBody } from "./CloudCreateTaskResponseBody";
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
export class CloudCreateTaskResponse extends $dara.Model {
|
|
7
|
+
headers?: { [key: string]: string };
|
|
8
|
+
statusCode?: number;
|
|
9
|
+
body?: CloudCreateTaskResponseBody;
|
|
10
|
+
static names(): { [key: string]: string } {
|
|
11
|
+
return {
|
|
12
|
+
headers: 'headers',
|
|
13
|
+
statusCode: 'statusCode',
|
|
14
|
+
body: 'body',
|
|
15
|
+
};
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static types(): { [key: string]: any } {
|
|
19
|
+
return {
|
|
20
|
+
headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
|
|
21
|
+
statusCode: 'number',
|
|
22
|
+
body: CloudCreateTaskResponseBody,
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
validate() {
|
|
27
|
+
if(this.headers) {
|
|
28
|
+
$dara.Model.validateMap(this.headers);
|
|
29
|
+
}
|
|
30
|
+
if(this.body && typeof (this.body as any).validate === 'function') {
|
|
31
|
+
(this.body as any).validate();
|
|
32
|
+
}
|
|
33
|
+
super.validate();
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
constructor(map?: { [key: string]: any }) {
|
|
37
|
+
super(map);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
|