@banch0u/core-project-test-repository 2.3.6 → 2.3.7

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.
@@ -9820,13 +9820,13 @@ _defineProperty(Services, "getInventoryModels", /*#__PURE__*/function () {
9820
9820
  };
9821
9821
  }());
9822
9822
  _defineProperty(Services, "getInventoryModelsAll", /*#__PURE__*/function () {
9823
- var _ref506 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee506(visibility) {
9823
+ var _ref506 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee506(visibility, brandId) {
9824
9824
  var response;
9825
9825
  return _regeneratorRuntime.wrap(function (_context506) {
9826
9826
  while (1) switch (_context506.prev = _context506.next) {
9827
9827
  case 0:
9828
9828
  _context506.next = 1;
9829
- return api.get("/inventoryModels?visibility=".concat(visibility));
9829
+ return api.get("/inventoryModels?visibility=".concat(visibility, "&inventoryBrandIds=").concat(brandId));
9830
9830
  case 1:
9831
9831
  response = _context506.sent;
9832
9832
  return _context506.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
@@ -9836,7 +9836,7 @@ _defineProperty(Services, "getInventoryModelsAll", /*#__PURE__*/function () {
9836
9836
  }
9837
9837
  }, _callee506);
9838
9838
  }));
9839
- return function (_x775) {
9839
+ return function (_x775, _x776) {
9840
9840
  return _ref506.apply(this, arguments);
9841
9841
  };
9842
9842
  }());
@@ -9857,7 +9857,7 @@ _defineProperty(Services, "addInventoryModels", /*#__PURE__*/function () {
9857
9857
  }
9858
9858
  }, _callee507);
9859
9859
  }));
9860
- return function (_x776) {
9860
+ return function (_x777) {
9861
9861
  return _ref507.apply(this, arguments);
9862
9862
  };
9863
9863
  }());
@@ -9878,7 +9878,7 @@ _defineProperty(Services, "editInventoryModels", /*#__PURE__*/function () {
9878
9878
  }
9879
9879
  }, _callee508);
9880
9880
  }));
9881
- return function (_x777) {
9881
+ return function (_x778) {
9882
9882
  return _ref508.apply(this, arguments);
9883
9883
  };
9884
9884
  }());
@@ -9899,7 +9899,7 @@ _defineProperty(Services, "deleteInventoryModels", /*#__PURE__*/function () {
9899
9899
  }
9900
9900
  }, _callee509);
9901
9901
  }));
9902
- return function (_x778) {
9902
+ return function (_x779) {
9903
9903
  return _ref509.apply(this, arguments);
9904
9904
  };
9905
9905
  }());
@@ -9920,8 +9920,136 @@ _defineProperty(Services, "inventoryModelsVisibility", /*#__PURE__*/function ()
9920
9920
  }
9921
9921
  }, _callee510);
9922
9922
  }));
9923
- return function (_x779) {
9923
+ return function (_x780) {
9924
9924
  return _ref510.apply(this, arguments);
9925
9925
  };
9926
9926
  }());
