http-request-manager 18.3.1 → 18.3.2
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.
- package/esm2022/lib/services/index.mjs +2 -1
- package/esm2022/lib/services/store-state-manager-service/index.mjs +3 -0
- package/esm2022/lib/services/store-state-manager-service/models/index.mjs +2 -0
- package/esm2022/lib/services/store-state-manager-service/models/state-storage-options.model.mjs +12 -0
- package/esm2022/lib/services/store-state-manager-service/store-state-manager.service.mjs +71 -0
- package/fesm2022/http-request-manager.mjs +77 -2
- package/fesm2022/http-request-manager.mjs.map +1 -1
- package/http-request-manager-18.3.2.tgz +0 -0
- package/lib/services/index.d.ts +1 -0
- package/lib/services/store-state-manager-service/index.d.ts +2 -0
- package/lib/services/store-state-manager-service/models/index.d.ts +1 -0
- package/lib/services/store-state-manager-service/models/state-storage-options.model.d.ts +13 -0
- package/lib/services/store-state-manager-service/store-state-manager.service.d.ts +22 -0
- package/package.json +1 -1
- package/http-request-manager-18.3.1.tgz +0 -0
|
Binary file
|
package/lib/services/index.d.ts
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
export * from "./local-storage-manager-service/index";
|
|
2
2
|
export * from "./request-manager-services/index";
|
|
3
3
|
export * from "./request-manager-state-service/index";
|
|
4
|
+
export * from "./store-state-manager-service/index";
|
|
4
5
|
export * from "./ws-manager-service/index";
|
|
5
6
|
export * from "./utils/index";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from "./state-storage-options.model";
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import { SettingOptions } from "../../local-storage-manager-service";
|
|
2
|
+
export interface StateStorageOptionsInterface {
|
|
3
|
+
store?: string;
|
|
4
|
+
options?: SettingOptions;
|
|
5
|
+
model?: (state: any) => any;
|
|
6
|
+
}
|
|
7
|
+
export declare class StateStorageOptions implements StateStorageOptionsInterface {
|
|
8
|
+
store?: string | undefined;
|
|
9
|
+
options?: SettingOptions | undefined;
|
|
10
|
+
model?: ((state: any) => any) | undefined;
|
|
11
|
+
constructor(store?: string | undefined, options?: SettingOptions | undefined, model?: ((state: any) => any) | undefined);
|
|
12
|
+
static adapt(item?: any): StateStorageOptions;
|
|
13
|
+
}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import { ComponentStore } from '@ngrx/component-store';
|
|
2
|
+
import { Subscription } from 'rxjs';
|
|
3
|
+
import { LocalStorageManagerService } from './../local-storage-manager-service/local-storage-manager.service';
|
|
4
|
+
import { StateStorageOptions } from './models/state-storage-options.model';
|
|
5
|
+
import * as i0 from "@angular/core";
|
|
6
|
+
export interface StateStoreManagerData<T> {
|
|
7
|
+
}
|
|
8
|
+
export declare class StoreStateManagerService<T extends object = StateStoreManagerData<any>> extends ComponentStore<T> {
|
|
9
|
+
private options;
|
|
10
|
+
localStorageManagerService: LocalStorageManagerService;
|
|
11
|
+
settings: any;
|
|
12
|
+
private isRestoring;
|
|
13
|
+
constructor(options?: StateStorageOptions);
|
|
14
|
+
private static init;
|
|
15
|
+
init(options?: StateStorageOptions): void;
|
|
16
|
+
restoreState(): Subscription;
|
|
17
|
+
updateState(state: any): void;
|
|
18
|
+
readonly data$: import("rxjs").Observable<any>;
|
|
19
|
+
readonly updateData: (() => void) | ((observableOrValue: any) => Subscription);
|
|
20
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<StoreStateManagerService<any>, never>;
|
|
21
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<StoreStateManagerService<any>>;
|
|
22
|
+
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "http-request-manager",
|
|
3
|
-
"version": "18.3.
|
|
3
|
+
"version": "18.3.2",
|
|
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",
|
|
Binary file
|