@ningboyz/types 1.0.70 → 1.0.71

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,6 +1,6 @@
1
1
  {
2
2
  "name": "@ningboyz/types",
3
- "version": "1.0.70",
3
+ "version": "1.0.71",
4
4
  "private": false,
5
5
  "description": "宁波甬政类型库",
6
6
  "author": "nbyt-syq",
@@ -155,6 +155,7 @@ export interface IFlowNodeResponse {
155
155
  listFrom: IFlowNodeResponse[];
156
156
  /** 可选节点.列表 */
157
157
  listNext: IFlowNodeResponse[];
158
+ nodeParaConv: IFlowNodeResponseNodePara;
158
159
  }
159
160
 
160
161
  // export interface IFlowNodeResponse {
@@ -184,7 +185,7 @@ export interface IFlowNodeResponse {
184
185
  // nodeName: string;
185
186
  // nodeMemo: string;
186
187
  // nodePara: string;
187
- // nodeParaConv: IFlowNodeResponseNodePara;
188
+ //
188
189
  // entityID: string;
189
190
  // waitText: string;
190
191
  // doneText: string;
@@ -356,19 +357,6 @@ export interface IFlowNodeResponse {
356
357
  // listBMLX: IDictResponse[] = [];
357
358
  // listNext: IFlowNodeResponse[] = [];
358
359
 
359
- // static parseJson(nodePara: string) {
360
- // const result = new TFlowNodeResponseNodePara();
361
- // if (_.isEmpty(nodePara)) {
362
- // return result;
363
- // }
364
- // try {
365
- // const temp = JSON.parse(nodePara) as TFlowNodeResponseNodePara;
366
- // return _.merge(result, temp);
367
- // } catch (e: any) {
368
- // console.error(e.message);
369
- // }
370
- // return result;
371
- // }
372
360
  // }
373
361
 
374
362
  export class TFlowNodeResponse implements IFlowNodeResponse {
@@ -469,4 +457,19 @@ export class TFlowNodeResponse implements IFlowNodeResponse {
469
457
  listBMLX: IDictResponse[] = [];
470
458
  listFrom: IFlowNodeResponse[] = [];
471
459
  listNext: IFlowNodeResponse[] = [];
460
+ nodeParaConv: IFlowNodeResponseNodePara = new TFlowNodeResponseNodePara();
461
+
462
+ static parseJson(nodePara: string) {
463
+ const result = new TFlowNodeResponseNodePara();
464
+ if (_.isEmpty(nodePara)) {
465
+ return result;
466
+ }
467
+ try {
468
+ const temp = JSON.parse(nodePara) as TFlowNodeResponseNodePara;
469
+ return _.merge(result, temp);
470
+ } catch (e: any) {
471
+ console.error(e.message);
472
+ }
473
+ return result;
474
+ }
472
475
  }