web-core-tcm 0.0.71 → 0.0.73

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 (96) hide show
  1. package/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.js +10 -6
  2. package/dist/src/api/algorithm/pulsationsAlgorithm.js +1 -1
  3. package/dist/src/api/authorization/alova/index.d.ts +2 -3
  4. package/dist/src/api/authorization/alova/index.js +13 -16
  5. package/dist/src/api/authorization/authorization.d.ts +1 -1
  6. package/dist/src/api/authorization/index.js +6 -9
  7. package/dist/src/api/check/alova/index.d.ts +2 -1
  8. package/dist/src/api/check/alova/index.js +11 -10
  9. package/dist/src/api/check/check.d.ts +1 -1
  10. package/dist/src/api/check/index.js +10 -9
  11. package/dist/src/api/config/alova/index.js +10 -10
  12. package/dist/src/api/config/index.d.ts +3 -1
  13. package/dist/src/api/config/index.js +21 -9
  14. package/dist/src/api/core/core.d.ts +1 -1
  15. package/dist/src/api/doctor/alova/index.d.ts +2 -1
  16. package/dist/src/api/doctor/alova/index.js +8 -7
  17. package/dist/src/api/doctor/doctor.d.ts +1 -1
  18. package/dist/src/api/doctor/index.js +7 -6
  19. package/dist/src/api/index.d.ts +1 -0
  20. package/dist/src/api/index.js +2 -0
  21. package/dist/src/api/manager/alova/apiDefinitions.d.ts +77 -0
  22. package/dist/src/api/manager/alova/apiDefinitions.js +65 -0
  23. package/dist/src/api/manager/alova/createApis.d.ts +10 -0
  24. package/dist/src/api/manager/alova/createApis.js +49 -0
  25. package/dist/src/api/manager/alova/globals.d.ts +5524 -0
  26. package/dist/src/api/manager/alova/implement/department.d.ts +15 -0
  27. package/dist/src/api/manager/alova/implement/department.js +71 -0
  28. package/dist/src/api/manager/alova/implement/division.d.ts +15 -0
  29. package/dist/src/api/manager/alova/implement/division.js +71 -0
  30. package/dist/src/api/manager/alova/implement/hospital.d.ts +15 -0
  31. package/dist/src/api/manager/alova/implement/hospital.js +72 -0
  32. package/dist/src/api/manager/alova/implement/index.d.ts +3 -0
  33. package/dist/src/api/manager/alova/implement/index.js +8 -0
  34. package/dist/src/api/manager/alova/index.d.ts +7 -0
  35. package/dist/src/api/manager/alova/index.js +21 -0
  36. package/dist/src/api/manager/department.d.ts +23 -0
  37. package/dist/src/api/manager/department.js +49 -0
  38. package/dist/src/api/manager/division.d.ts +23 -0
  39. package/dist/src/api/manager/division.js +44 -0
  40. package/dist/src/api/manager/hospital.d.ts +24 -0
  41. package/dist/src/api/manager/hospital.js +51 -0
  42. package/dist/src/api/manager/index.d.ts +4 -0
  43. package/dist/src/api/manager/index.js +18 -0
  44. package/dist/src/api/metric/alova/implement/metric.d.ts +1 -1
  45. package/dist/src/api/metric/metric.d.ts +2 -2
  46. package/dist/src/api/oauth/alova/index.d.ts +2 -1
  47. package/dist/src/api/oauth/alova/index.js +12 -11
  48. package/dist/src/api/oauth/index.js +6 -5
  49. package/dist/src/api/outpatient/alova/index.d.ts +2 -1
  50. package/dist/src/api/outpatient/alova/index.js +11 -10
  51. package/dist/src/api/outpatient/index.js +10 -9
  52. package/dist/src/api/outpatient/outpatient.d.ts +1 -1
  53. package/dist/src/api/patient/alova/implement/meta.d.ts +1 -1
  54. package/dist/src/api/patient/alova/index.d.ts +2 -1
  55. package/dist/src/api/patient/alova/index.js +11 -10
  56. package/dist/src/api/patient/index.js +27 -26
  57. package/dist/src/api/patient/meta.d.ts +1 -1
  58. package/dist/src/api/patient/patient.d.ts +1 -1
  59. package/dist/src/api/prescription/alova/implement/prescription.d.ts +0 -1
  60. package/dist/src/api/prescription/alova/implement/prescription.js +9 -17
  61. package/dist/src/api/prescription/alova/index.d.ts +2 -1
  62. package/dist/src/api/prescription/alova/index.js +2 -1
  63. package/dist/src/api/prescription/herbal.d.ts +1 -1
  64. package/dist/src/api/prescription/index.js +12 -11
  65. package/dist/src/api/prescription/prescription.d.ts +1 -2
  66. package/dist/src/api/prescription/prescription.js +9 -12
  67. package/dist/src/api/scientist/alova/index.d.ts +2 -1
  68. package/dist/src/api/scientist/alova/index.js +6 -5
  69. package/dist/src/api/scientist/index.js +8 -7
  70. package/dist/src/api/scientist/scientist.d.ts +1 -1
  71. package/dist/src/api/user/alova/apiDefinitions.d.ts +26 -0
  72. package/dist/src/api/user/alova/apiDefinitions.js +14 -0
  73. package/dist/src/api/user/alova/createApis.d.ts +10 -0
  74. package/dist/src/api/user/alova/createApis.js +49 -0
  75. package/dist/src/api/user/alova/globals.d.ts +529 -0
  76. package/dist/src/api/user/alova/implement/index.d.ts +1 -0
  77. package/dist/src/api/user/alova/implement/index.js +1 -0
  78. package/dist/src/api/user/alova/implement/user.d.ts +10 -0
  79. package/dist/src/api/user/alova/index.d.ts +7 -0
  80. package/dist/src/api/user/alova/index.js +21 -0
  81. package/dist/src/api/user/index.d.ts +2 -0
  82. package/dist/src/api/user/index.js +8 -0
  83. package/dist/src/api/user/user.d.ts +23 -0
  84. package/dist/src/api/user/user.js +52 -0
  85. package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue.d.ts +14 -3
  86. package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue.js +2 -2
  87. package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue2.js +117 -129
  88. package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue.d.ts +14 -3
  89. package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue.js +2 -2
  90. package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue2.js +123 -139
  91. package/dist/src/components/tcm/lisems/EPPCollected.vue.js +1 -1
  92. package/dist/src/components/tcm/palpations/PulsationCollect.vue.js +2 -2
  93. package/dist/src/components/tcm/palpations/PulsationCollect.vue2.js +51 -54
  94. package/dist/src/index.js +42 -40
  95. package/dist/web-core-tcm.css +1 -1
  96. package/package.json +11 -1
