http-request-manager 18.9.0 → 18.9.3
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.9.
|
|
3
|
+
"version": "18.9.3",
|
|
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",
|
|
@@ -342,7 +342,7 @@ declare class DatabaseManagerService extends DbService {
|
|
|
342
342
|
}[]>;
|
|
343
343
|
deleteTableRecord<T>(table: string, id: number): Observable<number | null>;
|
|
344
344
|
deleteTableRecords(table: string, ids: number[]): Observable<number[]>;
|
|
345
|
-
clearTable(table: string): Observable<
|
|
345
|
+
clearTable(table: string): Observable<never[]>;
|
|
346
346
|
static ɵfac: i0.ɵɵFactoryDeclaration<DatabaseManagerService, never>;
|
|
347
347
|
static ɵprov: i0.ɵɵInjectableDeclaration<DatabaseManagerService>;
|
|
348
348
|
}
|
|
@@ -393,7 +393,6 @@ declare class HTTPManagerStateService<T extends {
|
|
|
393
393
|
}> extends ComponentStore<APIStateManagerData<T>> {
|
|
394
394
|
private apiOptions;
|
|
395
395
|
private dataType;
|
|
396
|
-
private database?;
|
|
397
396
|
httpManagerService: HTTPManagerService<any>;
|
|
398
397
|
dbManagerService: DatabaseManagerService;
|
|
399
398
|
localStorageManagerService: LocalStorageManagerService;
|
|
@@ -445,7 +444,7 @@ declare class HTTPManagerStateService<T extends {
|
|
|
445
444
|
private static wsCommunicationQueue;
|
|
446
445
|
wsOptions: WSOptions;
|
|
447
446
|
connectionStatus$: Observable<boolean>;
|
|
448
|
-
constructor(apiOptions: ApiRequest, dataType: DataType | undefined, database?: DatabaseStorage
|
|
447
|
+
constructor(apiOptions: ApiRequest, dataType: DataType | undefined, database?: DatabaseStorage);
|
|
449
448
|
/**
|
|
450
449
|
* Add appropriate prefix to a channel name if not already present
|
|
451
450
|
*/
|
|
@@ -574,6 +573,12 @@ declare class HTTPManagerStateService<T extends {
|
|
|
574
573
|
* @param channel - Base channel name (MES- prefix added automatically)
|
|
575
574
|
*/
|
|
576
575
|
sendNotification(channel: string, content: any): void;
|
|
576
|
+
/**
|
|
577
|
+
* Clear/flush all records from the database table
|
|
578
|
+
* Does not clear localStorage metadata (expires info)
|
|
579
|
+
* Does not re-fetch from API - leaves state empty for manual refresh
|
|
580
|
+
*/
|
|
581
|
+
clearDatabase(): void;
|
|
577
582
|
private isEmpty;
|
|
578
583
|
private updateRequestOptions;
|
|
579
584
|
static ɵfac: i0.ɵɵFactoryDeclaration<HTTPManagerStateService<any>, never>;
|
|
Binary file
|