@indigina/wms-api 0.0.106 → 0.0.108
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 +71 -7
- package/fesm2022/indigina-wms-api.mjs.map +1 -1
- package/index.d.ts +62 -21
- 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.108
|
|
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.108 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
|
@@ -3780,19 +3780,48 @@ class ReplenishmentRecordsService extends BaseService {
|
|
|
3780
3780
|
super(basePath, configuration);
|
|
3781
3781
|
this.httpClient = httpClient;
|
|
3782
3782
|
}
|
|
3783
|
-
|
|
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
|
+
}
|
|
3818
|
+
getReplenishmentRecords($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
3784
3819
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
3785
3820
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
3786
3821
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
3787
3822
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
3788
3823
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
3789
3824
|
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
3790
|
-
if (replenishmentStatuses) {
|
|
3791
|
-
replenishmentStatuses.forEach((element) => {
|
|
3792
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'replenishmentStatuses');
|
|
3793
|
-
});
|
|
3794
|
-
}
|
|
3795
|
-
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, hasAllocatedUsers, 'hasAllocatedUsers');
|
|
3796
3825
|
let localVarHeaders = this.defaultHeaders;
|
|
3797
3826
|
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([
|
|
3798
3827
|
'application/json'
|
|
@@ -3827,6 +3856,41 @@ class ReplenishmentRecordsService extends BaseService {
|
|
|
3827
3856
|
reportProgress: reportProgress
|
|
3828
3857
|
});
|
|
3829
3858
|
}
|
|
3859
|
+
unallocateReplenishmentRecord(id, observe = 'body', reportProgress = false, options) {
|
|
3860
|
+
if (id === null || id === undefined) {
|
|
3861
|
+
throw new Error('Required parameter id was null or undefined when calling unallocateReplenishmentRecord.');
|
|
3862
|
+
}
|
|
3863
|
+
let localVarHeaders = this.defaultHeaders;
|
|
3864
|
+
const localVarHttpHeaderAcceptSelected = options?.httpHeaderAccept ?? this.configuration.selectHeaderAccept([]);
|
|
3865
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
3866
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
3867
|
+
}
|
|
3868
|
+
const localVarHttpContext = options?.context ?? new HttpContext();
|
|
3869
|
+
const localVarTransferCache = options?.transferCache ?? true;
|
|
3870
|
+
let responseType_ = 'json';
|
|
3871
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
3872
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
3873
|
+
responseType_ = 'text';
|
|
3874
|
+
}
|
|
3875
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
3876
|
+
responseType_ = 'json';
|
|
3877
|
+
}
|
|
3878
|
+
else {
|
|
3879
|
+
responseType_ = 'blob';
|
|
3880
|
+
}
|
|
3881
|
+
}
|
|
3882
|
+
let localVarPath = `/replenishmentRecords/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/unallocate`;
|
|
3883
|
+
const { basePath, withCredentials } = this.configuration;
|
|
3884
|
+
return this.httpClient.request('put', `${basePath}${localVarPath}`, {
|
|
3885
|
+
context: localVarHttpContext,
|
|
3886
|
+
responseType: responseType_,
|
|
3887
|
+
...(withCredentials ? { withCredentials } : {}),
|
|
3888
|
+
headers: localVarHeaders,
|
|
3889
|
+
observe: observe,
|
|
3890
|
+
transferCache: localVarTransferCache,
|
|
3891
|
+
reportProgress: reportProgress
|
|
3892
|
+
});
|
|
3893
|
+
}
|
|
3830
3894
|
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
3895
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "20.1.3", ngImport: i0, type: ReplenishmentRecordsService, providedIn: 'root' });
|
|
3832
3896
|
}
|