@indigina/wms-api 0.0.46 → 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.
@@ -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,
@@ -1242,6 +1290,107 @@ class DeliveriesService {
1242
1290
  }
1243
1291
  return httpParams;
1244
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
+ }
1245
1394
  getDeliveries($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1246
1395
  let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
1247
1396
  if ($skip !== undefined && $skip !== null) {
@@ -1492,6 +1641,65 @@ class DeliveriesService {
1492
1641
  reportProgress: reportProgress
1493
1642
  });
1494
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
+ }
1495
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 });
1496
1704
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DeliveriesService, providedIn: 'root' });
1497
1705
  }
@@ -1580,6 +1788,107 @@ class DeliveryItemsService {
1580
1788
  }
1581
1789
  return httpParams;
1582
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
+ }
1583
1892
  getDeliveryItems(id, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1584
1893
  if (id === null || id === undefined) {
1585
1894
  throw new Error('Required parameter id was null or undefined when calling getDeliveryItems.');
@@ -1644,6 +1953,65 @@ class DeliveryItemsService {
1644
1953
  reportProgress: reportProgress
1645
1954
  });
1646
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
+ }
1647
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 });
1648
2016
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "19.2.0", ngImport: i0, type: DeliveryItemsService, providedIn: 'root' });
1649
2017
  }
@@ -2353,6 +2721,155 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
2353
2721
  type: Optional
2354
2722
  }] }] });
2355
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
+
2356
2873
  /**
2357
2874
  * Wms.API.Client
2358
2875
  *
@@ -3297,7 +3814,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
3297
3814
  type: Optional
3298
3815
  }] }] });
3299
3816
 
3300
- 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
+ */
3301
3828
 
3302
3829
  /**
3303
3830
  * Wms.API.Client
@@ -3442,7 +3969,6 @@ const NoteCategory = {
3442
3969
  * Do not edit the class manually.
3443
3970
  */
3444
3971
  const NoteSourceType = {
3445
- Shipment: 'Shipment',
3446
3972
  Delivery: 'Delivery'
3447
3973
  };
3448
3974
 
@@ -3486,6 +4012,16 @@ const OrderStatus = {
3486
4012
  Booked: 'Booked'
3487
4013
  };
3488
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
+
3489
4025
  /**
3490
4026
  * Wms.API.Client
3491
4027
  *
@@ -3647,5 +4183,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.0", ngImpor
3647
4183
  * Generated bundle index. Do not edit.
3648
4184
  */
3649
4185
 
3650
- 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 };
3651
4187
  //# sourceMappingURL=indigina-wms-api.mjs.map