http-request-manager 18.11.21 → 18.11.23

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.21",
3
+ "version": "18.11.23",
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",
@@ -201,6 +201,9 @@ interface ApiRequestInterface {
201
201
  stream?: boolean;
202
202
  streamType?: StreamType;
203
203
  displayError?: boolean;
204
+ displaySuccess?: boolean;
205
+ successMessage?: string;
206
+ errorMessage?: string;
204
207
  saveAs?: string;
205
208
  fileContentHeader?: string;
206
209
  ws?: WSOptions;
@@ -217,11 +220,14 @@ declare class ApiRequest implements ApiRequestInterface {
217
220
  stream?: boolean | undefined;
218
221
  streamType?: StreamType | undefined;
219
222
  displayError?: boolean | undefined;
223
+ displaySuccess?: boolean | undefined;
224
+ successMessage?: string | undefined;
225
+ errorMessage?: string | undefined;
220
226
  saveAs?: string | undefined;
221
227
  fileContentHeader?: string | undefined;
222
228
  ws?: WSOptions | undefined;
223
229
  env?: string | undefined;
224
- constructor(server?: string, path?: any[] | undefined, headers?: any, adapter?: any, mapper?: any, polling?: number | undefined, retry?: RetryOptions | undefined, stream?: boolean | undefined, streamType?: StreamType | undefined, displayError?: boolean | undefined, saveAs?: string | undefined, fileContentHeader?: string | undefined, ws?: WSOptions | undefined, env?: string | undefined);
230
+ constructor(server?: string, path?: any[] | undefined, headers?: any, adapter?: any, mapper?: any, polling?: number | undefined, retry?: RetryOptions | undefined, stream?: boolean | undefined, streamType?: StreamType | undefined, displayError?: boolean | undefined, displaySuccess?: boolean | undefined, successMessage?: string | undefined, errorMessage?: string | undefined, saveAs?: string | undefined, fileContentHeader?: string | undefined, ws?: WSOptions | undefined, env?: string | undefined);
225
231
  static adapt(item?: any): ApiRequest;
226
232
  }
227
233
 
@@ -1048,6 +1054,8 @@ interface BatchOptionsInterface {
1048
1054
  concurrency?: number;
1049
1055
  ignoreErrors?: boolean;
1050
1056
  logErrors?: boolean;
1057
+ displaySuccess?: boolean;
1058
+ displayError?: boolean;
1051
1059
  }
1052
1060
  declare class BatchOptions implements BatchOptionsInterface {
1053
1061
  mode: 'sequential' | 'parallel';
@@ -1055,7 +1063,9 @@ declare class BatchOptions implements BatchOptionsInterface {
1055
1063
  concurrency: number;
1056
1064
  ignoreErrors: boolean;
1057
1065
  logErrors: boolean;
1058
- constructor(mode?: 'sequential' | 'parallel', stopOnError?: boolean, concurrency?: number, ignoreErrors?: boolean, logErrors?: boolean);
1066
+ displaySuccess?: boolean | undefined;
1067
+ displayError?: boolean | undefined;
1068
+ constructor(mode?: 'sequential' | 'parallel', stopOnError?: boolean, concurrency?: number, ignoreErrors?: boolean, logErrors?: boolean, displaySuccess?: boolean | undefined, displayError?: boolean | undefined);
1059
1069
  static adapt(item?: any): BatchOptions;
1060
1070
  }
1061
1071
 
@@ -1127,6 +1137,7 @@ interface ConfigHTTPOptionsInterface {
1127
1137
  retry?: RetryOptions;
1128
1138
  stream?: boolean;
1129
1139
  displayError?: boolean;
1140
+ displaySuccess?: boolean;
1130
1141
  }
1131
1142
  declare class ConfigHTTPOptions implements ConfigHTTPOptionsInterface {
1132
1143
  server: string;
@@ -1136,7 +1147,8 @@ declare class ConfigHTTPOptions implements ConfigHTTPOptionsInterface {
1136
1147
  retry?: RetryOptions | undefined;
1137
1148
  stream?: boolean | undefined;
1138
1149
  displayError?: boolean | undefined;
1139
- constructor(server?: string, path?: any[] | undefined, headers?: any, polling?: number | undefined, retry?: RetryOptions | undefined, stream?: boolean | undefined, displayError?: boolean | undefined);
1150
+ displaySuccess?: boolean | undefined;
1151
+ constructor(server?: string, path?: any[] | undefined, headers?: any, polling?: number | undefined, retry?: RetryOptions | undefined, stream?: boolean | undefined, displayError?: boolean | undefined, displaySuccess?: boolean | undefined);
1140
1152
  static adapt(item?: any): ConfigHTTPOptions;
1141
1153
  }
1142
1154
 
@@ -1471,6 +1483,7 @@ declare class HTTPManagerService<T> extends RequestService {
1471
1483
  private prepareRequestData;
1472
1484
  private handleError;
1473
1485
  private handleErrorWithSnackBar;
1486
+ private handleSuccessWithSnackBar;
1474
1487
  private stopPolling;
1475
1488
  private defineReqOptions;
1476
1489
  /**
@@ -1486,14 +1499,14 @@ declare class HTTPManagerService<T> extends RequestService {
1486
1499
  * @param options Optional batch configuration
1487
1500
  * @returns Observable emitting array of data when all requests complete
1488
1501
  */
1489
- getSequentialRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
1502
+ getSequentialRequest<U = T>(requests: ApiRequest[], options?: BatchOptions, successMessage?: string, errorMessage?: string): Observable<U[]>;
1490
1503
  /**
1491
1504
  * Execute requests in parallel with concurrency control
1492
1505
  * @param requests Array of ApiRequest configurations
1493
1506
  * @param options Optional batch configuration with concurrency limit
1494
1507
  * @returns Observable emitting array of data when all requests complete
1495
1508
  */
1496
- getParallelRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
1509
+ getParallelRequest<U = T>(requests: ApiRequest[], options?: BatchOptions, successMessage?: string, errorMessage?: string): Observable<U[]>;
1497
1510
  /**
1498
1511
  * Execute multiple HTTP requests and emit individual state changes in real-time
1499
1512
  * @param requests Array of ApiRequest configurations
@@ -1660,6 +1673,7 @@ declare class HTTPManagerSignalsService<T> extends RequestSignalsService {
1660
1673
  private prepareRequestData;
1661
1674
  private handleError;
1662
1675
  private handleErrorWithSnackBar;
1676
+ private handleSuccessWithSnackBar;
1663
1677
  private stopPolling;
1664
1678
  private defineReqOptions;
1665
1679
  /**
@@ -1675,14 +1689,14 @@ declare class HTTPManagerSignalsService<T> extends RequestSignalsService {
1675
1689
  * @param options Optional batch configuration
1676
1690
  * @returns Observable emitting array of data when all requests complete
1677
1691
  */
1678
- getSequentialRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
1692
+ getSequentialRequest<U = T>(requests: ApiRequest[], options?: BatchOptions, successMessage?: string, errorMessage?: string): Observable<U[]>;
1679
1693
  /**
1680
1694
  * Execute requests in parallel with concurrency control
1681
1695
  * @param requests Array of ApiRequest configurations
1682
1696
  * @param options Optional batch configuration with concurrency limit
1683
1697
  * @returns Observable emitting array of data when all requests complete
1684
1698
  */
1685
- getParallelRequest<U = T>(requests: ApiRequest[], options?: BatchOptions): Observable<U[]>;
1699
+ getParallelRequest<U = T>(requests: ApiRequest[], options?: BatchOptions, successMessage?: string, errorMessage?: string): Observable<U[]>;
1686
1700
  /**
1687
1701
  * Execute multiple HTTP requests and emit individual state changes in real-time
1688
1702
  * @param requests Array of ApiRequest configurations
Binary file