@indigina/wms-api 0.0.106 → 0.0.107

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.106
1
+ # @indigina/wms-api@0.0.107
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.106 --save
27
+ npm install @indigina/wms-api@0.0.107 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -3780,6 +3780,41 @@ class ReplenishmentRecordsService extends BaseService {
3780
3780
  super(basePath, configuration);
3781
3781
  this.httpClient = httpClient;
3782
3782
  }
3783
+ cancelReplenishmentRecord(id, observe = 'body', reportProgress = false, options) {
3784
+ if (id === null || id === undefined) {
3785
+ throw new Error('Required parameter id was null or undefined when calling cancelReplenishmentRecord.');
3786
+ }
3787
+ let localVarHeaders = this.defaultHeaders;
3788
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
3789
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3790
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3791
+ }
3792
+ const localVarHttpContext = options?.context ?? new HttpContext();
3793
+ const localVarTransferCache = options?.transferCache ?? true;
3794
+ let responseType_ = 'json';
3795
+ if (localVarHttpHeaderAcceptSelected) {
3796
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3797
+ responseType_ = 'text';
3798
+ }
3799
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3800
+ responseType_ = 'json';
3801
+ }
3802
+ else {
3803
+ responseType_ = 'blob';
3804
+ }
3805
+ }
3806
+ let localVarPath = `/replenishmentRecords/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/cancel`;
3807
+ const { basePath, withCredentials } = this.configuration;
3808
+ return this.httpClient.request('put', `${basePath}${localVarPath}`, {
3809
+ context: localVarHttpContext,
3810
+ responseType: responseType_,
3811
+ ...(withCredentials ? { withCredentials } : {}),
3812
+ headers: localVarHeaders,
3813
+ observe: observe,
3814
+ transferCache: localVarTransferCache,
3815
+ reportProgress: reportProgress
3816
+ });
3817
+ }
3783
3818
  getReplenishmentRecords($skip, $top, $orderby, $filter, $search, replenishmentStatuses, hasAllocatedUsers, observe = 'body', reportProgress = false, options) {
3784
3819
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
3785
3820
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
@@ -3827,6 +3862,41 @@ class ReplenishmentRecordsService extends BaseService {
3827
3862
  reportProgress: reportProgress
3828
3863
  });
3829
3864
  }
3865
+ unallocateReplenishmentRecord(id, observe = 'body', reportProgress = false, options) {
3866
+ if (id === null || id === undefined) {
3867
+ throw new Error('Required parameter id was null or undefined when calling unallocateReplenishmentRecord.');
3868
+ }
3869
+ let localVarHeaders = this.defaultHeaders;
3870
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
3871
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
3872
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
3873
+ }
3874
+ const localVarHttpContext = options?.context ?? new HttpContext();
3875
+ const localVarTransferCache = options?.transferCache ?? true;
3876
+ let responseType_ = 'json';
3877
+ if (localVarHttpHeaderAcceptSelected) {
3878
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3879
+ responseType_ = 'text';
3880
+ }
3881
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3882
+ responseType_ = 'json';
3883
+ }
3884
+ else {
3885
+ responseType_ = 'blob';
3886
+ }
3887
+ }
3888
+ let localVarPath = `/replenishmentRecords/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/unallocate`;
3889
+ const { basePath, withCredentials } = this.configuration;
3890
+ return this.httpClient.request('put', `${basePath}${localVarPath}`, {
3891
+ context: localVarHttpContext,
3892
+ responseType: responseType_,
3893
+ ...(withCredentials ? { withCredentials } : {}),
3894
+ headers: localVarHeaders,
3895
+ observe: observe,
3896
+ transferCache: localVarTransferCache,
3897
+ reportProgress: reportProgress
3898
+ });
3899
+ }
3830
3900
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ReplenishmentRecordsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
3831
3901
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ReplenishmentRecordsService, providedIn: 'root' });
3832
3902
  }