web-core-tcm 0.0.25 → 0.0.27
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 +134 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js +70 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +14 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js +6 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js +10 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/create.js +136 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js +7 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +164 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +6 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +75 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +8 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +35 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +42 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +17 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +156 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +349 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +39 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +72 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/registry.js +551 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +159 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +58 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +350 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +25 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js +145 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +110 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +107 -0
- package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +24 -0
- package/dist/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +556 -0
- package/dist/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +36 -0
- package/dist/node_modules/@vue/shared/dist/shared.esm-bundler.js +26 -0
- package/dist/node_modules/alova/dist/adapter/fetch.esm.js +55 -0
- package/dist/node_modules/alova/dist/alova.esm.js +414 -0
- package/dist/node_modules/alova/dist/clienthook/index.esm.js +89 -0
- package/dist/node_modules/builder-pattern/dist/index.js +22 -0
- package/dist/node_modules/jwt-decode/build/esm/index.js +52 -0
- package/dist/node_modules/pinyin/lib/esm/pinyin.js +242260 -0
- package/dist/node_modules/punycode/punycode.es6.js +139 -0
- package/dist/node_modules/quasar/src/composables/use-quasar/use-quasar.js +8 -0
- package/dist/node_modules/quasar/src/utils/private.symbols/symbols.js +4 -0
- package/dist/src/api/algorithm/comprehensiveAlgorithm.d.ts +4 -0
- package/dist/src/api/algorithm/comprehensiveAlgorithm.js +16 -0
- package/dist/src/api/algorithm/index.d.ts +10 -0
- package/dist/src/api/algorithm/index.js +62 -0
- package/dist/src/api/algorithm/inquiriesAlgorithm.d.ts +13 -0
- package/dist/src/api/algorithm/inquiriesAlgorithm.js +9 -0
- package/dist/src/api/algorithm/inspectionsAlgorithm.d.ts +2 -0
- package/dist/src/api/algorithm/inspectionsAlgorithm.js +10 -0
- package/dist/src/api/algorithm/lisemsAlgorithm.d.ts +2 -0
- package/dist/src/api/algorithm/lisemsAlgorithm.js +15 -0
- package/dist/src/api/algorithm/pulsationsAlgorithm.d.ts +4 -0
- package/dist/src/api/algorithm/pulsationsAlgorithm.js +8 -0
- package/dist/src/api/authorization/alova/apiDefinitions.d.ts +21 -0
- package/dist/src/api/authorization/alova/apiDefinitions.js +9 -0
- package/dist/src/api/authorization/alova/createApis.d.ts +10 -0
- package/dist/src/api/authorization/alova/createApis.js +51 -0
- package/dist/src/api/authorization/alova/implement/authorization.d.ts +4 -0
- package/dist/src/api/authorization/alova/implement/authorization.js +15 -0
- package/dist/src/api/authorization/alova/index.d.ts +5 -0
- package/dist/src/api/authorization/alova/index.js +18 -0
- package/dist/src/api/authorization/authorization.d.ts +8 -0
- package/dist/src/api/authorization/authorization.js +16 -0
- package/dist/src/api/authorization/index.js +9 -0
- package/dist/src/api/check/alova/apiDefinitions.d.ts +28 -0
- package/dist/src/api/check/alova/apiDefinitions.js +16 -0
- package/dist/src/api/check/alova/createApis.d.ts +10 -0
- package/dist/src/api/check/alova/createApis.js +51 -0
- package/dist/src/api/check/alova/implement/check.d.ts +27 -0
- package/dist/src/api/check/alova/implement/check.js +119 -0
- package/dist/src/api/check/alova/index.d.ts +5 -0
- package/dist/src/api/check/alova/index.js +21 -0
- package/dist/src/api/check/check.d.ts +54 -0
- package/dist/src/api/check/check.js +131 -0
- package/dist/src/api/check/index.js +11 -0
- package/dist/src/api/config/alova/index.d.ts +5 -0
- package/dist/src/api/config/alova/index.js +55 -0
- package/dist/src/api/config/index.d.ts +23 -0
- package/dist/src/api/config/index.js +106 -0
- package/dist/src/api/device/device.d.ts +5 -0
- package/dist/src/api/device/device.js +46 -0
- package/dist/src/api/doctor/alova/apiDefinitions.d.ts +26 -0
- package/dist/src/api/doctor/alova/apiDefinitions.js +14 -0
- package/dist/src/api/doctor/alova/createApis.d.ts +10 -0
- package/dist/src/api/doctor/alova/createApis.js +51 -0
- package/dist/src/api/doctor/alova/implement/doctor.d.ts +7 -0
- package/dist/src/api/doctor/alova/implement/doctor.js +42 -0
- package/dist/src/api/doctor/alova/index.d.ts +5 -0
- package/dist/src/api/doctor/alova/index.js +20 -0
- package/dist/src/api/doctor/doctor.d.ts +22 -0
- package/dist/src/api/doctor/doctor.js +29 -0
- package/dist/src/api/doctor/index.js +9 -0
- package/dist/src/api/metric/implement/metric.d.ts +24 -0
- package/dist/src/api/metric/implement/metric.js +80 -0
- package/dist/src/api/metric/index.js +6 -0
- package/dist/src/api/metric/metric.d.ts +28 -0
- package/dist/src/api/metric/metric.js +75 -0
- package/dist/src/api/oauth/alova/apiDefinitions.d.ts +24 -0
- package/dist/src/api/oauth/alova/apiDefinitions.js +12 -0
- package/dist/src/api/oauth/alova/createApis.d.ts +10 -0
- package/dist/src/api/oauth/alova/createApis.js +51 -0
- package/dist/src/api/oauth/alova/implement/oauth.d.ts +4 -0
- package/dist/src/api/oauth/alova/implement/oauth.js +15 -0
- package/dist/src/api/oauth/alova/index.d.ts +5 -0
- package/dist/src/api/oauth/alova/index.js +17 -0
- package/dist/src/api/oauth/index.js +9 -0
- package/dist/src/api/oauth/oauth.d.ts +7 -0
- package/dist/src/api/oauth/oauth.js +16 -0
- package/dist/src/api/outpatient/alova/apiDefinitions.d.ts +25 -0
- package/dist/src/api/outpatient/alova/apiDefinitions.js +13 -0
- package/dist/src/api/outpatient/alova/createApis.d.ts +10 -0
- package/dist/src/api/outpatient/alova/createApis.js +51 -0
- package/dist/src/api/outpatient/alova/implement/outpatient.d.ts +10 -0
- package/dist/src/api/outpatient/alova/implement/outpatient.js +71 -0
- package/dist/src/api/outpatient/alova/index.d.ts +5 -0
- package/dist/src/api/outpatient/alova/index.js +21 -0
- package/dist/src/api/outpatient/index.js +11 -0
- package/dist/src/api/outpatient/outpatient.d.ts +39 -0
- package/dist/src/api/outpatient/outpatient.js +45 -0
- package/dist/src/api/patient/alova/apiDefinitions.d.ts +39 -0
- package/dist/src/api/patient/alova/apiDefinitions.js +27 -0
- package/dist/src/api/patient/alova/createApis.d.ts +10 -0
- package/dist/src/api/patient/alova/createApis.js +51 -0
- package/dist/src/api/patient/alova/implement/meta.d.ts +113 -0
- package/dist/src/api/patient/alova/implement/meta.js +404 -0
- package/dist/src/api/patient/alova/implement/patient.d.ts +22 -0
- package/dist/src/api/patient/alova/implement/patient.js +72 -0
- package/dist/src/api/patient/alova/index.d.ts +5 -0
- package/dist/src/api/patient/alova/index.js +22 -0
- package/dist/src/api/patient/core.d.ts +50 -0
- package/dist/src/api/patient/core.js +109 -0
- package/dist/src/api/patient/index.js +46 -0
- package/dist/src/api/patient/meta.d.ts +238 -0
- package/dist/src/api/patient/meta.js +454 -0
- package/dist/src/api/patient/patient.d.ts +43 -0
- package/dist/src/api/patient/patient.js +42 -0
- package/dist/src/api/prescription/alova/apiDefinitions.d.ts +27 -0
- package/dist/src/api/prescription/alova/apiDefinitions.js +15 -0
- package/dist/src/api/prescription/alova/createApis.d.ts +10 -0
- package/dist/src/api/prescription/alova/createApis.js +51 -0
- package/dist/src/api/prescription/alova/implement/herbal.d.ts +15 -0
- package/dist/src/api/prescription/alova/implement/herbal.js +54 -0
- package/dist/src/api/prescription/alova/implement/prescription.d.ts +15 -0
- package/dist/src/api/prescription/alova/implement/prescription.js +49 -0
- package/dist/src/api/prescription/alova/index.d.ts +5 -0
- package/dist/src/api/prescription/alova/index.js +20 -0
- package/dist/src/api/prescription/herbal.d.ts +19 -0
- package/dist/src/api/prescription/herbal.js +34 -0
- package/dist/src/api/prescription/index.js +13 -0
- package/dist/src/api/prescription/prescription.d.ts +26 -0
- package/dist/src/api/prescription/prescription.js +49 -0
- package/dist/src/api/scientist/alova/apiDefinitions.d.ts +25 -0
- package/dist/src/api/scientist/alova/apiDefinitions.js +13 -0
- package/dist/src/api/scientist/alova/createApis.d.ts +10 -0
- package/dist/src/api/scientist/alova/createApis.js +51 -0
- package/dist/src/api/scientist/alova/implement/scientist.d.ts +6 -0
- package/dist/src/api/scientist/alova/implement/scientist.js +35 -0
- package/dist/src/api/scientist/alova/index.d.ts +6 -0
- package/dist/src/api/scientist/alova/index.js +21 -0
- package/dist/src/api/scientist/index.js +9 -0
- package/dist/src/api/scientist/scientist.d.ts +20 -0
- package/dist/src/api/scientist/scientist.js +37 -0
- package/dist/src/components/models.d.ts +7 -0
- package/dist/src/index.js +36 -0
- package/dist/src/pages/LoginPage.vue.d.ts +2 -0
- package/dist/src/proto/types/Images_pb.d.ts +34 -0
- package/dist/src/proto/types/Images_pb.js +10 -0
- package/dist/src/proto/types/WaveMap_pb.d.ts +48 -0
- package/dist/src/proto/types/WaveMap_pb.js +10 -0
- package/dist/src/router/index.d.ts +2 -0
- package/dist/src/router/routes.d.ts +3 -0
- package/dist/src/util/RichTextUtil.d.ts +1 -0
- package/dist/src/util/RichTextUtil.js +6 -0
- package/dist/src/util/datetime.d.ts +5 -0
- package/dist/src/util/export.d.ts +4 -0
- package/dist/src/util/helper.d.ts +65 -0
- package/dist/src/util/helper.js +46 -0
- package/dist/src/util/image.d.ts +2 -0
- package/dist/src/util/image.js +17 -0
- package/dist/src/util/number.d.ts +12 -0
- package/dist/src/util/s256.d.ts +2 -0
- package/dist/src/util/secret.d.ts +10 -0
- package/dist/src/util/string.d.ts +21 -0
- package/dist/src/util/string.js +10 -0
- package/package.json +5 -2
- package/.editorconfig +0 -7
- package/.github/workflows/test.yml +0 -29
- package/.prettierrc.json +0 -5
- package/.vscode/extensions.json +0 -15
- package/.vscode/settings.json +0 -9
- package/eslint.config.js +0 -83
- package/index.html +0 -24
- package/postcss.config.js +0 -29
- package/quasar.config.ts +0 -233
- package/src/App.vue +0 -7
- package/src/api/algorithm/comprehensiveAlgorithm.ts +0 -20
- package/src/api/algorithm/index.ts +0 -50
- package/src/api/algorithm/inquiriesAlgorithm.ts +0 -16
- package/src/api/algorithm/inspectionsAlgorithm.ts +0 -11
- package/src/api/algorithm/lisemsAlgorithm.ts +0 -16
- package/src/api/algorithm/pulsationsAlgorithm.ts +0 -8
- package/src/api/authorization/alova/apiDefinitions.ts +0 -23
- package/src/api/authorization/alova/createApis.ts +0 -114
- package/src/api/authorization/alova/globals.d.ts +0 -394
- package/src/api/authorization/alova/implement/authorization.ts +0 -14
- package/src/api/authorization/alova/index.ts +0 -22
- package/src/api/authorization/authorization.ts +0 -16
- package/src/api/check/alova/apiDefinitions.ts +0 -30
- package/src/api/check/alova/createApis.ts +0 -114
- package/src/api/check/alova/globals.d.ts +0 -1257
- package/src/api/check/alova/implement/check.ts +0 -165
- package/src/api/check/alova/index.ts +0 -22
- package/src/api/check/check.ts +0 -217
- package/src/api/config/alova/index.ts +0 -71
- package/src/api/config/index.ts +0 -132
- package/src/api/device/device.js +0 -58
- package/src/api/doctor/alova/apiDefinitions.ts +0 -28
- package/src/api/doctor/alova/createApis.ts +0 -114
- package/src/api/doctor/alova/globals.d.ts +0 -559
- package/src/api/doctor/alova/implement/doctor.ts +0 -51
- package/src/api/doctor/alova/index.ts +0 -23
- package/src/api/doctor/doctor.ts +0 -53
- package/src/api/metric/implement/metric.ts +0 -108
- package/src/api/metric/metric.ts +0 -114
- package/src/api/oauth/alova/apiDefinitions.ts +0 -26
- package/src/api/oauth/alova/createApis.ts +0 -114
- package/src/api/oauth/alova/globals.d.ts +0 -460
- package/src/api/oauth/alova/implement/oauth.ts +0 -24
- package/src/api/oauth/alova/index.ts +0 -21
- package/src/api/oauth/oauth.ts +0 -19
- package/src/api/outpatient/alova/apiDefinitions.ts +0 -27
- package/src/api/outpatient/alova/createApis.ts +0 -114
- package/src/api/outpatient/alova/globals.d.ts +0 -685
- package/src/api/outpatient/alova/implement/outpatient.ts +0 -91
- package/src/api/outpatient/alova/index.ts +0 -22
- package/src/api/outpatient/outpatient.ts +0 -67
- package/src/api/patient/alova/apiDefinitions.ts +0 -41
- package/src/api/patient/alova/createApis.ts +0 -114
- package/src/api/patient/alova/globals.d.ts +0 -1690
- package/src/api/patient/alova/implement/meta.ts +0 -517
- package/src/api/patient/alova/implement/patient.ts +0 -99
- package/src/api/patient/alova/index.ts +0 -22
- package/src/api/patient/core.ts +0 -133
- package/src/api/patient/meta.ts +0 -570
- package/src/api/patient/patient.ts +0 -98
- package/src/api/prescription/alova/apiDefinitions.ts +0 -29
- package/src/api/prescription/alova/createApis.ts +0 -114
- package/src/api/prescription/alova/globals.d.ts +0 -968
- package/src/api/prescription/alova/implement/herbal.ts +0 -68
- package/src/api/prescription/alova/implement/prescription.ts +0 -62
- package/src/api/prescription/alova/index.ts +0 -22
- package/src/api/prescription/herbal.ts +0 -51
- package/src/api/prescription/prescription.ts +0 -76
- package/src/api/scientist/alova/apiDefinitions.ts +0 -27
- package/src/api/scientist/alova/createApis.ts +0 -114
- package/src/api/scientist/alova/globals.d.ts +0 -447
- package/src/api/scientist/alova/implement/scientist.ts +0 -40
- package/src/api/scientist/alova/index.ts +0 -24
- package/src/api/scientist/scientist.ts +0 -49
- package/src/assets/quasar-logo-vertical.svg +0 -15
- package/src/boot/.gitkeep +0 -0
- package/src/components/ExampleComponent.vue +0 -37
- package/src/components/models.ts +0 -8
- package/src/css/app.scss +0 -1
- package/src/css/quasar.variables.scss +0 -25
- package/src/env.d.ts +0 -7
- package/src/layouts/UserLayout.vue +0 -108
- package/src/pages/LoginPage.vue +0 -29
- package/src/proto/Images.proto +0 -7
- package/src/proto/WaveMap.proto +0 -10
- package/src/proto/types/Images_pb.ts +0 -48
- package/src/proto/types/WaveMap_pb.ts +0 -59
- package/src/router/index.ts +0 -37
- package/src/router/routes.ts +0 -14
- package/src/util/RichTextUtil.ts +0 -5
- package/src/util/datetime.ts +0 -43
- package/src/util/export.ts +0 -46
- package/src/util/helper.ts +0 -159
- package/src/util/image.ts +0 -28
- package/src/util/number.ts +0 -146
- package/src/util/s256.js +0 -27
- package/src/util/secret.ts +0 -60
- package/src/util/string.ts +0 -121
- package/tsconfig.json +0 -7
- /package/{public → dist}/favicon.ico +0 -0
- /package/{public → dist}/icons/favicon-128x128.png +0 -0
- /package/{public → dist}/icons/favicon-16x16.png +0 -0
- /package/{public → dist}/icons/favicon-32x32.png +0 -0
- /package/{public → dist}/icons/favicon-96x96.png +0 -0
- /package/{src/api/authorization/alova/implement/index.ts → dist/src/api/authorization/alova/implement/index.d.ts} +0 -0
- /package/{src/api/authorization/index.ts → dist/src/api/authorization/index.d.ts} +0 -0
- /package/{src/api/check/alova/implement/index.ts → dist/src/api/check/alova/implement/index.d.ts} +0 -0
- /package/{src/api/check/index.ts → dist/src/api/check/index.d.ts} +0 -0
- /package/{src/api/doctor/alova/implement/index.ts → dist/src/api/doctor/alova/implement/index.d.ts} +0 -0
- /package/{src/api/doctor/index.ts → dist/src/api/doctor/index.d.ts} +0 -0
- /package/{src/api/index.ts → dist/src/api/index.d.ts} +0 -0
- /package/{src/api/metric/implement/index.ts → dist/src/api/metric/implement/index.d.ts} +0 -0
- /package/{src/api/metric/index.ts → dist/src/api/metric/index.d.ts} +0 -0
- /package/{src/api/oauth/alova/implement/index.ts → dist/src/api/oauth/alova/implement/index.d.ts} +0 -0
- /package/{src/api/oauth/index.ts → dist/src/api/oauth/index.d.ts} +0 -0
- /package/{src/api/outpatient/alova/implement/index.ts → dist/src/api/outpatient/alova/implement/index.d.ts} +0 -0
- /package/{src/api/outpatient/index.ts → dist/src/api/outpatient/index.d.ts} +0 -0
- /package/{src/api/patient/alova/implement/index.ts → dist/src/api/patient/alova/implement/index.d.ts} +0 -0
- /package/{src/api/patient/index.ts → dist/src/api/patient/index.d.ts} +0 -0
- /package/{src/api/prescription/alova/implement/index.ts → dist/src/api/prescription/alova/implement/index.d.ts} +0 -0
- /package/{src/api/prescription/index.ts → dist/src/api/prescription/index.d.ts} +0 -0
- /package/{src/api/scientist/alova/implement/index.ts → dist/src/api/scientist/alova/implement/index.d.ts} +0 -0
- /package/{src/api/scientist/index.ts → dist/src/api/scientist/index.d.ts} +0 -0
- /package/{src/index.ts → dist/src/index.d.ts} +0 -0
- /package/{src/proto/index.ts → dist/src/proto/index.d.ts} +0 -0
|
@@ -0,0 +1,454 @@
|
|
|
1
|
+
import { NetworkObject as B, Tag as E, Sequence as C } from "./core.js";
|
|
2
|
+
import { arrayBufferToImageBase64 as w } from "../../util/image.js";
|
|
3
|
+
import { WaveMapSchema as h, WaveSchema as q } from "../../proto/types/WaveMap_pb.js";
|
|
4
|
+
import { ImageSchema as g, ImagesSchema as P } from "../../proto/types/Images_pb.js";
|
|
5
|
+
import { Patient as S } from "./patient.js";
|
|
6
|
+
import { Builder as c } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
7
|
+
import { toBinary as m } from "../../../node_modules/@bufbuild/protobuf/dist/esm/to-binary.js";
|
|
8
|
+
import { fromBinary as T } from "../../../node_modules/@bufbuild/protobuf/dist/esm/from-binary.js";
|
|
9
|
+
import { create as l } from "../../../node_modules/@bufbuild/protobuf/dist/esm/create.js";
|
|
10
|
+
var y = /* @__PURE__ */ ((a) => (a.Pulsation = "pulsation", a.Tongue = "tongue", a.Appendix = "appendix", a.PPG = "ppg", a.PCG = "pcg", a.ECG = "ecg", a.Scene = "scene", a.Face = "face", a.Complaint = "complaint", a.Meta = "meta", a))(y || {});
|
|
11
|
+
class p extends B {
|
|
12
|
+
static builder() {
|
|
13
|
+
return c(this._default);
|
|
14
|
+
}
|
|
15
|
+
static default() {
|
|
16
|
+
return this._default;
|
|
17
|
+
}
|
|
18
|
+
id = "";
|
|
19
|
+
owner = S.builder().build();
|
|
20
|
+
type = "face";
|
|
21
|
+
tags = [];
|
|
22
|
+
createdTimestamp = "0";
|
|
23
|
+
updatedTimestamp = "0";
|
|
24
|
+
isSelected = !1;
|
|
25
|
+
async of(t) {
|
|
26
|
+
return t.id != null && (this.id = t.id), t.ownerState != null && (this.owner = await S.builder().build().of(t.ownerState)), t.tagsState != null && (this.tags = await Promise.all(t.tagsState.map((e) => E.builder().build().of(e)))), t.createdTimestamp != null && (this.createdTimestamp = t.createdTimestamp), t.updatedTimestamp != null && (this.updatedTimestamp = t.updatedTimestamp), t.type != null && (this.type = t.type), Promise.resolve(this);
|
|
27
|
+
}
|
|
28
|
+
state() {
|
|
29
|
+
return {
|
|
30
|
+
id: this.id,
|
|
31
|
+
ownerState: this.owner.state(),
|
|
32
|
+
type: this.type,
|
|
33
|
+
tagsState: this.tags.map((t) => t.state()),
|
|
34
|
+
createdTimestamp: this.createdTimestamp,
|
|
35
|
+
updatedTimestamp: this.updatedTimestamp
|
|
36
|
+
};
|
|
37
|
+
}
|
|
38
|
+
getTagValue(t) {
|
|
39
|
+
const e = this.tags.find((s) => s.key == t)?.getLastAnnotation();
|
|
40
|
+
return e ? e.value : "";
|
|
41
|
+
}
|
|
42
|
+
putTags() {
|
|
43
|
+
return patientApi.metaStateRestful.putMetaState({
|
|
44
|
+
pathParams: {
|
|
45
|
+
id: this.id
|
|
46
|
+
},
|
|
47
|
+
data: {
|
|
48
|
+
id: this.id,
|
|
49
|
+
tagsState: this.tags.map((t) => t.state())
|
|
50
|
+
}
|
|
51
|
+
});
|
|
52
|
+
}
|
|
53
|
+
addTag(t) {
|
|
54
|
+
return this.tags.push(t), this.putTags();
|
|
55
|
+
}
|
|
56
|
+
removeTag(t) {
|
|
57
|
+
return this.tags.splice(this.tags.indexOf(t), 1), this.putTags();
|
|
58
|
+
}
|
|
59
|
+
static queryMetaWithPatient(t, e, s, i, r, n, o, d, x, v, _, M, f) {
|
|
60
|
+
return this.default().queryMetaWithPatient(
|
|
61
|
+
t,
|
|
62
|
+
e,
|
|
63
|
+
s,
|
|
64
|
+
i,
|
|
65
|
+
r,
|
|
66
|
+
n,
|
|
67
|
+
o,
|
|
68
|
+
d,
|
|
69
|
+
x,
|
|
70
|
+
v,
|
|
71
|
+
_,
|
|
72
|
+
M,
|
|
73
|
+
f
|
|
74
|
+
);
|
|
75
|
+
}
|
|
76
|
+
static query(t, e, s, i, r, n, o = "createdTimestamp:asc") {
|
|
77
|
+
return this.default().query(t, e, s, i, r, n, o);
|
|
78
|
+
}
|
|
79
|
+
static queryMetaStateByExactMatch(t, e, s, i, r, n, o, d) {
|
|
80
|
+
return this.default().queryMetaStateByExactMatch(
|
|
81
|
+
t,
|
|
82
|
+
e,
|
|
83
|
+
s,
|
|
84
|
+
i,
|
|
85
|
+
r,
|
|
86
|
+
n,
|
|
87
|
+
o,
|
|
88
|
+
d
|
|
89
|
+
);
|
|
90
|
+
}
|
|
91
|
+
}
|
|
92
|
+
class A extends p {
|
|
93
|
+
image;
|
|
94
|
+
base64Image = "";
|
|
95
|
+
// 测试序列化往返
|
|
96
|
+
serialize() {
|
|
97
|
+
if (!this.image) throw new Error("not found");
|
|
98
|
+
return m(g, this.image).buffer;
|
|
99
|
+
}
|
|
100
|
+
deserialize(t) {
|
|
101
|
+
return this.image = T(g, new Uint8Array(t)), this.base64Image = w(this.image.bytes), this.base64Image;
|
|
102
|
+
}
|
|
103
|
+
inject(t) {
|
|
104
|
+
return t && (this.image = l(g, {
|
|
105
|
+
bytes: new Uint8Array(t)
|
|
106
|
+
}), this.base64Image = w(new Uint8Array(t))), Promise.resolve(this);
|
|
107
|
+
}
|
|
108
|
+
}
|
|
109
|
+
class z extends p {
|
|
110
|
+
images;
|
|
111
|
+
base64Images = [];
|
|
112
|
+
serialize() {
|
|
113
|
+
if (!this.images) throw new Error("not found");
|
|
114
|
+
return m(P, this.images).buffer;
|
|
115
|
+
}
|
|
116
|
+
deserialize(t) {
|
|
117
|
+
return this.images = T(P, new Uint8Array(t)), this.base64Images = this.images.images.map((e) => w(e.bytes)), this.base64Images;
|
|
118
|
+
}
|
|
119
|
+
inject(t) {
|
|
120
|
+
return t && (this.images = l(P, {
|
|
121
|
+
images: t.map((e) => l(g, {
|
|
122
|
+
bytes: new Uint8Array(e)
|
|
123
|
+
}))
|
|
124
|
+
}), this.base64Images = t.map((e) => w(new Uint8Array(e)))), Promise.resolve(this);
|
|
125
|
+
}
|
|
126
|
+
}
|
|
127
|
+
class F extends p {
|
|
128
|
+
text = "";
|
|
129
|
+
constructor() {
|
|
130
|
+
super();
|
|
131
|
+
}
|
|
132
|
+
serialize() {
|
|
133
|
+
return new TextEncoder().encode(this.text).buffer;
|
|
134
|
+
}
|
|
135
|
+
deserialize(t) {
|
|
136
|
+
return this.text = new TextDecoder().decode(t), this.text;
|
|
137
|
+
}
|
|
138
|
+
inject(t) {
|
|
139
|
+
return t && (this.text = t), Promise.resolve(this);
|
|
140
|
+
}
|
|
141
|
+
}
|
|
142
|
+
class b extends p {
|
|
143
|
+
waves;
|
|
144
|
+
serialize() {
|
|
145
|
+
if (console.log("serialize", this.waves), this.waves && (console.log("seruia"), console.log(m(h, this.waves), m(h, this.waves).buffer), console.log("sss")), !this.waves) throw new Error("not found");
|
|
146
|
+
return m(h, this.waves).buffer;
|
|
147
|
+
}
|
|
148
|
+
deserialize(t) {
|
|
149
|
+
return this.waves = T(h, new Uint8Array(t)), this.waves;
|
|
150
|
+
}
|
|
151
|
+
async inject(t, e) {
|
|
152
|
+
return !e && t && (e = await this.preprocess(t)), console.log(t, e), t && e && (console.log(this.waves), this.waves = l(h, {
|
|
153
|
+
origin: Object.fromEntries(
|
|
154
|
+
Object.entries(t).map(([s, i]) => [
|
|
155
|
+
s,
|
|
156
|
+
l(q, {
|
|
157
|
+
values: i
|
|
158
|
+
})
|
|
159
|
+
])
|
|
160
|
+
),
|
|
161
|
+
smooth: Object.fromEntries(
|
|
162
|
+
Object.entries(e).map(([s, i]) => [
|
|
163
|
+
s,
|
|
164
|
+
l(q, {
|
|
165
|
+
values: i
|
|
166
|
+
})
|
|
167
|
+
])
|
|
168
|
+
)
|
|
169
|
+
}), console.log(this.waves)), Promise.resolve(this);
|
|
170
|
+
}
|
|
171
|
+
}
|
|
172
|
+
class O extends A {
|
|
173
|
+
static builder() {
|
|
174
|
+
return c(this._default);
|
|
175
|
+
}
|
|
176
|
+
static default() {
|
|
177
|
+
return this._default;
|
|
178
|
+
}
|
|
179
|
+
constructor() {
|
|
180
|
+
super(), this.type = "tongue";
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
class U extends A {
|
|
184
|
+
static builder() {
|
|
185
|
+
return c(this._default);
|
|
186
|
+
}
|
|
187
|
+
static default() {
|
|
188
|
+
return this._default;
|
|
189
|
+
}
|
|
190
|
+
constructor() {
|
|
191
|
+
super(), this.type = "face";
|
|
192
|
+
}
|
|
193
|
+
}
|
|
194
|
+
class W extends A {
|
|
195
|
+
static builder() {
|
|
196
|
+
return c(this._default);
|
|
197
|
+
}
|
|
198
|
+
static default() {
|
|
199
|
+
return this._default;
|
|
200
|
+
}
|
|
201
|
+
constructor() {
|
|
202
|
+
super(), this.type = "scene";
|
|
203
|
+
}
|
|
204
|
+
}
|
|
205
|
+
class G extends b {
|
|
206
|
+
static builder() {
|
|
207
|
+
return c(this._default);
|
|
208
|
+
}
|
|
209
|
+
static default() {
|
|
210
|
+
return this._default;
|
|
211
|
+
}
|
|
212
|
+
constructor() {
|
|
213
|
+
super(), this.type = "pulsation";
|
|
214
|
+
}
|
|
215
|
+
}
|
|
216
|
+
class D extends b {
|
|
217
|
+
static builder() {
|
|
218
|
+
return c(this._default);
|
|
219
|
+
}
|
|
220
|
+
static default() {
|
|
221
|
+
return this._default;
|
|
222
|
+
}
|
|
223
|
+
constructor() {
|
|
224
|
+
super(), this.type = "ppg";
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
class k extends b {
|
|
228
|
+
static builder() {
|
|
229
|
+
return c(this._default);
|
|
230
|
+
}
|
|
231
|
+
static default() {
|
|
232
|
+
return this._default;
|
|
233
|
+
}
|
|
234
|
+
constructor() {
|
|
235
|
+
super(), this.type = "pcg";
|
|
236
|
+
}
|
|
237
|
+
}
|
|
238
|
+
class j extends b {
|
|
239
|
+
static builder() {
|
|
240
|
+
return c(this._default);
|
|
241
|
+
}
|
|
242
|
+
static default() {
|
|
243
|
+
return this._default;
|
|
244
|
+
}
|
|
245
|
+
constructor() {
|
|
246
|
+
super(), this.type = "ecg";
|
|
247
|
+
}
|
|
248
|
+
}
|
|
249
|
+
class L extends z {
|
|
250
|
+
static builder() {
|
|
251
|
+
return c(this._default);
|
|
252
|
+
}
|
|
253
|
+
static default() {
|
|
254
|
+
return this._default;
|
|
255
|
+
}
|
|
256
|
+
constructor() {
|
|
257
|
+
super(), this.type = "appendix";
|
|
258
|
+
}
|
|
259
|
+
}
|
|
260
|
+
class N extends F {
|
|
261
|
+
static builder() {
|
|
262
|
+
return c(this._default);
|
|
263
|
+
}
|
|
264
|
+
static default() {
|
|
265
|
+
return this._default;
|
|
266
|
+
}
|
|
267
|
+
constructor() {
|
|
268
|
+
super(), this.type = "complaint";
|
|
269
|
+
}
|
|
270
|
+
}
|
|
271
|
+
class u extends C {
|
|
272
|
+
type;
|
|
273
|
+
owner;
|
|
274
|
+
expand = !1;
|
|
275
|
+
constructor(t, e) {
|
|
276
|
+
super(), this.type = t, e && (this.owner = e);
|
|
277
|
+
}
|
|
278
|
+
init(t) {
|
|
279
|
+
this.clear(), this.owner = S.builder().id(t.id).build();
|
|
280
|
+
}
|
|
281
|
+
async query(t, e, s, i, r) {
|
|
282
|
+
return this.clear(), this.append(t, e, s, i, r);
|
|
283
|
+
}
|
|
284
|
+
async append(t, e, s, i, r) {
|
|
285
|
+
const n = await p.query(
|
|
286
|
+
t,
|
|
287
|
+
e,
|
|
288
|
+
this.owner,
|
|
289
|
+
this.type,
|
|
290
|
+
s,
|
|
291
|
+
i,
|
|
292
|
+
r
|
|
293
|
+
);
|
|
294
|
+
return this.data.unshift(...n.data.reverse()), n;
|
|
295
|
+
}
|
|
296
|
+
async appendMetaWithPatient(t, e, s, i, r, n, o, d, x, v, _, M) {
|
|
297
|
+
const f = await p.queryMetaWithPatient(
|
|
298
|
+
t,
|
|
299
|
+
e,
|
|
300
|
+
this.owner,
|
|
301
|
+
s,
|
|
302
|
+
i,
|
|
303
|
+
r,
|
|
304
|
+
n,
|
|
305
|
+
o,
|
|
306
|
+
d,
|
|
307
|
+
x,
|
|
308
|
+
v,
|
|
309
|
+
_,
|
|
310
|
+
M
|
|
311
|
+
);
|
|
312
|
+
return this.data.unshift(...f.data.reverse()), f;
|
|
313
|
+
}
|
|
314
|
+
}
|
|
315
|
+
const R = {
|
|
316
|
+
face: { type: U, name: "面象", icon: "face", color: "#FF6B6B" },
|
|
317
|
+
tongue: { type: O, name: "舌象", icon: "face", color: "#4ECDC4" },
|
|
318
|
+
complaint: { type: N, name: "主诉", icon: "message", color: "#FFD166" },
|
|
319
|
+
pulsation: { type: G, name: "脉象", icon: "ssid_chart", color: "#06D6A0" },
|
|
320
|
+
ecg: { type: j, name: "心电", icon: "ssid_chart", color: "#118AB2" },
|
|
321
|
+
pcg: { type: k, name: "心音", icon: "ssid_chart", color: "#073B4C" },
|
|
322
|
+
ppg: { type: D, name: "心光", icon: "ssid_chart", color: "#7209B7" },
|
|
323
|
+
scene: { type: W, name: "场景", icon: "house", color: "#F72585" },
|
|
324
|
+
appendix: { type: L, name: "附件", icon: "folder_open", color: "#3A86FF" },
|
|
325
|
+
meta: { type: p, name: "元", icon: "tag", color: "#8338EC" }
|
|
326
|
+
};
|
|
327
|
+
class I {
|
|
328
|
+
static _default;
|
|
329
|
+
static builder() {
|
|
330
|
+
return c(this._default);
|
|
331
|
+
}
|
|
332
|
+
static default() {
|
|
333
|
+
return this._default;
|
|
334
|
+
}
|
|
335
|
+
face = new u(
|
|
336
|
+
"face"
|
|
337
|
+
/* Face */
|
|
338
|
+
);
|
|
339
|
+
tongue = new u(
|
|
340
|
+
"tongue"
|
|
341
|
+
/* Tongue */
|
|
342
|
+
);
|
|
343
|
+
complaint = new u(
|
|
344
|
+
"complaint"
|
|
345
|
+
/* Complaint */
|
|
346
|
+
);
|
|
347
|
+
pulsation = new u(
|
|
348
|
+
"pulsation"
|
|
349
|
+
/* Pulsation */
|
|
350
|
+
);
|
|
351
|
+
ecg = new u(
|
|
352
|
+
"ecg"
|
|
353
|
+
/* ECG */
|
|
354
|
+
);
|
|
355
|
+
pcg = new u(
|
|
356
|
+
"pcg"
|
|
357
|
+
/* PCG */
|
|
358
|
+
);
|
|
359
|
+
ppg = new u(
|
|
360
|
+
"ppg"
|
|
361
|
+
/* PPG */
|
|
362
|
+
);
|
|
363
|
+
scene = new u(
|
|
364
|
+
"scene"
|
|
365
|
+
/* Scene */
|
|
366
|
+
);
|
|
367
|
+
appendix = new u(
|
|
368
|
+
"appendix"
|
|
369
|
+
/* Appendix */
|
|
370
|
+
);
|
|
371
|
+
meta = new u(
|
|
372
|
+
"meta"
|
|
373
|
+
/* Meta */
|
|
374
|
+
);
|
|
375
|
+
faces = this.face;
|
|
376
|
+
tongues = this.tongue;
|
|
377
|
+
complaints = this.complaint;
|
|
378
|
+
pulsations = this.pulsation;
|
|
379
|
+
ecgs = this.ecg;
|
|
380
|
+
pcgs = this.pcg;
|
|
381
|
+
ppgs = this.ppg;
|
|
382
|
+
scenes = this.scene;
|
|
383
|
+
appendixes = this.appendix;
|
|
384
|
+
metas = this.meta;
|
|
385
|
+
constructor(t) {
|
|
386
|
+
t && this.addMetas(t);
|
|
387
|
+
}
|
|
388
|
+
init(t) {
|
|
389
|
+
for (const e of Object.values(y))
|
|
390
|
+
this[e].init(t);
|
|
391
|
+
return this;
|
|
392
|
+
}
|
|
393
|
+
async query(t, e, s, i, r) {
|
|
394
|
+
for (const n of Object.values(y)) {
|
|
395
|
+
const o = await this[n].query(t, e, s, i, r);
|
|
396
|
+
for (const d of o.data)
|
|
397
|
+
this[n].data.push(d);
|
|
398
|
+
}
|
|
399
|
+
return this;
|
|
400
|
+
}
|
|
401
|
+
addMetas(t) {
|
|
402
|
+
for (const e of t)
|
|
403
|
+
this.addMeta(e);
|
|
404
|
+
return this;
|
|
405
|
+
}
|
|
406
|
+
addMeta(t) {
|
|
407
|
+
const e = this[t.type].data.find((s) => s.id == t.id);
|
|
408
|
+
return e ? e.of(t) : this[t.type].data.unshift(t), this;
|
|
409
|
+
}
|
|
410
|
+
clear() {
|
|
411
|
+
for (const t of Object.values(y))
|
|
412
|
+
this[t].clear();
|
|
413
|
+
}
|
|
414
|
+
static map(t) {
|
|
415
|
+
return I.default().map(t);
|
|
416
|
+
}
|
|
417
|
+
static mapText(t) {
|
|
418
|
+
return R[t].name;
|
|
419
|
+
}
|
|
420
|
+
static standards() {
|
|
421
|
+
return [
|
|
422
|
+
"face",
|
|
423
|
+
"tongue",
|
|
424
|
+
"complaint",
|
|
425
|
+
"pulsation",
|
|
426
|
+
"ecg",
|
|
427
|
+
"pcg",
|
|
428
|
+
"ppg",
|
|
429
|
+
"scene",
|
|
430
|
+
"appendix"
|
|
431
|
+
/* Appendix */
|
|
432
|
+
];
|
|
433
|
+
}
|
|
434
|
+
}
|
|
435
|
+
export {
|
|
436
|
+
L as AppendixMeta,
|
|
437
|
+
N as ComplaintMeta,
|
|
438
|
+
j as ECGMeta,
|
|
439
|
+
U as FaceMeta,
|
|
440
|
+
A as ImageMeta,
|
|
441
|
+
z as ImagesMeta,
|
|
442
|
+
p as Meta,
|
|
443
|
+
u as MetaSequence,
|
|
444
|
+
y as MetaType,
|
|
445
|
+
R as MetaTypeConfig,
|
|
446
|
+
I as Metas,
|
|
447
|
+
k as PCGMeta,
|
|
448
|
+
D as PPGMeta,
|
|
449
|
+
G as PulsationMeta,
|
|
450
|
+
W as SceneMeta,
|
|
451
|
+
F as TextMeta,
|
|
452
|
+
O as TongueMeta,
|
|
453
|
+
b as WavesMeta
|
|
454
|
+
};
|
|
@@ -0,0 +1,43 @@
|
|
|
1
|
+
import { Page, Tag, NetworkObject } from './core';
|
|
2
|
+
import { PatientState } from './alova/globals';
|
|
3
|
+
import { Metas } from './meta';
|
|
4
|
+
import { IBuilder } from 'builder-pattern';
|
|
5
|
+
export declare abstract class Patient extends NetworkObject {
|
|
6
|
+
static builder(): IBuilder<Patient>;
|
|
7
|
+
static default(): typeof Patient;
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
gender: string;
|
|
11
|
+
phoneNumber: string;
|
|
12
|
+
birthdate: string;
|
|
13
|
+
identity: string;
|
|
14
|
+
age: number;
|
|
15
|
+
tags: Tag[];
|
|
16
|
+
remarks: string[];
|
|
17
|
+
doctorId: string;
|
|
18
|
+
createdTimestamp: string;
|
|
19
|
+
updatedTimestamp: string;
|
|
20
|
+
mainSymptom: string;
|
|
21
|
+
metas: Metas;
|
|
22
|
+
init(id?: string, metas?: Metas): void;
|
|
23
|
+
of(json: PatientState): Promise<this>;
|
|
24
|
+
state(): PatientState;
|
|
25
|
+
abstract get(): Promise<this>;
|
|
26
|
+
abstract put(): Promise<this>;
|
|
27
|
+
abstract post(): Promise<this>;
|
|
28
|
+
abstract delete(): Promise<this>;
|
|
29
|
+
abstract putRemarks(): Promise<this>;
|
|
30
|
+
static query(params: {
|
|
31
|
+
id?: string;
|
|
32
|
+
doctorId?: string;
|
|
33
|
+
name?: string;
|
|
34
|
+
gender?: string;
|
|
35
|
+
identity?: string;
|
|
36
|
+
pageSize: number;
|
|
37
|
+
page: number;
|
|
38
|
+
phoneNumber?: string;
|
|
39
|
+
startTime?: string;
|
|
40
|
+
endTime?: string;
|
|
41
|
+
sort?: string;
|
|
42
|
+
}): Promise<Page<Patient>>;
|
|
43
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import { NetworkObject as e, Tag as a } from "./core.js";
|
|
2
|
+
import { Metas as d } from "./meta.js";
|
|
3
|
+
import { Builder as m } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
4
|
+
import { getName as r } from "../../util/string.js";
|
|
5
|
+
class o extends e {
|
|
6
|
+
static builder() {
|
|
7
|
+
return m(this._default);
|
|
8
|
+
}
|
|
9
|
+
static default() {
|
|
10
|
+
return this._default;
|
|
11
|
+
}
|
|
12
|
+
id = "";
|
|
13
|
+
name = "";
|
|
14
|
+
gender = "";
|
|
15
|
+
phoneNumber = "";
|
|
16
|
+
birthdate = "";
|
|
17
|
+
identity = "";
|
|
18
|
+
age = 0;
|
|
19
|
+
tags = [];
|
|
20
|
+
remarks = [];
|
|
21
|
+
doctorId = "";
|
|
22
|
+
createdTimestamp = "";
|
|
23
|
+
updatedTimestamp = "";
|
|
24
|
+
mainSymptom = "";
|
|
25
|
+
metas = d.builder().build();
|
|
26
|
+
init(t, i) {
|
|
27
|
+
t && (this.id = t), i && (this.metas = i), this.metas.init(this);
|
|
28
|
+
}
|
|
29
|
+
async of(t) {
|
|
30
|
+
return t.id != null && (this.id = t.id), t.name != null && (this.name = r(t.name)), t.gender != null && (this.gender = t.gender), t.phoneNumber != null && (this.phoneNumber = t.phoneNumber), t.birthdate != null && (this.birthdate = t.birthdate, this.age = (/* @__PURE__ */ new Date()).getFullYear() - new Date(t.birthdate).getFullYear()), t.identity != null && (this.identity = t.identity), t.tagsState != null && (this.tags = await Promise.all(t.tagsState.map((i) => a.builder().build().of(i)))), t.remarks != null && (this.remarks = t.remarks), t.doctorId != null && (this.doctorId = t.doctorId), t.createdTimestamp != null && (this.createdTimestamp = t.createdTimestamp), t.updatedTimestamp != null && (this.updatedTimestamp = t.updatedTimestamp), t.mainSymptom != null && (this.mainSymptom = t.mainSymptom), this.metas = this.metas.init(this), this;
|
|
31
|
+
}
|
|
32
|
+
state() {
|
|
33
|
+
const t = {};
|
|
34
|
+
return this.id && (t.id = this.id), this.name && (t.name = this.name), this.gender && (t.gender = this.gender), this.phoneNumber && (t.phoneNumber = this.phoneNumber), this.birthdate && (t.birthdate = this.birthdate), this.identity && (t.identity = this.identity), this.tags.length > 0 && (t.tagsState = this.tags.map((i) => i.state())), this.doctorId && (t.doctorId = this.doctorId), this.createdTimestamp && (t.createdTimestamp = this.createdTimestamp), this.updatedTimestamp && (t.updatedTimestamp = this.updatedTimestamp), this.mainSymptom && (t.mainSymptom = this.mainSymptom), this.remarks.length > 0 && (t.remarks = this.remarks), t;
|
|
35
|
+
}
|
|
36
|
+
static query(t) {
|
|
37
|
+
return this.default().query(t);
|
|
38
|
+
}
|
|
39
|
+
}
|
|
40
|
+
export {
|
|
41
|
+
o as Patient
|
|
42
|
+
};
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* OpenAPI definition - version v0
|
|
3
|
+
*
|
|
4
|
+
*
|
|
5
|
+
*
|
|
6
|
+
* OpenAPI version: 3.1.0
|
|
7
|
+
*
|
|
8
|
+
*
|
|
9
|
+
* NOTE: This file is auto generated by the alova's vscode plugin.
|
|
10
|
+
*
|
|
11
|
+
* https://alova.js.org/devtools/vscode
|
|
12
|
+
*
|
|
13
|
+
* **Do not edit the file manually.**
|
|
14
|
+
*/
|
|
15
|
+
declare const _default: {
|
|
16
|
+
'prescriptionRestful.getPrescriptionState': string[];
|
|
17
|
+
'prescriptionRestful.putPrescriptionState': string[];
|
|
18
|
+
'prescriptionRestful.deletePrescriptionState': string[];
|
|
19
|
+
'herbalRestful.getHerbalState': string[];
|
|
20
|
+
'herbalRestful.putHerbalState': string[];
|
|
21
|
+
'herbalRestful.deleteHerbalState': string[];
|
|
22
|
+
'herbalRestful.postHerbalState': string[];
|
|
23
|
+
'prescriptionRestful.postPrescriptionState': string[];
|
|
24
|
+
'prescriptionRestful.queryPrescriptionState': string[];
|
|
25
|
+
'herbalRestful.queryHerbalState': string[];
|
|
26
|
+
};
|
|
27
|
+
export default _default;
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
const e = {
|
|
2
|
+
"prescriptionRestful.getPrescriptionState": ["GET", "/药材/服务/药方/{id}"],
|
|
3
|
+
"prescriptionRestful.putPrescriptionState": ["PUT", "/药材/服务/药方/{id}"],
|
|
4
|
+
"prescriptionRestful.deletePrescriptionState": ["DELETE", "/药材/服务/药方/{id}"],
|
|
5
|
+
"herbalRestful.getHerbalState": ["GET", "/药材/服务/{id}"],
|
|
6
|
+
"herbalRestful.putHerbalState": ["PUT", "/药材/服务/{id}"],
|
|
7
|
+
"herbalRestful.deleteHerbalState": ["DELETE", "/药材/服务/{id}"],
|
|
8
|
+
"herbalRestful.postHerbalState": ["POST", "/药材/服务"],
|
|
9
|
+
"prescriptionRestful.postPrescriptionState": ["POST", "/药材/服务/药方"],
|
|
10
|
+
"prescriptionRestful.queryPrescriptionState": ["POST", "/药材/服务/药方/条件查询"],
|
|
11
|
+
"herbalRestful.queryHerbalState": ["POST", "/药材/服务/条件查询"]
|
|
12
|
+
};
|
|
13
|
+
export {
|
|
14
|
+
e as default
|
|
15
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Alova, AlovaGenerics, AlovaMethodCreateConfig } from 'alova';
|
|
2
|
+
export declare const createApis: (alovaInstance: Alova<AlovaGenerics>, configMap: any) => prescriptionApi;
|
|
3
|
+
export declare const mountApis: (Apis: prescriptionApi) => void;
|
|
4
|
+
type MethodConfig<T> = AlovaMethodCreateConfig<(typeof import('./index'))['alovaInstance'] extends Alova<infer AG> ? AG : any, any, T>;
|
|
5
|
+
type APISofParameters<Tag extends string, Url extends string> = Tag extends keyof prescriptionApi ? Url extends keyof prescriptionApi[Tag] ? prescriptionApi[Tag][Url] extends (...args: any) => any ? Parameters<prescriptionApi[Tag][Url]> : any : any : any;
|
|
6
|
+
type MethodsConfigMap = {
|
|
7
|
+
[P in keyof typeof import('./apiDefinitions').default]?: MethodConfig<P extends `${infer Tag}.${infer Url}` ? Parameters<NonNullable<APISofParameters<Tag, Url>[0]>['transform']>[0] : any>;
|
|
8
|
+
};
|
|
9
|
+
export declare const withConfigType: <Config extends MethodsConfigMap>(config: Config) => Config;
|
|
10
|
+
export {};
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
import { Method as g } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
|
+
import A from "./apiDefinitions.js";
|
|
3
|
+
const l = /* @__PURE__ */ Object.create(null), h = (t, r, i) => {
|
|
4
|
+
const e = t.join(".");
|
|
5
|
+
if (l[e])
|
|
6
|
+
return l[e];
|
|
7
|
+
const n = new Proxy(function() {
|
|
8
|
+
}, {
|
|
9
|
+
get(d, m) {
|
|
10
|
+
const s = [...t, m];
|
|
11
|
+
return h(s, r, i);
|
|
12
|
+
},
|
|
13
|
+
apply(d, m, [s]) {
|
|
14
|
+
const u = A[e];
|
|
15
|
+
if (!u)
|
|
16
|
+
throw new Error(`the api path of \`${e}\` is not found`);
|
|
17
|
+
const a = {
|
|
18
|
+
...i[e],
|
|
19
|
+
...s
|
|
20
|
+
}, [y, P] = u, w = a.pathParams, b = P.replace(/\{([^}]+)\}/g, (f, p) => w[p]);
|
|
21
|
+
delete a.pathParams;
|
|
22
|
+
let o = a.data;
|
|
23
|
+
if (Object.prototype.toString.call(o) === "[object Object]" && typeof FormData < "u") {
|
|
24
|
+
let f = !1;
|
|
25
|
+
const p = new FormData();
|
|
26
|
+
for (const c in o)
|
|
27
|
+
p.append(c, o[c]), o[c] instanceof Blob && (f = !0);
|
|
28
|
+
o = f ? p : o;
|
|
29
|
+
}
|
|
30
|
+
return new g(
|
|
31
|
+
y.toUpperCase(),
|
|
32
|
+
r,
|
|
33
|
+
b,
|
|
34
|
+
a,
|
|
35
|
+
o
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
return l[e] = n, n;
|
|
40
|
+
}, x = (t, r) => new Proxy({}, {
|
|
41
|
+
get(e, n) {
|
|
42
|
+
return h([n], t, r);
|
|
43
|
+
}
|
|
44
|
+
}), D = (t) => {
|
|
45
|
+
globalThis.prescriptionApi = t;
|
|
46
|
+
}, C = (t) => t;
|
|
47
|
+
export {
|
|
48
|
+
x as createApis,
|
|
49
|
+
D as mountApis,
|
|
50
|
+
C as withConfigType
|
|
51
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Herbal } from '../../herbal';
|
|
2
|
+
import { Doctor } from '../../../doctor/doctor';
|
|
3
|
+
export declare class AlovaHerbal extends Herbal {
|
|
4
|
+
static query(page?: number, pageSize?: number, owner?: Doctor, name?: string, price?: number): Promise<{
|
|
5
|
+
data: Herbal[];
|
|
6
|
+
total: number;
|
|
7
|
+
page: number;
|
|
8
|
+
pageSize: number;
|
|
9
|
+
pageCount: number;
|
|
10
|
+
isLastPage: boolean;
|
|
11
|
+
}>;
|
|
12
|
+
put(): Promise<this>;
|
|
13
|
+
post(): Promise<this>;
|
|
14
|
+
delete(): Promise<void>;
|
|
15
|
+
}
|