@simitgroup/simpleapp-generator 1.6.6-q-alpha → 1.6.6-s-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/buildinschemas/index.d.ts +1 -0
- package/dist/buildinschemas/index.d.ts.map +1 -1
- package/dist/buildinschemas/index.js +3 -1
- package/dist/buildinschemas/index.js.map +1 -1
- package/dist/buildinschemas/message.d.ts +3 -0
- package/dist/buildinschemas/message.d.ts.map +1 -0
- package/dist/buildinschemas/message.js +34 -0
- package/dist/buildinschemas/message.js.map +1 -0
- package/dist/buildinschemas/webhook.d.ts.map +1 -1
- package/dist/buildinschemas/webhook.js +124 -53
- package/dist/buildinschemas/webhook.js.map +1 -1
- package/dist/buildinschemas/webhookhistory.d.ts +3 -0
- package/dist/buildinschemas/webhookhistory.d.ts.map +1 -0
- package/dist/buildinschemas/webhookhistory.js +44 -0
- package/dist/buildinschemas/webhookhistory.js.map +1 -0
- package/dist/buildinschemas/webhooklog.d.ts +3 -0
- package/dist/buildinschemas/webhooklog.d.ts.map +1 -0
- package/dist/buildinschemas/webhooklog.js +77 -0
- package/dist/buildinschemas/webhooklog.js.map +1 -0
- package/dist/createproject.js +138 -0
- package/dist/createproject.js.map +1 -0
- package/dist/framework.js +3 -3
- package/dist/framework.js.map +1 -1
- package/dist/generate-allow-changebackend.js +305 -0
- package/dist/generate-allow-changebackend.js.map +1 -0
- package/dist/generate.js +2 -2
- package/dist/generate.js.map +1 -1
- package/dist/index2.js +118 -0
- package/dist/index2.js.map +1 -0
- package/dist/installdependency.js +20 -0
- package/dist/installdependency.js.map +1 -0
- package/dist/installnest.js +2 -0
- package/dist/installnest.js.map +1 -0
- package/dist/installnuxt.js +2 -0
- package/dist/installnuxt.js.map +1 -0
- package/dist/processors/groupsbuilder.js +2 -0
- package/dist/processors/groupsbuilder.js.map +1 -0
- package/dist/schematype/baseschema.js +25 -0
- package/dist/schematype/baseschema.js.map +1 -0
- package/dist/schematype/default.js +2 -0
- package/dist/schematype/default.js.map +1 -0
- package/dist/schematype/index.js +12 -0
- package/dist/schematype/index.js.map +1 -0
- package/dist/schematype/primarymasterdata.js +38 -0
- package/dist/schematype/primarymasterdata.js.map +1 -0
- package/dist/schematype/simple.js +24 -0
- package/dist/schematype/simple.js.map +1 -0
- package/dist/schematype/simplemasterdata.js +31 -0
- package/dist/schematype/simplemasterdata.js.map +1 -0
- package/dist/schematype/transaction.js +74 -0
- package/dist/schematype/transaction.js.map +1 -0
- package/package.json +1 -1
- package/src/buildinschemas/index.ts +1 -0
- package/src/buildinschemas/webhook.ts +126 -55
- package/src/buildinschemas/webhooklog.ts +75 -0
- package/src/framework.ts +4 -4
- package/src/generate.ts +2 -2
- package/templates/nest/src/simpleapp/generate/commons/middlewares/tenant.middleware.ts.eta +4 -2
- package/templates/nest/src/simpleapp/generate/commons/runwebhook.service.ts.eta +143 -168
- package/templates/nest/src/simpleapp/generate/commons/user.context.ts.eta +22 -13
- package/templates/nest/src/simpleapp/generate/processors/simpleapp.processor.ts.eta +22 -16
- package/templates/nest/src/simpleapp/webhooks/branch.ts._eta +37 -0
- package/templates/nest/src/simpleapp/webhooks/index.ts._eta +21 -0
- package/templates/nuxt/plugins/20.simpleapp-userstore.ts.eta +341 -316
- /package/templates/nest/src/simpleapp/generate/processors/{webhook.processor.ts.eta → webhook.processor.ts.etaxxxx} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index2.js","sourceRoot":"","sources":["../src/index2.ts"],"names":[],"mappings":";;;;AAEA,qCAA+B;AAE/B,MAAM,OAAO,GAAI,OAAO,CAAC,WAAW,CAAC,CAAA,CAAC,gBAAgB;AACtD,MAAM,UAAU,GAAE,OAAO,CAAE,QAAQ,CAAC,CAAA;AACpC,MAAM,SAAS,GAAE,OAAO,CAAE,YAAY,CAAC,CAAA;AACvC,MAAM,EAAE,GAAG,OAAO,CAAE,IAAI,CAAC,CAAA;AACz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4B,CAAC,CAAA;YACtC,SAAS,CAAC,UAAU,CAAC,iBAAiB,EAAC,aAAa,EAAC,cAAc,CAAC,CAAA;YACpE,IAAI,CAAC,MAAM,cAAc,8DAA8D,CAAC,CAAA;YACxF,IAAI,CAAC,MAAM,aAAa,kBAAkB,CAAC,CAAA;YAC3C,IAAG,YAAY,IAAG,EAAE,EAAC;gBAEnB,IAAI,CAAC,qCAAqC,YAAY,OAAO,cAAc,6DAA6D,EAAC,CAAC,KAAK,EAAE,MAAM,EAAE,MAAM,EAAC,EAAE;oBAC9J,IAAG,KAAK,EAAC;wBACP,GAAG,CAAC,KAAK,CAAC,MAAM,CAAC,CAAC;qBACnB;gBACH,CAAC,CAAC,CAAC;aACN;QACH,CAAC,CAAC,CAAA;IACJ,CAAC,CAAC,CAAA;AAEJ,CAAC,CAAA;AAED,GAAG,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAA;AAC3B,YAAY,EAAE,CAAA;AAId,yCAAyC;AACzC,4CAA4C"}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
#!/bin/bash
|
|
2
|
+
"use strict";
|
|
3
|
+
npm;
|
|
4
|
+
install - g;
|
|
5
|
+
pnpm;
|
|
6
|
+
/cli @openapitools/openapi - generator - cli;
|
|
7
|
+
nuxi;
|
|
8
|
+
nest;
|
|
9
|
+
new - p;
|
|
10
|
+
pnpm;
|
|
11
|
+
$backendFolder;
|
|
12
|
+
npx;
|
|
13
|
+
nuxi;
|
|
14
|
+
init;
|
|
15
|
+
$;
|
|
16
|
+
{
|
|
17
|
+
frontendFolder;
|
|
18
|
+
}
|
|
19
|
+
";
|
|
20
|
+
//# sourceMappingURL=installdependency.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"installdependency.js","sourceRoot":"","sources":["../src/installdependency.ts"],"names":[],"mappings":";;AACA,GAAG,CAAA;AAAC,OAAO,GAAE,CAAC,CAAA;AAAC,IAAI,CAAA;AAAQ,0BAA0B,GAAC,SAAS,GAAC,GAAG,CAAA;AAAC,IAAI,CAAA;AACxE,IAAI,CAAA;AAAC,IAAI,AAAD,GAAE,CAAC,CAAA;AAAC,IAAI,CAAA;AAAC,cAAc,CAAA;AAC/B,GAAG,CAAA;AAAC,IAAI,CAAA;AAAQ,IAAI,CAAA;AAAC,CAAC,CAAA;AAAA;IAAC,cAAc,CAAA;CAAC;AAAA,CAAC,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"installnest.js","sourceRoot":"","sources":["../src/installnest.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"installnuxt.js","sourceRoot":"","sources":["../src/installnuxt.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"groupsbuilder.js","sourceRoot":"","sources":["../../src/processors/groupsbuilder.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.baseschema = void 0;
|
|
4
|
+
const type_1 = require("../type");
|
|
5
|
+
exports.baseschema = {
|
|
6
|
+
'type': 'object',
|
|
7
|
+
'x-simpleapp-config': {
|
|
8
|
+
isolationType: type_1.IsolationType.org,
|
|
9
|
+
schemaType: type_1.SupportedSchemaType.baseschema,
|
|
10
|
+
documentType: '',
|
|
11
|
+
documentName: ''
|
|
12
|
+
},
|
|
13
|
+
properties: {
|
|
14
|
+
_id: { type: 'string', description: "system field" },
|
|
15
|
+
tenantId: { type: 'integer', default: 1, description: "system field" },
|
|
16
|
+
orgId: { type: 'integer', default: 1, description: "system field" },
|
|
17
|
+
branchId: { type: 'integer', default: 1, description: "system field" },
|
|
18
|
+
created: { type: 'string', description: "system field" },
|
|
19
|
+
updated: { type: 'string', description: "system field" },
|
|
20
|
+
createdby: { type: 'string', description: "system field" },
|
|
21
|
+
updatedby: { type: 'string', description: "system field" },
|
|
22
|
+
},
|
|
23
|
+
definitions: {}
|
|
24
|
+
};
|
|
25
|
+
//# sourceMappingURL=baseschema.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"baseschema.js","sourceRoot":"","sources":["../../src/schematype/baseschema.ts"],"names":[],"mappings":";;;AAAA,kCAAoE;AACvD,QAAA,UAAU,GAAc;IACjC,MAAM,EAAC,QAAQ;IACf,oBAAoB,EAAC;QACnB,aAAa,EAAE,oBAAa,CAAC,GAAG;QAChC,UAAU,EAAE,0BAAmB,CAAC,UAAU;QAC1C,YAAY,EAAE,EAAE;QAChB,YAAY,EAAE,EAAE;KACjB;IACD,UAAU,EAAC;QACP,GAAG,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,cAAc,EAAC;QAC9C,QAAQ,EAAC,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAC,CAAC,EAAC,WAAW,EAAC,cAAc,EAAC;QAC9D,KAAK,EAAC,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAC,CAAC,EAAC,WAAW,EAAC,cAAc,EAAC;QAC3D,QAAQ,EAAC,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAC,CAAC,EAAC,WAAW,EAAC,cAAc,EAAC;QAC9D,OAAO,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,cAAc,EAAC;QAClD,OAAO,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,cAAc,EAAC;QAClD,SAAS,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,cAAc,EAAC;QACpD,SAAS,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,cAAc,EAAC;KACvD;IACD,WAAW,EAAC,EAAE;CACf,CAAA"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"default.js","sourceRoot":"","sources":["../../src/schematype/default.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.transaction = exports.baseschema = exports.primarymasterdata = exports.simplemasterdata = void 0;
|
|
4
|
+
var simplemasterdata_1 = require("./simplemasterdata");
|
|
5
|
+
Object.defineProperty(exports, "simplemasterdata", { enumerable: true, get: function () { return simplemasterdata_1.simplemasterdata; } });
|
|
6
|
+
var primarymasterdata_1 = require("./primarymasterdata");
|
|
7
|
+
Object.defineProperty(exports, "primarymasterdata", { enumerable: true, get: function () { return primarymasterdata_1.primarymasterdata; } });
|
|
8
|
+
var baseschema_1 = require("./baseschema");
|
|
9
|
+
Object.defineProperty(exports, "baseschema", { enumerable: true, get: function () { return baseschema_1.baseschema; } });
|
|
10
|
+
var transaction_1 = require("./transaction");
|
|
11
|
+
Object.defineProperty(exports, "transaction", { enumerable: true, get: function () { return transaction_1.transaction; } });
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/schematype/index.ts"],"names":[],"mappings":";;;AAAA,uDAAmD;AAA3C,oHAAA,gBAAgB,OAAA;AACxB,yDAAqD;AAA7C,sHAAA,iBAAiB,OAAA;AACzB,2CAAuC;AAA/B,wGAAA,UAAU,OAAA;AAClB,6CAAyC;AAAjC,0GAAA,WAAW,OAAA"}
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.primarymasterdata = void 0;
|
|
4
|
+
const type_1 = require("../type");
|
|
5
|
+
exports.primarymasterdata = {
|
|
6
|
+
type: "object",
|
|
7
|
+
"x-simpleapp-config": {
|
|
8
|
+
isolationType: type_1.IsolationType.org,
|
|
9
|
+
pageType: "crud",
|
|
10
|
+
generateDocumentNumber: true,
|
|
11
|
+
schemaType: type_1.SupportedSchemaType.primarymasterdata,
|
|
12
|
+
documentType: '',
|
|
13
|
+
documentName: '',
|
|
14
|
+
},
|
|
15
|
+
properties: {
|
|
16
|
+
_id: { type: 'string', description: "system field" },
|
|
17
|
+
tenantId: { type: 'integer', default: 1, description: "system field" },
|
|
18
|
+
orgId: { type: 'integer', default: 1, description: "system field" },
|
|
19
|
+
branchId: { type: 'integer', default: 1, description: "system field" },
|
|
20
|
+
created: { type: 'string', description: "system field" },
|
|
21
|
+
updated: { type: 'string', description: "system field" },
|
|
22
|
+
createdby: { type: 'string', description: "system field" },
|
|
23
|
+
updatedby: { type: 'string', description: "system field" },
|
|
24
|
+
docNoFormat: {
|
|
25
|
+
type: "object",
|
|
26
|
+
"x-foreignkey": "docnoformat",
|
|
27
|
+
properties: { _id: { "type": "string" }, label: { "type": "string" } },
|
|
28
|
+
description: "system field"
|
|
29
|
+
},
|
|
30
|
+
},
|
|
31
|
+
definitions: {
|
|
32
|
+
foreignkey: {
|
|
33
|
+
type: "object",
|
|
34
|
+
properties: { _id: { "type": "string" }, label: { "type": "string" }, code: { "type": "string" } }
|
|
35
|
+
}
|
|
36
|
+
},
|
|
37
|
+
};
|
|
38
|
+
//# sourceMappingURL=primarymasterdata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"primarymasterdata.js","sourceRoot":"","sources":["../../src/schematype/primarymasterdata.ts"],"names":[],"mappings":";;;AAAA,kCAAoE;AACvD,QAAA,iBAAiB,GAAc;IACxC,IAAI,EAAC,QAAQ;IACb,oBAAoB,EAAC;QACnB,aAAa,EAAE,oBAAa,CAAC,GAAG;QAChC,QAAQ,EAAC,MAAM;QACf,sBAAsB,EAAC,IAAI;QAC3B,UAAU,EAAE,0BAAmB,CAAC,iBAAiB;QACjD,YAAY,EAAC,EAAE;QACf,YAAY,EAAC,EAAE;KAChB;IACD,UAAU,EAAC;QACP,GAAG,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,cAAc,EAAC;QAC9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
|
+
'x-simpleapp-config': {
|
|
7
|
+
isolationType: 'org',
|
|
8
|
+
schemaType: 'simple',
|
|
9
|
+
documentType: '',
|
|
10
|
+
documentName: '',
|
|
11
|
+
foreignKeys: {}
|
|
12
|
+
},
|
|
13
|
+
"properties": {
|
|
14
|
+
_id: { type: 'string' },
|
|
15
|
+
tenantId: { type: 'integer', default: 1 },
|
|
16
|
+
orgId: { type: 'integer', default: 1 },
|
|
17
|
+
branchId: { type: 'integer', default: 1 },
|
|
18
|
+
created: { type: 'string' },
|
|
19
|
+
updated: { type: 'string' },
|
|
20
|
+
createdby: { type: 'string' },
|
|
21
|
+
updatedby: { type: 'string' },
|
|
22
|
+
}
|
|
23
|
+
};
|
|
24
|
+
//# sourceMappingURL=simple.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simple.js","sourceRoot":"","sources":["../../src/schematype/simple.ts"],"names":[],"mappings":";;;AAAa,QAAA,YAAY,GAAG;IACxB,MAAM,EAAC,QAAQ;IACf,oBAAoB,EAAC;QACnB,aAAa,EAAE,KAAK;QACpB,UAAU,EAAE,QAAQ;QACpB,YAAY,EAAE,EAAE;QAChB,YAAY,EAAE,EAAE;QAChB,WAAW,EAAC,EAAE;KACf;IACD,YAAY,EAAC;QACT,GAAG,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC;QACnB,QAAQ,EAAC,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAC,CAAC,EAAC;QACnC,KAAK,EAAC,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAC,CAAC,EAAC;QAChC,QAAQ,EAAC,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAC,CAAC,EAAC;QACnC,OAAO,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC;QACvB,OAAO,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC;QACvB,SAAS,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC;QACzB,SAAS,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC;KAC5B;CACF,CAAA"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.simplemasterdata = void 0;
|
|
4
|
+
const type_1 = require("../type");
|
|
5
|
+
exports.simplemasterdata = {
|
|
6
|
+
type: "object",
|
|
7
|
+
"x-simpleapp-config": {
|
|
8
|
+
isolationType: type_1.IsolationType.org,
|
|
9
|
+
pageType: "crud",
|
|
10
|
+
schemaType: type_1.SupportedSchemaType.simplemasterdata,
|
|
11
|
+
documentType: '',
|
|
12
|
+
documentName: '',
|
|
13
|
+
},
|
|
14
|
+
properties: {
|
|
15
|
+
_id: { type: 'string' },
|
|
16
|
+
tenantId: { type: 'integer', default: 1, description: "system field" },
|
|
17
|
+
orgId: { type: 'integer', default: 1, description: "system field" },
|
|
18
|
+
branchId: { type: 'integer', default: 1, description: "system field" },
|
|
19
|
+
created: { type: 'string', description: "system field" },
|
|
20
|
+
updated: { type: 'string', description: "system field" },
|
|
21
|
+
createdby: { type: 'string', description: "system field" },
|
|
22
|
+
updatedby: { type: 'string', description: "system field" },
|
|
23
|
+
},
|
|
24
|
+
definitions: {
|
|
25
|
+
foreignkey: {
|
|
26
|
+
type: "object",
|
|
27
|
+
properties: { _id: { "type": "string" }, label: { "type": "string" }, code: { "type": "string" } }
|
|
28
|
+
}
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
//# sourceMappingURL=simplemasterdata.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"simplemasterdata.js","sourceRoot":"","sources":["../../src/schematype/simplemasterdata.ts"],"names":[],"mappings":";;;AAAA,kCAAoE;AACvD,QAAA,gBAAgB,GAAc;IACvC,IAAI,EAAC,QAAQ;IACb,oBAAoB,EAAC;QACnB,aAAa,EAAE,oBAAa,CAAC,GAAG;QAChC,QAAQ,EAAC,MAAM;QACf,UAAU,EAAE,0BAAmB,CAAC,gBAAgB;QAChD,YAAY,EAAC,EAAE;QACf,YAAY,EAAC,EAAE;KAChB;IACD,UAAU,EAAC;QACP,GAAG,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC;QACnB,QAAQ,EAAC,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAC,CAAC,EAAC,WAAW,EAAC,cAAc,EAAC;QAC9D,KAAK,EAAC,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAC,CAAC,EAAC,WAAW,EAAC,cAAc,EAAC;QAC3D,QAAQ,EAAC,EAAC,IAAI,EAAC,SAAS,EAAC,OAAO,EAAC,CAAC,EAAC,WAAW,EAAC,cAAc,EAAC;QAC9D,OAAO,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,cAAc,EAAC;QAClD,OAAO,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,cAAc,EAAC;QAClD,SAAS,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,cAAc,EAAC;QACpD,SAAS,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,cAAc,EAAC;KACtD;IACD,WAAW,EAAC;QACX,UAAU,EAAE;YACV,IAAI,EAAC,QAAQ;YACb,UAAU,EAAE,EAAC,GAAG,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC,EAAC,KAAK,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC,EAAC,IAAI,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC,EAAC;SACzF;KACF;CACF,CAAA"}
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.transaction = void 0;
|
|
4
|
+
const type_1 = require("../type");
|
|
5
|
+
exports.transaction = {
|
|
6
|
+
type: "object",
|
|
7
|
+
"x-simpleapp-config": {
|
|
8
|
+
isolationType: type_1.IsolationType.org,
|
|
9
|
+
requiredRoles: [],
|
|
10
|
+
documentType: '',
|
|
11
|
+
documentName: '',
|
|
12
|
+
pageType: "crud",
|
|
13
|
+
uniqueKey: "documentNo",
|
|
14
|
+
documentTitle: "documentTitle",
|
|
15
|
+
generateDocumentNumber: true,
|
|
16
|
+
documentDate: "documentDate",
|
|
17
|
+
allStatus: [
|
|
18
|
+
{ "status": "D", statusName: "Draft", "readOnly": true, "actions": ["confirm", "void"] },
|
|
19
|
+
{ "status": "CO", statusName: "Confirmed", "readOnly": true, "actions": ["revert", "void"] },
|
|
20
|
+
{ "status": "V", statusName: "Void", "readOnly": true, "actions": ["revert"] },
|
|
21
|
+
],
|
|
22
|
+
additionalApis: [{
|
|
23
|
+
action: "confirm",
|
|
24
|
+
entrypoint: ":id/confirm",
|
|
25
|
+
requiredrole: [],
|
|
26
|
+
method: type_1.RESTMethods.post,
|
|
27
|
+
execute: "setDocumentStatus",
|
|
28
|
+
description: "confirm document and change status to CO"
|
|
29
|
+
}, {
|
|
30
|
+
action: "void",
|
|
31
|
+
entrypoint: ":id/void",
|
|
32
|
+
querypara: ["reason"],
|
|
33
|
+
requiredrole: [],
|
|
34
|
+
method: type_1.RESTMethods.post,
|
|
35
|
+
execute: "setDocumentStatus",
|
|
36
|
+
description: "confirm document and change status to V"
|
|
37
|
+
}, {
|
|
38
|
+
action: "revert",
|
|
39
|
+
entrypoint: ":id/revert",
|
|
40
|
+
requiredrole: [],
|
|
41
|
+
method: type_1.RESTMethods.post,
|
|
42
|
+
execute: "setDocumentStatus",
|
|
43
|
+
description: "revert document and change status to D"
|
|
44
|
+
}],
|
|
45
|
+
// simple => pure model and service(no page,api),
|
|
46
|
+
// default => force masterdata property,
|
|
47
|
+
// transaction => force masterdata property
|
|
48
|
+
schemaType: type_1.SupportedSchemaType.transaction,
|
|
49
|
+
},
|
|
50
|
+
properties: {
|
|
51
|
+
_id: { type: 'string', description: "system field" },
|
|
52
|
+
tenantId: { type: 'integer', default: 1, description: "system field" },
|
|
53
|
+
orgId: { type: 'integer', default: 1, description: "system field" },
|
|
54
|
+
branchId: { type: 'integer', default: 1, description: "system field" },
|
|
55
|
+
created: { type: 'string', description: "system field" },
|
|
56
|
+
updated: { type: 'string', description: "system field" },
|
|
57
|
+
createdby: { type: 'string', description: "system field" },
|
|
58
|
+
updatedby: { type: 'string', description: "system field" },
|
|
59
|
+
docNoFormat: {
|
|
60
|
+
type: "object",
|
|
61
|
+
"x-foreignkey": "docnoformat",
|
|
62
|
+
properties: { _id: { "type": "string" }, label: { "type": "string" } },
|
|
63
|
+
description: "system field"
|
|
64
|
+
},
|
|
65
|
+
docStatus: { type: "string", description: "system field" }
|
|
66
|
+
},
|
|
67
|
+
definitions: {
|
|
68
|
+
foreignkey: {
|
|
69
|
+
type: "object",
|
|
70
|
+
properties: { _id: { "type": "string" }, label: { "type": "string" }, code: { "type": "string" } }
|
|
71
|
+
}
|
|
72
|
+
},
|
|
73
|
+
};
|
|
74
|
+
//# sourceMappingURL=transaction.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"transaction.js","sourceRoot":"","sources":["../../src/schematype/transaction.ts"],"names":[],"mappings":";;;AAAA,kCAAgF;AACnE,QAAA,WAAW,GAAc;IAClC,IAAI,EAAC,QAAQ;IACb,oBAAoB,EAAC;QACnB,aAAa,EAAC,oBAAa,CAAC,GAAG;QAC/B,aAAa,EAAC,EAAE;QAChB,YAAY,EAAC,EAAE;QACf,YAAY,EAAC,EAAE;QACf,QAAQ,EAAC,MAAM;QACf,SAAS,EAAC,YAAY;QACtB,aAAa,EAAC,eAAe;QAC7B,sBAAsB,EAAC,IAAI;QAC3B,YAAY,EAAC,cAAc;QAC3B,SAAS,EAAC;YACR,EAAC,QAAQ,EAAC,GAAG,EAAC,UAAU,EAAC,OAAO,EAAC,UAAU,EAAC,IAAI,EAAC,SAAS,EAAC,CAAC,SAAS,EAAC,MAAM,CAAC,EAAC;YAC9E,EAAC,QAAQ,EAAC,IAAI,EAAC,UAAU,EA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C,SAAS,EAAC,OAAO,EAAC,CAAC,EAAC,WAAW,EAAC,cAAc,EAAC;QAC9D,OAAO,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,cAAc,EAAC;QAClD,OAAO,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,cAAc,EAAC;QAClD,SAAS,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,cAAc,EAAC;QACpD,SAAS,EAAC,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,cAAc,EAAC;QACpD,WAAW,EAAE;YACX,IAAI,EAAE,QAAQ;YACd,cAAc,EAAC,aAAa;YAC5B,UAAU,EAAE,EAAC,GAAG,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC,EAAC,KAAK,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC,EAAC;YAC/D,WAAW,EAAE,cAAc;SAC5B;QACD,SAAS,EAAE,EAAC,IAAI,EAAC,QAAQ,EAAC,WAAW,EAAC,cAAc,EAAC;KACrD;IACD,WAAW,EAAC;QACX,UAAU,EAAE;YACV,IAAI,EAAC,QAAQ;YACb,UAAU,EAAE,EAAC,GAAG,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC,EAAC,KAAK,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC,EAAC,IAAI,EAAE,EAAC,MAAM,EAAE,QAAQ,EAAC,EAAC;SACzF;KACF;CACF,CAAA"}
|
package/package.json
CHANGED
|
@@ -7,5 +7,6 @@ export { docnoformat } from './docnoformat';
|
|
|
7
7
|
export { systemmessage } from './systemmessage';
|
|
8
8
|
export { keyvaluepair } from './keyvaluepair';
|
|
9
9
|
export { webhook } from './webhook';
|
|
10
|
+
export { webhooklog } from './webhooklog';
|
|
10
11
|
export { documentevent } from './documentevent';
|
|
11
12
|
export { customfield } from './customfield';
|
|
@@ -1,66 +1,137 @@
|
|
|
1
1
|
import { SchemaType, RESTMethods, IsolationType } from '../type';
|
|
2
2
|
|
|
3
3
|
export const webhook: SchemaType = {
|
|
4
|
-
type:
|
|
5
|
-
|
|
6
|
-
documentType:
|
|
7
|
-
documentName:
|
|
8
|
-
isolationType:
|
|
9
|
-
uniqueKey:
|
|
10
|
-
documentTitle:
|
|
11
|
-
resourceName:
|
|
4
|
+
"type": "object",
|
|
5
|
+
"x-simpleapp-config": {
|
|
6
|
+
"documentType": "webhook",
|
|
7
|
+
"documentName": "webhook",
|
|
8
|
+
"isolationType":IsolationType.branch,
|
|
9
|
+
"uniqueKey": "title",
|
|
10
|
+
"documentTitle": "title",
|
|
11
|
+
"resourceName": "webhook"
|
|
12
12
|
},
|
|
13
|
-
required: [
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
type:
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
13
|
+
"required": [
|
|
14
|
+
"title",
|
|
15
|
+
"url"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"_id": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"created": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"updated": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"createdBy": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"updatedBy": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"tenantId": {
|
|
34
|
+
"type": "integer",
|
|
35
|
+
"default": 1,
|
|
36
|
+
"minimum": 0
|
|
37
|
+
},
|
|
38
|
+
"orgId": {
|
|
39
|
+
"type": "integer",
|
|
40
|
+
"default": 1,
|
|
41
|
+
"minimum": 0
|
|
42
|
+
},
|
|
43
|
+
"branchId": {
|
|
44
|
+
"type": "integer",
|
|
45
|
+
"default": 1,
|
|
46
|
+
"minimum": 0
|
|
47
|
+
},
|
|
48
|
+
"title": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"minLength": 3
|
|
51
|
+
},
|
|
52
|
+
"url": {
|
|
53
|
+
"type": "string",
|
|
54
|
+
"format": "uri"
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
"requestMethod": {
|
|
58
|
+
"type": "string",
|
|
59
|
+
"enum": [
|
|
60
|
+
"post",
|
|
61
|
+
"get",
|
|
62
|
+
"patch",
|
|
63
|
+
"put",
|
|
64
|
+
"delete",
|
|
65
|
+
"head"
|
|
66
|
+
]
|
|
67
|
+
},
|
|
68
|
+
"authentication": {
|
|
69
|
+
"type": "string",
|
|
70
|
+
"enum": [
|
|
71
|
+
"none",
|
|
72
|
+
"basic"
|
|
73
|
+
],
|
|
74
|
+
"description": "apikey authentication use none + headers props"
|
|
42
75
|
},
|
|
43
|
-
|
|
44
|
-
type:
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
76
|
+
"basicAuth": {
|
|
77
|
+
"type": "object",
|
|
78
|
+
"properties": {
|
|
79
|
+
"user": {
|
|
80
|
+
"type": "string"
|
|
81
|
+
},
|
|
82
|
+
"password": {
|
|
83
|
+
"type": "string"
|
|
51
84
|
}
|
|
52
85
|
}
|
|
53
86
|
},
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
87
|
+
"headers": {
|
|
88
|
+
"type": "array",
|
|
89
|
+
"items": {
|
|
90
|
+
"type": "object",
|
|
91
|
+
"description": "http headers",
|
|
92
|
+
"properties": {
|
|
93
|
+
"name": {
|
|
94
|
+
"type": "string"
|
|
95
|
+
},
|
|
96
|
+
"value": {
|
|
97
|
+
"type": "string"
|
|
98
|
+
}
|
|
99
|
+
}
|
|
63
100
|
}
|
|
101
|
+
},
|
|
102
|
+
"description": {
|
|
103
|
+
"type": "string",
|
|
104
|
+
"format": "text"
|
|
105
|
+
},
|
|
106
|
+
"body": {
|
|
107
|
+
"type": "string",
|
|
108
|
+
"format": "text",
|
|
109
|
+
"default":"*",
|
|
110
|
+
"description": "POST,PUT body template"
|
|
111
|
+
},
|
|
112
|
+
"active": {
|
|
113
|
+
"type": "boolean",
|
|
114
|
+
"default": true
|
|
115
|
+
},
|
|
116
|
+
"resourceName": {
|
|
117
|
+
"type": "string",
|
|
118
|
+
"minLength": 2
|
|
119
|
+
},
|
|
120
|
+
"eventType": {
|
|
121
|
+
"type": "string",
|
|
122
|
+
"minLength": 2
|
|
123
|
+
},
|
|
124
|
+
"jobType":{
|
|
125
|
+
"type": "string",
|
|
126
|
+
"enum":["realtime","roll-back-when-failed"],
|
|
127
|
+
"description":"temporary support realtime and roll-back-when-failed, 2nd way way throw error and roll back data if webhook failed.)"
|
|
128
|
+
},
|
|
129
|
+
"retryAttemps":{
|
|
130
|
+
"type":"integer",
|
|
131
|
+
"default":0,
|
|
132
|
+
"minimum":0,
|
|
133
|
+
"maximum":5,
|
|
134
|
+
"description":"retries how many time when webhook failed"
|
|
64
135
|
}
|
|
65
136
|
}
|
|
66
|
-
}
|
|
137
|
+
}
|
|
@@ -0,0 +1,75 @@
|
|
|
1
|
+
import { SchemaType, RESTMethods, IsolationType } from '../type';
|
|
2
|
+
|
|
3
|
+
export const webhooklog: SchemaType = {
|
|
4
|
+
"type": "object",
|
|
5
|
+
"x-simpleapp-config": {
|
|
6
|
+
"documentType": "webhooklog",
|
|
7
|
+
"documentName": "webhooklog",
|
|
8
|
+
"isolationType": IsolationType.branch,
|
|
9
|
+
"uniqueKey": "_id",
|
|
10
|
+
"resourceName": "webhooklog"
|
|
11
|
+
},
|
|
12
|
+
"required": [
|
|
13
|
+
"title",
|
|
14
|
+
"body",
|
|
15
|
+
"msg"
|
|
16
|
+
],
|
|
17
|
+
"properties": {
|
|
18
|
+
"_id": {
|
|
19
|
+
"type": "string"
|
|
20
|
+
},
|
|
21
|
+
"created": {
|
|
22
|
+
"type": "string"
|
|
23
|
+
},
|
|
24
|
+
"updated": {
|
|
25
|
+
"type": "string"
|
|
26
|
+
},
|
|
27
|
+
"createdBy": {
|
|
28
|
+
"type": "string"
|
|
29
|
+
},
|
|
30
|
+
"updatedBy": {
|
|
31
|
+
"type": "string"
|
|
32
|
+
},
|
|
33
|
+
"tenantId": {
|
|
34
|
+
"type": "integer",
|
|
35
|
+
"default": 1,
|
|
36
|
+
"minimum": 0
|
|
37
|
+
},
|
|
38
|
+
"orgId": {
|
|
39
|
+
"type": "integer",
|
|
40
|
+
"default": 1,
|
|
41
|
+
"minimum": 0
|
|
42
|
+
},
|
|
43
|
+
"branchId": {
|
|
44
|
+
"type": "integer",
|
|
45
|
+
"default": 1,
|
|
46
|
+
"minimum": 0
|
|
47
|
+
},
|
|
48
|
+
"title": {
|
|
49
|
+
"type": "string",
|
|
50
|
+
"minLength": 3
|
|
51
|
+
},
|
|
52
|
+
"resource": {
|
|
53
|
+
"type": "string"
|
|
54
|
+
},
|
|
55
|
+
"actionName": {
|
|
56
|
+
"type": "string"
|
|
57
|
+
},
|
|
58
|
+
"statusCode": {
|
|
59
|
+
"type": "number"
|
|
60
|
+
},
|
|
61
|
+
"status": {
|
|
62
|
+
"type": "string",
|
|
63
|
+
"enum":["success","failed"]
|
|
64
|
+
},
|
|
65
|
+
"body": {
|
|
66
|
+
"type": "string",
|
|
67
|
+
"format":"text",
|
|
68
|
+
"minLength":3
|
|
69
|
+
},
|
|
70
|
+
"msg":{
|
|
71
|
+
"type":"string"
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
}
|
|
75
|
+
}
|
package/src/framework.ts
CHANGED
|
@@ -95,7 +95,7 @@ export const prepareNest = (callback: Function) => {
|
|
|
95
95
|
//@nestjs/graphql @nestjs/apollo graphql apollo-server-express apollo-server-core
|
|
96
96
|
//@nestjs/graphql graphql-tools graphql apollo-server-express
|
|
97
97
|
exec(
|
|
98
|
-
`cd ${targetfolder};pnpm install --save @nestjs/graphql mustache country-to-currency graphql-type-json countries-and-timezones @nestjs/apollo @apollo/server graphql @nestjs/event-emitter dayjs bpmn-server@2.1.7 @casl/ability jsonpath yaml lodash @types/lodash nest-keycloak-connect keycloak-connect bpmn-client @nestjs/serve-static jsonwebtoken axios @darkwolf/base64url json-schema @wearenova/mongoose-tenant @nestjs/swagger @nestjs/mongoose mongoose ajv ajv-formats ajv-errors @nestjs/config`,
|
|
98
|
+
`cd ${targetfolder};pnpm install --save @nestjs/graphql mustache json-templates country-to-currency graphql-type-json countries-and-timezones @nestjs/apollo @apollo/server graphql @nestjs/event-emitter dayjs bpmn-server@2.1.7 @casl/ability jsonpath yaml lodash @types/lodash nest-keycloak-connect keycloak-connect bpmn-client @nestjs/serve-static jsonwebtoken axios @darkwolf/base64url json-schema @wearenova/mongoose-tenant @nestjs/swagger @nestjs/mongoose mongoose ajv ajv-formats ajv-errors @nestjs/config`,
|
|
99
99
|
async (error, stdout, stderr) => {
|
|
100
100
|
// log.info(`dependency installed`)
|
|
101
101
|
if (!error) {
|
|
@@ -184,12 +184,12 @@ export const prepareNuxt = (callback: Function) => {
|
|
|
184
184
|
if (!fs.existsSync(`${targetfolder}/.env`)) {
|
|
185
185
|
//asume no environment. prepare now
|
|
186
186
|
exec(
|
|
187
|
-
`cd ${targetfolder};pnpm install;pnpm install -D @nuxtjs/apollo@next dayjs-nuxt @nuxtjs/device @nuxtjs/color-mode @types/json-schema @nuxtjs/i18n@next @nuxtjs/tailwindcss @types/jsonpath @sidebase/nuxt-auth @types/node @vueuse/nuxt @sidebase/nuxt-auth @vueuse/core prettier @primevue/core primevue tailwindcss-primeui`,
|
|
187
|
+
`cd ${targetfolder};pnpm install;pnpm install -D @nuxtjs/apollo@next @types/json-templates dayjs-nuxt @nuxtjs/device @nuxtjs/color-mode @types/json-schema @nuxtjs/i18n@next @nuxtjs/tailwindcss @types/jsonpath @sidebase/nuxt-auth @types/node @vueuse/nuxt @sidebase/nuxt-auth @vueuse/core prettier @primevue/core primevue tailwindcss-primeui`,
|
|
188
188
|
(error, stdout, stderr) => {
|
|
189
189
|
//;pnpm install
|
|
190
190
|
console.log(error, stdout, stderr);
|
|
191
|
-
exec(
|
|
192
|
-
`cd ${targetfolder};pnpm install --save vue-camera-lib vue-pdf-embed dayjs pusher-js country-code-dateformat chart.js tailwind-merge @iconify-json/heroicons json-schema @vueuse/core ts-md5 primeicons memory-cache jsonpath pinia @pinia/nuxt @nuxt/kit lodash @types/lodash @darkwolf/base64url next-auth@4.21.1 @darkwolf/base64url @nuxt/ui ajv ajv-formats ajv-errors dotenv @fullcalendar/core @fullcalendar/vue3 quill prettier axios json-schema mitt @primevue/nuxt-module lru-cache vue-advanced-cropper@vue-3`,
|
|
191
|
+
exec(
|
|
192
|
+
`cd ${targetfolder};pnpm install --save json-templates vue-camera-lib vue-pdf-embed dayjs pusher-js country-code-dateformat chart.js tailwind-merge @iconify-json/heroicons json-schema @vueuse/core ts-md5 primeicons memory-cache jsonpath pinia @pinia/nuxt @nuxt/kit lodash @types/lodash @darkwolf/base64url next-auth@4.21.1 @darkwolf/base64url @nuxt/ui ajv ajv-formats ajv-errors dotenv @fullcalendar/core @fullcalendar/vue3 quill prettier axios json-schema mitt @primevue/nuxt-module lru-cache vue-advanced-cropper@vue-3`,
|
|
193
193
|
(error, stdout, stderr) => {
|
|
194
194
|
console.log(error, stdout, stderr);
|
|
195
195
|
|
package/src/generate.ts
CHANGED
|
@@ -654,11 +654,11 @@ const generateSystemFiles = (modules: ModuleObject[], allbpmn) => {
|
|
|
654
654
|
mkdirSync(foldername, { recursive: true });
|
|
655
655
|
}
|
|
656
656
|
// const templatename = `${frameworkfolder}/${longfilename}`.replace(".eta","").replace('._eta','')
|
|
657
|
-
|
|
657
|
+
log.info("Write template:",targetfilename)
|
|
658
658
|
const txt = eta.render(longfilename, renderProperties);
|
|
659
659
|
writeFileSync(targetfilename, txt);
|
|
660
660
|
} else {
|
|
661
|
-
|
|
661
|
+
log.warn("skip: ",longfilename)
|
|
662
662
|
}
|
|
663
663
|
}
|
|
664
664
|
});
|