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
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as i from "./algorithm/index.js";
|
|
2
|
+
import * as o from "./authorization/index.js";
|
|
3
|
+
import * as r from "./check/index.js";
|
|
4
|
+
import * as p from "./config/index.js";
|
|
5
|
+
import * as t from "./doctor/index.js";
|
|
6
|
+
import * as e from "./metric/index.js";
|
|
7
|
+
import * as a from "./oauth/index.js";
|
|
8
|
+
import * as s from "./outpatient/index.js";
|
|
9
|
+
import * as m from "./patient/index.js";
|
|
10
|
+
import * as x from "./prescription/index.js";
|
|
11
|
+
import * as n from "./scientist/index.js";
|
|
12
|
+
import * as A from "./device/device.js";
|
|
13
|
+
import * as f from "./core/index.js";
|
|
14
|
+
export {
|
|
15
|
+
i as AlgorithmApi,
|
|
16
|
+
o as AuthorizationApi,
|
|
17
|
+
r as CheckApi,
|
|
18
|
+
p as ConfigApi,
|
|
19
|
+
f as CoreApi,
|
|
20
|
+
A as DeviceApi,
|
|
21
|
+
t as DoctorApi,
|
|
22
|
+
e as MetricApi,
|
|
23
|
+
a as OAuthApi,
|
|
24
|
+
s as OutPatientApi,
|
|
25
|
+
m as PatientApi,
|
|
26
|
+
x as PrescriptionApi,
|
|
27
|
+
n as ScientistApi
|
|
28
|
+
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
import "./implement/index.js";
|
|
@@ -1,6 +1,7 @@
|
|
|
1
|
-
import
|
|
2
|
-
import { Metric as
|
|
1
|
+
import "./alova/index.js";
|
|
2
|
+
import { Metric as e } from "./metric.js";
|
|
3
|
+
import { AlovaMetric as m } from "./alova/implement/metric.js";
|
|
3
4
|
export {
|
|
4
|
-
|
|
5
|
-
|
|
5
|
+
m as AlovaMetric,
|
|
6
|
+
e as Metric
|
|
6
7
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,17 +1,19 @@
|
|
|
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 {
|
|
4
|
-
import { responded as
|
|
5
|
-
import { getServiceEndpoint as
|
|
6
|
-
|
|
7
|
-
|
|
3
|
+
import { withConfigType as t, createApis as r, mountApis as p } from "./createApis.js";
|
|
4
|
+
import { responded as i } from "../../config/alova/index.js";
|
|
5
|
+
import { getServiceEndpoint as a, ServiceType as m } from "../../config/index.js";
|
|
6
|
+
import "./implement/index.js";
|
|
7
|
+
import "./globals.js";
|
|
8
|
+
const n = e({
|
|
9
|
+
baseURL: a(m.OAuth),
|
|
8
10
|
requestAdapter: o(),
|
|
9
11
|
cacheFor: null,
|
|
10
|
-
responded:
|
|
11
|
-
}),
|
|
12
|
-
|
|
12
|
+
responded: i
|
|
13
|
+
}), s = t({}), c = r(n, s);
|
|
14
|
+
p(c);
|
|
13
15
|
export {
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
16
|
+
s as $$userConfigMap,
|
|
17
|
+
n as alovaInstance,
|
|
18
|
+
c as default
|
|
17
19
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
2
|
import t from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
3
|
-
import {
|
|
3
|
+
import { withConfigType as o, createApis as r, 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 n, ServiceType as m } from "../../config/index.js";
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
6
|
+
import "./implement/index.js";
|
|
7
|
+
import "./globals.js";
|
|
8
8
|
const s = e({
|
|
9
9
|
baseURL: n(m.Outpatient),
|
|
10
10
|
requestAdapter: t(),
|
|
@@ -12,8 +12,8 @@ const s = e({
|
|
|
12
12
|
}),
|
|
13
13
|
cacheFor: null,
|
|
14
14
|
responded: i
|
|
15
|
-
}), c =
|
|
16
|
-
|
|
15
|
+
}), c = o({}), f = r(s, c);
|
|
16
|
+
p(f);
|
|
17
17
|
export {
|
|
18
18
|
c as $$userConfigMap,
|
|
19
19
|
s as alovaInstance,
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { AlovaAppendixMeta as o, AlovaComplaintMeta as t, AlovaECGMeta as l, AlovaFaceMeta as A, AlovaMeta as v, AlovaMetas as M, AlovaPCGMeta as n, AlovaPPGMeta as p, AlovaPulsationMeta as P, AlovaSceneMeta as i, AlovaTongueMeta as r } from "./meta.js";
|
|
2
|
+
import { AlovaPatient as x } from "./patient.js";
|
|
3
|
+
export {
|
|
4
|
+
o as AlovaAppendixMeta,
|
|
5
|
+
t as AlovaComplaintMeta,
|
|
6
|
+
l as AlovaECGMeta,
|
|
7
|
+
A as AlovaFaceMeta,
|
|
8
|
+
v as AlovaMeta,
|
|
9
|
+
M as AlovaMetas,
|
|
10
|
+
n as AlovaPCGMeta,
|
|
11
|
+
p as AlovaPPGMeta,
|
|
12
|
+
x as AlovaPatient,
|
|
13
|
+
P as AlovaPulsationMeta,
|
|
14
|
+
i as AlovaSceneMeta,
|
|
15
|
+
r as AlovaTongueMeta
|
|
16
|
+
};
|
|
@@ -1,22 +1,19 @@
|
|
|
1
1
|
import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
2
|
import t from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
3
|
-
import {
|
|
4
|
-
import { responded as p, onAuthRequired as
|
|
5
|
-
import { getServiceEndpoint as
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
8
|
-
import "../../algorithm/inspectionsAlgorithm.js";
|
|
9
|
-
import "../../algorithm/pulsationsAlgorithm.js";
|
|
10
|
-
import "../../algorithm/lisemsAlgorithm.js";
|
|
3
|
+
import { withConfigType as o, createApis as r, mountApis as i } from "./createApis.js";
|
|
4
|
+
import { responded as p, onAuthRequired as a } from "../../config/alova/index.js";
|
|
5
|
+
import { getServiceEndpoint as n, ServiceType as m } from "../../config/index.js";
|
|
6
|
+
import "./implement/index.js";
|
|
7
|
+
import "./globals.js";
|
|
11
8
|
const s = e({
|
|
12
|
-
baseURL:
|
|
9
|
+
baseURL: n(m.Patient),
|
|
13
10
|
requestAdapter: t(),
|
|
14
|
-
beforeRequest:
|
|
11
|
+
beforeRequest: a(() => {
|
|
15
12
|
}),
|
|
16
13
|
cacheFor: null,
|
|
17
14
|
responded: p
|
|
18
|
-
}), c =
|
|
19
|
-
|
|
15
|
+
}), c = o({}), f = r(s, c);
|
|
16
|
+
i(f);
|
|
20
17
|
export {
|
|
21
18
|
c as $$userConfigMap,
|
|
22
19
|
s as alovaInstance,
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import { NetworkObject as B, Tag as E, Sequence as C } from "../core/core.js";
|
|
2
2
|
import { arrayBufferToImageBase64 as w } from "../../util/image.js";
|
|
3
3
|
import { WaveMapSchema as h, WaveSchema as q } from "../../proto/types/WaveMap_pb.js";
|
|
4
|
+
import "../../../node_modules/@bufbuild/protobuf/dist/esm/index.js";
|
|
4
5
|
import { ImageSchema as g, ImagesSchema as P } from "../../proto/types/Images_pb.js";
|
|
5
6
|
import { Patient as S } from "./patient.js";
|
|
6
7
|
import { Builder as c } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
@@ -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 i } from "./createApis.js";
|
|
4
4
|
import { responded as p, onAuthRequired as a } from "../../config/alova/index.js";
|
|
5
5
|
import { getServiceEndpoint as n, ServiceType as s } from "../../config/index.js";
|
|
6
|
-
import "
|
|
7
|
-
|
|
6
|
+
import "./implement/index.js";
|
|
7
|
+
import "./globals.js";
|
|
8
|
+
const m = e({
|
|
8
9
|
baseURL: n(s.Prescription),
|
|
9
10
|
requestAdapter: o(),
|
|
10
11
|
beforeRequest: a(() => {
|
|
11
12
|
}),
|
|
12
13
|
cacheFor: null,
|
|
13
14
|
responded: p
|
|
14
|
-
}),
|
|
15
|
-
|
|
15
|
+
}), c = r({}), f = t(m, c);
|
|
16
|
+
i(f);
|
|
16
17
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
18
|
+
c as $$userConfigMap,
|
|
19
|
+
m as alovaInstance,
|
|
19
20
|
f as default
|
|
20
21
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
2
|
import t from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
3
|
-
import {
|
|
3
|
+
import { withConfigType as o, createApis as r, mountApis as i } from "./createApis.js";
|
|
4
4
|
import { responded as p, onAuthRequired as a } from "../../config/alova/index.js";
|
|
5
5
|
import { getServiceEndpoint as n, ServiceType as s } from "../../config/index.js";
|
|
6
|
-
import "
|
|
7
|
-
import "
|
|
6
|
+
import "./implement/index.js";
|
|
7
|
+
import "./globals.js";
|
|
8
8
|
const m = e({
|
|
9
9
|
baseURL: n(s.Scientist),
|
|
10
10
|
requestAdapter: t(),
|
|
@@ -12,8 +12,8 @@ const m = e({
|
|
|
12
12
|
}),
|
|
13
13
|
cacheFor: null,
|
|
14
14
|
responded: p
|
|
15
|
-
}), c =
|
|
16
|
-
|
|
15
|
+
}), c = o({}), f = r(m, c);
|
|
16
|
+
i(f);
|
|
17
17
|
export {
|
|
18
18
|
c as $$userConfigMap,
|
|
19
19
|
m as alovaInstance,
|
package/dist/src/index.d.ts
CHANGED
package/dist/src/index.js
CHANGED
|
@@ -1,36 +1,38 @@
|
|
|
1
|
-
import
|
|
1
|
+
import "./api/index.js";
|
|
2
|
+
import "./proto/index.js";
|
|
3
|
+
import * as r from "./api/algorithm/index.js";
|
|
2
4
|
import * as e from "./api/authorization/index.js";
|
|
3
|
-
import * as
|
|
4
|
-
import * as
|
|
5
|
-
import * as
|
|
6
|
-
import * as
|
|
7
|
-
import * as
|
|
8
|
-
import * as
|
|
9
|
-
import * as
|
|
10
|
-
import * as
|
|
11
|
-
import * as
|
|
12
|
-
import * as
|
|
13
|
-
import
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
5
|
+
import * as p from "./api/check/index.js";
|
|
6
|
+
import * as t from "./api/config/index.js";
|
|
7
|
+
import * as a from "./api/doctor/index.js";
|
|
8
|
+
import * as m from "./api/metric/index.js";
|
|
9
|
+
import * as s from "./api/oauth/index.js";
|
|
10
|
+
import * as x from "./api/outpatient/index.js";
|
|
11
|
+
import * as f from "./api/patient/index.js";
|
|
12
|
+
import * as n from "./api/prescription/index.js";
|
|
13
|
+
import * as A from "./api/scientist/index.js";
|
|
14
|
+
import * as d from "./api/device/device.js";
|
|
15
|
+
import * as c from "./api/core/index.js";
|
|
16
|
+
import { WaveMapSchema as g, WaveSchema as v, file_WaveMap as S } from "./proto/types/WaveMap_pb.js";
|
|
17
|
+
import { ImageSchema as u, ImagesSchema as C, file_Images as I } from "./proto/types/Images_pb.js";
|
|
16
18
|
export {
|
|
17
|
-
|
|
19
|
+
r as AlgorithmApi,
|
|
18
20
|
e as AuthorizationApi,
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
21
|
+
p as CheckApi,
|
|
22
|
+
t as ConfigApi,
|
|
23
|
+
c as CoreApi,
|
|
24
|
+
d as DeviceApi,
|
|
25
|
+
a as DoctorApi,
|
|
26
|
+
u as ImageSchema,
|
|
27
|
+
C as ImagesSchema,
|
|
28
|
+
m as MetricApi,
|
|
29
|
+
s as OAuthApi,
|
|
30
|
+
x as OutPatientApi,
|
|
31
|
+
f as PatientApi,
|
|
32
|
+
n as PrescriptionApi,
|
|
33
|
+
A as ScientistApi,
|
|
34
|
+
g as WaveMapSchema,
|
|
35
|
+
v as WaveSchema,
|
|
36
|
+
I as file_Images,
|
|
37
|
+
S as file_WaveMap
|
|
36
38
|
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { WaveMapSchema as m, WaveSchema as c, file_WaveMap as f } from "./types/WaveMap_pb.js";
|
|
2
|
+
import { ImageSchema as o, ImagesSchema as p, file_Images as r } from "./types/Images_pb.js";
|
|
3
|
+
export {
|
|
4
|
+
o as ImageSchema,
|
|
5
|
+
p as ImagesSchema,
|
|
6
|
+
m as WaveMapSchema,
|
|
7
|
+
c as WaveSchema,
|
|
8
|
+
r as file_Images,
|
|
9
|
+
f as file_WaveMap
|
|
10
|
+
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
-
import
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import "../../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js";
|
|
2
|
+
import { fileDesc as e } from "../../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js";
|
|
3
|
+
import { messageDesc as m } from "../../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js";
|
|
4
|
+
const o = /* @__PURE__ */ e(
|
|
4
5
|
"CgxJbWFnZXMucHJvdG8iFgoFSW1hZ2USDQoFYnl0ZXMYASABKAwiIAoGSW1hZ2VzEhYKBmltYWdlcxgBIAMoCzIGLkltYWdlYgZwcm90bzM"
|
|
5
|
-
), g = /* @__PURE__ */
|
|
6
|
+
), g = /* @__PURE__ */ m(o, 0), i = /* @__PURE__ */ m(o, 1);
|
|
6
7
|
export {
|
|
7
8
|
g as ImageSchema,
|
|
8
|
-
|
|
9
|
-
|
|
9
|
+
i as ImagesSchema,
|
|
10
|
+
o as file_Images
|
|
10
11
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
|
+
import "../../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/index.js";
|
|
1
2
|
import { fileDesc as d } from "../../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js";
|
|
2
3
|
import { messageDesc as A } from "../../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js";
|
|
3
4
|
const o = /* @__PURE__ */ d(
|
|
4
5
|
"Cg1XYXZlTWFwLnByb3RvIhYKBFdhdmUSDgoGdmFsdWVzGAEgAygBIsEBCgdXYXZlTWFwEiQKBm9yaWdpbhgBIAMoCzIULldhdmVNYXAuT3JpZ2luRW50cnkSJAoGc21vb3RoGAIgAygLMhQuV2F2ZU1hcC5TbW9vdGhFbnRyeRo0CgtPcmlnaW5FbnRyeRILCgNrZXkYASABKAkSFAoFdmFsdWUYAiABKAsyBS5XYXZlOgI4ARo0CgtTbW9vdGhFbnRyeRILCgNrZXkYASABKAkSFAoFdmFsdWUYAiABKAsyBS5XYXZlOgI4AWIGcHJvdG8z"
|
|
5
|
-
),
|
|
6
|
+
), F = /* @__PURE__ */ A(o, 0), W = /* @__PURE__ */ A(o, 1);
|
|
6
7
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
W as WaveMapSchema,
|
|
9
|
+
F as WaveSchema,
|
|
9
10
|
o as file_WaveMap
|
|
10
11
|
};
|
package/dist/src/util/helper.js
CHANGED
|
@@ -1,4 +1,34 @@
|
|
|
1
|
-
const
|
|
1
|
+
const n = {
|
|
2
|
+
/** 设置 token */
|
|
3
|
+
set: (e) => {
|
|
4
|
+
try {
|
|
5
|
+
return t() === "electron" ? window.electronAPI.setStoreItem("token", e) : window.localStorage.setItem("token", e), { success: !0 };
|
|
6
|
+
} catch (r) {
|
|
7
|
+
return console.error("设置 token 失败:", r), { success: !1, error: r };
|
|
8
|
+
}
|
|
9
|
+
},
|
|
10
|
+
/** 获取 token */
|
|
11
|
+
get: () => {
|
|
12
|
+
try {
|
|
13
|
+
return t() === "electron" ? window.electronAPI.getStoreItem("token") : window.localStorage.getItem("token");
|
|
14
|
+
} catch (e) {
|
|
15
|
+
return console.error("获取 token 失败:", e), null;
|
|
16
|
+
}
|
|
17
|
+
},
|
|
18
|
+
/** 移除 token */
|
|
19
|
+
remove: () => {
|
|
20
|
+
try {
|
|
21
|
+
return t() === "electron" ? window.electronAPI.setStoreItem("token", "") : window.localStorage.removeItem("token"), { success: !0 };
|
|
22
|
+
} catch (e) {
|
|
23
|
+
return console.error("移除 token 失败:", e), { success: !1, error: e };
|
|
24
|
+
}
|
|
25
|
+
},
|
|
26
|
+
/** 检查是否存在 token */
|
|
27
|
+
exists: () => {
|
|
28
|
+
const e = n.get();
|
|
29
|
+
return !!e && e !== "";
|
|
30
|
+
}
|
|
31
|
+
}, c = {
|
|
2
32
|
/** 设置存储项 */
|
|
3
33
|
setItem: (e, r) => {
|
|
4
34
|
try {
|
|
@@ -39,8 +69,14 @@ const c = {
|
|
|
39
69
|
} catch {
|
|
40
70
|
}
|
|
41
71
|
return "web";
|
|
72
|
+
}, l = {
|
|
73
|
+
tokenHelper: n,
|
|
74
|
+
storageHelper: c,
|
|
75
|
+
getPlatform: t
|
|
42
76
|
};
|
|
43
77
|
export {
|
|
78
|
+
l as default,
|
|
44
79
|
t as getPlatform,
|
|
45
|
-
c as storageHelper
|
|
80
|
+
c as storageHelper,
|
|
81
|
+
n as tokenHelper
|
|
46
82
|
};
|
package/dist/src/util/string.js
CHANGED
|
@@ -1,10 +1,52 @@
|
|
|
1
|
-
import "../../node_modules/pinyin/lib/esm/pinyin.js";
|
|
2
|
-
function
|
|
1
|
+
import u from "../../node_modules/pinyin/lib/esm/pinyin.js";
|
|
2
|
+
function g(t) {
|
|
3
3
|
if (!t)
|
|
4
4
|
return "";
|
|
5
|
-
const
|
|
6
|
-
return
|
|
5
|
+
const n = t.split(" ");
|
|
6
|
+
return n.length === 2 ? `${n[1]}${n[0]}` : t;
|
|
7
|
+
}
|
|
8
|
+
function p(t, n) {
|
|
9
|
+
if (!t) return [];
|
|
10
|
+
const e = t.toLowerCase();
|
|
11
|
+
return n.filter((i) => {
|
|
12
|
+
const r = i;
|
|
13
|
+
return r ? r.includes(e) || u(r, { style: u.STYLE_NORMAL }).map((o) => o[0]).join("").includes(e) ? !0 : c(r).includes(e) : !1;
|
|
14
|
+
});
|
|
15
|
+
}
|
|
16
|
+
function y(t, n) {
|
|
17
|
+
if (!t) return [];
|
|
18
|
+
const e = t.toLowerCase();
|
|
19
|
+
return n.map((i, r) => ({ option: i, index: r })).filter(({ option: i }) => {
|
|
20
|
+
const r = i;
|
|
21
|
+
return r ? r.includes(e) || u(r, { style: u.STYLE_NORMAL }).map((o) => o[0]).join("").includes(e) ? !0 : c(r).includes(e) : !1;
|
|
22
|
+
}).map(({ index: i }) => i);
|
|
23
|
+
}
|
|
24
|
+
function c(t) {
|
|
25
|
+
return t ? u(t, {
|
|
26
|
+
style: u.STYLE_NORMAL,
|
|
27
|
+
heteronym: !1
|
|
28
|
+
}).map((e) => e[0].charAt(0)).join("") : "";
|
|
29
|
+
}
|
|
30
|
+
function d(t) {
|
|
31
|
+
if (!/^\d{17}[\dXx]$/.test(t))
|
|
32
|
+
throw new Error("无效的身份证号码");
|
|
33
|
+
const n = t.substring(6, 14), e = `${n.substring(0, 4)}/${n.substring(4, 6)}/${n.substring(6, 8)}`, i = parseInt(n.substring(0, 4), 10), r = parseInt(n.substring(4, 6), 10) - 1, a = parseInt(n.substring(6, 8), 10), s = /* @__PURE__ */ new Date(), o = s.getFullYear() - i - (s.getMonth() < r || s.getMonth() === r && s.getDate() < a ? 1 : 0), l = parseInt(t.substring(16, 17), 10) % 2 === 1 ? "男" : "女";
|
|
34
|
+
return {
|
|
35
|
+
birthDate: e,
|
|
36
|
+
// 格式:YYYY-MM-DD
|
|
37
|
+
gender: l,
|
|
38
|
+
// '男' 或 '女'
|
|
39
|
+
age: o
|
|
40
|
+
// 周岁年龄
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
function h(t) {
|
|
44
|
+
return /^\d+$/.test(t);
|
|
7
45
|
}
|
|
8
46
|
export {
|
|
9
|
-
|
|
47
|
+
g as getName,
|
|
48
|
+
h as isNumber,
|
|
49
|
+
d as parseIdNumber,
|
|
50
|
+
p as pinyinFilter,
|
|
51
|
+
y as pinyinFilterIndex
|
|
10
52
|
};
|