@alicloud/ccc20200701 2.38.3 → 2.39.1

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 CHANGED
@@ -365,6 +365,27 @@ export default class Client extends OpenApi {
365
365
  * @returns ChangeWorkModeResponse
366
366
  */
367
367
  changeWorkMode(request: $_model.ChangeWorkModeRequest): Promise<$_model.ChangeWorkModeResponse>;
368
+ /**
369
+ * Checks whether the current time is a working hour, considering holidays and special workdays.
370
+ *
371
+ * @remarks
372
+ * Accounts with RAM permissions can go to the Resource Access Management (RAM) console to query all RAM users managed under the Alibaba Cloud account. RAM console URL: https://ram.console.aliyun.com/users.
373
+ *
374
+ * @param request - CheckBusinessHoursRequest
375
+ * @param runtime - runtime options for this request RuntimeOptions
376
+ * @returns CheckBusinessHoursResponse
377
+ */
378
+ checkBusinessHoursWithOptions(request: $_model.CheckBusinessHoursRequest, runtime: $dara.RuntimeOptions): Promise<$_model.CheckBusinessHoursResponse>;
379
+ /**
380
+ * Checks whether the current time is a working hour, considering holidays and special workdays.
381
+ *
382
+ * @remarks
383
+ * Accounts with RAM permissions can go to the Resource Access Management (RAM) console to query all RAM users managed under the Alibaba Cloud account. RAM console URL: https://ram.console.aliyun.com/users.
384
+ *
385
+ * @param request - CheckBusinessHoursRequest
386
+ * @returns CheckBusinessHoursResponse
387
+ */
388
+ checkBusinessHours(request: $_model.CheckBusinessHoursRequest): Promise<$_model.CheckBusinessHoursResponse>;
368
389
  /**
369
390
  * Call the `ClaimCall` API to assign a call to an agent.
370
391
  *
@@ -2144,7 +2165,7 @@ export default class Client extends OpenApi {
2144
2165
  */
2145
2166
  listHistoricalAgentSkillGroupReport(request: $_model.ListHistoricalAgentSkillGroupReportRequest): Promise<$_model.ListHistoricalAgentSkillGroupReportResponse>;
2146
2167
  /**
2147
- * You can invoke ListHistoricalSkillGroupReport to obtain historical data reports for one or more skill groups under a specified instance.
2168
+ * Retrieves historical data reports for one or more skill groups in a specified instance.
2148
2169
  *
2149
2170
  * @param request - ListHistoricalSkillGroupReportRequest
2150
2171
  * @param runtime - runtime options for this request RuntimeOptions
@@ -2152,7 +2173,7 @@ export default class Client extends OpenApi {
2152
2173
  */
2153
2174
  listHistoricalSkillGroupReportWithOptions(request: $_model.ListHistoricalSkillGroupReportRequest, runtime: $dara.RuntimeOptions): Promise<$_model.ListHistoricalSkillGroupReportResponse>;
2154
2175
  /**
2155
- * You can invoke ListHistoricalSkillGroupReport to obtain historical data reports for one or more skill groups under a specified instance.
2176
+ * Retrieves historical data reports for one or more skill groups in a specified instance.
2156
2177
  *
2157
2178
  * @param request - ListHistoricalSkillGroupReportRequest
2158
2179
  * @returns ListHistoricalSkillGroupReportResponse
package/dist/client.js CHANGED
@@ -1267,6 +1267,54 @@ class Client extends openapi_core_1.default {
1267
1267
  let runtime = new $dara.RuntimeOptions({});
1268
1268
  return await this.changeWorkModeWithOptions(request, runtime);
1269
1269
  }
1270
+ /**
1271
+ * Checks whether the current time is a working hour, considering holidays and special workdays.
1272
+ *
1273
+ * @remarks
1274
+ * Accounts with RAM permissions can go to the Resource Access Management (RAM) console to query all RAM users managed under the Alibaba Cloud account. RAM console URL: https://ram.console.aliyun.com/users.
1275
+ *
1276
+ * @param request - CheckBusinessHoursRequest
1277
+ * @param runtime - runtime options for this request RuntimeOptions
1278
+ * @returns CheckBusinessHoursResponse
1279
+ */
1280
+ async checkBusinessHoursWithOptions(request, runtime) {
1281
+ request.validate();
1282
+ let query = {};
1283
+ if (!$dara.isNull(request.instanceId)) {
1284
+ query["InstanceId"] = request.instanceId;
1285
+ }
1286
+ if (!$dara.isNull(request.time)) {
1287
+ query["Time"] = request.time;
1288
+ }
1289
+ let req = new openapi_core_2.$OpenApiUtil.OpenApiRequest({
1290
+ query: openapi_core_2.OpenApiUtil.query(query),
1291
+ });
1292
+ let params = new openapi_core_2.$OpenApiUtil.Params({
1293
+ action: "CheckBusinessHours",
1294
+ version: "2020-07-01",
1295
+ protocol: "HTTPS",
1296
+ pathname: "/",
1297
+ method: "POST",
1298
+ authType: "AK",
1299
+ style: "RPC",
1300
+ reqBodyType: "formData",
1301
+ bodyType: "json",
1302
+ });
1303
+ return $dara.cast(await this.callApi(params, req, runtime), new $_model.CheckBusinessHoursResponse({}));
1304
+ }
1305
+ /**
1306
+ * Checks whether the current time is a working hour, considering holidays and special workdays.
1307
+ *
1308
+ * @remarks
1309
+ * Accounts with RAM permissions can go to the Resource Access Management (RAM) console to query all RAM users managed under the Alibaba Cloud account. RAM console URL: https://ram.console.aliyun.com/users.
1310
+ *
1311
+ * @param request - CheckBusinessHoursRequest
1312
+ * @returns CheckBusinessHoursResponse
1313
+ */
1314
+ async checkBusinessHours(request) {
1315
+ let runtime = new $dara.RuntimeOptions({});
1316
+ return await this.checkBusinessHoursWithOptions(request, runtime);
1317
+ }
1270
1318
  /**
1271
1319
  * Call the `ClaimCall` API to assign a call to an agent.
1272
1320
  *
@@ -7058,7 +7106,7 @@ class Client extends openapi_core_1.default {
7058
7106
  return await this.listHistoricalAgentSkillGroupReportWithOptions(request, runtime);
7059
7107
  }
7060
7108
  /**
7061
- * You can invoke ListHistoricalSkillGroupReport to obtain historical data reports for one or more skill groups under a specified instance.
7109
+ * Retrieves historical data reports for one or more skill groups in a specified instance.
7062
7110
  *
7063
7111
  * @param request - ListHistoricalSkillGroupReportRequest
7064
7112
  * @param runtime - runtime options for this request RuntimeOptions
@@ -7085,6 +7133,9 @@ class Client extends openapi_core_1.default {
7085
7133
  if (!$dara.isNull(request.startTime)) {
7086
7134
  query["StartTime"] = request.startTime;
7087
7135
  }
7136
+ if (!$dara.isNull(request.summarizeByInstanceId)) {
7137
+ query["SummarizeByInstanceId"] = request.summarizeByInstanceId;
7138
+ }
7088
7139
  let body = {};
7089
7140
  if (!$dara.isNull(request.skillGroupIdList)) {
7090
7141
  body["SkillGroupIdList"] = request.skillGroupIdList;
@@ -7107,7 +7158,7 @@ class Client extends openapi_core_1.default {
7107
7158
  return $dara.cast(await this.callApi(params, req, runtime), new $_model.ListHistoricalSkillGroupReportResponse({}));
7108
7159
  }
7109
7160
  /**
7110
- * You can invoke ListHistoricalSkillGroupReport to obtain historical data reports for one or more skill groups under a specified instance.
7161
+ * Retrieves historical data reports for one or more skill groups in a specified instance.
7111
7162
  *
7112
7163
  * @param request - ListHistoricalSkillGroupReportRequest
7113
7164
  * @returns ListHistoricalSkillGroupReportResponse