@banch0u/core-project-test-repository 2.2.11 → 2.2.13
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.
- package/dist/layout/QuestionnairesSidebar/index.js +10 -2
- package/dist/pages/Questionnnaires/QuestionnairesPentionsContent/constant.js +58 -0
- package/dist/pages/Questionnnaires/QuestionnairesPentionsContent/index.js +247 -0
- package/dist/routes/QuestionnaireRoutes.js +7 -1
- package/dist/store/slices/global/index.js +168 -162
- package/dist/store/slices/questionnaire/index.js +526 -317
- package/dist/store/slices/questionnaire/service.js +128 -0
- package/dist/tools/questionnaireGenerator.js +4 -4
- package/dist/utils/path.js +4 -0
- package/package.json +1 -1
|
@@ -9156,4 +9156,132 @@ _defineProperty(Services, "departmentsVisibility", /*#__PURE__*/function () {
|
|
|
9156
9156
|
return _ref474.apply(this, arguments);
|
|
9157
9157
|
};
|
|
9158
9158
|
}());
|
|
9159
|
+
// ---- end generated ----
|
|
9160
|
+
// ---- generated by questionnaireGenerator: Pentions ----
|
|
9161
|
+
_defineProperty(Services, "getPentions", /*#__PURE__*/function () {
|
|
9162
|
+
var _ref475 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee475(size, page, query, visibility) {
|
|
9163
|
+
var response;
|
|
9164
|
+
return _regeneratorRuntime.wrap(function (_context475) {
|
|
9165
|
+
while (1) switch (_context475.prev = _context475.next) {
|
|
9166
|
+
case 0:
|
|
9167
|
+
_context475.next = 1;
|
|
9168
|
+
return api.get("/pensions/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
9169
|
+
case 1:
|
|
9170
|
+
response = _context475.sent;
|
|
9171
|
+
return _context475.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9172
|
+
case 2:
|
|
9173
|
+
case "end":
|
|
9174
|
+
return _context475.stop();
|
|
9175
|
+
}
|
|
9176
|
+
}, _callee475);
|
|
9177
|
+
}));
|
|
9178
|
+
return function (_x726, _x727, _x728, _x729) {
|
|
9179
|
+
return _ref475.apply(this, arguments);
|
|
9180
|
+
};
|
|
9181
|
+
}());
|
|
9182
|
+
_defineProperty(Services, "getPentionsAll", /*#__PURE__*/function () {
|
|
9183
|
+
var _ref476 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee476(visibility) {
|
|
9184
|
+
var response;
|
|
9185
|
+
return _regeneratorRuntime.wrap(function (_context476) {
|
|
9186
|
+
while (1) switch (_context476.prev = _context476.next) {
|
|
9187
|
+
case 0:
|
|
9188
|
+
_context476.next = 1;
|
|
9189
|
+
return api.get("/pensions?visibility=".concat(visibility));
|
|
9190
|
+
case 1:
|
|
9191
|
+
response = _context476.sent;
|
|
9192
|
+
return _context476.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9193
|
+
case 2:
|
|
9194
|
+
case "end":
|
|
9195
|
+
return _context476.stop();
|
|
9196
|
+
}
|
|
9197
|
+
}, _callee476);
|
|
9198
|
+
}));
|
|
9199
|
+
return function (_x730) {
|
|
9200
|
+
return _ref476.apply(this, arguments);
|
|
9201
|
+
};
|
|
9202
|
+
}());
|
|
9203
|
+
_defineProperty(Services, "addPentions", /*#__PURE__*/function () {
|
|
9204
|
+
var _ref477 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee477(value) {
|
|
9205
|
+
var response;
|
|
9206
|
+
return _regeneratorRuntime.wrap(function (_context477) {
|
|
9207
|
+
while (1) switch (_context477.prev = _context477.next) {
|
|
9208
|
+
case 0:
|
|
9209
|
+
_context477.next = 1;
|
|
9210
|
+
return api.post("/pensions", value);
|
|
9211
|
+
case 1:
|
|
9212
|
+
response = _context477.sent;
|
|
9213
|
+
return _context477.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9214
|
+
case 2:
|
|
9215
|
+
case "end":
|
|
9216
|
+
return _context477.stop();
|
|
9217
|
+
}
|
|
9218
|
+
}, _callee477);
|
|
9219
|
+
}));
|
|
9220
|
+
return function (_x731) {
|
|
9221
|
+
return _ref477.apply(this, arguments);
|
|
9222
|
+
};
|
|
9223
|
+
}());
|
|
9224
|
+
_defineProperty(Services, "editPentions", /*#__PURE__*/function () {
|
|
9225
|
+
var _ref478 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee478(data) {
|
|
9226
|
+
var response;
|
|
9227
|
+
return _regeneratorRuntime.wrap(function (_context478) {
|
|
9228
|
+
while (1) switch (_context478.prev = _context478.next) {
|
|
9229
|
+
case 0:
|
|
9230
|
+
_context478.next = 1;
|
|
9231
|
+
return api.put("/pensions/".concat(data === null || data === void 0 ? void 0 : data.id), data);
|
|
9232
|
+
case 1:
|
|
9233
|
+
response = _context478.sent;
|
|
9234
|
+
return _context478.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9235
|
+
case 2:
|
|
9236
|
+
case "end":
|
|
9237
|
+
return _context478.stop();
|
|
9238
|
+
}
|
|
9239
|
+
}, _callee478);
|
|
9240
|
+
}));
|
|
9241
|
+
return function (_x732) {
|
|
9242
|
+
return _ref478.apply(this, arguments);
|
|
9243
|
+
};
|
|
9244
|
+
}());
|
|
9245
|
+
_defineProperty(Services, "deletePentions", /*#__PURE__*/function () {
|
|
9246
|
+
var _ref479 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee479(id) {
|
|
9247
|
+
var response;
|
|
9248
|
+
return _regeneratorRuntime.wrap(function (_context479) {
|
|
9249
|
+
while (1) switch (_context479.prev = _context479.next) {
|
|
9250
|
+
case 0:
|
|
9251
|
+
_context479.next = 1;
|
|
9252
|
+
return api["delete"]("/pensions/".concat(id));
|
|
9253
|
+
case 1:
|
|
9254
|
+
response = _context479.sent;
|
|
9255
|
+
return _context479.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9256
|
+
case 2:
|
|
9257
|
+
case "end":
|
|
9258
|
+
return _context479.stop();
|
|
9259
|
+
}
|
|
9260
|
+
}, _callee479);
|
|
9261
|
+
}));
|
|
9262
|
+
return function (_x733) {
|
|
9263
|
+
return _ref479.apply(this, arguments);
|
|
9264
|
+
};
|
|
9265
|
+
}());
|
|
9266
|
+
_defineProperty(Services, "pentionsVisibility", /*#__PURE__*/function () {
|
|
9267
|
+
var _ref480 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee480(data) {
|
|
9268
|
+
var response;
|
|
9269
|
+
return _regeneratorRuntime.wrap(function (_context480) {
|
|
9270
|
+
while (1) switch (_context480.prev = _context480.next) {
|
|
9271
|
+
case 0:
|
|
9272
|
+
_context480.next = 1;
|
|
9273
|
+
return api.patch("/pensions/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
9274
|
+
case 1:
|
|
9275
|
+
response = _context480.sent;
|
|
9276
|
+
return _context480.abrupt("return", response === null || response === void 0 ? void 0 : response.data);
|
|
9277
|
+
case 2:
|
|
9278
|
+
case "end":
|
|
9279
|
+
return _context480.stop();
|
|
9280
|
+
}
|
|
9281
|
+
}, _callee480);
|
|
9282
|
+
}));
|
|
9283
|
+
return function (_x734) {
|
|
9284
|
+
return _ref480.apply(this, arguments);
|
|
9285
|
+
};
|
|
9286
|
+
}());
|
|
9159
9287
|
export default Services;
|
|
@@ -10,10 +10,10 @@ var fs = require("fs");
|
|
|
10
10
|
var path = require("path");
|
|
11
11
|
|
|
12
12
|
////////// === CONFIG === //////////
|
|
13
|
-
var questionnaireName = "
|
|
14
|
-
var constantColumnName = "
|
|
15
|
-
var endpointName = "/
|
|
16
|
-
|
|
13
|
+
var questionnaireName = "Pentions"; // change as needed
|
|
14
|
+
var constantColumnName = "Təqaüd növü"; // change as needed
|
|
15
|
+
var endpointName = "/pentions";
|
|
16
|
+
/////////////////////////////////
|
|
17
17
|
|
|
18
18
|
var upperName = questionnaireName.toUpperCase();
|
|
19
19
|
var pathConstA = "QUESTIONNAIRES_".concat(upperName);
|
package/dist/utils/path.js
CHANGED
|
@@ -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: PENTIONS ----
|
|
6
|
+
export var QUESTIONNAIRES_PENTIONS = QUESTIONNAIRES + "/pentions";
|
|
7
|
+
// ---- end generated ----
|
|
8
|
+
|
|
5
9
|
// ---- generated by questionnaireGenerator: DEPARTMENTS ----
|
|
6
10
|
export var QUESTIONNAIRES_DEPARTMENTS = QUESTIONNAIRES + "/departments";
|
|
7
11
|
// ---- end generated ----
|