web-core-tcm 0.0.25 → 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 (308) hide show
  1. package/dist/node_modules/@alova/shared/dist/alova-shared.esm.js +134 -0
  2. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/boot.js +70 -0
  3. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/file.js +14 -0
  4. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/message.js +6 -0
  5. package/dist/node_modules/@bufbuild/protobuf/dist/esm/codegenv2/restore-json-names.js +10 -0
  6. package/dist/node_modules/@bufbuild/protobuf/dist/esm/create.js +136 -0
  7. package/dist/node_modules/@bufbuild/protobuf/dist/esm/descriptors.js +7 -0
  8. package/dist/node_modules/@bufbuild/protobuf/dist/esm/from-binary.js +164 -0
  9. package/dist/node_modules/@bufbuild/protobuf/dist/esm/is-message.js +6 -0
  10. package/dist/node_modules/@bufbuild/protobuf/dist/esm/proto-int64.js +75 -0
  11. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/error.js +8 -0
  12. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/guard.js +35 -0
  13. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/names.js +42 -0
  14. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/nested-types.js +17 -0
  15. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect-check.js +156 -0
  16. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/reflect.js +349 -0
  17. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/scalar.js +39 -0
  18. package/dist/node_modules/@bufbuild/protobuf/dist/esm/reflect/unsafe.js +72 -0
  19. package/dist/node_modules/@bufbuild/protobuf/dist/esm/registry.js +551 -0
  20. package/dist/node_modules/@bufbuild/protobuf/dist/esm/to-binary.js +159 -0
  21. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/base64-encoding.js +58 -0
  22. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/binary-encoding.js +350 -0
  23. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/text-encoding.js +25 -0
  24. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/text-format.js +145 -0
  25. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wire/varint.js +110 -0
  26. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/gen/google/protobuf/descriptor_pb.js +107 -0
  27. package/dist/node_modules/@bufbuild/protobuf/dist/esm/wkt/wrappers.js +24 -0
  28. package/dist/node_modules/@vue/reactivity/dist/reactivity.esm-bundler.js +556 -0
  29. package/dist/node_modules/@vue/runtime-core/dist/runtime-core.esm-bundler.js +36 -0
  30. package/dist/node_modules/@vue/shared/dist/shared.esm-bundler.js +26 -0
  31. package/dist/node_modules/alova/dist/adapter/fetch.esm.js +55 -0
  32. package/dist/node_modules/alova/dist/alova.esm.js +414 -0
  33. package/dist/node_modules/alova/dist/clienthook/index.esm.js +89 -0
  34. package/dist/node_modules/builder-pattern/dist/index.js +22 -0
  35. package/dist/node_modules/jwt-decode/build/esm/index.js +52 -0
  36. package/dist/node_modules/pinyin/lib/esm/pinyin.js +242260 -0
  37. package/dist/node_modules/punycode/punycode.es6.js +139 -0
  38. package/dist/node_modules/quasar/src/composables/use-quasar/use-quasar.js +8 -0
  39. package/dist/node_modules/quasar/src/utils/private.symbols/symbols.js +4 -0
  40. package/dist/src/api/algorithm/comprehensiveAlgorithm.d.ts +4 -0
  41. package/dist/src/api/algorithm/comprehensiveAlgorithm.js +16 -0
  42. package/dist/src/api/algorithm/index.d.ts +10 -0
  43. package/dist/src/api/algorithm/index.js +62 -0
  44. package/dist/src/api/algorithm/inquiriesAlgorithm.d.ts +13 -0
  45. package/dist/src/api/algorithm/inquiriesAlgorithm.js +9 -0
  46. package/dist/src/api/algorithm/inspectionsAlgorithm.d.ts +2 -0
  47. package/dist/src/api/algorithm/inspectionsAlgorithm.js +10 -0
  48. package/dist/src/api/algorithm/lisemsAlgorithm.d.ts +2 -0
  49. package/dist/src/api/algorithm/lisemsAlgorithm.js +15 -0
  50. package/dist/src/api/algorithm/pulsationsAlgorithm.d.ts +4 -0
  51. package/dist/src/api/algorithm/pulsationsAlgorithm.js +8 -0
  52. package/dist/src/api/authorization/alova/apiDefinitions.d.ts +21 -0
  53. package/dist/src/api/authorization/alova/apiDefinitions.js +9 -0
  54. package/dist/src/api/authorization/alova/createApis.d.ts +10 -0
  55. package/dist/src/api/authorization/alova/createApis.js +51 -0
  56. package/dist/src/api/authorization/alova/implement/authorization.d.ts +4 -0
  57. package/dist/src/api/authorization/alova/implement/authorization.js +15 -0
  58. package/dist/src/api/authorization/alova/index.d.ts +5 -0
  59. package/dist/src/api/authorization/alova/index.js +18 -0
  60. package/dist/src/api/authorization/authorization.d.ts +8 -0
  61. package/dist/src/api/authorization/authorization.js +16 -0
  62. package/dist/src/api/authorization/index.js +9 -0
  63. package/dist/src/api/check/alova/apiDefinitions.d.ts +28 -0
  64. package/dist/src/api/check/alova/apiDefinitions.js +16 -0
  65. package/dist/src/api/check/alova/createApis.d.ts +10 -0
  66. package/dist/src/api/check/alova/createApis.js +51 -0
  67. package/dist/src/api/check/alova/implement/check.d.ts +27 -0
  68. package/dist/src/api/check/alova/implement/check.js +119 -0
  69. package/dist/src/api/check/alova/index.d.ts +5 -0
  70. package/dist/src/api/check/alova/index.js +21 -0
  71. package/dist/src/api/check/check.d.ts +54 -0
  72. package/dist/src/api/check/check.js +131 -0
  73. package/dist/src/api/check/index.js +11 -0
  74. package/dist/src/api/config/alova/index.d.ts +5 -0
  75. package/dist/src/api/config/alova/index.js +55 -0
  76. package/dist/src/api/config/index.d.ts +23 -0
  77. package/dist/src/api/config/index.js +106 -0
  78. package/dist/src/api/device/device.d.ts +5 -0
  79. package/dist/src/api/device/device.js +46 -0
  80. package/dist/src/api/doctor/alova/apiDefinitions.d.ts +26 -0
  81. package/dist/src/api/doctor/alova/apiDefinitions.js +14 -0
  82. package/dist/src/api/doctor/alova/createApis.d.ts +10 -0
  83. package/dist/src/api/doctor/alova/createApis.js +51 -0
  84. package/dist/src/api/doctor/alova/implement/doctor.d.ts +7 -0
  85. package/dist/src/api/doctor/alova/implement/doctor.js +42 -0
  86. package/dist/src/api/doctor/alova/index.d.ts +5 -0
  87. package/dist/src/api/doctor/alova/index.js +20 -0
  88. package/dist/src/api/doctor/doctor.d.ts +22 -0
  89. package/dist/src/api/doctor/doctor.js +29 -0
  90. package/dist/src/api/doctor/index.js +9 -0
  91. package/dist/src/api/metric/implement/metric.d.ts +24 -0
  92. package/dist/src/api/metric/implement/metric.js +80 -0
  93. package/dist/src/api/metric/index.js +6 -0
  94. package/dist/src/api/metric/metric.d.ts +28 -0
  95. package/dist/src/api/metric/metric.js +75 -0
  96. package/dist/src/api/oauth/alova/apiDefinitions.d.ts +24 -0
  97. package/dist/src/api/oauth/alova/apiDefinitions.js +12 -0
  98. package/dist/src/api/oauth/alova/createApis.d.ts +10 -0
  99. package/dist/src/api/oauth/alova/createApis.js +51 -0
  100. package/dist/src/api/oauth/alova/implement/oauth.d.ts +4 -0
  101. package/dist/src/api/oauth/alova/implement/oauth.js +15 -0
  102. package/dist/src/api/oauth/alova/index.d.ts +5 -0
  103. package/dist/src/api/oauth/alova/index.js +17 -0
  104. package/dist/src/api/oauth/index.js +9 -0
  105. package/dist/src/api/oauth/oauth.d.ts +7 -0
  106. package/dist/src/api/oauth/oauth.js +16 -0
  107. package/dist/src/api/outpatient/alova/apiDefinitions.d.ts +25 -0
  108. package/dist/src/api/outpatient/alova/apiDefinitions.js +13 -0
  109. package/dist/src/api/outpatient/alova/createApis.d.ts +10 -0
  110. package/dist/src/api/outpatient/alova/createApis.js +51 -0
  111. package/dist/src/api/outpatient/alova/implement/outpatient.d.ts +10 -0
  112. package/dist/src/api/outpatient/alova/implement/outpatient.js +71 -0
  113. package/dist/src/api/outpatient/alova/index.d.ts +5 -0
  114. package/dist/src/api/outpatient/alova/index.js +21 -0
  115. package/dist/src/api/outpatient/index.js +11 -0
  116. package/dist/src/api/outpatient/outpatient.d.ts +39 -0
  117. package/dist/src/api/outpatient/outpatient.js +45 -0
  118. package/dist/src/api/patient/alova/apiDefinitions.d.ts +39 -0
  119. package/dist/src/api/patient/alova/apiDefinitions.js +27 -0
  120. package/dist/src/api/patient/alova/createApis.d.ts +10 -0
  121. package/dist/src/api/patient/alova/createApis.js +51 -0
  122. package/dist/src/api/patient/alova/implement/meta.d.ts +113 -0
  123. package/dist/src/api/patient/alova/implement/meta.js +404 -0
  124. package/dist/src/api/patient/alova/implement/patient.d.ts +22 -0
  125. package/dist/src/api/patient/alova/implement/patient.js +72 -0
  126. package/dist/src/api/patient/alova/index.d.ts +5 -0
  127. package/dist/src/api/patient/alova/index.js +22 -0
  128. package/dist/src/api/patient/core.d.ts +50 -0
  129. package/dist/src/api/patient/core.js +109 -0
  130. package/dist/src/api/patient/index.js +46 -0
  131. package/dist/src/api/patient/meta.d.ts +238 -0
  132. package/dist/src/api/patient/meta.js +454 -0
  133. package/dist/src/api/patient/patient.d.ts +43 -0
  134. package/dist/src/api/patient/patient.js +42 -0
  135. package/dist/src/api/prescription/alova/apiDefinitions.d.ts +27 -0
  136. package/dist/src/api/prescription/alova/apiDefinitions.js +15 -0
  137. package/dist/src/api/prescription/alova/createApis.d.ts +10 -0
  138. package/dist/src/api/prescription/alova/createApis.js +51 -0
  139. package/dist/src/api/prescription/alova/implement/herbal.d.ts +15 -0
  140. package/dist/src/api/prescription/alova/implement/herbal.js +54 -0
  141. package/dist/src/api/prescription/alova/implement/prescription.d.ts +15 -0
  142. package/dist/src/api/prescription/alova/implement/prescription.js +49 -0
  143. package/dist/src/api/prescription/alova/index.d.ts +5 -0
  144. package/dist/src/api/prescription/alova/index.js +20 -0
  145. package/dist/src/api/prescription/herbal.d.ts +19 -0
  146. package/dist/src/api/prescription/herbal.js +34 -0
  147. package/dist/src/api/prescription/index.js +13 -0
  148. package/dist/src/api/prescription/prescription.d.ts +26 -0
  149. package/dist/src/api/prescription/prescription.js +49 -0
  150. package/dist/src/api/scientist/alova/apiDefinitions.d.ts +25 -0
  151. package/dist/src/api/scientist/alova/apiDefinitions.js +13 -0
  152. package/dist/src/api/scientist/alova/createApis.d.ts +10 -0
  153. package/dist/src/api/scientist/alova/createApis.js +51 -0
  154. package/dist/src/api/scientist/alova/implement/scientist.d.ts +6 -0
  155. package/dist/src/api/scientist/alova/implement/scientist.js +35 -0
  156. package/dist/src/api/scientist/alova/index.d.ts +6 -0
  157. package/dist/src/api/scientist/alova/index.js +21 -0
  158. package/dist/src/api/scientist/index.js +9 -0
  159. package/dist/src/api/scientist/scientist.d.ts +20 -0
  160. package/dist/src/api/scientist/scientist.js +37 -0
  161. package/dist/src/components/models.d.ts +7 -0
  162. package/dist/src/index.js +36 -0
  163. package/dist/src/pages/LoginPage.vue.d.ts +2 -0
  164. package/dist/src/proto/types/Images_pb.d.ts +34 -0
  165. package/dist/src/proto/types/Images_pb.js +10 -0
  166. package/dist/src/proto/types/WaveMap_pb.d.ts +48 -0
  167. package/dist/src/proto/types/WaveMap_pb.js +10 -0
  168. package/dist/src/router/index.d.ts +2 -0
  169. package/dist/src/router/routes.d.ts +3 -0
  170. package/dist/src/util/RichTextUtil.d.ts +1 -0
  171. package/dist/src/util/RichTextUtil.js +6 -0
  172. package/dist/src/util/datetime.d.ts +5 -0
  173. package/dist/src/util/export.d.ts +4 -0
  174. package/dist/src/util/helper.d.ts +65 -0
  175. package/dist/src/util/helper.js +46 -0
  176. package/dist/src/util/image.d.ts +2 -0
  177. package/dist/src/util/image.js +17 -0
  178. package/dist/src/util/number.d.ts +12 -0
  179. package/dist/src/util/s256.d.ts +2 -0
  180. package/dist/src/util/secret.d.ts +10 -0
  181. package/dist/src/util/string.d.ts +21 -0
  182. package/dist/src/util/string.js +10 -0
  183. package/package.json +4 -1
  184. package/.editorconfig +0 -7
  185. package/.github/workflows/test.yml +0 -29
  186. package/.prettierrc.json +0 -5
  187. package/.vscode/extensions.json +0 -15
  188. package/.vscode/settings.json +0 -9
  189. package/eslint.config.js +0 -83
  190. package/index.html +0 -24
  191. package/postcss.config.js +0 -29
  192. package/quasar.config.ts +0 -233
  193. package/src/App.vue +0 -7
  194. package/src/api/algorithm/comprehensiveAlgorithm.ts +0 -20
  195. package/src/api/algorithm/index.ts +0 -50
  196. package/src/api/algorithm/inquiriesAlgorithm.ts +0 -16
  197. package/src/api/algorithm/inspectionsAlgorithm.ts +0 -11
  198. package/src/api/algorithm/lisemsAlgorithm.ts +0 -16
  199. package/src/api/algorithm/pulsationsAlgorithm.ts +0 -8
  200. package/src/api/authorization/alova/apiDefinitions.ts +0 -23
  201. package/src/api/authorization/alova/createApis.ts +0 -114
  202. package/src/api/authorization/alova/globals.d.ts +0 -394
  203. package/src/api/authorization/alova/implement/authorization.ts +0 -14
  204. package/src/api/authorization/alova/index.ts +0 -22
  205. package/src/api/authorization/authorization.ts +0 -16
  206. package/src/api/check/alova/apiDefinitions.ts +0 -30
  207. package/src/api/check/alova/createApis.ts +0 -114
  208. package/src/api/check/alova/globals.d.ts +0 -1257
  209. package/src/api/check/alova/implement/check.ts +0 -165
  210. package/src/api/check/alova/index.ts +0 -22
  211. package/src/api/check/check.ts +0 -217
  212. package/src/api/config/alova/index.ts +0 -71
  213. package/src/api/config/index.ts +0 -132
  214. package/src/api/device/device.js +0 -58
  215. package/src/api/doctor/alova/apiDefinitions.ts +0 -28
  216. package/src/api/doctor/alova/createApis.ts +0 -114
  217. package/src/api/doctor/alova/globals.d.ts +0 -559
  218. package/src/api/doctor/alova/implement/doctor.ts +0 -51
  219. package/src/api/doctor/alova/index.ts +0 -23
  220. package/src/api/doctor/doctor.ts +0 -53
  221. package/src/api/metric/implement/metric.ts +0 -108
  222. package/src/api/metric/metric.ts +0 -114
  223. package/src/api/oauth/alova/apiDefinitions.ts +0 -26
  224. package/src/api/oauth/alova/createApis.ts +0 -114
  225. package/src/api/oauth/alova/globals.d.ts +0 -460
  226. package/src/api/oauth/alova/implement/oauth.ts +0 -24
  227. package/src/api/oauth/alova/index.ts +0 -21
  228. package/src/api/oauth/oauth.ts +0 -19
  229. package/src/api/outpatient/alova/apiDefinitions.ts +0 -27
  230. package/src/api/outpatient/alova/createApis.ts +0 -114
  231. package/src/api/outpatient/alova/globals.d.ts +0 -685
  232. package/src/api/outpatient/alova/implement/outpatient.ts +0 -91
  233. package/src/api/outpatient/alova/index.ts +0 -22
  234. package/src/api/outpatient/outpatient.ts +0 -67
  235. package/src/api/patient/alova/apiDefinitions.ts +0 -41
  236. package/src/api/patient/alova/createApis.ts +0 -114
  237. package/src/api/patient/alova/globals.d.ts +0 -1690
  238. package/src/api/patient/alova/implement/meta.ts +0 -517
  239. package/src/api/patient/alova/implement/patient.ts +0 -99
  240. package/src/api/patient/alova/index.ts +0 -22
  241. package/src/api/patient/core.ts +0 -133
  242. package/src/api/patient/meta.ts +0 -570
  243. package/src/api/patient/patient.ts +0 -98
  244. package/src/api/prescription/alova/apiDefinitions.ts +0 -29
  245. package/src/api/prescription/alova/createApis.ts +0 -114
  246. package/src/api/prescription/alova/globals.d.ts +0 -968
  247. package/src/api/prescription/alova/implement/herbal.ts +0 -68
  248. package/src/api/prescription/alova/implement/prescription.ts +0 -62
  249. package/src/api/prescription/alova/index.ts +0 -22
  250. package/src/api/prescription/herbal.ts +0 -51
  251. package/src/api/prescription/prescription.ts +0 -76
  252. package/src/api/scientist/alova/apiDefinitions.ts +0 -27
  253. package/src/api/scientist/alova/createApis.ts +0 -114
  254. package/src/api/scientist/alova/globals.d.ts +0 -447
  255. package/src/api/scientist/alova/implement/scientist.ts +0 -40
  256. package/src/api/scientist/alova/index.ts +0 -24
  257. package/src/api/scientist/scientist.ts +0 -49
  258. package/src/assets/quasar-logo-vertical.svg +0 -15
  259. package/src/boot/.gitkeep +0 -0
  260. package/src/components/ExampleComponent.vue +0 -37
  261. package/src/components/models.ts +0 -8
  262. package/src/css/app.scss +0 -1
  263. package/src/css/quasar.variables.scss +0 -25
  264. package/src/env.d.ts +0 -7
  265. package/src/layouts/UserLayout.vue +0 -108
  266. package/src/pages/LoginPage.vue +0 -29
  267. package/src/proto/Images.proto +0 -7
  268. package/src/proto/WaveMap.proto +0 -10
  269. package/src/proto/types/Images_pb.ts +0 -48
  270. package/src/proto/types/WaveMap_pb.ts +0 -59
  271. package/src/router/index.ts +0 -37
  272. package/src/router/routes.ts +0 -14
  273. package/src/util/RichTextUtil.ts +0 -5
  274. package/src/util/datetime.ts +0 -43
  275. package/src/util/export.ts +0 -46
  276. package/src/util/helper.ts +0 -159
  277. package/src/util/image.ts +0 -28
  278. package/src/util/number.ts +0 -146
  279. package/src/util/s256.js +0 -27
  280. package/src/util/secret.ts +0 -60
  281. package/src/util/string.ts +0 -121
  282. package/tsconfig.json +0 -7
  283. /package/{public → dist}/favicon.ico +0 -0
  284. /package/{public → dist}/icons/favicon-128x128.png +0 -0
  285. /package/{public → dist}/icons/favicon-16x16.png +0 -0
  286. /package/{public → dist}/icons/favicon-32x32.png +0 -0
  287. /package/{public → dist}/icons/favicon-96x96.png +0 -0
  288. /package/{src/api/authorization/alova/implement/index.ts → dist/src/api/authorization/alova/implement/index.d.ts} +0 -0
  289. /package/{src/api/authorization/index.ts → dist/src/api/authorization/index.d.ts} +0 -0
  290. /package/{src/api/check/alova/implement/index.ts → dist/src/api/check/alova/implement/index.d.ts} +0 -0
  291. /package/{src/api/check/index.ts → dist/src/api/check/index.d.ts} +0 -0
  292. /package/{src/api/doctor/alova/implement/index.ts → dist/src/api/doctor/alova/implement/index.d.ts} +0 -0
  293. /package/{src/api/doctor/index.ts → dist/src/api/doctor/index.d.ts} +0 -0
  294. /package/{src/api/index.ts → dist/src/api/index.d.ts} +0 -0
  295. /package/{src/api/metric/implement/index.ts → dist/src/api/metric/implement/index.d.ts} +0 -0
  296. /package/{src/api/metric/index.ts → dist/src/api/metric/index.d.ts} +0 -0
  297. /package/{src/api/oauth/alova/implement/index.ts → dist/src/api/oauth/alova/implement/index.d.ts} +0 -0
  298. /package/{src/api/oauth/index.ts → dist/src/api/oauth/index.d.ts} +0 -0
  299. /package/{src/api/outpatient/alova/implement/index.ts → dist/src/api/outpatient/alova/implement/index.d.ts} +0 -0
  300. /package/{src/api/outpatient/index.ts → dist/src/api/outpatient/index.d.ts} +0 -0
  301. /package/{src/api/patient/alova/implement/index.ts → dist/src/api/patient/alova/implement/index.d.ts} +0 -0
  302. /package/{src/api/patient/index.ts → dist/src/api/patient/index.d.ts} +0 -0
  303. /package/{src/api/prescription/alova/implement/index.ts → dist/src/api/prescription/alova/implement/index.d.ts} +0 -0
  304. /package/{src/api/prescription/index.ts → dist/src/api/prescription/index.d.ts} +0 -0
  305. /package/{src/api/scientist/alova/implement/index.ts → dist/src/api/scientist/alova/implement/index.d.ts} +0 -0
  306. /package/{src/api/scientist/index.ts → dist/src/api/scientist/index.d.ts} +0 -0
  307. /package/{src/index.ts → dist/src/index.d.ts} +0 -0
  308. /package/{src/proto/index.ts → dist/src/proto/index.d.ts} +0 -0
