tencentcloud-sdk-nodejs-rce 4.0.1041 → 4.1.8

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,18 +44,40 @@ 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 包含了所有云产品的调用代码,体积偏大,对体积敏感的场景,推荐安装指定产品 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
 
55
- 1. 前往 [GitHub 仓库](https://github.com/tencentcloud/tencentcloud-sdk-nodejs) 或者 [Gitee 仓库](https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs) 下载源码压缩包。
56
- 2. 解压源码包到您项目合适的位置,例如 `sdk/tencentcloud-sdk-nodejs`。
57
- 3. 执行 `npm install ./sdk/tencentcloud-sdk-nodejs`。
58
- 4. 使用 `require("tencentcloud-sdk-nodejs")` 的方式引入 SDK,具体可参考示例。
63
+ 1. clone 代码到本地:
64
+ ```
65
+ git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
66
+ # 或者
67
+ git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
68
+ ```
69
+ 2. 在项目根目录执行以下命令完成构建:
70
+ ```
71
+ npm install && npm run build
72
+ ```
73
+ 3. 打包 NPM 压缩文件,例如 `tencentcloud-sdk-nodejs-4.0.0.tgz`
74
+ ```
75
+ npm pack
76
+ ```
77
+ 4. 安装包到你的项目里:
78
+ ```
79
+ npm install /path/to/tencentcloud-sdk-nodejs/tencentcloud-sdk-nodejs-4.0.0.tgz
80
+ ```
59
81
 
60
82
  # 示例
61
83
 
package/es/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./services";
@@ -0,0 +1 @@
1
+ export { rce } from "./rce";
@@ -0,0 +1,4 @@
1
+ import { v20201103 } from "./v20201103";
2
+ export const rce = {
3
+ v20201103: v20201103,
4
+ };
@@ -0,0 +1,6 @@
1
+ import * as Models from "./rce_models";
2
+ import { Client } from "./rce_client";
3
+ export const v20201103 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ };
@@ -0,0 +1,39 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ export class Client extends TencentCloudCommon.AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("rce.tencentcloudapi.com", "2020-11-03", clientConfig);
5
+ }
6
+ async ModifyNameListData(req, cb) {
7
+ return this.request("ModifyNameListData", req, cb);
8
+ }
9
+ async DeleteNameListData(req, cb) {
10
+ return this.request("DeleteNameListData", req, cb);
11
+ }
12
+ async DescribeNameListDataList(req, cb) {
13
+ return this.request("DescribeNameListDataList", req, cb);
14
+ }
15
+ async DescribeNameListDetail(req, cb) {
16
+ return this.request("DescribeNameListDetail", req, cb);
17
+ }
18
+ async ManageMarketingRisk(req, cb) {
19
+ return this.request("ManageMarketingRisk", req, cb);
20
+ }
21
+ async ModifyNameList(req, cb) {
22
+ return this.request("ModifyNameList", req, cb);
23
+ }
24
+ async CreateNameList(req, cb) {
25
+ return this.request("CreateNameList", req, cb);
26
+ }
27
+ async DeleteNameList(req, cb) {
28
+ return this.request("DeleteNameList", req, cb);
29
+ }
30
+ async DescribeUserUsageCnt(req, cb) {
31
+ return this.request("DescribeUserUsageCnt", req, cb);
32
+ }
33
+ async ImportNameListData(req, cb) {
34
+ return this.request("ImportNameListData", req, cb);
35
+ }
36
+ async DescribeNameList(req, cb) {
37
+ return this.request("DescribeNameList", req, cb);
38
+ }
39
+ }
File without changes
package/package.json CHANGED
@@ -1,16 +1,26 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-rce",
3
- "version": "4.0.1041",
4
- "description": "Tencent Cloud API NODEJS SDK",
5
- "main": "tencentcloud/index.js",
3
+ "version": "4.1.8",
4
+ "description": "腾讯云 API NODEJS SDK",
5
+ "main": "./tencentcloud/index.js",
6
+ "module": "./es/index.js",
7
+ "types": "./tencentcloud/index.d.ts",
6
8
  "scripts": {
7
9
  "test": "mocha -t 10000",
8
- "build": "tsc",
9
- "prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'"
10
+ "build": "concurrently 'npm:build:cjs' 'npm:build:es'",
11
+ "build:cjs": "tsc -p tsconfig.json",
12
+ "build:es": "tsc -p tsconfig.es.json",
13
+ "build:slim": "node ./scripts/build_slim.js",
14
+ "prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
15
+ "clean": "rimraf tencentcloud es"
10
16
  },
