@banch0u/core-project-test-repository 1.9.0 → 1.9.1

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.
Files changed (33) hide show
  1. package/dist/components/Button/index.module.scss +5 -5
  2. package/dist/components/ColSort/index.module.scss +22 -0
  3. package/dist/components/Input/index.js +35 -6
  4. package/dist/components/Input/index.module.scss +45 -22
  5. package/dist/components/Select/index.js +47 -60
  6. package/dist/components/Select/index.module.scss +32 -0
  7. package/dist/layout/QuestionnairesSidebar/index.js +52 -16
  8. package/dist/pages/Questionnnaires/QuestionnairesBrandsContent/constant.js +58 -0
  9. package/dist/pages/Questionnnaires/QuestionnairesBrandsContent/index.js +247 -0
  10. package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/constant.js +58 -0
  11. package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/index.js +247 -0
  12. package/dist/pages/Questionnnaires/QuestionnairesColorsContent/constant.js +58 -0
  13. package/dist/pages/Questionnnaires/QuestionnairesColorsContent/index.js +247 -0
  14. package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/constant.js +58 -0
  15. package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/index.js +247 -0
  16. package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/constant.js +58 -0
  17. package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/index.js +247 -0
  18. package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/constant.js +58 -0
  19. package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/index.js +247 -0
  20. package/dist/pages/Questionnnaires/QuestionnairesModelsContent/constant.js +58 -0
  21. package/dist/pages/Questionnnaires/QuestionnairesModelsContent/index.js +290 -0
  22. package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/constant.js +58 -0
  23. package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/index.js +247 -0
  24. package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/constant.js +58 -0
  25. package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/index.js +247 -0
  26. package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/constant.js +58 -0
  27. package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/index.js +247 -0
  28. package/dist/routes/QuestionnaireRoutes.js +83 -13
  29. package/dist/store/slices/global/index.js +81 -3
  30. package/dist/store/slices/questionnaire/index.js +2686 -47
  31. package/dist/store/slices/questionnaire/service.js +1475 -2
  32. package/dist/utils/path.js +34 -15
  33. package/package.json +1 -1
