tencentcloud-sdk-nodejs-tdmq 4.1.2 → 4.1.5
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/README.md
CHANGED
|
@@ -44,11 +44,19 @@ npm install tencentcloud-sdk-nodejs-vpc --save
|
|
|
44
44
|
|
|
45
45
|
### 安装全产品 SDK
|
|
46
46
|
|
|
47
|
+
如果项目依赖的云产品较多,可以引入全产品 SDK。
|
|
48
|
+
|
|
47
49
|
```
|
|
48
50
|
npm install tencentcloud-sdk-nodejs --save
|
|
49
51
|
```
|
|
50
52
|
|
|
51
|
-
全产品 SDK
|
|
53
|
+
全产品 SDK 包含所有云产品调用代码和 TypeScript 类型文件,体积偏大。对于体积敏感的场景,推荐安装指定产品 SDK。
|
|
54
|
+
|
|
55
|
+
如果既希望全产品调用,又对包体积比较敏感,可以使用 Slim 版本 SDK。Slim SDK 移除类型文件,并进行了代码压缩,适合体积敏感场景使用:
|
|
56
|
+
|
|
57
|
+
```
|
|
58
|
+
npm install tencentcloud-sdk-slim-nodejs --save
|
|
59
|
+
```
|
|
52
60
|
|
|
53
61
|
## 通过源码包安装
|
|
54
62
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-tdmq",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.5",
|
|
4
4
|
"description": "腾讯云 API NODEJS SDK",
|
|
5
5
|
"main": "./tencentcloud/index.js",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -10,6 +10,7 @@
|
|
|
10
10
|
"build": "concurrently 'npm:build:cjs' 'npm:build:es'",
|
|
11
11
|
"build:cjs": "tsc -p tsconfig.json",
|
|
12
12
|
"build:es": "tsc -p tsconfig.es.json",
|
|
13
|
+
"build:slim": "node ./scripts/build_slim.js",
|
|
13
14
|
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
|
|
14
15
|
"clean": "rimraf tencentcloud es"
|
|
15
16
|
},
|
|
@@ -53,6 +54,7 @@
|
|
|
53
54
|
"babel-eslint": "^10.0.2",
|
|
54
55
|
"chai": "^4.2.0",
|
|
55
56
|
"concurrently": "^6.5.1",
|
|
57
|
+
"esbuild": "^0.25.0",
|
|
56
58
|
"eslint": "^6.8.0",
|
|
57
59
|
"eslint-plugin-react": "^7.17.0",
|
|
58
60
|
"mocha": "^8.4.0",
|
|
@@ -154,7 +154,6 @@ export interface RocketMQVipInstance {
|
|
|
154
154
|
InstanceName?: string;
|
|
155
155
|
/**
|
|
156
156
|
* 实例版本
|
|
157
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
158
157
|
*/
|
|
159
158
|
InstanceVersion?: string;
|
|
160
159
|
/**
|
|
@@ -204,27 +203,22 @@ export interface RocketMQVipInstance {
|
|
|
204
203
|
SpecName?: string;
|
|
205
204
|
/**
|
|
206
205
|
* 最大可设置消息保留时间,小时为单位
|
|
207
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
208
206
|
*/
|
|
209
207
|
MaxRetention?: number;
|
|
210
208
|
/**
|
|
211
209
|
* 最小可设置消息保留时间,小时为单位
|
|
212
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
213
210
|
*/
|
|
214
211
|
MinRetention?: number;
|
|
215
212
|
/**
|
|
216
213
|
* 实例消息保留时间,小时为单位
|
|
217
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
218
214
|
*/
|
|
219
215
|
Retention?: number;
|
|
220
216
|
/**
|
|
221
217
|
* 是否开启ACL鉴权
|
|
222
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
223
218
|
*/
|
|
224
219
|
AclEnabled?: boolean;
|
|
225
220
|
/**
|
|
226
221
|
* 销毁时间
|
|
227
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
228
222
|
*/
|
|
229
223
|
DestroyTime?: number;
|
|
230
224
|
}
|
|
@@ -4457,7 +4451,6 @@ export interface AMQPClusterInfo {
|
|
|
4457
4451
|
export interface ModifyRocketMQInstanceSpecResponse {
|
|
4458
4452
|
/**
|
|
4459
4453
|
* 订单号
|
|
4460
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
4461
4454
|
*/
|
|
4462
4455
|
OrderId?: string;
|
|
4463
4456
|
/**
|