@indigina/wms-api 0.0.83 → 0.0.85

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.83
1
+ # @indigina/wms-api@0.0.85
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.83 --save
27
+ npm install @indigina/wms-api@0.0.85 --save
28
28
  ```
29
29
 
30
30
  _without publishing (not recommended):_
@@ -2858,7 +2858,90 @@ class ReplenishmentService extends BaseService {
2858
2858
  super(basePath, configuration);
2859
2859
  this.httpClient = httpClient;
2860
2860
  }
2861
- getAccess($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
2861
+ createAccess(replenishmentAccess, observe = 'body', reportProgress = false, options) {
2862
+ if (replenishmentAccess === null || replenishmentAccess === undefined) {
2863
+ throw new Error('Required parameter replenishmentAccess was null or undefined when calling createAccess.');
2864
+ }
2865
+ let localVarHeaders = this.defaultHeaders;
2866
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2867
+ 'application/json'
2868
+ ]);
2869
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2870
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2871
+ }
2872
+ const localVarHttpContext = options?.context ?? new HttpContext();
2873
+ const localVarTransferCache = options?.transferCache ?? true;
2874
+ // to determine the Content-Type header
2875
+ const consumes = [
2876
+ 'application/json'
2877
+ ];
2878
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2879
+ if (httpContentTypeSelected !== undefined) {
2880
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
2881
+ }
2882
+ let responseType_ = 'json';
2883
+ if (localVarHttpHeaderAcceptSelected) {
2884
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2885
+ responseType_ = 'text';
2886
+ }
2887
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2888
+ responseType_ = 'json';
2889
+ }
2890
+ else {
2891
+ responseType_ = 'blob';
2892
+ }
2893
+ }
2894
+ let localVarPath = `/replenishment/access`;
2895
+ const { basePath, withCredentials } = this.configuration;
2896
+ return this.httpClient.request('post', `${basePath}${localVarPath}`, {
2897
+ context: localVarHttpContext,
2898
+ body: replenishmentAccess,
2899
+ responseType: responseType_,
2900
+ ...(withCredentials ? { withCredentials } : {}),
2901
+ headers: localVarHeaders,
2902
+ observe: observe,
2903
+ transferCache: localVarTransferCache,
2904
+ reportProgress: reportProgress
2905
+ });
2906
+ }
2907
+ deleteAccess(id, observe = 'body', reportProgress = false, options) {
2908
+ if (id === null || id === undefined) {
2909
+ throw new Error('Required parameter id was null or undefined when calling deleteAccess.');
2910
+ }
2911
+ let localVarHeaders = this.defaultHeaders;
2912
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2913
+ 'application/json'
2914
+ ]);
2915
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2916
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2917
+ }
2918
+ const localVarHttpContext = options?.context ?? new HttpContext();
2919
+ const localVarTransferCache = options?.transferCache ?? true;
2920
+ let responseType_ = 'json';
2921
+ if (localVarHttpHeaderAcceptSelected) {
2922
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2923
+ responseType_ = 'text';
2924
+ }
2925
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2926
+ responseType_ = 'json';
2927
+ }
2928
+ else {
2929
+ responseType_ = 'blob';
2930
+ }
2931
+ }
2932
+ let localVarPath = `/replenishment/access/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`;
2933
+ const { basePath, withCredentials } = this.configuration;
2934
+ return this.httpClient.request('delete', `${basePath}${localVarPath}`, {
2935
+ context: localVarHttpContext,
2936
+ responseType: responseType_,
2937
+ ...(withCredentials ? { withCredentials } : {}),
2938
+ headers: localVarHeaders,
2939
+ observe: observe,
2940
+ transferCache: localVarTransferCache,
2941
+ reportProgress: reportProgress
2942
+ });
2943
+ }
2944
+ getAccesses($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
2862
2945
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2863
2946
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2864
2947
  localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
@@ -2886,7 +2969,7 @@ class ReplenishmentService extends BaseService {
2886
2969
  responseType_ = 'blob';
2887
2970
  }
2888
2971
  }
2889
- let localVarPath = `/replenishment/access`;
2972
+ let localVarPath = `/replenishment/accesses`;
2890
2973
  const { basePath, withCredentials } = this.configuration;
2891
2974
  return this.httpClient.request('get', `${basePath}${localVarPath}`, {
2892
2975
  context: localVarHttpContext,
@@ -2899,6 +2982,55 @@ class ReplenishmentService extends BaseService {
2899
2982
  reportProgress: reportProgress
2900
2983
  });
2901
2984
  }
2985
+ updateAccess(id, replenishmentAccess, observe = 'body', reportProgress = false, options) {
2986
+ if (id === null || id === undefined) {
2987
+ throw new Error('Required parameter id was null or undefined when calling updateAccess.');
2988
+ }
2989
+ if (replenishmentAccess === null || replenishmentAccess === undefined) {
2990
+ throw new Error('Required parameter replenishmentAccess was null or undefined when calling updateAccess.');
2991
+ }
2992
+ let localVarHeaders = this.defaultHeaders;
2993
+ const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
2994
+ 'application/json'
2995
+ ]);
2996
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2997
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2998
+ }
2999
+ const localVarHttpContext = options?.context ?? new HttpContext();
3000
+ const localVarTransferCache = options?.transferCache ?? true;
3001
+ // to determine the Content-Type header
3002
+ const consumes = [
3003
+ 'application/json'
3004
+ ];
3005
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
3006
+ if (httpContentTypeSelected !== undefined) {
3007
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
3008
+ }
3009
+ let responseType_ = 'json';
3010
+ if (localVarHttpHeaderAcceptSelected) {
3011
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
3012
+ responseType_ = 'text';
3013
+ }
3014
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
3015
+ responseType_ = 'json';
3016
+ }
3017
+ else {
3018
+ responseType_ = 'blob';
3019
+ }
3020
+ }
3021
+ let localVarPath = `/replenishment/access/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}`;
3022
+ const { basePath, withCredentials } = this.configuration;
3023
+ return this.httpClient.request('put', `${basePath}${localVarPath}`, {
3024
+ context: localVarHttpContext,
3025
+ body: replenishmentAccess,
3026
+ responseType: responseType_,
3027
+ ...(withCredentials ? { withCredentials } : {}),
3028
+ headers: localVarHeaders,
3029
+ observe: observe,
3030
+ transferCache: localVarTransferCache,
3031
+ reportProgress: reportProgress
3032
+ });
3033
+ }
2902
3034
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ReplenishmentService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2903
3035
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ReplenishmentService, providedIn: 'root' });
2904
3036
  }
@@ -4804,6 +4936,16 @@ const RecordType = {
4804
4936
  * Do not edit the class manually.
4805
4937
  */
4806
4938
 
4939
+ /**
4940
+ * Wms.API.Client
4941
+ *
4942
+ *
4943
+ *
4944
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4945
+ * https://openapi-generator.tech
4946
+ * Do not edit the class manually.
4947
+ */
4948
+
4807
4949
  /**
4808
4950
  * Wms.API.Client
4809
4951
  *