@indigina/wms-api 0.0.51 → 0.0.52
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.52
|
|
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.52 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -55,6 +55,27 @@ export declare class DeliveryItemsService {
|
|
|
55
55
|
context?: HttpContext;
|
|
56
56
|
transferCache?: boolean;
|
|
57
57
|
}): Observable<HttpEvent<any>>;
|
|
58
|
+
/**
|
|
59
|
+
* Getting delivery Item by id
|
|
60
|
+
* @param id
|
|
61
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
62
|
+
* @param reportProgress flag to report request and response progress.
|
|
63
|
+
*/
|
|
64
|
+
getDeliveryItem(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
65
|
+
httpHeaderAccept?: 'application/json';
|
|
66
|
+
context?: HttpContext;
|
|
67
|
+
transferCache?: boolean;
|
|
68
|
+
}): Observable<DeliveryItem>;
|
|
69
|
+
getDeliveryItem(id: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
70
|
+
httpHeaderAccept?: 'application/json';
|
|
71
|
+
context?: HttpContext;
|
|
72
|
+
transferCache?: boolean;
|
|
73
|
+
}): Observable<HttpResponse<DeliveryItem>>;
|
|
74
|
+
getDeliveryItem(id: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
75
|
+
httpHeaderAccept?: 'application/json';
|
|
76
|
+
context?: HttpContext;
|
|
77
|
+
transferCache?: boolean;
|
|
78
|
+
}): Observable<HttpEvent<DeliveryItem>>;
|
|
58
79
|
/**
|
|
59
80
|
* Getting delivery items
|
|
60
81
|
* @param id
|
|
@@ -2096,6 +2096,53 @@ class DeliveryItemsService {
|
|
|
2096
2096
|
reportProgress: reportProgress
|
|
2097
2097
|
});
|
|
2098
2098
|
}
|
|
2099
|
+
getDeliveryItem(id, observe = 'body', reportProgress = false, options) {
|
|
2100
|
+
if (id === null || id === undefined) {
|
|
2101
|
+
throw new Error('Required parameter id was null or undefined when calling getDeliveryItem.');
|
|
2102
|
+
}
|
|
2103
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2104
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2105
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2106
|
+
// to determine the Accept header
|
|
2107
|
+
const httpHeaderAccepts = [
|
|
2108
|
+
'application/json'
|
|
2109
|
+
];
|
|
2110
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2111
|
+
}
|
|
2112
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2113
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2114
|
+
}
|
|
2115
|
+
let localVarHttpContext = options && options.context;
|
|
2116
|
+
if (localVarHttpContext === undefined) {
|
|
2117
|
+
localVarHttpContext = new HttpContext();
|
|
2118
|
+
}
|
|
2119
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2120
|
+
if (localVarTransferCache === undefined) {
|
|
2121
|
+
localVarTransferCache = true;
|
|
2122
|
+
}
|
|
2123
|
+
let responseType_ = 'json';
|
|
2124
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2125
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2126
|
+
responseType_ = 'text';
|
|
2127
|
+
}
|
|
2128
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2129
|
+
responseType_ = 'json';
|
|
2130
|
+
}
|
|
2131
|
+
else {
|
|
2132
|
+
responseType_ = 'blob';
|
|
2133
|
+
}
|
|
2134
|
+
}
|
|
2135
|
+
let localVarPath = `/deliveryItems/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2136
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2137
|
+
context: localVarHttpContext,
|
|
2138
|
+
responseType: responseType_,
|
|
2139
|
+
withCredentials: this.configuration.withCredentials,
|
|
2140
|
+
headers: localVarHeaders,
|
|
2141
|
+
observe: observe,
|
|
2142
|
+
transferCache: localVarTransferCache,
|
|
2143
|
+
reportProgress: reportProgress
|
|
2144
|
+
});
|
|
2145
|
+
}
|
|
2099
2146
|
getDeliveryItems(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
2100
2147
|
if (id === null || id === undefined) {
|
|
2101
2148
|
throw new Error('Required parameter id was null or undefined when calling getDeliveryItems.');
|