@arsedizioni/ars-utils 22.6.86 → 22.6.89
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs +3158 -3344
- package/fesm2022/arsedizioni-ars-utils-clipper.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs +7616 -4772
- package/fesm2022/arsedizioni-ars-utils-clipper.ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.date.mjs +321 -702
- package/fesm2022/arsedizioni-ars-utils-core.date.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs +445 -590
- package/fesm2022/arsedizioni-ars-utils-core.markdown.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.mjs +1735 -2370
- package/fesm2022/arsedizioni-ars-utils-core.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-core.validators.mjs +1280 -1470
- package/fesm2022/arsedizioni-ars-utils-core.validators.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs +1097 -1528
- package/fesm2022/arsedizioni-ars-utils-evolution.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs +198 -294
- package/fesm2022/arsedizioni-ars-utils-support.common.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs +115 -117
- package/fesm2022/arsedizioni-ars-utils-ui.controls.date.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs +1607 -613
- package/fesm2022/arsedizioni-ars-utils-ui.controls.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs +840 -367
- package/fesm2022/arsedizioni-ars-utils-ui.controls.tree.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs +1634 -651
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.auth.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs +1255 -792
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs +1410 -357
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.prompt.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs +2401 -944
- package/fesm2022/arsedizioni-ars-utils-ui.dialogs.select.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.files.mjs +1553 -741
- package/fesm2022/arsedizioni-ars-utils-ui.files.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs +901 -430
- package/fesm2022/arsedizioni-ars-utils-ui.filters.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.help.mjs +737 -530
- package/fesm2022/arsedizioni-ars-utils-ui.help.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.mjs +6638 -1755
- package/fesm2022/arsedizioni-ars-utils-ui.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs +1479 -1207
- package/fesm2022/arsedizioni-ars-utils-ui.navigation.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs +1003 -270
- package/fesm2022/arsedizioni-ars-utils-ui.notifications.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs +497 -278
- package/fesm2022/arsedizioni-ars-utils-ui.oauth.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs +48 -52
- package/fesm2022/arsedizioni-ars-utils-ui.paginator.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs +464 -704
- package/fesm2022/arsedizioni-ars-utils-ui.shell.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs +724 -657
- package/fesm2022/arsedizioni-ars-utils-ui.tinymce.mjs.map +1 -1
- package/fesm2022/arsedizioni-ars-utils.mjs +3 -19
- package/fesm2022/arsedizioni-ars-utils.mjs.map +1 -1
- package/package.json +1 -1
- package/types/arsedizioni-ars-utils-clipper.common.d.ts +1151 -1163
- package/types/arsedizioni-ars-utils-clipper.ui.d.ts +1588 -1426
- package/types/arsedizioni-ars-utils-core.d.ts +1169 -1172
- package/types/arsedizioni-ars-utils-core.date.d.ts +204 -208
- package/types/arsedizioni-ars-utils-core.markdown.d.ts +128 -126
- package/types/arsedizioni-ars-utils-core.validators.d.ts +270 -236
- package/types/arsedizioni-ars-utils-evolution.common.d.ts +1054 -1067
- package/types/arsedizioni-ars-utils-support.common.d.ts +225 -234
- package/types/arsedizioni-ars-utils-ui.controls.d.ts +440 -278
- package/types/arsedizioni-ars-utils-ui.controls.date.d.ts +24 -28
- package/types/arsedizioni-ars-utils-ui.controls.tree.d.ts +172 -136
- package/types/arsedizioni-ars-utils-ui.d.ts +2035 -821
- package/types/arsedizioni-ars-utils-ui.dialogs.auth.d.ts +327 -322
- package/types/arsedizioni-ars-utils-ui.dialogs.d.ts +343 -347
- package/types/arsedizioni-ars-utils-ui.dialogs.prompt.d.ts +167 -167
- package/types/arsedizioni-ars-utils-ui.dialogs.select.d.ts +373 -367
- package/types/arsedizioni-ars-utils-ui.files.d.ts +335 -283
- package/types/arsedizioni-ars-utils-ui.filters.d.ts +232 -160
- package/types/arsedizioni-ars-utils-ui.help.d.ts +204 -211
- package/types/arsedizioni-ars-utils-ui.navigation.d.ts +811 -646
- package/types/arsedizioni-ars-utils-ui.notifications.d.ts +74 -78
- package/types/arsedizioni-ars-utils-ui.oauth.d.ts +102 -62
- package/types/arsedizioni-ars-utils-ui.paginator.d.ts +19 -22
- package/types/arsedizioni-ars-utils-ui.shell.d.ts +376 -382
- package/types/arsedizioni-ars-utils-ui.tinymce.d.ts +244 -231
- package/types/arsedizioni-ars-utils.d.ts +1 -3
|
@@ -1,212 +1,206 @@
|
|
|
1
|
-
import { LoginOAuthType, LoginResult
|
|
2
|
-
import * as
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
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
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
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
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
52
|
+
export interface SupportNotificationsSearchParams {
|
|
53
|
+
any?: string;
|
|
54
|
+
products?: number;
|
|
55
|
+
productModules?: number;
|
|
56
|
+
first?: number;
|
|
57
|
+
count?: number;
|
|
55
58
|
}
|
|
56
|
-
interface
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
first?: number;
|
|
61
|
-
count?: number;
|
|
59
|
+
export interface SupportNotificationsSearchResult {
|
|
60
|
+
interval?: string;
|
|
61
|
+
items?: SupportNotificationInfo[];
|
|
62
|
+
total?: number;
|
|
62
63
|
}
|
|
63
|
-
interface
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
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
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
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
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
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
|
|
106
|
-
|
|
107
|
-
|
|
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
|
-
|
|
129
|
-
|
|
130
|
-
|
|
128
|
+
export declare enum SupportProduct {
|
|
129
|
+
None = 0,
|
|
130
|
+
Clipper = 1,
|
|
131
|
+
Evolution = 2,
|
|
132
|
+
DGInfo = 4
|
|
131
133
|
}
|
|
132
|
-
declare enum
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
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
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
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
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
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
|
+
}
|