@indigina/wms-api 0.0.47 → 0.0.49

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.
@@ -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,107 @@ class DeliveriesService {
1290
1415
  }
1291
1416
  return httpParams;
1292
1417
  }
1418
+ createDelivery(delivery, observe = 'body', reportProgress = false, options) {
1419
+ if (delivery === null || delivery === undefined) {
1420
+ throw new Error('Required parameter delivery was null or undefined when calling createDelivery.');
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
+ 'application/json'
1428
+ ];
1429
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1430
+ }
1431
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1432
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1433
+ }
1434
+ let localVarHttpContext = options && options.context;
1435
+ if (localVarHttpContext === undefined) {
1436
+ localVarHttpContext = new HttpContext();
1437
+ }
1438
+ let localVarTransferCache = options && options.transferCache;
1439
+ if (localVarTransferCache === undefined) {
1440
+ localVarTransferCache = true;
1441
+ }
1442
+ // to determine the Content-Type header
1443
+ const consumes = [
1444
+ 'application/json'
1445
+ ];
1446
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1447
+ if (httpContentTypeSelected !== undefined) {
1448
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1449
+ }
1450
+ let responseType_ = 'json';
1451
+ if (localVarHttpHeaderAcceptSelected) {
1452
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1453
+ responseType_ = 'text';
1454
+ }
1455
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1456
+ responseType_ = 'json';
1457
+ }
1458
+ else {
1459
+ responseType_ = 'blob';
1460
+ }
1461
+ }
1462
+ let localVarPath = `/deliveries`;
1463
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
1464
+ context: localVarHttpContext,
1465
+ body: delivery,
1466
+ responseType: responseType_,
1467
+ withCredentials: this.configuration.withCredentials,
1468
+ headers: localVarHeaders,
1469
+ observe: observe,
1470
+ transferCache: localVarTransferCache,
1471
+ reportProgress: reportProgress
1472
+ });
1473
+ }
1474
+ deleteDelivery(id, observe = 'body', reportProgress = false, options) {
1475
+ if (id === null || id === undefined) {
1476
+ throw new Error('Required parameter id was null or undefined when calling deleteDelivery.');
1477
+ }
1478
+ let localVarHeaders = this.defaultHeaders;
1479
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1480
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1481
+ // to determine the Accept header
1482
+ const httpHeaderAccepts = [];
1483
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1484
+ }
1485
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1486
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1487
+ }
1488
+ let localVarHttpContext = options && options.context;
1489
+ if (localVarHttpContext === undefined) {
1490
+ localVarHttpContext = new HttpContext();
1491
+ }
1492
+ let localVarTransferCache = options && options.transferCache;
1493
+ if (localVarTransferCache === undefined) {
1494
+ localVarTransferCache = true;
1495
+ }
1496
+ let responseType_ = 'json';
1497
+ if (localVarHttpHeaderAcceptSelected) {
1498
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1499
+ responseType_ = 'text';
1500
+ }
1501
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1502
+ responseType_ = 'json';
1503
+ }
1504
+ else {
1505
+ responseType_ = 'blob';
1506
+ }
1507
+ }
1508
+ let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/`;
1509
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
1510
+ context: localVarHttpContext,
1511
+ responseType: responseType_,
1512
+ withCredentials: this.configuration.withCredentials,
1513
+ headers: localVarHeaders,
1514
+ observe: observe,
1515
+ transferCache: localVarTransferCache,
1516
+ reportProgress: reportProgress
1517
+ });
1518
+ }
1293
1519
  getDeliveries($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1294
1520
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1295
1521
  if ($skip !== undefined && $skip !== null) {
@@ -1540,6 +1766,65 @@ class DeliveriesService {
1540
1766
  reportProgress: reportProgress
1541
1767
  });
1542
1768
  }
1769
+ setDelivery(id, delivery, observe = 'body', reportProgress = false, options) {
1770
+ if (id === null || id === undefined) {
1771
+ throw new Error('Required parameter id was null or undefined when calling setDelivery.');
1772
+ }
1773
+ if (delivery === null || delivery === undefined) {
1774
+ throw new Error('Required parameter delivery was null or undefined when calling setDelivery.');
1775
+ }
1776
+ let localVarHeaders = this.defaultHeaders;
1777
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1778
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1779
+ // to determine the Accept header
1780
+ const httpHeaderAccepts = [
1781
+ 'application/json'
1782
+ ];
1783
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1784
+ }
1785
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1786
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1787
+ }
1788
+ let localVarHttpContext = options && options.context;
1789
+ if (localVarHttpContext === undefined) {
1790
+ localVarHttpContext = new HttpContext();
1791
+ }
1792
+ let localVarTransferCache = options && options.transferCache;
1793
+ if (localVarTransferCache === undefined) {
1794
+ localVarTransferCache = true;
1795
+ }
1796
+ // to determine the Content-Type header
1797
+ const consumes = [
1798
+ 'application/json'
1799
+ ];
1800
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1801
+ if (httpContentTypeSelected !== undefined) {
1802
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1803
+ }
1804
+ let responseType_ = 'json';
1805
+ if (localVarHttpHeaderAcceptSelected) {
1806
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1807
+ responseType_ = 'text';
1808
+ }
1809
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1810
+ responseType_ = 'json';
1811
+ }
1812
+ else {
1813
+ responseType_ = 'blob';
1814
+ }
1815
+ }
1816
+ let localVarPath = `/deliveries/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/`;
1817
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
1818
+ context: localVarHttpContext,
1819
+ body: delivery,
1820
+ responseType: responseType_,
1821
+ withCredentials: this.configuration.withCredentials,
1822
+ headers: localVarHeaders,
1823
+ observe: observe,
1824
+ transferCache: localVarTransferCache,
1825
+ reportProgress: reportProgress
1826
+ });
1827
+ }
1543
1828
  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
1829
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DeliveriesService, providedIn: 'root' });
1545
1830
  }
@@ -1608,25 +1893,126 @@ class DeliveryItemsService {
1608
1893
  if (Array.isArray(value)) {
1609
1894
  value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1610
1895
  }
1611
- else if (value instanceof Date) {
1612
- if (key != null) {
1613
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1614
- }
1615
- else {
1616
- throw Error("key may not be null if value is Date");
1617
- }
1896
+ else if (value instanceof Date) {
1897
+ if (key != null) {
1898
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1899
+ }
1900
+ else {
1901
+ throw Error("key may not be null if value is Date");
1902
+ }
1903
+ }
1904
+ else {
1905
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1906
+ }
1907
+ }
1908
+ else if (key != null) {
1909
+ httpParams = httpParams.append(key, value);
1910
+ }
1911
+ else {
1912
+ throw Error("key may not be null if value is not object or array");
1913
+ }
1914
+ return httpParams;
1915
+ }
1916
+ createDeliveryItem(deliveryItem, observe = 'body', reportProgress = false, options) {
1917
+ if (deliveryItem === null || deliveryItem === undefined) {
1918
+ throw new Error('Required parameter deliveryItem was null or undefined when calling createDeliveryItem.');
1919
+ }
1920
+ let localVarHeaders = this.defaultHeaders;
1921
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1922
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1923
+ // to determine the Accept header
1924
+ const httpHeaderAccepts = [
1925
+ 'application/json'
1926
+ ];
1927
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1928
+ }
1929
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1930
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1931
+ }
1932
+ let localVarHttpContext = options && options.context;
1933
+ if (localVarHttpContext === undefined) {
1934
+ localVarHttpContext = new HttpContext();
1935
+ }
1936
+ let localVarTransferCache = options && options.transferCache;
1937
+ if (localVarTransferCache === undefined) {
1938
+ localVarTransferCache = true;
1939
+ }
1940
+ // to determine the Content-Type header
1941
+ const consumes = [
1942
+ 'application/json'
1943
+ ];
1944
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1945
+ if (httpContentTypeSelected !== undefined) {
1946
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1947
+ }
1948
+ let responseType_ = 'json';
1949
+ if (localVarHttpHeaderAcceptSelected) {
1950
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1951
+ responseType_ = 'text';
1952
+ }
1953
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1954
+ responseType_ = 'json';
1955
+ }
1956
+ else {
1957
+ responseType_ = 'blob';
1958
+ }
1959
+ }
1960
+ let localVarPath = `/deliveryItems`;
1961
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
1962
+ context: localVarHttpContext,
1963
+ body: deliveryItem,
1964
+ responseType: responseType_,
1965
+ withCredentials: this.configuration.withCredentials,
1966
+ headers: localVarHeaders,
1967
+ observe: observe,
1968
+ transferCache: localVarTransferCache,
1969
+ reportProgress: reportProgress
1970
+ });
1971
+ }
1972
+ deleteDeliveryItem(id, observe = 'body', reportProgress = false, options) {
1973
+ if (id === null || id === undefined) {
1974
+ throw new Error('Required parameter id was null or undefined when calling deleteDeliveryItem.');
1975
+ }
1976
+ let localVarHeaders = this.defaultHeaders;
1977
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1978
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1979
+ // to determine the Accept header
1980
+ const httpHeaderAccepts = [];
1981
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1982
+ }
1983
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1984
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1985
+ }
1986
+ let localVarHttpContext = options && options.context;
1987
+ if (localVarHttpContext === undefined) {
1988
+ localVarHttpContext = new HttpContext();
1989
+ }
1990
+ let localVarTransferCache = options && options.transferCache;
1991
+ if (localVarTransferCache === undefined) {
1992
+ localVarTransferCache = true;
1993
+ }
1994
+ let responseType_ = 'json';
1995
+ if (localVarHttpHeaderAcceptSelected) {
1996
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1997
+ responseType_ = 'text';
1998
+ }
1999
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2000
+ responseType_ = 'json';
1618
2001
  }
1619
2002
  else {
1620
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
2003
+ responseType_ = 'blob';
1621
2004
  }
1622
2005
  }
1623
- else if (key != null) {
1624
- httpParams = httpParams.append(key, value);
1625
- }
1626
- else {
1627
- throw Error("key may not be null if value is not object or array");
1628
- }
1629
- return httpParams;
2006
+ let localVarPath = `/deliveryItems/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
2007
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
2008
+ context: localVarHttpContext,
2009
+ responseType: responseType_,
2010
+ withCredentials: this.configuration.withCredentials,
2011
+ headers: localVarHeaders,
2012
+ observe: observe,
2013
+ transferCache: localVarTransferCache,
2014
+ reportProgress: reportProgress
2015
+ });
1630
2016
  }
