@indigina/wms-api 0.0.162 → 0.0.163
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.163
|
|
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.163 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -3215,6 +3215,40 @@ class DispatchesService extends BaseService {
|
|
|
3215
3215
|
reportProgress: reportProgress
|
|
3216
3216
|
});
|
|
3217
3217
|
}
|
|
3218
|
+
getCarrierLabels(requestBody, observe = 'body', reportProgress = false, options) {
|
|
3219
|
+
if (requestBody === null || requestBody === undefined) {
|
|
3220
|
+
throw new Error('Required parameter requestBody was null or undefined when calling getCarrierLabels.');
|
|
3221
|
+
}
|
|
3222
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3223
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
3224
|
+
'application/pdf'
|
|
3225
|
+
]);
|
|
3226
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3227
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
3228
|
+
}
|
|
3229
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
3230
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
3231
|
+
// to determine the Content-Type header
|
|
3232
|
+
const consumes = [
|
|
3233
|
+
'application/json'
|
|
3234
|
+
];
|
|
3235
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
3236
|
+
if (httpContentTypeSelected !== undefined) {
|
|
3237
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
3238
|
+
}
|
|
3239
|
+
let localVarPath = `/dispatches/carrier-labels`;
|
|
3240
|
+
const { basePath, withCredentials } = this.configuration;
|
|
3241
|
+
return this.httpClient.request('post', `${basePath}${localVarPath}`, {
|
|
3242
|
+
context: localVarHttpContext,
|
|
3243
|
+
body: requestBody,
|
|
3244
|
+
responseType: "blob",
|
|
3245
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
3246
|
+
headers: localVarHeaders,
|
|
3247
|
+
observe: observe,
|
|
3248
|
+
...(localVarTransferCache !== undefined ? { transferCache: localVarTransferCache } : {}),
|
|
3249
|
+
reportProgress: reportProgress
|
|
3250
|
+
});
|
|
3251
|
+
}
|
|
3218
3252
|
getDispatch(id, observe = 'body', reportProgress = false, options) {
|
|
3219
3253
|
if (id === null || id === undefined) {
|
|
3220
3254
|
throw new Error('Required parameter id was null or undefined when calling getDispatch.');
|