web-core-tcm 0.0.63 → 0.0.64

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 (71) hide show
  1. package/dist/src/api/authorization/alova/createApis.js +1 -7
  2. package/dist/src/api/authorization/alova/globals.d.ts +331 -250
  3. package/dist/src/api/authorization/alova/index.d.ts +1 -1
  4. package/dist/src/api/authorization/alova/index.js +5 -6
  5. package/dist/src/api/check/alova/createApis.js +1 -7
  6. package/dist/src/api/check/alova/globals.d.ts +1227 -1126
  7. package/dist/src/api/check/alova/index.d.ts +1 -1
  8. package/dist/src/api/check/alova/index.js +6 -7
  9. package/dist/src/api/config/index.d.ts +1 -0
  10. package/dist/src/api/config/index.js +3 -1
  11. package/dist/src/api/doctor/alova/createApis.js +1 -7
  12. package/dist/src/api/doctor/alova/globals.d.ts +510 -419
  13. package/dist/src/api/doctor/alova/index.d.ts +1 -1
  14. package/dist/src/api/doctor/alova/index.js +6 -7
  15. package/dist/src/api/index.d.ts +1 -0
  16. package/dist/src/api/index.js +2 -0
  17. package/dist/src/api/manager/alova/apiDefinitions.d.ts +62 -0
  18. package/dist/src/api/manager/alova/apiDefinitions.js +50 -0
  19. package/dist/src/api/manager/alova/createApis.d.ts +10 -0
  20. package/dist/src/api/manager/alova/createApis.js +49 -0
  21. package/dist/src/api/manager/alova/globals.d.ts +4890 -0
  22. package/dist/src/api/manager/alova/implement/department.d.ts +7 -0
  23. package/dist/src/api/manager/alova/implement/department.js +44 -0
  24. package/dist/src/api/manager/alova/implement/division.d.ts +7 -0
  25. package/dist/src/api/manager/alova/implement/division.js +44 -0
  26. package/dist/src/api/manager/alova/implement/hospital.d.ts +7 -0
  27. package/dist/src/api/manager/alova/implement/hospital.js +44 -0
  28. package/dist/src/api/manager/alova/implement/index.d.ts +3 -0
  29. package/dist/src/api/manager/alova/implement/index.js +8 -0
  30. package/dist/src/api/manager/alova/index.d.ts +6 -0
  31. package/dist/src/api/manager/alova/index.js +19 -0
  32. package/dist/src/api/manager/department.d.ts +30 -0
  33. package/dist/src/api/manager/department.js +35 -0
  34. package/dist/src/api/manager/division.d.ts +30 -0
  35. package/dist/src/api/manager/division.js +34 -0
  36. package/dist/src/api/manager/hospital.d.ts +32 -0
  37. package/dist/src/api/manager/hospital.js +36 -0
  38. package/dist/src/api/manager/index.d.ts +4 -0
  39. package/dist/src/api/manager/index.js +17 -0
  40. package/dist/src/api/oauth/alova/createApis.js +1 -7
  41. package/dist/src/api/oauth/alova/globals.d.ts +403 -312
  42. package/dist/src/api/oauth/alova/index.d.ts +1 -1
  43. package/dist/src/api/oauth/alova/index.js +0 -1
  44. package/dist/src/api/outpatient/alova/createApis.js +1 -7
  45. package/dist/src/api/outpatient/alova/globals.d.ts +634 -543
  46. package/dist/src/api/outpatient/alova/index.d.ts +1 -1
  47. package/dist/src/api/outpatient/alova/index.js +5 -6
  48. package/dist/src/api/patient/alova/createApis.js +1 -7
  49. package/dist/src/api/patient/alova/globals.d.ts +1627 -1480
  50. package/dist/src/api/patient/alova/index.d.ts +1 -1
  51. package/dist/src/api/patient/alova/index.js +5 -6
  52. package/dist/src/api/prescription/alova/apiDefinitions.d.ts +1 -0
  53. package/dist/src/api/prescription/alova/apiDefinitions.js +1 -0
  54. package/dist/src/api/prescription/alova/createApis.js +1 -7
  55. package/dist/src/api/prescription/alova/globals.d.ts +959 -812
  56. package/dist/src/api/prescription/alova/index.d.ts +1 -1
  57. package/dist/src/api/prescription/alova/index.js +4 -5
  58. package/dist/src/api/scientist/alova/createApis.js +1 -7
  59. package/dist/src/api/scientist/alova/globals.d.ts +406 -315
  60. package/dist/src/api/scientist/alova/index.d.ts +1 -1
  61. package/dist/src/api/scientist/alova/index.js +4 -5
  62. package/dist/src/index.js +42 -40
  63. package/package.json +1 -1
  64. package/dist/src/api/authorization/alova/globals.js +0 -1
  65. package/dist/src/api/check/alova/globals.js +0 -1
  66. package/dist/src/api/doctor/alova/globals.js +0 -1
  67. package/dist/src/api/oauth/alova/globals.js +0 -1
  68. package/dist/src/api/outpatient/alova/globals.js +0 -1
  69. package/dist/src/api/patient/alova/globals.js +0 -1
  70. package/dist/src/api/prescription/alova/globals.js +0 -1
  71. package/dist/src/api/scientist/alova/globals.js +0 -1
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,44 @@
1
+ import { Department as a } from "../../department.js";
2
+ class t extends a {
3
+ async get() {
4
+ return this.of(
5
+ await managerApi.departmentStateRestful.getDepartmentState({
6
+ pathParams: {
7
+ id: this.id
8
+ },
9
+ async transform(e) {
10
+ return new t().of(e);
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
+ }
42
+ export {
43
+ t as AlovaDepartment
44
+ };
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,44 @@
1
+ import { Division as a } from "../../division.js";
2
+ class t extends a {
3
+ async get() {
4
+ return this.of(
5
+ await managerApi.divisionStateRestful.getDivisionState({
6
+ pathParams: {
7
+ id: this.id
8
+ },
9
+ async transform(i) {
10
+ return new t().of(i);
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
+ }
42
+ export {
43
+ t as AlovaDivision
44
+ };
@@ -0,0 +1,7 @@
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
+ }
@@ -0,0 +1,44 @@
1
+ import { Hospital as e } from "../../hospital.js";
2
+ class t extends e {
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 t().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
+ }
42
+ export {
43
+ t as AlovaHospital
44
+ };
@@ -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,6 @@
1
+ export declare const alovaInstance: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, any, any, any>>;
2
+ export declare const $$userConfigMap: {};
3
+ declare const Apis: managerApi;
4
+ export default Apis;
5
+ export * from './implement';
6
+ export type * from './globals';
@@ -0,0 +1,19 @@
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 p, mountApis as i } from "./createApis.js";
4
+ import { getServiceEndpoint as a, ServiceType as n } 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: a(n.Manager),
9
+ requestAdapter: o(),
10
+ beforeRequest: s(() => {
11
+ }),
12
+ responded: (e) => e.json()
13
+ }), c = t({}), f = p(m, c);
14
+ i(f);
15
+ export {
16
+ c as $$userConfigMap,
17
+ m as alovaInstance,
18
+ f as default
19
+ };
@@ -0,0 +1,30 @@
1
+ import { Page, NetworkObject } from '../core';
2
+ import { IBuilder } from 'builder-pattern';
3
+ import { DoctorState } from '../doctor';
4
+ import { DepartmentState, DivisionState } from './alova/globals';
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: DoctorState[];
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(params: {
23
+ departmentStateId?: string;
24
+ hospitalStateId?: string;
25
+ departmentStateName?: string;
26
+ departmentStateNote?: string;
27
+ startTime?: string;
28
+ endTime?: string;
29
+ }): Promise<Page<DepartmentState>>;
30
+ }
@@ -0,0 +1,35 @@
1
+ import "../core/index.js";
2
+ import { Builder as e } from "../../../node_modules/builder-pattern/dist/index.js";
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 {
8
+ static builder() {
9
+ return e(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(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;
24
+ }
25
+ state() {
26
+ const t = {};
27
+ 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
+ }
29
+ static query(t) {
30
+ return this.default().query(t);
31
+ }
32
+ }
33
+ export {
34
+ u as Department
35
+ };
@@ -0,0 +1,30 @@
1
+ import { Page, NetworkObject } from '../core';
2
+ import { IBuilder } from 'builder-pattern';
3
+ import { DoctorState } from '../doctor';
4
+ import { DivisionState } from './alova/globals';
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: DoctorState[];
13
+ members: DoctorState[];
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(params: {
23
+ divisionStateId?: string;
24
+ departmentStateId?: string;
25
+ divisionStateName?: string;
26
+ divisionStateNote?: string;
27
+ startTime?: string;
28
+ endTime?: string;
29
+ }): Promise<Page<DivisionState>>;
30
+ }
@@ -0,0 +1,34 @@
1
+ import "../core/index.js";
2
+ import { Builder as a } from "../../../node_modules/builder-pattern/dist/index.js";
3
+ import "../doctor/index.js";
4
+ import { NetworkObject as m } from "../core/core.js";
5
+ import { Doctor as i } from "../doctor/doctor.js";
6
+ class n extends m {
7
+ static builder() {
8
+ return a(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) {
29
+ return this.default().query(t);
30
+ }
31
+ }
32
+ export {
33
+ n as Division
34
+ };
@@ -0,0 +1,32 @@
1
+ import { Page, NetworkObject } from '../core';
2
+ import { IBuilder } from 'builder-pattern';
3
+ import { DoctorState } from '../doctor';
4
+ import { DepartmentState, HospitalState } from './alova/globals';
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: DoctorState[];
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(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>>;
32
+ }
@@ -0,0 +1,36 @@
1
+ import "../core/index.js";
2
+ import { Builder as t } from "../../../node_modules/builder-pattern/dist/index.js";
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 {
8
+ static builder() {
9
+ return t(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(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;
25
+ }
26
+ state() {
27
+ const e = {};
28
+ 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
+ }
30
+ static query(e) {
31
+ return this.default().query(e);
32
+ }
33
+ }
34
+ export {
35
+ o as Hospital
36
+ };
@@ -0,0 +1,4 @@
1
+ export * from './alova';
2
+ export * from './division';
3
+ export * from './department';
4
+ export * from './hospital';
@@ -0,0 +1,17 @@
1
+ import { $$userConfigMap as t, alovaInstance as e } from "./alova/index.js";
2
+ import { Division as a } from "./division.js";
3
+ import { Department as m } from "./department.js";
4
+ import { Hospital as n } from "./hospital.js";
5
+ import { AlovaDivision as l } from "./alova/implement/division.js";
6
+ import { AlovaDepartment as v } from "./alova/implement/department.js";
7
+ import { AlovaHospital as A } from "./alova/implement/hospital.js";
8
+ export {
9
+ t as $$userConfigMap,
10
+ v as AlovaDepartment,
11
+ l as AlovaDivision,
12
+ A as AlovaHospital,
13
+ m as Department,
14
+ a as Division,
15
+ n as Hospital,
16
+ e as alovaInstance
17
+ };
@@ -31,13 +31,7 @@ const l = /* @__PURE__ */ Object.create(null), d = (e, a, p) => {
31
31
  n.append(r, t[r]), t[r] instanceof Blob && (c = !0);
32
32
  t = c ? n : t;
33
33
  }
34
- return new g(
35
- P.toUpperCase(),
36
- a,
37
- A,
38
- i,
39
- t
40
- );
34
+ return new g(P.toUpperCase(), a, A, i, t);
41
35
  }
42
36
  });
43
37
  return l[o] = s, s;