@alicloud/ccc20200701 2.20.0 → 2.22.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.20.0",
3
+ "version": "2.22.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -9994,6 +9994,90 @@ export class ListCasesResponse extends $tea.Model {
9994
9994
  }
9995
9995
  }
9996
9996
 
9997
+ export class ListCategoriesRequest extends $tea.Model {
9998
+ categoryId?: string;
9999
+ instanceId?: string;
10000
+ type?: string;
10001
+ static names(): { [key: string]: string } {
10002
+ return {
10003
+ categoryId: 'CategoryId',
10004
+ instanceId: 'InstanceId',
10005
+ type: 'Type',
10006
+ };
10007
+ }
10008
+
10009
+ static types(): { [key: string]: any } {
10010
+ return {
10011
+ categoryId: 'string',
10012
+ instanceId: 'string',
10013
+ type: 'string',
10014
+ };
10015
+ }
10016
+
10017
+ constructor(map?: { [key: string]: any }) {
10018
+ super(map);
10019
+ }
10020
+ }
10021
+
10022
+ export class ListCategoriesResponseBody extends $tea.Model {
10023
+ code?: string;
10024
+ data?: string;
10025
+ httpStatusCode?: number;
10026
+ message?: string;
10027
+ params?: string[];
10028
+ requestId?: string;
10029
+ static names(): { [key: string]: string } {
10030
+ return {
10031
+ code: 'Code',
10032
+ data: 'Data',
10033
+ httpStatusCode: 'HttpStatusCode',
10034
+ message: 'Message',
10035
+ params: 'Params',
10036
+ requestId: 'RequestId',
10037
+ };
10038
+ }
10039
+
10040
+ static types(): { [key: string]: any } {
10041
+ return {
10042
+ code: 'string',
10043
+ data: 'string',
10044
+ httpStatusCode: 'number',
10045
+ message: 'string',
10046
+ params: { 'type': 'array', 'itemType': 'string' },
10047
+ requestId: 'string',
10048
+ };
10049
+ }
10050
+
10051
+ constructor(map?: { [key: string]: any }) {
10052
+ super(map);
10053
+ }
10054
+ }
10055
+
10056
+ export class ListCategoriesResponse extends $tea.Model {
10057
+ headers?: { [key: string]: string };
10058
+ statusCode?: number;
10059
+ body?: ListCategoriesResponseBody;
10060
+ static names(): { [key: string]: string } {
10061
+ return {
10062
+ headers: 'headers',
10063
+ statusCode: 'statusCode',
10064
+ body: 'body',
10065
+ };
10066
+ }
10067
+
10068
+ static types(): { [key: string]: any } {
10069
+ return {
10070
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
10071
+ statusCode: 'number',
10072
+ body: ListCategoriesResponseBody,
10073
+ };
10074
+ }
10075
+
10076
+ constructor(map?: { [key: string]: any }) {
10077
+ super(map);
10078
+ }
10079
+ }
10080
+
9997
10081
  export class ListCommonTicketFieldsRequest extends $tea.Model {
9998
10082
  instanceId?: string;
9999
10083
  static names(): { [key: string]: string } {
@@ -13355,6 +13439,99 @@ export class ListTicketTasksResponse extends $tea.Model {
13355
13439
  }
13356
13440
  }
13357
13441
 
13442
+ export class ListTicketTemplatesRequest extends $tea.Model {
13443
+ categoryId?: string;
13444
+ instanceId?: string;
13445
+ pageNumber?: number;
13446
+ pageSize?: number;
13447
+ searchPattern?: string;
13448
+ state?: string;
13449
+ static names(): { [key: string]: string } {
13450
+ return {
13451
+ categoryId: 'CategoryId',
13452
+ instanceId: 'InstanceId',
13453
+ pageNumber: 'PageNumber',
13454
+ pageSize: 'PageSize',
13455
+ searchPattern: 'SearchPattern',
13456
+ state: 'State',
13457
+ };
13458
+ }
13459
+
13460
+ static types(): { [key: string]: any } {
13461
+ return {
13462
+ categoryId: 'string',
13463
+ instanceId: 'string',
13464
+ pageNumber: 'number',
13465
+ pageSize: 'number',
13466
+ searchPattern: 'string',
13467
+ state: 'string',
13468
+ };
13469
+ }
13470
+
13471
+ constructor(map?: { [key: string]: any }) {
13472
+ super(map);
13473
+ }
13474
+ }
13475
+
13476
+ export class ListTicketTemplatesResponseBody extends $tea.Model {
13477
+ code?: string;
13478
+ data?: ListTicketTemplatesResponseBodyData;
13479
+ httpStatusCode?: number;
13480
+ message?: string;
13481
+ params?: string[];
13482
+ requestId?: string;
13483
+ static names(): { [key: string]: string } {
13484
+ return {
13485
+ code: 'Code',
13486
+ data: 'Data',
13487
+ httpStatusCode: 'HttpStatusCode',
13488
+ message: 'Message',
13489
+ params: 'Params',
13490
+ requestId: 'RequestId',
13491
+ };
13492
+ }
13493
+
13494
+ static types(): { [key: string]: any } {
13495
+ return {
13496
+ code: 'string',
13497
+ data: ListTicketTemplatesResponseBodyData,
13498
+ httpStatusCode: 'number',
13499
+ message: 'string',
13500
+ params: { 'type': 'array', 'itemType': 'string' },
13501
+ requestId: 'string',
13502
+ };
13503
+ }
13504
+
13505
+ constructor(map?: { [key: string]: any }) {
13506
+ super(map);
13507
+ }
13508
+ }
13509
+
13510
+ export class ListTicketTemplatesResponse extends $tea.Model {
13511
+ headers?: { [key: string]: string };
13512
+ statusCode?: number;
13513
+ body?: ListTicketTemplatesResponseBody;
13514
+ static names(): { [key: string]: string } {
13515
+ return {
13516
+ headers: 'headers',
13517
+ statusCode: 'statusCode',
13518
+ body: 'body',
13519
+ };
13520
+ }
13521
+
13522
+ static types(): { [key: string]: any } {
13523
+ return {
13524
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
13525
+ statusCode: 'number',
13526
+ body: ListTicketTemplatesResponseBody,
13527
+ };
13528
+ }
13529
+
13530
+ constructor(map?: { [key: string]: any }) {
13531
+ super(map);
13532
+ }
13533
+ }
13534
+
13358
13535
  export class ListTicketsRequest extends $tea.Model {
13359
13536
  assignee?: string;
13360
13537
  assigneeType?: string;
@@ -31504,6 +31681,162 @@ export class ListTicketTasksResponseBodyData extends $tea.Model {
31504
31681
  }
31505
31682
  }
31506
31683
 
31684
+ export class ListTicketTemplatesResponseBodyDataListTicketFields extends $tea.Model {
31685
+ array?: boolean;
31686
+ attribute?: string;
31687
+ createdTime?: number;
31688
+ creator?: string;
31689
+ dataType?: string;
31690
+ description?: string;
31691
+ disabled?: boolean;
31692
+ displayName?: string;
31693
+ displayOrder?: number;
31694
+ editorType?: string;
31695
+ maxLength?: number;
31696
+ maximum?: number;
31697
+ minLength?: number;
31698
+ minimum?: number;
31699
+ name?: string;
31700
+ pattern?: string;
31701
+ patternErrorMessage?: string;
31702
+ readOnly?: boolean;
31703
+ required?: boolean;
31704
+ system?: boolean;
31705
+ updatedTime?: number;
31706
+ static names(): { [key: string]: string } {
31707
+ return {
31708
+ array: 'Array',
31709
+ attribute: 'Attribute',
31710
+ createdTime: 'CreatedTime',
31711
+ creator: 'Creator',
31712
+ dataType: 'DataType',
31713
+ description: 'Description',
31714
+ disabled: 'Disabled',
31715
+ displayName: 'DisplayName',
31716
+ displayOrder: 'DisplayOrder',
31717
+ editorType: 'EditorType',
31718
+ maxLength: 'MaxLength',
31719
+ maximum: 'Maximum',
31720
+ minLength: 'MinLength',
31721
+ minimum: 'Minimum',
31722
+ name: 'Name',
31723
+ pattern: 'Pattern',
31724
+ patternErrorMessage: 'PatternErrorMessage',
31725
+ readOnly: 'ReadOnly',
31726
+ required: 'Required',
31727
+ system: 'System',
31728
+ updatedTime: 'UpdatedTime',
31729
+ };
31730
+ }
31731
+
31732
+ static types(): { [key: string]: any } {
31733
+ return {
31734
+ array: 'boolean',
31735
+ attribute: 'string',
31736
+ createdTime: 'number',
31737
+ creator: 'string',
31738
+ dataType: 'string',
31739
+ description: 'string',
31740
+ disabled: 'boolean',
31741
+ displayName: 'string',
31742
+ displayOrder: 'number',
31743
+ editorType: 'string',
31744
+ maxLength: 'number',
31745
+ maximum: 'number',
31746
+ minLength: 'number',
31747
+ minimum: 'number',
31748
+ name: 'string',
31749
+ pattern: 'string',
31750
+ patternErrorMessage: 'string',
31751
+ readOnly: 'boolean',
31752
+ required: 'boolean',
31753
+ system: 'boolean',
31754
+ updatedTime: 'number',
31755
+ };
31756
+ }
31757
+
31758
+ constructor(map?: { [key: string]: any }) {
31759
+ super(map);
31760
+ }
31761
+ }
31762
+
31763
+ export class ListTicketTemplatesResponseBodyDataList extends $tea.Model {
31764
+ appliedVersion?: string;
31765
+ categoryId?: string;
31766
+ editor?: string;
31767
+ instanceId?: string;
31768
+ latestVersion?: string;
31769
+ name?: string;
31770
+ processDefinition?: string;
31771
+ state?: string;
31772
+ templateId?: string;
31773
+ ticketFields?: ListTicketTemplatesResponseBodyDataListTicketFields[];
31774
+ updatedTime?: number;
31775
+ static names(): { [key: string]: string } {
31776
+ return {
31777
+ appliedVersion: 'AppliedVersion',
31778
+ categoryId: 'CategoryId',
31779
+ editor: 'Editor',
31780
+ instanceId: 'InstanceId',
31781
+ latestVersion: 'LatestVersion',
31782
+ name: 'Name',
31783
+ processDefinition: 'ProcessDefinition',
31784
+ state: 'State',
31785
+ templateId: 'TemplateId',
31786
+ ticketFields: 'TicketFields',
31787
+ updatedTime: 'UpdatedTime',
31788
+ };
31789
+ }
31790
+
31791
+ static types(): { [key: string]: any } {
31792
+ return {
31793
+ appliedVersion: 'string',
31794
+ categoryId: 'string',
31795
+ editor: 'string',
31796
+ instanceId: 'string',
31797
+ latestVersion: 'string',
31798
+ name: 'string',
31799
+ processDefinition: 'string',
31800
+ state: 'string',
31801
+ templateId: 'string',
31802
+ ticketFields: { 'type': 'array', 'itemType': ListTicketTemplatesResponseBodyDataListTicketFields },
31803
+ updatedTime: 'number',
31804
+ };
31805
+ }
31806
+
31807
+ constructor(map?: { [key: string]: any }) {
31808
+ super(map);
31809
+ }
31810
+ }
31811
+
31812
+ export class ListTicketTemplatesResponseBodyData extends $tea.Model {
31813
+ list?: ListTicketTemplatesResponseBodyDataList[];
31814
+ pageNumber?: number;
31815
+ pageSize?: number;
31816
+ totalCount?: number;
31817
+ static names(): { [key: string]: string } {
31818
+ return {
31819
+ list: 'List',
31820
+ pageNumber: 'PageNumber',
31821
+ pageSize: 'PageSize',
31822
+ totalCount: 'TotalCount',
31823
+ };
31824
+ }
31825
+
31826
+ static types(): { [key: string]: any } {
31827
+ return {
31828
+ list: { 'type': 'array', 'itemType': ListTicketTemplatesResponseBodyDataList },
31829
+ pageNumber: 'number',
31830
+ pageSize: 'number',
31831
+ totalCount: 'number',
31832
+ };
31833
+ }
31834
+
31835
+ constructor(map?: { [key: string]: any }) {
31836
+ super(map);
31837
+ }
31838
+ }
31839
+
31507
31840
  export class ListTicketsResponseBodyDataList extends $tea.Model {
31508
31841
  assignee?: string;
31509
31842
  assigneeName?: string;
@@ -40499,6 +40832,52 @@ export default class Client extends OpenApi {
40499
40832
  return await this.listCasesWithOptions(request, runtime);
40500
40833
  }
40501
40834
 
40835
+ /**
40836
+ * @param request ListCategoriesRequest
40837
+ * @param runtime runtime options for this request RuntimeOptions
40838
+ * @return ListCategoriesResponse
40839
+ */
40840
+ async listCategoriesWithOptions(request: ListCategoriesRequest, runtime: $Util.RuntimeOptions): Promise<ListCategoriesResponse> {
40841
+ Util.validateModel(request);
40842
+ let query = { };
40843
+ if (!Util.isUnset(request.categoryId)) {
40844
+ query["CategoryId"] = request.categoryId;
40845
+ }
40846
+
40847
+ if (!Util.isUnset(request.instanceId)) {
40848
+ query["InstanceId"] = request.instanceId;
40849
+ }
40850
+
40851
+ if (!Util.isUnset(request.type)) {
40852
+ query["Type"] = request.type;
40853
+ }
40854
+
40855
+ let req = new $OpenApi.OpenApiRequest({
40856
+ query: OpenApiUtil.query(query),
40857
+ });
40858
+ let params = new $OpenApi.Params({
40859
+ action: "ListCategories",
40860
+ version: "2020-07-01",
40861
+ protocol: "HTTPS",
40862
+ pathname: "/",
40863
+ method: "POST",
40864
+ authType: "AK",
40865
+ style: "RPC",
40866
+ reqBodyType: "formData",
40867
+ bodyType: "json",
40868
+ });
40869
+ return $tea.cast<ListCategoriesResponse>(await this.callApi(params, req, runtime), new ListCategoriesResponse({}));
40870
+ }
40871
+
40872
+ /**
40873
+ * @param request ListCategoriesRequest
40874
+ * @return ListCategoriesResponse
40875
+ */
40876
+ async listCategories(request: ListCategoriesRequest): Promise<ListCategoriesResponse> {
40877
+ let runtime = new $Util.RuntimeOptions({ });
40878
+ return await this.listCategoriesWithOptions(request, runtime);
40879
+ }
40880
+
40502
40881
  /**
40503
40882
  * @param request ListCommonTicketFieldsRequest
40504
40883
  * @param runtime runtime options for this request RuntimeOptions
@@ -42559,6 +42938,64 @@ export default class Client extends OpenApi {
42559
42938
  return await this.listTicketTasksWithOptions(request, runtime);
42560
42939
  }
42561
42940
 
42941
+ /**
42942
+ * @param request ListTicketTemplatesRequest
42943
+ * @param runtime runtime options for this request RuntimeOptions
42944
+ * @return ListTicketTemplatesResponse
42945
+ */
42946
+ async listTicketTemplatesWithOptions(request: ListTicketTemplatesRequest, runtime: $Util.RuntimeOptions): Promise<ListTicketTemplatesResponse> {
42947
+ Util.validateModel(request);
42948
+ let query = { };
42949
+ if (!Util.isUnset(request.categoryId)) {
42950
+ query["CategoryId"] = request.categoryId;
42951
+ }
42952
+
42953
+ if (!Util.isUnset(request.instanceId)) {
42954
+ query["InstanceId"] = request.instanceId;
42955
+ }
42956
+
42957
+ if (!Util.isUnset(request.pageNumber)) {
42958
+ query["PageNumber"] = request.pageNumber;
42959
+ }
42960
+
42961
+ if (!Util.isUnset(request.pageSize)) {
42962
+ query["PageSize"] = request.pageSize;
42963
+ }
42964
+
42965
+ if (!Util.isUnset(request.searchPattern)) {
42966
+ query["SearchPattern"] = request.searchPattern;
42967
+ }
42968
+
42969
+ if (!Util.isUnset(request.state)) {
42970
+ query["State"] = request.state;
42971
+ }
42972
+
42973
+ let req = new $OpenApi.OpenApiRequest({
42974
+ query: OpenApiUtil.query(query),
42975
+ });
42976
+ let params = new $OpenApi.Params({
42977
+ action: "ListTicketTemplates",
42978
+ version: "2020-07-01",
42979
+ protocol: "HTTPS",
42980
+ pathname: "/",
42981
+ method: "POST",
42982
+ authType: "AK",
42983
+ style: "RPC",
42984
+ reqBodyType: "formData",
42985
+ bodyType: "json",
42986
+ });
42987
+ return $tea.cast<ListTicketTemplatesResponse>(await this.callApi(params, req, runtime), new ListTicketTemplatesResponse({}));
42988
+ }
42989
+
42990
+ /**
42991
+ * @param request ListTicketTemplatesRequest
42992
+ * @return ListTicketTemplatesResponse
42993
+ */
42994
+ async listTicketTemplates(request: ListTicketTemplatesRequest): Promise<ListTicketTemplatesResponse> {
42995
+ let runtime = new $Util.RuntimeOptions({ });
42996
+ return await this.listTicketTemplatesWithOptions(request, runtime);
42997
+ }
42998
+
42562
42999
  /**
42563
43000
  * @param request ListTicketsRequest
42564
43001
  * @param runtime runtime options for this request RuntimeOptions