http-request-manager 18.7.21 → 18.7.27
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/http-request-manager.mjs +7633 -0
- package/fesm2022/http-request-manager.mjs.map +1 -0
- package/http-request-manager-18.7.27.tgz +0 -0
- package/package.json +16 -5
- package/types/http-request-manager.d.ts +2277 -0
- package/ARCHITECTURE.md +0 -483
- package/DATABASE_README.md +0 -1176
- package/HTTP_MANAGER_README.md +0 -579
- package/HTTP_SINGNALS_MANAGER_README.md +0 -654
- package/HTTP_STATE_MANAGER_README.md +0 -948
- package/INTERCEPTOR_README.md +0 -549
- package/LOCAL_STORAGE_README.md +0 -1056
- package/STORE_STATE_MANAGER_README.md +0 -1322
- package/UTILS_README.md +0 -1186
- package/WS_MANAGER_README.md +0 -613
- package/ng-package.json +0 -8
- package/src/lib/http-request-manager.module.ts +0 -132
- package/src/lib/http-request-services-demo/database-data-demo/database-data-demo.component.html +0 -65
- package/src/lib/http-request-services-demo/database-data-demo/database-data-demo.component.scss +0 -0
- package/src/lib/http-request-services-demo/database-data-demo/database-data-demo.component.ts +0 -224
- package/src/lib/http-request-services-demo/http-request-services-demo.component.html +0 -114
- package/src/lib/http-request-services-demo/http-request-services-demo.component.scss +0 -6
- package/src/lib/http-request-services-demo/http-request-services-demo.component.ts +0 -52
- package/src/lib/http-request-services-demo/local-storage-demo/local-storage-demo.component.html +0 -195
- package/src/lib/http-request-services-demo/local-storage-demo/local-storage-demo.component.scss +0 -17
- package/src/lib/http-request-services-demo/local-storage-demo/local-storage-demo.component.ts +0 -206
- package/src/lib/http-request-services-demo/local-storage-signals-demo/local-storage-signals-demo.component.html +0 -200
- package/src/lib/http-request-services-demo/local-storage-signals-demo/local-storage-signals-demo.component.scss +0 -17
- package/src/lib/http-request-services-demo/local-storage-signals-demo/local-storage-signals-demo.component.ts +0 -212
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/download-file/download-file.component.html +0 -53
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/download-file/download-file.component.scss +0 -60
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/download-file/download-file.component.ts +0 -72
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/file-download.module.ts +0 -28
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/file-downloader.component.html +0 -10
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/file-downloader.component.scss +0 -29
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/file-downloader.component.ts +0 -100
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/models/download-labels-model.ts +0 -22
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/spinner/spinner.component.html +0 -8
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/spinner/spinner.component.scss +0 -19
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/spinner/spinner.component.ts +0 -26
- package/src/lib/http-request-services-demo/request-manager-demo/models/app-session.model.ts +0 -30
- package/src/lib/http-request-services-demo/request-manager-demo/models/app.model.ts +0 -19
- package/src/lib/http-request-services-demo/request-manager-demo/models/get-sample.model.ts +0 -25
- package/src/lib/http-request-services-demo/request-manager-demo/models/sample-ai-prompt.ts +0 -19
- package/src/lib/http-request-services-demo/request-manager-demo/models/sample-client-details.ts +0 -24
- package/src/lib/http-request-services-demo/request-manager-demo/models/sample-client-info.ts +0 -30
- package/src/lib/http-request-services-demo/request-manager-demo/models/sample-client.model.ts +0 -49
- package/src/lib/http-request-services-demo/request-manager-demo/models/sample-mapper-client-info.ts +0 -33
- package/src/lib/http-request-services-demo/request-manager-demo/request-manager-demo.component.html +0 -392
- package/src/lib/http-request-services-demo/request-manager-demo/request-manager-demo.component.scss +0 -24
- package/src/lib/http-request-services-demo/request-manager-demo/request-manager-demo.component.ts +0 -461
- package/src/lib/http-request-services-demo/request-manager-state-demo/request-manager-state-demo.component.html +0 -393
- package/src/lib/http-request-services-demo/request-manager-state-demo/request-manager-state-demo.component.scss +0 -24
- package/src/lib/http-request-services-demo/request-manager-state-demo/request-manager-state-demo.component.ts +0 -421
- package/src/lib/http-request-services-demo/request-manager-state-demo/services/state-manager-demo.service.ts +0 -87
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/services/state-data-request.service.ts +0 -120
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-ai-messaging/ws-ai-messaging.component.css +0 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-ai-messaging/ws-ai-messaging.component.html +0 -3
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-ai-messaging/ws-ai-messaging.component.ts +0 -16
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-chats/ws-chats.component.css +0 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-chats/ws-chats.component.html +0 -3
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-chats/ws-chats.component.ts +0 -16
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-data-control/ws-data-control.component.css +0 -31
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-data-control/ws-data-control.component.html +0 -72
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-data-control/ws-data-control.component.scss +0 -41
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-data-control/ws-data-control.component.spec.ts +0 -205
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-data-control/ws-data-control.component.ts +0 -77
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-messaging/ws-messaging.component.css +0 -11
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-messaging/ws-messaging.component.html +0 -96
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-messaging/ws-messaging.component.spec.ts +0 -31
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-messaging/ws-messaging.component.ts +0 -229
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-notifications/ws-notifications.component.css +0 -30
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-notifications/ws-notifications.component.html +0 -172
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-notifications/ws-notifications.component.spec.ts +0 -31
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-notifications/ws-notifications.component.ts +0 -239
- package/src/lib/http-request-services-demo/request-manager-ws-demo/models/oidc-client.model.ts +0 -31
- package/src/lib/http-request-services-demo/request-manager-ws-demo/models/user-data.model.ts +0 -32
- package/src/lib/http-request-services-demo/request-manager-ws-demo/request-manager-ws-demo.component.css +0 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/request-manager-ws-demo.component.html +0 -84
- package/src/lib/http-request-services-demo/request-manager-ws-demo/request-manager-ws-demo.component.ts +0 -41
- package/src/lib/http-request-services-demo/request-manager-ws-demo/services/index.ts +0 -3
- package/src/lib/http-request-services-demo/request-manager-ws-demo/services/message-service-demo.service.ts +0 -83
- package/src/lib/http-request-services-demo/request-manager-ws-demo/services/notification-service-demo.service.ts +0 -147
- package/src/lib/http-request-services-demo/request-manager-ws-demo/services/state-service-demo.service.ts +0 -158
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/download-file/download-file.component.html +0 -53
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/download-file/download-file.component.scss +0 -60
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/download-file/download-file.component.ts +0 -72
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/file-download.module.ts +0 -28
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/file-downloader.component.html +0 -10
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/file-downloader.component.scss +0 -29
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/file-downloader.component.ts +0 -100
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/models/download-labels-model.ts +0 -22
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/spinner/spinner.component.html +0 -8
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/spinner/spinner.component.scss +0 -19
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/spinner/spinner.component.ts +0 -26
- package/src/lib/http-request-services-demo/request-signals-manager-demo/models/app-session.model.ts +0 -30
- package/src/lib/http-request-services-demo/request-signals-manager-demo/models/app.model.ts +0 -19
- package/src/lib/http-request-services-demo/request-signals-manager-demo/models/get-sample.model.ts +0 -25
- package/src/lib/http-request-services-demo/request-signals-manager-demo/models/sample-ai-prompt.ts +0 -19
- package/src/lib/http-request-services-demo/request-signals-manager-demo/models/sample-client-details.ts +0 -24
- package/src/lib/http-request-services-demo/request-signals-manager-demo/models/sample-client-info.ts +0 -30
- package/src/lib/http-request-services-demo/request-signals-manager-demo/models/sample-client.model.ts +0 -49
- package/src/lib/http-request-services-demo/request-signals-manager-demo/models/sample-mapper-client-info.ts +0 -33
- package/src/lib/http-request-services-demo/request-signals-manager-demo/request-signals-manager-demo.component.html +0 -380
- package/src/lib/http-request-services-demo/request-signals-manager-demo/request-signals-manager-demo.component.scss +0 -24
- package/src/lib/http-request-services-demo/request-signals-manager-demo/request-signals-manager-demo.component.ts +0 -410
- package/src/lib/http-request-services-demo/store-state-manager-demo/models/settings.model.ts +0 -28
- package/src/lib/http-request-services-demo/store-state-manager-demo/services/settings-state.service.ts +0 -48
- package/src/lib/http-request-services-demo/store-state-manager-demo/store-state-manager-demo.component.css +0 -0
- package/src/lib/http-request-services-demo/store-state-manager-demo/store-state-manager-demo.component.html +0 -23
- package/src/lib/http-request-services-demo/store-state-manager-demo/store-state-manager-demo.component.ts +0 -36
- package/src/lib/index.ts +0 -3
- package/src/lib/interceptors/credentials.interceptor.ts +0 -16
- package/src/lib/interceptors/index.ts +0 -6
- package/src/lib/interceptors/models/error-settings.model.ts +0 -22
- package/src/lib/interceptors/models/index.ts +0 -2
- package/src/lib/interceptors/proxy-debugger.interceptor.ts +0 -46
- package/src/lib/interceptors/request-error.interceptor.ts +0 -65
- package/src/lib/interceptors/request-header.interceptor.ts +0 -53
- package/src/lib/models/config-http-options.model.ts +0 -42
- package/src/lib/models/config-local-storage-options.model.ts +0 -27
- package/src/lib/models/config-options.model.ts +0 -27
- package/src/lib/models/config-token.model.ts +0 -9
- package/src/lib/models/data-type.enum.ts +0 -5
- package/src/lib/models/database-storage.model.ts +0 -24
- package/src/lib/models/index.ts +0 -12
- package/src/lib/models/retry-options.model.ts +0 -22
- package/src/lib/services/database-manager-service/database.manager.service.ts +0 -262
- package/src/lib/services/database-manager-service/db.storage.service.ts +0 -207
- package/src/lib/services/database-manager-service/index.ts +0 -4
- package/src/lib/services/database-manager-service/models/index.ts +0 -2
- package/src/lib/services/database-manager-service/models/table-schema.ts +0 -33
- package/src/lib/services/index.ts +0 -12
- package/src/lib/services/local-storage-manager-service/index.ts +0 -4
- package/src/lib/services/local-storage-manager-service/local-storage-manager.service.spec.ts +0 -71
- package/src/lib/services/local-storage-manager-service/local-storage-manager.service.ts +0 -426
- package/src/lib/services/local-storage-manager-service/local-storage-signals-manager.service.spec.ts +0 -67
- package/src/lib/services/local-storage-manager-service/local-storage-signals-manager.service.ts +0 -345
- package/src/lib/services/local-storage-manager-service/models/global-store-options.model.ts +0 -30
- package/src/lib/services/local-storage-manager-service/models/index.ts +0 -6
- package/src/lib/services/local-storage-manager-service/models/setting-options.model.ts +0 -35
- package/src/lib/services/local-storage-manager-service/models/storage-data.model.ts +0 -24
- package/src/lib/services/local-storage-manager-service/models/storage-option.model.ts +0 -32
- package/src/lib/services/local-storage-manager-service/models/storage-type.enum.ts +0 -5
- package/src/lib/services/request-manager-services/README.md +0 -268
- package/src/lib/services/request-manager-services/http-manager-signals.service.ts +0 -246
- package/src/lib/services/request-manager-services/http-manager.service.spec.ts +0 -232
- package/src/lib/services/request-manager-services/http-manager.service.ts +0 -274
- package/src/lib/services/request-manager-services/index.ts +0 -8
- package/src/lib/services/request-manager-services/request-signals.service.ts +0 -214
- package/src/lib/services/request-manager-services/request.service.ts +0 -309
- package/src/lib/services/request-manager-services/rxjs-operators/countdown.ts +0 -17
- package/src/lib/services/request-manager-services/rxjs-operators/delay-retry.ts +0 -16
- package/src/lib/services/request-manager-services/rxjs-operators/index.ts +0 -4
- package/src/lib/services/request-manager-services/rxjs-operators/request-polling.ts +0 -35
- package/src/lib/services/request-manager-services/rxjs-operators/request-streaming.ts +0 -436
- package/src/lib/services/request-manager-state-service/http-manager-state.store.ts +0 -1321
- package/src/lib/services/request-manager-state-service/index.ts +0 -3
- package/src/lib/services/request-manager-state-service/models/api-request.model.ts +0 -61
- package/src/lib/services/request-manager-state-service/models/index.ts +0 -6
- package/src/lib/services/request-manager-state-service/models/request-options.model.ts +0 -22
- package/src/lib/services/request-manager-state-service/models/stream-type.enum.ts +0 -13
- package/src/lib/services/request-manager-state-service/models/ws-options.model.ts +0 -39
- package/src/lib/services/store-state-manager-service/index.ts +0 -3
- package/src/lib/services/store-state-manager-service/models/index.ts +0 -2
- package/src/lib/services/store-state-manager-service/models/state-storage-options.model.ts +0 -24
- package/src/lib/services/store-state-manager-service/store-state-manager.service.ts +0 -88
- package/src/lib/services/utils/app.service.spec.ts +0 -25
- package/src/lib/services/utils/app.service.ts +0 -21
- package/src/lib/services/utils/encryption/README.md +0 -79
- package/src/lib/services/utils/encryption/asymmetrical-encryption.service.ts +0 -282
- package/src/lib/services/utils/encryption/encryption-test.service.ts +0 -39
- package/src/lib/services/utils/encryption/index.ts +0 -5
- package/src/lib/services/utils/encryption/random.ts +0 -81
- package/src/lib/services/utils/encryption/symmetrical-encryption.service.ts +0 -93
- package/src/lib/services/utils/headers.service.spec.ts +0 -80
- package/src/lib/services/utils/headers.service.ts +0 -18
- package/src/lib/services/utils/index.ts +0 -7
- package/src/lib/services/utils/object-merger.service.spec.ts +0 -18
- package/src/lib/services/utils/object-merger.service.ts +0 -78
- package/src/lib/services/utils/path-query.service.spec.ts +0 -117
- package/src/lib/services/utils/path-query.service.ts +0 -69
- package/src/lib/services/utils/random-color.utils.ts +0 -83
- package/src/lib/services/utils/utils.service.spec.ts +0 -165
- package/src/lib/services/utils/utils.service.ts +0 -192
- package/src/lib/services/ws-manager-service/index.ts +0 -4
- package/src/lib/services/ws-manager-service/models/channel-info.model.ts +0 -24
- package/src/lib/services/ws-manager-service/models/channel-message-data.model.ts +0 -24
- package/src/lib/services/ws-manager-service/models/channel-message.model.ts +0 -24
- package/src/lib/services/ws-manager-service/models/communication-type.enum.ts +0 -5
- package/src/lib/services/ws-manager-service/models/index.ts +0 -5
- package/src/lib/services/ws-manager-service/models/ws-user.model.ts +0 -38
- package/src/lib/services/ws-manager-service/services/index.ts +0 -3
- package/src/lib/services/ws-manager-service/services/websocket.service.ts +0 -392
- package/src/public-api.ts +0 -14
- package/tsconfig.lib.json +0 -32
- package/tsconfig.lib.prod.json +0 -10
- package/tsconfig.spec.json +0 -14
|
@@ -0,0 +1,2277 @@
|
|
|
1
|
+
import * as rxjs from 'rxjs';
|
|
2
|
+
import { Observable, BehaviorSubject, OperatorFunction, Subscription } from 'rxjs';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { InjectionToken, Injector, OnDestroy, OnInit, EventEmitter, ModuleWithProviders } from '@angular/core';
|
|
5
|
+
import { ComponentStore } from '@ngrx/component-store';
|
|
6
|
+
import { HttpClient, HttpHeaders, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
|
|
7
|
+
import * as i16 from 'toast-message-display';
|
|
8
|
+
import { ToastMessageDisplayService } from 'toast-message-display';
|
|
9
|
+
import Dexie, { Table } from 'dexie';
|
|
10
|
+
import * as i33 from '@ngx-translate/core';
|
|
11
|
+
import { TranslateService } from '@ngx-translate/core';
|
|
12
|
+
import * as _angular_forms from '@angular/forms';
|
|
13
|
+
import { FormBuilder, FormArray, FormControl } from '@angular/forms';
|
|
14
|
+
import { DataSource } from '@angular/cdk/collections';
|
|
15
|
+
import * as http_request_manager from 'http-request-manager';
|
|
16
|
+
import * as i4 from '@angular/common';
|
|
17
|
+
import * as i7 from '@angular/material/button';
|
|
18
|
+
import * as i19 from '@angular/material/tabs';
|
|
19
|
+
import * as i20 from '@angular/material/select';
|
|
20
|
+
import * as i21 from '@angular/material/chips';
|
|
21
|
+
import * as i22 from '@angular/material/menu';
|
|
22
|
+
import * as i5 from '@angular/material/icon';
|
|
23
|
+
import * as i24 from '@angular/material/table';
|
|
24
|
+
import * as i25 from '@angular/material/button-toggle';
|
|
25
|
+
import * as i26 from '@angular/material/autocomplete';
|
|
26
|
+
import * as i27 from '@angular/material/progress-bar';
|
|
27
|
+
import * as i28 from '@angular/material/slide-toggle';
|
|
28
|
+
import * as i29 from '@angular/material/divider';
|
|
29
|
+
import * as i30 from '@angular/material/form-field';
|
|
30
|
+
import * as i31 from '@angular/material/input';
|
|
31
|
+
import * as i32 from '@angular/material/toolbar';
|
|
32
|
+
import * as i34 from '@angular/material/sidenav';
|
|
33
|
+
import * as i35 from '@angular/material/datepicker';
|
|
34
|
+
import * as i36 from '@angular/material/core';
|
|
35
|
+
import { ThemePalette } from '@angular/material/core';
|
|
36
|
+
import * as i6 from '@angular/material/progress-spinner';
|
|
37
|
+
import { ProgressSpinnerMode } from '@angular/material/progress-spinner';
|
|
38
|
+
|
|
39
|
+
declare enum StorageType {
|
|
40
|
+
GLOBAL = 0,
|
|
41
|
+
SESSION = 1,
|
|
42
|
+
DB = 2
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
interface SettingOptionsInterface {
|
|
46
|
+
storage?: StorageType;
|
|
47
|
+
expires?: number;
|
|
48
|
+
expiresIn?: string;
|
|
49
|
+
encrypted?: boolean;
|
|
50
|
+
}
|
|
51
|
+
declare class SettingOptions implements SettingOptionsInterface {
|
|
52
|
+
storage?: StorageType | undefined;
|
|
53
|
+
expires?: number | undefined;
|
|
54
|
+
expiresIn?: string | undefined;
|
|
55
|
+
encrypted?: boolean | undefined;
|
|
56
|
+
constructor(storage?: StorageType | undefined, expires?: number | undefined, expiresIn?: string | undefined, encrypted?: boolean | undefined);
|
|
57
|
+
static adapt(item?: any): SettingOptions;
|
|
58
|
+
}
|
|
59
|
+
|
|
60
|
+
interface StorageOptionInterface {
|
|
61
|
+
id?: string;
|
|
62
|
+
name: string;
|
|
63
|
+
data?: any;
|
|
64
|
+
options?: SettingOptions;
|
|
65
|
+
}
|
|
66
|
+
declare class StorageOption implements StorageOptionInterface {
|
|
67
|
+
id?: string | undefined;
|
|
68
|
+
name: string;
|
|
69
|
+
data?: any;
|
|
70
|
+
options?: SettingOptions | undefined;
|
|
71
|
+
constructor(id?: string | undefined, name?: string, data?: any, options?: SettingOptions | undefined);
|
|
72
|
+
static adapt(item?: any): StorageOption;
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
interface GlobalStoreOptionsInterface {
|
|
76
|
+
encryption?: boolean;
|
|
77
|
+
expiresIn?: string;
|
|
78
|
+
expires?: number;
|
|
79
|
+
stores: StorageOption[] | null;
|
|
80
|
+
}
|
|
81
|
+
declare class GlobalStoreOptions implements GlobalStoreOptionsInterface {
|
|
82
|
+
encryption: boolean;
|
|
83
|
+
expiresIn?: string | undefined;
|
|
84
|
+
expires?: number | undefined;
|
|
85
|
+
stores: StorageOption[] | null;
|
|
86
|
+
constructor(encryption?: boolean, expiresIn?: string | undefined, expires?: number | undefined, stores?: StorageOption[] | null);
|
|
87
|
+
static adapt(item?: any): GlobalStoreOptions;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
interface StorageDataInterface {
|
|
91
|
+
id?: string;
|
|
92
|
+
data?: any;
|
|
93
|
+
}
|
|
94
|
+
declare class StorageData implements StorageDataInterface {
|
|
95
|
+
id?: string | undefined;
|
|
96
|
+
data?: any;
|
|
97
|
+
constructor(id?: string | undefined, data?: any);
|
|
98
|
+
static adapt(item?: any): StorageData;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare class UtilsService {
|
|
102
|
+
http: HttpClient;
|
|
103
|
+
constructor();
|
|
104
|
+
isString(x: string | number): boolean;
|
|
105
|
+
isObject(obj: any): boolean;
|
|
106
|
+
JSONToString(value: any): any;
|
|
107
|
+
stringToJSON(value: string): any;
|
|
108
|
+
isJSON(str: any): boolean;
|
|
109
|
+
getValueByProp(obj: any, prop: string): any;
|
|
110
|
+
objectsEqual(x: any, y: any): boolean;
|
|
111
|
+
getJSON(file: string): rxjs.Observable<Object>;
|
|
112
|
+
get today(): number;
|
|
113
|
+
base32ToHex(base32: string): string;
|
|
114
|
+
binaryToHex(binary: string): string;
|
|
115
|
+
expires(str?: string): number | undefined;
|
|
116
|
+
hasExpired(expiryDate: number): boolean;
|
|
117
|
+
hasExpiry(setting: any): boolean;
|
|
118
|
+
expiresIn(expiryDate: number): string | undefined;
|
|
119
|
+
lc: (str: string) => string;
|
|
120
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
|
|
121
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
declare class SymmetricalEncryptionService {
|
|
125
|
+
appID: string;
|
|
126
|
+
private appService;
|
|
127
|
+
constructor();
|
|
128
|
+
generateCipherKey(): string;
|
|
129
|
+
encrypt(str: any, key?: string): string | undefined;
|
|
130
|
+
decrypt(str: string, key?: string): string | undefined;
|
|
131
|
+
createSignature(url: string, len?: number): string;
|
|
132
|
+
normalizeURL(url: string): string;
|
|
133
|
+
generateSignature(url: string): string;
|
|
134
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SymmetricalEncryptionService, never>;
|
|
135
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SymmetricalEncryptionService>;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
declare class EncryptionTestService {
|
|
139
|
+
constructor();
|
|
140
|
+
private isBase64;
|
|
141
|
+
private isHexadecimal;
|
|
142
|
+
private hasHighEntropy;
|
|
143
|
+
isEncrypted(str: string): boolean;
|
|
144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<EncryptionTestService, never>;
|
|
145
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<EncryptionTestService>;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
declare class AppService {
|
|
149
|
+
private id;
|
|
150
|
+
appID: string;
|
|
151
|
+
constructor(id: string);
|
|
152
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AppService, never>;
|
|
153
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AppService>;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
interface WSOptionsInterface {
|
|
157
|
+
id: string;
|
|
158
|
+
wsServer: string;
|
|
159
|
+
jwtToken: string;
|
|
160
|
+
permissions?: string[];
|
|
161
|
+
channels?: string[];
|
|
162
|
+
user?: any;
|
|
163
|
+
retry?: RetryOptions;
|
|
164
|
+
}
|
|
165
|
+
declare class WSOptions implements WSOptionsInterface {
|
|
166
|
+
id: string;
|
|
167
|
+
wsServer: string;
|
|
168
|
+
jwtToken: string;
|
|
169
|
+
permissions?: string[] | undefined;
|
|
170
|
+
channels?: string[] | undefined;
|
|
171
|
+
user?: any;
|
|
172
|
+
retry?: RetryOptions | undefined;
|
|
173
|
+
constructor(id?: string, wsServer?: string, jwtToken?: string, permissions?: string[] | undefined, channels?: string[] | undefined, user?: any, retry?: RetryOptions | undefined);
|
|
174
|
+
static adapt(item?: any): WSOptions;
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
/**
|
|
178
|
+
* Enum representing valid streaming format types
|
|
179
|
+
*
|
|
180
|
+
* This enum defines all supported streaming formats for HTTP requests.
|
|
181
|
+
* Each enum value corresponds to a specific data format and parsing strategy.
|
|
182
|
+
*/
|
|
183
|
+
declare enum StreamType {
|
|
184
|
+
JSON = "json",
|
|
185
|
+
NDJSON = "ndjson",
|
|
186
|
+
AI_STREAMING = "ai_streaming",
|
|
187
|
+
EVENT_STREAM = "event_stream",
|
|
188
|
+
AUTO = "auto"
|
|
189
|
+
}
|
|
190
|
+
|
|
191
|
+
interface ApiRequestInterface {
|
|
192
|
+
server: string;
|
|
193
|
+
path?: any[];
|
|
194
|
+
headers?: any;
|
|
195
|
+
adapter?: any;
|
|
196
|
+
mapper?: any;
|
|
197
|
+
polling?: number;
|
|
198
|
+
retry?: RetryOptions;
|
|
199
|
+
stream?: boolean;
|
|
200
|
+
streamType?: StreamType;
|
|
201
|
+
displayError?: boolean;
|
|
202
|
+
saveAs?: string;
|
|
203
|
+
fileContentHeader?: string;
|
|
204
|
+
ws?: WSOptions;
|
|
205
|
+
}
|
|
206
|
+
declare class ApiRequest implements ApiRequestInterface {
|
|
207
|
+
server: string;
|
|
208
|
+
path?: any[] | undefined;
|
|
209
|
+
headers?: any;
|
|
210
|
+
adapter?: any;
|
|
211
|
+
mapper?: any;
|
|
212
|
+
polling?: number | undefined;
|
|
213
|
+
retry?: RetryOptions | undefined;
|
|
214
|
+
stream?: boolean | undefined;
|
|
215
|
+
streamType?: StreamType | undefined;
|
|
216
|
+
displayError?: boolean | undefined;
|
|
217
|
+
saveAs?: string | undefined;
|
|
218
|
+
fileContentHeader?: string | undefined;
|
|
219
|
+
ws?: WSOptions | undefined;
|
|
220
|
+
constructor(server?: string, path?: any[] | undefined, headers?: any, adapter?: any, mapper?: any, polling?: number | undefined, retry?: RetryOptions | undefined, stream?: boolean | undefined, streamType?: StreamType | undefined, displayError?: boolean | undefined, saveAs?: string | undefined, fileContentHeader?: string | undefined, ws?: WSOptions | undefined);
|
|
221
|
+
static adapt(item?: any): ApiRequest;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
interface ChannelInfoInterface {
|
|
225
|
+
name: string;
|
|
226
|
+
canSubscribe: boolean;
|
|
227
|
+
}
|
|
228
|
+
declare class ChannelInfo implements ChannelInfoInterface {
|
|
229
|
+
name: string;
|
|
230
|
+
canSubscribe: boolean;
|
|
231
|
+
constructor(name?: string, canSubscribe?: boolean);
|
|
232
|
+
static adapt(item?: any): ChannelInfo;
|
|
233
|
+
}
|
|
234
|
+
|
|
235
|
+
interface WSUserInterface {
|
|
236
|
+
id: string;
|
|
237
|
+
ldap?: string;
|
|
238
|
+
name?: string;
|
|
239
|
+
email?: string;
|
|
240
|
+
[key: string]: any;
|
|
241
|
+
}
|
|
242
|
+
declare class WSUser implements WSUserInterface {
|
|
243
|
+
id: string;
|
|
244
|
+
ldap: string;
|
|
245
|
+
name: string;
|
|
246
|
+
email: string;
|
|
247
|
+
constructor(id?: string, ldap?: string, name?: string, email?: string);
|
|
248
|
+
static adapt(item?: any): WSUser;
|
|
249
|
+
}
|
|
250
|
+
|
|
251
|
+
declare enum CommunicationType {
|
|
252
|
+
MESSAGE = 0,
|
|
253
|
+
ALERT = 1,
|
|
254
|
+
OTHER = 2
|
|
255
|
+
}
|
|
256
|
+
|
|
257
|
+
interface DatabaseStorageInterface {
|
|
258
|
+
table: string;
|
|
259
|
+
expiresIn: string;
|
|
260
|
+
}
|
|
261
|
+
declare class DatabaseStorage implements DatabaseStorageInterface {
|
|
262
|
+
table: string;
|
|
263
|
+
expiresIn: '';
|
|
264
|
+
constructor(table: string, expiresIn: '');
|
|
265
|
+
static adapt(item?: any): any;
|
|
266
|
+
}
|
|
267
|
+
|
|
268
|
+
interface RequestOptionsInterface {
|
|
269
|
+
path: any[];
|
|
270
|
+
headers: any;
|
|
271
|
+
}
|
|
272
|
+
declare class RequestOptions implements RequestOptionsInterface {
|
|
273
|
+
path: any[];
|
|
274
|
+
headers: {};
|
|
275
|
+
constructor(path?: any[], headers?: {});
|
|
276
|
+
static adapt(item?: any): RequestOptions;
|
|
277
|
+
}
|
|
278
|
+
|
|
279
|
+
interface TableSchemaDefInterface {
|
|
280
|
+
table: string;
|
|
281
|
+
schema: string;
|
|
282
|
+
}
|
|
283
|
+
declare class TableSchemaDef implements TableSchemaDefInterface {
|
|
284
|
+
table: string;
|
|
285
|
+
schema: string;
|
|
286
|
+
constructor(table?: string, schema?: string);
|
|
287
|
+
static adapt(item?: any): TableSchemaDef;
|
|
288
|
+
static cleanString(str: string): string;
|
|
289
|
+
}
|
|
290
|
+
|
|
291
|
+
declare class DbService extends Dexie {
|
|
292
|
+
readonly storageDB = "global_storage_db";
|
|
293
|
+
get db(): this;
|
|
294
|
+
private dbReady;
|
|
295
|
+
constructor();
|
|
296
|
+
private init;
|
|
297
|
+
protected createNewDatabase(): Promise<void>;
|
|
298
|
+
get vr(): number;
|
|
299
|
+
get nextVr(): number;
|
|
300
|
+
get getTables(): string[];
|
|
301
|
+
hasDatabase(): Promise<boolean>;
|
|
302
|
+
getTable(tableName: string): Table<any, any> | undefined;
|
|
303
|
+
tableExists(tableName: string): boolean;
|
|
304
|
+
protected updateTable(tableName: string, find: {
|
|
305
|
+
key: string;
|
|
306
|
+
value: string | number;
|
|
307
|
+
}, data: any): Promise<boolean>;
|
|
308
|
+
protected createTable(tableName: string, schema: string): Promise<void>;
|
|
309
|
+
protected DBOpened(): Promise<boolean>;
|
|
310
|
+
private getCurrentSchema;
|
|
311
|
+
protected cleanTableName(str: string): string;
|
|
312
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DbService, never>;
|
|
313
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DbService>;
|
|
314
|
+
}
|
|
315
|
+
|
|
316
|
+
declare class DatabaseManagerService extends DbService {
|
|
317
|
+
constructor();
|
|
318
|
+
getDatabaseTables(): Observable<any[]>;
|
|
319
|
+
databaseExists(): Observable<boolean>;
|
|
320
|
+
hasDatabaseTable(table: string): Observable<boolean>;
|
|
321
|
+
getDatabaseTable(table: string): Observable<any>;
|
|
322
|
+
getDatabaseTableSchema(table: string): Observable<string[]>;
|
|
323
|
+
createDatabaseTable(tableDef: TableSchemaDef): Observable<boolean>;
|
|
324
|
+
updateDatabaseTableSchema(tableDef: TableSchemaDef): Observable<any>;
|
|
325
|
+
findTableRecords(table: string, column: string, value: any): Observable<unknown>;
|
|
326
|
+
findTableRecord(table: string, column: string, value: any): Observable<any>;
|
|
327
|
+
getTableRecords(table: string): Observable<unknown>;
|
|
328
|
+
getTableRecord(table: string, id: number): Observable<any>;
|
|
329
|
+
createTableRecord(table: string, record: any): Observable<any>;
|
|
330
|
+
createTableRecords(table: string, records: any[]): Observable<{
|
|
331
|
+
[key: string]: any;
|
|
332
|
+
}[]>;
|
|
333
|
+
updateTableRecord(table: string, record: any): Observable<{
|
|
334
|
+
[key: string]: any;
|
|
335
|
+
} | null>;
|
|
336
|
+
updateTableRecords(table: string, records: any[]): Observable<{
|
|
337
|
+
[key: string]: any;
|
|
338
|
+
}[]>;
|
|
339
|
+
deleteTableRecord<T>(table: string, id: number): Observable<number | null>;
|
|
340
|
+
deleteTableRecords(table: string, ids: number[]): Observable<number[]>;
|
|
341
|
+
clearTable(table: string): Observable<unknown>;
|
|
342
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatabaseManagerService, never>;
|
|
343
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<DatabaseManagerService>;
|
|
344
|
+
}
|
|
345
|
+
|
|
346
|
+
interface ChannelMessageInterface {
|
|
347
|
+
sessionId: any;
|
|
348
|
+
content: any;
|
|
349
|
+
}
|
|
350
|
+
declare class ChannelMessage implements ChannelMessageInterface {
|
|
351
|
+
sessionId: any;
|
|
352
|
+
content: any;
|
|
353
|
+
constructor(sessionId?: any, content?: any);
|
|
354
|
+
static adapt(item?: any): ChannelMessage;
|
|
355
|
+
}
|
|
356
|
+
|
|
357
|
+
/**
|
|
358
|
+
* Channel type enum for different communication purposes
|
|
359
|
+
* - STATE: Private channels for state synchronization (SYS- prefix)
|
|
360
|
+
* - MESSAGE: Public messaging/communication channels (PUB- prefix)
|
|
361
|
+
* - NOTIFICATION: Notification channels with DB persistence (MES- prefix)
|
|
362
|
+
*/
|
|
363
|
+
declare enum ChannelType {
|
|
364
|
+
STATE = "SYS",
|
|
365
|
+
MESSAGE = "PUB",
|
|
366
|
+
NOTIFICATION = "MES"
|
|
367
|
+
}
|
|
368
|
+
/**
|
|
369
|
+
* Utility function to create prefixed channel name
|
|
370
|
+
* @param channelType - The type of channel
|
|
371
|
+
* @param channelName - The base channel name
|
|
372
|
+
* @returns Prefixed channel name (e.g., 'SYS-USERS123')
|
|
373
|
+
*/
|
|
374
|
+
declare function createChannelName(channelType: ChannelType, channelName: string): string;
|
|
375
|
+
interface APIStateManagerData<T> {
|
|
376
|
+
data: T[];
|
|
377
|
+
dataObject: T | null;
|
|
378
|
+
}
|
|
379
|
+
declare class HTTPManagerStateService<T extends {
|
|
380
|
+
id: number | string;
|
|
381
|
+
}> extends ComponentStore<APIStateManagerData<T>> {
|
|
382
|
+
private apiOptions;
|
|
383
|
+
private dataType;
|
|
384
|
+
private database?;
|
|
385
|
+
httpManagerService: HTTPManagerService<any>;
|
|
386
|
+
dbManagerService: DatabaseManagerService;
|
|
387
|
+
localStorageManagerService: LocalStorageManagerService;
|
|
388
|
+
utils: UtilsService;
|
|
389
|
+
error$: Observable<boolean>;
|
|
390
|
+
isPending$: Observable<boolean>;
|
|
391
|
+
private page;
|
|
392
|
+
page$: Observable<number>;
|
|
393
|
+
private totalPages;
|
|
394
|
+
totalPages$: Observable<number>;
|
|
395
|
+
private percentage;
|
|
396
|
+
percentage$: Observable<number>;
|
|
397
|
+
private hasDatabase;
|
|
398
|
+
streamedResponse: never[];
|
|
399
|
+
private maxRetries;
|
|
400
|
+
private retryDelay;
|
|
401
|
+
private shouldRetry;
|
|
402
|
+
private databaseOptions?;
|
|
403
|
+
private wsRetryAttempts;
|
|
404
|
+
wsRetryAttempts$: Observable<number>;
|
|
405
|
+
private wsNextRetry;
|
|
406
|
+
wsNextRetry$: Observable<number>;
|
|
407
|
+
private messages;
|
|
408
|
+
messages$: Observable<any[]>;
|
|
409
|
+
private userListByChannel;
|
|
410
|
+
userListByChannel$: Observable<Map<string, any[]>>;
|
|
411
|
+
getUsersForChannel$(channel: string): Observable<any[]>;
|
|
412
|
+
private userList;
|
|
413
|
+
userList$: Observable<any[]>;
|
|
414
|
+
private user;
|
|
415
|
+
user$: Observable<WSUser | null>;
|
|
416
|
+
private channels;
|
|
417
|
+
channels$: Observable<string[] | null>;
|
|
418
|
+
private notificationChannels;
|
|
419
|
+
notificationChannels$: Observable<string[]>;
|
|
420
|
+
private todaysNotificationChannels;
|
|
421
|
+
todaysNotificationChannels$: Observable<string[]>;
|
|
422
|
+
private notificationMessages;
|
|
423
|
+
notificationMessages$: Observable<any[]>;
|
|
424
|
+
private latestNotification;
|
|
425
|
+
latestNotification$: Observable<any>;
|
|
426
|
+
private communicationMessages;
|
|
427
|
+
communicationMessages$: Observable<any[]>;
|
|
428
|
+
private latestCommunicationMessages;
|
|
429
|
+
latestCommunicationMessages$: Observable<any>;
|
|
430
|
+
private userAction;
|
|
431
|
+
userAction$: Observable<any>;
|
|
432
|
+
wsConnection: boolean;
|
|
433
|
+
wsOptions: WSOptions;
|
|
434
|
+
connectionStatus$: Observable<boolean>;
|
|
435
|
+
constructor(apiOptions: ApiRequest, dataType: DataType | undefined, database?: DatabaseStorage | undefined);
|
|
436
|
+
/**
|
|
437
|
+
* Add appropriate prefix to a channel name if not already present
|
|
438
|
+
*/
|
|
439
|
+
private prefixChannel;
|
|
440
|
+
/**
|
|
441
|
+
* Remove any known prefix from a channel name
|
|
442
|
+
*/
|
|
443
|
+
private stripChannelPrefix;
|
|
444
|
+
/**
|
|
445
|
+
* Get the base channel name without prefix (for display/user reference)
|
|
446
|
+
*/
|
|
447
|
+
getBaseChannelName(channel: string): string;
|
|
448
|
+
setApiRequestOptions(apiOptions?: ApiRequest, dataType?: DataType, database?: DatabaseStorage): void;
|
|
449
|
+
private setupConnectionStatus;
|
|
450
|
+
readonly initWS: (observableOrValue: WSOptions | Observable<WSOptions>) => rxjs.Subscription;
|
|
451
|
+
appendMessages(message: any): void;
|
|
452
|
+
latestMessage(): void;
|
|
453
|
+
clearMessages(): void;
|
|
454
|
+
get ApiRequestOptions(): ApiRequest;
|
|
455
|
+
readonly initDBStorage: (observableOrValue?: void | Observable<void> | undefined) => rxjs.Subscription;
|
|
456
|
+
initializeState(data: any): void;
|
|
457
|
+
readonly data$: Observable<T | T[] | null>;
|
|
458
|
+
readonly selectRecord$: (id: number) => Observable<T | T[] | null>;
|
|
459
|
+
private readonly setData$;
|
|
460
|
+
private updateArrayState;
|
|
461
|
+
private readonly addData$;
|
|
462
|
+
private readonly deleteData$;
|
|
463
|
+
private readonly updateData$;
|
|
464
|
+
readonly clearRecords: (observableOrValue?: void | Observable<void> | undefined) => rxjs.Subscription;
|
|
465
|
+
readonly fetchRecords: (options?: RequestOptions) => ((observableOrValue?: any) => rxjs.Subscription) | ((observableOrValue: any) => rxjs.Subscription);
|
|
466
|
+
private initDBStorageAsync;
|
|
467
|
+
readonly fetchRecord: (options: RequestOptions, method: string) => ((observableOrValue?: any) => rxjs.Subscription) | ((observableOrValue: any) => rxjs.Subscription);
|
|
468
|
+
readonly createRecord: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => rxjs.Subscription) | ((observableOrValue: any) => rxjs.Subscription);
|
|
469
|
+
readonly updateRecord: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => rxjs.Subscription) | ((observableOrValue: any) => rxjs.Subscription);
|
|
470
|
+
readonly deleteRecord: (options?: RequestOptions) => ((observableOrValue?: any) => rxjs.Subscription) | ((observableOrValue: any) => rxjs.Subscription);
|
|
471
|
+
readonly createStream: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => rxjs.Subscription) | ((observableOrValue: any) => rxjs.Subscription);
|
|
472
|
+
readonly fetchStream: (options?: RequestOptions) => ((observableOrValue?: any) => rxjs.Subscription) | ((observableOrValue: any) => rxjs.Subscription);
|
|
473
|
+
private wsCommunication;
|
|
474
|
+
/**
|
|
475
|
+
* Send a message to channel(s)
|
|
476
|
+
* @param message - The message content
|
|
477
|
+
* @param channels - Optional array of channel names (passed as-is, caller should include prefix)
|
|
478
|
+
* Use 'allChannels' to broadcast to all
|
|
479
|
+
*/
|
|
480
|
+
wsMessaging(message: ChannelMessage, channels?: string[]): void;
|
|
481
|
+
/**
|
|
482
|
+
* Subscribe to a messaging channel
|
|
483
|
+
* @param channel - Base channel name (MES- prefix added automatically)
|
|
484
|
+
*/
|
|
485
|
+
subscribeToMessageChannel(channel: string): void;
|
|
486
|
+
/**
|
|
487
|
+
* Unsubscribe from a messaging channel
|
|
488
|
+
* @param channel - Base channel name (MES- prefix added automatically)
|
|
489
|
+
*/
|
|
490
|
+
unsubscribeFromMessageChannel(channel: string): void;
|
|
491
|
+
/**
|
|
492
|
+
* Subscribe to a single channel (no automatic prefix)
|
|
493
|
+
* Use subscribeToMessageChannel() for MES- prefixed channels
|
|
494
|
+
*/
|
|
495
|
+
subscribeToChannel(channel: string): void;
|
|
496
|
+
/**
|
|
497
|
+
* Subscribe to multiple channels at once
|
|
498
|
+
*/
|
|
499
|
+
subscribeToChannels(channels: string[]): void;
|
|
500
|
+
/**
|
|
501
|
+
* Unsubscribe from a channel
|
|
502
|
+
*/
|
|
503
|
+
unsubscribeFromChannel(channel: string): void;
|
|
504
|
+
/**
|
|
505
|
+
* Get observable of currently subscribed channels
|
|
506
|
+
*/
|
|
507
|
+
get subscribedChannels$(): Observable<Set<string>>;
|
|
508
|
+
/**
|
|
509
|
+
* Get current subscribed channels synchronously
|
|
510
|
+
*/
|
|
511
|
+
getSubscribedChannels(): Set<string>;
|
|
512
|
+
/**
|
|
513
|
+
* Create a new channel on the server
|
|
514
|
+
*/
|
|
515
|
+
createChannel(channel: string): void;
|
|
516
|
+
/**
|
|
517
|
+
* Delete a channel from the server
|
|
518
|
+
*/
|
|
519
|
+
deleteChannel(channel: string): void;
|
|
520
|
+
/**
|
|
521
|
+
* Request list of all channels from server
|
|
522
|
+
*/
|
|
523
|
+
getAllChannels(): void;
|
|
524
|
+
/**
|
|
525
|
+
* Get users in a specific channel
|
|
526
|
+
*/
|
|
527
|
+
getUsersInChannel(channel: string): void;
|
|
528
|
+
/**
|
|
529
|
+
* Create a notification channel on the server
|
|
530
|
+
* @param channel - Base channel name (MES- prefix added automatically)
|
|
531
|
+
*/
|
|
532
|
+
createNotificationChannel(channel: string): void;
|
|
533
|
+
/**
|
|
534
|
+
* Request list of all notification channels from server (in-memory)
|
|
535
|
+
*/
|
|
536
|
+
getNotificationChannels(): void;
|
|
537
|
+
/**
|
|
538
|
+
* Request list of today's notification channels from database
|
|
539
|
+
* Returns unique channels that have notifications posted today
|
|
540
|
+
*/
|
|
541
|
+
getTodaysNotificationChannels(): void;
|
|
542
|
+
/**
|
|
543
|
+
* Subscribe to a notification channel with optional date filters
|
|
544
|
+
* @param channel - Base channel name (MES- prefix added automatically)
|
|
545
|
+
*/
|
|
546
|
+
subscribeToNotificationChannel(channel: string, options?: {
|
|
547
|
+
startEpoch?: number;
|
|
548
|
+
endEpoch?: number;
|
|
549
|
+
}, user?: any): void;
|
|
550
|
+
/**
|
|
551
|
+
* Unsubscribe from a notification channel
|
|
552
|
+
* @param channel - Base channel name (MES- prefix added automatically)
|
|
553
|
+
*/
|
|
554
|
+
unsubscribeFromNotificationChannel(channel: string): void;
|
|
555
|
+
/**
|
|
556
|
+
* Send a notification to a channel
|
|
557
|
+
* @param channel - Base channel name (MES- prefix added automatically)
|
|
558
|
+
*/
|
|
559
|
+
sendNotification(channel: string, content: any): void;
|
|
560
|
+
private isEmpty;
|
|
561
|
+
private updateRequestOptions;
|
|
562
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HTTPManagerStateService<any>, never>;
|
|
563
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HTTPManagerStateService<any>>;
|
|
564
|
+
}
|
|
565
|
+
|
|
566
|
+
declare class WebsocketService {
|
|
567
|
+
private socket;
|
|
568
|
+
private messages;
|
|
569
|
+
messages$: Observable<any>;
|
|
570
|
+
private connectionStatus;
|
|
571
|
+
connectionStatus$: Observable<boolean>;
|
|
572
|
+
private isSubscribed;
|
|
573
|
+
private subscribedChannels;
|
|
574
|
+
subscribedChannels$: Observable<Set<string>>;
|
|
575
|
+
private lastOptions;
|
|
576
|
+
private getSessionId;
|
|
577
|
+
private sendSubscribe;
|
|
578
|
+
connect(options: WSOptions, jwtToken: string): void;
|
|
579
|
+
disconnect(): void;
|
|
580
|
+
subscribeToChannel(channelName: string): void;
|
|
581
|
+
subscribeToChannels(channelNames: string[]): void;
|
|
582
|
+
unsubscribeFromChannel(channel: string): void;
|
|
583
|
+
unsubscribeToChannel(channel: string): void;
|
|
584
|
+
getSubscribedChannels(): Set<string>;
|
|
585
|
+
sendBroadcast(content: any): void;
|
|
586
|
+
sendMessageInChannel(channel: string, content: any): void;
|
|
587
|
+
/**
|
|
588
|
+
* Send a message to a specific channel for channel-based messaging
|
|
589
|
+
* This uses the 'message' type which broadcasts to all subscribers in the channel
|
|
590
|
+
*/
|
|
591
|
+
sendChannelMessage(channel: string, content: any): void;
|
|
592
|
+
sendMessageToUser(user: string, content: any): void;
|
|
593
|
+
getAllChannels(): void;
|
|
594
|
+
createChannel(channel: string): void;
|
|
595
|
+
deleteChannel(channel: string): void;
|
|
596
|
+
getUsersInChannel(channel: string): void;
|
|
597
|
+
/**
|
|
598
|
+
* Create a notification channel
|
|
599
|
+
*/
|
|
600
|
+
createNotificationChannel(channel: string): void;
|
|
601
|
+
/**
|
|
602
|
+
* Get all notification channels (in-memory)
|
|
603
|
+
*/
|
|
604
|
+
getNotificationChannels(): void;
|
|
605
|
+
/**
|
|
606
|
+
* Get today's notification channels from database
|
|
607
|
+
* Returns unique channels that have notifications posted today
|
|
608
|
+
*/
|
|
609
|
+
getTodaysNotificationChannels(): void;
|
|
610
|
+
/**
|
|
611
|
+
* Subscribe to a notification channel with optional date filters
|
|
612
|
+
*/
|
|
613
|
+
subscribeToNotificationChannel(channel: string, options?: {
|
|
614
|
+
startEpoch?: number;
|
|
615
|
+
endEpoch?: number;
|
|
616
|
+
}, user?: any): void;
|
|
617
|
+
/**
|
|
618
|
+
* Unsubscribe from a notification channel
|
|
619
|
+
*/
|
|
620
|
+
unsubscribeFromNotificationChannel(channel: string): void;
|
|
621
|
+
/**
|
|
622
|
+
* Send a notification to a channel
|
|
623
|
+
*/
|
|
624
|
+
sendNotification(channel: string, content: any): void;
|
|
625
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WebsocketService, never>;
|
|
626
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WebsocketService>;
|
|
627
|
+
}
|
|
628
|
+
|
|
629
|
+
declare class RequestService extends WebsocketService {
|
|
630
|
+
private http;
|
|
631
|
+
private pathQueryService;
|
|
632
|
+
private headersService;
|
|
633
|
+
isPending: BehaviorSubject<boolean>;
|
|
634
|
+
isPending$: Observable<boolean>;
|
|
635
|
+
progress: BehaviorSubject<number>;
|
|
636
|
+
progress$: Observable<number>;
|
|
637
|
+
getRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
638
|
+
getRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
639
|
+
getRecordRequest<T>(options: ApiRequest & {
|
|
640
|
+
stream: true;
|
|
641
|
+
}): Observable<T[]>;
|
|
642
|
+
createRecordRequest<T>(options: ApiRequest, data: any): Observable<T>;
|
|
643
|
+
createRecordRequest<T>(options: ApiRequest & {
|
|
644
|
+
stream: true;
|
|
645
|
+
}, data: any): Observable<T[]>;
|
|
646
|
+
createRecordRequest<T>(options: ApiRequest, data: any): Observable<T>;
|
|
647
|
+
createRecordRequest<T>(options: ApiRequest & {
|
|
648
|
+
stream: true;
|
|
649
|
+
}, data: any): Observable<T[]>;
|
|
650
|
+
updateRecordRequest<T>(options: ApiRequest, data: any): Observable<T>;
|
|
651
|
+
deleteRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
652
|
+
private buildUrlPath;
|
|
653
|
+
private buildHeaders;
|
|
654
|
+
private buildCombinedHeaders;
|
|
655
|
+
private request;
|
|
656
|
+
private requestStreaming;
|
|
657
|
+
downloadFileRequest(options: ApiRequest): Observable<any>;
|
|
658
|
+
private handleFinalize;
|
|
659
|
+
private downloadFile;
|
|
660
|
+
private createFileType;
|
|
661
|
+
private combineHeaders;
|
|
662
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RequestService, never>;
|
|
663
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RequestService>;
|
|
664
|
+
}
|
|
665
|
+
|
|
666
|
+
interface RetryOptionsInterface {
|
|
667
|
+
times?: number;
|
|
668
|
+
delay?: number;
|
|
669
|
+
}
|
|
670
|
+
declare class RetryOptions implements RetryOptionsInterface {
|
|
671
|
+
times: number;
|
|
672
|
+
delay: number;
|
|
673
|
+
constructor(times?: number, delay?: number);
|
|
674
|
+
static adapt(item?: any): RetryOptions;
|
|
675
|
+
}
|
|
676
|
+
|
|
677
|
+
declare enum DataType {
|
|
678
|
+
ANY = 0,
|
|
679
|
+
ARRAY = 1,
|
|
680
|
+
OBJECT = 2
|
|
681
|
+
}
|
|
682
|
+
|
|
683
|
+
interface ConfigHTTPOptionsInterface {
|
|
684
|
+
server: string;
|
|
685
|
+
path?: any[];
|
|
686
|
+
headers?: any;
|
|
687
|
+
polling?: number;
|
|
688
|
+
retry?: RetryOptions;
|
|
689
|
+
stream?: boolean;
|
|
690
|
+
displayError?: boolean;
|
|
691
|
+
}
|
|
692
|
+
declare class ConfigHTTPOptions implements ConfigHTTPOptionsInterface {
|
|
693
|
+
server: string;
|
|
694
|
+
path?: any[] | undefined;
|
|
695
|
+
headers?: any;
|
|
696
|
+
polling?: number | undefined;
|
|
697
|
+
retry?: RetryOptions | undefined;
|
|
698
|
+
stream?: boolean | undefined;
|
|
699
|
+
displayError?: boolean | undefined;
|
|
700
|
+
constructor(server?: string, path?: any[] | undefined, headers?: any, polling?: number | undefined, retry?: RetryOptions | undefined, stream?: boolean | undefined, displayError?: boolean | undefined);
|
|
701
|
+
static adapt(item?: any): ConfigHTTPOptions;
|
|
702
|
+
}
|
|
703
|
+
|
|
704
|
+
interface LocalStorageOptionsInterface {
|
|
705
|
+
storageName?: string;
|
|
706
|
+
storageSettingsName?: string;
|
|
707
|
+
options?: SettingOptions;
|
|
708
|
+
}
|
|
709
|
+
declare class LocalStorageOptions implements LocalStorageOptionsInterface {
|
|
710
|
+
storageName?: string | undefined;
|
|
711
|
+
storageSettingsName?: string | undefined;
|
|
712
|
+
options?: SettingOptions | undefined;
|
|
713
|
+
constructor(storageName?: string | undefined, storageSettingsName?: string | undefined, options?: SettingOptions | undefined);
|
|
714
|
+
static adapt(item?: any): LocalStorageOptions;
|
|
715
|
+
}
|
|
716
|
+
|
|
717
|
+
interface ConfigOptionsInterface {
|
|
718
|
+
httpRequestOptions?: ConfigHTTPOptions;
|
|
719
|
+
LocalStorageOptions?: LocalStorageOptions;
|
|
720
|
+
}
|
|
721
|
+
declare class ConfigOptions implements ConfigOptionsInterface {
|
|
722
|
+
httpRequestOptions?: ConfigHTTPOptions | undefined;
|
|
723
|
+
LocalStorageOptions?: LocalStorageOptions | undefined;
|
|
724
|
+
constructor(httpRequestOptions?: ConfigHTTPOptions | undefined, LocalStorageOptions?: LocalStorageOptions | undefined);
|
|
725
|
+
static adapt(item?: any): ConfigOptions;
|
|
726
|
+
}
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* An injection token that provides the configuration settings for the application.
|
|
730
|
+
* This token can be used to inject the `ConfigSettings` instance into components or services
|
|
731
|
+
* that require access to the application configuration.
|
|
732
|
+
*/
|
|
733
|
+
declare const CONFIG_SETTINGS_TOKEN: InjectionToken<ConfigOptions>;
|
|
734
|
+
|
|
735
|
+
interface UserDataInterface {
|
|
736
|
+
ldap: string;
|
|
737
|
+
name: string;
|
|
738
|
+
email: string;
|
|
739
|
+
color: string;
|
|
740
|
+
}
|
|
741
|
+
declare class UserData implements UserDataInterface {
|
|
742
|
+
ldap: string;
|
|
743
|
+
name: string;
|
|
744
|
+
email: string;
|
|
745
|
+
color: string;
|
|
746
|
+
constructor(ldap?: string, name?: string, email?: string, color?: string);
|
|
747
|
+
static adapt(item?: any): UserData;
|
|
748
|
+
}
|
|
749
|
+
|
|
750
|
+
declare class ObjectMergerService {
|
|
751
|
+
private configOptions?;
|
|
752
|
+
utils: UtilsService;
|
|
753
|
+
constructor(configOptions?: ConfigOptions | undefined);
|
|
754
|
+
mergeOptions(options?: ApiRequest): ApiRequest;
|
|
755
|
+
mergeStorageOptions(options?: SettingOptions): SettingOptions;
|
|
756
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectMergerService, [{ optional: true; }]>;
|
|
757
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<ObjectMergerService>;
|
|
758
|
+
}
|
|
759
|
+
|
|
760
|
+
declare class HTTPManagerService<T> extends RequestService {
|
|
761
|
+
private configOptions?;
|
|
762
|
+
toastMessage: ToastMessageDisplayService;
|
|
763
|
+
ng_injector: Injector;
|
|
764
|
+
objectMergerService: ObjectMergerService;
|
|
765
|
+
private countdown;
|
|
766
|
+
countdown$: Observable<number>;
|
|
767
|
+
private error;
|
|
768
|
+
error$: Observable<boolean>;
|
|
769
|
+
private data;
|
|
770
|
+
data$: Observable<any>;
|
|
771
|
+
private polling$;
|
|
772
|
+
config: ApiRequest;
|
|
773
|
+
constructor(configOptions?: ConfigOptions | undefined);
|
|
774
|
+
getRequest<T>(options?: ApiRequest, params?: any[]): Observable<T>;
|
|
775
|
+
postRequest<T extends {
|
|
776
|
+
id?: number | string;
|
|
777
|
+
}>(data: T, options: ApiRequest, params?: any[]): Observable<T>;
|
|
778
|
+
putRequest<T extends {
|
|
779
|
+
id?: number | string;
|
|
780
|
+
}>(data: T, options: ApiRequest, params?: any[]): Observable<T>;
|
|
781
|
+
deleteRequest<T>(options: ApiRequest, params?: any[]): Observable<T>;
|
|
782
|
+
downloadRequest<T>(options: ApiRequest, params?: any[], saveAs?: string): Observable<T>;
|
|
783
|
+
private createObservable;
|
|
784
|
+
private createRequest;
|
|
785
|
+
private prepareRequestData;
|
|
786
|
+
private handleError;
|
|
787
|
+
private handleErrorWithSnackBar;
|
|
788
|
+
private stopPolling;
|
|
789
|
+
private defineReqOptions;
|
|
790
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HTTPManagerService<any>, [{ optional: true; }]>;
|
|
791
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HTTPManagerService<any>>;
|
|
792
|
+
}
|
|
793
|
+
|
|
794
|
+
declare class RequestSignalsService {
|
|
795
|
+
private http;
|
|
796
|
+
private pathQueryService;
|
|
797
|
+
private headersService;
|
|
798
|
+
isPending: i0.WritableSignal<boolean>;
|
|
799
|
+
progress: i0.WritableSignal<number>;
|
|
800
|
+
isIdle: i0.Signal<boolean>;
|
|
801
|
+
getRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
802
|
+
createRecordRequest<T>(options: ApiRequest, data: any): Observable<T>;
|
|
803
|
+
updateRecordRequest<T>(options: ApiRequest, data: any): Observable<T>;
|
|
804
|
+
deleteRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
805
|
+
private buildUrlPath;
|
|
806
|
+
private buildHeaders;
|
|
807
|
+
private buildCombinedHeaders;
|
|
808
|
+
private request;
|
|
809
|
+
downloadFileRequest(options: ApiRequest): Observable<any>;
|
|
810
|
+
private handleFinalize;
|
|
811
|
+
private downloadFile;
|
|
812
|
+
private createFileType;
|
|
813
|
+
private combineHeaders;
|
|
814
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RequestSignalsService, never>;
|
|
815
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RequestSignalsService>;
|
|
816
|
+
}
|
|
817
|
+
|
|
818
|
+
declare class HTTPManagerSignalsService<T> extends RequestSignalsService {
|
|
819
|
+
private configOptions?;
|
|
820
|
+
toastMessage: ToastMessageDisplayService;
|
|
821
|
+
ng_injector: Injector;
|
|
822
|
+
objectMergerService: ObjectMergerService;
|
|
823
|
+
countdown: i0.WritableSignal<number>;
|
|
824
|
+
error: i0.WritableSignal<string | boolean>;
|
|
825
|
+
data: i0.WritableSignal<any>;
|
|
826
|
+
private polling$;
|
|
827
|
+
config: ApiRequest;
|
|
828
|
+
constructor(configOptions?: ConfigOptions | undefined);
|
|
829
|
+
getRequest<T>(options?: ApiRequest, params?: any[]): Observable<T>;
|
|
830
|
+
postRequest<T extends {
|
|
831
|
+
id?: number | string;
|
|
832
|
+
}>(data: T, options: ApiRequest, params?: any[]): Observable<T>;
|
|
833
|
+
putRequest<T extends {
|
|
834
|
+
id?: number | string;
|
|
835
|
+
}>(data: T, options: ApiRequest, params?: any[]): Observable<T>;
|
|
836
|
+
deleteRequest<T>(options: ApiRequest, params?: any[]): Observable<T>;
|
|
837
|
+
downloadRequest<T>(options: ApiRequest, params?: any[], saveAs?: string): Observable<T>;
|
|
838
|
+
private createObservable;
|
|
839
|
+
private createRequest;
|
|
840
|
+
private prepareRequestData;
|
|
841
|
+
private handleError;
|
|
842
|
+
private handleErrorWithSnackBar;
|
|
843
|
+
private stopPolling;
|
|
844
|
+
private defineReqOptions;
|
|
845
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HTTPManagerSignalsService<any>, [{ optional: true; }]>;
|
|
846
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HTTPManagerSignalsService<any>>;
|
|
847
|
+
}
|
|
848
|
+
|
|
849
|
+
declare function countdown(duration: number): Observable<number>;
|
|
850
|
+
|
|
851
|
+
declare function delayedRetry<T>(delayMs: number, maxRetry?: number): (src: Observable<T>) => Observable<T>;
|
|
852
|
+
|
|
853
|
+
declare function requestPolling<T>(pollInterval: number, stopCondition$: Observable<any>, isPending$: any): (source: Observable<T>) => Observable<T>;
|
|
854
|
+
|
|
855
|
+
interface StreamConfig {
|
|
856
|
+
streamType: StreamType;
|
|
857
|
+
}
|
|
858
|
+
interface StreamEvent<T = any> {
|
|
859
|
+
type: 'progress' | 'complete' | 'data';
|
|
860
|
+
data: T;
|
|
861
|
+
metadata?: {
|
|
862
|
+
timestamp: Date;
|
|
863
|
+
streamType: StreamType;
|
|
864
|
+
contentLength?: number;
|
|
865
|
+
};
|
|
866
|
+
}
|
|
867
|
+
interface ParsingResult<T = any> {
|
|
868
|
+
success: boolean;
|
|
869
|
+
data?: T[];
|
|
870
|
+
error?: string;
|
|
871
|
+
}
|
|
872
|
+
/**
|
|
873
|
+
* COMPREHENSIVE REQUEST STREAMING OPERATOR - FULLY ABSTRACTED
|
|
874
|
+
* Refactored for better type safety and memory management
|
|
875
|
+
*
|
|
876
|
+
* Single function that handles ALL streaming formats without hardcoded assumptions:
|
|
877
|
+
* - JSON format (Individual JSON objects)
|
|
878
|
+
* - NDJSON format (Newline delimited JSON)
|
|
879
|
+
* - AI streaming format (Real-time AI responses)
|
|
880
|
+
* - Server-Sent Events format
|
|
881
|
+
* - Auto-detection mode
|
|
882
|
+
*
|
|
883
|
+
* Usage:
|
|
884
|
+
* this.http.get(url, options).pipe(requestStreaming()).subscribe(data => {...})
|
|
885
|
+
* this.http.get(url, options).pipe(requestStreaming({ streamType: StreamType.NDJSON })).subscribe(data => {...})
|
|
886
|
+
*/
|
|
887
|
+
declare function requestStreaming<T = any>(config?: StreamConfig): OperatorFunction<any, T[]>;
|
|
888
|
+
/**
|
|
889
|
+
* Convenience functions for common use cases
|
|
890
|
+
*/
|
|
891
|
+
declare function streamJSON<T = any>(): OperatorFunction<any, T[]>;
|
|
892
|
+
declare function streamNDJSON<T = any>(): OperatorFunction<any, T[]>;
|
|
893
|
+
declare function streamAI<T = any>(): OperatorFunction<any, T[]>;
|
|
894
|
+
declare function streamEvents<T = any>(): OperatorFunction<any, T[]>;
|
|
895
|
+
declare function streamAuto<T = any>(): OperatorFunction<any, T[]>;
|
|
896
|
+
|
|
897
|
+
interface State {
|
|
898
|
+
localStores: StorageData[];
|
|
899
|
+
sessionStores: StorageData[];
|
|
900
|
+
settings: StorageOption[];
|
|
901
|
+
}
|
|
902
|
+
declare class LocalStorageManagerService extends ComponentStore<State> implements OnDestroy {
|
|
903
|
+
private configOptions?;
|
|
904
|
+
storageName: string;
|
|
905
|
+
storageSettingsName: string;
|
|
906
|
+
defaultOptions: SettingOptions;
|
|
907
|
+
stateRetrieved: boolean;
|
|
908
|
+
encrypted: boolean;
|
|
909
|
+
app: AppService;
|
|
910
|
+
utils: UtilsService;
|
|
911
|
+
objectMergerService: ObjectMergerService;
|
|
912
|
+
encryption: SymmetricalEncryptionService;
|
|
913
|
+
encryptionTest: EncryptionTestService;
|
|
914
|
+
private readonly data$;
|
|
915
|
+
readonly stores$: rxjs.Observable<StorageOption[]>;
|
|
916
|
+
readonly storeExists$: (store: string) => rxjs.Observable<boolean>;
|
|
917
|
+
readonly store$: (store: string) => rxjs.Observable<any>;
|
|
918
|
+
readonly settings$: rxjs.Observable<StorageOption[]>;
|
|
919
|
+
readonly setting$: (store: string) => rxjs.Observable<StorageOption | null>;
|
|
920
|
+
persistence$: rxjs.Subscription;
|
|
921
|
+
startTimer(): void;
|
|
922
|
+
private updateState;
|
|
923
|
+
constructor(configOptions?: ConfigOptions | undefined);
|
|
924
|
+
readonly setStore: (observableOrValue: {
|
|
925
|
+
id: string;
|
|
926
|
+
name: string;
|
|
927
|
+
data: any;
|
|
928
|
+
options: SettingOptions;
|
|
929
|
+
} | rxjs.Observable<{
|
|
930
|
+
id: string;
|
|
931
|
+
name: string;
|
|
932
|
+
data: any;
|
|
933
|
+
options: SettingOptions;
|
|
934
|
+
}>) => rxjs.Subscription;
|
|
935
|
+
readonly createStore: (observableOrValue: {
|
|
936
|
+
id?: string;
|
|
937
|
+
name: string;
|
|
938
|
+
data: any;
|
|
939
|
+
options: SettingOptions;
|
|
940
|
+
} | rxjs.Observable<{
|
|
941
|
+
id?: string;
|
|
942
|
+
name: string;
|
|
943
|
+
data: any;
|
|
944
|
+
options: SettingOptions;
|
|
945
|
+
}>) => rxjs.Subscription;
|
|
946
|
+
readonly updateStore: (observableOrValue: {
|
|
947
|
+
name: string;
|
|
948
|
+
data: any;
|
|
949
|
+
} | rxjs.Observable<{
|
|
950
|
+
name: string;
|
|
951
|
+
data: any;
|
|
952
|
+
}>) => rxjs.Subscription;
|
|
953
|
+
readonly deleteStore: (observableOrValue: {
|
|
954
|
+
name: string;
|
|
955
|
+
} | rxjs.Observable<{
|
|
956
|
+
name: string;
|
|
957
|
+
}>) => rxjs.Subscription;
|
|
958
|
+
resetStore(): void;
|
|
959
|
+
private persistState;
|
|
960
|
+
private expired;
|
|
961
|
+
retrieveState(): void;
|
|
962
|
+
private isObjectOrArray;
|
|
963
|
+
private isString;
|
|
964
|
+
private fixAndParseJSON;
|
|
965
|
+
private validStoreName;
|
|
966
|
+
private hasGlobalStorage;
|
|
967
|
+
ngOnDestroy(): void;
|
|
968
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageManagerService, [{ optional: true; }]>;
|
|
969
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageManagerService>;
|
|
970
|
+
}
|
|
971
|
+
|
|
972
|
+
declare class LocalStorageSignalsManagerService {
|
|
973
|
+
private configOptions?;
|
|
974
|
+
private state;
|
|
975
|
+
storageName: string;
|
|
976
|
+
storageSettingsName: string;
|
|
977
|
+
defaultOptions: SettingOptions;
|
|
978
|
+
stateRetrieved: boolean;
|
|
979
|
+
encrypted: boolean;
|
|
980
|
+
app: AppService;
|
|
981
|
+
utils: UtilsService;
|
|
982
|
+
objectMergerService: ObjectMergerService;
|
|
983
|
+
encryption: SymmetricalEncryptionService;
|
|
984
|
+
encryptionTest: EncryptionTestService;
|
|
985
|
+
readonly stores: i0.Signal<StorageOption[]>;
|
|
986
|
+
readonly storeExists: (store: string) => i0.Signal<boolean>;
|
|
987
|
+
readonly store: (store: string) => i0.Signal<any>;
|
|
988
|
+
readonly settings: i0.Signal<StorageOption[]>;
|
|
989
|
+
readonly setting: (store: string) => i0.Signal<StorageOption | null>;
|
|
990
|
+
constructor(configOptions?: ConfigOptions | undefined);
|
|
991
|
+
setStore(store: {
|
|
992
|
+
id: string;
|
|
993
|
+
name: string;
|
|
994
|
+
data: any;
|
|
995
|
+
options: SettingOptions;
|
|
996
|
+
}): void;
|
|
997
|
+
createStore(store: {
|
|
998
|
+
id?: string;
|
|
999
|
+
name: string;
|
|
1000
|
+
data: any;
|
|
1001
|
+
options: SettingOptions;
|
|
1002
|
+
}): void;
|
|
1003
|
+
updateStore(store: {
|
|
1004
|
+
name: string;
|
|
1005
|
+
data: any;
|
|
1006
|
+
}): void;
|
|
1007
|
+
deleteStore(store: {
|
|
1008
|
+
name: string;
|
|
1009
|
+
}): void;
|
|
1010
|
+
resetStore(): void;
|
|
1011
|
+
private persistState;
|
|
1012
|
+
private expired;
|
|
1013
|
+
retrieveState(): void;
|
|
1014
|
+
private hasGlobalStorage;
|
|
1015
|
+
private isObjectOrArray;
|
|
1016
|
+
private isString;
|
|
1017
|
+
private validStoreName;
|
|
1018
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageSignalsManagerService, [{ optional: true; }]>;
|
|
1019
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageSignalsManagerService>;
|
|
1020
|
+
}
|
|
1021
|
+
|
|
1022
|
+
interface StateStorageOptionsInterface {
|
|
1023
|
+
store?: string;
|
|
1024
|
+
options?: SettingOptions;
|
|
1025
|
+
model?: (state: any) => any;
|
|
1026
|
+
}
|
|
1027
|
+
declare class StateStorageOptions implements StateStorageOptionsInterface {
|
|
1028
|
+
store?: string | undefined;
|
|
1029
|
+
options?: SettingOptions | undefined;
|
|
1030
|
+
model?: ((state: any) => any) | undefined;
|
|
1031
|
+
constructor(store?: string | undefined, options?: SettingOptions | undefined, model?: ((state: any) => any) | undefined);
|
|
1032
|
+
static adapt(item?: any): StateStorageOptions;
|
|
1033
|
+
}
|
|
1034
|
+
|
|
1035
|
+
interface StateStoreManagerData<T> {
|
|
1036
|
+
}
|
|
1037
|
+
declare class StoreStateManagerService<T extends object = StateStoreManagerData<any>> extends ComponentStore<T> {
|
|
1038
|
+
private options;
|
|
1039
|
+
localStorageManagerService: LocalStorageManagerService;
|
|
1040
|
+
subscriptions: Subscription;
|
|
1041
|
+
settings: any;
|
|
1042
|
+
private isRestoring;
|
|
1043
|
+
constructor(options?: StateStorageOptions);
|
|
1044
|
+
private static init;
|
|
1045
|
+
init(options?: StateStorageOptions): void;
|
|
1046
|
+
restoreState(): Subscription;
|
|
1047
|
+
updateState(state: any): void;
|
|
1048
|
+
readonly data$: rxjs.Observable<any>;
|
|
1049
|
+
readonly updateData: (() => void) | ((observableOrValue: any) => Subscription);
|
|
1050
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StoreStateManagerService<any>, never>;
|
|
1051
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StoreStateManagerService<any>>;
|
|
1052
|
+
}
|
|
1053
|
+
|
|
1054
|
+
declare class HeadersService {
|
|
1055
|
+
headers: {};
|
|
1056
|
+
generateHeaders(headers?: Record<string, string>): {
|
|
1057
|
+
headers: HttpHeaders;
|
|
1058
|
+
};
|
|
1059
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HeadersService, never>;
|
|
1060
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<HeadersService>;
|
|
1061
|
+
}
|
|
1062
|
+
|
|
1063
|
+
declare class PathQueryService {
|
|
1064
|
+
buildAPIPath(server: string | string[], params?: any[] | any): string;
|
|
1065
|
+
private buildRestPath;
|
|
1066
|
+
private buildQueryPath;
|
|
1067
|
+
private cleanUrlPath;
|
|
1068
|
+
private isObject;
|
|
1069
|
+
private removeEmptyParams;
|
|
1070
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PathQueryService, never>;
|
|
1071
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<PathQueryService>;
|
|
1072
|
+
}
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* Generate a random hex color code
|
|
1076
|
+
* @returns A random hex color string (e.g., "#FF5733")
|
|
1077
|
+
*/
|
|
1078
|
+
declare const RandomHexColor: () => string;
|
|
1079
|
+
/**
|
|
1080
|
+
* Generate a random hex color with constraints to ensure good visibility
|
|
1081
|
+
* @param options Optional constraints for color generation
|
|
1082
|
+
* @returns A random hex color string with good contrast
|
|
1083
|
+
*/
|
|
1084
|
+
declare const RandomVisibleColor: (options?: {
|
|
1085
|
+
minBrightness?: number;
|
|
1086
|
+
maxBrightness?: number;
|
|
1087
|
+
}) => string;
|
|
1088
|
+
/**
|
|
1089
|
+
* Generate a random color from a predefined palette
|
|
1090
|
+
* @returns A hex color from a set of visually distinct colors
|
|
1091
|
+
*/
|
|
1092
|
+
declare const RandomPaletteColor: () => string;
|
|
1093
|
+
/**
|
|
1094
|
+
* Generate a random HSL color
|
|
1095
|
+
* @param options Optional constraints for HSL generation
|
|
1096
|
+
* @returns A random HSL color string (e.g., "hsl(120, 100%, 50%)")
|
|
1097
|
+
*/
|
|
1098
|
+
declare const RandomHSLColor: (options?: {
|
|
1099
|
+
saturation?: [number, number];
|
|
1100
|
+
lightness?: [number, number];
|
|
1101
|
+
}) => string;
|
|
1102
|
+
|
|
1103
|
+
declare class AsymmetricalEncryptionService {
|
|
1104
|
+
constructor();
|
|
1105
|
+
generateKeyPair(modulusLength?: number): Observable<CryptoKeyPair>;
|
|
1106
|
+
encryptData(publicKey: CryptoKey, data: string): Observable<string>;
|
|
1107
|
+
decryptData(privateKey: CryptoKey, encryptedData: string): Observable<string>;
|
|
1108
|
+
pemToArrayBuffer(pem: string): ArrayBuffer;
|
|
1109
|
+
base64ToArrayBuffer(base64: string): ArrayBuffer;
|
|
1110
|
+
arrayBufferToBase64(buffer: ArrayBuffer): string;
|
|
1111
|
+
base64ToPEM(base64Key: string, publicKey?: boolean): string;
|
|
1112
|
+
pemToCryptoKey(pem: string, algorithm: RsaHashedKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], format?: any): Observable<CryptoKey>;
|
|
1113
|
+
testGenerateKeys(): Observable<string>;
|
|
1114
|
+
testDecryptionWithKeys(): Observable<string>;
|
|
1115
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AsymmetricalEncryptionService, never>;
|
|
1116
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<AsymmetricalEncryptionService>;
|
|
1117
|
+
}
|
|
1118
|
+
|
|
1119
|
+
declare const Random: () => number;
|
|
1120
|
+
declare const RandomNumber: (min: number, max: number) => number;
|
|
1121
|
+
declare const RandomNumbers: (min: number, max: number, length: number) => number[];
|
|
1122
|
+
declare const RandomNumbersUnique: (min: number, max: number, length: number) => number[];
|
|
1123
|
+
declare const RandomStr: () => string;
|
|
1124
|
+
declare const RandomSignature: () => number;
|
|
1125
|
+
declare const UUID: () => `${string}-${string}-${string}-${string}-${string}`;
|
|
1126
|
+
/**
|
|
1127
|
+
* Generate a UUID string (legacy format)
|
|
1128
|
+
*/
|
|
1129
|
+
declare const UUID_STR: () => string;
|
|
1130
|
+
|
|
1131
|
+
interface ErrorDisplaySettingsInterface {
|
|
1132
|
+
displayTime: number;
|
|
1133
|
+
position: string;
|
|
1134
|
+
}
|
|
1135
|
+
declare class ErrorDisplaySettings implements ErrorDisplaySettingsInterface {
|
|
1136
|
+
displayTime: number;
|
|
1137
|
+
position: string;
|
|
1138
|
+
constructor(displayTime?: number, position?: string);
|
|
1139
|
+
static adapt(item?: any): ErrorDisplaySettings;
|
|
1140
|
+
}
|
|
1141
|
+
|
|
1142
|
+
declare class WithCredentialsInterceptor implements HttpInterceptor {
|
|
1143
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
1144
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WithCredentialsInterceptor, never>;
|
|
1145
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<WithCredentialsInterceptor>;
|
|
1146
|
+
}
|
|
1147
|
+
|
|
1148
|
+
declare class RequestHeadersInterceptor implements HttpInterceptor {
|
|
1149
|
+
private translate;
|
|
1150
|
+
subscriptions: Subscription;
|
|
1151
|
+
language: string;
|
|
1152
|
+
get currentDate(): string;
|
|
1153
|
+
constructor(translate: TranslateService);
|
|
1154
|
+
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
1155
|
+
ngOnDestroy(): void;
|
|
1156
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RequestHeadersInterceptor, never>;
|
|
1157
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RequestHeadersInterceptor>;
|
|
1158
|
+
}
|
|
1159
|
+
|
|
1160
|
+
declare class RequestErrorInterceptor implements HttpInterceptor {
|
|
1161
|
+
toastMessage: ToastMessageDisplayService;
|
|
1162
|
+
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
1163
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RequestErrorInterceptor, never>;
|
|
1164
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RequestErrorInterceptor>;
|
|
1165
|
+
}
|
|
1166
|
+
|
|
1167
|
+
declare class HttpRequestServicesDemoComponent implements OnInit {
|
|
1168
|
+
private configOptions?;
|
|
1169
|
+
wsServer: string;
|
|
1170
|
+
jwtToken: string;
|
|
1171
|
+
server: string;
|
|
1172
|
+
user?: UserData;
|
|
1173
|
+
path: string[];
|
|
1174
|
+
wsChannel: string;
|
|
1175
|
+
adapter?: Function;
|
|
1176
|
+
mapper?: Function;
|
|
1177
|
+
requestTypes: ({
|
|
1178
|
+
name: string;
|
|
1179
|
+
value: string;
|
|
1180
|
+
new?: undefined;
|
|
1181
|
+
divider?: undefined;
|
|
1182
|
+
disabled?: undefined;
|
|
1183
|
+
} | {
|
|
1184
|
+
name: string;
|
|
1185
|
+
value: string;
|
|
1186
|
+
new: boolean;
|
|
1187
|
+
divider?: undefined;
|
|
1188
|
+
disabled?: undefined;
|
|
1189
|
+
} | {
|
|
1190
|
+
name: string;
|
|
1191
|
+
value: string;
|
|
1192
|
+
divider: boolean;
|
|
1193
|
+
disabled: boolean;
|
|
1194
|
+
new?: undefined;
|
|
1195
|
+
})[];
|
|
1196
|
+
selectedService: string;
|
|
1197
|
+
injectionOptions?: ConfigOptions;
|
|
1198
|
+
constructor(configOptions?: ConfigOptions | undefined);
|
|
1199
|
+
ngOnInit(): void;
|
|
1200
|
+
onSelected(type: number): void;
|
|
1201
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpRequestServicesDemoComponent, never>;
|
|
1202
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<HttpRequestServicesDemoComponent, "app-http-request-services-demo", never, { "wsServer": { "alias": "wsServer"; "required": false; }; "jwtToken": { "alias": "jwtToken"; "required": false; }; "server": { "alias": "server"; "required": false; }; "user": { "alias": "user"; "required": false; }; "path": { "alias": "path"; "required": false; }; "wsChannel": { "alias": "wsChannel"; "required": false; }; "adapter": { "alias": "adapter"; "required": false; }; "mapper": { "alias": "mapper"; "required": false; }; }, {}, never, never, false, never>;
|
|
1203
|
+
}
|
|
1204
|
+
|
|
1205
|
+
interface ClientInfoInterface$1 {
|
|
1206
|
+
domain: string;
|
|
1207
|
+
service: string;
|
|
1208
|
+
id: number;
|
|
1209
|
+
name: string;
|
|
1210
|
+
}
|
|
1211
|
+
declare class ClientInfo$1 implements ClientInfoInterface$1 {
|
|
1212
|
+
domain: string;
|
|
1213
|
+
service: string;
|
|
1214
|
+
id: number;
|
|
1215
|
+
name: string;
|
|
1216
|
+
constructor(domain?: string, service?: string, id?: number, name?: string);
|
|
1217
|
+
static adapt(item?: any): ClientInfo$1;
|
|
1218
|
+
}
|
|
1219
|
+
|
|
1220
|
+
declare class StateManagerDemoService extends HTTPManagerStateService<any> {
|
|
1221
|
+
constructor();
|
|
1222
|
+
setAPIOptions(apiOptions: ApiRequest, dataType: DataType, database?: DatabaseStorage): void;
|
|
1223
|
+
getClients(): void;
|
|
1224
|
+
createClient(data: any): void;
|
|
1225
|
+
updateClient(data: ClientInfo$1): void;
|
|
1226
|
+
deleteClient(data: ClientInfo$1): void;
|
|
1227
|
+
streamRequest(): void;
|
|
1228
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StateManagerDemoService, never>;
|
|
1229
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StateManagerDemoService>;
|
|
1230
|
+
}
|
|
1231
|
+
|
|
1232
|
+
interface ClientInfoMapperInterface$1 {
|
|
1233
|
+
id: number;
|
|
1234
|
+
first_name: string;
|
|
1235
|
+
last_name: string;
|
|
1236
|
+
email: string;
|
|
1237
|
+
}
|
|
1238
|
+
declare class ClientInfoMapper$1 implements ClientInfoMapperInterface$1 {
|
|
1239
|
+
id: number;
|
|
1240
|
+
first_name: string;
|
|
1241
|
+
last_name: string;
|
|
1242
|
+
email: string;
|
|
1243
|
+
constructor(id?: number, first_name?: string, last_name?: string, email?: string);
|
|
1244
|
+
static adapt(item?: any): ClientInfoMapper$1;
|
|
1245
|
+
}
|
|
1246
|
+
|
|
1247
|
+
interface AIPromptInterface$1 {
|
|
1248
|
+
response: string;
|
|
1249
|
+
}
|
|
1250
|
+
declare class AIPrompt$1 implements AIPromptInterface$1 {
|
|
1251
|
+
response: string;
|
|
1252
|
+
constructor(response?: string);
|
|
1253
|
+
static adapt(item?: any): AIPrompt$1;
|
|
1254
|
+
}
|
|
1255
|
+
|
|
1256
|
+
declare class RequestManagerStateDemoComponent implements OnInit {
|
|
1257
|
+
server: string;
|
|
1258
|
+
adapter?: Function;
|
|
1259
|
+
mapper?: Function;
|
|
1260
|
+
stateManagerDemoService: StateManagerDemoService;
|
|
1261
|
+
displayedColumns: string[];
|
|
1262
|
+
getColumnsFromData(data: any[]): string[];
|
|
1263
|
+
updateDisplayedColumns(data: any[]): void;
|
|
1264
|
+
isObject(value: any): boolean;
|
|
1265
|
+
getDataLength(data: any): number;
|
|
1266
|
+
selectedRecord$?: Observable<ClientInfo$1 | null>;
|
|
1267
|
+
fb: FormBuilder;
|
|
1268
|
+
streamTypes: {
|
|
1269
|
+
id: string;
|
|
1270
|
+
value: string;
|
|
1271
|
+
}[];
|
|
1272
|
+
streamType: string;
|
|
1273
|
+
httpManagerService: HTTPManagerService<any>;
|
|
1274
|
+
isPending$: Observable<boolean>;
|
|
1275
|
+
error$: Observable<boolean>;
|
|
1276
|
+
countdown$: Observable<number>;
|
|
1277
|
+
GET_error$: BehaviorSubject<string>;
|
|
1278
|
+
POST_error$: BehaviorSubject<string>;
|
|
1279
|
+
PUT_error$: BehaviorSubject<string>;
|
|
1280
|
+
DELETE_error$: BehaviorSubject<string>;
|
|
1281
|
+
STREAM_error$: BehaviorSubject<string>;
|
|
1282
|
+
STREAM_AI_error$: BehaviorSubject<string>;
|
|
1283
|
+
GET$: BehaviorSubject<any>;
|
|
1284
|
+
POST$: BehaviorSubject<null>;
|
|
1285
|
+
PUT$: BehaviorSubject<null>;
|
|
1286
|
+
DELETE$: BehaviorSubject<null>;
|
|
1287
|
+
STREAM: BehaviorSubject<null>;
|
|
1288
|
+
STREAM$: Observable<null>;
|
|
1289
|
+
STREAM_AI: BehaviorSubject<{
|
|
1290
|
+
response: string;
|
|
1291
|
+
}[]>;
|
|
1292
|
+
STREAM_AI$: Observable<any>;
|
|
1293
|
+
failedState: any;
|
|
1294
|
+
pollingState: any;
|
|
1295
|
+
questionControl: _angular_forms.FormControl<string | null>;
|
|
1296
|
+
requestType: string;
|
|
1297
|
+
prompts: string[];
|
|
1298
|
+
AIType: number;
|
|
1299
|
+
get dataObservable$(): BehaviorSubject<any> | BehaviorSubject<null> | BehaviorSubject<{
|
|
1300
|
+
response: string;
|
|
1301
|
+
}[]>;
|
|
1302
|
+
sampleClientData: {
|
|
1303
|
+
id: number;
|
|
1304
|
+
name: string;
|
|
1305
|
+
domain: string;
|
|
1306
|
+
service: string;
|
|
1307
|
+
spiffe: string;
|
|
1308
|
+
secret: string;
|
|
1309
|
+
created: number;
|
|
1310
|
+
modified: number;
|
|
1311
|
+
icon: string;
|
|
1312
|
+
imageFile: string;
|
|
1313
|
+
};
|
|
1314
|
+
selectedRecord: _angular_forms.FormControl<null>;
|
|
1315
|
+
requestForm: _angular_forms.FormGroup<{
|
|
1316
|
+
datatype: _angular_forms.FormControl<string | null>;
|
|
1317
|
+
path: _angular_forms.FormControl<string | null>;
|
|
1318
|
+
headers: FormArray<_angular_forms.FormControl<unknown>>;
|
|
1319
|
+
adapter: _angular_forms.FormControl<null>;
|
|
1320
|
+
mapper: _angular_forms.FormControl<null>;
|
|
1321
|
+
retry: _angular_forms.FormGroup<{
|
|
1322
|
+
times: _angular_forms.FormControl<number | null>;
|
|
1323
|
+
delay: _angular_forms.FormControl<number | null>;
|
|
1324
|
+
}>;
|
|
1325
|
+
polling: _angular_forms.FormControl<number | null>;
|
|
1326
|
+
database: _angular_forms.FormGroup<{
|
|
1327
|
+
table: _angular_forms.FormControl<string | null>;
|
|
1328
|
+
expiresIn: _angular_forms.FormControl<string | null>;
|
|
1329
|
+
}>;
|
|
1330
|
+
}>;
|
|
1331
|
+
get hasChanged(): boolean;
|
|
1332
|
+
get dataType(): string | null | undefined;
|
|
1333
|
+
get database(): {
|
|
1334
|
+
table: string | null;
|
|
1335
|
+
expiresIn: string | null;
|
|
1336
|
+
} | undefined;
|
|
1337
|
+
get retry(): {
|
|
1338
|
+
times: number | null;
|
|
1339
|
+
delay: number | null;
|
|
1340
|
+
} | undefined;
|
|
1341
|
+
sampleAdaptors: ({
|
|
1342
|
+
label: string;
|
|
1343
|
+
value: typeof ClientInfo$1.adapt;
|
|
1344
|
+
} | {
|
|
1345
|
+
label: string;
|
|
1346
|
+
value: typeof AIPrompt$1.adapt;
|
|
1347
|
+
})[];
|
|
1348
|
+
sampleMappers: ({
|
|
1349
|
+
label: string;
|
|
1350
|
+
value: typeof ClientInfoMapper$1.adapt;
|
|
1351
|
+
} | {
|
|
1352
|
+
label: string;
|
|
1353
|
+
value: typeof AIPrompt$1.adapt;
|
|
1354
|
+
})[];
|
|
1355
|
+
get headers(): FormArray;
|
|
1356
|
+
get isValid(): boolean;
|
|
1357
|
+
arrayObjectsToObjects: (arr: any[]) => any;
|
|
1358
|
+
props: (adapter: any) => any;
|
|
1359
|
+
constructor();
|
|
1360
|
+
ngOnInit(): void;
|
|
1361
|
+
onStreamType(type: string): void;
|
|
1362
|
+
addHeader(): void;
|
|
1363
|
+
removeHeader(index: number): void;
|
|
1364
|
+
compileRequest(): {
|
|
1365
|
+
apiOptions: ApiRequest;
|
|
1366
|
+
path: string[];
|
|
1367
|
+
};
|
|
1368
|
+
onSetStateOptions(): void;
|
|
1369
|
+
onClearRecords(): void;
|
|
1370
|
+
onGetRequest(): void;
|
|
1371
|
+
onCreateRequest(): void;
|
|
1372
|
+
onUpdateRequest(): void;
|
|
1373
|
+
onDeleteRequest(): void;
|
|
1374
|
+
onStreamRequest(): void;
|
|
1375
|
+
errorHandling(err: any, type: string): void;
|
|
1376
|
+
onSelectAIType(type: number): void;
|
|
1377
|
+
onClearHistory(): void;
|
|
1378
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RequestManagerStateDemoComponent, never>;
|
|
1379
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RequestManagerStateDemoComponent, "app-request-manager-state-demo", never, { "server": { "alias": "server"; "required": false; }; "adapter": { "alias": "adapter"; "required": false; }; "mapper": { "alias": "mapper"; "required": false; }; }, {}, never, never, false, never>;
|
|
1380
|
+
}
|
|
1381
|
+
|
|
1382
|
+
declare class RequestManagerDemoComponent implements OnInit {
|
|
1383
|
+
server: string;
|
|
1384
|
+
adapter?: Function;
|
|
1385
|
+
mapper?: Function;
|
|
1386
|
+
displayedColumns: string[];
|
|
1387
|
+
getColumnsFromData(data: any[]): string[];
|
|
1388
|
+
updateDisplayedColumns(data: any[]): void;
|
|
1389
|
+
isObject(value: any): boolean;
|
|
1390
|
+
private fb;
|
|
1391
|
+
private toastMessage;
|
|
1392
|
+
questionControl: _angular_forms.FormControl<string | null>;
|
|
1393
|
+
httpManagerService: HTTPManagerService<any>;
|
|
1394
|
+
isPending$: Observable<boolean>;
|
|
1395
|
+
countdown$: Observable<number>;
|
|
1396
|
+
GET_error$: BehaviorSubject<string>;
|
|
1397
|
+
POST_error$: BehaviorSubject<string>;
|
|
1398
|
+
PUT_error$: BehaviorSubject<string>;
|
|
1399
|
+
DELETE_error$: BehaviorSubject<string>;
|
|
1400
|
+
STREAM_error$: BehaviorSubject<string>;
|
|
1401
|
+
STREAM_AI_error$: BehaviorSubject<string>;
|
|
1402
|
+
GET$?: Observable<any>;
|
|
1403
|
+
POST$?: Observable<any>;
|
|
1404
|
+
PUT$?: Observable<any>;
|
|
1405
|
+
DELETE$?: Observable<any>;
|
|
1406
|
+
STREAM$?: Observable<any>;
|
|
1407
|
+
STREAM_AI$?: Observable<any>;
|
|
1408
|
+
requestParams: {
|
|
1409
|
+
GET: ApiRequest;
|
|
1410
|
+
POST: ApiRequest;
|
|
1411
|
+
PUT: ApiRequest;
|
|
1412
|
+
DELETE: ApiRequest;
|
|
1413
|
+
STREAM: ApiRequest;
|
|
1414
|
+
};
|
|
1415
|
+
streamTypes: {
|
|
1416
|
+
id: string;
|
|
1417
|
+
value: string;
|
|
1418
|
+
}[];
|
|
1419
|
+
streamType: string;
|
|
1420
|
+
failedState: any;
|
|
1421
|
+
pollingState: any;
|
|
1422
|
+
downloadRequest: ApiRequest;
|
|
1423
|
+
sampleClientData: {
|
|
1424
|
+
id: number;
|
|
1425
|
+
name: string;
|
|
1426
|
+
domain: string;
|
|
1427
|
+
service: string;
|
|
1428
|
+
spiffe: string;
|
|
1429
|
+
secret: string;
|
|
1430
|
+
created: number;
|
|
1431
|
+
modified: number;
|
|
1432
|
+
icon: string;
|
|
1433
|
+
imageFile: string;
|
|
1434
|
+
email: string;
|
|
1435
|
+
};
|
|
1436
|
+
requestForm: _angular_forms.FormGroup<{
|
|
1437
|
+
path: _angular_forms.FormControl<string | null>;
|
|
1438
|
+
headers: FormArray<_angular_forms.FormControl<unknown>>;
|
|
1439
|
+
adapter: _angular_forms.FormControl<null>;
|
|
1440
|
+
mapper: _angular_forms.FormControl<null>;
|
|
1441
|
+
retry: _angular_forms.FormGroup<{
|
|
1442
|
+
times: _angular_forms.FormControl<number | null>;
|
|
1443
|
+
delay: _angular_forms.FormControl<number | null>;
|
|
1444
|
+
}>;
|
|
1445
|
+
polling: _angular_forms.FormControl<number | null>;
|
|
1446
|
+
}>;
|
|
1447
|
+
AIType: number;
|
|
1448
|
+
sampleAdaptors: ({
|
|
1449
|
+
label: string;
|
|
1450
|
+
value: typeof ClientInfo$1.adapt;
|
|
1451
|
+
} | {
|
|
1452
|
+
label: string;
|
|
1453
|
+
value: typeof AIPrompt$1.adapt;
|
|
1454
|
+
})[];
|
|
1455
|
+
sampleMappers: ({
|
|
1456
|
+
label: string;
|
|
1457
|
+
value: typeof ClientInfoMapper$1.adapt;
|
|
1458
|
+
} | {
|
|
1459
|
+
label: string;
|
|
1460
|
+
value: typeof AIPrompt$1.adapt;
|
|
1461
|
+
})[];
|
|
1462
|
+
get retry(): {
|
|
1463
|
+
times: number | null;
|
|
1464
|
+
delay: number | null;
|
|
1465
|
+
} | undefined;
|
|
1466
|
+
get headers(): FormArray;
|
|
1467
|
+
get isValid(): boolean;
|
|
1468
|
+
hasId: (arr: any[]) => boolean;
|
|
1469
|
+
props: (adapter: any) => any;
|
|
1470
|
+
arrayObjectsToObjects: (arr: any[]) => any;
|
|
1471
|
+
constructor();
|
|
1472
|
+
ngOnInit(): void;
|
|
1473
|
+
onStreamType(type: string): void;
|
|
1474
|
+
addHeader(): void;
|
|
1475
|
+
removeHeader(index: number): void;
|
|
1476
|
+
compileRequest(): {
|
|
1477
|
+
apiOptions: ApiRequest;
|
|
1478
|
+
path: string[];
|
|
1479
|
+
};
|
|
1480
|
+
onGetRequest(): void;
|
|
1481
|
+
onCreateRequest(): void;
|
|
1482
|
+
onUpdateRequest(): void;
|
|
1483
|
+
onDeleteRequest(): void;
|
|
1484
|
+
onStreamPostRequest(): void;
|
|
1485
|
+
onStreamRequest(): void;
|
|
1486
|
+
onDownloadCompleted(): void;
|
|
1487
|
+
onDownloadFailed(err: string): void;
|
|
1488
|
+
errorHandling(err: any, type: string): void;
|
|
1489
|
+
onSelectAIType(type: number): void;
|
|
1490
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RequestManagerDemoComponent, never>;
|
|
1491
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RequestManagerDemoComponent, "app-request-manager-demo", never, { "server": { "alias": "server"; "required": false; }; "adapter": { "alias": "adapter"; "required": false; }; "mapper": { "alias": "mapper"; "required": false; }; }, {}, never, never, false, never>;
|
|
1492
|
+
}
|
|
1493
|
+
|
|
1494
|
+
interface ClientInfoInterface {
|
|
1495
|
+
domain: string;
|
|
1496
|
+
service: string;
|
|
1497
|
+
id: number;
|
|
1498
|
+
name: string;
|
|
1499
|
+
}
|
|
1500
|
+
declare class ClientInfo implements ClientInfoInterface {
|
|
1501
|
+
domain: string;
|
|
1502
|
+
service: string;
|
|
1503
|
+
id: number;
|
|
1504
|
+
name: string;
|
|
1505
|
+
constructor(domain?: string, service?: string, id?: number, name?: string);
|
|
1506
|
+
static adapt(item?: any): ClientInfo;
|
|
1507
|
+
}
|
|
1508
|
+
|
|
1509
|
+
interface ClientInfoMapperInterface {
|
|
1510
|
+
id: number;
|
|
1511
|
+
first_name: string;
|
|
1512
|
+
last_name: string;
|
|
1513
|
+
email: string;
|
|
1514
|
+
}
|
|
1515
|
+
declare class ClientInfoMapper implements ClientInfoMapperInterface {
|
|
1516
|
+
id: number;
|
|
1517
|
+
first_name: string;
|
|
1518
|
+
last_name: string;
|
|
1519
|
+
email: string;
|
|
1520
|
+
constructor(id?: number, first_name?: string, last_name?: string, email?: string);
|
|
1521
|
+
static adapt(item?: any): ClientInfoMapper;
|
|
1522
|
+
}
|
|
1523
|
+
|
|
1524
|
+
interface AIPromptInterface {
|
|
1525
|
+
response: string;
|
|
1526
|
+
}
|
|
1527
|
+
declare class AIPrompt implements AIPromptInterface {
|
|
1528
|
+
response: string;
|
|
1529
|
+
constructor(response?: string);
|
|
1530
|
+
static adapt(item?: any): AIPrompt;
|
|
1531
|
+
}
|
|
1532
|
+
|
|
1533
|
+
declare class RequestSignalsManagerDemoComponent implements OnInit {
|
|
1534
|
+
displayedColumns: string[];
|
|
1535
|
+
private fb;
|
|
1536
|
+
private toastMessage;
|
|
1537
|
+
httpManagerSignalsService: HTTPManagerSignalsService<any>;
|
|
1538
|
+
isPending: i0.WritableSignal<boolean>;
|
|
1539
|
+
countdown: i0.WritableSignal<number>;
|
|
1540
|
+
GET_result: any;
|
|
1541
|
+
POST_result: any;
|
|
1542
|
+
PUT_result: any;
|
|
1543
|
+
DELETE_result: any;
|
|
1544
|
+
STREAM_result: any;
|
|
1545
|
+
STREAM_AI_result: any;
|
|
1546
|
+
GET_error: string;
|
|
1547
|
+
POST_error: string;
|
|
1548
|
+
PUT_error: string;
|
|
1549
|
+
DELETE_error: string;
|
|
1550
|
+
STREAM_error: string;
|
|
1551
|
+
STREAM_AI_error: string;
|
|
1552
|
+
requestParams: {
|
|
1553
|
+
GET: ApiRequest;
|
|
1554
|
+
POST: ApiRequest;
|
|
1555
|
+
PUT: ApiRequest;
|
|
1556
|
+
DELETE: ApiRequest;
|
|
1557
|
+
STREAM: ApiRequest;
|
|
1558
|
+
};
|
|
1559
|
+
failedState: any;
|
|
1560
|
+
pollingState: any;
|
|
1561
|
+
questionControl: _angular_forms.FormControl<string | null>;
|
|
1562
|
+
downloadRequest: ApiRequest;
|
|
1563
|
+
sampleClientData: {
|
|
1564
|
+
id: number;
|
|
1565
|
+
name: string;
|
|
1566
|
+
domain: string;
|
|
1567
|
+
service: string;
|
|
1568
|
+
spiffe: string;
|
|
1569
|
+
secret: string;
|
|
1570
|
+
created: number;
|
|
1571
|
+
modified: number;
|
|
1572
|
+
icon: string;
|
|
1573
|
+
imageFile: string;
|
|
1574
|
+
email: string;
|
|
1575
|
+
};
|
|
1576
|
+
requestForm: _angular_forms.FormGroup<{
|
|
1577
|
+
path: _angular_forms.FormControl<string | null>;
|
|
1578
|
+
headers: FormArray<_angular_forms.FormControl<unknown>>;
|
|
1579
|
+
adapter: _angular_forms.FormControl<null>;
|
|
1580
|
+
mapper: _angular_forms.FormControl<null>;
|
|
1581
|
+
retry: _angular_forms.FormGroup<{
|
|
1582
|
+
times: _angular_forms.FormControl<number | null>;
|
|
1583
|
+
delay: _angular_forms.FormControl<number | null>;
|
|
1584
|
+
}>;
|
|
1585
|
+
polling: _angular_forms.FormControl<number | null>;
|
|
1586
|
+
}>;
|
|
1587
|
+
AIType: number;
|
|
1588
|
+
sampleAdaptors: ({
|
|
1589
|
+
label: string;
|
|
1590
|
+
value: typeof ClientInfo.adapt;
|
|
1591
|
+
} | {
|
|
1592
|
+
label: string;
|
|
1593
|
+
value: typeof AIPrompt.adapt;
|
|
1594
|
+
})[];
|
|
1595
|
+
sampleMappers: ({
|
|
1596
|
+
label: string;
|
|
1597
|
+
value: typeof ClientInfoMapper.adapt;
|
|
1598
|
+
} | {
|
|
1599
|
+
label: string;
|
|
1600
|
+
value: typeof AIPrompt.adapt;
|
|
1601
|
+
})[];
|
|
1602
|
+
get retry(): {
|
|
1603
|
+
times: number | null;
|
|
1604
|
+
delay: number | null;
|
|
1605
|
+
} | undefined;
|
|
1606
|
+
get headers(): FormArray;
|
|
1607
|
+
get isValid(): boolean;
|
|
1608
|
+
hasId: (arr: any[]) => boolean;
|
|
1609
|
+
props: (adapter: any) => any;
|
|
1610
|
+
arrayObjectsToObjects: (arr: any[]) => any;
|
|
1611
|
+
constructor();
|
|
1612
|
+
ngOnInit(): void;
|
|
1613
|
+
addHeader(): void;
|
|
1614
|
+
removeHeader(index: number): void;
|
|
1615
|
+
compileRequest(): {
|
|
1616
|
+
apiOptions: ApiRequest;
|
|
1617
|
+
path: string[];
|
|
1618
|
+
};
|
|
1619
|
+
onGetRequest(): void;
|
|
1620
|
+
onCreateRequest(): void;
|
|
1621
|
+
onUpdateRequest(): void;
|
|
1622
|
+
onDeleteRequest(): void;
|
|
1623
|
+
onStreamPostRequest(): void;
|
|
1624
|
+
onStreamRequest(): void;
|
|
1625
|
+
onDownloadCompleted(): void;
|
|
1626
|
+
onDownloadFailed(err: string): void;
|
|
1627
|
+
errorHandling(err: any, type: string): any;
|
|
1628
|
+
onSelectAIType(type: number): void;
|
|
1629
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RequestSignalsManagerDemoComponent, never>;
|
|
1630
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RequestSignalsManagerDemoComponent, "app-request-signals-manager-demo", never, {}, {}, never, never, false, never>;
|
|
1631
|
+
}
|
|
1632
|
+
|
|
1633
|
+
declare class LocalStorageDemoComponent implements OnInit {
|
|
1634
|
+
private configOptions?;
|
|
1635
|
+
fb: FormBuilder;
|
|
1636
|
+
utils: UtilsService;
|
|
1637
|
+
type$: BehaviorSubject<StorageType>;
|
|
1638
|
+
get type(): number;
|
|
1639
|
+
typeControl: _angular_forms.FormControl<string | null>;
|
|
1640
|
+
localStorageManagerService: LocalStorageManagerService;
|
|
1641
|
+
settings$: Observable<any>;
|
|
1642
|
+
setting$: (store: string) => Observable<StorageOption | null>;
|
|
1643
|
+
storageForm: _angular_forms.FormGroup<{
|
|
1644
|
+
store: _angular_forms.FormControl<string | null>;
|
|
1645
|
+
type: _angular_forms.FormControl<string | null>;
|
|
1646
|
+
settingType: _angular_forms.FormControl<string | null>;
|
|
1647
|
+
encrypted: _angular_forms.FormControl<boolean | null>;
|
|
1648
|
+
data: _angular_forms.FormControl<string | null>;
|
|
1649
|
+
}>;
|
|
1650
|
+
newStoreForm: _angular_forms.FormGroup<{
|
|
1651
|
+
name: _angular_forms.FormControl<string | null>;
|
|
1652
|
+
storage: _angular_forms.FormControl<string | null>;
|
|
1653
|
+
encrypted: _angular_forms.FormControl<boolean | null>;
|
|
1654
|
+
data: _angular_forms.FormControl<string | null>;
|
|
1655
|
+
expiresIn: _angular_forms.FormControl<string | null>;
|
|
1656
|
+
}>;
|
|
1657
|
+
store$?: Observable<any>;
|
|
1658
|
+
storeData$: Observable<any> | undefined;
|
|
1659
|
+
expiresIn: (epoch: number) => string | undefined;
|
|
1660
|
+
get isValid(): boolean;
|
|
1661
|
+
get isValidData(): boolean;
|
|
1662
|
+
isValidJSON: (str: string) => boolean;
|
|
1663
|
+
displayedColumns: string[];
|
|
1664
|
+
filterData: (values: SettingOptions[]) => SettingOptions[];
|
|
1665
|
+
data$?: Observable<any>;
|
|
1666
|
+
store: any;
|
|
1667
|
+
create: boolean;
|
|
1668
|
+
storeProps?: LocalStorageOptions;
|
|
1669
|
+
options?: SettingOptions;
|
|
1670
|
+
constructor(configOptions?: ConfigOptions | undefined);
|
|
1671
|
+
ngOnInit(): void;
|
|
1672
|
+
onCreateStore(): void;
|
|
1673
|
+
onUpdateStore(store: any): void;
|
|
1674
|
+
onSelectedRow(store: any): void;
|
|
1675
|
+
onCreate(): void;
|
|
1676
|
+
onDelete(store: StorageOption): void;
|
|
1677
|
+
onCancel(): void;
|
|
1678
|
+
onUpdate(store: StorageOption, data: any): void;
|
|
1679
|
+
onReset(): void;
|
|
1680
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageDemoComponent, never>;
|
|
1681
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LocalStorageDemoComponent, "app-local-storage-demo", never, {}, {}, never, never, false, never>;
|
|
1682
|
+
}
|
|
1683
|
+
|
|
1684
|
+
declare class LocalStorageSignalsDemoComponent implements OnInit {
|
|
1685
|
+
private configOptions?;
|
|
1686
|
+
fb: FormBuilder;
|
|
1687
|
+
utils: UtilsService;
|
|
1688
|
+
get type(): number;
|
|
1689
|
+
typeControl: _angular_forms.FormControl<string | null>;
|
|
1690
|
+
localStorageManagerService: LocalStorageSignalsManagerService;
|
|
1691
|
+
readonly settings: i0.Signal<StorageOption[]>;
|
|
1692
|
+
storeSelected: i0.WritableSignal<StorageOption | null>;
|
|
1693
|
+
selectedStoreData: i0.Signal<string>;
|
|
1694
|
+
selectedType: i0.WritableSignal<number>;
|
|
1695
|
+
filteredSettings: i0.Signal<StorageOption[]>;
|
|
1696
|
+
storageForm: _angular_forms.FormGroup<{
|
|
1697
|
+
store: _angular_forms.FormControl<string | null>;
|
|
1698
|
+
type: _angular_forms.FormControl<string | null>;
|
|
1699
|
+
settingType: _angular_forms.FormControl<string | null>;
|
|
1700
|
+
encrypted: _angular_forms.FormControl<boolean | null>;
|
|
1701
|
+
data: _angular_forms.FormControl<string | null>;
|
|
1702
|
+
}>;
|
|
1703
|
+
newStoreForm: _angular_forms.FormGroup<{
|
|
1704
|
+
name: _angular_forms.FormControl<string | null>;
|
|
1705
|
+
storage: _angular_forms.FormControl<string | null>;
|
|
1706
|
+
encrypted: _angular_forms.FormControl<boolean | null>;
|
|
1707
|
+
data: _angular_forms.FormControl<string | null>;
|
|
1708
|
+
expiresIn: _angular_forms.FormControl<string | null>;
|
|
1709
|
+
}>;
|
|
1710
|
+
expiresIn: (epoch: number) => string | undefined;
|
|
1711
|
+
get isValid(): boolean;
|
|
1712
|
+
get isValidData(): boolean;
|
|
1713
|
+
isValidJSON: (str: string) => boolean;
|
|
1714
|
+
displayedColumns: string[];
|
|
1715
|
+
filterData: (values: StorageOption[] | null | undefined) => StorageOption[];
|
|
1716
|
+
settingFor(name: string): StorageOption | null;
|
|
1717
|
+
store: any;
|
|
1718
|
+
create: boolean;
|
|
1719
|
+
storeProps?: LocalStorageOptions;
|
|
1720
|
+
options?: SettingOptions;
|
|
1721
|
+
constructor(configOptions?: ConfigOptions | undefined);
|
|
1722
|
+
ngOnInit(): void;
|
|
1723
|
+
onCreateStore(): void;
|
|
1724
|
+
onUpdateStore(store: any): void;
|
|
1725
|
+
onSelectedRow(store: any): void;
|
|
1726
|
+
onCreate(): void;
|
|
1727
|
+
onDelete(store: StorageOption): void;
|
|
1728
|
+
onCancel(): void;
|
|
1729
|
+
onUpdate(store: StorageOption, data: any): void;
|
|
1730
|
+
onReset(): void;
|
|
1731
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageSignalsDemoComponent, never>;
|
|
1732
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LocalStorageSignalsDemoComponent, "app-local-storage-signals-demo", never, {}, {}, never, never, false, never>;
|
|
1733
|
+
}
|
|
1734
|
+
|
|
1735
|
+
/**
|
|
1736
|
+
* StateServiceDemo - Core state management and WebSocket connection service
|
|
1737
|
+
*
|
|
1738
|
+
* Handles:
|
|
1739
|
+
* - WebSocket connection setup
|
|
1740
|
+
* - Base HTTP state management
|
|
1741
|
+
* - Connection status and retry logic
|
|
1742
|
+
*/
|
|
1743
|
+
declare class StateServiceDemo extends HTTPManagerStateService<any> {
|
|
1744
|
+
attempts$: rxjs.Observable<number>;
|
|
1745
|
+
nextRetry$: rxjs.Observable<number>;
|
|
1746
|
+
constructor();
|
|
1747
|
+
/**
|
|
1748
|
+
* Initialize WebSocket connection with server configuration
|
|
1749
|
+
*/
|
|
1750
|
+
updateConnection(server: string, wsServer: string, jwtToken: string, user: any): void;
|
|
1751
|
+
/**
|
|
1752
|
+
* Get all available channels
|
|
1753
|
+
*/
|
|
1754
|
+
getAllChannels(): void;
|
|
1755
|
+
/**
|
|
1756
|
+
* Subscribe to a channel
|
|
1757
|
+
*/
|
|
1758
|
+
subscribeToChannel(channel: string): void;
|
|
1759
|
+
/**
|
|
1760
|
+
* Unsubscribe from a channel
|
|
1761
|
+
*/
|
|
1762
|
+
unsubscribeFromChannel(channel: string): void;
|
|
1763
|
+
/**
|
|
1764
|
+
* Create a notification channel (MES- prefix)
|
|
1765
|
+
*/
|
|
1766
|
+
createNotificationChannel(channel: string): void;
|
|
1767
|
+
/**
|
|
1768
|
+
* Get all notification channels list (in-memory)
|
|
1769
|
+
*/
|
|
1770
|
+
getNotificationChannels(): void;
|
|
1771
|
+
/**
|
|
1772
|
+
* Get today's notification channels from database
|
|
1773
|
+
* Returns unique channels that have notifications posted today
|
|
1774
|
+
*/
|
|
1775
|
+
getTodaysNotificationChannels(): void;
|
|
1776
|
+
/**
|
|
1777
|
+
* Define and load previous day's notification channels from database
|
|
1778
|
+
* Creates channels in memory and broadcasts updated list
|
|
1779
|
+
*/
|
|
1780
|
+
definePreviousNotificationChannels(): void;
|
|
1781
|
+
/**
|
|
1782
|
+
* Subscribe to notification channel with optional date filters
|
|
1783
|
+
*/
|
|
1784
|
+
subscribeToNotificationChannel(channel: string, options?: {
|
|
1785
|
+
startEpoch?: number;
|
|
1786
|
+
endEpoch?: number;
|
|
1787
|
+
}, user?: any): void;
|
|
1788
|
+
/**
|
|
1789
|
+
* Unsubscribe from notification channel
|
|
1790
|
+
*/
|
|
1791
|
+
unsubscribeFromNotificationChannel(channel: string): void;
|
|
1792
|
+
/**
|
|
1793
|
+
* Send a notification to a channel
|
|
1794
|
+
*/
|
|
1795
|
+
sendNotification(channel: string, content: any): void;
|
|
1796
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StateServiceDemo, never>;
|
|
1797
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StateServiceDemo>;
|
|
1798
|
+
}
|
|
1799
|
+
|
|
1800
|
+
/**
|
|
1801
|
+
* MessageServiceDemo - Channel messaging service (PUB- prefix channels)
|
|
1802
|
+
*
|
|
1803
|
+
* Handles:
|
|
1804
|
+
* - Sending messages to channels
|
|
1805
|
+
* - Channel subscription for messaging
|
|
1806
|
+
* - Real-time message broadcast
|
|
1807
|
+
*/
|
|
1808
|
+
declare class MessageServiceDemo {
|
|
1809
|
+
private stateService;
|
|
1810
|
+
channels$: rxjs.Observable<string[] | null>;
|
|
1811
|
+
subscribedChannels$: rxjs.Observable<Set<string>>;
|
|
1812
|
+
communicationMessages$: rxjs.Observable<any[]>;
|
|
1813
|
+
latestCommunicationMessages$: rxjs.Observable<any>;
|
|
1814
|
+
connectionStatus$: rxjs.Observable<boolean>;
|
|
1815
|
+
user$: rxjs.Observable<http_request_manager.WSUser | null>;
|
|
1816
|
+
data$: rxjs.Observable<any>;
|
|
1817
|
+
/**
|
|
1818
|
+
* Helper to ensure channel has PUB- prefix
|
|
1819
|
+
*/
|
|
1820
|
+
private toPublicChannel;
|
|
1821
|
+
/**
|
|
1822
|
+
* Helper to strip PUB- prefix for display
|
|
1823
|
+
*/
|
|
1824
|
+
private fromPublicChannel;
|
|
1825
|
+
/**
|
|
1826
|
+
* Create a new public channel
|
|
1827
|
+
*/
|
|
1828
|
+
createChannel(channel: string): void;
|
|
1829
|
+
/**
|
|
1830
|
+
* Get all available channels
|
|
1831
|
+
*/
|
|
1832
|
+
getAllChannels(): void;
|
|
1833
|
+
/**
|
|
1834
|
+
* Subscribe to a channel to receive messages
|
|
1835
|
+
*/
|
|
1836
|
+
subscribeToChannel(channel: string): void;
|
|
1837
|
+
/**
|
|
1838
|
+
* Unsubscribe from a channel
|
|
1839
|
+
*/
|
|
1840
|
+
unsubscribeFromChannel(channel: string): void;
|
|
1841
|
+
/**
|
|
1842
|
+
* Send a message to one or more channels
|
|
1843
|
+
*/
|
|
1844
|
+
sendMessage(data: ChannelMessage, channels?: string[]): void;
|
|
1845
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<MessageServiceDemo, never>;
|
|
1846
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<MessageServiceDemo>;
|
|
1847
|
+
}
|
|
1848
|
+
|
|
1849
|
+
/**
|
|
1850
|
+
* NotificationServiceDemo - Notification channel service (MES- prefix channels)
|
|
1851
|
+
*
|
|
1852
|
+
* Handles:
|
|
1853
|
+
* - Creating notification channels
|
|
1854
|
+
* - Subscribing to notifications with date filters
|
|
1855
|
+
* - Sending notifications (persisted to database)
|
|
1856
|
+
* - Receiving real-time and historical notifications
|
|
1857
|
+
*/
|
|
1858
|
+
declare class NotificationServiceDemo {
|
|
1859
|
+
private stateService;
|
|
1860
|
+
notificationChannels$: rxjs.Observable<string[]>;
|
|
1861
|
+
todaysNotificationChannels$: rxjs.Observable<string[]>;
|
|
1862
|
+
private subscribedNotificationChannelsSubject;
|
|
1863
|
+
subscribedNotificationChannels$: rxjs.Observable<Set<string>>;
|
|
1864
|
+
notificationMessages$: rxjs.Observable<any[]>;
|
|
1865
|
+
latestNotification$: rxjs.Observable<any>;
|
|
1866
|
+
connectionStatus$: rxjs.Observable<boolean>;
|
|
1867
|
+
/**
|
|
1868
|
+
* Create a notification channel
|
|
1869
|
+
* NOTE: MES- prefix is added automatically by HTTPManagerStateService
|
|
1870
|
+
*/
|
|
1871
|
+
createNotificationChannel(channel: string): void;
|
|
1872
|
+
/**
|
|
1873
|
+
* Get all notification channels (in-memory)
|
|
1874
|
+
*/
|
|
1875
|
+
getNotificationChannels(): void;
|
|
1876
|
+
/**
|
|
1877
|
+
* Get today's notification channels from database
|
|
1878
|
+
* Returns unique channels that have notifications posted today
|
|
1879
|
+
*/
|
|
1880
|
+
getTodaysNotificationChannels(): void;
|
|
1881
|
+
/**
|
|
1882
|
+
* Define and load previous day's notification channels from database
|
|
1883
|
+
* Creates channels in memory and broadcasts updated list
|
|
1884
|
+
*/
|
|
1885
|
+
definePreviousNotificationChannels(): void;
|
|
1886
|
+
/**
|
|
1887
|
+
* Subscribe to a notification channel with optional date filter
|
|
1888
|
+
* NOTE: MES- prefix is added automatically by HTTPManagerStateService
|
|
1889
|
+
* @param channel Base channel name (without MES- prefix)
|
|
1890
|
+
* @param options { startEpoch?, endEpoch? }
|
|
1891
|
+
* @param user User info for subscription
|
|
1892
|
+
*/
|
|
1893
|
+
subscribeToNotificationChannel(channel: string, options?: {
|
|
1894
|
+
startEpoch?: number;
|
|
1895
|
+
endEpoch?: number;
|
|
1896
|
+
}, user?: any): void;
|
|
1897
|
+
/**
|
|
1898
|
+
* Unsubscribe from a notification channel
|
|
1899
|
+
* NOTE: MES- prefix is added automatically by HTTPManagerStateService
|
|
1900
|
+
*/
|
|
1901
|
+
unsubscribeFromNotificationChannel(channel: string): void;
|
|
1902
|
+
/**
|
|
1903
|
+
* Send a notification to a channel
|
|
1904
|
+
* NOTE: MES- prefix is added automatically by HTTPManagerStateService
|
|
1905
|
+
*/
|
|
1906
|
+
sendNotification(channel: string, content: any, user?: any): void;
|
|
1907
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationServiceDemo, never>;
|
|
1908
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationServiceDemo>;
|
|
1909
|
+
}
|
|
1910
|
+
|
|
1911
|
+
declare class RequestManagerWsDemoComponent implements OnInit {
|
|
1912
|
+
httpManagerService: HTTPManagerService<any>;
|
|
1913
|
+
stateService: StateServiceDemo;
|
|
1914
|
+
fb: FormBuilder;
|
|
1915
|
+
server: string;
|
|
1916
|
+
wsServer: string;
|
|
1917
|
+
jwtToken: string;
|
|
1918
|
+
user: any;
|
|
1919
|
+
path: string[];
|
|
1920
|
+
wsChannel: string;
|
|
1921
|
+
user$: rxjs.Observable<WSUser | null>;
|
|
1922
|
+
attempts$: rxjs.Observable<number>;
|
|
1923
|
+
nextRetry$: rxjs.Observable<number>;
|
|
1924
|
+
connectionStatus$: rxjs.Observable<boolean>;
|
|
1925
|
+
data$: rxjs.Observable<any>;
|
|
1926
|
+
isPending$: rxjs.Observable<boolean>;
|
|
1927
|
+
ngOnInit(): void;
|
|
1928
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RequestManagerWsDemoComponent, never>;
|
|
1929
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<RequestManagerWsDemoComponent, "app-request-manager-ws-demo", never, { "server": { "alias": "server"; "required": false; }; "wsServer": { "alias": "wsServer"; "required": false; }; "jwtToken": { "alias": "jwtToken"; "required": false; }; "user": { "alias": "user"; "required": false; }; "path": { "alias": "path"; "required": false; }; "wsChannel": { "alias": "wsChannel"; "required": false; }; }, {}, never, never, false, never>;
|
|
1930
|
+
}
|
|
1931
|
+
|
|
1932
|
+
declare class SettingsStateService extends StoreStateManagerService {
|
|
1933
|
+
constructor();
|
|
1934
|
+
updateEnum_1(value: any): void;
|
|
1935
|
+
updateEnum_2(value: any): void;
|
|
1936
|
+
getEnum(key: string): rxjs.Observable<any>;
|
|
1937
|
+
getEnum_1(): rxjs.Observable<any>;
|
|
1938
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SettingsStateService, never>;
|
|
1939
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<SettingsStateService>;
|
|
1940
|
+
}
|
|
1941
|
+
|
|
1942
|
+
declare class StoreStateManagerDemoComponent implements OnInit {
|
|
1943
|
+
settingsStateService: SettingsStateService;
|
|
1944
|
+
dataState$: rxjs.Observable<any>;
|
|
1945
|
+
dataEnum$: rxjs.Observable<any>;
|
|
1946
|
+
ngOnInit(): void;
|
|
1947
|
+
onUpdateEnum_1(): void;
|
|
1948
|
+
onUpdateEnum_2(): void;
|
|
1949
|
+
onGetEnum_1(): void;
|
|
1950
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StoreStateManagerDemoComponent, never>;
|
|
1951
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<StoreStateManagerDemoComponent, "app-store-state-manager-demo", never, {}, {}, never, never, false, never>;
|
|
1952
|
+
}
|
|
1953
|
+
|
|
1954
|
+
interface TableRecord {
|
|
1955
|
+
id: number;
|
|
1956
|
+
last_name: string;
|
|
1957
|
+
age: number;
|
|
1958
|
+
amount: number;
|
|
1959
|
+
}
|
|
1960
|
+
declare class DatabaseDataDemoComponent implements OnInit, OnDestroy {
|
|
1961
|
+
db: DatabaseManagerService;
|
|
1962
|
+
private destroy$;
|
|
1963
|
+
dataToDisplay: TableRecord[];
|
|
1964
|
+
dataSource: DatabaseDataSource;
|
|
1965
|
+
displayedColumns: string[];
|
|
1966
|
+
names: string[];
|
|
1967
|
+
constructor();
|
|
1968
|
+
ngOnDestroy(): void;
|
|
1969
|
+
addData(): void;
|
|
1970
|
+
removeData(): void;
|
|
1971
|
+
updateData(): void;
|
|
1972
|
+
clearAllData(): void;
|
|
1973
|
+
private refreshData;
|
|
1974
|
+
ngOnInit(): void;
|
|
1975
|
+
createTable(tableDef: TableSchemaDef): Observable<boolean>;
|
|
1976
|
+
findTableRecords(table: string, column: string, value: any): Observable<any>;
|
|
1977
|
+
findTableRecord(table: string, column: string, value: any): Observable<any>;
|
|
1978
|
+
getTableRecords(table: string): Observable<any>;
|
|
1979
|
+
getTableRecord(table: string, id: number): Observable<any>;
|
|
1980
|
+
createTableRecord<T>(table: string, record: T): Observable<any>;
|
|
1981
|
+
updateTableRecord<T>(table: string, record: T): Observable<any>;
|
|
1982
|
+
deleteTableRecord<T>(table: string, id: number): Observable<any>;
|
|
1983
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DatabaseDataDemoComponent, never>;
|
|
1984
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DatabaseDataDemoComponent, "app-database-data-demo", never, {}, {}, never, never, false, never>;
|
|
1985
|
+
}
|
|
1986
|
+
declare class DatabaseDataSource extends DataSource<TableRecord> {
|
|
1987
|
+
private _dataStream;
|
|
1988
|
+
constructor(initialData: TableRecord[]);
|
|
1989
|
+
connect(): Observable<TableRecord[]>;
|
|
1990
|
+
disconnect(): void;
|
|
1991
|
+
setData(data: TableRecord[]): void;
|
|
1992
|
+
}
|
|
1993
|
+
|
|
1994
|
+
declare class StateDataRequestService extends HTTPManagerStateService<any> {
|
|
1995
|
+
attempts$: rxjs.Observable<number>;
|
|
1996
|
+
nextRetry$: rxjs.Observable<number>;
|
|
1997
|
+
path: string[];
|
|
1998
|
+
constructor();
|
|
1999
|
+
updateConnection(server: string, wsServer: string, jwtToken: string, user: any, path?: string[], wsChannel?: string): void;
|
|
2000
|
+
addData(): void;
|
|
2001
|
+
sendMessage(data: ChannelMessage): void;
|
|
2002
|
+
getData(): void;
|
|
2003
|
+
updateData(data: any): void;
|
|
2004
|
+
deleteData(data: any): void;
|
|
2005
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StateDataRequestService, never>;
|
|
2006
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StateDataRequestService>;
|
|
2007
|
+
}
|
|
2008
|
+
|
|
2009
|
+
declare class WsDataControlComponent implements OnInit {
|
|
2010
|
+
server: string;
|
|
2011
|
+
wsServer: string;
|
|
2012
|
+
jwtToken: string;
|
|
2013
|
+
user: any;
|
|
2014
|
+
path: string[];
|
|
2015
|
+
wsChannel: string;
|
|
2016
|
+
stateDataRequestService: StateDataRequestService;
|
|
2017
|
+
user$: rxjs.Observable<http_request_manager.WSUser | null>;
|
|
2018
|
+
users$: rxjs.Observable<any[]>;
|
|
2019
|
+
userAction$: rxjs.Observable<any>;
|
|
2020
|
+
data$: rxjs.Observable<any>;
|
|
2021
|
+
isUser: (user: any, userItem: any) => boolean;
|
|
2022
|
+
ngOnInit(): void;
|
|
2023
|
+
onGetData(): void;
|
|
2024
|
+
onAddData(): void;
|
|
2025
|
+
onUpdateData(data: any[]): void;
|
|
2026
|
+
onRemoveData(data: any): void;
|
|
2027
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WsDataControlComponent, never>;
|
|
2028
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WsDataControlComponent, "app-ws-data-control", never, { "server": { "alias": "server"; "required": false; }; "wsServer": { "alias": "wsServer"; "required": false; }; "jwtToken": { "alias": "jwtToken"; "required": false; }; "user": { "alias": "user"; "required": false; }; "path": { "alias": "path"; "required": false; }; "wsChannel": { "alias": "wsChannel"; "required": false; }; }, {}, never, never, false, never>;
|
|
2029
|
+
}
|
|
2030
|
+
|
|
2031
|
+
declare class WsMessagingComponent implements OnInit, OnDestroy {
|
|
2032
|
+
server: string;
|
|
2033
|
+
wsServer: string;
|
|
2034
|
+
jwtToken: string;
|
|
2035
|
+
user: any;
|
|
2036
|
+
private destroy$;
|
|
2037
|
+
fb: FormBuilder;
|
|
2038
|
+
messageService: MessageServiceDemo;
|
|
2039
|
+
stateService: StateServiceDemo;
|
|
2040
|
+
toastService: ToastMessageDisplayService;
|
|
2041
|
+
channels$: Observable<string[]>;
|
|
2042
|
+
subscribedChannels$: Observable<string[]>;
|
|
2043
|
+
user$: Observable<WSUser | null>;
|
|
2044
|
+
data$: Observable<any>;
|
|
2045
|
+
connectionStatus$: Observable<boolean>;
|
|
2046
|
+
newChannelName: FormControl<string | null>;
|
|
2047
|
+
messages: _angular_forms.FormGroup<{
|
|
2048
|
+
selectedChannels: FormControl<string[] | null>;
|
|
2049
|
+
content: FormControl<string | null>;
|
|
2050
|
+
}>;
|
|
2051
|
+
get selectedChannels(): FormControl;
|
|
2052
|
+
get content(): FormControl;
|
|
2053
|
+
communicationMessages$: Observable<any[]>;
|
|
2054
|
+
latestCommunicationMessages$: Observable<any>;
|
|
2055
|
+
chat$: Observable<{
|
|
2056
|
+
user: any;
|
|
2057
|
+
messages: any[];
|
|
2058
|
+
} | any>;
|
|
2059
|
+
ngOnInit(): void;
|
|
2060
|
+
ngOnDestroy(): void;
|
|
2061
|
+
/**
|
|
2062
|
+
* Create a new public channel without auto-subscribing
|
|
2063
|
+
* NOTE: PUB- prefix is added by messageService.createChannel
|
|
2064
|
+
*/
|
|
2065
|
+
onCreateChannel(): void;
|
|
2066
|
+
/**
|
|
2067
|
+
* Subscribe to a channel to receive messages
|
|
2068
|
+
* NOTE: PUB- prefix is added by messageService.subscribeToChannel
|
|
2069
|
+
*/
|
|
2070
|
+
onSubscribeToChannel(channel: string): void;
|
|
2071
|
+
/**
|
|
2072
|
+
* Unsubscribe from a channel
|
|
2073
|
+
* NOTE: PUB- prefix is added by messageService.unsubscribeFromChannel
|
|
2074
|
+
*/
|
|
2075
|
+
onUnsubscribeFromChannel(channel: string): void;
|
|
2076
|
+
/**
|
|
2077
|
+
* Handle chip toggle for subscribe/unsubscribe
|
|
2078
|
+
*/
|
|
2079
|
+
onChipToggle(channel: string, event: any): void;
|
|
2080
|
+
/**
|
|
2081
|
+
* Check if currently subscribed to a channel
|
|
2082
|
+
* Compares display names (without PUB- prefix)
|
|
2083
|
+
*/
|
|
2084
|
+
isSubscribed(channel: string, subscribedChannels: string[]): boolean;
|
|
2085
|
+
/**
|
|
2086
|
+
* Handle chip click - toggle subscription state
|
|
2087
|
+
*/
|
|
2088
|
+
onChipClick(channel: string, subscribedChannels: string[]): void;
|
|
2089
|
+
onSendMessage(user: WSUser): void;
|
|
2090
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WsMessagingComponent, never>;
|
|
2091
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WsMessagingComponent, "app-ws-messaging", never, { "server": { "alias": "server"; "required": false; }; "wsServer": { "alias": "wsServer"; "required": false; }; "jwtToken": { "alias": "jwtToken"; "required": false; }; "user": { "alias": "user"; "required": false; }; }, {}, never, never, false, never>;
|
|
2092
|
+
}
|
|
2093
|
+
|
|
2094
|
+
declare class WsNotificationsComponent implements OnInit, OnDestroy {
|
|
2095
|
+
server: string;
|
|
2096
|
+
wsServer: string;
|
|
2097
|
+
jwtToken: string;
|
|
2098
|
+
user: any;
|
|
2099
|
+
private destroy$;
|
|
2100
|
+
fb: FormBuilder;
|
|
2101
|
+
notificationService: NotificationServiceDemo;
|
|
2102
|
+
stateService: StateServiceDemo;
|
|
2103
|
+
todaysNotificationChannels$: rxjs.Observable<string[]>;
|
|
2104
|
+
subscribedNotificationChannels$: rxjs.Observable<string[]>;
|
|
2105
|
+
notificationMessages$: rxjs.Observable<any[]>;
|
|
2106
|
+
connectionStatus$: rxjs.Observable<boolean>;
|
|
2107
|
+
/**
|
|
2108
|
+
* Helper to ensure channel has MES- prefix for outgoing communication
|
|
2109
|
+
*/
|
|
2110
|
+
private toNotificationChannel;
|
|
2111
|
+
newChannelName: FormControl<string | null>;
|
|
2112
|
+
selectedConnectionChannel: FormControl<string | null>;
|
|
2113
|
+
connectedChannel: string | null;
|
|
2114
|
+
displayedColumns: string[];
|
|
2115
|
+
dateFilter: _angular_forms.FormGroup<{
|
|
2116
|
+
startDate: FormControl<Date | null>;
|
|
2117
|
+
endDate: FormControl<Date | null>;
|
|
2118
|
+
}>;
|
|
2119
|
+
notificationForm: _angular_forms.FormGroup<{
|
|
2120
|
+
content: FormControl<string | null>;
|
|
2121
|
+
}>;
|
|
2122
|
+
get content(): FormControl;
|
|
2123
|
+
/**
|
|
2124
|
+
* Check if currently connected to a channel
|
|
2125
|
+
*/
|
|
2126
|
+
isChannelConnected(subscribedChannels: string[]): boolean;
|
|
2127
|
+
/**
|
|
2128
|
+
* Connect to the selected channel
|
|
2129
|
+
*/
|
|
2130
|
+
onConnectToChannel(): void;
|
|
2131
|
+
/**
|
|
2132
|
+
* Disconnect from the current channel
|
|
2133
|
+
*/
|
|
2134
|
+
onDisconnectFromChannel(): void;
|
|
2135
|
+
ngOnInit(): void;
|
|
2136
|
+
ngOnDestroy(): void;
|
|
2137
|
+
/**
|
|
2138
|
+
* Create a new notification channel
|
|
2139
|
+
*/
|
|
2140
|
+
onCreateChannel(): void;
|
|
2141
|
+
/**
|
|
2142
|
+
* Define and load previous channels
|
|
2143
|
+
*/
|
|
2144
|
+
onDefinePreviousChannels(): void;
|
|
2145
|
+
/**
|
|
2146
|
+
* Subscribe to a notification channel with optional date filter
|
|
2147
|
+
*/
|
|
2148
|
+
onSubscribeToChannel(channel: string): void;
|
|
2149
|
+
/**
|
|
2150
|
+
* Unsubscribe from a notification channel
|
|
2151
|
+
*/
|
|
2152
|
+
onUnsubscribeFromChannel(channel: string): void;
|
|
2153
|
+
/**
|
|
2154
|
+
* Check if currently subscribed to a channel
|
|
2155
|
+
*/
|
|
2156
|
+
isSubscribed(channel: string, subscribedChannels: string[]): boolean;
|
|
2157
|
+
/**
|
|
2158
|
+
* Handle chip click - toggle subscription state
|
|
2159
|
+
*/
|
|
2160
|
+
onChipClick(channel: string, subscribedChannels: string[]): void;
|
|
2161
|
+
/**
|
|
2162
|
+
* Send a notification
|
|
2163
|
+
*/
|
|
2164
|
+
onSendNotification(): void;
|
|
2165
|
+
/**
|
|
2166
|
+
* Format epoch timestamp to readable date/time
|
|
2167
|
+
*/
|
|
2168
|
+
formatTimestamp(epoch: number): string;
|
|
2169
|
+
/**
|
|
2170
|
+
* Get today's date in YYYY-MM-DD format for date input default
|
|
2171
|
+
*/
|
|
2172
|
+
getTodayDate(): string;
|
|
2173
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WsNotificationsComponent, never>;
|
|
2174
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WsNotificationsComponent, "app-ws-notifications", never, { "server": { "alias": "server"; "required": false; }; "wsServer": { "alias": "wsServer"; "required": false; }; "jwtToken": { "alias": "jwtToken"; "required": false; }; "user": { "alias": "user"; "required": false; }; }, {}, never, never, false, never>;
|
|
2175
|
+
}
|
|
2176
|
+
|
|
2177
|
+
declare class WsAiMessagingComponent implements OnInit {
|
|
2178
|
+
constructor();
|
|
2179
|
+
ngOnInit(): void;
|
|
2180
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WsAiMessagingComponent, never>;
|
|
2181
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WsAiMessagingComponent, "app-ws-ai-messaging", never, {}, {}, never, never, false, never>;
|
|
2182
|
+
}
|
|
2183
|
+
|
|
2184
|
+
declare class WsChatsComponent implements OnInit {
|
|
2185
|
+
constructor();
|
|
2186
|
+
ngOnInit(): void;
|
|
2187
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<WsChatsComponent, never>;
|
|
2188
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<WsChatsComponent, "app-ws-chats", never, {}, {}, never, never, false, never>;
|
|
2189
|
+
}
|
|
2190
|
+
|
|
2191
|
+
declare class SpinnerComponent implements OnInit {
|
|
2192
|
+
color: ThemePalette;
|
|
2193
|
+
diameter?: number;
|
|
2194
|
+
display?: string | number;
|
|
2195
|
+
mode?: ProgressSpinnerMode;
|
|
2196
|
+
strokeWidth?: number;
|
|
2197
|
+
value: number;
|
|
2198
|
+
constructor();
|
|
2199
|
+
ngOnInit(): void;
|
|
2200
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerComponent, never>;
|
|
2201
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SpinnerComponent, "app-spinner", never, { "color": { "alias": "color"; "required": false; }; "diameter": { "alias": "diameter"; "required": false; }; "display": { "alias": "display"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; "value": { "alias": "value"; "required": false; }; }, {}, never, never, false, never>;
|
|
2202
|
+
}
|
|
2203
|
+
|
|
2204
|
+
declare class DownloadFileComponent implements OnInit {
|
|
2205
|
+
private subscriptions;
|
|
2206
|
+
event?: Function;
|
|
2207
|
+
displayError: number;
|
|
2208
|
+
diameter: number;
|
|
2209
|
+
mode: ProgressSpinnerMode;
|
|
2210
|
+
isPending: boolean;
|
|
2211
|
+
active: boolean;
|
|
2212
|
+
disabled: boolean;
|
|
2213
|
+
error: EventEmitter<void>;
|
|
2214
|
+
private _progress;
|
|
2215
|
+
set progress(value: any);
|
|
2216
|
+
get progress(): any;
|
|
2217
|
+
private _hasError;
|
|
2218
|
+
private errorTimerActive;
|
|
2219
|
+
set hasError(value: boolean | any);
|
|
2220
|
+
get hasError(): boolean | any;
|
|
2221
|
+
ngOnInit(): void;
|
|
2222
|
+
onAction(): void;
|
|
2223
|
+
ngOnDestroy(): void;
|
|
2224
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DownloadFileComponent, never>;
|
|
2225
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DownloadFileComponent, "app-download-file", never, { "event": { "alias": "event"; "required": false; }; "displayError": { "alias": "displayError"; "required": false; }; "diameter": { "alias": "diameter"; "required": false; }; "mode": { "alias": "mode"; "required": false; }; "isPending": { "alias": "isPending"; "required": false; }; "active": { "alias": "active"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "progress": { "alias": "progress"; "required": false; }; "hasError": { "alias": "hasError"; "required": false; }; }, { "error": "error"; }, never, never, false, never>;
|
|
2226
|
+
}
|
|
2227
|
+
|
|
2228
|
+
interface DownloadLabelsInterface {
|
|
2229
|
+
error: string;
|
|
2230
|
+
action: string;
|
|
2231
|
+
icon: string;
|
|
2232
|
+
}
|
|
2233
|
+
declare class DownloadLabels implements DownloadLabelsInterface {
|
|
2234
|
+
error: string;
|
|
2235
|
+
action: string;
|
|
2236
|
+
icon: string;
|
|
2237
|
+
constructor(error?: string, action?: string, icon?: string);
|
|
2238
|
+
static adapt(item?: any): DownloadLabelsInterface;
|
|
2239
|
+
}
|
|
2240
|
+
|
|
2241
|
+
declare class FileDownloaderComponent extends HTTPManagerService<any> implements OnInit {
|
|
2242
|
+
delayError: number;
|
|
2243
|
+
apiRequest: ApiRequest;
|
|
2244
|
+
displayErrorMessage: boolean;
|
|
2245
|
+
saveFileAs?: string;
|
|
2246
|
+
_labels: DownloadLabelsInterface;
|
|
2247
|
+
set labels(value: DownloadLabels);
|
|
2248
|
+
active: boolean;
|
|
2249
|
+
subscription: Subscription;
|
|
2250
|
+
get labels(): DownloadLabels;
|
|
2251
|
+
completed: EventEmitter<void>;
|
|
2252
|
+
failed: EventEmitter<string>;
|
|
2253
|
+
disabled: boolean;
|
|
2254
|
+
constructor();
|
|
2255
|
+
ngOnInit(): void;
|
|
2256
|
+
onDownloadStreaming(): Subscription | undefined;
|
|
2257
|
+
onError(message: string): void;
|
|
2258
|
+
OnDestroy(): void;
|
|
2259
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileDownloaderComponent, never>;
|
|
2260
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FileDownloaderComponent, "app-file-downloader", never, { "delayError": { "alias": "delayError"; "required": false; }; "apiRequest": { "alias": "apiRequest"; "required": false; }; "displayErrorMessage": { "alias": "displayErrorMessage"; "required": false; }; "saveFileAs": { "alias": "saveFileAs"; "required": false; }; "labels": { "alias": "labels"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, { "completed": "completed"; "failed": "failed"; }, never, never, false, never>;
|
|
2261
|
+
}
|
|
2262
|
+
|
|
2263
|
+
declare class FileDownloaderModule {
|
|
2264
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FileDownloaderModule, never>;
|
|
2265
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FileDownloaderModule, [typeof SpinnerComponent, typeof DownloadFileComponent, typeof FileDownloaderComponent], [typeof i4.CommonModule, typeof i5.MatIconModule, typeof i6.MatProgressSpinnerModule, typeof i7.MatButtonModule], [typeof FileDownloaderComponent]>;
|
|
2266
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FileDownloaderModule>;
|
|
2267
|
+
}
|
|
2268
|
+
|
|
2269
|
+
declare class HttpRequestManagerModule {
|
|
2270
|
+
static forRoot(config?: ConfigOptions): ModuleWithProviders<HttpRequestManagerModule>;
|
|
2271
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HttpRequestManagerModule, never>;
|
|
2272
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<HttpRequestManagerModule, [typeof HttpRequestServicesDemoComponent, typeof RequestManagerStateDemoComponent, typeof RequestManagerDemoComponent, typeof RequestSignalsManagerDemoComponent, typeof LocalStorageDemoComponent, typeof LocalStorageSignalsDemoComponent, typeof RequestManagerWsDemoComponent, typeof StoreStateManagerDemoComponent, typeof DatabaseDataDemoComponent, typeof WsDataControlComponent, typeof WsMessagingComponent, typeof WsNotificationsComponent, typeof WsAiMessagingComponent, typeof WsChatsComponent], [typeof i4.CommonModule, typeof i16.ToastMessageDisplayModule, typeof _angular_forms.FormsModule, typeof _angular_forms.ReactiveFormsModule, typeof i7.MatButtonModule, typeof i19.MatTabsModule, typeof i20.MatSelectModule, typeof i21.MatChipsModule, typeof i22.MatMenuModule, typeof i5.MatIconModule, typeof i24.MatTableModule, typeof i25.MatButtonToggleModule, typeof i26.MatAutocompleteModule, typeof i27.MatProgressBarModule, typeof i28.MatSlideToggleModule, typeof i29.MatDividerModule, typeof i30.MatFormFieldModule, typeof i31.MatInputModule, typeof i32.MatToolbarModule, typeof i28.MatSlideToggleModule, typeof i33.TranslateModule, typeof i34.MatSidenavModule, typeof i35.MatDatepickerModule, typeof i36.MatNativeDateModule, typeof FileDownloaderModule], [typeof HttpRequestServicesDemoComponent]>;
|
|
2273
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<HttpRequestManagerModule>;
|
|
2274
|
+
}
|
|
2275
|
+
|
|
2276
|
+
export { ApiRequest, AppService, AsymmetricalEncryptionService, CONFIG_SETTINGS_TOKEN, ChannelInfo, ChannelType, CommunicationType, ConfigHTTPOptions, ConfigOptions, DataType, DatabaseDataDemoComponent, DatabaseManagerService, DatabaseStorage, DbService, ErrorDisplaySettings, GlobalStoreOptions, HTTPManagerService, HTTPManagerSignalsService, HTTPManagerStateService, HeadersService, HttpRequestManagerModule, HttpRequestServicesDemoComponent, LocalStorageDemoComponent, LocalStorageManagerService, LocalStorageOptions, LocalStorageSignalsManagerService, PathQueryService, Random, RandomHSLColor, RandomHexColor, RandomNumber, RandomNumbers, RandomNumbersUnique, RandomPaletteColor, RandomSignature, RandomStr, RandomVisibleColor, RequestErrorInterceptor, RequestHeadersInterceptor, RequestManagerDemoComponent, RequestManagerStateDemoComponent, RequestOptions, RequestService, RequestSignalsService, RetryOptions, SettingOptions, StateStorageOptions, StorageData, StorageOption, StorageType, StoreStateManagerService, StreamType, SymmetricalEncryptionService, TableSchemaDef, UUID, UUID_STR, UserData, UtilsService, WSOptions, WSUser, WebsocketService, WithCredentialsInterceptor, countdown, createChannelName, delayedRetry, requestPolling, requestStreaming, streamAI, streamAuto, streamEvents, streamJSON, streamNDJSON };
|
|
2277
|
+
export type { APIStateManagerData, ApiRequestInterface, ChannelInfoInterface, ConfigHTTPOptionsInterface, ConfigOptionsInterface, DatabaseStorageInterface, ErrorDisplaySettingsInterface, GlobalStoreOptionsInterface, LocalStorageOptionsInterface, ParsingResult, RequestOptionsInterface, RetryOptionsInterface, SettingOptionsInterface, State, StateStorageOptionsInterface, StateStoreManagerData, StorageDataInterface, StorageOptionInterface, StreamConfig, StreamEvent, TableRecord, TableSchemaDefInterface, UserDataInterface, WSOptionsInterface, WSUserInterface };
|