shcp-api-lib 1.0.7 → 1.0.9
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/dist/index.d.ts +13 -6
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/types/src/api/consumer-api.d.ts +2 -2
- package/dist/types/src/type/model/consumer-model.d.ts +7 -0
- package/dist/types/src/type/model/health-medication-model.d.ts +4 -4
- package/package.json +13 -15
@@ -1,5 +1,5 @@
|
|
1
1
|
import type { CommonRes, PagedList } from "../type/net-types";
|
2
|
-
import type { ConsumerCreateRequest, ConsumerDTO, ConsumerGroupDeleteRequest, ConsumerGroupDTO, ConsumerGroupMemberCreateRequest, ConsumerGroupMemberDTO, ConsumerGroupMemberQuery, ConsumerGroupMemberUpdateRequest, ConsumerGroupQuery, ConsumerGroupUpdateRequest, ConsumerQuery, ConsumerRightCreateRequest, ConsumerRightDeleteRequest, ConsumerRightDoctorDTO, ConsumerRightDoctorQuery, ConsumerRightDTO, ConsumerRightQuery, ConsumerUpdateRequest } from "../type/model/consumer-model";
|
2
|
+
import type { ConsumerCreateRequest, ConsumerCreateWithRightRequest, ConsumerDTO, ConsumerGroupDeleteRequest, ConsumerGroupDTO, ConsumerGroupMemberCreateRequest, ConsumerGroupMemberDTO, ConsumerGroupMemberQuery, ConsumerGroupMemberUpdateRequest, ConsumerGroupQuery, ConsumerGroupUpdateRequest, ConsumerQuery, ConsumerRightCreateRequest, ConsumerRightDeleteRequest, ConsumerRightDoctorDTO, ConsumerRightDoctorQuery, ConsumerRightDTO, ConsumerRightQuery, ConsumerUpdateRequest } from "../type/model/consumer-model";
|
3
3
|
export declare class ConsumerApi {
|
4
4
|
/**
|
5
5
|
* 获取医生列表
|
@@ -77,7 +77,7 @@ export declare class ConsumerApi {
|
|
77
77
|
* 创建消费者
|
78
78
|
* URL:`/api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/createWithRight`
|
79
79
|
*/
|
80
|
-
static createWithRight(data:
|
80
|
+
static createWithRight(data: ConsumerCreateWithRightRequest): Promise<CommonRes<ConsumerDTO>>;
|
81
81
|
/**
|
82
82
|
* 查询消费者列表
|
83
83
|
* URL: /api/shcp-consumer/${ShcpApiSdk.getApiSuffix()}/consumer/list
|
@@ -145,6 +145,13 @@ export interface ConsumerCreateRequest {
|
|
145
145
|
address?: string;
|
146
146
|
avatar?: string;
|
147
147
|
}
|
148
|
+
export interface ConsumerCreateWithRightRequest extends ConsumerCreateRequest {
|
149
|
+
rightId: number;
|
150
|
+
rightTenantId: string | number;
|
151
|
+
serviceUserId: number | string;
|
152
|
+
sourceUserId: number | string;
|
153
|
+
extra?: object;
|
154
|
+
}
|
148
155
|
export interface ConsumerQuery {
|
149
156
|
id?: number | string;
|
150
157
|
name?: string;
|
@@ -132,13 +132,13 @@ interface Log {
|
|
132
132
|
*/
|
133
133
|
export interface HealthMedicationConfigDTO {
|
134
134
|
/** 是否支持表单智能填充 */
|
135
|
-
|
135
|
+
smartFillEnabled: boolean;
|
136
136
|
/** OCR识别次数限制 */
|
137
|
-
|
137
|
+
smartFillLimit: number;
|
138
138
|
/** 上传图片数量限制 */
|
139
|
-
|
139
|
+
smartFillImageLimit: number;
|
140
140
|
/** 文件大小限制,默认10M,单位MB */
|
141
|
-
|
141
|
+
smartFillImageFileSizeLimit: number;
|
142
142
|
}
|
143
143
|
export interface AiMedicationRecordItem {
|
144
144
|
/** 药品名称 */
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "shcp-api-lib",
|
3
|
-
"version": "1.0.
|
3
|
+
"version": "1.0.9",
|
4
4
|
"description": "SHCP Model Library",
|
5
5
|
"main": "dist/index.js",
|
6
6
|
"module": "dist/index.esm.js",
|
@@ -9,18 +9,6 @@
|
|
9
9
|
"files": [
|
10
10
|
"dist"
|
11
11
|
],
|
12
|
-
"scripts": {
|
13
|
-
"build": "rollup -c",
|
14
|
-
"dev": "rollup -c -w",
|
15
|
-
"clean": "rimraf dist",
|
16
|
-
"prebuild": "pnpm run clean",
|
17
|
-
"test": "node --loader ts-node/esm tests/example.ts",
|
18
|
-
"test:all": "node --loader ts-node/esm -e \"import('./tests/example.js').then(m => m.runAllExamples())\"",
|
19
|
-
"test:single": "node --loader ts-node/esm -e \"import('./tests/example.js').then(m => m.example2_SingleModuleTest())\"",
|
20
|
-
"test:batch": "node --loader ts-node/esm -e \"import('./tests/example.js').then(m => m.example3_BatchTest())\"",
|
21
|
-
"prepublishOnly": "pnpm run build",
|
22
|
-
"publish:local": "pnpm run build && pnpm pack"
|
23
|
-
},
|
24
12
|
"keywords": [
|
25
13
|
"shcp",
|
26
14
|
"model",
|
@@ -45,5 +33,15 @@
|
|
45
33
|
"tslib": "^2.8.1",
|
46
34
|
"typescript": "^5.0.0"
|
47
35
|
},
|
48
|
-
"
|
49
|
-
|
36
|
+
"scripts": {
|
37
|
+
"build": "rollup -c",
|
38
|
+
"dev": "rollup -c -w",
|
39
|
+
"clean": "rimraf dist",
|
40
|
+
"prebuild": "pnpm run clean",
|
41
|
+
"test": "node --loader ts-node/esm tests/example.ts",
|
42
|
+
"test:all": "node --loader ts-node/esm -e \"import('./tests/example.js').then(m => m.runAllExamples())\"",
|
43
|
+
"test:single": "node --loader ts-node/esm -e \"import('./tests/example.js').then(m => m.example2_SingleModuleTest())\"",
|
44
|
+
"test:batch": "node --loader ts-node/esm -e \"import('./tests/example.js').then(m => m.example3_BatchTest())\"",
|
45
|
+
"publish:local": "pnpm run build && pnpm pack"
|
46
|
+
}
|
47
|
+
}
|