@serene-dev/la-nest-library 0.0.28 → 0.0.29
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/libs/la-library/src/modules/authentication/authentication.controller.d.ts +12 -12
- package/dist/libs/la-library/src/modules/authentication/authentication.controller.js +18 -12
- package/dist/libs/la-library/src/modules/authentication/authentication.controller.js.map +1 -1
- package/package.json +1 -1
|
@@ -3,20 +3,20 @@ import { LoginDTO, LogoutDTO, RegisterDTO, SystemLogoutDTO } from './authenticat
|
|
|
3
3
|
export declare class AuthenticationController {
|
|
4
4
|
protected readonly service: AuthenticationService;
|
|
5
5
|
constructor(service: AuthenticationService);
|
|
6
|
-
logout(body: LogoutDTO): {
|
|
7
|
-
data:
|
|
6
|
+
logout(body: LogoutDTO): Promise<{
|
|
7
|
+
data: boolean;
|
|
8
8
|
message: string;
|
|
9
|
-
}
|
|
10
|
-
systemLogout(body: SystemLogoutDTO): {
|
|
11
|
-
data:
|
|
9
|
+
}>;
|
|
10
|
+
systemLogout(body: SystemLogoutDTO): Promise<{
|
|
11
|
+
data: boolean;
|
|
12
12
|
message: string;
|
|
13
|
-
}
|
|
14
|
-
login(body: LoginDTO): {
|
|
15
|
-
data:
|
|
13
|
+
}>;
|
|
14
|
+
login(body: LoginDTO): Promise<{
|
|
15
|
+
data: import("./authentication.entity").AuthEntity;
|
|
16
16
|
message: string;
|
|
17
|
-
}
|
|
18
|
-
register(body: RegisterDTO): {
|
|
19
|
-
data:
|
|
17
|
+
}>;
|
|
18
|
+
register(body: RegisterDTO): Promise<{
|
|
19
|
+
data: import("./authentication.entity").AuthEntity;
|
|
20
20
|
message: string;
|
|
21
|
-
}
|
|
21
|
+
}>;
|
|
22
22
|
}
|
|
@@ -23,17 +23,23 @@ let AuthenticationController = class AuthenticationController {
|
|
|
23
23
|
constructor(service) {
|
|
24
24
|
this.service = service;
|
|
25
25
|
}
|
|
26
|
-
logout(body) {
|
|
27
|
-
return utility_service_1.UtilityClass.handleSuccess({
|
|
26
|
+
async logout(body) {
|
|
27
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
28
|
+
data: await this.service.logout(body),
|
|
29
|
+
});
|
|
28
30
|
}
|
|
29
|
-
systemLogout(body) {
|
|
30
|
-
return utility_service_1.UtilityClass.handleSuccess({
|
|
31
|
+
async systemLogout(body) {
|
|
32
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
33
|
+
data: await this.service.forceLogout(body),
|
|
34
|
+
});
|
|
31
35
|
}
|
|
32
|
-
login(body) {
|
|
33
|
-
return utility_service_1.UtilityClass.handleSuccess({ data: this.service.login(body) });
|
|
36
|
+
async login(body) {
|
|
37
|
+
return utility_service_1.UtilityClass.handleSuccess({ data: await this.service.login(body) });
|
|
34
38
|
}
|
|
35
|
-
register(body) {
|
|
36
|
-
return utility_service_1.UtilityClass.handleSuccess({
|
|
39
|
+
async register(body) {
|
|
40
|
+
return utility_service_1.UtilityClass.handleSuccess({
|
|
41
|
+
data: await this.service.register(body),
|
|
42
|
+
});
|
|
37
43
|
}
|
|
38
44
|
};
|
|
39
45
|
exports.AuthenticationController = AuthenticationController;
|
|
@@ -43,7 +49,7 @@ __decorate([
|
|
|
43
49
|
__param(0, (0, common_1.Body)()),
|
|
44
50
|
__metadata("design:type", Function),
|
|
45
51
|
__metadata("design:paramtypes", [authentication_dto_1.LogoutDTO]),
|
|
46
|
-
__metadata("design:returntype",
|
|
52
|
+
__metadata("design:returntype", Promise)
|
|
47
53
|
], AuthenticationController.prototype, "logout", null);
|
|
48
54
|
__decorate([
|
|
49
55
|
(0, common_1.Post)('logout/force'),
|
|
@@ -52,7 +58,7 @@ __decorate([
|
|
|
52
58
|
__param(0, (0, common_1.Body)()),
|
|
53
59
|
__metadata("design:type", Function),
|
|
54
60
|
__metadata("design:paramtypes", [authentication_dto_1.SystemLogoutDTO]),
|
|
55
|
-
__metadata("design:returntype",
|
|
61
|
+
__metadata("design:returntype", Promise)
|
|
56
62
|
], AuthenticationController.prototype, "systemLogout", null);
|
|
57
63
|
__decorate([
|
|
58
64
|
(0, common_1.Post)('login'),
|
|
@@ -60,7 +66,7 @@ __decorate([
|
|
|
60
66
|
__param(0, (0, common_1.Body)()),
|
|
61
67
|
__metadata("design:type", Function),
|
|
62
68
|
__metadata("design:paramtypes", [authentication_dto_1.LoginDTO]),
|
|
63
|
-
__metadata("design:returntype",
|
|
69
|
+
__metadata("design:returntype", Promise)
|
|
64
70
|
], AuthenticationController.prototype, "login", null);
|
|
65
71
|
__decorate([
|
|
66
72
|
(0, common_1.Post)('register'),
|
|
@@ -68,7 +74,7 @@ __decorate([
|
|
|
68
74
|
__param(0, (0, common_1.Body)()),
|
|
69
75
|
__metadata("design:type", Function),
|
|
70
76
|
__metadata("design:paramtypes", [authentication_dto_1.RegisterDTO]),
|
|
71
|
-
__metadata("design:returntype",
|
|
77
|
+
__metadata("design:returntype", Promise)
|
|
72
78
|
], AuthenticationController.prototype, "register", null);
|
|
73
79
|
exports.AuthenticationController = AuthenticationController = __decorate([
|
|
74
80
|
(0, swagger_1.ApiTags)(authentication_service_1.AuthenticationService.tag),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authentication.controller.js","sourceRoot":"","sources":["../../../../../../libs/la-library/src/modules/authentication/authentication.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAmE;AACnE,qEAAiE;AACjE,6DAK8B;AAC9B,6CAAyD;AACzD,iEAAyE;AACzE,oEAA8D;AAIvD,IAAM,wBAAwB,GAA9B,MAAM,wBAAwB;IACnC,YAA+B,OAA8B;QAA9B,YAAO,GAAP,OAAO,CAAuB;IAAG,CAAC;
|
|
1
|
+
{"version":3,"file":"authentication.controller.js","sourceRoot":"","sources":["../../../../../../libs/la-library/src/modules/authentication/authentication.controller.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;AAAA,2CAAmE;AACnE,qEAAiE;AACjE,6DAK8B;AAC9B,6CAAyD;AACzD,iEAAyE;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