rez_core 2.1.136 → 2.1.138

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "rez_core",
3
- "version": "2.1.136",
3
+ "version": "2.1.138",
4
4
  "description": "",
5
5
  "author": "",
6
6
  "private": false,
@@ -9,6 +9,7 @@ import {
9
9
  Get,
10
10
  Param,
11
11
  Put,
12
+ Inject,
12
13
  } from '@nestjs/common';
13
14
  import { JwtAuthGuard } from 'src/module/auth/guards/jwt.guard';
14
15
  import { WorkflowService } from '../service/workflow.service';
@@ -17,7 +18,10 @@ import { Request } from 'express';
17
18
  @Controller('/workflow')
18
19
  @UseGuards(JwtAuthGuard)
19
20
  export class WorkflowController {
20
- constructor(private readonly workflowService: WorkflowService) {}
21
+ constructor(
22
+ @Inject('WorkflowService')
23
+ private readonly workflowService: WorkflowService,
24
+ ) {}
21
25
 
22
26
  @Post('/getWorkflow')
23
27
  @HttpCode(HttpStatus.OK)
@@ -1,10 +1,13 @@
1
1
  import { BadRequestException, Injectable } from '@nestjs/common';
2
+ import { EntityServiceImpl } from 'src/module/meta/service/entity-service-impl.service';
2
3
  import { UserData } from 'src/module/user/entity/user.entity';
3
- import { BaseEntity, DataSource } from 'typeorm';
4
+ import { BaseEntity, DataSource, Entity } from 'typeorm';
4
5
 
5
6
  @Injectable()
6
- export class WorkflowService {
7
- constructor(private readonly dataSource: DataSource) {}
7
+ export class WorkflowService extends EntityServiceImpl {
8
+ constructor(private readonly dataSource: DataSource) {
9
+ super();
10
+ }
8
11
 
9
12
  async getAllWorkflow(entity_type: string, loggedInUser: any) {
10
13
  const { level_id, level_type } = loggedInUser;
@@ -31,11 +34,6 @@ export class WorkflowService {
31
34
  return result[0] || null;
32
35
  }
33
36
 
34
- async updateEntity(
35
- entityData: BaseEntity,
36
- loggedInUser: UserData,
37
- ): Promise<any> {}
38
-
39
37
  async getLeadContactDropdown(leadId: number, mode: string): Promise<any[]> {
40
38
  const lead = await this.dataSource.query(
41
39
  `SELECT phone_number, father_mobile, mother_mobile, email, father_email, mother_email
@@ -46,9 +46,9 @@ import { WorkflowController } from './controller/workflow.controller';
46
46
  { provide: 'ActionService', useClass: ActionService },
47
47
  { provide: 'StageService', useClass: StageService },
48
48
  { provide: 'StageGroupService', useClass: StageGroupService },
49
+ { provide: 'WorkflowService', useClass: WorkflowService },
49
50
  WorkflowListMasterService,
50
51
  ActionTemplateMappingService,
51
- WorkflowService,
52
52
  ],
53
53
  exports: [
54
54
  'ActionCategoryService',