http-request-manager 18.10.2 → 18.11.8

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.
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "http-request-manager",
3
- "version": "18.10.2",
3
+ "version": "18.11.8",
4
4
  "homepage": "https://wavecoders.ca",
5
5
  "author": "Mike Bonifacio <wavecoders@gmail.com> (http://wavecoders@gmail.com/)",
6
6
  "description": "This is an Angular Module containing Components/Services using Material",
@@ -7,7 +7,7 @@ import { HttpClient, HttpHeaders, HttpInterceptor, HttpRequest, HttpHandler, Htt
7
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 i34 from '@ngx-translate/core';
10
+ import * as i35 from '@ngx-translate/core';
11
11
  import { TranslateService } from '@ngx-translate/core';
12
12
  import * as _angular_forms from '@angular/forms';
13
13
  import { FormArray, FormBuilder, FormControl } from '@angular/forms';
@@ -23,17 +23,18 @@ import * as i25 from '@angular/material/table';
23
23
  import * as i26 from '@angular/material/button-toggle';
24
24
  import * as i27 from '@angular/material/autocomplete';
25
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
26
  import * as i6 from '@angular/material/progress-spinner';
36
27
  import { ProgressSpinnerMode } from '@angular/material/progress-spinner';
28
+ import * as i30 from '@angular/material/slide-toggle';
29
+ import * as i31 from '@angular/material/divider';
30
+ import * as i32 from '@angular/material/form-field';
31
+ import * as i33 from '@angular/material/input';
32
+ import * as i34 from '@angular/material/toolbar';
33
+ import * as i36 from '@angular/material/sidenav';
34
+ import * as i37 from '@angular/material/datepicker';
35
+ import * as i38 from '@angular/material/core';
36
+ import { ThemePalette } from '@angular/material/core';
37
+ import * as i39 from '@angular/material/card';
37
38
 
38
39
  declare enum StorageType {
39
40
  GLOBAL = 0,
@@ -1041,6 +1042,77 @@ declare class RetryOptions implements RetryOptionsInterface {
1041
1042
  static adapt(item?: any): RetryOptions;
1042
1043
  }
1043
1044
 
1045
+ interface BatchOptionsInterface {
1046
+ mode?: 'sequential' | 'parallel';
1047
+ stopOnError?: boolean;
1048
+ concurrency?: number;
1049
+ ignoreErrors?: boolean;
1050
+ logErrors?: boolean;
1051
+ }
1052
+ declare class BatchOptions implements BatchOptionsInterface {
1053
+ mode: 'sequential' | 'parallel';
1054
+ stopOnError: boolean;
1055
+ concurrency: number;
1056
+ ignoreErrors: boolean;
1057
+ logErrors: boolean;
1058
+ constructor(mode?: 'sequential' | 'parallel', stopOnError?: boolean, concurrency?: number, ignoreErrors?: boolean, logErrors?: boolean);
1059
+ static adapt(item?: any): BatchOptions;
1060
+ }
1061
+
1062
+ interface BatchResultInterface<T = any> {
1063
+ request: any;
1064
+ success: boolean;
1065
+ data?: T;
1066
+ error?: any;
1067
+ index: number;
1068
+ timestamp: number;
1069
+ }
1070
+ declare class BatchResult<T = any> implements BatchResultInterface<T> {
1071
+ request: any;
1072
+ success: boolean;
1073
+ data?: T | undefined;
1074
+ error?: any;
1075
+ index: number;
1076
+ timestamp: number;
1077
+ constructor(request: any, success: boolean, data?: T | undefined, error?: any, index?: number, timestamp?: number);
1078
+ static adapt<T>(item?: any): BatchResult<T>;
1079
+ }
1080
+
1081
+ type BatchRequestState<T> = BatchPendingState | BatchSuccessState<T> | BatchErrorState;
1082
+ interface BatchPendingState {
1083
+ index: number;
1084
+ request: any;
1085
+ isPending: true;
1086
+ data?: undefined;
1087
+ error?: undefined;
1088
+ }
1089
+ interface BatchSuccessState<T> {
1090
+ index: number;
1091
+ request: any;
1092
+ isPending: false;
1093
+ data: T;
1094
+ error?: undefined;
1095
+ }
1096
+ interface BatchErrorState {
1097
+ index: number;
1098
+ request: any;
1099
+ isPending: false;
1100
+ data?: undefined;
1101
+ error: any;
1102
+ }
1103
+ declare function isPendingState<T>(state: BatchRequestState<T>): state is BatchPendingState;
1104
+ declare function isSuccessState<T>(state: BatchRequestState<T>): state is BatchSuccessState<T>;
1105
+ declare function isErrorState<T>(state: BatchRequestState<T>): state is BatchErrorState;
1106
+
1107
+ interface BatchProgress {
1108
+ total: number;
1109
+ pending: number;
1110
+ completed: number;
1111
+ failed: number;
1112
+ percent: number;
1113
+ }
1114
+ declare function calculateBatchProgress<T>(states: BatchRequestState<T>[]): BatchProgress;
1115
+
1044
1116
  declare enum DataType {
1045
1117
  ANY = 0,
1046
1118
  ARRAY = 1,
@@ -1401,11 +1473,49 @@ declare class HTTPManagerService<T> extends RequestService {
1401
1473
  private handleErrorWithSnackBar;
1402
1474
  private stopPolling;
1403
1475
  private defineReqOptions;
1476
+ /**
1477
+ * Execute multiple HTTP requests with configurable execution strategy
1478
+ * @param requests Array of ApiRequest configurations
1479
+ * @param options Optional batch configuration (all properties optional)
1480
+ * @returns Observable emitting array of data in the order of requests provided
1481
+ */
1482
+ getBatchRequests<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
1483
+ /**
1484
+ * Execute requests sequentially (one at a time, in order)
1485
+ * @param requests Array of ApiRequest configurations
1486
+ * @param options Optional batch configuration
1487
+ * @returns Observable emitting array of data when all requests complete
1488
+ */
1489
+ getSequentialRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
1490
+ /**
1491
+ * Execute requests in parallel with concurrency control
1492
+ * @param requests Array of ApiRequest configurations
1493
+ * @param options Optional batch configuration with concurrency limit
1494
+ * @returns Observable emitting array of data when all requests complete
1495
+ */
1496
+ getParallelRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
1497
+ /**
1498
+ * Execute multiple HTTP requests and emit individual state changes in real-time
1499
+ * @param requests Array of ApiRequest configurations
1500
+ * @param options Optional batch configuration (all properties optional)
1501
+ * @returns Observable stream of individual request states
1502
+ */
1503
+ getBatchRequestsStream<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestState<U>>;
1504
+ /**
1505
+ * Execute requests sequentially and emit state changes
1506
+ */
1507
+ private getSequentialStream;
1508
+ /**
1509
+ * Execute requests in parallel and emit state changes
1510
+ */
1511
+ private getParallelStream;
1512
+ private handleSequentialError;
1513
+ private handleParallelError;
1404
1514
  static ɵfac: i0.ɵɵFactoryDeclaration<HTTPManagerService<any>, [{ optional: true; }]>;
1405
1515
  static ɵprov: i0.ɵɵInjectableDeclaration<HTTPManagerService<any>>;
1406
1516
  }
1407
1517
 
1408
- declare class RequestSignalsService {
1518
+ declare class RequestSignalsService extends WebsocketService {
1409
1519
  private http;
1410
1520
  private pathQueryService;
1411
1521
  private headersService;
@@ -1413,13 +1523,20 @@ declare class RequestSignalsService {
1413
1523
  progress: i0.WritableSignal<number>;
1414
1524
  isIdle: i0.Signal<boolean>;
1415
1525
  getRecordRequest<T>(options: ApiRequest): Observable<T>;
1526
+ getRecordRequest<T>(options: ApiRequest & {
1527
+ stream: true;
1528
+ }): Observable<T[]>;
1416
1529
  createRecordRequest<T>(options: ApiRequest, data: any): Observable<T>;
1530
+ createRecordRequest<T>(options: ApiRequest & {
1531
+ stream: true;
1532
+ }, data: any): Observable<T[]>;
1417
1533
  updateRecordRequest<T>(options: ApiRequest, data: any): Observable<T>;
1418
1534
  deleteRecordRequest<T>(options: ApiRequest): Observable<T>;
1419
1535
  private buildUrlPath;
1420
1536
  private buildHeaders;
1421
1537
  private buildCombinedHeaders;
1422
1538
  private request;
1539
+ private requestStreamingOperator;
1423
1540
  downloadFileRequest(options: ApiRequest): Observable<any>;
1424
1541
  private handleFinalize;
1425
1542
  private downloadFile;
@@ -1434,12 +1551,101 @@ declare class HTTPManagerSignalsService<T> extends RequestSignalsService {
1434
1551
  toastMessage: ToastMessageDisplayService;
1435
1552
  ng_injector: Injector;
1436
1553
  objectMergerService: ObjectMergerService;
1554
+ wsManager: WebSocketManagerService;
1555
+ messageTracker: MessageTrackerService;
1556
+ connectionStatus$: Observable<boolean>;
1557
+ messages$: Observable<any>;
1558
+ subscribedChannels$: Observable<Set<string>>;
1437
1559
  countdown: i0.WritableSignal<number>;
1438
1560
  error: i0.WritableSignal<string | boolean>;
1439
1561
  data: i0.WritableSignal<any>;
1440
1562
  private polling$;
1441
1563
  config: ApiRequest;
1442
1564
  constructor(configOptions?: ConfigOptions | undefined);
1565
+ /**
1566
+ * Connect to WebSocket server
1567
+ */
1568
+ connect(options: any, jwtToken: string): void;
1569
+ /**
1570
+ * Disconnect from WebSocket server
1571
+ */
1572
+ disconnect(): void;
1573
+ /**
1574
+ * Subscribe to a channel
1575
+ */
1576
+ subscribeToChannel(channel: string, userData?: any): void;
1577
+ /**
1578
+ * Subscribe to multiple channels
1579
+ */
1580
+ subscribeToChannels(channels: string[], userData?: any): void;
1581
+ /**
1582
+ * Unsubscribe from a channel
1583
+ */
1584
+ unsubscribeFromChannel(channel: string): void;
1585
+ /**
1586
+ * Get currently subscribed channels
1587
+ */
1588
+ getSubscribedChannels(): Set<string>;
1589
+ /**
1590
+ * Send broadcast message
1591
+ */
1592
+ sendBroadcast(content: any): void;
1593
+ /**
1594
+ * Send message in channel (state manager message)
1595
+ */
1596
+ sendMessageInChannel(channel: string, content: any): void;
1597
+ /**
1598
+ * Send channel message
1599
+ */
1600
+ sendChannelMessage(channel: string, content: any): void;
1601
+ /**
1602
+ * Send message to multiple channels
1603
+ */
1604
+ sendChannelMessageToChannels(channels: string[], content: any): void;
1605
+ /**
1606
+ * Send message to user
1607
+ */
1608
+ sendMessageToUser(user: string, content: any): void;
1609
+ /**
1610
+ * Get all channels
1611
+ */
1612
+ getAllChannels(): void;
1613
+ /**
1614
+ * Create channel
1615
+ */
1616
+ createChannel(channel: string): void;
1617
+ /**
1618
+ * Delete channel
1619
+ */
1620
+ deleteChannel(channel: string): void;
1621
+ /**
1622
+ * Get users in channel
1623
+ */
1624
+ getUsersInChannel(channel: string): void;
1625
+ /**
1626
+ * Create notification channel
1627
+ */
1628
+ createNotificationChannel(channel: string): void;
1629
+ /**
1630
+ * Get notification channels
1631
+ */
1632
+ getNotificationChannels(): void;
1633
+ /**
1634
+ * Get today's notification channels
1635
+ */
1636
+ getTodaysNotificationChannels(): void;
1637
+ /**
1638
+ * Subscribe to notification channel
1639
+ */
1640
+ subscribeToNotificationChannel(channel: string, options?: any, user?: any): void;
1641
+ /**
1642
+ * Unsubscribe from notification channel
1643
+ */
1644
+ unsubscribeFromNotificationChannel(channel: string): void;
1645
+ /**
1646
+ * Send notification to channel
1647
+ */
1648
+ sendNotification(channel: string, content: any): void;
1443
1649
  getRequest<T>(options?: ApiRequest, params?: any[]): Observable<T>;
1444
1650
  postRequest<T extends {
1445
1651
  id?: number | string;
@@ -1456,6 +1662,44 @@ declare class HTTPManagerSignalsService<T> extends RequestSignalsService {
1456
1662
  private handleErrorWithSnackBar;
1457
1663
  private stopPolling;
1458
1664
  private defineReqOptions;
1665
+ /**
1666
+ * Execute multiple HTTP requests with configurable execution strategy
1667
+ * @param requests Array of ApiRequest configurations
1668
+ * @param options Optional batch configuration (all properties optional)
1669
+ * @returns Observable emitting array of data in the order of requests provided
1670
+ */
1671
+ getBatchRequests<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
1672
+ /**
1673
+ * Execute requests sequentially (one at a time, in order)
1674
+ * @param requests Array of ApiRequest configurations
1675
+ * @param options Optional batch configuration
1676
+ * @returns Observable emitting array of data when all requests complete
1677
+ */
1678
+ getSequentialRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
1679
+ /**
1680
+ * Execute requests in parallel with concurrency control
1681
+ * @param requests Array of ApiRequest configurations
1682
+ * @param options Optional batch configuration with concurrency limit
1683
+ * @returns Observable emitting array of data when all requests complete
1684
+ */
1685
+ getParallelRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
1686
+ /**
1687
+ * Execute multiple HTTP requests and emit individual state changes in real-time
1688
+ * @param requests Array of ApiRequest configurations
1689
+ * @param options Optional batch configuration (all properties optional)
1690
+ * @returns Observable stream of individual request states
1691
+ */
1692
+ getBatchRequestsStream<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestState<U>>;
1693
+ /**
1694
+ * Execute requests sequentially and emit state changes
1695
+ */
1696
+ private getSequentialStream;
1697
+ /**
1698
+ * Execute requests in parallel and emit state changes
1699
+ */
1700
+ private getParallelStream;
1701
+ private handleSequentialError;
1702
+ private handleParallelError;
1459
1703
  static ɵfac: i0.ɵɵFactoryDeclaration<HTTPManagerSignalsService<any>, [{ optional: true; }]>;
1460
1704
  static ɵprov: i0.ɵɵInjectableDeclaration<HTTPManagerSignalsService<any>>;
1461
1705
  }
@@ -1656,9 +1900,9 @@ declare class StateStorageOptions implements StateStorageOptionsInterface {
1656
1900
  static adapt(item?: any): StateStorageOptions;
1657
1901
  }
1658
1902
 
1659
- interface StateStoreManagerData<T> {
1903
+ interface StateStoreManagerData$1<T> {
1660
1904
  }
1661
- declare class StoreStateManagerService<T extends object = StateStoreManagerData<any>> extends ComponentStore<T> {
1905
+ declare class StoreStateManagerService<T extends object = StateStoreManagerData$1<any>> extends ComponentStore<T> {
1662
1906
  private options;
1663
1907
  localStorageManagerService: LocalStorageManagerService;
1664
1908
  subscriptions: Subscription;
@@ -1675,6 +1919,25 @@ declare class StoreStateManagerService<T extends object = StateStoreManagerData<
1675
1919
  static ɵprov: i0.ɵɵInjectableDeclaration<StoreStateManagerService<any>>;
1676
1920
  }
1677
1921
 
1922
+ interface StateStoreManagerData<T> {
1923
+ }
1924
+ declare class StoreStateManagerSignalsService<T extends object = StateStoreManagerData<any>> {
1925
+ private localStorageManagerService;
1926
+ private state;
1927
+ private isRestoring;
1928
+ private settings;
1929
+ readonly data: i0.Signal<T | null>;
1930
+ readonly transformedData: i0.Signal<any>;
1931
+ constructor();
1932
+ init(options: StateStorageOptions): void;
1933
+ restoreState(): void;
1934
+ updateState(state: Partial<T>): void;
1935
+ updateData(data: Partial<T>): void;
1936
+ resetState(): void;
1937
+ static ɵfac: i0.ɵɵFactoryDeclaration<StoreStateManagerSignalsService<any>, never>;
1938
+ static ɵprov: i0.ɵɵInjectableDeclaration<StoreStateManagerSignalsService<any>>;
1939
+ }
1940
+
1678
1941
  declare class HeadersService {
1679
1942
  headers: {};
1680
1943
  generateHeaders(headers?: Record<string, string>): {
@@ -2185,6 +2448,26 @@ declare class RequestManagerDemoComponent implements OnInit {
2185
2448
  DELETE$?: Observable<any>;
2186
2449
  STREAM$?: Observable<any>;
2187
2450
  STREAM_AI$?: Observable<any>;
2451
+ parallelBatch$?: Observable<any[]>;
2452
+ sequentialBatch$?: Observable<any[]>;
2453
+ parallelExecutionTime?: number;
2454
+ sequentialExecutionTime?: number;
2455
+ parallelResults?: any[];
2456
+ sequentialResults?: any[];
2457
+ isParallelLoading: boolean;
2458
+ isSequentialLoading: boolean;
2459
+ parallelError?: string;
2460
+ sequentialError?: string;
2461
+ parallelBatchStates: (BatchRequestState<any> | undefined)[];
2462
+ sequentialBatchStates: (BatchRequestState<any> | undefined)[];
2463
+ streamBatchStates: (BatchRequestState<any> | undefined)[];
2464
+ streamProgress?: BatchProgress;
2465
+ streamExecutionTime?: number;
2466
+ isStreamLoading: boolean;
2467
+ streamError?: string;
2468
+ get filteredParallelStates(): BatchRequestState<any>[];
2469
+ get filteredSequentialStates(): BatchRequestState<any>[];
2470
+ get filteredStreamStates(): BatchRequestState<any>[];
2188
2471
  requestParams: {
2189
2472
  GET: ApiRequest;
2190
2473
  POST: ApiRequest;
@@ -2267,6 +2550,50 @@ declare class RequestManagerDemoComponent implements OnInit {
2267
2550
  onDownloadFailed(err: string): void;
2268
2551
  errorHandling(err: any, type: string): void;
2269
2552
  onSelectAIType(type: number): void;
2553
+ /**
2554
+ * Execute parallel batch request - fetch 5 users from JSONPlaceholder with individual states
2555
+ */
2556
+ onExecuteParallelBatch(): void;
2557
+ /**
2558
+ * Execute sequential batch request - fetch 5 todos from JSONPlaceholder with individual states
2559
+ */
2560
+ onExecuteSequentialBatch(): void;
2561
+ /**
2562
+ * Execute stream batch request - fetch 5 posts with real-time state updates
2563
+ */
2564
+ onExecuteStreamBatch(): void;
2565
+ /**
2566
+ * Type guard for pending state
2567
+ */
2568
+ isPendingState(state: BatchRequestState<any>): boolean;
2569
+ /**
2570
+ * Type guard for success state
2571
+ */
2572
+ isSuccessState(state: BatchRequestState<any>): boolean;
2573
+ /**
2574
+ * Type guard for error state
2575
+ */
2576
+ isErrorState(state: BatchRequestState<any>): boolean;
2577
+ /**
2578
+ * Helper to create batch requests from IDs
2579
+ */
2580
+ private createBatchRequests;
2581
+ /**
2582
+ * Check if result is successful (not undefined)
2583
+ */
2584
+ isSuccess(result: any): boolean;
2585
+ /**
2586
+ * Format execution time for display
2587
+ */
2588
+ formatTime(ms: number): string;
2589
+ /**
2590
+ * Get success count from results array
2591
+ */
2592
+ getSuccessCount(results?: any[]): number;
2593
+ /**
2594
+ * Get failure count from results array
2595
+ */
2596
+ getFailureCount(results?: any[]): number;
2270
2597
  static ɵfac: i0.ɵɵFactoryDeclaration<RequestManagerDemoComponent, never>;
2271
2598
  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>;
2272
2599
  }
@@ -3196,9 +3523,24 @@ declare class FileDownloaderModule {
3196
3523
  declare class HttpRequestManagerModule {
3197
3524
  static forRoot(config?: ConfigOptions): ModuleWithProviders<HttpRequestManagerModule>;
3198
3525
  static ɵfac: i0.ɵɵFactoryDeclaration<HttpRequestManagerModule, never>;
3199
- 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]>;
3526
+ 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 i6.MatProgressSpinnerModule, typeof i30.MatSlideToggleModule, typeof i31.MatDividerModule, typeof i32.MatFormFieldModule, typeof i33.MatInputModule, typeof i34.MatToolbarModule, typeof i30.MatSlideToggleModule, typeof i35.TranslateModule, typeof i36.MatSidenavModule, typeof i37.MatDatepickerModule, typeof i38.MatNativeDateModule, typeof i39.MatCardModule, typeof FileDownloaderModule], [typeof HttpRequestServicesDemoComponent]>;
3200
3527
  static ɵinj: i0.ɵɵInjectorDeclaration<HttpRequestManagerModule>;
3201
3528
  }
3202
3529
 
3203
- 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, 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, StreamType, SymmetricalEncryptionService, TableSchemaDef, UUID, UUID_STR, UserData, UtilsService, WSOptions, WebSocketMessageService, WithCredentialsInterceptor, countdown, createChannelName, delayedRetry, requestPolling, requestStreaming, streamAI, streamAuto, streamEvents, streamJSON, streamNDJSON };
3204
- export type { APIStateManagerData, ApiRequestInterface, ConfigHTTPOptionsInterface, ConfigOptionsInterface, DatabaseStorageInterface, ErrorDisplaySettingsInterface, GlobalStoreOptionsInterface, LocalStorageOptionsInterface, NotificationMessageInterface, ParsingResult, PublicMessageInterface, RequestOptionsInterface, RetryOptionsInterface, SettingOptionsInterface, State, StateMessageInterface, StateStorageOptionsInterface, StateStoreManagerData, StorageDataInterface, StorageOptionInterface, StreamConfig, StreamEvent, TableRecord, TableSchemaDefInterface, UserDataInterface, WSOptionsInterface };
3530
+ declare class StoreStateSignalsDemoComponent implements OnInit {
3531
+ private stateManager;
3532
+ stateJson: i0.WritableSignal<string>;
3533
+ historyLength: i0.WritableSignal<number>;
3534
+ history: i0.WritableSignal<number[]>;
3535
+ ngOnInit(): void;
3536
+ private updateSignals;
3537
+ increment(): void;
3538
+ decrement(): void;
3539
+ reset(): void;
3540
+ addToHistory(): void;
3541
+ static ɵfac: i0.ɵɵFactoryDeclaration<StoreStateSignalsDemoComponent, never>;
3542
+ static ɵcmp: i0.ɵɵComponentDeclaration<StoreStateSignalsDemoComponent, "app-store-state-signals-demo", never, {}, {}, never, never, false, never>;
3543
+ }
3544
+
3545
+ 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, 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, calculateBatchProgress, countdown, createChannelName, delayedRetry, isErrorState, isPendingState, isSuccessState, requestPolling, requestStreaming, streamAI, streamAuto, streamEvents, streamJSON, streamNDJSON };
3546
+ export type { APIStateManagerData, ApiRequestInterface, BatchErrorState, BatchOptionsInterface, BatchPendingState, BatchProgress, BatchRequestState, BatchResultInterface, BatchSuccessState, 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 };
Binary file