@banch0u/core-project-test-repository 2.2.9 → 2.2.11

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.
@@ -8900,4 +8900,260 @@ _defineProperty(Services, "barrelVisibility", /*#__PURE__*/function () {
8900
8900
  return _ref462.apply(this, arguments);
8901
8901
  };
8902
8902
  }());
8903
+ // ---- end generated ----
8904
+ // ---- generated by questionnaireGenerator: BudgetComponents ----
8905
+ _defineProperty(Services, "getBudgetComponents", /*#__PURE__*/function () {
8906
+ var _ref463 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee463(size, page, query, visibility) {
8907
+ var response;
8908
+ return _regeneratorRuntime.wrap(function (_context463) {
8909
+ while (1) switch (_context463.prev = _context463.next) {
8910
+ case 0:
8911
+ _context463.next = 1;
8912
+ return api.get("/budget-components/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
8913
+ case 1:
8914
+ response = _context463.sent;
8915
+ return _context463.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8916
+ case 2:
8917
+ case "end":
8918
+ return _context463.stop();
8919
+ }
8920
+ }, _callee463);
8921
+ }));
8922
+ return function (_x708, _x709, _x710, _x711) {
8923
+ return _ref463.apply(this, arguments);
8924
+ };
8925
+ }());
8926
+ _defineProperty(Services, "getBudgetComponentsAll", /*#__PURE__*/function () {
8927
+ var _ref464 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee464(visibility) {
8928
+ var response;
8929
+ return _regeneratorRuntime.wrap(function (_context464) {
8930
+ while (1) switch (_context464.prev = _context464.next) {
8931
+ case 0:
8932
+ _context464.next = 1;
8933
+ return api.get("/budget-components?visibility=".concat(visibility));
8934
+ case 1:
8935
+ response = _context464.sent;
8936
+ return _context464.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8937
+ case 2:
8938
+ case "end":
8939
+ return _context464.stop();
8940
+ }
8941
+ }, _callee464);
8942
+ }));
8943
+ return function (_x712) {
8944
+ return _ref464.apply(this, arguments);
8945
+ };
8946
+ }());
8947
+ _defineProperty(Services, "addBudgetComponents", /*#__PURE__*/function () {
8948
+ var _ref465 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee465(value) {
8949
+ var response;
8950
+ return _regeneratorRuntime.wrap(function (_context465) {
8951
+ while (1) switch (_context465.prev = _context465.next) {
8952
+ case 0:
8953
+ _context465.next = 1;
8954
+ return api.post("/budget-components", value);
8955
+ case 1:
8956
+ response = _context465.sent;
8957
+ return _context465.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8958
+ case 2:
8959
+ case "end":
8960
+ return _context465.stop();
8961
+ }
8962
+ }, _callee465);
8963
+ }));
8964
+ return function (_x713) {
8965
+ return _ref465.apply(this, arguments);
8966
+ };
8967
+ }());
8968
+ _defineProperty(Services, "editBudgetComponents", /*#__PURE__*/function () {
8969
+ var _ref466 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee466(data) {
8970
+ var response;
8971
+ return _regeneratorRuntime.wrap(function (_context466) {
8972
+ while (1) switch (_context466.prev = _context466.next) {
8973
+ case 0:
8974
+ _context466.next = 1;
8975
+ return api.put("/budget-components/".concat(data === null || data === void 0 ? void 0 : data.id), data);
8976
+ case 1:
8977
+ response = _context466.sent;
8978
+ return _context466.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
8979
+ case 2:
8980
+ case "end":
8981
+ return _context466.stop();
8982
+ }
8983
+ }, _callee466);
8984
+ }));
8985
+ return function (_x714) {
8986
+ return _ref466.apply(this, arguments);
8987
+ };
8988
+ }());
8989
+ _defineProperty(Services, "deleteBudgetComponents", /*#__PURE__*/function () {
8990
+ var _ref467 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee467(id) {
8991
+ var response;
8992
+ return _regeneratorRuntime.wrap(function (_context467) {
8993
+ while (1) switch (_context467.prev = _context467.next) {
8994
+ case 0:
8995
+ _context467.next = 1;
8996
+ return api["delete"]("/budget-components/".concat(id));
8997
+ case 1:
8998
+ response = _context467.sent;
8999
+ return _context467.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
9000
+ case 2:
9001
+ case "end":
9002
+ return _context467.stop();
9003
+ }
9004
+ }, _callee467);
9005
+ }));
9006
+ return function (_x715) {
9007
+ return _ref467.apply(this, arguments);
9008
+ };
9009
+ }());
9010
+ _defineProperty(Services, "budgetComponentsVisibility", /*#__PURE__*/function () {
9011
+ var _ref468 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee468(data) {
9012
+ var response;
9013
+ return _regeneratorRuntime.wrap(function (_context468) {
9014
+ while (1) switch (_context468.prev = _context468.next) {
9015
+ case 0:
9016
+ _context468.next = 1;
9017
+ return api.patch("/budget-components/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
9018
+ case 1:
9019
+ response = _context468.sent;
9020
+ return _context468.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
9021
+ case 2:
9022
+ case "end":
9023
+ return _context468.stop();
9024
+ }
9025
+ }, _callee468);
9026
+ }));
9027
+ return function (_x716) {
9028
+ return _ref468.apply(this, arguments);
9029
+ };
9030
+ }());
9031
+ // ---- end generated ----
9032
+ // ---- generated by questionnaireGenerator: Departments ----
9033
+ _defineProperty(Services, "getDepartments", /*#__PURE__*/function () {
9034
+ var _ref469 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee469(size, page, query, visibility) {
9035
+ var response;
9036
+ return _regeneratorRuntime.wrap(function (_context469) {
9037
+ while (1) switch (_context469.prev = _context469.next) {
9038
+ case 0:
9039
+ _context469.next = 1;
9040
+ return api.get("/departments/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
9041
+ case 1:
9042
+ response = _context469.sent;
9043
+ return _context469.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
9044
+ case 2:
9045
+ case "end":
9046
+ return _context469.stop();
9047
+ }
9048
+ }, _callee469);
9049
+ }));
9050
+ return function (_x717, _x718, _x719, _x720) {
9051
+ return _ref469.apply(this, arguments);
9052
+ };
9053
+ }());
9054
+ _defineProperty(Services, "getDepartmentsAll", /*#__PURE__*/function () {
9055
+ var _ref470 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee470(visibility) {
9056
+ var response;
9057
+ return _regeneratorRuntime.wrap(function (_context470) {
9058
+ while (1) switch (_context470.prev = _context470.next) {
9059
+ case 0:
9060
+ _context470.next = 1;
9061
+ return api.get("/departments?visibility=".concat(visibility));
9062
+ case 1:
9063
+ response = _context470.sent;
9064
+ return _context470.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
9065
+ case 2:
9066
+ case "end":
9067
+ return _context470.stop();
9068
+ }
9069
+ }, _callee470);
9070
+ }));
9071
+ return function (_x721) {
9072
+ return _ref470.apply(this, arguments);
9073
+ };
9074
+ }());
9075
+ _defineProperty(Services, "addDepartments", /*#__PURE__*/function () {
9076
+ var _ref471 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee471(value) {
9077
+ var response;
9078
+ return _regeneratorRuntime.wrap(function (_context471) {
9079
+ while (1) switch (_context471.prev = _context471.next) {
9080
+ case 0:
9081
+ _context471.next = 1;
9082
+ return api.post("/departments", value);
9083
+ case 1:
9084
+ response = _context471.sent;
9085
+ return _context471.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
9086
+ case 2:
9087
+ case "end":
9088
+ return _context471.stop();
9089
+ }
9090
+ }, _callee471);
9091
+ }));
9092
+ return function (_x722) {
9093
+ return _ref471.apply(this, arguments);
9094
+ };
9095
+ }());
9096
+ _defineProperty(Services, "editDepartments", /*#__PURE__*/function () {
9097
+ var _ref472 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee472(data) {
9098
+ var response;
9099
+ return _regeneratorRuntime.wrap(function (_context472) {
9100
+ while (1) switch (_context472.prev = _context472.next) {
9101
+ case 0:
9102
+ _context472.next = 1;
9103
+ return api.put("/departments/".concat(data === null || data === void 0 ? void 0 : data.id), data);
9104
+ case 1:
9105
+ response = _context472.sent;
9106
+ return _context472.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
9107
+ case 2:
9108
+ case "end":
9109
+ return _context472.stop();
9110
+ }
9111
+ }, _callee472);
9112
+ }));
9113
+ return function (_x723) {
9114
+ return _ref472.apply(this, arguments);
9115
+ };
9116
+ }());
9117
+ _defineProperty(Services, "deleteDepartments", /*#__PURE__*/function () {
9118
+ var _ref473 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee473(id) {
9119
+ var response;
9120
+ return _regeneratorRuntime.wrap(function (_context473) {
9121
+ while (1) switch (_context473.prev = _context473.next) {
9122
+ case 0:
9123
+ _context473.next = 1;
9124
+ return api["delete"]("/departments/".concat(id));
9125
+ case 1:
9126
+ response = _context473.sent;
9127
+ return _context473.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
9128
+ case 2:
9129
+ case "end":
9130
+ return _context473.stop();
9131
+ }
9132
+ }, _callee473);
9133
+ }));
9134
+ return function (_x724) {
9135
+ return _ref473.apply(this, arguments);
9136
+ };
9137
+ }());
9138
+ _defineProperty(Services, "departmentsVisibility", /*#__PURE__*/function () {
9139
+ var _ref474 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee474(data) {
9140
+ var response;
9141
+ return _regeneratorRuntime.wrap(function (_context474) {
9142
+ while (1) switch (_context474.prev = _context474.next) {
9143
+ case 0:
9144
+ _context474.next = 1;
9145
+ return api.patch("/departments/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
9146
+ case 1:
9147
+ response = _context474.sent;
9148
+ return _context474.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
9149
+ case 2:
9150
+ case "end":
9151
+ return _context474.stop();
9152
+ }
9153
+ }, _callee474);
9154
+ }));
9155
+ return function (_x725) {
9156
+ return _ref474.apply(this, arguments);
9157
+ };
9158
+ }());
8903
9159
  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 = "Barrel"; // change as needed
