rez_core 6.5.15 → 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 (48) hide show
  1. package/dist/app.module.js +2 -2
  2. package/dist/app.module.js.map +1 -1
  3. package/dist/module/enterprise/controller/meta.controller.d.ts +9 -0
  4. package/dist/module/enterprise/controller/meta.controller.js +43 -0
  5. package/dist/module/enterprise/controller/meta.controller.js.map +1 -0
  6. package/dist/module/enterprise/enterprise.module.js +9 -13
  7. package/dist/module/enterprise/enterprise.module.js.map +1 -1
  8. package/dist/module/enterprise/service/brand-profile.service.d.ts +0 -0
  9. package/dist/module/enterprise/service/brand-profile.service.js +1 -0
  10. package/dist/module/enterprise/service/brand-profile.service.js.map +1 -0
  11. package/dist/module/enterprise/service/brand.service.d.ts +0 -3
  12. package/dist/module/enterprise/service/brand.service.js +0 -17
  13. package/dist/module/enterprise/service/brand.service.js.map +1 -1
  14. package/dist/module/enterprise/service/populate-meta.service.d.ts +9 -0
  15. package/dist/module/{meta → enterprise}/service/populate-meta.service.js +2 -8
  16. package/dist/module/enterprise/service/populate-meta.service.js.map +1 -0
  17. package/dist/module/enterprise/service/school.service.d.ts +0 -0
  18. package/dist/module/enterprise/service/school.service.js +1 -0
  19. package/dist/module/enterprise/service/school.service.js.map +1 -0
  20. package/dist/module/meta/controller/meta.controller.d.ts +1 -6
  21. package/dist/module/meta/controller/meta.controller.js +1 -19
  22. package/dist/module/meta/controller/meta.controller.js.map +1 -1
  23. package/dist/module/meta/entity.module.js +2 -7
  24. package/dist/module/meta/entity.module.js.map +1 -1
  25. package/dist/module/workflow/service/populate-workflow.service.d.ts +1 -1
  26. package/dist/module/workflow/service/populate-workflow.service.js +1 -1
  27. package/dist/module/workflow/service/populate-workflow.service.js.map +1 -1
  28. package/dist/module/workflow/workflow.module.js +2 -0
  29. package/dist/module/workflow/workflow.module.js.map +1 -1
  30. package/dist/module/workflow-automation/workflow-automation.module.js +1 -1
  31. package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -1
  32. package/dist/table.config.d.ts +1 -1
  33. package/dist/tsconfig.build.tsbuildinfo +1 -1
  34. package/package.json +1 -1
  35. package/src/app.module.ts +2 -2
  36. package/src/module/enterprise/controller/meta.controller.ts +23 -0
  37. package/src/module/enterprise/enterprise.module.ts +15 -17
  38. package/src/module/enterprise/service/brand-profile.service.ts +10 -0
  39. package/src/module/enterprise/service/brand.service.ts +75 -5
  40. package/src/module/{meta → enterprise}/service/populate-meta.service.ts +2 -5
  41. package/src/module/enterprise/service/school.service.ts +5 -0
  42. package/src/module/meta/controller/meta.controller.ts +3 -25
  43. package/src/module/meta/entity.module.ts +5 -9
  44. package/src/module/workflow/service/populate-workflow.service.ts +1 -1
  45. package/src/module/workflow/workflow.module.ts +2 -0
  46. package/src/module/workflow-automation/workflow-automation.module.ts +1 -1
  47. package/dist/module/meta/service/populate-meta.service.d.ts +0 -13
  48. 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.15",
3
+ "version": "6.5.17",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
package/src/app.module.ts CHANGED
@@ -31,7 +31,6 @@ import { ExportModule } from './module/export/export.module';
31
31
 
32
32
  @Module({
33
33
  imports: [
34
- EntityModule,
35
34
  DatabaseModule,
36
35
  EnterpriseModule,
37
36
  UtilsModule,
@@ -62,7 +61,8 @@ import { ExportModule } from './module/export/export.module';
62
61
  MicroserviceClientsModule,
63
62
  LinkedAttributesModule,
64
63
  EntityJSONModule,
65
- ExportModule
64
+ ExportModule,
65
+ EntityModule,
66
66
  ],
67
67
  })
68
68
  export class AppModule { }
@@ -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
+ }
@@ -1,33 +1,33 @@
1
- import { forwardRef, Module } from '@nestjs/common';
1
+ import { Module } from '@nestjs/common';
2
2
  import { TypeOrmModule } from '@nestjs/typeorm';
3
- import { UserModule } from '../user/user.module';
4
- import { OrganizationController } from './controller/organization.controller';
5
- import { OrganizationAppMapping } from './entity/organization-app-mapping.entity';
3
+ import { OrganizationService } from './service/organization.service';
6
4
  import { OrganizationData } from './entity/organization.entity';
5
+ import { OrganizationController } from './controller/organization.controller';
7
6
  import { OrganizationAppMappingService } from './service/organization-app-mapping.service';
