rez_core 2.2.8 → 2.2.10
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/constant/global.constant.d.ts +2 -1
- package/dist/constant/global.constant.js +3 -2
- package/dist/constant/global.constant.js.map +1 -1
- package/dist/module/filter/controller/filter.controller.d.ts +1 -1
- package/dist/module/filter/controller/filter.controller.js +7 -4
- package/dist/module/filter/controller/filter.controller.js.map +1 -1
- package/dist/module/filter/dto/filter-request.dto.d.ts +1 -0
- package/dist/module/filter/service/filter.service.js +25 -3
- package/dist/module/filter/service/filter.service.js.map +1 -1
- package/dist/module/layout_preference/controller/layout_preference.controller.js +4 -4
- package/dist/module/layout_preference/controller/layout_preference.controller.js.map +1 -1
- package/dist/module/layout_preference/entity/layout_preference.entity.d.ts +2 -0
- package/dist/module/layout_preference/entity/layout_preference.entity.js +13 -0
- package/dist/module/layout_preference/entity/layout_preference.entity.js.map +1 -1
- package/dist/module/layout_preference/repository/layout_preference.repository.d.ts +1 -1
- package/dist/module/layout_preference/repository/layout_preference.repository.js +4 -2
- package/dist/module/layout_preference/repository/layout_preference.repository.js.map +1 -1
- package/dist/module/layout_preference/service/layout_preference.service.d.ts +1 -1
- package/dist/module/layout_preference/service/layout_preference.service.js +17 -4
- package/dist/module/layout_preference/service/layout_preference.service.js.map +1 -1
- package/dist/module/listmaster/entity/list-master-items.entity.js +5 -5
- package/dist/module/listmaster/entity/list-master-items.entity.js.map +1 -1
- package/dist/module/meta/controller/media.controller.d.ts +1 -1
- package/dist/module/meta/controller/media.controller.js +1 -1
- package/dist/module/meta/controller/media.controller.js.map +1 -1
- package/dist/module/meta/entity/base-entity.entity.js.map +1 -1
- package/dist/module/module/controller/module-access.controller.d.ts +1 -1
- package/dist/module/module/controller/module-access.controller.js +6 -6
- package/dist/module/module/controller/module-access.controller.js.map +1 -1
- package/dist/module/module/service/module-access.service.d.ts +2 -1
- package/dist/module/module/service/module-access.service.js +5 -3
- package/dist/module/module/service/module-access.service.js.map +1 -1
- package/dist/module/workflow/controller/action-category.controller.d.ts +8 -0
- package/dist/module/workflow/controller/action-category.controller.js +45 -0
- package/dist/module/workflow/controller/action-category.controller.js.map +1 -0
- package/dist/module/workflow/controller/action.controller.d.ts +28 -0
- package/dist/module/workflow/controller/action.controller.js +88 -0
- package/dist/module/workflow/controller/action.controller.js.map +1 -0
- package/dist/module/workflow/controller/comm-template.controller.d.ts +11 -0
- package/dist/module/workflow/controller/comm-template.controller.js +44 -0
- package/dist/module/workflow/controller/comm-template.controller.js.map +1 -0
- package/dist/module/workflow/controller/entity-modification.controller.d.ts +8 -0
- package/dist/module/workflow/controller/entity-modification.controller.js +44 -0
- package/dist/module/workflow/controller/entity-modification.controller.js.map +1 -0
- package/dist/module/workflow/controller/stage-group.controller.d.ts +10 -0
- package/dist/module/workflow/controller/stage-group.controller.js +43 -0
- package/dist/module/workflow/controller/stage-group.controller.js.map +1 -0
- package/dist/module/workflow/controller/stage.controller.d.ts +13 -0
- package/dist/module/workflow/controller/stage.controller.js +56 -0
- package/dist/module/workflow/controller/stage.controller.js.map +1 -0
- package/dist/module/workflow/controller/task.controller.d.ts +21 -0
- package/dist/module/workflow/controller/task.controller.js +58 -0
- package/dist/module/workflow/controller/task.controller.js.map +1 -0
- package/dist/module/workflow/controller/workflow-meta.controller.d.ts +15 -0
- package/dist/module/workflow/controller/workflow-meta.controller.js +70 -0
- package/dist/module/workflow/controller/workflow-meta.controller.js.map +1 -0
- package/dist/module/workflow/controller/workflow.controller.d.ts +25 -10
- package/dist/module/workflow/controller/workflow.controller.js +32 -15
- package/dist/module/workflow/controller/workflow.controller.js.map +1 -1
- package/dist/module/workflow/entity/action-category.entity.d.ts +1 -0
- package/dist/module/workflow/entity/action-category.entity.js +4 -0
- package/dist/module/workflow/entity/action-category.entity.js.map +1 -1
- package/dist/module/workflow/entity/action-data.entity.d.ts +15 -0
- package/dist/module/workflow/entity/action-data.entity.js +70 -0
- package/dist/module/workflow/entity/action-data.entity.js.map +1 -0
- package/dist/module/workflow/entity/action.entity.d.ts +7 -2
- package/dist/module/workflow/entity/action.entity.js +30 -10
- package/dist/module/workflow/entity/action.entity.js.map +1 -1
- package/dist/module/workflow/entity/comm-template.entity.d.ts +5 -0
- package/dist/module/workflow/entity/comm-template.entity.js +21 -1
- package/dist/module/workflow/entity/comm-template.entity.js.map +1 -1
- package/dist/module/workflow/entity/entity-modification.entity.d.ts +13 -0
- package/dist/module/workflow/entity/entity-modification.entity.js +63 -0
- package/dist/module/workflow/entity/entity-modification.entity.js.map +1 -0
- package/dist/module/workflow/entity/stage-group.entity.d.ts +1 -1
- package/dist/module/workflow/entity/stage-group.entity.js +1 -1
- package/dist/module/workflow/entity/stage-group.entity.js.map +1 -1
- package/dist/module/workflow/entity/stage-movement-data.entity.d.ts +4 -0
- package/dist/module/workflow/entity/stage-movement-data.entity.js +16 -0
- package/dist/module/workflow/entity/stage-movement-data.entity.js.map +1 -1
- package/dist/module/workflow/entity/stage.entity.d.ts +2 -2
- package/dist/module/workflow/entity/stage.entity.js +5 -5
- package/dist/module/workflow/entity/stage.entity.js.map +1 -1
- package/dist/module/workflow/entity/task-data.entity.d.ts +25 -0
- package/dist/module/workflow/entity/task-data.entity.js +110 -0
- package/dist/module/workflow/entity/task-data.entity.js.map +1 -0
- package/dist/module/workflow/entity/template-attach-mapper.entity.d.ts +11 -0
- package/dist/module/workflow/entity/template-attach-mapper.entity.js +54 -0
- package/dist/module/workflow/entity/template-attach-mapper.entity.js.map +1 -0
- package/dist/module/workflow/entity/workflow-level-mapping.entity.d.ts +7 -0
- package/dist/module/workflow/entity/workflow-level-mapping.entity.js +38 -0
- package/dist/module/workflow/entity/workflow-level-mapping.entity.js.map +1 -0
- package/dist/module/workflow/entity/workflow.entity.d.ts +2 -0
- package/dist/module/workflow/entity/workflow.entity.js +8 -0
- package/dist/module/workflow/entity/workflow.entity.js.map +1 -1
- package/dist/module/workflow/repository/action-data.repository.d.ts +10 -0
- package/dist/module/workflow/repository/action-data.repository.js +85 -0
- package/dist/module/workflow/repository/action-data.repository.js.map +1 -0
- package/dist/module/workflow/repository/action.repository.d.ts +17 -0
- package/dist/module/workflow/repository/action.repository.js +97 -0
- package/dist/module/workflow/repository/action.repository.js.map +1 -0
- package/dist/module/workflow/repository/comm-template.repository.d.ts +14 -0
- package/dist/module/workflow/repository/comm-template.repository.js +87 -0
- package/dist/module/workflow/repository/comm-template.repository.js.map +1 -0
- package/dist/module/workflow/repository/stage-group.repository.d.ts +7 -0
- package/dist/module/workflow/repository/stage-group.repository.js +50 -0
- package/dist/module/workflow/repository/stage-group.repository.js.map +1 -0
- package/dist/module/workflow/repository/stage-movement.repository.d.ts +23 -0
- package/dist/module/workflow/repository/stage-movement.repository.js +142 -0
- package/dist/module/workflow/repository/stage-movement.repository.js.map +1 -0
- package/dist/module/workflow/repository/stage.repository.d.ts +7 -0
- package/dist/module/workflow/repository/stage.repository.js +50 -0
- package/dist/module/workflow/repository/stage.repository.js.map +1 -0
- package/dist/module/workflow/repository/task.repository.d.ts +10 -0
- package/dist/module/workflow/repository/task.repository.js +77 -0
- package/dist/module/workflow/repository/task.repository.js.map +1 -0
- package/dist/module/workflow/repository/workflow.repository.d.ts +9 -1
- package/dist/module/workflow/repository/workflow.repository.js +38 -6
- package/dist/module/workflow/repository/workflow.repository.js.map +1 -1
- package/dist/module/workflow/service/action-category.service.d.ts +5 -0
- package/dist/module/workflow/service/action-category.service.js +23 -1
- package/dist/module/workflow/service/action-category.service.js.map +1 -1
- package/dist/module/workflow/service/action-data.service.d.ts +11 -0
- package/dist/module/workflow/service/action-data.service.js +36 -0
- package/dist/module/workflow/service/action-data.service.js.map +1 -0
- package/dist/module/workflow/service/action.service.d.ts +19 -1
- package/dist/module/workflow/service/action.service.js +159 -10
- package/dist/module/workflow/service/action.service.js.map +1 -1
- package/dist/module/workflow/service/comm-template.service.d.ts +11 -0
- package/dist/module/workflow/service/comm-template.service.js +59 -1
- package/dist/module/workflow/service/comm-template.service.js.map +1 -1
- package/dist/module/workflow/service/entity-modification.service.d.ts +8 -0
- package/dist/module/workflow/service/entity-modification.service.js +52 -0
- package/dist/module/workflow/service/entity-modification.service.js.map +1 -0
- package/dist/module/workflow/service/populate-workflow.service.d.ts +21 -0
- package/dist/module/workflow/service/populate-workflow.service.js +124 -0
- package/dist/module/workflow/service/populate-workflow.service.js.map +1 -0
- package/dist/module/workflow/service/stage-group.service.d.ts +13 -0
- package/dist/module/workflow/service/stage-group.service.js +39 -1
- package/dist/module/workflow/service/stage-group.service.js.map +1 -1
- package/dist/module/workflow/service/stage.service.d.ts +14 -4
- package/dist/module/workflow/service/stage.service.js +57 -13
- package/dist/module/workflow/service/stage.service.js.map +1 -1
- package/dist/module/workflow/service/task.service.d.ts +18 -0
- package/dist/module/workflow/service/task.service.js +63 -0
- package/dist/module/workflow/service/task.service.js.map +1 -0
- package/dist/module/workflow/service/workflow-list-master.service.js +4 -4
- package/dist/module/workflow/service/workflow-meta.service.d.ts +20 -0
- package/dist/module/workflow/service/workflow-meta.service.js +137 -0
- package/dist/module/workflow/service/workflow-meta.service.js.map +1 -0
- package/dist/module/workflow/service/workflow.service.d.ts +28 -5
- package/dist/module/workflow/service/workflow.service.js +108 -41
- package/dist/module/workflow/service/workflow.service.js.map +1 -1
- package/dist/module/workflow/workflow.module.js +82 -15
- package/dist/module/workflow/workflow.module.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/constant/global.constant.ts +3 -1
- package/src/module/filter/controller/filter.controller.ts +10 -4
- package/src/module/filter/dto/filter-request.dto.ts +1 -0
- package/src/module/filter/service/filter.service.ts +38 -4
- package/src/module/layout_preference/controller/layout_preference.controller.ts +6 -4
- package/src/module/layout_preference/entity/layout_preference.entity.ts +11 -0
- package/src/module/layout_preference/repository/layout_preference.repository.ts +6 -2
- package/src/module/layout_preference/service/layout_preference.service.ts +31 -6
- package/src/module/listmaster/entity/list-master-items.entity.ts +5 -5
- package/src/module/meta/controller/media.controller.ts +5 -7
- package/src/module/meta/entity/base-entity.entity.ts +1 -1
- package/src/module/module/controller/module-access.controller.ts +9 -4
- package/src/module/module/service/module-access.service.ts +15 -8
- package/src/module/workflow/controller/action-category.controller.ts +35 -0
- package/src/module/workflow/controller/action.controller.ts +73 -0
- package/src/module/workflow/controller/comm-template.controller.ts +32 -0
- package/src/module/workflow/controller/entity-modification.controller.ts +35 -0
- package/src/module/workflow/controller/stage-group.controller.ts +33 -0
- package/src/module/workflow/controller/stage.controller.ts +50 -0
- package/src/module/workflow/controller/task.controller.ts +57 -0
- package/src/module/workflow/controller/workflow-meta.controller.ts +76 -0
- package/src/module/workflow/controller/workflow.controller.ts +32 -12
- package/src/module/workflow/entity/action-category.entity.ts +3 -0
- package/src/module/workflow/entity/action-data.entity.ts +43 -0
- package/src/module/workflow/entity/action.entity.ts +18 -3
- package/src/module/workflow/entity/comm-template.entity.ts +18 -1
- package/src/module/workflow/entity/entity-modification.entity.ts +38 -0
- package/src/module/workflow/entity/stage-group.entity.ts +1 -1
- package/src/module/workflow/entity/stage-movement-data.entity.ts +12 -0
- package/src/module/workflow/entity/stage.entity.ts +4 -4
- package/src/module/workflow/entity/task-data.entity.ts +73 -0
- package/src/module/workflow/entity/template-attach-mapper.entity.ts +30 -0
- package/src/module/workflow/entity/workflow-level-mapping.entity.ts +18 -0
- package/src/module/workflow/entity/workflow.entity.ts +6 -0
- package/src/module/workflow/repository/action-data.repository.ts +93 -0
- package/src/module/workflow/repository/action.repository.ts +104 -0
- package/src/module/workflow/repository/comm-template.repository.ts +102 -0
- package/src/module/workflow/repository/stage-group.repository.ts +46 -0
- package/src/module/workflow/repository/stage-movement.repository.ts +219 -0
- package/src/module/workflow/repository/stage.repository.ts +47 -0
- package/src/module/workflow/repository/task.repository.ts +85 -0
- package/src/module/workflow/repository/workflow.repository.ts +40 -2
- package/src/module/workflow/service/action-category.service.ts +26 -1
- package/src/module/workflow/service/action-data.service.ts +45 -0
- package/src/module/workflow/service/action-template-mapping.service.ts +1 -1
- package/src/module/workflow/service/action.service.ts +279 -19
- package/src/module/workflow/service/comm-template.service.ts +90 -1
- package/src/module/workflow/service/entity-modification.service.ts +67 -0
- package/src/module/workflow/service/populate-workflow.service.ts +189 -0
- package/src/module/workflow/service/stage-group.service.ts +67 -2
- package/src/module/workflow/service/stage.service.ts +104 -28
- package/src/module/workflow/service/task.service.ts +95 -0
- package/src/module/workflow/service/workflow-list-master.service.ts +4 -4
- package/src/module/workflow/service/workflow-meta.service.ts +231 -0
- package/src/module/workflow/service/workflow.service.ts +181 -50
- package/src/module/workflow/workflow.module.ts +82 -15
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"module-access.service.js","sourceRoot":"","sources":["../../../../src/module/module/service/module-access.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyE;AACzE,qFAAgF;AAGhF,uEAG2C;AAE3C,qCAAoD;AAEpD,mEAA+D;AAC/D,sFAAsF;AAG/E,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YACmB,sBAA8C,EAC9C,cAA8B,EAC9B,UAAsB,EAEtB,iBAAoC;QAJpC,2BAAsB,GAAtB,sBAAsB,CAAwB;QAC9C,mBAAc,GAAd,cAAc,CAAgB;QAC9B,eAAU,GAAV,UAAU,CAAY;QAEtB,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAEJ,KAAK,CAAC,UAAU,CAAC,EAAE,OAAO,EAAuB;QAC/C,OAAO,IAAI,CAAC,sBAAsB,CAAC,UAAU,CAAC;YAC5C,OAAO;SACR,CAAC,CAAC;IACL,CAAC;IAED,KAAK,CAAC,QAAQ,CAAC,EACb,OAAO,EACP,UAAU,EACV,QAAQ,EACR,eAAe,
|
|
1
|
+
{"version":3,"file":"module-access.service.js","sourceRoot":"","sources":["../../../../src/module/module/service/module-access.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyE;AACzE,qFAAgF;AAGhF,uE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CAAA;AArLY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;IAMR,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;qCAHa,iDAAsB;QAC9B,gCAAc;QAClB,oBAAU;QAEH,uCAAiB;GAN5C,mBAAmB,CAqL/B"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { ActionCategoryService } from '../service/action-category.service';
|
|
2
|
+
export declare class ActionCategoryController {
|
|
3
|
+
private readonly actionCategoryService;
|
|
4
|
+
constructor(actionCategoryService: ActionCategoryService);
|
|
5
|
+
getActionsCat(req: Request & {
|
|
6
|
+
user: any;
|
|
7
|
+
}, entity_type: string): Promise<any>;
|
|
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.ActionCategoryController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const jwt_guard_1 = require("../../auth/guards/jwt.guard");
|
|
18
|
+
const action_category_service_1 = require("../service/action-category.service");
|
|
19
|
+
let ActionCategoryController = class ActionCategoryController {
|
|
20
|
+
constructor(actionCategoryService) {
|
|
21
|
+
this.actionCategoryService = actionCategoryService;
|
|
22
|
+
}
|
|
23
|
+
async getActionsCat(req, entity_type) {
|
|
24
|
+
const loggedInUser = req.user.userData;
|
|
25
|
+
const result = this.actionCategoryService.getActionsCat(loggedInUser, entity_type);
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.ActionCategoryController = ActionCategoryController;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, common_1.Post)('/getActionsCategory'),
|
|
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
|
+
], ActionCategoryController.prototype, "getActionsCat", null);
|
|
39
|
+
exports.ActionCategoryController = ActionCategoryController = __decorate([
|
|
40
|
+
(0, common_1.Controller)('/actionCategory'),
|
|
41
|
+
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
42
|
+
__param(0, (0, common_1.Inject)('ActionCategoryService')),
|
|
43
|
+
__metadata("design:paramtypes", [action_category_service_1.ActionCategoryService])
|
|
44
|
+
], ActionCategoryController);
|
|
45
|
+
//# sourceMappingURL=action-category.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action-category.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/action-category.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,2DAAgE;AAChE,gFAA2E;AAIpE,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACnC,YAEmB,qBAA4C;QAA5C,0BAAqB,GAArB,qBAAqB,CAAuB;IAC5D,CAAC;IAIE,AAAN,KAAK,CAAC,aAAa,CACV,GAA4B,EACd,WAAmB;QAExC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,qBAAqB,CAAC,aAAa,CACrD,YAAY,EACZ,WAAW,CACZ,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AAnBY,4DAAwB;AAQ7B;IAFL,IAAA,aAAI,EAAC,qBAAqB,CAAC;IAC3B,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,EAAC,aAAa,CAAC,CAAA;;;;6DAQrB;mCAlBU,wBAAwB;IAFpC,IAAA,mBAAU,EAAC,iBAAiB,CAAC;IAC7B,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAGnB,WAAA,IAAA,eAAM,EAAC,uBAAuB,CAAC,CAAA;qCACQ,+CAAqB;GAHpD,wBAAwB,CAmBpC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import { ActionService } from '../service/action.service';
|
|
2
|
+
export declare class ActionController {
|
|
3
|
+
private readonly actionService;
|
|
4
|
+
constructor(actionService: ActionService);
|
|
5
|
+
getReasonCode(req: Request & {
|
|
6
|
+
user: any;
|
|
7
|
+
}): Promise<any>;
|
|
8
|
+
defaultReasonCode(req: Request & {
|
|
9
|
+
user: any;
|
|
10
|
+
}, body: {
|
|
11
|
+
list_type: string;
|
|
12
|
+
}): Promise<any>;
|
|
13
|
+
getActions(req: Request & {
|
|
14
|
+
user: any;
|
|
15
|
+
}, stage_id: number): Promise<any[]>;
|
|
16
|
+
getAction(req: Request & {
|
|
17
|
+
user: any;
|
|
18
|
+
}, stage_id: number, mapped_entity_id: number, mapped_entity_type: string): Promise<{
|
|
19
|
+
value: any;
|
|
20
|
+
label: any;
|
|
21
|
+
modalName: any;
|
|
22
|
+
logo: any;
|
|
23
|
+
name: any;
|
|
24
|
+
is_current: any;
|
|
25
|
+
is_done: any;
|
|
26
|
+
is_mandatory: any;
|
|
27
|
+
}[]>;
|
|
28
|
+
}
|
|
@@ -0,0 +1,88 @@
|
|
|
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.ActionController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const jwt_guard_1 = require("../../auth/guards/jwt.guard");
|
|
18
|
+
const action_service_1 = require("../service/action.service");
|
|
19
|
+
let ActionController = class ActionController {
|
|
20
|
+
constructor(actionService) {
|
|
21
|
+
this.actionService = actionService;
|
|
22
|
+
}
|
|
23
|
+
async getReasonCode(req) {
|
|
24
|
+
const loggedInUser = req.user.userData;
|
|
25
|
+
const result = this.actionService.getReasonCode(loggedInUser);
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
async defaultReasonCode(req, body) {
|
|
29
|
+
const loggedInUser = req.user.userData;
|
|
30
|
+
const result = this.actionService.defaultReasonCode(body.list_type, loggedInUser);
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
async getActions(req, stage_id) {
|
|
34
|
+
const loggedInUser = req.user.userData;
|
|
35
|
+
const result = this.actionService.getActions(loggedInUser, stage_id);
|
|
36
|
+
return result;
|
|
37
|
+
}
|
|
38
|
+
async getAction(req, stage_id, mapped_entity_id, mapped_entity_type) {
|
|
39
|
+
const loggedInUser = req.user.userData;
|
|
40
|
+
const result = this.actionService.getAction(loggedInUser, stage_id, mapped_entity_id, mapped_entity_type);
|
|
41
|
+
return result;
|
|
42
|
+
}
|
|
43
|
+
};
|
|
44
|
+
exports.ActionController = ActionController;
|
|
45
|
+
__decorate([
|
|
46
|
+
(0, common_1.Get)('/getReasonCode'),
|
|
47
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
48
|
+
__param(0, (0, common_1.Req)()),
|
|
49
|
+
__metadata("design:type", Function),
|
|
50
|
+
__metadata("design:paramtypes", [Object]),
|
|
51
|
+
__metadata("design:returntype", Promise)
|
|
52
|
+
], ActionController.prototype, "getReasonCode", null);
|
|
53
|
+
__decorate([
|
|
54
|
+
(0, common_1.Post)('/defaultReasonCode'),
|
|
55
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
56
|
+
__param(0, (0, common_1.Req)()),
|
|
57
|
+
__param(1, (0, common_1.Body)()),
|
|
58
|
+
__metadata("design:type", Function),
|
|
59
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
60
|
+
__metadata("design:returntype", Promise)
|
|
61
|
+
], ActionController.prototype, "defaultReasonCode", null);
|
|
62
|
+
__decorate([
|
|
63
|
+
(0, common_1.Post)('/getactions'),
|
|
64
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
65
|
+
__param(0, (0, common_1.Req)()),
|
|
66
|
+
__param(1, (0, common_1.Body)('stage_id')),
|
|
67
|
+
__metadata("design:type", Function),
|
|
68
|
+
__metadata("design:paramtypes", [Object, Number]),
|
|
69
|
+
__metadata("design:returntype", Promise)
|
|
70
|
+
], ActionController.prototype, "getActions", null);
|
|
71
|
+
__decorate([
|
|
72
|
+
(0, common_1.Post)('/getaction'),
|
|
73
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
74
|
+
__param(0, (0, common_1.Req)()),
|
|
75
|
+
__param(1, (0, common_1.Body)('stage_id')),
|
|
76
|
+
__param(2, (0, common_1.Body)('mapped_entity_id')),
|
|
77
|
+
__param(3, (0, common_1.Body)('mapped_entity_type')),
|
|
78
|
+
__metadata("design:type", Function),
|
|
79
|
+
__metadata("design:paramtypes", [Object, Number, Number, String]),
|
|
80
|
+
__metadata("design:returntype", Promise)
|
|
81
|
+
], ActionController.prototype, "getAction", null);
|
|
82
|
+
exports.ActionController = ActionController = __decorate([
|
|
83
|
+
(0, common_1.Controller)('/action'),
|
|
84
|
+
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
85
|
+
__param(0, (0, common_1.Inject)('ActionService')),
|
|
86
|
+
__metadata("design:paramtypes", [action_service_1.ActionService])
|
|
87
|
+
], ActionController);
|
|
88
|
+
//# sourceMappingURL=action.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"action.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/action.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAUwB;AACxB,2DAAgE;AAChE,8DAA0D;AAInD,IAAM,gBAAgB,GAAtB,MAAM,gBAAgB;IAC3B,YAEmB,aAA4B;QAA5B,kBAAa,GAAb,aAAa,CAAe;IAC5C,CAAC;IAIE,AAAN,KAAK,CAAC,aAAa,CAAQ,GAA4B;QACrD,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,YAAY,CAAC,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CAAC;IACnB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,EAAC,UAAU,CAAC,CAAA;;;;kDAKlB;AAIK;IAFL,IAAA,aAAI,EAAC,YAAY,CAAC;IAClB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,EAAC,UAAU,CAAC,CAAA;IAChB,WAAA,IAAA,aAAI,EAAC,kBAAkB,CAAC,CAAA;IACxB,WAAA,IAAA,aAAI,EAAC,oBAAoB,CAAC,CAAA;;;;iDAU5B;2BAvDU,gBAAgB;IAF5B,IAAA,mBAAU,EAAC,SAAS,CAAC;IACrB,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAGnB,WAAA,IAAA,eAAM,EAAC,eAAe,CAAC,CAAA;qCACQ,8BAAa;GAHpC,gBAAgB,CAwD5B"}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { CommTemplateService } from '../service/comm-template.service';
|
|
2
|
+
export declare class CommTemplateController {
|
|
3
|
+
private readonly commTemplateService;
|
|
4
|
+
constructor(commTemplateService: CommTemplateService);
|
|
5
|
+
getTemplate(req: Request & {
|
|
6
|
+
user: any;
|
|
7
|
+
}, entity_type: string): Promise<{
|
|
8
|
+
value: string;
|
|
9
|
+
label: string;
|
|
10
|
+
}[]>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.CommTemplateController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const jwt_guard_1 = require("../../auth/guards/jwt.guard");
|
|
18
|
+
const comm_template_service_1 = require("../service/comm-template.service");
|
|
19
|
+
let CommTemplateController = class CommTemplateController {
|
|
20
|
+
constructor(commTemplateService) {
|
|
21
|
+
this.commTemplateService = commTemplateService;
|
|
22
|
+
}
|
|
23
|
+
async getTemplate(req, entity_type) {
|
|
24
|
+
const loggedInUser = req.user.userData;
|
|
25
|
+
const result = this.commTemplateService.getAllCommTemplate(entity_type || '', loggedInUser);
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
};
|
|
29
|
+
exports.CommTemplateController = CommTemplateController;
|
|
30
|
+
__decorate([
|
|
31
|
+
(0, common_1.Post)('/getTemplates'),
|
|
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
|
+
], CommTemplateController.prototype, "getTemplate", null);
|
|
39
|
+
exports.CommTemplateController = CommTemplateController = __decorate([
|
|
40
|
+
(0, common_1.Controller)('/templates'),
|
|
41
|
+
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
42
|
+
__metadata("design:paramtypes", [comm_template_service_1.CommTemplateService])
|
|
43
|
+
], CommTemplateController);
|
|
44
|
+
//# sourceMappingURL=comm-template.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"comm-template.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/comm-template.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,2DAAgE;AAChE,4EAAuE;AAIhE,IAAM,sBAAsB,GAA5B,MAAM,sBAAsB;IACjC,YAA6B,mBAAwC;QAAxC,wBAAmB,GAAnB,mBAAmB,CAAqB;IAAG,CAAC;IAInE,AAAN,KAAK,CAAC,WAAW,CACR,GAA4B,EACd,WAAmB;QAExC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,mBAAmB,CAAC,kBAAkB,CACxD,WAAW,IAAI,EAAE,EACjB,YAAY,CACb,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AAhBY,wDAAsB;AAK3B;IAFL,IAAA,aAAI,EAAC,eAAe,CAAC;IACrB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,EAAC,aAAa,CAAC,CAAA;;;;yDAQrB;iCAfU,sBAAsB;IAFlC,IAAA,mBAAU,EAAC,YAAY,CAAC;IACxB,IAAA,kBAAS,EAAC,wBAAY,CAAC;qCAE4B,2CAAmB;GAD1D,sBAAsB,CAgBlC"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { EntityModificationService } from '../service/entity-modification.service';
|
|
2
|
+
export declare class EntityModificationController {
|
|
3
|
+
private readonly entityModificationService;
|
|
4
|
+
constructor(entityModificationService: EntityModificationService);
|
|
5
|
+
logModification(modificationData: any, req: Request & {
|
|
6
|
+
user: any;
|
|
7
|
+
}): Promise<any>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,44 @@
|
|
|
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.EntityModificationController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const jwt_guard_1 = require("../../auth/guards/jwt.guard");
|
|
18
|
+
const entity_modification_service_1 = require("../service/entity-modification.service");
|
|
19
|
+
let EntityModificationController = class EntityModificationController {
|
|
20
|
+
constructor(entityModificationService) {
|
|
21
|
+
this.entityModificationService = entityModificationService;
|
|
22
|
+
}
|
|
23
|
+
async logModification(modificationData, req) {
|
|
24
|
+
const loggedInUser = req.user.userData;
|
|
25
|
+
return await this.entityModificationService.logModification(modificationData, loggedInUser);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.EntityModificationController = EntityModificationController;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, common_1.Post)('/logModification'),
|
|
31
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
32
|
+
__param(0, (0, common_1.Body)()),
|
|
33
|
+
__param(1, (0, common_1.Req)()),
|
|
34
|
+
__metadata("design:type", Function),
|
|
35
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
36
|
+
__metadata("design:returntype", Promise)
|
|
37
|
+
], EntityModificationController.prototype, "logModification", null);
|
|
38
|
+
exports.EntityModificationController = EntityModificationController = __decorate([
|
|
39
|
+
(0, common_1.Controller)('/entity-modification'),
|
|
40
|
+
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
41
|
+
__param(0, (0, common_1.Inject)('EntityModificationService')),
|
|
42
|
+
__metadata("design:paramtypes", [entity_modification_service_1.EntityModificationService])
|
|
43
|
+
], EntityModificationController);
|
|
44
|
+
//# sourceMappingURL=entity-modification.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"entity-modification.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/entity-modification.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAUwB;AACxB,2DAAgE;AAChE,wFAAmF;AAI5E,IAAM,4BAA4B,GAAlC,MAAM,4BAA4B;IACvC,YAEmB,yBAAoD;QAApD,8BAAyB,GAAzB,yBAAyB,CAA2B;IACpE,CAAC;IAIE,AAAN,KAAK,CAAC,eAAe,CACX,gBAAqB,EACtB,GAA4B;QAEnC,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,OAAO,MAAM,IAAI,CAAC,yBAAyB,CAAC,eAAe,CACzD,gBAAgB,EAChB,YAAY,CACb,CAAC;IACJ,CAAC;CACF,CAAA;AAlBY,oEAA4B;AAQjC;IAFL,IAAA,aAAI,EAAC,kBAAkB,CAAC;IACxB,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,YAAG,GAAE,CAAA;;;;mEAOP;uCAjBU,4BAA4B;IAFxC,IAAA,mBAAU,EAAC,sBAAsB,CAAC;IAClC,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAGnB,WAAA,IAAA,eAAM,EAAC,2BAA2B,CAAC,CAAA;qCACQ,uDAAyB;GAH5D,4BAA4B,CAkBxC"}
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { StageGroupService } from '../service/stage-group.service';
|
|
2
|
+
export declare class StageGroupController {
|
|
3
|
+
private readonly stageGroupService;
|
|
4
|
+
constructor(stageGroupService: StageGroupService);
|
|
5
|
+
getAllStageGroup(req: Request & {
|
|
6
|
+
user: any;
|
|
7
|
+
}, body: {
|
|
8
|
+
workflow_id: number;
|
|
9
|
+
}): Promise<import("../entity/stage-group.entity").StageGroup[]>;
|
|
10
|
+
}
|
|
@@ -0,0 +1,43 @@
|
|
|
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.StageGroupController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const jwt_guard_1 = require("../../auth/guards/jwt.guard");
|
|
18
|
+
const stage_group_service_1 = require("../service/stage-group.service");
|
|
19
|
+
let StageGroupController = class StageGroupController {
|
|
20
|
+
constructor(stageGroupService) {
|
|
21
|
+
this.stageGroupService = stageGroupService;
|
|
22
|
+
}
|
|
23
|
+
async getAllStageGroup(req, body) {
|
|
24
|
+
const { level_id, level_type } = req.user.userData;
|
|
25
|
+
return this.stageGroupService.getAllStageGroup(body.workflow_id, level_id, level_type);
|
|
26
|
+
}
|
|
27
|
+
};
|
|
28
|
+
exports.StageGroupController = StageGroupController;
|
|
29
|
+
__decorate([
|
|
30
|
+
(0, common_1.Post)('/getAllStageGroup'),
|
|
31
|
+
__param(0, (0, common_1.Req)()),
|
|
32
|
+
__param(1, (0, common_1.Body)()),
|
|
33
|
+
__metadata("design:type", Function),
|
|
34
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
35
|
+
__metadata("design:returntype", Promise)
|
|
36
|
+
], StageGroupController.prototype, "getAllStageGroup", null);
|
|
37
|
+
exports.StageGroupController = StageGroupController = __decorate([
|
|
38
|
+
(0, common_1.Controller)('/stage-group'),
|
|
39
|
+
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
40
|
+
__param(0, (0, common_1.Inject)('StageGroupService')),
|
|
41
|
+
__metadata("design:paramtypes", [stage_group_service_1.StageGroupService])
|
|
42
|
+
], StageGroupController);
|
|
43
|
+
//# sourceMappingURL=stage-group.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stage-group.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/stage-group.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAQwB;AACxB,2DAAgE;AAChE,wEAAmE;AAI5D,IAAM,oBAAoB,GAA1B,MAAM,oBAAoB;IAC/B,YAEmB,iBAAoC;QAApC,sBAAiB,GAAjB,iBAAiB,CAAmB;IACpD,CAAC;IAGE,AAAN,KAAK,CAAC,gBAAgB,CACb,GAA4B,EAC3B,IAA6B;QAErC,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACnD,OAAO,IAAI,CAAC,iBAAiB,CAAC,gBAAgB,CAC5C,IAAI,CAAC,WAAW,EAChB,QAAQ,EACR,UAAU,CACX,CAAC;IACJ,CAAC;CACF,CAAA;AAlBY,oDAAoB;AAOzB;IADL,IAAA,aAAI,EAAC,mBAAmB,CAAC;IAEvB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,GAAE,CAAA;;;;4DAQR;+BAjBU,oBAAoB;IAFhC,IAAA,mBAAU,EAAC,cAAc,CAAC;IAC1B,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAGnB,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;qCACQ,uCAAiB;GAH5C,oBAAoB,CAkBhC"}
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { StageService } from '../service/stage.service';
|
|
2
|
+
export declare class StageController {
|
|
3
|
+
private readonly stageGroupService;
|
|
4
|
+
constructor(stageGroupService: StageService);
|
|
5
|
+
getAllStage(req: Request & {
|
|
6
|
+
user: any;
|
|
7
|
+
}, body: {
|
|
8
|
+
stage_group_id: number;
|
|
9
|
+
}): Promise<import("../entity/stage.entity").Stage[]>;
|
|
10
|
+
getStagesWithGroupName(workflow_id: number, req: Request & {
|
|
11
|
+
user: any;
|
|
12
|
+
}): Promise<any>;
|
|
13
|
+
}
|
|
@@ -0,0 +1,56 @@
|
|
|
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.StageController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const jwt_guard_1 = require("../../auth/guards/jwt.guard");
|
|
18
|
+
const stage_service_1 = require("../service/stage.service");
|
|
19
|
+
let StageController = class StageController {
|
|
20
|
+
constructor(stageGroupService) {
|
|
21
|
+
this.stageGroupService = stageGroupService;
|
|
22
|
+
}
|
|
23
|
+
async getAllStage(req, body) {
|
|
24
|
+
const { level_id, level_type } = req.user.userData;
|
|
25
|
+
return this.stageGroupService.getAllStage(body.stage_group_id, level_id, level_type);
|
|
26
|
+
}
|
|
27
|
+
async getStagesWithGroupName(workflow_id, req) {
|
|
28
|
+
const { level_id, level_type } = req.user.userData;
|
|
29
|
+
return this.stageGroupService.getStagesWithGroupName(workflow_id, level_id, level_type);
|
|
30
|
+
}
|
|
31
|
+
};
|
|
32
|
+
exports.StageController = StageController;
|
|
33
|
+
__decorate([
|
|
34
|
+
(0, common_1.Post)('/getAllStage'),
|
|
35
|
+
__param(0, (0, common_1.Req)()),
|
|
36
|
+
__param(1, (0, common_1.Body)()),
|
|
37
|
+
__metadata("design:type", Function),
|
|
38
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
39
|
+
__metadata("design:returntype", Promise)
|
|
40
|
+
], StageController.prototype, "getAllStage", null);
|
|
41
|
+
__decorate([
|
|
42
|
+
(0, common_1.Post)('/getStagesWithGroupName'),
|
|
43
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
44
|
+
__param(0, (0, common_1.Body)('workflow_id')),
|
|
45
|
+
__param(1, (0, common_1.Req)()),
|
|
46
|
+
__metadata("design:type", Function),
|
|
47
|
+
__metadata("design:paramtypes", [Number, Object]),
|
|
48
|
+
__metadata("design:returntype", Promise)
|
|
49
|
+
], StageController.prototype, "getStagesWithGroupName", null);
|
|
50
|
+
exports.StageController = StageController = __decorate([
|
|
51
|
+
(0, common_1.Controller)('/stage'),
|
|
52
|
+
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
53
|
+
__param(0, (0, common_1.Inject)('StageService')),
|
|
54
|
+
__metadata("design:paramtypes", [stage_service_1.StageService])
|
|
55
|
+
], StageController);
|
|
56
|
+
//# sourceMappingURL=stage.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"stage.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/stage.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAUwB;AACxB,2DAAgE;AAChE,4DAAwD;AAKjD,IAAM,eAAe,GAArB,MAAM,eAAe;IAC1B,YAEmB,iBAA+B;QAA/B,sBAAiB,GAAjB,iBAAiB,CAAc;IAC/C,CAAC;IAGE,AAAN,KAAK,CAAC,WAAW,CACR,GAA4B,EAC3B,IAAgC;QAExC,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACnD,OAAO,IAAI,CAAC,iBAAiB,CAAC,WAAW,CACvC,IAAI,CAAC,cAAc,EACnB,QAAQ,EACR,UAAU,CACX,CAAC;IACJ,CAAC;IAIK,AAAN,KAAK,CAAC,sBAAsB,CACL,WAAmB,EACjC,GAA4B;QAEnC,MAAM,EAAE,QAAQ,EAAE,UAAU,EAAE,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACnD,OAAO,IAAI,CAAC,iBAAiB,CAAC,sBAAsB,CAClD,WAAW,EACX,QAAQ,EACR,UAAU,CACX,CAAC;IACJ,CAAC;CACF,CAAA;AAhCY,0CAAe;AAOpB;IADL,IAAA,aAAI,EAAC,cAAc,CAAC;IAElB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,GAAE,CAAA;;;;kDAQR;AAIK;IAFL,IAAA,aAAI,EAAC,yBAAyB,CAAC;IAC/B,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,aAAI,EAAC,aAAa,CAAC,CAAA;IACnB,WAAA,IAAA,YAAG,GAAE,CAAA;;;;6DAQP;0BA/BU,eAAe;IAF3B,IAAA,mBAAU,EAAC,QAAQ,CAAC;IACpB,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAGnB,WAAA,IAAA,eAAM,EAAC,cAAc,CAAC,CAAA;qCACa,4BAAY;GAHvC,eAAe,CAgC3B"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import { TaskService } from '../service/task.service';
|
|
2
|
+
export declare class TaskController {
|
|
3
|
+
private readonly taskService;
|
|
4
|
+
constructor(taskService: TaskService);
|
|
5
|
+
getTasksbyUserAndStage(req: Request & {
|
|
6
|
+
user: any;
|
|
7
|
+
}, body: {
|
|
8
|
+
stage_id: number;
|
|
9
|
+
mapped_entity_type?: string;
|
|
10
|
+
mapped_entity_id?: number;
|
|
11
|
+
user_id?: number;
|
|
12
|
+
}): Promise<any>;
|
|
13
|
+
moveTask(req: Request & {
|
|
14
|
+
user: any;
|
|
15
|
+
}, body: {
|
|
16
|
+
mapped_entity_type: string;
|
|
17
|
+
mapped_entity_id: number;
|
|
18
|
+
stage_id: number;
|
|
19
|
+
action_id: number;
|
|
20
|
+
}): Promise<any>;
|
|
21
|
+
}
|
|
@@ -0,0 +1,58 @@
|
|
|
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.TaskController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const jwt_guard_1 = require("../../auth/guards/jwt.guard");
|
|
18
|
+
const task_service_1 = require("../service/task.service");
|
|
19
|
+
let TaskController = class TaskController {
|
|
20
|
+
constructor(taskService) {
|
|
21
|
+
this.taskService = taskService;
|
|
22
|
+
}
|
|
23
|
+
async getTasksbyUserAndStage(req, body) {
|
|
24
|
+
const loggedInUser = req.user.userData;
|
|
25
|
+
const result = this.taskService.getAllTaskByUserIdandStageId(loggedInUser, body);
|
|
26
|
+
return result;
|
|
27
|
+
}
|
|
28
|
+
async moveTask(req, body) {
|
|
29
|
+
const loggedInUser = req.user.userData;
|
|
30
|
+
const result = this.taskService.moveTask(loggedInUser, body);
|
|
31
|
+
return result;
|
|
32
|
+
}
|
|
33
|
+
};
|
|
34
|
+
exports.TaskController = TaskController;
|
|
35
|
+
__decorate([
|
|
36
|
+
(0, common_1.Post)('/by-user-and-stage'),
|
|
37
|
+
(0, common_1.HttpCode)(common_1.HttpStatus.OK),
|
|
38
|
+
__param(0, (0, common_1.Req)()),
|
|
39
|
+
__param(1, (0, common_1.Body)()),
|
|
40
|
+
__metadata("design:type", Function),
|
|
41
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
42
|
+
__metadata("design:returntype", Promise)
|
|
43
|
+
], TaskController.prototype, "getTasksbyUserAndStage", null);
|
|
44
|
+
__decorate([
|
|
45
|
+
(0, common_1.Post)('/move-task'),
|
|
46
|
+
__param(0, (0, common_1.Req)()),
|
|
47
|
+
__param(1, (0, common_1.Body)()),
|
|
48
|
+
__metadata("design:type", Function),
|
|
49
|
+
__metadata("design:paramtypes", [Object, Object]),
|
|
50
|
+
__metadata("design:returntype", Promise)
|
|
51
|
+
], TaskController.prototype, "moveTask", null);
|
|
52
|
+
exports.TaskController = TaskController = __decorate([
|
|
53
|
+
(0, common_1.Controller)('/task'),
|
|
54
|
+
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
55
|
+
__param(0, (0, common_1.Inject)('TaskService')),
|
|
56
|
+
__metadata("design:paramtypes", [task_service_1.TaskService])
|
|
57
|
+
], TaskController);
|
|
58
|
+
//# sourceMappingURL=task.controller.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"task.controller.js","sourceRoot":"","sources":["../../../../src/module/workflow/controller/task.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,2DAAgE;AAChE,0DAAsD;AAI/C,IAAM,cAAc,GAApB,MAAM,cAAc;IACzB,YAEmB,WAAwB;QAAxB,gBAAW,GAAX,WAAW,CAAa;IACxC,CAAC;IAIE,AAAN,KAAK,CAAC,sBAAsB,CACnB,GAA4B,EAEnC,IAKC;QAED,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,4BAA4B,CAC1D,YAAY,EACZ,IAAI,CACL,CAAC;QACF,OAAO,MAAM,CAAC;IAChB,CAAC;IAGK,AAAN,KAAK,CAAC,QAAQ,CACL,GAA4B,EAEnC,IAKC;QAED,MAAM,YAAY,GAAG,GAAG,CAAC,IAAI,CAAC,QAAQ,CAAC;QACvC,MAAM,MAAM,GAAG,IAAI,CAAC,WAAW,CAAC,QAAQ,CAAC,YAAY,EAAE,IAAI,CAAC,CAAC;QAC7D,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AAzCY,wCAAc;AAQnB;IAFL,IAAA,aAAI,EAAC,oBAAoB,CAAC;IAC1B,IAAA,iBAAQ,EAAC,mBAAU,CAAC,EAAE,CAAC;IAErB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,GAAE,CAAA;;;;4DAcR;AAGK;IADL,IAAA,aAAI,EAAC,YAAY,CAAC;IAEhB,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,aAAI,GAAE,CAAA;;;;8CAWR;yBAxCU,cAAc;IAF1B,IAAA,mBAAU,EAAC,OAAO,CAAC;IACnB,IAAA,kBAAS,EAAC,wBAAY,CAAC;IAGnB,WAAA,IAAA,eAAM,EAAC,aAAa,CAAC,CAAA;qCACQ,0BAAW;GAHhC,cAAc,CAyC1B"}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { WorkflowMetaService } from '../service/workflow-meta.service';
|
|
2
|
+
import { StageMovementData } from '../entity/stage-movement-data.entity';
|
|
3
|
+
export declare class WorkflowMetaController {
|
|
4
|
+
private readonly workflowMetaService;
|
|
5
|
+
constructor(workflowMetaService: WorkflowMetaService);
|
|
6
|
+
getCurrentStage(mapped_entity_type: string, mapped_entity_id: number, req: Request & {
|
|
7
|
+
user: any;
|
|
8
|
+
}): Promise<StageMovementData | null>;
|
|
9
|
+
getNextStage(mapped_entity_type: string, mapped_entity_id: number, req: Request & {
|
|
10
|
+
user: any;
|
|
11
|
+
}): Promise<number | null>;
|
|
12
|
+
moveToNextStage(mapped_entity_type: string, mapped_entity_id: number, req: Request & {
|
|
13
|
+
user: any;
|
|
14
|
+
}): Promise<string>;
|
|
15
|
+
}
|
|
@@ -0,0 +1,70 @@
|
|
|
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.WorkflowMetaController = void 0;
|
|
16
|
+
const common_1 = require("@nestjs/common");
|
|
17
|
+
const workflow_meta_service_1 = require("../service/workflow-meta.service");
|
|
18
|
+
const jwt_guard_1 = require("../../auth/guards/jwt.guard");
|
|
19
|
+
let WorkflowMetaController = class WorkflowMetaController {
|
|
20
|
+
constructor(workflowMetaService) {
|
|
21
|
+
this.workflowMetaService = workflowMetaService;
|
|
22
|
+
}
|
|
23
|
+
async getCurrentStage(mapped_entity_type, mapped_entity_id, req) {
|
|
24
|
+
let loggedInUser = req.user.userData;
|
|
25
|
+
return this.workflowMetaService.getCurrentStage(mapped_entity_type, Number(mapped_entity_id), loggedInUser);
|
|
26
|
+
}
|
|
27
|
+
async getNextStage(mapped_entity_type, mapped_entity_id, req) {
|
|
28
|
+
const loggedInUser = req.user.userData;
|
|
29
|
+
const current = await this.workflowMetaService.getCurrentStage(mapped_entity_type, Number(mapped_entity_id), loggedInUser);
|
|
30
|
+
return current ? this.workflowMetaService.getNextStage(current) : null;
|
|
31
|
+
}
|
|
32
|
+
async moveToNextStage(mapped_entity_type, mapped_entity_id, req) {
|
|
33
|
+
const loggedInUser = req.user.userData;
|
|
34
|
+
return this.workflowMetaService.moveToNextStage(mapped_entity_type, Number(mapped_entity_id), loggedInUser);
|
|
35
|
+
}
|
|
36
|
+
};
|
|
37
|
+
exports.WorkflowMetaController = WorkflowMetaController;
|
|
38
|
+
__decorate([
|
|
39
|
+
(0, common_1.Get)('current-stage'),
|
|
40
|
+
__param(0, (0, common_1.Query)('entityType')),
|
|
41
|
+
__param(1, (0, common_1.Query)('entityId')),
|
|
42
|
+
__param(2, (0, common_1.Req)()),
|
|
43
|
+
__metadata("design:type", Function),
|
|
44
|
+
__metadata("design:paramtypes", [String, Number, Object]),
|
|
45
|
+
__metadata("design:returntype", Promise)
|
|
46
|
+
], WorkflowMetaController.prototype, "getCurrentStage", null);
|
|
47
|
+
__decorate([
|
|
48
|
+
(0, common_1.Get)('next-stage'),
|
|
49
|
+
__param(0, (0, common_1.Query)('entityType')),
|
|
50
|
+
__param(1, (0, common_1.Query)('entityId')),
|
|
51
|
+
__param(2, (0, common_1.Req)()),
|
|
52
|
+
__metadata("design:type", Function),
|
|
53
|
+
__metadata("design:paramtypes", [String, Number, Object]),
|
|
54
|
+
__metadata("design:returntype", Promise)
|
|
55
|
+
], WorkflowMetaController.prototype, "getNextStage", null);
|
|
56
|
+
__decorate([
|
|
57
|
+
(0, common_1.Post)('move-next-stage'),
|
|
58
|
+
__param(0, (0, common_1.Body)('entityType')),
|
|
59
|
+
__param(1, (0, common_1.Body)('entityId')),
|
|
60
|
+
__param(2, (0, common_1.Req)()),
|
|
61
|
+
__metadata("design:type", Function),
|
|
62
|
+
__metadata("design:paramtypes", [String, Number, Object]),
|
|
63
|
+
__metadata("design:returntype", Promise)
|
|
64
|
+
], WorkflowMetaController.prototype, "moveToNextStage", null);
|
|
65
|
+
exports.WorkflowMetaController = WorkflowMetaController = __decorate([
|
|
66
|
+
(0, common_1.Controller)('workflow-meta'),
|
|
67
|
+
(0, common_1.UseGuards)(jwt_guard_1.JwtAuthGuard),
|
|
68
|
+
__metadata("design:paramtypes", [workflow_meta_service_1.WorkflowMetaService])
|
|
69
|
+
], WorkflowMetaController);
|
|
70
|
+
//# sourceMappingURL=workflow-meta.controller.js.map
|