@alicloud/ccc20200701 2.11.4 → 2.12.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 CHANGED
@@ -745,6 +745,53 @@ export declare class CancelAttendedTransferResponse extends $tea.Model {
745
745
  [key: string]: any;
746
746
  });
747
747
  }
748
+ export declare class ChangeVisibilityRequest extends $tea.Model {
749
+ instanceId?: string;
750
+ invisible?: boolean;
751
+ userId?: string;
752
+ static names(): {
753
+ [key: string]: string;
754
+ };
755
+ static types(): {
756
+ [key: string]: any;
757
+ };
758
+ constructor(map?: {
759
+ [key: string]: any;
760
+ });
761
+ }
762
+ export declare class ChangeVisibilityResponseBody extends $tea.Model {
763
+ code?: string;
764
+ data?: ChangeVisibilityResponseBodyData;
765
+ httpStatusCode?: number;
766
+ message?: string;
767
+ params?: string[];
768
+ requestId?: string;
769
+ static names(): {
770
+ [key: string]: string;
771
+ };
772
+ static types(): {
773
+ [key: string]: any;
774
+ };
775
+ constructor(map?: {
776
+ [key: string]: any;
777
+ });
778
+ }
779
+ export declare class ChangeVisibilityResponse extends $tea.Model {
780
+ headers: {
781
+ [key: string]: string;
782
+ };
783
+ statusCode: number;
784
+ body: ChangeVisibilityResponseBody;
785
+ static names(): {
786
+ [key: string]: string;
787
+ };
788
+ static types(): {
789
+ [key: string]: any;
790
+ };
791
+ constructor(map?: {
792
+ [key: string]: any;
793
+ });
794
+ }
748
795
  export declare class ChangeWorkModeRequest extends $tea.Model {
749
796
  deviceId?: string;
750
797
  instanceId?: string;
@@ -8843,6 +8890,27 @@ export declare class CancelAttendedTransferResponseBodyData extends $tea.Model {
8843
8890
  [key: string]: any;
8844
8891
  });
8845
8892
  }
