@indigina/wms-api 0.0.55 → 0.0.57
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.
|
|
1
|
+
# @indigina/wms-api@0.0.57
|
|
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.57 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -16,22 +16,43 @@ export declare class DeliveriesService {
|
|
|
16
16
|
private addToHttpParams;
|
|
17
17
|
private addToHttpParamsRecursive;
|
|
18
18
|
/**
|
|
19
|
-
*
|
|
20
|
-
* @param
|
|
19
|
+
* Arrive deliveries
|
|
20
|
+
* @param ids
|
|
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
|
+
arriveDeliveries(ids: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {
|
|
25
|
+
httpHeaderAccept?: undefined;
|
|
26
|
+
context?: HttpContext;
|
|
27
|
+
transferCache?: boolean;
|
|
28
|
+
}): Observable<any>;
|
|
29
|
+
arriveDeliveries(ids: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {
|
|
30
|
+
httpHeaderAccept?: undefined;
|
|
31
|
+
context?: HttpContext;
|
|
32
|
+
transferCache?: boolean;
|
|
33
|
+
}): Observable<HttpResponse<any>>;
|
|
34
|
+
arriveDeliveries(ids: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {
|
|
35
|
+
httpHeaderAccept?: undefined;
|
|
36
|
+
context?: HttpContext;
|
|
37
|
+
transferCache?: boolean;
|
|
38
|
+
}): Observable<HttpEvent<any>>;
|
|
39
|
+
/**
|
|
40
|
+
* Confirm deliveries
|
|
41
|
+
* @param ids
|
|
21
42
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
22
43
|
* @param reportProgress flag to report request and response progress.
|
|
23
44
|
*/
|
|
24
|
-
|
|
45
|
+
confirmDeliveries(ids: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {
|
|
25
46
|
httpHeaderAccept?: undefined;
|
|
26
47
|
context?: HttpContext;
|
|
27
48
|
transferCache?: boolean;
|
|
28
49
|
}): Observable<any>;
|
|
29
|
-
|
|
50
|
+
confirmDeliveries(ids: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {
|
|
30
51
|
httpHeaderAccept?: undefined;
|
|
31
52
|
context?: HttpContext;
|
|
32
53
|
transferCache?: boolean;
|
|
33
54
|
}): Observable<HttpResponse<any>>;
|
|
34
|
-
|
|
55
|
+
confirmDeliveries(ids: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {
|
|
35
56
|
httpHeaderAccept?: undefined;
|
|
36
57
|
context?: HttpContext;
|
|
37
58
|
transferCache?: boolean;
|
|
@@ -219,6 +240,27 @@ export declare class DeliveriesService {
|
|
|
219
240
|
context?: HttpContext;
|
|
220
241
|
transferCache?: boolean;
|
|
221
242
|
}): Observable<HttpEvent<Delivery>>;
|
|
243
|
+
/**
|
|
244
|
+
* Unarrive a delivery
|
|
245
|
+
* @param id
|
|
246
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
247
|
+
* @param reportProgress flag to report request and response progress.
|
|
248
|
+
*/
|
|
249
|
+
unarriveDelivery(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
250
|
+
httpHeaderAccept?: undefined;
|
|
251
|
+
context?: HttpContext;
|
|
252
|
+
transferCache?: boolean;
|
|
253
|
+
}): Observable<any>;
|
|
254
|
+
unarriveDelivery(id: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
255
|
+
httpHeaderAccept?: undefined;
|
|
256
|
+
context?: HttpContext;
|
|
257
|
+
transferCache?: boolean;
|
|
258
|
+
}): Observable<HttpResponse<any>>;
|
|
259
|
+
unarriveDelivery(id: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
260
|
+
httpHeaderAccept?: undefined;
|
|
261
|
+
context?: HttpContext;
|
|
262
|
+
transferCache?: boolean;
|
|
263
|
+
}): Observable<HttpEvent<any>>;
|
|
222
264
|
static ɵfac: i0.ɵɵFactoryDeclaration<DeliveriesService, [null, { optional: true; }, { optional: true; }]>;
|
|
223
265
|
static ɵprov: i0.ɵɵInjectableDeclaration<DeliveriesService>;
|
|
224
266
|
}
|
|
@@ -1415,9 +1415,15 @@ class DeliveriesService {
|
|
|
1415
1415
|
}
|
|
1416
1416
|
return httpParams;
|
|
1417
1417
|
}
|
|
1418
|
-
|
|
1419
|
-
if (
|
|
1420
|
-
throw new Error('Required parameter
|
|
1418
|
+
arriveDeliveries(ids, observe = 'body', reportProgress = false, options) {
|
|
1419
|
+
if (ids === null || ids === undefined) {
|
|
1420
|
+
throw new Error('Required parameter ids was null or undefined when calling arriveDeliveries.');
|
|
1421
|
+
}
|
|
1422
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1423
|
+
if (ids) {
|
|
1424
|
+
ids.forEach((element) => {
|
|
1425
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'ids');
|
|
1426
|
+
});
|
|
1421
1427
|
}
|
|
1422
1428
|
let localVarHeaders = this.defaultHeaders;
|
|
1423
1429
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
@@ -1449,9 +1455,62 @@ class DeliveriesService {
|
|
|
1449
1455
|
responseType_ = 'blob';
|
|
1450
1456
|
}
|
|
1451
1457
|
}
|
|
1452
|
-
let localVarPath = `/deliveries
|
|
1453
|
-
return this.httpClient.request('
|
|
1458
|
+
let localVarPath = `/deliveries/arrive`;
|
|
1459
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
1460
|
+
context: localVarHttpContext,
|
|
1461
|
+
params: localVarQueryParameters,
|
|
1462
|
+
responseType: responseType_,
|
|
1463
|
+
withCredentials: this.configuration.withCredentials,
|
|
1464
|
+
headers: localVarHeaders,
|
|
1465
|
+
observe: observe,
|
|
1466
|
+
transferCache: localVarTransferCache,
|
|
1467
|
+
reportProgress: reportProgress
|
|
1468
|
+
});
|
|
1469
|
+
}
|
|
1470
|
+
confirmDeliveries(ids, observe = 'body', reportProgress = false, options) {
|
|
1471
|
+
if (ids === null || ids === undefined) {
|
|
1472
|
+
throw new Error('Required parameter ids was null or undefined when calling confirmDeliveries.');
|
|
1473
|
+
}
|
|
1474
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1475
|
+
if (ids) {
|
|
1476
|
+
ids.forEach((element) => {
|
|
1477
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'ids');
|
|
1478
|
+
});
|
|
1479
|
+
}
|
|
1480
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1481
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1482
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1483
|
+
// to determine the Accept header
|
|
1484
|
+
const httpHeaderAccepts = [];
|
|
1485
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1486
|
+
}
|
|
1487
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1488
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1489
|
+
}
|
|
1490
|
+
let localVarHttpContext = options && options.context;
|
|
1491
|
+
if (localVarHttpContext === undefined) {
|
|
1492
|
+
localVarHttpContext = new HttpContext();
|
|
1493
|
+
}
|
|
1494
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1495
|
+
if (localVarTransferCache === undefined) {
|
|
1496
|
+
localVarTransferCache = true;
|
|
1497
|
+
}
|
|
1498
|
+
let responseType_ = 'json';
|
|
1499
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1500
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1501
|
+
responseType_ = 'text';
|
|
1502
|
+
}
|
|
1503
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1504
|
+
responseType_ = 'json';
|
|
1505
|
+
}
|
|
1506
|
+
else {
|
|
1507
|
+
responseType_ = 'blob';
|
|
1508
|
+
}
|
|
1509
|
+
}
|
|
1510
|
+
let localVarPath = `/deliveries/confirm`;
|
|
1511
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
1454
1512
|
context: localVarHttpContext,
|
|
1513
|
+
params: localVarQueryParameters,
|
|
1455
1514
|
responseType: responseType_,
|
|
1456
1515
|
withCredentials: this.configuration.withCredentials,
|
|
1457
1516
|
headers: localVarHeaders,
|
|
@@ -1907,6 +1966,51 @@ class DeliveriesService {
|
|
|
1907
1966
|
reportProgress: reportProgress
|
|
1908
1967
|
});
|
|
1909
1968
|
}
|
|
1969
|
+
unarriveDelivery(id, observe = 'body', reportProgress = false, options) {
|
|
1970
|
+
if (id === null || id === undefined) {
|
|
1971
|
+
throw new Error('Required parameter id was null or undefined when calling unarriveDelivery.');
|
|
1972
|
+
}
|
|
1973
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1974
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1975
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1976
|
+
// to determine the Accept header
|
|
1977
|
+
const httpHeaderAccepts = [];
|
|
1978
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1979
|
+
}
|
|
1980
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1981
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1982
|
+
}
|
|
1983
|
+
let localVarHttpContext = options && options.context;
|
|
1984
|
+
if (localVarHttpContext === undefined) {
|
|
1985
|
+
localVarHttpContext = new HttpContext();
|
|
1986
|
+
}
|
|
1987
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1988
|
+
if (localVarTransferCache === undefined) {
|
|
1989
|
+
localVarTransferCache = true;
|
|
1990
|
+
}
|
|
1991
|
+
let responseType_ = 'json';
|
|
1992
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1993
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1994
|
+
responseType_ = 'text';
|
|
1995
|
+
}
|
|
1996
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1997
|
+
responseType_ = 'json';
|
|
1998
|
+
}
|
|
1999
|
+
else {
|
|
2000
|
+
responseType_ = 'blob';
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/unarrive`;
|
|
2004
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
2005
|
+
context: localVarHttpContext,
|
|
2006
|
+
responseType: responseType_,
|
|
2007
|
+
withCredentials: this.configuration.withCredentials,
|
|
2008
|
+
headers: localVarHeaders,
|
|
2009
|
+
observe: observe,
|
|
2010
|
+
transferCache: localVarTransferCache,
|
|
2011
|
+
reportProgress: reportProgress
|
|
2012
|
+
});
|
|
2013
|
+
}
|
|
1910
2014
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DeliveriesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1911
2015
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DeliveriesService, providedIn: 'root' });
|
|
1912
2016
|
}
|