@huaweicloud/huaweicloud-sdk-core 3.1.2 → 3.1.3

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 CHANGED
@@ -1,3 +1,86 @@
1
+ # 3.1.3 2022-09-22
2
+
3
+ ### HuaweiCloud SDK DevStar
4
+
5
+ - _Features_
6
+ - None
7
+ - _Bug Fix_
8
+ - None
9
+ - _Change_
10
+ - Add the enum values `none` to the response parameter `deploy_type` to the interface `ShowApplicationV3`
11
+ - Add the response parameter `subscribe_guide` to the interface `ShowApplicationDependentResources`
12
+ - Add the enum values `none` to the response parameter `deploy_type` to the interface `ListApplicationsV6`
13
+ - Add the response parameter `category_name` to the interface `ShowApplicationReleaseRepositories`
14
+ - Add the response parameter `subscribe_guide` to the interface `ShowTemplateV3`
15
+ - Add the response parameter `subscribe_guide` to the interface `ListTemplatesV2`
16
+ - Add the response parameter `subscribe_guide` to the interface `ListTemplates`
17
+
18
+ ### HuaweiCloud SDK EIP
19
+
20
+ - _Features_
21
+ - None
22
+ - _Bug Fix_
23
+ - None
24
+ - _Change_
25
+ - Add the request parameter `port_id` to the interface `CreatePublicip`
26
+ - Add the request parameter `port_id` to the interface `CreatePrePaidPublicip`
27
+
28
+ ### HuaweiCloud SDK IoTDA
29
+
30
+ - _Features_
31
+ - None
32
+ - _Bug Fix_
33
+ - None
34
+ - _Change_
35
+ - Add the response parameter `error_info` to the interface `ListDeviceMessages`
36
+ - Add the response parameter `error_info` to the interface `ShowDeviceMessage`
37
+
38
+ ### HuaweiCloud SDK Moderation
39
+
40
+ - _Features_
41
+ - Support the interface `CheckImageModeration`
42
+ - _Bug Fix_
43
+ - None
44
+ - _Change_
45
+ - The request parameter `url`, `categories` changed to required of the interface `RunCreateAudioModerationJob`
46
+
47
+ ### HuaweiCloud SDK OCR
48
+
49
+ - _Features_
50
+ - None
51
+ - _Bug Fix_
52
+ - None
53
+ - _Change_
54
+ - Changes of the interface `RecognizeIdCard`:
55
+ - Add the request parameter `detect_copy`
56
+ - Add the response parameter `detect_copy_result`
57
+
58
+ ### HuaweiCloud SDK SMS
59
+
60
+ - _Features_
61
+ - None
62
+ - _Bug Fix_
63
+ - None
64
+ - _Change_
65
+ - Remove the response parameter `disks` from the interface `ListTemplates`
66
+ - Remove the response parameter `disks` from the interface `ShowTemplate`
67
+ - Remove the request parameter `disks` from the interface `UpdateMigproject`
68
+ - Remove the response parameter `disks` from the interface `ShowMigproject`
69
+
70
+ ### HuaweiCloud SDK VOD
71
+
72
+ - _Features_
73
+ - None
74
+ - _Bug Fix_
75
+ - None
76
+ - _Change_
77
+ - Add the response parameters `pack_type`, `pack_type` to the interface `PublishAssets`
78
+ - Add the response parameters `pack_type`, `pack_type` to the interface `UnpublishAssets`
79
+ - Add the response parameters `pack_type`, `pack_type` to the interface `ShowAssetMeta`
80
+ - Add the response parameters `pack_type`, `pack_type` to the interface `ShowAssetDetail`
81
+ - Add the response parameters `pack_type`, `pack_type` to the interface `ShowTakeOverTaskDetails`
82
+ - Add the response parameters `pack_type`, `pack_type` to the interface `ShowTakeOverAssetDetails`
83
+
1
84
  # 3.1.2 2022-09-15
2
85
 
3
86
  ### HuaweiCloud SDK EVS
