web-core-tcm 0.0.63 → 0.0.65
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/src/api/authorization/alova/createApis.js +1 -7
- package/dist/src/api/authorization/alova/globals.d.ts +331 -250
- package/dist/src/api/authorization/alova/index.d.ts +2 -1
- package/dist/src/api/authorization/alova/index.js +13 -13
- package/dist/src/api/authorization/index.js +4 -3
- package/dist/src/api/check/alova/createApis.js +1 -7
- package/dist/src/api/check/alova/globals.d.ts +1227 -1126
- package/dist/src/api/check/alova/index.d.ts +2 -1
- package/dist/src/api/check/alova/index.js +10 -10
- package/dist/src/api/check/index.js +10 -9
- package/dist/src/api/config/index.d.ts +1 -0
- package/dist/src/api/config/index.js +15 -9
- package/dist/src/api/doctor/alova/createApis.js +1 -7
- package/dist/src/api/doctor/alova/globals.d.ts +510 -419
- package/dist/src/api/doctor/alova/index.d.ts +2 -1
- package/dist/src/api/doctor/alova/index.js +13 -13
- package/dist/src/api/doctor/index.js +7 -6
- package/dist/src/api/index.d.ts +1 -0
- package/dist/src/api/index.js +2 -0
- package/dist/src/api/manager/alova/apiDefinitions.d.ts +62 -0
- package/dist/src/api/manager/alova/apiDefinitions.js +50 -0
- package/dist/src/api/manager/alova/createApis.d.ts +10 -0
- package/dist/src/api/manager/alova/createApis.js +49 -0
- package/dist/src/api/manager/alova/globals.d.ts +4890 -0
- package/dist/src/api/manager/alova/implement/department.d.ts +7 -0
- package/dist/src/api/manager/alova/implement/department.js +44 -0
- package/dist/src/api/manager/alova/implement/division.d.ts +7 -0
- package/dist/src/api/manager/alova/implement/division.js +44 -0
- package/dist/src/api/manager/alova/implement/hospital.d.ts +7 -0
- package/dist/src/api/manager/alova/implement/hospital.js +44 -0
- package/dist/src/api/manager/alova/implement/index.d.ts +3 -0
- package/dist/src/api/manager/alova/implement/index.js +8 -0
- package/dist/src/api/manager/alova/index.d.ts +7 -0
- package/dist/src/api/manager/alova/index.js +20 -0
- package/dist/src/api/manager/department.d.ts +30 -0
- package/dist/src/api/manager/department.js +35 -0
- package/dist/src/api/manager/division.d.ts +30 -0
- package/dist/src/api/manager/division.js +34 -0
- package/dist/src/api/manager/hospital.d.ts +32 -0
- package/dist/src/api/manager/hospital.js +36 -0
- package/dist/src/api/manager/index.d.ts +4 -0
- package/dist/src/api/manager/index.js +18 -0
- package/dist/src/api/oauth/alova/createApis.js +1 -7
- package/dist/src/api/oauth/alova/globals.d.ts +403 -312
- package/dist/src/api/oauth/alova/index.d.ts +2 -1
- package/dist/src/api/oauth/alova/index.js +12 -12
- package/dist/src/api/oauth/index.js +6 -5
- package/dist/src/api/outpatient/alova/createApis.js +1 -7
- package/dist/src/api/outpatient/alova/globals.d.ts +634 -543
- package/dist/src/api/outpatient/alova/index.d.ts +2 -1
- package/dist/src/api/outpatient/alova/index.js +13 -13
- package/dist/src/api/outpatient/index.js +10 -9
- package/dist/src/api/patient/alova/createApis.js +1 -7
- package/dist/src/api/patient/alova/globals.d.ts +1627 -1480
- package/dist/src/api/patient/alova/index.d.ts +2 -1
- package/dist/src/api/patient/alova/index.js +13 -13
- package/dist/src/api/patient/index.js +27 -26
- package/dist/src/api/prescription/alova/apiDefinitions.d.ts +1 -0
- package/dist/src/api/prescription/alova/apiDefinitions.js +1 -0
- package/dist/src/api/prescription/alova/createApis.js +1 -7
- package/dist/src/api/prescription/alova/globals.d.ts +959 -812
- package/dist/src/api/prescription/alova/index.d.ts +2 -1
- package/dist/src/api/prescription/alova/index.js +6 -6
- package/dist/src/api/prescription/index.js +12 -11
- package/dist/src/api/scientist/alova/createApis.js +1 -7
- package/dist/src/api/scientist/alova/globals.d.ts +406 -315
- package/dist/src/api/scientist/alova/index.d.ts +2 -1
- package/dist/src/api/scientist/alova/index.js +10 -10
- package/dist/src/api/scientist/index.js +8 -7
- package/dist/src/index.js +42 -40
- package/package.json +1 -1
- package/dist/src/api/authorization/alova/globals.js +0 -1
- package/dist/src/api/check/alova/globals.js +0 -1
- package/dist/src/api/doctor/alova/globals.js +0 -1
- package/dist/src/api/oauth/alova/globals.js +0 -1
- package/dist/src/api/outpatient/alova/globals.js +0 -1
- package/dist/src/api/patient/alova/globals.js +0 -1
- package/dist/src/api/prescription/alova/globals.js +0 -1
- package/dist/src/api/scientist/alova/globals.js +0 -1
|
@@ -1,6 +1,7 @@
|
|
|
1
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 checkAlovaInstance };
|
|
2
3
|
export declare const $$userConfigMap: {};
|
|
3
4
|
declare const Apis: checkApi;
|
|
4
5
|
export default Apis;
|
|
5
6
|
export * from './implement';
|
|
6
|
-
export * from './globals';
|
|
7
|
+
export type * from './globals';
|
|
@@ -1,20 +1,20 @@
|
|
|
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
|
|
4
|
-
import { responded as
|
|
5
|
-
import { getServiceEndpoint as
|
|
3
|
+
import { withConfigType as t, createApis as r, mountApis as a } from "./createApis.js";
|
|
4
|
+
import { responded as p, onAuthRequired as i } from "../../config/alova/index.js";
|
|
5
|
+
import { getServiceEndpoint as c, ServiceType as n } from "../../config/index.js";
|
|
6
6
|
import "./implement/index.js";
|
|
7
|
-
import "./globals.js";
|
|
8
7
|
const s = e({
|
|
9
|
-
baseURL:
|
|
8
|
+
baseURL: c(n.Check),
|
|
10
9
|
requestAdapter: o(),
|
|
11
|
-
beforeRequest:
|
|
10
|
+
beforeRequest: i(),
|
|
12
11
|
cacheFor: null,
|
|
13
|
-
responded:
|
|
14
|
-
}),
|
|
15
|
-
|
|
12
|
+
responded: p
|
|
13
|
+
}), m = t({}), f = r(s, m);
|
|
14
|
+
a(f);
|
|
16
15
|
export {
|
|
17
|
-
|
|
16
|
+
m as $$userConfigMap,
|
|
18
17
|
s as alovaInstance,
|
|
18
|
+
s as checkAlovaInstance,
|
|
19
19
|
f as default
|
|
20
20
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Check as
|
|
2
|
-
import { $$userConfigMap as
|
|
3
|
-
import { AlovaCheck as
|
|
1
|
+
import { Check as o, Payment as n } from "./check.js";
|
|
2
|
+
import { $$userConfigMap as c, alovaInstance as r, alovaInstance as l } from "./alova/index.js";
|
|
3
|
+
import { AlovaCheck as s, AlovaPayment as v } from "./alova/implement/check.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
c as $$userConfigMap,
|
|
6
|
+
s as AlovaCheck,
|
|
7
|
+
v as AlovaPayment,
|
|
8
|
+
o as Check,
|
|
9
|
+
n as Payment,
|
|
10
|
+
r as alovaInstance,
|
|
11
|
+
l as checkAlovaInstance
|
|
11
12
|
};
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { onAuthRequired as
|
|
3
|
-
var e = /* @__PURE__ */ ((t) => (t.OAuth = "OAuth", t.OAuthRedirect = "OAuthRedirect", t.Doctor = "Doctor", t.Patient = "Patient", t.Scientist = "Scientist", t.Outpatient = "Outpatient", t.Check = "Check", t.Prescription = "Prescription", t.Authorization = "Authorization", t.InspectionsAlgorithm = "InspectionsAlgorithm", t.PulsationsAlgorithm = "PulsationsAlgorithm", t.InquiriesAlgorithm = "InquiriesAlgorithm", t.LisemsAlgorithm = "LisemsAlgorithm", t.ComprehensiveAlgorithm = "ComprehensiveAlgorithm", t))(e || {}), o = /* @__PURE__ */ ((t) => (t.Dev = "Dev", t.Prod = "Prod", t.Local = "Local", t))(o || {});
|
|
4
|
-
function
|
|
5
|
-
if (
|
|
1
|
+
import s from "../../../node_modules/punycode/punycode.es6.js";
|
|
2
|
+
import { onAuthRequired as c, responded as u } from "./alova/index.js";
|
|
3
|
+
var e = /* @__PURE__ */ ((t) => (t.OAuth = "OAuth", t.OAuthRedirect = "OAuthRedirect", t.Doctor = "Doctor", t.Patient = "Patient", t.Scientist = "Scientist", t.Outpatient = "Outpatient", t.Manager = "Manager", t.Check = "Check", t.Prescription = "Prescription", t.Authorization = "Authorization", t.InspectionsAlgorithm = "InspectionsAlgorithm", t.PulsationsAlgorithm = "PulsationsAlgorithm", t.InquiriesAlgorithm = "InquiriesAlgorithm", t.LisemsAlgorithm = "LisemsAlgorithm", t.ComprehensiveAlgorithm = "ComprehensiveAlgorithm", t))(e || {}), o = /* @__PURE__ */ ((t) => (t.Dev = "Dev", t.Prod = "Prod", t.Local = "Local", t))(o || {});
|
|
4
|
+
function n(t, r) {
|
|
5
|
+
if (r == null && (s.toUnicode(window.location.hostname).includes("测试") ? r = "Dev" : (window.location.hostname.includes("localhost") || window.location.hostname.includes("127.0.0.1"), r = "Prod")), r == "Prod")
|
|
6
6
|
switch (t) {
|
|
7
7
|
case "OAuth":
|
|
8
8
|
return "https://用户.仪联中.中国";
|
|
@@ -32,8 +32,10 @@ function h(t, s) {
|
|
|
32
32
|
return "https://中医.仪联中.中国/闻诊/算法";
|
|
33
33
|
case "ComprehensiveAlgorithm":
|
|
34
34
|
return "https://中医.仪联中.中国/四诊合参/算法";
|
|
35
|
+
case "Manager":
|
|
36
|
+
return "https://中医.仪联中.中国/管理/服务";
|
|
35
37
|
}
|
|
36
|
-
else if (
|
|
38
|
+
else if (r == "Dev")
|
|
37
39
|
switch (t) {
|
|
38
40
|
case "OAuth":
|
|
39
41
|
return "https://用户测试.仪联中.中国";
|
|
@@ -63,8 +65,10 @@ function h(t, s) {
|
|
|
63
65
|
return "https://中医测试.仪联中.中国/闻诊/算法";
|
|
64
66
|
case "ComprehensiveAlgorithm":
|
|
65
67
|
return "https://中医测试.仪联中.中国/四诊合参/算法";
|
|
68
|
+
case "Manager":
|
|
69
|
+
return "https://中医测试.仪联中.中国/管理/服务";
|
|
66
70
|
}
|
|
67
|
-
else if (
|
|
71
|
+
else if (r == "Local")
|
|
68
72
|
switch (t) {
|
|
69
73
|
case "OAuth":
|
|
70
74
|
return "http://localhost:8080";
|
|
@@ -94,13 +98,15 @@ function h(t, s) {
|
|
|
94
98
|
return "http://localhost:8080";
|
|
95
99
|
case "ComprehensiveAlgorithm":
|
|
96
100
|
return "http://localhost:8080";
|
|
101
|
+
case "Manager":
|
|
102
|
+
return "http://localhost:8080";
|
|
97
103
|
}
|
|
98
104
|
throw new Error("环境错误");
|
|
99
105
|
}
|
|
100
106
|
export {
|
|
101
107
|
o as EnvironmentType,
|
|
102
108
|
e as ServiceType,
|
|
103
|
-
|
|
104
|
-
|
|
109
|
+
n as getServiceEndpoint,
|
|
110
|
+
c as onAuthRequired,
|
|
105
111
|
u as responded
|
|
106
112
|
};
|
|
@@ -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 && (i = !0);
|
|
32
32
|
t = i ? n : t;
|
|
33
33
|
}
|
|
34
|
-
return new g(
|
|
35
|
-
P.toUpperCase(),
|
|
36
|
-
a,
|
|
37
|
-
A,
|
|
38
|
-
c,
|
|
39
|
-
t
|
|
40
|
-
);
|
|
34
|
+
return new g(P.toUpperCase(), a, A, c, t);
|
|
41
35
|
}
|
|
42
36
|
});
|
|
43
37
|
return l[o] = s, s;
|