@indigina/wms-api 0.0.47 → 0.0.48
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 +3 -1
- package/api/deliveries.service.d.ts +64 -0
- package/api/deliveryItems.service.d.ts +65 -0
- package/api/productQuantities.service.d.ts +42 -0
- package/fesm2022/indigina-wms-api.mjs +491 -3
- package/fesm2022/indigina-wms-api.mjs.map +1 -1
- package/model/delivery.d.ts +9 -8
- package/model/deliveryItem.d.ts +26 -0
- package/model/models.d.ts +3 -0
- package/model/noteSourceType.d.ts +1 -2
- package/model/productQuantities.d.ts +14 -0
- package/model/productQuantity.d.ts +14 -0
- package/package.json +1 -1
|
@@ -1290,6 +1290,107 @@ class DeliveriesService {
|
|
|
1290
1290
|
}
|
|
1291
1291
|
return httpParams;
|
|
1292
1292
|
}
|
|
1293
|
+
createDelivery(delivery, observe = 'body', reportProgress = false, options) {
|
|
1294
|
+
if (delivery === null || delivery === undefined) {
|
|
1295
|
+
throw new Error('Required parameter delivery was null or undefined when calling createDelivery.');
|
|
1296
|
+
}
|
|
1297
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1298
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1299
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1300
|
+
// to determine the Accept header
|
|
1301
|
+
const httpHeaderAccepts = [
|
|
1302
|
+
'application/json'
|
|
1303
|
+
];
|
|
1304
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1305
|
+
}
|
|
1306
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1307
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1308
|
+
}
|
|
1309
|
+
let localVarHttpContext = options && options.context;
|
|
1310
|
+
if (localVarHttpContext === undefined) {
|
|
1311
|
+
localVarHttpContext = new HttpContext();
|
|
1312
|
+
}
|
|
1313
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1314
|
+
if (localVarTransferCache === undefined) {
|
|
1315
|
+
localVarTransferCache = true;
|
|
1316
|
+
}
|
|
1317
|
+
// to determine the Content-Type header
|
|
1318
|
+
const consumes = [
|
|
1319
|
+
'application/json'
|
|
1320
|
+
];
|
|
1321
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1322
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1323
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1324
|
+
}
|
|
1325
|
+
let responseType_ = 'json';
|
|
1326
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1327
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1328
|
+
responseType_ = 'text';
|
|
1329
|
+
}
|
|
1330
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1331
|
+
responseType_ = 'json';
|
|
1332
|
+
}
|
|
1333
|
+
else {
|
|
1334
|
+
responseType_ = 'blob';
|
|
1335
|
+
}
|
|
1336
|
+
}
|
|
1337
|
+
let localVarPath = `/deliveries`;
|
|
1338
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
1339
|
+
context: localVarHttpContext,
|
|
1340
|
+
body: delivery,
|
|
1341
|
+
responseType: responseType_,
|
|
1342
|
+
withCredentials: this.configuration.withCredentials,
|
|
1343
|
+
headers: localVarHeaders,
|
|
1344
|
+
observe: observe,
|
|
1345
|
+
transferCache: localVarTransferCache,
|
|
1346
|
+
reportProgress: reportProgress
|
|
1347
|
+
});
|
|
1348
|
+
}
|
|
1349
|
+
deleteDelivery(id, observe = 'body', reportProgress = false, options) {
|
|
1350
|
+
if (id === null || id === undefined) {
|
|
1351
|
+
throw new Error('Required parameter id was null or undefined when calling deleteDelivery.');
|
|
1352
|
+
}
|
|
1353
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1354
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1355
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1356
|
+
// to determine the Accept header
|
|
1357
|
+
const httpHeaderAccepts = [];
|
|
1358
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1359
|
+
}
|
|
1360
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1361
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1362
|
+
}
|
|
1363
|
+
let localVarHttpContext = options && options.context;
|
|
1364
|
+
if (localVarHttpContext === undefined) {
|
|
1365
|
+
localVarHttpContext = new HttpContext();
|
|
1366
|
+
}
|
|
1367
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1368
|
+
if (localVarTransferCache === undefined) {
|
|
1369
|
+
localVarTransferCache = true;
|
|
1370
|
+
}
|
|
1371
|
+
let responseType_ = 'json';
|
|
1372
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1373
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1374
|
+
responseType_ = 'text';
|
|
1375
|
+
}
|
|
1376
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1377
|
+
responseType_ = 'json';
|
|
1378
|
+
}
|
|
1379
|
+
else {
|
|
1380
|
+
responseType_ = 'blob';
|
|
1381
|
+
}
|
|
1382
|
+
}
|
|
1383
|
+
let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/`;
|
|
1384
|
+
return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
1385
|
+
context: localVarHttpContext,
|
|
1386
|
+
responseType: responseType_,
|
|
1387
|
+
withCredentials: this.configuration.withCredentials,
|
|
1388
|
+
headers: localVarHeaders,
|
|
1389
|
+
observe: observe,
|
|
1390
|
+
transferCache: localVarTransferCache,
|
|
1391
|
+
reportProgress: reportProgress
|
|
1392
|
+
});
|
|
1393
|
+
}
|
|
1293
1394
|
getDeliveries($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1294
1395
|
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
1295
1396
|
if ($skip !== undefined && $skip !== null) {
|
|
@@ -1540,6 +1641,65 @@ class DeliveriesService {
|
|
|
1540
1641
|
reportProgress: reportProgress
|
|
1541
1642
|
});
|
|
1542
1643
|
}
|
|
1644
|
+
setDelivery(id, delivery, observe = 'body', reportProgress = false, options) {
|
|
1645
|
+
if (id === null || id === undefined) {
|
|
1646
|
+
throw new Error('Required parameter id was null or undefined when calling setDelivery.');
|
|
1647
|
+
}
|
|
1648
|
+
if (delivery === null || delivery === undefined) {
|
|
1649
|
+
throw new Error('Required parameter delivery was null or undefined when calling setDelivery.');
|
|
1650
|
+
}
|
|
1651
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1652
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1653
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1654
|
+
// to determine the Accept header
|
|
1655
|
+
const httpHeaderAccepts = [
|
|
1656
|
+
'application/json'
|
|
1657
|
+
];
|
|
1658
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1659
|
+
}
|
|
1660
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1661
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1662
|
+
}
|
|
1663
|
+
let localVarHttpContext = options && options.context;
|
|
1664
|
+
if (localVarHttpContext === undefined) {
|
|
1665
|
+
localVarHttpContext = new HttpContext();
|
|
1666
|
+
}
|
|
1667
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1668
|
+
if (localVarTransferCache === undefined) {
|
|
1669
|
+
localVarTransferCache = true;
|
|
1670
|
+
}
|
|
1671
|
+
// to determine the Content-Type header
|
|
1672
|
+
const consumes = [
|
|
1673
|
+
'application/json'
|
|
1674
|
+
];
|
|
1675
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1676
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1677
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1678
|
+
}
|
|
1679
|
+
let responseType_ = 'json';
|
|
1680
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1681
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1682
|
+
responseType_ = 'text';
|
|
1683
|
+
}
|
|
1684
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1685
|
+
responseType_ = 'json';
|
|
1686
|
+
}
|
|
1687
|
+
else {
|
|
1688
|
+
responseType_ = 'blob';
|
|
1689
|
+
}
|
|
1690
|
+
}
|
|
1691
|
+
let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/`;
|
|
1692
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
1693
|
+
context: localVarHttpContext,
|
|
1694
|
+
body: delivery,
|
|
1695
|
+
responseType: responseType_,
|
|
1696
|
+
withCredentials: this.configuration.withCredentials,
|
|
1697
|
+
headers: localVarHeaders,
|
|
1698
|
+
observe: observe,
|
|
1699
|
+
transferCache: localVarTransferCache,
|
|
1700
|
+
reportProgress: reportProgress
|
|
1701
|
+
});
|
|
1702
|
+
}
|
|
1543
1703
|
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 });
|
|
1544
1704
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DeliveriesService, providedIn: 'root' });
|
|
1545
1705
|
}
|
|
@@ -1628,6 +1788,107 @@ class DeliveryItemsService {
|
|
|
1628
1788
|
}
|
|
1629
1789
|
return httpParams;
|
|
1630
1790
|
}
|
|
1791
|
+
createDeliveryItem(deliveryItem, observe = 'body', reportProgress = false, options) {
|
|
1792
|
+
if (deliveryItem === null || deliveryItem === undefined) {
|
|
1793
|
+
throw new Error('Required parameter deliveryItem was null or undefined when calling createDeliveryItem.');
|
|
1794
|
+
}
|
|
1795
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1796
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1797
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1798
|
+
// to determine the Accept header
|
|
1799
|
+
const httpHeaderAccepts = [
|
|
1800
|
+
'application/json'
|
|
1801
|
+
];
|
|
1802
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1803
|
+
}
|
|
1804
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1805
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1806
|
+
}
|
|
1807
|
+
let localVarHttpContext = options && options.context;
|
|
1808
|
+
if (localVarHttpContext === undefined) {
|
|
1809
|
+
localVarHttpContext = new HttpContext();
|
|
1810
|
+
}
|
|
1811
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1812
|
+
if (localVarTransferCache === undefined) {
|
|
1813
|
+
localVarTransferCache = true;
|
|
1814
|
+
}
|
|
1815
|
+
// to determine the Content-Type header
|
|
1816
|
+
const consumes = [
|
|
1817
|
+
'application/json'
|
|
1818
|
+
];
|
|
1819
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1820
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1821
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1822
|
+
}
|
|
1823
|
+
let responseType_ = 'json';
|
|
1824
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1825
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1826
|
+
responseType_ = 'text';
|
|
1827
|
+
}
|
|
1828
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1829
|
+
responseType_ = 'json';
|
|
1830
|
+
}
|
|
1831
|
+
else {
|
|
1832
|
+
responseType_ = 'blob';
|
|
1833
|
+
}
|
|
1834
|
+
}
|
|
1835
|
+
let localVarPath = `/deliveryItems`;
|
|
1836
|
+
return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
|
|
1837
|
+
context: localVarHttpContext,
|
|
1838
|
+
body: deliveryItem,
|
|
1839
|
+
responseType: responseType_,
|
|
1840
|
+
withCredentials: this.configuration.withCredentials,
|
|
1841
|
+
headers: localVarHeaders,
|
|
1842
|
+
observe: observe,
|
|
1843
|
+
transferCache: localVarTransferCache,
|
|
1844
|
+
reportProgress: reportProgress
|
|
1845
|
+
});
|
|
1846
|
+
}
|
|
1847
|
+
deleteDeliveryItem(id, observe = 'body', reportProgress = false, options) {
|
|
1848
|
+
if (id === null || id === undefined) {
|
|
1849
|
+
throw new Error('Required parameter id was null or undefined when calling deleteDeliveryItem.');
|
|
1850
|
+
}
|
|
1851
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1852
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1853
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1854
|
+
// to determine the Accept header
|
|
1855
|
+
const httpHeaderAccepts = [];
|
|
1856
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1857
|
+
}
|
|
1858
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1859
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1860
|
+
}
|
|
1861
|
+
let localVarHttpContext = options && options.context;
|
|
1862
|
+
if (localVarHttpContext === undefined) {
|
|
1863
|
+
localVarHttpContext = new HttpContext();
|
|
1864
|
+
}
|
|
1865
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1866
|
+
if (localVarTransferCache === undefined) {
|
|
1867
|
+
localVarTransferCache = true;
|
|
1868
|
+
}
|
|
1869
|
+
let responseType_ = 'json';
|
|
1870
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1871
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1872
|
+
responseType_ = 'text';
|
|
1873
|
+
}
|
|
1874
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1875
|
+
responseType_ = 'json';
|
|
1876
|
+
}
|
|
1877
|
+
else {
|
|
1878
|
+
responseType_ = 'blob';
|
|
1879
|
+
}
|
|
1880
|
+
}
|
|
1881
|
+
let localVarPath = `/deliveryItems/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
1882
|
+
return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
|
|
1883
|
+
context: localVarHttpContext,
|
|
1884
|
+
responseType: responseType_,
|
|
1885
|
+
withCredentials: this.configuration.withCredentials,
|
|
1886
|
+
headers: localVarHeaders,
|
|
1887
|
+
observe: observe,
|
|
1888
|
+
transferCache: localVarTransferCache,
|
|
1889
|
+
reportProgress: reportProgress
|
|
1890
|
+
});
|
|
1891
|
+
}
|
|
1631
1892
|
getDeliveryItems(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
1632
1893
|
if (id === null || id === undefined) {
|
|
1633
1894
|
throw new Error('Required parameter id was null or undefined when calling getDeliveryItems.');
|
|
@@ -1692,6 +1953,65 @@ class DeliveryItemsService {
|
|
|
1692
1953
|
reportProgress: reportProgress
|
|
1693
1954
|
});
|
|
1694
1955
|
}
|
|
1956
|
+
setDeliveryItem(id, deliveryItem, observe = 'body', reportProgress = false, options) {
|
|
1957
|
+
if (id === null || id === undefined) {
|
|
1958
|
+
throw new Error('Required parameter id was null or undefined when calling setDeliveryItem.');
|
|
1959
|
+
}
|
|
1960
|
+
if (deliveryItem === null || deliveryItem === undefined) {
|
|
1961
|
+
throw new Error('Required parameter deliveryItem was null or undefined when calling setDeliveryItem.');
|
|
1962
|
+
}
|
|
1963
|
+
let localVarHeaders = this.defaultHeaders;
|
|
1964
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
1965
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
1966
|
+
// to determine the Accept header
|
|
1967
|
+
const httpHeaderAccepts = [
|
|
1968
|
+
'application/json'
|
|
1969
|
+
];
|
|
1970
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
1971
|
+
}
|
|
1972
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
1973
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
1974
|
+
}
|
|
1975
|
+
let localVarHttpContext = options && options.context;
|
|
1976
|
+
if (localVarHttpContext === undefined) {
|
|
1977
|
+
localVarHttpContext = new HttpContext();
|
|
1978
|
+
}
|
|
1979
|
+
let localVarTransferCache = options && options.transferCache;
|
|
1980
|
+
if (localVarTransferCache === undefined) {
|
|
1981
|
+
localVarTransferCache = true;
|
|
1982
|
+
}
|
|
1983
|
+
// to determine the Content-Type header
|
|
1984
|
+
const consumes = [
|
|
1985
|
+
'application/json'
|
|
1986
|
+
];
|
|
1987
|
+
const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
|
|
1988
|
+
if (httpContentTypeSelected !== undefined) {
|
|
1989
|
+
localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
|
|
1990
|
+
}
|
|
1991
|
+
let responseType_ = 'json';
|
|
1992
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
1993
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
1994
|
+
responseType_ = 'text';
|
|
1995
|
+
}
|
|
1996
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
1997
|
+
responseType_ = 'json';
|
|
1998
|
+
}
|
|
1999
|
+
else {
|
|
2000
|
+
responseType_ = 'blob';
|
|
2001
|
+
}
|
|
2002
|
+
}
|
|
2003
|
+
let localVarPath = `/deliveryItems/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
|
|
2004
|
+
return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
|
|
2005
|
+
context: localVarHttpContext,
|
|
2006
|
+
body: deliveryItem,
|
|
2007
|
+
responseType: responseType_,
|
|
2008
|
+
withCredentials: this.configuration.withCredentials,
|
|
2009
|
+
headers: localVarHeaders,
|
|
2010
|
+
observe: observe,
|
|
2011
|
+
transferCache: localVarTransferCache,
|
|
2012
|
+
reportProgress: reportProgress
|
|
2013
|
+
});
|
|
2014
|
+
}
|
|
1695
2015
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DeliveryItemsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
1696
2016
|
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DeliveryItemsService, providedIn: 'root' });
|
|
1697
2017
|
}
|
|
@@ -2401,6 +2721,155 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
2401
2721
|
type: Optional
|
|
2402
2722
|
}] }] });
|
|
2403
2723
|
|
|
2724
|
+
/**
|
|
2725
|
+
* Wms.API.Client
|
|
2726
|
+
*
|
|
2727
|
+
*
|
|
2728
|
+
*
|
|
2729
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
2730
|
+
* https://openapi-generator.tech
|
|
2731
|
+
* Do not edit the class manually.
|
|
2732
|
+
*/
|
|
2733
|
+
/* tslint:disable:no-unused-variable member-ordering */
|
|
2734
|
+
class ProductQuantitiesService {
|
|
2735
|
+
httpClient;
|
|
2736
|
+
basePath = 'http://localhost';
|
|
2737
|
+
defaultHeaders = new HttpHeaders();
|
|
2738
|
+
configuration = new Configuration();
|
|
2739
|
+
encoder;
|
|
2740
|
+
constructor(httpClient, basePath, configuration) {
|
|
2741
|
+
this.httpClient = httpClient;
|
|
2742
|
+
if (configuration) {
|
|
2743
|
+
this.configuration = configuration;
|
|
2744
|
+
}
|
|
2745
|
+
if (typeof this.configuration.basePath !== 'string') {
|
|
2746
|
+
const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
|
|
2747
|
+
if (firstBasePath != undefined) {
|
|
2748
|
+
basePath = firstBasePath;
|
|
2749
|
+
}
|
|
2750
|
+
if (typeof basePath !== 'string') {
|
|
2751
|
+
basePath = this.basePath;
|
|
2752
|
+
}
|
|
2753
|
+
this.configuration.basePath = basePath;
|
|
2754
|
+
}
|
|
2755
|
+
this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
|
|
2756
|
+
}
|
|
2757
|
+
// @ts-ignore
|
|
2758
|
+
addToHttpParams(httpParams, value, key) {
|
|
2759
|
+
if (typeof value === "object" && value instanceof Date === false) {
|
|
2760
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value);
|
|
2761
|
+
}
|
|
2762
|
+
else {
|
|
2763
|
+
httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
|
|
2764
|
+
}
|
|
2765
|
+
return httpParams;
|
|
2766
|
+
}
|
|
2767
|
+
addToHttpParamsRecursive(httpParams, value, key) {
|
|
2768
|
+
if (value == null) {
|
|
2769
|
+
return httpParams;
|
|
2770
|
+
}
|
|
2771
|
+
if (typeof value === "object") {
|
|
2772
|
+
if (Array.isArray(value)) {
|
|
2773
|
+
value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
|
|
2774
|
+
}
|
|
2775
|
+
else if (value instanceof Date) {
|
|
2776
|
+
if (key != null) {
|
|
2777
|
+
httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
|
|
2778
|
+
}
|
|
2779
|
+
else {
|
|
2780
|
+
throw Error("key may not be null if value is Date");
|
|
2781
|
+
}
|
|
2782
|
+
}
|
|
2783
|
+
else {
|
|
2784
|
+
Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
|
|
2785
|
+
}
|
|
2786
|
+
}
|
|
2787
|
+
else if (key != null) {
|
|
2788
|
+
httpParams = httpParams.append(key, value);
|
|
2789
|
+
}
|
|
2790
|
+
else {
|
|
2791
|
+
throw Error("key may not be null if value is not object or array");
|
|
2792
|
+
}
|
|
2793
|
+
return httpParams;
|
|
2794
|
+
}
|
|
2795
|
+
getProductQuantities($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
|
|
2796
|
+
let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
|
|
2797
|
+
if ($skip !== undefined && $skip !== null) {
|
|
2798
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
|
|
2799
|
+
}
|
|
2800
|
+
if ($top !== undefined && $top !== null) {
|
|
2801
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
|
|
2802
|
+
}
|
|
2803
|
+
if ($orderby !== undefined && $orderby !== null) {
|
|
2804
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
|
|
2805
|
+
}
|
|
2806
|
+
if ($filter !== undefined && $filter !== null) {
|
|
2807
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
|
|
2808
|
+
}
|
|
2809
|
+
if ($search !== undefined && $search !== null) {
|
|
2810
|
+
localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
|
|
2811
|
+
}
|
|
2812
|
+
let localVarHeaders = this.defaultHeaders;
|
|
2813
|
+
let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
|
|
2814
|
+
if (localVarHttpHeaderAcceptSelected === undefined) {
|
|
2815
|
+
// to determine the Accept header
|
|
2816
|
+
const httpHeaderAccepts = [
|
|
2817
|
+
'application/json'
|
|
2818
|
+
];
|
|
2819
|
+
localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
|
|
2820
|
+
}
|
|
2821
|
+
if (localVarHttpHeaderAcceptSelected !== undefined) {
|
|
2822
|
+
localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
|
|
2823
|
+
}
|
|
2824
|
+
let localVarHttpContext = options && options.context;
|
|
2825
|
+
if (localVarHttpContext === undefined) {
|
|
2826
|
+
localVarHttpContext = new HttpContext();
|
|
2827
|
+
}
|
|
2828
|
+
let localVarTransferCache = options && options.transferCache;
|
|
2829
|
+
if (localVarTransferCache === undefined) {
|
|
2830
|
+
localVarTransferCache = true;
|
|
2831
|
+
}
|
|
2832
|
+
let responseType_ = 'json';
|
|
2833
|
+
if (localVarHttpHeaderAcceptSelected) {
|
|
2834
|
+
if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
|
|
2835
|
+
responseType_ = 'text';
|
|
2836
|
+
}
|
|
2837
|
+
else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
|
|
2838
|
+
responseType_ = 'json';
|
|
2839
|
+
}
|
|
2840
|
+
else {
|
|
2841
|
+
responseType_ = 'blob';
|
|
2842
|
+
}
|
|
2843
|
+
}
|
|
2844
|
+
let localVarPath = `/productQuantities`;
|
|
2845
|
+
return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
|
|
2846
|
+
context: localVarHttpContext,
|
|
2847
|
+
params: localVarQueryParameters,
|
|
2848
|
+
responseType: responseType_,
|
|
2849
|
+
withCredentials: this.configuration.withCredentials,
|
|
2850
|
+
headers: localVarHeaders,
|
|
2851
|
+
observe: observe,
|
|
2852
|
+
transferCache: localVarTransferCache,
|
|
2853
|
+
reportProgress: reportProgress
|
|
2854
|
+
});
|
|
2855
|
+
}
|
|
2856
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductQuantitiesService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
|
|
2857
|
+
static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductQuantitiesService, providedIn: 'root' });
|
|
2858
|
+
}
|
|
2859
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductQuantitiesService, decorators: [{
|
|
2860
|
+
type: Injectable,
|
|
2861
|
+
args: [{
|
|
2862
|
+
providedIn: 'root'
|
|
2863
|
+
}]
|
|
2864
|
+
}], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
|
|
2865
|
+
type: Optional
|
|
2866
|
+
}, {
|
|
2867
|
+
type: Inject,
|
|
2868
|
+
args: [BASE_PATH]
|
|
2869
|
+
}] }, { type: Configuration, decorators: [{
|
|
2870
|
+
type: Optional
|
|
2871
|
+
}] }] });
|
|
2872
|
+
|
|
2404
2873
|
/**
|
|
2405
2874
|
* Wms.API.Client
|
|
2406
2875
|
*
|
|
@@ -3345,7 +3814,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
3345
3814
|
type: Optional
|
|
3346
3815
|
}] }] });
|
|
3347
3816
|
|
|
3348
|
-
const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, HealthService, NotesService, PermissionsService, ProductMastersService, ReasonsService, SettingsService, SummaryService, UserService];
|
|
3817
|
+
const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, HealthService, NotesService, PermissionsService, ProductMastersService, ProductQuantitiesService, ReasonsService, SettingsService, SummaryService, UserService];
|
|
3818
|
+
|
|
3819
|
+
/**
|
|
3820
|
+
* Wms.API.Client
|
|
3821
|
+
*
|
|
3822
|
+
*
|
|
3823
|
+
*
|
|
3824
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
3825
|
+
* https://openapi-generator.tech
|
|
3826
|
+
* Do not edit the class manually.
|
|
3827
|
+
*/
|
|
3349
3828
|
|
|
3350
3829
|
/**
|
|
3351
3830
|
* Wms.API.Client
|
|
@@ -3490,7 +3969,6 @@ const NoteCategory = {
|
|
|
3490
3969
|
* Do not edit the class manually.
|
|
3491
3970
|
*/
|
|
3492
3971
|
const NoteSourceType = {
|
|
3493
|
-
Shipment: 'Shipment',
|
|
3494
3972
|
Delivery: 'Delivery'
|
|
3495
3973
|
};
|
|
3496
3974
|
|
|
@@ -3534,6 +4012,16 @@ const OrderStatus = {
|
|
|
3534
4012
|
Booked: 'Booked'
|
|
3535
4013
|
};
|
|
3536
4014
|
|
|
4015
|
+
/**
|
|
4016
|
+
* Wms.API.Client
|
|
4017
|
+
*
|
|
4018
|
+
*
|
|
4019
|
+
*
|
|
4020
|
+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
4021
|
+
* https://openapi-generator.tech
|
|
4022
|
+
* Do not edit the class manually.
|
|
4023
|
+
*/
|
|
4024
|
+
|
|
3537
4025
|
/**
|
|
3538
4026
|
* Wms.API.Client
|
|
3539
4027
|
*
|
|
@@ -3695,5 +4183,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
|
|
|
3695
4183
|
* Generated bundle index. Do not edit.
|
|
3696
4184
|
*/
|
|
3697
4185
|
|
|
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 };
|
|
4186
|
+
export { APIS, AnalyticsService, ApiModule, BASE_PATH, COLLECTION_FORMATS, CompaniesService, Configuration, DcsService, DeliveriesService, DeliveryItemsService, DeliveryType, HealthService, NoteCategory, NoteSourceType, NotesService, OrderStatus, PermissionsService, ProductMastersService, ProductQuantitiesService, QcType, ReasonType, ReasonsService, RecordType, SettingsService, SummaryService, UserService };
|
|
3699
4187
|
//# sourceMappingURL=indigina-wms-api.mjs.map
|