@banch0u/core-project-test-repository 2.0.1 → 2.0.3

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.
@@ -7630,4 +7630,123 @@ _defineProperty(Services, "oilFieldsVisibility", /*#__PURE__*/function () {
7630
7630
  return _ref404.apply(this, arguments);
7631
7631
  };
7632
7632
  }());
7633
+ //
7634
+ _defineProperty(Services, "getVehicleGroups", /*#__PURE__*/function () {
7635
+ var _ref405 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee405(size, page, query, visibility) {
7636
+ return _regeneratorRuntime.wrap(function _callee405$(_context405) {
7637
+ while (1) switch (_context405.prev = _context405.next) {
7638
+ case 0:
7639
+ _context405.next = 2;
7640
+ return api.get("/vehiclegroups/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
7641
+ case 2:
7642
+ return _context405.abrupt("return", _context405.sent);
7643
+ case 3:
7644
+ case "end":
7645
+ return _context405.stop();
7646
+ }
7647
+ }, _callee405);
7648
+ }));
7649
+ return function (_x617, _x618, _x619, _x620) {
7650
+ return _ref405.apply(this, arguments);
7651
+ };
7652
+ }());
7653
+ _defineProperty(Services, "getVehicleGroupsAll", /*#__PURE__*/function () {
7654
+ var _ref406 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee406(visibility) {
7655
+ return _regeneratorRuntime.wrap(function _callee406$(_context406) {
7656
+ while (1) switch (_context406.prev = _context406.next) {
7657
+ case 0:
7658
+ _context406.next = 2;
7659
+ return api.get("/vehiclegroups?visibility=".concat(visibility));
7660
+ case 2:
7661
+ return _context406.abrupt("return", _context406.sent);
7662
+ case 3:
7663
+ case "end":
7664
+ return _context406.stop();
7665
+ }
7666
+ }, _callee406);
7667
+ }));
7668
+ return function (_x621) {
7669
+ return _ref406.apply(this, arguments);
7670
+ };
7671
+ }());
7672
+ _defineProperty(Services, "addVehicleGroups", /*#__PURE__*/function () {
7673
+ var _ref407 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee407(data) {
7674
+ return _regeneratorRuntime.wrap(function _callee407$(_context407) {
7675
+ while (1) switch (_context407.prev = _context407.next) {
7676
+ case 0:
7677
+ _context407.next = 2;
7678
+ return api.post("/vehiclegroups", data, {
7679
+ headers: {
7680
+ "Content-Type": "application/json"
7681
+ }
7682
+ });
7683
+ case 2:
7684
+ return _context407.abrupt("return", _context407.sent);
7685
+ case 3:
7686
+ case "end":
7687
+ return _context407.stop();
7688
+ }
7689
+ }, _callee407);
7690
+ }));
7691
+ return function (_x622) {
7692
+ return _ref407.apply(this, arguments);
7693
+ };
7694
+ }());
7695
+ _defineProperty(Services, "editVehicleGroups", /*#__PURE__*/function () {
7696
+ var _ref408 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee408(value) {
7697
+ return _regeneratorRuntime.wrap(function _callee408$(_context408) {
7698
+ while (1) switch (_context408.prev = _context408.next) {
7699
+ case 0:
7700
+ _context408.next = 2;
7701
+ return api.put("/vehiclegroups/".concat(value === null || value === void 0 ? void 0 : value.id), value);
7702
+ case 2:
7703
+ return _context408.abrupt("return", _context408.sent);
7704
+ case 3:
7705
+ case "end":
7706
+ return _context408.stop();
7707
+ }
7708
+ }, _callee408);
7709
+ }));
7710
+ return function (_x623) {
7711
+ return _ref408.apply(this, arguments);
7712
+ };
7713
+ }());
7714
+ _defineProperty(Services, "deleteVehicleGroups", /*#__PURE__*/function () {
7715
+ var _ref409 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee409(id) {
7716
+ return _regeneratorRuntime.wrap(function _callee409$(_context409) {
7717
+ while (1) switch (_context409.prev = _context409.next) {
7718
+ case 0:
7719
+ _context409.next = 2;
7720
+ return api["delete"]("/vehiclegroups/".concat(id));
7721
+ case 2:
7722
+ return _context409.abrupt("return", _context409.sent);
7723
+ case 3:
7724
+ case "end":
7725
+ return _context409.stop();
7726
+ }
7727
+ }, _callee409);
7728
+ }));
7729
+ return function (_x624) {
7730
+ return _ref409.apply(this, arguments);
7731
+ };
7732
+ }());
7733
+ _defineProperty(Services, "vehicleGroupsVisibility", /*#__PURE__*/function () {
7734
+ var _ref410 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee410(data) {
7735
+ return _regeneratorRuntime.wrap(function _callee410$(_context410) {
7736
+ while (1) switch (_context410.prev = _context410.next) {
7737
+ case 0:
7738
+ _context410.next = 2;
7739
+ return api.patch("/vehiclegroups/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
7740
+ case 2:
7741
+ return _context410.abrupt("return", _context410.sent);
7742
+ case 3:
7743
+ case "end":
7744
+ return _context410.stop();
7745
+ }
7746
+ }, _callee410);
7747
+ }));
7748
+ return function (_x625) {
7749
+ return _ref410.apply(this, arguments);
7750
+ };
7751
+ }());
7633
7752
  export default Services;
@@ -133,4 +133,6 @@ export var SETTINGS_QUESTIONNAIRES_EXTRA_SERVICES = SETTINGS_QUESTIONNAIRES + "/
133
133
  export var QUESTIONNAIRES_FUEL_TYPES = QUESTIONNAIRES + "/fuel-types";
134
134
  export var SETTINGS_QUESTIONNAIRES_FUEL_TYPES = SETTINGS_QUESTIONNAIRES + "/fuel-types";
135
135
  export var QUESTIONNAIRES_OIL_FIELDS = QUESTIONNAIRES + "/oil-fields";
136
- export var SETTINGS_QUESTIONNAIRES_OIL_FIELDS = SETTINGS_QUESTIONNAIRES + "/oil-fields";
136
+ export var SETTINGS_QUESTIONNAIRES_OIL_FIELDS = SETTINGS_QUESTIONNAIRES + "/oil-fields";
137
+ export var QUESTIONNAIRES_VEHICLE_GROUPS = QUESTIONNAIRES + "/vehicle-groups";
138
+ export var SETTINGS_QUESTIONNAIRES_VEHICLE_GROUPS = SETTINGS_QUESTIONNAIRES + "/vehicle-groups";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banch0u/core-project-test-repository",
3
- "version": "2.0.1",
3
+ "version": "2.0.3",
4
4
  "description": "Shared core features for all projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [