@simitgroup/simpleapp-generator 2.0.2-i-alpha → 2.0.2-k-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/framework.d.ts.map +1 -1
- package/dist/framework.js +18 -8
- package/dist/framework.js.map +1 -1
- package/dist/generate.d.ts.map +1 -1
- package/dist/generate.js +18 -8
- package/dist/generate.js.map +1 -1
- package/dist/index.js +17 -7
- package/dist/index.js.map +1 -1
- package/dist/libs.d.ts.map +1 -1
- package/dist/processors/bpmnbuilder.d.ts.map +1 -1
- package/dist/processors/bpmnbuilder.js +17 -7
- package/dist/processors/bpmnbuilder.js.map +1 -1
- package/dist/processors/jrxmlbuilder.d.ts.map +1 -1
- package/dist/processors/jrxmlbuilder.js +17 -7
- package/dist/processors/jrxmlbuilder.js.map +1 -1
- package/dist/processors/jsonschemabuilder.d.ts.map +1 -1
- package/dist/processors/jsonschemabuilder.js.map +1 -1
- package/package.json +2 -2
- package/templates/nest/src/simple-app/_core/features/profile/profile.controller.ts.eta +2 -1
- package/templates/nest/src/simple-app/_core/features/profile/profile.service.ts.eta +14 -9
- package/templates/nest/src/simple-app/_core/features/user-context/user.context.ts.eta +66 -40
- package/dist/buildinschemas/autoincreament.d.ts +0 -3
- package/dist/buildinschemas/autoincreament.d.ts.map +0 -1
- package/dist/buildinschemas/autoincreament.js +0 -39
- package/dist/buildinschemas/autoincreament.js.map +0 -1
- package/dist/buildinschemas/docnoformat.d.ts +0 -3
- package/dist/buildinschemas/docnoformat.d.ts.map +0 -1
- package/dist/buildinschemas/docnoformat.js +0 -58
- package/dist/buildinschemas/docnoformat.js.map +0 -1
- package/dist/buildinschemas/documentevent.d.ts +0 -3
- package/dist/buildinschemas/documentevent.d.ts.map +0 -1
- package/dist/buildinschemas/documentevent.js +0 -48
- package/dist/buildinschemas/documentevent.js.map +0 -1
- 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/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/buildinschemas/webhooklog.d.ts +0 -3
- package/dist/buildinschemas/webhooklog.d.ts.map +0 -1
- package/dist/buildinschemas/webhooklog.js +0 -79
- package/dist/buildinschemas/webhooklog.js.map +0 -1
- package/dist/createproject.js +0 -138
- package/dist/createproject.js.map +0 -1
- package/dist/generate-allow-changebackend.js +0 -305
- package/dist/generate-allow-changebackend.js.map +0 -1
- 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/processors/groupsbuilder.js +0 -2
- package/dist/processors/groupsbuilder.js.map +0 -1
- 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
|
@@ -37,8 +37,8 @@ import { StepData } from 'src/simple-app/_core/resources/permission/permission.s
|
|
|
37
37
|
@Injectable({ scope: Scope.REQUEST })
|
|
38
38
|
export class UserContext extends UserContextInfo {
|
|
39
39
|
sessionId: string = crypto.randomUUID();
|
|
40
|
-
protected isTransaction = false
|
|
41
|
-
protected transSteps:StepData[] = []
|
|
40
|
+
protected isTransaction = false;
|
|
41
|
+
protected transSteps: StepData[] = [];
|
|
42
42
|
protected logger = new Logger(this.constructor.name);
|
|
43
43
|
|
|
44
44
|
// protected uid: string = '';
|
|
@@ -152,7 +152,7 @@ export class UserContext extends UserContextInfo {
|
|
|
152
152
|
|
|
153
153
|
getDBSession = (): ClientSession => this.dbsession;
|
|
154
154
|
getTransSteps = () => this.transSteps;
|
|
155
|
-
setTransSteps = (steps: StepData[]) => this.transSteps = steps;
|
|
155
|
+
setTransSteps = (steps: StepData[]) => (this.transSteps = steps);
|
|
156
156
|
getId = () => this._id;
|
|
157
157
|
|
|
158
158
|
getUid = () => this.uid;
|
|
@@ -578,6 +578,42 @@ export class UserContext extends UserContextInfo {
|
|
|
578
578
|
}
|
|
579
579
|
}
|
|
580
580
|
|
|
581
|
+
// Tenant permissions for DevSupport role
|
|
582
|
+
if (this.roles.includes(Role.DevSupport)) {
|
|
583
|
+
const tenantRoles = [
|
|
584
|
+
Role.Tenant_access,
|
|
585
|
+
Role.Tenant_search,
|
|
586
|
+
Role.Tenant_create,
|
|
587
|
+
Role.Tenant_update,
|
|
588
|
+
Role.Tenant_delete,
|
|
589
|
+
];
|
|
590
|
+
for (let r = 0; r < tenantRoles.length; r++) {
|
|
591
|
+
if (!this.roles.includes(tenantRoles[r])) {
|
|
592
|
+
this.roles.push(tenantRoles[r]);
|
|
593
|
+
}
|
|
594
|
+
}
|
|
595
|
+
}
|
|
596
|
+
|
|
597
|
+
// TenantInvoice permissions for DevBilling role
|
|
598
|
+
if (this.roles.includes(Role.DevBilling)) {
|
|
599
|
+
const tenantInvoiceRoles = [
|
|
600
|
+
Role.TenantInvoice_access,
|
|
601
|
+
Role.TenantInvoice_search,
|
|
602
|
+
Role.TenantInvoice_create,
|
|
603
|
+
Role.TenantInvoice_update,
|
|
604
|
+
Role.TenantInvoice_delete,
|
|
605
|
+
Role.TenantInvoice_draft,
|
|
606
|
+
Role.TenantInvoice_void,
|
|
607
|
+
Role.TenantInvoice_confirm,
|
|
608
|
+
Role.TenantInvoice_print,
|
|
609
|
+
];
|
|
610
|
+
for (let r = 0; r < tenantInvoiceRoles.length; r++) {
|
|
611
|
+
if (!this.roles.includes(tenantInvoiceRoles[r])) {
|
|
612
|
+
this.roles.push(tenantInvoiceRoles[r]);
|
|
613
|
+
}
|
|
614
|
+
}
|
|
615
|
+
}
|
|
616
|
+
|
|
581
617
|
this.moreProps = this.setMoreProps(userProfile);
|
|
582
618
|
// this.package = userProfile['package'];
|
|
583
619
|
// this.appintegration = await this.setAppIntegration();
|
|
@@ -1221,54 +1257,44 @@ export class UserContext extends UserContextInfo {
|
|
|
1221
1257
|
return isodate;
|
|
1222
1258
|
}
|
|
1223
1259
|
|
|
1260
|
+
addTransactionStep(action: string, collection: string, id: string[], data: any[]) {
|
|
1261
|
+
this.transSteps.push({ action: action, collection: collection, id: id, data: data });
|
|
1262
|
+
}
|
|
1224
1263
|
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
inTransaction(){
|
|
1231
|
-
if(process.env.MONGO_TRANS==='false')
|
|
1232
|
-
return this.isTransaction
|
|
1233
|
-
else
|
|
1234
|
-
return this.dbsession && this.dbsession.inTransaction() ? true : false
|
|
1264
|
+
inTransaction() {
|
|
1265
|
+
if (process.env.MONGO_TRANS === 'false') return this.isTransaction;
|
|
1266
|
+
else return this.dbsession && this.dbsession.inTransaction() ? true : false;
|
|
1235
1267
|
}
|
|
1236
|
-
startTransaction(){
|
|
1237
|
-
if(process.env.MONGO_TRANS==='false'){
|
|
1238
|
-
this.isTransaction=true
|
|
1239
|
-
this.transSteps=[]
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
}else{
|
|
1243
|
-
this.dbsession.startTransaction({ readConcern: { level: 'snapshot' }, writeConcern: { w: 'majority' }, readPreference: 'primary' });
|
|
1268
|
+
startTransaction() {
|
|
1269
|
+
if (process.env.MONGO_TRANS === 'false') {
|
|
1270
|
+
this.isTransaction = true;
|
|
1271
|
+
this.transSteps = [];
|
|
1272
|
+
} else {
|
|
1273
|
+
this.dbsession.startTransaction({ readConcern: { level: 'snapshot' }, writeConcern: { w: 'majority' }, readPreference: 'primary' });
|
|
1244
1274
|
}
|
|
1245
1275
|
}
|
|
1246
|
-
async commitTransaction(){
|
|
1247
|
-
if(process.env.MONGO_TRANS==='false'){
|
|
1248
|
-
this.isTransaction=false
|
|
1249
|
-
this.transSteps=[]
|
|
1250
|
-
}else{
|
|
1251
|
-
if(this.dbsession.inTransaction())
|
|
1252
|
-
await this.dbsession.commitTransaction()
|
|
1276
|
+
async commitTransaction() {
|
|
1277
|
+
if (process.env.MONGO_TRANS === 'false') {
|
|
1278
|
+
this.isTransaction = false;
|
|
1279
|
+
this.transSteps = [];
|
|
1280
|
+
} else {
|
|
1281
|
+
if (this.dbsession.inTransaction()) await this.dbsession.commitTransaction();
|
|
1253
1282
|
}
|
|
1254
1283
|
}
|
|
1255
|
-
async rollBackTransaction(dbService:SimpleAppDbRevertService){
|
|
1256
|
-
if(process.env.MONGO_TRANS==='false'){
|
|
1257
|
-
await dbService.revertSteps(this.transSteps)
|
|
1258
|
-
this.isTransaction=false
|
|
1259
|
-
this.transSteps=[]
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
if(this.dbsession.inTransaction())
|
|
1263
|
-
await this.dbsession.abortTransaction()
|
|
1284
|
+
async rollBackTransaction(dbService: SimpleAppDbRevertService) {
|
|
1285
|
+
if (process.env.MONGO_TRANS === 'false') {
|
|
1286
|
+
await dbService.revertSteps(this.transSteps);
|
|
1287
|
+
this.isTransaction = false;
|
|
1288
|
+
this.transSteps = [];
|
|
1289
|
+
} else {
|
|
1290
|
+
if (this.dbsession.inTransaction()) await this.dbsession.abortTransaction();
|
|
1264
1291
|
}
|
|
1265
1292
|
}
|
|
1266
|
-
async endSession(){
|
|
1267
|
-
|
|
1293
|
+
async endSession() {
|
|
1294
|
+
await this.dbsession.endSession();
|
|
1268
1295
|
}
|
|
1269
1296
|
}
|
|
1270
1297
|
|
|
1271
|
-
|
|
1272
1298
|
// type StepData = {action:string,collection:string,id:string[],data:any[]}
|
|
1273
1299
|
/**
|
|
1274
1300
|
* Define a type for userinfo
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"autoincreament.d.ts","sourceRoot":"","sources":["../../src/buildinschemas/autoincreament.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA8B,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,cAAc,EAAE,UAiC5B,CAAC"}
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.autoincreament = void 0;
|
|
4
|
-
const type_1 = require("../type");
|
|
5
|
-
exports.autoincreament = {
|
|
6
|
-
type: 'object',
|
|
7
|
-
'x-simpleapp-config': {
|
|
8
|
-
documentType: 'autoinc',
|
|
9
|
-
documentName: 'autoincreament',
|
|
10
|
-
isolationType: type_1.IsolationType.none,
|
|
11
|
-
pageType: 'crud',
|
|
12
|
-
additionalApis: [
|
|
13
|
-
{
|
|
14
|
-
action: 'generateNextNo',
|
|
15
|
-
entryPoint: 'gennextno/:collection/:field',
|
|
16
|
-
requiredRole: ['User'],
|
|
17
|
-
method: type_1.RESTMethods.get,
|
|
18
|
-
responseType: 'AutoIncreament',
|
|
19
|
-
description: 'Get next no and trigger increase nextno'
|
|
20
|
-
}
|
|
21
|
-
],
|
|
22
|
-
resourceName: 'autoIncreament'
|
|
23
|
-
},
|
|
24
|
-
required: ['nextNo', 'collectionName', 'fieldName'],
|
|
25
|
-
properties: {
|
|
26
|
-
_id: { type: 'string' },
|
|
27
|
-
created: { type: 'string' },
|
|
28
|
-
updated: { type: 'string' },
|
|
29
|
-
createdBy: { type: 'string' },
|
|
30
|
-
updatedBy: { type: 'string' },
|
|
31
|
-
tenantId: { type: 'integer', default: 1, minimum: 0 },
|
|
32
|
-
orgId: { type: 'integer', default: 1, minimum: 0 },
|
|
33
|
-
branchId: { type: 'integer', default: 1, minimum: 0 },
|
|
34
|
-
collectionName: { type: 'string', minLength: 1 },
|
|
35
|
-
fieldName: { type: 'string', minLength: 1 },
|
|
36
|
-
nextNo: { type: 'integer', minimum: 1 }
|
|
37
|
-
}
|
|
38
|
-
};
|
|
39
|
-
//# sourceMappingURL=autoincreament.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"autoincreament.js","sourceRoot":"","sources":["../../src/buildinschemas/autoincreament.ts"],"names":[],"mappings":";;;AAAA,kCAAiE;AAEpD,QAAA,cAAc,GAAe;IACxC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE;QACpB,YAAY,EAAE,SAAS;QACvB,YAAY,EAAE,gBAAgB;QAC9B,aAAa,EAAE,oBAAa,CAAC,IAAI;QACjC,QAAQ,EAAE,MAAM;QAChB,cAAc,EAAE;YACd;gBACE,MAAM,EAAE,gBAAgB;gBACxB,UAAU,EAAE,8BAA8B;gBAC1C,YAAY,EAAE,CAAC,MAAM,CAAC;gBACtB,MAAM,EAAE,kBAAW,CAAC,GAAG;gBACvB,YAAY,EAAE,gBAAgB;gBAC9B,WAAW,EAAE,yCAAyC;aACvD;SACF;QACD,YAAY,EAAE,gBAAgB;KAC/B;IACD,QAAQ,EAAE,CAAC,QAAQ,EAAE,gBAAgB,EAAE,WAAW,CAAC;IACnD,UAAU,EAAE;QACV,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QACvB,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,OAAO,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC3B,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC7B,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;QAC7B,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;QACrD,KAAK,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;QAClD,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE;QACrD,cAAc,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;QAChD,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,SAAS,EAAE,CAAC,EAAE;QAC3C,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE;KACxC;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"docnoformat.d.ts","sourceRoot":"","sources":["../../src/buildinschemas/docnoformat.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA8B,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,WAAW,EAAE,UAoDzB,CAAC"}
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.docnoformat = void 0;
|
|
4
|
-
const type_1 = require("../type");
|
|
5
|
-
exports.docnoformat = {
|
|
6
|
-
type: 'object',
|
|
7
|
-
'x-simpleapp-config': {
|
|
8
|
-
isolationType: type_1.IsolationType.org,
|
|
9
|
-
documentType: 'docno',
|
|
10
|
-
documentName: 'docnoformat',
|
|
11
|
-
pageType: 'crud',
|
|
12
|
-
uniqueKey: 'docNoFormatNo',
|
|
13
|
-
documentTitle: 'docNoFormatName',
|
|
14
|
-
additionalAutoCompleteFields: ['default'],
|
|
15
|
-
additionalApis: [
|
|
16
|
-
{
|
|
17
|
-
action: 'listDocFormats',
|
|
18
|
-
entryPoint: '/listdocformats/:doctype',
|
|
19
|
-
requiredRole: ['User'],
|
|
20
|
-
responseType: '[DocumentNoFormat]',
|
|
21
|
-
method: type_1.RESTMethods.get,
|
|
22
|
-
description: 'get list of document format for 1 doctype'
|
|
23
|
-
}
|
|
24
|
-
],
|
|
25
|
-
resourceName: 'documentNoFormat'
|
|
26
|
-
},
|
|
27
|
-
properties: {
|
|
28
|
-
_id: { type: 'string' },
|
|
29
|
-
created: { type: 'string' },
|
|
30
|
-
updated: { type: 'string' },
|
|
31
|
-
createdBy: { type: 'string' },
|
|
32
|
-
updatedBy: { type: 'string' },
|
|
33
|
-
tenantId: { type: 'integer', default: 1, minimum: 1 },
|
|
34
|
-
orgId: { type: 'integer', default: 1, minimum: 1 },
|
|
35
|
-
branchId: { type: 'integer', default: 1, minimum: 1 },
|
|
36
|
-
branch: {
|
|
37
|
-
type: 'object',
|
|
38
|
-
'x-foreignkey': 'branch',
|
|
39
|
-
properties: {
|
|
40
|
-
_id: { type: 'string' },
|
|
41
|
-
label: { type: 'string' },
|
|
42
|
-
branchId: { type: 'integer' }
|
|
43
|
-
}
|
|
44
|
-
},
|
|
45
|
-
docNoFormatNo: { type: 'string', examples: ['INV'] },
|
|
46
|
-
docNoFormatName: { type: 'string', examples: ['Invoice Default Format'] },
|
|
47
|
-
active: { type: 'boolean', examples: [true], default: true },
|
|
48
|
-
default: { type: 'boolean', examples: [true], default: true },
|
|
49
|
-
docNoType: { type: 'string', examples: ['SI', 'PI'] },
|
|
50
|
-
docNoPattern: {
|
|
51
|
-
type: 'string',
|
|
52
|
-
examples: ['SI{YYMM}-<000>', 'PI-2023-<0000>'],
|
|
53
|
-
description: '{date} format as ISO8601 symbol'
|
|
54
|
-
},
|
|
55
|
-
nextNumber: { type: 'integer', default: 1 }
|
|
56
|
-
}
|
|
57
|
-
};
|
|
58
|
-
//# sourceMappingURL=docnoformat.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"doc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UAAU,EAAE;gBACV,GAAG,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACvB,KAAK,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE;gBACzB,QAAQ,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE;aAC9B;SACF;QACD,aAAa,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,KAAK,CAAC,EAAE;QACpD,eAAe,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,wBAAwB,CAAC,EAAE;QACzE,MAAM,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE;QAC5D,OAAO,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,CAAC,IAAI,CAAC,EAAE,OAAO,EAAE,IAAI,EAAE;QAC7D,SAAS,EAAE,EAAE,IAAI,EAAE,QAAQ,EAAE,QAAQ,EAAE,CAAC,IAAI,EAAE,IAAI,CAAC,EAAE;QACrD,YAAY,EAAE;YACZ,IAAI,EAAE,QAAQ;YACd,QAAQ,EAAE,CAAC,gBAAgB,EAAE,gBAAgB,CAAC;YAC9C,WAAW,EAAE,iCAAiC;SAC/C;QACD,UAAU,EAAE,EAAE,IAAI,EAAE,SAAS,EAAE,OAAO,EAAE,CAAC,EAAE;KAC5C;CACF,CAAC"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"documentevent.d.ts","sourceRoot":"","sources":["../../src/buildinschemas/documentevent.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA8B,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,aAAa,EAAE,UA0C3B,CAAC"}
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.documentevent = void 0;
|
|
4
|
-
const type_1 = require("../type");
|
|
5
|
-
exports.documentevent = {
|
|
6
|
-
type: 'object',
|
|
7
|
-
'x-simpleapp-config': {
|
|
8
|
-
documentType: 'docevent',
|
|
9
|
-
documentName: 'documentevent',
|
|
10
|
-
isolationType: type_1.IsolationType.org,
|
|
11
|
-
resourceName: 'documentEvent'
|
|
12
|
-
},
|
|
13
|
-
properties: {
|
|
14
|
-
_id: { type: 'string' },
|
|
15
|
-
created: { type: 'string' },
|
|
16
|
-
updated: { type: 'string' },
|
|
17
|
-
createdBy: { type: 'string' },
|
|
18
|
-
updatedBy: { type: 'string' },
|
|
19
|
-
tenantId: { type: 'integer', default: 1 },
|
|
20
|
-
orgId: { type: 'integer', default: 1 },
|
|
21
|
-
branchId: { type: 'integer', default: 1 },
|
|
22
|
-
documentName: {
|
|
23
|
-
type: 'string',
|
|
24
|
-
minLength: 2
|
|
25
|
-
},
|
|
26
|
-
documentId: {
|
|
27
|
-
type: 'string',
|
|
28
|
-
minLength: 3,
|
|
29
|
-
format: 'uuid'
|
|
30
|
-
},
|
|
31
|
-
eventType: {
|
|
32
|
-
type: 'string',
|
|
33
|
-
enum: [
|
|
34
|
-
'create',
|
|
35
|
-
'update',
|
|
36
|
-
'delete',
|
|
37
|
-
'read',
|
|
38
|
-
'print',
|
|
39
|
-
'void',
|
|
40
|
-
'confirm',
|
|
41
|
-
'draft'
|
|
42
|
-
],
|
|
43
|
-
examples: ['create', 'delete']
|
|
44
|
-
},
|
|
45
|
-
eventData: {}
|
|
46
|
-
}
|
|
47
|
-
};
|
|
48
|
-
//# sourceMappingURL=documentevent.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"documentevent.js","sourceRoot":"","sources":["../../src/buildinschemas/documentevent.ts"],"names":[],"mappings":";;;AAAA,kCAAiE;AAEpD,QAAA,aAAa,GAAe;IACvC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE;QACpB,YAAY,EAAE,UAAU;QACxB,YAAY,EAAE,eAAe;QA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
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.docnoformat = void 0;
|
|
4
|
-
const type_1 = require("../type");
|
|
5
|
-
exports.docnoformat = {
|
|
6
|
-
"type": "object",
|
|
7
|
-
"x-simpleapp-config": {
|
|
8
|
-
"documentType": "msg",
|
|
9
|
-
"documentName": "message",
|
|
10
|
-
"isolationType": type_1.IsolationType.tenant,
|
|
11
|
-
"documentTitle": "messageTitle"
|
|
12
|
-
},
|
|
13
|
-
"properties": {
|
|
14
|
-
"_id": { "type": "string" },
|
|
15
|
-
"created": { "type": "string" },
|
|
16
|
-
"updated": { "type": "string" },
|
|
17
|
-
"createdBy": { "type": "string" },
|
|
18
|
-
"updatedBy": { "type": "string" },
|
|
19
|
-
"tenantId": { "type": "integer", "default": 1 },
|
|
20
|
-
"orgId": { "type": "integer", "default": 1 },
|
|
21
|
-
"branchId": { "type": "integer", "default": 1 },
|
|
22
|
-
"messageTitle": {
|
|
23
|
-
"type": "string",
|
|
24
|
-
"minLength": 3
|
|
25
|
-
},
|
|
26
|
-
"read": { "type": "boolean", "default": false },
|
|
27
|
-
"url": { "type": "string" },
|
|
28
|
-
"description": {
|
|
29
|
-
"type": "string",
|
|
30
|
-
"format": "text"
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
//# sourceMappingURL=message.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"message.js","sourceRoot":"","sources":["../../src/buildinschemas/message.ts"],"names":[],"mappings":";;;AAAA,kCAA4D;AAE/C,QAAA,WAAW,GACxB;IACI,MAAM,EAAE,QAAQ;IAChB,oBAAoB,EAAE;QACpB,cAAc,EAAE,KAAK;QACrB,cAAc,EAAE,SAAS;QACzB,eAAe,EAAE,oBAAa,CAAC,MAAM;QACrC,eAAe,EAAE,cAAc;KAChC;IACD,YAAY,EAAE;QACZ,KAAK,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;QAC3B,SAAS,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;QAC/B,SAAS,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;QAC/B,WAAW,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;QACjC,WAAW,EAAE,EAAE,MAAM,EAAE,QAAQ,EAAE;QACjC,UAAU,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,EAAE;QAC/C,OAAO,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,EAAE;QAC5C,UAAU,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,CAAC,EAAE;QAC/C,cAAc,EAAE;YACd,MAAM,EAAE,QAAQ;YAChB,WAAW,EAAE,CAAC;SACf;QACD,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,SAAS,EAAE,KAAK,EAAC;QAC9C,KAAK,EAAC,EAAE,MAAM,EAAE,QAAQ,EAAC;QACzB,aAAa,EAAE;YACb,MAAM,EAAE,QAAQ;YAChB,QAAQ,EAAE,MAAM;SACjB;KACF;CACF,CAAA"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhookhistory.d.ts","sourceRoot":"","sources":["../../src/buildinschemas/webhookhistory.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,UAAU,EAA2B,MAAM,SAAS,CAAA;AAE5D,eAAO,MAAM,cAAc,EAAC,UAsC3B,CAAA"}
|
|
@@ -1,44 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.webhookhistory = void 0;
|
|
4
|
-
const type_1 = require("../type");
|
|
5
|
-
exports.webhookhistory = {
|
|
6
|
-
type: "object",
|
|
7
|
-
"x-simpleapp-config": {
|
|
8
|
-
documentType: 'webhookhistory',
|
|
9
|
-
documentName: 'webhookhistory',
|
|
10
|
-
isolationType: type_1.IsolationType.tenant,
|
|
11
|
-
// uniqueKey:'documentName',
|
|
12
|
-
// documentTitle:'documentName'
|
|
13
|
-
// pageType:"crud",
|
|
14
|
-
},
|
|
15
|
-
required: ["documentName", "url"],
|
|
16
|
-
properties: {
|
|
17
|
-
_id: { type: 'string' },
|
|
18
|
-
created: { type: 'string' },
|
|
19
|
-
updated: { type: 'string' },
|
|
20
|
-
createdBy: { type: 'string' },
|
|
21
|
-
updatedBy: { type: 'string' },
|
|
22
|
-
tenantId: { type: 'integer', default: 1, minimum: 0 },
|
|
23
|
-
orgId: { type: 'integer', default: 1, minimum: 0 },
|
|
24
|
-
branchId: { type: 'integer', default: 1, minimum: 0 },
|
|
25
|
-
webHookId: { type: "string", format: "uuid" },
|
|
26
|
-
url: { type: "string", format: 'uri' },
|
|
27
|
-
authentication: { type: "string" },
|
|
28
|
-
headers: {
|
|
29
|
-
type: "array",
|
|
30
|
-
items: {
|
|
31
|
-
type: "object",
|
|
32
|
-
description: "http headers",
|
|
33
|
-
properties: {
|
|
34
|
-
name: { type: 'string' },
|
|
35
|
-
value: { type: 'string' }
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
},
|
|
39
|
-
description: { type: "string", format: "text" },
|
|
40
|
-
setting: { type: "string", format: "text" },
|
|
41
|
-
result: { type: "string" }
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
//# sourceMappingURL=webhookhistory.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhookhistory.js","sourceRoot":"","sources":["../../src/buildinschemas/webhookhistory.ts"],"names":[],"mappings":";;;AAAA,kCAA4D;AAE/C,QAAA,cAAc,GAAc;IACrC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAC;QACnB,YAAY,EAAC,gBAAgB;QAC7B,YAAY,EAAC,gBAAgB;QAC7B,aAAa,EAAC,oBAAa,CAAC,MAAM;QAClC,4BAA4B;QAC5B,+BAA+B;QAC/B,yBAAyB;KAC1B;IACD,QAAQ,EAAC,CAAC,cAAc,EAAC,KAA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@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooklog.d.ts","sourceRoot":"","sources":["../../src/buildinschemas/webhooklog.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAA8B,MAAM,SAAS,CAAC;AAEjE,eAAO,MAAM,UAAU,EAAE,UAyExB,CAAC"}
|
|
@@ -1,79 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
-
exports.webhooklog = void 0;
|
|
4
|
-
const type_1 = require("../type");
|
|
5
|
-
exports.webhooklog = {
|
|
6
|
-
type: 'object',
|
|
7
|
-
'x-simpleapp-config': {
|
|
8
|
-
documentType: 'webhooklog',
|
|
9
|
-
documentName: 'webhooklog',
|
|
10
|
-
isolationType: type_1.IsolationType.branch,
|
|
11
|
-
uniqueKey: '_id',
|
|
12
|
-
resourceName: 'webhookLog'
|
|
13
|
-
},
|
|
14
|
-
required: ['title', 'webHookId', 'body', 'dataId', 'msg'],
|
|
15
|
-
properties: {
|
|
16
|
-
_id: {
|
|
17
|
-
type: 'string'
|
|
18
|
-
},
|
|
19
|
-
webHookId: {
|
|
20
|
-
type: 'string'
|
|
21
|
-
},
|
|
22
|
-
dataId: {
|
|
23
|
-
type: 'string'
|
|
24
|
-
},
|
|
25
|
-
created: {
|
|
26
|
-
type: 'string'
|
|
27
|
-
},
|
|
28
|
-
updated: {
|
|
29
|
-
type: 'string'
|
|
30
|
-
},
|
|
31
|
-
createdBy: {
|
|
32
|
-
type: 'string'
|
|
33
|
-
},
|
|
34
|
-
updatedBy: {
|
|
35
|
-
type: 'string'
|
|
36
|
-
},
|
|
37
|
-
tenantId: {
|
|
38
|
-
type: 'integer',
|
|
39
|
-
default: 1,
|
|
40
|
-
minimum: 0
|
|
41
|
-
},
|
|
42
|
-
orgId: {
|
|
43
|
-
type: 'integer',
|
|
44
|
-
default: 1,
|
|
45
|
-
minimum: 0
|
|
46
|
-
},
|
|
47
|
-
branchId: {
|
|
48
|
-
type: 'integer',
|
|
49
|
-
default: 1,
|
|
50
|
-
minimum: 0
|
|
51
|
-
},
|
|
52
|
-
title: {
|
|
53
|
-
type: 'string',
|
|
54
|
-
minLength: 3
|
|
55
|
-
},
|
|
56
|
-
resource: {
|
|
57
|
-
type: 'string'
|
|
58
|
-
},
|
|
59
|
-
actionName: {
|
|
60
|
-
type: 'string'
|
|
61
|
-
},
|
|
62
|
-
statusCode: {
|
|
63
|
-
type: 'number'
|
|
64
|
-
},
|
|
65
|
-
status: {
|
|
66
|
-
type: 'string',
|
|
67
|
-
enum: ['success', 'failed']
|
|
68
|
-
},
|
|
69
|
-
body: {
|
|
70
|
-
type: 'string',
|
|
71
|
-
format: 'text',
|
|
72
|
-
minLength: 3
|
|
73
|
-
},
|
|
74
|
-
msg: {
|
|
75
|
-
type: 'string'
|
|
76
|
-
}
|
|
77
|
-
}
|
|
78
|
-
};
|
|
79
|
-
//# sourceMappingURL=webhooklog.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"webhooklog.js","sourceRoot":"","sources":["../../src/buildinschemas/webhooklog.ts"],"names":[],"mappings":";;;AAAA,kCAAiE;AAEpD,QAAA,UAAU,GAAe;IACpC,IAAI,EAAE,QAAQ;IACd,oBAAoB,EAAE;QACpB,YAAY,EAAE,YAAY;QAC1B,YAAY,EAAE,YAAY;QAC1B,aAAa,EAAE,oBAAa,CAAC,MAAM;QACnC,SAAS,EAAE,KAAK;QAChB,YAAY,EAAE,YAAY;KAC3B;IACD,QAAQ,EAAE,CAAC,OAAO,EAAE,WAAW,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,CAAC;IACzD,UAAU,EAAE;QACV,GAAG,EAAE;YACH,IAAI,EAAE,QAAQ;SACf;QACD,SAAS,EAAE;YACT,IAAI,EAAE,QAAQ;SACf;QACD,MAAM,EAAE;YACN,IAAI,EAAE,QAAQ;SACf;QACD,OAAO,EAAE;YACP,IAAI,EAAE,QAAQ;SAC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