@ningboyz/types 1.6.171 → 1.6.173

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.
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
3
  "type": "module",
4
- "version": "1.6.171",
4
+ "version": "1.6.173",
5
5
  "private": false,
6
6
  "description": "宁波甬政类型库",
7
7
  "author": "nbyt-syq",
@@ -4,6 +4,7 @@ import { TFlowDataResponse } from "../flow";
4
4
  import { IYzhtMainResponse } from "../yzht";
5
5
  import { IHzcbMainResponse } from "./IHzcbMainResponse";
6
6
  import { IHzcbXmtzBillResponse } from "./IHzcbXmtzBillResponse";
7
+ import _ from "lodash";
7
8
 
8
9
  export interface IHzcbXmtzResponse {
9
10
  whoBuild: number;
@@ -182,6 +183,12 @@ export class THzcbXmtzResponse implements IHzcbXmtzResponse {
182
183
  listYZHT: IYzhtMainResponse[] = [];
183
184
  listPath: IPathResponse[] = [];
184
185
 
186
+ constructor(xmtz: any = {}) {
187
+ if (xmtz) {
188
+ _.merge(this, _.pick(xmtz, Object.keys(this)));
189
+ }
190
+ }
191
+
185
192
  static toFlowDatas(xmtzs: THzcbXmtzResponse[]): TFlowDataResponse[] {
186
193
  return xmtzs.map((u) => this.toFlowData(u));
187
194
  }
package/src/hzcb/index.ts CHANGED
@@ -12,6 +12,7 @@ import { IHzcbXmssResponse, THzcbXmssResponse } from "./IHzcbXmssResponse";
12
12
  import { IHzcbXmssBillResponse, THzcbXmssBillResponse } from "./IHzcbXmssBillResponse";
13
13
  //#tdss
14
14
  import { IHzcbTdssResponse, THzcbTdssResponse } from "./IHzcbTdssResponse";
15
+ import { IHzcbXmtzBillResponse, THzcbXmtzBillResponse } from "./IHzcbXmtzBillResponse";
15
16
 
16
17
  export {
17
18
  THzcbMainResponse,
@@ -25,6 +26,7 @@ export {
25
26
  THzcbXmssResponse,
26
27
  THzcbXmssBillResponse,
27
28
  THzcbTdssResponse,
29
+ THzcbXmtzBillResponse,
28
30
  type IHzcbMainResponse,
29
31
  type IHzcbRypqResponse,
30
32
  type IHzcbXmtzResponse,
@@ -35,5 +37,6 @@ export {
35
37
  type IHzcbNdjhBillResponse,
36
38
  type IHzcbXmssResponse,
37
39
  type IHzcbXmssBillResponse,
40
+ type IHzcbXmtzBillResponse,
38
41
  type IHzcbTdssResponse
39
42
  };