rez_core 2.2.12 → 2.2.13
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/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/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/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/workflow.module.ts +2 -0
package/package.json
CHANGED
|
@@ -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
|
}
|
|
@@ -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,
|