tencentcloud-sdk-nodejs-mrs 4.1.83 → 4.1.184
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
|
@@ -62,6 +62,8 @@ npm install tencentcloud-sdk-slim-nodejs --save
|
|
|
62
62
|
|
|
63
63
|
1. clone 代码到本地:
|
|
64
64
|
```
|
|
65
|
+
git clone https://cnb.cool/tencent/cloud/api/sdk/tencentcloud-sdk-nodejs
|
|
66
|
+
# 或者
|
|
65
67
|
git clone https://github.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
66
68
|
# 或者
|
|
67
69
|
git clone https://gitee.com/tencentcloud/tencentcloud-sdk-nodejs
|
|
@@ -135,7 +137,7 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
|
135
137
|
// ...
|
|
136
138
|
```
|
|
137
139
|
|
|
138
|
-
实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](
|
|
140
|
+
实例化 `Client` 的入参支持 `clientConfig`,数据结构和说明详见 [ClientConfig](src/common/interface.ts)。
|
|
139
141
|
|
|
140
142
|
## Common Client
|
|
141
143
|
|
|
@@ -143,17 +145,17 @@ const CvmClient = tencentcloud.cvm.v20170312.Client
|
|
|
143
145
|
|
|
144
146
|
**注意,您必须明确知道您调用的接口所需参数,否则可能会调用失败。**
|
|
145
147
|
|
|
146
|
-
详细使用请参阅示例:[使用 Common Client 进行调用](
|
|
148
|
+
详细使用请参阅示例:[使用 Common Client 进行调用](examples/common)
|
|
147
149
|
|
|
148
150
|
## 更多示例
|
|
149
151
|
|
|
150
|
-
请参考 [examples](
|
|
152
|
+
请参考 [examples](examples) 目录。
|
|
151
153
|
|
|
152
154
|
# 相关配置
|
|
153
155
|
|
|
154
156
|
## 代理
|
|
155
157
|
|
|
156
|
-
如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](
|
|
158
|
+
如果是有代理的环境下,需要配置代理,请在创建 Client 时传入 [profile.httpProfile.proxy](src/common/interface.ts#L78) 参数,或设置系统环境变量 `http_proxy` ,否则可能无法正常调用,抛出连接超时的异常。
|
|
157
159
|
|
|
158
160
|
# 凭证管理
|
|
159
161
|
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "tencentcloud-sdk-nodejs-mrs",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.184",
|
|
4
4
|
"description": "腾讯云 API NODEJS SDK",
|
|
5
5
|
"main": "./tencentcloud/index.js",
|
|
6
6
|
"module": "./es/index.js",
|
|
@@ -12,7 +12,8 @@
|
|
|
12
12
|
"build:es": "tsc -p tsconfig.es.json",
|
|
13
13
|
"build:slim": "node ./scripts/build_slim.js",
|
|
14
14
|
"prettier": "prettier --config prettier.config.js --write 'src/**/*.{tsx,ts,jsx,js,css,json,vue}'",
|
|
15
|
-
"clean": "rimraf tencentcloud es"
|
|
15
|
+
"clean": "rimraf tencentcloud es",
|
|
16
|
+
"test:common": "vitest run"
|
|
16
17
|
},
|
|
17
18
|
"engines": {
|
|
18
19
|
"node": ">=10"
|
|
@@ -44,9 +45,9 @@
|
|
|
44
45
|
"url": "https://github.com/tencentcloud/tencentcloud-sdk-nodejs"
|
|
45
46
|
},
|
|
46
47
|
"devDependencies": {
|
|
47
|
-
"@types/
|
|
48
|
+
"@types/ini": "^4.1.1",
|
|
48
49
|
"@types/json-bigint": "^1.0.1",
|
|
49
|
-
"@types/node": "^
|
|
50
|
+
"@types/node": "^18.0.0",
|
|
50
51
|
"@types/node-fetch": "^2.5.7",
|
|
51
52
|
"@types/uuid": "^9.0.8",
|
|
52
53
|
"@typescript-eslint/eslint-plugin": "^2.34.0",
|
|
@@ -61,6 +62,7 @@
|
|
|
61
62
|
"prettier": "^2.3.0",
|
|
62
63
|
"rimraf": "^5.0.10",
|
|
63
64
|
"ts-node": "^8.10.2",
|
|
64
|
-
"typescript": "^
|
|
65
|
+
"typescript": "^5.9.2",
|
|
66
|
+
"vitest": "2.1.9"
|
|
65
67
|
}
|
|
66
68
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as TencentCloudCommon from "tencentcloud-sdk-nodejs-common";
|
|
2
|
-
import { ImageMaskResponse, ImageToObjectRequest, ImageMaskAsyncGetResultResponse, ImageMaskAsyncRequest, TurnPDFToObjectAsyncRequest, TurnPDFToObjectAsyncResponse, TextToObjectResponse, TurnPDFToObjectResponse, TurnPDFToObjectAsyncGetResultResponse, TextToObjectRequest, ImageToClassResponse, DrugInstructionObjectResponse, TextToClassResponse, ImageMaskAsyncGetResultRequest, ImageMaskRequest, DrugInstructionObjectRequest,
|
|
2
|
+
import { ImageMaskResponse, ImageToObjectRequest, ImageMaskAsyncGetResultResponse, ImageMaskAsyncRequest, TurnPDFToObjectAsyncRequest, TurnPDFToObjectAsyncResponse, TextToObjectResponse, TurnPDFToObjectResponse, ImageToClassRequest, TurnPDFToObjectAsyncGetResultResponse, TextToObjectRequest, ImageToClassResponse, DrugInstructionObjectResponse, TextToClassResponse, ImageMaskAsyncGetResultRequest, ImageMaskRequest, DrugInstructionObjectRequest, TextToClassRequest, TurnPDFToObjectRequest, TurnPDFToObjectAsyncGetResultRequest, ImageMaskAsyncResponse, ImageToObjectResponse } from "./mrs_models";
|
|
3
3
|
/**
|
|
4
4
|
* mrs client
|
|
5
5
|
* @class
|
|
@@ -2036,113 +2036,25 @@ export interface InternalMedicineHeart {
|
|
|
2036
2036
|
HeartAuscultation?: KeyValueItem;
|
|
2037
2037
|
}
|
|
2038
2038
|
/**
|
|
2039
|
-
*
|
|
2039
|
+
* ImageToClass请求参数结构体
|
|
2040
2040
|
*/
|
|
2041
|
-
export interface
|
|
2042
|
-
/**
|
|
2043
|
-
* 医院名称
|
|
2044
|
-
*/
|
|
2045
|
-
Hospital?: string;
|
|
2046
|
-
/**
|
|
2047
|
-
* 科室名称
|
|
2048
|
-
*/
|
|
2049
|
-
DepartmentName?: string;
|
|
2050
|
-
/**
|
|
2051
|
-
* 申请时间
|
|
2052
|
-
*/
|
|
2053
|
-
BillingTime?: string;
|
|
2054
|
-
/**
|
|
2055
|
-
* 报告时间
|
|
2056
|
-
*/
|
|
2057
|
-
ReportTime?: string;
|
|
2058
|
-
/**
|
|
2059
|
-
* 检查时间
|
|
2060
|
-
*/
|
|
2061
|
-
InspectTime?: string;
|
|
2062
|
-
/**
|
|
2063
|
-
* 检查号
|
|
2064
|
-
*/
|
|
2065
|
-
CheckNum?: string;
|
|
2066
|
-
/**
|
|
2067
|
-
* 影像号
|
|
2068
|
-
*/
|
|
2069
|
-
ImageNum?: string;
|
|
2070
|
-
/**
|
|
2071
|
-
* 放射号
|
|
2072
|
-
*/
|
|
2073
|
-
RadiationNum?: string;
|
|
2074
|
-
/**
|
|
2075
|
-
* 检验号
|
|
2076
|
-
*/
|
|
2077
|
-
TestNum?: string;
|
|
2078
|
-
/**
|
|
2079
|
-
* 门诊号
|
|
2080
|
-
*/
|
|
2081
|
-
OutpatientNum?: string;
|
|
2082
|
-
/**
|
|
2083
|
-
* 病理号
|
|
2084
|
-
*/
|
|
2085
|
-
PathologyNum?: string;
|
|
2086
|
-
/**
|
|
2087
|
-
* 住院号
|
|
2088
|
-
*/
|
|
2089
|
-
InHospitalNum?: string;
|
|
2090
|
-
/**
|
|
2091
|
-
* 样本号
|
|
2092
|
-
*/
|
|
2093
|
-
SampleNum?: string;
|
|
2094
|
-
/**
|
|
2095
|
-
* 标本种类
|
|
2096
|
-
*/
|
|
2097
|
-
SampleType?: string;
|
|
2098
|
-
/**
|
|
2099
|
-
* 病历号
|
|
2100
|
-
*/
|
|
2101
|
-
MedicalRecordNum?: string;
|
|
2102
|
-
/**
|
|
2103
|
-
* 报告名称
|
|
2104
|
-
*/
|
|
2105
|
-
ReportName?: string;
|
|
2106
|
-
/**
|
|
2107
|
-
* 超声号
|
|
2108
|
-
*/
|
|
2109
|
-
UltraNum?: string;
|
|
2110
|
-
/**
|
|
2111
|
-
* 临床诊断
|
|
2112
|
-
*/
|
|
2113
|
-
Diagnose?: string;
|
|
2114
|
-
/**
|
|
2115
|
-
* 检查项目
|
|
2116
|
-
*/
|
|
2117
|
-
CheckItem?: string;
|
|
2118
|
-
/**
|
|
2119
|
-
* 检查方法
|
|
2120
|
-
*/
|
|
2121
|
-
CheckMethod?: string;
|
|
2122
|
-
/**
|
|
2123
|
-
* 诊断时间
|
|
2124
|
-
*/
|
|
2125
|
-
DiagnoseTime?: string;
|
|
2126
|
-
/**
|
|
2127
|
-
* 体检号
|
|
2128
|
-
*/
|
|
2129
|
-
HealthCheckupNum?: string;
|
|
2041
|
+
export interface ImageToClassRequest {
|
|
2130
2042
|
/**
|
|
2131
|
-
*
|
|
2043
|
+
* 图片列表,允许传入多张图片,支持传入图片的base64编码,暂不支持图片url
|
|
2132
2044
|
*/
|
|
2133
|
-
|
|
2045
|
+
ImageInfoList: Array<ImageInfo>;
|
|
2134
2046
|
/**
|
|
2135
|
-
*
|
|
2047
|
+
* 图片处理参数
|
|
2136
2048
|
*/
|
|
2137
|
-
|
|
2049
|
+
HandleParam: HandleParam;
|
|
2138
2050
|
/**
|
|
2139
|
-
*
|
|
2051
|
+
* 不填,默认为0
|
|
2140
2052
|
*/
|
|
2141
|
-
|
|
2053
|
+
Type: number;
|
|
2142
2054
|
/**
|
|
2143
|
-
*
|
|
2055
|
+
* 后付费的用户类型,新客户传1,老客户可不传或传 0。2022 年 12 月 15 新增了计费项,在此时间之前已经通过商务指定优惠价格的大客户,请不传这个字段或传 0,如果传 1 会导致以前获得的折扣价格失效。在 2022 年 12 月 15 日之后,通过商务指定优惠价格的大客户请传 1。
|
|
2144
2056
|
*/
|
|
2145
|
-
|
|
2057
|
+
UserType?: number;
|
|
2146
2058
|
}
|
|
2147
2059
|
/**
|
|
2148
2060
|
* 内窥镜报告
|
|
@@ -2489,17 +2401,25 @@ export interface NeonatalInfo {
|
|
|
2489
2401
|
*/
|
|
2490
2402
|
export interface EyeItem {
|
|
2491
2403
|
/**
|
|
2492
|
-
*
|
|
2404
|
+
* <p>左眼</p>
|
|
2493
2405
|
*/
|
|
2494
2406
|
Left?: EyeChildItem;
|
|
2495
2407
|
/**
|
|
2496
|
-
*
|
|
2408
|
+
* <p>右眼</p>
|
|
2497
2409
|
*/
|
|
2498
2410
|
Right?: EyeChildItem;
|
|
2499
2411
|
/**
|
|
2500
|
-
*
|
|
2412
|
+
* <p>瞳距</p>
|
|
2501
2413
|
*/
|
|
2502
2414
|
Pd?: BaseItem2;
|
|
2415
|
+
/**
|
|
2416
|
+
* <p>右眼平均后结果</p>
|
|
2417
|
+
*/
|
|
2418
|
+
RightFinal?: EyeFinalItem;
|
|
2419
|
+
/**
|
|
2420
|
+
* <p>左眼平均后结果</p>
|
|
2421
|
+
*/
|
|
2422
|
+
LeftFinal?: EyeFinalItem;
|
|
2503
2423
|
}
|
|
2504
2424
|
/**
|
|
2505
2425
|
* 家族疾病史
|
|
@@ -2666,6 +2586,115 @@ export interface DrugListBlock {
|
|
|
2666
2586
|
*/
|
|
2667
2587
|
Value?: string;
|
|
2668
2588
|
}
|
|
2589
|
+
/**
|
|
2590
|
+
* 报告基本信息
|
|
2591
|
+
*/
|
|
2592
|
+
export interface ReportInfo {
|
|
2593
|
+
/**
|
|
2594
|
+
* 医院名称
|
|
2595
|
+
*/
|
|
2596
|
+
Hospital?: string;
|
|
2597
|
+
/**
|
|
2598
|
+
* 科室名称
|
|
2599
|
+
*/
|
|
2600
|
+
DepartmentName?: string;
|
|
2601
|
+
/**
|
|
2602
|
+
* 申请时间
|
|
2603
|
+
*/
|
|
2604
|
+
BillingTime?: string;
|
|
2605
|
+
/**
|
|
2606
|
+
* 报告时间
|
|
2607
|
+
*/
|
|
2608
|
+
ReportTime?: string;
|
|
2609
|
+
/**
|
|
2610
|
+
* 检查时间
|
|
2611
|
+
*/
|
|
2612
|
+
InspectTime?: string;
|
|
2613
|
+
/**
|
|
2614
|
+
* 检查号
|
|
2615
|
+
*/
|
|
2616
|
+
CheckNum?: string;
|
|
2617
|
+
/**
|
|
2618
|
+
* 影像号
|
|
2619
|
+
*/
|
|
2620
|
+
ImageNum?: string;
|
|
2621
|
+
/**
|
|
2622
|
+
* 放射号
|
|
2623
|
+
*/
|
|
2624
|
+
RadiationNum?: string;
|
|
2625
|
+
/**
|
|
2626
|
+
* 检验号
|
|
2627
|
+
*/
|
|
2628
|
+
TestNum?: string;
|
|
2629
|
+
/**
|
|
2630
|
+
* 门诊号
|
|
2631
|
+
*/
|
|
2632
|
+
OutpatientNum?: string;
|
|
2633
|
+
/**
|
|
2634
|
+
* 病理号
|
|
2635
|
+
*/
|
|
2636
|
+
PathologyNum?: string;
|
|
2637
|
+
/**
|
|
2638
|
+
* 住院号
|
|
2639
|
+
*/
|
|
2640
|
+
InHospitalNum?: string;
|
|
2641
|
+
/**
|
|
2642
|
+
* 样本号
|
|
2643
|
+
*/
|
|
2644
|
+
SampleNum?: string;
|
|
2645
|
+
/**
|
|
2646
|
+
* 标本种类
|
|
2647
|
+
*/
|
|
2648
|
+
SampleType?: string;
|
|
2649
|
+
/**
|
|
2650
|
+
* 病历号
|
|
2651
|
+
*/
|
|
2652
|
+
MedicalRecordNum?: string;
|
|
2653
|
+
/**
|
|
2654
|
+
* 报告名称
|
|
2655
|
+
*/
|
|
2656
|
+
ReportName?: string;
|
|
2657
|
+
/**
|
|
2658
|
+
* 超声号
|
|
2659
|
+
*/
|
|
2660
|
+
UltraNum?: string;
|
|
2661
|
+
/**
|
|
2662
|
+
* 临床诊断
|
|
2663
|
+
*/
|
|
2664
|
+
Diagnose?: string;
|
|
2665
|
+
/**
|
|
2666
|
+
* 检查项目
|
|
2667
|
+
*/
|
|
2668
|
+
CheckItem?: string;
|
|
2669
|
+
/**
|
|
2670
|
+
* 检查方法
|
|
2671
|
+
*/
|
|
2672
|
+
CheckMethod?: string;
|
|
2673
|
+
/**
|
|
2674
|
+
* 诊断时间
|
|
2675
|
+
*/
|
|
2676
|
+
DiagnoseTime?: string;
|
|
2677
|
+
/**
|
|
2678
|
+
* 体检号
|
|
2679
|
+
*/
|
|
2680
|
+
HealthCheckupNum?: string;
|
|
2681
|
+
/**
|
|
2682
|
+
* 其它时间
|
|
2683
|
+
*/
|
|
2684
|
+
OtherTime?: string;
|
|
2685
|
+
/**
|
|
2686
|
+
* 打印时间
|
|
2687
|
+
*/
|
|
2688
|
+
PrintTime?: string;
|
|
2689
|
+
/**
|
|
2690
|
+
* 未归类时间
|
|
2691
|
+
*/
|
|
2692
|
+
Times?: Array<Time>;
|
|
2693
|
+
/**
|
|
2694
|
+
* 床号
|
|
2695
|
+
*/
|
|
2696
|
+
BedNo?: string;
|
|
2697
|
+
}
|
|
2669
2698
|
/**
|
|
2670
2699
|
* 报告模板
|
|
2671
2700
|
*/
|
|
@@ -5214,25 +5243,25 @@ export interface Invas {
|
|
|
5214
5243
|
Src?: string;
|
|
5215
5244
|
}
|
|
5216
5245
|
/**
|
|
5217
|
-
*
|
|
5246
|
+
* 眼科子结构 平均后结果
|
|
5218
5247
|
*/
|
|
5219
|
-
export interface
|
|
5248
|
+
export interface EyeFinalItem {
|
|
5220
5249
|
/**
|
|
5221
|
-
*
|
|
5250
|
+
* <p>球镜</p>
|
|
5222
5251
|
*/
|
|
5223
|
-
|
|
5252
|
+
Sph?: BaseItem3;
|
|
5224
5253
|
/**
|
|
5225
|
-
*
|
|
5254
|
+
* <p>柱镜</p>
|
|
5226
5255
|
*/
|
|
5227
|
-
|
|
5256
|
+
Cyl?: BaseItem3;
|
|
5228
5257
|
/**
|
|
5229
|
-
*
|
|
5258
|
+
* <p>轴位</p>
|
|
5230
5259
|
*/
|
|
5231
|
-
|
|
5260
|
+
Ax?: BaseItem3;
|
|
5232
5261
|
/**
|
|
5233
|
-
*
|
|
5262
|
+
* <p>等效球镜</p>
|
|
5234
5263
|
*/
|
|
5235
|
-
|
|
5264
|
+
Se?: BaseItem2;
|
|
5236
5265
|
}
|
|
5237
5266
|
/**
|
|
5238
5267
|
* 体检报告-内科-腹部-肝脏
|