@indigina/dcm-api 0.0.39 → 0.0.41

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.
@@ -1263,6 +1263,59 @@ class NotesService {
1263
1263
  }
1264
1264
  return httpParams;
1265
1265
  }
1266
+ createShipmentNote(note, observe = 'body', reportProgress = false, options) {
1267
+ let localVarHeaders = this.defaultHeaders;
1268
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1269
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1270
+ // to determine the Accept header
1271
+ const httpHeaderAccepts = [
1272
+ 'application/json'
1273
+ ];
1274
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1275
+ }
1276
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1277
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1278
+ }
1279
+ let localVarHttpContext = options && options.context;
1280
+ if (localVarHttpContext === undefined) {
1281
+ localVarHttpContext = new HttpContext();
1282
+ }
1283
+ let localVarTransferCache = options && options.transferCache;
1284
+ if (localVarTransferCache === undefined) {
1285
+ localVarTransferCache = true;
1286
+ }
1287
+ // to determine the Content-Type header
1288
+ const consumes = [
1289
+ 'application/json'
1290
+ ];
1291
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
1292
+ if (httpContentTypeSelected !== undefined) {
1293
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
1294
+ }
1295
+ let responseType_ = 'json';
1296
+ if (localVarHttpHeaderAcceptSelected) {
1297
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1298
+ responseType_ = 'text';
1299
+ }
1300
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1301
+ responseType_ = 'json';
1302
+ }
1303
+ else {
1304
+ responseType_ = 'blob';
1305
+ }
1306
+ }
1307
+ let localVarPath = `/notes`;
1308
+ return this.httpClient.request('post', `${this.configuration.basePath}${localVarPath}`, {
1309
+ context: localVarHttpContext,
1310
+ body: note,
1311
+ responseType: responseType_,
1312
+ withCredentials: this.configuration.withCredentials,
1313
+ headers: localVarHeaders,
1314
+ observe: observe,
1315
+ transferCache: localVarTransferCache,
1316
+ reportProgress: reportProgress
1317
+ });
1318
+ }
1266
1319
  getShipmentNotes(sourceId, type, $skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
1267
1320
  if (sourceId === null || sourceId === undefined) {
1268
1321
  throw new Error('Required parameter sourceId was null or undefined when calling getShipmentNotes.');
@@ -1419,7 +1472,463 @@ class PermissionsService {
1419
1472
  }
1420
1473
  return httpParams;
1421
1474
  }
1422
- getUserPermissions(observe = 'body', reportProgress = false, options) {
1475
+ getUserPermissions(observe = 'body', reportProgress = false, options) {
1476
+ let localVarHeaders = this.defaultHeaders;
1477
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1478
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1479
+ // to determine the Accept header
1480
+ const httpHeaderAccepts = [
1481
+ 'application/json'
1482
+ ];
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 = `/user/permissions`;
1509
+ return this.httpClient.request('get', `${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
+ }
1519
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: PermissionsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1520
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: PermissionsService, providedIn: 'root' });
1521
+ }
1522
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: PermissionsService, decorators: [{
1523
+ type: Injectable,
1524
+ args: [{
1525
+ providedIn: 'root'
1526
+ }]
1527
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1528
+ type: Optional
1529
+ }, {
1530
+ type: Inject,
1531
+ args: [BASE_PATH]
1532
+ }] }, { type: Configuration, decorators: [{
1533
+ type: Optional
1534
+ }] }] });
1535
+
1536
+ /**
1537
+ * Dcm.API.Client
1538
+ * DCM API Client for Angular applications
1539
+ *
1540
+ *
1541
+ *
1542
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1543
+ * https://openapi-generator.tech
1544
+ * Do not edit the class manually.
1545
+ */
1546
+ /* tslint:disable:no-unused-variable member-ordering */
1547
+ class ReportsService {
1548
+ httpClient;
1549
+ basePath = 'http://localhost';
1550
+ defaultHeaders = new HttpHeaders();
1551
+ configuration = new Configuration();
1552
+ encoder;
1553
+ constructor(httpClient, basePath, configuration) {
1554
+ this.httpClient = httpClient;
1555
+ if (configuration) {
1556
+ this.configuration = configuration;
1557
+ }
1558
+ if (typeof this.configuration.basePath !== 'string') {
1559
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
1560
+ if (firstBasePath != undefined) {
1561
+ basePath = firstBasePath;
1562
+ }
1563
+ if (typeof basePath !== 'string') {
1564
+ basePath = this.basePath;
1565
+ }
1566
+ this.configuration.basePath = basePath;
1567
+ }
1568
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1569
+ }
1570
+ // @ts-ignore
1571
+ addToHttpParams(httpParams, value, key) {
1572
+ if (typeof value === "object" && value instanceof Date === false) {
1573
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
1574
+ }
1575
+ else {
1576
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1577
+ }
1578
+ return httpParams;
1579
+ }
1580
+ addToHttpParamsRecursive(httpParams, value, key) {
1581
+ if (value == null) {
1582
+ return httpParams;
1583
+ }
1584
+ if (typeof value === "object") {
1585
+ if (Array.isArray(value)) {
1586
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1587
+ }
1588
+ else if (value instanceof Date) {
1589
+ if (key != null) {
1590
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1591
+ }
1592
+ else {
1593
+ throw Error("key may not be null if value is Date");
1594
+ }
1595
+ }
1596
+ else {
1597
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1598
+ }
1599
+ }
1600
+ else if (key != null) {
1601
+ httpParams = httpParams.append(key, value);
1602
+ }
1603
+ else {
1604
+ throw Error("key may not be null if value is not object or array");
1605
+ }
1606
+ return httpParams;
1607
+ }
1608
+ getDcmReports(observe = 'body', reportProgress = false, options) {
1609
+ let localVarHeaders = this.defaultHeaders;
1610
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1611
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1612
+ // to determine the Accept header
1613
+ const httpHeaderAccepts = [
1614
+ 'application/json'
1615
+ ];
1616
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1617
+ }
1618
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1619
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1620
+ }
1621
+ let localVarHttpContext = options && options.context;
1622
+ if (localVarHttpContext === undefined) {
1623
+ localVarHttpContext = new HttpContext();
1624
+ }
1625
+ let localVarTransferCache = options && options.transferCache;
1626
+ if (localVarTransferCache === undefined) {
1627
+ localVarTransferCache = true;
1628
+ }
1629
+ let responseType_ = 'json';
1630
+ if (localVarHttpHeaderAcceptSelected) {
1631
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1632
+ responseType_ = 'text';
1633
+ }
1634
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1635
+ responseType_ = 'json';
1636
+ }
1637
+ else {
1638
+ responseType_ = 'blob';
1639
+ }
1640
+ }
1641
+ let localVarPath = `/reports/dashboard-dcm`;
1642
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1643
+ context: localVarHttpContext,
1644
+ responseType: responseType_,
1645
+ withCredentials: this.configuration.withCredentials,
1646
+ headers: localVarHeaders,
1647
+ observe: observe,
1648
+ transferCache: localVarTransferCache,
1649
+ reportProgress: reportProgress
1650
+ });
1651
+ }
1652
+ getSummaryDashboardReports(observe = 'body', reportProgress = false, options) {
1653
+ let localVarHeaders = this.defaultHeaders;
1654
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1655
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1656
+ // to determine the Accept header
1657
+ const httpHeaderAccepts = [
1658
+ 'application/json'
1659
+ ];
1660
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1661
+ }
1662
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1663
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1664
+ }
1665
+ let localVarHttpContext = options && options.context;
1666
+ if (localVarHttpContext === undefined) {
1667
+ localVarHttpContext = new HttpContext();
1668
+ }
1669
+ let localVarTransferCache = options && options.transferCache;
1670
+ if (localVarTransferCache === undefined) {
1671
+ localVarTransferCache = true;
1672
+ }
1673
+ let responseType_ = 'json';
1674
+ if (localVarHttpHeaderAcceptSelected) {
1675
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1676
+ responseType_ = 'text';
1677
+ }
1678
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1679
+ responseType_ = 'json';
1680
+ }
1681
+ else {
1682
+ responseType_ = 'blob';
1683
+ }
1684
+ }
1685
+ let localVarPath = `/reports/summary-dashboard`;
1686
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1687
+ context: localVarHttpContext,
1688
+ responseType: responseType_,
1689
+ withCredentials: this.configuration.withCredentials,
1690
+ headers: localVarHeaders,
1691
+ observe: observe,
1692
+ transferCache: localVarTransferCache,
1693
+ reportProgress: reportProgress
1694
+ });
1695
+ }
1696
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ReportsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1697
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ReportsService, providedIn: 'root' });
1698
+ }
1699
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ReportsService, decorators: [{
1700
+ type: Injectable,
1701
+ args: [{
1702
+ providedIn: 'root'
1703
+ }]
1704
+ }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1705
+ type: Optional
1706
+ }, {
1707
+ type: Inject,
1708
+ args: [BASE_PATH]
1709
+ }] }, { type: Configuration, decorators: [{
1710
+ type: Optional
1711
+ }] }] });
1712
+
1713
+ /**
1714
+ * Dcm.API.Client
1715
+ * DCM API Client for Angular applications
1716
+ *
1717
+ *
1718
+ *
1719
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1720
+ * https://openapi-generator.tech
1721
+ * Do not edit the class manually.
1722
+ */
1723
+ /* tslint:disable:no-unused-variable member-ordering */
1724
+ class SettingsService {
1725
+ httpClient;
1726
+ basePath = 'http://localhost';
1727
+ defaultHeaders = new HttpHeaders();
1728
+ configuration = new Configuration();
1729
+ encoder;
1730
+ constructor(httpClient, basePath, configuration) {
1731
+ this.httpClient = httpClient;
1732
+ if (configuration) {
1733
+ this.configuration = configuration;
1734
+ }
1735
+ if (typeof this.configuration.basePath !== 'string') {
1736
+ const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
1737
+ if (firstBasePath != undefined) {
1738
+ basePath = firstBasePath;
1739
+ }
1740
+ if (typeof basePath !== 'string') {
1741
+ basePath = this.basePath;
1742
+ }
1743
+ this.configuration.basePath = basePath;
1744
+ }
1745
+ this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1746
+ }
1747
+ // @ts-ignore
1748
+ addToHttpParams(httpParams, value, key) {
1749
+ if (typeof value === "object" && value instanceof Date === false) {
1750
+ httpParams = this.addToHttpParamsRecursive(httpParams, value);
1751
+ }
1752
+ else {
1753
+ httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1754
+ }
1755
+ return httpParams;
1756
+ }
1757
+ addToHttpParamsRecursive(httpParams, value, key) {
1758
+ if (value == null) {
1759
+ return httpParams;
1760
+ }
1761
+ if (typeof value === "object") {
1762
+ if (Array.isArray(value)) {
1763
+ value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1764
+ }
1765
+ else if (value instanceof Date) {
1766
+ if (key != null) {
1767
+ httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1768
+ }
1769
+ else {
1770
+ throw Error("key may not be null if value is Date");
1771
+ }
1772
+ }
1773
+ else {
1774
+ Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1775
+ }
1776
+ }
1777
+ else if (key != null) {
1778
+ httpParams = httpParams.append(key, value);
1779
+ }
1780
+ else {
1781
+ throw Error("key may not be null if value is not object or array");
1782
+ }
1783
+ return httpParams;
1784
+ }
1785
+ deleteSettingByGroupAndKey(key, group, observe = 'body', reportProgress = false, options) {
1786
+ if (key === null || key === undefined) {
1787
+ throw new Error('Required parameter key was null or undefined when calling deleteSettingByGroupAndKey.');
1788
+ }
1789
+ if (group === null || group === undefined) {
1790
+ throw new Error('Required parameter group was null or undefined when calling deleteSettingByGroupAndKey.');
1791
+ }
1792
+ let localVarHeaders = this.defaultHeaders;
1793
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1794
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1795
+ // to determine the Accept header
1796
+ const httpHeaderAccepts = [];
1797
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1798
+ }
1799
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1800
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1801
+ }
1802
+ let localVarHttpContext = options && options.context;
1803
+ if (localVarHttpContext === undefined) {
1804
+ localVarHttpContext = new HttpContext();
1805
+ }
1806
+ let localVarTransferCache = options && options.transferCache;
1807
+ if (localVarTransferCache === undefined) {
1808
+ localVarTransferCache = true;
1809
+ }
1810
+ let responseType_ = 'json';
1811
+ if (localVarHttpHeaderAcceptSelected) {
1812
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1813
+ responseType_ = 'text';
1814
+ }
1815
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1816
+ responseType_ = 'json';
1817
+ }
1818
+ else {
1819
+ responseType_ = 'blob';
1820
+ }
1821
+ }
1822
+ let localVarPath = `/users/me/settings/groups/${this.configuration.encodeParam({ name: "group", value: group, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1823
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
1824
+ context: localVarHttpContext,
1825
+ responseType: responseType_,
1826
+ withCredentials: this.configuration.withCredentials,
1827
+ headers: localVarHeaders,
1828
+ observe: observe,
1829
+ transferCache: localVarTransferCache,
1830
+ reportProgress: reportProgress
1831
+ });
1832
+ }
1833
+ deleteSettingByKey(key, observe = 'body', reportProgress = false, options) {
1834
+ if (key === null || key === undefined) {
1835
+ throw new Error('Required parameter key was null or undefined when calling deleteSettingByKey.');
1836
+ }
1837
+ let localVarHeaders = this.defaultHeaders;
1838
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1839
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1840
+ // to determine the Accept header
1841
+ const httpHeaderAccepts = [];
1842
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1843
+ }
1844
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1845
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1846
+ }
1847
+ let localVarHttpContext = options && options.context;
1848
+ if (localVarHttpContext === undefined) {
1849
+ localVarHttpContext = new HttpContext();
1850
+ }
1851
+ let localVarTransferCache = options && options.transferCache;
1852
+ if (localVarTransferCache === undefined) {
1853
+ localVarTransferCache = true;
1854
+ }
1855
+ let responseType_ = 'json';
1856
+ if (localVarHttpHeaderAcceptSelected) {
1857
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1858
+ responseType_ = 'text';
1859
+ }
1860
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1861
+ responseType_ = 'json';
1862
+ }
1863
+ else {
1864
+ responseType_ = 'blob';
1865
+ }
1866
+ }
1867
+ let localVarPath = `/users/me/settings/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1868
+ return this.httpClient.request('delete', `${this.configuration.basePath}${localVarPath}`, {
1869
+ context: localVarHttpContext,
1870
+ responseType: responseType_,
1871
+ withCredentials: this.configuration.withCredentials,
1872
+ headers: localVarHeaders,
1873
+ observe: observe,
1874
+ transferCache: localVarTransferCache,
1875
+ reportProgress: reportProgress
1876
+ });
1877
+ }
1878
+ getSettingByGroupAndKey(key, group, observe = 'body', reportProgress = false, options) {
1879
+ if (key === null || key === undefined) {
1880
+ throw new Error('Required parameter key was null or undefined when calling getSettingByGroupAndKey.');
1881
+ }
1882
+ if (group === null || group === undefined) {
1883
+ throw new Error('Required parameter group was null or undefined when calling getSettingByGroupAndKey.');
1884
+ }
1885
+ let localVarHeaders = this.defaultHeaders;
1886
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1887
+ if (localVarHttpHeaderAcceptSelected === undefined) {
1888
+ // to determine the Accept header
1889
+ const httpHeaderAccepts = [
1890
+ 'application/json'
1891
+ ];
1892
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
1893
+ }
1894
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
1895
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
1896
+ }
1897
+ let localVarHttpContext = options && options.context;
1898
+ if (localVarHttpContext === undefined) {
1899
+ localVarHttpContext = new HttpContext();
1900
+ }
1901
+ let localVarTransferCache = options && options.transferCache;
1902
+ if (localVarTransferCache === undefined) {
1903
+ localVarTransferCache = true;
1904
+ }
1905
+ let responseType_ = 'json';
1906
+ if (localVarHttpHeaderAcceptSelected) {
1907
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
1908
+ responseType_ = 'text';
1909
+ }
1910
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
1911
+ responseType_ = 'json';
1912
+ }
1913
+ else {
1914
+ responseType_ = 'blob';
1915
+ }
1916
+ }
1917
+ let localVarPath = `/users/me/settings/groups/${this.configuration.encodeParam({ name: "group", value: group, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1918
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1919
+ context: localVarHttpContext,
1920
+ responseType: responseType_,
1921
+ withCredentials: this.configuration.withCredentials,
1922
+ headers: localVarHeaders,
1923
+ observe: observe,
1924
+ transferCache: localVarTransferCache,
1925
+ reportProgress: reportProgress
1926
+ });
1927
+ }
1928
+ getSettingByKey(key, observe = 'body', reportProgress = false, options) {
1929
+ if (key === null || key === undefined) {
1930
+ throw new Error('Required parameter key was null or undefined when calling getSettingByKey.');
1931
+ }
1423
1932
  let localVarHeaders = this.defaultHeaders;
1424
1933
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1425
1934
  if (localVarHttpHeaderAcceptSelected === undefined) {
@@ -1452,7 +1961,7 @@ class PermissionsService {
1452
1961
  responseType_ = 'blob';
1453
1962
  }
1454
1963
  }
1455
- let localVarPath = `/user/permissions`;
1964
+ let localVarPath = `/users/me/settings/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1456
1965
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1457
1966
  context: localVarHttpContext,
1458
1967
  responseType: responseType_,
@@ -1463,96 +1972,10 @@ class PermissionsService {
1463
1972
  reportProgress: reportProgress
1464
1973
  });
1465
1974
  }
1466
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: PermissionsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1467
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: PermissionsService, providedIn: 'root' });
1468
- }
1469
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: PermissionsService, decorators: [{
1470
- type: Injectable,
1471
- args: [{
1472
- providedIn: 'root'
1473
- }]
1474
- }], ctorParameters: () => [{ type: i1.HttpClient }, { type: undefined, decorators: [{
1475
- type: Optional
1476
- }, {
1477
- type: Inject,
1478
- args: [BASE_PATH]
1479
- }] }, { type: Configuration, decorators: [{
1480
- type: Optional
1481
- }] }] });
1482
-
1483
- /**
1484
- * Dcm.API.Client
1485
- * DCM API Client for Angular applications
1486
- *
1487
- *
1488
- *
1489
- * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
1490
- * https://openapi-generator.tech
1491
- * Do not edit the class manually.
1492
- */
1493
- /* tslint:disable:no-unused-variable member-ordering */
1494
- class ReportsService {
1495
- httpClient;
1496
- basePath = 'http://localhost';
1497
- defaultHeaders = new HttpHeaders();
1498
- configuration = new Configuration();
1499
- encoder;
1500
- constructor(httpClient, basePath, configuration) {
1501
- this.httpClient = httpClient;
1502
- if (configuration) {
1503
- this.configuration = configuration;
1504
- }
1505
- if (typeof this.configuration.basePath !== 'string') {
1506
- const firstBasePath = Array.isArray(basePath) ? basePath[0] : undefined;
1507
- if (firstBasePath != undefined) {
1508
- basePath = firstBasePath;
1509
- }
1510
- if (typeof basePath !== 'string') {
1511
- basePath = this.basePath;
1512
- }
1513
- this.configuration.basePath = basePath;
1514
- }
1515
- this.encoder = this.configuration.encoder || new CustomHttpParameterCodec();
1516
- }
1517
- // @ts-ignore
1518
- addToHttpParams(httpParams, value, key) {
1519
- if (typeof value === "object" && value instanceof Date === false) {
1520
- httpParams = this.addToHttpParamsRecursive(httpParams, value);
1521
- }
1522
- else {
1523
- httpParams = this.addToHttpParamsRecursive(httpParams, value, key);
1524
- }
1525
- return httpParams;
1526
- }
1527
- addToHttpParamsRecursive(httpParams, value, key) {
1528
- if (value == null) {
1529
- return httpParams;
1530
- }
1531
- if (typeof value === "object") {
1532
- if (Array.isArray(value)) {
1533
- value.forEach(elem => httpParams = this.addToHttpParamsRecursive(httpParams, elem, key));
1534
- }
1535
- else if (value instanceof Date) {
1536
- if (key != null) {
1537
- httpParams = httpParams.append(key, value.toISOString().substring(0, 10));
1538
- }
1539
- else {
1540
- throw Error("key may not be null if value is Date");
1541
- }
1542
- }
1543
- else {
1544
- Object.keys(value).forEach(k => httpParams = this.addToHttpParamsRecursive(httpParams, value[k], key != null ? `${key}.${k}` : k));
1545
- }
1546
- }
1547
- else if (key != null) {
1548
- httpParams = httpParams.append(key, value);
1549
- }
1550
- else {
1551
- throw Error("key may not be null if value is not object or array");
1975
+ getSettingsByGroup(group, observe = 'body', reportProgress = false, options) {
1976
+ if (group === null || group === undefined) {
1977
+ throw new Error('Required parameter group was null or undefined when calling getSettingsByGroup.');
1552
1978
  }
1553
- return httpParams;
1554
- }
1555
- getDcmReports(observe = 'body', reportProgress = false, options) {
1556
1979
  let localVarHeaders = this.defaultHeaders;
1557
1980
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1558
1981
  if (localVarHttpHeaderAcceptSelected === undefined) {
@@ -1585,7 +2008,7 @@ class ReportsService {
1585
2008
  responseType_ = 'blob';
1586
2009
  }
1587
2010
  }
1588
- let localVarPath = `/reports/dashboard-dcm`;
2011
+ let localVarPath = `/users/me/settings/groups/${this.configuration.encodeParam({ name: "group", value: group, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
1589
2012
  return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
1590
2013
  context: localVarHttpContext,
1591
2014
  responseType: responseType_,
@@ -1596,7 +2019,13 @@ class ReportsService {
1596
2019
  reportProgress: reportProgress
1597
2020
  });
1598
2021
  }
1599
- getSummaryDashboardReports(observe = 'body', reportProgress = false, options) {
2022
+ setSettingByKey(key, settingValue, observe = 'body', reportProgress = false, options) {
2023
+ if (key === null || key === undefined) {
2024
+ throw new Error('Required parameter key was null or undefined when calling setSettingByKey.');
2025
+ }
2026
+ if (settingValue === null || settingValue === undefined) {
2027
+ throw new Error('Required parameter settingValue was null or undefined when calling setSettingByKey.');
2028
+ }
1600
2029
  let localVarHeaders = this.defaultHeaders;
1601
2030
  let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
1602
2031
  if (localVarHttpHeaderAcceptSelected === undefined) {
@@ -1617,6 +2046,14 @@ class ReportsService {
1617
2046
  if (localVarTransferCache === undefined) {
1618
2047
  localVarTransferCache = true;
1619
2048
  }
2049
+ // to determine the Content-Type header
2050
+ const consumes = [
2051
+ 'application/json'
2052
+ ];
2053
+ const httpContentTypeSelected = this.configuration.selectHeaderContentType(consumes);
2054
+ if (httpContentTypeSelected !== undefined) {
2055
+ localVarHeaders = localVarHeaders.set('Content-Type', httpContentTypeSelected);
2056
+ }
1620
2057
  let responseType_ = 'json';
1621
2058
  if (localVarHttpHeaderAcceptSelected) {
1622
2059
  if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
@@ -1629,9 +2066,10 @@ class ReportsService {
1629
2066
  responseType_ = 'blob';
1630
2067
  }
1631
2068
  }
1632
- let localVarPath = `/reports/summary-dashboard`;
1633
- return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2069
+ let localVarPath = `/users/me/settings/${this.configuration.encodeParam({ name: "key", value: key, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: undefined })}`;
2070
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
1634
2071
  context: localVarHttpContext,
2072
+ body: settingValue,
1635
2073
  responseType: responseType_,
1636
2074
  withCredentials: this.configuration.withCredentials,
1637
2075
  headers: localVarHeaders,
@@ -1640,10 +2078,10 @@ class ReportsService {
1640
2078
  reportProgress: reportProgress
1641
2079
  });
1642
2080
  }
1643
- static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ReportsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
1644
- static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ReportsService, providedIn: 'root' });
2081
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: SettingsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2082
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: SettingsService, providedIn: 'root' });
1645
2083
  }
