http-request-manager 18.11.13 → 18.11.15

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.
@@ -1,16 +1,39 @@
1
1
  import * as rxjs from 'rxjs';
2
2
  import { Observable, Subscription, BehaviorSubject, OperatorFunction } from 'rxjs';
3
3
  import * as i0 from '@angular/core';
4
- import { InjectionToken, OnDestroy, Injector, ModuleWithProviders } from '@angular/core';
4
+ import { InjectionToken, OnDestroy, Injector, OnInit, EventEmitter, ModuleWithProviders } from '@angular/core';
5
5
  import { ComponentStore } from '@ngrx/component-store';
6
6
  import { HttpClient, HttpHeaders, HttpInterceptor, HttpRequest, HttpHandler, HttpEvent } from '@angular/common/http';
7
- import * as i2 from 'toast-message-display';
7
+ import * as i17 from 'toast-message-display';
8
8
  import { ToastMessageDisplayService } from 'toast-message-display';
9
9
  import Dexie, { Table } from 'dexie';
10
- import * as i4 from '@ngx-translate/core';
10
+ import * as i34 from '@ngx-translate/core';
11
11
  import { TranslateService } from '@ngx-translate/core';
12
- import * as i1 from '@angular/common';
13
- import * as i3 from '@angular/forms';
12
+ import * as _angular_forms from '@angular/forms';
13
+ import { FormArray, FormBuilder, FormControl } from '@angular/forms';
14
+ import { DataSource } from '@angular/cdk/collections';
15
+ import * as i4 from '@angular/common';
16
+ import * as i7 from '@angular/material/button';
17
+ import * as i20 from '@angular/material/tabs';
18
+ import * as i21 from '@angular/material/select';
19
+ import * as i22 from '@angular/material/chips';
20
+ import * as i23 from '@angular/material/menu';
21
+ import * as i5 from '@angular/material/icon';
22
+ import * as i25 from '@angular/material/table';
23
+ import * as i26 from '@angular/material/button-toggle';
24
+ import * as i27 from '@angular/material/autocomplete';
25
+ import * as i28 from '@angular/material/progress-bar';
26
+ import * as i29 from '@angular/material/slide-toggle';
27
+ import * as i30 from '@angular/material/divider';
28
+ import * as i31 from '@angular/material/form-field';
29
+ import * as i32 from '@angular/material/input';
30
+ import * as i33 from '@angular/material/toolbar';
31
+ import * as i35 from '@angular/material/sidenav';
32
+ import * as i36 from '@angular/material/datepicker';
33
+ import * as i37 from '@angular/material/core';
34
+ import { ThemePalette } from '@angular/material/core';
35
+ import * as i6 from '@angular/material/progress-spinner';
36
+ import { ProgressSpinnerMode } from '@angular/material/progress-spinner';
14
37
 
