http-request-manager 18.5.16 → 18.5.17
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.5.
|
|
3
|
+
"version": "18.5.17",
|
|
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,
|
|
2
|
+
import { Observable, BehaviorSubject, OperatorFunction, Subscription } from 'rxjs';
|
|
3
3
|
import * as i0 from '@angular/core';
|
|
4
4
|
import { InjectionToken, Injector, OnDestroy, OnInit, EventEmitter, ModuleWithProviders } from '@angular/core';
|
|
5
5
|
import { ComponentStore } from '@ngrx/component-store';
|
|
@@ -385,16 +385,16 @@ declare class HTTPManagerStateService<T extends {
|
|
|
385
385
|
userAction$: Observable<any>;
|
|
386
386
|
wsConnection: boolean;
|
|
387
387
|
wsOptions: WSOptions;
|
|
388
|
-
connectionStatus
|
|
388
|
+
connectionStatus$?: Observable<boolean>;
|
|
389
389
|
constructor(apiOptions: ApiRequest, dataType: DataType | undefined, database?: DatabaseStorage | undefined);
|
|
390
390
|
setApiRequestOptions(apiOptions?: ApiRequest, dataType?: DataType, database?: DatabaseStorage): void;
|
|
391
391
|
private setupConnectionStatus;
|
|
392
|
-
readonly initWS: (observableOrValue: WSOptions | Observable<WSOptions>) => Subscription;
|
|
392
|
+
readonly initWS: (observableOrValue: WSOptions | Observable<WSOptions>) => rxjs.Subscription;
|
|
393
393
|
appendMessages(message: any): void;
|
|
394
394
|
latestMessage(): void;
|
|
395
395
|
clearMessages(): void;
|
|
396
396
|
get ApiRequestOptions(): ApiRequest;
|
|
397
|
-
readonly initDBStorage: (observableOrValue?: void | Observable<void> | undefined) => Subscription;
|
|
397
|
+
readonly initDBStorage: (observableOrValue?: void | Observable<void> | undefined) => rxjs.Subscription;
|
|
398
398
|
initializeState(data: any): void;
|
|
399
399
|
readonly data$: Observable<T | T[] | null>;
|
|
400
400
|
readonly selectRecord$: (id: number) => Observable<T | T[] | null>;
|
|
@@ -403,15 +403,15 @@ declare class HTTPManagerStateService<T extends {
|
|
|
403
403
|
private readonly addData$;
|
|
404
404
|
private readonly deleteData$;
|
|
405
405
|
private readonly updateData$;
|
|
406
|
-
readonly clearRecords: (observableOrValue?: void | Observable<void> | undefined) => Subscription;
|
|
407
|
-
readonly fetchRecords: (options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
406
|
+
readonly clearRecords: (observableOrValue?: void | Observable<void> | undefined) => rxjs.Subscription;
|
|
407
|
+
readonly fetchRecords: (options?: RequestOptions) => ((observableOrValue?: any) => rxjs.Subscription) | ((observableOrValue: any) => rxjs.Subscription);
|
|
408
408
|
private initDBStorageAsync;
|
|
409
|
-
readonly fetchRecord: (options: RequestOptions, method: string) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
410
|
-
readonly createRecord: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
411
|
-
readonly updateRecord: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
412
|
-
readonly deleteRecord: (options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
413
|
-
readonly createStream: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
414
|
-
readonly fetchStream: (options?: RequestOptions) => ((observableOrValue?: any) => Subscription) | ((observableOrValue: any) => Subscription);
|
|
409
|
+
readonly fetchRecord: (options: RequestOptions, method: string) => ((observableOrValue?: any) => rxjs.Subscription) | ((observableOrValue: any) => rxjs.Subscription);
|
|
410
|
+
readonly createRecord: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => rxjs.Subscription) | ((observableOrValue: any) => rxjs.Subscription);
|
|
411
|
+
readonly updateRecord: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => rxjs.Subscription) | ((observableOrValue: any) => rxjs.Subscription);
|
|
412
|
+
readonly deleteRecord: (options?: RequestOptions) => ((observableOrValue?: any) => rxjs.Subscription) | ((observableOrValue: any) => rxjs.Subscription);
|
|
413
|
+
readonly createStream: (data: any | null, options?: RequestOptions) => ((observableOrValue?: any) => rxjs.Subscription) | ((observableOrValue: any) => rxjs.Subscription);
|
|
414
|
+
readonly fetchStream: (options?: RequestOptions) => ((observableOrValue?: any) => rxjs.Subscription) | ((observableOrValue: any) => rxjs.Subscription);
|
|
415
415
|
private wsCommunication;
|
|
416
416
|
wsMessaging(message: ChannelMessage, channels?: string[]): void;
|
|
417
417
|
private isEmpty;
|
|
@@ -1472,7 +1472,7 @@ declare class RequestManagerWsDemoComponent implements OnInit {
|
|
|
1472
1472
|
user$: Observable<WSUser | null>;
|
|
1473
1473
|
attempts$: Observable<number>;
|
|
1474
1474
|
nextRetry$: Observable<number>;
|
|
1475
|
-
connectionStatus$: Observable<boolean
|
|
1475
|
+
connectionStatus$: Observable<boolean> | undefined;
|
|
1476
1476
|
data$: Observable<any>;
|
|
1477
1477
|
isPending$: Observable<boolean>;
|
|
1478
1478
|
ngOnInit(): void;
|
|
@@ -1546,7 +1546,6 @@ declare class StateDataRequestService extends HTTPManagerStateService<any> {
|
|
|
1546
1546
|
attempts$: rxjs.Observable<number>;
|
|
1547
1547
|
nextRetry$: rxjs.Observable<number>;
|
|
1548
1548
|
path: string[];
|
|
1549
|
-
wsChannel: string;
|
|
1550
1549
|
constructor();
|
|
1551
1550
|
updateConnection(server: string, wsServer: string, jwtToken: string, user: any, path?: string[], wsChannel?: string): void;
|
|
1552
1551
|
addData(): void;
|
|
@@ -1591,7 +1590,7 @@ declare class WsMessagingComponent implements OnInit {
|
|
|
1591
1590
|
user$: Observable<WSUser | null>;
|
|
1592
1591
|
users$: Observable<any[]>;
|
|
1593
1592
|
data$: Observable<any>;
|
|
1594
|
-
connectionStatus$: Observable<boolean
|
|
1593
|
+
connectionStatus$: Observable<boolean> | undefined;
|
|
1595
1594
|
messages: _angular_forms.FormGroup<{
|
|
1596
1595
|
channels: FormControl<WSUser[] | null>;
|
|
1597
1596
|
toUsers: FormControl<WSUser[] | null>;
|
|
Binary file
|