web-core-tcm 0.0.24 → 0.0.26

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.
Files changed (209) hide show
  1. package/dist/favicon.ico +0 -0
  2. package/dist/icons/favicon-128x128.png +0 -0
  3. package/dist/icons/favicon-16x16.png +0 -0
  4. package/dist/icons/favicon-32x32.png +0 -0
  5. package/dist/icons/favicon-96x96.png +0 -0
  6. package/dist/node_modules/@alova/shared/dist/alova-shared.esm.js +134 -0
  7. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js +70 -0
  8. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +14 -0
  9. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js +6 -0
  10. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js +10 -0
  11. package/dist/node_modules/@bufbuild/protobuf/dist/esm/create.js +136 -0
  12. package/dist/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js +7 -0
  13. package/dist/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +164 -0
  14. package/dist/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +6 -0
  15. package/dist/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +75 -0
  16. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +8 -0
  17. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +35 -0
  18. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +42 -0
  19. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +17 -0
  20. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +156 -0
  21. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +349 -0
  22. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +39 -0
  23. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +72 -0
  24. package/dist/node_modules/@bufbuild/protobuf/dist/esm/registry.js +551 -0
  25. package/dist/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +159 -0
  26. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +58 -0
  27. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +350 -0
  28. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +25 -0
  29. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js +145 -0
  30. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +110 -0
  31. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +107 -0
  32. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +24 -0
  33. package/dist/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +556 -0
  34. package/dist/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +36 -0
  35. package/dist/node_modules/@vue/shared/dist/shared.esm-bundler.js +26 -0
  36. package/dist/node_modules/alova/dist/adapter/fetch.esm.js +55 -0
  37. package/dist/node_modules/alova/dist/alova.esm.js +414 -0
  38. package/dist/node_modules/alova/dist/clienthook/index.esm.js +89 -0
  39. package/dist/node_modules/builder-pattern/dist/index.js +22 -0
  40. package/dist/node_modules/jwt-decode/build/esm/index.js +52 -0
  41. package/dist/node_modules/pinyin/lib/esm/pinyin.js +242260 -0
  42. package/dist/node_modules/punycode/punycode.es6.js +139 -0
  43. package/dist/node_modules/quasar/src/composables/use-quasar/use-quasar.js +8 -0
  44. package/dist/node_modules/quasar/src/utils/private.symbols/symbols.js +4 -0
  45. package/dist/src/api/algorithm/comprehensiveAlgorithm.d.ts +4 -0
  46. package/dist/src/api/algorithm/comprehensiveAlgorithm.js +16 -0
  47. package/dist/src/api/algorithm/index.d.ts +10 -0
  48. package/dist/src/api/algorithm/index.js +62 -0
  49. package/dist/src/api/algorithm/inquiriesAlgorithm.d.ts +13 -0
  50. package/dist/src/api/algorithm/inquiriesAlgorithm.js +9 -0
  51. package/dist/src/api/algorithm/inspectionsAlgorithm.d.ts +2 -0
  52. package/dist/src/api/algorithm/inspectionsAlgorithm.js +10 -0
  53. package/dist/src/api/algorithm/lisemsAlgorithm.d.ts +2 -0
  54. package/dist/src/api/algorithm/lisemsAlgorithm.js +15 -0
  55. package/dist/src/api/algorithm/pulsationsAlgorithm.d.ts +4 -0
  56. package/dist/src/api/algorithm/pulsationsAlgorithm.js +8 -0
  57. package/dist/src/api/authorization/alova/apiDefinitions.d.ts +21 -0
  58. package/dist/src/api/authorization/alova/apiDefinitions.js +9 -0
  59. package/dist/src/api/authorization/alova/createApis.d.ts +10 -0
  60. package/dist/src/api/authorization/alova/createApis.js +51 -0
  61. package/dist/src/api/authorization/alova/implement/authorization.d.ts +4 -0
  62. package/dist/src/api/authorization/alova/implement/authorization.js +15 -0
  63. package/dist/src/api/authorization/alova/implement/index.d.ts +1 -0
  64. package/dist/src/api/authorization/alova/index.d.ts +5 -0
  65. package/dist/src/api/authorization/alova/index.js +18 -0
  66. package/dist/src/api/authorization/authorization.d.ts +8 -0
  67. package/dist/src/api/authorization/authorization.js +16 -0
  68. package/dist/src/api/authorization/index.d.ts +2 -0
  69. package/dist/src/api/authorization/index.js +9 -0
  70. package/dist/src/api/check/alova/apiDefinitions.d.ts +28 -0
  71. package/dist/src/api/check/alova/apiDefinitions.js +16 -0
  72. package/dist/src/api/check/alova/createApis.d.ts +10 -0
  73. package/dist/src/api/check/alova/createApis.js +51 -0
  74. package/dist/src/api/check/alova/implement/check.d.ts +27 -0
  75. package/dist/src/api/check/alova/implement/check.js +119 -0
  76. package/dist/src/api/check/alova/implement/index.d.ts +1 -0
  77. package/dist/src/api/check/alova/index.d.ts +5 -0
  78. package/dist/src/api/check/alova/index.js +21 -0
  79. package/dist/src/api/check/check.d.ts +54 -0
  80. package/dist/src/api/check/check.js +131 -0
  81. package/dist/src/api/check/index.d.ts +2 -0
  82. package/dist/src/api/check/index.js +11 -0
  83. package/dist/src/api/config/alova/index.d.ts +5 -0
  84. package/dist/src/api/config/alova/index.js +55 -0
  85. package/dist/src/api/config/index.d.ts +23 -0
  86. package/dist/src/api/config/index.js +106 -0
  87. package/dist/src/api/device/device.d.ts +5 -0
  88. package/dist/src/api/device/device.js +46 -0
  89. package/dist/src/api/doctor/alova/apiDefinitions.d.ts +26 -0
  90. package/dist/src/api/doctor/alova/apiDefinitions.js +14 -0
  91. package/dist/src/api/doctor/alova/createApis.d.ts +10 -0
  92. package/dist/src/api/doctor/alova/createApis.js +51 -0
  93. package/dist/src/api/doctor/alova/implement/doctor.d.ts +7 -0
  94. package/dist/src/api/doctor/alova/implement/doctor.js +42 -0
  95. package/dist/src/api/doctor/alova/implement/index.d.ts +1 -0
  96. package/dist/src/api/doctor/alova/index.d.ts +5 -0
  97. package/dist/src/api/doctor/alova/index.js +20 -0
  98. package/dist/src/api/doctor/doctor.d.ts +22 -0
  99. package/dist/src/api/doctor/doctor.js +29 -0
  100. package/dist/src/api/doctor/index.d.ts +2 -0
  101. package/dist/src/api/doctor/index.js +9 -0
  102. package/dist/src/api/index.d.ts +12 -0
  103. package/dist/src/api/metric/implement/index.d.ts +1 -0
  104. package/dist/src/api/metric/implement/metric.d.ts +24 -0
  105. package/dist/src/api/metric/implement/metric.js +80 -0
  106. package/dist/src/api/metric/index.d.ts +2 -0
  107. package/dist/src/api/metric/index.js +6 -0
  108. package/dist/src/api/metric/metric.d.ts +28 -0
  109. package/dist/src/api/metric/metric.js +75 -0
  110. package/dist/src/api/oauth/alova/apiDefinitions.d.ts +24 -0
  111. package/dist/src/api/oauth/alova/apiDefinitions.js +12 -0
  112. package/dist/src/api/oauth/alova/createApis.d.ts +10 -0
  113. package/dist/src/api/oauth/alova/createApis.js +51 -0
  114. package/dist/src/api/oauth/alova/implement/index.d.ts +1 -0
  115. package/dist/src/api/oauth/alova/implement/oauth.d.ts +4 -0
  116. package/dist/src/api/oauth/alova/implement/oauth.js +15 -0
  117. package/dist/src/api/oauth/alova/index.d.ts +5 -0
  118. package/dist/src/api/oauth/alova/index.js +17 -0
  119. package/dist/src/api/oauth/index.d.ts +2 -0
  120. package/dist/src/api/oauth/index.js +9 -0
  121. package/dist/src/api/oauth/oauth.d.ts +7 -0
  122. package/dist/src/api/oauth/oauth.js +16 -0
  123. package/dist/src/api/outpatient/alova/apiDefinitions.d.ts +25 -0
  124. package/dist/src/api/outpatient/alova/apiDefinitions.js +13 -0
  125. package/dist/src/api/outpatient/alova/createApis.d.ts +10 -0
  126. package/dist/src/api/outpatient/alova/createApis.js +51 -0
  127. package/dist/src/api/outpatient/alova/implement/index.d.ts +1 -0
  128. package/dist/src/api/outpatient/alova/implement/outpatient.d.ts +10 -0
  129. package/dist/src/api/outpatient/alova/implement/outpatient.js +71 -0
  130. package/dist/src/api/outpatient/alova/index.d.ts +5 -0
  131. package/dist/src/api/outpatient/alova/index.js +21 -0
  132. package/dist/src/api/outpatient/index.d.ts +2 -0
  133. package/dist/src/api/outpatient/index.js +11 -0
  134. package/dist/src/api/outpatient/outpatient.d.ts +39 -0
  135. package/dist/src/api/outpatient/outpatient.js +45 -0
  136. package/dist/src/api/patient/alova/apiDefinitions.d.ts +39 -0
  137. package/dist/src/api/patient/alova/apiDefinitions.js +27 -0
  138. package/dist/src/api/patient/alova/createApis.d.ts +10 -0
  139. package/dist/src/api/patient/alova/createApis.js +51 -0
  140. package/dist/src/api/patient/alova/implement/index.d.ts +2 -0
  141. package/dist/src/api/patient/alova/implement/meta.d.ts +113 -0
  142. package/dist/src/api/patient/alova/implement/meta.js +404 -0
  143. package/dist/src/api/patient/alova/implement/patient.d.ts +22 -0
  144. package/dist/src/api/patient/alova/implement/patient.js +72 -0
  145. package/dist/src/api/patient/alova/index.d.ts +5 -0
  146. package/dist/src/api/patient/alova/index.js +22 -0
  147. package/dist/src/api/patient/core.d.ts +50 -0
  148. package/dist/src/api/patient/core.js +109 -0
  149. package/dist/src/api/patient/index.d.ts +4 -0
  150. package/dist/src/api/patient/index.js +46 -0
  151. package/dist/src/api/patient/meta.d.ts +238 -0
  152. package/dist/src/api/patient/meta.js +454 -0
  153. package/dist/src/api/patient/patient.d.ts +43 -0
  154. package/dist/src/api/patient/patient.js +42 -0
  155. package/dist/src/api/prescription/alova/apiDefinitions.d.ts +27 -0
  156. package/dist/src/api/prescription/alova/apiDefinitions.js +15 -0
  157. package/dist/src/api/prescription/alova/createApis.d.ts +10 -0
  158. package/dist/src/api/prescription/alova/createApis.js +51 -0
  159. package/dist/src/api/prescription/alova/implement/herbal.d.ts +15 -0
  160. package/dist/src/api/prescription/alova/implement/herbal.js +54 -0
  161. package/dist/src/api/prescription/alova/implement/index.d.ts +2 -0
  162. package/dist/src/api/prescription/alova/implement/prescription.d.ts +15 -0
  163. package/dist/src/api/prescription/alova/implement/prescription.js +49 -0
  164. package/dist/src/api/prescription/alova/index.d.ts +5 -0
  165. package/dist/src/api/prescription/alova/index.js +20 -0
  166. package/dist/src/api/prescription/herbal.d.ts +19 -0
  167. package/dist/src/api/prescription/herbal.js +34 -0
  168. package/dist/src/api/prescription/index.d.ts +3 -0
  169. package/dist/src/api/prescription/index.js +13 -0
  170. package/dist/src/api/prescription/prescription.d.ts +26 -0
  171. package/dist/src/api/prescription/prescription.js +49 -0
  172. package/dist/src/api/scientist/alova/apiDefinitions.d.ts +25 -0
  173. package/dist/src/api/scientist/alova/apiDefinitions.js +13 -0
  174. package/dist/src/api/scientist/alova/createApis.d.ts +10 -0
  175. package/dist/src/api/scientist/alova/createApis.js +51 -0
  176. package/dist/src/api/scientist/alova/implement/index.d.ts +1 -0
  177. package/dist/src/api/scientist/alova/implement/scientist.d.ts +6 -0
  178. package/dist/src/api/scientist/alova/implement/scientist.js +35 -0
  179. package/dist/src/api/scientist/alova/index.d.ts +6 -0
  180. package/dist/src/api/scientist/alova/index.js +21 -0
  181. package/dist/src/api/scientist/index.d.ts +2 -0
  182. package/dist/src/api/scientist/index.js +9 -0
  183. package/dist/src/api/scientist/scientist.d.ts +20 -0
  184. package/dist/src/api/scientist/scientist.js +37 -0
  185. package/dist/src/components/models.d.ts +7 -0
  186. package/dist/src/index.d.ts +3 -0
  187. package/dist/src/index.js +36 -0
  188. package/dist/src/pages/LoginPage.vue.d.ts +2 -0
  189. package/dist/src/proto/index.d.ts +2 -0
  190. package/dist/src/proto/types/Images_pb.d.ts +34 -0
  191. package/dist/src/proto/types/Images_pb.js +10 -0
  192. package/dist/src/proto/types/WaveMap_pb.d.ts +48 -0
  193. package/dist/src/proto/types/WaveMap_pb.js +10 -0
  194. package/dist/src/router/index.d.ts +2 -0
  195. package/dist/src/router/routes.d.ts +3 -0
  196. package/dist/src/util/RichTextUtil.d.ts +1 -0
  197. package/dist/src/util/RichTextUtil.js +6 -0
  198. package/dist/src/util/datetime.d.ts +5 -0
  199. package/dist/src/util/export.d.ts +4 -0
  200. package/dist/src/util/helper.d.ts +65 -0
  201. package/dist/src/util/helper.js +46 -0
  202. package/dist/src/util/image.d.ts +2 -0
  203. package/dist/src/util/image.js +17 -0
  204. package/dist/src/util/number.d.ts +12 -0
  205. package/dist/src/util/s256.d.ts +2 -0
  206. package/dist/src/util/secret.d.ts +10 -0
  207. package/dist/src/util/string.d.ts +21 -0
  208. package/dist/src/util/string.js +10 -0
  209. package/package.json +1 -1
