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
|
@@ -1,394 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* OpenAPI definition - version v0
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* OpenAPI version: 3.1.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This file is auto generated by the alova's vscode plugin.
|
|
12
|
-
*
|
|
13
|
-
* https://alova.js.org/devtools/vscode
|
|
14
|
-
*
|
|
15
|
-
* **Do not edit the file manually.**
|
|
16
|
-
*/
|
|
17
|
-
import type { Alova, AlovaMethodCreateConfig, AlovaGenerics, Method } from 'alova';
|
|
18
|
-
import type { $$userConfigMap, alovaInstance } from './index';
|
|
19
|
-
import type apiDefinitions from './apiDefinitions';
|
|
20
|
-
|
|
21
|
-
type CollapsedAlova = typeof alovaInstance;
|
|
22
|
-
type UserMethodConfigMap = typeof $$userConfigMap;
|
|
23
|
-
|
|
24
|
-
type Alova2MethodConfig<Responded> =
|
|
25
|
-
CollapsedAlova extends Alova<
|
|
26
|
-
AlovaGenerics<
|
|
27
|
-
any,
|
|
28
|
-
any,
|
|
29
|
-
infer RequestConfig,
|
|
30
|
-
infer Response,
|
|
31
|
-
infer ResponseHeader,
|
|
32
|
-
infer L1Cache,
|
|
33
|
-
infer L2Cache,
|
|
34
|
-
infer SE
|
|
35
|
-
>
|
|
36
|
-
>
|
|
37
|
-
? Omit<
|
|
38
|
-
AlovaMethodCreateConfig<
|
|
39
|
-
AlovaGenerics<
|
|
40
|
-
Responded,
|
|
41
|
-
any,
|
|
42
|
-
RequestConfig,
|
|
43
|
-
Response,
|
|
44
|
-
ResponseHeader,
|
|
45
|
-
L1Cache,
|
|
46
|
-
L2Cache,
|
|
47
|
-
SE
|
|
48
|
-
>,
|
|
49
|
-
any,
|
|
50
|
-
Responded
|
|
51
|
-
>,
|
|
52
|
-
'params'
|
|
53
|
-
>
|
|
54
|
-
: never;
|
|
55
|
-
|
|
56
|
-
// Extract the return type of transform function that define in $$userConfigMap, if it not exists, use the default type.
|
|
57
|
-
type ExtractUserDefinedTransformed<
|
|
58
|
-
DefinitionKey extends keyof typeof apiDefinitions,
|
|
59
|
-
Default,
|
|
60
|
-
> = DefinitionKey extends keyof UserMethodConfigMap
|
|
61
|
-
? UserMethodConfigMap[DefinitionKey]['transform'] extends (...args: any[]) => any
|
|
62
|
-
? Awaited<ReturnType<UserMethodConfigMap[DefinitionKey]['transform']>>
|
|
63
|
-
: Default
|
|
64
|
-
: Default;
|
|
65
|
-
type Alova2Method<
|
|
66
|
-
Responded,
|
|
67
|
-
DefinitionKey extends keyof typeof apiDefinitions,
|
|
68
|
-
CurrentConfig extends Alova2MethodConfig<any>,
|
|
69
|
-
> =
|
|
70
|
-
CollapsedAlova extends Alova<
|
|
71
|
-
AlovaGenerics<
|
|
72
|
-
any,
|
|
73
|
-
any,
|
|
74
|
-
infer RequestConfig,
|
|
75
|
-
infer Response,
|
|
76
|
-
infer ResponseHeader,
|
|
77
|
-
infer L1Cache,
|
|
78
|
-
infer L2Cache,
|
|
79
|
-
infer SE
|
|
80
|
-
>
|
|
81
|
-
>
|
|
82
|
-
? Method<
|
|
83
|
-
AlovaGenerics<
|
|
84
|
-
CurrentConfig extends undefined
|
|
85
|
-
? ExtractUserDefinedTransformed<DefinitionKey, Responded>
|
|
86
|
-
: CurrentConfig['transform'] extends (...args: any[]) => any
|
|
87
|
-
? Awaited<ReturnType<CurrentConfig['transform']>>
|
|
88
|
-
: ExtractUserDefinedTransformed<DefinitionKey, Responded>,
|
|
89
|
-
any,
|
|
90
|
-
RequestConfig,
|
|
91
|
-
Response,
|
|
92
|
-
ResponseHeader,
|
|
93
|
-
L1Cache,
|
|
94
|
-
L2Cache,
|
|
95
|
-
SE
|
|
96
|
-
>
|
|
97
|
-
>
|
|
98
|
-
: never;
|
|
99
|
-
|
|
100
|
-
export interface GetTokenRequest {
|
|
101
|
-
type?: string;
|
|
102
|
-
uid?: string;
|
|
103
|
-
token?: string;
|
|
104
|
-
}
|
|
105
|
-
export interface DoctorState {
|
|
106
|
-
id?: string;
|
|
107
|
-
name?: string;
|
|
108
|
-
createdTimestamp?: number;
|
|
109
|
-
updatedTimestamp?: number;
|
|
110
|
-
gender?: string;
|
|
111
|
-
identityNumber?: string;
|
|
112
|
-
phoneNumber?: string;
|
|
113
|
-
birthdate?: string;
|
|
114
|
-
}
|
|
115
|
-
export interface PatientState {
|
|
116
|
-
id?: string;
|
|
117
|
-
doctorId?: string;
|
|
118
|
-
name?: string;
|
|
119
|
-
createdTimestamp?: number;
|
|
120
|
-
updatedTimestamp?: number;
|
|
121
|
-
identity?: string;
|
|
122
|
-
gender?: string;
|
|
123
|
-
phoneNumber?: string;
|
|
124
|
-
birthdate?: string;
|
|
125
|
-
tags?: string;
|
|
126
|
-
mainSymptom?: string;
|
|
127
|
-
}
|
|
128
|
-
export interface ScientistState {
|
|
129
|
-
id?: string;
|
|
130
|
-
name?: string;
|
|
131
|
-
createdTimestamp?: number;
|
|
132
|
-
updatedTimestamp?: number;
|
|
133
|
-
identityNumber?: string;
|
|
134
|
-
gender?: string;
|
|
135
|
-
phoneNumber?: string;
|
|
136
|
-
birthdate?: string;
|
|
137
|
-
}
|
|
138
|
-
export interface GetTokenResponse {
|
|
139
|
-
status?: number;
|
|
140
|
-
token?: string;
|
|
141
|
-
doctors?: DoctorState[];
|
|
142
|
-
patients?: PatientState[];
|
|
143
|
-
scientist?: ScientistState[];
|
|
144
|
-
}
|
|
145
|
-
export interface AuthorizationState {
|
|
146
|
-
requestDefinition?: string;
|
|
147
|
-
policyDefinition?: string;
|
|
148
|
-
policyEffect?: string;
|
|
149
|
-
matchers?: string;
|
|
150
|
-
policies?: string;
|
|
151
|
-
}
|
|
152
|
-
export interface ResourceAuthorizationState {
|
|
153
|
-
resourceId?: string;
|
|
154
|
-
authorizationStates?: AuthorizationState[];
|
|
155
|
-
ownerId?: string;
|
|
156
|
-
}
|
|
157
|
-
export interface RoleAuthorizationState {
|
|
158
|
-
role?: string;
|
|
159
|
-
authorizationStates?: AuthorizationState[];
|
|
160
|
-
}
|
|
161
|
-
export interface UserAuthorizationState {
|
|
162
|
-
userId?: string;
|
|
163
|
-
authorizationStates?: AuthorizationState[];
|
|
164
|
-
}
|
|
165
|
-
declare global {
|
|
166
|
-
interface authorizeApi {
|
|
167
|
-
oAuthRestful: {
|
|
168
|
-
/**
|
|
169
|
-
* ---
|
|
170
|
-
*
|
|
171
|
-
* [POST]
|
|
172
|
-
*
|
|
173
|
-
* **path:** /授权/服务/令牌
|
|
174
|
-
*
|
|
175
|
-
* ---
|
|
176
|
-
*
|
|
177
|
-
* **RequestBody**
|
|
178
|
-
* ```ts
|
|
179
|
-
* type RequestBody = {
|
|
180
|
-
* type?: string
|
|
181
|
-
* uid?: string
|
|
182
|
-
* token?: string
|
|
183
|
-
* }
|
|
184
|
-
* ```
|
|
185
|
-
*
|
|
186
|
-
* ---
|
|
187
|
-
*
|
|
188
|
-
* **Response**
|
|
189
|
-
* ```ts
|
|
190
|
-
* type Response = {
|
|
191
|
-
* status?: number
|
|
192
|
-
* token?: string
|
|
193
|
-
* // [items] start
|
|
194
|
-
* // [items] end
|
|
195
|
-
* doctors?: Array<{
|
|
196
|
-
* id?: string
|
|
197
|
-
* name?: string
|
|
198
|
-
* createdTimestamp?: number
|
|
199
|
-
* updatedTimestamp?: number
|
|
200
|
-
* gender?: string
|
|
201
|
-
* identityNumber?: string
|
|
202
|
-
* phoneNumber?: string
|
|
203
|
-
* birthdate?: string
|
|
204
|
-
* }>
|
|
205
|
-
* // [items] start
|
|
206
|
-
* // [items] end
|
|
207
|
-
* patients?: Array<{
|
|
208
|
-
* id?: string
|
|
209
|
-
* doctorId?: string
|
|
210
|
-
* name?: string
|
|
211
|
-
* createdTimestamp?: number
|
|
212
|
-
* updatedTimestamp?: number
|
|
213
|
-
* identity?: string
|
|
214
|
-
* gender?: string
|
|
215
|
-
* phoneNumber?: string
|
|
216
|
-
* birthdate?: string
|
|
217
|
-
* tags?: string
|
|
218
|
-
* mainSymptom?: string
|
|
219
|
-
* }>
|
|
220
|
-
* // [items] start
|
|
221
|
-
* // [items] end
|
|
222
|
-
* scientist?: Array<{
|
|
223
|
-
* id?: string
|
|
224
|
-
* name?: string
|
|
225
|
-
* createdTimestamp?: number
|
|
226
|
-
* updatedTimestamp?: number
|
|
227
|
-
* identityNumber?: string
|
|
228
|
-
* gender?: string
|
|
229
|
-
* phoneNumber?: string
|
|
230
|
-
* birthdate?: string
|
|
231
|
-
* }>
|
|
232
|
-
* }
|
|
233
|
-
* ```
|
|
234
|
-
*/
|
|
235
|
-
getToken<
|
|
236
|
-
Config extends Alova2MethodConfig<GetTokenResponse> & {
|
|
237
|
-
data: GetTokenRequest;
|
|
238
|
-
},
|
|
239
|
-
>(
|
|
240
|
-
config: Config,
|
|
241
|
-
): Alova2Method<GetTokenResponse, 'oAuthRestful.getToken', Config>;
|
|
242
|
-
};
|
|
243
|
-
resourceAuthorizationRestful: {
|
|
244
|
-
/**
|
|
245
|
-
* ---
|
|
246
|
-
*
|
|
247
|
-
* [GET]
|
|
248
|
-
*
|
|
249
|
-
* **path:** /授权/服务/资源/{id}
|
|
250
|
-
*
|
|
251
|
-
* ---
|
|
252
|
-
*
|
|
253
|
-
* **Path Parameters**
|
|
254
|
-
* ```ts
|
|
255
|
-
* type PathParameters = {
|
|
256
|
-
* id: string
|
|
257
|
-
* }
|
|
258
|
-
* ```
|
|
259
|
-
*
|
|
260
|
-
* ---
|
|
261
|
-
*
|
|
262
|
-
* **Response**
|
|
263
|
-
* ```ts
|
|
264
|
-
* type Response = {
|
|
265
|
-
* resourceId?: string
|
|
266
|
-
* // [items] start
|
|
267
|
-
* // [items] end
|
|
268
|
-
* authorizationStates?: Array<{
|
|
269
|
-
* requestDefinition?: string
|
|
270
|
-
* policyDefinition?: string
|
|
271
|
-
* policyEffect?: string
|
|
272
|
-
* matchers?: string
|
|
273
|
-
* policies?: string
|
|
274
|
-
* }>
|
|
275
|
-
* ownerId?: string
|
|
276
|
-
* }
|
|
277
|
-
* ```
|
|
278
|
-
*/
|
|
279
|
-
getResourceAuthorizationState<
|
|
280
|
-
Config extends Alova2MethodConfig<ResourceAuthorizationState> & {
|
|
281
|
-
pathParams: {
|
|
282
|
-
id: string;
|
|
283
|
-
};
|
|
284
|
-
},
|
|
285
|
-
>(
|
|
286
|
-
config: Config,
|
|
287
|
-
): Alova2Method<
|
|
288
|
-
ResourceAuthorizationState,
|
|
289
|
-
'resourceAuthorizationRestful.getResourceAuthorizationState',
|
|
290
|
-
Config
|
|
291
|
-
>;
|
|
292
|
-
};
|
|
293
|
-
roleAuthorizationRestful: {
|
|
294
|
-
/**
|
|
295
|
-
* ---
|
|
296
|
-
*
|
|
297
|
-
* [GET]
|
|
298
|
-
*
|
|
299
|
-
* **path:** /授权/服务/角色/{role}
|
|
300
|
-
*
|
|
301
|
-
* ---
|
|
302
|
-
*
|
|
303
|
-
* **Path Parameters**
|
|
304
|
-
* ```ts
|
|
305
|
-
* type PathParameters = {
|
|
306
|
-
* role: string
|
|
307
|
-
* }
|
|
308
|
-
* ```
|
|
309
|
-
*
|
|
310
|
-
* ---
|
|
311
|
-
*
|
|
312
|
-
* **Response**
|
|
313
|
-
* ```ts
|
|
314
|
-
* type Response = {
|
|
315
|
-
* role?: string
|
|
316
|
-
* // [items] start
|
|
317
|
-
* // [items] end
|
|
318
|
-
* authorizationStates?: Array<{
|
|
319
|
-
* requestDefinition?: string
|
|
320
|
-
* policyDefinition?: string
|
|
321
|
-
* policyEffect?: string
|
|
322
|
-
* matchers?: string
|
|
323
|
-
* policies?: string
|
|
324
|
-
* }>
|
|
325
|
-
* }
|
|
326
|
-
* ```
|
|
327
|
-
*/
|
|
328
|
-
getRoleAuthorizationState<
|
|
329
|
-
Config extends Alova2MethodConfig<RoleAuthorizationState> & {
|
|
330
|
-
pathParams: {
|
|
331
|
-
role: string;
|
|
332
|
-
};
|
|
333
|
-
},
|
|
334
|
-
>(
|
|
335
|
-
config: Config,
|
|
336
|
-
): Alova2Method<
|
|
337
|
-
RoleAuthorizationState,
|
|
338
|
-
'roleAuthorizationRestful.getRoleAuthorizationState',
|
|
339
|
-
Config
|
|
340
|
-
>;
|
|
341
|
-
};
|
|
342
|
-
userAuthorizationRestful: {
|
|
343
|
-
/**
|
|
344
|
-
* ---
|
|
345
|
-
*
|
|
346
|
-
* [GET]
|
|
347
|
-
*
|
|
348
|
-
* **path:** /授权/服务/用户/{userId}
|
|
349
|
-
*
|
|
350
|
-
* ---
|
|
351
|
-
*
|
|
352
|
-
* **Path Parameters**
|
|
353
|
-
* ```ts
|
|
354
|
-
* type PathParameters = {
|
|
355
|
-
* userId: string
|
|
356
|
-
* }
|
|
357
|
-
* ```
|
|
358
|
-
*
|
|
359
|
-
* ---
|
|
360
|
-
*
|
|
361
|
-
* **Response**
|
|
362
|
-
* ```ts
|
|
363
|
-
* type Response = {
|
|
364
|
-
* userId?: string
|
|
365
|
-
* // [items] start
|
|
366
|
-
* // [items] end
|
|
367
|
-
* authorizationStates?: Array<{
|
|
368
|
-
* requestDefinition?: string
|
|
369
|
-
* policyDefinition?: string
|
|
370
|
-
* policyEffect?: string
|
|
371
|
-
* matchers?: string
|
|
372
|
-
* policies?: string
|
|
373
|
-
* }>
|
|
374
|
-
* }
|
|
375
|
-
* ```
|
|
376
|
-
*/
|
|
377
|
-
getUserAuthorizationState<
|
|
378
|
-
Config extends Alova2MethodConfig<UserAuthorizationState> & {
|
|
379
|
-
pathParams: {
|
|
380
|
-
userId: string;
|
|
381
|
-
};
|
|
382
|
-
},
|
|
383
|
-
>(
|
|
384
|
-
config: Config,
|
|
385
|
-
): Alova2Method<
|
|
386
|
-
UserAuthorizationState,
|
|
387
|
-
'userAuthorizationRestful.getUserAuthorizationState',
|
|
388
|
-
Config
|
|
389
|
-
>;
|
|
390
|
-
};
|
|
391
|
-
}
|
|
392
|
-
|
|
393
|
-
var authorizeApi: authorizeApi;
|
|
394
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
import { Authorization } from 'src/api/authorization/authorization';
|
|
2
|
-
export class AlovaAuthorization extends Authorization {
|
|
3
|
-
static override getToken(type?: string, uid?: string, token?: string) {
|
|
4
|
-
return authorizeApi.oAuthRestful
|
|
5
|
-
.getToken({
|
|
6
|
-
data: {
|
|
7
|
-
...{ ...(type && { type }) },
|
|
8
|
-
...{ ...(uid && { uid }) },
|
|
9
|
-
...{ ...(token && { token }) },
|
|
10
|
-
},
|
|
11
|
-
})
|
|
12
|
-
.send();
|
|
13
|
-
}
|
|
14
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { createAlova } from 'alova';
|
|
2
|
-
import fetchAdapter from 'alova/fetch';
|
|
3
|
-
import { createApis, withConfigType, mountApis } from './createApis';
|
|
4
|
-
import { onAuthRequired, responded } from 'src/api/config/alova';
|
|
5
|
-
import { getServiceEndpoint, ServiceType } from 'src/api/config';
|
|
6
|
-
|
|
7
|
-
export const alovaInstance = createAlova({
|
|
8
|
-
baseURL: getServiceEndpoint(ServiceType.Authorization),
|
|
9
|
-
requestAdapter: fetchAdapter(),
|
|
10
|
-
beforeRequest: onAuthRequired(),
|
|
11
|
-
cacheFor: null,
|
|
12
|
-
responded: responded,
|
|
13
|
-
});
|
|
14
|
-
|
|
15
|
-
export const $$userConfigMap = withConfigType({});
|
|
16
|
-
|
|
17
|
-
const Apis = createApis(alovaInstance, $$userConfigMap);
|
|
18
|
-
|
|
19
|
-
mountApis(Apis);
|
|
20
|
-
|
|
21
|
-
export default Apis;
|
|
22
|
-
export * from './implement';
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import type { GetTokenResponse } from 'src/api/authorization/alova/globals';
|
|
2
|
-
import type { IBuilder } from 'builder-pattern';
|
|
3
|
-
import { Builder } from 'builder-pattern';
|
|
4
|
-
|
|
5
|
-
export class Authorization {
|
|
6
|
-
static _default: typeof Authorization;
|
|
7
|
-
static builder(): IBuilder<Authorization> {
|
|
8
|
-
return Builder(this._default) as unknown as IBuilder<Authorization>;
|
|
9
|
-
}
|
|
10
|
-
static default(): typeof Authorization {
|
|
11
|
-
return this._default as unknown as typeof Authorization;
|
|
12
|
-
}
|
|
13
|
-
static getToken(type?: string, uid?: string, token?: string): Promise<GetTokenResponse> {
|
|
14
|
-
return Authorization.default().getToken(type, uid, token);
|
|
15
|
-
}
|
|
16
|
-
}
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
/// <reference types='./globals.d.ts' />
|
|
2
|
-
/* tslint:disable */
|
|
3
|
-
|
|
4
|
-
/**
|
|
5
|
-
* OpenAPI definition - version v0
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* OpenAPI version: 3.1.0
|
|
10
|
-
*
|
|
11
|
-
*
|
|
12
|
-
* NOTE: This file is auto generated by the alova's vscode plugin.
|
|
13
|
-
*
|
|
14
|
-
* https://alova.js.org/devtools/vscode
|
|
15
|
-
*
|
|
16
|
-
* **Do not edit the file manually.**
|
|
17
|
-
*/
|
|
18
|
-
export default {
|
|
19
|
-
'checkStateRestful.getCheckState': ['GET', '/病历/服务/{id}'],
|
|
20
|
-
'checkStateRestful.putCheckState': ['PUT', '/病历/服务/{id}'],
|
|
21
|
-
'checkStateRestful.deleteCheckState': ['DELETE', '/病历/服务/{id}'],
|
|
22
|
-
'checkStateRestful.queryCheckState': ['GET', '/病历/服务'],
|
|
23
|
-
'checkStateRestful.postCheckState': ['POST', '/病历/服务'],
|
|
24
|
-
'checkStateRestful.queryPaymentState': ['GET', '/病历/服务/药方/支付信息'],
|
|
25
|
-
'checkStateRestful.datesOfCheckState': ['GET', '/病历/服务/统计/病历/日期'],
|
|
26
|
-
'checkStateRestful.totalOfCheckState': ['GET', '/病历/服务/统计/病历/总数'],
|
|
27
|
-
'checkStateRestful.genderDistributeOfCheckState': ['GET', '/病历/服务/统计/病历/性别/分布'],
|
|
28
|
-
'checkStateRestful.ageDistributeOfCheckState': ['GET', '/病历/服务/统计/病历/年龄/分布'],
|
|
29
|
-
'checkStateRestful.totalOfCheckByTodayState': ['GET', '/病历/服务/统计/病历/今日'],
|
|
30
|
-
};
|
|
@@ -1,114 +0,0 @@
|
|
|
1
|
-
/* tslint:disable */
|
|
2
|
-
/* eslint-disable */
|
|
3
|
-
/**
|
|
4
|
-
* OpenAPI definition - version v0
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* OpenAPI version: 3.1.0
|
|
9
|
-
*
|
|
10
|
-
*
|
|
11
|
-
* NOTE: This file is auto generated by the alova's vscode plugin.
|
|
12
|
-
*
|
|
13
|
-
* https://alova.js.org/devtools/vscode
|
|
14
|
-
*
|
|
15
|
-
* **Do not edit the file manually.**
|
|
16
|
-
*/
|
|
17
|
-
import type { Alova, MethodType, AlovaGenerics, AlovaMethodCreateConfig } from 'alova';
|
|
18
|
-
import { Method } from 'alova';
|
|
19
|
-
import apiDefinitions from './apiDefinitions';
|
|
20
|
-
|
|
21
|
-
const cache = Object.create(null);
|
|
22
|
-
const createFunctionalProxy = (
|
|
23
|
-
array: (string | symbol)[],
|
|
24
|
-
alovaInstance: Alova<AlovaGenerics>,
|
|
25
|
-
configMap: any,
|
|
26
|
-
) => {
|
|
27
|
-
const apiPathKey = array.join('.') as keyof typeof apiDefinitions;
|
|
28
|
-
if (cache[apiPathKey]) {
|
|
29
|
-
return cache[apiPathKey];
|
|
30
|
-
}
|
|
31
|
-
// create a new proxy instance
|
|
32
|
-
const proxy = new Proxy(function () {}, {
|
|
33
|
-
get(_, property) {
|
|
34
|
-
// record the target property, so that it can get the completed accessing paths
|
|
35
|
-
const newArray = [...array, property];
|
|
36
|
-
// always return a new proxy to continue recording accessing paths.
|
|
37
|
-
return createFunctionalProxy(newArray, alovaInstance, configMap);
|
|
38
|
-
},
|
|
39
|
-
apply(_, __, [config]) {
|
|
40
|
-
const apiItem = apiDefinitions[apiPathKey];
|
|
41
|
-
if (!apiItem) {
|
|
42
|
-
throw new Error(`the api path of \`${apiPathKey}\` is not found`);
|
|
43
|
-
}
|
|
44
|
-
const mergedConfig = {
|
|
45
|
-
...configMap[apiPathKey],
|
|
46
|
-
...config,
|
|
47
|
-
};
|
|
48
|
-
const [method, url] = apiItem;
|
|
49
|
-
const pathParams = mergedConfig.pathParams;
|
|
50
|
-
const urlReplaced = url!.replace(/\{([^}]+)\}/g, (_, key) => {
|
|
51
|
-
const pathParam = pathParams[key];
|
|
52
|
-
return pathParam;
|
|
53
|
-
});
|
|
54
|
-
delete mergedConfig.pathParams;
|
|
55
|
-
let data = mergedConfig.data;
|
|
56
|
-
if (
|
|
57
|
-
Object.prototype.toString.call(data) === '[object Object]' &&
|
|
58
|
-
typeof FormData !== 'undefined'
|
|
59
|
-
) {
|
|
60
|
-
let hasBlobData = false;
|
|
61
|
-
const formData = new FormData();
|
|
62
|
-
for (const key in data) {
|
|
63
|
-
formData.append(key, data[key]);
|
|
64
|
-
if (data[key] instanceof Blob) {
|
|
65
|
-
hasBlobData = true;
|
|
66
|
-
}
|
|
67
|
-
}
|
|
68
|
-
data = hasBlobData ? formData : data;
|
|
69
|
-
}
|
|
70
|
-
return new Method(
|
|
71
|
-
method!.toUpperCase() as MethodType,
|
|
72
|
-
alovaInstance,
|
|
73
|
-
urlReplaced,
|
|
74
|
-
mergedConfig,
|
|
75
|
-
data,
|
|
76
|
-
);
|
|
77
|
-
},
|
|
78
|
-
});
|
|
79
|
-
cache[apiPathKey] = proxy;
|
|
80
|
-
return proxy;
|
|
81
|
-
};
|
|
82
|
-
|
|
83
|
-
export const createApis = (alovaInstance: Alova<AlovaGenerics>, configMap: any) => {
|
|
84
|
-
const Apis = new Proxy({} as checkApi, {
|
|
85
|
-
get(_, property) {
|
|
86
|
-
return createFunctionalProxy([property], alovaInstance, configMap);
|
|
87
|
-
},
|
|
88
|
-
});
|
|
89
|
-
return Apis;
|
|
90
|
-
};
|
|
91
|
-
export const mountApis = (Apis: checkApi) => {
|
|
92
|
-
// define global variable `Apis`
|
|
93
|
-
(globalThis as any).checkApi = Apis;
|
|
94
|
-
};
|
|
95
|
-
type MethodConfig<T> = AlovaMethodCreateConfig<
|
|
96
|
-
(typeof import('./index'))['alovaInstance'] extends Alova<infer AG> ? AG : any,
|
|
97
|
-
any,
|
|
98
|
-
T
|
|
99
|
-
>;
|
|
100
|
-
type APISofParameters<Tag extends string, Url extends string> = Tag extends keyof checkApi
|
|
101
|
-
? Url extends keyof checkApi[Tag]
|
|
102
|
-
? checkApi[Tag][Url] extends (...args: any) => any
|
|
103
|
-
? Parameters<checkApi[Tag][Url]>
|
|
104
|
-
: any
|
|
105
|
-
: any
|
|
106
|
-
: any;
|
|
107
|
-
type MethodsConfigMap = {
|
|
108
|
-
[P in keyof typeof import('./apiDefinitions').default]?: MethodConfig<
|
|
109
|
-
P extends `${infer Tag}.${infer Url}`
|
|
110
|
-
? Parameters<NonNullable<APISofParameters<Tag, Url>[0]>['transform']>[0]
|
|
111
|
-
: any
|
|
112
|
-
>;
|
|
113
|
-
};
|
|
114
|
-
export const withConfigType = <Config extends MethodsConfigMap>(config: Config) => config;
|