@arsedizioni/ars-utils 22.6.85 → 22.6.88
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/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +3158 -3344
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +7616 -4772
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.date.mjs +321 -702
- package/fesm2022/arsedizioni-ars-utils-core.date.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs +445 -590
- package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +1735 -2370
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.validators.mjs +1280 -1470
- package/fesm2022/arsedizioni-ars-utils-core.validators.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +1097 -1528
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +198 -294
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs +115 -117
- package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs +1607 -613
- package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs +840 -367
- package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs +1634 -651
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs +1255 -792
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs +1410 -357
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs +2401 -944
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.files.mjs +1553 -741
- package/fesm2022/arsedizioni-ars-utils-ui.files.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs +901 -430
- package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.help.mjs +737 -530
- package/fesm2022/arsedizioni-ars-utils-ui.help.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +6638 -1755
- package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs +1479 -1207
- package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs +1003 -270
- package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +497 -278
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs +48 -52
- package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs +464 -704
- package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs +724 -657
- package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils.mjs +3 -19
- package/fesm2022/arsedizioni-ars-utils.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +1151 -1163
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1588 -1426
- package/types/arsedizioni-ars-utils-core.d.ts +1169 -1172
- package/types/arsedizioni-ars-utils-core.date.d.ts +204 -208
- package/types/arsedizioni-ars-utils-core.markdown.d.ts +128 -126
- package/types/arsedizioni-ars-utils-core.validators.d.ts +270 -236
- package/types/arsedizioni-ars-utils-evolution.common.d.ts +1054 -1067
- package/types/arsedizioni-ars-utils-support.common.d.ts +225 -234
- package/types/arsedizioni-ars-utils-ui.controls.d.ts +440 -278
- package/types/arsedizioni-ars-utils-ui.controls.date.d.ts +24 -28
- package/types/arsedizioni-ars-utils-ui.controls.tree.d.ts +172 -136
- package/types/arsedizioni-ars-utils-ui.d.ts +2035 -821
- package/types/arsedizioni-ars-utils-ui.dialogs.auth.d.ts +327 -322
- package/types/arsedizioni-ars-utils-ui.dialogs.d.ts +343 -347
- package/types/arsedizioni-ars-utils-ui.dialogs.prompt.d.ts +167 -167
- package/types/arsedizioni-ars-utils-ui.dialogs.select.d.ts +373 -367
- package/types/arsedizioni-ars-utils-ui.files.d.ts +335 -283
- package/types/arsedizioni-ars-utils-ui.filters.d.ts +232 -160
- package/types/arsedizioni-ars-utils-ui.help.d.ts +204 -211
- package/types/arsedizioni-ars-utils-ui.navigation.d.ts +811 -646
- package/types/arsedizioni-ars-utils-ui.notifications.d.ts +74 -78
- package/types/arsedizioni-ars-utils-ui.oauth.d.ts +102 -62
- package/types/arsedizioni-ars-utils-ui.paginator.d.ts +19 -22
- package/types/arsedizioni-ars-utils-ui.shell.d.ts +376 -382
- package/types/arsedizioni-ars-utils-ui.tinymce.d.ts +244 -231
- package/types/arsedizioni-ars-utils.d.ts +1 -3
|
@@ -1,38 +1,35 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { HttpInterceptorFn } from
|
|
3
|
-
import * as i0 from
|
|
4
|
-
import { Signal, WritableSignal } from
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
LOGIN_FAILED: string;
|
|
33
|
-
LOGOUT: string;
|
|
1
|
+
import { ApiResult, FolderTree, QueryModel, SendToModel } from "@arsedizioni/ars-utils/core";
|
|
2
|
+
import { HttpInterceptorFn } from "@angular/common/http";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import { Signal, WritableSignal } from "@angular/core";
|
|
5
|
+
import { Observable } from "rxjs";
|
|
6
|
+
export declare const EvolutionMessages: {
|
|
7
|
+
ERROR: string;
|
|
8
|
+
/**
|
|
9
|
+
* The session is gone: a 401 on a request that was not a sign-in attempt.
|
|
10
|
+
* Emitted once per dead session by `evolutionAuthInterceptor`, which re-arms on the first
|
|
11
|
+
* good response. The twin of `ClipperMessages.ERROR_401`.
|
|
12
|
+
*/
|
|
13
|
+
ERROR_401: string;
|
|
14
|
+
/**
|
|
15
|
+
* The API is not answering: the interceptor has already sent the request three times over ten
|
|
16
|
+
* seconds and none of them got an answer carrying an `ApiResult` envelope. Emitted once per
|
|
17
|
+
* outage, however many requests were in flight, and re-armed on the first good response.
|
|
18
|
+
*
|
|
19
|
+
* Deliberately not an `ERROR`: a server being replaced is neither a failed operation to report
|
|
20
|
+
* in a dialog nor an expired session to sign out of, and the host application usually answers it
|
|
21
|
+
* with a banner that clears itself.
|
|
22
|
+
*/
|
|
23
|
+
ERROR_UNAVAILABLE: string;
|
|
24
|
+
SUCCESS: string;
|
|
25
|
+
SUCCESS_TOAST: string;
|
|
26
|
+
LOGIN_CHANGED: string;
|
|
27
|
+
LOGIN_COMPLETED: string;
|
|
28
|
+
LOGOUT_COMPLETED: string;
|
|
29
|
+
LOGIN_PENDING: string;
|
|
30
|
+
LOGIN_FAILED: string;
|
|
31
|
+
LOGOUT: string;
|
|
34
32
|
};
|
|
35
|
-
|
|
36
33
|
/**
|
|
37
34
|
* Outcome of a login, an MFA confirmation, an account switch or a session restore.
|
|
38
35
|
*
|
|
@@ -48,19 +45,19 @@ declare const EvolutionMessages: {
|
|
|
48
45
|
* built by the same `ResolveSignInContextAsync`, so restoring a session and opening one give an
|
|
49
46
|
* identical context by construction.
|
|
50
47
|
*/
|
|
51
|
-
interface EvolutionLoginResult {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
48
|
+
export interface EvolutionLoginResult {
|
|
49
|
+
/** The authenticated user with the licence context, or `undefined` while an MFA code is pending. */
|
|
50
|
+
context?: EvolutionUserInfo;
|
|
51
|
+
/** Whether a verification code has been e-mailed and must be confirmed through `/session/confirm`. */
|
|
52
|
+
requiresMfa?: boolean;
|
|
53
|
+
/**
|
|
54
|
+
* Whether the stored password has expired and must be changed before the application is usable.
|
|
55
|
+
*
|
|
56
|
+
* It replaces `context.isTemporary`, which was read for the same purpose and was always false:
|
|
57
|
+
* `UserInfo.IsTemporary` is `[NotMapped]` on the API, is never emitted as a claim and was never
|
|
58
|
+
* filled.
|
|
59
|
+
*/
|
|
60
|
+
requiresPasswordChange?: boolean;
|
|
64
61
|
}
|
|
65
62
|
/**
|
|
66
63
|
* Answer of `GET /session/status`: whether this browser holds a live session towards the Evolution
|
|
@@ -72,9 +69,9 @@ interface EvolutionLoginResult {
|
|
|
72
69
|
* what makes it safe to call with no session at all: a probe that failed with a status code would be
|
|
73
70
|
* reported by the interceptor as an expired session.
|
|
74
71
|
*/
|
|
75
|
-
interface EvolutionSessionStatus {
|
|
76
|
-
|
|
77
|
-
|
|
72
|
+
export interface EvolutionSessionStatus {
|
|
73
|
+
/** True when the cookie this browser presented resolves to a live, validated session. */
|
|
74
|
+
connected: boolean;
|
|
78
75
|
}
|
|
79
76
|
/**
|
|
80
77
|
* The session as this library holds it, persisted so a page refresh has something to validate.
|
|
@@ -96,9 +93,9 @@ interface EvolutionSessionStatus {
|
|
|
96
93
|
* while this outlived it, so `LoginService.initialize` validates it against `/session/me` before
|
|
97
94
|
* anyone is told there is a session.
|
|
98
95
|
*/
|
|
99
|
-
interface EvolutionLoginInfo {
|
|
100
|
-
|
|
101
|
-
|
|
96
|
+
export interface EvolutionLoginInfo {
|
|
97
|
+
/** The licence context of the signed-in user, as returned by the last login, switch or restore. */
|
|
98
|
+
context?: EvolutionUserInfo;
|
|
102
99
|
}
|
|
103
100
|
/**
|
|
104
101
|
* The `sessionStorage` key naming which account a tab is working as; its value travels on every
|
|
@@ -108,57 +105,57 @@ interface EvolutionLoginInfo {
|
|
|
108
105
|
* service: the interceptor is a factory precisely so that registering it does not pull the Evolution
|
|
109
106
|
* service graph into the eager bundle.
|
|
110
107
|
*/
|
|
111
|
-
declare const EVOLUTION_ACTIVE_ACCOUNT_KEY = "evolution_account";
|
|
112
|
-
interface EvolutionUserLink {
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
108
|
+
export declare const EVOLUTION_ACTIVE_ACCOUNT_KEY = "evolution_account";
|
|
109
|
+
export interface EvolutionUserLink {
|
|
110
|
+
id?: number;
|
|
111
|
+
userId: number;
|
|
112
|
+
userName?: string;
|
|
113
|
+
key: string;
|
|
117
114
|
}
|
|
118
115
|
/**
|
|
119
116
|
* The settings an account may change about itself: the dashboard it opens on and its flags.
|
|
120
117
|
* Mirrors `UpdateUserSettingsModel`; the account is resolved from the session, and the `userId`
|
|
121
118
|
* is only there for an administrator acting on somebody else.
|
|
122
119
|
*/
|
|
123
|
-
interface EvolutionUpdateUserSettingsModel {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
120
|
+
export interface EvolutionUpdateUserSettingsModel {
|
|
121
|
+
userId?: number;
|
|
122
|
+
dashboard?: string;
|
|
123
|
+
flags?: number;
|
|
127
124
|
}
|
|
128
125
|
/**
|
|
129
126
|
* A password change, serving both flows the API supports: the self-service one, which sends
|
|
130
127
|
* `oldPassword` together with the new one, and the administrator-initiated one, which names the
|
|
131
128
|
* account instead.
|
|
132
129
|
*/
|
|
133
|
-
interface EvolutionResetPasswordModel {
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
130
|
+
export interface EvolutionResetPasswordModel {
|
|
131
|
+
userId?: number;
|
|
132
|
+
userEmail?: string;
|
|
133
|
+
password?: string;
|
|
134
|
+
oldPassword?: string;
|
|
135
|
+
recaptchaToken?: string;
|
|
139
136
|
}
|
|
140
137
|
/** A password-recovery request: the address to mail the link to, plus the reCAPTCHA that guards it. */
|
|
141
|
-
interface EvolutionRecoverPasswordModel {
|
|
142
|
-
|
|
143
|
-
|
|
138
|
+
export interface EvolutionRecoverPasswordModel {
|
|
139
|
+
email?: string;
|
|
140
|
+
recaptchaToken?: string;
|
|
144
141
|
}
|
|
145
|
-
interface EvolutionUserModuleInfo {
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
142
|
+
export interface EvolutionUserModuleInfo {
|
|
143
|
+
name: string;
|
|
144
|
+
module: number;
|
|
145
|
+
level: number;
|
|
146
|
+
hidden: boolean;
|
|
150
147
|
}
|
|
151
|
-
interface EvolutionLicenceModuleInfo {
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
148
|
+
export interface EvolutionLicenceModuleInfo {
|
|
149
|
+
module: ERPModule;
|
|
150
|
+
name: string;
|
|
151
|
+
availableUsers: number;
|
|
152
|
+
usedUsers: number;
|
|
153
|
+
availableOption1?: number;
|
|
154
|
+
usedOption1?: number;
|
|
155
|
+
availableOption2?: number;
|
|
156
|
+
usedOption2?: number;
|
|
157
|
+
availableOption3?: number;
|
|
158
|
+
usedOption3?: number;
|
|
162
159
|
}
|
|
163
160
|
/**
|
|
164
161
|
* The signed-in account together with its licence context, as `ResolveSignInContextAsync` builds it
|
|
@@ -171,688 +168,685 @@ interface EvolutionLicenceModuleInfo {
|
|
|
171
168
|
* as the Evolution client does. The licence customization (logo, templates, colours) is left out
|
|
172
169
|
* for the same reason plus one more: it is a model of its own, and nothing here consumes it.
|
|
173
170
|
*/
|
|
174
|
-
interface EvolutionUserInfo {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
171
|
+
export interface EvolutionUserInfo {
|
|
172
|
+
licenceId: number;
|
|
173
|
+
userId: number;
|
|
174
|
+
/** The place (subject / site / department) the account is scoped to, when it is scoped at all. */
|
|
175
|
+
placeId?: number;
|
|
176
|
+
companyName: string;
|
|
177
|
+
/** Relative path of the licence logo, when the licence carries a customization. */
|
|
178
|
+
companyLogo?: string;
|
|
179
|
+
firstName: string;
|
|
180
|
+
fullName: string;
|
|
181
|
+
flags?: number;
|
|
182
|
+
email: string;
|
|
183
|
+
sessionId?: string;
|
|
184
|
+
/**
|
|
185
|
+
* @deprecated Always false. `UserInfo.IsTemporary` is `[NotMapped]` on the API, is never
|
|
186
|
+
* emitted as a claim and is never filled; an expired password is reported by
|
|
187
|
+
* {@link EvolutionLoginResult.requiresPasswordChange}. Kept only so a consumer still reading it
|
|
188
|
+
* keeps compiling.
|
|
189
|
+
*/
|
|
190
|
+
isTemporary?: boolean;
|
|
191
|
+
role: number;
|
|
192
|
+
scope: number;
|
|
193
|
+
roleName: string;
|
|
194
|
+
roleLevel: number;
|
|
195
|
+
allowedModules: EvolutionUserModuleInfo[];
|
|
196
|
+
dashboard?: number;
|
|
197
|
+
dashboard2?: string;
|
|
198
|
+
code?: string;
|
|
199
|
+
subjectId?: number;
|
|
200
|
+
subjectName?: string;
|
|
201
|
+
siteId?: number;
|
|
202
|
+
siteName?: string;
|
|
203
|
+
siteCostCenter?: string;
|
|
204
|
+
departmentId?: number;
|
|
205
|
+
departmentName?: string;
|
|
206
|
+
/**
|
|
207
|
+
* When the licence expires. A `Date` and not a `string`: the API sends an ISO timestamp and the
|
|
208
|
+
* HTTP date interceptor is what turns it into a date, exactly as it does for every other model.
|
|
209
|
+
*/
|
|
210
|
+
expiryDate?: Date;
|
|
211
|
+
isExpired?: boolean;
|
|
212
|
+
isAdministrator?: boolean;
|
|
213
|
+
isPowerUser?: boolean;
|
|
214
|
+
isObserver?: boolean;
|
|
215
|
+
isUser?: boolean;
|
|
216
|
+
isSupportUser?: boolean;
|
|
217
|
+
isGod?: boolean;
|
|
218
|
+
/** Whether the licence has the AI assistant available at all. */
|
|
219
|
+
isMcpAvailable?: boolean;
|
|
220
|
+
/** Whether this account may use it. */
|
|
221
|
+
isMcpEnabled?: boolean;
|
|
222
|
+
/** Whether the licence also has the orchestrator; its connection details stay on the host. */
|
|
223
|
+
isMcpOrchestratorAvailable?: boolean;
|
|
224
|
+
/** The operator this account is bound to, for the applications that work by operator. */
|
|
225
|
+
operatorId?: number;
|
|
226
|
+
/** Whether the licence carries a customization (logo, mail templates, colours). */
|
|
227
|
+
hasCustomization?: boolean;
|
|
228
|
+
administrators?: string;
|
|
229
|
+
availableModules: EvolutionLicenceModuleInfo[];
|
|
230
|
+
availableUsers: number;
|
|
231
|
+
usedUsers: number;
|
|
232
|
+
availableEmployees: number;
|
|
233
|
+
usedEmployees: number;
|
|
234
|
+
availableStorage: number;
|
|
235
|
+
usedStorage: number;
|
|
236
|
+
availableOption1?: number;
|
|
237
|
+
availableOption2?: number;
|
|
238
|
+
availableOption3?: number;
|
|
242
239
|
}
|
|
243
|
-
declare enum EvolutionServiceFlags {
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
240
|
+
export declare enum EvolutionServiceFlags {
|
|
241
|
+
None = 0,
|
|
242
|
+
NotifySystemErrors = 1,
|
|
243
|
+
DisplayConnectionStateMessages = 2,
|
|
244
|
+
Embedded = 4
|
|
248
245
|
}
|
|
249
|
-
declare enum ERPModule {
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
246
|
+
export declare enum ERPModule {
|
|
247
|
+
Formazione = 1,
|
|
248
|
+
DPI = 2,
|
|
249
|
+
SorveglianzaSanitaria = 4,
|
|
250
|
+
RegistroEScadenzario = 8,
|
|
251
|
+
AttrezzatureEImpianti = 16,
|
|
252
|
+
Monitoraggio = 32,
|
|
253
|
+
Bollettino = 64,
|
|
254
|
+
Documenti = 128
|
|
258
255
|
}
|
|
259
|
-
interface EvolutionPlaceable {
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
256
|
+
export interface EvolutionPlaceable {
|
|
257
|
+
licenceId?: number;
|
|
258
|
+
companyName?: string;
|
|
259
|
+
subjectId?: number;
|
|
260
|
+
subjectName?: string;
|
|
261
|
+
siteId?: number;
|
|
262
|
+
siteName?: string;
|
|
263
|
+
departmentId?: number;
|
|
264
|
+
departmentName?: string;
|
|
265
|
+
placeId?: number;
|
|
269
266
|
}
|
|
270
|
-
declare enum ERPExportType {
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
267
|
+
export declare enum ERPExportType {
|
|
268
|
+
Basic = 1,
|
|
269
|
+
Detailed = 8,
|
|
270
|
+
Complete = 9,
|
|
271
|
+
Labels = 10,
|
|
272
|
+
EmployeesCoursesMatrix = 21,
|
|
273
|
+
EmployeesCoursesHoursMatrix = 22,
|
|
274
|
+
EmployeesPPEsMatrix = 23,
|
|
275
|
+
EmployeesHealthChecksMatrix = 24,
|
|
276
|
+
TasksCoursesMatrix = 31,
|
|
277
|
+
Training = 101,
|
|
278
|
+
TrainingExpired = 102,
|
|
279
|
+
TrainingExpiring = 103,
|
|
280
|
+
TrainingAbsents = 104,
|
|
281
|
+
TrainingClosed = 105,
|
|
282
|
+
TrainingCurrentYear = 108,
|
|
283
|
+
TrainingNextYear = 109,
|
|
284
|
+
TrainingAnnualPlannng = 110,
|
|
285
|
+
EquipmentsActivitiesCompleted = 201,
|
|
286
|
+
EquipmentsChecksMatrix = 202,
|
|
287
|
+
RSNormsUsage = 301,
|
|
288
|
+
RSNormsSitesMatrix = 302,
|
|
289
|
+
RSNormsSummary = 303,
|
|
290
|
+
MonitoringLaws = 401,
|
|
291
|
+
MonitoringActivities = 402,
|
|
292
|
+
MonitoringSummary = 403,
|
|
293
|
+
PPEs = 501,
|
|
294
|
+
ComplianceStatistics = 601,
|
|
295
|
+
HealthChecks = 701
|
|
299
296
|
}
|
|
300
|
-
declare enum ERPExportFormat {
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
297
|
+
export declare enum ERPExportFormat {
|
|
298
|
+
Csv = 1,
|
|
299
|
+
Word = 2,
|
|
300
|
+
Pdf = 3
|
|
304
301
|
}
|
|
305
|
-
declare enum ERPExportSource {
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
302
|
+
export declare enum ERPExportSource {
|
|
303
|
+
All = 1,
|
|
304
|
+
Query = 2,
|
|
305
|
+
Selection = 3
|
|
309
306
|
}
|
|
310
|
-
declare enum ERPExportPart {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
307
|
+
export declare enum ERPExportPart {
|
|
308
|
+
IncludeRisks = 101,
|
|
309
|
+
IncludeTasks = 102,
|
|
310
|
+
IncludeTaskHistory = 103,
|
|
311
|
+
IncludeTrainingRequired = 111,
|
|
312
|
+
IncludeTrainingDone = 112,
|
|
313
|
+
SelectedEmployeeCourses = 121,
|
|
314
|
+
IncludeDisabledEmployees = 131,
|
|
315
|
+
IncludeDismissedEmployees = 132,
|
|
316
|
+
IncludeDocumentUpdates = 201,
|
|
317
|
+
ExcludeNonApplicableOrAcknowledged = 202,
|
|
318
|
+
ExcluteAbblicabilityTable = 203,
|
|
319
|
+
IncludeActivities = 204,
|
|
320
|
+
GroupLaws = 205,
|
|
321
|
+
IncludeApplicableOrAcknowledgedOnly = 4301,
|
|
322
|
+
IncludePPEs = 501,
|
|
323
|
+
IncludeHealthChecks = 601
|
|
327
324
|
}
|
|
328
|
-
interface EvolutionExportModel<T> extends SendToModel {
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
325
|
+
export interface EvolutionExportModel<T> extends SendToModel {
|
|
326
|
+
searchParams: T;
|
|
327
|
+
selection?: number[];
|
|
328
|
+
type: ERPExportType;
|
|
329
|
+
sort?: number;
|
|
330
|
+
source: ERPExportSource;
|
|
331
|
+
format: ERPExportFormat;
|
|
332
|
+
parts?: ERPExportPart[];
|
|
333
|
+
automateReport?: boolean;
|
|
334
|
+
automatedReportId?: number;
|
|
335
|
+
automatedReportSheetName?: string;
|
|
336
|
+
formatExtension?: string;
|
|
340
337
|
}
|
|
341
|
-
declare enum ERPComplianceLawsSelectionType {
|
|
342
|
-
|
|
343
|
-
|
|
338
|
+
export declare enum ERPComplianceLawsSelectionType {
|
|
339
|
+
Analysis = 1,
|
|
340
|
+
Activity = 2
|
|
344
341
|
}
|
|
345
|
-
declare enum ERPComplianceProfileRole {
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
342
|
+
export declare enum ERPComplianceProfileRole {
|
|
343
|
+
None = 0,
|
|
344
|
+
Analyst = 1,
|
|
345
|
+
Planner = 2,
|
|
346
|
+
Validator = 4,
|
|
347
|
+
Executor = 8,
|
|
348
|
+
Observer = 16
|
|
352
349
|
}
|
|
353
|
-
declare enum ERPComplianceProfileFlags {
|
|
354
|
-
|
|
350
|
+
export declare enum ERPComplianceProfileFlags {
|
|
351
|
+
OverrideNotificationRegisterSettings = 16
|
|
355
352
|
}
|
|
356
|
-
declare enum ERPComplianceScope {
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
353
|
+
export declare enum ERPComplianceScope {
|
|
354
|
+
None = 0,
|
|
355
|
+
Environment = 1,
|
|
356
|
+
Safety = 2,
|
|
357
|
+
FoodSafety = 4,
|
|
358
|
+
Energy = 8,
|
|
359
|
+
Health = 16,
|
|
360
|
+
Maintenance = 32,
|
|
361
|
+
Quality = 64,
|
|
362
|
+
Organization = 128,
|
|
363
|
+
Logistics = 256,
|
|
364
|
+
Facility = 512,
|
|
365
|
+
Security = 1024,
|
|
366
|
+
GenderEquality = 2048,
|
|
367
|
+
AntiCorruption = 4096,
|
|
368
|
+
Sustainability = 8192,
|
|
369
|
+
InformationSecurity = 16384
|
|
373
370
|
}
|
|
374
|
-
declare enum ERPComplianceNotificationLimit {
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
371
|
+
export declare enum ERPComplianceNotificationLimit {
|
|
372
|
+
None = 0,
|
|
373
|
+
PlannerOnly = 1,
|
|
374
|
+
ExecutorOnly = 2,
|
|
375
|
+
Both = 3
|
|
379
376
|
}
|
|
380
|
-
declare enum ERPComplianceRegisterNotificationType {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
377
|
+
export declare enum ERPComplianceRegisterNotificationType {
|
|
378
|
+
None = 0,
|
|
379
|
+
NewAnalysis = 1,
|
|
380
|
+
AnalysisCompleted = 2,
|
|
381
|
+
AnalysisNoticePeriodStarted = 4,
|
|
382
|
+
AnalysisPeriodExpired = 8,
|
|
383
|
+
AnalysisLawChanged = 16384,
|
|
384
|
+
NewPlanning = 8192,
|
|
385
|
+
PlanningCompleted = 16,
|
|
386
|
+
PlanningNoticePeriodStarted = 32,
|
|
387
|
+
PlanningPeriodExpired = 64,
|
|
388
|
+
NewValidation = 32768,
|
|
389
|
+
ValidationCompleted = 128,
|
|
390
|
+
ValidationNoticePeriodStarted = 256,
|
|
391
|
+
ValidationPeriodExpired = 512,
|
|
392
|
+
NewDeadline = 65536,
|
|
393
|
+
DeadlineNoticePeriodStarted = 1024,
|
|
394
|
+
DeadlineExpired = 2048,
|
|
395
|
+
ActivityCompleted = 4096,
|
|
396
|
+
LawChanged = 2097152
|
|
400
397
|
}
|
|
401
|
-
declare enum ERPComplianceRegisterSiteImportOptions {
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
398
|
+
export declare enum ERPComplianceRegisterSiteImportOptions {
|
|
399
|
+
CopyAttachments = 1,
|
|
400
|
+
KeepOriginalDates = 2,
|
|
401
|
+
DuplicateLaws = 4,
|
|
402
|
+
DiscardNotApplicables = 8
|
|
406
403
|
}
|
|
407
|
-
declare const EvolutionComplianceProfileRoles: {
|
|
408
|
-
|
|
409
|
-
|
|
404
|
+
export declare const EvolutionComplianceProfileRoles: {
|
|
405
|
+
name: string;
|
|
406
|
+
value: ERPComplianceProfileRole;
|
|
410
407
|
}[];
|
|
411
|
-
declare const EvolutionComplianceProfileFlags: ({
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
408
|
+
export declare const EvolutionComplianceProfileFlags: ({
|
|
409
|
+
name: string;
|
|
410
|
+
divider: boolean;
|
|
411
|
+
value?: undefined;
|
|
415
412
|
} | {
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
413
|
+
name: string;
|
|
414
|
+
value: ERPComplianceProfileFlags;
|
|
415
|
+
divider?: undefined;
|
|
419
416
|
})[];
|
|
420
|
-
declare const EvolutionComplianceScopes: {
|
|
421
|
-
|
|
422
|
-
|
|
417
|
+
export declare const EvolutionComplianceScopes: {
|
|
418
|
+
name: string;
|
|
419
|
+
value: ERPComplianceScope;
|
|
423
420
|
}[];
|
|
424
|
-
declare const EvolutionComplianceNotificationLimits: {
|
|
425
|
-
|
|
426
|
-
|
|
421
|
+
export declare const EvolutionComplianceNotificationLimits: {
|
|
422
|
+
name: string;
|
|
423
|
+
value: ERPComplianceNotificationLimit;
|
|
427
424
|
}[];
|
|
428
|
-
declare const EvolutionComplianceNotifications: ({
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
425
|
+
export declare const EvolutionComplianceNotifications: ({
|
|
426
|
+
name: string;
|
|
427
|
+
divider: boolean;
|
|
428
|
+
value?: undefined;
|
|
432
429
|
} | {
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
430
|
+
name: string;
|
|
431
|
+
value: ERPComplianceRegisterNotificationType;
|
|
432
|
+
divider?: undefined;
|
|
436
433
|
})[];
|
|
437
|
-
declare enum ERPComplianceLawState {
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
434
|
+
export declare enum ERPComplianceLawState {
|
|
435
|
+
ApplicableOrAknowledged = 1,
|
|
436
|
+
NotApplicable = 2,
|
|
437
|
+
NotAnalyzed = 3,
|
|
438
|
+
ExpiredAnalysis = 4,
|
|
439
|
+
UpdatedLaws = 5,
|
|
440
|
+
Analyzed = 6,
|
|
441
|
+
Abrogated = 7,
|
|
442
|
+
Applicable = 8,
|
|
443
|
+
Aknowledged = 9
|
|
447
444
|
}
|
|
448
|
-
declare enum ERPComplianceLawOrigin {
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
445
|
+
export declare enum ERPComplianceLawOrigin {
|
|
446
|
+
National = 1,
|
|
447
|
+
EU = 2,
|
|
448
|
+
Regional = 3,
|
|
449
|
+
Local = 4,
|
|
450
|
+
Technical = 5,
|
|
451
|
+
Voulontary = 6,
|
|
452
|
+
Internal = 7,
|
|
453
|
+
Other = 8
|
|
457
454
|
}
|
|
458
|
-
declare const EvolutionComplianceLawStates: {
|
|
459
|
-
|
|
460
|
-
|
|
455
|
+
export declare const EvolutionComplianceLawStates: {
|
|
456
|
+
name: string;
|
|
457
|
+
value: ERPComplianceLawState;
|
|
461
458
|
}[];
|
|
462
|
-
declare const EvolutionComplianceLawOrigins: {
|
|
463
|
-
|
|
464
|
-
|
|
459
|
+
export declare const EvolutionComplianceLawOrigins: {
|
|
460
|
+
name: string;
|
|
461
|
+
value: ERPComplianceLawOrigin;
|
|
465
462
|
}[];
|
|
466
|
-
declare const EvolutionComplianceLawChangeStates: {
|
|
467
|
-
|
|
468
|
-
|
|
463
|
+
export declare const EvolutionComplianceLawChangeStates: {
|
|
464
|
+
name: string;
|
|
465
|
+
value: number;
|
|
469
466
|
}[];
|
|
470
|
-
declare enum ERPComplianceActivityState {
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
467
|
+
export declare enum ERPComplianceActivityState {
|
|
468
|
+
NotPlanned = 128,
|
|
469
|
+
Closed = 4,
|
|
470
|
+
Expired = 8,
|
|
471
|
+
Planned = 256,
|
|
472
|
+
Cancelled = 512,
|
|
473
|
+
UpdatedLaws = 1024,
|
|
474
|
+
AlreadyManaged = 2048
|
|
478
475
|
}
|
|
479
|
-
declare const EvolutionComplianceActivityStates: {
|
|
480
|
-
|
|
481
|
-
|
|
476
|
+
export declare const EvolutionComplianceActivityStates: {
|
|
477
|
+
name: string;
|
|
478
|
+
value: ERPComplianceActivityState;
|
|
482
479
|
}[];
|
|
483
|
-
declare const EvolutionComplianceObligationTypes: {
|
|
484
|
-
|
|
485
|
-
|
|
480
|
+
export declare const EvolutionComplianceObligationTypes: {
|
|
481
|
+
name: string;
|
|
482
|
+
value: number;
|
|
486
483
|
}[];
|
|
487
|
-
declare const EvolutionComplianceObligationAuthorities: {
|
|
488
|
-
|
|
489
|
-
|
|
484
|
+
export declare const EvolutionComplianceObligationAuthorities: {
|
|
485
|
+
name: string;
|
|
486
|
+
value: number;
|
|
490
487
|
}[];
|
|
491
|
-
declare enum ERPRecurrenceFrequencyType {
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
488
|
+
export declare enum ERPRecurrenceFrequencyType {
|
|
489
|
+
Day = 1,
|
|
490
|
+
Month = 2,
|
|
491
|
+
Year = 3
|
|
495
492
|
}
|
|
496
|
-
declare const EvolutionRecurrenceFrequencyTypes: {
|
|
497
|
-
|
|
498
|
-
|
|
493
|
+
export declare const EvolutionRecurrenceFrequencyTypes: {
|
|
494
|
+
name: string;
|
|
495
|
+
value: ERPRecurrenceFrequencyType;
|
|
499
496
|
}[];
|
|
500
|
-
declare enum ERPPlacePermission {
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
497
|
+
export declare enum ERPPlacePermission {
|
|
498
|
+
None = 0,
|
|
499
|
+
Denied = 1,
|
|
500
|
+
Read = 2,
|
|
501
|
+
Write = 3
|
|
505
502
|
}
|
|
506
|
-
declare enum ERPPlace {
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
503
|
+
export declare enum ERPPlace {
|
|
504
|
+
Subject = 1,
|
|
505
|
+
Site = 2,
|
|
506
|
+
Department = 3,
|
|
507
|
+
Area = 4,
|
|
508
|
+
Line = 5
|
|
512
509
|
}
|
|
513
|
-
interface EvolutionPermission {
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
510
|
+
export interface EvolutionPermission {
|
|
511
|
+
placeId: number;
|
|
512
|
+
userId: number;
|
|
513
|
+
allowRead: number;
|
|
514
|
+
allowWrite: number;
|
|
515
|
+
allowNone: number;
|
|
519
516
|
}
|
|
520
|
-
interface EvolutionPlacePermission extends EvolutionPermission {
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
517
|
+
export interface EvolutionPlacePermission extends EvolutionPermission {
|
|
518
|
+
id: number;
|
|
519
|
+
subjectId?: number;
|
|
520
|
+
siteId?: number;
|
|
521
|
+
departmentId?: number;
|
|
522
|
+
mode: number;
|
|
526
523
|
}
|
|
527
|
-
interface EvolutionContextInfo {
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
524
|
+
export interface EvolutionContextInfo {
|
|
525
|
+
id: number;
|
|
526
|
+
userId?: number;
|
|
527
|
+
name: string;
|
|
528
|
+
permission: EvolutionPermission;
|
|
529
|
+
placePermission: ERPPlacePermission;
|
|
530
|
+
costCenter: string;
|
|
531
|
+
selected?: boolean;
|
|
532
|
+
level?: number;
|
|
533
|
+
levelTitle?: string;
|
|
537
534
|
}
|
|
538
|
-
declare class EvolutionComplianceContextInfo {
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
535
|
+
export declare class EvolutionComplianceContextInfo {
|
|
536
|
+
licenceId?: number;
|
|
537
|
+
companyName?: string;
|
|
538
|
+
registerTitle?: string;
|
|
539
|
+
registerId?: number;
|
|
540
|
+
siteName?: string;
|
|
541
|
+
siteId?: number;
|
|
542
|
+
userId?: number;
|
|
543
|
+
items?: EvolutionContextInfo[];
|
|
547
544
|
}
|
|
548
|
-
interface EvolutionChangeContextModel {
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
545
|
+
export interface EvolutionChangeContextModel {
|
|
546
|
+
userId?: number;
|
|
547
|
+
licenceId?: number;
|
|
548
|
+
subjectId?: number;
|
|
549
|
+
siteId?: number;
|
|
550
|
+
registerId?: number;
|
|
551
|
+
role?: ERPComplianceProfileRole;
|
|
552
|
+
permission?: ERPPlacePermission;
|
|
553
|
+
option1Value?: number;
|
|
554
|
+
option2Value?: number;
|
|
555
|
+
option3Value?: number;
|
|
556
|
+
allowObservers?: boolean;
|
|
557
|
+
allowDisabled?: boolean;
|
|
561
558
|
}
|
|
562
|
-
interface EvolutionChangeContextResultModel {
|
|
563
|
-
|
|
559
|
+
export interface EvolutionChangeContextResultModel {
|
|
560
|
+
items: EvolutionContextInfo[];
|
|
564
561
|
}
|
|
565
|
-
interface EvolutionComplianceRegister extends EvolutionPlaceable {
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
562
|
+
export interface EvolutionComplianceRegister extends EvolutionPlaceable {
|
|
563
|
+
id: number;
|
|
564
|
+
title?: string;
|
|
565
|
+
enableNotifications?: boolean;
|
|
566
|
+
enableNotification1?: boolean;
|
|
567
|
+
enableNotification2?: boolean;
|
|
568
|
+
enableNotification3?: boolean;
|
|
569
|
+
enableNotification4?: boolean;
|
|
570
|
+
enableNotification5?: boolean;
|
|
571
|
+
enableNotification7?: boolean;
|
|
572
|
+
enableNotification8?: boolean;
|
|
573
|
+
enableNotification9?: boolean;
|
|
574
|
+
notification1NoticeDays?: number;
|
|
575
|
+
notification2NoticeDays?: number;
|
|
576
|
+
notification2Limit?: number;
|
|
577
|
+
notification3NoticeDays?: number;
|
|
578
|
+
notification4NoticeDays?: number;
|
|
579
|
+
notification4Limit?: number;
|
|
580
|
+
notification5NoticeDays?: number;
|
|
581
|
+
notification5Limit?: number;
|
|
582
|
+
notification6Limit?: number;
|
|
583
|
+
notification8NoticeDays?: number;
|
|
584
|
+
notification8Limit?: number;
|
|
585
|
+
enableActivityLawsPopulation?: boolean;
|
|
586
|
+
enableLawChangesTracking?: boolean;
|
|
587
|
+
automationMode?: number;
|
|
588
|
+
automationScope?: number;
|
|
589
|
+
disabled?: boolean;
|
|
590
|
+
created?: Date;
|
|
591
|
+
lastUpdated?: Date;
|
|
592
|
+
lastUpdatedBy?: string;
|
|
593
|
+
totalSites?: number;
|
|
594
|
+
totalProfiles?: number;
|
|
595
|
+
sites?: EvolutionComplianceRegisterSite[];
|
|
596
|
+
oldId?: string;
|
|
597
|
+
isAutomationEnabled?: boolean;
|
|
598
|
+
automationModeDescription?: string;
|
|
599
|
+
automationScopeDescription?: string;
|
|
600
|
+
context?: EvolutionComplianceContextInfo;
|
|
601
|
+
isMenuOpen?: boolean;
|
|
602
|
+
isOver?: boolean;
|
|
606
603
|
}
|
|
607
|
-
interface EvolutionRegisterProfileSiteInfo extends EvolutionContextInfo {
|
|
604
|
+
export interface EvolutionRegisterProfileSiteInfo extends EvolutionContextInfo {}
|
|
605
|
+
export interface EvolutionRegisterProfileUserInfo {
|
|
606
|
+
userId: number;
|
|
607
|
+
name: string;
|
|
608
|
+
sites: EvolutionRegisterProfileSiteInfo[];
|
|
608
609
|
}
|
|
609
|
-
interface
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
sites: EvolutionRegisterProfileSiteInfo[];
|
|
610
|
+
export interface ComplianceRegisterUsersResultModel {
|
|
611
|
+
users: EvolutionRegisterProfileUserInfo[];
|
|
612
|
+
sites: EvolutionRegisterProfileSiteInfo[];
|
|
613
613
|
}
|
|
614
|
-
interface
|
|
615
|
-
|
|
616
|
-
|
|
614
|
+
export interface EvolutionComplianceRegisterSite {
|
|
615
|
+
id: number;
|
|
616
|
+
complianceRegisterId?: number;
|
|
617
|
+
complianceSiteId?: number;
|
|
618
|
+
disabled?: boolean;
|
|
619
|
+
created?: Date;
|
|
620
|
+
licenceId?: number;
|
|
621
|
+
subjectId?: number;
|
|
622
|
+
subjectName: string;
|
|
623
|
+
siteId?: number;
|
|
624
|
+
siteName?: string;
|
|
625
|
+
departmentId?: number;
|
|
626
|
+
departmentName?: string;
|
|
627
|
+
registerTitle?: string;
|
|
628
|
+
placeId?: number;
|
|
629
|
+
oldSiteId?: string;
|
|
617
630
|
}
|
|
618
|
-
interface
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
631
|
+
export interface EvolutionComplianceLaw extends EvolutionPlaceable {
|
|
632
|
+
id?: number;
|
|
633
|
+
state?: number;
|
|
634
|
+
complianceRegisterId?: number;
|
|
635
|
+
lot?: number;
|
|
636
|
+
topicId?: string;
|
|
637
|
+
topicPath?: string;
|
|
638
|
+
topicName?: string;
|
|
639
|
+
summary?: string;
|
|
640
|
+
scope?: number;
|
|
641
|
+
source?: string;
|
|
642
|
+
references?: EvolutionComplianceLawReference[];
|
|
643
|
+
originalLawId?: number;
|
|
644
|
+
originRegion?: string;
|
|
645
|
+
origin?: number;
|
|
646
|
+
originAlternativeDescription?: string;
|
|
647
|
+
description?: string;
|
|
648
|
+
documentShortTitle?: string;
|
|
649
|
+
documentTitle?: string;
|
|
650
|
+
documentNumber?: string;
|
|
651
|
+
documentDate?: Date;
|
|
652
|
+
documentLastUpdate?: string;
|
|
653
|
+
documentLastUpdateShortTitle?: string;
|
|
654
|
+
documentUpdateNotes?: string;
|
|
655
|
+
documentValidated?: boolean;
|
|
656
|
+
documentId?: string;
|
|
657
|
+
documentModel?: number;
|
|
658
|
+
documentReferences?: string;
|
|
659
|
+
documentNotes?: string;
|
|
660
|
+
documentForceGlobalCheckForUpdates?: boolean;
|
|
661
|
+
complianceCheckItem1?: boolean;
|
|
662
|
+
complianceCheckItem2?: boolean;
|
|
663
|
+
complianceCheckItem3?: boolean;
|
|
664
|
+
complianceCheckItem4?: boolean;
|
|
665
|
+
complianceCheckItem5?: boolean;
|
|
666
|
+
complianceCheckItem6?: boolean;
|
|
667
|
+
complianceCheckItem7?: boolean;
|
|
668
|
+
complianceCheckItem8?: boolean;
|
|
669
|
+
complianceCheckItem9?: boolean;
|
|
670
|
+
complianceCheckItem10?: boolean;
|
|
671
|
+
complianceCheckItem11?: boolean;
|
|
672
|
+
complianceCheckItem12?: boolean;
|
|
673
|
+
alternativeComplianceCheckItem?: boolean;
|
|
674
|
+
alternativeComplianceDescription?: string;
|
|
675
|
+
applicability?: number;
|
|
676
|
+
analyzedBy?: string;
|
|
677
|
+
analystOperatorId?: number;
|
|
678
|
+
analysisExpiringDate?: Date;
|
|
679
|
+
analysisDate?: Date;
|
|
680
|
+
analysisNotes?: string;
|
|
681
|
+
analysisNoticeDate?: string;
|
|
682
|
+
group1?: string;
|
|
683
|
+
group2?: string;
|
|
684
|
+
count?: number;
|
|
685
|
+
created?: Date;
|
|
686
|
+
createdBy?: string;
|
|
687
|
+
lastUpdated?: Date;
|
|
688
|
+
lastUpdatedBy?: string;
|
|
634
689
|
}
|
|
635
|
-
interface
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
source?: string;
|
|
646
|
-
references?: EvolutionComplianceLawReference[];
|
|
647
|
-
originalLawId?: number;
|
|
648
|
-
originRegion?: string;
|
|
649
|
-
origin?: number;
|
|
650
|
-
originAlternativeDescription?: string;
|
|
651
|
-
description?: string;
|
|
652
|
-
documentShortTitle?: string;
|
|
653
|
-
documentTitle?: string;
|
|
654
|
-
documentNumber?: string;
|
|
655
|
-
documentDate?: Date;
|
|
656
|
-
documentLastUpdate?: string;
|
|
657
|
-
documentLastUpdateShortTitle?: string;
|
|
658
|
-
documentUpdateNotes?: string;
|
|
659
|
-
documentValidated?: boolean;
|
|
660
|
-
documentId?: string;
|
|
661
|
-
documentModel?: number;
|
|
662
|
-
documentReferences?: string;
|
|
663
|
-
documentNotes?: string;
|
|
664
|
-
documentForceGlobalCheckForUpdates?: boolean;
|
|
665
|
-
complianceCheckItem1?: boolean;
|
|
666
|
-
complianceCheckItem2?: boolean;
|
|
667
|
-
complianceCheckItem3?: boolean;
|
|
668
|
-
complianceCheckItem4?: boolean;
|
|
669
|
-
complianceCheckItem5?: boolean;
|
|
670
|
-
complianceCheckItem6?: boolean;
|
|
671
|
-
complianceCheckItem7?: boolean;
|
|
672
|
-
complianceCheckItem8?: boolean;
|
|
673
|
-
complianceCheckItem9?: boolean;
|
|
674
|
-
complianceCheckItem10?: boolean;
|
|
675
|
-
complianceCheckItem11?: boolean;
|
|
676
|
-
complianceCheckItem12?: boolean;
|
|
677
|
-
alternativeComplianceCheckItem?: boolean;
|
|
678
|
-
alternativeComplianceDescription?: string;
|
|
679
|
-
applicability?: number;
|
|
680
|
-
analyzedBy?: string;
|
|
681
|
-
analystOperatorId?: number;
|
|
682
|
-
analysisExpiringDate?: Date;
|
|
683
|
-
analysisDate?: Date;
|
|
684
|
-
analysisNotes?: string;
|
|
685
|
-
analysisNoticeDate?: string;
|
|
686
|
-
group1?: string;
|
|
687
|
-
group2?: string;
|
|
688
|
-
count?: number;
|
|
689
|
-
created?: Date;
|
|
690
|
-
createdBy?: string;
|
|
691
|
-
lastUpdated?: Date;
|
|
692
|
-
lastUpdatedBy?: string;
|
|
690
|
+
export interface EvolutionQueryRegisterProfilesModel extends QueryModel {
|
|
691
|
+
complianceRegisterId?: number;
|
|
692
|
+
siteId?: number;
|
|
693
|
+
userId?: number;
|
|
694
|
+
licenceId?: number;
|
|
695
|
+
name?: string;
|
|
696
|
+
role?: number;
|
|
697
|
+
allowObservers?: boolean;
|
|
698
|
+
allowDisabled?: boolean;
|
|
699
|
+
state?: number;
|
|
693
700
|
}
|
|
694
|
-
interface
|
|
695
|
-
|
|
696
|
-
|
|
697
|
-
|
|
698
|
-
|
|
699
|
-
|
|
700
|
-
|
|
701
|
-
|
|
702
|
-
|
|
703
|
-
|
|
701
|
+
export interface EvolutionComplianceRegisterProfile {
|
|
702
|
+
id: number;
|
|
703
|
+
licenceId?: number;
|
|
704
|
+
userId?: number;
|
|
705
|
+
passiveUserName?: string;
|
|
706
|
+
passiveUserOperatorId?: number;
|
|
707
|
+
complianceRegisterId?: number;
|
|
708
|
+
complianceSiteId?: number;
|
|
709
|
+
scopes?: number;
|
|
710
|
+
selectedScopes?: number[];
|
|
711
|
+
roles?: number;
|
|
712
|
+
selectedRoles?: number[];
|
|
713
|
+
notifications?: number;
|
|
714
|
+
flags?: number;
|
|
715
|
+
disabled?: boolean;
|
|
716
|
+
created?: Date;
|
|
717
|
+
lastUpdated?: Date;
|
|
718
|
+
lastUpdatedBy?: string;
|
|
719
|
+
subjectId?: number;
|
|
720
|
+
subjectName?: string;
|
|
721
|
+
siteId?: number;
|
|
722
|
+
siteName?: string;
|
|
723
|
+
siteDisabled?: boolean;
|
|
724
|
+
departmentId?: number;
|
|
725
|
+
departmentName?: string;
|
|
726
|
+
passiveUserEmail?: string;
|
|
727
|
+
placeId?: number;
|
|
728
|
+
userEmail?: string;
|
|
729
|
+
userOperatorId?: number;
|
|
730
|
+
userDisabled?: boolean;
|
|
731
|
+
registerDisabled?: boolean;
|
|
732
|
+
registerTitle?: string;
|
|
733
|
+
name?: string;
|
|
734
|
+
scopeNames?: string;
|
|
735
|
+
isAdministrator?: boolean;
|
|
736
|
+
isObserver?: boolean;
|
|
737
|
+
denied?: boolean;
|
|
738
|
+
oldId?: string;
|
|
739
|
+
operatorId?: number;
|
|
740
|
+
isMenuOpen?: boolean;
|
|
741
|
+
isOver?: boolean;
|
|
742
|
+
context?: EvolutionComplianceContextInfo;
|
|
704
743
|
}
|
|
705
|
-
interface
|
|
706
|
-
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
714
|
-
|
|
715
|
-
|
|
716
|
-
|
|
717
|
-
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
723
|
-
subjectId?: number;
|
|
724
|
-
subjectName?: string;
|
|
725
|
-
siteId?: number;
|
|
726
|
-
siteName?: string;
|
|
727
|
-
siteDisabled?: boolean;
|
|
728
|
-
departmentId?: number;
|
|
729
|
-
departmentName?: string;
|
|
730
|
-
passiveUserEmail?: string;
|
|
731
|
-
placeId?: number;
|
|
732
|
-
userEmail?: string;
|
|
733
|
-
userOperatorId?: number;
|
|
734
|
-
userDisabled?: boolean;
|
|
735
|
-
registerDisabled?: boolean;
|
|
736
|
-
registerTitle?: string;
|
|
737
|
-
name?: string;
|
|
738
|
-
scopeNames?: string;
|
|
739
|
-
isAdministrator?: boolean;
|
|
740
|
-
isObserver?: boolean;
|
|
741
|
-
denied?: boolean;
|
|
742
|
-
oldId?: string;
|
|
743
|
-
operatorId?: number;
|
|
744
|
-
isMenuOpen?: boolean;
|
|
745
|
-
isOver?: boolean;
|
|
746
|
-
context?: EvolutionComplianceContextInfo;
|
|
744
|
+
export interface EvolutionComplianceLawDocumentInfo {
|
|
745
|
+
documentId?: string;
|
|
746
|
+
documentId2?: string;
|
|
747
|
+
title2?: string;
|
|
748
|
+
title1?: string;
|
|
749
|
+
number?: string;
|
|
750
|
+
date?: Date;
|
|
751
|
+
origin?: number;
|
|
752
|
+
originDescription?: string;
|
|
753
|
+
originAlternativeDescription?: string;
|
|
754
|
+
originRegion?: string;
|
|
755
|
+
notes?: string;
|
|
756
|
+
references?: EvolutionComplianceLawReference[];
|
|
757
|
+
forceGlobalCheckForUpdates?: boolean;
|
|
758
|
+
validated?: boolean;
|
|
759
|
+
description?: string;
|
|
760
|
+
taxonomy?: string;
|
|
761
|
+
taxonomyPath?: string;
|
|
747
762
|
}
|
|
748
|
-
interface
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
753
|
-
|
|
754
|
-
|
|
755
|
-
origin?: number;
|
|
756
|
-
originDescription?: string;
|
|
757
|
-
originAlternativeDescription?: string;
|
|
758
|
-
originRegion?: string;
|
|
759
|
-
notes?: string;
|
|
760
|
-
references?: EvolutionComplianceLawReference[];
|
|
761
|
-
forceGlobalCheckForUpdates?: boolean;
|
|
762
|
-
validated?: boolean;
|
|
763
|
-
description?: string;
|
|
764
|
-
taxonomy?: string;
|
|
765
|
-
taxonomyPath?: string;
|
|
766
|
-
}
|
|
767
|
-
interface EvolutionComplianceLawsAddParams extends EvolutionComplianceLaw {
|
|
768
|
-
context?: EvolutionComplianceContextInfo;
|
|
769
|
-
documents?: EvolutionComplianceLawDocumentInfo[];
|
|
770
|
-
shouldNotifyAnalysisCompletionAgain?: boolean;
|
|
771
|
-
scopes?: number[];
|
|
772
|
-
sites?: number[];
|
|
773
|
-
registers?: number[];
|
|
763
|
+
export interface EvolutionComplianceLawsAddParams extends EvolutionComplianceLaw {
|
|
764
|
+
context?: EvolutionComplianceContextInfo;
|
|
765
|
+
documents?: EvolutionComplianceLawDocumentInfo[];
|
|
766
|
+
shouldNotifyAnalysisCompletionAgain?: boolean;
|
|
767
|
+
scopes?: number[];
|
|
768
|
+
sites?: number[];
|
|
769
|
+
registers?: number[];
|
|
774
770
|
}
|
|
775
771
|
/** Export parameters for compliance laws. */
|
|
776
|
-
interface EvolutionComplianceLaswExportParams extends EvolutionExportModel<Partial<EvolutionComplianceLaw>> {
|
|
777
|
-
|
|
778
|
-
|
|
779
|
-
|
|
780
|
-
|
|
781
|
-
|
|
782
|
-
|
|
783
|
-
anchor: string;
|
|
772
|
+
export interface EvolutionComplianceLaswExportParams extends EvolutionExportModel<Partial<EvolutionComplianceLaw>> {}
|
|
773
|
+
export interface EvolutionComplianceLawReference {
|
|
774
|
+
id?: number;
|
|
775
|
+
complianceLawId?: number;
|
|
776
|
+
text: string;
|
|
777
|
+
description?: string;
|
|
778
|
+
anchor: string;
|
|
784
779
|
}
|
|
785
|
-
interface EvolutionComplianceActivity extends EvolutionPlaceable {
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
789
|
-
|
|
790
|
-
|
|
791
|
-
|
|
792
|
-
|
|
793
|
-
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
799
|
-
|
|
800
|
-
|
|
801
|
-
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
813
|
-
|
|
814
|
-
|
|
815
|
-
|
|
816
|
-
|
|
817
|
-
|
|
818
|
-
|
|
819
|
-
|
|
820
|
-
|
|
821
|
-
|
|
822
|
-
|
|
823
|
-
|
|
824
|
-
|
|
825
|
-
|
|
826
|
-
|
|
827
|
-
|
|
828
|
-
|
|
829
|
-
|
|
830
|
-
|
|
831
|
-
|
|
832
|
-
|
|
833
|
-
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
|
|
839
|
-
|
|
840
|
-
|
|
841
|
-
|
|
780
|
+
export interface EvolutionComplianceActivity extends EvolutionPlaceable {
|
|
781
|
+
id: number;
|
|
782
|
+
state: number;
|
|
783
|
+
monitoringActivityId?: number;
|
|
784
|
+
monitoringActivityTaskId?: number;
|
|
785
|
+
complianceRegisterId?: number;
|
|
786
|
+
childId?: number;
|
|
787
|
+
parentId?: number;
|
|
788
|
+
lot?: number;
|
|
789
|
+
summary?: string;
|
|
790
|
+
scope?: number;
|
|
791
|
+
topicId?: string;
|
|
792
|
+
topicPath?: string;
|
|
793
|
+
topicName?: string;
|
|
794
|
+
mandatory?: boolean;
|
|
795
|
+
obligationType?: number;
|
|
796
|
+
obligationAuthorityId?: number;
|
|
797
|
+
obligationNotes?: string;
|
|
798
|
+
obligationCheckPoint?: boolean;
|
|
799
|
+
description?: string;
|
|
800
|
+
deadlineRecurrent?: boolean;
|
|
801
|
+
deadlineFrequency?: number;
|
|
802
|
+
deadlineFrequencyType?: number;
|
|
803
|
+
deadlineFrequencyEndOfMonth?: boolean;
|
|
804
|
+
deadlineFirstNoticeDays?: number;
|
|
805
|
+
deadlineLastNoticeDays?: number;
|
|
806
|
+
deadlineFirstNoticeDate?: Date;
|
|
807
|
+
deadlineLastNoticeDate?: Date;
|
|
808
|
+
deadlineExpiringDate?: Date;
|
|
809
|
+
planningNoticeDate?: Date;
|
|
810
|
+
planningExpiringDate?: Date;
|
|
811
|
+
planningDate?: Date;
|
|
812
|
+
plannedBy?: string;
|
|
813
|
+
plannerOperatorId?: number;
|
|
814
|
+
planningApplicability?: number;
|
|
815
|
+
planningNotificationAdditionalEmailHeader?: string;
|
|
816
|
+
planningNotificationAdditionalEmails?: string;
|
|
817
|
+
planningNotificationAdditionalEmailsForAlertsOnly?: string;
|
|
818
|
+
planningNamedExecutorOperatorId?: number;
|
|
819
|
+
planningNamedExecutorName?: string;
|
|
820
|
+
planningNamedExecutorManagerOperatorId?: number;
|
|
821
|
+
planningNamedExecutorManagerName?: string;
|
|
822
|
+
planningScheduleNextFromExecutionDate?: boolean;
|
|
823
|
+
planningNotes?: string;
|
|
824
|
+
executorOperatorId?: number;
|
|
825
|
+
executed?: boolean;
|
|
826
|
+
executedBy?: string;
|
|
827
|
+
executionDate?: Date;
|
|
828
|
+
externalReference?: string;
|
|
829
|
+
externalDescription?: string;
|
|
830
|
+
group1?: string;
|
|
831
|
+
group2?: string;
|
|
832
|
+
notes?: string;
|
|
833
|
+
created?: Date;
|
|
834
|
+
createdBy?: string;
|
|
835
|
+
lastUpdated?: Date;
|
|
836
|
+
lastUpdatedBy?: string;
|
|
842
837
|
}
|
|
843
|
-
interface EvolutionComplianceActivitiesAddParams extends EvolutionComplianceActivity {
|
|
844
|
-
|
|
845
|
-
|
|
846
|
-
|
|
847
|
-
|
|
848
|
-
|
|
849
|
-
|
|
850
|
-
|
|
851
|
-
|
|
852
|
-
|
|
853
|
-
|
|
838
|
+
export interface EvolutionComplianceActivitiesAddParams extends EvolutionComplianceActivity {
|
|
839
|
+
context?: EvolutionComplianceContextInfo;
|
|
840
|
+
complianceLawId?: number;
|
|
841
|
+
monitoringLawId?: number;
|
|
842
|
+
enableLawChangesTracking?: boolean;
|
|
843
|
+
enableActivityLawsPopulation?: boolean;
|
|
844
|
+
shouldNotifyPlanningCompletionAgain?: boolean;
|
|
845
|
+
scopes?: number[];
|
|
846
|
+
sites?: number[];
|
|
847
|
+
registers?: number[];
|
|
848
|
+
document?: EvolutionComplianceLawDocumentInfo;
|
|
854
849
|
}
|
|
855
|
-
|
|
856
850
|
/**
|
|
857
851
|
* Builds the Evolution auth HTTP interceptor.
|
|
858
852
|
*
|
|
@@ -906,8 +900,7 @@ interface EvolutionComplianceActivitiesAddParams extends EvolutionComplianceActi
|
|
|
906
900
|
* @param flags - Service flags (e.g. NotifySystemErrors). Defaults to None.
|
|
907
901
|
* @returns An `HttpInterceptorFn` ready to register.
|
|
908
902
|
*/
|
|
909
|
-
declare function evolutionAuthInterceptor(serviceUri: string, flags?: EvolutionServiceFlags): HttpInterceptorFn;
|
|
910
|
-
|
|
903
|
+
export declare function evolutionAuthInterceptor(serviceUri: string, flags?: EvolutionServiceFlags): HttpInterceptorFn;
|
|
911
904
|
/**
|
|
912
905
|
* Authentication for the Evolution back end: password login, e-mailed code confirmation, account
|
|
913
906
|
* switch, logout and session restore. All session state lives in the private {@link CoreService};
|
|
@@ -939,262 +932,260 @@ declare function evolutionAuthInterceptor(serviceUri: string, flags?: EvolutionS
|
|
|
939
932
|
* the provider redirect are not here. A library whose job is to let another application talk to
|
|
940
933
|
* Evolution signs in with a password; an application that offers the other ways in owns them.
|
|
941
934
|
*/
|
|
942
|
-
declare class LoginService {
|
|
943
|
-
|
|
944
|
-
|
|
945
|
-
|
|
946
|
-
|
|
947
|
-
|
|
948
|
-
|
|
949
|
-
|
|
950
|
-
|
|
951
|
-
|
|
952
|
-
|
|
953
|
-
|
|
954
|
-
|
|
955
|
-
|
|
956
|
-
|
|
957
|
-
|
|
958
|
-
|
|
959
|
-
|
|
960
|
-
|
|
961
|
-
|
|
962
|
-
|
|
963
|
-
|
|
964
|
-
|
|
965
|
-
|
|
966
|
-
|
|
967
|
-
|
|
968
|
-
|
|
969
|
-
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
976
|
-
|
|
977
|
-
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
989
|
-
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
993
|
-
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
1020
|
-
|
|
1021
|
-
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
|
|
1026
|
-
|
|
1027
|
-
|
|
1028
|
-
|
|
1029
|
-
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
|
-
|
|
1034
|
-
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
|
|
1038
|
-
|
|
1039
|
-
|
|
1040
|
-
|
|
1041
|
-
|
|
1042
|
-
|
|
1043
|
-
|
|
1044
|
-
|
|
1045
|
-
|
|
1046
|
-
|
|
1047
|
-
|
|
1048
|
-
|
|
1049
|
-
|
|
1050
|
-
|
|
1051
|
-
|
|
1052
|
-
|
|
1053
|
-
|
|
1054
|
-
|
|
1055
|
-
|
|
1056
|
-
|
|
1057
|
-
|
|
1058
|
-
|
|
1059
|
-
|
|
1060
|
-
|
|
1061
|
-
|
|
1062
|
-
|
|
1063
|
-
|
|
1064
|
-
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
935
|
+
export declare class LoginService {
|
|
936
|
+
private readonly httpClient;
|
|
937
|
+
private readonly broadcastService;
|
|
938
|
+
private readonly destroyRef;
|
|
939
|
+
private readonly core;
|
|
940
|
+
private broadcastInitialized;
|
|
941
|
+
/**
|
|
942
|
+
* The address the pending login was started with, kept so {@link confirmIdentity} can send it
|
|
943
|
+
* along with the code.
|
|
944
|
+
*
|
|
945
|
+
* The API stores each verification code under the account it was issued to, so a code alone is
|
|
946
|
+
* not redeemable -- which is what stops a guessed code from opening whatever login happens to be
|
|
947
|
+
* pending.
|
|
948
|
+
*/
|
|
949
|
+
private pendingLoginEmail?;
|
|
950
|
+
/**
|
|
951
|
+
* Gets the base URI of the Evolution back-end service.
|
|
952
|
+
* @returns The configured service URI, or undefined before initialize().
|
|
953
|
+
*/
|
|
954
|
+
get serviceUri(): string | undefined;
|
|
955
|
+
/**
|
|
956
|
+
* Gets the active feature flags.
|
|
957
|
+
* @returns The active {@link EvolutionServiceFlags} bitmask.
|
|
958
|
+
*/
|
|
959
|
+
get flags(): EvolutionServiceFlags;
|
|
960
|
+
/**
|
|
961
|
+
* Gets the current login info.
|
|
962
|
+
* @returns The current {@link EvolutionLoginInfo}, or undefined.
|
|
963
|
+
*/
|
|
964
|
+
get loginInfo(): EvolutionLoginInfo | undefined;
|
|
965
|
+
/**
|
|
966
|
+
* Gets the signed-in account with its licence context.
|
|
967
|
+
* @returns The current {@link EvolutionUserInfo}, or undefined when there is no session.
|
|
968
|
+
*/
|
|
969
|
+
get user(): EvolutionUserInfo | undefined;
|
|
970
|
+
/** `true` when this browser has a session the API has accepted. */
|
|
971
|
+
get loggedIn(): Signal<boolean>;
|
|
972
|
+
/** `true` while an authentication is in flight. */
|
|
973
|
+
get loggingIn(): WritableSignal<boolean>;
|
|
974
|
+
/**
|
|
975
|
+
* Persists the current login info to `localStorage` (delegates to core).
|
|
976
|
+
* @returns void
|
|
977
|
+
*/
|
|
978
|
+
storeContext(): void;
|
|
979
|
+
/**
|
|
980
|
+
* Merges a login result into the stored login info (delegates to core).
|
|
981
|
+
* @param result - The login result returned by the login endpoint.
|
|
982
|
+
* @returns void
|
|
983
|
+
*/
|
|
984
|
+
updateContext(result: EvolutionLoginResult): void;
|
|
985
|
+
/**
|
|
986
|
+
* Resets the in-memory login state and broadcasts logout-completed (delegates to core).
|
|
987
|
+
* @returns void
|
|
988
|
+
*/
|
|
989
|
+
reset(): void;
|
|
990
|
+
/**
|
|
991
|
+
* Clears every trace of the session on this device without asking the API anything
|
|
992
|
+
* (delegates to core). Use {@link logout} for a real sign-out.
|
|
993
|
+
* @returns void
|
|
994
|
+
*/
|
|
995
|
+
clear(): void;
|
|
996
|
+
/**
|
|
997
|
+
* Initialises the service with the back-end URI and optional feature flags, and asks the API — the
|
|
998
|
+
* only party that can read the HttpOnly cookie — whether this browser still holds a session.
|
|
999
|
+
*
|
|
1000
|
+
* Must be called once during application bootstrap, before any other method. What it used to do
|
|
1001
|
+
* on a refresh was announce `LOGIN_COMPLETED` on the strength of a value in local storage; the
|
|
1002
|
+
* auth cookie is HttpOnly and may have expired while that value lived on, so the claim was never
|
|
1003
|
+
* verified and the consumer met the inevitable 401 as "your session just expired" rather than as
|
|
1004
|
+
* a bootstrap that never got off the ground.
|
|
1005
|
+
* @param serviceUri - Base URL of the Evolution service.
|
|
1006
|
+
* @param flags - Bitmask of `EvolutionServiceFlags` (default: `None`).
|
|
1007
|
+
* @returns void
|
|
1008
|
+
*/
|
|
1009
|
+
initialize(serviceUri: string, flags?: EvolutionServiceFlags): void;
|
|
1010
|
+
/**
|
|
1011
|
+
* Dispatches an incoming broadcast message to the appropriate handler.
|
|
1012
|
+
* @param message - The message received from the broadcast channel.
|
|
1013
|
+
* @returns void
|
|
1014
|
+
*/
|
|
1015
|
+
private handleBroadcastMessage;
|
|
1016
|
+
/**
|
|
1017
|
+
* Sends a one-shot ping to the back end to verify connectivity. Errors are swallowed.
|
|
1018
|
+
* @returns void
|
|
1019
|
+
*/
|
|
1020
|
+
ping(): void;
|
|
1021
|
+
/**
|
|
1022
|
+
* Authenticates the user with an e-mail address and a password, the only credentials
|
|
1023
|
+
* `POST /session/login` accepts.
|
|
1024
|
+
*
|
|
1025
|
+
* On success the session cookie is issued and the context stored, unless the API answers
|
|
1026
|
+
* `requiresMfa`: the device is not a trusted one, a six-digit code has been e-mailed and nothing
|
|
1027
|
+
* about the account is disclosed until {@link confirmIdentity} redeems it.
|
|
1028
|
+
*
|
|
1029
|
+
* A failure is no longer a `200 OK` carrying `success: false`. Wrong credentials come back as a
|
|
1030
|
+
* real 4xx with the message in the envelope, so the `next` branch of the caller is never reached.
|
|
1031
|
+
* @param email - The user's e-mail address.
|
|
1032
|
+
* @param password - The user's password.
|
|
1033
|
+
* @returns An observable that emits the `ApiResult<EvolutionLoginResult>`.
|
|
1034
|
+
*/
|
|
1035
|
+
login(email?: string, password?: string): Observable<ApiResult<EvolutionLoginResult>>;
|
|
1036
|
+
/**
|
|
1037
|
+
* Confirms a pending e-mailed code challenge, which establishes the session and marks this device
|
|
1038
|
+
* as trusted: the next sign-in from it will not ask for a code again.
|
|
1039
|
+
*
|
|
1040
|
+
* The address travels with the code, in the body. The API stores each code under the account it
|
|
1041
|
+
* was issued to, so naming the account is part of redeeming it; and a code in the body is a code
|
|
1042
|
+
* that stays out of the URL, where `POST /login/confirm/{code}` left it for the access logs and
|
|
1043
|
+
* the browser history to keep.
|
|
1044
|
+
* @param code - The one-time confirmation code provided to the user.
|
|
1045
|
+
* @param email - The address the code was sent to; defaults to the one the pending login started with.
|
|
1046
|
+
* @returns An observable that emits the `ApiResult<EvolutionLoginResult>`.
|
|
1047
|
+
*/
|
|
1048
|
+
confirmIdentity(code: string, email?: string): Observable<ApiResult<EvolutionLoginResult>>;
|
|
1049
|
+
/**
|
|
1050
|
+
* Asks the API whether this browser holds a live session, without ever failing with a 401: the
|
|
1051
|
+
* route is anonymous and answers `connected: false` to a caller with no session. This is the one
|
|
1052
|
+
* honest way to know the link state -- the auth cookie is HttpOnly and belongs to the API's host,
|
|
1053
|
+
* so it cannot be read from here, and its presence would prove nothing anyway, since the session
|
|
1054
|
+
* also lives server-side and may have been revoked or evicted.
|
|
1055
|
+
* @returns An observable that emits the `ApiResult<EvolutionSessionStatus>`.
|
|
1056
|
+
*/
|
|
1057
|
+
status(): Observable<ApiResult<EvolutionSessionStatus>>;
|
|
1058
|
+
/**
|
|
1059
|
+
* Reads the current session from the server, which resolves it from the auth cookie's claims.
|
|
1060
|
+
* Used to restore the state after a page refresh instead of trusting what local storage holds.
|
|
1061
|
+
*
|
|
1062
|
+
* The route answers with the same `EvolutionLoginResult` a login answers with, built by the same
|
|
1063
|
+
* `ResolveSignInContextAsync`, so a restored session and a fresh one are identical by
|
|
1064
|
+
* construction.
|
|
1065
|
+
* @returns An observable that emits the `ApiResult<EvolutionLoginResult>`.
|
|
1066
|
+
*/
|
|
1067
|
+
me(): Observable<ApiResult<EvolutionLoginResult>>;
|
|
1068
|
+
/**
|
|
1069
|
+
* Asks `/session/status` whether this browser holds a live session, and hydrates the context
|
|
1070
|
+
* through {@link me} when it does.
|
|
1071
|
+
*
|
|
1072
|
+
* The probe is silent by construction: `/session/status` never answers 401, so a visitor who
|
|
1073
|
+
* never signed in -- or a cookie whose session has died -- comes back as `connected: false` with
|
|
1074
|
+
* no error broadcast and no dialog. Only then is the stale stored context cleared, so the
|
|
1075
|
+
* `loggedIn` signal tells the truth at every bootstrap.
|
|
1076
|
+
*
|
|
1077
|
+
* Nothing is cleared on a transport failure, and that is deliberate: an unreachable API is not
|
|
1078
|
+
* proof of a dead session -- the proxy may have answered 502, the device may be offline -- and
|
|
1079
|
+
* clearing on any of those would sign the user out with a perfectly valid cookie.
|
|
1080
|
+
* @returns void
|
|
1081
|
+
*/
|
|
1082
|
+
private restoreSession;
|
|
1083
|
+
/**
|
|
1084
|
+
* Switches this tab to another account of the same person -- same address, same stored password
|
|
1085
|
+
* -- without re-entering credentials.
|
|
1086
|
+
*
|
|
1087
|
+
* The account being left stays open: a switch used to close its session, because each account had
|
|
1088
|
+
* a cookie of its own, and they now share one cookie holding several. What changes here is only
|
|
1089
|
+
* which account THIS tab names on its requests, which {@link completeLogin} records.
|
|
1090
|
+
* @param id - The user ID to switch to.
|
|
1091
|
+
* @returns An observable that emits the `ApiResult<EvolutionLoginResult>`.
|
|
1092
|
+
*/
|
|
1093
|
+
loginSwitch(id: number): Observable<ApiResult<EvolutionLoginResult>>;
|
|
1094
|
+
/**
|
|
1095
|
+
* Signs out: closes this browser's session on the API and clears the local state whatever the
|
|
1096
|
+
* answer, since there is nothing useful to do with a logout that failed.
|
|
1097
|
+
*
|
|
1098
|
+
* `forget` no longer means "drop the stored credentials" -- there are none to drop. It means
|
|
1099
|
+
* "stop trusting this device", that is clear the MFA cookie, so that the next sign-in from here
|
|
1100
|
+
* is challenged with an e-mailed code again. It also closes one session and not all of them: an
|
|
1101
|
+
* account may hold one per front end, and signing out of this browser must not sign the person
|
|
1102
|
+
* out of their phone.
|
|
1103
|
+
* @param forget - When `true`, the device stops being a trusted one. Defaults to `false`.
|
|
1104
|
+
* @returns An observable that emits `ApiResult<unknown>`.
|
|
1105
|
+
*/
|
|
1106
|
+
logout(forget?: boolean): Observable<ApiResult<unknown>>;
|
|
1107
|
+
/**
|
|
1108
|
+
* Finalises a login, a code confirmation, an account switch or a session restore: stores the
|
|
1109
|
+
* context, raises the logged-in signal, records which account this tab is working as and
|
|
1110
|
+
* optionally announces `LOGIN_COMPLETED`.
|
|
1111
|
+
*
|
|
1112
|
+
* `loggedIn` is raised unconditionally. It used to be `!result.context?.isTemporary`, and
|
|
1113
|
+
* `isTemporary` was always false -- it is `[NotMapped]` on the API and never filled -- so the
|
|
1114
|
+
* condition never did anything. An expired password is reported by `requiresPasswordChange` and
|
|
1115
|
+
* does not mean there is no session: the cookie has been issued, and it is what the password
|
|
1116
|
+
* change itself travels on.
|
|
1117
|
+
*
|
|
1118
|
+
* `loggingIn` is deliberately left alone. Whoever raised it lowers it -- {@link restoreSession}
|
|
1119
|
+
* for a refresh, the host application for its own sign-in flow -- because lowering it here would
|
|
1120
|
+
* drop the host's splash the instant the response arrived, before anything was on screen.
|
|
1121
|
+
* @param result - The login result payload from the server.
|
|
1122
|
+
* @param notify - Whether to broadcast `LOGIN_COMPLETED`. Defaults to `true`.
|
|
1123
|
+
* @returns void
|
|
1124
|
+
*/
|
|
1125
|
+
private completeLogin;
|
|
1126
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LoginService, never>;
|
|
1127
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1135
1128
|
}
|
|
1136
|
-
|
|
1137
1129
|
/**
|
|
1138
1130
|
* Compliance endpoints: taxonomy & groups, context, registers, laws and
|
|
1139
1131
|
* activities (the `Context` / `Registers` / `Laws` / `Activities` sections,
|
|
1140
1132
|
* plus the general taxonomy/groups lookups). Pure HTTP; injects the private
|
|
1141
1133
|
* {@link CoreService} only to read the back-end URI.
|
|
1142
1134
|
*/
|
|
1143
|
-
declare class ComplianceService {
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1135
|
+
export declare class ComplianceService {
|
|
1136
|
+
private readonly httpClient;
|
|
1137
|
+
private readonly core;
|
|
1138
|
+
/**
|
|
1139
|
+
* Retrieves the taxonomy tree from the back end.
|
|
1140
|
+
* @returns An observable that emits `ApiResult<FolderTree>`.
|
|
1141
|
+
*/
|
|
1142
|
+
getTaxonomy(): import("rxjs").Observable<ApiResult<FolderTree>>;
|
|
1143
|
+
/**
|
|
1144
|
+
* Retrieves the compliance groups for a register.
|
|
1145
|
+
* @param group - Group index to retrieve (default: `1`).
|
|
1146
|
+
* @param register - Optional register ID to scope the query.
|
|
1147
|
+
* @returns An observable that emits `ApiResult<string[]>`.
|
|
1148
|
+
*/
|
|
1149
|
+
getGroups(group?: number, register?: number): import("rxjs").Observable<ApiResult<string[]>>;
|
|
1150
|
+
/**
|
|
1151
|
+
* Sends a context-change request to the back end.
|
|
1152
|
+
* @param params - The context model describing the desired switch.
|
|
1153
|
+
* @returns An observable that emits `ApiResult<EvolutionChangeContextResultModel>`.
|
|
1154
|
+
*/
|
|
1155
|
+
changeContext(params: EvolutionChangeContextModel): import("rxjs").Observable<ApiResult<EvolutionChangeContextResultModel>>;
|
|
1156
|
+
/**
|
|
1157
|
+
* Retrieves a single compliance register by ID.
|
|
1158
|
+
* @param id - The register ID.
|
|
1159
|
+
* @returns An observable that emits `ApiResult<EvolutionComplianceRegister>`.
|
|
1160
|
+
*/
|
|
1161
|
+
getRegister(id: number): import("rxjs").Observable<ApiResult<EvolutionComplianceRegister>>;
|
|
1162
|
+
/**
|
|
1163
|
+
* Collects register profiles matching the given query parameters.
|
|
1164
|
+
* @param params - Query parameters defining the filter criteria.
|
|
1165
|
+
* @returns An observable that emits `ApiResult<EvolutionComplianceRegisterProfile[]>`.
|
|
1166
|
+
*/
|
|
1167
|
+
collectRegisterProfiles(params: EvolutionQueryRegisterProfilesModel): import("rxjs").Observable<ApiResult<EvolutionComplianceRegisterProfile[]>>;
|
|
1168
|
+
/**
|
|
1169
|
+
* Adds one or more compliance laws.
|
|
1170
|
+
* @param params - The laws to add.
|
|
1171
|
+
* @returns An observable that emits `ApiResult<EvolutionComplianceLaw[]>`.
|
|
1172
|
+
*/
|
|
1173
|
+
addLaws(params: EvolutionComplianceLawsAddParams): import("rxjs").Observable<ApiResult<EvolutionComplianceLaw[]>>;
|
|
1174
|
+
/**
|
|
1175
|
+
* Exports compliance laws in the format expected by the server.
|
|
1176
|
+
* @param params - Export parameters (model shape is server-defined).
|
|
1177
|
+
* @returns An observable that emits the binary blob response.
|
|
1178
|
+
*/
|
|
1179
|
+
exportLaws(params: any): import("rxjs").Observable<Blob>;
|
|
1180
|
+
/**
|
|
1181
|
+
* Adds one or more compliance activities.
|
|
1182
|
+
* @param params - The activities to add.
|
|
1183
|
+
* @returns An observable that emits `ApiResult<EvolutionComplianceActivity>`.
|
|
1184
|
+
*/
|
|
1185
|
+
addActivities(params: EvolutionComplianceActivitiesAddParams): import("rxjs").Observable<ApiResult<EvolutionComplianceActivity>>;
|
|
1186
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ComplianceService, never>;
|
|
1187
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1196
1188
|
}
|
|
1197
|
-
|
|
1198
1189
|
/**
|
|
1199
1190
|
* The `/account/*` endpoints: the links a user account carries, its settings, its password and the
|
|
1200
1191
|
* licence behind it.
|
|
@@ -1204,53 +1195,52 @@ declare class ComplianceService {
|
|
|
1204
1195
|
* the API, which reads the account from the session -- it used to be taken at face value, with no
|
|
1205
1196
|
* authorization at all, so any integer returned somebody else's company and expiry.
|
|
1206
1197
|
*/
|
|
1207
|
-
declare class AccountService {
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1198
|
+
export declare class AccountService {
|
|
1199
|
+
private readonly httpClient;
|
|
1200
|
+
private readonly core;
|
|
1201
|
+
/**
|
|
1202
|
+
* Persists a user link on the server.
|
|
1203
|
+
* @param item - The user link to save.
|
|
1204
|
+
* @returns An observable that emits `ApiResult<boolean>`.
|
|
1205
|
+
*/
|
|
1206
|
+
saveLink(item: EvolutionUserLink): import("rxjs").Observable<ApiResult<boolean>>;
|
|
1207
|
+
/**
|
|
1208
|
+
* Deletes a user link from the server.
|
|
1209
|
+
* @param item - The user link to delete.
|
|
1210
|
+
* @returns An observable that emits `ApiResult<boolean>`.
|
|
1211
|
+
*/
|
|
1212
|
+
deleteLink(item: EvolutionUserLink): import("rxjs").Observable<ApiResult<boolean>>;
|
|
1213
|
+
/**
|
|
1214
|
+
* Persists updated settings for the signed-in account (dashboard, flags).
|
|
1215
|
+
* @param params - The settings to save.
|
|
1216
|
+
* @returns An observable that emits `ApiResult<boolean>`.
|
|
1217
|
+
*/
|
|
1218
|
+
updateSettings(params: EvolutionUpdateUserSettingsModel): import("rxjs").Observable<ApiResult<boolean>>;
|
|
1219
|
+
/**
|
|
1220
|
+
* Changes a password: the signed-in account's own, with `oldPassword`, or somebody else's when an
|
|
1221
|
+
* administrator names it.
|
|
1222
|
+
* @param params - The password change to apply.
|
|
1223
|
+
* @returns An observable that emits `ApiResult<boolean>`.
|
|
1224
|
+
*/
|
|
1225
|
+
resetPassword(params: EvolutionResetPasswordModel): import("rxjs").Observable<ApiResult<boolean>>;
|
|
1226
|
+
/**
|
|
1227
|
+
* Starts a password recovery, which mails a reset link to the given address.
|
|
1228
|
+
* @param params - The address to recover, with the reCAPTCHA token that guards the route.
|
|
1229
|
+
* @returns An observable that emits `ApiResult<boolean>`.
|
|
1230
|
+
*/
|
|
1231
|
+
recoverPassword(params: EvolutionRecoverPasswordModel): import("rxjs").Observable<ApiResult<boolean>>;
|
|
1232
|
+
/**
|
|
1233
|
+
* Re-reads the licence of the signed-in account: company, expiry, quotas and allowed modules.
|
|
1234
|
+
*
|
|
1235
|
+
* Does NOT update the stored context: what the caller does with a fresh licence -- refresh a
|
|
1236
|
+
* settings page, recompute a quota, store it -- is the caller's business, and a service that
|
|
1237
|
+
* quietly rewrote the session context under it would be doing more than it was asked.
|
|
1238
|
+
* @returns An observable that emits `ApiResult<EvolutionUserInfo>`.
|
|
1239
|
+
*/
|
|
1240
|
+
refreshLicence(): import("rxjs").Observable<ApiResult<EvolutionUserInfo>>;
|
|
1241
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AccountService, never>;
|
|
1242
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1252
1243
|
}
|
|
1253
|
-
|
|
1254
1244
|
/**
|
|
1255
1245
|
* Public entry point for the Evolution compliance module.
|
|
1256
1246
|
*
|
|
@@ -1265,59 +1255,56 @@ declare class AccountService {
|
|
|
1265
1255
|
* `initialize` and `ping` — it intentionally does NOT flatten the sub-service
|
|
1266
1256
|
* methods (use the namespaces for those).
|
|
1267
1257
|
*/
|
|
1268
|
-
declare class EvolutionService {
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
}
|
|
1321
|
-
|
|
1322
|
-
export { AccountService, ComplianceService, ERPComplianceActivityState, ERPComplianceLawOrigin, ERPComplianceLawState, ERPComplianceLawsSelectionType, ERPComplianceNotificationLimit, ERPComplianceProfileFlags, ERPComplianceProfileRole, ERPComplianceRegisterNotificationType, ERPComplianceRegisterSiteImportOptions, ERPComplianceScope, ERPExportFormat, ERPExportPart, ERPExportSource, ERPExportType, ERPModule, ERPPlace, ERPPlacePermission, ERPRecurrenceFrequencyType, EVOLUTION_ACTIVE_ACCOUNT_KEY, EvolutionComplianceActivityStates, EvolutionComplianceContextInfo, EvolutionComplianceLawChangeStates, EvolutionComplianceLawOrigins, EvolutionComplianceLawStates, EvolutionComplianceNotificationLimits, EvolutionComplianceNotifications, EvolutionComplianceObligationAuthorities, EvolutionComplianceObligationTypes, EvolutionComplianceProfileFlags, EvolutionComplianceProfileRoles, EvolutionComplianceScopes, EvolutionMessages, EvolutionRecurrenceFrequencyTypes, EvolutionService, EvolutionServiceFlags, LoginService, evolutionAuthInterceptor };
|
|
1323
|
-
export type { ComplianceRegisterUsersResultModel, EvolutionChangeContextModel, EvolutionChangeContextResultModel, EvolutionComplianceActivitiesAddParams, EvolutionComplianceActivity, EvolutionComplianceLaswExportParams, EvolutionComplianceLaw, EvolutionComplianceLawDocumentInfo, EvolutionComplianceLawReference, EvolutionComplianceLawsAddParams, EvolutionComplianceRegister, EvolutionComplianceRegisterProfile, EvolutionComplianceRegisterSite, EvolutionContextInfo, EvolutionExportModel, EvolutionLicenceModuleInfo, EvolutionLoginInfo, EvolutionLoginResult, EvolutionPermission, EvolutionPlacePermission, EvolutionPlaceable, EvolutionQueryRegisterProfilesModel, EvolutionRecoverPasswordModel, EvolutionRegisterProfileSiteInfo, EvolutionRegisterProfileUserInfo, EvolutionResetPasswordModel, EvolutionSessionStatus, EvolutionUpdateUserSettingsModel, EvolutionUserInfo, EvolutionUserLink, EvolutionUserModuleInfo };
|
|
1258
|
+
export declare class EvolutionService {
|
|
1259
|
+
/** Private: never exposed to consumers. */
|
|
1260
|
+
private readonly core;
|
|
1261
|
+
/** Authentication / session lifecycle sub-service. */
|
|
1262
|
+
readonly session: LoginService;
|
|
1263
|
+
/** Compliance endpoints: taxonomy, groups, context, registers, laws, activities. */
|
|
1264
|
+
readonly compliance: ComplianceService;
|
|
1265
|
+
/** Account endpoints: user links management. */
|
|
1266
|
+
readonly account: AccountService;
|
|
1267
|
+
/**
|
|
1268
|
+
* Gets the base URI of the Evolution back-end service.
|
|
1269
|
+
* @returns The configured service URI, or undefined before initialize().
|
|
1270
|
+
*/
|
|
1271
|
+
get serviceUri(): string | undefined;
|
|
1272
|
+
/**
|
|
1273
|
+
* Gets the active feature flags.
|
|
1274
|
+
* @returns The active {@link EvolutionServiceFlags} bitmask.
|
|
1275
|
+
*/
|
|
1276
|
+
get flags(): EvolutionServiceFlags;
|
|
1277
|
+
/**
|
|
1278
|
+
* Gets the current login info.
|
|
1279
|
+
* @returns The current {@link EvolutionLoginInfo}, or undefined.
|
|
1280
|
+
*/
|
|
1281
|
+
get loginInfo(): EvolutionLoginInfo | undefined;
|
|
1282
|
+
/**
|
|
1283
|
+
* Gets the signed-in account with its licence context.
|
|
1284
|
+
* @returns The current {@link EvolutionUserInfo}, or undefined when there is no session.
|
|
1285
|
+
*/
|
|
1286
|
+
get user(): EvolutionUserInfo | undefined;
|
|
1287
|
+
/**
|
|
1288
|
+
* `true` when this browser has a session the API has accepted. It starts from the stored context
|
|
1289
|
+
* and is settled -- raised or cleared -- by the silent `/session/status` probe {@link initialize}
|
|
1290
|
+
* makes, which is the one honest way to read a state that lives in an HttpOnly cookie plus a
|
|
1291
|
+
* server-side lease. This signal IS the link state: bind it, do not poll it.
|
|
1292
|
+
*/
|
|
1293
|
+
get loggedIn(): Signal<boolean>;
|
|
1294
|
+
/** `true` while an authentication is in flight. */
|
|
1295
|
+
get loggingIn(): WritableSignal<boolean>;
|
|
1296
|
+
/**
|
|
1297
|
+
* Initialises the service with the back-end URI and optional feature flags.
|
|
1298
|
+
* @param serviceUri - Base URL of the Evolution service.
|
|
1299
|
+
* @param flags - Bitmask of `EvolutionServiceFlags` (default: `None`).
|
|
1300
|
+
* @returns void
|
|
1301
|
+
*/
|
|
1302
|
+
initialize(serviceUri: string, flags?: EvolutionServiceFlags): void;
|
|
1303
|
+
/**
|
|
1304
|
+
* Sends a one-shot ping to the back end to verify connectivity.
|
|
1305
|
+
* @returns void
|
|
1306
|
+
*/
|
|
1307
|
+
ping(): void;
|
|
1308
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EvolutionService, never>;
|
|
1309
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<any>;
|
|
1310
|
+
}
|