rez_core 6.5.16 → 6.5.17

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.
Files changed (29) hide show
  1. package/dist/module/enterprise/controller/meta.controller.d.ts +9 -0
  2. package/dist/module/enterprise/controller/meta.controller.js +43 -0
  3. package/dist/module/enterprise/controller/meta.controller.js.map +1 -0
  4. package/dist/module/enterprise/enterprise.module.js +5 -2
  5. package/dist/module/enterprise/enterprise.module.js.map +1 -1
  6. package/dist/module/enterprise/service/populate-meta.service.d.ts +9 -0
  7. package/dist/module/{meta → enterprise}/service/populate-meta.service.js +2 -8
  8. package/dist/module/enterprise/service/populate-meta.service.js.map +1 -0
  9. package/dist/module/meta/controller/meta.controller.d.ts +1 -6
  10. package/dist/module/meta/controller/meta.controller.js +1 -19
  11. package/dist/module/meta/controller/meta.controller.js.map +1 -1
  12. package/dist/module/meta/entity.module.js +1 -4
  13. package/dist/module/meta/entity.module.js.map +1 -1
  14. package/dist/module/workflow/service/populate-workflow.service.d.ts +1 -1
  15. package/dist/module/workflow/service/populate-workflow.service.js +1 -1
  16. package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
  17. package/dist/module/workflow/workflow.module.js +2 -0
  18. package/dist/module/workflow/workflow.module.js.map +1 -1
  19. package/dist/tsconfig.build.tsbuildinfo +1 -1
  20. package/package.json +1 -1
  21. package/src/module/enterprise/controller/meta.controller.ts +23 -0
  22. package/src/module/enterprise/enterprise.module.ts +5 -2
  23. package/src/module/{meta → enterprise}/service/populate-meta.service.ts +2 -5
  24. package/src/module/meta/controller/meta.controller.ts +3 -25
  25. package/src/module/meta/entity.module.ts +4 -6
  26. package/src/module/workflow/service/populate-workflow.service.ts +1 -1
  27. package/src/module/workflow/workflow.module.ts +2 -0
  28. package/dist/module/meta/service/populate-meta.service.d.ts +0 -13
  29. package/dist/module/meta/service/populate-meta.service.js.map +0 -1
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "6.5.16",
3
+ "version": "6.5.17",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -0,0 +1,23 @@
1
+ import { Controller, HttpCode, HttpStatus, Post, Query, Req, Res } from '@nestjs/common';
2
+ import { Response } from 'express';
3
+ import { PopulateMetaService } from '../service/populate-meta.service';
4
+
5
+ @Controller('meta')
6
+ export class MetaController {
7
+
8
+ constructor(private readonly populateMetaService: PopulateMetaService) {
9
+ }
10
+
11
+ @Post('populate')
12
+ @HttpCode(HttpStatus.OK)
13
+ async populateMetaData(
14
+ @Query('organization_id') organizationId: number,
15
+ @Res() response: Response,
16
+ @Req() req: Request & { user: any },
17
+ ) {
18
+ const loggedInUser = req.user.userData;
19
+ const result =
20
+ await this.populateMetaService.populateMetaData(organizationId);
21
+ return response.status(HttpStatus.OK).json(result);
22
+ }
23
+ }
@@ -15,6 +15,8 @@ import { EnterpriseService } from './service/enterprise.service';
15
15
  import { EnterpriseRepository } from './repository/enterprise.repository';
16
16
  import { EnterpriseData } from './entity/enterprise.entity';
17
17
  import { EnterpriseController } from './controller/enterprise.controller';
18
+ import { PopulateMetaService } from './service/populate-meta.service';
19
+ import { MetaController } from './controller/meta.controller';
18
20
 
19
21
  @Module({
20
22
  imports: [
@@ -25,7 +27,7 @@ import { EnterpriseController } from './controller/enterprise.controller';
25
27
  ]),
26
28
  UtilsModule,
27
29
  ],
