rez_core 6.5.17 → 6.5.19
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/entity_json/service/entity_json.service.d.ts +3 -2
- package/dist/module/entity_json/service/entity_json.service.js +12 -6
- package/dist/module/entity_json/service/entity_json.service.js.map +1 -1
- package/dist/module/meta/service/entity-service-impl.service.js +6 -6
- package/dist/module/meta/service/entity-service-impl.service.js.map +1 -1
- package/dist/module/meta/service/resolver.service.js +1 -0
- package/dist/module/meta/service/resolver.service.js.map +1 -1
- package/dist/module/user/controller/login.controller.d.ts +1 -3
- package/dist/module/user/controller/login.controller.js +2 -6
- package/dist/module/user/controller/login.controller.js.map +1 -1
- package/dist/module/user/user.module.js +1 -3
- package/dist/module/user/user.module.js.map +1 -1
- package/dist/module/workflow-automation/workflow-automation.module.js +2 -0
- package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/module/entity_json/service/entity_json.service.ts +8 -7
- package/src/module/meta/service/entity-service-impl.service.ts +16 -6
- package/src/module/meta/service/resolver.service.ts +2 -1
- package/src/module/user/controller/login.controller.ts +7 -8
- package/src/module/user/user.module.ts +1 -2
- package/src/module/workflow-automation/workflow-automation.module.ts +3 -2
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Injectable } from '@nestjs/common';
|
|
1
|
+
import { Inject, Injectable, forwardRef } from '@nestjs/common';
|
|
2
2
|
import { LinkedAttributes } from 'src/module/linked_attributes/entity/linked_attribute.entity';
|
|
3
3
|
import { AttributeMaster } from 'src/module/meta/entity/attribute-master.entity';
|
|
4
4
|
import { EntityRelation } from 'src/module/meta/entity/entity-relation.entity';
|
|
@@ -9,15 +9,16 @@ import { EntityJSONRepository } from './entityJson.repository';
|
|
|
9
9
|
import { FilterService } from '../../filter/service/filter.service';
|
|
10
10
|
|
|
11
11
|
@Injectable()
|
|
12
|
-
export class EntityJSONService
|
|
12
|
+
export class EntityJSONService {
|
|
13
13
|
constructor(
|
|
14
14
|
private readonly dataSource: DataSource,
|
|
15
15
|
private readonly loggerService: LoggingService,
|
|
16
16
|
private readonly EntityJSONRepository: EntityJSONRepository,
|
|
17
|
+
@Inject(forwardRef(() => FilterService))
|
|
17
18
|
private readonly filterService: FilterService,
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
}
|
|
19
|
+
@Inject(forwardRef(() => EntityServiceImpl))
|
|
20
|
+
private readonly entityServiceImpl: EntityServiceImpl,
|
|
21
|
+
) {}
|
|
21
22
|
|
|
22
23
|
async getAttributeForFlatJSON(
|
|
23
24
|
entityType: string,
|
|
@@ -138,7 +139,7 @@ export class EntityJSONService extends EntityServiceImpl {
|
|
|
138
139
|
if (attr.attribute_key) attrMap[attr.attribute_key] = attr.flat_json_key || attr.attribute_key;
|
|
139
140
|
});
|
|
140
141
|
|
|
141
|
-
const mainData = await this.getResolvedEntityData(entityType, entityId, loggedInUser);
|
|
142
|
+
const mainData = await this.entityServiceImpl.getResolvedEntityData(entityType, entityId, loggedInUser);
|
|
142
143
|
this.mergeEntityDataIntoFlatJson(flatJson, mainData, attrMap);
|
|
143
144
|
|
|
144
145
|
const relations = await this.dataSource
|
|
@@ -151,7 +152,7 @@ export class EntityJSONService extends EntityServiceImpl {
|
|
|
151
152
|
.getRawMany();
|
|
152
153
|
|
|
153
154
|
for (const rel of relations) {
|
|
154
|
-
const relatedData = await this.getResolvedEntityData(rel.target_entity_type, rel.target_entity_id, loggedInUser);
|
|
155
|
+
const relatedData = await this.entityServiceImpl.getResolvedEntityData(rel.target_entity_type, rel.target_entity_id, loggedInUser);
|
|
155
156
|
this.mergeEntityDataIntoFlatJson(flatJson, relatedData, attrMap);
|
|
156
157
|
}
|
|
157
158
|
|
|
@@ -14,14 +14,24 @@ import { ResolverService } from './resolver.service';
|
|
|
14
14
|
|
|
15
15
|
@Injectable()
|
|
16
16
|
export class EntityServiceImpl implements EntityService<BaseEntity> {
|
|
17
|
-
@Inject()
|
|
18
|
-
|
|
17
|
+
@Inject(forwardRef(() => EntityMasterService))
|
|
18
|
+
protected readonly entityMasterService: EntityMasterService;
|
|
19
|
+
|
|
20
|
+
@Inject(forwardRef(() => EntityTableColumnService))
|
|
19
21
|
protected readonly entityTableColumnService: EntityTableColumnService;
|
|
20
|
-
|
|
21
|
-
@Inject()
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
|
|
23
|
+
@Inject(forwardRef(() => EntityTableService))
|
|
24
|
+
protected readonly entityTableService: EntityTableService;
|
|
25
|
+
|
|
26
|
+
@Inject(forwardRef(() => ReflectionHelper))
|
|
27
|
+
protected readonly reflectionHelper: ReflectionHelper;
|
|
28
|
+
|
|
29
|
+
@Inject(forwardRef(() => LoggingService))
|
|
30
|
+
protected readonly loggingService: LoggingService;
|
|
31
|
+
|
|
32
|
+
@Inject(forwardRef(() => EntityValidationService))
|
|
24
33
|
protected readonly entityValidationService: EntityValidationService;
|
|
34
|
+
|
|
25
35
|
@Inject(forwardRef(() => ResolverService))
|
|
26
36
|
protected readonly resolverService: ResolverService;
|
|
27
37
|
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { Inject, Injectable } from '@nestjs/common';
|
|
1
|
+
import { Inject, Injectable, forwardRef } from '@nestjs/common';
|
|
2
2
|
import { UserData } from '../../user/entity/user.entity';
|
|
3
3
|
import * as moment from 'moment';
|
|
4
4
|
import { ListMasterService } from 'src/module/listmaster/service/list-master.service';
|
|
@@ -18,6 +18,7 @@ export class ResolverService {
|
|
|
18
18
|
private readonly moduleRef: ModuleRef,
|
|
19
19
|
private readonly attributeMasterRepo: AttributeMasterRepository,
|
|
20
20
|
private readonly reflectionHelper: ReflectionHelper,
|
|
21
|
+
@Inject(forwardRef(() => EntityMasterRepository))
|
|
21
22
|
private readonly entityMasterRepo: EntityMasterRepository,
|
|
22
23
|
private readonly entityManger: EntityManager,
|
|
23
24
|
) {
|
|
@@ -22,8 +22,7 @@ export class LoginController {
|
|
|
22
22
|
constructor(
|
|
23
23
|
private loginService: LoginService,
|
|
24
24
|
private userSessionService: UserSessionService,
|
|
25
|
-
private configService: ConfigService
|
|
26
|
-
private integrationService: IntegrationService,
|
|
25
|
+
private configService: ConfigService
|
|
27
26
|
) {}
|
|
28
27
|
|
|
29
28
|
@Post('login')
|
|
@@ -86,12 +85,12 @@ export class LoginController {
|
|
|
86
85
|
const actualState = state.replace('gmail_config:', '');
|
|
87
86
|
|
|
88
87
|
// Forward to communication service for Gmail config handling using already exchanged tokens
|
|
89
|
-
const result = await this.integrationService.handleGmailTokensCallback(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
);
|
|
88
|
+
// const result = await this.integrationService.handleGmailTokensCallback(
|
|
89
|
+
// email,
|
|
90
|
+
// googleAccessToken,
|
|
91
|
+
// googleRefreshToken,
|
|
92
|
+
// actualState,
|
|
93
|
+
// );
|
|
95
94
|
|
|
96
95
|
return res.send(
|
|
97
96
|
`<html><body><script>
|
|
@@ -36,8 +36,7 @@ import { EnterpriseData } from '../enterprise/entity/enterprise.entity';
|
|
|
36
36
|
]),
|
|
37
37
|
forwardRef(() => AuthModule),
|
|
38
38
|
UtilsModule,
|
|
39
|
-
forwardRef(() => EnterpriseModule)
|
|
40
|
-
IntegrationModule
|
|
39
|
+
forwardRef(() => EnterpriseModule)
|
|
41
40
|
],
|
|
42
41
|
providers: [
|
|
43
42
|
{ provide: 'UserService', useClass: UserService },
|
|
@@ -12,7 +12,7 @@ import { ActionRegistryService } from './service/action-registery.service';
|
|
|
12
12
|
import { ScheduleHandlerService } from './service/schedule-handler.service';
|
|
13
13
|
import { ScheduledWorkflow } from '../workflow-schedule/entities/scheduled-workflow.entity';
|
|
14
14
|
import { WorkflowExecutionLog } from '../workflow-schedule/entities/workflow-execution-log.entity';
|
|
15
|
-
import {EntityMaster} from "../meta/entity/entity-master.entity";
|
|
15
|
+
import { EntityMaster } from "../meta/entity/entity-master.entity";
|
|
16
16
|
import { ListMasterData } from '../listmaster/entity/list-master.entity';
|
|
17
17
|
import { ActionCategory } from '../workflow/entity/action-category.entity';
|
|
18
18
|
import { WorkflowScheduleModule } from '../workflow-schedule/workflow-schedule.module';
|
|
@@ -30,6 +30,7 @@ import { WorkflowScheduleModule } from '../workflow-schedule/workflow-schedule.m
|
|
|
30
30
|
]),
|
|
31
31
|
forwardRef(() => FilterModule),
|
|
32
32
|
forwardRef(() => EntityModule),
|
|
33
|
+
forwardRef(() => WorkflowScheduleModule), // 👈 Required for WorkflowScheduleService
|
|
33
34
|
DiscoveryModule, // 👈 enables provider scanning
|
|
34
35
|
],
|
|
35
36
|
providers: [
|
|
@@ -51,4 +52,4 @@ import { WorkflowScheduleModule } from '../workflow-schedule/workflow-schedule.m
|
|
|
51
52
|
],
|
|
52
53
|
controllers: [WorkflowAutomationController],
|
|
53
54
|
})
|
|
54
|
-
export class WorkflowAutomationModule {}
|
|
55
|
+
export class WorkflowAutomationModule { }
|