@@ -0,0 +1,25 @@
1
+ /**
2
+ * OpenAPI definition - version v0
3
+ *
4
+ *
5
+ *
6
+ * OpenAPI version: 3.1.0
7
+ *
8
+ *
9
+ * NOTE: This file is auto generated by the alova's vscode plugin.
10
+ *
11
+ * https://alova.js.org/devtools/vscode
12
+ *
13
+ * **Do not edit the file manually.**
14
+ */
15
+ declare const _default: {
16
+ 'queuerRestful.getQueuerState': string[];
17
+ 'queuerRestful.putQueuerState': string[];
18
+ 'queuerRestful.deleteQueuerState': string[];
19
+ 'queuerRestful.queryQueuerState': string[];
20
+ 'queuerRestful.postQueuerState': string[];
21
+ 'metricRestful.datesOfQueuerState': string[];
22
+ 'metricRestful.totalOfQueuerState': string[];
23
+ 'metricRestful.totalOfQueuerTodayState': string[];
24
+ };
25
+ export default _default;
@@ -0,0 +1,13 @@
1
+ const e = {
2
+ "queuerRestful.getQueuerState": ["GET", "/门诊/服务/排队/{id}"],
3
+ "queuerRestful.putQueuerState": ["PUT", "/门诊/服务/排队/{id}"],
4
+ "queuerRestful.deleteQueuerState": ["DELETE", "/门诊/服务/排队/{id}"],
5
+ "queuerRestful.queryQueuerState": ["GET", "/门诊/服务/排队"],
6
+ "queuerRestful.postQueuerState": ["POST", "/门诊/服务/排队"],
7
+ "metricRestful.datesOfQueuerState": ["GET", "/门诊/服务/统计/排队/日期"],
8
+ "metricRestful.totalOfQueuerState": ["GET", "/门诊/服务/统计/排队/总数"],
9
+ "metricRestful.totalOfQueuerTodayState": ["GET", "/门诊/服务/统计/排队/今日"]
10
+ };
11
+ export {
12
+ e as default
13
+ };
@@ -0,0 +1,10 @@
1
+ import { Alova, AlovaGenerics, AlovaMethodCreateConfig } from 'alova';
2
+ export declare const createApis: (alovaInstance: Alova<AlovaGenerics>, configMap: any) => outpatientApi;
3
+ export declare const mountApis: (Apis: outpatientApi) => 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 outpatientApi ? Url extends keyof outpatientApi[Tag] ? outpatientApi[Tag][Url] extends (...args: any) => any ? Parameters<outpatientApi[Tag][Url]> : any : any : any;
6
+ type MethodsConfigMap = {
7
+ [P in keyof typeof import('./apiDefinitions').default]?: MethodConfig<P extends `${infer Tag}.${infer Url}` ? Parameters<NonNullable<APISofParameters<Tag, Url>[0]>['transform']>[0] : any>;
8
+ };
9
+ export declare const withConfigType: <Config extends MethodsConfigMap>(config: Config) => Config;
10
+ export {};
@@ -0,0 +1,51 @@
1
+ import { Method as g } from "../../../../node_modules/alova/dist/alova.esm.js";
2
+ import A from "./apiDefinitions.js";
3
+ const l = /* @__PURE__ */ Object.create(null), h = (t, n, i) => {
4
+ const e = t.join(".");
5
+ if (l[e])
6
+ return l[e];
7
+ const r = new Proxy(function() {
8
+ }, {
9
+ get(d, u) {
10
+ const s = [...t, u];
11
+ return h(s, n, i);
12
+ },
13
+ apply(d, u, [s]) {
14
+ const m = A[e];
15
+ if (!m)
16
+ throw new Error(`the api path of \`${e}\` is not found`);
17
+ const a = {
18
+ ...i[e],
19
+ ...s
20
+ }, [y, P] = m, w = a.pathParams, b = P.replace(/\{([^}]+)\}/g, (f, p) => w[p]);
21
+ delete a.pathParams;
22
+ let o = a.data;
23
+ if (Object.prototype.toString.call(o) === "[object Object]" && typeof FormData < "u") {
24
+ let f = !1;
25
+ const p = new FormData();
26
+ for (const c in o)
27
+ p.append(c, o[c]), o[c] instanceof Blob && (f = !0);
28
+ o = f ? p : o;
29
+ }
30
+ return new g(
31
+ y.toUpperCase(),
32
+ n,
33
+ b,
34
+ a,
35
+ o
36
+ );
37
+ }
38
+ });
39
+ return l[e] = r, r;
40
+ }, x = (t, n) => new Proxy({}, {
41
+ get(e, r) {
42
+ return h([r], t, n);
43
+ }
44
+ }), D = (t) => {
45
+ globalThis.outpatientApi = t;
46
+ }, C = (t) => t;
47
+ export {
48
+ x as createApis,
49
+ D as mountApis,
50
+ C as withConfigType
51
+ };
@@ -0,0 +1 @@
1
+ export * from './outpatient';
@@ -0,0 +1,10 @@
1
+ import { Queuer } from '../../outpatient';
2
+ import { Page } from '../../../patient/core';
3
+ export declare class AlovaQueuer extends Queuer {
4
+ get(): Promise<this>;
5
+ put(): Promise<this>;
6
+ delete(): Promise<this>;
7
+ post(): Promise<this>;
8
+ putStatus(status?: number): Promise<this>;
9
+ static query(page: number, pageSize: number, doctorId?: string, patientId?: string): Promise<Page<Queuer>>;
10
+ }
@@ -0,0 +1,71 @@
1
+ import { Queuer as p } from "../../outpatient.js";
2
+ class s extends p {
3
+ async get() {
4
+ return this.of(
5
+ await outpatientApi.queuerRestful.getQueuerState({
6
+ pathParams: {
7
+ id: this.id
8
+ }
9
+ }).send()
10
+ );
11
+ }
12
+ async put() {
13
+ return this.of(
14
+ await outpatientApi.queuerRestful.putQueuerState({
15
+ pathParams: {
16
+ id: this.id
17
+ },
18
+ data: this.state()
19
+ }).send(!0)
20
+ );
21
+ }
22
+ async delete() {
23
+ return await outpatientApi.queuerRestful.deleteQueuerState({
24
+ pathParams: {
25
+ id: this.id
26
+ }
27
+ }).send(), Promise.resolve(this);
28
+ }
29
+ async post() {
30
+ return this.of(
31
+ await outpatientApi.queuerRestful.postQueuerState({
32
+ data: this.state()
33
+ }).send(!0)
34
+ );
35
+ }
36
+ async putStatus(e) {
37
+ return e && (this.status = e), this.of(
38
+ await outpatientApi.queuerRestful.putQueuerState({
39
+ pathParams: {
40
+ id: this.id
41
+ },
42
+ data: {
43
+ status: this.status
44
+ }
45
+ }).send(!0)
46
+ );
47
+ }
48
+ static query(e, i, a, u) {
49
+ return outpatientApi.queuerRestful.queryQueuerState({
50
+ params: {
51
+ ...a && { doctorId: a },
52
+ ...u && { patientId: u },
53
+ page: e,
54
+ pageSize: i
55
+ },
56
+ async transform(t) {
57
+ return {
58
+ data: await Promise.all(t.content.map((r) => new s().of(r))),
59
+ total: t.totalElements,
60
+ page: t.number,
61
+ pageSize: t.size,
62
+ pageCount: t.totalPages,
63
+ isLastPage: t.last
64
+ };
65
+ }
66
+ }).send();
67
+ }
68
+ }
69
+ export {
70
+ s as AlovaQueuer
71
+ };
@@ -0,0 +1,5 @@
1
+ export declare const alovaInstance: import('alova').Alova<import('alova').AlovaGenerics<any, any, import('alova/fetch').FetchRequestInit, Response, Headers, any, any, any>>;
2
+ export declare const $$userConfigMap: {};
3
+ declare const Apis: outpatientApi;
4
+ export default Apis;
5
+ export * from './implement';
@@ -0,0 +1,21 @@
1
+ import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.js";
2
+ import t from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
3
+ import { createApis as o, mountApis as r, withConfigType as p } from "./createApis.js";
4
+ import { responded as i, onAuthRequired as a } from "../../config/alova/index.js";
5
+ import { getServiceEndpoint as n, ServiceType as m } from "../../config/index.js";
6
+ import "../../patient/core.js";
7
+ import "../../../../node_modules/pinyin/lib/esm/pinyin.js";
8
+ const s = e({
9
+ baseURL: n(m.Outpatient),
10
+ requestAdapter: t(),
11
+ beforeRequest: a(() => {
12
+ }),
13
+ cacheFor: null,
14
+ responded: i
15
+ }), c = p({}), f = o(s, c);
16
+ r(f);
17
+ export {
18
+ c as $$userConfigMap,
19
+ s as alovaInstance,
20
+ f as default
21
+ };
@@ -0,0 +1,2 @@
1
+ export * from './outpatient';
2
+ export * from './alova';
@@ -0,0 +1,11 @@
1
+ import { Queuer as u, QueuerStatus as o, QueuerStatusConfig as t } from "./outpatient.js";
2
+ import { $$userConfigMap as f, alovaInstance as n } from "./alova/index.js";
3
+ import { AlovaQueuer as s } from "./alova/implement/outpatient.js";
4
+ export {
5
+ f as $$userConfigMap,
6
+ s as AlovaQueuer,
7
+ u as Queuer,
8
+ o as QueuerStatus,
9
+ t as QueuerStatusConfig,
10
+ n as alovaInstance
11
+ };
@@ -0,0 +1,39 @@
1
+ import { Page, NetworkObject } from '../patient/core';
2
+ import { QueuerState } from './alova/globals';
3
+ import { IBuilder } from 'builder-pattern';
4
+ import { Patient } from '../patient/patient';
5
+ import { Doctor } from '../doctor/doctor';
6
+ export declare enum QueuerStatus {
7
+ Waiting = 0,
8
+ InTreatment = 1,
9
+ Finished = 2
10
+ }
11
+ export declare const QueuerStatusConfig: {
12
+ 2: {
13
+ name: string;
14
+ };
15
+ 1: {
16
+ name: string;
17
+ };
18
+ 0: {
19
+ name: string;
20
+ };
21
+ };
22
+ export declare abstract class Queuer extends NetworkObject {
23
+ static builder(): IBuilder<Queuer>;
24
+ static default(): typeof Queuer;
25
+ id: string;
26
+ patient: Patient;
27
+ doctor: Doctor;
28
+ createdTimestamp: string;
29
+ updatedTimestamp: string;
30
+ status: QueuerStatus;
31
+ of(json: QueuerState): Promise<this>;
32
+ state(): QueuerState;
33
+ static query(page: number, pageSize: number, doctorId?: string, patientId?: string): Promise<Page<Queuer>>;
34
+ abstract get(): Promise<this>;
35
+ abstract put(): Promise<this>;
36
+ abstract putStatus(status?: number): Promise<this>;
37
+ abstract delete(): Promise<this>;
38
+ abstract post(): Promise<this>;
39
+ }
@@ -0,0 +1,45 @@
1
+ import { NetworkObject as s } from "../patient/core.js";
2
+ import { Builder as m } from "../../../node_modules/builder-pattern/dist/index.js";
3
+ import { Patient as p } from "../patient/patient.js";
4
+ import { Doctor as o } from "../doctor/doctor.js";
5
+ var c = /* @__PURE__ */ ((i) => (i[i.Waiting = 0] = "Waiting", i[i.InTreatment = 1] = "InTreatment", i[i.Finished = 2] = "Finished", i))(c || {});
6
+ const T = {
7
+ 2: { name: "完成" },
8
+ 1: { name: "就诊" },
9
+ 0: { name: "等待" }
10
+ };
11
+ class e extends s {
12
+ static builder() {
13
+ return m(this._default);
14
+ }
15
+ static default() {
16
+ return this._default;
17
+ }
18
+ id = "";
19
+ patient = p.builder().build();
20
+ doctor = o.builder().build();
21
+ createdTimestamp = "";
22
+ updatedTimestamp = "";
23
+ status = 0;
24
+ async of(t) {
25
+ return t.id != null && (this.id = t.id), t.patientState != null && await this.patient.of(t.patientState), t.doctorState != null && await this.doctor.of(t.doctorState), t.createdTimestamp != null && (this.createdTimestamp = t.createdTimestamp), t.updatedTimestamp != null && (this.updatedTimestamp = t.updatedTimestamp), t.status != null && (this.status = t.status), Promise.resolve(this);
26
+ }
27
+ state() {
28
+ return {
29
+ id: this.id,
30
+ patientState: this.patient.state(),
31
+ doctorState: this.doctor.state(),
32
+ createdTimestamp: this.createdTimestamp,
33
+ updatedTimestamp: this.updatedTimestamp,
34
+ status: this.status
35
+ };
36
+ }
37
+ static query(t, a, d, r) {
38
+ return e.default().query(t, a, d, r);
39
+ }
40
+ }
41
+ export {
42
+ e as Queuer,
43
+ c as QueuerStatus,
44
+ T as QueuerStatusConfig
45
+ };
@@ -0,0 +1,39 @@
1
+ /**
2
+ * 患者服务 - version v1.0
3
+ *
4
+ * 支持Restful风格的患者服务
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
+ 'metaStateRestful.getMetaState': string[];
17
+ 'metaStateRestful.putMetaState': string[];
18
+ 'metaStateRestful.deleteMetaState': string[];
19
+ 'patientStateRestful.getPatientState': string[];
20
+ 'patientStateRestful.putPatientState': string[];
21
+ 'patientStateRestful.deletePatientState': string[];
22
+ 'patientStateRestful.queryPatientState': string[];
23
+ 'patientStateRestful.postPatientState': string[];
24
+ 'patientStateRestful.queryPatientStateByExactMatch': string[];
25
+ 'metaStateRestful.postMetaState': string[];
26
+ 'metaStateRestful.queryMetaAndPatientState': string[];
27
+ 'metaStateRestful.queryMetaStateByExactMatch': string[];
28
+ 'metaStateRestful.queryMetaState': string[];
29
+ 'metricRestful.totalOfPatient': string[];
30
+ 'metricRestful.ageDistributeOfPatient': string[];
31
+ 'metricRestful.genderDistributeOfPatient': string[];
32
+ 'metricRestful.dateDistributeOfPatient': string[];
33
+ 'metricRestful.totalOfPatientByToday': string[];
34
+ 'metricRestful.datesOfMeta': string[];
35
+ 'metricRestful.totalOfMeta': string[];
36
+ 'metricRestful.totalOfMetaByToday': string[];
37
+ 'metaStateRestful.getMetaObject': string[];
38
+ };
39
+ export default _default;
@@ -0,0 +1,27 @@
1
+ const t = {
2
+ "metaStateRestful.getMetaState": ["GET", "/患者/服务/元/{id}"],
3
+ "metaStateRestful.putMetaState": ["PUT", "/患者/服务/元/{id}"],
4
+ "metaStateRestful.deleteMetaState": ["DELETE", "/患者/服务/元/{id}"],
5
+ "patientStateRestful.getPatientState": ["GET", "/患者/服务/{id}"],
6
+ "patientStateRestful.putPatientState": ["PUT", "/患者/服务/{id}"],
7
+ "patientStateRestful.deletePatientState": ["DELETE", "/患者/服务/{id}"],
8
+ "patientStateRestful.queryPatientState": ["GET", "/患者/服务"],
9
+ "patientStateRestful.postPatientState": ["POST", "/患者/服务"],
10
+ "patientStateRestful.queryPatientStateByExactMatch": ["POST", "/患者/服务/精确匹配"],
11
+ "metaStateRestful.postMetaState": ["POST", "/患者/服务/元"],
12
+ "metaStateRestful.queryMetaAndPatientState": ["POST", "/患者/服务/元/级联查询"],
13
+ "metaStateRestful.queryMetaStateByExactMatch": ["POST", "/患者/服务/元/精确匹配"],
14
+ "metaStateRestful.queryMetaState": ["POST", "/患者/服务/元/条件查询"],
15
+ "metricRestful.totalOfPatient": ["GET", "/患者/服务/统计/患者/总数"],
16
+ "metricRestful.ageDistributeOfPatient": ["GET", "/患者/服务/统计/患者/性别/分布"],
17
+ "metricRestful.genderDistributeOfPatient": ["GET", "/患者/服务/统计/患者/年龄/分布"],
18
+ "metricRestful.dateDistributeOfPatient": ["GET", "/患者/服务/统计/患者/分布"],
19
+ "metricRestful.totalOfPatientByToday": ["GET", "/患者/服务/统计/患者/今日"],
20
+ "metricRestful.datesOfMeta": ["GET", "/患者/服务/统计/元/日期"],
21
+ "metricRestful.totalOfMeta": ["GET", "/患者/服务/统计/元/总数"],
22
+ "metricRestful.totalOfMetaByToday": ["GET", "/患者/服务/统计/元/今日"],
23
+ "metaStateRestful.getMetaObject": ["GET", "/患者/服务/元/{id}/元象"]
24
+ };
25
+ export {
26
+ t as default
27
+ };
@@ -0,0 +1,10 @@
1
+ import { Alova, AlovaGenerics, AlovaMethodCreateConfig } from 'alova';
2
+ export declare const createApis: (alovaInstance: Alova<AlovaGenerics>, configMap: any) => patientApi;
3
+ export declare const mountApis: (Apis: patientApi) => 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 patientApi ? Url extends keyof patientApi[Tag] ? patientApi[Tag][Url] extends (...args: any) => any ? Parameters<patientApi[Tag][Url]> : any : any : any;
6
+ type MethodsConfigMap = {
7
+ [P in keyof typeof import('./apiDefinitions').default]?: MethodConfig<P extends `${infer Tag}.${infer Url}` ? Parameters<NonNullable<APISofParameters<Tag, Url>[0]>['transform']>[0] : any>;
8
+ };
9
+ export declare const withConfigType: <Config extends MethodsConfigMap>(config: Config) => Config;
10
+ export {};
@@ -0,0 +1,51 @@
1
+ import { Method as g } from "../../../../node_modules/alova/dist/alova.esm.js";
2
+ import A from "./apiDefinitions.js";
3
+ const l = /* @__PURE__ */ Object.create(null), h = (t, n, i) => {
4
+ const e = t.join(".");
5
+ if (l[e])
6
+ return l[e];
7
+ const r = new Proxy(function() {
8
+ }, {
9
+ get(d, m) {
10
+ const s = [...t, m];
11
+ return h(s, n, i);
12
+ },
13
+ apply(d, m, [s]) {
14
+ const u = A[e];
15
+ if (!u)
16
+ throw new Error(`the api path of \`${e}\` is not found`);
17
+ const a = {
18
+ ...i[e],
19
+ ...s
20
+ }, [y, P] = u, w = a.pathParams, b = P.replace(/\{([^}]+)\}/g, (f, p) => w[p]);
21
+ delete a.pathParams;
22
+ let o = a.data;
23
+ if (Object.prototype.toString.call(o) === "[object Object]" && typeof FormData < "u") {
24
+ let f = !1;
25
+ const p = new FormData();
26
+ for (const c in o)
27
+ p.append(c, o[c]), o[c] instanceof Blob && (f = !0);
28
+ o = f ? p : o;
29
+ }
30
+ return new g(
31
+ y.toUpperCase(),
32
+ n,
33
+ b,
34
+ a,
35
+ o
36
+ );
37
+ }
38
+ });
39
+ return l[e] = r, r;
40
+ }, x = (t, n) => new Proxy({}, {
41
+ get(e, r) {
42
+ return h([r], t, n);
43
+ }
44
+ }), D = (t) => {
45
+ globalThis.patientApi = t;
46
+ }, C = (t) => t;
47
+ export {
48
+ x as createApis,
49
+ D as mountApis,
50
+ C as withConfigType
51
+ };
@@ -0,0 +1,2 @@
1
+ export * from './meta';
2
+ export * from './patient';
@@ -0,0 +1,113 @@
1
+ import { MetaState } from '../globals';
2
+ import { AppendixMeta, ComplaintMeta, ECGMeta, FaceMeta, Meta, Metas, PCGMeta, PPGMeta, PulsationMeta, SceneMeta, TongueMeta } from '../../meta';
3
+ import { Page, Tag } from '../../core';
4
+ import { Patient } from '../../patient';
5
+ export declare class AlovaMeta extends Meta {
6
+ deserialize(): Promise<this>;
7
+ inject(): Promise<this>;
8
+ serialize(): ArrayBuffer;
9
+ getObject(): Promise<string>;
10
+ get(): Promise<this>;
11
+ put(): Promise<this>;
12
+ post(): Promise<this>;
13
+ delete(): Promise<this>;
14
+ analyze(): Promise<this>;
15
+ static queryMetaWithPatient(page: number, pageSize: number, owner?: Patient, type?: string, startTime?: string, endTime?: string, sort?: string, patientName?: string, patientPhoneNumber?: string, patientStartBirthdate?: string, patientEndBirthdate?: string, patientGender?: string, tags?: Tag[]): Promise<Page<Meta>>;
16
+ static query(page: number, pageSize: number, owner?: Patient, type?: string, startTime?: string, endTime?: string, sort?: string): Promise<Page<Meta>>;
17
+ static queryMetaStateByExactMatch(id?: string[], owner?: Patient[], type?: string[], pageSize?: number, page?: number, startTime?: string, endTime?: string, sort?: string): Promise<Page<Meta>>;
18
+ }
19
+ export declare class AlovaTongueMeta extends TongueMeta {
20
+ getObject(): Promise<string>;
21
+ get(): Promise<this>;
22
+ put(): Promise<this>;
23
+ post(): Promise<this>;
24
+ delete(): Promise<this>;
25
+ analyze(overwrite?: boolean): Promise<this>;
26
+ }
27
+ export declare class AlovaFaceMeta extends FaceMeta {
28
+ getObject(): Promise<string>;
29
+ post(): Promise<this>;
30
+ get(): Promise<this>;
31
+ put(): Promise<this>;
32
+ delete(): Promise<this>;
33
+ analyze(overwrite?: boolean): Promise<this>;
34
+ }
35
+ export declare class AlovaSceneMeta extends SceneMeta {
36
+ getObject(): Promise<string>;
37
+ post(): Promise<this>;
38
+ get(): Promise<this>;
39
+ put(): Promise<this>;
40
+ delete(): Promise<this>;
41
+ analyze(overwrite?: boolean): Promise<this>;
42
+ }
43
+ export declare class AlovaPulsationMeta extends PulsationMeta {
44
+ getObject(): Promise<import('../../../..').WaveMap>;
45
+ post(): Promise<this>;
46
+ get(): Promise<this>;
47
+ put(): Promise<this>;
48
+ delete(): Promise<this>;
49
+ analyze(overwrite?: boolean): Promise<this>;
50
+ preprocess(origins: {
51
+ [key: string]: number[];
52
+ }): Promise<{
53
+ [key: string]: number[];
54
+ }>;
55
+ }
56
+ export declare class AlovaPPGMeta extends PPGMeta {
57
+ getObject(): Promise<import('../../../..').WaveMap>;
58
+ post(): Promise<this>;
59
+ get(): Promise<this>;
60
+ put(): Promise<this>;
61
+ delete(): Promise<this>;
62
+ analyze(overwrite?: boolean): Promise<this>;
63
+ preprocess(origins: {
64
+ [key: string]: number[];
65
+ }): Promise<{
66
+ [key: string]: number[];
67
+ }>;
68
+ }
69
+ export declare class AlovaPCGMeta extends PCGMeta {
70
+ getObject(): Promise<import('../../../..').WaveMap>;
71
+ post(): Promise<this>;
72
+ get(): Promise<this>;
73
+ put(): Promise<this>;
74
+ delete(): Promise<this>;
75
+ analyze(overwrite?: boolean): Promise<this>;
76
+ preprocess(origins: {
77
+ [key: string]: number[];
78
+ }): Promise<{
79
+ [key: string]: number[];
80
+ }>;
81
+ }
82
+ export declare class AlovaECGMeta extends ECGMeta {
83
+ getObject(): Promise<import('../../../..').WaveMap>;
84
+ post(): Promise<this>;
85
+ get(): Promise<this>;
86
+ put(): Promise<this>;
87
+ delete(): Promise<this>;
88
+ analyze(overwrite?: boolean): Promise<this>;
89
+ preprocess(origins: {
90
+ [key: string]: number[];
91
+ }): Promise<{
92
+ [key: string]: number[];
93
+ }>;
94
+ }
95
+ export declare class AlovaAppendixMeta extends AppendixMeta {
96
+ getObject(): Promise<string[]>;
97
+ post(): Promise<this>;
98
+ get(): Promise<this>;
99
+ put(): Promise<this>;
100
+ delete(): Promise<this>;
101
+ analyze(overwrite?: boolean): Promise<this>;
102
+ }
103
+ export declare class AlovaComplaintMeta extends ComplaintMeta {
104
+ getObject(): Promise<string>;
105
+ post(): Promise<this>;
106
+ get(): Promise<this>;
107
+ put(): Promise<this>;
108
+ delete(): Promise<this>;
109
+ analyze(overwrite?: boolean): Promise<this>;
110
+ }
111
+ export declare class AlovaMetas extends Metas {
112
+ static map(meta: MetaState): Promise<AlovaPulsationMeta> | Promise<AlovaTongueMeta> | Promise<AlovaComplaintMeta> | Promise<AlovaAppendixMeta> | Promise<AlovaMeta>;
113
+ }