@indigina/wms-api 0.0.113 → 0.0.114
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 +2 -2
- package/fesm2022/indigina-wms-api.mjs +56 -0
- package/fesm2022/indigina-wms-api.mjs.map +1 -1
- package/index.d.ts +25 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# @indigina/wms-api@0.0.
|
|
1
|
+
# @indigina/wms-api@0.0.114
|
|
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.114 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -3367,6 +3367,62 @@ class NotesService extends BaseService {
|
|
|
3367
3367
|
reportProgress: reportProgress
|
|
3368
3368
|
});
|
|
3369
3369
|
}
|
|
3370
|
+
updateNote(id, note, propertiesToUpdate, observe = 'body', reportProgress = false, options) {
|
|
3371
|
+
if (id === null || id === undefined) {
|
|
3372
|
+
throw new Error('Required parameter id was null or undefined when calling updateNote.');
|
|
3373
|
+
}
|
|
3374
|
+
if (note === null || note === undefined) {
|
|
3375
|
+
throw new Error('Required parameter note was null or undefined when calling updateNote.');
|
|
3376
|
+
}
|
|
3377
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
3378
|
+
if (propertiesToUpdate) {
|
|
3379
|
+
propertiesToUpdate.forEach((element) => {
|
|
3380
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'propertiesToUpdate');
|
|
3381
|
+
});
|
|
3382
|
+
}
|
|
3383
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3384
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
3385
|
+
'application/json'
|
|
3386
|
+
]);
|
|
3387
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3388
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
3389
|
+
}
|
|
3390
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
3391
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
3392
|
+
// to determine the Content-Type header
|
|
3393
|
+
const consumes = [
|
|
3394
|
+
'application/json'
|
|
3395
|
+
];
|
|
3396
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
3397
|
+
if (httpContentTypeSelected !== undefined) {
|
|
3398
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
3399
|
+
}
|
|
3400
|
+
let responseType_ = 'json';
|
|
3401
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3402
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
3403
|
+
responseType_ = 'text';
|
|
3404
|
+
}
|
|
3405
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3406
|
+
responseType_ = 'json';
|
|
3407
|
+
}
|
|
3408
|
+
else {
|
|
3409
|
+
responseType_ = 'blob';
|
|
3410
|
+
}
|
|
3411
|
+
}
|
|
3412
|
+
let localVarPath = `/notes/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`;
|
|
3413
|
+
const { basePath, withCredentials } = this.configuration;
|
|
3414
|
+
return this.httpClient.request('put', `${basePath}${localVarPath}`, {
|
|
3415
|
+
context: localVarHttpContext,
|
|
3416
|
+
body: note,
|
|
3417
|
+
params: localVarQueryParameters,
|
|
3418
|
+
responseType: responseType_,
|
|
3419
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
3420
|
+
headers: localVarHeaders,
|
|
3421
|
+
observe: observe,
|
|
3422
|
+
transferCache: localVarTransferCache,
|
|
3423
|
+
reportProgress: reportProgress
|
|
3424
|
+
});
|
|
3425
|
+
}
|
|
3370
3426
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: NotesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
3371
3427
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: NotesService, providedIn: 'root' });
|
|
3372
3428
|
}
|