9927
+ // ---- end generated ----
9928
+ // ---- generated by questionnaireGenerator: inventoryPackageTypes ----
9929
+ _defineProperty(Services, "getinventoryPackageTypes", /*#__PURE__*/function () {
9930
+ var _ref511 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee511(size, page, query, visibility) {
9931
+ var response;
9932
+ return _regeneratorRuntime.wrap(function (_context511) {
9933
+ while (1) switch (_context511.prev = _context511.next) {
9934
+ case 0:
9935
+ _context511.next = 1;
9936
+ return api.get("/inventoryPackageTypes/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
9937
+ case 1:
9938
+ response = _context511.sent;
9939
+ return _context511.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
9940
+ case 2:
9941
+ case "end":
9942
+ return _context511.stop();
9943
+ }
9944
+ }, _callee511);
9945
+ }));
9946
+ return function (_x781, _x782, _x783, _x784) {
9947
+ return _ref511.apply(this, arguments);
9948
+ };
9949
+ }());
9950
+ _defineProperty(Services, "getinventoryPackageTypesAll", /*#__PURE__*/function () {
9951
+ var _ref512 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee512(visibility) {
9952
+ var response;
9953
+ return _regeneratorRuntime.wrap(function (_context512) {
9954
+ while (1) switch (_context512.prev = _context512.next) {
9955
+ case 0:
9956
+ _context512.next = 1;
9957
+ return api.get("/inventoryPackageTypes?visibility=".concat(visibility));
9958
+ case 1:
9959
+ response = _context512.sent;
9960
+ return _context512.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
9961
+ case 2:
9962
+ case "end":
9963
+ return _context512.stop();
9964
+ }
9965
+ }, _callee512);
9966
+ }));
9967
+ return function (_x785) {
9968
+ return _ref512.apply(this, arguments);
9969
+ };
9970
+ }());
9971
+ _defineProperty(Services, "addinventoryPackageTypes", /*#__PURE__*/function () {
9972
+ var _ref513 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee513(value) {
9973
+ var response;
9974
+ return _regeneratorRuntime.wrap(function (_context513) {
9975
+ while (1) switch (_context513.prev = _context513.next) {
9976
+ case 0:
9977
+ _context513.next = 1;
9978
+ return api.post("/inventoryPackageTypes", value);
9979
+ case 1:
9980
+ response = _context513.sent;
9981
+ return _context513.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
9982
+ case 2:
9983
+ case "end":
9984
+ return _context513.stop();
9985
+ }
9986
+ }, _callee513);
9987
+ }));
9988
+ return function (_x786) {
9989
+ return _ref513.apply(this, arguments);
9990
+ };
9991
+ }());
9992
+ _defineProperty(Services, "editinventoryPackageTypes", /*#__PURE__*/function () {
9993
+ var _ref514 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee514(data) {
9994
+ var response;
9995
+ return _regeneratorRuntime.wrap(function (_context514) {
9996
+ while (1) switch (_context514.prev = _context514.next) {
9997
+ case 0:
9998
+ _context514.next = 1;
9999
+ return api.put("/inventoryPackageTypes/".concat(data === null || data === void 0 ? void 0 : data.id), data);
10000
+ case 1:
10001
+ response = _context514.sent;
10002
+ return _context514.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
10003
+ case 2:
10004
+ case "end":
10005
+ return _context514.stop();
10006
+ }
10007
+ }, _callee514);
10008
+ }));
10009
+ return function (_x787) {
10010
+ return _ref514.apply(this, arguments);
10011
+ };
10012
+ }());
10013
+ _defineProperty(Services, "deleteinventoryPackageTypes", /*#__PURE__*/function () {
10014
+ var _ref515 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee515(id) {
10015
+ var response;
10016
+ return _regeneratorRuntime.wrap(function (_context515) {
10017
+ while (1) switch (_context515.prev = _context515.next) {
10018
+ case 0:
10019
+ _context515.next = 1;
10020
+ return api["delete"]("/inventoryPackageTypes/".concat(id));
10021
+ case 1:
10022
+ response = _context515.sent;
10023
+ return _context515.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
10024
+ case 2:
10025
+ case "end":
10026
+ return _context515.stop();
10027
+ }
10028
+ }, _callee515);
10029
+ }));
10030
+ return function (_x788) {
10031
+ return _ref515.apply(this, arguments);
10032
+ };
10033
+ }());
10034
+ _defineProperty(Services, "inventoryPackageTypesVisibility", /*#__PURE__*/function () {
10035
+ var _ref516 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee516(data) {
10036
+ var response;
10037
+ return _regeneratorRuntime.wrap(function (_context516) {
10038
+ while (1) switch (_context516.prev = _context516.next) {
10039
+ case 0:
10040
+ _context516.next = 1;
10041
+ return api.patch("/inventoryPackageTypes/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
10042
+ case 1:
10043
+ response = _context516.sent;
10044
+ return _context516.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
10045
+ case 2:
10046
+ case "end":
10047
+ return _context516.stop();
10048
+ }
10049
+ }, _callee516);
10050
+ }));
10051
+ return function (_x789) {
10052
+ return _ref516.apply(this, arguments);
10053
+ };
10054
+ }());
9927
10055
  export default Services;
@@ -10,9 +10,9 @@ var fs = require("fs");
10
10
  var path = require("path");
11
11
 
12
12
  ////////// === CONFIG === //////////
13
- var questionnaireName = "InventoryModels"; // change as needed
14
- var constantColumnName = "Modellər (Mal-meteriallar)"; // change as needed
15
- var endpointName = "/inventoryModels"; // change as needed (should match backend endpoint)
13
+ var questionnaireName = "inventoryPackageTypes"; // change as needed
14
+ var constantColumnName = "Paket tipləri (Mal-meteriallar)"; // change as needed
15
+ var endpointName = "/inventoryPackageTypes"; // change as needed (should match backend endpoint)
16
16
  ///////////////////////////////////
17
17
 
18
18
  var upperName = questionnaireName.toUpperCase();
@@ -2,6 +2,10 @@ export var LOGIN_PATH = "/login";
2
2
  export var PLATFORM_PATH = "/platform";
3
3
  export var QUESTIONNAIRES = "/questionnaires";
4
4
 
5
+ // ---- generated by questionnaireGenerator: INVENTORYPACKAGETYPES ----
6
+ export var QUESTIONNAIRES_INVENTORYPACKAGETYPES = "inventoryPackageTypes";
7
+ // ---- end generated ----
8
+
5
9
  // ---- generated by questionnaireGenerator: INVENTORYMODELS ----
6
10
  export var QUESTIONNAIRES_INVENTORYMODELS = "inventoryModels";
7
11
  // ---- end generated ----
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banch0u/core-project-test-repository",
3
- "version": "2.3.6",
3
+ "version": "2.3.7",
4
4
  "description": "Shared core features for all projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [