@huaweicloud/huaweicloud-sdk-core 3.1.2 → 3.1.4
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/CHANGELOG.md +104 -0
- package/CHANGELOG_CN.md +104 -0
- package/exception/ExceptionUtil.js +14 -2
- package/package.json +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,3 +1,107 @@
|
|
|
1
|
+
# 3.1.4 2022-09-26
|
|
2
|
+
|
|
3
|
+
### HuaweiCloud SDK FunctionGraph
|
|
4
|
+
|
|
5
|
+
- _Features_
|
|
6
|
+
- None
|
|
7
|
+
- _Bug Fix_
|
|
8
|
+
- None
|
|
9
|
+
- _Change_
|
|
10
|
+
- Add the response parameters `version`, `last_modified` to the interface `CreateDependency`
|
|
11
|
+
- Add the response parameters `version`, `last_modified` to the interface `ListDependencies`
|
|
12
|
+
|
|
13
|
+
### HuaweiCloud SDK Moderation
|
|
14
|
+
|
|
15
|
+
- _Features_
|
|
16
|
+
- None
|
|
17
|
+
- _Bug Fix_
|
|
18
|
+
- Fix the problem that the response parameters' type of the interface `CheckImageModeration` is incorrect
|
|
19
|
+
- _Change_
|
|
20
|
+
- None
|
|
21
|
+
|
|
22
|
+
# 3.1.3 2022-09-22
|
|
23
|
+
|
|
24
|
+
### HuaweiCloud SDK DevStar
|
|
25
|
+
|
|
26
|
+
- _Features_
|
|
27
|
+
- None
|
|
28
|
+
- _Bug Fix_
|
|
29
|
+
- None
|
|
30
|
+
- _Change_
|
|
31
|
+
- Add the enum values `none` to the response parameter `deploy_type` to the interface `ShowApplicationV3`
|
|
32
|
+
- Add the response parameter `subscribe_guide` to the interface `ShowApplicationDependentResources`
|
|
33
|
+
- Add the enum values `none` to the response parameter `deploy_type` to the interface `ListApplicationsV6`
|
|
34
|
+
- Add the response parameter `category_name` to the interface `ShowApplicationReleaseRepositories`
|
|
35
|
+
- Add the response parameter `subscribe_guide` to the interface `ShowTemplateV3`
|
|
36
|
+
- Add the response parameter `subscribe_guide` to the interface `ListTemplatesV2`
|
|
37
|
+
- Add the response parameter `subscribe_guide` to the interface `ListTemplates`
|
|
38
|
+
|
|
39
|
+
### HuaweiCloud SDK EIP
|
|
40
|
+
|
|
41
|
+
- _Features_
|
|
42
|
+
- None
|
|
43
|
+
- _Bug Fix_
|
|
44
|
+
- None
|
|
45
|
+
- _Change_
|
|
46
|
+
- Add the request parameter `port_id` to the interface `CreatePublicip`
|
|
47
|
+
- Add the request parameter `port_id` to the interface `CreatePrePaidPublicip`
|
|
48
|
+
|
|
49
|
+
### HuaweiCloud SDK IoTDA
|
|
50
|
+
|
|
51
|
+
- _Features_
|
|
52
|
+
- None
|
|
53
|
+
- _Bug Fix_
|
|
54
|
+
- None
|
|
55
|
+
- _Change_
|
|
56
|
+
- Add the response parameter `error_info` to the interface `ListDeviceMessages`
|
|
57
|
+
- Add the response parameter `error_info` to the interface `ShowDeviceMessage`
|
|
58
|
+
|
|
59
|
+
### HuaweiCloud SDK Moderation
|
|
60
|
+
|
|
61
|
+
- _Features_
|
|
62
|
+
- Support the interface `CheckImageModeration`
|
|
63
|
+
- _Bug Fix_
|
|
64
|
+
- None
|
|
65
|
+
- _Change_
|
|
66
|
+
- The request parameter `url`, `categories` changed to required of the interface `RunCreateAudioModerationJob`
|
|
67
|
+
|
|
68
|
+
### HuaweiCloud SDK OCR
|
|
69
|
+
|
|
70
|
+
- _Features_
|
|
71
|
+
- None
|
|
72
|
+
- _Bug Fix_
|
|
73
|
+
- None
|
|
74
|
+
- _Change_
|
|
75
|
+
- Changes of the interface `RecognizeIdCard`:
|
|
76
|
+
- Add the request parameter `detect_copy`
|
|
77
|
+
- Add the response parameter `detect_copy_result`
|
|
78
|
+
|
|
79
|
+
### HuaweiCloud SDK SMS
|
|
80
|
+
|
|
81
|
+
- _Features_
|
|
82
|
+
- None
|
|
83
|
+
- _Bug Fix_
|
|
84
|
+
- None
|
|
85
|
+
- _Change_
|
|
86
|
+
- Remove the response parameter `disks` from the interface `ListTemplates`
|
|
87
|
+
- Remove the response parameter `disks` from the interface `ShowTemplate`
|
|
88
|
+
- Remove the request parameter `disks` from the interface `UpdateMigproject`
|
|
89
|
+
- Remove the response parameter `disks` from the interface `ShowMigproject`
|
|
90
|
+
|
|
91
|
+
### HuaweiCloud SDK VOD
|
|
92
|
+
|
|
93
|
+
- _Features_
|
|
94
|
+
- None
|
|
95
|
+
- _Bug Fix_
|
|
96
|
+
- None
|
|
97
|
+
- _Change_
|
|
98
|
+
- Add the response parameters `pack_type`, `pack_type` to the interface `PublishAssets`
|
|
99
|
+
- Add the response parameters `pack_type`, `pack_type` to the interface `UnpublishAssets`
|
|
100
|
+
- Add the response parameters `pack_type`, `pack_type` to the interface `ShowAssetMeta`
|
|
101
|
+
- Add the response parameters `pack_type`, `pack_type` to the interface `ShowAssetDetail`
|
|
102
|
+
- Add the response parameters `pack_type`, `pack_type` to the interface `ShowTakeOverTaskDetails`
|
|
103
|
+
- Add the response parameters `pack_type`, `pack_type` to the interface `ShowTakeOverAssetDetails`
|
|
104
|
+
|
|
1
105
|
# 3.1.2 2022-09-15
|
|
2
106
|
|
|
3
107
|
### HuaweiCloud SDK EVS
|
package/CHANGELOG_CN.md
CHANGED
|
@@ -1,3 +1,107 @@
|
|
|
1
|
+
# 3.1.4 2022-09-26
|
|
2
|
+
|
|
3
|
+
### HuaweiCloud SDK FunctionGraph
|
|
4
|
+
|
|
5
|
+
- _新增特性_
|
|
6
|
+
- 无
|
|
7
|
+
- _解决问题_
|
|
8
|
+
- 无
|
|
9
|
+
- _特性变更_
|
|
10
|
+
- 接口`CreateDependency`新增响应参数 `version`、`last_modified`
|
|
11
|
+
- 接口`ListDependencies`新增响应参数 `version`、`last_modified`
|
|
12
|
+
|
|
13
|
+
### HuaweiCloud SDK Moderation
|
|
14
|
+
|
|
15
|
+
- _新增特性_
|
|
16
|
+
- 无
|
|
17
|
+
- _解决问题_
|
|
18
|
+
- 修复接口`CheckImageModeration`响应参数类型错误的问题
|
|
19
|
+
- _特性变更_
|
|
20
|
+
- 无
|
|
21
|
+
|
|
22
|
+
# 3.1.3 2022-09-22
|
|
23
|
+
|
|
24
|
+
### HuaweiCloud SDK DevStar
|
|
25
|
+
|
|
26
|
+
- _新增特性_
|
|
27
|
+
- 无
|
|
28
|
+
- _解决问题_
|
|
29
|
+
- 无
|
|
30
|
+
- _特性变更_
|
|
31
|
+
- 接口`ShowApplicationV3`响应参数`deploy_type`新增枚举值`none`
|
|
32
|
+
- 接口`ShowApplicationDependentResources`新增响应参数 `subscribe_guide`
|
|
33
|
+
- 接口`ListApplicationsV6`响应参数`deploy_type`新增枚举值`none`
|
|
34
|
+
- 接口`ShowApplicationReleaseRepositories`新增响应参数 `category_name`
|
|
35
|
+
- 接口`ShowTemplateV3`新增响应参数 `subscribe_guide`
|
|
36
|
+
- 接口`ListTemplatesV2`新增响应参数 `subscribe_guide`
|
|
37
|
+
- 接口`ListTemplates`新增响应参数 `subscribe_guide`
|
|
38
|
+
|
|
39
|
+
### HuaweiCloud SDK EIP
|
|
40
|
+
|
|
41
|
+
- _新增特性_
|
|
42
|
+
- 无
|
|
43
|
+
- _解决问题_
|
|
44
|
+
- 无
|
|
45
|
+
- _特性变更_
|
|
46
|
+
- 接口`CreatePublicip`新增请求参数 `port_id`
|
|
47
|
+
- 接口`CreatePrePaidPublicip`新增请求参数 `port_id`
|
|
48
|
+
|
|
49
|
+
### HuaweiCloud SDK IoTDA
|
|
50
|
+
|
|
51
|
+
- _新增特性_
|
|
52
|
+
- 无
|
|
53
|
+
- _解决问题_
|
|
54
|
+
- 无
|
|
55
|
+
- _特性变更_
|
|
56
|
+
- 接口`ListDeviceMessages`新增响应参数 `error_info`
|
|
57
|
+
- 接口`ShowDeviceMessage`新增响应参数 `error_info`
|
|
58
|
+
|
|
59
|
+
### HuaweiCloud SDK Moderation
|
|
60
|
+
|
|
61
|
+
- _新增特性_
|
|
62
|
+
- 支持接口`CheckImageModeration`
|
|
63
|
+
- _解决问题_
|
|
64
|
+
- 无
|
|
65
|
+
- _特性变更_
|
|
66
|
+
- 接口`RunCreateAudioModerationJob`请求参数`url`、`categories`改为必填
|
|
67
|
+
|
|
68
|
+
### HuaweiCloud SDK OCR
|
|
69
|
+
|
|
70
|
+
- _新增特性_
|
|
71
|
+
- 无
|
|
72
|
+
- _解决问题_
|
|
73
|
+
- 无
|
|
74
|
+
- _特性变更_
|
|
75
|
+
- 接口`RecognizeIdCard`:
|
|
76
|
+
- 新增请求参数 `detect_copy`
|
|
77
|
+
- 新增响应参数 `detect_copy_result`
|
|
78
|
+
|
|
79
|
+
### HuaweiCloud SDK SMS
|
|
80
|
+
|
|
81
|
+
- _新增特性_
|
|
82
|
+
- 无
|
|
83
|
+
- _解决问题_
|
|
84
|
+
- 无
|
|
85
|
+
- _特性变更_
|
|
86
|
+
- 接口`ListTemplates`移除响应参数 `disks`
|
|
87
|
+
- 接口`ShowTemplate`移除响应参数 `disks`
|
|
88
|
+
- 接口`UpdateMigproject`移除请求参数 `disks`
|
|
89
|
+
- 接口`ShowMigproject`移除响应参数 `disks`
|
|
90
|
+
|
|
91
|
+
### HuaweiCloud SDK VOD
|
|
92
|
+
|
|
93
|
+
- _新增特性_
|
|
94
|
+
- 无
|
|
95
|
+
- _解决问题_
|
|
96
|
+
- 无
|
|
97
|
+
- _特性变更_
|
|
98
|
+
- 接口`PublishAssets`新增响应参数 `pack_type`、`pack_type`
|
|
99
|
+
- 接口`UnpublishAssets`新增响应参数 `pack_type`、`pack_type`
|
|
100
|
+
- 接口`ShowAssetMeta`新增响应参数 `pack_type`、`pack_type`
|
|
101
|
+
- 接口`ShowAssetDetail`新增响应参数 `pack_type`、`pack_type`
|
|
102
|
+
- 接口`ShowTakeOverTaskDetails`新增响应参数 `pack_type`、`pack_type`
|
|
103
|
+
- 接口`ShowTakeOverAssetDetails`新增响应参数 `pack_type`、`pack_type`
|
|
104
|
+
|
|
1
105
|
# 3.1.2 2022-09-15
|
|
2
106
|
|
|
3
107
|
### HuaweiCloud SDK EVS
|
|
@@ -29,8 +29,20 @@ var ExceptionUtil = /** @class */ (function () {
|
|
|
29
29
|
}
|
|
30
30
|
ExceptionUtil.generalException = function (exception) {
|
|
31
31
|
var data = exception.data || {};
|
|
32
|
-
var
|
|
33
|
-
var
|
|
32
|
+
var errorMsg;
|
|
33
|
+
var errorCode;
|
|
34
|
+
if (data.error) {
|
|
35
|
+
errorCode = data.error.code;
|
|
36
|
+
errorMsg = data.error.message;
|
|
37
|
+
}
|
|
38
|
+
else if (data.error_code) {
|
|
39
|
+
errorCode = data.error_code;
|
|
40
|
+
errorMsg = data.error_msg;
|
|
41
|
+
}
|
|
42
|
+
else {
|
|
43
|
+
errorCode = exception.status;
|
|
44
|
+
errorMsg = exception.message;
|
|
45
|
+
}
|
|
34
46
|
var requestId = exception.requestId;
|
|
35
47
|
var httpStatusCode = exception.status;
|
|
36
48
|
if (httpStatusCode) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@huaweicloud/huaweicloud-sdk-core",
|
|
3
|
-
"version": "3.1.
|
|
3
|
+
"version": "3.1.4",
|
|
4
4
|
"description": "Core code for Huaweicloud SDK for Node.js",
|
|
5
5
|
"main": "huaweicloud-sdk-core.js",
|
|
6
6
|
"typings": "huaweicloud-sdk-core.d.ts",
|
|
@@ -28,6 +28,7 @@
|
|
|
28
28
|
"ramda": "^0.27.1"
|
|
29
29
|
},
|
|
30
30
|
"devDependencies": {
|
|
31
|
+
"@babel/parser": "^7.19.1",
|
|
31
32
|
"@types/chai": "^4.2.16",
|
|
32
33
|
"@types/chai-like": "^1.1.0",
|
|
33
34
|
"@types/chai-spies": "^1.0.3",
|