web-core-tcm 0.0.63 → 0.0.64

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 (71) hide show
  1. package/dist/src/api/authorization/alova/createApis.js +1 -7
  2. package/dist/src/api/authorization/alova/globals.d.ts +331 -250
  3. package/dist/src/api/authorization/alova/index.d.ts +1 -1
  4. package/dist/src/api/authorization/alova/index.js +5 -6
  5. package/dist/src/api/check/alova/createApis.js +1 -7
  6. package/dist/src/api/check/alova/globals.d.ts +1227 -1126
  7. package/dist/src/api/check/alova/index.d.ts +1 -1
  8. package/dist/src/api/check/alova/index.js +6 -7
  9. package/dist/src/api/config/index.d.ts +1 -0
  10. package/dist/src/api/config/index.js +3 -1
  11. package/dist/src/api/doctor/alova/createApis.js +1 -7
  12. package/dist/src/api/doctor/alova/globals.d.ts +510 -419
  13. package/dist/src/api/doctor/alova/index.d.ts +1 -1
  14. package/dist/src/api/doctor/alova/index.js +6 -7
  15. package/dist/src/api/index.d.ts +1 -0
  16. package/dist/src/api/index.js +2 -0
  17. package/dist/src/api/manager/alova/apiDefinitions.d.ts +62 -0
  18. package/dist/src/api/manager/alova/apiDefinitions.js +50 -0
  19. package/dist/src/api/manager/alova/createApis.d.ts +10 -0
  20. package/dist/src/api/manager/alova/createApis.js +49 -0
  21. package/dist/src/api/manager/alova/globals.d.ts +4890 -0
  22. package/dist/src/api/manager/alova/implement/department.d.ts +7 -0
  23. package/dist/src/api/manager/alova/implement/department.js +44 -0
  24. package/dist/src/api/manager/alova/implement/division.d.ts +7 -0
  25. package/dist/src/api/manager/alova/implement/division.js +44 -0
  26. package/dist/src/api/manager/alova/implement/hospital.d.ts +7 -0
  27. package/dist/src/api/manager/alova/implement/hospital.js +44 -0
  28. package/dist/src/api/manager/alova/implement/index.d.ts +3 -0
  29. package/dist/src/api/manager/alova/implement/index.js +8 -0
  30. package/dist/src/api/manager/alova/index.d.ts +6 -0
  31. package/dist/src/api/manager/alova/index.js +19 -0
  32. package/dist/src/api/manager/department.d.ts +30 -0
  33. package/dist/src/api/manager/department.js +35 -0
  34. package/dist/src/api/manager/division.d.ts +30 -0
  35. package/dist/src/api/manager/division.js +34 -0
  36. package/dist/src/api/manager/hospital.d.ts +32 -0
  37. package/dist/src/api/manager/hospital.js +36 -0
  38. package/dist/src/api/manager/index.d.ts +4 -0
  39. package/dist/src/api/manager/index.js +17 -0
  40. package/dist/src/api/oauth/alova/createApis.js +1 -7
  41. package/dist/src/api/oauth/alova/globals.d.ts +403 -312
  42. package/dist/src/api/oauth/alova/index.d.ts +1 -1
  43. package/dist/src/api/oauth/alova/index.js +0 -1
  44. package/dist/src/api/outpatient/alova/createApis.js +1 -7
  45. package/dist/src/api/outpatient/alova/globals.d.ts +634 -543
  46. package/dist/src/api/outpatient/alova/index.d.ts +1 -1
  47. package/dist/src/api/outpatient/alova/index.js +5 -6
  48. package/dist/src/api/patient/alova/createApis.js +1 -7
  49. package/dist/src/api/patient/alova/globals.d.ts +1627 -1480
  50. package/dist/src/api/patient/alova/index.d.ts +1 -1
  51. package/dist/src/api/patient/alova/index.js +5 -6
  52. package/dist/src/api/prescription/alova/apiDefinitions.d.ts +1 -0
  53. package/dist/src/api/prescription/alova/apiDefinitions.js +1 -0
  54. package/dist/src/api/prescription/alova/createApis.js +1 -7
  55. package/dist/src/api/prescription/alova/globals.d.ts +959 -812
  56. package/dist/src/api/prescription/alova/index.d.ts +1 -1
  57. package/dist/src/api/prescription/alova/index.js +4 -5
  58. package/dist/src/api/scientist/alova/createApis.js +1 -7
  59. package/dist/src/api/scientist/alova/globals.d.ts +406 -315
  60. package/dist/src/api/scientist/alova/index.d.ts +1 -1
  61. package/dist/src/api/scientist/alova/index.js +4 -5
  62. package/dist/src/index.js +42 -40
  63. package/package.json +1 -1
  64. package/dist/src/api/authorization/alova/globals.js +0 -1
  65. package/dist/src/api/check/alova/globals.js +0 -1
  66. package/dist/src/api/doctor/alova/globals.js +0 -1
  67. package/dist/src/api/oauth/alova/globals.js +0 -1
  68. package/dist/src/api/outpatient/alova/globals.js +0 -1
  69. package/dist/src/api/patient/alova/globals.js +0 -1
  70. package/dist/src/api/prescription/alova/globals.js +0 -1
  71. package/dist/src/api/scientist/alova/globals.js +0 -1
