shcp-api-lib 1.0.3 → 1.0.5

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.
Files changed (106) hide show
  1. package/dist/index.d.ts +8818 -3069
  2. package/dist/index.esm.js +4900 -942
  3. package/dist/index.esm.js.map +1 -1
  4. package/dist/index.js +4960 -959
  5. package/dist/index.js.map +1 -1
  6. package/dist/types/src/api/ai-api.d.ts +17 -0
  7. package/dist/types/src/api/ai-application-api.d.ts +17 -0
  8. package/dist/types/src/api/app-client-api.d.ts +2 -2
  9. package/dist/types/src/api/app-client-page-config-api.d.ts +19 -3
  10. package/dist/types/src/api/app-client-setting-api.d.ts +32 -2
  11. package/dist/types/src/api/common-file-api.d.ts +1 -0
  12. package/dist/types/src/api/common-right-api.d.ts +6 -1
  13. package/dist/types/src/api/consumer-api.d.ts +7 -2
  14. package/dist/types/src/api/disease-care-api.d.ts +91 -0
  15. package/dist/types/src/api/flow-follow-api.d.ts +22 -0
  16. package/dist/types/src/api/flow-manager-api.d.ts +40 -0
  17. package/dist/types/src/api/flow-model-api.d.ts +35 -0
  18. package/dist/types/src/api/flow-process-api.d.ts +27 -0
  19. package/dist/types/src/api/health-medication-api.d.ts +25 -0
  20. package/dist/types/src/api/health-metric-api.d.ts +10 -10
  21. package/dist/types/src/api/health-profile-api.d.ts +13 -2
  22. package/dist/types/src/api/health-study-api.d.ts +61 -0
  23. package/dist/types/src/api/index.d.ts +43 -2
  24. package/dist/types/src/api/job-info-api.d.ts +63 -0
  25. package/dist/types/src/api/job-server-api.d.ts +58 -0
  26. package/dist/types/src/api/km-article-api.d.ts +34 -11
  27. package/dist/types/src/api/km-article-apply-api.d.ts +9 -0
  28. package/dist/types/src/api/km-article-category-api.d.ts +39 -0
  29. package/dist/types/src/api/km-article-draft-api.d.ts +29 -0
  30. package/dist/types/src/api/km-article-tag-api.d.ts +29 -0
  31. package/dist/types/src/api/km-article-tag-category-api.d.ts +34 -0
  32. package/dist/types/src/api/km-form-api.d.ts +37 -7
  33. package/dist/types/src/api/km-form-category-api.d.ts +39 -0
  34. package/dist/types/src/api/km-form-content-draft-api.d.ts +14 -0
  35. package/dist/types/src/api/km-form-draft-api.d.ts +14 -0
  36. package/dist/types/src/api/km-form-item-api.d.ts +9 -0
  37. package/dist/types/src/api/km-form-tree-node-api.d.ts +29 -0
  38. package/dist/types/src/api/km-tag-api.d.ts +42 -0
  39. package/dist/types/src/api/km-tag-category-api.d.ts +47 -0
  40. package/dist/types/src/api/km-tag-value-dict-api.d.ts +32 -0
  41. package/dist/types/src/api/license-api.d.ts +50 -0
  42. package/dist/types/src/api/login-api.d.ts +6 -1
  43. package/dist/types/src/api/potential-customer-api.d.ts +14 -0
  44. package/dist/types/src/api/region-api.d.ts +70 -0
  45. package/dist/types/src/api/report-api.d.ts +9 -0
  46. package/dist/types/src/api/right-api.d.ts +39 -0
  47. package/dist/types/src/api/right-draft-api.d.ts +59 -0
  48. package/dist/types/src/api/right-draft-service-config-api.d.ts +28 -0
  49. package/dist/types/src/api/right-service-config-api.d.ts +26 -6
  50. package/dist/types/src/api/rule-api.d.ts +39 -0
  51. package/dist/types/src/api/system-ApiScopeController-api.d.ts +39 -0
  52. package/dist/types/src/api/system-DeptController-api.d.ts +27 -0
  53. package/dist/types/src/api/system-DictBizController-api.d.ts +33 -0
  54. package/dist/types/src/api/system-DictController-api.d.ts +33 -0
  55. package/dist/types/src/api/system-MenuController-api.d.ts +42 -0
  56. package/dist/types/src/api/system-PostController-api.d.ts +49 -0
  57. package/dist/types/src/api/system-RoleController-api.d.ts +48 -0
  58. package/dist/types/src/api/system-TenantController-api.d.ts +118 -0
  59. package/dist/types/src/api/system-TenantPackageController-api.d.ts +44 -0
  60. package/dist/types/src/api/system-TopMenuController-api.d.ts +44 -0
  61. package/dist/types/src/api/system-UserController-api.d.ts +116 -0
  62. package/dist/types/src/api/system-right-api.d.ts +3 -3
  63. package/dist/types/src/api/user-group-api.d.ts +13 -1
  64. package/dist/types/src/constants/qiniuUploader.d.ts +2 -14
  65. package/dist/types/src/constants/shcp-common.d.ts +114 -0
  66. package/dist/types/src/index.d.ts +3 -0
  67. package/dist/types/src/shcp-api-sdk.d.ts +17 -4
  68. package/dist/types/src/type/model/ai-model.d.ts +69 -0
  69. package/dist/types/src/type/model/app-client-page-config-model.d.ts +148 -0
  70. package/dist/types/src/type/model/app-client-setting-model.d.ts +55 -0
  71. package/dist/types/src/type/model/common-right-model.d.ts +129 -7
  72. package/dist/types/src/type/model/consumer-model.d.ts +34 -38
  73. package/dist/types/src/type/model/flow-follow-model.d.ts +14 -0
  74. package/dist/types/src/type/model/flow-manager-model.d.ts +16 -0
  75. package/dist/types/src/type/model/flow-model-model.d.ts +14 -0
  76. package/dist/types/src/type/model/flow-process-model.d.ts +13 -0
  77. package/dist/types/src/type/model/health-medication-model.d.ts +177 -0
  78. package/dist/types/src/type/model/health-metric-model.d.ts +8 -8
  79. package/dist/types/src/type/model/index.d.ts +28 -0
  80. package/dist/types/src/type/model/job-info-model.d.ts +24 -0
  81. package/dist/types/src/type/model/job-server-model.d.ts +20 -0
  82. package/dist/types/src/type/model/km-article-model.d.ts +579 -5
  83. package/dist/types/src/type/model/km-form-model.d.ts +739 -2
  84. package/dist/types/src/type/model/km-tag-model.d.ts +623 -0
  85. package/dist/types/src/type/model/license-model.d.ts +84 -0
  86. package/dist/types/src/type/model/login-model.d.ts +6 -0
  87. package/dist/types/src/type/model/potential-customer-model.d.ts +136 -0
  88. package/dist/types/src/type/model/region-model.d.ts +36 -0
  89. package/dist/types/src/type/model/report-model.d.ts +75 -0
  90. package/dist/types/src/type/model/right-draft-model.d.ts +243 -0
  91. package/dist/types/src/type/model/right-model.d.ts +88 -0
  92. package/dist/types/src/type/model/rule-model.d.ts +140 -0
  93. package/dist/types/src/type/model/system-ApiScopeController-model.d.ts +36 -0
  94. package/dist/types/src/type/model/system-DeptController-model.d.ts +26 -0
  95. package/dist/types/src/type/model/system-DictBizController-model.d.ts +25 -0
  96. package/dist/types/src/type/model/system-DictController-model.d.ts +25 -0
  97. package/dist/types/src/type/model/system-MenuController-model.d.ts +56 -0
  98. package/dist/types/src/type/model/system-PostController-model.d.ts +22 -0
  99. package/dist/types/src/type/model/system-RoleController-model.d.ts +35 -0
  100. package/dist/types/src/type/model/system-TenantController-model.d.ts +61 -0
  101. package/dist/types/src/type/model/system-TenantPackageController-model.d.ts +14 -0
  102. package/dist/types/src/type/model/system-TopMenuController-model.d.ts +27 -0
  103. package/dist/types/src/type/model/system-UserController-model.d.ts +51 -0
  104. package/package.json +13 -13
  105. package/dist/types/src/api/disease-care-right-api.d.ts +0 -22
  106. package/dist/types/src/api/health-study-right-api.d.ts +0 -23
