@indigina/wms-api 0.0.114 → 0.0.115
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 +12 -33
- package/fesm2022/indigina-wms-api.mjs.map +1 -1
- package/index.d.ts +19 -45
- 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.115
|
|
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.115 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -3270,19 +3270,16 @@ class NotesService extends BaseService {
|
|
|
3270
3270
|
reportProgress: reportProgress
|
|
3271
3271
|
});
|
|
3272
3272
|
}
|
|
3273
|
-
|
|
3273
|
+
getNoteByCategory(sourceId, type, category, observe = 'body', reportProgress = false, options) {
|
|
3274
3274
|
if (sourceId === null || sourceId === undefined) {
|
|
3275
|
-
throw new Error('Required parameter sourceId was null or undefined when calling
|
|
3275
|
+
throw new Error('Required parameter sourceId was null or undefined when calling getNoteByCategory.');
|
|
3276
3276
|
}
|
|
3277
3277
|
if (type === null || type === undefined) {
|
|
3278
|
-
throw new Error('Required parameter type was null or undefined when calling
|
|
3278
|
+
throw new Error('Required parameter type was null or undefined when calling getNoteByCategory.');
|
|
3279
|
+
}
|
|
3280
|
+
if (category === null || category === undefined) {
|
|
3281
|
+
throw new Error('Required parameter category was null or undefined when calling getNoteByCategory.');
|
|
3279
3282
|
}
|
|
3280
|
-
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
3281
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
3282
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
3283
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
3284
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
3285
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
3286
3283
|
let localVarHeaders = this.defaultHeaders;
|
|
3287
3284
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
3288
3285
|
'application/json'
|
|
@@ -3304,11 +3301,10 @@ class NotesService extends BaseService {
|
|
|
3304
3301
|
responseType_ = 'blob';
|
|
3305
3302
|
}
|
|
3306
3303
|
}
|
|
3307
|
-
let localVarPath = `/notes/${this.configuration.encodeParam({ name: "sourceId", value: sourceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat:
|
|
3304
|
+
let localVarPath = `/notes/${this.configuration.encodeParam({ name: "sourceId", value: sourceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/${this.configuration.encodeParam({ name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "NoteSourceType", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "category", value: category, in: "path", style: "simple", explode: false, dataType: "NoteCategory", dataFormat: undefined })}`;
|
|
3308
3305
|
const { basePath, withCredentials } = this.configuration;
|
|
3309
3306
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
3310
3307
|
context: localVarHttpContext,
|
|
3311
|
-
params: localVarQueryParameters,
|
|
3312
3308
|
responseType: responseType_,
|
|
3313
3309
|
...(withCredentials ? { withCredentials } : {}),
|
|
3314
3310
|
headers: localVarHeaders,
|
|
@@ -3317,22 +3313,13 @@ class NotesService extends BaseService {
|
|
|
3317
3313
|
reportProgress: reportProgress
|
|
3318
3314
|
});
|
|
3319
3315
|
}
|
|
3320
|
-
|
|
3316
|
+
getNoteBySource(sourceId, type, observe = 'body', reportProgress = false, options) {
|
|
3321
3317
|
if (sourceId === null || sourceId === undefined) {
|
|
3322
|
-
throw new Error('Required parameter sourceId was null or undefined when calling
|
|
3318
|
+
throw new Error('Required parameter sourceId was null or undefined when calling getNoteBySource.');
|
|
3323
3319
|
}
|
|
3324
3320
|
if (type === null || type === undefined) {
|
|
3325
|
-
throw new Error('Required parameter type was null or undefined when calling
|
|
3326
|
-
}
|
|
3327
|
-
if (category === null || category === undefined) {
|
|
3328
|
-
throw new Error('Required parameter category was null or undefined when calling getNotesByCategory.');
|
|
3321
|
+
throw new Error('Required parameter type was null or undefined when calling getNoteBySource.');
|
|
3329
3322
|
}
|
|
3330
|
-
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
3331
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
3332
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
3333
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
3334
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
3335
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
3336
3323
|
let localVarHeaders = this.defaultHeaders;
|
|
3337
3324
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
3338
3325
|
'application/json'
|
|
@@ -3354,11 +3341,10 @@ class NotesService extends BaseService {
|
|
|
3354
3341
|
responseType_ = 'blob';
|
|
3355
3342
|
}
|
|
3356
3343
|
}
|
|
3357
|
-
let localVarPath = `/notes/${this.configuration.encodeParam({ name: "sourceId", value: sourceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat:
|
|
3344
|
+
let localVarPath = `/notes/${this.configuration.encodeParam({ name: "sourceId", value: sourceId, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/${this.configuration.encodeParam({ name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "NoteSourceType", dataFormat: undefined })}`;
|
|
3358
3345
|
const { basePath, withCredentials } = this.configuration;
|
|
3359
3346
|
return this.httpClient.request('get', `${basePath}${localVarPath}`, {
|
|
3360
3347
|
context: localVarHttpContext,
|
|
3361
|
-
params: localVarQueryParameters,
|
|
3362
3348
|
responseType: responseType_,
|
|
3363
3349
|
...(withCredentials ? { withCredentials } : {}),
|
|
3364
3350
|
headers: localVarHeaders,
|
|
@@ -3367,19 +3353,13 @@ class NotesService extends BaseService {
|
|
|
3367
3353
|
reportProgress: reportProgress
|
|
3368
3354
|
});
|
|
3369
3355
|
}
|
|
3370
|
-
updateNote(id, note,
|
|
3356
|
+
updateNote(id, note, observe = 'body', reportProgress = false, options) {
|
|
3371
3357
|
if (id === null || id === undefined) {
|
|
3372
3358
|
throw new Error('Required parameter id was null or undefined when calling updateNote.');
|
|
3373
3359
|
}
|
|
3374
3360
|
if (note === null || note === undefined) {
|
|
3375
3361
|
throw new Error('Required parameter note was null or undefined when calling updateNote.');
|
|
3376
3362
|
}
|
|
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
3363
|
let localVarHeaders = this.defaultHeaders;
|
|
3384
3364
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
3385
3365
|
'application/json'
|
|
@@ -3414,7 +3394,6 @@ class NotesService extends BaseService {
|
|
|
3414
3394
|
return this.httpClient.request('put', `${basePath}${localVarPath}`, {
|
|
3415
3395
|
context: localVarHttpContext,
|
|
3416
3396
|
body: note,
|
|
3417
|
-
params: localVarQueryParameters,
|
|
3418
3397
|
responseType: responseType_,
|
|
3419
3398
|
...(withCredentials ? { withCredentials } : {}),
|
|
3420
3399
|
headers: localVarHeaders,
|