28
- controllers: [OrganizationController, EnterpriseController],
30
+ controllers: [OrganizationController, EnterpriseController, MetaController],
29
31
  providers: [
30
32
  OrganizationService,
31
33
  OrganizationAppMappingService,
@@ -33,8 +35,9 @@ import { EnterpriseController } from './controller/enterprise.controller';
33
35
  OrganizationRepository,
34
36
  EnterpriseService,
35
37
  EnterpriseRepository,
38
+ PopulateMetaService
36
39
  ],
37
- exports: [OrganizationService, OrganizationRepository, EnterpriseService, EnterpriseRepository],
40
+ exports: [OrganizationService, OrganizationRepository, EnterpriseService, EnterpriseRepository, PopulateMetaService],
38
41
  })
39
42
  export class EnterpriseModule {
40
43
  }
@@ -1,15 +1,12 @@
1
1
  import { Injectable } from '@nestjs/common';
2
- import { DataSource } from 'typeorm';
3
- import { EntityServiceImpl } from './entity-service-impl.service';
4
2
  import { ReflectionHelper } from 'src/utils/service/reflection-helper.service';
5
3
 
6
4
  @Injectable()
7
5
  export class PopulateMetaService {
8
6
  constructor(
9
- private readonly dataSource: DataSource,
10
- private readonly entityServiceImpl: EntityServiceImpl,
11
7
  private readonly reflectionHelper: ReflectionHelper,
12
- ) {}
8
+ ) {
9
+ }
13
10
 
14
11
  async populateMetaData(organization_id: number) {
15
12
  const metadataTables = [
@@ -1,17 +1,7 @@
1
- import {
2
- Body,
3
- Controller, HttpCode,
4
- HttpStatus,
5
- Post,
6
- Query,
7
- Req,
8
- Res,
9
- UseGuards,
10
- } from '@nestjs/common';
1
+ import { Body, Controller, HttpCode, HttpStatus, Post, Query, Req, Res, UseGuards } from '@nestjs/common';
11
2
  import { EntityTableService } from '../service/entity-table.service';
12
3
  import { Response } from 'express';
13
4
  import { JwtAuthGuard } from '../../auth/guards/jwt.guard';
14
- import { PopulateMetaService } from '../service/populate-meta.service';
15
5
  import { EntityMasterService } from '../service/entity-master.service';
16
6
 
17
7
  @Controller('meta')
@@ -19,9 +9,9 @@ import { EntityMasterService } from '../service/entity-master.service';
19
9
  export class MetaController {
20
10
  constructor(
21
11
  private readonly entityTableService: EntityTableService,
22
- private readonly populateMetaService: PopulateMetaService,
23
12
  private readonly entityMaster: EntityMasterService,
24
- ) {}
13
+ ) {
14
+ }
25
15
 
26
16
  @Post('get-table-data')
27
17
  @HttpCode(HttpStatus.OK)
@@ -64,18 +54,6 @@ export class MetaController {
64
54
  });
65
55
  }
66
56
 
67
- @Post('populate')
68
- @HttpCode(HttpStatus.OK)
69
- async populateMetaData(
70
- @Query('organization_id') organizationId: number,
71
- @Res() response: Response,
72
- @Req() req: Request & { user: any },
73
- ) {
74
- const loggedInUser = req.user.userData;
75
- const result =
76
- await this.populateMetaService.populateMetaData(organizationId);
77
- return response.status(HttpStatus.OK).json(result);
78
- }
79
57
 
80
58
  @Post('operation-list')
81
59
  @HttpCode(HttpStatus.OK)
@@ -44,7 +44,6 @@ import { UserRoleMapping } from '../user/entity/user-role-mapping.entity';
44
44
  import { AppMasterService } from './service/app-master.service';
45
45
  import { AppMasterRespository } from './repository/app-master.repository';
46
46
  import { AppMaster } from './entity/app-master.entity';
47
- import { PopulateMetaService } from './service/populate-meta.service';
48
47
  import { AttributeMasterController } from './controller/attribute-master.controller';
49
48
  import { EntityDynamicController } from './controller/entity-dynamic.controller';
50
49
  import { EntityDynamicService } from './service/entity-dynamic.service';
