tencentcloud-sdk-nodejs-cdwch 4.0.1053 → 4.1.2

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
@@ -52,10 +52,24 @@ npm install tencentcloud-sdk-nodejs --save
52
52
 
53
53
  ## 通过源码包安装
54
54
 
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,具体可参考示例。
55
+ 1. clone 代码到本地:
56
+ ```
57
+ git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
58
+ # 或者
59
+ git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
60
+ ```
61
+ 2. 在项目根目录执行以下命令完成构建:
62
+ ```
63
+ npm install && npm run build
64
+ ```
65
+ 3. 打包 NPM 压缩文件,例如 `tencentcloud-sdk-nodejs-4.0.0.tgz`
66
+ ```
67
+ npm pack
68
+ ```
69
+ 4. 安装包到你的项目里:
70
+ ```
71
+ npm install /path/to/tencentcloud-sdk-nodejs/tencentcloud-sdk-nodejs-4.0.0.tgz
72
+ ```
59
73
 
60
74
  # 示例
61
75
 
package/es/index.js ADDED
@@ -0,0 +1 @@
1
+ export * from "./services";
@@ -0,0 +1,4 @@
1
+ import { v20200915 } from "./v20200915";
2
+ export const cdwch = {
3
+ v20200915: v20200915,
4
+ };
@@ -0,0 +1,90 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ export class Client extends TencentCloudCommon.AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("cdwch.tencentcloudapi.com", "2020-09-15", clientConfig);
5
+ }
6
+ async CreateBackUpSchedule(req, cb) {
7
+ return this.request("CreateBackUpSchedule", req, cb);
8
+ }
9
+ async DescribeBackUpJob(req, cb) {
10
+ return this.request("DescribeBackUpJob", req, cb);
11
+ }
12
+ async DestroyInstance(req, cb) {
13
+ return this.request("DestroyInstance", req, cb);
14
+ }
15
+ async DescribeInstanceKeyValConfigs(req, cb) {
16
+ return this.request("DescribeInstanceKeyValConfigs", req, cb);
17
+ }
18
+ async OpenBackUp(req, cb) {
19
+ return this.request("OpenBackUp", req, cb);
20
+ }
21
+ async ModifyInstanceKeyValConfigs(req, cb) {
22
+ return this.request("ModifyInstanceKeyValConfigs", req, cb);
23
+ }
24
+ async ScaleUpInstance(req, cb) {
25
+ return this.request("ScaleUpInstance", req, cb);
26
+ }
27
+ async DescribeBackUpTables(req, cb) {
28
+ return this.request("DescribeBackUpTables", req, cb);
29
+ }
30
+ async ScaleOutInstance(req, cb) {
31
+ return this.request("ScaleOutInstance", req, cb);
32
+ }
33
+ async DescribeInstanceShards(req, cb) {
34
+ return this.request("DescribeInstanceShards", req, cb);
35
+ }
36
+ async DescribeInstancesNew(req, cb) {
37
+ return this.request("DescribeInstancesNew", req, cb);
38
+ }
39
+ async DeleteBackUpData(req, cb) {
40
+ return this.request("DeleteBackUpData", req, cb);
41
+ }
42
+ async ActionAlterCkUser(req, cb) {
43
+ return this.request("ActionAlterCkUser", req, cb);
44
+ }
45
+ async DescribeInstanceState(req, cb) {
46
+ return this.request("DescribeInstanceState", req, cb);
47
+ }
48
+ async DescribeClusterConfigs(req, cb) {
49
+ return this.request("DescribeClusterConfigs", req, cb);
50
+ }
51
+ async ModifyClusterConfigs(req, cb) {
52
+ return this.request("ModifyClusterConfigs", req, cb);
53
+ }
54
+ async ScaleCNOutUpInstance(req, cb) {
55
+ return this.request("ScaleCNOutUpInstance", req, cb);
56
+ }
57
+ async RecoverBackUpJob(req, cb) {
58
+ return this.request("RecoverBackUpJob", req, cb);
59
+ }
60
+ async DescribeCkSqlApis(req, cb) {
61
+ return this.request("DescribeCkSqlApis", req, cb);
62
+ }
63
+ async DescribeSpec(req, cb) {
64
+ return this.request("DescribeSpec", req, cb);
65
+ }
66
+ async CreateInstanceNew(req, cb) {
67
+ return this.request("CreateInstanceNew", req, cb);
68
+ }
69
+ async DescribeBackUpSchedule(req, cb) {
70
+ return this.request("DescribeBackUpSchedule", req, cb);
71
+ }
72
+ async DescribeBackUpJobDetail(req, cb) {
73
+ return this.request("DescribeBackUpJobDetail", req, cb);
74
+ }
75
+ async DescribeInstanceClusters(req, cb) {
76
+ return this.request("DescribeInstanceClusters", req, cb);
77
+ }
78
+ async DescribeInstance(req, cb) {
79
+ return this.request("DescribeInstance", req, cb);
80
+ }
81
+ async DescribeInstanceNodes(req, cb) {
82
+ return this.request("DescribeInstanceNodes", req, cb);
83
+ }
84
+ async ModifyUserNewPrivilege(req, cb) {
85
+ return this.request("ModifyUserNewPrivilege", req, cb);
86
+ }
87
+ async ResizeDisk(req, cb) {
88
+ return this.request("ResizeDisk", req, cb);
89
+ }
90
+ }
File without changes
@@ -0,0 +1,6 @@
1
+ import * as Models from "./cdwch_models";
2
+ import { Client } from "./cdwch_client";
3
+ export const v20200915 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ };
@@ -0,0 +1 @@
1
+ export { cdwch } from "./cdwch";
package/package.json CHANGED
@@ -1,16 +1,25 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-cdwch",
3
- "version": "4.0.1053",
4
- "description": "Tencent Cloud API NODEJS SDK",
5
- "main": "tencentcloud/index.js",
3
+ "version": "4.1.2",
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
+ "prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
14
+ "clean": "rimraf tencentcloud es"
10
15
  },