8
- import { OrganizationService } from './service/organization.service';
7
+ import { OrganizationAppMapping } from './entity/organization-app-mapping.entity';
8
+ // import { BrandData } from './entity/brand.entity';
9
+ // import { SchoolData } from './entity/school.entity';
10
+ // import { BrandRepository } from './repository/brand.repository';
9
11
  import { UtilsModule } from 'src/utils/utils.module';
10
- import { EntityModule } from '../meta/entity.module';
11
12
  import { OrganizationRepository } from './repository/organization.repository';
12
13
  import { SchoolRepository } from './repository/school.repository';
13
- import { WorkflowAutomationModule } from '../workflow-automation/workflow-automation.module';
14
14
  import { EnterpriseService } from './service/enterprise.service';
15
- import { BrandService } from './service/brand.service';
16
15
  import { EnterpriseRepository } from './repository/enterprise.repository';
17
16
  import { EnterpriseData } from './entity/enterprise.entity';
18
17
  import { EnterpriseController } from './controller/enterprise.controller';
18
+ import { PopulateMetaService } from './service/populate-meta.service';
19
+ import { MetaController } from './controller/meta.controller';
19
20
 
20
21
  @Module({
21
22
  imports: [
22
23
  TypeOrmModule.forFeature([
23
24
  OrganizationData,
24
25
  OrganizationAppMapping,
25
- EnterpriseData
26
+ EnterpriseData,
26
27
  ]),
27
28
  UtilsModule,
28
- EntityModule,
29
29
  ],
30
- controllers: [OrganizationController, EnterpriseController],
30
+ controllers: [OrganizationController, EnterpriseController, MetaController],
31
31
  providers: [
32
32
  OrganizationService,
33
33
  OrganizationAppMappingService,
@@ -35,11 +35,9 @@ import { EnterpriseController } from './controller/enterprise.controller';
35
35
  OrganizationRepository,
36
36
  EnterpriseService,
37
37
  EnterpriseRepository,
38
- {
39
- provide: 'BrandService',
40
- useClass: BrandService,
41
- },
38
+ PopulateMetaService
42
39
  ],
43
- exports: [OrganizationService, OrganizationRepository, EnterpriseService, EnterpriseRepository],
40
+ exports: [OrganizationService, OrganizationRepository, EnterpriseService, EnterpriseRepository, PopulateMetaService],
44
41
  })
45
- export class EnterpriseModule {}
42
+ export class EnterpriseModule {
43
+ }
@@ -0,0 +1,10 @@
1
+ // import { Inject, Injectable } from '@nestjs/common';
2
+ // import { firstValueFrom } from 'rxjs';
3
+ // import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
4
+ //
5
+ // @Injectable()
6
+ // export class BrandProfileService extends EntityServiceImpl {
7
+ // constructor() {
8
+ // super();
9
+ // }
10
+ // }
@@ -1,5 +1,75 @@
1
- import { Injectable } from '@nestjs/common';
2
- import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
3
-
4
- @Injectable()
5
- export class BrandService extends EntityServiceImpl {}
1
+ // import { Injectable } from '@nestjs/common';
2
+ // import { InjectRepository } from '@nestjs/typeorm';
3
+ //
4
+ // @Injectable()
5
+ // export class BrandService {
6
+ // constructor(
7
+ // @InjectRepository(Brand)
8
+ // ) {
9
+ //
10
+ // }
11
+ //
12
+ // async getEntityData(
13
+ // entityType: string,
14
+ // id: number,
15
+ // loggedInUser,
16
+ // ): Promise<any> {
17
+ // const brandResponse = await super.getEntityData(
18
+ // entityType,
19
+ // id,
20
+ // loggedInUser,
21
+ // );
22
+ //
23
+ // return brandResponse;
24
+ // }
25
+ //
26
+ // async createEntity(body: any, userData): Promise<any> {
27
+ // const { entity_type, ...data } = body;
28
+ //
29
+ // const brandData = await super.createEntity(
30
+ // {
31
+ // ...data,
32
+ //
33
+ // entity_type: 'ORG',
34
+ // type: 'BRN',
35
+ // parent_id: userData.organization_id,
36
+ // },
37
+ // userData,
38
+ // );
39
+ //
40
+ // // save brand profile
41
+ //
42
+ // const brandProfile = await super.createEntity(
43
+ // {
44
+ // ...body,
45
+ // parent_id: brandData.id,
46
+ // organization_id: brandData.organization_id,
47
+ // entity_type: 'BRNP',
48
+ // },
49
+ // userData,
50
+ // );
51
+ //
52
+ // return brandProfile;
53
+ // }
54
+ //
55
+ // async updateEntity(body: any, userData): Promise<any> {
56
+ // // update brand table
57
+ // const { id, entity_type, organization_id, ...newBody } = body;
58
+ //
59
+ // const brandProfile = await super.updateEntity(body, userData);
60
+ //
61
+ // // update brand
62
+ // await super.updateEntity(
63
+ // {
64
+ // ...newBody,
65
+ // id: brandProfile.parent_id,
66
+ // parent_id: userData.organization_id,
67
+ // entity_type: 'ORG',
68
+ // type: 'BRN',
69
+ // },
70
+ // userData,
71
+ // );
72
+ //
73
+ // return brandProfile;
74
+ // }
75
+ // }
@@ -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 = [
@@ -0,0 +1,5 @@
1
+ // import { Injectable } from '@nestjs/common';
2
+ // import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
3
+ //
4
+ // @Injectable()
5
+ // export class SchoolService extends EntityServiceImpl {}
@@ -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';
@@ -77,13 +76,12 @@ import { EntityRelationRepository } from './repository/entity-relation.repositor
77
76
  AppMaster,
78
77
  EntityRelation,
79
78
  EntityRelationData,
80
- EntityUpdateService
81
79
  ]),
