@banch0u/core-project-test-repository 1.9.3 → 1.9.4
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 +6 -2
- package/dist/pages/Questionnnaires/QuestionnairesEmployeeConfigurations/constant.js +82 -0
- package/dist/pages/Questionnnaires/QuestionnairesEmployeeConfigurations/index.js +404 -0
- package/dist/routes/QuestionnaireRoutes.js +8 -1
- package/dist/store/slices/employees/index.js +51 -0
- package/dist/store/slices/employees/service.js +26 -0
- package/dist/store/slices/global/index.js +9 -3
- package/dist/store/slices/questionnaire/index.js +394 -199
- package/dist/store/slices/questionnaire/service.js +119 -0
- package/dist/store/store.js +2 -1
- package/dist/utils/path.js +3 -1
- package/package.json +1 -1
|
@@ -5473,4 +5473,123 @@ _defineProperty(Services, "drivingcategoriesVisibility", /*#__PURE__*/function (
|
|
|
5473
5473
|
return _ref295.apply(this, arguments);
|
|
5474
5474
|
};
|
|
5475
5475
|
}());
|
|
5476
|
+
_defineProperty(Services, "getEmployeeConfigurations", /*#__PURE__*/function () {
|
|
5477
|
+
var _ref296 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee296(size, page, query, visibility) {
|
|
5478
|
+
return _regeneratorRuntime.wrap(function _callee296$(_context296) {
|
|
5479
|
+
while (1) switch (_context296.prev = _context296.next) {
|
|
5480
|
+
case 0:
|
|
5481
|
+
_context296.next = 2;
|
|
5482
|
+
return api.get("/employeeconfigurations/".concat(size, "/page/").concat(page, "?visibility=").concat(visibility, "&name=").concat(query === null || query === void 0 ? void 0 : query.name));
|
|
5483
|
+
case 2:
|
|
5484
|
+
return _context296.abrupt("return", _context296.sent);
|
|
5485
|
+
case 3:
|
|
5486
|
+
case "end":
|
|
5487
|
+
return _context296.stop();
|
|
5488
|
+
}
|
|
5489
|
+
}, _callee296);
|
|
5490
|
+
}));
|
|
5491
|
+
return function (_x454, _x455, _x456, _x457) {
|
|
5492
|
+
return _ref296.apply(this, arguments);
|
|
5493
|
+
};
|
|
5494
|
+
}());
|
|
5495
|
+
_defineProperty(Services, "getEmployeeConfigurationsAll", /*#__PURE__*/function () {
|
|
5496
|
+
var _ref297 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee297(visibility) {
|
|
5497
|
+
return _regeneratorRuntime.wrap(function _callee297$(_context297) {
|
|
5498
|
+
while (1) switch (_context297.prev = _context297.next) {
|
|
5499
|
+
case 0:
|
|
5500
|
+
_context297.next = 2;
|
|
5501
|
+
return api.get("/employeeconfigurations?visibility=".concat(visibility));
|
|
5502
|
+
case 2:
|
|
5503
|
+
return _context297.abrupt("return", _context297.sent);
|
|
5504
|
+
case 3:
|
|
5505
|
+
case "end":
|
|
5506
|
+
return _context297.stop();
|
|
5507
|
+
}
|
|
5508
|
+
}, _callee297);
|
|
5509
|
+
}));
|
|
5510
|
+
return function (_x458) {
|
|
5511
|
+
return _ref297.apply(this, arguments);
|
|
5512
|
+
};
|
|
5513
|
+
}());
|
|
5514
|
+
_defineProperty(Services, "addEmployeeConfigurations", /*#__PURE__*/function () {
|
|
5515
|
+
var _ref298 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee298(data) {
|
|
5516
|
+
return _regeneratorRuntime.wrap(function _callee298$(_context298) {
|
|
5517
|
+
while (1) switch (_context298.prev = _context298.next) {
|
|
5518
|
+
case 0:
|
|
5519
|
+
console.log(data);
|
|
5520
|
+
_context298.next = 3;
|
|
5521
|
+
return api.post("/employeeconfigurations", data, {
|
|
5522
|
+
headers: {
|
|
5523
|
+
"Content-Type": "application/json"
|
|
5524
|
+
}
|
|
5525
|
+
});
|
|
5526
|
+
case 3:
|
|
5527
|
+
return _context298.abrupt("return", _context298.sent);
|
|
5528
|
+
case 4:
|
|
5529
|
+
case "end":
|
|
5530
|
+
return _context298.stop();
|
|
5531
|
+
}
|
|
5532
|
+
}, _callee298);
|
|
5533
|
+
}));
|
|
5534
|
+
return function (_x459) {
|
|
5535
|
+
return _ref298.apply(this, arguments);
|
|
5536
|
+
};
|
|
5537
|
+
}());
|
|
5538
|
+
_defineProperty(Services, "editEmployeeConfigurations", /*#__PURE__*/function () {
|
|
5539
|
+
var _ref299 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee299(value) {
|
|
5540
|
+
return _regeneratorRuntime.wrap(function _callee299$(_context299) {
|
|
5541
|
+
while (1) switch (_context299.prev = _context299.next) {
|
|
5542
|
+
case 0:
|
|
5543
|
+
_context299.next = 2;
|
|
5544
|
+
return api.put("/employeeconfigurations/".concat(value === null || value === void 0 ? void 0 : value.id), value);
|
|
5545
|
+
case 2:
|
|
5546
|
+
return _context299.abrupt("return", _context299.sent);
|
|
5547
|
+
case 3:
|
|
5548
|
+
case "end":
|
|
5549
|
+
return _context299.stop();
|
|
5550
|
+
}
|
|
5551
|
+
}, _callee299);
|
|
5552
|
+
}));
|
|
5553
|
+
return function (_x460) {
|
|
5554
|
+
return _ref299.apply(this, arguments);
|
|
5555
|
+
};
|
|
5556
|
+
}());
|
|
5557
|
+
_defineProperty(Services, "deleteEmployeeConfigurations", /*#__PURE__*/function () {
|
|
5558
|
+
var _ref300 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee300(id) {
|
|
5559
|
+
return _regeneratorRuntime.wrap(function _callee300$(_context300) {
|
|
5560
|
+
while (1) switch (_context300.prev = _context300.next) {
|
|
5561
|
+
case 0:
|
|
5562
|
+
_context300.next = 2;
|
|
5563
|
+
return api["delete"]("/employeeconfigurations/".concat(id));
|
|
5564
|
+
case 2:
|
|
5565
|
+
return _context300.abrupt("return", _context300.sent);
|
|
5566
|
+
case 3:
|
|
5567
|
+
case "end":
|
|
5568
|
+
return _context300.stop();
|
|
5569
|
+
}
|
|
5570
|
+
}, _callee300);
|
|
5571
|
+
}));
|
|
5572
|
+
return function (_x461) {
|
|
5573
|
+
return _ref300.apply(this, arguments);
|
|
5574
|
+
};
|
|
5575
|
+
}());
|
|
5576
|
+
_defineProperty(Services, "employeeConfigurationsVisibility", /*#__PURE__*/function () {
|
|
5577
|
+
var _ref301 = _asyncToGenerator(/*#__PURE__*/_regeneratorRuntime.mark(function _callee301(data) {
|
|
5578
|
+
return _regeneratorRuntime.wrap(function _callee301$(_context301) {
|
|
5579
|
+
while (1) switch (_context301.prev = _context301.next) {
|
|
5580
|
+
case 0:
|
|
5581
|
+
_context301.next = 2;
|
|
5582
|
+
return api.patch("/employeeconfigurations/".concat(data === null || data === void 0 ? void 0 : data.id, "/visibility/").concat(data === null || data === void 0 ? void 0 : data.checked));
|
|
5583
|
+
case 2:
|
|
5584
|
+
return _context301.abrupt("return", _context301.sent);
|
|
5585
|
+
case 3:
|
|
5586
|
+
case "end":
|
|
5587
|
+
return _context301.stop();
|
|
5588
|
+
}
|
|
5589
|
+
}, _callee301);
|
|
5590
|
+
}));
|
|
5591
|
+
return function (_x462) {
|
|
5592
|
+
return _ref301.apply(this, arguments);
|
|
5593
|
+
};
|
|
5594
|
+
}());
|
|
5476
5595
|
export default Services;
|
package/dist/store/store.js
CHANGED
|
@@ -5,7 +5,8 @@ import { auth } from "./slices/auth";
|
|
|
5
5
|
import { notification } from "./slices/notification";
|
|
6
6
|
import { companyInfo } from "./slices/companyInfo";
|
|
7
7
|
import { questionnaire } from "./slices/questionnaire";
|
|
8
|
+
import { employees } from "./slices/employees";
|
|
8
9
|
export var store = configureStore({
|
|
9
|
-
reducer: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, notification.name, notification.reducer), global.name, global.reducer), auth.name, auth.reducer), companyInfo.name, companyInfo.reducer), questionnaire.name, questionnaire.reducer)
|
|
10
|
+
reducer: _defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty(_defineProperty({}, employees.name, employees.reducer), notification.name, notification.reducer), global.name, global.reducer), auth.name, auth.reducer), companyInfo.name, companyInfo.reducer), questionnaire.name, questionnaire.reducer)
|
|
10
11
|
});
|
|
11
12
|
export default store;
|
package/dist/utils/path.js
CHANGED
|
@@ -67,6 +67,7 @@ export var QUESTIONNAIRES_EDUCATION_PAYMENTS = QUESTIONNAIRES + "/education-paym
|
|
|
67
67
|
export var QUESTIONNAIRES_EDUCATION_LEVELS = QUESTIONNAIRES + "/education-levels";
|
|
68
68
|
export var QUESTIONNAIRES_REPRIMAND_TYPES = QUESTIONNAIRES + "/reprimand-types";
|
|
69
69
|
export var QUESTIONNAIRES_DRIVING_CATEGORIES = QUESTIONNAIRES + "/driving-categories";
|
|
70
|
+
export var QUESTIONNAIRES_EMPLOYEE_CONFIGURATIONS = QUESTIONNAIRES + "/employee-configurations";
|
|
70
71
|
export var QUESTIONNAIRES_SPECIAL_DAYS = QUESTIONNAIRES + "/special-days";
|
|
71
72
|
export var SETTINGS_QUESTIONNAIRES_ACADEMIC_DEGREES = SETTINGS_QUESTIONNAIRES + "/academic-degrees";
|
|
72
73
|
export var SETTINGS_QUESTIONNAIRES_DISABILITY_STATUSES = SETTINGS_QUESTIONNAIRES + "/disability-statuses";
|
|
@@ -97,4 +98,5 @@ export var SETTINGS_QUESTIONNAIRES_AREAS = SETTINGS_QUESTIONNAIRES + "/areas";
|
|
|
97
98
|
export var SETTINGS_QUESTIONNAIRES_COMPANIES = SETTINGS_QUESTIONNAIRES + "/companies";
|
|
98
99
|
export var SETTINGS_QUESTIONNAIRES_POSITIONS = SETTINGS_QUESTIONNAIRES + "/positions";
|
|
99
100
|
export var SETTINGS_QUESTIONNAIRES_HALLS = SETTINGS_QUESTIONNAIRES + "/halls";
|
|
100
|
-
export var SETTINGS_QUESTIONNAIRES_DRIVING_CATEGORIES = SETTINGS_QUESTIONNAIRES + "/driving-categories";
|
|
101
|
+
export var SETTINGS_QUESTIONNAIRES_DRIVING_CATEGORIES = SETTINGS_QUESTIONNAIRES + "/driving-categories";
|
|
102
|
+
export var SETTINGS_EMPLOYEE_CONFIGURATIONS = SETTINGS_QUESTIONNAIRES + "/employee-configurations";
|