@@ -3,4 +3,4 @@ export declare const $$userConfigMap: {};
3
3
  declare const Apis: doctorApi;
4
4
  export default Apis;
5
5
  export * from './implement';
6
- export * from './globals';
6
+ export type * from './globals';
@@ -2,20 +2,19 @@ import { createAlova as e } from "../../../../node_modules/alova/dist/alova.esm.
2
2
  import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
3
3
  import { withConfigType as r, createApis as t, mountApis as p } from "./createApis.js";
4
4
  import { responded as i, onAuthRequired as a } from "../../config/alova/index.js";
5
- import { getServiceEndpoint as m, ServiceType as n } from "../../config/index.js";
5
+ import { getServiceEndpoint as n, ServiceType as s } from "../../config/index.js";
6
6
  import "./implement/index.js";
7
- import "./globals.js";
8
- const s = e({
9
- baseURL: m(n.Doctor),
7
+ const c = e({
8
+ baseURL: n(s.Doctor),
10
9
  requestAdapter: o(),
11
10
  beforeRequest: a(() => {
12
11
  }),
13
12
  cacheFor: null,
14
13
  responded: i
15
- }), c = r({}), f = t(s, c);
14
+ }), m = r({}), f = t(c, m);
16
15
  p(f);
17
16
  export {
18
- c as $$userConfigMap,
19
- s as alovaInstance,
17
+ m as $$userConfigMap,
18
+ c as alovaInstance,
20
19
  f as default
21
20
  };
@@ -11,3 +11,4 @@ export * as PrescriptionApi from './prescription';
11
11
  export * as ScientistApi from './scientist';
12
12
  export * as DeviceApi from './device/device';
13
13
  export * as CoreApi from './core';
14
+ export * as ManagerApi from './manager';
@@ -11,6 +11,7 @@ import * as x from "./prescription/index.js";
11
11
  import * as n from "./scientist/index.js";
12
12
  import * as A from "./device/device.js";
13
13
  import * as f from "./core/index.js";