11
17
  "engines": {
12
18
  "node": ">=10"
13
19
  },
20
+ "files": [
21
+ "tencentcloud",
22
+ "es"
23
+ ],
14
24
  "keywords": [
15
25
  "tencentcloudapi",
16
26
  "tencentcloud",
@@ -22,7 +32,7 @@
22
32
  "author": "tencentcloudapi",
23
33
  "license": "Apache-2.0",
24
34
  "dependencies": {
25
- "tencentcloud-sdk-nodejs-common": "^4.0.488",
35
+ "tencentcloud-sdk-nodejs-common": "*",
26
36
  "tslib": "1.13.0"
27
37
  },
28
38
  "directories": {
@@ -35,14 +45,22 @@
35
45
  },
36
46
  "devDependencies": {
37
47
  "@types/form-data": "^2.5.0",
48
+ "@types/json-bigint": "^1.0.1",
38
49
  "@types/node": "^14.0.26",
39
50
  "@types/node-fetch": "^2.5.7",
51
+ "@types/uuid": "^9.0.8",
40
52
  "@typescript-eslint/eslint-plugin": "^2.34.0",
41
53
  "@typescript-eslint/parser": "^2.34.0",
54
+ "babel-eslint": "^10.0.2",
42
55
  "chai": "^4.2.0",
56
+ "concurrently": "^6.5.1",
57
+ "esbuild": "^0.25.0",
43
58
  "eslint": "^6.8.0",
44
- "mocha": "^8.1.1",
59
+ "eslint-plugin-react": "^7.17.0",
60
+ "mocha": "^8.4.0",
61
+ "prettier": "^2.3.0",
62
+ "rimraf": "^5.0.10",
45
63
  "ts-node": "^8.10.2",
46
64
  "typescript": "^3.9.7"
47
65
  }
48
- }
66
+ }
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.v20201103 = void 0;
4
- const Models = require("./rce_models");
4
+ const tslib_1 = require("tslib");
5
+ const Models = tslib_1.__importStar(require("./rce_models"));
5
6
  const rce_client_1 = require("./rce_client");
6
7
  exports.v20201103 = {
7
8
  Client: rce_client_1.Client,
@@ -1,6 +1,7 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.Client = void 0;
4
+ const tslib_1 = require("tslib");
4
5
  /* eslint-disable @typescript-eslint/no-unused-vars */
5
6
  /*
6
7
  * Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
@@ -18,7 +19,7 @@ exports.Client = void 0;
18
19
  * specific language governing permissions and limitations
19
20
  * under the License.
20
21
  */
21
- const TencentCloudCommon = require("tencentcloud-sdk-nodejs-common");
22
+ const TencentCloudCommon = tslib_1.__importStar(require("tencentcloud-sdk-nodejs-common"));
22
23
  /**
23
24
  * rce client
24
25
  * @class
@@ -1232,10 +1232,6 @@ export interface DataAuthorizationInfo {
1232
1232
  * 客户获得用户授权所依赖的协议地址。
1233
1233
  */
1234
1234
  PrivacyPolicyLink?: string;
1235
- /**
1236
- * 是否是用户个人敏感数据(不推荐使用)。固定填:1。
1237
- */
1238
- IsPersonalData?: number;
1239
1235
  }
