web-core-tcm 0.0.51 → 0.0.53
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/node_modules/@alova/shared/dist/alova-shared.esm.js +249 -101
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/clone.js +35 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/embed.js +109 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/enum.js +16 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/extension.js +9 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +9 -10
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js +28 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/scalar.js +48 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/service.js +8 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/symbols.js +49 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/types.js +1 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/equals.js +127 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/extensions.js +86 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/fields.js +11 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +60 -56
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/from-json.js +434 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/index.js +49 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/merge.js +33 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +12 -3
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +14 -10
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +32 -12
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +42 -6
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +58 -50
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +26 -4
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/registry.js +130 -99
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/to-json.js +279 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/types.js +1 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +48 -27
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/index.js +24 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/size-delimited.js +123 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +9 -5
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/any.js +40 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/duration.js +18 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/any_pb.js +7 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/api_pb.js +11 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/compiler/plugin_pb.js +19 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/cpp_features_pb.js +18 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +134 -60
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/duration_pb.js +7 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/empty_pb.js +7 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/field_mask_pb.js +7 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/go_features_pb.js +25 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/java_features_pb.js +26 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/source_context_pb.js +7 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/struct_pb.js +17 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/timestamp_pb.js +7 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/type_pb.js +35 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/wrappers_pb.js +15 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/index.js +180 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/timestamp.js +29 -0
- package/dist/node_modules/alova/dist/adapter/fetch.esm.js +10 -10
- package/dist/node_modules/alova/dist/alova.esm.js +263 -211
- package/dist/node_modules/alova/dist/clienthook/index.esm.js +2110 -70
- package/dist/node_modules/builder-pattern/dist/index.js +25 -13
- package/dist/node_modules/pinyin/lib/esm/pinyin.js +2 -2
- package/dist/node_modules/punycode/punycode.es6.js +17 -17
- package/dist/src/api/algorithm/alova/implement/comprehensiveAlgorithm.js +4 -7
- package/dist/src/api/algorithm/alova/implement/index.js +12 -0
- package/dist/src/api/algorithm/alova/implement/inquiriesAlgorithm.js +4 -7
- package/dist/src/api/algorithm/alova/implement/inspectionsAlgorithm.js +7 -10
- package/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.js +6 -9
- package/dist/src/api/algorithm/alova/implement/pulsationsAlgorithm.js +7 -10
- package/dist/src/api/algorithm/alova/index.js +11 -15
- package/dist/src/api/algorithm/comprehensiveAlgorithm.js +5 -6
- package/dist/src/api/authorization/alova/globals.js +1 -0
- package/dist/src/api/authorization/alova/implement/index.js +4 -0
- package/dist/src/api/authorization/alova/index.js +10 -8
- package/dist/src/api/check/alova/globals.js +1 -0
- package/dist/src/api/check/alova/implement/index.js +5 -0
- package/dist/src/api/check/alova/index.js +5 -6
- package/dist/src/api/check/check.js +2 -2
- package/dist/src/api/config/index.d.ts +1 -1
- package/dist/src/api/config/index.js +2 -2
- package/dist/src/api/core/index.js +9 -0
- package/dist/src/api/device/device.d.ts +4 -5
- package/dist/src/api/device/device.js +20 -29
- package/dist/src/api/doctor/alova/globals.js +1 -0
- package/dist/src/api/doctor/alova/implement/index.js +4 -0
- package/dist/src/api/doctor/alova/index.js +10 -9
- package/dist/src/api/index.d.ts +12 -11
- package/dist/src/api/index.js +28 -0
- package/dist/src/api/metric/alova/implement/index.js +4 -0
- package/dist/src/api/metric/alova/index.js +1 -0
- package/dist/src/api/metric/index.js +5 -4
- package/dist/src/api/oauth/alova/globals.js +1 -0
- package/dist/src/api/oauth/alova/implement/index.js +4 -0
- package/dist/src/api/oauth/alova/index.js +13 -11
- package/dist/src/api/outpatient/alova/globals.js +1 -0
- package/dist/src/api/outpatient/alova/implement/index.js +4 -0
- package/dist/src/api/outpatient/alova/index.js +5 -5
- package/dist/src/api/patient/alova/globals.js +1 -0
- package/dist/src/api/patient/alova/implement/index.js +16 -0
- package/dist/src/api/patient/alova/index.js +9 -12
- package/dist/src/api/patient/meta.js +1 -0
- package/dist/src/api/prescription/alova/globals.js +1 -0
- package/dist/src/api/prescription/alova/implement/index.js +6 -0
- package/dist/src/api/prescription/alova/index.js +8 -7
- package/dist/src/api/scientist/alova/globals.js +1 -0
- package/dist/src/api/scientist/alova/implement/index.js +4 -0
- package/dist/src/api/scientist/alova/index.js +5 -5
- package/dist/src/index.d.ts +0 -1
- package/dist/src/index.js +34 -32
- package/dist/src/proto/index.js +10 -0
- package/dist/src/proto/types/Images_pb.js +7 -6
- package/dist/src/proto/types/WaveMap_pb.js +4 -3
- package/dist/src/util/helper.js +38 -2
- package/dist/src/util/string.js +47 -5
- package/package.json +1 -1
- package/dist/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +0 -556
- package/dist/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +0 -36
- package/dist/node_modules/@vue/shared/dist/shared.esm-bundler.js +0 -26
- package/dist/node_modules/quasar/src/composables/use-quasar/use-quasar.js +0 -8
- package/dist/node_modules/quasar/src/utils/private.symbols/symbols.js +0 -4
|
@@ -1,22 +1,34 @@
|
|
|
1
|
-
function
|
|
2
|
-
let
|
|
3
|
-
|
|
4
|
-
const
|
|
1
|
+
function b(t, i, o) {
|
|
2
|
+
let n, e, u;
|
|
3
|
+
t instanceof Function ? (n = t, e = i, u = o) : (e = t, u = i);
|
|
4
|
+
const r = e ? Object.assign({}, e) : {}, s = new Proxy(
|
|
5
5
|
{},
|
|
6
6
|
{
|
|
7
|
-
get(
|
|
8
|
-
if (
|
|
9
|
-
if (
|
|
10
|
-
const
|
|
11
|
-
return () => Object.assign(
|
|
7
|
+
get(g, l) {
|
|
8
|
+
if (l === "build")
|
|
9
|
+
if (u && Object.assign(r, u), n) {
|
|
10
|
+
const c = new n();
|
|
11
|
+
return () => Object.assign(c, { ...r });
|
|
12
12
|
} else
|
|
13
|
-
return () =>
|
|
14
|
-
return (...
|
|
13
|
+
return () => r;
|
|
14
|
+
return (...c) => c.length === 0 ? r[l.toString()] : (r[l.toString()] = c[0], s);
|
|
15
15
|
}
|
|
16
16
|
}
|
|
17
17
|
);
|
|
18
|
-
return
|
|
18
|
+
return s;
|
|
19
|
+
}
|
|
20
|
+
function f() {
|
|
21
|
+
const t = {}, i = new Proxy(
|
|
22
|
+
{},
|
|
23
|
+
{
|
|
24
|
+
get(o, n) {
|
|
25
|
+
return n === "build" ? () => t : (...e) => e.length === 0 ? t[n.toString()] : (t[n.toString()] = e[0], i);
|
|
26
|
+
}
|
|
27
|
+
}
|
|
28
|
+
);
|
|
29
|
+
return i;
|
|
19
30
|
}
|
|
20
31
|
export {
|
|
21
|
-
|
|
32
|
+
b as Builder,
|
|
33
|
+
f as StrictBuilder
|
|
22
34
|
};
|
|
@@ -242250,11 +242250,11 @@ class tn extends ln {
|
|
|
242250
242250
|
return an(x, b);
|
|
242251
242251
|
}
|
|
242252
242252
|
}
|
|
242253
|
-
const qn = en(new tn());
|
|
242254
|
-
qn.compare;
|
|
242253
|
+
const qn = en(new tn()), mn = qn.compare;
|
|
242255
242254
|
export {
|
|
242256
242255
|
tn as Pinyin,
|
|
242257
242256
|
m0 as compact,
|
|
242257
|
+
mn as compare,
|
|
242258
242258
|
qn as default,
|
|
242259
242259
|
qn as pinyin
|
|
242260
242260
|
};
|
|
@@ -2,7 +2,7 @@ const k = /^xn--/, B = /[^\0-\x7F]/, S = /[\x2E\u3002\uFF0E\uFF61]/g, T = {
|
|
|
2
2
|
overflow: "Overflow: input needs wider integers to process",
|
|
3
3
|
"not-basic": "Illegal input >= 0x80 (not a basic code point)",
|
|
4
4
|
"invalid-input": "Invalid input"
|
|
5
|
-
}, C = 35,
|
|
5
|
+
}, C = 35, u = Math.floor, g = String.fromCharCode;
|
|
6
6
|
function d(t) {
|
|
7
7
|
throw new RangeError(T[t]);
|
|
8
8
|
}
|
|
@@ -40,29 +40,29 @@ const E = (t) => String.fromCodePoint(...t), L = function(t) {
|
|
|
40
40
|
return t + 22 + 75 * (t < 26) - ((n != 0) << 5);
|
|
41
41
|
}, v = function(t, n, o) {
|
|
42
42
|
let e = 0;
|
|
43
|
-
for (t = o ?
|
|
44
|
-
t =
|
|
45
|
-
return
|
|
43
|
+
for (t = o ? u(t / 700) : t >> 1, t += u(t / n); t > C * 26 >> 1; e += 36)
|
|
44
|
+
t = u(t / C);
|
|
45
|
+
return u(e + (C + 1) * t / (t + 38));
|
|
46
46
|
}, F = function(t) {
|
|
47
47
|
const n = [], o = t.length;
|
|
48
|
-
let e = 0, s = 128, i = 72,
|
|
49
|
-
|
|
50
|
-
for (let c = 0; c <
|
|
48
|
+
let e = 0, s = 128, i = 72, l = t.lastIndexOf("-");
|
|
49
|
+
l < 0 && (l = 0);
|
|
50
|
+
for (let c = 0; c < l; ++c)
|
|
51
51
|
t.charCodeAt(c) >= 128 && d("not-basic"), n.push(t.charCodeAt(c));
|
|
52
|
-
for (let c =
|
|
52
|
+
for (let c = l > 0 ? l + 1 : 0; c < o; ) {
|
|
53
53
|
const r = e;
|
|
54
54
|
for (let a = 1, f = 36; ; f += 36) {
|
|
55
55
|
c >= o && d("invalid-input");
|
|
56
56
|
const x = L(t.charCodeAt(c++));
|
|
57
|
-
x >= 36 && d("invalid-input"), x >
|
|
57
|
+
x >= 36 && d("invalid-input"), x > u((2147483647 - e) / a) && d("overflow"), e += x * a;
|
|
58
58
|
const b = f <= i ? 1 : f >= i + 26 ? 26 : f - i;
|
|
59
59
|
if (x < b)
|
|
60
60
|
break;
|
|
61
61
|
const p = 36 - b;
|
|
62
|
-
a >
|
|
62
|
+
a > u(2147483647 / p) && d("overflow"), a *= p;
|
|
63
63
|
}
|
|
64
64
|
const h = n.length + 1;
|
|
65
|
-
i = v(e - r, h, r == 0),
|
|
65
|
+
i = v(e - r, h, r == 0), u(e / h) > 2147483647 - s && d("overflow"), s += u(e / h), e %= h, n.splice(e++, 0, s);
|
|
66
66
|
}
|
|
67
67
|
return String.fromCodePoint(...n);
|
|
68
68
|
}, A = function(t) {
|
|
@@ -72,14 +72,14 @@ const E = (t) => String.fromCodePoint(...t), L = function(t) {
|
|
|
72
72
|
let e = 128, s = 0, i = 72;
|
|
73
73
|
for (const r of t)
|
|
74
74
|
r < 128 && n.push(g(r));
|
|
75
|
-
const
|
|
76
|
-
let c =
|
|
77
|
-
for (
|
|
75
|
+
const l = n.length;
|
|
76
|
+
let c = l;
|
|
77
|
+
for (l && n.push("-"); c < o; ) {
|
|
78
78
|
let r = 2147483647;
|
|
79
79
|
for (const a of t)
|
|
80
80
|
a >= e && a < r && (r = a);
|
|
81
81
|
const h = c + 1;
|
|
82
|
-
r - e >
|
|
82
|
+
r - e > u((2147483647 - s) / h) && d("overflow"), s += (r - e) * h, e = r;
|
|
83
83
|
for (const a of t)
|
|
84
84
|
if (a < e && ++s > 2147483647 && d("overflow"), a === e) {
|
|
85
85
|
let f = s;
|
|
@@ -90,9 +90,9 @@ const E = (t) => String.fromCodePoint(...t), L = function(t) {
|
|
|
90
90
|
const p = f - b, w = 36 - b;
|
|
91
91
|
n.push(
|
|
92
92
|
g(m(b + p % w, 0))
|
|
93
|
-
), f =
|
|
93
|
+
), f = u(p / w);
|
|
94
94
|
}
|
|
95
|
-
n.push(g(m(f, 0))), i = v(s, h, c ===
|
|
95
|
+
n.push(g(m(f, 0))), i = v(s, h, c === l), s = 0, ++c;
|
|
96
96
|
}
|
|
97
97
|
++s, ++e;
|
|
98
98
|
}
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "../../index.js";
|
|
2
2
|
import { ComprehensiveAlgorithm as o } from "../../comprehensiveAlgorithm.js";
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
import "../../lisemsAlgorithm.js";
|
|
6
|
-
import "../../pulsationsAlgorithm.js";
|
|
7
|
-
class h extends o {
|
|
3
|
+
import { comprehensiveAlgorithmService as t } from "../index.js";
|
|
4
|
+
class n extends o {
|
|
8
5
|
static comprehensiveDeepSeekR1Algorithm(e) {
|
|
9
6
|
return t.Post("/千问大模型分析", e, {
|
|
10
7
|
timeout: 3e4
|
|
@@ -27,5 +24,5 @@ class h extends o {
|
|
|
27
24
|
}
|
|
28
25
|
}
|
|
29
26
|
export {
|
|
30
|
-
|
|
27
|
+
n as AlovaComprehensiveAlgorithm
|
|
31
28
|
};
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AlovaComprehensiveAlgorithm as m } from "./comprehensiveAlgorithm.js";
|
|
2
|
+
import { AlovaInquiriesAlgorithm as e } from "./inquiriesAlgorithm.js";
|
|
3
|
+
import { AlovaInspectionsAlgorithm as l } from "./inspectionsAlgorithm.js";
|
|
4
|
+
import { AlovaLisemsAlgorithm as s } from "./lisemsAlgorithm.js";
|
|
5
|
+
import { AlovaPulsationsAlgorithm as a } from "./pulsationsAlgorithm.js";
|
|
6
|
+
export {
|
|
7
|
+
m as AlovaComprehensiveAlgorithm,
|
|
8
|
+
e as AlovaInquiriesAlgorithm,
|
|
9
|
+
l as AlovaInspectionsAlgorithm,
|
|
10
|
+
s as AlovaLisemsAlgorithm,
|
|
11
|
+
a as AlovaPulsationsAlgorithm
|
|
12
|
+
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
+
import "../../index.js";
|
|
2
|
+
import { InquiriesAlgorithm as s } from "../../inquiriesAlgorithm.js";
|
|
1
3
|
import { inquiriesAlgorithmService as i } from "../index.js";
|
|
2
|
-
|
|
3
|
-
import { InquiriesAlgorithm as o } from "../../inquiriesAlgorithm.js";
|
|
4
|
-
import "../../inspectionsAlgorithm.js";
|
|
5
|
-
import "../../lisemsAlgorithm.js";
|
|
6
|
-
import "../../pulsationsAlgorithm.js";
|
|
7
|
-
class p extends o {
|
|
4
|
+
class a extends s {
|
|
8
5
|
static complaintsRecognition(t) {
|
|
9
6
|
return i.Post("/主诉/识别", { symptomDescription: t }).send();
|
|
10
7
|
}
|
|
@@ -22,5 +19,5 @@ class p extends o {
|
|
|
22
19
|
}
|
|
23
20
|
}
|
|
24
21
|
export {
|
|
25
|
-
|
|
22
|
+
a as AlovaInquiriesAlgorithm
|
|
26
23
|
};
|
|
@@ -1,21 +1,18 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../../
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
import "../../lisemsAlgorithm.js";
|
|
6
|
-
import "../../pulsationsAlgorithm.js";
|
|
7
|
-
class a extends e {
|
|
1
|
+
import "../../index.js";
|
|
2
|
+
import { InspectionsAlgorithm as o } from "../../inspectionsAlgorithm.js";
|
|
3
|
+
import { inspectionAlgorithmService as e } from "../index.js";
|
|
4
|
+
class m extends o {
|
|
8
5
|
static tongueAnalyze(t) {
|
|
9
|
-
return
|
|
6
|
+
return e.Post("/舌象", t, {
|
|
10
7
|
timeout: 3e4
|
|
11
8
|
}).send();
|
|
12
9
|
}
|
|
13
10
|
static faceAnalyze(t) {
|
|
14
|
-
return
|
|
11
|
+
return e.Post("/面象", t, {
|
|
15
12
|
timeout: 3e4
|
|
16
13
|
}).send();
|
|
17
14
|
}
|
|
18
15
|
}
|
|
19
16
|
export {
|
|
20
|
-
|
|
17
|
+
m as AlovaInspectionsAlgorithm
|
|
21
18
|
};
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
+
import "../../index.js";
|
|
2
|
+
import { LisemsAlgorithm as i } from "../../lisemsAlgorithm.js";
|
|
1
3
|
import { lisemsAlgorithmService as s } from "../index.js";
|
|
2
|
-
|
|
3
|
-
import "../../inquiriesAlgorithm.js";
|
|
4
|
-
import "../../inspectionsAlgorithm.js";
|
|
5
|
-
import { LisemsAlgorithm as o } from "../../lisemsAlgorithm.js";
|
|
6
|
-
import "../../pulsationsAlgorithm.js";
|
|
7
|
-
class g extends o {
|
|
4
|
+
class c extends i {
|
|
8
5
|
static analysisLisems(r) {
|
|
9
6
|
return s.Post("/特征参数", r, {
|
|
10
7
|
transform(t) {
|
|
@@ -15,12 +12,12 @@ class g extends o {
|
|
|
15
12
|
static getFrequencyDomainDiagram(r) {
|
|
16
13
|
return s.Post("/频域图", JSON.stringify(r), {
|
|
17
14
|
async transform(t) {
|
|
18
|
-
const
|
|
19
|
-
return URL.createObjectURL(
|
|
15
|
+
const e = await t.blob();
|
|
16
|
+
return URL.createObjectURL(e);
|
|
20
17
|
}
|
|
21
18
|
}).send();
|
|
22
19
|
}
|
|
23
20
|
}
|
|
24
21
|
export {
|
|
25
|
-
|
|
22
|
+
c as AlovaLisemsAlgorithm
|
|
26
23
|
};
|
|
@@ -1,19 +1,16 @@
|
|
|
1
|
-
import
|
|
2
|
-
import "../../
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
import "../../lisemsAlgorithm.js";
|
|
6
|
-
import { PulsationsAlgorithm as s } from "../../pulsationsAlgorithm.js";
|
|
7
|
-
class a extends s {
|
|
1
|
+
import "../../index.js";
|
|
2
|
+
import { PulsationsAlgorithm as o } from "../../pulsationsAlgorithm.js";
|
|
3
|
+
import { pulsationsAlgorithmService as s } from "../index.js";
|
|
4
|
+
class l extends o {
|
|
8
5
|
static pulsationPreprocessing(t) {
|
|
9
|
-
return
|
|
6
|
+
return s.Post("/预处理", t, {}).send();
|
|
10
7
|
}
|
|
11
8
|
static pulsationAnalysis(t) {
|
|
12
|
-
return
|
|
9
|
+
return s.Post("/特征参数", t, {
|
|
13
10
|
timeout: 3e4
|
|
14
11
|
}).send();
|
|
15
12
|
}
|
|
16
13
|
}
|
|
17
14
|
export {
|
|
18
|
-
|
|
15
|
+
l as AlovaPulsationsAlgorithm
|
|
19
16
|
};
|
|
@@ -1,37 +1,33 @@
|
|
|
1
1
|
import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
2
|
import { getServiceEndpoint as t, ServiceType as r } from "../../config/index.js";
|
|
3
3
|
import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
4
|
-
import "
|
|
5
|
-
import "../inquiriesAlgorithm.js";
|
|
6
|
-
import "../inspectionsAlgorithm.js";
|
|
7
|
-
import "../lisemsAlgorithm.js";
|
|
8
|
-
import "../pulsationsAlgorithm.js";
|
|
4
|
+
import "./implement/index.js";
|
|
9
5
|
import { responded as i } from "../../config/alova/index.js";
|
|
10
|
-
const
|
|
6
|
+
const a = e({
|
|
11
7
|
baseURL: t(r.InspectionsAlgorithm),
|
|
12
8
|
timeout: 3e4,
|
|
13
9
|
cacheFor: null,
|
|
14
10
|
requestAdapter: o(),
|
|
15
11
|
responded: i
|
|
16
|
-
}),
|
|
12
|
+
}), p = e({
|
|
17
13
|
baseURL: t(r.InquiriesAlgorithm),
|
|
18
14
|
timeout: 3e4,
|
|
19
15
|
cacheFor: null,
|
|
20
16
|
requestAdapter: o(),
|
|
21
17
|
responded: i
|
|
22
|
-
}),
|
|
18
|
+
}), u = e({
|
|
23
19
|
baseURL: t(r.LisemsAlgorithm),
|
|
24
20
|
timeout: 3e4,
|
|
25
21
|
cacheFor: null,
|
|
26
22
|
requestAdapter: o(),
|
|
27
23
|
responded: i
|
|
28
|
-
}),
|
|
24
|
+
}), h = e({
|
|
29
25
|
baseURL: t(r.PulsationsAlgorithm),
|
|
30
26
|
timeout: 3e4,
|
|
31
27
|
cacheFor: null,
|
|
32
28
|
requestAdapter: o(),
|
|
33
29
|
responded: i
|
|
34
|
-
}),
|
|
30
|
+
}), A = e({
|
|
35
31
|
baseURL: t(r.ComprehensiveAlgorithm),
|
|
36
32
|
timeout: 3e4,
|
|
37
33
|
cacheFor: null,
|
|
@@ -39,9 +35,9 @@ const A = e({
|
|
|
39
35
|
responded: i
|
|
40
36
|
});
|
|
41
37
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
38
|
+
A as comprehensiveAlgorithmService,
|
|
39
|
+
p as inquiriesAlgorithmService,
|
|
40
|
+
a as inspectionAlgorithmService,
|
|
41
|
+
u as lisemsAlgorithmService,
|
|
42
|
+
h as pulsationsAlgorithmService
|
|
47
43
|
};
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Builder as
|
|
3
|
-
import "
|
|
4
|
-
|
|
5
|
-
class t extends r {
|
|
1
|
+
import "../patient/index.js";
|
|
2
|
+
import { Builder as r } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
3
|
+
import { BaseObject as i } from "../core/core.js";
|
|
4
|
+
class t extends i {
|
|
6
5
|
static _default = t;
|
|
7
6
|
static builder() {
|
|
8
|
-
return
|
|
7
|
+
return r(this._default);
|
|
9
8
|
}
|
|
10
9
|
static default() {
|
|
11
10
|
return t;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,18 +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 {
|
|
3
|
+
import { withConfigType as t, createApis as r, mountApis as i } from "./createApis.js";
|
|
4
4
|
import { responded as p, onAuthRequired as a } from "../../config/alova/index.js";
|
|
5
|
-
import { getServiceEndpoint as n, ServiceType as
|
|
6
|
-
|
|
7
|
-
|
|
5
|
+
import { getServiceEndpoint as n, ServiceType as m } from "../../config/index.js";
|
|
6
|
+
import "./implement/index.js";
|
|
7
|
+
import "./globals.js";
|
|
8
|
+
const s = e({
|
|
9
|
+
baseURL: n(m.Authorization),
|
|
8
10
|
requestAdapter: o(),
|
|
9
11
|
beforeRequest: a(),
|
|
10
12
|
cacheFor: null,
|
|
11
13
|
responded: p
|
|
12
|
-
}),
|
|
13
|
-
|
|
14
|
+
}), c = t({}), f = r(s, c);
|
|
15
|
+
i(f);
|
|
14
16
|
export {
|
|
15
|
-
|
|
16
|
-
|
|
17
|
+
c as $$userConfigMap,
|
|
18
|
+
s as alovaInstance,
|
|
17
19
|
f as default
|
|
18
20
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,19 +1,18 @@
|
|
|
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 {
|
|
3
|
+
import { withConfigType as r, createApis as t, mountApis as p } from "./createApis.js";
|
|
4
4
|
import { responded as i, onAuthRequired as a } from "../../config/alova/index.js";
|
|
5
5
|
import { getServiceEndpoint as m, ServiceType as n } from "../../config/index.js";
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "../../prescription/alova/index.js";
|
|
6
|
+
import "./implement/index.js";
|
|
7
|
+
import "./globals.js";
|
|
9
8
|
const s = e({
|
|
10
9
|
baseURL: m(n.Check),
|
|
11
10
|
requestAdapter: o(),
|
|
12
11
|
beforeRequest: a(),
|
|
13
12
|
cacheFor: null,
|
|
14
13
|
responded: i
|
|
15
|
-
}), c =
|
|
16
|
-
|
|
14
|
+
}), c = r({}), f = t(s, c);
|
|
15
|
+
p(f);
|
|
17
16
|
export {
|
|
18
17
|
c as $$userConfigMap,
|
|
19
18
|
s as alovaInstance,
|
|
@@ -4,9 +4,9 @@ import { Metas as m } from "../patient/meta.js";
|
|
|
4
4
|
import { Prescription as s } from "../prescription/prescription.js";
|
|
5
5
|
import { extractPlainText as c } from "../../util/RichTextUtil.js";
|
|
6
6
|
import { Doctor as f } from "../doctor/doctor.js";
|
|
7
|
-
import
|
|
8
|
-
import "../prescription/alova/index.js";
|
|
7
|
+
import "../prescription/index.js";
|
|
9
8
|
import { Builder as S } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
9
|
+
import { Herbal as g } from "../prescription/herbal.js";
|
|
10
10
|
class n extends l {
|
|
11
11
|
static builder() {
|
|
12
12
|
return S(this._default);
|
|
@@ -19,5 +19,5 @@ export declare enum EnvironmentType {
|
|
|
19
19
|
Prod = "Prod",
|
|
20
20
|
Local = "Local"
|
|
21
21
|
}
|
|
22
|
-
export declare
|
|
22
|
+
export declare function getServiceEndpoint(serviceType: ServiceType, env?: EnvironmentType): string;
|
|
23
23
|
export * from './alova';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import r from "../../../node_modules/punycode/punycode.es6.js";
|
|
2
2
|
import { onAuthRequired as a, responded as u } from "./alova/index.js";
|
|
3
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
|
-
|
|
4
|
+
function h(t, s) {
|
|
5
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")
|
|
6
6
|
switch (t) {
|
|
7
7
|
case "OAuth":
|
|
@@ -96,7 +96,7 @@ const h = (t, s) => {
|
|
|
96
96
|
return "http://localhost:8080";
|
|
97
97
|
}
|
|
98
98
|
throw new Error("环境错误");
|
|
99
|
-
}
|
|
99
|
+
}
|
|
100
100
|
export {
|
|
101
101
|
o as EnvironmentType,
|
|
102
102
|
e as ServiceType,
|
|
@@ -1,5 +1,4 @@
|
|
|
1
|
-
export function connectToSerialPort(): Promise<
|
|
2
|
-
export function getPortInfo(): any;
|
|
3
|
-
export function disconnectToSerialPort(): Promise<void>;
|
|
4
|
-
export function sendText(text: any): Promise<void>;
|
|
5
|
-
export const port: import('vue').Ref<any, any>;
|
|
1
|
+
export function connectToSerialPort(): Promise<any>;
|
|
2
|
+
export function getPortInfo(port: any): any;
|
|
3
|
+
export function disconnectToSerialPort(port: any): Promise<void>;
|
|
4
|
+
export function sendText(port: any, text: any): Promise<void>;
|
|
@@ -1,46 +1,37 @@
|
|
|
1
|
-
|
|
2
|
-
import { ref as n } from "../../../node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js";
|
|
3
|
-
const r = a(), e = n();
|
|
4
|
-
async function s() {
|
|
1
|
+
async function t() {
|
|
5
2
|
try {
|
|
6
|
-
const
|
|
3
|
+
const e = {
|
|
7
4
|
baudRate: 115200,
|
|
8
5
|
dataBits: 8,
|
|
9
6
|
stopBits: 1,
|
|
10
7
|
bufferSize: 1024
|
|
11
|
-
};
|
|
12
|
-
return
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
} catch (o) {
|
|
17
|
-
return console.error("Error connecting to serial port:", o), r.dialog({
|
|
18
|
-
title: "错误",
|
|
19
|
-
message: "连接串口失败"
|
|
20
|
-
}), !1;
|
|
8
|
+
}, o = await navigator.serial.requestPort();
|
|
9
|
+
return o ? (await o.open(e), console.log("port", o.getInfo()), o) : void 0;
|
|
10
|
+
} catch (e) {
|
|
11
|
+
console.error("Error connecting to serial port:", e);
|
|
12
|
+
return;
|
|
21
13
|
}
|
|
22
14
|
}
|
|
23
|
-
function
|
|
24
|
-
return e
|
|
15
|
+
function n(e) {
|
|
16
|
+
return e?.getInfo();
|
|
25
17
|
}
|
|
26
|
-
async function
|
|
27
|
-
if (!e
|
|
18
|
+
async function i(e) {
|
|
19
|
+
if (!e) {
|
|
28
20
|
console.error("Serial port not available");
|
|
29
21
|
return;
|
|
30
22
|
}
|
|
31
|
-
await e.
|
|
23
|
+
await e.close(), e = null, console.log("Serial port disconnected");
|
|
32
24
|
}
|
|
33
|
-
async function
|
|
34
|
-
if (e
|
|
35
|
-
const
|
|
36
|
-
console.log("text", o), await
|
|
25
|
+
async function a(e, o) {
|
|
26
|
+
if (e) {
|
|
27
|
+
const r = e.writable.getWriter();
|
|
28
|
+
console.log("text", o), await r.write(new TextEncoder().encode(o)), await r.close();
|
|
37
29
|
} else
|
|
38
30
|
console.error("Serial port not available");
|
|
39
31
|
}
|
|
40
32
|
export {
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
f as sendText
|
|
33
|
+
t as connectToSerialPort,
|
|
34
|
+
i as disconnectToSerialPort,
|
|
35
|
+
n as getPortInfo,
|
|
36
|
+
a as sendText
|
|
46
37
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,20 +1,21 @@
|
|
|
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 {
|
|
3
|
+
import { withConfigType as r, createApis as t, mountApis as p } from "./createApis.js";
|
|
4
4
|
import { responded as i, onAuthRequired as a } from "../../config/alova/index.js";
|
|
5
|
-
import { getServiceEndpoint as
|
|
6
|
-
import "
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
import { getServiceEndpoint as m, ServiceType as n } from "../../config/index.js";
|
|
6
|
+
import "./implement/index.js";
|
|
7
|
+
import "./globals.js";
|
|
8
|
+
const s = e({
|
|
9
|
+
baseURL: m(n.Doctor),
|
|
9
10
|
requestAdapter: o(),
|
|
10
11
|
beforeRequest: a(() => {
|
|
11
12
|
}),
|
|
12
13
|
cacheFor: null,
|
|
13
14
|
responded: i
|
|
14
|
-
}),
|
|
15
|
-
|
|
15
|
+
}), c = r({}), f = t(s, c);
|
|
16
|
+
p(f);
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
c as $$userConfigMap,
|
|
19
|
+
s as alovaInstance,
|
|
19
20
|
f as default
|
|
20
21
|
};
|
package/dist/src/api/index.d.ts
CHANGED
|
@@ -1,12 +1,13 @@
|
|
|
1
|
-
export * as AlgorithmApi from './algorithm
|
|
2
|
-
export * as AuthorizationApi from './authorization
|
|
3
|
-
export * as CheckApi from './check
|
|
4
|
-
export * as ConfigApi from './config
|
|
5
|
-
export * as DoctorApi from './doctor
|
|
6
|
-
export * as MetricApi from './metric
|
|
7
|
-
export * as OAuthApi from './oauth
|
|
8
|
-
export * as OutPatientApi from './outpatient
|
|
9
|
-
export * as PatientApi from './patient
|
|
10
|
-
export * as PrescriptionApi from './prescription
|
|
11
|
-
export * as ScientistApi from './scientist
|
|
1
|
+
export * as AlgorithmApi from './algorithm';
|
|
2
|
+
export * as AuthorizationApi from './authorization';
|
|
3
|
+
export * as CheckApi from './check';
|
|
4
|
+
export * as ConfigApi from './config';
|
|
5
|
+
export * as DoctorApi from './doctor';
|
|
6
|
+
export * as MetricApi from './metric';
|
|
7
|
+
export * as OAuthApi from './oauth';
|
|
8
|
+
export * as OutPatientApi from './outpatient';
|
|
9
|
+
export * as PatientApi from './patient';
|
|
10
|
+
export * as PrescriptionApi from './prescription';
|
|
11
|
+
export * as ScientistApi from './scientist';
|
|
12
12
|
export * as DeviceApi from './device/device';
|
|
13
|
+
export * as CoreApi from './core';
|