@@ -0,0 +1,404 @@
1
+ import { Meta as E, TongueMeta as I, FaceMeta as G, SceneMeta as R, PulsationMeta as q, PPGMeta as B, PCGMeta as k, ECGMeta as D, AppendixMeta as F, ComplaintMeta as L, Metas as T, MetaType as n } from "../../meta.js";
2
+ import { Tag as W, Annotation as H } from "../../core.js";
3
+ import { tongueAnalyze as J, faceAnalyze as K } from "../../../algorithm/inspectionsAlgorithm.js";
4
+ import { base64ToArrayBuffer as x } from "../../../../util/image.js";
5
+ import { pulsationAnalysis as Q, pulsationPreprocessing as U } from "../../../algorithm/pulsationsAlgorithm.js";
6
+ import { analysisLisems as z } from "../../../algorithm/lisemsAlgorithm.js";
7
+ class V extends E {
8
+ deserialize() {
9
+ return Promise.resolve(this);
10
+ }
11
+ inject() {
12
+ return Promise.resolve(this);
13
+ }
14
+ serialize() {
15
+ return new ArrayBuffer(0);
16
+ }
17
+ getObject() {
18
+ return Promise.resolve("");
19
+ }
20
+ async get() {
21
+ return this.of(await c(this.id));
22
+ }
23
+ async put() {
24
+ return this.of(await l(this.id, this.type, this.state()));
25
+ }
26
+ post() {
27
+ throw new Error("Method not implemented.");
28
+ }
29
+ async delete() {
30
+ return await u(this.id), this;
31
+ }
32
+ analyze() {
33
+ throw new Error("Method not implemented.");
34
+ }
35
+ static queryMetaWithPatient(t, e, a, o, h, d, w, y, r, i, m, P, C) {
36
+ const b = C?.map((g) => g.state()), A = a?.state();
37
+ return patientApi.metaStateRestful.queryMetaAndPatientState({
38
+ data: {
39
+ ...A && { ownerState: A },
40
+ ...o && { type: o },
41
+ page: t,
42
+ pageSize: e,
43
+ ...h && { startTime: h },
44
+ ...d && { endTime: d },
45
+ ...w && { sort: w },
46
+ ...y && { patientName: y },
47
+ ...r && { patientPhoneNumber: r },
48
+ ...i && { patientStartBirthdate: i },
49
+ ...m && { patientEndBirthdate: m },
50
+ ...P && { patientGender: P },
51
+ ...b && { tagsState: b }
52
+ },
53
+ async transform(g) {
54
+ const S = [];
55
+ for (const O of g.content)
56
+ S.push(await M.map(O));
57
+ return {
58
+ data: S,
59
+ total: g.totalElements,
60
+ page: g.number,
61
+ pageSize: g.size,
62
+ pageCount: g.totalPages,
63
+ isLastPage: g.last
64
+ };
65
+ }
66
+ }).send();
67
+ }
68
+ static query(t, e, a, o, h, d, w) {
69
+ const y = a?.state();
70
+ return patientApi.metaStateRestful.queryMetaState({
71
+ data: {
72
+ ...y && { ownerState: y },
73
+ ...o && { type: o },
74
+ ...h && { startTime: h },
75
+ ...d && { endTime: d },
76
+ ...w && { sort: w },
77
+ page: t,
78
+ pageSize: e
79
+ },
80
+ async transform(r) {
81
+ const i = [];
82
+ for (const m of r.content)
83
+ i.push(await M.map(m));
84
+ return {
85
+ data: i,
86
+ total: r.totalElements,
87
+ page: r.number,
88
+ pageSize: r.size,
89
+ pageCount: r.totalPages,
90
+ isLastPage: r.last
91
+ };
92
+ }
93
+ }).send();
94
+ }
95
+ static queryMetaStateByExactMatch(t, e, a, o, h, d, w, y) {
96
+ const r = e?.map((i) => i.state());
97
+ return patientApi.metaStateRestful.queryMetaStateByExactMatch({
98
+ data: {
99
+ ...t && { id: t },
100
+ ...r && { ownerState: r },
101
+ ...a && { type: a },
102
+ ...o && { pageSize: o },
103
+ ...h && { page: h },
104
+ ...d && { startTime: d },
105
+ ...w && { endTime: w },
106
+ ...y && { sort: y }
107
+ },
108
+ async transform(i) {
109
+ const m = [];
110
+ for (const P of i.content)
111
+ m.push(await M.map(P));
112
+ return {
113
+ data: m,
114
+ total: i.totalElements,
115
+ page: i.number,
116
+ pageSize: i.size,
117
+ pageCount: i.totalPages,
118
+ isLastPage: i.last
119
+ };
120
+ }
121
+ }).send();
122
+ }
123
+ }
124
+ const p = (s, t, e) => patientApi.metaStateRestful.postMetaState({
125
+ params: {
126
+ ownerId: s,
127
+ type: t
128
+ },
129
+ headers: {
130
+ "Content-Type": "application/octet-stream"
131
+ },
132
+ duplex: "half",
133
+ data: new Blob([e])
134
+ }).send(), l = (s, t, e) => patientApi.metaStateRestful.putMetaState({
135
+ pathParams: {
136
+ id: s,
137
+ type: t
138
+ },
139
+ data: e
140
+ }).send(), u = (s) => (patientApi.metaStateRestful.deleteMetaState({
141
+ pathParams: {
142
+ id: s
143
+ }
144
+ }).send(), Promise.resolve()), c = (s) => patientApi.metaStateRestful.getMetaState({
145
+ pathParams: {
146
+ id: s
147
+ }
148
+ }).send(), f = async (s) => patientApi.metaStateRestful.getMetaObject({
149
+ pathParams: {
150
+ id: s
151
+ },
152
+ priority: "low",
153
+ transform(t) {
154
+ return t.arrayBuffer();
155
+ }
156
+ }).send(), v = (s, t) => {
157
+ const e = [], a = Date.now().toString();
158
+ return Object.entries(s).forEach(([o, h]) => {
159
+ e.push(
160
+ W.builder().key(o).annotations([H.builder().value(h).actor(t).timestamp(a).build()]).build()
161
+ );
162
+ }), e;
163
+ };
164
+ class X extends I {
165
+ async getObject() {
166
+ return this.base64Image ? Promise.resolve(this.base64Image) : this.deserialize(await f(this.id));
167
+ }
168
+ async get() {
169
+ return this.of(await c(this.id));
170
+ }
171
+ async put() {
172
+ return this.of(await l(this.id, this.type, this.state()));
173
+ }
174
+ async post() {
175
+ return this.of(await p(this.owner.id, this.type, this.serialize()));
176
+ }
177
+ async delete() {
178
+ return await u(this.id), this;
179
+ }
180
+ async analyze(t = !1) {
181
+ t && (this.tags = []);
182
+ const e = new FormData();
183
+ return e.append("files", new Blob([x(this.base64Image)])), this.tags.push(...v(await J(e).send(), "算法")), Promise.resolve(this);
184
+ }
185
+ }
186
+ class Y extends G {
187
+ async getObject() {
188
+ return this.base64Image ? Promise.resolve(this.base64Image) : this.deserialize(await f(this.id));
189
+ }
190
+ async post() {
191
+ return this.of(await p(this.owner.id, this.type, this.serialize()));
192
+ }
193
+ async get() {
194
+ return this.of(await c(this.id));
195
+ }
196
+ async put() {
197
+ return this.of(await l(this.id, this.type, this.state()));
198
+ }
199
+ async delete() {
200
+ return await u(this.id), this;
201
+ }
202
+ async analyze(t = !1) {
203
+ t && (this.tags = []);
204
+ const e = new FormData();
205
+ return e.append("files", new Blob([x(this.base64Image)])), this.tags.push(...v(await K(e).send(), "算法")), Promise.resolve(this);
206
+ }
207
+ }
208
+ class Z extends R {
209
+ async getObject() {
210
+ return this.base64Image ? Promise.resolve(this.base64Image) : this.deserialize(await f(this.id));
211
+ }
212
+ async post() {
213
+ return this.of(await p(this.owner.id, this.type, this.serialize()));
214
+ }
215
+ async get() {
216
+ return this.of(await c(this.id));
217
+ }
218
+ async put() {
219
+ return this.of(await l(this.id, this.type, this.state()));
220
+ }
221
+ async delete() {
222
+ return await u(this.id), this;
223
+ }
224
+ async analyze(t = !1) {
225
+ return t && (this.tags = []), Promise.resolve(this);
226
+ }
227
+ }
228
+ class _ extends q {
229
+ async getObject() {
230
+ return this.waves ? Promise.resolve(this.waves) : this.deserialize(await f(this.id));
231
+ }
232
+ async post() {
233
+ return this.of(await p(this.owner.id, this.type, this.serialize()));
234
+ }
235
+ async get() {
236
+ return this.of(await c(this.id));
237
+ }
238
+ async put() {
239
+ return this.of(await l(this.id, this.type, this.state()));
240
+ }
241
+ async delete() {
242
+ return await u(this.id), this;
243
+ }
244
+ async analyze(t = !1) {
245
+ t && (this.tags = []);
246
+ const e = {};
247
+ for (const a in this.waves?.origin)
248
+ e[a] = this.waves.origin[a].values;
249
+ return this.tags.push(...v(await Q(e).send(), "算法")), Promise.resolve(this);
250
+ }
251
+ preprocess(t) {
252
+ return U(t);
253
+ }
254
+ }
255
+ class $ extends B {
256
+ async getObject() {
257
+ return this.waves ? Promise.resolve(this.waves) : this.deserialize(await f(this.id));
258
+ }
259
+ async post() {
260
+ return this.of(await p(this.owner.id, this.type, this.serialize()));
261
+ }
262
+ async get() {
263
+ return this.of(await c(this.id));
264
+ }
265
+ async put() {
266
+ return this.of(await l(this.id, this.type, this.state()));
267
+ }
268
+ async delete() {
269
+ return await u(this.id), this;
270
+ }
271
+ async analyze(t = !1) {
272
+ t && (this.tags = []);
273
+ const e = {};
274
+ for (const a in this.waves?.origin)
275
+ e[a] = this.waves.origin[a].values;
276
+ return this.tags.push(...v(await z(e).send(), "算法")), Promise.resolve(this);
277
+ }
278
+ preprocess(t) {
279
+ return Promise.resolve(t);
280
+ }
281
+ }
282
+ class j extends k {
283
+ async getObject() {
284
+ return this.waves ? Promise.resolve(this.waves) : this.deserialize(await f(this.id));
285
+ }
286
+ async post() {
287
+ return this.of(await p(this.owner.id, this.type, this.serialize()));
288
+ }
289
+ async get() {
290
+ return this.of(await c(this.id));
291
+ }
292
+ async put() {
293
+ return this.of(await l(this.id, this.type, this.state()));
294
+ }
295
+ async delete() {
296
+ return await u(this.id), this;
297
+ }
298
+ async analyze(t = !1) {
299
+ t && (this.tags = []);
300
+ const e = {};
301
+ for (const a in this.waves?.origin)
302
+ e[a] = this.waves.origin[a].values;
303
+ return this.tags.push(...v(await z(e).send(), "算法")), Promise.resolve(this);
304
+ }
305
+ preprocess(t) {
306
+ return Promise.resolve(t);
307
+ }
308
+ }
309
+ class N extends D {
310
+ async getObject() {
311
+ return this.waves ? Promise.resolve(this.waves) : this.deserialize(await f(this.id));
312
+ }
313
+ async post() {
314
+ return this.of(await p(this.owner.id, this.type, this.serialize()));
315
+ }
316
+ async get() {
317
+ return this.of(await c(this.id));
318
+ }
319
+ async put() {
320
+ return this.of(await l(this.id, this.type, this.state()));
321
+ }
322
+ async delete() {
323
+ return await u(this.id), this;
324
+ }
325
+ async analyze(t = !1) {
326
+ t && (this.tags = []);
327
+ const e = {};
328
+ for (const a in this.waves?.origin)
329
+ e[a] = this.waves.origin[a].values;
330
+ return this.tags.push(...v(await z(e).send(), "算法")), Promise.resolve(this);
331
+ }
332
+ preprocess(t) {
333
+ return Promise.resolve(t);
334
+ }
335
+ }
336
+ class tt extends F {
337
+ async getObject() {
338
+ return this.base64Images.length ? Promise.resolve(this.base64Images) : this.deserialize(await f(this.id));
339
+ }
340
+ async post() {
341
+ return this.of(await p(this.owner.id, this.type, this.serialize()));
342
+ }
343
+ async get() {
344
+ return this.of(await c(this.id));
345
+ }
346
+ async put() {
347
+ return this.of(await l(this.id, this.type, this.state()));
348
+ }
349
+ async delete() {
350
+ return await u(this.id), this;
351
+ }
352
+ async analyze(t = !1) {
353
+ return t && (this.tags = []), Promise.resolve(this);
354
+ }
355
+ }
356
+ class et extends L {
357
+ async getObject() {
358
+ return this.text ? Promise.resolve(this.text) : this.deserialize(await f(this.id));
359
+ }
360
+ async post() {
361
+ return this.of(await p(this.owner.id, this.type, this.serialize()));
362
+ }
363
+ async get() {
364
+ return this.of(await c(this.id));
365
+ }
366
+ async put() {
367
+ return this.of(await l(this.id, this.type, this.state()));
368
+ }
369
+ async delete() {
370
+ return await u(this.id), this;
371
+ }
372
+ async analyze(t = !1) {
373
+ return t && (this.tags = []), Promise.resolve(this);
374
+ }
375
+ }
376
+ class M extends T {
377
+ static map(t) {
378
+ const e = n[t.type];
379
+ if (e == n.Pulsation) return new _().of(t);
380
+ if (e == n.Tongue) return new X().of(t);
381
+ if (e == n.Complaint) return new et().of(t);
382
+ if (e == n.Face) return new Y().of(t);
383
+ if (e == n.Appendix) return new tt().of(t);
384
+ if (e == n.ECG) return new N().of(t);
385
+ if (e == n.PCG) return new j().of(t);
386
+ if (e == n.Scene) return new Z().of(t);
387
+ if (e == n.PPG) return new $().of(t);
388
+ if (e == n.Meta) return new V().of(t);
389
+ throw new Error("未知的Meta类型");
390
+ }
391
+ }
392
+ export {
393
+ tt as AlovaAppendixMeta,
394
+ et as AlovaComplaintMeta,
395
+ N as AlovaECGMeta,
396
+ Y as AlovaFaceMeta,
397
+ V as AlovaMeta,
398
+ M as AlovaMetas,
399
+ j as AlovaPCGMeta,
400
+ $ as AlovaPPGMeta,
401
+ _ as AlovaPulsationMeta,
402
+ Z as AlovaSceneMeta,
403
+ X as AlovaTongueMeta
404
+ };
@@ -0,0 +1,22 @@
1
+ import { Patient } from '../../patient';
2
+ import { Page } from '../../core';
3
+ export declare class AlovaPatient extends Patient {
4
+ get(): Promise<this>;
5
+ put(): Promise<this>;
6
+ post(): Promise<this>;
7
+ delete(): Promise<Awaited<this>>;
8
+ putRemarks(): Promise<this>;
9
+ static query(params: {
10
+ id?: string;
11
+ doctorId?: string;
12
+ name?: string;
13
+ gender?: string;
14
+ identity?: string;
15
+ pageSize: number;
16
+ page: number;
17
+ phoneNumber?: string;
18
+ startTime?: string;
19
+ endTime?: string;
20
+ sort?: string;
21
+ }): Promise<Page<Patient>>;
22
+ }
@@ -0,0 +1,72 @@
1
+ import { Patient as s } from "../../patient.js";
2
+ class a extends s {
3
+ async get() {
4
+ return this.of(
5
+ await patientApi.patientStateRestful.getPatientState({
6
+ pathParams: {
7
+ id: this.id
8
+ },
9
+ priority: "high",
10
+ async transform(e) {
11
+ return new a().of(e);
12
+ }
13
+ }).send()
14
+ );
15
+ }
16
+ async put() {
17
+ return this.of(
18
+ await patientApi.patientStateRestful.putPatientState({
19
+ pathParams: {
20
+ id: this.id
21
+ },
22
+ data: this.state()
23
+ }).send(!0)
24
+ );
25
+ }
26
+ async post() {
27
+ return this.of(
28
+ await patientApi.patientStateRestful.postPatientState({
29
+ data: this.state()
30
+ }).send(!0)
31
+ );
32
+ }
33
+ delete() {
34
+ return patientApi.patientStateRestful.deletePatientState({
35
+ pathParams: {
36
+ id: this.id
37
+ }
38
+ }).send(), Promise.resolve(this);
39
+ }
40
+ async putRemarks() {
41
+ return this.of(
42
+ await patientApi.patientStateRestful.putPatientState({
43
+ pathParams: {
44
+ id: this.id
45
+ },
46
+ data: {
47
+ remarks: this.remarks
48
+ }
49
+ }).send(!0)
50
+ );
51
+ }
52
+ static query(e) {
53
+ return patientApi.patientStateRestful.queryPatientState({
54
+ params: e,
55
+ async transform(t) {
56
+ return {
57
+ data: await Promise.all(
58
+ t.content.map((i) => new a().of(i))
59
+ ),
60
+ total: t.totalElements,
61
+ page: t.number,
62
+ pageCount: t.totalPages,
63
+ pageSize: t.size,
64
+ isLastPage: t.last
65
+ };
66
+ }
67
+ }).send();
68
+ }
69
+ }
70
+ export {
71
+ a as AlovaPatient
72
+ };
@@ -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: patientApi;
4
+ export * from './implement';
5
+ export default Apis;
@@ -0,0 +1,22 @@
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 i } from "./createApis.js";
4
+ import { responded as p, onAuthRequired as a } from "../../config/alova/index.js";
5
+ import { getServiceEndpoint as m, ServiceType as n } from "../../config/index.js";
6
+ import "../core.js";
7
+ import "../../../../node_modules/pinyin/lib/esm/pinyin.js";
8
+ import "../../algorithm/index.js";
9
+ const s = e({
10
+ baseURL: m(n.Patient),
11
+ requestAdapter: t(),
12
+ beforeRequest: a(() => {
13
+ }),
14
+ cacheFor: null,
15
+ responded: p
16
+ }), c = i({}), f = o(s, c);
17
+ r(f);
18
+ export {
19
+ c as $$userConfigMap,
20
+ s as alovaInstance,
21
+ f as default
22
+ };
@@ -0,0 +1,50 @@
1
+ import { AnnotationState, TagState } from './alova/globals';
2
+ import { IBuilder } from 'builder-pattern';
3
+ export declare class Page<T> {
4
+ data: T[];
5
+ total: number;
6
+ page: number;
7
+ pageSize: number;
8
+ pageCount: number;
9
+ isLastPage: boolean;
10
+ }
11
+ declare abstract class NetworkObject {
12
+ static _default: typeof NetworkObject;
13
+ static builder(): IBuilder<unknown>;
14
+ static default(): typeof NetworkObject;
15
+ abstract of(json: unknown): Promise<this>;
16
+ abstract state(): unknown;
17
+ }
18
+ declare class Annotation extends NetworkObject {
19
+ value: string;
20
+ actor: string;
21
+ timestamp: string;
22
+ static builder(): IBuilder<Annotation>;
23
+ constructor(value?: string, actor?: string, timestamp?: string);
24
+ of(json: AnnotationState): Promise<Awaited<this>>;
25
+ state(): AnnotationState;
26
+ }
27
+ declare class Tag extends NetworkObject {
28
+ static builder(): IBuilder<Tag>;
29
+ static default(): typeof Tag;
30
+ key: string;
31
+ annotations: Annotation[];
32
+ constructor(key?: string, annotations?: Annotation[]);
33
+ of(json: TagState): Promise<this>;
34
+ state(): TagState;
35
+ getLastValue(): string;
36
+ getLastAnnotation(): Annotation;
37
+ static getValueTagSet(tags: Tag[]): Tag[];
38
+ assign(tag: Tag): this;
39
+ }
40
+ declare class Sequence<T> {
41
+ data: T[];
42
+ current: T;
43
+ showed: boolean;
44
+ constructor(data?: T[], current?: T);
45
+ delete(item: T): T;
46
+ choose(item: T): T;
47
+ clear(): this;
48
+ show(): Sequence<T>;
49
+ }
50
+ export { NetworkObject, Tag, Sequence, Annotation };
@@ -0,0 +1,109 @@
1
+ import { Builder as i } from "../../../node_modules/builder-pattern/dist/index.js";
2
+ class d {
3
+ data = [];
4
+ total = 0;
5
+ page = 0;
6
+ pageSize = 0;
7
+ pageCount = 0;
8
+ isLastPage = !1;
9
+ }
10
+ class a {
11
+ static _default = a;
12
+ static builder() {
13
+ return i(this._default);
14
+ }
15
+ static default() {
16
+ return a;
17
+ }
18
+ }
19
+ class r extends a {
20
+ value = "";
21
+ actor = "";
22
+ timestamp = "";
23
+ static builder() {
24
+ return i(r);
25
+ }
26
+ constructor(t = "", e = "", s = "") {
27
+ super(), this.value = t, this.actor = e, this.timestamp = s;
28
+ }
29
+ of(t) {
30
+ return this.value = t.value, this.actor = t.actor, this.timestamp = t.timestamp, Promise.resolve(this);
31
+ }
32
+ state() {
33
+ return {
34
+ value: this.value,
35
+ actor: this.actor,
36
+ timestamp: this.timestamp
37
+ };
38
+ }
39
+ }
40
+ class n extends a {
41
+ static builder() {
42
+ return i(n);
43
+ }
44
+ static default() {
45
+ return n;
46
+ }
47
+ key = "";
48
+ annotations = [];
49
+ constructor(t = "", e = []) {
50
+ super(), this.key = t, this.annotations = e;
51
+ }
52
+ async of(t) {
53
+ this.key = t.key;
54
+ for (const e of t.annotationsState)
55
+ this.annotations.push(await new r().of(e));
56
+ return this;
57
+ }
58
+ state() {
59
+ return {
60
+ key: this.key,
61
+ annotationsState: this.annotations.map((t) => t.state())
62
+ };
63
+ }
64
+ getLastValue() {
65
+ return this.getLastAnnotation().value;
66
+ }
67
+ getLastAnnotation() {
68
+ return this.annotations[this.annotations.length - 1];
69
+ }
70
+ static getValueTagSet(t) {
71
+ const e = [];
72
+ return t.forEach((s) => {
73
+ const h = s.key, c = s.getLastAnnotation().value.slice(0, 10);
74
+ e.find(
75
+ (o) => o.key == h && o.getLastAnnotation().value.slice(0, 10) == c
76
+ ) || e.push(s);
77
+ }), e;
78
+ }
79
+ assign(t) {
80
+ return this.key = t.key, this.annotations = t.annotations, this;
81
+ }
82
+ }
83
+ class f {
84
+ data = [];
85
+ current = {};
86
+ showed = !1;
87
+ constructor(t = [], e = {}) {
88
+ this.data = t, this.current = e;
89
+ }
90
+ delete(t) {
91
+ return this.data.splice(this.data.indexOf(t), 1), t;
92
+ }
93
+ choose(t) {
94
+ return this.current = t, t;
95
+ }
96
+ clear() {
97
+ return this.data.length = 0, this.current = {}, this;
98
+ }
99
+ show() {
100
+ return this.showed = !0, this;
101
+ }
102
+ }
103
+ export {
104
+ r as Annotation,
105
+ a as NetworkObject,
106
+ d as Page,
107
+ f as Sequence,
108
+ n as Tag
109
+ };