@@ -501,7 +501,7 @@ _defineProperty(Services, "documentRecieveMethodVisibility", /*#__PURE__*/functi
501
501
  while (1) switch (_context24.prev = _context24.next) {
502
502
  case 0:
503
503
  _context24.next = 2;
504
- return api.patch("/documentreceivemethods/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked, "/"));
504
+ return api.patch("/documentreceivemethods/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
505
505
  case 2:
506
506
  response = _context24.sent;
507
507
  return _context24.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
@@ -649,7 +649,7 @@ _defineProperty(Services, "documentTypesVisibility", /*#__PURE__*/function () {
649
649
  while (1) switch (_context31.prev = _context31.next) {
650
650
  case 0:
651
651
  _context31.next = 2;
652
- return api.patch("/documenttypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked, "/"));
652
+ return api.patch("/documenttypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
653
653
  case 2:
654
654
  response = _context31.sent;
655
655
  return _context31.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
@@ -1554,4 +1554,1477 @@ _defineProperty(Services, "getGeneralStructuresAll", /*#__PURE__*/_asyncToGenera
1554
1554
  }
1555
1555
  }, _callee72);
1556
1556
  })));
1557
+ _defineProperty(Services, "getBrands", /*#__PURE__*/function () {
1558
+ var _ref73 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee73(size, page, query, visibility) {
1559
+ var response;
1560
+ return _regeneratorRuntime.wrap(function _callee73$(_context73) {
1561
+ while (1) switch (_context73.prev = _context73.next) {
1562
+ case 0:
1563
+ _context73.next = 2;
1564
+ return api.get("/brands/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
1565
+ case 2:
1566
+ response = _context73.sent;
1567
+ return _context73.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1568
+ case 4:
1569
+ case "end":
1570
+ return _context73.stop();
1571
+ }
1572
+ }, _callee73);
1573
+ }));
1574
+ return function (_x119, _x120, _x121, _x122) {
1575
+ return _ref73.apply(this, arguments);
1576
+ };
1577
+ }());
1578
+ _defineProperty(Services, "getBrandsAll", /*#__PURE__*/function () {
1579
+ var _ref74 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee74(visibility) {
1580
+ var response;
1581
+ return _regeneratorRuntime.wrap(function _callee74$(_context74) {
1582
+ while (1) switch (_context74.prev = _context74.next) {
1583
+ case 0:
1584
+ _context74.next = 2;
1585
+ return api.get("/brands?visibility=".concat(visibility));
1586
+ case 2:
1587
+ response = _context74.sent;
1588
+ return _context74.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1589
+ case 4:
1590
+ case "end":
1591
+ return _context74.stop();
1592
+ }
1593
+ }, _callee74);
1594
+ }));
1595
+ return function (_x123) {
1596
+ return _ref74.apply(this, arguments);
1597
+ };
1598
+ }());
1599
+ _defineProperty(Services, "addBrand", /*#__PURE__*/function () {
1600
+ var _ref75 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee75(value) {
1601
+ var response;
1602
+ return _regeneratorRuntime.wrap(function _callee75$(_context75) {
1603
+ while (1) switch (_context75.prev = _context75.next) {
1604
+ case 0:
1605
+ _context75.next = 2;
1606
+ return api.post("/brands", value);
1607
+ case 2:
1608
+ response = _context75.sent;
1609
+ return _context75.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1610
+ case 4:
1611
+ case "end":
1612
+ return _context75.stop();
1613
+ }
1614
+ }, _callee75);
1615
+ }));
1616
+ return function (_x124) {
1617
+ return _ref75.apply(this, arguments);
1618
+ };
1619
+ }());
1620
+ _defineProperty(Services, "editBrand", /*#__PURE__*/function () {
1621
+ var _ref76 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee76(value) {
1622
+ var response;
1623
+ return _regeneratorRuntime.wrap(function _callee76$(_context76) {
1624
+ while (1) switch (_context76.prev = _context76.next) {
1625
+ case 0:
1626
+ _context76.next = 2;
1627
+ return api.put("/brands/".concat(value === null || value === void 0 ? void 0 : value.id), value);
1628
+ case 2:
1629
+ response = _context76.sent;
1630
+ return _context76.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1631
+ case 4:
1632
+ case "end":
1633
+ return _context76.stop();
1634
+ }
1635
+ }, _callee76);
1636
+ }));
1637
+ return function (_x125) {
1638
+ return _ref76.apply(this, arguments);
1639
+ };
1640
+ }());
1641
+ _defineProperty(Services, "deleteBrand", /*#__PURE__*/function () {
1642
+ var _ref77 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee77(id) {
1643
+ var response;
1644
+ return _regeneratorRuntime.wrap(function _callee77$(_context77) {
1645
+ while (1) switch (_context77.prev = _context77.next) {
1646
+ case 0:
1647
+ _context77.next = 2;
1648
+ return api["delete"]("/brands/".concat(id));
1649
+ case 2:
1650
+ response = _context77.sent;
1651
+ return _context77.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1652
+ case 4:
1653
+ case "end":
1654
+ return _context77.stop();
1655
+ }
1656
+ }, _callee77);
1657
+ }));
1658
+ return function (_x126) {
1659
+ return _ref77.apply(this, arguments);
1660
+ };
1661
+ }());
1662
+ _defineProperty(Services, "brandVisibility", /*#__PURE__*/function () {
1663
+ var _ref78 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee78(data) {
1664
+ var response;
1665
+ return _regeneratorRuntime.wrap(function _callee78$(_context78) {
1666
+ while (1) switch (_context78.prev = _context78.next) {
1667
+ case 0:
1668
+ _context78.next = 2;
1669
+ return api.patch("/brands/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
1670
+ case 2:
1671
+ response = _context78.sent;
1672
+ return _context78.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1673
+ case 4:
1674
+ case "end":
1675
+ return _context78.stop();
1676
+ }
1677
+ }, _callee78);
1678
+ }));
1679
+ return function (_x127) {
1680
+ return _ref78.apply(this, arguments);
1681
+ };
1682
+ }());
1683
+ // 🛠 chassistypes
1684
+ _defineProperty(Services, "getChassiTypes", /*#__PURE__*/function () {
1685
+ var _ref79 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee79(size, page, query, visibility) {
1686
+ var response;
1687
+ return _regeneratorRuntime.wrap(function _callee79$(_context79) {
1688
+ while (1) switch (_context79.prev = _context79.next) {
1689
+ case 0:
1690
+ _context79.next = 2;
1691
+ return api.get("/chassistypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
1692
+ case 2:
1693
+ response = _context79.sent;
1694
+ return _context79.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1695
+ case 4:
1696
+ case "end":
1697
+ return _context79.stop();
1698
+ }
1699
+ }, _callee79);
1700
+ }));
1701
+ return function (_x128, _x129, _x130, _x131) {
1702
+ return _ref79.apply(this, arguments);
1703
+ };
1704
+ }());
1705
+ _defineProperty(Services, "getChassiTypesAll", /*#__PURE__*/function () {
1706
+ var _ref80 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee80(visibility) {
1707
+ var response;
1708
+ return _regeneratorRuntime.wrap(function _callee80$(_context80) {
1709
+ while (1) switch (_context80.prev = _context80.next) {
1710
+ case 0:
1711
+ _context80.next = 2;
1712
+ return api.get("/chassistypes?visibility=".concat(visibility));
1713
+ case 2:
1714
+ response = _context80.sent;
1715
+ return _context80.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1716
+ case 4:
1717
+ case "end":
1718
+ return _context80.stop();
1719
+ }
1720
+ }, _callee80);
1721
+ }));
1722
+ return function (_x132) {
1723
+ return _ref80.apply(this, arguments);
1724
+ };
1725
+ }());
1726
+ _defineProperty(Services, "addChassisType", /*#__PURE__*/function () {
1727
+ var _ref81 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee81(value) {
1728
+ return _regeneratorRuntime.wrap(function _callee81$(_context81) {
1729
+ while (1) switch (_context81.prev = _context81.next) {
1730
+ case 0:
1731
+ return _context81.abrupt("return", api.post("/chassistypes", value).then(function (r) {
1732
+ return r.data;
1733
+ }));
1734
+ case 1:
1735
+ case "end":
1736
+ return _context81.stop();
1737
+ }
1738
+ }, _callee81);
1739
+ }));
1740
+ return function (_x133) {
1741
+ return _ref81.apply(this, arguments);
1742
+ };
1743
+ }());
1744
+ _defineProperty(Services, "editChassisType", /*#__PURE__*/function () {
1745
+ var _ref82 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee82(value) {
1746
+ return _regeneratorRuntime.wrap(function _callee82$(_context82) {
1747
+ while (1) switch (_context82.prev = _context82.next) {
1748
+ case 0:
1749
+ return _context82.abrupt("return", api.put("/chassistypes/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
1750
+ return r.data;
1751
+ }));
1752
+ case 1:
1753
+ case "end":
1754
+ return _context82.stop();
1755
+ }
1756
+ }, _callee82);
1757
+ }));
1758
+ return function (_x134) {
1759
+ return _ref82.apply(this, arguments);
1760
+ };
1761
+ }());
1762
+ _defineProperty(Services, "deleteChassisType", /*#__PURE__*/function () {
1763
+ var _ref83 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee83(id) {
1764
+ return _regeneratorRuntime.wrap(function _callee83$(_context83) {
1765
+ while (1) switch (_context83.prev = _context83.next) {
1766
+ case 0:
1767
+ return _context83.abrupt("return", api["delete"]("/chassistypes/".concat(id)).then(function (r) {
1768
+ return r.data;
1769
+ }));
1770
+ case 1:
1771
+ case "end":
1772
+ return _context83.stop();
1773
+ }
1774
+ }, _callee83);
1775
+ }));
1776
+ return function (_x135) {
1777
+ return _ref83.apply(this, arguments);
1778
+ };
1779
+ }());
1780
+ _defineProperty(Services, "chassisTypeVisibility", /*#__PURE__*/function () {
1781
+ var _ref84 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee84(data) {
1782
+ return _regeneratorRuntime.wrap(function _callee84$(_context84) {
1783
+ while (1) switch (_context84.prev = _context84.next) {
1784
+ case 0:
1785
+ return _context84.abrupt("return", api.patch("/chassistypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
1786
+ return r.data;
1787
+ }));
1788
+ case 1:
1789
+ case "end":
1790
+ return _context84.stop();
1791
+ }
1792
+ }, _callee84);
1793
+ }));
1794
+ return function (_x136) {
1795
+ return _ref84.apply(this, arguments);
1796
+ };
1797
+ }());
1798
+ // 🎨 colors
1799
+ _defineProperty(Services, "getColor", /*#__PURE__*/function () {
1800
+ var _ref85 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee85(size, page, query, visibility) {
1801
+ var response;
1802
+ return _regeneratorRuntime.wrap(function _callee85$(_context85) {
1803
+ while (1) switch (_context85.prev = _context85.next) {
1804
+ case 0:
1805
+ _context85.next = 2;
1806
+ return api.get("/colors/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
1807
+ case 2:
1808
+ response = _context85.sent;
1809
+ return _context85.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1810
+ case 4:
1811
+ case "end":
1812
+ return _context85.stop();
1813
+ }
1814
+ }, _callee85);
1815
+ }));
1816
+ return function (_x137, _x138, _x139, _x140) {
1817
+ return _ref85.apply(this, arguments);
1818
+ };
1819
+ }());
1820
+ _defineProperty(Services, "getColorAll", /*#__PURE__*/function () {
1821
+ var _ref86 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee86(visibility) {
1822
+ return _regeneratorRuntime.wrap(function _callee86$(_context86) {
1823
+ while (1) switch (_context86.prev = _context86.next) {
1824
+ case 0:
1825
+ return _context86.abrupt("return", api.get("/colors?visibility=".concat(visibility)).then(function (r) {
1826
+ return r.data;
1827
+ }));
1828
+ case 1:
1829
+ case "end":
1830
+ return _context86.stop();
1831
+ }
1832
+ }, _callee86);
1833
+ }));
1834
+ return function (_x141) {
1835
+ return _ref86.apply(this, arguments);
1836
+ };
1837
+ }());
1838
+ _defineProperty(Services, "addColor", /*#__PURE__*/function () {
1839
+ var _ref87 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee87(value) {
1840
+ return _regeneratorRuntime.wrap(function _callee87$(_context87) {
1841
+ while (1) switch (_context87.prev = _context87.next) {
1842
+ case 0:
1843
+ return _context87.abrupt("return", api.post("/colors", value).then(function (r) {
1844
+ return r.data;
1845
+ }));
1846
+ case 1:
1847
+ case "end":
1848
+ return _context87.stop();
1849
+ }
1850
+ }, _callee87);
1851
+ }));
1852
+ return function (_x142) {
1853
+ return _ref87.apply(this, arguments);
1854
+ };
1855
+ }());
1856
+ _defineProperty(Services, "editColor", /*#__PURE__*/function () {
1857
+ var _ref88 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee88(value) {
1858
+ return _regeneratorRuntime.wrap(function _callee88$(_context88) {
1859
+ while (1) switch (_context88.prev = _context88.next) {
1860
+ case 0:
1861
+ return _context88.abrupt("return", api.put("/colors/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
1862
+ return r.data;
1863
+ }));
1864
+ case 1:
1865
+ case "end":
1866
+ return _context88.stop();
1867
+ }
1868
+ }, _callee88);
1869
+ }));
1870
+ return function (_x143) {
1871
+ return _ref88.apply(this, arguments);
1872
+ };
1873
+ }());
1874
+ _defineProperty(Services, "deleteColor", /*#__PURE__*/function () {
1875
+ var _ref89 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee89(id) {
1876
+ return _regeneratorRuntime.wrap(function _callee89$(_context89) {
1877
+ while (1) switch (_context89.prev = _context89.next) {
1878
+ case 0:
1879
+ return _context89.abrupt("return", api["delete"]("/colors/".concat(id)).then(function (r) {
1880
+ return r.data;
1881
+ }));
1882
+ case 1:
1883
+ case "end":
1884
+ return _context89.stop();
1885
+ }
1886
+ }, _callee89);
1887
+ }));
1888
+ return function (_x144) {
1889
+ return _ref89.apply(this, arguments);
1890
+ };
1891
+ }());
1892
+ _defineProperty(Services, "colorVisibility", /*#__PURE__*/function () {
1893
+ var _ref90 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee90(data) {
1894
+ return _regeneratorRuntime.wrap(function _callee90$(_context90) {
1895
+ while (1) switch (_context90.prev = _context90.next) {
1896
+ case 0:
1897
+ return _context90.abrupt("return", api.patch("/colors/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
1898
+ return r.data;
1899
+ }));
1900
+ case 1:
1901
+ case "end":
1902
+ return _context90.stop();
1903
+ }
1904
+ }, _callee90);
1905
+ }));
1906
+ return function (_x145) {
1907
+ return _ref90.apply(this, arguments);
1908
+ };
1909
+ }());
1910
+ // 🔧 enginetypes
1911
+ _defineProperty(Services, "getEnginetype", /*#__PURE__*/function () {
1912
+ var _ref91 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee91(size, page, query, visibility) {
1913
+ var response;
1914
+ return _regeneratorRuntime.wrap(function _callee91$(_context91) {
1915
+ while (1) switch (_context91.prev = _context91.next) {
1916
+ case 0:
1917
+ _context91.next = 2;
1918
+ return api.get("/enginetypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
1919
+ case 2:
1920
+ response = _context91.sent;
1921
+ return _context91.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
1922
+ case 4:
1923
+ case "end":
1924
+ return _context91.stop();
1925
+ }
1926
+ }, _callee91);
1927
+ }));
1928
+ return function (_x146, _x147, _x148, _x149) {
1929
+ return _ref91.apply(this, arguments);
1930
+ };
1931
+ }());
1932
+ _defineProperty(Services, "getEnginetypeAll", /*#__PURE__*/function () {
1933
+ var _ref92 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee92(visibility) {
1934
+ return _regeneratorRuntime.wrap(function _callee92$(_context92) {
1935
+ while (1) switch (_context92.prev = _context92.next) {
1936
+ case 0:
1937
+ return _context92.abrupt("return", api.get("/enginetypes?visibility=".concat(visibility)).then(function (r) {
1938
+ return r.data;
1939
+ }));
1940
+ case 1:
1941
+ case "end":
1942
+ return _context92.stop();
1943
+ }
1944
+ }, _callee92);
1945
+ }));
1946
+ return function (_x150) {
1947
+ return _ref92.apply(this, arguments);
1948
+ };
1949
+ }());
1950
+ _defineProperty(Services, "addEnginetype", /*#__PURE__*/function () {
1951
+ var _ref93 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee93(value) {
1952
+ return _regeneratorRuntime.wrap(function _callee93$(_context93) {
1953
+ while (1) switch (_context93.prev = _context93.next) {
1954
+ case 0:
1955
+ return _context93.abrupt("return", api.post("/enginetypes", value).then(function (r) {
1956
+ return r.data;
1957
+ }));
1958
+ case 1:
1959
+ case "end":
1960
+ return _context93.stop();
1961
+ }
1962
+ }, _callee93);
1963
+ }));
1964
+ return function (_x151) {
1965
+ return _ref93.apply(this, arguments);
1966
+ };
1967
+ }());
1968
+ _defineProperty(Services, "editEnginetype", /*#__PURE__*/function () {
1969
+ var _ref94 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee94(value) {
1970
+ return _regeneratorRuntime.wrap(function _callee94$(_context94) {
1971
+ while (1) switch (_context94.prev = _context94.next) {
1972
+ case 0:
1973
+ return _context94.abrupt("return", api.put("/enginetypes/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
1974
+ return r.data;
1975
+ }));
1976
+ case 1:
1977
+ case "end":
1978
+ return _context94.stop();
1979
+ }
1980
+ }, _callee94);
1981
+ }));
1982
+ return function (_x152) {
1983
+ return _ref94.apply(this, arguments);
1984
+ };
1985
+ }());
1986
+ _defineProperty(Services, "deleteEnginetype", /*#__PURE__*/function () {
1987
+ var _ref95 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee95(id) {
1988
+ return _regeneratorRuntime.wrap(function _callee95$(_context95) {
1989
+ while (1) switch (_context95.prev = _context95.next) {
1990
+ case 0:
1991
+ return _context95.abrupt("return", api["delete"]("/enginetypes/".concat(id)).then(function (r) {
1992
+ return r.data;
1993
+ }));
1994
+ case 1:
1995
+ case "end":
1996
+ return _context95.stop();
1997
+ }
1998
+ }, _callee95);
1999
+ }));
2000
+ return function (_x153) {
2001
+ return _ref95.apply(this, arguments);
2002
+ };
2003
+ }());
2004
+ _defineProperty(Services, "enginetypeVisibility", /*#__PURE__*/function () {
2005
+ var _ref96 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee96(data) {
2006
+ return _regeneratorRuntime.wrap(function _callee96$(_context96) {
2007
+ while (1) switch (_context96.prev = _context96.next) {
2008
+ case 0:
2009
+ return _context96.abrupt("return", api.patch("/enginetypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2010
+ return r.data;
2011
+ }));
2012
+ case 1:
2013
+ case "end":
2014
+ return _context96.stop();
2015
+ }
2016
+ }, _callee96);
2017
+ }));
2018
+ return function (_x154) {
2019
+ return _ref96.apply(this, arguments);
2020
+ };
2021
+ }());
2022
+ // ⚙️ gearboxtypes
2023
+ _defineProperty(Services, "getGearboxtype", /*#__PURE__*/function () {
2024
+ var _ref97 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee97(size, page, query, visibility) {
2025
+ var response;
2026
+ return _regeneratorRuntime.wrap(function _callee97$(_context97) {
2027
+ while (1) switch (_context97.prev = _context97.next) {
2028
+ case 0:
2029
+ _context97.next = 2;
2030
+ return api.get("/gearboxtypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
2031
+ case 2:
2032
+ response = _context97.sent;
2033
+ return _context97.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2034
+ case 4:
2035
+ case "end":
2036
+ return _context97.stop();
2037
+ }
2038
+ }, _callee97);
2039
+ }));
2040
+ return function (_x155, _x156, _x157, _x158) {
2041
+ return _ref97.apply(this, arguments);
2042
+ };
2043
+ }());
2044
+ _defineProperty(Services, "getGearboxtypeAll", /*#__PURE__*/function () {
2045
+ var _ref98 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee98(visibility) {
2046
+ return _regeneratorRuntime.wrap(function _callee98$(_context98) {
2047
+ while (1) switch (_context98.prev = _context98.next) {
2048
+ case 0:
2049
+ return _context98.abrupt("return", api.get("/gearboxtypes?visibility=".concat(visibility)).then(function (r) {
2050
+ return r.data;
2051
+ }));
2052
+ case 1:
2053
+ case "end":
2054
+ return _context98.stop();
2055
+ }
2056
+ }, _callee98);
2057
+ }));
2058
+ return function (_x159) {
2059
+ return _ref98.apply(this, arguments);
2060
+ };
2061
+ }());
2062
+ _defineProperty(Services, "addGearboxtype", /*#__PURE__*/function () {
2063
+ var _ref99 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee99(value) {
2064
+ return _regeneratorRuntime.wrap(function _callee99$(_context99) {
2065
+ while (1) switch (_context99.prev = _context99.next) {
2066
+ case 0:
2067
+ return _context99.abrupt("return", api.post("/gearboxtypes", value).then(function (r) {
2068
+ return r.data;
2069
+ }));
2070
+ case 1:
2071
+ case "end":
2072
+ return _context99.stop();
2073
+ }
2074
+ }, _callee99);
2075
+ }));
2076
+ return function (_x160) {
2077
+ return _ref99.apply(this, arguments);
2078
+ };
2079
+ }());
2080
+ _defineProperty(Services, "editGearboxtype", /*#__PURE__*/function () {
2081
+ var _ref100 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee100(value) {
2082
+ return _regeneratorRuntime.wrap(function _callee100$(_context100) {
2083
+ while (1) switch (_context100.prev = _context100.next) {
2084
+ case 0:
2085
+ return _context100.abrupt("return", api.put("/gearboxtypes/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2086
+ return r.data;
2087
+ }));
2088
+ case 1:
2089
+ case "end":
2090
+ return _context100.stop();
2091
+ }
2092
+ }, _callee100);
2093
+ }));
2094
+ return function (_x161) {
2095
+ return _ref100.apply(this, arguments);
2096
+ };
2097
+ }());
2098
+ _defineProperty(Services, "deleteGearboxtype", /*#__PURE__*/function () {
2099
+ var _ref101 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee101(id) {
2100
+ return _regeneratorRuntime.wrap(function _callee101$(_context101) {
2101
+ while (1) switch (_context101.prev = _context101.next) {
2102
+ case 0:
2103
+ return _context101.abrupt("return", api["delete"]("/gearboxtypes/".concat(id)).then(function (r) {
2104
+ return r.data;
2105
+ }));
2106
+ case 1:
2107
+ case "end":
2108
+ return _context101.stop();
2109
+ }
2110
+ }, _callee101);
2111
+ }));
2112
+ return function (_x162) {
2113
+ return _ref101.apply(this, arguments);
2114
+ };
2115
+ }());
2116
+ _defineProperty(Services, "gearboxtypeVisibility", /*#__PURE__*/function () {
2117
+ var _ref102 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee102(data) {
2118
+ return _regeneratorRuntime.wrap(function _callee102$(_context102) {
2119
+ while (1) switch (_context102.prev = _context102.next) {
2120
+ case 0:
2121
+ return _context102.abrupt("return", api.patch("/gearboxtypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2122
+ return r.data;
2123
+ }));
2124
+ case 1:
2125
+ case "end":
2126
+ return _context102.stop();
2127
+ }
2128
+ }, _callee102);
2129
+ }));
2130
+ return function (_x163) {
2131
+ return _ref102.apply(this, arguments);
2132
+ };
2133
+ }());
2134
+ // 🏛 issuedauthorities
2135
+ _defineProperty(Services, "getIssuedauthorities", /*#__PURE__*/function () {
2136
+ var _ref103 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee103(size, page, query, visibility) {
2137
+ var response;
2138
+ return _regeneratorRuntime.wrap(function _callee103$(_context103) {
2139
+ while (1) switch (_context103.prev = _context103.next) {
2140
+ case 0:
2141
+ _context103.next = 2;
2142
+ return api.get("/issuedauthorities/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
2143
+ case 2:
2144
+ response = _context103.sent;
2145
+ return _context103.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2146
+ case 4:
2147
+ case "end":
2148
+ return _context103.stop();
2149
+ }
2150
+ }, _callee103);
2151
+ }));
2152
+ return function (_x164, _x165, _x166, _x167) {
2153
+ return _ref103.apply(this, arguments);
2154
+ };
2155
+ }());
2156
+ _defineProperty(Services, "getIssuedauthoritiesAll", /*#__PURE__*/function () {
2157
+ var _ref104 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee104(visibility) {
2158
+ return _regeneratorRuntime.wrap(function _callee104$(_context104) {
2159
+ while (1) switch (_context104.prev = _context104.next) {
2160
+ case 0:
2161
+ return _context104.abrupt("return", api.get("/issuedauthorities?visibility=".concat(visibility)).then(function (r) {
2162
+ return r.data;
2163
+ }));
2164
+ case 1:
2165
+ case "end":
2166
+ return _context104.stop();
2167
+ }
2168
+ }, _callee104);
2169
+ }));
2170
+ return function (_x168) {
2171
+ return _ref104.apply(this, arguments);
2172
+ };
2173
+ }());
2174
+ _defineProperty(Services, "addIssuedauthorities", /*#__PURE__*/function () {
2175
+ var _ref105 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee105(value) {
2176
+ return _regeneratorRuntime.wrap(function _callee105$(_context105) {
2177
+ while (1) switch (_context105.prev = _context105.next) {
2178
+ case 0:
2179
+ return _context105.abrupt("return", api.post("/issuedauthorities", value).then(function (r) {
2180
+ return r.data;
2181
+ }));
2182
+ case 1:
2183
+ case "end":
2184
+ return _context105.stop();
2185
+ }
2186
+ }, _callee105);
2187
+ }));
2188
+ return function (_x169) {
2189
+ return _ref105.apply(this, arguments);
2190
+ };
2191
+ }());
2192
+ _defineProperty(Services, "editIssuedauthorities", /*#__PURE__*/function () {
2193
+ var _ref106 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee106(value) {
2194
+ return _regeneratorRuntime.wrap(function _callee106$(_context106) {
2195
+ while (1) switch (_context106.prev = _context106.next) {
2196
+ case 0:
2197
+ return _context106.abrupt("return", api.put("/issuedauthorities/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2198
+ return r.data;
2199
+ }));
2200
+ case 1:
2201
+ case "end":
2202
+ return _context106.stop();
2203
+ }
2204
+ }, _callee106);
2205
+ }));
2206
+ return function (_x170) {
2207
+ return _ref106.apply(this, arguments);
2208
+ };
2209
+ }());
2210
+ _defineProperty(Services, "deleteIssuedauthorities", /*#__PURE__*/function () {
2211
+ var _ref107 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee107(id) {
2212
+ return _regeneratorRuntime.wrap(function _callee107$(_context107) {
2213
+ while (1) switch (_context107.prev = _context107.next) {
2214
+ case 0:
2215
+ return _context107.abrupt("return", api["delete"]("/issuedauthorities/".concat(id)).then(function (r) {
2216
+ return r.data;
2217
+ }));
2218
+ case 1:
2219
+ case "end":
2220
+ return _context107.stop();
2221
+ }
2222
+ }, _callee107);
2223
+ }));
2224
+ return function (_x171) {
2225
+ return _ref107.apply(this, arguments);
2226
+ };
2227
+ }());
2228
+ _defineProperty(Services, "issuedauthoritiesVisibility", /*#__PURE__*/function () {
2229
+ var _ref108 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee108(data) {
2230
+ return _regeneratorRuntime.wrap(function _callee108$(_context108) {
2231
+ while (1) switch (_context108.prev = _context108.next) {
2232
+ case 0:
2233
+ return _context108.abrupt("return", api.patch("/issuedauthorities/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2234
+ return r.data;
2235
+ }));
2236
+ case 1:
2237
+ case "end":
2238
+ return _context108.stop();
2239
+ }
2240
+ }, _callee108);
2241
+ }));
2242
+ return function (_x172) {
2243
+ return _ref108.apply(this, arguments);
2244
+ };
2245
+ }());
2246
+ // 🚗 models
2247
+ _defineProperty(Services, "getModel", /*#__PURE__*/function () {
2248
+ var _ref109 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee109(size, page, query, brands, visibility) {
2249
+ var response;
2250
+ return _regeneratorRuntime.wrap(function _callee109$(_context109) {
2251
+ while (1) switch (_context109.prev = _context109.next) {
2252
+ case 0:
2253
+ _context109.next = 2;
2254
+ return api.get("/models/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name, "&brands=").concat(brands));
2255
+ case 2:
2256
+ response = _context109.sent;
2257
+ return _context109.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2258
+ case 4:
2259
+ case "end":
2260
+ return _context109.stop();
2261
+ }
2262
+ }, _callee109);
2263
+ }));
2264
+ return function (_x173, _x174, _x175, _x176, _x177) {
2265
+ return _ref109.apply(this, arguments);
2266
+ };
2267
+ }());
2268
+ _defineProperty(Services, "getModelAll", /*#__PURE__*/function () {
2269
+ var _ref110 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee110(visibility, brands) {
2270
+ return _regeneratorRuntime.wrap(function _callee110$(_context110) {
2271
+ while (1) switch (_context110.prev = _context110.next) {
2272
+ case 0:
2273
+ return _context110.abrupt("return", api.get("/models?visibility=".concat(visibility, "&brands=").concat(brands)).then(function (r) {
2274
+ return r.data;
2275
+ }));
2276
+ case 1:
2277
+ case "end":
2278
+ return _context110.stop();
2279
+ }
2280
+ }, _callee110);
2281
+ }));
2282
+ return function (_x178, _x179) {
2283
+ return _ref110.apply(this, arguments);
2284
+ };
2285
+ }());
2286
+ _defineProperty(Services, "addModel", /*#__PURE__*/function () {
2287
+ var _ref111 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee111(value) {
2288
+ return _regeneratorRuntime.wrap(function _callee111$(_context111) {
2289
+ while (1) switch (_context111.prev = _context111.next) {
2290
+ case 0:
2291
+ return _context111.abrupt("return", api.post("/models", value).then(function (r) {
2292
+ return r.data;
2293
+ }));
2294
+ case 1:
2295
+ case "end":
2296
+ return _context111.stop();
2297
+ }
2298
+ }, _callee111);
2299
+ }));
2300
+ return function (_x180) {
2301
+ return _ref111.apply(this, arguments);
2302
+ };
2303
+ }());
2304
+ _defineProperty(Services, "editModel", /*#__PURE__*/function () {
2305
+ var _ref112 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee112(value) {
2306
+ return _regeneratorRuntime.wrap(function _callee112$(_context112) {
2307
+ while (1) switch (_context112.prev = _context112.next) {
2308
+ case 0:
2309
+ return _context112.abrupt("return", api.put("/models/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2310
+ return r.data;
2311
+ }));
2312
+ case 1:
2313
+ case "end":
2314
+ return _context112.stop();
2315
+ }
2316
+ }, _callee112);
2317
+ }));
2318
+ return function (_x181) {
2319
+ return _ref112.apply(this, arguments);
2320
+ };
2321
+ }());
2322
+ _defineProperty(Services, "deleteModel", /*#__PURE__*/function () {
2323
+ var _ref113 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee113(id) {
2324
+ return _regeneratorRuntime.wrap(function _callee113$(_context113) {
2325
+ while (1) switch (_context113.prev = _context113.next) {
2326
+ case 0:
2327
+ return _context113.abrupt("return", api["delete"]("/models/".concat(id)).then(function (r) {
2328
+ return r.data;
2329
+ }));
2330
+ case 1:
2331
+ case "end":
2332
+ return _context113.stop();
2333
+ }
2334
+ }, _callee113);
2335
+ }));
2336
+ return function (_x182) {
2337
+ return _ref113.apply(this, arguments);
2338
+ };
2339
+ }());
2340
+ _defineProperty(Services, "modelsVisibility", /*#__PURE__*/function () {
2341
+ var _ref114 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee114(data) {
2342
+ return _regeneratorRuntime.wrap(function _callee114$(_context114) {
2343
+ while (1) switch (_context114.prev = _context114.next) {
2344
+ case 0:
2345
+ return _context114.abrupt("return", api.patch("/models/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2346
+ return r.data;
2347
+ }));
2348
+ case 1:
2349
+ case "end":
2350
+ return _context114.stop();
2351
+ }
2352
+ }, _callee114);
2353
+ }));
2354
+ return function (_x183) {
2355
+ return _ref114.apply(this, arguments);
2356
+ };
2357
+ }());
2358
+ // 📄 ownershiptypes
2359
+ _defineProperty(Services, "getOwnershiptype", /*#__PURE__*/function () {
2360
+ var _ref115 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee115(size, page, query, visibility) {
2361
+ var response;
2362
+ return _regeneratorRuntime.wrap(function _callee115$(_context115) {
2363
+ while (1) switch (_context115.prev = _context115.next) {
2364
+ case 0:
2365
+ _context115.next = 2;
2366
+ return api.get("/ownershiptypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
2367
+ case 2:
2368
+ response = _context115.sent;
2369
+ return _context115.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2370
+ case 4:
2371
+ case "end":
2372
+ return _context115.stop();
2373
+ }
2374
+ }, _callee115);
2375
+ }));
2376
+ return function (_x184, _x185, _x186, _x187) {
2377
+ return _ref115.apply(this, arguments);
2378
+ };
2379
+ }());
2380
+ _defineProperty(Services, "getOwnershiptypeAll", /*#__PURE__*/function () {
2381
+ var _ref116 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee116(visibility) {
2382
+ return _regeneratorRuntime.wrap(function _callee116$(_context116) {
2383
+ while (1) switch (_context116.prev = _context116.next) {
2384
+ case 0:
2385
+ return _context116.abrupt("return", api.get("/ownershiptypes?visibility=".concat(visibility)).then(function (r) {
2386
+ return r.data;
2387
+ }));
2388
+ case 1:
2389
+ case "end":
2390
+ return _context116.stop();
2391
+ }
2392
+ }, _callee116);
2393
+ }));
2394
+ return function (_x188) {
2395
+ return _ref116.apply(this, arguments);
2396
+ };
2397
+ }());
2398
+ _defineProperty(Services, "addOwnershiptype", /*#__PURE__*/function () {
2399
+ var _ref117 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee117(value) {
2400
+ return _regeneratorRuntime.wrap(function _callee117$(_context117) {
2401
+ while (1) switch (_context117.prev = _context117.next) {
2402
+ case 0:
2403
+ return _context117.abrupt("return", api.post("/ownershiptypes", value).then(function (r) {
2404
+ return r.data;
2405
+ }));
2406
+ case 1:
2407
+ case "end":
2408
+ return _context117.stop();
2409
+ }
2410
+ }, _callee117);
2411
+ }));
2412
+ return function (_x189) {
2413
+ return _ref117.apply(this, arguments);
2414
+ };
2415
+ }());
2416
+ _defineProperty(Services, "editOwnershiptype", /*#__PURE__*/function () {
2417
+ var _ref118 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee118(value) {
2418
+ return _regeneratorRuntime.wrap(function _callee118$(_context118) {
2419
+ while (1) switch (_context118.prev = _context118.next) {
2420
+ case 0:
2421
+ return _context118.abrupt("return", api.put("/ownershiptypes/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2422
+ return r.data;
2423
+ }));
2424
+ case 1:
2425
+ case "end":
2426
+ return _context118.stop();
2427
+ }
2428
+ }, _callee118);
2429
+ }));
2430
+ return function (_x190) {
2431
+ return _ref118.apply(this, arguments);
2432
+ };
2433
+ }());
2434
+ _defineProperty(Services, "deleteOwnershiptype", /*#__PURE__*/function () {
2435
+ var _ref119 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee119(id) {
2436
+ return _regeneratorRuntime.wrap(function _callee119$(_context119) {
2437
+ while (1) switch (_context119.prev = _context119.next) {
2438
+ case 0:
2439
+ return _context119.abrupt("return", api["delete"]("/ownershiptypes/".concat(id)).then(function (r) {
2440
+ return r.data;
2441
+ }));
2442
+ case 1:
2443
+ case "end":
2444
+ return _context119.stop();
2445
+ }
2446
+ }, _callee119);
2447
+ }));
2448
+ return function (_x191) {
2449
+ return _ref119.apply(this, arguments);
2450
+ };
2451
+ }());
2452
+ _defineProperty(Services, "ownershiptypesVisibility", /*#__PURE__*/function () {
2453
+ var _ref120 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee120(data) {
2454
+ return _regeneratorRuntime.wrap(function _callee120$(_context120) {
2455
+ while (1) switch (_context120.prev = _context120.next) {
2456
+ case 0:
2457
+ return _context120.abrupt("return", api.patch("/ownershiptypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2458
+ return r.data;
2459
+ }));
2460
+ case 1:
2461
+ case "end":
2462
+ return _context120.stop();
2463
+ }
2464
+ }, _callee120);
2465
+ }));
2466
+ return function (_x192) {
2467
+ return _ref120.apply(this, arguments);
2468
+ };
2469
+ }());
2470
+ // 🏢 organisationrecords
2471
+ _defineProperty(Services, "getOrganisationrecords", /*#__PURE__*/function () {
2472
+ var _ref121 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee121(size, page, query, visibility) {
2473
+ var response;
2474
+ return _regeneratorRuntime.wrap(function _callee121$(_context121) {
2475
+ while (1) switch (_context121.prev = _context121.next) {
2476
+ case 0:
2477
+ _context121.next = 2;
2478
+ return api.get("/organisationrecords/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
2479
+ case 2:
2480
+ response = _context121.sent;
2481
+ return _context121.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2482
+ case 4:
2483
+ case "end":
2484
+ return _context121.stop();
2485
+ }
2486
+ }, _callee121);
2487
+ }));
2488
+ return function (_x193, _x194, _x195, _x196) {
2489
+ return _ref121.apply(this, arguments);
2490
+ };
2491
+ }());
2492
+ _defineProperty(Services, "getOrganisationrecordsAll", /*#__PURE__*/function () {
2493
+ var _ref122 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee122(visibility) {
2494
+ return _regeneratorRuntime.wrap(function _callee122$(_context122) {
2495
+ while (1) switch (_context122.prev = _context122.next) {
2496
+ case 0:
2497
+ return _context122.abrupt("return", api.get("/organisationrecords?visibility=".concat(visibility)).then(function (r) {
2498
+ return r.data;
2499
+ }));
2500
+ case 1:
2501
+ case "end":
2502
+ return _context122.stop();
2503
+ }
2504
+ }, _callee122);
2505
+ }));
2506
+ return function (_x197) {
2507
+ return _ref122.apply(this, arguments);
2508
+ };
2509
+ }());
2510
+ _defineProperty(Services, "addOrganisationrecords", /*#__PURE__*/function () {
2511
+ var _ref123 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee123(value) {
2512
+ return _regeneratorRuntime.wrap(function _callee123$(_context123) {
2513
+ while (1) switch (_context123.prev = _context123.next) {
2514
+ case 0:
2515
+ return _context123.abrupt("return", api.post("/organisationrecords", value).then(function (r) {
2516
+ return r.data;
2517
+ }));
2518
+ case 1:
2519
+ case "end":
2520
+ return _context123.stop();
2521
+ }
2522
+ }, _callee123);
2523
+ }));
2524
+ return function (_x198) {
2525
+ return _ref123.apply(this, arguments);
2526
+ };
2527
+ }());
2528
+ _defineProperty(Services, "editOrganisationrecords", /*#__PURE__*/function () {
2529
+ var _ref124 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee124(value) {
2530
+ return _regeneratorRuntime.wrap(function _callee124$(_context124) {
2531
+ while (1) switch (_context124.prev = _context124.next) {
2532
+ case 0:
2533
+ return _context124.abrupt("return", api.put("/organisationrecords/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2534
+ return r.data;
2535
+ }));
2536
+ case 1:
2537
+ case "end":
2538
+ return _context124.stop();
2539
+ }
2540
+ }, _callee124);
2541
+ }));
2542
+ return function (_x199) {
2543
+ return _ref124.apply(this, arguments);
2544
+ };
2545
+ }());
2546
+ _defineProperty(Services, "deleteOrganisationrecords", /*#__PURE__*/function () {
2547
+ var _ref125 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee125(id) {
2548
+ return _regeneratorRuntime.wrap(function _callee125$(_context125) {
2549
+ while (1) switch (_context125.prev = _context125.next) {
2550
+ case 0:
2551
+ return _context125.abrupt("return", api["delete"]("/organisationrecords/".concat(id)).then(function (r) {
2552
+ return r.data;
2553
+ }));
2554
+ case 1:
2555
+ case "end":
2556
+ return _context125.stop();
2557
+ }
2558
+ }, _callee125);
2559
+ }));
2560
+ return function (_x200) {
2561
+ return _ref125.apply(this, arguments);
2562
+ };
2563
+ }());
2564
+ _defineProperty(Services, "organisationrecordsVisibility", /*#__PURE__*/function () {
2565
+ var _ref126 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee126(data) {
2566
+ return _regeneratorRuntime.wrap(function _callee126$(_context126) {
2567
+ while (1) switch (_context126.prev = _context126.next) {
2568
+ case 0:
2569
+ return _context126.abrupt("return", api.patch("/organisationrecords/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2570
+ return r.data;
2571
+ }));
2572
+ case 1:
2573
+ case "end":
2574
+ return _context126.stop();
2575
+ }
2576
+ }, _callee126);
2577
+ }));
2578
+ return function (_x201) {
2579
+ return _ref126.apply(this, arguments);
2580
+ };
2581
+ }());
2582
+ // 📡 transmittertypes
2583
+ _defineProperty(Services, "getTransmittertypes", /*#__PURE__*/function () {
2584
+ var _ref127 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee127(size, page, query, visibility) {
2585
+ var response;
2586
+ return _regeneratorRuntime.wrap(function _callee127$(_context127) {
2587
+ while (1) switch (_context127.prev = _context127.next) {
2588
+ case 0:
2589
+ _context127.next = 2;
2590
+ return api.get("/transmittertypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
2591
+ case 2:
2592
+ response = _context127.sent;
2593
+ return _context127.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2594
+ case 4:
2595
+ case "end":
2596
+ return _context127.stop();
2597
+ }
2598
+ }, _callee127);
2599
+ }));
2600
+ return function (_x202, _x203, _x204, _x205) {
2601
+ return _ref127.apply(this, arguments);
2602
+ };
2603
+ }());
2604
+ _defineProperty(Services, "getTransmittertypesAll", /*#__PURE__*/function () {
2605
+ var _ref128 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee128(visibility) {
2606
+ return _regeneratorRuntime.wrap(function _callee128$(_context128) {
2607
+ while (1) switch (_context128.prev = _context128.next) {
2608
+ case 0:
2609
+ return _context128.abrupt("return", api.get("/transmittertypes?visibility=".concat(visibility)).then(function (r) {
2610
+ return r.data;
2611
+ }));
2612
+ case 1:
2613
+ case "end":
2614
+ return _context128.stop();
2615
+ }
2616
+ }, _callee128);
2617
+ }));
2618
+ return function (_x206) {
2619
+ return _ref128.apply(this, arguments);
2620
+ };
2621
+ }());
2622
+ _defineProperty(Services, "addTransmittertypes", /*#__PURE__*/function () {
2623
+ var _ref129 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee129(value) {
2624
+ return _regeneratorRuntime.wrap(function _callee129$(_context129) {
2625
+ while (1) switch (_context129.prev = _context129.next) {
2626
+ case 0:
2627
+ return _context129.abrupt("return", api.post("/transmittertypes", value).then(function (r) {
2628
+ return r.data;
2629
+ }));
2630
+ case 1:
2631
+ case "end":
2632
+ return _context129.stop();
2633
+ }
2634
+ }, _callee129);
2635
+ }));
2636
+ return function (_x207) {
2637
+ return _ref129.apply(this, arguments);
2638
+ };
2639
+ }());
2640
+ _defineProperty(Services, "editTransmittertypes", /*#__PURE__*/function () {
2641
+ var _ref130 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee130(value) {
2642
+ return _regeneratorRuntime.wrap(function _callee130$(_context130) {
2643
+ while (1) switch (_context130.prev = _context130.next) {
2644
+ case 0:
2645
+ return _context130.abrupt("return", api.put("/transmittertypes/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2646
+ return r.data;
2647
+ }));
2648
+ case 1:
2649
+ case "end":
2650
+ return _context130.stop();
2651
+ }
2652
+ }, _callee130);
2653
+ }));
2654
+ return function (_x208) {
2655
+ return _ref130.apply(this, arguments);
2656
+ };
2657
+ }());
2658
+ _defineProperty(Services, "deleteTransmittertypes", /*#__PURE__*/function () {
2659
+ var _ref131 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee131(id) {
2660
+ return _regeneratorRuntime.wrap(function _callee131$(_context131) {
2661
+ while (1) switch (_context131.prev = _context131.next) {
2662
+ case 0:
2663
+ return _context131.abrupt("return", api["delete"]("/transmittertypes/".concat(id)).then(function (r) {
2664
+ return r.data;
2665
+ }));
2666
+ case 1:
2667
+ case "end":
2668
+ return _context131.stop();
2669
+ }
2670
+ }, _callee131);
2671
+ }));
2672
+ return function (_x209) {
2673
+ return _ref131.apply(this, arguments);
2674
+ };
2675
+ }());
2676
+ _defineProperty(Services, "transmittertypesVisibility", /*#__PURE__*/function () {
2677
+ var _ref132 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee132(data) {
2678
+ return _regeneratorRuntime.wrap(function _callee132$(_context132) {
2679
+ while (1) switch (_context132.prev = _context132.next) {
2680
+ case 0:
2681
+ return _context132.abrupt("return", api.patch("/transmittertypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2682
+ return r.data;
2683
+ }));
2684
+ case 1:
2685
+ case "end":
2686
+ return _context132.stop();
2687
+ }
2688
+ }, _callee132);
2689
+ }));
2690
+ return function (_x210) {
2691
+ return _ref132.apply(this, arguments);
2692
+ };
2693
+ }());
2694
+ // 🚙 vehicles
2695
+ _defineProperty(Services, "getVehicles", /*#__PURE__*/function () {
2696
+ var _ref133 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee133(size, page, query, visibility) {
2697
+ var response;
2698
+ return _regeneratorRuntime.wrap(function _callee133$(_context133) {
2699
+ while (1) switch (_context133.prev = _context133.next) {
2700
+ case 0:
2701
+ _context133.next = 2;
2702
+ return api.get("/vehicles/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
2703
+ case 2:
2704
+ response = _context133.sent;
2705
+ return _context133.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2706
+ case 4:
2707
+ case "end":
2708
+ return _context133.stop();
2709
+ }
2710
+ }, _callee133);
2711
+ }));
2712
+ return function (_x211, _x212, _x213, _x214) {
2713
+ return _ref133.apply(this, arguments);
2714
+ };
2715
+ }());
2716
+ _defineProperty(Services, "getVehiclesAll", /*#__PURE__*/function () {
2717
+ var _ref134 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee134(visibility) {
2718
+ return _regeneratorRuntime.wrap(function _callee134$(_context134) {
2719
+ while (1) switch (_context134.prev = _context134.next) {
2720
+ case 0:
2721
+ return _context134.abrupt("return", api.get("/vehicles?visibility=".concat(visibility)).then(function (r) {
2722
+ return r.data;
2723
+ }));
2724
+ case 1:
2725
+ case "end":
2726
+ return _context134.stop();
2727
+ }
2728
+ }, _callee134);
2729
+ }));
2730
+ return function (_x215) {
2731
+ return _ref134.apply(this, arguments);
2732
+ };
2733
+ }());
2734
+ _defineProperty(Services, "addVehicles", /*#__PURE__*/function () {
2735
+ var _ref135 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee135(value) {
2736
+ return _regeneratorRuntime.wrap(function _callee135$(_context135) {
2737
+ while (1) switch (_context135.prev = _context135.next) {
2738
+ case 0:
2739
+ return _context135.abrupt("return", api.post("/vehicles", value).then(function (r) {
2740
+ return r.data;
2741
+ }));
2742
+ case 1:
2743
+ case "end":
2744
+ return _context135.stop();
2745
+ }
2746
+ }, _callee135);
2747
+ }));
2748
+ return function (_x216) {
2749
+ return _ref135.apply(this, arguments);
2750
+ };
2751
+ }());
2752
+ _defineProperty(Services, "editVehicles", /*#__PURE__*/function () {
2753
+ var _ref136 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee136(value) {
2754
+ return _regeneratorRuntime.wrap(function _callee136$(_context136) {
2755
+ while (1) switch (_context136.prev = _context136.next) {
2756
+ case 0:
2757
+ return _context136.abrupt("return", api.put("/vehicles/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2758
+ return r.data;
2759
+ }));
2760
+ case 1:
2761
+ case "end":
2762
+ return _context136.stop();
2763
+ }
2764
+ }, _callee136);
2765
+ }));
2766
+ return function (_x217) {
2767
+ return _ref136.apply(this, arguments);
2768
+ };
2769
+ }());
2770
+ _defineProperty(Services, "deleteVehicles", /*#__PURE__*/function () {
2771
+ var _ref137 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee137(id) {
2772
+ return _regeneratorRuntime.wrap(function _callee137$(_context137) {
2773
+ while (1) switch (_context137.prev = _context137.next) {
2774
+ case 0:
2775
+ return _context137.abrupt("return", api["delete"]("/vehicles/".concat(id)).then(function (r) {
2776
+ return r.data;
2777
+ }));
2778
+ case 1:
2779
+ case "end":
2780
+ return _context137.stop();
2781
+ }
2782
+ }, _callee137);
2783
+ }));
2784
+ return function (_x218) {
2785
+ return _ref137.apply(this, arguments);
2786
+ };
2787
+ }());
2788
+ _defineProperty(Services, "vehiclesVisibility", /*#__PURE__*/function () {
2789
+ var _ref138 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee138(data) {
2790
+ return _regeneratorRuntime.wrap(function _callee138$(_context138) {
2791
+ while (1) switch (_context138.prev = _context138.next) {
2792
+ case 0:
2793
+ return _context138.abrupt("return", api.patch("/vehicles/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2794
+ return r.data;
2795
+ }));
2796
+ case 1:
2797
+ case "end":
2798
+ return _context138.stop();
2799
+ }
2800
+ }, _callee138);
2801
+ }));
2802
+ return function (_x219) {
2803
+ return _ref138.apply(this, arguments);
2804
+ };
2805
+ }());
2806
+ // 🚘 vehicletypes
2807
+ _defineProperty(Services, "getVehicletypes", /*#__PURE__*/function () {
2808
+ var _ref139 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee139(size, page, query, visibility) {
2809
+ var response;
2810
+ return _regeneratorRuntime.wrap(function _callee139$(_context139) {
2811
+ while (1) switch (_context139.prev = _context139.next) {
2812
+ case 0:
2813
+ _context139.next = 2;
2814
+ return api.get("/vehicletypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
2815
+ case 2:
2816
+ response = _context139.sent;
2817
+ return _context139.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2818
+ case 4:
2819
+ case "end":
2820
+ return _context139.stop();
2821
+ }
2822
+ }, _callee139);
2823
+ }));
2824
+ return function (_x220, _x221, _x222, _x223) {
2825
+ return _ref139.apply(this, arguments);
2826
+ };
2827
+ }());
2828
+ _defineProperty(Services, "getVehicletypesAll", /*#__PURE__*/function () {
2829
+ var _ref140 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee140(visibility) {
2830
+ return _regeneratorRuntime.wrap(function _callee140$(_context140) {
2831
+ while (1) switch (_context140.prev = _context140.next) {
2832
+ case 0:
2833
+ return _context140.abrupt("return", api.get("/vehicletypes?visibility=".concat(visibility)).then(function (r) {
2834
+ return r.data;
2835
+ }));
2836
+ case 1:
2837
+ case "end":
2838
+ return _context140.stop();
2839
+ }
2840
+ }, _callee140);
2841
+ }));
2842
+ return function (_x224) {
2843
+ return _ref140.apply(this, arguments);
2844
+ };
2845
+ }());
2846
+ _defineProperty(Services, "addVehicletypes", /*#__PURE__*/function () {
2847
+ var _ref141 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee141(value) {
2848
+ return _regeneratorRuntime.wrap(function _callee141$(_context141) {
2849
+ while (1) switch (_context141.prev = _context141.next) {
2850
+ case 0:
2851
+ return _context141.abrupt("return", api.post("/vehicletypes", value).then(function (r) {
2852
+ return r.data;
2853
+ }));
2854
+ case 1:
2855
+ case "end":
2856
+ return _context141.stop();
2857
+ }
2858
+ }, _callee141);
2859
+ }));
2860
+ return function (_x225) {
2861
+ return _ref141.apply(this, arguments);
2862
+ };
2863
+ }());
2864
+ _defineProperty(Services, "editVehicletypes", /*#__PURE__*/function () {
2865
+ var _ref142 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee142(value) {
2866
+ return _regeneratorRuntime.wrap(function _callee142$(_context142) {
2867
+ while (1) switch (_context142.prev = _context142.next) {
2868
+ case 0:
2869
+ return _context142.abrupt("return", api.put("/vehicletypes/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2870
+ return r.data;
2871
+ }));
2872
+ case 1:
2873
+ case "end":
2874
+ return _context142.stop();
2875
+ }
2876
+ }, _callee142);
2877
+ }));
2878
+ return function (_x226) {
2879
+ return _ref142.apply(this, arguments);
2880
+ };
2881
+ }());
2882
+ _defineProperty(Services, "deleteVehicletypes", /*#__PURE__*/function () {
2883
+ var _ref143 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee143(id) {
2884
+ return _regeneratorRuntime.wrap(function _callee143$(_context143) {
2885
+ while (1) switch (_context143.prev = _context143.next) {
2886
+ case 0:
2887
+ return _context143.abrupt("return", api["delete"]("/vehicletypes/".concat(id)).then(function (r) {
2888
+ return r.data;
2889
+ }));
2890
+ case 1:
2891
+ case "end":
2892
+ return _context143.stop();
2893
+ }
2894
+ }, _callee143);
2895
+ }));
2896
+ return function (_x227) {
2897
+ return _ref143.apply(this, arguments);
2898
+ };
2899
+ }());
2900
+ _defineProperty(Services, "vehicletypesVisibility", /*#__PURE__*/function () {
2901
+ var _ref144 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee144(data) {
2902
+ return _regeneratorRuntime.wrap(function _callee144$(_context144) {
2903
+ while (1) switch (_context144.prev = _context144.next) {
2904
+ case 0:
2905
+ return _context144.abrupt("return", api.patch("/vehicletypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
2906
+ return r.data;
2907
+ }));
2908
+ case 1:
2909
+ case "end":
2910
+ return _context144.stop();
2911
+ }
2912
+ }, _callee144);
2913
+ }));
2914
+ return function (_x228) {
2915
+ return _ref144.apply(this, arguments);
2916
+ };
2917
+ }());
2918
+ // 📋 vrcs
2919
+ _defineProperty(Services, "getVrcs", /*#__PURE__*/function () {
2920
+ var _ref145 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee145(size, page, query, visibility) {
2921
+ var response;
2922
+ return _regeneratorRuntime.wrap(function _callee145$(_context145) {
2923
+ while (1) switch (_context145.prev = _context145.next) {
2924
+ case 0:
2925
+ _context145.next = 2;
2926
+ return api.get("/vrcs/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
2927
+ case 2:
2928
+ response = _context145.sent;
2929
+ return _context145.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
2930
+ case 4:
2931
+ case "end":
2932
+ return _context145.stop();
2933
+ }
2934
+ }, _callee145);
2935
+ }));
2936
+ return function (_x229, _x230, _x231, _x232) {
2937
+ return _ref145.apply(this, arguments);
2938
+ };
2939
+ }());
2940
+ _defineProperty(Services, "getVrcsAll", /*#__PURE__*/function () {
2941
+ var _ref146 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee146(visibility) {
2942
+ return _regeneratorRuntime.wrap(function _callee146$(_context146) {
2943
+ while (1) switch (_context146.prev = _context146.next) {
2944
+ case 0:
2945
+ return _context146.abrupt("return", api.get("/vrcs?visibility=".concat(visibility)).then(function (r) {
2946
+ return r.data;
2947
+ }));
2948
+ case 1:
2949
+ case "end":
2950
+ return _context146.stop();
2951
+ }
2952
+ }, _callee146);
2953
+ }));
2954
+ return function (_x233) {
2955
+ return _ref146.apply(this, arguments);
2956
+ };
2957
+ }());
2958
+ _defineProperty(Services, "addVrcs", /*#__PURE__*/function () {
2959
+ var _ref147 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee147(value) {
2960
+ return _regeneratorRuntime.wrap(function _callee147$(_context147) {
2961
+ while (1) switch (_context147.prev = _context147.next) {
2962
+ case 0:
2963
+ return _context147.abrupt("return", api.post("/vrcs", value).then(function (r) {
2964
+ return r.data;
2965
+ }));
2966
+ case 1:
2967
+ case "end":
2968
+ return _context147.stop();
2969
+ }
2970
+ }, _callee147);
2971
+ }));
2972
+ return function (_x234) {
2973
+ return _ref147.apply(this, arguments);
2974
+ };
2975
+ }());
2976
+ _defineProperty(Services, "editVrcs", /*#__PURE__*/function () {
2977
+ var _ref148 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee148(value) {
2978
+ return _regeneratorRuntime.wrap(function _callee148$(_context148) {
2979
+ while (1) switch (_context148.prev = _context148.next) {
2980
+ case 0:
2981
+ return _context148.abrupt("return", api.put("/vrcs/".concat(value === null || value === void 0 ? void 0 : value.id), value).then(function (r) {
2982
+ return r.data;
2983
+ }));
2984
+ case 1:
2985
+ case "end":
2986
+ return _context148.stop();
2987
+ }
2988
+ }, _callee148);
2989
+ }));
2990
+ return function (_x235) {
2991
+ return _ref148.apply(this, arguments);
2992
+ };
2993
+ }());
2994
+ _defineProperty(Services, "deleteVrcs", /*#__PURE__*/function () {
2995
+ var _ref149 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee149(id) {
2996
+ return _regeneratorRuntime.wrap(function _callee149$(_context149) {
2997
+ while (1) switch (_context149.prev = _context149.next) {
2998
+ case 0:
2999
+ return _context149.abrupt("return", api["delete"]("/vrcs/".concat(id)).then(function (r) {
3000
+ return r.data;
3001
+ }));
3002
+ case 1:
3003
+ case "end":
3004
+ return _context149.stop();
3005
+ }
3006
+ }, _callee149);
3007
+ }));
3008
+ return function (_x236) {
3009
+ return _ref149.apply(this, arguments);
3010
+ };
3011
+ }());
3012
+ _defineProperty(Services, "vrcsVisibility", /*#__PURE__*/function () {
3013
+ var _ref150 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee150(data) {
3014
+ return _regeneratorRuntime.wrap(function _callee150$(_context150) {
3015
+ while (1) switch (_context150.prev = _context150.next) {
3016
+ case 0:
3017
+ return _context150.abrupt("return", api.patch("/vrcs/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)).then(function (r) {
3018
+ return r.data;
3019
+ }));
3020
+ case 1:
3021
+ case "end":
3022
+ return _context150.stop();
3023
+ }
3024
+ }, _callee150);
3025
+ }));
3026
+ return function (_x237) {
3027
+ return _ref150.apply(this, arguments);
3028
+ };
3029
+ }());
1557
3030
  export default Services;