@indigina/wms-api 0.0.68 → 0.0.70

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.68
1
+ # @indigina/wms-api@0.0.70
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.68 --save
27
+ npm install @indigina/wms-api@0.0.70 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -1,6 +1,7 @@
1
1
  import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
3
  import { Dispatch } from '../model/dispatch';
4
+ import { DispatchSummaryView } from '../model/dispatchSummaryView';
4
5
  import { Dispatches } from '../model/dispatches';
5
6
  import { OrderStatus } from '../model/orderStatus';
6
7
  import { Configuration } from '../configuration';
@@ -35,6 +36,27 @@ export declare class DispatchService {
35
36
  context?: HttpContext;
36
37
  transferCache?: boolean;
37
38
  }): Observable<HttpEvent<Dispatch>>;
39
+ /**
40
+ * Getting dispatch summary 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
+ getDispatchSummaryView(id: string, observe?: 'body', reportProgress?: boolean, options?: {
46
+ httpHeaderAccept?: 'application/json';
47
+ context?: HttpContext;
48
+ transferCache?: boolean;
49
+ }): Observable<DispatchSummaryView>;
50
+ getDispatchSummaryView(id: string, observe?: 'response', reportProgress?: boolean, options?: {
51
+ httpHeaderAccept?: 'application/json';
52
+ context?: HttpContext;
53
+ transferCache?: boolean;
54
+ }): Observable<HttpResponse<DispatchSummaryView>>;
55
+ getDispatchSummaryView(id: string, observe?: 'events', reportProgress?: boolean, options?: {
56
+ httpHeaderAccept?: 'application/json';
57
+ context?: HttpContext;
58
+ transferCache?: boolean;
59
+ }): Observable<HttpEvent<DispatchSummaryView>>;
38
60
  /**
39
61
  * Getting dispatches
40
62
  * @param orderStatus
@@ -2559,6 +2559,53 @@ class DispatchService {
2559
2559
  reportProgress: reportProgress
2560
2560
  });
2561
2561
  }
2562
+ getDispatchSummaryView(id, observe = 'body', reportProgress = false, options) {
2563
+ if (id === null || id === undefined) {
2564
+ throw new Error('Required parameter id was null or undefined when calling getDispatchSummaryView.');
2565
+ }
2566
+ let localVarHeaders = this.defaultHeaders;
2567
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2568
+ if (localVarHttpHeaderAcceptSelected === undefined) {
2569
+ // to determine the Accept header
2570
+ const httpHeaderAccepts = [
2571
+ 'application/json'
2572
+ ];
2573
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2574
+ }
2575
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2576
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2577
+ }
2578
+ let localVarHttpContext = options && options.context;
2579
+ if (localVarHttpContext === undefined) {
2580
+ localVarHttpContext = new HttpContext();
2581
+ }
2582
+ let localVarTransferCache = options && options.transferCache;
2583
+ if (localVarTransferCache === undefined) {
2584
+ localVarTransferCache = true;
2585
+ }
2586
+ let responseType_ = 'json';
2587
+ if (localVarHttpHeaderAcceptSelected) {
2588
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2589
+ responseType_ = 'text';
2590
+ }
2591
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2592
+ responseType_ = 'json';
2593
+ }
2594
+ else {
2595
+ responseType_ = 'blob';
2596
+ }
2597
+ }
2598
+ let localVarPath = `/dispatch/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/summary`;
2599
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2600
+ context: localVarHttpContext,
2601
+ responseType: responseType_,
2602
+ withCredentials: this.configuration.withCredentials,
2603
+ headers: localVarHeaders,
2604
+ observe: observe,
2605
+ transferCache: localVarTransferCache,
2606
+ reportProgress: reportProgress
2607
+ });
2608
+ }
2562
2609
  getDispatchesByOrderStatus(orderStatus, $skip, $top, $orderby, $filter, $search, tabName, observe = 'body', reportProgress = false, options) {
2563
2610
  if (orderStatus === null || orderStatus === undefined) {
2564
2611
  throw new Error('Required parameter orderStatus was null or undefined when calling getDispatchesByOrderStatus.');
@@ -6216,7 +6263,8 @@ const NoteCategory = {
6216
6263
  * Do not edit the class manually.
6217
6264
  */
6218
6265
  const NoteSourceType = {
6219
- Delivery: 'Delivery'
6266
+ Delivery: 'Delivery',
6267
+ DispatchHeader: 'DispatchHeader'
6220
6268
  };
6221
6269
 
6222
6270
  /**