grm-shared-library 1.1.97 → 1.1.99
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/cjs/modules/auth/dtos/login-response.dto.js +17 -8
- package/dist/cjs/modules/auth/dtos/login-response.dto.js.map +1 -1
- package/dist/esm/modules/auth/dtos/login-response.dto.js +17 -8
- package/dist/esm/modules/auth/dtos/login-response.dto.js.map +1 -1
- package/dist/types/modules/user/interfaces/user.d.ts +2 -1
- package/package.json +1 -1
|
@@ -16,22 +16,31 @@ class LoginResponseDto {
|
|
|
16
16
|
exports.LoginResponseDto = LoginResponseDto;
|
|
17
17
|
__decorate([
|
|
18
18
|
(0, swagger_1.ApiProperty)({
|
|
19
|
-
description: '
|
|
19
|
+
description: 'JWT authentication token for accessing protected endpoints',
|
|
20
20
|
example: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c'
|
|
21
21
|
}),
|
|
22
22
|
__metadata("design:type", String)
|
|
23
23
|
], LoginResponseDto.prototype, "accessToken", void 0);
|
|
24
24
|
__decorate([
|
|
25
25
|
(0, swagger_1.ApiProperty)({
|
|
26
|
-
description: '
|
|
26
|
+
description: 'Comprehensive user information including profile, roles, and organization details',
|
|
27
27
|
example: {
|
|
28
|
-
id:
|
|
29
|
-
|
|
30
|
-
name: '
|
|
28
|
+
id: 123,
|
|
29
|
+
appId: 'Pasha',
|
|
30
|
+
name: 'John Doe',
|
|
31
|
+
email: 'john.doe@example.com',
|
|
31
32
|
phoneNumber: '+1234567890',
|
|
32
|
-
roles: ['
|
|
33
|
-
|
|
34
|
-
|
|
33
|
+
roles: ['Organization:Admin', 'Control-Centre:Admin'],
|
|
34
|
+
avatar: 'https://storage.googleapis.com/avatars/john-doe.jpg',
|
|
35
|
+
designation: 'Emergency Manager',
|
|
36
|
+
status: 'active',
|
|
37
|
+
isTermsAccepted: true,
|
|
38
|
+
isIdentityVerified: true,
|
|
39
|
+
lastLoginAt: '2025-10-01T10:30:00.000Z',
|
|
40
|
+
controlCentreId: 5,
|
|
41
|
+
organizationId: 42,
|
|
42
|
+
createdAt: '2024-01-15T08:00:00.000Z',
|
|
43
|
+
updatedAt: '2025-10-01T10:30:00.000Z'
|
|
35
44
|
}
|
|
36
45
|
}),
|
|
37
46
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-response.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/login-response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAG9C,MAAa,gBAAgB;
|
|
1
|
+
{"version":3,"file":"login-response.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/login-response.dto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAG9C,MAAa,gBAAgB;CA6B5B;AA7BD,4CA6BC;AAxBG;IAJC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,4DAA4D;QACzE,OAAO,EAAE,6JAA6J;KACzK,CAAC;;qDACmB;AAuBrB;IArBC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,mFAAmF;QAChG,OAAO,EAAE;YACL,EAAE,EAAE,GAAG;YACP,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,aAAa;YAC1B,KAAK,EAAE,CAAC,oBAAoB,EAAE,sBAAsB,CAAC;YACrD,MAAM,EAAE,qDAAqD;YAC7D,WAAW,EAAE,mBAAmB;YAChC,MAAM,EAAE,QAAQ;YAChB,eAAe,EAAE,IAAI;YACrB,kBAAkB,EAAE,IAAI;YACxB,WAAW,EAAE,0BAA0B;YACvC,eAAe,EAAE,CAAC;YAClB,cAAc,EAAE,EAAE;YAClB,SAAS,EAAE,0BAA0B;YACrC,SAAS,EAAE,0BAA0B;SACxC;KACJ,CAAC;;8CACU"}
|
|
@@ -12,22 +12,31 @@ export class LoginResponseDto {
|
|
|
12
12
|
}
|
|
13
13
|
__decorate([
|
|
14
14
|
ApiProperty({
|
|
15
|
-
description: '
|
|
15
|
+
description: 'JWT authentication token for accessing protected endpoints',
|
|
16
16
|
example: 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiaWF0IjoxNTE2MjM5MDIyfQ.SflKxwRJSMeKKF2QT4fwpMeJf36POk6yJV_adQssw5c'
|
|
17
17
|
}),
|
|
18
18
|
__metadata("design:type", String)
|
|
19
19
|
], LoginResponseDto.prototype, "accessToken", void 0);
|
|
20
20
|
__decorate([
|
|
21
21
|
ApiProperty({
|
|
22
|
-
description: '
|
|
22
|
+
description: 'Comprehensive user information including profile, roles, and organization details',
|
|
23
23
|
example: {
|
|
24
|
-
id:
|
|
25
|
-
|
|
26
|
-
name: '
|
|
24
|
+
id: 123,
|
|
25
|
+
appId: 'Pasha',
|
|
26
|
+
name: 'John Doe',
|
|
27
|
+
email: 'john.doe@example.com',
|
|
27
28
|
phoneNumber: '+1234567890',
|
|
28
|
-
roles: ['
|
|
29
|
-
|
|
30
|
-
|
|
29
|
+
roles: ['Organization:Admin', 'Control-Centre:Admin'],
|
|
30
|
+
avatar: 'https://storage.googleapis.com/avatars/john-doe.jpg',
|
|
31
|
+
designation: 'Emergency Manager',
|
|
32
|
+
status: 'active',
|
|
33
|
+
isTermsAccepted: true,
|
|
34
|
+
isIdentityVerified: true,
|
|
35
|
+
lastLoginAt: '2025-10-01T10:30:00.000Z',
|
|
36
|
+
controlCentreId: 5,
|
|
37
|
+
organizationId: 42,
|
|
38
|
+
createdAt: '2024-01-15T08:00:00.000Z',
|
|
39
|
+
updatedAt: '2025-10-01T10:30:00.000Z'
|
|
31
40
|
}
|
|
32
41
|
}),
|
|
33
42
|
__metadata("design:type", Object)
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"login-response.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/login-response.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,MAAM,OAAO,gBAAgB;
|
|
1
|
+
{"version":3,"file":"login-response.dto.js","sourceRoot":"","sources":["../../../../../src/modules/auth/dtos/login-response.dto.ts"],"names":[],"mappings":";;;;;;;;;AAAA,OAAO,EAAE,WAAW,EAAE,MAAM,iBAAiB,CAAC;AAG9C,MAAM,OAAO,gBAAgB;CA6B5B;AAxBG;IAJC,WAAW,CAAC;QACT,WAAW,EAAE,4DAA4D;QACzE,OAAO,EAAE,6JAA6J;KACzK,CAAC;;qDACmB;AAuBrB;IArBC,WAAW,CAAC;QACT,WAAW,EAAE,mFAAmF;QAChG,OAAO,EAAE;YACL,EAAE,EAAE,GAAG;YACP,KAAK,EAAE,OAAO;YACd,IAAI,EAAE,UAAU;YAChB,KAAK,EAAE,sBAAsB;YAC7B,WAAW,EAAE,aAAa;YAC1B,KAAK,EAAE,CAAC,oBAAoB,EAAE,sBAAsB,CAAC;YACrD,MAAM,EAAE,qDAAqD;YAC7D,WAAW,EAAE,mBAAmB;YAChC,MAAM,EAAE,QAAQ;YAChB,eAAe,EAAE,IAAI;YACrB,kBAAkB,EAAE,IAAI;YACxB,WAAW,EAAE,0BAA0B;YACvC,eAAe,EAAE,CAAC;YAClB,cAAc,EAAE,EAAE;YAClB,SAAS,EAAE,0BAA0B;YACrC,SAAS,EAAE,0BAA0B;SACxC;KACJ,CAAC;;8CACU"}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { IncidentAppId } from "../../incident";
|
|
2
2
|
import { Roles } from "../../role";
|
|
3
|
+
import { UserStatus } from "../enums/user-status.enum";
|
|
3
4
|
import { Guardian } from "./guardian";
|
|
4
5
|
import { GuardianRelation } from "./guardian-relation";
|
|
5
6
|
export interface User {
|
|
@@ -12,7 +13,7 @@ export interface User {
|
|
|
12
13
|
password?: string;
|
|
13
14
|
avatar?: string;
|
|
14
15
|
designation?: string;
|
|
15
|
-
status?:
|
|
16
|
+
status?: UserStatus;
|
|
16
17
|
guardians?: Guardian[];
|
|
17
18
|
dependentRelations?: GuardianRelation[];
|
|
18
19
|
guardianRelations?: GuardianRelation[];
|