rez_core 2.2.49 → 2.2.52
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/dist/module/meta/controller/view-master.controller.d.ts +3 -0
- package/dist/module/meta/controller/view-master.controller.js +24 -1
- package/dist/module/meta/controller/view-master.controller.js.map +1 -1
- package/dist/module/meta/repository/view-master.repository.d.ts +4 -0
- package/dist/module/meta/repository/view-master.repository.js +12 -0
- package/dist/module/meta/repository/view-master.repository.js.map +1 -1
- package/dist/module/meta/service/view-master.service.d.ts +4 -0
- package/dist/module/meta/service/view-master.service.js +3 -0
- package/dist/module/meta/service/view-master.service.js.map +1 -1
- package/dist/module/notification/controller/otp.controller.d.ts +4 -0
- package/dist/module/notification/controller/otp.controller.js +7 -5
- package/dist/module/notification/controller/otp.controller.js.map +1 -1
- package/dist/module/notification/notification.module.js +2 -0
- package/dist/module/notification/notification.module.js.map +1 -1
- package/dist/module/notification/service/otp.service.d.ts +9 -2
- package/dist/module/notification/service/otp.service.js +36 -7
- package/dist/module/notification/service/otp.service.js.map +1 -1
- package/dist/module/workflow/controller/activity-log.controller.d.ts +8 -0
- package/dist/module/workflow/controller/activity-log.controller.js +45 -0
- package/dist/module/workflow/controller/activity-log.controller.js.map +1 -0
- package/dist/module/workflow/controller/form-master.controller.d.ts +3 -0
- package/dist/module/workflow/controller/form-master.controller.js +14 -0
- package/dist/module/workflow/controller/form-master.controller.js.map +1 -1
- package/dist/module/workflow/entity/action-resources-mapping.entity.d.ts +1 -0
- package/dist/module/workflow/entity/action-resources-mapping.entity.js +4 -0
- package/dist/module/workflow/entity/action-resources-mapping.entity.js.map +1 -1
- package/dist/module/workflow/entity/activity-log.entity.d.ts +19 -0
- package/dist/module/workflow/entity/activity-log.entity.js +86 -0
- package/dist/module/workflow/entity/activity-log.entity.js.map +1 -0
- package/dist/module/workflow/entity/form.entity.d.ts +9 -0
- package/dist/module/workflow/entity/form.entity.js +46 -0
- package/dist/module/workflow/entity/form.entity.js.map +1 -0
- package/dist/module/workflow/repository/action-data.repository.d.ts +3 -1
- package/dist/module/workflow/repository/action-data.repository.js +17 -2
- package/dist/module/workflow/repository/action-data.repository.js.map +1 -1
- package/dist/module/workflow/repository/activity-log.repository.d.ts +7 -0
- package/dist/module/workflow/repository/activity-log.repository.js +38 -0
- package/dist/module/workflow/repository/activity-log.repository.js.map +1 -0
- package/dist/module/workflow/repository/form-master.repository.d.ts +4 -1
- package/dist/module/workflow/repository/form-master.repository.js +18 -2
- package/dist/module/workflow/repository/form-master.repository.js.map +1 -1
- package/dist/module/workflow/repository/form.repository.d.ts +0 -0
- package/dist/module/workflow/repository/form.repository.js +1 -0
- package/dist/module/workflow/repository/form.repository.js.map +1 -0
- package/dist/module/workflow/repository/stage-movement.repository.js +3 -1
- package/dist/module/workflow/repository/stage-movement.repository.js.map +1 -1
- package/dist/module/workflow/service/action.service.js +1 -0
- package/dist/module/workflow/service/action.service.js.map +1 -1
- package/dist/module/workflow/service/activity-log.service.d.ts +9 -0
- package/dist/module/workflow/service/activity-log.service.js +30 -0
- package/dist/module/workflow/service/activity-log.service.js.map +1 -0
- package/dist/module/workflow/service/form-master.service.d.ts +1 -0
- package/dist/module/workflow/service/form-master.service.js +8 -0
- package/dist/module/workflow/service/form-master.service.js.map +1 -1
- package/dist/module/workflow/workflow.module.js +16 -0
- package/dist/module/workflow/workflow.module.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/meta/controller/view-master.controller.ts +69 -41
- package/src/module/meta/repository/view-master.repository.ts +15 -1
- package/src/module/meta/service/view-master.service.ts +7 -0
- package/src/module/notification/controller/otp.controller.ts +7 -6
- package/src/module/notification/notification.module.ts +3 -1
- package/src/module/notification/service/otp.service.ts +57 -11
- package/src/module/workflow/controller/activity-log.controller.ts +35 -0
- package/src/module/workflow/controller/form-master.controller.ts +8 -0
- package/src/module/workflow/entity/action-resources-mapping.entity.ts +3 -0
- package/src/module/workflow/entity/activity-log.entity.ts +55 -0
- package/src/module/workflow/entity/form.entity.ts +25 -0
- package/src/module/workflow/repository/action-data.repository.ts +18 -1
- package/src/module/workflow/repository/activity-log.repository.ts +20 -0
- package/src/module/workflow/repository/form-master.repository.ts +19 -0
- package/src/module/workflow/repository/form.repository.ts +0 -0
- package/src/module/workflow/repository/stage-movement.repository.ts +3 -1
- package/src/module/workflow/service/action.service.ts +1 -0
- package/src/module/workflow/service/activity-log.service.ts +24 -0
- package/src/module/workflow/service/form-master.service.ts +10 -0
- package/src/module/workflow/workflow.module.ts +17 -0
|
@@ -4,4 +4,7 @@ export declare class ViewMasterController {
|
|
|
4
4
|
private readonly viewMaster;
|
|
5
5
|
constructor(viewMaster: ViewMasterService);
|
|
6
6
|
getEntityJsonByType(entityType: string, type: string, res: Response): Promise<Response<any, Record<string, any>>>;
|
|
7
|
+
getDropdownData(req: Request & {
|
|
8
|
+
user: any;
|
|
9
|
+
}, query: Record<string, string>, res: Response): Promise<Response<any, Record<string, any>>>;
|
|
7
10
|
}
|
|
@@ -42,6 +42,20 @@ let ViewMasterController = class ViewMasterController {
|
|
|
42
42
|
});
|
|
43
43
|
}
|
|
44
44
|
}
|
|
45
|
+
async getDropdownData(req, query, res) {
|
|
46
|
+
const loggedInUser = req.user.userData;
|
|
47
|
+
const entityType = query.entity_type;
|
|
48
|
+
if (!entityType) {
|
|
49
|
+
return res.status(common_1.HttpStatus.BAD_REQUEST).json({
|
|
50
|
+
success: false,
|
|
51
|
+
message: 'Missing entity_type query parameter',
|
|
52
|
+
});
|
|
53
|
+
}
|
|
54
|
+
const result = await this.viewMaster.getViewMasterByEntityType(entityType, loggedInUser);
|
|
55
|
+
return res.status(common_1.HttpStatus.OK).json({
|
|
56
|
+
data: result,
|
|
57
|
+
});
|
|
58
|
+
}
|
|
45
59
|
};
|
|
46
60
|
exports.ViewMasterController = ViewMasterController;
|
|
47
61
|
__decorate([
|
|
@@ -53,10 +67,19 @@ __decorate([
|
|
|
53
67
|
__metadata("design:paramtypes", [String, String, Object]),
|
|
54
68
|
__metadata("design:returntype", Promise)
|
|
55
69
|
], ViewMasterController.prototype, "getEntityJsonByType", null);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, common_1.Get)('view_master/dropdown'),
|
|
72
|
+
__param(0, (0, common_1.Req)()),
|
|
73
|
+
__param(1, (0, common_1.Query)()),
|
|
74
|
+
__param(2, (0, common_1.Res)()),
|
|
75
|
+
__metadata("design:type", Function),
|
|
76
|
+
__metadata("design:paramtypes", [Object, Object, Object]),
|
|
77
|
+
__metadata("design:returntype", Promise)
|
|
78
|
+
], ViewMasterController.prototype, "getDropdownData", null);
|
|
56
79
|
exports.ViewMasterController = ViewMasterController = __decorate([
|
|
57
80
|
(0, common_1.Controller)('entity'),
|
|
58
81
|
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
59
|
-
__param(0, (0, common_1.Inject)(
|
|
82
|
+
__param(0, (0, common_1.Inject)('ViewMasterService')),
|
|
60
83
|
__metadata("design:paramtypes", [view_master_service_1.ViewMasterService])
|
|
61
84
|
], ViewMasterController);
|
|
62
85
|
//# sourceMappingURL=view-master.controller.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-master.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/view-master.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"view-master.controller.js","sourceRoot":"","sources":["../../../../src/module/meta/controller/view-master.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,2DAA2D;AAE3D,wEAAmE;AAI5D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YACgD,UAA6B;QAA7B,eAAU,GAAV,UAAU,CAAmB;IAC1E,CAAC;IAGE,AAAN,KAAK,CAAC,mBAAmB,CACD,UAAkB,EACzB,IAAY,EACpB,GAAa;QAEpB,IAAI,CAAC;YACH,IAAI,CAAC,UAAU,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,CAAC,CAAC,IAAI,CAAC;YACpC,IAAI,EAAE,MAAM;SACb,CAAC,CAAC;IACL,CAAC;CACF,CAAA;AA3DY,oDAAoB;AAMzB;IADL,IAAA,YAAG,EAAC,YAAY,CAAC;IAEf,WAAA,IAAA,cAAK,EAAC,aAAa,CAAC,CAAA;IACpB,WAAA,IAAA,cAAK,EAAC,MAAM,CAAC,CAAA;IACb,WAAA,IAAA,YAAG,GAAE,CAAA;;;;+DAuBP;AAGK;IADL,IAAA,YAAG,EAAC,sBAAsB,CAAC;IAEzB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,cAAK,GAAE,CAAA;IACP,WAAA,IAAA,YAAG,GAAE,CAAA;;;;2DAoBP;+BA1DU,oBAAoB;IAFhC,IAAA,mBAAU,EAAC,QAAQ,CAAC;IACpB,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAGnB,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;qCAA8B,uCAAiB;GAFlE,oBAAoB,CA2DhC"}
|
|
@@ -4,4 +4,8 @@ export declare class ViewMaterRespository {
|
|
|
4
4
|
private readonly viewMasterRepository;
|
|
5
5
|
constructor(viewMasterRepository: Repository<ViewMaster>);
|
|
6
6
|
getEntityJson(entityType: string, type: string): Promise<ViewMaster | null>;
|
|
7
|
+
findByEntityType(entityType: string, organizationId: number): Promise<{
|
|
8
|
+
label: string;
|
|
9
|
+
value: number;
|
|
10
|
+
}[]>;
|
|
7
11
|
}
|
|
@@ -28,6 +28,18 @@ let ViewMaterRespository = class ViewMaterRespository {
|
|
|
28
28
|
});
|
|
29
29
|
return viewMaster;
|
|
30
30
|
}
|
|
31
|
+
async findByEntityType(entityType, organizationId) {
|
|
32
|
+
const viewMasters = await this.viewMasterRepository.find({
|
|
33
|
+
where: {
|
|
34
|
+
mapped_entity_type: entityType,
|
|
35
|
+
organization_id: organizationId,
|
|
36
|
+
},
|
|
37
|
+
});
|
|
38
|
+
return viewMasters.map((vm) => ({
|
|
39
|
+
label: vm.name,
|
|
40
|
+
value: vm.id,
|
|
41
|
+
}));
|
|
42
|
+
}
|
|
31
43
|
};
|
|
32
44
|
exports.ViewMaterRespository = ViewMaterRespository;
|
|
33
45
|
exports.ViewMaterRespository = ViewMaterRespository = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-master.repository.js","sourceRoot":"","sources":["../../../../src/module/meta/repository/view-master.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAAiD;AACjD,qEAA0D;AAGnD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAEmB,oBAA4C;QAA5C,yBAAoB,GAApB,oBAAoB,CAAwB;IAC5D,CAAC;IAEJ,KAAK,CAAC,aAAa,CACjB,UAAkB,EAClB,IAAY;QAEZ,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC;YAC3D,kBAAkB,EAAE,UAAU;YAC9B,IAAI,EAAE,IAAI;SACX,CAAC,CAAC;QAEH,OAAO,UAAU,CAAC;IACpB,CAAC;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"view-master.repository.js","sourceRoot":"","sources":["../../../../src/module/meta/repository/view-master.repository.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAA4C;AAC5C,6CAAmD;AACnD,qCAAiD;AACjD,qEAA0D;AAGnD,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAEmB,oBAA4C;QAA5C,yBAAoB,GAApB,oBAAoB,CAAwB;IAC5D,CAAC;IAEJ,KAAK,CAAC,aAAa,CACjB,UAAkB,EAClB,IAAY;QAEZ,MAAM,UAAU,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,SAAS,CAAC;YAC3D,kBAAkB,EAAE,UAAU;YAC9B,IAAI,EAAE,IAAI;SACX,CAAC,CAAC;QAEH,OAAO,UAAU,CAAC;IACpB,CAAC;IAED,KAAK,CAAC,gBAAgB,CAAC,UAAkB,EAAE,cAAsB;QAC/D,MAAM,WAAW,GAAG,MAAM,IAAI,CAAC,oBAAoB,CAAC,IAAI,CAAC;YACvD,KAAK,EAAE;gBACL,kBAAkB,EAAE,UAAU;gBAC9B,eAAe,EAAE,cAAc;aAChC;SACF,CAAC,CAAC;QAEH,OAAO,WAAW,CAAC,GAAG,CAAC,CAAC,EAAE,EAAE,EAAE,CAAC,CAAC;YAC9B,KAAK,EAAE,EAAE,CAAC,IAAI;YACd,KAAK,EAAE,EAAE,CAAC,EAAE;SACb,CAAC,CAAC,CAAC;IACN,CAAC;CACF,CAAA;AA/BY,oDAAoB;+BAApB,oBAAoB;IADhC,IAAA,mBAAU,GAAE;IAGR,WAAA,IAAA,0BAAgB,EAAC,+BAAU,CAAC,CAAA;qCACU,oBAAU;GAHxC,oBAAoB,CA+BhC"}
|
|
@@ -19,4 +19,8 @@ export declare class ViewMasterService extends EntityServiceImpl {
|
|
|
19
19
|
formFieldJson?: undefined;
|
|
20
20
|
}>;
|
|
21
21
|
getEntityData(entityType: string, id: number, loggedInUserData?: UserData | null): Promise<BaseEntity | null>;
|
|
22
|
+
getViewMasterByEntityType(entityType: string, loggedInUser: UserData): Promise<{
|
|
23
|
+
label: string;
|
|
24
|
+
value: number;
|
|
25
|
+
}[]>;
|
|
22
26
|
}
|
|
@@ -46,6 +46,9 @@ let ViewMasterService = class ViewMasterService extends entity_service_impl_serv
|
|
|
46
46
|
async getEntityData(entityType, id, loggedInUserData) {
|
|
47
47
|
return await super.getEntityData(entityType, id, loggedInUserData);
|
|
48
48
|
}
|
|
49
|
+
async getViewMasterByEntityType(entityType, loggedInUser) {
|
|
50
|
+
return await this.viewMasterRepoService.findByEntityType(entityType, loggedInUser.organization_id);
|
|
51
|
+
}
|
|
49
52
|
};
|
|
50
53
|
exports.ViewMasterService = ViewMasterService;
|
|
51
54
|
exports.ViewMasterService = ViewMasterService = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"view-master.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/view-master.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+EAAkE;AASlE,iFAA4E;AAErE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+CAAiB;IACtD,YAGmB,qBAA2C;QAE5D,KAAK,EAAE,CAAC;QAFS,0BAAqB,GAArB,qBAAqB,CAAsB;IAG9D,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAAsB,EACtB,OAAuB;QAEvB,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAC/D,UAAU,CAAC,WAAW,EACtB,YAAY,CACb,CAAC;QACF,UAAU,CAAC,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC;QACvC,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;QAElD,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,CAC1C,UAAU,EACV,YAAY,EACZ,OAAO,CACR,CAAC;QAEF,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,gBAA0B;QAE1B,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,YAAY,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;QACnE,OAAO,GAAG,CAAC;IACb,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,UAAkB,EAAE,IAAY;QAClD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,aAAa,CACxD,UAAU,EACV,IAAI,CACL,CAAC;QAEF,IAAI,IAAI,IAAI,MAAM,EAAE,CAAC;YACnB,OAAO;gBACL,cAAc,EAAE,GAAG,EAAE,qBAAqB;gBAC1C,aAAa,EAAE,GAAG,EAAE,qBAAqB;aAC1C,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,OAAO;gBACL,QAAQ,EAAE,GAAG,EAAE,SAAS;aACzB,CAAC;QACJ,CAAC;IACH,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,UAAkB,EAClB,EAAU,EACV,gBAAkC;QAElC,OAAO,MAAM,KAAK,CAAC,aAAa,CAAC,UAAU,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAC;IACrE,CAAC;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"view-master.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/view-master.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,+EAAkE;AASlE,iFAA4E;AAErE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+CAAiB;IACtD,YAGmB,qBAA2C;QAE5D,KAAK,EAAE,CAAC;QAFS,0BAAqB,GAArB,qBAAqB,CAAsB;IAG9D,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAAsB,EACtB,OAAuB;QAEvB,MAAM,YAAY,GAAG,MAAM,IAAI,CAAC,mBAAmB,CAAC,aAAa,CAC/D,UAAU,CAAC,WAAW,EACtB,YAAY,CACb,CAAC;QACF,UAAU,CAAC,SAAS,GAAG,YAAY,CAAC,EAAE,CAAC;QACvC,UAAU,CAAC,WAAW,GAAG,YAAY,CAAC,WAAW,CAAC;QAElD,MAAM,WAAW,GAAG,MAAM,KAAK,CAAC,YAAY,CAC1C,UAAU,EACV,YAAY,EACZ,OAAO,CACR,CAAC;QAEF,OAAO,WAAW,CAAC;IACrB,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,gBAA0B;QAE1B,MAAM,GAAG,GAAG,MAAM,KAAK,CAAC,YAAY,CAAC,UAAU,EAAE,gBAAgB,CAAC,CAAC;QACnE,OAAO,GAAG,CAAC;IACb,CAAC;IAED,KAAK,CAAC,aAAa,CAAC,UAAkB,EAAE,IAAY;QAClD,MAAM,GAAG,GAAG,MAAM,IAAI,CAAC,qBAAqB,CAAC,aAAa,CACxD,UAAU,EACV,IAAI,CACL,CAAC;QAEF,IAAI,IAAI,IAAI,MAAM,EAAE,CAAC;YACnB,OAAO;gBACL,cAAc,EAAE,GAAG,EAAE,qBAAqB;gBAC1C,aAAa,EAAE,GAAG,EAAE,qBAAqB;aAC1C,CAAC;QACJ,CAAC;aAAM,CAAC;YACN,OAAO;gBACL,QAAQ,EAAE,GAAG,EAAE,SAAS;aACzB,CAAC;QACJ,CAAC;IACH,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,UAAkB,EAClB,EAAU,EACV,gBAAkC;QAElC,OAAO,MAAM,KAAK,CAAC,aAAa,CAAC,UAAU,EAAE,EAAE,EAAE,gBAAgB,CAAC,CAAC;IACrE,CAAC;IAED,KAAK,CAAC,yBAAyB,CAAC,UAAkB,EAAE,YAAsB;QACxE,OAAO,MAAM,IAAI,CAAC,qBAAqB,CAAC,gBAAgB,CACtD,UAAU,EACV,YAAY,CAAC,eAAe,CAC7B,CAAC;IACJ,CAAC;CACF,CAAA;AAtEY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAK+B,6CAAoB;GAJnD,iBAAiB,CAsE7B"}
|
|
@@ -35,13 +35,15 @@ let OtpController = class OtpController {
|
|
|
35
35
|
return { otp_id: otp.otp_id, success: true };
|
|
36
36
|
}
|
|
37
37
|
async verifyOtp(request) {
|
|
38
|
-
let
|
|
39
|
-
|
|
40
|
-
let verify = await this.otpService.verifyOtp(otp, otpId);
|
|
41
|
-
if (!verify) {
|
|
38
|
+
let verify = await this.otpService.verifyOtp(request);
|
|
39
|
+
if (!verify.isValid) {
|
|
42
40
|
throw new common_1.BadRequestException('Invalid OTP!');
|
|
43
41
|
}
|
|
44
|
-
return {
|
|
42
|
+
return {
|
|
43
|
+
message: 'OTP verified successfully!',
|
|
44
|
+
success: true,
|
|
45
|
+
data: verify,
|
|
46
|
+
};
|
|
45
47
|
}
|
|
46
48
|
async sendMail(body) {
|
|
47
49
|
return await this.emailService.sendEmailWithDynamicTemplate(body.to, body.subject, body.templateCode, body.payload);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otp.controller.js","sourceRoot":"","sources":["../../../../src/module/notification/controller/otp.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,wDAAoD;AACpD,2CAA+C;AAC/C,4DAAwD;AAGjD,IAAM,aAAa,GAAnB,MAAM,aAAa;IACxB,YACmB,UAAsB,EACtB,YAA0B,EACnC,aAA4B;QAFnB,eAAU,GAAV,UAAU,CAAY;QACtB,iBAAY,GAAZ,YAAY,CAAc;QACnC,kBAAa,GAAb,aAAa,CAAe;QAGtC,cAAS,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,GAAG,CAAC;QACxD,cAAS,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,GAAG,CAAC;IAHrD,CAAC;IAOE,AAAN,KAAK,CAAC,WAAW,CAAS,OAAY;QACpC,IAAI,UAAU,GAAG,OAAO,CAAC,UAAU,CAAC;QACpC,IAAI,OAAO,GAAG,OAAO,CAAC,OAAO,CAAC;QAE9B,IAAI,CAAC,UAAU,IAAI,CAAC,OAAO,EAAE,CAAC;YAC5B,MAAM,IAAI,4BAAmB,CAAC,gCAAgC,CAAC,CAAC;QAClE,CAAC;QACD,IAAI,GAAG,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,QAAQ,CACtC,UAAU,EACV,OAAO,EACP,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,EACxB,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CACzB,CAAC;QACF,OAAO,EAAE,MAAM,EAAE,GAAG,CAAC,MAAM,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAC/C,CAAC;IAIK,AAAN,KAAK,CAAC,SAAS,CAAS,OAAY;QAClC,IAAI,
|
|
1
|
+
{"version":3,"file":"otp.controller.js","sourceRoot":"","sources":["../../../../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AC;QAChD,CAAC;QACD,OAAO;YACL,OAAO,EAAE,4BAA4B;YACrC,OAAO,EAAE,IAAI;YACb,IAAI,EAAE,MAAM;SACb,CAAC;IACJ,CAAC;IAIK,AAAN,KAAK,CAAC,QAAQ,CAEZ,IAKC;QAGD,OAAO,MAAM,IAAI,CAAC,YAAY,CAAC,4BAA4B,CACzD,IAAI,CAAC,EAAE,EACP,IAAI,CAAC,OAAO,EACZ,IAAI,CAAC,YAAY,EACjB,IAAI,CAAC,OAAO,CACb,CAAC;IACJ,CAAC;CACF,CAAA;AA7DY,sCAAa;AAYlB;IAFL,IAAA,aAAI,EAAC,UAAU,CAAC;IAChB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IACL,WAAA,IAAA,aAAI,GAAE,CAAA;;;;gDAcxB;AAIK;IAFL,IAAA,aAAI,EAAC,QAAQ,CAAC;IACd,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IACP,WAAA,IAAA,aAAI,GAAE,CAAA;;;;8CAUtB;AAIK;IAFL,IAAA,aAAI,EAAC,WAAW,CAAC;IACjB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,aAAI,GAAE,CAAA;;;;6CAeR;wBA5DU,aAAa;IADzB,IAAA,mBAAU,EAAC,KAAK,CAAC;qCAGe,wBAAU;QACR,4BAAY;QACpB,sBAAa;GAJ3B,aAAa,CA6DzB"}
|
|
@@ -18,6 +18,7 @@ const handlebars_adapter_1 = require("@nestjs-modules/mailer/dist/adapters/handl
|
|
|
18
18
|
const email_service_1 = require("./service/email.service");
|
|
19
19
|
const path_1 = require("path");
|
|
20
20
|
const config_1 = require("@nestjs/config");
|
|
21
|
+
const auth_module_1 = require("../auth/auth.module");
|
|
21
22
|
let NotificationModule = class NotificationModule {
|
|
22
23
|
};
|
|
23
24
|
exports.NotificationModule = NotificationModule;
|
|
@@ -50,6 +51,7 @@ exports.NotificationModule = NotificationModule = __decorate([
|
|
|
50
51
|
},
|
|
51
52
|
}),
|
|
52
53
|
}),
|
|
54
|
+
auth_module_1.AuthModule,
|
|
53
55
|
],
|
|
54
56
|
providers: [otp_service_1.OtpService, otp_repository_1.OtpRepository, email_service_1.EmailService],
|
|
55
57
|
exports: [otp_service_1.OtpService, email_service_1.EmailService],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"notification.module.js","sourceRoot":"","sources":["../../../src/module/notification/notification.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,
|
|
1
|
+
{"version":3,"file":"notification.module.js","sourceRoot":"","sources":["../../../src/module/notification/notification.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAoD;AACpD,uDAAmD;AACnD,gEAA4D;AAC5D,6CAAgD;AAChD,oDAA0C;AAC1C,gEAA4D;AAC5D,mDAAsD;AACtD,gGAA4F;AAC5F,2DAAuD;AACvD,+BAA4B;AAC5B,2CAA6D;AAC7D,qDAAiD;AAoC1C,IAAM,kBAAkB,GAAxB,MAAM,kBAAkB;CAAG,CAAA;AAArB,gDAAkB;6BAAlB,kBAAkB;IAlC9B,IAAA,eAAM,EAAC;QACN,OAAO,EAAE;YACP,uBAAa,CAAC,UAAU,CAAC,CAAC,gBAAG,CAAC,CAAC;YAC/B,qBAAY,CAAC,YAAY,CAAC;gBACxB,OAAO,EAAE,CAAC,qBAAY,CAAC;gBACvB,MAAM,EAAE,CAAC,sBAAa,CAAC;gBACvB,UAAU,EAAE,CAAC,aAA4B,EAAE,EAAE,CAAC,CAAC;oBAC7C,SAAS,EAAE;wBACT,IAAI,EAAE,gBAAgB;wBACtB,IAAI,EAAE,GAAG;wBACT,MAAM,EAAE,IAAI;wBACZ,IAAI,EAAE;4BACJ,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC;4BACrC,IAAI,EAAE,aAAa,CAAC,GAAG,CAAC,gBAAgB,CAAC;yBAC1C;qBACF;oBACD,QAAQ,EAAE;wBACR,IAAI,EAAE,aAAa,GAAG,OAAO,CAAC,GAAG,CAAC,UAAU,GAAG,GAAG;qBACnD;oBACD,QAAQ,EAAE;wBACR,GAAG,EAAE,IAAA,WAAI,EAAC,SAAS,EAAE,IAAI,EAAE,IAAI,EAAE,WAAW,CAAC;wBAC7C,OAAO,EAAE,IAAI,sCAAiB,EAAE;wBAChC,OAAO,EAAE;4BACP,MAAM,EAAE,IAAI;yBACb;qBACF;iBACF,CAAC;aACH,CAAC;YACF,wBAAU;SACX;QACD,SAAS,EAAE,CAAC,wBAAU,EAAE,8BAAa,EAAE,4BAAY,CAAC;QACpD,OAAO,EAAE,CAAC,wBAAU,EAAE,4BAAY,CAAC;QACnC,WAAW,EAAE,CAAC,8BAAa,CAAC;KAC7B,CAAC;GACW,kBAAkB,CAAG"}
|
|
@@ -2,15 +2,22 @@ import { OtpRepository } from '../repository/otp.repository';
|
|
|
2
2
|
import { Otp } from '../entity/otp.entity';
|
|
3
3
|
import { ClockIDGenService } from '../../../utils/service/clockIDGenUtil.service';
|
|
4
4
|
import { ConfigService } from '@nestjs/config';
|
|
5
|
+
import { DataSource } from 'typeorm';
|
|
6
|
+
import { JwtAuthService } from 'src/module/auth/services/jwt.service';
|
|
5
7
|
export declare class OtpService {
|
|
6
8
|
private readonly otpRepository;
|
|
7
9
|
private readonly idGen;
|
|
8
10
|
private configService;
|
|
9
|
-
|
|
11
|
+
private readonly jwtAuthService;
|
|
12
|
+
private databaseSource;
|
|
13
|
+
constructor(otpRepository: OtpRepository, idGen: ClockIDGenService, configService: ConfigService, jwtAuthService: JwtAuthService, databaseSource: DataSource);
|
|
10
14
|
VERIFY_OTP: any;
|
|
11
15
|
DEFAULT_OTP: any;
|
|
12
16
|
generate(identifier: string, service: string, expiresIn?: number, otpLength?: number): Promise<Otp>;
|
|
13
|
-
verifyOtp(
|
|
17
|
+
verifyOtp(request: any): Promise<{
|
|
18
|
+
isValid: boolean;
|
|
19
|
+
access_token: string;
|
|
20
|
+
}>;
|
|
14
21
|
findByOtpId(otpId: string): Promise<Otp | null>;
|
|
15
22
|
private generateOtp;
|
|
16
23
|
}
|
|
@@ -15,11 +15,15 @@ const otp_repository_1 = require("../repository/otp.repository");
|
|
|
15
15
|
const otp_entity_1 = require("../entity/otp.entity");
|
|
16
16
|
const clockIDGenUtil_service_1 = require("../../../utils/service/clockIDGenUtil.service");
|
|
17
17
|
const config_1 = require("@nestjs/config");
|
|
18
|
+
const typeorm_1 = require("typeorm");
|
|
19
|
+
const jwt_service_1 = require("../../auth/services/jwt.service");
|
|
18
20
|
let OtpService = class OtpService {
|
|
19
|
-
constructor(otpRepository, idGen, configService) {
|
|
21
|
+
constructor(otpRepository, idGen, configService, jwtAuthService, databaseSource) {
|
|
20
22
|
this.otpRepository = otpRepository;
|
|
21
23
|
this.idGen = idGen;
|
|
22
24
|
this.configService = configService;
|
|
25
|
+
this.jwtAuthService = jwtAuthService;
|
|
26
|
+
this.databaseSource = databaseSource;
|
|
23
27
|
this.VERIFY_OTP = this.configService.get('VERIFY_OTP') || 'true';
|
|
24
28
|
this.DEFAULT_OTP = this.configService.get('DEFAULT_OTP') || '123456';
|
|
25
29
|
}
|
|
@@ -28,24 +32,47 @@ let OtpService = class OtpService {
|
|
|
28
32
|
otp.created_date = new Date();
|
|
29
33
|
otp.otp_id = this.idGen.idGenerator();
|
|
30
34
|
otp.identifier = identifier;
|
|
31
|
-
otp.otp =
|
|
35
|
+
otp.otp =
|
|
36
|
+
'true' === this.VERIFY_OTP
|
|
37
|
+
? this.generateOtp(otpLength)
|
|
38
|
+
: this.DEFAULT_OTP;
|
|
32
39
|
otp.service = service;
|
|
33
40
|
otp.verified = 0;
|
|
34
41
|
otp.expiration_date = new Date(Date.now() + expiresIn * 60 * 1000);
|
|
35
42
|
return await this.otpRepository.save(otp);
|
|
36
43
|
}
|
|
37
|
-
async verifyOtp(
|
|
44
|
+
async verifyOtp(request) {
|
|
45
|
+
let verifyOTPResponse = { isValid: false, access_token: '' };
|
|
46
|
+
let otp = request.otp;
|
|
47
|
+
let otpId = request.otp_id;
|
|
38
48
|
let otpEntity = await this.findByOtpId(otpId);
|
|
39
49
|
if (otpEntity) {
|
|
40
|
-
if (otpEntity.otp === otp &&
|
|
50
|
+
if (otpEntity.otp === otp &&
|
|
51
|
+
new Date(Date.now()) <= otpEntity.expiration_date &&
|
|
52
|
+
0 === otpEntity.verified) {
|
|
41
53
|
otpEntity.verified = 1;
|
|
42
54
|
const updatedOtp = await this.otpRepository.update(otpEntity.id, otpEntity);
|
|
43
55
|
if (updatedOtp) {
|
|
44
|
-
|
|
56
|
+
verifyOTPResponse.isValid = true;
|
|
45
57
|
}
|
|
46
58
|
}
|
|
47
59
|
}
|
|
48
|
-
|
|
60
|
+
if (verifyOTPResponse.isValid && request.entity) {
|
|
61
|
+
const entity_type = request.entity.entity_type;
|
|
62
|
+
const entity_id = request.entity.entity_id;
|
|
63
|
+
const entityData = await this.databaseSource.query(`SELECT level_id, level_type, organization_id FROM ether_core.crm_lead where id = ${entity_id}`);
|
|
64
|
+
if (entityData.length > 0) {
|
|
65
|
+
const level_id = entityData[0].level_id;
|
|
66
|
+
const level_type = entityData[0].level_type;
|
|
67
|
+
const organization_id = entityData[0].organization_id;
|
|
68
|
+
verifyOTPResponse.access_token = await this.jwtAuthService.generateJwt({
|
|
69
|
+
level_id: level_id,
|
|
70
|
+
level_type: level_type,
|
|
71
|
+
organization_id: organization_id,
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
}
|
|
75
|
+
return verifyOTPResponse;
|
|
49
76
|
}
|
|
50
77
|
async findByOtpId(otpId) {
|
|
51
78
|
return await this.otpRepository.findByOtpId(otpId);
|
|
@@ -61,6 +88,8 @@ exports.OtpService = OtpService = __decorate([
|
|
|
61
88
|
(0, common_1.Injectable)(),
|
|
62
89
|
__metadata("design:paramtypes", [otp_repository_1.OtpRepository,
|
|
63
90
|
clockIDGenUtil_service_1.ClockIDGenService,
|
|
64
|
-
config_1.ConfigService
|
|
91
|
+
config_1.ConfigService,
|
|
92
|
+
jwt_service_1.JwtAuthService,
|
|
93
|
+
typeorm_1.DataSource])
|
|
65
94
|
], OtpService);
|
|
66
95
|
//# sourceMappingURL=otp.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"otp.service.js","sourceRoot":"","sources":["../../../../src/module/notification/service/otp.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,iEAA6D;AAC7D,qDAA2C;AAC3C,0FAAkF;AAClF,2CAA+C;
|
|
1
|
+
{"version":3,"file":"otp.service.js","sourceRoot":"","sources":["../../../../src/module/notification/service/otp.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,iEAA6D;AAC7D,qDAA2C;AAC3C,0FAAkF;AAClF,2CAA+C;AAC/C,qCAAqC;AACrC,iEAAsE;AAG/D,IAAM,UAAU,GAAhB,MAAM,UAAU;IACrB,YACmB,aAA4B,EAC5B,KAAwB,EACjC,aAA4B,EAEnB,cAA8B,EACvC,cAA0B;QALjB,kBAAa,GAAb,aAAa,CAAe;QAC5B,UAAK,GAAL,KAAK,CAAmB;QACjC,kBAAa,GAAb,aAAa,CAAe;QAEnB,mBAAc,GAAd,cAAc,CAAgB;QACvC,mBAAc,GAAd,cAAc,CAAY;QAGpC,eAAU,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,YAAY,CAAC,IAAI,MAAM,CAAC;QAC5D,gBAAW,GAAG,IAAI,CAAC,aAAa,CAAC,GAAG,CAAC,aAAa,CAAC,IAAI,QAAQ,CAAC;IAH7D,CAAC;IAKJ,KAAK,CAAC,QAAQ,CACZ,UAAkB,EAClB,OAAe,EACf,YAAoB,CAAC,EACrB,YAAoB,CAAC;QAErB,IAAI,GAAG,GAAG,IAAI,gBAAG,EAAE,CAAC;QACpB,GAAG,CAAC,YAAY,GAAG,IAAI,IAAI,EAAE,CAAC;QAC9B,GAAG,CAAC,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,W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AQ,EAAE,CAAC;IACtE,CAAC;CACF,CAAA;AA5FY,gCAAU;qBAAV,UAAU;IADtB,IAAA,mBAAU,GAAE;qCAGuB,8BAAa;QACrB,0CAAiB;QAClB,sBAAa;QAEH,4BAAc;QACvB,oBAAU;GAPzB,UAAU,CA4FtB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ActivityLogService } from '../service/activity-log.service';
|
|
2
|
+
export declare class ActivityLogController {
|
|
3
|
+
private readonly activityLogService;
|
|
4
|
+
constructor(activityLogService: ActivityLogService);
|
|
5
|
+
getAllActivityLog(req: Request & {
|
|
6
|
+
user: any;
|
|
7
|
+
}, mapped_entity_type: string): Promise<import("../entity/activity-log.entity").ActivityLog[]>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
var __param = (this && this.__param) || function (paramIndex, decorator) {
|
|
12
|
+
return function (target, key) { decorator(target, key, paramIndex); }
|
|
13
|
+
};
|
|
14
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
15
|
+
exports.ActivityLogController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const jwt_guard_1 = require("../../auth/guards/jwt.guard");
|
|
18
|
+
const activity_log_service_1 = require("../service/activity-log.service");
|
|
19
|
+
let ActivityLogController = class ActivityLogController {
|
|
20
|
+
constructor(activityLogService) {
|
|
21
|
+
this.activityLogService = activityLogService;
|
|
22
|
+
}
|
|
23
|
+
async getAllActivityLog(req, mapped_entity_type) {
|
|
24
|
+
const loggedInUser = req.user.userData;
|
|
25
|
+
const result = this.activityLogService.getAllActivityLog(mapped_entity_type, loggedInUser);
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.ActivityLogController = ActivityLogController;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, common_1.Post)('/get-all-activity-log'),
|
|
32
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
33
|
+
__param(0, (0, common_1.Req)()),
|
|
34
|
+
__param(1, (0, common_1.Body)('entity_type')),
|
|
35
|
+
__metadata("design:type", Function),
|
|
36
|
+
__metadata("design:paramtypes", [Object, String]),
|
|
37
|
+
__metadata("design:returntype", Promise)
|
|
38
|
+
], ActivityLogController.prototype, "getAllActivityLog", null);
|
|
39
|
+
exports.ActivityLogController = ActivityLogController = __decorate([
|
|
40
|
+
(0, common_1.Controller)('/activity-log'),
|
|
41
|
+
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
42
|
+
__param(0, (0, common_1.Inject)('ActivityLogService')),
|
|
43
|
+
__metadata("design:paramtypes", [activity_log_service_1.ActivityLogService])
|
|
44
|
+
], ActivityLogController);
|
|
45
|
+
//# sourceMappingURL=activity-log.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-log.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/activity-log.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,2DAAgE;AAChE,0EAAqE;AAK9D,IAAM,qBAAqB,GAA3B,MAAM,qBAAqB;IAChC,YAEmB,kBAAsC;QAAtC,uBAAkB,GAAlB,kBAAkB,CAAoB;IACtD,CAAC;IAGE,AAAN,KAAK,CAAC,iBAAiB,CACd,GAA4B,EACd,kBAA0B;QAE/C,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,kBAAkB,CAAC,iBAAiB,CACtD,kBAAkB,EAClB,YAAY,CACb,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AAlBY,sDAAqB;AAO1B;IAFL,IAAA,aAAI,EAAC,uBAAuB,CAAC;IAC7B,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,EAAC,aAAa,CAAC,CAAA;;;;8DAQrB;gCAjBU,qBAAqB;IAFjC,IAAA,mBAAU,EAAC,eAAe,CAAC;IAC3B,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAGnB,WAAA,IAAA,eAAM,EAAC,oBAAoB,CAAC,CAAA;qCACQ,yCAAkB;GAH9C,qBAAqB,CAkBjC"}
|
|
@@ -25,6 +25,11 @@ let FormMasterController = class FormMasterController {
|
|
|
25
25
|
const result = this.formMasterService.getForms(loggedInUser, source_entity_type);
|
|
26
26
|
return result;
|
|
27
27
|
}
|
|
28
|
+
async submitForm(req, body) {
|
|
29
|
+
const loggedInUser = req.user.userData;
|
|
30
|
+
const result = this.formMasterService.submitForm(body);
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
28
33
|
};
|
|
29
34
|
exports.FormMasterController = FormMasterController;
|
|
30
35
|
__decorate([
|
|
@@ -36,6 +41,15 @@ __decorate([
|
|
|
36
41
|
__metadata("design:paramtypes", [Object, String]),
|
|
37
42
|
__metadata("design:returntype", Promise)
|
|
38
43
|
], FormMasterController.prototype, "getForms", null);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, common_1.Post)('/submit'),
|
|
46
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
47
|
+
__param(0, (0, common_1.Req)()),
|
|
48
|
+
__param(1, (0, common_1.Body)()),
|
|
49
|
+
__metadata("design:type", Function),
|
|
50
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
51
|
+
__metadata("design:returntype", Promise)
|
|
52
|
+
], FormMasterController.prototype, "submitForm", null);
|
|
39
53
|
exports.FormMasterController = FormMasterController = __decorate([
|
|
40
54
|
(0, common_1.Controller)('/form'),
|
|
41
55
|
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"form-master.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/form-master.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,2DAAgE;AAChE,wEAAmE;AAI5D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAEmB,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAIE,AAAN,KAAK,CAAC,QAAQ,CACL,GAA4B,EACP,kBAA0B;QAEtD,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAC5C,YAAY,EACZ,kBAAkB,CACnB,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"form-master.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/form-master.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,2DAAgE;AAChE,wEAAmE;AAI5D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAEmB,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAIE,AAAN,KAAK,CAAC,QAAQ,CACL,GAA4B,EACP,kBAA0B;QAEtD,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,iBAAiB,CAAC,QAAQ,CAC5C,YAAY,EACZ,kBAAkB,CACnB,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;IAIK,AAAN,KAAK,CAAC,UAAU,CAAQ,GAA4B,EAAU,IAAS;QACrE,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,iBAAiB,CAAC,UAAU,CAAC,IAAI,CAAC,CAAC;QACvD,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AA3BY,oDAAoB;AAQzB;IAFL,IAAA,aAAI,EAAC,WAAW,CAAC;IACjB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,EAAC,oBAAoB,CAAC,CAAA;;;;oDAQ5B;AAIK;IAFL,IAAA,aAAI,EAAC,SAAS,CAAC;IACf,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IACN,WAAA,IAAA,YAAG,GAAE,CAAA;IAAgC,WAAA,IAAA,aAAI,GAAE,CAAA;;;;sDAI5D;+BA1BU,oBAAoB;IAFhC,IAAA,mBAAU,EAAC,OAAO,CAAC;IACnB,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAGnB,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;qCACQ,uCAAiB;GAH5C,oBAAoB,CA2BhC"}
|
|
@@ -36,6 +36,10 @@ __decorate([
|
|
|
36
36
|
(0, typeorm_1.Column)({ type: 'int', nullable: true }),
|
|
37
37
|
__metadata("design:type", Number)
|
|
38
38
|
], ActionResourcesMapping.prototype, "stg_act_mapping_id", void 0);
|
|
39
|
+
__decorate([
|
|
40
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
41
|
+
__metadata("design:type", String)
|
|
42
|
+
], ActionResourcesMapping.prototype, "form_entity_type", void 0);
|
|
39
43
|
exports.ActionResourcesMapping = ActionResourcesMapping = __decorate([
|
|
40
44
|
(0, typeorm_1.Entity)({ name: 'cr_wf_action_resources_mapping' }),
|
|
41
45
|
__metadata("design:paramtypes", [])
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action-resources-mapping.entity.js","sourceRoot":"","sources":["../../../../src/module/workflow/entity/action-resources-mapping.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAGsC;AACtC,6EAAuE;AACvE,qCAAyC;AAGlC,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,+BAAU;IACpD;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,0CAAwB,CAAC;IAC9C,CAAC;
|
|
1
|
+
{"version":3,"file":"action-resources-mapping.entity.js","sourceRoot":"","sources":["../../../../src/module/workflow/entity/action-resources-mapping.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,uEAGsC;AACtC,6EAAuE;AACvE,qCAAyC;AAGlC,IAAM,sBAAsB,GAA5B,MAAM,sBAAuB,SAAQ,+BAAU;IACpD;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,0CAAwB,CAAC;IAC9C,CAAC;CAgBF,CAAA;AApBY,wDAAsB;AAOjC;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6DACtB;AAGtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;oDAC/B;AAGb;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDAC5B;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,KAAK,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;kEACb;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gEACnB;iCAnBd,sBAAsB;IADlC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,gCAAgC,EAAE,CAAC;;GACtC,sBAAsB,CAoBlC"}
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
2
|
+
export declare class ActivityLog extends BaseEntity {
|
|
3
|
+
constructor();
|
|
4
|
+
running_id: string;
|
|
5
|
+
mapped_entity_type: string;
|
|
6
|
+
mapped_entity_id: string;
|
|
7
|
+
title: string;
|
|
8
|
+
description: string;
|
|
9
|
+
user_id: string;
|
|
10
|
+
level_type: string;
|
|
11
|
+
level_id: string;
|
|
12
|
+
category: string;
|
|
13
|
+
action: string;
|
|
14
|
+
action_icon: string;
|
|
15
|
+
action_category_color: string;
|
|
16
|
+
additional_info_1: string;
|
|
17
|
+
additional_info_2: string;
|
|
18
|
+
additional_info_3: string;
|
|
19
|
+
}
|
|
@@ -0,0 +1,86 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.ActivityLog = void 0;
|
|
13
|
+
const base_entity_entity_1 = require("../../meta/entity/base-entity.entity");
|
|
14
|
+
const typeorm_1 = require("typeorm");
|
|
15
|
+
let ActivityLog = class ActivityLog extends base_entity_entity_1.BaseEntity {
|
|
16
|
+
constructor() {
|
|
17
|
+
super();
|
|
18
|
+
this.entity_type = 'ACLG';
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
exports.ActivityLog = ActivityLog;
|
|
22
|
+
__decorate([
|
|
23
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
24
|
+
__metadata("design:type", String)
|
|
25
|
+
], ActivityLog.prototype, "running_id", void 0);
|
|
26
|
+
__decorate([
|
|
27
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
28
|
+
__metadata("design:type", String)
|
|
29
|
+
], ActivityLog.prototype, "mapped_entity_type", void 0);
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
32
|
+
__metadata("design:type", String)
|
|
33
|
+
], ActivityLog.prototype, "mapped_entity_id", void 0);
|
|
34
|
+
__decorate([
|
|
35
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
36
|
+
__metadata("design:type", String)
|
|
37
|
+
], ActivityLog.prototype, "title", void 0);
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
40
|
+
__metadata("design:type", String)
|
|
41
|
+
], ActivityLog.prototype, "description", void 0);
|
|
42
|
+
__decorate([
|
|
43
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
44
|
+
__metadata("design:type", String)
|
|
45
|
+
], ActivityLog.prototype, "user_id", void 0);
|
|
46
|
+
__decorate([
|
|
47
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
48
|
+
__metadata("design:type", String)
|
|
49
|
+
], ActivityLog.prototype, "level_type", void 0);
|
|
50
|
+
__decorate([
|
|
51
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
52
|
+
__metadata("design:type", String)
|
|
53
|
+
], ActivityLog.prototype, "level_id", void 0);
|
|
54
|
+
__decorate([
|
|
55
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
56
|
+
__metadata("design:type", String)
|
|
57
|
+
], ActivityLog.prototype, "category", void 0);
|
|
58
|
+
__decorate([
|
|
59
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
60
|
+
__metadata("design:type", String)
|
|
61
|
+
], ActivityLog.prototype, "action", void 0);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
64
|
+
__metadata("design:type", String)
|
|
65
|
+
], ActivityLog.prototype, "action_icon", void 0);
|
|
66
|
+
__decorate([
|
|
67
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
68
|
+
__metadata("design:type", String)
|
|
69
|
+
], ActivityLog.prototype, "action_category_color", void 0);
|
|
70
|
+
__decorate([
|
|
71
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
72
|
+
__metadata("design:type", String)
|
|
73
|
+
], ActivityLog.prototype, "additional_info_1", void 0);
|
|
74
|
+
__decorate([
|
|
75
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
76
|
+
__metadata("design:type", String)
|
|
77
|
+
], ActivityLog.prototype, "additional_info_2", void 0);
|
|
78
|
+
__decorate([
|
|
79
|
+
(0, typeorm_1.Column)({ type: 'varchar', nullable: true }),
|
|
80
|
+
__metadata("design:type", String)
|
|
81
|
+
], ActivityLog.prototype, "additional_info_3", void 0);
|
|
82
|
+
exports.ActivityLog = ActivityLog = __decorate([
|
|
83
|
+
(0, typeorm_1.Entity)({ name: 'eth_activity_log' }),
|
|
84
|
+
__metadata("design:paramtypes", [])
|
|
85
|
+
], ActivityLog);
|
|
86
|
+
//# sourceMappingURL=activity-log.entity.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"activity-log.entity.js","sourceRoot":"","sources":["../../../../src/module/workflow/entity/activity-log.entity.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6EAAuE;AACvE,qCAAyC;AAGlC,IAAM,WAAW,GAAjB,MAAM,WAAY,SAAQ,+BAAU;IACzC;QACE,KAAK,EAAE,CAAC;QACR,IAAI,CAAC,WAAW,GAAG,MAAM,CAAC;IAC5B,CAAC;CA8CF,CAAA;AAlDY,kCAAW;AAOtB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACzB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;uDACjB;AAG3B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;qDACnB;AAGzB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0CAC9B;AAGd;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACxB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;4CAC5B;AAGhB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;+CACzB;AAGnB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC3B;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;6CAC3B;AAGjB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;2CAC7B;AAGf;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;gDACxB;AAGpB;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;0DACd;AAG9B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAClB;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAClB;AAG1B;IADC,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,SAAS,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;;sDAClB;sBAjDf,WAAW;IADvB,IAAA,gBAAM,EAAC,EAAE,IAAI,EAAE,kBAAkB,EAAE,CAAC;;GACxB,WAAW,CAkDvB"}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
2
|
+
export declare class FormDataEntity extends BaseEntity {
|
|
3
|
+
constructor();
|
|
4
|
+
mapped_entity_id: number;
|
|
5
|
+
mapped_entity_type: string;
|
|
6
|
+
view_id: number;
|
|
7
|
+
entity_id: number;
|
|
8
|
+
action_id: number;
|
|
9
|
+
}
|