1240
1236
  /**
1241
1237
  * DeleteNameList返回参数结构体
package/index.d.ts DELETED
@@ -1,2 +0,0 @@
1
- import * as tencentcloud from './tencentcloud';
2
- export default tencentcloud;
package/index.js DELETED
@@ -1,6 +0,0 @@
1
- 'use strict'
2
- Object.defineProperty(exports, '__esModule', { value: true })
3
- const tslib_1 = require('tslib')
4
- const tencentcloud = tslib_1.__importStar(require('./tencentcloud'))
5
- exports.default = tencentcloud
6
- //# sourceMappingURL=index.js.map
@@ -1,38 +0,0 @@
1
- // prettier.config.js
2
- module.exports = {
3
- // 一行最多 100 字符
4
- printWidth: 100,
5
- // 使用 4 个空格缩进
6
- tabWidth: 2,
7
- // 不使用缩进符,而使用空格
8
- useTabs: false,
9
- // 行尾需要有分号
10
- semi: false,
11
- // 使用单引号
12
- singleQuote: false,
13
- // 对象的 key 仅在必要时用引号
14
- quoteProps: "as-needed",
15
- // jsx 不使用单引号,而使用双引号
16
- jsxSingleQuote: false,
17
- // 末尾不需要逗号
18
- trailingComma: "es5",
19
- // 大括号内的首尾需要空格
20
- bracketSpacing: true,
21
- // jsx 标签的反尖括号需要换行
22
- jsxBracketSameLine: false,
23
- // 箭头函数,只有一个参数的时候,也需要括号
24
- arrowParens: "always",
25
- // 每个文件格式化的范围是文件的全部内容
26
- rangeStart: 0,
27
- rangeEnd: Infinity,
28
- // 不需要写文件开头的 @prettier
29
- requirePragma: false,
30
- // 不需要自动在文件开头插入 @prettier
31
- insertPragma: false,
32
- // 使用默认的折行标准
33
- proseWrap: "preserve",
34
- // 根据显示样式决定 html 要不要折行
35
- htmlWhitespaceSensitivity: "css",
36
- // 换行符使用 lf
37
- endOfLine: "lf",
38
- }
package/src/index.ts DELETED
@@ -1 +0,0 @@
1
- export * from "./services"
@@ -1 +0,0 @@
1
- export { rce } from "./rce"
@@ -1,5 +0,0 @@
1
- import { v20201103 } from "./v20201103"
2
-
3
- export const rce = {
4
- v20201103: v20201103,
5
- }
@@ -1,6 +0,0 @@
1
- import * as Models from "./rce_models"
2
- import { Client } from "./rce_client"
3
- export const v20201103 = {
4
- Client: Client,
5
- Models: Models,
6
- }
@@ -1,201 +0,0 @@
1
- /* eslint-disable @typescript-eslint/no-unused-vars */
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
- import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common"
19
- import {
20
- DataContentInfo,
21
- OutputDescribeNameListFrontFix,
22
- DescribeNameListResponse,
23
- OutputDescribeDataListFront,
24
- InputCreateNameListFront,
25
- ManageMarketingRiskRequest,
26
- InputDeleteNameListFront,
27
- WeChatAccountInfo,
28
- InputDescribeNameListFront,
29
- AccountInfo,
30
- ModifyNameListDataRequest,
31
- OuntputDescribeDataListInfo,
32
- InputDescribeNameListDetail,
33
- OutputManageMarketingRiskValue,
34
- CreateNameListRequest,
35
- DeleteNameListDataResponse,
36
- DescribeUserUsageCntRequest,
37
- ImportNameListDataResponse,
38
- DeleteNameListRequest,
39
- OutputDescribeUserUsageCnt,
40
- DescribeNameListDetailResponse,
41
- OutputDescribeNameListInfo,
42
- ManageMarketingRiskResponse,
43
- OutputDescribeNameListFrontFixListData,
44
- OutputDeleteNameListData,
45
- OutputModifyNameFront,
46
- InputDetails,
47
- ModifyNameListRequest,
48
- OutputModifyNameListFront,
49
- DescribeNameListDetailRequest,
50
- DescribeNameListDataListResponse,
51
- DeleteNameListDataRequest,
52
- InputModifyNameListDataFront,
53
- OutputManageMarketingRisk,
54
- InputDescribeDataListFront,
55
- InputImportNameListDataFront,
56
- DescribeNameListDataListRequest,
57
- InputCryptoManageMarketingRisk,
58
- DescribeNameListRequest,
59
- OutputImportNameListDataFront,
60
- InputModifyNameFront,
61
- SponsorInfo,
62
- CreateNameListResponse,
63
- OtherAccountInfo,
64
- OutputDescribeDataListFrontData,
65
- OutputDescribeNameListDetailFront,
66
- OutputDescribeNameListDetail,
67
- OnlineScamInfo,
68
- QQAccountInfo,
69
- ModifyNameListDataResponse,
70
- InputManageMarketingRisk,
71
- OutputCreateNameListFront,
72
- OutputDescribeUserUsageCntData,
73
- ModifyNameListResponse,
74
- OutputDeleteNameListFront,
75
- InputDeleteNameListData,
76
- ImportNameListDataRequest,
77
- DataAuthorizationInfo,
78
- DeleteNameListResponse,
79
- InputModifyNameListDataFrontListData,
80
- DescribeUserUsageCntResponse,
81
- } from "./rce_models"
82
-
83
- /**
84
- * rce client
85
- * @class
86
- */
87
- export class Client extends TencentCloudCommon.AbstractClient {
88
- constructor(clientConfig: TencentCloudCommon.ClientConfig) {
89
- super("rce.tencentcloudapi.com", "2020-11-03", clientConfig)
90
- }
91
-
92
- /**
93
- * 修改黑白名单列表详情 详情内容 开始和结束时间 状态 备注等
94
- */
95
- async ModifyNameListData(
96
- req: ModifyNameListDataRequest,
97
- cb?: (error: string, rep: ModifyNameListDataResponse) => void
98
- ): Promise<ModifyNameListDataResponse> {
99
- return this.request("ModifyNameListData", req, cb)
100
- }
101
-
102
- /**
103
- * 删除黑白名单数据
104
- */
105
- async DeleteNameListData(
106
- req: DeleteNameListDataRequest,
107
- cb?: (error: string, rep: DeleteNameListDataResponse) => void
108
- ): Promise<DeleteNameListDataResponse> {
109
- return this.request("DeleteNameListData", req, cb)
110
- }
111
-
112
- /**
113
- * 黑白名单详情数据展示 名单id 客户appid uin 数据内容 开始时间和结束时间 状态 描述
114
- */
115
- async DescribeNameListDataList(
116
- req: DescribeNameListDataListRequest,
117
- cb?: (error: string, rep: DescribeNameListDataListResponse) => void
118
- ): Promise<DescribeNameListDataListResponse> {
119
- return this.request("DescribeNameListDataList", req, cb)
120
- }
121
-
122
- /**
123
- * 查询黑白名单列表详情
124
- */
125
- async DescribeNameListDetail(
126
- req: DescribeNameListDetailRequest,
127
- cb?: (error: string, rep: DescribeNameListDetailResponse) => void
128
- ): Promise<DescribeNameListDetailResponse> {
129
- return this.request("DescribeNameListDetail", req, cb)
130
- }
131
-
132
- /**
133
- * 全栈式风控引擎(RiskControlEngine,RCE)是基于人工智能技术和腾讯20年风控实战沉淀,依托腾讯海量业务构建的风控引擎,以轻量级的 SaaS 服务方式接入,帮助您快速解决注册、登录、营销活动等关键场景遇到的欺诈问题,实时防御黑灰产作恶。
134
- */
135
- async ManageMarketingRisk(
136
- req: ManageMarketingRiskRequest,
137
- cb?: (error: string, rep: ManageMarketingRiskResponse) => void
138
- ): Promise<ManageMarketingRiskResponse> {
139
- return this.request("ManageMarketingRisk", req, cb)
140
- }
141
-
142
- /**
143
- * 修改列表数据 列表名称 列表类型 数据类型 状态 备注
144
- */
145
- async ModifyNameList(
146
- req: ModifyNameListRequest,
147
- cb?: (error: string, rep: ModifyNameListResponse) => void
148
- ): Promise<ModifyNameListResponse> {
149
- return this.request("ModifyNameList", req, cb)
150
- }
151
-
152
- /**
153
- * 创建黑白名单,黑白名单数量上限为100
154
- */
155
- async CreateNameList(
156
- req: CreateNameListRequest,
157
- cb?: (error: string, rep: CreateNameListResponse) => void
158
- ): Promise<CreateNameListResponse> {
159
- return this.request("CreateNameList", req, cb)
160
- }
161
-
162
- /**
163
- * 修改黑白名单状态 关闭 开启 删除
164
- */
165
- async DeleteNameList(
166
- req: DeleteNameListRequest,
167
- cb?: (error: string, rep: DeleteNameListResponse) => void
168
- ): Promise<DeleteNameListResponse> {
169
- return this.request("DeleteNameList", req, cb)
170
- }
171
-
172
- /**
173
- * RCE控制台预付费和后付费次数展示
174
- */
175
- async DescribeUserUsageCnt(
176
- req?: DescribeUserUsageCntRequest,
177
- cb?: (error: string, rep: DescribeUserUsageCntResponse) => void
178
- ): Promise<DescribeUserUsageCntResponse> {
179
- return this.request("DescribeUserUsageCnt", req, cb)
180
- }
181
-
182
- /**
183
- * 新增黑白名单数据,所有黑白名单数据总量上限为10000
184
- */
185
- async ImportNameListData(
186
- req: ImportNameListDataRequest,
187
- cb?: (error: string, rep: ImportNameListDataResponse) => void
188
- ): Promise<ImportNameListDataResponse> {
189
- return this.request("ImportNameListData", req, cb)
190
- }
191
-
192
- /**
193
- * 列表展示黑白名单列表数据, 包含列表名称, 名单类型, 数据类型, 数据来源, 描述, 状态等
194
- */
195
- async DescribeNameList(
196
- req: DescribeNameListRequest,
197
- cb?: (error: string, rep: DescribeNameListResponse) => void
198
- ): Promise<DescribeNameListResponse> {
199
- return this.request("DescribeNameList", req, cb)
200
- }
201
- }