@indigina/wms-api 0.0.41 → 0.0.43

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.41
1
+ # @indigina/wms-api@0.0.43
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.41 --save
27
+ npm install @indigina/wms-api@0.0.43 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -64,6 +64,31 @@ export declare class DeliveriesService {
64
64
  context?: HttpContext;
65
65
  transferCache?: boolean;
66
66
  }): Observable<HttpEvent<Deliveries>>;
67
+ /**
68
+ * Deliveries list
69
+ * @param $skip
70
+ * @param $top
71
+ * @param $orderby
72
+ * @param $filter
73
+ * @param searchTerm
74
+ * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
75
+ * @param reportProgress flag to report request and response progress.
76
+ */
77
+ getDeliveriesFromIndex($skip?: number, $top?: number, $orderby?: string, $filter?: string, searchTerm?: string, observe?: 'body', reportProgress?: boolean, options?: {
78
+ httpHeaderAccept?: 'application/json';
79
+ context?: HttpContext;
80
+ transferCache?: boolean;
81
+ }): Observable<Deliveries>;
82
+ getDeliveriesFromIndex($skip?: number, $top?: number, $orderby?: string, $filter?: string, searchTerm?: string, observe?: 'response', reportProgress?: boolean, options?: {
83
+ httpHeaderAccept?: 'application/json';
84
+ context?: HttpContext;
85
+ transferCache?: boolean;
86
+ }): Observable<HttpResponse<Deliveries>>;
87
+ getDeliveriesFromIndex($skip?: number, $top?: number, $orderby?: string, $filter?: string, searchTerm?: string, observe?: 'events', reportProgress?: boolean, options?: {
88
+ httpHeaderAccept?: 'application/json';
89
+ context?: HttpContext;
90
+ transferCache?: boolean;
91
+ }): Observable<HttpEvent<Deliveries>>;
67
92
  static ɵfac: i0.ɵɵFactoryDeclaration<DeliveriesService, [null, { optional: true; }, { optional: true; }]>;
68
93
  static ɵprov: i0.ɵɵInjectableDeclaration<DeliveriesService>;
69
94
  }
@@ -1,6 +1,6 @@
1
1
  import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
2
2
  import { Observable } from 'rxjs';
3
- import { SummaryDashboardReports } from '../model/summaryDashboardReports';
3
+ import { EmbedReport } from '../model/embedReport';
4
4
  import { Configuration } from '../configuration';
5
5
  import * as i0 from "@angular/core";
6
6
  export declare class SummaryService {
@@ -14,24 +14,25 @@ export declare class SummaryService {
14
14
  private addToHttpParamsRecursive;
15
15
  /**
16
16
  * Request WMS summary dashboard report embedding links
17
+ * @param dashboardName The name of the dashboard report to retrieve
17
18
  * @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
18
19
  * @param reportProgress flag to report request and response progress.
19
20
  */
20
- getSummaryDashboardReports(observe?: 'body', reportProgress?: boolean, options?: {
21
+ getSummaryDashboardReport(dashboardName: string, observe?: 'body', reportProgress?: boolean, options?: {
21
22
  httpHeaderAccept?: 'application/json';
22
23
  context?: HttpContext;
23
24
  transferCache?: boolean;
24
- }): Observable<SummaryDashboardReports>;
25
- getSummaryDashboardReports(observe?: 'response', reportProgress?: boolean, options?: {
25
+ }): Observable<EmbedReport>;
26
+ getSummaryDashboardReport(dashboardName: string, observe?: 'response', reportProgress?: boolean, options?: {
26
27
  httpHeaderAccept?: 'application/json';
27
28
  context?: HttpContext;
28
29
  transferCache?: boolean;
29
- }): Observable<HttpResponse<SummaryDashboardReports>>;
30
- getSummaryDashboardReports(observe?: 'events', reportProgress?: boolean, options?: {
30
+ }): Observable<HttpResponse<EmbedReport>>;
31
+ getSummaryDashboardReport(dashboardName: string, observe?: 'events', reportProgress?: boolean, options?: {
31
32
  httpHeaderAccept?: 'application/json';
32
33
  context?: HttpContext;
33
34
  transferCache?: boolean;
34
- }): Observable<HttpEvent<SummaryDashboardReports>>;
35
+ }): Observable<HttpEvent<EmbedReport>>;
35
36
  static ɵfac: i0.ɵɵFactoryDeclaration<SummaryService, [null, { optional: true; }, { optional: true; }]>;
36
37
  static ɵprov: i0.ɵɵInjectableDeclaration<SummaryService>;
37
38
  }
@@ -1367,6 +1367,67 @@ class DeliveriesService {
1367
1367
  reportProgress: reportProgress
1368
1368
  });
1369
1369
  }
1370
+ getDeliveriesFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
1371
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1372
+ if ($skip !== undefined && $skip !== null) {
1373
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
1374
+ }
1375
+ if ($top !== undefined && $top !== null) {
1376
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
1377
+ }
1378
+ if ($orderby !== undefined && $orderby !== null) {
1379
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
1380
+ }
1381
+ if ($filter !== undefined && $filter !== null) {
1382
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
1383
+ }
1384
+ if (searchTerm !== undefined && searchTerm !== null) {
1385
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
1386
+ }
1387
+ let localVarHeaders = this.defaultHeaders;
1388
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1389
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1390
+ // to determine the Accept header
1391
+ const httpHeaderAccepts = [
1392
+ 'application/json'
1393
+ ];
1394
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1395
+ }
1396
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1397
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1398
+ }
1399
+ let localVarHttpContext = options && options.context;
1400
+ if (localVarHttpContext === undefined) {
1401
+ localVarHttpContext = new HttpContext();
1402
+ }
1403
+ let localVarTransferCache = options && options.transferCache;
1404
+ if (localVarTransferCache === undefined) {
1405
+ localVarTransferCache = true;
1406
+ }
1407
+ let responseType_ = 'json';
1408
+ if (localVarHttpHeaderAcceptSelected) {
1409
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1410
+ responseType_ = 'text';
1411
+ }
1412
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1413
+ responseType_ = 'json';
1414
+ }
1415
+ else {
1416
+ responseType_ = 'blob';
1417
+ }
1418
+ }
1419
+ let localVarPath = `/deliveries/search`;
1420
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1421
+ context: localVarHttpContext,
1422
+ params: localVarQueryParameters,
1423
+ responseType: responseType_,
1424
+ withCredentials: this.configuration.withCredentials,
1425
+ headers: localVarHeaders,
1426
+ observe: observe,
1427
+ transferCache: localVarTransferCache,
1428
+ reportProgress: reportProgress
1429
+ });
1430
+ }
1370
1431
  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 });
1371
1432
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DeliveriesService, providedIn: 'root' });
1372
1433
  }
@@ -2150,7 +2211,10 @@ class SummaryService {
2150
2211
  }
2151
2212
  return httpParams;
2152
2213
  }
2153
- getSummaryDashboardReports(observe = 'body', reportProgress = false, options) {
2214
+ getSummaryDashboardReport(dashboardName, observe = 'body', reportProgress = false, options) {
2215
+ if (dashboardName === null || dashboardName === undefined) {
2216
+ throw new Error('Required parameter dashboardName was null or undefined when calling getSummaryDashboardReport.');
2217
+ }
2154
2218
  let localVarHeaders = this.defaultHeaders;
2155
2219
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2156
2220
  if (localVarHttpHeaderAcceptSelected === undefined) {