web-core-tcm 0.0.40 → 0.0.47
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/authorization/alova/createApis.js +38 -40
- package/dist/src/api/check/alova/createApis.js +39 -41
- package/dist/src/api/check/alova/globals.d.ts +49 -20
- package/dist/src/api/check/check.d.ts +3 -6
- package/dist/src/api/check/check.js +50 -50
- package/dist/src/api/doctor/alova/createApis.js +39 -41
- package/dist/src/api/oauth/alova/createApis.js +38 -40
- package/dist/src/api/outpatient/alova/createApis.js +38 -40
- package/dist/src/api/patient/alova/createApis.js +39 -41
- package/dist/src/api/prescription/alova/createApis.js +39 -41
- package/dist/src/api/scientist/alova/createApis.js +39 -41
- package/dist/src/types/global.d.ts +8 -0
- package/dist/src-electron/electron-env.d.ts +8 -0
- package/dist/src-electron/electron-main.d.ts +1 -0
- package/dist/src-electron/electron-preload.d.ts +1 -0
- package/package.json +7 -3
|
@@ -1,51 +1,49 @@
|
|
|
1
1
|
import { Method as g } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
|
-
import
|
|
3
|
-
const l = /* @__PURE__ */ Object.create(null),
|
|
4
|
-
const
|
|
5
|
-
if (l[
|
|
6
|
-
return l[
|
|
7
|
-
const
|
|
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 i = new Proxy(function() {
|
|
8
8
|
}, {
|
|
9
|
-
get(
|
|
10
|
-
const
|
|
11
|
-
return
|
|
9
|
+
get(y, u) {
|
|
10
|
+
const f = [...e, u];
|
|
11
|
+
return d(f, a, p);
|
|
12
12
|
},
|
|
13
|
-
apply(
|
|
14
|
-
const h =
|
|
13
|
+
apply(y, u, [f]) {
|
|
14
|
+
const h = _[o];
|
|
15
15
|
if (!h)
|
|
16
|
-
throw new Error(`the api path of \`${
|
|
17
|
-
const
|
|
18
|
-
...p[
|
|
19
|
-
...
|
|
20
|
-
}, [
|
|
21
|
-
delete
|
|
22
|
-
let
|
|
23
|
-
if (Object.prototype.toString.call(
|
|
24
|
-
let
|
|
25
|
-
const
|
|
26
|
-
for (const
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
throw new Error(`the api path of \`${o}\` is not found`);
|
|
17
|
+
const s = {
|
|
18
|
+
...p[o],
|
|
19
|
+
...f
|
|
20
|
+
}, [P, b] = h, w = s.pathParams, A = b.replace(/\{([^}]+)\}/g, (c, n) => w[n]);
|
|
21
|
+
delete s.pathParams;
|
|
22
|
+
let t = s.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 m of t[r])
|
|
29
|
+
n.append(r, m), m instanceof Blob && (c = !0);
|
|
30
|
+
else
|
|
31
|
+
n.append(r, t[r]), t[r] instanceof Blob && (c = !0);
|
|
32
|
+
t = c ? n : t;
|
|
29
33
|
}
|
|
30
|
-
return new g(
|
|
31
|
-
y.toUpperCase(),
|
|
32
|
-
r,
|
|
33
|
-
b,
|
|
34
|
-
a,
|
|
35
|
-
o
|
|
36
|
-
);
|
|
34
|
+
return new g(P.toUpperCase(), a, A, s, t);
|
|
37
35
|
}
|
|
38
36
|
});
|
|
39
|
-
return l[
|
|
40
|
-
},
|
|
41
|
-
get(
|
|
42
|
-
return
|
|
37
|
+
return l[o] = i, i;
|
|
38
|
+
}, D = (e, a) => new Proxy({}, {
|
|
39
|
+
get(o, i) {
|
|
40
|
+
return d([i], e, a);
|
|
43
41
|
}
|
|
44
|
-
}),
|
|
45
|
-
globalThis.authorizeApi =
|
|
46
|
-
}, C = (
|
|
42
|
+
}), B = (e) => {
|
|
43
|
+
globalThis.authorizeApi = e;
|
|
44
|
+
}, C = (e) => e;
|
|
47
45
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
D as createApis,
|
|
47
|
+
B as mountApis,
|
|
50
48
|
C as withConfigType
|
|
51
49
|
};
|
|
@@ -1,51 +1,49 @@
|
|
|
1
1
|
import { Method as g } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
|
-
import
|
|
3
|
-
const l = /* @__PURE__ */ Object.create(null),
|
|
4
|
-
const
|
|
5
|
-
if (l[
|
|
6
|
-
return l[
|
|
7
|
-
const
|
|
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 c = new Proxy(function() {
|
|
8
8
|
}, {
|
|
9
|
-
get(
|
|
10
|
-
const
|
|
11
|
-
return
|
|
9
|
+
get(y, u) {
|
|
10
|
+
const f = [...e, u];
|
|
11
|
+
return d(f, a, p);
|
|
12
12
|
},
|
|
13
|
-
apply(
|
|
14
|
-
const
|
|
15
|
-
if (!
|
|
16
|
-
throw new Error(`the api path of \`${
|
|
17
|
-
const
|
|
18
|
-
...
|
|
19
|
-
...
|
|
20
|
-
}, [
|
|
21
|
-
delete
|
|
22
|
-
let
|
|
23
|
-
if (Object.prototype.toString.call(
|
|
24
|
-
let
|
|
25
|
-
const
|
|
26
|
-
for (const
|
|
27
|
-
|
|
28
|
-
|
|
13
|
+
apply(y, u, [f]) {
|
|
14
|
+
const h = _[o];
|
|
15
|
+
if (!h)
|
|
16
|
+
throw new Error(`the api path of \`${o}\` is not found`);
|
|
17
|
+
const s = {
|
|
18
|
+
...p[o],
|
|
19
|
+
...f
|
|
20
|
+
}, [P, b] = h, w = s.pathParams, A = b.replace(/\{([^}]+)\}/g, (i, n) => w[n]);
|
|
21
|
+
delete s.pathParams;
|
|
22
|
+
let t = s.data;
|
|
23
|
+
if (Object.prototype.toString.call(t) === "[object Object]" && typeof FormData < "u") {
|
|
24
|
+
let i = !1;
|
|
25
|
+
const n = new FormData();
|
|
26
|
+
for (const r in t)
|
|
27
|
+
if (Array.isArray(t[r]))
|
|
28
|
+
for (const m of t[r])
|
|
29
|
+
n.append(r, m), m instanceof Blob && (i = !0);
|
|
30
|
+
else
|
|
31
|
+
n.append(r, t[r]), t[r] instanceof Blob && (i = !0);
|
|
32
|
+
t = i ? n : t;
|
|
29
33
|
}
|
|
30
|
-
return new g(
|
|
31
|
-
y.toUpperCase(),
|
|
32
|
-
n,
|
|
33
|
-
b,
|
|
34
|
-
a,
|
|
35
|
-
o
|
|
36
|
-
);
|
|
34
|
+
return new g(P.toUpperCase(), a, A, s, t);
|
|
37
35
|
}
|
|
38
36
|
});
|
|
39
|
-
return l[
|
|
40
|
-
},
|
|
41
|
-
get(
|
|
42
|
-
return
|
|
37
|
+
return l[o] = c, c;
|
|
38
|
+
}, D = (e, a) => new Proxy({}, {
|
|
39
|
+
get(o, c) {
|
|
40
|
+
return d([c], e, a);
|
|
43
41
|
}
|
|
44
|
-
}),
|
|
45
|
-
globalThis.checkApi =
|
|
46
|
-
}, C = (
|
|
42
|
+
}), B = (e) => {
|
|
43
|
+
globalThis.checkApi = e;
|
|
44
|
+
}, C = (e) => e;
|
|
47
45
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
D as createApis,
|
|
47
|
+
B as mountApis,
|
|
50
48
|
C as withConfigType
|
|
51
49
|
};
|
|
@@ -94,20 +94,17 @@ export interface PageCheckState {
|
|
|
94
94
|
content?: CheckState[];
|
|
95
95
|
number?: number;
|
|
96
96
|
sort?: SortObject;
|
|
97
|
-
first?: boolean;
|
|
98
|
-
last?: boolean;
|
|
99
97
|
numberOfElements?: number;
|
|
100
98
|
pageable?: PageableObject;
|
|
99
|
+
first?: boolean;
|
|
100
|
+
last?: boolean;
|
|
101
101
|
empty?: boolean;
|
|
102
102
|
}
|
|
103
103
|
export interface PaymentState {
|
|
104
104
|
id?: string;
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
patientName?: string;
|
|
109
|
-
patientPhone?: string;
|
|
110
|
-
patientGender?: string;
|
|
105
|
+
doctorState?: DoctorState;
|
|
106
|
+
patientState?: PatientState;
|
|
107
|
+
prescriptionsState?: string;
|
|
111
108
|
createdTimestamp?: number;
|
|
112
109
|
updatedTimestamp?: number;
|
|
113
110
|
prescriptionPaymentStatus?: number;
|
|
@@ -120,10 +117,10 @@ export interface PagePaymentState {
|
|
|
120
117
|
content?: PaymentState[];
|
|
121
118
|
number?: number;
|
|
122
119
|
sort?: SortObject;
|
|
123
|
-
first?: boolean;
|
|
124
|
-
last?: boolean;
|
|
125
120
|
numberOfElements?: number;
|
|
126
121
|
pageable?: PageableObject;
|
|
122
|
+
first?: boolean;
|
|
123
|
+
last?: boolean;
|
|
127
124
|
empty?: boolean;
|
|
128
125
|
}
|
|
129
126
|
declare global {
|
|
@@ -687,8 +684,6 @@ declare global {
|
|
|
687
684
|
* sorted?: boolean
|
|
688
685
|
* unsorted?: boolean
|
|
689
686
|
* }
|
|
690
|
-
* first?: boolean
|
|
691
|
-
* last?: boolean
|
|
692
687
|
* numberOfElements?: number
|
|
693
688
|
* pageable?: {
|
|
694
689
|
* offset?: number
|
|
@@ -702,6 +697,8 @@ declare global {
|
|
|
702
697
|
* pageNumber?: number
|
|
703
698
|
* unpaged?: boolean
|
|
704
699
|
* }
|
|
700
|
+
* first?: boolean
|
|
701
|
+
* last?: boolean
|
|
705
702
|
* empty?: boolean
|
|
706
703
|
* }
|
|
707
704
|
* ```
|
|
@@ -992,12 +989,44 @@ declare global {
|
|
|
992
989
|
* // [items] end
|
|
993
990
|
* content?: Array<{
|
|
994
991
|
* id?: string
|
|
995
|
-
*
|
|
996
|
-
*
|
|
997
|
-
*
|
|
998
|
-
*
|
|
999
|
-
*
|
|
1000
|
-
*
|
|
992
|
+
* doctorState?: {
|
|
993
|
+
* id?: string
|
|
994
|
+
* name?: string
|
|
995
|
+
* createdTimestamp?: string
|
|
996
|
+
* updatedTimestamp?: string
|
|
997
|
+
* gender?: string
|
|
998
|
+
* identityNumber?: string
|
|
999
|
+
* phoneNumber?: string
|
|
1000
|
+
* birthdate?: string
|
|
1001
|
+
* }
|
|
1002
|
+
* patientState?: {
|
|
1003
|
+
* id?: string
|
|
1004
|
+
* doctorId?: string
|
|
1005
|
+
* name?: string
|
|
1006
|
+
* createdTimestamp?: string
|
|
1007
|
+
* updatedTimestamp?: string
|
|
1008
|
+
* identity?: string
|
|
1009
|
+
* gender?: string
|
|
1010
|
+
* phoneNumber?: string
|
|
1011
|
+
* birthdate?: string
|
|
1012
|
+
* // [items] start
|
|
1013
|
+
* // [items] end
|
|
1014
|
+
* remarks?: string[]
|
|
1015
|
+
* // [items] start
|
|
1016
|
+
* // [items] end
|
|
1017
|
+
* tagsState?: Array<{
|
|
1018
|
+
* key?: string
|
|
1019
|
+
* // [items] start
|
|
1020
|
+
* // [items] end
|
|
1021
|
+
* annotationsState?: Array<{
|
|
1022
|
+
* value?: string
|
|
1023
|
+
* actor?: string
|
|
1024
|
+
* timestamp?: string
|
|
1025
|
+
* }>
|
|
1026
|
+
* }>
|
|
1027
|
+
* mainSymptom?: string
|
|
1028
|
+
* }
|
|
1029
|
+
* prescriptionsState?: string
|
|
1001
1030
|
* createdTimestamp?: number
|
|
1002
1031
|
* updatedTimestamp?: number
|
|
1003
1032
|
* prescriptionPaymentStatus?: number
|
|
@@ -1009,8 +1038,6 @@ declare global {
|
|
|
1009
1038
|
* sorted?: boolean
|
|
1010
1039
|
* unsorted?: boolean
|
|
1011
1040
|
* }
|
|
1012
|
-
* first?: boolean
|
|
1013
|
-
* last?: boolean
|
|
1014
1041
|
* numberOfElements?: number
|
|
1015
1042
|
* pageable?: {
|
|
1016
1043
|
* offset?: number
|
|
@@ -1024,6 +1051,8 @@ declare global {
|
|
|
1024
1051
|
* pageNumber?: number
|
|
1025
1052
|
* unpaged?: boolean
|
|
1026
1053
|
* }
|
|
1054
|
+
* first?: boolean
|
|
1055
|
+
* last?: boolean
|
|
1027
1056
|
* empty?: boolean
|
|
1028
1057
|
* }
|
|
1029
1058
|
* ```
|
|
@@ -37,12 +37,9 @@ export declare abstract class Payment extends NetworkObject {
|
|
|
37
37
|
static builder(): IBuilder<Payment>;
|
|
38
38
|
static default(): typeof Payment;
|
|
39
39
|
id: string;
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
patientName: string;
|
|
44
|
-
patientPhone: string;
|
|
45
|
-
patientGender: string;
|
|
40
|
+
prescriptions: Sequence<Prescription>;
|
|
41
|
+
doctor: Doctor;
|
|
42
|
+
patient: Patient;
|
|
46
43
|
createdTimestamp: number;
|
|
47
44
|
updatedTimestamp: number;
|
|
48
45
|
prescriptionPaymentStatus: number;
|
|
@@ -1,26 +1,25 @@
|
|
|
1
|
-
import { Patient as
|
|
2
|
-
import { NetworkObject as
|
|
3
|
-
import { Metas as
|
|
4
|
-
import { Prescription as
|
|
5
|
-
import { AlovaPrescription as g } from "../prescription/alova/implement/prescription.js";
|
|
1
|
+
import { Patient as h } from "../patient/patient.js";
|
|
2
|
+
import { NetworkObject as l, Sequence as r, Tag as b } from "../core/core.js";
|
|
3
|
+
import { Metas as m } from "../patient/meta.js";
|
|
4
|
+
import { Prescription as s } from "../prescription/prescription.js";
|
|
6
5
|
import { extractPlainText as c } from "../../util/RichTextUtil.js";
|
|
7
|
-
import { Doctor as
|
|
8
|
-
import { Herbal as
|
|
6
|
+
import { Doctor as f } from "../doctor/doctor.js";
|
|
7
|
+
import { Herbal as g } from "../prescription/herbal.js";
|
|
9
8
|
import "../prescription/alova/index.js";
|
|
10
|
-
import { Builder as
|
|
11
|
-
class
|
|
9
|
+
import { Builder as S } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
10
|
+
class n extends l {
|
|
12
11
|
static builder() {
|
|
13
|
-
return
|
|
12
|
+
return S(this._default);
|
|
14
13
|
}
|
|
15
14
|
static default() {
|
|
16
15
|
return this._default;
|
|
17
16
|
}
|
|
18
17
|
id = "";
|
|
19
|
-
doctor =
|
|
20
|
-
patient =
|
|
18
|
+
doctor = f.builder().build();
|
|
19
|
+
patient = h.builder().build();
|
|
21
20
|
diagnosis = "";
|
|
22
21
|
tags = [];
|
|
23
|
-
prescriptions = new
|
|
22
|
+
prescriptions = new r();
|
|
24
23
|
createdTimestamp = Date.now().toString();
|
|
25
24
|
updatedTimestamp = Date.now().toString();
|
|
26
25
|
prescriptionPaymentStatus = 0;
|
|
@@ -31,93 +30,94 @@ class o extends h {
|
|
|
31
30
|
outpatientType = "预约";
|
|
32
31
|
draft = !1;
|
|
33
32
|
isEditing = !1;
|
|
34
|
-
metas =
|
|
33
|
+
metas = m.builder().build();
|
|
35
34
|
constructor() {
|
|
36
35
|
super();
|
|
37
|
-
const t =
|
|
38
|
-
t.herbals.push(
|
|
36
|
+
const t = s.builder().build();
|
|
37
|
+
t.herbals.push(g.builder().build()), this.prescriptions.data.push(t);
|
|
39
38
|
}
|
|
40
39
|
async of(t) {
|
|
41
40
|
if (t.tagsState != null && (this.tags = await Promise.all(
|
|
42
|
-
t.tagsState.map((i) => new
|
|
41
|
+
t.tagsState.map((i) => new b().of(i))
|
|
43
42
|
)), t.id != null && (this.id = t.id), t.prescriptionsState != null) {
|
|
44
|
-
this.prescriptions = new
|
|
43
|
+
this.prescriptions = new r();
|
|
45
44
|
const i = JSON.parse(t.prescriptionsState), e = await Promise.all(
|
|
46
|
-
i.map(async (a) =>
|
|
45
|
+
i.map(async (a) => s.builder().build().of(a))
|
|
47
46
|
);
|
|
48
47
|
this.prescriptions.data.push(...e);
|
|
49
48
|
}
|
|
50
|
-
return this.prescriptions.data.length === 0 && this.prescriptions.data.push(
|
|
49
|
+
return this.prescriptions.data.length === 0 && this.prescriptions.data.push(s.builder().build()), t.diagnosis != null && (t.diagnosis.indexOf("脉证") !== 0 && t.diagnosis.indexOf(`
|
|
51
50
|
脉证`) === -1 && (t.diagnosis = t.diagnosis.replaceAll("脉证", `
|
|
52
51
|
脉证`)), t.diagnosis.indexOf(`
|
|
53
52
|
方证`) === -1 && (t.diagnosis = t.diagnosis.replaceAll("方证", `
|
|
54
|
-
方证`)), this.diagnosis = c(t.diagnosis)), t.doctorState != null && (this.doctor = await this.doctor.of(t.doctorState)), t.patientState != null && (this.patient = await this.patient.of(t.patientState)), t.createdTimestamp != null && (this.createdTimestamp = t.createdTimestamp), t.updatedTimestamp != null && (this.updatedTimestamp = t.updatedTimestamp), t.prescriptionPaymentStatus != null && (this.prescriptionPaymentStatus = t.prescriptionPaymentStatus), t.outboundStatus != null && (this.outboundStatus = t.outboundStatus), t.paymentType != null && (this.paymentType = t.paymentType), t.outpatientType != null && (this.outpatientType = t.outpatientType), t.metasState != null && this.metas.addMetas(await Promise.all(t.metasState.map((i) =>
|
|
53
|
+
方证`)), this.diagnosis = c(t.diagnosis)), t.doctorState != null && (this.doctor = await this.doctor.of(t.doctorState)), t.patientState != null && (this.patient = await this.patient.of(t.patientState)), t.createdTimestamp != null && (this.createdTimestamp = t.createdTimestamp), t.updatedTimestamp != null && (this.updatedTimestamp = t.updatedTimestamp), t.prescriptionPaymentStatus != null && (this.prescriptionPaymentStatus = t.prescriptionPaymentStatus), t.outboundStatus != null && (this.outboundStatus = t.outboundStatus), t.paymentType != null && (this.paymentType = t.paymentType), t.outpatientType != null && (this.outpatientType = t.outpatientType), t.metasState != null && this.metas.addMetas(await Promise.all(t.metasState.map((i) => m.map(i)))), this;
|
|
55
54
|
}
|
|
56
55
|
state() {
|
|
57
56
|
console.log(this);
|
|
58
57
|
const t = {};
|
|
59
58
|
return t.id = this.id, t.doctorState = this.doctor.state(), t.patientState = this.patient.state(), t.outpatientType = this.outpatientType, t.paymentType = this.paymentType, t.diagnosis = c(this.diagnosis.replace("</div>", `
|
|
60
|
-
<div>`)), t.createdTimestamp = this.createdTimestamp, t.diagnosis = this.diagnosis, t.tagsState = this.tags.map((i) => i.state()), t.createdTimestamp = this.createdTimestamp, t.updatedTimestamp = this.updatedTimestamp, t.prescriptionsState = JSON.stringify(this.prescriptions.data.map((i) => i.state())), t.metasState =
|
|
59
|
+
<div>`)), t.createdTimestamp = this.createdTimestamp, t.diagnosis = this.diagnosis, t.tagsState = this.tags.map((i) => i.state()), t.createdTimestamp = this.createdTimestamp, t.updatedTimestamp = this.updatedTimestamp, t.prescriptionsState = JSON.stringify(this.prescriptions.data.map((i) => i.state())), t.metasState = m.standards().flatMap(
|
|
61
60
|
(i) => this.metas[i].data.map((e) => e.state())
|
|
62
61
|
), t;
|
|
63
62
|
}
|
|
64
|
-
static query(t, i, e, a,
|
|
65
|
-
return
|
|
63
|
+
static query(t, i, e, a, p, d, o, u, T, y) {
|
|
64
|
+
return n.default().query(
|
|
66
65
|
t,
|
|
67
66
|
i,
|
|
68
67
|
e,
|
|
69
68
|
a,
|
|
70
|
-
s,
|
|
71
69
|
p,
|
|
72
|
-
r,
|
|
73
70
|
d,
|
|
74
|
-
|
|
75
|
-
|
|
71
|
+
o,
|
|
72
|
+
u,
|
|
73
|
+
T,
|
|
74
|
+
y
|
|
76
75
|
);
|
|
77
76
|
}
|
|
78
|
-
static queryPayment(t, i, e, a,
|
|
79
|
-
return
|
|
77
|
+
static queryPayment(t, i, e, a, p, d, o, u) {
|
|
78
|
+
return n.default().queryPayment(
|
|
80
79
|
t,
|
|
81
80
|
i,
|
|
82
81
|
e,
|
|
83
82
|
a,
|
|
84
|
-
s,
|
|
85
83
|
p,
|
|
86
|
-
|
|
87
|
-
|
|
84
|
+
d,
|
|
85
|
+
o,
|
|
86
|
+
u
|
|
88
87
|
);
|
|
89
88
|
}
|
|
90
89
|
}
|
|
91
|
-
class
|
|
90
|
+
class A extends l {
|
|
92
91
|
static builder() {
|
|
93
|
-
return
|
|
92
|
+
return S(this._default);
|
|
94
93
|
}
|
|
95
94
|
static default() {
|
|
96
95
|
return this._default;
|
|
97
96
|
}
|
|
98
97
|
id = "";
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
patientName = "";
|
|
103
|
-
patientPhone = "";
|
|
104
|
-
patientGender = "";
|
|
98
|
+
prescriptions = new r();
|
|
99
|
+
doctor = f.builder().build();
|
|
100
|
+
patient = h.builder().build();
|
|
105
101
|
createdTimestamp = 0;
|
|
106
102
|
updatedTimestamp = 0;
|
|
107
103
|
prescriptionPaymentStatus = 0;
|
|
108
104
|
outboundStatus = 0;
|
|
109
105
|
async of(t) {
|
|
110
|
-
|
|
106
|
+
if (this.id = t.id, this.createdTimestamp = t.createdTimestamp ? t.createdTimestamp : 0, this.updatedTimestamp = t.updatedTimestamp ? t.updatedTimestamp : 0, this.prescriptionPaymentStatus = t.prescriptionPaymentStatus ? t.prescriptionPaymentStatus : 0, this.outboundStatus = t.outboundStatus ? t.outboundStatus : 0, t.prescriptionsState != null) {
|
|
107
|
+
this.prescriptions = new r();
|
|
108
|
+
const i = JSON.parse(t.prescriptionsState), e = await Promise.all(
|
|
109
|
+
i.map(async (a) => s.builder().build().of(a))
|
|
110
|
+
);
|
|
111
|
+
this.prescriptions.data.push(...e);
|
|
112
|
+
}
|
|
113
|
+
return Promise.resolve(this);
|
|
111
114
|
}
|
|
112
115
|
state() {
|
|
113
116
|
return {
|
|
114
117
|
id: this.id,
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
patientName: this.patientName,
|
|
119
|
-
patientPhone: this.patientPhone,
|
|
120
|
-
patientGender: this.patientGender,
|
|
118
|
+
prescriptionsState: JSON.stringify(this.prescriptions.data.map((t) => t.state())),
|
|
119
|
+
doctorState: this.doctor.state(),
|
|
120
|
+
patientState: this.patient.state(),
|
|
121
121
|
createdTimestamp: this.createdTimestamp,
|
|
122
122
|
updatedTimestamp: this.updatedTimestamp,
|
|
123
123
|
prescriptionPaymentStatus: this.prescriptionPaymentStatus,
|
|
@@ -126,6 +126,6 @@ class J extends h {
|
|
|
126
126
|
}
|
|
127
127
|
}
|
|
128
128
|
export {
|
|
129
|
-
|
|
130
|
-
|
|
129
|
+
n as Check,
|
|
130
|
+
A as Payment
|
|
131
131
|
};
|
|
@@ -1,51 +1,49 @@
|
|
|
1
1
|
import { Method as g } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
|
-
import
|
|
3
|
-
const l = /* @__PURE__ */ Object.create(null),
|
|
4
|
-
const
|
|
5
|
-
if (l[
|
|
6
|
-
return l[
|
|
7
|
-
const
|
|
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
8
|
}, {
|
|
9
|
-
get(
|
|
10
|
-
const
|
|
11
|
-
return
|
|
9
|
+
get(y, u) {
|
|
10
|
+
const f = [...e, u];
|
|
11
|
+
return d(f, a, p);
|
|
12
12
|
},
|
|
13
|
-
apply(
|
|
14
|
-
const
|
|
15
|
-
if (!
|
|
16
|
-
throw new Error(`the api path of \`${
|
|
17
|
-
const
|
|
18
|
-
...
|
|
19
|
-
...
|
|
20
|
-
}, [
|
|
21
|
-
delete
|
|
22
|
-
let
|
|
23
|
-
if (Object.prototype.toString.call(
|
|
24
|
-
let
|
|
25
|
-
const
|
|
26
|
-
for (const
|
|
27
|
-
|
|
28
|
-
|
|
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 c = {
|
|
18
|
+
...p[o],
|
|
19
|
+
...f
|
|
20
|
+
}, [P, b] = m, w = c.pathParams, A = b.replace(/\{([^}]+)\}/g, (i, n) => w[n]);
|
|
21
|
+
delete c.pathParams;
|
|
22
|
+
let t = c.data;
|
|
23
|
+
if (Object.prototype.toString.call(t) === "[object Object]" && typeof FormData < "u") {
|
|
24
|
+
let i = !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 && (i = !0);
|
|
30
|
+
else
|
|
31
|
+
n.append(r, t[r]), t[r] instanceof Blob && (i = !0);
|
|
32
|
+
t = i ? n : t;
|
|
29
33
|
}
|
|
30
|
-
return new g(
|
|
31
|
-
y.toUpperCase(),
|
|
32
|
-
r,
|
|
33
|
-
b,
|
|
34
|
-
a,
|
|
35
|
-
o
|
|
36
|
-
);
|
|
34
|
+
return new g(P.toUpperCase(), a, A, c, t);
|
|
37
35
|
}
|
|
38
36
|
});
|
|
39
|
-
return l[
|
|
40
|
-
},
|
|
41
|
-
get(
|
|
42
|
-
return
|
|
37
|
+
return l[o] = s, s;
|
|
38
|
+
}, D = (e, a) => new Proxy({}, {
|
|
39
|
+
get(o, s) {
|
|
40
|
+
return d([s], e, a);
|
|
43
41
|
}
|
|
44
|
-
}),
|
|
45
|
-
globalThis.doctorApi =
|
|
46
|
-
}, C = (
|
|
42
|
+
}), B = (e) => {
|
|
43
|
+
globalThis.doctorApi = e;
|
|
44
|
+
}, C = (e) => e;
|
|
47
45
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
D as createApis,
|
|
47
|
+
B as mountApis,
|
|
50
48
|
C as withConfigType
|
|
51
49
|
};
|
|
@@ -1,51 +1,49 @@
|
|
|
1
1
|
import { Method as g } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
|
-
import
|
|
3
|
-
const l = /* @__PURE__ */ Object.create(null),
|
|
4
|
-
const
|
|
5
|
-
if (l[
|
|
6
|
-
return l[
|
|
7
|
-
const
|
|
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
8
|
}, {
|
|
9
|
-
get(
|
|
10
|
-
const
|
|
11
|
-
return
|
|
9
|
+
get(y, u) {
|
|
10
|
+
const f = [...e, u];
|
|
11
|
+
return d(f, a, p);
|
|
12
12
|
},
|
|
13
|
-
apply(
|
|
14
|
-
const h =
|
|
13
|
+
apply(y, u, [f]) {
|
|
14
|
+
const h = _[o];
|
|
15
15
|
if (!h)
|
|
16
|
-
throw new Error(`the api path of \`${
|
|
17
|
-
const
|
|
18
|
-
...
|
|
19
|
-
...
|
|
20
|
-
}, [
|
|
21
|
-
delete
|
|
22
|
-
let
|
|
23
|
-
if (Object.prototype.toString.call(
|
|
24
|
-
let
|
|
25
|
-
const
|
|
26
|
-
for (const
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
throw new Error(`the api path of \`${o}\` is not found`);
|
|
17
|
+
const i = {
|
|
18
|
+
...p[o],
|
|
19
|
+
...f
|
|
20
|
+
}, [P, b] = h, 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 m of t[r])
|
|
29
|
+
n.append(r, m), m instanceof Blob && (c = !0);
|
|
30
|
+
else
|
|
31
|
+
n.append(r, t[r]), t[r] instanceof Blob && (c = !0);
|
|
32
|
+
t = c ? n : t;
|
|
29
33
|
}
|
|
30
|
-
return new g(
|
|
31
|
-
y.toUpperCase(),
|
|
32
|
-
n,
|
|
33
|
-
b,
|
|
34
|
-
a,
|
|
35
|
-
o
|
|
36
|
-
);
|
|
34
|
+
return new g(P.toUpperCase(), a, A, i, t);
|
|
37
35
|
}
|
|
38
36
|
});
|
|
39
|
-
return l[
|
|
40
|
-
},
|
|
41
|
-
get(
|
|
42
|
-
return
|
|
37
|
+
return l[o] = s, s;
|
|
38
|
+
}, D = (e, a) => new Proxy({}, {
|
|
39
|
+
get(o, s) {
|
|
40
|
+
return d([s], e, a);
|
|
43
41
|
}
|
|
44
|
-
}),
|
|
45
|
-
globalThis.oauthApi =
|
|
46
|
-
}, C = (
|
|
42
|
+
}), B = (e) => {
|
|
43
|
+
globalThis.oauthApi = e;
|
|
44
|
+
}, C = (e) => e;
|
|
47
45
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
D as createApis,
|
|
47
|
+
B as mountApis,
|
|
50
48
|
C as withConfigType
|
|
51
49
|
};
|
|
@@ -1,51 +1,49 @@
|
|
|
1
1
|
import { Method as g } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
|
-
import
|
|
3
|
-
const l = /* @__PURE__ */ Object.create(null),
|
|
4
|
-
const
|
|
5
|
-
if (l[
|
|
6
|
-
return l[
|
|
7
|
-
const
|
|
2
|
+
import _ from "./apiDefinitions.js";
|
|
3
|
+
const l = /* @__PURE__ */ Object.create(null), d = (e, a, c) => {
|
|
4
|
+
const o = e.join(".");
|
|
5
|
+
if (l[o])
|
|
6
|
+
return l[o];
|
|
7
|
+
const i = new Proxy(function() {
|
|
8
8
|
}, {
|
|
9
|
-
get(
|
|
10
|
-
const
|
|
11
|
-
return
|
|
9
|
+
get(y, u) {
|
|
10
|
+
const f = [...e, u];
|
|
11
|
+
return d(f, a, c);
|
|
12
12
|
},
|
|
13
|
-
apply(
|
|
14
|
-
const m =
|
|
13
|
+
apply(y, u, [f]) {
|
|
14
|
+
const m = _[o];
|
|
15
15
|
if (!m)
|
|
16
|
-
throw new Error(`the api path of \`${
|
|
17
|
-
const
|
|
18
|
-
...
|
|
19
|
-
...
|
|
20
|
-
}, [
|
|
21
|
-
delete
|
|
22
|
-
let
|
|
23
|
-
if (Object.prototype.toString.call(
|
|
24
|
-
let
|
|
25
|
-
const
|
|
26
|
-
for (const
|
|
27
|
-
|
|
28
|
-
|
|
16
|
+
throw new Error(`the api path of \`${o}\` is not found`);
|
|
17
|
+
const s = {
|
|
18
|
+
...c[o],
|
|
19
|
+
...f
|
|
20
|
+
}, [P, b] = m, w = s.pathParams, A = b.replace(/\{([^}]+)\}/g, (p, n) => w[n]);
|
|
21
|
+
delete s.pathParams;
|
|
22
|
+
let t = s.data;
|
|
23
|
+
if (Object.prototype.toString.call(t) === "[object Object]" && typeof FormData < "u") {
|
|
24
|
+
let p = !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 && (p = !0);
|
|
30
|
+
else
|
|
31
|
+
n.append(r, t[r]), t[r] instanceof Blob && (p = !0);
|
|
32
|
+
t = p ? n : t;
|
|
29
33
|
}
|
|
30
|
-
return new g(
|
|
31
|
-
y.toUpperCase(),
|
|
32
|
-
n,
|
|
33
|
-
b,
|
|
34
|
-
a,
|
|
35
|
-
o
|
|
36
|
-
);
|
|
34
|
+
return new g(P.toUpperCase(), a, A, s, t);
|
|
37
35
|
}
|
|
38
36
|
});
|
|
39
|
-
return l[
|
|
40
|
-
},
|
|
41
|
-
get(
|
|
42
|
-
return
|
|
37
|
+
return l[o] = i, i;
|
|
38
|
+
}, D = (e, a) => new Proxy({}, {
|
|
39
|
+
get(o, i) {
|
|
40
|
+
return d([i], e, a);
|
|
43
41
|
}
|
|
44
|
-
}),
|
|
45
|
-
globalThis.outpatientApi =
|
|
46
|
-
}, C = (
|
|
42
|
+
}), B = (e) => {
|
|
43
|
+
globalThis.outpatientApi = e;
|
|
44
|
+
}, C = (e) => e;
|
|
47
45
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
D as createApis,
|
|
47
|
+
B as mountApis,
|
|
50
48
|
C as withConfigType
|
|
51
49
|
};
|
|
@@ -1,51 +1,49 @@
|
|
|
1
1
|
import { Method as g } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
|
-
import
|
|
3
|
-
const l = /* @__PURE__ */ Object.create(null),
|
|
4
|
-
const
|
|
5
|
-
if (l[
|
|
6
|
-
return l[
|
|
7
|
-
const
|
|
2
|
+
import _ from "./apiDefinitions.js";
|
|
3
|
+
const l = /* @__PURE__ */ Object.create(null), d = (e, a, c) => {
|
|
4
|
+
const o = e.join(".");
|
|
5
|
+
if (l[o])
|
|
6
|
+
return l[o];
|
|
7
|
+
const i = new Proxy(function() {
|
|
8
8
|
}, {
|
|
9
|
-
get(
|
|
10
|
-
const
|
|
11
|
-
return
|
|
9
|
+
get(y, u) {
|
|
10
|
+
const f = [...e, u];
|
|
11
|
+
return d(f, a, c);
|
|
12
12
|
},
|
|
13
|
-
apply(
|
|
14
|
-
const
|
|
15
|
-
if (!
|
|
16
|
-
throw new Error(`the api path of \`${
|
|
17
|
-
const
|
|
18
|
-
...
|
|
19
|
-
...
|
|
20
|
-
}, [
|
|
21
|
-
delete
|
|
22
|
-
let
|
|
23
|
-
if (Object.prototype.toString.call(
|
|
24
|
-
let
|
|
25
|
-
const
|
|
26
|
-
for (const
|
|
27
|
-
|
|
28
|
-
|
|
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 s = {
|
|
18
|
+
...c[o],
|
|
19
|
+
...f
|
|
20
|
+
}, [P, b] = m, w = s.pathParams, A = b.replace(/\{([^}]+)\}/g, (p, n) => w[n]);
|
|
21
|
+
delete s.pathParams;
|
|
22
|
+
let t = s.data;
|
|
23
|
+
if (Object.prototype.toString.call(t) === "[object Object]" && typeof FormData < "u") {
|
|
24
|
+
let p = !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 && (p = !0);
|
|
30
|
+
else
|
|
31
|
+
n.append(r, t[r]), t[r] instanceof Blob && (p = !0);
|
|
32
|
+
t = p ? n : t;
|
|
29
33
|
}
|
|
30
|
-
return new g(
|
|
31
|
-
y.toUpperCase(),
|
|
32
|
-
n,
|
|
33
|
-
b,
|
|
34
|
-
a,
|
|
35
|
-
o
|
|
36
|
-
);
|
|
34
|
+
return new g(P.toUpperCase(), a, A, s, t);
|
|
37
35
|
}
|
|
38
36
|
});
|
|
39
|
-
return l[
|
|
40
|
-
},
|
|
41
|
-
get(
|
|
42
|
-
return
|
|
37
|
+
return l[o] = i, i;
|
|
38
|
+
}, D = (e, a) => new Proxy({}, {
|
|
39
|
+
get(o, i) {
|
|
40
|
+
return d([i], e, a);
|
|
43
41
|
}
|
|
44
|
-
}),
|
|
45
|
-
globalThis.patientApi =
|
|
46
|
-
}, C = (
|
|
42
|
+
}), B = (e) => {
|
|
43
|
+
globalThis.patientApi = e;
|
|
44
|
+
}, C = (e) => e;
|
|
47
45
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
D as createApis,
|
|
47
|
+
B as mountApis,
|
|
50
48
|
C as withConfigType
|
|
51
49
|
};
|
|
@@ -1,51 +1,49 @@
|
|
|
1
1
|
import { Method as g } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
|
-
import
|
|
3
|
-
const l = /* @__PURE__ */ Object.create(null),
|
|
4
|
-
const
|
|
5
|
-
if (l[
|
|
6
|
-
return l[
|
|
7
|
-
const
|
|
2
|
+
import _ from "./apiDefinitions.js";
|
|
3
|
+
const l = /* @__PURE__ */ Object.create(null), d = (e, a, c) => {
|
|
4
|
+
const o = e.join(".");
|
|
5
|
+
if (l[o])
|
|
6
|
+
return l[o];
|
|
7
|
+
const i = new Proxy(function() {
|
|
8
8
|
}, {
|
|
9
|
-
get(
|
|
10
|
-
const
|
|
11
|
-
return
|
|
9
|
+
get(y, u) {
|
|
10
|
+
const f = [...e, u];
|
|
11
|
+
return d(f, a, c);
|
|
12
12
|
},
|
|
13
|
-
apply(
|
|
14
|
-
const
|
|
15
|
-
if (!
|
|
16
|
-
throw new Error(`the api path of \`${
|
|
17
|
-
const
|
|
18
|
-
...
|
|
19
|
-
...
|
|
20
|
-
}, [
|
|
21
|
-
delete
|
|
22
|
-
let
|
|
23
|
-
if (Object.prototype.toString.call(
|
|
24
|
-
let
|
|
25
|
-
const
|
|
26
|
-
for (const
|
|
27
|
-
|
|
28
|
-
|
|
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 s = {
|
|
18
|
+
...c[o],
|
|
19
|
+
...f
|
|
20
|
+
}, [P, b] = m, w = s.pathParams, A = b.replace(/\{([^}]+)\}/g, (p, n) => w[n]);
|
|
21
|
+
delete s.pathParams;
|
|
22
|
+
let t = s.data;
|
|
23
|
+
if (Object.prototype.toString.call(t) === "[object Object]" && typeof FormData < "u") {
|
|
24
|
+
let p = !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 && (p = !0);
|
|
30
|
+
else
|
|
31
|
+
n.append(r, t[r]), t[r] instanceof Blob && (p = !0);
|
|
32
|
+
t = p ? n : t;
|
|
29
33
|
}
|
|
30
|
-
return new g(
|
|
31
|
-
y.toUpperCase(),
|
|
32
|
-
r,
|
|
33
|
-
b,
|
|
34
|
-
a,
|
|
35
|
-
o
|
|
36
|
-
);
|
|
34
|
+
return new g(P.toUpperCase(), a, A, s, t);
|
|
37
35
|
}
|
|
38
36
|
});
|
|
39
|
-
return l[
|
|
40
|
-
},
|
|
41
|
-
get(
|
|
42
|
-
return
|
|
37
|
+
return l[o] = i, i;
|
|
38
|
+
}, D = (e, a) => new Proxy({}, {
|
|
39
|
+
get(o, i) {
|
|
40
|
+
return d([i], e, a);
|
|
43
41
|
}
|
|
44
|
-
}),
|
|
45
|
-
globalThis.prescriptionApi =
|
|
46
|
-
}, C = (
|
|
42
|
+
}), B = (e) => {
|
|
43
|
+
globalThis.prescriptionApi = e;
|
|
44
|
+
}, C = (e) => e;
|
|
47
45
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
D as createApis,
|
|
47
|
+
B as mountApis,
|
|
50
48
|
C as withConfigType
|
|
51
49
|
};
|
|
@@ -1,51 +1,49 @@
|
|
|
1
1
|
import { Method as g } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
|
-
import
|
|
3
|
-
const l = /* @__PURE__ */ Object.create(null),
|
|
4
|
-
const
|
|
5
|
-
if (l[
|
|
6
|
-
return l[
|
|
7
|
-
const
|
|
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
8
|
}, {
|
|
9
|
-
get(
|
|
10
|
-
const
|
|
11
|
-
return
|
|
9
|
+
get(y, u) {
|
|
10
|
+
const f = [...e, u];
|
|
11
|
+
return d(f, a, p);
|
|
12
12
|
},
|
|
13
|
-
apply(
|
|
14
|
-
const
|
|
15
|
-
if (!
|
|
16
|
-
throw new Error(`the api path of \`${
|
|
17
|
-
const
|
|
18
|
-
...
|
|
19
|
-
...
|
|
20
|
-
}, [
|
|
21
|
-
delete
|
|
22
|
-
let
|
|
23
|
-
if (Object.prototype.toString.call(
|
|
24
|
-
let
|
|
25
|
-
const
|
|
26
|
-
for (const
|
|
27
|
-
|
|
28
|
-
|
|
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;
|
|
29
33
|
}
|
|
30
|
-
return new g(
|
|
31
|
-
y.toUpperCase(),
|
|
32
|
-
n,
|
|
33
|
-
b,
|
|
34
|
-
a,
|
|
35
|
-
o
|
|
36
|
-
);
|
|
34
|
+
return new g(P.toUpperCase(), a, A, i, t);
|
|
37
35
|
}
|
|
38
36
|
});
|
|
39
|
-
return l[
|
|
40
|
-
},
|
|
41
|
-
get(
|
|
42
|
-
return
|
|
37
|
+
return l[o] = s, s;
|
|
38
|
+
}, D = (e, a) => new Proxy({}, {
|
|
39
|
+
get(o, s) {
|
|
40
|
+
return d([s], e, a);
|
|
43
41
|
}
|
|
44
|
-
}),
|
|
45
|
-
globalThis.scientistApi =
|
|
46
|
-
}, C = (
|
|
42
|
+
}), B = (e) => {
|
|
43
|
+
globalThis.scientistApi = e;
|
|
44
|
+
}, C = (e) => e;
|
|
47
45
|
export {
|
|
48
|
-
|
|
49
|
-
|
|
46
|
+
D as createApis,
|
|
47
|
+
B as mountApis,
|
|
50
48
|
C as withConfigType
|
|
51
49
|
};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "web-core-tcm",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.47",
|
|
4
4
|
"description": "Core",
|
|
5
5
|
"productName": "Core",
|
|
6
6
|
"author": "wywywywywywywywywy <qa123456_0714@qq.com>",
|
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
"format": "prettier --write \"**/*.{js,ts,vue,scss,html,md,json}\" --ignore-path .gitignore",
|
|
11
11
|
"test": "echo \"No test specified\" && exit 0",
|
|
12
12
|
"dev": "quasar dev",
|
|
13
|
-
"build": "quasar build",
|
|
13
|
+
"build": "quasar build -m spa",
|
|
14
14
|
"postinstall": "quasar prepare",
|
|
15
15
|
"lint:fix": "eslint --fix"
|
|
16
16
|
},
|
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"@alova/scene-vue": "^1.6.2",
|
|
21
21
|
"@bufbuild/protobuf": "^2.9.0",
|
|
22
22
|
"@bufbuild/protoc-gen-es": "^2.9.0",
|
|
23
|
+
"@electron/remote": "^2.1.3",
|
|
23
24
|
"@quasar/extras": "^1.16.4",
|
|
24
25
|
"@vueuse/core": "^11.0.3",
|
|
25
26
|
"alova": "^3.3.4",
|
|
@@ -27,6 +28,8 @@
|
|
|
27
28
|
"compressorjs": "^1.2.1",
|
|
28
29
|
"dotenv-cli": "^7.4.2",
|
|
29
30
|
"echarts": "^5.5.0",
|
|
31
|
+
"electron": "latest",
|
|
32
|
+
"electron-store": "^11.0.2",
|
|
30
33
|
"ftdi-d2xx": "^1.3.1",
|
|
31
34
|
"jwt-decode": "^4.0.0",
|
|
32
35
|
"papaparse": "^5.5.3",
|
|
@@ -61,6 +64,7 @@
|
|
|
61
64
|
"npm": ">= 6.13.4",
|
|
62
65
|
"yarn": ">= 1.21.1"
|
|
63
66
|
},
|
|
67
|
+
"type": "module",
|
|
64
68
|
"main": "dist/index.ts",
|
|
65
69
|
"types": "dist/index.ts",
|
|
66
70
|
"module": "dist/index.ts",
|
|
@@ -72,7 +76,7 @@
|
|
|
72
76
|
"./api/authorization": "./dist/src/api/authorization/index.d.ts",
|
|
73
77
|
"./api/check": "./dist/src/api/check/index.d.ts",
|
|
74
78
|
"./api/config": "./dist/src/api/config/index.d.ts",
|
|
75
|
-
"./api/device": "./dist/src/api/device/
|
|
79
|
+
"./api/device": "./dist/src/api/device/device.d.ts",
|
|
76
80
|
"./api/doctor": "./dist/src/api/doctor/index.d.ts",
|
|
77
81
|
"./api/metric": "./dist/src/api/metric/index.d.ts",
|
|
78
82
|
"./api/oauth": "./dist/src/api/oauth/index.d.ts",
|