@@ -0,0 +1,15 @@
1
+ import { Department } from '../../department';
2
+ export declare class AlovaDepartment extends Department {
3
+ get(): Promise<this>;
4
+ put(): Promise<this>;
5
+ post(): Promise<this>;
6
+ delete(): Promise<this>;
7
+ static query(page: number, pageSize: number, sort: string, departmentStateId?: string, hospitalStateId?: string, departmentStateName?: string, departmentStateNote?: string, startTime?: string, endTime?: string): Promise<{
8
+ data: AlovaDepartment[];
9
+ total: number;
10
+ page: number;
11
+ pageSize: number;
12
+ pageCount: number;
13
+ isLastPage: boolean;
14
+ }>;
15
+ }
@@ -0,0 +1,71 @@
1
+ import { Department as f } from "../../department.js";
2
+ class e extends f {
3
+ async get() {
4
+ return this.of(
5
+ await managerApi.departmentStateRestful.getDepartmentState({
6
+ pathParams: {
7
+ id: this.id
8
+ },
9
+ async transform(a) {
10
+ return new e().of(a);
11
+ }
12
+ }).send()
13
+ );
14
+ }
15
+ async put() {
16
+ return this.of(
17
+ await managerApi.departmentStateRestful.putDepartmentState({
18
+ pathParams: {
19
+ id: this.id
20
+ },
21
+ data: this.state()
22
+ }).send(!0)
23
+ );
24
+ }
25
+ async post() {
26
+ return this.of(
27
+ await managerApi.departmentStateRestful.postDepartmentState({
28
+ data: this.state()
29
+ }).send(!0)
30
+ );
31
+ }
32
+ async delete() {
33
+ return this.of(
34
+ await managerApi.departmentStateRestful.deleteDepartmentState({
35
+ pathParams: {
36
+ id: this.id
37
+ }
38
+ }).send(!0)
39
+ );
40
+ }
41
+ static query(a, n, s, r, i, p, m, d, u) {
42
+ return managerApi.departmentStateRestful.getDepartmentStates({
43
+ data: {
44
+ page: a,
45
+ pageSize: n,
46
+ sort: s,
47
+ departmentStateId: r,
48
+ hospitalStateId: i,
49
+ departmentStateName: p,
50
+ departmentStateNote: m,
51
+ startTime: d,
52
+ endTime: u
53
+ },
54
+ async transform(t) {
55
+ return {
56
+ data: await Promise.all(
57
+ t.content.map((o) => new e().of(o))
58
+ ),
59
+ total: t.totalElements,
60
+ page: t.number,
61
+ pageSize: t.size,
62
+ pageCount: t.totalPages,
63
+ isLastPage: t.last
64
+ };
65
+ }
66
+ }).send();
67
+ }
68
+ }
69
+ export {
70
+ e as AlovaDepartment
71
+ };
@@ -0,0 +1,15 @@
1
+ import { Division } from '../../division';
2
+ export declare class AlovaDivision extends Division {
3
+ get(): Promise<this>;
4
+ put(): Promise<this>;
5
+ post(): Promise<this>;
6
+ delete(): Promise<this>;
7
+ static query(page: number, pageSize: number, sort: string, divisionStateId?: string, departmentStateId?: string, divisionStateName?: string, divisionStateNote?: string, startTime?: string, endTime?: string): Promise<{
8
+ data: AlovaDivision[];
9
+ total: number;
10
+ page: number;
11
+ pageSize: number;
12
+ pageCount: number;
13
+ isLastPage: boolean;
14
+ }>;
15
+ }
@@ -0,0 +1,71 @@
1
+ import { Division as f } from "../../division.js";
2
+ class i extends f {
3
+ async get() {
4
+ return this.of(
5
+ await managerApi.divisionStateRestful.getDivisionState({
6
+ pathParams: {
7
+ id: this.id
8
+ },
9
+ async transform(a) {
10
+ return new i().of(a);
11
+ }
12
+ }).send()
13
+ );
14
+ }
15
+ async put() {
16
+ return this.of(
17
+ await managerApi.divisionStateRestful.putDivisionState({
18
+ pathParams: {
19
+ id: this.id
20
+ },
21
+ data: this.state()
22
+ }).send(!0)
23
+ );
24
+ }
25
+ async post() {
26
+ return this.of(
27
+ await managerApi.divisionStateRestful.postDivisionState({
28
+ data: this.state()
29
+ }).send(!0)
30
+ );
31
+ }
32
+ async delete() {
33
+ return this.of(
34
+ await managerApi.divisionStateRestful.deleteDivisionState({
35
+ pathParams: {
36
+ id: this.id
37
+ }
38
+ }).send(!0)
39
+ );
40
+ }
41
+ static query(a, e, s, n, r, o, d, u, p) {
42
+ return managerApi.divisionStateRestful.getDivisionStates({
43
+ data: {
44
+ page: a,
45
+ pageSize: e,
46
+ sort: s,
47
+ divisionStateId: n,
48
+ departmentStateId: r,
49
+ divisionStateName: o,
50
+ divisionStateNote: d,
51
+ startTime: u,
52
+ endTime: p
53
+ },
54
+ async transform(t) {
55
+ return {
56
+ data: await Promise.all(
57
+ t.content.map((m) => new i().of(m))
58
+ ),
59
+ total: t.totalElements,
60
+ page: t.number,
61
+ pageSize: t.size,
62
+ pageCount: t.totalPages,
63
+ isLastPage: t.last
64
+ };
65
+ }
66
+ }).send();
67
+ }
68
+ }
69
+ export {
70
+ i as AlovaDivision
71
+ };
@@ -0,0 +1,15 @@
1
+ import { Hospital } from '../../hospital';
2
+ export declare class AlovaHospital extends Hospital {
3
+ get(): Promise<this>;
4
+ put(): Promise<this>;
5
+ post(): Promise<this>;
6
+ delete(): Promise<this>;
7
+ static query(page: number, pageSize: number, sort: string, hospitalStateId?: string, hospitalStateName?: string, hospitalStateLevel?: string, hospitalStateAddress?: string, hospitalStateNote?: string, startTime?: string, endTime?: string): Promise<{
8
+ data: AlovaHospital[];
9
+ total: number;
10
+ page: number;
11
+ pageSize: number;
12
+ pageCount: number;
13
+ isLastPage: boolean;
14
+ }>;
15
+ }
@@ -0,0 +1,72 @@
1
+ import { Hospital as m } from "../../hospital.js";
2
+ class e extends m {
3
+ async get() {
4
+ return this.of(
5
+ await managerApi.hospitalStateRestful.getHospitalState({
6
+ pathParams: {
7
+ id: this.id
8
+ },
9
+ async transform(a) {
10
+ return new e().of(a);
11
+ }
12
+ }).send()
13
+ );
14
+ }
15
+ async put() {
16
+ return this.of(
17
+ await managerApi.hospitalStateRestful.putHospitalState({
18
+ pathParams: {
19
+ id: this.id
20
+ },
21
+ data: this.state()
22
+ }).send(!0)
23
+ );
24
+ }
25
+ async post() {
26
+ return this.of(
27
+ await managerApi.hospitalStateRestful.postHospitalState({
28
+ data: this.state()
29
+ }).send(!0)
30
+ );
31
+ }
32
+ async delete() {
33
+ return this.of(
34
+ await managerApi.hospitalStateRestful.deleteHospitalState({
35
+ pathParams: {
36
+ id: this.id
37
+ }
38
+ }).send(!0)
39
+ );
40
+ }
41
+ static query(a, s, i, n, r, o, p, l, u, d) {
42
+ return managerApi.hospitalStateRestful.getHospitalStates({
43
+ data: {
44
+ page: a,
45
+ pageSize: s,
46
+ sort: i,
47
+ hospitalStateId: n,
48
+ hospitalStateName: r,
49
+ hospitalStateLevel: o,
50
+ hospitalStateAddress: p,
51
+ hospitalStateNote: l,
52
+ startTime: u,
53
+ endTime: d
54
+ },
55
+ async transform(t) {
56
+ return {
57
+ data: await Promise.all(
58
+ t.content.map((h) => new e().of(h))
59
+ ),
60
+ total: t.totalElements,
61
+ page: t.number,
62
+ pageSize: t.size,
63
+ pageCount: t.totalPages,
64
+ isLastPage: t.last
65
+ };
66
+ }
67
+ }).send();
68
+ }
69
+ }
70
+ export {
71
+ e as AlovaHospital
72
+ };
@@ -0,0 +1,3 @@
1
+ export * from './division';
2
+ export * from './department';
3
+ export * from './hospital';
@@ -0,0 +1,8 @@
1
+ import { AlovaDivision as t } from "./division.js";
2
+ import { AlovaDepartment as e } from "./department.js";
3
+ import { AlovaHospital as i } from "./hospital.js";
4
+ export {
5
+ e as AlovaDepartment,
6
+ t as AlovaDivision,
7
+ i as AlovaHospital
8
+ };
@@ -0,0 +1,7 @@
1
+ export declare const alovaInstance: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, any, any, any>>;
2
+ export { alovaInstance as managerAlovaInstance };
3
+ export declare const $$userConfigMap: {};
4
+ declare const Apis: managerApi;
5
+ export default Apis;
6
+ export * from './implement';
7
+ export type * from './globals';
@@ -0,0 +1,21 @@
1
+ import { createAlova as r } from "../../../../node_modules/alova/dist/alova.esm.js";
2
+ import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
3
+ import { withConfigType as t, createApis as a, mountApis as n } from "./createApis.js";
4
+ import { getServiceEndpoint as p, ServiceType as i } from "../../config/index.js";
5
+ import "./implement/index.js";
6
+ import { onAuthRequired as s } from "../../config/alova/index.js";
7
+ const m = r({
8
+ baseURL: p(i.Manager),
9
+ // baseURL: 'http://localhost:8080/管理/服务',
10
+ requestAdapter: o(),
11
+ beforeRequest: s(() => {
12
+ }),
13
+ responded: (e) => e.json()
14
+ }), c = t({}), f = a(m, c);
15
+ n(f);
16
+ export {
17
+ c as $$userConfigMap,
18
+ m as alovaInstance,
19
+ f as default,
20
+ m as managerAlovaInstance
21
+ };
@@ -0,0 +1,23 @@
1
+ import { Page, NetworkObject } from '../core';
2
+ import { IBuilder } from 'builder-pattern';
3
+ import { DepartmentState, DivisionState } from './alova/globals';
4
+ import { UserState } from '../user';
5
+ export declare abstract class Department extends NetworkObject {
6
+ static builder(): IBuilder<Department>;
7
+ static default(): typeof Department;
8
+ id: string;
9
+ hospitalStateId: string;
10
+ name: string;
11
+ note: string;
12
+ admins: UserState[];
13
+ members: DivisionState[];
14
+ createdTimestamp: string;
15
+ updatedTimestamp: string;
16
+ of(json: DepartmentState): Promise<this>;
17
+ state(): DepartmentState;
18
+ abstract get(): Promise<this>;
19
+ abstract post(): Promise<this>;
20
+ abstract put(): Promise<this>;
21
+ abstract delete(): Promise<this>;
22
+ static query(page: number, pageSize: number, sort: string, departmentStateId?: string, hospitalStateId?: string, departmentStateName?: string, departmentStateNote?: string, startTime?: string, endTime?: string): Promise<Page<Department>>;
23
+ }
@@ -0,0 +1,49 @@
1
+ import "../core/index.js";
2
+ import { Builder as h } from "../../../node_modules/builder-pattern/dist/index.js";
3
+ import { Division as f } from "./division.js";
4
+ import "../user/index.js";
5
+ import { NetworkObject as o } from "../core/core.js";
6
+ import { User as l } from "../user/user.js";
7
+ class S extends o {
8
+ static builder() {
9
+ return h(this._default);
10
+ }
11
+ static default() {
12
+ return this._default;
13
+ }
14
+ id = "";
15
+ hospitalStateId = "";
16
+ name = "";
17
+ note = "";
18
+ admins = [];
19
+ members = [];
20
+ createdTimestamp = "";
21
+ updatedTimestamp = "";
22
+ async of(t) {
23
+ return t.id != null && (this.id = t.id), t.hospitalStateId != null && (this.hospitalStateId = t.hospitalStateId), t.name != null && (this.name = t.name), t.note != null && (this.note = t.note), t.admins != null && (this.admins = await Promise.all(
24
+ t.admins.map((i) => l.builder().build().of(i))
25
+ )), t.members != null && (this.members = await Promise.all(
26
+ t.members.map((i) => f.builder().build().of(i))
27
+ )), t.createdTimestamp != null && (this.createdTimestamp = t.createdTimestamp), t.updatedTimestamp != null && (this.updatedTimestamp = t.updatedTimestamp), this;
28
+ }
29
+ state() {
30
+ const t = {};
31
+ return this.id && (t.id = this.id), this.hospitalStateId && (t.hospitalStateId = this.hospitalStateId), this.name && (t.name = this.name), this.note && (t.note = this.note), this.admins.length > 0 && (t.admins = this.admins), this.members.length > 0 && (t.members = this.members), this.createdTimestamp && (t.createdTimestamp = this.createdTimestamp), this.updatedTimestamp && (t.updatedTimestamp = this.updatedTimestamp), t;
32
+ }
33
+ static query(t, i, e, a, m, s, d, r, p) {
34
+ return this.default().query(
35
+ t,
36
+ i,
37
+ e,
38
+ a,
39
+ m,
40
+ s,
41
+ d,
42
+ r,
43
+ p
44
+ );
45
+ }
46
+ }
47
+ export {
48
+ S as Department
49
+ };
@@ -0,0 +1,23 @@
1
+ import { Page, NetworkObject } from '../core';
2
+ import { IBuilder } from 'builder-pattern';
3
+ import { DivisionState } from './alova/globals';
4
+ import { UserState } from '../user';
5
+ export declare abstract class Division extends NetworkObject {
6
+ static builder(): IBuilder<Division>;
7
+ static default(): typeof Division;
8
+ id: string;
9
+ departmentStateId: string;
10
+ name: string;
11
+ note: string;
12
+ admins: UserState[];
13
+ members: UserState[];
14
+ createdTimestamp: string;
15
+ updatedTimestamp: string;
16
+ of(json: DivisionState): Promise<this>;
17
+ state(): DivisionState;
18
+ abstract get(): Promise<this>;
19
+ abstract post(): Promise<this>;
20
+ abstract put(): Promise<this>;
21
+ abstract delete(): Promise<this>;
22
+ static query(page: number, pageSize: number, sort: string, divisionStateId?: string, departmentStateId?: string, divisionStateName?: string, divisionStateNote?: string, startTime?: string, endTime?: string): Promise<Page<Division>>;
23
+ }
@@ -0,0 +1,44 @@
1
+ import "../core/index.js";
2
+ import { Builder as f } from "../../../node_modules/builder-pattern/dist/index.js";
3
+ import "../user/index.js";
4
+ import { NetworkObject as n } from "../core/core.js";
5
+ import { User as i } from "../user/user.js";
6
+ class v extends n {
7
+ static builder() {
8
+ return f(this._default);
9
+ }
10
+ static default() {
11
+ return this._default;
12
+ }
13
+ id = "";
14
+ departmentStateId = "";
15
+ name = "";
16
+ note = "";
17
+ admins = [];
18
+ members = [];
19
+ createdTimestamp = "";
20
+ updatedTimestamp = "";
21
+ async of(t) {
22
+ return t.id != null && (this.id = t.id), t.departmentStateId != null && (this.departmentStateId = t.departmentStateId), t.name != null && (this.name = t.name), t.note != null && (this.note = t.note), t.admins != null && (this.admins = await Promise.all(t.admins.map((e) => i.builder().build().of(e)))), t.members != null && (this.members = await Promise.all(t.members.map((e) => i.builder().build().of(e)))), t.createdTimestamp != null && (this.createdTimestamp = t.createdTimestamp), t.updatedTimestamp != null && (this.updatedTimestamp = t.updatedTimestamp), this;
23
+ }
24
+ state() {
25
+ const t = {};
26
+ return this.id && (t.id = this.id), this.departmentStateId && (t.departmentStateId = this.departmentStateId), this.name && (t.name = this.name), this.note && (t.note = this.note), this.admins.length > 0 && (t.admins = this.admins), this.members.length > 0 && (t.members = this.members), this.createdTimestamp && (t.createdTimestamp = this.createdTimestamp), this.updatedTimestamp && (t.updatedTimestamp = this.updatedTimestamp), t;
27
+ }
28
+ static query(t, e, a, m, d, s, r, p, h) {
29
+ return this.default().query(
30
+ t,
31
+ e,
32
+ a,
33
+ m,
34
+ d,
35
+ s,
36
+ r,
37
+ p,
38
+ h
39
+ );
40
+ }
41
+ }
42
+ export {
43
+ v as Division
44
+ };
@@ -0,0 +1,24 @@
1
+ import { Page, NetworkObject } from '../core';
2
+ import { IBuilder } from 'builder-pattern';
3
+ import { DepartmentState, HospitalState } from './alova/globals';
4
+ import { UserState } from '../user';
5
+ export declare abstract class Hospital extends NetworkObject {
6
+ static builder(): IBuilder<Hospital>;
7
+ static default(): typeof Hospital;
8
+ id: string;
9
+ name: string;
10
+ level: string;
11
+ address: string;
12
+ note: string;
13
+ admins: UserState[];
14
+ members: DepartmentState[];
15
+ createdTimestamp: string;
16
+ updatedTimestamp: string;
17
+ of(json: HospitalState): Promise<this>;
18
+ state(): HospitalState;
19
+ abstract get(): Promise<this>;
20
+ abstract post(): Promise<this>;
21
+ abstract put(): Promise<this>;
22
+ abstract delete(): Promise<this>;
23
+ static query(page: number, pageSize: number, sort: string, hospitalStateId?: string, hospitalStateName?: string, hospitalStateLevel?: string, hospitalStateAddress?: string, hospitalStateNote?: string, startTime?: string, endTime?: string): Promise<Page<Hospital>>;
24
+ }
@@ -0,0 +1,51 @@
1
+ import "../core/index.js";
2
+ import { Builder as p } from "../../../node_modules/builder-pattern/dist/index.js";
3
+ import { Department as f } from "./department.js";
4
+ import "../user/index.js";
5
+ import { NetworkObject as u } from "../core/core.js";
6
+ import { User as o } from "../user/user.js";
7
+ class g extends u {
8
+ static builder() {
9
+ return p(this._default);
10
+ }
11
+ static default() {
12
+ return this._default;
13
+ }
14
+ id = "";
15
+ name = "";
16
+ level = "";
17
+ address = "";
18
+ note = "";
19
+ admins = [];
20
+ members = [];
21
+ createdTimestamp = "";
22
+ updatedTimestamp = "";
23
+ async of(e) {
24
+ return e.id != null && (this.id = e.id), e.name != null && (this.name = e.name), e.level != null && (this.level = e.level), e.address != null && (this.address = e.address), e.note != null && (this.note = e.note), e.admins != null && (this.admins = await Promise.all(
25
+ e.admins.map((i) => o.builder().build().of(i))
26
+ )), e.members != null && (this.members = await Promise.all(
27
+ e.members.map((i) => f.builder().build().of(i))
28
+ )), e.createdTimestamp != null && (this.createdTimestamp = e.createdTimestamp), e.updatedTimestamp != null && (this.updatedTimestamp = e.updatedTimestamp), this;
29
+ }
30
+ state() {
31
+ const e = {};
32
+ return this.id && (e.id = this.id), this.name && (e.name = this.name), this.level && (e.level = this.level), this.address && (e.address = this.address), this.note && (e.note = this.note), this.admins.length > 0 && (e.admins = this.admins), this.members.length > 0 && (e.members = this.members), this.createdTimestamp && (e.createdTimestamp = this.createdTimestamp), this.updatedTimestamp && (e.updatedTimestamp = this.updatedTimestamp), e;
33
+ }
34
+ static query(e, i, t, m, a, s, d, r, h, l) {
35
+ return this.default().query(
36
+ e,
37
+ i,
38
+ t,
39
+ m,
40
+ a,
41
+ s,
42
+ d,
43
+ r,
44
+ h,
45
+ l
46
+ );
47
+ }
48
+ }
49
+ export {
50
+ g as Hospital
51
+ };
@@ -0,0 +1,4 @@
1
+ export * from './alova';
2
+ export * from './division';
3
+ export * from './department';
4
+ export * from './hospital';
@@ -0,0 +1,18 @@
1
+ import { $$userConfigMap as r, alovaInstance as e, alovaInstance as t } from "./alova/index.js";
2
+ import { Division as p } from "./division.js";
3
+ import { Department as i } from "./department.js";
4
+ import { Hospital as f } from "./hospital.js";
5
+ import { AlovaDivision as v } from "./alova/implement/division.js";
6
+ import { AlovaDepartment as A } from "./alova/implement/department.js";
7
+ import { AlovaHospital as c } from "./alova/implement/hospital.js";
8
+ export {
9
+ r as $$userConfigMap,
10
+ A as AlovaDepartment,
11
+ v as AlovaDivision,
12
+ c as AlovaHospital,
13
+ i as Department,
14
+ p as Division,
15
+ f as Hospital,
16
+ e as alovaInstance,
17
+ t as managerAlovaInstance
18
+ };
@@ -1,6 +1,6 @@
1
1
  import { MetaType } from '../../../patient/meta';