82
80
  forwardRef(() => ListMasterModule),
83
81
  forwardRef(() => FilterModule),
84
82
  UtilsModule,
85
- WorkflowAutomationModule,
86
-
83
+ forwardRef(() => WorkflowAutomationModule),
84
+
87
85
  ],
88
86
  providers: [
89
87
  EntityMasterService,
@@ -97,7 +95,6 @@ import { EntityRelationRepository } from './repository/entity-relation.repositor
97
95
  MasterService,
98
96
  EntityTableRepository,
99
97
  EntityTableService,
100
- PopulateMetaService,
101
98
  EntityTableColumnRepository,
102
99
  EntityTableColumnService,
103
100
  MediaDataRepository,
@@ -123,7 +120,6 @@ import { EntityRelationRepository } from './repository/entity-relation.repositor
123
120
  ResolverService,
124
121
  EntityMasterRepository,
125
122
  EntityRelationRepository,
126
- AppMasterRespository
127
123
  ],
128
124
  exports: [
129
125
  EntityMasterService,
@@ -131,7 +127,6 @@ import { EntityRelationRepository } from './repository/entity-relation.repositor
131
127
  PreferenceService,
132
128
  EntityValidationService,
133
129
  EntityTableService,
134
- PopulateMetaService,
135
130
  EntityTableColumnService,
136
131
  MediaDataService,
137
132
  EntityUpdateService,
@@ -148,7 +143,7 @@ import { EntityRelationRepository } from './repository/entity-relation.repositor
148
143
  EntityDynamicService,
149
144
  'CommonService',
150
145
  'EntityRelationService',
151
- AppMasterRespository
146
+ AppMasterRespository,
152
147
  ],
153
148
  controllers: [
154
149
  EntityController,
@@ -165,4 +160,5 @@ import { EntityRelationRepository } from './repository/entity-relation.repositor
165
160
 
166
161
  ],
167
162
  })
168
- 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 },
@@ -28,7 +28,7 @@ import { WorkflowScheduleModule } from '../workflow-schedule/workflow-schedule.m
28
28
  ListMasterData,
29
29
  ActionCategory
30
30
  ]),
31
- FilterModule,
31
+ forwardRef(() => FilterModule),
32
32
  forwardRef(() => EntityModule),
33
33
  DiscoveryModule, // 👈 enables provider scanning
34
34
  ],
@@ -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,mBAAmB,GAAzB,MAAM,mBAAmB;IAC9B,YACmB,UAAsB,EACtB,iBAAoC,EACpC,gBAAkC;QAFlC,eAAU,GAAV,UAAU,CAAY;QACtB,sBAAiB,GAAjB,iBAAiB,CAAmB;QACpC,qBAAgB,GAAhB,gBAAgB,CAAkB;IAClD,CAAC;IAEJ,KAAK,CAAC,gBAAgB,CAAC,eAAuB;QAC5C,MAAM,cAAc,GAAG;YACrB,mBAAmB;YACnB,sBAAsB;YACtB,iBAAiB;YACjB,qBAAqB;SACtB,CAAC;QAEF,MAAM,QAAQ,GAAG;YACf,cAAc;YACd,iBAAiB;YACjB,YAAY;YACZ,oBAAoB;SACrB,CAAC;QAEF,MAAM,mBAAmB,GACvB,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;QAC1D,MAAM,cAAc,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,YAAY,CAAC,CAAC;QAC1E,MAAM,gBAAgB,GACpB,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,oBAAoB,CAAC,CAAC;QAC7D,MAAM,YAAY,GAAG,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,gBAAgB,CAAC,CAAC;QAC5E,MAAM,mBAAmB,GACvB,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,iBAAiB,CAAC,CAAC;QAC1D,MAAM,gBAAgB,GACpB,IAAI,CAAC,gBAAgB,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;QAEvD,IAAI,CAAC,mBAAmB;YAAE,OAAO;QAEjC,MAAM,SAAS,GAAG,CAAC,MAAM,mBAAmB,CAAC,IAAI,CAAC;YAChD,KAAK,EAAE,EAAE,eAAe,EAAE,e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