rez_core 2.1.139 → 2.1.140
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/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/stage-group.controller.d.ts +8 -2
- package/dist/module/workflow/controller/stage-group.controller.js +17 -5
- package/dist/module/workflow/controller/stage-group.controller.js.map +1 -1
- package/dist/module/workflow/controller/stage.controller.d.ts +10 -0
- package/dist/module/workflow/controller/stage.controller.js +43 -0
- package/dist/module/workflow/controller/stage.controller.js.map +1 -0
- package/dist/module/workflow/controller/workflow.controller.d.ts +11 -1
- package/dist/module/workflow/controller/workflow.controller.js +13 -0
- package/dist/module/workflow/controller/workflow.controller.js.map +1 -1
- package/dist/module/workflow/entity/action.entity.d.ts +4 -1
- package/dist/module/workflow/entity/action.entity.js +20 -8
- package/dist/module/workflow/entity/action.entity.js.map +1 -1
- 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.entity.d.ts +1 -2
- package/dist/module/workflow/entity/stage.entity.js +1 -5
- package/dist/module/workflow/entity/stage.entity.js.map +1 -1
- package/dist/module/workflow/entity/workflow.entity.d.ts +1 -0
- package/dist/module/workflow/entity/workflow.entity.js +4 -0
- package/dist/module/workflow/entity/workflow.entity.js.map +1 -1
- package/dist/module/workflow/repository/comm-template.repository.d.ts +7 -0
- package/dist/module/workflow/repository/comm-template.repository.js +39 -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.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/service/action.service.d.ts +2 -0
- package/dist/module/workflow/service/action.service.js +39 -7
- package/dist/module/workflow/service/action.service.js.map +1 -1
- package/dist/module/workflow/service/comm-template.service.d.ts +8 -2
- package/dist/module/workflow/service/comm-template.service.js +18 -3
- package/dist/module/workflow/service/comm-template.service.js.map +1 -1
- package/dist/module/workflow/service/stage-group.service.d.ts +8 -0
- package/dist/module/workflow/service/stage-group.service.js +19 -1
- package/dist/module/workflow/service/stage-group.service.js.map +1 -1
- package/dist/module/workflow/service/stage.service.d.ts +7 -5
- package/dist/module/workflow/service/stage.service.js +12 -18
- package/dist/module/workflow/service/stage.service.js.map +1 -1
- package/dist/module/workflow/service/workflow.service.d.ts +9 -0
- package/dist/module/workflow/service/workflow.service.js +24 -0
- package/dist/module/workflow/service/workflow.service.js.map +1 -1
- package/dist/module/workflow/workflow.module.js +17 -2
- 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/workflow/controller/comm-template.controller.ts +31 -0
- package/src/module/workflow/controller/stage-group.controller.ts +27 -4
- package/src/module/workflow/controller/stage.controller.ts +33 -0
- package/src/module/workflow/controller/workflow.controller.ts +7 -1
- package/src/module/workflow/entity/action.entity.ts +10 -1
- package/src/module/workflow/entity/stage-group.entity.ts +1 -1
- package/src/module/workflow/entity/stage.entity.ts +1 -4
- package/src/module/workflow/entity/workflow.entity.ts +3 -0
- package/src/module/workflow/repository/comm-template.repository.ts +22 -0
- package/src/module/workflow/repository/stage-group.repository.ts +46 -0
- package/src/module/workflow/repository/stage.repository.ts +47 -0
- package/src/module/workflow/service/action.service.ts +85 -14
- package/src/module/workflow/service/comm-template.service.ts +21 -2
- package/src/module/workflow/service/stage-group.service.ts +35 -2
- package/src/module/workflow/service/stage.service.ts +24 -33
- package/src/module/workflow/service/workflow.service.ts +34 -0
- package/src/module/workflow/workflow.module.ts +17 -2
|
@@ -18,6 +18,15 @@ let ActionService = class ActionService extends entity_service_impl_service_1.En
|
|
|
18
18
|
super();
|
|
19
19
|
this.dataSource = dataSource;
|
|
20
20
|
}
|
|
21
|
+
async getEntityData(entityType, id, loggedInUser) {
|
|
22
|
+
const actionData = await super.getEntityData(entityType, id, loggedInUser);
|
|
23
|
+
if (!actionData) {
|
|
24
|
+
return null;
|
|
25
|
+
}
|
|
26
|
+
const template = await this.dataSource.query(`SELECT template_code FROM cr_wf_action_template_mapping WHERE stg_act_mapping_id =
|
|
27
|
+
(SELECT id FROM cr_wf_stage_action_mapping WHERE action_id = ? AND entity_type = 'STGM')`, [actionData.id]);
|
|
28
|
+
return { ...actionData, template: template.map((t) => t.template_code) };
|
|
29
|
+
}
|
|
21
30
|
async createEntity(entityData, loggedInUser, manager, appcode) {
|
|
22
31
|
console.log('entityData', entityData);
|
|
23
32
|
let actionData = entityData;
|
|
@@ -31,13 +40,7 @@ let ActionService = class ActionService extends entity_service_impl_service_1.En
|
|
|
31
40
|
if (Array.isArray(actionData.template) && actionData.template.length > 0) {
|
|
32
41
|
const templates = actionData.template;
|
|
33
42
|
for (let i = 0; i < templates.length; i++) {
|
|
34
|
-
const
|
|
35
|
-
const templateResult = await this.dataSource.query(`SELECT code FROM cr_wf_comm_template WHERE id = ?`, [templateId]);
|
|
36
|
-
if (templateResult.length === 0) {
|
|
37
|
-
console.warn(`Template not found for id: ${templateId}`);
|
|
38
|
-
continue;
|
|
39
|
-
}
|
|
40
|
-
const templateCode = templateResult[0].code;
|
|
43
|
+
const templateCode = templates[i];
|
|
41
44
|
const actionTemplateMapping = {
|
|
42
45
|
stg_act_mapping_id: stageActionMappingData.id,
|
|
43
46
|
template_code: templateCode,
|
|
@@ -48,6 +51,35 @@ let ActionService = class ActionService extends entity_service_impl_service_1.En
|
|
|
48
51
|
}
|
|
49
52
|
return actionData;
|
|
50
53
|
}
|
|
54
|
+
async updateEntity(entityData, loggedInUser) {
|
|
55
|
+
console.log('entityData', entityData);
|
|
56
|
+
const { template, stage_id, ...actionData } = entityData;
|
|
57
|
+
let action = await super.updateEntity(actionData, loggedInUser);
|
|
58
|
+
if (!action) {
|
|
59
|
+
throw new Error('Action not found or could not be updated');
|
|
60
|
+
}
|
|
61
|
+
const stageMapID = await this.dataSource.query(`SELECT id FROM cr_wf_stage_action_mapping WHERE action_id = ? AND entity_type = 'STGM'`, [action.id]);
|
|
62
|
+
let stageActionMapping = {
|
|
63
|
+
action_id: action.id,
|
|
64
|
+
stage_id: stage_id,
|
|
65
|
+
entity_type: 'STGM',
|
|
66
|
+
id: stageMapID.length > 0 ? stageMapID[0].id : null,
|
|
67
|
+
};
|
|
68
|
+
let stageActionMappingData = await super.updateEntity(stageActionMapping, loggedInUser);
|
|
69
|
+
if (Array.isArray(template) && template.length > 0) {
|
|
70
|
+
for (let i = 0; i < template.length; i++) {
|
|
71
|
+
const templateCode = template[i];
|
|
72
|
+
await this.dataSource.query(`DELETE FROM cr_wf_action_template_mapping WHERE stg_act_mapping_id = ? AND template_code = ?`, [stageActionMappingData.id, templateCode]);
|
|
73
|
+
const actionTemplateMapping = {
|
|
74
|
+
stg_act_mapping_id: stageActionMappingData.id,
|
|
75
|
+
template_code: templateCode,
|
|
76
|
+
entity_type: 'ATMP',
|
|
77
|
+
};
|
|
78
|
+
await super.createEntity(actionTemplateMapping, loggedInUser);
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
return action;
|
|
82
|
+
}
|
|
51
83
|
};
|
|
52
84
|
exports.ActionService = ActionService;
|
|
53
85
|
exports.ActionService = ActionService = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"action.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/action.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAE5C,gGAAwF;AAExF,qCAAoD;
|
|
1
|
+
{"version":3,"file":"action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AAM,CAAC,EAAE;YACpB,QAAQ,EAAE,QAAQ;YAClB,WAAW,EAAE,MAAM;YACnB,EAAE,EAAE,UAAU,CAAC,MAAM,GAAG,CAAC,CAAC,CAAC,CAAC,UAAU,CAAC,CAAC,CAAC,CAAC,EAAE,CAAC,CAAC,CAAC,IAAI;SAC7C,CAAC;QAET,IAAI,sBAAsB,GAAG,MAAM,KAAK,CAAC,YAAY,CACnD,kBAAkB,EAClB,YAAY,CACb,CAAC;QAGF,IAAI,KAAK,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,QAAQ,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;YACnD,KAAK,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,QAAQ,CAAC,MAAM,EAAE,CAAC,EAAE,EAAE,CAAC;gBACzC,MAAM,YAAY,GAAG,QAAQ,CAAC,CAAC,CAAC,CAAC;gBAGjC,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACzB,8FAA8F,EAC9F,CAAC,sBAAsB,CAAC,EAAE,EAAE,YAAY,CAAC,CAC1C,CAAC;gBAGF,MAAM,qBAAqB,GAAG;oBAC5B,kBAAkB,EAAE,sBAAsB,CAAC,EAAE;oBAC7C,aAAa,EAAE,YAAY;oBAC3B,WAAW,EAAE,MAAM;iBACb,CAAC;gBAET,MAAM,KAAK,CAAC,YAAY,CAAC,qBAAqB,EAAE,YAAY,CAAC,CAAC;YAChE,CAAC;QACH,CAAC;QAED,OAAO,MAAM,CAAC;IAChB,CAAC;CACF,CAAA;AA9IY,sCAAa;wBAAb,aAAa;IADzB,IAAA,mBAAU,GAAE;qCAE8B,oBAAU;GADxC,aAAa,CA8IzB"}
|
|
@@ -1,3 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
export declare class CommTemplateService
|
|
1
|
+
import { CommTemplateRepository } from '../repository/comm-template.repository';
|
|
2
|
+
export declare class CommTemplateService {
|
|
3
|
+
private readonly commTemplateRepository;
|
|
4
|
+
constructor(commTemplateRepository: CommTemplateRepository);
|
|
5
|
+
getAllCommTemplate(entity_type: string, loggedInUser: any): Promise<{
|
|
6
|
+
label: string;
|
|
7
|
+
value: string;
|
|
8
|
+
}[]>;
|
|
3
9
|
}
|
|
@@ -5,14 +5,29 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
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
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
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
|
+
};
|
|
8
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
12
|
exports.CommTemplateService = void 0;
|
|
10
13
|
const common_1 = require("@nestjs/common");
|
|
11
|
-
const
|
|
12
|
-
let CommTemplateService = class CommTemplateService
|
|
14
|
+
const comm_template_repository_1 = require("../repository/comm-template.repository");
|
|
15
|
+
let CommTemplateService = class CommTemplateService {
|
|
16
|
+
constructor(commTemplateRepository) {
|
|
17
|
+
this.commTemplateRepository = commTemplateRepository;
|
|
18
|
+
}
|
|
19
|
+
async getAllCommTemplate(entity_type, loggedInUser) {
|
|
20
|
+
const commTemplateData = await this.commTemplateRepository.getAllCommTemplate(entity_type, loggedInUser);
|
|
21
|
+
const response = commTemplateData.map((item) => ({
|
|
22
|
+
label: item.name,
|
|
23
|
+
value: item.code,
|
|
24
|
+
}));
|
|
25
|
+
return response;
|
|
26
|
+
}
|
|
13
27
|
};
|
|
14
28
|
exports.CommTemplateService = CommTemplateService;
|
|
15
29
|
exports.CommTemplateService = CommTemplateService = __decorate([
|
|
16
|
-
(0, common_1.Injectable)()
|
|
30
|
+
(0, common_1.Injectable)(),
|
|
31
|
+
__metadata("design:paramtypes", [comm_template_repository_1.CommTemplateRepository])
|
|
17
32
|
], CommTemplateService);
|
|
18
33
|
//# sourceMappingURL=comm-template.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"comm-template.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/comm-template.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"comm-template.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/comm-template.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qFAAgF;AAGzE,IAAM,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YACmB,sBAA8C;QAA9C,2BAAsB,GAAtB,sBAAsB,CAAwB;IAC9D,CAAC;IAEJ,KAAK,CAAC,kBAAkB,CAAC,WAAmB,EAAE,YAAY;QACxD,MAAM,gBAAgB,GACpB,MAAM,IAAI,CAAC,sBAAsB,CAAC,kBAAkB,CAClD,WAAW,EACX,YAAY,CACb,CAAC;QAEJ,MAAM,QAAQ,GAAG,gBAAgB,CAAC,GAAG,CAAC,CAAC,IAAI,EAAE,EAAE,CAAC,CAAC;YAC/C,KAAK,EAAE,IAAI,CAAC,IAAI;YAChB,KAAK,EAAE,IAAI,CAAC,IAAI;SACjB,CAAC,CAAC,CAAC;QAEJ,OAAO,QAAQ,CAAC;IAClB,CAAC;CACF,CAAA;AAnBY,kDAAmB;8BAAnB,mBAAmB;IAD/B,IAAA,mBAAU,GAAE;qCAGgC,iDAAsB;GAFtD,mBAAmB,CAmB/B"}
|
|
@@ -1,3 +1,11 @@
|
|
|
1
1
|
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
2
|
+
import { StageGroupRepository } from '../repository/stage-group.repository';
|
|
3
|
+
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
4
|
+
import { UserData } from 'src/module/user/entity/user.entity';
|
|
2
5
|
export declare class StageGroupService extends EntityServiceImpl {
|
|
6
|
+
private readonly stageGroupRepository;
|
|
7
|
+
constructor(stageGroupRepository: StageGroupRepository);
|
|
8
|
+
getAllStageGroup(workflow_id: number, level_id: string, level_type: string): Promise<import("../entity/stage-group.entity").StageGroup[]>;
|
|
9
|
+
updateEntity(entityData: BaseEntity, loggedInUser: UserData): Promise<any>;
|
|
10
|
+
getEntityData(entityType: string, id: number, loggedInUser?: UserData): Promise<BaseEntity | null>;
|
|
3
11
|
}
|
|
@@ -5,14 +5,32 @@ var __decorate = (this && this.__decorate) || function (decorators, target, key,
|
|
|
5
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
6
|
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
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
|
+
};
|
|
8
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
9
12
|
exports.StageGroupService = void 0;
|
|
10
13
|
const common_1 = require("@nestjs/common");
|
|
11
14
|
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
15
|
+
const stage_group_repository_1 = require("../repository/stage-group.repository");
|
|
12
16
|
let StageGroupService = class StageGroupService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
17
|
+
constructor(stageGroupRepository) {
|
|
18
|
+
super();
|
|
19
|
+
this.stageGroupRepository = stageGroupRepository;
|
|
20
|
+
}
|
|
21
|
+
async getAllStageGroup(workflow_id, level_id, level_type) {
|
|
22
|
+
return await this.stageGroupRepository.getAllStageGroup(workflow_id, level_id, level_type);
|
|
23
|
+
}
|
|
24
|
+
async updateEntity(entityData, loggedInUser) {
|
|
25
|
+
return await super.updateEntity(entityData, loggedInUser);
|
|
26
|
+
}
|
|
27
|
+
async getEntityData(entityType, id, loggedInUser) {
|
|
28
|
+
return await super.getEntityData(entityType, id, loggedInUser);
|
|
29
|
+
}
|
|
13
30
|
};
|
|
14
31
|
exports.StageGroupService = StageGroupService;
|
|
15
32
|
exports.StageGroupService = StageGroupService = __decorate([
|
|
16
|
-
(0, common_1.Injectable)()
|
|
33
|
+
(0, common_1.Injectable)(),
|
|
34
|
+
__metadata("design:paramtypes", [stage_group_repository_1.StageGroupRepository])
|
|
17
35
|
], StageGroupService);
|
|
18
36
|
//# sourceMappingURL=stage-group.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage-group.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/stage-group.service.ts"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"stage-group.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/stage-group.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAAoD;AACpD,gGAAwF;AACxF,iFAA4E;AAKrE,IAAM,iBAAiB,GAAvB,MAAM,iBAAkB,SAAQ,+CAAiB;IACtD,YAA6B,oBAA0C;QACrE,KAAK,EAAE,CAAC;QADmB,yBAAoB,GAApB,oBAAoB,CAAsB;IAEvE,CAAC;IACD,KAAK,CAAC,gBAAgB,CACpB,WAAmB,EACnB,QAAgB,EAChB,UAAkB;QAElB,OAAO,MAAM,IAAI,CAAC,oBAAoB,CAAC,gBAAgB,CACrD,WAAW,EACX,QAAQ,EACR,UAAU,CACX,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAAsB;QAEtB,OAAO,MAAM,KAAK,CAAC,YAAY,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAC5D,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,UAAkB,EAClB,EAAU,EACV,YAAuB;QAEvB,OAAO,MAAM,KAAK,CAAC,aAAa,CAAC,UAAU,EAAE,EAAE,EAAE,YAAY,CAAC,CAAC;IACjE,CAAC;CACF,CAAA;AA9BY,8CAAiB;4BAAjB,iBAAiB;IAD7B,IAAA,mBAAU,GAAE;qCAEwC,6CAAoB;GAD5D,iBAAiB,CA8B7B"}
|
|
@@ -1,9 +1,11 @@
|
|
|
1
|
-
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
2
1
|
import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
|
|
2
|
+
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
3
3
|
import { UserData } from 'src/module/user/entity/user.entity';
|
|
4
|
-
import {
|
|
4
|
+
import { StageRepository } from '../repository/stage.repository';
|
|
5
5
|
export declare class StageService extends EntityServiceImpl {
|
|
6
|
-
private readonly
|
|
7
|
-
constructor(
|
|
8
|
-
|
|
6
|
+
private readonly stageRepository;
|
|
7
|
+
constructor(stageRepository: StageRepository);
|
|
8
|
+
getAllStage(stage_group_id: number, level_id: string, level_type: string): Promise<import("../entity/stage.entity").Stage[]>;
|
|
9
|
+
updateEntity(entityData: BaseEntity, loggedInUser: UserData): Promise<any>;
|
|
10
|
+
getEntityData(entityType: string, id: number, loggedInUser?: UserData): Promise<BaseEntity | null>;
|
|
9
11
|
}
|
|
@@ -12,31 +12,25 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
12
12
|
exports.StageService = void 0;
|
|
13
13
|
const common_1 = require("@nestjs/common");
|
|
14
14
|
const entity_service_impl_service_1 = require("../../meta/service/entity-service-impl.service");
|
|
15
|
-
const
|
|
15
|
+
const stage_repository_1 = require("../repository/stage.repository");
|
|
16
16
|
let StageService = class StageService extends entity_service_impl_service_1.EntityServiceImpl {
|
|
17
|
-
constructor(
|
|
17
|
+
constructor(stageRepository) {
|
|
18
18
|
super();
|
|
19
|
-
this.
|
|
19
|
+
this.stageRepository = stageRepository;
|
|
20
20
|
}
|
|
21
|
-
async
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
if (stageGroupName && stageData.name) {
|
|
31
|
-
stageData.full_name = `${stageGroupName}-${stageData.name}`;
|
|
32
|
-
}
|
|
33
|
-
const savedStage = await super.createEntity(stageData, loggedInUser, manager, appcode);
|
|
34
|
-
return savedStage;
|
|
21
|
+
async getAllStage(stage_group_id, level_id, level_type) {
|
|
22
|
+
return await this.stageRepository.getAllStage(stage_group_id, level_id, level_type);
|
|
23
|
+
}
|
|
24
|
+
async updateEntity(entityData, loggedInUser) {
|
|
25
|
+
return await super.updateEntity(entityData, loggedInUser);
|
|
26
|
+
}
|
|
27
|
+
async getEntityData(entityType, id, loggedInUser) {
|
|
28
|
+
return await super.getEntityData(entityType, id, loggedInUser);
|
|
35
29
|
}
|
|
36
30
|
};
|
|
37
31
|
exports.StageService = StageService;
|
|
38
32
|
exports.StageService = StageService = __decorate([
|
|
39
33
|
(0, common_1.Injectable)(),
|
|
40
|
-
__metadata("design:paramtypes", [
|
|
34
|
+
__metadata("design:paramtypes", [stage_repository_1.StageRepository])
|
|
41
35
|
], StageService);
|
|
42
36
|
//# sourceMappingURL=stage.service.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stage.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/stage.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;
|
|
1
|
+
{"version":3,"file":"stage.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/stage.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,gGAAwF;AAGxF,qEAAiE;AAG1D,IAAM,YAAY,GAAlB,MAAM,YAAa,SAAQ,+CAAiB;IACjD,YAA6B,eAAgC;QAC3D,KAAK,EAAE,CAAC;QADmB,oBAAe,GAAf,eAAe,CAAiB;IAE7D,CAAC;IACD,KAAK,CAAC,WAAW,CACf,cAAsB,EACtB,QAAgB,EAChB,UAAkB;QAElB,OAAO,MAAM,IAAI,CAAC,eAAe,CAAC,WAAW,CAC3C,cAAc,EACd,QAAQ,EACR,UAAU,CACX,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAAsB;QAEtB,OAAO,MAAM,KAAK,CAAC,YAAY,CAAC,UAAU,EAAE,YAAY,CAAC,CAAC;IAC5D,CAAC;IAED,KAAK,CAAC,aAAa,CACjB,UAAkB,EAClB,EAAU,EACV,YAAuB;QAEvB,OAAO,MAAM,KAAK,CAAC,aAAa,CAAC,UAAU,EAAE,EAAE,EAAE,YAAY,CAAC,CAAC;IACjE,CAAC;CACF,CAAA;AA9BY,oCAAY;uBAAZ,YAAY;IADxB,IAAA,mBAAU,GAAE;qCAEmC,kCAAe;GADlD,YAAY,CA8BxB"}
|
|
@@ -16,4 +16,13 @@ export declare class WorkflowService extends EntityServiceImpl {
|
|
|
16
16
|
deleteWorkflowById(id: number): Promise<{
|
|
17
17
|
message: string;
|
|
18
18
|
}>;
|
|
19
|
+
updateSequence(body: any[], loggedInUser: any): Promise<{
|
|
20
|
+
updated: number;
|
|
21
|
+
results: {
|
|
22
|
+
id: any;
|
|
23
|
+
success: boolean;
|
|
24
|
+
result?: any;
|
|
25
|
+
error?: string;
|
|
26
|
+
}[];
|
|
27
|
+
}>;
|
|
19
28
|
}
|
|
@@ -68,6 +68,30 @@ let WorkflowService = class WorkflowService extends entity_service_impl_service_
|
|
|
68
68
|
async deleteWorkflowById(id) {
|
|
69
69
|
return this.workflowRepository.deleteWorkflowById(id);
|
|
70
70
|
}
|
|
71
|
+
async updateSequence(body, loggedInUser) {
|
|
72
|
+
if (!Array.isArray(body) || body.length === 0) {
|
|
73
|
+
throw new common_1.BadRequestException('Invalid input. Expected a non-empty array.');
|
|
74
|
+
}
|
|
75
|
+
const results = [];
|
|
76
|
+
for (const item of body) {
|
|
77
|
+
if (!item.id || item.sequence === undefined) {
|
|
78
|
+
results.push({
|
|
79
|
+
id: item.id || null,
|
|
80
|
+
success: false,
|
|
81
|
+
error: 'Missing id or sequence',
|
|
82
|
+
});
|
|
83
|
+
continue;
|
|
84
|
+
}
|
|
85
|
+
try {
|
|
86
|
+
const result = await super.updateEntity(item, loggedInUser);
|
|
87
|
+
results.push({ id: item.id, success: true, result });
|
|
88
|
+
}
|
|
89
|
+
catch (err) {
|
|
90
|
+
results.push({ id: item.id, success: false, error: err.message });
|
|
91
|
+
}
|
|
92
|
+
}
|
|
93
|
+
return { updated: results.filter((r) => r.success).length, results };
|
|
94
|
+
}
|
|
71
95
|
};
|
|
72
96
|
exports.WorkflowService = WorkflowService;
|
|
73
97
|
exports.WorkflowService = WorkflowService = __decorate([
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/workflow.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyE;AACzE,gGAAwF;AACxF,qCAAyC;AACzC,2EAAuE;AAGvE,sFAAsF;AACtF,uEAAyE;AACzE,+DAAqD;AAG9C,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,+CAAiB;IACpD,YACmB,UAAsB,EACtB,kBAAsC,EAEtC,iBAAoC;QAErD,KAAK,EAAE,CAAC;QALS,eAAU,GAAV,UAAU,CAAY;QACtB,uBAAkB,GAAlB,kBAAkB,CAAoB;QAEtC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAGvD,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,WAAmB,EACnB,QAAgB,EAChB,UAAkB;QAElB,OAAO,IAAI,CAAC,kBAAkB,CAAC,wBAAwB,CACrD,WAAW,EACX,QAAQ,EACR,UAAU,CACX,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EAAU;QAC9B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACxC,wCAAwC,EACxC,CAAC,EAAE,CAAC,CACL,CAAC;QACF,OAAO,MAAM,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;IAC3B,CAAC;IAGD,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAAsB;QAEtB,MAAM,aAAa,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C;CACF,CAAA;
|
|
1
|
+
{"version":3,"file":"workflow.service.js","sourceRoot":"","sources":["../../../../src/module/workflow/service/workflow.service.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAyE;AACzE,gGAAwF;AACxF,qCAAyC;AACzC,2EAAuE;AAGvE,sFAAsF;AACtF,uEAAyE;AACzE,+DAAqD;AAG9C,IAAM,eAAe,GAArB,MAAM,eAAgB,SAAQ,+CAAiB;IACpD,YACmB,UAAsB,EACtB,kBAAsC,EAEtC,iBAAoC;QAErD,KAAK,EAAE,CAAC;QALS,eAAU,GAAV,UAAU,CAAY;QACtB,uBAAkB,GAAlB,kBAAkB,CAAoB;QAEtC,sBAAiB,GAAjB,iBAAiB,CAAmB;IAGvD,CAAC;IAED,KAAK,CAAC,eAAe,CACnB,WAAmB,EACnB,QAAgB,EAChB,UAAkB;QAElB,OAAO,IAAI,CAAC,kBAAkB,CAAC,wBAAwB,CACrD,WAAW,EACX,QAAQ,EACR,UAAU,CACX,CAAC;IACJ,CAAC;IAED,KAAK,CAAC,eAAe,CAAC,EAAU;QAC9B,MAAM,MAAM,GAAG,MAAM,IAAI,CAAC,UAAU,CAAC,KAAK,CACxC,wCAAwC,EACxC,CAAC,EAAE,CAAC,CACL,CAAC;QACF,OAAO,MAAM,CAAC,CAAC,CAAC,IAAI,IAAI,CAAC;IAC3B,CAAC;IAGD,KAAK,CAAC,YAAY,CAChB,UAAsB,EACtB,YAAsB;QAEtB,MAAM,aAAa,GAAG,MAAM,IAAI,CAAC,iBAAiB,CAAC,mBAAmB,CACpE,iCAAe,EACf,YAAY,EAAE,eAAe,IAAI,CAAC,CACnC,CAAC;QAEF,MAAM,UAAU,GAAG,UAAU,CAAC,EAAE,CAAC;QAGjC,IAAI,UAAU,CAAC,MAAM,IAAI,aAAa,CAAC,EAAE,EAAE,CAAC;YAC1C,MAAM,gBAAgB,GAAG,CAAC,MAAM,IAAI,CAAC,aAAa,CAChD,0BAAQ,EACR,UAAU,EACV,YA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I,CAAC,IAAI,CAAC,EAAE,IAAI,IAAI,CAAC,QAAQ,KAAK,SAAS,EAAE,CAAC;gBAC5C,OAAO,CAAC,IAAI,CAAC;oBACX,EAAE,EAAE,IAAI,CAAC,EAAE,IAAI,IAAI;oBACnB,OAAO,EAAE,KAAK;oBACd,KAAK,EAAE,wBAAwB;iBAChC,CAAC,CAAC;gBACH,SAAS;YACX,CAAC;YAED,IAAI,CAAC;gBACH,MAAM,MAAM,GAAG,MAAM,KAAK,CAAC,YAAY,CAAC,IAAI,EAAE,YAAY,CAAC,CAAC;gBAC5D,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC,CAAC;YACvD,CAAC;YAAC,OAAO,GAAG,EAAE,CAAC;gBACb,OAAO,CAAC,IAAI,CAAC,EAAE,EAAE,EAAE,IAAI,CAAC,EAAE,EAAE,OAAO,EAAE,KAAK,EAAE,KAAK,EAAE,GAAG,CAAC,OAAO,EAAE,CAAC,CAAC;YACpE,CAAC;QACH,CAAC;QACD,OAAO,EAAE,OAAO,EAAE,OAAO,CAAC,MAAM,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC,OAAO,CAAC,CAAC,MAAM,EAAE,OAAO,EAAE,CAAC;IACvE,CAAC;CACF,CAAA;AAvHY,0CAAe;0BAAf,eAAe;IAD3B,IAAA,mBAAU,GAAE;IAKR,WAAA,IAAA,eAAM,EAAC,mBAAmB,CAAC,CAAA;qCAFC,oBAAU;QACF,wCAAkB;QAEnB,uCAAiB;GAL5C,eAAe,CAuH3B"}
|
|
@@ -25,13 +25,19 @@ const stage_service_1 = require("./service/stage.service");
|
|
|
25
25
|
const stage_group_service_1 = require("./service/stage-group.service");
|
|
26
26
|
const typeorm_1 = require("@nestjs/typeorm");
|
|
27
27
|
const entity_module_1 = require("../meta/entity.module");
|
|
28
|
-
const action_entity_1 = require("./entity/action.entity");
|
|
29
28
|
const workflow_list_master_service_1 = require("./service/workflow-list-master.service");
|
|
30
29
|
const workflow_list_master_controller_1 = require("./controller/workflow-list-master.controller");
|
|
31
30
|
const action_template_mapping_controller_1 = require("./controller/action-template-mapping.controller");
|
|
32
31
|
const workflow_controller_1 = require("./controller/workflow.controller");
|
|
33
32
|
const workflow_repository_1 = require("./repository/workflow.repository");
|
|
34
33
|
const listmaster_module_1 = require("../listmaster/listmaster.module");
|
|
34
|
+
const comm_template_controller_1 = require("./controller/comm-template.controller");
|
|
35
|
+
const comm_template_repository_1 = require("./repository/comm-template.repository");
|
|
36
|
+
const action_entity_1 = require("./entity/action.entity");
|
|
37
|
+
const stage_group_repository_1 = require("./repository/stage-group.repository");
|
|
38
|
+
const stage_group_controller_1 = require("./controller/stage-group.controller");
|
|
39
|
+
const stage_controller_1 = require("./controller/stage.controller");
|
|
40
|
+
const stage_repository_1 = require("./repository/stage.repository");
|
|
35
41
|
let WorkflowModule = class WorkflowModule {
|
|
36
42
|
};
|
|
37
43
|
exports.WorkflowModule = WorkflowModule;
|
|
@@ -40,7 +46,7 @@ exports.WorkflowModule = WorkflowModule = __decorate([
|
|
|
40
46
|
imports: [
|
|
41
47
|
typeorm_1.TypeOrmModule.forFeature([
|
|
42
48
|
workflow_entity_1.Workflow,
|
|
43
|
-
action_entity_1.
|
|
49
|
+
action_entity_1.ActionEntity,
|
|
44
50
|
action_category_entity_1.ActionCategory,
|
|
45
51
|
stage_entity_1.Stage,
|
|
46
52
|
stage_group_entity_1.StageGroup,
|
|
@@ -65,6 +71,10 @@ exports.WorkflowModule = WorkflowModule = __decorate([
|
|
|
65
71
|
workflow_list_master_service_1.WorkflowListMasterService,
|
|
66
72
|
action_template_mapping_service_1.ActionTemplateMappingService,
|
|
67
73
|
workflow_repository_1.WorkflowRepository,
|
|
74
|
+
comm_template_service_1.CommTemplateService,
|
|
75
|
+
comm_template_repository_1.CommTemplateRepository,
|
|
76
|
+
stage_group_repository_1.StageGroupRepository,
|
|
77
|
+
stage_repository_1.StageRepository,
|
|
68
78
|
],
|
|
69
79
|
exports: [
|
|
70
80
|
'ActionCategoryService',
|
|
@@ -74,11 +84,16 @@ exports.WorkflowModule = WorkflowModule = __decorate([
|
|
|
74
84
|
'StageService',
|
|
75
85
|
'StageGroupService',
|
|
76
86
|
workflow_repository_1.WorkflowRepository,
|
|
87
|
+
stage_group_repository_1.StageGroupRepository,
|
|
88
|
+
stage_repository_1.StageRepository,
|
|
77
89
|
],
|
|
78
90
|
controllers: [
|
|
79
91
|
workflow_list_master_controller_1.WorkflowListMasterController,
|
|
80
92
|
action_template_mapping_controller_1.ActionTemplateMappingController,
|
|
81
93
|
workflow_controller_1.WorkflowController,
|
|
94
|
+
comm_template_controller_1.CommTemplateController,
|
|
95
|
+
stage_group_controller_1.StageGroupController,
|
|
96
|
+
stage_controller_1.StageController,
|
|
82
97
|
],
|
|
83
98
|
})
|
|
84
99
|
], WorkflowModule);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"workflow.module.js","sourceRoot":"","sources":["../../../src/module/workflow/workflow.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,8DAAoD;AACpD,iEAA6D;AAC7D,oEAAyD;AACzD,wDAA8C;AAC9C,4EAAiE;AACjE,wEAA6D;AAC7D,4FAAgF;AAChF,sFAA0E;AAC1E,+EAA0E;AAC1E,2EAAsE;AACtE,yFAAmF;AACnF,+FAAyF;AACzF,6DAAyD;AACzD,2DAAuD;AACvD,uEAAkE;AAClE,6CAAgD;AAChD,yDAAqD;AACrD,
|
|
1
|
+
{"version":3,"file":"workflow.module.js","sourceRoot":"","sources":["../../../src/module/workflow/workflow.module.ts"],"names":[],"mappings":";;;;;;;;;AAAA,2CAAwC;AACxC,8DAAoD;AACpD,iEAA6D;AAC7D,oEAAyD;AACzD,wDAA8C;AAC9C,4EAAiE;AACjE,wEAA6D;AAC7D,4FAAgF;AAChF,sFAA0E;AAC1E,+EAA0E;AAC1E,2EAA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