2
2
  import { Metric } from '../../metric';
3
- import { AgeDistribute, DateDistribute, GenderDistribute } from '../../../patient/alova/globals.d.ts';
3
+ import { AgeDistribute, DateDistribute, GenderDistribute } from '../../../patient/alova/globals';
4
4
  export declare class AlovaMetric extends Metric {
5
5
  static getPatientTodayCount(): Promise<number>;
6
6
  static getPatientTotalCount(): Promise<number>;
@@ -1,7 +1,7 @@
1
1
  import { MetaType } from '../patient/meta';
2
2
  import { IBuilder } from 'builder-pattern';
3
- import { DateDistribute } from '../patient/alova/globals.d.ts';
4
- import { AgeDistribute, GenderDistribute } from '../check/alova/globals.d.ts';
3
+ import { DateDistribute } from '../patient/alova/globals';
4
+ import { AgeDistribute, GenderDistribute } from '../check/alova/globals';
5
5
  export declare class Metric {
6
6
  static _default: typeof Metric;
7
7
  static builder(): IBuilder<unknown>;
@@ -3,4 +3,5 @@ export declare const $$userConfigMap: {};
3
3
  declare const Apis: oauthApi;
4
4
  export default Apis;
5
5
  export * from './implement';
6
- export type * from './globals.d.ts';
6
+ export type * from './globals';
7
+ export { alovaInstance as oauthAlovaInstance };
@@ -1,18 +1,19 @@
1
1
  import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
2
2
  import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
3
- import { withConfigType as t, createApis as r, mountApis as p } from "./createApis.js";
4
- import { responded as i } from "../../config/alova/index.js";
5
- import { getServiceEndpoint as a, ServiceType as m } from "../../config/index.js";
3
+ import { withConfigType as t, createApis as r, mountApis as a } from "./createApis.js";
4
+ import { responded as p } from "../../config/alova/index.js";
5
+ import { getServiceEndpoint as i, ServiceType as n } from "../../config/index.js";
6
6
  import "./implement/index.js";
7
- const n = e({
8
- baseURL: a(m.OAuth),
7
+ const s = e({
8
+ baseURL: i(n.OAuth),
9
9
  requestAdapter: o(),
10
10
  cacheFor: null,
11
- responded: i
12
- }), s = t({}), c = r(n, s);
13
- p(c);
11
+ responded: p
12
+ }), c = t({}), m = r(s, c);
13
+ a(m);
14
14
  export {
15
- s as $$userConfigMap,
16
- n as alovaInstance,
17
- c as default
15
+ c as $$userConfigMap,
16
+ s as alovaInstance,
17
+ m as default,
18
+ s as oauthAlovaInstance
18
19
  };
@@ -1,9 +1,10 @@
1
1
  import { OAuth as t } from "./oauth.js";
2
- import { $$userConfigMap as e, alovaInstance as f } from "./alova/index.js";
3
- import { AlovaOAuth as m } from "./alova/implement/oauth.js";
2
+ import { $$userConfigMap as n, alovaInstance as r, alovaInstance as s } from "./alova/index.js";
3
+ import { AlovaOAuth as l } from "./alova/implement/oauth.js";
4
4
  export {
5
- e as $$userConfigMap,
6
- m as AlovaOAuth,
5
+ n as $$userConfigMap,
6
+ l as AlovaOAuth,
7
7
  t as OAuth,
8
- f as alovaInstance
8
+ r as alovaInstance,
9
+ s as oauthAlovaInstance
9
10
  };
@@ -3,4 +3,5 @@ export declare const $$userConfigMap: {};
3
3
  declare const Apis: outpatientApi;
4
4
  export default Apis;
5
5
  export * from './implement';
6
- export type * from './globals.d.ts';
6
+ export type * from './globals';
7
+ export { alovaInstance as outpatientAlovaInstance };