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