@alicloud/ccc20200701 2.21.0 → 2.23.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/ccc20200701",
3
- "version": "2.21.0",
3
+ "version": "2.23.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -5047,6 +5047,93 @@ export class ExportDoNotCallNumbersResponse extends $tea.Model {
5047
5047
  }
5048
5048
  }
5049
5049
 
5050
+ export class FinishTicketTaskRequest extends $tea.Model {
5051
+ comment?: string;
5052
+ instanceId?: string;
5053
+ taskId?: string;
5054
+ ticketId?: string;
5055
+ static names(): { [key: string]: string } {
5056
+ return {
5057
+ comment: 'Comment',
5058
+ instanceId: 'InstanceId',
5059
+ taskId: 'TaskId',
5060
+ ticketId: 'TicketId',
5061
+ };
5062
+ }
5063
+
5064
+ static types(): { [key: string]: any } {
5065
+ return {
5066
+ comment: 'string',
5067
+ instanceId: 'string',
5068
+ taskId: 'string',
5069
+ ticketId: 'string',
5070
+ };
5071
+ }
5072
+
5073
+ constructor(map?: { [key: string]: any }) {
5074
+ super(map);
5075
+ }
5076
+ }
5077
+
5078
+ export class FinishTicketTaskResponseBody extends $tea.Model {
5079
+ code?: string;
5080
+ data?: any;
5081
+ httpStatusCode?: number;
5082
+ message?: string;
5083
+ params?: string[];
5084
+ requestId?: string;
5085
+ static names(): { [key: string]: string } {
5086
+ return {
5087
+ code: 'Code',
5088
+ data: 'Data',
5089
+ httpStatusCode: 'HttpStatusCode',
5090
+ message: 'Message',
5091
+ params: 'Params',
5092
+ requestId: 'RequestId',
5093
+ };
5094
+ }
5095
+
5096
+ static types(): { [key: string]: any } {
5097
+ return {
5098
+ code: 'string',
5099
+ data: 'any',
5100
+ httpStatusCode: 'number',
5101
+ message: 'string',
5102
+ params: { 'type': 'array', 'itemType': 'string' },
5103
+ requestId: 'string',
5104
+ };
5105
+ }
5106
+
5107
+ constructor(map?: { [key: string]: any }) {
5108
+ super(map);
5109
+ }
5110
+ }
5111
+
5112
+ export class FinishTicketTaskResponse extends $tea.Model {
5113
+ headers?: { [key: string]: string };
5114
+ statusCode?: number;
5115
+ body?: FinishTicketTaskResponseBody;
5116
+ static names(): { [key: string]: string } {
5117
+ return {
5118
+ headers: 'headers',
5119
+ statusCode: 'statusCode',
5120
+ body: 'body',
5121
+ };
5122
+ }
5123
+
5124
+ static types(): { [key: string]: any } {
5125
+ return {
5126
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5127
+ statusCode: 'number',
5128
+ body: FinishTicketTaskResponseBody,
5129
+ };
5130
+ }
5131
+
5132
+ constructor(map?: { [key: string]: any }) {
5133
+ super(map);
5134
+ }
5135
+ }
5136
+
5050
5137
  export class GetAccessChannelOfStagingRequest extends $tea.Model {
5051
5138
  searchPattern?: string;
5052
5139
  static names(): { [key: string]: string } {
@@ -9994,6 +10081,90 @@ export class ListCasesResponse extends $tea.Model {
9994
10081
  }
9995
10082
  }
9996
10083
 
10084
+ export class ListCategoriesRequest extends $tea.Model {
10085
+ categoryId?: string;
10086
+ instanceId?: string;
10087
+ type?: string;
10088
+ static names(): { [key: string]: string } {
10089
+ return {
10090
+ categoryId: 'CategoryId',
10091
+ instanceId: 'InstanceId',
10092
+ type: 'Type',
10093
+ };
10094
+ }
10095
+
10096
+ static types(): { [key: string]: any } {
10097
+ return {
10098
+ categoryId: 'string',
10099
+ instanceId: 'string',
10100
+ type: 'string',
10101
+ };
10102
+ }
10103
+
10104
+ constructor(map?: { [key: string]: any }) {
10105
+ super(map);
10106
+ }
10107
+ }
10108
+
10109
+ export class ListCategoriesResponseBody extends $tea.Model {
10110
+ code?: string;
10111
+ data?: string;
10112
+ httpStatusCode?: number;
10113
+ message?: string;
10114
+ params?: string[];
10115
+ requestId?: string;
10116
+ static names(): { [key: string]: string } {
10117
+ return {
10118
+ code: 'Code',
10119
+ data: 'Data',
10120
+ httpStatusCode: 'HttpStatusCode',
10121
+ message: 'Message',
10122
+ params: 'Params',
10123
+ requestId: 'RequestId',
10124
+ };
10125
+ }
10126
+
10127
+ static types(): { [key: string]: any } {
10128
+ return {
10129
+ code: 'string',
10130
+ data: 'string',
10131
+ httpStatusCode: 'number',
10132
+ message: 'string',
10133
+ params: { 'type': 'array', 'itemType': 'string' },
10134
+ requestId: 'string',
10135
+ };
10136
+ }
10137
+
10138
+ constructor(map?: { [key: string]: any }) {
10139
+ super(map);
10140
+ }
10141
+ }
10142
+
10143
+ export class ListCategoriesResponse extends $tea.Model {
10144
+ headers?: { [key: string]: string };
10145
+ statusCode?: number;
10146
+ body?: ListCategoriesResponseBody;
10147
+ static names(): { [key: string]: string } {
10148
+ return {
10149
+ headers: 'headers',
10150
+ statusCode: 'statusCode',
10151
+ body: 'body',
10152
+ };
10153
+ }
10154
+
10155
+ static types(): { [key: string]: any } {
10156
+ return {
10157
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
10158
+ statusCode: 'number',
10159
+ body: ListCategoriesResponseBody,
10160
+ };
10161
+ }
10162
+
10163
+ constructor(map?: { [key: string]: any }) {
10164
+ super(map);
10165
+ }
10166
+ }
10167
+
9997
10168
  export class ListCommonTicketFieldsRequest extends $tea.Model {
9998
10169
  instanceId?: string;
9999
10170
  static names(): { [key: string]: string } {
@@ -37838,6 +38009,56 @@ export default class Client extends OpenApi {
37838
38009
  return await this.exportDoNotCallNumbersWithOptions(request, runtime);
37839
38010
  }
37840
38011
 
38012
+ /**
38013
+ * @param request FinishTicketTaskRequest
38014
+ * @param runtime runtime options for this request RuntimeOptions
38015
+ * @return FinishTicketTaskResponse
38016
+ */
38017
+ async finishTicketTaskWithOptions(request: FinishTicketTaskRequest, runtime: $Util.RuntimeOptions): Promise<FinishTicketTaskResponse> {
38018
+ Util.validateModel(request);
38019
+ let query = { };
38020
+ if (!Util.isUnset(request.comment)) {
38021
+ query["Comment"] = request.comment;
38022
+ }
38023
+
38024
+ if (!Util.isUnset(request.instanceId)) {
38025
+ query["InstanceId"] = request.instanceId;
38026
+ }
38027
+
38028
+ if (!Util.isUnset(request.taskId)) {
38029
+ query["TaskId"] = request.taskId;
38030
+ }
38031
+
38032
+ if (!Util.isUnset(request.ticketId)) {
38033
+ query["TicketId"] = request.ticketId;
38034
+ }
38035
+
38036
+ let req = new $OpenApi.OpenApiRequest({
38037
+ query: OpenApiUtil.query(query),
38038
+ });
38039
+ let params = new $OpenApi.Params({
38040
+ action: "FinishTicketTask",
38041
+ version: "2020-07-01",
38042
+ protocol: "HTTPS",
38043
+ pathname: "/",
38044
+ method: "POST",
38045
+ authType: "AK",
38046
+ style: "RPC",
38047
+ reqBodyType: "formData",
38048
+ bodyType: "json",
38049
+ });
38050
+ return $tea.cast<FinishTicketTaskResponse>(await this.callApi(params, req, runtime), new FinishTicketTaskResponse({}));
38051
+ }
38052
+
38053
+ /**
38054
+ * @param request FinishTicketTaskRequest
38055
+ * @return FinishTicketTaskResponse
38056
+ */
38057
+ async finishTicketTask(request: FinishTicketTaskRequest): Promise<FinishTicketTaskResponse> {
38058
+ let runtime = new $Util.RuntimeOptions({ });
38059
+ return await this.finishTicketTaskWithOptions(request, runtime);
38060
+ }
38061
+
37841
38062
  /**
37842
38063
  * @summary GetAccessChannelOfStaging
37843
38064
  *
@@ -40748,6 +40969,52 @@ export default class Client extends OpenApi {
40748
40969
  return await this.listCasesWithOptions(request, runtime);
40749
40970
  }
40750
40971
 
40972
+ /**
40973
+ * @param request ListCategoriesRequest
40974
+ * @param runtime runtime options for this request RuntimeOptions
40975
+ * @return ListCategoriesResponse
40976
+ */
40977
+ async listCategoriesWithOptions(request: ListCategoriesRequest, runtime: $Util.RuntimeOptions): Promise<ListCategoriesResponse> {
40978
+ Util.validateModel(request);
40979
+ let query = { };
40980
+ if (!Util.isUnset(request.categoryId)) {
40981
+ query["CategoryId"] = request.categoryId;
40982
+ }
40983
+
40984
+ if (!Util.isUnset(request.instanceId)) {
40985
+ query["InstanceId"] = request.instanceId;
40986
+ }
40987
+
40988
+ if (!Util.isUnset(request.type)) {
40989
+ query["Type"] = request.type;
40990
+ }
40991
+
40992
+ let req = new $OpenApi.OpenApiRequest({
40993
+ query: OpenApiUtil.query(query),
40994
+ });
40995
+ let params = new $OpenApi.Params({
40996
+ action: "ListCategories",
40997
+ version: "2020-07-01",
40998
+ protocol: "HTTPS",
40999
+ pathname: "/",
41000
+ method: "POST",
41001
+ authType: "AK",
41002
+ style: "RPC",
41003
+ reqBodyType: "formData",
41004
+ bodyType: "json",
41005
+ });
41006
+ return $tea.cast<ListCategoriesResponse>(await this.callApi(params, req, runtime), new ListCategoriesResponse({}));
41007
+ }
41008
+
41009
+ /**
41010
+ * @param request ListCategoriesRequest
41011
+ * @return ListCategoriesResponse
41012
+ */
41013
+ async listCategories(request: ListCategoriesRequest): Promise<ListCategoriesResponse> {
41014
+ let runtime = new $Util.RuntimeOptions({ });
41015
+ return await this.listCategoriesWithOptions(request, runtime);
41016
+ }
41017
+
40751
41018
  /**
40752
41019
  * @param request ListCommonTicketFieldsRequest
40753
41020
  * @param runtime runtime options for this request RuntimeOptions