@@ -0,0 +1,36 @@
1
+ /**
2
+ * API权限实体
3
+ */
4
+ export interface ApiScope {
5
+ id?: number | string;
6
+ scopeName?: string;
7
+ scopePath?: string;
8
+ scopeType?: number;
9
+ scopeClass?: string;
10
+ scopeMethod?: string;
11
+ scopeField?: string;
12
+ remark?: string;
13
+ createUser?: number | string;
14
+ createTime?: string;
15
+ updateUser?: number | string;
16
+ updateTime?: string;
17
+ isDeleted?: number;
18
+ }
19
+ /**
20
+ * API权限视图对象
21
+ */
22
+ export interface ApiScopeVO {
23
+ id?: number | string;
24
+ scopeName?: string;
25
+ scopePath?: string;
26
+ scopeType?: number;
27
+ scopeClass?: string;
28
+ scopeMethod?: string;
29
+ scopeField?: string;
30
+ remark?: string;
31
+ createUser?: number | string;
32
+ createTime?: string;
33
+ updateUser?: number | string;
34
+ updateTime?: string;
35
+ isDeleted?: number;
36
+ }
@@ -0,0 +1,26 @@
1
+ /**
2
+ * 部门实体
3
+ */
4
+ export interface Dept {
5
+ id?: number | string;
6
+ tenantId?: string;
7
+ parentId?: number | string;
8
+ deptName?: string;
9
+ fullName?: string;
10
+ sort?: number;
11
+ deptCategory?: string;
12
+ remark?: string;
13
+ isDeleted?: number;
14
+ createUser?: number | string;
15
+ createDept?: number | string;
16
+ createTime?: string;
17
+ updateUser?: number | string;
18
+ updateTime?: string;
19
+ }
20
+ /**
21
+ * 部门视图对象
22
+ */
23
+ export interface DeptVO extends Dept {
24
+ children?: DeptVO[];
25
+ hasChildren?: boolean;
26
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * 业务字典实体
3
+ */
4
+ export interface DictBizController {
5
+ id?: number | string;
6
+ parentId?: number | string;
7
+ code?: string;
8
+ dictKey?: string;
9
+ dictValue?: string;
10
+ sort?: number;
11
+ remark?: string;
12
+ isDeleted?: number;
13
+ createUser?: number | string;
14
+ createDept?: number | string;
15
+ createTime?: string;
16
+ updateUser?: number | string;
17
+ updateTime?: string;
18
+ }
19
+ /**
20
+ * 业务字典视图对象
21
+ */
22
+ export interface DictBizVOController extends DictBizController {
23
+ children?: DictBizVOController[];
24
+ hasChildren?: boolean;
25
+ }
@@ -0,0 +1,25 @@
1
+ /**
2
+ * 系统字典实体
3
+ */
4
+ export interface DictController {
5
+ id?: number | string;
6
+ parentId?: number | string;
7
+ code?: string;
8
+ dictKey?: string;
9
+ dictValue?: string;
10
+ sort?: number;
11
+ remark?: string;
12
+ isDeleted?: number;
13
+ createUser?: number | string;
14
+ createDept?: number | string;
15
+ createTime?: string;
16
+ updateUser?: number | string;
17
+ updateTime?: string;
18
+ }
19
+ /**
20
+ * 系统字典视图对象
21
+ */
22
+ export interface DictVOController extends DictController {
23
+ children?: DictVOController[];
24
+ hasChildren?: boolean;
25
+ }
@@ -0,0 +1,56 @@
1
+ /**
2
+ * 菜单实体
3
+ */
4
+ export interface Menu {
5
+ id?: number | string;
6
+ parentId?: number | string;
7
+ code?: string;
8
+ name?: string;
9
+ alias?: string;
10
+ path?: string;
11
+ source?: string;
12
+ sort?: number;
13
+ category?: number;
14
+ action?: string;
15
+ isOpen?: number;
16
+ remark?: string;
17
+ isDeleted?: number;
18
+ createUser?: number | string;
19
+ createDept?: number | string;
20
+ createTime?: string;
21
+ updateUser?: number | string;
22
+ updateTime?: string;
23
+ status?: number;
24
+ }
25
+ /**
26
+ * 菜单视图对象
27
+ */
28
+ export interface MenuVO extends Menu {
29
+ children?: MenuVO[];
30
+ hasChildren?: boolean;
31
+ }
32
+ /**
33
+ * 树节点
34
+ */
35
+ export interface TreeNode {
36
+ id: number | string;
37
+ parentId?: number | string;
38
+ name: string;
39
+ children?: TreeNode[];
40
+ }
41
+ /**
42
+ * 权限分配树
43
+ */
44
+ export interface GrantTreeVO {
45
+ menu: TreeNode[];
46
+ dataScope: TreeNode[];
47
+ apiScope: TreeNode[];
48
+ }
49
+ /**
50
+ * 选中树
51
+ */
52
+ export interface CheckedTreeVO {
53
+ menu: (number | string)[];
54
+ dataScope: (number | string)[];
55
+ apiScope: (number | string)[];
56
+ }
@@ -0,0 +1,22 @@
1
+ /**
2
+ * 岗位实体
3
+ */
4
+ export interface Post {
5
+ id?: number | string;
6
+ tenantId?: string;
7
+ postCode?: string;
8
+ postName?: string;
9
+ sort?: number;
10
+ status?: number;
11
+ isDeleted?: number;
12
+ createUser?: number | string;
13
+ createDept?: number | string;
14
+ createTime?: string;
15
+ updateUser?: number | string;
16
+ updateTime?: string;
17
+ }
18
+ /**
19
+ * 岗位视图对象
20
+ */
21
+ export interface PostVO extends Post {
22
+ }
@@ -0,0 +1,35 @@
1
+ /**
2
+ * 角色实体
3
+ */
4
+ export interface Role {
5
+ id?: number | string;
6
+ tenantId?: string;
7
+ parentId?: number | string;
8
+ roleName?: string;
9
+ roleAlias?: string;
10
+ sort?: number;
11
+ isDeleted?: number;
12
+ createUser?: number | string;
13
+ createDept?: number | string;
14
+ createTime?: string;
15
+ updateUser?: number | string;
16
+ updateTime?: string;
17
+ status?: number;
18
+ isSealed?: number;
19
+ }
20
+ /**
21
+ * 角色视图对象
22
+ */
23
+ export interface RoleVO extends Role {
24
+ children?: RoleVO[];
25
+ hasChildren?: boolean;
26
+ }
27
+ /**
28
+ * 角色授权视图对象
29
+ */
30
+ export interface RoleGrantVO {
31
+ roleIds: string;
32
+ menuIds: string;
33
+ dataScopeIds: string;
34
+ apiScopeIds: string;
35
+ }
@@ -0,0 +1,61 @@
1
+ /**
2
+ * 租户实体
3
+ */
4
+ export interface SystemTenant {
5
+ id?: number | string;
6
+ tenantId?: string;
7
+ tenantName?: string;
8
+ contactNumber?: string;
9
+ domainUrl?: string;
10
+ homePageBackgroundUrl?: string;
11
+ accountNumber?: number;
12
+ expireTime?: string;
13
+ datasourceId?: number;
14
+ packageId?: number;
15
+ status?: number;
16
+ remark?: string;
17
+ createUser?: number | string;
18
+ createTime?: string;
19
+ updateUser?: number | string;
20
+ updateTime?: string;
21
+ isDeleted?: number;
22
+ }
23
+ /**
24
+ * 租户DTO
25
+ */
26
+ export interface TenantDTO {
27
+ id?: number | string;
28
+ tenantId?: string;
29
+ tenantName?: string;
30
+ contactNumber?: string;
31
+ domainUrl?: string;
32
+ homePageBackgroundUrl?: string;
33
+ accountNumber?: number;
34
+ expireTime?: string;
35
+ datasourceId?: number;
36
+ packageId?: number;
37
+ status?: number;
38
+ remark?: string;
39
+ }
40
+ /**
41
+ * 租户更新请求
42
+ */
43
+ export interface TenantUpdateRequest {
44
+ tenantId: string;
45
+ domainUrl?: string;
46
+ homePageBackgroundUrl?: string;
47
+ }
48
+ /**
49
+ * 租户复制请求
50
+ */
51
+ export interface TenantCopyRequest {
52
+ sourceTenantId: string;
53
+ targetTenantName: string;
54
+ targetDomainUrl: string;
55
+ }
56
+ /**
57
+ * 租户复制重试请求
58
+ */
59
+ export interface TenantCopyRetryRequest {
60
+ taskId: string;
61
+ }
@@ -0,0 +1,14 @@
1
+ /**
2
+ * 租户产品包实体
3
+ */
4
+ export interface TenantPackage {
5
+ id?: number | string;
6
+ packageName?: string;
7
+ status?: number;
8
+ remark?: string;
9
+ createUser?: number | string;
10
+ createTime?: string;
11
+ updateUser?: number | string;
12
+ updateTime?: string;
13
+ isDeleted?: number;
14
+ }
@@ -0,0 +1,27 @@
1
+ /**
2
+ * 顶部菜单实体
3
+ */
4
+ export interface TopMenu {
5
+ id?: number | string;
6
+ name?: string;
7
+ code?: string;
8
+ icon?: string;
9
+ path?: string;
10
+ component?: string;
11
+ sort?: number;
12
+ category?: number;
13
+ status?: number;
14
+ remark?: string;
15
+ createUser?: number | string;
16
+ createTime?: string;
17
+ updateUser?: number | string;
18
+ updateTime?: string;
19
+ isDeleted?: number;
20
+ }
21
+ /**
22
+ * 授权视图对象
23
+ */
24
+ export interface GrantVO {
25
+ topMenuIds: string;
26
+ menuIds: string;
27
+ }
@@ -0,0 +1,51 @@
1
+ /**
2
+ * 用户实体
3
+ */
4
+ export interface User {
5
+ id?: number | string;
6
+ account?: string;
7
+ password?: string;
8
+ name?: string;
9
+ realName?: string;
10
+ avatar?: string;
11
+ email?: string;
12
+ phone?: string;
13
+ birthday?: string;
14
+ sex?: number;
15
+ roleId?: string;
16
+ deptId?: string;
17
+ postId?: string;
18
+ tenantId?: string;
19
+ isDeleted?: number;
20
+ status?: number;
21
+ createUser?: number | string;
22
+ createTime?: string;
23
+ updateUser?: number | string;
24
+ updateTime?: string;
25
+ userType?: number;
26
+ userExt?: string;
27
+ }
28
+ /**
29
+ * 用户视图对象
30
+ */
31
+ export interface UserVO extends User {
32
+ roleName?: string;
33
+ deptName?: string;
34
+ postName?: string;
35
+ }
36
+ /**
37
+ * 用户Excel导入导出对象
38
+ */
39
+ export interface UserExcel {
40
+ account: string;
41
+ name: string;
42
+ realName: string;
43
+ email: string;
44
+ phone: string;
45
+ birthday: string;
46
+ sex: number;
47
+ roleId: string;
48
+ deptId: string;
49
+ postId: string;
50
+ status: number;
51
+ }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "shcp-api-lib",
3
- "version": "1.0.3",
3
+ "version": "1.0.5",
4
4
  "description": "SHCP Model Library",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.esm.js",
@@ -9,17 +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": "npm 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": "npm run build"
22
- },
23
12
  "keywords": [
24
13
  "shcp",
25
14
  "model",
@@ -43,5 +32,16 @@
43
32
  "ts-node": "^10.9.0",
44
33
  "tslib": "^2.8.1",
45
34
  "typescript": "^5.0.0"
35
+ },
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
46
  }
