shcp-api-lib 1.0.3 → 1.0.6
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 +8780 -3031
- package/dist/index.esm.js +4900 -942
- package/dist/index.esm.js.map +1 -1
- package/dist/index.js +4960 -959
- package/dist/index.js.map +1 -1
- package/dist/types/src/api/ai-api.d.ts +17 -0
- package/dist/types/src/api/ai-application-api.d.ts +17 -0
- package/dist/types/src/api/app-client-api.d.ts +2 -2
- package/dist/types/src/api/app-client-page-config-api.d.ts +19 -3
- package/dist/types/src/api/app-client-setting-api.d.ts +32 -2
- package/dist/types/src/api/common-file-api.d.ts +1 -0
- package/dist/types/src/api/common-right-api.d.ts +6 -1
- package/dist/types/src/api/consumer-api.d.ts +7 -2
- package/dist/types/src/api/disease-care-api.d.ts +91 -0
- package/dist/types/src/api/flow-follow-api.d.ts +22 -0
- package/dist/types/src/api/flow-manager-api.d.ts +40 -0
- package/dist/types/src/api/flow-model-api.d.ts +35 -0
- package/dist/types/src/api/flow-process-api.d.ts +27 -0
- package/dist/types/src/api/health-medication-api.d.ts +25 -0
- package/dist/types/src/api/health-metric-api.d.ts +10 -10
- package/dist/types/src/api/health-profile-api.d.ts +13 -2
- package/dist/types/src/api/health-study-api.d.ts +61 -0
- package/dist/types/src/api/index.d.ts +43 -2
- package/dist/types/src/api/job-info-api.d.ts +63 -0
- package/dist/types/src/api/job-server-api.d.ts +58 -0
- package/dist/types/src/api/km-article-api.d.ts +34 -11
- package/dist/types/src/api/km-article-apply-api.d.ts +9 -0
- package/dist/types/src/api/km-article-category-api.d.ts +39 -0
- package/dist/types/src/api/km-article-draft-api.d.ts +29 -0
- package/dist/types/src/api/km-article-tag-api.d.ts +29 -0
- package/dist/types/src/api/km-article-tag-category-api.d.ts +34 -0
- package/dist/types/src/api/km-form-api.d.ts +37 -7
- package/dist/types/src/api/km-form-category-api.d.ts +39 -0
- package/dist/types/src/api/km-form-content-draft-api.d.ts +14 -0
- package/dist/types/src/api/km-form-draft-api.d.ts +14 -0
- package/dist/types/src/api/km-form-item-api.d.ts +9 -0
- package/dist/types/src/api/km-form-tree-node-api.d.ts +29 -0
- package/dist/types/src/api/km-tag-api.d.ts +42 -0
- package/dist/types/src/api/km-tag-category-api.d.ts +47 -0
- package/dist/types/src/api/km-tag-value-dict-api.d.ts +32 -0
- package/dist/types/src/api/license-api.d.ts +50 -0
- package/dist/types/src/api/login-api.d.ts +6 -1
- package/dist/types/src/api/potential-customer-api.d.ts +14 -0
- package/dist/types/src/api/region-api.d.ts +70 -0
- package/dist/types/src/api/report-api.d.ts +9 -0
- package/dist/types/src/api/right-api.d.ts +39 -0
- package/dist/types/src/api/right-draft-api.d.ts +59 -0
- package/dist/types/src/api/right-draft-service-config-api.d.ts +28 -0
- package/dist/types/src/api/right-service-config-api.d.ts +27 -7
- package/dist/types/src/api/rule-api.d.ts +39 -0
- package/dist/types/src/api/system-ApiScopeController-api.d.ts +39 -0
- package/dist/types/src/api/system-DeptController-api.d.ts +27 -0
- package/dist/types/src/api/system-DictBizController-api.d.ts +33 -0
- package/dist/types/src/api/system-DictController-api.d.ts +33 -0
- package/dist/types/src/api/system-MenuController-api.d.ts +42 -0
- package/dist/types/src/api/system-PostController-api.d.ts +49 -0
- package/dist/types/src/api/system-RoleController-api.d.ts +48 -0
- package/dist/types/src/api/system-TenantController-api.d.ts +118 -0
- package/dist/types/src/api/system-TenantPackageController-api.d.ts +44 -0
- package/dist/types/src/api/system-TopMenuController-api.d.ts +44 -0
- package/dist/types/src/api/system-UserController-api.d.ts +116 -0
- package/dist/types/src/api/system-right-api.d.ts +3 -3
- package/dist/types/src/api/user-group-api.d.ts +13 -1
- package/dist/types/src/constants/qiniuUploader.d.ts +2 -14
- package/dist/types/src/constants/shcp-common.d.ts +114 -0
- package/dist/types/src/index.d.ts +3 -0
- package/dist/types/src/shcp-api-sdk.d.ts +17 -4
- package/dist/types/src/type/model/ai-model.d.ts +69 -0
- package/dist/types/src/type/model/app-client-page-config-model.d.ts +148 -0
- package/dist/types/src/type/model/app-client-setting-model.d.ts +55 -0
- package/dist/types/src/type/model/common-right-model.d.ts +129 -7
- package/dist/types/src/type/model/consumer-model.d.ts +34 -38
- package/dist/types/src/type/model/flow-follow-model.d.ts +14 -0
- package/dist/types/src/type/model/flow-manager-model.d.ts +16 -0
- package/dist/types/src/type/model/flow-model-model.d.ts +14 -0
- package/dist/types/src/type/model/flow-process-model.d.ts +13 -0
- package/dist/types/src/type/model/health-medication-model.d.ts +177 -0
- package/dist/types/src/type/model/health-metric-model.d.ts +8 -8
- package/dist/types/src/type/model/index.d.ts +28 -0
- package/dist/types/src/type/model/job-info-model.d.ts +24 -0
- package/dist/types/src/type/model/job-server-model.d.ts +20 -0
- package/dist/types/src/type/model/km-article-model.d.ts +579 -5
- package/dist/types/src/type/model/km-form-model.d.ts +739 -2
- package/dist/types/src/type/model/km-tag-model.d.ts +623 -0
- package/dist/types/src/type/model/license-model.d.ts +84 -0
- package/dist/types/src/type/model/login-model.d.ts +6 -0
- package/dist/types/src/type/model/potential-customer-model.d.ts +136 -0
- package/dist/types/src/type/model/region-model.d.ts +36 -0
- package/dist/types/src/type/model/report-model.d.ts +75 -0
- package/dist/types/src/type/model/right-draft-model.d.ts +243 -0
- package/dist/types/src/type/model/right-model.d.ts +88 -0
- package/dist/types/src/type/model/rule-model.d.ts +140 -0
- package/dist/types/src/type/model/system-ApiScopeController-model.d.ts +36 -0
- package/dist/types/src/type/model/system-DeptController-model.d.ts +26 -0
- package/dist/types/src/type/model/system-DictBizController-model.d.ts +25 -0
- package/dist/types/src/type/model/system-DictController-model.d.ts +25 -0
- package/dist/types/src/type/model/system-MenuController-model.d.ts +56 -0
- package/dist/types/src/type/model/system-PostController-model.d.ts +22 -0
- package/dist/types/src/type/model/system-RoleController-model.d.ts +35 -0
- package/dist/types/src/type/model/system-TenantController-model.d.ts +61 -0
- package/dist/types/src/type/model/system-TenantPackageController-model.d.ts +14 -0
- package/dist/types/src/type/model/system-TopMenuController-model.d.ts +27 -0
- package/dist/types/src/type/model/system-UserController-model.d.ts +51 -0
- package/package.json +6 -4
- package/dist/types/src/api/disease-care-right-api.d.ts +0 -22
- package/dist/types/src/api/health-study-right-api.d.ts +0 -23
@@ -0,0 +1,48 @@
|
|
1
|
+
import type { CommonRes } from "../type/net-types";
|
2
|
+
import type { Role, RoleVO, RoleGrantVO } from "../type/model/system-RoleController-model";
|
3
|
+
import type { PageRequest } from '../type/model/common-model';
|
4
|
+
/**
|
5
|
+
* 角色 API
|
6
|
+
*/
|
7
|
+
export declare class RoleControllerApi {
|
8
|
+
/**
|
9
|
+
* 查看角色详情
|
10
|
+
* URL: /api/blade-system/role/detail
|
11
|
+
*/
|
12
|
+
static detail(role: Partial<Role>): Promise<CommonRes<RoleVO>>;
|
13
|
+
/**
|
14
|
+
* 获取角色列表
|
15
|
+
* URL: /api/blade-system/role/list
|
16
|
+
*/
|
17
|
+
static list(role: Record<string, any>, query: PageRequest): Promise<CommonRes<RoleVO[]>>;
|
18
|
+
/**
|
19
|
+
* 获取角色树形结构
|
20
|
+
* URL: /api/blade-system/role/tree
|
21
|
+
*/
|
22
|
+
static tree(tenantId?: string): Promise<CommonRes<RoleVO[]>>;
|
23
|
+
/**
|
24
|
+
* 获取指定角色树形结构
|
25
|
+
* URL: /api/blade-system/role/tree-by-id
|
26
|
+
*/
|
27
|
+
static treeById(roleId: number | string): Promise<CommonRes<RoleVO[]>>;
|
28
|
+
/**
|
29
|
+
* 新增或修改角色
|
30
|
+
* URL: /api/blade-system/role/submit
|
31
|
+
*/
|
32
|
+
static submit(role: Role): Promise<CommonRes<boolean>>;
|
33
|
+
/**
|
34
|
+
* 删除角色
|
35
|
+
* URL: /api/blade-system/role/remove
|
36
|
+
*/
|
37
|
+
static remove(ids: string): Promise<CommonRes<boolean>>;
|
38
|
+
/**
|
39
|
+
* 设置角色权限
|
40
|
+
* URL: /api/blade-system/role/grant
|
41
|
+
*/
|
42
|
+
static grant(grantVO: RoleGrantVO): Promise<CommonRes<boolean>>;
|
43
|
+
/**
|
44
|
+
* 获取角色下拉数据源
|
45
|
+
* URL: /api/blade-system/role/select
|
46
|
+
*/
|
47
|
+
static select(userId?: number | string, roleId?: string): Promise<CommonRes<Role[]>>;
|
48
|
+
}
|
@@ -0,0 +1,118 @@
|
|
1
|
+
import type { CommonRes } from "../type/net-types";
|
2
|
+
import type { PageRequest } from '../type/model/common-model';
|
3
|
+
import type { PagedList } from '../type/net-types';
|
4
|
+
import { SystemTenant, TenantDTO, TenantUpdateRequest, TenantCopyRequest, TenantCopyRetryRequest } from '../type/model/system-TenantController-model';
|
5
|
+
/**
|
6
|
+
* 租户 API
|
7
|
+
*/
|
8
|
+
export declare class TenantControllerApi {
|
9
|
+
/**
|
10
|
+
* 详情
|
11
|
+
* URL: /api/blade-system/tenant/detail
|
12
|
+
*/
|
13
|
+
static detail(tenant: Partial<SystemTenant>): Promise<CommonRes<SystemTenant>>;
|
14
|
+
/**
|
15
|
+
* 分页
|
16
|
+
* URL: /api/blade-system/tenant/list
|
17
|
+
*/
|
18
|
+
static list(tenant: Record<string, any>, query: PageRequest): Promise<CommonRes<PagedList<SystemTenant[]>>>;
|
19
|
+
/**
|
20
|
+
* 下拉数据源
|
21
|
+
* URL: /api/blade-system/tenant/select
|
22
|
+
*/
|
23
|
+
static select(tenant: Partial<SystemTenant>): Promise<CommonRes<SystemTenant[]>>;
|
24
|
+
/**
|
25
|
+
* 自定义分页
|
26
|
+
* URL: /api/blade-system/tenant/page
|
27
|
+
*/
|
28
|
+
static page(tenant: Partial<SystemTenant>, query: PageRequest): Promise<CommonRes<PagedList<SystemTenant[]>>>;
|
29
|
+
/**
|
30
|
+
* 新增或修改
|
31
|
+
* URL: /api/blade-system/tenant/submit
|
32
|
+
*/
|
33
|
+
static submit(tenant: SystemTenant): Promise<CommonRes<boolean>>;
|
34
|
+
/**
|
35
|
+
* 删除至回收站
|
36
|
+
* URL: /api/blade-system/tenant/recycle
|
37
|
+
*/
|
38
|
+
static recycle(ids: string): Promise<CommonRes<boolean>>;
|
39
|
+
/**
|
40
|
+
* 从回收站恢复
|
41
|
+
* URL: /api/blade-system/tenant/pass
|
42
|
+
*/
|
43
|
+
static pass(ids: string): Promise<CommonRes<boolean>>;
|
44
|
+
/**
|
45
|
+
* 从回收站删除
|
46
|
+
* URL: /api/blade-system/tenant/remove
|
47
|
+
*/
|
48
|
+
static remove(ids: string): Promise<CommonRes<boolean>>;
|
49
|
+
/**
|
50
|
+
* 授权配置
|
51
|
+
* URL: /api/blade-system/tenant/setting
|
52
|
+
*/
|
53
|
+
static setting(ids: string, accountNumber: number, expireTime: string): Promise<CommonRes<boolean>>;
|
54
|
+
/**
|
55
|
+
* 数据源配置
|
56
|
+
* URL: /api/blade-system/tenant/datasource
|
57
|
+
*/
|
58
|
+
static datasource(tenantId: string, datasourceId: number): Promise<CommonRes<boolean>>;
|
59
|
+
/**
|
60
|
+
* 根据名称查询列表
|
61
|
+
* URL: /api/blade-system/tenant/find-by-name
|
62
|
+
*/
|
63
|
+
static findByName(name: string): Promise<CommonRes<SystemTenant[]>>;
|
64
|
+
/**
|
65
|
+
* 根据域名查询信息
|
66
|
+
* URL: /api/blade-system/tenant/info
|
67
|
+
*/
|
68
|
+
static info(domain: string): Promise<CommonRes<{
|
69
|
+
tenantId: string;
|
70
|
+
domain: string;
|
71
|
+
backgroundUrl: string;
|
72
|
+
}>>;
|
73
|
+
/**
|
74
|
+
* 根据租户ID查询产品包详情
|
75
|
+
* URL: /api/blade-system/tenant/package-detail
|
76
|
+
*/
|
77
|
+
static packageDetail(tenantId: number | string): Promise<CommonRes<any>>;
|
78
|
+
/**
|
79
|
+
* 产品包配置
|
80
|
+
* URL: /api/blade-system/tenant/package-setting
|
81
|
+
*/
|
82
|
+
static packageSetting(tenantId: number | string, packageId: number | string): Promise<CommonRes<boolean>>;
|
83
|
+
/**
|
84
|
+
* 首页租户下拉列表
|
85
|
+
* URL: /api/blade-system/tenant/selectTenant
|
86
|
+
*/
|
87
|
+
static selectTenant(domainUrl: string): Promise<CommonRes<SystemTenant[]>>;
|
88
|
+
/**
|
89
|
+
* 修改租户域名信息
|
90
|
+
* URL: /api/blade-system/tenant/update
|
91
|
+
*/
|
92
|
+
static updateDomain(request: TenantUpdateRequest): Promise<CommonRes<TenantDTO>>;
|
93
|
+
/**
|
94
|
+
* 生成租户域名后缀
|
95
|
+
* URL: /api/blade-system/tenant/generateAddress
|
96
|
+
*/
|
97
|
+
static generateDomainSuffix(tenant: Partial<SystemTenant>): Promise<CommonRes<string>>;
|
98
|
+
/**
|
99
|
+
* 配置租户背景信息
|
100
|
+
* URL: /api/blade-system/tenant/backgroundConfig
|
101
|
+
*/
|
102
|
+
static backgroundConfig(request: TenantUpdateRequest): Promise<CommonRes<TenantDTO>>;
|
103
|
+
/**
|
104
|
+
* 查询租户背景信息
|
105
|
+
* URL: /api/blade-system/tenant/getBackgroundConfig
|
106
|
+
*/
|
107
|
+
static getBackgroundConfig(): Promise<CommonRes<TenantDTO>>;
|
108
|
+
/**
|
109
|
+
* 复制租户
|
110
|
+
* URL: /api/blade-system/tenant/copyTenant
|
111
|
+
*/
|
112
|
+
static copyTenant(request: TenantCopyRequest): Promise<CommonRes<string>>;
|
113
|
+
/**
|
114
|
+
* 复制租户重试
|
115
|
+
* URL: /api/blade-system/tenant/copyRetryTenant
|
116
|
+
*/
|
117
|
+
static copyRetryTenant(request: TenantCopyRetryRequest): Promise<CommonRes<string>>;
|
118
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import type { CommonRes } from "../type/net-types";
|
2
|
+
import { TenantPackage } from '../type/model/system-TenantPackageController-model';
|
3
|
+
import type { PageRequest } from '../type/model/common-model';
|
4
|
+
import type { PagedList } from '../type/net-types';
|
5
|
+
/**
|
6
|
+
* 租户产品包 API
|
7
|
+
*/
|
8
|
+
export declare class TenantPackageApi {
|
9
|
+
/**
|
10
|
+
* 详情
|
11
|
+
* URL: /api/blade-system/tenant-package/detail
|
12
|
+
*/
|
13
|
+
static detail(tenantPackage: Partial<TenantPackage>): Promise<CommonRes<TenantPackage>>;
|
14
|
+
/**
|
15
|
+
* 分页
|
16
|
+
* URL: /api/blade-system/tenant-package/list
|
17
|
+
*/
|
18
|
+
static list(tenantPackage: Record<string, any>, query: PageRequest): Promise<CommonRes<PagedList<TenantPackage>>>;
|
19
|
+
/**
|
20
|
+
* 新增
|
21
|
+
* URL: /api/blade-system/tenant-package/save
|
22
|
+
*/
|
23
|
+
static save(tenantPackage: TenantPackage): Promise<CommonRes<boolean>>;
|
24
|
+
/**
|
25
|
+
* 修改
|
26
|
+
* URL: /api/blade-system/tenant-package/update
|
27
|
+
*/
|
28
|
+
static update(tenantPackage: TenantPackage): Promise<CommonRes<boolean>>;
|
29
|
+
/**
|
30
|
+
* 新增或修改
|
31
|
+
* URL: /api/blade-system/tenant-package/submit
|
32
|
+
*/
|
33
|
+
static submit(tenantPackage: TenantPackage): Promise<CommonRes<boolean>>;
|
34
|
+
/**
|
35
|
+
* 逻辑删除
|
36
|
+
* URL: /api/blade-system/tenant-package/remove
|
37
|
+
*/
|
38
|
+
static remove(ids: string): Promise<CommonRes<boolean>>;
|
39
|
+
/**
|
40
|
+
* 下拉数据源
|
41
|
+
* URL: /api/blade-system/tenant-package/select
|
42
|
+
*/
|
43
|
+
static select(tenantPackage: Partial<TenantPackage>): Promise<CommonRes<TenantPackage[]>>;
|
44
|
+
}
|
@@ -0,0 +1,44 @@
|
|
1
|
+
import type { CommonRes } from "../type/net-types";
|
2
|
+
import { TopMenu, GrantVO } from '../type/model/system-TopMenuController-model';
|
3
|
+
import type { PageRequest } from '../type/model/common-model';
|
4
|
+
import type { PagedList } from '../type/net-types';
|
5
|
+
/**
|
6
|
+
* 顶部菜单 API
|
7
|
+
*/
|
8
|
+
export declare class TopMenuControllerApi {
|
9
|
+
/**
|
10
|
+
* 详情
|
11
|
+
* URL: /api/blade-system/topmenu/detail
|
12
|
+
*/
|
13
|
+
static detail(topMenu: Partial<TopMenu>): Promise<CommonRes<TopMenu>>;
|
14
|
+
/**
|
15
|
+
* 分页
|
16
|
+
* URL: /api/blade-system/topmenu/list
|
17
|
+
*/
|
18
|
+
static list(topMenu: Partial<TopMenu>, query: PageRequest): Promise<CommonRes<PagedList<TopMenu>>>;
|
19
|
+
/**
|
20
|
+
* 新增
|
21
|
+
* URL: /api/blade-system/topmenu/save
|
22
|
+
*/
|
23
|
+
static save(topMenu: TopMenu): Promise<CommonRes<boolean>>;
|
24
|
+
/**
|
25
|
+
* 修改
|
26
|
+
* URL: /api/blade-system/topmenu/update
|
27
|
+
*/
|
28
|
+
static update(topMenu: TopMenu): Promise<CommonRes<boolean>>;
|
29
|
+
/**
|
30
|
+
* 新增或修改
|
31
|
+
* URL: /api/blade-system/topmenu/submit
|
32
|
+
*/
|
33
|
+
static submit(topMenu: TopMenu): Promise<CommonRes<boolean>>;
|
34
|
+
/**
|
35
|
+
* 逻辑删除
|
36
|
+
* URL: /api/blade-system/topmenu/remove
|
37
|
+
*/
|
38
|
+
static remove(ids: string): Promise<CommonRes<boolean>>;
|
39
|
+
/**
|
40
|
+
* 顶部菜单配置
|
41
|
+
* URL: /api/blade-system/topmenu/grant
|
42
|
+
*/
|
43
|
+
static grant(grantVO: GrantVO): Promise<CommonRes<boolean>>;
|
44
|
+
}
|
@@ -0,0 +1,116 @@
|
|
1
|
+
import type { CommonRes } from "../type/net-types";
|
2
|
+
import type { User, UserVO } from "../type/model/system-UserController-model";
|
3
|
+
import type { PageRequest } from '../type/model/common-model';
|
4
|
+
import type { PagedList } from '../type/net-types';
|
5
|
+
/**
|
6
|
+
* 用户 API
|
7
|
+
*/
|
8
|
+
export declare class UserControllerApi {
|
9
|
+
/**
|
10
|
+
* 查看详情
|
11
|
+
* URL: /api/blade-system/user/detail
|
12
|
+
*/
|
13
|
+
static detail(user: Partial<User>): Promise<CommonRes<UserVO>>;
|
14
|
+
/**
|
15
|
+
* 查看详情
|
16
|
+
* URL: /api/blade-system/user/info
|
17
|
+
*/
|
18
|
+
static info(user: {
|
19
|
+
userId: number | string;
|
20
|
+
}): Promise<CommonRes<UserVO>>;
|
21
|
+
/**
|
22
|
+
* 用户列表
|
23
|
+
* URL: /api/blade-system/user/list
|
24
|
+
*/
|
25
|
+
static list(user: Record<string, any>, query: PageRequest): Promise<CommonRes<PagedList<UserVO>>>;
|
26
|
+
/**
|
27
|
+
* 自定义用户列表
|
28
|
+
* URL: /api/blade-system/user/page
|
29
|
+
*/
|
30
|
+
static page(user: Partial<User>, query: PageRequest, deptId?: number | string): Promise<CommonRes<PagedList<UserVO>>>;
|
31
|
+
/**
|
32
|
+
* 新增或修改
|
33
|
+
* URL: /api/blade-system/user/submit
|
34
|
+
*/
|
35
|
+
static submit(user: User): Promise<CommonRes<boolean>>;
|
36
|
+
/**
|
37
|
+
* 修改
|
38
|
+
* URL: /api/blade-system/user/update
|
39
|
+
*/
|
40
|
+
static update(user: User): Promise<CommonRes<boolean>>;
|
41
|
+
/**
|
42
|
+
* 删除
|
43
|
+
* URL: /api/blade-system/user/remove
|
44
|
+
*/
|
45
|
+
static remove(ids: string): Promise<CommonRes<boolean>>;
|
46
|
+
/**
|
47
|
+
* 权限设置
|
48
|
+
* URL: /api/blade-system/user/grant
|
49
|
+
*/
|
50
|
+
static grant(userIds: string, roleIds: string): Promise<CommonRes<boolean>>;
|
51
|
+
/**
|
52
|
+
* 初始化密码
|
53
|
+
* URL: /api/blade-system/user/reset-password
|
54
|
+
*/
|
55
|
+
static resetPassword(userIds: string): Promise<CommonRes<boolean>>;
|
56
|
+
/**
|
57
|
+
* 修改密码
|
58
|
+
* URL: /api/blade-system/user/update-password
|
59
|
+
*/
|
60
|
+
static updatePassword(oldPassword: string, newPassword: string, newPassword1: string): Promise<CommonRes<boolean>>;
|
61
|
+
/**
|
62
|
+
* 修改基本信息
|
63
|
+
* URL: /api/blade-system/user/update-info
|
64
|
+
*/
|
65
|
+
static updateInfo(user: User): Promise<CommonRes<boolean>>;
|
66
|
+
/**
|
67
|
+
* 用户列表
|
68
|
+
* URL: /api/blade-system/user/user-list
|
69
|
+
*/
|
70
|
+
static userList(): Promise<CommonRes<User[]>>;
|
71
|
+
/**
|
72
|
+
* 导入用户
|
73
|
+
* URL: /api/blade-system/user/import-user
|
74
|
+
*/
|
75
|
+
static importUser(file: File, isCovered: number): Promise<CommonRes<string>>;
|
76
|
+
/**
|
77
|
+
* 导出用户
|
78
|
+
* URL: /api/blade-system/user/export-user
|
79
|
+
*/
|
80
|
+
static exportUser(user: Record<string, any>): Promise<Blob>;
|
81
|
+
/**
|
82
|
+
* 导出模板
|
83
|
+
* URL: /api/blade-system/user/export-template
|
84
|
+
*/
|
85
|
+
static exportTemplate(): Promise<Blob>;
|
86
|
+
/**
|
87
|
+
* 第三方注册用户
|
88
|
+
* URL: /api/blade-system/user/register-guest
|
89
|
+
*/
|
90
|
+
static registerGuest(user: User, oauthId: number | string): Promise<CommonRes<boolean>>;
|
91
|
+
/**
|
92
|
+
* 配置用户平台信息
|
93
|
+
* URL: /api/blade-system/user/update-platform
|
94
|
+
*/
|
95
|
+
static updatePlatform(userId: number | string, userType: number, userExt: string): Promise<CommonRes<boolean>>;
|
96
|
+
/**
|
97
|
+
* 查看平台详情
|
98
|
+
* URL: /api/blade-system/user/platform-detail
|
99
|
+
*/
|
100
|
+
static platformDetail(user: Partial<User>): Promise<CommonRes<UserVO>>;
|
101
|
+
/**
|
102
|
+
* 账号解锁
|
103
|
+
* URL: /api/blade-system/user/unlock
|
104
|
+
*/
|
105
|
+
static unlock(userIds: string): Promise<CommonRes<boolean>>;
|
106
|
+
/**
|
107
|
+
* 审核通过
|
108
|
+
* URL: /api/blade-system/user/audit-pass
|
109
|
+
*/
|
110
|
+
static auditPass(userIds: string): Promise<CommonRes<boolean>>;
|
111
|
+
/**
|
112
|
+
* 审核拒绝
|
113
|
+
* URL: /api/blade-system/user/audit-refuse
|
114
|
+
*/
|
115
|
+
static auditRefuse(userIds: string): Promise<CommonRes<boolean>>;
|
116
|
+
}
|
@@ -1,6 +1,6 @@
|
|
1
|
-
import type { CommonRes, PagedList } from
|
2
|
-
import { RightDTO } from
|
3
|
-
import { RightCopyRequest, RightCopyResponse, RightQuery, RightServiceConfigCopyUpdateRequest } from
|
1
|
+
import type { CommonRes, PagedList } from "../type/net-types";
|
2
|
+
import { RightDTO } from "../type/model/common-right-model";
|
3
|
+
import { RightCopyRequest, RightCopyResponse, RightQuery, RightServiceConfigCopyUpdateRequest } from "../type/model/system-right-model";
|
4
4
|
export declare class SystemRightApi {
|
5
5
|
/**
|
6
6
|
* 权益详情
|
@@ -1,4 +1,4 @@
|
|
1
|
-
import type { BindUserRequest, CreateRequest, QueryTreeRequest, UnbindUserRequest, UserGroupDeleteRequest, UserGroupMemberRequest, UserGroupUpdateRequest } from
|
1
|
+
import type { BindUserRequest, CreateRequest, QueryTreeRequest, UnbindUserRequest, UserGroupDeleteRequest, UserGroupMemberRequest, UserGroupUpdateRequest } from "../type/model/user-group-model";
|
2
2
|
export declare class UserGroupApi {
|
3
3
|
/**
|
4
4
|
* 更新用户组
|
@@ -41,3 +41,15 @@ export declare class UserGroupApi {
|
|
41
41
|
*/
|
42
42
|
static delete(data: UserGroupDeleteRequest): any;
|
43
43
|
}
|
44
|
+
export declare const crudUserGroupTreeApi: {
|
45
|
+
edit: typeof UserGroupApi.update;
|
46
|
+
add: typeof UserGroupApi.create;
|
47
|
+
list: typeof UserGroupApi.getTree;
|
48
|
+
del: typeof UserGroupApi.delete;
|
49
|
+
};
|
50
|
+
export declare const crudUserGroupTableApi: {
|
51
|
+
list: typeof UserGroupApi.getBladeUserPage;
|
52
|
+
del: typeof UserGroupApi.unbindUser;
|
53
|
+
add: typeof UserGroupApi.bindUser;
|
54
|
+
fetch: typeof UserGroupApi.getDetail;
|
55
|
+
};
|
@@ -5,29 +5,17 @@ export interface QiniuResponse {
|
|
5
5
|
url: string;
|
6
6
|
}
|
7
7
|
export interface QiniuOptions extends QiniuInitOptions {
|
8
|
-
region: QiniuRegion;
|
9
|
-
uptoken: string;
|
10
8
|
key: string;
|
11
|
-
fileType: string;
|
12
|
-
domain: string;
|
13
|
-
shouldUseQiniuFileName: boolean;
|
14
|
-
max_retries: number;
|
15
|
-
chunk_size: string;
|
16
9
|
}
|
17
|
-
type QiniuRegion =
|
10
|
+
type QiniuRegion = "ECN" | "SCN" | "NCN" | "NA" | "ASG";
|
18
11
|
export interface QiniuInitOptions {
|
19
12
|
region?: QiniuRegion;
|
20
13
|
uptoken?: string;
|
14
|
+
key?: string;
|
21
15
|
uptokenURL?: string;
|
22
16
|
domain?: string;
|
23
17
|
shouldUseQiniuFileName?: boolean;
|
24
18
|
fileType?: string;
|
25
|
-
uploadFile?: (options: {
|
26
|
-
url: string;
|
27
|
-
filePath: string;
|
28
|
-
name: string;
|
29
|
-
formData: Record<string, string>;
|
30
|
-
}) => Promise<any>;
|
31
19
|
}
|
32
20
|
interface QiniuUploadSuccessData {
|
33
21
|
key: string;
|
@@ -59,6 +59,8 @@ export declare enum HealthServiceType {
|
|
59
59
|
HealthTool = 9,// 健康工具服务
|
60
60
|
HealthGreenChannel = 10,// 健康绿通服务
|
61
61
|
Health3rdParty = 11,// 三方集成服务
|
62
|
+
HealthDevice = 12,// 健康设备服务
|
63
|
+
HealthMedication = 13,//用药管理服务
|
62
64
|
Unknown = 99
|
63
65
|
}
|
64
66
|
export declare const HealthServiceTypeOptions: {
|
@@ -302,6 +304,14 @@ export declare const PlanExecTypeOptions: {
|
|
302
304
|
value: PlanExecType;
|
303
305
|
label: string;
|
304
306
|
}[];
|
307
|
+
export declare enum PlanExecFollowType {
|
308
|
+
Periodic = 7,
|
309
|
+
Times = 6
|
310
|
+
}
|
311
|
+
export declare const PlanExecFollowTypeOptions: {
|
312
|
+
value: PlanExecFollowType;
|
313
|
+
label: string;
|
314
|
+
}[];
|
305
315
|
export declare function getPlanExecLabel(type: PlanExecType): string | undefined;
|
306
316
|
export declare enum VisitType {
|
307
317
|
BASELINE = 1,
|
@@ -426,3 +436,107 @@ export declare enum StudyType {
|
|
426
436
|
MultiMode = 2,
|
427
437
|
Unknown = 99
|
428
438
|
}
|
439
|
+
export declare enum RuleStatus {
|
440
|
+
DRAFT = 1,// 草稿
|
441
|
+
ENABLED = 2,// 已生效
|
442
|
+
DISABLED = 3,// 已失效
|
443
|
+
Unknown = 99
|
444
|
+
}
|
445
|
+
export declare const RuleStatusOptions: {
|
446
|
+
value: RuleStatus;
|
447
|
+
label: string;
|
448
|
+
}[];
|
449
|
+
export declare enum RuleType {
|
450
|
+
RULE = "rule",// 业务规则
|
451
|
+
QUERY = "query"
|
452
|
+
}
|
453
|
+
export declare enum RuleExecuteStrategy {
|
454
|
+
FIRST_MATCH = "first_match",// 执行任意一个满足条件的规则
|
455
|
+
ALL_MATCH = "all_match"
|
456
|
+
}
|
457
|
+
export declare enum RuleExecutorType {
|
458
|
+
URule = "urule",// www.bstek.com
|
459
|
+
QLExpress = "ql_express",// github.com/alibaba/QLExpress
|
460
|
+
FormQLExpress = "form_ql_express",// github.com/alibaba/QLExpress
|
461
|
+
EasyRules = "easy_rules",// github.com/j-easy/easy-rules
|
462
|
+
DeepSeek = "deep_seek"
|
463
|
+
}
|
464
|
+
export declare enum RuleConditionType {
|
465
|
+
SIMPLE = "simple",// 简单类型
|
466
|
+
AND = "and",// 与条件
|
467
|
+
OR = "or",// 或条件
|
468
|
+
NOT = "not"
|
469
|
+
}
|
470
|
+
export declare enum RuleConditionOperator {
|
471
|
+
EQUAL = "eq",// 等于
|
472
|
+
NOT_EQUAL = "ne",// 不等于
|
473
|
+
GREATER = "gt",// 大于
|
474
|
+
GREATER_EQUAL = "ge",// 大于等于
|
475
|
+
LESS = "lt",// 小于
|
476
|
+
LESS_EQUAL = "le",// 小于等于
|
477
|
+
IN = "in",// 包含
|
478
|
+
NOT_IN = "not_in",// 不包含
|
479
|
+
LIKE = "like",// 模糊匹配
|
480
|
+
LIKE_LEFT = "like_left",// 左模糊匹配
|
481
|
+
LIKE_RIGHT = "like_right",// 右模糊匹配
|
482
|
+
BETWEEN_INCLUSIVE = "between_inclusive",// 区间(包含边界)
|
483
|
+
BETWEEN_EXCLUSIVE = "between_exclusive",// 区间(不含边界)
|
484
|
+
BETWEEN_LOWER_INCLUSIVE = "between_lower_inclusive",// 区间(包含下界)
|
485
|
+
BETWEEN_UPPER_INCLUSIVE = "between_upper_inclusive"
|
486
|
+
}
|
487
|
+
export declare const RuleConditionOperatorOptions: {
|
488
|
+
value: RuleConditionOperator;
|
489
|
+
label: string;
|
490
|
+
}[];
|
491
|
+
export declare enum RuleActionOperator {
|
492
|
+
ASSIGN = "assign",// 变量赋值
|
493
|
+
CONCAT = "concat",// 字符串连接
|
494
|
+
LOG = "log"
|
495
|
+
}
|
496
|
+
export declare enum ReportTheme {
|
497
|
+
BusinessDevelopment = 1,
|
498
|
+
HealthStatus = 2,
|
499
|
+
PerformanceAssessment = 3
|
500
|
+
}
|
501
|
+
export declare const ReportThemeOptions: {
|
502
|
+
value: ReportTheme;
|
503
|
+
label: string;
|
504
|
+
}[];
|
505
|
+
/**
|
506
|
+
* 授权状态
|
507
|
+
*/
|
508
|
+
export declare enum AuthorizationStatus {
|
509
|
+
Creating = 1,//创建中
|
510
|
+
Pending = 2,//待生效
|
511
|
+
Published = 3,// 已授权
|
512
|
+
Expired = 4,// 已到期
|
513
|
+
Cancelled = 5,// 已取消
|
514
|
+
Unknown = 99
|
515
|
+
}
|
516
|
+
export declare const AuthorizationStatusOptions: {
|
517
|
+
value: AuthorizationStatus;
|
518
|
+
label: string;
|
519
|
+
}[];
|
520
|
+
export declare enum LicenseStatus {
|
521
|
+
Creating = 1,//创建中
|
522
|
+
Pending = 2,//待生效
|
523
|
+
Published = 3,// 已授权
|
524
|
+
Expired = 4,// 已到期
|
525
|
+
Cancelled = 5,// 已取消
|
526
|
+
Unknown = 99
|
527
|
+
}
|
528
|
+
/**
|
529
|
+
* AI模型类型枚举
|
530
|
+
*/
|
531
|
+
export declare enum AiModelType {
|
532
|
+
Chat = 10,// 文本生成
|
533
|
+
Vision = 20,// 视觉理解
|
534
|
+
Image = 30,// 图片生成
|
535
|
+
Audio = 40,// 语音模型
|
536
|
+
OCR = 50,// OCR识别
|
537
|
+
MultiModal = 90
|
538
|
+
}
|
539
|
+
export declare const AiModelTypeOptions: {
|
540
|
+
value: AiModelType;
|
541
|
+
label: string;
|
542
|
+
}[];
|
@@ -2,4 +2,7 @@ export * from "./type/model";
|
|
2
2
|
export * from "./type/net-types";
|
3
3
|
export * from "./constants/shcp-common";
|
4
4
|
export * from "./constants/km-const";
|
5
|
+
export * from "./constants/metric";
|
5
6
|
export * from "./api";
|
7
|
+
export * from "./shcp-api-sdk";
|
8
|
+
export * from "./constants/qiniuUploader";
|
@@ -1,9 +1,10 @@
|
|
1
|
-
import { QiniuInitOptions } from
|
1
|
+
import { QiniuInitOptions } from "./constants/qiniuUploader";
|
2
2
|
export interface RequestConfig {
|
3
3
|
url: string;
|
4
4
|
method: string;
|
5
5
|
data?: any;
|
6
6
|
params?: any;
|
7
|
+
responseType?: string;
|
7
8
|
header?: Record<string, string>;
|
8
9
|
custom?: {
|
9
10
|
verify?: (data: any) => boolean;
|
@@ -14,13 +15,25 @@ export interface RequestConfig {
|
|
14
15
|
type InitConfig = {
|
15
16
|
request: (options: RequestConfig) => any;
|
16
17
|
apiSuffix: (() => string) | string;
|
17
|
-
qiniuConfig
|
18
|
+
qiniuConfig: QiniuInitOptions;
|
19
|
+
uploadFile: (options: {
|
20
|
+
url?: string;
|
21
|
+
filePath?: string;
|
22
|
+
name?: string;
|
23
|
+
formData?: Record<string, string>;
|
24
|
+
}) => Promise<any>;
|
18
25
|
};
|
19
26
|
declare class _ShcpApiSdk {
|
20
27
|
private config?;
|
21
28
|
init(config: InitConfig): void;
|
22
29
|
request(options: RequestConfig): any;
|
23
30
|
getApiSuffix(): string;
|
31
|
+
uploadFile(options: {
|
32
|
+
url?: string;
|
33
|
+
filePath?: string;
|
34
|
+
name?: string;
|
35
|
+
formData?: Record<string, string>;
|
36
|
+
}): Promise<any>;
|
24
37
|
}
|
25
|
-
declare const ShcpApiSdk: _ShcpApiSdk;
|
26
|
-
export
|
38
|
+
export declare const ShcpApiSdk: _ShcpApiSdk;
|
39
|
+
export {};
|
@@ -0,0 +1,69 @@
|
|
1
|
+
import { AiModelType } from "../../constants/shcp-common";
|
2
|
+
/**
|
3
|
+
* AI模型对话理解请求
|
4
|
+
*/
|
5
|
+
export interface AiChatRequest {
|
6
|
+
/**
|
7
|
+
* 租户ID
|
8
|
+
*/
|
9
|
+
tenantId: string;
|
10
|
+
/**
|
11
|
+
* 模型类型
|
12
|
+
*/
|
13
|
+
modelType: AiModelType;
|
14
|
+
/**
|
15
|
+
* 模型的系统角色提示词
|
16
|
+
*/
|
17
|
+
systemPrompt?: string;
|
18
|
+
/**
|
19
|
+
* 模型的用户角色提示词
|
20
|
+
*/
|
21
|
+
userPrompt?: string;
|
22
|
+
/**
|
23
|
+
* 要理解的图片地址
|
24
|
+
*/
|
25
|
+
imageUrls?: string[];
|
26
|
+
/**
|
27
|
+
* 是否流式对话
|
28
|
+
*/
|
29
|
+
streaming?: boolean;
|
30
|
+
}
|
31
|
+
/**
|
32
|
+
* AI模型复制请求
|
33
|
+
*/
|
34
|
+
export interface AiModelCopyRequest {
|
35
|
+
/**
|
36
|
+
* 模版租户ID
|
37
|
+
*/
|
38
|
+
templateTenantId: string;
|
39
|
+
/**
|
40
|
+
* 新租户ID
|
41
|
+
*/
|
42
|
+
newTenantId: string;
|
43
|
+
}
|
44
|
+
/**
|
45
|
+
* AI模型复制响应数据
|
46
|
+
*/
|
47
|
+
export interface AiModelCopyResponse {
|
48
|
+
/**
|
49
|
+
* Ai模型ID映射
|
50
|
+
*/
|
51
|
+
aiModelIdMapping?: Record<number | string, number | string>;
|
52
|
+
}
|
53
|
+
/**
|
54
|
+
* AI执行的错误响应
|
55
|
+
*/
|
56
|
+
export interface AiErrorResponse {
|
57
|
+
/**
|
58
|
+
* 错误代码code
|
59
|
+
*/
|
60
|
+
code?: string;
|
61
|
+
/**
|
62
|
+
* 错误信息
|
63
|
+
*/
|
64
|
+
message?: string;
|
65
|
+
/**
|
66
|
+
* 模型名称
|
67
|
+
*/
|
68
|
+
request_id?: string;
|
69
|
+
}
|