1646
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ReportsService, decorators: [{
2084
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: SettingsService, decorators: [{
1647
2085
  type: Injectable,
1648
2086
  args: [{
1649
2087
  providedIn: 'root'
@@ -1729,6 +2167,67 @@ class ShipmentsService {
1729
2167
  }
1730
2168
  return httpParams;
1731
2169
  }
2170
+ getShipmentApprovals($skip, $top, $orderby, $filter, $search, observe = 'body', reportProgress = false, options) {
2171
+ let localVarQueryParameters = new HttpParams({ encoder: this.encoder });
2172
+ if ($skip !== undefined && $skip !== null) {
2173
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $skip, '$skip');
2174
+ }
2175
+ if ($top !== undefined && $top !== null) {
2176
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $top, '$top');
2177
+ }
2178
+ if ($orderby !== undefined && $orderby !== null) {
2179
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $orderby, '$orderby');
2180
+ }
2181
+ if ($filter !== undefined && $filter !== null) {
2182
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $filter, '$filter');
2183
+ }
2184
+ if ($search !== undefined && $search !== null) {
2185
+ localVarQueryParameters = this.addToHttpParams(localVarQueryParameters, $search, '$search');
2186
+ }
2187
+ let localVarHeaders = this.defaultHeaders;
2188
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2189
+ if (localVarHttpHeaderAcceptSelected === undefined) {
2190
+ // to determine the Accept header
2191
+ const httpHeaderAccepts = [
2192
+ 'application/json'
2193
+ ];
2194
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2195
+ }
2196
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2197
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2198
+ }
2199
+ let localVarHttpContext = options && options.context;
2200
+ if (localVarHttpContext === undefined) {
2201
+ localVarHttpContext = new HttpContext();
2202
+ }
2203
+ let localVarTransferCache = options && options.transferCache;
2204
+ if (localVarTransferCache === undefined) {
2205
+ localVarTransferCache = true;
2206
+ }
2207
+ let responseType_ = 'json';
2208
+ if (localVarHttpHeaderAcceptSelected) {
2209
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2210
+ responseType_ = 'text';
2211
+ }
2212
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2213
+ responseType_ = 'json';
2214
+ }
2215
+ else {
2216
+ responseType_ = 'blob';
2217
+ }
2218
+ }
2219
+ let localVarPath = `/shipments/approvals`;
2220
+ return this.httpClient.request('get', `${this.configuration.basePath}${localVarPath}`, {
2221
+ context: localVarHttpContext,
2222
+ params: localVarQueryParameters,
2223
+ responseType: responseType_,
2224
+ withCredentials: this.configuration.withCredentials,
2225
+ headers: localVarHeaders,
2226
+ observe: observe,
2227
+ transferCache: localVarTransferCache,
2228
+ reportProgress: reportProgress
2229
+ });
2230
+ }
1732
2231
  getShipmentItems(id, observe = 'body', reportProgress = false, options) {
1733
2232
  if (id === null || id === undefined) {
1734
2233
  throw new Error('Required parameter id was null or undefined when calling getShipmentItems.');
@@ -2376,6 +2875,56 @@ class ShipmentsService {
2376
2875
  reportProgress: reportProgress
2377
2876
  });
2378
2877
  }
