http-request-manager 18.13.0 → 18.13.1
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.13.
|
|
3
|
+
"version": "18.13.1",
|
|
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",
|
|
@@ -44,5 +44,6 @@
|
|
|
44
44
|
"types": "./types/http-request-manager.d.ts",
|
|
45
45
|
"default": "./fesm2022/http-request-manager.mjs"
|
|
46
46
|
}
|
|
47
|
-
}
|
|
47
|
+
},
|
|
48
|
+
"type": "module"
|
|
48
49
|
}
|
|
@@ -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';
|
|
@@ -153,6 +153,88 @@ declare class AppService {
|
|
|
153
153
|
static ɵprov: i0.ɵɵInjectableDeclaration<AppService>;
|
|
154
154
|
}
|
|
155
155
|
|
|
156
|
+
declare function countdown(duration: number): Observable<number>;
|
|
157
|
+
|
|
158
|
+
declare function delayedRetry<T>(delayMs: number, maxRetry?: number): (src: Observable<T>) => Observable<T>;
|
|
159
|
+
|
|
160
|
+
declare function requestPolling<T>(pollInterval: number, stopCondition$: Observable<any>, isPending$: any): (source: Observable<T>) => Observable<T>;
|
|
161
|
+
|
|
162
|
+
/**
|
|
163
|
+
* Enum representing valid streaming format types
|
|
164
|
+
*
|
|
165
|
+
* This enum defines all supported streaming formats for HTTP requests.
|
|
166
|
+
* Each enum value corresponds to a specific data format and parsing strategy.
|
|
167
|
+
*/
|
|
168
|
+
declare enum StreamType {
|
|
169
|
+
JSON = "json",
|
|
170
|
+
NDJSON = "ndjson",
|
|
171
|
+
AI_STREAMING = "ai_streaming",
|
|
172
|
+
EVENT_STREAM = "event_stream",
|
|
173
|
+
AUTO = "auto"
|
|
174
|
+
}
|
|
175
|
+
|
|
176
|
+
interface StreamConfig {
|
|
177
|
+
streamType: StreamType;
|
|
178
|
+
totalHeader?: string;
|
|
179
|
+
}
|
|
180
|
+
/**
|
|
181
|
+
* Progress information for streaming responses
|
|
182
|
+
*/
|
|
183
|
+
interface StreamProgress {
|
|
184
|
+
received: number;
|
|
185
|
+
total?: number;
|
|
186
|
+
percent: number;
|
|
187
|
+
stage: 'connecting' | 'streaming' | 'complete' | 'error';
|
|
188
|
+
bytesLoaded?: number;
|
|
189
|
+
bytesTotal?: number;
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* Combined output from streaming operators
|
|
193
|
+
*/
|
|
194
|
+
interface StreamOutput<T> {
|
|
195
|
+
data: T[];
|
|
196
|
+
progress: StreamProgress;
|
|
197
|
+
endpoint?: string;
|
|
198
|
+
}
|
|
199
|
+
interface StreamEvent<T = any> {
|
|
200
|
+
type: 'progress' | 'complete' | 'data';
|
|
201
|
+
data: T;
|
|
202
|
+
metadata?: {
|
|
203
|
+
timestamp: Date;
|
|
204
|
+
streamType: StreamType;
|
|
205
|
+
contentLength?: number;
|
|
206
|
+
};
|
|
207
|
+
}
|
|
208
|
+
interface ParsingResult<T = any> {
|
|
209
|
+
success: boolean;
|
|
210
|
+
data?: T[];
|
|
211
|
+
error?: string;
|
|
212
|
+
}
|
|
213
|
+
/**
|
|
214
|
+
* COMPREHENSIVE REQUEST STREAMING OPERATOR - FULLY ABSTRACTED
|
|
215
|
+
* Refactored for better type safety and memory management
|
|
216
|
+
*
|
|
217
|
+
* Single function that handles ALL streaming formats without hardcoded assumptions:
|
|
218
|
+
* - JSON format (Individual JSON objects)
|
|
219
|
+
* - NDJSON format (Newline delimited JSON)
|
|
220
|
+
* - AI streaming format (Real-time AI responses)
|
|
221
|
+
* - Server-Sent Events format
|
|
222
|
+
* - Auto-detection mode
|
|
223
|
+
*
|
|
224
|
+
* Usage:
|
|
225
|
+
* this.http.get(url, options).pipe(requestStreaming()).subscribe(data => {...})
|
|
226
|
+
* this.http.get(url, options).pipe(requestStreaming({ streamType: StreamType.NDJSON })).subscribe(data => {...})
|
|
227
|
+
*/
|
|
228
|
+
declare function requestStreaming<T = any>(config?: StreamConfig): OperatorFunction<any, StreamOutput<T>>;
|
|
229
|
+
/**
|
|
230
|
+
* Convenience functions for common use cases
|
|
231
|
+
*/
|
|
232
|
+
declare function streamJSON<T = any>(): OperatorFunction<any, StreamOutput<T>>;
|
|
233
|
+
declare function streamNDJSON<T = any>(): OperatorFunction<any, StreamOutput<T>>;
|
|
234
|
+
declare function streamAI<T = any>(): OperatorFunction<any, StreamOutput<T>>;
|
|
235
|
+
declare function streamEvents<T = any>(): OperatorFunction<any, StreamOutput<T>>;
|
|
236
|
+
declare function streamAuto<T = any>(): OperatorFunction<any, StreamOutput<T>>;
|
|
237
|
+
|
|
156
238
|
interface WSOptionsInterface {
|
|
157
239
|
id: string;
|
|
158
240
|
wsServer: string;
|
|
@@ -176,20 +258,6 @@ declare class WSOptions implements WSOptionsInterface {
|
|
|
176
258
|
static adapt(item?: any): WSOptions;
|
|
177
259
|
}
|
|
178
260
|
|
|
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
261
|
interface ApiRequestInterface {
|
|
194
262
|
server: string;
|
|
195
263
|
path?: any[];
|
|
@@ -365,11 +433,17 @@ declare class DatabaseStorage implements DatabaseStorageInterface {
|
|
|
365
433
|
interface RequestOptionsInterface {
|
|
366
434
|
path: any[];
|
|
367
435
|
headers: any;
|
|
436
|
+
forceRefresh?: boolean;
|
|
437
|
+
watchParams?: string[];
|
|
438
|
+
watchExpiresAt?: string | number;
|
|
368
439
|
}
|
|
369
440
|
declare class RequestOptions implements RequestOptionsInterface {
|
|
370
441
|
path: any[];
|
|
371
442
|
headers: {};
|
|
372
|
-
|
|
443
|
+
forceRefresh?: boolean | undefined;
|
|
444
|
+
watchParams?: string[] | undefined;
|
|
445
|
+
watchExpiresAt?: (string | number) | undefined;
|
|
446
|
+
constructor(path?: any[], headers?: {}, forceRefresh?: boolean | undefined, watchParams?: string[] | undefined, watchExpiresAt?: (string | number) | undefined);
|
|
373
447
|
static adapt(item?: any): RequestOptions;
|
|
374
448
|
}
|
|
375
449
|
|
|
@@ -435,15 +509,9 @@ declare class DatabaseManagerService extends DbService {
|
|
|
435
509
|
getTableRecords(table: string): Observable<unknown>;
|
|
436
510
|
getTableRecord(table: string, id: number): Observable<any>;
|
|
437
511
|
createTableRecord(table: string, record: any): Observable<any>;
|
|
438
|
-
createTableRecords(table: string, records: any[]): Observable<
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
updateTableRecord(table: string, record: any): Observable<{
|
|
442
|
-
[key: string]: any;
|
|
443
|
-
} | null>;
|
|
444
|
-
updateTableRecords(table: string, records: any[]): Observable<{
|
|
445
|
-
[key: string]: any;
|
|
446
|
-
}[]>;
|
|
512
|
+
createTableRecords(table: string, records: any[]): Observable<any[]>;
|
|
513
|
+
updateTableRecord(table: string, record: any): Observable<any>;
|
|
514
|
+
updateTableRecords(table: string, records: any[]): Observable<any[]>;
|
|
447
515
|
deleteTableRecord<T>(table: string, id: number): Observable<number | null>;
|
|
448
516
|
deleteTableRecords(table: string, ids: number[]): Observable<number[]>;
|
|
449
517
|
clearTable(table: string): Observable<never[]>;
|
|
@@ -451,6 +519,53 @@ declare class DatabaseManagerService extends DbService {
|
|
|
451
519
|
static ɵprov: i0.ɵɵInjectableDeclaration<DatabaseManagerService>;
|
|
452
520
|
}
|
|
453
521
|
|
|
522
|
+
interface QueryParamsTrackerOptionsInterface {
|
|
523
|
+
mode?: 'exact' | 'variation';
|
|
524
|
+
watchParams?: string[];
|
|
525
|
+
watchExpiresAt?: string | number;
|
|
526
|
+
watchParamsExpire?: string | number;
|
|
527
|
+
}
|
|
528
|
+
declare class QueryParamsTrackerOptionsModel implements QueryParamsTrackerOptionsInterface {
|
|
529
|
+
mode?: ("exact" | "variation") | undefined;
|
|
530
|
+
watchParams?: string[] | undefined;
|
|
531
|
+
watchExpiresAt?: (string | number) | undefined;
|
|
532
|
+
watchParamsExpire?: (string | number) | undefined;
|
|
533
|
+
constructor(mode?: ("exact" | "variation") | undefined, watchParams?: string[] | undefined, watchExpiresAt?: (string | number) | undefined, watchParamsExpire?: (string | number) | undefined);
|
|
534
|
+
static adapt(item?: any): QueryParamsTrackerOptionsModel;
|
|
535
|
+
}
|
|
536
|
+
|
|
537
|
+
type QueryParamsTrackerOptions = QueryParamsTrackerOptionsInterface;
|
|
538
|
+
declare class QueryParamsTrackerService {
|
|
539
|
+
private state;
|
|
540
|
+
private stateRestored;
|
|
541
|
+
private readonly localStorageManager;
|
|
542
|
+
clearTracking(resetSessionInit?: boolean): void;
|
|
543
|
+
checkRequestOptions(requestOptions?: any[], options?: QueryParamsTrackerOptions): boolean;
|
|
544
|
+
matchesPath(requestOptions?: any[], expectedPathOptions?: any[]): boolean;
|
|
545
|
+
private checkExact;
|
|
546
|
+
private checkVariation;
|
|
547
|
+
private normalizeRequestOptions;
|
|
548
|
+
private parsePathSegment;
|
|
549
|
+
private safeDecode;
|
|
550
|
+
private normalizePath;
|
|
551
|
+
private normalizeParamKey;
|
|
552
|
+
private normalizeParamValue;
|
|
553
|
+
private buildExpiryEpoch;
|
|
554
|
+
private resetPathStateIfExpired;
|
|
555
|
+
private cleanupExpiredEntries;
|
|
556
|
+
private ensurePathState;
|
|
557
|
+
private ensureStateRestored;
|
|
558
|
+
private initializeTrackingForSession;
|
|
559
|
+
private restoreState;
|
|
560
|
+
private persistState;
|
|
561
|
+
private stringifyQuery;
|
|
562
|
+
private isTrackerState;
|
|
563
|
+
private isPlainObject;
|
|
564
|
+
private hasSessionStorage;
|
|
565
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<QueryParamsTrackerService, never>;
|
|
566
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<QueryParamsTrackerService>;
|
|
567
|
+
}
|
|
568
|
+
|
|
454
569
|
interface ChannelMessageInterface {
|
|
455
570
|
messageId?: number;
|
|
456
571
|
channel?: string;
|
|
@@ -547,6 +662,7 @@ declare class HTTPManagerStateService<T extends {
|
|
|
547
662
|
httpManagerService: HTTPManagerService<any>;
|
|
548
663
|
dbManagerService: DatabaseManagerService;
|
|
549
664
|
localStorageManagerService: LocalStorageManagerService;
|
|
665
|
+
queryParamsTrackerService: QueryParamsTrackerService;
|
|
550
666
|
utils: UtilsService;
|
|
551
667
|
logger: LoggerService;
|
|
552
668
|
error$: Observable<boolean>;
|
|
@@ -566,6 +682,8 @@ declare class HTTPManagerStateService<T extends {
|
|
|
566
682
|
private shouldRetry;
|
|
567
683
|
private connectionStatusSubscription?;
|
|
568
684
|
private databaseOptions?;
|
|
685
|
+
private readonly volatileHeaders;
|
|
686
|
+
private requestSignatureCache;
|
|
569
687
|
private wsRetryAttempts;
|
|
570
688
|
wsRetryAttempts$: Observable<number>;
|
|
571
689
|
private wsNextRetry;
|
|
@@ -631,6 +749,9 @@ declare class HTTPManagerStateService<T extends {
|
|
|
631
749
|
readonly clearRecords: (observableOrValue?: void | Observable<void> | undefined) => Subscription;
|
|
632
750
|
readonly fetchRecords: (options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
633
751
|
private initDBStorageAsync;
|
|
752
|
+
private buildSchemaFromAdapter;
|
|
753
|
+
private buildSchemaFromSample;
|
|
754
|
+
private persistStreamDataToDb;
|
|
634
755
|
readonly fetchRecord: (options: RequestOptions, method: string) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
635
756
|
readonly createRecord: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
636
757
|
readonly updateRecord: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
@@ -736,6 +857,20 @@ declare class HTTPManagerStateService<T extends {
|
|
|
736
857
|
clearDatabase(): void;
|
|
737
858
|
private isEmpty;
|
|
738
859
|
private updateRequestOptions;
|
|
860
|
+
private buildQueryTrackerOptions;
|
|
861
|
+
private normalizeObject;
|
|
862
|
+
private filterHeaders;
|
|
863
|
+
private resolvePath;
|
|
864
|
+
private getEffectiveParams;
|
|
865
|
+
private buildRequestSignature;
|
|
866
|
+
private buildSchemaSignature;
|
|
867
|
+
private getCachedRequestSignature;
|
|
868
|
+
private setCachedRequestSignature;
|
|
869
|
+
private getRequestCacheMetadata;
|
|
870
|
+
private getStoredSchemaSignature;
|
|
871
|
+
private saveSchemaSignature;
|
|
872
|
+
private saveRequestCacheMetadata;
|
|
873
|
+
private clearRequestCacheMetadata;
|
|
739
874
|
static ɵfac: i0.ɵɵFactoryDeclaration<HTTPManagerStateService<any>, never>;
|
|
740
875
|
static ɵprov: i0.ɵɵInjectableDeclaration<HTTPManagerStateService<any>>;
|
|
741
876
|
}
|
|
@@ -1033,6 +1168,8 @@ declare class RequestService extends WebsocketService {
|
|
|
1033
1168
|
isPending$: Observable<boolean>;
|
|
1034
1169
|
progress: BehaviorSubject<number>;
|
|
1035
1170
|
progress$: Observable<number>;
|
|
1171
|
+
streamProgress: BehaviorSubject<StreamProgress>;
|
|
1172
|
+
streamProgress$: Observable<StreamProgress>;
|
|
1036
1173
|
getRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
1037
1174
|
getRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
1038
1175
|
getRecordRequest<T>(options: ApiRequest & {
|
|
@@ -1238,21 +1375,6 @@ declare class UploadValidationErrorModel implements UploadValidationErrorInterfa
|
|
|
1238
1375
|
static adapt(item?: any): UploadValidationErrorModel;
|
|
1239
1376
|
}
|
|
1240
1377
|
|
|
1241
|
-
interface UserDataInterface {
|
|
1242
|
-
ldap: string;
|
|
1243
|
-
name: string;
|
|
1244
|
-
email: string;
|
|
1245
|
-
color: string;
|
|
1246
|
-
}
|
|
1247
|
-
declare class UserData implements UserDataInterface {
|
|
1248
|
-
ldap: string;
|
|
1249
|
-
name: string;
|
|
1250
|
-
email: string;
|
|
1251
|
-
color: string;
|
|
1252
|
-
constructor(ldap?: string, name?: string, email?: string, color?: string);
|
|
1253
|
-
static adapt(item?: any): UserData;
|
|
1254
|
-
}
|
|
1255
|
-
|
|
1256
1378
|
declare class ObjectMergerService {
|
|
1257
1379
|
private configOptions?;
|
|
1258
1380
|
utils: UtilsService;
|
|
@@ -1438,6 +1560,7 @@ declare class HTTPManagerService<T> extends RequestService {
|
|
|
1438
1560
|
data$: Observable<any>;
|
|
1439
1561
|
private polling$;
|
|
1440
1562
|
config: ApiRequest;
|
|
1563
|
+
streamProgress$: Observable<StreamProgress>;
|
|
1441
1564
|
constructor(configOptions?: ConfigOptions | undefined);
|
|
1442
1565
|
/**
|
|
1443
1566
|
* Connect to WebSocket server
|
|
@@ -1778,54 +1901,6 @@ declare class HTTPManagerSignalsService<T> extends RequestSignalsService {
|
|
|
1778
1901
|
static ɵprov: i0.ɵɵInjectableDeclaration<HTTPManagerSignalsService<any>>;
|
|
1779
1902
|
}
|
|
1780
1903
|
|
|
1781
|
-
declare function countdown(duration: number): Observable<number>;
|
|
1782
|
-
|
|
1783
|
-
declare function delayedRetry<T>(delayMs: number, maxRetry?: number): (src: Observable<T>) => Observable<T>;
|
|
1784
|
-
|
|
1785
|
-
declare function requestPolling<T>(pollInterval: number, stopCondition$: Observable<any>, isPending$: any): (source: Observable<T>) => Observable<T>;
|
|
1786
|
-
|
|
1787
|
-
interface StreamConfig {
|
|
1788
|
-
streamType: StreamType;
|
|
1789
|
-
}
|
|
1790
|
-
interface StreamEvent<T = any> {
|
|
1791
|
-
type: 'progress' | 'complete' | 'data';
|
|
1792
|
-
data: T;
|
|
1793
|
-
metadata?: {
|
|
1794
|
-
timestamp: Date;
|
|
1795
|
-
streamType: StreamType;
|
|
1796
|
-
contentLength?: number;
|
|
1797
|
-
};
|
|
1798
|
-
}
|
|
1799
|
-
interface ParsingResult<T = any> {
|
|
1800
|
-
success: boolean;
|
|
1801
|
-
data?: T[];
|
|
1802
|
-
error?: string;
|
|
1803
|
-
}
|
|
1804
|
-
/**
|
|
1805
|
-
* COMPREHENSIVE REQUEST STREAMING OPERATOR - FULLY ABSTRACTED
|
|
1806
|
-
* Refactored for better type safety and memory management
|
|
1807
|
-
*
|
|
1808
|
-
* Single function that handles ALL streaming formats without hardcoded assumptions:
|
|
1809
|
-
* - JSON format (Individual JSON objects)
|
|
1810
|
-
* - NDJSON format (Newline delimited JSON)
|
|
1811
|
-
* - AI streaming format (Real-time AI responses)
|
|
1812
|
-
* - Server-Sent Events format
|
|
1813
|
-
* - Auto-detection mode
|
|
1814
|
-
*
|
|
1815
|
-
* Usage:
|
|
1816
|
-
* this.http.get(url, options).pipe(requestStreaming()).subscribe(data => {...})
|
|
1817
|
-
* this.http.get(url, options).pipe(requestStreaming({ streamType: StreamType.NDJSON })).subscribe(data => {...})
|
|
1818
|
-
*/
|
|
1819
|
-
declare function requestStreaming<T = any>(config?: StreamConfig): OperatorFunction<any, T[]>;
|
|
1820
|
-
/**
|
|
1821
|
-
* Convenience functions for common use cases
|
|
1822
|
-
*/
|
|
1823
|
-
declare function streamJSON<T = any>(): OperatorFunction<any, T[]>;
|
|
1824
|
-
declare function streamNDJSON<T = any>(): OperatorFunction<any, T[]>;
|
|
1825
|
-
declare function streamAI<T = any>(): OperatorFunction<any, T[]>;
|
|
1826
|
-
declare function streamEvents<T = any>(): OperatorFunction<any, T[]>;
|
|
1827
|
-
declare function streamAuto<T = any>(): OperatorFunction<any, T[]>;
|
|
1828
|
-
|
|
1829
1904
|
interface State {
|
|
1830
1905
|
localStores: StorageData[];
|
|
1831
1906
|
sessionStores: StorageData[];
|
|
@@ -2118,6 +2193,43 @@ declare const UUID: () => `${string}-${string}-${string}-${string}-${string}`;
|
|
|
2118
2193
|
*/
|
|
2119
2194
|
declare const UUID_STR: () => string;
|
|
2120
2195
|
|
|
2196
|
+
type QueryValue = string;
|
|
2197
|
+
type NormalizedQueryParams = Record<string, QueryValue>;
|
|
2198
|
+
interface NormalizedRequestOptionsInterface {
|
|
2199
|
+
pathKey: string;
|
|
2200
|
+
query: NormalizedQueryParams;
|
|
2201
|
+
hasQuery: boolean;
|
|
2202
|
+
}
|
|
2203
|
+
declare class NormalizedRequestOptionsModel implements NormalizedRequestOptionsInterface {
|
|
2204
|
+
pathKey: string;
|
|
2205
|
+
query: NormalizedQueryParams;
|
|
2206
|
+
hasQuery: boolean;
|
|
2207
|
+
constructor(pathKey?: string, query?: NormalizedQueryParams, hasQuery?: boolean);
|
|
2208
|
+
static adapt(item?: any): NormalizedRequestOptionsModel;
|
|
2209
|
+
}
|
|
2210
|
+
|
|
2211
|
+
interface PathTrackerStateInterface {
|
|
2212
|
+
baselineQuery?: NormalizedQueryParams;
|
|
2213
|
+
consumedValuesByKey: Record<string, QueryValue[]>;
|
|
2214
|
+
watchExpiresAt?: number;
|
|
2215
|
+
}
|
|
2216
|
+
declare class PathTrackerStateModel implements PathTrackerStateInterface {
|
|
2217
|
+
baselineQuery?: NormalizedQueryParams | undefined;
|
|
2218
|
+
consumedValuesByKey: Record<string, QueryValue[]>;
|
|
2219
|
+
watchExpiresAt?: number | undefined;
|
|
2220
|
+
constructor(baselineQuery?: NormalizedQueryParams | undefined, consumedValuesByKey?: Record<string, QueryValue[]>, watchExpiresAt?: number | undefined);
|
|
2221
|
+
static adapt(item?: any): PathTrackerStateModel;
|
|
2222
|
+
}
|
|
2223
|
+
|
|
2224
|
+
interface QueryTrackerStateInterface {
|
|
2225
|
+
paths: Record<string, PathTrackerStateInterface>;
|
|
2226
|
+
}
|
|
2227
|
+
declare class QueryTrackerStateModel implements QueryTrackerStateInterface {
|
|
2228
|
+
paths: Record<string, PathTrackerStateInterface>;
|
|
2229
|
+
constructor(paths?: Record<string, PathTrackerStateInterface>);
|
|
2230
|
+
static adapt(item?: any): QueryTrackerStateModel;
|
|
2231
|
+
}
|
|
2232
|
+
|
|
2121
2233
|
interface ErrorDisplaySettingsInterface {
|
|
2122
2234
|
displayTime: number;
|
|
2123
2235
|
position: string;
|
|
@@ -2305,6 +2417,21 @@ declare class RequestManagerBasicDemoComponent implements OnInit {
|
|
|
2305
2417
|
static ɵcmp: i0.ɵɵComponentDeclaration<RequestManagerBasicDemoComponent, "app-request-manager-basic-demo", never, {}, {}, never, never, false, never>;
|
|
2306
2418
|
}
|
|
2307
2419
|
|
|
2420
|
+
interface UserDataInterface {
|
|
2421
|
+
ldap: string;
|
|
2422
|
+
name: string;
|
|
2423
|
+
email: string;
|
|
2424
|
+
color: string;
|
|
2425
|
+
}
|
|
2426
|
+
declare class UserData implements UserDataInterface {
|
|
2427
|
+
ldap: string;
|
|
2428
|
+
name: string;
|
|
2429
|
+
email: string;
|
|
2430
|
+
color: string;
|
|
2431
|
+
constructor(ldap?: string, name?: string, email?: string, color?: string);
|
|
2432
|
+
static adapt(item?: any): UserData;
|
|
2433
|
+
}
|
|
2434
|
+
|
|
2308
2435
|
declare class HttpRequestServicesDemoComponent implements OnInit {
|
|
2309
2436
|
private configOptions?;
|
|
2310
2437
|
wsServer: string;
|
|
@@ -2372,11 +2499,11 @@ declare class ClientInfo$1 implements ClientInfoInterface$1 {
|
|
|
2372
2499
|
declare class StateManagerDemoService extends HTTPManagerStateService<any> {
|
|
2373
2500
|
constructor();
|
|
2374
2501
|
setAPIOptions(apiOptions: ApiRequest, dataType: DataType, database?: DatabaseStorage): void;
|
|
2375
|
-
getClients(): void;
|
|
2502
|
+
getClients(options?: RequestOptions): void;
|
|
2376
2503
|
createClient(data: any): void;
|
|
2377
2504
|
updateClient(data: ClientInfo$1): void;
|
|
2378
2505
|
deleteClient(data: ClientInfo$1): void;
|
|
2379
|
-
streamRequest(): void;
|
|
2506
|
+
streamRequest(options?: RequestOptions): void;
|
|
2380
2507
|
static ɵfac: i0.ɵɵFactoryDeclaration<StateManagerDemoService, never>;
|
|
2381
2508
|
static ɵprov: i0.ɵɵInjectableDeclaration<StateManagerDemoService>;
|
|
2382
2509
|
}
|
|
@@ -2444,6 +2571,7 @@ declare class RequestManagerStateDemoComponent implements OnInit {
|
|
|
2444
2571
|
STREAM_AI$: Observable<any>;
|
|
2445
2572
|
failedState: any;
|
|
2446
2573
|
pollingState: any;
|
|
2574
|
+
DBState: any;
|
|
2447
2575
|
questionControl: _angular_forms.FormControl<string | null>;
|
|
2448
2576
|
requestType: string;
|
|
2449
2577
|
prompts: string[];
|
|
@@ -2478,6 +2606,8 @@ declare class RequestManagerStateDemoComponent implements OnInit {
|
|
|
2478
2606
|
database: _angular_forms.FormGroup<{
|
|
2479
2607
|
table: _angular_forms.FormControl<string | null>;
|
|
2480
2608
|
expiresIn: _angular_forms.FormControl<string | null>;
|
|
2609
|
+
watchParams: _angular_forms.FormControl<string | null>;
|
|
2610
|
+
watchExpiresAt: _angular_forms.FormControl<string | null>;
|
|
2481
2611
|
}>;
|
|
2482
2612
|
}>;
|
|
2483
2613
|
get hasChanged(): boolean;
|
|
@@ -2485,6 +2615,8 @@ declare class RequestManagerStateDemoComponent implements OnInit {
|
|
|
2485
2615
|
get database(): {
|
|
2486
2616
|
table: string | null;
|
|
2487
2617
|
expiresIn: string | null;
|
|
2618
|
+
watchParams: string | null;
|
|
2619
|
+
watchExpiresAt: string | null;
|
|
2488
2620
|
} | undefined;
|
|
2489
2621
|
get retry(): {
|
|
2490
2622
|
times: number | null;
|
|
@@ -2513,10 +2645,15 @@ declare class RequestManagerStateDemoComponent implements OnInit {
|
|
|
2513
2645
|
onStreamType(type: string): void;
|
|
2514
2646
|
addHeader(): void;
|
|
2515
2647
|
removeHeader(index: number): void;
|
|
2648
|
+
private parsePathInput;
|
|
2649
|
+
private normalizeQueryValue;
|
|
2516
2650
|
compileRequest(): {
|
|
2517
2651
|
apiOptions: ApiRequest;
|
|
2518
|
-
path:
|
|
2652
|
+
path: any[];
|
|
2519
2653
|
};
|
|
2654
|
+
private parseWatchParams;
|
|
2655
|
+
private normalizeWatchExpiry;
|
|
2656
|
+
private buildDemoRequestOptions;
|
|
2520
2657
|
onSetStateOptions(): void;
|
|
2521
2658
|
onClearRecords(): void;
|
|
2522
2659
|
onGetRequest(): void;
|
|
@@ -3687,5 +3824,5 @@ declare class StoreStateSignalsDemoComponent implements OnInit {
|
|
|
3687
3824
|
static ɵcmp: i0.ɵɵComponentDeclaration<StoreStateSignalsDemoComponent, "app-store-state-signals-demo", never, {}, {}, never, never, false, never>;
|
|
3688
3825
|
}
|
|
3689
3826
|
|
|
3690
|
-
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 };
|
|
3691
|
-
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, TableRecord, TableSchemaDefInterface, UploadValidationErrorInterface, UserDataInterface, WSOptionsInterface };
|
|
3827
|
+
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, NormalizedRequestOptionsModel, NotificationMessage, OperationResultModel, PathQueryService, PathTrackerStateModel, PublicMessage, QueryParamsTrackerOptionsModel, QueryParamsTrackerService, QueryTrackerStateModel, 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 };
|
|
3828
|
+
export type { APIStateManagerData, ApiRequestInterface, BatchErrorState, BatchOptionsInterface, BatchPendingState, BatchProgress, BatchRequestState, BatchResultInterface, BatchSuccessState, ConfigHTTPOptionsInterface, ConfigOptionsInterface, DatabaseStorageInterface, ErrorDisplaySettingsInterface, GlobalStoreOptionsInterface, InvalidFileInfoInterface, LocalStorageOptionsInterface, NormalizedQueryParams, NormalizedRequestOptionsInterface, NotificationMessageInterface, OperationResultInterface, ParsingResult, PathTrackerStateInterface, PublicMessageInterface, QueryParamsTrackerOptions, QueryParamsTrackerOptionsInterface, QueryTrackerStateInterface, QueryValue, RequestOptionsInterface, RetryOptionsInterface, SettingOptionsInterface, State, StateMessageInterface, StateOperationResultInterface, StateStorageOptionsInterface, StateStoreManagerData$1 as StateStoreManagerData, StorageDataInterface, StorageOptionInterface, StreamConfig, StreamEvent, StreamOutput, StreamProgress, TableRecord, TableSchemaDefInterface, UploadValidationErrorInterface, UserDataInterface, WSOptionsInterface };
|
|
Binary file
|