rez_core 3.1.210 → 4.0.2
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/dashboard/entity/dashboard_page_data.entity.js +1 -1
- package/dist/module/dashboard/entity/dashboard_page_data.entity.js.map +1 -1
- package/dist/module/dashboard/entity/widget_master.entity.js +1 -1
- package/dist/module/dashboard/entity/widget_master.entity.js.map +1 -1
- package/dist/module/dashboard/repository/dashboard.repository.js +1 -1
- package/dist/module/dashboard/repository/dashboard.repository.js.map +1 -1
- package/dist/module/enterprise/repository/school.repository.js +5 -5
- package/dist/module/enterprise/repository/school.repository.js.map +1 -1
- package/dist/module/filter/entity/saved-filter-detail.entity.js +1 -1
- package/dist/module/filter/entity/saved-filter-detail.entity.js.map +1 -1
- package/dist/module/filter/entity/saved-filter-master.entity.js +1 -1
- package/dist/module/filter/entity/saved-filter-master.entity.js.map +1 -1
- package/dist/module/filter/repository/saved-filter.repository.js +1 -1
- package/dist/module/filter/service/filter-evaluator.service.js +1 -1
- package/dist/module/filter/service/filter.service.js +7 -1
- package/dist/module/filter/service/filter.service.js.map +1 -1
- package/dist/module/integration/entity/integration-config.entity.js +1 -1
- package/dist/module/integration/entity/integration-config.entity.js.map +1 -1
- package/dist/module/integration/entity/integration-entity-mapper.entity.js +1 -1
- package/dist/module/integration/entity/integration-entity-mapper.entity.js.map +1 -1
- package/dist/module/integration/entity/integration-source.entity.js +1 -1
- package/dist/module/integration/entity/integration-source.entity.js.map +1 -1
- package/dist/module/integration/entity/user-integration.entity.js +1 -1
- package/dist/module/integration/entity/user-integration.entity.js.map +1 -1
- package/dist/module/integration/service/integration.service.js +1 -1
- package/dist/module/integration/service/integration.service.js.map +1 -1
- package/dist/module/integration/service/wrapper.service.js +8 -8
- package/dist/module/integration/service/wrapper.service.js.map +1 -1
- package/dist/module/layout_preference/entity/layout_preference.entity.js +1 -1
- package/dist/module/layout_preference/entity/layout_preference.entity.js.map +1 -1
- package/dist/module/listmaster/entity/list-master-items.entity.js +1 -1
- package/dist/module/listmaster/entity/list-master-items.entity.js.map +1 -1
- package/dist/module/listmaster/entity/list-master.entity.js +1 -1
- package/dist/module/listmaster/entity/list-master.entity.js.map +1 -1
- package/dist/module/listmaster/service/list-master-item.service.js +1 -1
- package/dist/module/listmaster/service/list-master.service.js +4 -5
- package/dist/module/listmaster/service/list-master.service.js.map +1 -1
- package/dist/module/mapper/entity/field-lovs.entity.js +1 -1
- package/dist/module/mapper/entity/field-lovs.entity.js.map +1 -1
- package/dist/module/mapper/entity/field-mapper.entity.js +1 -1
- package/dist/module/mapper/entity/field-mapper.entity.js.map +1 -1
- package/dist/module/mapper/entity/mapper.entity.js +1 -1
- package/dist/module/mapper/entity/mapper.entity.js.map +1 -1
- package/dist/module/mapper/service/field-mapper.service.js +1 -1
- package/dist/module/mapper/service/mapper.service.js +2 -2
- package/dist/module/mapper/service/mapper.service.js.map +1 -1
- package/dist/module/master/service/master.service.js +8 -8
- package/dist/module/master/service/master.service.js.map +1 -1
- package/dist/module/meta/entity/attribute-master.entity.js +1 -1
- package/dist/module/meta/entity/attribute-master.entity.js.map +1 -1
- package/dist/module/meta/entity/entity-master.entity.js +1 -1
- package/dist/module/meta/entity/entity-master.entity.js.map +1 -1
- package/dist/module/meta/entity/entity-relation-data.entity.js +1 -1
- package/dist/module/meta/entity/entity-relation-data.entity.js.map +1 -1
- package/dist/module/meta/entity/entity-relation.entity.js +1 -1
- package/dist/module/meta/entity/entity-relation.entity.js.map +1 -1
- package/dist/module/meta/entity/entity-table-column.entity.js +1 -1
- package/dist/module/meta/entity/entity-table-column.entity.js.map +1 -1
- package/dist/module/meta/entity/entity-table.entity.js +1 -1
- package/dist/module/meta/entity/entity-table.entity.js.map +1 -1
- package/dist/module/meta/entity/media-data.entity.js +1 -1
- package/dist/module/meta/entity/media-data.entity.js.map +1 -1
- package/dist/module/meta/entity/preference.entity.js +1 -1
- package/dist/module/meta/entity/preference.entity.js.map +1 -1
- package/dist/module/meta/entity/view-master.entity.js +1 -1
- package/dist/module/meta/entity/view-master.entity.js.map +1 -1
- package/dist/module/meta/repository/attribute-master.repository.js +1 -1
- package/dist/module/meta/repository/attribute-master.repository.js.map +1 -1
- package/dist/module/meta/repository/entity-master.repository.js +2 -2
- package/dist/module/meta/repository/entity-master.repository.js.map +1 -1
- package/dist/module/meta/service/entity-dynamic.service.js +15 -15
- package/dist/module/meta/service/entity-dynamic.service.js.map +1 -1
- package/dist/module/meta/service/entity-master.service.js +1 -1
- package/dist/module/meta/service/entity-relation.service.js +3 -3
- package/dist/module/meta/service/entity-service-impl.service.js +2 -2
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
- package/dist/module/meta/service/populate-meta.service.js +11 -11
- package/dist/module/meta/service/populate-meta.service.js.map +1 -1
- package/dist/module/meta/service/resolver.service.js +8 -8
- package/dist/module/meta/service/resolver.service.js.map +1 -1
- package/dist/module/notification/entity/notification.entity.js +1 -1
- package/dist/module/notification/entity/notification.entity.js.map +1 -1
- package/dist/module/notification/service/email.service.js +2 -2
- package/dist/module/notification/service/email.service.js.map +1 -1
- package/dist/module/notification/service/notification.service.js +2 -2
- package/dist/module/third-party-module/entity/third-party-api-registry.entity.js +1 -1
- package/dist/module/third-party-module/entity/third-party-api-registry.entity.js.map +1 -1
- package/dist/module/workflow/entity/action-category.entity.js +1 -1
- package/dist/module/workflow/entity/action-category.entity.js.map +1 -1
- package/dist/module/workflow/entity/action-data.entity.js +1 -1
- package/dist/module/workflow/entity/action-data.entity.js.map +1 -1
- package/dist/module/workflow/entity/action-resources-mapping.entity.js +1 -1
- package/dist/module/workflow/entity/action-resources-mapping.entity.js.map +1 -1
- package/dist/module/workflow/entity/action-template-mapping.entity.js +1 -1
- package/dist/module/workflow/entity/action-template-mapping.entity.js.map +1 -1
- package/dist/module/workflow/entity/action.entity.js +1 -1
- package/dist/module/workflow/entity/action.entity.js.map +1 -1
- package/dist/module/workflow/entity/activity-log.entity.js +1 -1
- package/dist/module/workflow/entity/activity-log.entity.js.map +1 -1
- package/dist/module/workflow/entity/comm-template.entity.js +1 -1
- package/dist/module/workflow/entity/comm-template.entity.js.map +1 -1
- package/dist/module/workflow/entity/entity-modification.entity.js +1 -1
- package/dist/module/workflow/entity/entity-modification.entity.js.map +1 -1
- package/dist/module/workflow/entity/form.entity.js +1 -1
- package/dist/module/workflow/entity/form.entity.js.map +1 -1
- package/dist/module/workflow/entity/stage-action-mapping.entity.js +1 -1
- package/dist/module/workflow/entity/stage-action-mapping.entity.js.map +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.js +1 -1
- package/dist/module/workflow/entity/stage-movement-data.entity.js.map +1 -1
- package/dist/module/workflow/entity/stage.entity.js +1 -1
- package/dist/module/workflow/entity/stage.entity.js.map +1 -1
- package/dist/module/workflow/entity/task-data.entity.js +1 -1
- package/dist/module/workflow/entity/task-data.entity.js.map +1 -1
- package/dist/module/workflow/entity/template-attach-mapper.entity.js +1 -1
- package/dist/module/workflow/entity/template-attach-mapper.entity.js.map +1 -1
- package/dist/module/workflow/entity/workflow-data.entity.js +1 -1
- package/dist/module/workflow/entity/workflow-data.entity.js.map +1 -1
- package/dist/module/workflow/entity/workflow-level-mapping.entity.js +1 -1
- package/dist/module/workflow/entity/workflow-level-mapping.entity.js.map +1 -1
- package/dist/module/workflow/entity/workflow.entity.js +1 -1
- package/dist/module/workflow/entity/workflow.entity.js.map +1 -1
- package/dist/module/workflow/repository/action-data.repository.js +4 -4
- package/dist/module/workflow/repository/action-data.repository.js.map +1 -1
- package/dist/module/workflow/repository/action.repository.js +14 -14
- package/dist/module/workflow/repository/action.repository.js.map +1 -1
- package/dist/module/workflow/repository/comm-template.repository.js +2 -2
- package/dist/module/workflow/repository/form-master.repository.js +2 -2
- package/dist/module/workflow/repository/form-master.repository.js.map +1 -1
- package/dist/module/workflow/repository/stage-group.repository.js +6 -6
- package/dist/module/workflow/repository/stage-group.repository.js.map +1 -1
- package/dist/module/workflow/repository/stage-movement.repository.js +6 -6
- package/dist/module/workflow/repository/stage-movement.repository.js.map +1 -1
- package/dist/module/workflow/repository/stage.repository.js +6 -6
- package/dist/module/workflow/repository/stage.repository.js.map +1 -1
- package/dist/module/workflow/repository/task.repository.js +3 -3
- package/dist/module/workflow/repository/task.repository.js.map +1 -1
- package/dist/module/workflow/service/action-template-mapping.service.js +4 -4
- package/dist/module/workflow/service/action-template-mapping.service.js.map +1 -1
- package/dist/module/workflow/service/action.service.js +9 -9
- package/dist/module/workflow/service/action.service.js.map +1 -1
- package/dist/module/workflow/service/entity-modification.service.js +2 -2
- package/dist/module/workflow/service/entity-modification.service.js.map +1 -1
- package/dist/module/workflow/service/populate-workflow.service.js +14 -14
- package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
- package/dist/module/workflow/service/stage-group.service.js +3 -3
- package/dist/module/workflow/service/stage-group.service.js.map +1 -1
- package/dist/module/workflow/service/stage.service.js +3 -3
- package/dist/module/workflow/service/stage.service.js.map +1 -1
- package/dist/module/workflow/service/task.service.js +11 -11
- package/dist/module/workflow/service/task.service.js.map +1 -1
- package/dist/module/workflow/service/workflow-list-master.service.js +5 -5
- package/dist/module/workflow/service/workflow-list-master.service.js.map +1 -1
- package/dist/module/workflow/service/workflow-meta.service.js +10 -10
- package/dist/module/workflow/service/workflow-meta.service.js.map +1 -1
- package/dist/module/workflow/service/workflow.service.js +3 -3
- package/dist/module/workflow/service/workflow.service.js.map +1 -1
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js +1 -1
- package/dist/module/workflow-automation/entity/workflow-automation-action.entity.js.map +1 -1
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js +1 -1
- package/dist/module/workflow-automation/entity/workflow-automation.entity.js.map +1 -1
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.js +1 -1
- package/dist/module/workflow-automation/service/workflow-automation-engine.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/docs/modules/event-driven-integration-design.md +1 -1
- package/docs/modules/integration.md +4 -4
- package/package.json +1 -1
- package/src/module/dashboard/entity/dashboard_page_data.entity.ts +1 -1
- package/src/module/dashboard/entity/widget_master.entity.ts +1 -1
- package/src/module/dashboard/repository/dashboard.repository.ts +1 -1
- package/src/module/enterprise/repository/school.repository.ts +5 -5
- package/src/module/filter/entity/saved-filter-detail.entity.ts +1 -1
- package/src/module/filter/entity/saved-filter-master.entity.ts +1 -1
- package/src/module/filter/repository/saved-filter.repository.ts +1 -1
- package/src/module/filter/service/filter-evaluator.service.ts +1 -1
- package/src/module/filter/service/filter.service.ts +9 -1
- package/src/module/integration/entity/integration-config.entity.ts +1 -1
- package/src/module/integration/entity/integration-entity-mapper.entity.ts +1 -1
- package/src/module/integration/entity/integration-source.entity.ts +1 -1
- package/src/module/integration/entity/user-integration.entity.ts +1 -1
- package/src/module/integration/service/integration.service.ts +1 -1
- package/src/module/integration/service/wrapper.service.ts +8 -8
- package/src/module/layout_preference/entity/layout_preference.entity.ts +1 -1
- package/src/module/listmaster/entity/list-master-items.entity.ts +1 -1
- package/src/module/listmaster/entity/list-master.entity.ts +1 -1
- package/src/module/listmaster/service/list-master-item.service.ts +1 -1
- package/src/module/listmaster/service/list-master.service.ts +26 -24
- package/src/module/mapper/entity/field-lovs.entity.ts +1 -1
- package/src/module/mapper/entity/field-mapper.entity.ts +1 -1
- package/src/module/mapper/entity/mapper.entity.ts +1 -1
- package/src/module/mapper/service/field-mapper.service.ts +1 -1
- package/src/module/mapper/service/mapper.service.ts +2 -2
- package/src/module/master/service/master.service.ts +15 -15
- package/src/module/meta/entity/attribute-master.entity.ts +1 -1
- package/src/module/meta/entity/entity-master.entity.ts +1 -1
- package/src/module/meta/entity/entity-relation-data.entity.ts +1 -1
- package/src/module/meta/entity/entity-relation.entity.ts +1 -1
- package/src/module/meta/entity/entity-table-column.entity.ts +1 -1
- package/src/module/meta/entity/entity-table.entity.ts +1 -1
- package/src/module/meta/entity/media-data.entity.ts +1 -1
- package/src/module/meta/entity/preference.entity.ts +1 -1
- package/src/module/meta/entity/view-master.entity.ts +1 -1
- package/src/module/meta/repository/attribute-master.repository.ts +1 -1
- package/src/module/meta/repository/entity-master.repository.ts +2 -2
- package/src/module/meta/service/entity-dynamic.service.ts +15 -15
- package/src/module/meta/service/entity-master.service.ts +1 -1
- package/src/module/meta/service/entity-relation.service.ts +3 -3
- package/src/module/meta/service/entity-service-impl.service.ts +2 -2
- package/src/module/meta/service/populate-meta.service.ts +14 -14
- package/src/module/meta/service/resolver.service.ts +8 -8
- package/src/module/notification/entity/notification.entity.ts +1 -1
- package/src/module/notification/service/email.service.ts +3 -3
- package/src/module/notification/service/notification.service.ts +2 -2
- package/src/module/third-party-module/entity/third-party-api-registry.entity.ts +1 -1
- package/src/module/workflow/entity/action-category.entity.ts +1 -1
- package/src/module/workflow/entity/action-data.entity.ts +1 -1
- package/src/module/workflow/entity/action-resources-mapping.entity.ts +1 -1
- package/src/module/workflow/entity/action-template-mapping.entity.ts +1 -1
- package/src/module/workflow/entity/action.entity.ts +1 -1
- package/src/module/workflow/entity/activity-log.entity.ts +1 -1
- package/src/module/workflow/entity/comm-template.entity.ts +1 -1
- package/src/module/workflow/entity/entity-modification.entity.ts +1 -1
- package/src/module/workflow/entity/form.entity.ts +1 -1
- package/src/module/workflow/entity/stage-action-mapping.entity.ts +1 -1
- package/src/module/workflow/entity/stage-group.entity.ts +1 -1
- package/src/module/workflow/entity/stage-movement-data.entity.ts +1 -1
- package/src/module/workflow/entity/stage.entity.ts +1 -1
- package/src/module/workflow/entity/task-data.entity.ts +1 -1
- package/src/module/workflow/entity/template-attach-mapper.entity.ts +1 -1
- package/src/module/workflow/entity/workflow-data.entity.ts +1 -1
- package/src/module/workflow/entity/workflow-level-mapping.entity.ts +1 -1
- package/src/module/workflow/entity/workflow.entity.ts +1 -1
- package/src/module/workflow/repository/action-data.repository.ts +4 -4
- package/src/module/workflow/repository/action.repository.ts +15 -15
- package/src/module/workflow/repository/comm-template.repository.ts +2 -2
- package/src/module/workflow/repository/form-master.repository.ts +2 -2
- package/src/module/workflow/repository/stage-group.repository.ts +6 -6
- package/src/module/workflow/repository/stage-movement.repository.ts +6 -6
- package/src/module/workflow/repository/stage.repository.ts +8 -8
- package/src/module/workflow/repository/task.repository.ts +3 -3
- package/src/module/workflow/service/action-template-mapping.service.ts +4 -4
- package/src/module/workflow/service/action.service.ts +9 -9
- package/src/module/workflow/service/entity-modification.service.ts +3 -3
- package/src/module/workflow/service/populate-workflow.service.ts +20 -20
- package/src/module/workflow/service/stage-group.service.ts +3 -3
- package/src/module/workflow/service/stage.service.ts +3 -3
- package/src/module/workflow/service/task.service.ts +12 -12
- package/src/module/workflow/service/workflow-list-master.service.ts +5 -5
- package/src/module/workflow/service/workflow-meta.service.ts +10 -10
- package/src/module/workflow/service/workflow.service.ts +4 -4
- package/src/module/workflow-automation/entity/workflow-automation-action.entity.ts +1 -1
- package/src/module/workflow-automation/entity/workflow-automation.entity.ts +1 -1
- package/src/module/workflow-automation/service/workflow-automation-engine.service.ts +2 -2
|
@@ -2,7 +2,7 @@ import { ENTITYTYPE_ENTITYTABLECOLUMN } from '../../../constant/global.constant'
|
|
|
2
2
|
import { Column, Entity } from 'typeorm';
|
|
3
3
|
import { BaseEntity } from './base-entity.entity';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_entity_table_column' })
|
|
6
6
|
export class EntityTableColumn extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -2,7 +2,7 @@ import { Column, Entity } from 'typeorm';
|
|
|
2
2
|
import { BaseEntity } from './base-entity.entity';
|
|
3
3
|
import { ENTITYTYPE_ENTITYTABLE } from '../../../constant/global.constant';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_entity_table' })
|
|
6
6
|
export class EntityTable extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -2,7 +2,7 @@ import { Column, Entity } from 'typeorm';
|
|
|
2
2
|
import { BaseEntity } from './base-entity.entity';
|
|
3
3
|
import { ENTITYTYPE_MEDIA } from '../../../constant/global.constant';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_media_data' })
|
|
6
6
|
export class MediaData extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -2,7 +2,7 @@ import { BaseEntity } from './base-entity.entity';
|
|
|
2
2
|
import { Column, Entity } from 'typeorm';
|
|
3
3
|
import { ENTITYTYPE_PREFERENCEMASTER } from '../../../constant/global.constant';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_preference_master' })
|
|
6
6
|
export class PreferenceMaster extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -2,7 +2,7 @@ import { BaseEntity } from './base-entity.entity';
|
|
|
2
2
|
import { Column, Entity } from 'typeorm';
|
|
3
3
|
import { ENTITYTYPE_VIEWMASTER } from '../../../constant/global.constant';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_entity_view' })
|
|
6
6
|
export class ViewMaster extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -82,7 +82,7 @@ export class AttributeMasterRepository {
|
|
|
82
82
|
loggedInUser: UserData,
|
|
83
83
|
): Promise<string | null> {
|
|
84
84
|
const result = await this.dataSource.query(
|
|
85
|
-
`SELECT db_table_name FROM
|
|
85
|
+
`SELECT db_table_name FROM frm_entity_master WHERE mapped_entity_type = ? AND organization_id = ?`,
|
|
86
86
|
[entityType, loggedInUser.organization_id],
|
|
87
87
|
);
|
|
88
88
|
return result.length ? result[0].db_table_name : null;
|
|
@@ -18,7 +18,7 @@ export class EntityMasterRepository {
|
|
|
18
18
|
let data = await this.entityMasterRepository.findOne({ where: { id } });
|
|
19
19
|
if (data) {
|
|
20
20
|
let listMasterData = await this.entityMasterRepository.query(
|
|
21
|
-
`SELECT * FROM
|
|
21
|
+
`SELECT * FROM frm_list_master_items where id = ?`,
|
|
22
22
|
[data?.status],
|
|
23
23
|
);
|
|
24
24
|
data.status = listMasterData?.[0].name;
|
|
@@ -55,7 +55,7 @@ export class EntityMasterRepository {
|
|
|
55
55
|
const organization_id = loggedInUser.organization_id;
|
|
56
56
|
|
|
57
57
|
const attributes = await this.dataSource.query(
|
|
58
|
-
`SELECT * FROM
|
|
58
|
+
`SELECT * FROM frm_entity_attribute WHERE mapped_entity_type = ? AND data_type = 'DATE' AND organization_id = ?`,
|
|
59
59
|
[entity_type, organization_id],
|
|
60
60
|
);
|
|
61
61
|
|
|
@@ -33,7 +33,7 @@ export class EntityDynamicService {
|
|
|
33
33
|
);
|
|
34
34
|
|
|
35
35
|
const statusList = await this.dataSource.query(
|
|
36
|
-
`SELECT id FROM
|
|
36
|
+
`SELECT id FROM frm_list_master_items WHERE code = ? AND organization_id = ?`,
|
|
37
37
|
[STATUS_ACTIVE, loggedInUser?.organization_id || 0],
|
|
38
38
|
);
|
|
39
39
|
|
|
@@ -148,7 +148,7 @@ export class EntityDynamicService {
|
|
|
148
148
|
const organizationId = loggedInUser.organization_id;
|
|
149
149
|
|
|
150
150
|
const getRelation = await this.dataSource.query(
|
|
151
|
-
`SELECT * FROM
|
|
151
|
+
`SELECT * FROM frm_entity_relation WHERE organization_id = ? AND source_entity_type = ?`,
|
|
152
152
|
[organizationId, entityType],
|
|
153
153
|
);
|
|
154
154
|
|
|
@@ -189,7 +189,7 @@ export class EntityDynamicService {
|
|
|
189
189
|
);
|
|
190
190
|
|
|
191
191
|
await this.dataSource.query(
|
|
192
|
-
`INSERT INTO
|
|
192
|
+
`INSERT INTO frm_entity_relation_data (organization_id, source_entity_id, source_entity_type, target_entity_id, target_entity_type, relation_type) VALUES (?, ?, ?, ?, ?,?)`,
|
|
193
193
|
[
|
|
194
194
|
organizationId,
|
|
195
195
|
mainID,
|
|
@@ -221,8 +221,8 @@ export class EntityDynamicService {
|
|
|
221
221
|
const mainEntity = await this.getEntity(entityType, id, loggedInUser);
|
|
222
222
|
|
|
223
223
|
const relatedEntities = await this.dataSource.query(
|
|
224
|
-
`SELECT * FROM
|
|
225
|
-
SELECT target_entity_type FROM
|
|
224
|
+
`SELECT * FROM frm_entity_relation_data WHERE source_entity_id = ? AND target_entity_type IN (
|
|
225
|
+
SELECT target_entity_type FROM frm_entity_relation WHERE source_entity_type = ?)`,
|
|
226
226
|
[id, entityType],
|
|
227
227
|
);
|
|
228
228
|
|
|
@@ -293,7 +293,7 @@ export class EntityDynamicService {
|
|
|
293
293
|
|
|
294
294
|
if (mappedEntities) {
|
|
295
295
|
const getRelationDefs = await this.dataSource.query(
|
|
296
|
-
`SELECT * FROM
|
|
296
|
+
`SELECT * FROM frm_entity_relation WHERE organization_id = ? AND source_entity_type = ?`,
|
|
297
297
|
[organizationId, entityType],
|
|
298
298
|
);
|
|
299
299
|
|
|
@@ -312,7 +312,7 @@ export class EntityDynamicService {
|
|
|
312
312
|
|
|
313
313
|
// Delete previous relations and related entities
|
|
314
314
|
const existingRelationsForType = await this.dataSource.query(
|
|
315
|
-
`SELECT * FROM
|
|
315
|
+
`SELECT * FROM frm_entity_relation_data WHERE source_entity_type = ? AND source_entity_id = ? AND target_entity_type = ?`,
|
|
316
316
|
[entityType, id, targetEntityType],
|
|
317
317
|
);
|
|
318
318
|
|
|
@@ -326,7 +326,7 @@ export class EntityDynamicService {
|
|
|
326
326
|
|
|
327
327
|
// Delete the relation row
|
|
328
328
|
await this.dataSource.query(
|
|
329
|
-
`DELETE FROM
|
|
329
|
+
`DELETE FROM frm_entity_relation_data WHERE id = ?`,
|
|
330
330
|
[existingRel.id],
|
|
331
331
|
);
|
|
332
332
|
}
|
|
@@ -371,7 +371,7 @@ export class EntityDynamicService {
|
|
|
371
371
|
|
|
372
372
|
// Insert relation
|
|
373
373
|
await this.dataSource.query(
|
|
374
|
-
`INSERT INTO
|
|
374
|
+
`INSERT INTO frm_entity_relation_data
|
|
375
375
|
(organization_id, source_entity_id, source_entity_type, target_entity_id, target_entity_type, relation_type)
|
|
376
376
|
VALUES (?, ?, ?, ?, ?,?)`,
|
|
377
377
|
[
|
|
@@ -599,12 +599,12 @@ export class EntityDynamicService {
|
|
|
599
599
|
organizationId: string,
|
|
600
600
|
): Promise<string> {
|
|
601
601
|
const result = await this.dataSource.query(
|
|
602
|
-
`SELECT db_table_name FROM
|
|
602
|
+
`SELECT db_table_name FROM frm_entity_master WHERE organization_id = ? AND mapped_entity_type = ?`,
|
|
603
603
|
[organizationId, entityType],
|
|
604
604
|
);
|
|
605
605
|
|
|
606
606
|
if (!result.length) {
|
|
607
|
-
console.log(`Entity type '${entityType}' not found in
|
|
607
|
+
console.log(`Entity type '${entityType}' not found in frm_entity_master`);
|
|
608
608
|
}
|
|
609
609
|
|
|
610
610
|
return result[0].db_table_name;
|
|
@@ -626,7 +626,7 @@ export class EntityDynamicService {
|
|
|
626
626
|
MAX(db_datatype) AS db_datatype,
|
|
627
627
|
MAX(element_type) AS element_type,
|
|
628
628
|
MAX(is_hidden) AS is_hidden
|
|
629
|
-
FROM
|
|
629
|
+
FROM frm_entity_attribute
|
|
630
630
|
WHERE mapped_entity_type = ? AND organization_id = ?
|
|
631
631
|
and (is_hidden IS NULL OR is_hidden = 0) -- Exclude hidden attributes
|
|
632
632
|
GROUP BY attribute_key`,
|
|
@@ -669,7 +669,7 @@ export class EntityDynamicService {
|
|
|
669
669
|
): Promise<any> {
|
|
670
670
|
const organizationId = loggedInUser.organization_id;
|
|
671
671
|
|
|
672
|
-
let query = `SELECT name as label,mapped_entity_type as value FROM
|
|
672
|
+
let query = `SELECT name as label,mapped_entity_type as value FROM frm_entity_master WHERE organization_id = ?`;
|
|
673
673
|
const params = [organizationId];
|
|
674
674
|
|
|
675
675
|
if (appcode) {
|
|
@@ -687,14 +687,14 @@ export class EntityDynamicService {
|
|
|
687
687
|
// 1. Get db_table_name from entity master
|
|
688
688
|
const result = await this.dataSource.query(
|
|
689
689
|
`SELECT db_table_name
|
|
690
|
-
FROM
|
|
690
|
+
FROM frm_entity_master
|
|
691
691
|
WHERE mapped_entity_type = ? AND organization_id = ?`,
|
|
692
692
|
[entityType, organizationId],
|
|
693
693
|
);
|
|
694
694
|
|
|
695
695
|
if (!result.length) {
|
|
696
696
|
throw new Error(
|
|
697
|
-
`Entity type '${entityType}' not found in
|
|
697
|
+
`Entity type '${entityType}' not found in frm_entity_master for org '${organizationId}'`,
|
|
698
698
|
);
|
|
699
699
|
}
|
|
700
700
|
|
|
@@ -85,7 +85,7 @@ export class EntityMasterService {
|
|
|
85
85
|
// Step 2: Get attribute_master (instead of entity_table_column)
|
|
86
86
|
const attributes = await this.dataSource.query(
|
|
87
87
|
`SELECT *
|
|
88
|
-
FROM
|
|
88
|
+
FROM frm_entity_attribute
|
|
89
89
|
WHERE mapped_entity_type = ?
|
|
90
90
|
AND organization_id = ? `,
|
|
91
91
|
[entityMasterData.mapped_entity_type, loggedInUser.organization_id],
|
|
@@ -15,7 +15,7 @@ export class EntityRelationService extends EntityServiceImpl {
|
|
|
15
15
|
): Promise<any> {
|
|
16
16
|
const relations = await this.dataSource.query(
|
|
17
17
|
`SELECT name as label, target_entity_type as value, id
|
|
18
|
-
FROM
|
|
18
|
+
FROM frm_entity_relation
|
|
19
19
|
WHERE source_entity_type = ? AND organization_id = ?`,
|
|
20
20
|
[entityType, loggedInUser.organization_id],
|
|
21
21
|
);
|
|
@@ -23,7 +23,7 @@ export class EntityRelationService extends EntityServiceImpl {
|
|
|
23
23
|
if (includeSelf) {
|
|
24
24
|
const [entity] = await this.dataSource.query(
|
|
25
25
|
`SELECT name as label
|
|
26
|
-
FROM
|
|
26
|
+
FROM frm_entity_master
|
|
27
27
|
WHERE mapped_entity_type = ? AND organization_id = ?`,
|
|
28
28
|
[entityType, loggedInUser.organization_id],
|
|
29
29
|
);
|
|
@@ -52,7 +52,7 @@ export class EntityRelationService extends EntityServiceImpl {
|
|
|
52
52
|
const result = await this.dataSource.query(
|
|
53
53
|
`
|
|
54
54
|
SELECT DISTINCT source_entity_id
|
|
55
|
-
FROM
|
|
55
|
+
FROM frm_entity_relation_data
|
|
56
56
|
WHERE source_entity_type = ?
|
|
57
57
|
AND target_entity_type = ?
|
|
58
58
|
AND target_entity_id IN (?)
|
|
@@ -100,7 +100,7 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
|
|
|
100
100
|
|
|
101
101
|
const statusList = await repo.query(
|
|
102
102
|
`SELECT id
|
|
103
|
-
FROM
|
|
103
|
+
FROM frm_list_master_items
|
|
104
104
|
WHERE code = ?
|
|
105
105
|
AND organization_id = ?`,
|
|
106
106
|
[STATUS_ACTIVE, loggedInUser?.organization_id || -1],
|
|
@@ -449,7 +449,7 @@ export class EntityServiceImpl implements EntityService<BaseEntity> {
|
|
|
449
449
|
): Promise<number> {
|
|
450
450
|
let tableName: string;
|
|
451
451
|
if (ENTITYTYPE_ENTITYMASTER === entityType) {
|
|
452
|
-
tableName = '
|
|
452
|
+
tableName = 'frm_entity_master';
|
|
453
453
|
} else {
|
|
454
454
|
const entityMaster = await this.entityMasterService.getEntityData(
|
|
455
455
|
entityType,
|
|
@@ -12,9 +12,9 @@ export class PopulateMetaService {
|
|
|
12
12
|
// async populateMetaData(organization_id: number) {
|
|
13
13
|
// // Define metadata tables
|
|
14
14
|
// const metadataTables = [
|
|
15
|
-
// '
|
|
16
|
-
// '
|
|
17
|
-
// '
|
|
15
|
+
// 'frm_entity_master',
|
|
16
|
+
// 'frm_entity_attribute',
|
|
17
|
+
// 'frm_entity_table',
|
|
18
18
|
// ];
|
|
19
19
|
|
|
20
20
|
// // Fetch and transform all factory data
|
|
@@ -53,15 +53,15 @@ export class PopulateMetaService {
|
|
|
53
53
|
|
|
54
54
|
async populateMetaData(organization_id: number) {
|
|
55
55
|
const metadataTables = [
|
|
56
|
-
'
|
|
57
|
-
'
|
|
58
|
-
'
|
|
59
|
-
'
|
|
56
|
+
'frm_entity_master',
|
|
57
|
+
'frm_entity_attribute',
|
|
58
|
+
'frm_entity_view',
|
|
59
|
+
'frm_entity_relation',
|
|
60
60
|
];
|
|
61
61
|
const entityTypeToNewIdMap = new Map<string, number>();
|
|
62
62
|
|
|
63
63
|
const getStatus = await this.dataSource.query(
|
|
64
|
-
`SELECT * FROM
|
|
64
|
+
`SELECT * FROM frm_list_master_items WHERE organization_id = ${organization_id} AND code = "STATUS_ACTIVE"`,
|
|
65
65
|
);
|
|
66
66
|
const status = getStatus[0]?.id ? getStatus[0].id : 'ACTIVE';
|
|
67
67
|
|
|
@@ -75,7 +75,7 @@ export class PopulateMetaService {
|
|
|
75
75
|
|
|
76
76
|
let transformedData;
|
|
77
77
|
|
|
78
|
-
if (table === '
|
|
78
|
+
if (table === 'frm_entity_master') {
|
|
79
79
|
transformedData = factoryData.map(
|
|
80
80
|
({ id, created_date, modified_date, ...rest }) => ({
|
|
81
81
|
...rest,
|
|
@@ -86,7 +86,7 @@ export class PopulateMetaService {
|
|
|
86
86
|
status: status,
|
|
87
87
|
}),
|
|
88
88
|
);
|
|
89
|
-
} else if (table === '
|
|
89
|
+
} else if (table === 'frm_entity_attribute') {
|
|
90
90
|
transformedData = factoryData.map(
|
|
91
91
|
({ id, created_date, modified_date, ...rest }) => ({
|
|
92
92
|
...rest,
|
|
@@ -120,7 +120,7 @@ export class PopulateMetaService {
|
|
|
120
120
|
}
|
|
121
121
|
|
|
122
122
|
const entityTables = await this.dataSource.query(
|
|
123
|
-
`SELECT * FROM
|
|
123
|
+
`SELECT * FROM frm_entity_table WHERE organization_id = -1 AND level_type = 'ORG' AND level_id = -1`,
|
|
124
124
|
);
|
|
125
125
|
|
|
126
126
|
for (let entityTable of entityTables) {
|
|
@@ -136,14 +136,14 @@ export class PopulateMetaService {
|
|
|
136
136
|
const insertResult = await this.dataSource
|
|
137
137
|
.createQueryBuilder()
|
|
138
138
|
.insert()
|
|
139
|
-
.into('
|
|
139
|
+
.into('frm_entity_table')
|
|
140
140
|
.values(entityTable)
|
|
141
141
|
.execute();
|
|
142
142
|
|
|
143
143
|
const newId = insertResult.identifiers[0].id; // or insertResult.raw.insertId if needed
|
|
144
144
|
|
|
145
145
|
const entityTableColumns = await this.dataSource.query(
|
|
146
|
-
`SELECT * FROM
|
|
146
|
+
`SELECT * FROM frm_entity_table_column WHERE organization_id = -1 AND level_type = 'ORG' AND level_id = -1 AND mapped_entity_type = '${mapped_entity_type}' AND display_type = '${display_type}'`,
|
|
147
147
|
);
|
|
148
148
|
for (const column of entityTableColumns) {
|
|
149
149
|
const { id, created_date, modified_date, ...columnRest } = column;
|
|
@@ -159,7 +159,7 @@ export class PopulateMetaService {
|
|
|
159
159
|
await this.dataSource
|
|
160
160
|
.createQueryBuilder()
|
|
161
161
|
.insert()
|
|
162
|
-
.into('
|
|
162
|
+
.into('frm_entity_table_column')
|
|
163
163
|
.values(newColumn)
|
|
164
164
|
.execute();
|
|
165
165
|
}
|
|
@@ -18,7 +18,7 @@ export class ResolverService {
|
|
|
18
18
|
entityType: string,
|
|
19
19
|
): Promise<any> {
|
|
20
20
|
const attributeItems = await this.dataSource.query(
|
|
21
|
-
`SELECT * FROM
|
|
21
|
+
`SELECT * FROM frm_entity_attribute WHERE mapped_entity_type = ? AND organization_id = ?`,
|
|
22
22
|
[entityType, loggedInUser.organization_id],
|
|
23
23
|
);
|
|
24
24
|
|
|
@@ -102,7 +102,7 @@ export class ResolverService {
|
|
|
102
102
|
|
|
103
103
|
// fetch attribute meta only for the given attributeKey
|
|
104
104
|
const [attr] = await this.dataSource.query(
|
|
105
|
-
`SELECT * FROM
|
|
105
|
+
`SELECT * FROM frm_entity_attribute WHERE mapped_entity_type = ? AND organization_id = ? AND attribute_key = ?`,
|
|
106
106
|
[entityType, loggedInUser.organization_id, attrKey],
|
|
107
107
|
);
|
|
108
108
|
|
|
@@ -111,7 +111,7 @@ export class ResolverService {
|
|
|
111
111
|
// -------- ENTITY data_source_type --------
|
|
112
112
|
if (attr.data_source_type === 'entity') {
|
|
113
113
|
const [entityDef] = await this.dataSource.query(
|
|
114
|
-
`SELECT * FROM
|
|
114
|
+
`SELECT * FROM frm_entity_master WHERE mapped_entity_type = ? AND organization_id = ?`,
|
|
115
115
|
[attr.datasource_list, loggedInUser.organization_id],
|
|
116
116
|
);
|
|
117
117
|
|
|
@@ -158,7 +158,7 @@ export class ResolverService {
|
|
|
158
158
|
const resolvedValues: string[] = [];
|
|
159
159
|
for (const code of rawValue) {
|
|
160
160
|
const [item] = await this.dataSource.query(
|
|
161
|
-
`SELECT * FROM
|
|
161
|
+
`SELECT * FROM frm_list_master_items WHERE id = ? AND organization_id = ?`,
|
|
162
162
|
[code, loggedInUser.organization_id],
|
|
163
163
|
);
|
|
164
164
|
resolvedValues.push(item?.[attr.data_source_attribute] ?? code);
|
|
@@ -166,7 +166,7 @@ export class ResolverService {
|
|
|
166
166
|
return resolvedValues;
|
|
167
167
|
} else {
|
|
168
168
|
const [item] = await this.dataSource.query(
|
|
169
|
-
`SELECT * FROM
|
|
169
|
+
`SELECT * FROM frm_list_master_items WHERE id = ? AND organization_id = ?`,
|
|
170
170
|
[rawValue, loggedInUser.organization_id],
|
|
171
171
|
);
|
|
172
172
|
return item?.[attr.data_source_attribute] ?? rawValue;
|
|
@@ -192,7 +192,7 @@ export class ResolverService {
|
|
|
192
192
|
|
|
193
193
|
// fetch attribute meta
|
|
194
194
|
const [attr] = await this.dataSource.query(
|
|
195
|
-
`SELECT * FROM
|
|
195
|
+
`SELECT * FROM frm_entity_attribute
|
|
196
196
|
WHERE mapped_entity_type = ? AND organization_id = ? AND attribute_key = ?`,
|
|
197
197
|
[entityType, loggedInUser.organization_id, attrKey],
|
|
198
198
|
);
|
|
@@ -202,7 +202,7 @@ export class ResolverService {
|
|
|
202
202
|
// -------- ENTITY data_source_type --------
|
|
203
203
|
if (attr.data_source_type === 'entity') {
|
|
204
204
|
const [entityDef] = await this.dataSource.query(
|
|
205
|
-
`SELECT * FROM
|
|
205
|
+
`SELECT * FROM frm_entity_master
|
|
206
206
|
WHERE mapped_entity_type = ? AND organization_id = ?`,
|
|
207
207
|
[attr.datasource_list, loggedInUser.organization_id],
|
|
208
208
|
);
|
|
@@ -228,7 +228,7 @@ export class ResolverService {
|
|
|
228
228
|
// -------- MASTER data_source_type --------
|
|
229
229
|
else if (attr.data_source_type === 'master') {
|
|
230
230
|
const [item] = await this.dataSource.query(
|
|
231
|
-
`SELECT id FROM
|
|
231
|
+
`SELECT id FROM frm_list_master_items
|
|
232
232
|
WHERE ${attr.data_source_attribute} = ? AND organization_id = ?`,
|
|
233
233
|
[displayValue, loggedInUser.organization_id],
|
|
234
234
|
);
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
2
2
|
import { Column, Entity } from 'typeorm';
|
|
3
3
|
|
|
4
|
-
@Entity({ name: '
|
|
4
|
+
@Entity({ name: 'frm_notification' })
|
|
5
5
|
export class NotificationData extends BaseEntity {
|
|
6
6
|
@Column({ name: 'user_id', type: 'int', nullable: true })
|
|
7
7
|
user_id: number | null;
|
|
@@ -19,7 +19,7 @@ export class EmailService {
|
|
|
19
19
|
icsPayload?: any,
|
|
20
20
|
) {
|
|
21
21
|
const template = await this.datasource
|
|
22
|
-
.getRepository('
|
|
22
|
+
.getRepository('frm_wf_comm_template')
|
|
23
23
|
.findOne({ where: { code: 'OTP_TEMPLATE' } });
|
|
24
24
|
|
|
25
25
|
if (!template) return;
|
|
@@ -72,9 +72,9 @@ export class EmailService {
|
|
|
72
72
|
context?: any,
|
|
73
73
|
icsPayload?: any,
|
|
74
74
|
) {
|
|
75
|
-
// retrieve the rich_text from the database table
|
|
75
|
+
// retrieve the rich_text from the database table frm_wf_comm_template for the given templateCode
|
|
76
76
|
const template = await this.datasource
|
|
77
|
-
.getRepository('
|
|
77
|
+
.getRepository('frm_wf_comm_template')
|
|
78
78
|
.findOne({ where: { code: templateCode } });
|
|
79
79
|
|
|
80
80
|
if (!template) {
|
|
@@ -83,7 +83,7 @@ export class NotificationsService {
|
|
|
83
83
|
let query = `
|
|
84
84
|
SELECT
|
|
85
85
|
n.*
|
|
86
|
-
FROM
|
|
86
|
+
FROM frm_notification n
|
|
87
87
|
WHERE n.user_id = ? AND n.level_id = ? AND n.level_type = ?
|
|
88
88
|
`;
|
|
89
89
|
|
|
@@ -150,7 +150,7 @@ export class NotificationsService {
|
|
|
150
150
|
const { id, level_id, level_type } = loggedInUser;
|
|
151
151
|
|
|
152
152
|
const query = `
|
|
153
|
-
UPDATE
|
|
153
|
+
UPDATE frm_notification
|
|
154
154
|
SET is_read = 1
|
|
155
155
|
WHERE user_id = ? AND level_id = ? AND level_type = ? AND is_read = 0
|
|
156
156
|
`;
|
|
@@ -2,7 +2,7 @@ import { ACTION_CATEGORY } from 'src/constant/global.constant';
|
|
|
2
2
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
3
3
|
import { Column, Entity } from 'typeorm';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_wf_action_category' })
|
|
6
6
|
export class ActionCategory extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
2
2
|
import { Column, Entity } from 'typeorm';
|
|
3
3
|
|
|
4
|
-
@Entity({ name: '
|
|
4
|
+
@Entity({ name: 'frm_wf_action_data' })
|
|
5
5
|
export class ActionDataEntity extends BaseEntity {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
@@ -5,7 +5,7 @@ import {
|
|
|
5
5
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
6
6
|
import { Column, Entity } from 'typeorm';
|
|
7
7
|
|
|
8
|
-
@Entity({ name: '
|
|
8
|
+
@Entity({ name: 'frm_wf_action_resources_mapping' })
|
|
9
9
|
export class ActionResourcesMapping extends BaseEntity {
|
|
10
10
|
constructor() {
|
|
11
11
|
super();
|
|
@@ -2,7 +2,7 @@ import { ACTION_TEMPLATE_MAPPING } from 'src/constant/global.constant';
|
|
|
2
2
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
3
3
|
import { Column, Entity } from 'typeorm';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_wf_action_template_mapping' })
|
|
6
6
|
export class ActionTemplateMapping extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -2,7 +2,7 @@ import { ACTION } from 'src/constant/global.constant';
|
|
|
2
2
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
3
3
|
import { Column, Entity } from 'typeorm';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_wf_action' })
|
|
6
6
|
export class ActionEntity extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
2
2
|
import { Column, Entity } from 'typeorm';
|
|
3
3
|
|
|
4
|
-
@Entity({ name: '
|
|
4
|
+
@Entity({ name: 'frm_activity_log' })
|
|
5
5
|
export class ActivityLog extends BaseEntity {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
@@ -2,7 +2,7 @@ import { COMM_TEMPLATE } from 'src/constant/global.constant';
|
|
|
2
2
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
3
3
|
import { Column, Entity } from 'typeorm';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_wf_comm_template' })
|
|
6
6
|
export class CommTemplate extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -2,7 +2,7 @@ import { ENTITY_MODIFICATION } from 'src/constant/global.constant';
|
|
|
2
2
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
3
3
|
import { Column, Entity } from 'typeorm';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_wf_entity_modification' })
|
|
6
6
|
export class EntityModification extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
2
2
|
import { Column, Entity } from 'typeorm';
|
|
3
3
|
|
|
4
|
-
@Entity({ name: '
|
|
4
|
+
@Entity({ name: 'frm_wf_form' })
|
|
5
5
|
export class FormDataEntity extends BaseEntity {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
@@ -2,7 +2,7 @@ import { STAGE_ACTION_MAPPING } from 'src/constant/global.constant';
|
|
|
2
2
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
3
3
|
import { Column, Entity } from 'typeorm';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_wf_stage_action_mapping' })
|
|
6
6
|
export class StageActionMapping extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -2,7 +2,7 @@ import { STAGE_GROUP } from 'src/constant/global.constant';
|
|
|
2
2
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
3
3
|
import { Column, Entity } from 'typeorm';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_wf_stage_group' })
|
|
6
6
|
export class StageGroup extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -2,7 +2,7 @@ import { STAGE_MOVEMENT_DATA } from 'src/constant/global.constant';
|
|
|
2
2
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
3
3
|
import { Column, Entity } from 'typeorm';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_wf_stage_movement_data' })
|
|
6
6
|
export class StageMovementData extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -2,7 +2,7 @@ import { STAGE } from 'src/constant/global.constant';
|
|
|
2
2
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
3
3
|
import { Column, Entity } from 'typeorm';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_wf_stage' })
|
|
6
6
|
export class Stage extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
2
2
|
import { Column, Entity } from 'typeorm';
|
|
3
3
|
|
|
4
|
-
@Entity({ name: '
|
|
4
|
+
@Entity({ name: 'frm_wf_task_data' })
|
|
5
5
|
export class TaskDataEntity extends BaseEntity {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
@@ -2,7 +2,7 @@ import { WORKFLOW_DATA } from 'src/constant/global.constant';
|
|
|
2
2
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
3
3
|
import { Entity } from 'typeorm';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_wf_data' })
|
|
6
6
|
export class WorkFlowData extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|