@indigina/wms-api 0.0.45 → 0.0.47
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/api.d.ts +5 -1
- package/api/dcs.service.d.ts +20 -12
- package/api/deliveries.service.d.ts +27 -0
- package/api/productMasters.service.d.ts +42 -0
- package/api/reasons.service.d.ts +42 -0
- package/fesm2022/indigina-wms-api.mjs +443 -6
- package/fesm2022/indigina-wms-api.mjs.map +1 -1
- package/model/delivery.d.ts +35 -0
- package/model/deliveryItemView.d.ts +1 -0
- package/model/models.d.ts +7 -0
- package/model/productMaster.d.ts +19 -0
- package/model/productMasters.d.ts +14 -0
- package/model/qcType.d.ts +13 -0
- package/model/reason.d.ts +17 -0
- package/model/reasonType.d.ts +14 -0
- package/model/reasons.d.ts +14 -0
- package/package.json +1 -1
|
@@ -978,7 +978,18 @@ class DcsService {
|
|
|
978
978
|
}
|
|
979
979
|
return httpParams;
|
|
980
980
|
}
|
|
981
|
-
getCountingSummary(observe = 'body', reportProgress = false, options) {
|
|
981
|
+
getCountingSummary(clientIds, countingTypes, observe = 'body', reportProgress = false, options) {
|
|
982
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
983
|
+
if (clientIds) {
|
|
984
|
+
clientIds.forEach((element) => {
|
|
985
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'clientIds');
|
|
986
|
+
});
|
|
987
|
+
}
|
|
988
|
+
if (countingTypes) {
|
|
989
|
+
countingTypes.forEach((element) => {
|
|
990
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'countingTypes');
|
|
991
|
+
});
|
|
992
|
+
}
|
|
982
993
|
let localVarHeaders = this.defaultHeaders;
|
|
983
994
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
984
995
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -1014,6 +1025,7 @@ class DcsService {
|
|
|
1014
1025
|
let localVarPath = `/dcs/counting/summary`;
|
|
1015
1026
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1016
1027
|
context: localVarHttpContext,
|
|
1028
|
+
params: localVarQueryParameters,
|
|
1017
1029
|
responseType: responseType_,
|
|
1018
1030
|
withCredentials: this.configuration.withCredentials,
|
|
1019
1031
|
headers: localVarHeaders,
|
|
@@ -1022,7 +1034,18 @@ class DcsService {
|
|
|
1022
1034
|
reportProgress: reportProgress
|
|
1023
1035
|
});
|
|
1024
1036
|
}
|
|
1025
|
-
getDispatchSummary(observe = 'body', reportProgress = false, options) {
|
|
1037
|
+
getDispatchSummary(clientIds, orderTypes, observe = 'body', reportProgress = false, options) {
|
|
1038
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1039
|
+
if (clientIds) {
|
|
1040
|
+
clientIds.forEach((element) => {
|
|
1041
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'clientIds');
|
|
1042
|
+
});
|
|
1043
|
+
}
|
|
1044
|
+
if (orderTypes) {
|
|
1045
|
+
orderTypes.forEach((element) => {
|
|
1046
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'orderTypes');
|
|
1047
|
+
});
|
|
1048
|
+
}
|
|
1026
1049
|
let localVarHeaders = this.defaultHeaders;
|
|
1027
1050
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1028
1051
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -1058,6 +1081,7 @@ class DcsService {
|
|
|
1058
1081
|
let localVarPath = `/dcs/dispatches/summary`;
|
|
1059
1082
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1060
1083
|
context: localVarHttpContext,
|
|
1084
|
+
params: localVarQueryParameters,
|
|
1061
1085
|
responseType: responseType_,
|
|
1062
1086
|
withCredentials: this.configuration.withCredentials,
|
|
1063
1087
|
headers: localVarHeaders,
|
|
@@ -1066,7 +1090,18 @@ class DcsService {
|
|
|
1066
1090
|
reportProgress: reportProgress
|
|
1067
1091
|
});
|
|
1068
1092
|
}
|
|
1069
|
-
getReceivingSummary(observe = 'body', reportProgress = false, options) {
|
|
1093
|
+
getReceivingSummary(clientIds, deliveryTypes, observe = 'body', reportProgress = false, options) {
|
|
1094
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1095
|
+
if (clientIds) {
|
|
1096
|
+
clientIds.forEach((element) => {
|
|
1097
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'clientIds');
|
|
1098
|
+
});
|
|
1099
|
+
}
|
|
1100
|
+
if (deliveryTypes) {
|
|
1101
|
+
deliveryTypes.forEach((element) => {
|
|
1102
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'deliveryTypes');
|
|
1103
|
+
});
|
|
1104
|
+
}
|
|
1070
1105
|
let localVarHeaders = this.defaultHeaders;
|
|
1071
1106
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1072
1107
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -1102,6 +1137,7 @@ class DcsService {
|
|
|
1102
1137
|
let localVarPath = `/dcs/receiving/summary`;
|
|
1103
1138
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1104
1139
|
context: localVarHttpContext,
|
|
1140
|
+
params: localVarQueryParameters,
|
|
1105
1141
|
responseType: responseType_,
|
|
1106
1142
|
withCredentials: this.configuration.withCredentials,
|
|
1107
1143
|
headers: localVarHeaders,
|
|
@@ -1110,7 +1146,18 @@ class DcsService {
|
|
|
1110
1146
|
reportProgress: reportProgress
|
|
1111
1147
|
});
|
|
1112
1148
|
}
|
|
1113
|
-
getReplenishmentSummary(observe = 'body', reportProgress = false, options) {
|
|
1149
|
+
getReplenishmentSummary(clientIds, replenishmentTypes, observe = 'body', reportProgress = false, options) {
|
|
1150
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1151
|
+
if (clientIds) {
|
|
1152
|
+
clientIds.forEach((element) => {
|
|
1153
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'clientIds');
|
|
1154
|
+
});
|
|
1155
|
+
}
|
|
1156
|
+
if (replenishmentTypes) {
|
|
1157
|
+
replenishmentTypes.forEach((element) => {
|
|
1158
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, element, 'replenishmentTypes');
|
|
1159
|
+
});
|
|
1160
|
+
}
|
|
1114
1161
|
let localVarHeaders = this.defaultHeaders;
|
|
1115
1162
|
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1116
1163
|
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
@@ -1146,6 +1193,7 @@ class DcsService {
|
|
|
1146
1193
|
let localVarPath = `/dcs/replenishment/summary`;
|
|
1147
1194
|
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1148
1195
|
context: localVarHttpContext,
|
|
1196
|
+
params: localVarQueryParameters,
|
|
1149
1197
|
responseType: responseType_,
|
|
1150
1198
|
withCredentials: this.configuration.withCredentials,
|
|
1151
1199
|
headers: localVarHeaders,
|
|
@@ -1428,6 +1476,70 @@ class DeliveriesService {
|
|
|
1428
1476
|
reportProgress: reportProgress
|
|
1429
1477
|
});
|
|
1430
1478
|
}
|
|
1479
|
+
getDelivery(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1480
|
+
if (id === null || id === undefined) {
|
|
1481
|
+
throw new Error('Required parameter id was null or undefined when calling getDelivery.');
|
|
1482
|
+
}
|
|
1483
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1484
|
+
if ($skip !== undefined && $skip !== null) {
|
|
1485
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
1486
|
+
}
|
|
1487
|
+
if ($top !== undefined && $top !== null) {
|
|
1488
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
1489
|
+
}
|
|
1490
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
1491
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
1492
|
+
}
|
|
1493
|
+
if ($filter !== undefined && $filter !== null) {
|
|
1494
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
1495
|
+
}
|
|
1496
|
+
if ($search !== undefined && $search !== null) {
|
|
1497
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
1498
|
+
}
|
|
1499
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1500
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1501
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1502
|
+
// to determine the Accept header
|
|
1503
|
+
const httpHeaderAccepts = [
|
|
1504
|
+
'application/json'
|
|
1505
|
+
];
|
|
1506
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1507
|
+
}
|
|
1508
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1509
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1510
|
+
}
|
|
1511
|
+
let localVarHttpContext = options && options.context;
|
|
1512
|
+
if (localVarHttpContext === undefined) {
|
|
1513
|
+
localVarHttpContext = new HttpContext();
|
|
1514
|
+
}
|
|
1515
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1516
|
+
if (localVarTransferCache === undefined) {
|
|
1517
|
+
localVarTransferCache = true;
|
|
1518
|
+
}
|
|
1519
|
+
let responseType_ = 'json';
|
|
1520
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1521
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1522
|
+
responseType_ = 'text';
|
|
1523
|
+
}
|
|
1524
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1525
|
+
responseType_ = 'json';
|
|
1526
|
+
}
|
|
1527
|
+
else {
|
|
1528
|
+
responseType_ = 'blob';
|
|
1529
|
+
}
|
|
1530
|
+
}
|
|
1531
|
+
let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/`;
|
|
1532
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
1533
|
+
context: localVarHttpContext,
|
|
1534
|
+
params: localVarQueryParameters,
|
|
1535
|
+
responseType: responseType_,
|
|
1536
|
+
withCredentials: this.configuration.withCredentials,
|
|
1537
|
+
headers: localVarHeaders,
|
|
1538
|
+
observe: observe,
|
|
1539
|
+
transferCache: localVarTransferCache,
|
|
1540
|
+
reportProgress: reportProgress
|
|
1541
|
+
});
|
|
1542
|
+
}
|
|
1431
1543
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DeliveriesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1432
1544
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DeliveriesService, providedIn: 'root' });
|
|
1433
1545
|
}
|
|
@@ -2140,6 +2252,304 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
2140
2252
|
type: Optional
|
|
2141
2253
|
}] }] });
|
|
2142
2254
|
|
|
2255
|
+
/**
|
|
2256
|
+
* Wms.API.Client
|
|
2257
|
+
*
|
|
2258
|
+
*
|
|
2259
|
+
*
|
|
2260
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2261
|
+
* https://openapi-generator.tech
|
|
2262
|
+
* Do not edit the class manually.
|
|
2263
|
+
*/
|
|
2264
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
2265
|
+
class ProductMastersService {
|
|
2266
|
+
httpClient;
|
|
2267
|
+
basePath = 'http://localhost';
|
|
2268
|
+
defaultHeaders = new HttpHeaders();
|
|
2269
|
+
configuration = new Configuration();
|
|
2270
|
+
encoder;
|
|
2271
|
+
constructor(httpClient, basePath, configuration) {
|
|
2272
|
+
this.httpClient = httpClient;
|
|
2273
|
+
if (configuration) {
|
|
2274
|
+
this.configuration = configuration;
|
|
2275
|
+
}
|
|
2276
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
2277
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
2278
|
+
if (firstBasePath != undefined) {
|
|
2279
|
+
basePath = firstBasePath;
|
|
2280
|
+
}
|
|
2281
|
+
if (typeof basePath !== 'string') {
|
|
2282
|
+
basePath = this.basePath;
|
|
2283
|
+
}
|
|
2284
|
+
this.configuration.basePath = basePath;
|
|
2285
|
+
}
|
|
2286
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
2287
|
+
}
|
|
2288
|
+
// @ts-ignore
|
|
2289
|
+
addToHttpParams(httpParams, value, key) {
|
|
2290
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
2291
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
2292
|
+
}
|
|
2293
|
+
else {
|
|
2294
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
2295
|
+
}
|
|
2296
|
+
return httpParams;
|
|
2297
|
+
}
|
|
2298
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
2299
|
+
if (value == null) {
|
|
2300
|
+
return httpParams;
|
|
2301
|
+
}
|
|
2302
|
+
if (typeof value === "object") {
|
|
2303
|
+
if (Array.isArray(value)) {
|
|
2304
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
2305
|
+
}
|
|
2306
|
+
else if (value instanceof Date) {
|
|
2307
|
+
if (key != null) {
|
|
2308
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
2309
|
+
}
|
|
2310
|
+
else {
|
|
2311
|
+
throw Error("key may not be null if value is Date");
|
|
2312
|
+
}
|
|
2313
|
+
}
|
|
2314
|
+
else {
|
|
2315
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
2316
|
+
}
|
|
2317
|
+
}
|
|
2318
|
+
else if (key != null) {
|
|
2319
|
+
httpParams = httpParams.append(key, value);
|
|
2320
|
+
}
|
|
2321
|
+
else {
|
|
2322
|
+
throw Error("key may not be null if value is not object or array");
|
|
2323
|
+
}
|
|
2324
|
+
return httpParams;
|
|
2325
|
+
}
|
|
2326
|
+
getProductMasters($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
2327
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2328
|
+
if ($skip !== undefined && $skip !== null) {
|
|
2329
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
2330
|
+
}
|
|
2331
|
+
if ($top !== undefined && $top !== null) {
|
|
2332
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
2333
|
+
}
|
|
2334
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
2335
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
2336
|
+
}
|
|
2337
|
+
if ($filter !== undefined && $filter !== null) {
|
|
2338
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
2339
|
+
}
|
|
2340
|
+
if ($search !== undefined && $search !== null) {
|
|
2341
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
2342
|
+
}
|
|
2343
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2344
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2345
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2346
|
+
// to determine the Accept header
|
|
2347
|
+
const httpHeaderAccepts = [
|
|
2348
|
+
'application/json'
|
|
2349
|
+
];
|
|
2350
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2351
|
+
}
|
|
2352
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2353
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2354
|
+
}
|
|
2355
|
+
let localVarHttpContext = options && options.context;
|
|
2356
|
+
if (localVarHttpContext === undefined) {
|
|
2357
|
+
localVarHttpContext = new HttpContext();
|
|
2358
|
+
}
|
|
2359
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2360
|
+
if (localVarTransferCache === undefined) {
|
|
2361
|
+
localVarTransferCache = true;
|
|
2362
|
+
}
|
|
2363
|
+
let responseType_ = 'json';
|
|
2364
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2365
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2366
|
+
responseType_ = 'text';
|
|
2367
|
+
}
|
|
2368
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2369
|
+
responseType_ = 'json';
|
|
2370
|
+
}
|
|
2371
|
+
else {
|
|
2372
|
+
responseType_ = 'blob';
|
|
2373
|
+
}
|
|
2374
|
+
}
|
|
2375
|
+
let localVarPath = `/productMasters`;
|
|
2376
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2377
|
+
context: localVarHttpContext,
|
|
2378
|
+
params: localVarQueryParameters,
|
|
2379
|
+
responseType: responseType_,
|
|
2380
|
+
withCredentials: this.configuration.withCredentials,
|
|
2381
|
+
headers: localVarHeaders,
|
|
2382
|
+
observe: observe,
|
|
2383
|
+
transferCache: localVarTransferCache,
|
|
2384
|
+
reportProgress: reportProgress
|
|
2385
|
+
});
|
|
2386
|
+
}
|
|
2387
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductMastersService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2388
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductMastersService, providedIn: 'root' });
|
|
2389
|
+
}
|
|
2390
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductMastersService, decorators: [{
|
|
2391
|
+
type: Injectable,
|
|
2392
|
+
args: [{
|
|
2393
|
+
providedIn: 'root'
|
|
2394
|
+
}]
|
|
2395
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2396
|
+
type: Optional
|
|
2397
|
+
}, {
|
|
2398
|
+
type: Inject,
|
|
2399
|
+
args: [BASE_PATH]
|
|
2400
|
+
}] }, { type: Configuration, decorators: [{
|
|
2401
|
+
type: Optional
|
|
2402
|
+
}] }] });
|
|
2403
|
+
|
|
2404
|
+
/**
|
|
2405
|
+
* Wms.API.Client
|
|
2406
|
+
*
|
|
2407
|
+
*
|
|
2408
|
+
*
|
|
2409
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2410
|
+
* https://openapi-generator.tech
|
|
2411
|
+
* Do not edit the class manually.
|
|
2412
|
+
*/
|
|
2413
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
2414
|
+
class ReasonsService {
|
|
2415
|
+
httpClient;
|
|
2416
|
+
basePath = 'http://localhost';
|
|
2417
|
+
defaultHeaders = new HttpHeaders();
|
|
2418
|
+
configuration = new Configuration();
|
|
2419
|
+
encoder;
|
|
2420
|
+
constructor(httpClient, basePath, configuration) {
|
|
2421
|
+
this.httpClient = httpClient;
|
|
2422
|
+
if (configuration) {
|
|
2423
|
+
this.configuration = configuration;
|
|
2424
|
+
}
|
|
2425
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
2426
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
2427
|
+
if (firstBasePath != undefined) {
|
|
2428
|
+
basePath = firstBasePath;
|
|
2429
|
+
}
|
|
2430
|
+
if (typeof basePath !== 'string') {
|
|
2431
|
+
basePath = this.basePath;
|
|
2432
|
+
}
|
|
2433
|
+
this.configuration.basePath = basePath;
|
|
2434
|
+
}
|
|
2435
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
2436
|
+
}
|
|
2437
|
+
// @ts-ignore
|
|
2438
|
+
addToHttpParams(httpParams, value, key) {
|
|
2439
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
2440
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
2441
|
+
}
|
|
2442
|
+
else {
|
|
2443
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
2444
|
+
}
|
|
2445
|
+
return httpParams;
|
|
2446
|
+
}
|
|
2447
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
2448
|
+
if (value == null) {
|
|
2449
|
+
return httpParams;
|
|
2450
|
+
}
|
|
2451
|
+
if (typeof value === "object") {
|
|
2452
|
+
if (Array.isArray(value)) {
|
|
2453
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
2454
|
+
}
|
|
2455
|
+
else if (value instanceof Date) {
|
|
2456
|
+
if (key != null) {
|
|
2457
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
2458
|
+
}
|
|
2459
|
+
else {
|
|
2460
|
+
throw Error("key may not be null if value is Date");
|
|
2461
|
+
}
|
|
2462
|
+
}
|
|
2463
|
+
else {
|
|
2464
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
2465
|
+
}
|
|
2466
|
+
}
|
|
2467
|
+
else if (key != null) {
|
|
2468
|
+
httpParams = httpParams.append(key, value);
|
|
2469
|
+
}
|
|
2470
|
+
else {
|
|
2471
|
+
throw Error("key may not be null if value is not object or array");
|
|
2472
|
+
}
|
|
2473
|
+
return httpParams;
|
|
2474
|
+
}
|
|
2475
|
+
getReasons($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
2476
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2477
|
+
if ($skip !== undefined && $skip !== null) {
|
|
2478
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
2479
|
+
}
|
|
2480
|
+
if ($top !== undefined && $top !== null) {
|
|
2481
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
2482
|
+
}
|
|
2483
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
2484
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
2485
|
+
}
|
|
2486
|
+
if ($filter !== undefined && $filter !== null) {
|
|
2487
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
2488
|
+
}
|
|
2489
|
+
if ($search !== undefined && $search !== null) {
|
|
2490
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
2491
|
+
}
|
|
2492
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2493
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2494
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2495
|
+
// to determine the Accept header
|
|
2496
|
+
const httpHeaderAccepts = [
|
|
2497
|
+
'application/json'
|
|
2498
|
+
];
|
|
2499
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2500
|
+
}
|
|
2501
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2502
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2503
|
+
}
|
|
2504
|
+
let localVarHttpContext = options && options.context;
|
|
2505
|
+
if (localVarHttpContext === undefined) {
|
|
2506
|
+
localVarHttpContext = new HttpContext();
|
|
2507
|
+
}
|
|
2508
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2509
|
+
if (localVarTransferCache === undefined) {
|
|
2510
|
+
localVarTransferCache = true;
|
|
2511
|
+
}
|
|
2512
|
+
let responseType_ = 'json';
|
|
2513
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2514
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2515
|
+
responseType_ = 'text';
|
|
2516
|
+
}
|
|
2517
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2518
|
+
responseType_ = 'json';
|
|
2519
|
+
}
|
|
2520
|
+
else {
|
|
2521
|
+
responseType_ = 'blob';
|
|
2522
|
+
}
|
|
2523
|
+
}
|
|
2524
|
+
let localVarPath = `/reasons`;
|
|
2525
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2526
|
+
context: localVarHttpContext,
|
|
2527
|
+
params: localVarQueryParameters,
|
|
2528
|
+
responseType: responseType_,
|
|
2529
|
+
withCredentials: this.configuration.withCredentials,
|
|
2530
|
+
headers: localVarHeaders,
|
|
2531
|
+
observe: observe,
|
|
2532
|
+
transferCache: localVarTransferCache,
|
|
2533
|
+
reportProgress: reportProgress
|
|
2534
|
+
});
|
|
2535
|
+
}
|
|
2536
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ReasonsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2537
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ReasonsService, providedIn: 'root' });
|
|
2538
|
+
}
|
|
2539
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ReasonsService, decorators: [{
|
|
2540
|
+
type: Injectable,
|
|
2541
|
+
args: [{
|
|
2542
|
+
providedIn: 'root'
|
|
2543
|
+
}]
|
|
2544
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2545
|
+
type: Optional
|
|
2546
|
+
}, {
|
|
2547
|
+
type: Inject,
|
|
2548
|
+
args: [BASE_PATH]
|
|
2549
|
+
}] }, { type: Configuration, decorators: [{
|
|
2550
|
+
type: Optional
|
|
2551
|
+
}] }] });
|
|
2552
|
+
|
|
2143
2553
|
/**
|
|
2144
2554
|
* Wms.API.Client
|
|
2145
2555
|
*
|
|
@@ -2935,7 +3345,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
2935
3345
|
type: Optional
|
|
2936
3346
|
}] }] });
|
|
2937
3347
|
|
|
2938
|
-
const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, HealthService, NotesService, PermissionsService, SettingsService, SummaryService, UserService];
|
|
3348
|
+
const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, HealthService, NotesService, PermissionsService, ProductMastersService, ReasonsService, SettingsService, SummaryService, UserService];
|
|
2939
3349
|
|
|
2940
3350
|
/**
|
|
2941
3351
|
* Wms.API.Client
|
|
@@ -3124,6 +3534,33 @@ const OrderStatus = {
|
|
|
3124
3534
|
Booked: 'Booked'
|
|
3125
3535
|
};
|
|
3126
3536
|
|
|
3537
|
+
/**
|
|
3538
|
+
* Wms.API.Client
|
|
3539
|
+
*
|
|
3540
|
+
*
|
|
3541
|
+
*
|
|
3542
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3543
|
+
* https://openapi-generator.tech
|
|
3544
|
+
* Do not edit the class manually.
|
|
3545
|
+
*/
|
|
3546
|
+
const QcType = {
|
|
3547
|
+
CheckerCount: 'CheckerCount'
|
|
3548
|
+
};
|
|
3549
|
+
|
|
3550
|
+
/**
|
|
3551
|
+
* Wms.API.Client
|
|
3552
|
+
*
|
|
3553
|
+
*
|
|
3554
|
+
*
|
|
3555
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3556
|
+
* https://openapi-generator.tech
|
|
3557
|
+
* Do not edit the class manually.
|
|
3558
|
+
*/
|
|
3559
|
+
const ReasonType = {
|
|
3560
|
+
Receipt: 'Receipt',
|
|
3561
|
+
InventoryHoldMovement: 'InventoryHoldMovement'
|
|
3562
|
+
};
|
|
3563
|
+
|
|
3127
3564
|
/**
|
|
3128
3565
|
* Wms.API.Client
|
|
3129
3566
|
*
|
|
@@ -3258,5 +3695,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
3258
3695
|
* Generated bundle index. Do not edit.
|
|
3259
3696
|
*/
|
|
3260
3697
|
|
|
3261
|
-
export { APIS, AnalyticsService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CompaniesService, Configuration, DcsService, DeliveriesService, DeliveryItemsService, DeliveryType, HealthService, NoteCategory, NoteSourceType, NotesService, OrderStatus, PermissionsService, RecordType, SettingsService, SummaryService, UserService };
|
|
3698
|
+
export { APIS, AnalyticsService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CompaniesService, Configuration, DcsService, DeliveriesService, DeliveryItemsService, DeliveryType, HealthService, NoteCategory, NoteSourceType, NotesService, OrderStatus, PermissionsService, ProductMastersService, QcType, ReasonType, ReasonsService, RecordType, SettingsService, SummaryService, UserService };
|
|
3262
3699
|
//# sourceMappingURL=indigina-wms-api.mjs.map
|