http-request-manager 18.11.9 → 18.11.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "http-request-manager",
3
- "version": "18.11.9",
3
+ "version": "18.11.10",
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",
@@ -1078,6 +1078,23 @@ declare class BatchResult<T = any> implements BatchResultInterface<T> {
1078
1078
  static adapt<T>(item?: any): BatchResult<T>;
1079
1079
  }
1080
1080
 
1081
+ interface BatchRequestResultInterface<U> {
1082
+ request: any;
1083
+ data: U | null;
1084
+ index: number;
1085
+ status: 'success' | 'error';
1086
+ error?: any;
1087
+ }
1088
+ declare class BatchRequestResultModel<U> implements BatchRequestResultInterface<U> {
1089
+ request: any;
1090
+ data: U | null;
1091
+ index: number;
1092
+ status: 'success' | 'error';
1093
+ error?: any;
1094
+ constructor(request?: any, data?: U | null, index?: number, status?: 'success' | 'error', error?: any);
1095
+ static adapt<U>(item?: any): BatchRequestResultModel<U>;
1096
+ }
1097
+
1081
1098
  type BatchRequestState<T> = BatchPendingState | BatchSuccessState<T> | BatchErrorState;
1082
1099
  interface BatchPendingState {
1083
1100
  index: number;
@@ -1477,23 +1494,23 @@ declare class HTTPManagerService<T> extends RequestService {
1477
1494
  * Execute multiple HTTP requests with configurable execution strategy
1478
1495
  * @param requests Array of ApiRequest configurations
1479
1496
  * @param options Optional batch configuration (all properties optional)
1480
- * @returns Observable emitting array of data in the order of requests provided
1497
+ * @returns Observable emitting array of wrapped results in the order of requests provided
1481
1498
  */
1482
- getBatchRequests<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
1499
+ getBatchRequests<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestResultModel<U>[]>;
1483
1500
  /**
1484
1501
  * Execute requests sequentially (one at a time, in order)
1485
1502
  * @param requests Array of ApiRequest configurations
1486
1503
  * @param options Optional batch configuration
1487
- * @returns Observable emitting array of data when all requests complete
1504
+ * @returns Observable emitting array of wrapped results when all requests complete
1488
1505
  */
1489
- getSequentialRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
1506
+ getSequentialRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestResultModel<U>[]>;
1490
1507
  /**
1491
1508
  * Execute requests in parallel with concurrency control
1492
1509
  * @param requests Array of ApiRequest configurations
1493
1510
  * @param options Optional batch configuration with concurrency limit
1494
- * @returns Observable emitting array of data when all requests complete
1511
+ * @returns Observable emitting array of wrapped results when all requests complete
1495
1512
  */
1496
- getParallelRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
1513
+ getParallelRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestResultModel<U>[]>;
1497
1514
  /**
1498
1515
  * Execute multiple HTTP requests and emit individual state changes in real-time
1499
1516
  * @param requests Array of ApiRequest configurations
@@ -1668,21 +1685,21 @@ declare class HTTPManagerSignalsService<T> extends RequestSignalsService {
1668
1685
  * @param options Optional batch configuration (all properties optional)
1669
1686
  * @returns Observable emitting array of data in the order of requests provided
1670
1687
  */
1671
- getBatchRequests<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
1688
+ getBatchRequests<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestResultModel<U>[]>;
1672
1689
  /**
1673
1690
  * Execute requests sequentially (one at a time, in order)
1674
1691
  * @param requests Array of ApiRequest configurations
1675
1692
  * @param options Optional batch configuration
1676
- * @returns Observable emitting array of data when all requests complete
1693
+ * @returns Observable emitting array of wrapped results when all requests complete
1677
1694
  */
1678
- getSequentialRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
1695
+ getSequentialRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestResultModel<U>[]>;
1679
1696
  /**
1680
1697
  * Execute requests in parallel with concurrency control
1681
1698
  * @param requests Array of ApiRequest configurations
1682
1699
  * @param options Optional batch configuration with concurrency limit
1683
- * @returns Observable emitting array of data when all requests complete
1700
+ * @returns Observable emitting array of wrapped results when all requests complete
1684
1701
  */
1685
- getParallelRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
1702
+ getParallelRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<BatchRequestResultModel<U>[]>;
1686
1703
  /**
1687
1704
  * Execute multiple HTTP requests and emit individual state changes in real-time
1688
1705
  * @param requests Array of ApiRequest configurations
@@ -3542,5 +3559,5 @@ declare class StoreStateSignalsDemoComponent implements OnInit {
3542
3559
  static ɵcmp: i0.ɵɵComponentDeclaration<StoreStateSignalsDemoComponent, "app-store-state-signals-demo", never, {}, {}, never, never, false, never>;
3543
3560
  }
3544
3561
 
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 };
3562
+ export { ApiRequest, AppService, AsymmetricalEncryptionService, BatchOptions, BatchRequestResultModel, 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 };
3563
+ export type { APIStateManagerData, ApiRequestInterface, BatchErrorState, BatchOptionsInterface, BatchPendingState, BatchProgress, BatchRequestResultInterface, 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