@alicloud/ccc20200701 2.22.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.22.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 } {
@@ -37922,6 +38009,56 @@ export default class Client extends OpenApi {
37922
38009
  return await this.exportDoNotCallNumbersWithOptions(request, runtime);
37923
38010
  }
37924
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
+
37925
38062
  /**
37926
38063
  * @summary GetAccessChannelOfStaging
37927
38064
  *