emilsoftware-utilities 1.6.1-dev.4 → 1.6.1-dev.6
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/ContractGenerator.js +1 -0
- package/dist/ContractGenerator.js.map +1 -0
- package/dist/DatabaseUpdater.js +1 -0
- package/dist/DatabaseUpdater.js.map +1 -0
- package/dist/EmilsoftwareModule.js +1 -0
- package/dist/EmilsoftwareModule.js.map +1 -0
- package/dist/ExecutionTimeLogger.js +1 -0
- package/dist/ExecutionTimeLogger.js.map +1 -0
- package/dist/Logger.js +1 -0
- package/dist/Logger.js.map +1 -0
- package/dist/Orm.js +1 -0
- package/dist/Orm.js.map +1 -0
- package/dist/RoutesLoggerMiddleware.js +1 -0
- package/dist/RoutesLoggerMiddleware.js.map +1 -0
- package/dist/Utilities.js +1 -0
- package/dist/Utilities.js.map +1 -0
- package/dist/accessi-module/AccessiModule.js +1 -0
- package/dist/accessi-module/AccessiModule.js.map +1 -0
- package/dist/accessi-module/Controllers/AuthController.js +1 -0
- package/dist/accessi-module/Controllers/AuthController.js.map +1 -0
- package/dist/accessi-module/Controllers/ConfiguratorController.js +1 -0
- package/dist/accessi-module/Controllers/ConfiguratorController.js.map +1 -0
- package/dist/accessi-module/Controllers/EmailController.js +1 -0
- package/dist/accessi-module/Controllers/EmailController.js.map +1 -0
- package/dist/accessi-module/Controllers/FiltriController.js +1 -0
- package/dist/accessi-module/Controllers/FiltriController.js.map +1 -0
- package/dist/accessi-module/Controllers/PermissionController.d.ts +1 -1
- package/dist/accessi-module/Controllers/PermissionController.js +11 -8
- package/dist/accessi-module/Controllers/PermissionController.js.map +1 -0
- package/dist/accessi-module/Controllers/UserController.js +1 -0
- package/dist/accessi-module/Controllers/UserController.js.map +1 -0
- package/dist/accessi-module/Dtos/Abilitazione.js +1 -0
- package/dist/accessi-module/Dtos/Abilitazione.js.map +1 -0
- package/dist/accessi-module/Dtos/AbilitazioneMenu.d.ts +1 -0
- package/dist/accessi-module/Dtos/AbilitazioneMenu.js +18 -8
- package/dist/accessi-module/Dtos/AbilitazioneMenu.js.map +1 -0
- package/dist/accessi-module/Dtos/AssignPermissionsToUserRequest.js +1 -0
- package/dist/accessi-module/Dtos/AssignPermissionsToUserRequest.js.map +1 -0
- package/dist/accessi-module/Dtos/AssignRolesToUserRequest.d.ts +1 -1
- package/dist/accessi-module/Dtos/AssignRolesToUserRequest.js +2 -1
- package/dist/accessi-module/Dtos/AssignRolesToUserRequest.js.map +1 -0
- package/dist/accessi-module/Dtos/BaseResponse.js +1 -0
- package/dist/accessi-module/Dtos/BaseResponse.js.map +1 -0
- package/dist/accessi-module/Dtos/FiltriUtente.js +1 -0
- package/dist/accessi-module/Dtos/FiltriUtente.js.map +1 -0
- package/dist/accessi-module/Dtos/GetGroupsWithMenusResponse.js +1 -0
- package/dist/accessi-module/Dtos/GetGroupsWithMenusResponse.js.map +1 -0
- package/dist/accessi-module/Dtos/GetMenusResponse.d.ts +1 -0
- package/dist/accessi-module/Dtos/GetMenusResponse.js +9 -0
- package/dist/accessi-module/Dtos/GetMenusResponse.js.map +1 -0
- package/dist/accessi-module/Dtos/GetRolesResponse.js +1 -0
- package/dist/accessi-module/Dtos/GetRolesResponse.js.map +1 -0
- package/dist/accessi-module/Dtos/GetUsersResponse.js +1 -0
- package/dist/accessi-module/Dtos/GetUsersResponse.js.map +1 -0
- package/dist/accessi-module/Dtos/LoginRequest.js +1 -0
- package/dist/accessi-module/Dtos/LoginRequest.js.map +1 -0
- package/dist/accessi-module/Dtos/LoginResponse.js +1 -0
- package/dist/accessi-module/Dtos/LoginResponse.js.map +1 -0
- package/dist/accessi-module/Dtos/MenuItem.js +1 -0
- package/dist/accessi-module/Dtos/MenuItem.js.map +1 -0
- package/dist/accessi-module/Dtos/Permission.js +1 -0
- package/dist/accessi-module/Dtos/Permission.js.map +1 -0
- package/dist/accessi-module/Dtos/RegisterRequest.d.ts +1 -1
- package/dist/accessi-module/Dtos/RegisterRequest.js +2 -1
- package/dist/accessi-module/Dtos/RegisterRequest.js.map +1 -0
- package/dist/accessi-module/Dtos/RegisterResponse.js +1 -0
- package/dist/accessi-module/Dtos/RegisterResponse.js.map +1 -0
- package/dist/accessi-module/Dtos/Role.d.ts +3 -3
- package/dist/accessi-module/Dtos/Role.js +5 -4
- package/dist/accessi-module/Dtos/Role.js.map +1 -0
- package/dist/accessi-module/Dtos/RuoliMenu.d.ts +6 -0
- package/dist/accessi-module/Dtos/RuoliMenu.js +46 -0
- package/dist/accessi-module/Dtos/RuoliMenu.js.map +1 -0
- package/dist/accessi-module/Dtos/SetStatoRegistrazione.js +1 -0
- package/dist/accessi-module/Dtos/SetStatoRegistrazione.js.map +1 -0
- package/dist/accessi-module/Dtos/StatoRegistrazione.js +1 -0
- package/dist/accessi-module/Dtos/StatoRegistrazione.js.map +1 -0
- package/dist/accessi-module/Dtos/TipoAbilitazione.js +1 -0
- package/dist/accessi-module/Dtos/TipoAbilitazione.js.map +1 -0
- package/dist/accessi-module/Dtos/TipoFiltro.js +1 -0
- package/dist/accessi-module/Dtos/TipoFiltro.js.map +1 -0
- package/dist/accessi-module/Dtos/TokenResult.js +1 -0
- package/dist/accessi-module/Dtos/TokenResult.js.map +1 -0
- package/dist/accessi-module/Dtos/UpdateEnabledStatusRequest.js +1 -0
- package/dist/accessi-module/Dtos/UpdateEnabledStatusRequest.js.map +1 -0
- package/dist/accessi-module/Dtos/UserDto.d.ts +1 -1
- package/dist/accessi-module/Dtos/UserDto.js +2 -1
- package/dist/accessi-module/Dtos/UserDto.js.map +1 -0
- package/dist/accessi-module/Dtos/UserGrantsDto.js +1 -0
- package/dist/accessi-module/Dtos/UserGrantsDto.js.map +1 -0
- package/dist/accessi-module/Dtos/index.d.ts +1 -0
- package/dist/accessi-module/Dtos/index.js +2 -0
- package/dist/accessi-module/Dtos/index.js.map +1 -0
- package/dist/accessi-module/Services/AuthService/AuthService.js +1 -0
- package/dist/accessi-module/Services/AuthService/AuthService.js.map +1 -0
- package/dist/accessi-module/Services/ConfiguratorService/ConfiguratorService.js +1 -0
- package/dist/accessi-module/Services/ConfiguratorService/ConfiguratorService.js.map +1 -0
- package/dist/accessi-module/Services/EmailService/EmailService.js +1 -0
- package/dist/accessi-module/Services/EmailService/EmailService.js.map +1 -0
- package/dist/accessi-module/Services/FiltriService/FiltriService.js +1 -0
- package/dist/accessi-module/Services/FiltriService/FiltriService.js.map +1 -0
- package/dist/accessi-module/Services/PermissionService/PermissionService.d.ts +2 -2
- package/dist/accessi-module/Services/PermissionService/PermissionService.js +24 -10
- package/dist/accessi-module/Services/PermissionService/PermissionService.js.map +1 -0
- package/dist/accessi-module/Services/UserService/UserService.js +1 -0
- package/dist/accessi-module/Services/UserService/UserService.js.map +1 -0
- package/dist/accessi-module/index.js +1 -0
- package/dist/accessi-module/index.js.map +1 -0
- package/dist/accessi-module/jwt/jwt.strategy.js +1 -0
- package/dist/accessi-module/jwt/jwt.strategy.js.map +1 -0
- package/dist/allegati-module/AllegatiModule.js +1 -0
- package/dist/allegati-module/AllegatiModule.js.map +1 -0
- package/dist/allegati-module/Controllers/AllegatiController.js +1 -0
- package/dist/allegati-module/Controllers/AllegatiController.js.map +1 -0
- package/dist/allegati-module/Dtos/AllegatoDto.js +1 -0
- package/dist/allegati-module/Dtos/AllegatoDto.js.map +1 -0
- package/dist/allegati-module/Dtos/BaseResponse.js +1 -0
- package/dist/allegati-module/Dtos/BaseResponse.js.map +1 -0
- package/dist/allegati-module/Dtos/UploadSingleFileRequest.js +1 -0
- package/dist/allegati-module/Dtos/UploadSingleFileRequest.js.map +1 -0
- package/dist/allegati-module/Dtos/index.js +1 -0
- package/dist/allegati-module/Dtos/index.js.map +1 -0
- package/dist/allegati-module/Dtos/responses/DownloadAllegatoResponseDto.js +1 -0
- package/dist/allegati-module/Dtos/responses/DownloadAllegatoResponseDto.js.map +1 -0
- package/dist/allegati-module/Dtos/responses/GetListResponse.js +1 -0
- package/dist/allegati-module/Dtos/responses/GetListResponse.js.map +1 -0
- package/dist/allegati-module/Dtos/responses/UploadAllegatoResponseDto.js +1 -0
- package/dist/allegati-module/Dtos/responses/UploadAllegatoResponseDto.js.map +1 -0
- package/dist/allegati-module/Services/AllegatiService/AllegatiService.js +1 -0
- package/dist/allegati-module/Services/AllegatiService/AllegatiService.js.map +1 -0
- package/dist/allegati-module/index.js +1 -0
- package/dist/allegati-module/index.js.map +1 -0
- package/dist/autobind.js +1 -0
- package/dist/autobind.js.map +1 -0
- package/dist/emilsoftware-utilities-1.6.1-dev.6.tgz +0 -0
- package/dist/index.js +1 -0
- package/dist/index.js.map +1 -0
- package/dist/initEmilsoftwareModule.js +1 -0
- package/dist/initEmilsoftwareModule.js.map +1 -0
- package/dist/swagger/SwaggerConfig.js +1 -0
- package/dist/swagger/SwaggerConfig.js.map +1 -0
- package/package.json +1 -1
- package/dist/emilsoftware-utilities-1.6.1-dev.4.tgz +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UserController.js","sourceRoot":"","sources":["../../../src/accessi-module/Controllers/UserController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CAewB;AAExB,6CAQyB;AACzB,+CAAgD;AAEhD,qEAAkE;AAClE,wEAAqE;AACrE,+BAA4B;AAC5B,+DAA4D;AAC5D,kCAAsD;AACtD,+DAA4D;AAC5D,6DAA0D;AAC1D,yCAAsC;AACtC,yEAAyE;AAIlE,IAAM,cAAc,sBAApB,MAAM,cAAc;IAGzB,YACmB,WAAwB,EACxB,YAA0B,EAChB,OAAwC;QAFlD,gBAAW,GAAX,WAAW,CAAa;QACxB,iBAAY,GAAZ,YAAY,CAAc;QACC,YAAO,GAAP,OAAO,CAAgB;QALpD,WAAM,GAAG,IAAI,eAAM,CAAC,gBAAc,CAAC,IAAI,CAAC,CAAC;IAMvD,CAAC;IAYE,sBAAsB,CAAQ,GAAa,EAAkB,KAAa;;YAC9E,OAAO,GAAG,CAAC,QAAQ,CAAC,IAAA,WA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G,GAAE,CAAA;;6CADQ,cAAO;;kDActB;AAkBK;IAhBL,IAAA,sBAAY,EAAC;QACZ,OAAO,EAAE,wCAAwC;QACjD,WAAW,EAAE,SAAS;KACvB,CAAC;IACD,IAAA,kBAAQ,EAAC;QACR,IAAI,EAAE,cAAc;QACpB,WAAW,EAAE,uDAAuD;QACpE,QAAQ,EAAE,IAAI;QACd,OAAO,EAAE,QAAQ;KAClB,CAAC;IACD,IAAA,qBAAW,EAAC;QACX,MAAM,EAAE,GAAG;QACX,WAAW,EAAE,sCAAsC;KACpD,CAAC;IACD,IAAA,qBAAW,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,wBAAwB,EAAE,CAAC;IACnE,IAAA,cAAK,EAAC,wBAAwB,CAAC;IACjB,WAAA,IAAA,cAAK,EAAC,cAAc,CAAC,CAAA;IAAwB,WAAA,IAAA,YAAG,GAAE,CAAA;;;;6CAShE;yBAlQU,cAAc;IAF1B,IAAA,iBAAO,EAAC,MAAM,CAAC;IACf,IAAA,mBAAU,EAAC,cAAc,CAAC;IAOtB,WAAA,IAAA,eAAM,EAAC,iBAAiB,CAAC,CAAA;qCAFI,yBAAW;QACV,2BAAY;GALlC,cAAc,CAmQ1B","sourcesContent":["import {\n Controller,\n Get,\n Post,\n Body,\n Inject,\n Res,\n Param,\n Req,\n Delete,\n Put,\n Patch,\n HttpStatus,\n Query,\n ParseBoolPipe,\n} from '@nestjs/common';\nimport { Response, Request } from 'express';\nimport {\n ApiTags,\n ApiOperation,\n ApiResponse,\n ApiParam,\n ApiBody,\n ApiCreatedResponse,\n ApiQuery,\n} from '@nestjs/swagger';\nimport { RestUtilities } from '../../Utilities';\nimport { AccessiOptions } from '../AccessiModule';\nimport { UserService } from '../Services/UserService/UserService';\nimport { EmailService } from '../Services/EmailService/EmailService';\nimport { join } from 'path';\nimport { GetUsersResponse } from '../Dtos/GetUsersResponse';\nimport { StatoRegistrazione, UserDto } from '../Dtos';\nimport { RegisterResponse } from '../Dtos/RegisterResponse';\nimport { RegisterRequest } from '../Dtos/RegisterRequest';\nimport { Logger } from '../../Logger';\nimport { SetStatoRegistrazioneDto } from '../Dtos/SetStatoRegistrazione';\n\n@ApiTags('User')\n@Controller('accessi/user')\nexport class UserController {\n private readonly logger = new Logger(UserController.name);\n\n constructor(\n private readonly userService: UserService,\n private readonly emailService: EmailService,\n @Inject('ACCESSI_OPTIONS') private readonly options: AccessiOptions,\n ) {}\n\n @ApiOperation({\n summary: 'Servire la pagina di reset password',\n operationId: 'serveResetPasswordPageUser',\n })\n @ApiParam({\n name: 'token',\n description: 'Token per il reset della password',\n required: true,\n })\n @Get('reset-password/:token')\n async serveResetPasswordPage(@Res() res: Response, @Param('token') token: string) {\n return res.sendFile(join(__dirname, '..', 'Views', 'reset-password.html'));\n }\n\n @ApiOperation({\n summary: 'Recupera la lista degli utenti',\n operationId: 'getUsers',\n })\n @ApiResponse({\n status: 200,\n description: 'Lista utenti recuperata con successo',\n type: GetUsersResponse,\n })\n @ApiResponse({ status: 401, description: 'Credenziali non valide' })\n @ApiQuery({\n name: 'email',\n required: false,\n description: \"Email dell'utente da cercare\",\n })\n @ApiQuery({\n name: 'codiceUtente',\n required: false,\n description: \"Codice dell'utente da cercare\",\n })\n @ApiQuery({\n name: 'includeExtensionFields',\n required: false,\n description: 'Includi extension fields (chiamata più pesante)',\n })\n @ApiQuery({\n name: 'includeGrants',\n required: false,\n description: 'Includi Permessi (chiamata più pesante)',\n })\n @Get('get-users')\n async getUsers(\n @Res() res: Response,\n @Query('email') email?: string,\n @Query('codiceUtente') codiceUtente?: number,\n @Query('includeExtensionFields', new ParseBoolPipe({ optional: true }))\n includeExtensionFields?: boolean,\n @Query('includeGrants', new ParseBoolPipe({ optional: true }))\n includeGrants?: boolean,\n ) {\n try {\n let filters = { email, codiceUtente };\n let options = {\n includeExtensionFields: includeExtensionFields ?? true,\n includeGrants: includeGrants ?? true,\n };\n const users = await this.userService.getUsers(filters, options);\n return RestUtilities.sendBaseResponse(res, users);\n } catch (error) {\n this.logger.error('Errore durante il recupero degli utenti: ', error);\n return RestUtilities.sendErrorMessage(res, error, UserController.name);\n }\n }\n\n @ApiOperation({\n summary: 'Elimina un utente',\n operationId: 'deleteUser',\n description: `Imposta lo stato di un utente a 50(eliminato)\n Non esegue una eliminazione dei record`,\n })\n @ApiParam({\n name: 'codiceUtente',\n description: \"Codice identificativo dell'utente da eliminare\",\n required: true,\n example: 'USR123',\n })\n @ApiResponse({ status: 200, description: 'Utente eliminato con successo' })\n @ApiResponse({\n status: 400,\n description: 'Errore nei parametri della richiesta',\n })\n @ApiResponse({ status: 500, description: 'Errore interno del server' })\n @Delete('delete-user/:codiceUtente')\n async deleteUser(@Param('codiceUtente') codiceUtente: number, @Res() res: Response) {\n try {\n if (!codiceUtente) throw new Error('Il campo \"Codice Utente\" è obbligatorio.');\n\n await this.userService.deleteUser(codiceUtente);\n return RestUtilities.sendOKMessage(res, \"L'utente è stato eliminato con successo.\");\n } catch (error) {\n return RestUtilities.sendErrorMessage(res, error);\n }\n }\n\n @ApiOperation({\n summary: 'Imposta lo stato di registrazione di un utente',\n operationId: 'setStatoRegistrazione',\n description: `Imposta lo stato di registrazione di un utente. Stati possibili:\n - 0: NULL (non definito)\n - 5: INSERT (inserito)\n - 10: INVIO (inviato)\n - 20: CONF (confermato)\n - 50: DELETE (eliminato)\n - 99: BLOCC (bloccato)`,\n })\n @ApiResponse({\n status: 200,\n description: 'Stato registrazione aggiornato con successo',\n })\n @ApiResponse({\n status: 400,\n description: 'Errore nei parametri della richiesta',\n })\n @ApiResponse({\n status: 500,\n description: 'Errore interno del server',\n })\n @ApiBody({ type: SetStatoRegistrazioneDto })\n @Post('set-stato')\n async setStatoRegistrazione(@Body() body: SetStatoRegistrazioneDto, @Res() res: Response) {\n try {\n let { codiceUtente, statoRegistrazione } = body;\n if (!codiceUtente) throw new Error('Il codice utente è obbligatorio.');\n if (statoRegistrazione === undefined)\n throw new Error('Lo stato registrazione è obbligatorio.');\n\n await this.userService.setStato(codiceUtente, statoRegistrazione);\n return RestUtilities.sendOKMessage(\n res,\n `Lo stato dell'utente ${codiceUtente} è stato aggiornato a ${statoRegistrazione}.`,\n );\n } catch (error) {\n return RestUtilities.sendErrorMessage(res, error, UserController.name);\n }\n }\n\n @ApiOperation({\n summary: 'Registra un nuovo utente',\n operationId: 'register',\n })\n @ApiBody({\n type: RegisterRequest,\n description: \"Dati necessari per la registrazione dell'utente\",\n })\n @ApiCreatedResponse({\n description:\n 'Utente registrato con successo. Restituisce il codice utente e invia una mail di conferma/reset password.',\n type: RegisterResponse,\n })\n @ApiResponse({\n status: HttpStatus.BAD_REQUEST,\n description:\n 'Errore nella registrazione. Potrebbe essere dovuto a dati mancanti, email già esistente o configurazione non valida.',\n })\n @ApiResponse({\n status: HttpStatus.INTERNAL_SERVER_ERROR,\n description: 'Errore interno del server durante la registrazione o l’invio dell’email.',\n })\n @Post('register')\n async register(\n @Req() request: Request,\n @Body() registrationData: RegisterRequest,\n @Res() res: Response,\n ) {\n try {\n const codiceUtente = await this.userService.register(registrationData);\n await this.emailService.sendPasswordResetEmail(\n registrationData.email,\n registrationData.htmlMail,\n );\n\n return RestUtilities.sendBaseResponse(res, codiceUtente);\n } catch (error) {\n return RestUtilities.sendErrorMessage(\n res,\n error,\n UserController.name,\n HttpStatus.BAD_REQUEST,\n );\n }\n }\n\n @ApiOperation({\n summary: 'Aggiorna un utente esistente',\n operationId: 'updateUtente',\n })\n @ApiParam({\n name: 'codiceUtente',\n description: \"Codice identificativo dell'utente da aggiornare\",\n required: true,\n example: 'USR123',\n })\n @ApiBody({\n type: UserDto,\n description: \"Dati aggiornati dell'utente (escluso il codice utente, che è nel path)\",\n })\n @ApiResponse({\n status: HttpStatus.OK,\n description: 'Utente aggiornato con successo',\n })\n @ApiResponse({ status: 400, description: \"Errore nell'aggiornamento\" })\n @Put('update-user/:codiceUtente')\n async updateUtente(\n @Param('codiceUtente') codiceUtente: number,\n @Body() user: UserDto,\n @Res() res: Response,\n ) {\n try {\n if (!codiceUtente) throw new Error('Il codice utente è obbligatorio.');\n\n await this.userService.updateUser(codiceUtente, user);\n return RestUtilities.sendOKMessage(\n res,\n `L'utente ${codiceUtente} è stato aggiornato con successo.`,\n );\n } catch (error) {\n return RestUtilities.sendErrorMessage(res, error, UserController.name);\n }\n }\n\n @ApiOperation({\n summary: 'Imposta il consenso GDPR per un utente',\n operationId: 'setGdpr',\n })\n @ApiParam({\n name: 'codiceUtente',\n description: \"Codice identificativo dell'utente che accetta il GDPR\",\n required: true,\n example: 'USR123',\n })\n @ApiResponse({\n status: 200,\n description: 'Consenso GDPR impostato con successo',\n })\n @ApiResponse({ status: 400, description: 'Errore nella richiesta' })\n @Patch('set-gdpr/:codiceUtente')\n async setGdpr(@Param('codiceUtente') codiceUtente: number, @Res() res: Response) {\n try {\n if (!codiceUtente) throw new Error('Il codice utente è obbligatorio.');\n\n await this.userService.setGdpr(codiceUtente);\n return RestUtilities.sendOKMessage(res, `L'utente ${codiceUtente} ha accettato il GDPR.`);\n } catch (error) {\n return RestUtilities.sendErrorMessage(res, error, UserController.name);\n }\n }\n}\n"]}
|
|
@@ -45,3 +45,4 @@ __decorate([
|
|
|
45
45
|
(0, class_validator_1.IsEnum)(TipoAbilitazione_1.TipoAbilitazione, { message: "Il tipo di abilitazione non è valido." }),
|
|
46
46
|
__metadata("design:type", Number)
|
|
47
47
|
], Abilitazione.prototype, "tipoAbilitazione", void 0);
|
|
48
|
+
//# sourceMappingURL=Abilitazione.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Abilitazione.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/Abilitazione.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,yDAAsD;AACtD,qDAAuE;AAEvE,MAAa,YAAY;CA2BxB;AA3BD,oCA2BC;AAlBC;IAPC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,6BAA6B;QAC1C,OAAO,EAAE,UAAU;KACpB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;IAC3D,IAAA,wBAAM,EAAC,CAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,oDAAoD,EAAE,CAAC;;kDAC5D;AASrB;IAPC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,yBAAyB;QACtC,OAAO,EAAE,UAAU;KACpB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;IACzD,IAAA,wBAAM,EAAC,CAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,kDAAkD,EAAE,CAAC;;gDAC5D;AAQnB;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,mCAAgB;QACtB,OAAO,EAAE,mCAAgB,CAAC,OAAO;KAClC,CAAC;IACD,IAAA,wBAAM,EAAC,mCAAgB,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;;sDAC5C","sourcesContent":["import { ApiProperty } from \"@nestjs/swagger\";\nimport { TipoAbilitazione } from \"./TipoAbilitazione\";\nimport { IsString, IsNotEmpty, Length, IsEnum } from \"class-validator\";\n\nexport class Abilitazione {\n\n @ApiProperty({\n description: 'Codice univoco dell\\'utente',\n example: 'USR12345'\n })\n @IsString()\n @IsNotEmpty({ message: \"Il codice utente è obbligatorio.\" })\n @Length(5, 20, { message: \"Il codice utente deve essere tra 5 e 20 caratteri.\" })\n codiceUtente: number;\n\n @ApiProperty({\n description: 'Codice univoco del menu',\n example: 'MENU_001'\n })\n @IsString()\n @IsNotEmpty({ message: \"Il codice menu è obbligatorio.\" })\n @Length(3, 20, { message: \"Il codice menu deve essere tra 3 e 20 caratteri.\" })\n codiceMenu: string;\n\n @ApiProperty({\n description: 'Tipo di abilitazione',\n enum: TipoAbilitazione,\n example: TipoAbilitazione.LETTURA\n })\n @IsEnum(TipoAbilitazione, { message: \"Il tipo di abilitazione non è valido.\" })\n tipoAbilitazione: TipoAbilitazione;\n}"]}
|
|
@@ -19,7 +19,7 @@ exports.AbilitazioneMenu = AbilitazioneMenu;
|
|
|
19
19
|
__decorate([
|
|
20
20
|
(0, swagger_1.ApiProperty)({
|
|
21
21
|
description: 'Codice univoco del menu',
|
|
22
|
-
example: '
|
|
22
|
+
example: 'MNUELENCOCLIENTI'
|
|
23
23
|
}),
|
|
24
24
|
(0, class_validator_1.IsString)(),
|
|
25
25
|
(0, class_validator_1.IsNotEmpty)({ message: "Il codice menu è obbligatorio." }),
|
|
@@ -30,7 +30,7 @@ __decorate([
|
|
|
30
30
|
(0, swagger_1.ApiPropertyOptional)({
|
|
31
31
|
description: 'Tipo di abilitazione',
|
|
32
32
|
enum: TipoAbilitazione_1.TipoAbilitazione,
|
|
33
|
-
example: TipoAbilitazione_1.TipoAbilitazione.
|
|
33
|
+
example: TipoAbilitazione_1.TipoAbilitazione.SCRITTURA
|
|
34
34
|
}),
|
|
35
35
|
(0, class_validator_1.IsEnum)(TipoAbilitazione_1.TipoAbilitazione, { message: "Il tipo di abilitazione non è valido." }),
|
|
36
36
|
__metadata("design:type", Number)
|
|
@@ -38,7 +38,7 @@ __decorate([
|
|
|
38
38
|
__decorate([
|
|
39
39
|
(0, swagger_1.ApiPropertyOptional)({
|
|
40
40
|
description: 'Descrizione del menu',
|
|
41
|
-
example: '
|
|
41
|
+
example: 'Lista Clienti'
|
|
42
42
|
}),
|
|
43
43
|
(0, class_validator_1.IsString)(),
|
|
44
44
|
(0, class_validator_1.IsNotEmpty)({ message: "La descrizione del menu è obbligatoria." }),
|
|
@@ -56,7 +56,7 @@ __decorate([
|
|
|
56
56
|
__decorate([
|
|
57
57
|
(0, swagger_1.ApiPropertyOptional)({
|
|
58
58
|
description: 'Codice univoco del gruppo a cui appartiene il menu',
|
|
59
|
-
example: '
|
|
59
|
+
example: 'C'
|
|
60
60
|
}),
|
|
61
61
|
(0, class_validator_1.IsString)(),
|
|
62
62
|
(0, class_validator_1.IsNotEmpty)({ message: "Il codice gruppo è obbligatorio." }),
|
|
@@ -65,7 +65,7 @@ __decorate([
|
|
|
65
65
|
__decorate([
|
|
66
66
|
(0, swagger_1.ApiPropertyOptional)({
|
|
67
67
|
description: 'Nome dell\'icona associata al menu',
|
|
68
|
-
example: '
|
|
68
|
+
example: 'people'
|
|
69
69
|
}),
|
|
70
70
|
(0, class_validator_1.IsString)(),
|
|
71
71
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -73,8 +73,8 @@ __decorate([
|
|
|
73
73
|
], AbilitazioneMenu.prototype, "icona", void 0);
|
|
74
74
|
__decorate([
|
|
75
75
|
(0, swagger_1.ApiPropertyOptional)({
|
|
76
|
-
description: 'Tipo di menu
|
|
77
|
-
example: '
|
|
76
|
+
description: 'Tipo di menu',
|
|
77
|
+
example: 'M'
|
|
78
78
|
}),
|
|
79
79
|
(0, class_validator_1.IsString)(),
|
|
80
80
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -83,9 +83,19 @@ __decorate([
|
|
|
83
83
|
__decorate([
|
|
84
84
|
(0, swagger_1.ApiPropertyOptional)({
|
|
85
85
|
description: 'Percorso della pagina associata al menu',
|
|
86
|
-
example: '/
|
|
86
|
+
example: '/lista-clienti'
|
|
87
87
|
}),
|
|
88
88
|
(0, class_validator_1.IsString)(),
|
|
89
89
|
(0, class_validator_1.IsOptional)(),
|
|
90
90
|
__metadata("design:type", String)
|
|
91
91
|
], AbilitazioneMenu.prototype, "pagina", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
94
|
+
description: 'Nota informativa associata al menu',
|
|
95
|
+
example: 'Visibile solo dopo abilitazione'
|
|
96
|
+
}),
|
|
97
|
+
(0, class_validator_1.IsString)(),
|
|
98
|
+
(0, class_validator_1.IsOptional)(),
|
|
99
|
+
__metadata("design:type", String)
|
|
100
|
+
], AbilitazioneMenu.prototype, "note", void 0);
|
|
101
|
+
//# sourceMappingURL=AbilitazioneMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AbilitazioneMenu.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/AbilitazioneMenu.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,yDAAsD;AACtD,qDAAmF;AAEnF,MAAa,gBAAgB;CA0E5B;AA1ED,4CA0EC;AAjEC;IAPC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,yBAAyB;QACtC,OAAO,EAAE,kBAAkB;KAC5B,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;IACzD,IAAA,wBAAM,EAAC,CAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,kDAAkD,EAAE,CAAC;;oDAC5D;AAQnB;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,mCAAgB;QACtB,OAAO,EAAE,mCAAgB,CAAC,SAAS;KACpC,CAAC;IACD,IAAA,wBAAM,EAAC,mCAAgB,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;;0DAC3C;AAQpC;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,sBAAsB;QACnC,OAAO,EAAE,eAAe;KACzB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;;yDAC1C;AAQzB;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,iDAAiD;QAC9D,OAAO,EAAE,iBAAiB;KAC3B,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,2CAA2C,EAAE,CAAC;;2DAC1C;AAQ3B;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,oDAAoD;QACjE,OAAO,EAAE,GAAG;KACb,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;;sDACtC;AAQtB;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,QAAQ;KAClB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;+CACS;AAQtB;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,cAAc;QAC3B,OAAO,EAAE,GAAG;KACb,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACQ;AAQrB;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,yCAAyC;QACtD,OAAO,EAAE,gBAAgB;KAC1B,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;gDACU;AAQvB;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,iCAAiC;KAC3C,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACQ","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from \"@nestjs/swagger\";\nimport { TipoAbilitazione } from \"./TipoAbilitazione\";\nimport { IsEnum, IsNotEmpty, IsString, Length, IsOptional } from \"class-validator\";\n\nexport class AbilitazioneMenu {\n \n @ApiProperty({\n description: 'Codice univoco del menu',\n example: 'MNUELENCOCLIENTI'\n })\n @IsString()\n @IsNotEmpty({ message: \"Il codice menu è obbligatorio.\" })\n @Length(3, 20, { message: \"Il codice menu deve essere tra 3 e 20 caratteri.\" })\n codiceMenu: string;\n\n @ApiPropertyOptional({\n description: 'Tipo di abilitazione',\n enum: TipoAbilitazione,\n example: TipoAbilitazione.SCRITTURA\n })\n @IsEnum(TipoAbilitazione, { message: \"Il tipo di abilitazione non è valido.\" })\n tipoAbilitazione?: TipoAbilitazione;\n\n @ApiPropertyOptional({\n description: 'Descrizione del menu',\n example: 'Lista Clienti'\n })\n @IsString()\n @IsNotEmpty({ message: \"La descrizione del menu è obbligatoria.\" })\n descrizioneMenu?: string;\n\n @ApiPropertyOptional({\n description: 'Descrizione del gruppo a cui appartiene il menu',\n example: 'Amministrazione'\n })\n @IsString()\n @IsNotEmpty({ message: \"La descrizione del gruppo è obbligatoria.\" })\n descrizioneGruppo?: string;\n\n @ApiPropertyOptional({\n description: 'Codice univoco del gruppo a cui appartiene il menu',\n example: 'C'\n })\n @IsString()\n @IsNotEmpty({ message: \"Il codice gruppo è obbligatorio.\" })\n codiceGruppo?: string;\n\n @ApiPropertyOptional({\n description: 'Nome dell\\'icona associata al menu',\n example: 'people'\n })\n @IsString()\n @IsOptional()\n icona?: string | null;\n\n @ApiPropertyOptional({\n description: 'Tipo di menu',\n example: 'M'\n })\n @IsString()\n @IsOptional()\n tipo?: string | null;\n\n @ApiPropertyOptional({\n description: 'Percorso della pagina associata al menu',\n example: '/lista-clienti'\n })\n @IsString()\n @IsOptional()\n pagina?: string | null;\n\n @ApiPropertyOptional({\n description: 'Nota informativa associata al menu',\n example: 'Visibile solo dopo abilitazione'\n })\n @IsString()\n @IsOptional()\n note?: string | null;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssignPermissionsToUserRequest.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/AssignPermissionsToUserRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,6CAA0C;AAE1C,MAAa,8BAA8B;CAU1C;AAVD,wEAUC;AADG;IARC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,mDAAmD;QAChE,IAAI,EAAE,CAAC,uBAAU,CAAC;QAClB,OAAO,EAAE;YACL,EAAE,UAAU,EAAE,QAAQ,EAAE,gBAAgB,EAAE,EAAE,EAAE;YAC9C,EAAE,UAAU,EAAE,QAAQ,EAAE,gBAAgB,EAAE,EAAE,EAAE;SACjD;KACJ,CAAC;;mEACwB","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { Permission } from './Permission';\n\nexport class AssignPermissionsToUserRequest {\n @ApiProperty({\n description: \"Lista delle abilitazioni da assegnare all'utente.\",\n type: [Permission],\n example: [\n { codiceMenu: \"MNU001\", tipoAbilitazione: 30 },\n { codiceMenu: \"MNU002\", tipoAbilitazione: 10 }\n ]\n })\n permissions: Permission[];\n}\n"]}
|
|
@@ -18,7 +18,8 @@ __decorate([
|
|
|
18
18
|
(0, swagger_1.ApiProperty)({
|
|
19
19
|
description: "Lista dei codici dei ruoli da assegnare all'utente.",
|
|
20
20
|
type: [String],
|
|
21
|
-
example: [
|
|
21
|
+
example: [1, 2, 3]
|
|
22
22
|
}),
|
|
23
23
|
__metadata("design:type", Array)
|
|
24
24
|
], AssignRolesToUserRequest.prototype, "roles", void 0);
|
|
25
|
+
//# sourceMappingURL=AssignRolesToUserRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"AssignRolesToUserRequest.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/AssignRolesToUserRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAE9C,MAAa,wBAAwB;CAOpC;AAPD,4DAOC;AADG;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,qDAAqD;QAClE,IAAI,EAAE,CAAC,MAAM,CAAC;QACd,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,EAAE,CAAC,CAAC;KACrB,CAAC;;uDACc","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\n\nexport class AssignRolesToUserRequest {\n @ApiProperty({\n description: \"Lista dei codici dei ruoli da assegnare all'utente.\",\n type: [String],\n example: [1, 2, 3]\n })\n roles: number[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"BaseResponse.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/BaseResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,yDAAyC;AACzC,qDAAqE;AAErE,MAAa,MAAM;CAQlB;AARD,wBAQC;AALC;IAFC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,GAAG,EAAE,WAAW,EAAE,mCAAmC,EAAE,CAAC;IAC/E,IAAA,0BAAQ,GAAE;;yCACO;AAIlB;IAFC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,qCAAqC,EAAE,CAAC;IACvF,IAAA,0BAAQ,GAAE;;gDACc;AAG3B,MAAsB,YAAY;CAMjC;AAND,oCAMC;AADC;IAJC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;IAC7B,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,0BAAQ,GAAE;8BACH,MAAM;4CAAC","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { IsObject, IsString, ValidateNested } from 'class-validator';\n\nexport class Status {\n @ApiProperty({ example: '0', description: 'Codice di errore, \"0\" se tutto ok' })\n @IsString()\n errorCode: string;\n\n @ApiProperty({ example: 'Success', description: 'Descrizione dell\\'errore o successo' })\n @IsString()\n errorDescription: string;\n}\n\nexport abstract class BaseResponse {\n @ApiProperty({ type: Status })\n @ValidateNested()\n @Type(() => Status)\n @IsObject()\n Status: Status;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"FiltriUtente.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/FiltriUtente.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,yDAAyC;AACzC,qDAA2G;AAC3G,iDAA8C;AAG9C,MAAa,YAAY;CA2FxB;AA3FD,oCA2FC;AArFC;IAJ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AO,EAAE,IAAI,EAAG;IACxD,WAAW,EAAG,EAAE,OAAO,EAAE,aAAa,EAAE,OAAO,EAAE,IAAI,EAAG;IACxD,MAAM,EAAQ,EAAE,OAAO,EAAE,QAAQ,EAAO,OAAO,EAAE,IAAI,EAAG;IACxD,SAAS,EAAK,EAAE,OAAO,EAAE,WAAW,EAAI,OAAO,EAAE,IAAI,EAAG;IACxD,UAAU,EAAI,EAAE,OAAO,EAAE,YAAY,EAAG,OAAO,EAAE,KAAK,EAAE;IACxD,MAAM,EAAQ,EAAE,OAAO,EAAE,QAAQ,EAAO,OAAO,EAAE,IAAI,EAAG;IACxD,MAAM,EAAQ,EAAE,OAAO,EAAE,QAAQ,EAAO,OAAO,EAAE,IAAI,EAAG;IACxD,MAAM,EAAQ,EAAE,OAAO,EAAE,QAAQ,EAAO,OAAO,EAAE,IAAI,EAAG;IACxD,MAAM,EAAQ,EAAE,OAAO,EAAE,QAAQ,EAAO,OAAO,EAAE,IAAI,EAAG;CAChD,CAAC","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { IsIn, IsInt, IsNumber, IsOptional, IsPort, IsString, Min, ValidateNested } from 'class-validator';\nimport { BaseResponse } from './BaseResponse';\nimport { TipoFiltro } from './TipoFiltro';\n\nexport class FiltriUtente {\n\n @ApiProperty({\n description: 'Codice dell\\'utente',\n example: 1\n })\n codUte: number\n\n @ApiPropertyOptional({\n description: 'Progressivo identificativo del filtro',\n example: 1,\n })\n @IsInt({ message: 'Il progressivo deve essere un numero intero.' })\n @Min(1, { message: 'Il progressivo deve essere maggiore di 0.' })\n progressivo?: number;\n\n @ApiPropertyOptional({\n description: 'Numero del reparto associato',\n example: 1002,\n })\n @IsInt({ message: 'Il numero del reparto deve essere un numero intero.' })\n @IsOptional()\n numRep?: number;\n\n @ApiPropertyOptional({\n description: 'Idx personale',\n example: 15,\n })\n @IsInt({ message: \"L'indice personale deve essere un numero intero.\" })\n @IsOptional()\n idxPers?: number;\n\n @ApiPropertyOptional({\n description: 'Codice Cliente padre (codcli di esgest)',\n example: 1,\n })\n @IsNumber()\n @IsOptional()\n codCliSuper?: number;\n\n @ApiPropertyOptional({\n description: 'Codice dell\\'agente associato',\n example: 1\n })\n @IsNumber()\n @IsOptional()\n codAge?: number;\n\n @ApiPropertyOptional({\n description: 'Codice del cliente collegato',\n example: 1,\n })\n @IsNumber()\n @IsOptional()\n codCliCol?: number;\n\n @ApiPropertyOptional({\n description: 'Lista di codici clienti separati da virgola',\n example: '123,456,789',\n })\n @IsString()\n @IsOptional()\n codClienti?: string;\n\n @ApiPropertyOptional({\n description: 'Tipo di filtro applicato',\n example: 99,\n })\n @IsNumber()\n @IsOptional()\n tipFil?: number;\n\n @ApiPropertyOptional({\n description: 'idx della postazione nella tabella ANTENNE_POS di PROLAV',\n example: 12,\n })\n idxPos?: number;\n\n @ApiPropertyOptional({\n description: 'Codice dipendente di esgest',\n example: 12\n })\n @IsNumber()\n @IsOptional()\n codDip?: number\n\n @ApiPropertyOptional({\n description: 'Codice del vettore',\n example: 12\n })\n codVet?: number\n}\n\nexport class GetFiltriUtenteResponse extends BaseResponse {\n @ApiProperty({ type: FiltriUtente })\n @ValidateNested({ each: true })\n @Type(() => FiltriUtente)\n Result : FiltriUtente[]\n}\n\nexport class GetFiltriUtenteRequest {\n @ApiPropertyOptional({\n description: 'Codice utente',\n })\n @IsNumber()\n @IsOptional()\n codUte?: number\n}\n\nexport const FILTRI_UTENTE_DB_MAPPING = {\n progressivo: { dbField: 'PROG', numeric: true },\n numRep: { dbField: 'NUMREP', numeric: true },\n idxPers: { dbField: 'IDXPERS', numeric: true },\n codCliSuper: { dbField: 'CODCLISUPER', numeric: true },\n codAge: { dbField: 'CODAGE', numeric: true },\n codCliCol: { dbField: 'CODCLICOL', numeric: true },\n codClienti: { dbField: 'CODCLIENTI', numeric: false },\n tipFil: { dbField: 'TIPFIL', numeric: true },\n idxPos: { dbField: 'IDXPOS', numeric: true },\n codDip: { dbField: 'CODDIP', numeric: true },\n codVet: { dbField: 'CODVET', numeric: true },\n} as const;\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetGroupsWithMenusResponse.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/GetGroupsWithMenusResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,iDAA8C;AAC9C,qDAA0D;AAC1D,yDAAyC;AACzC,yDAAgD;AAIhD,MAAa,oBAAoB;CAqChC;AArCD,oDAqCC;AA/BG;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,4BAA4B;QACzC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,OAAO;KACnB,CAAC;;0DACmB;AAOrB;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,yBAAyB;QACtC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,kBAAkB;KAC9B,CAAC;;+DACwB;AAO1B;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;KACb,CAAC;;0DACmB;AAOrB;IALC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,2CAA2C;QACxD,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;KAChB,CAAC;;qDACgB;AASlB;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,qCAAqC;QAClD,IAAI,EAAE,CAAC,6BAAU,CAAC;KACrB,CAAC;IACD,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,6BAAU,CAAC;IACtB,IAAA,yBAAO,GAAE;;mDACU;AAGxB,MAAa,0BAA2B,SAAQ,2BAAY;CAK3D;AALD,gEAKC;AADG;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,oBAAoB,CAAC,EAAE,CAAC;IAC7C,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,oBAAoB,CAAC;;0DACF","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from \"@nestjs/swagger\";\nimport { BaseResponse } from \"./BaseResponse\";\nimport { IsArray, ValidateNested } from \"class-validator\";\nimport { Type } from \"class-transformer\";\nimport { MenuEntity } from \"./GetMenusResponse\";\n\n\n\nexport class GroupWithMenusEntity {\n @ApiProperty({\n description: \"Codice univoco del gruppo.\",\n type: String,\n example: \"GRP01\"\n })\n codiceGruppo: string;\n\n @ApiProperty({\n description: \"Descrizione del gruppo.\",\n type: String,\n example: \"Gestione Accessi\"\n })\n descrizioneGruppo: string;\n\n @ApiProperty({\n description: \"Ordine del gruppo.\",\n type: Number,\n example: 1\n })\n ordineGruppo: number;\n\n @ApiPropertyOptional({\n description: \"Flag che indica se il gruppo e abilitato.\",\n type: Boolean,\n example: true\n })\n enabled?: boolean;\n\n @ApiProperty({\n description: \"Lista dei menù associati al gruppo.\",\n type: [MenuEntity]\n })\n @ValidateNested({ each: true })\n @Type(() => MenuEntity)\n @IsArray()\n menus: MenuEntity[];\n}\n\nexport class GetGroupsWithMenusResponse extends BaseResponse {\n @ApiProperty({ type: [GroupWithMenusEntity] })\n @ValidateNested({ each: true })\n @Type(() => GroupWithMenusEntity)\n Result: GroupWithMenusEntity[];\n}\n"]}
|
|
@@ -110,6 +110,14 @@ __decorate([
|
|
|
110
110
|
}),
|
|
111
111
|
__metadata("design:type", Number)
|
|
112
112
|
], MenuEntity.prototype, "tipoAbilitazione", void 0);
|
|
113
|
+
__decorate([
|
|
114
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
115
|
+
description: "Nota informativa associata al menu.",
|
|
116
|
+
type: String,
|
|
117
|
+
example: "Visibile solo agli amministratori"
|
|
118
|
+
}),
|
|
119
|
+
__metadata("design:type", String)
|
|
120
|
+
], MenuEntity.prototype, "note", void 0);
|
|
113
121
|
class GetMenusResponse extends BaseResponse_1.BaseResponse {
|
|
114
122
|
}
|
|
115
123
|
exports.GetMenusResponse = GetMenusResponse;
|
|
@@ -119,3 +127,4 @@ __decorate([
|
|
|
119
127
|
(0, class_transformer_1.Type)(() => MenuEntity),
|
|
120
128
|
__metadata("design:type", Array)
|
|
121
129
|
], GetMenusResponse.prototype, "Result", void 0);
|
|
130
|
+
//# sourceMappingURL=GetMenusResponse.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetMenusResponse.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/GetMenusResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,iDAA8C;AAC9C,qDAAiD;AACjD,yDAAyC;AAMzC,MAAa,UAAU;CA4FtB;AA5FD,gCA4FC;AArFG;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,0BAA0B;QACvC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,QAAQ;KACpB,CAAC;;8CACiB;AAOnB;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,iBAAiB;KAC7B,CAAC;;mDACsB;AAQxB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,6CAA6C;QAC1D,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,OAAO;QAChB,QAAQ,EAAE,KAAK;KAClB,CAAC;;gDACoB;AAQtB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,kDAAkD;QAC/D,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,kBAAkB;QAC3B,QAAQ,EAAE,KAAK;KAClB,CAAC;;qDACyB;AAQ3B;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,wCAAwC;QACrD,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,UAAU;QACnB,QAAQ,EAAE,KA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, ApiPropertyOptional } from \"@nestjs/swagger\";\nimport { BaseResponse } from \"./BaseResponse\";\nimport { ValidateNested } from \"class-validator\";\nimport { Type } from \"class-transformer\";\n\n\n\n\n\nexport class MenuEntity {\n\n @ApiProperty({\n description: \"Codice univoco del menù.\",\n type: String,\n example: \"MNU001\"\n })\n codiceMenu: string;\n\n @ApiProperty({\n description: \"Descrizione del menù.\",\n type: String,\n example: \"Gestione Utenti\"\n })\n descrizioneMenu: string;\n\n @ApiProperty({\n description: \"Codice del gruppo a cui appartiene il menù.\",\n type: String,\n example: \"GRP01\",\n required: false\n })\n codiceGruppo?: string;\n\n @ApiProperty({\n description: \"Descrizione del gruppo a cui appartiene il menù.\",\n type: String,\n example: \"Gestione Accessi\",\n required: false\n })\n descrizioneGruppo?: string;\n\n @ApiProperty({\n description: \"Percorso dell'icona associata al menù.\",\n type: String,\n example: \"fa-users\",\n required: false\n })\n icona?: string;\n\n @ApiProperty({\n description: \"Tipo di menù.\",\n type: String,\n example: \"admin\",\n required: false\n })\n tipo?: string;\n\n @ApiProperty({\n description: \"Percorso della pagina associata al menù.\",\n type: String,\n example: \"/accessi/gestione-utenti\",\n required: false\n })\n pagina?: string;\n\n\n @ApiProperty({\n description: \"Ordine del menu.\",\n type: Number,\n example: 1\n })\n ordineMenu: number;\n\n\n @ApiProperty({\n description: \"Ordine del gruppo.\",\n type: Number,\n example: 1\n })\n ordineGruppo: number;\n\n @ApiPropertyOptional({\n description: \"Flag che indica se il menu e abilitato.\",\n type: Boolean,\n example: true\n })\n enabled?: boolean;\n\n @ApiPropertyOptional({\n description: \"Tipo abilitazione opzionale\",\n type: Number,\n example: 1\n })\n tipoAbilitazione?: number;\n\n @ApiPropertyOptional({\n description: \"Nota informativa associata al menu.\",\n type: String,\n example: \"Visibile solo agli amministratori\"\n })\n note?: string | null;\n}\n\nexport class GetMenusResponse extends BaseResponse {\n @ApiProperty({ type: [MenuEntity] })\n @ValidateNested({ each: true })\n @Type(() => MenuEntity)\n Result: MenuEntity[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetRolesResponse.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/GetRolesResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,iDAA8C;AAC9C,iCAA8B;AAC9B,yDAAyC;AACzC,qDAAiD;AAEjD,MAAa,gBAAiB,SAAQ,2BAAY;CAKjD;AALD,4CAKC;AADC;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,WAAI,CAAC,EAAE,CAAC;IAC7B,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAI,CAAC;;gDACF","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { BaseResponse } from './BaseResponse';\nimport { Role } from './Role';\nimport { Type } from 'class-transformer';\nimport { ValidateNested } from 'class-validator';\n\nexport class GetRolesResponse extends BaseResponse {\n @ApiProperty({ type: [Role] })\n @ValidateNested({ each: true })\n @Type(() => Role)\n Result: Role[];\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"GetUsersResponse.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/GetUsersResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAAiD;AACjD,yDAAyC;AACzC,iDAA8C;AAC9C,uCAAoC;AACpC,mDAAgD;AAGhD,MAAa,cAAc;CAc1B;AAdD,wCAcC;AAVC;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,iBAAO,EAAE,CAAC;IAC1D,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAO,CAAC;8BACX,iBAAO;8CAAC;AAKjB;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,6BAA6B,EAAE,IAAI,EAAE,6BAAa,EAAE,CAAC;IAChF,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,6BAAa,CAAC;8BACb,6BAAa;kDAAC;AAG3B;IADC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,EAAE,CAAC;;uDACzC;AAIxB,MAAa,gBAAiB,SAAQ,2BAAY;CAKjD;AALD,4CAKC;AADC;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,CAAC,cAAc,CAAC,EAAE,CAAC;IACvC,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,cAAc,CAAC;;gDACF","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { ValidateNested } from 'class-validator';\nimport { Type } from 'class-transformer';\nimport { BaseResponse } from './BaseResponse';\nimport { UserDto } from './UserDto';\nimport { UserGrantsDto } from './UserGrantsDto';\n\n\nexport class GetUsersResult {\n @ApiProperty({ description: 'Dati utente', type: UserDto })\n @ValidateNested()\n @Type(() => UserDto)\n utente?: UserDto;\n\n @ApiProperty({ description: 'Abilitazioni e ruoli utente', type: UserGrantsDto })\n @ValidateNested()\n @Type(() => UserGrantsDto)\n userGrants?: UserGrantsDto;\n\n @ApiProperty({ description: 'Extension Fields', type: Object })\n extensionFields?: any;\n\n}\n\nexport class GetUsersResponse extends BaseResponse {\n @ApiProperty({ type: [GetUsersResult] })\n @ValidateNested({ each: true })\n @Type(() => GetUsersResult)\n Result: GetUsersResult[];\n}\n\n\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoginRequest.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/LoginRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAAmD;AAEnD,MAAa,YAAY;CAiBxB;AAjBD,oCAiBC;AATG;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,oBAAoB;QACjC,OAAO,EAAE,aAAa;KACzB,CAAC;IACD,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;IACzD,IAAA,wBAAM,EAAC,CAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,2CAA2C,EAAE,CAAC;;2CAC1D;AAQd;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,uBAAuB;QACpC,OAAO,EAAE,iBAAiB;KAC7B,CAAC;IACD,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;IAC7D,IAAA,wBAAM,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,gDAAgD,EAAE,CAAC;;8CAC7D","sourcesContent":["import { ApiProperty } from \"@nestjs/swagger\";\nimport { IsString, Length } from \"class-validator\";\n\nexport class LoginRequest {\n \n @ApiProperty({\n description: 'Email dell\\'utente',\n example: 'mario.rossi'\n })\n @IsString({ message: \"L'email deve essere una stringa.\" })\n @Length(3, 50, { message: \"L'email deve essere tra 3 e 50 caratteri.\" })\n email: string;\n\n @ApiProperty({\n description: 'Password dell\\'utente',\n example: 'Str0ngP@ssw0rd!'\n })\n @IsString({ message: \"La password deve essere una stringa.\" })\n @Length(8, 100, { message: \"La password deve essere tra 8 e 100 caratteri.\" })\n password: string;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"LoginResponse.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/LoginResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,iDAA8C;AAC9C,iDAA8C;AAE9C,+CAA4C;AAC5C,uCAAoC;AACpC,yDAAyC;AACzC,qDAAiD;AACjD,mDAAgD;AAEhD,MAAa,WAAW;CAuBvB;AAvBD,kCAuBC;AAnBC;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,aAAa,EAAE,IAAI,EAAE,iBAAO,EAAE,CAAC;IAC1D,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,iBAAO,CAAC;8BACX,iBAAO;2CAAC;AAKjB;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,eAAe,EAAE,IAAI,EAAE,CAAC,2BAAY,CAAC,EAAE,CAAC;IACnE,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,2BAAY,CAAC;;2CACD;AAKxB;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,6BAA6B,EAAE,IAAI,EAAE,6BAAa,EAAE,CAAC;IAChF,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,6BAAa,CAAC;8BACb,6BAAa;+CAAC;AAG3B;IADC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,kBAAkB,EAAE,IAAI,EAAE,MAAM,EAAC,CAAC;;oDACxC;AAKtB;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,OAAO,EAAE,IAAI,EAAE,yBAAW,EAAE,CAAC;IACxD,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,yBAAW,CAAC;8BAChB,yBAAW;0CAAC;AAGtB,MAAa,aAAc,SAAQ,2BAAY;CAK9C;AALD,sCAKC;AADC;IAHC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,WAAW,EAAE,CAAC;IAClC,IAAA,gCAAc,GAAE;IAChB,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,WAAW,CAAC;8BAChB,WAAW;6CAAC","sourcesContent":["import { ApiProperty } from \"@nestjs/swagger\";\nimport { BaseResponse } from \"./BaseResponse\";\nimport { FiltriUtente } from \"./FiltriUtente\";\nimport { AbilitazioneMenu } from \"./AbilitazioneMenu\";\nimport { TokenResult } from \"./TokenResult\";\nimport { UserDto } from \"./UserDto\";\nimport { Type } from \"class-transformer\";\nimport { ValidateNested } from \"class-validator\";\nimport { UserGrantsDto } from \"./UserGrantsDto\";\n\nexport class LoginResult {\n @ApiProperty({ description: 'Dati utente', type: UserDto })\n @ValidateNested()\n @Type(() => UserDto)\n utente?: UserDto;\n\n @ApiProperty({ description: 'Filtri utente', type: [FiltriUtente] })\n @ValidateNested({ each: true })\n @Type(() => FiltriUtente)\n filtri?: FiltriUtente[];\n\n @ApiProperty({ description: 'Abilitazioni e ruoli utente', type: UserGrantsDto })\n @ValidateNested()\n @Type(() => UserGrantsDto)\n userGrants?: UserGrantsDto;\n\n @ApiProperty({ description: 'Extension Fields', type: Object})\n extensionFields?: any;\n\n @ApiProperty({ description: 'Token', type: TokenResult })\n @ValidateNested()\n @Type(() => TokenResult)\n token?: TokenResult;\n}\n\nexport class LoginResponse extends BaseResponse {\n @ApiProperty({ type: LoginResult })\n @ValidateNested()\n @Type(() => LoginResult)\n Result: LoginResult;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=MenuItem.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"MenuItem.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/MenuItem.ts"],"names":[],"mappings":"","sourcesContent":[""]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Permission.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/Permission.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAE9C,MAAa,UAAU;CActB;AAdD,gCAcC;AARG;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,gEAAgE;QAC7E,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,QAAQ;KACpB,CAAC;;8CACiB;AAOnB;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,oEAAoE;QACjF,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,EAAE;KACd,CAAC;;oDACuB","sourcesContent":["import { ApiProperty } from \"@nestjs/swagger\";\n\nexport class Permission {\n @ApiProperty({\n description: \"Codice identificativo del menu a cui assegnare l'abilitazione.\",\n type: String,\n example: \"MNU001\"\n })\n codiceMenu: string;\n\n @ApiProperty({\n description: \"Tipo di abilitazione assegnata all'utente per il menu specificato.\",\n type: Number,\n example: 30\n })\n tipoAbilitazione: number;\n}"]}
|
|
@@ -8,7 +8,7 @@ export declare class RegisterRequest extends RegisterRequest_base {
|
|
|
8
8
|
cellulare?: string | null;
|
|
9
9
|
flagSuper?: boolean;
|
|
10
10
|
flagAdminConfigurator?: boolean;
|
|
11
|
-
roles?:
|
|
11
|
+
roles?: number[];
|
|
12
12
|
permissions?: Permission[];
|
|
13
13
|
avatar?: string;
|
|
14
14
|
flagDueFattori?: boolean;
|
|
@@ -57,7 +57,7 @@ __decorate([
|
|
|
57
57
|
__decorate([
|
|
58
58
|
(0, swagger_1.ApiPropertyOptional)({
|
|
59
59
|
description: "Ruoli assegnati all'utente.",
|
|
60
|
-
example: [
|
|
60
|
+
example: [1, 2],
|
|
61
61
|
}),
|
|
62
62
|
__metadata("design:type", Array)
|
|
63
63
|
], RegisterRequest.prototype, "roles", void 0);
|
|
@@ -109,3 +109,4 @@ __decorate([
|
|
|
109
109
|
}),
|
|
110
110
|
__metadata("design:type", String)
|
|
111
111
|
], RegisterRequest.prototype, "htmlMail", void 0);
|
|
112
|
+
//# sourceMappingURL=RegisterRequest.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegisterRequest.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/RegisterRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6E;AAE7E,6CAA0C;AAC1C,yDAAsD;AACtD,iDAA8C;AAE9C,MAAa,eAAgB,SAAQ,IAAA,kBAAQ,EAAC,2BAAY,EAAE,CAAC,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CAAC;;uDACuB;AAMzB;IAJC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,gCAAgC;QAC7C,OAAO,EAAE,YAAY;KACtB,CAAC;;sDACqB;AAMvB;IAJC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,0BAA0B;QACvC,OAAO,EAAE,cAAc;KACxB,CAAC;;kDACiB;AAMnB;IAJC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,0BAA0B;QACvC,OAAO,EAAE,eAAe;KACzB,CAAC;;iDACgB","sourcesContent":["import { ApiProperty, ApiPropertyOptional, OmitType } from \"@nestjs/swagger\";\nimport { StatoRegistrazione } from \"./StatoRegistrazione\";\nimport { Permission } from \"./Permission\";\nimport { TipoAbilitazione } from \"./TipoAbilitazione\";\nimport { FiltriUtente } from \"./FiltriUtente\";\n\nexport class RegisterRequest extends OmitType(FiltriUtente, ['codUte'] as const) {\n @ApiProperty({\n description: \"Email dell'utente.\",\n example: \"mario.rossi@dev.it\",\n })\n email: string;\n\n @ApiPropertyOptional({\n description: \"Cognome dell'utente.\",\n example: \"Rossi\",\n })\n cognome?: string;\n\n @ApiPropertyOptional({ description: \"Nome dell'utente.\", example: \"Mario\" })\n nome?: string;\n\n @ApiPropertyOptional({\n description: \"Numero di cellulare.\",\n example: \"+393401234567\",\n nullable: true,\n })\n cellulare?: string | null;\n\n @ApiPropertyOptional({ description: \"Flag superutente.\", example: false })\n flagSuper?: boolean;\n\n \n @ApiPropertyOptional({\n description: \"Flag che indica se l'utente è configuratore\",\n example: false\n })\n flagAdminConfigurator?: boolean;\n\n @ApiPropertyOptional({\n description: \"Ruoli assegnati all'utente.\",\n example: [1, 2],\n })\n roles?: number[];\n\n @ApiPropertyOptional({\n description: \"Permessi assegnati all'utente.\",\n type: [Permission],\n example: [\n {\n codiceMenu: \"MNUOFFICINA\",\n tipoAbilitazione: TipoAbilitazione.SCRITTURA,\n },\n ],\n })\n permissions?: Permission[];\n\n\n // Campi aggiuntivi utente\n @ApiPropertyOptional({\n description: \"Avatar dell'utente.\",\n example: \"user.svg\",\n })\n avatar?: string;\n\n @ApiPropertyOptional({\n description: \"Flag autenticazione a due fattori.\",\n example: false,\n })\n flagDueFattori?: boolean;\n\n @ApiPropertyOptional({\n description: \"Pagina di default dell'utente.\",\n example: \"/dashboard\",\n })\n paginaDefault?: string;\n\n @ApiPropertyOptional({\n description: \"Ragione sociale cliente.\",\n example: \"ALIVAL STOCK\",\n })\n ragSocCli?: string;\n\n @ApiPropertyOptional({\n description: \"HTML mail personalizzato\",\n example: \"<html></html>\",\n })\n htmlMail?: string;\n \n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RegisterResponse.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/RegisterResponse.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,iDAA8C;AAE9C,MAAa,gBAAiB,SAAQ,2BAAY;CAMjD;AAND,4CAMC;AADC;IAJC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,sDAAsD;QACnE,OAAO,EAAE,YAAY;KACtB,CAAC;;gDACa","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { BaseResponse } from './BaseResponse';\n\nexport class RegisterResponse extends BaseResponse {\n @ApiProperty({\n description: 'Codice identificativo univoco dell’utente registrato',\n example: 'USR-123456'\n })\n Result: string;\n}\n"]}
|
|
@@ -11,13 +11,13 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Role = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
-
const
|
|
14
|
+
const RuoliMenu_1 = require("./RuoliMenu");
|
|
15
15
|
class Role {
|
|
16
16
|
}
|
|
17
17
|
exports.Role = Role;
|
|
18
18
|
__decorate([
|
|
19
|
-
(0, swagger_1.ApiPropertyOptional)({ description: 'Codice univoco del ruolo', required: false }),
|
|
20
|
-
__metadata("design:type",
|
|
19
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Codice univoco del ruolo', required: false, type: Number, example: 1 }),
|
|
20
|
+
__metadata("design:type", Number)
|
|
21
21
|
], Role.prototype, "codiceRuolo", void 0);
|
|
22
22
|
__decorate([
|
|
23
23
|
(0, swagger_1.ApiProperty)({ description: 'Descrizione del ruolo' }),
|
|
@@ -26,7 +26,8 @@ __decorate([
|
|
|
26
26
|
__decorate([
|
|
27
27
|
(0, swagger_1.ApiProperty)({
|
|
28
28
|
description: 'Lista di menù associati al ruolo',
|
|
29
|
-
type: [
|
|
29
|
+
type: [RuoliMenu_1.RuoliMenu]
|
|
30
30
|
}),
|
|
31
31
|
__metadata("design:type", Array)
|
|
32
32
|
], Role.prototype, "menu", void 0);
|
|
33
|
+
//# sourceMappingURL=Role.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/Role.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AAEnE,2CAAwC;AAExC,MAAa,IAAI;CAahB;AAbD,oBAaC;AAXG;IADC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;;yCACvF;AAGrB;IADC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;;8CAC7B;AAOzB;IAJC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,kCAAkC;QAC/C,IAAI,EAAE,CAAC,qBAAS,CAAC;KACpB,CAAC;;kCACgB","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { AbilitazioneMenu } from './AbilitazioneMenu';\nimport { RuoliMenu } from './RuoliMenu';\n\nexport class Role {\n @ApiPropertyOptional({ description: 'Codice univoco del ruolo', required: false, type: Number, example: 1 })\n codiceRuolo?: number;\n\n @ApiProperty({ description: 'Descrizione del ruolo' })\n descrizioneRuolo: string;\n\n\n @ApiProperty({\n description: 'Lista di menù associati al ruolo',\n type: [RuoliMenu]\n })\n menu: RuoliMenu[];\n}\n\n"]}
|
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __decorate = (this && this.__decorate) || function (decorators, target, key, desc) {
|
|
3
|
+
var c = arguments.length, r = c < 3 ? target : desc === null ? desc = Object.getOwnPropertyDescriptor(target, key) : desc, d;
|
|
4
|
+
if (typeof Reflect === "object" && typeof Reflect.decorate === "function") r = Reflect.decorate(decorators, target, key, desc);
|
|
5
|
+
else for (var i = decorators.length - 1; i >= 0; i--) if (d = decorators[i]) r = (c < 3 ? d(r) : c > 3 ? d(target, key, r) : d(target, key)) || r;
|
|
6
|
+
return c > 3 && r && Object.defineProperty(target, key, r), r;
|
|
7
|
+
};
|
|
8
|
+
var __metadata = (this && this.__metadata) || function (k, v) {
|
|
9
|
+
if (typeof Reflect === "object" && typeof Reflect.metadata === "function") return Reflect.metadata(k, v);
|
|
10
|
+
};
|
|
11
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
|
+
exports.RuoliMenu = void 0;
|
|
13
|
+
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const TipoAbilitazione_1 = require("./TipoAbilitazione");
|
|
16
|
+
class RuoliMenu {
|
|
17
|
+
}
|
|
18
|
+
exports.RuoliMenu = RuoliMenu;
|
|
19
|
+
__decorate([
|
|
20
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
21
|
+
description: 'Codice Ruolo',
|
|
22
|
+
example: 1,
|
|
23
|
+
}),
|
|
24
|
+
(0, class_validator_1.IsNumber)(),
|
|
25
|
+
(0, class_validator_1.IsOptional)(),
|
|
26
|
+
__metadata("design:type", Number)
|
|
27
|
+
], RuoliMenu.prototype, "codiceRuolo", void 0);
|
|
28
|
+
__decorate([
|
|
29
|
+
(0, swagger_1.ApiProperty)({
|
|
30
|
+
description: 'Codice univoco del menu',
|
|
31
|
+
example: 'MNUELENCOCLIENTI',
|
|
32
|
+
}),
|
|
33
|
+
(0, class_validator_1.IsString)(),
|
|
34
|
+
(0, class_validator_1.IsNotEmpty)({ message: 'Il codice menu è obbligatorio.' }),
|
|
35
|
+
__metadata("design:type", String)
|
|
36
|
+
], RuoliMenu.prototype, "codiceMenu", void 0);
|
|
37
|
+
__decorate([
|
|
38
|
+
(0, swagger_1.ApiProperty)({
|
|
39
|
+
description: 'Tipo di abilitazione',
|
|
40
|
+
enum: TipoAbilitazione_1.TipoAbilitazione,
|
|
41
|
+
example: TipoAbilitazione_1.TipoAbilitazione.LETTURA,
|
|
42
|
+
}),
|
|
43
|
+
(0, class_validator_1.IsEnum)(TipoAbilitazione_1.TipoAbilitazione, { message: 'Il tipo di abilitazione non è valido.' }),
|
|
44
|
+
__metadata("design:type", Number)
|
|
45
|
+
], RuoliMenu.prototype, "tipoAbilitazione", void 0);
|
|
46
|
+
//# sourceMappingURL=RuoliMenu.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"RuoliMenu.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/RuoliMenu.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,qDAAqF;AACrF,yDAAsD;AAEtD,MAAa,SAAS;CAwBrB;AAxBD,8BAwBC;AAjBC;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,cAAc;QAC3B,OAAO,EAAE,CAAC;KACX,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,GAAE;;8CACQ;AAQrB;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,yBAAyB;QACtC,OAAO,EAAE,kBAAkB;KAC5B,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;;6CACvC;AAQnB;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,sBAAsB;QACnC,IAAI,EAAE,mCAAgB;QACtB,OAAO,EAAE,mCAAgB,CAAC,OAAO;KAClC,CAAC;IACD,IAAA,wBAAM,EAAC,mCAAgB,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;;mDAC5C","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { IsEnum, IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator';\nimport { TipoAbilitazione } from './TipoAbilitazione';\n\nexport class RuoliMenu {\n @ApiPropertyOptional({\n description: 'Codice Ruolo',\n example: 1,\n })\n @IsNumber()\n @IsOptional()\n codiceRuolo?: number;\n\n @ApiProperty({\n description: 'Codice univoco del menu',\n example: 'MNUELENCOCLIENTI',\n })\n @IsString()\n @IsNotEmpty({ message: 'Il codice menu è obbligatorio.' })\n codiceMenu: string;\n\n @ApiProperty({\n description: 'Tipo di abilitazione',\n enum: TipoAbilitazione,\n example: TipoAbilitazione.LETTURA,\n })\n @IsEnum(TipoAbilitazione, { message: 'Il tipo di abilitazione non è valido.' })\n tipoAbilitazione: TipoAbilitazione;\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"SetStatoRegistrazione.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/SetStatoRegistrazione.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,6DAA0D;AAE1D,MAAa,wBAAwB;CAapC;AAbD,4DAaC;AARC;IAJC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,mCAAmC;QAChD,OAAO,EAAE,GAAG;KACb,CAAC;;8DACmB;AAOrB;IALC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,8BAA8B;QAC3C,IAAI,EAAE,uCAAkB;QACxB,OAAO,EAAE,uCAAkB,CAAC,MAAM;KACnC,CAAC;;oEACqC","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { StatoRegistrazione } from './StatoRegistrazione';\n\nexport class SetStatoRegistrazioneDto {\n @ApiProperty({\n description: \"Codice identificativo dell'utente\",\n example: 123,\n })\n codiceUtente: number;\n\n @ApiProperty({\n description: 'Nuovo stato di registrazione',\n enum: StatoRegistrazione,\n example: StatoRegistrazione.DELETE,\n })\n statoRegistrazione: StatoRegistrazione;\n}\n"]}
|
|
@@ -11,3 +11,4 @@ var StatoRegistrazione;
|
|
|
11
11
|
StatoRegistrazione[StatoRegistrazione["BLOCC"] = 99] = "BLOCC";
|
|
12
12
|
})(StatoRegistrazione || (exports.StatoRegistrazione = StatoRegistrazione = {}));
|
|
13
13
|
exports.StatoRegistrazioneValues = [0, 5, 10, 20, 50, 99];
|
|
14
|
+
//# sourceMappingURL=StatoRegistrazione.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"StatoRegistrazione.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/StatoRegistrazione.ts"],"names":[],"mappings":";;;AAAA,IAAY,kBAOX;AAPD,WAAY,kBAAkB;IAC5B,2DAAQ,CAAA;IACR,+DAAU,CAAA;IACV,8DAAU,CAAA;IACV,4DAAS,CAAA;IACT,gEAAW,CAAA;IACX,8DAAU,CAAA;AACZ,CAAC,EAPW,kBAAkB,kCAAlB,kBAAkB,QAO7B;AAEY,QAAA,wBAAwB,GAAG,CAAC,CAAC,EAAE,CAAC,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,EAAE,CAAU,CAAC","sourcesContent":["export enum StatoRegistrazione {\n NULL = 0,\n INSERT = 5,\n INVIO = 10,\n CONF = 20,\n DELETE = 50,\n BLOCC = 99,\n}\n\nexport const StatoRegistrazioneValues = [0, 5, 10, 20, 50, 99] as const;\n"]}
|
|
@@ -8,3 +8,4 @@ var TipoAbilitazione;
|
|
|
8
8
|
TipoAbilitazione[TipoAbilitazione["SCRITTURA"] = 20] = "SCRITTURA";
|
|
9
9
|
TipoAbilitazione[TipoAbilitazione["SPECIAL"] = 30] = "SPECIAL";
|
|
10
10
|
})(TipoAbilitazione || (exports.TipoAbilitazione = TipoAbilitazione = {}));
|
|
11
|
+
//# sourceMappingURL=TipoAbilitazione.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TipoAbilitazione.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/TipoAbilitazione.ts"],"names":[],"mappings":";;;AAAA,IAAY,gBAKX;AALD,WAAY,gBAAgB;IACxB,6DAAW,CAAA;IACX,8DAAY,CAAA;IACZ,kEAAc,CAAA;IACd,8DAAY,CAAA;AAChB,CAAC,EALW,gBAAgB,gCAAhB,gBAAgB,QAK3B","sourcesContent":["export enum TipoAbilitazione {\n NESSUNA = 0,\n LETTURA = 10,\n SCRITTURA = 20,\n SPECIAL = 30\n}"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TipoFiltro.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/TipoFiltro.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,yDAAyC;AACzC,qDAA2G;AAC3G,iDAA8C;AAE9C,MAAa,UAAU;IAAvB;QAyCE,eAAU,GAAW,CAAC,CAAC;IACzB,CAAC;CAAA;AA1CD,gCA0CC;AAlCC;IAPC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,mCAAmC;QAChD,OAAO,EAAE,CAAC;QACV,IAAI,EAAE,MAAM;KACb,CAAC;IACD,IAAA,uBAAK,GAAE;IACP,IAAA,4BAAU,GAAE;;0CACE;AAWf;IATC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,wBAAwB;QACrC,OAAO,EAAE,iBAAiB;QAC1B,SAAS,EAAE,EAAE;QACb,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,4BAAU,GAAE;;0CACG;AAWhB;IATC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,2BAA2B;QACxC,OAAO,EAAE,aAAa;QACtB,SAAS,EAAE,EAAE;QACb,QAAQ,EAAE,KAAK;KAChB,CAAC;IACD,IAAA,0BAAQ,GAAE;IACV,IAAA,2BAAS,EAAC,EAAE,CAAC;IACb,IAAA,4BAAU,GAAE;;0CACG;AAWhB;IATC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,kBAAkB;QAC/B,OAAO,EAAE,CAAC;QACV,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;QACZ,QAAQ,EAAE,KAAK;QACf,OAAO,EAAE,CAAC;KACX,CAAC;IACD,IAAA,sBAAI,EAAC,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC;IACX,IAAA,4BAAU,GAAE;;8CACU;AAGzB,MAAa,iBAAkB,SAAQ,2BAAY;CAKlD;AALD,8CAKC;AADG;IAHG,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,UAAU,EAAE,OAAO,EAAE,IAAI,EAAE,CAAC;IAChD,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,UAAU,CAAC;;iDACJ;AAGzB,MAAa,gBAAgB;CAS5B;AATD,4CASC;AADG;IAPC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,CAAC,CAAC,EAAC,CAAC,CAAC;KACd,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,sBAAI,EAAC,CAAC,CAAC,EAAC,CAAC,CAAC,CAAC;IACX,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;;oDACD","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport { IsIn, IsInt, IsNotEmpty, IsOptional, IsString, MaxLength, ValidateNested } from 'class-validator';\nimport { BaseResponse } from './BaseResponse';\n\nexport class TipoFiltro {\n @ApiProperty({\n description: 'Identificativo del tipo di filtro',\n example: 1,\n type: Number,\n })\n @IsInt()\n @IsNotEmpty()\n tipFil: number;\n\n @ApiProperty({\n description: 'Descrizione del filtro',\n example: 'Filtro standard',\n maxLength: 20,\n required: false,\n })\n @IsString()\n @MaxLength(20)\n @IsOptional()\n desFil?: string;\n\n @ApiProperty({\n description: 'Campo associato al filtro',\n example: 'campoValore',\n maxLength: 20,\n required: false,\n })\n @IsString()\n @MaxLength(20)\n @IsOptional()\n fldFil?: string;\n\n @ApiProperty({\n description: 'Filtro abilitato',\n example: 1,\n enum: [0, 1],\n required: false,\n default: 1,\n })\n @IsIn([0,1])\n @IsOptional()\n flgEnabled?: 0 | 1 = 1;\n}\n\nexport class GetFiltriResponse extends BaseResponse {\n @ApiProperty({ type: TipoFiltro, isArray: true })\n @ValidateNested({ each: true })\n @Type(() => TipoFiltro)\n Result : TipoFiltro[]\n}\n\nexport class GetFiltriRequest {\n @ApiPropertyOptional({\n description: 'Mostra solo abilitati',\n enum: [0,1]\n })\n @IsOptional()\n @IsIn([0,1])\n @Type(() => Number)\n flgEnabled?: 0 | 1\n}\n\n\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"TokenResult.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/TokenResult.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAE9C,MAAa,WAAW;CAmBvB;AAnBD,kCAmBC;AAdG;IAJC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,wCAAwC;QACrD,OAAO,EAAE,MAAM;KAClB,CAAC;;8CACgB;AAMlB;IAJC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,8BAA8B;QAC3C,OAAO,EAAE,yCAAyC;KACrD,CAAC;;0CACY;AAOd;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,iCAAiC;QAC9C,IAAI,EAAE,CAAC,QAAQ,EAAE,OAAO,CAAC;QACzB,OAAO,EAAE,QAAQ;KACpB,CAAC;;yCACuB","sourcesContent":["import { ApiProperty } from \"@nestjs/swagger\";\n\nexport class TokenResult {\n @ApiProperty({\n description: \"Tempo di scadenza del token in secondi\",\n example: \"3600\"\n })\n expiresIn: string;\n\n @ApiProperty({\n description: \"Valore del token JWT o Basic\",\n example: \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\"\n })\n value: string;\n\n @ApiProperty({\n description: \"Tipo di token di autenticazione\",\n enum: [\"Bearer\", \"Basic\"],\n example: \"Bearer\"\n })\n type: \"Bearer\" | \"Basic\";\n}\n"]}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"UpdateEnabledStatusRequest.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/UpdateEnabledStatusRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA4C;AAE5C,MAAa,0BAA0B;CAQtC;AARD,gEAQC;AADC;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,6BAA6B;QAC1C,OAAO,EAAE,IAAI;QACb,IAAI,EAAE,OAAO;KACd,CAAC;IACD,IAAA,2BAAS,EAAC,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;;2DACpD","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\nimport { IsBoolean } from 'class-validator';\n\nexport class UpdateEnabledStatusRequest {\n @ApiProperty({\n description: 'Nuovo stato di abilitazione',\n example: true,\n type: Boolean,\n })\n @IsBoolean({ message: 'Il valore di enabled deve essere booleano.' })\n enabled: boolean;\n}\n"]}
|