@arsedizioni/ars-utils 22.6.86 → 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,212 +1,206 @@
1
- import { LoginOAuthType, LoginResult, ApiResult } from '@arsedizioni/ars-utils/core';
2
- import * as rxjs from 'rxjs';
3
- import * as i0 from '@angular/core';
4
- import { Signal } from '@angular/core';
5
-
6
- declare const SupportMessages: {
7
- /**
8
- * Messages
9
- */
10
- ERROR: string;
11
- /**
12
- * The API is not answering.
13
- *
14
- * Nothing in this library emits it: Support has no interceptor of its own — its services reach
15
- * `HttpClient` directly — so the condition is detected by the host application, where its
16
- * requests are made. The constant lives here so that the three modules name the same event the
17
- * same way and one handler can serve them all.
18
- */
19
- ERROR_UNAVAILABLE: string;
20
- LOGIN_CHANGED: string;
21
- LOGIN_COMPLETED: string;
22
- LOGOUT_COMPLETED: string;
23
- LOGIN_PENDING: string;
24
- LOGIN_FAILED: string;
25
- LOGOUT: string;
26
- NOTIFICATION_READ: string;
1
+ import { ApiResult, LoginOAuthType, LoginResult } from "@arsedizioni/ars-utils/core";
2
+ import * as i0 from "@angular/core";
3
+ import { Signal } from "@angular/core";
4
+ export declare const SupportMessages: {
5
+ /**
6
+ * Messages
7
+ */
8
+ ERROR: string;
9
+ /**
10
+ * The API is not answering.
11
+ *
12
+ * Nothing in this library emits it: Support has no interceptor of its own — its services reach
13
+ * `HttpClient` directly — so the condition is detected by the host application, where its
14
+ * requests are made. The constant lives here so that the three modules name the same event the
15
+ * same way and one handler can serve them all.
16
+ */
17
+ ERROR_UNAVAILABLE: string;
18
+ LOGIN_CHANGED: string;
19
+ LOGIN_COMPLETED: string;
20
+ LOGOUT_COMPLETED: string;
21
+ LOGIN_PENDING: string;
22
+ LOGIN_FAILED: string;
23
+ LOGOUT: string;
24
+ NOTIFICATION_READ: string;
27
25
  };
28
-
29
- interface SupportUserInfo {
30
- id: number;
31
- groups?: number;
32
- groupNames?: string;
33
- displayName?: string;
34
- dashboard?: string;
35
- sessionId?: string;
36
- email?: string;
37
- customerId?: number;
38
- companyName?: string;
39
- role: number;
40
- scopes?: string[];
41
- sla: number;
42
- isCommercial?: boolean;
43
- isAdministrator: boolean;
44
- isGuest: boolean;
45
- isUser: boolean;
46
- isOperator: boolean;
47
- isTemporary: boolean;
26
+ export interface SupportUserInfo {
27
+ id: number;
28
+ groups?: number;
29
+ groupNames?: string;
30
+ displayName?: string;
31
+ dashboard?: string;
32
+ sessionId?: string;
33
+ email?: string;
34
+ customerId?: number;
35
+ companyName?: string;
36
+ role: number;
37
+ scopes?: string[];
38
+ sla: number;
39
+ isCommercial?: boolean;
40
+ isAdministrator: boolean;
41
+ isGuest: boolean;
42
+ isUser: boolean;
43
+ isOperator: boolean;
44
+ isTemporary: boolean;
48
45
  }
49
- interface SupportLoginResult extends LoginResult<SupportUserInfo> {
46
+ export interface SupportLoginResult extends LoginResult<SupportUserInfo> {}
47
+ export interface SupportLoginInfo {
48
+ context: SupportUserInfo;
49
+ oauth?: LoginOAuthType;
50
+ remember?: boolean;
50
51
  }
51
- interface SupportLoginInfo {
52
- context: SupportUserInfo;
53
- oauth?: LoginOAuthType;
54
- remember?: boolean;
52
+ export interface SupportNotificationsSearchParams {
53
+ any?: string;
54
+ products?: number;
55
+ productModules?: number;
56
+ first?: number;
57
+ count?: number;
55
58
  }
56
- interface SupportNotificationsSearchParams {
57
- any?: string;
58
- products?: number;
59
- productModules?: number;
60
- first?: number;
61
- count?: number;
59
+ export interface SupportNotificationsSearchResult {
60
+ interval?: string;
61
+ items?: SupportNotificationInfo[];
62
+ total?: number;
62
63
  }
63
- interface SupportNotificationsSearchResult {
64
- interval?: string;
65
- items?: SupportNotificationInfo[];
66
- total?: number;
64
+ export interface Notification {
65
+ id: number;
66
+ products: number;
67
+ productModules?: number;
68
+ publishingDate?: Date;
69
+ title: string;
70
+ text: string;
71
+ state: number;
72
+ created: Date;
73
+ createdBy: string;
74
+ lastUpdated?: Date;
75
+ lastUpdatedBy?: string;
76
+ productNames?: string;
77
+ productModuleNames?: string;
78
+ isPublished: boolean;
79
+ isInternal: boolean;
80
+ stateName: string;
81
+ documents?: SupportDocumentInfo[];
82
+ isRead: boolean;
83
+ totalRead: number;
67
84
  }
68
- interface Notification {
69
- id: number;
70
- products: number;
71
- productModules?: number;
72
- publishingDate?: Date;
73
- title: string;
74
- text: string;
75
- state: number;
76
- created: Date;
77
- createdBy: string;
78
- lastUpdated?: Date;
79
- lastUpdatedBy?: string;
80
- productNames?: string;
81
- productModuleNames?: string;
82
- isPublished: boolean;
83
- isInternal: boolean;
84
- stateName: string;
85
- documents?: SupportDocumentInfo[];
86
- isRead: boolean;
87
- totalRead: number;
85
+ export interface SupportDocumentInfo {
86
+ id?: number;
87
+ origin?: number;
88
+ ownerId?: number;
89
+ name?: string;
90
+ description?: string;
91
+ size?: number;
92
+ binaryId?: number;
93
+ url?: string;
94
+ customerId?: number;
95
+ created?: Date;
96
+ createdBy?: string;
97
+ lastUpdated?: Date;
98
+ lastUpdatedBy?: string;
99
+ isBinary?: boolean;
88
100
  }
89
- interface SupportDocumentInfo {
90
- id?: number;
91
- origin?: number;
92
- ownerId?: number;
93
- name?: string;
94
- description?: string;
95
- size?: number;
96
- binaryId?: number;
97
- url?: string;
98
- customerId?: number;
99
- created?: Date;
100
- createdBy?: string;
101
- lastUpdated?: Date;
102
- lastUpdatedBy?: string;
103
- isBinary?: boolean;
101
+ export interface SupportNotificationInfo {
102
+ id: number;
103
+ products?: number;
104
+ productModules?: number;
105
+ publishingDate?: Date;
106
+ title: string;
107
+ text: string;
108
+ state: number;
109
+ created: Date;
110
+ createdBy: string;
111
+ lastUpdated?: Date;
112
+ lastUpdatedBy?: string;
113
+ productNames?: string;
114
+ productModuleNames?: string;
115
+ isPublished: boolean;
116
+ isInternal: boolean;
117
+ stateName: string;
118
+ documents?: SupportDocumentInfo[];
119
+ isRead: boolean;
120
+ totalRead: number;
121
+ isMenuOpen?: boolean;
122
+ isOver?: boolean;
104
123
  }
105
- interface SupportNotificationInfo {
106
- id: number;
107
- products?: number;
108
- productModules?: number;
109
- publishingDate?: Date;
110
- title: string;
111
- text: string;
112
- state: number;
113
- created: Date;
114
- createdBy: string;
115
- lastUpdated?: Date;
116
- lastUpdatedBy?: string;
117
- productNames?: string;
118
- productModuleNames?: string;
119
- isPublished: boolean;
120
- isInternal: boolean;
121
- stateName: string;
122
- documents?: SupportDocumentInfo[];
123
- isRead: boolean;
124
- totalRead: number;
125
- isMenuOpen?: boolean;
126
- isOver?: boolean;
124
+ export interface SupportNotificationsMarkParams {
125
+ ids: number[];
126
+ unmark: boolean;
127
127
  }
128
- interface SupportNotificationsMarkParams {
129
- ids: number[];
130
- unmark: boolean;
128
+ export declare enum SupportProduct {
129
+ None = 0,
130
+ Clipper = 1,
131
+ Evolution = 2,
132
+ DGInfo = 4
131
133
  }
132
- declare enum SupportProduct {
133
- None = 0,
134
- Clipper = 1,
135
- Evolution = 2,
136
- DGInfo = 4
134
+ export declare enum SupportProductModule {
135
+ None = 0,
136
+ EvoFormazione = 1,
137
+ EvoDPI = 2,
138
+ EvoSorveglianzaSanitaria = 4,
139
+ EvoRegistroEScadenzario = 8,
140
+ EvoAttrezzatureEImpianti = 16,
141
+ EvoMonitoraggio = 32,
142
+ EvoBollettino = 64,
143
+ DgiADR = 128,
144
+ DgiRID = 256,
145
+ DgiIMDG = 512,
146
+ DgiCLP = 1024
137
147
  }
138
- declare enum SupportProductModule {
139
- None = 0,
140
- EvoFormazione = 1,
141
- EvoDPI = 2,
142
- EvoSorveglianzaSanitaria = 4,
143
- EvoRegistroEScadenzario = 8,
144
- EvoAttrezzatureEImpianti = 16,
145
- EvoMonitoraggio = 32,
146
- EvoBollettino = 64,
147
- DgiADR = 128,
148
- DgiRID = 256,
149
- DgiIMDG = 512,
150
- DgiCLP = 1024
151
- }
152
-
153
148
  /**
154
149
  * Notifications service for the Support module: the unread-count tracking,
155
150
  * the notification queries and document download, plus the session bootstrap
156
151
  * (the `NOTIFICATION_READ` broadcast subscription). State lives in the
157
152
  * private {@link CoreService}.
158
153
  */
159
- declare class NotificationsService {
160
- private readonly httpClient;
161
- private readonly broadcastService;
162
- private readonly destroyRef;
163
- private readonly core;
164
- private broadcastInitialized;
165
- /**
166
- * Initialises the service with the back-end URI and the products/modules it should track.
167
- * Must be called once during application bootstrap before any other method.
168
- * @param serviceUri - Base URL of the support service.
169
- * @param products - Bitmask of `SupportProduct` values to scope notifications (default: `None`).
170
- * @param productModules - Bitmask of `SupportProductModule` values to scope notifications (default: `None`).
171
- * @returns void
172
- */
173
- initialize(serviceUri: string, products?: SupportProduct, productModules?: SupportProductModule): void;
174
- /**
175
- * Fetches the count of unread notifications from the server and updates
176
- * the `unreadNotifications` signal. Sets `undefined` when the count is zero.
177
- * @returns void
178
- */
179
- countUnreadNotifications(): void;
180
- /**
181
- * Queries the notification list using the supplied filter parameters.
182
- * The `products` and `productModules` fields are automatically populated
183
- * from the service configuration before the request is sent.
184
- * @param params - Search parameters for the notification query.
185
- * @returns An observable that emits `ApiResult<SupportNotificationsSearchResult>`.
186
- */
187
- queryNotifications(params: SupportNotificationsSearchParams): rxjs.Observable<ApiResult<SupportNotificationsSearchResult>>;
188
- /**
189
- * Retrieves a single notification by id.
190
- * @param id - The notification id.
191
- * @returns An observable that emits `ApiResult<SupportNotificationInfo>`.
192
- */
193
- getNotification(id: number): rxjs.Observable<ApiResult<SupportNotificationInfo>>;
194
- /**
195
- * Marks one or more notifications as read.
196
- * @param params - Parameters identifying the notifications to mark.
197
- * @returns An observable that emits `ApiResult<boolean>`.
198
- */
199
- markNotifications(params: SupportNotificationsMarkParams): rxjs.Observable<ApiResult<boolean>>;
200
- /**
201
- * Downloads a notification attachment as a binary blob.
202
- * @param documentId - The id of the document to download.
203
- * @returns An observable that emits the binary blob response.
204
- */
205
- downloadNotificationDocument(documentId: number): rxjs.Observable<Blob>;
206
- static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsService, never>;
207
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
154
+ export declare class NotificationsService {
155
+ private readonly httpClient;
156
+ private readonly broadcastService;
157
+ private readonly destroyRef;
158
+ private readonly core;
159
+ private broadcastInitialized;
160
+ /**
161
+ * Initialises the service with the back-end URI and the products/modules it should track.
162
+ * Must be called once during application bootstrap before any other method.
163
+ * @param serviceUri - Base URL of the support service.
164
+ * @param products - Bitmask of `SupportProduct` values to scope notifications (default: `None`).
165
+ * @param productModules - Bitmask of `SupportProductModule` values to scope notifications (default: `None`).
166
+ * @returns void
167
+ */
168
+ initialize(serviceUri: string, products?: SupportProduct, productModules?: SupportProductModule): void;
169
+ /**
170
+ * Fetches the count of unread notifications from the server and updates
171
+ * the `unreadNotifications` signal. Sets `undefined` when the count is zero.
172
+ * @returns void
173
+ */
174
+ countUnreadNotifications(): void;
175
+ /**
176
+ * Queries the notification list using the supplied filter parameters.
177
+ * The `products` and `productModules` fields are automatically populated
178
+ * from the service configuration before the request is sent.
179
+ * @param params - Search parameters for the notification query.
180
+ * @returns An observable that emits `ApiResult<SupportNotificationsSearchResult>`.
181
+ */
182
+ queryNotifications(params: SupportNotificationsSearchParams): import("rxjs").Observable<ApiResult<SupportNotificationsSearchResult>>;
183
+ /**
184
+ * Retrieves a single notification by id.
185
+ * @param id - The notification id.
186
+ * @returns An observable that emits `ApiResult<SupportNotificationInfo>`.
187
+ */
188
+ getNotification(id: number): import("rxjs").Observable<ApiResult<SupportNotificationInfo>>;
189
+ /**
190
+ * Marks one or more notifications as read.
191
+ * @param params - Parameters identifying the notifications to mark.
192
+ * @returns An observable that emits `ApiResult<boolean>`.
193
+ */
194
+ markNotifications(params: SupportNotificationsMarkParams): import("rxjs").Observable<ApiResult<boolean>>;
195
+ /**
196
+ * Downloads a notification attachment as a binary blob.
197
+ * @param documentId - The id of the document to download.
198
+ * @returns An observable that emits the binary blob response.
199
+ */
200
+ downloadNotificationDocument(documentId: number): import("rxjs").Observable<Blob>;
201
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationsService, never>;
202
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
208
203
  }
209
-
210
204
  /**
211
205
  * Public entry point for the Support module.
212
206
  *
@@ -217,46 +211,43 @@ declare class NotificationsService {
217
211
  * The facade itself exposes ONLY the re-published core state plus `initialize`
218
212
  * — it intentionally does NOT flatten the sub-service methods.
219
213
  */
220
- declare class SupportService {
221
- /** Private: never exposed to consumers. */
222
- private readonly core;
223
- /** Notifications sub-service (unread count, queries, mark, downloads). */
224
- readonly notifications: NotificationsService;
225
- /**
226
- * Gets the base URI of the Support back-end service.
227
- * @returns The configured service URI, or undefined before initialize().
228
- */
229
- get serviceUri(): string | undefined;
230
- /**
231
- * Gets the products bitmask used to scope notifications.
232
- * @returns The active {@link SupportProduct} bitmask.
233
- */
234
- get products(): SupportProduct;
235
- /**
236
- * Gets the product-modules bitmask used to scope notifications.
237
- * @returns The active {@link SupportProductModule} bitmask.
238
- */
239
- get productModules(): SupportProductModule;
240
- /** Number of unread notifications, or `undefined` when there are none. */
241
- get unreadNotifications(): Signal<number | undefined>;
242
- /**
243
- * Initialises the service with the back-end URI and the products/modules to track.
244
- * @param serviceUri - Base URL of the support service.
245
- * @param products - Bitmask of `SupportProduct` values (default: `None`).
246
- * @param productModules - Bitmask of `SupportProductModule` values (default: `None`).
247
- * @returns void
248
- */
249
- initialize(serviceUri: string, products?: SupportProduct, productModules?: SupportProductModule): void;
250
- /**
251
- * Updates the unread notifications count by fetching it from the server and setting the `unreadNotifications` signal. Sets `undefined` when the count is zero.
252
- * @param products - Bitmask of `SupportProduct` values to scope the count (default: current value).
253
- * @param productModules - Bitmask of `SupportProductModule` values to scope the count (default: current value).
254
- * @returns void
255
- */
256
- setProducts(products: SupportProduct, productModules: SupportProductModule): void;
257
- static ɵfac: i0.ɵɵFactoryDeclaration<SupportService, never>;
258
- static ɵprov: i0.ɵɵInjectableDeclaration<any>;
259
- }
260
-
261
- export { NotificationsService, SupportMessages, SupportProduct, SupportProductModule, SupportService };
262
- export type { Notification, SupportDocumentInfo, SupportLoginInfo, SupportLoginResult, SupportNotificationInfo, SupportNotificationsMarkParams, SupportNotificationsSearchParams, SupportNotificationsSearchResult, SupportUserInfo };
214
+ export declare class SupportService {
215
+ /** Private: never exposed to consumers. */
216
+ private readonly core;
217
+ /** Notifications sub-service (unread count, queries, mark, downloads). */
218
+ readonly notifications: NotificationsService;
219
+ /**
220
+ * Gets the base URI of the Support back-end service.
221
+ * @returns The configured service URI, or undefined before initialize().
222
+ */
223
+ get serviceUri(): string | undefined;
224
+ /**
225
+ * Gets the products bitmask used to scope notifications.
226
+ * @returns The active {@link SupportProduct} bitmask.
227
+ */
228
+ get products(): SupportProduct;
229
+ /**
230
+ * Gets the product-modules bitmask used to scope notifications.
231
+ * @returns The active {@link SupportProductModule} bitmask.
232
+ */
233
+ get productModules(): SupportProductModule;
234
+ /** Number of unread notifications, or `undefined` when there are none. */
235
+ get unreadNotifications(): Signal<number | undefined>;
236
+ /**
237
+ * Initialises the service with the back-end URI and the products/modules to track.
238
+ * @param serviceUri - Base URL of the support service.
239
+ * @param products - Bitmask of `SupportProduct` values (default: `None`).
240
+ * @param productModules - Bitmask of `SupportProductModule` values (default: `None`).
241
+ * @returns void
242
+ */
243
+ initialize(serviceUri: string, products?: SupportProduct, productModules?: SupportProductModule): void;
244
+ /**
245
+ * Updates the unread notifications count by fetching it from the server and setting the `unreadNotifications` signal. Sets `undefined` when the count is zero.
246
+ * @param products - Bitmask of `SupportProduct` values to scope the count (default: current value).
247
+ * @param productModules - Bitmask of `SupportProductModule` values to scope the count (default: current value).
248
+ * @returns void
249
+ */
250
+ setProducts(products: SupportProduct, productModules: SupportProductModule): void;
251
+ static ɵfac: i0.ɵɵFactoryDeclaration<SupportService, never>;
252
+ static ɵprov: i0.ɵɵInjectableDeclaration<any>;
253
+ }