@indigina/wms-api 0.0.57 → 0.0.58
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.58
|
|
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.58 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -62,6 +62,31 @@ export declare class DispatchService {
|
|
|
62
62
|
context?: HttpContext;
|
|
63
63
|
transferCache?: boolean;
|
|
64
64
|
}): Observable<HttpEvent<Dispatches>>;
|
|
65
|
+
/**
|
|
66
|
+
* Dispatches list
|
|
67
|
+
* @param $skip
|
|
68
|
+
* @param $top
|
|
69
|
+
* @param $orderby
|
|
70
|
+
* @param $filter
|
|
71
|
+
* @param searchTerm
|
|
72
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
73
|
+
* @param reportProgress flag to report request and response progress.
|
|
74
|
+
*/
|
|
75
|
+
getDispatchesFromIndex($skip?: number, $top?: number, $orderby?: string, $filter?: string, searchTerm?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
76
|
+
httpHeaderAccept?: 'application/json';
|
|
77
|
+
context?: HttpContext;
|
|
78
|
+
transferCache?: boolean;
|
|
79
|
+
}): Observable<Dispatches>;
|
|
80
|
+
getDispatchesFromIndex($skip?: number, $top?: number, $orderby?: string, $filter?: string, searchTerm?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
81
|
+
httpHeaderAccept?: 'application/json';
|
|
82
|
+
context?: HttpContext;
|
|
83
|
+
transferCache?: boolean;
|
|
84
|
+
}): Observable<HttpResponse<Dispatches>>;
|
|
85
|
+
getDispatchesFromIndex($skip?: number, $top?: number, $orderby?: string, $filter?: string, searchTerm?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
86
|
+
httpHeaderAccept?: 'application/json';
|
|
87
|
+
context?: HttpContext;
|
|
88
|
+
transferCache?: boolean;
|
|
89
|
+
}): Observable<HttpEvent<Dispatches>>;
|
|
65
90
|
static ɵfac: i0.ɵɵFactoryDeclaration<DispatchService, [null, { optional: true; }, { optional: true; }]>;
|
|
66
91
|
static ɵprov: i0.ɵɵInjectableDeclaration<DispatchService>;
|
|
67
92
|
}
|
|
@@ -2579,6 +2579,67 @@ class DispatchService {
|
|
|
2579
2579
|
reportProgress: reportProgress
|
|
2580
2580
|
});
|
|
2581
2581
|
}
|
|
2582
|
+
getDispatchesFromIndex($skip, $top, $orderby, $filter, searchTerm, observe = 'body', reportProgress = false, options) {
|
|
2583
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2584
|
+
if ($skip !== undefined && $skip !== null) {
|
|
2585
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
2586
|
+
}
|
|
2587
|
+
if ($top !== undefined && $top !== null) {
|
|
2588
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
2589
|
+
}
|
|
2590
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
2591
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
2592
|
+
}
|
|
2593
|
+
if ($filter !== undefined && $filter !== null) {
|
|
2594
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
2595
|
+
}
|
|
2596
|
+
if (searchTerm !== undefined && searchTerm !== null) {
|
|
2597
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, searchTerm, 'searchTerm');
|
|
2598
|
+
}
|
|
2599
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2600
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2601
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2602
|
+
// to determine the Accept header
|
|
2603
|
+
const httpHeaderAccepts = [
|
|
2604
|
+
'application/json'
|
|
2605
|
+
];
|
|
2606
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2607
|
+
}
|
|
2608
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2609
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2610
|
+
}
|
|
2611
|
+
let localVarHttpContext = options && options.context;
|
|
2612
|
+
if (localVarHttpContext === undefined) {
|
|
2613
|
+
localVarHttpContext = new HttpContext();
|
|
2614
|
+
}
|
|
2615
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2616
|
+
if (localVarTransferCache === undefined) {
|
|
2617
|
+
localVarTransferCache = true;
|
|
2618
|
+
}
|
|
2619
|
+
let responseType_ = 'json';
|
|
2620
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2621
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2622
|
+
responseType_ = 'text';
|
|
2623
|
+
}
|
|
2624
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2625
|
+
responseType_ = 'json';
|
|
2626
|
+
}
|
|
2627
|
+
else {
|
|
2628
|
+
responseType_ = 'blob';
|
|
2629
|
+
}
|
|
2630
|
+
}
|
|
2631
|
+
let localVarPath = `/dispatch/search`;
|
|
2632
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2633
|
+
context: localVarHttpContext,
|
|
2634
|
+
params: localVarQueryParameters,
|
|
2635
|
+
responseType: responseType_,
|
|
2636
|
+
withCredentials: this.configuration.withCredentials,
|
|
2637
|
+
headers: localVarHeaders,
|
|
2638
|
+
observe: observe,
|
|
2639
|
+
transferCache: localVarTransferCache,
|
|
2640
|
+
reportProgress: reportProgress
|
|
2641
|
+
});
|
|
2642
|
+
}
|
|
2582
2643
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2583
2644
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DispatchService, providedIn: 'root' });
|
|
2584
2645
|
}
|