@banch0u/core-project-test-repository 1.12.7 → 1.12.9

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.
@@ -7511,4 +7511,123 @@ _defineProperty(Services, "fuelTypesVisibility", /*#__PURE__*/function () {
7511
7511
  return _ref398.apply(this, arguments);
7512
7512
  };
7513
7513
  }());
7514
+ //
7515
+ _defineProperty(Services, "getOilFields", /*#__PURE__*/function () {
7516
+ var _ref399 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee399(size, page, query, visibility) {
7517
+ return _regeneratorRuntime.wrap(function _callee399$(_context399) {
7518
+ while (1) switch (_context399.prev = _context399.next) {
7519
+ case 0:
7520
+ _context399.next = 2;
7521
+ return api.get("/oil-fields/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
7522
+ case 2:
7523
+ return _context399.abrupt("return", _context399.sent);
7524
+ case 3:
7525
+ case "end":
7526
+ return _context399.stop();
7527
+ }
7528
+ }, _callee399);
7529
+ }));
7530
+ return function (_x608, _x609, _x610, _x611) {
7531
+ return _ref399.apply(this, arguments);
7532
+ };
7533
+ }());
7534
+ _defineProperty(Services, "getOilFieldsAll", /*#__PURE__*/function () {
7535
+ var _ref400 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee400(visibility) {
7536
+ return _regeneratorRuntime.wrap(function _callee400$(_context400) {
7537
+ while (1) switch (_context400.prev = _context400.next) {
7538
+ case 0:
7539
+ _context400.next = 2;
7540
+ return api.get("/oil-fields?visibility=".concat(visibility));
7541
+ case 2:
7542
+ return _context400.abrupt("return", _context400.sent);
7543
+ case 3:
7544
+ case "end":
7545
+ return _context400.stop();
7546
+ }
7547
+ }, _callee400);
7548
+ }));
7549
+ return function (_x612) {
7550
+ return _ref400.apply(this, arguments);
7551
+ };
7552
+ }());
7553
+ _defineProperty(Services, "addOilFields", /*#__PURE__*/function () {
7554
+ var _ref401 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee401(data) {
7555
+ return _regeneratorRuntime.wrap(function _callee401$(_context401) {
7556
+ while (1) switch (_context401.prev = _context401.next) {
7557
+ case 0:
7558
+ _context401.next = 2;
7559
+ return api.post("/oil-fields", data, {
7560
+ headers: {
7561
+ "Content-Type": "application/json"
7562
+ }
7563
+ });
7564
+ case 2:
7565
+ return _context401.abrupt("return", _context401.sent);
7566
+ case 3:
7567
+ case "end":
7568
+ return _context401.stop();
7569
+ }
7570
+ }, _callee401);
7571
+ }));
7572
+ return function (_x613) {
7573
+ return _ref401.apply(this, arguments);
7574
+ };
7575
+ }());
7576
+ _defineProperty(Services, "editOilFields", /*#__PURE__*/function () {
7577
+ var _ref402 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee402(value) {
7578
+ return _regeneratorRuntime.wrap(function _callee402$(_context402) {
7579
+ while (1) switch (_context402.prev = _context402.next) {
7580
+ case 0:
7581
+ _context402.next = 2;
7582
+ return api.put("/oil-fields/".concat(value === null || value === void 0 ? void 0 : value.id), value);
7583
+ case 2:
7584
+ return _context402.abrupt("return", _context402.sent);
7585
+ case 3:
7586
+ case "end":
7587
+ return _context402.stop();
7588
+ }
7589
+ }, _callee402);
7590
+ }));
7591
+ return function (_x614) {
7592
+ return _ref402.apply(this, arguments);
7593
+ };
7594
+ }());
7595
+ _defineProperty(Services, "deleteOilFields", /*#__PURE__*/function () {
7596
+ var _ref403 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee403(id) {
7597
+ return _regeneratorRuntime.wrap(function _callee403$(_context403) {
7598
+ while (1) switch (_context403.prev = _context403.next) {
7599
+ case 0:
7600
+ _context403.next = 2;
7601
+ return api["delete"]("/oil-fields/".concat(id));
7602
+ case 2:
7603
+ return _context403.abrupt("return", _context403.sent);
7604
+ case 3:
7605
+ case "end":
7606
+ return _context403.stop();
7607
+ }
7608
+ }, _callee403);
7609
+ }));
7610
+ return function (_x615) {
7611
+ return _ref403.apply(this, arguments);
7612
+ };
7613
+ }());
7614
+ _defineProperty(Services, "oilFieldsVisibility", /*#__PURE__*/function () {
7615
+ var _ref404 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee404(data) {
7616
+ return _regeneratorRuntime.wrap(function _callee404$(_context404) {
7617
+ while (1) switch (_context404.prev = _context404.next) {
7618
+ case 0:
7619
+ _context404.next = 2;
7620
+ return api.patch("/oil-fields/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
7621
+ case 2:
7622
+ return _context404.abrupt("return", _context404.sent);
7623
+ case 3:
7624
+ case "end":
7625
+ return _context404.stop();
7626
+ }
7627
+ }, _callee404);
7628
+ }));
7629
+ return function (_x616) {
7630
+ return _ref404.apply(this, arguments);
7631
+ };
7632
+ }());
7514
7633
  export default Services;
@@ -131,4 +131,6 @@ export var SETTINGS_QUESTIONNAIRES_INSURANCE_TYPES = SETTINGS_QUESTIONNAIRES + "
131
131
  export var QUESTIONNAIRES_EXTRA_SERVICES = QUESTIONNAIRES + "/extra-services";
132
132
  export var SETTINGS_QUESTIONNAIRES_EXTRA_SERVICES = SETTINGS_QUESTIONNAIRES + "/extra-services";
133
133
  export var QUESTIONNAIRES_FUEL_TYPES = QUESTIONNAIRES + "/fuel-types";
134
- export var SETTINGS_QUESTIONNAIRES_FUEL_TYPES = SETTINGS_QUESTIONNAIRES + "/fuel-types";
134
+ export var SETTINGS_QUESTIONNAIRES_FUEL_TYPES = SETTINGS_QUESTIONNAIRES + "/fuel-types";
135
+ export var QUESTIONNAIRES_OIL_FIELDS = QUESTIONNAIRES + "/oil-fields";
136
+ export var SETTINGS_QUESTIONNAIRES_OIL_FIELDS = SETTINGS_QUESTIONNAIRES + "/oil-fields";
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banch0u/core-project-test-repository",
3
- "version": "1.12.7",
3
+ "version": "1.12.9",
4
4
  "description": "Shared core features for all projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [