@indigina/wms-api 0.0.59 → 0.0.60

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.59
1
+ # @indigina/wms-api@0.0.60
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.59 --save
27
+ npm install @indigina/wms-api@0.0.60 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -36,6 +36,27 @@ export declare class DeliveriesService {
36
36
  context?: HttpContext;
37
37
  transferCache?: boolean;
38
38
  }): Observable<HttpEvent<any>>;
39
+ /**
40
+ * Check if LPN is visible for a delivery by id
41
+ * @param id
42
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
43
+ * @param reportProgress flag to report request and response progress.
44
+ */
45
+ checkVisibleLPN(id: string, observe?: 'body', reportProgress?: boolean, options?: {
46
+ httpHeaderAccept?: 'application/json';
47
+ context?: HttpContext;
48
+ transferCache?: boolean;
49
+ }): Observable<boolean>;
50
+ checkVisibleLPN(id: string, observe?: 'response', reportProgress?: boolean, options?: {
51
+ httpHeaderAccept?: 'application/json';
52
+ context?: HttpContext;
53
+ transferCache?: boolean;
54
+ }): Observable<HttpResponse<boolean>>;
55
+ checkVisibleLPN(id: string, observe?: 'events', reportProgress?: boolean, options?: {
56
+ httpHeaderAccept?: 'application/json';
57
+ context?: HttpContext;
58
+ transferCache?: boolean;
59
+ }): Observable<HttpEvent<boolean>>;
39
60
  /**
40
61
  * Confirm deliveries
41
62
  * @param ids
@@ -1467,6 +1467,53 @@ class DeliveriesService {
1467
1467
  reportProgress: reportProgress
1468
1468
  });
1469
1469
  }
1470
+ checkVisibleLPN(id, observe = 'body', reportProgress = false, options) {
1471
+ if (id === null || id === undefined) {
1472
+ throw new Error('Required parameter id was null or undefined when calling checkVisibleLPN.');
1473
+ }
1474
+ let localVarHeaders = this.defaultHeaders;
1475
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1476
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1477
+ // to determine the Accept header
1478
+ const httpHeaderAccepts = [
1479
+ 'application/json'
1480
+ ];
1481
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1482
+ }
1483
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1484
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1485
+ }
1486
+ let localVarHttpContext = options && options.context;
1487
+ if (localVarHttpContext === undefined) {
1488
+ localVarHttpContext = new HttpContext();
1489
+ }
1490
+ let localVarTransferCache = options && options.transferCache;
1491
+ if (localVarTransferCache === undefined) {
1492
+ localVarTransferCache = true;
1493
+ }
1494
+ let responseType_ = 'json';
1495
+ if (localVarHttpHeaderAcceptSelected) {
1496
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1497
+ responseType_ = 'text';
1498
+ }
1499
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1500
+ responseType_ = 'json';
1501
+ }
1502
+ else {
1503
+ responseType_ = 'blob';
1504
+ }
1505
+ }
1506
+ let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/visible-lpn`;
1507
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1508
+ context: localVarHttpContext,
1509
+ responseType: responseType_,
1510
+ withCredentials: this.configuration.withCredentials,
1511
+ headers: localVarHeaders,
1512
+ observe: observe,
1513
+ transferCache: localVarTransferCache,
1514
+ reportProgress: reportProgress
1515
+ });
1516
+ }
1470
1517
  confirmDeliveries(ids, observe = 'body', reportProgress = false, options) {
1471
1518
  if (ids === null || ids === undefined) {
1472
1519
  throw new Error('Required parameter ids was null or undefined when calling confirmDeliveries.');