emilsoftware-utilities 1.3.101 → 1.3.102
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/accessi-module/Controllers/AccessiController.js +10 -10
- package/dist/accessi-module/Controllers/AuthController.d.ts +2 -4
- package/dist/accessi-module/Controllers/AuthController.js +7 -6
- package/dist/accessi-module/Controllers/EmailController.js +2 -2
- package/dist/accessi-module/Controllers/PermissionController.js +8 -8
- package/dist/accessi-module/Controllers/UserController.js +6 -6
- package/package.json +1 -1
|
@@ -240,7 +240,7 @@ __decorate([
|
|
|
240
240
|
__metadata("design:returntype", Promise)
|
|
241
241
|
], AccessiController.prototype, "resetPassword", null);
|
|
242
242
|
__decorate([
|
|
243
|
-
(0, swagger_1.ApiOperation)({ summary: 'Recupera le informazioni utente dal token JWT' }),
|
|
243
|
+
(0, swagger_1.ApiOperation)({ summary: 'Recupera le informazioni utente dal token JWT', operationId: "getUserByToken" }),
|
|
244
244
|
(0, common_1.Post)('get-user-by-token'),
|
|
245
245
|
__param(0, (0, common_1.Body)('token')),
|
|
246
246
|
__param(1, (0, common_1.Res)()),
|
|
@@ -249,7 +249,7 @@ __decorate([
|
|
|
249
249
|
__metadata("design:returntype", Promise)
|
|
250
250
|
], AccessiController.prototype, "getUserByToken", null);
|
|
251
251
|
__decorate([
|
|
252
|
-
(0, swagger_1.ApiOperation)({ summary: 'Effettua il login' }),
|
|
252
|
+
(0, swagger_1.ApiOperation)({ summary: 'Effettua il login', operationId: "login" }),
|
|
253
253
|
(0, common_1.Post)('login'),
|
|
254
254
|
__param(0, (0, common_1.Body)()),
|
|
255
255
|
__param(1, (0, common_1.Res)()),
|
|
@@ -258,7 +258,7 @@ __decorate([
|
|
|
258
258
|
__metadata("design:returntype", Promise)
|
|
259
259
|
], AccessiController.prototype, "login", null);
|
|
260
260
|
__decorate([
|
|
261
|
-
(0, swagger_1.ApiOperation)({ summary: 'Recupera la lista degli utenti' }),
|
|
261
|
+
(0, swagger_1.ApiOperation)({ summary: 'Recupera la lista degli utenti', operationId: "getUsers" }),
|
|
262
262
|
(0, common_1.Post)('get-users'),
|
|
263
263
|
__param(0, (0, common_1.Res)()),
|
|
264
264
|
__metadata("design:type", Function),
|
|
@@ -266,7 +266,7 @@ __decorate([
|
|
|
266
266
|
__metadata("design:returntype", Promise)
|
|
267
267
|
], AccessiController.prototype, "getUsers", null);
|
|
268
268
|
__decorate([
|
|
269
|
-
(0, swagger_1.ApiOperation)({ summary: 'Elimina un utente' }),
|
|
269
|
+
(0, swagger_1.ApiOperation)({ summary: 'Elimina un utente', operationId: "deleteUser" }),
|
|
270
270
|
(0, common_1.Post)('delete-user'),
|
|
271
271
|
__param(0, (0, common_1.Body)('codiceUtente')),
|
|
272
272
|
__param(1, (0, common_1.Res)()),
|
|
@@ -275,7 +275,7 @@ __decorate([
|
|
|
275
275
|
__metadata("design:returntype", Promise)
|
|
276
276
|
], AccessiController.prototype, "deleteUser", null);
|
|
277
277
|
__decorate([
|
|
278
|
-
(0, swagger_1.ApiOperation)({ summary: 'Registra un nuovo utente' }),
|
|
278
|
+
(0, swagger_1.ApiOperation)({ summary: 'Registra un nuovo utente', operationId: "register" }),
|
|
279
279
|
(0, common_1.Post)('register'),
|
|
280
280
|
__param(0, (0, common_1.Req)()),
|
|
281
281
|
__param(1, (0, common_1.Body)()),
|
|
@@ -285,7 +285,7 @@ __decorate([
|
|
|
285
285
|
__metadata("design:returntype", Promise)
|
|
286
286
|
], AccessiController.prototype, "register", null);
|
|
287
287
|
__decorate([
|
|
288
|
-
(0, swagger_1.ApiOperation)({ summary: 'Crittografa i dati' }),
|
|
288
|
+
(0, swagger_1.ApiOperation)({ summary: 'Crittografa i dati', operationId: "encrypt" }),
|
|
289
289
|
(0, common_1.Post)('encrypt'),
|
|
290
290
|
__param(0, (0, common_1.Body)('data')),
|
|
291
291
|
__param(1, (0, common_1.Res)()),
|
|
@@ -294,7 +294,7 @@ __decorate([
|
|
|
294
294
|
__metadata("design:returntype", Promise)
|
|
295
295
|
], AccessiController.prototype, "encrypt", null);
|
|
296
296
|
__decorate([
|
|
297
|
-
(0, swagger_1.ApiOperation)({ summary: 'Decrittografa i dati' }),
|
|
297
|
+
(0, swagger_1.ApiOperation)({ summary: 'Decrittografa i dati', operationId: "decrypt" }),
|
|
298
298
|
(0, common_1.Post)('decrypt'),
|
|
299
299
|
__param(0, (0, common_1.Body)('data')),
|
|
300
300
|
__param(1, (0, common_1.Res)()),
|
|
@@ -303,7 +303,7 @@ __decorate([
|
|
|
303
303
|
__metadata("design:returntype", Promise)
|
|
304
304
|
], AccessiController.prototype, "decrypt", null);
|
|
305
305
|
__decorate([
|
|
306
|
-
(0, swagger_1.ApiOperation)({ summary: 'Resetta le abilitazioni di un utente' }),
|
|
306
|
+
(0, swagger_1.ApiOperation)({ summary: 'Resetta le abilitazioni di un utente', operationId: "resetAbilitazioni" }),
|
|
307
307
|
(0, common_1.Post)('reset-abilitazioni'),
|
|
308
308
|
__param(0, (0, common_1.Body)('codiceUtente')),
|
|
309
309
|
__param(1, (0, common_1.Res)()),
|
|
@@ -312,7 +312,7 @@ __decorate([
|
|
|
312
312
|
__metadata("design:returntype", Promise)
|
|
313
313
|
], AccessiController.prototype, "resetAbilitazioni", null);
|
|
314
314
|
__decorate([
|
|
315
|
-
(0, swagger_1.ApiOperation)({ summary: 'Imposta una nuova password' }),
|
|
315
|
+
(0, swagger_1.ApiOperation)({ summary: 'Imposta una nuova password', operationId: "setPassword" }),
|
|
316
316
|
(0, common_1.Post)('set-password'),
|
|
317
317
|
__param(0, (0, common_1.Body)()),
|
|
318
318
|
__param(1, (0, common_1.Res)()),
|
|
@@ -321,7 +321,7 @@ __decorate([
|
|
|
321
321
|
__metadata("design:returntype", Promise)
|
|
322
322
|
], AccessiController.prototype, "setPassword", null);
|
|
323
323
|
__decorate([
|
|
324
|
-
(0, swagger_1.ApiOperation)({ summary: 'Imposta il consenso GDPR' }),
|
|
324
|
+
(0, swagger_1.ApiOperation)({ summary: 'Imposta il consenso GDPR', operationId: "setGdpr" }),
|
|
325
325
|
(0, common_1.Post)('set-gdpr'),
|
|
326
326
|
__param(0, (0, common_1.Body)('codiceUtente')),
|
|
327
327
|
__param(1, (0, common_1.Res)()),
|
|
@@ -1,14 +1,12 @@
|
|
|
1
1
|
import { Response } from 'express';
|
|
2
2
|
import { AccessiOptions } from '../AccessiModule';
|
|
3
3
|
import { AuthService } from '../Services/AuthService/AuthService';
|
|
4
|
+
import { LoginRequest } from '../Dtos';
|
|
4
5
|
export declare class AuthController {
|
|
5
6
|
private readonly authService;
|
|
6
7
|
private readonly options;
|
|
7
8
|
constructor(authService: AuthService, options: AccessiOptions);
|
|
8
9
|
resetPassword(res: Response, token: string, newPassword: string): Promise<Response<any, Record<string, any>>>;
|
|
9
10
|
getUserByToken(token: string, res: Response): Promise<Response<any, Record<string, any>>>;
|
|
10
|
-
login(
|
|
11
|
-
email: string;
|
|
12
|
-
password: string;
|
|
13
|
-
}, res: Response): Promise<Response<any, Record<string, any>>>;
|
|
11
|
+
login(loginRequest: LoginRequest, res: Response): Promise<Response<any, Record<string, any>>>;
|
|
14
12
|
}
|
|
@@ -61,6 +61,7 @@ const swagger_1 = require("@nestjs/swagger");
|
|
|
61
61
|
const jwt = __importStar(require("jsonwebtoken"));
|
|
62
62
|
const Utilities_1 = require("../../Utilities");
|
|
63
63
|
const AuthService_1 = require("../Services/AuthService/AuthService");
|
|
64
|
+
const Dtos_1 = require("../Dtos");
|
|
64
65
|
let AuthController = AuthController_1 = class AuthController {
|
|
65
66
|
constructor(authService, options) {
|
|
66
67
|
this.authService = authService;
|
|
@@ -92,10 +93,10 @@ let AuthController = AuthController_1 = class AuthController {
|
|
|
92
93
|
}
|
|
93
94
|
});
|
|
94
95
|
}
|
|
95
|
-
login(
|
|
96
|
+
login(loginRequest, res) {
|
|
96
97
|
return __awaiter(this, void 0, void 0, function* () {
|
|
97
98
|
try {
|
|
98
|
-
const userData = yield this.authService.login(
|
|
99
|
+
const userData = yield this.authService.login(loginRequest);
|
|
99
100
|
if (!userData)
|
|
100
101
|
return Utilities_1.RestUtilities.sendInvalidCredentials(res);
|
|
101
102
|
userData.token = {
|
|
@@ -113,7 +114,7 @@ let AuthController = AuthController_1 = class AuthController {
|
|
|
113
114
|
};
|
|
114
115
|
exports.AuthController = AuthController;
|
|
115
116
|
__decorate([
|
|
116
|
-
(0, swagger_1.ApiOperation)({ summary: 'Conferma il reset della password' }),
|
|
117
|
+
(0, swagger_1.ApiOperation)({ summary: 'Conferma il reset della password', operationId: "resetPassword" }),
|
|
117
118
|
(0, swagger_1.ApiParam)({ name: 'token', description: 'Token per il reset della password', required: true }),
|
|
118
119
|
(0, swagger_1.ApiBody)({ schema: { properties: { newPassword: { type: 'string', description: 'Nuova password da impostare' } } } }),
|
|
119
120
|
(0, swagger_1.ApiResponse)({ status: 200, description: 'Password aggiornata con successo' }),
|
|
@@ -127,7 +128,7 @@ __decorate([
|
|
|
127
128
|
__metadata("design:returntype", Promise)
|
|
128
129
|
], AuthController.prototype, "resetPassword", null);
|
|
129
130
|
__decorate([
|
|
130
|
-
(0, swagger_1.ApiOperation)({ summary: 'Recupera le informazioni utente dal token JWT' }),
|
|
131
|
+
(0, swagger_1.ApiOperation)({ summary: 'Recupera le informazioni utente dal token JWT', operationId: "getUserByToken" }),
|
|
131
132
|
(0, swagger_1.ApiBody)({ schema: { properties: { token: { type: 'string', description: 'JWT dell\'utente' } } } }),
|
|
132
133
|
(0, swagger_1.ApiResponse)({ status: 200, description: 'Informazioni utente recuperate con successo' }),
|
|
133
134
|
(0, swagger_1.ApiResponse)({ status: 401, description: 'Token non valido o scaduto' }),
|
|
@@ -139,7 +140,7 @@ __decorate([
|
|
|
139
140
|
__metadata("design:returntype", Promise)
|
|
140
141
|
], AuthController.prototype, "getUserByToken", null);
|
|
141
142
|
__decorate([
|
|
142
|
-
(0, swagger_1.ApiOperation)({ summary: 'Effettua il login' }),
|
|
143
|
+
(0, swagger_1.ApiOperation)({ summary: 'Effettua il login', operationId: "login" }),
|
|
143
144
|
(0, swagger_1.ApiBody)({
|
|
144
145
|
schema: {
|
|
145
146
|
properties: {
|
|
@@ -154,7 +155,7 @@ __decorate([
|
|
|
154
155
|
__param(0, (0, common_1.Body)()),
|
|
155
156
|
__param(1, (0, common_1.Res)()),
|
|
156
157
|
__metadata("design:type", Function),
|
|
157
|
-
__metadata("design:paramtypes", [
|
|
158
|
+
__metadata("design:paramtypes", [Dtos_1.LoginRequest, Object]),
|
|
158
159
|
__metadata("design:returntype", Promise)
|
|
159
160
|
], AuthController.prototype, "login", null);
|
|
160
161
|
exports.AuthController = AuthController = AuthController_1 = __decorate([
|
|
@@ -58,7 +58,7 @@ let EmailController = class EmailController {
|
|
|
58
58
|
};
|
|
59
59
|
exports.EmailController = EmailController;
|
|
60
60
|
__decorate([
|
|
61
|
-
(0, swagger_1.ApiOperation)({ summary: 'Serve una pagina per il reset della password' }),
|
|
61
|
+
(0, swagger_1.ApiOperation)({ summary: 'Serve una pagina per il reset della password', operationId: "serveResetPasswordPage" }),
|
|
62
62
|
(0, swagger_1.ApiParam)({ name: 'token', description: 'Token per il reset della password', required: true }),
|
|
63
63
|
(0, swagger_1.ApiResponse)({ status: 200, description: 'Pagina di reset password servita con successo' }),
|
|
64
64
|
(0, common_1.Get)('reset-password-page/:token'),
|
|
@@ -69,7 +69,7 @@ __decorate([
|
|
|
69
69
|
__metadata("design:returntype", Promise)
|
|
70
70
|
], EmailController.prototype, "serveResetPasswordPage", null);
|
|
71
71
|
__decorate([
|
|
72
|
-
(0, swagger_1.ApiOperation)({ summary: 'Invia una e-mail per il reset della password' }),
|
|
72
|
+
(0, swagger_1.ApiOperation)({ summary: 'Invia una e-mail per il reset della password', operationId: "sendPasswordResetEmail" }),
|
|
73
73
|
(0, swagger_1.ApiBody)({ schema: { properties: { email: { type: 'string', description: "L'email dell'utente che richiede il reset" } } } }),
|
|
74
74
|
(0, swagger_1.ApiResponse)({ status: 200, description: "L'email di reset è stata inviata con successo" }),
|
|
75
75
|
(0, swagger_1.ApiResponse)({ status: 400, description: "Errore nella richiesta: protocollo o host non impostati" }),
|
|
@@ -36,7 +36,7 @@ let PermissionController = PermissionController_1 = class PermissionController {
|
|
|
36
36
|
this.options = options;
|
|
37
37
|
}
|
|
38
38
|
/*
|
|
39
|
-
@ApiOperation({ summary: 'Resetta le abilitazioni di un utente' })
|
|
39
|
+
@ApiOperation({ summary: 'Resetta le abilitazioni di un utente', operationId: "resetAbilitazioni" })
|
|
40
40
|
@Post('reset-abilitazioni')
|
|
41
41
|
async resetAbilitazioni(@Body('codiceUtente') codiceUtente: string, @Res() res: Response) {
|
|
42
42
|
try {
|
|
@@ -157,7 +157,7 @@ let PermissionController = PermissionController_1 = class PermissionController {
|
|
|
157
157
|
};
|
|
158
158
|
exports.PermissionController = PermissionController;
|
|
159
159
|
__decorate([
|
|
160
|
-
(0, swagger_1.ApiOperation)({ summary: 'Ritorna i ruoli disponibili con i relativi menù', description: 'Recupera tutti i ruoli presenti nel sistema con le relative voci di menu accessibili.' }),
|
|
160
|
+
(0, swagger_1.ApiOperation)({ summary: 'Ritorna i ruoli disponibili con i relativi menù', operationId: "getRoles", description: 'Recupera tutti i ruoli presenti nel sistema con le relative voci di menu accessibili.' }),
|
|
161
161
|
(0, swagger_1.ApiOkResponse)({ description: 'Elenco dei ruoli con i rispettivi menù', type: [Role_1.Role] }),
|
|
162
162
|
(0, swagger_1.ApiInternalServerErrorResponse)({ description: 'Errore interno del server' }),
|
|
163
163
|
(0, swagger_1.ApiResponse)({ status: common_1.HttpStatus.OK, description: 'Lista dei ruoli con i menù restituita con successo.' }),
|
|
@@ -169,7 +169,7 @@ __decorate([
|
|
|
169
169
|
__metadata("design:returntype", Promise)
|
|
170
170
|
], PermissionController.prototype, "getRoles", null);
|
|
171
171
|
__decorate([
|
|
172
|
-
(0, swagger_1.ApiOperation)({ summary: 'Aggiorna un ruolo esistente' }),
|
|
172
|
+
(0, swagger_1.ApiOperation)({ summary: 'Aggiorna un ruolo esistente', operationId: "updateRole" }),
|
|
173
173
|
(0, swagger_1.ApiParam)({
|
|
174
174
|
name: 'codiceRuolo',
|
|
175
175
|
description: "Codice identificativo del ruolo da aggiornare",
|
|
@@ -192,7 +192,7 @@ __decorate([
|
|
|
192
192
|
__metadata("design:returntype", Promise)
|
|
193
193
|
], PermissionController.prototype, "updateRole", null);
|
|
194
194
|
__decorate([
|
|
195
|
-
(0, swagger_1.ApiOperation)({ summary: 'Crea un nuovo ruolo' }),
|
|
195
|
+
(0, swagger_1.ApiOperation)({ summary: 'Crea un nuovo ruolo', operationId: "createRole" }),
|
|
196
196
|
(0, swagger_1.ApiResponse)({ status: 201, description: 'Il ruolo è stato creato con successo' }),
|
|
197
197
|
(0, swagger_1.ApiResponse)({ status: 400, description: 'Errore di validazione nei dati inviati' }),
|
|
198
198
|
(0, swagger_1.ApiResponse)({ status: 500, description: 'Errore interno del server' }),
|
|
@@ -209,7 +209,7 @@ __decorate([
|
|
|
209
209
|
__metadata("design:returntype", Promise)
|
|
210
210
|
], PermissionController.prototype, "createRole", null);
|
|
211
211
|
__decorate([
|
|
212
|
-
(0, swagger_1.ApiOperation)({ summary: 'Assegna più ruoli a un utente' }),
|
|
212
|
+
(0, swagger_1.ApiOperation)({ summary: 'Assegna più ruoli a un utente', operationId: "assignRolesToUser" }),
|
|
213
213
|
(0, swagger_1.ApiParam)({
|
|
214
214
|
name: 'codiceUtente',
|
|
215
215
|
description: 'Codice identificativo dell\'utente a cui assegnare i ruoli',
|
|
@@ -232,7 +232,7 @@ __decorate([
|
|
|
232
232
|
__metadata("design:returntype", Promise)
|
|
233
233
|
], PermissionController.prototype, "assignRolesToUser", null);
|
|
234
234
|
__decorate([
|
|
235
|
-
(0, swagger_1.ApiOperation)({ summary: 'Assegna abilitazioni dirette a un utente' }),
|
|
235
|
+
(0, swagger_1.ApiOperation)({ summary: 'Assegna abilitazioni dirette a un utente', operationId: "assignPermissionsToUser" }),
|
|
236
236
|
(0, swagger_1.ApiParam)({
|
|
237
237
|
name: 'codiceUtente',
|
|
238
238
|
description: 'Codice identificativo dell\'utente a cui assegnare le abilitazioni',
|
|
@@ -255,7 +255,7 @@ __decorate([
|
|
|
255
255
|
__metadata("design:returntype", Promise)
|
|
256
256
|
], PermissionController.prototype, "assignPermissionsToUser", null);
|
|
257
257
|
__decorate([
|
|
258
|
-
(0, swagger_1.ApiOperation)({ summary: 'Elimina un ruolo esistente' }),
|
|
258
|
+
(0, swagger_1.ApiOperation)({ summary: 'Elimina un ruolo esistente', operationId: "deleteRole" }),
|
|
259
259
|
(0, swagger_1.ApiParam)({
|
|
260
260
|
name: 'codiceRuolo',
|
|
261
261
|
description: "Codice identificativo del ruolo da eliminare",
|
|
@@ -273,7 +273,7 @@ __decorate([
|
|
|
273
273
|
__metadata("design:returntype", Promise)
|
|
274
274
|
], PermissionController.prototype, "deleteRole", null);
|
|
275
275
|
__decorate([
|
|
276
|
-
(0, swagger_1.ApiOperation)({ summary: 'Recupera tutti i menù disponibili' }),
|
|
276
|
+
(0, swagger_1.ApiOperation)({ summary: 'Recupera tutti i menù disponibili', operationId: "getMenus" }),
|
|
277
277
|
(0, swagger_1.ApiResponse)({ status: 200, description: "Lista dei menù recuperata con successo" }),
|
|
278
278
|
(0, swagger_1.ApiResponse)({ status: 500, description: "Errore interno del server" }),
|
|
279
279
|
(0, common_1.Get)('menus'),
|
|
@@ -113,7 +113,7 @@ let UserController = UserController_1 = class UserController {
|
|
|
113
113
|
};
|
|
114
114
|
exports.UserController = UserController;
|
|
115
115
|
__decorate([
|
|
116
|
-
(0, swagger_1.ApiOperation)({ summary: 'Servire la pagina di reset password' }),
|
|
116
|
+
(0, swagger_1.ApiOperation)({ summary: 'Servire la pagina di reset password', operationId: "serveResetPasswordPage" }),
|
|
117
117
|
(0, swagger_1.ApiParam)({ name: 'token', description: 'Token per il reset della password', required: true }),
|
|
118
118
|
(0, common_1.Get)('reset-password/:token'),
|
|
119
119
|
__param(0, (0, common_1.Res)()),
|
|
@@ -123,7 +123,7 @@ __decorate([
|
|
|
123
123
|
__metadata("design:returntype", Promise)
|
|
124
124
|
], UserController.prototype, "serveResetPasswordPage", null);
|
|
125
125
|
__decorate([
|
|
126
|
-
(0, swagger_1.ApiOperation)({ summary: 'Recupera la lista degli utenti' }),
|
|
126
|
+
(0, swagger_1.ApiOperation)({ summary: 'Recupera la lista degli utenti', operationId: "getUsers" }),
|
|
127
127
|
(0, swagger_1.ApiResponse)({ status: 200, description: 'Lista utenti recuperata con successo', type: [GetUsersResponse_1.GetUsersResponse] }),
|
|
128
128
|
(0, swagger_1.ApiResponse)({ status: 401, description: 'Credenziali non valide' }),
|
|
129
129
|
(0, common_1.Get)('get-users'),
|
|
@@ -133,7 +133,7 @@ __decorate([
|
|
|
133
133
|
__metadata("design:returntype", Promise)
|
|
134
134
|
], UserController.prototype, "getUsers", null);
|
|
135
135
|
__decorate([
|
|
136
|
-
(0, swagger_1.ApiOperation)({ summary: 'Elimina un utente' }),
|
|
136
|
+
(0, swagger_1.ApiOperation)({ summary: 'Elimina un utente', operationId: "deleteUser" }),
|
|
137
137
|
(0, swagger_1.ApiParam)({
|
|
138
138
|
name: 'codiceUtente',
|
|
139
139
|
description: "Codice identificativo dell'utente da eliminare",
|
|
@@ -151,7 +151,7 @@ __decorate([
|
|
|
151
151
|
__metadata("design:returntype", Promise)
|
|
152
152
|
], UserController.prototype, "deleteUser", null);
|
|
153
153
|
__decorate([
|
|
154
|
-
(0, swagger_1.ApiOperation)({ summary: 'Registra un nuovo utente' }),
|
|
154
|
+
(0, swagger_1.ApiOperation)({ summary: 'Registra un nuovo utente', operationId: "register" }),
|
|
155
155
|
(0, swagger_1.ApiBody)({ type: Dtos_1.User, description: 'Dati dell\'utente da registrare' }),
|
|
156
156
|
(0, swagger_1.ApiResponse)({ status: 201, description: 'Utente registrato con successo' }),
|
|
157
157
|
(0, swagger_1.ApiResponse)({ status: 400, description: 'Errore nella registrazione' }),
|
|
@@ -164,7 +164,7 @@ __decorate([
|
|
|
164
164
|
__metadata("design:returntype", Promise)
|
|
165
165
|
], UserController.prototype, "register", null);
|
|
166
166
|
__decorate([
|
|
167
|
-
(0, swagger_1.ApiOperation)({ summary: 'Aggiorna un utente esistente' }),
|
|
167
|
+
(0, swagger_1.ApiOperation)({ summary: 'Aggiorna un utente esistente', operationId: "updateUtente" }),
|
|
168
168
|
(0, swagger_1.ApiParam)({
|
|
169
169
|
name: 'codiceUtente',
|
|
170
170
|
description: "Codice identificativo dell'utente da aggiornare",
|
|
@@ -186,7 +186,7 @@ __decorate([
|
|
|
186
186
|
__metadata("design:returntype", Promise)
|
|
187
187
|
], UserController.prototype, "updateUtente", null);
|
|
188
188
|
__decorate([
|
|
189
|
-
(0, swagger_1.ApiOperation)({ summary: "Imposta il consenso GDPR per un utente" }),
|
|
189
|
+
(0, swagger_1.ApiOperation)({ summary: "Imposta il consenso GDPR per un utente", operationId: "setGdpr" }),
|
|
190
190
|
(0, swagger_1.ApiParam)({
|
|
191
191
|
name: "codiceUtente",
|
|
192
192
|
description: "Codice identificativo dell'utente che accetta il GDPR",
|