rez_core 6.5.15 → 6.5.16

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 (27) hide show
  1. package/dist/app.module.js +2 -2
  2. package/dist/app.module.js.map +1 -1
  3. package/dist/module/enterprise/enterprise.module.js +4 -11
  4. package/dist/module/enterprise/enterprise.module.js.map +1 -1
  5. package/dist/module/enterprise/service/brand-profile.service.d.ts +0 -0
  6. package/dist/module/enterprise/service/brand-profile.service.js +1 -0
  7. package/dist/module/enterprise/service/brand-profile.service.js.map +1 -0
  8. package/dist/module/enterprise/service/brand.service.d.ts +0 -3
  9. package/dist/module/enterprise/service/brand.service.js +0 -17
  10. package/dist/module/enterprise/service/brand.service.js.map +1 -1
  11. package/dist/module/enterprise/service/school.service.d.ts +0 -0
  12. package/dist/module/enterprise/service/school.service.js +1 -0
  13. package/dist/module/enterprise/service/school.service.js.map +1 -0
  14. package/dist/module/meta/entity.module.js +1 -3
  15. package/dist/module/meta/entity.module.js.map +1 -1
  16. package/dist/module/workflow-automation/workflow-automation.module.js +1 -1
  17. package/dist/module/workflow-automation/workflow-automation.module.js.map +1 -1
  18. package/dist/table.config.d.ts +1 -1
  19. package/dist/tsconfig.build.tsbuildinfo +1 -1
  20. package/package.json +1 -1
  21. package/src/app.module.ts +2 -2
  22. package/src/module/enterprise/enterprise.module.ts +10 -15
  23. package/src/module/enterprise/service/brand-profile.service.ts +10 -0
  24. package/src/module/enterprise/service/brand.service.ts +75 -5
  25. package/src/module/enterprise/service/school.service.ts +5 -0
  26. package/src/module/meta/entity.module.ts +1 -3
  27. package/src/module/workflow-automation/workflow-automation.module.ts +1 -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.16",
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 { }
@@ -1,18 +1,17 @@
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';
@@ -22,10 +21,9 @@ import { EnterpriseController } from './controller/enterprise.controller';
22
21
  TypeOrmModule.forFeature([
23
22
  OrganizationData,
24
23
  OrganizationAppMapping,
25
- EnterpriseData
24
+ EnterpriseData,
26
25
  ]),
27
26
  UtilsModule,
28
- EntityModule,
29
27
  ],
30
28
  controllers: [OrganizationController, EnterpriseController],
31
29
  providers: [
@@ -35,11 +33,8 @@ import { EnterpriseController } from './controller/enterprise.controller';
35
33
  OrganizationRepository,
36
34
  EnterpriseService,
37
35
  EnterpriseRepository,
38
- {
39
- provide: 'BrandService',
40
- useClass: BrandService,
41
- },
42
36
  ],
43
37
  exports: [OrganizationService, OrganizationRepository, EnterpriseService, EnterpriseRepository],
44
38
  })
45
- export class EnterpriseModule {}
39
+ export class EnterpriseModule {
40
+ }
@@ -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
+ // }
@@ -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 {}
@@ -77,12 +77,11 @@ import { EntityRelationRepository } from './repository/entity-relation.repositor
77
77
  AppMaster,
78
78
  EntityRelation,
79
79
  EntityRelationData,
80
- EntityUpdateService
81
80
  ]),
82
81
  forwardRef(() => ListMasterModule),
83
82
  forwardRef(() => FilterModule),
84
83
  UtilsModule,
85
- WorkflowAutomationModule,
84
+ forwardRef(() => WorkflowAutomationModule),
86
85
 
87
86
  ],
88
87
  providers: [
@@ -123,7 +122,6 @@ import { EntityRelationRepository } from './repository/entity-relation.repositor
123
122
  ResolverService,
124
123
  EntityMasterRepository,
125
124
  EntityRelationRepository,
126
- AppMasterRespository
127
125
  ],
128
126
  exports: [
129
127
  EntityMasterService,
@@ -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
  ],