web-core-tcm 0.0.30 → 0.0.34
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/comprehensiveAlgorithm.d.ts +7 -0
- package/dist/src/api/algorithm/alova/implement/comprehensiveAlgorithm.js +31 -0
- package/dist/src/api/algorithm/alova/implement/index.d.ts +5 -0
- package/dist/src/api/algorithm/alova/implement/inquiriesAlgorithm.d.ts +16 -0
- package/dist/src/api/algorithm/alova/implement/inquiriesAlgorithm.js +26 -0
- package/dist/src/api/algorithm/alova/implement/inspectionsAlgorithm.d.ts +5 -0
- package/dist/src/api/algorithm/alova/implement/inspectionsAlgorithm.js +21 -0
- package/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.d.ts +5 -0
- package/dist/src/api/algorithm/alova/implement/lisemsAlgorithm.js +26 -0
- package/dist/src/api/algorithm/alova/implement/pulsationsAlgorithm.d.ts +7 -0
- package/dist/src/api/algorithm/alova/implement/pulsationsAlgorithm.js +19 -0
- package/dist/src/api/algorithm/alova/index.d.ts +6 -0
- package/dist/src/api/algorithm/alova/index.js +47 -0
- package/dist/src/api/algorithm/comprehensiveAlgorithm.d.ts +11 -4
- package/dist/src/api/algorithm/comprehensiveAlgorithm.js +26 -14
- package/dist/src/api/algorithm/index.d.ts +1 -5
- package/dist/src/api/algorithm/index.js +26 -60
- package/dist/src/api/algorithm/inquiriesAlgorithm.d.ts +20 -13
- package/dist/src/api/algorithm/inquiriesAlgorithm.js +27 -7
- package/dist/src/api/algorithm/inspectionsAlgorithm.d.ts +9 -2
- package/dist/src/api/algorithm/inspectionsAlgorithm.js +18 -8
- package/dist/src/api/algorithm/lisemsAlgorithm.d.ts +9 -2
- package/dist/src/api/algorithm/lisemsAlgorithm.js +16 -11
- package/dist/src/api/algorithm/pulsationsAlgorithm.d.ts +11 -4
- package/dist/src/api/algorithm/pulsationsAlgorithm.js +18 -6
- package/dist/src/api/check/alova/index.js +1 -1
- package/dist/src/api/check/check.d.ts +1 -1
- package/dist/src/api/check/check.js +1 -1
- package/dist/src/api/{patient → core}/core.d.ts +7 -2
- package/dist/src/api/{patient → core}/core.js +27 -17
- package/dist/src/api/doctor/alova/index.js +1 -1
- package/dist/src/api/doctor/doctor.d.ts +1 -1
- package/dist/src/api/doctor/doctor.js +1 -1
- package/dist/src/api/outpatient/alova/implement/outpatient.d.ts +1 -1
- package/dist/src/api/outpatient/alova/index.js +1 -1
- package/dist/src/api/outpatient/outpatient.d.ts +1 -1
- package/dist/src/api/outpatient/outpatient.js +1 -1
- package/dist/src/api/patient/alova/implement/meta.d.ts +1 -1
- package/dist/src/api/patient/alova/implement/meta.js +58 -58
- package/dist/src/api/patient/alova/implement/patient.d.ts +1 -1
- package/dist/src/api/patient/alova/index.js +8 -6
- package/dist/src/api/patient/index.d.ts +1 -1
- package/dist/src/api/patient/index.js +36 -35
- package/dist/src/api/patient/meta.d.ts +1 -1
- package/dist/src/api/patient/meta.js +1 -1
- package/dist/src/api/patient/patient.d.ts +1 -1
- package/dist/src/api/patient/patient.js +1 -1
- package/dist/src/api/prescription/alova/index.js +1 -1
- package/dist/src/api/prescription/herbal.d.ts +1 -1
- package/dist/src/api/prescription/herbal.js +1 -1
- package/dist/src/api/prescription/prescription.d.ts +1 -1
- package/dist/src/api/prescription/prescription.js +1 -1
- package/dist/src/api/scientist/alova/index.js +1 -1
- package/dist/src/api/scientist/scientist.d.ts +1 -1
- package/dist/src/api/scientist/scientist.js +1 -1
- package/package.json +1 -1
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { ComprehensiveAlgorithm } from '../..';
|
|
2
|
+
export declare class AlovaComprehensiveAlgorithm implements ComprehensiveAlgorithm {
|
|
3
|
+
comprehensiveDeepSeekR1Algorithm(data: object): Promise<Response>;
|
|
4
|
+
comprehensiveDeepSeekV3Algorithm(data: object): Promise<Response>;
|
|
5
|
+
comprehensiveQwenAlgorithm(data: object): Promise<Response>;
|
|
6
|
+
doctorSceneTextAnalysis(data: object): Promise<Response>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import { comprehensiveAlgorithmService as t } from "../index.js";
|
|
2
|
+
import "../../comprehensiveAlgorithm.js";
|
|
3
|
+
import "../../inquiriesAlgorithm.js";
|
|
4
|
+
import "../../inspectionsAlgorithm.js";
|
|
5
|
+
import "../../lisemsAlgorithm.js";
|
|
6
|
+
import "../../pulsationsAlgorithm.js";
|
|
7
|
+
class h {
|
|
8
|
+
comprehensiveDeepSeekR1Algorithm(e) {
|
|
9
|
+
return t.Post("/千问大模型分析", e, {
|
|
10
|
+
timeout: 3e4
|
|
11
|
+
}).send();
|
|
12
|
+
}
|
|
13
|
+
comprehensiveDeepSeekV3Algorithm(e) {
|
|
14
|
+
return t.Post("/DeepSeekV3大模型分析", e, {
|
|
15
|
+
timeout: 3e4
|
|
16
|
+
}).send();
|
|
17
|
+
}
|
|
18
|
+
comprehensiveQwenAlgorithm(e) {
|
|
19
|
+
return t.Post("/DeepSeekR1大模型分析", e, {
|
|
20
|
+
timeout: 3e5
|
|
21
|
+
}).send();
|
|
22
|
+
}
|
|
23
|
+
doctorSceneTextAnalysis(e) {
|
|
24
|
+
return t.Post("/医生场景文本", e, {
|
|
25
|
+
timeout: 3e5
|
|
26
|
+
}).send();
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
export {
|
|
30
|
+
h as AlovaComprehensiveAlgorithm
|
|
31
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { InquiriesAlgorithm } from '../..';
|
|
2
|
+
export declare class AlovaInquiriesAlgorithm implements InquiriesAlgorithm {
|
|
3
|
+
complaintsRecognition(symptomDescription: string): Promise<string[]>;
|
|
4
|
+
complaintsDialog(body: object): Promise<{
|
|
5
|
+
reply: string;
|
|
6
|
+
positive_symptom: string[];
|
|
7
|
+
}>;
|
|
8
|
+
complaintsView(params: string): Promise<{
|
|
9
|
+
symptoms: string[];
|
|
10
|
+
}>;
|
|
11
|
+
complaintsSearch(data: string): Promise<string[]>;
|
|
12
|
+
complaintsChoose(body: object): Promise<{
|
|
13
|
+
status: string;
|
|
14
|
+
data: [];
|
|
15
|
+
}>;
|
|
16
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { inquiriesAlgorithmService as t } from "../index.js";
|
|
2
|
+
import "../../comprehensiveAlgorithm.js";
|
|
3
|
+
import "../../inquiriesAlgorithm.js";
|
|
4
|
+
import "../../inspectionsAlgorithm.js";
|
|
5
|
+
import "../../lisemsAlgorithm.js";
|
|
6
|
+
import "../../pulsationsAlgorithm.js";
|
|
7
|
+
class l {
|
|
8
|
+
complaintsRecognition(o) {
|
|
9
|
+
return t.Post("/主诉/识别", { symptomDescription: o }).send();
|
|
10
|
+
}
|
|
11
|
+
complaintsDialog(o) {
|
|
12
|
+
return t.Post("/主诉/对话", o).send();
|
|
13
|
+
}
|
|
14
|
+
complaintsView(o) {
|
|
15
|
+
return t.Post("/主诉/视图", { params: o }).send();
|
|
16
|
+
}
|
|
17
|
+
complaintsSearch(o) {
|
|
18
|
+
return t.Post("/主诉/搜索", { data: o }).send();
|
|
19
|
+
}
|
|
20
|
+
complaintsChoose(o) {
|
|
21
|
+
return t.Post("/主诉/选择", o).send();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
l as AlovaInquiriesAlgorithm
|
|
26
|
+
};
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { inspectionAlgorithmService as o } from "../index.js";
|
|
2
|
+
import "../../comprehensiveAlgorithm.js";
|
|
3
|
+
import "../../inquiriesAlgorithm.js";
|
|
4
|
+
import "../../inspectionsAlgorithm.js";
|
|
5
|
+
import "../../lisemsAlgorithm.js";
|
|
6
|
+
import "../../pulsationsAlgorithm.js";
|
|
7
|
+
class a {
|
|
8
|
+
static tongueAnalyze(t) {
|
|
9
|
+
return o.Post("/舌象", t, {
|
|
10
|
+
timeout: 3e4
|
|
11
|
+
}).send();
|
|
12
|
+
}
|
|
13
|
+
static faceAnalyze(t) {
|
|
14
|
+
return o.Post("/面象", t, {
|
|
15
|
+
timeout: 3e4
|
|
16
|
+
}).send();
|
|
17
|
+
}
|
|
18
|
+
}
|
|
19
|
+
export {
|
|
20
|
+
a as AlovaInspectionsAlgorithm
|
|
21
|
+
};
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { lisemsAlgorithmService as o } from "../index.js";
|
|
2
|
+
import "../../comprehensiveAlgorithm.js";
|
|
3
|
+
import "../../inquiriesAlgorithm.js";
|
|
4
|
+
import "../../inspectionsAlgorithm.js";
|
|
5
|
+
import "../../lisemsAlgorithm.js";
|
|
6
|
+
import "../../pulsationsAlgorithm.js";
|
|
7
|
+
class p {
|
|
8
|
+
analysisLisems(r) {
|
|
9
|
+
return o.Post("/特征参数", r, {
|
|
10
|
+
transform(t) {
|
|
11
|
+
return t.json();
|
|
12
|
+
}
|
|
13
|
+
}).send();
|
|
14
|
+
}
|
|
15
|
+
getFrequencyDomainDiagram(r) {
|
|
16
|
+
return o.Post("/频域图", JSON.stringify(r), {
|
|
17
|
+
async transform(t) {
|
|
18
|
+
const s = await t.blob();
|
|
19
|
+
return URL.createObjectURL(s);
|
|
20
|
+
}
|
|
21
|
+
}).send();
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
export {
|
|
25
|
+
p as AlovaLisemsAlgorithm
|
|
26
|
+
};
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PulsationsAlgorithm } from '../..';
|
|
2
|
+
export declare class AlovaPulsationsAlgorithm implements PulsationsAlgorithm {
|
|
3
|
+
pulsationPreprocessing(pulsation: object): Promise<{
|
|
4
|
+
[key: string]: number[];
|
|
5
|
+
}>;
|
|
6
|
+
pulsationAnalysis(pulsation: object): Promise<JSON>;
|
|
7
|
+
}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { pulsationsAlgorithmService as t } from "../index.js";
|
|
2
|
+
import "../../comprehensiveAlgorithm.js";
|
|
3
|
+
import "../../inquiriesAlgorithm.js";
|
|
4
|
+
import "../../inspectionsAlgorithm.js";
|
|
5
|
+
import "../../lisemsAlgorithm.js";
|
|
6
|
+
import "../../pulsationsAlgorithm.js";
|
|
7
|
+
class l {
|
|
8
|
+
pulsationPreprocessing(o) {
|
|
9
|
+
return t.Post("/预处理", o, {}).send();
|
|
10
|
+
}
|
|
11
|
+
pulsationAnalysis(o) {
|
|
12
|
+
return t.Post("/特征参数", o, {
|
|
13
|
+
timeout: 3e4
|
|
14
|
+
}).send();
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
export {
|
|
18
|
+
l as AlovaPulsationsAlgorithm
|
|
19
|
+
};
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
export * from './implement';
|
|
2
|
+
export declare const inspectionAlgorithmService: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, import('alova').AlovaDefaultCacheAdapter, import('alova').AlovaDefaultCacheAdapter, import('alova').StatesExport<any>>>;
|
|
3
|
+
export declare const inquiriesAlgorithmService: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, import('alova').AlovaDefaultCacheAdapter, import('alova').AlovaDefaultCacheAdapter, import('alova').StatesExport<any>>>;
|
|
4
|
+
export declare const lisemsAlgorithmService: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, import('alova').AlovaDefaultCacheAdapter, import('alova').AlovaDefaultCacheAdapter, import('alova').StatesExport<any>>>;
|
|
5
|
+
export declare const pulsationsAlgorithmService: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, import('alova').AlovaDefaultCacheAdapter, import('alova').AlovaDefaultCacheAdapter, import('alova').StatesExport<any>>>;
|
|
6
|
+
export declare const comprehensiveAlgorithmService: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, import('alova').AlovaDefaultCacheAdapter, import('alova').AlovaDefaultCacheAdapter, import('alova').StatesExport<any>>>;
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
|
|
2
|
+
import { getServiceEndpoint as t, ServiceType as r } from "../../config/index.js";
|
|
3
|
+
import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
4
|
+
import "../comprehensiveAlgorithm.js";
|
|
5
|
+
import "../inquiriesAlgorithm.js";
|
|
6
|
+
import "../inspectionsAlgorithm.js";
|
|
7
|
+
import "../lisemsAlgorithm.js";
|
|
8
|
+
import "../pulsationsAlgorithm.js";
|
|
9
|
+
import { responded as i } from "../../config/alova/index.js";
|
|
10
|
+
const A = e({
|
|
11
|
+
baseURL: t(r.InspectionsAlgorithm),
|
|
12
|
+
timeout: 3e4,
|
|
13
|
+
cacheFor: null,
|
|
14
|
+
requestAdapter: o(),
|
|
15
|
+
responded: i
|
|
16
|
+
}), g = e({
|
|
17
|
+
baseURL: t(r.InquiriesAlgorithm),
|
|
18
|
+
timeout: 3e4,
|
|
19
|
+
cacheFor: null,
|
|
20
|
+
requestAdapter: o(),
|
|
21
|
+
responded: i
|
|
22
|
+
}), v = e({
|
|
23
|
+
baseURL: t(r.LisemsAlgorithm),
|
|
24
|
+
timeout: 3e4,
|
|
25
|
+
cacheFor: null,
|
|
26
|
+
requestAdapter: o(),
|
|
27
|
+
responded: i
|
|
28
|
+
}), d = e({
|
|
29
|
+
baseURL: t(r.PulsationsAlgorithm),
|
|
30
|
+
timeout: 3e4,
|
|
31
|
+
cacheFor: null,
|
|
32
|
+
requestAdapter: o(),
|
|
33
|
+
responded: i
|
|
34
|
+
}), q = e({
|
|
35
|
+
baseURL: t(r.ComprehensiveAlgorithm),
|
|
36
|
+
timeout: 3e4,
|
|
37
|
+
cacheFor: null,
|
|
38
|
+
requestAdapter: o(),
|
|
39
|
+
responded: i
|
|
40
|
+
});
|
|
41
|
+
export {
|
|
42
|
+
q as comprehensiveAlgorithmService,
|
|
43
|
+
g as inquiriesAlgorithmService,
|
|
44
|
+
A as inspectionAlgorithmService,
|
|
45
|
+
v as lisemsAlgorithmService,
|
|
46
|
+
d as pulsationsAlgorithmService
|
|
47
|
+
};
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
export declare
|
|
4
|
-
|
|
1
|
+
import { BaseObject } from '../patient';
|
|
2
|
+
import { IBuilder } from 'builder-pattern';
|
|
3
|
+
export declare abstract class ComprehensiveAlgorithm extends BaseObject {
|
|
4
|
+
static _default: typeof ComprehensiveAlgorithm;
|
|
5
|
+
static builder(): IBuilder<unknown>;
|
|
6
|
+
static default(): typeof ComprehensiveAlgorithm;
|
|
7
|
+
static comprehensiveQwenAlgorithm(data: object): Promise<Response>;
|
|
8
|
+
static comprehensiveDeepSeekV3Algorithm(data: object): Promise<Response>;
|
|
9
|
+
static comprehensiveDeepSeekR1Algorithm(data: object): Promise<Response>;
|
|
10
|
+
static doctorSceneTextAnalysis(data: object): Promise<Response>;
|
|
11
|
+
}
|
|
@@ -1,16 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import { BaseObject as r } from "../core/core.js";
|
|
2
|
+
import { Builder as i } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
3
|
+
import "../../../node_modules/pinyin/lib/esm/pinyin.js";
|
|
4
|
+
import "../patient/alova/index.js";
|
|
5
|
+
class t extends r {
|
|
6
|
+
static _default = t;
|
|
7
|
+
static builder() {
|
|
8
|
+
return i(this._default);
|
|
9
|
+
}
|
|
10
|
+
static default() {
|
|
11
|
+
return t;
|
|
12
|
+
}
|
|
13
|
+
static comprehensiveQwenAlgorithm(e) {
|
|
14
|
+
return this.default().comprehensiveQwenAlgorithm(e);
|
|
15
|
+
}
|
|
16
|
+
static comprehensiveDeepSeekV3Algorithm(e) {
|
|
17
|
+
return this.default().comprehensiveDeepSeekV3Algorithm(e);
|
|
18
|
+
}
|
|
19
|
+
static comprehensiveDeepSeekR1Algorithm(e) {
|
|
20
|
+
return this.default().comprehensiveDeepSeekR1Algorithm(e);
|
|
21
|
+
}
|
|
22
|
+
static doctorSceneTextAnalysis(e) {
|
|
23
|
+
return this.default().doctorSceneTextAnalysis(e);
|
|
24
|
+
}
|
|
25
|
+
}
|
|
11
26
|
export {
|
|
12
|
-
|
|
13
|
-
m as comprehensiveDeepSeekV3Algorithm,
|
|
14
|
-
i as comprehensiveQwenAlgorithm,
|
|
15
|
-
r as doctorSceneTextAnalysis
|
|
27
|
+
t as ComprehensiveAlgorithm
|
|
16
28
|
};
|
|
@@ -1,8 +1,4 @@
|
|
|
1
|
-
export
|
|
2
|
-
export declare const inquiriesAlgorithmService: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, import('alova').AlovaDefaultCacheAdapter, import('alova').AlovaDefaultCacheAdapter, import('alova').StatesExport<any>>>;
|
|
3
|
-
export declare const lisemsAlgorithmService: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, import('alova').AlovaDefaultCacheAdapter, import('alova').AlovaDefaultCacheAdapter, import('alova').StatesExport<any>>>;
|
|
4
|
-
export declare const pulsationsAlgorithmService: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, import('alova').AlovaDefaultCacheAdapter, import('alova').AlovaDefaultCacheAdapter, import('alova').StatesExport<any>>>;
|
|
5
|
-
export declare const comprehensiveAlgorithmService: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, import('alova').AlovaDefaultCacheAdapter, import('alova').AlovaDefaultCacheAdapter, import('alova').StatesExport<any>>>;
|
|
1
|
+
export * from './alova';
|
|
6
2
|
export * from './comprehensiveAlgorithm';
|
|
7
3
|
export * from './inquiriesAlgorithm';
|
|
8
4
|
export * from './inspectionsAlgorithm';
|
|
@@ -1,62 +1,28 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
import {
|
|
6
|
-
import {
|
|
7
|
-
import {
|
|
8
|
-
import {
|
|
9
|
-
import {
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
timeout: 3e4,
|
|
13
|
-
cacheFor: null,
|
|
14
|
-
requestAdapter: o(),
|
|
15
|
-
responded: r
|
|
16
|
-
}), l = e({
|
|
17
|
-
baseURL: t(i.InquiriesAlgorithm),
|
|
18
|
-
timeout: 3e4,
|
|
19
|
-
cacheFor: null,
|
|
20
|
-
requestAdapter: o(),
|
|
21
|
-
responded: r
|
|
22
|
-
}), p = e({
|
|
23
|
-
baseURL: t(i.LisemsAlgorithm),
|
|
24
|
-
timeout: 3e4,
|
|
25
|
-
cacheFor: null,
|
|
26
|
-
requestAdapter: o(),
|
|
27
|
-
responded: r
|
|
28
|
-
}), h = e({
|
|
29
|
-
baseURL: t(i.PulsationsAlgorithm),
|
|
30
|
-
timeout: 3e4,
|
|
31
|
-
cacheFor: null,
|
|
32
|
-
requestAdapter: o(),
|
|
33
|
-
responded: r
|
|
34
|
-
}), u = e({
|
|
35
|
-
baseURL: t(i.ComprehensiveAlgorithm),
|
|
36
|
-
timeout: 3e4,
|
|
37
|
-
cacheFor: null,
|
|
38
|
-
requestAdapter: o(),
|
|
39
|
-
responded: r
|
|
40
|
-
});
|
|
1
|
+
import { comprehensiveAlgorithmService as i, inquiriesAlgorithmService as e, inspectionAlgorithmService as m, lisemsAlgorithmService as t, pulsationsAlgorithmService as l } from "./alova/index.js";
|
|
2
|
+
import { ComprehensiveAlgorithm as A } from "./comprehensiveAlgorithm.js";
|
|
3
|
+
import { InquiriesAlgorithm as p } from "./inquiriesAlgorithm.js";
|
|
4
|
+
import { InspectionsAlgorithm as n } from "./inspectionsAlgorithm.js";
|
|
5
|
+
import { LisemsAlgorithm as f } from "./lisemsAlgorithm.js";
|
|
6
|
+
import { PulsationsAlgorithm as c } from "./pulsationsAlgorithm.js";
|
|
7
|
+
import { AlovaComprehensiveAlgorithm as u } from "./alova/implement/comprehensiveAlgorithm.js";
|
|
8
|
+
import { AlovaInquiriesAlgorithm as I } from "./alova/implement/inquiriesAlgorithm.js";
|
|
9
|
+
import { AlovaInspectionsAlgorithm as C } from "./alova/implement/inspectionsAlgorithm.js";
|
|
10
|
+
import { AlovaLisemsAlgorithm as P } from "./alova/implement/lisemsAlgorithm.js";
|
|
11
|
+
import { AlovaPulsationsAlgorithm as d } from "./alova/implement/pulsationsAlgorithm.js";
|
|
41
12
|
export {
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
p as lisemsAlgorithmService,
|
|
58
|
-
I as pulsationAnalysis,
|
|
59
|
-
P as pulsationPreprocessing,
|
|
60
|
-
h as pulsationsAlgorithmService,
|
|
61
|
-
U as tongueAnalyze
|
|
13
|
+
u as AlovaComprehensiveAlgorithm,
|
|
14
|
+
I as AlovaInquiriesAlgorithm,
|
|
15
|
+
C as AlovaInspectionsAlgorithm,
|
|
16
|
+
P as AlovaLisemsAlgorithm,
|
|
17
|
+
d as AlovaPulsationsAlgorithm,
|
|
18
|
+
A as ComprehensiveAlgorithm,
|
|
19
|
+
p as InquiriesAlgorithm,
|
|
20
|
+
n as InspectionsAlgorithm,
|
|
21
|
+
f as LisemsAlgorithm,
|
|
22
|
+
c as PulsationsAlgorithm,
|
|
23
|
+
i as comprehensiveAlgorithmService,
|
|
24
|
+
e as inquiriesAlgorithmService,
|
|
25
|
+
m as inspectionAlgorithmService,
|
|
26
|
+
t as lisemsAlgorithmService,
|
|
27
|
+
l as pulsationsAlgorithmService
|
|
62
28
|
};
|
|
@@ -1,13 +1,20 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { IBuilder } from 'builder-pattern';
|
|
2
|
+
import { BaseObject } from '../core/core';
|
|
3
|
+
export declare abstract class InquiriesAlgorithm extends BaseObject {
|
|
4
|
+
static _default: typeof InquiriesAlgorithm;
|
|
5
|
+
static builder(): IBuilder<unknown>;
|
|
6
|
+
static default(): typeof InquiriesAlgorithm;
|
|
7
|
+
static complaintsRecognition(symptomDescription: string): Promise<string[]>;
|
|
8
|
+
static complaintsDialog(body: object): Promise<{
|
|
9
|
+
reply: string;
|
|
10
|
+
positive_symptom: string[];
|
|
11
|
+
}>;
|
|
12
|
+
static complaintsView(params: string): Promise<{
|
|
13
|
+
symptoms: string[];
|
|
14
|
+
}>;
|
|
15
|
+
static complaintsSearch(data: string): Promise<string[]>;
|
|
16
|
+
static complaintsChoose(body: object): Promise<{
|
|
17
|
+
status: string;
|
|
18
|
+
data: [];
|
|
19
|
+
}>;
|
|
20
|
+
}
|
|
@@ -1,9 +1,29 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
1
|
+
import { Builder as a } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
2
|
+
import { BaseObject as e } from "../core/core.js";
|
|
3
|
+
class i extends e {
|
|
4
|
+
static _default = i;
|
|
5
|
+
static builder() {
|
|
6
|
+
return a(this._default);
|
|
7
|
+
}
|
|
8
|
+
static default() {
|
|
9
|
+
return this._default;
|
|
10
|
+
}
|
|
11
|
+
static complaintsRecognition(t) {
|
|
12
|
+
return this.default().complaintsRecognition(t);
|
|
13
|
+
}
|
|
14
|
+
static complaintsDialog(t) {
|
|
15
|
+
return this.default().complaintsDialog(t);
|
|
16
|
+
}
|
|
17
|
+
static complaintsView(t) {
|
|
18
|
+
return this.default().complaintsView(t);
|
|
19
|
+
}
|
|
20
|
+
static complaintsSearch(t) {
|
|
21
|
+
return this.default().complaintsSearch(t);
|
|
22
|
+
}
|
|
23
|
+
static complaintsChoose(t) {
|
|
24
|
+
return this.default().complaintsChoose(t);
|
|
25
|
+
}
|
|
26
|
+
}
|
|
3
27
|
export {
|
|
4
|
-
|
|
5
|
-
c as complaintsDialog,
|
|
6
|
-
i as complaintsRecognition,
|
|
7
|
-
e as complaintsSearch,
|
|
8
|
-
n as complaintsView
|
|
28
|
+
i as InquiriesAlgorithm
|
|
9
29
|
};
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { BaseObject } from '../core/core';
|
|
2
|
+
import { IBuilder } from 'builder-pattern';
|
|
3
|
+
export declare abstract class InspectionsAlgorithm extends BaseObject {
|
|
4
|
+
static _default: typeof InspectionsAlgorithm;
|
|
5
|
+
static builder(): IBuilder<unknown>;
|
|
6
|
+
static default(): typeof InspectionsAlgorithm;
|
|
7
|
+
static tongueAnalyze(images: FormData): Promise<JSON>;
|
|
8
|
+
static faceAnalyze(images: FormData): Promise<JSON>;
|
|
9
|
+
}
|
|
@@ -1,10 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import { BaseObject as a } from "../core/core.js";
|
|
2
|
+
import { Builder as r } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
3
|
+
class e extends a {
|
|
4
|
+
static _default = e;
|
|
5
|
+
static builder() {
|
|
6
|
+
return r(this._default);
|
|
7
|
+
}
|
|
8
|
+
static default() {
|
|
9
|
+
return this._default;
|
|
10
|
+
}
|
|
11
|
+
static tongueAnalyze(t) {
|
|
12
|
+
return this.default().tongueAnalyze(t);
|
|
13
|
+
}
|
|
14
|
+
static faceAnalyze(t) {
|
|
15
|
+
return this.default().faceAnalyze(t);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
7
18
|
export {
|
|
8
|
-
|
|
9
|
-
i as tongueAnalyze
|
|
19
|
+
e as InspectionsAlgorithm
|
|
10
20
|
};
|
|
@@ -1,2 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
import { BaseObject } from '../core/core';
|
|
2
|
+
import { IBuilder } from 'builder-pattern';
|
|
3
|
+
export declare abstract class LisemsAlgorithm extends BaseObject {
|
|
4
|
+
static _default: typeof LisemsAlgorithm;
|
|
5
|
+
static builder(): IBuilder<unknown>;
|
|
6
|
+
static default(): typeof LisemsAlgorithm;
|
|
7
|
+
static analysisLisems(body: object): Promise<JSON>;
|
|
8
|
+
static getFrequencyDomainDiagram(body: number[]): Promise<string>;
|
|
9
|
+
}
|
|
@@ -1,15 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { BaseObject as a } from "../core/core.js";
|
|
2
|
+
import { Builder as i } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
3
|
+
class e extends a {
|
|
4
|
+
static _default = e;
|
|
5
|
+
static builder() {
|
|
6
|
+
return i(this._default);
|
|
5
7
|
}
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
const o = await t.blob();
|
|
9
|
-
return URL.createObjectURL(o);
|
|
8
|
+
static default() {
|
|
9
|
+
return e;
|
|
10
10
|
}
|
|
11
|
-
|
|
11
|
+
static analysisLisems(t) {
|
|
12
|
+
return this.default().analysisLisems(t);
|
|
13
|
+
}
|
|
14
|
+
static getFrequencyDomainDiagram(t) {
|
|
15
|
+
return this.default().getFrequencyDomainDiagram(t);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
12
18
|
export {
|
|
13
|
-
|
|
14
|
-
a as getFrequencyDomainDiagram
|
|
19
|
+
e as LisemsAlgorithm
|
|
15
20
|
};
|
|
@@ -1,4 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { IBuilder } from 'builder-pattern';
|
|
2
|
+
import { BaseObject } from '../core/core';
|
|
3
|
+
export declare abstract class PulsationsAlgorithm extends BaseObject {
|
|
4
|
+
static _default: typeof PulsationsAlgorithm;
|
|
5
|
+
static builder(): IBuilder<unknown>;
|
|
6
|
+
static default(): typeof PulsationsAlgorithm;
|
|
7
|
+
static pulsationPreprocessing(pulsation: object): Promise<{
|
|
8
|
+
[key: string]: number[];
|
|
9
|
+
}>;
|
|
10
|
+
static pulsationAnalysis(pulsation: object): Promise<JSON>;
|
|
11
|
+
}
|
|
@@ -1,8 +1,20 @@
|
|
|
1
|
-
import {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { Builder as e } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
2
|
+
import { BaseObject as i } from "../core/core.js";
|
|
3
|
+
class s extends i {
|
|
4
|
+
static _default = s;
|
|
5
|
+
static builder() {
|
|
6
|
+
return e(this._default);
|
|
7
|
+
}
|
|
8
|
+
static default() {
|
|
9
|
+
return s;
|
|
10
|
+
}
|
|
11
|
+
static pulsationPreprocessing(t) {
|
|
12
|
+
return this.default().pulsationPreprocessing(t);
|
|
13
|
+
}
|
|
14
|
+
static pulsationAnalysis(t) {
|
|
15
|
+
return this.default().pulsationAnalysis(t);
|
|
16
|
+
}
|
|
17
|
+
}
|
|
5
18
|
export {
|
|
6
|
-
|
|
7
|
-
i as pulsationPreprocessing
|
|
19
|
+
s as PulsationsAlgorithm
|
|
8
20
|
};
|
|
@@ -3,7 +3,7 @@ import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
|
|
|
3
3
|
import { createApis as r, mountApis as t, withConfigType as p } from "./createApis.js";
|
|
4
4
|
import { responded as i, onAuthRequired as a } from "../../config/alova/index.js";
|
|
5
5
|
import { getServiceEndpoint as m, ServiceType as n } from "../../config/index.js";
|
|
6
|
-
import "../../
|
|
6
|
+
import "../../core/core.js";
|
|
7
7
|
import "../../../../node_modules/pinyin/lib/esm/pinyin.js";
|
|
8
8
|
import "../../prescription/alova/index.js";
|
|
9
9
|
const s = e({
|