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
|
@@ -10,7 +10,7 @@ Introduce **Event-Driven Architecture (EDA)** into the integration module to:
|
|
|
10
10
|
|
|
11
11
|
## 2. Current State
|
|
12
12
|
- **Database Tables**:
|
|
13
|
-
- `
|
|
13
|
+
- `frm_integration_config` (stores provider configuration JSON and level mapping)
|
|
14
14
|
- **Factory Pattern**:
|
|
15
15
|
- Uses `IntegrationFactory` to select strategies (e.g., Gmail API, Twilio SMS, WhatsApp Cloud).
|
|
16
16
|
- **Service Layer**:
|
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
## Database Schema
|
|
4
4
|
|
|
5
|
-
### Tables:
|
|
5
|
+
### Tables: frm_integration_config
|
|
6
6
|
```sql
|
|
7
|
-
-- Integration configuration storage (merged from
|
|
8
|
-
CREATE TABLE
|
|
7
|
+
-- Integration configuration storage (merged from frm_communication_config, communication_config_type & communication_hub)
|
|
8
|
+
CREATE TABLE frm_integration_config (
|
|
9
9
|
id INT AUTO_INCREMENT PRIMARY KEY,
|
|
10
10
|
app_code VARCHAR(100) NOT NULL,
|
|
11
11
|
integration_type VARCHAR(20) NOT NULL, -- EMAIL, SMS, WA, TELEPHONE
|
|
@@ -24,7 +24,7 @@ CREATE TABLE cr_integration_config (
|
|
|
24
24
|
);
|
|
25
25
|
|
|
26
26
|
-- Integration source master table (existing)
|
|
27
|
-
CREATE TABLE
|
|
27
|
+
CREATE TABLE frm_integration_master (
|
|
28
28
|
id BIGINT AUTO_INCREMENT PRIMARY KEY,
|
|
29
29
|
name VARCHAR(100),
|
|
30
30
|
logo VARCHAR(100),
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
2
2
|
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
3
3
|
|
|
4
|
-
@Entity({ name: '
|
|
4
|
+
@Entity({ name: 'frm_dashboard_page_data' })
|
|
5
5
|
export class DashboardPageData extends BaseEntity {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
2
2
|
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
3
3
|
|
|
4
|
-
@Entity({ name: '
|
|
4
|
+
@Entity({ name: 'frm_dashboard_widget' })
|
|
5
5
|
export class WidgetMaster extends BaseEntity {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
@@ -9,7 +9,7 @@ export class DashboardRepository {
|
|
|
9
9
|
|
|
10
10
|
async getPages(mapped_entity_type: string, loggedInUser: any) {
|
|
11
11
|
return await this.dataSource.query(
|
|
12
|
-
`SELECT * FROM
|
|
12
|
+
`SELECT * FROM frm_dashboard_page_data WHERE mapped_entity_type='${mapped_entity_type}' AND applicable_type='${loggedInUser.level_type}' AND applicable_id='${loggedInUser.level_id}' AND organization_id='${loggedInUser.organization_id}' `,
|
|
13
13
|
);
|
|
14
14
|
}
|
|
15
15
|
|
|
@@ -45,7 +45,7 @@ export class SchoolRepository {
|
|
|
45
45
|
const resolvedInactiveStatus = await this.dataSource
|
|
46
46
|
.createQueryBuilder()
|
|
47
47
|
.select('*')
|
|
48
|
-
.from('
|
|
48
|
+
.from('frm_list_master_items', 'cli')
|
|
49
49
|
.where('cli.code = :code AND cli.organization_id = :orgId', {
|
|
50
50
|
code: STATUS_INACTIVE,
|
|
51
51
|
orgId: org_id,
|
|
@@ -71,7 +71,7 @@ export class SchoolRepository {
|
|
|
71
71
|
'school.status AS school_status',
|
|
72
72
|
])
|
|
73
73
|
.from('sso_organization', 'org')
|
|
74
|
-
.innerJoin('sso_organization', 'brn', "brn.type = 'BRN'")
|
|
74
|
+
.innerJoin('sso_organization', 'brn', "brn.type = 'BRN' AND brn.parent_id = org.id")
|
|
75
75
|
// .innerJoin(
|
|
76
76
|
// 'eth_brand_profile',
|
|
77
77
|
// 'brand_profile',
|
|
@@ -102,7 +102,7 @@ export class SchoolRepository {
|
|
|
102
102
|
const orgStatus = await this.dataSource
|
|
103
103
|
.createQueryBuilder()
|
|
104
104
|
.select('*')
|
|
105
|
-
.from('
|
|
105
|
+
.from('frm_list_master_items', 'cli')
|
|
106
106
|
.where('cli.id = :id AND cli.organization_id = :orgId', {
|
|
107
107
|
id: org_status,
|
|
108
108
|
orgId: org_id,
|
|
@@ -123,7 +123,7 @@ export class SchoolRepository {
|
|
|
123
123
|
const brandStatus = await this.dataSource
|
|
124
124
|
.createQueryBuilder()
|
|
125
125
|
.select('*')
|
|
126
|
-
.from('
|
|
126
|
+
.from('frm_list_master_items', 'cli')
|
|
127
127
|
.where('cli.id = :id AND cli.organization_id = :orgId', {
|
|
128
128
|
id: brand_status,
|
|
129
129
|
orgId: org_id,
|
|
@@ -143,7 +143,7 @@ export class SchoolRepository {
|
|
|
143
143
|
const schoolStatus = await this.dataSource
|
|
144
144
|
.createQueryBuilder()
|
|
145
145
|
.select('*')
|
|
146
|
-
.from('
|
|
146
|
+
.from('frm_list_master_items', 'cli')
|
|
147
147
|
.where('cli.id = :id AND cli.organization_id = :orgId', {
|
|
148
148
|
id: school_status,
|
|
149
149
|
orgId: org_id,
|
|
@@ -2,7 +2,7 @@ import { ENTITYTYPE_SAVEDFILTERDETAIL } 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_saved_filter_detail' })
|
|
6
6
|
export class SavedFilterDetail extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -2,7 +2,7 @@ import { ENTITYTYPE_SAVEDFILTERMASTER } 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_saved_filter_master' })
|
|
6
6
|
export class SavedFilterMaster extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -147,7 +147,7 @@ export class SavedFilterRepositoryService {
|
|
|
147
147
|
): Promise<any> {
|
|
148
148
|
const [filterMaster] = await this.dataSource.query(
|
|
149
149
|
`SELECT id, name, code
|
|
150
|
-
FROM
|
|
150
|
+
FROM frm_saved_filter_master
|
|
151
151
|
WHERE code = ? AND organization_id = ?
|
|
152
152
|
LIMIT 1
|
|
153
153
|
`,
|
|
@@ -26,7 +26,7 @@ export class FilterEvaluatorService {
|
|
|
26
26
|
console.log('IN FILTER EVALUATOR SERVICE');
|
|
27
27
|
const triggerFilters: SavedFilterDetail[] = await this.dataSource.query(
|
|
28
28
|
`SELECT *
|
|
29
|
-
FROM
|
|
29
|
+
FROM frm_saved_filter_detail
|
|
30
30
|
WHERE mapped_filter_code = ?`,
|
|
31
31
|
[savedFilterCode],
|
|
32
32
|
);
|
|
@@ -275,6 +275,14 @@ export class FilterService {
|
|
|
275
275
|
});
|
|
276
276
|
}
|
|
277
277
|
|
|
278
|
+
if (entity_type == "USR" || entity_type == "UPR") {
|
|
279
|
+
baseWhere.push({
|
|
280
|
+
query: 'e.is_customer != 1',
|
|
281
|
+
params: {},
|
|
282
|
+
});
|
|
283
|
+
}
|
|
284
|
+
|
|
285
|
+
|
|
278
286
|
if (customLevelType && customLevelId && customAppCode) {
|
|
279
287
|
baseWhere.push({
|
|
280
288
|
query:
|
|
@@ -314,7 +322,7 @@ export class FilterService {
|
|
|
314
322
|
// layout preference query
|
|
315
323
|
const layoutPreference = await this.dataSource.query(
|
|
316
324
|
`SELECT mapped_json
|
|
317
|
-
FROM
|
|
325
|
+
FROM frm_entity_layout_pref
|
|
318
326
|
WHERE user_id = ? AND mapped_entity_type = ? AND mapped_level_id = ? AND mapped_level_type = ? AND type = 'layout'`,
|
|
319
327
|
[user_id, entity_type, level_id, level_type],
|
|
320
328
|
);
|
|
@@ -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_integration_entity_mapper' })
|
|
5
5
|
export class IntegrationEntityMapper extends BaseEntity {
|
|
6
6
|
@Column({ name: 'integration_config_id', type: 'bigint', nullable: true })
|
|
7
7
|
integration_config_id: number;
|
|
@@ -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_integration_master' })
|
|
5
5
|
export class IntegrationSource extends BaseEntity {
|
|
6
6
|
@Column({ name: 'logo', type: 'varchar', length: 500 })
|
|
7
7
|
logo: string;
|
|
@@ -7,7 +7,7 @@ import {
|
|
|
7
7
|
Index,
|
|
8
8
|
} from 'typeorm';
|
|
9
9
|
|
|
10
|
-
@Entity({ name: '
|
|
10
|
+
@Entity({ name: 'frm_integration_user_mapping' })
|
|
11
11
|
@Index(['user_id', 'integration_config_id'], { unique: true })
|
|
12
12
|
@Index(['integration_config_id'])
|
|
13
13
|
@Index(['user_id'])
|
|
@@ -31,7 +31,7 @@ export class WrapperService {
|
|
|
31
31
|
`Fetching configs for level_id=${level_id}, level_type=${level_type}`,
|
|
32
32
|
);
|
|
33
33
|
const configs = await this.datasource.query(
|
|
34
|
-
`SELECT * FROM
|
|
34
|
+
`SELECT * FROM frm_integration_config
|
|
35
35
|
WHERE level_id = ?
|
|
36
36
|
AND level_type = ?
|
|
37
37
|
AND status = 1
|
|
@@ -47,7 +47,7 @@ export class WrapperService {
|
|
|
47
47
|
`Looking up templateCode=${payload.templateCode} for current level`,
|
|
48
48
|
);
|
|
49
49
|
const template = await this.datasource.query(
|
|
50
|
-
`SELECT rich_text FROM
|
|
50
|
+
`SELECT rich_text FROM frm_wf_comm_template WHERE code = ? AND level_id = ? AND level_type = ? LIMIT 1`,
|
|
51
51
|
[payload.templateCode, level_id, level_type],
|
|
52
52
|
);
|
|
53
53
|
this.logger.debug(
|
|
@@ -87,7 +87,7 @@ export class WrapperService {
|
|
|
87
87
|
`No user-level configs found. Falling back to ORG-level`,
|
|
88
88
|
);
|
|
89
89
|
const fallbackConfigs = await this.datasource.query(
|
|
90
|
-
`SELECT * FROM
|
|
90
|
+
`SELECT * FROM frm_integration_config
|
|
91
91
|
WHERE level_type = 'ORG'
|
|
92
92
|
AND integration_type = 'EMAIL'
|
|
93
93
|
AND status = 1`,
|
|
@@ -202,7 +202,7 @@ export class WrapperService {
|
|
|
202
202
|
|
|
203
203
|
// Try to find template at user's level first
|
|
204
204
|
let templates = await this.datasource.query(
|
|
205
|
-
`SELECT id FROM
|
|
205
|
+
`SELECT id FROM frm_wf_comm_template
|
|
206
206
|
WHERE code = ?
|
|
207
207
|
AND level_id = ?
|
|
208
208
|
AND level_type = ?
|
|
@@ -217,7 +217,7 @@ export class WrapperService {
|
|
|
217
217
|
);
|
|
218
218
|
|
|
219
219
|
templates = await this.datasource.query(
|
|
220
|
-
`SELECT id FROM
|
|
220
|
+
`SELECT id FROM frm_wf_comm_template
|
|
221
221
|
WHERE code = ?
|
|
222
222
|
AND level_type = 'ORG'
|
|
223
223
|
AND organization_id = ?
|
|
@@ -331,7 +331,7 @@ export class WrapperService {
|
|
|
331
331
|
this.logger.log(`No user-level config found, checking ORG-level...`);
|
|
332
332
|
|
|
333
333
|
const orgConfigs = await this.datasource.query(
|
|
334
|
-
`SELECT * FROM
|
|
334
|
+
`SELECT * FROM frm_integration_config
|
|
335
335
|
WHERE level_id = 1
|
|
336
336
|
AND level_type = 'ORG'
|
|
337
337
|
AND integration_type = 'EMAIL'
|
|
@@ -366,7 +366,7 @@ export class WrapperService {
|
|
|
366
366
|
this.logger.debug(`Fetching config JSON for configId=${configId}`);
|
|
367
367
|
const configRes = await this.datasource.query(
|
|
368
368
|
`SELECT config_json
|
|
369
|
-
FROM
|
|
369
|
+
FROM frm_integration_config
|
|
370
370
|
WHERE id = ?`,
|
|
371
371
|
[configId],
|
|
372
372
|
);
|
|
@@ -386,7 +386,7 @@ export class WrapperService {
|
|
|
386
386
|
|
|
387
387
|
if (payload.template_code) {
|
|
388
388
|
let templates = await this.datasource.query(
|
|
389
|
-
`SELECT id FROM
|
|
389
|
+
`SELECT id FROM frm_wf_comm_template
|
|
390
390
|
WHERE code = ?
|
|
391
391
|
ORDER BY 1 DESC
|
|
392
392
|
LIMIT 1`,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from 'src/module/meta/entity/base-entity.entity';
|
|
2
2
|
import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
3
3
|
|
|
4
|
-
@Entity({ name: '
|
|
4
|
+
@Entity({ name: 'frm_entity_layout_pref' })
|
|
5
5
|
export class LayoutPreference extends BaseEntity {
|
|
6
6
|
@Column({ length: 50, nullable: true })
|
|
7
7
|
user_id: string;
|
|
@@ -2,7 +2,7 @@ import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
|
2
2
|
import { BaseEntity } from '../../meta/entity/base-entity.entity';
|
|
3
3
|
import { ENTITYTYPE_LISTMASTERITEMS } from '../../../constant/global.constant';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_list_master_items' })
|
|
6
6
|
export class ListMasterItems extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -2,7 +2,7 @@ import { Column, Entity, PrimaryGeneratedColumn } from 'typeorm';
|
|
|
2
2
|
import { BaseEntity } from '../../meta/entity/base-entity.entity';
|
|
3
3
|
import { ENTITYTYPE_LISTMASTER } from '../../../constant/global.constant';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_list_master' })
|
|
6
6
|
export class ListMasterData extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -191,7 +191,7 @@ export class ListMasterItemService extends EntityServiceImpl {
|
|
|
191
191
|
): Promise<any> {
|
|
192
192
|
const data = await this.dataSource.query(
|
|
193
193
|
`SELECT name AS label, type AS value
|
|
194
|
-
FROM
|
|
194
|
+
FROM frm_list_master
|
|
195
195
|
WHERE organization_id = ? AND source = ?`,
|
|
196
196
|
[loggedInUser.organization_id, source],
|
|
197
197
|
);
|
|
@@ -174,20 +174,20 @@ export class ListMasterService {
|
|
|
174
174
|
);
|
|
175
175
|
let result: { label: string; value: number }[] = [];
|
|
176
176
|
if (!sourceList) return result;
|
|
177
|
-
|
|
177
|
+
|
|
178
178
|
const entityMaster = await this.entityMasterService.getEntityData(
|
|
179
179
|
sourceList,
|
|
180
180
|
loggedInUser,
|
|
181
181
|
);
|
|
182
182
|
const tableName = entityMaster.data_source;
|
|
183
|
-
|
|
183
|
+
|
|
184
184
|
const applyCommonFilters = (qb: any, status?: number) => {
|
|
185
185
|
if (status) {
|
|
186
186
|
const isView = tableName.endsWith('_vw'); // auto-detect view
|
|
187
187
|
const statusColumn = isView ? 'status_id' : 'status';
|
|
188
188
|
qb.andWhere(`${tableName}.${statusColumn} = :status`, { status });
|
|
189
189
|
}
|
|
190
|
-
|
|
190
|
+
|
|
191
191
|
if (loggedInUser?.level_type && loggedInUser?.level_id) {
|
|
192
192
|
// Skip level filter for certain entities
|
|
193
193
|
if (!this.skipLevelFilterEntities.includes(sourceList)) {
|
|
@@ -202,16 +202,12 @@ export class ListMasterService {
|
|
|
202
202
|
} else {
|
|
203
203
|
// IN the case of BRN, we don't filter by level
|
|
204
204
|
qb.andWhere(
|
|
205
|
-
`${tableName}.parent_id = :organization_id
|
|
206
|
-
|
|
207
|
-
`,
|
|
208
|
-
{
|
|
209
|
-
organization_id: loggedInUser.organization_id,
|
|
210
|
-
},
|
|
205
|
+
`${tableName}.parent_id = :organization_id AND ${tableName}.type = 'BRN'`,
|
|
206
|
+
{ organization_id: loggedInUser.organization_id },
|
|
211
207
|
);
|
|
212
208
|
}
|
|
213
209
|
}
|
|
214
|
-
|
|
210
|
+
|
|
215
211
|
if (loggedInUser?.appcode && sourceList === 'ROL') {
|
|
216
212
|
if (!this.skipLevelFilterEntities.includes(sourceList)) {
|
|
217
213
|
qb.andWhere(`${tableName}.appcode = :appcode`, {
|
|
@@ -219,22 +215,28 @@ export class ListMasterService {
|
|
|
219
215
|
});
|
|
220
216
|
}
|
|
221
217
|
}
|
|
222
|
-
|
|
218
|
+
|
|
219
|
+
// ✅ Apply dynamic params
|
|
223
220
|
for (const key in params) {
|
|
224
221
|
qb.andWhere(`${tableName}.${key} = :${key}`, {
|
|
225
222
|
[key]: params[key],
|
|
226
223
|
});
|
|
227
224
|
}
|
|
228
|
-
|
|
225
|
+
|
|
226
|
+
// ✅ New: Exclude customers for USR/UPR
|
|
227
|
+
if (sourceList === 'USR' || sourceList === 'UPR') {
|
|
228
|
+
qb.andWhere(`${tableName}.is_customer != 1`);
|
|
229
|
+
}
|
|
230
|
+
|
|
229
231
|
return qb;
|
|
230
232
|
};
|
|
231
|
-
|
|
233
|
+
|
|
232
234
|
const resolveStatus = await this.getResolvedListCode(
|
|
233
235
|
STATUS_ACTIVE,
|
|
234
236
|
loggedInUser?.organization_id || 0,
|
|
235
237
|
);
|
|
236
|
-
|
|
237
|
-
//
|
|
238
|
+
|
|
239
|
+
// Fetch active records
|
|
238
240
|
const activeQuery = applyCommonFilters(
|
|
239
241
|
this.entityManager
|
|
240
242
|
.createQueryBuilder()
|
|
@@ -242,20 +244,20 @@ export class ListMasterService {
|
|
|
242
244
|
.from(tableName, tableName),
|
|
243
245
|
resolveStatus.id,
|
|
244
246
|
);
|
|
245
|
-
|
|
247
|
+
|
|
246
248
|
const activeResults = await activeQuery.getRawMany();
|
|
247
249
|
const activeIds = new Set(activeResults.map((r) => r.id));
|
|
248
|
-
|
|
250
|
+
|
|
249
251
|
// Add active entries first
|
|
250
252
|
activeResults.forEach((r) => {
|
|
251
253
|
result.push({ label: r.name, value: r.id });
|
|
252
254
|
});
|
|
253
|
-
|
|
255
|
+
|
|
254
256
|
const resolveInactiveStatus = await this.getResolvedListCode(
|
|
255
257
|
STATUS_INACTIVE,
|
|
256
258
|
loggedInUser?.organization_id || 0,
|
|
257
259
|
);
|
|
258
|
-
|
|
260
|
+
|
|
259
261
|
// Fetch inactive records (with same filters but without status condition)
|
|
260
262
|
if (inactiveIdsArray?.length) {
|
|
261
263
|
const inactiveQuery = applyCommonFilters(
|
|
@@ -265,14 +267,13 @@ export class ListMasterService {
|
|
|
265
267
|
.from(tableName, tableName),
|
|
266
268
|
resolveInactiveStatus.id,
|
|
267
269
|
);
|
|
268
|
-
|
|
270
|
+
|
|
269
271
|
inactiveQuery.andWhere(`${tableName}.id IN (:...ids)`, {
|
|
270
272
|
ids: inactiveIdsArray,
|
|
271
273
|
});
|
|
272
|
-
|
|
274
|
+
|
|
273
275
|
const inactiveResults = await inactiveQuery.getRawMany();
|
|
274
|
-
|
|
275
|
-
// Add only those inactive records not already present in active
|
|
276
|
+
|
|
276
277
|
inactiveResults.forEach((item) => {
|
|
277
278
|
if (!activeIds.has(item.id)) {
|
|
278
279
|
result.push({
|
|
@@ -282,9 +283,10 @@ export class ListMasterService {
|
|
|
282
283
|
}
|
|
283
284
|
});
|
|
284
285
|
}
|
|
285
|
-
|
|
286
|
+
|
|
286
287
|
return result;
|
|
287
288
|
}
|
|
289
|
+
|
|
288
290
|
|
|
289
291
|
private async fetchFromExternalSource(
|
|
290
292
|
customSourceId: number,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Column, Entity } from 'typeorm';
|
|
2
2
|
import { BaseEntity } from '../../meta/entity/base-entity.entity';
|
|
3
3
|
|
|
4
|
-
@Entity({ name: '
|
|
4
|
+
@Entity({ name: 'frm_mapper_field_lov' })
|
|
5
5
|
export class FieldLovMapper extends BaseEntity {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Column, Entity } from 'typeorm';
|
|
2
2
|
import { BaseEntity } from '../../meta/entity/base-entity.entity';
|
|
3
3
|
|
|
4
|
-
@Entity({ name: '
|
|
4
|
+
@Entity({ name: 'frm_mapper_field' })
|
|
5
5
|
export class FieldMapper extends BaseEntity {
|
|
6
6
|
constructor() {
|
|
7
7
|
super();
|
|
@@ -130,7 +130,7 @@ export class FieldMapperService extends EntityServiceImpl {
|
|
|
130
130
|
} else {
|
|
131
131
|
const relations = await this.datasource.query(
|
|
132
132
|
`SELECT target_entity_id
|
|
133
|
-
FROM
|
|
133
|
+
FROM frm_entity_relation_data
|
|
134
134
|
WHERE source_entity_type = ?
|
|
135
135
|
AND source_entity_id = ?
|
|
136
136
|
AND target_entity_type = ?`,
|
|
@@ -21,7 +21,7 @@ export class MapperService extends EntityServiceImpl {
|
|
|
21
21
|
|
|
22
22
|
const mappers = await this.dataSource.query(
|
|
23
23
|
`SELECT id, name, code, status
|
|
24
|
-
FROM
|
|
24
|
+
FROM frm_mapper_master
|
|
25
25
|
WHERE mapped_entity_type = ? AND (-1 = ? OR name LIKE ? OR code LIKE ?)`,
|
|
26
26
|
[mappedEntityType, filter || -1, `%${filter}%`, `%${filter}%`],
|
|
27
27
|
);
|
|
@@ -34,7 +34,7 @@ export class MapperService extends EntityServiceImpl {
|
|
|
34
34
|
const statusMap = new Map();
|
|
35
35
|
if (distinctStatuses.length > 0) {
|
|
36
36
|
const statuses = await this.dataSource.query(
|
|
37
|
-
`SELECT id, name FROM
|
|
37
|
+
`SELECT id, name FROM frm_list_master_items WHERE id IN (?)`,
|
|
38
38
|
[distinctStatuses],
|
|
39
39
|
);
|
|
40
40
|
statuses.forEach((status) => {
|
|
@@ -22,37 +22,37 @@ export class MasterService {
|
|
|
22
22
|
) {}
|
|
23
23
|
|
|
24
24
|
// private readonly metaSheets = [
|
|
25
|
-
// '
|
|
26
|
-
// '
|
|
27
|
-
// '
|
|
28
|
-
// '
|
|
29
|
-
// '
|
|
30
|
-
// '
|
|
31
|
-
// '
|
|
25
|
+
// 'frm_entity_master',
|
|
26
|
+
// 'frm_entity_attribute',
|
|
27
|
+
// 'frm_list_master',
|
|
28
|
+
// 'frm_list_master_items',
|
|
29
|
+
// 'frm_entity_table',
|
|
30
|
+
// 'frm_entity_table_column',
|
|
31
|
+
// 'frm_entity_view',
|
|
32
32
|
// ];
|
|
33
33
|
private readonly sequence = [
|
|
34
34
|
{
|
|
35
|
-
table: '
|
|
35
|
+
table: 'frm_entity_master',
|
|
36
36
|
unique_fields: ['id', 'organization_id'],
|
|
37
37
|
},
|
|
38
38
|
{
|
|
39
|
-
table: '
|
|
39
|
+
table: 'frm_entity_attribute',
|
|
40
40
|
unique_fields: ['mapped_entity_type', 'attribute_key', 'organization_id'],
|
|
41
41
|
},
|
|
42
42
|
{
|
|
43
|
-
table: '
|
|
43
|
+
table: 'frm_list_master',
|
|
44
44
|
unique_fields: ['type', 'organization_id'],
|
|
45
45
|
},
|
|
46
46
|
{
|
|
47
|
-
table: '
|
|
47
|
+
table: 'frm_list_master_items',
|
|
48
48
|
unique_fields: ['listtype', 'code', 'organization_id'],
|
|
49
49
|
},
|
|
50
50
|
{
|
|
51
|
-
table: '
|
|
51
|
+
table: 'frm_entity_table',
|
|
52
52
|
unique_fields: ['list_type', 'mapped_entity_type', 'organization_id'],
|
|
53
53
|
},
|
|
54
54
|
{
|
|
55
|
-
table: '
|
|
55
|
+
table: 'frm_entity_table_column',
|
|
56
56
|
unique_fields: [
|
|
57
57
|
'parent_id',
|
|
58
58
|
'parent_type',
|
|
@@ -61,7 +61,7 @@ export class MasterService {
|
|
|
61
61
|
],
|
|
62
62
|
},
|
|
63
63
|
{
|
|
64
|
-
table: '
|
|
64
|
+
table: 'frm_entity_view',
|
|
65
65
|
unique_fields: ['mapped_entity_type', 'organization_id'],
|
|
66
66
|
},
|
|
67
67
|
{
|
|
@@ -277,7 +277,7 @@ export class MasterService {
|
|
|
277
277
|
for (const attr of attributes) {
|
|
278
278
|
if (attr.data_source_type === 'master' && row[attr.attribute_key]) {
|
|
279
279
|
const refData = await this.entityManager.query(
|
|
280
|
-
`SELECT * FROM
|
|
280
|
+
`SELECT * FROM frm_list_master_items WHERE name = ? and organization_id = ? LIMIT 1`,
|
|
281
281
|
[row[attr.attribute_key], loggedInUser.organization_id],
|
|
282
282
|
);
|
|
283
283
|
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { BaseEntity } from './base-entity.entity';
|
|
2
2
|
import { Column, Entity } from 'typeorm';
|
|
3
3
|
|
|
4
|
-
@Entity({ name: '
|
|
4
|
+
@Entity({ name: 'frm_entity_attribute' })
|
|
5
5
|
export class AttributeMaster extends BaseEntity {
|
|
6
6
|
@Column({ name: 'mapped_entity_type', type: 'varchar', nullable: true })
|
|
7
7
|
mapped_entity_type: string;
|
|
@@ -2,7 +2,7 @@ import { BaseEntity } from './base-entity.entity';
|
|
|
2
2
|
import { ENTITYTYPE_ENTITYMASTER } from '../../../constant/global.constant';
|
|
3
3
|
import { Column, Entity } from 'typeorm';
|
|
4
4
|
|
|
5
|
-
@Entity({ name: '
|
|
5
|
+
@Entity({ name: 'frm_entity_master' })
|
|
6
6
|
export class EntityMaster extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -2,7 +2,7 @@ import { ENTITYTYPE_ENTITY_RELATION_DATA } from 'src/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_relation_data' })
|
|
6
6
|
export class EntityRelationData extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|
|
@@ -2,7 +2,7 @@ import { ENTITYTYPE_ENTITY_RELATION } from 'src/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_relation' })
|
|
6
6
|
export class EntityRelation extends BaseEntity {
|
|
7
7
|
constructor() {
|
|
8
8
|
super();
|