47
- }
47
+ }
@@ -1,22 +0,0 @@
1
- import type { HealthCareOpApi } from '../type/model/common-right-model';
2
- import { CommonRightApi } from './common-right-api';
3
- export declare const crudDiseaseCareConsumerApi: {
4
- list: typeof CommonRightApi.flowPage;
5
- };
6
- export declare const crudDiseaseCareAssessTaskApi: {
7
- list: typeof CommonRightApi.taskPage;
8
- };
9
- export declare const crudDiseaseCareInterviewTaskApi: {
10
- list: typeof CommonRightApi.taskPage;
11
- };
12
- export declare const crudDiseaseCareFollowupTaskApi: {
13
- list: typeof CommonRightApi.taskPage;
14
- };
15
- export declare const crudDiseaseCareAbnormalTaskApi: {
16
- list: typeof CommonRightApi.metricExceptionPage;
17
- };
18
- export declare const crudDiseaseCareReferralApi: {
19
- list: typeof CommonRightApi.taskPage;
20
- };
21
- export declare const diseaseOpApi: HealthCareOpApi;
22
- export declare const diseaseExceptionOpApi: HealthCareOpApi;
@@ -1,23 +0,0 @@
1
- import type { HealthCareOpApi } from '../type/model/common-right-model';
2
- import { CommonRightApi } from './common-right-api';
3
- export declare const crudHealthStudyConsumerApi: {
4
- list: typeof CommonRightApi.flowPage;
5
- add: () => void;
6
- };
7
- export declare const crudHealthStudyAssessTaskApi: {
8
- list: typeof CommonRightApi.taskPage;
9
- };
10
- export declare const crudHealthStudyInterviewTaskApi: {
11
- list: typeof CommonRightApi.taskPage;
12
- };
13
- export declare const crudHealthStudyFollowupTaskApi: {
14
- list: typeof CommonRightApi.taskPage;
15
- };
16
- export declare const crudHealthStudyAbnormalTaskApi: {
17
- list: typeof CommonRightApi.metricExceptionPage;
18
- };
19
- export declare const crudHealthStudyReferralApi: {
20
- list: typeof CommonRightApi.taskPage;
21
- };
22
- export declare const healthStudyOpApi: HealthCareOpApi;
23
- export declare const healthStudyExceptionOpApi: HealthCareOpApi;