@indigina/wms-api 0.0.113 → 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 CHANGED
@@ -1,4 +1,4 @@
1
- # @indigina/wms-api@0.0.113
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.113 --save
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
- getNotes(sourceId, type, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
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 getNotes.');
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 getNotes.');
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: undefined })}/${this.configuration.encodeParam({ name: "type", value: type, in: "path", style: "simple", explode: false, dataType: "NoteSourceType", dataFormat: undefined })}`;
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
- getNotesByCategory(sourceId, type, category, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
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 getNotesByCategory.');
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 getNotesByCategory.');
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,59 @@ 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: undefined })}/${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 })}`;
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,
3348
+ responseType: responseType_,
3349
+ ...(withCredentials ? { withCredentials } : {}),
3350
+ headers: localVarHeaders,
3351
+ observe: observe,
3352
+ transferCache: localVarTransferCache,
3353
+ reportProgress: reportProgress
3354
+ });
3355
+ }
3356
+ updateNote(id, note, observe = 'body', reportProgress = false, options) {
3357
+ if (id === null || id === undefined) {
3358
+ throw new Error('Required parameter id was null or undefined when calling updateNote.');
3359
+ }
3360
+ if (note === null || note === undefined) {
3361
+ throw new Error('Required parameter note was null or undefined when calling updateNote.');
3362
+ }
3363
+ let localVarHeaders = this.defaultHeaders;
3364
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
3365
+ 'application/json'
3366
+ ]);
3367
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3368
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3369
+ }
3370
+ const localVarHttpContext = options?.context ?? new HttpContext();
3371
+ const localVarTransferCache = options?.transferCache ?? true;
3372
+ // to determine the Content-Type header
3373
+ const consumes = [
3374
+ 'application/json'
3375
+ ];
3376
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
3377
+ if (httpContentTypeSelected !== undefined) {
3378
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
3379
+ }
3380
+ let responseType_ = 'json';
3381
+ if (localVarHttpHeaderAcceptSelected) {
3382
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3383
+ responseType_ = 'text';
3384
+ }
3385
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3386
+ responseType_ = 'json';
3387
+ }
3388
+ else {
3389
+ responseType_ = 'blob';
3390
+ }
3391
+ }
3392
+ let localVarPath = `/notes/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`;
3393
+ const { basePath, withCredentials } = this.configuration;
3394
+ return this.httpClient.request('put', `${basePath}${localVarPath}`, {
3395
+ context: localVarHttpContext,
3396
+ body: note,
3362
3397
  responseType: responseType_,
3363
3398
  ...(withCredentials ? { withCredentials } : {}),
3364
3399
  headers: localVarHeaders,