@banch0u/core-project-test-repository 2.0.6 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -7749,4 +7749,131 @@ _defineProperty(Services, "vehicleGroupsVisibility", /*#__PURE__*/function () {
7749
7749
  return _ref410.apply(this, arguments);
7750
7750
  };
7751
7751
  }());
7752
+ // ---- generated by questionnaireGenerator: Owners ----
7753
+ _defineProperty(Services, "getOwners", /*#__PURE__*/function () {
7754
+ var _ref411 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee411(size, page, query, visibility) {
7755
+ var response;
7756
+ return _regeneratorRuntime.wrap(function _callee411$(_context411) {
7757
+ while (1) switch (_context411.prev = _context411.next) {
7758
+ case 0:
7759
+ _context411.next = 2;
7760
+ return api.get("/owners/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
7761
+ case 2:
7762
+ response = _context411.sent;
7763
+ return _context411.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
7764
+ case 4:
7765
+ case "end":
7766
+ return _context411.stop();
7767
+ }
7768
+ }, _callee411);
7769
+ }));
7770
+ return function (_x626, _x627, _x628, _x629) {
7771
+ return _ref411.apply(this, arguments);
7772
+ };
7773
+ }());
7774
+ _defineProperty(Services, "getOwnersAll", /*#__PURE__*/function () {
7775
+ var _ref412 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee412(visibility) {
7776
+ var response;
7777
+ return _regeneratorRuntime.wrap(function _callee412$(_context412) {
7778
+ while (1) switch (_context412.prev = _context412.next) {
7779
+ case 0:
7780
+ _context412.next = 2;
7781
+ return api.get("/owners?visibility=".concat(visibility));
7782
+ case 2:
7783
+ response = _context412.sent;
7784
+ return _context412.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
7785
+ case 4:
7786
+ case "end":
7787
+ return _context412.stop();
7788
+ }
7789
+ }, _callee412);
7790
+ }));
7791
+ return function (_x630) {
7792
+ return _ref412.apply(this, arguments);
7793
+ };
7794
+ }());
7795
+ _defineProperty(Services, "addOwners", /*#__PURE__*/function () {
7796
+ var _ref413 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee413(value) {
7797
+ var response;
7798
+ return _regeneratorRuntime.wrap(function _callee413$(_context413) {
7799
+ while (1) switch (_context413.prev = _context413.next) {
7800
+ case 0:
7801
+ _context413.next = 2;
7802
+ return api.post("/owners", value);
7803
+ case 2:
7804
+ response = _context413.sent;
7805
+ return _context413.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
7806
+ case 4:
7807
+ case "end":
7808
+ return _context413.stop();
7809
+ }
7810
+ }, _callee413);
7811
+ }));
7812
+ return function (_x631) {
7813
+ return _ref413.apply(this, arguments);
7814
+ };
7815
+ }());
7816
+ _defineProperty(Services, "editOwners", /*#__PURE__*/function () {
7817
+ var _ref414 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee414(data) {
7818
+ var response;
7819
+ return _regeneratorRuntime.wrap(function _callee414$(_context414) {
7820
+ while (1) switch (_context414.prev = _context414.next) {
7821
+ case 0:
7822
+ _context414.next = 2;
7823
+ return api.put("/owners/".concat(data === null || data === void 0 ? void 0 : data.id), data);
7824
+ case 2:
7825
+ response = _context414.sent;
7826
+ return _context414.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
7827
+ case 4:
7828
+ case "end":
7829
+ return _context414.stop();
7830
+ }
7831
+ }, _callee414);
7832
+ }));
7833
+ return function (_x632) {
7834
+ return _ref414.apply(this, arguments);
7835
+ };
7836
+ }());
7837
+ _defineProperty(Services, "deleteOwners", /*#__PURE__*/function () {
7838
+ var _ref415 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee415(id) {
7839
+ var response;
7840
+ return _regeneratorRuntime.wrap(function _callee415$(_context415) {
7841
+ while (1) switch (_context415.prev = _context415.next) {
7842
+ case 0:
7843
+ _context415.next = 2;
7844
+ return api["delete"]("/owners/".concat(id));
7845
+ case 2:
7846
+ response = _context415.sent;
7847
+ return _context415.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
7848
+ case 4:
7849
+ case "end":
7850
+ return _context415.stop();
7851
+ }
7852
+ }, _callee415);
7853
+ }));
7854
+ return function (_x633) {
7855
+ return _ref415.apply(this, arguments);
7856
+ };
7857
+ }());
7858
+ _defineProperty(Services, "OwnersVisibility", /*#__PURE__*/function () {
7859
+ var _ref416 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee416(data) {
7860
+ var response;
7861
+ return _regeneratorRuntime.wrap(function _callee416$(_context416) {
7862
+ while (1) switch (_context416.prev = _context416.next) {
7863
+ case 0:
7864
+ _context416.next = 2;
7865
+ return api.patch("/owners/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
7866
+ case 2:
7867
+ response = _context416.sent;
7868
+ return _context416.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
7869
+ case 4:
7870
+ case "end":
7871
+ return _context416.stop();
7872
+ }
7873
+ }, _callee416);
7874
+ }));
7875
+ return function (_x634) {
7876
+ return _ref416.apply(this, arguments);
7877
+ };
7878
+ }());
7752
7879
  export default Services;