emilsoftware-utilities 1.4.0-dev.17 → 1.4.0-dev.19
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/Dtos/FiltriUtente.d.ts +2 -1
- package/dist/accessi-module/Dtos/FiltriUtente.js +5 -1
- package/dist/accessi-module/Dtos/RegisterRequest.d.ts +1 -0
- package/dist/accessi-module/Dtos/RegisterRequest.js +7 -0
- package/dist/accessi-module/Dtos/UserDto.d.ts +1 -0
- package/dist/accessi-module/Dtos/UserDto.js +79 -28
- package/dist/accessi-module/Services/UserService/UserService.js +8 -4
- package/dist/emilsoftware-utilities-1.4.0-dev.19.tgz +0 -0
- package/package.json +1 -1
- package/dist/emilsoftware-utilities-1.4.0-dev.17.tgz +0 -0
|
@@ -83,5 +83,9 @@ __decorate([
|
|
|
83
83
|
}),
|
|
84
84
|
(0, class_validator_1.IsString)(),
|
|
85
85
|
(0, class_validator_1.IsOptional)(),
|
|
86
|
-
__metadata("design:type",
|
|
86
|
+
__metadata("design:type", Number)
|
|
87
87
|
], FiltriUtente.prototype, "tipoFiltro", void 0);
|
|
88
|
+
__decorate([
|
|
89
|
+
(0, swagger_1.ApiPropertyOptional)({ description: "idx della postazione nella tabella ANTENNE_POS di PROLAV", example: "12" }),
|
|
90
|
+
__metadata("design:type", Number)
|
|
91
|
+
], FiltriUtente.prototype, "idxPostazione", void 0);
|
|
@@ -150,3 +150,10 @@ __decorate([
|
|
|
150
150
|
}),
|
|
151
151
|
__metadata("design:type", String)
|
|
152
152
|
], RegisterRequest.prototype, "htmlMail", void 0);
|
|
153
|
+
__decorate([
|
|
154
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
155
|
+
description: 'idx della postazione nella tabella ANTENNE_POS di PROLAV',
|
|
156
|
+
example: '12',
|
|
157
|
+
}),
|
|
158
|
+
__metadata("design:type", Number)
|
|
159
|
+
], RegisterRequest.prototype, "idxPostazione", void 0);
|
|
@@ -18,11 +18,11 @@ class UserDto {
|
|
|
18
18
|
}
|
|
19
19
|
exports.UserDto = UserDto;
|
|
20
20
|
__decorate([
|
|
21
|
-
(0, swagger_1.ApiProperty)({ description: "Codice identificativo univoco dell'utente.", example:
|
|
21
|
+
(0, swagger_1.ApiProperty)({ description: "Codice identificativo univoco dell'utente.", example: 'USR123' }),
|
|
22
22
|
__metadata("design:type", Number)
|
|
23
23
|
], UserDto.prototype, "codiceUtente", void 0);
|
|
24
24
|
__decorate([
|
|
25
|
-
(0, swagger_1.ApiProperty)({ description: "Email dell'utente.", example:
|
|
25
|
+
(0, swagger_1.ApiProperty)({ description: "Email dell'utente.", example: 'mario.rossi@dev.it' }),
|
|
26
26
|
__metadata("design:type", String)
|
|
27
27
|
], UserDto.prototype, "email", void 0);
|
|
28
28
|
__decorate([
|
|
@@ -30,106 +30,157 @@ __decorate([
|
|
|
30
30
|
__metadata("design:type", Boolean)
|
|
31
31
|
], UserDto.prototype, "flagGdpr", void 0);
|
|
32
32
|
__decorate([
|
|
33
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
33
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
34
|
+
description: 'Data di accettazione del GDPR.',
|
|
35
|
+
format: 'date-time',
|
|
36
|
+
example: '2024-03-18T12:34:56Z',
|
|
37
|
+
}),
|
|
34
38
|
__metadata("design:type", String)
|
|
35
39
|
], UserDto.prototype, "dataGdpr", void 0);
|
|
36
40
|
__decorate([
|
|
37
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
41
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
42
|
+
description: "Data di inserimento dell'utente nel sistema.",
|
|
43
|
+
format: 'date-time',
|
|
44
|
+
example: '2023-01-01T08:30:00Z',
|
|
45
|
+
}),
|
|
38
46
|
__metadata("design:type", String)
|
|
39
47
|
], UserDto.prototype, "dataInserimento", void 0);
|
|
40
48
|
__decorate([
|
|
41
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
49
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
50
|
+
description: 'Data scadenza password.',
|
|
51
|
+
format: 'date-time',
|
|
52
|
+
example: '2025-06-01',
|
|
53
|
+
}),
|
|
42
54
|
__metadata("design:type", String)
|
|
43
55
|
], UserDto.prototype, "dataScadenzaPassword", void 0);
|
|
44
56
|
__decorate([
|
|
45
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
57
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
58
|
+
description: "Ultima data di accesso dell'utente.",
|
|
59
|
+
format: 'date-time',
|
|
60
|
+
example: '2024-03-15T14:45:00Z',
|
|
61
|
+
}),
|
|
46
62
|
__metadata("design:type", String)
|
|
47
63
|
], UserDto.prototype, "dataLastLogin", void 0);
|
|
48
64
|
__decorate([
|
|
49
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
65
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
66
|
+
description: "Stato della registrazione dell'utente.",
|
|
67
|
+
enum: StatoRegistrazione_1.StatoRegistrazione,
|
|
68
|
+
example: StatoRegistrazione_1.StatoRegistrazione.CONF,
|
|
69
|
+
}),
|
|
50
70
|
__metadata("design:type", Number)
|
|
51
71
|
], UserDto.prototype, "statoRegistrazione", void 0);
|
|
52
72
|
__decorate([
|
|
53
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
73
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
74
|
+
description: "Chiave di registrazione dell'utente.",
|
|
75
|
+
example: 'abc123xyz',
|
|
76
|
+
}),
|
|
54
77
|
__metadata("design:type", String)
|
|
55
78
|
], UserDto.prototype, "keyRegistrazione", void 0);
|
|
56
79
|
__decorate([
|
|
57
|
-
(0, swagger_1.ApiPropertyOptional)({ description: "Cognome dell'utente.", example:
|
|
80
|
+
(0, swagger_1.ApiPropertyOptional)({ description: "Cognome dell'utente.", example: 'Rossi' }),
|
|
58
81
|
__metadata("design:type", String)
|
|
59
82
|
], UserDto.prototype, "cognome", void 0);
|
|
60
83
|
__decorate([
|
|
61
|
-
(0, swagger_1.ApiPropertyOptional)({ description: "Nome dell'utente.", example:
|
|
84
|
+
(0, swagger_1.ApiPropertyOptional)({ description: "Nome dell'utente.", example: 'Mario' }),
|
|
62
85
|
__metadata("design:type", String)
|
|
63
86
|
], UserDto.prototype, "nome", void 0);
|
|
64
87
|
__decorate([
|
|
65
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
88
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
89
|
+
description: 'Avatar (URL o base64).',
|
|
90
|
+
example: 'https://example.com/avatar.jpg',
|
|
91
|
+
nullable: true,
|
|
92
|
+
}),
|
|
66
93
|
__metadata("design:type", String)
|
|
67
94
|
], UserDto.prototype, "avatar", void 0);
|
|
68
95
|
__decorate([
|
|
69
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
96
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
97
|
+
description: "Flag che indica se l'autenticazione a due fattori è attivata.",
|
|
98
|
+
example: true,
|
|
99
|
+
}),
|
|
70
100
|
__metadata("design:type", Boolean)
|
|
71
101
|
], UserDto.prototype, "flagDueFattori", void 0);
|
|
72
102
|
__decorate([
|
|
73
|
-
(0, swagger_1.ApiPropertyOptional)({ description:
|
|
103
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Codice lingua preferito.', example: 'it' }),
|
|
74
104
|
__metadata("design:type", String)
|
|
75
105
|
], UserDto.prototype, "codiceLingua", void 0);
|
|
76
106
|
__decorate([
|
|
77
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
107
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
108
|
+
description: 'Numero di cellulare.',
|
|
109
|
+
example: '+393401234567',
|
|
110
|
+
nullable: true,
|
|
111
|
+
}),
|
|
78
112
|
__metadata("design:type", String)
|
|
79
113
|
], UserDto.prototype, "cellulare", void 0);
|
|
80
114
|
__decorate([
|
|
81
|
-
(0, swagger_1.ApiPropertyOptional)({ description:
|
|
115
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Flag superutente.', example: false }),
|
|
82
116
|
__metadata("design:type", Boolean)
|
|
83
117
|
], UserDto.prototype, "flagSuper", void 0);
|
|
84
118
|
__decorate([
|
|
85
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
119
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
120
|
+
description: "Pagina di default dell'utente all'accesso.",
|
|
121
|
+
example: '/dashboard',
|
|
122
|
+
}),
|
|
86
123
|
__metadata("design:type", String)
|
|
87
124
|
], UserDto.prototype, "paginaDefault", void 0);
|
|
88
125
|
__decorate([
|
|
89
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
126
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
127
|
+
description: 'Metadata JSON personalizzato.',
|
|
128
|
+
example: '{"theme": "dark"}',
|
|
129
|
+
}),
|
|
90
130
|
__metadata("design:type", String)
|
|
91
131
|
], UserDto.prototype, "jsonMetadata", void 0);
|
|
92
132
|
__decorate([
|
|
93
|
-
(0, swagger_1.ApiPropertyOptional)({ description:
|
|
133
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Ragione sociale cliente.', example: 'ACME Corp SpA' }),
|
|
94
134
|
__metadata("design:type", String)
|
|
95
135
|
], UserDto.prototype, "ragSocCli", void 0);
|
|
96
136
|
__decorate([
|
|
97
|
-
(0, swagger_1.ApiPropertyOptional)({ description: "Ruoli assegnati all'utente.", example: [
|
|
137
|
+
(0, swagger_1.ApiPropertyOptional)({ description: "Ruoli assegnati all'utente.", example: ['admin', 'editor'] }),
|
|
98
138
|
__metadata("design:type", Array)
|
|
99
139
|
], UserDto.prototype, "roles", void 0);
|
|
100
140
|
__decorate([
|
|
101
|
-
(0, swagger_1.ApiPropertyOptional)({
|
|
141
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
142
|
+
description: "Permessi assegnati all'utente.",
|
|
143
|
+
type: [Permission_1.Permission],
|
|
144
|
+
example: [{ codiceMenu: 'MNUOFFICINA', tipoAbilitazione: TipoAbilitazione_1.TipoAbilitazione.SCRITTURA }],
|
|
145
|
+
}),
|
|
102
146
|
__metadata("design:type", Array)
|
|
103
147
|
], UserDto.prototype, "permissions", void 0);
|
|
104
148
|
__decorate([
|
|
105
|
-
(0, swagger_1.ApiPropertyOptional)({ description:
|
|
149
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Progressivo interno.', example: 1001 }),
|
|
106
150
|
__metadata("design:type", Number)
|
|
107
151
|
], UserDto.prototype, "prog", void 0);
|
|
108
152
|
__decorate([
|
|
109
|
-
(0, swagger_1.ApiPropertyOptional)({ description:
|
|
153
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Numero di report.', example: 5 }),
|
|
110
154
|
__metadata("design:type", Number)
|
|
111
155
|
], UserDto.prototype, "numRep", void 0);
|
|
112
156
|
__decorate([
|
|
113
|
-
(0, swagger_1.ApiPropertyOptional)({ description:
|
|
157
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Indice personalizzato.', example: 200 }),
|
|
114
158
|
__metadata("design:type", Number)
|
|
115
159
|
], UserDto.prototype, "idxPers", void 0);
|
|
116
160
|
__decorate([
|
|
117
|
-
(0, swagger_1.ApiPropertyOptional)({ description:
|
|
161
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Codice cliente super.', example: 123 }),
|
|
118
162
|
__metadata("design:type", Number)
|
|
119
163
|
], UserDto.prototype, "codiceClienteSuper", void 0);
|
|
120
164
|
__decorate([
|
|
121
|
-
(0, swagger_1.ApiPropertyOptional)({ description:
|
|
165
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Codice agente.', example: 123 }),
|
|
122
166
|
__metadata("design:type", Number)
|
|
123
167
|
], UserDto.prototype, "codiceAge", void 0);
|
|
124
168
|
__decorate([
|
|
125
|
-
(0, swagger_1.ApiPropertyOptional)({ description:
|
|
169
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Codice cliente collettivo.', example: 123 }),
|
|
126
170
|
__metadata("design:type", Number)
|
|
127
171
|
], UserDto.prototype, "codiceClienteCol", void 0);
|
|
128
172
|
__decorate([
|
|
129
|
-
(0, swagger_1.ApiPropertyOptional)({ description:
|
|
173
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Codici multipli clienti.', example: 'CLI001, CLI002' }),
|
|
130
174
|
__metadata("design:type", String)
|
|
131
175
|
], UserDto.prototype, "codiceClienti", void 0);
|
|
132
176
|
__decorate([
|
|
133
|
-
(0, swagger_1.ApiPropertyOptional)({ description:
|
|
177
|
+
(0, swagger_1.ApiPropertyOptional)({ description: 'Tipo di filiale.', example: 'HQ' }),
|
|
134
178
|
__metadata("design:type", Number)
|
|
135
179
|
], UserDto.prototype, "tipoFil", void 0);
|
|
180
|
+
__decorate([
|
|
181
|
+
(0, swagger_1.ApiPropertyOptional)({
|
|
182
|
+
description: 'idx della postazione nella tabella ANTENNE_POS di PROLAV',
|
|
183
|
+
example: '12',
|
|
184
|
+
}),
|
|
185
|
+
__metadata("design:type", Number)
|
|
186
|
+
], UserDto.prototype, "idxPostazione", void 0);
|
|
@@ -64,7 +64,8 @@ let UserService = class UserService {
|
|
|
64
64
|
F.CODAGE AS cod_age,
|
|
65
65
|
F.CODCLICOL AS cod_cli_col,
|
|
66
66
|
F.CODCLIENTI AS codice_clienti,
|
|
67
|
-
F.TIPFIL AS
|
|
67
|
+
F.TIPFIL AS tipo_filtro,
|
|
68
|
+
F.IDXPOS AS idx_postazione
|
|
68
69
|
FROM UTENTI U
|
|
69
70
|
INNER JOIN UTENTI_CONFIG G ON U.CODUTE = G.CODUTE
|
|
70
71
|
LEFT JOIN FILTRI F ON F.CODUTE = U.CODUTE
|
|
@@ -162,7 +163,8 @@ let UserService = class UserService {
|
|
|
162
163
|
F.CODAGE AS codice_agenzia,
|
|
163
164
|
F.CODCLICOL AS codice_cliente_collegato,
|
|
164
165
|
F.CODCLIENTI AS codice_clienti,
|
|
165
|
-
F.TIPFIL AS tipo_filtro
|
|
166
|
+
F.TIPFIL AS tipo_filtro,
|
|
167
|
+
F.IDXPOS AS idx_postazione
|
|
166
168
|
FROM FILTRI F
|
|
167
169
|
WHERE F.CODUTE = ?
|
|
168
170
|
`;
|
|
@@ -182,7 +184,8 @@ let UserService = class UserService {
|
|
|
182
184
|
codiceAgenzia: { dbField: 'CODAGE', type: 'number' },
|
|
183
185
|
codiceClienteCollegato: { dbField: 'CODCLICOL', type: 'number' },
|
|
184
186
|
codiceClienti: { dbField: 'CODCLIENTI', type: 'string' },
|
|
185
|
-
tipoFiltro: { dbField: 'TIPFIL', type: '
|
|
187
|
+
tipoFiltro: { dbField: 'TIPFIL', type: 'number' },
|
|
188
|
+
idxPostazione: { dbField: 'IDXPOS', type: 'number' },
|
|
186
189
|
};
|
|
187
190
|
const fieldsToInsert = Object.entries(fieldMapping)
|
|
188
191
|
.filter(([tsField]) => {
|
|
@@ -366,7 +369,8 @@ let UserService = class UserService {
|
|
|
366
369
|
codAge: { dbField: 'CODAGE', type: 'number' },
|
|
367
370
|
codCliCol: { dbField: 'CODCLICOL', type: 'number' },
|
|
368
371
|
codiceClienti: { dbField: 'CODCLIENTI', type: 'string' },
|
|
369
|
-
|
|
372
|
+
tipoFiltro: { dbField: 'TIPFIL', type: 'number' },
|
|
373
|
+
idxPostazione: { dbField: 'IDXPOS', type: 'number' },
|
|
370
374
|
};
|
|
371
375
|
const fieldsToUpdate = Object.entries(fieldMapping)
|
|
372
376
|
.filter(([tsField]) => {
|
|
Binary file
|
package/package.json
CHANGED
|
Binary file
|