2878
+ updateShipmentState(id, state, observe = 'body', reportProgress = false, options) {
2879
+ if (id === null || id === undefined) {
2880
+ throw new Error('Required parameter id was null or undefined when calling updateShipmentState.');
2881
+ }
2882
+ if (state === null || state === undefined) {
2883
+ throw new Error('Required parameter state was null or undefined when calling updateShipmentState.');
2884
+ }
2885
+ let localVarHeaders = this.defaultHeaders;
2886
+ let localVarHttpHeaderAcceptSelected = options && options.httpHeaderAccept;
2887
+ if (localVarHttpHeaderAcceptSelected === undefined) {
2888
+ // to determine the Accept header
2889
+ const httpHeaderAccepts = [
2890
+ 'application/json'
2891
+ ];
2892
+ localVarHttpHeaderAcceptSelected = this.configuration.selectHeaderAccept(httpHeaderAccepts);
2893
+ }
2894
+ if (localVarHttpHeaderAcceptSelected !== undefined) {
2895
+ localVarHeaders = localVarHeaders.set('Accept', localVarHttpHeaderAcceptSelected);
2896
+ }
2897
+ let localVarHttpContext = options && options.context;
2898
+ if (localVarHttpContext === undefined) {
2899
+ localVarHttpContext = new HttpContext();
2900
+ }
2901
+ let localVarTransferCache = options && options.transferCache;
2902
+ if (localVarTransferCache === undefined) {
2903
+ localVarTransferCache = true;
2904
+ }
2905
+ let responseType_ = 'json';
2906
+ if (localVarHttpHeaderAcceptSelected) {
2907
+ if (localVarHttpHeaderAcceptSelected.startsWith('text')) {
2908
+ responseType_ = 'text';
2909
+ }
2910
+ else if (this.configuration.isJsonMime(localVarHttpHeaderAcceptSelected)) {
2911
+ responseType_ = 'json';
2912
+ }
2913
+ else {
2914
+ responseType_ = 'blob';
2915
+ }
2916
+ }
2917
+ let localVarPath = `/shipments/${this.configuration.encodeParam({ name: "id", value: id, in: "path", style: "simple", explode: false, dataType: "string", dataFormat: "uuid" })}/${this.configuration.encodeParam({ name: "state", value: state, in: "path", style: "simple", explode: false, dataType: "ShipmentState", dataFormat: undefined })}`;
2918
+ return this.httpClient.request('put', `${this.configuration.basePath}${localVarPath}`, {
2919
+ context: localVarHttpContext,
2920
+ responseType: responseType_,
2921
+ withCredentials: this.configuration.withCredentials,
2922
+ headers: localVarHeaders,
2923
+ observe: observe,
2924
+ transferCache: localVarTransferCache,
2925
+ reportProgress: reportProgress
2926
+ });
2927
+ }
2379
2928
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ShipmentsService, deps: [{ token: i1.HttpClient }, { token: BASE_PATH, optional: true }, { token: Configuration, optional: true }], target: i0.ɵɵFactoryTarget.Injectable });
2380
2929
  static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.6", ngImport: i0, type: ShipmentsService, providedIn: 'root' });
