@banch0u/core-project-test-repository 1.9.0 → 1.9.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/assets/css/antd.css +3 -3
- package/dist/assets/css/variables.css +2 -0
- package/dist/components/Button/index.module.scss +5 -5
- package/dist/components/ColSort/index.module.scss +22 -0
- package/dist/components/Input/index.js +35 -6
- package/dist/components/Input/index.module.scss +45 -22
- package/dist/components/Select/index.js +47 -61
- package/dist/components/Select/index.module.scss +32 -0
- package/dist/components/ViewMoreModal/index.js +30 -0
- package/dist/layout/QuestionnairesLayout/index.module.scss +3 -0
- package/dist/layout/QuestionnairesSidebar/index.js +147 -19
- package/dist/layout/QuestionnairesSidebar/index.module.scss +4 -3
- package/dist/pages/Questionnnaires/Questionnaires.module.scss +4 -3
- package/dist/pages/Questionnnaires/{QuestionnairesStreetsContent → QuestionnairesAcademicdegreesContent}/constant.js +1 -1
- package/dist/pages/Questionnnaires/QuestionnairesAcademicdegreesContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesAreasContent/constant.js +63 -0
- package/dist/pages/Questionnnaires/QuestionnairesAreasContent/index.js +271 -0
- package/dist/pages/Questionnnaires/QuestionnairesBrandsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/{QuestionnairesStreetsContent → QuestionnairesBrandsContent}/index.js +35 -28
- package/dist/pages/Questionnnaires/QuestionnairesCategoriesContent/constant.js +69 -0
- package/dist/pages/Questionnnaires/QuestionnairesCategoriesContent/index.js +304 -0
- package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesChassisTypesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesColorsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesColorsContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesCompaniesContent/constant.js +62 -0
- package/dist/pages/Questionnnaires/QuestionnairesCompaniesContent/index.js +278 -0
- package/dist/pages/Questionnnaires/QuestionnairesDisabilitystatusesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesDisabilitystatusesContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesDocumentTypeContent/constant.js +1 -1
- package/dist/pages/Questionnnaires/QuestionnairesDrivingcategoriesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesDrivingcategoriesContent/index.js +250 -0
- package/dist/pages/Questionnnaires/QuestionnairesEducationinstitutionsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesEducationinstitutionsContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesEducationlevelsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesEducationlevelsContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesEducationpaymentsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesEducationpaymentsContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesEngineTypesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesGearboxTypesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructurestatusesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructurestatusesContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructuretypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesGeneralstructuretypesContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesHallsContent/constant.js +67 -0
- package/dist/pages/Questionnnaires/QuestionnairesHallsContent/index.js +294 -0
- package/dist/pages/Questionnnaires/QuestionnairesHonorarytitlesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesHonorarytitlesContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesIssuedAuthoritiesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesMilitarycategoriesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesMilitarycategoriesContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesMilitarygroupsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesMilitarygroupsContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesMilitaryranksContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesMilitaryranksContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesMilitarystaffsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesMilitarystaffsContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesModelsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesModelsContent/index.js +290 -0
- package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesOwnershipTypesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesPositionsContent/constant.js +72 -0
- package/dist/pages/Questionnnaires/QuestionnairesPositionsContent/index.js +428 -0
- package/dist/pages/Questionnnaires/QuestionnairesRegionsContent/constant.js +68 -0
- package/dist/pages/Questionnnaires/QuestionnairesRegionsContent/index.js +320 -0
- package/dist/pages/Questionnnaires/QuestionnairesReprimandtypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesReprimandtypesContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesSpecialdaysContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesSpecialdaysContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesSpecializationsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesSpecializationsContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesTransmitterTypesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesVehicleTypesContent/index.js +247 -0
- package/dist/pages/Questionnnaires/QuestionnairesWarparticipantsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesWarparticipantsContent/index.js +269 -0
- package/dist/pages/Questionnnaires/QuestionnairesWorkschedulesContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesWorkschedulesContent/index.js +269 -0
- package/dist/routes/QuestionnaireRoutes.js +250 -19
- package/dist/store/slices/global/index.js +225 -3
- package/dist/store/slices/questionnaire/index.js +7592 -47
- package/dist/store/slices/questionnaire/service.js +3921 -2
- package/dist/utils/path.js +82 -15
- 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,3923 @@ _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
|
+
}());
|
|
3030
|
+
_defineProperty(Services, "getAcademicdegrees", /*#__PURE__*/function () {
|
|
3031
|
+
var _ref151 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee151(size, page, query, visibility) {
|
|
3032
|
+
return _regeneratorRuntime.wrap(function _callee151$(_context151) {
|
|
3033
|
+
while (1) switch (_context151.prev = _context151.next) {
|
|
3034
|
+
case 0:
|
|
3035
|
+
return _context151.abrupt("return", api.get("/academicdegrees/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name)));
|
|
3036
|
+
case 1:
|
|
3037
|
+
case "end":
|
|
3038
|
+
return _context151.stop();
|
|
3039
|
+
}
|
|
3040
|
+
}, _callee151);
|
|
3041
|
+
}));
|
|
3042
|
+
return function (_x238, _x239, _x240, _x241) {
|
|
3043
|
+
return _ref151.apply(this, arguments);
|
|
3044
|
+
};
|
|
3045
|
+
}());
|
|
3046
|
+
_defineProperty(Services, "getAcademicdegreesAll", /*#__PURE__*/function () {
|
|
3047
|
+
var _ref152 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee152(visibility) {
|
|
3048
|
+
return _regeneratorRuntime.wrap(function _callee152$(_context152) {
|
|
3049
|
+
while (1) switch (_context152.prev = _context152.next) {
|
|
3050
|
+
case 0:
|
|
3051
|
+
return _context152.abrupt("return", api.get("/academicdegrees?visibility=".concat(visibility)));
|
|
3052
|
+
case 1:
|
|
3053
|
+
case "end":
|
|
3054
|
+
return _context152.stop();
|
|
3055
|
+
}
|
|
3056
|
+
}, _callee152);
|
|
3057
|
+
}));
|
|
3058
|
+
return function (_x242) {
|
|
3059
|
+
return _ref152.apply(this, arguments);
|
|
3060
|
+
};
|
|
3061
|
+
}());
|
|
3062
|
+
_defineProperty(Services, "addAcademicdegrees", /*#__PURE__*/function () {
|
|
3063
|
+
var _ref153 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee153(value) {
|
|
3064
|
+
return _regeneratorRuntime.wrap(function _callee153$(_context153) {
|
|
3065
|
+
while (1) switch (_context153.prev = _context153.next) {
|
|
3066
|
+
case 0:
|
|
3067
|
+
return _context153.abrupt("return", api.post("/academicdegrees", value));
|
|
3068
|
+
case 1:
|
|
3069
|
+
case "end":
|
|
3070
|
+
return _context153.stop();
|
|
3071
|
+
}
|
|
3072
|
+
}, _callee153);
|
|
3073
|
+
}));
|
|
3074
|
+
return function (_x243) {
|
|
3075
|
+
return _ref153.apply(this, arguments);
|
|
3076
|
+
};
|
|
3077
|
+
}());
|
|
3078
|
+
_defineProperty(Services, "editAcademicdegrees", /*#__PURE__*/function () {
|
|
3079
|
+
var _ref154 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee154(value) {
|
|
3080
|
+
return _regeneratorRuntime.wrap(function _callee154$(_context154) {
|
|
3081
|
+
while (1) switch (_context154.prev = _context154.next) {
|
|
3082
|
+
case 0:
|
|
3083
|
+
return _context154.abrupt("return", api.put("/academicdegrees/".concat(value === null || value === void 0 ? void 0 : value.id), value));
|
|
3084
|
+
case 1:
|
|
3085
|
+
case "end":
|
|
3086
|
+
return _context154.stop();
|
|
3087
|
+
}
|
|
3088
|
+
}, _callee154);
|
|
3089
|
+
}));
|
|
3090
|
+
return function (_x244) {
|
|
3091
|
+
return _ref154.apply(this, arguments);
|
|
3092
|
+
};
|
|
3093
|
+
}());
|
|
3094
|
+
_defineProperty(Services, "deleteAcademicdegrees", /*#__PURE__*/function () {
|
|
3095
|
+
var _ref155 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee155(id) {
|
|
3096
|
+
return _regeneratorRuntime.wrap(function _callee155$(_context155) {
|
|
3097
|
+
while (1) switch (_context155.prev = _context155.next) {
|
|
3098
|
+
case 0:
|
|
3099
|
+
return _context155.abrupt("return", api["delete"]("/academicdegrees/".concat(id)));
|
|
3100
|
+
case 1:
|
|
3101
|
+
case "end":
|
|
3102
|
+
return _context155.stop();
|
|
3103
|
+
}
|
|
3104
|
+
}, _callee155);
|
|
3105
|
+
}));
|
|
3106
|
+
return function (_x245) {
|
|
3107
|
+
return _ref155.apply(this, arguments);
|
|
3108
|
+
};
|
|
3109
|
+
}());
|
|
3110
|
+
_defineProperty(Services, "academicdegreesVisibility", /*#__PURE__*/function () {
|
|
3111
|
+
var _ref156 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee156(data) {
|
|
3112
|
+
return _regeneratorRuntime.wrap(function _callee156$(_context156) {
|
|
3113
|
+
while (1) switch (_context156.prev = _context156.next) {
|
|
3114
|
+
case 0:
|
|
3115
|
+
return _context156.abrupt("return", api.patch("/academicdegrees/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)));
|
|
3116
|
+
case 1:
|
|
3117
|
+
case "end":
|
|
3118
|
+
return _context156.stop();
|
|
3119
|
+
}
|
|
3120
|
+
}, _callee156);
|
|
3121
|
+
}));
|
|
3122
|
+
return function (_x246) {
|
|
3123
|
+
return _ref156.apply(this, arguments);
|
|
3124
|
+
};
|
|
3125
|
+
}());
|
|
3126
|
+
_defineProperty(Services, "getDisabilitystatuses", /*#__PURE__*/function () {
|
|
3127
|
+
var _ref157 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee157(size, page, query, visibility) {
|
|
3128
|
+
return _regeneratorRuntime.wrap(function _callee157$(_context157) {
|
|
3129
|
+
while (1) switch (_context157.prev = _context157.next) {
|
|
3130
|
+
case 0:
|
|
3131
|
+
return _context157.abrupt("return", api.get("/disabilitystatuses/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name)));
|
|
3132
|
+
case 1:
|
|
3133
|
+
case "end":
|
|
3134
|
+
return _context157.stop();
|
|
3135
|
+
}
|
|
3136
|
+
}, _callee157);
|
|
3137
|
+
}));
|
|
3138
|
+
return function (_x247, _x248, _x249, _x250) {
|
|
3139
|
+
return _ref157.apply(this, arguments);
|
|
3140
|
+
};
|
|
3141
|
+
}());
|
|
3142
|
+
_defineProperty(Services, "getDisabilitystatusesAll", /*#__PURE__*/function () {
|
|
3143
|
+
var _ref158 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee158(visibility) {
|
|
3144
|
+
return _regeneratorRuntime.wrap(function _callee158$(_context158) {
|
|
3145
|
+
while (1) switch (_context158.prev = _context158.next) {
|
|
3146
|
+
case 0:
|
|
3147
|
+
return _context158.abrupt("return", api.get("/disabilitystatuses?visibility=".concat(visibility)));
|
|
3148
|
+
case 1:
|
|
3149
|
+
case "end":
|
|
3150
|
+
return _context158.stop();
|
|
3151
|
+
}
|
|
3152
|
+
}, _callee158);
|
|
3153
|
+
}));
|
|
3154
|
+
return function (_x251) {
|
|
3155
|
+
return _ref158.apply(this, arguments);
|
|
3156
|
+
};
|
|
3157
|
+
}());
|
|
3158
|
+
_defineProperty(Services, "addDisabilitystatuses", /*#__PURE__*/function () {
|
|
3159
|
+
var _ref159 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee159(value) {
|
|
3160
|
+
return _regeneratorRuntime.wrap(function _callee159$(_context159) {
|
|
3161
|
+
while (1) switch (_context159.prev = _context159.next) {
|
|
3162
|
+
case 0:
|
|
3163
|
+
return _context159.abrupt("return", api.post("/disabilitystatuses", value));
|
|
3164
|
+
case 1:
|
|
3165
|
+
case "end":
|
|
3166
|
+
return _context159.stop();
|
|
3167
|
+
}
|
|
3168
|
+
}, _callee159);
|
|
3169
|
+
}));
|
|
3170
|
+
return function (_x252) {
|
|
3171
|
+
return _ref159.apply(this, arguments);
|
|
3172
|
+
};
|
|
3173
|
+
}());
|
|
3174
|
+
_defineProperty(Services, "editDisabilitystatuses", /*#__PURE__*/function () {
|
|
3175
|
+
var _ref160 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee160(value) {
|
|
3176
|
+
return _regeneratorRuntime.wrap(function _callee160$(_context160) {
|
|
3177
|
+
while (1) switch (_context160.prev = _context160.next) {
|
|
3178
|
+
case 0:
|
|
3179
|
+
return _context160.abrupt("return", api.put("/disabilitystatuses/".concat(value === null || value === void 0 ? void 0 : value.id), value));
|
|
3180
|
+
case 1:
|
|
3181
|
+
case "end":
|
|
3182
|
+
return _context160.stop();
|
|
3183
|
+
}
|
|
3184
|
+
}, _callee160);
|
|
3185
|
+
}));
|
|
3186
|
+
return function (_x253) {
|
|
3187
|
+
return _ref160.apply(this, arguments);
|
|
3188
|
+
};
|
|
3189
|
+
}());
|
|
3190
|
+
_defineProperty(Services, "deleteDisabilitystatuses", /*#__PURE__*/function () {
|
|
3191
|
+
var _ref161 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee161(id) {
|
|
3192
|
+
return _regeneratorRuntime.wrap(function _callee161$(_context161) {
|
|
3193
|
+
while (1) switch (_context161.prev = _context161.next) {
|
|
3194
|
+
case 0:
|
|
3195
|
+
return _context161.abrupt("return", api["delete"]("/disabilitystatuses/".concat(id)));
|
|
3196
|
+
case 1:
|
|
3197
|
+
case "end":
|
|
3198
|
+
return _context161.stop();
|
|
3199
|
+
}
|
|
3200
|
+
}, _callee161);
|
|
3201
|
+
}));
|
|
3202
|
+
return function (_x254) {
|
|
3203
|
+
return _ref161.apply(this, arguments);
|
|
3204
|
+
};
|
|
3205
|
+
}());
|
|
3206
|
+
_defineProperty(Services, "disabilitystatusesVisibility", /*#__PURE__*/function () {
|
|
3207
|
+
var _ref162 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee162(data) {
|
|
3208
|
+
return _regeneratorRuntime.wrap(function _callee162$(_context162) {
|
|
3209
|
+
while (1) switch (_context162.prev = _context162.next) {
|
|
3210
|
+
case 0:
|
|
3211
|
+
return _context162.abrupt("return", api.patch("/disabilitystatuses/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)));
|
|
3212
|
+
case 1:
|
|
3213
|
+
case "end":
|
|
3214
|
+
return _context162.stop();
|
|
3215
|
+
}
|
|
3216
|
+
}, _callee162);
|
|
3217
|
+
}));
|
|
3218
|
+
return function (_x255) {
|
|
3219
|
+
return _ref162.apply(this, arguments);
|
|
3220
|
+
};
|
|
3221
|
+
}());
|
|
3222
|
+
_defineProperty(Services, "getHonorarytitles", /*#__PURE__*/function () {
|
|
3223
|
+
var _ref163 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee163(size, page, query, visibility) {
|
|
3224
|
+
return _regeneratorRuntime.wrap(function _callee163$(_context163) {
|
|
3225
|
+
while (1) switch (_context163.prev = _context163.next) {
|
|
3226
|
+
case 0:
|
|
3227
|
+
return _context163.abrupt("return", api.get("/honorarytitles/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name)));
|
|
3228
|
+
case 1:
|
|
3229
|
+
case "end":
|
|
3230
|
+
return _context163.stop();
|
|
3231
|
+
}
|
|
3232
|
+
}, _callee163);
|
|
3233
|
+
}));
|
|
3234
|
+
return function (_x256, _x257, _x258, _x259) {
|
|
3235
|
+
return _ref163.apply(this, arguments);
|
|
3236
|
+
};
|
|
3237
|
+
}());
|
|
3238
|
+
_defineProperty(Services, "getHonorarytitlesAll", /*#__PURE__*/function () {
|
|
3239
|
+
var _ref164 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee164(visibility) {
|
|
3240
|
+
return _regeneratorRuntime.wrap(function _callee164$(_context164) {
|
|
3241
|
+
while (1) switch (_context164.prev = _context164.next) {
|
|
3242
|
+
case 0:
|
|
3243
|
+
return _context164.abrupt("return", api.get("/honorarytitles?visibility=".concat(visibility)));
|
|
3244
|
+
case 1:
|
|
3245
|
+
case "end":
|
|
3246
|
+
return _context164.stop();
|
|
3247
|
+
}
|
|
3248
|
+
}, _callee164);
|
|
3249
|
+
}));
|
|
3250
|
+
return function (_x260) {
|
|
3251
|
+
return _ref164.apply(this, arguments);
|
|
3252
|
+
};
|
|
3253
|
+
}());
|
|
3254
|
+
_defineProperty(Services, "addHonorarytitles", /*#__PURE__*/function () {
|
|
3255
|
+
var _ref165 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee165(value) {
|
|
3256
|
+
return _regeneratorRuntime.wrap(function _callee165$(_context165) {
|
|
3257
|
+
while (1) switch (_context165.prev = _context165.next) {
|
|
3258
|
+
case 0:
|
|
3259
|
+
return _context165.abrupt("return", api.post("/honorarytitles", value));
|
|
3260
|
+
case 1:
|
|
3261
|
+
case "end":
|
|
3262
|
+
return _context165.stop();
|
|
3263
|
+
}
|
|
3264
|
+
}, _callee165);
|
|
3265
|
+
}));
|
|
3266
|
+
return function (_x261) {
|
|
3267
|
+
return _ref165.apply(this, arguments);
|
|
3268
|
+
};
|
|
3269
|
+
}());
|
|
3270
|
+
_defineProperty(Services, "editHonorarytitles", /*#__PURE__*/function () {
|
|
3271
|
+
var _ref166 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee166(value) {
|
|
3272
|
+
return _regeneratorRuntime.wrap(function _callee166$(_context166) {
|
|
3273
|
+
while (1) switch (_context166.prev = _context166.next) {
|
|
3274
|
+
case 0:
|
|
3275
|
+
return _context166.abrupt("return", api.put("/honorarytitles/".concat(value === null || value === void 0 ? void 0 : value.id), value));
|
|
3276
|
+
case 1:
|
|
3277
|
+
case "end":
|
|
3278
|
+
return _context166.stop();
|
|
3279
|
+
}
|
|
3280
|
+
}, _callee166);
|
|
3281
|
+
}));
|
|
3282
|
+
return function (_x262) {
|
|
3283
|
+
return _ref166.apply(this, arguments);
|
|
3284
|
+
};
|
|
3285
|
+
}());
|
|
3286
|
+
_defineProperty(Services, "deleteHonorarytitles", /*#__PURE__*/function () {
|
|
3287
|
+
var _ref167 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee167(id) {
|
|
3288
|
+
return _regeneratorRuntime.wrap(function _callee167$(_context167) {
|
|
3289
|
+
while (1) switch (_context167.prev = _context167.next) {
|
|
3290
|
+
case 0:
|
|
3291
|
+
return _context167.abrupt("return", api["delete"]("/honorarytitles/".concat(id)));
|
|
3292
|
+
case 1:
|
|
3293
|
+
case "end":
|
|
3294
|
+
return _context167.stop();
|
|
3295
|
+
}
|
|
3296
|
+
}, _callee167);
|
|
3297
|
+
}));
|
|
3298
|
+
return function (_x263) {
|
|
3299
|
+
return _ref167.apply(this, arguments);
|
|
3300
|
+
};
|
|
3301
|
+
}());
|
|
3302
|
+
_defineProperty(Services, "honorarytitlesVisibility", /*#__PURE__*/function () {
|
|
3303
|
+
var _ref168 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee168(data) {
|
|
3304
|
+
return _regeneratorRuntime.wrap(function _callee168$(_context168) {
|
|
3305
|
+
while (1) switch (_context168.prev = _context168.next) {
|
|
3306
|
+
case 0:
|
|
3307
|
+
return _context168.abrupt("return", api.patch("/honorarytitles/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)));
|
|
3308
|
+
case 1:
|
|
3309
|
+
case "end":
|
|
3310
|
+
return _context168.stop();
|
|
3311
|
+
}
|
|
3312
|
+
}, _callee168);
|
|
3313
|
+
}));
|
|
3314
|
+
return function (_x264) {
|
|
3315
|
+
return _ref168.apply(this, arguments);
|
|
3316
|
+
};
|
|
3317
|
+
}());
|
|
3318
|
+
_defineProperty(Services, "getMilitarystaffs", /*#__PURE__*/function () {
|
|
3319
|
+
var _ref169 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee169(size, page, query, visibility) {
|
|
3320
|
+
return _regeneratorRuntime.wrap(function _callee169$(_context169) {
|
|
3321
|
+
while (1) switch (_context169.prev = _context169.next) {
|
|
3322
|
+
case 0:
|
|
3323
|
+
return _context169.abrupt("return", api.get("/militaryStaffs/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name)));
|
|
3324
|
+
case 1:
|
|
3325
|
+
case "end":
|
|
3326
|
+
return _context169.stop();
|
|
3327
|
+
}
|
|
3328
|
+
}, _callee169);
|
|
3329
|
+
}));
|
|
3330
|
+
return function (_x265, _x266, _x267, _x268) {
|
|
3331
|
+
return _ref169.apply(this, arguments);
|
|
3332
|
+
};
|
|
3333
|
+
}());
|
|
3334
|
+
_defineProperty(Services, "getMilitarystaffsAll", /*#__PURE__*/function () {
|
|
3335
|
+
var _ref170 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee170(visibility) {
|
|
3336
|
+
return _regeneratorRuntime.wrap(function _callee170$(_context170) {
|
|
3337
|
+
while (1) switch (_context170.prev = _context170.next) {
|
|
3338
|
+
case 0:
|
|
3339
|
+
return _context170.abrupt("return", api.get("/militaryStaffs?visibility=".concat(visibility)));
|
|
3340
|
+
case 1:
|
|
3341
|
+
case "end":
|
|
3342
|
+
return _context170.stop();
|
|
3343
|
+
}
|
|
3344
|
+
}, _callee170);
|
|
3345
|
+
}));
|
|
3346
|
+
return function (_x269) {
|
|
3347
|
+
return _ref170.apply(this, arguments);
|
|
3348
|
+
};
|
|
3349
|
+
}());
|
|
3350
|
+
_defineProperty(Services, "addMilitarystaffs", /*#__PURE__*/function () {
|
|
3351
|
+
var _ref171 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee171(value) {
|
|
3352
|
+
return _regeneratorRuntime.wrap(function _callee171$(_context171) {
|
|
3353
|
+
while (1) switch (_context171.prev = _context171.next) {
|
|
3354
|
+
case 0:
|
|
3355
|
+
return _context171.abrupt("return", api.post("/militaryStaffs", value));
|
|
3356
|
+
case 1:
|
|
3357
|
+
case "end":
|
|
3358
|
+
return _context171.stop();
|
|
3359
|
+
}
|
|
3360
|
+
}, _callee171);
|
|
3361
|
+
}));
|
|
3362
|
+
return function (_x270) {
|
|
3363
|
+
return _ref171.apply(this, arguments);
|
|
3364
|
+
};
|
|
3365
|
+
}());
|
|
3366
|
+
_defineProperty(Services, "editMilitarystaffs", /*#__PURE__*/function () {
|
|
3367
|
+
var _ref172 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee172(value) {
|
|
3368
|
+
return _regeneratorRuntime.wrap(function _callee172$(_context172) {
|
|
3369
|
+
while (1) switch (_context172.prev = _context172.next) {
|
|
3370
|
+
case 0:
|
|
3371
|
+
return _context172.abrupt("return", api.put("/militaryStaffs/".concat(value === null || value === void 0 ? void 0 : value.id), value));
|
|
3372
|
+
case 1:
|
|
3373
|
+
case "end":
|
|
3374
|
+
return _context172.stop();
|
|
3375
|
+
}
|
|
3376
|
+
}, _callee172);
|
|
3377
|
+
}));
|
|
3378
|
+
return function (_x271) {
|
|
3379
|
+
return _ref172.apply(this, arguments);
|
|
3380
|
+
};
|
|
3381
|
+
}());
|
|
3382
|
+
_defineProperty(Services, "deleteMilitarystaffs", /*#__PURE__*/function () {
|
|
3383
|
+
var _ref173 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee173(id) {
|
|
3384
|
+
return _regeneratorRuntime.wrap(function _callee173$(_context173) {
|
|
3385
|
+
while (1) switch (_context173.prev = _context173.next) {
|
|
3386
|
+
case 0:
|
|
3387
|
+
return _context173.abrupt("return", api["delete"]("/militaryStaffs/".concat(id)));
|
|
3388
|
+
case 1:
|
|
3389
|
+
case "end":
|
|
3390
|
+
return _context173.stop();
|
|
3391
|
+
}
|
|
3392
|
+
}, _callee173);
|
|
3393
|
+
}));
|
|
3394
|
+
return function (_x272) {
|
|
3395
|
+
return _ref173.apply(this, arguments);
|
|
3396
|
+
};
|
|
3397
|
+
}());
|
|
3398
|
+
_defineProperty(Services, "militaryStaffsVisibility", /*#__PURE__*/function () {
|
|
3399
|
+
var _ref174 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee174(data) {
|
|
3400
|
+
return _regeneratorRuntime.wrap(function _callee174$(_context174) {
|
|
3401
|
+
while (1) switch (_context174.prev = _context174.next) {
|
|
3402
|
+
case 0:
|
|
3403
|
+
return _context174.abrupt("return", api.patch("/militaryStaffs/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)));
|
|
3404
|
+
case 1:
|
|
3405
|
+
case "end":
|
|
3406
|
+
return _context174.stop();
|
|
3407
|
+
}
|
|
3408
|
+
}, _callee174);
|
|
3409
|
+
}));
|
|
3410
|
+
return function (_x273) {
|
|
3411
|
+
return _ref174.apply(this, arguments);
|
|
3412
|
+
};
|
|
3413
|
+
}());
|
|
3414
|
+
_defineProperty(Services, "getMilitarycategories", /*#__PURE__*/function () {
|
|
3415
|
+
var _ref175 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee175(size, page, query, visibility) {
|
|
3416
|
+
return _regeneratorRuntime.wrap(function _callee175$(_context175) {
|
|
3417
|
+
while (1) switch (_context175.prev = _context175.next) {
|
|
3418
|
+
case 0:
|
|
3419
|
+
return _context175.abrupt("return", api.get("/militaryCategories/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name)));
|
|
3420
|
+
case 1:
|
|
3421
|
+
case "end":
|
|
3422
|
+
return _context175.stop();
|
|
3423
|
+
}
|
|
3424
|
+
}, _callee175);
|
|
3425
|
+
}));
|
|
3426
|
+
return function (_x274, _x275, _x276, _x277) {
|
|
3427
|
+
return _ref175.apply(this, arguments);
|
|
3428
|
+
};
|
|
3429
|
+
}());
|
|
3430
|
+
_defineProperty(Services, "getMilitarycategoriesAll", /*#__PURE__*/function () {
|
|
3431
|
+
var _ref176 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee176(visibility) {
|
|
3432
|
+
return _regeneratorRuntime.wrap(function _callee176$(_context176) {
|
|
3433
|
+
while (1) switch (_context176.prev = _context176.next) {
|
|
3434
|
+
case 0:
|
|
3435
|
+
return _context176.abrupt("return", api.get("/militaryCategories?visibility=".concat(visibility)));
|
|
3436
|
+
case 1:
|
|
3437
|
+
case "end":
|
|
3438
|
+
return _context176.stop();
|
|
3439
|
+
}
|
|
3440
|
+
}, _callee176);
|
|
3441
|
+
}));
|
|
3442
|
+
return function (_x278) {
|
|
3443
|
+
return _ref176.apply(this, arguments);
|
|
3444
|
+
};
|
|
3445
|
+
}());
|
|
3446
|
+
_defineProperty(Services, "addMilitarycategories", /*#__PURE__*/function () {
|
|
3447
|
+
var _ref177 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee177(value) {
|
|
3448
|
+
return _regeneratorRuntime.wrap(function _callee177$(_context177) {
|
|
3449
|
+
while (1) switch (_context177.prev = _context177.next) {
|
|
3450
|
+
case 0:
|
|
3451
|
+
return _context177.abrupt("return", api.post("/militaryCategories", value));
|
|
3452
|
+
case 1:
|
|
3453
|
+
case "end":
|
|
3454
|
+
return _context177.stop();
|
|
3455
|
+
}
|
|
3456
|
+
}, _callee177);
|
|
3457
|
+
}));
|
|
3458
|
+
return function (_x279) {
|
|
3459
|
+
return _ref177.apply(this, arguments);
|
|
3460
|
+
};
|
|
3461
|
+
}());
|
|
3462
|
+
_defineProperty(Services, "editMilitarycategories", /*#__PURE__*/function () {
|
|
3463
|
+
var _ref178 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee178(value) {
|
|
3464
|
+
return _regeneratorRuntime.wrap(function _callee178$(_context178) {
|
|
3465
|
+
while (1) switch (_context178.prev = _context178.next) {
|
|
3466
|
+
case 0:
|
|
3467
|
+
return _context178.abrupt("return", api.put("/militaryCategories/".concat(value === null || value === void 0 ? void 0 : value.id), value));
|
|
3468
|
+
case 1:
|
|
3469
|
+
case "end":
|
|
3470
|
+
return _context178.stop();
|
|
3471
|
+
}
|
|
3472
|
+
}, _callee178);
|
|
3473
|
+
}));
|
|
3474
|
+
return function (_x280) {
|
|
3475
|
+
return _ref178.apply(this, arguments);
|
|
3476
|
+
};
|
|
3477
|
+
}());
|
|
3478
|
+
_defineProperty(Services, "deleteMilitarycategories", /*#__PURE__*/function () {
|
|
3479
|
+
var _ref179 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee179(id) {
|
|
3480
|
+
return _regeneratorRuntime.wrap(function _callee179$(_context179) {
|
|
3481
|
+
while (1) switch (_context179.prev = _context179.next) {
|
|
3482
|
+
case 0:
|
|
3483
|
+
return _context179.abrupt("return", api["delete"]("/militaryCategories/".concat(id)));
|
|
3484
|
+
case 1:
|
|
3485
|
+
case "end":
|
|
3486
|
+
return _context179.stop();
|
|
3487
|
+
}
|
|
3488
|
+
}, _callee179);
|
|
3489
|
+
}));
|
|
3490
|
+
return function (_x281) {
|
|
3491
|
+
return _ref179.apply(this, arguments);
|
|
3492
|
+
};
|
|
3493
|
+
}());
|
|
3494
|
+
_defineProperty(Services, "militaryCategoriesVisibility", /*#__PURE__*/function () {
|
|
3495
|
+
var _ref180 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee180(data) {
|
|
3496
|
+
return _regeneratorRuntime.wrap(function _callee180$(_context180) {
|
|
3497
|
+
while (1) switch (_context180.prev = _context180.next) {
|
|
3498
|
+
case 0:
|
|
3499
|
+
return _context180.abrupt("return", api.patch("/militaryCategories/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)));
|
|
3500
|
+
case 1:
|
|
3501
|
+
case "end":
|
|
3502
|
+
return _context180.stop();
|
|
3503
|
+
}
|
|
3504
|
+
}, _callee180);
|
|
3505
|
+
}));
|
|
3506
|
+
return function (_x282) {
|
|
3507
|
+
return _ref180.apply(this, arguments);
|
|
3508
|
+
};
|
|
3509
|
+
}());
|
|
3510
|
+
_defineProperty(Services, "getMilitaryranks", /*#__PURE__*/function () {
|
|
3511
|
+
var _ref181 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee181(size, page, query, visibility) {
|
|
3512
|
+
return _regeneratorRuntime.wrap(function _callee181$(_context181) {
|
|
3513
|
+
while (1) switch (_context181.prev = _context181.next) {
|
|
3514
|
+
case 0:
|
|
3515
|
+
return _context181.abrupt("return", api.get("/militaryranks/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name)));
|
|
3516
|
+
case 1:
|
|
3517
|
+
case "end":
|
|
3518
|
+
return _context181.stop();
|
|
3519
|
+
}
|
|
3520
|
+
}, _callee181);
|
|
3521
|
+
}));
|
|
3522
|
+
return function (_x283, _x284, _x285, _x286) {
|
|
3523
|
+
return _ref181.apply(this, arguments);
|
|
3524
|
+
};
|
|
3525
|
+
}());
|
|
3526
|
+
_defineProperty(Services, "getMilitaryranksAll", /*#__PURE__*/function () {
|
|
3527
|
+
var _ref182 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee182(visibility) {
|
|
3528
|
+
return _regeneratorRuntime.wrap(function _callee182$(_context182) {
|
|
3529
|
+
while (1) switch (_context182.prev = _context182.next) {
|
|
3530
|
+
case 0:
|
|
3531
|
+
return _context182.abrupt("return", api.get("/militaryranks?visibility=".concat(visibility)));
|
|
3532
|
+
case 1:
|
|
3533
|
+
case "end":
|
|
3534
|
+
return _context182.stop();
|
|
3535
|
+
}
|
|
3536
|
+
}, _callee182);
|
|
3537
|
+
}));
|
|
3538
|
+
return function (_x287) {
|
|
3539
|
+
return _ref182.apply(this, arguments);
|
|
3540
|
+
};
|
|
3541
|
+
}());
|
|
3542
|
+
_defineProperty(Services, "addMilitaryranks", /*#__PURE__*/function () {
|
|
3543
|
+
var _ref183 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee183(value) {
|
|
3544
|
+
return _regeneratorRuntime.wrap(function _callee183$(_context183) {
|
|
3545
|
+
while (1) switch (_context183.prev = _context183.next) {
|
|
3546
|
+
case 0:
|
|
3547
|
+
return _context183.abrupt("return", api.post("/militaryranks", value));
|
|
3548
|
+
case 1:
|
|
3549
|
+
case "end":
|
|
3550
|
+
return _context183.stop();
|
|
3551
|
+
}
|
|
3552
|
+
}, _callee183);
|
|
3553
|
+
}));
|
|
3554
|
+
return function (_x288) {
|
|
3555
|
+
return _ref183.apply(this, arguments);
|
|
3556
|
+
};
|
|
3557
|
+
}());
|
|
3558
|
+
_defineProperty(Services, "editMilitaryranks", /*#__PURE__*/function () {
|
|
3559
|
+
var _ref184 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee184(value) {
|
|
3560
|
+
return _regeneratorRuntime.wrap(function _callee184$(_context184) {
|
|
3561
|
+
while (1) switch (_context184.prev = _context184.next) {
|
|
3562
|
+
case 0:
|
|
3563
|
+
return _context184.abrupt("return", api.put("/militaryranks/".concat(value === null || value === void 0 ? void 0 : value.id), value));
|
|
3564
|
+
case 1:
|
|
3565
|
+
case "end":
|
|
3566
|
+
return _context184.stop();
|
|
3567
|
+
}
|
|
3568
|
+
}, _callee184);
|
|
3569
|
+
}));
|
|
3570
|
+
return function (_x289) {
|
|
3571
|
+
return _ref184.apply(this, arguments);
|
|
3572
|
+
};
|
|
3573
|
+
}());
|
|
3574
|
+
_defineProperty(Services, "deleteMilitaryranks", /*#__PURE__*/function () {
|
|
3575
|
+
var _ref185 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee185(id) {
|
|
3576
|
+
return _regeneratorRuntime.wrap(function _callee185$(_context185) {
|
|
3577
|
+
while (1) switch (_context185.prev = _context185.next) {
|
|
3578
|
+
case 0:
|
|
3579
|
+
return _context185.abrupt("return", api["delete"]("/militaryranks/".concat(id)));
|
|
3580
|
+
case 1:
|
|
3581
|
+
case "end":
|
|
3582
|
+
return _context185.stop();
|
|
3583
|
+
}
|
|
3584
|
+
}, _callee185);
|
|
3585
|
+
}));
|
|
3586
|
+
return function (_x290) {
|
|
3587
|
+
return _ref185.apply(this, arguments);
|
|
3588
|
+
};
|
|
3589
|
+
}());
|
|
3590
|
+
_defineProperty(Services, "militaryranksVisibility", /*#__PURE__*/function () {
|
|
3591
|
+
var _ref186 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee186(data) {
|
|
3592
|
+
return _regeneratorRuntime.wrap(function _callee186$(_context186) {
|
|
3593
|
+
while (1) switch (_context186.prev = _context186.next) {
|
|
3594
|
+
case 0:
|
|
3595
|
+
return _context186.abrupt("return", api.patch("/militaryranks/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)));
|
|
3596
|
+
case 1:
|
|
3597
|
+
case "end":
|
|
3598
|
+
return _context186.stop();
|
|
3599
|
+
}
|
|
3600
|
+
}, _callee186);
|
|
3601
|
+
}));
|
|
3602
|
+
return function (_x291) {
|
|
3603
|
+
return _ref186.apply(this, arguments);
|
|
3604
|
+
};
|
|
3605
|
+
}());
|
|
3606
|
+
_defineProperty(Services, "getMilitarygroups", /*#__PURE__*/function () {
|
|
3607
|
+
var _ref187 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee187(size, page, query, visibility) {
|
|
3608
|
+
return _regeneratorRuntime.wrap(function _callee187$(_context187) {
|
|
3609
|
+
while (1) switch (_context187.prev = _context187.next) {
|
|
3610
|
+
case 0:
|
|
3611
|
+
return _context187.abrupt("return", api.get("/militarygroups/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name)));
|
|
3612
|
+
case 1:
|
|
3613
|
+
case "end":
|
|
3614
|
+
return _context187.stop();
|
|
3615
|
+
}
|
|
3616
|
+
}, _callee187);
|
|
3617
|
+
}));
|
|
3618
|
+
return function (_x292, _x293, _x294, _x295) {
|
|
3619
|
+
return _ref187.apply(this, arguments);
|
|
3620
|
+
};
|
|
3621
|
+
}());
|
|
3622
|
+
_defineProperty(Services, "getMilitarygroupsAll", /*#__PURE__*/function () {
|
|
3623
|
+
var _ref188 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee188(visibility) {
|
|
3624
|
+
return _regeneratorRuntime.wrap(function _callee188$(_context188) {
|
|
3625
|
+
while (1) switch (_context188.prev = _context188.next) {
|
|
3626
|
+
case 0:
|
|
3627
|
+
return _context188.abrupt("return", api.get("/militarygroups?visibility=".concat(visibility)));
|
|
3628
|
+
case 1:
|
|
3629
|
+
case "end":
|
|
3630
|
+
return _context188.stop();
|
|
3631
|
+
}
|
|
3632
|
+
}, _callee188);
|
|
3633
|
+
}));
|
|
3634
|
+
return function (_x296) {
|
|
3635
|
+
return _ref188.apply(this, arguments);
|
|
3636
|
+
};
|
|
3637
|
+
}());
|
|
3638
|
+
_defineProperty(Services, "addMilitarygroups", /*#__PURE__*/function () {
|
|
3639
|
+
var _ref189 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee189(value) {
|
|
3640
|
+
return _regeneratorRuntime.wrap(function _callee189$(_context189) {
|
|
3641
|
+
while (1) switch (_context189.prev = _context189.next) {
|
|
3642
|
+
case 0:
|
|
3643
|
+
return _context189.abrupt("return", api.post("/militarygroups", value));
|
|
3644
|
+
case 1:
|
|
3645
|
+
case "end":
|
|
3646
|
+
return _context189.stop();
|
|
3647
|
+
}
|
|
3648
|
+
}, _callee189);
|
|
3649
|
+
}));
|
|
3650
|
+
return function (_x297) {
|
|
3651
|
+
return _ref189.apply(this, arguments);
|
|
3652
|
+
};
|
|
3653
|
+
}());
|
|
3654
|
+
_defineProperty(Services, "editMilitarygroups", /*#__PURE__*/function () {
|
|
3655
|
+
var _ref190 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee190(value) {
|
|
3656
|
+
return _regeneratorRuntime.wrap(function _callee190$(_context190) {
|
|
3657
|
+
while (1) switch (_context190.prev = _context190.next) {
|
|
3658
|
+
case 0:
|
|
3659
|
+
return _context190.abrupt("return", api.put("/militarygroups/".concat(value === null || value === void 0 ? void 0 : value.id), value));
|
|
3660
|
+
case 1:
|
|
3661
|
+
case "end":
|
|
3662
|
+
return _context190.stop();
|
|
3663
|
+
}
|
|
3664
|
+
}, _callee190);
|
|
3665
|
+
}));
|
|
3666
|
+
return function (_x298) {
|
|
3667
|
+
return _ref190.apply(this, arguments);
|
|
3668
|
+
};
|
|
3669
|
+
}());
|
|
3670
|
+
_defineProperty(Services, "deleteMilitarygroups", /*#__PURE__*/function () {
|
|
3671
|
+
var _ref191 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee191(id) {
|
|
3672
|
+
return _regeneratorRuntime.wrap(function _callee191$(_context191) {
|
|
3673
|
+
while (1) switch (_context191.prev = _context191.next) {
|
|
3674
|
+
case 0:
|
|
3675
|
+
return _context191.abrupt("return", api["delete"]("/militarygroups/".concat(id)));
|
|
3676
|
+
case 1:
|
|
3677
|
+
case "end":
|
|
3678
|
+
return _context191.stop();
|
|
3679
|
+
}
|
|
3680
|
+
}, _callee191);
|
|
3681
|
+
}));
|
|
3682
|
+
return function (_x299) {
|
|
3683
|
+
return _ref191.apply(this, arguments);
|
|
3684
|
+
};
|
|
3685
|
+
}());
|
|
3686
|
+
_defineProperty(Services, "militarygroupsVisibility", /*#__PURE__*/function () {
|
|
3687
|
+
var _ref192 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee192(data) {
|
|
3688
|
+
return _regeneratorRuntime.wrap(function _callee192$(_context192) {
|
|
3689
|
+
while (1) switch (_context192.prev = _context192.next) {
|
|
3690
|
+
case 0:
|
|
3691
|
+
return _context192.abrupt("return", api.patch("/militarygroups/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)));
|
|
3692
|
+
case 1:
|
|
3693
|
+
case "end":
|
|
3694
|
+
return _context192.stop();
|
|
3695
|
+
}
|
|
3696
|
+
}, _callee192);
|
|
3697
|
+
}));
|
|
3698
|
+
return function (_x300) {
|
|
3699
|
+
return _ref192.apply(this, arguments);
|
|
3700
|
+
};
|
|
3701
|
+
}());
|
|
3702
|
+
_defineProperty(Services, "getGeneralstructurestatuses", /*#__PURE__*/function () {
|
|
3703
|
+
var _ref193 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee193(size, page, query, visibility) {
|
|
3704
|
+
return _regeneratorRuntime.wrap(function _callee193$(_context193) {
|
|
3705
|
+
while (1) switch (_context193.prev = _context193.next) {
|
|
3706
|
+
case 0:
|
|
3707
|
+
return _context193.abrupt("return", api.get("/generalstructurestatuses/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name)));
|
|
3708
|
+
case 1:
|
|
3709
|
+
case "end":
|
|
3710
|
+
return _context193.stop();
|
|
3711
|
+
}
|
|
3712
|
+
}, _callee193);
|
|
3713
|
+
}));
|
|
3714
|
+
return function (_x301, _x302, _x303, _x304) {
|
|
3715
|
+
return _ref193.apply(this, arguments);
|
|
3716
|
+
};
|
|
3717
|
+
}());
|
|
3718
|
+
_defineProperty(Services, "getGeneralstructurestatusesAll", /*#__PURE__*/function () {
|
|
3719
|
+
var _ref194 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee194(visibility) {
|
|
3720
|
+
return _regeneratorRuntime.wrap(function _callee194$(_context194) {
|
|
3721
|
+
while (1) switch (_context194.prev = _context194.next) {
|
|
3722
|
+
case 0:
|
|
3723
|
+
return _context194.abrupt("return", api.get("/generalstructurestatuses?visibility=".concat(visibility)));
|
|
3724
|
+
case 1:
|
|
3725
|
+
case "end":
|
|
3726
|
+
return _context194.stop();
|
|
3727
|
+
}
|
|
3728
|
+
}, _callee194);
|
|
3729
|
+
}));
|
|
3730
|
+
return function (_x305) {
|
|
3731
|
+
return _ref194.apply(this, arguments);
|
|
3732
|
+
};
|
|
3733
|
+
}());
|
|
3734
|
+
_defineProperty(Services, "addGeneralstructurestatuses", /*#__PURE__*/function () {
|
|
3735
|
+
var _ref195 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee195(value) {
|
|
3736
|
+
return _regeneratorRuntime.wrap(function _callee195$(_context195) {
|
|
3737
|
+
while (1) switch (_context195.prev = _context195.next) {
|
|
3738
|
+
case 0:
|
|
3739
|
+
return _context195.abrupt("return", api.post("/generalstructurestatuses", value));
|
|
3740
|
+
case 1:
|
|
3741
|
+
case "end":
|
|
3742
|
+
return _context195.stop();
|
|
3743
|
+
}
|
|
3744
|
+
}, _callee195);
|
|
3745
|
+
}));
|
|
3746
|
+
return function (_x306) {
|
|
3747
|
+
return _ref195.apply(this, arguments);
|
|
3748
|
+
};
|
|
3749
|
+
}());
|
|
3750
|
+
_defineProperty(Services, "editGeneralstructurestatuses", /*#__PURE__*/function () {
|
|
3751
|
+
var _ref196 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee196(value) {
|
|
3752
|
+
return _regeneratorRuntime.wrap(function _callee196$(_context196) {
|
|
3753
|
+
while (1) switch (_context196.prev = _context196.next) {
|
|
3754
|
+
case 0:
|
|
3755
|
+
return _context196.abrupt("return", api.put("/generalstructurestatuses/".concat(value === null || value === void 0 ? void 0 : value.id), value));
|
|
3756
|
+
case 1:
|
|
3757
|
+
case "end":
|
|
3758
|
+
return _context196.stop();
|
|
3759
|
+
}
|
|
3760
|
+
}, _callee196);
|
|
3761
|
+
}));
|
|
3762
|
+
return function (_x307) {
|
|
3763
|
+
return _ref196.apply(this, arguments);
|
|
3764
|
+
};
|
|
3765
|
+
}());
|
|
3766
|
+
_defineProperty(Services, "deleteGeneralstructurestatuses", /*#__PURE__*/function () {
|
|
3767
|
+
var _ref197 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee197(id) {
|
|
3768
|
+
return _regeneratorRuntime.wrap(function _callee197$(_context197) {
|
|
3769
|
+
while (1) switch (_context197.prev = _context197.next) {
|
|
3770
|
+
case 0:
|
|
3771
|
+
return _context197.abrupt("return", api["delete"]("/generalstructurestatuses/".concat(id)));
|
|
3772
|
+
case 1:
|
|
3773
|
+
case "end":
|
|
3774
|
+
return _context197.stop();
|
|
3775
|
+
}
|
|
3776
|
+
}, _callee197);
|
|
3777
|
+
}));
|
|
3778
|
+
return function (_x308) {
|
|
3779
|
+
return _ref197.apply(this, arguments);
|
|
3780
|
+
};
|
|
3781
|
+
}());
|
|
3782
|
+
_defineProperty(Services, "generalstructurestatusesVisibility", /*#__PURE__*/function () {
|
|
3783
|
+
var _ref198 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee198(data) {
|
|
3784
|
+
return _regeneratorRuntime.wrap(function _callee198$(_context198) {
|
|
3785
|
+
while (1) switch (_context198.prev = _context198.next) {
|
|
3786
|
+
case 0:
|
|
3787
|
+
return _context198.abrupt("return", api.patch("/generalstructurestatuses/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)));
|
|
3788
|
+
case 1:
|
|
3789
|
+
case "end":
|
|
3790
|
+
return _context198.stop();
|
|
3791
|
+
}
|
|
3792
|
+
}, _callee198);
|
|
3793
|
+
}));
|
|
3794
|
+
return function (_x309) {
|
|
3795
|
+
return _ref198.apply(this, arguments);
|
|
3796
|
+
};
|
|
3797
|
+
}());
|
|
3798
|
+
_defineProperty(Services, "getWorkschedules", /*#__PURE__*/function () {
|
|
3799
|
+
var _ref199 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee199(size, page, query, visibility) {
|
|
3800
|
+
return _regeneratorRuntime.wrap(function _callee199$(_context199) {
|
|
3801
|
+
while (1) switch (_context199.prev = _context199.next) {
|
|
3802
|
+
case 0:
|
|
3803
|
+
return _context199.abrupt("return", api.get("/workschedules/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name)));
|
|
3804
|
+
case 1:
|
|
3805
|
+
case "end":
|
|
3806
|
+
return _context199.stop();
|
|
3807
|
+
}
|
|
3808
|
+
}, _callee199);
|
|
3809
|
+
}));
|
|
3810
|
+
return function (_x310, _x311, _x312, _x313) {
|
|
3811
|
+
return _ref199.apply(this, arguments);
|
|
3812
|
+
};
|
|
3813
|
+
}());
|
|
3814
|
+
_defineProperty(Services, "getWorkschedulesAll", /*#__PURE__*/function () {
|
|
3815
|
+
var _ref200 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee200(visibility) {
|
|
3816
|
+
return _regeneratorRuntime.wrap(function _callee200$(_context200) {
|
|
3817
|
+
while (1) switch (_context200.prev = _context200.next) {
|
|
3818
|
+
case 0:
|
|
3819
|
+
return _context200.abrupt("return", api.get("/workschedules?visibility=".concat(visibility)));
|
|
3820
|
+
case 1:
|
|
3821
|
+
case "end":
|
|
3822
|
+
return _context200.stop();
|
|
3823
|
+
}
|
|
3824
|
+
}, _callee200);
|
|
3825
|
+
}));
|
|
3826
|
+
return function (_x314) {
|
|
3827
|
+
return _ref200.apply(this, arguments);
|
|
3828
|
+
};
|
|
3829
|
+
}());
|
|
3830
|
+
_defineProperty(Services, "addWorkschedules", /*#__PURE__*/function () {
|
|
3831
|
+
var _ref201 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee201(value) {
|
|
3832
|
+
return _regeneratorRuntime.wrap(function _callee201$(_context201) {
|
|
3833
|
+
while (1) switch (_context201.prev = _context201.next) {
|
|
3834
|
+
case 0:
|
|
3835
|
+
return _context201.abrupt("return", api.post("/workschedules", value));
|
|
3836
|
+
case 1:
|
|
3837
|
+
case "end":
|
|
3838
|
+
return _context201.stop();
|
|
3839
|
+
}
|
|
3840
|
+
}, _callee201);
|
|
3841
|
+
}));
|
|
3842
|
+
return function (_x315) {
|
|
3843
|
+
return _ref201.apply(this, arguments);
|
|
3844
|
+
};
|
|
3845
|
+
}());
|
|
3846
|
+
_defineProperty(Services, "editWorkschedules", /*#__PURE__*/function () {
|
|
3847
|
+
var _ref202 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee202(value) {
|
|
3848
|
+
return _regeneratorRuntime.wrap(function _callee202$(_context202) {
|
|
3849
|
+
while (1) switch (_context202.prev = _context202.next) {
|
|
3850
|
+
case 0:
|
|
3851
|
+
return _context202.abrupt("return", api.put("/workschedules/".concat(value === null || value === void 0 ? void 0 : value.id), value));
|
|
3852
|
+
case 1:
|
|
3853
|
+
case "end":
|
|
3854
|
+
return _context202.stop();
|
|
3855
|
+
}
|
|
3856
|
+
}, _callee202);
|
|
3857
|
+
}));
|
|
3858
|
+
return function (_x316) {
|
|
3859
|
+
return _ref202.apply(this, arguments);
|
|
3860
|
+
};
|
|
3861
|
+
}());
|
|
3862
|
+
_defineProperty(Services, "deleteWorkschedules", /*#__PURE__*/function () {
|
|
3863
|
+
var _ref203 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee203(id) {
|
|
3864
|
+
return _regeneratorRuntime.wrap(function _callee203$(_context203) {
|
|
3865
|
+
while (1) switch (_context203.prev = _context203.next) {
|
|
3866
|
+
case 0:
|
|
3867
|
+
return _context203.abrupt("return", api["delete"]("/workschedules/".concat(id)));
|
|
3868
|
+
case 1:
|
|
3869
|
+
case "end":
|
|
3870
|
+
return _context203.stop();
|
|
3871
|
+
}
|
|
3872
|
+
}, _callee203);
|
|
3873
|
+
}));
|
|
3874
|
+
return function (_x317) {
|
|
3875
|
+
return _ref203.apply(this, arguments);
|
|
3876
|
+
};
|
|
3877
|
+
}());
|
|
3878
|
+
_defineProperty(Services, "workschedulesVisibility", /*#__PURE__*/function () {
|
|
3879
|
+
var _ref204 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee204(data) {
|
|
3880
|
+
return _regeneratorRuntime.wrap(function _callee204$(_context204) {
|
|
3881
|
+
while (1) switch (_context204.prev = _context204.next) {
|
|
3882
|
+
case 0:
|
|
3883
|
+
return _context204.abrupt("return", api.patch("/workschedules/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)));
|
|
3884
|
+
case 1:
|
|
3885
|
+
case "end":
|
|
3886
|
+
return _context204.stop();
|
|
3887
|
+
}
|
|
3888
|
+
}, _callee204);
|
|
3889
|
+
}));
|
|
3890
|
+
return function (_x318) {
|
|
3891
|
+
return _ref204.apply(this, arguments);
|
|
3892
|
+
};
|
|
3893
|
+
}());
|
|
3894
|
+
_defineProperty(Services, "getSpecializations", /*#__PURE__*/function () {
|
|
3895
|
+
var _ref205 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee205(size, page, query, visibility) {
|
|
3896
|
+
return _regeneratorRuntime.wrap(function _callee205$(_context205) {
|
|
3897
|
+
while (1) switch (_context205.prev = _context205.next) {
|
|
3898
|
+
case 0:
|
|
3899
|
+
return _context205.abrupt("return", api.get("/specializations/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name)));
|
|
3900
|
+
case 1:
|
|
3901
|
+
case "end":
|
|
3902
|
+
return _context205.stop();
|
|
3903
|
+
}
|
|
3904
|
+
}, _callee205);
|
|
3905
|
+
}));
|
|
3906
|
+
return function (_x319, _x320, _x321, _x322) {
|
|
3907
|
+
return _ref205.apply(this, arguments);
|
|
3908
|
+
};
|
|
3909
|
+
}());
|
|
3910
|
+
_defineProperty(Services, "getSpecializationsAll", /*#__PURE__*/function () {
|
|
3911
|
+
var _ref206 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee206(visibility) {
|
|
3912
|
+
return _regeneratorRuntime.wrap(function _callee206$(_context206) {
|
|
3913
|
+
while (1) switch (_context206.prev = _context206.next) {
|
|
3914
|
+
case 0:
|
|
3915
|
+
return _context206.abrupt("return", api.get("/specializations?visibility=".concat(visibility)));
|
|
3916
|
+
case 1:
|
|
3917
|
+
case "end":
|
|
3918
|
+
return _context206.stop();
|
|
3919
|
+
}
|
|
3920
|
+
}, _callee206);
|
|
3921
|
+
}));
|
|
3922
|
+
return function (_x323) {
|
|
3923
|
+
return _ref206.apply(this, arguments);
|
|
3924
|
+
};
|
|
3925
|
+
}());
|
|
3926
|
+
_defineProperty(Services, "addSpecializations", /*#__PURE__*/function () {
|
|
3927
|
+
var _ref207 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee207(value) {
|
|
3928
|
+
return _regeneratorRuntime.wrap(function _callee207$(_context207) {
|
|
3929
|
+
while (1) switch (_context207.prev = _context207.next) {
|
|
3930
|
+
case 0:
|
|
3931
|
+
return _context207.abrupt("return", api.post("/specializations", value));
|
|
3932
|
+
case 1:
|
|
3933
|
+
case "end":
|
|
3934
|
+
return _context207.stop();
|
|
3935
|
+
}
|
|
3936
|
+
}, _callee207);
|
|
3937
|
+
}));
|
|
3938
|
+
return function (_x324) {
|
|
3939
|
+
return _ref207.apply(this, arguments);
|
|
3940
|
+
};
|
|
3941
|
+
}());
|
|
3942
|
+
_defineProperty(Services, "editSpecializations", /*#__PURE__*/function () {
|
|
3943
|
+
var _ref208 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee208(value) {
|
|
3944
|
+
return _regeneratorRuntime.wrap(function _callee208$(_context208) {
|
|
3945
|
+
while (1) switch (_context208.prev = _context208.next) {
|
|
3946
|
+
case 0:
|
|
3947
|
+
return _context208.abrupt("return", api.put("/specializations/".concat(value === null || value === void 0 ? void 0 : value.id), value));
|
|
3948
|
+
case 1:
|
|
3949
|
+
case "end":
|
|
3950
|
+
return _context208.stop();
|
|
3951
|
+
}
|
|
3952
|
+
}, _callee208);
|
|
3953
|
+
}));
|
|
3954
|
+
return function (_x325) {
|
|
3955
|
+
return _ref208.apply(this, arguments);
|
|
3956
|
+
};
|
|
3957
|
+
}());
|
|
3958
|
+
_defineProperty(Services, "deleteSpecializations", /*#__PURE__*/function () {
|
|
3959
|
+
var _ref209 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee209(id) {
|
|
3960
|
+
return _regeneratorRuntime.wrap(function _callee209$(_context209) {
|
|
3961
|
+
while (1) switch (_context209.prev = _context209.next) {
|
|
3962
|
+
case 0:
|
|
3963
|
+
return _context209.abrupt("return", api["delete"]("/specializations/".concat(id)));
|
|
3964
|
+
case 1:
|
|
3965
|
+
case "end":
|
|
3966
|
+
return _context209.stop();
|
|
3967
|
+
}
|
|
3968
|
+
}, _callee209);
|
|
3969
|
+
}));
|
|
3970
|
+
return function (_x326) {
|
|
3971
|
+
return _ref209.apply(this, arguments);
|
|
3972
|
+
};
|
|
3973
|
+
}());
|
|
3974
|
+
_defineProperty(Services, "specializationsVisibility", /*#__PURE__*/function () {
|
|
3975
|
+
var _ref210 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee210(data) {
|
|
3976
|
+
return _regeneratorRuntime.wrap(function _callee210$(_context210) {
|
|
3977
|
+
while (1) switch (_context210.prev = _context210.next) {
|
|
3978
|
+
case 0:
|
|
3979
|
+
return _context210.abrupt("return", api.patch("/specializations/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)));
|
|
3980
|
+
case 1:
|
|
3981
|
+
case "end":
|
|
3982
|
+
return _context210.stop();
|
|
3983
|
+
}
|
|
3984
|
+
}, _callee210);
|
|
3985
|
+
}));
|
|
3986
|
+
return function (_x327) {
|
|
3987
|
+
return _ref210.apply(this, arguments);
|
|
3988
|
+
};
|
|
3989
|
+
}());
|
|
3990
|
+
_defineProperty(Services, "getWarparticipants", /*#__PURE__*/function () {
|
|
3991
|
+
var _ref211 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee211(size, page, query, visibility) {
|
|
3992
|
+
return _regeneratorRuntime.wrap(function _callee211$(_context211) {
|
|
3993
|
+
while (1) switch (_context211.prev = _context211.next) {
|
|
3994
|
+
case 0:
|
|
3995
|
+
return _context211.abrupt("return", api.get("/warparticipants/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name)));
|
|
3996
|
+
case 1:
|
|
3997
|
+
case "end":
|
|
3998
|
+
return _context211.stop();
|
|
3999
|
+
}
|
|
4000
|
+
}, _callee211);
|
|
4001
|
+
}));
|
|
4002
|
+
return function (_x328, _x329, _x330, _x331) {
|
|
4003
|
+
return _ref211.apply(this, arguments);
|
|
4004
|
+
};
|
|
4005
|
+
}());
|
|
4006
|
+
_defineProperty(Services, "getWarparticipantsAll", /*#__PURE__*/function () {
|
|
4007
|
+
var _ref212 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee212(visibility) {
|
|
4008
|
+
return _regeneratorRuntime.wrap(function _callee212$(_context212) {
|
|
4009
|
+
while (1) switch (_context212.prev = _context212.next) {
|
|
4010
|
+
case 0:
|
|
4011
|
+
return _context212.abrupt("return", api.get("/warparticipants?visibility=".concat(visibility)));
|
|
4012
|
+
case 1:
|
|
4013
|
+
case "end":
|
|
4014
|
+
return _context212.stop();
|
|
4015
|
+
}
|
|
4016
|
+
}, _callee212);
|
|
4017
|
+
}));
|
|
4018
|
+
return function (_x332) {
|
|
4019
|
+
return _ref212.apply(this, arguments);
|
|
4020
|
+
};
|
|
4021
|
+
}());
|
|
4022
|
+
_defineProperty(Services, "addWarparticipants", /*#__PURE__*/function () {
|
|
4023
|
+
var _ref213 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee213(value) {
|
|
4024
|
+
return _regeneratorRuntime.wrap(function _callee213$(_context213) {
|
|
4025
|
+
while (1) switch (_context213.prev = _context213.next) {
|
|
4026
|
+
case 0:
|
|
4027
|
+
return _context213.abrupt("return", api.post("/warparticipants", value));
|
|
4028
|
+
case 1:
|
|
4029
|
+
case "end":
|
|
4030
|
+
return _context213.stop();
|
|
4031
|
+
}
|
|
4032
|
+
}, _callee213);
|
|
4033
|
+
}));
|
|
4034
|
+
return function (_x333) {
|
|
4035
|
+
return _ref213.apply(this, arguments);
|
|
4036
|
+
};
|
|
4037
|
+
}());
|
|
4038
|
+
_defineProperty(Services, "editWarparticipants", /*#__PURE__*/function () {
|
|
4039
|
+
var _ref214 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee214(value) {
|
|
4040
|
+
return _regeneratorRuntime.wrap(function _callee214$(_context214) {
|
|
4041
|
+
while (1) switch (_context214.prev = _context214.next) {
|
|
4042
|
+
case 0:
|
|
4043
|
+
return _context214.abrupt("return", api.put("/warparticipants/".concat(value === null || value === void 0 ? void 0 : value.id), value));
|
|
4044
|
+
case 1:
|
|
4045
|
+
case "end":
|
|
4046
|
+
return _context214.stop();
|
|
4047
|
+
}
|
|
4048
|
+
}, _callee214);
|
|
4049
|
+
}));
|
|
4050
|
+
return function (_x334) {
|
|
4051
|
+
return _ref214.apply(this, arguments);
|
|
4052
|
+
};
|
|
4053
|
+
}());
|
|
4054
|
+
_defineProperty(Services, "deleteWarparticipants", /*#__PURE__*/function () {
|
|
4055
|
+
var _ref215 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee215(id) {
|
|
4056
|
+
return _regeneratorRuntime.wrap(function _callee215$(_context215) {
|
|
4057
|
+
while (1) switch (_context215.prev = _context215.next) {
|
|
4058
|
+
case 0:
|
|
4059
|
+
return _context215.abrupt("return", api["delete"]("/warparticipants/".concat(id)));
|
|
4060
|
+
case 1:
|
|
4061
|
+
case "end":
|
|
4062
|
+
return _context215.stop();
|
|
4063
|
+
}
|
|
4064
|
+
}, _callee215);
|
|
4065
|
+
}));
|
|
4066
|
+
return function (_x335) {
|
|
4067
|
+
return _ref215.apply(this, arguments);
|
|
4068
|
+
};
|
|
4069
|
+
}());
|
|
4070
|
+
_defineProperty(Services, "warparticipantsVisibility", /*#__PURE__*/function () {
|
|
4071
|
+
var _ref216 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee216(data) {
|
|
4072
|
+
return _regeneratorRuntime.wrap(function _callee216$(_context216) {
|
|
4073
|
+
while (1) switch (_context216.prev = _context216.next) {
|
|
4074
|
+
case 0:
|
|
4075
|
+
return _context216.abrupt("return", api.patch("/warparticipants/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)));
|
|
4076
|
+
case 1:
|
|
4077
|
+
case "end":
|
|
4078
|
+
return _context216.stop();
|
|
4079
|
+
}
|
|
4080
|
+
}, _callee216);
|
|
4081
|
+
}));
|
|
4082
|
+
return function (_x336) {
|
|
4083
|
+
return _ref216.apply(this, arguments);
|
|
4084
|
+
};
|
|
4085
|
+
}());
|
|
4086
|
+
_defineProperty(Services, "getGeneralstructuretypes", /*#__PURE__*/function () {
|
|
4087
|
+
var _ref217 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee217(size, page, query, visibility) {
|
|
4088
|
+
return _regeneratorRuntime.wrap(function _callee217$(_context217) {
|
|
4089
|
+
while (1) switch (_context217.prev = _context217.next) {
|
|
4090
|
+
case 0:
|
|
4091
|
+
return _context217.abrupt("return", api.get("/generalstructuretypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name)));
|
|
4092
|
+
case 1:
|
|
4093
|
+
case "end":
|
|
4094
|
+
return _context217.stop();
|
|
4095
|
+
}
|
|
4096
|
+
}, _callee217);
|
|
4097
|
+
}));
|
|
4098
|
+
return function (_x337, _x338, _x339, _x340) {
|
|
4099
|
+
return _ref217.apply(this, arguments);
|
|
4100
|
+
};
|
|
4101
|
+
}());
|
|
4102
|
+
_defineProperty(Services, "getGeneralstructuretypesAll", /*#__PURE__*/function () {
|
|
4103
|
+
var _ref218 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee218(visibility) {
|
|
4104
|
+
return _regeneratorRuntime.wrap(function _callee218$(_context218) {
|
|
4105
|
+
while (1) switch (_context218.prev = _context218.next) {
|
|
4106
|
+
case 0:
|
|
4107
|
+
return _context218.abrupt("return", api.get("/generalstructuretypes?visibility=".concat(visibility)));
|
|
4108
|
+
case 1:
|
|
4109
|
+
case "end":
|
|
4110
|
+
return _context218.stop();
|
|
4111
|
+
}
|
|
4112
|
+
}, _callee218);
|
|
4113
|
+
}));
|
|
4114
|
+
return function (_x341) {
|
|
4115
|
+
return _ref218.apply(this, arguments);
|
|
4116
|
+
};
|
|
4117
|
+
}());
|
|
4118
|
+
_defineProperty(Services, "addGeneralstructuretypes", /*#__PURE__*/function () {
|
|
4119
|
+
var _ref219 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee219(value) {
|
|
4120
|
+
return _regeneratorRuntime.wrap(function _callee219$(_context219) {
|
|
4121
|
+
while (1) switch (_context219.prev = _context219.next) {
|
|
4122
|
+
case 0:
|
|
4123
|
+
return _context219.abrupt("return", api.post("/generalstructuretypes", value));
|
|
4124
|
+
case 1:
|
|
4125
|
+
case "end":
|
|
4126
|
+
return _context219.stop();
|
|
4127
|
+
}
|
|
4128
|
+
}, _callee219);
|
|
4129
|
+
}));
|
|
4130
|
+
return function (_x342) {
|
|
4131
|
+
return _ref219.apply(this, arguments);
|
|
4132
|
+
};
|
|
4133
|
+
}());
|
|
4134
|
+
_defineProperty(Services, "editGeneralstructuretypes", /*#__PURE__*/function () {
|
|
4135
|
+
var _ref220 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee220(value) {
|
|
4136
|
+
return _regeneratorRuntime.wrap(function _callee220$(_context220) {
|
|
4137
|
+
while (1) switch (_context220.prev = _context220.next) {
|
|
4138
|
+
case 0:
|
|
4139
|
+
return _context220.abrupt("return", api.put("/generalstructuretypes/".concat(value === null || value === void 0 ? void 0 : value.id), value));
|
|
4140
|
+
case 1:
|
|
4141
|
+
case "end":
|
|
4142
|
+
return _context220.stop();
|
|
4143
|
+
}
|
|
4144
|
+
}, _callee220);
|
|
4145
|
+
}));
|
|
4146
|
+
return function (_x343) {
|
|
4147
|
+
return _ref220.apply(this, arguments);
|
|
4148
|
+
};
|
|
4149
|
+
}());
|
|
4150
|
+
_defineProperty(Services, "deleteGeneralstructuretypes", /*#__PURE__*/function () {
|
|
4151
|
+
var _ref221 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee221(id) {
|
|
4152
|
+
return _regeneratorRuntime.wrap(function _callee221$(_context221) {
|
|
4153
|
+
while (1) switch (_context221.prev = _context221.next) {
|
|
4154
|
+
case 0:
|
|
4155
|
+
return _context221.abrupt("return", api["delete"]("/generalstructuretypes/".concat(id)));
|
|
4156
|
+
case 1:
|
|
4157
|
+
case "end":
|
|
4158
|
+
return _context221.stop();
|
|
4159
|
+
}
|
|
4160
|
+
}, _callee221);
|
|
4161
|
+
}));
|
|
4162
|
+
return function (_x344) {
|
|
4163
|
+
return _ref221.apply(this, arguments);
|
|
4164
|
+
};
|
|
4165
|
+
}());
|
|
4166
|
+
_defineProperty(Services, "generalstructuretypesVisibility", /*#__PURE__*/function () {
|
|
4167
|
+
var _ref222 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee222(data) {
|
|
4168
|
+
return _regeneratorRuntime.wrap(function _callee222$(_context222) {
|
|
4169
|
+
while (1) switch (_context222.prev = _context222.next) {
|
|
4170
|
+
case 0:
|
|
4171
|
+
return _context222.abrupt("return", api.patch("/generalstructuretypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)));
|
|
4172
|
+
case 1:
|
|
4173
|
+
case "end":
|
|
4174
|
+
return _context222.stop();
|
|
4175
|
+
}
|
|
4176
|
+
}, _callee222);
|
|
4177
|
+
}));
|
|
4178
|
+
return function (_x345) {
|
|
4179
|
+
return _ref222.apply(this, arguments);
|
|
4180
|
+
};
|
|
4181
|
+
}());
|
|
4182
|
+
_defineProperty(Services, "getEducationinstitutions", /*#__PURE__*/function () {
|
|
4183
|
+
var _ref223 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee223(size, page, query, visibility) {
|
|
4184
|
+
return _regeneratorRuntime.wrap(function _callee223$(_context223) {
|
|
4185
|
+
while (1) switch (_context223.prev = _context223.next) {
|
|
4186
|
+
case 0:
|
|
4187
|
+
return _context223.abrupt("return", api.get("/educationinstitutions/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name)));
|
|
4188
|
+
case 1:
|
|
4189
|
+
case "end":
|
|
4190
|
+
return _context223.stop();
|
|
4191
|
+
}
|
|
4192
|
+
}, _callee223);
|
|
4193
|
+
}));
|
|
4194
|
+
return function (_x346, _x347, _x348, _x349) {
|
|
4195
|
+
return _ref223.apply(this, arguments);
|
|
4196
|
+
};
|
|
4197
|
+
}());
|
|
4198
|
+
_defineProperty(Services, "getEducationinstitutionsAll", /*#__PURE__*/function () {
|
|
4199
|
+
var _ref224 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee224(visibility) {
|
|
4200
|
+
return _regeneratorRuntime.wrap(function _callee224$(_context224) {
|
|
4201
|
+
while (1) switch (_context224.prev = _context224.next) {
|
|
4202
|
+
case 0:
|
|
4203
|
+
return _context224.abrupt("return", api.get("/educationinstitutions?visibility=".concat(visibility)));
|
|
4204
|
+
case 1:
|
|
4205
|
+
case "end":
|
|
4206
|
+
return _context224.stop();
|
|
4207
|
+
}
|
|
4208
|
+
}, _callee224);
|
|
4209
|
+
}));
|
|
4210
|
+
return function (_x350) {
|
|
4211
|
+
return _ref224.apply(this, arguments);
|
|
4212
|
+
};
|
|
4213
|
+
}());
|
|
4214
|
+
_defineProperty(Services, "addEducationinstitutions", /*#__PURE__*/function () {
|
|
4215
|
+
var _ref225 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee225(value) {
|
|
4216
|
+
return _regeneratorRuntime.wrap(function _callee225$(_context225) {
|
|
4217
|
+
while (1) switch (_context225.prev = _context225.next) {
|
|
4218
|
+
case 0:
|
|
4219
|
+
return _context225.abrupt("return", api.post("/educationinstitutions", value));
|
|
4220
|
+
case 1:
|
|
4221
|
+
case "end":
|
|
4222
|
+
return _context225.stop();
|
|
4223
|
+
}
|
|
4224
|
+
}, _callee225);
|
|
4225
|
+
}));
|
|
4226
|
+
return function (_x351) {
|
|
4227
|
+
return _ref225.apply(this, arguments);
|
|
4228
|
+
};
|
|
4229
|
+
}());
|
|
4230
|
+
_defineProperty(Services, "editEducationinstitutions", /*#__PURE__*/function () {
|
|
4231
|
+
var _ref226 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee226(value) {
|
|
4232
|
+
return _regeneratorRuntime.wrap(function _callee226$(_context226) {
|
|
4233
|
+
while (1) switch (_context226.prev = _context226.next) {
|
|
4234
|
+
case 0:
|
|
4235
|
+
return _context226.abrupt("return", api.put("/educationinstitutions/".concat(value === null || value === void 0 ? void 0 : value.id), value));
|
|
4236
|
+
case 1:
|
|
4237
|
+
case "end":
|
|
4238
|
+
return _context226.stop();
|
|
4239
|
+
}
|
|
4240
|
+
}, _callee226);
|
|
4241
|
+
}));
|
|
4242
|
+
return function (_x352) {
|
|
4243
|
+
return _ref226.apply(this, arguments);
|
|
4244
|
+
};
|
|
4245
|
+
}());
|
|
4246
|
+
_defineProperty(Services, "deleteEducationinstitutions", /*#__PURE__*/function () {
|
|
4247
|
+
var _ref227 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee227(id) {
|
|
4248
|
+
return _regeneratorRuntime.wrap(function _callee227$(_context227) {
|
|
4249
|
+
while (1) switch (_context227.prev = _context227.next) {
|
|
4250
|
+
case 0:
|
|
4251
|
+
return _context227.abrupt("return", api["delete"]("/educationinstitutions/".concat(id)));
|
|
4252
|
+
case 1:
|
|
4253
|
+
case "end":
|
|
4254
|
+
return _context227.stop();
|
|
4255
|
+
}
|
|
4256
|
+
}, _callee227);
|
|
4257
|
+
}));
|
|
4258
|
+
return function (_x353) {
|
|
4259
|
+
return _ref227.apply(this, arguments);
|
|
4260
|
+
};
|
|
4261
|
+
}());
|
|
4262
|
+
_defineProperty(Services, "educationinstitutionsVisibility", /*#__PURE__*/function () {
|
|
4263
|
+
var _ref228 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee228(data) {
|
|
4264
|
+
return _regeneratorRuntime.wrap(function _callee228$(_context228) {
|
|
4265
|
+
while (1) switch (_context228.prev = _context228.next) {
|
|
4266
|
+
case 0:
|
|
4267
|
+
return _context228.abrupt("return", api.patch("/educationinstitutions/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)));
|
|
4268
|
+
case 1:
|
|
4269
|
+
case "end":
|
|
4270
|
+
return _context228.stop();
|
|
4271
|
+
}
|
|
4272
|
+
}, _callee228);
|
|
4273
|
+
}));
|
|
4274
|
+
return function (_x354) {
|
|
4275
|
+
return _ref228.apply(this, arguments);
|
|
4276
|
+
};
|
|
4277
|
+
}());
|
|
4278
|
+
_defineProperty(Services, "getEducationpayments", /*#__PURE__*/function () {
|
|
4279
|
+
var _ref229 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee229(size, page, query, visibility) {
|
|
4280
|
+
return _regeneratorRuntime.wrap(function _callee229$(_context229) {
|
|
4281
|
+
while (1) switch (_context229.prev = _context229.next) {
|
|
4282
|
+
case 0:
|
|
4283
|
+
return _context229.abrupt("return", api.get("/educationPayments/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name)));
|
|
4284
|
+
case 1:
|
|
4285
|
+
case "end":
|
|
4286
|
+
return _context229.stop();
|
|
4287
|
+
}
|
|
4288
|
+
}, _callee229);
|
|
4289
|
+
}));
|
|
4290
|
+
return function (_x355, _x356, _x357, _x358) {
|
|
4291
|
+
return _ref229.apply(this, arguments);
|
|
4292
|
+
};
|
|
4293
|
+
}());
|
|
4294
|
+
_defineProperty(Services, "getEducationpaymentsAll", /*#__PURE__*/function () {
|
|
4295
|
+
var _ref230 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee230(visibility) {
|
|
4296
|
+
return _regeneratorRuntime.wrap(function _callee230$(_context230) {
|
|
4297
|
+
while (1) switch (_context230.prev = _context230.next) {
|
|
4298
|
+
case 0:
|
|
4299
|
+
return _context230.abrupt("return", api.get("/educationPayments?visibility=".concat(visibility)));
|
|
4300
|
+
case 1:
|
|
4301
|
+
case "end":
|
|
4302
|
+
return _context230.stop();
|
|
4303
|
+
}
|
|
4304
|
+
}, _callee230);
|
|
4305
|
+
}));
|
|
4306
|
+
return function (_x359) {
|
|
4307
|
+
return _ref230.apply(this, arguments);
|
|
4308
|
+
};
|
|
4309
|
+
}());
|
|
4310
|
+
_defineProperty(Services, "addEducationpayments", /*#__PURE__*/function () {
|
|
4311
|
+
var _ref231 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee231(value) {
|
|
4312
|
+
return _regeneratorRuntime.wrap(function _callee231$(_context231) {
|
|
4313
|
+
while (1) switch (_context231.prev = _context231.next) {
|
|
4314
|
+
case 0:
|
|
4315
|
+
return _context231.abrupt("return", api.post("/educationPayments", value));
|
|
4316
|
+
case 1:
|
|
4317
|
+
case "end":
|
|
4318
|
+
return _context231.stop();
|
|
4319
|
+
}
|
|
4320
|
+
}, _callee231);
|
|
4321
|
+
}));
|
|
4322
|
+
return function (_x360) {
|
|
4323
|
+
return _ref231.apply(this, arguments);
|
|
4324
|
+
};
|
|
4325
|
+
}());
|
|
4326
|
+
_defineProperty(Services, "editEducationpayments", /*#__PURE__*/function () {
|
|
4327
|
+
var _ref232 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee232(value) {
|
|
4328
|
+
return _regeneratorRuntime.wrap(function _callee232$(_context232) {
|
|
4329
|
+
while (1) switch (_context232.prev = _context232.next) {
|
|
4330
|
+
case 0:
|
|
4331
|
+
return _context232.abrupt("return", api.put("/educationPayments/".concat(value === null || value === void 0 ? void 0 : value.id), value));
|
|
4332
|
+
case 1:
|
|
4333
|
+
case "end":
|
|
4334
|
+
return _context232.stop();
|
|
4335
|
+
}
|
|
4336
|
+
}, _callee232);
|
|
4337
|
+
}));
|
|
4338
|
+
return function (_x361) {
|
|
4339
|
+
return _ref232.apply(this, arguments);
|
|
4340
|
+
};
|
|
4341
|
+
}());
|
|
4342
|
+
_defineProperty(Services, "deleteEducationpayments", /*#__PURE__*/function () {
|
|
4343
|
+
var _ref233 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee233(id) {
|
|
4344
|
+
return _regeneratorRuntime.wrap(function _callee233$(_context233) {
|
|
4345
|
+
while (1) switch (_context233.prev = _context233.next) {
|
|
4346
|
+
case 0:
|
|
4347
|
+
return _context233.abrupt("return", api["delete"]("/educationPayments/".concat(id)));
|
|
4348
|
+
case 1:
|
|
4349
|
+
case "end":
|
|
4350
|
+
return _context233.stop();
|
|
4351
|
+
}
|
|
4352
|
+
}, _callee233);
|
|
4353
|
+
}));
|
|
4354
|
+
return function (_x362) {
|
|
4355
|
+
return _ref233.apply(this, arguments);
|
|
4356
|
+
};
|
|
4357
|
+
}());
|
|
4358
|
+
_defineProperty(Services, "educationPaymentsVisibility", /*#__PURE__*/function () {
|
|
4359
|
+
var _ref234 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee234(data) {
|
|
4360
|
+
return _regeneratorRuntime.wrap(function _callee234$(_context234) {
|
|
4361
|
+
while (1) switch (_context234.prev = _context234.next) {
|
|
4362
|
+
case 0:
|
|
4363
|
+
return _context234.abrupt("return", api.patch("/educationPayments/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)));
|
|
4364
|
+
case 1:
|
|
4365
|
+
case "end":
|
|
4366
|
+
return _context234.stop();
|
|
4367
|
+
}
|
|
4368
|
+
}, _callee234);
|
|
4369
|
+
}));
|
|
4370
|
+
return function (_x363) {
|
|
4371
|
+
return _ref234.apply(this, arguments);
|
|
4372
|
+
};
|
|
4373
|
+
}());
|
|
4374
|
+
_defineProperty(Services, "getEducationlevels", /*#__PURE__*/function () {
|
|
4375
|
+
var _ref235 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee235(size, page, query, visibility) {
|
|
4376
|
+
return _regeneratorRuntime.wrap(function _callee235$(_context235) {
|
|
4377
|
+
while (1) switch (_context235.prev = _context235.next) {
|
|
4378
|
+
case 0:
|
|
4379
|
+
return _context235.abrupt("return", api.get("/educationlevels/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name)));
|
|
4380
|
+
case 1:
|
|
4381
|
+
case "end":
|
|
4382
|
+
return _context235.stop();
|
|
4383
|
+
}
|
|
4384
|
+
}, _callee235);
|
|
4385
|
+
}));
|
|
4386
|
+
return function (_x364, _x365, _x366, _x367) {
|
|
4387
|
+
return _ref235.apply(this, arguments);
|
|
4388
|
+
};
|
|
4389
|
+
}());
|
|
4390
|
+
_defineProperty(Services, "getEducationlevelsAll", /*#__PURE__*/function () {
|
|
4391
|
+
var _ref236 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee236(visibility) {
|
|
4392
|
+
return _regeneratorRuntime.wrap(function _callee236$(_context236) {
|
|
4393
|
+
while (1) switch (_context236.prev = _context236.next) {
|
|
4394
|
+
case 0:
|
|
4395
|
+
return _context236.abrupt("return", api.get("/educationlevels?visibility=".concat(visibility)));
|
|
4396
|
+
case 1:
|
|
4397
|
+
case "end":
|
|
4398
|
+
return _context236.stop();
|
|
4399
|
+
}
|
|
4400
|
+
}, _callee236);
|
|
4401
|
+
}));
|
|
4402
|
+
return function (_x368) {
|
|
4403
|
+
return _ref236.apply(this, arguments);
|
|
4404
|
+
};
|
|
4405
|
+
}());
|
|
4406
|
+
_defineProperty(Services, "addEducationlevels", /*#__PURE__*/function () {
|
|
4407
|
+
var _ref237 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee237(value) {
|
|
4408
|
+
return _regeneratorRuntime.wrap(function _callee237$(_context237) {
|
|
4409
|
+
while (1) switch (_context237.prev = _context237.next) {
|
|
4410
|
+
case 0:
|
|
4411
|
+
return _context237.abrupt("return", api.post("/educationlevels", value));
|
|
4412
|
+
case 1:
|
|
4413
|
+
case "end":
|
|
4414
|
+
return _context237.stop();
|
|
4415
|
+
}
|
|
4416
|
+
}, _callee237);
|
|
4417
|
+
}));
|
|
4418
|
+
return function (_x369) {
|
|
4419
|
+
return _ref237.apply(this, arguments);
|
|
4420
|
+
};
|
|
4421
|
+
}());
|
|
4422
|
+
_defineProperty(Services, "editEducationlevels", /*#__PURE__*/function () {
|
|
4423
|
+
var _ref238 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee238(value) {
|
|
4424
|
+
return _regeneratorRuntime.wrap(function _callee238$(_context238) {
|
|
4425
|
+
while (1) switch (_context238.prev = _context238.next) {
|
|
4426
|
+
case 0:
|
|
4427
|
+
return _context238.abrupt("return", api.put("/educationlevels/".concat(value === null || value === void 0 ? void 0 : value.id), value));
|
|
4428
|
+
case 1:
|
|
4429
|
+
case "end":
|
|
4430
|
+
return _context238.stop();
|
|
4431
|
+
}
|
|
4432
|
+
}, _callee238);
|
|
4433
|
+
}));
|
|
4434
|
+
return function (_x370) {
|
|
4435
|
+
return _ref238.apply(this, arguments);
|
|
4436
|
+
};
|
|
4437
|
+
}());
|
|
4438
|
+
_defineProperty(Services, "deleteEducationlevels", /*#__PURE__*/function () {
|
|
4439
|
+
var _ref239 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee239(id) {
|
|
4440
|
+
return _regeneratorRuntime.wrap(function _callee239$(_context239) {
|
|
4441
|
+
while (1) switch (_context239.prev = _context239.next) {
|
|
4442
|
+
case 0:
|
|
4443
|
+
return _context239.abrupt("return", api["delete"]("/educationlevels/".concat(id)));
|
|
4444
|
+
case 1:
|
|
4445
|
+
case "end":
|
|
4446
|
+
return _context239.stop();
|
|
4447
|
+
}
|
|
4448
|
+
}, _callee239);
|
|
4449
|
+
}));
|
|
4450
|
+
return function (_x371) {
|
|
4451
|
+
return _ref239.apply(this, arguments);
|
|
4452
|
+
};
|
|
4453
|
+
}());
|
|
4454
|
+
_defineProperty(Services, "educationlevelsVisibility", /*#__PURE__*/function () {
|
|
4455
|
+
var _ref240 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee240(data) {
|
|
4456
|
+
return _regeneratorRuntime.wrap(function _callee240$(_context240) {
|
|
4457
|
+
while (1) switch (_context240.prev = _context240.next) {
|
|
4458
|
+
case 0:
|
|
4459
|
+
return _context240.abrupt("return", api.patch("/educationlevels/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)));
|
|
4460
|
+
case 1:
|
|
4461
|
+
case "end":
|
|
4462
|
+
return _context240.stop();
|
|
4463
|
+
}
|
|
4464
|
+
}, _callee240);
|
|
4465
|
+
}));
|
|
4466
|
+
return function (_x372) {
|
|
4467
|
+
return _ref240.apply(this, arguments);
|
|
4468
|
+
};
|
|
4469
|
+
}());
|
|
4470
|
+
_defineProperty(Services, "getReprimandtypes", /*#__PURE__*/function () {
|
|
4471
|
+
var _ref241 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee241(size, page, query, visibility) {
|
|
4472
|
+
return _regeneratorRuntime.wrap(function _callee241$(_context241) {
|
|
4473
|
+
while (1) switch (_context241.prev = _context241.next) {
|
|
4474
|
+
case 0:
|
|
4475
|
+
return _context241.abrupt("return", api.get("/reprimandTypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name)));
|
|
4476
|
+
case 1:
|
|
4477
|
+
case "end":
|
|
4478
|
+
return _context241.stop();
|
|
4479
|
+
}
|
|
4480
|
+
}, _callee241);
|
|
4481
|
+
}));
|
|
4482
|
+
return function (_x373, _x374, _x375, _x376) {
|
|
4483
|
+
return _ref241.apply(this, arguments);
|
|
4484
|
+
};
|
|
4485
|
+
}());
|
|
4486
|
+
_defineProperty(Services, "getReprimandtypesAll", /*#__PURE__*/function () {
|
|
4487
|
+
var _ref242 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee242(visibility) {
|
|
4488
|
+
return _regeneratorRuntime.wrap(function _callee242$(_context242) {
|
|
4489
|
+
while (1) switch (_context242.prev = _context242.next) {
|
|
4490
|
+
case 0:
|
|
4491
|
+
return _context242.abrupt("return", api.get("/reprimandTypes?visibility=".concat(visibility)));
|
|
4492
|
+
case 1:
|
|
4493
|
+
case "end":
|
|
4494
|
+
return _context242.stop();
|
|
4495
|
+
}
|
|
4496
|
+
}, _callee242);
|
|
4497
|
+
}));
|
|
4498
|
+
return function (_x377) {
|
|
4499
|
+
return _ref242.apply(this, arguments);
|
|
4500
|
+
};
|
|
4501
|
+
}());
|
|
4502
|
+
_defineProperty(Services, "addReprimandtypes", /*#__PURE__*/function () {
|
|
4503
|
+
var _ref243 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee243(value) {
|
|
4504
|
+
return _regeneratorRuntime.wrap(function _callee243$(_context243) {
|
|
4505
|
+
while (1) switch (_context243.prev = _context243.next) {
|
|
4506
|
+
case 0:
|
|
4507
|
+
return _context243.abrupt("return", api.post("/reprimandTypes", value));
|
|
4508
|
+
case 1:
|
|
4509
|
+
case "end":
|
|
4510
|
+
return _context243.stop();
|
|
4511
|
+
}
|
|
4512
|
+
}, _callee243);
|
|
4513
|
+
}));
|
|
4514
|
+
return function (_x378) {
|
|
4515
|
+
return _ref243.apply(this, arguments);
|
|
4516
|
+
};
|
|
4517
|
+
}());
|
|
4518
|
+
_defineProperty(Services, "editReprimandtypes", /*#__PURE__*/function () {
|
|
4519
|
+
var _ref244 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee244(value) {
|
|
4520
|
+
return _regeneratorRuntime.wrap(function _callee244$(_context244) {
|
|
4521
|
+
while (1) switch (_context244.prev = _context244.next) {
|
|
4522
|
+
case 0:
|
|
4523
|
+
return _context244.abrupt("return", api.put("/reprimandTypes/".concat(value === null || value === void 0 ? void 0 : value.id), value));
|
|
4524
|
+
case 1:
|
|
4525
|
+
case "end":
|
|
4526
|
+
return _context244.stop();
|
|
4527
|
+
}
|
|
4528
|
+
}, _callee244);
|
|
4529
|
+
}));
|
|
4530
|
+
return function (_x379) {
|
|
4531
|
+
return _ref244.apply(this, arguments);
|
|
4532
|
+
};
|
|
4533
|
+
}());
|
|
4534
|
+
_defineProperty(Services, "deleteReprimandtypes", /*#__PURE__*/function () {
|
|
4535
|
+
var _ref245 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee245(id) {
|
|
4536
|
+
return _regeneratorRuntime.wrap(function _callee245$(_context245) {
|
|
4537
|
+
while (1) switch (_context245.prev = _context245.next) {
|
|
4538
|
+
case 0:
|
|
4539
|
+
return _context245.abrupt("return", api["delete"]("/reprimandTypes/".concat(id)));
|
|
4540
|
+
case 1:
|
|
4541
|
+
case "end":
|
|
4542
|
+
return _context245.stop();
|
|
4543
|
+
}
|
|
4544
|
+
}, _callee245);
|
|
4545
|
+
}));
|
|
4546
|
+
return function (_x380) {
|
|
4547
|
+
return _ref245.apply(this, arguments);
|
|
4548
|
+
};
|
|
4549
|
+
}());
|
|
4550
|
+
_defineProperty(Services, "reprimandTypesVisibility", /*#__PURE__*/function () {
|
|
4551
|
+
var _ref246 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee246(data) {
|
|
4552
|
+
return _regeneratorRuntime.wrap(function _callee246$(_context246) {
|
|
4553
|
+
while (1) switch (_context246.prev = _context246.next) {
|
|
4554
|
+
case 0:
|
|
4555
|
+
return _context246.abrupt("return", api.patch("/reprimandTypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)));
|
|
4556
|
+
case 1:
|
|
4557
|
+
case "end":
|
|
4558
|
+
return _context246.stop();
|
|
4559
|
+
}
|
|
4560
|
+
}, _callee246);
|
|
4561
|
+
}));
|
|
4562
|
+
return function (_x381) {
|
|
4563
|
+
return _ref246.apply(this, arguments);
|
|
4564
|
+
};
|
|
4565
|
+
}());
|
|
4566
|
+
_defineProperty(Services, "getSpecialdays", /*#__PURE__*/function () {
|
|
4567
|
+
var _ref247 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee247(size, page, query, visibility) {
|
|
4568
|
+
return _regeneratorRuntime.wrap(function _callee247$(_context247) {
|
|
4569
|
+
while (1) switch (_context247.prev = _context247.next) {
|
|
4570
|
+
case 0:
|
|
4571
|
+
return _context247.abrupt("return", api.get("/specialdays/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name)));
|
|
4572
|
+
case 1:
|
|
4573
|
+
case "end":
|
|
4574
|
+
return _context247.stop();
|
|
4575
|
+
}
|
|
4576
|
+
}, _callee247);
|
|
4577
|
+
}));
|
|
4578
|
+
return function (_x382, _x383, _x384, _x385) {
|
|
4579
|
+
return _ref247.apply(this, arguments);
|
|
4580
|
+
};
|
|
4581
|
+
}());
|
|
4582
|
+
_defineProperty(Services, "getSpecialdaysAll", /*#__PURE__*/function () {
|
|
4583
|
+
var _ref248 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee248(visibility) {
|
|
4584
|
+
return _regeneratorRuntime.wrap(function _callee248$(_context248) {
|
|
4585
|
+
while (1) switch (_context248.prev = _context248.next) {
|
|
4586
|
+
case 0:
|
|
4587
|
+
return _context248.abrupt("return", api.get("/specialdays?visibility=".concat(visibility)));
|
|
4588
|
+
case 1:
|
|
4589
|
+
case "end":
|
|
4590
|
+
return _context248.stop();
|
|
4591
|
+
}
|
|
4592
|
+
}, _callee248);
|
|
4593
|
+
}));
|
|
4594
|
+
return function (_x386) {
|
|
4595
|
+
return _ref248.apply(this, arguments);
|
|
4596
|
+
};
|
|
4597
|
+
}());
|
|
4598
|
+
_defineProperty(Services, "addSpecialdays", /*#__PURE__*/function () {
|
|
4599
|
+
var _ref249 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee249(value) {
|
|
4600
|
+
return _regeneratorRuntime.wrap(function _callee249$(_context249) {
|
|
4601
|
+
while (1) switch (_context249.prev = _context249.next) {
|
|
4602
|
+
case 0:
|
|
4603
|
+
return _context249.abrupt("return", api.post("/specialdays", value));
|
|
4604
|
+
case 1:
|
|
4605
|
+
case "end":
|
|
4606
|
+
return _context249.stop();
|
|
4607
|
+
}
|
|
4608
|
+
}, _callee249);
|
|
4609
|
+
}));
|
|
4610
|
+
return function (_x387) {
|
|
4611
|
+
return _ref249.apply(this, arguments);
|
|
4612
|
+
};
|
|
4613
|
+
}());
|
|
4614
|
+
_defineProperty(Services, "editSpecialdays", /*#__PURE__*/function () {
|
|
4615
|
+
var _ref250 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee250(value) {
|
|
4616
|
+
return _regeneratorRuntime.wrap(function _callee250$(_context250) {
|
|
4617
|
+
while (1) switch (_context250.prev = _context250.next) {
|
|
4618
|
+
case 0:
|
|
4619
|
+
return _context250.abrupt("return", api.put("/specialdays/".concat(value === null || value === void 0 ? void 0 : value.id), value));
|
|
4620
|
+
case 1:
|
|
4621
|
+
case "end":
|
|
4622
|
+
return _context250.stop();
|
|
4623
|
+
}
|
|
4624
|
+
}, _callee250);
|
|
4625
|
+
}));
|
|
4626
|
+
return function (_x388) {
|
|
4627
|
+
return _ref250.apply(this, arguments);
|
|
4628
|
+
};
|
|
4629
|
+
}());
|
|
4630
|
+
_defineProperty(Services, "deleteSpecialdays", /*#__PURE__*/function () {
|
|
4631
|
+
var _ref251 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee251(id) {
|
|
4632
|
+
return _regeneratorRuntime.wrap(function _callee251$(_context251) {
|
|
4633
|
+
while (1) switch (_context251.prev = _context251.next) {
|
|
4634
|
+
case 0:
|
|
4635
|
+
return _context251.abrupt("return", api["delete"]("/specialdays/".concat(id)));
|
|
4636
|
+
case 1:
|
|
4637
|
+
case "end":
|
|
4638
|
+
return _context251.stop();
|
|
4639
|
+
}
|
|
4640
|
+
}, _callee251);
|
|
4641
|
+
}));
|
|
4642
|
+
return function (_x389) {
|
|
4643
|
+
return _ref251.apply(this, arguments);
|
|
4644
|
+
};
|
|
4645
|
+
}());
|
|
4646
|
+
_defineProperty(Services, "specialdaysVisibility", /*#__PURE__*/function () {
|
|
4647
|
+
var _ref252 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee252(data) {
|
|
4648
|
+
return _regeneratorRuntime.wrap(function _callee252$(_context252) {
|
|
4649
|
+
while (1) switch (_context252.prev = _context252.next) {
|
|
4650
|
+
case 0:
|
|
4651
|
+
return _context252.abrupt("return", api.patch("/specialdays/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked)));
|
|
4652
|
+
case 1:
|
|
4653
|
+
case "end":
|
|
4654
|
+
return _context252.stop();
|
|
4655
|
+
}
|
|
4656
|
+
}, _callee252);
|
|
4657
|
+
}));
|
|
4658
|
+
return function (_x390) {
|
|
4659
|
+
return _ref252.apply(this, arguments);
|
|
4660
|
+
};
|
|
4661
|
+
}());
|
|
4662
|
+
_defineProperty(Services, "getCategories", /*#__PURE__*/function () {
|
|
4663
|
+
var _ref253 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee253(size, page, query, visibility) {
|
|
4664
|
+
return _regeneratorRuntime.wrap(function _callee253$(_context253) {
|
|
4665
|
+
while (1) switch (_context253.prev = _context253.next) {
|
|
4666
|
+
case 0:
|
|
4667
|
+
_context253.next = 2;
|
|
4668
|
+
return api.get("/categories/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
4669
|
+
case 2:
|
|
4670
|
+
return _context253.abrupt("return", _context253.sent);
|
|
4671
|
+
case 3:
|
|
4672
|
+
case "end":
|
|
4673
|
+
return _context253.stop();
|
|
4674
|
+
}
|
|
4675
|
+
}, _callee253);
|
|
4676
|
+
}));
|
|
4677
|
+
return function (_x391, _x392, _x393, _x394) {
|
|
4678
|
+
return _ref253.apply(this, arguments);
|
|
4679
|
+
};
|
|
4680
|
+
}());
|
|
4681
|
+
_defineProperty(Services, "getCategoriesAll", /*#__PURE__*/function () {
|
|
4682
|
+
var _ref254 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee254(visibility) {
|
|
4683
|
+
return _regeneratorRuntime.wrap(function _callee254$(_context254) {
|
|
4684
|
+
while (1) switch (_context254.prev = _context254.next) {
|
|
4685
|
+
case 0:
|
|
4686
|
+
_context254.next = 2;
|
|
4687
|
+
return api.get("/categories?visibility=".concat(visibility));
|
|
4688
|
+
case 2:
|
|
4689
|
+
return _context254.abrupt("return", _context254.sent);
|
|
4690
|
+
case 3:
|
|
4691
|
+
case "end":
|
|
4692
|
+
return _context254.stop();
|
|
4693
|
+
}
|
|
4694
|
+
}, _callee254);
|
|
4695
|
+
}));
|
|
4696
|
+
return function (_x395) {
|
|
4697
|
+
return _ref254.apply(this, arguments);
|
|
4698
|
+
};
|
|
4699
|
+
}());
|
|
4700
|
+
_defineProperty(Services, "addCategories", /*#__PURE__*/function () {
|
|
4701
|
+
var _ref255 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee255(value) {
|
|
4702
|
+
return _regeneratorRuntime.wrap(function _callee255$(_context255) {
|
|
4703
|
+
while (1) switch (_context255.prev = _context255.next) {
|
|
4704
|
+
case 0:
|
|
4705
|
+
_context255.next = 2;
|
|
4706
|
+
return api.post("/categories", value);
|
|
4707
|
+
case 2:
|
|
4708
|
+
return _context255.abrupt("return", _context255.sent);
|
|
4709
|
+
case 3:
|
|
4710
|
+
case "end":
|
|
4711
|
+
return _context255.stop();
|
|
4712
|
+
}
|
|
4713
|
+
}, _callee255);
|
|
4714
|
+
}));
|
|
4715
|
+
return function (_x396) {
|
|
4716
|
+
return _ref255.apply(this, arguments);
|
|
4717
|
+
};
|
|
4718
|
+
}());
|
|
4719
|
+
_defineProperty(Services, "editCategories", /*#__PURE__*/function () {
|
|
4720
|
+
var _ref256 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee256(value) {
|
|
4721
|
+
return _regeneratorRuntime.wrap(function _callee256$(_context256) {
|
|
4722
|
+
while (1) switch (_context256.prev = _context256.next) {
|
|
4723
|
+
case 0:
|
|
4724
|
+
_context256.next = 2;
|
|
4725
|
+
return api.put("/categories/".concat(value === null || value === void 0 ? void 0 : value.id), value);
|
|
4726
|
+
case 2:
|
|
4727
|
+
return _context256.abrupt("return", _context256.sent);
|
|
4728
|
+
case 3:
|
|
4729
|
+
case "end":
|
|
4730
|
+
return _context256.stop();
|
|
4731
|
+
}
|
|
4732
|
+
}, _callee256);
|
|
4733
|
+
}));
|
|
4734
|
+
return function (_x397) {
|
|
4735
|
+
return _ref256.apply(this, arguments);
|
|
4736
|
+
};
|
|
4737
|
+
}());
|
|
4738
|
+
_defineProperty(Services, "deleteCategories", /*#__PURE__*/function () {
|
|
4739
|
+
var _ref257 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee257(id) {
|
|
4740
|
+
return _regeneratorRuntime.wrap(function _callee257$(_context257) {
|
|
4741
|
+
while (1) switch (_context257.prev = _context257.next) {
|
|
4742
|
+
case 0:
|
|
4743
|
+
_context257.next = 2;
|
|
4744
|
+
return api["delete"]("/categories/".concat(id));
|
|
4745
|
+
case 2:
|
|
4746
|
+
return _context257.abrupt("return", _context257.sent);
|
|
4747
|
+
case 3:
|
|
4748
|
+
case "end":
|
|
4749
|
+
return _context257.stop();
|
|
4750
|
+
}
|
|
4751
|
+
}, _callee257);
|
|
4752
|
+
}));
|
|
4753
|
+
return function (_x398) {
|
|
4754
|
+
return _ref257.apply(this, arguments);
|
|
4755
|
+
};
|
|
4756
|
+
}());
|
|
4757
|
+
_defineProperty(Services, "categoriesVisibility", /*#__PURE__*/function () {
|
|
4758
|
+
var _ref258 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee258(data) {
|
|
4759
|
+
return _regeneratorRuntime.wrap(function _callee258$(_context258) {
|
|
4760
|
+
while (1) switch (_context258.prev = _context258.next) {
|
|
4761
|
+
case 0:
|
|
4762
|
+
_context258.next = 2;
|
|
4763
|
+
return api.patch("/categories/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
4764
|
+
case 2:
|
|
4765
|
+
return _context258.abrupt("return", _context258.sent);
|
|
4766
|
+
case 3:
|
|
4767
|
+
case "end":
|
|
4768
|
+
return _context258.stop();
|
|
4769
|
+
}
|
|
4770
|
+
}, _callee258);
|
|
4771
|
+
}));
|
|
4772
|
+
return function (_x399) {
|
|
4773
|
+
return _ref258.apply(this, arguments);
|
|
4774
|
+
};
|
|
4775
|
+
}());
|
|
4776
|
+
_defineProperty(Services, "getRegions", /*#__PURE__*/function () {
|
|
4777
|
+
var _ref259 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee259(size, page, query, visibility) {
|
|
4778
|
+
return _regeneratorRuntime.wrap(function _callee259$(_context259) {
|
|
4779
|
+
while (1) switch (_context259.prev = _context259.next) {
|
|
4780
|
+
case 0:
|
|
4781
|
+
_context259.next = 2;
|
|
4782
|
+
return api.get("/regions/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
4783
|
+
case 2:
|
|
4784
|
+
return _context259.abrupt("return", _context259.sent);
|
|
4785
|
+
case 3:
|
|
4786
|
+
case "end":
|
|
4787
|
+
return _context259.stop();
|
|
4788
|
+
}
|
|
4789
|
+
}, _callee259);
|
|
4790
|
+
}));
|
|
4791
|
+
return function (_x400, _x401, _x402, _x403) {
|
|
4792
|
+
return _ref259.apply(this, arguments);
|
|
4793
|
+
};
|
|
4794
|
+
}());
|
|
4795
|
+
_defineProperty(Services, "getRegionsAll", /*#__PURE__*/function () {
|
|
4796
|
+
var _ref260 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee260(visibility) {
|
|
4797
|
+
return _regeneratorRuntime.wrap(function _callee260$(_context260) {
|
|
4798
|
+
while (1) switch (_context260.prev = _context260.next) {
|
|
4799
|
+
case 0:
|
|
4800
|
+
_context260.next = 2;
|
|
4801
|
+
return api.get("/regions?visibility=".concat(visibility));
|
|
4802
|
+
case 2:
|
|
4803
|
+
return _context260.abrupt("return", _context260.sent);
|
|
4804
|
+
case 3:
|
|
4805
|
+
case "end":
|
|
4806
|
+
return _context260.stop();
|
|
4807
|
+
}
|
|
4808
|
+
}, _callee260);
|
|
4809
|
+
}));
|
|
4810
|
+
return function (_x404) {
|
|
4811
|
+
return _ref260.apply(this, arguments);
|
|
4812
|
+
};
|
|
4813
|
+
}());
|
|
4814
|
+
_defineProperty(Services, "treeSelect", /*#__PURE__*/_asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee261() {
|
|
4815
|
+
var response;
|
|
4816
|
+
return _regeneratorRuntime.wrap(function _callee261$(_context261) {
|
|
4817
|
+
while (1) switch (_context261.prev = _context261.next) {
|
|
4818
|
+
case 0:
|
|
4819
|
+
_context261.next = 2;
|
|
4820
|
+
return api.get("/regions/".concat(21, "/page/", 1));
|
|
4821
|
+
case 2:
|
|
4822
|
+
response = _context261.sent;
|
|
4823
|
+
return _context261.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
4824
|
+
case 4:
|
|
4825
|
+
case "end":
|
|
4826
|
+
return _context261.stop();
|
|
4827
|
+
}
|
|
4828
|
+
}, _callee261);
|
|
4829
|
+
})));
|
|
4830
|
+
_defineProperty(Services, "addRegions", /*#__PURE__*/function () {
|
|
4831
|
+
var _ref262 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee262(value) {
|
|
4832
|
+
return _regeneratorRuntime.wrap(function _callee262$(_context262) {
|
|
4833
|
+
while (1) switch (_context262.prev = _context262.next) {
|
|
4834
|
+
case 0:
|
|
4835
|
+
_context262.next = 2;
|
|
4836
|
+
return api.post("/regions", value);
|
|
4837
|
+
case 2:
|
|
4838
|
+
return _context262.abrupt("return", _context262.sent);
|
|
4839
|
+
case 3:
|
|
4840
|
+
case "end":
|
|
4841
|
+
return _context262.stop();
|
|
4842
|
+
}
|
|
4843
|
+
}, _callee262);
|
|
4844
|
+
}));
|
|
4845
|
+
return function (_x405) {
|
|
4846
|
+
return _ref262.apply(this, arguments);
|
|
4847
|
+
};
|
|
4848
|
+
}());
|
|
4849
|
+
_defineProperty(Services, "editRegions", /*#__PURE__*/function () {
|
|
4850
|
+
var _ref263 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee263(value) {
|
|
4851
|
+
return _regeneratorRuntime.wrap(function _callee263$(_context263) {
|
|
4852
|
+
while (1) switch (_context263.prev = _context263.next) {
|
|
4853
|
+
case 0:
|
|
4854
|
+
_context263.next = 2;
|
|
4855
|
+
return api.put("/regions/".concat(value === null || value === void 0 ? void 0 : value.id), value);
|
|
4856
|
+
case 2:
|
|
4857
|
+
return _context263.abrupt("return", _context263.sent);
|
|
4858
|
+
case 3:
|
|
4859
|
+
case "end":
|
|
4860
|
+
return _context263.stop();
|
|
4861
|
+
}
|
|
4862
|
+
}, _callee263);
|
|
4863
|
+
}));
|
|
4864
|
+
return function (_x406) {
|
|
4865
|
+
return _ref263.apply(this, arguments);
|
|
4866
|
+
};
|
|
4867
|
+
}());
|
|
4868
|
+
_defineProperty(Services, "deleteRegions", /*#__PURE__*/function () {
|
|
4869
|
+
var _ref264 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee264(id) {
|
|
4870
|
+
return _regeneratorRuntime.wrap(function _callee264$(_context264) {
|
|
4871
|
+
while (1) switch (_context264.prev = _context264.next) {
|
|
4872
|
+
case 0:
|
|
4873
|
+
_context264.next = 2;
|
|
4874
|
+
return api["delete"]("/regions/".concat(id));
|
|
4875
|
+
case 2:
|
|
4876
|
+
return _context264.abrupt("return", _context264.sent);
|
|
4877
|
+
case 3:
|
|
4878
|
+
case "end":
|
|
4879
|
+
return _context264.stop();
|
|
4880
|
+
}
|
|
4881
|
+
}, _callee264);
|
|
4882
|
+
}));
|
|
4883
|
+
return function (_x407) {
|
|
4884
|
+
return _ref264.apply(this, arguments);
|
|
4885
|
+
};
|
|
4886
|
+
}());
|
|
4887
|
+
_defineProperty(Services, "regionsVisibility", /*#__PURE__*/function () {
|
|
4888
|
+
var _ref265 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee265(data) {
|
|
4889
|
+
return _regeneratorRuntime.wrap(function _callee265$(_context265) {
|
|
4890
|
+
while (1) switch (_context265.prev = _context265.next) {
|
|
4891
|
+
case 0:
|
|
4892
|
+
_context265.next = 2;
|
|
4893
|
+
return api.patch("/regions/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
4894
|
+
case 2:
|
|
4895
|
+
return _context265.abrupt("return", _context265.sent);
|
|
4896
|
+
case 3:
|
|
4897
|
+
case "end":
|
|
4898
|
+
return _context265.stop();
|
|
4899
|
+
}
|
|
4900
|
+
}, _callee265);
|
|
4901
|
+
}));
|
|
4902
|
+
return function (_x408) {
|
|
4903
|
+
return _ref265.apply(this, arguments);
|
|
4904
|
+
};
|
|
4905
|
+
}());
|
|
4906
|
+
_defineProperty(Services, "getAreas", /*#__PURE__*/function () {
|
|
4907
|
+
var _ref266 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee266(size, page, query, visibility) {
|
|
4908
|
+
return _regeneratorRuntime.wrap(function _callee266$(_context266) {
|
|
4909
|
+
while (1) switch (_context266.prev = _context266.next) {
|
|
4910
|
+
case 0:
|
|
4911
|
+
_context266.next = 2;
|
|
4912
|
+
return api.get("/areas/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
4913
|
+
case 2:
|
|
4914
|
+
return _context266.abrupt("return", _context266.sent);
|
|
4915
|
+
case 3:
|
|
4916
|
+
case "end":
|
|
4917
|
+
return _context266.stop();
|
|
4918
|
+
}
|
|
4919
|
+
}, _callee266);
|
|
4920
|
+
}));
|
|
4921
|
+
return function (_x409, _x410, _x411, _x412) {
|
|
4922
|
+
return _ref266.apply(this, arguments);
|
|
4923
|
+
};
|
|
4924
|
+
}());
|
|
4925
|
+
_defineProperty(Services, "getAreasAll", /*#__PURE__*/function () {
|
|
4926
|
+
var _ref267 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee267(visibility) {
|
|
4927
|
+
return _regeneratorRuntime.wrap(function _callee267$(_context267) {
|
|
4928
|
+
while (1) switch (_context267.prev = _context267.next) {
|
|
4929
|
+
case 0:
|
|
4930
|
+
_context267.next = 2;
|
|
4931
|
+
return api.get("/areas?visibility=".concat(visibility));
|
|
4932
|
+
case 2:
|
|
4933
|
+
return _context267.abrupt("return", _context267.sent);
|
|
4934
|
+
case 3:
|
|
4935
|
+
case "end":
|
|
4936
|
+
return _context267.stop();
|
|
4937
|
+
}
|
|
4938
|
+
}, _callee267);
|
|
4939
|
+
}));
|
|
4940
|
+
return function (_x413) {
|
|
4941
|
+
return _ref267.apply(this, arguments);
|
|
4942
|
+
};
|
|
4943
|
+
}());
|
|
4944
|
+
_defineProperty(Services, "addAreas", /*#__PURE__*/function () {
|
|
4945
|
+
var _ref268 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee268(value) {
|
|
4946
|
+
return _regeneratorRuntime.wrap(function _callee268$(_context268) {
|
|
4947
|
+
while (1) switch (_context268.prev = _context268.next) {
|
|
4948
|
+
case 0:
|
|
4949
|
+
_context268.next = 2;
|
|
4950
|
+
return api.post("/areas", value);
|
|
4951
|
+
case 2:
|
|
4952
|
+
return _context268.abrupt("return", _context268.sent);
|
|
4953
|
+
case 3:
|
|
4954
|
+
case "end":
|
|
4955
|
+
return _context268.stop();
|
|
4956
|
+
}
|
|
4957
|
+
}, _callee268);
|
|
4958
|
+
}));
|
|
4959
|
+
return function (_x414) {
|
|
4960
|
+
return _ref268.apply(this, arguments);
|
|
4961
|
+
};
|
|
4962
|
+
}());
|
|
4963
|
+
_defineProperty(Services, "editAreas", /*#__PURE__*/function () {
|
|
4964
|
+
var _ref269 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee269(value) {
|
|
4965
|
+
return _regeneratorRuntime.wrap(function _callee269$(_context269) {
|
|
4966
|
+
while (1) switch (_context269.prev = _context269.next) {
|
|
4967
|
+
case 0:
|
|
4968
|
+
_context269.next = 2;
|
|
4969
|
+
return api.put("/areas/".concat(value === null || value === void 0 ? void 0 : value.id), value);
|
|
4970
|
+
case 2:
|
|
4971
|
+
return _context269.abrupt("return", _context269.sent);
|
|
4972
|
+
case 3:
|
|
4973
|
+
case "end":
|
|
4974
|
+
return _context269.stop();
|
|
4975
|
+
}
|
|
4976
|
+
}, _callee269);
|
|
4977
|
+
}));
|
|
4978
|
+
return function (_x415) {
|
|
4979
|
+
return _ref269.apply(this, arguments);
|
|
4980
|
+
};
|
|
4981
|
+
}());
|
|
4982
|
+
_defineProperty(Services, "deleteAreas", /*#__PURE__*/function () {
|
|
4983
|
+
var _ref270 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee270(id) {
|
|
4984
|
+
return _regeneratorRuntime.wrap(function _callee270$(_context270) {
|
|
4985
|
+
while (1) switch (_context270.prev = _context270.next) {
|
|
4986
|
+
case 0:
|
|
4987
|
+
_context270.next = 2;
|
|
4988
|
+
return api["delete"]("/areas/".concat(id));
|
|
4989
|
+
case 2:
|
|
4990
|
+
return _context270.abrupt("return", _context270.sent);
|
|
4991
|
+
case 3:
|
|
4992
|
+
case "end":
|
|
4993
|
+
return _context270.stop();
|
|
4994
|
+
}
|
|
4995
|
+
}, _callee270);
|
|
4996
|
+
}));
|
|
4997
|
+
return function (_x416) {
|
|
4998
|
+
return _ref270.apply(this, arguments);
|
|
4999
|
+
};
|
|
5000
|
+
}());
|
|
5001
|
+
_defineProperty(Services, "areasVisibility", /*#__PURE__*/function () {
|
|
5002
|
+
var _ref271 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee271(data) {
|
|
5003
|
+
return _regeneratorRuntime.wrap(function _callee271$(_context271) {
|
|
5004
|
+
while (1) switch (_context271.prev = _context271.next) {
|
|
5005
|
+
case 0:
|
|
5006
|
+
_context271.next = 2;
|
|
5007
|
+
return api.patch("/areas/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
5008
|
+
case 2:
|
|
5009
|
+
return _context271.abrupt("return", _context271.sent);
|
|
5010
|
+
case 3:
|
|
5011
|
+
case "end":
|
|
5012
|
+
return _context271.stop();
|
|
5013
|
+
}
|
|
5014
|
+
}, _callee271);
|
|
5015
|
+
}));
|
|
5016
|
+
return function (_x417) {
|
|
5017
|
+
return _ref271.apply(this, arguments);
|
|
5018
|
+
};
|
|
5019
|
+
}());
|
|
5020
|
+
_defineProperty(Services, "getCompanies", /*#__PURE__*/function () {
|
|
5021
|
+
var _ref272 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee272(size, page, query, visibility) {
|
|
5022
|
+
return _regeneratorRuntime.wrap(function _callee272$(_context272) {
|
|
5023
|
+
while (1) switch (_context272.prev = _context272.next) {
|
|
5024
|
+
case 0:
|
|
5025
|
+
_context272.next = 2;
|
|
5026
|
+
return api.get("/companies/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
5027
|
+
case 2:
|
|
5028
|
+
return _context272.abrupt("return", _context272.sent);
|
|
5029
|
+
case 3:
|
|
5030
|
+
case "end":
|
|
5031
|
+
return _context272.stop();
|
|
5032
|
+
}
|
|
5033
|
+
}, _callee272);
|
|
5034
|
+
}));
|
|
5035
|
+
return function (_x418, _x419, _x420, _x421) {
|
|
5036
|
+
return _ref272.apply(this, arguments);
|
|
5037
|
+
};
|
|
5038
|
+
}());
|
|
5039
|
+
_defineProperty(Services, "getCompaniesAll", /*#__PURE__*/function () {
|
|
5040
|
+
var _ref273 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee273(visibility) {
|
|
5041
|
+
return _regeneratorRuntime.wrap(function _callee273$(_context273) {
|
|
5042
|
+
while (1) switch (_context273.prev = _context273.next) {
|
|
5043
|
+
case 0:
|
|
5044
|
+
_context273.next = 2;
|
|
5045
|
+
return api.get("/companies?visibility=".concat(visibility));
|
|
5046
|
+
case 2:
|
|
5047
|
+
return _context273.abrupt("return", _context273.sent);
|
|
5048
|
+
case 3:
|
|
5049
|
+
case "end":
|
|
5050
|
+
return _context273.stop();
|
|
5051
|
+
}
|
|
5052
|
+
}, _callee273);
|
|
5053
|
+
}));
|
|
5054
|
+
return function (_x422) {
|
|
5055
|
+
return _ref273.apply(this, arguments);
|
|
5056
|
+
};
|
|
5057
|
+
}());
|
|
5058
|
+
_defineProperty(Services, "addCompanies", /*#__PURE__*/function () {
|
|
5059
|
+
var _ref274 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee274(value) {
|
|
5060
|
+
return _regeneratorRuntime.wrap(function _callee274$(_context274) {
|
|
5061
|
+
while (1) switch (_context274.prev = _context274.next) {
|
|
5062
|
+
case 0:
|
|
5063
|
+
_context274.next = 2;
|
|
5064
|
+
return api.post("/companies", value);
|
|
5065
|
+
case 2:
|
|
5066
|
+
return _context274.abrupt("return", _context274.sent);
|
|
5067
|
+
case 3:
|
|
5068
|
+
case "end":
|
|
5069
|
+
return _context274.stop();
|
|
5070
|
+
}
|
|
5071
|
+
}, _callee274);
|
|
5072
|
+
}));
|
|
5073
|
+
return function (_x423) {
|
|
5074
|
+
return _ref274.apply(this, arguments);
|
|
5075
|
+
};
|
|
5076
|
+
}());
|
|
5077
|
+
_defineProperty(Services, "editCompanies", /*#__PURE__*/function () {
|
|
5078
|
+
var _ref275 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee275(value) {
|
|
5079
|
+
return _regeneratorRuntime.wrap(function _callee275$(_context275) {
|
|
5080
|
+
while (1) switch (_context275.prev = _context275.next) {
|
|
5081
|
+
case 0:
|
|
5082
|
+
_context275.next = 2;
|
|
5083
|
+
return api.put("/companies/".concat(value === null || value === void 0 ? void 0 : value.id), value);
|
|
5084
|
+
case 2:
|
|
5085
|
+
return _context275.abrupt("return", _context275.sent);
|
|
5086
|
+
case 3:
|
|
5087
|
+
case "end":
|
|
5088
|
+
return _context275.stop();
|
|
5089
|
+
}
|
|
5090
|
+
}, _callee275);
|
|
5091
|
+
}));
|
|
5092
|
+
return function (_x424) {
|
|
5093
|
+
return _ref275.apply(this, arguments);
|
|
5094
|
+
};
|
|
5095
|
+
}());
|
|
5096
|
+
_defineProperty(Services, "deleteCompanies", /*#__PURE__*/function () {
|
|
5097
|
+
var _ref276 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee276(id) {
|
|
5098
|
+
return _regeneratorRuntime.wrap(function _callee276$(_context276) {
|
|
5099
|
+
while (1) switch (_context276.prev = _context276.next) {
|
|
5100
|
+
case 0:
|
|
5101
|
+
_context276.next = 2;
|
|
5102
|
+
return api["delete"]("/companies/".concat(id));
|
|
5103
|
+
case 2:
|
|
5104
|
+
return _context276.abrupt("return", _context276.sent);
|
|
5105
|
+
case 3:
|
|
5106
|
+
case "end":
|
|
5107
|
+
return _context276.stop();
|
|
5108
|
+
}
|
|
5109
|
+
}, _callee276);
|
|
5110
|
+
}));
|
|
5111
|
+
return function (_x425) {
|
|
5112
|
+
return _ref276.apply(this, arguments);
|
|
5113
|
+
};
|
|
5114
|
+
}());
|
|
5115
|
+
_defineProperty(Services, "companiesVisibility", /*#__PURE__*/function () {
|
|
5116
|
+
var _ref277 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee277(data) {
|
|
5117
|
+
return _regeneratorRuntime.wrap(function _callee277$(_context277) {
|
|
5118
|
+
while (1) switch (_context277.prev = _context277.next) {
|
|
5119
|
+
case 0:
|
|
5120
|
+
_context277.next = 2;
|
|
5121
|
+
return api.patch("/companies/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
5122
|
+
case 2:
|
|
5123
|
+
return _context277.abrupt("return", _context277.sent);
|
|
5124
|
+
case 3:
|
|
5125
|
+
case "end":
|
|
5126
|
+
return _context277.stop();
|
|
5127
|
+
}
|
|
5128
|
+
}, _callee277);
|
|
5129
|
+
}));
|
|
5130
|
+
return function (_x426) {
|
|
5131
|
+
return _ref277.apply(this, arguments);
|
|
5132
|
+
};
|
|
5133
|
+
}());
|
|
5134
|
+
_defineProperty(Services, "getPositions", /*#__PURE__*/function () {
|
|
5135
|
+
var _ref278 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee278(size, page, query, visibility) {
|
|
5136
|
+
return _regeneratorRuntime.wrap(function _callee278$(_context278) {
|
|
5137
|
+
while (1) switch (_context278.prev = _context278.next) {
|
|
5138
|
+
case 0:
|
|
5139
|
+
_context278.next = 2;
|
|
5140
|
+
return api.get("/positions/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
5141
|
+
case 2:
|
|
5142
|
+
return _context278.abrupt("return", _context278.sent);
|
|
5143
|
+
case 3:
|
|
5144
|
+
case "end":
|
|
5145
|
+
return _context278.stop();
|
|
5146
|
+
}
|
|
5147
|
+
}, _callee278);
|
|
5148
|
+
}));
|
|
5149
|
+
return function (_x427, _x428, _x429, _x430) {
|
|
5150
|
+
return _ref278.apply(this, arguments);
|
|
5151
|
+
};
|
|
5152
|
+
}());
|
|
5153
|
+
_defineProperty(Services, "getPositionsAll", /*#__PURE__*/function () {
|
|
5154
|
+
var _ref279 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee279(visibility) {
|
|
5155
|
+
return _regeneratorRuntime.wrap(function _callee279$(_context279) {
|
|
5156
|
+
while (1) switch (_context279.prev = _context279.next) {
|
|
5157
|
+
case 0:
|
|
5158
|
+
_context279.next = 2;
|
|
5159
|
+
return api.get("/positions?visibility=".concat(visibility));
|
|
5160
|
+
case 2:
|
|
5161
|
+
return _context279.abrupt("return", _context279.sent);
|
|
5162
|
+
case 3:
|
|
5163
|
+
case "end":
|
|
5164
|
+
return _context279.stop();
|
|
5165
|
+
}
|
|
5166
|
+
}, _callee279);
|
|
5167
|
+
}));
|
|
5168
|
+
return function (_x431) {
|
|
5169
|
+
return _ref279.apply(this, arguments);
|
|
5170
|
+
};
|
|
5171
|
+
}());
|
|
5172
|
+
_defineProperty(Services, "addPositions", /*#__PURE__*/function () {
|
|
5173
|
+
var _ref280 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee280(value) {
|
|
5174
|
+
return _regeneratorRuntime.wrap(function _callee280$(_context280) {
|
|
5175
|
+
while (1) switch (_context280.prev = _context280.next) {
|
|
5176
|
+
case 0:
|
|
5177
|
+
_context280.next = 2;
|
|
5178
|
+
return api.post("/positions", value);
|
|
5179
|
+
case 2:
|
|
5180
|
+
return _context280.abrupt("return", _context280.sent);
|
|
5181
|
+
case 3:
|
|
5182
|
+
case "end":
|
|
5183
|
+
return _context280.stop();
|
|
5184
|
+
}
|
|
5185
|
+
}, _callee280);
|
|
5186
|
+
}));
|
|
5187
|
+
return function (_x432) {
|
|
5188
|
+
return _ref280.apply(this, arguments);
|
|
5189
|
+
};
|
|
5190
|
+
}());
|
|
5191
|
+
_defineProperty(Services, "editPositions", /*#__PURE__*/function () {
|
|
5192
|
+
var _ref281 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee281(value) {
|
|
5193
|
+
return _regeneratorRuntime.wrap(function _callee281$(_context281) {
|
|
5194
|
+
while (1) switch (_context281.prev = _context281.next) {
|
|
5195
|
+
case 0:
|
|
5196
|
+
_context281.next = 2;
|
|
5197
|
+
return api.put("/positions/".concat(value === null || value === void 0 ? void 0 : value.id), value);
|
|
5198
|
+
case 2:
|
|
5199
|
+
return _context281.abrupt("return", _context281.sent);
|
|
5200
|
+
case 3:
|
|
5201
|
+
case "end":
|
|
5202
|
+
return _context281.stop();
|
|
5203
|
+
}
|
|
5204
|
+
}, _callee281);
|
|
5205
|
+
}));
|
|
5206
|
+
return function (_x433) {
|
|
5207
|
+
return _ref281.apply(this, arguments);
|
|
5208
|
+
};
|
|
5209
|
+
}());
|
|
5210
|
+
_defineProperty(Services, "deletePositions", /*#__PURE__*/function () {
|
|
5211
|
+
var _ref282 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee282(id) {
|
|
5212
|
+
return _regeneratorRuntime.wrap(function _callee282$(_context282) {
|
|
5213
|
+
while (1) switch (_context282.prev = _context282.next) {
|
|
5214
|
+
case 0:
|
|
5215
|
+
_context282.next = 2;
|
|
5216
|
+
return api["delete"]("/positions/".concat(id));
|
|
5217
|
+
case 2:
|
|
5218
|
+
return _context282.abrupt("return", _context282.sent);
|
|
5219
|
+
case 3:
|
|
5220
|
+
case "end":
|
|
5221
|
+
return _context282.stop();
|
|
5222
|
+
}
|
|
5223
|
+
}, _callee282);
|
|
5224
|
+
}));
|
|
5225
|
+
return function (_x434) {
|
|
5226
|
+
return _ref282.apply(this, arguments);
|
|
5227
|
+
};
|
|
5228
|
+
}());
|
|
5229
|
+
_defineProperty(Services, "positionsVisibility", /*#__PURE__*/function () {
|
|
5230
|
+
var _ref283 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee283(data) {
|
|
5231
|
+
return _regeneratorRuntime.wrap(function _callee283$(_context283) {
|
|
5232
|
+
while (1) switch (_context283.prev = _context283.next) {
|
|
5233
|
+
case 0:
|
|
5234
|
+
_context283.next = 2;
|
|
5235
|
+
return api.patch("/positions/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
5236
|
+
case 2:
|
|
5237
|
+
return _context283.abrupt("return", _context283.sent);
|
|
5238
|
+
case 3:
|
|
5239
|
+
case "end":
|
|
5240
|
+
return _context283.stop();
|
|
5241
|
+
}
|
|
5242
|
+
}, _callee283);
|
|
5243
|
+
}));
|
|
5244
|
+
return function (_x435) {
|
|
5245
|
+
return _ref283.apply(this, arguments);
|
|
5246
|
+
};
|
|
5247
|
+
}());
|
|
5248
|
+
_defineProperty(Services, "getHalls", /*#__PURE__*/function () {
|
|
5249
|
+
var _ref284 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee284(size, page, query, visibility) {
|
|
5250
|
+
return _regeneratorRuntime.wrap(function _callee284$(_context284) {
|
|
5251
|
+
while (1) switch (_context284.prev = _context284.next) {
|
|
5252
|
+
case 0:
|
|
5253
|
+
_context284.next = 2;
|
|
5254
|
+
return api.get("/halls/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
5255
|
+
case 2:
|
|
5256
|
+
return _context284.abrupt("return", _context284.sent);
|
|
5257
|
+
case 3:
|
|
5258
|
+
case "end":
|
|
5259
|
+
return _context284.stop();
|
|
5260
|
+
}
|
|
5261
|
+
}, _callee284);
|
|
5262
|
+
}));
|
|
5263
|
+
return function (_x436, _x437, _x438, _x439) {
|
|
5264
|
+
return _ref284.apply(this, arguments);
|
|
5265
|
+
};
|
|
5266
|
+
}());
|
|
5267
|
+
_defineProperty(Services, "getHallsAll", /*#__PURE__*/function () {
|
|
5268
|
+
var _ref285 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee285(visibility) {
|
|
5269
|
+
return _regeneratorRuntime.wrap(function _callee285$(_context285) {
|
|
5270
|
+
while (1) switch (_context285.prev = _context285.next) {
|
|
5271
|
+
case 0:
|
|
5272
|
+
_context285.next = 2;
|
|
5273
|
+
return api.get("/halls?visibility=".concat(visibility));
|
|
5274
|
+
case 2:
|
|
5275
|
+
return _context285.abrupt("return", _context285.sent);
|
|
5276
|
+
case 3:
|
|
5277
|
+
case "end":
|
|
5278
|
+
return _context285.stop();
|
|
5279
|
+
}
|
|
5280
|
+
}, _callee285);
|
|
5281
|
+
}));
|
|
5282
|
+
return function (_x440) {
|
|
5283
|
+
return _ref285.apply(this, arguments);
|
|
5284
|
+
};
|
|
5285
|
+
}());
|
|
5286
|
+
_defineProperty(Services, "addHalls", /*#__PURE__*/function () {
|
|
5287
|
+
var _ref286 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee286(value) {
|
|
5288
|
+
return _regeneratorRuntime.wrap(function _callee286$(_context286) {
|
|
5289
|
+
while (1) switch (_context286.prev = _context286.next) {
|
|
5290
|
+
case 0:
|
|
5291
|
+
_context286.next = 2;
|
|
5292
|
+
return api.post("/halls", value);
|
|
5293
|
+
case 2:
|
|
5294
|
+
return _context286.abrupt("return", _context286.sent);
|
|
5295
|
+
case 3:
|
|
5296
|
+
case "end":
|
|
5297
|
+
return _context286.stop();
|
|
5298
|
+
}
|
|
5299
|
+
}, _callee286);
|
|
5300
|
+
}));
|
|
5301
|
+
return function (_x441) {
|
|
5302
|
+
return _ref286.apply(this, arguments);
|
|
5303
|
+
};
|
|
5304
|
+
}());
|
|
5305
|
+
_defineProperty(Services, "editHalls", /*#__PURE__*/function () {
|
|
5306
|
+
var _ref287 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee287(value) {
|
|
5307
|
+
return _regeneratorRuntime.wrap(function _callee287$(_context287) {
|
|
5308
|
+
while (1) switch (_context287.prev = _context287.next) {
|
|
5309
|
+
case 0:
|
|
5310
|
+
_context287.next = 2;
|
|
5311
|
+
return api.put("/halls/".concat(value === null || value === void 0 ? void 0 : value.id), value);
|
|
5312
|
+
case 2:
|
|
5313
|
+
return _context287.abrupt("return", _context287.sent);
|
|
5314
|
+
case 3:
|
|
5315
|
+
case "end":
|
|
5316
|
+
return _context287.stop();
|
|
5317
|
+
}
|
|
5318
|
+
}, _callee287);
|
|
5319
|
+
}));
|
|
5320
|
+
return function (_x442) {
|
|
5321
|
+
return _ref287.apply(this, arguments);
|
|
5322
|
+
};
|
|
5323
|
+
}());
|
|
5324
|
+
_defineProperty(Services, "deleteHalls", /*#__PURE__*/function () {
|
|
5325
|
+
var _ref288 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee288(id) {
|
|
5326
|
+
return _regeneratorRuntime.wrap(function _callee288$(_context288) {
|
|
5327
|
+
while (1) switch (_context288.prev = _context288.next) {
|
|
5328
|
+
case 0:
|
|
5329
|
+
_context288.next = 2;
|
|
5330
|
+
return api["delete"]("/halls/".concat(id));
|
|
5331
|
+
case 2:
|
|
5332
|
+
return _context288.abrupt("return", _context288.sent);
|
|
5333
|
+
case 3:
|
|
5334
|
+
case "end":
|
|
5335
|
+
return _context288.stop();
|
|
5336
|
+
}
|
|
5337
|
+
}, _callee288);
|
|
5338
|
+
}));
|
|
5339
|
+
return function (_x443) {
|
|
5340
|
+
return _ref288.apply(this, arguments);
|
|
5341
|
+
};
|
|
5342
|
+
}());
|
|
5343
|
+
_defineProperty(Services, "hallsVisibility", /*#__PURE__*/function () {
|
|
5344
|
+
var _ref289 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee289(data) {
|
|
5345
|
+
return _regeneratorRuntime.wrap(function _callee289$(_context289) {
|
|
5346
|
+
while (1) switch (_context289.prev = _context289.next) {
|
|
5347
|
+
case 0:
|
|
5348
|
+
_context289.next = 2;
|
|
5349
|
+
return api.patch("/halls/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
5350
|
+
case 2:
|
|
5351
|
+
return _context289.abrupt("return", _context289.sent);
|
|
5352
|
+
case 3:
|
|
5353
|
+
case "end":
|
|
5354
|
+
return _context289.stop();
|
|
5355
|
+
}
|
|
5356
|
+
}, _callee289);
|
|
5357
|
+
}));
|
|
5358
|
+
return function (_x444) {
|
|
5359
|
+
return _ref289.apply(this, arguments);
|
|
5360
|
+
};
|
|
5361
|
+
}());
|
|
5362
|
+
_defineProperty(Services, "getDrivingcategories", /*#__PURE__*/function () {
|
|
5363
|
+
var _ref290 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee290(size, page, query, visibility) {
|
|
5364
|
+
return _regeneratorRuntime.wrap(function _callee290$(_context290) {
|
|
5365
|
+
while (1) switch (_context290.prev = _context290.next) {
|
|
5366
|
+
case 0:
|
|
5367
|
+
_context290.next = 2;
|
|
5368
|
+
return api.get("/drivingcategories/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
5369
|
+
case 2:
|
|
5370
|
+
return _context290.abrupt("return", _context290.sent);
|
|
5371
|
+
case 3:
|
|
5372
|
+
case "end":
|
|
5373
|
+
return _context290.stop();
|
|
5374
|
+
}
|
|
5375
|
+
}, _callee290);
|
|
5376
|
+
}));
|
|
5377
|
+
return function (_x445, _x446, _x447, _x448) {
|
|
5378
|
+
return _ref290.apply(this, arguments);
|
|
5379
|
+
};
|
|
5380
|
+
}());
|
|
5381
|
+
_defineProperty(Services, "getDrivingcategoriesAll", /*#__PURE__*/function () {
|
|
5382
|
+
var _ref291 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee291(visibility) {
|
|
5383
|
+
return _regeneratorRuntime.wrap(function _callee291$(_context291) {
|
|
5384
|
+
while (1) switch (_context291.prev = _context291.next) {
|
|
5385
|
+
case 0:
|
|
5386
|
+
_context291.next = 2;
|
|
5387
|
+
return api.get("/drivingcategories?visibility=".concat(visibility));
|
|
5388
|
+
case 2:
|
|
5389
|
+
return _context291.abrupt("return", _context291.sent);
|
|
5390
|
+
case 3:
|
|
5391
|
+
case "end":
|
|
5392
|
+
return _context291.stop();
|
|
5393
|
+
}
|
|
5394
|
+
}, _callee291);
|
|
5395
|
+
}));
|
|
5396
|
+
return function (_x449) {
|
|
5397
|
+
return _ref291.apply(this, arguments);
|
|
5398
|
+
};
|
|
5399
|
+
}());
|
|
5400
|
+
_defineProperty(Services, "addDrivingcategories", /*#__PURE__*/function () {
|
|
5401
|
+
var _ref292 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee292(value) {
|
|
5402
|
+
return _regeneratorRuntime.wrap(function _callee292$(_context292) {
|
|
5403
|
+
while (1) switch (_context292.prev = _context292.next) {
|
|
5404
|
+
case 0:
|
|
5405
|
+
_context292.next = 2;
|
|
5406
|
+
return api.post("/drivingcategories", value);
|
|
5407
|
+
case 2:
|
|
5408
|
+
return _context292.abrupt("return", _context292.sent);
|
|
5409
|
+
case 3:
|
|
5410
|
+
case "end":
|
|
5411
|
+
return _context292.stop();
|
|
5412
|
+
}
|
|
5413
|
+
}, _callee292);
|
|
5414
|
+
}));
|
|
5415
|
+
return function (_x450) {
|
|
5416
|
+
return _ref292.apply(this, arguments);
|
|
5417
|
+
};
|
|
5418
|
+
}());
|
|
5419
|
+
_defineProperty(Services, "editDrivingcategories", /*#__PURE__*/function () {
|
|
5420
|
+
var _ref293 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee293(value) {
|
|
5421
|
+
return _regeneratorRuntime.wrap(function _callee293$(_context293) {
|
|
5422
|
+
while (1) switch (_context293.prev = _context293.next) {
|
|
5423
|
+
case 0:
|
|
5424
|
+
_context293.next = 2;
|
|
5425
|
+
return api.put("/drivingcategories/".concat(value === null || value === void 0 ? void 0 : value.id), value);
|
|
5426
|
+
case 2:
|
|
5427
|
+
return _context293.abrupt("return", _context293.sent);
|
|
5428
|
+
case 3:
|
|
5429
|
+
case "end":
|
|
5430
|
+
return _context293.stop();
|
|
5431
|
+
}
|
|
5432
|
+
}, _callee293);
|
|
5433
|
+
}));
|
|
5434
|
+
return function (_x451) {
|
|
5435
|
+
return _ref293.apply(this, arguments);
|
|
5436
|
+
};
|
|
5437
|
+
}());
|
|
5438
|
+
_defineProperty(Services, "deleteDrivingcategories", /*#__PURE__*/function () {
|
|
5439
|
+
var _ref294 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee294(id) {
|
|
5440
|
+
return _regeneratorRuntime.wrap(function _callee294$(_context294) {
|
|
5441
|
+
while (1) switch (_context294.prev = _context294.next) {
|
|
5442
|
+
case 0:
|
|
5443
|
+
_context294.next = 2;
|
|
5444
|
+
return api["delete"]("/drivingcategories/".concat(id));
|
|
5445
|
+
case 2:
|
|
5446
|
+
return _context294.abrupt("return", _context294.sent);
|
|
5447
|
+
case 3:
|
|
5448
|
+
case "end":
|
|
5449
|
+
return _context294.stop();
|
|
5450
|
+
}
|
|
5451
|
+
}, _callee294);
|
|
5452
|
+
}));
|
|
5453
|
+
return function (_x452) {
|
|
5454
|
+
return _ref294.apply(this, arguments);
|
|
5455
|
+
};
|
|
5456
|
+
}());
|
|
5457
|
+
_defineProperty(Services, "drivingcategoriesVisibility", /*#__PURE__*/function () {
|
|
5458
|
+
var _ref295 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee295(data) {
|
|
5459
|
+
return _regeneratorRuntime.wrap(function _callee295$(_context295) {
|
|
5460
|
+
while (1) switch (_context295.prev = _context295.next) {
|
|
5461
|
+
case 0:
|
|
5462
|
+
_context295.next = 2;
|
|
5463
|
+
return api.patch("/drivingcategories/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
5464
|
+
case 2:
|
|
5465
|
+
return _context295.abrupt("return", _context295.sent);
|
|
5466
|
+
case 3:
|
|
5467
|
+
case "end":
|
|
5468
|
+
return _context295.stop();
|
|
5469
|
+
}
|
|
5470
|
+
}, _callee295);
|
|
5471
|
+
}));
|
|
5472
|
+
return function (_x453) {
|
|
5473
|
+
return _ref295.apply(this, arguments);
|
|
5474
|
+
};
|
|
5475
|
+
}());
|
|
1557
5476
|
export default Services;
|