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