11
16
  "engines": {
12
17
  "node": ">=10"
13
18
  },
19
+ "files": [
20
+ "tencentcloud",
21
+ "es"
22
+ ],
14
23
  "keywords": [
15
24
  "tencentcloudapi",
16
25
  "tencentcloud",
@@ -22,7 +31,7 @@
22
31
  "author": "tencentcloudapi",
23
32
  "license": "Apache-2.0",
24
33
  "dependencies": {
25
- "tencentcloud-sdk-nodejs-common": "^4.0.488",
34
+ "tencentcloud-sdk-nodejs-common": "*",
26
35
  "tslib": "1.13.0"
27
36
  },
28
37
  "directories": {
@@ -35,14 +44,21 @@
35
44
  },
36
45
  "devDependencies": {
37
46
  "@types/form-data": "^2.5.0",
47
+ "@types/json-bigint": "^1.0.1",
38
48
  "@types/node": "^14.0.26",
39
49
  "@types/node-fetch": "^2.5.7",
50
+ "@types/uuid": "^9.0.8",
40
51
  "@typescript-eslint/eslint-plugin": "^2.34.0",
41
52
  "@typescript-eslint/parser": "^2.34.0",
53
+ "babel-eslint": "^10.0.2",
42
54
  "chai": "^4.2.0",
55
+ "concurrently": "^6.5.1",
43
56
  "eslint": "^6.8.0",
44
- "mocha": "^8.1.1",
57
+ "eslint-plugin-react": "^7.17.0",
58
+ "mocha": "^8.4.0",
59
+ "prettier": "^2.3.0",
60
+ "rimraf": "^5.0.10",
45
61
  "ts-node": "^8.10.2",
46
62
  "typescript": "^3.9.7"
47
63
  }
48
- }
64
+ }
@@ -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
  * cdwch client
24
25
  * @class