tencentcloud-sdk-nodejs 4.0.575 → 4.0.576
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/CHANGELOG.md +273 -0
- package/SERVICE_CHANGELOG.md +380 -124
- package/package.json +1 -1
- package/products.md +23 -22
- package/src/common/sdk_version.ts +1 -1
- package/src/services/cdb/v20170320/cdb_models.ts +4 -4
- package/src/services/ckafka/v20190819/ckafka_models.ts +6 -0
- package/src/services/clb/v20180317/clb_models.ts +16 -0
- package/src/services/cls/v20201016/cls_models.ts +22 -0
- package/src/services/cwp/v20180228/cwp_client.ts +13 -0
- package/src/services/cwp/v20180228/cwp_models.ts +249 -0
- package/src/services/dbbrain/v20210527/dbbrain_client.ts +12 -0
- package/src/services/dbbrain/v20210527/dbbrain_models.ts +38 -2
- package/src/services/emr/v20190103/emr_client.ts +28 -1
- package/src/services/emr/v20190103/emr_models.ts +134 -5
- package/src/services/ess/v20201111/ess_client.ts +1 -1
- package/src/services/ess/v20201111/ess_models.ts +1 -1
- package/src/services/essbasic/v20210526/essbasic_client.ts +1 -1
- package/src/services/gaap/v20180529/gaap_models.ts +1 -1
- package/src/services/index.ts +1 -0
- package/src/services/lcic/v20220817/lcic_client.ts +14 -1
- package/src/services/lcic/v20220817/lcic_models.ts +130 -6
- package/src/services/mongodb/v20190725/mongodb_client.ts +3 -3
- package/src/services/mongodb/v20190725/mongodb_models.ts +13 -12
- package/src/services/monitor/v20180724/monitor_client.ts +1 -0
- package/src/services/monitor/v20180724/monitor_models.ts +59 -0
- package/src/services/ocr/v20181119/ocr_client.ts +25 -6
- package/src/services/ocr/v20181119/ocr_models.ts +282 -159
- package/src/services/rum/v20210622/rum_models.ts +10 -5
- package/src/services/teo/v20220901/teo_models.ts +18 -10
- package/src/services/tke/v20180525/tke_models.ts +5 -5
- package/src/services/tourism/index.ts +5 -0
- package/src/services/tourism/v20230215/index.ts +6 -0
- package/src/services/tourism/v20230215/tourism_client.ts +44 -0
- package/src/services/tourism/v20230215/tourism_models.ts +128 -0
- package/src/services/trtc/v20190722/trtc_models.ts +2 -2
- package/tencentcloud/common/sdk_version.d.ts +1 -1
- package/tencentcloud/common/sdk_version.js +1 -1
- package/tencentcloud/services/cdb/v20170320/cdb_models.d.ts +4 -4
- package/tencentcloud/services/ckafka/v20190819/ckafka_models.d.ts +5 -0
- package/tencentcloud/services/clb/v20180317/clb_models.d.ts +13 -0
- package/tencentcloud/services/cls/v20201016/cls_models.d.ts +18 -0
- package/tencentcloud/services/cwp/v20180228/cwp_client.d.ts +5 -1
- package/tencentcloud/services/cwp/v20180228/cwp_client.js +6 -0
- package/tencentcloud/services/cwp/v20180228/cwp_models.d.ts +204 -0
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.d.ts +5 -1
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_client.js +6 -0
- package/tencentcloud/services/dbbrain/v20210527/dbbrain_models.d.ts +33 -2
- package/tencentcloud/services/emr/v20190103/emr_client.d.ts +9 -1
- package/tencentcloud/services/emr/v20190103/emr_client.js +12 -0
- package/tencentcloud/services/emr/v20190103/emr_models.d.ts +117 -4
- package/tencentcloud/services/ess/v20201111/ess_client.d.ts +1 -1
- package/tencentcloud/services/ess/v20201111/ess_client.js +1 -1
- package/tencentcloud/services/ess/v20201111/ess_models.d.ts +1 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.d.ts +1 -1
- package/tencentcloud/services/essbasic/v20210526/essbasic_client.js +1 -1
- package/tencentcloud/services/gaap/v20180529/gaap_models.d.ts +1 -1
- package/tencentcloud/services/index.d.ts +1 -0
- package/tencentcloud/services/index.js +2 -0
- package/tencentcloud/services/lcic/v20220817/lcic_client.d.ts +5 -1
- package/tencentcloud/services/lcic/v20220817/lcic_client.js +6 -0
- package/tencentcloud/services/lcic/v20220817/lcic_models.d.ts +110 -5
- package/tencentcloud/services/mongodb/v20190725/mongodb_client.d.ts +3 -3
- package/tencentcloud/services/mongodb/v20190725/mongodb_client.js +3 -3
- package/tencentcloud/services/mongodb/v20190725/mongodb_models.d.ts +12 -11
- package/tencentcloud/services/monitor/v20180724/monitor_models.d.ts +50 -0
- package/tencentcloud/services/ocr/v20181119/ocr_client.d.ts +7 -1
- package/tencentcloud/services/ocr/v20181119/ocr_client.js +8 -0
- package/tencentcloud/services/ocr/v20181119/ocr_models.d.ts +245 -137
- package/tencentcloud/services/rum/v20210622/rum_models.d.ts +9 -5
- package/tencentcloud/services/teo/v20220901/teo_models.d.ts +18 -10
- package/tencentcloud/services/tke/v20180525/tke_models.d.ts +5 -5
- package/tencentcloud/services/tourism/index.d.ts +6 -0
- package/tencentcloud/services/tourism/index.js +7 -0
- package/tencentcloud/services/tourism/v20230215/index.d.ts +6 -0
- package/tencentcloud/services/tourism/v20230215/index.js +9 -0
- package/tencentcloud/services/tourism/v20230215/tourism_client.d.ts +14 -0
- package/tencentcloud/services/tourism/v20230215/tourism_client.js +37 -0
- package/tencentcloud/services/tourism/v20230215/tourism_models.d.ts +95 -0
- package/tencentcloud/services/tourism/v20230215/tourism_models.js +18 -0
- package/tencentcloud/services/trtc/v20190722/trtc_models.d.ts +2 -2
- package/test/cwp.v20180228.test.js +10 -0
- package/test/dbbrain.v20210527.test.js +10 -0
- package/test/emr.v20190103.test.js +20 -0
- package/test/lcic.v20220817.test.js +10 -0
- package/test/ocr.v20181119.test.js +10 -0
- package/test/tourism.v20230215.test.js +31 -0
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.Client = void 0;
|
|
4
|
+
/* eslint-disable @typescript-eslint/no-unused-vars */
|
|
5
|
+
/*
|
|
6
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
7
|
+
*
|
|
8
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
9
|
+
* you may not use this file except in compliance with the License.
|
|
10
|
+
* You may obtain a copy of the License at
|
|
11
|
+
*
|
|
12
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
13
|
+
*
|
|
14
|
+
* Unless required by applicable law or agreed to in writing,
|
|
15
|
+
* software distributed under the License is distributed on an
|
|
16
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
17
|
+
* KIND, either express or implied. See the License for the
|
|
18
|
+
* specific language governing permissions and limitations
|
|
19
|
+
* under the License.
|
|
20
|
+
*/
|
|
21
|
+
const abstract_client_1 = require("../../../common/abstract_client");
|
|
22
|
+
/**
|
|
23
|
+
* tourism client
|
|
24
|
+
* @class
|
|
25
|
+
*/
|
|
26
|
+
class Client extends abstract_client_1.AbstractClient {
|
|
27
|
+
constructor(clientConfig) {
|
|
28
|
+
super("tourism.tencentcloudapi.com", "2023-02-15", clientConfig);
|
|
29
|
+
}
|
|
30
|
+
/**
|
|
31
|
+
* 依据客户的Uin查询开通的资源列表
|
|
32
|
+
*/
|
|
33
|
+
async DescribeDrawResourceList(req, cb) {
|
|
34
|
+
return this.request("DescribeDrawResourceList", req, cb);
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
exports.Client = Client;
|
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* DescribeDrawResourceList返回参数结构体
|
|
3
|
+
*/
|
|
4
|
+
export interface DescribeDrawResourceListResponse {
|
|
5
|
+
/**
|
|
6
|
+
* 返回数据条数
|
|
7
|
+
*/
|
|
8
|
+
TotalCount?: number;
|
|
9
|
+
/**
|
|
10
|
+
* 返回数据数组
|
|
11
|
+
*/
|
|
12
|
+
ResourceDrawList?: Array<ResourceDrawListType>;
|
|
13
|
+
/**
|
|
14
|
+
* 唯一请求 ID,每次请求都会返回。定位问题时需要提供该次请求的 RequestId。
|
|
15
|
+
*/
|
|
16
|
+
RequestId?: string;
|
|
17
|
+
}
|
|
18
|
+
/**
|
|
19
|
+
* 输出用户的资源数据
|
|
20
|
+
*/
|
|
21
|
+
export interface ResourceDrawListType {
|
|
22
|
+
/**
|
|
23
|
+
* 记录id
|
|
24
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
25
|
+
*/
|
|
26
|
+
Id?: number;
|
|
27
|
+
/**
|
|
28
|
+
* 资源记录id
|
|
29
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
30
|
+
*/
|
|
31
|
+
FlowId?: number;
|
|
32
|
+
/**
|
|
33
|
+
* 资源id
|
|
34
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
35
|
+
*/
|
|
36
|
+
ResourceId?: string;
|
|
37
|
+
/**
|
|
38
|
+
* 本订单资源序列号
|
|
39
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
40
|
+
*/
|
|
41
|
+
IndexId?: string;
|
|
42
|
+
/**
|
|
43
|
+
* 客户的uin
|
|
44
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
45
|
+
*/
|
|
46
|
+
Uin?: string;
|
|
47
|
+
/**
|
|
48
|
+
* 大订单号
|
|
49
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
50
|
+
*/
|
|
51
|
+
BigDealId?: string;
|
|
52
|
+
/**
|
|
53
|
+
* 小订单号
|
|
54
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
55
|
+
*/
|
|
56
|
+
SmallOrderId?: string;
|
|
57
|
+
/**
|
|
58
|
+
* 资源创建时间
|
|
59
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
60
|
+
*/
|
|
61
|
+
ResourceNewStartTime?: string;
|
|
62
|
+
/**
|
|
63
|
+
* 资源到期时间
|
|
64
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
65
|
+
*/
|
|
66
|
+
ResourceNewEndTime?: string;
|
|
67
|
+
/**
|
|
68
|
+
* 资源状态
|
|
69
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
70
|
+
*/
|
|
71
|
+
ResourceStatus?: number;
|
|
72
|
+
/**
|
|
73
|
+
* 本记录状态
|
|
74
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
75
|
+
*/
|
|
76
|
+
Status?: number;
|
|
77
|
+
/**
|
|
78
|
+
* 项目类型
|
|
79
|
+
注意:此字段可能返回 null,表示取不到有效值。
|
|
80
|
+
*/
|
|
81
|
+
ResourceType?: number;
|
|
82
|
+
}
|
|
83
|
+
/**
|
|
84
|
+
* DescribeDrawResourceList请求参数结构体
|
|
85
|
+
*/
|
|
86
|
+
export interface DescribeDrawResourceListRequest {
|
|
87
|
+
/**
|
|
88
|
+
* PageNumber
|
|
89
|
+
*/
|
|
90
|
+
PageNumber: number;
|
|
91
|
+
/**
|
|
92
|
+
* PageSize
|
|
93
|
+
*/
|
|
94
|
+
PageSize: number;
|
|
95
|
+
}
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
/*
|
|
3
|
+
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
4
|
+
*
|
|
5
|
+
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
6
|
+
* you may not use this file except in compliance with the License.
|
|
7
|
+
* You may obtain a copy of the License at
|
|
8
|
+
*
|
|
9
|
+
* http://www.apache.org/licenses/LICENSE-2.0
|
|
10
|
+
*
|
|
11
|
+
* Unless required by applicable law or agreed to in writing,
|
|
12
|
+
* software distributed under the License is distributed on an
|
|
13
|
+
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
14
|
+
* KIND, either express or implied. See the License for the
|
|
15
|
+
* specific language governing permissions and limitations
|
|
16
|
+
* under the License.
|
|
17
|
+
*/
|
|
18
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
@@ -2107,7 +2107,7 @@ export interface StartPublishCdnStreamRequest {
|
|
|
2107
2107
|
*/
|
|
2108
2108
|
AgentParams: AgentParams;
|
|
2109
2109
|
/**
|
|
2110
|
-
* 是否转码,0表示无需转码,1表示需要转码。是否收取转码费是由WithTranscoding参数决定的,WithTranscoding为0,表示旁路转推,不会收取转码费用,WithTranscoding为1
|
|
2110
|
+
* 是否转码,0表示无需转码,1表示需要转码。是否收取转码费是由WithTranscoding参数决定的,WithTranscoding为0,表示旁路转推,不会收取转码费用,WithTranscoding为1,表示混流转推,会收取转码费用。
|
|
2111
2111
|
*/
|
|
2112
2112
|
WithTranscoding: number;
|
|
2113
2113
|
/**
|
|
@@ -2131,7 +2131,7 @@ export interface StartPublishCdnStreamRequest {
|
|
|
2131
2131
|
*/
|
|
2132
2132
|
SeiParams?: McuSeiParams;
|
|
2133
2133
|
/**
|
|
2134
|
-
* 回推房间信息,和转推CDN
|
|
2134
|
+
* 回推房间信息,和转推CDN参数必须要有一个。注:回推房间需使用特殊的SDK版本,如您有需求,请联系腾讯云技术支持。
|
|
2135
2135
|
*/
|
|
2136
2136
|
FeedBackRoomParams?: Array<McuFeedBackRoomParams>;
|
|
2137
2137
|
}
|
|
@@ -1628,6 +1628,16 @@ it("cwp.v20180228.DescribeBashEventsNew", async function () {
|
|
|
1628
1628
|
}
|
|
1629
1629
|
})
|
|
1630
1630
|
|
|
1631
|
+
it("cwp.v20180228.DescribeFileTamperEvents", async function () {
|
|
1632
|
+
try {
|
|
1633
|
+
const data = await client.DescribeFileTamperEvents({})
|
|
1634
|
+
expect(data).to.be.ok
|
|
1635
|
+
} catch(error) {
|
|
1636
|
+
expect(error.requestId).to.be.ok
|
|
1637
|
+
expect(error.code).to.be.ok
|
|
1638
|
+
}
|
|
1639
|
+
})
|
|
1640
|
+
|
|
1631
1641
|
it("cwp.v20180228.ExportNonlocalLoginPlaces", async function () {
|
|
1632
1642
|
try {
|
|
1633
1643
|
const data = await client.ExportNonlocalLoginPlaces({})
|
|
@@ -28,6 +28,16 @@ it("dbbrain.v20210527.DescribeSecurityAuditLogDownloadUrls", async function () {
|
|
|
28
28
|
}
|
|
29
29
|
})
|
|
30
30
|
|
|
31
|
+
it("dbbrain.v20210527.DeleteDBDiagReportTasks", async function () {
|
|
32
|
+
try {
|
|
33
|
+
const data = await client.DeleteDBDiagReportTasks({})
|
|
34
|
+
expect(data).to.be.ok
|
|
35
|
+
} catch(error) {
|
|
36
|
+
expect(error.requestId).to.be.ok
|
|
37
|
+
expect(error.code).to.be.ok
|
|
38
|
+
}
|
|
39
|
+
})
|
|
40
|
+
|
|
31
41
|
it("dbbrain.v20210527.DescribeMailProfile", async function () {
|
|
32
42
|
try {
|
|
33
43
|
const data = await client.DescribeMailProfile({})
|
|
@@ -128,6 +128,16 @@ it("emr.v20190103.RunJobFlow", async function () {
|
|
|
128
128
|
}
|
|
129
129
|
})
|
|
130
130
|
|
|
131
|
+
it("emr.v20190103.TerminateClusterNodes", async function () {
|
|
132
|
+
try {
|
|
133
|
+
const data = await client.TerminateClusterNodes({})
|
|
134
|
+
expect(data).to.be.ok
|
|
135
|
+
} catch(error) {
|
|
136
|
+
expect(error.requestId).to.be.ok
|
|
137
|
+
expect(error.code).to.be.ok
|
|
138
|
+
}
|
|
139
|
+
})
|
|
140
|
+
|
|
131
141
|
it("emr.v20190103.DescribeUsersForUserManager", async function () {
|
|
132
142
|
try {
|
|
133
143
|
const data = await client.DescribeUsersForUserManager({})
|
|
@@ -238,6 +248,16 @@ it("emr.v20190103.ModifyResourceScheduleConfig", async function () {
|
|
|
238
248
|
}
|
|
239
249
|
})
|
|
240
250
|
|
|
251
|
+
it("emr.v20190103.StartStopServiceOrMonitor", async function () {
|
|
252
|
+
try {
|
|
253
|
+
const data = await client.StartStopServiceOrMonitor({})
|
|
254
|
+
expect(data).to.be.ok
|
|
255
|
+
} catch(error) {
|
|
256
|
+
expect(error.requestId).to.be.ok
|
|
257
|
+
expect(error.code).to.be.ok
|
|
258
|
+
}
|
|
259
|
+
})
|
|
260
|
+
|
|
241
261
|
it("emr.v20190103.TerminateTasks", async function () {
|
|
242
262
|
try {
|
|
243
263
|
const data = await client.TerminateTasks({})
|
|
@@ -438,6 +438,16 @@ it("lcic.v20220817.BatchDeleteRecord", async function () {
|
|
|
438
438
|
}
|
|
439
439
|
})
|
|
440
440
|
|
|
441
|
+
it("lcic.v20220817.GetRooms", async function () {
|
|
442
|
+
try {
|
|
443
|
+
const data = await client.GetRooms({})
|
|
444
|
+
expect(data).to.be.ok
|
|
445
|
+
} catch(error) {
|
|
446
|
+
expect(error.requestId).to.be.ok
|
|
447
|
+
expect(error.code).to.be.ok
|
|
448
|
+
}
|
|
449
|
+
})
|
|
450
|
+
|
|
441
451
|
it("lcic.v20220817.DeleteRoom", async function () {
|
|
442
452
|
try {
|
|
443
453
|
const data = await client.DeleteRoom({})
|
|
@@ -58,6 +58,16 @@ it("ocr.v20181119.QueryBarCode", async function () {
|
|
|
58
58
|
}
|
|
59
59
|
})
|
|
60
60
|
|
|
61
|
+
it("ocr.v20181119.SmartStructuralOCRV2", async function () {
|
|
62
|
+
try {
|
|
63
|
+
const data = await client.SmartStructuralOCRV2({})
|
|
64
|
+
expect(data).to.be.ok
|
|
65
|
+
} catch(error) {
|
|
66
|
+
expect(error.requestId).to.be.ok
|
|
67
|
+
expect(error.code).to.be.ok
|
|
68
|
+
}
|
|
69
|
+
})
|
|
70
|
+
|
|
61
71
|
it("ocr.v20181119.EnterpriseLicenseOCR", async function () {
|
|
62
72
|
try {
|
|
63
73
|
const data = await client.EnterpriseLicenseOCR({})
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
|
|
2
|
+
const expect = require("chai").expect
|
|
3
|
+
const tencentcloud = require("../../tencentcloud-sdk-nodejs")
|
|
4
|
+
const client = new tencentcloud.tourism.v20230215.Client({
|
|
5
|
+
credential: {
|
|
6
|
+
secretId: process.env.secretId,
|
|
7
|
+
secretKey: process.env.secretKey,
|
|
8
|
+
},
|
|
9
|
+
region: "ap-shanghai",
|
|
10
|
+
profile: {
|
|
11
|
+
signMethod: "TC3-HMAC-SHA256",
|
|
12
|
+
httpProfile: {
|
|
13
|
+
reqMethod: "POST",
|
|
14
|
+
reqTimeout: 30,
|
|
15
|
+
endpoint: "cvm.ap-shanghai.tencentcloudapi.com",
|
|
16
|
+
},
|
|
17
|
+
},
|
|
18
|
+
})
|
|
19
|
+
describe("tourism.v20230215.test.js", function () {
|
|
20
|
+
|
|
21
|
+
it("tourism.v20230215.DescribeDrawResourceList", async function () {
|
|
22
|
+
try {
|
|
23
|
+
const data = await client.DescribeDrawResourceList({})
|
|
24
|
+
expect(data).to.be.ok
|
|
25
|
+
} catch(error) {
|
|
26
|
+
expect(error.requestId).to.be.ok
|
|
27
|
+
expect(error.code).to.be.ok
|
|
28
|
+
}
|
|
29
|
+
})
|
|
30
|
+
|
|
31
|
+
})
|