@esolve/ng-esolve-connect 0.124.0 → 0.125.0
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/account/esolve-account.service.mjs +4 -1
- package/esm2022/lib/auth/services/esolve-auth.service.mjs +9 -1
- package/esm2022/lib/stock/classes/esolve-stock-item-location-level.model.mjs +15 -0
- package/esm2022/lib/stock/classes/index.mjs +2 -1
- package/esm2022/lib/stock/esolve-stock.service.mjs +37 -2
- package/esm2022/lib/stock/interfaces/esolve-stock-item-location-level-record.interface.mjs +2 -0
- package/esm2022/lib/stock/interfaces/index.mjs +2 -1
- package/fesm2022/esolve-ng-esolve-connect.mjs +61 -1
- package/fesm2022/esolve-ng-esolve-connect.mjs.map +1 -1
- package/lib/account/esolve-account.service.d.ts +1 -0
- package/lib/auth/services/esolve-auth.service.d.ts +4 -0
- package/lib/stock/classes/esolve-stock-item-location-level.model.d.ts +8 -0
- package/lib/stock/classes/index.d.ts +1 -0
- package/lib/stock/esolve-stock.service.d.ts +18 -1
- package/lib/stock/interfaces/esolve-stock-item-location-level-record.interface.d.ts +6 -0
- package/lib/stock/interfaces/index.d.ts +1 -0
- package/package.json +1 -1
|
@@ -13,6 +13,10 @@ export declare class EsolveAuthService {
|
|
|
13
13
|
login(email: string, password: string): Observable<number>;
|
|
14
14
|
logout(): Promise<EsolveAuthResult>;
|
|
15
15
|
validateCachedTokens(): Promise<boolean>;
|
|
16
|
+
/**
|
|
17
|
+
* Use when logout fails to forcibly reset the local session
|
|
18
|
+
*/
|
|
19
|
+
private resetLocalSession;
|
|
16
20
|
private checkAccessToken;
|
|
17
21
|
private restore;
|
|
18
22
|
handleExternalAuthentication(result: EsolveAuthResult): void;
|
|
@@ -18,3 +18,4 @@ export * from './esolve-stock-price.model';
|
|
|
18
18
|
export * from './esolve-stock-reviews-report.model';
|
|
19
19
|
export * from './esolve-stock-transaction-sales.model';
|
|
20
20
|
export * from './esolve-suggested-stock-item.model';
|
|
21
|
+
export * from './esolve-stock-item-location-level.model';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { Observable } from 'rxjs';
|
|
2
2
|
import { EsolveCustomFields } from '../shared/custom-fields';
|
|
3
3
|
import { EsolveFilterList } from '../shared/filters';
|
|
4
|
-
import { EsolveLinkedStockItem, EsolveRecipeStockItem, EsolveSetNotifyResult, EsolveStockImageCollection, EsolveStockItem, EsolveStockItemList, EsolveSuggestedStockItem } from './classes';
|
|
4
|
+
import { EsolveLinkedStockItem, EsolveRecipeStockItem, EsolveSetNotifyResult, EsolveStockImageCollection, EsolveStockItem, EsolveStockItemList, EsolveStockItemLocationLevel, EsolveSuggestedStockItem } from './classes';
|
|
5
5
|
import { EsolveMediaStockItemOptions, EsolveRecipeStockOptions, EsolveStockFilterOptions, EsolveStockItemHistoryOptions, EsolveStockItemOptions, EsolveTransactionSalesStockItemOptions } from './interfaces';
|
|
6
6
|
import { EsolveMediaStockItemList } from './types';
|
|
7
7
|
import * as i0 from "@angular/core";
|
|
@@ -16,6 +16,12 @@ export declare class EsolveStockService<T extends EsolveCustomFields = EsolveCus
|
|
|
16
16
|
* @param code eSolve stock code
|
|
17
17
|
*/
|
|
18
18
|
getStockItem(code: string): Observable<EsolveStockItem<T>>;
|
|
19
|
+
/**
|
|
20
|
+
* Retrieves the stock record from the eSolve instance using the code.
|
|
21
|
+
*
|
|
22
|
+
* @param code eSolve stock code
|
|
23
|
+
*/
|
|
24
|
+
getStockItemLevels(code: string): Observable<EsolveStockItemLocationLevel>;
|
|
19
25
|
/**
|
|
20
26
|
* Retrieves the stock record from the eSolve instance using the SEF name.
|
|
21
27
|
*
|
|
@@ -68,6 +74,12 @@ export declare class EsolveStockService<T extends EsolveCustomFields = EsolveCus
|
|
|
68
74
|
getStockImageCollection(code: string): Observable<EsolveStockImageCollection>;
|
|
69
75
|
getStockFilters(options: EsolveStockFilterOptions): Observable<EsolveFilterList>;
|
|
70
76
|
private parseBaseStockItemOptions;
|
|
77
|
+
/**
|
|
78
|
+
* Processes the eSolve stock item record and converts it to an object.
|
|
79
|
+
*
|
|
80
|
+
* @param record eSolve stock item record
|
|
81
|
+
*/
|
|
82
|
+
private processStockLocationLevel;
|
|
71
83
|
/**
|
|
72
84
|
* Processes the eSolve stock item record and converts it to an object.
|
|
73
85
|
*
|
|
@@ -98,6 +110,11 @@ export declare class EsolveStockService<T extends EsolveCustomFields = EsolveCus
|
|
|
98
110
|
* @param records Suggested eSolve stock item records
|
|
99
111
|
*/
|
|
100
112
|
private processSuggestedItems;
|
|
113
|
+
/**
|
|
114
|
+
* Retrieves stock records from HTTP params.
|
|
115
|
+
* @param params HTTP client parameters
|
|
116
|
+
*/
|
|
117
|
+
private getStockLocationLevelsRecords;
|
|
101
118
|
/**
|
|
102
119
|
* Retrieves stock records from HTTP params.
|
|
103
120
|
* @param params HTTP client parameters
|
|
@@ -18,3 +18,4 @@ export * from './esolve-stock-linked-category-record.interface';
|
|
|
18
18
|
export * from './esolve-stock-record.interface';
|
|
19
19
|
export * from './esolve-stock-reviews-report-record.interface';
|
|
20
20
|
export * from './esolve-transaction-sales-stock-item-options.interface';
|
|
21
|
+
export * from './esolve-stock-item-location-level-record.interface';
|