emilsoftware-utilities 2.0.0-dev.31 → 2.0.0-dev.33
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/Console/console.js +19 -46
- package/dist/accessi-module/Console/console.js.map +1 -1
- package/dist/accessi-module/Console/generated/model/authenticatedUserPayloadDto.d.ts +1 -1
- package/dist/accessi-module/Console/generated/model/authenticatedUserPayloadDto.js.map +1 -1
- package/dist/accessi-module/Console/generated/model/createMenuGroupRequest.d.ts +0 -5
- package/dist/accessi-module/Console/generated/model/createMenuGroupRequest.js.map +1 -1
- package/dist/accessi-module/Console/generated/model/groupWithMenusEntity.d.ts +0 -2
- package/dist/accessi-module/Console/generated/model/groupWithMenusEntity.js.map +1 -1
- package/dist/accessi-module/Console/generated/model/menuEntity.d.ts +0 -2
- package/dist/accessi-module/Console/generated/model/menuEntity.js.map +1 -1
- package/dist/accessi-module/Console/generated/model/publicRegisterRequest.d.ts +0 -6
- package/dist/accessi-module/Console/generated/model/publicRegisterRequest.js.map +1 -1
- package/dist/accessi-module/Console/generated/model/registerRequest.d.ts +2 -8
- package/dist/accessi-module/Console/generated/model/registerRequest.js.map +1 -1
- package/dist/accessi-module/Console/generated/model/updateMenuGroupRequest.d.ts +0 -5
- package/dist/accessi-module/Console/generated/model/updateMenuGroupRequest.js.map +1 -1
- package/dist/accessi-module/Console/generated/model/userDto.d.ts +3 -33
- package/dist/accessi-module/Console/generated/model/userDto.js.map +1 -1
- package/dist/accessi-module/Console/wiki.js +2 -2
- package/dist/accessi-module/Console/wiki.js.map +1 -1
- package/dist/accessi-module/Controllers/ConfiguratorController.js +2 -2
- package/dist/accessi-module/Controllers/ConfiguratorController.js.map +1 -1
- package/dist/accessi-module/Dtos/AuthenticatedUserPayloadDto.d.ts +1 -1
- package/dist/accessi-module/Dtos/AuthenticatedUserPayloadDto.js +1 -1
- package/dist/accessi-module/Dtos/AuthenticatedUserPayloadDto.js.map +1 -1
- package/dist/accessi-module/Dtos/CatalogDtos.d.ts +0 -2
- package/dist/accessi-module/Dtos/CatalogDtos.js +0 -14
- package/dist/accessi-module/Dtos/CatalogDtos.js.map +1 -1
- package/dist/accessi-module/Dtos/GetGroupsWithMenusResponse.d.ts +0 -1
- package/dist/accessi-module/Dtos/GetGroupsWithMenusResponse.js +0 -8
- package/dist/accessi-module/Dtos/GetGroupsWithMenusResponse.js.map +1 -1
- package/dist/accessi-module/Dtos/GetMenusResponse.d.ts +0 -1
- package/dist/accessi-module/Dtos/GetMenusResponse.js +0 -8
- package/dist/accessi-module/Dtos/GetMenusResponse.js.map +1 -1
- package/dist/accessi-module/Dtos/PublicRegisterRequest.d.ts +1 -1
- package/dist/accessi-module/Dtos/PublicRegisterRequest.js +1 -1
- package/dist/accessi-module/Dtos/PublicRegisterRequest.js.map +1 -1
- package/dist/accessi-module/Dtos/RegisterRequest.d.ts +1 -4
- package/dist/accessi-module/Dtos/RegisterRequest.js +2 -31
- package/dist/accessi-module/Dtos/RegisterRequest.js.map +1 -1
- package/dist/accessi-module/Dtos/UserDto.d.ts +2 -17
- package/dist/accessi-module/Dtos/UserDto.js +4 -113
- package/dist/accessi-module/Dtos/UserDto.js.map +1 -1
- package/dist/accessi-module/Services/AuthService/AuthService.js +0 -2
- package/dist/accessi-module/Services/AuthService/AuthService.js.map +1 -1
- package/dist/accessi-module/Services/PermissionService/PermissionService.js +5 -13
- package/dist/accessi-module/Services/PermissionService/PermissionService.js.map +1 -1
- package/dist/accessi-module/Services/UserService/UserService.d.ts +1 -3
- package/dist/accessi-module/Services/UserService/UserService.js +19 -131
- package/dist/accessi-module/Services/UserService/UserService.js.map +1 -1
- package/dist/accessi-module/database-updates/AccessiDatabaseUpdater.js +23 -0
- package/dist/accessi-module/database-updates/AccessiDatabaseUpdater.js.map +1 -1
- package/dist/accessi-module/database-updates/accessiSchema.d.ts +23 -1
- package/dist/accessi-module/database-updates/accessiSchema.js +29 -12
- package/dist/accessi-module/database-updates/accessiSchema.js.map +1 -1
- package/dist/accessi-module/security/accessControl.d.ts +2 -2
- package/dist/accessi-module/security/accessControl.js +2 -2
- package/dist/accessi-module/security/accessControl.js.map +1 -1
- package/dist/accessi-module/security/authenticatedToken.d.ts +1 -1
- package/dist/accessi-module/security/authenticatedToken.js +2 -2
- package/dist/accessi-module/security/authenticatedToken.js.map +1 -1
- package/dist/emilsoftware-utilities-2.0.0-dev.33.tgz +0 -0
- package/package.json +1 -1
- package/dist/emilsoftware-utilities-2.0.0-dev.31.tgz +0 -0
|
@@ -45,7 +45,7 @@ let ConfiguratorController = ConfiguratorController_1 = class ConfiguratorContro
|
|
|
45
45
|
throw new common_1.BadRequestException('Lo stato di abilitazione e obbligatorio.');
|
|
46
46
|
const authenticatedUser = (0, accessControl_1.getAuthenticatedAccessiUser)(req);
|
|
47
47
|
const canConfigure = authenticatedUser.flagSuper ||
|
|
48
|
-
authenticatedUser.
|
|
48
|
+
authenticatedUser.flagAdmin ||
|
|
49
49
|
(yield this.userService.isAdminConfigurator(authenticatedUser.codiceUtente));
|
|
50
50
|
if (!canConfigure) {
|
|
51
51
|
return Utilities_1.RestUtilities.sendErrorMessage(res, 'Utente non autorizzato ad aggiornare i menu.', ConfiguratorController_1.name, 403);
|
|
@@ -68,7 +68,7 @@ let ConfiguratorController = ConfiguratorController_1 = class ConfiguratorContro
|
|
|
68
68
|
throw new common_1.BadRequestException('Lo stato di abilitazione e obbligatorio.');
|
|
69
69
|
const authenticatedUser = (0, accessControl_1.getAuthenticatedAccessiUser)(req);
|
|
70
70
|
const canConfigure = authenticatedUser.flagSuper ||
|
|
71
|
-
authenticatedUser.
|
|
71
|
+
authenticatedUser.flagAdmin ||
|
|
72
72
|
(yield this.userService.isAdminConfigurator(authenticatedUser.codiceUtente));
|
|
73
73
|
if (!canConfigure) {
|
|
74
74
|
return Utilities_1.RestUtilities.sendErrorMessage(res, 'Utente non autorizzato ad aggiornare i gruppi menu.', ConfiguratorController_1.name, 403);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ConfiguratorController.js","sourceRoot":"","sources":["../../../src/accessi-module/Controllers/ConfiguratorController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,6CAOyB;AAEzB,+CAAgD;AAChD,kCAAoF;AACpF,6FAA0F;AAC1F,qEAAkE;AAClE,sDAAqD;AACrD,6DAAwE;AAOjE,IAAM,sBAAsB,8BAA5B,MAAM,sBAAsB;IACjC,YACU,WAAwB,EACxB,mBAAwC;QADxC,gBAAW,GAAX,WAAW,CAAa;QACxB,wBAAmB,GAAnB,mBAAmB,CAAqB;IAC/C,CAAC;IAmBE,cAAc,CACG,UAAkB,EAC/B,IAAgC,EACjC,GAAY,EACZ,GAAa;;YAEpB,IAAI,CAAC;gBACH,IAAI,CAAC,UAAU;oBAAE,MAAM,IAAI,4BAAmB,CAAC,oCAAoC,CAAC,CAAC;gBACrF,IAAI,CAAA,IAAI,aAAJ,IAAI,uBAAJ,IAAI,CAAE,OAAO,MAAK,SAAS;oBAAE,MAAM,IAAI,4BAAmB,CAAC,0CAA0C,CAAC,CAAC;gBAE3G,MAAM,iBAAiB,GAAG,IAAA,2CAA2B,EAAC,GAAG,CAAC,CAAC;gBAE3D,MAAM,YAAY,GAChB,iBAAiB,CAAC,SAAS;oBAC3B,iBAAiB,CAAC,qBAAqB;oBACvC,CAAC,MAAM,IAAI,CAAC,WAAW,CAAC,mBAAmB,CAAC,iBAAiB,CAAC,YAAY,CAAC,CAAC,CAAC;gBAC/E,IAAI,CAAC,YAAY,EAAE,CAAC;oBAClB,OAAO,yBAAa,CAAC,gBAAgB,CACnC,GAAG,EACH,8CAA8C,EAC9C,wBAAsB,CAAC,IAAI,EAC3B,GAAG,CACJ,CAAC;gBACJ,CAAC;gBAED,MAAM,IAAI,CAAC,mBAAmB,CAAC,cAAc,CAAC,UAAU,EAAE,IAAI,CAAC,OAAO,CAAC,CAAC;gBAExE,MAAM,MAAM,GAAG,IAAI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AhHU,sBAAsB;IALlC,IAAA,uBAAa,GAAE;IACf,IAAA,iBAAO,EAAC,cAAc,CAAC;IACvB,IAAA,mBAAU,EAAC,sBAAsB,CAAC;IAClC,IAAA,kBAAS,EAAC,6BAAc,CAAC;IAC1B,wGAAwG;;qCAG/E,yBAAW;QACH,yCAAmB;GAHvC,sBAAsB,CAiHlC","sourcesContent":["import {\n BadRequestException,\n Body,\n Controller,\n Param,\n Patch,\n Req,\n Res,\n UseGuards,\n} from '@nestjs/common';\nimport {\n ApiBearerAuth,\n ApiBody,\n ApiOperation,\n ApiParam,\n ApiResponse,\n ApiTags,\n} from '@nestjs/swagger';\nimport { Request, Response } from 'express';\nimport { RestUtilities } from '../../Utilities';\nimport { ActionResponse, ErrorResponse, UpdateEnabledStatusRequest } from '../Dtos';\nimport { ConfiguratorService } from '../Services/ConfiguratorService/ConfiguratorService';\nimport { UserService } from '../Services/UserService/UserService';\nimport { JwtSimpleGuard } from '../jwt/jwt.strategy';\nimport { getAuthenticatedAccessiUser } from '../security/accessControl';\n\n@ApiBearerAuth()\n@ApiTags('Configurator')\n@Controller('accessi/configurator')\n@UseGuards(JwtSimpleGuard)\n/** Endpoint amministrativi per abilitare o disabilitare cataloghi menu senza cancellarne lo storico. */\nexport class ConfiguratorController {\n constructor(\n private userService: UserService,\n private configuratorService: ConfiguratorService,\n ) {}\n\n @ApiOperation({\n summary: 'Aggiorna lo stato di abilitazione di un menu',\n operationId: 'setMenuEnabled',\n })\n @ApiParam({\n name: 'codiceMenu',\n description: 'Codice identificativo del menu da aggiornare',\n required: true,\n example: 'MNU001',\n })\n @ApiBody({ type: UpdateEnabledStatusRequest })\n @ApiResponse({ status: 200, description: 'Stato del menu aggiornato con successo', type: ActionResponse })\n @ApiResponse({ status: 400, description: 'Errore di validazione nei dati inviati', type: ErrorResponse })\n @ApiResponse({ status: 401, description: 'Utente non autenticato o token non valido', type: ErrorResponse })\n @ApiResponse({ status: 403, description: \"Utente non autorizzato ad eseguire l'operazione\", type: ErrorResponse })\n @ApiResponse({ status: 500, description: 'Errore interno del server', type: ErrorResponse })\n @Patch('menus/:codiceMenu/enabled')\n async setMenuEnabled(\n @Param('codiceMenu') codiceMenu: string,\n @Body() body: UpdateEnabledStatusRequest,\n @Req() req: Request,\n @Res() res: Response,\n ) {\n try {\n if (!codiceMenu) throw new BadRequestException('Il codice del menu e obbligatorio.');\n if (body?.enabled === undefined) throw new BadRequestException('Lo stato di abilitazione e obbligatorio.');\n\n const authenticatedUser = getAuthenticatedAccessiUser(req);\n\n const canConfigure =\n authenticatedUser.flagSuper ||\n authenticatedUser.flagAdminConfigurator ||\n (await this.userService.isAdminConfigurator(authenticatedUser.codiceUtente));\n if (!canConfigure) {\n return RestUtilities.sendErrorMessage(\n res,\n 'Utente non autorizzato ad aggiornare i menu.',\n ConfiguratorController.name,\n 403,\n );\n }\n\n await this.configuratorService.setMenuEnabled(codiceMenu, body.enabled);\n\n const action = body.enabled ? 'abilitato' : 'disabilitato';\n return RestUtilities.sendOKMessage(\n res,\n `Il menu ${codiceMenu} e stato ${action} con successo.`,\n );\n } catch (error) {\n return RestUtilities.sendErrorMessage(res, error, ConfiguratorController.name);\n }\n }\n\n @ApiOperation({\n summary: 'Aggiorna lo stato di abilitazione di un gruppo menu',\n operationId: 'setGroupEnabled',\n })\n @ApiParam({\n name: 'codiceGruppo',\n description: 'Codice identificativo del gruppo da aggiornare',\n required: true,\n example: 'GRP01',\n })\n @ApiBody({ type: UpdateEnabledStatusRequest })\n @ApiResponse({ status: 200, description: 'Stato del gruppo aggiornato con successo', type: ActionResponse })\n @ApiResponse({ status: 400, description: 'Errore di validazione nei dati inviati', type: ErrorResponse })\n @ApiResponse({ status: 401, description: 'Utente non autenticato o token non valido', type: ErrorResponse })\n @ApiResponse({ status: 403, description: \"Utente non autorizzato ad eseguire l'operazione\", type: ErrorResponse })\n @ApiResponse({ status: 500, description: 'Errore interno del server', type: ErrorResponse })\n @Patch('groups/:codiceGruppo/enabled')\n async setGroupEnabled(\n @Param('codiceGruppo') codiceGruppo: string,\n @Body() body: UpdateEnabledStatusRequest,\n @Req() req: Request,\n @Res() res: Response,\n ) {\n try {\n if (!codiceGruppo) throw new BadRequestException('Il codice del gruppo e obbligatorio.');\n if (body?.enabled === undefined) throw new BadRequestException('Lo stato di abilitazione e obbligatorio.');\n\n const authenticatedUser = getAuthenticatedAccessiUser(req);\n\n const canConfigure =\n authenticatedUser.flagSuper ||\n authenticatedUser.flagAdminConfigurator ||\n (await this.userService.isAdminConfigurator(authenticatedUser.codiceUtente));\n if (!canConfigure) {\n return RestUtilities.sendErrorMessage(\n res,\n 'Utente non autorizzato ad aggiornare i gruppi menu.',\n ConfiguratorController.name,\n 403,\n );\n }\n\n await this.configuratorService.setGroupEnabled(codiceGruppo, body.enabled);\n\n const action = body.enabled ? 'abilitato' : 'disabilitato';\n return RestUtilities.sendOKMessage(\n res,\n `Il gruppo ${codiceGruppo} e stato ${action} con successo.`,\n );\n } catch (error) {\n return RestUtilities.sendErrorMessage(res, error, ConfiguratorController.name);\n }\n }\n}\n"]}
|
|
1
|
+
{"version":3,"file":"ConfiguratorController.js","sourceRoot":"","sources":["../../../src/accessi-module/Controllers/ConfiguratorController.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;AAAA,2CASwB;AACxB,6CAOyB;AAEzB,+CAAgD;AAChD,kCAAoF;AACpF,6FAA0F;AAC1F,qEAAkE;AAClE,sDAAqD;AACrD,6DAAwE;AAOjE,IAAM,sBAAsB,8BAA5B,MAAM,sBAAsB;IACjC,YACU,WAAwB,EACxB,mBAAwC;QADxC,gBAAW,GAAX,WAAW,CAAa;QACxB,wBAAmB,GAAnB,mBAAmB,CAAqB;IAC/C,CAAC;IAmBE,cAAc,CACG,UAAkB,EAC/B,IAAgC,EACjC,GAAY,EACZ,GAAa;;YAEpB,IAAI,CAAC;gBACH,IAAI,CAAC,UAAU;oBAAE,MAAM,IAAI,4BAAmB,CAAC,oCAAoC,CAAC,CAAC;gBAC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EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,wCAAwC,EAAE,IAAI,EAAE,oBAAa,EAAE,CAAC;IACxG,IAAA,qBAAW,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,2CAA2C,EAAE,IAAI,EAAE,oBAAa,EAAE,CAAC;IAC3G,IAAA,qBAAW,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,iDAAiD,EAAE,IAAI,EAAE,oBAAa,EAAE,CAAC;IACjH,IAAA,qBAAW,EAAC,EAAE,MAAM,EAAE,GAAG,EAAE,WAAW,EAAE,2BAA2B,EAAE,IAAI,EAAE,oBAAa,EAAE,CAAC;IAC3F,IAAA,cAAK,EAAC,8BAA8B,CAAC;IAEnC,WAAA,IAAA,cAAK,EAAC,cAAc,CAAC,CAAA;IACrB,WAAA,IAAA,aAAI,GAAE,CAAA;IACN,WAAA,IAAA,YAAG,GAAE,CAAA;IACL,WAAA,IAAA,YAAG,GAAE,CAAA;;6CAFQ,iCAA0B;;6DAiCzC;iCAhHU,sBAAsB;IALlC,IAAA,uBAAa,GAAE;IACf,IAAA,iBAAO,EAAC,cAAc,CAAC;IACvB,IAAA,mBAAU,EAAC,sBAAsB,CAAC;IAClC,IAAA,kBAAS,EAAC,6BAAc,CAAC;IAC1B,wGAAwG;;qCAG/E,yBAAW;QACH,yCAAmB;GAHvC,sBAAsB,CAiHlC","sourcesContent":["import {\n BadRequestException,\n Body,\n Controller,\n Param,\n Patch,\n Req,\n Res,\n UseGuards,\n} from '@nestjs/common';\nimport {\n ApiBearerAuth,\n ApiBody,\n ApiOperation,\n ApiParam,\n ApiResponse,\n ApiTags,\n} from '@nestjs/swagger';\nimport { Request, Response } from 'express';\nimport { RestUtilities } from '../../Utilities';\nimport { ActionResponse, ErrorResponse, UpdateEnabledStatusRequest } from '../Dtos';\nimport { ConfiguratorService } from '../Services/ConfiguratorService/ConfiguratorService';\nimport { UserService } from '../Services/UserService/UserService';\nimport { JwtSimpleGuard } from '../jwt/jwt.strategy';\nimport { getAuthenticatedAccessiUser } from '../security/accessControl';\n\n@ApiBearerAuth()\n@ApiTags('Configurator')\n@Controller('accessi/configurator')\n@UseGuards(JwtSimpleGuard)\n/** Endpoint amministrativi per abilitare o disabilitare cataloghi menu senza cancellarne lo storico. */\nexport class ConfiguratorController {\n constructor(\n private userService: UserService,\n private configuratorService: ConfiguratorService,\n ) {}\n\n @ApiOperation({\n summary: 'Aggiorna lo stato di abilitazione di un menu',\n operationId: 'setMenuEnabled',\n })\n @ApiParam({\n name: 'codiceMenu',\n description: 'Codice identificativo del menu da aggiornare',\n required: true,\n example: 'MNU001',\n })\n @ApiBody({ type: UpdateEnabledStatusRequest })\n @ApiResponse({ status: 200, description: 'Stato del menu aggiornato con successo', type: ActionResponse })\n @ApiResponse({ status: 400, description: 'Errore di validazione nei dati inviati', type: ErrorResponse })\n @ApiResponse({ status: 401, description: 'Utente non autenticato o token non valido', type: ErrorResponse })\n @ApiResponse({ status: 403, description: \"Utente non autorizzato ad eseguire l'operazione\", type: ErrorResponse })\n @ApiResponse({ status: 500, description: 'Errore interno del server', type: ErrorResponse })\n @Patch('menus/:codiceMenu/enabled')\n async setMenuEnabled(\n @Param('codiceMenu') codiceMenu: string,\n @Body() body: UpdateEnabledStatusRequest,\n @Req() req: Request,\n @Res() res: Response,\n ) {\n try {\n if (!codiceMenu) throw new BadRequestException('Il codice del menu e obbligatorio.');\n if (body?.enabled === undefined) throw new BadRequestException('Lo stato di abilitazione e obbligatorio.');\n\n const authenticatedUser = getAuthenticatedAccessiUser(req);\n\n const canConfigure =\n authenticatedUser.flagSuper ||\n authenticatedUser.flagAdmin ||\n (await this.userService.isAdminConfigurator(authenticatedUser.codiceUtente));\n if (!canConfigure) {\n return RestUtilities.sendErrorMessage(\n res,\n 'Utente non autorizzato ad aggiornare i menu.',\n ConfiguratorController.name,\n 403,\n );\n }\n\n await this.configuratorService.setMenuEnabled(codiceMenu, body.enabled);\n\n const action = body.enabled ? 'abilitato' : 'disabilitato';\n return RestUtilities.sendOKMessage(\n res,\n `Il menu ${codiceMenu} e stato ${action} con successo.`,\n );\n } catch (error) {\n return RestUtilities.sendErrorMessage(res, error, ConfiguratorController.name);\n }\n }\n\n @ApiOperation({\n summary: 'Aggiorna lo stato di abilitazione di un gruppo menu',\n operationId: 'setGroupEnabled',\n })\n @ApiParam({\n name: 'codiceGruppo',\n description: 'Codice identificativo del gruppo da aggiornare',\n required: true,\n example: 'GRP01',\n })\n @ApiBody({ type: UpdateEnabledStatusRequest })\n @ApiResponse({ status: 200, description: 'Stato del gruppo aggiornato con successo', type: ActionResponse })\n @ApiResponse({ status: 400, description: 'Errore di validazione nei dati inviati', type: ErrorResponse })\n @ApiResponse({ status: 401, description: 'Utente non autenticato o token non valido', type: ErrorResponse })\n @ApiResponse({ status: 403, description: \"Utente non autorizzato ad eseguire l'operazione\", type: ErrorResponse })\n @ApiResponse({ status: 500, description: 'Errore interno del server', type: ErrorResponse })\n @Patch('groups/:codiceGruppo/enabled')\n async setGroupEnabled(\n @Param('codiceGruppo') codiceGruppo: string,\n @Body() body: UpdateEnabledStatusRequest,\n @Req() req: Request,\n @Res() res: Response,\n ) {\n try {\n if (!codiceGruppo) throw new BadRequestException('Il codice del gruppo e obbligatorio.');\n if (body?.enabled === undefined) throw new BadRequestException('Lo stato di abilitazione e obbligatorio.');\n\n const authenticatedUser = getAuthenticatedAccessiUser(req);\n\n const canConfigure =\n authenticatedUser.flagSuper ||\n authenticatedUser.flagAdmin ||\n (await this.userService.isAdminConfigurator(authenticatedUser.codiceUtente));\n if (!canConfigure) {\n return RestUtilities.sendErrorMessage(\n res,\n 'Utente non autorizzato ad aggiornare i gruppi menu.',\n ConfiguratorController.name,\n 403,\n );\n }\n\n await this.configuratorService.setGroupEnabled(codiceGruppo, body.enabled);\n\n const action = body.enabled ? 'abilitato' : 'disabilitato';\n return RestUtilities.sendOKMessage(\n res,\n `Il gruppo ${codiceGruppo} e stato ${action} con successo.`,\n );\n } catch (error) {\n return RestUtilities.sendErrorMessage(res, error, ConfiguratorController.name);\n }\n }\n}\n"]}
|
|
@@ -2,7 +2,7 @@ export declare class AuthenticatedUserPayloadDto {
|
|
|
2
2
|
codiceUtente: number;
|
|
3
3
|
email?: string;
|
|
4
4
|
flagSuper: boolean;
|
|
5
|
-
|
|
5
|
+
flagAdmin: boolean;
|
|
6
6
|
flagDueFattori?: boolean;
|
|
7
7
|
passwordlessLoginEnabled?: boolean;
|
|
8
8
|
passwordLoginEnabled?: boolean;
|
|
@@ -36,7 +36,7 @@ __decorate([
|
|
|
36
36
|
(0, swagger_1.ApiProperty)({ example: false }),
|
|
37
37
|
(0, class_validator_1.IsBoolean)(),
|
|
38
38
|
__metadata("design:type", Boolean)
|
|
39
|
-
], AuthenticatedUserPayloadDto.prototype, "
|
|
39
|
+
], AuthenticatedUserPayloadDto.prototype, "flagAdmin", void 0);
|
|
40
40
|
__decorate([
|
|
41
41
|
(0, swagger_1.ApiPropertyOptional)({ description: 'Verifica email richiesta per questo utente.', default: false }),
|
|
42
42
|
(0, class_validator_1.IsOptional)(),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"AuthenticatedUserPayloadDto.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/AuthenticatedUserPayloadDto.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,qDAA8E;AAE9E,MAAa,2BAA2B;CAqCvC;AArCD,kEAqCC;AAjCC;IAHC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC;IAC7B,IAAA,uBAAK,GAAE;IACP,IAAA,qBAAG,EAAC,CAAC,CAAC;;iEACe;AAKtB;IAHC,IAAA,6BAAmB,EAAC,EAAE,OAAO,EAAE,oBAAoB,EAAE,CAAC;IACtD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,GAAE;;0DACI;AAIf;IAFC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,K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C;IAC3F,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,GAAE;;yEACmB;AAI/B;IAFC,IAAA,qBAAW,EAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAC3B,IAAA,uBAAK,GAAE;;uEACoB;AAG9B,MAAa,4BAA4B;CAGxC;AAHD,oEAGC;AADC;IADC,IAAA,qBAAW,EAAC,EAAE,IAAI,EAAE,2BAA2B,EAAE,CAAC;8BACxC,2BAA2B;8DAAC","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { IsBoolean, IsInt, IsOptional, IsString, Min } from 'class-validator';\n\nexport class AuthenticatedUserPayloadDto {\n @ApiProperty({ example: 123 })\n @IsInt()\n @Min(1)\n codiceUtente!: number;\n\n @ApiPropertyOptional({ example: 'mario.rossi@dev.it' })\n @IsOptional()\n @IsString()\n email?: string;\n\n @ApiProperty({ example: false })\n @IsBoolean()\n flagSuper!: boolean;\n\n @ApiProperty({ example: false })\n @IsBoolean()\n flagAdmin!: boolean;\n\n @ApiPropertyOptional({ description: 'Verifica email richiesta per questo utente.', default: false })\n @IsOptional()\n @IsBoolean()\n flagDueFattori?: boolean;\n\n @ApiPropertyOptional({ description: 'Accesso consentito con il solo codice email.', default: false })\n @IsOptional()\n @IsBoolean()\n passwordlessLoginEnabled?: boolean;\n\n @ApiPropertyOptional({ description: 'Policy di login locale preesistente.', default: true })\n @IsOptional()\n @IsBoolean()\n passwordLoginEnabled?: boolean;\n\n @ApiProperty({ example: 1 })\n @IsInt()\n statoRegistrazione!: number;\n}\n\nexport class AuthenticatedTokenPayloadDto {\n @ApiProperty({ type: AuthenticatedUserPayloadDto })\n userData!: AuthenticatedUserPayloadDto;\n}\n"]}
|
|
@@ -22,13 +22,11 @@ export declare class CreateMenuGroupRequest {
|
|
|
22
22
|
descrizioneGruppo?: string;
|
|
23
23
|
ordineGruppo?: number;
|
|
24
24
|
enabled?: boolean;
|
|
25
|
-
nomeCampo?: string;
|
|
26
25
|
}
|
|
27
26
|
export declare class UpdateMenuGroupRequest {
|
|
28
27
|
descrizioneGruppo?: string;
|
|
29
28
|
ordineGruppo?: number;
|
|
30
29
|
enabled?: boolean;
|
|
31
|
-
nomeCampo?: string;
|
|
32
30
|
}
|
|
33
31
|
export declare class CreateMenuRequest {
|
|
34
32
|
codiceMenu: string;
|
|
@@ -101,13 +101,6 @@ __decorate([
|
|
|
101
101
|
(0, class_validator_1.IsOptional)(),
|
|
102
102
|
__metadata("design:type", Boolean)
|
|
103
103
|
], CreateMenuGroupRequest.prototype, "enabled", void 0);
|
|
104
|
-
__decorate([
|
|
105
|
-
(0, swagger_1.ApiPropertyOptional)({ description: 'Nome del campo applicativo associato al gruppo.', example: 'REPARTO', maxLength: 20 }),
|
|
106
|
-
(0, class_validator_1.IsString)({ message: 'Il nome campo deve essere una stringa.' }),
|
|
107
|
-
(0, class_validator_1.IsOptional)(),
|
|
108
|
-
(0, class_validator_1.MaxLength)(20, { message: 'Il nome campo non puo superare 20 caratteri.' }),
|
|
109
|
-
__metadata("design:type", String)
|
|
110
|
-
], CreateMenuGroupRequest.prototype, "nomeCampo", void 0);
|
|
111
104
|
class UpdateMenuGroupRequest {
|
|
112
105
|
}
|
|
113
106
|
exports.UpdateMenuGroupRequest = UpdateMenuGroupRequest;
|
|
@@ -131,13 +124,6 @@ __decorate([
|
|
|
131
124
|
(0, class_validator_1.IsOptional)(),
|
|
132
125
|
__metadata("design:type", Boolean)
|
|
133
126
|
], UpdateMenuGroupRequest.prototype, "enabled", void 0);
|
|
134
|
-
__decorate([
|
|
135
|
-
(0, swagger_1.ApiPropertyOptional)({ description: 'Nome del campo applicativo associato al gruppo.', example: 'REPARTO', maxLength: 20 }),
|
|
136
|
-
(0, class_validator_1.IsString)({ message: 'Il nome campo deve essere una stringa.' }),
|
|
137
|
-
(0, class_validator_1.IsOptional)(),
|
|
138
|
-
(0, class_validator_1.MaxLength)(20, { message: 'Il nome campo non puo superare 20 caratteri.' }),
|
|
139
|
-
__metadata("design:type", String)
|
|
140
|
-
], UpdateMenuGroupRequest.prototype, "nomeCampo", void 0);
|
|
141
127
|
// ---------------------------------------------------------------------------
|
|
142
128
|
// Menu (MENU)
|
|
143
129
|
// ---------------------------------------------------------------------------
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"CatalogDtos.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/CatalogDtos.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,yDAAyC;AACzC,qDASyB;AACzB,iDAA8C;AAE9C;;;GAGG;AAEH,8EAA8E;AAC9E,wBAAwB;AACxB,8EAA8E;AAE9E,MAAa,cAAc;CAM1B;AAND,wCAMC;AAJC;IADC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,qCAAqC,EAAE,OAAO,EAAE,GAAG,EAAE,CAAC;;kDAC9D;AAGpB;IADC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,4BAA4B,EAAE,OAAO,EAAE,iBAAiB,EAAE,CAAC;;uDACtE;AAG3B,MAAa,oBAAqB,SAAQ,2BAAY;CAKrD;AALD,oDAKC;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;;oDACD;AAG5B,MAAa,qBAAqB;CAYjC;AAZD,sDAYC;AAPC;IAJC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,qCAAqC,EAAE,OAAO,EAAE,GAAG,EAAE,SAAS,EAAE,CAAC,EAAE,CAAC;IAC/F,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;IAChE,IAAA,4BAAU,EAAC,EAAE,OAAO,EAAE,gCAAgC,EAAE,CAAC;IACzD,IAAA,2BAAS,EAAC,CAAC,E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O,EAAE,sCAAsC,EAAE,CAAC;IACjE,IAAA,4BAAU,GAAE;;2DACM","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport {\n IsBoolean,\n IsIn,\n IsInt,\n IsNotEmpty,\n IsOptional,\n IsString,\n MaxLength,\n ValidateNested,\n} from 'class-validator';\nimport { BaseResponse } from './BaseResponse';\n\n/**\n * DTO di gestione dei cataloghi di configurazione (menu, gruppi, tipi menu, tipi filtro).\n * I codici sono chiavi primarie immutabili: vengono valorizzati in creazione e passati come path in modifica.\n */\n\n// ---------------------------------------------------------------------------\n// Tipi menu (MENU_TIPI)\n// ---------------------------------------------------------------------------\n\nexport class MenuTypeEntity {\n @ApiProperty({ description: 'Codice del tipo menu (1 carattere).', example: 'A' })\n codiceTipo!: string;\n\n @ApiPropertyOptional({ description: 'Descrizione del tipo menu.', example: 'Amministrazione' })\n descrizioneTipo?: string;\n}\n\nexport class GetMenuTypesResponse extends BaseResponse {\n @ApiProperty({ type: [MenuTypeEntity] })\n @ValidateNested({ each: true })\n @Type(() => MenuTypeEntity)\n Result!: MenuTypeEntity[];\n}\n\nexport class CreateMenuTypeRequest {\n @ApiProperty({ description: 'Codice del tipo menu (1 carattere).', example: 'A', maxLength: 1 })\n @IsString({ message: 'Il codice tipo deve essere una stringa.' })\n @IsNotEmpty({ message: 'Il codice tipo e obbligatorio.' })\n @MaxLength(1, { message: 'Il codice tipo non puo superare 1 carattere.' })\n codiceTipo!: string;\n\n @ApiPropertyOptional({ description: 'Descrizione del tipo menu.', example: 'Amministrazione', maxLength: 20 })\n @IsString({ message: 'La descrizione deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'La descrizione non puo superare 20 caratteri.' })\n descrizioneTipo?: string;\n}\n\nexport class UpdateMenuTypeRequest {\n @ApiPropertyOptional({ description: 'Descrizione del tipo menu.', example: 'Amministrazione', maxLength: 20 })\n @IsString({ message: 'La descrizione deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'La descrizione non puo superare 20 caratteri.' })\n descrizioneTipo?: string;\n}\n\n// ---------------------------------------------------------------------------\n// Gruppi menu (MENU_GRP)\n// ---------------------------------------------------------------------------\n\nexport class CreateMenuGroupRequest {\n @ApiProperty({ description: 'Codice del gruppo (1 carattere).', example: 'A', maxLength: 1 })\n @IsString({ message: 'Il codice gruppo deve essere una stringa.' })\n @IsNotEmpty({ message: 'Il codice gruppo e obbligatorio.' })\n @MaxLength(1, { message: 'Il codice gruppo non puo superare 1 carattere.' })\n codiceGruppo!: string;\n\n @ApiPropertyOptional({ description: 'Descrizione del gruppo.', example: 'Gestione Accessi', maxLength: 100 })\n @IsString({ message: 'La descrizione deve essere una stringa.' })\n @IsOptional()\n @MaxLength(100, { message: 'La descrizione non puo superare 100 caratteri.' })\n descrizioneGruppo?: string;\n\n @ApiPropertyOptional({ description: 'Ordine di visualizzazione del gruppo.', example: 1, type: Number })\n @IsInt({ message: \"L'ordine deve essere un intero.\" })\n @IsOptional()\n @Type(() => Number)\n ordineGruppo?: number;\n\n @ApiPropertyOptional({ description: 'Gruppo abilitato.', example: true, type: Boolean })\n @IsBoolean({ message: 'Il flag enabled deve essere booleano.' })\n @IsOptional()\n enabled?: boolean;\n\n @ApiPropertyOptional({ description: 'Nome del campo applicativo associato al gruppo.', example: 'REPARTO', maxLength: 20 })\n @IsString({ message: 'Il nome campo deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'Il nome campo non puo superare 20 caratteri.' })\n nomeCampo?: string;\n}\n\nexport class UpdateMenuGroupRequest {\n @ApiPropertyOptional({ description: 'Descrizione del gruppo.', example: 'Gestione Accessi', maxLength: 100 })\n @IsString({ message: 'La descrizione deve essere una stringa.' })\n @IsOptional()\n @MaxLength(100, { message: 'La descrizione non puo superare 100 caratteri.' })\n descrizioneGruppo?: string;\n\n @ApiPropertyOptional({ description: 'Ordine di visualizzazione del gruppo.', example: 1, type: Number })\n @IsInt({ message: \"L'ordine deve essere un intero.\" })\n @IsOptional()\n @Type(() => Number)\n ordineGruppo?: number;\n\n @ApiPropertyOptional({ description: 'Gruppo abilitato.', example: true, type: Boolean })\n @IsBoolean({ message: 'Il flag enabled deve essere booleano.' })\n @IsOptional()\n enabled?: boolean;\n\n @ApiPropertyOptional({ description: 'Nome del campo applicativo associato al gruppo.', example: 'REPARTO', maxLength: 20 })\n @IsString({ message: 'Il nome campo deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'Il nome campo non puo superare 20 caratteri.' })\n nomeCampo?: string;\n}\n\n// ---------------------------------------------------------------------------\n// Menu (MENU)\n// ---------------------------------------------------------------------------\n\nexport class CreateMenuRequest {\n @ApiProperty({ description: 'Codice univoco del menu.', example: 'MNU001', maxLength: 20 })\n @IsString({ message: 'Il codice menu deve essere una stringa.' })\n @IsNotEmpty({ message: 'Il codice menu e obbligatorio.' })\n @MaxLength(20, { message: 'Il codice menu non puo superare 20 caratteri.' })\n codiceMenu!: string;\n\n @ApiPropertyOptional({ description: 'Descrizione del menu.', example: 'Gestione Utenti', maxLength: 100 })\n @IsString({ message: 'La descrizione deve essere una stringa.' })\n @IsOptional()\n @MaxLength(100, { message: 'La descrizione non puo superare 100 caratteri.' })\n descrizioneMenu?: string;\n\n @ApiProperty({ description: 'Codice del gruppo di appartenenza.', example: 'A', maxLength: 1 })\n @IsString({ message: 'Il codice gruppo deve essere una stringa.' })\n @IsNotEmpty({ message: 'Il codice gruppo e obbligatorio.' })\n @MaxLength(1, { message: 'Il codice gruppo non puo superare 1 carattere.' })\n codiceGruppo!: string;\n\n @ApiPropertyOptional({ description: 'Codice del tipo menu.', example: 'A', maxLength: 1 })\n @IsString({ message: 'Il tipo menu deve essere una stringa.' })\n @IsOptional()\n @MaxLength(1, { message: 'Il tipo menu non puo superare 1 carattere.' })\n tipo?: string;\n\n @ApiPropertyOptional({ description: \"Percorso dell'icona.\", example: 'fa-users', maxLength: 50 })\n @IsString({ message: \"L'icona deve essere una stringa.\" })\n @IsOptional()\n @MaxLength(50, { message: \"L'icona non puo superare 50 caratteri.\" })\n icona?: string;\n\n @ApiPropertyOptional({ description: 'Pagina associata al menu.', example: '/accessi/gestione-utenti', maxLength: 50 })\n @IsString({ message: 'La pagina deve essere una stringa.' })\n @IsOptional()\n @MaxLength(50, { message: 'La pagina non puo superare 50 caratteri.' })\n pagina?: string;\n\n @ApiPropertyOptional({ description: 'Ordine di visualizzazione del menu.', example: 1, type: Number })\n @IsInt({ message: \"L'ordine deve essere un intero.\" })\n @IsOptional()\n @Type(() => Number)\n ordineMenu?: number;\n\n @ApiPropertyOptional({ description: 'Menu abilitato.', example: true, type: Boolean })\n @IsBoolean({ message: 'Il flag enabled deve essere booleano.' })\n @IsOptional()\n enabled?: boolean;\n\n @ApiPropertyOptional({ description: 'Menu di riferimento (gerarchia).', example: 'MNU000', maxLength: 20 })\n @IsString({ message: 'Il menu di riferimento deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'Il menu di riferimento non puo superare 20 caratteri.' })\n rifMenu?: string;\n\n @ApiPropertyOptional({ description: 'Nota informativa associata al menu.', example: 'Visibile solo agli amministratori', maxLength: 1000 })\n @IsString({ message: 'La nota deve essere una stringa.' })\n @IsOptional()\n @MaxLength(1000, { message: 'La nota non puo superare 1000 caratteri.' })\n note?: string;\n}\n\nexport class UpdateMenuRequest {\n @ApiPropertyOptional({ description: 'Descrizione del menu.', example: 'Gestione Utenti', maxLength: 100 })\n @IsString({ message: 'La descrizione deve essere una stringa.' })\n @IsOptional()\n @MaxLength(100, { message: 'La descrizione non puo superare 100 caratteri.' })\n descrizioneMenu?: string;\n\n @ApiPropertyOptional({ description: 'Codice del gruppo di appartenenza.', example: 'A', maxLength: 1 })\n @IsString({ message: 'Il codice gruppo deve essere una stringa.' })\n @IsOptional()\n @MaxLength(1, { message: 'Il codice gruppo non puo superare 1 carattere.' })\n codiceGruppo?: string;\n\n @ApiPropertyOptional({ description: 'Codice del tipo menu.', example: 'A', maxLength: 1 })\n @IsString({ message: 'Il tipo menu deve essere una stringa.' })\n @IsOptional()\n @MaxLength(1, { message: 'Il tipo menu non puo superare 1 carattere.' })\n tipo?: string;\n\n @ApiPropertyOptional({ description: \"Percorso dell'icona.\", example: 'fa-users', maxLength: 50 })\n @IsString({ message: \"L'icona deve essere una stringa.\" })\n @IsOptional()\n @MaxLength(50, { message: \"L'icona non puo superare 50 caratteri.\" })\n icona?: string;\n\n @ApiPropertyOptional({ description: 'Pagina associata al menu.', example: '/accessi/gestione-utenti', maxLength: 50 })\n @IsString({ message: 'La pagina deve essere una stringa.' })\n @IsOptional()\n @MaxLength(50, { message: 'La pagina non puo superare 50 caratteri.' })\n pagina?: string;\n\n @ApiPropertyOptional({ description: 'Ordine di visualizzazione del menu.', example: 1, type: Number })\n @IsInt({ message: \"L'ordine deve essere un intero.\" })\n @IsOptional()\n @Type(() => Number)\n ordineMenu?: number;\n\n @ApiPropertyOptional({ description: 'Menu abilitato.', example: true, type: Boolean })\n @IsBoolean({ message: 'Il flag enabled deve essere booleano.' })\n @IsOptional()\n enabled?: boolean;\n\n @ApiPropertyOptional({ description: 'Menu di riferimento (gerarchia).', example: 'MNU000', maxLength: 20 })\n @IsString({ message: 'Il menu di riferimento deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'Il menu di riferimento non puo superare 20 caratteri.' })\n rifMenu?: string;\n\n @ApiPropertyOptional({ description: 'Nota informativa associata al menu.', example: 'Visibile solo agli amministratori', maxLength: 1000 })\n @IsString({ message: 'La nota deve essere una stringa.' })\n @IsOptional()\n @MaxLength(1000, { message: 'La nota non puo superare 1000 caratteri.' })\n note?: string;\n}\n\n// ---------------------------------------------------------------------------\n// Tipi filtro (FILTRI_TIPO)\n// ---------------------------------------------------------------------------\n\nexport class CreateFilterTypeRequest {\n @ApiProperty({ description: 'Identificativo del tipo di filtro.', example: 1, type: Number })\n @IsInt({ message: 'Il codice tipo filtro deve essere un intero.' })\n @Type(() => Number)\n tipFil!: number;\n\n @ApiPropertyOptional({ description: 'Descrizione del filtro.', example: 'Filtro standard', maxLength: 20 })\n @IsString({ message: 'La descrizione deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'La descrizione non puo superare 20 caratteri.' })\n desFil?: string;\n\n @ApiPropertyOptional({ description: 'Campo associato al filtro.', example: 'CODCLI', maxLength: 20 })\n @IsString({ message: 'Il campo deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'Il campo non puo superare 20 caratteri.' })\n fldFil?: string;\n\n @ApiPropertyOptional({ description: 'Filtro abilitato.', example: 1, enum: [0, 1], default: 1 })\n @IsIn([0, 1], { message: 'Il flag abilitato deve essere 0 o 1.' })\n @IsOptional()\n flgEnabled?: 0 | 1;\n}\n\nexport class UpdateFilterTypeRequest {\n @ApiPropertyOptional({ description: 'Descrizione del filtro.', example: 'Filtro standard', maxLength: 20 })\n @IsString({ message: 'La descrizione deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'La descrizione non puo superare 20 caratteri.' })\n desFil?: string;\n\n @ApiPropertyOptional({ description: 'Campo associato al filtro.', example: 'CODCLI', maxLength: 20 })\n @IsString({ message: 'Il campo deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'Il campo non puo superare 20 caratteri.' })\n fldFil?: string;\n\n @ApiPropertyOptional({ description: 'Filtro abilitato.', example: 1, enum: [0, 1], default: 1 })\n @IsIn([0, 1], { message: 'Il flag abilitato deve essere 0 o 1.' })\n @IsOptional()\n flgEnabled?: 0 | 1;\n}\n"]}
|
|
1
|
+
{"version":3,"file":"CatalogDtos.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/CatalogDtos.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,yDAAyC;AACzC,qDASyB;AACzB,iDAA8C;AAE9C;;;GAGG;AAEH,8EAA8E;AAC9E,wBAAwB;AACxB,8EAA8E;AAE9E,MAAa,cAAc;CAM1B;AAND,wCAMC;AAJC;IADC,IAAA,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E,OAAO,EAAE,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAC/F,IAAA,sBAAI,EAAC,CAAC,CAAC,EAAE,CAAC,CAAC,EAAE,EAAE,OAAO,EAAE,sCAAsC,EAAE,CAAC;IACjE,IAAA,4BAAU,GAAE;;2DACM","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\nimport { Type } from 'class-transformer';\nimport {\n IsBoolean,\n IsIn,\n IsInt,\n IsNotEmpty,\n IsOptional,\n IsString,\n MaxLength,\n ValidateNested,\n} from 'class-validator';\nimport { BaseResponse } from './BaseResponse';\n\n/**\n * DTO di gestione dei cataloghi di configurazione (menu, gruppi, tipi menu, tipi filtro).\n * I codici sono chiavi primarie immutabili: vengono valorizzati in creazione e passati come path in modifica.\n */\n\n// ---------------------------------------------------------------------------\n// Tipi menu (MENU_TIPI)\n// ---------------------------------------------------------------------------\n\nexport class MenuTypeEntity {\n @ApiProperty({ description: 'Codice del tipo menu (1 carattere).', example: 'A' })\n codiceTipo!: string;\n\n @ApiPropertyOptional({ description: 'Descrizione del tipo menu.', example: 'Amministrazione' })\n descrizioneTipo?: string;\n}\n\nexport class GetMenuTypesResponse extends BaseResponse {\n @ApiProperty({ type: [MenuTypeEntity] })\n @ValidateNested({ each: true })\n @Type(() => MenuTypeEntity)\n Result!: MenuTypeEntity[];\n}\n\nexport class CreateMenuTypeRequest {\n @ApiProperty({ description: 'Codice del tipo menu (1 carattere).', example: 'A', maxLength: 1 })\n @IsString({ message: 'Il codice tipo deve essere una stringa.' })\n @IsNotEmpty({ message: 'Il codice tipo e obbligatorio.' })\n @MaxLength(1, { message: 'Il codice tipo non puo superare 1 carattere.' })\n codiceTipo!: string;\n\n @ApiPropertyOptional({ description: 'Descrizione del tipo menu.', example: 'Amministrazione', maxLength: 20 })\n @IsString({ message: 'La descrizione deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'La descrizione non puo superare 20 caratteri.' })\n descrizioneTipo?: string;\n}\n\nexport class UpdateMenuTypeRequest {\n @ApiPropertyOptional({ description: 'Descrizione del tipo menu.', example: 'Amministrazione', maxLength: 20 })\n @IsString({ message: 'La descrizione deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'La descrizione non puo superare 20 caratteri.' })\n descrizioneTipo?: string;\n}\n\n// ---------------------------------------------------------------------------\n// Gruppi menu (MENU_GRP)\n// ---------------------------------------------------------------------------\n\nexport class CreateMenuGroupRequest {\n @ApiProperty({ description: 'Codice del gruppo (1 carattere).', example: 'A', maxLength: 1 })\n @IsString({ message: 'Il codice gruppo deve essere una stringa.' })\n @IsNotEmpty({ message: 'Il codice gruppo e obbligatorio.' })\n @MaxLength(1, { message: 'Il codice gruppo non puo superare 1 carattere.' })\n codiceGruppo!: string;\n\n @ApiPropertyOptional({ description: 'Descrizione del gruppo.', example: 'Gestione Accessi', maxLength: 100 })\n @IsString({ message: 'La descrizione deve essere una stringa.' })\n @IsOptional()\n @MaxLength(100, { message: 'La descrizione non puo superare 100 caratteri.' })\n descrizioneGruppo?: string;\n\n @ApiPropertyOptional({ description: 'Ordine di visualizzazione del gruppo.', example: 1, type: Number })\n @IsInt({ message: \"L'ordine deve essere un intero.\" })\n @IsOptional()\n @Type(() => Number)\n ordineGruppo?: number;\n\n @ApiPropertyOptional({ description: 'Gruppo abilitato.', example: true, type: Boolean })\n @IsBoolean({ message: 'Il flag enabled deve essere booleano.' })\n @IsOptional()\n enabled?: boolean;\n}\n\nexport class UpdateMenuGroupRequest {\n @ApiPropertyOptional({ description: 'Descrizione del gruppo.', example: 'Gestione Accessi', maxLength: 100 })\n @IsString({ message: 'La descrizione deve essere una stringa.' })\n @IsOptional()\n @MaxLength(100, { message: 'La descrizione non puo superare 100 caratteri.' })\n descrizioneGruppo?: string;\n\n @ApiPropertyOptional({ description: 'Ordine di visualizzazione del gruppo.', example: 1, type: Number })\n @IsInt({ message: \"L'ordine deve essere un intero.\" })\n @IsOptional()\n @Type(() => Number)\n ordineGruppo?: number;\n\n @ApiPropertyOptional({ description: 'Gruppo abilitato.', example: true, type: Boolean })\n @IsBoolean({ message: 'Il flag enabled deve essere booleano.' })\n @IsOptional()\n enabled?: boolean;\n}\n\n// ---------------------------------------------------------------------------\n// Menu (MENU)\n// ---------------------------------------------------------------------------\n\nexport class CreateMenuRequest {\n @ApiProperty({ description: 'Codice univoco del menu.', example: 'MNU001', maxLength: 20 })\n @IsString({ message: 'Il codice menu deve essere una stringa.' })\n @IsNotEmpty({ message: 'Il codice menu e obbligatorio.' })\n @MaxLength(20, { message: 'Il codice menu non puo superare 20 caratteri.' })\n codiceMenu!: string;\n\n @ApiPropertyOptional({ description: 'Descrizione del menu.', example: 'Gestione Utenti', maxLength: 100 })\n @IsString({ message: 'La descrizione deve essere una stringa.' })\n @IsOptional()\n @MaxLength(100, { message: 'La descrizione non puo superare 100 caratteri.' })\n descrizioneMenu?: string;\n\n @ApiProperty({ description: 'Codice del gruppo di appartenenza.', example: 'A', maxLength: 1 })\n @IsString({ message: 'Il codice gruppo deve essere una stringa.' })\n @IsNotEmpty({ message: 'Il codice gruppo e obbligatorio.' })\n @MaxLength(1, { message: 'Il codice gruppo non puo superare 1 carattere.' })\n codiceGruppo!: string;\n\n @ApiPropertyOptional({ description: 'Codice del tipo menu.', example: 'A', maxLength: 1 })\n @IsString({ message: 'Il tipo menu deve essere una stringa.' })\n @IsOptional()\n @MaxLength(1, { message: 'Il tipo menu non puo superare 1 carattere.' })\n tipo?: string;\n\n @ApiPropertyOptional({ description: \"Percorso dell'icona.\", example: 'fa-users', maxLength: 50 })\n @IsString({ message: \"L'icona deve essere una stringa.\" })\n @IsOptional()\n @MaxLength(50, { message: \"L'icona non puo superare 50 caratteri.\" })\n icona?: string;\n\n @ApiPropertyOptional({ description: 'Pagina associata al menu.', example: '/accessi/gestione-utenti', maxLength: 50 })\n @IsString({ message: 'La pagina deve essere una stringa.' })\n @IsOptional()\n @MaxLength(50, { message: 'La pagina non puo superare 50 caratteri.' })\n pagina?: string;\n\n @ApiPropertyOptional({ description: 'Ordine di visualizzazione del menu.', example: 1, type: Number })\n @IsInt({ message: \"L'ordine deve essere un intero.\" })\n @IsOptional()\n @Type(() => Number)\n ordineMenu?: number;\n\n @ApiPropertyOptional({ description: 'Menu abilitato.', example: true, type: Boolean })\n @IsBoolean({ message: 'Il flag enabled deve essere booleano.' })\n @IsOptional()\n enabled?: boolean;\n\n @ApiPropertyOptional({ description: 'Menu di riferimento (gerarchia).', example: 'MNU000', maxLength: 20 })\n @IsString({ message: 'Il menu di riferimento deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'Il menu di riferimento non puo superare 20 caratteri.' })\n rifMenu?: string;\n\n @ApiPropertyOptional({ description: 'Nota informativa associata al menu.', example: 'Visibile solo agli amministratori', maxLength: 1000 })\n @IsString({ message: 'La nota deve essere una stringa.' })\n @IsOptional()\n @MaxLength(1000, { message: 'La nota non puo superare 1000 caratteri.' })\n note?: string;\n}\n\nexport class UpdateMenuRequest {\n @ApiPropertyOptional({ description: 'Descrizione del menu.', example: 'Gestione Utenti', maxLength: 100 })\n @IsString({ message: 'La descrizione deve essere una stringa.' })\n @IsOptional()\n @MaxLength(100, { message: 'La descrizione non puo superare 100 caratteri.' })\n descrizioneMenu?: string;\n\n @ApiPropertyOptional({ description: 'Codice del gruppo di appartenenza.', example: 'A', maxLength: 1 })\n @IsString({ message: 'Il codice gruppo deve essere una stringa.' })\n @IsOptional()\n @MaxLength(1, { message: 'Il codice gruppo non puo superare 1 carattere.' })\n codiceGruppo?: string;\n\n @ApiPropertyOptional({ description: 'Codice del tipo menu.', example: 'A', maxLength: 1 })\n @IsString({ message: 'Il tipo menu deve essere una stringa.' })\n @IsOptional()\n @MaxLength(1, { message: 'Il tipo menu non puo superare 1 carattere.' })\n tipo?: string;\n\n @ApiPropertyOptional({ description: \"Percorso dell'icona.\", example: 'fa-users', maxLength: 50 })\n @IsString({ message: \"L'icona deve essere una stringa.\" })\n @IsOptional()\n @MaxLength(50, { message: \"L'icona non puo superare 50 caratteri.\" })\n icona?: string;\n\n @ApiPropertyOptional({ description: 'Pagina associata al menu.', example: '/accessi/gestione-utenti', maxLength: 50 })\n @IsString({ message: 'La pagina deve essere una stringa.' })\n @IsOptional()\n @MaxLength(50, { message: 'La pagina non puo superare 50 caratteri.' })\n pagina?: string;\n\n @ApiPropertyOptional({ description: 'Ordine di visualizzazione del menu.', example: 1, type: Number })\n @IsInt({ message: \"L'ordine deve essere un intero.\" })\n @IsOptional()\n @Type(() => Number)\n ordineMenu?: number;\n\n @ApiPropertyOptional({ description: 'Menu abilitato.', example: true, type: Boolean })\n @IsBoolean({ message: 'Il flag enabled deve essere booleano.' })\n @IsOptional()\n enabled?: boolean;\n\n @ApiPropertyOptional({ description: 'Menu di riferimento (gerarchia).', example: 'MNU000', maxLength: 20 })\n @IsString({ message: 'Il menu di riferimento deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'Il menu di riferimento non puo superare 20 caratteri.' })\n rifMenu?: string;\n\n @ApiPropertyOptional({ description: 'Nota informativa associata al menu.', example: 'Visibile solo agli amministratori', maxLength: 1000 })\n @IsString({ message: 'La nota deve essere una stringa.' })\n @IsOptional()\n @MaxLength(1000, { message: 'La nota non puo superare 1000 caratteri.' })\n note?: string;\n}\n\n// ---------------------------------------------------------------------------\n// Tipi filtro (FILTRI_TIPO)\n// ---------------------------------------------------------------------------\n\nexport class CreateFilterTypeRequest {\n @ApiProperty({ description: 'Identificativo del tipo di filtro.', example: 1, type: Number })\n @IsInt({ message: 'Il codice tipo filtro deve essere un intero.' })\n @Type(() => Number)\n tipFil!: number;\n\n @ApiPropertyOptional({ description: 'Descrizione del filtro.', example: 'Filtro standard', maxLength: 20 })\n @IsString({ message: 'La descrizione deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'La descrizione non puo superare 20 caratteri.' })\n desFil?: string;\n\n @ApiPropertyOptional({ description: 'Campo associato al filtro.', example: 'CODCLI', maxLength: 20 })\n @IsString({ message: 'Il campo deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'Il campo non puo superare 20 caratteri.' })\n fldFil?: string;\n\n @ApiPropertyOptional({ description: 'Filtro abilitato.', example: 1, enum: [0, 1], default: 1 })\n @IsIn([0, 1], { message: 'Il flag abilitato deve essere 0 o 1.' })\n @IsOptional()\n flgEnabled?: 0 | 1;\n}\n\nexport class UpdateFilterTypeRequest {\n @ApiPropertyOptional({ description: 'Descrizione del filtro.', example: 'Filtro standard', maxLength: 20 })\n @IsString({ message: 'La descrizione deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'La descrizione non puo superare 20 caratteri.' })\n desFil?: string;\n\n @ApiPropertyOptional({ description: 'Campo associato al filtro.', example: 'CODCLI', maxLength: 20 })\n @IsString({ message: 'Il campo deve essere una stringa.' })\n @IsOptional()\n @MaxLength(20, { message: 'Il campo non puo superare 20 caratteri.' })\n fldFil?: string;\n\n @ApiPropertyOptional({ description: 'Filtro abilitato.', example: 1, enum: [0, 1], default: 1 })\n @IsIn([0, 1], { message: 'Il flag abilitato deve essere 0 o 1.' })\n @IsOptional()\n flgEnabled?: 0 | 1;\n}\n"]}
|
|
@@ -50,14 +50,6 @@ __decorate([
|
|
|
50
50
|
}),
|
|
51
51
|
__metadata("design:type", Boolean)
|
|
52
52
|
], GroupWithMenusEntity.prototype, "enabled", void 0);
|
|
53
|
-
__decorate([
|
|
54
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
55
|
-
description: "Colonna UTENTI_CONFIG che regola l'abilitazione del gruppo.",
|
|
56
|
-
type: String,
|
|
57
|
-
example: "FLGDIPENDENTI"
|
|
58
|
-
}),
|
|
59
|
-
__metadata("design:type", Object)
|
|
60
|
-
], GroupWithMenusEntity.prototype, "nomeCampo", void 0);
|
|
61
53
|
__decorate([
|
|
62
54
|
(0, swagger_1.ApiProperty)({
|
|
63
55
|
description: "Lista dei men�� associati al gruppo.",
|
|
@@ -1 +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;
|
|
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;;0DACoB;AAOtB;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,yBAAyB;QACtC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,kBAAkB;KAC9B,CAAC;;+DACyB;AAO3B;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;KACb,CAAC;;0DACoB;AAOtB;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,sCAAsC;QACnD,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;;mDACW;AAGzB,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;;0DACD","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"]}
|
|
@@ -118,14 +118,6 @@ __decorate([
|
|
|
118
118
|
}),
|
|
119
119
|
__metadata("design:type", Object)
|
|
120
120
|
], MenuEntity.prototype, "note", void 0);
|
|
121
|
-
__decorate([
|
|
122
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
123
|
-
description: "Colonna UTENTI_CONFIG che regola l'abilitazione del gruppo del menu.",
|
|
124
|
-
type: String,
|
|
125
|
-
example: "FLGDIPENDENTI"
|
|
126
|
-
}),
|
|
127
|
-
__metadata("design:type", Object)
|
|
128
|
-
], MenuEntity.prototype, "nomeCampo", void 0);
|
|
129
121
|
class GetMenusResponse extends BaseResponse_1.BaseResponse {
|
|
130
122
|
}
|
|
131
123
|
exports.GetMenusResponse = GetMenusResponse;
|
|
@@ -1 +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;
|
|
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;;8CACkB;AAOpB;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,uBAAuB;QACpC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,iBAAiB;KAC7B,CAAC;;mDACuB;AAQzB;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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AAC,EAAE,IAAI,EAAE,CAAC,UAAU,CAAC,EAAE,CAAC;IACnC,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,UAAU,CAAC;;gDACD","sourcesContent":["import { ApiProperty, 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"]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { RegisterRequest } from './RegisterRequest';
|
|
2
|
-
declare const PublicRegisterRequest_base: import("@nestjs/common").Type<Omit<RegisterRequest, "flagDueFattori" | "flagSuper" | "
|
|
2
|
+
declare const PublicRegisterRequest_base: import("@nestjs/common").Type<Omit<RegisterRequest, "flagDueFattori" | "flagSuper" | "flagAdmin" | "roles" | "permissions">>;
|
|
3
3
|
export declare class PublicRegisterRequest extends PublicRegisterRequest_base {
|
|
4
4
|
}
|
|
5
5
|
export {};
|
|
@@ -5,7 +5,7 @@ const swagger_1 = require("@nestjs/swagger");
|
|
|
5
5
|
const RegisterRequest_1 = require("./RegisterRequest");
|
|
6
6
|
class PublicRegisterRequest extends (0, swagger_1.OmitType)(RegisterRequest_1.RegisterRequest, [
|
|
7
7
|
'flagSuper',
|
|
8
|
-
'
|
|
8
|
+
'flagAdmin',
|
|
9
9
|
'flagDueFattori',
|
|
10
10
|
'roles',
|
|
11
11
|
'permissions',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"PublicRegisterRequest.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/PublicRegisterRequest.ts"],"names":[],"mappings":";;;AAAA,6CAA2C;AAC3C,uDAAoD;AAEpD,MAAa,qBAAsB,SAAQ,IAAA,kBAAQ,EAAC,iCAAe,EAAE;IACnE,WAAW;IACX,
|
|
1
|
+
{"version":3,"file":"PublicRegisterRequest.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/PublicRegisterRequest.ts"],"names":[],"mappings":";;;AAAA,6CAA2C;AAC3C,uDAAoD;AAEpD,MAAa,qBAAsB,SAAQ,IAAA,kBAAQ,EAAC,iCAAe,EAAE;IACnE,WAAW;IACX,WAAW;IACX,gBAAgB;IAChB,OAAO;IACP,aAAa;CACL,CAAC;CAAG;AANd,sDAMc","sourcesContent":["import { OmitType } from '@nestjs/swagger';\nimport { RegisterRequest } from './RegisterRequest';\n\nexport class PublicRegisterRequest extends OmitType(RegisterRequest, [\n 'flagSuper',\n 'flagAdmin',\n 'flagDueFattori',\n 'roles',\n 'permissions',\n] as const) {}\n"]}
|
|
@@ -7,14 +7,11 @@ export declare class RegisterRequest extends RegisterRequest_base {
|
|
|
7
7
|
nome?: string;
|
|
8
8
|
cellulare?: string | null;
|
|
9
9
|
flagSuper?: boolean;
|
|
10
|
-
|
|
10
|
+
flagAdmin?: boolean;
|
|
11
11
|
roles?: number[];
|
|
12
12
|
permissions?: Permission[];
|
|
13
13
|
avatar?: string;
|
|
14
14
|
flagDueFattori?: boolean;
|
|
15
|
-
paginaDefault?: string;
|
|
16
|
-
nummac?: number;
|
|
17
|
-
ragSocCli?: string;
|
|
18
15
|
htmlMail?: string;
|
|
19
16
|
}
|
|
20
17
|
export {};
|
|
@@ -65,13 +65,13 @@ __decorate([
|
|
|
65
65
|
], RegisterRequest.prototype, "flagSuper", void 0);
|
|
66
66
|
__decorate([
|
|
67
67
|
(0, swagger_1.ApiPropertyOptional)({
|
|
68
|
-
description: "Flag che indica se l'utente
|
|
68
|
+
description: "Flag che indica se l'utente è configuratore",
|
|
69
69
|
example: false,
|
|
70
70
|
}),
|
|
71
71
|
(0, class_validator_1.IsOptional)(),
|
|
72
72
|
(0, class_validator_1.IsBoolean)({ message: "Il flag configuratore deve essere booleano." }),
|
|
73
73
|
__metadata("design:type", Boolean)
|
|
74
|
-
], RegisterRequest.prototype, "
|
|
74
|
+
], RegisterRequest.prototype, "flagAdmin", void 0);
|
|
75
75
|
__decorate([
|
|
76
76
|
(0, swagger_1.ApiPropertyOptional)({
|
|
77
77
|
description: "Ruoli assegnati all'utente.",
|
|
@@ -120,35 +120,6 @@ __decorate([
|
|
|
120
120
|
(0, class_transformer_1.Transform)(({ obj, key }) => obj[key]),
|
|
121
121
|
__metadata("design:type", Boolean)
|
|
122
122
|
], RegisterRequest.prototype, "flagDueFattori", void 0);
|
|
123
|
-
__decorate([
|
|
124
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
125
|
-
description: "Pagina di default dell'utente.",
|
|
126
|
-
example: "/dashboard",
|
|
127
|
-
}),
|
|
128
|
-
(0, class_validator_1.IsOptional)(),
|
|
129
|
-
(0, class_validator_1.IsString)({ message: "La pagina di default deve essere una stringa." }),
|
|
130
|
-
__metadata("design:type", String)
|
|
131
|
-
], RegisterRequest.prototype, "paginaDefault", void 0);
|
|
132
|
-
__decorate([
|
|
133
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
134
|
-
description: "Numero MAC associato all'utente.",
|
|
135
|
-
example: 12,
|
|
136
|
-
}),
|
|
137
|
-
(0, class_validator_1.IsOptional)(),
|
|
138
|
-
(0, class_transformer_1.Type)(() => Number),
|
|
139
|
-
(0, class_validator_1.IsInt)({ message: 'Il numero MAC deve essere un intero.' }),
|
|
140
|
-
(0, class_validator_1.Min)(0, { message: 'Il numero MAC non puo essere negativo.' }),
|
|
141
|
-
__metadata("design:type", Number)
|
|
142
|
-
], RegisterRequest.prototype, "nummac", void 0);
|
|
143
|
-
__decorate([
|
|
144
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
145
|
-
description: "Ragione sociale cliente.",
|
|
146
|
-
example: "ALIVAL STOCK",
|
|
147
|
-
}),
|
|
148
|
-
(0, class_validator_1.IsOptional)(),
|
|
149
|
-
(0, class_validator_1.IsString)({ message: "La ragione sociale deve essere una stringa." }),
|
|
150
|
-
__metadata("design:type", String)
|
|
151
|
-
], RegisterRequest.prototype, "ragSocCli", void 0);
|
|
152
123
|
__decorate([
|
|
153
124
|
(0, swagger_1.ApiPropertyOptional)({
|
|
154
125
|
description: "HTML mail personalizzato",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterRequest.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/RegisterRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6E;AAC7E,yDAAoD;AACpD,
|
|
1
|
+
{"version":3,"file":"RegisterRequest.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/RegisterRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6E;AAC7E,yDAAoD;AACpD,qDASyB;AACzB,6CAA0C;AAC1C,yDAAsD;AACtD,iDAA8C;AAE9C,MAAa,eAAgB,SAAQ,IAAA,kBAAQ,EAAC,2BAAY,EAAE,CAAC,QAAQ,CAAU,CAAC;CAmG/E;AAnGD,0CAmGC;AA5FC;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,oBAAoB;QACjC,OAAO,EAAE,oBAAoB;KAC9B,CAAC;IACD,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;IACzD,IAAA,wBAAM,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,qDAAqD,EAAE,CAAC;;8CACpE;AASf;IAPC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,sBAAsB;QACnC,OAAO,EAAE,OAAO;KACjB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,qCAAqC,EAAE,CAAC;IAC5D,IAAA,wBAAM,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,wDAAwD,EAAE,CAAC;;gDACrE;AAMjB;IAJC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,mBAAmB,EAAE,OAAO,EAAE,OAAO,EAAE,CAAC;IAC3E,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,kCAAkC,EAAE,CAAC;IACzD,IAAA,wBAAM,EAAC,CAAC,EAA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C;QACnB,WAAW,EAAE,gCAAgC;QAC7C,IAAI,EAAE,CAAC,uBAAU,CAAC;QAClB,OAAO,EAAE;YACP;gBACE,UAAU,EAAE,aAAa;gBACzB,gBAAgB,EAAE,mCAAgB,CAAC,SAAS;aAC7C;SACF;KACF,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,EAAC,EAAE,OAAO,EAAE,oCAAoC,EAAE,CAAC;IAC1D,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,uBAAU,CAAC;;oDACI;AAQ3B;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,qBAAqB;QAClC,OAAO,EAAE,UAAU;KACpB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;;+CAC3C;AAShB;IAPC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,oCAAoC;QACjD,OAAO,EAAE,KAAK;KACf,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,OAAO,EAAE,2CAA2C,EAAE,CAAC;IACnE,IAAA,6BAAS,EAAC,CAAC,EAAE,GAAG,EAAE,GAAG,EAAE,EAAE,EAAE,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;;uDACb;AAQzB;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,0BAA0B;QACvC,OAAO,EAAE,eAAe;KACzB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,4CAA4C,EAAE,CAAC;;iDAClD","sourcesContent":["import { ApiProperty, ApiPropertyOptional, OmitType } from \"@nestjs/swagger\";\nimport { Transform, Type } from \"class-transformer\";\nimport {\n ArrayUnique,\n IsArray,\n IsBoolean,\n IsInt,\n IsOptional,\n IsString,\n Length,\n ValidateNested,\n} from \"class-validator\";\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 @IsString({ message: \"L'email deve essere una stringa.\" })\n @Length(3, 254, { message: \"L'email deve essere compresa tra 3 e 254 caratteri.\" })\n email!: string;\n\n @ApiPropertyOptional({\n description: \"Cognome dell'utente.\",\n example: \"Rossi\",\n })\n @IsOptional()\n @IsString({ message: \"Il cognome deve essere una stringa.\" })\n @Length(1, 255, { message: \"Il cognome deve essere compreso tra 1 e 255 caratteri.\" })\n cognome?: string;\n\n @ApiPropertyOptional({ description: \"Nome dell'utente.\", example: \"Mario\" })\n @IsOptional()\n @IsString({ message: \"Il nome deve essere una stringa.\" })\n @Length(1, 255, { message: \"Il nome deve essere compreso tra 1 e 255 caratteri.\" })\n nome?: string;\n\n @ApiPropertyOptional({\n description: \"Numero di cellulare.\",\n type: String,\n example: \"+393401234567\",\n nullable: true,\n })\n @IsOptional()\n @IsString({ message: \"Il cellulare deve essere una stringa.\" })\n @Length(1, 50, { message: \"Il cellulare deve essere compreso tra 1 e 50 caratteri.\" })\n cellulare?: string | null;\n\n @ApiPropertyOptional({ description: \"Flag superutente.\", example: false })\n @IsOptional()\n @IsBoolean({ message: \"Il flag superutente deve essere booleano.\" })\n flagSuper?: boolean;\n\n @ApiPropertyOptional({\n description: \"Flag che indica se l'utente è configuratore\",\n example: false,\n })\n @IsOptional()\n @IsBoolean({ message: \"Il flag configuratore deve essere booleano.\" })\n flagAdmin?: boolean;\n\n @ApiPropertyOptional({\n description: \"Ruoli assegnati all'utente.\",\n example: [1, 2],\n })\n @IsOptional()\n @IsArray({ message: \"I ruoli devono essere un array.\" })\n @ArrayUnique({ message: \"I ruoli non possono contenere duplicati.\" })\n @Type(() => Number)\n @IsInt({ each: true, message: \"Ogni ruolo deve essere un intero.\" })\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 @IsOptional()\n @IsArray({ message: \"I permessi devono essere un array.\" })\n @ValidateNested({ each: true })\n @Type(() => Permission)\n permissions?: Permission[];\n\n @ApiPropertyOptional({\n description: \"Avatar dell'utente.\",\n example: \"user.svg\",\n })\n @IsOptional()\n @IsString({ message: \"L'avatar deve essere una stringa.\" })\n avatar?: string;\n\n @ApiPropertyOptional({\n description: \"Flag autenticazione a due fattori.\",\n example: false,\n })\n @IsOptional()\n @IsBoolean({ message: \"Il flag due fattori deve essere booleano.\" })\n @Transform(({ obj, key }) => obj[key])\n flagDueFattori?: boolean;\n\n @ApiPropertyOptional({\n description: \"HTML mail personalizzato\",\n example: \"<html></html>\",\n })\n @IsOptional()\n @IsString({ message: \"L'HTML della mail deve essere una stringa.\" })\n htmlMail?: string;\n}\n"]}
|
|
@@ -4,7 +4,7 @@ import { FiltriUtente } from './FiltriUtente';
|
|
|
4
4
|
declare const UserDto_base: import("@nestjs/common").Type<Omit<FiltriUtente, "codUte">>;
|
|
5
5
|
/**
|
|
6
6
|
* Profilo Accessi con dati anagrafici, policy di accesso e filtri legacy.
|
|
7
|
-
* I campi amministrativi (`flagSuper`, `
|
|
7
|
+
* I campi amministrativi (`flagSuper`, `flagAdmin`, ruoli, grant e policy password) devono essere
|
|
8
8
|
* accettati soltanto da endpoint e flussi backend esplicitamente privilegiati.
|
|
9
9
|
*/
|
|
10
10
|
export declare class UserDto extends UserDto_base {
|
|
@@ -25,24 +25,9 @@ export declare class UserDto extends UserDto_base {
|
|
|
25
25
|
codiceLingua?: string;
|
|
26
26
|
cellulare?: string | null;
|
|
27
27
|
flagSuper?: boolean;
|
|
28
|
-
|
|
28
|
+
flagAdmin?: boolean;
|
|
29
29
|
passwordLoginEnabled?: boolean;
|
|
30
|
-
paginaDefault?: string;
|
|
31
|
-
nummac?: number;
|
|
32
30
|
jsonMetadata?: string;
|
|
33
|
-
ragSocCli?: string;
|
|
34
|
-
caumov?: string;
|
|
35
|
-
enableIa?: boolean;
|
|
36
|
-
flagMop?: boolean;
|
|
37
|
-
flagPiana?: boolean;
|
|
38
|
-
flagAddetti?: boolean;
|
|
39
|
-
flagOspiti?: boolean;
|
|
40
|
-
flagPianaRfid?: boolean;
|
|
41
|
-
flagConta?: boolean;
|
|
42
|
-
flagCubi?: boolean;
|
|
43
|
-
flagCicliPass?: boolean;
|
|
44
|
-
flagDipendenti?: boolean;
|
|
45
|
-
flagInventari?: boolean;
|
|
46
31
|
roles?: number[];
|
|
47
32
|
permissions?: Permission[];
|
|
48
33
|
}
|