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.
Files changed (79) 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 +2 -1
  4. package/dist/src/api/authorization/alova/index.js +13 -13
  5. package/dist/src/api/authorization/index.js +4 -3
  6. package/dist/src/api/check/alova/createApis.js +1 -7
  7. package/dist/src/api/check/alova/globals.d.ts +1227 -1126
  8. package/dist/src/api/check/alova/index.d.ts +2 -1
  9. package/dist/src/api/check/alova/index.js +10 -10
  10. package/dist/src/api/check/index.js +10 -9
  11. package/dist/src/api/config/index.d.ts +1 -0
  12. package/dist/src/api/config/index.js +15 -9
  13. package/dist/src/api/doctor/alova/createApis.js +1 -7
  14. package/dist/src/api/doctor/alova/globals.d.ts +510 -419
  15. package/dist/src/api/doctor/alova/index.d.ts +2 -1
  16. package/dist/src/api/doctor/alova/index.js +13 -13
  17. package/dist/src/api/doctor/index.js +7 -6
  18. package/dist/src/api/index.d.ts +1 -0
  19. package/dist/src/api/index.js +2 -0
  20. package/dist/src/api/manager/alova/apiDefinitions.d.ts +62 -0
  21. package/dist/src/api/manager/alova/apiDefinitions.js +50 -0
  22. package/dist/src/api/manager/alova/createApis.d.ts +10 -0
  23. package/dist/src/api/manager/alova/createApis.js +49 -0
  24. package/dist/src/api/manager/alova/globals.d.ts +4890 -0
  25. package/dist/src/api/manager/alova/implement/department.d.ts +7 -0
  26. package/dist/src/api/manager/alova/implement/department.js +44 -0
  27. package/dist/src/api/manager/alova/implement/division.d.ts +7 -0
  28. package/dist/src/api/manager/alova/implement/division.js +44 -0
  29. package/dist/src/api/manager/alova/implement/hospital.d.ts +7 -0
  30. package/dist/src/api/manager/alova/implement/hospital.js +44 -0
  31. package/dist/src/api/manager/alova/implement/index.d.ts +3 -0
  32. package/dist/src/api/manager/alova/implement/index.js +8 -0
  33. package/dist/src/api/manager/alova/index.d.ts +7 -0
  34. package/dist/src/api/manager/alova/index.js +20 -0
  35. package/dist/src/api/manager/department.d.ts +30 -0
  36. package/dist/src/api/manager/department.js +35 -0
  37. package/dist/src/api/manager/division.d.ts +30 -0
  38. package/dist/src/api/manager/division.js +34 -0
  39. package/dist/src/api/manager/hospital.d.ts +32 -0
  40. package/dist/src/api/manager/hospital.js +36 -0
  41. package/dist/src/api/manager/index.d.ts +4 -0
  42. package/dist/src/api/manager/index.js +18 -0
  43. package/dist/src/api/oauth/alova/createApis.js +1 -7
  44. package/dist/src/api/oauth/alova/globals.d.ts +403 -312
  45. package/dist/src/api/oauth/alova/index.d.ts +2 -1
  46. package/dist/src/api/oauth/alova/index.js +12 -12
  47. package/dist/src/api/oauth/index.js +6 -5
  48. package/dist/src/api/outpatient/alova/createApis.js +1 -7
  49. package/dist/src/api/outpatient/alova/globals.d.ts +634 -543
  50. package/dist/src/api/outpatient/alova/index.d.ts +2 -1
  51. package/dist/src/api/outpatient/alova/index.js +13 -13
  52. package/dist/src/api/outpatient/index.js +10 -9
  53. package/dist/src/api/patient/alova/createApis.js +1 -7
  54. package/dist/src/api/patient/alova/globals.d.ts +1627 -1480
  55. package/dist/src/api/patient/alova/index.d.ts +2 -1
  56. package/dist/src/api/patient/alova/index.js +13 -13
  57. package/dist/src/api/patient/index.js +27 -26
  58. package/dist/src/api/prescription/alova/apiDefinitions.d.ts +1 -0
  59. package/dist/src/api/prescription/alova/apiDefinitions.js +1 -0
  60. package/dist/src/api/prescription/alova/createApis.js +1 -7
  61. package/dist/src/api/prescription/alova/globals.d.ts +959 -812
  62. package/dist/src/api/prescription/alova/index.d.ts +2 -1
  63. package/dist/src/api/prescription/alova/index.js +6 -6
  64. package/dist/src/api/prescription/index.js +12 -11
  65. package/dist/src/api/scientist/alova/createApis.js +1 -7
  66. package/dist/src/api/scientist/alova/globals.d.ts +406 -315
  67. package/dist/src/api/scientist/alova/index.d.ts +2 -1
  68. package/dist/src/api/scientist/alova/index.js +10 -10
  69. package/dist/src/api/scientist/index.js +8 -7
  70. package/dist/src/index.js +42 -40
  71. package/package.json +1 -1
  72. package/dist/src/api/authorization/alova/globals.js +0 -1
  73. package/dist/src/api/check/alova/globals.js +0 -1
  74. package/dist/src/api/doctor/alova/globals.js +0 -1
  75. package/dist/src/api/oauth/alova/globals.js +0 -1
  76. package/dist/src/api/outpatient/alova/globals.js +0 -1
  77. package/dist/src/api/patient/alova/globals.js +0 -1
  78. package/dist/src/api/prescription/alova/globals.js +0 -1
  79. 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 r, createApis as t, mountApis as p } from "./createApis.js";
4
- import { responded as i, onAuthRequired as a } from "../../config/alova/index.js";
5
- import { getServiceEndpoint as m, ServiceType as n } from "../../config/index.js";
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: m(n.Check),
8
+ baseURL: c(n.Check),
10
9
  requestAdapter: o(),
11
- beforeRequest: a(),
10
+ beforeRequest: i(),
12
11
  cacheFor: null,
13
- responded: i
14
- }), c = r({}), f = t(s, c);
15
- p(f);
12
+ responded: p
13
+ }), m = t({}), f = r(s, m);
14
+ a(f);
16
15
  export {
17
- c as $$userConfigMap,
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 a, Payment as r } from "./check.js";
2
- import { $$userConfigMap as m, alovaInstance as n } from "./alova/index.js";
3
- import { AlovaCheck as p, AlovaPayment as c } from "./alova/implement/check.js";
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
- m as $$userConfigMap,
6
- p as AlovaCheck,
7
- c as AlovaPayment,
8
- a as Check,
9
- r as Payment,
10
- n as alovaInstance
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
  };
@@ -5,6 +5,7 @@ export declare enum ServiceType {
5
5
  Patient = "Patient",
6
6
  Scientist = "Scientist",
7
7
  Outpatient = "Outpatient",
8
+ Manager = "Manager",
8
9
  Check = "Check",
9
10
  Prescription = "Prescription",
10
11
  Authorization = "Authorization",
@@ -1,8 +1,8 @@
1
- import r from "../../../node_modules/punycode/punycode.es6.js";
2
- import { onAuthRequired as a, 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.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 h(t, s) {
5
- if (s == null && (r.toUnicode(window.location.hostname).includes("测试") ? s = "Dev" : (window.location.hostname.includes("localhost") || window.location.hostname.includes("127.0.0.1"), s = "Prod")), s == "Prod")
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 (s == "Dev")
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 (s == "Local")
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
- h as getServiceEndpoint,
104
- a as onAuthRequired,
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;