@@ -82,7 +81,7 @@ import { EntityRelationRepository } from './repository/entity-relation.repositor
82
81
  forwardRef(() => FilterModule),
83
82
  UtilsModule,
84
83
  forwardRef(() => WorkflowAutomationModule),
85
-
84
+
86
85
  ],
87
86
  providers: [
88
87
  EntityMasterService,
@@ -96,7 +95,6 @@ import { EntityRelationRepository } from './repository/entity-relation.repositor
96
95
  MasterService,
97
96
  EntityTableRepository,
98
97
  EntityTableService,
99
- PopulateMetaService,
100
98
  EntityTableColumnRepository,
101
99
  EntityTableColumnService,
102
100
  MediaDataRepository,
@@ -129,7 +127,6 @@ import { EntityRelationRepository } from './repository/entity-relation.repositor
129
127
  PreferenceService,
130
128
  EntityValidationService,
131
129
  EntityTableService,
132
- PopulateMetaService,
133
130
  EntityTableColumnService,
134
131
  MediaDataService,
135
132
  EntityUpdateService,
@@ -146,7 +143,7 @@ import { EntityRelationRepository } from './repository/entity-relation.repositor
146
143
  EntityDynamicService,
147
144
  'CommonService',
148
145
  'EntityRelationService',
149
- AppMasterRespository
146
+ AppMasterRespository,
150
147
  ],
151
148
  controllers: [
152
149
  EntityController,
@@ -163,4 +160,5 @@ import { EntityRelationRepository } from './repository/entity-relation.repositor
163
160
 
164
161
  ],
165
162
  })
166
- export class EntityModule {}
163
+ export class EntityModule {
164
+ }
@@ -2,7 +2,7 @@ import { create } from 'domain';
2
2
  import { CommTemplate } from './../entity/comm-template.entity';
3
3
  import { ActionCategory } from './../entity/action-category.entity';
4
4
  import { DataSource } from 'typeorm';
5
- import { PopulateMetaService } from './../../meta/service/populate-meta.service';
5
+ import { PopulateMetaService } from '../../enterprise/service/populate-meta.service';
6
6
  import { Inject, Injectable } from '@nestjs/common';
7
7
  import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
8
8
  import { WorkflowService } from './workflow.service';
@@ -65,6 +65,7 @@ import { MapperModule } from '../mapper/mapper.module';
65
65
  import { WorkflowAutomationModule } from '../workflow-automation/workflow-automation.module';
66
66
  import { ListMasterData } from '../listmaster/entity/list-master.entity';
67
67
  import { ListMasterItems } from '../listmaster/entity/list-master-items.entity';
68
+ import { EnterpriseModule } from '../enterprise/enterprise.module';
68
69
 
69
70
  @Module({
70
71
  imports: [
@@ -93,6 +94,7 @@ import { ListMasterItems } from '../listmaster/entity/list-master-items.entity';
93
94
  NotificationModule,
94
95
  MapperModule,
95
96
  WorkflowAutomationModule,
97
+ EnterpriseModule
96
98
  ],
97
99
  providers: [
98
100
  { provide: 'ActionCategoryService', useClass: ActionCategoryService },
@@ -1,13 +0,0 @@
1
- import { DataSource } from 'typeorm';
2
- import { EntityServiceImpl } from './entity-service-impl.service';
3
- import { ReflectionHelper } from 'src/utils/service/reflection-helper.service';
4
- export declare class PopulateMetaService {
5
- private readonly dataSource;
6
- private readonly entityServiceImpl;
7
- private readonly reflectionHelper;
8
- constructor(dataSource: DataSource, entityServiceImpl: EntityServiceImpl, reflectionHelper: ReflectionHelper);
9
- populateMetaData(organization_id: number): Promise<{
10
- message: string;
11
- status: string;
12
- } | undefined>;
13
- }
@@ -1 +0,0 @@
1
- {"version":3,"file":"populate-meta.service.js","sourceRoot":"","sources":["../../../../src/module/meta/service/populate-meta.service.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,2CAA4C;AAC5C,qCAAqC;AACrC,+EAAkE;AAClE,gGAA+E;AAGxE,IAAM,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