@indigina/wms-api 0.0.49 → 0.0.50

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 CHANGED
@@ -1,4 +1,4 @@
1
- # @indigina/wms-api@0.0.49
1
+ # @indigina/wms-api@0.0.50
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.49 --save
27
+ npm install @indigina/wms-api@0.0.50 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -2,6 +2,7 @@ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, H
2
2
  import { Observable } from 'rxjs';
3
3
  import { Deliveries } from '../model/deliveries';
4
4
  import { Delivery } from '../model/delivery';
5
+ import { DeliverySummary } from '../model/deliverySummary';
5
6
  import { OrderStatus } from '../model/orderStatus';
6
7
  import { Configuration } from '../configuration';
7
8
  import * as i0 from "@angular/core";
@@ -14,6 +15,27 @@ export declare class DeliveriesService {
14
15
  constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
15
16
  private addToHttpParams;
16
17
  private addToHttpParamsRecursive;
18
+ /**
19
+ * Confirm delivery
20
+ * @param id
21
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
22
+ * @param reportProgress flag to report request and response progress.
23
+ */
24
+ confirmDelivery(id: string, observe?: 'body', reportProgress?: boolean, options?: {
25
+ httpHeaderAccept?: undefined;
26
+ context?: HttpContext;
27
+ transferCache?: boolean;
28
+ }): Observable<any>;
29
+ confirmDelivery(id: string, observe?: 'response', reportProgress?: boolean, options?: {
30
+ httpHeaderAccept?: undefined;
31
+ context?: HttpContext;
32
+ transferCache?: boolean;
33
+ }): Observable<HttpResponse<any>>;
34
+ confirmDelivery(id: string, observe?: 'events', reportProgress?: boolean, options?: {
35
+ httpHeaderAccept?: undefined;
36
+ context?: HttpContext;
37
+ transferCache?: boolean;
38
+ }): Observable<HttpEvent<any>>;
17
39
  /**
18
40
  * Create a specific delivery
19
41
  * @param delivery
@@ -135,47 +157,64 @@ export declare class DeliveriesService {
135
157
  /**
136
158
  * Getting delivery by id
137
159
  * @param id
138
- * @param $skip
139
- * @param $top
140
- * @param $orderby
141
- * @param $filter
142
- * @param $search
143
160
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
144
161
  * @param reportProgress flag to report request and response progress.
145
162
  */
146
- getDelivery(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
163
+ getDelivery(id: string, observe?: 'body', reportProgress?: boolean, options?: {
147
164
  httpHeaderAccept?: 'application/json';
148
165
  context?: HttpContext;
149
166
  transferCache?: boolean;
150
167
  }): Observable<Delivery>;
151
- getDelivery(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
168
+ getDelivery(id: string, observe?: 'response', reportProgress?: boolean, options?: {
152
169
  httpHeaderAccept?: 'application/json';
153
170
  context?: HttpContext;
154
171
  transferCache?: boolean;
155
172
  }): Observable<HttpResponse<Delivery>>;
156
- getDelivery(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
173
+ getDelivery(id: string, observe?: 'events', reportProgress?: boolean, options?: {
157
174
  httpHeaderAccept?: 'application/json';
158
175
  context?: HttpContext;
159
176
  transferCache?: boolean;
160
177
  }): Observable<HttpEvent<Delivery>>;
178
+ /**
179
+ * Getting delivery summary by id
180
+ * @param id
181
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
182
+ * @param reportProgress flag to report request and response progress.
183
+ */
184
+ getDeliverySummary(id: string, observe?: 'body', reportProgress?: boolean, options?: {
185
+ httpHeaderAccept?: 'application/json';
186
+ context?: HttpContext;
187
+ transferCache?: boolean;
188
+ }): Observable<DeliverySummary>;
189
+ getDeliverySummary(id: string, observe?: 'response', reportProgress?: boolean, options?: {
190
+ httpHeaderAccept?: 'application/json';
191
+ context?: HttpContext;
192
+ transferCache?: boolean;
193
+ }): Observable<HttpResponse<DeliverySummary>>;
194
+ getDeliverySummary(id: string, observe?: 'events', reportProgress?: boolean, options?: {
195
+ httpHeaderAccept?: 'application/json';
196
+ context?: HttpContext;
197
+ transferCache?: boolean;
198
+ }): Observable<HttpEvent<DeliverySummary>>;
161
199
  /**
162
200
  * Update a specific delivery
163
201
  * @param id
164
202
  * @param delivery
203
+ * @param propertiesToUpdate
165
204
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
166
205
  * @param reportProgress flag to report request and response progress.
167
206
  */
168
- setDelivery(id: string, delivery: Delivery, observe?: 'body', reportProgress?: boolean, options?: {
207
+ setDelivery(id: string, delivery: Delivery, propertiesToUpdate?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {
169
208
  httpHeaderAccept?: 'application/json';
170
209
  context?: HttpContext;
171
210
  transferCache?: boolean;
172
211
  }): Observable<Delivery>;
173
- setDelivery(id: string, delivery: Delivery, observe?: 'response', reportProgress?: boolean, options?: {
212
+ setDelivery(id: string, delivery: Delivery, propertiesToUpdate?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {
174
213
  httpHeaderAccept?: 'application/json';
175
214
  context?: HttpContext;
176
215
  transferCache?: boolean;
177
216
  }): Observable<HttpResponse<Delivery>>;
178
- setDelivery(id: string, delivery: Delivery, observe?: 'events', reportProgress?: boolean, options?: {
217
+ setDelivery(id: string, delivery: Delivery, propertiesToUpdate?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {
179
218
  httpHeaderAccept?: 'application/json';
180
219
  context?: HttpContext;
181
220
  transferCache?: boolean;
@@ -85,20 +85,21 @@ export declare class DeliveryItemsService {
85
85
  * Update a specific delivery Item
86
86
  * @param id
87
87
  * @param deliveryItem
88
+ * @param propertiesToUpdate
88
89
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
89
90
  * @param reportProgress flag to report request and response progress.
90
91
  */
91
- setDeliveryItem(id: string, deliveryItem: DeliveryItem, observe?: 'body', reportProgress?: boolean, options?: {
92
+ setDeliveryItem(id: string, deliveryItem: DeliveryItem, propertiesToUpdate?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {
92
93
  httpHeaderAccept?: 'application/json';
93
94
  context?: HttpContext;
94
95
  transferCache?: boolean;
95
96
  }): Observable<DeliveryItem>;
96
- setDeliveryItem(id: string, deliveryItem: DeliveryItem, observe?: 'response', reportProgress?: boolean, options?: {
97
+ setDeliveryItem(id: string, deliveryItem: DeliveryItem, propertiesToUpdate?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {
97
98
  httpHeaderAccept?: 'application/json';
98
99
  context?: HttpContext;
99
100
  transferCache?: boolean;
100
101
  }): Observable<HttpResponse<DeliveryItem>>;
101
- setDeliveryItem(id: string, deliveryItem: DeliveryItem, observe?: 'events', reportProgress?: boolean, options?: {
102
+ setDeliveryItem(id: string, deliveryItem: DeliveryItem, propertiesToUpdate?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {
102
103
  httpHeaderAccept?: 'application/json';
103
104
  context?: HttpContext;
104
105
  transferCache?: boolean;
@@ -1415,6 +1415,51 @@ class DeliveriesService {
1415
1415
  }
1416
1416
  return httpParams;
1417
1417
  }
1418
+ confirmDelivery(id, observe = 'body', reportProgress = false, options) {
1419
+ if (id === null || id === undefined) {
1420
+ throw new Error('Required parameter id was null or undefined when calling confirmDelivery.');
1421
+ }
1422
+ let localVarHeaders = this.defaultHeaders;
1423
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1424
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1425
+ // to determine the Accept header
1426
+ const httpHeaderAccepts = [];
1427
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1428
+ }
1429
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1430
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1431
+ }
1432
+ let localVarHttpContext = options && options.context;
1433
+ if (localVarHttpContext === undefined) {
1434
+ localVarHttpContext = new HttpContext();
1435
+ }
1436
+ let localVarTransferCache = options && options.transferCache;
1437
+ if (localVarTransferCache === undefined) {
1438
+ localVarTransferCache = true;
1439
+ }
1440
+ let responseType_ = 'json';
1441
+ if (localVarHttpHeaderAcceptSelected) {
1442
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1443
+ responseType_ = 'text';
1444
+ }
1445
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1446
+ responseType_ = 'json';
1447
+ }
1448
+ else {
1449
+ responseType_ = 'blob';
1450
+ }
1451
+ }
1452
+ let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/confirm`;
1453
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1454
+ context: localVarHttpContext,
1455
+ responseType: responseType_,
1456
+ withCredentials: this.configuration.withCredentials,
1457
+ headers: localVarHeaders,
1458
+ observe: observe,
1459
+ transferCache: localVarTransferCache,
1460
+ reportProgress: reportProgress
1461
+ });
1462
+ }
1418
1463
  createDelivery(delivery, observe = 'body', reportProgress = false, options) {
1419
1464
  if (delivery === null || delivery === undefined) {
1420
1465
  throw new Error('Required parameter delivery was null or undefined when calling createDelivery.');
@@ -1505,7 +1550,7 @@ class DeliveriesService {
1505
1550
  responseType_ = 'blob';
1506
1551
  }
1507
1552
  }
1508
- let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/`;
1553
+ let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1509
1554
  return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
1510
1555
  context: localVarHttpContext,
1511
1556
  responseType: responseType_,
@@ -1702,25 +1747,56 @@ class DeliveriesService {
1702
1747
  reportProgress: reportProgress
1703
1748
  });
1704
1749
  }
1705
- getDelivery(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1750
+ getDelivery(id, observe = 'body', reportProgress = false, options) {
1706
1751
  if (id === null || id === undefined) {
1707
1752
  throw new Error('Required parameter id was null or undefined when calling getDelivery.');
1708
1753
  }
1709
- let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1710
- if ($skip !== undefined && $skip !== null) {
1711
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1754
+ let localVarHeaders = this.defaultHeaders;
1755
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1756
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1757
+ // to determine the Accept header
1758
+ const httpHeaderAccepts = [
1759
+ 'application/json'
1760
+ ];
1761
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1712
1762
  }
1713
- if ($top !== undefined && $top !== null) {
1714
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1763
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1764
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1715
1765
  }
1716
- if ($orderby !== undefined && $orderby !== null) {
1717
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1766
+ let localVarHttpContext = options && options.context;
1767
+ if (localVarHttpContext === undefined) {
1768
+ localVarHttpContext = new HttpContext();
1718
1769
  }
1719
- if ($filter !== undefined && $filter !== null) {
1720
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1770
+ let localVarTransferCache = options && options.transferCache;
1771
+ if (localVarTransferCache === undefined) {
1772
+ localVarTransferCache = true;
1721
1773
  }
1722
- if ($search !== undefined && $search !== null) {
1723
- localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
1774
+ let responseType_ = 'json';
1775
+ if (localVarHttpHeaderAcceptSelected) {
1776
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1777
+ responseType_ = 'text';
1778
+ }
1779
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1780
+ responseType_ = 'json';
1781
+ }
1782
+ else {
1783
+ responseType_ = 'blob';
1784
+ }
1785
+ }
1786
+ let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1787
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1788
+ context: localVarHttpContext,
1789
+ responseType: responseType_,
1790
+ withCredentials: this.configuration.withCredentials,
1791
+ headers: localVarHeaders,
1792
+ observe: observe,
1793
+ transferCache: localVarTransferCache,
1794
+ reportProgress: reportProgress
1795
+ });
1796
+ }
1797
+ getDeliverySummary(id, observe = 'body', reportProgress = false, options) {
1798
+ if (id === null || id === undefined) {
1799
+ throw new Error('Required parameter id was null or undefined when calling getDeliverySummary.');
1724
1800
  }
1725
1801
  let localVarHeaders = this.defaultHeaders;
1726
1802
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
@@ -1754,10 +1830,9 @@ class DeliveriesService {
1754
1830
  responseType_ = 'blob';
1755
1831
  }
1756
1832
  }
1757
- let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/`;
1833
+ let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/summary`;
1758
1834
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1759
1835
  context: localVarHttpContext,
1760
- params: localVarQueryParameters,
1761
1836
  responseType: responseType_,
1762
1837
  withCredentials: this.configuration.withCredentials,
1763
1838
  headers: localVarHeaders,
@@ -1766,13 +1841,19 @@ class DeliveriesService {
1766
1841
  reportProgress: reportProgress
1767
1842
  });
1768
1843
  }
1769
- setDelivery(id, delivery, observe = 'body', reportProgress = false, options) {
1844
+ setDelivery(id, delivery, propertiesToUpdate, observe = 'body', reportProgress = false, options) {
1770
1845
  if (id === null || id === undefined) {
1771
1846
  throw new Error('Required parameter id was null or undefined when calling setDelivery.');
1772
1847
  }
1773
1848
  if (delivery === null || delivery === undefined) {
1774
1849
  throw new Error('Required parameter delivery was null or undefined when calling setDelivery.');
1775
1850
  }
1851
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1852
+ if (propertiesToUpdate) {
1853
+ propertiesToUpdate.forEach((element) => {
1854
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'propertiesToUpdate');
1855
+ });
1856
+ }
1776
1857
  let localVarHeaders = this.defaultHeaders;
1777
1858
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1778
1859
  if (localVarHttpHeaderAcceptSelected === undefined) {
@@ -1813,10 +1894,11 @@ class DeliveriesService {
1813
1894
  responseType_ = 'blob';
1814
1895
  }
1815
1896
  }
1816
- let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/`;
1897
+ let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1817
1898
  return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
1818
1899
  context: localVarHttpContext,
1819
1900
  body: delivery,
1901
+ params: localVarQueryParameters,
1820
1902
  responseType: responseType_,
1821
1903
  withCredentials: this.configuration.withCredentials,
1822
1904
  headers: localVarHeaders,
@@ -2078,13 +2160,19 @@ class DeliveryItemsService {
2078
2160
  reportProgress: reportProgress
2079
2161
  });
2080
2162
  }
2081
- setDeliveryItem(id, deliveryItem, observe = 'body', reportProgress = false, options) {
2163
+ setDeliveryItem(id, deliveryItem, propertiesToUpdate, observe = 'body', reportProgress = false, options) {
2082
2164
  if (id === null || id === undefined) {
2083
2165
  throw new Error('Required parameter id was null or undefined when calling setDeliveryItem.');
2084
2166
  }
2085
2167
  if (deliveryItem === null || deliveryItem === undefined) {
2086
2168
  throw new Error('Required parameter deliveryItem was null or undefined when calling setDeliveryItem.');
2087
2169
  }
2170
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2171
+ if (propertiesToUpdate) {
2172
+ propertiesToUpdate.forEach((element) => {
2173
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'propertiesToUpdate');
2174
+ });
2175
+ }
2088
2176
  let localVarHeaders = this.defaultHeaders;
2089
2177
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2090
2178
  if (localVarHttpHeaderAcceptSelected === undefined) {
@@ -2129,6 +2217,7 @@ class DeliveryItemsService {
2129
2217
  return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
2130
2218
  context: localVarHttpContext,
2131
2219
  body: deliveryItem,
2220
+ params: localVarQueryParameters,
2132
2221
  responseType: responseType_,
2133
2222
  withCredentials: this.configuration.withCredentials,
2134
2223
  headers: localVarHeaders,
@@ -4001,26 +4090,6 @@ const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService,
4001
4090
  * Do not edit the class manually.
4002
4091
  */
4003
4092
 
4004
- /**
4005
- * Wms.API.Client
4006
- *
4007
- *
4008
- *
4009
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4010
- * https://openapi-generator.tech
4011
- * Do not edit the class manually.
4012
- */
4013
-
4014
- /**
4015
- * Wms.API.Client
4016
- *
4017
- *
4018
- *
4019
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4020
- * https://openapi-generator.tech
4021
- * Do not edit the class manually.
4022
- */
4023
-
4024
4093
  /**
4025
4094
  * Wms.API.Client
4026
4095
  *