15
38
  declare enum StorageType {
16
39
  GLOBAL = 0,
@@ -1018,94 +1041,6 @@ declare class RetryOptions implements RetryOptionsInterface {
1018
1041
  static adapt(item?: any): RetryOptions;
1019
1042
  }
1020
1043
 
1021
- interface BatchOptionsInterface {
1022
- mode?: 'sequential' | 'parallel';
1023
- stopOnError?: boolean;
1024
- concurrency?: number;
1025
- ignoreErrors?: boolean;
1026
- logErrors?: boolean;
1027
- }
1028
- declare class BatchOptions implements BatchOptionsInterface {
1029
- mode: 'sequential' | 'parallel';
1030
- stopOnError: boolean;
1031
- concurrency: number;
1032
- ignoreErrors: boolean;
1033
- logErrors: boolean;
1034
- constructor(mode?: 'sequential' | 'parallel', stopOnError?: boolean, concurrency?: number, ignoreErrors?: boolean, logErrors?: boolean);
1035
- static adapt(item?: any): BatchOptions;
1036
- }
1037
-
1038
- interface BatchResultInterface<T = any> {
1039
- request: any;
1040
- success: boolean;
1041
- data?: T;
1042
- error?: any;
1043
- index: number;
1044
- timestamp: number;
1045
- }
1046
- declare class BatchResult<T = any> implements BatchResultInterface<T> {
1047
- request: any;
1048
- success: boolean;
1049
- data?: T | undefined;
1050
- error?: any;
1051
- index: number;
1052
- timestamp: number;
1053
- constructor(request: any, success: boolean, data?: T | undefined, error?: any, index?: number, timestamp?: number);
1054
- static adapt<T>(item?: any): BatchResult<T>;
1055
- }
1056
-
1057
- interface BatchRequestResultInterface<U> {
1058
- request: any;
1059
- data: U | null;
1060
- index: number;
1061
- status: 'success' | 'error';
1062
- error?: any;
1063
- }
1064
- declare class BatchRequestResultModel<U> implements BatchRequestResultInterface<U> {
1065
- request: any;
1066
- data: U | null;
1067
- index: number;
1068
- status: 'success' | 'error';
1069
- error?: any;
1070
- constructor(request?: any, data?: U | null, index?: number, status?: 'success' | 'error', error?: any);
1071
- static adapt<U>(item?: any): BatchRequestResultModel<U>;
1072
- }
1073
-
1074
- type BatchRequestState<T> = BatchPendingState | BatchSuccessState<T> | BatchErrorState;
1075
- interface BatchPendingState {
1076
- index: number;
1077
- request: any;
1078
- isPending: true;
1079
- data?: undefined;
1080
- error?: undefined;
1081
- }
1082
- interface BatchSuccessState<T> {
1083
- index: number;
1084
- request: any;
1085
- isPending: false;
1086
- data: T;
1087
- error?: undefined;
1088
- }
1089
- interface BatchErrorState {
1090
- index: number;
1091
- request: any;
1092
- isPending: false;
1093
- data?: undefined;
1094
- error: any;
1095
- }
1096
- declare function isPendingState<T>(state: BatchRequestState<T>): state is BatchPendingState;
1097
- declare function isSuccessState<T>(state: BatchRequestState<T>): state is BatchSuccessState<T>;
1098
- declare function isErrorState<T>(state: BatchRequestState<T>): state is BatchErrorState;
1099
-
1100
- interface BatchProgress {
1101
- total: number;
1102
- pending: number;
1103
- completed: number;
1104
- failed: number;
1105
- percent: number;
1106
- }
1107
- declare function calculateBatchProgress<T>(states: BatchRequestState<T>[]): BatchProgress;
1108
-
1109
1044
  declare enum DataType {
1110
1045
  ANY = 0,
1111
1046
  ARRAY = 1,
@@ -1466,44 +1401,6 @@ declare class HTTPManagerService<T> extends RequestService {
1466
1401
  private handleErrorWithSnackBar;
1467
1402
  private stopPolling;
1468
1403
  private defineReqOptions;
1469
- /**
1470
- * Execute multiple HTTP requests with configurable execution strategy
1471
- * @param requests Array of ApiRequest configurations
1472
- * @param options Optional batch configuration (all properties optional)
1473
- * @returns Observable emitting array of wrapped results in the order of requests provided
1474
- */
1475
- getBatchRequests<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestResultModel<U>[]>;
1476
- /**
1477
- * Execute requests sequentially (one at a time, in order)
1478
- * @param requests Array of ApiRequest configurations
1479
- * @param options Optional batch configuration
1480
- * @returns Observable emitting array of wrapped results when all requests complete
1481
- */
1482
- getSequentialRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestResultModel<U>[]>;
1483
- /**
1484
- * Execute requests in parallel with concurrency control
1485
- * @param requests Array of ApiRequest configurations
1486
- * @param options Optional batch configuration with concurrency limit
1487
- * @returns Observable emitting array of wrapped results when all requests complete
1488
- */
1489
- getParallelRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestResultModel<U>[]>;
1490
- /**
1491
- * Execute multiple HTTP requests and emit individual state changes in real-time
1492
- * @param requests Array of ApiRequest configurations
1493
- * @param options Optional batch configuration (all properties optional)
1494
- * @returns Observable stream of individual request states
1495
- */
1496
- getBatchRequestsStream<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestState<U>>;
1497
- /**
1498
- * Execute requests sequentially and emit state changes
1499
- */
1500
- private getSequentialStream;
1501
- /**
1502
- * Execute requests in parallel and emit state changes
1503
- */
1504
- private getParallelStream;
1505
- private handleSequentialError;
1506
- private handleParallelError;
1507
1404
  static ɵfac: i0.ɵɵFactoryDeclaration<HTTPManagerService<any>, [{ optional: true; }]>;
1508
1405
  static ɵprov: i0.ɵɵInjectableDeclaration<HTTPManagerService<any>>;
1509
1406
  }
@@ -1655,44 +1552,6 @@ declare class HTTPManagerSignalsService<T> extends RequestSignalsService {
1655
1552
  private handleErrorWithSnackBar;
1656
1553
  private stopPolling;
1657
1554
  private defineReqOptions;
1658
- /**
1659
- * Execute multiple HTTP requests with configurable execution strategy
1660
- * @param requests Array of ApiRequest configurations
1661
- * @param options Optional batch configuration (all properties optional)
1662
- * @returns Observable emitting array of data in the order of requests provided
1663
- */
1664
- getBatchRequests<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestResultModel<U>[]>;
1665
- /**
1666
- * Execute requests sequentially (one at a time, in order)
1667
- * @param requests Array of ApiRequest configurations
1668
- * @param options Optional batch configuration
1669
- * @returns Observable emitting array of wrapped results when all requests complete
1670
- */
1671
- getSequentialRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestResultModel<U>[]>;
1672
- /**
1673
- * Execute requests in parallel with concurrency control
1674
- * @param requests Array of ApiRequest configurations
1675
- * @param options Optional batch configuration with concurrency limit
1676
- * @returns Observable emitting array of wrapped results when all requests complete
1677
- */
1678
- getParallelRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestResultModel<U>[]>;
1679
- /**
1680
- * Execute multiple HTTP requests and emit individual state changes in real-time
1681
- * @param requests Array of ApiRequest configurations
1682
- * @param options Optional batch configuration (all properties optional)
1683
- * @returns Observable stream of individual request states
1684
- */
1685
- getBatchRequestsStream<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestState<U>>;
1686
- /**
1687
- * Execute requests sequentially and emit state changes
1688
- */
1689
- private getSequentialStream;
1690
- /**
1691
- * Execute requests in parallel and emit state changes
1692
- */
1693
- private getParallelStream;
1694
- private handleSequentialError;
1695
- private handleParallelError;
1696
1555
  static ɵfac: i0.ɵɵFactoryDeclaration<HTTPManagerSignalsService<any>, [{ optional: true; }]>;
1697
1556
  static ɵprov: i0.ɵɵInjectableDeclaration<HTTPManagerSignalsService<any>>;
1698
1557
  }
@@ -2044,33 +1903,1037 @@ declare class RequestErrorInterceptor implements HttpInterceptor {
2044
1903
  static ɵprov: i0.ɵɵInjectableDeclaration<RequestErrorInterceptor>;
2045
1904
  }
2046
1905
 
2047
- declare class HttpRequestManagerModule {
2048
- static forRoot(config?: ConfigOptions): ModuleWithProviders<HttpRequestManagerModule>;
2049
- static ɵfac: i0.ɵɵFactoryDeclaration<HttpRequestManagerModule, never>;
2050
- static ɵmod: i0.ɵɵNgModuleDeclaration<HttpRequestManagerModule, never, [typeof i1.CommonModule, typeof i2.ToastMessageDisplayModule, typeof i3.FormsModule, typeof i3.ReactiveFormsModule, typeof i4.TranslateModule], never>;
2051
- static ɵinj: i0.ɵɵInjectorDeclaration<HttpRequestManagerModule>;
1906
+ interface ClientInfoInterface$2 {
1907
+ domain: string;
1908
+ service: string;
1909
+ id: number;
1910
+ name: string;
1911
+ }
1912
+ declare class ClientInfo$2 implements ClientInfoInterface$2 {
1913
+ domain: string;
1914
+ service: string;
1915
+ id: number;
1916
+ name: string;
1917
+ constructor(domain?: string, service?: string, id?: number, name?: string);
1918
+ static adapt(item?: any): ClientInfo$2;
2052
1919
  }
2053
1920
 
2054
- type DisplayType = 'snackbar' | 'dialog' | 'carousel' | 'banner' | 'inline';
2055
- interface DisplayConfigInterface {
2056
- type: DisplayType;
2057
- supportsMarkdown?: boolean;
2058
- stackable?: boolean;
2059
- queueBehavior?: 'replace' | 'queue' | 'ignore';
2060
- autoDismiss?: number;
2061
- width?: string;
2062
- height?: string;
1921
+ interface ClientInfoMapperInterface$2 {
1922
+ id: number;
1923
+ first_name: string;
1924
+ last_name: string;
1925
+ email: string;
2063
1926
  }
2064
- declare class DisplayConfig implements DisplayConfigInterface {
2065
- type: DisplayType;
2066
- supportsMarkdown?: boolean | undefined;
2067
- stackable?: boolean | undefined;
2068
- queueBehavior?: ("replace" | "queue" | "ignore") | undefined;
2069
- autoDismiss?: number | undefined;
2070
- width?: string | undefined;
2071
- height?: string | undefined;
2072
- constructor(type?: DisplayType, supportsMarkdown?: boolean | undefined, stackable?: boolean | undefined, queueBehavior?: ("replace" | "queue" | "ignore") | undefined, autoDismiss?: number | undefined, width?: string | undefined, height?: string | undefined);
2073
- static adapt(item?: any): DisplayConfig;
1927
+ declare class ClientInfoMapper$2 implements ClientInfoMapperInterface$2 {
1928
+ id: number;
1929
+ first_name: string;
1930
+ last_name: string;
1931
+ email: string;
1932
+ constructor(id?: number, first_name?: string, last_name?: string, email?: string);
1933
+ static adapt(item?: any): ClientInfoMapper$2;
1934
+ }
1935
+
1936
+ interface AIPromptInterface$2 {
1937
+ response: string;
1938
+ }
1939
+ declare class AIPrompt$2 implements AIPromptInterface$2 {
1940
+ response: string;
1941
+ constructor(response?: string);
1942
+ static adapt(item?: any): AIPrompt$2;
1943
+ }
1944
+
1945
+ declare class RequestManagerBasicDemoComponent implements OnInit {
1946
+ server: string;
1947
+ adapter?: Function;
1948
+ mapper?: Function;
1949
+ displayedColumns: string[];
1950
+ getColumnsFromData(data: any[]): string[];
1951
+ updateDisplayedColumns(data: any[]): void;
1952
+ isObject(value: any): boolean;
1953
+ private fb;
1954
+ private toastMessage;
1955
+ questionControl: _angular_forms.FormControl<string | null>;
1956
+ httpManagerService: HTTPManagerService<any>;
1957
+ isPending$: Observable<boolean>;
1958
+ countdown$: Observable<number>;
1959
+ GET_error$: BehaviorSubject<string>;
1960
+ POST_error$: BehaviorSubject<string>;
1961
+ PUT_error$: BehaviorSubject<string>;
1962
+ DELETE_error$: BehaviorSubject<string>;
1963
+ STREAM_error$: BehaviorSubject<string>;
1964
+ STREAM_AI_error$: BehaviorSubject<string>;
1965
+ GET$?: Observable<any>;
1966
+ POST$?: Observable<any>;
1967
+ PUT$?: Observable<any>;
1968
+ DELETE$?: Observable<any>;
1969
+ STREAM$?: Observable<any>;
1970
+ STREAM_AI$?: Observable<any>;
1971
+ requestParams: {
1972
+ GET: ApiRequest;
1973
+ POST: ApiRequest;
1974
+ PUT: ApiRequest;
1975
+ DELETE: ApiRequest;
1976
+ STREAM: ApiRequest;
1977
+ };
1978
+ streamTypes: {
1979
+ id: string;
1980
+ value: string;
1981
+ }[];
1982
+ streamType: string;
1983
+ failedState: any;
1984
+ pollingState: any;
1985
+ downloadRequest: ApiRequest;
1986
+ sampleClientData: {
1987
+ id: number;
1988
+ name: string;
1989
+ domain: string;
1990
+ service: string;
1991
+ spiffe: string;
1992
+ secret: string;
1993
+ created: number;
1994
+ modified: number;
1995
+ icon: string;
1996
+ imageFile: string;
1997
+ email: string;
1998
+ };
1999
+ requestForm: _angular_forms.FormGroup<{
2000
+ path: _angular_forms.FormControl<string | null>;
2001
+ headers: FormArray<_angular_forms.FormControl<unknown>>;
2002
+ adapter: _angular_forms.FormControl<null>;
2003
+ mapper: _angular_forms.FormControl<null>;
2004
+ retry: _angular_forms.FormGroup<{
2005
+ times: _angular_forms.FormControl<number | null>;
2006
+ delay: _angular_forms.FormControl<number | null>;
2007
+ }>;
2008
+ polling: _angular_forms.FormControl<number | null>;
2009
+ }>;
2010
+ AIType: number;
2011
+ sampleAdaptors: ({
2012
+ label: string;
2013
+ value: typeof ClientInfo$2.adapt;
2014
+ } | {
2015
+ label: string;
2016
+ value: typeof AIPrompt$2.adapt;
2017
+ })[];
2018
+ sampleMappers: ({
2019
+ label: string;
2020
+ value: typeof ClientInfoMapper$2.adapt;
2021
+ } | {
2022
+ label: string;
2023
+ value: typeof AIPrompt$2.adapt;
2024
+ })[];
2025
+ get retry(): {
2026
+ times: number | null;
2027
+ delay: number | null;
2028
+ } | undefined;
2029
+ get headers(): FormArray;
2030
+ get isValid(): boolean;
2031
+ hasId: (arr: any[]) => boolean;
2032
+ props: (adapter: any) => any;
2033
+ arrayObjectsToObjects: (arr: any[]) => any;
2034
+ constructor();
2035
+ ngOnInit(): void;
2036
+ onStreamType(type: string): void;
2037
+ addHeader(): void;
2038
+ removeHeader(index: number): void;
2039
+ compileRequest(): {
2040
+ apiOptions: ApiRequest;
2041
+ path: string[];
2042
+ };
2043
+ onGetRequest(): void;
2044
+ onCreateRequest(): void;
2045
+ onUpdateRequest(): void;
2046
+ onDeleteRequest(): void;
2047
+ onStreamPostRequest(): void;
2048
+ onStreamRequest(): void;
2049
+ onDownloadCompleted(): void;
2050
+ onDownloadFailed(err: string): void;
2051
+ errorHandling(err: any, type: string): void;
2052
+ onSelectAIType(type: number): void;
2053
+ static ɵfac: i0.ɵɵFactoryDeclaration<RequestManagerBasicDemoComponent, never>;
2054
+ static ɵcmp: i0.ɵɵComponentDeclaration<RequestManagerBasicDemoComponent, "app-request-manager-basic-demo", never, {}, {}, never, never, false, never>;
2055
+ }
2056
+
2057
+ declare class HttpRequestServicesDemoComponent implements OnInit {
2058
+ private configOptions?;
2059
+ wsServer: string;
2060
+ jwtToken: string;
2061
+ server: string;
2062
+ user?: UserData;
2063
+ path: string[];
2064
+ adapter?: Function;
2065
+ mapper?: Function;
2066
+ requestTypes: ({
2067
+ name: string;
2068
+ value: string;
2069
+ new?: undefined;
2070
+ divider?: undefined;
2071
+ disabled?: undefined;
2072
+ } | {
2073
+ name: string;
2074
+ value: string;
2075
+ new: boolean;
2076
+ divider?: undefined;
2077
+ disabled?: undefined;
2078
+ } | {
2079
+ name: string;
2080
+ value: string;
2081
+ divider: boolean;
2082
+ disabled: boolean;
2083
+ new?: undefined;
2084
+ } | {
2085
+ name: string;
2086
+ value: string;
2087
+ divider: boolean;
2088
+ new?: undefined;
2089
+ disabled?: undefined;
2090
+ })[];
2091
+ selectedService: string;
2092
+ injectionOptions?: ConfigOptions;
2093
+ constructor(configOptions?: ConfigOptions | undefined);
2094
+ ngOnInit(): void;
2095
+ onSelected(type: number): void;
2096
+ static ɵfac: i0.ɵɵFactoryDeclaration<HttpRequestServicesDemoComponent, never>;
2097
+ 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>;
2098
+ }
2099
+
2100
+ interface ClientInfoInterface$1 {
2101
+ domain: string;
2102
+ service: string;
2103
+ id: number;
2104
+ name: string;
2105
+ }
2106
+ declare class ClientInfo$1 implements ClientInfoInterface$1 {
2107
+ domain: string;
2108
+ service: string;
2109
+ id: number;
2110
+ name: string;
2111
+ constructor(domain?: string, service?: string, id?: number, name?: string);
2112
+ static adapt(item?: any): ClientInfo$1;
2113
+ }
2114
+
2115
+ declare class StateManagerDemoService extends HTTPManagerStateService<any> {
2116
+ constructor();
2117
+ setAPIOptions(apiOptions: ApiRequest, dataType: DataType, database?: DatabaseStorage): void;
2118
+ getClients(): void;
2119
+ createClient(data: any): void;
2120
+ updateClient(data: ClientInfo$1): void;
2121
+ deleteClient(data: ClientInfo$1): void;
2122
+ streamRequest(): void;
2123
+ static ɵfac: i0.ɵɵFactoryDeclaration<StateManagerDemoService, never>;
2124
+ static ɵprov: i0.ɵɵInjectableDeclaration<StateManagerDemoService>;
2125
+ }
2126
+
2127
+ interface ClientInfoMapperInterface$1 {
2128
+ id: number;
2129
+ first_name: string;
2130
+ last_name: string;
2131
+ email: string;
2132
+ }
2133
+ declare class ClientInfoMapper$1 implements ClientInfoMapperInterface$1 {
2134
+ id: number;
2135
+ first_name: string;
2136
+ last_name: string;
2137
+ email: string;
2138
+ constructor(id?: number, first_name?: string, last_name?: string, email?: string);
2139
+ static adapt(item?: any): ClientInfoMapper$1;
2140
+ }
2141
+
2142
+ interface AIPromptInterface$1 {
2143
+ response: string;
2144
+ }
2145
+ declare class AIPrompt$1 implements AIPromptInterface$1 {
2146
+ response: string;
2147
+ constructor(response?: string);
2148
+ static adapt(item?: any): AIPrompt$1;
2149
+ }
2150
+
2151
+ declare class RequestManagerStateDemoComponent implements OnInit {
2152
+ server: string;
2153
+ adapter?: Function;
2154
+ mapper?: Function;
2155
+ stateManagerDemoService: StateManagerDemoService;
2156
+ displayedColumns: string[];
2157
+ getColumnsFromData(data: any[]): string[];
2158
+ updateDisplayedColumns(data: any[]): void;
2159
+ isObject(value: any): boolean;
2160
+ getDataLength(data: any): number;
2161
+ selectedRecord$?: Observable<ClientInfo$1 | null>;
2162
+ fb: FormBuilder;
2163
+ streamTypes: {
2164
+ id: string;
2165
+ value: string;
2166
+ }[];
2167
+ streamType: string;
2168
+ httpManagerService: HTTPManagerService<any>;
2169
+ isPending$: Observable<boolean>;
2170
+ error$: Observable<boolean>;
2171
+ countdown$: Observable<number>;
2172
+ GET_error$: BehaviorSubject<string>;
2173
+ POST_error$: BehaviorSubject<string>;
2174
+ PUT_error$: BehaviorSubject<string>;
2175
+ DELETE_error$: BehaviorSubject<string>;
2176
+ STREAM_error$: BehaviorSubject<string>;
2177
+ STREAM_AI_error$: BehaviorSubject<string>;
2178
+ GET$: BehaviorSubject<any>;
2179
+ POST$: BehaviorSubject<null>;
2180
+ PUT$: BehaviorSubject<null>;
2181
+ DELETE$: BehaviorSubject<null>;
2182
+ STREAM: BehaviorSubject<null>;
2183
+ STREAM$: Observable<null>;
2184
+ STREAM_AI: BehaviorSubject<{
2185
+ response: string;
2186
+ }[]>;
2187
+ STREAM_AI$: Observable<any>;
2188
+ failedState: any;
2189
+ pollingState: any;
2190
+ questionControl: _angular_forms.FormControl<string | null>;
2191
+ requestType: string;
2192
+ prompts: string[];
2193
+ AIType: number;
2194
+ get dataObservable$(): BehaviorSubject<any> | BehaviorSubject<null> | BehaviorSubject<{
2195
+ response: string;
2196
+ }[]>;
2197
+ sampleClientData: {
2198
+ id: number;
2199
+ name: string;
2200
+ domain: string;
2201
+ service: string;
2202
+ spiffe: string;
2203
+ secret: string;
2204
+ created: number;
2205
+ modified: number;
2206
+ icon: string;
2207
+ imageFile: string;
2208
+ };
2209
+ selectedRecord: _angular_forms.FormControl<null>;
2210
+ requestForm: _angular_forms.FormGroup<{
2211
+ datatype: _angular_forms.FormControl<string | null>;
2212
+ path: _angular_forms.FormControl<string | null>;
2213
+ headers: FormArray<_angular_forms.FormControl<unknown>>;
2214
+ adapter: _angular_forms.FormControl<null>;
2215
+ mapper: _angular_forms.FormControl<null>;
2216
+ retry: _angular_forms.FormGroup<{
2217
+ times: _angular_forms.FormControl<number | null>;
2218
+ delay: _angular_forms.FormControl<number | null>;
2219
+ }>;
2220
+ polling: _angular_forms.FormControl<number | null>;
2221
+ database: _angular_forms.FormGroup<{
2222
+ table: _angular_forms.FormControl<string | null>;
2223
+ expiresIn: _angular_forms.FormControl<string | null>;
2224
+ }>;
2225
+ }>;
2226
+ get hasChanged(): boolean;
2227
+ get dataType(): string | null | undefined;
2228
+ get database(): {
2229
+ table: string | null;
2230
+ expiresIn: string | null;
2231
+ } | undefined;
2232
+ get retry(): {
2233
+ times: number | null;
2234
+ delay: number | null;
2235
+ } | undefined;
2236
+ sampleAdaptors: ({
2237
+ label: string;
2238
+ value: typeof ClientInfo$1.adapt;
2239
+ } | {
2240
+ label: string;
2241
+ value: typeof AIPrompt$1.adapt;
2242
+ })[];
2243
+ sampleMappers: ({
2244
+ label: string;
2245
+ value: typeof ClientInfoMapper$1.adapt;
2246
+ } | {
2247
+ label: string;
2248
+ value: typeof AIPrompt$1.adapt;
2249
+ })[];
2250
+ get headers(): FormArray;
2251
+ get isValid(): boolean;
2252
+ arrayObjectsToObjects: (arr: any[]) => any;
2253
+ props: (adapter: any) => any;
2254
+ constructor();
2255
+ ngOnInit(): void;
2256
+ onStreamType(type: string): void;
2257
+ addHeader(): void;
2258
+ removeHeader(index: number): void;
2259
+ compileRequest(): {
2260
+ apiOptions: ApiRequest;
2261
+ path: string[];
2262
+ };
2263
+ onSetStateOptions(): void;
2264
+ onClearRecords(): void;
2265
+ onGetRequest(): void;
2266
+ onCreateRequest(): void;
2267
+ onUpdateRequest(): void;
2268
+ onDeleteRequest(): void;
2269
+ onStreamRequest(): void;
2270
+ errorHandling(err: any, type: string): void;
2271
+ onSelectAIType(type: number): void;
2272
+ onClearHistory(): void;
2273
+ static ɵfac: i0.ɵɵFactoryDeclaration<RequestManagerStateDemoComponent, never>;
2274
+ 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>;
2275
+ }
2276
+
2277
+ declare class RequestManagerDemoComponent implements OnInit {
2278
+ server: string;
2279
+ adapter?: Function;
2280
+ mapper?: Function;
2281
+ displayedColumns: string[];
2282
+ getColumnsFromData(data: any[]): string[];
2283
+ updateDisplayedColumns(data: any[]): void;
2284
+ isObject(value: any): boolean;
2285
+ private fb;
2286
+ private toastMessage;
2287
+ questionControl: _angular_forms.FormControl<string | null>;
2288
+ httpManagerService: HTTPManagerService<any>;
2289
+ isPending$: Observable<boolean>;
2290
+ countdown$: Observable<number>;
2291
+ GET_error$: BehaviorSubject<string>;
2292
+ POST_error$: BehaviorSubject<string>;
2293
+ PUT_error$: BehaviorSubject<string>;
2294
+ DELETE_error$: BehaviorSubject<string>;
2295
+ STREAM_error$: BehaviorSubject<string>;
2296
+ STREAM_AI_error$: BehaviorSubject<string>;
2297
+ GET$?: Observable<any>;
2298
+ POST$?: Observable<any>;
2299
+ PUT$?: Observable<any>;
2300
+ DELETE$?: Observable<any>;
2301
+ STREAM$?: Observable<any>;
2302
+ STREAM_AI$?: Observable<any>;
2303
+ requestParams: {
2304
+ GET: ApiRequest;
2305
+ POST: ApiRequest;
2306
+ PUT: ApiRequest;
2307
+ DELETE: ApiRequest;
2308
+ STREAM: ApiRequest;
2309
+ };
2310
+ streamTypes: {
2311
+ id: string;
2312
+ value: string;
2313
+ }[];
2314
+ streamType: string;
2315
+ failedState: any;
2316
+ pollingState: any;
2317
+ downloadRequest: ApiRequest;
2318
+ sampleClientData: {
2319
+ id: number;
2320
+ name: string;
2321
+ domain: string;
2322
+ service: string;
2323
+ spiffe: string;
2324
+ secret: string;
2325
+ created: number;
2326
+ modified: number;
2327
+ icon: string;
2328
+ imageFile: string;
2329
+ email: string;
2330
+ };
2331
+ requestForm: _angular_forms.FormGroup<{
2332
+ path: _angular_forms.FormControl<string | null>;
2333
+ headers: FormArray<_angular_forms.FormControl<unknown>>;
2334
+ adapter: _angular_forms.FormControl<null>;
2335
+ mapper: _angular_forms.FormControl<null>;
2336
+ retry: _angular_forms.FormGroup<{
2337
+ times: _angular_forms.FormControl<number | null>;
2338
+ delay: _angular_forms.FormControl<number | null>;
2339
+ }>;
2340
+ polling: _angular_forms.FormControl<number | null>;
2341
+ }>;
2342
+ AIType: number;
2343
+ sampleAdaptors: ({
2344
+ label: string;
2345
+ value: typeof ClientInfo$1.adapt;
2346
+ } | {
2347
+ label: string;
2348
+ value: typeof AIPrompt$1.adapt;
2349
+ })[];
2350
+ sampleMappers: ({
2351
+ label: string;
2352
+ value: typeof ClientInfoMapper$1.adapt;
2353
+ } | {
2354
+ label: string;
2355
+ value: typeof AIPrompt$1.adapt;
2356
+ })[];
2357
+ get retry(): {
2358
+ times: number | null;
2359
+ delay: number | null;
2360
+ } | undefined;
2361
+ get headers(): FormArray;
2362
+ get isValid(): boolean;
2363
+ hasId: (arr: any[]) => boolean;
2364
+ props: (adapter: any) => any;
2365
+ arrayObjectsToObjects: (arr: any[]) => any;
2366
+ constructor();
2367
+ ngOnInit(): void;
2368
+ onStreamType(type: string): void;
2369
+ addHeader(): void;
2370
+ removeHeader(index: number): void;
2371
+ compileRequest(): {
2372
+ apiOptions: ApiRequest;
2373
+ path: string[];
2374
+ };
2375
+ onGetRequest(): void;
2376
+ onCreateRequest(): void;
2377
+ onUpdateRequest(): void;
2378
+ onDeleteRequest(): void;
2379
+ onStreamPostRequest(): void;
2380
+ onStreamRequest(): void;
2381
+ onDownloadCompleted(): void;
2382
+ onDownloadFailed(err: string): void;
2383
+ errorHandling(err: any, type: string): void;
2384
+ onSelectAIType(type: number): void;
2385
+ static ɵfac: i0.ɵɵFactoryDeclaration<RequestManagerDemoComponent, never>;
2386
+ 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>;
2387
+ }
2388
+
2389
+ interface ClientInfoInterface {
2390
+ domain: string;
2391
+ service: string;
2392
+ id: number;
2393
+ name: string;
2394
+ }
2395
+ declare class ClientInfo implements ClientInfoInterface {
2396
+ domain: string;
2397
+ service: string;
2398
+ id: number;
2399
+ name: string;
2400
+ constructor(domain?: string, service?: string, id?: number, name?: string);
2401
+ static adapt(item?: any): ClientInfo;
2402
+ }
2403
+
2404
+ interface ClientInfoMapperInterface {
2405
+ id: number;
2406
+ first_name: string;
2407
+ last_name: string;
2408
+ email: string;
2409
+ }
2410
+ declare class ClientInfoMapper implements ClientInfoMapperInterface {
2411
+ id: number;
2412
+ first_name: string;
2413
+ last_name: string;
2414
+ email: string;
2415
+ constructor(id?: number, first_name?: string, last_name?: string, email?: string);
2416
+ static adapt(item?: any): ClientInfoMapper;
2417
+ }
2418
+
2419
+ interface AIPromptInterface {
2420
+ response: string;
2421
+ }
2422
+ declare class AIPrompt implements AIPromptInterface {
2423
+ response: string;
2424
+ constructor(response?: string);
2425
+ static adapt(item?: any): AIPrompt;
2426
+ }
2427
+
2428
+ declare class RequestSignalsManagerDemoComponent implements OnInit {
2429
+ displayedColumns: string[];
2430
+ private fb;
2431
+ private toastMessage;
2432
+ httpManagerSignalsService: HTTPManagerSignalsService<any>;
2433
+ isPending: i0.WritableSignal<boolean>;
2434
+ countdown: i0.WritableSignal<number>;
2435
+ GET_result: any;
2436
+ POST_result: any;
2437
+ PUT_result: any;
2438
+ DELETE_result: any;
2439
+ STREAM_result: any;
2440
+ STREAM_AI_result: any;
2441
+ GET_error: string;
2442
+ POST_error: string;
2443
+ PUT_error: string;
2444
+ DELETE_error: string;
2445
+ STREAM_error: string;
2446
+ STREAM_AI_error: string;
2447
+ requestParams: {
2448
+ GET: ApiRequest;
2449
+ POST: ApiRequest;
2450
+ PUT: ApiRequest;
2451
+ DELETE: ApiRequest;
2452
+ STREAM: ApiRequest;
2453
+ };
2454
+ failedState: any;
2455
+ pollingState: any;
2456
+ questionControl: _angular_forms.FormControl<string | null>;
2457
+ downloadRequest: ApiRequest;
2458
+ sampleClientData: {
2459
+ id: number;
2460
+ name: string;
2461
+ domain: string;
2462
+ service: string;
2463
+ spiffe: string;
2464
+ secret: string;
2465
+ created: number;
2466
+ modified: number;
2467
+ icon: string;
2468
+ imageFile: string;
2469
+ email: string;
2470
+ };
2471
+ requestForm: _angular_forms.FormGroup<{
2472
+ path: _angular_forms.FormControl<string | null>;
2473
+ headers: FormArray<_angular_forms.FormControl<unknown>>;
2474
+ adapter: _angular_forms.FormControl<null>;
2475
+ mapper: _angular_forms.FormControl<null>;
2476
+ retry: _angular_forms.FormGroup<{
2477
+ times: _angular_forms.FormControl<number | null>;
2478
+ delay: _angular_forms.FormControl<number | null>;
2479
+ }>;
2480
+ polling: _angular_forms.FormControl<number | null>;
2481
+ }>;
2482
+ AIType: number;
2483
+ sampleAdaptors: ({
2484
+ label: string;
2485
+ value: typeof ClientInfo.adapt;
2486
+ } | {
2487
+ label: string;
2488
+ value: typeof AIPrompt.adapt;
2489
+ })[];
2490
+ sampleMappers: ({
2491
+ label: string;
2492
+ value: typeof ClientInfoMapper.adapt;
2493
+ } | {
2494
+ label: string;
2495
+ value: typeof AIPrompt.adapt;
2496
+ })[];
2497
+ get retry(): {
2498
+ times: number | null;
2499
+ delay: number | null;
2500
+ } | undefined;
2501
+ get headers(): FormArray;
2502
+ get isValid(): boolean;
2503
+ hasId: (arr: any[]) => boolean;
2504
+ props: (adapter: any) => any;
2505
+ arrayObjectsToObjects: (arr: any[]) => any;
2506
+ constructor();
2507
+ ngOnInit(): void;
2508
+ addHeader(): void;
2509
+ removeHeader(index: number): void;
2510
+ compileRequest(): {
2511
+ apiOptions: ApiRequest;
2512
+ path: string[];
2513
+ };
2514
+ onGetRequest(): void;
2515
+ onCreateRequest(): void;
2516
+ onUpdateRequest(): void;
2517
+ onDeleteRequest(): void;
2518
+ onStreamPostRequest(): void;
2519
+ onStreamRequest(): void;
2520
+ onDownloadCompleted(): void;
2521
+ onDownloadFailed(err: string): void;
2522
+ errorHandling(err: any, type: string): any;
2523
+ onSelectAIType(type: number): void;
2524
+ static ɵfac: i0.ɵɵFactoryDeclaration<RequestSignalsManagerDemoComponent, never>;
2525
+ static ɵcmp: i0.ɵɵComponentDeclaration<RequestSignalsManagerDemoComponent, "app-request-signals-manager-demo", never, {}, {}, never, never, false, never>;
2526
+ }
2527
+
2528
+ declare class LocalStorageDemoComponent implements OnInit {
2529
+ private configOptions?;
2530
+ fb: FormBuilder;
2531
+ utils: UtilsService;
2532
+ type$: BehaviorSubject<StorageType>;
2533
+ get type(): number;
2534
+ typeControl: _angular_forms.FormControl<string | null>;
2535
+ localStorageManagerService: LocalStorageManagerService;
2536
+ settings$: Observable<any>;
2537
+ setting$: (store: string) => Observable<StorageOption | null>;
2538
+ storageForm: _angular_forms.FormGroup<{
2539
+ store: _angular_forms.FormControl<string | null>;
2540
+ type: _angular_forms.FormControl<string | null>;
2541
+ settingType: _angular_forms.FormControl<string | null>;
2542
+ encrypted: _angular_forms.FormControl<boolean | null>;
2543
+ data: _angular_forms.FormControl<string | null>;
2544
+ }>;
2545
+ newStoreForm: _angular_forms.FormGroup<{
2546
+ name: _angular_forms.FormControl<string | null>;
2547
+ storage: _angular_forms.FormControl<string | null>;
2548
+ encrypted: _angular_forms.FormControl<boolean | null>;
2549
+ data: _angular_forms.FormControl<string | null>;
2550
+ expiresIn: _angular_forms.FormControl<string | null>;
2551
+ }>;
2552
+ store$?: Observable<any>;
2553
+ storeData$: Observable<any> | undefined;
2554
+ expiresIn: (epoch: number) => string | undefined;
2555
+ get isValid(): boolean;
2556
+ get isValidData(): boolean;
2557
+ isValidJSON: (str: string) => boolean;
2558
+ displayedColumns: string[];
2559
+ filterData: (values: SettingOptions[]) => SettingOptions[];
2560
+ data$?: Observable<any>;
2561
+ store: any;
2562
+ create: boolean;
2563
+ storeProps?: LocalStorageOptions;
2564
+ options?: SettingOptions;
2565
+ constructor(configOptions?: ConfigOptions | undefined);
2566
+ ngOnInit(): void;
2567
+ onCreateStore(): void;
2568
+ onUpdateStore(store: any): void;
2569
+ onSelectedRow(store: any): void;
2570
+ onCreate(): void;
2571
+ onDelete(store: StorageOption): void;
2572
+ onCancel(): void;
2573
+ onUpdate(store: StorageOption, data: any): void;
2574
+ onReset(): void;
2575
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageDemoComponent, never>;
2576
+ static ɵcmp: i0.ɵɵComponentDeclaration<LocalStorageDemoComponent, "app-local-storage-demo", never, {}, {}, never, never, false, never>;
2577
+ }
2578
+
2579
+ declare class LocalStorageSignalsDemoComponent implements OnInit {
2580
+ private configOptions?;
2581
+ fb: FormBuilder;
2582
+ utils: UtilsService;
2583
+ get type(): number;
2584
+ typeControl: _angular_forms.FormControl<string | null>;
2585
+ localStorageManagerService: LocalStorageSignalsManagerService;
2586
+ readonly settings: i0.Signal<StorageOption[]>;
2587
+ storeSelected: i0.WritableSignal<StorageOption | null>;
2588
+ selectedStoreData: i0.Signal<string>;
2589
+ selectedType: i0.WritableSignal<number>;
2590
+ filteredSettings: i0.Signal<StorageOption[]>;
2591
+ storageForm: _angular_forms.FormGroup<{
2592
+ store: _angular_forms.FormControl<string | null>;
2593
+ type: _angular_forms.FormControl<string | null>;
2594
+ settingType: _angular_forms.FormControl<string | null>;
2595
+ encrypted: _angular_forms.FormControl<boolean | null>;
2596
+ data: _angular_forms.FormControl<string | null>;
2597
+ }>;
2598
+ newStoreForm: _angular_forms.FormGroup<{
2599
+ name: _angular_forms.FormControl<string | null>;
2600
+ storage: _angular_forms.FormControl<string | null>;
2601
+ encrypted: _angular_forms.FormControl<boolean | null>;
2602
+ data: _angular_forms.FormControl<string | null>;
2603
+ expiresIn: _angular_forms.FormControl<string | null>;
2604
+ }>;
2605
+ expiresIn: (epoch: number) => string | undefined;
2606
+ get isValid(): boolean;
2607
+ get isValidData(): boolean;
2608
+ isValidJSON: (str: string) => boolean;
2609
+ displayedColumns: string[];
2610
+ filterData: (values: StorageOption[] | null | undefined) => StorageOption[];
2611
+ settingFor(name: string): StorageOption | null;
2612
+ store: any;
2613
+ create: boolean;
2614
+ storeProps?: LocalStorageOptions;
2615
+ options?: SettingOptions;
2616
+ constructor(configOptions?: ConfigOptions | undefined);
2617
+ ngOnInit(): void;
2618
+ onCreateStore(): void;
2619
+ onUpdateStore(store: any): void;
2620
+ onSelectedRow(store: any): void;
2621
+ onCreate(): void;
2622
+ onDelete(store: StorageOption): void;
2623
+ onCancel(): void;
2624
+ onUpdate(store: StorageOption, data: any): void;
2625
+ onReset(): void;
2626
+ static ɵfac: i0.ɵɵFactoryDeclaration<LocalStorageSignalsDemoComponent, never>;
2627
+ static ɵcmp: i0.ɵɵComponentDeclaration<LocalStorageSignalsDemoComponent, "app-local-storage-signals-demo", never, {}, {}, never, never, false, never>;
2628
+ }
2629
+
2630
+ /**
2631
+ * StateServiceDemo - Core state management and WebSocket connection service
2632
+ *
2633
+ * Handles:
2634
+ * - WebSocket connection setup
2635
+ * - Base HTTP state management
2636
+ * - Connection status and retry logic
2637
+ */
2638
+ declare class StateServiceDemo extends HTTPManagerStateService<any> {
2639
+ attempts$: rxjs.Observable<number>;
2640
+ nextRetry$: rxjs.Observable<number>;
2641
+ constructor();
2642
+ /**
2643
+ * Initialize WebSocket connection with server configuration
2644
+ * @param server - Backend server URL
2645
+ * @param wsServer - WebSocket server URL
2646
+ * @param jwtToken - JWT authentication token
2647
+ * @param user - User information
2648
+ * @param path - Path for constructing channel name (e.g., ['ai','tests'])
2649
+ */
2650
+ updateConnection(server: string, wsServer: string, jwtToken: string, user: any, path?: (string | number)[]): void;
2651
+ /**
2652
+ * Get all available channels
2653
+ */
2654
+ getAllChannels(): void;
2655
+ /**
2656
+ * Subscribe to a channel
2657
+ */
2658
+ subscribeToChannel(channel: string): void;
2659
+ /**
2660
+ * Unsubscribe from a channel
2661
+ */
2662
+ unsubscribeFromChannel(channel: string): void;
2663
+ /**
2664
+ * Create a notification channel (MES- prefix)
2665
+ */
2666
+ createNotificationChannel(channel: string): void;
2667
+ /**
2668
+ * Get all notification channels list (in-memory)
2669
+ */
2670
+ getNotificationChannels(): void;
2671
+ /**
2672
+ * Get today's notification channels from database
2673
+ * Returns unique channels that have notifications posted today
2674
+ */
2675
+ getTodaysNotificationChannels(): void;
2676
+ /**
2677
+ * Define and load previous day's notification channels from database
2678
+ * Creates channels in memory and broadcasts updated list
2679
+ */
2680
+ definePreviousNotificationChannels(): void;
2681
+ /**
2682
+ * Subscribe to notification channel with optional date filters
2683
+ */
2684
+ subscribeToNotificationChannel(channel: string, options?: {
2685
+ startEpoch?: number;
2686
+ endEpoch?: number;
2687
+ }, user?: any): void;
2688
+ /**
2689
+ * Unsubscribe from notification channel
2690
+ */
2691
+ unsubscribeFromNotificationChannel(channel: string): void;
2692
+ /**
2693
+ * Send a notification to a channel
2694
+ */
2695
+ sendNotification(channel: string, content: any): void;
2696
+ static ɵfac: i0.ɵɵFactoryDeclaration<StateServiceDemo, never>;
2697
+ static ɵprov: i0.ɵɵInjectableDeclaration<StateServiceDemo>;
2698
+ }
2699
+
2700
+ /**
2701
+ * MessageServiceDemo - Channel messaging service (PUB- prefix channels)
2702
+ *
2703
+ * Handles:
2704
+ * - Sending messages to channels
2705
+ * - Channel subscription for messaging
2706
+ * - Real-time message broadcast
2707
+ */
2708
+ declare class MessageServiceDemo {
2709
+ private stateService;
2710
+ channels$: rxjs.Observable<string[] | null>;
2711
+ subscribedChannels$: rxjs.Observable<Set<string>>;
2712
+ communicationMessages$: rxjs.Observable<any[]>;
2713
+ latestCommunicationMessages$: rxjs.Observable<any>;
2714
+ connectionStatus$: rxjs.Observable<boolean>;
2715
+ user$: rxjs.Observable<WSUser | null>;
2716
+ data$: rxjs.Observable<any>;
2717
+ /**
2718
+ * Helper to ensure channel has PUB- prefix
2719
+ */
2720
+ private toPublicChannel;
2721
+ /**
2722
+ * Helper to strip PUB- prefix for display
2723
+ */
2724
+ private fromPublicChannel;
2725
+ /**
2726
+ * Create a new public channel
2727
+ */
2728
+ createChannel(channel: string): void;
2729
+ /**
2730
+ * Get all available channels
2731
+ */
2732
+ getAllChannels(): void;
2733
+ /**
2734
+ * Subscribe to a channel to receive messages
2735
+ */
2736
+ subscribeToChannel(channel: string): void;
2737
+ /**
2738
+ * Unsubscribe from a channel
2739
+ */
2740
+ unsubscribeFromChannel(channel: string): void;
2741
+ /**
2742
+ * Send a message to one or more channels
2743
+ */
2744
+ sendMessage(data: ChannelMessage, channels?: string[]): void;
2745
+ static ɵfac: i0.ɵɵFactoryDeclaration<MessageServiceDemo, never>;
2746
+ static ɵprov: i0.ɵɵInjectableDeclaration<MessageServiceDemo>;
2747
+ }
2748
+
2749
+ /**
2750
+ * NotificationServiceDemo - Notification channel service (MES- prefix channels)
2751
+ *
2752
+ * Handles:
2753
+ * - Creating notification channels
2754
+ * - Subscribing to notifications with date filters
2755
+ * - Sending notifications (persisted to database)
2756
+ * - Receiving real-time and historical notifications
2757
+ */
2758
+ declare class NotificationServiceDemo {
2759
+ private stateService;
2760
+ notificationChannels$: rxjs.Observable<string[]>;
2761
+ todaysNotificationChannels$: rxjs.Observable<string[]>;
2762
+ private subscribedNotificationChannelsSubject;
2763
+ subscribedNotificationChannels$: rxjs.Observable<Set<string>>;
2764
+ notificationMessages$: rxjs.Observable<any[]>;
2765
+ latestNotification$: rxjs.Observable<any>;
2766
+ connectionStatus$: rxjs.Observable<boolean>;
2767
+ /**
2768
+ * Create a notification channel
2769
+ * NOTE: MES- prefix is added automatically by HTTPManagerStateService
2770
+ */
2771
+ createNotificationChannel(channel: string): void;
2772
+ /**
2773
+ * Get all notification channels (in-memory)
2774
+ */
2775
+ getNotificationChannels(): void;
2776
+ /**
2777
+ * Get today's notification channels from database
2778
+ * Returns unique channels that have notifications posted today
2779
+ */
2780
+ getTodaysNotificationChannels(): void;
2781
+ /**
2782
+ * Define and load previous day's notification channels from database
2783
+ * Creates channels in memory and broadcasts updated list
2784
+ */
2785
+ definePreviousNotificationChannels(): void;
2786
+ /**
2787
+ * Subscribe to a notification channel with optional date filter
2788
+ * NOTE: MES- prefix is added automatically by HTTPManagerStateService
2789
+ * @param channel Base channel name (without MES- prefix)
2790
+ * @param options { startEpoch?, endEpoch? }
2791
+ * @param user User info for subscription
2792
+ */
2793
+ subscribeToNotificationChannel(channel: string, options?: {
2794
+ startEpoch?: number;
2795
+ endEpoch?: number;
2796
+ }, user?: any): void;
2797
+ /**
2798
+ * Unsubscribe from a notification channel
2799
+ * NOTE: MES- prefix is added automatically by HTTPManagerStateService
2800
+ */
2801
+ unsubscribeFromNotificationChannel(channel: string): void;
2802
+ /**
2803
+ * Send a notification to a channel
2804
+ * NOTE: MES- prefix is added automatically by HTTPManagerStateService
2805
+ */
2806
+ sendNotification(channel: string, content: any, user?: any): void;
2807
+ static ɵfac: i0.ɵɵFactoryDeclaration<NotificationServiceDemo, never>;
2808
+ static ɵprov: i0.ɵɵInjectableDeclaration<NotificationServiceDemo>;
2809
+ }
2810
+
2811
+ declare class RequestManagerWsDemoComponent implements OnInit {
2812
+ httpManagerService: HTTPManagerService<any>;
2813
+ stateService: StateServiceDemo;
2814
+ fb: FormBuilder;
2815
+ server: string;
2816
+ wsServer: string;
2817
+ jwtToken: string;
2818
+ user: any;
2819
+ path: string[];
2820
+ user$: rxjs.Observable<WSUser | null>;
2821
+ attempts$: rxjs.Observable<number>;
2822
+ nextRetry$: rxjs.Observable<number>;
2823
+ connectionStatus$: rxjs.Observable<boolean>;
2824
+ data$: rxjs.Observable<any>;
2825
+ isPending$: rxjs.Observable<boolean>;
2826
+ ngOnInit(): void;
2827
+ static ɵfac: i0.ɵɵFactoryDeclaration<RequestManagerWsDemoComponent, never>;
2828
+ 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>;
2829
+ }
2830
+
2831
+ declare class SettingsStateService extends StoreStateManagerService {
2832
+ constructor();
2833
+ updateEnum_1(value: any): void;
2834
+ updateEnum_2(value: any): void;
2835
+ getEnum(key: string): rxjs.Observable<any>;
2836
+ getEnum_1(): rxjs.Observable<any>;
2837
+ static ɵfac: i0.ɵɵFactoryDeclaration<SettingsStateService, never>;
2838
+ static ɵprov: i0.ɵɵInjectableDeclaration<SettingsStateService>;
2839
+ }
2840
+
2841
+ declare class StoreStateManagerDemoComponent implements OnInit {
2842
+ settingsStateService: SettingsStateService;
2843
+ dataState$: rxjs.Observable<any>;
2844
+ dataEnum$: rxjs.Observable<any>;
2845
+ ngOnInit(): void;
2846
+ onUpdateEnum_1(): void;
2847
+ onUpdateEnum_2(): void;
2848
+ onGetEnum_1(): void;
2849
+ static ɵfac: i0.ɵɵFactoryDeclaration<StoreStateManagerDemoComponent, never>;
2850
+ static ɵcmp: i0.ɵɵComponentDeclaration<StoreStateManagerDemoComponent, "app-store-state-manager-demo", never, {}, {}, never, never, false, never>;
2851
+ }
2852
+
2853
+ interface TableRecord {
2854
+ id: number;
2855
+ last_name: string;
2856
+ age: number;
2857
+ amount: number;
2858
+ }
2859
+ declare class DatabaseDataDemoComponent implements OnInit, OnDestroy {
2860
+ db: DatabaseManagerService;
2861
+ private destroy$;
2862
+ dataToDisplay: TableRecord[];
2863
+ dataSource: DatabaseDataSource;
2864
+ displayedColumns: string[];
2865
+ names: string[];
2866
+ constructor();
2867
+ ngOnDestroy(): void;
2868
+ addData(): void;
2869
+ removeData(): void;
2870
+ updateData(): void;
2871
+ clearAllData(): void;
2872
+ private refreshData;
2873
+ ngOnInit(): void;
2874
+ createTable(tableDef: TableSchemaDef): Observable<boolean>;
2875
+ findTableRecords(table: string, column: string, value: any): Observable<any>;
2876
+ findTableRecord(table: string, column: string, value: any): Observable<any>;
2877
+ getTableRecords(table: string): Observable<any>;
2878
+ getTableRecord(table: string, id: number): Observable<any>;
2879
+ createTableRecord<T>(table: string, record: T): Observable<any>;
2880
+ updateTableRecord<T>(table: string, record: T): Observable<any>;
2881
+ deleteTableRecord<T>(table: string, id: number): Observable<any>;
2882
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatabaseDataDemoComponent, never>;
2883
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatabaseDataDemoComponent, "app-database-data-demo", never, {}, {}, never, never, false, never>;
2884
+ }
2885
+ declare class DatabaseDataSource extends DataSource<TableRecord> {
2886
+ private _dataStream;
2887
+ constructor(initialData: TableRecord[]);
2888
+ connect(): Observable<TableRecord[]>;
2889
+ disconnect(): void;
2890
+ setData(data: TableRecord[]): void;
2891
+ }
2892
+
2893
+ declare class StateDataRequestService extends HTTPManagerStateService<any> {
2894
+ attempts$: rxjs.Observable<number>;
2895
+ nextRetry$: rxjs.Observable<number>;
2896
+ path: (string | number)[];
2897
+ constructor();
2898
+ updateConnection(server: string, wsServer: string, jwtToken: string, user: any, path?: (string | number)[]): void;
2899
+ addData(): void;
2900
+ sendMessage(data: ChannelMessage): void;
2901
+ getData(): void;
2902
+ updateData(data: any): void;
2903
+ deleteData(data: any): void;
2904
+ static ɵfac: i0.ɵɵFactoryDeclaration<StateDataRequestService, never>;
2905
+ static ɵprov: i0.ɵɵInjectableDeclaration<StateDataRequestService>;
2906
+ }
2907
+
2908
+ declare class WsDataControlComponent implements OnInit {
2909
+ server: string;
2910
+ wsServer: string;
2911
+ jwtToken: string;
2912
+ user: any;
2913
+ path: (string | number)[];
2914
+ stateDataRequestService: StateDataRequestService;
2915
+ webSocketMessageService: WebSocketMessageService;
2916
+ user$: rxjs.Observable<WSUser | null>;
2917
+ users$: rxjs.Observable<any[]>;
2918
+ userAction$: rxjs.Observable<any>;
2919
+ data$: rxjs.Observable<any>;
2920
+ isUser: (user: any, userItem: any) => boolean;
2921
+ ngOnInit(): void;
2922
+ onGetData(): void;
2923
+ onAddData(): void;
2924
+ onUpdateData(data: any[]): void;
2925
+ onRemoveData(data: any): void;
2926
+ /**
2927
+ * Test direct state message via WebSocketMessageService
2928
+ * Sends an UPDATE message that should trigger fetchRecord() in the state manager
2929
+ *
2930
+ * @param recordId - The record ID to update (default: 63)
2931
+ * @param useFakeSessionId - If true, uses a fake sessionId to avoid filtering (default: true)
2932
+ * @param customSessionId - Optional custom sessionId (overrides useFakeSessionId if provided)
2933
+ */
2934
+ onTestDirectStateMessage(recordId?: number, useFakeSessionId?: boolean, customSessionId?: string): void;
2935
+ static ɵfac: i0.ɵɵFactoryDeclaration<WsDataControlComponent, never>;
2936
+ 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>;
2074
2937
  }
2075
2938
 
2076
2939
  interface SlideInterface {
@@ -2105,6 +2968,28 @@ declare class Action implements ActionInterface {
2105
2968
  static adapt(item?: any): Action;
2106
2969
  }
2107
2970
 
2971
+ type DisplayType = 'snackbar' | 'dialog' | 'carousel' | 'banner' | 'inline';
2972
+ interface DisplayConfigInterface {
2973
+ type: DisplayType;
2974
+ supportsMarkdown?: boolean;
2975
+ stackable?: boolean;
2976
+ queueBehavior?: 'replace' | 'queue' | 'ignore';
2977
+ autoDismiss?: number;
2978
+ width?: string;
2979
+ height?: string;
2980
+ }
2981
+ declare class DisplayConfig implements DisplayConfigInterface {
2982
+ type: DisplayType;
2983
+ supportsMarkdown?: boolean | undefined;
2984
+ stackable?: boolean | undefined;
2985
+ queueBehavior?: ("replace" | "queue" | "ignore") | undefined;
2986
+ autoDismiss?: number | undefined;
2987
+ width?: string | undefined;
2988
+ height?: string | undefined;
2989
+ constructor(type?: DisplayType, supportsMarkdown?: boolean | undefined, stackable?: boolean | undefined, queueBehavior?: ("replace" | "queue" | "ignore") | undefined, autoDismiss?: number | undefined, width?: string | undefined, height?: string | undefined);
2990
+ static adapt(item?: any): DisplayConfig;
2991
+ }
2992
+
2108
2993
  interface MessageContentInterface {
2109
2994
  displayConfig?: DisplayConfig;
2110
2995
  title?: string;
@@ -2156,6 +3041,12 @@ declare class CommunicationMessage implements CommunicationMessageInterface {
2156
3041
  static adapt(item?: any): CommunicationMessage;
2157
3042
  }
2158
3043
 
3044
+ interface IDisplayStrategy {
3045
+ name: string;
3046
+ canHandle(message: CommunicationMessage): boolean;
3047
+ display(message: CommunicationMessage, config: DisplayConfig): void;
3048
+ }
3049
+
2159
3050
  interface DisplayRuleInterface {
2160
3051
  id: string;
2161
3052
  name?: string;
@@ -2171,12 +3062,6 @@ declare class DisplayRule implements DisplayRuleInterface {
2171
3062
  static adapt(item?: any): DisplayRule;
2172
3063
  }
2173
3064
 
2174
- interface IDisplayStrategy {
2175
- name: string;
2176
- canHandle(message: CommunicationMessage): boolean;
2177
- display(message: CommunicationMessage, config: DisplayConfig): void;
2178
- }
2179
-
2180
3065
  declare class MessageDisplayRouterService {
2181
3066
  private snackbarStrategy;
2182
3067
  private strategies;
@@ -2188,17 +3073,262 @@ declare class MessageDisplayRouterService {
2188
3073
  static ɵprov: i0.ɵɵInjectableDeclaration<MessageDisplayRouterService>;
2189
3074
  }
2190
3075
 
2191
- declare class SnackbarStrategy implements IDisplayStrategy {
2192
- name: string;
2193
- private toastService;
2194
- canHandle(message: CommunicationMessage): boolean;
2195
- display(message: CommunicationMessage, config: DisplayConfig): void;
2196
- private extractMessage;
2197
- static ɵfac: i0.ɵɵFactoryDeclaration<SnackbarStrategy, never>;
2198
- static ɵprov: i0.ɵɵInjectableDeclaration<SnackbarStrategy>;
3076
+ declare class WsMessagingComponent implements OnInit, OnDestroy {
3077
+ server: string;
3078
+ wsServer: string;
3079
+ jwtToken: string;
3080
+ user: any;
3081
+ path: (string | number)[];
3082
+ private destroy$;
3083
+ fb: FormBuilder;
3084
+ messageService: MessageServiceDemo;
3085
+ stateService: StateServiceDemo;
3086
+ messageDisplayService: MessageDisplayRouterService;
3087
+ channels$: Observable<string[]>;
3088
+ subscribedChannels$: Observable<string[]>;
3089
+ user$: Observable<WSUser | null>;
3090
+ data$: Observable<any>;
3091
+ connectionStatus$: Observable<boolean>;
3092
+ newChannelName: FormControl<string | null>;
3093
+ messages: _angular_forms.FormGroup<{
3094
+ selectedChannels: FormControl<string[] | null>;
3095
+ content: FormControl<string | null>;
3096
+ }>;
3097
+ get selectedChannels(): FormControl;
3098
+ get content(): FormControl;
3099
+ communicationMessages$: Observable<any[]>;
3100
+ latestCommunicationMessages$: Observable<any>;
3101
+ chat$: Observable<{
3102
+ user: any;
3103
+ messages: any[];
3104
+ } | any>;
3105
+ ngOnInit(): void;
3106
+ ngOnDestroy(): void;
3107
+ /**
3108
+ * Create a new public channel without auto-subscribing
3109
+ * NOTE: PUB- prefix is added by messageService.createChannel
3110
+ */
3111
+ onCreateChannel(): void;
3112
+ /**
3113
+ * Subscribe to a channel to receive messages
3114
+ * NOTE: PUB- prefix is added by messageService.subscribeToChannel
3115
+ */
3116
+ onSubscribeToChannel(channel: string): void;
3117
+ /**
3118
+ * Unsubscribe from a channel
3119
+ * NOTE: PUB- prefix is added by messageService.unsubscribeFromChannel
3120
+ */
3121
+ onUnsubscribeFromChannel(channel: string): void;
3122
+ /**
3123
+ * Handle chip toggle for subscribe/unsubscribe
3124
+ */
3125
+ onChipToggle(event: any, channel: string): void;
3126
+ /**
3127
+ * Check if currently subscribed to a channel
3128
+ * Compares display names (without PUB- prefix)
3129
+ */
3130
+ isSubscribed(channel: string, subscribedChannels: string[]): boolean;
3131
+ onSendMessage(): void;
3132
+ static ɵfac: i0.ɵɵFactoryDeclaration<WsMessagingComponent, never>;
3133
+ 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>;
3134
+ }
3135
+
3136
+ declare class WsNotificationsComponent implements OnInit, OnDestroy {
3137
+ server: string;
3138
+ wsServer: string;
3139
+ jwtToken: string;
3140
+ user: any;
3141
+ private destroy$;
3142
+ fb: FormBuilder;
3143
+ notificationService: NotificationServiceDemo;
3144
+ stateService: StateServiceDemo;
3145
+ todaysNotificationChannels$: rxjs.Observable<string[]>;
3146
+ subscribedNotificationChannels$: rxjs.Observable<string[]>;
3147
+ notificationMessages$: rxjs.Observable<any[]>;
3148
+ connectionStatus$: rxjs.Observable<boolean>;
3149
+ /**
3150
+ * Helper to ensure channel has MES- prefix for outgoing communication
3151
+ */
3152
+ private toNotificationChannel;
3153
+ newChannelName: FormControl<string | null>;
3154
+ selectedConnectionChannel: FormControl<string | null>;
3155
+ connectedChannel: string | null;
3156
+ displayedColumns: string[];
3157
+ dateFilter: _angular_forms.FormGroup<{
3158
+ startDate: FormControl<Date | null>;
3159
+ endDate: FormControl<Date | null>;
3160
+ }>;
3161
+ notificationForm: _angular_forms.FormGroup<{
3162
+ content: FormControl<string | null>;
3163
+ }>;
3164
+ get content(): FormControl;
3165
+ /**
3166
+ * Check if currently connected to a channel
3167
+ */
3168
+ isChannelConnected(subscribedChannels: string[]): boolean;
3169
+ /**
3170
+ * Connect to the selected channel
3171
+ */
3172
+ onConnectToChannel(): void;
3173
+ /**
3174
+ * Disconnect from the current channel
3175
+ */
3176
+ onDisconnectFromChannel(): void;
3177
+ ngOnInit(): void;
3178
+ ngOnDestroy(): void;
3179
+ /**
3180
+ * Create a new notification channel
3181
+ */
3182
+ onCreateChannel(): void;
3183
+ /**
3184
+ * Define and load previous channels
3185
+ */
3186
+ onDefinePreviousChannels(): void;
3187
+ /**
3188
+ * Subscribe to a notification channel with optional date filter
3189
+ */
3190
+ onSubscribeToChannel(channel: string): void;
3191
+ /**
3192
+ * Unsubscribe from a notification channel
3193
+ */
3194
+ onUnsubscribeFromChannel(channel: string): void;
3195
+ /**
3196
+ * Check if currently subscribed to a channel
3197
+ */
3198
+ isSubscribed(channel: string, subscribedChannels: string[]): boolean;
3199
+ /**
3200
+ * Handle chip click - toggle subscription state
3201
+ */
3202
+ onChipClick(channel: string, subscribedChannels: string[]): void;
3203
+ /**
3204
+ * Send a notification
3205
+ */
3206
+ onSendNotification(): void;
3207
+ /**
3208
+ * Format epoch timestamp to readable date/time
3209
+ */
3210
+ formatTimestamp(epoch: number): string;
3211
+ /**
3212
+ * Get today's date in YYYY-MM-DD format for date input default
3213
+ */
3214
+ getTodayDate(): string;
3215
+ static ɵfac: i0.ɵɵFactoryDeclaration<WsNotificationsComponent, never>;
3216
+ 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>;
3217
+ }
3218
+
3219
+ declare class WsAiMessagingComponent implements OnInit {
3220
+ constructor();
3221
+ ngOnInit(): void;
3222
+ static ɵfac: i0.ɵɵFactoryDeclaration<WsAiMessagingComponent, never>;
3223
+ static ɵcmp: i0.ɵɵComponentDeclaration<WsAiMessagingComponent, "app-ws-ai-messaging", never, {}, {}, never, never, false, never>;
3224
+ }
3225
+
3226
+ declare class WsChatsComponent implements OnInit {
3227
+ constructor();
3228
+ ngOnInit(): void;
3229
+ static ɵfac: i0.ɵɵFactoryDeclaration<WsChatsComponent, never>;
3230
+ static ɵcmp: i0.ɵɵComponentDeclaration<WsChatsComponent, "app-ws-chats", never, {}, {}, never, never, false, never>;
3231
+ }
3232
+
3233
+ declare class SpinnerComponent implements OnInit {
3234
+ color: ThemePalette;
3235
+ diameter?: number;
3236
+ display?: string | number;
3237
+ mode?: ProgressSpinnerMode;
3238
+ strokeWidth?: number;
3239
+ value: number;
3240
+ constructor();
3241
+ ngOnInit(): void;
3242
+ static ɵfac: i0.ɵɵFactoryDeclaration<SpinnerComponent, never>;
3243
+ 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>;
3244
+ }
3245
+
3246
+ declare class DownloadFileComponent implements OnInit {
3247
+ private subscriptions;
3248
+ event?: Function;
3249
+ displayError: number;
3250
+ diameter: number;
3251
+ mode: ProgressSpinnerMode;
3252
+ isPending: boolean;
3253
+ active: boolean;
3254
+ disabled: boolean;
3255
+ error: EventEmitter<void>;
3256
+ private _progress;
3257
+ set progress(value: any);
3258
+ get progress(): any;
3259
+ private _hasError;
3260
+ private errorTimerActive;
3261
+ set hasError(value: boolean | any);
3262
+ get hasError(): boolean | any;
3263
+ ngOnInit(): void;
3264
+ onAction(): void;
3265
+ ngOnDestroy(): void;
3266
+ static ɵfac: i0.ɵɵFactoryDeclaration<DownloadFileComponent, never>;
3267
+ 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>;
3268
+ }
3269
+
3270
+ interface DownloadLabelsInterface {
3271
+ error: string;
3272
+ action: string;
3273
+ icon: string;
3274
+ }
3275
+ declare class DownloadLabels implements DownloadLabelsInterface {
3276
+ error: string;
3277
+ action: string;
3278
+ icon: string;
3279
+ constructor(error?: string, action?: string, icon?: string);
3280
+ static adapt(item?: any): DownloadLabelsInterface;
3281
+ }
3282
+
3283
+ declare class FileDownloaderComponent extends HTTPManagerService<any> implements OnInit {
3284
+ delayError: number;
3285
+ apiRequest: ApiRequest;
3286
+ displayErrorMessage: boolean;
3287
+ saveFileAs?: string;
3288
+ _labels: DownloadLabelsInterface;
3289
+ set labels(value: DownloadLabels);
3290
+ active: boolean;
3291
+ subscription: Subscription;
3292
+ get labels(): DownloadLabels;
3293
+ completed: EventEmitter<void>;
3294
+ failed: EventEmitter<string>;
3295
+ disabled: boolean;
3296
+ constructor();
3297
+ ngOnInit(): void;
3298
+ onDownloadStreaming(): Subscription | undefined;
3299
+ onError(message: string): void;
3300
+ OnDestroy(): void;
3301
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileDownloaderComponent, never>;
3302
+ 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>;
3303
+ }
3304
+
3305
+ declare class FileDownloaderModule {
3306
+ static ɵfac: i0.ɵɵFactoryDeclaration<FileDownloaderModule, never>;
3307
+ 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]>;
3308
+ static ɵinj: i0.ɵɵInjectorDeclaration<FileDownloaderModule>;
3309
+ }
3310
+
3311
+ declare class HttpRequestManagerModule {
3312
+ static forRoot(config?: ConfigOptions): ModuleWithProviders<HttpRequestManagerModule>;
3313
+ static ɵfac: i0.ɵɵFactoryDeclaration<HttpRequestManagerModule, never>;
3314
+ 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 i4.CommonModule, typeof i17.ToastMessageDisplayModule, typeof _angular_forms.FormsModule, typeof _angular_forms.ReactiveFormsModule, typeof i7.MatButtonModule, typeof i20.MatTabsModule, typeof i21.MatSelectModule, typeof i22.MatChipsModule, typeof i23.MatMenuModule, typeof i5.MatIconModule, typeof i25.MatTableModule, typeof i26.MatButtonToggleModule, typeof i27.MatAutocompleteModule, typeof i28.MatProgressBarModule, typeof i29.MatSlideToggleModule, typeof i30.MatDividerModule, typeof i31.MatFormFieldModule, typeof i32.MatInputModule, typeof i33.MatToolbarModule, typeof i29.MatSlideToggleModule, typeof i34.TranslateModule, typeof i35.MatSidenavModule, typeof i36.MatDatepickerModule, typeof i37.MatNativeDateModule, typeof FileDownloaderModule], [typeof HttpRequestServicesDemoComponent]>;
3315
+ static ɵinj: i0.ɵɵInjectorDeclaration<HttpRequestManagerModule>;
2199
3316
  }
2200
3317
 
2201
- declare const defaultDisplayRules: DisplayRule[];
3318
+ declare class StoreStateSignalsDemoComponent implements OnInit {
3319
+ private stateManager;
3320
+ stateJson: i0.WritableSignal<string>;
3321
+ historyLength: i0.WritableSignal<number>;
3322
+ history: i0.WritableSignal<number[]>;
3323
+ ngOnInit(): void;
3324
+ private updateSignals;
3325
+ increment(): void;
3326
+ decrement(): void;
3327
+ reset(): void;
3328
+ addToHistory(): void;
3329
+ static ɵfac: i0.ɵɵFactoryDeclaration<StoreStateSignalsDemoComponent, never>;
3330
+ static ɵcmp: i0.ɵɵComponentDeclaration<StoreStateSignalsDemoComponent, "app-store-state-signals-demo", never, {}, {}, never, never, false, never>;
3331
+ }
2202
3332
 
2203
- export { Action, ApiRequest, AppService, AsymmetricalEncryptionService, BatchOptions, BatchRequestResultModel, BatchResult, CONFIG_SETTINGS_TOKEN, ChannelType, CommunicationMessage, ConfigHTTPOptions, ConfigOptions, DataType, DatabaseManagerService, DatabaseStorage, DbService, DisplayConfig, DisplayRule, ErrorDisplaySettings, GlobalStoreOptions, HTTPManagerService, HTTPManagerSignalsService, HTTPManagerStateService, HeadersService, HttpRequestManagerModule, LocalStorageManagerService, LocalStorageOptions, LocalStorageSignalsManagerService, LoggerService, MessageContent, MessageDisplayRouterService, NotificationMessage, PathQueryService, PublicMessage, Random, RandomHSLColor, RandomHexColor, RandomNumber, RandomNumbers, RandomNumbersUnique, RandomPaletteColor, RandomSignature, RandomStr, RandomVisibleColor, RequestErrorInterceptor, RequestHeadersInterceptor, RequestOptions, RequestService, RequestSignalsService, RetryOptions, SettingOptions, Slide, SnackbarStrategy, StateMessage, StateStorageOptions, StorageData, StorageOption, StorageType, StoreStateManagerService, StoreStateManagerSignalsService, StreamType, SymmetricalEncryptionService, TableSchemaDef, UUID, UUID_STR, UserData, UtilsService, WSOptions, WebSocketMessageService, WithCredentialsInterceptor, calculateBatchProgress, countdown, createChannelName, defaultDisplayRules, delayedRetry, isErrorState, isPendingState, isSuccessState, requestPolling, requestStreaming, streamAI, streamAuto, streamEvents, streamJSON, streamNDJSON };
2204
- export type { APIStateManagerData, ActionInterface, ApiRequestInterface, BatchErrorState, BatchOptionsInterface, BatchPendingState, BatchProgress, BatchRequestResultInterface, BatchRequestState, BatchResultInterface, BatchSuccessState, CommunicationMessageInterface, ConfigHTTPOptionsInterface, ConfigOptionsInterface, DatabaseStorageInterface, DisplayConfigInterface, DisplayRuleInterface, DisplayType, ErrorDisplaySettingsInterface, GlobalStoreOptionsInterface, IDisplayStrategy, LocalStorageOptionsInterface, MessageContentInterface, NotificationMessageInterface, ParsingResult, PublicMessageInterface, RequestOptionsInterface, RetryOptionsInterface, SettingOptionsInterface, SlideInterface, State, StateMessageInterface, StateStorageOptionsInterface, StateStoreManagerData$1 as StateStoreManagerData, StorageDataInterface, StorageOptionInterface, StreamConfig, StreamEvent, TableSchemaDefInterface, UserDataInterface, WSOptionsInterface };
3333
+ export { ApiRequest, AppService, AsymmetricalEncryptionService, CONFIG_SETTINGS_TOKEN, ChannelType, ConfigHTTPOptions, ConfigOptions, DataType, DatabaseDataDemoComponent, DatabaseManagerService, DatabaseStorage, DbService, ErrorDisplaySettings, GlobalStoreOptions, HTTPManagerService, HTTPManagerSignalsService, HTTPManagerStateService, HeadersService, HttpRequestManagerModule, HttpRequestServicesDemoComponent, LocalStorageDemoComponent, LocalStorageManagerService, LocalStorageOptions, LocalStorageSignalsDemoComponent, LocalStorageSignalsManagerService, LoggerService, NotificationMessage, PathQueryService, PublicMessage, Random, RandomHSLColor, RandomHexColor, RandomNumber, RandomNumbers, RandomNumbersUnique, RandomPaletteColor, RandomSignature, RandomStr, RandomVisibleColor, RequestErrorInterceptor, RequestHeadersInterceptor, RequestManagerDemoComponent, RequestManagerStateDemoComponent, RequestOptions, RequestService, RequestSignalsService, RetryOptions, SettingOptions, StateMessage, StateStorageOptions, StorageData, StorageOption, StorageType, StoreStateManagerService, StoreStateManagerSignalsService, StoreStateSignalsDemoComponent, StreamType, SymmetricalEncryptionService, TableSchemaDef, UUID, UUID_STR, UserData, UtilsService, WSOptions, WebSocketMessageService, WithCredentialsInterceptor, countdown, createChannelName, delayedRetry, requestPolling, requestStreaming, streamAI, streamAuto, streamEvents, streamJSON, streamNDJSON };
3334
+ export type { APIStateManagerData, ApiRequestInterface, ConfigHTTPOptionsInterface, ConfigOptionsInterface, DatabaseStorageInterface, ErrorDisplaySettingsInterface, GlobalStoreOptionsInterface, LocalStorageOptionsInterface, NotificationMessageInterface, ParsingResult, PublicMessageInterface, RequestOptionsInterface, RetryOptionsInterface, SettingOptionsInterface, State, StateMessageInterface, StateStorageOptionsInterface, StateStoreManagerData$1 as StateStoreManagerData, StorageDataInterface, StorageOptionInterface, StreamConfig, StreamEvent, TableRecord, TableSchemaDefInterface, UserDataInterface, WSOptionsInterface };