2381
2930
  }
@@ -2711,7 +3260,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
2711
3260
  type: Optional
2712
3261
  }] }] });
2713
3262
 
2714
- const APIS = [AuditLogsService, BookingsService, ContainersService, DocumentsService, HealthService, NotesService, PermissionsService, ReportsService, ShipmentsService, UserService];
3263
+ const APIS = [AuditLogsService, BookingsService, ContainersService, DocumentsService, HealthService, NotesService, PermissionsService, ReportsService, SettingsService, ShipmentsService, UserService];
2715
3264
 
2716
3265
  /**
2717
3266
  * Dcm.API.Client
@@ -2973,6 +3522,17 @@ const NoteSourceTypes = {
2973
3522
  * Do not edit the class manually.
2974
3523
  */
2975
3524
 
3525
+ /**
3526
+ * Dcm.API.Client
3527
+ * DCM API Client for Angular applications
3528
+ *
3529
+ *
3530
+ *
3531
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3532
+ * https://openapi-generator.tech
3533
+ * Do not edit the class manually.
3534
+ */
3535
+
2976
3536
  /**
2977
3537
  * Dcm.API.Client
2978
3538
  * DCM API Client for Angular applications
@@ -3002,6 +3562,28 @@ const RecordTypes = {
3002
3562
  Shipment: 'Shipment'
3003
3563
  };
3004
3564
 
3565
+ /**
3566
+ * Dcm.API.Client
3567
+ * DCM API Client for Angular applications
3568
+ *
3569
+ *
3570
+ *
3571
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3572
+ * https://openapi-generator.tech
3573
+ * Do not edit the class manually.
3574
+ */
3575
+
3576
+ /**
3577
+ * Dcm.API.Client
3578
+ * DCM API Client for Angular applications
3579
+ *
3580
+ *
3581
+ *
3582
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
3583
+ * https://openapi-generator.tech
3584
+ * Do not edit the class manually.
3585
+ */
3586
+
3005
3587
  /**
3006
3588
  * Dcm.API.Client
3007
3589
  * DCM API Client for Angular applications
@@ -3323,5 +3905,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.6", ngImpor
3323
3905
  * Generated bundle index. Do not edit.
3324
3906
  */
3325
3907
 
3326
- export { APIS, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainerTypes, ContainersService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentTypes, NoteSourceTypes, NotesService, PermissionsService, PowerBiTenant, RecordTypes, ReportsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentType, ShipmentsService, TimelineEventStates, TimelineEventTypes, UserService, WorkflowArtifacts };
3908
+ export { APIS, ApiModule, ApprovalTypes, AuditLogsService, BASE_PATH, BookingsService, COLLECTION_FORMATS, Configuration, ContainerTypes, ContainersService, DocumentType, DocumentsService, EntityState, HealthService, JourneySegmentTypes, NoteSourceTypes, NotesService, PermissionsService, PowerBiTenant, RecordTypes, ReportsService, SettingsService, ShipmentApprovalType, ShipmentState, ShipmentTerm, ShipmentType, ShipmentsService, TimelineEventStates, TimelineEventTypes, UserService, WorkflowArtifacts };
3327
3909
  //# sourceMappingURL=indigina-dcm-api.mjs.map