rez_core 2.2.12 → 2.2.14
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/action-category.controller.d.ts +3 -0
- package/dist/module/workflow/controller/action-category.controller.js +14 -0
- package/dist/module/workflow/controller/action-category.controller.js.map +1 -1
- package/dist/module/workflow/entity/form-master.entity.d.ts +8 -0
- package/dist/module/workflow/entity/form-master.entity.js +42 -0
- package/dist/module/workflow/entity/form-master.entity.js.map +1 -0
- package/dist/module/workflow/entity/task-data.entity.d.ts +0 -2
- package/dist/module/workflow/entity/task-data.entity.js +0 -8
- package/dist/module/workflow/entity/task-data.entity.js.map +1 -1
- package/dist/module/workflow/repository/task.repository.js +2 -2
- package/dist/module/workflow/repository/task.repository.js.map +1 -1
- package/dist/module/workflow/service/action-category.service.d.ts +1 -0
- package/dist/module/workflow/service/action-category.service.js +9 -0
- package/dist/module/workflow/service/action-category.service.js.map +1 -1
- package/dist/module/workflow/workflow.module.js +2 -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/workflow/controller/action-category.controller.ts +14 -0
- package/src/module/workflow/entity/form-master.entity.ts +22 -0
- package/src/module/workflow/entity/task-data.entity.ts +0 -6
- package/src/module/workflow/repository/task.repository.ts +2 -2
- package/src/module/workflow/service/action-category.service.ts +14 -0
- package/src/module/workflow/workflow.module.ts +2 -0
package/package.json
CHANGED
|
@@ -46,4 +46,18 @@ export class ActionCategoryController {
|
|
|
46
46
|
);
|
|
47
47
|
return result;
|
|
48
48
|
}
|
|
49
|
+
|
|
50
|
+
@Post('/getactioncategorydata')
|
|
51
|
+
@HttpCode(HttpStatus.OK)
|
|
52
|
+
async getActionCategory(
|
|
53
|
+
@Req() req: Request & { user: any },
|
|
54
|
+
@Body('action_cat_id') action_cat_id: number,
|
|
55
|
+
) {
|
|
56
|
+
const loggedInUser = req.user.userData;
|
|
57
|
+
const result = this.actionCategoryService.getActionCategory(
|
|
58
|
+
loggedInUser,
|
|
59
|
+
action_cat_id,
|
|
60
|
+
);
|
|
61
|
+
return result;
|
|
62
|
+
}
|
|
49
63
|
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
2
|
+
import { Column, Entity } from 'typeorm';
|
|
3
|
+
|
|
4
|
+
@Entity({ name: 'cr_form_master' })
|
|
5
|
+
export class FormMasterDataEntity extends BaseEntity {
|
|
6
|
+
constructor() {
|
|
7
|
+
super();
|
|
8
|
+
this.entity_type = 'FORM';
|
|
9
|
+
}
|
|
10
|
+
|
|
11
|
+
@Column({ nullable: true })
|
|
12
|
+
mapped_entity_type: string;
|
|
13
|
+
|
|
14
|
+
@Column({ nullable: true })
|
|
15
|
+
source_entity_type: string;
|
|
16
|
+
|
|
17
|
+
@Column({ nullable: true })
|
|
18
|
+
view_id: string;
|
|
19
|
+
|
|
20
|
+
@Column({ nullable: true })
|
|
21
|
+
form_name: string;
|
|
22
|
+
}
|
|
@@ -47,12 +47,6 @@ export class TaskDataEntity extends BaseEntity {
|
|
|
47
47
|
@Column({ default: 0 })
|
|
48
48
|
is_done: boolean;
|
|
49
49
|
|
|
50
|
-
@Column({ nullable: true })
|
|
51
|
-
task_status: string;
|
|
52
|
-
|
|
53
|
-
@Column({ nullable: true })
|
|
54
|
-
task_name: string;
|
|
55
|
-
|
|
56
50
|
@Column({ nullable: true, type: 'varchar', length: 1000 })
|
|
57
51
|
description: string;
|
|
58
52
|
|
|
@@ -47,7 +47,7 @@ export class TaskRepository {
|
|
|
47
47
|
mapped_entity_id,
|
|
48
48
|
mapped_entity_type,
|
|
49
49
|
is_system: true,
|
|
50
|
-
|
|
50
|
+
status: todoListMasterItemId[0]?.id,
|
|
51
51
|
} as TaskDataEntity);
|
|
52
52
|
await this.TaskRepository.save(taskData);
|
|
53
53
|
}
|
|
@@ -79,7 +79,7 @@ export class TaskRepository {
|
|
|
79
79
|
task.modified_by = loggedInUser.id;
|
|
80
80
|
task.modified_date = new Date();
|
|
81
81
|
task.is_done = true;
|
|
82
|
-
task.
|
|
82
|
+
task.status = completedListMasterItemId[0]?.id;
|
|
83
83
|
|
|
84
84
|
await this.TaskRepository.update(task.id, task);
|
|
85
85
|
}
|
|
@@ -47,4 +47,18 @@ export class ActionCategoryService extends EntityServiceImpl {
|
|
|
47
47
|
value: result?.[0]?.reason_code || null,
|
|
48
48
|
};
|
|
49
49
|
}
|
|
50
|
+
|
|
51
|
+
async getActionCategory(loggedInUser: UserData, action_cat_id: number) {
|
|
52
|
+
const { organization_id } = loggedInUser;
|
|
53
|
+
const result = await this.dataSource.query(
|
|
54
|
+
`
|
|
55
|
+
SELECT *
|
|
56
|
+
FROM cr_wf_action_category
|
|
57
|
+
WHERE organization_id = ? AND id = ?
|
|
58
|
+
`,
|
|
59
|
+
[organization_id, action_cat_id],
|
|
60
|
+
);
|
|
61
|
+
|
|
62
|
+
return result;
|
|
63
|
+
}
|
|
50
64
|
}
|
|
@@ -49,6 +49,7 @@ import { TaskRepository } from './repository/task.repository';
|
|
|
49
49
|
import { ActionRepository } from './repository/action.repository';
|
|
50
50
|
import { ActionDataRepository } from './repository/action-data.repository';
|
|
51
51
|
import { ActionDataService } from './service/action-data.service';
|
|
52
|
+
import { FormMasterDataEntity } from './entity/form-master.entity';
|
|
52
53
|
|
|
53
54
|
@Module({
|
|
54
55
|
imports: [
|
|
@@ -67,6 +68,7 @@ import { ActionDataService } from './service/action-data.service';
|
|
|
67
68
|
WorkflowLevelMappingEntity,
|
|
68
69
|
TaskDataEntity,
|
|
69
70
|
ActionDataEntity,
|
|
71
|
+
FormMasterDataEntity,
|
|
70
72
|
]),
|
|
71
73
|
EntityModule,
|
|
72
74
|
ListMasterModule,
|