web-core-tcm 0.0.84 → 0.0.85
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.
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Herbal } from '../../herbal';
|
|
2
2
|
import { Hospital } from '../../../manager';
|
|
3
3
|
export declare class AlovaHerbal extends Herbal {
|
|
4
|
-
static query(page?: number, pageSize?: number, owner?: Hospital, name?: string
|
|
4
|
+
static query(page?: number, pageSize?: number, owner?: Hospital, name?: string): Promise<{
|
|
5
5
|
data: Herbal[];
|
|
6
6
|
total: number;
|
|
7
7
|
page: number;
|
|
@@ -1,12 +1,11 @@
|
|
|
1
|
-
import { Herbal as
|
|
2
|
-
class r extends
|
|
3
|
-
static query(i = 0, n = 9999999,
|
|
4
|
-
const s =
|
|
1
|
+
import { Herbal as o } from "../../herbal.js";
|
|
2
|
+
class r extends o {
|
|
3
|
+
static query(i = 0, n = 9999999, e, a) {
|
|
4
|
+
const s = e?.id ? e.state() : void 0;
|
|
5
5
|
return prescriptionApi.herbalRestful.queryHerbalState({
|
|
6
6
|
data: {
|
|
7
7
|
...s && { ownerState: s },
|
|
8
|
-
...
|
|
9
|
-
...a !== void 0 && { price: a },
|
|
8
|
+
...a && { name: a },
|
|
10
9
|
page: i,
|
|
11
10
|
pageSize: n
|
|
12
11
|
},
|
|
@@ -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 {
|
|
4
|
+
import { Hospital } from '../manager';
|
|
5
5
|
export declare abstract class Herbal extends NetworkObject {
|
|
6
6
|
static builder(): IBuilder<Herbal>;
|
|
7
7
|
static default(): typeof Herbal;
|
|
@@ -12,7 +12,7 @@ export declare abstract class Herbal extends NetworkObject {
|
|
|
12
12
|
owner: Hospital;
|
|
13
13
|
of(json: HerbalState): Promise<this>;
|
|
14
14
|
state(): HerbalState;
|
|
15
|
-
static query(page?: number, pageSize?: number, owner?:
|
|
15
|
+
static query(page?: number, pageSize?: number, owner?: Hospital, name?: string): Promise<Page<Herbal>>;
|
|
16
16
|
abstract put(): Promise<this>;
|
|
17
17
|
abstract post(): Promise<this>;
|
|
18
18
|
abstract delete(): Promise<void>;
|
|
@@ -1,10 +1,10 @@
|
|
|
1
|
-
import { NetworkObject as
|
|
2
|
-
import { Builder as
|
|
1
|
+
import { NetworkObject as h } from "../core/core.js";
|
|
2
|
+
import { Builder as u } from "../../../node_modules/builder-pattern/dist/index.js";
|
|
3
3
|
import "../manager/index.js";
|
|
4
4
|
import { Hospital as t } from "../manager/hospital.js";
|
|
5
|
-
class e extends
|
|
5
|
+
class e extends h {
|
|
6
6
|
static builder() {
|
|
7
|
-
return
|
|
7
|
+
return u(this._default);
|
|
8
8
|
}
|
|
9
9
|
static default() {
|
|
10
10
|
return this._default;
|
|
@@ -26,8 +26,8 @@ class e extends u {
|
|
|
26
26
|
ownerState: this.owner.state()
|
|
27
27
|
};
|
|
28
28
|
}
|
|
29
|
-
static query(i = 0, r = 9999999, a, d
|
|
30
|
-
return e.default().query(i, r, a, d
|
|
29
|
+
static query(i = 0, r = 9999999, a, d) {
|
|
30
|
+
return e.default().query(i, r, a, d);
|
|
31
31
|
}
|
|
32
32
|
}
|
|
33
33
|
export {
|