package/CHANGELOG_CN.md CHANGED
@@ -1,3 +1,86 @@
1
+ # 3.1.3 2022-09-22
2
+
3
+ ### HuaweiCloud SDK DevStar
4
+
5
+ - _新增特性_
6
+ - 无
7
+ - _解决问题_
8
+ - 无
9
+ - _特性变更_
10
+ - 接口`ShowApplicationV3`响应参数`deploy_type`新增枚举值`none`
11
+ - 接口`ShowApplicationDependentResources`新增响应参数 `subscribe_guide`
12
+ - 接口`ListApplicationsV6`响应参数`deploy_type`新增枚举值`none`
13
+ - 接口`ShowApplicationReleaseRepositories`新增响应参数 `category_name`
14
+ - 接口`ShowTemplateV3`新增响应参数 `subscribe_guide`
15
+ - 接口`ListTemplatesV2`新增响应参数 `subscribe_guide`
16
+ - 接口`ListTemplates`新增响应参数 `subscribe_guide`
17
+
18
+ ### HuaweiCloud SDK EIP
19
+
20
+ - _新增特性_
21
+ - 无
22
+ - _解决问题_
23
+ - 无
24
+ - _特性变更_
25
+ - 接口`CreatePublicip`新增请求参数 `port_id`
26
+ - 接口`CreatePrePaidPublicip`新增请求参数 `port_id`
27
+
28
+ ### HuaweiCloud SDK IoTDA
29
+
30
+ - _新增特性_
31
+ - 无
32
+ - _解决问题_
33
+ - 无
34
+ - _特性变更_
35
+ - 接口`ListDeviceMessages`新增响应参数 `error_info`
36
+ - 接口`ShowDeviceMessage`新增响应参数 `error_info`
37
+
38
+ ### HuaweiCloud SDK Moderation
39
+
40
+ - _新增特性_
41
+ - 支持接口`CheckImageModeration`
42
+ - _解决问题_
43
+ - 无
44
+ - _特性变更_
45
+ - 接口`RunCreateAudioModerationJob`请求参数`url`、`categories`改为必填
46
+
47
+ ### HuaweiCloud SDK OCR
48
+
49
+ - _新增特性_
50
+ - 无
51
+ - _解决问题_
52
+ - 无
53
+ - _特性变更_
54
+ - 接口`RecognizeIdCard`:
55
+ - 新增请求参数 `detect_copy`
56
+ - 新增响应参数 `detect_copy_result`
57
+
58
+ ### HuaweiCloud SDK SMS
59
+
60
+ - _新增特性_
61
+ - 无
62
+ - _解决问题_
63
+ - 无
64
+ - _特性变更_
65
+ - 接口`ListTemplates`移除响应参数 `disks`
66
+ - 接口`ShowTemplate`移除响应参数 `disks`
67
+ - 接口`UpdateMigproject`移除请求参数 `disks`
68
+ - 接口`ShowMigproject`移除响应参数 `disks`
69
+
70
+ ### HuaweiCloud SDK VOD
71
+
72
+ - _新增特性_
73
+ - 无
74
+ - _解决问题_
75
+ - 无
76
+ - _特性变更_
77
+ - 接口`PublishAssets`新增响应参数 `pack_type`、`pack_type`
78
+ - 接口`UnpublishAssets`新增响应参数 `pack_type`、`pack_type`
79
+ - 接口`ShowAssetMeta`新增响应参数 `pack_type`、`pack_type`
80
+ - 接口`ShowAssetDetail`新增响应参数 `pack_type`、`pack_type`
81
+ - 接口`ShowTakeOverTaskDetails`新增响应参数 `pack_type`、`pack_type`
82
+ - 接口`ShowTakeOverAssetDetails`新增响应参数 `pack_type`、`pack_type`
83
+
1
84
  # 3.1.2 2022-09-15
2
85
 
3
86
  ### 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 errorCode = data.error ? data.error.code : exception.status;
33
- var errorMsg = data.error ? data.error.message : exception.message;
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.2",
3
+ "version": "3.1.3",
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",