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,54 @@
|
|
|
1
|
+
import { Herbal as p } from "../../herbal.js";
|
|
2
|
+
class r extends p {
|
|
3
|
+
static query(i = 0, n = 9999999, o, e, a) {
|
|
4
|
+
const s = o?.state();
|
|
5
|
+
return prescriptionApi.herbalRestful.queryHerbalState({
|
|
6
|
+
data: {
|
|
7
|
+
...s && { ownerState: s },
|
|
8
|
+
...e && { name: e },
|
|
9
|
+
...a !== void 0 && { price: a },
|
|
10
|
+
page: i,
|
|
11
|
+
pageSize: n
|
|
12
|
+
},
|
|
13
|
+
async transform(t) {
|
|
14
|
+
return {
|
|
15
|
+
data: await Promise.all(
|
|
16
|
+
t.content.map((l) => new r().of(l))
|
|
17
|
+
),
|
|
18
|
+
total: t.totalElements,
|
|
19
|
+
page: t.number,
|
|
20
|
+
pageSize: t.size,
|
|
21
|
+
pageCount: t.totalPages,
|
|
22
|
+
isLastPage: t.last
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
}).send();
|
|
26
|
+
}
|
|
27
|
+
async put() {
|
|
28
|
+
return this.of(
|
|
29
|
+
await prescriptionApi.herbalRestful.putHerbalState({
|
|
30
|
+
pathParams: {
|
|
31
|
+
id: this.id
|
|
32
|
+
},
|
|
33
|
+
data: this.state()
|
|
34
|
+
}).send(!0)
|
|
35
|
+
);
|
|
36
|
+
}
|
|
37
|
+
async post() {
|
|
38
|
+
return this.of(
|
|
39
|
+
await prescriptionApi.herbalRestful.postHerbalState({
|
|
40
|
+
data: this.state()
|
|
41
|
+
}).send(!0)
|
|
42
|
+
);
|
|
43
|
+
}
|
|
44
|
+
async delete() {
|
|
45
|
+
return prescriptionApi.herbalRestful.deleteHerbalState({
|
|
46
|
+
pathParams: {
|
|
47
|
+
id: this.id
|
|
48
|
+
}
|
|
49
|
+
}).send(), Promise.resolve();
|
|
50
|
+
}
|
|
51
|
+
}
|
|
52
|
+
export {
|
|
53
|
+
r as AlovaHerbal
|
|
54
|
+
};
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { Prescription } from '../../prescription';
|
|
2
|
+
import { Doctor } from '../../../doctor/doctor';
|
|
3
|
+
export declare class AlovaPrescription extends Prescription {
|
|
4
|
+
static query(page?: number, pageSize?: number, owner?: Doctor, name?: string): Promise<{
|
|
5
|
+
data: AlovaPrescription[];
|
|
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<this>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Prescription as o } from "../../prescription.js";
|
|
2
|
+
class a extends o {
|
|
3
|
+
static query(s = 0, r = 9999999, p, e) {
|
|
4
|
+
const i = p?.state();
|
|
5
|
+
return prescriptionApi.prescriptionRestful.queryPrescriptionState({
|
|
6
|
+
data: {
|
|
7
|
+
...i && { ownerState: i },
|
|
8
|
+
...e && { name: e },
|
|
9
|
+
page: s,
|
|
10
|
+
pageSize: r
|
|
11
|
+
},
|
|
12
|
+
async transform(t) {
|
|
13
|
+
return {
|
|
14
|
+
data: await Promise.all(t.content.map((n) => new a().of(n))),
|
|
15
|
+
total: t.totalElements,
|
|
16
|
+
page: t.number,
|
|
17
|
+
pageSize: t.size,
|
|
18
|
+
pageCount: t.totalPages,
|
|
19
|
+
isLastPage: t.last
|
|
20
|
+
};
|
|
21
|
+
}
|
|
22
|
+
}).send();
|
|
23
|
+
}
|
|
24
|
+
//put
|
|
25
|
+
async put() {
|
|
26
|
+
return this.of(
|
|
27
|
+
await prescriptionApi.prescriptionRestful.putPrescriptionState({ pathParams: { id: this.id }, data: this.state() }).send()
|
|
28
|
+
);
|
|
29
|
+
}
|
|
30
|
+
//post
|
|
31
|
+
async post() {
|
|
32
|
+
return this.of(
|
|
33
|
+
await prescriptionApi.prescriptionRestful.postPrescriptionState({
|
|
34
|
+
data: this.state()
|
|
35
|
+
}).send()
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
//delete
|
|
39
|
+
async delete() {
|
|
40
|
+
return await prescriptionApi.prescriptionRestful.deletePrescriptionState({
|
|
41
|
+
pathParams: {
|
|
42
|
+
id: this.id
|
|
43
|
+
}
|
|
44
|
+
}).send(), this;
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
a as AlovaPrescription
|
|
49
|
+
};
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
export declare const alovaInstance: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, any, any, any>>;
|
|
2
|
+
export declare const $$userConfigMap: {};
|
|
3
|
+
declare const Apis: prescriptionApi;
|
|
4
|
+
export default Apis;
|
|
5
|
+
export * from './implement';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
|
+
import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
3
|
+
import { createApis as r, mountApis as t, withConfigType 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 s } from "../../config/index.js";
|
|
6
|
+
import "../../patient/core.js";
|
|
7
|
+
const c = e({
|
|
8
|
+
baseURL: n(s.Prescription),
|
|
9
|
+
requestAdapter: o(),
|
|
10
|
+
beforeRequest: a(() => {
|
|
11
|
+
}),
|
|
12
|
+
cacheFor: null,
|
|
13
|
+
responded: p
|
|
14
|
+
}), m = i({}), f = r(c, m);
|
|
15
|
+
t(f);
|
|
16
|
+
export {
|
|
17
|
+
m as $$userConfigMap,
|
|
18
|
+
c as alovaInstance,
|
|
19
|
+
f as default
|
|
20
|
+
};
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { Page, NetworkObject } from '../patient/core';
|
|
2
|
+
import { HerbalState } from './alova/globals';
|
|
3
|
+
import { IBuilder } from 'builder-pattern';
|
|
4
|
+
import { Doctor } from '../doctor/doctor';
|
|
5
|
+
export declare abstract class Herbal extends NetworkObject {
|
|
6
|
+
static builder(): IBuilder<Herbal>;
|
|
7
|
+
static default(): typeof Herbal;
|
|
8
|
+
id: string;
|
|
9
|
+
name: string;
|
|
10
|
+
price: number;
|
|
11
|
+
weight: number;
|
|
12
|
+
owner: Doctor;
|
|
13
|
+
of(json: HerbalState): Promise<this>;
|
|
14
|
+
state(): HerbalState;
|
|
15
|
+
static query(page?: number, pageSize?: number, owner?: Doctor, name?: string, price?: number): Promise<Page<Herbal>>;
|
|
16
|
+
abstract put(): Promise<this>;
|
|
17
|
+
abstract post(): Promise<this>;
|
|
18
|
+
abstract delete(): Promise<void>;
|
|
19
|
+
}
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { NetworkObject as u } from "../patient/core.js";
|
|
2
|
+
import { Builder as f } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
3
|
+
import { Doctor as t } from "../doctor/doctor.js";
|
|
4
|
+
class e extends u {
|
|
5
|
+
static builder() {
|
|
6
|
+
return f(this._default);
|
|
7
|
+
}
|
|
8
|
+
static default() {
|
|
9
|
+
return this._default;
|
|
10
|
+
}
|
|
11
|
+
id = "";
|
|
12
|
+
name = "";
|
|
13
|
+
price = 0;
|
|
14
|
+
weight = 0;
|
|
15
|
+
owner = t.builder().build();
|
|
16
|
+
async of(i) {
|
|
17
|
+
return i.id != null && (this.id = i.id), i.name != null && (this.name = i.name), i.price != null && (this.price = i.price), i.weight != null && (this.weight = i.weight), i.ownerState != null && (this.owner = await t.builder().build().of(i.ownerState)), this;
|
|
18
|
+
}
|
|
19
|
+
state() {
|
|
20
|
+
return {
|
|
21
|
+
id: this.id,
|
|
22
|
+
name: this.name,
|
|
23
|
+
price: this.price,
|
|
24
|
+
weight: this.weight,
|
|
25
|
+
ownerState: this.owner.state()
|
|
26
|
+
};
|
|
27
|
+
}
|
|
28
|
+
static query(i = 0, r = 9999999, a, d, h) {
|
|
29
|
+
return e.default().query(i, r, a, d, h);
|
|
30
|
+
}
|
|
31
|
+
}
|
|
32
|
+
export {
|
|
33
|
+
e as Herbal
|
|
34
|
+
};
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { Herbal as e } from "./herbal.js";
|
|
2
|
+
import { Prescription as p } from "./prescription.js";
|
|
3
|
+
import { $$userConfigMap as f, alovaInstance as i } from "./alova/index.js";
|
|
4
|
+
import { AlovaHerbal as m } from "./alova/implement/herbal.js";
|
|
5
|
+
import { AlovaPrescription as x } from "./alova/implement/prescription.js";
|
|
6
|
+
export {
|
|
7
|
+
f as $$userConfigMap,
|
|
8
|
+
m as AlovaHerbal,
|
|
9
|
+
x as AlovaPrescription,
|
|
10
|
+
e as Herbal,
|
|
11
|
+
p as Prescription,
|
|
12
|
+
i as alovaInstance
|
|
13
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { Herbal } from './herbal';
|
|
2
|
+
import { PrescriptionState } from './alova/globals';
|
|
3
|
+
import { Page, NetworkObject } from '../patient/core';
|
|
4
|
+
import { IBuilder } from 'builder-pattern';
|
|
5
|
+
import { Doctor } from '../doctor/doctor';
|
|
6
|
+
export declare abstract class Prescription extends NetworkObject {
|
|
7
|
+
static builder(): IBuilder<Prescription>;
|
|
8
|
+
static default(): typeof Prescription;
|
|
9
|
+
id: string;
|
|
10
|
+
createdTimestamp: string;
|
|
11
|
+
updatedTimestamp: string;
|
|
12
|
+
name: string;
|
|
13
|
+
owner: Doctor;
|
|
14
|
+
totalAmount: number;
|
|
15
|
+
useAmount: number;
|
|
16
|
+
craftType: string;
|
|
17
|
+
useWay: string[];
|
|
18
|
+
useTime: string[];
|
|
19
|
+
herbals: Herbal[];
|
|
20
|
+
of(json: PrescriptionState): Promise<this>;
|
|
21
|
+
state(): PrescriptionState;
|
|
22
|
+
static query(page?: number, pageSize?: number, owner?: Doctor, name?: string): Promise<Page<Prescription>>;
|
|
23
|
+
abstract put(): Promise<this>;
|
|
24
|
+
abstract post(): Promise<this>;
|
|
25
|
+
abstract delete(): Promise<this>;
|
|
26
|
+
}
|
|
@@ -0,0 +1,49 @@
|
|
|
1
|
+
import { Herbal as u } from "./herbal.js";
|
|
2
|
+
import { NetworkObject as s } from "../patient/core.js";
|
|
3
|
+
import { Builder as d } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
4
|
+
import { Doctor as i } from "../doctor/doctor.js";
|
|
5
|
+
class a extends s {
|
|
6
|
+
static builder() {
|
|
7
|
+
return d(this._default);
|
|
8
|
+
}
|
|
9
|
+
static default() {
|
|
10
|
+
return this._default;
|
|
11
|
+
}
|
|
12
|
+
id = "";
|
|
13
|
+
createdTimestamp = "";
|
|
14
|
+
updatedTimestamp = "";
|
|
15
|
+
name = "匿名药方";
|
|
16
|
+
owner = i.builder().build();
|
|
17
|
+
totalAmount = 0;
|
|
18
|
+
useAmount = 0;
|
|
19
|
+
craftType = "自煎";
|
|
20
|
+
useWay = ["煎服"];
|
|
21
|
+
useTime = ["早上", "晚上"];
|
|
22
|
+
herbals = [];
|
|
23
|
+
async of(t) {
|
|
24
|
+
return t.id != null && (this.id = t.id), t.createdTimestamp != null && (this.createdTimestamp = t.createdTimestamp), t.updatedTimestamp != null && (this.updatedTimestamp = t.updatedTimestamp), t.name != null && (this.name = t.name), t.ownerState != null && (this.owner = await i.builder().build().of(t.ownerState)), t.totalAmount != null && (this.totalAmount = t.totalAmount), t.useAmount != null && (this.useAmount = t.useAmount), t.craftType != null && (this.craftType = t.craftType), t.useWay != null && (this.useWay = t.useWay), t.useTime != null && (this.useTime = t.useTime), t.herbalsState != null && (this.herbals = await Promise.all(
|
|
25
|
+
t.herbalsState.map((e) => u.builder().build().of(e))
|
|
26
|
+
)), Promise.resolve(this);
|
|
27
|
+
}
|
|
28
|
+
state() {
|
|
29
|
+
return {
|
|
30
|
+
id: this.id,
|
|
31
|
+
createdTimestamp: this.createdTimestamp,
|
|
32
|
+
updatedTimestamp: this.updatedTimestamp,
|
|
33
|
+
name: this.name,
|
|
34
|
+
ownerState: this.owner.state(),
|
|
35
|
+
totalAmount: this.totalAmount,
|
|
36
|
+
useAmount: this.useAmount,
|
|
37
|
+
craftType: this.craftType,
|
|
38
|
+
useWay: this.useWay,
|
|
39
|
+
useTime: this.useTime,
|
|
40
|
+
herbalsState: this.herbals.map((t) => t.state())
|
|
41
|
+
};
|
|
42
|
+
}
|
|
43
|
+
static query(t = 0, e = 9999999, m, r) {
|
|
44
|
+
return a.default().query(t, e, m, r);
|
|
45
|
+
}
|
|
46
|
+
}
|
|
47
|
+
export {
|
|
48
|
+
a as Prescription
|
|
49
|
+
};
|
|
@@ -0,0 +1,25 @@
|
|
|
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
|
+
'scientistStateRestful.getScientistState': string[];
|
|
17
|
+
'scientistStateRestful.putScientistState': string[];
|
|
18
|
+
'scientistStateRestful.deleteScientistState': string[];
|
|
19
|
+
'scientistStateRestful.queryScientistState': string[];
|
|
20
|
+
'scientistStateRestful.postScientistState': string[];
|
|
21
|
+
'scientistStateRestful.datesOfScientist': string[];
|
|
22
|
+
'scientistStateRestful.totalOfScientist': string[];
|
|
23
|
+
'scientistStateRestful.todayOfScientistByToday': string[];
|
|
24
|
+
};
|
|
25
|
+
export default _default;
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
"scientistStateRestful.getScientistState": ["GET", "/科研/服务/{id}"],
|
|
3
|
+
"scientistStateRestful.putScientistState": ["PUT", "/科研/服务/{id}"],
|
|
4
|
+
"scientistStateRestful.deleteScientistState": ["DELETE", "/科研/服务/{id}"],
|
|
5
|
+
"scientistStateRestful.queryScientistState": ["GET", "/科研/服务"],
|
|
6
|
+
"scientistStateRestful.postScientistState": ["POST", "/科研/服务"],
|
|
7
|
+
"scientistStateRestful.datesOfScientist": ["GET", "/科研/服务/统计/科研/日期"],
|
|
8
|
+
"scientistStateRestful.totalOfScientist": ["GET", "/科研/服务/统计/科研/总数"],
|
|
9
|
+
"scientistStateRestful.todayOfScientistByToday": ["GET", "/科研/服务/统计/科研/今日"]
|
|
10
|
+
};
|
|
11
|
+
export {
|
|
12
|
+
t as default
|
|
13
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Alova, AlovaGenerics, AlovaMethodCreateConfig } from 'alova';
|
|
2
|
+
export declare const createApis: (alovaInstance: Alova<AlovaGenerics>, configMap: any) => scientistApi;
|
|
3
|
+
export declare const mountApis: (Apis: scientistApi) => 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 scientistApi ? Url extends keyof scientistApi[Tag] ? scientistApi[Tag][Url] extends (...args: any) => any ? Parameters<scientistApi[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, n, i) => {
|
|
4
|
+
const e = t.join(".");
|
|
5
|
+
if (l[e])
|
|
6
|
+
return l[e];
|
|
7
|
+
const r = new Proxy(function() {
|
|
8
|
+
}, {
|
|
9
|
+
get(d, m) {
|
|
10
|
+
const p = [...t, m];
|
|
11
|
+
return h(p, n, i);
|
|
12
|
+
},
|
|
13
|
+
apply(d, m, [p]) {
|
|
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
|
+
...p
|
|
20
|
+
}, [y, P] = u, w = a.pathParams, b = P.replace(/\{([^}]+)\}/g, (f, s) => w[s]);
|
|
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 s = new FormData();
|
|
26
|
+
for (const c in o)
|
|
27
|
+
s.append(c, o[c]), o[c] instanceof Blob && (f = !0);
|
|
28
|
+
o = f ? s : o;
|
|
29
|
+
}
|
|
30
|
+
return new g(
|
|
31
|
+
y.toUpperCase(),
|
|
32
|
+
n,
|
|
33
|
+
b,
|
|
34
|
+
a,
|
|
35
|
+
o
|
|
36
|
+
);
|
|
37
|
+
}
|
|
38
|
+
});
|
|
39
|
+
return l[e] = r, r;
|
|
40
|
+
}, x = (t, n) => new Proxy({}, {
|
|
41
|
+
get(e, r) {
|
|
42
|
+
return h([r], t, n);
|
|
43
|
+
}
|
|
44
|
+
}), D = (t) => {
|
|
45
|
+
globalThis.scientistApi = t;
|
|
46
|
+
}, C = (t) => t;
|
|
47
|
+
export {
|
|
48
|
+
x as createApis,
|
|
49
|
+
D as mountApis,
|
|
50
|
+
C as withConfigType
|
|
51
|
+
};
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Scientist as i } from "../../scientist.js";
|
|
2
|
+
class t extends i {
|
|
3
|
+
async get() {
|
|
4
|
+
return this.of(
|
|
5
|
+
await scientistApi.scientistStateRestful.getScientistState({
|
|
6
|
+
pathParams: {
|
|
7
|
+
id: this.id
|
|
8
|
+
},
|
|
9
|
+
async transform(s) {
|
|
10
|
+
return new t().of(s);
|
|
11
|
+
}
|
|
12
|
+
}).send()
|
|
13
|
+
);
|
|
14
|
+
}
|
|
15
|
+
async put() {
|
|
16
|
+
return this.of(
|
|
17
|
+
await scientistApi.scientistStateRestful.putScientistState({
|
|
18
|
+
pathParams: {
|
|
19
|
+
id: this.id
|
|
20
|
+
},
|
|
21
|
+
data: this.state()
|
|
22
|
+
}).send(!0)
|
|
23
|
+
);
|
|
24
|
+
}
|
|
25
|
+
async post() {
|
|
26
|
+
return this.of(
|
|
27
|
+
await scientistApi.scientistStateRestful.postScientistState({
|
|
28
|
+
data: this.state()
|
|
29
|
+
}).send(!0)
|
|
30
|
+
);
|
|
31
|
+
}
|
|
32
|
+
}
|
|
33
|
+
export {
|
|
34
|
+
t as AlovaScientist
|
|
35
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export declare const alovaInstance: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, any, any, any>>;
|
|
2
|
+
export declare const $$userConfigMap: {};
|
|
3
|
+
declare const Apis: scientistApi;
|
|
4
|
+
export * from './implement';
|
|
5
|
+
export default Apis;
|
|
6
|
+
export * from './implement';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
|
+
import t from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
3
|
+
import { createApis as o, mountApis as r, withConfigType 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 s } from "../../config/index.js";
|
|
6
|
+
import "../../patient/core.js";
|
|
7
|
+
import "../../../../node_modules/pinyin/lib/esm/pinyin.js";
|
|
8
|
+
const m = e({
|
|
9
|
+
baseURL: n(s.Scientist),
|
|
10
|
+
requestAdapter: t(),
|
|
11
|
+
beforeRequest: a(() => {
|
|
12
|
+
}),
|
|
13
|
+
cacheFor: null,
|
|
14
|
+
responded: p
|
|
15
|
+
}), c = i({}), f = o(m, c);
|
|
16
|
+
r(f);
|
|
17
|
+
export {
|
|
18
|
+
c as $$userConfigMap,
|
|
19
|
+
m as alovaInstance,
|
|
20
|
+
f as default
|
|
21
|
+
};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Scientist as e } from "./scientist.js";
|
|
2
|
+
import { $$userConfigMap as a, alovaInstance as i } from "./alova/index.js";
|
|
3
|
+
import { AlovaScientist as f } from "./alova/implement/scientist.js";
|
|
4
|
+
export {
|
|
5
|
+
a as $$userConfigMap,
|
|
6
|
+
f as AlovaScientist,
|
|
7
|
+
e as Scientist,
|
|
8
|
+
i as alovaInstance
|
|
9
|
+
};
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { NetworkObject } from '../patient/core';
|
|
2
|
+
import { IBuilder } from 'builder-pattern';
|
|
3
|
+
import { ScientistState } from './alova/globals';
|
|
4
|
+
export declare abstract class Scientist extends NetworkObject {
|
|
5
|
+
static builder(): IBuilder<Scientist>;
|
|
6
|
+
static default(): typeof Scientist;
|
|
7
|
+
id: string;
|
|
8
|
+
name: string;
|
|
9
|
+
createdTimestamp: string;
|
|
10
|
+
updatedTimestamp: string;
|
|
11
|
+
gender: string;
|
|
12
|
+
identityNumber: string;
|
|
13
|
+
phoneNumber: string;
|
|
14
|
+
birthdate: string;
|
|
15
|
+
of(json: ScientistState): Promise<Awaited<this>>;
|
|
16
|
+
state(): ScientistState;
|
|
17
|
+
abstract get(): Promise<this>;
|
|
18
|
+
abstract put(): Promise<this>;
|
|
19
|
+
abstract post(): Promise<this>;
|
|
20
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
import { NetworkObject as t } from "../patient/core.js";
|
|
2
|
+
import { Builder as i } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
3
|
+
import { getName as d } from "../../util/string.js";
|
|
4
|
+
class p extends t {
|
|
5
|
+
static builder() {
|
|
6
|
+
return i(this._default);
|
|
7
|
+
}
|
|
8
|
+
static default() {
|
|
9
|
+
return this._default;
|
|
10
|
+
}
|
|
11
|
+
id = "";
|
|
12
|
+
name = "";
|
|
13
|
+
createdTimestamp = "";
|
|
14
|
+
updatedTimestamp = "";
|
|
15
|
+
gender = "";
|
|
16
|
+
identityNumber = "";
|
|
17
|
+
phoneNumber = "";
|
|
18
|
+
birthdate = "";
|
|
19
|
+
of(e) {
|
|
20
|
+
return e.id != null && (this.id = e.id), e.name != null && (this.name = d(e.name)), e.gender != null && (this.gender = e.gender), e.identityNumber != null && (this.identityNumber = e.identityNumber), e.phoneNumber != null && (this.phoneNumber = e.phoneNumber), e.birthdate != null && (this.birthdate = e.birthdate), e.createdTimestamp != null && (this.createdTimestamp = e.createdTimestamp), e.updatedTimestamp != null && (this.updatedTimestamp = e.updatedTimestamp), Promise.resolve(this);
|
|
21
|
+
}
|
|
22
|
+
state() {
|
|
23
|
+
return {
|
|
24
|
+
id: this.id,
|
|
25
|
+
name: this.name,
|
|
26
|
+
createdTimestamp: this.createdTimestamp,
|
|
27
|
+
updatedTimestamp: this.updatedTimestamp,
|
|
28
|
+
gender: this.gender,
|
|
29
|
+
identityNumber: this.identityNumber,
|
|
30
|
+
phoneNumber: this.phoneNumber,
|
|
31
|
+
birthdate: this.birthdate
|
|
32
|
+
};
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
export {
|
|
36
|
+
p as Scientist
|
|
37
|
+
};
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
import * as i from "./api/algorithm/index.js";
|
|
2
|
+
import * as e from "./api/authorization/index.js";
|
|
3
|
+
import * as o from "./api/check/index.js";
|
|
4
|
+
import * as r from "./api/config/index.js";
|
|
5
|
+
import * as t from "./api/doctor/index.js";
|
|
6
|
+
import * as p from "./api/metric/index.js";
|
|
7
|
+
import * as a from "./api/oauth/index.js";
|
|
8
|
+
import * as m from "./api/outpatient/index.js";
|
|
9
|
+
import * as s from "./api/patient/index.js";
|
|
10
|
+
import * as x from "./api/prescription/index.js";
|
|
11
|
+
import * as f from "./api/scientist/index.js";
|
|
12
|
+
import * as n from "./api/device/device.js";
|
|
13
|
+
import { WaveMapSchema as c, WaveSchema as $, file_WaveMap as h } from "./proto/types/WaveMap_pb.js";
|
|
14
|
+
import { ImageSchema as v, ImagesSchema as S, file_Images as P } from "./proto/types/Images_pb.js";
|
|
15
|
+
import { Patient as u } from "./api/patient/patient.js";
|
|
16
|
+
export {
|
|
17
|
+
i as AlgorithmApi,
|
|
18
|
+
e as AuthorizationApi,
|
|
19
|
+
o as CheckApi,
|
|
20
|
+
r as ConfigApi,
|
|
21
|
+
n as DeviceApi,
|
|
22
|
+
t as DoctorApi,
|
|
23
|
+
v as ImageSchema,
|
|
24
|
+
S as ImagesSchema,
|
|
25
|
+
p as MetricApi,
|
|
26
|
+
a as OAuthApi,
|
|
27
|
+
m as OutPatientApi,
|
|
28
|
+
u as Patient,
|
|
29
|
+
s as PatientApi,
|
|
30
|
+
x as PrescriptionApi,
|
|
31
|
+
f as ScientistApi,
|
|
32
|
+
c as WaveMapSchema,
|
|
33
|
+
$ as WaveSchema,
|
|
34
|
+
P as file_Images,
|
|
35
|
+
h as file_WaveMap
|
|
36
|
+
};
|
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
declare const _default: import('vue').DefineComponent<{}, {}, {}, {}, {}, import('vue').ComponentOptionsMixin, import('vue').ComponentOptionsMixin, {}, string, import('vue').PublicProps, Readonly<{}> & Readonly<{}>, {}, {}, {}, {}, string, import('vue').ComponentProvideOptions, true, {}, HTMLDivElement>;
|
|
2
|
+
export default _default;
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
import { GenFile, GenMessage } from '@bufbuild/protobuf/codegenv2';
|
|
2
|
+
import { Message } from '@bufbuild/protobuf';
|
|
3
|
+
/**
|
|
4
|
+
* Describes the file Images.proto.
|
|
5
|
+
*/
|
|
6
|
+
export declare const file_Images: GenFile;
|
|
7
|
+
/**
|
|
8
|
+
* @generated from message Image
|
|
9
|
+
*/
|
|
10
|
+
export type Image = Message<'Image'> & {
|
|
11
|
+
/**
|
|
12
|
+
* @generated from field: bytes bytes = 1;
|
|
13
|
+
*/
|
|
14
|
+
bytes: Uint8Array;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* Describes the message Image.
|
|
18
|
+
* Use `create(ImageSchema)` to create a new message.
|
|
19
|
+
*/
|
|
20
|
+
export declare const ImageSchema: GenMessage<Image>;
|
|
21
|
+
/**
|
|
22
|
+
* @generated from message Images
|
|
23
|
+
*/
|
|
24
|
+
export type Images = Message<'Images'> & {
|
|
25
|
+
/**
|
|
26
|
+
* @generated from field: repeated Image images = 1;
|
|
27
|
+
*/
|
|
28
|
+
images: Image[];
|
|
29
|
+
};
|
|
30
|
+
/**
|
|
31
|
+
* Describes the message Images.
|
|
32
|
+
* Use `create(ImagesSchema)` to create a new message.
|
|
33
|
+
*/
|
|
34
|
+
export declare const ImagesSchema: GenMessage<Images>;
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { fileDesc as o } from "../../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js";
|
|
2
|
+
import { messageDesc as e } from "../../../node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js";
|
|
3
|
+
const m = /* @__PURE__ */ o(
|
|
4
|
+
"CgxJbWFnZXMucHJvdG8iFgoFSW1hZ2USDQoFYnl0ZXMYASABKAwiIAoGSW1hZ2VzEhYKBmltYWdlcxgBIAMoCzIGLkltYWdlYgZwcm90bzM"
|
|
5
|
+
), g = /* @__PURE__ */ e(m, 0), t = /* @__PURE__ */ e(m, 1);
|
|
6
|
+
export {
|
|
7
|
+
g as ImageSchema,
|
|
8
|
+
t as ImagesSchema,
|
|
9
|
+
m as file_Images
|
|
10
|
+
};
|