14
- var constantColumnName = "Çən"; // change as needed
15
- var endpointName = "/barrels";
13
+ var questionnaireName = "Departments"; // change as needed
14
+ var constantColumnName = "Departamentlər"; // change as needed
15
+ var endpointName = "/departments";
16
16
  ///////////////////////////////////
17
17
 
18
18
  var upperName = questionnaireName.toUpperCase();
@@ -90,9 +90,9 @@ function locateSidebarFile(repoRoot) {
90
90
  return null;
91
91
  }
92
92
 
93
- /**
94
- * Insert insertionText into a class body identified by any of the classNamePatterns.
95
- * Returns { updated, inserted, reason, classPattern }.
93
+ /**
94
+ * Insert insertionText into a class body identified by any of the classNamePatterns.
95
+ * Returns { updated, inserted, reason, classPattern }.
96
96
  */
97
97
  function insertIntoClassBody(content, classNamePatterns, insertionText, marker) {
98
98
  if (marker && content.includes(marker)) return {
@@ -145,12 +145,12 @@ function insertIntoClassBody(content, classNamePatterns, insertionText, marker)
145
145
  };
146
146
  }
147
147
 
148
- /**
149
- * Robust insertRouteIntoParentBlock that works with multiline <Route ...> tags.
150
- * It finds the parent <Route ... path="parentPath" ...> and inserts insertionText
151
- * immediately before that parent's closing </Route>.
152
- *
153
- * Returns { updated, inserted, reason }.
148
+ /**
149
+ * Robust insertRouteIntoParentBlock that works with multiline <Route ...> tags.
150
+ * It finds the parent <Route ... path="parentPath" ...> and inserts insertionText
151
+ * immediately before that parent's closing </Route>.
152
+ *
153
+ * Returns { updated, inserted, reason }.
154
154
  */
