@simitgroup/simpleapp-generator 1.6.6-d-alpha → 1.6.6-f-alpha
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/ReleaseNote.md +6 -0
- package/dist/index.js +1 -1
- package/dist/index.js.map +1 -1
- package/package.json +2 -2
- package/src/index.ts +1 -1
- package/templates/basic/nest/processor.ts.eta +5 -6
- package/templates/basic/nuxt/simpleapp.generate.client.ts.eta +3 -3
- package/templates/nest/src/simpleapp/generate/processors/autoinc.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/branch.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/docno.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/org.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/perm.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/sysmsg.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/tenant.processor.ts.eta +3 -4
- package/templates/nest/src/simpleapp/generate/processors/webhook.processor.ts.eta +3 -4
- package/templates/nuxt/nuxt.config.ts._eta +161 -141
- package/tsconfig.tsbuildinfo +1 -1
- package/dist/buildinschemas/autoincreament.d.ts +0 -3
- package/dist/buildinschemas/branch.d.ts +0 -3
- package/dist/buildinschemas/changehistories.d.ts +0 -3
- package/dist/buildinschemas/docnoformat.d.ts +0 -3
- package/dist/buildinschemas/documentevent.d.ts +0 -3
- package/dist/buildinschemas/index.d.ts +0 -11
- package/dist/buildinschemas/keyvaluepair.d.ts +0 -3
- package/dist/buildinschemas/message.d.ts +0 -3
- package/dist/buildinschemas/message.d.ts.map +0 -1
- package/dist/buildinschemas/message.js +0 -34
- package/dist/buildinschemas/message.js.map +0 -1
- package/dist/buildinschemas/organization.d.ts +0 -3
- package/dist/buildinschemas/permission.d.ts +0 -3
- package/dist/buildinschemas/systemmessage.d.ts +0 -3
- package/dist/buildinschemas/tenant.d.ts +0 -3
- package/dist/buildinschemas/user.d.ts +0 -3
- package/dist/buildinschemas/webhook.d.ts +0 -3
- package/dist/buildinschemas/webhookhistory.d.ts +0 -3
- package/dist/buildinschemas/webhookhistory.d.ts.map +0 -1
- package/dist/buildinschemas/webhookhistory.js +0 -44
- package/dist/buildinschemas/webhookhistory.js.map +0 -1
- package/dist/constant.d.ts +0 -4
- package/dist/createproject.js +0 -138
- package/dist/createproject.js.map +0 -1
- package/dist/framework.d.ts +0 -10
- package/dist/generate-allow-changebackend.js +0 -305
- package/dist/generate-allow-changebackend.js.map +0 -1
- package/dist/generate.d.ts +0 -2
- package/dist/index.d.ts +0 -3
- package/dist/index2.js +0 -118
- package/dist/index2.js.map +0 -1
- package/dist/installdependency.js +0 -20
- package/dist/installdependency.js.map +0 -1
- package/dist/installnest.js +0 -2
- package/dist/installnest.js.map +0 -1
- package/dist/installnuxt.js +0 -2
- package/dist/installnuxt.js.map +0 -1
- package/dist/libs.d.ts +0 -2
- package/dist/processors/bpmnbuilder.d.ts +0 -2
- package/dist/processors/groupsbuilder.js +0 -2
- package/dist/processors/groupsbuilder.js.map +0 -1
- package/dist/processors/jrxmlbuilder.d.ts +0 -3
- package/dist/processors/jsonschemabuilder.d.ts +0 -4
- package/dist/resource/camunda-moodle.d.ts +0 -27
- package/dist/schematype/baseschema.js +0 -25
- package/dist/schematype/baseschema.js.map +0 -1
- package/dist/schematype/default.js +0 -2
- package/dist/schematype/default.js.map +0 -1
- package/dist/schematype/index.js +0 -12
- package/dist/schematype/index.js.map +0 -1
- package/dist/schematype/primarymasterdata.js +0 -38
- package/dist/schematype/primarymasterdata.js.map +0 -1
- package/dist/schematype/simple.js +0 -24
- package/dist/schematype/simple.js.map +0 -1
- package/dist/schematype/simplemasterdata.js +0 -31
- package/dist/schematype/simplemasterdata.js.map +0 -1
- package/dist/schematype/transaction.js +0 -74
- package/dist/schematype/transaction.js.map +0 -1
- package/dist/storage.d.ts +0 -4
- package/dist/type.d.ts +0 -256
- package/dist/validation.d.ts +0 -1
package/ReleaseNote.md
CHANGED
package/dist/index.js
CHANGED
|
@@ -32,7 +32,7 @@ const program = require("commander"); // add this line
|
|
|
32
32
|
const Fieldtypes = require('./type');
|
|
33
33
|
// const generate= require( './generate')
|
|
34
34
|
const fs = require('fs');
|
|
35
|
-
const
|
|
35
|
+
// const createproject =require( './createproject')
|
|
36
36
|
const ps = require("child_process");
|
|
37
37
|
const capitalizeFirstLetter = require('./libs');
|
|
38
38
|
const { Logger, ILogObj } = require("tslog");
|
package/dist/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qCAA+B;AAC/B,gDAAkC;AAClC,qDAAsC;AACtC,2BAA0B;AAC1B,MAAM,OAAO,GAAI,OAAO,CAAC,WAAW,CAAC,CAAA,CAAC,gBAAgB;AACtD,MAAM,UAAU,GAAE,OAAO,CAAE,QAAQ,CAAC,CAAA;AACpC,yCAAyC;AAEzC,MAAM,EAAE,GAAG,OAAO,CAAE,IAAI,CAAC,CAAA;AACzB,
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../src/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;AACA,qCAA+B;AAC/B,gDAAkC;AAClC,qDAAsC;AACtC,2BAA0B;AAC1B,MAAM,OAAO,GAAI,OAAO,CAAC,WAAW,CAAC,CAAA,CAAC,gBAAgB;AACtD,MAAM,UAAU,GAAE,OAAO,CAAE,QAAQ,CAAC,CAAA;AACpC,yCAAyC;AAEzC,MAAM,EAAE,GAAG,OAAO,CAAE,IAAI,CAAC,CAAA;AACzB,oDAAoD;AACpD,MAAM,EAAE,GAAI,OAAO,CAAE,eAAe,CAAC,CAAA;AACrC,MAAM,qBAAqB,GAAE,OAAO,CAAE,QAAQ,CAAC,CAAA;AAC/C,MAAM,EAAC,MAAM,EAAE,OAA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AAE,EAAE;oBAC9B,EAAE,CAAC,UAAU,EAAE,CAAA;gBACnB,CAAC,CAAC,CAAA;YACd,CAAC,CAAC,CAAA;QACN,CAAC,CAAC,CAAA;IACJ,CAAC,CAAA;IAGD,QAAO,OAAO,CAAC,YAAY,EAAC;QAC1B,KAAK,gBAAgB;YACnB,aAAa,EAAE,CAAA;YACjB,MAAM;QACN,KAAK,eAAe;YAClB,YAAY,EAAE,CAAA;YAChB,MAAM;QACN,KAAK,UAAU;YACb,WAAW,EAAE,CAAA;YACf,MAAM;QACN,KAAK,SAAS;YACZ,UAAU,EAAE,CAAA;YACd,MAAM;QACN,KAAK,KAAK;YACR,GAAG,EAAE,CAAA;YACP,MAAM;QACN;YACE,GAAG,CAAC,KAAK,CAAC,uBAAuB,CAAC,CAAA;YACpC,MAAM;KAEP;CAEF"}
|
package/package.json
CHANGED
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@simitgroup/simpleapp-generator",
|
|
3
|
-
"version": "1.6.
|
|
3
|
+
"version": "1.6.6f-alpha",
|
|
4
4
|
"description": "frontend nuxtjs and backend nests code generator using jsonschema",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"scripts": {
|
|
7
|
-
"generate": "ts-node src/index.ts -c
|
|
7
|
+
"generate": "ts-node src/index.ts -c ./sampleconfig.json; pnpm exec prettier ./backend --write;pnpm exec prettier ./frontend --write",
|
|
8
8
|
"build": "npx tsc",
|
|
9
9
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
10
10
|
},
|
package/src/index.ts
CHANGED
|
@@ -8,7 +8,7 @@ const Fieldtypes= require( './type')
|
|
|
8
8
|
// const generate= require( './generate')
|
|
9
9
|
|
|
10
10
|
const fs = require( 'fs')
|
|
11
|
-
const createproject =require( './createproject')
|
|
11
|
+
// const createproject =require( './createproject')
|
|
12
12
|
const ps = require( "child_process")
|
|
13
13
|
const capitalizeFirstLetter= require( './libs')
|
|
14
14
|
const {Logger, ILogObj} = require( "tslog");
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was automatically generated by simpleapp generator. Every
|
|
3
3
|
* MODIFICATION OVERRIDE BY GENERATEOR
|
|
4
|
-
* last change 2024-
|
|
5
|
-
* Author:
|
|
4
|
+
* last change 2024-07-10
|
|
5
|
+
* Author: Yong Xiang
|
|
6
6
|
*/
|
|
7
7
|
import { UserContext } from '../commons/user.context'
|
|
8
8
|
import * as sharelibs from '../sharelibs'
|
|
9
9
|
import { Injectable } from '@nestjs/common';
|
|
10
10
|
import { InjectModel } from '@nestjs/mongoose';
|
|
11
|
-
import
|
|
11
|
+
import jsonpath from 'jsonpath'
|
|
12
12
|
import { Model } from 'mongoose';
|
|
13
13
|
import {<%= it.typename%>JsonSchema } from '../jsonschemas/<%= it.doctype %>.jsonschema'
|
|
14
14
|
import { SimpleAppService } from './simpleapp.processor';
|
|
@@ -65,14 +65,13 @@ export class <%= it.typename %>Processor extends SimpleAppService<<%= it.typenam
|
|
|
65
65
|
reCalculateValue(data:<%= it.typename %>){
|
|
66
66
|
//console.log('trigger new recalculate')
|
|
67
67
|
const $data = data;
|
|
68
|
-
const jsopbj= new jsonpath['JSONPath']()
|
|
69
68
|
<% if(it.jsonschema['x-simpleapp-config']['formulas']){ %>
|
|
70
69
|
<%Object.keys(it.jsonschema['x-simpleapp-config']['formulas']).forEach(function(index) { %>
|
|
71
70
|
<% let fml = it.jsonschema['x-simpleapp-config']['formulas'][index] %>
|
|
72
71
|
// <%~ JSON.stringify(fml) %>
|
|
73
|
-
//const tmp =
|
|
72
|
+
//const tmp = jsonpath.query(vdata,fieldpath).filter((item:string)=>item!='')
|
|
74
73
|
|
|
75
|
-
|
|
74
|
+
jsonpath.apply($data, '<%~ fml.jsonPath %>', function($item:any) { return <%~fml.formula %> });
|
|
76
75
|
|
|
77
76
|
<%}) %>
|
|
78
77
|
<%} %>
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was automatically generated by simpleapp generator. Every
|
|
3
3
|
* MODIFICATION OVERRIDE BY GENERATEOR
|
|
4
|
-
* last change 2024-
|
|
5
|
-
* Author:
|
|
4
|
+
* last change 2024-07-10
|
|
5
|
+
* Author: Yong Xiang
|
|
6
6
|
*/
|
|
7
7
|
import _ from 'lodash'
|
|
8
8
|
import {SchemaType,NotificationStatus} from '~/types'
|
|
9
9
|
import * as sharelibs from '../sharelibs'
|
|
10
|
-
import
|
|
10
|
+
import jsonpath from 'jsonpath'
|
|
11
11
|
import { SimpleAppClient } from "./SimpleAppClient";
|
|
12
12
|
import {
|
|
13
13
|
<%Object.keys(it.models).forEach(function(modelname) { %> Default<%=modelname%>, <%})%>
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was automatically generated by simpleapp generator. Every
|
|
3
3
|
* MODIFICATION OVERRIDE BY GENERATEOR
|
|
4
|
-
* last change 2024-
|
|
5
|
-
* Author:
|
|
4
|
+
* last change 2024-07-10
|
|
5
|
+
* Author: Yong Xiang
|
|
6
6
|
*/
|
|
7
7
|
import { UserContext } from '../commons/user.context';
|
|
8
8
|
import * as sharelibs from '../sharelibs';
|
|
9
9
|
import { Injectable,Inject } from '@nestjs/common';
|
|
10
10
|
import { InjectModel } from '@nestjs/mongoose';
|
|
11
|
-
import
|
|
11
|
+
import jsonpath from 'jsonpath';
|
|
12
12
|
import { Model } from 'mongoose';
|
|
13
13
|
import { AutoincreamentJsonSchema } from '../jsonschemas/autoinc.jsonschema';
|
|
14
14
|
import { SimpleAppService } from './simpleapp.processor';
|
|
@@ -31,7 +31,6 @@ export class AutoincreamentProcessor extends SimpleAppService<Autoincreament> {
|
|
|
31
31
|
|
|
32
32
|
reCalculateValue(data: Autoincreament) {
|
|
33
33
|
//console.log('trigger new recalculate')
|
|
34
|
-
const jsopbj = new jsonpath['JSONPath']();
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
async runGenerateNextNo(
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was automatically generated by simpleapp generator. Every
|
|
3
3
|
* MODIFICATION OVERRIDE BY GENERATEOR
|
|
4
|
-
* last change 2024-
|
|
5
|
-
* Author:
|
|
4
|
+
* last change 2024-07-10
|
|
5
|
+
* Author: Yong Xiang
|
|
6
6
|
*/
|
|
7
7
|
import { UserContext } from '../commons/user.context';
|
|
8
8
|
import * as sharelibs from '../sharelibs';
|
|
@@ -12,7 +12,7 @@ import {
|
|
|
12
12
|
InternalServerErrorException,
|
|
13
13
|
} from '@nestjs/common';
|
|
14
14
|
import { InjectModel } from '@nestjs/mongoose';
|
|
15
|
-
import
|
|
15
|
+
import jsonpath from 'jsonpath';
|
|
16
16
|
import { Model } from 'mongoose';
|
|
17
17
|
import { BranchJsonSchema } from '../jsonschemas/branch.jsonschema';
|
|
18
18
|
import { SimpleAppService } from './simpleapp.processor';
|
|
@@ -54,7 +54,6 @@ export class BranchProcessor extends SimpleAppService<Branch> {
|
|
|
54
54
|
|
|
55
55
|
reCalculateValue(data: Branch) {
|
|
56
56
|
//console.log('trigger new recalculate')
|
|
57
|
-
const jsopbj = new jsonpath['JSONPath']();
|
|
58
57
|
}
|
|
59
58
|
|
|
60
59
|
/***************************** additional execute *****************************************/
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was automatically generated by simpleapp generator. Every
|
|
3
3
|
* MODIFICATION OVERRIDE BY GENERATEOR
|
|
4
|
-
* last change 2024-
|
|
5
|
-
* Author:
|
|
4
|
+
* last change 2024-07-10
|
|
5
|
+
* Author: Yong Xiang
|
|
6
6
|
*/
|
|
7
7
|
import { UserContext } from '../commons/user.context';
|
|
8
8
|
import * as sharelibs from '../sharelibs';
|
|
9
9
|
import { Injectable,Inject } from '@nestjs/common';
|
|
10
10
|
import { InjectModel } from '@nestjs/mongoose';
|
|
11
|
-
import
|
|
11
|
+
import jsonpath from 'jsonpath';
|
|
12
12
|
import { Model } from 'mongoose';
|
|
13
13
|
import { DocnoformatJsonSchema } from '../jsonschemas/docno.jsonschema';
|
|
14
14
|
import { SimpleAppService } from './simpleapp.processor';
|
|
@@ -38,7 +38,6 @@ export class DocnoformatProcessor extends SimpleAppService<Docnoformat> {
|
|
|
38
38
|
|
|
39
39
|
reCalculateValue(data: Docnoformat) {
|
|
40
40
|
//console.log('trigger new recalculate')
|
|
41
|
-
const jsopbj = new jsonpath['JSONPath']();
|
|
42
41
|
}
|
|
43
42
|
|
|
44
43
|
/***************************** additional execute *****************************************/
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was automatically generated by simpleapp generator. Every
|
|
3
3
|
* MODIFICATION OVERRIDE BY GENERATEOR
|
|
4
|
-
* last change 2024-
|
|
5
|
-
* Author:
|
|
4
|
+
* last change 2024-07-10
|
|
5
|
+
* Author: Yong Xiang
|
|
6
6
|
*/
|
|
7
7
|
import { UserContext } from '../commons/user.context';
|
|
8
8
|
import * as sharelibs from '../sharelibs';
|
|
9
9
|
import { Injectable, Inject, BadRequestException } from '@nestjs/common';
|
|
10
10
|
import { InjectModel } from '@nestjs/mongoose';
|
|
11
|
-
import
|
|
11
|
+
import jsonpath from 'jsonpath';
|
|
12
12
|
import { Model } from 'mongoose';
|
|
13
13
|
import { OrganizationJsonSchema } from '../jsonschemas/org.jsonschema';
|
|
14
14
|
import { SimpleAppService } from './simpleapp.processor';
|
|
@@ -56,7 +56,6 @@ export class OrganizationProcessor extends SimpleAppService<Organization> {
|
|
|
56
56
|
}
|
|
57
57
|
reCalculateValue(data: Organization) {
|
|
58
58
|
//console.log('trigger new recalculate')
|
|
59
|
-
const jsopbj = new jsonpath['JSONPath']();
|
|
60
59
|
}
|
|
61
60
|
|
|
62
61
|
/***************************** additional execute *****************************************/
|
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was automatically generated by simpleapp generator. Every
|
|
3
3
|
* MODIFICATION OVERRIDE BY GENERATEOR
|
|
4
|
-
* last change 2024-
|
|
5
|
-
* Author:
|
|
4
|
+
* last change 2024-07-10
|
|
5
|
+
* Author: Yong Xiang
|
|
6
6
|
*/
|
|
7
7
|
import { UserContext } from '../commons/user.context';
|
|
8
8
|
import * as sharelibs from '../sharelibs';
|
|
9
9
|
|
|
10
10
|
import { Injectable, Inject } from '@nestjs/common';
|
|
11
11
|
import { InjectModel } from '@nestjs/mongoose';
|
|
12
|
-
import
|
|
12
|
+
import jsonpath from 'jsonpath';
|
|
13
13
|
import { Model, PipelineStage } from 'mongoose';
|
|
14
14
|
import { PermissionJsonSchema } from '../jsonschemas/perm.jsonschema';
|
|
15
15
|
import { SimpleAppService } from './simpleapp.processor';
|
|
@@ -32,7 +32,6 @@ export class PermissionProcessor extends SimpleAppService<Permission> {
|
|
|
32
32
|
|
|
33
33
|
reCalculateValue(data: Permission) {
|
|
34
34
|
//console.log('trigger new recalculate')
|
|
35
|
-
const jsopbj = new jsonpath['JSONPath']();
|
|
36
35
|
}
|
|
37
36
|
|
|
38
37
|
async runListUser(appuser: UserContext) {
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was automatically generated by simpleapp generator. Every
|
|
3
3
|
* MODIFICATION OVERRIDE BY GENERATEOR
|
|
4
|
-
* last change 2024-
|
|
5
|
-
* Author:
|
|
4
|
+
* last change 2024-07-10
|
|
5
|
+
* Author: Yong Xiang
|
|
6
6
|
*/
|
|
7
7
|
import { UserContext } from '../commons/user.context';
|
|
8
8
|
import * as sharelibs from '../sharelibs';
|
|
9
9
|
import { Injectable,Inject } from '@nestjs/common';
|
|
10
10
|
import { InjectModel } from '@nestjs/mongoose';
|
|
11
|
-
import
|
|
11
|
+
import jsonpath from 'jsonpath';
|
|
12
12
|
import { Model } from 'mongoose';
|
|
13
13
|
import { SystemmessageJsonSchema } from '../jsonschemas/sysmsg.jsonschema';
|
|
14
14
|
import { SimpleAppService } from './simpleapp.processor';
|
|
@@ -31,7 +31,6 @@ export class SystemmessageProcessor extends SimpleAppService<Systemmessage> {
|
|
|
31
31
|
|
|
32
32
|
reCalculateValue(data: Systemmessage) {
|
|
33
33
|
//console.log('trigger new recalculate')
|
|
34
|
-
const jsopbj = new jsonpath['JSONPath']();
|
|
35
34
|
}
|
|
36
35
|
|
|
37
36
|
/***************************** additional execute *****************************************/
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was automatically generated by simpleapp generator. Every
|
|
3
3
|
* MODIFICATION OVERRIDE BY GENERATEOR
|
|
4
|
-
* last change 2024-
|
|
5
|
-
* Author:
|
|
4
|
+
* last change 2024-07-10
|
|
5
|
+
* Author: Yong Xiang
|
|
6
6
|
*/
|
|
7
7
|
import { UserContext } from '../commons/user.context';
|
|
8
8
|
import * as sharelibs from '../sharelibs';
|
|
9
9
|
import { Injectable,Inject } from '@nestjs/common';
|
|
10
10
|
import { InjectModel } from '@nestjs/mongoose';
|
|
11
|
-
import
|
|
11
|
+
import jsonpath from 'jsonpath';
|
|
12
12
|
import { Model } from 'mongoose';
|
|
13
13
|
import { TenantJsonSchema } from '../jsonschemas/tenant.jsonschema';
|
|
14
14
|
import { SimpleAppService } from './simpleapp.processor';
|
|
@@ -37,7 +37,6 @@ export class TenantProcessor extends SimpleAppService<Tenant> {
|
|
|
37
37
|
|
|
38
38
|
reCalculateValue(data: Tenant) {
|
|
39
39
|
//console.log('trigger new recalculate')
|
|
40
|
-
const jsopbj = new jsonpath['JSONPath']();
|
|
41
40
|
}
|
|
42
41
|
|
|
43
42
|
/***************************** additional execute *****************************************/
|
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* This file was automatically generated by simpleapp generator. Every
|
|
3
3
|
* MODIFICATION OVERRIDE BY GENERATEOR
|
|
4
|
-
* last change 2024-
|
|
5
|
-
* Author:
|
|
4
|
+
* last change 2024-07-10
|
|
5
|
+
* Author: Yong Xiang
|
|
6
6
|
*/
|
|
7
7
|
import { UserContext } from '../commons/user.context';
|
|
8
8
|
import * as sharelibs from '../sharelibs';
|
|
9
9
|
import { Injectable, InternalServerErrorException, } from '@nestjs/common';
|
|
10
10
|
import { InjectModel } from '@nestjs/mongoose';
|
|
11
|
-
import
|
|
11
|
+
import jsonpath from 'jsonpath';
|
|
12
12
|
import { Model } from 'mongoose';
|
|
13
13
|
import { WebhookJsonSchema } from '../jsonschemas/webhook.jsonschema';
|
|
14
14
|
import { SimpleAppService } from './simpleapp.processor';
|
|
@@ -62,7 +62,6 @@ export class WebhookProcessor extends SimpleAppService<Webhook> {
|
|
|
62
62
|
reCalculateValue(data: Webhook) {
|
|
63
63
|
//console.log('trigger new recalculate')
|
|
64
64
|
const $data = data;
|
|
65
|
-
const jsopbj = new jsonpath['JSONPath']();
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
async beforeCreate(appuser: UserContext, data: types.Webhook) {
|