web-core-tcm 0.0.74 → 0.0.76

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.
@@ -76,7 +76,7 @@ export interface GetTokenRequest {
76
76
  uid?: string;
77
77
  token?: string;
78
78
  }
79
- export interface DoctorState {
79
+ export interface UserState {
80
80
  id?: string;
81
81
  name?: string;
82
82
  createdTimestamp?: number;
@@ -12,3 +12,4 @@ export * as ScientistApi from './scientist';
12
12
  export * as DeviceApi from './device/device';
13
13
  export * as CoreApi from './core';
14
14
  export * as ManagerApi from './manager';
15
+ export * as UserApi from './user';
@@ -1,6 +1,6 @@
1
1
  import * as i from "./algorithm/index.js";
2
- import * as o from "./authorization/index.js";
3
- import * as r from "./check/index.js";
2
+ import * as r from "./authorization/index.js";
3
+ import * as o from "./check/index.js";
4
4
  import * as p from "./config/index.js";
5
5
  import * as t from "./doctor/index.js";
6
6
  import * as e from "./metric/index.js";
@@ -10,21 +10,23 @@ import * as m from "./patient/index.js";
10
10
  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
- import * as f from "./core/index.js";
14
- import * as d from "./manager/index.js";
13
+ import * as d from "./core/index.js";
14
+ import * as f from "./manager/index.js";
15
+ import * as $ from "./user/index.js";
15
16
  export {
16
17
  i as AlgorithmApi,
17
- o as AuthorizationApi,
18
- r as CheckApi,
18
+ r as AuthorizationApi,
19
+ o as CheckApi,
19
20
  p as ConfigApi,
20
- f as CoreApi,
21
+ d as CoreApi,
21
22
  A as DeviceApi,
22
23
  t as DoctorApi,
23
- d as ManagerApi,
24
+ f as ManagerApi,
24
25
  e as MetricApi,
25
26
  a as OAuthApi,
26
27
  s as OutPatientApi,
27
28
  m as PatientApi,
28
29
  x as PrescriptionApi,
29
- n as ScientistApi
30
+ n as ScientistApi,
31
+ $ as UserApi
30
32
  };
@@ -1,7 +1,7 @@
1
1
  import { Herbal } from '../../herbal';
2
- import { Doctor } from '../../../doctor/doctor';
2
+ import { User } from '../../../user/user';
3
3
  export declare class AlovaHerbal extends Herbal {
4
- static query(page?: number, pageSize?: number, owner?: Doctor, name?: string, price?: number): Promise<{
4
+ static query(page?: number, pageSize?: number, owner?: User, name?: string, price?: number): Promise<{
5
5
  data: Herbal[];
6
6
  total: number;
7
7
  page: number;
@@ -1,7 +1,7 @@
1
1
  import { Prescription } from '../../prescription';
2
- import { Doctor } from '../../../doctor/doctor';
2
+ import { User } from '../../../user/user';
3
3
  export declare class AlovaPrescription extends Prescription {
4
- static query(page?: number, pageSize?: number, owner?: Doctor, name?: string): Promise<{
4
+ static query(page?: number, pageSize?: number, owner?: User, name?: string): Promise<{
5
5
  data: AlovaPrescription[];
6
6
  total: number;
7
7
  page: number;
@@ -1,7 +1,7 @@
1
1
  import { Page, NetworkObject } from '../core/core';
2
2
  import { HerbalState } from './alova/globals';
3
3
  import { IBuilder } from 'builder-pattern';
4
- import { Doctor } from '../doctor/doctor';
4
+ import { User } from '../user';
5
5
  export declare abstract class Herbal extends NetworkObject {
6
6
  static builder(): IBuilder<Herbal>;
7
7
  static default(): typeof Herbal;
@@ -9,10 +9,10 @@ export declare abstract class Herbal extends NetworkObject {
9
9
  name: string;
10
10
  price: number;
11
11
  weight: number;
12
- owner: Doctor;
12
+ owner: User;
13
13
  of(json: HerbalState): Promise<this>;
14
14
  state(): HerbalState;
15
- static query(page?: number, pageSize?: number, owner?: Doctor, name?: string, price?: number): Promise<Page<Herbal>>;
15
+ static query(page?: number, pageSize?: number, owner?: User, name?: string, price?: number): Promise<Page<Herbal>>;
16
16
  abstract put(): Promise<this>;
17
17
  abstract post(): Promise<this>;
18
18
  abstract delete(): Promise<void>;
@@ -1,6 +1,7 @@
1
1
  import { NetworkObject as u } from "../core/core.js";
2
2
  import { Builder as f } from "../../../node_modules/builder-pattern/dist/index.js";
3
- import { Doctor as t } from "../doctor/doctor.js";
3
+ import "../user/index.js";
4
+ import { User as t } from "../user/user.js";
4
5
  class e extends u {
5
6
  static builder() {
6
7
  return f(this._default);
@@ -2,7 +2,7 @@ import { Herbal } from './herbal';
2
2
  import { PrescriptionState } from './alova/globals';
3
3
  import { Page, NetworkObject } from '../core/core';
4
4
  import { IBuilder } from 'builder-pattern';
5
- import { Doctor } from '../doctor/doctor';
5
+ import { User } from '../user/user';
6
6
  export declare abstract class Prescription extends NetworkObject {
7
7
  static builder(): IBuilder<Prescription>;
8
8
  static default(): typeof Prescription;
@@ -10,7 +10,7 @@ export declare abstract class Prescription extends NetworkObject {
10
10
  createdTimestamp: string;
11
11
  updatedTimestamp: string;
12
12
  name: string;
13
- owner: Doctor;
13
+ owner: User;
14
14
  totalAmount: number;
15
15
  useAmount: number;
16
16
  craftType: string;
@@ -19,7 +19,7 @@ export declare abstract class Prescription extends NetworkObject {
19
19
  herbals: Herbal[];
20
20
  of(json: PrescriptionState): Promise<this>;
21
21
  state(): PrescriptionState;
22
- static query(page?: number, pageSize?: number, owner?: Doctor, name?: string): Promise<Page<Prescription>>;
22
+ static query(page?: number, pageSize?: number, owner?: User, name?: string): Promise<Page<Prescription>>;
23
23
  abstract put(): Promise<this>;
24
24
  abstract post(): Promise<this>;
25
25
  abstract delete(): Promise<this>;
@@ -1,7 +1,7 @@
1
1
  import { Herbal as u } from "./herbal.js";
2
2
  import { NetworkObject as s } from "../core/core.js";
3
3
  import { Builder as d } from "../../../node_modules/builder-pattern/dist/index.js";
4
- import { Doctor as i } from "../doctor/doctor.js";
4
+ import { User as i } from "../user/user.js";
5
5
  class a extends s {
6
6
  static builder() {
7
7
  return d(this._default);
@@ -1,18 +1,18 @@
1
1
  import { createAlova as r } from "../../../../node_modules/alova/dist/alova.esm.js";
2
2
  import o from "../../../../node_modules/alova/dist/adapter/fetch.esm.js";
3
- import { withConfigType as t, createApis as a, mountApis as n } from "./createApis.js";
4
- import { getServiceEndpoint as p, ServiceType as s } from "../../config/index.js";
3
+ import { withConfigType as t, createApis as s, mountApis as p } from "./createApis.js";
4
+ import { getServiceEndpoint as a, ServiceType as i } from "../../config/index.js";
5
5
  import "./implement/index.js";
6
- import { onAuthRequired as i } from "../../config/alova/index.js";
6
+ import { onAuthRequired as n } from "../../config/alova/index.js";
7
7
  const m = r({
8
- baseURL: p(s.Manager),
8
+ baseURL: a(i.User),
9
9
  // baseURL: 'http://localhost:9090/用户/服务',
10
10
  requestAdapter: o(),
11
- beforeRequest: i(() => {
11
+ beforeRequest: n(() => {
12
12
  }),
13
13
  responded: (e) => e.json()
14
- }), c = t({}), f = a(m, c);
15
- n(f);
14
+ }), c = t({}), f = s(m, c);
15
+ p(f);
16
16
  export {
17
17
  c as $$userConfigMap,
18
18
  m as alovaInstance,
@@ -1,8 +1,10 @@
1
- import { $$userConfigMap as o, alovaInstance as n, alovaInstance as r } from "./alova/index.js";
1
+ import { $$userConfigMap as e, alovaInstance as r, alovaInstance as s } from "./alova/index.js";
2
2
  import { User as t } from "./user.js";
3
+ import { AlovaUser as l } from "./alova/implement/user.js";
3
4
  export {
4
- o as $$userConfigMap,
5
+ e as $$userConfigMap,
6
+ l as AlovaUser,
5
7
  t as User,
6
- n as alovaInstance,
7
- r as userAlovaInstance
8
+ r as alovaInstance,
9
+ s as userAlovaInstance
8
10
  };
package/dist/src/index.js CHANGED
@@ -1,67 +1,69 @@
1
1
  import "./api/index.js";
2
2
  import "./proto/index.js";
3
3
  import "./components/tcm/index.js";
4
- import * as a from "./api/algorithm/index.js";
5
- import * as r from "./api/authorization/index.js";
4
+ import * as r from "./api/algorithm/index.js";
5
+ import * as a from "./api/authorization/index.js";
6
6
  import * as p from "./api/check/index.js";
7
7
  import * as i from "./api/config/index.js";
8
8
  import * as m from "./api/doctor/index.js";
9
9
  import * as s from "./api/metric/index.js";
10
10
  import * as f from "./api/oauth/index.js";
11
- import * as l from "./api/outpatient/index.js";
12
- import * as x from "./api/patient/index.js";
11
+ import * as x from "./api/outpatient/index.js";
12
+ import * as l from "./api/patient/index.js";
13
13
  import * as d from "./api/prescription/index.js";
14
14
  import * as n from "./api/scientist/index.js";
15
15
  import * as c from "./api/device/device.js";
16
16
  import * as A from "./api/core/index.js";
17
17
  import * as u from "./api/manager/index.js";
18
- import { WaveMapSchema as g, WaveSchema as h, file_WaveMap as M } from "./proto/types/WaveMap_pb.js";
19
- import { ImageSchema as v, ImagesSchema as P, file_Images as I } from "./proto/types/Images_pb.js";
20
- import { default as D } from "./components/tcm/inquirise/ComplaintsRecognitionCollected.vue.js";
21
- import { default as W } from "./components/tcm/inquirise/ComplaintViewCollected.vue.js";
22
- import { symptomsState as T } from "./components/tcm/inquirise/symptoms.js";
23
- import { default as b } from "./components/tcm/inspections/FaceMetaCollected.vue.js";
24
- import { default as y } from "./components/tcm/inspections/SceneMetaCollected.vue.js";
25
- import { default as F } from "./components/tcm/inspections/TongueMetaCollected.vue.js";
18
+ import * as C from "./api/user/index.js";
19
+ import { WaveMapSchema as h, WaveSchema as M, file_WaveMap as S } from "./proto/types/WaveMap_pb.js";
20
+ import { ImageSchema as P, ImagesSchema as I, file_Images as k } from "./proto/types/Images_pb.js";
21
+ import { default as O } from "./components/tcm/inquirise/ComplaintsRecognitionCollected.vue.js";
22
+ import { default as E } from "./components/tcm/inquirise/ComplaintViewCollected.vue.js";
23
+ import { symptomsState as _ } from "./components/tcm/inquirise/symptoms.js";
24
+ import { default as w } from "./components/tcm/inspections/FaceMetaCollected.vue.js";
25
+ import { default as z } from "./components/tcm/inspections/SceneMetaCollected.vue.js";
26
+ import { default as R } from "./components/tcm/inspections/TongueMetaCollected.vue.js";
26
27
  import { default as V } from "./components/tcm/inspections/InspectionDeviceTakeImageCollected.vue.js";
27
28
  import { default as q } from "./components/tcm/inspections/CheckSceneMetaCollected.vue.js";
28
29
  import { default as G } from "./components/tcm/inspections/AppendixMetaCollected.vue.js";
29
30
  import { default as J } from "./components/tcm/lisems/EcgAndPcgCollect.vue.js";
30
31
  import { default as L } from "./components/tcm/lisems/EPPCollected.vue.js";
31
32
  import { default as Q } from "./components/tcm/palpations/PulsationCollect.vue.js";
32
- import { default as X } from "./components/tcm/palpations/OnePulsationCollect.vue.js";
33
+ import { default as Y } from "./components/tcm/palpations/OnePulsationCollect.vue.js";
33
34
  export {
34
- a as AlgorithmApi,
35
+ r as AlgorithmApi,
35
36
  G as AppendixMetaCollected,
36
- r as AuthorizationApi,
37
+ a as AuthorizationApi,
37
38
  p as CheckApi,
38
39
  q as CheckSceneMetaCollected,
39
- W as ComplaintViewCollected,
40
- D as ComplaintsRecognitionCollected,
40
+ E as ComplaintViewCollected,
41
+ O as ComplaintsRecognitionCollected,
41
42
  i as ConfigApi,
42
43
  A as CoreApi,
43
44
  c as DeviceApi,
44
45
  m as DoctorApi,
45
46
  J as EcgAndPcgCollect,
46
47
  L as EppCollected,
47
- b as FaceMetaCollected,
48
- v as ImageSchema,
49
- P as ImagesSchema,
48
+ w as FaceMetaCollected,
49
+ P as ImageSchema,
50
+ I as ImagesSchema,
50
51
  V as InspectionDeviceTakeImageCollected,
51
52
  u as ManagerApi,
52
53
  s as MetricApi,
53
54
  f as OAuthApi,
54
- X as OnePulsationCollect,
55
- l as OutPatientApi,
56
- x as PatientApi,
55
+ Y as OnePulsationCollect,
56
+ x as OutPatientApi,
57
+ l as PatientApi,
57
58
  d as PrescriptionApi,
58
59
  Q as PulsationCollect,
59
- y as SceneMetaCollected,
60
+ z as SceneMetaCollected,
60
61
  n as ScientistApi,
61
- F as TongueMetaCollected,
62
- g as WaveMapSchema,
63
- h as WaveSchema,
64
- I as file_Images,
65
- M as file_WaveMap,
66
- T as symptomsState
62
+ R as TongueMetaCollected,
63
+ C as UserApi,
64
+ h as WaveMapSchema,
65
+ M as WaveSchema,
66
+ k as file_Images,
67
+ S as file_WaveMap,
68
+ _ as symptomsState
67
69
  };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "web-core-tcm",
3
- "version": "0.0.74",
3
+ "version": "0.0.76",
4
4
  "description": "Core",
5
5
  "productName": "Core",
6
6
  "author": "wywywywywywywywywy <qa123456_0714@qq.com>",