rez_core 2.1.121 → 2.1.122
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/constant/global.constant.d.ts +2 -0
- package/dist/constant/global.constant.js +3 -1
- package/dist/constant/global.constant.js.map +1 -1
- package/dist/module/resolver/resolver.module.js +2 -1
- package/dist/module/resolver/resolver.module.js.map +1 -1
- package/dist/module/user/service/user.service.js +2 -1
- package/dist/module/user/service/user.service.js.map +1 -1
- package/dist/tsconfig.build.tsbuildinfo +1 -1
- package/package.json +1 -1
- package/src/constant/global.constant.ts +4 -0
- package/src/module/resolver/resolver.module.ts +2 -1
- package/src/module/user/service/user.service.ts +8 -1
package/package.json
CHANGED
|
@@ -26,6 +26,10 @@ export const STATUS_ACTIVE = 'STATUS_ACTIVE';
|
|
|
26
26
|
export const STATUS_INACTIVE = 'STATUS_INACTIVE';
|
|
27
27
|
export const STATUS_PENDING = 'PENDING';
|
|
28
28
|
|
|
29
|
+
// Invitation Status
|
|
30
|
+
export const INVITATION_STATUS_SENT = 'SENT';
|
|
31
|
+
export const INVITATION_STATUS_ACCEPTED = 'ACCEPTED';
|
|
32
|
+
|
|
29
33
|
// Entity Status
|
|
30
34
|
export const ENTITYSTATUS_TO_BE_PUBLISHED = 'to_be_published';
|
|
31
35
|
export const ENTITYSTATUS_PUBLISHED = 'published';
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import { Module } from '@nestjs/common';
|
|
2
2
|
import { ResolverService } from './service/resolver.service';
|
|
3
|
+
import { ResolverController } from './controller/resolver.controller';
|
|
3
4
|
|
|
4
5
|
@Module({
|
|
5
6
|
imports: [],
|
|
6
|
-
controllers: [],
|
|
7
|
+
controllers: [ResolverController],
|
|
7
8
|
providers: [ResolverService],
|
|
8
9
|
exports: [ResolverService],
|
|
9
10
|
})
|
|
@@ -9,6 +9,7 @@ import { ClockIDGenService } from '../../../utils/service/clockIDGenUtil.service
|
|
|
9
9
|
import {
|
|
10
10
|
ENTITYTYPE_ROLE,
|
|
11
11
|
STATUS_ACTIVE,
|
|
12
|
+
INVITATION_STATUS_SENT,
|
|
12
13
|
} from '../../../constant/global.constant';
|
|
13
14
|
import { CreateUserDto } from '../dto/create-user.dto';
|
|
14
15
|
import { UserRoleMappingService } from './user-role-mapping.service';
|
|
@@ -66,6 +67,12 @@ export class UserService extends EntityServiceImpl {
|
|
|
66
67
|
loggedInUser?.organization_id || 0,
|
|
67
68
|
);
|
|
68
69
|
|
|
70
|
+
const resolvedInvitationStatus =
|
|
71
|
+
await this.listMasterService.getResolvedListCode(
|
|
72
|
+
INVITATION_STATUS_SENT,
|
|
73
|
+
loggedInUser?.organization_id || 0,
|
|
74
|
+
);
|
|
75
|
+
|
|
69
76
|
userData.name = (userData.first_name || '') + (userData.last_name || '');
|
|
70
77
|
userData.password = EncryptUtilService.encryptGCM(
|
|
71
78
|
userData.password || 'Admin@123',
|
|
@@ -74,7 +81,7 @@ export class UserService extends EntityServiceImpl {
|
|
|
74
81
|
);
|
|
75
82
|
userData.is_firstlogin = 1;
|
|
76
83
|
userData.roles = [];
|
|
77
|
-
userData.invitation_status = 'SENT';
|
|
84
|
+
userData.invitation_status = resolvedInvitationStatus.id || 'SENT';
|
|
78
85
|
userData.status = resolveStatus.id || 'ACTIVE';
|
|
79
86
|
|
|
80
87
|
const savedData = await super.createEntity(userData, loggedInUser);
|