@indigina/wms-api 0.0.100 → 0.0.102
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/README.md +2 -2
- package/fesm2022/indigina-wms-api.mjs +13 -50
- package/fesm2022/indigina-wms-api.mjs.map +1 -1
- package/index.d.ts +9 -34
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/wms-api@0.0.
|
|
1
|
+
# @indigina/wms-api@0.0.102
|
|
2
2
|
|
|
3
3
|
WMS API Client for Angular applications
|
|
4
4
|
|
|
@@ -24,7 +24,7 @@ Navigate to the folder of your consuming project and run one of next commands.
|
|
|
24
24
|
_published:_
|
|
25
25
|
|
|
26
26
|
```console
|
|
27
|
-
npm install @indigina/wms-api@0.0.
|
|
27
|
+
npm install @indigina/wms-api@0.0.102 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -1724,57 +1724,18 @@ class DeliveriesService extends BaseService {
|
|
|
1724
1724
|
reportProgress: reportProgress
|
|
1725
1725
|
});
|
|
1726
1726
|
}
|
|
1727
|
-
getDeliveries($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1727
|
+
getDeliveries($skip, $top, $orderby, $filter, $search, deliveryStatuses, observe = 'body', reportProgress = false, options) {
|
|
1728
1728
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1729
1729
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
1730
1730
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
1731
1731
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
1732
1732
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
1733
1733
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
1734
|
-
|
|
1735
|
-
|
|
1736
|
-
|
|
1737
|
-
|
|
1738
|
-
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1739
|
-
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1740
|
-
}
|
|
1741
|
-
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
1742
|
-
const localVarTransferCache = options?.transferCache ?? true;
|
|
1743
|
-
let responseType_ = 'json';
|
|
1744
|
-
if (localVarHttpHeaderAcceptSelected) {
|
|
1745
|
-
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1746
|
-
responseType_ = 'text';
|
|
1747
|
-
}
|
|
1748
|
-
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1749
|
-
responseType_ = 'json';
|
|
1750
|
-
}
|
|
1751
|
-
else {
|
|
1752
|
-
responseType_ = 'blob';
|
|
1753
|
-
}
|
|
1754
|
-
}
|
|
1755
|
-
let localVarPath = `/deliveries`;
|
|
1756
|
-
const { basePath, withCredentials } = this.configuration;
|
|
1757
|
-
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1758
|
-
context: localVarHttpContext,
|
|
1759
|
-
params: localVarQueryParameters,
|
|
1760
|
-
responseType: responseType_,
|
|
1761
|
-
...(withCredentials ? { withCredentials } : {}),
|
|
1762
|
-
headers: localVarHeaders,
|
|
1763
|
-
observe: observe,
|
|
1764
|
-
transferCache: localVarTransferCache,
|
|
1765
|
-
reportProgress: reportProgress
|
|
1766
|
-
});
|
|
1767
|
-
}
|
|
1768
|
-
getDeliveriesByOrderStatus(deliveryStatus, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1769
|
-
if (deliveryStatus === null || deliveryStatus === undefined) {
|
|
1770
|
-
throw new Error('Required parameter deliveryStatus was null or undefined when calling getDeliveriesByOrderStatus.');
|
|
1734
|
+
if (deliveryStatuses) {
|
|
1735
|
+
deliveryStatuses.forEach((element) => {
|
|
1736
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'deliveryStatuses');
|
|
1737
|
+
});
|
|
1771
1738
|
}
|
|
1772
|
-
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1773
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
1774
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
1775
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
1776
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
1777
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
1778
1739
|
let localVarHeaders = this.defaultHeaders;
|
|
1779
1740
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
1780
1741
|
'application/json'
|
|
@@ -1796,7 +1757,7 @@ class DeliveriesService extends BaseService {
|
|
|
1796
1757
|
responseType_ = 'blob';
|
|
1797
1758
|
}
|
|
1798
1759
|
}
|
|
1799
|
-
let localVarPath = `/deliveries
|
|
1760
|
+
let localVarPath = `/deliveries`;
|
|
1800
1761
|
const { basePath, withCredentials } = this.configuration;
|
|
1801
1762
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
1802
1763
|
context: localVarHttpContext,
|
|
@@ -2768,10 +2729,7 @@ class DispatchesService extends BaseService {
|
|
|
2768
2729
|
reportProgress: reportProgress
|
|
2769
2730
|
});
|
|
2770
2731
|
}
|
|
2771
|
-
|
|
2772
|
-
if (orderStatus === null || orderStatus === undefined) {
|
|
2773
|
-
throw new Error('Required parameter orderStatus was null or undefined when calling getDispatchesByOrderStatus.');
|
|
2774
|
-
}
|
|
2732
|
+
getDispatches($skip, $top, $orderby, $filter, $search, tabName, orderStatuses, observe = 'body', reportProgress = false, options) {
|
|
2775
2733
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2776
2734
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
2777
2735
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
@@ -2779,6 +2737,11 @@ class DispatchesService extends BaseService {
|
|
|
2779
2737
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
2780
2738
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
2781
2739
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, tabName, 'tabName');
|
|
2740
|
+
if (orderStatuses) {
|
|
2741
|
+
orderStatuses.forEach((element) => {
|
|
2742
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'orderStatuses');
|
|
2743
|
+
});
|
|
2744
|
+
}
|
|
2782
2745
|
let localVarHeaders = this.defaultHeaders;
|
|
2783
2746
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
2784
2747
|
'application/json'
|
|
@@ -2800,7 +2763,7 @@ class DispatchesService extends BaseService {
|
|
|
2800
2763
|
responseType_ = 'blob';
|
|
2801
2764
|
}
|
|
2802
2765
|
}
|
|
2803
|
-
let localVarPath = `/dispatches
|
|
2766
|
+
let localVarPath = `/dispatches`;
|
|
2804
2767
|
const { basePath, withCredentials } = this.configuration;
|
|
2805
2768
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
2806
2769
|
context: localVarHttpContext,
|