tencentcloud-sdk-nodejs-billing 4.0.1053 → 4.1.1

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 { v20180709 } from "./v20180709";
2
+ export const billing = {
3
+ v20180709: v20180709,
4
+ };
@@ -0,0 +1,135 @@
1
+ import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
2
+ export class Client extends TencentCloudCommon.AbstractClient {
3
+ constructor(clientConfig) {
4
+ super("billing.tencentcloudapi.com", "2018-07-09", clientConfig);
5
+ }
6
+ async DescribeBillDetailForOrganization(req, cb) {
7
+ return this.request("DescribeBillDetailForOrganization", req, cb);
8
+ }
9
+ async DescribeCostSummaryByResource(req, cb) {
10
+ return this.request("DescribeCostSummaryByResource", req, cb);
11
+ }
12
+ async DescribeBillList(req, cb) {
13
+ return this.request("DescribeBillList", req, cb);
14
+ }
15
+ async DescribeSavingPlanCoverage(req, cb) {
16
+ return this.request("DescribeSavingPlanCoverage", req, cb);
17
+ }
18
+ async DescribeAllocationSummaryByResource(req, cb) {
19
+ return this.request("DescribeAllocationSummaryByResource", req, cb);
20
+ }
21
+ async DescribeBillResourceSummary(req, cb) {
22
+ return this.request("DescribeBillResourceSummary", req, cb);
23
+ }
24
+ async DescribeAllocationSummaryByBusiness(req, cb) {
25
+ return this.request("DescribeAllocationSummaryByBusiness", req, cb);
26
+ }
27
+ async DescribeAllocateConditions(req, cb) {
28
+ return this.request("DescribeAllocateConditions", req, cb);
29
+ }
30
+ async DescribeAllocationOverview(req, cb) {
31
+ return this.request("DescribeAllocationOverview", req, cb);
32
+ }
33
+ async DescribeDosageDetailList(req, cb) {
34
+ return this.request("DescribeDosageDetailList", req, cb);
35
+ }
36
+ async CreateAllocationTag(req, cb) {
37
+ return this.request("CreateAllocationTag", req, cb);
38
+ }
39
+ async DescribeVoucherInfo(req, cb) {
40
+ return this.request("DescribeVoucherInfo", req, cb);
41
+ }
42
+ async DescribeCostSummaryByProject(req, cb) {
43
+ return this.request("DescribeCostSummaryByProject", req, cb);
44
+ }
45
+ async DescribeCostExplorerSummary(req, cb) {
46
+ return this.request("DescribeCostExplorerSummary", req, cb);
47
+ }
48
+ async DescribeBillResourceSummaryForOrganization(req, cb) {
49
+ return this.request("DescribeBillResourceSummaryForOrganization", req, cb);
50
+ }
51
+ async DescribeBillDetail(req, cb) {
52
+ return this.request("DescribeBillDetail", req, cb);
53
+ }
54
+ async DescribeBillSummary(req, cb) {
55
+ return this.request("DescribeBillSummary", req, cb);
56
+ }
57
+ async DescribeBillSummaryByPayMode(req, cb) {
58
+ return this.request("DescribeBillSummaryByPayMode", req, cb);
59
+ }
60
+ async DescribeCostSummaryByRegion(req, cb) {
61
+ return this.request("DescribeCostSummaryByRegion", req, cb);
62
+ }
63
+ async DescribeAllocationTrendByMonth(req, cb) {
64
+ return this.request("DescribeAllocationTrendByMonth", req, cb);
65
+ }
66
+ async DescribeBillDownloadUrl(req, cb) {
67
+ return this.request("DescribeBillDownloadUrl", req, cb);
68
+ }
69
+ async DescribeDosageCosDetailByDate(req, cb) {
70
+ return this.request("DescribeDosageCosDetailByDate", req, cb);
71
+ }
72
+ async DescribeAllocationBillConditions(req, cb) {
73
+ return this.request("DescribeAllocationBillConditions", req, cb);
74
+ }
75
+ async DescribeAccountBalance(req, cb) {
76
+ return this.request("DescribeAccountBalance", req, cb);
77
+ }
78
+ async DescribeDosageDetailByDate(req, cb) {
79
+ return this.request("DescribeDosageDetailByDate", req, cb);
80
+ }
81
+ async DescribeBillAdjustInfo(req, cb) {
82
+ return this.request("DescribeBillAdjustInfo", req, cb);
83
+ }
84
+ async DescribeAllocationBillDetail(req, cb) {
85
+ return this.request("DescribeAllocationBillDetail", req, cb);
86
+ }
87
+ async DescribeBillSummaryByRegion(req, cb) {
88
+ return this.request("DescribeBillSummaryByRegion", req, cb);
89
+ }
90
+ async DescribeBillSummaryByProject(req, cb) {
91
+ return this.request("DescribeBillSummaryByProject", req, cb);
92
+ }
93
+ async DescribeAllocationMonthOverview(req, cb) {
94
+ return this.request("DescribeAllocationMonthOverview", req, cb);
95
+ }
96
+ async DescribeBillSummaryByTag(req, cb) {
97
+ return this.request("DescribeBillSummaryByTag", req, cb);
98
+ }
99
+ async DescribeBillSummaryForOrganization(req, cb) {
100
+ return this.request("DescribeBillSummaryForOrganization", req, cb);
101
+ }
102
+ async DescribeGatherResource(req, cb) {
103
+ return this.request("DescribeGatherResource", req, cb);
104
+ }
105
+ async DescribeSavingPlanResourceInfo(req, cb) {
106
+ return this.request("DescribeSavingPlanResourceInfo", req, cb);
107
+ }
108
+ async DescribeTagList(req, cb) {
109
+ return this.request("DescribeTagList", req, cb);
110
+ }
111
+ async DescribeVoucherUsageDetails(req, cb) {
112
+ return this.request("DescribeVoucherUsageDetails", req, cb);
113
+ }
114
+ async PayDeals(req, cb) {
115
+ return this.request("PayDeals", req, cb);
116
+ }
117
+ async DescribeCostSummaryByProduct(req, cb) {
118
+ return this.request("DescribeCostSummaryByProduct", req, cb);
119
+ }
120
+ async DeleteAllocationTag(req, cb) {
121
+ return this.request("DeleteAllocationTag", req, cb);
122
+ }
123
+ async DescribeDealsByCond(req, cb) {
124
+ return this.request("DescribeDealsByCond", req, cb);
125
+ }
126
+ async DescribeAllocationSummaryByItem(req, cb) {
127
+ return this.request("DescribeAllocationSummaryByItem", req, cb);
128
+ }
129
+ async DescribeBillSummaryByProduct(req, cb) {
130
+ return this.request("DescribeBillSummaryByProduct", req, cb);
131
+ }
132
+ async DescribeCostDetail(req, cb) {
133
+ return this.request("DescribeCostDetail", req, cb);
134
+ }
135
+ }
@@ -0,0 +1,6 @@
1
+ import * as Models from "./billing_models";
2
+ import { Client } from "./billing_client";
3
+ export const v20180709 = {
4
+ Client: Client,
5
+ Models: Models,
6
+ };
@@ -0,0 +1 @@
1
+ export { billing } from "./billing";
package/package.json CHANGED
@@ -1,16 +1,25 @@
1
1
  {
2
2
  "name": "tencentcloud-sdk-nodejs-billing",
3
- "version": "4.0.1053",
4
- "description": "Tencent Cloud API NODEJS SDK",
5
- "main": "tencentcloud/index.js",
3
+ "version": "4.1.1",
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
+ }
@@ -20,8 +20,10 @@ export declare class Client extends TencentCloudCommon.AbstractClient {
20
20
  */
21
21
  DescribeBillList(req: DescribeBillListRequest, cb?: (error: string, rep: DescribeBillListResponse) => void): Promise<DescribeBillListResponse>;
22
22
  /**
23
- * 查询当前用户节省计划覆盖率明细数据,如无特别说明,金额单位均为元(国内站)或者美元(国际站)。
24
- */
23
+ * 当前接口已迁移至svp产品
24
+
25
+ 查询当前用户节省计划覆盖率明细数据,如无特别说明,金额单位均为元(国内站)或者美元(国际站)。
26
+ */
25
27
  DescribeSavingPlanCoverage(req: DescribeSavingPlanCoverageRequest, cb?: (error: string, rep: DescribeSavingPlanCoverageResponse) => void): Promise<DescribeSavingPlanCoverageResponse>;
26
28
  /**
27
29
  * 查询分账账单按资源汇总
@@ -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
  * billing client
24
25
  * @class
@@ -47,8 +48,10 @@ class Client extends TencentCloudCommon.AbstractClient {
47
48
  return this.request("DescribeBillList", req, cb);
48
49
  }
49
50
  /**
50
- * 查询当前用户节省计划覆盖率明细数据,如无特别说明,金额单位均为元(国内站)或者美元(国际站)。
51
- */
51
+ * 当前接口已迁移至svp产品
52
+
53
+ 查询当前用户节省计划覆盖率明细数据,如无特别说明,金额单位均为元(国内站)或者美元(国际站)。
54
+ */
52
55
  async DescribeSavingPlanCoverage(req, cb) {
53
56
  return this.request("DescribeSavingPlanCoverage", req, cb);
54
57
  }