@indigina/wms-api 0.0.48 → 0.0.50
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/api/dcs.service.d.ts +53 -0
- package/api/deliveries.service.d.ts +50 -11
- package/api/deliveryItems.service.d.ts +4 -3
- package/fesm2022/indigina-wms-api.mjs +232 -28
- package/fesm2022/indigina-wms-api.mjs.map +1 -1
- package/model/dc.d.ts +16 -0
- package/model/dcs.d.ts +14 -0
- package/model/deliveries.d.ts +2 -2
- package/model/deliveryGridView.d.ts +43 -0
- package/model/deliveryItem.d.ts +4 -0
- package/model/deliveryItemView.d.ts +5 -0
- package/model/deliverySummary.d.ts +35 -0
- package/model/deliveryView.d.ts +0 -12
- package/model/models.d.ts +4 -0
- 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.50
|
|
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.50 --save
|
|
28
28
|
```
|
|
29
29
|
|
|
30
30
|
_without publishing (not recommended):_
|
package/api/dcs.service.d.ts
CHANGED
|
@@ -1,6 +1,8 @@
|
|
|
1
1
|
import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, HttpContext } from '@angular/common/http';
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { CountingSummary } from '../model/countingSummary';
|
|
4
|
+
import { Dc } from '../model/dc';
|
|
5
|
+
import { Dcs } from '../model/dcs';
|
|
4
6
|
import { DispatchSummary } from '../model/dispatchSummary';
|
|
5
7
|
import { ReceivingSummary } from '../model/receivingSummary';
|
|
6
8
|
import { ReplenishmentSummary } from '../model/replenishmentSummary';
|
|
@@ -37,6 +39,57 @@ export declare class DcsService {
|
|
|
37
39
|
context?: HttpContext;
|
|
38
40
|
transferCache?: boolean;
|
|
39
41
|
}): Observable<HttpEvent<CountingSummary>>;
|
|
42
|
+
/**
|
|
43
|
+
* Getting dc by id
|
|
44
|
+
* @param id
|
|
45
|
+
* @param $skip
|
|
46
|
+
* @param $top
|
|
47
|
+
* @param $orderby
|
|
48
|
+
* @param $filter
|
|
49
|
+
* @param $search
|
|
50
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
51
|
+
* @param reportProgress flag to report request and response progress.
|
|
52
|
+
*/
|
|
53
|
+
getDc(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
54
|
+
httpHeaderAccept?: 'application/json';
|
|
55
|
+
context?: HttpContext;
|
|
56
|
+
transferCache?: boolean;
|
|
57
|
+
}): Observable<Dc>;
|
|
58
|
+
getDc(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
59
|
+
httpHeaderAccept?: 'application/json';
|
|
60
|
+
context?: HttpContext;
|
|
61
|
+
transferCache?: boolean;
|
|
62
|
+
}): Observable<HttpResponse<Dc>>;
|
|
63
|
+
getDc(id: string, $skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
64
|
+
httpHeaderAccept?: 'application/json';
|
|
65
|
+
context?: HttpContext;
|
|
66
|
+
transferCache?: boolean;
|
|
67
|
+
}): Observable<HttpEvent<Dc>>;
|
|
68
|
+
/**
|
|
69
|
+
* Getting dcs
|
|
70
|
+
* @param $skip
|
|
71
|
+
* @param $top
|
|
72
|
+
* @param $orderby
|
|
73
|
+
* @param $filter
|
|
74
|
+
* @param $search
|
|
75
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
76
|
+
* @param reportProgress flag to report request and response progress.
|
|
77
|
+
*/
|
|
78
|
+
getDcs($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
79
|
+
httpHeaderAccept?: 'application/json';
|
|
80
|
+
context?: HttpContext;
|
|
81
|
+
transferCache?: boolean;
|
|
82
|
+
}): Observable<Dcs>;
|
|
83
|
+
getDcs($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
84
|
+
httpHeaderAccept?: 'application/json';
|
|
85
|
+
context?: HttpContext;
|
|
86
|
+
transferCache?: boolean;
|
|
87
|
+
}): Observable<HttpResponse<Dcs>>;
|
|
88
|
+
getDcs($skip?: number, $top?: number, $orderby?: string, $filter?: string, $search?: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
89
|
+
httpHeaderAccept?: 'application/json';
|
|
90
|
+
context?: HttpContext;
|
|
91
|
+
transferCache?: boolean;
|
|
92
|
+
}): Observable<HttpEvent<Dcs>>;
|
|
40
93
|
/**
|
|
41
94
|
* Get Dispatch Summary
|
|
42
95
|
* @param clientIds
|
|
@@ -2,6 +2,7 @@ import { HttpClient, HttpHeaders, HttpResponse, HttpEvent, HttpParameterCodec, H
|
|
|
2
2
|
import { Observable } from 'rxjs';
|
|
3
3
|
import { Deliveries } from '../model/deliveries';
|
|
4
4
|
import { Delivery } from '../model/delivery';
|
|
5
|
+
import { DeliverySummary } from '../model/deliverySummary';
|
|
5
6
|
import { OrderStatus } from '../model/orderStatus';
|
|
6
7
|
import { Configuration } from '../configuration';
|
|
7
8
|
import * as i0 from "@angular/core";
|
|
@@ -14,6 +15,27 @@ export declare class DeliveriesService {
|
|
|
14
15
|
constructor(httpClient: HttpClient, basePath: string | string[], configuration: Configuration);
|
|
15
16
|
private addToHttpParams;
|
|
16
17
|
private addToHttpParamsRecursive;
|
|
18
|
+
/**
|
|
19
|
+
* Confirm delivery
|
|
20
|
+
* @param id
|
|
21
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
22
|
+
* @param reportProgress flag to report request and response progress.
|
|
23
|
+
*/
|
|
24
|
+
confirmDelivery(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
25
|
+
httpHeaderAccept?: undefined;
|
|
26
|
+
context?: HttpContext;
|
|
27
|
+
transferCache?: boolean;
|
|
28
|
+
}): Observable<any>;
|
|
29
|
+
confirmDelivery(id: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
30
|
+
httpHeaderAccept?: undefined;
|
|
31
|
+
context?: HttpContext;
|
|
32
|
+
transferCache?: boolean;
|
|
33
|
+
}): Observable<HttpResponse<any>>;
|
|
34
|
+
confirmDelivery(id: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
35
|
+
httpHeaderAccept?: undefined;
|
|
36
|
+
context?: HttpContext;
|
|
37
|
+
transferCache?: boolean;
|
|
38
|
+
}): Observable<HttpEvent<any>>;
|
|
17
39
|
/**
|
|
18
40
|
* Create a specific delivery
|
|
19
41
|
* @param delivery
|
|
@@ -135,47 +157,64 @@ export declare class DeliveriesService {
|
|
|
135
157
|
/**
|
|
136
158
|
* Getting delivery by id
|
|
137
159
|
* @param id
|
|
138
|
-
* @param $skip
|
|
139
|
-
* @param $top
|
|
140
|
-
* @param $orderby
|
|
141
|
-
* @param $filter
|
|
142
|
-
* @param $search
|
|
143
160
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
144
161
|
* @param reportProgress flag to report request and response progress.
|
|
145
162
|
*/
|
|
146
|
-
getDelivery(id: string,
|
|
163
|
+
getDelivery(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
147
164
|
httpHeaderAccept?: 'application/json';
|
|
148
165
|
context?: HttpContext;
|
|
149
166
|
transferCache?: boolean;
|
|
150
167
|
}): Observable<Delivery>;
|
|
151
|
-
getDelivery(id: string,
|
|
168
|
+
getDelivery(id: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
152
169
|
httpHeaderAccept?: 'application/json';
|
|
153
170
|
context?: HttpContext;
|
|
154
171
|
transferCache?: boolean;
|
|
155
172
|
}): Observable<HttpResponse<Delivery>>;
|
|
156
|
-
getDelivery(id: string,
|
|
173
|
+
getDelivery(id: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
157
174
|
httpHeaderAccept?: 'application/json';
|
|
158
175
|
context?: HttpContext;
|
|
159
176
|
transferCache?: boolean;
|
|
160
177
|
}): Observable<HttpEvent<Delivery>>;
|
|
178
|
+
/**
|
|
179
|
+
* Getting delivery summary by id
|
|
180
|
+
* @param id
|
|
181
|
+
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
182
|
+
* @param reportProgress flag to report request and response progress.
|
|
183
|
+
*/
|
|
184
|
+
getDeliverySummary(id: string, observe?: 'body', reportProgress?: boolean, options?: {
|
|
185
|
+
httpHeaderAccept?: 'application/json';
|
|
186
|
+
context?: HttpContext;
|
|
187
|
+
transferCache?: boolean;
|
|
188
|
+
}): Observable<DeliverySummary>;
|
|
189
|
+
getDeliverySummary(id: string, observe?: 'response', reportProgress?: boolean, options?: {
|
|
190
|
+
httpHeaderAccept?: 'application/json';
|
|
191
|
+
context?: HttpContext;
|
|
192
|
+
transferCache?: boolean;
|
|
193
|
+
}): Observable<HttpResponse<DeliverySummary>>;
|
|
194
|
+
getDeliverySummary(id: string, observe?: 'events', reportProgress?: boolean, options?: {
|
|
195
|
+
httpHeaderAccept?: 'application/json';
|
|
196
|
+
context?: HttpContext;
|
|
197
|
+
transferCache?: boolean;
|
|
198
|
+
}): Observable<HttpEvent<DeliverySummary>>;
|
|
161
199
|
/**
|
|
162
200
|
* Update a specific delivery
|
|
163
201
|
* @param id
|
|
164
202
|
* @param delivery
|
|
203
|
+
* @param propertiesToUpdate
|
|
165
204
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
166
205
|
* @param reportProgress flag to report request and response progress.
|
|
167
206
|
*/
|
|
168
|
-
setDelivery(id: string, delivery: Delivery, observe?: 'body', reportProgress?: boolean, options?: {
|
|
207
|
+
setDelivery(id: string, delivery: Delivery, propertiesToUpdate?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {
|
|
169
208
|
httpHeaderAccept?: 'application/json';
|
|
170
209
|
context?: HttpContext;
|
|
171
210
|
transferCache?: boolean;
|
|
172
211
|
}): Observable<Delivery>;
|
|
173
|
-
setDelivery(id: string, delivery: Delivery, observe?: 'response', reportProgress?: boolean, options?: {
|
|
212
|
+
setDelivery(id: string, delivery: Delivery, propertiesToUpdate?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {
|
|
174
213
|
httpHeaderAccept?: 'application/json';
|
|
175
214
|
context?: HttpContext;
|
|
176
215
|
transferCache?: boolean;
|
|
177
216
|
}): Observable<HttpResponse<Delivery>>;
|
|
178
|
-
setDelivery(id: string, delivery: Delivery, observe?: 'events', reportProgress?: boolean, options?: {
|
|
217
|
+
setDelivery(id: string, delivery: Delivery, propertiesToUpdate?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {
|
|
179
218
|
httpHeaderAccept?: 'application/json';
|
|
180
219
|
context?: HttpContext;
|
|
181
220
|
transferCache?: boolean;
|
|
@@ -85,20 +85,21 @@ export declare class DeliveryItemsService {
|
|
|
85
85
|
* Update a specific delivery Item
|
|
86
86
|
* @param id
|
|
87
87
|
* @param deliveryItem
|
|
88
|
+
* @param propertiesToUpdate
|
|
88
89
|
* @param observe set whether or not to return the data Observable as the body, response or events. defaults to returning the body.
|
|
89
90
|
* @param reportProgress flag to report request and response progress.
|
|
90
91
|
*/
|
|
91
|
-
setDeliveryItem(id: string, deliveryItem: DeliveryItem, observe?: 'body', reportProgress?: boolean, options?: {
|
|
92
|
+
setDeliveryItem(id: string, deliveryItem: DeliveryItem, propertiesToUpdate?: Array<string>, observe?: 'body', reportProgress?: boolean, options?: {
|
|
92
93
|
httpHeaderAccept?: 'application/json';
|
|
93
94
|
context?: HttpContext;
|
|
94
95
|
transferCache?: boolean;
|
|
95
96
|
}): Observable<DeliveryItem>;
|
|
96
|
-
setDeliveryItem(id: string, deliveryItem: DeliveryItem, observe?: 'response', reportProgress?: boolean, options?: {
|
|
97
|
+
setDeliveryItem(id: string, deliveryItem: DeliveryItem, propertiesToUpdate?: Array<string>, observe?: 'response', reportProgress?: boolean, options?: {
|
|
97
98
|
httpHeaderAccept?: 'application/json';
|
|
98
99
|
context?: HttpContext;
|
|
99
100
|
transferCache?: boolean;
|
|
100
101
|
}): Observable<HttpResponse<DeliveryItem>>;
|
|
101
|
-
setDeliveryItem(id: string, deliveryItem: DeliveryItem, observe?: 'events', reportProgress?: boolean, options?: {
|
|
102
|
+
setDeliveryItem(id: string, deliveryItem: DeliveryItem, propertiesToUpdate?: Array<string>, observe?: 'events', reportProgress?: boolean, options?: {
|
|
102
103
|
httpHeaderAccept?: 'application/json';
|
|
103
104
|
context?: HttpContext;
|
|
104
105
|
transferCache?: boolean;
|
|
@@ -1034,6 +1034,131 @@ class DcsService {
|
|
|
1034
1034
|
reportProgress: reportProgress
|
|
1035
1035
|
});
|
|
1036
1036
|
}
|
|
1037
|
+
getDc(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1038
|
+
if (id === null || id === undefined) {
|
|
1039
|
+
throw new Error('Required parameter id was null or undefined when calling getDc.');
|
|
1040
|
+
}
|
|
1041
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1042
|
+
if ($skip !== undefined && $skip !== null) {
|
|
1043
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
1044
|
+
}
|
|
1045
|
+
if ($top !== undefined && $top !== null) {
|
|
1046
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
1047
|
+
}
|
|
1048
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
1049
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
1050
|
+
}
|
|
1051
|
+
if ($filter !== undefined && $filter !== null) {
|
|
1052
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
1053
|
+
}
|
|
1054
|
+
if ($search !== undefined && $search !== null) {
|
|
1055
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
1056
|
+
}
|
|
1057
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1058
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1059
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1060
|
+
// to determine the Accept header
|
|
1061
|
+
const httpHeaderAccepts = [
|
|
1062
|
+
'application/json'
|
|
1063
|
+
];
|
|
1064
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1065
|
+
}
|
|
1066
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1067
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1068
|
+
}
|
|
1069
|
+
let localVarHttpContext = options && options.context;
|
|
1070
|
+
if (localVarHttpContext === undefined) {
|
|
1071
|
+
localVarHttpContext = new HttpContext();
|
|
1072
|
+
}
|
|
1073
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1074
|
+
if (localVarTransferCache === undefined) {
|
|
1075
|
+
localVarTransferCache = true;
|
|
1076
|
+
}
|
|
1077
|
+
let responseType_ = 'json';
|
|
1078
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1079
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1080
|
+
responseType_ = 'text';
|
|
1081
|
+
}
|
|
1082
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1083
|
+
responseType_ = 'json';
|
|
1084
|
+
}
|
|
1085
|
+
else {
|
|
1086
|
+
responseType_ = 'blob';
|
|
1087
|
+
}
|
|
1088
|
+
}
|
|
1089
|
+
let localVarPath = `/dcs/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/`;
|
|
1090
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1091
|
+
context: localVarHttpContext,
|
|
1092
|
+
params: localVarQueryParameters,
|
|
1093
|
+
responseType: responseType_,
|
|
1094
|
+
withCredentials: this.configuration.withCredentials,
|
|
1095
|
+
headers: localVarHeaders,
|
|
1096
|
+
observe: observe,
|
|
1097
|
+
transferCache: localVarTransferCache,
|
|
1098
|
+
reportProgress: reportProgress
|
|
1099
|
+
});
|
|
1100
|
+
}
|
|
1101
|
+
getDcs($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1102
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1103
|
+
if ($skip !== undefined && $skip !== null) {
|
|
1104
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
1105
|
+
}
|
|
1106
|
+
if ($top !== undefined && $top !== null) {
|
|
1107
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
1108
|
+
}
|
|
1109
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
1110
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
1111
|
+
}
|
|
1112
|
+
if ($filter !== undefined && $filter !== null) {
|
|
1113
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
1114
|
+
}
|
|
1115
|
+
if ($search !== undefined && $search !== null) {
|
|
1116
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
1117
|
+
}
|
|
1118
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1119
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1120
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1121
|
+
// to determine the Accept header
|
|
1122
|
+
const httpHeaderAccepts = [
|
|
1123
|
+
'application/json'
|
|
1124
|
+
];
|
|
1125
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1126
|
+
}
|
|
1127
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1128
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1129
|
+
}
|
|
1130
|
+
let localVarHttpContext = options && options.context;
|
|
1131
|
+
if (localVarHttpContext === undefined) {
|
|
1132
|
+
localVarHttpContext = new HttpContext();
|
|
1133
|
+
}
|
|
1134
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1135
|
+
if (localVarTransferCache === undefined) {
|
|
1136
|
+
localVarTransferCache = true;
|
|
1137
|
+
}
|
|
1138
|
+
let responseType_ = 'json';
|
|
1139
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1140
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1141
|
+
responseType_ = 'text';
|
|
1142
|
+
}
|
|
1143
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1144
|
+
responseType_ = 'json';
|
|
1145
|
+
}
|
|
1146
|
+
else {
|
|
1147
|
+
responseType_ = 'blob';
|
|
1148
|
+
}
|
|
1149
|
+
}
|
|
1150
|
+
let localVarPath = `/dcs`;
|
|
1151
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1152
|
+
context: localVarHttpContext,
|
|
1153
|
+
params: localVarQueryParameters,
|
|
1154
|
+
responseType: responseType_,
|
|
1155
|
+
withCredentials: this.configuration.withCredentials,
|
|
1156
|
+
headers: localVarHeaders,
|
|
1157
|
+
observe: observe,
|
|
1158
|
+
transferCache: localVarTransferCache,
|
|
1159
|
+
reportProgress: reportProgress
|
|
1160
|
+
});
|
|
1161
|
+
}
|
|
1037
1162
|
getDispatchSummary(clientIds, orderTypes, observe = 'body', reportProgress = false, options) {
|
|
1038
1163
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1039
1164
|
if (clientIds) {
|
|
@@ -1290,6 +1415,51 @@ class DeliveriesService {
|
|
|
1290
1415
|
}
|
|
1291
1416
|
return httpParams;
|
|
1292
1417
|
}
|
|
1418
|
+
confirmDelivery(id, observe = 'body', reportProgress = false, options) {
|
|
1419
|
+
if (id === null || id === undefined) {
|
|
1420
|
+
throw new Error('Required parameter id was null or undefined when calling confirmDelivery.');
|
|
1421
|
+
}
|
|
1422
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1423
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1424
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1425
|
+
// to determine the Accept header
|
|
1426
|
+
const httpHeaderAccepts = [];
|
|
1427
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1428
|
+
}
|
|
1429
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1430
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1431
|
+
}
|
|
1432
|
+
let localVarHttpContext = options && options.context;
|
|
1433
|
+
if (localVarHttpContext === undefined) {
|
|
1434
|
+
localVarHttpContext = new HttpContext();
|
|
1435
|
+
}
|
|
1436
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1437
|
+
if (localVarTransferCache === undefined) {
|
|
1438
|
+
localVarTransferCache = true;
|
|
1439
|
+
}
|
|
1440
|
+
let responseType_ = 'json';
|
|
1441
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1442
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1443
|
+
responseType_ = 'text';
|
|
1444
|
+
}
|
|
1445
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1446
|
+
responseType_ = 'json';
|
|
1447
|
+
}
|
|
1448
|
+
else {
|
|
1449
|
+
responseType_ = 'blob';
|
|
1450
|
+
}
|
|
1451
|
+
}
|
|
1452
|
+
let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/confirm`;
|
|
1453
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1454
|
+
context: localVarHttpContext,
|
|
1455
|
+
responseType: responseType_,
|
|
1456
|
+
withCredentials: this.configuration.withCredentials,
|
|
1457
|
+
headers: localVarHeaders,
|
|
1458
|
+
observe: observe,
|
|
1459
|
+
transferCache: localVarTransferCache,
|
|
1460
|
+
reportProgress: reportProgress
|
|
1461
|
+
});
|
|
1462
|
+
}
|
|
1293
1463
|
createDelivery(delivery, observe = 'body', reportProgress = false, options) {
|
|
1294
1464
|
if (delivery === null || delivery === undefined) {
|
|
1295
1465
|
throw new Error('Required parameter delivery was null or undefined when calling createDelivery.');
|
|
@@ -1380,7 +1550,7 @@ class DeliveriesService {
|
|
|
1380
1550
|
responseType_ = 'blob';
|
|
1381
1551
|
}
|
|
1382
1552
|
}
|
|
1383
|
-
let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}
|
|
1553
|
+
let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1384
1554
|
return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
1385
1555
|
context: localVarHttpContext,
|
|
1386
1556
|
responseType: responseType_,
|
|
@@ -1577,25 +1747,56 @@ class DeliveriesService {
|
|
|
1577
1747
|
reportProgress: reportProgress
|
|
1578
1748
|
});
|
|
1579
1749
|
}
|
|
1580
|
-
getDelivery(id,
|
|
1750
|
+
getDelivery(id, observe = 'body', reportProgress = false, options) {
|
|
1581
1751
|
if (id === null || id === undefined) {
|
|
1582
1752
|
throw new Error('Required parameter id was null or undefined when calling getDelivery.');
|
|
1583
1753
|
}
|
|
1584
|
-
let
|
|
1585
|
-
|
|
1586
|
-
|
|
1754
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1755
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1756
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1757
|
+
// to determine the Accept header
|
|
1758
|
+
const httpHeaderAccepts = [
|
|
1759
|
+
'application/json'
|
|
1760
|
+
];
|
|
1761
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1587
1762
|
}
|
|
1588
|
-
if (
|
|
1589
|
-
|
|
1763
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1764
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1590
1765
|
}
|
|
1591
|
-
|
|
1592
|
-
|
|
1766
|
+
let localVarHttpContext = options && options.context;
|
|
1767
|
+
if (localVarHttpContext === undefined) {
|
|
1768
|
+
localVarHttpContext = new HttpContext();
|
|
1593
1769
|
}
|
|
1594
|
-
|
|
1595
|
-
|
|
1770
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1771
|
+
if (localVarTransferCache === undefined) {
|
|
1772
|
+
localVarTransferCache = true;
|
|
1596
1773
|
}
|
|
1597
|
-
|
|
1598
|
-
|
|
1774
|
+
let responseType_ = 'json';
|
|
1775
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1776
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1777
|
+
responseType_ = 'text';
|
|
1778
|
+
}
|
|
1779
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1780
|
+
responseType_ = 'json';
|
|
1781
|
+
}
|
|
1782
|
+
else {
|
|
1783
|
+
responseType_ = 'blob';
|
|
1784
|
+
}
|
|
1785
|
+
}
|
|
1786
|
+
let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1787
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1788
|
+
context: localVarHttpContext,
|
|
1789
|
+
responseType: responseType_,
|
|
1790
|
+
withCredentials: this.configuration.withCredentials,
|
|
1791
|
+
headers: localVarHeaders,
|
|
1792
|
+
observe: observe,
|
|
1793
|
+
transferCache: localVarTransferCache,
|
|
1794
|
+
reportProgress: reportProgress
|
|
1795
|
+
});
|
|
1796
|
+
}
|
|
1797
|
+
getDeliverySummary(id, observe = 'body', reportProgress = false, options) {
|
|
1798
|
+
if (id === null || id === undefined) {
|
|
1799
|
+
throw new Error('Required parameter id was null or undefined when calling getDeliverySummary.');
|
|
1599
1800
|
}
|
|
1600
1801
|
let localVarHeaders = this.defaultHeaders;
|
|
1601
1802
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
@@ -1629,10 +1830,9 @@ class DeliveriesService {
|
|
|
1629
1830
|
responseType_ = 'blob';
|
|
1630
1831
|
}
|
|
1631
1832
|
}
|
|
1632
|
-
let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}
|
|
1833
|
+
let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/summary`;
|
|
1633
1834
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1634
1835
|
context: localVarHttpContext,
|
|
1635
|
-
params: localVarQueryParameters,
|
|
1636
1836
|
responseType: responseType_,
|
|
1637
1837
|
withCredentials: this.configuration.withCredentials,
|
|
1638
1838
|
headers: localVarHeaders,
|
|
@@ -1641,13 +1841,19 @@ class DeliveriesService {
|
|
|
1641
1841
|
reportProgress: reportProgress
|
|
1642
1842
|
});
|
|
1643
1843
|
}
|
|
1644
|
-
setDelivery(id, delivery, observe = 'body', reportProgress = false, options) {
|
|
1844
|
+
setDelivery(id, delivery, propertiesToUpdate, observe = 'body', reportProgress = false, options) {
|
|
1645
1845
|
if (id === null || id === undefined) {
|
|
1646
1846
|
throw new Error('Required parameter id was null or undefined when calling setDelivery.');
|
|
1647
1847
|
}
|
|
1648
1848
|
if (delivery === null || delivery === undefined) {
|
|
1649
1849
|
throw new Error('Required parameter delivery was null or undefined when calling setDelivery.');
|
|
1650
1850
|
}
|
|
1851
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1852
|
+
if (propertiesToUpdate) {
|
|
1853
|
+
propertiesToUpdate.forEach((element) => {
|
|
1854
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'propertiesToUpdate');
|
|
1855
|
+
});
|
|
1856
|
+
}
|
|
1651
1857
|
let localVarHeaders = this.defaultHeaders;
|
|
1652
1858
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1653
1859
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -1688,10 +1894,11 @@ class DeliveriesService {
|
|
|
1688
1894
|
responseType_ = 'blob';
|
|
1689
1895
|
}
|
|
1690
1896
|
}
|
|
1691
|
-
let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}
|
|
1897
|
+
let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1692
1898
|
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
1693
1899
|
context: localVarHttpContext,
|
|
1694
1900
|
body: delivery,
|
|
1901
|
+
params: localVarQueryParameters,
|
|
1695
1902
|
responseType: responseType_,
|
|
1696
1903
|
withCredentials: this.configuration.withCredentials,
|
|
1697
1904
|
headers: localVarHeaders,
|
|
@@ -1953,13 +2160,19 @@ class DeliveryItemsService {
|
|
|
1953
2160
|
reportProgress: reportProgress
|
|
1954
2161
|
});
|
|
1955
2162
|
}
|
|
1956
|
-
setDeliveryItem(id, deliveryItem, observe = 'body', reportProgress = false, options) {
|
|
2163
|
+
setDeliveryItem(id, deliveryItem, propertiesToUpdate, observe = 'body', reportProgress = false, options) {
|
|
1957
2164
|
if (id === null || id === undefined) {
|
|
1958
2165
|
throw new Error('Required parameter id was null or undefined when calling setDeliveryItem.');
|
|
1959
2166
|
}
|
|
1960
2167
|
if (deliveryItem === null || deliveryItem === undefined) {
|
|
1961
2168
|
throw new Error('Required parameter deliveryItem was null or undefined when calling setDeliveryItem.');
|
|
1962
2169
|
}
|
|
2170
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2171
|
+
if (propertiesToUpdate) {
|
|
2172
|
+
propertiesToUpdate.forEach((element) => {
|
|
2173
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'propertiesToUpdate');
|
|
2174
|
+
});
|
|
2175
|
+
}
|
|
1963
2176
|
let localVarHeaders = this.defaultHeaders;
|
|
1964
2177
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1965
2178
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -2004,6 +2217,7 @@ class DeliveryItemsService {
|
|
|
2004
2217
|
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
2005
2218
|
context: localVarHttpContext,
|
|
2006
2219
|
body: deliveryItem,
|
|
2220
|
+
params: localVarQueryParameters,
|
|
2007
2221
|
responseType: responseType_,
|
|
2008
2222
|
withCredentials: this.configuration.withCredentials,
|
|
2009
2223
|
headers: localVarHeaders,
|
|
@@ -3876,16 +4090,6 @@ const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService,
|
|
|
3876
4090
|
* Do not edit the class manually.
|
|
3877
4091
|
*/
|
|
3878
4092
|
|
|
3879
|
-
/**
|
|
3880
|
-
* Wms.API.Client
|
|
3881
|
-
*
|
|
3882
|
-
*
|
|
3883
|
-
*
|
|
3884
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3885
|
-
* https://openapi-generator.tech
|
|
3886
|
-
* Do not edit the class manually.
|
|
3887
|
-
*/
|
|
3888
|
-
|
|
3889
4093
|
/**
|
|
3890
4094
|
* Wms.API.Client
|
|
3891
4095
|
*
|