web-core-tcm 0.0.65 → 0.0.67

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.
@@ -4,4 +4,12 @@ export declare class AlovaDepartment extends Department {
4
4
  put(): Promise<this>;
5
5
  post(): Promise<this>;
6
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
+ }>;
7
15
  }
@@ -1,13 +1,13 @@
1
- import { Department as a } from "../../department.js";
2
- class t extends a {
1
+ import { Department as f } from "../../department.js";
2
+ class e extends f {
3
3
  async get() {
4
4
  return this.of(
5
5
  await managerApi.departmentStateRestful.getDepartmentState({
6
6
  pathParams: {
7
7
  id: this.id
8
8
  },
9
- async transform(e) {
10
- return new t().of(e);
9
+ async transform(a) {
10
+ return new e().of(a);
11
11
  }
12
12
  }).send()
13
13
  );
@@ -38,7 +38,34 @@ class t extends a {
38
38
  }).send(!0)
39
39
  );
40
40
  }
41
+ static query(a, n, s, r, i, p, m, d, u) {
42
+ return managerApi.departmentStateRestful.getDepartmentStates({
43
+ params: {
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
+ }
41
68
  }
42
69
  export {
43
- t as AlovaDepartment
70
+ e as AlovaDepartment
44
71
  };
@@ -4,4 +4,12 @@ export declare class AlovaDivision extends Division {
4
4
  put(): Promise<this>;
5
5
  post(): Promise<this>;
6
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
+ }>;
7
15
  }
@@ -1,13 +1,13 @@
1
- import { Division as a } from "../../division.js";
2
- class t extends a {
1
+ import { Division as f } from "../../division.js";
2
+ class i extends f {
3
3
  async get() {
4
4
  return this.of(
5
5
  await managerApi.divisionStateRestful.getDivisionState({
6
6
  pathParams: {
7
7
  id: this.id
8
8
  },
9
- async transform(i) {
10
- return new t().of(i);
9
+ async transform(a) {
10
+ return new i().of(a);
11
11
  }
12
12
  }).send()
13
13
  );
@@ -38,7 +38,34 @@ class t extends a {
38
38
  }).send(!0)
39
39
  );
40
40
  }
41
+ static query(a, e, s, n, r, o, d, u, p) {
42
+ return managerApi.divisionStateRestful.getDivisionStates({
43
+ params: {
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
+ }
41
68
  }
42
69
  export {
43
- t as AlovaDivision
70
+ i as AlovaDivision
44
71
  };
@@ -4,4 +4,12 @@ export declare class AlovaHospital extends Hospital {
4
4
  put(): Promise<this>;
5
5
  post(): Promise<this>;
6
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
+ }>;
7
15
  }
@@ -1,5 +1,5 @@
1
- import { Hospital as e } from "../../hospital.js";
2
- class t extends e {
1
+ import { Hospital as m } from "../../hospital.js";
2
+ class e extends m {
3
3
  async get() {
4
4
  return this.of(
5
5
  await managerApi.hospitalStateRestful.getHospitalState({
@@ -7,7 +7,7 @@ class t extends e {
7
7
  id: this.id
8
8
  },
9
9
  async transform(a) {
10
- return new t().of(a);
10
+ return new e().of(a);
11
11
  }
12
12
  }).send()
13
13
  );
@@ -38,7 +38,35 @@ class t extends e {
38
38
  }).send(!0)
39
39
  );
40
40
  }
41
+ static query(a, s, i, n, r, o, p, l, u, d) {
42
+ return managerApi.hospitalStateRestful.getHospitalStates({
43
+ params: {
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
+ }
41
69
  }
42
70
  export {
43
- t as AlovaHospital
71
+ e as AlovaHospital
44
72
  };
@@ -19,12 +19,5 @@ export declare abstract class Department extends NetworkObject {
19
19
  abstract post(): Promise<this>;
20
20
  abstract put(): Promise<this>;
21
21
  abstract delete(): Promise<this>;
22
- static query(params: {
23
- departmentStateId?: string;
24
- hospitalStateId?: string;
25
- departmentStateName?: string;
26
- departmentStateNote?: string;
27
- startTime?: string;
28
- endTime?: string;
29
- }): Promise<Page<DepartmentState>>;
22
+ static query(page: number, pageSize: number, sort: string, departmentStateId?: string, hospitalStateId?: string, departmentStateName?: string, departmentStateNote?: string, startTime?: string, endTime?: string): Promise<Page<Department>>;
30
23
  }
@@ -1,12 +1,12 @@
1
1
  import "../core/index.js";
2
- import { Builder as e } from "../../../node_modules/builder-pattern/dist/index.js";
2
+ import { Builder as h } from "../../../node_modules/builder-pattern/dist/index.js";
3
3
  import "../doctor/index.js";
4
- import { Division as a } from "./division.js";
5
- import { NetworkObject as m } from "../core/core.js";
6
- import { Doctor as d } from "../doctor/doctor.js";
7
- class u extends m {
4
+ import { Division as o } from "./division.js";
5
+ import { NetworkObject as f } from "../core/core.js";
6
+ import { Doctor as l } from "../doctor/doctor.js";
7
+ class S extends f {
8
8
  static builder() {
9
- return e(this._default);
9
+ return h(this._default);
10
10
  }
11
11
  static default() {
12
12
  return this._default;
@@ -20,16 +20,30 @@ class u extends m {
20
20
  createdTimestamp = "";
21
21
  updatedTimestamp = "";
22
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(t.admins.map((i) => d.builder().build().of(i)))), t.members != null && (this.members = await Promise.all(t.members.map((i) => a.builder().build().of(i)))), t.createdTimestamp != null && (this.createdTimestamp = t.createdTimestamp), t.updatedTimestamp != null && (this.updatedTimestamp = t.updatedTimestamp), this;
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) => o.builder().build().of(i))
27
+ )), t.createdTimestamp != null && (this.createdTimestamp = t.createdTimestamp), t.updatedTimestamp != null && (this.updatedTimestamp = t.updatedTimestamp), this;
24
28
  }
25
29
  state() {
26
30
  const t = {};
27
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;
28
32
  }
29
- static query(t) {
30
- return this.default().query(t);
33
+ static query(t, i, e, a, m, d, s, r, p) {
34
+ return this.default().query(
35
+ t,
36
+ i,
37
+ e,
38
+ a,
39
+ m,
40
+ d,
41
+ s,
42
+ r,
43
+ p
44
+ );
31
45
  }
32
46
  }
33
47
  export {
34
- u as Department
48
+ S as Department
35
49
  };
@@ -19,12 +19,5 @@ export declare abstract class Division extends NetworkObject {
19
19
  abstract post(): Promise<this>;
20
20
  abstract put(): Promise<this>;
21
21
  abstract delete(): Promise<this>;
22
- static query(params: {
23
- divisionStateId?: string;
24
- departmentStateId?: string;
25
- divisionStateName?: string;
26
- divisionStateNote?: string;
27
- startTime?: string;
28
- endTime?: string;
29
- }): Promise<Page<DivisionState>>;
22
+ static query(page: number, pageSize: number, sort: string, divisionStateId?: string, departmentStateId?: string, divisionStateName?: string, divisionStateNote?: string, startTime?: string, endTime?: string): Promise<Page<Division>>;
30
23
  }
@@ -1,11 +1,11 @@
1
1
  import "../core/index.js";
2
- import { Builder as a } from "../../../node_modules/builder-pattern/dist/index.js";
2
+ import { Builder as f } from "../../../node_modules/builder-pattern/dist/index.js";
3
3
  import "../doctor/index.js";
4
- import { NetworkObject as m } from "../core/core.js";
4
+ import { NetworkObject as n } from "../core/core.js";
5
5
  import { Doctor as i } from "../doctor/doctor.js";
6
- class n extends m {
6
+ class v extends n {
7
7
  static builder() {
8
- return a(this._default);
8
+ return f(this._default);
9
9
  }
10
10
  static default() {
11
11
  return this._default;
@@ -25,10 +25,20 @@ class n extends m {
25
25
  const t = {};
26
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
27
  }
28
- static query(t) {
29
- return this.default().query(t);
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
+ );
30
40
  }
31
41
  }
32
42
  export {
33
- n as Division
43
+ v as Division
34
44
  };
@@ -20,13 +20,5 @@ export declare abstract class Hospital extends NetworkObject {
20
20
  abstract post(): Promise<this>;
21
21
  abstract put(): Promise<this>;
22
22
  abstract delete(): Promise<this>;
23
- static query(params: {
24
- hospitalStateId?: string;
25
- hospitalStateName?: string;
26
- hospitalStateLevel?: string;
27
- hospitalStateAddress?: string;
28
- hospitalStateNote?: string;
29
- startTime?: string;
30
- endTime?: string;
31
- }): Promise<Page<HospitalState>>;
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>>;
32
24
  }
@@ -1,12 +1,12 @@
1
1
  import "../core/index.js";
2
- import { Builder as t } from "../../../node_modules/builder-pattern/dist/index.js";
2
+ import { Builder as p } from "../../../node_modules/builder-pattern/dist/index.js";
3
3
  import "../doctor/index.js";
4
- import { Department as m } from "./department.js";
5
- import { NetworkObject as a } from "../core/core.js";
6
- import { Doctor as d } from "../doctor/doctor.js";
7
- class o extends a {
4
+ import { Department as f } from "./department.js";
5
+ import { NetworkObject as u } from "../core/core.js";
6
+ import { Doctor as o } from "../doctor/doctor.js";
7
+ class g extends u {
8
8
  static builder() {
9
- return t(this._default);
9
+ return p(this._default);
10
10
  }
11
11
  static default() {
12
12
  return this._default;
@@ -21,16 +21,31 @@ class o extends a {
21
21
  createdTimestamp = "";
22
22
  updatedTimestamp = "";
23
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(e.admins.map((i) => d.builder().build().of(i)))), e.members != null && (this.members = await Promise.all(e.members.map((i) => m.builder().build().of(i)))), e.createdTimestamp != null && (this.createdTimestamp = e.createdTimestamp), e.updatedTimestamp != null && (this.updatedTimestamp = e.updatedTimestamp), this;
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;
25
29
  }
26
30
  state() {
27
31
  const e = {};
28
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;
29
33
  }
30
- static query(e) {
31
- return this.default().query(e);
34
+ static query(e, i, t, m, a, d, s, r, h, l) {
35
+ return this.default().query(
36
+ e,
37
+ i,
38
+ t,
39
+ m,
40
+ a,
41
+ d,
42
+ s,
43
+ r,
44
+ h,
45
+ l
46
+ );
32
47
  }
33
48
  }
34
49
  export {
35
- o as Hospital
50
+ g as Hospital
36
51
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-core-tcm",
3
- "version": "0.0.65",
3
+ "version": "0.0.67",
4
4
  "description": "Core",
5
5
  "productName": "Core",
6
6
  "author": "wywywywywywywywywy <qa123456_0714@qq.com>",
@@ -133,6 +133,11 @@
133
133
  "import": "./dist/src/api/core/index.js",
134
134
  "require": "./dist/src/api/core/index.cjs"
135
135
  },
136
+ "./api/manager": {
137
+ "types": "./dist/src/api/manager/index.d.ts",
138
+ "import": "./dist/src/api/manager/index.js",
139
+ "require": "./dist/src/api/manager/index.cjs"
140
+ },
136
141
  "./ui/tcm": {
137
142
  "types": "./dist/src/components/tcm/index.d.ts",
138
143
  "import": "./dist/src/components/tcm/index.js",