@banch0u/core-project-test-repository 2.3.7 → 2.3.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.
@@ -10052,4 +10052,132 @@ _defineProperty(Services, "inventoryPackageTypesVisibility", /*#__PURE__*/functi
10052
10052
  return _ref516.apply(this, arguments);
10053
10053
  };
10054
10054
  }());
10055
+ // ---- end generated ----
10056
+ // ---- generated by questionnaireGenerator: InventoryTechnicalDetails ----
10057
+ _defineProperty(Services, "getInventoryTechnicalDetails", /*#__PURE__*/function () {
10058
+ var _ref517 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee517(size, page, query, visibility, inventoryCategoryId) {
10059
+ var response;
10060
+ return _regeneratorRuntime.wrap(function (_context517) {
10061
+ while (1) switch (_context517.prev = _context517.next) {
10062
+ case 0:
10063
+ _context517.next = 1;
10064
+ return api.get("/inventoryTechnicalDetails/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name, "&inventoryCategoryId=").concat(inventoryCategoryId));
10065
+ case 1:
10066
+ response = _context517.sent;
10067
+ return _context517.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
10068
+ case 2:
10069
+ case "end":
10070
+ return _context517.stop();
10071
+ }
10072
+ }, _callee517);
10073
+ }));
10074
+ return function (_x790, _x791, _x792, _x793, _x794) {
10075
+ return _ref517.apply(this, arguments);
10076
+ };
10077
+ }());
10078
+ _defineProperty(Services, "getInventoryTechnicalDetailsAll", /*#__PURE__*/function () {
10079
+ var _ref518 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee518(visibility, inventoryCategoryId) {
10080
+ var response;
10081
+ return _regeneratorRuntime.wrap(function (_context518) {
10082
+ while (1) switch (_context518.prev = _context518.next) {
10083
+ case 0:
10084
+ _context518.next = 1;
10085
+ return api.get("/inventoryTechnicalDetails?visibility=".concat(visibility, "&inventoryCategoryId=").concat(inventoryCategoryId));
10086
+ case 1:
10087
+ response = _context518.sent;
10088
+ return _context518.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
10089
+ case 2:
10090
+ case "end":
10091
+ return _context518.stop();
10092
+ }
10093
+ }, _callee518);
10094
+ }));
10095
+ return function (_x795, _x796) {
10096
+ return _ref518.apply(this, arguments);
10097
+ };
10098
+ }());
10099
+ _defineProperty(Services, "addInventoryTechnicalDetails", /*#__PURE__*/function () {
10100
+ var _ref519 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee519(value) {
10101
+ var response;
10102
+ return _regeneratorRuntime.wrap(function (_context519) {
10103
+ while (1) switch (_context519.prev = _context519.next) {
10104
+ case 0:
10105
+ _context519.next = 1;
10106
+ return api.post("/inventoryTechnicalDetails", value);
10107
+ case 1:
10108
+ response = _context519.sent;
10109
+ return _context519.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
10110
+ case 2:
10111
+ case "end":
10112
+ return _context519.stop();
10113
+ }
10114
+ }, _callee519);
10115
+ }));
10116
+ return function (_x797) {
10117
+ return _ref519.apply(this, arguments);
10118
+ };
10119
+ }());
10120
+ _defineProperty(Services, "editInventoryTechnicalDetails", /*#__PURE__*/function () {
10121
+ var _ref520 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee520(data) {
10122
+ var response;
10123
+ return _regeneratorRuntime.wrap(function (_context520) {
10124
+ while (1) switch (_context520.prev = _context520.next) {
10125
+ case 0:
10126
+ _context520.next = 1;
10127
+ return api.put("/inventoryTechnicalDetails/".concat(data === null || data === void 0 ? void 0 : data.id), data);
10128
+ case 1:
10129
+ response = _context520.sent;
10130
+ return _context520.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
10131
+ case 2:
10132
+ case "end":
10133
+ return _context520.stop();
10134
+ }
10135
+ }, _callee520);
10136
+ }));
10137
+ return function (_x798) {
10138
+ return _ref520.apply(this, arguments);
10139
+ };
10140
+ }());
10141
+ _defineProperty(Services, "deleteInventoryTechnicalDetails", /*#__PURE__*/function () {
10142
+ var _ref521 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee521(id, category) {
10143
+ var response;
10144
+ return _regeneratorRuntime.wrap(function (_context521) {
10145
+ while (1) switch (_context521.prev = _context521.next) {
10146
+ case 0:
10147
+ _context521.next = 1;
10148
+ return api["delete"]("/inventoryTechnicalDetails/".concat(id, "/category/").concat(category));
10149
+ case 1:
10150
+ response = _context521.sent;
10151
+ return _context521.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
10152
+ case 2:
10153
+ case "end":
10154
+ return _context521.stop();
10155
+ }
10156
+ }, _callee521);
10157
+ }));
10158
+ return function (_x799, _x800) {
10159
+ return _ref521.apply(this, arguments);
10160
+ };
10161
+ }());
10162
+ _defineProperty(Services, "inventoryTechnicalDetailsVisibility", /*#__PURE__*/function () {
10163
+ var _ref522 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee522(data) {
10164
+ var response;
10165
+ return _regeneratorRuntime.wrap(function (_context522) {
10166
+ while (1) switch (_context522.prev = _context522.next) {
10167
+ case 0:
10168
+ _context522.next = 1;
10169
+ return api.patch("/inventoryTechnicalDetails/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
10170
+ case 1:
10171
+ response = _context522.sent;
10172
+ return _context522.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
10173
+ case 2:
10174
+ case "end":
10175
+ return _context522.stop();
10176
+ }
10177
+ }, _callee522);
10178
+ }));
10179
+ return function (_x801) {
10180
+ return _ref522.apply(this, arguments);
10181
+ };
10182
+ }());
10055
10183
  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 = "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)
13
+ var questionnaireName = "InventoryTechnicalDetails"; // change as needed
14
+ var constantColumnName = "Mal-materialın xarakteristikaları"; // change as needed
15
+ var endpointName = "/inventoryTechnicalDetails"; // 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: INVENTORYTECHNICALDETAILS ----
6
+ export var QUESTIONNAIRES_INVENTORYTECHNICALDETAILS = "inventoryTechnicalDetails";
7
+ // ---- end generated ----
8
+
5
9
  // ---- generated by questionnaireGenerator: INVENTORYPACKAGETYPES ----
6
10
  export var QUESTIONNAIRES_INVENTORYPACKAGETYPES = "inventoryPackageTypes";
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.7",
3
+ "version": "2.3.9",
4
4
  "description": "Shared core features for all projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [