@esolve/ng-esolve-connect 0.21.1 → 0.21.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/esm2020/lib/account/esolve-account.service.mjs +4 -4
- package/esm2020/lib/cart/esolve-cart-additional-where.interface.mjs +1 -1
- package/esm2020/lib/cart/esolve-cart.service.mjs +2 -2
- package/esm2020/lib/category-tree/esolve-category-tree.service.mjs +2 -2
- package/esm2020/lib/locations/esolve-location-record.interface.mjs +1 -1
- package/esm2020/lib/locations/esolve-locations.service.mjs +3 -2
- package/esm2020/lib/shared/errors/esolve-error-handler.service.mjs +23 -22
- package/esm2020/lib/shared/errors/esolve-http-error.model.mjs +12 -5
- package/esm2020/lib/shared/response/esolve-response-result.model.mjs +3 -3
- package/esm2020/lib/shipping/esolve-shipping.service.mjs +5 -3
- package/esm2020/lib/stock/classes/esolve-stock-item-base.model.mjs +2 -2
- package/esm2020/lib/stock/classes/esolve-stock-price.model.mjs +5 -2
- package/esm2020/lib/stock/esolve-stock.service.mjs +6 -6
- package/esm2020/lib/stock/interfaces/esolve-linked-stock-record.interface.mjs +1 -1
- package/esm2020/lib/stock/interfaces/esolve-recipe-item-record.interface.mjs +1 -1
- package/esm2020/lib/stock/interfaces/esolve-stock-group-item-record.interface.mjs +1 -1
- package/esm2020/lib/tags/esolve-tags.service.mjs +4 -2
- package/esm2020/lib/topics/esolve-topic.service.mjs +4 -2
- package/fesm2015/esolve-ng-esolve-connect.mjs +61 -43
- package/fesm2015/esolve-ng-esolve-connect.mjs.map +1 -1
- package/fesm2020/esolve-ng-esolve-connect.mjs +61 -43
- package/fesm2020/esolve-ng-esolve-connect.mjs.map +1 -1
- package/lib/locations/esolve-locations.service.d.ts +2 -1
- package/lib/shared/errors/esolve-http-error.model.d.ts +3 -3
- package/lib/stock/classes/esolve-stock-price.model.d.ts +4 -1
- package/lib/stock/esolve-stock.service.d.ts +1 -2
- package/package.json +1 -1
|
@@ -18,9 +18,10 @@ export declare class EsolveLocationsService {
|
|
|
18
18
|
* Set the addresses_id to 0 and the gps coordinates in order to retrieve the locations list when the address isn't
|
|
19
19
|
* yet saved.
|
|
20
20
|
*
|
|
21
|
-
* @param addresses_id if supplied, the
|
|
21
|
+
* @param addresses_id if supplied, the latitude and longitude on the address will be used.
|
|
22
22
|
* @param latitude if supplied and address_id > 0, the value is ignored.
|
|
23
23
|
* @param longitude if supplied and address_id > 0, the value is ignored.
|
|
24
|
+
*
|
|
24
25
|
* @returns An `Observable` with an array of stock locations
|
|
25
26
|
*/
|
|
26
27
|
getStockLocationsGeo(addresses_id?: number, latitude?: number, longitude?: number): Observable<EsolveLocation[]>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
export declare class EsolveHttpError {
|
|
1
|
+
export declare class EsolveHttpError extends Error {
|
|
2
|
+
readonly http_error = true;
|
|
2
3
|
type: 'error' | 'exception';
|
|
3
|
-
message: string;
|
|
4
4
|
error_code: string;
|
|
5
|
-
constructor(type: 'error' | 'exception', message: string,
|
|
5
|
+
constructor(type: 'error' | 'exception', code: string, message: string, ...params: any[]);
|
|
6
6
|
}
|
|
@@ -18,12 +18,15 @@ export declare class EsolveStockPrice {
|
|
|
18
18
|
* Price with tax and with discounts applied if applicable
|
|
19
19
|
*/
|
|
20
20
|
sell_price_with_tax: number;
|
|
21
|
+
taxed: boolean;
|
|
21
22
|
/**
|
|
22
23
|
* Create stock price instance
|
|
24
|
+
*
|
|
23
25
|
* @param base_price Price without tax
|
|
24
26
|
* @param base_price_with_tax Price with tax
|
|
25
27
|
* @param sell_price Price without tax and with discounts applied if applicable
|
|
26
28
|
* @param sell_price_with_tax Price with tax and with discounts applied if applicable
|
|
29
|
+
* @param taxed Whether tax has been applied
|
|
27
30
|
*/
|
|
28
31
|
constructor(
|
|
29
32
|
/**
|
|
@@ -41,5 +44,5 @@ export declare class EsolveStockPrice {
|
|
|
41
44
|
/**
|
|
42
45
|
* Price with tax and with discounts applied if applicable
|
|
43
46
|
*/
|
|
44
|
-
sell_price_with_tax?: number);
|
|
47
|
+
sell_price_with_tax?: number, taxed?: boolean);
|
|
45
48
|
}
|
|
@@ -4,9 +4,8 @@ import { EsolveConnectConfig } from '../esolve-connect.config';
|
|
|
4
4
|
import { EsolveCustomFields } from '../shared/custom-fields';
|
|
5
5
|
import { EsolveFilterList } from '../shared/filters';
|
|
6
6
|
import { EsolveMediaStockItemList } from './types';
|
|
7
|
-
import { EsolveStockItemOptions, EsolveRecipeStockOptions, EsolveMediaStockItemOptions } from './interfaces';
|
|
7
|
+
import { EsolveStockItemOptions, EsolveRecipeStockOptions, EsolveMediaStockItemOptions, EsolveStockFilterOptions } from './interfaces';
|
|
8
8
|
import { EsolveStockItem, EsolveStockItemList, EsolveRecipeStockItem, EsolveLinkedStockItem, EsolveStockImageCollection } from './classes';
|
|
9
|
-
import { EsolveStockFilterOptions } from './interfaces/esolve-stock-filter-options.interface';
|
|
10
9
|
import * as i0 from "@angular/core";
|
|
11
10
|
export declare class EsolveStockService<T extends EsolveCustomFields = EsolveCustomFields> {
|
|
12
11
|
private config;
|