155
155
  function insertRouteIntoParentBlock(content, parentPath, insertionText) {
156
156
  // find <Route ... path="questionnaires" ... >
@@ -2,6 +2,14 @@ export var LOGIN_PATH = "/login";
2
2
  export var PLATFORM_PATH = "/platform";
3
3
  export var QUESTIONNAIRES = "/questionnaires";
4
4
 
5
+ // ---- generated by questionnaireGenerator: DEPARTMENTS ----
6
+ export var QUESTIONNAIRES_DEPARTMENTS = QUESTIONNAIRES + "/departments";
7
+ // ---- end generated ----
8
+
9
+ // ---- generated by questionnaireGenerator: BUDGETCOMPONENTS ----
10
+ export var QUESTIONNAIRES_BUDGETCOMPONENTS = QUESTIONNAIRES + "/budget-components";
11
+ // ---- end generated ----
12
+
5
13
  // ---- generated by questionnaireGenerator: BARREL ----
6
14
  export var QUESTIONNAIRES_BARREL = QUESTIONNAIRES + "/barrels";
7
15
  // ---- end generated ----
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@banch0u/core-project-test-repository",
3
- "version": "2.2.9",
3
+ "version": "2.2.11",
4
4
  "description": "Shared core features for all projects",
5
5
  "main": "dist/index.js",
6
6
  "files": [