@arsedizioni/ars-utils 18.2.495 → 18.2.500
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/clipper.ui/ui/document-menu/document-menu.component.d.ts +1 -1
- package/esm2022/clipper.ui/ui/document-menu/document-menu.component.mjs +2 -2
- package/esm2022/evolution.common/common/definitions.mjs +12 -1
- package/esm2022/evolution.common/common/services/evolution.service.mjs +2 -2
- package/evolution.common/common/definitions.d.ts +70 -2
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +13 -2
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5,6 +5,16 @@ export declare enum EvolutionServiceFlags {
|
|
|
5
5
|
NotifySystemErrors = 1,
|
|
6
6
|
DisplayConnectionStateMessages = 2
|
|
7
7
|
}
|
|
8
|
+
export declare enum ERPModule {
|
|
9
|
+
Formazione = 1,
|
|
10
|
+
DPI = 2,
|
|
11
|
+
SorveglianzaSanitaria = 4,
|
|
12
|
+
RegistroEScadenzario = 8,
|
|
13
|
+
AttrezzatureEImpianti = 16,
|
|
14
|
+
Monitoraggio = 32,
|
|
15
|
+
Bollettino = 64,
|
|
16
|
+
Documenti = 128
|
|
17
|
+
}
|
|
8
18
|
export declare enum ERPComplianceLawsSelectionType {
|
|
9
19
|
Analysis = 1,
|
|
10
20
|
Activity = 2
|
|
@@ -163,8 +173,8 @@ export declare const RecurrenceFrequencyTypes: {
|
|
|
163
173
|
export interface EvolutionLoginResult extends LoginResult<EvolutionLoginInfo> {
|
|
164
174
|
}
|
|
165
175
|
export interface EvolutionLoginInfo {
|
|
166
|
-
context:
|
|
167
|
-
complianceContext?:
|
|
176
|
+
context: EvolutionUserInfo;
|
|
177
|
+
complianceContext?: null;
|
|
168
178
|
userCredentials?: string | null;
|
|
169
179
|
userId?: number | null;
|
|
170
180
|
OAUTH?: LoginOAuthType | null;
|
|
@@ -175,3 +185,61 @@ export interface EvolutionUserLink {
|
|
|
175
185
|
userName?: string | null;
|
|
176
186
|
key: string;
|
|
177
187
|
}
|
|
188
|
+
export interface EvolutionUserModuleInfo {
|
|
189
|
+
name: string;
|
|
190
|
+
module: number;
|
|
191
|
+
level: number;
|
|
192
|
+
hidden: boolean;
|
|
193
|
+
}
|
|
194
|
+
export interface EvolutionLicenceModuleInfo {
|
|
195
|
+
module: ERPModule;
|
|
196
|
+
name: string;
|
|
197
|
+
availableUsers: number;
|
|
198
|
+
usedUsers: number;
|
|
199
|
+
availableOption1?: number | null;
|
|
200
|
+
usedOption1?: number | null;
|
|
201
|
+
availableOption2?: number | null;
|
|
202
|
+
usedOption2?: number | null;
|
|
203
|
+
availableOption3?: number | null;
|
|
204
|
+
usedOption3?: number | null;
|
|
205
|
+
}
|
|
206
|
+
export interface EvolutionUserInfo {
|
|
207
|
+
licenceId: number;
|
|
208
|
+
userId: number;
|
|
209
|
+
companyName: string;
|
|
210
|
+
firstName: string;
|
|
211
|
+
fullName: string;
|
|
212
|
+
flags?: number | null;
|
|
213
|
+
email: string;
|
|
214
|
+
sessionId?: string | null;
|
|
215
|
+
isTemporary?: boolean | null;
|
|
216
|
+
role: number;
|
|
217
|
+
scope: number;
|
|
218
|
+
roleName: string;
|
|
219
|
+
roleLevel: number;
|
|
220
|
+
allowedModules: EvolutionUserModuleInfo[];
|
|
221
|
+
dashboard?: number | null;
|
|
222
|
+
dashboard2?: string | null;
|
|
223
|
+
code?: string | null;
|
|
224
|
+
subjectId?: number | null;
|
|
225
|
+
subjectName?: string | null;
|
|
226
|
+
siteId?: number | null;
|
|
227
|
+
siteName?: string | null;
|
|
228
|
+
siteCostCenter?: string | null;
|
|
229
|
+
departmentId?: number | null;
|
|
230
|
+
departmentName?: string | null;
|
|
231
|
+
expiryDate?: string | null;
|
|
232
|
+
isExpired?: boolean | null;
|
|
233
|
+
isAdministrator?: boolean | null;
|
|
234
|
+
isPowerUser?: boolean | null;
|
|
235
|
+
isObserver?: boolean | null;
|
|
236
|
+
isUser?: boolean | null;
|
|
237
|
+
isSupportUser?: boolean | null;
|
|
238
|
+
isGod?: boolean | null;
|
|
239
|
+
administrators: string;
|
|
240
|
+
availableModules: EvolutionLicenceModuleInfo[];
|
|
241
|
+
availableEmployees: number;
|
|
242
|
+
usedEmployees: number;
|
|
243
|
+
availableStorage: number;
|
|
244
|
+
usedStorage: number;
|
|
245
|
+
}
|
|
@@ -101,7 +101,7 @@ class ClipperDocumentMenuComponent {
|
|
|
101
101
|
this.canAddToCalendar = () => {
|
|
102
102
|
let canAdd = true;
|
|
103
103
|
this.getMultipleSelection()?.forEach(n => {
|
|
104
|
-
if (n.model !== 9 && n.model !== 2) {
|
|
104
|
+
if (n.model !== 9 && n.model !== 2 && n.model !== 10 && n.model !== 20) {
|
|
105
105
|
canAdd = false;
|
|
106
106
|
return;
|
|
107
107
|
}
|