14
+ import * as d from "./manager/index.js";
14
15
  export {
15
16
  i as AlgorithmApi,
16
17
  o as AuthorizationApi,
@@ -19,6 +20,7 @@ export {
19
20
  f as CoreApi,
20
21
  A as DeviceApi,
21
22
  t as DoctorApi,
23
+ d as ManagerApi,
22
24
  e as MetricApi,
23
25
  a as OAuthApi,
24
26
  s as OutPatientApi,
@@ -0,0 +1,62 @@
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
+ 'departmentStateRestful.getDepartmentState': string[];
17
+ 'departmentStateRestful.putDepartmentState': string[];
18
+ 'departmentStateRestful.deleteDepartmentState': string[];
19
+ 'divisionStateRestful.getDivisionState': string[];
20
+ 'divisionStateRestful.putDivisionState': string[];
21
+ 'divisionStateRestful.deleteDivisionState': string[];
22
+ 'hospitalStateRestful.getHospitalState': string[];
23
+ 'hospitalStateRestful.putHospitalState': string[];
24
+ 'hospitalStateRestful.deleteHospitalState': string[];
25
+ 'departmentStateRestful.getDepartmentStates': string[];
26
+ 'departmentStateRestful.postDepartmentState': string[];
27
+ 'divisionStateRestful.getDivisionStates': string[];
28
+ 'divisionStateRestful.postDivisionState': string[];
29
+ 'hospitalStateRestful.getHospitalStates': string[];
30
+ 'hospitalStateRestful.postHospitalState': string[];
31
+ 'general.deleteDepartmentState_POST': string[];
32
+ 'general.deleteDepartmentState_GET': string[];
33
+ 'general.deleteDivisionState_POST': string[];
34
+ 'general.deleteDivisionState_GET': string[];
35
+ 'general.deleteHospitalState_POST': string[];
36
+ 'general.deleteHospitalState_GET': string[];
37
+ 'general.getDepartmentState_POST': string[];
38
+ 'general.getDepartmentState_GET': string[];
39
+ 'general.getDivisionState_POST': string[];
40
+ 'general.getDivisionState_GET': string[];
41
+ 'general.getHospitalState_POST': string[];
42
+ 'general.getHospitalState_GET': string[];
43
+ 'general.postDepartmentState_POST': string[];
44
+ 'general.postDepartmentState_GET': string[];
45
+ 'general.postDivisionState_POST': string[];
46
+ 'general.postDivisionState_GET': string[];
47
+ 'general.postHospitalState_POST': string[];
48
+ 'general.postHospitalState_GET': string[];
49
+ 'general.putDepartmentState_POST': string[];
50
+ 'general.putDepartmentState_GET': string[];
51
+ 'general.putDivisionState_POST': string[];
52
+ 'general.putDivisionState_GET': string[];
53
+ 'general.putHospitalState_POST': string[];
54
+ 'general.putHospitalState_GET': string[];
55
+ 'general.queryDepartmentState_POST': string[];
56
+ 'general.queryDepartmentState_GET': string[];
57
+ 'general.queryDivisionState_POST': string[];
58
+ 'general.queryDivisionState_GET': string[];
59
+ 'general.queryHospitalState_POST': string[];
60
+ 'general.queryHospitalState_GET': string[];
61
+ };
62
+ export default _default;
@@ -0,0 +1,50 @@
1
+ const t = {
2
+ "departmentStateRestful.getDepartmentState": ["GET", "/管理/服务/部门/{id}"],
3
+ "departmentStateRestful.putDepartmentState": ["PUT", "/管理/服务/部门/{id}"],
4
+ "departmentStateRestful.deleteDepartmentState": ["DELETE", "/管理/服务/部门/{id}"],
5
+ "divisionStateRestful.getDivisionState": ["GET", "/管理/服务/科室/{id}"],
6
+ "divisionStateRestful.putDivisionState": ["PUT", "/管理/服务/科室/{id}"],
7
+ "divisionStateRestful.deleteDivisionState": ["DELETE", "/管理/服务/科室/{id}"],
8
+ "hospitalStateRestful.getHospitalState": ["GET", "/管理/服务/医院/{id}"],
9
+ "hospitalStateRestful.putHospitalState": ["PUT", "/管理/服务/医院/{id}"],
10
+ "hospitalStateRestful.deleteHospitalState": ["DELETE", "/管理/服务/医院/{id}"],
11
+ "departmentStateRestful.getDepartmentStates": ["GET", "/管理/服务/部门"],
12
+ "departmentStateRestful.postDepartmentState": ["POST", "/管理/服务/部门"],
13
+ "divisionStateRestful.getDivisionStates": ["GET", "/管理/服务/科室"],
14
+ "divisionStateRestful.postDivisionState": ["POST", "/管理/服务/科室"],
15
+ "hospitalStateRestful.getHospitalStates": ["GET", "/管理/服务/医院"],
16
+ "hospitalStateRestful.postHospitalState": ["POST", "/管理/服务/医院"],
17
+ "general.deleteDepartmentState_POST": ["POST", "/deleteDepartmentState"],
18
+ "general.deleteDepartmentState_GET": ["GET", "/deleteDepartmentState/{deleteDepartmentState}"],
19
+ "general.deleteDivisionState_POST": ["POST", "/deleteDivisionState"],
20
+ "general.deleteDivisionState_GET": ["GET", "/deleteDivisionState/{deleteDivisionState}"],
21
+ "general.deleteHospitalState_POST": ["POST", "/deleteHospitalState"],
22
+ "general.deleteHospitalState_GET": ["GET", "/deleteHospitalState/{deleteHospitalState}"],
23
+ "general.getDepartmentState_POST": ["POST", "/getDepartmentState"],
24
+ "general.getDepartmentState_GET": ["GET", "/getDepartmentState/{getDepartmentState}"],
25
+ "general.getDivisionState_POST": ["POST", "/getDivisionState"],
26
+ "general.getDivisionState_GET": ["GET", "/getDivisionState/{getDivisionState}"],
27
+ "general.getHospitalState_POST": ["POST", "/getHospitalState"],
28
+ "general.getHospitalState_GET": ["GET", "/getHospitalState/{getHospitalState}"],
29
+ "general.postDepartmentState_POST": ["POST", "/postDepartmentState"],
30
+ "general.postDepartmentState_GET": ["GET", "/postDepartmentState/{postDepartmentState}"],
31
+ "general.postDivisionState_POST": ["POST", "/postDivisionState"],
32
+ "general.postDivisionState_GET": ["GET", "/postDivisionState/{postDivisionState}"],
33
+ "general.postHospitalState_POST": ["POST", "/postHospitalState"],
34
+ "general.postHospitalState_GET": ["GET", "/postHospitalState/{postHospitalState}"],
35
+ "general.putDepartmentState_POST": ["POST", "/putDepartmentState"],
36
+ "general.putDepartmentState_GET": ["GET", "/putDepartmentState/{putDepartmentState}"],
37
+ "general.putDivisionState_POST": ["POST", "/putDivisionState"],
38
+ "general.putDivisionState_GET": ["GET", "/putDivisionState/{putDivisionState}"],
39
+ "general.putHospitalState_POST": ["POST", "/putHospitalState"],
40
+ "general.putHospitalState_GET": ["GET", "/putHospitalState/{putHospitalState}"],
41
+ "general.queryDepartmentState_POST": ["POST", "/queryDepartmentState"],
42
+ "general.queryDepartmentState_GET": ["GET", "/queryDepartmentState/{queryDepartmentState}"],
43
+ "general.queryDivisionState_POST": ["POST", "/queryDivisionState"],
44
+ "general.queryDivisionState_GET": ["GET", "/queryDivisionState/{queryDivisionState}"],
45
+ "general.queryHospitalState_POST": ["POST", "/queryHospitalState"],
46
+ "general.queryHospitalState_GET": ["GET", "/queryHospitalState/{queryHospitalState}"]
47
+ };
48
+ export {
49
+ t as default
50
+ };
@@ -0,0 +1,10 @@
1
+ import { Alova, AlovaGenerics, AlovaMethodCreateConfig } from 'alova';
2
+ export declare const createApis: (alovaInstance: Alova<AlovaGenerics>, configMap: any) => managerApi;
3
+ export declare const mountApis: (Apis: managerApi) => 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 managerApi ? Url extends keyof managerApi[Tag] ? managerApi[Tag][Url] extends (...args: any) => any ? Parameters<managerApi[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,49 @@
1
+ import { Method as A } from "../../../../node_modules/alova/dist/alova.esm.js";
2
+ import _ from "./apiDefinitions.js";
3
+ const l = /* @__PURE__ */ Object.create(null), d = (e, a, p) => {
4
+ const o = e.join(".");
5
+ if (l[o])
6
+ return l[o];
7
+ const s = new Proxy(function() {
8
+ }, {
9
+ get(y, m) {
10
+ const f = [...e, m];
11
+ return d(f, a, p);
12
+ },
13
+ apply(y, m, [f]) {
14
+ const u = _[o];
15
+ if (!u)
16
+ throw new Error(`the api path of \`${o}\` is not found`);
17
+ const i = {
18
+ ...p[o],
19
+ ...f
20
+ }, [P, b] = u, g = i.pathParams, w = b.replace(/\{([^}]+)\}/g, (c, n) => g[n]);
21
+ delete i.pathParams;
22
+ let t = i.data;
23
+ if (Object.prototype.toString.call(t) === "[object Object]" && typeof FormData < "u") {
24
+ let c = !1;
25
+ const n = new FormData();
26
+ for (const r in t)
27
+ if (Array.isArray(t[r]))
28
+ for (const h of t[r])
29
+ n.append(r, h), h instanceof Blob && (c = !0);
30
+ else
31
+ n.append(r, t[r]), t[r] instanceof Blob && (c = !0);
32
+ t = c ? n : t;
33
+ }
34
+ return new A(P.toUpperCase(), a, w, i, t);
35
+ }
36
+ });
37
+ return l[o] = s, s;
38
+ }, D = (e, a) => new Proxy({}, {
39
+ get(o, s) {
40
+ return d([s], e, a);
41
+ }
42
+ }), B = (e) => {
43
+ globalThis.managerApi = e;
44
+ }, C = (e) => e;
45
+ export {
46
+ D as createApis,
47
+ B as mountApis,
48
+ C as withConfigType
49
+ };