web-core-tcm 0.0.72 → 0.0.73
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/src/api/algorithm/alova/implement/lisemsAlgorithm.js +10 -6
- package/dist/src/api/algorithm/pulsationsAlgorithm.js +1 -1
- package/dist/src/api/authorization/alova/index.d.ts +2 -3
- package/dist/src/api/authorization/alova/index.js +13 -16
- package/dist/src/api/authorization/authorization.d.ts +1 -1
- package/dist/src/api/authorization/index.js +6 -9
- package/dist/src/api/check/alova/implement/check.d.ts +1 -1
- package/dist/src/api/check/alova/implement/check.js +19 -18
- package/dist/src/api/check/alova/index.d.ts +2 -1
- package/dist/src/api/check/alova/index.js +11 -10
- package/dist/src/api/check/check.d.ts +2 -2
- package/dist/src/api/check/check.js +19 -8
- package/dist/src/api/check/index.js +10 -9
- package/dist/src/api/config/alova/index.js +10 -10
- package/dist/src/api/config/index.d.ts +3 -1
- package/dist/src/api/config/index.js +21 -9
- package/dist/src/api/core/core.d.ts +1 -1
- package/dist/src/api/doctor/alova/index.d.ts +2 -1
- package/dist/src/api/doctor/alova/index.js +8 -7
- package/dist/src/api/doctor/doctor.d.ts +1 -1
- package/dist/src/api/doctor/index.js +7 -6
- package/dist/src/api/index.d.ts +1 -0
- package/dist/src/api/index.js +2 -0
- package/dist/src/api/manager/alova/apiDefinitions.d.ts +77 -0
- package/dist/src/api/manager/alova/apiDefinitions.js +65 -0
- package/dist/src/api/manager/alova/createApis.d.ts +10 -0
- package/dist/src/api/manager/alova/createApis.js +49 -0
- package/dist/src/api/manager/alova/globals.d.ts +5524 -0
- package/dist/src/api/manager/alova/implement/department.d.ts +15 -0
- package/dist/src/api/manager/alova/implement/department.js +71 -0
- package/dist/src/api/manager/alova/implement/division.d.ts +15 -0
- package/dist/src/api/manager/alova/implement/division.js +71 -0
- package/dist/src/api/manager/alova/implement/hospital.d.ts +15 -0
- package/dist/src/api/manager/alova/implement/hospital.js +72 -0
- package/dist/src/api/manager/alova/implement/index.d.ts +3 -0
- package/dist/src/api/manager/alova/implement/index.js +8 -0
- package/dist/src/api/manager/alova/index.d.ts +7 -0
- package/dist/src/api/manager/alova/index.js +21 -0
- package/dist/src/api/manager/department.d.ts +23 -0
- package/dist/src/api/manager/department.js +49 -0
- package/dist/src/api/manager/division.d.ts +23 -0
- package/dist/src/api/manager/division.js +44 -0
- package/dist/src/api/manager/hospital.d.ts +24 -0
- package/dist/src/api/manager/hospital.js +51 -0
- package/dist/src/api/manager/index.d.ts +4 -0
- package/dist/src/api/manager/index.js +18 -0
- package/dist/src/api/metric/alova/implement/metric.d.ts +1 -1
- package/dist/src/api/metric/metric.d.ts +2 -2
- package/dist/src/api/oauth/alova/index.d.ts +2 -1
- package/dist/src/api/oauth/alova/index.js +12 -11
- package/dist/src/api/oauth/index.js +6 -5
- package/dist/src/api/outpatient/alova/index.d.ts +2 -1
- package/dist/src/api/outpatient/alova/index.js +11 -10
- package/dist/src/api/outpatient/index.js +10 -9
- package/dist/src/api/outpatient/outpatient.d.ts +1 -1
- package/dist/src/api/patient/alova/implement/meta.d.ts +1 -1
- package/dist/src/api/patient/alova/index.d.ts +2 -1
- package/dist/src/api/patient/alova/index.js +11 -10
- package/dist/src/api/patient/index.js +27 -26
- package/dist/src/api/patient/meta.d.ts +1 -1
- package/dist/src/api/patient/patient.d.ts +1 -1
- package/dist/src/api/prescription/alova/implement/prescription.d.ts +0 -1
- package/dist/src/api/prescription/alova/implement/prescription.js +9 -17
- package/dist/src/api/prescription/alova/index.d.ts +2 -1
- package/dist/src/api/prescription/alova/index.js +2 -1
- package/dist/src/api/prescription/herbal.d.ts +1 -1
- package/dist/src/api/prescription/index.js +12 -11
- package/dist/src/api/prescription/prescription.d.ts +1 -2
- package/dist/src/api/prescription/prescription.js +9 -12
- package/dist/src/api/scientist/alova/index.d.ts +2 -1
- package/dist/src/api/scientist/alova/index.js +6 -5
- package/dist/src/api/scientist/index.js +8 -7
- package/dist/src/api/scientist/scientist.d.ts +1 -1
- package/dist/src/api/user/alova/apiDefinitions.d.ts +26 -0
- package/dist/src/api/user/alova/apiDefinitions.js +14 -0
- package/dist/src/api/user/alova/createApis.d.ts +10 -0
- package/dist/src/api/user/alova/createApis.js +49 -0
- package/dist/src/api/user/alova/globals.d.ts +529 -0
- package/dist/src/api/user/alova/implement/index.d.ts +1 -0
- package/dist/src/api/user/alova/implement/index.js +1 -0
- package/dist/src/api/user/alova/implement/user.d.ts +10 -0
- package/dist/src/api/user/alova/index.d.ts +7 -0
- package/dist/src/api/user/alova/index.js +21 -0
- package/dist/src/api/user/index.d.ts +2 -0
- package/dist/src/api/user/index.js +8 -0
- package/dist/src/api/user/user.d.ts +23 -0
- package/dist/src/api/user/user.js +52 -0
- package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue.d.ts +14 -3
- package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue.js +2 -2
- package/dist/src/components/tcm/inquirise/ComplaintViewCollected.vue2.js +117 -129
- package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue.d.ts +14 -3
- package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue.js +2 -2
- package/dist/src/components/tcm/inquirise/ComplaintsRecognitionCollected.vue2.js +123 -139
- package/dist/src/components/tcm/lisems/EPPCollected.vue.js +1 -1
- package/dist/src/components/tcm/palpations/PulsationCollect.vue.js +2 -2
- package/dist/src/components/tcm/palpations/PulsationCollect.vue2.js +51 -54
- package/dist/src/index.js +42 -40
- package/dist/web-core-tcm.css +1 -1
- package/package.json +11 -1
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
2
|
import t from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
3
|
-
import { withConfigType as o, createApis as r, mountApis as
|
|
4
|
-
import { responded as
|
|
3
|
+
import { withConfigType as o, createApis as r, mountApis as a } from "./createApis.js";
|
|
4
|
+
import { responded as p, onAuthRequired as i } from "../../config/alova/index.js";
|
|
5
5
|
import { getServiceEndpoint as n, ServiceType as s } from "../../config/index.js";
|
|
6
6
|
import "./implement/index.js";
|
|
7
|
-
const
|
|
7
|
+
const c = e({
|
|
8
8
|
baseURL: n(s.Outpatient),
|
|
9
9
|
requestAdapter: t(),
|
|
10
|
-
beforeRequest:
|
|
10
|
+
beforeRequest: i(() => {
|
|
11
11
|
}),
|
|
12
12
|
cacheFor: null,
|
|
13
|
-
responded:
|
|
14
|
-
}),
|
|
15
|
-
|
|
13
|
+
responded: p
|
|
14
|
+
}), m = o({}), u = r(c, m);
|
|
15
|
+
a(u);
|
|
16
16
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
m as $$userConfigMap,
|
|
18
|
+
c as alovaInstance,
|
|
19
|
+
u as default,
|
|
20
|
+
c as outpatientAlovaInstance
|
|
20
21
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
import { Queuer as
|
|
2
|
-
import { $$userConfigMap as
|
|
3
|
-
import { AlovaQueuer as
|
|
1
|
+
import { Queuer as o, QueuerStatus as t, QueuerStatusConfig as u } from "./outpatient.js";
|
|
2
|
+
import { $$userConfigMap as n, alovaInstance as s, alovaInstance as f } from "./alova/index.js";
|
|
3
|
+
import { AlovaQueuer as l } from "./alova/implement/outpatient.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
5
|
+
n as $$userConfigMap,
|
|
6
|
+
l as AlovaQueuer,
|
|
7
|
+
o as Queuer,
|
|
8
|
+
t as QueuerStatus,
|
|
9
|
+
u as QueuerStatusConfig,
|
|
10
|
+
s as alovaInstance,
|
|
11
|
+
f as outpatientAlovaInstance
|
|
11
12
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Page, NetworkObject } from '../core/core';
|
|
2
|
-
import { QueuerState } from './alova/globals
|
|
2
|
+
import { QueuerState } from './alova/globals';
|
|
3
3
|
import { IBuilder } from 'builder-pattern';
|
|
4
4
|
import { Patient } from '../patient/patient';
|
|
5
5
|
import { Doctor } from '../doctor/doctor';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MetaState } from '../globals
|
|
1
|
+
import { MetaState } from '../globals';
|
|
2
2
|
import { AppendixMeta, ComplaintMeta, ECGMeta, FaceMeta, Meta, Metas, PCGMeta, PPGMeta, PulsationMeta, SceneMeta, TongueMeta } from '../../meta';
|
|
3
3
|
import { Page, Tag } from '../../../core/core';
|
|
4
4
|
import { Patient } from '../../patient';
|
|
@@ -2,5 +2,6 @@ export declare const alovaInstance: import('alova').Alova<import('alova').AlovaG
|
|
|
2
2
|
export declare const $$userConfigMap: {};
|
|
3
3
|
declare const Apis: patientApi;
|
|
4
4
|
export * from './implement';
|
|
5
|
-
export type * from './globals
|
|
5
|
+
export type * from './globals';
|
|
6
|
+
export { alovaInstance as patientAlovaInstance };
|
|
6
7
|
export default Apis;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
2
|
import t from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
3
|
-
import { withConfigType as o, createApis as r, mountApis as
|
|
4
|
-
import { responded as
|
|
3
|
+
import { withConfigType as o, createApis as r, mountApis as a } from "./createApis.js";
|
|
4
|
+
import { responded as i, onAuthRequired as p } from "../../config/alova/index.js";
|
|
5
5
|
import { getServiceEndpoint as n, ServiceType as s } from "../../config/index.js";
|
|
6
6
|
import "./implement/index.js";
|
|
7
|
-
const
|
|
7
|
+
const c = e({
|
|
8
8
|
baseURL: n(s.Patient),
|
|
9
9
|
requestAdapter: t(),
|
|
10
|
-
beforeRequest:
|
|
10
|
+
beforeRequest: p(() => {
|
|
11
11
|
}),
|
|
12
12
|
cacheFor: null,
|
|
13
|
-
responded:
|
|
14
|
-
}),
|
|
15
|
-
|
|
13
|
+
responded: i
|
|
14
|
+
}), m = o({}), f = r(c, m);
|
|
15
|
+
a(f);
|
|
16
16
|
export {
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
f as default
|
|
17
|
+
m as $$userConfigMap,
|
|
18
|
+
c as alovaInstance,
|
|
19
|
+
f as default,
|
|
20
|
+
c as patientAlovaInstance
|
|
20
21
|
};
|
|
@@ -1,32 +1,32 @@
|
|
|
1
1
|
import { Annotation as t, BaseObject as o, NetworkObject as M, Page as n, Sequence as l, Tag as p } from "../core/core.js";
|
|
2
|
-
import { AppendixMeta as
|
|
2
|
+
import { AppendixMeta as A, ComplaintMeta as r, ECGMeta as i, FaceMeta as s, ImageMeta as c, ImagesMeta as P, Meta as m, MetaSequence as x, MetaType as f, MetaTypeConfig as g, MetaTypeMap as C, Metas as u, PCGMeta as T, PPGMeta as G, PulsationMeta as I, SceneMeta as S, TextMeta as y, TongueMeta as b, WavesMeta as d } from "./meta.js";
|
|
3
3
|
import { Patient as q } from "./patient.js";
|
|
4
|
-
import { $$userConfigMap as F, alovaInstance as O } from "./alova/index.js";
|
|
5
|
-
import { AlovaAppendixMeta as
|
|
6
|
-
import { AlovaPatient as
|
|
4
|
+
import { $$userConfigMap as F, alovaInstance as O, alovaInstance as $ } from "./alova/index.js";
|
|
5
|
+
import { AlovaAppendixMeta as w, AlovaComplaintMeta as B, AlovaECGMeta as N, AlovaFaceMeta as W, AlovaMeta as h, AlovaMetas as z, AlovaPCGMeta as D, AlovaPPGMeta as H, AlovaPulsationMeta as J, AlovaSceneMeta as K, AlovaTongueMeta as L } from "./alova/implement/meta.js";
|
|
6
|
+
import { AlovaPatient as R } from "./alova/implement/patient.js";
|
|
7
7
|
export {
|
|
8
8
|
F as $$userConfigMap,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
9
|
+
w as AlovaAppendixMeta,
|
|
10
|
+
B as AlovaComplaintMeta,
|
|
11
|
+
N as AlovaECGMeta,
|
|
12
|
+
W as AlovaFaceMeta,
|
|
13
|
+
h as AlovaMeta,
|
|
14
|
+
z as AlovaMetas,
|
|
15
|
+
D as AlovaPCGMeta,
|
|
16
|
+
H as AlovaPPGMeta,
|
|
17
|
+
R as AlovaPatient,
|
|
18
|
+
J as AlovaPulsationMeta,
|
|
19
|
+
K as AlovaSceneMeta,
|
|
20
|
+
L as AlovaTongueMeta,
|
|
21
21
|
t as Annotation,
|
|
22
|
-
|
|
22
|
+
A as AppendixMeta,
|
|
23
23
|
o as BaseObject,
|
|
24
|
-
|
|
24
|
+
r as ComplaintMeta,
|
|
25
25
|
i as ECGMeta,
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
26
|
+
s as FaceMeta,
|
|
27
|
+
c as ImageMeta,
|
|
28
|
+
P as ImagesMeta,
|
|
29
|
+
m as Meta,
|
|
30
30
|
x as MetaSequence,
|
|
31
31
|
f as MetaType,
|
|
32
32
|
g as MetaTypeConfig,
|
|
@@ -37,12 +37,13 @@ export {
|
|
|
37
37
|
G as PPGMeta,
|
|
38
38
|
n as Page,
|
|
39
39
|
q as Patient,
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
I as PulsationMeta,
|
|
41
|
+
S as SceneMeta,
|
|
42
42
|
l as Sequence,
|
|
43
43
|
p as Tag,
|
|
44
|
-
|
|
44
|
+
y as TextMeta,
|
|
45
45
|
b as TongueMeta,
|
|
46
46
|
d as WavesMeta,
|
|
47
|
-
O as alovaInstance
|
|
47
|
+
O as alovaInstance,
|
|
48
|
+
$ as patientAlovaInstance
|
|
48
49
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Page, Sequence, Tag, NetworkObject } from '../core/core';
|
|
2
2
|
import { WaveMap } from '../../proto/types/WaveMap_pb';
|
|
3
|
-
import { MetaState } from './alova/globals
|
|
3
|
+
import { MetaState } from './alova/globals';
|
|
4
4
|
import { Image, Images } from '../../proto/types/Images_pb';
|
|
5
5
|
import { Patient } from './patient';
|
|
6
6
|
import { IBuilder } from 'builder-pattern';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Page, Tag, NetworkObject } from '../core/core';
|
|
2
|
-
import { PatientState } from './alova/globals
|
|
2
|
+
import { PatientState } from './alova/globals';
|
|
3
3
|
import { Metas } from './meta';
|
|
4
4
|
import { IBuilder } from 'builder-pattern';
|
|
5
5
|
export declare abstract class Patient extends NetworkObject {
|
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { Prescription as o } from "../../prescription.js";
|
|
2
|
-
class
|
|
3
|
-
static query(
|
|
4
|
-
const
|
|
2
|
+
class a extends o {
|
|
3
|
+
static query(s = 0, r = 9999999, p, e) {
|
|
4
|
+
const i = p?.state();
|
|
5
5
|
return prescriptionApi.prescriptionRestful.queryPrescriptionState({
|
|
6
6
|
data: {
|
|
7
|
-
...
|
|
8
|
-
...
|
|
9
|
-
page:
|
|
10
|
-
pageSize:
|
|
7
|
+
...i && { ownerState: i },
|
|
8
|
+
...e && { name: e },
|
|
9
|
+
page: s,
|
|
10
|
+
pageSize: r
|
|
11
11
|
},
|
|
12
12
|
async transform(t) {
|
|
13
13
|
return {
|
|
14
|
-
data: await Promise.all(t.content.map((
|
|
14
|
+
data: await Promise.all(t.content.map((n) => new a().of(n))),
|
|
15
15
|
total: t.totalElements,
|
|
16
16
|
page: t.number,
|
|
17
17
|
pageSize: t.size,
|
|
@@ -43,15 +43,7 @@ class r extends o {
|
|
|
43
43
|
}
|
|
44
44
|
}).send(), this;
|
|
45
45
|
}
|
|
46
|
-
static async initPrescriptions(i) {
|
|
47
|
-
const e = i?.state();
|
|
48
|
-
return await prescriptionApi.prescriptionRestful.initPrescriptions({
|
|
49
|
-
data: {
|
|
50
|
-
ownerState: e
|
|
51
|
-
}
|
|
52
|
-
}), Promise.resolve();
|
|
53
|
-
}
|
|
54
46
|
}
|
|
55
47
|
export {
|
|
56
|
-
|
|
48
|
+
a as AlovaPrescription
|
|
57
49
|
};
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
export declare const alovaInstance: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, any, any, any>>;
|
|
2
|
+
export { alovaInstance as prescriptionAlovaInstance };
|
|
2
3
|
export declare const $$userConfigMap: {};
|
|
3
4
|
declare const Apis: prescriptionApi;
|
|
4
5
|
export default Apis;
|
|
5
6
|
export * from './implement';
|
|
6
|
-
export type * from './globals
|
|
7
|
+
export type * from './globals';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Page, NetworkObject } from '../core/core';
|
|
2
|
-
import { HerbalState } from './alova/globals
|
|
2
|
+
import { HerbalState } from './alova/globals';
|
|
3
3
|
import { IBuilder } from 'builder-pattern';
|
|
4
4
|
import { Doctor } from '../doctor/doctor';
|
|
5
5
|
export declare abstract class Herbal extends NetworkObject {
|
|
@@ -1,13 +1,14 @@
|
|
|
1
|
-
import { Herbal as
|
|
2
|
-
import { Prescription as
|
|
3
|
-
import { $$userConfigMap as
|
|
4
|
-
import { AlovaHerbal as
|
|
5
|
-
import { AlovaPrescription as
|
|
1
|
+
import { Herbal as a } from "./herbal.js";
|
|
2
|
+
import { Prescription as t } from "./prescription.js";
|
|
3
|
+
import { $$userConfigMap as p, alovaInstance as s, alovaInstance as i } from "./alova/index.js";
|
|
4
|
+
import { AlovaHerbal as c } from "./alova/implement/herbal.js";
|
|
5
|
+
import { AlovaPrescription as m } from "./alova/implement/prescription.js";
|
|
6
6
|
export {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
7
|
+
p as $$userConfigMap,
|
|
8
|
+
c as AlovaHerbal,
|
|
9
|
+
m as AlovaPrescription,
|
|
10
|
+
a as Herbal,
|
|
11
|
+
t as Prescription,
|
|
12
|
+
s as alovaInstance,
|
|
13
|
+
i as prescriptionAlovaInstance
|
|
13
14
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { Herbal } from './herbal';
|
|
2
|
-
import { PrescriptionState } from './alova/globals
|
|
2
|
+
import { PrescriptionState } from './alova/globals';
|
|
3
3
|
import { Page, NetworkObject } from '../core/core';
|
|
4
4
|
import { IBuilder } from 'builder-pattern';
|
|
5
5
|
import { Doctor } from '../doctor/doctor';
|
|
@@ -23,5 +23,4 @@ export declare abstract class Prescription extends NetworkObject {
|
|
|
23
23
|
abstract put(): Promise<this>;
|
|
24
24
|
abstract post(): Promise<this>;
|
|
25
25
|
abstract delete(): Promise<this>;
|
|
26
|
-
static initPrescriptions(owner: Doctor): Promise<void>;
|
|
27
26
|
}
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { Herbal as
|
|
2
|
-
import { NetworkObject as
|
|
1
|
+
import { Herbal as u } from "./herbal.js";
|
|
2
|
+
import { NetworkObject as s } from "../core/core.js";
|
|
3
3
|
import { Builder as d } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
4
|
-
import { Doctor as
|
|
5
|
-
class
|
|
4
|
+
import { Doctor as i } from "../doctor/doctor.js";
|
|
5
|
+
class a extends s {
|
|
6
6
|
static builder() {
|
|
7
7
|
return d(this._default);
|
|
8
8
|
}
|
|
@@ -13,7 +13,7 @@ class i extends u {
|
|
|
13
13
|
createdTimestamp = "";
|
|
14
14
|
updatedTimestamp = "";
|
|
15
15
|
name = "匿名药方";
|
|
16
|
-
owner =
|
|
16
|
+
owner = i.builder().build();
|
|
17
17
|
totalAmount = 0;
|
|
18
18
|
useAmount = 0;
|
|
19
19
|
craftType = "自煎";
|
|
@@ -21,8 +21,8 @@ class i extends u {
|
|
|
21
21
|
useTime = ["早上", "晚上"];
|
|
22
22
|
herbals = [];
|
|
23
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
|
|
25
|
-
t.herbalsState.map((e) =>
|
|
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
26
|
)), Promise.resolve(this);
|
|
27
27
|
}
|
|
28
28
|
state() {
|
|
@@ -41,12 +41,9 @@ class i extends u {
|
|
|
41
41
|
};
|
|
42
42
|
}
|
|
43
43
|
static query(t = 0, e = 9999999, m, r) {
|
|
44
|
-
return
|
|
45
|
-
}
|
|
46
|
-
static initPrescriptions(t) {
|
|
47
|
-
return i.default().initPrescriptions(t);
|
|
44
|
+
return a.default().query(t, e, m, r);
|
|
48
45
|
}
|
|
49
46
|
}
|
|
50
47
|
export {
|
|
51
|
-
|
|
48
|
+
a as Prescription
|
|
52
49
|
};
|
|
@@ -2,5 +2,6 @@ export declare const alovaInstance: import('alova').Alova<import('alova').AlovaG
|
|
|
2
2
|
export declare const $$userConfigMap: {};
|
|
3
3
|
declare const Apis: scientistApi;
|
|
4
4
|
export * from './implement';
|
|
5
|
-
export type * from './globals
|
|
5
|
+
export type * from './globals';
|
|
6
|
+
export { alovaInstance as scientistAlovaInstance };
|
|
6
7
|
export default Apis;
|
|
@@ -1,20 +1,21 @@
|
|
|
1
1
|
import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
2
|
import t from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
3
3
|
import { withConfigType as o, createApis as r, mountApis as i } from "./createApis.js";
|
|
4
|
-
import { responded as
|
|
5
|
-
import { getServiceEndpoint as n, ServiceType as
|
|
4
|
+
import { responded as s, onAuthRequired as a } from "../../config/alova/index.js";
|
|
5
|
+
import { getServiceEndpoint as n, ServiceType as p } from "../../config/index.js";
|
|
6
6
|
import "./implement/index.js";
|
|
7
7
|
const c = e({
|
|
8
|
-
baseURL: n(
|
|
8
|
+
baseURL: n(p.Scientist),
|
|
9
9
|
requestAdapter: t(),
|
|
10
10
|
beforeRequest: a(() => {
|
|
11
11
|
}),
|
|
12
12
|
cacheFor: null,
|
|
13
|
-
responded:
|
|
13
|
+
responded: s
|
|
14
14
|
}), m = o({}), f = r(c, m);
|
|
15
15
|
i(f);
|
|
16
16
|
export {
|
|
17
17
|
m as $$userConfigMap,
|
|
18
18
|
c as alovaInstance,
|
|
19
|
-
f as default
|
|
19
|
+
f as default,
|
|
20
|
+
c as scientistAlovaInstance
|
|
20
21
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
|
-
import { Scientist as
|
|
2
|
-
import { $$userConfigMap as
|
|
3
|
-
import { AlovaScientist as
|
|
1
|
+
import { Scientist as o } from "./scientist.js";
|
|
2
|
+
import { $$userConfigMap as n, alovaInstance as s, alovaInstance as i } from "./alova/index.js";
|
|
3
|
+
import { AlovaScientist as c } from "./alova/implement/scientist.js";
|
|
4
4
|
export {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
5
|
+
n as $$userConfigMap,
|
|
6
|
+
c as AlovaScientist,
|
|
7
|
+
o as Scientist,
|
|
8
|
+
s as alovaInstance,
|
|
9
|
+
i as scientistAlovaInstance
|
|
9
10
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { NetworkObject } from '../core/core';
|
|
2
2
|
import { IBuilder } from 'builder-pattern';
|
|
3
|
-
import { ScientistState } from './alova/globals
|
|
3
|
+
import { ScientistState } from './alova/globals';
|
|
4
4
|
export declare abstract class Scientist extends NetworkObject {
|
|
5
5
|
static builder(): IBuilder<Scientist>;
|
|
6
6
|
static default(): typeof Scientist;
|
|
@@ -0,0 +1,26 @@
|
|
|
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
|
+
'userStateRestful.getUserState': string[];
|
|
17
|
+
'userStateRestful.putUserState': string[];
|
|
18
|
+
'userStateRestful.deleteUserState': string[];
|
|
19
|
+
'userStateRestful.queryUserState': string[];
|
|
20
|
+
'userStateRestful.postUserState': string[];
|
|
21
|
+
'userStateRestful.queryUserStateByExactMatch': string[];
|
|
22
|
+
'userStateRestful.datesOfUser': string[];
|
|
23
|
+
'userStateRestful.totalOfUser': string[];
|
|
24
|
+
'userStateRestful.totalOfUserByToday': string[];
|
|
25
|
+
};
|
|
26
|
+
export default _default;
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
const t = {
|
|
2
|
+
"userStateRestful.getUserState": ["GET", "/用户/服务/{id}"],
|
|
3
|
+
"userStateRestful.putUserState": ["PUT", "/用户/服务/{id}"],
|
|
4
|
+
"userStateRestful.deleteUserState": ["DELETE", "/用户/服务/{id}"],
|
|
5
|
+
"userStateRestful.queryUserState": ["GET", "/用户/服务"],
|
|
6
|
+
"userStateRestful.postUserState": ["POST", "/用户/服务"],
|
|
7
|
+
"userStateRestful.queryUserStateByExactMatch": ["POST", "/用户/服务/精确匹配"],
|
|
8
|
+
"userStateRestful.datesOfUser": ["GET", "/用户/服务/统计/用户/日期"],
|
|
9
|
+
"userStateRestful.totalOfUser": ["GET", "/用户/服务/统计/用户/总数"],
|
|
10
|
+
"userStateRestful.totalOfUserByToday": ["GET", "/用户/服务/统计/用户/今日"]
|
|
11
|
+
};
|
|
12
|
+
export {
|
|
13
|
+
t as default
|
|
14
|
+
};
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { Alova, AlovaGenerics, AlovaMethodCreateConfig } from 'alova';
|
|
2
|
+
export declare const createApis: (alovaInstance: Alova<AlovaGenerics>, configMap: any) => userApi;
|
|
3
|
+
export declare const mountApis: (Apis: userApi) => 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 userApi ? Url extends keyof userApi[Tag] ? userApi[Tag][Url] extends (...args: any) => any ? Parameters<userApi[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,49 @@
|
|
|
1
|
+
import { Method as g } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
|
+
import _ from "./apiDefinitions.js";
|
|
3
|
+
const l = /* @__PURE__ */ Object.create(null), d = (e, a, p) => {
|
|
4
|
+
const o = e.join(".");
|
|
5
|
+
if (l[o])
|
|
6
|
+
return l[o];
|
|
7
|
+
const s = new Proxy(function() {
|
|
8
|
+
}, {
|
|
9
|
+
get(y, u) {
|
|
10
|
+
const f = [...e, u];
|
|
11
|
+
return d(f, a, p);
|
|
12
|
+
},
|
|
13
|
+
apply(y, u, [f]) {
|
|
14
|
+
const m = _[o];
|
|
15
|
+
if (!m)
|
|
16
|
+
throw new Error(`the api path of \`${o}\` is not found`);
|
|
17
|
+
const i = {
|
|
18
|
+
...p[o],
|
|
19
|
+
...f
|
|
20
|
+
}, [P, b] = m, w = i.pathParams, A = b.replace(/\{([^}]+)\}/g, (c, n) => w[n]);
|
|
21
|
+
delete i.pathParams;
|
|
22
|
+
let t = i.data;
|
|
23
|
+
if (Object.prototype.toString.call(t) === "[object Object]" && typeof FormData < "u") {
|
|
24
|
+
let c = !1;
|
|
25
|
+
const n = new FormData();
|
|
26
|
+
for (const r in t)
|
|
27
|
+
if (Array.isArray(t[r]))
|
|
28
|
+
for (const h of t[r])
|
|
29
|
+
n.append(r, h), h instanceof Blob && (c = !0);
|
|
30
|
+
else
|
|
31
|
+
n.append(r, t[r]), t[r] instanceof Blob && (c = !0);
|
|
32
|
+
t = c ? n : t;
|
|
33
|
+
}
|
|
34
|
+
return new g(P.toUpperCase(), a, A, i, t);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
37
|
+
return l[o] = s, s;
|
|
38
|
+
}, D = (e, a) => new Proxy({}, {
|
|
39
|
+
get(o, s) {
|
|
40
|
+
return d([s], e, a);
|
|
41
|
+
}
|
|
42
|
+
}), B = (e) => {
|
|
43
|
+
globalThis.userApi = e;
|
|
44
|
+
}, C = (e) => e;
|
|
45
|
+
export {
|
|
46
|
+
D as createApis,
|
|
47
|
+
B as mountApis,
|
|
48
|
+
C as withConfigType
|
|
49
|
+
};
|