8893
+ export declare class ChangeVisibilityResponseBodyData extends $tea.Model {
8894
+ breakCode?: string;
8895
+ deviceId?: string;
8896
+ extension?: string;
8897
+ instanceId?: string;
8898
+ jobId?: string;
8899
+ outboundScenario?: boolean;
8900
+ signedSkillGroupIdList?: string[];
8901
+ userId?: string;
8902
+ userState?: string;
8903
+ workMode?: string;
8904
+ static names(): {
8905
+ [key: string]: string;
8906
+ };
8907
+ static types(): {
8908
+ [key: string]: any;
8909
+ };
8910
+ constructor(map?: {
8911
+ [key: string]: any;
8912
+ });
8913
+ }
8846
8914
  export declare class ChangeWorkModeResponseBodyData extends $tea.Model {
8847
8915
  breakCode?: string;
8848
8916
  deviceId?: string;
@@ -15015,6 +15083,8 @@ export default class Client extends OpenApi {
15015
15083
  bridgeRtcCall(request: BridgeRtcCallRequest): Promise<BridgeRtcCallResponse>;
15016
15084
  cancelAttendedTransferWithOptions(request: CancelAttendedTransferRequest, runtime: $Util.RuntimeOptions): Promise<CancelAttendedTransferResponse>;
15017
15085
  cancelAttendedTransfer(request: CancelAttendedTransferRequest): Promise<CancelAttendedTransferResponse>;
15086
+ changeVisibilityWithOptions(request: ChangeVisibilityRequest, runtime: $Util.RuntimeOptions): Promise<ChangeVisibilityResponse>;
15087
+ changeVisibility(request: ChangeVisibilityRequest): Promise<ChangeVisibilityResponse>;
15018
15088
  changeWorkModeWithOptions(request: ChangeWorkModeRequest, runtime: $Util.RuntimeOptions): Promise<ChangeWorkModeResponse>;
15019
15089
  changeWorkMode(request: ChangeWorkModeRequest): Promise<ChangeWorkModeResponse>;
15020
15090
  coachCallWithOptions(request: CoachCallRequest, runtime: $Util.RuntimeOptions): Promise<CoachCallResponse>;
@@ -15161,9 +15231,35 @@ export default class Client extends OpenApi {
15161
15231
  launchSurvey(request: LaunchSurveyRequest): Promise<LaunchSurveyResponse>;
15162
15232
  listAgentStateLogsWithOptions(request: ListAgentStateLogsRequest, runtime: $Util.RuntimeOptions): Promise<ListAgentStateLogsResponse>;
15163
15233
  listAgentStateLogs(request: ListAgentStateLogsRequest): Promise<ListAgentStateLogsResponse>;
15234
+ /**
15235
+ * @deprecated : ListAgentStates is deprecated, please use CCC::2020-07-01::ListRealtimeAgentStates instead.
15236
+ *
15237
+ * @param request ListAgentStatesRequest
15238
+ * @param runtime runtime options for this request RuntimeOptions
15239
+ * @return ListAgentStatesResponse
15240
+ */
15164
15241
  listAgentStatesWithOptions(request: ListAgentStatesRequest, runtime: $Util.RuntimeOptions): Promise<ListAgentStatesResponse>;
15242
+ /**
15243
+ * @deprecated : ListAgentStates is deprecated, please use CCC::2020-07-01::ListRealtimeAgentStates instead.
15244
+ *
15245
+ * @param request ListAgentStatesRequest
15246
+ * @return ListAgentStatesResponse
15247
+ */
15165
15248
  listAgentStates(request: ListAgentStatesRequest): Promise<ListAgentStatesResponse>;
15249
+ /**
15250
+ * @deprecated : ListAgentSummaryReportsSinceMidnight is deprecated, please use CCC::2020-07-01::ListHistoricalAgentReport instead.
15251
+ *
15252
+ * @param request ListAgentSummaryReportsSinceMidnightRequest
15253
+ * @param runtime runtime options for this request RuntimeOptions
15254
+ * @return ListAgentSummaryReportsSinceMidnightResponse
15255
+ */
15166
15256
  listAgentSummaryReportsSinceMidnightWithOptions(request: ListAgentSummaryReportsSinceMidnightRequest, runtime: $Util.RuntimeOptions): Promise<ListAgentSummaryReportsSinceMidnightResponse>;
15257
+ /**
15258
+ * @deprecated : ListAgentSummaryReportsSinceMidnight is deprecated, please use CCC::2020-07-01::ListHistoricalAgentReport instead.
15259
+ *
15260
+ * @param request ListAgentSummaryReportsSinceMidnightRequest
15261
+ * @return ListAgentSummaryReportsSinceMidnightResponse
15262
+ */
15167
15263
  listAgentSummaryReportsSinceMidnight(request: ListAgentSummaryReportsSinceMidnightRequest): Promise<ListAgentSummaryReportsSinceMidnightResponse>;
15168
15264
  listAttemptsWithOptions(request: ListAttemptsRequest, runtime: $Util.RuntimeOptions): Promise<ListAttemptsResponse>;
15169
15265
  listAttempts(request: ListAttemptsRequest): Promise<ListAttemptsResponse>;
@@ -15256,9 +15352,35 @@ export default class Client extends OpenApi {
15256
15352
  listRecentCallDetailRecords(request: ListRecentCallDetailRecordsRequest): Promise<ListRecentCallDetailRecordsResponse>;
15257
15353
  listRolesWithOptions(request: ListRolesRequest, runtime: $Util.RuntimeOptions): Promise<ListRolesResponse>;
15258
15354
  listRoles(request: ListRolesRequest): Promise<ListRolesResponse>;
15355
+ /**
15356
+ * @deprecated : ListSkillGroupStates is deprecated, please use CCC::2020-07-01::ListRealtimeSkillGroupStates instead.
15357
+ *
15358
+ * @param request ListSkillGroupStatesRequest
15359
+ * @param runtime runtime options for this request RuntimeOptions
15360
+ * @return ListSkillGroupStatesResponse
15361
+ */
15259
15362
  listSkillGroupStatesWithOptions(request: ListSkillGroupStatesRequest, runtime: $Util.RuntimeOptions): Promise<ListSkillGroupStatesResponse>;
15363
+ /**
15364
+ * @deprecated : ListSkillGroupStates is deprecated, please use CCC::2020-07-01::ListRealtimeSkillGroupStates instead.
15365
+ *
15366
+ * @param request ListSkillGroupStatesRequest
15367
+ * @return ListSkillGroupStatesResponse
15368
+ */
15260
15369
  listSkillGroupStates(request: ListSkillGroupStatesRequest): Promise<ListSkillGroupStatesResponse>;
15370
+ /**
15371
+ * @deprecated : ListSkillGroupSummaryReportsSinceMidnight is deprecated, please use CCC::2020-07-01::ListHistoricalSkillGroupReport instead.
15372
+ *
15373
+ * @param request ListSkillGroupSummaryReportsSinceMidnightRequest
15374
+ * @param runtime runtime options for this request RuntimeOptions
15375
+ * @return ListSkillGroupSummaryReportsSinceMidnightResponse
15376
+ */
15261
15377
  listSkillGroupSummaryReportsSinceMidnightWithOptions(request: ListSkillGroupSummaryReportsSinceMidnightRequest, runtime: $Util.RuntimeOptions): Promise<ListSkillGroupSummaryReportsSinceMidnightResponse>;
15378
+ /**
15379
+ * @deprecated : ListSkillGroupSummaryReportsSinceMidnight is deprecated, please use CCC::2020-07-01::ListHistoricalSkillGroupReport instead.
15380
+ *
15381
+ * @param request ListSkillGroupSummaryReportsSinceMidnightRequest
15382
+ * @return ListSkillGroupSummaryReportsSinceMidnightResponse
15383
+ */
15262
15384
  listSkillGroupSummaryReportsSinceMidnight(request: ListSkillGroupSummaryReportsSinceMidnightRequest): Promise<ListSkillGroupSummaryReportsSinceMidnightResponse>;
15263
15385
  listSkillGroupsWithOptions(request: ListSkillGroupsRequest, runtime: $Util.RuntimeOptions): Promise<ListSkillGroupsResponse>;
15264
15386
  listSkillGroups(request: ListSkillGroupsRequest): Promise<ListSkillGroupsResponse>;
package/dist/client.js CHANGED
@@ -1065,6 +1065,72 @@ class CancelAttendedTransferResponse extends $tea.Model {
1065
1065
  }
1066
1066
  }
1067
1067
  exports.CancelAttendedTransferResponse = CancelAttendedTransferResponse;
1068
+ class ChangeVisibilityRequest extends $tea.Model {
1069
+ constructor(map) {
1070
+ super(map);
1071
+ }
1072
+ static names() {
1073
+ return {
1074
+ instanceId: 'InstanceId',
1075
+ invisible: 'Invisible',
1076
+ userId: 'UserId',
1077
+ };
1078
+ }
1079
+ static types() {
1080
+ return {
1081
+ instanceId: 'string',
1082
+ invisible: 'boolean',
1083
+ userId: 'string',
1084
+ };
1085
+ }
1086
+ }
1087
+ exports.ChangeVisibilityRequest = ChangeVisibilityRequest;
1088
+ class ChangeVisibilityResponseBody extends $tea.Model {
1089
+ constructor(map) {
1090
+ super(map);
1091
+ }
1092
+ static names() {
1093
+ return {
1094
+ code: 'Code',
1095
+ data: 'Data',
1096
+ httpStatusCode: 'HttpStatusCode',
1097
+ message: 'Message',
1098
+ params: 'Params',
1099
+ requestId: 'RequestId',
1100
+ };
1101
+ }
1102
+ static types() {
1103
+ return {
1104
+ code: 'string',
1105
+ data: ChangeVisibilityResponseBodyData,
1106
+ httpStatusCode: 'number',
1107
+ message: 'string',
1108
+ params: { 'type': 'array', 'itemType': 'string' },
1109
+ requestId: 'string',
1110
+ };
1111
+ }
1112
+ }
1113
+ exports.ChangeVisibilityResponseBody = ChangeVisibilityResponseBody;
1114
+ class ChangeVisibilityResponse extends $tea.Model {
1115
+ constructor(map) {
1116
+ super(map);
1117
+ }
1118
+ static names() {
1119
+ return {
1120
+ headers: 'headers',
1121
+ statusCode: 'statusCode',
1122
+ body: 'body',
1123
+ };
1124
+ }
1125
+ static types() {
1126
+ return {
1127
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
1128
+ statusCode: 'number',
1129
+ body: ChangeVisibilityResponseBody,
1130
+ };
1131
+ }
1132
+ }
1133
+ exports.ChangeVisibilityResponse = ChangeVisibilityResponse;
1068
1134
  class ChangeWorkModeRequest extends $tea.Model {
1069
1135
  constructor(map) {
1070
1136
  super(map);
@@ -12565,6 +12631,40 @@ class CancelAttendedTransferResponseBodyData extends $tea.Model {
12565
12631
  }
12566
12632
  }
12567
12633
  exports.CancelAttendedTransferResponseBodyData = CancelAttendedTransferResponseBodyData;
12634
+ class ChangeVisibilityResponseBodyData extends $tea.Model {
12635
+ constructor(map) {
12636
+ super(map);
12637
+ }
12638
+ static names() {
12639
+ return {
12640
+ breakCode: 'BreakCode',
12641
+ deviceId: 'DeviceId',
12642
+ extension: 'Extension',
12643
+ instanceId: 'InstanceId',
12644
+ jobId: 'JobId',
12645
+ outboundScenario: 'OutboundScenario',
12646
+ signedSkillGroupIdList: 'SignedSkillGroupIdList',
12647
+ userId: 'UserId',
12648
+ userState: 'UserState',
12649
+ workMode: 'WorkMode',
12650
+ };
12651
+ }
12652
+ static types() {
12653
+ return {
12654
+ breakCode: 'string',
12655
+ deviceId: 'string',
12656
+ extension: 'string',
12657
+ instanceId: 'string',
12658
+ jobId: 'string',
12659
+ outboundScenario: 'boolean',
12660
+ signedSkillGroupIdList: { 'type': 'array', 'itemType': 'string' },
12661
+ userId: 'string',
12662
+ userState: 'string',
12663
+ workMode: 'string',
12664
+ };
12665
+ }
12666
+ }
12667
+ exports.ChangeVisibilityResponseBodyData = ChangeVisibilityResponseBodyData;
12568
12668
  class ChangeWorkModeResponseBodyData extends $tea.Model {
12569
12669
  constructor(map) {
12570
12670
  super(map);
@@ -23040,6 +23140,38 @@ class Client extends openapi_client_1.default {
23040
23140
  let runtime = new $Util.RuntimeOptions({});
23041
23141
  return await this.cancelAttendedTransferWithOptions(request, runtime);
23042
23142
  }
23143
+ async changeVisibilityWithOptions(request, runtime) {
23144
+ tea_util_1.default.validateModel(request);
23145
+ let query = {};
23146
+ if (!tea_util_1.default.isUnset(request.instanceId)) {
23147
+ query["InstanceId"] = request.instanceId;
23148
+ }
23149
+ if (!tea_util_1.default.isUnset(request.invisible)) {
23150
+ query["Invisible"] = request.invisible;
23151
+ }
23152
+ if (!tea_util_1.default.isUnset(request.userId)) {
23153
+ query["UserId"] = request.userId;
23154
+ }
23155
+ let req = new $OpenApi.OpenApiRequest({
23156
+ query: openapi_util_1.default.query(query),
23157
+ });
23158
+ let params = new $OpenApi.Params({
23159
+ action: "ChangeVisibility",
23160
+ version: "2020-07-01",
23161
+ protocol: "HTTPS",
23162
+ pathname: "/",
23163
+ method: "POST",
23164
+ authType: "AK",
23165
+ style: "RPC",
23166
+ reqBodyType: "formData",
23167
+ bodyType: "json",
23168
+ });
23169
+ return $tea.cast(await this.callApi(params, req, runtime), new ChangeVisibilityResponse({}));
23170
+ }
23171
+ async changeVisibility(request) {
23172
+ let runtime = new $Util.RuntimeOptions({});
23173
+ return await this.changeVisibilityWithOptions(request, runtime);
23174
+ }
23043
23175
  async changeWorkModeWithOptions(request, runtime) {
23044
23176
  tea_util_1.default.validateModel(request);
23045
23177
  let query = {};
@@ -25055,6 +25187,14 @@ class Client extends openapi_client_1.default {
25055
25187
  let runtime = new $Util.RuntimeOptions({});
25056
25188
  return await this.listAgentStateLogsWithOptions(request, runtime);
25057
25189
  }
25190
+ /**
25191
+ * @deprecated : ListAgentStates is deprecated, please use CCC::2020-07-01::ListRealtimeAgentStates instead.
25192
+ *
25193
+ * @param request ListAgentStatesRequest
25194
+ * @param runtime runtime options for this request RuntimeOptions
25195
+ * @return ListAgentStatesResponse
25196
+ */
25197
+ // Deprecated
25058
25198
  async listAgentStatesWithOptions(request, runtime) {
25059
25199
  tea_util_1.default.validateModel(request);
25060
25200
  let query = {};
@@ -25095,10 +25235,25 @@ class Client extends openapi_client_1.default {
25095
25235
  });
25096
25236
  return $tea.cast(await this.callApi(params, req, runtime), new ListAgentStatesResponse({}));
25097
25237
  }
25238
+ /**
25239
+ * @deprecated : ListAgentStates is deprecated, please use CCC::2020-07-01::ListRealtimeAgentStates instead.
25240
+ *
25241
+ * @param request ListAgentStatesRequest
25242
+ * @return ListAgentStatesResponse
25243
+ */
25244
+ // Deprecated
25098
25245
  async listAgentStates(request) {
25099
25246
  let runtime = new $Util.RuntimeOptions({});
25100
25247
  return await this.listAgentStatesWithOptions(request, runtime);
25101
25248
  }
25249
+ /**
25250
+ * @deprecated : ListAgentSummaryReportsSinceMidnight is deprecated, please use CCC::2020-07-01::ListHistoricalAgentReport instead.
25251
+ *
25252
+ * @param request ListAgentSummaryReportsSinceMidnightRequest
25253
+ * @param runtime runtime options for this request RuntimeOptions
25254
+ * @return ListAgentSummaryReportsSinceMidnightResponse
25255
+ */
25256
+ // Deprecated
25102
25257
  async listAgentSummaryReportsSinceMidnightWithOptions(request, runtime) {
25103
25258
  tea_util_1.default.validateModel(request);
25104
25259
  let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
@@ -25118,6 +25273,13 @@ class Client extends openapi_client_1.default {
25118
25273
  });
25119
25274
  return $tea.cast(await this.callApi(params, req, runtime), new ListAgentSummaryReportsSinceMidnightResponse({}));
25120
25275
  }
25276
+ /**
25277
+ * @deprecated : ListAgentSummaryReportsSinceMidnight is deprecated, please use CCC::2020-07-01::ListHistoricalAgentReport instead.
25278
+ *
25279
+ * @param request ListAgentSummaryReportsSinceMidnightRequest
25280
+ * @return ListAgentSummaryReportsSinceMidnightResponse
25281
+ */
25282
+ // Deprecated
25121
25283
  async listAgentSummaryReportsSinceMidnight(request) {
25122
25284
  let runtime = new $Util.RuntimeOptions({});
25123
25285
  return await this.listAgentSummaryReportsSinceMidnightWithOptions(request, runtime);
@@ -26634,6 +26796,14 @@ class Client extends openapi_client_1.default {
26634
26796
  let runtime = new $Util.RuntimeOptions({});
26635
26797
  return await this.listRolesWithOptions(request, runtime);
26636
26798
  }
26799
+ /**
26800
+ * @deprecated : ListSkillGroupStates is deprecated, please use CCC::2020-07-01::ListRealtimeSkillGroupStates instead.
26801
+ *
26802
+ * @param request ListSkillGroupStatesRequest
26803
+ * @param runtime runtime options for this request RuntimeOptions
26804
+ * @return ListSkillGroupStatesResponse
26805
+ */
26806
+ // Deprecated
26637
26807
  async listSkillGroupStatesWithOptions(request, runtime) {
26638
26808
  tea_util_1.default.validateModel(request);
26639
26809
  let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
@@ -26653,10 +26823,25 @@ class Client extends openapi_client_1.default {
26653
26823
  });
26654
26824
  return $tea.cast(await this.callApi(params, req, runtime), new ListSkillGroupStatesResponse({}));
26655
26825
  }
26826
+ /**
26827
+ * @deprecated : ListSkillGroupStates is deprecated, please use CCC::2020-07-01::ListRealtimeSkillGroupStates instead.
26828
+ *
26829
+ * @param request ListSkillGroupStatesRequest
26830
+ * @return ListSkillGroupStatesResponse
26831
+ */
26832
+ // Deprecated
26656
26833
  async listSkillGroupStates(request) {
26657
26834
  let runtime = new $Util.RuntimeOptions({});
26658
26835
  return await this.listSkillGroupStatesWithOptions(request, runtime);
26659
26836
  }
26837
+ /**
26838
+ * @deprecated : ListSkillGroupSummaryReportsSinceMidnight is deprecated, please use CCC::2020-07-01::ListHistoricalSkillGroupReport instead.
26839
+ *
26840
+ * @param request ListSkillGroupSummaryReportsSinceMidnightRequest
26841
+ * @param runtime runtime options for this request RuntimeOptions
26842
+ * @return ListSkillGroupSummaryReportsSinceMidnightResponse
26843
+ */
26844
+ // Deprecated
26660
26845
  async listSkillGroupSummaryReportsSinceMidnightWithOptions(request, runtime) {
26661
26846
  tea_util_1.default.validateModel(request);
26662
26847
  let query = openapi_util_1.default.query(tea_util_1.default.toMap(request));
@@ -26676,6 +26861,13 @@ class Client extends openapi_client_1.default {
26676
26861
  });
26677
26862
  return $tea.cast(await this.callApi(params, req, runtime), new ListSkillGroupSummaryReportsSinceMidnightResponse({}));
26678
26863
  }
26864
+ /**
26865
+ * @deprecated : ListSkillGroupSummaryReportsSinceMidnight is deprecated, please use CCC::2020-07-01::ListHistoricalSkillGroupReport instead.
26866
+ *
26867
+ * @param request ListSkillGroupSummaryReportsSinceMidnightRequest
26868
+ * @return ListSkillGroupSummaryReportsSinceMidnightResponse
26869
+ */
26870
+ // Deprecated
26679
26871
  async listSkillGroupSummaryReportsSinceMidnight(request) {
26680
26872
  let runtime = new $Util.RuntimeOptions({});
26681
26873
  return await this.listSkillGroupSummaryReportsSinceMidnightWithOptions(request, runtime);