http-request-manager 18.12.9 → 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.
|
|
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
|
}
|
|
@@ -11,7 +11,6 @@ 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';
|
|
15
14
|
import { DataSource } from '@angular/cdk/collections';
|
|
16
15
|
import * as i4 from '@angular/common';
|
|
17
16
|
import * as i7 from '@angular/material/button';
|
|
@@ -269,7 +268,6 @@ interface ApiRequestInterface {
|
|
|
269
268
|
retry?: RetryOptions;
|
|
270
269
|
stream?: boolean;
|
|
271
270
|
streamType?: StreamType;
|
|
272
|
-
totalHeader?: string;
|
|
273
271
|
displayError?: boolean;
|
|
274
272
|
displaySuccess?: boolean;
|
|
275
273
|
successMessage?: string;
|
|
@@ -295,7 +293,6 @@ declare class ApiRequest implements ApiRequestInterface {
|
|
|
295
293
|
retry?: RetryOptions | undefined;
|
|
296
294
|
stream?: boolean | undefined;
|
|
297
295
|
streamType?: StreamType | undefined;
|
|
298
|
-
totalHeader?: string | undefined;
|
|
299
296
|
displayError?: boolean | undefined;
|
|
300
297
|
displaySuccess?: boolean | undefined;
|
|
301
298
|
successMessage?: string | undefined;
|
|
@@ -310,7 +307,7 @@ declare class ApiRequest implements ApiRequestInterface {
|
|
|
310
307
|
allowedTypes?: string[] | undefined;
|
|
311
308
|
maxFileSize?: number | undefined;
|
|
312
309
|
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,
|
|
310
|
+
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);
|
|
314
311
|
static adapt(item?: any): ApiRequest;
|
|
315
312
|
}
|
|
316
313
|
|
|
@@ -436,11 +433,17 @@ declare class DatabaseStorage implements DatabaseStorageInterface {
|
|
|
436
433
|
interface RequestOptionsInterface {
|
|
437
434
|
path: any[];
|
|
438
435
|
headers: any;
|
|
436
|
+
forceRefresh?: boolean;
|
|
437
|
+
watchParams?: string[];
|
|
438
|
+
watchExpiresAt?: string | number;
|
|
439
439
|
}
|
|
440
440
|
declare class RequestOptions implements RequestOptionsInterface {
|
|
441
441
|
path: any[];
|
|
442
442
|
headers: {};
|
|
443
|
-
|
|
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);
|
|
444
447
|
static adapt(item?: any): RequestOptions;
|
|
445
448
|
}
|
|
446
449
|
|
|
@@ -506,15 +509,9 @@ declare class DatabaseManagerService extends DbService {
|
|
|
506
509
|
getTableRecords(table: string): Observable<unknown>;
|
|
507
510
|
getTableRecord(table: string, id: number): Observable<any>;
|
|
508
511
|
createTableRecord(table: string, record: any): Observable<any>;
|
|
509
|
-
createTableRecords(table: string, records: any[]): Observable<
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
updateTableRecord(table: string, record: any): Observable<{
|
|
513
|
-
[key: string]: any;
|
|
514
|
-
} | null>;
|
|
515
|
-
updateTableRecords(table: string, records: any[]): Observable<{
|
|
516
|
-
[key: string]: any;
|
|
517
|
-
}[]>;
|
|
512
|
+
createTableRecords(table: string, records: any[]): Observable<any[]>;
|
|
513
|
+
updateTableRecord(table: string, record: any): Observable<any>;
|
|
514
|
+
updateTableRecords(table: string, records: any[]): Observable<any[]>;
|
|
518
515
|
deleteTableRecord<T>(table: string, id: number): Observable<number | null>;
|
|
519
516
|
deleteTableRecords(table: string, ids: number[]): Observable<number[]>;
|
|
520
517
|
clearTable(table: string): Observable<never[]>;
|
|
@@ -522,6 +519,53 @@ declare class DatabaseManagerService extends DbService {
|
|
|
522
519
|
static ɵprov: i0.ɵɵInjectableDeclaration<DatabaseManagerService>;
|
|
523
520
|
}
|
|
524
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
|
+
|
|
525
569
|
interface ChannelMessageInterface {
|
|
526
570
|
messageId?: number;
|
|
527
571
|
channel?: string;
|
|
@@ -618,12 +662,11 @@ declare class HTTPManagerStateService<T extends {
|
|
|
618
662
|
httpManagerService: HTTPManagerService<any>;
|
|
619
663
|
dbManagerService: DatabaseManagerService;
|
|
620
664
|
localStorageManagerService: LocalStorageManagerService;
|
|
665
|
+
queryParamsTrackerService: QueryParamsTrackerService;
|
|
621
666
|
utils: UtilsService;
|
|
622
667
|
logger: LoggerService;
|
|
623
668
|
error$: Observable<boolean>;
|
|
624
669
|
isPending$: Observable<boolean>;
|
|
625
|
-
progress$: Observable<number>;
|
|
626
|
-
streamProgress$: Observable<StreamProgress>;
|
|
627
670
|
private operationSuccess;
|
|
628
671
|
operationSuccess$: Observable<OperationResultModel | null>;
|
|
629
672
|
private page;
|
|
@@ -633,15 +676,16 @@ declare class HTTPManagerStateService<T extends {
|
|
|
633
676
|
private percentage;
|
|
634
677
|
percentage$: Observable<number>;
|
|
635
678
|
private hasDatabase;
|
|
636
|
-
streamedResponse:
|
|
679
|
+
streamedResponse: never[];
|
|
637
680
|
private maxRetries;
|
|
638
681
|
private retryDelay;
|
|
639
682
|
private shouldRetry;
|
|
640
683
|
private connectionStatusSubscription?;
|
|
641
684
|
private databaseOptions?;
|
|
685
|
+
private readonly volatileHeaders;
|
|
686
|
+
private requestSignatureCache;
|
|
642
687
|
private wsRetryAttempts;
|
|
643
688
|
wsRetryAttempts$: Observable<number>;
|
|
644
|
-
private activeStream$;
|
|
645
689
|
private wsNextRetry;
|
|
646
690
|
wsNextRetry$: Observable<number>;
|
|
647
691
|
private messages;
|
|
@@ -698,13 +742,6 @@ declare class HTTPManagerStateService<T extends {
|
|
|
698
742
|
readonly data$: Observable<T | T[] | null>;
|
|
699
743
|
readonly selectRecord$: (id: number) => Observable<T | T[] | null>;
|
|
700
744
|
private readonly setData$;
|
|
701
|
-
/**
|
|
702
|
-
* Streaming-only updater: replaces `data` with the incoming array.
|
|
703
|
-
*
|
|
704
|
-
* The streaming operator (`requestStreaming`) accumulates records via `scan`,
|
|
705
|
-
* so each emission is the full accumulated dataset. Replace, don't merge.
|
|
706
|
-
*/
|
|
707
|
-
private readonly setStreamData$;
|
|
708
745
|
private updateArrayState;
|
|
709
746
|
private readonly addData$;
|
|
710
747
|
private readonly deleteData$;
|
|
@@ -712,12 +749,15 @@ declare class HTTPManagerStateService<T extends {
|
|
|
712
749
|
readonly clearRecords: (observableOrValue?: void | Observable<void> | undefined) => Subscription;
|
|
713
750
|
readonly fetchRecords: (options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
714
751
|
private initDBStorageAsync;
|
|
752
|
+
private buildSchemaFromAdapter;
|
|
753
|
+
private buildSchemaFromSample;
|
|
754
|
+
private persistStreamDataToDb;
|
|
715
755
|
readonly fetchRecord: (options: RequestOptions, method: string) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
716
756
|
readonly createRecord: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
717
757
|
readonly updateRecord: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
718
758
|
readonly deleteRecord: (options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
719
759
|
readonly createStream: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
720
|
-
readonly fetchStream: ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
760
|
+
readonly fetchStream: (options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
721
761
|
private wsCommunication;
|
|
722
762
|
/**
|
|
723
763
|
* Actually send the WebSocket message (called when connected or from queue)
|
|
@@ -817,6 +857,20 @@ declare class HTTPManagerStateService<T extends {
|
|
|
817
857
|
clearDatabase(): void;
|
|
818
858
|
private isEmpty;
|
|
819
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;
|
|
820
874
|
static ɵfac: i0.ɵɵFactoryDeclaration<HTTPManagerStateService<any>, never>;
|
|
821
875
|
static ɵprov: i0.ɵɵInjectableDeclaration<HTTPManagerStateService<any>>;
|
|
822
876
|
}
|
|
@@ -1112,8 +1166,6 @@ declare class RequestService extends WebsocketService {
|
|
|
1112
1166
|
private headersService;
|
|
1113
1167
|
isPending: BehaviorSubject<boolean>;
|
|
1114
1168
|
isPending$: Observable<boolean>;
|
|
1115
|
-
isStreamingPending: BehaviorSubject<boolean>;
|
|
1116
|
-
isStreamingPending$: Observable<boolean>;
|
|
1117
1169
|
progress: BehaviorSubject<number>;
|
|
1118
1170
|
progress$: Observable<number>;
|
|
1119
1171
|
streamProgress: BehaviorSubject<StreamProgress>;
|
|
@@ -1142,7 +1194,6 @@ declare class RequestService extends WebsocketService {
|
|
|
1142
1194
|
uploadFileRequest(options: ApiRequest): Observable<any>;
|
|
1143
1195
|
private validateUploadFiles;
|
|
1144
1196
|
private buildFormData;
|
|
1145
|
-
private streamProgressReset;
|
|
1146
1197
|
private handleFinalize;
|
|
1147
1198
|
private downloadFile;
|
|
1148
1199
|
private createFileType;
|
|
@@ -1660,14 +1711,9 @@ declare class RequestSignalsService extends WebsocketService {
|
|
|
1660
1711
|
private http;
|
|
1661
1712
|
private pathQueryService;
|
|
1662
1713
|
private headersService;
|
|
1663
|
-
|
|
1664
|
-
isPending: i0.Signal<boolean>;
|
|
1714
|
+
isPending: i0.WritableSignal<boolean>;
|
|
1665
1715
|
progress: i0.WritableSignal<number>;
|
|
1666
|
-
|
|
1667
|
-
private activeMethod;
|
|
1668
|
-
private activeStreamMethod;
|
|
1669
|
-
private requestQueue;
|
|
1670
|
-
private destroy$;
|
|
1716
|
+
isIdle: i0.Signal<boolean>;
|
|
1671
1717
|
getRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
1672
1718
|
getRecordRequest<T>(options: ApiRequest & {
|
|
1673
1719
|
stream: true;
|
|
@@ -1678,20 +1724,6 @@ declare class RequestSignalsService extends WebsocketService {
|
|
|
1678
1724
|
}, data: any): Observable<T[]>;
|
|
1679
1725
|
updateRecordRequest<T>(options: ApiRequest, data: any): Observable<T>;
|
|
1680
1726
|
deleteRecordRequest<T>(options: ApiRequest): Observable<T>;
|
|
1681
|
-
/**
|
|
1682
|
-
* Queue a request to ensure FIFO processing:
|
|
1683
|
-
* - All requests are queued and processed sequentially
|
|
1684
|
-
* - Streams are protected - non-stream requests wait for active streams
|
|
1685
|
-
*/
|
|
1686
|
-
private queueRequest;
|
|
1687
|
-
/**
|
|
1688
|
-
* Start processing a request
|
|
1689
|
-
*/
|
|
1690
|
-
private startRequest;
|
|
1691
|
-
/**
|
|
1692
|
-
* Clean up completed request and process next in queue
|
|
1693
|
-
*/
|
|
1694
|
-
private cleanupAndProcessNext;
|
|
1695
1727
|
private buildUrlPath;
|
|
1696
1728
|
private buildHeaders;
|
|
1697
1729
|
private buildCombinedHeaders;
|
|
@@ -1701,6 +1733,7 @@ declare class RequestSignalsService extends WebsocketService {
|
|
|
1701
1733
|
uploadFileRequest(options: ApiRequest): Observable<any>;
|
|
1702
1734
|
private validateUploadFiles;
|
|
1703
1735
|
private buildFormData;
|
|
1736
|
+
private handleFinalize;
|
|
1704
1737
|
private downloadFile;
|
|
1705
1738
|
private createFileType;
|
|
1706
1739
|
private combineHeaders;
|
|
@@ -2160,6 +2193,43 @@ declare const UUID: () => `${string}-${string}-${string}-${string}-${string}`;
|
|
|
2160
2193
|
*/
|
|
2161
2194
|
declare const UUID_STR: () => string;
|
|
2162
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
|
+
|
|
2163
2233
|
interface ErrorDisplaySettingsInterface {
|
|
2164
2234
|
displayTime: number;
|
|
2165
2235
|
position: string;
|
|
@@ -2429,11 +2499,11 @@ declare class ClientInfo$1 implements ClientInfoInterface$1 {
|
|
|
2429
2499
|
declare class StateManagerDemoService extends HTTPManagerStateService<any> {
|
|
2430
2500
|
constructor();
|
|
2431
2501
|
setAPIOptions(apiOptions: ApiRequest, dataType: DataType, database?: DatabaseStorage): void;
|
|
2432
|
-
getClients(): void;
|
|
2502
|
+
getClients(options?: RequestOptions): void;
|
|
2433
2503
|
createClient(data: any): void;
|
|
2434
2504
|
updateClient(data: ClientInfo$1): void;
|
|
2435
2505
|
deleteClient(data: ClientInfo$1): void;
|
|
2436
|
-
streamRequest(): void;
|
|
2506
|
+
streamRequest(options?: RequestOptions): void;
|
|
2437
2507
|
static ɵfac: i0.ɵɵFactoryDeclaration<StateManagerDemoService, never>;
|
|
2438
2508
|
static ɵprov: i0.ɵɵInjectableDeclaration<StateManagerDemoService>;
|
|
2439
2509
|
}
|
|
@@ -2467,7 +2537,6 @@ declare class RequestManagerStateDemoComponent implements OnInit {
|
|
|
2467
2537
|
adapter?: Function;
|
|
2468
2538
|
mapper?: Function;
|
|
2469
2539
|
stateManagerDemoService: StateManagerDemoService;
|
|
2470
|
-
progress$: Observable<http_request_manager.StreamProgress>;
|
|
2471
2540
|
displayedColumns: string[];
|
|
2472
2541
|
getColumnsFromData(data: any[]): string[];
|
|
2473
2542
|
updateDisplayedColumns(data: any[]): void;
|
|
@@ -2482,7 +2551,6 @@ declare class RequestManagerStateDemoComponent implements OnInit {
|
|
|
2482
2551
|
streamType: string;
|
|
2483
2552
|
httpManagerService: HTTPManagerService<any>;
|
|
2484
2553
|
isPending$: Observable<boolean>;
|
|
2485
|
-
isStreamingPending$: Observable<boolean>;
|
|
2486
2554
|
error$: Observable<boolean>;
|
|
2487
2555
|
countdown$: Observable<number>;
|
|
2488
2556
|
GET_error$: BehaviorSubject<string>;
|
|
@@ -2495,19 +2563,20 @@ declare class RequestManagerStateDemoComponent implements OnInit {
|
|
|
2495
2563
|
POST$: BehaviorSubject<null>;
|
|
2496
2564
|
PUT$: BehaviorSubject<null>;
|
|
2497
2565
|
DELETE$: BehaviorSubject<null>;
|
|
2498
|
-
STREAM: BehaviorSubject<
|
|
2499
|
-
STREAM$: Observable<
|
|
2566
|
+
STREAM: BehaviorSubject<null>;
|
|
2567
|
+
STREAM$: Observable<null>;
|
|
2500
2568
|
STREAM_AI: BehaviorSubject<{
|
|
2501
2569
|
response: string;
|
|
2502
2570
|
}[]>;
|
|
2503
2571
|
STREAM_AI$: Observable<any>;
|
|
2504
2572
|
failedState: any;
|
|
2505
2573
|
pollingState: any;
|
|
2574
|
+
DBState: any;
|
|
2506
2575
|
questionControl: _angular_forms.FormControl<string | null>;
|
|
2507
2576
|
requestType: string;
|
|
2508
2577
|
prompts: string[];
|
|
2509
2578
|
AIType: number;
|
|
2510
|
-
get dataObservable$(): BehaviorSubject<any> | BehaviorSubject<
|
|
2579
|
+
get dataObservable$(): BehaviorSubject<any> | BehaviorSubject<null> | BehaviorSubject<{
|
|
2511
2580
|
response: string;
|
|
2512
2581
|
}[]>;
|
|
2513
2582
|
sampleClientData: {
|
|
@@ -2537,6 +2606,8 @@ declare class RequestManagerStateDemoComponent implements OnInit {
|
|
|
2537
2606
|
database: _angular_forms.FormGroup<{
|
|
2538
2607
|
table: _angular_forms.FormControl<string | null>;
|
|
2539
2608
|
expiresIn: _angular_forms.FormControl<string | null>;
|
|
2609
|
+
watchParams: _angular_forms.FormControl<string | null>;
|
|
2610
|
+
watchExpiresAt: _angular_forms.FormControl<string | null>;
|
|
2540
2611
|
}>;
|
|
2541
2612
|
}>;
|
|
2542
2613
|
get hasChanged(): boolean;
|
|
@@ -2544,6 +2615,8 @@ declare class RequestManagerStateDemoComponent implements OnInit {
|
|
|
2544
2615
|
get database(): {
|
|
2545
2616
|
table: string | null;
|
|
2546
2617
|
expiresIn: string | null;
|
|
2618
|
+
watchParams: string | null;
|
|
2619
|
+
watchExpiresAt: string | null;
|
|
2547
2620
|
} | undefined;
|
|
2548
2621
|
get retry(): {
|
|
2549
2622
|
times: number | null;
|
|
@@ -2572,10 +2645,15 @@ declare class RequestManagerStateDemoComponent implements OnInit {
|
|
|
2572
2645
|
onStreamType(type: string): void;
|
|
2573
2646
|
addHeader(): void;
|
|
2574
2647
|
removeHeader(index: number): void;
|
|
2648
|
+
private parsePathInput;
|
|
2649
|
+
private normalizeQueryValue;
|
|
2575
2650
|
compileRequest(): {
|
|
2576
2651
|
apiOptions: ApiRequest;
|
|
2577
|
-
path:
|
|
2652
|
+
path: any[];
|
|
2578
2653
|
};
|
|
2654
|
+
private parseWatchParams;
|
|
2655
|
+
private normalizeWatchExpiry;
|
|
2656
|
+
private buildDemoRequestOptions;
|
|
2579
2657
|
onSetStateOptions(): void;
|
|
2580
2658
|
onClearRecords(): void;
|
|
2581
2659
|
onGetRequest(): void;
|
|
@@ -2602,9 +2680,7 @@ declare class RequestManagerDemoComponent implements OnInit {
|
|
|
2602
2680
|
private toastMessage;
|
|
2603
2681
|
questionControl: _angular_forms.FormControl<string | null>;
|
|
2604
2682
|
httpManagerService: HTTPManagerService<any>;
|
|
2605
|
-
progress$: Observable<StreamProgress>;
|
|
2606
2683
|
isPending$: Observable<boolean>;
|
|
2607
|
-
isStreamingPending$: Observable<boolean>;
|
|
2608
2684
|
countdown$: Observable<number>;
|
|
2609
2685
|
GET_error$: BehaviorSubject<string>;
|
|
2610
2686
|
POST_error$: BehaviorSubject<string>;
|
|
@@ -2812,7 +2888,7 @@ declare class RequestSignalsManagerDemoComponent implements OnInit {
|
|
|
2812
2888
|
private fb;
|
|
2813
2889
|
private toastMessage;
|
|
2814
2890
|
httpManagerSignalsService: HTTPManagerSignalsService<any>;
|
|
2815
|
-
isPending: i0.
|
|
2891
|
+
isPending: i0.WritableSignal<boolean>;
|
|
2816
2892
|
countdown: i0.WritableSignal<number>;
|
|
2817
2893
|
GET_result: any;
|
|
2818
2894
|
POST_result: any;
|
|
@@ -3748,5 +3824,5 @@ declare class StoreStateSignalsDemoComponent implements OnInit {
|
|
|
3748
3824
|
static ɵcmp: i0.ɵɵComponentDeclaration<StoreStateSignalsDemoComponent, "app-store-state-signals-demo", never, {}, {}, never, never, false, never>;
|
|
3749
3825
|
}
|
|
3750
3826
|
|
|
3751
|
-
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 };
|
|
3752
|
-
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 };
|
|
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
|