emilsoftware-utilities 1.3.135 → 1.3.136
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.
|
@@ -89,6 +89,10 @@ __decorate([
|
|
|
89
89
|
(0, swagger_1.ApiPropertyOptional)({ description: "Metadata JSON personalizzato.", example: "{\"theme\": \"dark\"}" }),
|
|
90
90
|
__metadata("design:type", String)
|
|
91
91
|
], UserDto.prototype, "jsonMetadata", void 0);
|
|
92
|
+
__decorate([
|
|
93
|
+
(0, swagger_1.ApiPropertyOptional)({ description: "Ragione sociale cliente.", example: "ACME Corp SpA" }),
|
|
94
|
+
__metadata("design:type", String)
|
|
95
|
+
], UserDto.prototype, "ragSocCli", void 0);
|
|
92
96
|
__decorate([
|
|
93
97
|
(0, swagger_1.ApiPropertyOptional)({ description: "Ruoli assegnati all'utente.", example: ["admin", "editor"] }),
|
|
94
98
|
__metadata("design:type", Array)
|
|
@@ -56,7 +56,8 @@ let UserService = class UserService {
|
|
|
56
56
|
G.CELLULARE as cellulare,
|
|
57
57
|
G.FLGSUPER as flag_super,
|
|
58
58
|
G.PAGDEF as pagina_default,
|
|
59
|
-
G.JSON_METADATA as json_metadata
|
|
59
|
+
G.JSON_METADATA as json_metadata,
|
|
60
|
+
G.RAGSOCCLI as rag_soc_cli
|
|
60
61
|
FROM UTENTI U INNER JOIN UTENTI_CONFIG G ON U.CODUTE = G.CODUTE
|
|
61
62
|
WHERE STAREG <> ?
|
|
62
63
|
ORDER BY U.CODUTE`;
|
|
@@ -112,7 +113,8 @@ let UserService = class UserService {
|
|
|
112
113
|
C.CODLINGUA AS codice_lingua,
|
|
113
114
|
C.CELLULARE AS cellulare,
|
|
114
115
|
C.FLGSUPER AS flag_super,
|
|
115
|
-
C.PAGDEF AS pagina_default
|
|
116
|
+
C.PAGDEF AS pagina_default,
|
|
117
|
+
C.RAGSOCCLI AS rag_soc_cli
|
|
116
118
|
FROM UTENTI U
|
|
117
119
|
INNER JOIN UTENTI_CONFIG C ON C.CODUTE = U.CODUTE
|
|
118
120
|
WHERE LOWER(U.USRNAME) = ?
|
|
@@ -303,6 +305,10 @@ let UserService = class UserService {
|
|
|
303
305
|
utentiConfigUpdates.push("json_metadata = ?");
|
|
304
306
|
utentiConfigParams.push(user.jsonMetadata);
|
|
305
307
|
}
|
|
308
|
+
if (user.ragSocCli !== undefined) {
|
|
309
|
+
utentiConfigUpdates.push("ragsoccli = ?");
|
|
310
|
+
utentiConfigParams.push(user.ragSocCli);
|
|
311
|
+
}
|
|
306
312
|
if (utentiConfigUpdates.length > 0) {
|
|
307
313
|
const queryUtentiConfig = `UPDATE UTENTI_CONFIG SET ${utentiConfigUpdates.join(", ")} WHERE CODUTE = ?`;
|
|
308
314
|
utentiConfigParams.push(codiceUtente);
|