http-request-manager 18.12.1 → 18.12.4
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.12.
|
|
3
|
+
"version": "18.12.4",
|
|
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",
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as rxjs from 'rxjs';
|
|
2
|
-
import { Observable, Subscription, BehaviorSubject
|
|
2
|
+
import { Observable, OperatorFunction, Subscription, BehaviorSubject } from 'rxjs';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { InjectionToken, OnDestroy, Injector, OnInit, EventEmitter, ModuleWithProviders } from '@angular/core';
|
|
5
5
|
import { ComponentStore } from '@ngrx/component-store';
|
|
@@ -11,6 +11,7 @@ import * as i36 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';
|
|
14
|
+
import * as http_request_manager from 'http-request-manager';
|
|
14
15
|
import { DataSource } from '@angular/cdk/collections';
|
|
15
16
|
import * as i4 from '@angular/common';
|
|
16
17
|
import * as i7 from '@angular/material/button';
|
|
@@ -153,6 +154,88 @@ declare class AppService {
|
|
|
153
154
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppService>;
|
|
154
155
|
}
|
|
155
156
|
|
|
157
|
+
declare function countdown(duration: number): Observable<number>;
|
|
158
|
+
|
|
159
|
+
declare function delayedRetry<T>(delayMs: number, maxRetry?: number): (src: Observable<T>) => Observable<T>;
|
|
160
|
+
|
|
161
|
+
declare function requestPolling<T>(pollInterval: number, stopCondition$: Observable<any>, isPending$: any): (source: Observable<T>) => Observable<T>;
|
|
162
|
+
|
|
163
|
+
/**
|
|
164
|
+
* Enum representing valid streaming format types
|
|
165
|
+
*
|
|
166
|
+
* This enum defines all supported streaming formats for HTTP requests.
|
|
167
|
+
* Each enum value corresponds to a specific data format and parsing strategy.
|
|
168
|
+
*/
|
|
169
|
+
declare enum StreamType {
|
|
170
|
+
JSON = "json",
|
|
171
|
+
NDJSON = "ndjson",
|
|
172
|
+
AI_STREAMING = "ai_streaming",
|
|
173
|
+
EVENT_STREAM = "event_stream",
|
|
174
|
+
AUTO = "auto"
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
interface StreamConfig {
|
|
178
|
+
streamType: StreamType;
|
|
179
|
+
totalHeader?: string;
|
|
180
|
+
}
|
|
181
|
+
/**
|
|
182
|
+
* Progress information for streaming responses
|
|
183
|
+
*/
|
|
184
|
+
interface StreamProgress {
|
|
185
|
+
received: number;
|
|
186
|
+
total?: number;
|
|
187
|
+
percent: number;
|
|
188
|
+
stage: 'connecting' | 'streaming' | 'complete' | 'error';
|
|
189
|
+
bytesLoaded?: number;
|
|
190
|
+
bytesTotal?: number;
|
|
191
|
+
}
|
|
192
|
+
/**
|
|
193
|
+
* Combined output from streaming operators
|
|
194
|
+
*/
|
|
195
|
+
interface StreamOutput<T> {
|
|
196
|
+
data: T[];
|
|
197
|
+
progress: StreamProgress;
|
|
198
|
+
endpoint?: string;
|
|
199
|
+
}
|
|
200
|
+
interface StreamEvent<T = any> {
|
|
201
|
+
type: 'progress' | 'complete' | 'data';
|
|
202
|
+
data: T;
|
|
203
|
+
metadata?: {
|
|
204
|
+
timestamp: Date;
|
|
205
|
+
streamType: StreamType;
|
|
206
|
+
contentLength?: number;
|
|
207
|
+
};
|
|
208
|
+
}
|
|
209
|
+
interface ParsingResult<T = any> {
|
|
210
|
+
success: boolean;
|
|
211
|
+
data?: T[];
|
|
212
|
+
error?: string;
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* COMPREHENSIVE REQUEST STREAMING OPERATOR - FULLY ABSTRACTED
|
|
216
|
+
* Refactored for better type safety and memory management
|
|
217
|
+
*
|
|
218
|
+
* Single function that handles ALL streaming formats without hardcoded assumptions:
|
|
219
|
+
* - JSON format (Individual JSON objects)
|
|
220
|
+
* - NDJSON format (Newline delimited JSON)
|
|
221
|
+
* - AI streaming format (Real-time AI responses)
|
|
222
|
+
* - Server-Sent Events format
|
|
223
|
+
* - Auto-detection mode
|
|
224
|
+
*
|
|
225
|
+
* Usage:
|
|
226
|
+
* this.http.get(url, options).pipe(requestStreaming()).subscribe(data => {...})
|
|
227
|
+
* this.http.get(url, options).pipe(requestStreaming({ streamType: StreamType.NDJSON })).subscribe(data => {...})
|
|
228
|
+
*/
|
|
229
|
+
declare function requestStreaming<T = any>(config?: StreamConfig): OperatorFunction<any, StreamOutput<T>>;
|
|
230
|
+
/**
|
|
231
|
+
* Convenience functions for common use cases
|
|
232
|
+
*/
|
|
233
|
+
declare function streamJSON<T = any>(): OperatorFunction<any, StreamOutput<T>>;
|
|
234
|
+
declare function streamNDJSON<T = any>(): OperatorFunction<any, StreamOutput<T>>;
|
|
235
|
+
declare function streamAI<T = any>(): OperatorFunction<any, StreamOutput<T>>;
|
|
236
|
+
declare function streamEvents<T = any>(): OperatorFunction<any, StreamOutput<T>>;
|
|
237
|
+
declare function streamAuto<T = any>(): OperatorFunction<any, StreamOutput<T>>;
|
|
238
|
+
|
|
156
239
|
interface WSOptionsInterface {
|
|
157
240
|
id: string;
|
|
158
241
|
wsServer: string;
|
|
@@ -176,20 +259,6 @@ declare class WSOptions implements WSOptionsInterface {
|
|
|
176
259
|
static adapt(item?: any): WSOptions;
|
|
177
260
|
}
|
|
178
261
|
|
|
179
|
-
/**
|
|
180
|
-
* Enum representing valid streaming format types
|
|
181
|
-
*
|
|
182
|
-
* This enum defines all supported streaming formats for HTTP requests.
|
|
183
|
-
* Each enum value corresponds to a specific data format and parsing strategy.
|
|
184
|
-
*/
|
|
185
|
-
declare enum StreamType {
|
|
186
|
-
JSON = "json",
|
|
187
|
-
NDJSON = "ndjson",
|
|
188
|
-
AI_STREAMING = "ai_streaming",
|
|
189
|
-
EVENT_STREAM = "event_stream",
|
|
190
|
-
AUTO = "auto"
|
|
191
|
-
}
|
|
192
|
-
|
|
193
262
|
interface ApiRequestInterface {
|
|
194
263
|
server: string;
|
|
195
264
|
path?: any[];
|
|
@@ -200,6 +269,7 @@ interface ApiRequestInterface {
|
|
|
200
269
|
retry?: RetryOptions;
|
|
201
270
|
stream?: boolean;
|
|
202
271
|
streamType?: StreamType;
|
|
272
|
+
totalHeader?: string;
|
|
203
273
|
displayError?: boolean;
|
|
204
274
|
displaySuccess?: boolean;
|
|
205
275
|
successMessage?: string;
|
|
@@ -225,6 +295,7 @@ declare class ApiRequest implements ApiRequestInterface {
|
|
|
225
295
|
retry?: RetryOptions | undefined;
|
|
226
296
|
stream?: boolean | undefined;
|
|
227
297
|
streamType?: StreamType | undefined;
|
|
298
|
+
totalHeader?: string | undefined;
|
|
228
299
|
displayError?: boolean | undefined;
|
|
229
300
|
displaySuccess?: boolean | undefined;
|
|
230
301
|
successMessage?: string | undefined;
|
|
@@ -239,7 +310,7 @@ declare class ApiRequest implements ApiRequestInterface {
|
|
|
239
310
|
allowedTypes?: string[] | undefined;
|
|
240
311
|
maxFileSize?: number | undefined;
|
|
241
312
|
maxTotalSize?: number | undefined;
|
|
242
|
-
constructor(server?: string, path?: any[] | undefined, headers?: any, adapter?: any, mapper?: any, polling?: number | undefined, retry?: RetryOptions | undefined, stream?: boolean | undefined, streamType?: StreamType | undefined, displayError?: boolean | undefined, displaySuccess?: boolean | undefined, successMessage?: string | undefined, errorMessage?: string | undefined, saveAs?: string | undefined, fileContentHeader?: string | undefined, ws?: WSOptions | undefined, env?: string | undefined, uploadFiles?: (File | File[]) | undefined, uploadFieldName?: string | undefined, uploadHttpMethod?: ("POST" | "PUT") | undefined, allowedTypes?: string[] | undefined, maxFileSize?: number | undefined, maxTotalSize?: number | undefined);
|
|
313
|
+
constructor(server?: string, path?: any[] | undefined, headers?: any, adapter?: any, mapper?: any, polling?: number | undefined, retry?: RetryOptions | undefined, stream?: boolean | undefined, streamType?: StreamType | undefined, totalHeader?: string | undefined, displayError?: boolean | undefined, displaySuccess?: boolean | undefined, successMessage?: string | undefined, errorMessage?: string | undefined, saveAs?: string | undefined, fileContentHeader?: string | undefined, ws?: WSOptions | undefined, env?: string | undefined, uploadFiles?: (File | File[]) | undefined, uploadFieldName?: string | undefined, uploadHttpMethod?: ("POST" | "PUT") | undefined, allowedTypes?: string[] | undefined, maxFileSize?: number | undefined, maxTotalSize?: number | undefined);
|
|
243
314
|
static adapt(item?: any): ApiRequest;
|
|
244
315
|
}
|
|
245
316
|
|
|
@@ -373,6 +444,17 @@ declare class RequestOptions implements RequestOptionsInterface {
|
|
|
373
444
|
static adapt(item?: any): RequestOptions;
|
|
374
445
|
}
|
|
375
446
|
|
|
447
|
+
interface OperationResultInterface {
|
|
448
|
+
success: boolean;
|
|
449
|
+
operation: 'CREATE' | 'UPDATE' | 'DELETE';
|
|
450
|
+
}
|
|
451
|
+
declare class OperationResultModel implements OperationResultInterface {
|
|
452
|
+
success: boolean;
|
|
453
|
+
operation: 'CREATE' | 'UPDATE' | 'DELETE';
|
|
454
|
+
constructor(success?: boolean, operation?: 'CREATE' | 'UPDATE' | 'DELETE');
|
|
455
|
+
static adapt(item?: any): OperationResultModel;
|
|
456
|
+
}
|
|
457
|
+
|
|
376
458
|
interface TableSchemaDefInterface {
|
|
377
459
|
table: string;
|
|
378
460
|
schema: string;
|
|
@@ -540,6 +622,10 @@ declare class HTTPManagerStateService<T extends {
|
|
|
540
622
|
logger: LoggerService;
|
|
541
623
|
error$: Observable<boolean>;
|
|
542
624
|
isPending$: Observable<boolean>;
|
|
625
|
+
progress$: Observable<number>;
|
|
626
|
+
streamProgress$: Observable<StreamProgress>;
|
|
627
|
+
private operationSuccess;
|
|
628
|
+
operationSuccess$: Observable<OperationResultModel | null>;
|
|
543
629
|
private page;
|
|
544
630
|
page$: Observable<number>;
|
|
545
631
|
private totalPages;
|
|
@@ -555,6 +641,7 @@ declare class HTTPManagerStateService<T extends {
|
|
|
555
641
|
private databaseOptions?;
|
|
556
642
|
private wsRetryAttempts;
|
|
557
643
|
wsRetryAttempts$: Observable<number>;
|
|
644
|
+
private activeStream$;
|
|
558
645
|
private wsNextRetry;
|
|
559
646
|
wsNextRetry$: Observable<number>;
|
|
560
647
|
private messages;
|
|
@@ -1018,8 +1105,12 @@ declare class RequestService extends WebsocketService {
|
|
|
1018
1105
|
private headersService;
|
|
1019
1106
|
isPending: BehaviorSubject<boolean>;
|
|
1020
1107
|
isPending$: Observable<boolean>;
|
|
1108
|
+
isStreamingPending: BehaviorSubject<boolean>;
|
|
1109
|
+
isStreamingPending$: Observable<boolean>;
|
|
1021
1110
|
progress: BehaviorSubject<number>;
|
|
1022
1111
|
progress$: Observable<number>;
|
|
1112
|
+
streamProgress: BehaviorSubject<StreamProgress>;
|
|
1113
|
+
streamProgress$: Observable<StreamProgress>;
|
|
1023
1114
|
getRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
1024
1115
|
getRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
1025
1116
|
getRecordRequest<T>(options: ApiRequest & {
|
|
@@ -1044,6 +1135,7 @@ declare class RequestService extends WebsocketService {
|
|
|
1044
1135
|
uploadFileRequest(options: ApiRequest): Observable<any>;
|
|
1045
1136
|
private validateUploadFiles;
|
|
1046
1137
|
private buildFormData;
|
|
1138
|
+
private streamProgressReset;
|
|
1047
1139
|
private handleFinalize;
|
|
1048
1140
|
private downloadFile;
|
|
1049
1141
|
private createFileType;
|
|
@@ -1225,21 +1317,6 @@ declare class UploadValidationErrorModel implements UploadValidationErrorInterfa
|
|
|
1225
1317
|
static adapt(item?: any): UploadValidationErrorModel;
|
|
1226
1318
|
}
|
|
1227
1319
|
|
|
1228
|
-
interface UserDataInterface {
|
|
1229
|
-
ldap: string;
|
|
1230
|
-
name: string;
|
|
1231
|
-
email: string;
|
|
1232
|
-
color: string;
|
|
1233
|
-
}
|
|
1234
|
-
declare class UserData implements UserDataInterface {
|
|
1235
|
-
ldap: string;
|
|
1236
|
-
name: string;
|
|
1237
|
-
email: string;
|
|
1238
|
-
color: string;
|
|
1239
|
-
constructor(ldap?: string, name?: string, email?: string, color?: string);
|
|
1240
|
-
static adapt(item?: any): UserData;
|
|
1241
|
-
}
|
|
1242
|
-
|
|
1243
1320
|
declare class ObjectMergerService {
|
|
1244
1321
|
private configOptions?;
|
|
1245
1322
|
utils: UtilsService;
|
|
@@ -1425,6 +1502,7 @@ declare class HTTPManagerService<T> extends RequestService {
|
|
|
1425
1502
|
data$: Observable<any>;
|
|
1426
1503
|
private polling$;
|
|
1427
1504
|
config: ApiRequest;
|
|
1505
|
+
streamProgress$: Observable<StreamProgress>;
|
|
1428
1506
|
constructor(configOptions?: ConfigOptions | undefined);
|
|
1429
1507
|
/**
|
|
1430
1508
|
* Connect to WebSocket server
|
|
@@ -1575,9 +1653,14 @@ declare class RequestSignalsService extends WebsocketService {
|
|
|
1575
1653
|
private http;
|
|
1576
1654
|
private pathQueryService;
|
|
1577
1655
|
private headersService;
|
|
1578
|
-
|
|
1656
|
+
private _activeRequestCount;
|
|
1657
|
+
isPending: i0.Signal<boolean>;
|
|
1579
1658
|
progress: i0.WritableSignal<number>;
|
|
1580
|
-
|
|
1659
|
+
private activeRequests;
|
|
1660
|
+
private activeMethod;
|
|
1661
|
+
private activeStreamMethod;
|
|
1662
|
+
private requestQueue;
|
|
1663
|
+
private destroy$;
|
|
1581
1664
|
getRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
1582
1665
|
getRecordRequest<T>(options: ApiRequest & {
|
|
1583
1666
|
stream: true;
|
|
@@ -1588,6 +1671,20 @@ declare class RequestSignalsService extends WebsocketService {
|
|
|
1588
1671
|
}, data: any): Observable<T[]>;
|
|
1589
1672
|
updateRecordRequest<T>(options: ApiRequest, data: any): Observable<T>;
|
|
1590
1673
|
deleteRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
1674
|
+
/**
|
|
1675
|
+
* Queue a request to ensure FIFO processing:
|
|
1676
|
+
* - All requests are queued and processed sequentially
|
|
1677
|
+
* - Streams are protected - non-stream requests wait for active streams
|
|
1678
|
+
*/
|
|
1679
|
+
private queueRequest;
|
|
1680
|
+
/**
|
|
1681
|
+
* Start processing a request
|
|
1682
|
+
*/
|
|
1683
|
+
private startRequest;
|
|
1684
|
+
/**
|
|
1685
|
+
* Clean up completed request and process next in queue
|
|
1686
|
+
*/
|
|
1687
|
+
private cleanupAndProcessNext;
|
|
1591
1688
|
private buildUrlPath;
|
|
1592
1689
|
private buildHeaders;
|
|
1593
1690
|
private buildCombinedHeaders;
|
|
@@ -1597,7 +1694,6 @@ declare class RequestSignalsService extends WebsocketService {
|
|
|
1597
1694
|
uploadFileRequest(options: ApiRequest): Observable<any>;
|
|
1598
1695
|
private validateUploadFiles;
|
|
1599
1696
|
private buildFormData;
|
|
1600
|
-
private handleFinalize;
|
|
1601
1697
|
private downloadFile;
|
|
1602
1698
|
private createFileType;
|
|
1603
1699
|
private combineHeaders;
|
|
@@ -1765,54 +1861,6 @@ declare class HTTPManagerSignalsService<T> extends RequestSignalsService {
|
|
|
1765
1861
|
static ɵprov: i0.ɵɵInjectableDeclaration<HTTPManagerSignalsService<any>>;
|
|
1766
1862
|
}
|
|
1767
1863
|
|
|
1768
|
-
declare function countdown(duration: number): Observable<number>;
|
|
1769
|
-
|
|
1770
|
-
declare function delayedRetry<T>(delayMs: number, maxRetry?: number): (src: Observable<T>) => Observable<T>;
|
|
1771
|
-
|
|
1772
|
-
declare function requestPolling<T>(pollInterval: number, stopCondition$: Observable<any>, isPending$: any): (source: Observable<T>) => Observable<T>;
|
|
1773
|
-
|
|
1774
|
-
interface StreamConfig {
|
|
1775
|
-
streamType: StreamType;
|
|
1776
|
-
}
|
|
1777
|
-
interface StreamEvent<T = any> {
|
|
1778
|
-
type: 'progress' | 'complete' | 'data';
|
|
1779
|
-
data: T;
|
|
1780
|
-
metadata?: {
|
|
1781
|
-
timestamp: Date;
|
|
1782
|
-
streamType: StreamType;
|
|
1783
|
-
contentLength?: number;
|
|
1784
|
-
};
|
|
1785
|
-
}
|
|
1786
|
-
interface ParsingResult<T = any> {
|
|
1787
|
-
success: boolean;
|
|
1788
|
-
data?: T[];
|
|
1789
|
-
error?: string;
|
|
1790
|
-
}
|
|
1791
|
-
/**
|
|
1792
|
-
* COMPREHENSIVE REQUEST STREAMING OPERATOR - FULLY ABSTRACTED
|
|
1793
|
-
* Refactored for better type safety and memory management
|
|
1794
|
-
*
|
|
1795
|
-
* Single function that handles ALL streaming formats without hardcoded assumptions:
|
|
1796
|
-
* - JSON format (Individual JSON objects)
|
|
1797
|
-
* - NDJSON format (Newline delimited JSON)
|
|
1798
|
-
* - AI streaming format (Real-time AI responses)
|
|
1799
|
-
* - Server-Sent Events format
|
|
1800
|
-
* - Auto-detection mode
|
|
1801
|
-
*
|
|
1802
|
-
* Usage:
|
|
1803
|
-
* this.http.get(url, options).pipe(requestStreaming()).subscribe(data => {...})
|
|
1804
|
-
* this.http.get(url, options).pipe(requestStreaming({ streamType: StreamType.NDJSON })).subscribe(data => {...})
|
|
1805
|
-
*/
|
|
1806
|
-
declare function requestStreaming<T = any>(config?: StreamConfig): OperatorFunction<any, T[]>;
|
|
1807
|
-
/**
|
|
1808
|
-
* Convenience functions for common use cases
|
|
1809
|
-
*/
|
|
1810
|
-
declare function streamJSON<T = any>(): OperatorFunction<any, T[]>;
|
|
1811
|
-
declare function streamNDJSON<T = any>(): OperatorFunction<any, T[]>;
|
|
1812
|
-
declare function streamAI<T = any>(): OperatorFunction<any, T[]>;
|
|
1813
|
-
declare function streamEvents<T = any>(): OperatorFunction<any, T[]>;
|
|
1814
|
-
declare function streamAuto<T = any>(): OperatorFunction<any, T[]>;
|
|
1815
|
-
|
|
1816
1864
|
interface State {
|
|
1817
1865
|
localStores: StorageData[];
|
|
1818
1866
|
sessionStores: StorageData[];
|
|
@@ -1961,6 +2009,25 @@ declare class StateStorageOptions implements StateStorageOptionsInterface {
|
|
|
1961
2009
|
static adapt(item?: any): StateStorageOptions;
|
|
1962
2010
|
}
|
|
1963
2011
|
|
|
2012
|
+
interface StateOperationResultInterface {
|
|
2013
|
+
success: boolean;
|
|
2014
|
+
operation: 'CREATE' | 'UPDATE' | 'DELETE';
|
|
2015
|
+
key?: string;
|
|
2016
|
+
value?: any;
|
|
2017
|
+
timestamp: number;
|
|
2018
|
+
error?: string;
|
|
2019
|
+
}
|
|
2020
|
+
declare class StateOperationResult implements StateOperationResultInterface {
|
|
2021
|
+
success: boolean;
|
|
2022
|
+
operation: 'CREATE' | 'UPDATE' | 'DELETE';
|
|
2023
|
+
key?: string | undefined;
|
|
2024
|
+
value?: any;
|
|
2025
|
+
timestamp: number;
|
|
2026
|
+
error?: string | undefined;
|
|
2027
|
+
constructor(success?: boolean, operation?: 'CREATE' | 'UPDATE' | 'DELETE', key?: string | undefined, value?: any, timestamp?: number, error?: string | undefined);
|
|
2028
|
+
static adapt(item?: any): StateOperationResult;
|
|
2029
|
+
}
|
|
2030
|
+
|
|
1964
2031
|
interface StateStoreManagerData$1<T> {
|
|
1965
2032
|
}
|
|
1966
2033
|
declare class StoreStateManagerService<T extends object = StateStoreManagerData$1<any>> extends ComponentStore<T> {
|
|
@@ -1969,13 +2036,18 @@ declare class StoreStateManagerService<T extends object = StateStoreManagerData$
|
|
|
1969
2036
|
subscriptions: Subscription;
|
|
1970
2037
|
settings: any;
|
|
1971
2038
|
private isRestoring;
|
|
2039
|
+
private operationResult;
|
|
2040
|
+
operationResult$: Observable<StateOperationResult | null>;
|
|
1972
2041
|
constructor(options?: StateStorageOptions);
|
|
1973
2042
|
private static init;
|
|
1974
2043
|
init(options?: StateStorageOptions): void;
|
|
1975
2044
|
restoreState(): Subscription;
|
|
1976
2045
|
updateState(state: any): void;
|
|
1977
|
-
readonly data$:
|
|
2046
|
+
readonly data$: Observable<any>;
|
|
1978
2047
|
readonly updateData: (() => void) | ((observableOrValue: any) => Subscription);
|
|
2048
|
+
createRecord(key: string, value: any): void;
|
|
2049
|
+
updateRecord(key: string, value: any): void;
|
|
2050
|
+
deleteRecord(key: string): void;
|
|
1979
2051
|
static ɵfac: i0.ɵɵFactoryDeclaration<StoreStateManagerService<any>, never>;
|
|
1980
2052
|
static ɵprov: i0.ɵɵInjectableDeclaration<StoreStateManagerService<any>>;
|
|
1981
2053
|
}
|
|
@@ -1987,6 +2059,8 @@ declare class StoreStateManagerSignalsService<T extends object = StateStoreManag
|
|
|
1987
2059
|
private state;
|
|
1988
2060
|
private isRestoring;
|
|
1989
2061
|
private settings;
|
|
2062
|
+
private operationResultSignal;
|
|
2063
|
+
readonly operationResult: i0.Signal<StateOperationResult | null>;
|
|
1990
2064
|
readonly data: i0.Signal<T | null>;
|
|
1991
2065
|
readonly transformedData: i0.Signal<any>;
|
|
1992
2066
|
constructor();
|
|
@@ -1994,6 +2068,9 @@ declare class StoreStateManagerSignalsService<T extends object = StateStoreManag
|
|
|
1994
2068
|
restoreState(): void;
|
|
1995
2069
|
updateState(state: Partial<T>): void;
|
|
1996
2070
|
updateData(data: Partial<T>): void;
|
|
2071
|
+
createRecord(key: string, value: any): void;
|
|
2072
|
+
updateRecord(key: string, value: any): void;
|
|
2073
|
+
deleteRecord(key: string): void;
|
|
1997
2074
|
resetState(): void;
|
|
1998
2075
|
static ɵfac: i0.ɵɵFactoryDeclaration<StoreStateManagerSignalsService<any>, never>;
|
|
1999
2076
|
static ɵprov: i0.ɵɵInjectableDeclaration<StoreStateManagerSignalsService<any>>;
|
|
@@ -2263,6 +2340,21 @@ declare class RequestManagerBasicDemoComponent implements OnInit {
|
|
|
2263
2340
|
static ɵcmp: i0.ɵɵComponentDeclaration<RequestManagerBasicDemoComponent, "app-request-manager-basic-demo", never, {}, {}, never, never, false, never>;
|
|
2264
2341
|
}
|
|
2265
2342
|
|
|
2343
|
+
interface UserDataInterface {
|
|
2344
|
+
ldap: string;
|
|
2345
|
+
name: string;
|
|
2346
|
+
email: string;
|
|
2347
|
+
color: string;
|
|
2348
|
+
}
|
|
2349
|
+
declare class UserData implements UserDataInterface {
|
|
2350
|
+
ldap: string;
|
|
2351
|
+
name: string;
|
|
2352
|
+
email: string;
|
|
2353
|
+
color: string;
|
|
2354
|
+
constructor(ldap?: string, name?: string, email?: string, color?: string);
|
|
2355
|
+
static adapt(item?: any): UserData;
|
|
2356
|
+
}
|
|
2357
|
+
|
|
2266
2358
|
declare class HttpRequestServicesDemoComponent implements OnInit {
|
|
2267
2359
|
private configOptions?;
|
|
2268
2360
|
wsServer: string;
|
|
@@ -2368,6 +2460,7 @@ declare class RequestManagerStateDemoComponent implements OnInit {
|
|
|
2368
2460
|
adapter?: Function;
|
|
2369
2461
|
mapper?: Function;
|
|
2370
2462
|
stateManagerDemoService: StateManagerDemoService;
|
|
2463
|
+
progress$: Observable<http_request_manager.StreamProgress>;
|
|
2371
2464
|
displayedColumns: string[];
|
|
2372
2465
|
getColumnsFromData(data: any[]): string[];
|
|
2373
2466
|
updateDisplayedColumns(data: any[]): void;
|
|
@@ -2382,6 +2475,7 @@ declare class RequestManagerStateDemoComponent implements OnInit {
|
|
|
2382
2475
|
streamType: string;
|
|
2383
2476
|
httpManagerService: HTTPManagerService<any>;
|
|
2384
2477
|
isPending$: Observable<boolean>;
|
|
2478
|
+
isStreamingPending$: Observable<boolean>;
|
|
2385
2479
|
error$: Observable<boolean>;
|
|
2386
2480
|
countdown$: Observable<number>;
|
|
2387
2481
|
GET_error$: BehaviorSubject<string>;
|
|
@@ -2501,7 +2595,9 @@ declare class RequestManagerDemoComponent implements OnInit {
|
|
|
2501
2595
|
private toastMessage;
|
|
2502
2596
|
questionControl: _angular_forms.FormControl<string | null>;
|
|
2503
2597
|
httpManagerService: HTTPManagerService<any>;
|
|
2598
|
+
progress$: Observable<StreamProgress>;
|
|
2504
2599
|
isPending$: Observable<boolean>;
|
|
2600
|
+
isStreamingPending$: Observable<boolean>;
|
|
2505
2601
|
countdown$: Observable<number>;
|
|
2506
2602
|
GET_error$: BehaviorSubject<string>;
|
|
2507
2603
|
POST_error$: BehaviorSubject<string>;
|
|
@@ -2709,7 +2805,7 @@ declare class RequestSignalsManagerDemoComponent implements OnInit {
|
|
|
2709
2805
|
private fb;
|
|
2710
2806
|
private toastMessage;
|
|
2711
2807
|
httpManagerSignalsService: HTTPManagerSignalsService<any>;
|
|
2712
|
-
isPending: i0.
|
|
2808
|
+
isPending: i0.Signal<boolean>;
|
|
2713
2809
|
countdown: i0.WritableSignal<number>;
|
|
2714
2810
|
GET_result: any;
|
|
2715
2811
|
POST_result: any;
|
|
@@ -3645,5 +3741,5 @@ declare class StoreStateSignalsDemoComponent implements OnInit {
|
|
|
3645
3741
|
static ɵcmp: i0.ɵɵComponentDeclaration<StoreStateSignalsDemoComponent, "app-store-state-signals-demo", never, {}, {}, never, never, false, never>;
|
|
3646
3742
|
}
|
|
3647
3743
|
|
|
3648
|
-
export { ApiRequest, AppService, AsymmetricalEncryptionService, BatchOptions, BatchResult, CONFIG_SETTINGS_TOKEN, ChannelType, ConfigHTTPOptions, ConfigOptions, DataType, DatabaseDataDemoComponent, DatabaseManagerService, DatabaseStorage, DbService, ErrorDisplaySettings, GlobalStoreOptions, HTTPManagerService, HTTPManagerSignalsService, HTTPManagerStateService, HeadersService, HttpRequestManagerModule, HttpRequestServicesDemoComponent, InvalidFileInfoModel, LocalStorageDemoComponent, LocalStorageManagerService, LocalStorageOptions, LocalStorageSignalsDemoComponent, LocalStorageSignalsManagerService, LoggerService, 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, UploadDemoComponent, UploadValidationErrorModel, UserData, UtilsService, WSOptions, WebSocketMessageService, WithCredentialsInterceptor, calculateBatchProgress, countdown, createChannelName, delayedRetry, isErrorState, isPendingState, isSuccessState, requestPolling, requestStreaming, streamAI, streamAuto, streamEvents, streamJSON, streamNDJSON };
|
|
3649
|
-
export type { APIStateManagerData, ApiRequestInterface, BatchErrorState, BatchOptionsInterface, BatchPendingState, BatchProgress, BatchRequestState, BatchResultInterface, BatchSuccessState, ConfigHTTPOptionsInterface, ConfigOptionsInterface, DatabaseStorageInterface, ErrorDisplaySettingsInterface, GlobalStoreOptionsInterface, InvalidFileInfoInterface, LocalStorageOptionsInterface, NotificationMessageInterface, ParsingResult, PublicMessageInterface, RequestOptionsInterface, RetryOptionsInterface, SettingOptionsInterface, State, StateMessageInterface, StateStorageOptionsInterface, StateStoreManagerData$1 as StateStoreManagerData, StorageDataInterface, StorageOptionInterface, StreamConfig, StreamEvent, TableRecord, TableSchemaDefInterface, UploadValidationErrorInterface, UserDataInterface, WSOptionsInterface };
|
|
3744
|
+
export { ApiRequest, AppService, AsymmetricalEncryptionService, BatchOptions, BatchResult, CONFIG_SETTINGS_TOKEN, ChannelType, ConfigHTTPOptions, ConfigOptions, DataType, DatabaseDataDemoComponent, DatabaseManagerService, DatabaseStorage, DbService, ErrorDisplaySettings, GlobalStoreOptions, HTTPManagerService, HTTPManagerSignalsService, HTTPManagerStateService, HeadersService, HttpRequestManagerModule, HttpRequestServicesDemoComponent, InvalidFileInfoModel, LocalStorageDemoComponent, LocalStorageManagerService, LocalStorageOptions, LocalStorageSignalsDemoComponent, LocalStorageSignalsManagerService, LoggerService, NotificationMessage, OperationResultModel, PathQueryService, PublicMessage, Random, RandomHSLColor, RandomHexColor, RandomNumber, RandomNumbers, RandomNumbersUnique, RandomPaletteColor, RandomSignature, RandomStr, RandomVisibleColor, RequestErrorInterceptor, RequestHeadersInterceptor, RequestManagerDemoComponent, RequestManagerStateDemoComponent, RequestOptions, RequestService, RequestSignalsService, RetryOptions, SettingOptions, StateMessage, StateOperationResult, StateStorageOptions, StorageData, StorageOption, StorageType, StoreStateManagerService, StoreStateManagerSignalsService, StoreStateSignalsDemoComponent, StreamType, SymmetricalEncryptionService, TableSchemaDef, UUID, UUID_STR, UploadDemoComponent, UploadValidationErrorModel, UserData, UtilsService, WSOptions, WebSocketMessageService, WithCredentialsInterceptor, calculateBatchProgress, countdown, createChannelName, delayedRetry, isErrorState, isPendingState, isSuccessState, requestPolling, requestStreaming, streamAI, streamAuto, streamEvents, streamJSON, streamNDJSON };
|
|
3745
|
+
export type { APIStateManagerData, ApiRequestInterface, BatchErrorState, BatchOptionsInterface, BatchPendingState, BatchProgress, BatchRequestState, BatchResultInterface, BatchSuccessState, ConfigHTTPOptionsInterface, ConfigOptionsInterface, DatabaseStorageInterface, ErrorDisplaySettingsInterface, GlobalStoreOptionsInterface, InvalidFileInfoInterface, LocalStorageOptionsInterface, NotificationMessageInterface, OperationResultInterface, ParsingResult, PublicMessageInterface, RequestOptionsInterface, RetryOptionsInterface, SettingOptionsInterface, State, StateMessageInterface, StateOperationResultInterface, StateStorageOptionsInterface, StateStoreManagerData$1 as StateStoreManagerData, StorageDataInterface, StorageOptionInterface, StreamConfig, StreamEvent, StreamOutput, StreamProgress, TableRecord, TableSchemaDefInterface, UploadValidationErrorInterface, UserDataInterface, WSOptionsInterface };
|
|
Binary file
|