http-request-manager 18.15.33 → 18.15.34
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/TEST_COVERAGE_SUMMARY.md +458 -0
- package/ng-package.json +8 -0
- package/package.json +4 -13
- package/src/docs/ADVANCED_WEBSOCKET.md +633 -0
- package/src/docs/ARCHITECTURE.md +633 -0
- package/src/docs/BATCH_REQUEST_README.md +467 -0
- package/src/docs/COMPLETE_API_REFERENCE.md +1037 -0
- package/src/docs/DATABASE_README.md +1195 -0
- package/src/docs/ENCRYPTION_README.md +403 -0
- package/src/docs/HTTP_MANAGER_README.md +628 -0
- package/src/docs/HTTP_SINGNALS_MANAGER_README.md +654 -0
- package/src/docs/HTTP_STATE_MANAGER_README.md +1391 -0
- package/src/docs/INTERCEPTOR_README.md +549 -0
- package/src/docs/LOCAL_STORAGE_README.md +1056 -0
- package/src/docs/LOCAL_STORAGE_SIGNALS_README.md +338 -0
- package/src/docs/LOGGER_README.md +310 -0
- package/src/docs/MESSAGE_TRACKER_README.md +518 -0
- package/src/docs/MESSAGE_TRACKER_SIGNALS_README.md +563 -0
- package/src/docs/MODELS_README.md +1264 -0
- package/src/docs/SIGNAL_SERVICES_README.md +238 -0
- package/src/docs/SQL_DIXIE_README.md +574 -0
- package/src/docs/STORE_STATE_MANAGER_README.md +556 -0
- package/src/docs/STORE_STATE_SIGNALS_README.md +600 -0
- package/src/docs/UPLOAD_REQUEST_README.md +324 -0
- package/src/docs/UTILS_README.md +1604 -0
- package/src/docs/WEBSOCKET_MESSAGE_SERVICE.md +799 -0
- package/src/docs/WEBSOCKET_SIGNALS_README.md +641 -0
- package/src/docs/WEBSOCKET_SINGLETON_REFACTORING.md +201 -0
- package/src/docs/WS_MANAGER_README.md +613 -0
- package/src/lib/http-request-manager.module.ts +147 -0
- package/src/lib/http-request-services-demo/database-data-demo/database-data-demo.component.html +116 -0
- 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 +255 -0
- package/src/lib/http-request-services-demo/http-request-services-demo.component.html +123 -0
- package/src/lib/http-request-services-demo/http-request-services-demo.component.scss +6 -0
- package/src/lib/http-request-services-demo/http-request-services-demo.component.ts +53 -0
- package/src/lib/http-request-services-demo/local-storage-demo/local-storage-demo.component.html +195 -0
- package/src/lib/http-request-services-demo/local-storage-demo/local-storage-demo.component.scss +17 -0
- package/src/lib/http-request-services-demo/local-storage-demo/local-storage-demo.component.ts +208 -0
- package/src/lib/http-request-services-demo/local-storage-signals-demo/local-storage-signals-demo.component.html +200 -0
- package/src/lib/http-request-services-demo/local-storage-signals-demo/local-storage-signals-demo.component.scss +17 -0
- package/src/lib/http-request-services-demo/local-storage-signals-demo/local-storage-signals-demo.component.ts +214 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/file-downloader/download-file/download-file.component.html +53 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/file-downloader/download-file/download-file.component.scss +60 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/file-downloader/download-file/download-file.component.ts +72 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/file-downloader/file-download.module.ts +28 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/file-downloader/file-downloader.component.html +10 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/file-downloader/file-downloader.component.scss +29 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/file-downloader/file-downloader.component.ts +100 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/file-downloader/models/download-labels-model.ts +22 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/file-downloader/spinner/spinner.component.html +8 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/file-downloader/spinner/spinner.component.scss +19 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/file-downloader/spinner/spinner.component.ts +26 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/models/app-session.model.ts +30 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/models/app.model.ts +19 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/models/get-sample.model.ts +25 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/models/sample-ai-prompt.ts +19 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/models/sample-client-details.ts +24 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/models/sample-client-info.ts +30 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/models/sample-client.model.ts +49 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/models/sample-mapper-client-info.ts +33 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/request-manager-basic-demo.component.html +279 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/request-manager-basic-demo.component.scss +24 -0
- package/src/lib/http-request-services-demo/request-manager-basic-demo/request-manager-basic-demo.component.ts +461 -0
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/download-file/download-file.component.html +53 -0
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/download-file/download-file.component.scss +60 -0
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/download-file/download-file.component.ts +72 -0
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/file-download.module.ts +28 -0
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/file-downloader.component.html +10 -0
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/file-downloader.component.scss +29 -0
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/file-downloader.component.ts +100 -0
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/models/download-labels-model.ts +22 -0
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/spinner/spinner.component.html +8 -0
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/spinner/spinner.component.scss +19 -0
- package/src/lib/http-request-services-demo/request-manager-demo/file-downloader/spinner/spinner.component.ts +26 -0
- package/src/lib/http-request-services-demo/request-manager-demo/models/app-session.model.ts +30 -0
- package/src/lib/http-request-services-demo/request-manager-demo/models/app.model.ts +19 -0
- package/src/lib/http-request-services-demo/request-manager-demo/models/get-sample.model.ts +25 -0
- package/src/lib/http-request-services-demo/request-manager-demo/models/sample-ai-prompt.ts +19 -0
- package/src/lib/http-request-services-demo/request-manager-demo/models/sample-client-details.ts +24 -0
- package/src/lib/http-request-services-demo/request-manager-demo/models/sample-client-info.ts +30 -0
- package/src/lib/http-request-services-demo/request-manager-demo/models/sample-client.model.ts +49 -0
- package/src/lib/http-request-services-demo/request-manager-demo/models/sample-mapper-client-info.ts +33 -0
- package/src/lib/http-request-services-demo/request-manager-demo/request-manager-demo.component.html +622 -0
- package/src/lib/http-request-services-demo/request-manager-demo/request-manager-demo.component.scss +106 -0
- package/src/lib/http-request-services-demo/request-manager-demo/request-manager-demo.component.ts +687 -0
- package/src/lib/http-request-services-demo/request-manager-state-demo/request-manager-state-demo.component.html +418 -0
- package/src/lib/http-request-services-demo/request-manager-state-demo/request-manager-state-demo.component.scss +24 -0
- package/src/lib/http-request-services-demo/request-manager-state-demo/request-manager-state-demo.component.ts +576 -0
- package/src/lib/http-request-services-demo/request-manager-state-demo/services/state-manager-demo.service.ts +89 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/services/state-data-request.service.ts +119 -0
- 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 +3 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-ai-messaging/ws-ai-messaging.component.ts +16 -0
- 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 +3 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-chats/ws-chats.component.ts +16 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-data-control/ws-data-control.component.css +31 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-data-control/ws-data-control.component.html +94 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-data-control/ws-data-control.component.scss +41 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-data-control/ws-data-control.component.spec.ts +203 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-data-control/ws-data-control.component.ts +144 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-messaging/ws-messaging.component.css +11 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-messaging/ws-messaging.component.html +102 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-messaging/ws-messaging.component.spec.ts +40 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-messaging/ws-messaging.component.ts +230 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-notifications/ws-notifications.component.css +30 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-notifications/ws-notifications.component.html +172 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-notifications/ws-notifications.component.spec.ts +31 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/components/ws-notifications/ws-notifications.component.ts +239 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/models/oidc-client.model.ts +31 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/models/user-data.model.ts +32 -0
- 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 +84 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/request-manager-ws-demo.component.ts +40 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/services/index.ts +3 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/services/jwt-token.service.ts +62 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/services/message-service-demo.service.ts +83 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/services/notification-service-demo.service.ts +147 -0
- package/src/lib/http-request-services-demo/request-manager-ws-demo/services/state-service-demo.service.ts +168 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/download-file/download-file.component.html +53 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/download-file/download-file.component.scss +60 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/download-file/download-file.component.ts +72 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/file-download.module.ts +28 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/file-downloader.component.html +10 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/file-downloader.component.scss +29 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/file-downloader.component.ts +100 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/models/download-labels-model.ts +22 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/spinner/spinner.component.html +8 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/spinner/spinner.component.scss +19 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/file-downloader/spinner/spinner.component.ts +26 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/models/app-session.model.ts +30 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/models/app.model.ts +19 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/models/get-sample.model.ts +25 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/models/sample-ai-prompt.ts +19 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/models/sample-client-details.ts +24 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/models/sample-client-info.ts +30 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/models/sample-client.model.ts +49 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/models/sample-mapper-client-info.ts +33 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/request-signals-manager-demo.component.html +380 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/request-signals-manager-demo.component.scss +24 -0
- package/src/lib/http-request-services-demo/request-signals-manager-demo/request-signals-manager-demo.component.ts +410 -0
- package/src/lib/http-request-services-demo/store-state-manager-demo/models/settings.model.ts +28 -0
- package/src/lib/http-request-services-demo/store-state-manager-demo/services/settings-state.service.ts +49 -0
- 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 +23 -0
- package/src/lib/http-request-services-demo/store-state-manager-demo/store-state-manager-demo.component.ts +36 -0
- package/src/lib/http-request-services-demo/store-state-signals-demo/store-state-signals-demo.component.ts +161 -0
- package/src/lib/http-request-services-demo/upload-demo/models/index.ts +1 -0
- package/src/lib/http-request-services-demo/upload-demo/models/upload-state.model.ts +30 -0
- package/src/lib/http-request-services-demo/upload-demo/upload-demo.component.html +89 -0
- package/src/lib/http-request-services-demo/upload-demo/upload-demo.component.scss +160 -0
- package/src/lib/http-request-services-demo/upload-demo/upload-demo.component.spec.ts +101 -0
- package/src/lib/http-request-services-demo/upload-demo/upload-demo.component.ts +136 -0
- package/src/lib/index.ts +3 -0
- package/src/lib/interceptors/credentials.interceptor.ts +16 -0
- package/src/lib/interceptors/index.ts +6 -0
- package/src/lib/interceptors/models/error-settings.model.ts +22 -0
- package/src/lib/interceptors/models/index.ts +2 -0
- package/src/lib/interceptors/proxy-debugger.interceptor.ts +46 -0
- package/src/lib/interceptors/request-error.interceptor.ts +65 -0
- package/src/lib/interceptors/request-header.interceptor.ts +56 -0
- package/src/lib/message-display/README.md +509 -0
- package/src/lib/message-display/index.ts +4 -0
- package/src/lib/message-display/models/action.model.ts +27 -0
- package/src/lib/message-display/models/communication-message.model.ts +77 -0
- package/src/lib/message-display/models/display-config.model.ts +35 -0
- package/src/lib/message-display/models/display-rule.interface.ts +28 -0
- package/src/lib/message-display/models/display-strategy.interface.ts +8 -0
- package/src/lib/message-display/models/index.ts +6 -0
- package/src/lib/message-display/models/slide.model.ts +24 -0
- package/src/lib/message-display/rules/default-display-rules.ts +35 -0
- package/src/lib/message-display/services/message-display-router.service.ts +63 -0
- package/src/lib/message-display/strategies/snackbar.strategy.ts +46 -0
- package/src/lib/models/batch-options.model.ts +33 -0
- package/src/lib/models/batch-progress.model.ts +19 -0
- package/src/lib/models/batch-request-state.model.ts +40 -0
- package/src/lib/models/batch-result.model.ts +30 -0
- package/src/lib/models/config-http-options.model.ts +45 -0
- package/src/lib/models/config-local-storage-options.model.ts +27 -0
- package/src/lib/models/config-options.model.ts +27 -0
- package/src/lib/models/config-token.model.ts +9 -0
- package/src/lib/models/data-type.enum.ts +5 -0
- package/src/lib/models/database-storage.model.ts +24 -0
- package/src/lib/models/index.ts +16 -0
- package/src/lib/models/retry-options.model.ts +22 -0
- package/src/lib/models/upload-validation-error.model.ts +46 -0
- package/src/lib/services/SQL-DixieJS service/dexie-query-executor.ts +246 -0
- package/src/lib/services/SQL-DixieJS service/dexie-sql.service.ts +31 -0
- package/src/lib/services/SQL-DixieJS service/index.ts +4 -0
- package/src/lib/services/SQL-DixieJS service/models/execution-plan.model.ts +52 -0
- package/src/lib/services/SQL-DixieJS service/models/index.ts +3 -0
- package/src/lib/services/SQL-DixieJS service/models/sql-errors.model.ts +13 -0
- package/src/lib/services/SQL-DixieJS service/models/sql-options.model.ts +3 -0
- package/src/lib/services/SQL-DixieJS service/query-planner.ts +284 -0
- package/src/lib/services/SQL-DixieJS service/schema-validator.ts +217 -0
- package/src/lib/services/SQL-DixieJS service/sql-parser.ts +35 -0
- package/src/lib/services/database-manager-service/database.manager.service.ts +384 -0
- package/src/lib/services/database-manager-service/db.storage.service.ts +240 -0
- package/src/lib/services/database-manager-service/index.ts +4 -0
- package/src/lib/services/database-manager-service/models/index.ts +2 -0
- package/src/lib/services/database-manager-service/models/table-schema.ts +33 -0
- package/src/lib/services/index.ts +20 -0
- package/src/lib/services/local-storage-manager-service/index.ts +4 -0
- package/src/lib/services/local-storage-manager-service/local-storage-manager.service.spec.ts +71 -0
- package/src/lib/services/local-storage-manager-service/local-storage-manager.service.ts +567 -0
- package/src/lib/services/local-storage-manager-service/local-storage-signals-manager.service.spec.ts +67 -0
- package/src/lib/services/local-storage-manager-service/local-storage-signals-manager.service.ts +437 -0
- package/src/lib/services/local-storage-manager-service/models/global-store-options.model.ts +30 -0
- package/src/lib/services/local-storage-manager-service/models/index.ts +6 -0
- package/src/lib/services/local-storage-manager-service/models/setting-options.model.ts +35 -0
- package/src/lib/services/local-storage-manager-service/models/storage-data.model.ts +24 -0
- package/src/lib/services/local-storage-manager-service/models/storage-option.model.ts +32 -0
- package/src/lib/services/local-storage-manager-service/models/storage-type.enum.ts +5 -0
- package/src/lib/services/request-manager-services/README.md +282 -0
- package/src/lib/services/request-manager-services/http-manager-signals.service.ts +674 -0
- package/src/lib/services/request-manager-services/http-manager.service.spec.ts +353 -0
- package/src/lib/services/request-manager-services/http-manager.service.ts +727 -0
- package/src/lib/services/request-manager-services/index.ts +8 -0
- package/src/lib/services/request-manager-services/request-signals.service.ts +372 -0
- package/src/lib/services/request-manager-services/request.service.ts +435 -0
- package/src/lib/services/request-manager-services/rxjs-operators/countdown.ts +17 -0
- package/src/lib/services/request-manager-services/rxjs-operators/delay-retry.ts +16 -0
- package/src/lib/services/request-manager-services/rxjs-operators/index.ts +4 -0
- package/src/lib/services/request-manager-services/rxjs-operators/request-polling.ts +35 -0
- package/src/lib/services/request-manager-services/rxjs-operators/request-streaming.ts +468 -0
- package/src/lib/services/request-manager-state-service/http-manager-state.store.spec.ts +665 -0
- package/src/lib/services/request-manager-state-service/http-manager-state.store.ts +2395 -0
- package/src/lib/services/request-manager-state-service/index.ts +3 -0
- package/src/lib/services/request-manager-state-service/models/api-request.model.ts +86 -0
- package/src/lib/services/request-manager-state-service/models/index.ts +14 -0
- package/src/lib/services/request-manager-state-service/models/operation-result.model.ts +18 -0
- package/src/lib/services/request-manager-state-service/models/parsing-result.model.ts +21 -0
- package/src/lib/services/request-manager-state-service/models/request-options.model.ts +37 -0
- package/src/lib/services/request-manager-state-service/models/stream-config.model.ts +20 -0
- package/src/lib/services/request-manager-state-service/models/stream-event-metadata.model.ts +23 -0
- package/src/lib/services/request-manager-state-service/models/stream-event.model.ts +23 -0
- package/src/lib/services/request-manager-state-service/models/stream-output.model.ts +23 -0
- package/src/lib/services/request-manager-state-service/models/stream-progress.model.ts +24 -0
- package/src/lib/services/request-manager-state-service/models/stream-type.enum.ts +13 -0
- package/src/lib/services/request-manager-state-service/models/ws-options.model.ts +42 -0
- package/src/lib/services/store-state-manager-service/index.ts +4 -0
- package/src/lib/services/store-state-manager-service/models/index.ts +3 -0
- package/src/lib/services/store-state-manager-service/models/state-operation-result.model.ts +30 -0
- package/src/lib/services/store-state-manager-service/models/state-storage-options.model.ts +24 -0
- package/src/lib/services/store-state-manager-service/store-state-manager-signals.service.ts +169 -0
- package/src/lib/services/store-state-manager-service/store-state-manager.service.ts +153 -0
- package/src/lib/services/utils/app.service.spec.ts +25 -0
- package/src/lib/services/utils/app.service.ts +21 -0
- package/src/lib/services/utils/encryption/README.md +79 -0
- package/src/lib/services/utils/encryption/asymmetrical-encryption.service.ts +282 -0
- package/src/lib/services/utils/encryption/encryption-test.service.ts +39 -0
- package/src/lib/services/utils/encryption/index.ts +5 -0
- package/src/lib/services/utils/encryption/random.ts +81 -0
- package/src/lib/services/utils/encryption/symmetrical-encryption.service.ts +106 -0
- package/src/lib/services/utils/headers.service.spec.ts +80 -0
- package/src/lib/services/utils/headers.service.ts +18 -0
- package/src/lib/services/utils/index.ts +9 -0
- package/src/lib/services/utils/logger.service.ts +90 -0
- package/src/lib/services/utils/models/index.ts +4 -0
- package/src/lib/services/utils/models/normalized-request-options.model.ts +24 -0
- package/src/lib/services/utils/models/path-tracker-state.model.ts +20 -0
- package/src/lib/services/utils/models/query-params-tracker-options.model.ts +24 -0
- package/src/lib/services/utils/models/query-tracker-state.model.ts +23 -0
- package/src/lib/services/utils/object-merger.service.spec.ts +18 -0
- package/src/lib/services/utils/object-merger.service.ts +78 -0
- package/src/lib/services/utils/path-query.service.spec.ts +117 -0
- package/src/lib/services/utils/path-query.service.ts +69 -0
- package/src/lib/services/utils/query-params-tracker.service.ts +442 -0
- package/src/lib/services/utils/random-color.utils.ts +83 -0
- package/src/lib/services/utils/utils.service.spec.ts +165 -0
- package/src/lib/services/utils/utils.service.ts +192 -0
- package/src/lib/services/ws-manager-service/index.ts +13 -0
- package/src/lib/services/ws-manager-service/message-tracker-signals.service.ts +147 -0
- package/src/lib/services/ws-manager-service/message-tracker.service.ts +477 -0
- package/src/lib/services/ws-manager-service/models/channel-info.model.ts +29 -0
- package/src/lib/services/ws-manager-service/models/channel-message-data.model.ts +24 -0
- package/src/lib/services/ws-manager-service/models/channel-message.model.ts +36 -0
- package/src/lib/services/ws-manager-service/models/channel-type.enum.ts +6 -0
- package/src/lib/services/ws-manager-service/models/communication-type.enum.ts +5 -0
- package/src/lib/services/ws-manager-service/models/index.ts +10 -0
- package/src/lib/services/ws-manager-service/models/notification-message.model.ts +29 -0
- package/src/lib/services/ws-manager-service/models/public-message.model.ts +18 -0
- package/src/lib/services/ws-manager-service/models/state-message.model.ts +18 -0
- package/src/lib/services/ws-manager-service/models/ws-user.model.ts +38 -0
- package/src/lib/services/ws-manager-service/services/index.ts +4 -0
- package/src/lib/services/ws-manager-service/services/websocket-message.service.ts +129 -0
- package/src/lib/services/ws-manager-service/services/websocket.service.ts +434 -0
- package/src/lib/services/ws-manager-service/websocket-service/index.ts +1 -0
- package/src/lib/services/ws-manager-service/websocket-service/websocket-manager.service.ts +716 -0
- package/src/lib/services/ws-manager-service/websocket-services-complete.spec.ts +596 -0
- package/src/lib/services/ws-manager-service/websocket-signals-manager.service.ts +141 -0
- package/src/public-api.ts +19 -0
- package/tsconfig.lib.json +34 -0
- package/tsconfig.lib.prod.json +10 -0
- package/tsconfig.spec.json +14 -0
- package/fesm2022/http-request-manager.mjs +0 -13688
- package/fesm2022/http-request-manager.mjs.map +0 -1
- package/http-request-manager-18.15.33.tgz +0 -0
- package/types/http-request-manager.d.ts +0 -3968
|
@@ -1,3968 +0,0 @@
|
|
|
1
|
-
import * as rxjs from 'rxjs';
|
|
2
|
-
import { Observable, Subscription, BehaviorSubject, OperatorFunction } from 'rxjs';
|
|
3
|
-
import * as i0 from '@angular/core';
|
|
4
|
-
import { InjectionToken, OnDestroy, Injector, DestroyRef, 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 http_request_manager from 'http-request-manager';
|
|
8
|
-
import * as i18 from 'toast-message-display';
|
|
9
|
-
import { ToastMessageDisplayService } from 'toast-message-display';
|
|
10
|
-
import Dexie, { Table } from 'dexie';
|
|
11
|
-
import { AST } from 'node-sql-parser/build/mysql';
|
|
12
|
-
import * as i36 from '@ngx-translate/core';
|
|
13
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
14
|
-
import * as _angular_forms from '@angular/forms';
|
|
15
|
-
import { FormArray, FormBuilder, FormControl } from '@angular/forms';
|
|
16
|
-
import { DataSource } from '@angular/cdk/collections';
|
|
17
|
-
import * as i4 from '@angular/common';
|
|
18
|
-
import * as i7 from '@angular/material/button';
|
|
19
|
-
import * as i21 from '@angular/material/tabs';
|
|
20
|
-
import * as i22 from '@angular/material/select';
|
|
21
|
-
import * as i23 from '@angular/material/chips';
|
|
22
|
-
import * as i24 from '@angular/material/menu';
|
|
23
|
-
import * as i5 from '@angular/material/icon';
|
|
24
|
-
import * as i26 from '@angular/material/table';
|
|
25
|
-
import * as i27 from '@angular/material/button-toggle';
|
|
26
|
-
import * as i28 from '@angular/material/autocomplete';
|
|
27
|
-
import * as i29 from '@angular/material/progress-bar';
|
|
28
|
-
import * as i6 from '@angular/material/progress-spinner';
|
|
29
|
-
import { ProgressSpinnerMode } from '@angular/material/progress-spinner';
|
|
30
|
-
import * as i31 from '@angular/material/slide-toggle';
|
|
31
|
-
import * as i32 from '@angular/material/divider';
|
|
32
|
-
import * as i33 from '@angular/material/form-field';
|
|
33
|
-
import * as i34 from '@angular/material/input';
|
|
34
|
-
import * as i35 from '@angular/material/toolbar';
|
|
35
|
-
import * as i37 from '@angular/material/sidenav';
|
|
36
|
-
import * as i38 from '@angular/material/datepicker';
|
|
37
|
-
import * as i39 from '@angular/material/core';
|
|
38
|
-
import { ThemePalette } from '@angular/material/core';
|
|
39
|
-
import * as i40 from '@angular/material/card';
|
|
40
|
-
|
|
41
|
-
declare enum StorageType {
|
|
42
|
-
GLOBAL = 0,
|
|
43
|
-
SESSION = 1,
|
|
44
|
-
DB = 2
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
interface SettingOptionsInterface {
|
|
48
|
-
storage?: StorageType;
|
|
49
|
-
expires?: number;
|
|
50
|
-
expiresIn?: string;
|
|
51
|
-
encrypted?: boolean;
|
|
52
|
-
}
|
|
53
|
-
declare class SettingOptions implements SettingOptionsInterface {
|
|
54
|
-
storage?: StorageType | undefined;
|
|
55
|
-
expires?: number | undefined;
|
|
56
|
-
expiresIn?: string | undefined;
|
|
57
|
-
encrypted?: boolean | undefined;
|
|
58
|
-
constructor(storage?: StorageType | undefined, expires?: number | undefined, expiresIn?: string | undefined, encrypted?: boolean | undefined);
|
|
59
|
-
static adapt(item?: any): SettingOptions;
|
|
60
|
-
}
|
|
61
|
-
|
|
62
|
-
interface StorageOptionInterface {
|
|
63
|
-
id?: string;
|
|
64
|
-
name: string;
|
|
65
|
-
data?: any;
|
|
66
|
-
options?: SettingOptions;
|
|
67
|
-
}
|
|
68
|
-
declare class StorageOption implements StorageOptionInterface {
|
|
69
|
-
id?: string | undefined;
|
|
70
|
-
name: string;
|
|
71
|
-
data?: any;
|
|
72
|
-
options?: SettingOptions | undefined;
|
|
73
|
-
constructor(id?: string | undefined, name?: string, data?: any, options?: SettingOptions | undefined);
|
|
74
|
-
static adapt(item?: any): StorageOption;
|
|
75
|
-
}
|
|
76
|
-
|
|
77
|
-
interface GlobalStoreOptionsInterface {
|
|
78
|
-
encryption?: boolean;
|
|
79
|
-
expiresIn?: string;
|
|
80
|
-
expires?: number;
|
|
81
|
-
stores: StorageOption[] | null;
|
|
82
|
-
}
|
|
83
|
-
declare class GlobalStoreOptions implements GlobalStoreOptionsInterface {
|
|
84
|
-
encryption: boolean;
|
|
85
|
-
expiresIn?: string | undefined;
|
|
86
|
-
expires?: number | undefined;
|
|
87
|
-
stores: StorageOption[] | null;
|
|
88
|
-
constructor(encryption?: boolean, expiresIn?: string | undefined, expires?: number | undefined, stores?: StorageOption[] | null);
|
|
89
|
-
static adapt(item?: any): GlobalStoreOptions;
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
interface StorageDataInterface {
|
|
93
|
-
id?: string;
|
|
94
|
-
data?: any;
|
|
95
|
-
}
|
|
96
|
-
declare class StorageData implements StorageDataInterface {
|
|
97
|
-
id?: string | undefined;
|
|
98
|
-
data?: any;
|
|
99
|
-
constructor(id?: string | undefined, data?: any);
|
|
100
|
-
static adapt(item?: any): StorageData;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
declare class UtilsService {
|
|
104
|
-
http: HttpClient;
|
|
105
|
-
constructor();
|
|
106
|
-
isString(x: string | number): boolean;
|
|
107
|
-
isObject(obj: any): boolean;
|
|
108
|
-
JSONToString(value: any): any;
|
|
109
|
-
stringToJSON(value: string): any;
|
|
110
|
-
isJSON(str: any): boolean;
|
|
111
|
-
getValueByProp(obj: any, prop: string): any;
|
|
112
|
-
objectsEqual(x: any, y: any): boolean;
|
|
113
|
-
getJSON(file: string): rxjs.Observable<Object>;
|
|
114
|
-
get today(): number;
|
|
115
|
-
base32ToHex(base32: string): string;
|
|
116
|
-
binaryToHex(binary: string): string;
|
|
117
|
-
expires(str?: string): number | undefined;
|
|
118
|
-
hasExpired(expiryDate: number): boolean;
|
|
119
|
-
hasExpiry(setting: any): boolean;
|
|
120
|
-
expiresIn(expiryDate: number): string | undefined;
|
|
121
|
-
lc: (str: string) => string;
|
|
122
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UtilsService, never>;
|
|
123
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<UtilsService>;
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
declare class SymmetricalEncryptionService {
|
|
127
|
-
appID: string;
|
|
128
|
-
private appService;
|
|
129
|
-
constructor();
|
|
130
|
-
generateCipherKey(): string;
|
|
131
|
-
encrypt(str: any, key?: string): string | undefined;
|
|
132
|
-
decrypt(str: string, key?: string): string | null;
|
|
133
|
-
createSignature(url: string, len?: number): string;
|
|
134
|
-
normalizeURL(url: string): string;
|
|
135
|
-
generateSignature(url: string): string;
|
|
136
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SymmetricalEncryptionService, never>;
|
|
137
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SymmetricalEncryptionService>;
|
|
138
|
-
}
|
|
139
|
-
|
|
140
|
-
declare class EncryptionTestService {
|
|
141
|
-
constructor();
|
|
142
|
-
private isBase64;
|
|
143
|
-
private isHexadecimal;
|
|
144
|
-
private hasHighEntropy;
|
|
145
|
-
isEncrypted(str: string): boolean;
|
|
146
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<EncryptionTestService, never>;
|
|
147
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<EncryptionTestService>;
|
|
148
|
-
}
|
|
149
|
-
|
|
150
|
-
declare class AppService {
|
|
151
|
-
private id;
|
|
152
|
-
appID: string;
|
|
153
|
-
constructor(id: string);
|
|
154
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AppService, never>;
|
|
155
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AppService>;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
interface WSOptionsInterface {
|
|
159
|
-
id: string;
|
|
160
|
-
wsServer: string;
|
|
161
|
-
jwtToken: string;
|
|
162
|
-
permissions?: string[];
|
|
163
|
-
channels?: string[];
|
|
164
|
-
wsUpdateChannels?: string[];
|
|
165
|
-
user?: any;
|
|
166
|
-
retry?: RetryOptions;
|
|
167
|
-
}
|
|
168
|
-
declare class WSOptions implements WSOptionsInterface {
|
|
169
|
-
id: string;
|
|
170
|
-
wsServer: string;
|
|
171
|
-
jwtToken: string;
|
|
172
|
-
permissions?: string[] | undefined;
|
|
173
|
-
channels?: string[] | undefined;
|
|
174
|
-
wsUpdateChannels?: string[] | undefined;
|
|
175
|
-
user?: any;
|
|
176
|
-
retry?: RetryOptions | undefined;
|
|
177
|
-
constructor(id?: string, wsServer?: string, jwtToken?: string, permissions?: string[] | undefined, channels?: string[] | undefined, wsUpdateChannels?: string[] | undefined, user?: any, retry?: RetryOptions | undefined);
|
|
178
|
-
static adapt(item?: any): WSOptions;
|
|
179
|
-
}
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Enum representing valid streaming format types
|
|
183
|
-
*
|
|
184
|
-
* This enum defines all supported streaming formats for HTTP requests.
|
|
185
|
-
* Each enum value corresponds to a specific data format and parsing strategy.
|
|
186
|
-
*/
|
|
187
|
-
declare enum StreamType {
|
|
188
|
-
JSON = "json",
|
|
189
|
-
NDJSON = "ndjson",
|
|
190
|
-
AI_STREAMING = "ai_streaming",
|
|
191
|
-
EVENT_STREAM = "event_stream",
|
|
192
|
-
AUTO = "auto"
|
|
193
|
-
}
|
|
194
|
-
|
|
195
|
-
interface ApiRequestInterface {
|
|
196
|
-
server: string;
|
|
197
|
-
path?: any[];
|
|
198
|
-
headers?: any;
|
|
199
|
-
adapter?: any;
|
|
200
|
-
mapper?: any;
|
|
201
|
-
polling?: number;
|
|
202
|
-
retry?: RetryOptions;
|
|
203
|
-
stream?: boolean;
|
|
204
|
-
streamType?: StreamType;
|
|
205
|
-
displayError?: boolean;
|
|
206
|
-
displaySuccess?: boolean;
|
|
207
|
-
successMessage?: string;
|
|
208
|
-
errorMessage?: string;
|
|
209
|
-
saveAs?: string;
|
|
210
|
-
fileContentHeader?: string;
|
|
211
|
-
ws?: WSOptions;
|
|
212
|
-
env?: string;
|
|
213
|
-
uploadFiles?: File | File[];
|
|
214
|
-
uploadFieldName?: string;
|
|
215
|
-
uploadHttpMethod?: 'POST' | 'PUT';
|
|
216
|
-
allowedTypes?: string[];
|
|
217
|
-
maxFileSize?: number;
|
|
218
|
-
maxTotalSize?: number;
|
|
219
|
-
}
|
|
220
|
-
declare class ApiRequest implements ApiRequestInterface {
|
|
221
|
-
server: string;
|
|
222
|
-
path?: any[] | undefined;
|
|
223
|
-
headers?: any;
|
|
224
|
-
adapter?: any;
|
|
225
|
-
mapper?: any;
|
|
226
|
-
polling?: number | undefined;
|
|
227
|
-
retry?: RetryOptions | undefined;
|
|
228
|
-
stream?: boolean | undefined;
|
|
229
|
-
streamType?: StreamType | undefined;
|
|
230
|
-
displayError?: boolean | undefined;
|
|
231
|
-
displaySuccess?: boolean | undefined;
|
|
232
|
-
successMessage?: string | undefined;
|
|
233
|
-
errorMessage?: string | undefined;
|
|
234
|
-
saveAs?: string | undefined;
|
|
235
|
-
fileContentHeader?: string | undefined;
|
|
236
|
-
ws?: WSOptions | undefined;
|
|
237
|
-
env?: string | undefined;
|
|
238
|
-
uploadFiles?: (File | File[]) | undefined;
|
|
239
|
-
uploadFieldName?: string | undefined;
|
|
240
|
-
uploadHttpMethod?: ("POST" | "PUT") | undefined;
|
|
241
|
-
allowedTypes?: string[] | undefined;
|
|
242
|
-
maxFileSize?: number | undefined;
|
|
243
|
-
maxTotalSize?: number | undefined;
|
|
244
|
-
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, displaySuccess?: boolean | undefined, successMessage?: string | undefined, errorMessage?: string | undefined, saveAs?: string | undefined, fileContentHeader?: string | undefined, ws?: WSOptions | undefined, env?: string | undefined, uploadFiles?: (File | File[]) | undefined, uploadFieldName?: string | undefined, uploadHttpMethod?: ("POST" | "PUT") | undefined, allowedTypes?: string[] | undefined, maxFileSize?: number | undefined, maxTotalSize?: number | undefined);
|
|
245
|
-
static adapt(item?: any): ApiRequest;
|
|
246
|
-
}
|
|
247
|
-
|
|
248
|
-
interface StreamProgressInterface {
|
|
249
|
-
received: number;
|
|
250
|
-
total?: number;
|
|
251
|
-
percent: number;
|
|
252
|
-
stage: 'connecting' | 'streaming' | 'complete' | 'error';
|
|
253
|
-
}
|
|
254
|
-
declare class StreamProgressModel implements StreamProgressInterface {
|
|
255
|
-
received: number;
|
|
256
|
-
total?: number | undefined;
|
|
257
|
-
percent: number;
|
|
258
|
-
stage: 'connecting' | 'streaming' | 'complete' | 'error';
|
|
259
|
-
constructor(received?: number, total?: number | undefined, percent?: number, stage?: 'connecting' | 'streaming' | 'complete' | 'error');
|
|
260
|
-
static adapt(item?: any): StreamProgressModel;
|
|
261
|
-
}
|
|
262
|
-
|
|
263
|
-
interface WSUserInterface {
|
|
264
|
-
id: string;
|
|
265
|
-
ldap?: string;
|
|
266
|
-
name?: string;
|
|
267
|
-
email?: string;
|
|
268
|
-
[key: string]: any;
|
|
269
|
-
}
|
|
270
|
-
declare class WSUser implements WSUserInterface {
|
|
271
|
-
id: string;
|
|
272
|
-
ldap: string;
|
|
273
|
-
name: string;
|
|
274
|
-
email: string;
|
|
275
|
-
constructor(id?: string, ldap?: string, name?: string, email?: string);
|
|
276
|
-
static adapt(item?: any): WSUser;
|
|
277
|
-
}
|
|
278
|
-
|
|
279
|
-
interface StateMessageInterface {
|
|
280
|
-
sessionId: {
|
|
281
|
-
id: string;
|
|
282
|
-
ldap?: string;
|
|
283
|
-
name?: string;
|
|
284
|
-
email?: string;
|
|
285
|
-
};
|
|
286
|
-
content: any;
|
|
287
|
-
}
|
|
288
|
-
declare class StateMessage implements StateMessageInterface {
|
|
289
|
-
sessionId: {
|
|
290
|
-
id: string;
|
|
291
|
-
ldap?: string;
|
|
292
|
-
name?: string;
|
|
293
|
-
email?: string;
|
|
294
|
-
};
|
|
295
|
-
content: any;
|
|
296
|
-
constructor(sessionId?: {
|
|
297
|
-
id: string;
|
|
298
|
-
ldap?: string;
|
|
299
|
-
name?: string;
|
|
300
|
-
email?: string;
|
|
301
|
-
}, content?: any);
|
|
302
|
-
static adapt(item?: any): StateMessage;
|
|
303
|
-
}
|
|
304
|
-
|
|
305
|
-
interface PublicMessageInterface {
|
|
306
|
-
sessionId: {
|
|
307
|
-
id: string;
|
|
308
|
-
ldap?: string;
|
|
309
|
-
name?: string;
|
|
310
|
-
email?: string;
|
|
311
|
-
};
|
|
312
|
-
content: {
|
|
313
|
-
message: string;
|
|
314
|
-
[key: string]: any;
|
|
315
|
-
};
|
|
316
|
-
}
|
|
317
|
-
declare class PublicMessage implements PublicMessageInterface {
|
|
318
|
-
sessionId: {
|
|
319
|
-
id: string;
|
|
320
|
-
ldap?: string;
|
|
321
|
-
name?: string;
|
|
322
|
-
email?: string;
|
|
323
|
-
};
|
|
324
|
-
content: {
|
|
325
|
-
message: string;
|
|
326
|
-
[key: string]: any;
|
|
327
|
-
};
|
|
328
|
-
constructor(sessionId?: {
|
|
329
|
-
id: string;
|
|
330
|
-
ldap?: string;
|
|
331
|
-
name?: string;
|
|
332
|
-
email?: string;
|
|
333
|
-
}, content?: {
|
|
334
|
-
message: string;
|
|
335
|
-
[key: string]: any;
|
|
336
|
-
});
|
|
337
|
-
static adapt(item?: any): PublicMessage;
|
|
338
|
-
}
|
|
339
|
-
|
|
340
|
-
interface NotificationMessageInterface {
|
|
341
|
-
sessionId: {
|
|
342
|
-
id: string;
|
|
343
|
-
ldap?: string;
|
|
344
|
-
name?: string;
|
|
345
|
-
email?: string;
|
|
346
|
-
color?: string;
|
|
347
|
-
};
|
|
348
|
-
message: string;
|
|
349
|
-
[key: string]: any;
|
|
350
|
-
}
|
|
351
|
-
declare class NotificationMessage implements NotificationMessageInterface {
|
|
352
|
-
sessionId: {
|
|
353
|
-
id: string;
|
|
354
|
-
ldap?: string;
|
|
355
|
-
name?: string;
|
|
356
|
-
email?: string;
|
|
357
|
-
color?: string;
|
|
358
|
-
};
|
|
359
|
-
message: string;
|
|
360
|
-
[key: string]: any;
|
|
361
|
-
constructor(sessionId?: {
|
|
362
|
-
id: string;
|
|
363
|
-
ldap?: string;
|
|
364
|
-
name?: string;
|
|
365
|
-
email?: string;
|
|
366
|
-
color?: string;
|
|
367
|
-
}, message?: string, additionalProperties?: any);
|
|
368
|
-
static adapt(item?: any): NotificationMessage;
|
|
369
|
-
}
|
|
370
|
-
|
|
371
|
-
interface DatabaseStorageInterface {
|
|
372
|
-
table: string;
|
|
373
|
-
expiresIn: string;
|
|
374
|
-
}
|
|
375
|
-
declare class DatabaseStorage implements DatabaseStorageInterface {
|
|
376
|
-
table: string;
|
|
377
|
-
expiresIn: '';
|
|
378
|
-
constructor(table: string, expiresIn: '');
|
|
379
|
-
static adapt(item?: any): any;
|
|
380
|
-
}
|
|
381
|
-
|
|
382
|
-
interface RequestOptionsInterface {
|
|
383
|
-
path: any[];
|
|
384
|
-
headers: any;
|
|
385
|
-
forceRefresh?: boolean;
|
|
386
|
-
ignoreQueryParams?: string[];
|
|
387
|
-
queryParamsExpiresIn?: string | number;
|
|
388
|
-
watchParams?: string[];
|
|
389
|
-
watchExpiresAt?: number;
|
|
390
|
-
}
|
|
391
|
-
declare class RequestOptions implements RequestOptionsInterface {
|
|
392
|
-
path: any[];
|
|
393
|
-
headers: {};
|
|
394
|
-
forceRefresh?: boolean | undefined;
|
|
395
|
-
ignoreQueryParams?: string[] | undefined;
|
|
396
|
-
queryParamsExpiresIn?: (string | number) | undefined;
|
|
397
|
-
watchParams?: string[] | undefined;
|
|
398
|
-
watchExpiresAt?: number | undefined;
|
|
399
|
-
constructor(path?: any[], headers?: {}, forceRefresh?: boolean | undefined, ignoreQueryParams?: string[] | undefined, queryParamsExpiresIn?: (string | number) | undefined, watchParams?: string[] | undefined, watchExpiresAt?: number | undefined);
|
|
400
|
-
static adapt(item?: any): RequestOptions;
|
|
401
|
-
}
|
|
402
|
-
|
|
403
|
-
interface OperationResultInterface {
|
|
404
|
-
success: boolean;
|
|
405
|
-
operation: 'CREATE' | 'UPDATE' | 'DELETE';
|
|
406
|
-
}
|
|
407
|
-
declare class OperationResultModel implements OperationResultInterface {
|
|
408
|
-
success: boolean;
|
|
409
|
-
operation: 'CREATE' | 'UPDATE' | 'DELETE';
|
|
410
|
-
constructor(success?: boolean, operation?: 'CREATE' | 'UPDATE' | 'DELETE');
|
|
411
|
-
static adapt(item?: any): OperationResultModel;
|
|
412
|
-
}
|
|
413
|
-
|
|
414
|
-
interface StreamConfigInterface {
|
|
415
|
-
streamType: StreamType;
|
|
416
|
-
totalHeader?: string;
|
|
417
|
-
}
|
|
418
|
-
declare class StreamConfigModel implements StreamConfigInterface {
|
|
419
|
-
streamType: StreamType;
|
|
420
|
-
totalHeader: string;
|
|
421
|
-
constructor(streamType?: StreamType, totalHeader?: string);
|
|
422
|
-
static adapt(item?: any): StreamConfigModel;
|
|
423
|
-
}
|
|
424
|
-
|
|
425
|
-
interface StreamOutputInterface<T = any> {
|
|
426
|
-
data: T[];
|
|
427
|
-
progress: StreamProgressModel;
|
|
428
|
-
endpoint?: string;
|
|
429
|
-
}
|
|
430
|
-
declare class StreamOutputModel<T = any> implements StreamOutputInterface<T> {
|
|
431
|
-
data: T[];
|
|
432
|
-
progress: StreamProgressModel;
|
|
433
|
-
endpoint?: string | undefined;
|
|
434
|
-
constructor(data?: T[], progress?: StreamProgressModel, endpoint?: string | undefined);
|
|
435
|
-
static adapt<T = any>(item?: any): StreamOutputModel<T>;
|
|
436
|
-
}
|
|
437
|
-
|
|
438
|
-
interface StreamEventMetadataInterface {
|
|
439
|
-
timestamp: Date;
|
|
440
|
-
streamType: StreamType;
|
|
441
|
-
contentLength?: number;
|
|
442
|
-
}
|
|
443
|
-
declare class StreamEventMetadataModel implements StreamEventMetadataInterface {
|
|
444
|
-
timestamp: Date;
|
|
445
|
-
streamType: StreamType;
|
|
446
|
-
contentLength?: number | undefined;
|
|
447
|
-
constructor(timestamp?: Date, streamType?: StreamType, contentLength?: number | undefined);
|
|
448
|
-
static adapt(item?: any): StreamEventMetadataModel;
|
|
449
|
-
}
|
|
450
|
-
|
|
451
|
-
interface StreamEventInterface<T = any> {
|
|
452
|
-
type: 'progress' | 'complete' | 'data';
|
|
453
|
-
data: T;
|
|
454
|
-
metadata?: StreamEventMetadataModel;
|
|
455
|
-
}
|
|
456
|
-
declare class StreamEventModel<T = any> implements StreamEventInterface<T> {
|
|
457
|
-
type: 'progress' | 'complete' | 'data';
|
|
458
|
-
data: T;
|
|
459
|
-
metadata?: StreamEventMetadataModel | undefined;
|
|
460
|
-
constructor(type?: 'progress' | 'complete' | 'data', data?: T, metadata?: StreamEventMetadataModel | undefined);
|
|
461
|
-
static adapt<T = any>(item?: any): StreamEventModel<T>;
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
interface ParsingResultInterface<T = any> {
|
|
465
|
-
success: boolean;
|
|
466
|
-
data?: T[];
|
|
467
|
-
error?: string;
|
|
468
|
-
}
|
|
469
|
-
declare class ParsingResultModel<T = any> implements ParsingResultInterface<T> {
|
|
470
|
-
success: boolean;
|
|
471
|
-
data?: T[] | undefined;
|
|
472
|
-
error?: string | undefined;
|
|
473
|
-
constructor(success?: boolean, data?: T[] | undefined, error?: string | undefined);
|
|
474
|
-
static adapt<T = any>(item?: any): ParsingResultModel<T>;
|
|
475
|
-
}
|
|
476
|
-
|
|
477
|
-
interface TableSchemaDefInterface {
|
|
478
|
-
table: string;
|
|
479
|
-
schema: string;
|
|
480
|
-
}
|
|
481
|
-
declare class TableSchemaDef implements TableSchemaDefInterface {
|
|
482
|
-
table: string;
|
|
483
|
-
schema: string;
|
|
484
|
-
constructor(table?: string, schema?: string);
|
|
485
|
-
static adapt(item?: any): TableSchemaDef;
|
|
486
|
-
static cleanString(str: string): string;
|
|
487
|
-
}
|
|
488
|
-
|
|
489
|
-
declare class DbService extends Dexie {
|
|
490
|
-
readonly storageDB = "global_storage_db";
|
|
491
|
-
get db(): this;
|
|
492
|
-
private dbReady;
|
|
493
|
-
constructor();
|
|
494
|
-
private init;
|
|
495
|
-
protected createNewDatabase(): Promise<void>;
|
|
496
|
-
get vr(): number;
|
|
497
|
-
get nextVr(): number;
|
|
498
|
-
get getTables(): string[];
|
|
499
|
-
hasDatabase(): Promise<boolean>;
|
|
500
|
-
getTable(tableName: string): Table<any, any> | undefined;
|
|
501
|
-
tableExists(tableName: string): boolean;
|
|
502
|
-
protected updateTable(tableName: string, find: {
|
|
503
|
-
key: string;
|
|
504
|
-
value: string | number;
|
|
505
|
-
}, data: any): Promise<boolean>;
|
|
506
|
-
protected createTable(tableName: string, schema: string): Promise<void>;
|
|
507
|
-
private _doCreateTable;
|
|
508
|
-
protected DBOpened(): Promise<boolean>;
|
|
509
|
-
private getCurrentSchema;
|
|
510
|
-
protected deleteAndReinitialize(): Observable<boolean>;
|
|
511
|
-
protected cleanTableName(str: string): string;
|
|
512
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DbService, never>;
|
|
513
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DbService>;
|
|
514
|
-
}
|
|
515
|
-
|
|
516
|
-
declare class DatabaseManagerService extends DbService {
|
|
517
|
-
private localStorageManager;
|
|
518
|
-
constructor();
|
|
519
|
-
getDatabaseTables(): Observable<any[]>;
|
|
520
|
-
databaseExists(): Observable<boolean>;
|
|
521
|
-
hasDatabaseTable(table: string): Observable<boolean>;
|
|
522
|
-
getDatabaseTable(table: string): Observable<any>;
|
|
523
|
-
getDatabaseTableSchema(table: string): Observable<string[]>;
|
|
524
|
-
createDatabaseTable(tableDef: TableSchemaDef): Observable<boolean>;
|
|
525
|
-
updateDatabaseTableSchema(tableDef: TableSchemaDef): Observable<any>;
|
|
526
|
-
findTableRecords(table: string, column: string, value: any): Observable<unknown>;
|
|
527
|
-
findTableRecord(table: string, column: string, value: any): Observable<any>;
|
|
528
|
-
getTableRecords(table: string): Observable<unknown>;
|
|
529
|
-
getTableRecord(table: string, id: number): Observable<any>;
|
|
530
|
-
createTableRecord(table: string, record: any): Observable<any>;
|
|
531
|
-
createTableRecords(table: string, records: any[]): Observable<any[]>;
|
|
532
|
-
private inferSchemaFromRecords;
|
|
533
|
-
private isMissingObjectStoreError;
|
|
534
|
-
updateTableRecord(table: string, record: any): Observable<any>;
|
|
535
|
-
updateTableRecords(table: string, records: any[]): Observable<any[]>;
|
|
536
|
-
deleteTableRecord<T>(table: string, id: number): Observable<number | null>;
|
|
537
|
-
deleteTableRecords(table: string, ids: number[]): Observable<number[]>;
|
|
538
|
-
clearTable(table: string): Observable<never[]>;
|
|
539
|
-
clearDatabase(): void;
|
|
540
|
-
resetDatabase(): Observable<boolean>;
|
|
541
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DatabaseManagerService, never>;
|
|
542
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DatabaseManagerService>;
|
|
543
|
-
}
|
|
544
|
-
|
|
545
|
-
interface ChannelMessageInterface {
|
|
546
|
-
messageId?: number;
|
|
547
|
-
channel?: string;
|
|
548
|
-
isReplay?: boolean;
|
|
549
|
-
sessionId: any;
|
|
550
|
-
content: any;
|
|
551
|
-
timestamp?: string;
|
|
552
|
-
}
|
|
553
|
-
declare class ChannelMessage implements ChannelMessageInterface {
|
|
554
|
-
messageId?: number | undefined;
|
|
555
|
-
channel?: string | undefined;
|
|
556
|
-
isReplay?: boolean | undefined;
|
|
557
|
-
sessionId: any;
|
|
558
|
-
content: any;
|
|
559
|
-
timestamp?: string | undefined;
|
|
560
|
-
constructor(messageId?: number | undefined, channel?: string | undefined, isReplay?: boolean | undefined, sessionId?: any, content?: any, timestamp?: string | undefined);
|
|
561
|
-
static adapt(item?: any): ChannelMessage;
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
/**
|
|
565
|
-
* LoggerService for http-request-manager library
|
|
566
|
-
*
|
|
567
|
-
* Automatically enables debug logging in development mode,
|
|
568
|
-
* disables it in production mode.
|
|
569
|
-
*
|
|
570
|
-
* Usage:
|
|
571
|
-
* ```typescript
|
|
572
|
-
* constructor(private logger: LoggerService) {}
|
|
573
|
-
*
|
|
574
|
-
* this.logger.debug('WebSocket', 'Connected successfully');
|
|
575
|
-
* this.logger.info('HTTP', 'Request completed', { status: 200 });
|
|
576
|
-
* this.logger.warn('State', 'Cache miss for key', { key: 'user' });
|
|
577
|
-
* this.logger.error('Database', 'Connection failed', error);
|
|
578
|
-
* ```
|
|
579
|
-
*/
|
|
580
|
-
declare class LoggerService {
|
|
581
|
-
private static readonly DEBUG_FLAG_KEY;
|
|
582
|
-
private debugMode;
|
|
583
|
-
constructor();
|
|
584
|
-
/**
|
|
585
|
-
* Debug level logging - only shown in development mode
|
|
586
|
-
* Use for: Detailed diagnostic information, state changes, connection events
|
|
587
|
-
*/
|
|
588
|
-
debug(context: string, message: string, data?: any): void;
|
|
589
|
-
/**
|
|
590
|
-
* Info level logging - only shown in development mode
|
|
591
|
-
* Use for: Important operational messages, successful operations
|
|
592
|
-
*/
|
|
593
|
-
info(context: string, message: string, data?: any): void;
|
|
594
|
-
/**
|
|
595
|
-
* Warning level logging - always shown
|
|
596
|
-
* Use for: Potential issues, deprecated usage, recoverable errors
|
|
597
|
-
*/
|
|
598
|
-
warn(context: string, message: string, data?: any): void;
|
|
599
|
-
/**
|
|
600
|
-
* Error level logging - always shown
|
|
601
|
-
* Use for: Actual errors, failures, exceptions
|
|
602
|
-
*/
|
|
603
|
-
error(context: string, message: string, data?: any): void;
|
|
604
|
-
/**
|
|
605
|
-
* Check if debug mode is enabled (development mode)
|
|
606
|
-
*/
|
|
607
|
-
isDebugEnabled(): boolean;
|
|
608
|
-
private isDebugFlagEnabled;
|
|
609
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoggerService, never>;
|
|
610
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoggerService>;
|
|
611
|
-
}
|
|
612
|
-
|
|
613
|
-
/**
|
|
614
|
-
* Channel type enum for different communication purposes
|
|
615
|
-
* - STATE: Private channels for state synchronization (SYS- prefix)
|
|
616
|
-
* - MESSAGE: Public messaging/communication channels (PUB- prefix)
|
|
617
|
-
* - NOTIFICATION: Notification channels with DB persistence (MES- prefix)
|
|
618
|
-
*/
|
|
619
|
-
declare enum ChannelType {
|
|
620
|
-
STATE = "SYS",
|
|
621
|
-
MESSAGE = "PUB",
|
|
622
|
-
NOTIFICATION = "MES"
|
|
623
|
-
}
|
|
624
|
-
/**
|
|
625
|
-
* Utility function to create prefixed channel name
|
|
626
|
-
* @param channelType - The type of channel
|
|
627
|
-
* @param channelName - The base channel name
|
|
628
|
-
* @returns Prefixed channel name (e.g., 'SYS-USERS123')
|
|
629
|
-
*/
|
|
630
|
-
declare function createChannelName(channelType: ChannelType, channelName: string): string;
|
|
631
|
-
interface APIStateManagerData<T> {
|
|
632
|
-
data: T[];
|
|
633
|
-
dataObject: T | null;
|
|
634
|
-
}
|
|
635
|
-
declare class HTTPManagerStateService<T extends {
|
|
636
|
-
id: number | string;
|
|
637
|
-
}> extends ComponentStore<APIStateManagerData<T>> {
|
|
638
|
-
private apiOptions;
|
|
639
|
-
private dataType;
|
|
640
|
-
httpManagerService: HTTPManagerService<any>;
|
|
641
|
-
dbManagerService: DatabaseManagerService;
|
|
642
|
-
localStorageManagerService: LocalStorageManagerService;
|
|
643
|
-
utils: UtilsService;
|
|
644
|
-
logger: LoggerService;
|
|
645
|
-
error$: Observable<boolean>;
|
|
646
|
-
isPending$: Observable<boolean>;
|
|
647
|
-
private operationSuccess;
|
|
648
|
-
operationSuccess$: Observable<OperationResultModel | null>;
|
|
649
|
-
private page;
|
|
650
|
-
page$: Observable<number>;
|
|
651
|
-
private totalPages;
|
|
652
|
-
totalPages$: Observable<number>;
|
|
653
|
-
private percentage;
|
|
654
|
-
percentage$: Observable<number>;
|
|
655
|
-
private hasDatabase;
|
|
656
|
-
streamedResponse: any[];
|
|
657
|
-
private maxRetries;
|
|
658
|
-
private retryDelay;
|
|
659
|
-
private shouldRetry;
|
|
660
|
-
private connectionStatusSubscription?;
|
|
661
|
-
private databaseOptions?;
|
|
662
|
-
private readonly volatileHeaders;
|
|
663
|
-
private requestSignatureCache;
|
|
664
|
-
private inFlightRequestSignatures;
|
|
665
|
-
private _requestCachePaths;
|
|
666
|
-
private wsRetryAttempts;
|
|
667
|
-
wsRetryAttempts$: Observable<number>;
|
|
668
|
-
private wsNextRetry;
|
|
669
|
-
wsNextRetry$: Observable<number>;
|
|
670
|
-
private messages;
|
|
671
|
-
messages$: Observable<any[]>;
|
|
672
|
-
private userListByChannel;
|
|
673
|
-
userListByChannel$: Observable<Map<string, any[]>>;
|
|
674
|
-
getUsersForChannel$(channel: string): Observable<any[]>;
|
|
675
|
-
private userList;
|
|
676
|
-
userList$: Observable<any[]>;
|
|
677
|
-
private user;
|
|
678
|
-
user$: Observable<WSUser | null>;
|
|
679
|
-
private channels;
|
|
680
|
-
channels$: Observable<string[] | null>;
|
|
681
|
-
private notificationChannels;
|
|
682
|
-
notificationChannels$: Observable<string[]>;
|
|
683
|
-
private todaysNotificationChannels;
|
|
684
|
-
todaysNotificationChannels$: Observable<string[]>;
|
|
685
|
-
private notificationMessages;
|
|
686
|
-
notificationMessages$: Observable<any[]>;
|
|
687
|
-
private latestNotification;
|
|
688
|
-
latestNotification$: Observable<any>;
|
|
689
|
-
private communicationMessages;
|
|
690
|
-
communicationMessages$: Observable<any[]>;
|
|
691
|
-
private latestCommunicationMessages;
|
|
692
|
-
latestCommunicationMessages$: Observable<any>;
|
|
693
|
-
private userAction;
|
|
694
|
-
userAction$: Observable<any>;
|
|
695
|
-
private static wsCommunicationQueue;
|
|
696
|
-
private ownSessionId;
|
|
697
|
-
wsOptions: WSOptions;
|
|
698
|
-
connectionStatus$: Observable<boolean>;
|
|
699
|
-
wsRetryCount$: Observable<number>;
|
|
700
|
-
wsMaxRetries$: Observable<number>;
|
|
701
|
-
constructor(apiOptions: ApiRequest, dataType: DataType | undefined, database?: DatabaseStorage);
|
|
702
|
-
/**
|
|
703
|
-
* Add appropriate prefix to a channel name if not already present
|
|
704
|
-
*/
|
|
705
|
-
private prefixChannel;
|
|
706
|
-
/**
|
|
707
|
-
* Remove any known prefix from a channel name
|
|
708
|
-
*/
|
|
709
|
-
private stripChannelPrefix;
|
|
710
|
-
/**
|
|
711
|
-
* Get the base channel name without prefix (for display/user reference)
|
|
712
|
-
*/
|
|
713
|
-
getBaseChannelName(channel: string): string;
|
|
714
|
-
setApiRequestOptions(apiOptions?: ApiRequest, dataType?: DataType, database?: DatabaseStorage): void;
|
|
715
|
-
private setupConnectionStatus;
|
|
716
|
-
readonly initWS: (observableOrValue: WSOptions | Observable<WSOptions>) => Subscription;
|
|
717
|
-
appendMessages(message: any): void;
|
|
718
|
-
latestMessage(): void;
|
|
719
|
-
clearMessages(): void;
|
|
720
|
-
get ApiRequestOptions(): ApiRequest;
|
|
721
|
-
readonly initDBStorage: (observableOrValue?: void | Observable<void> | undefined) => Subscription;
|
|
722
|
-
initializeState(data: any): void;
|
|
723
|
-
readonly data$: Observable<T | T[] | null>;
|
|
724
|
-
readonly selectRecord$: (id: number) => Observable<T | T[] | null>;
|
|
725
|
-
private readonly setData$;
|
|
726
|
-
private updateArrayState;
|
|
727
|
-
private readonly addData$;
|
|
728
|
-
private readonly deleteData$;
|
|
729
|
-
private readonly updateData$;
|
|
730
|
-
readonly clearRecords: (observableOrValue?: void | Observable<void> | undefined) => Subscription;
|
|
731
|
-
readonly fetchRecords: (options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
732
|
-
private initDBStorageAsync;
|
|
733
|
-
private buildSchemaFromAdapter;
|
|
734
|
-
private buildSchemaFromSample;
|
|
735
|
-
private persistStreamDataToDb;
|
|
736
|
-
readonly fetchRecord: (options: RequestOptions, method: string) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
737
|
-
readonly createRecord: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
738
|
-
readonly updateRecord: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
739
|
-
readonly deleteRecord: (options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
740
|
-
readonly createStream: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
741
|
-
readonly fetchStream: (options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
742
|
-
private wsCommunication;
|
|
743
|
-
/**
|
|
744
|
-
* Actually send the WebSocket message (called when connected or from queue)
|
|
745
|
-
*/
|
|
746
|
-
private sendWsCommunication;
|
|
747
|
-
/**
|
|
748
|
-
* Send a message to channel(s)
|
|
749
|
-
* @param message - The message content
|
|
750
|
-
* @param channels - Optional array of channel names (passed as-is, caller should include prefix)
|
|
751
|
-
* Use 'allChannels' to broadcast to all
|
|
752
|
-
*/
|
|
753
|
-
wsMessaging(message: ChannelMessage, channels?: string[]): void;
|
|
754
|
-
/**
|
|
755
|
-
* Subscribe to a messaging channel
|
|
756
|
-
* @param channel - Base channel name (MES- prefix added automatically)
|
|
757
|
-
*/
|
|
758
|
-
subscribeToMessageChannel(channel: string): void;
|
|
759
|
-
/**
|
|
760
|
-
* Unsubscribe from a messaging channel
|
|
761
|
-
* @param channel - Base channel name (MES- prefix added automatically)
|
|
762
|
-
*/
|
|
763
|
-
unsubscribeFromMessageChannel(channel: string): void;
|
|
764
|
-
/**
|
|
765
|
-
* Subscribe to a single channel (no automatic prefix)
|
|
766
|
-
* Use subscribeToMessageChannel() for MES- prefixed channels
|
|
767
|
-
*/
|
|
768
|
-
subscribeToChannel(channel: string): void;
|
|
769
|
-
/**
|
|
770
|
-
* Subscribe to multiple channels at once
|
|
771
|
-
*/
|
|
772
|
-
subscribeToChannels(channels: string[]): void;
|
|
773
|
-
/**
|
|
774
|
-
* Unsubscribe from a channel
|
|
775
|
-
*/
|
|
776
|
-
unsubscribeFromChannel(channel: string): void;
|
|
777
|
-
/**
|
|
778
|
-
* Get observable of currently subscribed channels
|
|
779
|
-
*/
|
|
780
|
-
get subscribedChannels$(): Observable<Set<string>>;
|
|
781
|
-
/**
|
|
782
|
-
* Get current subscribed channels synchronously
|
|
783
|
-
*/
|
|
784
|
-
getSubscribedChannels(): Set<string>;
|
|
785
|
-
/**
|
|
786
|
-
* Create a new channel on the server
|
|
787
|
-
*/
|
|
788
|
-
createChannel(channel: string): void;
|
|
789
|
-
/**
|
|
790
|
-
* Delete a channel from the server
|
|
791
|
-
*/
|
|
792
|
-
deleteChannel(channel: string): void;
|
|
793
|
-
/**
|
|
794
|
-
* Request list of all channels from server
|
|
795
|
-
*/
|
|
796
|
-
getAllChannels(): void;
|
|
797
|
-
/**
|
|
798
|
-
* Get users in a specific channel
|
|
799
|
-
*/
|
|
800
|
-
getUsersInChannel(channel: string): void;
|
|
801
|
-
/**
|
|
802
|
-
* Create a notification channel on the server
|
|
803
|
-
* @param channel - Base channel name (MES- prefix added automatically)
|
|
804
|
-
*/
|
|
805
|
-
createNotificationChannel(channel: string): void;
|
|
806
|
-
/**
|
|
807
|
-
* Request list of all notification channels from server (in-memory)
|
|
808
|
-
*/
|
|
809
|
-
getNotificationChannels(): void;
|
|
810
|
-
/**
|
|
811
|
-
* Request list of today's notification channels from database
|
|
812
|
-
* Returns unique channels that have notifications posted today
|
|
813
|
-
*/
|
|
814
|
-
getTodaysNotificationChannels(): void;
|
|
815
|
-
/**
|
|
816
|
-
* Subscribe to a notification channel with optional date filters
|
|
817
|
-
* @param channel - Base channel name (MES- prefix added automatically)
|
|
818
|
-
*/
|
|
819
|
-
subscribeToNotificationChannel(channel: string, options?: {
|
|
820
|
-
startEpoch?: number;
|
|
821
|
-
endEpoch?: number;
|
|
822
|
-
}, user?: any): void;
|
|
823
|
-
/**
|
|
824
|
-
* Unsubscribe from a notification channel
|
|
825
|
-
* @param channel - Base channel name (MES- prefix added automatically)
|
|
826
|
-
*/
|
|
827
|
-
unsubscribeFromNotificationChannel(channel: string): void;
|
|
828
|
-
/**
|
|
829
|
-
* Send a notification to a channel
|
|
830
|
-
* @param channel - Base channel name (MES- prefix added automatically)
|
|
831
|
-
*/
|
|
832
|
-
sendNotification(channel: string, content: any): void;
|
|
833
|
-
/**
|
|
834
|
-
* Clear/flush all records from the database table
|
|
835
|
-
* Does not clear localStorage metadata (expires info)
|
|
836
|
-
* Does not re-fetch from API - leaves state empty for manual refresh
|
|
837
|
-
*/
|
|
838
|
-
clearDatabase(): void;
|
|
839
|
-
private isEmpty;
|
|
840
|
-
private updateRequestOptions;
|
|
841
|
-
private normalizeObject;
|
|
842
|
-
private filterHeaders;
|
|
843
|
-
private resolvePath;
|
|
844
|
-
private getEffectiveParams;
|
|
845
|
-
private buildRequestSignature;
|
|
846
|
-
private buildSchemaSignature;
|
|
847
|
-
private setCachedRequestSignature;
|
|
848
|
-
private tryBeginInFlightRequest;
|
|
849
|
-
private endInFlightRequest;
|
|
850
|
-
private getRequestCacheMetadata;
|
|
851
|
-
private getStoredSchemaSignature;
|
|
852
|
-
private saveSchemaSignature;
|
|
853
|
-
private saveRequestCacheMetadata;
|
|
854
|
-
private clearRequestCacheMetadata;
|
|
855
|
-
private trackerNormalizePath;
|
|
856
|
-
private trackerParsePathSegment;
|
|
857
|
-
private trackerSafeDecode;
|
|
858
|
-
private trackerNormalizePathSegments;
|
|
859
|
-
private trackerNormalizeParamKey;
|
|
860
|
-
private trackerNormalizeParamValue;
|
|
861
|
-
private trackerFilterQuery;
|
|
862
|
-
private trackerBuildExpiryEpoch;
|
|
863
|
-
private checkTrackerAllowsRequest;
|
|
864
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HTTPManagerStateService<any>, never>;
|
|
865
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HTTPManagerStateService<any>>;
|
|
866
|
-
}
|
|
867
|
-
|
|
868
|
-
declare class WebsocketService {
|
|
869
|
-
private logger;
|
|
870
|
-
private socket;
|
|
871
|
-
private messages;
|
|
872
|
-
messages$: Observable<any>;
|
|
873
|
-
private connectionStatus;
|
|
874
|
-
connectionStatus$: Observable<boolean>;
|
|
875
|
-
private isSubscribed;
|
|
876
|
-
private subscribedChannels;
|
|
877
|
-
subscribedChannels$: Observable<Set<string>>;
|
|
878
|
-
private lastOptions;
|
|
879
|
-
private getSessionId;
|
|
880
|
-
private sendSubscribe;
|
|
881
|
-
connect(options: WSOptions, jwtToken: string): void;
|
|
882
|
-
disconnect(): void;
|
|
883
|
-
subscribeToChannel(channelName: string): void;
|
|
884
|
-
subscribeToChannels(channelNames: string[]): void;
|
|
885
|
-
unsubscribeFromChannel(channel: string): void;
|
|
886
|
-
unsubscribeToChannel(channel: string): void;
|
|
887
|
-
getSubscribedChannels(): Set<string>;
|
|
888
|
-
sendBroadcast(content: any): void;
|
|
889
|
-
sendMessageInChannel(channel: string, content: any): void;
|
|
890
|
-
/**
|
|
891
|
-
* Send a message to a specific channel for channel-based messaging
|
|
892
|
-
* This uses the 'message' type which broadcasts to all subscribers in the channel
|
|
893
|
-
*/
|
|
894
|
-
sendChannelMessage(channel: string, content: any): void;
|
|
895
|
-
/**
|
|
896
|
-
* Send a message to multiple channels at once (batch)
|
|
897
|
-
* Sends the new batch format and falls back to legacy per-channel messages for compatibility
|
|
898
|
-
*/
|
|
899
|
-
sendChannelMessageToChannels(channels: string[], content: any): void;
|
|
900
|
-
sendMessageToUser(user: string, content: any): void;
|
|
901
|
-
getAllChannels(): void;
|
|
902
|
-
createChannel(channel: string): void;
|
|
903
|
-
deleteChannel(channel: string): void;
|
|
904
|
-
getUsersInChannel(channel: string): void;
|
|
905
|
-
/**
|
|
906
|
-
* Create a notification channel
|
|
907
|
-
*/
|
|
908
|
-
createNotificationChannel(channel: string): void;
|
|
909
|
-
/**
|
|
910
|
-
* Get all notification channels (in-memory)
|
|
911
|
-
*/
|
|
912
|
-
getNotificationChannels(): void;
|
|
913
|
-
getTodaysNotificationChannels(): void;
|
|
914
|
-
subscribeToNotificationChannel(channel: string, options?: {
|
|
915
|
-
startEpoch?: number;
|
|
916
|
-
endEpoch?: number;
|
|
917
|
-
}, user?: any): void;
|
|
918
|
-
unsubscribeFromNotificationChannel(channel: string): void;
|
|
919
|
-
sendNotification(channel: string, content: any): void;
|
|
920
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WebsocketService, never>;
|
|
921
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<WebsocketService>;
|
|
922
|
-
}
|
|
923
|
-
|
|
924
|
-
/**
|
|
925
|
-
* WebSocketManagerService - Singleton WebSocket connection manager
|
|
926
|
-
*
|
|
927
|
-
* This service ensures only ONE WebSocket connection exists across ALL instances
|
|
928
|
-
* of HTTPManagerStateService. It uses static properties to track connection state
|
|
929
|
-
* globally, preventing duplicate connections when multiple state services are created.
|
|
930
|
-
*
|
|
931
|
-
* Usage:
|
|
932
|
-
* - Inject into HTTPManagerService (or directly into state services)
|
|
933
|
-
* - Call connect() with WSOptions - only the first call establishes connection
|
|
934
|
-
* - Subsequent calls detect existing connection and skip reconnection
|
|
935
|
-
* - All instances share the same connectionStatus$ and messages$ observables
|
|
936
|
-
*/
|
|
937
|
-
declare class WebSocketManagerService {
|
|
938
|
-
private static socket;
|
|
939
|
-
private static isConnecting;
|
|
940
|
-
private static connectionInitialized;
|
|
941
|
-
private static lastOptions;
|
|
942
|
-
private static lastJwtToken;
|
|
943
|
-
private static retryCount;
|
|
944
|
-
private static retryDelay;
|
|
945
|
-
private static retrySubscription;
|
|
946
|
-
private static maxRetries;
|
|
947
|
-
private static connectionReadyNotified;
|
|
948
|
-
private static retryCountSubject;
|
|
949
|
-
retryCount$: Observable<number>;
|
|
950
|
-
private static maxRetriesSubject;
|
|
951
|
-
maxRetries$: Observable<number>;
|
|
952
|
-
private static messages;
|
|
953
|
-
messages$: Observable<any>;
|
|
954
|
-
private static connectionStatus;
|
|
955
|
-
connectionStatus$: Observable<boolean>;
|
|
956
|
-
private static isSubscribed;
|
|
957
|
-
private static subscribedChannels;
|
|
958
|
-
subscribedChannels$: Observable<Set<string>>;
|
|
959
|
-
static getSubscribedChannels(): Set<string>;
|
|
960
|
-
static addSubscribedChannel(channelName: string): void;
|
|
961
|
-
private static onReconnect;
|
|
962
|
-
onReconnect$: Observable<void>;
|
|
963
|
-
private getSessionId;
|
|
964
|
-
/**
|
|
965
|
-
* Connect to WebSocket server
|
|
966
|
-
*
|
|
967
|
-
* IMPORTANT: Only the first call across ALL instances will establish a connection.
|
|
968
|
-
* Subsequent calls will detect the existing connection and return immediately.
|
|
969
|
-
*
|
|
970
|
-
* @param options - WebSocket configuration options
|
|
971
|
-
* @param jwtToken - Optional JWT token for authentication
|
|
972
|
-
*/
|
|
973
|
-
connect(options: WSOptions, jwtToken: string): void;
|
|
974
|
-
/**
|
|
975
|
-
* Disconnect from WebSocket server
|
|
976
|
-
*/
|
|
977
|
-
disconnect(): void;
|
|
978
|
-
private sendSubscribe;
|
|
979
|
-
/**
|
|
980
|
-
* Send subscribe with lastSeenId for message sync support
|
|
981
|
-
* @param channelName - Channel name to subscribe to
|
|
982
|
-
* @param user - User data
|
|
983
|
-
* @param lastSeenId - Last message ID seen (for replay)
|
|
984
|
-
*/
|
|
985
|
-
sendSubscribeWithLastSeen(channelName: string, user: any, lastSeenId: number): void;
|
|
986
|
-
/**
|
|
987
|
-
* Subscribe to a channel
|
|
988
|
-
* @param channelName - Channel name to subscribe to
|
|
989
|
-
*/
|
|
990
|
-
subscribeToChannel(channelName: string): void;
|
|
991
|
-
/**
|
|
992
|
-
* Subscribe to multiple channels
|
|
993
|
-
* @param channelNames - Array of channel names to subscribe to
|
|
994
|
-
*/
|
|
995
|
-
subscribeToChannels(channelNames: string[]): void;
|
|
996
|
-
/**
|
|
997
|
-
* Unsubscribe from a channel
|
|
998
|
-
* @param channel - Channel name to unsubscribe from
|
|
999
|
-
*/
|
|
1000
|
-
unsubscribeFromChannel(channel: string): void;
|
|
1001
|
-
/**
|
|
1002
|
-
* Get currently subscribed channels
|
|
1003
|
-
* @returns Set of subscribed channel names
|
|
1004
|
-
*/
|
|
1005
|
-
getSubscribedChannels(): Set<string>;
|
|
1006
|
-
/**
|
|
1007
|
-
* Generic send method for message tracking (acks, gap requests, etc.)
|
|
1008
|
-
* @param message - Message object to send
|
|
1009
|
-
*/
|
|
1010
|
-
send(message: any): void;
|
|
1011
|
-
/**
|
|
1012
|
-
* Send broadcast message
|
|
1013
|
-
* @param content - Message content to broadcast
|
|
1014
|
-
*/
|
|
1015
|
-
sendBroadcast(content: any): void;
|
|
1016
|
-
/**
|
|
1017
|
-
* Send message in channel (state manager message)
|
|
1018
|
-
* @param channel - Channel name
|
|
1019
|
-
* @param content - Message content
|
|
1020
|
-
*/
|
|
1021
|
-
sendMessageInChannel(channel: string, content: any): void;
|
|
1022
|
-
/**
|
|
1023
|
-
* Send channel message (broadcasts to all subscribers in the channel)
|
|
1024
|
-
* @param channel - Channel name
|
|
1025
|
-
* @param content - Message content
|
|
1026
|
-
*/
|
|
1027
|
-
sendChannelMessage(channel: string, content: any): void;
|
|
1028
|
-
/**
|
|
1029
|
-
* Send message to multiple channels at once (batch)
|
|
1030
|
-
* @param channels - Array of channel names
|
|
1031
|
-
* @param content - Message content
|
|
1032
|
-
*/
|
|
1033
|
-
sendChannelMessageToChannels(channels: string[], content: any): void;
|
|
1034
|
-
/**
|
|
1035
|
-
* Send message to specific user
|
|
1036
|
-
* @param user - User identifier
|
|
1037
|
-
* @param content - Message content
|
|
1038
|
-
*/
|
|
1039
|
-
sendMessageToUser(user: string, content: any): void;
|
|
1040
|
-
/**
|
|
1041
|
-
* Request list of all channels from server
|
|
1042
|
-
*/
|
|
1043
|
-
getAllChannels(): void;
|
|
1044
|
-
/**
|
|
1045
|
-
* Create a new channel on server
|
|
1046
|
-
* @param channel - Channel name to create
|
|
1047
|
-
*/
|
|
1048
|
-
createChannel(channel: string): void;
|
|
1049
|
-
/**
|
|
1050
|
-
* Delete a channel from server
|
|
1051
|
-
* @param channel - Channel name to delete
|
|
1052
|
-
*/
|
|
1053
|
-
deleteChannel(channel: string): void;
|
|
1054
|
-
/**
|
|
1055
|
-
* Get users in a specific channel
|
|
1056
|
-
* @param channel - Channel name
|
|
1057
|
-
*/
|
|
1058
|
-
getUsersInChannel(channel: string): void;
|
|
1059
|
-
/**
|
|
1060
|
-
* Create a notification channel
|
|
1061
|
-
* @param channel - Channel name (should include MES- prefix)
|
|
1062
|
-
*/
|
|
1063
|
-
createNotificationChannel(channel: string): void;
|
|
1064
|
-
/**
|
|
1065
|
-
* Get all notification channels (in-memory)
|
|
1066
|
-
*/
|
|
1067
|
-
getNotificationChannels(): void;
|
|
1068
|
-
/**
|
|
1069
|
-
* Get today's notification channels from database
|
|
1070
|
-
*/
|
|
1071
|
-
getTodaysNotificationChannels(): void;
|
|
1072
|
-
/**
|
|
1073
|
-
* Subscribe to a notification channel with optional date filters
|
|
1074
|
-
* @param channel - Channel name
|
|
1075
|
-
* @param options - Optional start/end epoch filters
|
|
1076
|
-
* @param user - User information
|
|
1077
|
-
*/
|
|
1078
|
-
subscribeToNotificationChannel(channel: string, options?: {
|
|
1079
|
-
startEpoch?: number;
|
|
1080
|
-
endEpoch?: number;
|
|
1081
|
-
}, user?: any): void;
|
|
1082
|
-
/**
|
|
1083
|
-
* Unsubscribe from a notification channel
|
|
1084
|
-
* @param channel - Channel name
|
|
1085
|
-
*/
|
|
1086
|
-
unsubscribeFromNotificationChannel(channel: string): void;
|
|
1087
|
-
/**
|
|
1088
|
-
* Send notification to channel
|
|
1089
|
-
* @param channel - Channel name (should include MES- prefix)
|
|
1090
|
-
* @param content - Notification content
|
|
1091
|
-
*/
|
|
1092
|
-
sendNotification(channel: string, content: any): void;
|
|
1093
|
-
/**
|
|
1094
|
-
* Check if WebSocket connection is currently open
|
|
1095
|
-
* @returns true if connected, false otherwise
|
|
1096
|
-
*/
|
|
1097
|
-
static isConnected(): boolean;
|
|
1098
|
-
/**
|
|
1099
|
-
* Check if connection has been initialized (attempted at least once)
|
|
1100
|
-
* @returns true if connection was initialized, false otherwise
|
|
1101
|
-
*/
|
|
1102
|
-
static isInitialized(): boolean;
|
|
1103
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WebSocketManagerService, never>;
|
|
1104
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<WebSocketManagerService>;
|
|
1105
|
-
}
|
|
1106
|
-
|
|
1107
|
-
/**
|
|
1108
|
-
* WebSocketMessageService - Unified service for sending WebSocket messages
|
|
1109
|
-
*
|
|
1110
|
-
* Provides type-safe methods for sending messages with automatic prefix management.
|
|
1111
|
-
* Supports three message types: State (SYS-), Public (PUB-), and Notification (MES-).
|
|
1112
|
-
*
|
|
1113
|
-
* Features:
|
|
1114
|
-
* - Type-safe message models
|
|
1115
|
-
* - Automatic prefix management
|
|
1116
|
-
* - Runtime validation
|
|
1117
|
-
* - Boolean return values for success/failure
|
|
1118
|
-
* - Silent failure with console errors
|
|
1119
|
-
*/
|
|
1120
|
-
declare class WebSocketMessageService {
|
|
1121
|
-
private wsManagerService;
|
|
1122
|
-
private logger;
|
|
1123
|
-
/**
|
|
1124
|
-
* Send state message (SYS- prefix)
|
|
1125
|
-
* Used for CRUD operations and state synchronization
|
|
1126
|
-
*
|
|
1127
|
-
* @param path - Path array (e.g., ['ai', 'tests'])
|
|
1128
|
-
* @param payload - StateMessage with sessionId and content
|
|
1129
|
-
* @returns true if sent successfully, false otherwise
|
|
1130
|
-
*/
|
|
1131
|
-
sendStateMessage(path: (string | number)[], payload: StateMessage): boolean;
|
|
1132
|
-
/**
|
|
1133
|
-
* Send public message (PUB- prefix)
|
|
1134
|
-
* Used for chat, broadcast, general messaging
|
|
1135
|
-
*
|
|
1136
|
-
* @param channel - Channel name (without prefix)
|
|
1137
|
-
* @param payload - PublicMessage with sessionId and content.message
|
|
1138
|
-
* @returns true if sent successfully, false otherwise
|
|
1139
|
-
*/
|
|
1140
|
-
sendPublicMessage(channel: string, payload: PublicMessage): boolean;
|
|
1141
|
-
/**
|
|
1142
|
-
* Send notification (MES- prefix)
|
|
1143
|
-
* Used for persistent notifications with history
|
|
1144
|
-
*
|
|
1145
|
-
* @param channel - Channel name (without prefix)
|
|
1146
|
-
* @param payload - NotificationMessage with sessionId and message
|
|
1147
|
-
* @returns true if sent successfully, false otherwise
|
|
1148
|
-
*/
|
|
1149
|
-
sendNotification(channel: string, payload: NotificationMessage): boolean;
|
|
1150
|
-
/**
|
|
1151
|
-
* Send to custom channel (no prefix)
|
|
1152
|
-
* User provides full channel name
|
|
1153
|
-
*
|
|
1154
|
-
* @param channel - Full channel name
|
|
1155
|
-
* @param payload - Any message payload
|
|
1156
|
-
* @returns true if sent successfully, false otherwise
|
|
1157
|
-
*/
|
|
1158
|
-
sendToCustomChannel(channel: string, payload: any): boolean;
|
|
1159
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WebSocketMessageService, never>;
|
|
1160
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<WebSocketMessageService>;
|
|
1161
|
-
}
|
|
1162
|
-
|
|
1163
|
-
declare class RequestService extends WebsocketService {
|
|
1164
|
-
private http;
|
|
1165
|
-
private pathQueryService;
|
|
1166
|
-
private headersService;
|
|
1167
|
-
isPending: BehaviorSubject<boolean>;
|
|
1168
|
-
isPending$: Observable<boolean>;
|
|
1169
|
-
progress: BehaviorSubject<number>;
|
|
1170
|
-
progress$: Observable<number>;
|
|
1171
|
-
streamProgress: BehaviorSubject<StreamProgressModel>;
|
|
1172
|
-
streamProgress$: Observable<StreamProgressModel>;
|
|
1173
|
-
getRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
1174
|
-
getRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
1175
|
-
getRecordRequest<T>(options: ApiRequest & {
|
|
1176
|
-
stream: true;
|
|
1177
|
-
}): Observable<T[]>;
|
|
1178
|
-
createRecordRequest<T>(options: ApiRequest, data: any): Observable<T>;
|
|
1179
|
-
createRecordRequest<T>(options: ApiRequest & {
|
|
1180
|
-
stream: true;
|
|
1181
|
-
}, data: any): Observable<T[]>;
|
|
1182
|
-
createRecordRequest<T>(options: ApiRequest, data: any): Observable<T>;
|
|
1183
|
-
createRecordRequest<T>(options: ApiRequest & {
|
|
1184
|
-
stream: true;
|
|
1185
|
-
}, data: any): Observable<T[]>;
|
|
1186
|
-
updateRecordRequest<T>(options: ApiRequest, data: any): Observable<T>;
|
|
1187
|
-
deleteRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
1188
|
-
private buildUrlPath;
|
|
1189
|
-
private buildHeaders;
|
|
1190
|
-
private buildCombinedHeaders;
|
|
1191
|
-
private request;
|
|
1192
|
-
private requestStreaming;
|
|
1193
|
-
downloadFileRequest(options: ApiRequest): Observable<any>;
|
|
1194
|
-
uploadFileRequest(options: ApiRequest): Observable<any>;
|
|
1195
|
-
private validateUploadFiles;
|
|
1196
|
-
private buildFormData;
|
|
1197
|
-
private handleFinalize;
|
|
1198
|
-
private downloadFile;
|
|
1199
|
-
private createFileType;
|
|
1200
|
-
private combineHeaders;
|
|
1201
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RequestService, never>;
|
|
1202
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RequestService>;
|
|
1203
|
-
}
|
|
1204
|
-
|
|
1205
|
-
interface RetryOptionsInterface {
|
|
1206
|
-
times?: number;
|
|
1207
|
-
delay?: number;
|
|
1208
|
-
}
|
|
1209
|
-
declare class RetryOptions implements RetryOptionsInterface {
|
|
1210
|
-
times: number;
|
|
1211
|
-
delay: number;
|
|
1212
|
-
constructor(times?: number, delay?: number);
|
|
1213
|
-
static adapt(item?: any): RetryOptions;
|
|
1214
|
-
}
|
|
1215
|
-
|
|
1216
|
-
interface BatchOptionsInterface {
|
|
1217
|
-
mode?: 'sequential' | 'parallel';
|
|
1218
|
-
stopOnError?: boolean;
|
|
1219
|
-
concurrency?: number;
|
|
1220
|
-
ignoreErrors?: boolean;
|
|
1221
|
-
logErrors?: boolean;
|
|
1222
|
-
displaySuccess?: boolean;
|
|
1223
|
-
displayError?: boolean;
|
|
1224
|
-
}
|
|
1225
|
-
declare class BatchOptions implements BatchOptionsInterface {
|
|
1226
|
-
mode: 'sequential' | 'parallel';
|
|
1227
|
-
stopOnError: boolean;
|
|
1228
|
-
concurrency: number;
|
|
1229
|
-
ignoreErrors: boolean;
|
|
1230
|
-
logErrors: boolean;
|
|
1231
|
-
displaySuccess?: boolean | undefined;
|
|
1232
|
-
displayError?: boolean | undefined;
|
|
1233
|
-
constructor(mode?: 'sequential' | 'parallel', stopOnError?: boolean, concurrency?: number, ignoreErrors?: boolean, logErrors?: boolean, displaySuccess?: boolean | undefined, displayError?: boolean | undefined);
|
|
1234
|
-
static adapt(item?: any): BatchOptions;
|
|
1235
|
-
}
|
|
1236
|
-
|
|
1237
|
-
interface BatchResultInterface<T = any> {
|
|
1238
|
-
request: any;
|
|
1239
|
-
success: boolean;
|
|
1240
|
-
data?: T;
|
|
1241
|
-
error?: any;
|
|
1242
|
-
index: number;
|
|
1243
|
-
timestamp: number;
|
|
1244
|
-
}
|
|
1245
|
-
declare class BatchResult<T = any> implements BatchResultInterface<T> {
|
|
1246
|
-
request: any;
|
|
1247
|
-
success: boolean;
|
|
1248
|
-
data?: T | undefined;
|
|
1249
|
-
error?: any;
|
|
1250
|
-
index: number;
|
|
1251
|
-
timestamp: number;
|
|
1252
|
-
constructor(request: any, success: boolean, data?: T | undefined, error?: any, index?: number, timestamp?: number);
|
|
1253
|
-
static adapt<T>(item?: any): BatchResult<T>;
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
|
-
type BatchRequestState<T> = BatchPendingState | BatchSuccessState<T> | BatchErrorState;
|
|
1257
|
-
interface BatchPendingState {
|
|
1258
|
-
index: number;
|
|
1259
|
-
request: any;
|
|
1260
|
-
isPending: true;
|
|
1261
|
-
data?: undefined;
|
|
1262
|
-
error?: undefined;
|
|
1263
|
-
}
|
|
1264
|
-
interface BatchSuccessState<T> {
|
|
1265
|
-
index: number;
|
|
1266
|
-
request: any;
|
|
1267
|
-
isPending: false;
|
|
1268
|
-
data: T;
|
|
1269
|
-
error?: undefined;
|
|
1270
|
-
}
|
|
1271
|
-
interface BatchErrorState {
|
|
1272
|
-
index: number;
|
|
1273
|
-
request: any;
|
|
1274
|
-
isPending: false;
|
|
1275
|
-
data?: undefined;
|
|
1276
|
-
error: any;
|
|
1277
|
-
}
|
|
1278
|
-
declare function isPendingState<T>(state: BatchRequestState<T>): state is BatchPendingState;
|
|
1279
|
-
declare function isSuccessState<T>(state: BatchRequestState<T>): state is BatchSuccessState<T>;
|
|
1280
|
-
declare function isErrorState<T>(state: BatchRequestState<T>): state is BatchErrorState;
|
|
1281
|
-
|
|
1282
|
-
interface BatchProgress {
|
|
1283
|
-
total: number;
|
|
1284
|
-
pending: number;
|
|
1285
|
-
completed: number;
|
|
1286
|
-
failed: number;
|
|
1287
|
-
percent: number;
|
|
1288
|
-
}
|
|
1289
|
-
declare function calculateBatchProgress<T>(states: BatchRequestState<T>[]): BatchProgress;
|
|
1290
|
-
|
|
1291
|
-
declare enum DataType {
|
|
1292
|
-
ANY = 0,
|
|
1293
|
-
ARRAY = 1,
|
|
1294
|
-
OBJECT = 2
|
|
1295
|
-
}
|
|
1296
|
-
|
|
1297
|
-
interface ConfigHTTPOptionsInterface {
|
|
1298
|
-
server: string;
|
|
1299
|
-
path?: any[];
|
|
1300
|
-
headers?: any;
|
|
1301
|
-
polling?: number;
|
|
1302
|
-
retry?: RetryOptions;
|
|
1303
|
-
stream?: boolean;
|
|
1304
|
-
displayError?: boolean;
|
|
1305
|
-
displaySuccess?: boolean;
|
|
1306
|
-
}
|
|
1307
|
-
declare class ConfigHTTPOptions implements ConfigHTTPOptionsInterface {
|
|
1308
|
-
server: string;
|
|
1309
|
-
path?: any[] | undefined;
|
|
1310
|
-
headers?: any;
|
|
1311
|
-
polling?: number | undefined;
|
|
1312
|
-
retry?: RetryOptions | undefined;
|
|
1313
|
-
stream?: boolean | undefined;
|
|
1314
|
-
displayError?: boolean | undefined;
|
|
1315
|
-
displaySuccess?: boolean | undefined;
|
|
1316
|
-
constructor(server?: string, path?: any[] | undefined, headers?: any, polling?: number | undefined, retry?: RetryOptions | undefined, stream?: boolean | undefined, displayError?: boolean | undefined, displaySuccess?: boolean | undefined);
|
|
1317
|
-
static adapt(item?: any): ConfigHTTPOptions;
|
|
1318
|
-
}
|
|
1319
|
-
|
|
1320
|
-
interface LocalStorageOptionsInterface {
|
|
1321
|
-
storageName?: string;
|
|
1322
|
-
storageSettingsName?: string;
|
|
1323
|
-
options?: SettingOptions;
|
|
1324
|
-
}
|
|
1325
|
-
declare class LocalStorageOptions implements LocalStorageOptionsInterface {
|
|
1326
|
-
storageName?: string | undefined;
|
|
1327
|
-
storageSettingsName?: string | undefined;
|
|
1328
|
-
options?: SettingOptions | undefined;
|
|
1329
|
-
constructor(storageName?: string | undefined, storageSettingsName?: string | undefined, options?: SettingOptions | undefined);
|
|
1330
|
-
static adapt(item?: any): LocalStorageOptions;
|
|
1331
|
-
}
|
|
1332
|
-
|
|
1333
|
-
interface ConfigOptionsInterface {
|
|
1334
|
-
httpRequestOptions?: ConfigHTTPOptions;
|
|
1335
|
-
LocalStorageOptions?: LocalStorageOptions;
|
|
1336
|
-
}
|
|
1337
|
-
declare class ConfigOptions implements ConfigOptionsInterface {
|
|
1338
|
-
httpRequestOptions?: ConfigHTTPOptions | undefined;
|
|
1339
|
-
LocalStorageOptions?: LocalStorageOptions | undefined;
|
|
1340
|
-
constructor(httpRequestOptions?: ConfigHTTPOptions | undefined, LocalStorageOptions?: LocalStorageOptions | undefined);
|
|
1341
|
-
static adapt(item?: any): ConfigOptions;
|
|
1342
|
-
}
|
|
1343
|
-
|
|
1344
|
-
/**
|
|
1345
|
-
* An injection token that provides the configuration settings for the application.
|
|
1346
|
-
* This token can be used to inject the `ConfigSettings` instance into components or services
|
|
1347
|
-
* that require access to the application configuration.
|
|
1348
|
-
*/
|
|
1349
|
-
declare const CONFIG_SETTINGS_TOKEN: InjectionToken<ConfigOptions>;
|
|
1350
|
-
|
|
1351
|
-
interface InvalidFileInfoInterface {
|
|
1352
|
-
fileName: string;
|
|
1353
|
-
fileSize: number;
|
|
1354
|
-
fileType: string;
|
|
1355
|
-
errors: string[];
|
|
1356
|
-
}
|
|
1357
|
-
declare class InvalidFileInfoModel implements InvalidFileInfoInterface {
|
|
1358
|
-
fileName: string;
|
|
1359
|
-
fileSize: number;
|
|
1360
|
-
fileType: string;
|
|
1361
|
-
errors: string[];
|
|
1362
|
-
constructor(fileName?: string, fileSize?: number, fileType?: string, errors?: string[]);
|
|
1363
|
-
static adapt(item?: any): InvalidFileInfoModel;
|
|
1364
|
-
}
|
|
1365
|
-
interface UploadValidationErrorInterface {
|
|
1366
|
-
invalidFiles: InvalidFileInfoModel[];
|
|
1367
|
-
validFilesCount: number;
|
|
1368
|
-
totalFilesCount: number;
|
|
1369
|
-
}
|
|
1370
|
-
declare class UploadValidationErrorModel implements UploadValidationErrorInterface {
|
|
1371
|
-
invalidFiles: InvalidFileInfoModel[];
|
|
1372
|
-
validFilesCount: number;
|
|
1373
|
-
totalFilesCount: number;
|
|
1374
|
-
constructor(invalidFiles?: InvalidFileInfoModel[], validFilesCount?: number, totalFilesCount?: number);
|
|
1375
|
-
static adapt(item?: any): UploadValidationErrorModel;
|
|
1376
|
-
}
|
|
1377
|
-
|
|
1378
|
-
declare class ObjectMergerService {
|
|
1379
|
-
private configOptions?;
|
|
1380
|
-
utils: UtilsService;
|
|
1381
|
-
constructor(configOptions?: ConfigOptions | undefined);
|
|
1382
|
-
mergeOptions(options?: ApiRequest): ApiRequest;
|
|
1383
|
-
mergeStorageOptions(options?: SettingOptions): SettingOptions;
|
|
1384
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ObjectMergerService, [{ optional: true; }]>;
|
|
1385
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ObjectMergerService>;
|
|
1386
|
-
}
|
|
1387
|
-
|
|
1388
|
-
/**
|
|
1389
|
-
* Message Tracker Service - Guaranteed Message Delivery
|
|
1390
|
-
*
|
|
1391
|
-
* Tracks message IDs, detects gaps, manages acknowledgments, and handles sync.
|
|
1392
|
-
* Ensures frontend clients never miss messages even during disconnections.
|
|
1393
|
-
*
|
|
1394
|
-
* Features:
|
|
1395
|
-
* - Per-channel message sequence tracking
|
|
1396
|
-
* - Automatic gap detection and recovery
|
|
1397
|
-
* - Batch acknowledgments (configurable interval)
|
|
1398
|
-
* - Reconnection sync with last-seen tracking
|
|
1399
|
-
* - Gap threshold alerting (10 messages before UI notification)
|
|
1400
|
-
*/
|
|
1401
|
-
declare class MessageTrackerService implements OnDestroy {
|
|
1402
|
-
private wsManager;
|
|
1403
|
-
/** Batch acknowledgment interval in milliseconds */
|
|
1404
|
-
private readonly BATCH_ACK_INTERVAL_MS;
|
|
1405
|
-
/** Maximum gap before alerting UI */
|
|
1406
|
-
private readonly GAP_THRESHOLD;
|
|
1407
|
-
/** Maximum messages to store in pending acks before forcing batch */
|
|
1408
|
-
private readonly MAX_PENDING_ACKS;
|
|
1409
|
-
/**
|
|
1410
|
-
* Track last seen message ID per channel
|
|
1411
|
-
* Map<channelName, lastMessageId>
|
|
1412
|
-
*/
|
|
1413
|
-
private lastSeen;
|
|
1414
|
-
/**
|
|
1415
|
-
* Expected next message ID per channel (for gap detection)
|
|
1416
|
-
* Map<channelName, nextExpectedId>
|
|
1417
|
-
*/
|
|
1418
|
-
private expectedSequence;
|
|
1419
|
-
/**
|
|
1420
|
-
* Pending acknowledgments per channel
|
|
1421
|
-
* Map<channelName, Set<messageId>>
|
|
1422
|
-
*/
|
|
1423
|
-
private pendingAcks;
|
|
1424
|
-
/**
|
|
1425
|
-
* Gap count per channel (for threshold alerting)
|
|
1426
|
-
* Map<channelName, gapCount>
|
|
1427
|
-
*/
|
|
1428
|
-
private gapCounts;
|
|
1429
|
-
/**
|
|
1430
|
-
* Replay mode tracking (per channel)
|
|
1431
|
-
* Used to distinguish replay vs live messages
|
|
1432
|
-
*/
|
|
1433
|
-
private inReplayMode;
|
|
1434
|
-
/**
|
|
1435
|
-
* Gap retry count (for retry logic)
|
|
1436
|
-
* Map<channel, retryCount>
|
|
1437
|
-
*/
|
|
1438
|
-
private gapRetryCount;
|
|
1439
|
-
/** Subscription to WebSocket messages */
|
|
1440
|
-
private messagesSubscription;
|
|
1441
|
-
/** Subject to signal destroy for takeUntil */
|
|
1442
|
-
private destroy$;
|
|
1443
|
-
/**
|
|
1444
|
-
* Track channels we want to be subscribed to (survives disconnect/reconnect)
|
|
1445
|
-
* This is separate from WebSocketManagerService.subscribedChannels which tracks
|
|
1446
|
-
* actual active subscriptions
|
|
1447
|
-
*/
|
|
1448
|
-
private intendedChannels;
|
|
1449
|
-
/** Observable to emit processed messages to UI components */
|
|
1450
|
-
private messagesSubject;
|
|
1451
|
-
messages$: Observable<any>;
|
|
1452
|
-
constructor(wsManager: WebSocketManagerService);
|
|
1453
|
-
ngOnDestroy(): void;
|
|
1454
|
-
/**
|
|
1455
|
-
* Process incoming message
|
|
1456
|
-
* Tracks ID, detects gaps, queues acknowledgment
|
|
1457
|
-
*/
|
|
1458
|
-
private onMessage;
|
|
1459
|
-
/**
|
|
1460
|
-
* Track message ID and detect gaps
|
|
1461
|
-
*/
|
|
1462
|
-
private trackMessage;
|
|
1463
|
-
/**
|
|
1464
|
-
* Queue message for batch acknowledgment
|
|
1465
|
-
*/
|
|
1466
|
-
private queueAck;
|
|
1467
|
-
/**
|
|
1468
|
-
* Send batch acknowledgments for all channels with pending acks
|
|
1469
|
-
*/
|
|
1470
|
-
private sendAllBatchAcks;
|
|
1471
|
-
/**
|
|
1472
|
-
* Send batch acknowledgment for a specific channel
|
|
1473
|
-
*/
|
|
1474
|
-
private sendBatchAck;
|
|
1475
|
-
/**
|
|
1476
|
-
* Request missing messages from server
|
|
1477
|
-
*/
|
|
1478
|
-
private requestGapFill;
|
|
1479
|
-
/**
|
|
1480
|
-
* Handle gap threshold exceeded (optional: alert UI)
|
|
1481
|
-
*/
|
|
1482
|
-
private onGapThresholdExceeded;
|
|
1483
|
-
/**
|
|
1484
|
-
* Subscribe to channel with sync support
|
|
1485
|
-
* Automatically includes lastSeenId for replay
|
|
1486
|
-
*/
|
|
1487
|
-
subscribeToChannel(channel: string, userData?: any): void;
|
|
1488
|
-
/**
|
|
1489
|
-
* Re-subscribe to all previously subscribed channels after reconnect
|
|
1490
|
-
* Includes lastSeenId for each channel to trigger message replay
|
|
1491
|
-
*/
|
|
1492
|
-
private reSubscribeAllChannels;
|
|
1493
|
-
/**
|
|
1494
|
-
* Persist lastSeen to sessionStorage (survives page reload)
|
|
1495
|
-
*/
|
|
1496
|
-
private persistLastSeen;
|
|
1497
|
-
/**
|
|
1498
|
-
* Restore lastSeen from sessionStorage
|
|
1499
|
-
*/
|
|
1500
|
-
private restoreLastSeen;
|
|
1501
|
-
/**
|
|
1502
|
-
* Persist intendedChannels to sessionStorage
|
|
1503
|
-
*/
|
|
1504
|
-
private persistIntendedChannels;
|
|
1505
|
-
/**
|
|
1506
|
-
* Restore intendedChannels from sessionStorage
|
|
1507
|
-
*/
|
|
1508
|
-
private restoreIntendedChannels;
|
|
1509
|
-
/**
|
|
1510
|
-
* Get last seen message ID for a channel
|
|
1511
|
-
*/
|
|
1512
|
-
getLastSeenId(channel: string): number;
|
|
1513
|
-
/**
|
|
1514
|
-
* Get expected next message ID for a channel
|
|
1515
|
-
*/
|
|
1516
|
-
getExpectedNextId(channel: string): number;
|
|
1517
|
-
/**
|
|
1518
|
-
* Check if currently in replay mode for a channel
|
|
1519
|
-
*/
|
|
1520
|
-
isInReplayMode(channel: string): boolean;
|
|
1521
|
-
/**
|
|
1522
|
-
* Get gap count for a channel
|
|
1523
|
-
*/
|
|
1524
|
-
getGapCount(channel: string): number;
|
|
1525
|
-
/**
|
|
1526
|
-
* Get skipped IDs between expected and received (for detailed gap reporting)
|
|
1527
|
-
*/
|
|
1528
|
-
private getSkippedIds;
|
|
1529
|
-
/**
|
|
1530
|
-
* Clear all tracking state (useful for debugging or manual reset)
|
|
1531
|
-
*/
|
|
1532
|
-
clearState(): void;
|
|
1533
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MessageTrackerService, never>;
|
|
1534
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MessageTrackerService>;
|
|
1535
|
-
}
|
|
1536
|
-
|
|
1537
|
-
declare class HTTPManagerService<T> extends RequestService {
|
|
1538
|
-
private configOptions?;
|
|
1539
|
-
toastMessage: ToastMessageDisplayService;
|
|
1540
|
-
ng_injector: Injector;
|
|
1541
|
-
objectMergerService: ObjectMergerService;
|
|
1542
|
-
wsManager: WebSocketManagerService;
|
|
1543
|
-
messageTracker: MessageTrackerService;
|
|
1544
|
-
connectionStatus$: Observable<boolean>;
|
|
1545
|
-
messages$: Observable<any>;
|
|
1546
|
-
subscribedChannels$: Observable<Set<string>>;
|
|
1547
|
-
retryCount$: Observable<number>;
|
|
1548
|
-
maxRetries$: Observable<number>;
|
|
1549
|
-
private countdown;
|
|
1550
|
-
countdown$: Observable<number>;
|
|
1551
|
-
private error;
|
|
1552
|
-
error$: Observable<boolean>;
|
|
1553
|
-
private data;
|
|
1554
|
-
data$: Observable<any>;
|
|
1555
|
-
private polling$;
|
|
1556
|
-
config: ApiRequest;
|
|
1557
|
-
streamProgress$: Observable<http_request_manager.StreamProgressModel>;
|
|
1558
|
-
constructor(configOptions?: ConfigOptions | undefined);
|
|
1559
|
-
/**
|
|
1560
|
-
* Connect to WebSocket server
|
|
1561
|
-
* Only the first call across ALL instances will establish a connection
|
|
1562
|
-
*/
|
|
1563
|
-
connect(options: any, jwtToken: string): void;
|
|
1564
|
-
/**
|
|
1565
|
-
* Disconnect from WebSocket server
|
|
1566
|
-
*/
|
|
1567
|
-
disconnect(): void;
|
|
1568
|
-
/**
|
|
1569
|
-
* Subscribe to a channel
|
|
1570
|
-
*/
|
|
1571
|
-
subscribeToChannel(channel: string, userData?: any): void;
|
|
1572
|
-
/**
|
|
1573
|
-
* Subscribe to multiple channels
|
|
1574
|
-
*/
|
|
1575
|
-
subscribeToChannels(channels: string[], userData?: any): void;
|
|
1576
|
-
/**
|
|
1577
|
-
* Unsubscribe from a channel
|
|
1578
|
-
*/
|
|
1579
|
-
unsubscribeFromChannel(channel: string): void;
|
|
1580
|
-
/**
|
|
1581
|
-
* Get currently subscribed channels
|
|
1582
|
-
*/
|
|
1583
|
-
getSubscribedChannels(): Set<string>;
|
|
1584
|
-
/**
|
|
1585
|
-
* Send broadcast message
|
|
1586
|
-
*/
|
|
1587
|
-
sendBroadcast(content: any): void;
|
|
1588
|
-
/**
|
|
1589
|
-
* Send message in channel (state manager message)
|
|
1590
|
-
*/
|
|
1591
|
-
sendMessageInChannel(channel: string, content: any): void;
|
|
1592
|
-
/**
|
|
1593
|
-
* Send channel message
|
|
1594
|
-
*/
|
|
1595
|
-
sendChannelMessage(channel: string, content: any): void;
|
|
1596
|
-
/**
|
|
1597
|
-
* Send message to multiple channels
|
|
1598
|
-
*/
|
|
1599
|
-
sendChannelMessageToChannels(channels: string[], content: any): void;
|
|
1600
|
-
/**
|
|
1601
|
-
* Send message to user
|
|
1602
|
-
*/
|
|
1603
|
-
sendMessageToUser(user: string, content: any): void;
|
|
1604
|
-
/**
|
|
1605
|
-
* Get all channels
|
|
1606
|
-
*/
|
|
1607
|
-
getAllChannels(): void;
|
|
1608
|
-
/**
|
|
1609
|
-
* Create channel
|
|
1610
|
-
*/
|
|
1611
|
-
createChannel(channel: string): void;
|
|
1612
|
-
/**
|
|
1613
|
-
* Delete channel
|
|
1614
|
-
*/
|
|
1615
|
-
deleteChannel(channel: string): void;
|
|
1616
|
-
/**
|
|
1617
|
-
* Get users in channel
|
|
1618
|
-
*/
|
|
1619
|
-
getUsersInChannel(channel: string): void;
|
|
1620
|
-
/**
|
|
1621
|
-
* Create notification channel
|
|
1622
|
-
*/
|
|
1623
|
-
createNotificationChannel(channel: string): void;
|
|
1624
|
-
/**
|
|
1625
|
-
* Get notification channels
|
|
1626
|
-
*/
|
|
1627
|
-
getNotificationChannels(): void;
|
|
1628
|
-
/**
|
|
1629
|
-
* Get today's notification channels
|
|
1630
|
-
*/
|
|
1631
|
-
getTodaysNotificationChannels(): void;
|
|
1632
|
-
/**
|
|
1633
|
-
* Subscribe to notification channel
|
|
1634
|
-
*/
|
|
1635
|
-
subscribeToNotificationChannel(channel: string, options?: any, user?: any): void;
|
|
1636
|
-
/**
|
|
1637
|
-
* Unsubscribe from notification channel
|
|
1638
|
-
*/
|
|
1639
|
-
unsubscribeFromNotificationChannel(channel: string): void;
|
|
1640
|
-
/**
|
|
1641
|
-
* Send notification to channel
|
|
1642
|
-
*/
|
|
1643
|
-
sendNotification(channel: string, content: any): void;
|
|
1644
|
-
getRequest<T>(options?: ApiRequest, params?: any[]): Observable<T>;
|
|
1645
|
-
postRequest<T extends {
|
|
1646
|
-
id?: number | string;
|
|
1647
|
-
}>(data: T, options: ApiRequest, params?: any[]): Observable<T>;
|
|
1648
|
-
putRequest<T extends {
|
|
1649
|
-
id?: number | string;
|
|
1650
|
-
}>(data: T, options: ApiRequest, params?: any[]): Observable<T>;
|
|
1651
|
-
deleteRequest<T>(options: ApiRequest, params?: any[]): Observable<T>;
|
|
1652
|
-
downloadRequest<T>(options: ApiRequest, params?: any[], saveAs?: string): Observable<T>;
|
|
1653
|
-
uploadRequest<T>(files: File | File[], options: ApiRequest, params?: any[]): Observable<T>;
|
|
1654
|
-
private createObservable;
|
|
1655
|
-
private createRequest;
|
|
1656
|
-
private prepareRequestData;
|
|
1657
|
-
private handleError;
|
|
1658
|
-
private handleErrorWithSnackBar;
|
|
1659
|
-
private handleSuccessWithSnackBar;
|
|
1660
|
-
private stopPolling;
|
|
1661
|
-
private defineReqOptions;
|
|
1662
|
-
/**
|
|
1663
|
-
* Execute multiple HTTP requests with configurable execution strategy
|
|
1664
|
-
* @param requests Array of ApiRequest configurations
|
|
1665
|
-
* @param options Optional batch configuration (all properties optional)
|
|
1666
|
-
* @returns Observable emitting array of data in the order of requests provided
|
|
1667
|
-
*/
|
|
1668
|
-
getBatchRequests<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
|
|
1669
|
-
/**
|
|
1670
|
-
* Execute requests sequentially (one at a time, in order)
|
|
1671
|
-
* @param requests Array of ApiRequest configurations
|
|
1672
|
-
* @param options Optional batch configuration
|
|
1673
|
-
* @returns Observable emitting array of data when all requests complete
|
|
1674
|
-
*/
|
|
1675
|
-
getSequentialRequest<U = T>(requests: ApiRequest[], options?: BatchOptions, successMessage?: string, errorMessage?: string): Observable<U[]>;
|
|
1676
|
-
/**
|
|
1677
|
-
* Execute requests in parallel with concurrency control
|
|
1678
|
-
* @param requests Array of ApiRequest configurations
|
|
1679
|
-
* @param options Optional batch configuration with concurrency limit
|
|
1680
|
-
* @returns Observable emitting array of data when all requests complete
|
|
1681
|
-
*/
|
|
1682
|
-
getParallelRequest<U = T>(requests: ApiRequest[], options?: BatchOptions, successMessage?: string, errorMessage?: string): Observable<U[]>;
|
|
1683
|
-
/**
|
|
1684
|
-
* Execute multiple HTTP requests and emit individual state changes in real-time
|
|
1685
|
-
* @param requests Array of ApiRequest configurations
|
|
1686
|
-
* @param options Optional batch configuration (all properties optional)
|
|
1687
|
-
* @returns Observable stream of individual request states
|
|
1688
|
-
*/
|
|
1689
|
-
getBatchRequestsStream<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestState<U>>;
|
|
1690
|
-
/**
|
|
1691
|
-
* Execute requests sequentially and emit state changes
|
|
1692
|
-
*/
|
|
1693
|
-
private getSequentialStream;
|
|
1694
|
-
/**
|
|
1695
|
-
* Execute requests in parallel and emit state changes
|
|
1696
|
-
*/
|
|
1697
|
-
private getParallelStream;
|
|
1698
|
-
private handleSequentialError;
|
|
1699
|
-
private handleParallelError;
|
|
1700
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HTTPManagerService<any>, [{ optional: true; }]>;
|
|
1701
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HTTPManagerService<any>>;
|
|
1702
|
-
}
|
|
1703
|
-
|
|
1704
|
-
declare class RequestSignalsService extends WebsocketService {
|
|
1705
|
-
private http;
|
|
1706
|
-
private pathQueryService;
|
|
1707
|
-
private headersService;
|
|
1708
|
-
isPending: i0.WritableSignal<boolean>;
|
|
1709
|
-
progress: i0.WritableSignal<number>;
|
|
1710
|
-
isIdle: i0.Signal<boolean>;
|
|
1711
|
-
getRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
1712
|
-
getRecordRequest<T>(options: ApiRequest & {
|
|
1713
|
-
stream: true;
|
|
1714
|
-
}): Observable<T[]>;
|
|
1715
|
-
createRecordRequest<T>(options: ApiRequest, data: any): Observable<T>;
|
|
1716
|
-
createRecordRequest<T>(options: ApiRequest & {
|
|
1717
|
-
stream: true;
|
|
1718
|
-
}, data: any): Observable<T[]>;
|
|
1719
|
-
updateRecordRequest<T>(options: ApiRequest, data: any): Observable<T>;
|
|
1720
|
-
deleteRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
1721
|
-
private buildUrlPath;
|
|
1722
|
-
private buildHeaders;
|
|
1723
|
-
private buildCombinedHeaders;
|
|
1724
|
-
private request;
|
|
1725
|
-
private requestStreamingOperator;
|
|
1726
|
-
downloadFileRequest(options: ApiRequest): Observable<any>;
|
|
1727
|
-
uploadFileRequest(options: ApiRequest): Observable<any>;
|
|
1728
|
-
private validateUploadFiles;
|
|
1729
|
-
private buildFormData;
|
|
1730
|
-
private handleFinalize;
|
|
1731
|
-
private downloadFile;
|
|
1732
|
-
private createFileType;
|
|
1733
|
-
private combineHeaders;
|
|
1734
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RequestSignalsService, never>;
|
|
1735
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RequestSignalsService>;
|
|
1736
|
-
}
|
|
1737
|
-
|
|
1738
|
-
declare class HTTPManagerSignalsService<T> extends RequestSignalsService {
|
|
1739
|
-
private configOptions?;
|
|
1740
|
-
toastMessage: ToastMessageDisplayService;
|
|
1741
|
-
ng_injector: Injector;
|
|
1742
|
-
objectMergerService: ObjectMergerService;
|
|
1743
|
-
wsManager: WebSocketManagerService;
|
|
1744
|
-
messageTracker: MessageTrackerService;
|
|
1745
|
-
connectionStatus$: Observable<boolean>;
|
|
1746
|
-
messages$: Observable<any>;
|
|
1747
|
-
subscribedChannels$: Observable<Set<string>>;
|
|
1748
|
-
countdown: i0.WritableSignal<number>;
|
|
1749
|
-
error: i0.WritableSignal<string | boolean>;
|
|
1750
|
-
data: i0.WritableSignal<any>;
|
|
1751
|
-
private polling$;
|
|
1752
|
-
config: ApiRequest;
|
|
1753
|
-
constructor(configOptions?: ConfigOptions | undefined);
|
|
1754
|
-
/**
|
|
1755
|
-
* Connect to WebSocket server
|
|
1756
|
-
*/
|
|
1757
|
-
connect(options: any, jwtToken: string): void;
|
|
1758
|
-
/**
|
|
1759
|
-
* Disconnect from WebSocket server
|
|
1760
|
-
*/
|
|
1761
|
-
disconnect(): void;
|
|
1762
|
-
/**
|
|
1763
|
-
* Subscribe to a channel
|
|
1764
|
-
*/
|
|
1765
|
-
subscribeToChannel(channel: string, userData?: any): void;
|
|
1766
|
-
/**
|
|
1767
|
-
* Subscribe to multiple channels
|
|
1768
|
-
*/
|
|
1769
|
-
subscribeToChannels(channels: string[], userData?: any): void;
|
|
1770
|
-
/**
|
|
1771
|
-
* Unsubscribe from a channel
|
|
1772
|
-
*/
|
|
1773
|
-
unsubscribeFromChannel(channel: string): void;
|
|
1774
|
-
/**
|
|
1775
|
-
* Get currently subscribed channels
|
|
1776
|
-
*/
|
|
1777
|
-
getSubscribedChannels(): Set<string>;
|
|
1778
|
-
/**
|
|
1779
|
-
* Send broadcast message
|
|
1780
|
-
*/
|
|
1781
|
-
sendBroadcast(content: any): void;
|
|
1782
|
-
/**
|
|
1783
|
-
* Send message in channel (state manager message)
|
|
1784
|
-
*/
|
|
1785
|
-
sendMessageInChannel(channel: string, content: any): void;
|
|
1786
|
-
/**
|
|
1787
|
-
* Send channel message
|
|
1788
|
-
*/
|
|
1789
|
-
sendChannelMessage(channel: string, content: any): void;
|
|
1790
|
-
/**
|
|
1791
|
-
* Send message to multiple channels
|
|
1792
|
-
*/
|
|
1793
|
-
sendChannelMessageToChannels(channels: string[], content: any): void;
|
|
1794
|
-
/**
|
|
1795
|
-
* Send message to user
|
|
1796
|
-
*/
|
|
1797
|
-
sendMessageToUser(user: string, content: any): void;
|
|
1798
|
-
/**
|
|
1799
|
-
* Get all channels
|
|
1800
|
-
*/
|
|
1801
|
-
getAllChannels(): void;
|
|
1802
|
-
/**
|
|
1803
|
-
* Create channel
|
|
1804
|
-
*/
|
|
1805
|
-
createChannel(channel: string): void;
|
|
1806
|
-
/**
|
|
1807
|
-
* Delete channel
|
|
1808
|
-
*/
|
|
1809
|
-
deleteChannel(channel: string): void;
|
|
1810
|
-
/**
|
|
1811
|
-
* Get users in channel
|
|
1812
|
-
*/
|
|
1813
|
-
getUsersInChannel(channel: string): void;
|
|
1814
|
-
/**
|
|
1815
|
-
* Create notification channel
|
|
1816
|
-
*/
|
|
1817
|
-
createNotificationChannel(channel: string): void;
|
|
1818
|
-
/**
|
|
1819
|
-
* Get notification channels
|
|
1820
|
-
*/
|
|
1821
|
-
getNotificationChannels(): void;
|
|
1822
|
-
/**
|
|
1823
|
-
* Get today's notification channels
|
|
1824
|
-
*/
|
|
1825
|
-
getTodaysNotificationChannels(): void;
|
|
1826
|
-
/**
|
|
1827
|
-
* Subscribe to notification channel
|
|
1828
|
-
*/
|
|
1829
|
-
subscribeToNotificationChannel(channel: string, options?: any, user?: any): void;
|
|
1830
|
-
/**
|
|
1831
|
-
* Unsubscribe from notification channel
|
|
1832
|
-
*/
|
|
1833
|
-
unsubscribeFromNotificationChannel(channel: string): void;
|
|
1834
|
-
/**
|
|
1835
|
-
* Send notification to channel
|
|
1836
|
-
*/
|
|
1837
|
-
sendNotification(channel: string, content: any): void;
|
|
1838
|
-
getRequest<T>(options?: ApiRequest, params?: any[]): Observable<T>;
|
|
1839
|
-
postRequest<T extends {
|
|
1840
|
-
id?: number | string;
|
|
1841
|
-
}>(data: T, options: ApiRequest, params?: any[]): Observable<T>;
|
|
1842
|
-
putRequest<T extends {
|
|
1843
|
-
id?: number | string;
|
|
1844
|
-
}>(data: T, options: ApiRequest, params?: any[]): Observable<T>;
|
|
1845
|
-
deleteRequest<T>(options: ApiRequest, params?: any[]): Observable<T>;
|
|
1846
|
-
downloadRequest<T>(options: ApiRequest, params?: any[], saveAs?: string): Observable<T>;
|
|
1847
|
-
uploadRequest<T>(files: File | File[], options: ApiRequest, params?: any[]): Observable<T>;
|
|
1848
|
-
private createObservable;
|
|
1849
|
-
private createRequest;
|
|
1850
|
-
private prepareRequestData;
|
|
1851
|
-
private handleError;
|
|
1852
|
-
private handleErrorWithSnackBar;
|
|
1853
|
-
private handleSuccessWithSnackBar;
|
|
1854
|
-
private stopPolling;
|
|
1855
|
-
private defineReqOptions;
|
|
1856
|
-
/**
|
|
1857
|
-
* Execute multiple HTTP requests with configurable execution strategy
|
|
1858
|
-
* @param requests Array of ApiRequest configurations
|
|
1859
|
-
* @param options Optional batch configuration (all properties optional)
|
|
1860
|
-
* @returns Observable emitting array of data in the order of requests provided
|
|
1861
|
-
*/
|
|
1862
|
-
getBatchRequests<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
|
|
1863
|
-
/**
|
|
1864
|
-
* Execute requests sequentially (one at a time, in order)
|
|
1865
|
-
* @param requests Array of ApiRequest configurations
|
|
1866
|
-
* @param options Optional batch configuration
|
|
1867
|
-
* @returns Observable emitting array of data when all requests complete
|
|
1868
|
-
*/
|
|
1869
|
-
getSequentialRequest<U = T>(requests: ApiRequest[], options?: BatchOptions, successMessage?: string, errorMessage?: string): Observable<U[]>;
|
|
1870
|
-
/**
|
|
1871
|
-
* Execute requests in parallel with concurrency control
|
|
1872
|
-
* @param requests Array of ApiRequest configurations
|
|
1873
|
-
* @param options Optional batch configuration with concurrency limit
|
|
1874
|
-
* @returns Observable emitting array of data when all requests complete
|
|
1875
|
-
*/
|
|
1876
|
-
getParallelRequest<U = T>(requests: ApiRequest[], options?: BatchOptions, successMessage?: string, errorMessage?: string): Observable<U[]>;
|
|
1877
|
-
/**
|
|
1878
|
-
* Execute multiple HTTP requests and emit individual state changes in real-time
|
|
1879
|
-
* @param requests Array of ApiRequest configurations
|
|
1880
|
-
* @param options Optional batch configuration (all properties optional)
|
|
1881
|
-
* @returns Observable stream of individual request states
|
|
1882
|
-
*/
|
|
1883
|
-
getBatchRequestsStream<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestState<U>>;
|
|
1884
|
-
/**
|
|
1885
|
-
* Execute requests sequentially and emit state changes
|
|
1886
|
-
*/
|
|
1887
|
-
private getSequentialStream;
|
|
1888
|
-
/**
|
|
1889
|
-
* Execute requests in parallel and emit state changes
|
|
1890
|
-
*/
|
|
1891
|
-
private getParallelStream;
|
|
1892
|
-
private handleSequentialError;
|
|
1893
|
-
private handleParallelError;
|
|
1894
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HTTPManagerSignalsService<any>, [{ optional: true; }]>;
|
|
1895
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HTTPManagerSignalsService<any>>;
|
|
1896
|
-
}
|
|
1897
|
-
|
|
1898
|
-
declare function countdown(duration: number): Observable<number>;
|
|
1899
|
-
|
|
1900
|
-
declare function delayedRetry<T>(delayMs: number, maxRetry?: number): (src: Observable<T>) => Observable<T>;
|
|
1901
|
-
|
|
1902
|
-
declare function requestPolling<T>(pollInterval: number, stopCondition$: Observable<any>, isPending$: any): (source: Observable<T>) => Observable<T>;
|
|
1903
|
-
|
|
1904
|
-
/**
|
|
1905
|
-
* COMPREHENSIVE REQUEST STREAMING OPERATOR - FULLY ABSTRACTED
|
|
1906
|
-
* Refactored for better type safety and memory management
|
|
1907
|
-
*
|
|
1908
|
-
* Single function that handles ALL streaming formats without hardcoded assumptions:
|
|
1909
|
-
* - JSON format (Individual JSON objects)
|
|
1910
|
-
* - NDJSON format (Newline delimited JSON)
|
|
1911
|
-
* - AI streaming format (Real-time AI responses)
|
|
1912
|
-
* - Server-Sent Events format
|
|
1913
|
-
* - Auto-detection mode
|
|
1914
|
-
*
|
|
1915
|
-
* Usage:
|
|
1916
|
-
* this.http.get(url, options).pipe(requestStreaming()).subscribe(data => {...})
|
|
1917
|
-
* this.http.get(url, options).pipe(requestStreaming({ streamType: StreamType.NDJSON })).subscribe(data => {...})
|
|
1918
|
-
*/
|
|
1919
|
-
declare function requestStreaming<T = any>(config?: StreamConfigModel): OperatorFunction<any, StreamOutputModel<T>>;
|
|
1920
|
-
/**
|
|
1921
|
-
* Convenience functions for common use cases
|
|
1922
|
-
*/
|
|
1923
|
-
declare function streamJSON<T = any>(): OperatorFunction<any, StreamOutputModel<T>>;
|
|
1924
|
-
declare function streamNDJSON<T = any>(): OperatorFunction<any, StreamOutputModel<T>>;
|
|
1925
|
-
declare function streamAI<T = any>(): OperatorFunction<any, StreamOutputModel<T>>;
|
|
1926
|
-
declare function streamEvents<T = any>(): OperatorFunction<any, StreamOutputModel<T>>;
|
|
1927
|
-
declare function streamAuto<T = any>(): OperatorFunction<any, StreamOutputModel<T>>;
|
|
1928
|
-
|
|
1929
|
-
interface State {
|
|
1930
|
-
localStores: StorageData[];
|
|
1931
|
-
sessionStores: StorageData[];
|
|
1932
|
-
settings: StorageOption[];
|
|
1933
|
-
}
|
|
1934
|
-
declare class LocalStorageManagerService extends ComponentStore<State> implements OnDestroy {
|
|
1935
|
-
private configOptions?;
|
|
1936
|
-
storageName: string;
|
|
1937
|
-
storageSettingsName: string;
|
|
1938
|
-
defaultOptions: SettingOptions;
|
|
1939
|
-
stateRetrieved: boolean;
|
|
1940
|
-
encrypted: boolean;
|
|
1941
|
-
app: AppService;
|
|
1942
|
-
utils: UtilsService;
|
|
1943
|
-
objectMergerService: ObjectMergerService;
|
|
1944
|
-
encryption: SymmetricalEncryptionService;
|
|
1945
|
-
encryptionTest: EncryptionTestService;
|
|
1946
|
-
private readonly data$;
|
|
1947
|
-
readonly stores$: rxjs.Observable<StorageOption[]>;
|
|
1948
|
-
readonly storeExists$: (store: string) => rxjs.Observable<boolean>;
|
|
1949
|
-
readonly store$: (store: string) => rxjs.Observable<any>;
|
|
1950
|
-
readonly settings$: rxjs.Observable<StorageOption[]>;
|
|
1951
|
-
readonly setting$: (store: string) => rxjs.Observable<StorageOption | null>;
|
|
1952
|
-
persistence$: rxjs.Subscription;
|
|
1953
|
-
startTimer(): void;
|
|
1954
|
-
private updateState;
|
|
1955
|
-
constructor(configOptions?: ConfigOptions | undefined);
|
|
1956
|
-
readonly setStore: (observableOrValue: {
|
|
1957
|
-
id: string;
|
|
1958
|
-
name: string;
|
|
1959
|
-
data: any;
|
|
1960
|
-
options: SettingOptions;
|
|
1961
|
-
} | rxjs.Observable<{
|
|
1962
|
-
id: string;
|
|
1963
|
-
name: string;
|
|
1964
|
-
data: any;
|
|
1965
|
-
options: SettingOptions;
|
|
1966
|
-
}>) => rxjs.Subscription;
|
|
1967
|
-
readonly createStore: (observableOrValue: {
|
|
1968
|
-
id?: string;
|
|
1969
|
-
name: string;
|
|
1970
|
-
data: any;
|
|
1971
|
-
options: SettingOptions;
|
|
1972
|
-
} | rxjs.Observable<{
|
|
1973
|
-
id?: string;
|
|
1974
|
-
name: string;
|
|
1975
|
-
data: any;
|
|
1976
|
-
options: SettingOptions;
|
|
1977
|
-
}>) => rxjs.Subscription;
|
|
1978
|
-
readonly updateStore: (observableOrValue: {
|
|
1979
|
-
name: string;
|
|
1980
|
-
data: any;
|
|
1981
|
-
} | rxjs.Observable<{
|
|
1982
|
-
name: string;
|
|
1983
|
-
data: any;
|
|
1984
|
-
}>) => rxjs.Subscription;
|
|
1985
|
-
readonly deleteStore: (observableOrValue: {
|
|
1986
|
-
name: string;
|
|
1987
|
-
} | rxjs.Observable<{
|
|
1988
|
-
name: string;
|
|
1989
|
-
}>) => rxjs.Subscription;
|
|
1990
|
-
resetStore(): void;
|
|
1991
|
-
private persistState;
|
|
1992
|
-
private expired;
|
|
1993
|
-
retrieveState(): void;
|
|
1994
|
-
private isObjectOrArray;
|
|
1995
|
-
private isString;
|
|
1996
|
-
private fixAndParseJSON;
|
|
1997
|
-
private validStoreName;
|
|
1998
|
-
private hasGlobalStorage;
|
|
1999
|
-
ngOnDestroy(): void;
|
|
2000
|
-
/**
|
|
2001
|
-
* Clears all stored data from localStorage and sessionStorage
|
|
2002
|
-
* Use this method to recover from corrupted data errors
|
|
2003
|
-
*/
|
|
2004
|
-
clearAllStoredData(): void;
|
|
2005
|
-
/**
|
|
2006
|
-
* Checks if stored data appears to be corrupted
|
|
2007
|
-
* Returns true if data appears corrupted
|
|
2008
|
-
*/
|
|
2009
|
-
checkForCorruptedData(): boolean;
|
|
2010
|
-
private tryParseSettingsArray;
|
|
2011
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageManagerService, [{ optional: true; }]>;
|
|
2012
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageManagerService>;
|
|
2013
|
-
}
|
|
2014
|
-
|
|
2015
|
-
declare class LocalStorageSignalsManagerService {
|
|
2016
|
-
private configOptions?;
|
|
2017
|
-
private state;
|
|
2018
|
-
storageName: string;
|
|
2019
|
-
storageSettingsName: string;
|
|
2020
|
-
defaultOptions: SettingOptions;
|
|
2021
|
-
stateRetrieved: boolean;
|
|
2022
|
-
encrypted: boolean;
|
|
2023
|
-
destroyRef: DestroyRef;
|
|
2024
|
-
app: AppService;
|
|
2025
|
-
utils: UtilsService;
|
|
2026
|
-
objectMergerService: ObjectMergerService;
|
|
2027
|
-
encryption: SymmetricalEncryptionService;
|
|
2028
|
-
encryptionTest: EncryptionTestService;
|
|
2029
|
-
readonly stores: i0.Signal<StorageOption[]>;
|
|
2030
|
-
readonly storeExists: (store: string) => i0.Signal<boolean>;
|
|
2031
|
-
readonly store: (store: string) => i0.Signal<any>;
|
|
2032
|
-
readonly settings: i0.Signal<StorageOption[]>;
|
|
2033
|
-
readonly setting: (store: string) => i0.Signal<StorageOption | null>;
|
|
2034
|
-
constructor(configOptions?: ConfigOptions | undefined);
|
|
2035
|
-
setStore(store: {
|
|
2036
|
-
id: string;
|
|
2037
|
-
name: string;
|
|
2038
|
-
data: any;
|
|
2039
|
-
options: SettingOptions;
|
|
2040
|
-
}): void;
|
|
2041
|
-
createStore(store: {
|
|
2042
|
-
id?: string;
|
|
2043
|
-
name: string;
|
|
2044
|
-
data: any;
|
|
2045
|
-
options: SettingOptions;
|
|
2046
|
-
}): void;
|
|
2047
|
-
updateStore(store: {
|
|
2048
|
-
name: string;
|
|
2049
|
-
data: any;
|
|
2050
|
-
}): void;
|
|
2051
|
-
deleteStore(store: {
|
|
2052
|
-
name: string;
|
|
2053
|
-
}): void;
|
|
2054
|
-
resetStore(): void;
|
|
2055
|
-
private persistState;
|
|
2056
|
-
private expired;
|
|
2057
|
-
retrieveState(): void;
|
|
2058
|
-
private hasGlobalStorage;
|
|
2059
|
-
private isObjectOrArray;
|
|
2060
|
-
private isString;
|
|
2061
|
-
private validStoreName;
|
|
2062
|
-
private tryParseSettingsArray;
|
|
2063
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageSignalsManagerService, [{ optional: true; }]>;
|
|
2064
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LocalStorageSignalsManagerService>;
|
|
2065
|
-
}
|
|
2066
|
-
|
|
2067
|
-
interface StateStorageOptionsInterface {
|
|
2068
|
-
store?: string;
|
|
2069
|
-
options?: SettingOptions;
|
|
2070
|
-
model?: (state: any) => any;
|
|
2071
|
-
}
|
|
2072
|
-
declare class StateStorageOptions implements StateStorageOptionsInterface {
|
|
2073
|
-
store?: string | undefined;
|
|
2074
|
-
options?: SettingOptions | undefined;
|
|
2075
|
-
model?: ((state: any) => any) | undefined;
|
|
2076
|
-
constructor(store?: string | undefined, options?: SettingOptions | undefined, model?: ((state: any) => any) | undefined);
|
|
2077
|
-
static adapt(item?: any): StateStorageOptions;
|
|
2078
|
-
}
|
|
2079
|
-
|
|
2080
|
-
interface StateOperationResultInterface {
|
|
2081
|
-
success: boolean;
|
|
2082
|
-
operation: 'CREATE' | 'UPDATE' | 'DELETE';
|
|
2083
|
-
key?: string;
|
|
2084
|
-
value?: any;
|
|
2085
|
-
timestamp: number;
|
|
2086
|
-
error?: string;
|
|
2087
|
-
}
|
|
2088
|
-
declare class StateOperationResult implements StateOperationResultInterface {
|
|
2089
|
-
success: boolean;
|
|
2090
|
-
operation: 'CREATE' | 'UPDATE' | 'DELETE';
|
|
2091
|
-
key?: string | undefined;
|
|
2092
|
-
value?: any;
|
|
2093
|
-
timestamp: number;
|
|
2094
|
-
error?: string | undefined;
|
|
2095
|
-
constructor(success?: boolean, operation?: 'CREATE' | 'UPDATE' | 'DELETE', key?: string | undefined, value?: any, timestamp?: number, error?: string | undefined);
|
|
2096
|
-
static adapt(item?: any): StateOperationResult;
|
|
2097
|
-
}
|
|
2098
|
-
|
|
2099
|
-
interface StateStoreManagerData$1<T> {
|
|
2100
|
-
}
|
|
2101
|
-
declare class StoreStateManagerService<T extends object = StateStoreManagerData$1<any>> extends ComponentStore<T> {
|
|
2102
|
-
private options;
|
|
2103
|
-
localStorageManagerService: LocalStorageManagerService;
|
|
2104
|
-
subscriptions: Subscription;
|
|
2105
|
-
settings: any;
|
|
2106
|
-
private isRestoring;
|
|
2107
|
-
private operationResult;
|
|
2108
|
-
operationResult$: Observable<StateOperationResult | null>;
|
|
2109
|
-
constructor(options?: StateStorageOptions);
|
|
2110
|
-
private static init;
|
|
2111
|
-
init(options?: StateStorageOptions): void;
|
|
2112
|
-
restoreState(): Subscription;
|
|
2113
|
-
updateState(state: any): void;
|
|
2114
|
-
readonly data$: Observable<any>;
|
|
2115
|
-
readonly updateData: (() => void) | ((observableOrValue: any) => Subscription);
|
|
2116
|
-
createRecord(key: string, value: any): void;
|
|
2117
|
-
updateRecord(key: string, value: any): void;
|
|
2118
|
-
deleteRecord(key: string): void;
|
|
2119
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StoreStateManagerService<any>, never>;
|
|
2120
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<StoreStateManagerService<any>>;
|
|
2121
|
-
}
|
|
2122
|
-
|
|
2123
|
-
interface StateStoreManagerData<T> {
|
|
2124
|
-
}
|
|
2125
|
-
declare class StoreStateManagerSignalsService<T extends object = StateStoreManagerData<any>> {
|
|
2126
|
-
private localStorageManagerService;
|
|
2127
|
-
private state;
|
|
2128
|
-
private isRestoring;
|
|
2129
|
-
private settings;
|
|
2130
|
-
private operationResultSignal;
|
|
2131
|
-
readonly operationResult: i0.Signal<StateOperationResult | null>;
|
|
2132
|
-
readonly data: i0.Signal<T | null>;
|
|
2133
|
-
readonly transformedData: i0.Signal<any>;
|
|
2134
|
-
constructor();
|
|
2135
|
-
init(options: StateStorageOptions): void;
|
|
2136
|
-
restoreState(): void;
|
|
2137
|
-
updateState(state: Partial<T>): void;
|
|
2138
|
-
updateData(data: Partial<T>): void;
|
|
2139
|
-
createRecord(key: string, value: any): void;
|
|
2140
|
-
updateRecord(key: string, value: any): void;
|
|
2141
|
-
deleteRecord(key: string): void;
|
|
2142
|
-
resetState(): void;
|
|
2143
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StoreStateManagerSignalsService<any>, never>;
|
|
2144
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<StoreStateManagerSignalsService<any>>;
|
|
2145
|
-
}
|
|
2146
|
-
|
|
2147
|
-
interface DexieSqlOptions {
|
|
2148
|
-
strict?: boolean;
|
|
2149
|
-
}
|
|
2150
|
-
|
|
2151
|
-
declare class DexieSqlService {
|
|
2152
|
-
private readonly _parser;
|
|
2153
|
-
private readonly _validator;
|
|
2154
|
-
private readonly _planner;
|
|
2155
|
-
private readonly _executor;
|
|
2156
|
-
/**
|
|
2157
|
-
* Execute a MySQL-syntax SQL SELECT string against the DexieJS IndexedDB database.
|
|
2158
|
-
* Returns an Observable that emits the result array and completes, or errors with
|
|
2159
|
-
* SqlParseError / SqlValidationError if the query is invalid.
|
|
2160
|
-
*/
|
|
2161
|
-
query(sql: string, options?: DexieSqlOptions): Observable<any[]>;
|
|
2162
|
-
private _run;
|
|
2163
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DexieSqlService, never>;
|
|
2164
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DexieSqlService>;
|
|
2165
|
-
}
|
|
2166
|
-
|
|
2167
|
-
declare class SqlParseError extends Error {
|
|
2168
|
-
name: string;
|
|
2169
|
-
constructor(message: string);
|
|
2170
|
-
}
|
|
2171
|
-
declare class SqlValidationError extends Error {
|
|
2172
|
-
name: string;
|
|
2173
|
-
constructor(message: string);
|
|
2174
|
-
}
|
|
2175
|
-
|
|
2176
|
-
declare enum ExecutionPlanType {
|
|
2177
|
-
SIMPLE = "SIMPLE",
|
|
2178
|
-
AND_BOUNDED = "AND_BOUNDED",
|
|
2179
|
-
AND_COMPOUND = "AND_COMPOUND",
|
|
2180
|
-
OR_MERGE = "OR_MERGE",
|
|
2181
|
-
JOIN_HASH = "JOIN_HASH"
|
|
2182
|
-
}
|
|
2183
|
-
type DexieOp = 'equals' | 'notEqual' | 'above' | 'aboveOrEqual' | 'below' | 'belowOrEqual' | 'between' | 'anyOf' | 'noneOf' | 'startsWith';
|
|
2184
|
-
interface PlanStep {
|
|
2185
|
-
col: string;
|
|
2186
|
-
op: DexieOp;
|
|
2187
|
-
val: any;
|
|
2188
|
-
}
|
|
2189
|
-
interface JoinInfo {
|
|
2190
|
-
leftTable: string;
|
|
2191
|
-
rightTable: string;
|
|
2192
|
-
leftKey: string;
|
|
2193
|
-
rightKey: string;
|
|
2194
|
-
joinType: 'inner' | 'left';
|
|
2195
|
-
}
|
|
2196
|
-
interface ExecutionPlan {
|
|
2197
|
-
type: ExecutionPlanType;
|
|
2198
|
-
table: string;
|
|
2199
|
-
primaryStep: PlanStep | null;
|
|
2200
|
-
boundedFilters: PlanStep[];
|
|
2201
|
-
compoundIndex?: string;
|
|
2202
|
-
compoundValues?: any[];
|
|
2203
|
-
compoundWarnCols?: string[];
|
|
2204
|
-
orBranches?: PlanStep[];
|
|
2205
|
-
joinInfo?: JoinInfo;
|
|
2206
|
-
orderBy?: {
|
|
2207
|
-
col: string;
|
|
2208
|
-
dir: 'asc' | 'desc';
|
|
2209
|
-
} | null;
|
|
2210
|
-
limit?: number | null;
|
|
2211
|
-
offset?: number | null;
|
|
2212
|
-
projection?: string[] | null;
|
|
2213
|
-
aggregate?: 'count' | null;
|
|
2214
|
-
distinct?: boolean;
|
|
2215
|
-
dedupeKey?: string;
|
|
2216
|
-
}
|
|
2217
|
-
|
|
2218
|
-
interface ParseResult {
|
|
2219
|
-
ast: AST;
|
|
2220
|
-
tableList: string[];
|
|
2221
|
-
columnList: string[];
|
|
2222
|
-
}
|
|
2223
|
-
|
|
2224
|
-
interface TableSchemaInfo {
|
|
2225
|
-
pk: string;
|
|
2226
|
-
simpleIndexes: string[];
|
|
2227
|
-
compoundIndexes: string[][];
|
|
2228
|
-
}
|
|
2229
|
-
interface ValidatedQuery {
|
|
2230
|
-
ast: any;
|
|
2231
|
-
schemas: Record<string, TableSchemaInfo>;
|
|
2232
|
-
aliases: Record<string, string>;
|
|
2233
|
-
}
|
|
2234
|
-
|
|
2235
|
-
declare class HeadersService {
|
|
2236
|
-
headers: {};
|
|
2237
|
-
generateHeaders(headers?: Record<string, string>): {
|
|
2238
|
-
headers: HttpHeaders;
|
|
2239
|
-
};
|
|
2240
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HeadersService, never>;
|
|
2241
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<HeadersService>;
|
|
2242
|
-
}
|
|
2243
|
-
|
|
2244
|
-
declare class PathQueryService {
|
|
2245
|
-
buildAPIPath(server: string | string[], params?: any[] | any): string;
|
|
2246
|
-
private buildRestPath;
|
|
2247
|
-
private buildQueryPath;
|
|
2248
|
-
private cleanUrlPath;
|
|
2249
|
-
private isObject;
|
|
2250
|
-
private removeEmptyParams;
|
|
2251
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<PathQueryService, never>;
|
|
2252
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<PathQueryService>;
|
|
2253
|
-
}
|
|
2254
|
-
|
|
2255
|
-
/**
|
|
2256
|
-
* Generate a random hex color code
|
|
2257
|
-
* @returns A random hex color string (e.g., "#FF5733")
|
|
2258
|
-
*/
|
|
2259
|
-
declare const RandomHexColor: () => string;
|
|
2260
|
-
/**
|
|
2261
|
-
* Generate a random hex color with constraints to ensure good visibility
|
|
2262
|
-
* @param options Optional constraints for color generation
|
|
2263
|
-
* @returns A random hex color string with good contrast
|
|
2264
|
-
*/
|
|
2265
|
-
declare const RandomVisibleColor: (options?: {
|
|
2266
|
-
minBrightness?: number;
|
|
2267
|
-
maxBrightness?: number;
|
|
2268
|
-
}) => string;
|
|
2269
|
-
/**
|
|
2270
|
-
* Generate a random color from a predefined palette
|
|
2271
|
-
* @returns A hex color from a set of visually distinct colors
|
|
2272
|
-
*/
|
|
2273
|
-
declare const RandomPaletteColor: () => string;
|
|
2274
|
-
/**
|
|
2275
|
-
* Generate a random HSL color
|
|
2276
|
-
* @param options Optional constraints for HSL generation
|
|
2277
|
-
* @returns A random HSL color string (e.g., "hsl(120, 100%, 50%)")
|
|
2278
|
-
*/
|
|
2279
|
-
declare const RandomHSLColor: (options?: {
|
|
2280
|
-
saturation?: [number, number];
|
|
2281
|
-
lightness?: [number, number];
|
|
2282
|
-
}) => string;
|
|
2283
|
-
|
|
2284
|
-
declare class AsymmetricalEncryptionService {
|
|
2285
|
-
constructor();
|
|
2286
|
-
generateKeyPair(modulusLength?: number): Observable<CryptoKeyPair>;
|
|
2287
|
-
encryptData(publicKey: CryptoKey, data: string): Observable<string>;
|
|
2288
|
-
decryptData(privateKey: CryptoKey, encryptedData: string): Observable<string>;
|
|
2289
|
-
pemToArrayBuffer(pem: string): ArrayBuffer;
|
|
2290
|
-
base64ToArrayBuffer(base64: string): ArrayBuffer;
|
|
2291
|
-
arrayBufferToBase64(buffer: ArrayBuffer): string;
|
|
2292
|
-
base64ToPEM(base64Key: string, publicKey?: boolean): string;
|
|
2293
|
-
pemToCryptoKey(pem: string, algorithm: RsaHashedKeyGenParams, extractable: boolean, keyUsages: KeyUsage[], format?: any): Observable<CryptoKey>;
|
|
2294
|
-
testGenerateKeys(): Observable<string>;
|
|
2295
|
-
testDecryptionWithKeys(): Observable<string>;
|
|
2296
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AsymmetricalEncryptionService, never>;
|
|
2297
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<AsymmetricalEncryptionService>;
|
|
2298
|
-
}
|
|
2299
|
-
|
|
2300
|
-
declare const Random: () => number;
|
|
2301
|
-
declare const RandomNumber: (min: number, max: number) => number;
|
|
2302
|
-
declare const RandomNumbers: (min: number, max: number, length: number) => number[];
|
|
2303
|
-
declare const RandomNumbersUnique: (min: number, max: number, length: number) => number[];
|
|
2304
|
-
declare const RandomStr: () => string;
|
|
2305
|
-
declare const RandomSignature: () => number;
|
|
2306
|
-
declare const UUID: () => `${string}-${string}-${string}-${string}-${string}`;
|
|
2307
|
-
/**
|
|
2308
|
-
* Generate a UUID string (legacy format)
|
|
2309
|
-
*/
|
|
2310
|
-
declare const UUID_STR: () => string;
|
|
2311
|
-
|
|
2312
|
-
type QueryValue = string;
|
|
2313
|
-
type NormalizedQueryParams = Record<string, QueryValue>;
|
|
2314
|
-
interface NormalizedRequestOptionsInterface {
|
|
2315
|
-
pathKey: string;
|
|
2316
|
-
query: NormalizedQueryParams;
|
|
2317
|
-
hasQuery: boolean;
|
|
2318
|
-
}
|
|
2319
|
-
declare class NormalizedRequestOptionsModel implements NormalizedRequestOptionsInterface {
|
|
2320
|
-
pathKey: string;
|
|
2321
|
-
query: NormalizedQueryParams;
|
|
2322
|
-
hasQuery: boolean;
|
|
2323
|
-
constructor(pathKey?: string, query?: NormalizedQueryParams, hasQuery?: boolean);
|
|
2324
|
-
static adapt(item?: any): NormalizedRequestOptionsModel;
|
|
2325
|
-
}
|
|
2326
|
-
|
|
2327
|
-
interface PathTrackerStateInterface {
|
|
2328
|
-
watchExpiresAt?: number;
|
|
2329
|
-
consumedValuesByKey: Record<string, QueryValue[]>;
|
|
2330
|
-
}
|
|
2331
|
-
declare class PathTrackerStateModel implements PathTrackerStateInterface {
|
|
2332
|
-
consumedValuesByKey: Record<string, QueryValue[]>;
|
|
2333
|
-
watchExpiresAt?: number | undefined;
|
|
2334
|
-
constructor(consumedValuesByKey?: Record<string, QueryValue[]>, watchExpiresAt?: number | undefined);
|
|
2335
|
-
static adapt(item?: any): PathTrackerStateModel;
|
|
2336
|
-
}
|
|
2337
|
-
|
|
2338
|
-
interface QueryTrackerStateInterface {
|
|
2339
|
-
paths: Record<string, PathTrackerStateInterface>;
|
|
2340
|
-
}
|
|
2341
|
-
declare class QueryTrackerStateModel implements QueryTrackerStateInterface {
|
|
2342
|
-
paths: Record<string, PathTrackerStateInterface>;
|
|
2343
|
-
constructor(paths?: Record<string, PathTrackerStateInterface>);
|
|
2344
|
-
static adapt(item?: any): QueryTrackerStateModel;
|
|
2345
|
-
}
|
|
2346
|
-
|
|
2347
|
-
interface QueryParamsTrackerOptionsInterface {
|
|
2348
|
-
mode?: 'exact' | 'variation';
|
|
2349
|
-
watchParams?: string[];
|
|
2350
|
-
watchExpiresAt?: string | number;
|
|
2351
|
-
watchParamsExpire?: string | number;
|
|
2352
|
-
}
|
|
2353
|
-
declare class QueryParamsTrackerOptionsModel implements QueryParamsTrackerOptionsInterface {
|
|
2354
|
-
mode?: ("exact" | "variation") | undefined;
|
|
2355
|
-
watchParams?: string[] | undefined;
|
|
2356
|
-
watchExpiresAt?: (string | number) | undefined;
|
|
2357
|
-
watchParamsExpire?: (string | number) | undefined;
|
|
2358
|
-
constructor(mode?: ("exact" | "variation") | undefined, watchParams?: string[] | undefined, watchExpiresAt?: (string | number) | undefined, watchParamsExpire?: (string | number) | undefined);
|
|
2359
|
-
static adapt(item?: any): QueryParamsTrackerOptionsModel;
|
|
2360
|
-
}
|
|
2361
|
-
|
|
2362
|
-
interface ErrorDisplaySettingsInterface {
|
|
2363
|
-
displayTime: number;
|
|
2364
|
-
position: string;
|
|
2365
|
-
}
|
|
2366
|
-
declare class ErrorDisplaySettings implements ErrorDisplaySettingsInterface {
|
|
2367
|
-
displayTime: number;
|
|
2368
|
-
position: string;
|
|
2369
|
-
constructor(displayTime?: number, position?: string);
|
|
2370
|
-
static adapt(item?: any): ErrorDisplaySettings;
|
|
2371
|
-
}
|
|
2372
|
-
|
|
2373
|
-
declare class WithCredentialsInterceptor implements HttpInterceptor {
|
|
2374
|
-
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
2375
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WithCredentialsInterceptor, never>;
|
|
2376
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<WithCredentialsInterceptor>;
|
|
2377
|
-
}
|
|
2378
|
-
|
|
2379
|
-
declare class RequestHeadersInterceptor implements HttpInterceptor {
|
|
2380
|
-
private translate;
|
|
2381
|
-
subscriptions: Subscription;
|
|
2382
|
-
language: string;
|
|
2383
|
-
get currentDate(): string;
|
|
2384
|
-
constructor(translate: TranslateService);
|
|
2385
|
-
intercept(request: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
2386
|
-
ngOnDestroy(): void;
|
|
2387
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RequestHeadersInterceptor, never>;
|
|
2388
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RequestHeadersInterceptor>;
|
|
2389
|
-
}
|
|
2390
|
-
|
|
2391
|
-
declare class RequestErrorInterceptor implements HttpInterceptor {
|
|
2392
|
-
toastMessage: ToastMessageDisplayService;
|
|
2393
|
-
intercept(req: HttpRequest<any>, next: HttpHandler): Observable<HttpEvent<any>>;
|
|
2394
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RequestErrorInterceptor, never>;
|
|
2395
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RequestErrorInterceptor>;
|
|
2396
|
-
}
|
|
2397
|
-
|
|
2398
|
-
interface ClientInfoInterface$2 {
|
|
2399
|
-
domain: string;
|
|
2400
|
-
service: string;
|
|
2401
|
-
id: number;
|
|
2402
|
-
name: string;
|
|
2403
|
-
}
|
|
2404
|
-
declare class ClientInfo$2 implements ClientInfoInterface$2 {
|
|
2405
|
-
domain: string;
|
|
2406
|
-
service: string;
|
|
2407
|
-
id: number;
|
|
2408
|
-
name: string;
|
|
2409
|
-
constructor(domain?: string, service?: string, id?: number, name?: string);
|
|
2410
|
-
static adapt(item?: any): ClientInfo$2;
|
|
2411
|
-
}
|
|
2412
|
-
|
|
2413
|
-
interface ClientInfoMapperInterface$2 {
|
|
2414
|
-
id: number;
|
|
2415
|
-
first_name: string;
|
|
2416
|
-
last_name: string;
|
|
2417
|
-
email: string;
|
|
2418
|
-
}
|
|
2419
|
-
declare class ClientInfoMapper$2 implements ClientInfoMapperInterface$2 {
|
|
2420
|
-
id: number;
|
|
2421
|
-
first_name: string;
|
|
2422
|
-
last_name: string;
|
|
2423
|
-
email: string;
|
|
2424
|
-
constructor(id?: number, first_name?: string, last_name?: string, email?: string);
|
|
2425
|
-
static adapt(item?: any): ClientInfoMapper$2;
|
|
2426
|
-
}
|
|
2427
|
-
|
|
2428
|
-
interface AIPromptInterface$2 {
|
|
2429
|
-
response: string;
|
|
2430
|
-
}
|
|
2431
|
-
declare class AIPrompt$2 implements AIPromptInterface$2 {
|
|
2432
|
-
response: string;
|
|
2433
|
-
constructor(response?: string);
|
|
2434
|
-
static adapt(item?: any): AIPrompt$2;
|
|
2435
|
-
}
|
|
2436
|
-
|
|
2437
|
-
declare class RequestManagerBasicDemoComponent implements OnInit {
|
|
2438
|
-
server: string;
|
|
2439
|
-
adapter?: Function;
|
|
2440
|
-
mapper?: Function;
|
|
2441
|
-
displayedColumns: string[];
|
|
2442
|
-
getColumnsFromData(data: any[]): string[];
|
|
2443
|
-
updateDisplayedColumns(data: any[]): void;
|
|
2444
|
-
isObject(value: any): boolean;
|
|
2445
|
-
private fb;
|
|
2446
|
-
private toastMessage;
|
|
2447
|
-
questionControl: _angular_forms.FormControl<string | null>;
|
|
2448
|
-
httpManagerService: HTTPManagerService<any>;
|
|
2449
|
-
isPending$: Observable<boolean>;
|
|
2450
|
-
countdown$: Observable<number>;
|
|
2451
|
-
GET_error$: BehaviorSubject<string>;
|
|
2452
|
-
POST_error$: BehaviorSubject<string>;
|
|
2453
|
-
PUT_error$: BehaviorSubject<string>;
|
|
2454
|
-
DELETE_error$: BehaviorSubject<string>;
|
|
2455
|
-
STREAM_error$: BehaviorSubject<string>;
|
|
2456
|
-
STREAM_AI_error$: BehaviorSubject<string>;
|
|
2457
|
-
GET$?: Observable<any>;
|
|
2458
|
-
POST$?: Observable<any>;
|
|
2459
|
-
PUT$?: Observable<any>;
|
|
2460
|
-
DELETE$?: Observable<any>;
|
|
2461
|
-
STREAM$?: Observable<any>;
|
|
2462
|
-
STREAM_AI$?: Observable<any>;
|
|
2463
|
-
requestParams: {
|
|
2464
|
-
GET: ApiRequest;
|
|
2465
|
-
POST: ApiRequest;
|
|
2466
|
-
PUT: ApiRequest;
|
|
2467
|
-
DELETE: ApiRequest;
|
|
2468
|
-
STREAM: ApiRequest;
|
|
2469
|
-
};
|
|
2470
|
-
streamTypes: {
|
|
2471
|
-
id: string;
|
|
2472
|
-
value: string;
|
|
2473
|
-
}[];
|
|
2474
|
-
streamType: string;
|
|
2475
|
-
failedState: any;
|
|
2476
|
-
pollingState: any;
|
|
2477
|
-
downloadRequest: ApiRequest;
|
|
2478
|
-
sampleClientData: {
|
|
2479
|
-
id: number;
|
|
2480
|
-
name: string;
|
|
2481
|
-
domain: string;
|
|
2482
|
-
service: string;
|
|
2483
|
-
spiffe: string;
|
|
2484
|
-
secret: string;
|
|
2485
|
-
created: number;
|
|
2486
|
-
modified: number;
|
|
2487
|
-
icon: string;
|
|
2488
|
-
imageFile: string;
|
|
2489
|
-
email: string;
|
|
2490
|
-
};
|
|
2491
|
-
requestForm: _angular_forms.FormGroup<{
|
|
2492
|
-
path: _angular_forms.FormControl<string | null>;
|
|
2493
|
-
headers: FormArray<_angular_forms.FormControl<unknown>>;
|
|
2494
|
-
adapter: _angular_forms.FormControl<null>;
|
|
2495
|
-
mapper: _angular_forms.FormControl<null>;
|
|
2496
|
-
retry: _angular_forms.FormGroup<{
|
|
2497
|
-
times: _angular_forms.FormControl<number | null>;
|
|
2498
|
-
delay: _angular_forms.FormControl<number | null>;
|
|
2499
|
-
}>;
|
|
2500
|
-
polling: _angular_forms.FormControl<number | null>;
|
|
2501
|
-
}>;
|
|
2502
|
-
AIType: number;
|
|
2503
|
-
sampleAdaptors: ({
|
|
2504
|
-
label: string;
|
|
2505
|
-
value: typeof ClientInfo$2.adapt;
|
|
2506
|
-
} | {
|
|
2507
|
-
label: string;
|
|
2508
|
-
value: typeof AIPrompt$2.adapt;
|
|
2509
|
-
})[];
|
|
2510
|
-
sampleMappers: ({
|
|
2511
|
-
label: string;
|
|
2512
|
-
value: typeof ClientInfoMapper$2.adapt;
|
|
2513
|
-
} | {
|
|
2514
|
-
label: string;
|
|
2515
|
-
value: typeof AIPrompt$2.adapt;
|
|
2516
|
-
})[];
|
|
2517
|
-
get retry(): {
|
|
2518
|
-
times: number | null;
|
|
2519
|
-
delay: number | null;
|
|
2520
|
-
} | undefined;
|
|
2521
|
-
get headers(): FormArray;
|
|
2522
|
-
get isValid(): boolean;
|
|
2523
|
-
hasId: (arr: any[]) => boolean;
|
|
2524
|
-
props: (adapter: any) => any;
|
|
2525
|
-
arrayObjectsToObjects: (arr: any[]) => any;
|
|
2526
|
-
constructor();
|
|
2527
|
-
ngOnInit(): void;
|
|
2528
|
-
onStreamType(type: string): void;
|
|
2529
|
-
addHeader(): void;
|
|
2530
|
-
removeHeader(index: number): void;
|
|
2531
|
-
compileRequest(): {
|
|
2532
|
-
apiOptions: ApiRequest;
|
|
2533
|
-
path: string[];
|
|
2534
|
-
};
|
|
2535
|
-
onGetRequest(): void;
|
|
2536
|
-
onCreateRequest(): void;
|
|
2537
|
-
onUpdateRequest(): void;
|
|
2538
|
-
onDeleteRequest(): void;
|
|
2539
|
-
onStreamPostRequest(): void;
|
|
2540
|
-
onStreamRequest(): void;
|
|
2541
|
-
onDownloadCompleted(): void;
|
|
2542
|
-
onDownloadFailed(err: string): void;
|
|
2543
|
-
errorHandling(err: any, type: string): void;
|
|
2544
|
-
onSelectAIType(type: number): void;
|
|
2545
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RequestManagerBasicDemoComponent, never>;
|
|
2546
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RequestManagerBasicDemoComponent, "app-request-manager-basic-demo", never, {}, {}, never, never, false, never>;
|
|
2547
|
-
}
|
|
2548
|
-
|
|
2549
|
-
interface UserDataInterface {
|
|
2550
|
-
ldap: string;
|
|
2551
|
-
name: string;
|
|
2552
|
-
email: string;
|
|
2553
|
-
color: string;
|
|
2554
|
-
}
|
|
2555
|
-
declare class UserData implements UserDataInterface {
|
|
2556
|
-
ldap: string;
|
|
2557
|
-
name: string;
|
|
2558
|
-
email: string;
|
|
2559
|
-
color: string;
|
|
2560
|
-
constructor(ldap?: string, name?: string, email?: string, color?: string);
|
|
2561
|
-
static adapt(item?: any): UserData;
|
|
2562
|
-
}
|
|
2563
|
-
|
|
2564
|
-
declare class HttpRequestServicesDemoComponent implements OnInit {
|
|
2565
|
-
private configOptions?;
|
|
2566
|
-
wsServer: string;
|
|
2567
|
-
jwtToken: string;
|
|
2568
|
-
server: string;
|
|
2569
|
-
user?: UserData;
|
|
2570
|
-
path: string[];
|
|
2571
|
-
adapter?: Function;
|
|
2572
|
-
mapper?: Function;
|
|
2573
|
-
requestTypes: ({
|
|
2574
|
-
name: string;
|
|
2575
|
-
value: string;
|
|
2576
|
-
new?: undefined;
|
|
2577
|
-
divider?: undefined;
|
|
2578
|
-
disabled?: undefined;
|
|
2579
|
-
} | {
|
|
2580
|
-
name: string;
|
|
2581
|
-
value: string;
|
|
2582
|
-
new: boolean;
|
|
2583
|
-
divider?: undefined;
|
|
2584
|
-
disabled?: undefined;
|
|
2585
|
-
} | {
|
|
2586
|
-
name: string;
|
|
2587
|
-
value: string;
|
|
2588
|
-
new: boolean;
|
|
2589
|
-
divider: boolean;
|
|
2590
|
-
disabled?: undefined;
|
|
2591
|
-
} | {
|
|
2592
|
-
name: string;
|
|
2593
|
-
value: string;
|
|
2594
|
-
divider: boolean;
|
|
2595
|
-
disabled: boolean;
|
|
2596
|
-
new?: undefined;
|
|
2597
|
-
} | {
|
|
2598
|
-
name: string;
|
|
2599
|
-
value: string;
|
|
2600
|
-
divider: boolean;
|
|
2601
|
-
new?: undefined;
|
|
2602
|
-
disabled?: undefined;
|
|
2603
|
-
})[];
|
|
2604
|
-
selectedService: string;
|
|
2605
|
-
injectionOptions?: ConfigOptions;
|
|
2606
|
-
constructor(configOptions?: ConfigOptions | undefined);
|
|
2607
|
-
ngOnInit(): void;
|
|
2608
|
-
onSelected(type: number): void;
|
|
2609
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HttpRequestServicesDemoComponent, never>;
|
|
2610
|
-
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; }; "adapter": { "alias": "adapter"; "required": false; }; "mapper": { "alias": "mapper"; "required": false; }; }, {}, never, never, false, never>;
|
|
2611
|
-
}
|
|
2612
|
-
|
|
2613
|
-
interface ClientInfoInterface$1 {
|
|
2614
|
-
domain: string;
|
|
2615
|
-
service: string;
|
|
2616
|
-
id: number;
|
|
2617
|
-
name: string;
|
|
2618
|
-
}
|
|
2619
|
-
declare class ClientInfo$1 implements ClientInfoInterface$1 {
|
|
2620
|
-
domain: string;
|
|
2621
|
-
service: string;
|
|
2622
|
-
id: number;
|
|
2623
|
-
name: string;
|
|
2624
|
-
constructor(domain?: string, service?: string, id?: number, name?: string);
|
|
2625
|
-
static adapt(item?: any): ClientInfo$1;
|
|
2626
|
-
}
|
|
2627
|
-
|
|
2628
|
-
declare class StateManagerDemoService extends HTTPManagerStateService<any> {
|
|
2629
|
-
constructor();
|
|
2630
|
-
setAPIOptions(apiOptions: ApiRequest, dataType: DataType, database?: DatabaseStorage): void;
|
|
2631
|
-
getClients(options?: RequestOptions): void;
|
|
2632
|
-
createClient(data: any): void;
|
|
2633
|
-
updateClient(data: ClientInfo$1): void;
|
|
2634
|
-
deleteClient(data: ClientInfo$1): void;
|
|
2635
|
-
streamRequest(options?: RequestOptions): void;
|
|
2636
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StateManagerDemoService, never>;
|
|
2637
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<StateManagerDemoService>;
|
|
2638
|
-
}
|
|
2639
|
-
|
|
2640
|
-
interface ClientInfoMapperInterface$1 {
|
|
2641
|
-
id: number;
|
|
2642
|
-
first_name: string;
|
|
2643
|
-
last_name: string;
|
|
2644
|
-
email: string;
|
|
2645
|
-
}
|
|
2646
|
-
declare class ClientInfoMapper$1 implements ClientInfoMapperInterface$1 {
|
|
2647
|
-
id: number;
|
|
2648
|
-
first_name: string;
|
|
2649
|
-
last_name: string;
|
|
2650
|
-
email: string;
|
|
2651
|
-
constructor(id?: number, first_name?: string, last_name?: string, email?: string);
|
|
2652
|
-
static adapt(item?: any): ClientInfoMapper$1;
|
|
2653
|
-
}
|
|
2654
|
-
|
|
2655
|
-
interface AIPromptInterface$1 {
|
|
2656
|
-
response: string;
|
|
2657
|
-
}
|
|
2658
|
-
declare class AIPrompt$1 implements AIPromptInterface$1 {
|
|
2659
|
-
response: string;
|
|
2660
|
-
constructor(response?: string);
|
|
2661
|
-
static adapt(item?: any): AIPrompt$1;
|
|
2662
|
-
}
|
|
2663
|
-
|
|
2664
|
-
declare class RequestManagerStateDemoComponent implements OnInit {
|
|
2665
|
-
server: string;
|
|
2666
|
-
adapter?: Function;
|
|
2667
|
-
mapper?: Function;
|
|
2668
|
-
stateManagerDemoService: StateManagerDemoService;
|
|
2669
|
-
databaseManagerService: DatabaseManagerService;
|
|
2670
|
-
displayedColumns: string[];
|
|
2671
|
-
getColumnsFromData(data: any[]): string[];
|
|
2672
|
-
updateDisplayedColumns(data: any[]): void;
|
|
2673
|
-
isObject(value: any): boolean;
|
|
2674
|
-
getRecordLabel(item: any): string;
|
|
2675
|
-
private normalizeLabelValue;
|
|
2676
|
-
getDataLength(data: any): number;
|
|
2677
|
-
selectedRecord$?: Observable<ClientInfo$1 | null>;
|
|
2678
|
-
fb: FormBuilder;
|
|
2679
|
-
streamTypes: {
|
|
2680
|
-
id: string;
|
|
2681
|
-
value: string;
|
|
2682
|
-
}[];
|
|
2683
|
-
streamType: string;
|
|
2684
|
-
httpManagerService: HTTPManagerService<any>;
|
|
2685
|
-
isPending$: Observable<boolean>;
|
|
2686
|
-
error$: Observable<boolean>;
|
|
2687
|
-
countdown$: Observable<number>;
|
|
2688
|
-
GET_error$: BehaviorSubject<string>;
|
|
2689
|
-
POST_error$: BehaviorSubject<string>;
|
|
2690
|
-
PUT_error$: BehaviorSubject<string>;
|
|
2691
|
-
DELETE_error$: BehaviorSubject<string>;
|
|
2692
|
-
STREAM_error$: BehaviorSubject<string>;
|
|
2693
|
-
STREAM_AI_error$: BehaviorSubject<string>;
|
|
2694
|
-
GET$: BehaviorSubject<any>;
|
|
2695
|
-
POST$: BehaviorSubject<null>;
|
|
2696
|
-
PUT$: BehaviorSubject<null>;
|
|
2697
|
-
DELETE$: BehaviorSubject<null>;
|
|
2698
|
-
STREAM: BehaviorSubject<null>;
|
|
2699
|
-
STREAM$: Observable<null>;
|
|
2700
|
-
STREAM_AI: BehaviorSubject<{
|
|
2701
|
-
response: string;
|
|
2702
|
-
}[]>;
|
|
2703
|
-
STREAM_AI$: Observable<any>;
|
|
2704
|
-
failedState: any;
|
|
2705
|
-
pollingState: any;
|
|
2706
|
-
DBState: any;
|
|
2707
|
-
questionControl: _angular_forms.FormControl<string | null>;
|
|
2708
|
-
requestType: string;
|
|
2709
|
-
prompts: string[];
|
|
2710
|
-
AIType: number;
|
|
2711
|
-
get dataObservable$(): BehaviorSubject<any> | BehaviorSubject<null> | BehaviorSubject<{
|
|
2712
|
-
response: string;
|
|
2713
|
-
}[]>;
|
|
2714
|
-
sampleClientData: {
|
|
2715
|
-
id: number;
|
|
2716
|
-
name: string;
|
|
2717
|
-
domain: string;
|
|
2718
|
-
service: string;
|
|
2719
|
-
spiffe: string;
|
|
2720
|
-
secret: string;
|
|
2721
|
-
created: number;
|
|
2722
|
-
modified: number;
|
|
2723
|
-
icon: string;
|
|
2724
|
-
imageFile: string;
|
|
2725
|
-
};
|
|
2726
|
-
selectedRecord: _angular_forms.FormControl<null>;
|
|
2727
|
-
requestForm: _angular_forms.FormGroup<{
|
|
2728
|
-
datatype: _angular_forms.FormControl<string | null>;
|
|
2729
|
-
path: _angular_forms.FormControl<string | null>;
|
|
2730
|
-
headers: FormArray<_angular_forms.FormControl<unknown>>;
|
|
2731
|
-
adapter: _angular_forms.FormControl<null>;
|
|
2732
|
-
mapper: _angular_forms.FormControl<null>;
|
|
2733
|
-
retry: _angular_forms.FormGroup<{
|
|
2734
|
-
times: _angular_forms.FormControl<number | null>;
|
|
2735
|
-
delay: _angular_forms.FormControl<number | null>;
|
|
2736
|
-
}>;
|
|
2737
|
-
polling: _angular_forms.FormControl<number | null>;
|
|
2738
|
-
database: _angular_forms.FormGroup<{
|
|
2739
|
-
table: _angular_forms.FormControl<string | null>;
|
|
2740
|
-
expiresIn: _angular_forms.FormControl<string | null>;
|
|
2741
|
-
ignoreQueryParams: _angular_forms.FormControl<string | null>;
|
|
2742
|
-
queryParamsExpiresIn: _angular_forms.FormControl<string | null>;
|
|
2743
|
-
}>;
|
|
2744
|
-
}>;
|
|
2745
|
-
get hasChanged(): boolean;
|
|
2746
|
-
get dataType(): string | null | undefined;
|
|
2747
|
-
get database(): {
|
|
2748
|
-
table: string | null;
|
|
2749
|
-
expiresIn: string | null;
|
|
2750
|
-
ignoreQueryParams: string | null;
|
|
2751
|
-
queryParamsExpiresIn: string | null;
|
|
2752
|
-
} | undefined;
|
|
2753
|
-
get retry(): {
|
|
2754
|
-
times: number | null;
|
|
2755
|
-
delay: number | null;
|
|
2756
|
-
} | undefined;
|
|
2757
|
-
sampleAdaptors: ({
|
|
2758
|
-
label: string;
|
|
2759
|
-
value: typeof ClientInfo$1.adapt;
|
|
2760
|
-
} | {
|
|
2761
|
-
label: string;
|
|
2762
|
-
value: typeof AIPrompt$1.adapt;
|
|
2763
|
-
})[];
|
|
2764
|
-
sampleMappers: ({
|
|
2765
|
-
label: string;
|
|
2766
|
-
value: typeof ClientInfoMapper$1.adapt;
|
|
2767
|
-
} | {
|
|
2768
|
-
label: string;
|
|
2769
|
-
value: typeof AIPrompt$1.adapt;
|
|
2770
|
-
})[];
|
|
2771
|
-
get headers(): FormArray;
|
|
2772
|
-
get isValid(): boolean;
|
|
2773
|
-
arrayObjectsToObjects: (arr: any[]) => any;
|
|
2774
|
-
props: (adapter: any) => any;
|
|
2775
|
-
constructor();
|
|
2776
|
-
ngOnInit(): void;
|
|
2777
|
-
onStreamType(type: string): void;
|
|
2778
|
-
addHeader(): void;
|
|
2779
|
-
removeHeader(index: number): void;
|
|
2780
|
-
private parsePathInput;
|
|
2781
|
-
private normalizeQueryValue;
|
|
2782
|
-
compileRequest(): {
|
|
2783
|
-
apiOptions: ApiRequest;
|
|
2784
|
-
path: any[];
|
|
2785
|
-
};
|
|
2786
|
-
private parseWatchParams;
|
|
2787
|
-
private normalizeWatchExpiry;
|
|
2788
|
-
private buildDemoRequestOptions;
|
|
2789
|
-
onSetStateOptions(): void;
|
|
2790
|
-
onClearRecords(): void;
|
|
2791
|
-
deleteDatabase(): void;
|
|
2792
|
-
onGetRequest(): void;
|
|
2793
|
-
onCreateRequest(): void;
|
|
2794
|
-
onUpdateRequest(): void;
|
|
2795
|
-
onDeleteRequest(): void;
|
|
2796
|
-
onStreamRequest(): void;
|
|
2797
|
-
errorHandling(err: any, type: string): void;
|
|
2798
|
-
onSelectAIType(type: number): void;
|
|
2799
|
-
onClearHistory(): void;
|
|
2800
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RequestManagerStateDemoComponent, never>;
|
|
2801
|
-
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>;
|
|
2802
|
-
}
|
|
2803
|
-
|
|
2804
|
-
declare class RequestManagerDemoComponent implements OnInit {
|
|
2805
|
-
server: string;
|
|
2806
|
-
adapter?: Function;
|
|
2807
|
-
mapper?: Function;
|
|
2808
|
-
displayedColumns: string[];
|
|
2809
|
-
getColumnsFromData(data: any[]): string[];
|
|
2810
|
-
updateDisplayedColumns(data: any[]): void;
|
|
2811
|
-
isObject(value: any): boolean;
|
|
2812
|
-
private fb;
|
|
2813
|
-
private toastMessage;
|
|
2814
|
-
questionControl: _angular_forms.FormControl<string | null>;
|
|
2815
|
-
httpManagerService: HTTPManagerService<any>;
|
|
2816
|
-
isPending$: Observable<boolean>;
|
|
2817
|
-
countdown$: Observable<number>;
|
|
2818
|
-
GET_error$: BehaviorSubject<string>;
|
|
2819
|
-
POST_error$: BehaviorSubject<string>;
|
|
2820
|
-
PUT_error$: BehaviorSubject<string>;
|
|
2821
|
-
DELETE_error$: BehaviorSubject<string>;
|
|
2822
|
-
STREAM_error$: BehaviorSubject<string>;
|
|
2823
|
-
STREAM_AI_error$: BehaviorSubject<string>;
|
|
2824
|
-
GET$?: Observable<any>;
|
|
2825
|
-
POST$?: Observable<any>;
|
|
2826
|
-
PUT$?: Observable<any>;
|
|
2827
|
-
DELETE$?: Observable<any>;
|
|
2828
|
-
STREAM$?: Observable<any>;
|
|
2829
|
-
STREAM_AI$?: Observable<any>;
|
|
2830
|
-
parallelBatch$?: Observable<any[]>;
|
|
2831
|
-
sequentialBatch$?: Observable<any[]>;
|
|
2832
|
-
parallelExecutionTime?: number;
|
|
2833
|
-
sequentialExecutionTime?: number;
|
|
2834
|
-
parallelResults?: any[];
|
|
2835
|
-
sequentialResults?: any[];
|
|
2836
|
-
isParallelLoading: boolean;
|
|
2837
|
-
isSequentialLoading: boolean;
|
|
2838
|
-
parallelError?: string;
|
|
2839
|
-
sequentialError?: string;
|
|
2840
|
-
parallelBatchStates: (BatchRequestState<any> | undefined)[];
|
|
2841
|
-
sequentialBatchStates: (BatchRequestState<any> | undefined)[];
|
|
2842
|
-
streamBatchStates: (BatchRequestState<any> | undefined)[];
|
|
2843
|
-
streamProgress?: BatchProgress;
|
|
2844
|
-
streamExecutionTime?: number;
|
|
2845
|
-
isStreamLoading: boolean;
|
|
2846
|
-
streamError?: string;
|
|
2847
|
-
get filteredParallelStates(): BatchRequestState<any>[];
|
|
2848
|
-
get filteredSequentialStates(): BatchRequestState<any>[];
|
|
2849
|
-
get filteredStreamStates(): BatchRequestState<any>[];
|
|
2850
|
-
requestParams: {
|
|
2851
|
-
GET: ApiRequest;
|
|
2852
|
-
POST: ApiRequest;
|
|
2853
|
-
PUT: ApiRequest;
|
|
2854
|
-
DELETE: ApiRequest;
|
|
2855
|
-
STREAM: ApiRequest;
|
|
2856
|
-
};
|
|
2857
|
-
streamTypes: {
|
|
2858
|
-
id: string;
|
|
2859
|
-
value: string;
|
|
2860
|
-
}[];
|
|
2861
|
-
streamType: string;
|
|
2862
|
-
failedState: any;
|
|
2863
|
-
pollingState: any;
|
|
2864
|
-
downloadRequest: ApiRequest;
|
|
2865
|
-
sampleClientData: {
|
|
2866
|
-
id: number;
|
|
2867
|
-
name: string;
|
|
2868
|
-
domain: string;
|
|
2869
|
-
service: string;
|
|
2870
|
-
spiffe: string;
|
|
2871
|
-
secret: string;
|
|
2872
|
-
created: number;
|
|
2873
|
-
modified: number;
|
|
2874
|
-
icon: string;
|
|
2875
|
-
imageFile: string;
|
|
2876
|
-
email: string;
|
|
2877
|
-
};
|
|
2878
|
-
requestForm: _angular_forms.FormGroup<{
|
|
2879
|
-
path: _angular_forms.FormControl<string | null>;
|
|
2880
|
-
headers: FormArray<_angular_forms.FormControl<unknown>>;
|
|
2881
|
-
adapter: _angular_forms.FormControl<null>;
|
|
2882
|
-
mapper: _angular_forms.FormControl<null>;
|
|
2883
|
-
retry: _angular_forms.FormGroup<{
|
|
2884
|
-
times: _angular_forms.FormControl<number | null>;
|
|
2885
|
-
delay: _angular_forms.FormControl<number | null>;
|
|
2886
|
-
}>;
|
|
2887
|
-
polling: _angular_forms.FormControl<number | null>;
|
|
2888
|
-
}>;
|
|
2889
|
-
AIType: number;
|
|
2890
|
-
sampleAdaptors: ({
|
|
2891
|
-
label: string;
|
|
2892
|
-
value: typeof ClientInfo$1.adapt;
|
|
2893
|
-
} | {
|
|
2894
|
-
label: string;
|
|
2895
|
-
value: typeof AIPrompt$1.adapt;
|
|
2896
|
-
})[];
|
|
2897
|
-
sampleMappers: ({
|
|
2898
|
-
label: string;
|
|
2899
|
-
value: typeof ClientInfoMapper$1.adapt;
|
|
2900
|
-
} | {
|
|
2901
|
-
label: string;
|
|
2902
|
-
value: typeof AIPrompt$1.adapt;
|
|
2903
|
-
})[];
|
|
2904
|
-
get retry(): {
|
|
2905
|
-
times: number | null;
|
|
2906
|
-
delay: number | null;
|
|
2907
|
-
} | undefined;
|
|
2908
|
-
get headers(): FormArray;
|
|
2909
|
-
get isValid(): boolean;
|
|
2910
|
-
hasId: (arr: any[]) => boolean;
|
|
2911
|
-
props: (adapter: any) => any;
|
|
2912
|
-
arrayObjectsToObjects: (arr: any[]) => any;
|
|
2913
|
-
constructor();
|
|
2914
|
-
ngOnInit(): void;
|
|
2915
|
-
onStreamType(type: string): void;
|
|
2916
|
-
addHeader(): void;
|
|
2917
|
-
removeHeader(index: number): void;
|
|
2918
|
-
compileRequest(): {
|
|
2919
|
-
apiOptions: ApiRequest;
|
|
2920
|
-
path: string[];
|
|
2921
|
-
};
|
|
2922
|
-
onGetRequest(): void;
|
|
2923
|
-
onCreateRequest(): void;
|
|
2924
|
-
onUpdateRequest(): void;
|
|
2925
|
-
onDeleteRequest(): void;
|
|
2926
|
-
onStreamPostRequest(): void;
|
|
2927
|
-
onStreamRequest(): void;
|
|
2928
|
-
onDownloadCompleted(): void;
|
|
2929
|
-
onDownloadFailed(err: string): void;
|
|
2930
|
-
errorHandling(err: any, type: string): void;
|
|
2931
|
-
onSelectAIType(type: number): void;
|
|
2932
|
-
/**
|
|
2933
|
-
* Execute parallel batch request - fetch 5 users from JSONPlaceholder with individual states
|
|
2934
|
-
*/
|
|
2935
|
-
onExecuteParallelBatch(): void;
|
|
2936
|
-
/**
|
|
2937
|
-
* Execute sequential batch request - fetch 5 todos from JSONPlaceholder with individual states
|
|
2938
|
-
*/
|
|
2939
|
-
onExecuteSequentialBatch(): void;
|
|
2940
|
-
/**
|
|
2941
|
-
* Execute stream batch request - fetch 5 posts with real-time state updates
|
|
2942
|
-
*/
|
|
2943
|
-
onExecuteStreamBatch(): void;
|
|
2944
|
-
/**
|
|
2945
|
-
* Type guard for pending state
|
|
2946
|
-
*/
|
|
2947
|
-
isPendingState(state: BatchRequestState<any>): boolean;
|
|
2948
|
-
/**
|
|
2949
|
-
* Type guard for success state
|
|
2950
|
-
*/
|
|
2951
|
-
isSuccessState(state: BatchRequestState<any>): boolean;
|
|
2952
|
-
/**
|
|
2953
|
-
* Type guard for error state
|
|
2954
|
-
*/
|
|
2955
|
-
isErrorState(state: BatchRequestState<any>): boolean;
|
|
2956
|
-
/**
|
|
2957
|
-
* Helper to create batch requests from IDs
|
|
2958
|
-
*/
|
|
2959
|
-
private createBatchRequests;
|
|
2960
|
-
/**
|
|
2961
|
-
* Check if result is successful (not undefined)
|
|
2962
|
-
*/
|
|
2963
|
-
isSuccess(result: any): boolean;
|
|
2964
|
-
/**
|
|
2965
|
-
* Format execution time for display
|
|
2966
|
-
*/
|
|
2967
|
-
formatTime(ms: number): string;
|
|
2968
|
-
/**
|
|
2969
|
-
* Get success count from results array
|
|
2970
|
-
*/
|
|
2971
|
-
getSuccessCount(results?: any[]): number;
|
|
2972
|
-
/**
|
|
2973
|
-
* Get failure count from results array
|
|
2974
|
-
*/
|
|
2975
|
-
getFailureCount(results?: any[]): number;
|
|
2976
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RequestManagerDemoComponent, never>;
|
|
2977
|
-
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>;
|
|
2978
|
-
}
|
|
2979
|
-
|
|
2980
|
-
interface ClientInfoInterface {
|
|
2981
|
-
domain: string;
|
|
2982
|
-
service: string;
|
|
2983
|
-
id: number;
|
|
2984
|
-
name: string;
|
|
2985
|
-
}
|
|
2986
|
-
declare class ClientInfo implements ClientInfoInterface {
|
|
2987
|
-
domain: string;
|
|
2988
|
-
service: string;
|
|
2989
|
-
id: number;
|
|
2990
|
-
name: string;
|
|
2991
|
-
constructor(domain?: string, service?: string, id?: number, name?: string);
|
|
2992
|
-
static adapt(item?: any): ClientInfo;
|
|
2993
|
-
}
|
|
2994
|
-
|
|
2995
|
-
interface ClientInfoMapperInterface {
|
|
2996
|
-
id: number;
|
|
2997
|
-
first_name: string;
|
|
2998
|
-
last_name: string;
|
|
2999
|
-
email: string;
|
|
3000
|
-
}
|
|
3001
|
-
declare class ClientInfoMapper implements ClientInfoMapperInterface {
|
|
3002
|
-
id: number;
|
|
3003
|
-
first_name: string;
|
|
3004
|
-
last_name: string;
|
|
3005
|
-
email: string;
|
|
3006
|
-
constructor(id?: number, first_name?: string, last_name?: string, email?: string);
|
|
3007
|
-
static adapt(item?: any): ClientInfoMapper;
|
|
3008
|
-
}
|
|
3009
|
-
|
|
3010
|
-
interface AIPromptInterface {
|
|
3011
|
-
response: string;
|
|
3012
|
-
}
|
|
3013
|
-
declare class AIPrompt implements AIPromptInterface {
|
|
3014
|
-
response: string;
|
|
3015
|
-
constructor(response?: string);
|
|
3016
|
-
static adapt(item?: any): AIPrompt;
|
|
3017
|
-
}
|
|
3018
|
-
|
|
3019
|
-
declare class RequestSignalsManagerDemoComponent implements OnInit {
|
|
3020
|
-
displayedColumns: string[];
|
|
3021
|
-
private fb;
|
|
3022
|
-
private toastMessage;
|
|
3023
|
-
httpManagerSignalsService: HTTPManagerSignalsService<any>;
|
|
3024
|
-
isPending: i0.WritableSignal<boolean>;
|
|
3025
|
-
countdown: i0.WritableSignal<number>;
|
|
3026
|
-
GET_result: any;
|
|
3027
|
-
POST_result: any;
|
|
3028
|
-
PUT_result: any;
|
|
3029
|
-
DELETE_result: any;
|
|
3030
|
-
STREAM_result: any;
|
|
3031
|
-
STREAM_AI_result: any;
|
|
3032
|
-
GET_error: string;
|
|
3033
|
-
POST_error: string;
|
|
3034
|
-
PUT_error: string;
|
|
3035
|
-
DELETE_error: string;
|
|
3036
|
-
STREAM_error: string;
|
|
3037
|
-
STREAM_AI_error: string;
|
|
3038
|
-
requestParams: {
|
|
3039
|
-
GET: ApiRequest;
|
|
3040
|
-
POST: ApiRequest;
|
|
3041
|
-
PUT: ApiRequest;
|
|
3042
|
-
DELETE: ApiRequest;
|
|
3043
|
-
STREAM: ApiRequest;
|
|
3044
|
-
};
|
|
3045
|
-
failedState: any;
|
|
3046
|
-
pollingState: any;
|
|
3047
|
-
questionControl: _angular_forms.FormControl<string | null>;
|
|
3048
|
-
downloadRequest: ApiRequest;
|
|
3049
|
-
sampleClientData: {
|
|
3050
|
-
id: number;
|
|
3051
|
-
name: string;
|
|
3052
|
-
domain: string;
|
|
3053
|
-
service: string;
|
|
3054
|
-
spiffe: string;
|
|
3055
|
-
secret: string;
|
|
3056
|
-
created: number;
|
|
3057
|
-
modified: number;
|
|
3058
|
-
icon: string;
|
|
3059
|
-
imageFile: string;
|
|
3060
|
-
email: string;
|
|
3061
|
-
};
|
|
3062
|
-
requestForm: _angular_forms.FormGroup<{
|
|
3063
|
-
path: _angular_forms.FormControl<string | null>;
|
|
3064
|
-
headers: FormArray<_angular_forms.FormControl<unknown>>;
|
|
3065
|
-
adapter: _angular_forms.FormControl<null>;
|
|
3066
|
-
mapper: _angular_forms.FormControl<null>;
|
|
3067
|
-
retry: _angular_forms.FormGroup<{
|
|
3068
|
-
times: _angular_forms.FormControl<number | null>;
|
|
3069
|
-
delay: _angular_forms.FormControl<number | null>;
|
|
3070
|
-
}>;
|
|
3071
|
-
polling: _angular_forms.FormControl<number | null>;
|
|
3072
|
-
}>;
|
|
3073
|
-
AIType: number;
|
|
3074
|
-
sampleAdaptors: ({
|
|
3075
|
-
label: string;
|
|
3076
|
-
value: typeof ClientInfo.adapt;
|
|
3077
|
-
} | {
|
|
3078
|
-
label: string;
|
|
3079
|
-
value: typeof AIPrompt.adapt;
|
|
3080
|
-
})[];
|
|
3081
|
-
sampleMappers: ({
|
|
3082
|
-
label: string;
|
|
3083
|
-
value: typeof ClientInfoMapper.adapt;
|
|
3084
|
-
} | {
|
|
3085
|
-
label: string;
|
|
3086
|
-
value: typeof AIPrompt.adapt;
|
|
3087
|
-
})[];
|
|
3088
|
-
get retry(): {
|
|
3089
|
-
times: number | null;
|
|
3090
|
-
delay: number | null;
|
|
3091
|
-
} | undefined;
|
|
3092
|
-
get headers(): FormArray;
|
|
3093
|
-
get isValid(): boolean;
|
|
3094
|
-
hasId: (arr: any[]) => boolean;
|
|
3095
|
-
props: (adapter: any) => any;
|
|
3096
|
-
arrayObjectsToObjects: (arr: any[]) => any;
|
|
3097
|
-
constructor();
|
|
3098
|
-
ngOnInit(): void;
|
|
3099
|
-
addHeader(): void;
|
|
3100
|
-
removeHeader(index: number): void;
|
|
3101
|
-
compileRequest(): {
|
|
3102
|
-
apiOptions: ApiRequest;
|
|
3103
|
-
path: string[];
|
|
3104
|
-
};
|
|
3105
|
-
onGetRequest(): void;
|
|
3106
|
-
onCreateRequest(): void;
|
|
3107
|
-
onUpdateRequest(): void;
|
|
3108
|
-
onDeleteRequest(): void;
|
|
3109
|
-
onStreamPostRequest(): void;
|
|
3110
|
-
onStreamRequest(): void;
|
|
3111
|
-
onDownloadCompleted(): void;
|
|
3112
|
-
onDownloadFailed(err: string): void;
|
|
3113
|
-
errorHandling(err: any, type: string): any;
|
|
3114
|
-
onSelectAIType(type: number): void;
|
|
3115
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RequestSignalsManagerDemoComponent, never>;
|
|
3116
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<RequestSignalsManagerDemoComponent, "app-request-signals-manager-demo", never, {}, {}, never, never, false, never>;
|
|
3117
|
-
}
|
|
3118
|
-
|
|
3119
|
-
declare class LocalStorageDemoComponent implements OnInit {
|
|
3120
|
-
private configOptions?;
|
|
3121
|
-
fb: FormBuilder;
|
|
3122
|
-
utils: UtilsService;
|
|
3123
|
-
type$: BehaviorSubject<StorageType>;
|
|
3124
|
-
get type(): number;
|
|
3125
|
-
typeControl: _angular_forms.FormControl<string | null>;
|
|
3126
|
-
localStorageManagerService: LocalStorageManagerService;
|
|
3127
|
-
settings$: Observable<any>;
|
|
3128
|
-
setting$: (store: string) => Observable<StorageOption | null>;
|
|
3129
|
-
storageForm: _angular_forms.FormGroup<{
|
|
3130
|
-
store: _angular_forms.FormControl<string | null>;
|
|
3131
|
-
type: _angular_forms.FormControl<string | null>;
|
|
3132
|
-
settingType: _angular_forms.FormControl<string | null>;
|
|
3133
|
-
encrypted: _angular_forms.FormControl<boolean | null>;
|
|
3134
|
-
data: _angular_forms.FormControl<string | null>;
|
|
3135
|
-
}>;
|
|
3136
|
-
newStoreForm: _angular_forms.FormGroup<{
|
|
3137
|
-
name: _angular_forms.FormControl<string | null>;
|
|
3138
|
-
storage: _angular_forms.FormControl<string | null>;
|
|
3139
|
-
encrypted: _angular_forms.FormControl<boolean | null>;
|
|
3140
|
-
data: _angular_forms.FormControl<string | null>;
|
|
3141
|
-
expiresIn: _angular_forms.FormControl<string | null>;
|
|
3142
|
-
}>;
|
|
3143
|
-
store$?: Observable<any>;
|
|
3144
|
-
storeData$: Observable<any> | undefined;
|
|
3145
|
-
expiresIn: (epoch: number) => string | undefined;
|
|
3146
|
-
get isValid(): boolean;
|
|
3147
|
-
get isValidData(): boolean;
|
|
3148
|
-
isValidJSON: (str: string) => boolean;
|
|
3149
|
-
displayedColumns: string[];
|
|
3150
|
-
filterData: (values: SettingOptions[]) => SettingOptions[];
|
|
3151
|
-
data$?: Observable<any>;
|
|
3152
|
-
store: any;
|
|
3153
|
-
create: boolean;
|
|
3154
|
-
storeProps?: LocalStorageOptions;
|
|
3155
|
-
options?: SettingOptions;
|
|
3156
|
-
constructor(configOptions?: ConfigOptions | undefined);
|
|
3157
|
-
ngOnInit(): void;
|
|
3158
|
-
onCreateStore(): void;
|
|
3159
|
-
onUpdateStore(store: any): void;
|
|
3160
|
-
onSelectedRow(store: any): void;
|
|
3161
|
-
onCreate(): void;
|
|
3162
|
-
onDelete(store: StorageOption): void;
|
|
3163
|
-
onCancel(): void;
|
|
3164
|
-
onUpdate(store: StorageOption, data: any): void;
|
|
3165
|
-
onReset(): void;
|
|
3166
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageDemoComponent, never>;
|
|
3167
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LocalStorageDemoComponent, "app-local-storage-demo", never, {}, {}, never, never, false, never>;
|
|
3168
|
-
}
|
|
3169
|
-
|
|
3170
|
-
declare class LocalStorageSignalsDemoComponent implements OnInit {
|
|
3171
|
-
private configOptions?;
|
|
3172
|
-
fb: FormBuilder;
|
|
3173
|
-
utils: UtilsService;
|
|
3174
|
-
get type(): number;
|
|
3175
|
-
typeControl: _angular_forms.FormControl<string | null>;
|
|
3176
|
-
localStorageManagerService: LocalStorageSignalsManagerService;
|
|
3177
|
-
readonly settings: i0.Signal<StorageOption[]>;
|
|
3178
|
-
storeSelected: i0.WritableSignal<StorageOption | null>;
|
|
3179
|
-
selectedStoreData: i0.Signal<string>;
|
|
3180
|
-
selectedType: i0.WritableSignal<number>;
|
|
3181
|
-
filteredSettings: i0.Signal<StorageOption[]>;
|
|
3182
|
-
storageForm: _angular_forms.FormGroup<{
|
|
3183
|
-
store: _angular_forms.FormControl<string | null>;
|
|
3184
|
-
type: _angular_forms.FormControl<string | null>;
|
|
3185
|
-
settingType: _angular_forms.FormControl<string | null>;
|
|
3186
|
-
encrypted: _angular_forms.FormControl<boolean | null>;
|
|
3187
|
-
data: _angular_forms.FormControl<string | null>;
|
|
3188
|
-
}>;
|
|
3189
|
-
newStoreForm: _angular_forms.FormGroup<{
|
|
3190
|
-
name: _angular_forms.FormControl<string | null>;
|
|
3191
|
-
storage: _angular_forms.FormControl<string | null>;
|
|
3192
|
-
encrypted: _angular_forms.FormControl<boolean | null>;
|
|
3193
|
-
data: _angular_forms.FormControl<string | null>;
|
|
3194
|
-
expiresIn: _angular_forms.FormControl<string | null>;
|
|
3195
|
-
}>;
|
|
3196
|
-
expiresIn: (epoch: number) => string | undefined;
|
|
3197
|
-
get isValid(): boolean;
|
|
3198
|
-
get isValidData(): boolean;
|
|
3199
|
-
isValidJSON: (str: string) => boolean;
|
|
3200
|
-
displayedColumns: string[];
|
|
3201
|
-
filterData: (values: StorageOption[] | null | undefined) => StorageOption[];
|
|
3202
|
-
settingFor(name: string): StorageOption | null;
|
|
3203
|
-
store: any;
|
|
3204
|
-
create: boolean;
|
|
3205
|
-
storeProps?: LocalStorageOptions;
|
|
3206
|
-
options?: SettingOptions;
|
|
3207
|
-
constructor(configOptions?: ConfigOptions | undefined);
|
|
3208
|
-
ngOnInit(): void;
|
|
3209
|
-
onCreateStore(): void;
|
|
3210
|
-
onUpdateStore(store: any): void;
|
|
3211
|
-
onSelectedRow(store: any): void;
|
|
3212
|
-
onCreate(): void;
|
|
3213
|
-
onDelete(store: StorageOption): void;
|
|
3214
|
-
onCancel(): void;
|
|
3215
|
-
onUpdate(store: StorageOption, data: any): void;
|
|
3216
|
-
onReset(): void;
|
|
3217
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageSignalsDemoComponent, never>;
|
|
3218
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LocalStorageSignalsDemoComponent, "app-local-storage-signals-demo", never, {}, {}, never, never, false, never>;
|
|
3219
|
-
}
|
|
3220
|
-
|
|
3221
|
-
/**
|
|
3222
|
-
* StateServiceDemo - Core state management and WebSocket connection service
|
|
3223
|
-
*
|
|
3224
|
-
* Handles:
|
|
3225
|
-
* - WebSocket connection setup
|
|
3226
|
-
* - Base HTTP state management
|
|
3227
|
-
* - Connection status and retry logic
|
|
3228
|
-
*/
|
|
3229
|
-
declare class StateServiceDemo extends HTTPManagerStateService<any> {
|
|
3230
|
-
attempts$: rxjs.Observable<number>;
|
|
3231
|
-
nextRetry$: rxjs.Observable<number>;
|
|
3232
|
-
constructor();
|
|
3233
|
-
/**
|
|
3234
|
-
* Initialize WebSocket connection with server configuration
|
|
3235
|
-
* @param server - Backend server URL
|
|
3236
|
-
* @param wsServer - WebSocket server URL
|
|
3237
|
-
* @param jwtToken - JWT authentication token
|
|
3238
|
-
* @param user - User information
|
|
3239
|
-
* @param path - Path for constructing channel name (e.g., ['ai','tests'])
|
|
3240
|
-
*/
|
|
3241
|
-
updateConnection(server: string, wsServer: string, jwtToken: string, user: any, path?: (string | number)[]): void;
|
|
3242
|
-
/**
|
|
3243
|
-
* Get all available channels
|
|
3244
|
-
*/
|
|
3245
|
-
getAllChannels(): void;
|
|
3246
|
-
/**
|
|
3247
|
-
* Subscribe to a channel
|
|
3248
|
-
*/
|
|
3249
|
-
subscribeToChannel(channel: string): void;
|
|
3250
|
-
/**
|
|
3251
|
-
* Unsubscribe from a channel
|
|
3252
|
-
*/
|
|
3253
|
-
unsubscribeFromChannel(channel: string): void;
|
|
3254
|
-
/**
|
|
3255
|
-
* Create a notification channel (MES- prefix)
|
|
3256
|
-
*/
|
|
3257
|
-
createNotificationChannel(channel: string): void;
|
|
3258
|
-
/**
|
|
3259
|
-
* Get all notification channels list (in-memory)
|
|
3260
|
-
*/
|
|
3261
|
-
getNotificationChannels(): void;
|
|
3262
|
-
/**
|
|
3263
|
-
* Get today's notification channels from database
|
|
3264
|
-
* Returns unique channels that have notifications posted today
|
|
3265
|
-
*/
|
|
3266
|
-
getTodaysNotificationChannels(): void;
|
|
3267
|
-
/**
|
|
3268
|
-
* Define and load previous day's notification channels from database
|
|
3269
|
-
* Creates channels in memory and broadcasts updated list
|
|
3270
|
-
*/
|
|
3271
|
-
definePreviousNotificationChannels(): void;
|
|
3272
|
-
/**
|
|
3273
|
-
* Subscribe to notification channel with optional date filters
|
|
3274
|
-
*/
|
|
3275
|
-
subscribeToNotificationChannel(channel: string, options?: {
|
|
3276
|
-
startEpoch?: number;
|
|
3277
|
-
endEpoch?: number;
|
|
3278
|
-
}, user?: any): void;
|
|
3279
|
-
/**
|
|
3280
|
-
* Unsubscribe from notification channel
|
|
3281
|
-
*/
|
|
3282
|
-
unsubscribeFromNotificationChannel(channel: string): void;
|
|
3283
|
-
/**
|
|
3284
|
-
* Send a notification to a channel
|
|
3285
|
-
*/
|
|
3286
|
-
sendNotification(channel: string, content: any): void;
|
|
3287
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StateServiceDemo, never>;
|
|
3288
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<StateServiceDemo>;
|
|
3289
|
-
}
|
|
3290
|
-
|
|
3291
|
-
/**
|
|
3292
|
-
* MessageServiceDemo - Channel messaging service (PUB- prefix channels)
|
|
3293
|
-
*
|
|
3294
|
-
* Handles:
|
|
3295
|
-
* - Sending messages to channels
|
|
3296
|
-
* - Channel subscription for messaging
|
|
3297
|
-
* - Real-time message broadcast
|
|
3298
|
-
*/
|
|
3299
|
-
declare class MessageServiceDemo {
|
|
3300
|
-
private stateService;
|
|
3301
|
-
channels$: rxjs.Observable<string[] | null>;
|
|
3302
|
-
subscribedChannels$: rxjs.Observable<Set<string>>;
|
|
3303
|
-
communicationMessages$: rxjs.Observable<any[]>;
|
|
3304
|
-
latestCommunicationMessages$: rxjs.Observable<any>;
|
|
3305
|
-
connectionStatus$: rxjs.Observable<boolean>;
|
|
3306
|
-
user$: rxjs.Observable<WSUser | null>;
|
|
3307
|
-
data$: rxjs.Observable<any>;
|
|
3308
|
-
/**
|
|
3309
|
-
* Helper to ensure channel has PUB- prefix
|
|
3310
|
-
*/
|
|
3311
|
-
private toPublicChannel;
|
|
3312
|
-
/**
|
|
3313
|
-
* Helper to strip PUB- prefix for display
|
|
3314
|
-
*/
|
|
3315
|
-
private fromPublicChannel;
|
|
3316
|
-
/**
|
|
3317
|
-
* Create a new public channel
|
|
3318
|
-
*/
|
|
3319
|
-
createChannel(channel: string): void;
|
|
3320
|
-
/**
|
|
3321
|
-
* Get all available channels
|
|
3322
|
-
*/
|
|
3323
|
-
getAllChannels(): void;
|
|
3324
|
-
/**
|
|
3325
|
-
* Subscribe to a channel to receive messages
|
|
3326
|
-
*/
|
|
3327
|
-
subscribeToChannel(channel: string): void;
|
|
3328
|
-
/**
|
|
3329
|
-
* Unsubscribe from a channel
|
|
3330
|
-
*/
|
|
3331
|
-
unsubscribeFromChannel(channel: string): void;
|
|
3332
|
-
/**
|
|
3333
|
-
* Send a message to one or more channels
|
|
3334
|
-
*/
|
|
3335
|
-
sendMessage(data: ChannelMessage, channels?: string[]): void;
|
|
3336
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MessageServiceDemo, never>;
|
|
3337
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MessageServiceDemo>;
|
|
3338
|
-
}
|
|
3339
|
-
|
|
3340
|
-
/**
|
|
3341
|
-
* NotificationServiceDemo - Notification channel service (MES- prefix channels)
|
|
3342
|
-
*
|
|
3343
|
-
* Handles:
|
|
3344
|
-
* - Creating notification channels
|
|
3345
|
-
* - Subscribing to notifications with date filters
|
|
3346
|
-
* - Sending notifications (persisted to database)
|
|
3347
|
-
* - Receiving real-time and historical notifications
|
|
3348
|
-
*/
|
|
3349
|
-
declare class NotificationServiceDemo {
|
|
3350
|
-
private stateService;
|
|
3351
|
-
notificationChannels$: rxjs.Observable<string[]>;
|
|
3352
|
-
todaysNotificationChannels$: rxjs.Observable<string[]>;
|
|
3353
|
-
private subscribedNotificationChannelsSubject;
|
|
3354
|
-
subscribedNotificationChannels$: rxjs.Observable<Set<string>>;
|
|
3355
|
-
notificationMessages$: rxjs.Observable<any[]>;
|
|
3356
|
-
latestNotification$: rxjs.Observable<any>;
|
|
3357
|
-
connectionStatus$: rxjs.Observable<boolean>;
|
|
3358
|
-
/**
|
|
3359
|
-
* Create a notification channel
|
|
3360
|
-
* NOTE: MES- prefix is added automatically by HTTPManagerStateService
|
|
3361
|
-
*/
|
|
3362
|
-
createNotificationChannel(channel: string): void;
|
|
3363
|
-
/**
|
|
3364
|
-
* Get all notification channels (in-memory)
|
|
3365
|
-
*/
|
|
3366
|
-
getNotificationChannels(): void;
|
|
3367
|
-
/**
|
|
3368
|
-
* Get today's notification channels from database
|
|
3369
|
-
* Returns unique channels that have notifications posted today
|
|
3370
|
-
*/
|
|
3371
|
-
getTodaysNotificationChannels(): void;
|
|
3372
|
-
/**
|
|
3373
|
-
* Define and load previous day's notification channels from database
|
|
3374
|
-
* Creates channels in memory and broadcasts updated list
|
|
3375
|
-
*/
|
|
3376
|
-
definePreviousNotificationChannels(): void;
|
|
3377
|
-
/**
|
|
3378
|
-
* Subscribe to a notification channel with optional date filter
|
|
3379
|
-
* NOTE: MES- prefix is added automatically by HTTPManagerStateService
|
|
3380
|
-
* @param channel Base channel name (without MES- prefix)
|
|
3381
|
-
* @param options { startEpoch?, endEpoch? }
|
|
3382
|
-
* @param user User info for subscription
|
|
3383
|
-
*/
|
|
3384
|
-
subscribeToNotificationChannel(channel: string, options?: {
|
|
3385
|
-
startEpoch?: number;
|
|
3386
|
-
endEpoch?: number;
|
|
3387
|
-
}, user?: any): void;
|
|
3388
|
-
/**
|
|
3389
|
-
* Unsubscribe from a notification channel
|
|
3390
|
-
* NOTE: MES- prefix is added automatically by HTTPManagerStateService
|
|
3391
|
-
*/
|
|
3392
|
-
unsubscribeFromNotificationChannel(channel: string): void;
|
|
3393
|
-
/**
|
|
3394
|
-
* Send a notification to a channel
|
|
3395
|
-
* NOTE: MES- prefix is added automatically by HTTPManagerStateService
|
|
3396
|
-
*/
|
|
3397
|
-
sendNotification(channel: string, content: any, user?: any): void;
|
|
3398
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationServiceDemo, never>;
|
|
3399
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<NotificationServiceDemo>;
|
|
3400
|
-
}
|
|
3401
|
-
|
|
3402
|
-
declare class RequestManagerWsDemoComponent implements OnInit {
|
|
3403
|
-
httpManagerService: HTTPManagerService<any>;
|
|
3404
|
-
stateService: StateServiceDemo;
|
|
3405
|
-
fb: FormBuilder;
|
|
3406
|
-
server: string;
|
|
3407
|
-
wsServer: string;
|
|
3408
|
-
jwtToken: string;
|
|
3409
|
-
user: any;
|
|
3410
|
-
path: string[];
|
|
3411
|
-
user$: rxjs.Observable<WSUser | null>;
|
|
3412
|
-
retryCount$: rxjs.Observable<number>;
|
|
3413
|
-
maxRetries$: rxjs.Observable<number>;
|
|
3414
|
-
connectionStatus$: rxjs.Observable<boolean>;
|
|
3415
|
-
data$: rxjs.Observable<any>;
|
|
3416
|
-
isPending$: rxjs.Observable<boolean>;
|
|
3417
|
-
ngOnInit(): void;
|
|
3418
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RequestManagerWsDemoComponent, never>;
|
|
3419
|
-
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; }; }, {}, never, never, false, never>;
|
|
3420
|
-
}
|
|
3421
|
-
|
|
3422
|
-
declare class SettingsStateService extends StoreStateManagerService {
|
|
3423
|
-
constructor();
|
|
3424
|
-
updateEnum_1(value: any): void;
|
|
3425
|
-
updateEnum_2(value: any): void;
|
|
3426
|
-
getEnum(key: string): rxjs.Observable<any>;
|
|
3427
|
-
getEnum_1(): rxjs.Observable<any>;
|
|
3428
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SettingsStateService, never>;
|
|
3429
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<SettingsStateService>;
|
|
3430
|
-
}
|
|
3431
|
-
|
|
3432
|
-
declare class StoreStateManagerDemoComponent implements OnInit {
|
|
3433
|
-
settingsStateService: SettingsStateService;
|
|
3434
|
-
dataState$: rxjs.Observable<any>;
|
|
3435
|
-
dataEnum$: rxjs.Observable<any>;
|
|
3436
|
-
ngOnInit(): void;
|
|
3437
|
-
onUpdateEnum_1(): void;
|
|
3438
|
-
onUpdateEnum_2(): void;
|
|
3439
|
-
onGetEnum_1(): void;
|
|
3440
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StoreStateManagerDemoComponent, never>;
|
|
3441
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StoreStateManagerDemoComponent, "app-store-state-manager-demo", never, {}, {}, never, never, false, never>;
|
|
3442
|
-
}
|
|
3443
|
-
|
|
3444
|
-
interface TableRecord {
|
|
3445
|
-
id: number;
|
|
3446
|
-
last_name: string;
|
|
3447
|
-
age: number;
|
|
3448
|
-
amount: number;
|
|
3449
|
-
}
|
|
3450
|
-
declare class DatabaseDataDemoComponent implements OnInit, OnDestroy {
|
|
3451
|
-
db: DatabaseManagerService;
|
|
3452
|
-
sql: DexieSqlService;
|
|
3453
|
-
private destroy$;
|
|
3454
|
-
dataToDisplay: TableRecord[];
|
|
3455
|
-
dataSource: DatabaseDataSource;
|
|
3456
|
-
displayedColumns: string[];
|
|
3457
|
-
names: string[];
|
|
3458
|
-
sqlQuery: string;
|
|
3459
|
-
sqlResults: any[];
|
|
3460
|
-
sqlResultCols: string[];
|
|
3461
|
-
sqlError: string | null;
|
|
3462
|
-
sqlLoading: boolean;
|
|
3463
|
-
constructor();
|
|
3464
|
-
ngOnDestroy(): void;
|
|
3465
|
-
addData(): void;
|
|
3466
|
-
removeData(): void;
|
|
3467
|
-
updateData(): void;
|
|
3468
|
-
clearAllData(): void;
|
|
3469
|
-
private refreshData;
|
|
3470
|
-
ngOnInit(): void;
|
|
3471
|
-
createTable(tableDef: TableSchemaDef): Observable<boolean>;
|
|
3472
|
-
findTableRecords(table: string, column: string, value: any): Observable<any>;
|
|
3473
|
-
findTableRecord(table: string, column: string, value: any): Observable<any>;
|
|
3474
|
-
getTableRecords(table: string): Observable<any>;
|
|
3475
|
-
getTableRecord(table: string, id: number): Observable<any>;
|
|
3476
|
-
createTableRecord<T>(table: string, record: T): Observable<any>;
|
|
3477
|
-
updateTableRecord<T>(table: string, record: T): Observable<any>;
|
|
3478
|
-
deleteTableRecord<T>(table: string, id: number): Observable<any>;
|
|
3479
|
-
runSqlQuery(): void;
|
|
3480
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DatabaseDataDemoComponent, never>;
|
|
3481
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DatabaseDataDemoComponent, "app-database-data-demo", never, {}, {}, never, never, false, never>;
|
|
3482
|
-
}
|
|
3483
|
-
declare class DatabaseDataSource extends DataSource<TableRecord> {
|
|
3484
|
-
private _dataStream;
|
|
3485
|
-
constructor(initialData: TableRecord[]);
|
|
3486
|
-
connect(): Observable<TableRecord[]>;
|
|
3487
|
-
disconnect(): void;
|
|
3488
|
-
setData(data: TableRecord[]): void;
|
|
3489
|
-
}
|
|
3490
|
-
|
|
3491
|
-
declare class StateDataRequestService extends HTTPManagerStateService<any> {
|
|
3492
|
-
attempts$: rxjs.Observable<number>;
|
|
3493
|
-
nextRetry$: rxjs.Observable<number>;
|
|
3494
|
-
path: (string | number)[];
|
|
3495
|
-
constructor();
|
|
3496
|
-
updateConnection(server: string, wsServer: string, jwtToken: string, user: any, path?: (string | number)[]): void;
|
|
3497
|
-
addData(): void;
|
|
3498
|
-
sendMessage(data: ChannelMessage): void;
|
|
3499
|
-
getData(): void;
|
|
3500
|
-
updateData(data: any): void;
|
|
3501
|
-
deleteData(data: any): void;
|
|
3502
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StateDataRequestService, never>;
|
|
3503
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<StateDataRequestService>;
|
|
3504
|
-
}
|
|
3505
|
-
|
|
3506
|
-
declare class WsDataControlComponent implements OnInit {
|
|
3507
|
-
server: string;
|
|
3508
|
-
wsServer: string;
|
|
3509
|
-
jwtToken: string;
|
|
3510
|
-
user: any;
|
|
3511
|
-
path: (string | number)[];
|
|
3512
|
-
stateDataRequestService: StateDataRequestService;
|
|
3513
|
-
webSocketMessageService: WebSocketMessageService;
|
|
3514
|
-
user$: rxjs.Observable<WSUser | null>;
|
|
3515
|
-
users$: rxjs.Observable<any[]>;
|
|
3516
|
-
userAction$: rxjs.Observable<any>;
|
|
3517
|
-
data$: rxjs.Observable<any>;
|
|
3518
|
-
isUser: (user: any, userItem: any) => boolean;
|
|
3519
|
-
ngOnInit(): void;
|
|
3520
|
-
onGetData(): void;
|
|
3521
|
-
onAddData(): void;
|
|
3522
|
-
onUpdateData(data: any[]): void;
|
|
3523
|
-
onRemoveData(data: any): void;
|
|
3524
|
-
/**
|
|
3525
|
-
* Test direct state message via WebSocketMessageService
|
|
3526
|
-
* Sends an UPDATE message that should trigger fetchRecord() in the state manager
|
|
3527
|
-
*
|
|
3528
|
-
* @param recordId - The record ID to update (default: 63)
|
|
3529
|
-
* @param useFakeSessionId - If true, uses a fake sessionId to avoid filtering (default: true)
|
|
3530
|
-
* @param customSessionId - Optional custom sessionId (overrides useFakeSessionId if provided)
|
|
3531
|
-
*/
|
|
3532
|
-
onTestDirectStateMessage(recordId?: number, useFakeSessionId?: boolean, customSessionId?: string): void;
|
|
3533
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WsDataControlComponent, never>;
|
|
3534
|
-
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; }; }, {}, never, never, false, never>;
|
|
3535
|
-
}
|
|
3536
|
-
|
|
3537
|
-
interface SlideInterface {
|
|
3538
|
-
title: string;
|
|
3539
|
-
message: string;
|
|
3540
|
-
image?: string;
|
|
3541
|
-
icon?: string;
|
|
3542
|
-
}
|
|
3543
|
-
declare class Slide implements SlideInterface {
|
|
3544
|
-
title: string;
|
|
3545
|
-
message: string;
|
|
3546
|
-
image?: string | undefined;
|
|
3547
|
-
icon?: string | undefined;
|
|
3548
|
-
constructor(title?: string, message?: string, image?: string | undefined, icon?: string | undefined);
|
|
3549
|
-
static adapt(item?: any): Slide;
|
|
3550
|
-
}
|
|
3551
|
-
|
|
3552
|
-
interface ActionInterface {
|
|
3553
|
-
label: string;
|
|
3554
|
-
action: 'close' | 'navigate' | 'callback' | 'custom';
|
|
3555
|
-
target?: string;
|
|
3556
|
-
callback?: string;
|
|
3557
|
-
primary?: boolean;
|
|
3558
|
-
}
|
|
3559
|
-
declare class Action implements ActionInterface {
|
|
3560
|
-
label: string;
|
|
3561
|
-
action: 'close' | 'navigate' | 'callback' | 'custom';
|
|
3562
|
-
target?: string | undefined;
|
|
3563
|
-
callback?: string | undefined;
|
|
3564
|
-
primary?: boolean | undefined;
|
|
3565
|
-
constructor(label?: string, action?: 'close' | 'navigate' | 'callback' | 'custom', target?: string | undefined, callback?: string | undefined, primary?: boolean | undefined);
|
|
3566
|
-
static adapt(item?: any): Action;
|
|
3567
|
-
}
|
|
3568
|
-
|
|
3569
|
-
type DisplayType = 'snackbar' | 'dialog' | 'carousel' | 'banner' | 'inline';
|
|
3570
|
-
interface DisplayConfigInterface {
|
|
3571
|
-
type: DisplayType;
|
|
3572
|
-
supportsMarkdown?: boolean;
|
|
3573
|
-
stackable?: boolean;
|
|
3574
|
-
queueBehavior?: 'replace' | 'queue' | 'ignore';
|
|
3575
|
-
autoDismiss?: number;
|
|
3576
|
-
width?: string;
|
|
3577
|
-
height?: string;
|
|
3578
|
-
}
|
|
3579
|
-
declare class DisplayConfig implements DisplayConfigInterface {
|
|
3580
|
-
type: DisplayType;
|
|
3581
|
-
supportsMarkdown?: boolean | undefined;
|
|
3582
|
-
stackable?: boolean | undefined;
|
|
3583
|
-
queueBehavior?: ("replace" | "queue" | "ignore") | undefined;
|
|
3584
|
-
autoDismiss?: number | undefined;
|
|
3585
|
-
width?: string | undefined;
|
|
3586
|
-
height?: string | undefined;
|
|
3587
|
-
constructor(type?: DisplayType, supportsMarkdown?: boolean | undefined, stackable?: boolean | undefined, queueBehavior?: ("replace" | "queue" | "ignore") | undefined, autoDismiss?: number | undefined, width?: string | undefined, height?: string | undefined);
|
|
3588
|
-
static adapt(item?: any): DisplayConfig;
|
|
3589
|
-
}
|
|
3590
|
-
|
|
3591
|
-
interface MessageContentInterface {
|
|
3592
|
-
displayConfig?: DisplayConfig;
|
|
3593
|
-
title?: string;
|
|
3594
|
-
message: string;
|
|
3595
|
-
slides?: Slide[];
|
|
3596
|
-
image?: string;
|
|
3597
|
-
images?: string[];
|
|
3598
|
-
actions?: Action[];
|
|
3599
|
-
messageType?: string;
|
|
3600
|
-
icon?: string;
|
|
3601
|
-
data?: any;
|
|
3602
|
-
}
|
|
3603
|
-
declare class MessageContent implements MessageContentInterface {
|
|
3604
|
-
displayConfig?: DisplayConfig | undefined;
|
|
3605
|
-
title?: string | undefined;
|
|
3606
|
-
message: string;
|
|
3607
|
-
slides?: Slide[] | undefined;
|
|
3608
|
-
image?: string | undefined;
|
|
3609
|
-
images?: string[] | undefined;
|
|
3610
|
-
actions?: Action[] | undefined;
|
|
3611
|
-
messageType?: string | undefined;
|
|
3612
|
-
icon?: string | undefined;
|
|
3613
|
-
data?: any;
|
|
3614
|
-
constructor(displayConfig?: DisplayConfig | undefined, title?: string | undefined, message?: string, slides?: Slide[] | undefined, image?: string | undefined, images?: string[] | undefined, actions?: Action[] | undefined, messageType?: string | undefined, icon?: string | undefined, data?: any);
|
|
3615
|
-
static adapt(item?: any): MessageContent;
|
|
3616
|
-
}
|
|
3617
|
-
interface CommunicationMessageInterface {
|
|
3618
|
-
type: string;
|
|
3619
|
-
messageId?: number;
|
|
3620
|
-
channel?: string;
|
|
3621
|
-
sessionId?: {
|
|
3622
|
-
id: string;
|
|
3623
|
-
};
|
|
3624
|
-
timestamp?: string;
|
|
3625
|
-
content: MessageContent;
|
|
3626
|
-
}
|
|
3627
|
-
declare class CommunicationMessage implements CommunicationMessageInterface {
|
|
3628
|
-
type: string;
|
|
3629
|
-
messageId?: number | undefined;
|
|
3630
|
-
channel?: string | undefined;
|
|
3631
|
-
sessionId?: {
|
|
3632
|
-
id: string;
|
|
3633
|
-
} | undefined;
|
|
3634
|
-
timestamp?: string | undefined;
|
|
3635
|
-
content: MessageContent;
|
|
3636
|
-
constructor(type?: string, messageId?: number | undefined, channel?: string | undefined, sessionId?: {
|
|
3637
|
-
id: string;
|
|
3638
|
-
} | undefined, timestamp?: string | undefined, content?: MessageContent);
|
|
3639
|
-
static adapt(item?: any): CommunicationMessage;
|
|
3640
|
-
}
|
|
3641
|
-
|
|
3642
|
-
interface IDisplayStrategy {
|
|
3643
|
-
name: string;
|
|
3644
|
-
canHandle(message: CommunicationMessage): boolean;
|
|
3645
|
-
display(message: CommunicationMessage, config: DisplayConfig): void;
|
|
3646
|
-
}
|
|
3647
|
-
|
|
3648
|
-
interface DisplayRuleInterface {
|
|
3649
|
-
id: string;
|
|
3650
|
-
name?: string;
|
|
3651
|
-
match: (message: CommunicationMessage) => boolean;
|
|
3652
|
-
display: DisplayConfig;
|
|
3653
|
-
}
|
|
3654
|
-
declare class DisplayRule implements DisplayRuleInterface {
|
|
3655
|
-
id: string;
|
|
3656
|
-
name?: string | undefined;
|
|
3657
|
-
match: (message: CommunicationMessage) => boolean;
|
|
3658
|
-
display: DisplayConfig;
|
|
3659
|
-
constructor(id?: string, name?: string | undefined, match?: (message: CommunicationMessage) => boolean, display?: DisplayConfig);
|
|
3660
|
-
static adapt(item?: any): DisplayRule;
|
|
3661
|
-
}
|
|
3662
|
-
|
|
3663
|
-
declare class MessageDisplayRouterService {
|
|
3664
|
-
private snackbarStrategy;
|
|
3665
|
-
private strategies;
|
|
3666
|
-
private rules;
|
|
3667
|
-
display(message: CommunicationMessage): void;
|
|
3668
|
-
registerStrategies(strategies: IDisplayStrategy[]): void;
|
|
3669
|
-
setRules(rules: DisplayRule[]): void;
|
|
3670
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MessageDisplayRouterService, never>;
|
|
3671
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MessageDisplayRouterService>;
|
|
3672
|
-
}
|
|
3673
|
-
|
|
3674
|
-
declare class WsMessagingComponent implements OnInit, OnDestroy {
|
|
3675
|
-
server: string;
|
|
3676
|
-
wsServer: string;
|
|
3677
|
-
jwtToken: string;
|
|
3678
|
-
user: any;
|
|
3679
|
-
path: (string | number)[];
|
|
3680
|
-
private destroy$;
|
|
3681
|
-
fb: FormBuilder;
|
|
3682
|
-
messageService: MessageServiceDemo;
|
|
3683
|
-
stateService: StateServiceDemo;
|
|
3684
|
-
messageDisplayService: MessageDisplayRouterService;
|
|
3685
|
-
channels$: Observable<string[]>;
|
|
3686
|
-
subscribedChannels$: Observable<string[]>;
|
|
3687
|
-
user$: Observable<WSUser | null>;
|
|
3688
|
-
data$: Observable<any>;
|
|
3689
|
-
connectionStatus$: Observable<boolean>;
|
|
3690
|
-
newChannelName: FormControl<string | null>;
|
|
3691
|
-
messages: _angular_forms.FormGroup<{
|
|
3692
|
-
selectedChannels: FormControl<string[] | null>;
|
|
3693
|
-
content: FormControl<string | null>;
|
|
3694
|
-
}>;
|
|
3695
|
-
get selectedChannels(): FormControl;
|
|
3696
|
-
get content(): FormControl;
|
|
3697
|
-
communicationMessages$: Observable<any[]>;
|
|
3698
|
-
latestCommunicationMessages$: Observable<any>;
|
|
3699
|
-
chat$: Observable<{
|
|
3700
|
-
user: any;
|
|
3701
|
-
messages: any[];
|
|
3702
|
-
} | any>;
|
|
3703
|
-
ngOnInit(): void;
|
|
3704
|
-
ngOnDestroy(): void;
|
|
3705
|
-
/**
|
|
3706
|
-
* Create a new public channel without auto-subscribing
|
|
3707
|
-
* NOTE: PUB- prefix is added by messageService.createChannel
|
|
3708
|
-
*/
|
|
3709
|
-
onCreateChannel(): void;
|
|
3710
|
-
/**
|
|
3711
|
-
* Subscribe to a channel to receive messages
|
|
3712
|
-
* NOTE: PUB- prefix is added by messageService.subscribeToChannel
|
|
3713
|
-
*/
|
|
3714
|
-
onSubscribeToChannel(channel: string): void;
|
|
3715
|
-
/**
|
|
3716
|
-
* Unsubscribe from a channel
|
|
3717
|
-
* NOTE: PUB- prefix is added by messageService.unsubscribeFromChannel
|
|
3718
|
-
*/
|
|
3719
|
-
onUnsubscribeFromChannel(channel: string): void;
|
|
3720
|
-
/**
|
|
3721
|
-
* Handle chip toggle for subscribe/unsubscribe
|
|
3722
|
-
*/
|
|
3723
|
-
onChipToggle(event: any, channel: string): void;
|
|
3724
|
-
/**
|
|
3725
|
-
* Check if currently subscribed to a channel
|
|
3726
|
-
* Compares display names (without PUB- prefix)
|
|
3727
|
-
*/
|
|
3728
|
-
isSubscribed(channel: string, subscribedChannels: string[]): boolean;
|
|
3729
|
-
onSendMessage(): void;
|
|
3730
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WsMessagingComponent, never>;
|
|
3731
|
-
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; }; "path": { "alias": "path"; "required": false; }; }, {}, never, never, false, never>;
|
|
3732
|
-
}
|
|
3733
|
-
|
|
3734
|
-
declare class WsNotificationsComponent implements OnInit, OnDestroy {
|
|
3735
|
-
server: string;
|
|
3736
|
-
wsServer: string;
|
|
3737
|
-
jwtToken: string;
|
|
3738
|
-
user: any;
|
|
3739
|
-
private destroy$;
|
|
3740
|
-
fb: FormBuilder;
|
|
3741
|
-
notificationService: NotificationServiceDemo;
|
|
3742
|
-
stateService: StateServiceDemo;
|
|
3743
|
-
todaysNotificationChannels$: rxjs.Observable<string[]>;
|
|
3744
|
-
subscribedNotificationChannels$: rxjs.Observable<string[]>;
|
|
3745
|
-
notificationMessages$: rxjs.Observable<any[]>;
|
|
3746
|
-
connectionStatus$: rxjs.Observable<boolean>;
|
|
3747
|
-
/**
|
|
3748
|
-
* Helper to ensure channel has MES- prefix for outgoing communication
|
|
3749
|
-
*/
|
|
3750
|
-
private toNotificationChannel;
|
|
3751
|
-
newChannelName: FormControl<string | null>;
|
|
3752
|
-
selectedConnectionChannel: FormControl<string | null>;
|
|
3753
|
-
connectedChannel: string | null;
|
|
3754
|
-
displayedColumns: string[];
|
|
3755
|
-
dateFilter: _angular_forms.FormGroup<{
|
|
3756
|
-
startDate: FormControl<Date | null>;
|
|
3757
|
-
endDate: FormControl<Date | null>;
|
|
3758
|
-
}>;
|
|
3759
|
-
notificationForm: _angular_forms.FormGroup<{
|
|
3760
|
-
content: FormControl<string | null>;
|
|
3761
|
-
}>;
|
|
3762
|
-
get content(): FormControl;
|
|
3763
|
-
/**
|
|
3764
|
-
* Check if currently connected to a channel
|
|
3765
|
-
*/
|
|
3766
|
-
isChannelConnected(subscribedChannels: string[]): boolean;
|
|
3767
|
-
/**
|
|
3768
|
-
* Connect to the selected channel
|
|
3769
|
-
*/
|
|
3770
|
-
onConnectToChannel(): void;
|
|
3771
|
-
/**
|
|
3772
|
-
* Disconnect from the current channel
|
|
3773
|
-
*/
|
|
3774
|
-
onDisconnectFromChannel(): void;
|
|
3775
|
-
ngOnInit(): void;
|
|
3776
|
-
ngOnDestroy(): void;
|
|
3777
|
-
/**
|
|
3778
|
-
* Create a new notification channel
|
|
3779
|
-
*/
|
|
3780
|
-
onCreateChannel(): void;
|
|
3781
|
-
/**
|
|
3782
|
-
* Define and load previous channels
|
|
3783
|
-
*/
|
|
3784
|
-
onDefinePreviousChannels(): void;
|
|
3785
|
-
/**
|
|
3786
|
-
* Subscribe to a notification channel with optional date filter
|
|
3787
|
-
*/
|
|
3788
|
-
onSubscribeToChannel(channel: string): void;
|
|
3789
|
-
/**
|
|
3790
|
-
* Unsubscribe from a notification channel
|
|
3791
|
-
*/
|
|
3792
|
-
onUnsubscribeFromChannel(channel: string): void;
|
|
3793
|
-
/**
|
|
3794
|
-
* Check if currently subscribed to a channel
|
|
3795
|
-
*/
|
|
3796
|
-
isSubscribed(channel: string, subscribedChannels: string[]): boolean;
|
|
3797
|
-
/**
|
|
3798
|
-
* Handle chip click - toggle subscription state
|
|
3799
|
-
*/
|
|
3800
|
-
onChipClick(channel: string, subscribedChannels: string[]): void;
|
|
3801
|
-
/**
|
|
3802
|
-
* Send a notification
|
|
3803
|
-
*/
|
|
3804
|
-
onSendNotification(): void;
|
|
3805
|
-
/**
|
|
3806
|
-
* Format epoch timestamp to readable date/time
|
|
3807
|
-
*/
|
|
3808
|
-
formatTimestamp(epoch: number): string;
|
|
3809
|
-
/**
|
|
3810
|
-
* Get today's date in YYYY-MM-DD format for date input default
|
|
3811
|
-
*/
|
|
3812
|
-
getTodayDate(): string;
|
|
3813
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WsNotificationsComponent, never>;
|
|
3814
|
-
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>;
|
|
3815
|
-
}
|
|
3816
|
-
|
|
3817
|
-
declare class WsAiMessagingComponent implements OnInit {
|
|
3818
|
-
constructor();
|
|
3819
|
-
ngOnInit(): void;
|
|
3820
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WsAiMessagingComponent, never>;
|
|
3821
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WsAiMessagingComponent, "app-ws-ai-messaging", never, {}, {}, never, never, false, never>;
|
|
3822
|
-
}
|
|
3823
|
-
|
|
3824
|
-
declare class WsChatsComponent implements OnInit {
|
|
3825
|
-
constructor();
|
|
3826
|
-
ngOnInit(): void;
|
|
3827
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WsChatsComponent, never>;
|
|
3828
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WsChatsComponent, "app-ws-chats", never, {}, {}, never, never, false, never>;
|
|
3829
|
-
}
|
|
3830
|
-
|
|
3831
|
-
interface UploadStateInterface {
|
|
3832
|
-
selectedFiles: File[];
|
|
3833
|
-
isUploading: boolean;
|
|
3834
|
-
progress: number;
|
|
3835
|
-
currentFile: string | null;
|
|
3836
|
-
errorMessage: string | null;
|
|
3837
|
-
successMessage: string | null;
|
|
3838
|
-
}
|
|
3839
|
-
declare class UploadStateModel implements UploadStateInterface {
|
|
3840
|
-
selectedFiles: File[];
|
|
3841
|
-
isUploading: boolean;
|
|
3842
|
-
progress: number;
|
|
3843
|
-
currentFile: string | null;
|
|
3844
|
-
errorMessage: string | null;
|
|
3845
|
-
successMessage: string | null;
|
|
3846
|
-
constructor(selectedFiles?: File[], isUploading?: boolean, progress?: number, currentFile?: string | null, errorMessage?: string | null, successMessage?: string | null);
|
|
3847
|
-
static adapt(item?: any): UploadStateModel;
|
|
3848
|
-
}
|
|
3849
|
-
|
|
3850
|
-
declare class UploadDemoComponent implements OnInit, OnDestroy {
|
|
3851
|
-
private httpManager;
|
|
3852
|
-
private toastService;
|
|
3853
|
-
uploadState: UploadStateModel;
|
|
3854
|
-
allowedTypes: string[];
|
|
3855
|
-
maxFileSize: number;
|
|
3856
|
-
ngOnInit(): void;
|
|
3857
|
-
ngOnDestroy(): void;
|
|
3858
|
-
onFileSelected(event: Event): void;
|
|
3859
|
-
validateFile(file: File): string | null;
|
|
3860
|
-
clearSelection(): void;
|
|
3861
|
-
startUpload(): void;
|
|
3862
|
-
getFileSizeString(size: number): string;
|
|
3863
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<UploadDemoComponent, never>;
|
|
3864
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<UploadDemoComponent, "lib-upload-demo", never, {}, {}, never, never, false, never>;
|
|
3865
|
-
}
|
|
3866
|
-
|
|
3867
|
-
declare class SpinnerComponent implements OnInit {
|
|
3868
|
-
color: ThemePalette;
|
|
3869
|
-
diameter?: number;
|
|
3870
|
-
display?: string | number;
|
|
3871
|
-
mode?: ProgressSpinnerMode;
|
|
3872
|
-
strokeWidth?: number;
|
|
3873
|
-
value: number;
|
|
3874
|
-
constructor();
|
|
3875
|
-
ngOnInit(): void;
|
|
3876
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerComponent, never>;
|
|
3877
|
-
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>;
|
|
3878
|
-
}
|
|
3879
|
-
|
|
3880
|
-
declare class DownloadFileComponent implements OnInit {
|
|
3881
|
-
private subscriptions;
|
|
3882
|
-
event?: Function;
|
|
3883
|
-
displayError: number;
|
|
3884
|
-
diameter: number;
|
|
3885
|
-
mode: ProgressSpinnerMode;
|
|
3886
|
-
isPending: boolean;
|
|
3887
|
-
active: boolean;
|
|
3888
|
-
disabled: boolean;
|
|
3889
|
-
error: EventEmitter<void>;
|
|
3890
|
-
private _progress;
|
|
3891
|
-
set progress(value: any);
|
|
3892
|
-
get progress(): any;
|
|
3893
|
-
private _hasError;
|
|
3894
|
-
private errorTimerActive;
|
|
3895
|
-
set hasError(value: boolean | any);
|
|
3896
|
-
get hasError(): boolean | any;
|
|
3897
|
-
ngOnInit(): void;
|
|
3898
|
-
onAction(): void;
|
|
3899
|
-
ngOnDestroy(): void;
|
|
3900
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DownloadFileComponent, never>;
|
|
3901
|
-
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>;
|
|
3902
|
-
}
|
|
3903
|
-
|
|
3904
|
-
interface DownloadLabelsInterface {
|
|
3905
|
-
error: string;
|
|
3906
|
-
action: string;
|
|
3907
|
-
icon: string;
|
|
3908
|
-
}
|
|
3909
|
-
declare class DownloadLabels implements DownloadLabelsInterface {
|
|
3910
|
-
error: string;
|
|
3911
|
-
action: string;
|
|
3912
|
-
icon: string;
|
|
3913
|
-
constructor(error?: string, action?: string, icon?: string);
|
|
3914
|
-
static adapt(item?: any): DownloadLabelsInterface;
|
|
3915
|
-
}
|
|
3916
|
-
|
|
3917
|
-
declare class FileDownloaderComponent extends HTTPManagerService<any> implements OnInit {
|
|
3918
|
-
delayError: number;
|
|
3919
|
-
apiRequest: ApiRequest;
|
|
3920
|
-
displayErrorMessage: boolean;
|
|
3921
|
-
saveFileAs?: string;
|
|
3922
|
-
_labels: DownloadLabelsInterface;
|
|
3923
|
-
set labels(value: DownloadLabels);
|
|
3924
|
-
active: boolean;
|
|
3925
|
-
subscription: Subscription;
|
|
3926
|
-
get labels(): DownloadLabels;
|
|
3927
|
-
completed: EventEmitter<void>;
|
|
3928
|
-
failed: EventEmitter<string>;
|
|
3929
|
-
disabled: boolean;
|
|
3930
|
-
constructor();
|
|
3931
|
-
ngOnInit(): void;
|
|
3932
|
-
onDownloadStreaming(): Subscription | undefined;
|
|
3933
|
-
onError(message: string): void;
|
|
3934
|
-
OnDestroy(): void;
|
|
3935
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileDownloaderComponent, never>;
|
|
3936
|
-
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>;
|
|
3937
|
-
}
|
|
3938
|
-
|
|
3939
|
-
declare class FileDownloaderModule {
|
|
3940
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileDownloaderModule, never>;
|
|
3941
|
-
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]>;
|
|
3942
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FileDownloaderModule>;
|
|
3943
|
-
}
|
|
3944
|
-
|
|
3945
|
-
declare class HttpRequestManagerModule {
|
|
3946
|
-
static forRoot(config?: ConfigOptions): ModuleWithProviders<HttpRequestManagerModule>;
|
|
3947
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<HttpRequestManagerModule, never>;
|
|
3948
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<HttpRequestManagerModule, [typeof RequestManagerBasicDemoComponent, 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 UploadDemoComponent], [typeof i4.CommonModule, typeof i18.ToastMessageDisplayModule, typeof _angular_forms.FormsModule, typeof _angular_forms.ReactiveFormsModule, typeof i7.MatButtonModule, typeof i21.MatTabsModule, typeof i22.MatSelectModule, typeof i23.MatChipsModule, typeof i24.MatMenuModule, typeof i5.MatIconModule, typeof i26.MatTableModule, typeof i27.MatButtonToggleModule, typeof i28.MatAutocompleteModule, typeof i29.MatProgressBarModule, typeof i6.MatProgressSpinnerModule, typeof i31.MatSlideToggleModule, typeof i32.MatDividerModule, typeof i33.MatFormFieldModule, typeof i34.MatInputModule, typeof i35.MatToolbarModule, typeof i31.MatSlideToggleModule, typeof i36.TranslateModule, typeof i37.MatSidenavModule, typeof i38.MatDatepickerModule, typeof i39.MatNativeDateModule, typeof i40.MatCardModule, typeof FileDownloaderModule], [typeof HttpRequestServicesDemoComponent, typeof UploadDemoComponent]>;
|
|
3949
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<HttpRequestManagerModule>;
|
|
3950
|
-
}
|
|
3951
|
-
|
|
3952
|
-
declare class StoreStateSignalsDemoComponent implements OnInit {
|
|
3953
|
-
private stateManager;
|
|
3954
|
-
stateJson: i0.WritableSignal<string>;
|
|
3955
|
-
historyLength: i0.WritableSignal<number>;
|
|
3956
|
-
history: i0.WritableSignal<number[]>;
|
|
3957
|
-
ngOnInit(): void;
|
|
3958
|
-
private updateSignals;
|
|
3959
|
-
increment(): void;
|
|
3960
|
-
decrement(): void;
|
|
3961
|
-
reset(): void;
|
|
3962
|
-
addToHistory(): void;
|
|
3963
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<StoreStateSignalsDemoComponent, never>;
|
|
3964
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<StoreStateSignalsDemoComponent, "app-store-state-signals-demo", never, {}, {}, never, never, false, never>;
|
|
3965
|
-
}
|
|
3966
|
-
|
|
3967
|
-
export { ApiRequest, AppService, AsymmetricalEncryptionService, BatchOptions, BatchResult, CONFIG_SETTINGS_TOKEN, ChannelType, ConfigHTTPOptions, ConfigOptions, DataType, DatabaseDataDemoComponent, DatabaseManagerService, DatabaseStorage, DbService, DexieSqlService, ErrorDisplaySettings, ExecutionPlanType, GlobalStoreOptions, HTTPManagerService, HTTPManagerSignalsService, HTTPManagerStateService, HeadersService, HttpRequestManagerModule, HttpRequestServicesDemoComponent, InvalidFileInfoModel, LocalStorageDemoComponent, LocalStorageManagerService, LocalStorageOptions, LocalStorageSignalsDemoComponent, LocalStorageSignalsManagerService, LoggerService, NormalizedRequestOptionsModel, NotificationMessage, OperationResultModel, ParsingResultModel, PathQueryService, PathTrackerStateModel, PublicMessage, QueryParamsTrackerOptionsModel, QueryTrackerStateModel, Random, RandomHSLColor, RandomHexColor, RandomNumber, RandomNumbers, RandomNumbersUnique, RandomPaletteColor, RandomSignature, RandomStr, RandomVisibleColor, RequestErrorInterceptor, RequestHeadersInterceptor, RequestManagerDemoComponent, RequestManagerStateDemoComponent, RequestOptions, RequestService, RequestSignalsService, RetryOptions, SettingOptions, SqlParseError, SqlValidationError, StateMessage, StateOperationResult, StateStorageOptions, StorageData, StorageOption, StorageType, StoreStateManagerService, StoreStateManagerSignalsService, StoreStateSignalsDemoComponent, StreamConfigModel, StreamEventMetadataModel, StreamEventModel, StreamOutputModel, StreamProgressModel, StreamType, SymmetricalEncryptionService, TableSchemaDef, UUID, UUID_STR, UploadDemoComponent, UploadValidationErrorModel, UserData, UtilsService, WSOptions, WebSocketMessageService, WithCredentialsInterceptor, calculateBatchProgress, countdown, createChannelName, delayedRetry, isErrorState, isPendingState, isSuccessState, requestPolling, requestStreaming, streamAI, streamAuto, streamEvents, streamJSON, streamNDJSON };
|
|
3968
|
-
export type { APIStateManagerData, ApiRequestInterface, BatchErrorState, BatchOptionsInterface, BatchPendingState, BatchProgress, BatchRequestState, BatchResultInterface, BatchSuccessState, ConfigHTTPOptionsInterface, ConfigOptionsInterface, DatabaseStorageInterface, DexieOp, DexieSqlOptions, ErrorDisplaySettingsInterface, ExecutionPlan, GlobalStoreOptionsInterface, InvalidFileInfoInterface, JoinInfo, LocalStorageOptionsInterface, NormalizedQueryParams, NormalizedRequestOptionsInterface, NotificationMessageInterface, OperationResultInterface, ParseResult, ParsingResultInterface, PathTrackerStateInterface, PlanStep, PublicMessageInterface, QueryParamsTrackerOptionsInterface, QueryTrackerStateInterface, QueryValue, RequestOptionsInterface, RetryOptionsInterface, SettingOptionsInterface, State, StateMessageInterface, StateOperationResultInterface, StateStorageOptionsInterface, StateStoreManagerData$1 as StateStoreManagerData, StorageDataInterface, StorageOptionInterface, StreamConfigInterface, StreamEventInterface, StreamEventMetadataInterface, StreamOutputInterface, StreamProgressInterface, TableRecord, TableSchemaDefInterface, TableSchemaInfo, UploadValidationErrorInterface, UserDataInterface, ValidatedQuery, WSOptionsInterface };
|