emilsoftware-utilities 1.3.115 → 1.3.117

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.
@@ -9,6 +9,7 @@ export declare class MenuEntity {
9
9
  pagina?: string;
10
10
  ordineMenu: number;
11
11
  ordineGruppo: number;
12
+ tipoAbilitazione?: number;
12
13
  }
13
14
  export declare class GetMenusResponse extends BaseResponse {
14
15
  Result: MenuEntity[];
@@ -94,6 +94,14 @@ __decorate([
94
94
  }),
95
95
  __metadata("design:type", Number)
96
96
  ], MenuEntity.prototype, "ordineGruppo", void 0);
97
+ __decorate([
98
+ (0, swagger_1.ApiPropertyOptional)({
99
+ description: "Tipo abilitazione opzionale",
100
+ type: Number,
101
+ example: 1
102
+ }),
103
+ __metadata("design:type", Number)
104
+ ], MenuEntity.prototype, "tipoAbilitazione", void 0);
97
105
  class GetMenusResponse extends BaseResponse_1.BaseResponse {
98
106
  }
99
107
  exports.GetMenusResponse = GetMenusResponse;
@@ -12,6 +12,8 @@ Object.defineProperty(exports, "__esModule", { value: true });
12
12
  exports.UserDto = void 0;
13
13
  const swagger_1 = require("@nestjs/swagger");
14
14
  const StatoRegistrazione_1 = require("./StatoRegistrazione");
15
+ const Permission_1 = require("./Permission");
16
+ const TipoAbilitazione_1 = require("./TipoAbilitazione");
15
17
  class UserDto {
16
18
  }
17
19
  exports.UserDto = UserDto;
@@ -92,7 +94,7 @@ __decorate([
92
94
  __metadata("design:type", Array)
93
95
  ], UserDto.prototype, "roles", void 0);
94
96
  __decorate([
95
- (0, swagger_1.ApiPropertyOptional)({ description: "Permessi assegnati all'utente.", example: [{ action: "read", resource: "posts" }] }),
97
+ (0, swagger_1.ApiPropertyOptional)({ description: "Permessi assegnati all'utente.", type: [Permission_1.Permission], example: [{ codiceMenu: "MNUOFFICINA", tipoAbilitazione: TipoAbilitazione_1.TipoAbilitazione.SCRITTURA }] }),
96
98
  __metadata("design:type", Array)
97
99
  ], UserDto.prototype, "permissions", void 0);
98
100
  __decorate([
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "emilsoftware-utilities",
3
- "version": "1.3.115",
3
+ "version": "1.3.117",
4
4
  "description": "Utilities for EmilSoftware",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.js",