emilsoftware-utilities 1.8.0-dev.2 → 2.0.0-dev.2
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/README.MD +38 -34
- package/dist/ContractGenerator.js.map +1 -1
- package/dist/DatabaseUpdater.js +24 -24
- package/dist/DatabaseUpdater.js.map +1 -1
- package/dist/EmilsoftwareModule.js.map +1 -1
- package/dist/ExecutionTimeLogger.js.map +1 -1
- package/dist/Logger.js.map +1 -1
- package/dist/Orm.js.map +1 -1
- package/dist/RoutesLoggerMiddleware.js.map +1 -1
- package/dist/Utilities.d.ts +18 -0
- package/dist/Utilities.js +90 -1
- package/dist/Utilities.js.map +1 -1
- package/dist/accessi-module/AccessiModule.d.ts +15 -0
- package/dist/accessi-module/AccessiModule.js.map +1 -1
- package/dist/accessi-module/Controllers/AuthController.d.ts +4 -4
- package/dist/accessi-module/Controllers/AuthController.js +36 -21
- package/dist/accessi-module/Controllers/AuthController.js.map +1 -1
- package/dist/accessi-module/Controllers/ConfiguratorController.js.map +1 -1
- package/dist/accessi-module/Controllers/EmailController.d.ts +3 -3
- package/dist/accessi-module/Controllers/EmailController.js +15 -15
- package/dist/accessi-module/Controllers/EmailController.js.map +1 -1
- package/dist/accessi-module/Controllers/FiltriController.d.ts +3 -3
- package/dist/accessi-module/Controllers/FiltriController.js +32 -15
- package/dist/accessi-module/Controllers/FiltriController.js.map +1 -1
- package/dist/accessi-module/Controllers/PermissionController.d.ts +12 -17
- package/dist/accessi-module/Controllers/PermissionController.js +140 -124
- package/dist/accessi-module/Controllers/PermissionController.js.map +1 -1
- package/dist/accessi-module/Controllers/UserController.d.ts +12 -11
- package/dist/accessi-module/Controllers/UserController.js +112 -79
- package/dist/accessi-module/Controllers/UserController.js.map +1 -1
- package/dist/accessi-module/Dtos/Abilitazione.js.map +1 -1
- package/dist/accessi-module/Dtos/AbilitazioneMenu.js.map +1 -1
- package/dist/accessi-module/Dtos/AssignPermissionsToUserRequest.js +6 -0
- package/dist/accessi-module/Dtos/AssignPermissionsToUserRequest.js.map +1 -1
- package/dist/accessi-module/Dtos/AssignRolesToUserRequest.js +6 -0
- package/dist/accessi-module/Dtos/AssignRolesToUserRequest.js.map +1 -1
- package/dist/accessi-module/Dtos/BaseResponse.js.map +1 -1
- package/dist/accessi-module/Dtos/FiltriUtente.js.map +1 -1
- package/dist/accessi-module/Dtos/GetGroupsWithMenusResponse.js.map +1 -1
- package/dist/accessi-module/Dtos/GetMenusResponse.js.map +1 -1
- package/dist/accessi-module/Dtos/GetRolesResponse.js.map +1 -1
- package/dist/accessi-module/Dtos/GetUsersResponse.js.map +1 -1
- package/dist/accessi-module/Dtos/LoginRequest.js.map +1 -1
- package/dist/accessi-module/Dtos/LoginResponse.js.map +1 -1
- package/dist/accessi-module/Dtos/Permission.js +5 -0
- package/dist/accessi-module/Dtos/Permission.js.map +1 -1
- package/dist/accessi-module/Dtos/RegisterRequest.js +37 -1
- package/dist/accessi-module/Dtos/RegisterRequest.js.map +1 -1
- package/dist/accessi-module/Dtos/RegisterResponse.js.map +1 -1
- package/dist/accessi-module/Dtos/Role.js +13 -2
- package/dist/accessi-module/Dtos/Role.js.map +1 -1
- package/dist/accessi-module/Dtos/RuoliMenu.js.map +1 -1
- package/dist/accessi-module/Dtos/SetStatoRegistrazione.js +6 -0
- package/dist/accessi-module/Dtos/SetStatoRegistrazione.js.map +1 -1
- package/dist/accessi-module/Dtos/StatoRegistrazione.js.map +1 -1
- package/dist/accessi-module/Dtos/TipoAbilitazione.js.map +1 -1
- package/dist/accessi-module/Dtos/TipoFiltro.js.map +1 -1
- package/dist/accessi-module/Dtos/TokenResult.js.map +1 -1
- package/dist/accessi-module/Dtos/UpdateEnabledStatusRequest.js.map +1 -1
- package/dist/accessi-module/Dtos/UserDto.js +59 -1
- package/dist/accessi-module/Dtos/UserDto.js.map +1 -1
- package/dist/accessi-module/Dtos/UserGrantsDto.js.map +1 -1
- package/dist/accessi-module/Dtos/index.js.map +1 -1
- package/dist/accessi-module/Services/AuthService/AuthService.d.ts +8 -3
- package/dist/accessi-module/Services/AuthService/AuthService.js +159 -27
- package/dist/accessi-module/Services/AuthService/AuthService.js.map +1 -1
- package/dist/accessi-module/Services/ConfiguratorService/ConfiguratorService.js.map +1 -1
- package/dist/accessi-module/Services/EmailService/EmailService.js +44 -21
- package/dist/accessi-module/Services/EmailService/EmailService.js.map +1 -1
- package/dist/accessi-module/Services/FiltriService/FiltriService.js +1 -1
- package/dist/accessi-module/Services/FiltriService/FiltriService.js.map +1 -1
- package/dist/accessi-module/Services/PermissionService/PermissionService.js +87 -87
- package/dist/accessi-module/Services/PermissionService/PermissionService.js.map +1 -1
- package/dist/accessi-module/Services/UserService/UserService.d.ts +15 -6
- package/dist/accessi-module/Services/UserService/UserService.js +165 -139
- package/dist/accessi-module/Services/UserService/UserService.js.map +1 -1
- package/dist/accessi-module/Views/reset-password.html +213 -195
- package/dist/accessi-module/database-updates/AccessiDatabaseUpdater.js +25 -16
- package/dist/accessi-module/database-updates/AccessiDatabaseUpdater.js.map +1 -1
- package/dist/accessi-module/database-updates/runAccessiDbUpdate.js.map +1 -1
- package/dist/accessi-module/index.js +33 -4
- package/dist/accessi-module/index.js.map +1 -1
- package/dist/accessi-module/jwt/jwt.strategy.d.ts +4 -2
- package/dist/accessi-module/jwt/jwt.strategy.js +47 -19
- package/dist/accessi-module/jwt/jwt.strategy.js.map +1 -1
- package/dist/accessi-module/middleware/accessiRequirements.js.map +1 -1
- package/dist/accessi-module/middleware/authenticateGen.d.ts +3 -1
- package/dist/accessi-module/middleware/authenticateGen.js +17 -11
- package/dist/accessi-module/middleware/authenticateGen.js.map +1 -1
- package/dist/accessi-module/security/accessControl.d.ts +17 -0
- package/dist/accessi-module/security/accessControl.js +44 -0
- package/dist/accessi-module/security/accessControl.js.map +1 -0
- package/dist/accessi-module/security/authenticatedToken.d.ts +11 -0
- package/dist/accessi-module/security/authenticatedToken.js +39 -0
- package/dist/accessi-module/security/authenticatedToken.js.map +1 -0
- package/dist/accessi-module/security/passwordResetToken.d.ts +8 -0
- package/dist/accessi-module/security/passwordResetToken.js +73 -0
- package/dist/accessi-module/security/passwordResetToken.js.map +1 -0
- package/dist/accessi-module/security/publicAuthRateLimit.d.ts +10 -0
- package/dist/accessi-module/security/publicAuthRateLimit.js +105 -0
- package/dist/accessi-module/security/publicAuthRateLimit.js.map +1 -0
- package/dist/allegati-module/AllegatiModule.js.map +1 -1
- package/dist/allegati-module/Controllers/AllegatiController.js.map +1 -1
- package/dist/allegati-module/Dtos/AllegatoDto.js.map +1 -1
- package/dist/allegati-module/Dtos/BaseResponse.js.map +1 -1
- package/dist/allegati-module/Dtos/UploadSingleFileRequest.js.map +1 -1
- package/dist/allegati-module/Dtos/index.js.map +1 -1
- package/dist/allegati-module/Dtos/responses/DownloadAllegatoResponseDto.js.map +1 -1
- package/dist/allegati-module/Dtos/responses/GetListResponse.js.map +1 -1
- package/dist/allegati-module/Dtos/responses/UploadAllegatoResponseDto.js.map +1 -1
- package/dist/allegati-module/Services/AllegatiService/AllegatiService.js +49 -49
- package/dist/allegati-module/Services/AllegatiService/AllegatiService.js.map +1 -1
- package/dist/allegati-module/index.js.map +1 -1
- package/dist/autobind.js.map +1 -1
- package/dist/index.js.map +1 -1
- package/dist/initEmilsoftwareModule.js.map +1 -1
- package/dist/swagger/SwaggerConfig.js.map +1 -1
- package/package.json +83 -83
- package/dist/emilsoftware-utilities-1.8.0-dev.2.tgz +0 -0
|
@@ -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;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"]}
|
|
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\";\r\nimport { BaseResponse } from \"./BaseResponse\";\r\nimport { IsArray, ValidateNested } from \"class-validator\";\r\nimport { Type } from \"class-transformer\";\r\nimport { MenuEntity } from \"./GetMenusResponse\";\r\n\r\n\r\n\r\nexport class GroupWithMenusEntity {\r\n @ApiProperty({\r\n description: \"Codice univoco del gruppo.\",\r\n type: String,\r\n example: \"GRP01\"\r\n })\r\n codiceGruppo: string;\r\n\r\n @ApiProperty({\r\n description: \"Descrizione del gruppo.\",\r\n type: String,\r\n example: \"Gestione Accessi\"\r\n })\r\n descrizioneGruppo: string;\r\n\r\n @ApiProperty({\r\n description: \"Ordine del gruppo.\",\r\n type: Number,\r\n example: 1\r\n })\r\n ordineGruppo: number;\r\n\r\n @ApiPropertyOptional({\r\n description: \"Flag che indica se il gruppo e abilitato.\",\r\n type: Boolean,\r\n example: true\r\n })\r\n enabled?: boolean;\r\n\r\n @ApiProperty({\r\n description: \"Lista dei menù associati al gruppo.\",\r\n type: [MenuEntity]\r\n })\r\n @ValidateNested({ each: true })\r\n @Type(() => MenuEntity)\r\n @IsArray()\r\n menus: MenuEntity[];\r\n}\r\n\r\nexport class GetGroupsWithMenusResponse extends BaseResponse {\r\n @ApiProperty({ type: [GroupWithMenusEntity] })\r\n @ValidateNested({ each: true })\r\n @Type(() => GroupWithMenusEntity)\r\n Result: GroupWithMenusEntity[];\r\n}\r\n"]}
|
|
@@ -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;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,KAAK;KAClB,CAAC;;yCACa;AAQf;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,OAAO;QAChB,QAAQ,EAAE,KAAK;KAClB,CAAC;;wCACY;AAQd;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,0CAA0C;QACvD,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,0BAA0B;QACnC,QAAQ,EAAE,KAAK;KAClB,CAAC;;0CACc;AAQhB;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;KACb,CAAC;;8CACiB;AAQnB;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;KACb,CAAC;;gDACmB;AAOrB;IALC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,yCAAyC;QACtD,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;KAChB,CAAC;;2CACgB;AAOlB;IALC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,6BAA6B;QAC1C,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;KACb,CAAC;;oDACwB;AAO1B;IALC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,qCAAqC;QAClD,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,mCAAmC;KAC/C,CAAC;;wCACmB;AAGzB,MAAa,gBAAiB,SAAQ,2BAAY;CAKjD;AALD,4CAKC;AADG;IAHC,IAAA,qBAAW,EAAC,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;;gDACF","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
|
+
{"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,KAAK;KAClB,CAAC;;yCACa;AAQf;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,eAAe;QAC5B,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,OAAO;QAChB,QAAQ,EAAE,KAAK;KAClB,CAAC;;wCACY;AAQd;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,0CAA0C;QACvD,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,0BAA0B;QACnC,QAAQ,EAAE,KAAK;KAClB,CAAC;;0CACc;AAQhB;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,kBAAkB;QAC/B,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;KACb,CAAC;;8CACiB;AAQnB;IALC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,oBAAoB;QACjC,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;KACb,CAAC;;gDACmB;AAOrB;IALC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,yCAAyC;QACtD,IAAI,EAAE,OAAO;QACb,OAAO,EAAE,IAAI;KAChB,CAAC;;2CACgB;AAOlB;IALC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,6BAA6B;QAC1C,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,CAAC;KACb,CAAC;;oDACwB;AAO1B;IALC,IAAA,6BAAmB,EAAC;QACjB,WAAW,EAAE,qCAAqC;QAClD,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,mCAAmC;KAC/C,CAAC;;wCACmB;AAGzB,MAAa,gBAAiB,SAAQ,2BAAY;CAKjD;AALD,4CAKC;AADG;IAHC,IAAA,qBAAW,EAAC,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;;gDACF","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from \"@nestjs/swagger\";\r\nimport { BaseResponse } from \"./BaseResponse\";\r\nimport { ValidateNested } from \"class-validator\";\r\nimport { Type } from \"class-transformer\";\r\n\r\n\r\n\r\n\r\n\r\nexport class MenuEntity {\r\n\r\n @ApiProperty({\r\n description: \"Codice univoco del menù.\",\r\n type: String,\r\n example: \"MNU001\"\r\n })\r\n codiceMenu: string;\r\n\r\n @ApiProperty({\r\n description: \"Descrizione del menù.\",\r\n type: String,\r\n example: \"Gestione Utenti\"\r\n })\r\n descrizioneMenu: string;\r\n\r\n @ApiProperty({\r\n description: \"Codice del gruppo a cui appartiene il menù.\",\r\n type: String,\r\n example: \"GRP01\",\r\n required: false\r\n })\r\n codiceGruppo?: string;\r\n\r\n @ApiProperty({\r\n description: \"Descrizione del gruppo a cui appartiene il menù.\",\r\n type: String,\r\n example: \"Gestione Accessi\",\r\n required: false\r\n })\r\n descrizioneGruppo?: string;\r\n\r\n @ApiProperty({\r\n description: \"Percorso dell'icona associata al menù.\",\r\n type: String,\r\n example: \"fa-users\",\r\n required: false\r\n })\r\n icona?: string;\r\n\r\n @ApiProperty({\r\n description: \"Tipo di menù.\",\r\n type: String,\r\n example: \"admin\",\r\n required: false\r\n })\r\n tipo?: string;\r\n\r\n @ApiProperty({\r\n description: \"Percorso della pagina associata al menù.\",\r\n type: String,\r\n example: \"/accessi/gestione-utenti\",\r\n required: false\r\n })\r\n pagina?: string;\r\n\r\n\r\n @ApiProperty({\r\n description: \"Ordine del menu.\",\r\n type: Number,\r\n example: 1\r\n })\r\n ordineMenu: number;\r\n\r\n\r\n @ApiProperty({\r\n description: \"Ordine del gruppo.\",\r\n type: Number,\r\n example: 1\r\n })\r\n ordineGruppo: number;\r\n\r\n @ApiPropertyOptional({\r\n description: \"Flag che indica se il menu e abilitato.\",\r\n type: Boolean,\r\n example: true\r\n })\r\n enabled?: boolean;\r\n\r\n @ApiPropertyOptional({\r\n description: \"Tipo abilitazione opzionale\",\r\n type: Number,\r\n example: 1\r\n })\r\n tipoAbilitazione?: number;\r\n\r\n @ApiPropertyOptional({\r\n description: \"Nota informativa associata al menu.\",\r\n type: String,\r\n example: \"Visibile solo agli amministratori\"\r\n })\r\n note?: string | null;\r\n}\r\n\r\nexport class GetMenusResponse extends BaseResponse {\r\n @ApiProperty({ type: [MenuEntity] })\r\n @ValidateNested({ each: true })\r\n @Type(() => MenuEntity)\r\n Result: MenuEntity[];\r\n}\r\n"]}
|
|
@@ -1 +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"]}
|
|
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';\r\nimport { BaseResponse } from './BaseResponse';\r\nimport { Role } from './Role';\r\nimport { Type } from 'class-transformer';\r\nimport { ValidateNested } from 'class-validator';\r\n\r\nexport class GetRolesResponse extends BaseResponse {\r\n @ApiProperty({ type: [Role] })\r\n @ValidateNested({ each: true })\r\n @Type(() => Role)\r\n Result: Role[];\r\n}\r\n"]}
|
|
@@ -1 +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"]}
|
|
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';\r\nimport { ValidateNested } from 'class-validator';\r\nimport { Type } from 'class-transformer';\r\nimport { BaseResponse } from './BaseResponse';\r\nimport { UserDto } from './UserDto';\r\nimport { UserGrantsDto } from './UserGrantsDto';\r\n\r\n\r\nexport class GetUsersResult {\r\n @ApiProperty({ description: 'Dati utente', type: UserDto })\r\n @ValidateNested()\r\n @Type(() => UserDto)\r\n utente?: UserDto;\r\n\r\n @ApiProperty({ description: 'Abilitazioni e ruoli utente', type: UserGrantsDto })\r\n @ValidateNested()\r\n @Type(() => UserGrantsDto)\r\n userGrants?: UserGrantsDto;\r\n\r\n @ApiProperty({ description: 'Extension Fields', type: Object })\r\n extensionFields?: any;\r\n\r\n}\r\n\r\nexport class GetUsersResponse extends BaseResponse {\r\n @ApiProperty({ type: [GetUsersResult] })\r\n @ValidateNested({ each: true })\r\n @Type(() => GetUsersResult)\r\n Result: GetUsersResult[];\r\n}\r\n\r\n\r\n"]}
|
|
@@ -1 +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"]}
|
|
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\";\r\nimport { IsString, Length } from \"class-validator\";\r\n\r\nexport class LoginRequest {\r\n \r\n @ApiProperty({\r\n description: 'Email dell\\'utente',\r\n example: 'mario.rossi'\r\n })\r\n @IsString({ message: \"L'email deve essere una stringa.\" })\r\n @Length(3, 50, { message: \"L'email deve essere tra 3 e 50 caratteri.\" })\r\n email: string;\r\n\r\n @ApiProperty({\r\n description: 'Password dell\\'utente',\r\n example: 'Str0ngP@ssw0rd!'\r\n })\r\n @IsString({ message: \"La password deve essere una stringa.\" })\r\n @Length(8, 100, { message: \"La password deve essere tra 8 e 100 caratteri.\" })\r\n password: string;\r\n}\r\n"]}
|
|
@@ -1 +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"]}
|
|
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\";\r\nimport { BaseResponse } from \"./BaseResponse\";\r\nimport { FiltriUtente } from \"./FiltriUtente\";\r\nimport { AbilitazioneMenu } from \"./AbilitazioneMenu\";\r\nimport { TokenResult } from \"./TokenResult\";\r\nimport { UserDto } from \"./UserDto\";\r\nimport { Type } from \"class-transformer\";\r\nimport { ValidateNested } from \"class-validator\";\r\nimport { UserGrantsDto } from \"./UserGrantsDto\";\r\n\r\nexport class LoginResult {\r\n @ApiProperty({ description: 'Dati utente', type: UserDto })\r\n @ValidateNested()\r\n @Type(() => UserDto)\r\n utente?: UserDto;\r\n\r\n @ApiProperty({ description: 'Filtri utente', type: [FiltriUtente] })\r\n @ValidateNested({ each: true })\r\n @Type(() => FiltriUtente)\r\n filtri?: FiltriUtente[];\r\n\r\n @ApiProperty({ description: 'Abilitazioni e ruoli utente', type: UserGrantsDto })\r\n @ValidateNested()\r\n @Type(() => UserGrantsDto)\r\n userGrants?: UserGrantsDto;\r\n\r\n @ApiProperty({ description: 'Extension Fields', type: Object})\r\n extensionFields?: any;\r\n\r\n @ApiProperty({ description: 'Token', type: TokenResult })\r\n @ValidateNested()\r\n @Type(() => TokenResult)\r\n token?: TokenResult;\r\n}\r\n\r\nexport class LoginResponse extends BaseResponse {\r\n @ApiProperty({ type: LoginResult })\r\n @ValidateNested()\r\n @Type(() => LoginResult)\r\n Result: LoginResult;\r\n}\r\n"]}
|
|
@@ -11,6 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.Permission = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_validator_1 = require("class-validator");
|
|
15
|
+
const TipoAbilitazione_1 = require("./TipoAbilitazione");
|
|
14
16
|
class Permission {
|
|
15
17
|
}
|
|
16
18
|
exports.Permission = Permission;
|
|
@@ -20,6 +22,8 @@ __decorate([
|
|
|
20
22
|
type: String,
|
|
21
23
|
example: "MNU001"
|
|
22
24
|
}),
|
|
25
|
+
(0, class_validator_1.IsString)({ message: "Il codice menu deve essere una stringa." }),
|
|
26
|
+
(0, class_validator_1.Length)(3, 50, { message: "Il codice menu deve essere compreso tra 3 e 50 caratteri." }),
|
|
23
27
|
__metadata("design:type", String)
|
|
24
28
|
], Permission.prototype, "codiceMenu", void 0);
|
|
25
29
|
__decorate([
|
|
@@ -28,6 +32,7 @@ __decorate([
|
|
|
28
32
|
type: Number,
|
|
29
33
|
example: 30
|
|
30
34
|
}),
|
|
35
|
+
(0, class_validator_1.IsEnum)(TipoAbilitazione_1.TipoAbilitazione, { message: "Il tipo di abilitazione non e valido." }),
|
|
31
36
|
__metadata("design:type", Number)
|
|
32
37
|
], Permission.prototype, "tipoAbilitazione", void 0);
|
|
33
38
|
//# sourceMappingURL=Permission.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Permission.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/Permission.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;
|
|
1
|
+
{"version":3,"file":"Permission.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/Permission.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,qDAA2D;AAC3D,yDAAsD;AAEtD,MAAa,UAAU;CAiBtB;AAjBD,gCAiBC;AATG;IAPC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,gEAAgE;QAC7E,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,QAAQ;KACpB,CAAC;IACD,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;IAChE,IAAA,wBAAM,EAAC,CAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,2DAA2D,EAAE,CAAC;;8CACrE;AAQnB;IANC,IAAA,qBAAW,EAAC;QACT,WAAW,EAAE,oEAAoE;QACjF,IAAI,EAAE,MAAM;QACZ,OAAO,EAAE,EAAE;KACd,CAAC;IACD,IAAA,wBAAM,EAAC,mCAAgB,EAAE,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;;oDACtD","sourcesContent":["import { ApiProperty } from \"@nestjs/swagger\";\r\nimport { IsEnum, IsString, Length } from \"class-validator\";\r\nimport { TipoAbilitazione } from \"./TipoAbilitazione\";\r\n\r\nexport class Permission {\r\n @ApiProperty({\r\n description: \"Codice identificativo del menu a cui assegnare l'abilitazione.\",\r\n type: String,\r\n example: \"MNU001\"\r\n })\r\n @IsString({ message: \"Il codice menu deve essere una stringa.\" })\r\n @Length(3, 50, { message: \"Il codice menu deve essere compreso tra 3 e 50 caratteri.\" })\r\n codiceMenu: string;\r\n\r\n @ApiProperty({\r\n description: \"Tipo di abilitazione assegnata all'utente per il menu specificato.\",\r\n type: Number,\r\n example: 30\r\n })\r\n @IsEnum(TipoAbilitazione, { message: \"Il tipo di abilitazione non e valido.\" })\r\n tipoAbilitazione: number;\r\n}\r\n"]}
|
|
@@ -11,6 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.RegisterRequest = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
14
16
|
const Permission_1 = require("./Permission");
|
|
15
17
|
const TipoAbilitazione_1 = require("./TipoAbilitazione");
|
|
16
18
|
const FiltriUtente_1 = require("./FiltriUtente");
|
|
@@ -22,6 +24,8 @@ __decorate([
|
|
|
22
24
|
description: "Email dell'utente.",
|
|
23
25
|
example: "mario.rossi@dev.it",
|
|
24
26
|
}),
|
|
27
|
+
(0, class_validator_1.IsString)({ message: "L'email deve essere una stringa." }),
|
|
28
|
+
(0, class_validator_1.Length)(3, 254, { message: "L'email deve essere compresa tra 3 e 254 caratteri." }),
|
|
25
29
|
__metadata("design:type", String)
|
|
26
30
|
], RegisterRequest.prototype, "email", void 0);
|
|
27
31
|
__decorate([
|
|
@@ -29,10 +33,16 @@ __decorate([
|
|
|
29
33
|
description: "Cognome dell'utente.",
|
|
30
34
|
example: "Rossi",
|
|
31
35
|
}),
|
|
36
|
+
(0, class_validator_1.IsOptional)(),
|
|
37
|
+
(0, class_validator_1.IsString)({ message: "Il cognome deve essere una stringa." }),
|
|
38
|
+
(0, class_validator_1.Length)(1, 255, { message: "Il cognome deve essere compreso tra 1 e 255 caratteri." }),
|
|
32
39
|
__metadata("design:type", String)
|
|
33
40
|
], RegisterRequest.prototype, "cognome", void 0);
|
|
34
41
|
__decorate([
|
|
35
42
|
(0, swagger_1.ApiPropertyOptional)({ description: "Nome dell'utente.", example: "Mario" }),
|
|
43
|
+
(0, class_validator_1.IsOptional)(),
|
|
44
|
+
(0, class_validator_1.IsString)({ message: "Il nome deve essere una stringa." }),
|
|
45
|
+
(0, class_validator_1.Length)(1, 255, { message: "Il nome deve essere compreso tra 1 e 255 caratteri." }),
|
|
36
46
|
__metadata("design:type", String)
|
|
37
47
|
], RegisterRequest.prototype, "nome", void 0);
|
|
38
48
|
__decorate([
|
|
@@ -41,17 +51,24 @@ __decorate([
|
|
|
41
51
|
example: "+393401234567",
|
|
42
52
|
nullable: true,
|
|
43
53
|
}),
|
|
54
|
+
(0, class_validator_1.IsOptional)(),
|
|
55
|
+
(0, class_validator_1.IsString)({ message: "Il cellulare deve essere una stringa." }),
|
|
56
|
+
(0, class_validator_1.Length)(1, 50, { message: "Il cellulare deve essere compreso tra 1 e 50 caratteri." }),
|
|
44
57
|
__metadata("design:type", String)
|
|
45
58
|
], RegisterRequest.prototype, "cellulare", void 0);
|
|
46
59
|
__decorate([
|
|
47
60
|
(0, swagger_1.ApiPropertyOptional)({ description: "Flag superutente.", example: false }),
|
|
61
|
+
(0, class_validator_1.IsOptional)(),
|
|
62
|
+
(0, class_validator_1.IsBoolean)({ message: "Il flag superutente deve essere booleano." }),
|
|
48
63
|
__metadata("design:type", Boolean)
|
|
49
64
|
], RegisterRequest.prototype, "flagSuper", void 0);
|
|
50
65
|
__decorate([
|
|
51
66
|
(0, swagger_1.ApiPropertyOptional)({
|
|
52
67
|
description: "Flag che indica se l'utente è configuratore",
|
|
53
|
-
example: false
|
|
68
|
+
example: false,
|
|
54
69
|
}),
|
|
70
|
+
(0, class_validator_1.IsOptional)(),
|
|
71
|
+
(0, class_validator_1.IsBoolean)({ message: "Il flag configuratore deve essere booleano." }),
|
|
55
72
|
__metadata("design:type", Boolean)
|
|
56
73
|
], RegisterRequest.prototype, "flagAdminConfigurator", void 0);
|
|
57
74
|
__decorate([
|
|
@@ -59,6 +76,11 @@ __decorate([
|
|
|
59
76
|
description: "Ruoli assegnati all'utente.",
|
|
60
77
|
example: [1, 2],
|
|
61
78
|
}),
|
|
79
|
+
(0, class_validator_1.IsOptional)(),
|
|
80
|
+
(0, class_validator_1.IsArray)({ message: "I ruoli devono essere un array." }),
|
|
81
|
+
(0, class_validator_1.ArrayUnique)({ message: "I ruoli non possono contenere duplicati." }),
|
|
82
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
83
|
+
(0, class_validator_1.IsInt)({ each: true, message: "Ogni ruolo deve essere un intero." }),
|
|
62
84
|
__metadata("design:type", Array)
|
|
63
85
|
], RegisterRequest.prototype, "roles", void 0);
|
|
64
86
|
__decorate([
|
|
@@ -72,6 +94,10 @@ __decorate([
|
|
|
72
94
|
},
|
|
73
95
|
],
|
|
74
96
|
}),
|
|
97
|
+
(0, class_validator_1.IsOptional)(),
|
|
98
|
+
(0, class_validator_1.IsArray)({ message: "I permessi devono essere un array." }),
|
|
99
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
100
|
+
(0, class_transformer_1.Type)(() => Permission_1.Permission),
|
|
75
101
|
__metadata("design:type", Array)
|
|
76
102
|
], RegisterRequest.prototype, "permissions", void 0);
|
|
77
103
|
__decorate([
|
|
@@ -79,6 +105,8 @@ __decorate([
|
|
|
79
105
|
description: "Avatar dell'utente.",
|
|
80
106
|
example: "user.svg",
|
|
81
107
|
}),
|
|
108
|
+
(0, class_validator_1.IsOptional)(),
|
|
109
|
+
(0, class_validator_1.IsString)({ message: "L'avatar deve essere una stringa." }),
|
|
82
110
|
__metadata("design:type", String)
|
|
83
111
|
], RegisterRequest.prototype, "avatar", void 0);
|
|
84
112
|
__decorate([
|
|
@@ -86,6 +114,8 @@ __decorate([
|
|
|
86
114
|
description: "Flag autenticazione a due fattori.",
|
|
87
115
|
example: false,
|
|
88
116
|
}),
|
|
117
|
+
(0, class_validator_1.IsOptional)(),
|
|
118
|
+
(0, class_validator_1.IsBoolean)({ message: "Il flag due fattori deve essere booleano." }),
|
|
89
119
|
__metadata("design:type", Boolean)
|
|
90
120
|
], RegisterRequest.prototype, "flagDueFattori", void 0);
|
|
91
121
|
__decorate([
|
|
@@ -93,6 +123,8 @@ __decorate([
|
|
|
93
123
|
description: "Pagina di default dell'utente.",
|
|
94
124
|
example: "/dashboard",
|
|
95
125
|
}),
|
|
126
|
+
(0, class_validator_1.IsOptional)(),
|
|
127
|
+
(0, class_validator_1.IsString)({ message: "La pagina di default deve essere una stringa." }),
|
|
96
128
|
__metadata("design:type", String)
|
|
97
129
|
], RegisterRequest.prototype, "paginaDefault", void 0);
|
|
98
130
|
__decorate([
|
|
@@ -107,6 +139,8 @@ __decorate([
|
|
|
107
139
|
description: "Ragione sociale cliente.",
|
|
108
140
|
example: "ALIVAL STOCK",
|
|
109
141
|
}),
|
|
142
|
+
(0, class_validator_1.IsOptional)(),
|
|
143
|
+
(0, class_validator_1.IsString)({ message: "La ragione sociale deve essere una stringa." }),
|
|
110
144
|
__metadata("design:type", String)
|
|
111
145
|
], RegisterRequest.prototype, "ragSocCli", void 0);
|
|
112
146
|
__decorate([
|
|
@@ -114,6 +148,8 @@ __decorate([
|
|
|
114
148
|
description: "HTML mail personalizzato",
|
|
115
149
|
example: "<html></html>",
|
|
116
150
|
}),
|
|
151
|
+
(0, class_validator_1.IsOptional)(),
|
|
152
|
+
(0, class_validator_1.IsString)({ message: "L'HTML della mail deve essere una stringa." }),
|
|
117
153
|
__metadata("design:type", String)
|
|
118
154
|
], RegisterRequest.prototype, "htmlMail", void 0);
|
|
119
155
|
//# sourceMappingURL=RegisterRequest.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"RegisterRequest.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/RegisterRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6E;
|
|
1
|
+
{"version":3,"file":"RegisterRequest.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/RegisterRequest.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA6E;AAC7E,yDAAyC;AACzC,qDASyB;AACzB,6CAA0C;AAC1C,yDAAsD;AACtD,iDAA8C;AAE9C,MAAa,eAAgB,SAAQ,IAAA,kBAAQ,EAAC,2BAAY,EAAE,CAAC,QAAQ,CAAU,CAAC;CAuH/E;AAvHD,0CAuHC;AAhHC;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;;8CACrE;AASd;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,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,qDAAqD,EAAE,CAAC;;6CACrE;AAUd;IARC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,sBAAsB;QACnC,OAAO,EAAE,eAAe;QACxB,QAAQ,EAAE,IAAI;KACf,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,uCAAuC,EAAE,CAAC;IAC9D,IAAA,wBAAM,EAAC,CAAC,EAAE,EAAE,EAAE,EAAE,OAAO,EAAE,yDAAyD,EAAE,CAAC;;kDAC5D;AAK1B;IAHC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,mBAAmB,EAAE,OAAO,EAAE,KAAK,EAAE,CAAC;IACzE,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,OAAO,EAAE,2CAA2C,EAAE,CAAC;;kDAChD;AAQpB;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,6CAA6C;QAC1D,OAAO,EAAE,KAAK;KACf,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,2BAAS,EAAC,EAAE,OAAO,EAAE,6CAA6C,EAAE,CAAC;;8DACtC;AAWhC;IATC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,6BAA6B;QAC1C,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,CAAC;KAChB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,yBAAO,EAAC,EAAE,OAAO,EAAE,iCAAiC,EAAE,CAAC;IACvD,IAAA,6BAAW,EAAC,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;IACpE,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,OAAO,EAAE,mCAAmC,EAAE,CAAC;;8CACnD;AAgBjB;IAdC,IAAA,6BAAmB,EAAC;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;AAQhB;IANC,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;;uDAC3C;AAQzB;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,gCAAgC;QAC7C,OAAO,EAAE,YAAY;KACtB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,+CAA+C,EAAE,CAAC;;sDAChD;AAMvB;IAJC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,kCAAkC;QAC/C,OAAO,EAAE,EAAE;KACZ,CAAC;;+CACc;AAQhB;IANC,IAAA,6BAAmB,EAAC;QACnB,WAAW,EAAE,0BAA0B;QACvC,OAAO,EAAE,cAAc;KACxB,CAAC;IACD,IAAA,4BAAU,GAAE;IACZ,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,6CAA6C,EAAE,CAAC;;kDAClD;AAQnB;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\";\r\nimport { Type } from \"class-transformer\";\r\nimport {\r\n ArrayUnique,\r\n IsArray,\r\n IsBoolean,\r\n IsInt,\r\n IsOptional,\r\n IsString,\r\n Length,\r\n ValidateNested,\r\n} from \"class-validator\";\r\nimport { Permission } from \"./Permission\";\r\nimport { TipoAbilitazione } from \"./TipoAbilitazione\";\r\nimport { FiltriUtente } from \"./FiltriUtente\";\r\n\r\nexport class RegisterRequest extends OmitType(FiltriUtente, ['codUte'] as const) {\r\n @ApiProperty({\r\n description: \"Email dell'utente.\",\r\n example: \"mario.rossi@dev.it\",\r\n })\r\n @IsString({ message: \"L'email deve essere una stringa.\" })\r\n @Length(3, 254, { message: \"L'email deve essere compresa tra 3 e 254 caratteri.\" })\r\n email: string;\r\n\r\n @ApiPropertyOptional({\r\n description: \"Cognome dell'utente.\",\r\n example: \"Rossi\",\r\n })\r\n @IsOptional()\r\n @IsString({ message: \"Il cognome deve essere una stringa.\" })\r\n @Length(1, 255, { message: \"Il cognome deve essere compreso tra 1 e 255 caratteri.\" })\r\n cognome?: string;\r\n\r\n @ApiPropertyOptional({ description: \"Nome dell'utente.\", example: \"Mario\" })\r\n @IsOptional()\r\n @IsString({ message: \"Il nome deve essere una stringa.\" })\r\n @Length(1, 255, { message: \"Il nome deve essere compreso tra 1 e 255 caratteri.\" })\r\n nome?: string;\r\n\r\n @ApiPropertyOptional({\r\n description: \"Numero di cellulare.\",\r\n example: \"+393401234567\",\r\n nullable: true,\r\n })\r\n @IsOptional()\r\n @IsString({ message: \"Il cellulare deve essere una stringa.\" })\r\n @Length(1, 50, { message: \"Il cellulare deve essere compreso tra 1 e 50 caratteri.\" })\r\n cellulare?: string | null;\r\n\r\n @ApiPropertyOptional({ description: \"Flag superutente.\", example: false })\r\n @IsOptional()\r\n @IsBoolean({ message: \"Il flag superutente deve essere booleano.\" })\r\n flagSuper?: boolean;\r\n\r\n @ApiPropertyOptional({\r\n description: \"Flag che indica se l'utente è configuratore\",\r\n example: false,\r\n })\r\n @IsOptional()\r\n @IsBoolean({ message: \"Il flag configuratore deve essere booleano.\" })\r\n flagAdminConfigurator?: boolean;\r\n\r\n @ApiPropertyOptional({\r\n description: \"Ruoli assegnati all'utente.\",\r\n example: [1, 2],\r\n })\r\n @IsOptional()\r\n @IsArray({ message: \"I ruoli devono essere un array.\" })\r\n @ArrayUnique({ message: \"I ruoli non possono contenere duplicati.\" })\r\n @Type(() => Number)\r\n @IsInt({ each: true, message: \"Ogni ruolo deve essere un intero.\" })\r\n roles?: number[];\r\n\r\n @ApiPropertyOptional({\r\n description: \"Permessi assegnati all'utente.\",\r\n type: [Permission],\r\n example: [\r\n {\r\n codiceMenu: \"MNUOFFICINA\",\r\n tipoAbilitazione: TipoAbilitazione.SCRITTURA,\r\n },\r\n ],\r\n })\r\n @IsOptional()\r\n @IsArray({ message: \"I permessi devono essere un array.\" })\r\n @ValidateNested({ each: true })\r\n @Type(() => Permission)\r\n permissions?: Permission[];\r\n\r\n @ApiPropertyOptional({\r\n description: \"Avatar dell'utente.\",\r\n example: \"user.svg\",\r\n })\r\n @IsOptional()\r\n @IsString({ message: \"L'avatar deve essere una stringa.\" })\r\n avatar?: string;\r\n\r\n @ApiPropertyOptional({\r\n description: \"Flag autenticazione a due fattori.\",\r\n example: false,\r\n })\r\n @IsOptional()\r\n @IsBoolean({ message: \"Il flag due fattori deve essere booleano.\" })\r\n flagDueFattori?: boolean;\r\n\r\n @ApiPropertyOptional({\r\n description: \"Pagina di default dell'utente.\",\r\n example: \"/dashboard\",\r\n })\r\n @IsOptional()\r\n @IsString({ message: \"La pagina di default deve essere una stringa.\" })\r\n paginaDefault?: string;\r\n\r\n @ApiPropertyOptional({\r\n description: \"Numero MAC associato all'utente.\",\r\n example: 12,\r\n })\r\n nummac?: number;\r\n\r\n @ApiPropertyOptional({\r\n description: \"Ragione sociale cliente.\",\r\n example: \"ALIVAL STOCK\",\r\n })\r\n @IsOptional()\r\n @IsString({ message: \"La ragione sociale deve essere una stringa.\" })\r\n ragSocCli?: string;\r\n\r\n @ApiPropertyOptional({\r\n description: \"HTML mail personalizzato\",\r\n example: \"<html></html>\",\r\n })\r\n @IsOptional()\r\n @IsString({ message: \"L'HTML della mail deve essere una stringa.\" })\r\n htmlMail?: string;\r\n}\r\n"]}
|
|
@@ -1 +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"]}
|
|
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';\r\nimport { BaseResponse } from './BaseResponse';\r\n\r\nexport class RegisterResponse extends BaseResponse {\r\n @ApiProperty({\r\n description: 'Codice identificativo univoco dell’utente registrato',\r\n example: 'USR-123456'\r\n })\r\n Result: string;\r\n}\r\n"]}
|
|
@@ -11,23 +11,34 @@ 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 class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
14
16
|
const RuoliMenu_1 = require("./RuoliMenu");
|
|
15
17
|
class Role {
|
|
16
18
|
}
|
|
17
19
|
exports.Role = Role;
|
|
18
20
|
__decorate([
|
|
19
21
|
(0, swagger_1.ApiPropertyOptional)({ description: 'Codice univoco del ruolo', required: false, type: Number, example: 1 }),
|
|
22
|
+
(0, class_validator_1.IsOptional)(),
|
|
23
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
24
|
+
(0, class_validator_1.IsInt)({ message: 'Il codice ruolo deve essere un intero.' }),
|
|
20
25
|
__metadata("design:type", Number)
|
|
21
26
|
], Role.prototype, "codiceRuolo", void 0);
|
|
22
27
|
__decorate([
|
|
23
28
|
(0, swagger_1.ApiProperty)({ description: 'Descrizione del ruolo' }),
|
|
29
|
+
(0, class_validator_1.IsString)({ message: 'La descrizione del ruolo deve essere una stringa.' }),
|
|
30
|
+
(0, class_validator_1.Length)(1, 255, { message: 'La descrizione del ruolo deve essere compresa tra 1 e 255 caratteri.' }),
|
|
24
31
|
__metadata("design:type", String)
|
|
25
32
|
], Role.prototype, "descrizioneRuolo", void 0);
|
|
26
33
|
__decorate([
|
|
27
34
|
(0, swagger_1.ApiProperty)({
|
|
28
|
-
description: 'Lista di
|
|
29
|
-
type: [RuoliMenu_1.RuoliMenu]
|
|
35
|
+
description: 'Lista di menu associati al ruolo',
|
|
36
|
+
type: [RuoliMenu_1.RuoliMenu],
|
|
30
37
|
}),
|
|
38
|
+
(0, class_validator_1.IsArray)({ message: 'I menu del ruolo devono essere un array.' }),
|
|
39
|
+
(0, class_validator_1.ArrayNotEmpty)({ message: 'Il ruolo deve contenere almeno un menu.' }),
|
|
40
|
+
(0, class_validator_1.ValidateNested)({ each: true }),
|
|
41
|
+
(0, class_transformer_1.Type)(() => RuoliMenu_1.RuoliMenu),
|
|
31
42
|
__metadata("design:type", Array)
|
|
32
43
|
], Role.prototype, "menu", void 0);
|
|
33
44
|
//# sourceMappingURL=Role.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/Role.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;
|
|
1
|
+
{"version":3,"file":"Role.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/Role.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAAmE;AACnE,yDAAyC;AACzC,qDAQyB;AACzB,2CAAwC;AAExC,MAAa,IAAI;CAqBhB;AArBD,oBAqBC;AAhBC;IAJC,IAAA,6BAAmB,EAAC,EAAE,WAAW,EAAE,0BAA0B,EAAE,QAAQ,EAAE,KAAK,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,CAAC,EAAE,CAAC;IAC3G,IAAA,4BAAU,GAAE;IACZ,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,wCAAwC,EAAE,CAAC;;yCACxC;AAKrB;IAHC,IAAA,qBAAW,EAAC,EAAE,WAAW,EAAE,uBAAuB,EAAE,CAAC;IACrD,IAAA,0BAAQ,EAAC,EAAE,OAAO,EAAE,mDAAmD,EAAE,CAAC;IAC1E,IAAA,wBAAM,EAAC,CAAC,EAAE,GAAG,EAAE,EAAE,OAAO,EAAE,sEAAsE,EAAE,CAAC;;8CAC3E;AAUzB;IARC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,kCAAkC;QAC/C,IAAI,EAAE,CAAC,qBAAS,CAAC;KAClB,CAAC;IACD,IAAA,yBAAO,EAAC,EAAE,OAAO,EAAE,0CAA0C,EAAE,CAAC;IAChE,IAAA,+BAAa,EAAC,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;IACrE,IAAA,gCAAc,EAAC,EAAE,IAAI,EAAE,IAAI,EAAE,CAAC;IAC9B,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,qBAAS,CAAC;;kCACJ","sourcesContent":["import { ApiProperty, ApiPropertyOptional } from '@nestjs/swagger';\r\nimport { Type } from 'class-transformer';\r\nimport {\r\n ArrayNotEmpty,\r\n IsArray,\r\n IsInt,\r\n IsOptional,\r\n IsString,\r\n Length,\r\n ValidateNested,\r\n} from 'class-validator';\r\nimport { RuoliMenu } from './RuoliMenu';\r\n\r\nexport class Role {\r\n @ApiPropertyOptional({ description: 'Codice univoco del ruolo', required: false, type: Number, example: 1 })\r\n @IsOptional()\r\n @Type(() => Number)\r\n @IsInt({ message: 'Il codice ruolo deve essere un intero.' })\r\n codiceRuolo?: number;\r\n\r\n @ApiProperty({ description: 'Descrizione del ruolo' })\r\n @IsString({ message: 'La descrizione del ruolo deve essere una stringa.' })\r\n @Length(1, 255, { message: 'La descrizione del ruolo deve essere compresa tra 1 e 255 caratteri.' })\r\n descrizioneRuolo: string;\r\n\r\n @ApiProperty({\r\n description: 'Lista di menu associati al ruolo',\r\n type: [RuoliMenu],\r\n })\r\n @IsArray({ message: 'I menu del ruolo devono essere un array.' })\r\n @ArrayNotEmpty({ message: 'Il ruolo deve contenere almeno un menu.' })\r\n @ValidateNested({ each: true })\r\n @Type(() => RuoliMenu)\r\n menu: RuoliMenu[];\r\n}\r\n"]}
|
|
@@ -1 +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"]}
|
|
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';\r\nimport { IsEnum, IsNotEmpty, IsNumber, IsOptional, IsString } from 'class-validator';\r\nimport { TipoAbilitazione } from './TipoAbilitazione';\r\n\r\nexport class RuoliMenu {\r\n @ApiPropertyOptional({\r\n description: 'Codice Ruolo',\r\n example: 1,\r\n })\r\n @IsNumber()\r\n @IsOptional()\r\n codiceRuolo?: number;\r\n\r\n @ApiProperty({\r\n description: 'Codice univoco del menu',\r\n example: 'MNUELENCOCLIENTI',\r\n })\r\n @IsString()\r\n @IsNotEmpty({ message: 'Il codice menu è obbligatorio.' })\r\n codiceMenu: string;\r\n\r\n @ApiProperty({\r\n description: 'Tipo di abilitazione',\r\n enum: TipoAbilitazione,\r\n example: TipoAbilitazione.LETTURA,\r\n })\r\n @IsEnum(TipoAbilitazione, { message: 'Il tipo di abilitazione non è valido.' })\r\n tipoAbilitazione: TipoAbilitazione;\r\n}\r\n"]}
|
|
@@ -11,6 +11,8 @@ var __metadata = (this && this.__metadata) || function (k, v) {
|
|
|
11
11
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
12
12
|
exports.SetStatoRegistrazioneDto = void 0;
|
|
13
13
|
const swagger_1 = require("@nestjs/swagger");
|
|
14
|
+
const class_transformer_1 = require("class-transformer");
|
|
15
|
+
const class_validator_1 = require("class-validator");
|
|
14
16
|
const StatoRegistrazione_1 = require("./StatoRegistrazione");
|
|
15
17
|
class SetStatoRegistrazioneDto {
|
|
16
18
|
}
|
|
@@ -20,6 +22,9 @@ __decorate([
|
|
|
20
22
|
description: "Codice identificativo dell'utente",
|
|
21
23
|
example: 123,
|
|
22
24
|
}),
|
|
25
|
+
(0, class_transformer_1.Type)(() => Number),
|
|
26
|
+
(0, class_validator_1.IsInt)({ message: 'Il codice utente deve essere un intero.' }),
|
|
27
|
+
(0, class_validator_1.Min)(1, { message: 'Il codice utente deve essere maggiore di zero.' }),
|
|
23
28
|
__metadata("design:type", Number)
|
|
24
29
|
], SetStatoRegistrazioneDto.prototype, "codiceUtente", void 0);
|
|
25
30
|
__decorate([
|
|
@@ -28,6 +33,7 @@ __decorate([
|
|
|
28
33
|
enum: StatoRegistrazione_1.StatoRegistrazione,
|
|
29
34
|
example: StatoRegistrazione_1.StatoRegistrazione.DELETE,
|
|
30
35
|
}),
|
|
36
|
+
(0, class_validator_1.IsEnum)(StatoRegistrazione_1.StatoRegistrazione, { message: 'Lo stato di registrazione non e valido.' }),
|
|
31
37
|
__metadata("design:type", Number)
|
|
32
38
|
], SetStatoRegistrazioneDto.prototype, "statoRegistrazione", void 0);
|
|
33
39
|
//# sourceMappingURL=SetStatoRegistrazione.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"SetStatoRegistrazione.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/SetStatoRegistrazione.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,6DAA0D;AAE1D,MAAa,wBAAwB;
|
|
1
|
+
{"version":3,"file":"SetStatoRegistrazione.js","sourceRoot":"","sources":["../../../src/accessi-module/Dtos/SetStatoRegistrazione.ts"],"names":[],"mappings":";;;;;;;;;;;;AAAA,6CAA8C;AAC9C,yDAAyC;AACzC,qDAAqD;AACrD,6DAA0D;AAE1D,MAAa,wBAAwB;CAiBpC;AAjBD,4DAiBC;AATC;IAPC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,mCAAmC;QAChD,OAAO,EAAE,GAAG;KACb,CAAC;IACD,IAAA,wBAAI,EAAC,GAAG,EAAE,CAAC,MAAM,CAAC;IAClB,IAAA,uBAAK,EAAC,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;IAC7D,IAAA,qBAAG,EAAC,CAAC,EAAE,EAAE,OAAO,EAAE,gDAAgD,EAAE,CAAC;;8DACjD;AAQrB;IANC,IAAA,qBAAW,EAAC;QACX,WAAW,EAAE,8BAA8B;QAC3C,IAAI,EAAE,uCAAkB;QACxB,OAAO,EAAE,uCAAkB,CAAC,MAAM;KACnC,CAAC;IACD,IAAA,wBAAM,EAAC,uCAAkB,EAAE,EAAE,OAAO,EAAE,yCAAyC,EAAE,CAAC;;oEAC5C","sourcesContent":["import { ApiProperty } from '@nestjs/swagger';\r\nimport { Type } from 'class-transformer';\r\nimport { IsEnum, IsInt, Min } from 'class-validator';\r\nimport { StatoRegistrazione } from './StatoRegistrazione';\r\n\r\nexport class SetStatoRegistrazioneDto {\r\n @ApiProperty({\r\n description: \"Codice identificativo dell'utente\",\r\n example: 123,\r\n })\r\n @Type(() => Number)\r\n @IsInt({ message: 'Il codice utente deve essere un intero.' })\r\n @Min(1, { message: 'Il codice utente deve essere maggiore di zero.' })\r\n codiceUtente: number;\r\n\r\n @ApiProperty({\r\n description: 'Nuovo stato di registrazione',\r\n enum: StatoRegistrazione,\r\n example: StatoRegistrazione.DELETE,\r\n })\r\n @IsEnum(StatoRegistrazione, { message: 'Lo stato di registrazione non e valido.' })\r\n statoRegistrazione: StatoRegistrazione;\r\n}\r\n"]}
|
|
@@ -1 +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"]}
|
|
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 {\r\n NULL = 0,\r\n INSERT = 5,\r\n INVIO = 10,\r\n CONF = 20,\r\n DELETE = 50,\r\n BLOCC = 99,\r\n}\r\n\r\nexport const StatoRegistrazioneValues = [0, 5, 10, 20, 50, 99] as const;\r\n"]}
|
|
@@ -1 +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}"]}
|
|
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 {\r\n NESSUNA = 0,\r\n LETTURA = 10,\r\n SCRITTURA = 20,\r\n SPECIAL = 30\r\n}"]}
|
|
@@ -1 +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"]}
|
|
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';\r\nimport { Type } from 'class-transformer';\r\nimport { IsIn, IsInt, IsNotEmpty, IsOptional, IsString, MaxLength, ValidateNested } from 'class-validator';\r\nimport { BaseResponse } from './BaseResponse';\r\n\r\nexport class TipoFiltro {\r\n @ApiProperty({\r\n description: 'Identificativo del tipo di filtro',\r\n example: 1,\r\n type: Number,\r\n })\r\n @IsInt()\r\n @IsNotEmpty()\r\n tipFil: number;\r\n\r\n @ApiProperty({\r\n description: 'Descrizione del filtro',\r\n example: 'Filtro standard',\r\n maxLength: 20,\r\n required: false,\r\n })\r\n @IsString()\r\n @MaxLength(20)\r\n @IsOptional()\r\n desFil?: string;\r\n\r\n @ApiProperty({\r\n description: 'Campo associato al filtro',\r\n example: 'campoValore',\r\n maxLength: 20,\r\n required: false,\r\n })\r\n @IsString()\r\n @MaxLength(20)\r\n @IsOptional()\r\n fldFil?: string;\r\n\r\n @ApiProperty({\r\n description: 'Filtro abilitato',\r\n example: 1,\r\n enum: [0, 1],\r\n required: false,\r\n default: 1,\r\n })\r\n @IsIn([0,1])\r\n @IsOptional()\r\n flgEnabled?: 0 | 1 = 1;\r\n}\r\n\r\nexport class GetFiltriResponse extends BaseResponse {\r\n @ApiProperty({ type: TipoFiltro, isArray: true })\r\n @ValidateNested({ each: true })\r\n @Type(() => TipoFiltro)\r\n Result : TipoFiltro[]\r\n}\r\n\r\nexport class GetFiltriRequest {\r\n @ApiPropertyOptional({\r\n description: 'Mostra solo abilitati',\r\n enum: [0,1]\r\n })\r\n @IsOptional()\r\n @IsIn([0,1])\r\n @Type(() => Number)\r\n flgEnabled?: 0 | 1\r\n}\r\n\r\n\r\n"]}
|
|
@@ -1 +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"]}
|
|
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\";\r\n\r\nexport class TokenResult {\r\n @ApiProperty({\r\n description: \"Tempo di scadenza del token in secondi\",\r\n example: \"3600\"\r\n })\r\n expiresIn: string;\r\n\r\n @ApiProperty({\r\n description: \"Valore del token JWT o Basic\",\r\n example: \"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9...\"\r\n })\r\n value: string;\r\n\r\n @ApiProperty({\r\n description: \"Tipo di token di autenticazione\",\r\n enum: [\"Bearer\", \"Basic\"],\r\n example: \"Bearer\"\r\n })\r\n type: \"Bearer\" | \"Basic\";\r\n}\r\n"]}
|
|
@@ -1 +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"]}
|
|
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';\r\nimport { IsBoolean } from 'class-validator';\r\n\r\nexport class UpdateEnabledStatusRequest {\r\n @ApiProperty({\r\n description: 'Nuovo stato di abilitazione',\r\n example: true,\r\n type: Boolean,\r\n })\r\n @IsBoolean({ message: 'Il valore di enabled deve essere booleano.' })\r\n enabled: boolean;\r\n}\r\n"]}
|