tencentcloud-sdk-nodejs-svp 4.0.1050 → 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 +18 -4
- package/es/index.js +1 -0
- package/es/services/index.js +1 -0
- package/es/services/svp/index.js +4 -0
- package/es/services/svp/v20240125/index.js +6 -0
- package/es/services/svp/v20240125/svp_client.js +21 -0
- package/es/services/svp/v20240125/svp_models.js +0 -0
- package/package.json +16 -5
- package/tencentcloud/services/svp/v20240125/index.js +2 -1
- package/tencentcloud/services/svp/v20240125/svp_client.js +2 -1
- package/tencentcloud/services/svp/v20240125/svp_models.d.ts +0 -21
- package/index.d.ts +0 -2
- package/index.js +0 -6
- package/prettier.config.js +0 -38
- package/src/index.ts +0 -1
- package/src/services/index.ts +0 -1
- package/src/services/svp/index.ts +0 -5
- package/src/services/svp/v20240125/index.ts +0 -6
- package/src/services/svp/v20240125/svp_client.ts +0 -95
- package/src/services/svp/v20240125/svp_models.ts +0 -556
- package/tsconfig.json +0 -33
- package/typings/index.d.ts +0 -2
package/README.md
CHANGED
|
@@ -52,10 +52,24 @@ npm install tencentcloud-sdk-nodejs --save
|
|
|
52
52
|
|
|
53
53
|
## 通过源码包安装
|
|
54
54
|
|
|
55
|
-
1.
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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 @@
|
|
|
1
|
+
export { svp } from "./svp";
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
+
export class Client extends TencentCloudCommon.AbstractClient {
|
|
3
|
+
constructor(clientConfig) {
|
|
4
|
+
super("svp.tencentcloudapi.com", "2024-01-25", clientConfig);
|
|
5
|
+
}
|
|
6
|
+
async DescribeSavingPlanCoverage(req, cb) {
|
|
7
|
+
return this.request("DescribeSavingPlanCoverage", req, cb);
|
|
8
|
+
}
|
|
9
|
+
async DescribeSavingPlanUsage(req, cb) {
|
|
10
|
+
return this.request("DescribeSavingPlanUsage", req, cb);
|
|
11
|
+
}
|
|
12
|
+
async DescribeSavingPlanOverview(req, cb) {
|
|
13
|
+
return this.request("DescribeSavingPlanOverview", req, cb);
|
|
14
|
+
}
|
|
15
|
+
async CreateSavingPlanOrder(req, cb) {
|
|
16
|
+
return this.request("CreateSavingPlanOrder", req, cb);
|
|
17
|
+
}
|
|
18
|
+
async DescribeSavingPlanDeduct(req, cb) {
|
|
19
|
+
return this.request("DescribeSavingPlanDeduct", req, cb);
|
|
20
|
+
}
|
|
21
|
+
}
|
|
File without changes
|
package/package.json
CHANGED
|
@@ -1,16 +1,25 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-svp",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.1",
|
|
4
4
|
"description": "腾讯云 API NODEJS SDK",
|
|
5
|
-
"main": "tencentcloud/index.js",
|
|
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": "
|
|
9
|
-
"
|
|
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",
|
|
@@ -43,10 +52,12 @@
|
|
|
43
52
|
"@typescript-eslint/parser": "^2.34.0",
|
|
44
53
|
"babel-eslint": "^10.0.2",
|
|
45
54
|
"chai": "^4.2.0",
|
|
55
|
+
"concurrently": "^6.5.1",
|
|
46
56
|
"eslint": "^6.8.0",
|
|
47
57
|
"eslint-plugin-react": "^7.17.0",
|
|
48
|
-
"mocha": "^8.
|
|
58
|
+
"mocha": "^8.4.0",
|
|
49
59
|
"prettier": "^2.3.0",
|
|
60
|
+
"rimraf": "^5.0.10",
|
|
50
61
|
"ts-node": "^8.10.2",
|
|
51
62
|
"typescript": "^3.9.7"
|
|
52
63
|
}
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.v20240125 = void 0;
|
|
4
|
-
const
|
|
4
|
+
const tslib_1 = require("tslib");
|
|
5
|
+
const Models = tslib_1.__importStar(require("./svp_models"));
|
|
5
6
|
const svp_client_1 = require("./svp_client");
|
|
6
7
|
exports.v20240125 = {
|
|
7
8
|
Client: svp_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
|
* svp client
|
|
24
25
|
* @class
|
|
@@ -211,102 +211,82 @@ export interface DescribeSavingPlanUsageRequest {
|
|
|
211
211
|
export interface SavingPlanDeductDetail {
|
|
212
212
|
/**
|
|
213
213
|
* 账号id
|
|
214
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
215
214
|
*/
|
|
216
215
|
OwnerUin?: string;
|
|
217
216
|
/**
|
|
218
217
|
* 账号名称
|
|
219
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
220
218
|
*/
|
|
221
219
|
OwnerUinName?: string;
|
|
222
220
|
/**
|
|
223
221
|
* 抵扣账号id
|
|
224
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
225
222
|
*/
|
|
226
223
|
PayerUin?: string;
|
|
227
224
|
/**
|
|
228
225
|
* 抵扣账号名称
|
|
229
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
230
226
|
*/
|
|
231
227
|
PayerUinName?: string;
|
|
232
228
|
/**
|
|
233
229
|
* 节省计划资源id
|
|
234
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
235
230
|
*/
|
|
236
231
|
SpId?: string;
|
|
237
232
|
/**
|
|
238
233
|
* 产品编码
|
|
239
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
240
234
|
*/
|
|
241
235
|
ProductCode?: string;
|
|
242
236
|
/**
|
|
243
237
|
* 产品名称
|
|
244
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
245
238
|
*/
|
|
246
239
|
ProductName?: string;
|
|
247
240
|
/**
|
|
248
241
|
* 子产品编码
|
|
249
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
250
242
|
*/
|
|
251
243
|
SubProductCode?: string;
|
|
252
244
|
/**
|
|
253
245
|
* 子产品名称
|
|
254
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
255
246
|
*/
|
|
256
247
|
SubProductName?: string;
|
|
257
248
|
/**
|
|
258
249
|
* 交易ID
|
|
259
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
260
250
|
*/
|
|
261
251
|
OutTradeNo?: string;
|
|
262
252
|
/**
|
|
263
253
|
* 地域id
|
|
264
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
265
254
|
*/
|
|
266
255
|
RegionId?: number;
|
|
267
256
|
/**
|
|
268
257
|
* 地域名称
|
|
269
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
270
258
|
*/
|
|
271
259
|
RegionName?: string;
|
|
272
260
|
/**
|
|
273
261
|
* 地区id
|
|
274
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
275
262
|
*/
|
|
276
263
|
ZoneId?: number;
|
|
277
264
|
/**
|
|
278
265
|
* 地区名称
|
|
279
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
280
266
|
*/
|
|
281
267
|
ZoneName?: string;
|
|
282
268
|
/**
|
|
283
269
|
* 开始使用时间
|
|
284
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
285
270
|
*/
|
|
286
271
|
SpStartTime?: string;
|
|
287
272
|
/**
|
|
288
273
|
* 结束使用时间
|
|
289
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
290
274
|
*/
|
|
291
275
|
SpEndTime?: string;
|
|
292
276
|
/**
|
|
293
277
|
* 折扣时间
|
|
294
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
295
278
|
*/
|
|
296
279
|
DeductTime?: string;
|
|
297
280
|
/**
|
|
298
281
|
* 抵扣金额,单位分
|
|
299
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
300
282
|
*/
|
|
301
283
|
DeductAmount?: string;
|
|
302
284
|
/**
|
|
303
285
|
* 抵扣折扣率
|
|
304
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
305
286
|
*/
|
|
306
287
|
DeductDiscount?: string;
|
|
307
288
|
/**
|
|
308
289
|
* 抵扣比率
|
|
309
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
310
290
|
*/
|
|
311
291
|
DeductRate?: string;
|
|
312
292
|
}
|
|
@@ -389,7 +369,6 @@ export interface SavingPlanCoverageDetail {
|
|
|
389
369
|
export interface DescribeSavingPlanOverviewResponse {
|
|
390
370
|
/**
|
|
391
371
|
* 节省计划总览明细数据
|
|
392
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
393
372
|
*/
|
|
394
373
|
Overviews?: Array<SavingPlanOverviewDetail>;
|
|
395
374
|
/**
|
package/index.d.ts
DELETED
package/index.js
DELETED
package/prettier.config.js
DELETED
|
@@ -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"
|
package/src/services/index.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export { svp } from "./svp"
|
|
@@ -1,95 +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
|
-
CreateSavingPlanOrderRequest,
|
|
21
|
-
DescribeSavingPlanCoverageRequest,
|
|
22
|
-
CreateSavingPlanOrderResponse,
|
|
23
|
-
DescribeSavingPlanDeductRequest,
|
|
24
|
-
SavingPlanOverviewDetail,
|
|
25
|
-
SavingPlanCoverageRate,
|
|
26
|
-
DescribeSavingPlanUsageRequest,
|
|
27
|
-
SavingPlanDeductDetail,
|
|
28
|
-
SavingPlanCoverageDetail,
|
|
29
|
-
DescribeSavingPlanOverviewResponse,
|
|
30
|
-
DescribeSavingPlanUsageResponse,
|
|
31
|
-
DescribeSavingPlanDeductResponse,
|
|
32
|
-
DescribeSavingPlanOverviewRequest,
|
|
33
|
-
SavingPlanUsageDetail,
|
|
34
|
-
DescribeSavingPlanCoverageResponse,
|
|
35
|
-
} from "./svp_models"
|
|
36
|
-
|
|
37
|
-
/**
|
|
38
|
-
* svp client
|
|
39
|
-
* @class
|
|
40
|
-
*/
|
|
41
|
-
export class Client extends TencentCloudCommon.AbstractClient {
|
|
42
|
-
constructor(clientConfig: TencentCloudCommon.ClientConfig) {
|
|
43
|
-
super("svp.tencentcloudapi.com", "2024-01-25", clientConfig)
|
|
44
|
-
}
|
|
45
|
-
|
|
46
|
-
/**
|
|
47
|
-
* 查询当前用户节省计划覆盖率明细数据,如无特别说明,金额单位均为元(国内站)或者美元(国际站)。
|
|
48
|
-
*/
|
|
49
|
-
async DescribeSavingPlanCoverage(
|
|
50
|
-
req: DescribeSavingPlanCoverageRequest,
|
|
51
|
-
cb?: (error: string, rep: DescribeSavingPlanCoverageResponse) => void
|
|
52
|
-
): Promise<DescribeSavingPlanCoverageResponse> {
|
|
53
|
-
return this.request("DescribeSavingPlanCoverage", req, cb)
|
|
54
|
-
}
|
|
55
|
-
|
|
56
|
-
/**
|
|
57
|
-
* 查用当前用户明细节省计划查询时段内的使用情况
|
|
58
|
-
*/
|
|
59
|
-
async DescribeSavingPlanUsage(
|
|
60
|
-
req: DescribeSavingPlanUsageRequest,
|
|
61
|
-
cb?: (error: string, rep: DescribeSavingPlanUsageResponse) => void
|
|
62
|
-
): Promise<DescribeSavingPlanUsageResponse> {
|
|
63
|
-
return this.request("DescribeSavingPlanUsage", req, cb)
|
|
64
|
-
}
|
|
65
|
-
|
|
66
|
-
/**
|
|
67
|
-
* 查用当前用户明细节省计划总览查询时段内的使用情况
|
|
68
|
-
*/
|
|
69
|
-
async DescribeSavingPlanOverview(
|
|
70
|
-
req: DescribeSavingPlanOverviewRequest,
|
|
71
|
-
cb?: (error: string, rep: DescribeSavingPlanOverviewResponse) => void
|
|
72
|
-
): Promise<DescribeSavingPlanOverviewResponse> {
|
|
73
|
-
return this.request("DescribeSavingPlanOverview", req, cb)
|
|
74
|
-
}
|
|
75
|
-
|
|
76
|
-
/**
|
|
77
|
-
* 创建节省计划订单
|
|
78
|
-
*/
|
|
79
|
-
async CreateSavingPlanOrder(
|
|
80
|
-
req: CreateSavingPlanOrderRequest,
|
|
81
|
-
cb?: (error: string, rep: CreateSavingPlanOrderResponse) => void
|
|
82
|
-
): Promise<CreateSavingPlanOrderResponse> {
|
|
83
|
-
return this.request("CreateSavingPlanOrder", req, cb)
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* 查询节省计划抵扣明细
|
|
88
|
-
*/
|
|
89
|
-
async DescribeSavingPlanDeduct(
|
|
90
|
-
req: DescribeSavingPlanDeductRequest,
|
|
91
|
-
cb?: (error: string, rep: DescribeSavingPlanDeductResponse) => void
|
|
92
|
-
): Promise<DescribeSavingPlanDeductResponse> {
|
|
93
|
-
return this.request("DescribeSavingPlanDeduct", req, cb)
|
|
94
|
-
}
|
|
95
|
-
}
|
|
@@ -1,556 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Copyright (c) 2018 THL A29 Limited, a Tencent company. All Rights Reserved.
|
|
3
|
-
*
|
|
4
|
-
* Licensed under the Apache License, Version 2.0 (the "License");
|
|
5
|
-
* you may not use this file except in compliance with the License.
|
|
6
|
-
* You may obtain a copy of the License at
|
|
7
|
-
*
|
|
8
|
-
* http://www.apache.org/licenses/LICENSE-2.0
|
|
9
|
-
*
|
|
10
|
-
* Unless required by applicable law or agreed to in writing,
|
|
11
|
-
* software distributed under the License is distributed on an
|
|
12
|
-
* "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
|
|
13
|
-
* KIND, either express or implied. See the License for the
|
|
14
|
-
* specific language governing permissions and limitations
|
|
15
|
-
* under the License.
|
|
16
|
-
*/
|
|
17
|
-
|
|
18
|
-
/**
|
|
19
|
-
* CreateSavingPlanOrder请求参数结构体
|
|
20
|
-
*/
|
|
21
|
-
export interface CreateSavingPlanOrderRequest {
|
|
22
|
-
/**
|
|
23
|
-
* 地域编码
|
|
24
|
-
*/
|
|
25
|
-
RegionId: number
|
|
26
|
-
/**
|
|
27
|
-
* 区域编码
|
|
28
|
-
*/
|
|
29
|
-
ZoneId: number
|
|
30
|
-
/**
|
|
31
|
-
* 预付费类型
|
|
32
|
-
*/
|
|
33
|
-
PrePayType: string
|
|
34
|
-
/**
|
|
35
|
-
* 时长
|
|
36
|
-
*/
|
|
37
|
-
TimeSpan: number
|
|
38
|
-
/**
|
|
39
|
-
* 时长单位
|
|
40
|
-
*/
|
|
41
|
-
TimeUnit: string
|
|
42
|
-
/**
|
|
43
|
-
* 商品唯一标识
|
|
44
|
-
*/
|
|
45
|
-
CommodityCode: string
|
|
46
|
-
/**
|
|
47
|
-
* 承诺时长内的小额金额(单位:元)
|
|
48
|
-
*/
|
|
49
|
-
PromiseUseAmount: number
|
|
50
|
-
/**
|
|
51
|
-
* 节省计划的指定生效时间,若不传则为当前下单时间。传参数格式:"2023-10-01 00:00:00",仅支持指定日期的0点时刻
|
|
52
|
-
*/
|
|
53
|
-
SpecifyEffectTime?: string
|
|
54
|
-
/**
|
|
55
|
-
* 可重入ID
|
|
56
|
-
*/
|
|
57
|
-
ClientToken?: string
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
/**
|
|
61
|
-
* DescribeSavingPlanCoverage请求参数结构体
|
|
62
|
-
*/
|
|
63
|
-
export interface DescribeSavingPlanCoverageRequest {
|
|
64
|
-
/**
|
|
65
|
-
* 费用起始日期,格式yyyy-MM-dd
|
|
66
|
-
*/
|
|
67
|
-
StartDate: string
|
|
68
|
-
/**
|
|
69
|
-
* 费用结束日期,格式yyyy-MM-dd
|
|
70
|
-
*/
|
|
71
|
-
EndDate: string
|
|
72
|
-
/**
|
|
73
|
-
* 分页偏移量,Offset=0表示第一页,如果Limit=100,则Offset=100表示第二页,Offset=200表示第三页,以此类推
|
|
74
|
-
*/
|
|
75
|
-
Offset: number
|
|
76
|
-
/**
|
|
77
|
-
* 数量,最大值为200
|
|
78
|
-
*/
|
|
79
|
-
Limit: number
|
|
80
|
-
/**
|
|
81
|
-
* 取值包括1(缺省值)和2,1表示按天统计覆盖率,2表示按月统计覆盖率,此参数仅影响返回的RateSet聚合粒度,不影响返回的DetailSet
|
|
82
|
-
*/
|
|
83
|
-
PeriodType?: number
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/**
|
|
87
|
-
* CreateSavingPlanOrder返回参数结构体
|
|
88
|
-
*/
|
|
89
|
-
export interface CreateSavingPlanOrderResponse {
|
|
90
|
-
/**
|
|
91
|
-
* 订单号
|
|
92
|
-
*/
|
|
93
|
-
BigDealId?: string
|
|
94
|
-
/**
|
|
95
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
96
|
-
*/
|
|
97
|
-
RequestId?: string
|
|
98
|
-
}
|
|
99
|
-
|
|
100
|
-
/**
|
|
101
|
-
* DescribeSavingPlanDeduct请求参数结构体
|
|
102
|
-
*/
|
|
103
|
-
export interface DescribeSavingPlanDeductRequest {
|
|
104
|
-
/**
|
|
105
|
-
* 分页偏移量
|
|
106
|
-
*/
|
|
107
|
-
Offset: number
|
|
108
|
-
/**
|
|
109
|
-
* 每页数量,最大值为200
|
|
110
|
-
*/
|
|
111
|
-
Limit: number
|
|
112
|
-
/**
|
|
113
|
-
* 节省计划使用开始的查询结束时间
|
|
114
|
-
*/
|
|
115
|
-
StartEndDate: string
|
|
116
|
-
/**
|
|
117
|
-
* 节省计划使用开始的查询开始时间
|
|
118
|
-
*/
|
|
119
|
-
StartStartDate: string
|
|
120
|
-
/**
|
|
121
|
-
* 地域编码
|
|
122
|
-
*/
|
|
123
|
-
RegionId?: number
|
|
124
|
-
/**
|
|
125
|
-
* 区域编码
|
|
126
|
-
*/
|
|
127
|
-
ZoneId?: number
|
|
128
|
-
/**
|
|
129
|
-
* 节省计划资源id
|
|
130
|
-
*/
|
|
131
|
-
SpId?: string
|
|
132
|
-
/**
|
|
133
|
-
* 抵扣查询结束时间,格式:yyyy-MM-dd HH:mm:ss
|
|
134
|
-
*/
|
|
135
|
-
DeductEndDate?: string
|
|
136
|
-
/**
|
|
137
|
-
* 抵扣查询开始时间,格式:yyyy-MM-dd HH:mm:ss
|
|
138
|
-
*/
|
|
139
|
-
DeductStartDate?: string
|
|
140
|
-
/**
|
|
141
|
-
* 节省计划使用结束的查询结束时间
|
|
142
|
-
*/
|
|
143
|
-
EndEndDate?: string
|
|
144
|
-
/**
|
|
145
|
-
* 节省计划使用结束的查询开始时间
|
|
146
|
-
*/
|
|
147
|
-
EndStartDate?: string
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* 节省计划总览明细数据
|
|
152
|
-
*/
|
|
153
|
-
export interface SavingPlanOverviewDetail {
|
|
154
|
-
/**
|
|
155
|
-
* 节省计划类型
|
|
156
|
-
*/
|
|
157
|
-
SpType?: string
|
|
158
|
-
/**
|
|
159
|
-
* 支付金额(单位:元)
|
|
160
|
-
*/
|
|
161
|
-
PayAmount?: string
|
|
162
|
-
/**
|
|
163
|
-
* 开始时间 yyyy-mm-dd HH:mm:ss格式
|
|
164
|
-
*/
|
|
165
|
-
StartTime?: string
|
|
166
|
-
/**
|
|
167
|
-
* 结束时间 yyyy-mm-dd HH:mm:ss格式
|
|
168
|
-
*/
|
|
169
|
-
EndTime?: string
|
|
170
|
-
/**
|
|
171
|
-
* 状态
|
|
172
|
-
*/
|
|
173
|
-
Status?: number
|
|
174
|
-
/**
|
|
175
|
-
* 累计节省金额(单位:元)
|
|
176
|
-
*/
|
|
177
|
-
SavingAmount?: string
|
|
178
|
-
/**
|
|
179
|
-
* 地域
|
|
180
|
-
*/
|
|
181
|
-
Region?: Array<string>
|
|
182
|
-
/**
|
|
183
|
-
* 支付类型
|
|
184
|
-
*/
|
|
185
|
-
PayType?: number
|
|
186
|
-
/**
|
|
187
|
-
* 购买时间 yyyy-mm-dd HH:mm:ss格式
|
|
188
|
-
*/
|
|
189
|
-
BuyTime?: string
|
|
190
|
-
}
|
|
191
|
-
|
|
192
|
-
/**
|
|
193
|
-
* 节省计划覆盖率聚合数据
|
|
194
|
-
*/
|
|
195
|
-
export interface SavingPlanCoverageRate {
|
|
196
|
-
/**
|
|
197
|
-
* 聚合时间维度,按天聚合格式为yyyy-MM-dd,按月聚合格式为yyyy-MM
|
|
198
|
-
*/
|
|
199
|
-
DatePoint?: string
|
|
200
|
-
/**
|
|
201
|
-
* 覆盖率结果,取值[0, 100]
|
|
202
|
-
*/
|
|
203
|
-
Rate?: number
|
|
204
|
-
}
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* DescribeSavingPlanUsage请求参数结构体
|
|
208
|
-
*/
|
|
209
|
-
export interface DescribeSavingPlanUsageRequest {
|
|
210
|
-
/**
|
|
211
|
-
* 开始时间,格式yyyy-MM-dd 注:查询范围请勿超过6个月
|
|
212
|
-
*/
|
|
213
|
-
StartDate: string
|
|
214
|
-
/**
|
|
215
|
-
* 结束时间,格式yyyy-MM-dd
|
|
216
|
-
*/
|
|
217
|
-
EndDate: string
|
|
218
|
-
/**
|
|
219
|
-
* 分页偏移量
|
|
220
|
-
*/
|
|
221
|
-
Offset: number
|
|
222
|
-
/**
|
|
223
|
-
* 每页数量,最大值为200
|
|
224
|
-
*/
|
|
225
|
-
Limit: number
|
|
226
|
-
/**
|
|
227
|
-
* 查询结果数据的时间间隔
|
|
228
|
-
*/
|
|
229
|
-
TimeInterval: string
|
|
230
|
-
}
|
|
231
|
-
|
|
232
|
-
/**
|
|
233
|
-
* 节省计划抵扣明细
|
|
234
|
-
*/
|
|
235
|
-
export interface SavingPlanDeductDetail {
|
|
236
|
-
/**
|
|
237
|
-
* 账号id
|
|
238
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
239
|
-
*/
|
|
240
|
-
OwnerUin?: string
|
|
241
|
-
/**
|
|
242
|
-
* 账号名称
|
|
243
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
244
|
-
*/
|
|
245
|
-
OwnerUinName?: string
|
|
246
|
-
/**
|
|
247
|
-
* 抵扣账号id
|
|
248
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
249
|
-
*/
|
|
250
|
-
PayerUin?: string
|
|
251
|
-
/**
|
|
252
|
-
* 抵扣账号名称
|
|
253
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
254
|
-
*/
|
|
255
|
-
PayerUinName?: string
|
|
256
|
-
/**
|
|
257
|
-
* 节省计划资源id
|
|
258
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
259
|
-
*/
|
|
260
|
-
SpId?: string
|
|
261
|
-
/**
|
|
262
|
-
* 产品编码
|
|
263
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
264
|
-
*/
|
|
265
|
-
ProductCode?: string
|
|
266
|
-
/**
|
|
267
|
-
* 产品名称
|
|
268
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
269
|
-
*/
|
|
270
|
-
ProductName?: string
|
|
271
|
-
/**
|
|
272
|
-
* 子产品编码
|
|
273
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
274
|
-
*/
|
|
275
|
-
SubProductCode?: string
|
|
276
|
-
/**
|
|
277
|
-
* 子产品名称
|
|
278
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
279
|
-
*/
|
|
280
|
-
SubProductName?: string
|
|
281
|
-
/**
|
|
282
|
-
* 交易ID
|
|
283
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
284
|
-
*/
|
|
285
|
-
OutTradeNo?: string
|
|
286
|
-
/**
|
|
287
|
-
* 地域id
|
|
288
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
289
|
-
*/
|
|
290
|
-
RegionId?: number
|
|
291
|
-
/**
|
|
292
|
-
* 地域名称
|
|
293
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
294
|
-
*/
|
|
295
|
-
RegionName?: string
|
|
296
|
-
/**
|
|
297
|
-
* 地区id
|
|
298
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
299
|
-
*/
|
|
300
|
-
ZoneId?: number
|
|
301
|
-
/**
|
|
302
|
-
* 地区名称
|
|
303
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
304
|
-
*/
|
|
305
|
-
ZoneName?: string
|
|
306
|
-
/**
|
|
307
|
-
* 开始使用时间
|
|
308
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
309
|
-
*/
|
|
310
|
-
SpStartTime?: string
|
|
311
|
-
/**
|
|
312
|
-
* 结束使用时间
|
|
313
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
314
|
-
*/
|
|
315
|
-
SpEndTime?: string
|
|
316
|
-
/**
|
|
317
|
-
* 折扣时间
|
|
318
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
319
|
-
*/
|
|
320
|
-
DeductTime?: string
|
|
321
|
-
/**
|
|
322
|
-
* 抵扣金额,单位分
|
|
323
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
324
|
-
*/
|
|
325
|
-
DeductAmount?: string
|
|
326
|
-
/**
|
|
327
|
-
* 抵扣折扣率
|
|
328
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
329
|
-
*/
|
|
330
|
-
DeductDiscount?: string
|
|
331
|
-
/**
|
|
332
|
-
* 抵扣比率
|
|
333
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
334
|
-
*/
|
|
335
|
-
DeductRate?: string
|
|
336
|
-
}
|
|
337
|
-
|
|
338
|
-
/**
|
|
339
|
-
* 节省计划覆盖率数据
|
|
340
|
-
*/
|
|
341
|
-
export interface SavingPlanCoverageDetail {
|
|
342
|
-
/**
|
|
343
|
-
* 资源 ID:账单中出账对象 ID,不同产品因资源形态不同,资源内容不完全相同,如云服务器 CVM 为对应的实例 ID
|
|
344
|
-
*/
|
|
345
|
-
ResourceId?: string
|
|
346
|
-
/**
|
|
347
|
-
* 地域ID
|
|
348
|
-
*/
|
|
349
|
-
RegionId?: number
|
|
350
|
-
/**
|
|
351
|
-
* 产品编码
|
|
352
|
-
*/
|
|
353
|
-
ProductCode?: string
|
|
354
|
-
/**
|
|
355
|
-
* 子产品编码
|
|
356
|
-
*/
|
|
357
|
-
SubProductCode?: string
|
|
358
|
-
/**
|
|
359
|
-
* 费用起始日期,格式yyyy-MM-dd
|
|
360
|
-
*/
|
|
361
|
-
StartDate?: string
|
|
362
|
-
/**
|
|
363
|
-
* 费用结束日期,格式yyyy-MM-dd,目前与StartDate相等
|
|
364
|
-
*/
|
|
365
|
-
EndDate?: string
|
|
366
|
-
/**
|
|
367
|
-
* 节省计划覆盖金额(即节省计划支付金额)
|
|
368
|
-
*/
|
|
369
|
-
SpCoveredAmount?: number
|
|
370
|
-
/**
|
|
371
|
-
* 节省计划未覆盖金额(即优惠后总价)
|
|
372
|
-
*/
|
|
373
|
-
SpUncoveredAmount?: number
|
|
374
|
-
/**
|
|
375
|
-
* 总支出(即节省计划未覆盖金额 + 节省计划覆盖金额)
|
|
376
|
-
*/
|
|
377
|
-
TotalRealAmount?: number
|
|
378
|
-
/**
|
|
379
|
-
* 按量计费预期金额(即折前价 * 折扣)
|
|
380
|
-
*/
|
|
381
|
-
ExpectedAmount?: number
|
|
382
|
-
/**
|
|
383
|
-
* 覆盖率结果,取值[0, 100]
|
|
384
|
-
*/
|
|
385
|
-
SpCoverage?: number
|
|
386
|
-
/**
|
|
387
|
-
* 支付者昵称
|
|
388
|
-
*/
|
|
389
|
-
PayerUinName?: string
|
|
390
|
-
/**
|
|
391
|
-
* 使用者昵称
|
|
392
|
-
*/
|
|
393
|
-
OwnerUinName?: string
|
|
394
|
-
/**
|
|
395
|
-
* 支付者uin
|
|
396
|
-
*/
|
|
397
|
-
PayerUin?: string
|
|
398
|
-
/**
|
|
399
|
-
* 计费项名称
|
|
400
|
-
*/
|
|
401
|
-
SubBillingItemName?: string
|
|
402
|
-
/**
|
|
403
|
-
* 计费细项名称
|
|
404
|
-
*/
|
|
405
|
-
BillingItemName?: string
|
|
406
|
-
/**
|
|
407
|
-
* 子产品名称
|
|
408
|
-
*/
|
|
409
|
-
SubProductName?: string
|
|
410
|
-
}
|
|
411
|
-
|
|
412
|
-
/**
|
|
413
|
-
* DescribeSavingPlanOverview返回参数结构体
|
|
414
|
-
*/
|
|
415
|
-
export interface DescribeSavingPlanOverviewResponse {
|
|
416
|
-
/**
|
|
417
|
-
* 节省计划总览明细数据
|
|
418
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
419
|
-
*/
|
|
420
|
-
Overviews?: Array<SavingPlanOverviewDetail>
|
|
421
|
-
/**
|
|
422
|
-
* 查询命中的节省计划总览明细数据总条数
|
|
423
|
-
*/
|
|
424
|
-
Total?: number
|
|
425
|
-
/**
|
|
426
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
427
|
-
*/
|
|
428
|
-
RequestId?: string
|
|
429
|
-
}
|
|
430
|
-
|
|
431
|
-
/**
|
|
432
|
-
* DescribeSavingPlanUsage返回参数结构体
|
|
433
|
-
*/
|
|
434
|
-
export interface DescribeSavingPlanUsageResponse {
|
|
435
|
-
/**
|
|
436
|
-
* 查询命中的节省计划总览明细数据总条数
|
|
437
|
-
*/
|
|
438
|
-
Total?: number
|
|
439
|
-
/**
|
|
440
|
-
* 节省计划使用率数据
|
|
441
|
-
*/
|
|
442
|
-
Usages?: Array<SavingPlanUsageDetail>
|
|
443
|
-
/**
|
|
444
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
445
|
-
*/
|
|
446
|
-
RequestId?: string
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
/**
|
|
450
|
-
* DescribeSavingPlanDeduct返回参数结构体
|
|
451
|
-
*/
|
|
452
|
-
export interface DescribeSavingPlanDeductResponse {
|
|
453
|
-
/**
|
|
454
|
-
* 查询命中的节省计划抵扣明细数据总条数
|
|
455
|
-
注意:此字段可能返回 null,表示取不到有效值。
|
|
456
|
-
*/
|
|
457
|
-
Total?: number
|
|
458
|
-
/**
|
|
459
|
-
* 查询命中的节省计划抵扣明细数据明细
|
|
460
|
-
*/
|
|
461
|
-
Deducts?: Array<SavingPlanDeductDetail>
|
|
462
|
-
/**
|
|
463
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
464
|
-
*/
|
|
465
|
-
RequestId?: string
|
|
466
|
-
}
|
|
467
|
-
|
|
468
|
-
/**
|
|
469
|
-
* DescribeSavingPlanOverview请求参数结构体
|
|
470
|
-
*/
|
|
471
|
-
export interface DescribeSavingPlanOverviewRequest {
|
|
472
|
-
/**
|
|
473
|
-
* 开始时间,格式yyyy-MM-dd 注:查询范围请勿超过6个月
|
|
474
|
-
*/
|
|
475
|
-
StartDate: string
|
|
476
|
-
/**
|
|
477
|
-
* 结束时间,格式yyyy-MM-dd
|
|
478
|
-
*/
|
|
479
|
-
EndDate: string
|
|
480
|
-
/**
|
|
481
|
-
* 分页偏移量
|
|
482
|
-
*/
|
|
483
|
-
Offset: number
|
|
484
|
-
/**
|
|
485
|
-
* 每页数量,最大值为200
|
|
486
|
-
*/
|
|
487
|
-
Limit: number
|
|
488
|
-
}
|
|
489
|
-
|
|
490
|
-
/**
|
|
491
|
-
* 节省计划使用率数据
|
|
492
|
-
*/
|
|
493
|
-
export interface SavingPlanUsageDetail {
|
|
494
|
-
/**
|
|
495
|
-
* 节省计划类型
|
|
496
|
-
*/
|
|
497
|
-
SpType?: string
|
|
498
|
-
/**
|
|
499
|
-
* 节省计划状态
|
|
500
|
-
*/
|
|
501
|
-
Status?: number
|
|
502
|
-
/**
|
|
503
|
-
* 累计抵扣的金额(单位:元)
|
|
504
|
-
*/
|
|
505
|
-
DeductAmount?: string
|
|
506
|
-
/**
|
|
507
|
-
* 累计承诺消费金额(单位:元)
|
|
508
|
-
*/
|
|
509
|
-
PromiseAmount?: string
|
|
510
|
-
/**
|
|
511
|
-
* 累计净节省金额(单位:元)
|
|
512
|
-
*/
|
|
513
|
-
NetSavings?: string
|
|
514
|
-
/**
|
|
515
|
-
* 使用率
|
|
516
|
-
*/
|
|
517
|
-
UtilizationRate?: number
|
|
518
|
-
/**
|
|
519
|
-
* 累计流失金额(单位:元)
|
|
520
|
-
*/
|
|
521
|
-
LossAmount?: string
|
|
522
|
-
/**
|
|
523
|
-
* 累计按量计费预期金额(单位:元)
|
|
524
|
-
*/
|
|
525
|
-
DosageAmount?: string
|
|
526
|
-
/**
|
|
527
|
-
* 累计成本金额(单位:元)
|
|
528
|
-
*/
|
|
529
|
-
CostAmount?: string
|
|
530
|
-
/**
|
|
531
|
-
* 地域
|
|
532
|
-
*/
|
|
533
|
-
Region?: Array<string>
|
|
534
|
-
}
|
|
535
|
-
|
|
536
|
-
/**
|
|
537
|
-
* DescribeSavingPlanCoverage返回参数结构体
|
|
538
|
-
*/
|
|
539
|
-
export interface DescribeSavingPlanCoverageResponse {
|
|
540
|
-
/**
|
|
541
|
-
* 节省计划覆盖率明细数据
|
|
542
|
-
*/
|
|
543
|
-
DetailSet?: Array<SavingPlanCoverageDetail>
|
|
544
|
-
/**
|
|
545
|
-
* 节省计划覆盖率聚合数据
|
|
546
|
-
*/
|
|
547
|
-
RateSet?: Array<SavingPlanCoverageRate>
|
|
548
|
-
/**
|
|
549
|
-
* 查询命中的节省计划覆盖率明细数据总条数
|
|
550
|
-
*/
|
|
551
|
-
TotalCount?: number
|
|
552
|
-
/**
|
|
553
|
-
* 唯一请求 ID,由服务端生成,每次请求都会返回(若请求因其他原因未能抵达服务端,则该次请求不会获得 RequestId)。定位问题时需要提供该次请求的 RequestId。
|
|
554
|
-
*/
|
|
555
|
-
RequestId?: string
|
|
556
|
-
}
|
package/tsconfig.json
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"compilerOptions": {
|
|
3
|
-
// "incremental": true, /* 增量编译 提高编译速度*/
|
|
4
|
-
"target": "ES2019" /* 编译目标ES版本*/,
|
|
5
|
-
"module": "commonjs" /* 编译目标模块系统*/,
|
|
6
|
-
// "lib": [], /* 编译过程中需要引入的库文件列表*/
|
|
7
|
-
"declaration": true /* 编译时创建声明文件 */,
|
|
8
|
-
"outDir": "tencentcloud" /* ts编译输出目录 */,
|
|
9
|
-
"rootDir": "src" /* ts编译根目录. */,
|
|
10
|
-
"importHelpers": true /* 从tslib导入辅助工具函数(如__importDefault)*/,
|
|
11
|
-
"strict": true /* 严格模式开关 等价于noImplicitAny、strictNullChecks、strictFunctionTypes、strictBindCallApply等设置true */,
|
|
12
|
-
"strictNullChecks": false,
|
|
13
|
-
"noUnusedLocals": false /* 未使用局部变量报错*/,
|
|
14
|
-
"noUnusedParameters": false /* 未使用参数报错*/,
|
|
15
|
-
"noImplicitReturns": true /* 有代码路径没有返回值时报错*/,
|
|
16
|
-
"noFallthroughCasesInSwitch": true /* 不允许switch的case语句贯穿*/,
|
|
17
|
-
"moduleResolution": "node" /* 模块解析策略 */,
|
|
18
|
-
"typeRoots": [
|
|
19
|
-
/* 要包含的类型声明文件路径列表*/
|
|
20
|
-
"./typings",
|
|
21
|
-
"./node_modules/@types"
|
|
22
|
-
],
|
|
23
|
-
"allowSyntheticDefaultImports": true /* 允许从没有设置默认导出的模块中默认导入,仅用于提示,不影响编译结果*/,
|
|
24
|
-
"esModuleInterop": false /* 允许编译生成文件时,在代码中注入工具类(__importDefault、__importStar)对ESM与commonjs混用情况做兼容处理*/,
|
|
25
|
-
"sourceMap": false
|
|
26
|
-
},
|
|
27
|
-
"include": [
|
|
28
|
-
/* 需要编译的文件 */
|
|
29
|
-
"src/**/*.ts",
|
|
30
|
-
"typings/**/*.ts"
|
|
31
|
-
],
|
|
32
|
-
"exclude": []
|
|
33
|
-
}
|
package/typings/index.d.ts
DELETED