web-core-tcm 0.0.25 → 0.0.27

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 +5 -2
  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,454 @@
1
+ import { NetworkObject as B, Tag as E, Sequence as C } from "./core.js";
2
+ import { arrayBufferToImageBase64 as w } from "../../util/image.js";
3
+ import { WaveMapSchema as h, WaveSchema as q } from "../../proto/types/WaveMap_pb.js";
4
+ import { ImageSchema as g, ImagesSchema as P } from "../../proto/types/Images_pb.js";
5
+ import { Patient as S } from "./patient.js";
6
+ import { Builder as c } from "../../../node_modules/builder-pattern/dist/index.js";
7
+ import { toBinary as m } from "../../../node_modules/@bufbuild/protobuf/dist/esm/to-binary.js";
8
+ import { fromBinary as T } from "../../../node_modules/@bufbuild/protobuf/dist/esm/from-binary.js";
9
+ import { create as l } from "../../../node_modules/@bufbuild/protobuf/dist/esm/create.js";
10
+ var y = /* @__PURE__ */ ((a) => (a.Pulsation = "pulsation", a.Tongue = "tongue", a.Appendix = "appendix", a.PPG = "ppg", a.PCG = "pcg", a.ECG = "ecg", a.Scene = "scene", a.Face = "face", a.Complaint = "complaint", a.Meta = "meta", a))(y || {});
11
+ class p extends B {
12
+ static builder() {
13
+ return c(this._default);
14
+ }
15
+ static default() {
16
+ return this._default;
17
+ }
18
+ id = "";
19
+ owner = S.builder().build();
20
+ type = "face";
21
+ tags = [];
22
+ createdTimestamp = "0";
23
+ updatedTimestamp = "0";
24
+ isSelected = !1;
25
+ async of(t) {
26
+ return t.id != null && (this.id = t.id), t.ownerState != null && (this.owner = await S.builder().build().of(t.ownerState)), t.tagsState != null && (this.tags = await Promise.all(t.tagsState.map((e) => E.builder().build().of(e)))), t.createdTimestamp != null && (this.createdTimestamp = t.createdTimestamp), t.updatedTimestamp != null && (this.updatedTimestamp = t.updatedTimestamp), t.type != null && (this.type = t.type), Promise.resolve(this);
27
+ }
28
+ state() {
29
+ return {
30
+ id: this.id,
31
+ ownerState: this.owner.state(),
32
+ type: this.type,
33
+ tagsState: this.tags.map((t) => t.state()),
34
+ createdTimestamp: this.createdTimestamp,
35
+ updatedTimestamp: this.updatedTimestamp
36
+ };
37
+ }
38
+ getTagValue(t) {
39
+ const e = this.tags.find((s) => s.key == t)?.getLastAnnotation();
40
+ return e ? e.value : "";
41
+ }
42
+ putTags() {
43
+ return patientApi.metaStateRestful.putMetaState({
44
+ pathParams: {
45
+ id: this.id
46
+ },
47
+ data: {
48
+ id: this.id,
49
+ tagsState: this.tags.map((t) => t.state())
50
+ }
51
+ });
52
+ }
53
+ addTag(t) {
54
+ return this.tags.push(t), this.putTags();
55
+ }
56
+ removeTag(t) {
57
+ return this.tags.splice(this.tags.indexOf(t), 1), this.putTags();
58
+ }
59
+ static queryMetaWithPatient(t, e, s, i, r, n, o, d, x, v, _, M, f) {
60
+ return this.default().queryMetaWithPatient(
61
+ t,
62
+ e,
63
+ s,
64
+ i,
65
+ r,
66
+ n,
67
+ o,
68
+ d,
69
+ x,
70
+ v,
71
+ _,
72
+ M,
73
+ f
74
+ );
75
+ }
76
+ static query(t, e, s, i, r, n, o = "createdTimestamp:asc") {
77
+ return this.default().query(t, e, s, i, r, n, o);
78
+ }
79
+ static queryMetaStateByExactMatch(t, e, s, i, r, n, o, d) {
80
+ return this.default().queryMetaStateByExactMatch(
81
+ t,
82
+ e,
83
+ s,
84
+ i,
85
+ r,
86
+ n,
87
+ o,
88
+ d
89
+ );
90
+ }
91
+ }
92
+ class A extends p {
93
+ image;
94
+ base64Image = "";
95
+ // 测试序列化往返
96
+ serialize() {
97
+ if (!this.image) throw new Error("not found");
98
+ return m(g, this.image).buffer;
99
+ }
100
+ deserialize(t) {
101
+ return this.image = T(g, new Uint8Array(t)), this.base64Image = w(this.image.bytes), this.base64Image;
102
+ }
103
+ inject(t) {
104
+ return t && (this.image = l(g, {
105
+ bytes: new Uint8Array(t)
106
+ }), this.base64Image = w(new Uint8Array(t))), Promise.resolve(this);
107
+ }
108
+ }
109
+ class z extends p {
110
+ images;
111
+ base64Images = [];
112
+ serialize() {
113
+ if (!this.images) throw new Error("not found");
114
+ return m(P, this.images).buffer;
115
+ }
116
+ deserialize(t) {
117
+ return this.images = T(P, new Uint8Array(t)), this.base64Images = this.images.images.map((e) => w(e.bytes)), this.base64Images;
118
+ }
119
+ inject(t) {
120
+ return t && (this.images = l(P, {
121
+ images: t.map((e) => l(g, {
122
+ bytes: new Uint8Array(e)
123
+ }))
124
+ }), this.base64Images = t.map((e) => w(new Uint8Array(e)))), Promise.resolve(this);
125
+ }
126
+ }
127
+ class F extends p {
128
+ text = "";
129
+ constructor() {
130
+ super();
131
+ }
132
+ serialize() {
133
+ return new TextEncoder().encode(this.text).buffer;
134
+ }
135
+ deserialize(t) {
136
+ return this.text = new TextDecoder().decode(t), this.text;
137
+ }
138
+ inject(t) {
139
+ return t && (this.text = t), Promise.resolve(this);
140
+ }
141
+ }
142
+ class b extends p {
143
+ waves;
144
+ serialize() {
145
+ if (console.log("serialize", this.waves), this.waves && (console.log("seruia"), console.log(m(h, this.waves), m(h, this.waves).buffer), console.log("sss")), !this.waves) throw new Error("not found");
146
+ return m(h, this.waves).buffer;
147
+ }
148
+ deserialize(t) {
149
+ return this.waves = T(h, new Uint8Array(t)), this.waves;
150
+ }
151
+ async inject(t, e) {
152
+ return !e && t && (e = await this.preprocess(t)), console.log(t, e), t && e && (console.log(this.waves), this.waves = l(h, {
153
+ origin: Object.fromEntries(
154
+ Object.entries(t).map(([s, i]) => [
155
+ s,
156
+ l(q, {
157
+ values: i
158
+ })
159
+ ])
160
+ ),
161
+ smooth: Object.fromEntries(
162
+ Object.entries(e).map(([s, i]) => [
163
+ s,
164
+ l(q, {
165
+ values: i
166
+ })
167
+ ])
168
+ )
169
+ }), console.log(this.waves)), Promise.resolve(this);
170
+ }
171
+ }
172
+ class O extends A {
173
+ static builder() {
174
+ return c(this._default);
175
+ }
176
+ static default() {
177
+ return this._default;
178
+ }
179
+ constructor() {
180
+ super(), this.type = "tongue";
181
+ }
182
+ }
183
+ class U extends A {
184
+ static builder() {
185
+ return c(this._default);
186
+ }
187
+ static default() {
188
+ return this._default;
189
+ }
190
+ constructor() {
191
+ super(), this.type = "face";
192
+ }
193
+ }
194
+ class W extends A {
195
+ static builder() {
196
+ return c(this._default);
197
+ }
198
+ static default() {
199
+ return this._default;
200
+ }
201
+ constructor() {
202
+ super(), this.type = "scene";
203
+ }
204
+ }
205
+ class G extends b {
206
+ static builder() {
207
+ return c(this._default);
208
+ }
209
+ static default() {
210
+ return this._default;
211
+ }
212
+ constructor() {
213
+ super(), this.type = "pulsation";
214
+ }
215
+ }
216
+ class D extends b {
217
+ static builder() {
218
+ return c(this._default);
219
+ }
220
+ static default() {
221
+ return this._default;
222
+ }
223
+ constructor() {
224
+ super(), this.type = "ppg";
225
+ }
226
+ }
227
+ class k extends b {
228
+ static builder() {
229
+ return c(this._default);
230
+ }
231
+ static default() {
232
+ return this._default;
233
+ }
234
+ constructor() {
235
+ super(), this.type = "pcg";
236
+ }
237
+ }
238
+ class j extends b {
239
+ static builder() {
240
+ return c(this._default);
241
+ }
242
+ static default() {
243
+ return this._default;
244
+ }
245
+ constructor() {
246
+ super(), this.type = "ecg";
247
+ }
248
+ }
249
+ class L extends z {
250
+ static builder() {
251
+ return c(this._default);
252
+ }
253
+ static default() {
254
+ return this._default;
255
+ }
256
+ constructor() {
257
+ super(), this.type = "appendix";
258
+ }
259
+ }
260
+ class N extends F {
261
+ static builder() {
262
+ return c(this._default);
263
+ }
264
+ static default() {
265
+ return this._default;
266
+ }
267
+ constructor() {
268
+ super(), this.type = "complaint";
269
+ }
270
+ }
271
+ class u extends C {
272
+ type;
273
+ owner;
274
+ expand = !1;
275
+ constructor(t, e) {
276
+ super(), this.type = t, e && (this.owner = e);
277
+ }
278
+ init(t) {
279
+ this.clear(), this.owner = S.builder().id(t.id).build();
280
+ }
281
+ async query(t, e, s, i, r) {
282
+ return this.clear(), this.append(t, e, s, i, r);
283
+ }
284
+ async append(t, e, s, i, r) {
285
+ const n = await p.query(
286
+ t,
287
+ e,
288
+ this.owner,
289
+ this.type,
290
+ s,
291
+ i,
292
+ r
293
+ );
294
+ return this.data.unshift(...n.data.reverse()), n;
295
+ }
296
+ async appendMetaWithPatient(t, e, s, i, r, n, o, d, x, v, _, M) {
297
+ const f = await p.queryMetaWithPatient(
298
+ t,
299
+ e,
300
+ this.owner,
301
+ s,
302
+ i,
303
+ r,
304
+ n,
305
+ o,
306
+ d,
307
+ x,
308
+ v,
309
+ _,
310
+ M
311
+ );
312
+ return this.data.unshift(...f.data.reverse()), f;
313
+ }
314
+ }
315
+ const R = {
316
+ face: { type: U, name: "面象", icon: "face", color: "#FF6B6B" },
317
+ tongue: { type: O, name: "舌象", icon: "face", color: "#4ECDC4" },
318
+ complaint: { type: N, name: "主诉", icon: "message", color: "#FFD166" },
319
+ pulsation: { type: G, name: "脉象", icon: "ssid_chart", color: "#06D6A0" },
320
+ ecg: { type: j, name: "心电", icon: "ssid_chart", color: "#118AB2" },
321
+ pcg: { type: k, name: "心音", icon: "ssid_chart", color: "#073B4C" },
322
+ ppg: { type: D, name: "心光", icon: "ssid_chart", color: "#7209B7" },
323
+ scene: { type: W, name: "场景", icon: "house", color: "#F72585" },
324
+ appendix: { type: L, name: "附件", icon: "folder_open", color: "#3A86FF" },
325
+ meta: { type: p, name: "元", icon: "tag", color: "#8338EC" }
326
+ };
327
+ class I {
328
+ static _default;
329
+ static builder() {
330
+ return c(this._default);
331
+ }
332
+ static default() {
333
+ return this._default;
334
+ }
335
+ face = new u(
336
+ "face"
337
+ /* Face */
338
+ );
339
+ tongue = new u(
340
+ "tongue"
341
+ /* Tongue */
342
+ );
343
+ complaint = new u(
344
+ "complaint"
345
+ /* Complaint */
346
+ );
347
+ pulsation = new u(
348
+ "pulsation"
349
+ /* Pulsation */
350
+ );
351
+ ecg = new u(
352
+ "ecg"
353
+ /* ECG */
354
+ );
355
+ pcg = new u(
356
+ "pcg"
357
+ /* PCG */
358
+ );
359
+ ppg = new u(
360
+ "ppg"
361
+ /* PPG */
362
+ );
363
+ scene = new u(
364
+ "scene"
365
+ /* Scene */
366
+ );
367
+ appendix = new u(
368
+ "appendix"
369
+ /* Appendix */
370
+ );
371
+ meta = new u(
372
+ "meta"
373
+ /* Meta */
374
+ );
375
+ faces = this.face;
376
+ tongues = this.tongue;
377
+ complaints = this.complaint;
378
+ pulsations = this.pulsation;
379
+ ecgs = this.ecg;
380
+ pcgs = this.pcg;
381
+ ppgs = this.ppg;
382
+ scenes = this.scene;
383
+ appendixes = this.appendix;
384
+ metas = this.meta;
385
+ constructor(t) {
386
+ t && this.addMetas(t);
387
+ }
388
+ init(t) {
389
+ for (const e of Object.values(y))
390
+ this[e].init(t);
391
+ return this;
392
+ }
393
+ async query(t, e, s, i, r) {
394
+ for (const n of Object.values(y)) {
395
+ const o = await this[n].query(t, e, s, i, r);
396
+ for (const d of o.data)
397
+ this[n].data.push(d);
398
+ }
399
+ return this;
400
+ }
401
+ addMetas(t) {
402
+ for (const e of t)
403
+ this.addMeta(e);
404
+ return this;
405
+ }
406
+ addMeta(t) {
407
+ const e = this[t.type].data.find((s) => s.id == t.id);
408
+ return e ? e.of(t) : this[t.type].data.unshift(t), this;
409
+ }
410
+ clear() {
411
+ for (const t of Object.values(y))
412
+ this[t].clear();
413
+ }
414
+ static map(t) {
415
+ return I.default().map(t);
416
+ }
417
+ static mapText(t) {
418
+ return R[t].name;
419
+ }
420
+ static standards() {
421
+ return [
422
+ "face",
423
+ "tongue",
424
+ "complaint",
425
+ "pulsation",
426
+ "ecg",
427
+ "pcg",
428
+ "ppg",
429
+ "scene",
430
+ "appendix"
431
+ /* Appendix */
432
+ ];
433
+ }
434
+ }
435
+ export {
436
+ L as AppendixMeta,
437
+ N as ComplaintMeta,
438
+ j as ECGMeta,
439
+ U as FaceMeta,
440
+ A as ImageMeta,
441
+ z as ImagesMeta,
442
+ p as Meta,
443
+ u as MetaSequence,
444
+ y as MetaType,
445
+ R as MetaTypeConfig,
446
+ I as Metas,
447
+ k as PCGMeta,
448
+ D as PPGMeta,
449
+ G as PulsationMeta,
450
+ W as SceneMeta,
451
+ F as TextMeta,
452
+ O as TongueMeta,
453
+ b as WavesMeta
454
+ };
@@ -0,0 +1,43 @@
1
+ import { Page, Tag, NetworkObject } from './core';
2
+ import { PatientState } from './alova/globals';
3
+ import { Metas } from './meta';
4
+ import { IBuilder } from 'builder-pattern';
5
+ export declare abstract class Patient extends NetworkObject {
6
+ static builder(): IBuilder<Patient>;
7
+ static default(): typeof Patient;
8
+ id: string;
9
+ name: string;
10
+ gender: string;
11
+ phoneNumber: string;
12
+ birthdate: string;
13
+ identity: string;
14
+ age: number;
15
+ tags: Tag[];
16
+ remarks: string[];
17
+ doctorId: string;
18
+ createdTimestamp: string;
19
+ updatedTimestamp: string;
20
+ mainSymptom: string;
21
+ metas: Metas;
22
+ init(id?: string, metas?: Metas): void;
23
+ of(json: PatientState): Promise<this>;
24
+ state(): PatientState;
25
+ abstract get(): Promise<this>;
26
+ abstract put(): Promise<this>;
27
+ abstract post(): Promise<this>;
28
+ abstract delete(): Promise<this>;
29
+ abstract putRemarks(): Promise<this>;
30
+ static query(params: {
31
+ id?: string;
32
+ doctorId?: string;
33
+ name?: string;
34
+ gender?: string;
35
+ identity?: string;
36
+ pageSize: number;
37
+ page: number;
38
+ phoneNumber?: string;
39
+ startTime?: string;
40
+ endTime?: string;
41
+ sort?: string;
42
+ }): Promise<Page<Patient>>;
43
+ }
@@ -0,0 +1,42 @@
1
+ import { NetworkObject as e, Tag as a } from "./core.js";
2
+ import { Metas as d } from "./meta.js";
3
+ import { Builder as m } from "../../../node_modules/builder-pattern/dist/index.js";
4
+ import { getName as r } from "../../util/string.js";
5
+ class o extends e {
6
+ static builder() {
7
+ return m(this._default);
8
+ }
9
+ static default() {
10
+ return this._default;
11
+ }
12
+ id = "";
13
+ name = "";
14
+ gender = "";
15
+ phoneNumber = "";
16
+ birthdate = "";
17
+ identity = "";
18
+ age = 0;
19
+ tags = [];
20
+ remarks = [];
21
+ doctorId = "";
22
+ createdTimestamp = "";
23
+ updatedTimestamp = "";
24
+ mainSymptom = "";
25
+ metas = d.builder().build();
26
+ init(t, i) {
27
+ t && (this.id = t), i && (this.metas = i), this.metas.init(this);
28
+ }
29
+ async of(t) {
30
+ return t.id != null && (this.id = t.id), t.name != null && (this.name = r(t.name)), t.gender != null && (this.gender = t.gender), t.phoneNumber != null && (this.phoneNumber = t.phoneNumber), t.birthdate != null && (this.birthdate = t.birthdate, this.age = (/* @__PURE__ */ new Date()).getFullYear() - new Date(t.birthdate).getFullYear()), t.identity != null && (this.identity = t.identity), t.tagsState != null && (this.tags = await Promise.all(t.tagsState.map((i) => a.builder().build().of(i)))), t.remarks != null && (this.remarks = t.remarks), t.doctorId != null && (this.doctorId = t.doctorId), t.createdTimestamp != null && (this.createdTimestamp = t.createdTimestamp), t.updatedTimestamp != null && (this.updatedTimestamp = t.updatedTimestamp), t.mainSymptom != null && (this.mainSymptom = t.mainSymptom), this.metas = this.metas.init(this), this;
31
+ }
32
+ state() {
33
+ const t = {};
34
+ return this.id && (t.id = this.id), this.name && (t.name = this.name), this.gender && (t.gender = this.gender), this.phoneNumber && (t.phoneNumber = this.phoneNumber), this.birthdate && (t.birthdate = this.birthdate), this.identity && (t.identity = this.identity), this.tags.length > 0 && (t.tagsState = this.tags.map((i) => i.state())), this.doctorId && (t.doctorId = this.doctorId), this.createdTimestamp && (t.createdTimestamp = this.createdTimestamp), this.updatedTimestamp && (t.updatedTimestamp = this.updatedTimestamp), this.mainSymptom && (t.mainSymptom = this.mainSymptom), this.remarks.length > 0 && (t.remarks = this.remarks), t;
35
+ }
36
+ static query(t) {
37
+ return this.default().query(t);
38
+ }
39
+ }
40
+ export {
41
+ o as Patient
42
+ };
@@ -0,0 +1,27 @@
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
+ 'prescriptionRestful.getPrescriptionState': string[];
17
+ 'prescriptionRestful.putPrescriptionState': string[];
18
+ 'prescriptionRestful.deletePrescriptionState': string[];
19
+ 'herbalRestful.getHerbalState': string[];
20
+ 'herbalRestful.putHerbalState': string[];
21
+ 'herbalRestful.deleteHerbalState': string[];
22
+ 'herbalRestful.postHerbalState': string[];
23
+ 'prescriptionRestful.postPrescriptionState': string[];
24
+ 'prescriptionRestful.queryPrescriptionState': string[];
25
+ 'herbalRestful.queryHerbalState': string[];
26
+ };
27
+ export default _default;
@@ -0,0 +1,15 @@
1
+ const e = {
2
+ "prescriptionRestful.getPrescriptionState": ["GET", "/药材/服务/药方/{id}"],
3
+ "prescriptionRestful.putPrescriptionState": ["PUT", "/药材/服务/药方/{id}"],
4
+ "prescriptionRestful.deletePrescriptionState": ["DELETE", "/药材/服务/药方/{id}"],
5
+ "herbalRestful.getHerbalState": ["GET", "/药材/服务/{id}"],
6
+ "herbalRestful.putHerbalState": ["PUT", "/药材/服务/{id}"],
7
+ "herbalRestful.deleteHerbalState": ["DELETE", "/药材/服务/{id}"],
8
+ "herbalRestful.postHerbalState": ["POST", "/药材/服务"],
9
+ "prescriptionRestful.postPrescriptionState": ["POST", "/药材/服务/药方"],
10
+ "prescriptionRestful.queryPrescriptionState": ["POST", "/药材/服务/药方/条件查询"],
11
+ "herbalRestful.queryHerbalState": ["POST", "/药材/服务/条件查询"]
12
+ };
13
+ export {
14
+ e as default
15
+ };
@@ -0,0 +1,10 @@
1
+ import { Alova, AlovaGenerics, AlovaMethodCreateConfig } from 'alova';
2
+ export declare const createApis: (alovaInstance: Alova<AlovaGenerics>, configMap: any) => prescriptionApi;
3
+ export declare const mountApis: (Apis: prescriptionApi) => 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 prescriptionApi ? Url extends keyof prescriptionApi[Tag] ? prescriptionApi[Tag][Url] extends (...args: any) => any ? Parameters<prescriptionApi[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, r, i) => {
4
+ const e = t.join(".");
5
+ if (l[e])
6
+ return l[e];
7
+ const n = new Proxy(function() {
8
+ }, {
9
+ get(d, m) {
10
+ const s = [...t, m];
11
+ return h(s, r, 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
+ r,
33
+ b,
34
+ a,
35
+ o
36
+ );
37
+ }
38
+ });
39
+ return l[e] = n, n;
40
+ }, x = (t, r) => new Proxy({}, {
41
+ get(e, n) {
42
+ return h([n], t, r);
43
+ }
44
+ }), D = (t) => {
45
+ globalThis.prescriptionApi = t;
46
+ }, C = (t) => t;
47
+ export {
48
+ x as createApis,
49
+ D as mountApis,
50
+ C as withConfigType
51
+ };
@@ -0,0 +1,15 @@
1
+ import { Herbal } from '../../herbal';
2
+ import { Doctor } from '../../../doctor/doctor';
3
+ export declare class AlovaHerbal extends Herbal {
4
+ static query(page?: number, pageSize?: number, owner?: Doctor, name?: string, price?: number): Promise<{
5
+ data: Herbal[];
6
+ total: number;
7
+ page: number;
8
+ pageSize: number;
9
+ pageCount: number;
10
+ isLastPage: boolean;
11
+ }>;
12
+ put(): Promise<this>;
13
+ post(): Promise<this>;
14
+ delete(): Promise<void>;
15
+ }