1631
2017
  getDeliveryItems(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1632
2018
  if (id === null || id === undefined) {
@@ -1692,6 +2078,65 @@ class DeliveryItemsService {
1692
2078
  reportProgress: reportProgress
1693
2079
  });
1694
2080
  }
2081
+ setDeliveryItem(id, deliveryItem, observe = 'body', reportProgress = false, options) {
2082
+ if (id === null || id === undefined) {
2083
+ throw new Error('Required parameter id was null or undefined when calling setDeliveryItem.');
2084
+ }
2085
+ if (deliveryItem === null || deliveryItem === undefined) {
2086
+ throw new Error('Required parameter deliveryItem was null or undefined when calling setDeliveryItem.');
2087
+ }
2088
+ let localVarHeaders = this.defaultHeaders;
2089
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2090
+ if (localVarHttpHeaderAcceptSelected === undefined) {
2091
+ // to determine the Accept header
2092
+ const httpHeaderAccepts = [
2093
+ 'application/json'
2094
+ ];
2095
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2096
+ }
2097
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2098
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2099
+ }
2100
+ let localVarHttpContext = options && options.context;
2101
+ if (localVarHttpContext === undefined) {
2102
+ localVarHttpContext = new HttpContext();
2103
+ }
2104
+ let localVarTransferCache = options && options.transferCache;
2105
+ if (localVarTransferCache === undefined) {
2106
+ localVarTransferCache = true;
2107
+ }
2108
+ // to determine the Content-Type header
2109
+ const consumes = [
2110
+ 'application/json'
2111
+ ];
2112
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2113
+ if (httpContentTypeSelected !== undefined) {
2114
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
2115
+ }
2116
+ let responseType_ = 'json';
2117
+ if (localVarHttpHeaderAcceptSelected) {
2118
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2119
+ responseType_ = 'text';
2120
+ }
2121
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2122
+ responseType_ = 'json';
2123
+ }
2124
+ else {
2125
+ responseType_ = 'blob';
2126
+ }
2127
+ }
2128
+ let localVarPath = `/deliveryItems/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
2129
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
2130
+ context: localVarHttpContext,
2131
+ body: deliveryItem,
2132
+ responseType: responseType_,
2133
+ withCredentials: this.configuration.withCredentials,
2134
+ headers: localVarHeaders,
2135
+ observe: observe,
2136
+ transferCache: localVarTransferCache,
2137
+ reportProgress: reportProgress
2138
+ });
2139
+ }
1695
2140
  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
2141
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DeliveryItemsService, providedIn: 'root' });
1697
2142
  }
@@ -2401,6 +2846,155 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
2401
2846
  type: Optional
2402
2847
  }] }] });
2403
2848
 
2849
+ /**
2850
+ * Wms.API.Client
2851
+ *
2852
+ *
2853
+ *
2854
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
2855
+ * https://openapi-generator.tech
2856
+ * Do not edit the class manually.
2857
+ */
2858
+ /* tslint:disable:no-unused-variable member-ordering */
2859
+ class ProductQuantitiesService {
2860
+ httpClient;
2861
+ basePath = 'http://localhost';
2862
+ defaultHeaders = new HttpHeaders();
2863
+ configuration = new Configuration();
2864
+ encoder;
2865
+ constructor(httpClient, basePath, configuration) {
2866
+ this.httpClient = httpClient;
2867
+ if (configuration) {
2868
+ this.configuration = configuration;
2869
+ }
2870
+ if (typeof this.configuration.basePath !== 'string') {
2871
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
2872
+ if (firstBasePath != undefined) {
2873
+ basePath = firstBasePath;
2874
+ }
2875
+ if (typeof basePath !== 'string') {
2876
+ basePath = this.basePath;
2877
+ }
2878
+ this.configuration.basePath = basePath;
2879
+ }
2880
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
2881
+ }
2882
+ // @ts-ignore
2883
+ addToHttpParams(httpParams, value, key) {
2884
+ if (typeof value === "object" && value instanceof Date === false) {
2885
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
2886
+ }
2887
+ else {
2888
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
2889
+ }
2890
+ return httpParams;
2891
+ }
2892
+ addToHttpParamsRecursive(httpParams, value, key) {
2893
+ if (value == null) {
2894
+ return httpParams;
2895
+ }
2896
+ if (typeof value === "object") {
2897
+ if (Array.isArray(value)) {
2898
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
2899
+ }
2900
+ else if (value instanceof Date) {
2901
+ if (key != null) {
2902
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
2903
+ }
2904
+ else {
2905
+ throw Error("key may not be null if value is Date");
2906
+ }
2907
+ }
2908
+ else {
2909
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
2910
+ }
2911
+ }
2912
+ else if (key != null) {
2913
+ httpParams = httpParams.append(key, value);
2914
+ }
2915
+ else {
2916
+ throw Error("key may not be null if value is not object or array");
2917
+ }
2918
+ return httpParams;
2919
+ }
2920
+ getProductQuantities($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
2921
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2922
+ if ($skip !== undefined && $skip !== null) {
2923
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2924
+ }
2925
+ if ($top !== undefined && $top !== null) {
2926
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
2927
+ }
2928
+ if ($orderby !== undefined && $orderby !== null) {
2929
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
2930
+ }
2931
+ if ($filter !== undefined && $filter !== null) {
2932
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2933
+ }
2934
+ if ($search !== undefined && $search !== null) {
2935
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
2936
+ }
2937
+ let localVarHeaders = this.defaultHeaders;
2938
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2939
+ if (localVarHttpHeaderAcceptSelected === undefined) {
2940
+ // to determine the Accept header
2941
+ const httpHeaderAccepts = [
2942
+ 'application/json'
2943
+ ];
2944
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2945
+ }
2946
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2947
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2948
+ }
2949
+ let localVarHttpContext = options && options.context;
2950
+ if (localVarHttpContext === undefined) {
2951
+ localVarHttpContext = new HttpContext();
2952
+ }
2953
+ let localVarTransferCache = options && options.transferCache;
2954
+ if (localVarTransferCache === undefined) {
2955
+ localVarTransferCache = true;
2956
+ }
2957
+ let responseType_ = 'json';
2958
+ if (localVarHttpHeaderAcceptSelected) {
2959
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2960
+ responseType_ = 'text';
2961
+ }
2962
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2963
+ responseType_ = 'json';
2964
+ }
2965
+ else {
2966
+ responseType_ = 'blob';
2967
+ }
2968
+ }
2969
+ let localVarPath = `/productQuantities`;
2970
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2971
+ context: localVarHttpContext,
2972
+ params: localVarQueryParameters,
2973
+ responseType: responseType_,
2974
+ withCredentials: this.configuration.withCredentials,
2975
+ headers: localVarHeaders,
2976
+ observe: observe,
2977
+ transferCache: localVarTransferCache,
2978
+ reportProgress: reportProgress
2979
+ });
2980
+ }
2981
+ 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 });
2982
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductQuantitiesService, providedIn: 'root' });
2983
+ }
2984
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: ProductQuantitiesService, decorators: [{
2985
+ type: Injectable,
2986
+ args: [{
2987
+ providedIn: 'root'
2988
+ }]
2989
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
2990
+ type: Optional
2991
+ }, {
2992
+ type: Inject,
2993
+ args: [BASE_PATH]
2994
+ }] }, { type: Configuration, decorators: [{
2995
+ type: Optional
2996
+ }] }] });
2997
+
2404
2998
  /**
2405
2999
  * Wms.API.Client
2406
3000
  *
@@ -3345,7 +3939,27 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
3345
3939
  type: Optional
3346
3940
  }] }] });
3347
3941
 
3348
- const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, HealthService, NotesService, PermissionsService, ProductMastersService, ReasonsService, SettingsService, SummaryService, UserService];
3942
+ const APIS = [AnalyticsService, CompaniesService, DcsService, DeliveriesService, DeliveryItemsService, HealthService, NotesService, PermissionsService, ProductMastersService, ProductQuantitiesService, ReasonsService, SettingsService, SummaryService, UserService];
3943
+
3944
+ /**
3945
+ * Wms.API.Client
3946
+ *
3947
+ *
3948
+ *
3949
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3950
+ * https://openapi-generator.tech
3951
+ * Do not edit the class manually.
3952
+ */
3953
+
3954
+ /**
3955
+ * Wms.API.Client
3956
+ *
3957
+ *
3958
+ *
3959
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3960
+ * https://openapi-generator.tech
3961
+ * Do not edit the class manually.
3962
+ */
3349
3963
 
3350
3964
  /**
3351
3965
  * Wms.API.Client
@@ -3490,7 +4104,6 @@ const NoteCategory = {
3490
4104
  * Do not edit the class manually.
3491
4105
  */
3492
4106
  const NoteSourceType = {
3493
- Shipment: 'Shipment',
3494
4107
  Delivery: 'Delivery'
3495
4108
  };
3496
4109
 
@@ -3534,6 +4147,16 @@ const OrderStatus = {
3534
4147
  Booked: 'Booked'
3535
4148
  };
3536
4149
 
4150
+ /**
4151
+ * Wms.API.Client
4152
+ *
4153
+ *
4154
+ *
4155
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
4156
+ * https://openapi-generator.tech
4157
+ * Do not edit the class manually.
4158
+ */
4159
+
3537
4160
  /**
3538
4161
  * Wms.API.Client
3539
4162
  *
@@ -3695,5 +4318,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
3695
4318
  * Generated bundle index. Do not edit.
3696
4319
  */
3697
4320
 
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 };
4321
+ 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
4322
  //# sourceMappingURL=indigina-wms-api.mjs.map